From acef42c5867215888e30ba7095a79f2a0d367e53 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 24 Aug 2021 13:32:05 +0000 Subject: [PATCH] chore(release): 2.0.0 [skip ci] # [2.0.0](https://github.com/CESNET/perun-web-apps/compare/v1.1.0...v2.0.0) (2021-08-24) ### Bug Fixes * **admin:** don't show non-existent objects on dashboard ([b8f596b](https://github.com/CESNET/perun-web-apps/commit/b8f596b0a6fba76de903e96f7e4d3754495a9b04)) * **admin:** fix eslint error and warnings ([83c36a8](https://github.com/CESNET/perun-web-apps/commit/83c36a8fa74a769638720b6d9cb8fdaddf01b5a1)) * **admin-gui:** add constriction to service name ([9782d4d](https://github.com/CESNET/perun-web-apps/commit/9782d4d26292fdeae45285aef71212c294fda80c)) * **admin-gui:** fix of auth rights on application detail ([d849c9e](https://github.com/CESNET/perun-web-apps/commit/d849c9e6837e682ae06695550eb852f711c37a60)) * **admin-gui:** fix of text when reporting error ([c4be8a1](https://github.com/CESNET/perun-web-apps/commit/c4be8a142173f534e967016269fc8f7ded679898)) * **admin-gui:** fix vision bug of create edit service dialog ([811abf9](https://github.com/CESNET/perun-web-apps/commit/811abf93c4ff269aebd9a67ced78ff799f18cd2b)) * **admin-gui:** Text style changes in notification editing dialog ([880d0f4](https://github.com/CESNET/perun-web-apps/commit/880d0f4c394ffc1a244d3adff4a88be73e1cf7b9)) * don't send acr_values=null if no filter should be used ([2c207ff](https://github.com/CESNET/perun-web-apps/commit/2c207ff6f4028dbc9881188b1a0f69bface22957)) * Remove reload roles ([267429a](https://github.com/CESNET/perun-web-apps/commit/267429a9cbc8a6f848bd28d2debb7f69114f3829)) * **admin-gui:** fixed workflow of creating sponsored member ([9c03fe5](https://github.com/CESNET/perun-web-apps/commit/9c03fe508f284e618137733ec489c8d9677356e1)) * **user-profile:** new webauthn token image ([10b7ecf](https://github.com/CESNET/perun-web-apps/commit/10b7ecfc2d576285133d60bd5310398a17678680)) ### Features * **admin:** accounts page ([539ccd3](https://github.com/CESNET/perun-web-apps/commit/539ccd3e76d8d0b0c01232e87037f3353e497a85)) * **admin:** Add create tag to resource page ([c9887bc](https://github.com/CESNET/perun-web-apps/commit/c9887bc918437025ddcd6533716605e1c1b7d8a9)) * add multi-lang support for footer links ([acf475c](https://github.com/CESNET/perun-web-apps/commit/acf475c63c74c9d1834bc3390e7ed557a8b5ce1e)) * add support for creating service members ([36adacd](https://github.com/CESNET/perun-web-apps/commit/36adacd30bb97b68e5f4466f91e0da318220e320)) * **admin:** delete service from service detail page ([12609ff](https://github.com/CESNET/perun-web-apps/commit/12609ff9c4bd0e0f0470f3e763e10c1c38de1d79)) * configurable favicon added ([30b1042](https://github.com/CESNET/perun-web-apps/commit/30b1042da0be551f3bad69e288be8249ea5bfdb0)) * **user-profile:** add webauthn token ([14de693](https://github.com/CESNET/perun-web-apps/commit/14de69326ba111dc72dd3ea4cf6152f5b3dbb813)) ### Performance Improvements * **admin-gui:** tables optimilizations ([04eee4c](https://github.com/CESNET/perun-web-apps/commit/04eee4c29ff459aea2eae9cffa1300dfba102fc2)) * **admin-gui:** tables optimizations ([000384d](https://github.com/CESNET/perun-web-apps/commit/000384dfba5e943d3bd31532ee754db0b96e24e7)) * **admin-gui:** tables optimizations ([3ce4ff2](https://github.com/CESNET/perun-web-apps/commit/3ce4ff272fd1b3fef695d3a11532ffa514f4a16c)) ### BREAKING CHANGES * in the footer config every "label" was renamed to "label_en" --- .../147-es2015.8e22cc4ad569ace2fb8a.js | 1 - .../admin-gui/147-es5.8e22cc4ad569ace2fb8a.js | 1 - .../285-es2015.751d166c412b8dc80541.js | 1 + .../admin-gui/285-es5.751d166c412b8dc80541.js | 1 + ....js => 300-es2015.a828853dfe9786d61a8d.js} | 2 +- ...58f.js => 300-es5.a828853dfe9786d61a8d.js} | 2 +- .../363-es2015.3fbe2b130d5c69b906dc.js | 1 - .../363-es2015.9c3a7cea17cb338ca650.js | 1 + .../admin-gui/363-es5.3fbe2b130d5c69b906dc.js | 1 - .../admin-gui/363-es5.9c3a7cea17cb338ca650.js | 1 + .../427-es2015.1c911b592f126adfd085.js | 1 + .../admin-gui/427-es5.1c911b592f126adfd085.js | 1 + .../512-es2015.a8526fc624109da8878b.js | 1 - .../admin-gui/512-es5.a8526fc624109da8878b.js | 1 - ....js => 579-es2015.a7ecabb9fc862945e886.js} | 2 +- ...987.js => 579-es5.a7ecabb9fc862945e886.js} | 2 +- .../592-es2015.77e3d7989f44b988548d.js | 1 - .../admin-gui/592-es5.77e3d7989f44b988548d.js | 1 - ....js => 756-es2015.191260c437bd1ee35217.js} | 2 +- ...841.js => 756-es5.191260c437bd1ee35217.js} | 2 +- .../827-es2015.48873b00486d65bdb035.js | 1 + .../827-es2015.8b0b957d45d345d3fb05.js | 1 - .../admin-gui/827-es5.48873b00486d65bdb035.js | 1 + .../admin-gui/827-es5.8b0b957d45d345d3fb05.js | 1 - .../901-es2015.5b604fcd09c050f65159.js | 1 + .../admin-gui/901-es5.5b604fcd09c050f65159.js | 1 + .../assets/config/defaultConfig.json | 13 +-- .../apps/admin-gui/assets/config/version.json | 2 +- dist/apps/admin-gui/assets/i18n/en.json | 77 ++++++++++++--- .../assets/img/{PerunWebImages => }/perun.ico | Bin dist/apps/admin-gui/index.html | 5 +- .../main-es2015.7cd331bb3a27f4d3095d.js | 1 - .../main-es2015.af0cb7e3f45c254d3a3f.js | 1 + .../main-es5.7cd331bb3a27f4d3095d.js | 1 - .../main-es5.af0cb7e3f45c254d3a3f.js | 1 + ...=> runtime-es2015.810eea43729ccbfd0db8.js} | 2 +- ...js => runtime-es5.810eea43729ccbfd0db8.js} | 2 +- .../assets/config/defaultConfig.json | 12 +-- dist/apps/publications/index.html | 4 +- .../publications/main.03695dac3c2e50b9f23a.js | 1 + .../publications/main.c9a478442cae955c4e13.js | 1 - .../assets/config/defaultConfig.json | 17 ++-- dist/apps/user-profile/assets/i18n/cs.json | 2 +- dist/apps/user-profile/assets/i18n/en.json | 2 +- dist/apps/user-profile/assets/img/perun.ico | Bin 0 -> 4286 bytes .../assets/img/webauthn-logo-black.png | Bin 232769 -> 0 bytes .../assets/img/webauthn-logo-black.svg | 89 ++++++++++++++++++ dist/apps/user-profile/favicon.ico | Bin 15086 -> 0 bytes dist/apps/user-profile/index.html | 7 +- .../main-es2015.25b258bd8f922b203159.js | 1 - .../main-es2015.fc8b4aeb37c64453f62c.js | 1 + .../main-es5.25b258bd8f922b203159.js | 1 - .../main-es5.fc8b4aeb37c64453f62c.js | 1 + 53 files changed, 210 insertions(+), 66 deletions(-) delete mode 100644 dist/apps/admin-gui/147-es2015.8e22cc4ad569ace2fb8a.js delete mode 100644 dist/apps/admin-gui/147-es5.8e22cc4ad569ace2fb8a.js create mode 100644 dist/apps/admin-gui/285-es2015.751d166c412b8dc80541.js create mode 100644 dist/apps/admin-gui/285-es5.751d166c412b8dc80541.js rename dist/apps/admin-gui/{300-es2015.4d98bfefe34fffafe58f.js => 300-es2015.a828853dfe9786d61a8d.js} (86%) rename dist/apps/admin-gui/{300-es5.4d98bfefe34fffafe58f.js => 300-es5.a828853dfe9786d61a8d.js} (86%) delete mode 100644 dist/apps/admin-gui/363-es2015.3fbe2b130d5c69b906dc.js create mode 100644 dist/apps/admin-gui/363-es2015.9c3a7cea17cb338ca650.js delete mode 100644 dist/apps/admin-gui/363-es5.3fbe2b130d5c69b906dc.js create mode 100644 dist/apps/admin-gui/363-es5.9c3a7cea17cb338ca650.js create mode 100644 dist/apps/admin-gui/427-es2015.1c911b592f126adfd085.js create mode 100644 dist/apps/admin-gui/427-es5.1c911b592f126adfd085.js delete mode 100644 dist/apps/admin-gui/512-es2015.a8526fc624109da8878b.js delete mode 100644 dist/apps/admin-gui/512-es5.a8526fc624109da8878b.js rename dist/apps/admin-gui/{579-es2015.1addc672c03e39557987.js => 579-es2015.a7ecabb9fc862945e886.js} (99%) rename dist/apps/admin-gui/{579-es5.1addc672c03e39557987.js => 579-es5.a7ecabb9fc862945e886.js} (99%) delete mode 100644 dist/apps/admin-gui/592-es2015.77e3d7989f44b988548d.js delete mode 100644 dist/apps/admin-gui/592-es5.77e3d7989f44b988548d.js rename dist/apps/admin-gui/{756-es2015.008cd3af4db238dee841.js => 756-es2015.191260c437bd1ee35217.js} (99%) rename dist/apps/admin-gui/{756-es5.008cd3af4db238dee841.js => 756-es5.191260c437bd1ee35217.js} (99%) create mode 100644 dist/apps/admin-gui/827-es2015.48873b00486d65bdb035.js delete mode 100644 dist/apps/admin-gui/827-es2015.8b0b957d45d345d3fb05.js create mode 100644 dist/apps/admin-gui/827-es5.48873b00486d65bdb035.js delete mode 100644 dist/apps/admin-gui/827-es5.8b0b957d45d345d3fb05.js create mode 100644 dist/apps/admin-gui/901-es2015.5b604fcd09c050f65159.js create mode 100644 dist/apps/admin-gui/901-es5.5b604fcd09c050f65159.js rename dist/apps/admin-gui/assets/img/{PerunWebImages => }/perun.ico (100%) delete mode 100644 dist/apps/admin-gui/main-es2015.7cd331bb3a27f4d3095d.js create mode 100644 dist/apps/admin-gui/main-es2015.af0cb7e3f45c254d3a3f.js delete mode 100644 dist/apps/admin-gui/main-es5.7cd331bb3a27f4d3095d.js create mode 100644 dist/apps/admin-gui/main-es5.af0cb7e3f45c254d3a3f.js rename dist/apps/admin-gui/{runtime-es2015.2396c7b163422e37a860.js => runtime-es2015.810eea43729ccbfd0db8.js} (91%) rename dist/apps/admin-gui/{runtime-es5.2396c7b163422e37a860.js => runtime-es5.810eea43729ccbfd0db8.js} (91%) create mode 100644 dist/apps/publications/main.03695dac3c2e50b9f23a.js delete mode 100644 dist/apps/publications/main.c9a478442cae955c4e13.js create mode 100644 dist/apps/user-profile/assets/img/perun.ico delete mode 100644 dist/apps/user-profile/assets/img/webauthn-logo-black.png create mode 100644 dist/apps/user-profile/assets/img/webauthn-logo-black.svg delete mode 100644 dist/apps/user-profile/favicon.ico delete mode 100644 dist/apps/user-profile/main-es2015.25b258bd8f922b203159.js create mode 100644 dist/apps/user-profile/main-es2015.fc8b4aeb37c64453f62c.js delete mode 100644 dist/apps/user-profile/main-es5.25b258bd8f922b203159.js create mode 100644 dist/apps/user-profile/main-es5.fc8b4aeb37c64453f62c.js diff --git a/dist/apps/admin-gui/147-es2015.8e22cc4ad569ace2fb8a.js b/dist/apps/admin-gui/147-es2015.8e22cc4ad569ace2fb8a.js deleted file mode 100644 index 7b206ab05..000000000 --- a/dist/apps/admin-gui/147-es2015.8e22cc4ad569ace2fb8a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[147],{48147:function(t,e,n){"use strict";n.r(e),n.d(e,{AdminModule:function(){return Yd}});var r={};n.r(r),n.d(r,{forceCenter:function(){return Eo},forceCollide:function(){return Lo},forceLink:function(){return Bo},forceManyBody:function(){return Wo},forceRadial:function(){return $o},forceSimulation:function(){return Qo},forceX:function(){return Xo},forceY:function(){return Ko}});var i=n(61511),o=n(57629),a=n(75585),s=n(31572),u=n(48958),c=n(66297),l=n(43691),h=n(21575),f=n(48160);const d=function(){return{color:"black"}};let p=(()=>{class t{constructor(t,e){this.sideMenuService=t,this.sideMenuItemService=e}ngOnInit(){this.sideMenuService.setAdminItems([])}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(u.D),s.Y36(a.V))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"perun-web-apps-back-button"),s.TgZ(2,"h1",1),s._UZ(3,"mat-icon",2),s._uU(4),s.ALo(5,"translate"),s.qZA(),s._UZ(6,"app-animated-router-outlet"),s.qZA()),2&t&&(s.xp6(3),s.Q6J("ngStyle",s.DdM(4,d)),s.xp6(1),s.hij(" ",s.lcZ(5,2,"ADMIN.TITLE")," "))},directives:[c.W,l.Hw,i.PC,h.A],pipes:[f.X$],styles:[""]}),t})();var g=n(8557);let m=(()=>{class t{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"}]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"perun-web-apps-menu-buttons-field",0),s.qZA()),2&t&&(s.xp6(1),s.Q6J("items",e.navItems)("size","small"))},directives:[g.L],styles:[""]}),t})();var v=n(4230),y=n(84608),_=n(67033),w=n(88426),b=n(33642),x=n(15980),E=n(67806),T=n(39571);function A(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function S(t,e){1&t&&s._UZ(0,"th",16)}function I(t,e){if(1&t&&(s.TgZ(0,"td",17),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.friendlyName," ")}}function C(t,e){1&t&&s._UZ(0,"tr",18)}function D(t,e){1&t&&s._UZ(0,"tr",19)}function k(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"div"),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,S,1,0,"th",11),s.YNc(10,I,2,1,"td",12),s.BQk(),s.YNc(11,C,1,0,"tr",13),s.YNc(12,D,1,0,"tr",14),s.qZA(),s.TgZ(13,"app-alert",15),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,6,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE1")," "),s.xp6(3),s.hij(" ",s.lcZ(6,8,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE2")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns),s.xp6(2),s.hij(" ",s.lcZ(15,10,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.WARNING")," ")}}let N=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.notificator=n,this.translate=r,this.attributesManager=i,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new _.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const t=[];for(const e of this.data.attributes)t.push(e.id);this.attributesManager.deleteAttributeDefinitions(t).subscribe(()=>{this.translate.get("DIALOGS.DELETE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","error",1,"mt-3"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,A,1,0,"mat-spinner",1),s.YNc(5,k,16,12,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[y.uh,i.O5,y.H8,x.lW,E.$g,y.xY,_.BZ,_.w1,_.fO,_.Dz,_.as,_.nj,T.w,_.ge,_.ev,_.XQ,_.Gk],pipes:[f.X$],styles:[""]}),t})();var Z=n(14732),M=n(36922),O=n(66283),R=n(80340),L=n(16073),U=n(10901),P=n(4786),F=n(27521),q=n(29236),z=n(71522);function j(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function Y(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function B(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function G(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function J(t,e){if(1&t&&(s.TgZ(0,"mat-option",29),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.Oqu(t)}}function V(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function H(t,e){if(1&t&&(s.TgZ(0,"mat-option",29),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.Oqu(t)}}function Q(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function W(t,e){if(1&t&&(s.TgZ(0,"mat-option",29),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.Oqu(t)}}function $(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function X(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"mat-form-field",9),s.TgZ(2,"label"),s.TgZ(3,"input",10),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().attDef.friendlyName=e}),s.ALo(4,"translate"),s.qZA(),s.qZA(),s.YNc(5,Y,3,3,"mat-error",11),s.qZA(),s._UZ(6,"br"),s.TgZ(7,"mat-form-field",9),s.TgZ(8,"label"),s.TgZ(9,"input",10),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().attDef.displayName=e}),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.YNc(11,B,3,3,"mat-error",11),s.qZA(),s._UZ(12,"br"),s.TgZ(13,"mat-form-field",9),s.TgZ(14,"label"),s.TgZ(15,"textarea",12),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().attDef.description=e}),s.ALo(16,"translate"),s._uU(17," "),s.qZA(),s.qZA(),s.YNc(18,G,3,3,"mat-error",11),s.qZA(),s._UZ(19,"br"),s.TgZ(20,"mat-form-field",9),s.TgZ(21,"mat-placeholder"),s._uU(22),s.ALo(23,"translate"),s.qZA(),s.TgZ(24,"mat-select",13),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().entity=e}),s.YNc(25,J,2,2,"mat-option",14),s.qZA(),s.YNc(26,V,3,3,"mat-error",11),s.qZA(),s._UZ(27,"br"),s.TgZ(28,"mat-form-field",9),s.TgZ(29,"mat-placeholder"),s._uU(30),s.ALo(31,"translate"),s.qZA(),s.TgZ(32,"mat-select",13),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().definitionType=e}),s.YNc(33,H,2,2,"mat-option",14),s.qZA(),s.YNc(34,Q,3,3,"mat-error",11),s.qZA(),s._UZ(35,"br"),s.TgZ(36,"mat-form-field",9),s.TgZ(37,"mat-placeholder"),s._uU(38),s.ALo(39,"translate"),s.qZA(),s.TgZ(40,"mat-select",13),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().valueType=e}),s.YNc(41,W,2,2,"mat-option",14),s.qZA(),s.YNc(42,$,3,3,"mat-error",11),s.qZA(),s._UZ(43,"br"),s.TgZ(44,"div",15),s.TgZ(45,"p"),s._uU(46),s.ALo(47,"translate"),s.qZA(),s.TgZ(48,"p",16),s.NdJ("click",function(){return s.CHM(t),s.oxw().attDef.unique=!1}),s._uU(49,"OFF"),s.qZA(),s.TgZ(50,"mat-slide-toggle",17),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().attDef.unique=e}),s.ALo(51,"translate"),s._uU(52," ON "),s.qZA(),s.qZA(),s.TgZ(53,"div",18),s.TgZ(54,"p",19),s._uU(55),s.ALo(56,"translate"),s.qZA(),s.TgZ(57,"p",20),s._uU(58),s.ALo(59,"translate"),s.qZA(),s.qZA(),s.TgZ(60,"div",21),s.TgZ(61,"p",22),s._uU(62),s.ALo(63,"translate"),s.qZA(),s.TgZ(64,"mat-checkbox",23),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readSelf=e}),s.qZA(),s.TgZ(65,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeSelf=e}),s.qZA(),s.qZA(),s.TgZ(66,"div",21),s.TgZ(67,"p",22),s._uU(68),s.ALo(69,"translate"),s.qZA(),s.TgZ(70,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readSelfPublic=e}),s.qZA(),s.TgZ(71,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeSelfPublic=e}),s.qZA(),s.qZA(),s.TgZ(72,"div",21),s.TgZ(73,"p",22),s._uU(74),s.ALo(75,"translate"),s.qZA(),s.TgZ(76,"mat-checkbox",26),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readSelfVo=e}),s.qZA(),s.TgZ(77,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeSelfVo=e}),s.qZA(),s.qZA(),s.TgZ(78,"div",21),s.TgZ(79,"p",22),s._uU(80),s.ALo(81,"translate"),s.qZA(),s.TgZ(82,"mat-checkbox",27),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readVo=e}),s.qZA(),s.TgZ(83,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeVo=e}),s.qZA(),s.qZA(),s.TgZ(84,"div",21),s.TgZ(85,"p",22),s._uU(86),s.ALo(87,"translate"),s.qZA(),s.TgZ(88,"mat-checkbox",28),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readGroup=e}),s.qZA(),s.TgZ(89,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeGroup=e}),s.qZA(),s.qZA(),s.TgZ(90,"div",21),s.TgZ(91,"p",22),s._uU(92),s.ALo(93,"translate"),s.qZA(),s.TgZ(94,"mat-checkbox",26),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readFacility=e}),s.qZA(),s.TgZ(95,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeFacility=e}),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.s9C("placeholder",s.lcZ(4,46,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),s.Q6J("ngModel",t.attDef.friendlyName),s.xp6(2),s.Q6J("ngIf",""===t.attDef.friendlyName),s.xp6(4),s.s9C("placeholder",s.lcZ(10,48,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),s.Q6J("ngModel",t.attDef.displayName),s.xp6(2),s.Q6J("ngIf",""===t.attDef.displayName),s.xp6(4),s.s9C("placeholder",s.lcZ(16,50,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),s.Q6J("ngModel",t.attDef.description),s.xp6(3),s.Q6J("ngIf",""===t.attDef.description),s.xp6(4),s.Oqu(s.lcZ(23,52,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),s.xp6(2),s.Q6J("ngModel",t.entity),s.xp6(1),s.Q6J("ngForOf",t.entities),s.xp6(1),s.Q6J("ngIf",""===t.attDef.entity),s.xp6(4),s.Oqu(s.lcZ(31,54,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),s.xp6(2),s.Q6J("ngModel",t.definitionType),s.xp6(1),s.Q6J("ngForOf",t.definitionTypes),s.xp6(1),s.Q6J("ngIf",""===t.definitionType),s.xp6(4),s.Oqu(s.lcZ(39,56,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),s.xp6(2),s.Q6J("ngModel",t.valueType),s.xp6(1),s.Q6J("ngForOf",t.valueTypes),s.xp6(1),s.Q6J("ngIf",""===t.valueType),s.xp6(4),s.Oqu(s.lcZ(47,58,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.UNIQUE")),s.xp6(4),s.s9C("matTooltip",s.lcZ(51,60,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),s.Q6J("matTooltipDisabled",!t.disableUniqueToggle())("disabled",t.disableUniqueToggle())("ngModel",t.attDef.unique),s.xp6(5),s.Oqu(s.lcZ(56,62,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),s.xp6(3),s.Oqu(s.lcZ(59,64,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),s.xp6(4),s.Oqu(s.lcZ(63,66,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),s.xp6(2),s.Q6J("ngModel",t.readSelf),s.xp6(1),s.Q6J("ngModel",t.writeSelf),s.xp6(3),s.Oqu(s.lcZ(69,68,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),s.xp6(2),s.Q6J("ngModel",t.readSelfPublic),s.xp6(1),s.Q6J("ngModel",t.writeSelfPublic),s.xp6(3),s.Oqu(s.lcZ(75,70,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),s.xp6(2),s.Q6J("ngModel",t.readSelfVo),s.xp6(1),s.Q6J("ngModel",t.writeSelfVo),s.xp6(3),s.Oqu(s.lcZ(81,72,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),s.xp6(2),s.Q6J("ngModel",t.readVo),s.xp6(1),s.Q6J("ngModel",t.writeVo),s.xp6(3),s.Oqu(s.lcZ(87,74,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),s.xp6(2),s.Q6J("ngModel",t.readGroup),s.xp6(1),s.Q6J("ngModel",t.writeGroup),s.xp6(3),s.Oqu(s.lcZ(93,76,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),s.xp6(2),s.Q6J("ngModel",t.readFacility),s.xp6(1),s.Q6J("ngModel",t.writeFacility)}}let K=(()=>{class t{constructor(t,e,n,r){this.dialogRef=t,this.notificator=e,this.translate=n,this.attributesManager=r,this.loading=!1,this.entities=["facility","resource","group","group_resource","host","member","member_group","member_resource","user","user_ext_source","user_facility","vo","entityless"],this.definitionTypes=["def","opt","virt","core"],this.definitionType="",this.valueTypes=["String","Integer","Boolean","Array","LinkedHashMap"],this.valueType="",this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1}ngOnInit(){this.attDef={beanName:"",description:"",displayName:"",entity:"",friendlyName:"",id:void 0,namespace:"",type:"",unique:!1,writable:!1}}onSubmit(){this.loading=!0,this.attDef.namespace="urn:perun:"+this.entity+":attribute-def:"+this.definitionType,this.readValueType(),this.attributesManager.createAttributeDefinition({attribute:this.attDef}).subscribe(t=>{this.attDef=t,this.attributesManager.setAttributeRights({rights:this.readRights()}).subscribe(()=>{this.translate.get("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}readRights(){const t=[],e={};e.attributeId=this.attDef.id,e.role=Z.u.SELF,e.rights=[],this.readSelf&&e.rights.push("READ"),this.readSelfPublic&&e.rights.push("READ_PUBLIC"),this.readSelfVo&&e.rights.push("READ_VO"),this.writeSelf&&e.rights.push("WRITE"),this.writeSelfPublic&&e.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&e.rights.push("WRITE_VO"),t.push(e);const n={};n.attributeId=this.attDef.id,n.role=Z.u.VOADMIN,n.rights=[],this.readVo&&n.rights.push(b.Us.READ),this.writeVo&&n.rights.push(b.Us.WRITE),t.push(n);const r={};r.attributeId=this.attDef.id,r.role=Z.u.GROUPADMIN,r.rights=[],this.readGroup&&r.rights.push(b.Us.READ),this.writeGroup&&r.rights.push(b.Us.WRITE),t.push(r);const i={};return i.attributeId=this.attDef.id,i.role=Z.u.FACILITYADMIN,i.rights=[],this.readFacility&&i.rights.push(b.Us.READ),this.writeFacility&&i.rights.push(b.Us.WRITE),t.push(i),t}readValueType(){switch(this.valueType){case"String":this.attDef.type="java.lang.String";break;case"Integer":this.attDef.type="java.lang.Integer";break;case"Boolean":this.attDef.type="java.lang.Boolean";break;case"Array":this.attDef.type="java.util.ArrayList";break;case"LinkedHashMap":this.attDef.type="java.util.LinkedHashMap"}}disableConfirmButton(){return""===this.attDef.friendlyName||""===this.attDef.displayName||""===this.attDef.description||""===this.entity||""===this.definitionType||""===this.valueType||this.loading}disableUniqueToggle(){return("virt"===this.definitionType||"entityless"===this.entity)&&(this.attDef.unique=!1,!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-create-attribute-definition-dialog"]],decls:14,vars:16,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltip","matTooltipDisabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"form-field-width"],["matInput","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],[4,"ngIf"],["matInput","","cdkTextareaAutosize","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],["required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","matTooltipDisabled","disabled","ngModel","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[3,"value"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,j,1,0,"mat-spinner",2),s.YNc(5,X,96,78,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.onSubmit()}),s.ALo(11,"translate"),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,8,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(11,12,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),s.Q6J("disabled",e.disableConfirmButton())("matTooltipDisabled",!e.disableConfirmButton()),s.xp6(2),s.hij(" ",s.lcZ(13,14,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[y.uh,i.O5,y.H8,x.lW,M.gM,E.$g,y.xY,O.KE,R.Nt,L.Fj,L.Q7,L.JJ,L.On,U.IC,O.UY,P.gD,i.sg,F.Rr,q.oG,O.TO,z.ey],pipes:[f.X$],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.form-field-width[_ngcontent-%COMP%]{width:450px}.pointer[_ngcontent-%COMP%]{cursor:pointer}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"]}),t})();var tt=n(27613),et=n(60611);function nt(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function rt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"app-alert",9),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-form-field",10),s.TgZ(5,"input",11),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().value=e}),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.IMPORT_ATTRIBUTE.INFO")," "),s.xp6(3),s.Q6J("ngModel",t.value)("placeholder",s.lcZ(6,5,"DIALOGS.IMPORT_ATTRIBUTE.HINT"))}}let it=(()=>{class t{constructor(t,e,n,r){this.dialogRef=t,this.notificator=e,this.translate=n,this.attributesManager=r,this.value="",this.loading=!1}create(){try{this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).subscribe(t=>{for(let e=0;e{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)})},()=>this.loading=!1)}catch(t){console.log(t),this.notificator.showError(t),this.loading=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-attribute-import-dialog"]],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-stroked-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,nt,1,0,"mat-spinner",2),s.YNc(5,rt,7,7,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.dialogRef.close()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.create()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.hij(" ",s.lcZ(3,6,"DIALOGS.IMPORT_ATTRIBUTE.TITLE")," "),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,8,"DIALOGS.IMPORT_ATTRIBUTE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",0===e.value.trim().length||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,10,"DIALOGS.IMPORT_ATTRIBUTE.CREATE")," "))},directives:[y.uh,i.O5,y.H8,x.lW,E.$g,y.xY,T.w,O.KE,R.Nt,L.Fj,L.Q7,L.JJ,L.On],pipes:[f.X$],styles:[""]}),t})();var ot=n(59403),at=n(19139),st=n(58623),ut=n(17),ct=n(81391),lt=n(91721),ht=n(41939),ft=n(82819),dt=n(51556);function pt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",22),s.TgZ(1,"mat-checkbox",23),s.NdJ("change",function(e){s.CHM(t);const n=s.oxw(2);return e?n.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function gt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",24),s.TgZ(1,"mat-checkbox",25),s.NdJ("change",function(e){const n=s.CHM(t).$implicit,r=s.oxw(2);return e?r.selection.toggle(n):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw(2);s.xp6(1),s.Q6J("aria-label",n.checkboxLabel(t))("checked",n.selection.isSelected(t))}}function mt(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.KEY")," "))}function vt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",27),s.TgZ(1,"label"),s.TgZ(2,"input",28),s.NdJ("ngModelChange",function(){const e=s.CHM(t).$implicit;return s.oxw(2).onValueChange(e)})("ngModelChange",function(t){return e.$implicit[0]=t}),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(2),s.Q6J("ngModel",t[0])}}function yt(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.VALUE")," "))}function _t(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",27),s.TgZ(1,"perun-web-apps-attribute-value",29),s.NdJ("sendEventToParent2",function(){const e=s.CHM(t).$implicit;return s.oxw(2).onValueChange(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.Q6J("attribute",t[1])}}function wt(t,e){1&t&&s._UZ(0,"tr",30)}function bt(t,e){1&t&&s._UZ(0,"tr",31)}function xt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",10),s.TgZ(1,"perun-web-apps-table-wrapper",11),s.NdJ("page",function(e){return s.CHM(t),s.oxw().page.emit(e)}),s.TgZ(2,"table",12),s.ynx(3,13),s.YNc(4,pt,2,3,"th",14),s.YNc(5,gt,2,2,"td",15),s.BQk(),s.ynx(6,16),s.YNc(7,mt,3,3,"th",17),s.YNc(8,vt,3,1,"td",18),s.BQk(),s.ynx(9,19),s.YNc(10,yt,3,3,"th",17),s.YNc(11,_t,2,1,"td",18),s.BQk(),s.YNc(12,wt,1,0,"tr",20),s.YNc(13,bt,1,0,"tr",21),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("dataLength",t.dataSource.filteredData.length)("hideExport",!0)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),s.xp6(1),s.Q6J("dataSource",t.dataSource),s.xp6(10),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}function Et(t,e){1&t&&s._UZ(0,"mat-spinner",32)}function Tt(t,e){1&t&&(s.TgZ(0,"app-alert",33),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.NO_KEYS_WARNING")," "))}let At=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.notificator=n,this.translate=r,this.attributesManager=i,this.pageSize=10,this.page=new s.vpe,this.switchView=new s.vpe,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new _.by,this.selection=new v.Ov(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=tt.f7}set matSort(t){this.sort=t}ngOnChanges(){this.ngOnInit()}ngOnInit(){this.loading=!0,this.attDef=this.data.attDef,this.attributesManager.getEntitylessKeys(this.attDef.id).subscribe(t=>{this.attributesManager.getEntitylessAttributesByName(`${this.attDef.namespace}:${this.attDef.friendlyName}`).subscribe(e=>{let n=0;this.records=[];for(const r of t)this.records.push([r,e[n]]),n++;this.dataSource=new _.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 t of this.selection.selected)this.attributesManager.setEntitylessAttribute({key:t[0],attribute:t[1]}).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.ngOnInit()})});this.selection.clear(),this.isAddButtonDisabled=!1}onRemove(){for(const t of this.selection.selected)this.attributesManager.removeEntitylessAttribute(t[0],t[1].id).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.ngOnInit()})});this.ngOnInit(),this.selection.clear(),this.isAddButtonDisabled=!1}onAdd(){const t=["",this.attDef];t[1].value=void 0,this.records.unshift(t),this.dataSource.data=this.records,this.setDataSource(),this.selection.clear(),this.selection.select(t),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(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t[1].id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onValueChange(t){this.selection.select(t)}updateMapAttributes(){for(const t of this.items.toArray())"java.util.LinkedHashMap"===t.attribute.type&&t.updateMapAttribute()}ngAfterViewInit(){this.children.changes.subscribe(t=>{this.child=t.first,this.dataSource.paginator=this.child.paginator})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(st.YE,7),s.Gf(tt.l9,5),s.Gf(ht.Mw,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.children=t),s.iGM(t=s.CRH())&&(e.items=t)}},inputs:{attDef:"attDef",pageSize:"pageSize"},outputs:{page:"page",switchView:"switchView"},features:[s.TTD],decls:19,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-actions","",1,"mt-3"],["mat-stroked-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","accent","matTooltip","save or remove new attribute first","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","click"],["mat-flat-button","","color","warn",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","info","class","mt-3",4,"ngIf"],[1,"card","mt-3"],[3,"dataLength","hideExport","pageSizeOptions","pageSize","page"],["mat-table","","matSort","","matSortActive","key","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["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","info",1,"mt-3"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div",1),s.TgZ(3,"button",2),s.NdJ("click",function(){return e.switchView.emit()}),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"button",3),s.NdJ("click",function(){return e.onSave()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",4),s.NdJ("click",function(){return e.onAdd()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"button",5),s.NdJ("click",function(){return e.onRemove()}),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.TgZ(15,"div",6),s.YNc(16,xt,14,7,"div",7),s.YNc(17,Et,1,0,"mat-spinner",8),s.YNc(18,Tt,3,3,"app-alert",9),s.qZA()),2&t&&(s.xp6(1),s.Oqu(e.attDef.namespace+":"+e.attDef.friendlyName),s.xp6(3),s.hij(" ",s.lcZ(5,11,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.CANCEL")," "),s.xp6(3),s.hij(" ",s.lcZ(8,13,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE")," "),s.xp6(2),s.Q6J("disabled",e.isAddButtonDisabled)("matTooltipDisabled",!e.isAddButtonDisabled),s.xp6(1),s.hij(" ",s.lcZ(11,15,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.ADD")," "),s.xp6(3),s.hij(" ",s.lcZ(14,17,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE")," "),s.xp6(2),s.Q6J("hidden",e.loading),s.xp6(1),s.Q6J("ngIf",e.records&&e.records.length),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",0===e.records.length))},directives:[y.uh,y.H8,x.lW,M.gM,y.xY,i.O5,ft.l,_.BZ,st.YE,_.w1,_.fO,_.Dz,_.as,_.nj,_.ge,q.oG,_.ev,st.nU,R.Nt,L.Fj,L.JJ,L.On,dt.M,_.XQ,_.Gk,E.$g,T.w],pipes:[f.X$],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),t})();const St=["copiedTooltip"];function It(t,e){1&t&&s._UZ(0,"mat-spinner",12)}function Ct(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function Dt(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}const kt=function(){return["id","name","enabled","script"]};function Nt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",13),s.TgZ(1,"mat-form-field",3),s.TgZ(2,"label"),s.TgZ(3,"input",14),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).attDef.displayName=e}),s.ALo(4,"translate"),s.qZA(),s.qZA(),s.YNc(5,Ct,3,3,"mat-error",2),s.qZA(),s._UZ(6,"br"),s.TgZ(7,"mat-form-field",3),s.TgZ(8,"label"),s.TgZ(9,"textarea",15),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).attDef.description=e}),s.ALo(10,"translate"),s._uU(11," "),s.qZA(),s.qZA(),s.YNc(12,Dt,3,3,"mat-error",2),s.qZA(),s._UZ(13,"br"),s.TgZ(14,"div",16),s.TgZ(15,"p"),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"p",17),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).attDef.unique=!1}),s._uU(19,"OFF"),s.qZA(),s.TgZ(20,"mat-slide-toggle",18),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).attDef.unique=e}),s.ALo(21,"translate"),s._uU(22," ON "),s.qZA(),s.qZA(),s.TgZ(23,"div",19),s.TgZ(24,"p",20),s._uU(25),s.ALo(26,"translate"),s.qZA(),s.TgZ(27,"p",21),s._uU(28),s.ALo(29,"translate"),s.qZA(),s.qZA(),s.TgZ(30,"div",22),s.TgZ(31,"p",23),s._uU(32),s.ALo(33,"translate"),s.qZA(),s.TgZ(34,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readSelf=e}),s.qZA(),s.TgZ(35,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeSelf=e}),s.qZA(),s.qZA(),s.TgZ(36,"div",22),s.TgZ(37,"p",23),s._uU(38),s.ALo(39,"translate"),s.qZA(),s.TgZ(40,"mat-checkbox",26),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readSelfPublic=e}),s.qZA(),s.TgZ(41,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeSelfPublic=e}),s.qZA(),s.qZA(),s.TgZ(42,"div",22),s.TgZ(43,"p",23),s._uU(44),s.ALo(45,"translate"),s.qZA(),s.TgZ(46,"mat-checkbox",27),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readSelfVo=e}),s.qZA(),s.TgZ(47,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeSelfVo=e}),s.qZA(),s.qZA(),s.TgZ(48,"div",22),s.TgZ(49,"p",23),s._uU(50),s.ALo(51,"translate"),s.qZA(),s.TgZ(52,"mat-checkbox",28),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readVo=e}),s.qZA(),s.TgZ(53,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeVo=e}),s.qZA(),s.qZA(),s.TgZ(54,"div",22),s.TgZ(55,"p",23),s._uU(56),s.ALo(57,"translate"),s.qZA(),s.TgZ(58,"mat-checkbox",29),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readGroup=e}),s.qZA(),s.TgZ(59,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeGroup=e}),s.qZA(),s.qZA(),s.TgZ(60,"div",22),s.TgZ(61,"p",23),s._uU(62),s.ALo(63,"translate"),s.qZA(),s.TgZ(64,"mat-checkbox",27),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readFacility=e}),s.qZA(),s.TgZ(65,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeFacility=e}),s.qZA(),s.qZA(),s.TgZ(66,"div",30),s.TgZ(67,"p"),s._uU(68),s.ALo(69,"translate"),s.qZA(),s._UZ(70,"app-services-list",31),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.xp6(3),s.s9C("placeholder",s.lcZ(4,35,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),s.Q6J("ngModel",t.attDef.displayName),s.xp6(2),s.Q6J("ngIf",""===t.attDef.displayName),s.xp6(4),s.s9C("placeholder",s.lcZ(10,37,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),s.Q6J("ngModel",t.attDef.description),s.xp6(3),s.Q6J("ngIf",""===t.attDef.description),s.xp6(4),s.Oqu(s.lcZ(17,39,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.UNIQUE")),s.xp6(4),s.s9C("matTooltip",s.lcZ(21,41,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),s.Q6J("matTooltipDisabled",!t.disableUniqueToggle())("disabled",t.disableUniqueToggle())("ngModel",t.attDef.unique),s.xp6(5),s.Oqu(s.lcZ(26,43,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),s.xp6(3),s.Oqu(s.lcZ(29,45,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),s.xp6(4),s.Oqu(s.lcZ(33,47,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),s.xp6(2),s.Q6J("ngModel",t.readSelf),s.xp6(1),s.Q6J("ngModel",t.writeSelf),s.xp6(3),s.Oqu(s.lcZ(39,49,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),s.xp6(2),s.Q6J("ngModel",t.readSelfPublic),s.xp6(1),s.Q6J("ngModel",t.writeSelfPublic),s.xp6(3),s.Oqu(s.lcZ(45,51,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),s.xp6(2),s.Q6J("ngModel",t.readSelfVo),s.xp6(1),s.Q6J("ngModel",t.writeSelfVo),s.xp6(3),s.Oqu(s.lcZ(51,53,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),s.xp6(2),s.Q6J("ngModel",t.readVo),s.xp6(1),s.Q6J("ngModel",t.writeVo),s.xp6(3),s.Oqu(s.lcZ(57,55,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),s.xp6(2),s.Q6J("ngModel",t.readGroup),s.xp6(1),s.Q6J("ngModel",t.writeGroup),s.xp6(3),s.Oqu(s.lcZ(63,57,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),s.xp6(2),s.Q6J("ngModel",t.readFacility),s.xp6(1),s.Q6J("ngModel",t.writeFacility),s.xp6(3),s.Oqu(s.lcZ(69,59,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")),s.xp6(2),s.Q6J("services",t.services)("displayedColumns",s.DdM(61,kt))("disableRouting",!0)}}function Zt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",32),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).switchShowKeys()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SHOW_KEYS")," "))}function Mt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",3),s.TgZ(2,"h1",4),s._uU(3),s.qZA(),s.YNc(4,It,1,0,"mat-spinner",5),s.YNc(5,Nt,71,62,"div",6),s.TgZ(6,"div",7),s.YNc(7,Zt,3,3,"button",8),s.TgZ(8,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCopy()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.TgZ(11,"button",10),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.TgZ(14,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s.ALo(15,"translate"),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.Oqu(t.attDef.namespace+":"+t.attDef.friendlyName),s.xp6(1),s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading),s.xp6(2),s.Q6J("ngIf","entityless"===t.attDef.entity),s.xp6(2),s.hij(" ",s.lcZ(10,10,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FOR_IMPORT")," "),s.xp6(3),s.hij(" ",s.lcZ(13,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CANCEL")," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(15,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),s.Q6J("disabled",t.disableConfirmButton()||t.loading)("matTooltipDisabled",!t.disableConfirmButton()),s.xp6(2),s.hij(" ",s.lcZ(17,16,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function Ot(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"app-entityless-attribute-keys-list",33),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)})("switchView",function(){return s.CHM(t),s.oxw().switchShowKeys()}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("pageSize",t.pageSize)("attDef",t.attDef)}}let Rt=(()=>{class t{constructor(t,e,n,r,i,o,a,s,u){this.dialog=t,this.dialogRef=e,this.data=n,this.notificator=r,this.translate=i,this.clipboard=o,this.attributesManager=a,this.tableConfigService=s,this.serviceService=u,this.showKeys=!1,this.activatedComponent="Edit",this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1,this.tableId=et.Wv,this.loading=!1}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attDef=this.data.attDef,this.serviceService.getServicesByAttributeDefinition(this.attDef.id).subscribe(t=>{this.services=t,this.attributesManager.getAttributeRights(this.attDef.id).subscribe(t=>{this.fromRightsToCheckboxes(t),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}disableConfirmButton(){return""===this.attDef.displayName||""===this.attDef.description}disableUniqueToggle(){return this.attDef.namespace.includes("virt")||this.attDef.namespace.includes("core")||"entityless"===this.attDef.entity}onSubmit(){this.loading=!0,this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).subscribe(t=>{this.attDef=t,this.attributesManager.setAttributeRights({rights:this.fromCheckboxesToRights()}).subscribe(()=>{this.translate.get("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}fromCheckboxesToRights(){const t=[],e={};e.attributeId=this.attDef.id,e.role=Z.u.SELF,e.rights=[],this.readSelf&&e.rights.push("READ"),this.readSelfPublic&&e.rights.push("READ_PUBLIC"),this.readSelfVo&&e.rights.push("READ_VO"),this.writeSelf&&e.rights.push("WRITE"),this.writeSelfPublic&&e.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&e.rights.push("WRITE_VO"),t.push(e);const n={};n.attributeId=this.attDef.id,n.role=Z.u.VOADMIN,n.rights=[],this.readVo&&n.rights.push("READ"),this.writeVo&&n.rights.push("WRITE"),t.push(n);const r={};r.attributeId=this.attDef.id,r.role=Z.u.GROUPADMIN,r.rights=[],this.readGroup&&r.rights.push(b.Us.READ),this.writeGroup&&r.rights.push("WRITE"),t.push(r);const i={};return i.attributeId=this.attDef.id,i.role=Z.u.FACILITYADMIN,i.rights=[],this.readFacility&&i.rights.push("READ"),this.writeFacility&&i.rights.push("WRITE"),t.push(i),t}fromRightsToCheckboxes(t){for(const e of t)switch(e.role){case Z.u.SELF:e.rights.includes("READ")&&(this.readSelf=!0),e.rights.includes("READ_PUBLIC")&&(this.readSelfPublic=!0),e.rights.includes("READ_VO")&&(this.readSelfVo=!0),e.rights.includes("WRITE")&&(this.writeSelf=!0),e.rights.includes("WRITE_PUBLIC")&&(this.writeSelfPublic=!0),e.rights.includes("WRITE_VO")&&(this.writeSelfVo=!0);break;case Z.u.GROUPADMIN:e.rights.includes("READ")&&(this.readGroup=!0),e.rights.includes("WRITE")&&(this.writeGroup=!0);break;case Z.u.FACILITYADMIN:e.rights.includes("READ")&&(this.readFacility=!0),e.rights.includes("WRITE")&&(this.writeFacility=!0);break;case Z.u.VOADMIN:e.rights.includes("READ")&&(this.readVo=!0),e.rights.includes("WRITE")&&(this.writeVo=!0)}}switchShowKeys(){this.showKeys=!this.showKeys,this.showKeys?(this.dialogRef.updateSize("800px"),this.activatedComponent="Entityless"):(this.dialogRef.updateSize("700px"),this.activatedComponent="Edit")}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}onCopy(){const t={attributeDefinition:this.attDef,attributeRights:this.fromCheckboxesToRights()};this.clipboard.copy(JSON.stringify(t))?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(y.so),s.Y36(y.WI),s.Y36(w.V6),s.Y36(f.sK),s.Y36(ct.TU),s.Y36(b.H8),s.Y36(et.dB),s.Y36(b.KK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-edit-attribute-definition-dialog"]],viewQuery:function(t,e){if(1&t&&s.Gf(St,5),2&t){let t;s.iGM(t=s.CRH())&&(e.copiedToolTip=t.first)}},decls:4,vars:2,consts:[[1,"admin-theme"],[1,"parent"],[4,"ngIf"],[1,"width-650"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","","class","ml-0",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],["mat-flat-button","","color","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltip","matTooltipDisabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["matInput","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],["matInput","","cdkTextareaAutosize","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","matTooltipDisabled","disabled","ngModel","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[1,"mt-4"],[3,"services","displayedColumns","disableRouting"],["mat-flat-button","",1,"ml-0",3,"click"],[3,"pageSize","attDef","page","switchView"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,Mt,18,18,"div",2),s.YNc(3,Ot,2,2,"div",2),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",!e.showKeys),s.xp6(1),s.Q6J("ngIf",e.showKeys))},directives:[i.O5,y.uh,y.H8,x.lW,M.gM,E.$g,y.xY,O.KE,R.Nt,L.Fj,L.Q7,L.JJ,L.On,U.IC,F.Rr,q.oG,lt.Q,O.TO,At],pipes:[f.X$],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.width-650[_ngcontent-%COMP%]{width:650px!important}.pointer[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]{overflow:hidden}.parent[_ngcontent-%COMP%]{display:flex}.parent[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{flex:1}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"],data:{animation:[ut.SG,ut.GH,ut.Ls]}}),t})(),Lt=(()=>{class t{transform(t){if(null===t)return null;const e=t;return e.substring(e.lastIndexOf(":")+1,e.length)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"nameSpaceToDef",type:t,pure:!0}),t})(),Ut=(()=>{class t{transform(t){if(null===t)return null;const e=t;return e.substring(e.lastIndexOf(".")+1,e.length)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"attributeTypeClean",type:t,pure:!0}),t})();function Pt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",18),s.TgZ(1,"mat-checkbox",19),s.NdJ("change",function(e){s.CHM(t);const n=s.oxw();return e?n.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Ft(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",20),s.TgZ(1,"mat-checkbox",21),s.NdJ("change",function(e){const n=s.CHM(t).$implicit,r=s.oxw();return e?r.selection.toggle(n):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.xp6(1),s.Q6J("aria-label",n.checkboxLabel(t))("checked",n.selection.isSelected(t))}}function qt(t,e){1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ID")))}function zt(t,e){if(1&t&&(s.TgZ(0,"td",20),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.id)}}function jt(t,e){1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_FRIENDLY_NAME")))}function Yt(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.friendlyName)}}function Bt(t,e){1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ENTITY")))}function Gt(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.entity)}}function Jt(t,e){1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DEF")))}function Vt(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.ALo(2,"nameSpaceToDef"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,t.namespace))}}function Ht(t,e){1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_TYPE")))}function Qt(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.ALo(2,"attributeTypeClean"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,t.type))}}function Wt(t,e){1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_UNIQUE")))}function $t(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.unique)}}function Xt(t,e){1&t&&s._UZ(0,"tr",24)}function Kt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"tr",25),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().onRowClick(e)}),s.qZA()}if(2&t){const t=s.oxw();s.ekj("cursor-pointer",!t.disableRouting)}}function te(t,e){1&t&&(s.TgZ(0,"app-alert",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.NO_ATTRIBUTES"),"\n"))}function ee(t,e){1&t&&(s.TgZ(0,"app-alert",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let ne=(()=>{class t{constructor(t,e,n){this.dialog=t,this.authResolver=e,this.tableCheckbox=n,this.selection=new v.Ov(!0,[]),this.displayedColumns=["select","id","friendlyName","entity","namespace","type","unique"],this.pageSize=10,this.disableRouting=!1,this.refreshEvent=new s.vpe,this.page=new s.vpe,this.pageSizeOptions=tt.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new _.by(this.definitions),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"friendlyName":return t.friendlyName;case"entity":return t.entity;case"namespace":if(t.namespace){const e=t.namespace;return e.substring(e.lastIndexOf(":")+1,e.length)}return"";case"type":if(t.type){const e=t.type;return e.substring(e.lastIndexOf(".")+1,e.length)}return"";case"unique":return t.unique?"true":"false";default:return""}}exportData(t){(0,tt.O6)((0,tt.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,tt.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,tt.pR)(t,e,this.getDataForColumn,this),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onRowClick(t){if(!this.disableRouting){const e=(0,tt.kZ)();e.width="700px",e.data={attDef:t},this.dialog.open(Rt,e).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.refreshEvent.emit())})}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(w.x4),s.Y36(w.UA))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-attr-def-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(st.YE,7),s.Gf(tt.l9,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{definitions:"definitions",selection:"selection",displayedColumns:"displayedColumns",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{refreshEvent:"refreshEvent",page:"page"},features:[s.TTD],decls:29,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),s.TgZ(2,"div",2),s.TgZ(3,"table",3),s.ynx(4,4),s.YNc(5,Pt,2,3,"th",5),s.YNc(6,Ft,2,2,"td",6),s.BQk(),s.ynx(7,7),s.YNc(8,qt,3,3,"th",8),s.YNc(9,zt,2,1,"td",6),s.BQk(),s.ynx(10,9),s.YNc(11,jt,3,3,"th",8),s.YNc(12,Yt,2,1,"td",10),s.BQk(),s.ynx(13,11),s.YNc(14,Bt,3,3,"th",8),s.YNc(15,Gt,2,1,"td",10),s.BQk(),s.ynx(16,12),s.YNc(17,Jt,3,3,"th",8),s.YNc(18,Vt,3,3,"td",10),s.BQk(),s.ynx(19,13),s.YNc(20,Ht,3,3,"th",8),s.YNc(21,Qt,3,3,"td",10),s.BQk(),s.ynx(22,14),s.YNc(23,Wt,3,3,"th",8),s.YNc(24,$t,2,1,"td",10),s.BQk(),s.YNc(25,Xt,1,0,"tr",15),s.YNc(26,Kt,1,2,"tr",16),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.YNc(27,te,3,3,"app-alert",17),s.YNc(28,ee,3,3,"app-alert",17)),2&t&&(s.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.definitions.length),s.xp6(1),s.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),s.xp6(2),s.Q6J("dataSource",e.dataSource),s.xp6(22),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.definitions.length),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.definitions.length))},directives:[ft.l,_.BZ,st.YE,_.w1,_.fO,_.Dz,_.as,_.nj,i.O5,_.ge,q.oG,_.ev,st.nU,_.XQ,_.Gk,T.w],pipes:[f.X$,Lt,Ut],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function re(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCreate()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.CREATE")," "))}function ie(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onImport()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.IMPORT")," "))}function oe(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onDelete()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.ATTRIBUTES.DELETE")," ")}}function ae(t,e){1&t&&s._UZ(0,"mat-spinner",9)}function se(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-attr-def-list",10),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)})("refreshEvent",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("pageSize",t.pageSize)("definitions",t.attrDefinitions)("selection",t.selected)("filterValue",t.filterValue)("disableRouting",!t.authResolver.isPerunAdmin())}}let ue=(()=>{class t{constructor(t,e,n,r){this.dialog=t,this.attributesManager=e,this.tableConfigService=n,this.authResolver=r,this.attrDefinitions=[],this.selected=new v.Ov(!0,[]),this.filterValue="",this.tableId=et.uM}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}onCreate(){const t=(0,tt.kZ)();t.width="500px",this.dialog.open(K,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onDelete(){const t=(0,tt.kZ)();t.width="450px",t.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(N,t).afterClosed().subscribe(t=>{t&&(this.refreshTable(),this.selected.clear())})}refreshTable(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(t=>{this.attrDefinitions=t,this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}onImport(){const t=(0,tt.kZ)();t.width="700px",this.dialog.open(it,t).afterClosed().subscribe(t=>{!0===t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(b.H8),s.Y36(et.dB),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",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,"pageSize","definitions","selection","filterValue","disableRouting","page","refreshEvent",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","definitions","selection","filterValue","disableRouting","page","refreshEvent"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,re,3,3,"button",2),s.YNc(6,ie,3,3,"button",2),s.YNc(7,oe,3,4,"button",3),s.TgZ(8,"perun-web-apps-immediate-filter",4),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(9,ae,1,0,"mat-spinner",5),s.YNc(10,se,1,5,"app-attr-def-list",6),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,7,"ADMIN.ATTRIBUTES.TITLE")),s.xp6(3),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","ADMIN.ATTRIBUTES.SEARCH"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,ne],pipes:[f.X$],styles:[""]}),t})(),ce=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-visualizer"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"app-animated-router-outlet")},directives:[h.A],styles:[""]}),t})();var le=n(73180);let he=(()=>{class t{constructor(t){this.attributesManager=t}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(t=>{const e=t.graph.replace("\\t","").replace("\\n","").replace("\\","");(0,le.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(e)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-visualizer-attr-modules"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:4,vars:3,consts:[[1,"page-subtitle"],["id","dependenciesGraph",1,"card"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s._UZ(3,"div",1)),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.VISUALIZER.ATTR_DEPENDENCIES.TITLE"),"\n"))},pipes:[f.X$],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),t})(),fe=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-visualizer-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"perun-web-apps-menu-buttons-field",0),s.qZA()),2&t&&(s.xp6(1),s.Q6J("items",e.items)("size","small"))},directives:[g.L],styles:[""]}),t})();var de=n(47701),pe=n(98720),ge=n(66599),me=n(44689),ve=n(70663),ye=n(40084),_e=n(54810);function we(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.Oqu(s.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_USER"))}function be(t,e){1&t&&s._UZ(0,"mat-spinner",17),2&t&&s.Q6J("diameter",20)("strokeWidth",2)}function xe(t,e){if(1&t&&(s.TgZ(0,"mat-option",18),s.TgZ(1,"span",19),s._uU(2),s.qZA(),s._uU(3),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t.firstName+" "+t.lastName),s.xp6(2),s.hij("#",t.id,""),s.xp6(1),s.AsE(" ",t.firstName," ",t.lastName," ")}}function Ee(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.Oqu(s.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_DESTINATION"))}function Te(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.Oqu(s.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_SERVICE"))}function Ae(t,e){if(1&t&&(s.TgZ(0,"mat-radio-button",20),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t," ")}}let Se=(()=>{class t{constructor(t,e,n,r,i,o){this.usersService=t,this.translate=e,this.facilityManager=n,this.serviceService=r,this.router=i,this.notificator=o,this.searchField=new L.NI,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe((0,de.b)(400),(0,pe.x)(),(0,ge.b)(()=>this.loading=!0),(0,me.w)(t=>this.usersService.findUsers(t)),(0,ge.b)(()=>this.loading=!1)),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SELECT_NO_SERVICE").subscribe(t=>{this.noServiceText=t,this.availableServices.push(this.noServiceText)})}validateName(t){""!==this.searchField.value?this.usersService.findUsers(this.searchField.value).subscribe(e=>{for(const n of e){if((n.firstName+" "+n.lastName).toLowerCase()===this.searchField.value.toLowerCase()){this.selectedUser=n,t.selected.completed=!0,t.next();break}this.selectedUser=null}this.selectedUser||this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_NAME").subscribe(t=>{this.notificator.showError(t)})}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_NAME").subscribe(t=>{this.notificator.showError(t)})}validateDestination(t){""!==this.destination?(this.availableServices=[],this.availableServices.push(this.noServiceText),this.chosenService="",this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(e=>{if(0!==e.length){t.selected.completed=!0,t.next();for(const t of e)this.serviceService.getAllRichDestinationsForFacility(t.id).subscribe(t=>{for(const e of t)e.destination===this.destination&&-1===this.availableServices.indexOf(e.service.name)&&this.availableServices.push(e.service.name)})}else this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_DESTINATION").subscribe(t=>{this.notificator.showError(t)})})):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_DESTINATION").subscribe(t=>{this.notificator.showError(t)})}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(t=>{this.notificator.showError(t)})}notCompleted(t){t.selected.completed=!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.Fv),s.Y36(f.sK),s.Y36(b.IQ),s.Y36(b.KK),s.Y36(o.F0),s.Y36(w.V6))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-user-destination-relationship"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.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","ngModelChange","keydown.enter"],["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","ngModelChange","keydown.enter"],["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(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-vertical-stepper",2,3),s.TgZ(6,"mat-step",4),s.YNc(7,we,2,3,"ng-template",5),s.TgZ(8,"mat-form-field",6),s.TgZ(9,"input",7),s.NdJ("ngModelChange",function(){s.CHM(t);const n=s.MAs(5);return e.notCompleted(n)})("keydown.enter",function(){s.CHM(t);const n=s.MAs(5);return e.validateName(n)}),s.ALo(10,"translate"),s.qZA(),s.YNc(11,be,1,2,"mat-spinner",8),s.TgZ(12,"mat-hint",9),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"mat-autocomplete",null,10),s.YNc(17,xe,4,4,"mat-option",11),s.ALo(18,"async"),s.qZA(),s.qZA(),s.TgZ(19,"div"),s.TgZ(20,"button",12),s.NdJ("click",function(){s.CHM(t);const n=s.MAs(5);return e.validateName(n)}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(23,"mat-step",4),s.YNc(24,Ee,2,3,"ng-template",5),s.TgZ(25,"mat-form-field",6),s.TgZ(26,"input",13),s.NdJ("ngModelChange",function(t){return e.destination=t})("ngModelChange",function(){s.CHM(t);const n=s.MAs(5);return e.notCompleted(n)})("keydown.enter",function(){s.CHM(t);const n=s.MAs(5);return e.validateDestination(n)}),s.ALo(27,"translate"),s.qZA(),s.qZA(),s.TgZ(28,"div"),s.TgZ(29,"button",14),s._uU(30),s.ALo(31,"translate"),s.qZA(),s.TgZ(32,"button",12),s.NdJ("click",function(){s.CHM(t);const n=s.MAs(5);return e.validateDestination(n)}),s._uU(33),s.ALo(34,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(35,"mat-step"),s.YNc(36,Te,2,3,"ng-template",5),s.TgZ(37,"mat-radio-group",15),s.NdJ("ngModelChange",function(t){return e.chosenService=t}),s.YNc(38,Ae,2,2,"mat-radio-button",16),s.qZA(),s.TgZ(39,"div"),s.TgZ(40,"button",14),s._uU(41),s.ALo(42,"translate"),s.qZA(),s.TgZ(43,"button",12),s.NdJ("click",function(){return e.getGraph()}),s._uU(44),s.ALo(45,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(16);s.xp6(2),s.hij(" ",s.lcZ(3,16,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE")," "),s.xp6(7),s.s9C("placeholder",s.lcZ(10,18,"ADMIN.VISUALIZER.USER_DESTINATION.USER_EXAMPLE")),s.Q6J("formControl",e.searchField)("matAutocomplete",t),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(2),s.Oqu(s.lcZ(14,20,"ADMIN.VISUALIZER.USER_DESTINATION.USER_HINT")),s.xp6(4),s.Q6J("ngForOf",s.lcZ(18,22,e.users)),s.xp6(4),s.hij(" ",s.lcZ(22,24,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),s.xp6(5),s.s9C("placeholder",s.lcZ(27,26,"ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION_EXAMPLE")),s.Q6J("ngModel",e.destination),s.xp6(4),s.hij(" ",s.lcZ(31,28,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),s.xp6(3),s.hij(" ",s.lcZ(34,30,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),s.xp6(4),s.Q6J("ngModel",e.chosenService),s.xp6(1),s.Q6J("ngForOf",e.availableServices),s.xp6(3),s.hij(" ",s.lcZ(42,32,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),s.xp6(3),s.hij(" ",s.lcZ(45,34,"ADMIN.VISUALIZER.USER_DESTINATION.SUBMIT_BUTTON")," ")}},directives:[ve.Vq,ve.C0,ve.VY,O.KE,R.Nt,L.Fj,ye.ZL,L.JJ,L.oH,i.O5,O.bx,ye.XC,i.sg,x.lW,L.On,ve.fd,_e.VQ,E.$g,O.R9,z.ey,_e.U0],pipes:[f.X$,i.Ov],styles:[""]}),t})();var Ie=n(64762);function Ce(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function De(t){this._context=t}function ke(t,e){this._basis=new De(t),this._beta=e}De.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:Ce(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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:Ce(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ke.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;++u<=n;)this._basis.point(this._beta*t[u]+(1-this._beta)*(i+(r=u/n)*a),this._beta*e[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Ne=function t(e){function n(t){return 1===e?new De(t):new ke(t,e)}return n.beta=function(e){return t(+e)},n}(.85),Ze=n(55959);function Me(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function Oe(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var Re=n(10709),Le=n(26899),Ue=n(87254),Pe=n(41036),Fe=(n(92711),n(64641)),qe=(n(8634),n(3031));function ze(t){return{type:t}}function je(t,e){return te?1:t>=e?0:NaN}function Ye(t){let e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>je(t(e),n)}(t)),{left:r,center:function(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}n(45161),n(38337),n(82159),["w","e"].map(ze),["n","s"].map(ze),["n","w","e","s","nw","ne","sw","se"].map(ze);var Be=Math.sqrt(50),Ge=Math.sqrt(10),Je=Math.sqrt(2);function Ve(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Be?10:o>=Ge?5:o>=Je?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Be?10:o>=Ge?5:o>=Je?2:1)}function He(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Be?i*=10:o>=Ge?i*=5:o>=Je&&(i*=2),e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return Qe.setTime(+e),We.setTime(+r),t(Qe),t(We),Math.floor(n(Qe,We))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Xe=$e(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Xe.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?$e(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):Xe:null};var Ke=Xe,tn=$e(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),en=$e(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getMinutes()}),nn=$e(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),rn=$e(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5,t=>t.getDate()-1);function on(t){return $e(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var an=on(0),sn=(on(1),on(2),on(3),on(4),on(5),on(6),$e(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),un=$e(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});un.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$e(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var cn=un,ln=$e(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getUTCMinutes()}),hn=$e(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),fn=$e(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1});function dn(t){return $e(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var pn=dn(0),gn=(dn(1),dn(2),dn(3),dn(4),dn(5),dn(6),$e(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()})),mn=$e(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});mn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$e(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var vn=mn;function yn(t,e,n,r,i,o){const a=[[tn,1,1e3],[tn,5,5e3],[tn,15,15e3],[tn,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,n,r){const i=Math.abs(n-e)/r,o=Ye(([,,t])=>t).right(a,i);if(o===a.length)return t.every(He(e/31536e6,n/31536e6,r));if(0===o)return Ke.every(Math.max(He(e,n,r),1));const[s,u]=a[i/a[o-1][2]0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return En.setTime(+e),Tn.setTime(+r),t(En),t(Tn),Math.floor(n(En,Tn))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}function Sn(t){return An(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var In=Sn(0),Cn=Sn(1),Dn=(Sn(2),Sn(3),Sn(4)),kn=(Sn(5),Sn(6),An(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}));function Nn(t){return An(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var Zn=Nn(0),Mn=Nn(1),On=(Nn(2),Nn(3),Nn(4)),Rn=(Nn(5),Nn(6),An(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1})),Ln=An(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Ln.every=function(t){return isFinite(t=Math.floor(t))&&t>0?An(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var Un=Ln,Pn=An(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Pn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?An(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var Fn=Pn;var qn={"-":"",_:" ",0:"0"},zn=/[\\^$*+?|[\]().{}]/g;function jn(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o=4||0===n?On(t):On.ceil(t),jn(On.count(Un(t),t)+(4===Un(t).getDay()),e,2)}function ir(t){return t.getDay()}function or(t,e){return jn(Mn.count(Un(t)-1,t),e,2)}function ar(t,e){return jn(t.getFullYear()%100,e,2)}function sr(t,e){return jn(t.getFullYear()%1e4,e,4)}function ur(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+jn(e/60|0,"0",2)+jn(e%60,"0",2)}function cr(t,e){return jn(t.getUTCDate(),e,2)}function lr(t,e){return jn(t.getUTCHours(),e,2)}function hr(t,e){return jn(t.getUTCHours()%12||12,e,2)}function fr(t,e){return jn(1+kn.count(Fn(t),t),e,3)}function dr(t,e){return jn(t.getUTCMilliseconds(),e,3)}function pr(t,e){return dr(t,e)+"000"}function gr(t,e){return jn(t.getUTCMonth()+1,e,2)}function mr(t,e){return jn(t.getUTCMinutes(),e,2)}function vr(t,e){return jn(t.getUTCSeconds(),e,2)}function yr(t){var e=t.getUTCDay();return 0===e?7:e}function _r(t,e){return jn(In.count(Fn(t)-1,t),e,2)}function wr(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Dn(t):Dn.ceil(t),jn(Dn.count(Fn(t),t)+(4===Fn(t).getUTCDay()),e,2)}function br(t){return t.getUTCDay()}function xr(t,e){return jn(Cn.count(Fn(t)-1,t),e,2)}function Er(t,e){return jn(t.getUTCFullYear()%100,e,2)}function Tr(t,e){return jn(t.getUTCFullYear()%1e4,e,4)}function Ar(){return"+0000"}function Sr(){return"%"}function Ir(t){return+t}function Cr(t){return Math.floor(+t/1e3)}function Dr(t){return null===t?NaN:+t}!function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=(Bn(i),Gn(i),Bn(o),Gn(o),Bn(a),Gn(a),Bn(s),Gn(s),Bn(u),Gn(u),{a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Jn,e:Jn,f:$n,H:Vn,I:Hn,j:Qn,L:Wn,m:Xn,M:Kn,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ir,s:Cr,S:tr,u:er,U:nr,V:rr,w:ir,W:or,x:null,X:null,y:ar,Y:sr,Z:ur,"%":Sr}),l={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:cr,e:cr,f:pr,H:lr,I:hr,j:fr,L:dr,m:gr,M:mr,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ir,s:Cr,S:vr,u:yr,U:_r,V:wr,w:br,W:xr,x:null,X:null,y:Er,Y:Tr,Z:Ar,"%":Sr};function h(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s(e=a[u-1])&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?Fr:Pr,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),Zr.Z)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Or),l()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),u=Mr.Z,l()},h.clamp=function(t){return arguments.length?(c=!!t||Lr,l()):c!==Lr},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}()(Lr,Lr)}function jr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Yr=n(93116),Br=n(65636),Gr=n(3712),Jr=n(3218),Vr=n(22233);function Hr(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0){let n=Math.round(t/a),r=Math.round(e/a);for(n*ae&&--r,o=new Array(i=r-n+1);++se&&--r,o=new Array(i=r-n+1);++s0;){if((i=Ve(u,c,n))===r)return o[a]=u,o[s]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function Qr(){var t=zr();return t.copy=function(){return qr(t,Qr())},jr.apply(t,arguments),Hr(t)}function Wr(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function ei(){var t,e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t0?r[i-1]:e[0],i=0;)e+=n[r].value;else e=1;t.value=e}function mi(t,e){var n,r,i,o,a,s=new wi(t),u=+t.value&&(s.value=t.value),c=[s];for(null==e&&(e=vi);n=c.pop();)if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new wi(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(_i)}function vi(t){return t.children}function yi(t){t.data=t.data.data}function _i(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function wi(t){this.data=t,this.depth=this.height=0,this.parent=null}li.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ci(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ci(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new li(t,e)}return n.tension=function(e){return t(+e)},n}(0),hi.prototype={areaStart:ui,areaEnd:ui,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ci(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new hi(t,e)}return n.tension=function(e){return t(+e)},n}(0),fi.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,n(12314),function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,m,v=[],y=e.children,_=0,w=0,b=y.length,x=e.value;_f&&(f=s),m=l*l*g,(d=Math.max(f/m,m/h))>p){l-=s;break}p=d}v.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),wi.prototype=mi.prototype={constructor:wi,count:function(){return this.eachAfter(gi)},each:function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return mi(this).eachBefore(yi)}};var bi=n(30269);const xi=["caretElm"];function Ei(t,e){}const Ti=function(t){return{model:t}};function Ai(t,e){if(1&t&&(s.TgZ(0,"span"),s.YNc(1,Ei,0,0,"ng-template",5),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngTemplateOutlet",t.template)("ngTemplateOutletContext",s.VKq(2,Ti,t.context))}}function Si(t,e){if(1&t&&s._UZ(0,"span",6),2&t){const t=s.oxw();s.Q6J("innerHTML",t.title,s.oJD)}}function Ii(t,e){if(1&t&&(s.O4$(),s.kcU(),s._UZ(0,"ngx-charts-scale-legend",4)),2&t){const t=s.oxw();s.Q6J("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("valueRange",t.legendOptions.domain)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)}}function Ci(t,e){if(1&t){const t=s.EpF();s.O4$(),s.kcU(),s.TgZ(0,"ngx-charts-legend",5),s.NdJ("labelClick",function(e){return s.CHM(t),s.oxw().legendLabelClick.emit(e)})("labelActivate",function(e){return s.CHM(t),s.oxw().legendLabelActivate.emit(e)})("labelDeactivate",function(e){return s.CHM(t),s.oxw().legendLabelDeactivate.emit(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("data",t.legendOptions.domain)("title",t.legendOptions.title)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)("activeEntries",t.activeEntries)}}const Di=["*"];function ki(t,e){if(1&t&&(s.TgZ(0,"header",4),s.TgZ(1,"span",5),s._uU(2),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(t.title)}}function Ni(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"li",6),s.TgZ(1,"ngx-charts-legend-entry",7),s.NdJ("select",function(e){return s.CHM(t),s.oxw().labelClick.emit(e)})("activate",function(e){return s.CHM(t),s.oxw().activate(e)})("deactivate",function(e){return s.CHM(t),s.oxw().deactivate(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.xp6(1),s.Q6J("label",t.label)("formattedLabel",t.formattedLabel)("color",t.color)("isActive",n.isActive(t))}}let Zi=(()=>{class t{constructor(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.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(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const n=Object.getOwnPropertyNames(e.inputs);for(const r of n)t.instance[r]=e.inputs[r]}if(void 0!==e.outputs){const n=Object.getOwnPropertyNames(e.outputs);for(const r of n)t.instance[r]=e.outputs[r]}}return t}appendComponent(t,e={},n){n||(n=this.getRootViewContainer());const r=this.getComponentRootNode(n),i=new Le.F0(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Le.C5(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.z2F),s.LFG(s._Vd),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function Mi(t,e,n){let r,i,o;n=n||{};let a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){const c=+new Date;s||!1!==n.leading||(s=c);const l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var Oi=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function Ri(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function Li(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}class Ui{static calculateVerticalAlignment(t,e,n){let r=Ri(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(t,e,n,r){let i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);const o=Ri(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}static calculateHorizontalAlignment(t,e,n){let r=Li(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(t,e,n,r){let i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);const o=Li(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}static shouldFlip(t,e,n,r){let i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}static positionCaret(t,e,n,r,i){let o=0,a=0;return t===Oi.right?(a=-7,o=Ui.calculateVerticalCaret(n,e,r,i)):t===Oi.left?(a=e.width,o=Ui.calculateVerticalCaret(n,e,r,i)):t===Oi.top?(o=e.height,a=Ui.calculateHorizontalCaret(n,e,r,i)):t===Oi.bottom&&(o=-7,a=Ui.calculateHorizontalCaret(n,e,r,i)),{top:o,left:a}}static positionContent(t,e,n,r,i){let o=0,a=0;return t===Oi.right?(a=n.left+n.width+r,o=Ui.calculateVerticalAlignment(n,e,i)):t===Oi.left?(a=n.left-e.width-r,o=Ui.calculateVerticalAlignment(n,e,i)):t===Oi.top?(o=n.top-e.height-r,a=Ui.calculateHorizontalAlignment(n,e,i)):t===Oi.bottom&&(o=n.top+n.height+r,a=Ui.calculateHorizontalAlignment(n,e,i)),{top:o,left:a}}static determinePlacement(t,e,n,r){if(Ui.shouldFlip(n,e,t,r)){if(t===Oi.right)return Oi.left;if(t===Oi.left)return Oi.right;if(t===Oi.top)return Oi.bottom;if(t===Oi.bottom)return Oi.top}return t}}let Pi,Fi=(()=>{class t{constructor(t,e){this.element=t,this.renderer=e}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=` position-${this.placement}`,t+=` type-${this.type}`,t+=` ${this.cssClass}`,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const n=t.getBoundingClientRect();this.checkFlip(e,n),this.positionContent(t,e,n),this.showCaret&&this.positionCaret(e,n),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,n){const{top:r,left:i}=Ui.positionContent(this.placement,n,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",`${r}px`),this.renderer.setStyle(t,"left",`${i}px`)}positionCaret(t,e){const n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),{top:i,left:o}=Ui.positionCaret(this.placement,e,t,r,this.alignment);this.renderer.setStyle(n,"top",`${i}px`),this.renderer.setStyle(n,"left",`${o}px`)}checkFlip(t,e){this.placement=Ui.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.Qsj))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){if(1&t&&s.Gf(xi,5),2&t){let t;s.iGM(t=s.CRH())&&(e.caretElm=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("resize",function(){return e.onWindowResize()},!1,s.Jf7),2&t&&s.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"span",0,1),s.TgZ(3,"div",2),s.YNc(4,Ai,2,4,"span",3),s.YNc(5,Si,1,1,"span",4),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Gre("tooltip-caret position-",e.placement,""),s.Q6J("hidden",!e.showCaret),s.xp6(3),s.Q6J("ngIf",!e.title),s.xp6(1),s.Q6J("ngIf",e.title))},directives:[i.O5,i.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),Me([(100,function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Mi(n.value,100,undefined)}),this[e]}}})],t.prototype,"onWindowResize",null),t})(),qi=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const n=this.injectComponent(t,e);return this.register(t,n),n}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=Fi}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Zi))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),zi=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new s.vpe,this.legendLabelActivate=new s.vpe,this.legendLabelDeactivate=new s.vpe}ngOnChanges(t){this.update()}update(){let t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[s._Bn([qi]),s.TTD],ngContentSelectors:Di,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.O4$(),s.TgZ(1,"svg",1),s.Hsn(2),s.qZA(),s.YNc(3,Ii,1,5,"ngx-charts-scale-legend",2),s.YNc(4,Ci,1,7,"ngx-charts-legend",3),s.qZA()),2&t&&(s.Udp("width",e.view[0],"px"),s.Q6J("@animationState","active")("@.disabled",!e.animations),s.xp6(1),s.uIk("width",e.chartWidth)("height",e.view[1]),s.xp6(2),s.Q6J("ngIf",e.showLegend&&"scaleLegend"===e.legendType),s.xp6(1),s.Q6J("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[i.O5,Qi,Vi]},encapsulation:2,data:{animation:[(0,Re.X$)("animationState",[(0,Re.eR)(":enter",[(0,Re.oB)({opacity:0}),(0,Re.jt)("500ms 100ms",(0,Re.oB)({opacity:1}))])])]},changeDetection:0}),t})(),ji=(()=>{class t{constructor(t,e){this.element=t,this.zone=e,this.visible=new s.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const t=()=>{if(!this.element)return;const{offsetHeight:e,offsetWidth:n}=this.element.nativeElement;e&&n?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t())})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),Yi=(()=>{class t{constructor(t,e,n){this.chartElement=t,this.zone=e,this.cd=n,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new s.vpe}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new ji(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(t){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const t=this.getContainerDims();t&&(this.width=t.width,this.height=t.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 t,e;const n=this.chartElement.nativeElement;if(null!==n.parentNode){const r=n.parentNode.getBoundingClientRect();t=r.width,e=r.height}return t&&e?{width:t,height:e}:null}formatDates(){for(let t=0;t{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=t}cloneData(t){const e=[];for(const n of t){const t={name:n.name};if(void 0!==n.value&&(t.value=n.value),void 0!==n.series){t.series=[];for(const e of n.series){const n=Object.assign({},e);t.series.push(n)}}void 0!==n.extra&&(t.extra=JSON.parse(JSON.stringify(n.extra))),e.push(t)}return e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[s.TTD],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"div")},encapsulation:2}),t})(),Bi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez]]}),t})(),Gi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Zi,qi],imports:[[i.ez]]}),t})();function Ji(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}"undefined"!=typeof window?Pi=window:"undefined"!=typeof global&&(Pi=global);let Vi=(()=>{class t{constructor(t){this.cd=t,this.horizontal=!1,this.labelClick=new s.vpe,this.labelActivate=new s.vpe,this.labelDeactivate=new s.vpe,this.legendEntries=[]}ngOnChanges(t){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const t=[];for(const e of this.data){const n=Ji(e);-1===t.findIndex(t=>t.label===n)&&t.push({label:e,formattedLabel:n,color:this.colors.getColor(e)})}return t}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.label===e.name)}activate(t){this.labelActivate.emit(t)}deactivate(t){this.labelDeactivate.emit(t)}trackBy(t,e){return e.label}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[s.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.YNc(1,ki,3,1,"header",0),s.TgZ(2,"div",1),s.TgZ(3,"ul",2),s.YNc(4,Ni,2,4,"li",3),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Udp("width",e.width,"px"),s.xp6(1),s.Q6J("ngIf",(null==e.title?null:e.title.length)>0),s.xp6(2),s.Udp("max-height",e.height-45,"px"),s.ekj("horizontal-legend",e.horizontal),s.xp6(1),s.Q6J("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[i.O5,i.sg,Hi]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),Hi=(()=>{class t{constructor(){this.isActive=!1,this.select=new s.vpe,this.activate=new s.vpe,this.deactivate=new s.vpe,this.toggle=new s.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&s.NdJ("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(s.TgZ(0,"span",0),s.NdJ("click",function(){return e.select.emit(e.formattedLabel)}),s.TgZ(1,"span",1),s.NdJ("click",function(){return e.toggle.emit(e.formattedLabel)}),s.qZA(),s.TgZ(2,"span",2),s._uU(3),s.qZA(),s.qZA()),2&t&&(s.ekj("active",e.isActive),s.Q6J("title",e.formattedLabel),s.xp6(1),s.Udp("background-color",e.color),s.xp6(2),s.hij(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Qi=(()=>{class t{constructor(t){this.sanitizer=t,this.horizontal=!1}ngOnChanges(t){const e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${e})`)}gradientString(t,e){e.push(1);const n=[];return t.reverse().forEach((t,r)=>{n.push(`${t} ${Math.round(100*e[r])}%`)}),n.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(bi.H7))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[s.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.qZA(),s._UZ(4,"div",2),s.TgZ(5,"div",1),s.TgZ(6,"span"),s._uU(7),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Udp("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),s.ekj("horizontal-legend",e.horizontal),s.xp6(3),s.Oqu(e.valueRange[1].toLocaleString()),s.xp6(1),s.Udp("background",e.gradient),s.xp6(3),s.Oqu(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Wi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez,Bi,Gi],i.ez,Bi,Gi]}),t})(),$i=[{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 Xi{constructor(t,e,n,r){"string"==typeof t&&(t=$i.find(e=>e.name===t)),this.colorDomain=t.domain,this.scaleType=e,this.domain=n,this.customColors=r,this.scale=this.generateColorScheme(t,e,this.domain)}generateColorScheme(t,e,n){let r;if("string"==typeof t&&(t=$i.find(e=>e.name===t)),"quantile"===e)r=ei().range(t.domain).domain(n);else if("ordinal"===e)r=Xr().range(t.domain).domain(n);else if("linear"===e){const e=[...t.domain];1===e.length&&(e.push(e[0]),this.colorDomain=e);const n=Wr(0,1,1/e.length);r=Qr().domain(n).range(e)}return r}getColor(t){if(null==t)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=Qr().domain(this.domain).range([0,1]);return this.scale(e(t))}{if("function"==typeof this.customColors)return this.customColors(t);const e=t.toString();let n;return this.customColors&&this.customColors.length>0&&(n=this.customColors.find(t=>t.name.toLowerCase()===e.toLowerCase())),n?n.value:this.scale(t)}}getLinearGradientStops(t,e){void 0===e&&(e=this.domain[0]);const n=Qr().domain(this.domain).range([0,1]),r=Kr().domain(this.colorDomain).range([0,1]),i=this.getColor(t),o=n(e),a=this.getColor(e),s=n(t);let u=1,c=o;const l=[];for(l.push({color:a,offset:o,originalOffset:o,opacity:1});c=(s-r.bandwidth()).toFixed(4))break;l.push({color:t,offset:e,opacity:1}),c=e,u++}}if(l[l.length-1].offset<100&&l.push({color:i,offset:s,opacity:1}),s===o)l[0].offset=0,l[1].offset=100;else if(100!==l[l.length-1].offset)for(const h of l)h.offset=(h.offset-o)/(s-o)*100;return l}}let Ki=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),to=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),eo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),no=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),ro=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})();Math;let io=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),oo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi,io,ro]]}),t})(),ao=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),so=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),uo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi,io,to]]}),t})(),co=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[Wi,Ki,to,eo,no,ro,oo,ao,io,so,uo]}),t})();var lo=Math.PI;function ho(t){return(1-Math.cos(lo*t))/2}var fo=n(87570),po=n(48318),go=n(40878),mo=n(3530);function vo(t){return void 0===t}function yo(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:e}}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;var xo=n(32975);function Eo(t,e){var n;function r(){var r,i,o=n.length,a=0,s=0;for(r=0;r=(o=(g+v)/2))?g=o:v=o,(l=n>=(a=(m+y)/2))?m=a:y=a,i=d,!(d=d[h=l<<1|c]))return i[h]=p,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s&&n===u)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(c=e>=(o=(g+v)/2))?g=o:v=o,(l=n>=(a=(m+y)/2))?m=a:y=a}while((h=l<<1|c)==(f=(u>=a)<<1|s>=o));return i[f]=d,i[h]=p,t}function Io(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Co(t){return t[0]}function Do(t){return t[1]}function ko(t,e,n){var r=new No(null==e?Co:e,null==n?Do:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function No(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Zo(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Mo=ko.prototype=No.prototype;function Oo(t){return t.x+t.vx}function Ro(t){return t.y+t.vy}function Lo(t){var e,n,r=1,i=1;function o(){for(var t,o,s,u,c,l,h,f=e.length,d=0;du+d||ic+d||os.index){var p=u-a.x-a.vx,g=c-a.y-a.vy,m=p*p+g*g;mt.r&&(t.r=t[e].r)}function s(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;rl&&(l=r),ih&&(h=i));if(u>l||c>h)return this;for(this.cover(u,c).cover(l,h),n=0;nt||t>=i||r>e||e>=o;)switch(s=(ef||(o=u.y0)>d||(a=u.x1)=v)<<1|t>=m)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=u)}else{var y=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),w=y*y+_*_;if(w=(s=(p+m)/2))?p=s:m=s,(l=a>=(u=(g+v)/2))?g=u:v=u,e=d,!(d=d[h=l<<1|c]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},Mo.removeAll=function(t){for(var e=0,n=t.length;e1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,o,a,s,u,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,n),e):c.on(t)}}}function Wo(){var t,e,n,r,i=To(-30),o=1,a=1/0,s=.81;function u(r){var i,o=t.length,a=ko(t,Jo,Vo).visitAfter(l);for(n=r,i=0;i=a)){(t.data!==e||t.next)&&(0===l&&(d+=(l=Ao())*l),0===h&&(d+=(h=Ao())*h),dt.id===n.id);r.position={x:n.x,y:n.y},r.dimension={width:n.width,height:n.height}}return t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n.position.y<=r.position.y?-1:1;return e.points=[{x:n.position.x,y:n.position.y-i*(n.dimension.height/2)},{x:r.position.x,y:r.position.y+i*(r.dimension.height/2)}],t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xo.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=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=Na()),e});for(const n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},dagreCluster:class{constructor(){this.defaultSettings={orientation:Za.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),(0,xo.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;const e=t=>{const e=this.dagreGraph._nodes[t.id];return Object.assign(Object.assign({},t),{position:{x:e.x,y:e.y},dimension:{width:e.width,height:e.height}})};return t.clusters=(t.clusters||[]).map(e),t.nodes=t.nodes.map(e),t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n.position.y<=r.position.y?-1:1;return e.points=[{x:n.position.x,y:n.position.y-i*(n.dimension.height/2)},{x:r.position.x,y:r.position.y+i*(r.dimension.height/2)}],t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xo.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=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreClusters=t.clusters||[],this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=Na()),e});for(const n of this.dagreNodes)this.dagreGraph.setNode(n.id,n);for(const n of this.dagreClusters)this.dagreGraph.setNode(n.id,n),n.childNodeIds.forEach(t=>{this.dagreGraph.setParent(t,n.id)});for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},dagreNodesOnly:class{constructor(){this.defaultSettings={orientation:Za.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),(0,xo.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const n=this.dagreGraph._nodes[e],r=t.nodes.find(t=>t.id===n.id);r.position={x:n.x,y:n.y},r.dimension={width:n.width,height:n.height}}for(const e of t.edges)this.updateEdge(t,e);return t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",o="y"===i?"x":"y",a="y"===i?"height":"width",s=n.position[i]<=r.position[i]?-1:1,u={[o]:n.position[o],[i]:n.position[i]-s*(n.dimension[a]/2)},c={[o]:r.position[o],[i]:r.position[i]+s*(r.dimension[a]/2)},l=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[u,{[o]:u[o],[i]:u[i]-s*l},{[o]:c[o],[i]:c[i]+s*l},c];const h=t.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return h&&(h.points=e.points),t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xo.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=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=Na()),e});for(const n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},d3ForceDirected:class{constructor(){this.defaultSettings={force:Qo().force("charge",Wo().strength(-150)).force("collide",Lo(5)),forceLink:Bo().id(t=>t.id).distance(()=>100)},this.settings={},this.outputGraph$=new Ze.xQ}run(t){return this.inputGraph=t,this.d3Graph={nodes:[...this.inputGraph.nodes.map(t=>Object.assign({},t))],edges:[...this.inputGraph.edges.map(t=>Object.assign({},t))]},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(t,e){const n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.nodes(this.d3Graph.nodes).force("link",n.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(t){return this.outputGraph.nodes=this.d3Graph.nodes.map(t=>Object.assign(Object.assign({},t),{id:t.id||Na(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(t=>Object.assign(Object.assign({},t),{source:Ma(t.source).id,target:Ma(t.target).id,points:[{x:Ma(t.source).x,y:Ma(t.source).y},{x:Ma(t.target).x,y:Ma(t.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(t,e){this.settings.force.alphaTarget(.3).restart();const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(this.draggingStart={x:e.x-n.x,y:e.y-n.y},n.fx=e.x-this.draggingStart.x,n.fy=e.y-this.draggingStart.y)}onDrag(t,e){if(!t)return;const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(n.fx=e.x-this.draggingStart.x,n.fy=e.y-this.draggingStart.y)}onDragEnd(t,e){if(!t)return;const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(this.settings.force.alphaTarget(0),n.fx=void 0,n.fy=void 0)}},colaForceDirected:class{constructor(){this.defaultSettings={force:(0,ta.d3adaptor)(Object.assign(Object.assign(Object.assign({},ea),r),na)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600,xOffset:0}},this.settings={},this.outputGraph$=new Ze.xQ}run(t){return this.inputGraph=t,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(t=>Object.assign(Object.assign({},t),{width:t.dimension?t.dimension.width:20,height:t.dimension?t.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(t=>({padding:5,groups:t.childNodeIds.map(t=>this.inputGraph.clusters.findIndex(e=>e.id===t)).filter(t=>t>=0),leaves:t.childNodeIds.map(t=>this.inputGraph.nodes.findIndex(e=>e.id===t)).filter(t=>t>=0)}))],links:[...this.inputGraph.edges.map(t=>{const e=this.inputGraph.nodes.findIndex(e=>t.source===e.id),n=this.inputGraph.nodes.findIndex(e=>t.target===e.id);if(-1!==e&&-1!==n)return Object.assign(Object.assign({},t),{source:e,target:n})}).filter(t=>!!t)],groupLinks:[...this.inputGraph.edges.map(t=>{const e=this.inputGraph.nodes.findIndex(e=>t.source===e.id),n=this.inputGraph.nodes.findIndex(e=>t.target===e.id);if(!(e>=0&&n>=0))return t}).filter(t=>!!t)]},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(t,e){const n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(t){return this.outputGraph.nodes=t.nodes.map(t=>Object.assign(Object.assign({},t),{id:t.id||Na(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=t.links.map(e=>{const n=Oa(t.nodes,e.source),r=Oa(t.nodes,e.target);return Object.assign(Object.assign({},e),{source:n.id,target:r.id,points:[n.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy()),r.bounds.rayIntersection(n.bounds.cx(),n.bounds.cy())]})}).concat(t.groupLinks.map(e=>{const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n||t.groups.find(t=>t.id===e.source),o=r||t.groups.find(t=>t.id===e.target);return Object.assign(Object.assign({},e),{source:i.id,target:o.id,points:[i.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})})),this.outputGraph.clusters=t.groups.map((t,e)=>Object.assign(Object.assign({},this.inputGraph.clusters[e]),{dimension:{width:t.bounds?t.bounds.width():20,height:t.bounds?t.bounds.height():20},position:{x:t.bounds?t.bounds.x+t.bounds.width()/2:0,y:t.bounds?t.bounds.y+t.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(t,e){const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(this.draggingStart={x:r.x-e.x,y:r.y-e.y},r.fixed=1,this.settings.force.start())}onDrag(t,e){if(!t)return;const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(r.x=this.draggingStart.x+e.x,r.y=this.draggingStart.y+e.y)}onDragEnd(t,e){if(!t)return;const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(r.fixed=0)}}};let La=(()=>{class t{getLayout(t){if(Ra[t])return new Ra[t];throw new Error(`Unknown layout type '${t}'`)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();var Ua=function(t){return t.Both="both",t.Horizontal="horizontal",t.Vertical="vertical",t}({}),Pa=function(t){return t.UpperLeft="UpperLeft",t.UpperRight="UpperRight",t}({});function Fa(t,e,n){let r,i,o;n=n||{};let a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){const c=+new Date;s||!1!==n.leading||(s=c);const l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}let qa=(()=>{class t extends Yi{constructor(t,e,n,r){super(t,e,n),this.el=t,this.zone=e,this.cd=n,this.layoutService=r,this.legend=!1,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Ua.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=Pa.UpperRight,this.activate=new s.vpe,this.deactivate=new s.vpe,this.zoomChange=new s.vpe,this.clickHandler=new s.vpe,this.isMouseMoveCalled=!1,this.graphSubscription=new fo.w,this.subscriptions=[],this.margin=[0,0,0,0],this.results=[],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=t=>t.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(t){this.zoomTo(Number(t))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(t){this.panTo(Number(t),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(t){this.panTo(null,Number(t))}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(t=>{this.panToNodeId(t)})),this.minimapClipPathId=`minimapClip${Na()}`}ngOnChanges(t){const{layoutSettings:e}=t;this.setLayout(this.layout),e&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(t){this.initialized=!1,t||(t="dagre"),"string"==typeof t&&(this.layout=this.layoutService.getLayout(t),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(t){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=t)}ngOnDestroy(){super.ngOnDestroy();for(const t of this.subscriptions)t.unsubscribe();this.subscriptions=null}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>this.update())}update(){super.update(),this.curve||(this.curve=Ne.beta(1)),this.zone.run(()=>{this.dims=function({width:t,height:e,margins:n,showXAxis:r=!1,showYAxis:i=!1,xAxisHeight:o=0,yAxisWidth:a=0,showXLabel:s=!1,showYLabel:u=!1,showLegend:c=!1,legendType:l="ordinal",legendPosition:h="right",columns:f=12}){let d=n[3],p=t,g=e-n[0]-n[2];if(c&&"right"===h&&(f-="ordinal"===l?2:1),p=p*f/12,p=p-n[1]-n[3],r&&(g-=5,g-=o,s)&&(g-=30),i&&(p-=5,p-=a,d+=a,d+=10,u)){const t=30;p-=t,d+=t}return p=Math.max(0,p),g=Math.max(0,g),{width:Math.floor(p),height:Math.floor(g),xOffset:Math.floor(d)}}({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new fo.w;const t=t=>(t.meta||(t.meta={}),t.id||(t.id=Na()),t.dimension?t.meta.forceDimensions=void 0===t.meta.forceDimensions||t.meta.forceDimensions:(t.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},t.meta.forceDimensions=!1),t.position={x:0,y:0},t.data=t.data?t.data:{},t);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(t):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(t):[],edges:this.links.length>0?[...this.links].map(t=>(t.id||(t.id=Na()),t)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const t=this.layout.run(this.graph),e=t instanceof po.y?t:(0,go.of)(t);this.graphSubscription.add(e.subscribe(t=>{this.graph=t,this.tick()})),0!==this.graph.nodes.length&&e.pipe((0,mo.P)()).subscribe(()=>this.applyNodeDimensions())}tick(){const t=new Set;this.graph.nodes.map(e=>{e.transform=`translate(${e.position.x-e.dimension.width/2||0}, ${e.position.y-e.dimension.height/2||0})`,e.data||(e.data={}),e.data.color=this.colors.getColor(this.groupResultsBy(e)),t.add(e.id)});const e=new Set;(this.graph.clusters||[]).map(t=>{t.transform=`translate(${t.position.x-t.dimension.width/2||0}, ${t.position.y-t.dimension.height/2||0})`,t.data||(t.data={}),t.data.color=this.colors.getColor(this.groupResultsBy(t)),e.add(t.id)}),setTimeout(()=>{this.oldNodes=t,this.oldClusters=e},500);const n=[];for(const r in this.graph.edgeLabels){const t=this.graph.edgeLabels[r],e=r.replace(/[^\w-]*/g,""),i=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let o=this._oldLinks.find(i?t=>`${t.source}${t.target}${t.id}`===e:t=>`${t.source}${t.target}`===e);const a=this.graph.edges.find(i?t=>`${t.source}${t.target}${t.id}`===e:t=>`${t.source}${t.target}`===e);o?o.data&&a&&a.data&&JSON.stringify(o.data)!==JSON.stringify(a.data)&&(o.data=a.data):o=a||t,o.oldLine=o.line;const s=t.points,u=this.generateLine(s),c=Object.assign({},o);c.line=u,c.points=s,this.updateMidpointOnEdge(c,s);const l=s[Math.floor(s.length/2)];l&&(c.textTransform=`translate(${l.x||0},${l.y||0})`),c.textAngle=0,c.oldLine||(c.oldLine=c.line),this.calcDominantBaseline(c),n.push(c)}this.graph.edges=n,this.graph.edges&&(this._oldLinks=this.graph.edges.map(t=>{const e=Object.assign({},t);return e.oldLine=t.line,e})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Pa.UpperLeft:return"";case Pa.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let t=1/0,e=-1/0,n=1/0,r=-1/0;for(let i=0;ie?o.position.x+o.dimension.width:e,r=o.position.y+o.dimension.height>r?o.position.y+o.dimension.height:r}t-=100,n-=100,e+=100,r+=100,this.graphDims.width=e-t,this.graphDims.height=r-n,this.minimapOffsetX=t,this.minimapOffsetY=n}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(t=>{const e=t.nativeElement,n=this.graph.nodes.find(t=>t.id===e.id);if(!n)return;let r;try{if(r=e.getBBox(),!r.width||!r.height)return}catch(i){return}if(n.dimension.height=this.nodeHeight?n.dimension.height&&n.meta.forceDimensions?n.dimension.height:this.nodeHeight:n.dimension.height&&n.meta.forceDimensions?n.dimension.height:r.height,this.nodeMaxHeight&&(n.dimension.height=Math.max(n.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(n.dimension.height=Math.min(n.dimension.height,this.nodeMinHeight)),this.nodeWidth)n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:this.nodeWidth;else if(e.getElementsByTagName("text").length){let t;try{for(const n of e.getElementsByTagName("text")){const e=n.getBBox();t?(e.width>t.width&&(t.width=e.width),e.height>t.height&&(t.height=e.height)):t=e}}catch(i){return}n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:t.width+20}else n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:r.width;this.nodeMaxWidth&&(n.dimension.width=Math.max(n.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(n.dimension.width=Math.min(n.dimension.width,this.nodeMinWidth))})}redrawLines(t=this.animate){this.linkElements.map(e=>{const n=this.graph.edges.find(t=>t.id===e.nativeElement.id);n&&((0,Pe.Z)(e.nativeElement).select(".line").attr("d",n.oldLine).transition().ease(ho).duration(t?500:0).attr("d",n.line),(0,Pe.Z)(this.chartElement.nativeElement).select(`#${n.id}`).attr("d",n.oldTextPath).transition().ease(ho).duration(t?500:0).attr("d",n.textPath),this.updateMidpointOnEdge(n,n.points))})}calcDominantBaseline(t){const e=t.points[0],n=t.points[t.points.length-1];t.oldTextPath=t.textPath,n.xt.x).y(t=>t.y).curve(this.curve)(t)}onZoom(t,e){if(this.enableTrackpadSupport&&!t.ctrlKey)return void this.pan(-1*t.deltaX,-1*t.deltaY);const n=1+("in"===e?this.zoomSpeed:-this.zoomSpeed),r=this.zoomLevel*n;if(!(r<=this.minZoomLevel||r>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&t){const e=t.clientX,r=t.clientY,i=this.chart.nativeElement.querySelector("svg"),o=i.querySelector("g.chart"),a=i.createSVGPoint();a.x=e,a.y=r;const s=a.matrixTransform(o.getScreenCTM().inverse());this.pan(s.x,s.y,!0),this.zoom(n),this.pan(-s.x,-s.y,!0)}else this.zoom(n)}pan(t,e,n=!1){const r=n?1:this.zoomLevel;this.transformationMatrix=wo(this.transformationMatrix,bo(t/r,e/r)),this.updateTransform()}panTo(t,e){null==t||isNaN(t)||null==e||isNaN(e)||(this.transformationMatrix=wo(this.transformationMatrix,bo((-this.panOffsetX-t*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-e*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(t){this.transformationMatrix=wo(this.transformationMatrix,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return vo(e)&&(e=t),{a:t,c:0,e:0,b:0,d:e,f:0}}(t,t)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(t){this.transformationMatrix.a=isNaN(t)?this.transformationMatrix.a:Number(t),this.transformationMatrix.d=isNaN(t)?this.transformationMatrix.d:Number(t),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(t){if(!this.draggingEnabled)return;const e=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(e,t),e.position.x+=t.movementX/this.zoomLevel,e.position.y+=t.movementY/this.zoomLevel,e.transform=`translate(${e.position.x-e.dimension.width/2}, ${e.position.y-e.dimension.height/2})`;for(const n of this.graph.edges)if((n.target===e.id||n.source===e.id||n.target.id===e.id||n.source.id===e.id)&&this.layout&&"string"!=typeof this.layout){const t=this.layout.updateEdge(this.graph,n),e=t instanceof po.y?t:(0,go.of)(t);this.graphSubscription.add(e.subscribe(t=>{this.graph=t,this.redrawEdge(n)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(t){const e=this.generateLine(t.points);this.calcDominantBaseline(t),t.oldLine=t.line,t.line=e}updateTransform(){var t;this.transform="matrix("+(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*e)/e,b:Math.round(t.b*e)/e,c:Math.round(t.c*e)/e,d:Math.round(t.d*e)/e,e:Math.round(t.e*e)/e,f:Math.round(t.f*e)/e}}(this.transformationMatrix,100)).a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}onClick(t){this.select.emit(t)}onActivate(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(t=>this.groupResultsBy(t)).reduce((t,e)=>-1!==t.indexOf(e)?t:t.concat([e]),[]).sort()}trackLinkBy(t,e){return e.id}trackNodeBy(t,e){return e.id}setColors(){this.colors=new Xi(this.scheme,"ordinal",this.seriesDomain,this.customColors)}getLegendOptions(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors}}onMouseMove(t){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,t):this.isDragging&&this.draggingEnabled&&this.onDrag(t)}onMouseDown(t){this.isMouseMoveCalled=!1}graphClick(t){this.isMouseMoveCalled||this.clickHandler.emit(t)}onTouchStart(t){this._touchLastX=t.changedTouches[0].clientX,this._touchLastY=t.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(t){if(this.isPanning&&this.panningEnabled){const e=t.changedTouches[0].clientX,n=t.changedTouches[0].clientY,r=e-this._touchLastX,i=n-this._touchLastY;this._touchLastX=e,this._touchLastY=n,this.pan(r,i)}}onTouchEnd(t){this.isPanning=!1}onMouseUp(t){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,t)}onNodeMouseDown(t,e){this.draggingEnabled&&(this.isDragging=!0,this.draggingNode=e,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(e,t))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(t){this.panTo((t.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(t.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let t=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);tthis.maxZoomLevel&&(t=this.maxZoomLevel),t!==this.zoomLevel&&(this.zoomLevel=t,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(t){const e=this.graph.nodes.find(e=>e.id===t);e&&this.panTo(e.position.x,e.position.y)}panWithConstraints(t,e){let n=e.movementX,r=e.movementY;switch(this.isMinimapPanning&&(n=-this.minimapScaleCoefficient*n*this.zoomLevel,r=-this.minimapScaleCoefficient*r*this.zoomLevel),t){case Ua.Horizontal:this.pan(n,0);break;case Ua.Vertical:this.pan(0,r);break;default:this.pan(n,r)}}updateMidpointOnEdge(t,e){if(t&&e)if(e.length%2==1)t.midPoint=e[Math.floor(e.length/2)];else{const n=e[e.length/2],r=e[e.length/2-1];t.midPoint={x:(n.x+r.x)/2,y:(n.y+r.y)/2}}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(La))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-graph"]],contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,ra,5),s.Suo(n,ia,5),s.Suo(n,oa,5),s.Suo(n,aa,5),s.Suo(n,sa,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.linkTemplate=t.first),s.iGM(t=s.CRH())&&(e.nodeTemplate=t.first),s.iGM(t=s.CRH())&&(e.clusterTemplate=t.first),s.iGM(t=s.CRH())&&(e.defsTemplate=t.first),s.iGM(t=s.CRH())&&(e.miniMapNodeTemplate=t.first)}},viewQuery:function(t,e){if(1&t&&(s.Gf(zi,7,s.SBq),s.Gf(ua,5),s.Gf(ca,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.chart=t.first),s.iGM(t=s.CRH())&&(e.nodeElements=t),s.iGM(t=s.CRH())&&(e.linkElements=t)}},hostBindings:function(t,e){1&t&&s.NdJ("mousemove",function(t){return e.onMouseMove(t)},!1,s.evT)("mousedown",function(t){return e.onMouseDown(t)},!1,s.evT)("click",function(t){return e.graphClick(t)},!1,s.evT)("touchmove",function(t){return e.onTouchMove(t)},!1,s.evT)("mouseup",function(t){return e.onMouseUp(t)},!1,s.evT)},inputs:{legend:"legend",nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",draggingEnabled:"draggingEnabled",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapPosition:"miniMapPosition",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY",layout:"layout",curve:"curve",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layoutSettings:"layoutSettings",miniMapMaxHeight:"miniMapMaxHeight"},outputs:{activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[s.qOj,s.TTD],ngContentSelectors:Da,decls:5,vars:11,consts:[["mouseWheel","",3,"view","showLegend","legendOptions","legendLabelClick","legendLabelActivate","legendLabelDeactivate","mouseWheelUp","mouseWheelDown"],["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(t,e){1&t&&(s.F$t(),s.TgZ(0,"ngx-charts-chart",0),s.NdJ("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t)})("legendLabelDeactivate",function(t){return e.onDeactivate(t)})("mouseWheelUp",function(t){return e.onZoom(t,"in")})("mouseWheelDown",function(t){return e.onZoom(t,"out")}),s.YNc(1,xa,12,12,"g",1),s.O4$(),s.TgZ(2,"clipPath"),s._UZ(3,"rect"),s.qZA(),s.YNc(4,Ia,6,15,"g",2),s.qZA()),2&t&&(s.Q6J("view",s.WLB(8,Ca,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions),s.xp6(1),s.Q6J("ngIf",e.initialized&&e.graph),s.xp6(1),s.uIk("id",e.minimapClipPathId),s.xp6(1),s.uIk("width",e.graphDims.width/e.minimapScaleCoefficient)("height",e.graphDims.height/e.minimapScaleCoefficient),s.xp6(1),s.Q6J("ngIf",e.showMiniMap))},directives:function(){return[zi,za,i.O5,i.sg,i.tP]},styles:[".minimap .minimap-background{fill:rgba(0,0,0,.1)}.minimap .minimap-drag{cursor:pointer;fill:rgba(0,0,0,.2);stroke:#fff;stroke-dasharray:2px;stroke-dashoffset:2px;stroke-width:1px}.minimap .minimap-drag.panning{fill:rgba(0,0,0,.3)}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}.graph .edge{fill:none;stroke:#666}.graph .edge .edge-label{fill:#251e1e;font-size:12px;stroke:none}.graph .panning-rect{cursor:move;fill:transparent}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}"],encapsulation:2,changeDetection:0}),Me([(500,function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Fa(n.value,500,undefined)}),this[e]}}}),Oe("design:type",Function),Oe("design:paramtypes",[]),Oe("design:returntype",void 0)],t.prototype,"updateMinimap",null),t})(),za=(()=>{class t{constructor(){this.mouseWheelUp=new s.vpe,this.mouseWheelDown=new s.vpe}onMouseWheelChrome(t){this.mouseWheelFunc(t)}onMouseWheelFirefox(t){this.mouseWheelFunc(t)}onWheel(t){this.mouseWheelFunc(t)}onMouseWheelIE(t){this.mouseWheelFunc(t)}mouseWheelFunc(t){window.event&&(t=window.event);const e=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail||t.deltaY||t.deltaX)),n=t.wheelDelta?e<0:e>0;(t.wheelDelta?e>0:e<0)?this.mouseWheelUp.emit(t):n&&this.mouseWheelDown.emit(t),t.returnValue=!1,t.preventDefault&&t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mouseWheel",""]],hostBindings:function(t,e){1&t&&s.NdJ("mousewheel",function(t){return e.onMouseWheelChrome(t)})("DOMMouseScroll",function(t){return e.onMouseWheelFirefox(t)})("wheel",function(t){return e.onWheel(t)})("onmousewheel",function(t){return e.onMouseWheelIE(t)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),t})(),ja=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[La],imports:[[Wi]]}),t})(),Ya=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[co],ja]}),t})();function Ba(){}function Ga(t){return null==t?Ba:function(){return this.querySelector(t)}}function Ja(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Va(){return[]}function Ha(t){return null==t?Va:function(){return this.querySelectorAll(t)}}function Qa(t){return function(){return this.matches(t)}}function Wa(t){return function(e){return e.matches(t)}}var $a=Array.prototype.find;function Xa(){return this.firstElementChild}var Ka=Array.prototype.filter;function ts(){return this.children}function es(t){return new Array(t.length)}function ns(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function rs(t){return function(){return t}}function is(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;se?1:t>=e?0:NaN}ns.prototype={constructor:ns,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var us="http://www.w3.org/1999/xhtml",cs={svg:"http://www.w3.org/2000/svg",xhtml:us,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ls(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),cs.hasOwnProperty(e)?{space:cs[e],local:t}:t}function hs(t){return function(){this.removeAttribute(t)}}function fs(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ds(t,e){return function(){this.setAttribute(t,e)}}function ps(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function gs(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function ms(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function vs(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ys(t){return function(){this.style.removeProperty(t)}}function _s(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ws(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function bs(t,e){return t.style.getPropertyValue(e)||vs(t).getComputedStyle(t,null).getPropertyValue(e)}function xs(t){return function(){delete this[t]}}function Es(t,e){return function(){this[t]=e}}function Ts(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function As(t){return t.trim().split(/^|\s+/)}function Ss(t){return t.classList||new Is(t)}function Is(t){this._node=t,this._names=As(t.getAttribute("class")||"")}function Cs(t,e){for(var n=Ss(t),r=-1,i=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function Qs(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tu=[null];function eu(t,e){this._groups=t,this._parents=e}function nu(){return new eu([[document.documentElement]],tu)}eu.prototype=nu.prototype={constructor:eu,select:function(t){"function"!=typeof t&&(t=Ga(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=b&&(b=w+1);!(_=m[b])&&++b=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=ss);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?ys:"function"==typeof e?ws:_s)(t,e,null==n?"":n)):bs(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?xs:"function"==typeof e?Ts:Es)(t,e)):this.node()[t]},classed:function(t,e){var n=As(t+"");if(arguments.length<2){for(var r=Ss(this.node()),i=-1,o=n.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Eu(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Eu(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=fu.exec(t))?new Su(e[1],e[2],e[3],1):(e=du.exec(t))?new Su(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=pu.exec(t))?Eu(e[1],e[2],e[3],e[4]):(e=gu.exec(t))?Eu(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=mu.exec(t))?ku(e[1],e[2]/100,e[3]/100,1):(e=vu.exec(t))?ku(e[1],e[2]/100,e[3]/100,e[4]):yu.hasOwnProperty(t)?xu(yu[t]):"transparent"===t?new Su(NaN,NaN,NaN,0):null}function xu(t){return new Su(t>>16&255,t>>8&255,255&t,1)}function Eu(t,e,n,r){return r<=0&&(t=e=n=NaN),new Su(t,e,n,r)}function Tu(t){return t instanceof au||(t=bu(t)),t?new Su((t=t.rgb()).r,t.g,t.b,t.opacity):new Su}function Au(t,e,n,r){return 1===arguments.length?Tu(t):new Su(t,e,n,null==r?1:r)}function Su(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Iu(){return"#"+Du(this.r)+Du(this.g)+Du(this.b)}function Cu(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Du(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ku(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Zu(t,e,n,r)}function Nu(t){if(t instanceof Zu)return new Zu(t.h,t.s,t.l,t.opacity);if(t instanceof au||(t=bu(t)),!t)return new Zu;if(t instanceof Zu)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&u<1?0:a,new Zu(a,s,u,t.opacity)}function Zu(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Mu(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ou(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}iu(au,bu,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:_u,formatHex:_u,formatHsl:function(){return Nu(this).formatHsl()},formatRgb:wu,toString:wu}),iu(Su,Au,ou(au,{brighter:function(t){return t=null==t?su:Math.pow(su,t),new Su(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Su(this.r*t,this.g*t,this.b*t,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:Iu,formatHex:Iu,formatRgb:Cu,toString:Cu})),iu(Zu,function(t,e,n,r){return 1===arguments.length?Nu(t):new Zu(t,e,n,null==r?1:r)},ou(au,{brighter:function(t){return t=null==t?su:Math.pow(su,t),new Zu(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Zu(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Su(Mu(t>=240?t-240:t+120,i,r),Mu(t,i,r),Mu(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Ru=t=>()=>t;function Lu(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Ru(isNaN(t)?e:t)}var Uu=function t(e){var n=function(t){return 1==(t=+t)?Lu:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ru(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Au(t)).r,(e=Au(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Lu(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Pu(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1];return Ou((n-r/e)*e,r>0?t[r-1]:2*i-o,i,o,ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Fu(n,r)})),o=zu.lastIndex;return o0)throw new Error("too late; already scheduled");return n}function Hu(t,e){var n=Qu(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Qu(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Wu,$u=180/Math.PI,Xu={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ku(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Fu(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Fu(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,u),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Fu(t,n)},{i:s-2,x:Fu(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(t){for(var e,n=-1,r=u.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Vu:Hu;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var Ec=ru.prototype.constructor;function Tc(t){return function(){this.style.removeProperty(t)}}function Ac(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Sc(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Ac(t,o,n)),r}return o._value=e,o}function Ic(t){return function(e){this.textContent=t.call(this,e)}}function Cc(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Ic(r)),e}return r._value=t,r}var Dc=0;function kc(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Nc(){return++Dc}var Zc=ru.prototype;kc.prototype=(function(t){return ru().transition(t)}).prototype={constructor:kc,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Ga(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}(this,t)})},ru.prototype.transition=function(t){var e,n;t instanceof kc?(e=t._id,t=t._name):(e=Nc(),(n=Mc).time=(0,Go.zO)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Yc(t){if(!(e=jc.exec(t)))throw new Error("invalid format: "+t);var e;return new Bc({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Bc(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Yc.prototype=Bc.prototype,Bc.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};var Gc,Jc=Array.prototype.map;function Vc(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;++s=0;)e+=n[r].value;else e=1;t.value=e}function Wc(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Xc)):void 0===e&&(e=$c);for(var n,r,i,o,a,s=new el(t),u=[s];n=u.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new el(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(tl)}function $c(t){return t.children}function Xc(t){return Array.isArray(t)?t[1]:null}function Kc(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function tl(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function el(t){this.data=t,this.depth=this.height=0,this.parent=null}void 0===(Gc={thousands:",",grouping:[3],currency:["$",""]}).grouping||void 0===Gc.thousands||Jc.call(Gc.grouping,Number),void 0===Gc.numerals||Jc.call(Gc.numerals,String),function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,m,v=[],y=e.children,_=0,w=0,b=y.length,x=e.value;_f&&(f=s),m=l*l*g,(d=Math.max(f/m,m/h))>p){l-=s;break}p=d}v.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),el.prototype=Wc.prototype={constructor:el,count:function(){return this.eachAfter(Qc)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],u=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return Wc(this).eachBefore(Kc)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n{class t{constructor(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.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(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const n=Object.getOwnPropertyNames(e.inputs);for(const r of n)t.instance[r]=e.inputs[r]}if(void 0!==e.outputs){const n=Object.getOwnPropertyNames(e.outputs);for(const r of n)t.instance[r]=e.outputs[r]}}return t}appendComponent(t,e={},n){n||(n=this.getRootViewContainer());const r=this.getComponentRootNode(n),i=new Le.F0(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Le.C5(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.z2F),s.LFG(s._Vd),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function ul(t,e,n){let r,i,o;n=n||{};let a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){const c=+new Date;s||!1!==n.leading||(s=c);const l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var cl=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function ll(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function hl(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}class fl{static calculateVerticalAlignment(t,e,n){let r=ll(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(t,e,n,r){let i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);const o=ll(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}static calculateHorizontalAlignment(t,e,n){let r=hl(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(t,e,n,r){let i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);const o=hl(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}static shouldFlip(t,e,n,r){let i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}static positionCaret(t,e,n,r,i){let o=0,a=0;return t===cl.right?(a=-7,o=fl.calculateVerticalCaret(n,e,r,i)):t===cl.left?(a=e.width,o=fl.calculateVerticalCaret(n,e,r,i)):t===cl.top?(o=e.height,a=fl.calculateHorizontalCaret(n,e,r,i)):t===cl.bottom&&(o=-7,a=fl.calculateHorizontalCaret(n,e,r,i)),{top:o,left:a}}static positionContent(t,e,n,r,i){let o=0,a=0;return t===cl.right?(a=n.left+n.width+r,o=fl.calculateVerticalAlignment(n,e,i)):t===cl.left?(a=n.left-e.width-r,o=fl.calculateVerticalAlignment(n,e,i)):t===cl.top?(o=n.top-e.height-r,a=fl.calculateHorizontalAlignment(n,e,i)):t===cl.bottom&&(o=n.top+n.height+r,a=fl.calculateHorizontalAlignment(n,e,i)),{top:o,left:a}}static determinePlacement(t,e,n,r){if(fl.shouldFlip(n,e,t,r)){if(t===cl.right)return cl.left;if(t===cl.left)return cl.right;if(t===cl.top)return cl.bottom;if(t===cl.bottom)return cl.top}return t}}let dl=(()=>{class t{constructor(t,e,n){this.element=t,this.renderer=e,this.platformId=n}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=` position-${this.placement}`,t+=` type-${this.type}`,t+=` ${this.cssClass}`,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,i.NF)(this.platformId))return;const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const n=t.getBoundingClientRect();this.checkFlip(e,n),this.positionContent(t,e,n),this.showCaret&&this.positionCaret(e,n),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,n){const{top:r,left:i}=fl.positionContent(this.placement,n,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",`${r}px`),this.renderer.setStyle(t,"left",`${i}px`)}positionCaret(t,e){const n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),{top:i,left:o}=fl.positionCaret(this.placement,e,t,r,this.alignment);this.renderer.setStyle(n,"top",`${i}px`),this.renderer.setStyle(n,"left",`${o}px`)}checkFlip(t,e){this.placement=fl.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){if(1&t&&s.Gf(nl,5),2&t){let t;s.iGM(t=s.CRH())&&(e.caretElm=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("resize",function(){return e.onWindowResize()},!1,s.Jf7),2&t&&s.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"span",0,1),s.TgZ(3,"div",2),s.YNc(4,ol,2,4,"span",3),s.YNc(5,al,1,1,"span",4),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Gre("tooltip-caret position-",e.placement,""),s.Q6J("hidden",!e.showCaret),s.xp6(3),s.Q6J("ngIf",!e.title),s.xp6(1),s.Q6J("ngIf",e.title))},directives:[i.O5,i.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);o>3&&a&&Object.defineProperty(e,n,a)}([(100,function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:ul(n.value,100,undefined)}),this[e]}}})],t.prototype,"onWindowResize",null),t})(),pl=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const n=this.injectComponent(t,e);return this.register(t,n),n}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=dl}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(sl))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),gl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez]]}),t})();var ml=function(t){return t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip",t}({}),vl=function(t){return t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right",t}({}),yl=function(t){return t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover",t}({});let _l,wl=(()=>{class t{constructor(t,e,n){this.tooltipService=t,this.viewContainerRef=e,this.renderer=n,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=cl.top,this.tooltipAlignment=vl.center,this.tooltipType=ml.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=yl.all,this.tooltipImmediateExit=!1,this.show=new s.vpe,this.hide=new s.vpe}get listensForFocus(){return this.tooltipShowEvent===yl.all||this.tooltipShowEvent===yl.focus}get listensForHover(){return this.tooltipShowEvent===yl.all||this.tooltipShowEvent===yl.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(t){if(this.component||this.tooltipDisabled)return;const e=t?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const t=this.createBoundOptions();this.component=this.tooltipService.create(t),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},e)}addHideListeners(t){this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",e=>{t.contains(e.target)||this.hideTooltip()}))}hideTooltip(t=!1){if(!this.component)return;const e=()=>{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),t?e():this.timeout=setTimeout(e,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 t.\u0275fac=function(e){return new(e||t)(s.Y36(pl),s.Y36(s.s_b),s.Y36(s.Qsj))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&s.NdJ("focusin",function(){return e.onFocus()})("blur",function(){return e.onBlur()})("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(t){return e.onMouseLeave(t.target)})("click",function(){return e.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",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),bl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[sl,pl],imports:[[i.ez]]}),t})();"undefined"!=typeof window?_l=window:"undefined"!=typeof global&&(_l=global);let xl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez,gl,bl],i.ez,gl,bl]}),t})(),El=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Tl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Al=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Sl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Il=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})();Math;let Cl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Dl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl,Cl,Il]]}),t})(),kl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Nl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Zl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl,Cl,Tl]]}),t})(),Ml=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[xl,El,Tl,Al,Sl,Il,Dl,kl,Cl,Nl,Zl]}),t})();function Ol(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"mat-spinner",3),s.qZA())}function Rl(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.TgZ(3,"strong"),s._uU(4),s.qZA(),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),s.xp6(3),s.Oqu(t.service)}}function Ll(t,e){1&t&&(s.O4$(),s.TgZ(0,"marker",10),s._UZ(1,"path",11),s.qZA())}function Ul(t,e){if(1&t&&(s.O4$(),s.TgZ(0,"g",12),s._UZ(1,"rect"),s.TgZ(2,"text",13),s._uU(3),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.Q6J("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",t.tooltip),s.xp6(1),s.uIk("width",t.dimension.width)("height",t.dimension.height)("fill",t.color),s.xp6(1),s.uIk("x",10)("y",t.dimension.height/2),s.xp6(1),s.Oqu(t.label)}}function Pl(t,e){if(1&t&&(s.O4$(),s.TgZ(0,"g",14),s._UZ(1,"path",15),s.TgZ(2,"text",16),s.TgZ(3,"textPath",17),s._uU(4),s.qZA(),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.xp6(3),s.uIk("href","#"+t.id),s.xp6(1),s.hij(" ",t.label," ")}}const Fl=function(t,e){return[t,e]};function ql(t,e){if(1&t&&(s.TgZ(0,"div"),s._uU(1),s.ALo(2,"translate"),s.TgZ(3,"strong"),s._uU(4),s.qZA(),s._uU(5),s.ALo(6,"translate"),s.TgZ(7,"strong"),s._uU(8),s.qZA(),s.YNc(9,Rl,5,4,"span",4),s.TgZ(10,"div",5),s.TgZ(11,"ngx-graph",6),s.YNc(12,Ll,2,0,"ng-template",null,7,s.W1O),s.YNc(14,Ul,4,9,"ng-template",null,8,s.W1O),s.YNc(16,Pl,5,2,"ng-template",null,9,s.W1O),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.hij(" ",s.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),s.xp6(3),s.AsE("",t.user.firstName," ",t.user.lastName,""),s.xp6(1),s.hij(" ",s.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),s.xp6(3),s.Oqu(t.destination),s.xp6(1),s.Q6J("ngIf","noService"!==t.service),s.xp6(2),s.Q6J("links",t.hierarchialGraph.links)("nodes",t.hierarchialGraph.nodes)("curve",t.curve)("draggingEnabled",!1)("zoomToFit$",t.zoomToFit$)("view",s.WLB(16,Fl,t.innerWidth,t.innerHeight))}}function zl(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.TgZ(3,"strong"),s._uU(4),s.qZA(),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),s.xp6(3),s.Oqu(t.service)}}function jl(t,e){if(1&t&&(s._uU(0),s.ALo(1,"translate"),s.TgZ(2,"strong"),s._uU(3),s.qZA(),s._uU(4),s.ALo(5,"translate"),s.TgZ(6,"strong"),s._uU(7),s.qZA(),s.YNc(8,zl,5,4,"span",4),s._uU(9),s.ALo(10,"translate")),2&t){const t=s.oxw(2);s.hij(" ",s.lcZ(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),s.xp6(3),s.AsE("",t.user.firstName," ",t.user.lastName,""),s.xp6(1),s.hij(" ",s.lcZ(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),s.xp6(3),s.Oqu(t.destination),s.xp6(1),s.Q6J("ngIf","noService"!==t.service),s.xp6(1),s.hij(" ",s.lcZ(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function Yl(t,e){if(1&t&&(s.YNc(0,ql,18,19,"div",1),s.YNc(1,jl,11,13,"ng-template",null,2,s.W1O)),2&t){const t=s.MAs(2),e=s.oxw();s.Q6J("ngIf",e.isConnected)("ngIfElse",t)}}let Bl=(()=>{class t{constructor(t,e,n,r,i,o,a,s,u){this.route=t,this.facilityManager=e,this.userService=n,this.membersService=r,this.serviceService=i,this.resourceManager=o,this.groupService=a,this.voService=s,this.translate=u,this.idCounter=0,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=Ne,this.zoomToFit$=new Ze.xQ}ngOnInit(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(t=>{console.log(t),this.destination=t.destination,this.service=t.service,this.userService.getUserById(t.user).subscribe(t=>{this.user=t,this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(t=>{this.facilities=t,this.membersService.getMembersByUser(this.user.id).subscribe(t=>{if(this.membership=t,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){const t=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:t,label:this.user.firstName+" "+this.user.lastName,tooltip:this.localUser,color:"#FFFFCC",tip:"user: "+this.user.id}];const e=""+this.id(),n="destination no id";this.hierarchialGraph.nodes="noService"===this.service?[...this.hierarchialGraph.nodes,{id:e,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:n}]:[...this.hierarchialGraph.nodes,{id:e,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:n}];for(const r of this.facilities)this.serviceService.getAllRichDestinationsForFacility(r.id).subscribe(t=>{this.connectToService(r,t),this.delay(2e3).then(()=>{this.zoomToFit$.next(!0),this.loading=!1})})}connectToService(t,e){this.isConnectedToService(e)&&this.facilityManager.getAssignedResourcesForFacility(t.id).subscribe(e=>{for(let n=0;n{0!==r.length&&this.groupService.getMemberGroups(e.id).subscribe(e=>{const i=this.findConnectedGroups(r,e);if(0!==i.length)for(const r of i)this.connectToResource(t,r,n)})})}connectToResource(t,e,n){this.resourceManager.getAssignedResourcesWithGroup(e.id).subscribe(r=>{const i=this.findConnectedResources(r,n);for(const n of i)this.resourceManager.getAssignedServicesToResource(n.id).subscribe(r=>{this.haveService(r)&&(this.isConnected=!0,this.addNodesToGraph(e.voId,e,n,t))})})}addNodesToGraph(t,e,n,r){if(-1===this.findEntityInGraph("Facility: "+r.id)){const t=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:t,label:this.localFacility+": "+r.name,tooltip:r.description,color:"#FFCCFF",tip:"Facility: "+r.id}];const e={source:t,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links=[...this.hierarchialGraph.links,e]}this.voService.getVoById(t).subscribe(t=>{if(-1===this.findEntityInGraph("Vo: "+t.id)){const e=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:e,label:this.localVo+": "+t.shortName,tooltip:t.name,color:"#E5FFCC",tip:"Vo: "+t.id}];const n={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id)].id,target:e};this.hierarchialGraph.links=[...this.hierarchialGraph.links,n]}if(-1===this.findEntityInGraph("Group: "+e.id)){const n=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:n,label:this.localGroup+": "+e.name,tooltip:e.description,color:"#CCE5FF",tip:"Group: "+e.id}];const r={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+t.id)].id,target:n};this.hierarchialGraph.links=[...this.hierarchialGraph.links,r]}const i=this.findEntityInGraph("Resource: "+n.id);if(-1!==i){const t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+e.id)].id,target:this.hierarchialGraph.nodes[i].id};this.hierarchialGraph.links=[...this.hierarchialGraph.links,t]}else{const t=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:t,label:this.localResource+": "+n.name,tooltip:n.description,color:"#FFCCCC",tip:"Resource: "+n.id}];const i={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+e.id)].id,target:t};this.hierarchialGraph.links=[...this.hierarchialGraph.links,i];const o={source:t,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+r.id)].id};this.hierarchialGraph.links=[...this.hierarchialGraph.links,o]}})}haveService(t){if("noService"===this.service)return!0;for(const e of t)if(this.service===e.name)return!0;return!1}findConnectedGroups(t,e){const n=[];for(let r=0;rsetTimeout(()=>e(),t)).then(()=>console.log("fired"))})}onResize(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight}getLocalizedNames(){this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.USER").subscribe(t=>{this.localUser=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.VO").subscribe(t=>{this.localVo=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.GROUP").subscribe(t=>{this.localGroup=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.RESOURCE").subscribe(t=>{this.localResource=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.FACILITY").subscribe(t=>{this.localFacility=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SERVICE").subscribe(t=>{this.localService=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION").subscribe(t=>{this.localDestination=t})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(b.IQ),s.Y36(b.Fv),s.Y36(b.uq),s.Y36(b.KK),s.Y36(b.xk),s.Y36(b.ff),s.Y36(b.YF),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-user-destination-graph"]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.onResize(t)},!1,s.Jf7),2&t&&s.ekj("router-component",e.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","curve","draggingEnabled","zoomToFit$","view"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","viewBox","0 -5 10 10","refX","8","refY","0","markerWidth","4","markerHeight","4","orient","auto"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["ngx-tooltip","",1,"node",3,"tooltipPlacement","tooltipType","tooltipTitle"],["alignment-baseline","central"],[1,"edge"],["stroke-width","2","marker-end","url(#arrow)",1,"line"],["text-anchor","end",1,"edge-label"],["startOffset","60%",2,"fill","#000"]],template:function(t,e){if(1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,Ol,2,0,"div",1),s.YNc(4,Yl,3,2,"ng-template",null,2,s.W1O)),2&t){const t=s.MAs(5);s.xp6(1),s.hij(" ",s.lcZ(2,3,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE"),"\n"),s.xp6(2),s.Q6J("ngIf",e.loading)("ngIfElse",t)}},directives:[i.O5,E.$g,qa,wl],pipes:[f.X$],styles:[""]}),t})();var Gl=n(71313);function Jl(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function Vl(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function Hl(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function Ql(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function Wl(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}let $l=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.userService=n,this.notificator=r,this.translateService=i,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.titleBefore=new L.NI(this.data.user.titleBefore,[L.kI.pattern(".*[\\S]+.*"),L.kI.maxLength(129)]),this.titleAfter=new L.NI(this.data.user.titleAfter,[L.kI.pattern(".*[\\S]+.*"),L.kI.maxLength(129)]),this.firstName=new L.NI(this.data.user.firstName,[L.kI.required,L.kI.pattern(".*[\\S]+.*"),L.kI.maxLength(129)]),this.middleName=new L.NI(this.data.user.middleName,[L.kI.pattern(".*[\\S]+.*"),L.kI.maxLength(129)]),this.lastName=new L.NI(this.data.user.lastName,[L.kI.required,L.kI.pattern(".*[\\S]+.*"),L.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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.Fv),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-edit-user-dialog"]],decls:32,vars:38,consts:[[1,"mat-dialog-title"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["matInput","","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",1),s.TgZ(5,"mat-form-field"),s._UZ(6,"input",2),s.ALo(7,"translate"),s.YNc(8,Jl,3,3,"mat-error",3),s.qZA(),s.TgZ(9,"mat-form-field"),s._UZ(10,"input",2),s.ALo(11,"translate"),s.YNc(12,Vl,3,3,"mat-error",3),s.qZA(),s.TgZ(13,"mat-form-field"),s._UZ(14,"input",4),s.ALo(15,"translate"),s.YNc(16,Hl,3,3,"mat-error",3),s.qZA(),s.TgZ(17,"mat-form-field"),s._UZ(18,"input",2),s.ALo(19,"translate"),s.YNc(20,Ql,3,3,"mat-error",3),s.qZA(),s.TgZ(21,"mat-form-field"),s._UZ(22,"input",4),s.ALo(23,"translate"),s.YNc(24,Wl,3,3,"mat-error",3),s.qZA(),s.qZA(),s.TgZ(25,"div",5),s.TgZ(26,"button",6),s.NdJ("click",function(){return e.onCancel()}),s._uU(27),s.ALo(28,"translate"),s.qZA(),s.TgZ(29,"button",7),s.NdJ("click",function(){return e.onSave()}),s._uU(30),s.ALo(31,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),s.xp6(4),s.s9C("placeholder",s.lcZ(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),s.Q6J("formControl",e.titleBefore),s.xp6(2),s.Q6J("ngIf",e.titleBefore.invalid),s.xp6(2),s.s9C("placeholder",s.lcZ(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),s.Q6J("formControl",e.titleAfter),s.xp6(2),s.Q6J("ngIf",e.titleAfter.invalid),s.xp6(2),s.s9C("placeholder",s.lcZ(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),s.Q6J("formControl",e.firstName),s.xp6(2),s.Q6J("ngIf",e.firstName.invalid),s.xp6(2),s.s9C("placeholder",s.lcZ(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),s.Q6J("formControl",e.middleName),s.xp6(2),s.Q6J("ngIf",e.middleName.invalid),s.xp6(2),s.s9C("placeholder",s.lcZ(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),s.Q6J("formControl",e.lastName),s.xp6(2),s.Q6J("ngIf",e.lastName.invalid),s.xp6(3),s.hij(" ",s.lcZ(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loading||e.firstName.invalid||e.lastName.invalid||e.titleBefore.invalid||e.titleAfter.invalid||e.middleName.invalid),s.xp6(1),s.hij(" ",s.lcZ(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},directives:[y.xY,O.KE,R.Nt,L.Fj,L.JJ,L.oH,i.O5,L.Q7,y.H8,x.lW,O.TO],pipes:[f.X$],styles:[""]}),t})();var Xl=n(22196);function Kl(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function th(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",12),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).editUser()}),s.TgZ(1,"mat-icon"),s._uU(2,"edit"),s.qZA(),s.qZA()}}const eh=function(){return{color:"black"}},nh=function(t){return["/admin/users",t]};function rh(t,e){if(1&t&&(s.TgZ(0,"div",4),s._UZ(1,"mat-icon",5),s.ALo(2,"translate"),s.TgZ(3,"div",6),s.TgZ(4,"div",7),s.TgZ(5,"a",8),s._uU(6),s.ALo(7,"userFullName"),s.qZA(),s.TgZ(8,"span",9),s._uU(9),s.qZA(),s.YNc(10,th,3,0,"button",10),s.qZA(),s.TgZ(11,"div"),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.TgZ(14,"span",11),s._uU(15),s.ALo(16,"translate"),s.ALo(17,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.s9C("matTooltip",s.lcZ(2,11,"ADMIN_USER.ENTITY")),s.Q6J("ngStyle",s.DdM(21,eh)),s.xp6(4),s.Q6J("routerLink",s.VKq(22,nh,t.user.id)),s.xp6(1),s.hij(" ",s.lcZ(7,13,t.user)," "),s.xp6(3),s.hij(" \xa0#",t.user.id," "),s.xp6(1),s.Q6J("ngIf",t.authResolver.isPerunAdmin()),s.xp6(2),s.AsE(" ",s.lcZ(13,15,"ADMIN_USER.UUID"),": ",t.user.uuid," "),s.xp6(3),s.lnq(" ",s.lcZ(16,17,"ADMIN_USER.ENTITY"),", ",s.lcZ(17,19,"ADMIN_USER.USER_TYPE"),": ",t.getUserType()," ")}}let ih=(()=>{class t{constructor(t,e,n,r,i,o){this.route=t,this.usersService=e,this.sideMenuService=n,this.sideMenuItemService=r,this.dialog=i,this.authResolver=o,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{const e=t.userId;this.path=`/admin/users/${e}`,this.regex="/admin/users/\\d+",this.usersService.getUserById(e).subscribe(t=>{this.user=t;const e=this.sideMenuItemService.parseUser(t,this.path,this.regex);this.sideMenuService.setAdminItems([e]),this.loading=!1},()=>this.loading=!1)})}editUser(){const t=(0,tt.kZ)();t.width="450px",t.data={theme:"admin-theme",user:this.user},this.dialog.open($l,t).afterClosed().subscribe(t=>{t&&this.usersService.getUserById(this.user.id).subscribe(t=>{this.user=t})})}getUserType(){return this.user.serviceUser?"Service":"Person"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(b.Fv),s.Y36(u.D),s.Y36(a.V),s.Y36(y.uw),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,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"],["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"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"perun-web-apps-back-button"),s.YNc(2,Kl,1,0,"mat-spinner",1),s.YNc(3,rh,18,24,"div",2),s._UZ(4,"app-animated-router-outlet"),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading&&void 0!==e.user))},directives:[c.W,i.O5,h.A,E.$g,l.Hw,M.gM,i.PC,o.yS,x.lW],pipes:[f.X$,Xl.d],styles:[""]}),t})();var oh=n(71956),ah=n(15879),sh=n(31612),uh=n(40790),ch=n(95690),lh=n(68787),hh=n(4359);function fh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",5),s.NdJ("click",function(){return s.CHM(t),s.oxw().onLoad()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.EXT_SOURCES.LOAD")," "))}function dh(t,e){1&t&&s._UZ(0,"mat-spinner",6)}const ph=function(){return["id","name","type"]};function gh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-ext-sources-list",7),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("extSources",t.extSources)("filterValue",t.filterValue)("displayedColumns",s.DdM(4,ph))("pageSize",t.pageSize)}}let mh=(()=>{class t{constructor(t,e,n,r,i){this.extSourceService=t,this.notificator=e,this.tableConfigService=n,this.translate=r,this.authResolver=i,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=et.qy,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(t=>this.loadSuccess=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}applyFilter(t){this.filterValue=t}onLoad(){this.extSourceService.loadExtSourcesDefinitions().subscribe(()=>{this.notificator.showSuccess(this.loadSuccess),this.refreshTable()})}refreshTable(){this.loading=!0,this.extSourceService.getExtSources().subscribe(t=>{this.extSources=t,this.loading=!1})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.KG),s.Y36(w.V6),s.Y36(et.dB),s.Y36(f.sK),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-ext-sources"]],decls:8,vars:7,consts:[[1,"page-subtitle"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","filterValue","displayedColumns","pageSize","page",4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"extSources","filterValue","displayedColumns","pageSize","page"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,fh,3,3,"button",1),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(6,dh,1,0,"mat-spinner",3),s.YNc(7,gh,1,5,"app-ext-sources-list",4),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,5,"ADMIN.EXT_SOURCES.TITLE")),s.xp6(2),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","ADMIN.EXT_SOURCES.SEARCH"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[i.O5,at.L,x.lW,E.$g,hh.D],pipes:[f.X$],styles:[""]}),t})();var vh=n(7233),yh=n(67004),_h=n(86593);function wh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-users-list",14),s.NdJ("page",function(e){return s.CHM(t),s.oxw(2).pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw(2);s.Q6J("pageSize",t.pageSize)("displayedColumns",t.displayedColumns)("users",t.identities)("disableRouting",!0)("selection",t.selection)}}function bh(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,wh,1,5,"app-users-list",13),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf",void 0!==t.identities&&t.identities.length>0)}}function xh(t,e){1&t&&(s.TgZ(0,"app-alert",15),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.Q6J("alert_type","info"),s.xp6(1),s.hij(" ",s.lcZ(2,2,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function Eh(t,e){1&t&&(s.TgZ(0,"app-alert",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function Th(t,e){1&t&&s._UZ(0,"mat-spinner",17)}let Ah=(()=>{class t{constructor(t,e,n,r,i,o,a){this.dialogRef=t,this.data=e,this.tableConfigService=n,this.userManager=r,this.storeService=i,this.notificator=o,this.translate=a,this.loading=!1,this.selection=new v.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=et.Iz}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new L.NI("",[L.kI.required,L.kI.pattern(".*[\\S]+.*")])}onAdd(){let t,e;this.loading=!0,this.isService?(t=this.selection.selected[0].id,e=this.userId):(t=this.userId,e=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(t,e).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 t=[yh.r.USER_DEF_ORGANIZATION,yh.r.USER_DEF_PREFERRED_MAIL];t=t.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,t).subscribe(t=>{this.identities=this.filterIdentities(t),this.loading=!1},()=>{this.loading=!1})}onKeyInput(t){"Enter"===t.key&&this.onSearchByString()}filterIdentities(t){return t.filter(this.isService?t=>!t.serviceUser:t=>t.serviceUser)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(et.dB),s.Y36(b.Fv),s.Y36(w.d6),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-connect-identity-dialog"]],decls:26,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"],["mat-flat-button","","color","primary",1,"mr-2","search-btn",3,"disabled","click"],[4,"ngIf"],[3,"alert_type",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"pageSize","displayedColumns","users","disableRouting","selection","page",4,"ngIf"],[3,"pageSize","displayedColumns","users","disableRouting","selection","page"],[3,"alert_type"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.NdJ("keyup",function(t){return e.onKeyInput(t)}),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",2),s.TgZ(5,"mat-form-field",3),s.TgZ(6,"label"),s._UZ(7,"input",4),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"mat-error"),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA(),s.TgZ(12,"button",5),s.NdJ("click",function(){return e.onSearchByString()}),s.TgZ(13,"mat-icon"),s._uU(14,"search"),s.qZA(),s.qZA(),s.YNc(15,bh,2,1,"div",6),s.YNc(16,xh,3,4,"app-alert",7),s.YNc(17,Eh,3,3,"app-alert",8),s.qZA(),s.YNc(18,Th,1,0,"mat-spinner",9),s.TgZ(19,"div",10),s.TgZ(20,"button",11),s.NdJ("click",function(){return e.onCancel()}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.TgZ(23,"button",12),s.NdJ("click",function(){return e.onAdd()}),s._uU(24),s.ALo(25,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE")),s.xp6(5),s.s9C("placeholder",s.lcZ(8,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),s.Q6J("formControl",e.searchCtrl),s.xp6(3),s.hij(" ",s.lcZ(11,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(3),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.firstSearchDone),s.xp6(1),s.Q6J("ngIf",!e.loading&&e.firstSearchDone&&0===e.identities.length),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(3),s.hij(" ",s.lcZ(22,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),s.xp6(2),s.Q6J("disabled",0===e.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(25,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},directives:[y.uh,y.xY,O.KE,R.Nt,L.Fj,L.JJ,L.oH,O.TO,x.lW,l.Hw,i.O5,y.H8,_h.C,T.w,E.$g],pipes:[f.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),t})();function Sh(t,e){1&t&&s._UZ(0,"th",12)}function Ih(t,e){if(1&t&&(s.TgZ(0,"td",13),s._uU(1),s.ALo(2,"userFullName"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",s.lcZ(2,1,t)," ")}}function Ch(t,e){1&t&&s._UZ(0,"tr",14)}function Dh(t,e){1&t&&s._UZ(0,"tr",15)}let kh=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.userManager=n,this.notificator=r,this.translate=i,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.userId=this.data.userId,this.dataSource=new _.by([this.data.specificUser]),this.isService=this.data.isService}onConfirm(){let t,e;this.isService?(t=this.dataSource.data[0].id,e=this.userId):(t=this.userId,e=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(t,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.Fv),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-disconnect-identity-dialog"]],decls:24,vars:21,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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div"),s.TgZ(4,"div",1),s.TgZ(5,"p"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"div",2),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.TgZ(11,"table",3),s.ynx(12,4),s.YNc(13,Sh,1,0,"th",5),s.YNc(14,Ih,3,3,"td",6),s.BQk(),s.YNc(15,Ch,1,0,"tr",7),s.YNc(16,Dh,1,0,"tr",8),s.qZA(),s.qZA(),s.TgZ(17,"div",9),s.TgZ(18,"button",10),s.NdJ("click",function(){return e.onCancel()}),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.TgZ(21,"button",11),s.NdJ("click",function(){return e.onConfirm()}),s._uU(22),s.ALo(23,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,11,"DIALOGS.DISCONNECT_IDENTITY.TITLE")),s.xp6(2),s.Tol(e.theme),s.xp6(3),s.Oqu(s.lcZ(7,13,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION")),s.xp6(3),s.hij(" ",s.lcZ(10,15,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),s.xp6(2),s.Q6J("dataSource",e.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(3),s.hij(" ",s.lcZ(20,17,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),s.xp6(3),s.hij(" ",s.lcZ(23,19,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},directives:[y.uh,y.xY,_.BZ,_.w1,_.fO,_.Dz,_.as,_.nj,y.H8,x.lW,_.ge,_.ev,_.XQ,_.Gk],pipes:[f.X$,Xl.d],styles:[""]}),t})();function Nh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-refresh-button",7),s.NdJ("refresh",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}}function Zh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAdd()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE")," "))}function Mh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onRemove()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE")," ")}}function Oh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-users-list",10),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("pageSize",t.pageSize)("users",t.identities)("selection",t.selection)("displayedColumns",t.displayedColumns)}}function Rh(t,e){1&t&&(s.TgZ(0,"app-alert",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES")," "))}function Lh(t,e){1&t&&s._UZ(0,"mat-spinner",12)}let Uh=(()=>{class t{constructor(t,e,n,r,i,o){this.route=t,this.dialog=e,this.router=n,this.tableConfigService=r,this.userManager=i,this.authResolver=o,this.loading=!1,this.selection=new v.Ov(!1,[]),this.identities=[],this.tableId=et.Iz,this.displayedColumns=["select","id","user","name"]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.userId=t.userId,this.userManager.getSpecificUsersByUser(this.userId).subscribe(t=>{this.identities=t,this.loading=!1})})}refreshTable(){this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(t=>{this.identities=t,this.selection.clear(),this.loading=!1})}onAdd(){const t=(0,tt.kZ)();t.width="1250px",t.data={userId:this.userId,theme:"user-theme",isService:!1},this.dialog.open(Ah,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,tt.kZ)();t.width="650px",t.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],theme:"user-theme"},this.dialog.open(kh,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(y.uw),s.Y36(o.F0),s.Y36(et.dB),s.Y36(b.Fv),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-user-settings-service-identities"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"pageSize","users","selection","displayedColumns","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"pageSize","users","selection","displayedColumns","page"],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,Nh,1,0,"perun-web-apps-refresh-button",1),s.YNc(5,Zh,3,3,"button",2),s.YNc(6,Mh,3,4,"button",3),s.YNc(7,Oh,1,4,"app-users-list",4),s.YNc(8,Rh,3,3,"app-alert",5),s.qZA(),s.YNc(9,Lh,1,0,"mat-spinner",6)),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,7,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),s.xp6(2),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",void 0!==e.identities&&e.identities.length>0),s.xp6(1),s.Q6J("ngIf",!e.loading&&(void 0===e.identities||0===e.identities.length)),s.xp6(1),s.Q6J("ngIf",e.loading))},directives:[i.O5,ot.t,x.lW,_h.C,T.w,E.$g],pipes:[f.X$],styles:[""]}),t})();var Ph=n(56238),Fh=n(79996);function qh(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function zh(t,e){if(1&t&&(s.TgZ(0,"mat-option",14),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t.name," ")}}function jh(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"mat-form-field",8),s._UZ(2,"input",9),s.ALo(3,"translate"),s.TgZ(4,"mat-error"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"mat-form-field",8),s._UZ(8,"input",10),s.ALo(9,"translate"),s.TgZ(10,"mat-error"),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"mat-autocomplete",11,12),s.YNc(15,zh,2,2,"mat-option",13),s.ALo(16,"async"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(14),e=s.oxw();s.xp6(2),s.s9C("placeholder",s.lcZ(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),s.Q6J("formControl",e.loginControl),s.xp6(3),s.hij(" ",s.lcZ(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),s.xp6(3),s.s9C("placeholder",s.lcZ(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),s.Q6J("formControl",e.extSourcesControl)("matAutocomplete",t),s.xp6(3),s.hij(" ",s.lcZ(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),s.xp6(2),s.Q6J("displayWith",e.displayFn),s.xp6(2),s.Q6J("ngForOf",s.lcZ(16,17,e.filteredExtSources))}}let Yh=(()=>{class t{constructor(t,e,n,r,i,o){this.dialogRef=t,this.data=e,this.extSourcesManagerService=n,this.usersManagerService=r,this.translate=i,this.notificator=o,this.extSources=[],i.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.loginControl=new L.NI("",[L.kI.required,L.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new L.NI("",[L.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,Ph.O)(""),(0,Fh.U)(t=>this._filter(t))),this.extSourcesManagerService.getExtSources().subscribe(t=>{this.extSources=t,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,Ph.O)(""),(0,Fh.U)(t=>this._filter(t))),this.loading=!1},()=>this.loading=!1)}displayFn(t){return t?t.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(t){const e="string"==typeof t?t.toLowerCase():t.name.toLowerCase;return this.extSources.filter(t=>t.name.toLowerCase().includes(e))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KG),s.Y36(b.Fv),s.Y36(f.sK),s.Y36(w.V6))},t.\u0275cmp=s.Xpm({type:t,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","","type","text","required","",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.YNc(4,qh,1,0,"mat-spinner",2),s.YNc(5,jh,17,19,"div",3),s.qZA(),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.onAdd()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),s.xp6(3),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loginControl.invalid||e.extSourcesControl.invalid||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},directives:[y.uh,y.xY,i.O5,y.H8,x.lW,E.$g,O.KE,R.Nt,L.Fj,L.Q7,L.JJ,L.oH,O.TO,ye.ZL,ye.XC,i.sg,z.ey],pipes:[f.X$,i.Ov],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.auto-width[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:auto!important}.auto-width[_ngcontent-%COMP%] .mat-select-value[_ngcontent-%COMP%]{max-width:100%;width:auto}.pre-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),t})();var Bh=n(81954),Gh=n(23888);function Jh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().addIdentity()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"USER_DETAIL.IDENTITIES.ADD")))}function Vh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().removeIdentity()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.Oqu(s.lcZ(2,2,"USER_DETAIL.IDENTITIES.REMOVE"))}}function Hh(t,e){1&t&&s._UZ(0,"mat-spinner",9)}function Qh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"perun-web-apps-user-ext-sources-list",10),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("displayedColumns",t.displayedColumns)("selection",t.selection)("userExtSources",t.userExtSources)("pageSize",t.pageSize)}}let Wh=(()=>{class t{constructor(t,e,n,r,i,o,a){this.usersManagerService=t,this.storage=e,this.registrarManagerService=n,this.dialog=r,this.route=i,this.tableConfigService=o,this.authResolver=a,this.userExtSources=[],this.selection=new v.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=et.gG}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.userId=t.userId}),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.usersManagerService.getRichUserExtSources(this.userId).subscribe(t=>{this.userExtSources=t,this.loading=!1},()=>this.loading=!1)}addIdentity(){const t=(0,tt.kZ)();t.width="400px",t.data={userId:this.userId},this.dialog.open(Yh,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeIdentity(){const t=(0,tt.kZ)();t.width="400px",t.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(Bh.Lc,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.Fv),s.Y36(w.d6),s.Y36(b.tk),s.Y36(y.uw),s.Y36(o.gz),s.Y36(et.dB),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-user-identities"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","ml-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"admin-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","selection","userExtSources","pageSize","page"]],template:function(t,e){1&t&&(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 e.refreshTable()}),s.qZA(),s.YNc(4,Jh,3,3,"button",2),s.YNc(5,Vh,3,4,"button",3),s.TgZ(6,"div",4),s.YNc(7,Hh,1,0,"mat-spinner",5),s.qZA(),s.YNc(8,Qh,2,4,"div",6)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,"USER_DETAIL.IDENTITIES.TITLE")),s.xp6(3),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,x.lW,E.$g,Gh.j],pipes:[f.X$],styles:[""]}),t})();function $h(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function Xh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",5),s.TgZ(1,"mat-form-field"),s.TgZ(2,"input",6),s.NdJ("change",function(){return s.CHM(t),s.oxw().makePath()}),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-error"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"mat-form-field"),s.TgZ(8,"input",7),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().description=e}),s.ALo(9,"translate"),s.qZA(),s.qZA(),s.TgZ(10,"mat-form-field"),s._UZ(11,"input",8),s.ALo(12,"translate"),s.TgZ(13,"mat-error"),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.qZA(),s.TgZ(16,"mat-form-field"),s._UZ(17,"input",8),s.ALo(18,"translate"),s.TgZ(19,"mat-error"),s._uU(20),s.ALo(21,"translate"),s.qZA(),s.qZA(),s.TgZ(22,"mat-form-field"),s._UZ(23,"input",8),s.ALo(24,"translate"),s.TgZ(25,"mat-error"),s._uU(26),s.ALo(27,"translate"),s.qZA(),s.qZA(),s.TgZ(28,"span"),s._uU(29),s.ALo(30,"translate"),s.qZA(),s.TgZ(31,"mat-checkbox",9),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().status=e}),s._uU(32),s.ALo(33,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.s9C("placeholder",s.lcZ(3,17,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),s.Q6J("formControl",t.nameControl),s.xp6(3),s.Oqu(s.lcZ(6,19,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_NAME")),s.xp6(3),s.s9C("placeholder",s.lcZ(9,21,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),s.Q6J("ngModel",t.description),s.xp6(3),s.s9C("placeholder",s.lcZ(12,23,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),s.Q6J("formControl",t.delayControl),s.xp6(3),s.Oqu(s.lcZ(15,25,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),s.xp6(3),s.s9C("placeholder",s.lcZ(18,27,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),s.Q6J("formControl",t.recurrenceControl),s.xp6(3),s.Oqu(s.lcZ(21,29,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),s.xp6(3),s.s9C("placeholder",s.lcZ(24,31,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),s.Q6J("formControl",t.pathControl),s.xp6(3),s.Oqu(s.lcZ(27,33,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),s.xp6(3),s.Oqu(s.lcZ(30,35,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")),s.xp6(2),s.Q6J("ngModel",t.status),s.xp6(1),s.Oqu(s.lcZ(33,37,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT"))}}function Kh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",10),s.TgZ(1,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",12),s.NdJ("click",function(){s.CHM(t);const e=s.oxw();return e.asEdit?e.onEdit():e.onCreate()}),s._uU(5),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.nameControl.invalid||t.delayControl.invalid||t.recurrenceControl.invalid||t.pathControl.invalid),s.xp6(1),s.hij(" ",t.buttonText," ")}}let tf=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.serviceManager=n,this.notificator=r,this.translate=i,this.loading=!1,this.status=!0,this.nameControl=new L.NI("",[L.kI.required]),this.delayControl=new L.NI(10,[L.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new L.NI(2,[L.kI.pattern("^[0-9]*$")]),this.pathControl=new L.NI("",[L.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.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,id:0,beanName:""}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),this.dialogRef.close(!0),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,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})}onCancel(){this.dialogRef.close(!1)}makePath(){const t="./".concat(this.nameControl.value);this.pathControl.setValue(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KK),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-create-service-dialog"]],decls:6,vars:7,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"],["matInput","","required","",3,"formControl","placeholder","change"],["matInput","",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],[1,"ml-5",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div"),s.YNc(3,$h,1,0,"mat-spinner",1),s.YNc(4,Xh,34,39,"div",2),s.YNc(5,Kh,6,5,"div",3),s.qZA()),2&t&&(s.xp6(1),s.Oqu(e.title),s.xp6(1),s.Tol(e.theme),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[y.uh,i.O5,E.$g,y.xY,O.KE,R.Nt,L.Fj,L.Q7,L.JJ,L.oH,O.TO,L.On,q.oG,y.H8,x.lW],pipes:[f.X$],styles:[""]}),t})();function ef(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function nf(t,e){1&t&&s._UZ(0,"th",15)}function rf(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.name," ")}}function of(t,e){1&t&&s._UZ(0,"tr",17)}function af(t,e){1&t&&s._UZ(0,"tr",18)}function sf(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",8),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",9),s.ynx(8,10),s.YNc(9,nf,1,0,"th",11),s.YNc(10,rf,2,1,"td",12),s.BQk(),s.YNc(11,of,1,0,"tr",13),s.YNc(12,af,1,0,"tr",14),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,5,"DIALOGS.DELETE_SERVICE.DESCRIPTION")),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.DELETE_SERVICE.ASK")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}let uf=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.serviceManager=n,this.notificator=r,this.translate=i,this.displayedColumns=["name"],this.dataSource=new _.by(this.data.services),this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.services=this.data.services}recDelete(){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).subscribe(()=>{this.recDelete(),this.loading=!1},()=>this.loading=!1)}onDelete(){this.recDelete()}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KK),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-delete-service-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div"),s.YNc(4,ef,1,0,"mat-spinner",1),s.YNc(5,sf,13,9,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onDelete()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"DIALOGS.DELETE_SERVICE.TITLE")),s.xp6(2),s.Tol(e.theme),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.DELETE_SERVICE.CANCEL"),""),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.DELETE_SERVICE.DELETE"),""))},directives:[y.uh,i.O5,y.H8,x.lW,E.$g,y.xY,_.BZ,_.w1,_.fO,_.Dz,_.as,_.nj,_.ge,_.ev,_.XQ,_.Gk],pipes:[f.X$],styles:[""]}),t})();function cf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().createService()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.SERVICES.CREATE"),""))}function lf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().deleteService()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.SERVICES.DELETE"),"")}}function hf(t,e){1&t&&s._UZ(0,"mat-spinner",9)}function ff(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-services-list",10),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("pageSize",t.pageSize)("selection",t.selection)("services",t.services)("filterValue",t.filterValue)}}let df=(()=>{class t{constructor(t,e,n,r){this.tableConfigService=t,this.serviceManager=e,this.dialog=n,this.authResolver=r,this.selection=new v.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=et.NL}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.serviceManager.getServices().subscribe(t=>{this.services=t,this.refreshTable()})}createService(){const t=(0,tt.kZ)();t.width="600px",t.data={theme:"admin-theme"},this.dialog.open(tf,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}deleteService(){const t=(0,tt.kZ)();t.width="600px",t.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(uf,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(t=>{this.services=t,this.selection.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(et.dB),s.Y36(b.KK),s.Y36(y.uw),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","ml-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"ml-2",3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"pageSize","selection","services","filterValue","page",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"pageSize","selection","services","filterValue","page"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,cf,3,3,"button",2),s.YNc(6,lf,3,4,"button",3),s.TgZ(7,"perun-web-apps-immediate-filter",4),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(8,hf,1,0,"mat-spinner",5),s.YNc(9,ff,1,4,"app-services-list",6),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,6,"ADMIN.SERVICES.TITLE")),s.xp6(3),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","ADMIN.SERVICES.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,lt.Q],pipes:[f.X$],styles:[""]}),t})();var pf=n(88884);function gf(t,e){1&t&&s._UZ(0,"mat-spinner",5)}const mf=function(){return["id","name","vo","facility","description"]};function vf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-resources-list",6),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("pageSize",t.pageSize)("resources",t.resources)("filterValue",t.filterValue)("displayedColumns",s.DdM(4,mf))}}let yf=(()=>{class t{constructor(t,e,n){this.userManager=t,this.tableConfigService=e,this.route=n,this.resources=[],this.tableId=et.kO,this.filterValue=""}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.userManager.getAssignedRichResourcesForUser(t.userId).subscribe(t=>{this.resources=t,this.loading=!1})})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}resourceFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.Fv),s.Y36(et.dB),s.Y36(o.gz))},t.\u0275cmp=s.Xpm({type:t,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,"pageSize","resources","filterValue","displayedColumns","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","resources","filterValue","displayedColumns","page"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(t){return e.resourceFilter(t)}),s.qZA(),s.YNc(6,gf,1,0,"mat-spinner",3),s.YNc(7,vf,1,5,"perun-web-apps-resources-list",4),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,4,"USER_DETAIL.RESOURCES.TITLE")),s.xp6(3),s.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,at.L,i.O5,E.$g,pf.C],pipes:[f.X$],styles:[""]}),t})();var _f=n(13572),wf=n(40695),bf=n(41186);const xf=["list"];function Ef(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function Tf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-attributes-list",8,9),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("pageSize",t.pageSize)("attributes",t.attributes)("selection",t.selection)}}let Af=(()=>{class t{constructor(t,e,n,r,i){this.dialog=t,this.attributesManager=e,this.tableConfigService=n,this.userService=r,this.route=i,this.loading=!1,this.selection=new v.Ov(!0,[]),this.tableId=et.rF,this.attributes=[]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.params.subscribe(t=>{this.userService.getUserExtSourceById(t.identityId).subscribe(t=>{this.userExtSource=t,this.refreshTable()})})}refreshTable(){this.loading=!0,this.attributesManager.getUserExtSourceAttributes(this.userExtSource.id).subscribe(t=>{this.attributes=(0,tt.MX)(t),this.selection.clear(),this.loading=!1})}onAdd(){const t=(0,tt.kZ)();t.width="1050px",t.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(wf.n,t).afterClosed().subscribe(t=>{"saved"===t&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const t=(0,tt.kZ)();t.width="450px",t.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(Bh.wA,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,tt.kZ)();t.width="450px",t.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(_f.k,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(b.H8),s.Y36(et.dB),s.Y36(b.Fv),s.Y36(o.gz))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-identity-detail"]],viewQuery:function(t,e){if(1&t&&s.Gf(xf,5),2&t){let t;s.iGM(t=s.CRH())&&(e.list=t.first)}},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","attributes","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","attributes","selection","page"],["list",""]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(5,"button",2),s.NdJ("click",function(){return e.onSave()}),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"button",3),s.NdJ("click",function(){return e.onAdd()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.TgZ(11,"button",4),s.NdJ("click",function(){return e.onRemove()}),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.YNc(14,Ef,1,0,"mat-spinner",5),s.YNc(15,Tf,2,3,"perun-web-apps-attributes-list",6),s.qZA()),2&t&&(s.xp6(2),s.AsE("",s.lcZ(3,9,"SHARED.IDENTITY_DETAIL.TITLE")," - ",e.userExtSource?e.userExtSource.extSource.name:"",""),s.xp6(3),s.Q6J("disabled",0===e.selection.selected.length),s.xp6(1),s.Oqu(s.lcZ(7,11,"SHARED.IDENTITY_DETAIL.SAVE")),s.xp6(3),s.Oqu(s.lcZ(10,13,"SHARED.IDENTITY_DETAIL.ADD")),s.xp6(2),s.Q6J("disabled",0===e.selection.selected.length),s.xp6(1),s.Oqu(s.lcZ(13,15,"SHARED.IDENTITY_DETAIL.REMOVE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,x.lW,i.O5,E.$g,bf.p],pipes:[f.X$],styles:[""]}),t})();function Sf(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function If(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",12),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).editService()}),s.TgZ(1,"mat-icon"),s._uU(2,"edit"),s.qZA(),s.qZA()}}const Cf=function(){return{color:"black"}},Df=function(t){return["/admin/services",t]};function kf(t,e){if(1&t&&(s.TgZ(0,"div",4),s._UZ(1,"mat-icon",5),s.ALo(2,"translate"),s.TgZ(3,"div",6),s.TgZ(4,"div",7),s.TgZ(5,"a",8),s._uU(6),s.qZA(),s.TgZ(7,"span",9),s._uU(8),s.qZA(),s.YNc(9,If,3,0,"button",10),s.qZA(),s.TgZ(10,"span",11),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.s9C("matTooltip",s.lcZ(2,8,"SERVICE_DETAIL.ENTITY")),s.Q6J("ngStyle",s.DdM(12,Cf)),s.xp6(4),s.Q6J("routerLink",s.VKq(13,Df,t.service.id)),s.xp6(1),s.hij(" ",t.service.name," "),s.xp6(2),s.hij(" \xa0 #",t.service.id," "),s.xp6(1),s.Q6J("ngIf",t.authResolver.isPerunAdmin()),s.xp6(2),s.AsE(" ",s.lcZ(12,10,"SERVICE_DETAIL.DESCRIPTION"),": ",t.service.description," ")}}let Nf=(()=>{class t{constructor(t,e,n,r,i,o){this.route=t,this.serviceManager=e,this.sideMenuService=n,this.sideMenuItemService=r,this.dialog=i,this.authResolver=o,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.serviceManager.getServiceById(t.serviceId).subscribe(t=>{this.service=t;const e=this.sideMenuItemService.parseService(this.service);this.sideMenuService.setAdminItems([e]),this.loading=!1},()=>this.loading=!1)})}editService(){const t=(0,tt.kZ)();t.width="600px",t.data={theme:"service-theme",service:this.service},this.dialog.open(tf,t).afterClosed().subscribe(t=>{t&&this.ngOnInit()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(b.KK),s.Y36(u.D),s.Y36(a.V),s.Y36(y.uw),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-service-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","service-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","d-flex page-title-headtitle",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"service-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["aria-label","Edit service","mat-icon-button","",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"perun-web-apps-back-button"),s.YNc(2,Sf,1,0,"mat-spinner",1),s.YNc(3,kf,13,15,"div",2),s._UZ(4,"app-animated-router-outlet"),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading&&void 0!==e.service))},directives:[c.W,i.O5,h.A,E.$g,l.Hw,M.gM,i.PC,o.yS,x.lW],pipes:[f.X$],styles:[""],data:{animation:[ut.Ji]}}),t})(),Zf=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-service-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&s._UZ(0,"perun-web-apps-menu-buttons-field",0),2&t&&s.Q6J("items",e.navItems)("size","small")},directives:[g.L],styles:[""]}),t})();function Mf(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function Of(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",5),s.TgZ(1,"perun-web-apps-immediate-filter",6),s.NdJ("filter",function(e){return s.CHM(t),s.oxw().applyFilter(e)}),s.qZA(),s._UZ(2,"app-attr-def-list",7),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),s.xp6(1),s.Q6J("selection",t.selection)("definitions",t.attrDefinitions)("disableRouting",!0)("filterValue",t.filterValue)}}function Rf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",10),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAdd()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),s.xp6(2),s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}let Lf=(()=>{class t{constructor(t,e,n,r,i,o){this.dialogRef=t,this.data=e,this.serviceManager=n,this.attributesManager=r,this.notificator=i,this.translate=o,this.attrDefinitions=[],this.selection=new v.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(t=>{this.attrDefinitions=t,this.loading=!1})}onAdd(){this.loading=!0;const t=this.selection.selected.map(t=>t.id);this.serviceManager.addRequiredAttributes(this.serviceId,t).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(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KK),s.Y36(b.H8),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,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,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,Mf,1,0,"mat-spinner",1),s.YNc(5,Of,3,5,"div",2),s.YNc(6,Rf,7,7,"div",3),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[y.uh,i.O5,E.$g,y.xY,at.L,ne,y.H8,x.lW],pipes:[f.X$],styles:[""]}),t})();function Uf(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function Pf(t,e){1&t&&s._UZ(0,"th",15)}function Ff(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.friendlyName," ")}}function qf(t,e){1&t&&s._UZ(0,"tr",17)}function zf(t,e){1&t&&s._UZ(0,"tr",18)}function jf(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",8),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",9),s.ynx(8,10),s.YNc(9,Pf,1,0,"th",11),s.YNc(10,Ff,2,1,"td",12),s.BQk(),s.YNc(11,qf,1,0,"tr",13),s.YNc(12,zf,1,0,"tr",14),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}let Yf=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.serviceManager=n,this.notificator=r,this.translate=i,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new _.by(this.data.attrDefinitions)}onConfirm(){this.loading=!0;const t=this.dataSource.data.map(t=>t.id);this.serviceManager.removeRequiredAttributes(this.serviceId,t).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 t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KK),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div"),s.YNc(4,Uf,1,0,"mat-spinner",1),s.YNc(5,jf,13,9,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onConfirm()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),s.xp6(2),s.Tol(e.theme),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL"),""),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE"),""))},directives:[y.uh,i.O5,y.H8,x.lW,E.$g,y.xY,_.BZ,_.w1,_.fO,_.Dz,_.as,_.nj,_.ge,_.ev,_.XQ,_.Gk],pipes:[f.X$],styles:[""]}),t})();function Bf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-refresh-button",7),s.NdJ("refresh",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}}function Gf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAdd()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function Jf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onRemove()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function Vf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-immediate-filter",10),s.NdJ("filter",function(e){return s.CHM(t),s.oxw().applyFilter(e)}),s.qZA()}2&t&&s.Q6J("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER")}function Hf(t,e){1&t&&s._UZ(0,"mat-spinner",11)}function Qf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-attr-def-list",12),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)})("refreshEvent",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("pageSize",t.pageSize)("definitions",t.attrDefinitions)("selection",t.selection)("filterValue",t.filterValue)("disableRouting",!t.authResolver.isPerunAdmin())}}let Wf=(()=>{class t{constructor(t,e,n,r,i){this.route=t,this.tableConfigService=e,this.attributeManager=n,this.dialog=r,this.authResolver=i,this.loading=!1,this.filterValue="",this.selection=new v.Ov(!0,[]),this.attrDefinitions=[],this.tableId=et.JO}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.serviceId=t.serviceId,this.refreshTable()})}refreshTable(){this.loading=!0,this.attributeManager.getRequiredAttributesDefinition(this.serviceId).subscribe(t=>{this.selection.clear(),this.attrDefinitions=t,this.loading=!1})}onAdd(){const t=(0,tt.kZ)();t.width="950px",t.data={serviceId:this.serviceId,theme:"service-theme"},this.dialog.open(Lf,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,tt.kZ)();t.width="650px",t.data={serviceId:this.serviceId,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(Yf,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(et.dB),s.Y36(b.H8),s.Y36(y.uw),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-service-required-attributes"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","ml-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","ml-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","definitions","selection","filterValue","disableRouting","page","refreshEvent",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","definitions","selection","filterValue","disableRouting","page","refreshEvent"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,Bf,1,0,"perun-web-apps-refresh-button",1),s.YNc(5,Gf,3,3,"button",2),s.YNc(6,Jf,3,4,"button",3),s.YNc(7,Vf,1,1,"perun-web-apps-immediate-filter",4),s.YNc(8,Hf,1,0,"mat-spinner",5),s.YNc(9,Qf,1,5,"app-attr-def-list",6),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,7,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),s.xp6(2),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[i.O5,ot.t,x.lW,at.L,E.$g,ne],pipes:[f.X$],styles:[""]}),t})();function $f(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-refresh-button",7),s.NdJ("refresh",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}}function Xf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAdd()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "))}function Kf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onRemove()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," ")}}function td(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-users-list",10),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("pageSize",t.pageSize)("users",t.associatedUsers)("selection",t.selection)("displayedColumns",t.displayedColumns)}}function ed(t,e){1&t&&(s.TgZ(0,"app-alert",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS")," "))}function nd(t,e){1&t&&s._UZ(0,"mat-spinner",12)}let rd=(()=>{class t{constructor(t,e,n,r,i){this.route=t,this.dialog=e,this.router=n,this.tableConfigService=r,this.userManager=i,this.loading=!1,this.selection=new v.Ov(!1,[]),this.associatedUsers=[],this.tableId=et.It,this.displayedColumns=["select","id","user","name"]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.userId=t.userId,this.userManager.getUsersBySpecificUser(this.userId).subscribe(t=>{this.associatedUsers=t,this.loading=!1})})}refreshTable(){this.loading=!0,this.userManager.getUsersBySpecificUser(this.userId).subscribe(t=>{this.associatedUsers=t,this.selection.clear(),this.loading=!1})}onAdd(){const t=(0,tt.kZ)();t.width="1250px",t.data={userId:this.userId,theme:"user-theme",isService:!0},this.dialog.open(Ah,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,tt.kZ)();t.width="650px",t.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],isService:!0,theme:"user-theme"},this.dialog.open(kh,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(y.uw),s.Y36(o.F0),s.Y36(et.dB),s.Y36(b.Fv))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-user-settings-associated-users"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"pageSize","users","selection","displayedColumns","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"pageSize","users","selection","displayedColumns","page"],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,$f,1,0,"perun-web-apps-refresh-button",1),s.YNc(5,Xf,3,3,"button",2),s.YNc(6,Kf,3,4,"button",3),s.YNc(7,td,1,4,"app-users-list",4),s.YNc(8,ed,3,3,"app-alert",5),s.qZA(),s.YNc(9,nd,1,0,"mat-spinner",6)),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,7,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),s.xp6(2),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",void 0!==e.associatedUsers&&e.associatedUsers.length>0),s.xp6(1),s.Q6J("ngIf",!e.loading&&(void 0===e.associatedUsers||0===e.associatedUsers.length)),s.xp6(1),s.Q6J("ngIf",e.loading))},directives:[i.O5,ot.t,x.lW,_h.C,T.w,E.$g],pipes:[f.X$],styles:[""]}),t})();var id=n(60547),od=n(94357);function ad(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-refresh-button",7),s.NdJ("refresh",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}}function sd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onRemove()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function ud(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAllow()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function cd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onBlock()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function ld(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-immediate-filter",10),s.NdJ("filter",function(e){return s.CHM(t),s.oxw().applyFilter(e)}),s.qZA()}2&t&&s.Q6J("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER")}function hd(t,e){1&t&&s._UZ(0,"mat-spinner",11)}const fd=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function dd(t,e){if(1&t&&s._UZ(0,"app-perun-web-apps-destination-list",12),2&t){const t=s.oxw();s.Q6J("destinations",t.destinations)("selection",t.selection)("pageSize",t.pageSize)("displayedColumns",s.DdM(5,fd))("filterValue",t.filterValue)}}let pd=(()=>{class t{constructor(t,e,n,r,i,o,a){this.route=t,this.tableConfigService=e,this.serviceManager=n,this.notificator=r,this.translate=i,this.dialog=o,this.authResolver=a,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new v.Ov(!0,[]),this.tableId=et.Cf}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.serviceId=t.serviceId,this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getAllRichDestinationsForService(this.serviceId).subscribe(t=>{this.selection.clear(),this.filterValue="",this.destinations=t,this.loading=!1})}blockServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.blockServiceOnDestination(this.serviceId,e.id).subscribe(()=>{this.blockServiceOnDestinations(t)},()=>this.loading=!1)}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selection.selected)}allowServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.unblockServiceOnDestinationById(this.serviceId,e.id).subscribe(()=>{this.allowServiceOnDestinations(t)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selection.selected)}onRemove(){const t=(0,tt.kZ)();t.width="500px",t.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(id.u,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(et.dB),s.Y36(b.KK),s.Y36(w.V6),s.Y36(f.sK),s.Y36(y.uw),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-service-destinations"]],decls:11,vars:10,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","selection","pageSize","displayedColumns","filterValue",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"destinations","selection","pageSize","displayedColumns","filterValue"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,ad,1,0,"perun-web-apps-refresh-button",1),s.YNc(5,sd,3,4,"button",2),s.YNc(6,ud,3,4,"button",3),s.YNc(7,cd,3,4,"button",2),s.YNc(8,ld,1,1,"perun-web-apps-immediate-filter",4),s.YNc(9,hd,1,0,"mat-spinner",5),s.YNc(10,dd,1,6,"app-perun-web-apps-destination-list",6),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,8,"SERVICE_DETAIL.DESTINATIONS.TITLE")),s.xp6(2),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[i.O5,ot.t,x.lW,at.L,E.$g,od.q],pipes:[f.X$],styles:[""]}),t})();function gd(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function md(t,e){1&t&&s._UZ(0,"th",13)}function vd(t,e){if(1&t&&(s.TgZ(0,"td",14),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.name," ")}}function yd(t,e){1&t&&s._UZ(0,"tr",15)}function _d(t,e){1&t&&s._UZ(0,"tr",16)}function wd(t,e){if(1&t&&(s.TgZ(0,"div",5),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",6),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",7),s.ynx(8,8),s.YNc(9,md,1,0,"th",9),s.YNc(10,vd,2,1,"td",10),s.BQk(),s.YNc(11,yd,1,0,"tr",11),s.YNc(12,_d,1,0,"tr",12),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}function bd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",17),s.TgZ(1,"button",18),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",19),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.loading),s.xp6(1),s.hij(" ",s.lcZ(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}let xd=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.notificator=n,this.translate=r,this.ownersManagerService=i,this.displayedColumns=["name"],this.owners=[]}ngOnInit(){this.dataSource=new _.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(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.aC))},t.\u0275cmp=s.Xpm({type:t,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"],["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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,gd,1,0,"mat-spinner",1),s.YNc(4,wd,13,9,"div",2),s.YNc(5,bd,7,7,"div",3)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,4,"DIALOGS.DELETE_OWNER.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[y.uh,i.O5,E.$g,y.xY,_.BZ,_.w1,_.fO,_.Dz,_.as,_.nj,_.ge,_.ev,_.XQ,_.Gk,y.H8,x.lW],pipes:[f.X$],styles:[""]}),t})();function Ed(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function Td(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ADD_OWNER.FILL_CONTACT")," "))}function Ad(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ADD_OWNER.CONTACT_FORMAT")," "))}function Sd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",5),s.TgZ(2,"mat-form-field"),s._UZ(3,"input",6),s.ALo(4,"translate"),s.TgZ(5,"mat-error"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.qZA(),s.TgZ(8,"mat-form-field"),s._UZ(9,"input",6),s.ALo(10,"translate"),s.YNc(11,Td,3,3,"mat-error",3),s.YNc(12,Ad,3,3,"mat-error",3),s.qZA(),s.TgZ(13,"mat-form-field"),s.TgZ(14,"mat-select",7),s.NdJ("valueChange",function(e){return s.CHM(t),s.oxw().type=e}),s.TgZ(15,"mat-option",8),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"mat-option",9),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(21,"div",10),s.TgZ(22,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(23),s.ALo(24,"translate"),s.qZA(),s.TgZ(25,"div",12),s.ALo(26,"translate"),s.TgZ(27,"button",13),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(28),s.ALo(29,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.s9C("placeholder",s.lcZ(4,15,"DIALOGS.ADD_OWNER.NAME")),s.Q6J("formControl",t.nameCtrl),s.xp6(3),s.hij(" ",s.lcZ(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),s.xp6(3),s.s9C("placeholder",s.lcZ(10,19,"DIALOGS.ADD_OWNER.CONTACT")),s.Q6J("formControl",t.contactCtrl),s.xp6(2),s.Q6J("ngIf",t.contactCtrl.hasError("required")),s.xp6(1),s.Q6J("ngIf",t.contactCtrl.invalid&&!t.contactCtrl.hasError("required")),s.xp6(2),s.Q6J("value",t.type),s.xp6(2),s.Oqu(s.lcZ(17,21,"DIALOGS.ADD_OWNER.TYPE1")),s.xp6(3),s.Oqu(s.lcZ(20,23,"DIALOGS.ADD_OWNER.TYPE2")),s.xp6(4),s.hij(" ",s.lcZ(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),s.Q6J("matTooltipDisabled",t.nameCtrl.valid&&t.contactCtrl.valid),s.xp6(2),s.Q6J("disabled",t.nameCtrl.invalid||t.contactCtrl.invalid),s.xp6(1),s.hij(" ",s.lcZ(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}let Id=(()=>{class t{constructor(t,e,n,r){this.dialogRef=t,this.notificator=e,this.ownersManagerService=n,this.translate=r,this.type="1",this.emailRegex=/^(([^<>+()[\]\\.,;:\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]{2,3}))$/,r.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.nameCtrl=new L.NI(null,[L.kI.required,L.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new L.NI(null,[L.kI.required,L.kI.pattern(this.emailRegex)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number.parseInt(this.type,10)}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(w.V6),s.Y36(b.aC),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-add-owner-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"],[3,"value","valueChange"],["value","1"],["value","0"],["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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,Ed,1,0,"mat-spinner",2),s.YNc(5,Sd,30,31,"div",3),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"DIALOGS.ADD_OWNER.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[y.uh,i.O5,E.$g,y.xY,O.KE,R.Nt,L.Fj,L.Q7,L.JJ,L.oH,O.TO,P.gD,z.ey,y.H8,x.lW,M.gM],pipes:[f.X$],styles:[""]}),t})();var Cd=n(17767);function Dd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().addOwner()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.OWNERS.ADD")," "))}function kd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().removeOwner()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",!t.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.OWNERS.DELETE")," ")}}function Nd(t,e){1&t&&s._UZ(0,"mat-spinner",10)}function Zd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-owners-list",11),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("owners",t.owners)("selection",t.selected)}}let Md=(()=>{class t{constructor(t,e,n,r){this.ownersManagerService=t,this.tableConfigService=e,this.dialog=n,this.guiAuthResolver=r,this.owners=[],this.selected=new v.Ov(!0,[]),this.filterValue="",this.tableId=et.v1}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),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(t=>{this.owners=t,this.selected.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}addOwner(){const t=(0,tt.kZ)();t.width="400px",t.data={},this.dialog.open(Id,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeOwner(){const t=(0,tt.kZ)();t.width="400px",t.data=this.selected.selected,this.dialog.open(xd,t).afterClosed().subscribe(t=>{t&&(this.selected.clear(),this.refreshTable())})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.aC),s.Y36(et.dB),s.Y36(y.uw),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-owners"]],decls:10,vars:8,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","owners","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","owners","selection","page"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",2),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,Dd,3,3,"button",3),s.YNc(6,kd,3,4,"button",4),s.TgZ(7,"perun-web-apps-immediate-filter",5),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(8,Nd,1,0,"mat-spinner",6),s.YNc(9,Zd,1,4,"perun-web-apps-owners-list",7),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,6,"ADMIN.OWNERS.TITLE")),s.xp6(3),s.Q6J("ngIf",e.addAuth),s.xp6(1),s.Q6J("ngIf",e.removeAuth),s.xp6(1),s.Q6J("placeholder","ADMIN.OWNERS.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,Cd.Q],pipes:[f.X$],styles:[""]}),t})();var Od=n(60007);function Rd(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function Ld(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-facilities-list",6),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("filterValue",t.filterValue)("facilities",t.facilities)("displayedColumns",t.displayedColumns)("pageSize",t.pageSize)}}const Ud=[{path:"",component:p,children:[{path:"",component:m,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:ue,data:{animation:"AdminAttributesPage"}},{path:"users",component:Gl.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:Md,data:{animation:"AdminOwnersPage"}},{path:"services",component:df,data:{animation:"AdminServicesPage"}},{path:"visualizer",component:ce,children:[{path:"",component:fe,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:he,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Se,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:Bl,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:mh,data:{animation:"AdminExtSourcesPage"}}]},{path:"users/:userId",component:ih,children:[{path:"",component:oh.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:ch.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:ah.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:sh.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:Wh,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:(()=>{class t{constructor(t,e,n){this.facilityManager=t,this.tableConfigService=e,this.route=n,this.facilities=[],this.filterValue="",this.tableId=et.zW,this.displayedColumns=["id","name","description"]}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.userId=t.userId,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe(t=>{this.facilities=t.map(t=>({facility:t})),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.IQ),s.Y36(et.dB),s.Y36(o.gz))},t.\u0275cmp=s.Xpm({type:t,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,"filterValue","facilities","displayedColumns","pageSize","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"filterValue","facilities","displayedColumns","pageSize","page"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(6,Rd,1,0,"mat-spinner",3),s.YNc(7,Ld,1,4,"perun-web-apps-facilities-list",4),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,4,"USER_DETAIL.FACILITIES.TITLE")),s.xp6(3),s.Q6J("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,at.L,i.O5,E.$g,Od.X],pipes:[f.X$],styles:[""]}),t})(),data:{animation:"UserFacilitiesPage"}},{path:"resources",component:yf,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Af,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:vh.t,data:{animation:"UserRolesPage"}},{path:"settings",component:uh.L,children:[{path:"",component:lh.x,data:{animation:"UserSettingsOverviewPage"}},{path:"service-identities",component:Uh,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:rd,data:{animation:"AssociatedUsersPage"}}]}]},{path:"services/:serviceId",component:Nf,children:[{path:"",component:Zf,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:Wf,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:pd,data:{animation:"ServiceDestinationsPage"}}]}];let Pd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o.Bz.forChild(Ud)],o.Bz]}),t})();var Fd=n(28780),qd=n(22727),zd=n(22280),jd=n(6363);let Yd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ya,Ml,i.ez,Pd,Fd.m,qd.r,ht.ez,zd.d4,jd.UsersModule]]}),t})()},91721:function(t,e,n){"use strict";n.d(e,{Q:function(){return U}});var r=n(31572),i=n(58623),o=n(67033),a=n(4230),s=n(27613),u=n(88426),c=n(82819),l=n(61511),h=n(29236),f=n(43691),d=n(36922),p=n(84534),g=n(57629),m=n(39571),v=n(48160);function y(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"th",16),r.TgZ(1,"mat-checkbox",17),r.NdJ("change",function(e){r.CHM(t);const n=r.oxw();return e?n.masterToggle():null}),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.xp6(1),r.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function _(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"td",18),r.TgZ(1,"mat-checkbox",19),r.NdJ("change",function(e){const n=r.CHM(t).$implicit,i=r.oxw();return e?i.selection.toggle(n):null})("click",function(t){return t.stopPropagation()}),r.qZA(),r.qZA()}if(2&t){const t=e.$implicit,n=r.oxw();r.xp6(1),r.Q6J("aria-label",n.checkboxLabel(t))("checked",n.selection.isSelected(t))}}function w(t,e){1&t&&(r.TgZ(0,"th",20),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")))}function b(t,e){if(1&t&&(r.TgZ(0,"td",18),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.id)}}function x(t,e){1&t&&(r.TgZ(0,"th",20),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")))}function E(t,e){if(1&t&&(r.TgZ(0,"td",21),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.name)}}function T(t,e){1&t&&r._UZ(0,"th",16)}function A(t,e){1&t&&(r.TgZ(0,"mat-icon",23),r.ALo(1,"translate"),r._uU(2," check_circle_outline "),r.qZA()),2&t&&r.s9C("matTooltip",r.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function S(t,e){1&t&&(r.TgZ(0,"mat-icon",23),r.ALo(1,"translate"),r._uU(2," block "),r.qZA()),2&t&&r.s9C("matTooltip",r.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function I(t,e){if(1&t&&(r.TgZ(0,"td",21),r.YNc(1,A,3,3,"mat-icon",22),r.YNc(2,S,3,3,"mat-icon",22),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Q6J("ngIf",t.enabled),r.xp6(1),r.Q6J("ngIf",!t.enabled)}}function C(t,e){1&t&&(r.TgZ(0,"th",16),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")))}function D(t,e){if(1&t&&(r.TgZ(0,"td",21),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.script)}}function k(t,e){1&t&&(r.TgZ(0,"th",20),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")))}function N(t,e){if(1&t&&(r.TgZ(0,"td",21),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.description)}}function Z(t,e){1&t&&r._UZ(0,"tr",24)}const M=function(t){return["/admin/services",t]};function O(t,e){if(1&t&&r._UZ(0,"tr",25),2&t){const t=e.$implicit,n=r.oxw();r.ekj("cursor-pointer",!n.disableRouting)("disable-outline",n.disableRouting),r.Q6J("perunWebAppsMiddleClickRouterLink",n.disableRouting?null:r.VKq(6,M,t.id))("routerLink",n.disableRouting?null:r.VKq(8,M,t.id))}}function R(t,e){1&t&&(r.TgZ(0,"app-alert",26),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function L(t,e){1&t&&(r.TgZ(0,"app-alert",26),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}let U=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.services=[],this.filterValue="",this.pageSize=10,this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new a.Ov(!0,[]),this.disableRouting=!1,this.page=new r.vpe,this.pageSizeOptions=s.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new o.by(this.services),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"enabled":return t.enabled?"true":"false";case"script":return t.script;case"description":return t.description;default:return""}}exportData(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,s.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,s.pR)(t,e,this.getDataForColumn,this),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.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(u.x4),r.Y36(u.UA))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-services-list"]],viewQuery:function(t,e){if(1&t&&(r.Gf(i.YE,7),r.Gf(s.l9,7)),2&t){let t;r.iGM(t=r.CRH())&&(e.matSort=t.first),r.iGM(t=r.CRH())&&(e.child=t.first)}},inputs:{services:"services",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{page:"page"},features:[r.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","enabled"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"perun-web-apps-table-wrapper",1),r.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),r.TgZ(2,"table",2),r.ynx(3,3),r.YNc(4,y,2,3,"th",4),r.YNc(5,_,2,2,"td",5),r.BQk(),r.ynx(6,6),r.YNc(7,w,3,3,"th",7),r.YNc(8,b,2,1,"td",5),r.BQk(),r.ynx(9,8),r.YNc(10,x,3,3,"th",7),r.YNc(11,E,2,1,"td",9),r.BQk(),r.ynx(12,10),r.YNc(13,T,1,0,"th",4),r.YNc(14,I,3,2,"td",9),r.BQk(),r.ynx(15,11),r.YNc(16,C,3,3,"th",4),r.YNc(17,D,2,1,"td",9),r.BQk(),r.ynx(18,12),r.YNc(19,k,3,3,"th",7),r.YNc(20,N,2,1,"td",9),r.BQk(),r.YNc(21,Z,1,0,"tr",13),r.YNc(22,O,1,10,"tr",14),r.qZA(),r.qZA(),r.qZA(),r.YNc(23,R,3,3,"app-alert",15),r.YNc(24,L,3,3,"app-alert",15)),2&t&&(r.Q6J("hidden",void 0===e.services||0===e.services.length||0===e.dataSource.filteredData.length),r.xp6(1),r.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),r.xp6(1),r.Q6J("dataSource",e.dataSource),r.xp6(19),r.Q6J("matHeaderRowDef",e.displayedColumns),r.xp6(1),r.Q6J("matRowDefColumns",e.displayedColumns),r.xp6(1),r.Q6J("ngIf",0===e.dataSource.filteredData.length&&void 0!==e.services&&0!==e.services.length),r.xp6(1),r.Q6J("ngIf",void 0===e.services||0===e.services.length))},directives:[c.l,o.BZ,i.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,i.nU,f.Hw,d.gM,o.XQ,o.Gk,p.YH,g.rH,m.w],pipes:[v.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t})()},95914:function(t,e,n){"use strict";function r(t,e){return t(e={exports:{}},e.exports),e.exports}n.r(e),n.d(e,{StackParser:function(){return l},graphviz:function(){return v},graphvizSync:function(){return _},parse:function(){return h},wasmFolder:function(){return s}});var i=r(function(t,e){var n,r=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(t){var e,r=void 0!==(t=t||{})?t:{},i={};for(e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);var o,a="./this.program",s="";document.currentScript&&(s=document.currentScript.src),n&&(s=n),s=0!==s.indexOf("blob:")?s.substr(0,s.lastIndexOf("/")+1):"",o=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText};var u,c,l=r.print||console.log.bind(console),h=r.printErr||console.warn.bind(console);for(e in i)i.hasOwnProperty(e)&&(r[e]=i[e]);i=null,r.thisProgram&&(a=r.thisProgram),r.wasmBinary&&(u=r.wasmBinary),"object"!=typeof WebAssembly&&h("no native wasm support detected");var f=new WebAssembly.Table({initial:153,maximum:153,element:"anyfunc"}),d=!1;function p(t,e){t||z("Assertion failed: "+e)}var g,m,v,y,_,w="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function b(t,e,n){for(var r=e+n,i=e;t[i]&&!(i>=r);)++i;if(i-e>16&&t.subarray&&w)return w.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function x(t,e){return t?b(v,t,e):""}function E(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function T(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function A(t){g=t,r.HEAP8=m=new Int8Array(t),r.HEAP16=new Int16Array(t),r.HEAP32=y=new Int32Array(t),r.HEAPU8=v=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=_=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var S=r.TOTAL_MEMORY||16777216;function I(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(c=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:S/65536}))&&(g=c.buffer),S=g.byteLength,A(g),y[2080]=5251360;var C=[],D=[],k=[],N=[],Z=!1,M=Math.abs,O=Math.ceil,R=Math.floor,L=Math.min,U=0,P=null;function F(t){U++,r.monitorRunDependencies&&r.monitorRunDependencies(U)}function q(t){if(U--,r.monitorRunDependencies&&r.monitorRunDependencies(U),0==U&&P){var e=P;P=null,e()}}function z(t){throw r.onAbort&&r.onAbort(t),l(t+=""),h(t),d=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function j(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var Y,B,G,J="expatlib.wasm";function V(){try{if(u)return new Uint8Array(u);throw"both async and sync fetching of the wasm failed"}catch(h){z(h)}}j(J)||(Y=J,J=r.locateFile?r.locateFile(Y,s):s+Y);var H={1184:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";e.startElement()},1404:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";e.endElement()},1616:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";e.characterData()}};D.push({func:function(){lt()}});var Q={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=Q.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return Q.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return Q.normalize(t.join("/"))},join2:function(t,e){return Q.normalize(t+"/"+e)}};function W(t){return r.___errno_location&&(y[r.___errno_location()>>2]=t),t}var $={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:tt.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=$.resolve(t).substr(1),e=$.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(l(b(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(h(b(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(h(b(t.output,0)),t.output=[])}}},K={ops_table:null,mount:function(t){return K.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(tt.isBlkdev(n)||tt.isFIFO(n))throw new tt.ErrnoError(63);K.ops_table||(K.ops_table={dir:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr,lookup:K.node_ops.lookup,mknod:K.node_ops.mknod,rename:K.node_ops.rename,unlink:K.node_ops.unlink,rmdir:K.node_ops.rmdir,readdir:K.node_ops.readdir,symlink:K.node_ops.symlink},stream:{llseek:K.stream_ops.llseek}},file:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr},stream:{llseek:K.stream_ops.llseek,read:K.stream_ops.read,write:K.stream_ops.write,allocate:K.stream_ops.allocate,mmap:K.stream_ops.mmap,msync:K.stream_ops.msync}},link:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr,readlink:K.node_ops.readlink},stream:{}},chrdev:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr},stream:tt.chrdev_stream_ops}});var i=tt.createNode(t,e,n,r);return tt.isDir(i.mode)?(i.node_ops=K.ops_table.dir.node,i.stream_ops=K.ops_table.dir.stream,i.contents={}):tt.isFile(i.mode)?(i.node_ops=K.ops_table.file.node,i.stream_ops=K.ops_table.file.stream,i.usedBytes=0,i.contents=null):tt.isLink(i.mode)?(i.node_ops=K.ops_table.link.node,i.stream_ops=K.ops_table.link.stream):tt.isChrdev(i.mode)&&(i.node_ops=K.ops_table.chrdev.node,i.stream_ops=K.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new tt.ErrnoError(32);for(var i=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),o=tt.root,a="/",s=0;s40)throw new tt.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(tt.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%tt.nameTable.length},hashAddNode:function(t){var e=tt.hashName(t.parent.id,t.name);t.name_next=tt.nameTable[e],tt.nameTable[e]=t},hashRemoveNode:function(t){var e=tt.hashName(t.parent.id,t.name);if(tt.nameTable[e]===t)tt.nameTable[e]=t.name_next;else for(var n=tt.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=tt.mayLookup(t);if(n)throw new tt.ErrnoError(n,t);for(var r=tt.hashName(t.id,e),i=tt.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return tt.lookup(t,e)},createNode:function(t,e,n,r){tt.FSNode||(tt.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=tt.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},tt.FSNode.prototype={},Object.defineProperties(tt.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return tt.isDir(this.mode)}},isDevice:{get:function(){return tt.isChrdev(this.mode)}}}));var i=new tt.FSNode(t,e,n,r);return tt.hashAddNode(i),i},destroyNode:function(t){tt.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=tt.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return tt.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return tt.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return tt.lookupNode(t,e),20}catch(n){}return tt.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=tt.lookupNode(t,e)}catch(o){return o.errno}var i=tt.nodePermissions(t,"wx");if(i)return i;if(n){if(!tt.isDir(r.mode))return 54;if(tt.isRoot(r)||tt.getPath(r)===tt.cwd())return 10}else if(tt.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?tt.isLink(t.mode)?32:tt.isDir(t.mode)&&("r"!==tt.flagsToPermissionString(e)||512&e)?31:tt.nodePermissions(t,tt.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||tt.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!tt.streams[n])return n;throw new tt.ErrnoError(33)},getStream:function(t){return tt.streams[t]},createStream:function(t,e,n){tt.FSStream||(tt.FSStream=function(){},tt.FSStream.prototype={},Object.defineProperties(tt.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new tt.FSStream;for(var i in t)r[i]=t[i];t=r;var o=tt.nextfd(e,n);return t.fd=o,tt.streams[o]=t,t},closeStream:function(t){tt.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=tt.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new tt.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){tt.devices[t]={stream_ops:e}},getDevice:function(t){return tt.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),tt.syncFSRequests++,tt.syncFSRequests>1&&h("warning: "+tt.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=tt.getMounts(tt.root.mount),r=0;function i(t){return tt.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)})},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&tt.root)throw new tt.ErrnoError(10);if(!i&&!o){var a=tt.lookupPath(n,{follow_mount:!1});if(n=a.path,tt.isMountpoint(r=a.node))throw new tt.ErrnoError(10);if(!tt.isDir(r.mode))throw new tt.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?tt.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=tt.lookupPath(t,{follow_mount:!1});if(!tt.isMountpoint(e.node))throw new tt.ErrnoError(28);var n=e.node,r=n.mounted,i=tt.getMounts(r);Object.keys(tt.nameTable).forEach(function(t){for(var e=tt.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&tt.destroyNode(e),e=n}}),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=tt.lookupPath(t,{parent:!0}).node,i=Q.basename(t);if(!i||"."===i||".."===i)throw new tt.ErrnoError(28);var o=tt.mayCreate(r,i);if(o)throw new tt.ErrnoError(o);if(!r.node_ops.mknod)throw new tt.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,tt.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,tt.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter(function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):at(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]}),!o&&r||(a=r=1,r=this.getter(0).length,a=r,l("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=tt.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach(function(t){var e=s.stream_ops[t];u[t]=function(){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);return e.apply(null,arguments)}}),u.read=function(t,e,n,r,i){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,y[n+4>>2]=0,y[n+8>>2]=r.ino,y[n+12>>2]=r.mode,y[n+16>>2]=r.nlink,y[n+20>>2]=r.uid,y[n+24>>2]=r.gid,y[n+28>>2]=r.rdev,y[n+32>>2]=0,G=[r.size>>>0,(B=r.size,+M(B)>=1?B>0?(0|L(+R(B/4294967296),4294967295))>>>0:~~+O((B-+(~~B>>>0))/4294967296)>>>0:0)],y[n+40>>2]=G[0],y[n+44>>2]=G[1],y[n+48>>2]=4096,y[n+52>>2]=r.blocks,y[n+56>>2]=r.atime.getTime()/1e3|0,y[n+60>>2]=0,y[n+64>>2]=r.mtime.getTime()/1e3|0,y[n+68>>2]=0,y[n+72>>2]=r.ctime.getTime()/1e3|0,y[n+76>>2]=0,G=[r.ino>>>0,(B=r.ino,+M(B)>=1?B>0?(0|L(+R(B/4294967296),4294967295))>>>0:~~+O((B-+(~~B>>>0))/4294967296)>>>0:0)],y[n+80>>2]=G[0],y[n+84>>2]=G[1],0},doMsync:function(t,e,n,r,i){var o=v.slice(t,t+n);tt.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=Q.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),tt.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return tt.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=tt.readlink(t),i=Math.min(n,T(r)),o=m[e+i];return E(r,v,e,n+1),m[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=tt.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&tt.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=tt.getStream(n);return r&&tt.close(r),tt.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=tt.read(t,m,y[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],y[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return et.varargs+=4,y[et.varargs-4>>2]},getStr:function(){return x(et.get())},getStreamFromFD:function(t){void 0===t&&(t=et.get());var e=tt.getStream(t);if(!e)throw new tt.ErrnoError(8);return e},get64:function(){var t=et.get();return et.get(),t},getZero:function(){et.get()}};function nt(t){try{return c.grow(t-g.byteLength+65535>>16),A(c.buffer),1}catch(e){}}var rt={};function it(){if(!it.strings){var t={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",_:a||"./this.program"};for(var e in rt)t[e]=rt[e];var n=[];for(var e in t)n.push(e+"="+t[e]);it.strings=n}return it.strings}function ot(t,e){ot.array||(ot.array=[]);var n,r=ot.array;for(r.length=0;n=v[t++];)100===n||102===n?(r.push(_[(e=e+7&-8)>>3]),e+=8):(r.push(y[(e=e+3&-4)>>2]),e+=4);return r}function at(t,e,n){var r=n>0?n:T(t)+1,i=new Array(r),o=E(t,i,0,i.length);return e&&(i.length=o),i}tt.staticInit();var st={h:function(t,e){et.varargs=e;try{return 42}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||z(n),-n.errno}},e:function(){z()},a:function(t,e,n){var r=ot(e,n);return H[t].apply(null,r)},c:function(t,e,n){v.set(v.subarray(e,e+n),t)},d:function(t){var e=v.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),nt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},f:function(t,e){var n=it(),r=0;return n.forEach(function(n,i){var o=e+r;y[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);m[e>>0]=0}(n,o),r+=n.length+1}),0},g:function(t,e){var n=it();y[t>>2]=n.length;var r=0;return n.forEach(function(t){r+=t.length+1}),y[e>>2]=r,0},j:function(t){try{var e=et.getStreamFromFD(t);return tt.close(e),0}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||z(n),n.errno}},i:function(t,e,n,r,i){try{var o=et.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(tt.llseek(o,a,r),G=[o.position>>>0,(B=o.position,+M(B)>=1?B>0?(0|L(+R(B/4294967296),4294967295))>>>0:~~+O((B-+(~~B>>>0))/4294967296)>>>0:0)],y[i>>2]=G[0],y[i+4>>2]=G[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==tt&&s instanceof tt.ErrnoError||z(s),s.errno}},b:function(t,e,n,r){try{var i=et.getStreamFromFD(t),o=et.doWritev(i,e,n);return y[r>>2]=o,0}catch(a){return void 0!==tt&&a instanceof tt.ErrnoError||z(a),a.errno}},k:function(t){var e=Date.now();return y[t>>2]=e/1e3|0,y[t+4>>2]=e%1e3*1e3|0,0},memory:c,table:f},ut=function(){var t={a:st};function e(t,e){r.asm=t.exports,q()}function n(t){e(t.instance)}function i(e){return(u||"function"!=typeof fetch?new Promise(function(t,e){t(V())}):fetch(J,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+J+"'";return t.arrayBuffer()}).catch(function(){return V()})).then(function(e){return WebAssembly.instantiate(e,t)}).then(e,function(t){h("failed to asynchronously prepare wasm: "+t),z(t)})}if(F(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return h("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(u||"function"!=typeof WebAssembly.instantiateStreaming||j(J)||"function"!=typeof fetch)return i(n);fetch(J,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,t).then(n,function(t){h("wasm streaming compile failed: "+t),h("falling back to ArrayBuffer instantiation"),i(n)})})}(),{}}();r.asm=ut;var ct,lt=r.___wasm_call_ctors=function(){return(lt=r.___wasm_call_ctors=r.asm.l).apply(null,arguments)},ht=r._emscripten_bind_CExpat_CExpat_0=function(){return(ht=r._emscripten_bind_CExpat_CExpat_0=r.asm.m).apply(null,arguments)},ft=r._emscripten_bind_CExpat_create_0=function(){return(ft=r._emscripten_bind_CExpat_create_0=r.asm.n).apply(null,arguments)},dt=r._emscripten_bind_CExpat_destroy_0=function(){return(dt=r._emscripten_bind_CExpat_destroy_0=r.asm.o).apply(null,arguments)},pt=r._emscripten_bind_CExpat_parse_1=function(){return(pt=r._emscripten_bind_CExpat_parse_1=r.asm.p).apply(null,arguments)},gt=r._emscripten_bind_CExpat_tag_0=function(){return(gt=r._emscripten_bind_CExpat_tag_0=r.asm.q).apply(null,arguments)},mt=r._emscripten_bind_CExpat_attrs_0=function(){return(mt=r._emscripten_bind_CExpat_attrs_0=r.asm.r).apply(null,arguments)},vt=r._emscripten_bind_CExpat_content_0=function(){return(vt=r._emscripten_bind_CExpat_content_0=r.asm.s).apply(null,arguments)},yt=r._emscripten_bind_CExpat_startElement_0=function(){return(yt=r._emscripten_bind_CExpat_startElement_0=r.asm.t).apply(null,arguments)},_t=r._emscripten_bind_CExpat_endElement_0=function(){return(_t=r._emscripten_bind_CExpat_endElement_0=r.asm.u).apply(null,arguments)},wt=r._emscripten_bind_CExpat_characterData_0=function(){return(wt=r._emscripten_bind_CExpat_characterData_0=r.asm.v).apply(null,arguments)},bt=r._emscripten_bind_CExpat___destroy___0=function(){return(bt=r._emscripten_bind_CExpat___destroy___0=r.asm.w).apply(null,arguments)},xt=r._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(xt=r._emscripten_bind_CExpatJS_CExpatJS_0=r.asm.x).apply(null,arguments)},Et=r._emscripten_bind_CExpatJS_startElement_0=function(){return(Et=r._emscripten_bind_CExpatJS_startElement_0=r.asm.y).apply(null,arguments)},Tt=r._emscripten_bind_CExpatJS_endElement_0=function(){return(Tt=r._emscripten_bind_CExpatJS_endElement_0=r.asm.z).apply(null,arguments)},At=r._emscripten_bind_CExpatJS_characterData_0=function(){return(At=r._emscripten_bind_CExpatJS_characterData_0=r.asm.A).apply(null,arguments)},St=r._emscripten_bind_CExpatJS___destroy___0=function(){return(St=r._emscripten_bind_CExpatJS___destroy___0=r.asm.B).apply(null,arguments)},It=r._emscripten_bind_VoidPtr___destroy___0=function(){return(It=r._emscripten_bind_VoidPtr___destroy___0=r.asm.C).apply(null,arguments)},Ct=r._malloc=function(){return(Ct=r._malloc=r.asm.D).apply(null,arguments)};function Dt(t){function e(){ct||(ct=!0,d||(Z=!0,r.noFSInit||tt.init.initialized||tt.init(),X.init(),I(D),tt.ignorePermissions=!1,I(k),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),N.unshift(t);var t;I(N)}()))}U>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),C.unshift(t);var t;I(C)}(),U>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),e()},1)):e()))}if(r._free=function(){return(r._free=r.asm.E).apply(null,arguments)},r.___errno_location=function(){return(r.___errno_location=r.asm.F).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.G).apply(null,arguments)},r.dynCall_vi=function(){return(r.dynCall_vi=r.asm.H).apply(null,arguments)},r.asm=ut,r.then=function(t){if(ct)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},P=function t(){ct||Dt(),ct||(P=t)},r.run=Dt,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function kt(){}function Nt(t){return(t||kt).__cache__}function Zt(t,e){var n=Nt(e),r=n[t];return r||((r=Object.create((e||kt).prototype)).ptr=t,n[t]=r)}Dt(),(kt.prototype=Object.create(kt.prototype)).constructor=kt,kt.prototype.__class__=kt,kt.__cache__={},r.WrapperObject=kt,r.getCache=Nt,r.wrapPointer=Zt,r.castObject=function(t,e){return Zt(t.ptr,e)},r.NULL=Zt(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete Nt(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var Mt={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Mt.needed){for(var t=0;t=Mt.size?(p(i>0),Mt.needed+=i,n=r._malloc(i),Mt.temps.push(n)):(n=Mt.buffer+Mt.pos,Mt.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i=r);)++i;if(i-e>16&&t.subarray&&A)return A.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function I(t,e){return t?S(b,t,e):""}function C(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function D(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function k(t){_=t,r.HEAP8=w=new Int8Array(t),r.HEAP16=x=new Int16Array(t),r.HEAP32=E=new Int32Array(t),r.HEAPU8=b=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=T=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var N=r.TOTAL_MEMORY||16777216;function Z(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(d=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:N/65536}))&&(_=d.buffer),N=_.byteLength,k(_),E[54772]=5462128;var M=[],O=[],R=[],L=[],U=!1,P=Math.abs,F=Math.ceil,q=Math.floor,z=Math.min,j=0,Y=null;function B(t){j++,r.monitorRunDependencies&&r.monitorRunDependencies(j)}function G(t){if(j--,r.monitorRunDependencies&&r.monitorRunDependencies(j),0==j&&Y){var e=Y;Y=null,e()}}function J(t){throw r.onAbort&&r.onAbort(t),c(t+=""),l(t),v=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function V(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var H,Q,W,$="graphvizlib.wasm";function X(){try{if(h)return new Uint8Array(h);throw"both async and sync fetching of the wasm failed"}catch(l){J(l)}}V($)||(H=$,$=r.locateFile?r.locateFile(H,u):u+H);var K={1088:function(t,e){var n=I(t),r=I(e);at.createPath("/",nt.dirname(n)),at.writeFile(nt.join("/",n),r)}};function tt(){J()}function et(t){return r.___errno_location&&(E[r.___errno_location()>>2]=t),t}O.push({func:function(){Et()}});var nt={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=nt.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return nt.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return nt.normalize(t.join("/"))},join2:function(t,e){return nt.normalize(t+"/"+e)}},rt={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:at.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=rt.resolve(t).substr(1),e=rt.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(c(S(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(l(S(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(l(S(t.output,0)),t.output=[])}}},ot={ops_table:null,mount:function(t){return ot.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(at.isBlkdev(n)||at.isFIFO(n))throw new at.ErrnoError(63);ot.ops_table||(ot.ops_table={dir:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,lookup:ot.node_ops.lookup,mknod:ot.node_ops.mknod,rename:ot.node_ops.rename,unlink:ot.node_ops.unlink,rmdir:ot.node_ops.rmdir,readdir:ot.node_ops.readdir,symlink:ot.node_ops.symlink},stream:{llseek:ot.stream_ops.llseek}},file:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:{llseek:ot.stream_ops.llseek,read:ot.stream_ops.read,write:ot.stream_ops.write,allocate:ot.stream_ops.allocate,mmap:ot.stream_ops.mmap,msync:ot.stream_ops.msync}},link:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,readlink:ot.node_ops.readlink},stream:{}},chrdev:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:at.chrdev_stream_ops}});var i=at.createNode(t,e,n,r);return at.isDir(i.mode)?(i.node_ops=ot.ops_table.dir.node,i.stream_ops=ot.ops_table.dir.stream,i.contents={}):at.isFile(i.mode)?(i.node_ops=ot.ops_table.file.node,i.stream_ops=ot.ops_table.file.stream,i.usedBytes=0,i.contents=null):at.isLink(i.mode)?(i.node_ops=ot.ops_table.link.node,i.stream_ops=ot.ops_table.link.stream):at.isChrdev(i.mode)&&(i.node_ops=ot.ops_table.chrdev.node,i.stream_ops=ot.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new at.ErrnoError(32);for(var i=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),o=at.root,a="/",s=0;s40)throw new at.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(at.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%at.nameTable.length},hashAddNode:function(t){var e=at.hashName(t.parent.id,t.name);t.name_next=at.nameTable[e],at.nameTable[e]=t},hashRemoveNode:function(t){var e=at.hashName(t.parent.id,t.name);if(at.nameTable[e]===t)at.nameTable[e]=t.name_next;else for(var n=at.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=at.mayLookup(t);if(n)throw new at.ErrnoError(n,t);for(var r=at.hashName(t.id,e),i=at.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return at.lookup(t,e)},createNode:function(t,e,n,r){at.FSNode||(at.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=at.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},at.FSNode.prototype={},Object.defineProperties(at.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return at.isDir(this.mode)}},isDevice:{get:function(){return at.isChrdev(this.mode)}}}));var i=new at.FSNode(t,e,n,r);return at.hashAddNode(i),i},destroyNode:function(t){at.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=at.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return at.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return at.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return at.lookupNode(t,e),20}catch(n){}return at.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=at.lookupNode(t,e)}catch(o){return o.errno}var i=at.nodePermissions(t,"wx");if(i)return i;if(n){if(!at.isDir(r.mode))return 54;if(at.isRoot(r)||at.getPath(r)===at.cwd())return 10}else if(at.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?at.isLink(t.mode)?32:at.isDir(t.mode)&&("r"!==at.flagsToPermissionString(e)||512&e)?31:at.nodePermissions(t,at.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||at.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!at.streams[n])return n;throw new at.ErrnoError(33)},getStream:function(t){return at.streams[t]},createStream:function(t,e,n){at.FSStream||(at.FSStream=function(){},at.FSStream.prototype={},Object.defineProperties(at.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new at.FSStream;for(var i in t)r[i]=t[i];t=r;var o=at.nextfd(e,n);return t.fd=o,at.streams[o]=t,t},closeStream:function(t){at.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=at.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new at.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){at.devices[t]={stream_ops:e}},getDevice:function(t){return at.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),at.syncFSRequests++,at.syncFSRequests>1&&l("warning: "+at.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=at.getMounts(at.root.mount),r=0;function i(t){return at.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)})},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&at.root)throw new at.ErrnoError(10);if(!i&&!o){var a=at.lookupPath(n,{follow_mount:!1});if(n=a.path,at.isMountpoint(r=a.node))throw new at.ErrnoError(10);if(!at.isDir(r.mode))throw new at.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?at.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=at.lookupPath(t,{follow_mount:!1});if(!at.isMountpoint(e.node))throw new at.ErrnoError(28);var n=e.node,r=n.mounted,i=at.getMounts(r);Object.keys(at.nameTable).forEach(function(t){for(var e=at.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&at.destroyNode(e),e=n}}),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=at.lookupPath(t,{parent:!0}).node,i=nt.basename(t);if(!i||"."===i||".."===i)throw new at.ErrnoError(28);var o=at.mayCreate(r,i);if(o)throw new at.ErrnoError(o);if(!r.node_ops.mknod)throw new at.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,at.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,at.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter(function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):_t(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]}),!o&&r||(a=r=1,r=this.getter(0).length,a=r,c("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=at.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach(function(t){var e=s.stream_ops[t];u[t]=function(){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);return e.apply(null,arguments)}}),u.read=function(t,e,n,r,i){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,E[n+4>>2]=0,E[n+8>>2]=r.ino,E[n+12>>2]=r.mode,E[n+16>>2]=r.nlink,E[n+20>>2]=r.uid,E[n+24>>2]=r.gid,E[n+28>>2]=r.rdev,E[n+32>>2]=0,W=[r.size>>>0,(Q=r.size,+P(Q)>=1?Q>0?(0|z(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[n+40>>2]=W[0],E[n+44>>2]=W[1],E[n+48>>2]=4096,E[n+52>>2]=r.blocks,E[n+56>>2]=r.atime.getTime()/1e3|0,E[n+60>>2]=0,E[n+64>>2]=r.mtime.getTime()/1e3|0,E[n+68>>2]=0,E[n+72>>2]=r.ctime.getTime()/1e3|0,E[n+76>>2]=0,W=[r.ino>>>0,(Q=r.ino,+P(Q)>=1?Q>0?(0|z(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[n+80>>2]=W[0],E[n+84>>2]=W[1],0},doMsync:function(t,e,n,r,i){var o=b.slice(t,t+n);at.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=nt.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),at.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return at.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=at.readlink(t),i=Math.min(n,D(r)),o=w[e+i];return C(r,b,e,n+1),w[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=at.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&at.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=at.getStream(n);return r&&at.close(r),at.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=at.read(t,w,E[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],E[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return st.varargs+=4,E[st.varargs-4>>2]},getStr:function(){return I(st.get())},getStreamFromFD:function(t){void 0===t&&(t=st.get());var e=at.getStream(t);if(!e)throw new at.ErrnoError(8);return e},get64:function(){var t=st.get();return st.get(),t},getZero:function(){st.get()}};function ut(t,e,n){e|=0;var r,i=0,o=0,a=0;if(r=(t|=0)+(n|=0)|0,e&=255,(0|n)>=67){for(;0!=(3&t);)w[t>>0]=e,t=t+1|0;for(a=e|e<<8|e<<16|e<<24,o=(i=-4&r|0)-64|0;(0|t)<=(0|o);)E[t>>2]=a,E[t+4>>2]=a,E[t+8>>2]=a,E[t+12>>2]=a,E[t+16>>2]=a,E[t+20>>2]=a,E[t+24>>2]=a,E[t+28>>2]=a,E[t+32>>2]=a,E[t+36>>2]=a,E[t+40>>2]=a,E[t+44>>2]=a,E[t+48>>2]=a,E[t+52>>2]=a,E[t+56>>2]=a,E[t+60>>2]=a,t=t+64|0;for(;(0|t)<(0|i);)E[t>>2]=a,t=t+4|0}for(;(0|t)<(0|r);)w[t>>0]=e,t=t+1|0;return r-n|0}var ct=0;function lt(t){try{return d.grow(t-_.byteLength+65535>>16),k(d.buffer),1}catch(e){}}var ht={};function ft(){if(!ft.strings){var t={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",_:a||"./this.program"};for(var e in ht)t[e]=ht[e];var n=[];for(var e in t)n.push(e+"="+t[e]);ft.strings=n}return ft.strings}function dt(t){return t%4==0&&(t%100!=0||t%400==0)}function pt(t,e){for(var n=0,r=0;r<=e;n+=t[r++]);return n}var gt=[31,29,31,30,31,30,31,31,30,31,30,31],mt=[31,28,31,30,31,30,31,31,30,31,30,31];function vt(t,e){for(var n=new Date(t.getTime());e>0;){var r=dt(n.getFullYear()),i=n.getMonth(),o=(r?gt:mt)[i];if(!(e>o-n.getDate()))return n.setDate(n.getDate()+e),n;e-=o-n.getDate()+1,n.setDate(1),i<11?n.setMonth(i+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}function yt(t,e){yt.array||(yt.array=[]);var n,r=yt.array;for(r.length=0;n=b[t++];)100===n||102===n?(r.push(T[(e=e+7&-8)>>3]),e+=8):(r.push(E[(e=e+3&-4)>>2]),e+=4);return r}function _t(t,e,n){var r=n>0?n:D(t)+1,i=new Array(r),o=C(t,i,0,i.length);return e&&(i.length=o),i}tt=function(){return performance.now()},at.staticInit();var wt={M:function(t,e){return function(t,e){var n;if(0===t)n=Date.now();else{if(1!==t&&4!==t)return et(28),-1;n=tt()}return E[e>>2]=n/1e3|0,E[e+4>>2]=n%1e3*1e3*1e3|0,0}(t,e)},k:function(t){return Dt(t)},j:function(t,e,n){throw"uncaught_exception"in Mt?Mt.uncaught_exceptions++:Mt.uncaught_exceptions=1,t},q:function(){},U:function(t,e){return et(63),-1},P:function(t,e){st.varargs=e;try{var n=st.getStr();return at.unlink(n),0}catch(r){return void 0!==at&&r instanceof at.ErrnoError||J(r),-r.errno}},R:function(t,e){st.varargs=e;try{return function(t,e,n,r,i,o){var a;o<<=12;var s=!1;if(0!=(16&r)&&t%16384!=0)return-28;if(0!=(32&r)){if(!(a=Ot(16384,e)))return-48;ut(a,0,e),s=!0}else{var u=at.getStream(i);if(!u)return-8;var c=at.mmap(u,b,t,e,o,n,r);a=c.ptr,s=c.allocated}return st.mappings[a]={malloc:a,len:e,allocated:s,fd:i,flags:r,offset:o},a}(st.get(),st.get(),st.get(),st.get(),st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},S:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doStat(at.stat,n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},T:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();return st.doStat(at.stat,n.path,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},L:function(t,e){st.varargs=e;try{return 42}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},y:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD();switch(st.get()){case 0:return(r=st.get())<0?-28:at.open(n.path,n.flags,0,r).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:var r=st.get();return n.flags|=r,0;case 12:return r=st.get(),x[r+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return et(28),-1;default:return-28}}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},K:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doAccess(n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},z:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get(),i=st.get();return at.open(n,r,i).fd}catch(o){return void 0!==at&&o instanceof at.ErrnoError||J(o),-o.errno}},O:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();switch(r){case 21509:case 21505:return n.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var i=st.get();return E[i>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return i=st.get(),at.ioctl(n,r,i);case 21523:case 21524:return n.tty?0:-59;default:J("bad ioctl syscall "+r)}}catch(o){return void 0!==at&&o instanceof at.ErrnoError||J(o),-o.errno}},Q:function(t,e){st.varargs=e;try{return function(t,e){if(-1===t||0===e)return-28;var n=st.mappings[t];if(!n)return 0;if(e===n.len){var r=at.getStream(n.fd);st.doMsync(t,r,e,n.flags,n.offset),at.munmap(r),st.mappings[t]=null,n.allocated&&kt(n.malloc)}return 0}(st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},m:function(){},w:function(){J()},C:function(t,e,n){var r=yt(e,n);return K[t].apply(null,r)},d:function(t,e){!function(t,e){throw Zt(t,e||1),"longjmp"}(t,e)},E:function(t,e,n){b.set(b.subarray(e,e+n),t)},F:function(t){var e=b.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),lt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},I:function(t,e){var n=ft(),r=0;return n.forEach(function(n,i){var o=e+r;E[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);w[e>>0]=0}(n,o),r+=n.length+1}),0},J:function(t,e){var n=ft();E[t>>2]=n.length;var r=0;return n.forEach(function(t){r+=t.length+1}),E[e>>2]=r,0},l:function(t){!function(t,e){f||(v=!0,r.onExit&&r.onExit(t)),s(t,new $t(t))}(t)},p:function(t){try{var e=st.getStreamFromFD(t);return at.close(e),0}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),n.errno}},H:function(t,e){try{var n=st.getStreamFromFD(t),r=n.tty?2:at.isDir(n.mode)?3:at.isLink(n.mode)?7:4;return w[e>>0]=r,0}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),i.errno}},N:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doReadv(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||J(a),a.errno}},D:function(t,e,n,r,i){try{var o=st.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(at.llseek(o,a,r),W=[o.position>>>0,(Q=o.position,+P(Q)>=1?Q>0?(0|z(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[i>>2]=W[0],E[i+4>>2]=W[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==at&&s instanceof at.ErrnoError||J(s),s.errno}},x:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doWritev(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||J(a),a.errno}},a:function(){return 0|p},X:function(t){var e=Date.now();return E[t>>2]=e/1e3|0,E[t+4>>2]=e%1e3*1e3|0,0},Y:function(t){var e=Qt();try{return Vt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},V:function(t,e){var n=Qt();try{return Ht(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},v:function(t){var e=Qt();try{return zt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},f:function(t,e){var n=Qt();try{return jt(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},e:function(t,e,n){var r=Qt();try{return Yt(t,e,n)}catch(i){if(Wt(r),i!==i+0&&"longjmp"!==i)throw i;Zt(1,0)}},g:function(t,e,n,r){var i=Qt();try{return Bt(t,e,n,r)}catch(o){if(Wt(i),o!==o+0&&"longjmp"!==o)throw o;Zt(1,0)}},n:function(t,e,n,r,i){var o=Qt();try{return Gt(t,e,n,r,i)}catch(a){if(Wt(o),a!==a+0&&"longjmp"!==a)throw a;Zt(1,0)}},W:function(t,e,n,r,i,o,a){var s=Qt();try{return Jt(t,e,n,r,i,o,a)}catch(u){if(Wt(s),u!==u+0&&"longjmp"!==u)throw u;Zt(1,0)}},s:function(t){var e=Qt();try{Rt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},h:function(t,e){var n=Qt();try{Lt(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},o:function(t,e,n){var r=Qt();try{Ut(t,e,n)}catch(i){if(Wt(r),i!==i+0&&"longjmp"!==i)throw i;Zt(1,0)}},u:function(t,e,n,r){var i=Qt();try{Pt(t,e,n,r)}catch(o){if(Wt(i),o!==o+0&&"longjmp"!==o)throw o;Zt(1,0)}},t:function(t,e,n,r,i){var o=Qt();try{Ft(t,e,n,r,i)}catch(a){if(Wt(o),a!==a+0&&"longjmp"!==a)throw a;Zt(1,0)}},r:function(t,e,n,r,i,o){var a=Qt();try{qt(t,e,n,r,i,o)}catch(s){if(Wt(a),s!==s+0&&"longjmp"!==s)throw s;Zt(1,0)}},memory:d,i:function t(e,n,r,i){n|=0,r|=0,i|=0;var o=0;for(E[(e|=0)>>2]=ct=ct+1|0;(0|o)<(0|i);){if(0==(0|E[r+(o<<3)>>2]))return E[r+(o<<3)>>2]=ct,E[r+(4+(o<<3))>>2]=n,E[r+(8+(o<<3))>>2]=0,g(0|i),0|r;o=o+1|0}return r=0|t(0|e,0|n,0|(r=0|Nt(0|r,8*(1+(i=2*i|0)|0)|0)),0|i),g(0|i),0|r},b:function(t){g(0|t)},G:function(t,e,n,r){return function(t,e,n,r){var i=E[r+40>>2],o={tm_sec:E[r>>2],tm_min:E[r+4>>2],tm_hour:E[r+8>>2],tm_mday:E[r+12>>2],tm_mon:E[r+16>>2],tm_year:E[r+20>>2],tm_wday:E[r+24>>2],tm_yday:E[r+28>>2],tm_isdst:E[r+32>>2],tm_gmtoff:E[r+36>>2],tm_zone:i?I(i):""},a=I(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)a=a.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(t,e,n){for(var r="number"==typeof t?t.toString():t||"";r.length0?1:0}var r;return 0===(r=n(t.getFullYear()-e.getFullYear()))&&0===(r=n(t.getMonth()-e.getMonth()))&&(r=n(t.getDate()-e.getDate())),r}function p(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function g(t){var e=vt(new Date(t.tm_year+1900,0,1),t.tm_yday),n=new Date(e.getFullYear(),0,4),r=new Date(e.getFullYear()+1,0,4),i=p(n),o=p(r);return d(i,e)<=0?d(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var m={"%a":function(t){return c[t.tm_wday].substring(0,3)},"%A":function(t){return c[t.tm_wday]},"%b":function(t){return l[t.tm_mon].substring(0,3)},"%B":function(t){return l[t.tm_mon]},"%C":function(t){return f((t.tm_year+1900)/100|0,2)},"%d":function(t){return f(t.tm_mday,2)},"%e":function(t){return h(t.tm_mday,2," ")},"%g":function(t){return g(t).toString().substring(2)},"%G":function(t){return g(t)},"%H":function(t){return f(t.tm_hour,2)},"%I":function(t){var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),f(e,2)},"%j":function(t){return f(t.tm_mday+pt(dt(t.tm_year+1900)?gt:mt,t.tm_mon-1),3)},"%m":function(t){return f(t.tm_mon+1,2)},"%M":function(t){return f(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return f(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var e=new Date(t.tm_year+1900,0,1),n=0===e.getDay()?e:vt(e,7-e.getDay()),r=new Date(t.tm_year+1900,t.tm_mon,t.tm_mday);if(d(n,r)<0){var i=pt(dt(r.getFullYear())?gt:mt,r.getMonth()-1)-31,o=31-n.getDate()+i+r.getDate();return f(Math.ceil(o/7),2)}return 0===d(n,e)?"01":"00"},"%V":function(t){var e,n=new Date(t.tm_year+1900,0,4),r=new Date(t.tm_year+1901,0,4),i=p(n),o=p(r),a=vt(new Date(t.tm_year+1900,0,1),t.tm_yday);return d(a,i)<0?"53":d(o,a)<=0?"01":(e=i.getFullYear()=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(n?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var u in m)a.indexOf(u)>=0&&(a=a.replace(new RegExp(u,"g"),m[u](o)));var v=_t(a,!1);return v.length>e?0:(function(t,e){w.set(t,e)}(v,t),v.length-1)}(t,e,n,r)},table:m,c:function(t,e,n){t|=0,e|=0,n|=0;for(var r=0,i=0;(0|r)<(0|n)&&0!=(0|(i=0|E[e+(r<<3)>>2]));){if((0|i)==(0|t))return 0|E[e+(4+(r<<3))>>2];r=r+1|0}return 0},A:function(t){var e=Date.now()/1e3|0;return t&&(E[t>>2]=e),e},B:function(t){return 0!==t&&ut(t,0,16),0}},bt=function(){var t={a:wt};function e(t,e){r.asm=t.exports,G()}function n(t){e(t.instance)}function i(e){return(h||"function"!=typeof fetch?new Promise(function(t,e){t(X())}):fetch($,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+$+"'";return t.arrayBuffer()}).catch(function(){return X()})).then(function(e){return WebAssembly.instantiate(e,t)}).then(e,function(t){l("failed to asynchronously prepare wasm: "+t),J(t)})}if(B(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return l("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(h||"function"!=typeof WebAssembly.instantiateStreaming||V($)||"function"!=typeof fetch)return i(n);fetch($,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,t).then(n,function(t){l("wasm streaming compile failed: "+t),l("falling back to ArrayBuffer instantiation"),i(n)})})}(),{}}();r.asm=bt;var xt,Et=r.___wasm_call_ctors=function(){return(Et=r.___wasm_call_ctors=r.asm.Z).apply(null,arguments)},Tt=r._emscripten_bind_VoidPtr___destroy___0=function(){return(Tt=r._emscripten_bind_VoidPtr___destroy___0=r.asm._).apply(null,arguments)},At=r._emscripten_bind_Main_layout_3=function(){return(At=r._emscripten_bind_Main_layout_3=r.asm.$).apply(null,arguments)},St=r._emscripten_bind_Main_lastError_0=function(){return(St=r._emscripten_bind_Main_lastError_0=r.asm.aa).apply(null,arguments)},It=r._emscripten_bind_Main_createFile_2=function(){return(It=r._emscripten_bind_Main_createFile_2=r.asm.ba).apply(null,arguments)},Ct=r._emscripten_bind_Main___destroy___0=function(){return(Ct=r._emscripten_bind_Main___destroy___0=r.asm.ca).apply(null,arguments)},Dt=r._malloc=function(){return(Dt=r._malloc=r.asm.da).apply(null,arguments)},kt=r._free=function(){return(kt=r._free=r.asm.ea).apply(null,arguments)},Nt=r._realloc=function(){return(Nt=r._realloc=r.asm.fa).apply(null,arguments)},Zt=(r.___errno_location=function(){return(r.___errno_location=r.asm.ga).apply(null,arguments)},r._setThrew=function(){return(Zt=r._setThrew=r.asm.ha).apply(null,arguments)}),Mt=r.__ZSt18uncaught_exceptionv=function(){return(Mt=r.__ZSt18uncaught_exceptionv=r.asm.ia).apply(null,arguments)},Ot=r._memalign=function(){return(Ot=r._memalign=r.asm.ja).apply(null,arguments)},Rt=r.dynCall_v=function(){return(Rt=r.dynCall_v=r.asm.ka).apply(null,arguments)},Lt=r.dynCall_vi=function(){return(Lt=r.dynCall_vi=r.asm.la).apply(null,arguments)},Ut=r.dynCall_vii=function(){return(Ut=r.dynCall_vii=r.asm.ma).apply(null,arguments)},Pt=r.dynCall_viii=function(){return(Pt=r.dynCall_viii=r.asm.na).apply(null,arguments)},Ft=r.dynCall_viiii=function(){return(Ft=r.dynCall_viiii=r.asm.oa).apply(null,arguments)},qt=r.dynCall_viiiii=function(){return(qt=r.dynCall_viiiii=r.asm.pa).apply(null,arguments)},zt=r.dynCall_i=function(){return(zt=r.dynCall_i=r.asm.qa).apply(null,arguments)},jt=r.dynCall_ii=function(){return(jt=r.dynCall_ii=r.asm.ra).apply(null,arguments)},Yt=r.dynCall_iii=function(){return(Yt=r.dynCall_iii=r.asm.sa).apply(null,arguments)},Bt=r.dynCall_iiii=function(){return(Bt=r.dynCall_iiii=r.asm.ta).apply(null,arguments)},Gt=r.dynCall_iiiii=function(){return(Gt=r.dynCall_iiiii=r.asm.ua).apply(null,arguments)},Jt=r.dynCall_iiiiiii=function(){return(Jt=r.dynCall_iiiiiii=r.asm.va).apply(null,arguments)},Vt=r.dynCall_d=function(){return(Vt=r.dynCall_d=r.asm.wa).apply(null,arguments)},Ht=r.dynCall_di=function(){return(Ht=r.dynCall_di=r.asm.xa).apply(null,arguments)},Qt=r.stackSave=function(){return(Qt=r.stackSave=r.asm.ya).apply(null,arguments)},Wt=(r.stackAlloc=function(){return(r.stackAlloc=r.asm.za).apply(null,arguments)},r.stackRestore=function(){return(Wt=r.stackRestore=r.asm.Aa).apply(null,arguments)});function $t(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function Xt(t){function e(){xt||(xt=!0,v||(U=!0,r.noFSInit||at.init.initialized||at.init(),it.init(),Z(O),at.ignorePermissions=!1,Z(R),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),L.unshift(t);var t;Z(L)}()))}j>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),M.unshift(t);var t;Z(M)}(),j>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),e()},1)):e()))}if(r.asm=bt,r.then=function(t){if(xt)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},Y=function t(){xt||Xt(),xt||(Y=t)},r.run=Xt,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function Kt(){}function te(t){return(t||Kt).__cache__}function ee(t,e){var n=te(e),r=n[t];return r||((r=Object.create((e||Kt).prototype)).ptr=t,n[t]=r)}f=!0,Xt(),(Kt.prototype=Object.create(Kt.prototype)).constructor=Kt,Kt.prototype.__class__=Kt,Kt.__cache__={},r.WrapperObject=Kt,r.getCache=te,r.wrapPointer=ee,r.castObject=function(t,e){return ee(t.ptr,e)},r.NULL=ee(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete te(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var ne={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ne.needed){for(var t=0;t=ne.size?(y(i>0),ne.needed+=i,n=r._malloc(i),ne.temps.push(n)):(n=ne.buffer+ne.pos,ne.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i\n\n'}}function m(t,e){var n,r=p({images:[],files:[]},e);(function(){for(var t=0,e=0,n=arguments.length;e>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(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(t))?new A(e[1],e[2],e[3],1):(e=f.exec(t))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?x(e[1],e[2],e[3],e[4]):(e=p.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?D(e[1],e[2]/100,e[3]/100,1):(e=m.exec(t))?D(e[1],e[2]/100,e[3]/100,e[4]):v.hasOwnProperty(t)?b(v[t]):"transparent"===t?new A(NaN,NaN,NaN,0):null}function b(t){return new A(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new A(t,e,n,r)}function E(t){return t instanceof i||(t=w(t)),t?new A((t=t.rgb()).r,t.g,t.b,t.opacity):new A}function T(t,e,n,r){return 1===arguments.length?E(t):new A(t,e,n,null==r?1:r)}function A(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(){return"#"+C(this.r)+C(this.g)+C(this.b)}function I(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function C(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function D(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Z(t,e,n,r)}function k(t){if(t instanceof Z)return new Z(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=w(t)),!t)return new Z;if(t instanceof Z)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-o,c=(a+o)/2;return u?(s=e===a?(n-r)/u+6*(n0&&c<1?0:s,new Z(s,u,c,t.opacity)}function N(t,e,n,r){return 1===arguments.length?k(t):new Z(t,e,n,null==r?1:r)}function Z(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function M(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}(0,r.Z)(i,w,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return k(this).formatHsl()},formatRgb:_,toString:_}),(0,r.Z)(A,T,(0,r.l)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new A(this.r*t,this.g*t,this.b*t,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:S,formatHex:S,formatRgb:I,toString:I})),(0,r.Z)(Z,N,(0,r.l)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new Z(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new Z(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new A(M(t>=240?t-240:t+120,i,r),M(t,i,r),M(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},80052:function(t,e,n){"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.d(e,{Z:function(){return r},l:function(){return i}})},64641:function(t,e){"use strict";var n={value:function(){}};function r(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function a(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),o=0;o1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{Z:function(){return r}})},93116:function(t,e,n){"use strict";n.d(e,{Z:function(){return i},v:function(){return o}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.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}},25047:function(t,e,n){"use strict";n.r(e),n.d(e,{formatDefaultLocale:function(){return r.ZP},format:function(){return r.WU},formatPrefix:function(){return r.jH},formatLocale:function(){return i.Z},formatSpecifier:function(){return o.Z},FormatSpecifier:function(){return o.v},precisionFixed:function(){return a.Z},precisionPrefix:function(){return s.Z},precisionRound:function(){return u.Z}});var r=n(3712),i=n(70592),o=n(93116),a=n(22233),s=n(65636),u=n(3218)},70592:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r,i=n(98477),o=n(93116),a=n(25169);function s(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var u={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var i=n[0],o=n[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return s===u?i:s>u?i+new Array(s-u+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+(0,a.Z)(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function c(t){return t}var l=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function f(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?c:(e=l.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",f=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(l.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",m=void 0===t.minus?"-":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function y(t){var e=(t=(0,o.Z)(t)).fill,n=t.align,i=t.sign,c=t.symbol,l=t.zero,y=t.width,_=t.comma,w=t.precision,b=t.trim,x=t.type;"n"===x?(_=!0,x="g"):u[x]||(void 0===w&&(w=12),b=!0,x="g"),(l||"0"===e&&"="===n)&&(l=!0,e="0",n="=");var E="$"===c?s:"#"===c&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",T="$"===c?f:/[%p]/.test(x)?g:"",A=u[x],S=/[defgprs%]/.test(x);function I(t){var o,s,u,c=E,f=T;if("c"===x)f=A(t)+f,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:A(Math.abs(t),w),b&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),g&&0==+t&&"+"!==i&&(g=!1),c=(g?"("===i?i:m:"-"===i||"("===i?"":i)+c,f=("s"===x?h[8+r/3]:"")+f+(g&&"("===i?")":""),S)for(o=-1,s=t.length;++o(u=t.charCodeAt(o))||u>57){f=(46===u?d+t.slice(o+1):t.slice(o))+f,t=t.slice(0,o);break}}_&&!l&&(t=a(t,1/0));var I=c.length+t.length+f.length,C=I>1)+c+t+f+C.slice(I);break;default:t=C+c+t+f}return p(t)}return w=void 0===w?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),I.toString=function(){return t+""},I}return{format:y,formatPrefix:function(t,e){var n=y(((t=(0,o.Z)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((0,i.Z)(e)/3))),a=Math.pow(10,-r),s=h[8+r/3];return function(t){return n(a*t)+s}}}}},22233:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t){return Math.max(0,-(0,r.Z)(Math.abs(t)))}},65636:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(e)/3)))-(0,r.Z)(Math.abs(t)))}},3218:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,r.Z)(e)-(0,r.Z)(t))+1}},73180:function(t,e,n){!function(t,e,n,r,i,o,a,s,u,c){"use strict";function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0,r=e.select(this),i=t.attributes,o=r.node().attributes;if(o)for(var a=0;a0?i.children[0].text:"")}null==t.key&&(o&&("ellipse"!=n&&"polygon"!=n||(n="path")),t.key=n+"-"+e)}function m(t,e){t.id=(e?e.id+".":"")+t.key}function v(t){c[t.id]=t}function y(t,e){o&&t.id in l&&("polygon"!=e.tag&&"ellipse"!=e.tag&&"path"!=e.tag||e.tag==t.tag&&"polygon"!=t.tag||("path"!=e.tag&&(t.alternativeOld=D(e,t)),"path"!=t.tag&&(t.alternativeNew=D(t,e))))}function _(t,e){if(i&&e&&("path"==e.tag||t.alternativeOld&&"path"==t.alternativeOld.tag)){var n=(t.alternativeNew||t).attributes.d;if(t.alternativeOld)var r=g(t.alternativeOld);else r=g(e);(t.alternativeOld||(t.alternativeOld={})).points=function(t,e,n,r){for(var i=t,o=i.cloneNode(),a=i.getTotalLength(),s=(o.setAttribute("d",e),o).getTotalLength(),u=[0],c=0,l=r?n:n/Math.max(a,s);(c+=l)<1;)u.push(c);return u.push(1),u.map(function(t){var e=i.getPointAtLength(t*a),n=o.getPointAtLength(t*s);return[[e.x,e.y],[n.x,n.y]]})}(r,n,a,s)}}function w(t){var e=arguments.length>2?arguments[2]:void 0;p(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),m(t,e);var n=l[t.id];v(t),y(t,n),_(t,n);var r={};t.children.forEach(function(e){var n=e.tag;"ellipse"!=n&&"polygon"!=n||(n="path"),null==r[n]&&(r[n]=0),w(e,r[n]++,t)})}function b(t){(function(t){if(u&&t.parent&&"node"==t.parent.attributes.class&&"title"==t.tag){if(t.children.length>0)var e=t.children[0].text;else e="";h[e]=t.parent}})(t),function(t){var e=t.tag;if(u&&!l[t.id]&&t.parent&&I(t)&&("path"==e||"polygon"==e)){if("polygon"==e){var n=t.parent.children.find(function(t){return"path"==t.tag});n&&(t.totalLength=n.totalLength)}var r=function(t){return function(t){return"edge"==t.parent.attributes.class?t.parent:t.parent.parent.parent}(t).children.find(function(t){return"title"==t.tag})}(t).children[0],i=r.text.split("->");2!=i.length&&(i=r.text.split("--"));var o=i[0],a=h[o],s=f[o];if(s){if((p=a.children.findIndex(function(t,e){return"g"==t.tag}))>=0){var c=a.children[p].children.findIndex(function(t,e){return"a"==t.tag});a=a.children[p].children[c]}(p=s.children.findIndex(function(t,e){return"g"==t.tag}))>=0&&(c=s.children[p].children.findIndex(function(t,e){return"a"==t.tag}),s=s.children[p].children[c]);for(var d=a.children,p=0;p0&&this._queue.shift().call(this)}function M(t,e,n,r){var i=[t*n-(e=-e)*(r=-r),t*r+e*n];return[t=i[0],e=-(e=i[1])]}function O(t,e,n,r,i,o,a){var s=d(P.call(this,o));t.data([s]),_.call(t.node(),s),R(t,e,n,r,i,o,a)}function R(t,e,n,r,i,o,a){var s=a.shortening||0,u=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],l=r-e,h=i-n,f=Math.sqrt(l*l+h*h);if(0==f)var d=1,p=0;else d=l/f,p=h/f;if(r=e+(f-s-10-.1)*d,i=n+(f-s-10-.1)*p,o.URL||o.tooltip)var g=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),m=g.selectWithoutDataPropagation("path"),v=g.selectWithoutDataPropagation("polygon");else m=t.selectWithoutDataPropagation("path"),v=t.selectWithoutDataPropagation("polygon");var y=c.path();y.moveTo(e,n),y.lineTo(r,i),m.attr("d",y),r=e+(f-s-10)*d,i=n+(f-s-10)*p;for(var _=0;_ b ["+n+"]}","svg","dot"),s=(new window.DOMParser).parseFromString(a,"image/svg+xml");return e.select(document.createDocumentFragment()).append(function(){return s.documentElement}).select(".edge")}function F(t,e,n,r,i,o){var a=d(Y.call(this,r,i));return t.data([a]),_.call(t.node(),a),q(t,e,n,i),this}function q(t,n,r,i,o){if(i.URL||i.tooltip)var a=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else a=t;var s=a.selectAll("ellipse,polygon,path,polyline"),u=t.selectWithoutDataPropagation("text");if(0!=s.size()){var c=s.node().getBBox();c.cx=c.x+c.width/2,c.cy=c.y+c.height/2}else 0!=u.size()&&(c={x:+u.attr("x"),y:+u.attr("y"),width:0,height:0,cx:+u.attr("x"),cy:+u.attr("y")});return s.each(function(t,i){var o=e.select(this);if(o.attr("cx"))o.attr("cx",b(n)).attr("cy",b(r));else if(o.attr("points")){var a=o.attr("points").trim();o.attr("points",function(t,e,n){var r,i=(r=t.split(" ")).map(function(t){return t.split(",")});return i=r.map(function(t){return[b(+e+ +t.split(",")[0]),b(+n+ +t.split(",")[1])]}),(r=i.map(function(t){return t.join(",")})).join(" ")}(a,n-c.cx,r-c.cy))}else{var s=o.attr("d");o.attr("d",function(t,e,n){(i=t.split(/[A-Z ]/)).shift();var r=t.split(/[^[A-Z ]+/),i=(i.map(function(t){return t.split(",")}),i.map(function(t){return[b(+e+ +t.split(",")[0]),b(+n+ +t.split(",")[1])]}).map(function(t){return t.join(",")}));return r.reduce(function(t,e,n){return t.concat(e,i[n])},[]).join("")}(s,n-c.cx,r-c.cy))}}),0!=u.size()&&u.attr("x",b(+u.attr("x")+n-c.cx)).attr("y",b(+u.attr("y")+r-c.cy)),this}function z(){if(!this._drawnNode)return this;var t=this._drawnNode.g;return t.empty()||t.remove(),this._drawnNode=null,this}function j(){return this._drawnNode?this._drawnNode.g:e.select(null)}function Y(t,n){for(var r="",i=0,o=Object.keys(n);i2")(a)+" ",i+=s+" ".repeat(o-s.length),i+=u.format(" >5")(t-n)+" ","initEnd"!=s&&(i+=u.format(" >5")(t-r.start[e])),"dataProcessEnd"==s&&(i+=" prepare "+u.format(" >5")(t-r.layoutEnd[e])),"renderEnd"==s&&c._transition&&(i+=" transition start margin "+u.format(" >5")(c._transition.delay()-(t-r.renderStart[e])),l=c._transition.delay(),f=c._transition.duration()),"transitionStart"==s){var h=t-r.renderStart[e];i+=" transition delay "+u.format(" >5")(t-r.renderStart[e]),i+=" expected "+u.format(" >5")(l),i+=" diff "+u.format(" >5")(h-l)}if("transitionEnd"==s){var d=t-r.transitionStart[e];i+=" transition duration "+u.format(" >5")(d),i+=" expected "+u.format(" >5")(f),i+=" diff "+u.format(" >5")(d-f)}console.log(i),n=t}:null)},s=0;s5&&void 0!==arguments[5]?arguments[5]:{};if((o=Object.assign({},o)).style&&o.style.includes("invis"))var s=e.select(null);else{var u=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),c=d(P.call(this,o));s=u.append("g").data([c]),_.call(s.node(),c),O.call(this,s,t,n,r,i,o,a)}return this._drawnEdge={g:s,x1:t,y1:n,x2:r,y2:i,attributes:o},this},updateDrawnEdge:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var a=this._drawnEdge.g;return i=Object.assign(this._drawnEdge.attributes,i),this._drawnEdge.x1=t,this._drawnEdge.y1=e,this._drawnEdge.x2=n,this._drawnEdge.y2=r,!a.empty()||i.style&&i.style.includes("invis")||(a=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=a),a.empty()||O.call(this,a,t,e,n,r,i,o),this},moveDrawnEdgeEndPoint:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var r=this._drawnEdge.g,i=this._drawnEdge.x1,o=this._drawnEdge.y1,a=this._drawnEdge.attributes;return this._drawnEdge.x2=t,this._drawnEdge.y2=e,R(r,i,o,t,e,a,n),this},insertDrawnEdge:function(t){if(!this._drawnEdge)throw Error("No edge has been drawn");var e=this._drawnEdge.g;if(e.empty())return this;e.selectWithoutDataPropagation("title").text(t);var n=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),r=n.datum(),i=this._extractData(e,r.children.length,n.datum());return r.children.push(i),v(e,i),this._drawnEdge=null,this},removeDrawnEdge:L},"removeDrawnEdge",L),l(V,"drawnEdgeSelection",U),l(V,"drawnEdgeSelection",U),l(V,"drawNode",function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((i=Object.assign({},i)).style&&i.style.includes("invis"))var a=e.select(null);else{var s=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),u=d(Y.call(this,r,i));a=s.append("g").data([u]),_.call(a.node(),u),F.call(this,a,t,n,r,i,o)}return this._drawnNode={g:a,nodeId:r,x:t,y:n,attributes:i},this}),l(V,"updateDrawnNode",function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var o=this._drawnNode.g;return null==n&&(n=this._drawnNode.nodeId),r=Object.assign(this._drawnNode.attributes,r),this._drawnNode.nodeId=n,this._drawnNode.x=t,this._drawnNode.y=e,!o.empty()||r.style&&r.style.includes("invis")||(o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=o),o.empty()||F.call(this,o,t,e,n,r,i),this}),l(V,"moveDrawnNode",function(t,e){if(!this._drawnNode)throw Error("No node has been drawn");var n=this._drawnNode.g,r=this._drawnNode.attributes;return this._drawnNode.x=t,this._drawnNode.y=e,n.empty()||q(n,t,e,r),this}),l(V,"insertDrawnNode",function(t){if(!this._drawnNode)throw Error("No node has been drawn");null==t&&(t=this._drawnNode.nodeId);var e=this._drawnNode.g;if(e.empty())return this;var n=this._drawnNode.attributes;if(e.selectWithoutDataPropagation("title").text(t),n.URL||n.tooltip)var r=e.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),i=(r.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),r.selectWithoutDataPropagation("text"));else e.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),i=e.selectWithoutDataPropagation("text");i.text(n.label||t);var o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),a=o.datum(),s=this._extractData(e,a.children.length,o.datum());return a.children.push(s),v(e,s),this._drawnNode=null,this}),l(V,"removeDrawnNode",z),l(V,"removeDrawnNode",z),l(V,"drawnNodeSelection",j),l(V,"drawnNodeSelection",j),V),e.selection.prototype.graphviz=function(t){var e=this.node().__graphviz__;return e?(e.options(t),i.timeout((function(){e._dispatch.call("initEnd",this)}).bind(this),0)):e=new H(this,t),e},e.selection.prototype.selectWithoutDataPropagation=function(t){return e.select(this.size()>0?this.node().querySelector(t):null)},t.graphviz=Q,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(24967),n(58552),n(82159),n(14788),n(30853),n(59320),n(95914),n(25047),n(16809))},60053:function(t,e,n){"use strict";n.d(e,{Z:function(){return o},M:function(){return a}});var r=n(3031),i=n(61317);function o(t,e){return((0,i.v)(e)?i.Z:a)(t,e)}function a(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=new Array(o),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1];return r((n-i/e)*e,i>0?t[i-1]:2*o-a,o,a,i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):(0,r.Z)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?i(t,n):(0,r.Z)(isNaN(t)?e:t)}},94065:function(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{Z:function(){return r}})},28917:function(t,e,n){"use strict";function r(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}n.d(e,{Z:function(){return r}})},30853:function(t,e,n){"use strict";n.r(e),n.d(e,{interpolate:function(){return r.Z},interpolateArray:function(){return i.Z},interpolateBasis:function(){return o.Z},interpolateBasisClosed:function(){return a.Z},interpolateCubehelix:function(){return nt},interpolateCubehelixLong:function(){return rt},interpolateDate:function(){return s.Z},interpolateDiscrete:function(){return u},interpolateHcl:function(){return j},interpolateHclLong:function(){return Y},interpolateHsl:function(){return b},interpolateHslLong:function(){return x},interpolateHue:function(){return l},interpolateLab:function(){return q},interpolateNumber:function(){return h.Z},interpolateNumberArray:function(){return f.Z},interpolateObject:function(){return d.Z},interpolateRgb:function(){return y.ZP},interpolateRgbBasis:function(){return y.hD},interpolateRgbBasisClosed:function(){return y.YD},interpolateRound:function(){return p.Z},interpolateString:function(){return g.Z},interpolateTransformCss:function(){return m.Y},interpolateTransformSvg:function(){return m.w},interpolateZoom:function(){return v.Z},piecewise:function(){return it},quantize:function(){return ot}});var r=n(3031),i=n(60053),o=n(39588),a=n(17280),s=n(28917);function u(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var c=n(22656);function l(t,e){var n=(0,c.wx)(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}var h=n(75306),f=n(61317),d=n(70901),p=n(47071),g=n(51882),m=n(44090),v=n(13764),y=n(38740),_=n(12314);function w(t){return function(e,n){var r=t((e=(0,_.Ym)(e)).h,(n=(0,_.Ym)(n)).h),i=(0,c.ZP)(e.s,n.s),o=(0,c.ZP)(e.l,n.l),a=(0,c.ZP)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}var b=w(c.wx),x=w(c.ZP),E=n(80052),T=Math.PI/180,A=180/Math.PI,S=4/29,I=6/29,C=3*I*I;function D(t){if(t instanceof N)return new N(t.l,t.a,t.b,t.opacity);if(t instanceof P)return F(t);t instanceof _.Ss||(t=(0,_.SU)(t));var e,n,r=R(t.r),i=R(t.g),o=R(t.b),a=Z((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?e=n=a:(e=Z((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Z((.0139322*r+.0971045*i+.7141733*o)/.82521)),new N(116*a-16,500*(e-a),200*(a-n),t.opacity)}function k(t,e,n,r){return 1===arguments.length?D(t):new N(t,e,n,null==r?1:r)}function N(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Z(t){return t>.008856451679035631?Math.pow(t,1/3):t/C+S}function M(t){return t>I?t*t*t:C*(t-S)}function O(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function R(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function L(t){if(t instanceof P)return new P(t.h,t.c,t.l,t.opacity);if(t instanceof N||(t=D(t)),0===t.a&&0===t.b)return new P(NaN,0u&&(s=e.slice(u,s),l[c]?l[c]+=s:l[++c]=s),(n=n[0])===(a=a[0])?l[c]?l[c]+=a:l[++c]=a:(l[++c]=null,h.push({i:c,x:(0,r.Z)(n,a)})),u=o.lastIndex;return u180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:(0,s.Z)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:(0,s.Z)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:(0,s.Z)(t,n)},{i:u-2,x:(0,s.Z)(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++n1e-6)if(Math.abs(h*u-c*l)>1e-6&&o){var d=r-a,p=i-s,g=u*u+c*c,m=d*d+p*p,v=Math.sqrt(g),y=Math.sqrt(f),_=o*Math.tan((n-Math.acos((g+f-m)/(2*v*y)))/2),w=_/y,b=_/v;Math.abs(w-1)>1e-6&&(this._+="L"+(t+w*l)+","+(e+w*h)),this._+="A"+o+","+o+",0,0,"+ +(h*d>l*p)+","+(this._x1=t+b*u)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,o,a,s,u){t=+t,e=+e,u=!!u;var c=(o=+o)*Math.cos(a),l=o*Math.sin(a),h=t+c,f=e+l,d=1^u,p=u?a-s:s-a;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+h+","+f:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+h+","+f),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+d+","+(t-c)+","+(e-l)+"A"+o+","+o+",0,1,"+d+","+(this._x1=h)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+d+","+(this._x1=t+o*Math.cos(s))+","+(this._y1=e+o*Math.sin(s))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.Z=a},32436:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(26669),i=n(71867);function o(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.P&&e.documentElement.namespaceURI===i.P?e.createElement(t):e.createElementNS(n,t)}}function a(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function s(t){var e=(0,r.Z)(t);return(e.local?a:o)(e)}},24967:function(t,e,n){"use strict";n.r(e),n.d(e,{clientPoint:function(){return d.Z},create:function(){return o},creator:function(){return r.Z},customEvent:function(){return E._H},event:function(){return E.B},local:function(){return s},matcher:function(){return c.Z},mouse:function(){return l.Z},namespace:function(){return h.Z},namespaces:function(){return f.Z},select:function(){return i.Z},selectAll:function(){return g},selection:function(){return p.ZP},selector:function(){return m.Z},selectorAll:function(){return v.Z},style:function(){return y.S},touch:function(){return _.Z},touches:function(){return b},window:function(){return x.Z}});var r=n(32436),i=n(41036);function o(t){return(0,i.Z)((0,r.Z)(t).call(document.documentElement))}var a=0;function s(){return new u}function u(){this._="@"+(++a).toString(36)}u.prototype=s.prototype={constructor:u,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var c=n(54382),l=n(38337),h=n(26669),f=n(71867),d=n(54762),p=n(42710);function g(t){return"string"==typeof t?new p.Y1([document.querySelectorAll(t)],[document.documentElement]):new p.Y1([null==t?[]:t],p.Jz)}var m=n(69309),v=n(85502),y=n(97717),_=n(45161),w=n(72732);function b(t,e){null==e&&(e=(0,w.Z)().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.Z.hasOwnProperty(e)?{space:r.Z[e],local:t}:t}},71867:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});var r="http://www.w3.org/1999/xhtml";e.Z={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},54762:function(t,e,n){"use strict";function r(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}n.d(e,{Z:function(){return r}})},41036:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(42710);function i(t){return"string"==typeof t?new r.Y1([[document.querySelector(t)]],[document.documentElement]):new r.Y1([[t]],r.Jz)}},42710:function(t,e,n){"use strict";n.d(e,{Y1:function(){return Q},ZP:function(){return $},Jz:function(){return H}});var r=n(69309),i=n(85502),o=n(54382);function a(t){return new Array(t.length)}function s(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function u(t,e,n,r,i,o){for(var a,u=0,c=e.length,l=o.length;ue?1:t>=e?0:NaN}s.prototype={constructor:s,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var h=n(26669);function f(t){return function(){this.removeAttribute(t)}}function d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function p(t,e){return function(){this.setAttribute(t,e)}}function g(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function m(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function v(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var y=n(97717);function _(t){return function(){delete this[t]}}function w(t,e){return function(){this[t]=e}}function b(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function x(t){return t.trim().split(/^|\s+/)}function E(t){return t.classList||new T(t)}function T(t){this._node=t,this._names=x(t.getAttribute("class")||"")}function A(t,e){for(var n=E(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var P=n(32436);function F(){return null}function q(){var t=this.parentNode;t&&t.removeChild(this)}function z(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function j(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var Y=n(92711),B=n(11130);function G(t,e,n){var r=(0,B.Z)(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function J(t,e){return function(){return G(this,t,e)}}function V(t,e){return function(){return G(this,t,e.apply(this,arguments))}}var H=[null];function Q(t,e){this._groups=t,this._parents=e}function W(){return new Q([[document.documentElement]],H)}Q.prototype=W.prototype={constructor:Q,select:function(t){"function"!=typeof t&&(t=(0,r.Z)(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o=E&&(E=x+1);!(b=_[E])&&++E=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=l);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?_:"function"==typeof e?b:w)(t,e)):this.node()[t]},classed:function(t,e){var n=x(t+"");if(arguments.length<2){for(var r=E(this.node()),i=-1,o=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function u(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r1?this.each((null==e?i:"function"==typeof e?a:o)(t,e,null==n?"":n)):u(this.node(),t)}function u(t,e){return t.style.getPropertyValue(e)||(0,r.Z)(t).getComputedStyle(t,null).getPropertyValue(e)}},69309:function(t,e,n){"use strict";function r(){}function i(t){return null==t?r:function(){return this.querySelector(t)}}n.d(e,{Z:function(){return i}})},85502:function(t,e,n){"use strict";function r(){return[]}function i(t){return null==t?r:function(){return this.querySelectorAll(t)}}n.d(e,{Z:function(){return i}})},72732:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(92711);function i(){for(var t,e=r.B;t=e.sourceEvent;)e=t;return e}},45161:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(72732),i=n(54762);function o(t,e,n){arguments.length<3&&(n=e,e=(0,r.Z)().changedTouches);for(var o,a=0,s=e?e.length:0;a=0&&e._call.call(null,t),e=e._next;--o}function y(){c=(u=h.now())+l,o=a=0;try{v()}finally{o=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,w(o)}(),c=0}}function _(){var t=h.now(),e=t-u;e>1e3&&(l-=e,u=t)}function w(t){o||(a&&(a=clearTimeout(a)),t-c>24?(t<1/0&&(a=setTimeout(y,t-h.now()-l)),s&&(s=clearInterval(s))):(s||(u=h.now(),s=setInterval(_,1e3)),o=1,f(y)))}g.prototype=m.prototype={constructor:g,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},82159:function(t,e,n){"use strict";n.r(e),n.d(e,{active:function(){return it},interrupt:function(){return d},transition:function(){return X}});var r=n(42710),i=n(64641),o=n(65244),a=n(74199),s=(0,i.Z)("start","end","cancel","interrupt"),u=[];function c(t,e,n,r,i,c){var l=t.__transition;if(l){if(n in l)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function s(o){var l,h,f,d;if(1!==n.state)return c();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return(0,a.Z)(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[l]):+l0)throw new Error("too late; already scheduled");return n}function h(t,e){var n=f(t,e);if(n.state>3)throw new Error("too late; already running");return n}function f(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function d(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}var p=n(44090),g=n(26669);function m(t,e){var n,r;return function(){var i=h(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?l:h;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var z=n(69309),j=n(85502),Y=r.ZP.prototype.constructor,B=n(97717);function G(t){return function(){this.style.removeProperty(t)}}function J(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function V(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&J(t,o,n)),r}return o._value=e,o}function H(t){return function(e){this.textContent=t.call(this,e)}}function Q(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&H(r)),e}return r._value=t,r}var W=0;function $(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function X(t){return(0,r.ZP)().transition(t)}function K(){return++W}var tt=r.ZP.prototype;$.prototype=X.prototype={constructor:$,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=(0,z.Z)(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a1&&n.name===e)return new $([[t]],rt,e,+r);return null}},59320:function(t,e,n){"use strict";n.r(e),n.d(e,{zoom:function(){return T},zoomIdentity:function(){return p},zoomTransform:function(){return g}});var r=n(64641),i=n(8634),o=n(13764),a=n(92711),s=n(38337),u=n(41036),c=n(45161),l=n(82159);function h(t){return function(){return t}}function f(t,e,n){this.target=t,this.type=e,this.transform=n}function d(t,e,n){this.k=t,this.x=e,this.y=n}d.prototype={constructor:d,scale:function(t){return 1===t?this:new d(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new d(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var p=new d(1,0,0);function g(t){return t.__zoom||p}function m(){a.B.stopImmediatePropagation()}function v(){a.B.preventDefault(),a.B.stopImmediatePropagation()}function y(){return!a.B.button}function _(){var t,e,n=this;return n instanceof SVGElement?(t=(n=n.ownerSVGElement||n).width.baseVal.value,e=n.height.baseVal.value):(t=n.clientWidth,e=n.clientHeight),[[0,0],[t,e]]}function w(){return this.__zoom||p}function b(){return-a.B.deltaY*(a.B.deltaMode?120:1)/500}function x(){return"ontouchstart"in this}function E(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function T(){var t,e,n=y,g=_,T=E,A=b,S=x,I=[0,1/0],C=[[-1/0,-1/0],[1/0,1/0]],D=250,k=o.Z,N=[],Z=(0,r.Z)("start","zoom","end"),M=0;function O(t){t.property("__zoom",w).on("wheel.zoom",z).on("mousedown.zoom",j).on("dblclick.zoom",Y).filter(S).on("touchstart.zoom",B).on("touchmove.zoom",G).on("touchend.zoom touchcancel.zoom",J).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(t,e){return(e=Math.max(I[0],Math.min(I[1],e)))===t.k?t:new d(e,t.x,t.y)}function L(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new d(t.k,r,i)}function U(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function P(t,e,n){t.on("start.zoom",function(){F(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){F(this,arguments).end()}).tween("zoom",function(){var t=this,r=arguments,i=F(t,r),o=g.apply(t,r),a=n||U(o),s=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=t.__zoom,c="function"==typeof e?e.apply(t,r):e,l=k(u.invert(a).concat(s/u.k),c.invert(a).concat(s/c.k));return function(t){if(1===t)t=c;else{var e=l(t),n=s/e[2];t=new d(n,a[0]-e[0]*n,a[1]-e[1]*n)}i.zoom(null,t)}})}function F(t,e){for(var n,r=0,i=N.length;rM}t.zoom("mouse",T(L(t.that.__zoom,t.mouse[0]=(0,s.Z)(t.that),t.mouse[1]),t.extent,C))}function d(){r.on("mousemove.zoom mouseup.zoom",null),(0,i.D)(a.B.view,t.moved),v(),t.end()}}function Y(){if(n.apply(this,arguments)){var t=this.__zoom,e=(0,s.Z)(this),r=t.invert(e),i=t.k*(a.B.shiftKey?.5:2),o=T(L(R(t,i),e,r),g.apply(this,arguments),C);v(),D>0?(0,u.Z)(this).transition().duration(D).call(P,o,e):(0,u.Z)(this).call(O.transform,o)}}function B(){if(n.apply(this,arguments)){var e,r,i,o,s=F(this,arguments),h=a.B.changedTouches,f=h.length;for(m(),r=0;r0;--u)if(r=e[u].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,function(e){return t.outEdges(e.v,e.w)}),!0)};var a=r.constant(1);function s(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),function(r){var i=t.edge(r),s=t.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,u(e,n,s)}),r.forEach(t.outEdges(i.v),function(r){var i=t.edge(r),o=t.node(r.w);o.in-=i,u(e,n,o)}),t.removeNode(i.v),a}function u(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},73363:function(t,e,n){"use strict";var r=n(91096),i=n(19265),o=n(3266),a=n(29438),s=n(45247).normalizeRanks,u=n(22877),c=n(45247).removeEmptyRanks,l=n(8131),h=n(28549),f=n(64061),d=n(41727),p=n(14588),g=n(45247),m=n(49174).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",function(){var e=n(" buildLayoutGraph",function(){return function(t){var e=new m({multigraph:!0,compound:!0}),n=S(t.graph());return e.setGraph(r.merge({},y,A(n,v),r.pick(n,_))),r.forEach(t.nodes(),function(n){var i=S(t.node(n));e.setNode(n,r.defaults(A(i,w),b)),e.setParent(n,t.parent(n))}),r.forEach(t.edges(),function(n){var i=S(t.edge(n));e.setEdge(n,r.merge({},E,A(i,x),r.pick(i,T)))}),e}(t)});n(" runLayout",function(){!function(t,e){e(" makeSpaceForEdgeLabels",function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(t)}),e(" removeSelfEdges",function(){!function(t){r.forEach(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}})}(t)}),e(" acyclic",function(){i.run(t)}),e(" nestingGraph.run",function(){l.run(t)}),e(" rank",function(){a(g.asNonCompoundGraph(t))}),e(" injectEdgeLabelProxies",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w);g.addDummyNode(t,"edge-proxy",{rank:(i.rank-r.rank)/2+r.rank,e},"_ep")}})}(t)}),e(" removeEmptyRanks",function(){c(t)}),e(" nestingGraph.cleanup",function(){l.cleanup(t)}),e(" normalizeRanks",function(){s(t)}),e(" assignRankMinMax",function(){!function(t){var e=0;r.forEach(t.nodes(),function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))}),t.graph().maxRank=e}(t)}),e(" removeEdgeLabelProxies",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}(t)}),e(" normalize.run",function(){o.run(t)}),e(" parentDummyChains",function(){u(t)}),e(" addBorderSegments",function(){h(t)}),e(" order",function(){d(t)}),e(" insertSelfEdges",function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,function(e){var n=0;r.forEach(e,function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}(t)}),e(" adjustCoordinateSystem",function(){f.adjust(t)}),e(" position",function(){p(t)}),e(" positionSelfEdges",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}})}(t)}),e(" removeBorderNodes",function(){!function(t){r.forEach(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}}),r.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}(t)}),e(" normalize.undo",function(){o.undo(t)}),e(" fixupEdgeLabelCoords",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}(t)}),e(" undoCoordinateSystem",function(){f.undo(t)}),e(" translateGraph",function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),s=a.marginx||0,u=a.marginy||0;function c(t){var r=t.x,a=t.y,s=t.width,u=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}r.forEach(t.nodes(),function(e){c(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.has(n,"x")&&c(n)}),e-=s,i-=u,r.forEach(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=i}),r.forEach(t.edges(),function(n){var o=t.edge(n);r.forEach(o.points,function(t){t.x-=e,t.y-=i}),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)}),a.width=n-e+s,a.height=o-i+u}(t)}),e(" assignNodeIntersects",function(){!function(t){r.forEach(t.edges(),function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))})}(t)}),e(" reversePoints",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}(t)}),e(" acyclic.undo",function(){i.undo(t)})}(e,n)}),n(" updateInputGraph",function(){!function(t,e){r.forEach(t.nodes(),function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))}),r.forEach(t.edges(),function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)})})};var v=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],w=["width","height"],b={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},T=["labelpos"];function A(t,e){return r.mapValues(r.pick(t,e),Number)}function S(t){var e={};return r.forEach(t,function(t,n){e[n.toLowerCase()]=t}),e}},91096:function(t,e,n){var r;try{r={cloneDeep:n(38961),constant:n(60583),defaults:n(25177),each:n(97635),filter:n(9673),find:n(13963),flatten:n(38863),forEach:n(26404),forIn:n(21308),has:n(71645),isUndefined:n(96075),last:n(83074),map:n(86169),mapValues:n(7301),max:n(11653),merge:n(81940),min:n(47983),minBy:n(42707),now:n(41396),pick:n(28891),range:n(79289),reduce:n(37442),sortBy:n(36272),uniqueId:n(83798),values:n(95041),zipObject:n(3393)}}catch(i){}r||(r=window._),t.exports=r},8131:function(t,e,n){var r=n(91096),i=n(45247);function o(t,e,n,a,s,u,c){var l=t.children(c);if(l.length){var h=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),d=t.node(c);t.setParent(h,c),d.borderTop=h,t.setParent(f,c),d.borderBottom=f,r.forEach(l,function(r){o(t,e,n,a,s,u,r);var i=t.node(r),l=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=l!==d?1:s-u[c]+1;t.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(c)||t.setEdge(e,h,{weight:0,minlen:s+u[c]})}else c!==e&&t.setEdge(e,c,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,function(t){n(t,o+1)}),e[i]=o}return r.forEach(t.children(),function(t){n(t,1)}),e}(t),a=r.max(r.values(n))-1,s=2*a+1;t.graph().nestingRoot=e,r.forEach(t.edges(),function(e){t.edge(e).minlen*=s});var u=function(t){return r.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)}(t)+1;r.forEach(t.children(),function(r){o(t,e,s,u,a,n,r)}),t.graph().nodeRankFactor=s},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})}}},3266:function(t,e,n){"use strict";var r=n(91096),i=n(45247);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),function(e){!function(t,e){var n,r,o,a=e.v,s=t.node(a).rank,u=e.w,c=t.node(u).rank,l=e.name,h=t.edge(e),f=h.labelRank;if(c!==s+1){for(t.removeEdge(e),o=0,++s;s0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;c+=t.weight*n})),c}t.exports=function(t,e){for(var n=0,r=1;r=2),s=l.buildLayerMatrix(t);var m=o(t,s);m=t.barycenter)&&(o=0,a=0,(n=t).weight&&(o+=n.barycenter*n.weight,a+=n.weight),(i=e).weight&&(o+=i.barycenter*i.weight,a+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=o/a,n.weight=a,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,function(t){return!t.merged}),function(t){return r.pick(t,["vs","i","barycenter","weight"])})}(r.filter(n,function(t){return!t.indegree}))}},5826:function(t,e,n){var r=n(91096),i=n(25412),o=n(82764),a=n(37850);t.exports=function t(e,n,s,u){var c=e.children(n),l=e.node(n),h=l?l.borderLeft:void 0,f=l?l.borderRight:void 0,d={};h&&(c=r.filter(c,function(t){return t!==h&&t!==f}));var p=i(e,c);r.forEach(p,function(n){if(e.children(n.v).length){var i=t(e,n.v,s,u);d[n.v]=i,r.has(i,"barycenter")&&(a=i,r.isUndefined((o=n).barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a});var g=o(p,s);!function(t,e){r.forEach(t,function(t){t.vs=r.flatten(t.vs.map(function(t){return e[t]?e[t].vs:t}),!0)})}(g,d);var m=a(g,u);if(h&&(m.vs=r.flatten([h,m.vs,f],!0),e.predecessors(h).length)){var v=e.node(e.predecessors(h)[0]),y=e.node(e.predecessors(f)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+v.order+y.order)/(m.weight+2),m.weight+=2}return m}},37850:function(t,e,n){var r=n(91096),i=n(45247);function o(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,a=i.partition(t,function(t){return r.has(t,"barycenter")}),s=a.lhs,u=r.sortBy(a.rhs,function(t){return-t.i}),c=[],l=0,h=0,f=0;s.sort((n=!!e,function(t,e){return t.barycentere.barycenter?1:n?e.i-t.i:t.i-e.i})),f=o(c,u,f),r.forEach(s,function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=o(c,u,f)});var d={vs:r.flatten(c,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}},22877:function(t,e,n){var r=n(91096);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,lim:n++}}),e}(t);r.forEach(t.graph().dummyChains,function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||c>e[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,s=o.lca,u=0,c=a[u],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(c=a[u])!==s&&t.node(c).maxRanks)&&u(n,e,c)})})}return r.reduce(e,function(e,n){var o,a=-1,s=0;return r.forEach(n,function(r,u){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(o=t.node(c[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,e.length)}),n}),n}function u(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function c(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var o={},a={},s={};return r.forEach(e,function(t){r.forEach(t,function(t,e){o[t]=t,a[t]=t,s[t]=e})}),r.forEach(e,function(t){var e=-1;r.forEach(t,function(t){var u=i(t);if(u.length)for(var l=((u=r.sortBy(u,function(t){return s[t]})).length-1)/2,h=Math.floor(l),f=Math.ceil(l);h<=f;++h){var d=u[h];a[t]===t&&eu.lim&&(c=u,l=!0);var h=r.filter(e.edges(),function(e){return l===y(0,t.node(e.v),c)&&l!==y(0,t.node(e.w),c)});return r.minBy(h,function(t){return o(e,t)})}function v(t,e,n,i){t.removeEdge(n.v,n.w),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),function(t){return!e.node(t).parent}),i=s(t,n);i=i.slice(1),r.forEach(i,function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)})}(t,e)}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=h,l.calcCutValue=f,l.leaveEdge=g,l.enterEdge=m,l.exchangeEdges=v},21790:function(t,e,n){"use strict";var r=n(91096);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.min(r.map(t.outEdges(i),function(e){return n(e.w)-t.edge(e).minlen}));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},45247:function(t,e,n){"use strict";var r=n(91096),i=n(49174).Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){return r.max(r.map(t.nodes(),function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n}))}t.exports={addDummyNode:o,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,u=t.width/2,c=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),function(){return[]});return r.forEach(t.nodes(),function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)}),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank}));r.forEach(t.nodes(),function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)})},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank})),n=[];r.forEach(t.nodes(),function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)});var i=0,o=t.graph().nodeRankFactor;r.forEach(n,function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,function(e){t.node(e).rank+=i})})},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(t,"border",i,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},32862:function(t){t.exports="0.8.5"},54204:function(t,e,n){var r=n(97078);t.exports={Graph:r.Graph,json:n(2063),alg:n(29790),version:r.version}},66451:function(t,e,n){var r=n(77241);t.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),function(t){e=[],o(t),e.length&&i.push(e)}),i}},70485:function(t,e,n){var r=n(77241);function i(t,e,n,o,a,s){r.has(o,e)||(o[e]=!0,n||s.push(e),r.each(a(e),function(e){i(t,e,n,o,a,s)}),n&&s.push(e))}t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],s={};return r.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);i(t,e,"post"===n,s,o,a)}),a}},85818:function(t,e,n){var r=n(26731),i=n(77241);t.exports=function(t,e,n){return i.transform(t.nodes(),function(i,o){i[o]=r(t,o,e,n)},{})}},26731:function(t,e,n){var r=n(77241),i=n(9266);t.exports=function(t,e,n,r){return function(t,e,n,r){var o,a,s={},u=new i,c=function(t){var e=t.v!==o?t.v:t.w,r=s[e],i=n(t),c=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c0&&(o=u.removeMin(),(a=s[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return s}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},8821:function(t,e,n){var r=n(77241),i=n(45759);t.exports=function(t){return r.filter(i(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},24980:function(t,e,n){var r=n(77241);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}})}),i.forEach(function(t){var e=r[t];i.forEach(function(n){var o=r[n];i.forEach(function(n){var r=e[n],i=o[n],a=o[t].distance+r.distance;a0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(c)}return a}},45759:function(t,e,n){var r=n(77241);t.exports=function(t){var e=0,n=[],i={},o=[];function a(s){var u=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach(function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(a(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))}),u.lowlink===u.index){var c,l=[];do{c=n.pop(),i[c].onStack=!1,l.push(c)}while(s!==c);o.push(l)}}return t.nodes().forEach(function(t){r.has(i,t)||a(t)}),o}},94394:function(t,e,n){var r=n(77241);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),function a(s){if(r.has(n,s))throw new o;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],i.push(s))}),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=new Error},9266:function(t,e,n){var r=n(77241);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(t){return t.key})},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].prioritya){var s=o;o=a,a=s}return o+"\x01"+a+"\x01"+(r.isUndefined(i)?"\0":i)}function u(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}function c(t,e){return s(t,e.v,e.w,e.name)}t.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._in[e])})},i.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._out[e])})},i.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,function(t){n.length>1?i.setNode(t,e):i.setNode(t)}),this},i.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return r.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},i.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),r.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var i={};function o(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(e.nodes(),function(t){e.setParent(t,o(t))}),e},i.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r}),this},i.prototype.setEdge=function(){var t,e,n,i,a=!1,c=arguments[0];"object"==typeof c&&null!==c&&"v"in c?(t=c.v,e=c.w,n=c.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=c,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var l=s(this._isDirected,t,e,n);if(r.has(this._edgeLabels,l))return a&&(this._edgeLabels[l]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=a?i:this._defaultEdgeLabelFn(t,e,n);var h=u(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},i.prototype.edge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.v===e}):i}},i.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.w===e}):i}},i.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},97078:function(t,e,n){t.exports={Graph:n(10179),version:n(57160)}},2063:function(t,e,n){var r=n(77241),i=n(10179);function o(t){return r.map(t.nodes(),function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o})}function a(t){return r.map(t.edges(),function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i})}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),r.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},77241:function(t,e,n){var r;try{r={clone:n(7063),constant:n(60583),each:n(97635),filter:n(9673),has:n(71645),isArray:n(47712),isEmpty:n(19129),isFunction:n(70458),isUndefined:n(96075),keys:n(48600),map:n(86169),reduce:n(37442),size:n(26809),transform:n(86987),union:n(50875),values:n(95041)}}catch(i){}r||(r=window._),t.exports=r},57160:function(t){t.exports="2.1.8"},22550:function(t,e,n){var r=n(31311)(n(58568),"DataView");t.exports=r},27868:function(t,e,n){var r=n(18944),i=n(18790),o=n(40218),a=n(80072),s=n(3575);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}},5724:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r0&&o(l)?n>1?t(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},48486:function(t,e,n){var r=n(43999)();t.exports=r},79941:function(t,e,n){var r=n(48486),i=n(48600);t.exports=function(t,e){return t&&r(t,e,i)}},91338:function(t,e,n){var r=n(21813),i=n(71241);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&ne}},50018:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},29828:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},37551:function(t,e,n){var r=n(72322),i=n(32564),o=n(39920);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},80561:function(t,e,n){var r=n(3219),i=n(3902);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},31999:function(t,e,n){var r=n(47690),i=n(3902);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},47690:function(t,e,n){var r=n(30964),i=n(49642),o=n(97868),a=n(85234),s=n(32234),u=n(47712),c=n(80354),l=n(51156),h="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,p,g){var m=u(t),v=u(e),y=m?"[object Array]":s(t),_=v?"[object Array]":s(e),w=(y="[object Arguments]"==y?h:y)==h,b=(_="[object Arguments]"==_?h:_)==h,x=y==_;if(x&&c(t)){if(!c(e))return!1;m=!0,w=!1}if(x&&!w)return g||(g=new r),m||l(t)?i(t,e,n,d,p,g):o(t,e,y,n,d,p,g);if(!(1&n)){var E=w&&f.call(t,"__wrapped__"),T=b&&f.call(e,"__wrapped__");if(E||T){var A=E?t.value():t,S=T?e.value():e;return g||(g=new r),p(A,S,n,d,g)}}return!!x&&(g||(g=new r),a(t,e,n,d,p,g))}},75080:function(t,e,n){var r=n(32234),i=n(3902);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},16050:function(t,e,n){var r=n(30964),i=n(31999);t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a=200){var g=e?null:s(t);if(g)return u(g);f=!1,l=a,p=new r}else p=e?[]:d;t:for(;++ce||a&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!l&&t=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},49327:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r-1?s[u?e[c]:c]:void 0}}},15395:function(t,e,n){var r=n(49727),i=n(10139),o=n(56016);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?el))return!1;var f=u.get(t),d=u.get(e);if(f&&d)return f==e&&d==t;var p=-1,g=!0,m=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p-1&&t%1==0&&t-1}},2154:function(t,e,n){var r=n(67477);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},58289:function(t,e,n){var r=n(27868),i=n(58170),o=n(6647);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},19581:function(t,e,n){var r=n(65810);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},61608:function(t,e,n){var r=n(65810);t.exports=function(t){return r(this,t).get(t)}},8901:function(t,e,n){var r=n(65810);t.exports=function(t){return r(this,t).has(t)}},12399:function(t,e,n){var r=n(65810);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},95622:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},96878:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},94667:function(t,e,n){var r=n(74884);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},54263:function(t,e,n){var r=n(31311)(Object,"create");t.exports=r},75427:function(t,e,n){var r=n(11621)(Object.keys,Object);t.exports=r},3601:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},80166:function(t,e,n){t=n.nmd(t);var r=n(52127),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},91059:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},11621:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},90877:function(t,e,n){var r=n(86932),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},31816:function(t,e,n){var r=n(58170);t.exports=function(){this.__data__=new r,this.size=0}},86246:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},95499:function(t){t.exports=function(t){return this.__data__.get(t)}},17114:function(t){t.exports=function(t){return this.__data__.has(t)}},68677:function(t,e,n){var r=n(58170),i=n(6647),o=n(98856);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},39920:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n-1&&t%1==0&&t<=9007199254740991}},49333:function(t,e,n){var r=n(75080),i=n(97633),o=n(80166),a=o&&o.isMap,s=a?i(a):r;t.exports=s},17305:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3902:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},7629:function(t,e,n){var r=n(3219),i=n(45410),o=n(3902),a=Function.prototype.toString,s=Object.prototype.hasOwnProperty,u=a.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==u}},8274:function(t,e,n){var r=n(15104),i=n(97633),o=n(80166),a=o&&o.isSet,s=a?i(a):r;t.exports=s},27764:function(t,e,n){var r=n(3219),i=n(47712),o=n(3902);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},30419:function(t,e,n){var r=n(3219),i=n(3902);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},51156:function(t,e,n){var r=n(94154),i=n(97633),o=n(80166),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},96075:function(t){t.exports=function(t){return void 0===t}},48600:function(t,e,n){var r=n(48421),i=n(97272),o=n(9140);t.exports=function(t){return o(t)?r(t):i(t)}},10752:function(t,e,n){var r=n(48421),i=n(40623),o=n(9140);t.exports=function(t){return o(t)?r(t,!0):i(t)}},83074:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},86169:function(t,e,n){var r=n(20529),i=n(82617),o=n(26091),a=n(47712);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},7301:function(t,e,n){var r=n(61216),i=n(79941),o=n(82617);t.exports=function(t,e){var n={};return e=o(e,3),i(t,function(t,i,o){r(n,i,e(t,i,o))}),n}},11653:function(t,e,n){var r=n(91241),i=n(98109),o=n(19903);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},74884:function(t,e,n){var r=n(98856);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},81940:function(t,e,n){var r=n(75705),i=n(57082)(function(t,e,n){r(t,e,n)});t.exports=i},47983:function(t,e,n){var r=n(91241),i=n(69661),o=n(19903);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},42707:function(t,e,n){var r=n(91241),i=n(82617),o=n(69661);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},15533:function(t){t.exports=function(){}},41396:function(t,e,n){var r=n(58568);t.exports=function(){return r.Date.now()}},28891:function(t,e,n){var r=n(14964),i=n(9771)(function(t,e){return null==t?{}:r(t,e)});t.exports=i},57675:function(t,e,n){var r=n(80087),i=n(47044),o=n(46149),a=n(71241);t.exports=function(t){return o(t)?r(a(t)):i(t)}},79289:function(t,e,n){var r=n(15395)();t.exports=r},37442:function(t,e,n){var r=n(27971),i=n(43079),o=n(82617),a=n(95482),s=n(47712);t.exports=function(t,e,n){var u=s(t)?r:a,c=arguments.length<3;return u(t,o(e,4),n,c,i)}},26809:function(t,e,n){var r=n(97272),i=n(32234),o=n(9140),a=n(27764),s=n(3941);t.exports=function(t){if(null==t)return 0;if(o(t))return a(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},36272:function(t,e,n){var r=n(9555),i=n(22824),o=n(37165),a=n(10139),s=o(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])});t.exports=s},20668:function(t){t.exports=function(){return[]}},1950:function(t){t.exports=function(){return!1}},56016:function(t,e,n){var r=n(68135);t.exports=function(t){return t?1/0===(t=r(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},82748:function(t,e,n){var r=n(56016);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},68135:function(t,e,n){var r=n(94530),i=n(17305),o=n(30419),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},65208:function(t,e,n){var r=n(79399),i=n(10752);t.exports=function(t){return r(t,i(t))}},89196:function(t,e,n){var r=n(17667);t.exports=function(t){return null==t?"":r(t)}},86987:function(t,e,n){var r=n(41492),i=n(56004),o=n(79941),a=n(82617),s=n(45410),u=n(47712),c=n(80354),l=n(70458),h=n(17305),f=n(51156);t.exports=function(t,e,n){var d=u(t),p=d||c(t)||f(t);if(e=a(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:h(t)&&l(g)?i(s(t)):{}}return(p?r:o)(t,function(t,r,i){return e(n,t,r,i)}),n}},50875:function(t,e,n){var r=n(9555),i=n(37165),o=n(66833),a=n(56633),s=i(function(t){return o(r(t,1,a,!0))});t.exports=s},83798:function(t,e,n){var r=n(89196),i=0;t.exports=function(t){var e=++i;return r(t)+e}},95041:function(t,e,n){var r=n(10744),i=n(48600);t.exports=function(t){return null==t?[]:r(t,i(t))}},3393:function(t,e,n){var r=n(25823),i=n(60170);t.exports=function(t,e){return i(t||[],e||[],r)}},41282:function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(69812)),r(n(65098)),r(n(59895)),r(n(13408)),r(n(66082)),r(n(33839)),r(n(51390)),r(n(83807)),r(n(24232)),r(n(22267)),r(n(741)),r(n(21539)),r(n(97002)),r(n(99147)),r(n(70980)),r(n(96684))},69812:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390),a=function(t){function e(e){var n=t.call(this)||this,r=e;return r.trigger&&(n.trigger=r.trigger),r.kick&&(n.kick=r.kick),r.drag&&(n.drag=r.drag),r.on&&(n.on=r.on),n.dragstart=n.dragStart=o.Layout.dragStart,n.dragend=n.dragEnd=o.Layout.dragEnd,n}return i(e,t),e.prototype.trigger=function(t){},e.prototype.kick=function(){},e.prototype.drag=function(){},e.prototype.on=function(t,e){return this},e}(o.Layout);e.LayoutAdaptor=a,e.adaptor=function(t){return new a(t)}},96684:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51390),i=n(66082);e.gridify=function(t,e,n,r){return t.cola.start(0,0,0,10,!1),function(t,e,n,r){t.forEach(function(t){t.routerNode={name:t.name,bounds:t.bounds.inflate(-n)}}),e.forEach(function(e){e.routerNode={bounds:e.bounds.inflate(-r),children:(void 0!==e.groups?e.groups.map(function(e){return t.length+e.id}):[]).concat(void 0!==e.leaves?e.leaves.map(function(t){return t.index}):[])}});var o=t.concat(e).map(function(t,e){return t.routerNode.id=e,t.routerNode});return new i.GridRouter(o,{getChildren:function(t){return t.children},getBounds:function(t){return t.bounds}},n-r)}(t.cola.nodes(),t.cola.groups(),n,r).routeEdges(t.powerGraph.powerEdges,e,function(t){return t.source.routerNode.id},function(t){return t.target.routerNode.id})},e.powerGraphGridLayout=function(t,e,n){var i;t.nodes.forEach(function(t,e){return t.index=e}),(new r.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(t){(i=t).groups.forEach(function(t){return t.padding=n})});var o=t.nodes.length,a=[],s=t.nodes.slice(0);return s.forEach(function(t,e){return t.index=e}),i.groups.forEach(function(t){var e=t.index=t.id+o;s.push(t),void 0!==t.leaves&&t.leaves.forEach(function(t){return a.push({source:e,target:t.index})}),void 0!==t.groups&&t.groups.forEach(function(t){return a.push({source:e,target:t.id+o})})}),i.powerEdges.forEach(function(t){a.push({source:t.source.index,target:t.target.index})}),(new r.Layout).size(e).nodes(s).links(a).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new r.Layout).convergenceThreshold(.001).size(e).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(t){(i=t).groups.forEach(function(t){t.padding=n})}).start(50,0,100,0,!1),powerGraph:i}}},65098:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29738),i=n(62834);e.d3adaptor=function(t){return!t||function(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new r.D3StyleLayoutAdaptor:new i.D3StyleLayoutAdaptor(t)}},29738:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390),a=function(t){function e(){var e=t.call(this)||this;e.event=d3.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var n=e;return e.drag=function(){if(!t)var t=d3.behavior.drag().origin(o.Layout.dragOrigin).on("dragstart.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,d3.event),n.resume()}).on("dragend.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;this.call(t)},e}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event[e.type](e)},e.prototype.kick=function(){var e=this;d3.timer(function(){return t.prototype.tick.call(e)})},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout);e.D3StyleLayoutAdaptor=a,e.d3adaptor=function(){return new a}},62834:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390);e.D3StyleLayoutAdaptor=function(t){function e(e){var n=t.call(this)||this;n.d3Context=e,n.event=e.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var r=n;return n.drag=function(){if(!t)var t=e.drag().subject(o.Layout.dragOrigin).on("start.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,e.event),r.resume()}).on("end.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;arguments[0].call(t)},n}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(e.type,e)},e.prototype.kick=function(){var e=this,n=this.d3Context.timer(function(){return t.prototype.tick.call(e)&&n.stop()})},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout)},59895:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.locks={}}return t.prototype.add=function(t,e){this.locks[t]=e},t.prototype.clear=function(){this.locks={}},t.prototype.isEmpty=function(){for(var t in this.locks)return!1;return!0},t.prototype.apply=function(t){for(var e in this.locks)t(Number(e),this.locks[e])},t}();e.Locks=n,e.Descent=function(){function t(t,e,i){void 0===i&&(i=null),this.D=e,this.G=i,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new r,this.project=null,this.x=t,this.k=t.length;var o=this.n=t[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 n,this.minD=Number.MAX_VALUE;for(var a,s=o;s--;)for(a=o;--a>s;){var u=e[s][a];u>0&&u1e-9)break;var d=this.offsetDir();for(r=0;r1&&p>g||!isFinite(g))for(r=0;r1&&(m=1);var v=g*g,y=2*m*(p-g)/(v*p),_=p*p*p,w=2*-m/(v*_);for(isFinite(y)||console.log(y),r=0;r0?A-(C+1)*x:A-(C-1)*x)&&f<=b&&(this.scaleSnapByMaxH?(this.g[r][u]+=s*E*f,this.H[r][u][u]+=s*E):(this.g[r][u]+=E*f,this.H[r][u][u]+=E))}this.locks.isEmpty()||this.locks.apply(function(n,i){for(r=0;r0;)for(var i=e;i-- >0;)n(r,i)},t.prototype.matrixApply=function(e){t.mApply(this.k,this.n,e)},t.prototype.computeNextPosition=function(t,e){var n=this;this.computeDerivatives(t);var r=this.computeStepSize(this.g);if(this.stepAndProject(t,e,this.g,r),this.project){this.matrixApply(function(r,i){return n.e[r][i]=t[r][i]-e[r][i]});var i=this.computeStepSize(this.e);i=Math.max(.2,Math.min(i,1)),this.stepAndProject(t,e,this.e,i)}},t.prototype.run=function(t){for(var e=Number.MAX_VALUE,n=!1;!n&&t-- >0;){var r=this.rungeKutta();n=Math.abs(e/r-1)>16)/this.range},t.prototype.getNextBetween=function(t,e){return t+this.getNext()*(e-t)},t}();e.PseudoRandom=r},13408:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(97002),a=function(){return function(){}}();e.Point=a;var s=function(){return function(t,e,n,r){this.x1=t,this.y1=e,this.x2=n,this.y2=r}}();function u(t,e,n){return(e.x-t.x)*(n.y-t.y)-(n.x-t.x)*(e.y-t.y)}function c(t,e,n){return u(t,e,n)>0}function l(t,e,n){return u(t,e,n)<0}function h(t,e){var n,r,i,o,a=e.length-1;if(l(t,e[1],e[0])&&!c(t,e[a-1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return c(t,e[n],e[r])?n:r;if((o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]))&&!c(t,e[i-1],e[i]))return i;c(t,e[n+1],e[n])?o||c(t,e[n],e[i])?r=i:n=i:o&&l(t,e[n],e[i])?r=i:n=i}}function f(t,e){var n,r,i,o,a=e.length-1;if(c(t,e[a-1],e[0])&&!l(t,e[1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return l(t,e[n],e[r])?n:r;if(o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]),c(t,e[i-1],e[i])&&!o)return i;l(t,e[n+1],e[n])?o?l(t,e[n],e[i])?r=i:n=i:r=i:o?n=i:c(t,e[n],e[i])?r=i:n=i}}function d(t,e,n,r,i,o){var a,s;s=r(t[a=n(e[0],t)],e);for(var u=!1;!u;){for(u=!0;a===t.length-1&&(a=0),!i(e[s],t[a],t[a+1]);)++a;for(;0===s&&(s=e.length-1),!o(t[a],e[s],e[s-1]);)--s,u=!1}return{t1:a,t2:s}}function p(t,e){return d(t,e,h,f,c,l)}e.LineSegment=s,e.PolyPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a),e.isLeft=u,e.ConvexHull=function(t){var e,n=t.slice(0).sort(function(t,e){return t.x!==e.x?e.x-t.x:e.y-t.y}),r=t.length,i=n[0].x;for(e=1;e=0&&n[e].x===l;e--);for(s=e+1,e=o;++e<=s;)if(!(u(n[0],n[s],n[e])>=0&&e1&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}c!=s&&a.push(n[c]);var h=a.length;for(e=s;--e>=o;)if(!(u(n[c],n[o],n[e])>=0&&e>o)){for(;a.length>h&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}}return a},e.clockwiseRadialSweep=function(t,e,n){e.slice(0).sort(function(e,n){return Math.atan2(e.y-t.y,e.x-t.x)-Math.atan2(n.y-t.y,n.x-t.x)}).forEach(n)},e.tangent_PolyPolyC=d,e.LRtangent_PolyPolyC=function(t,e){var n=p(e,t);return{t1:n.t2,t2:n.t1}},e.RLtangent_PolyPolyC=p,e.LLtangent_PolyPolyC=function(t,e){return d(t,e,f,f,l,l)},e.RRtangent_PolyPolyC=function(t,e){return d(t,e,h,h,c,c)};var g=function(){return function(t,e){this.t1=t,this.t2=e}}();e.BiTangent=g;var m=function(){return function(){}}();e.BiTangents=m,e.TVGPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a);var v=function(){return function(t,e,n,r){this.id=t,this.polyid=e,this.polyvertid=n,this.p=r,r.vv=this}}();e.VisibilityVertex=v;var y=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,e=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+e*e)},t}();function _(t,e){for(var n=[],r=1,i=e.length;r=0&&v>=0&&y<0&&_>=0&&w>=0&&b<0?i.ll=new g(o,a):p<=0&&v<=0&&y>0&&_<=0&&w<=0&&b>0?i.rr=new g(o,a):p<=0&&v>0&&y<=0&&_>=0&&w<0&&b>=0?i.rl=new g(o,a):p>=0&&v<0&&y>=0&&_<=0&&w>0&&b<=0&&(i.lr=new g(o,a))}return i}function b(t,e){return!t.every(function(t){return!function(t,e){for(var n=1,r=e.length;n0&&this.E.push(new y(i[o-1].vv,a))}i.length>1&&this.E.push(new y(i[0].vv,i[i.length-1].vv))}for(r=0;r0)return!0;return!1},t}(),e.tangents=w,e.polysOverlap=function(t,e){if(b(t,e))return!0;if(b(e,t))return!0;for(var n=1,r=t.length;n0)return!0}return!1}},66082:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(97002),i=n(70980),o=n(99147),a=function(){return function(t,e,n){this.id=t,this.rect=e,this.children=n,this.leaf=void 0===n||0===n.length}}();e.NodeWrapper=a;var s=function(){return function(t,e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),this.id=t,this.x=e,this.y=n,this.node=r,this.line=i}}();e.Vert=s;var u=function(){function t(e,n){this.s=e,this.t=n;var r=t.findMatch(e,n),i=n.slice(0).reverse(),o=t.findMatch(e,i);r.length>=o.length?(this.length=r.length,this.si=r.si,this.ti=r.ti,this.reversed=!1):(this.length=o.length,this.si=o.si,this.ti=n.length-o.ti-o.length,this.reversed=!0)}return t.findMatch=function(t,e){for(var n=t.length,r=e.length,i={length:0,si:-1,ti:-1},o=new Array(n),a=0;ai.length&&(i.length=u,i.si=a-u+1,i.ti=s-u+1)}else o[a][s]=0}return i},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();e.LongestCommonSubsequence=u,e.GridRouter=function(){function t(t,e,n){var i=this;void 0===n&&(n=12),this.originalnodes=t,this.groupPadding=n,this.leaves=null,this.nodes=t.map(function(t,n){return new a(n,e.getBounds(t),e.getChildren(t))}),this.leaves=this.nodes.filter(function(t){return t.leaf}),this.groups=this.nodes.filter(function(t){return!t.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(t){return t.children.forEach(function(e){return i.nodes[e].parent=t})}),this.root={children:[]},this.nodes.forEach(function(t){void 0===t.parent&&(t.parent=i.root,i.root.children.push(t.id)),t.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(t,e){return i.getDepth(t)-i.getDepth(e)}),this.backToFront.slice(0).reverse().filter(function(t){return!t.leaf}).forEach(function(t){var e=r.Rectangle.empty();t.children.forEach(function(t){return e=e.union(i.nodes[t].rect)}),t.rect=e.inflate(i.groupPadding)});var o=this.midPoints(this.cols.map(function(t){return t.pos})),u=this.midPoints(this.rows.map(function(t){return t.pos})),c=o[0],l=o[o.length-1],h=u[0],f=u[u.length-1],d=this.rows.map(function(t){return{x1:c,x2:l,y1:t.pos,y2:t.pos}}).concat(u.map(function(t){return{x1:c,x2:l,y1:t,y2:t}})),p=this.cols.map(function(t){return{x1:t.pos,x2:t.pos,y1:h,y2:f}}).concat(o.map(function(t){return{x1:t,x2:t,y1:h,y2:f}})),g=d.concat(p);g.forEach(function(t){return t.verts=[]}),this.verts=[],this.edges=[],d.forEach(function(t){return p.forEach(function(e){var n=new s(i.verts.length,e.x1,t.y1);t.verts.push(n),e.verts.push(n),i.verts.push(n);for(var r=i.backToFront.length;r-- >0;){var o=i.backToFront[r],a=o.rect,u=Math.abs(n.x-a.cx()),c=Math.abs(n.y-a.cy());if(u0;){var r=n.filter(function(e){return e.rect["overlap"+t.toUpperCase()](n[0].rect)}),i={nodes:r,pos:this.avg(r.map(function(e){return e.rect["c"+t]()}))};e.push(i),i.nodes.forEach(function(t){return n.splice(n.indexOf(t),1)})}return e.sort(function(t,e){return t.pos-e.pos}),e},t.prototype.getDepth=function(t){for(var e=0;t.parent!==this.root;)e++,t=t.parent;return e},t.prototype.midPoints=function(t){for(var e=t[1]-t[0],n=[t[0]-e/2],r=1;r.1)&&s.push(u={pos:l[0][e],segments:[]}),u.segments.push(l)}return s},t.nudgeSegs=function(t,e,n,r,o,a){var s=r.length;if(!(s<=1)){for(var u=r.map(function(e){return new i.Variable(e[0][t])}),c=[],l=0;l=0&&c.push(new i.Constraint(u[g],u[m],a))}new i.Solver(u,c).solve(),u.forEach(function(e,i){var o=r[i],a=e.position();o[0][t]=o[1][t]=a;var s=n[o.edgeid];o.i>0&&(s[o.i-1][1][t]=a),o.iMath.PI||i<-Math.PI)&&(i=r-n),i},t.isLeft=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)<=0},t.getOrder=function(t){for(var e={},n=0;n=c.length||h.ti+h.length>=l.length)?n.push({l:r,r:i}):(h.si+h.length>=c.length||h.ti+h.length>=l.length?(o=c[h.si+1],s=c[h.si-1],a=l[h.ti-1]):(o=c[h.si+h.length-2],a=c[h.si+h.length],s=l[h.ti+h.length]),t.isLeft(o,a,s)?n.push({l:i,r}):n.push({l:r,r:i})))}return t.getOrder(n)},t.makeSegments=function(t){function e(t){return{x:t.x,y:t.y}}for(var n=function(t,e,n){return Math.abs((e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x))<.001},r=[],i=e(t[0]),o=1;o1&&l>1?1e3:0}).reverse().map(function(t){return n.verts[t]});return u.push(this.nodes[i.id].ports[0]),u.filter(function(t,e){return!(e0&&t.node===i&&u[e-1].node===i)})},t.getRoutePath=function(e,n,r,i){var o,a,s,u,c,l={routepath:"M "+e[0][0].x+" "+e[0][0].y+" ",arrowpath:""};if(e.length>1)for(var h=0;h0?a-=f/Math.abs(f)*n:s-=d/Math.abs(d)*n,l.routepath+="L "+a+" "+s+" ";var p=e[h+1],g=p[0].x,m=p[0].y;f=p[1].x-g,d=p[1].y-m;var v,y,_=t.angleBetween2Lines(o,p)<0?1:0;Math.abs(f)>0?(v=g+f/Math.abs(f)*n,y=m):(v=g,y=m+d/Math.abs(d)*n);var w=Math.abs(v-a),b=Math.abs(y-s);l.routepath+="A "+w+" "+b+" 0 0 "+_+" "+v+" "+y+" "}else{var x=[a,s];Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1])}}else f=(a=(o=e[0])[1].x)-o[0].x,d=(s=o[1].y)-o[0].y,x=[a,s],Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1]);return l},t}()},33839:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(1+Math.sqrt(5))/2;e.applyPacking=function(t,e,r,i,o,a){void 0===o&&(o=1),void 0===a&&(a=!0);var s=e,u=r,c=(o=void 0!==o?o:1,i=void 0!==i?i:0,0),l=0,h=0,f=0,d=[];function p(t,e){d=[],c=0,l=0,f=0;for(var n=0;n=t.height&&d[r].x+d[r].width+t.width+10-e<=1e-4){n=d[r];break}d.push(t),void 0!==n?(t.x=n.x+n.width+10,t.y=n.bottom,t.space_left=t.height,t.bottom=t.y,n.space_left-=t.height+10,n.bottom+=t.height+10):(t.y=f,f+=t.height+10,t.x=0,t.bottom=t.y,t.space_left=t.height),t.y+t.height-l>-1e-4&&(l=t.y+t.height-0),t.x+t.width-c>-1e-4&&(c=t.x+t.width-0)}0!=t.length&&(function(t){t.forEach(function(t){var e,n,r,o,a;e=t,n=Number.MAX_VALUE,r=Number.MAX_VALUE,o=0,a=0,e.array.forEach(function(t){var e=void 0!==t.width?t.width:i,s=void 0!==t.height?t.height:i;e/=2,s/=2,o=Math.max(t.x+e,o),n=Math.min(t.x-e,n),a=Math.max(t.y+s,a),r=Math.min(t.y-s,r)}),e.width=o-n,e.height=a-r})}(t),function(t,e){var r=Number.POSITIVE_INFINITY,i=0;t.sort(function(t,e){return e.height-t.height});for(var o=g=h=t.reduce(function(t,e){return t.widthh||d>1e-4;){if(1!=l){var g=a-(a-o)/n;u=p(t,g)}if(0!=l){var m=o+(a-o)/n;c=p(t,m)}if(f=Math.abs(g-m),d=Math.abs(u-c),uc?(o=g,g=m,u=c,l=1):(a=m,m=g,c=u,l=0),s++>100)break}p(t,i)}(t),a&&function(t){t.forEach(function(t){var e={x:0,y:0};t.array.forEach(function(t){e.x+=t.x,e.y+=t.y}),e.x/=t.array.length,e.y/=t.array.length;var n=t.x-(e.x-t.width/2)+s/2-c/2,r=t.y-(e.y-t.height/2)+u/2-l/2;t.array.forEach(function(t){t.x+=n,t.y+=r})})}(t))},e.separateGraphs=function(t,e){for(var n={},r={},i=[],o=0,a=0;a0){var e=0;this._links.forEach(function(t){e=Math.max(e,t.source,t.target)}),this._nodes=new Array(++e);for(var n=0;n0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,e){t.length=e},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return i.symmetricDiffLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.jaccardLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return i.jaccardLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.start=function(e,n,r,u,c,l){var h=this;void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===c&&(c=!0),void 0===l&&(l=!0);var f,d=this.nodes().length,p=d+2*this._groups.length,g=this._canvasSize[0],m=this._canvasSize[1],v=new Array(p),y=new Array(p),_=null,w=this._avoidOverlaps;this._nodes.forEach(function(t,e){t.index=e,void 0===t.x&&(t.x=g/2,t.y=m/2),v[e]=t.x,y[e]=t.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?f=this._distanceMatrix:(f=new s.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,function(t){return h.getLinkLength(t)}).DistanceMatrix(),_=o.Descent.createSquareMatrix(p,function(){return 2}),this._links.forEach(function(t){"number"==typeof t.source&&(t.source=h._nodes[t.source]),"number"==typeof t.target&&(t.target=h._nodes[t.target])}),this._links.forEach(function(e){var n=t.getSourceIndex(e),r=t.getTargetIndex(e);_[n][r]=_[r][n]=e.weight||1}));var b=o.Descent.createSquareMatrix(p,function(t,e){return f[t][e]});if(this._rootGroup&&void 0!==this._rootGroup.groups){var x=d;this._groups.forEach(function(t){!function(t,e,n,r){_[t][e]=_[e][t]=n,b[t][e]=b[e][t]=.1}(x,x+1,h._groupCompactness),v[x]=0,y[x++]=0,v[x]=0,y[x++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var E=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,E=E.concat(i.generateDirectedEdgeConstraints(d,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new o.Descent([v,y],b),this._descent.locks.clear(),x=0;x0&&(this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E).projectFunctions()),this._descent.run(n),this.separateOverlappingComponents(g,m,l),this.avoidOverlaps(w),w&&(this._nodes.forEach(function(t,e){t.x=v[e],t.y=y[e]}),this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E,!0).projectFunctions(),this._nodes.forEach(function(t,e){v[e]=t.x,y[e]=t.y})),this._descent.G=_,this._descent.run(r),u){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=d,this._descent.scaleSnapByMaxH=d!=p;var A=o.Descent.createSquareMatrix(p,function(t,e){return t>=d||e>=d?_[t][e]:0});this._descent.G=A,this._descent.run(u)}return this.updateNodePositions(),this.separateOverlappingComponents(g,m,l),c?this.resume():this},t.prototype.initialLayout=function(e,n,r){if(this._groups.length>0&&e>0){var i=this._nodes.length,o=this._links.map(function(t){return{source:t.source.index,target:t.target.index}}),a=this._nodes.map(function(t){return{index:t.index}});this._groups.forEach(function(t,e){a.push({index:t.index=i+e})}),this._groups.forEach(function(t,e){void 0!==t.leaves&&t.leaves.forEach(function(e){return o.push({source:t.index,target:e.index})}),void 0!==t.groups&&t.groups.forEach(function(e){return o.push({source:t.index,target:e.index})})}),(new t).size(this.size()).nodes(a).links(o).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(e,0,0,0,!1),this._nodes.forEach(function(t){n[t.index]=a[t.index].x,r[t.index]=a[t.index].y})}else this._descent.run(e)},t.prototype.separateOverlappingComponents=function(t,e,n){var r=this;if(void 0===n&&(n=!0),!this._distanceMatrix&&this._handleDisconnected){var i=this._descent.x[0],o=this._descent.x[1];this._nodes.forEach(function(t,e){t.x=i[e],t.y=o[e]});var a=c.separateGraphs(this._nodes,this._links);c.applyPacking(a,t,e,this._defaultNodeSize,1,n),this._nodes.forEach(function(t,e){r._descent.x[0][e]=t.x,r._descent.x[1][e]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))})}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new u.TangentVisibilityGraph(this._nodes.map(function(e){return e.bounds.inflate(-t).vertices()}))},t.prototype.routeEdge=function(t,e,n){void 0===e&&(e=5);var r=[],i=new u.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),o={x:t.source.x,y:t.source.y},c={x:t.target.x,y:t.target.y},l=i.addPoint(o,t.source.index),h=i.addPoint(c,t.target.index);i.addEdgeIfVisible(o,c,t.source.index,t.target.index),void 0!==n&&n(i);var f=new s.Calculator(i.V.length,i.E,function(t){return t.source.id},function(t){return t.target.id},function(t){return t.length()}).PathFromNodeToNode(l.id,h.id);if(1===f.length||f.length===i.V.length){var d=a.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,e);r=[d.sourceIntersection,d.arrowStart]}else{for(var p=f.length-2,g=i.V[f[p]].p,m=i.V[f[0]].p,v=(r=[t.source.innerBounds.rayIntersection(g.x,g.y)],p);v>=0;--v)r.push(i.V[f[v]].p);r.push(a.makeEdgeTo(m,t.target.innerBounds,e))}return r},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(e){return t.getSourceIndex(e)+"-"+t.getTargetIndex(e)},t.dragStart=function(e){h(e)?t.storeOffset(e,t.dragOrigin(e)):(t.stopNode(e),e.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(e,n){void 0!==e.leaves&&e.leaves.forEach(function(e){e.fixed|=2,t.stopNode(e),e._dragGroupOffsetX=e.x-n.x,e._dragGroupOffsetY=e.y-n.y}),void 0!==e.groups&&e.groups.forEach(function(e){return t.storeOffset(e,n)})},t.dragOrigin=function(t){return h(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(e,n){h(e)?(void 0!==e.leaves&&e.leaves.forEach(function(t){e.bounds.setXCentre(n.x),e.bounds.setYCentre(n.y),t.px=t._dragGroupOffsetX+n.x,t.py=t._dragGroupOffsetY+n.y}),void 0!==e.groups&&e.groups.forEach(function(e){return t.drag(e,n)})):(e.px=n.x,e.py=n.y)},t.dragEnd=function(e){h(e)?(void 0!==e.leaves&&e.leaves.forEach(function(e){t.dragEnd(e),delete e._dragGroupOffsetX,delete e._dragGroupOffsetY}),void 0!==e.groups&&e.groups.forEach(t.dragEnd)):e.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}()},83807:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(99147),i=n(59895),o=n(97002),a=n(24232);e.Link3D=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.actualLength=function(t){var e=this;return Math.sqrt(t.reduce(function(t,n){var r=n[e.target]-n[e.source];return t+r*r},0))},t}(),e.Node3D=function(){return function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=e,this.z=n}}(),e.Layout3D=function(){function t(e,n,r){var i=this;void 0===r&&(r=1),this.nodes=e,this.links=n,this.idealLinkLength=r,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var o=0;o=this.R))return this.merge(e.a,e.b,t),!0}},t.prototype.nEdges=function(t,e){var n=t.incoming.intersection(e.incoming),r=t.outgoing.intersection(e.outgoing);return this.R-n.count()-r.count()},t.prototype.getGroupHierarchy=function(t){var e=this,r=[];return i(this.roots[0],{},r),this.allEdges().forEach(function(i){var o=e.modules[i.source],a=e.modules[i.target];t.push(new n(void 0===o.gid?i.source:r[o.gid],void 0===a.gid?i.target:r[a.gid],i.type))}),r},t.prototype.allEdges=function(){var e=[];return t.getEdges(this.roots[0],e),e},t.getEdges=function(e,n){e.forAll(function(e){e.getEdges(n),t.getEdges(e.children,n)})},t}();function i(t,e,n){t.forAll(function(t){if(t.isLeaf())e.leaves||(e.leaves=[]),e.leaves.push(t.id);else{var r=e;if(t.gid=n.length,!t.isIsland()||t.isPredefined()){if(r={id:t.gid},t.isPredefined())for(var o in t.definition)r[o]=t.definition[o];e.groups||(e.groups=[]),e.groups.push(t.gid),n.push(r)}i(t.children,r,n)}})}e.Configuration=r;var o=function(){function t(t,e,n,r,i){void 0===e&&(e=new s),void 0===n&&(n=new s),void 0===r&&(r=new a),this.id=t,this.outgoing=e,this.incoming=n,this.children=r,this.definition=i}return t.prototype.getEdges=function(t){var e=this;this.outgoing.forAll(function(r,i){r.forAll(function(r){t.push(new n(e.id,r.id,i))})})},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return void 0!==this.definition},t}();e.Module=o;var a=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(e){var n=new t;return n.table=function(t,e){var n={};for(var r in t)r in e&&(n[r]=t[r]);return n}(this.table,e.table),n},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var e in this.table)t(this.table[e])},t.prototype.modules=function(){var t=[];return this.forAll(function(e){e.isPredefined()||t.push(e)}),t},t}();e.ModuleSet=a;var s=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var e=!1;return this.forAllModules(function(n){e||n.id!=t||(e=!0)}),e},t.prototype.add=function(t,e){(t in this.sets?this.sets[t]:this.sets[t]=new a).add(e),++this.n},t.prototype.remove=function(t,e){var n=this.sets[t];n.remove(e),0===n.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var e in this.sets)t(this.sets[e],Number(e))},t.prototype.forAllModules=function(t){this.forAll(function(e,n){return e.forAll(t)})},t.prototype.intersection=function(e){var n=new t;return this.forAll(function(t,r){if(r in e.sets){var i=t.intersection(e.sets[r]),o=i.count();o>0&&(n.sets[r]=i,n.n+=o)}}),n},t}();e.LinkSets=s,e.getGroups=function(t,e,n,i){for(var o=new r(t.length,e,n,i);o.greedyMerge(););var a=[],s=o.getGroupHierarchy(a);return a.forEach(function(e){var n=function(n){var r=e[n];"number"==typeof r&&(e[n]=t[r])};n("source"),n("target")}),{groups:s,powerEdges:a}}},741:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var e="",n=!1,r=0;r0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var e=this._root;null!==e;){var n=this._comparator(t,e.data);if(0===n)return e.data;e=e.get_child(n>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){var e=this._comparator;return this._bound(t,function(t,n){return e(n,t)})},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new o(this)},t.prototype.each=function(t){for(var e,n=this.iterator();null!==(e=n.next());)t(e)},t.prototype.reach=function(t){for(var e,n=this.iterator();null!==(e=n.prev());)t(e)},t.prototype._bound=function(t,e){for(var n=this._root,r=this.iterator();null!==n;){var i=this._comparator(t,n.data);if(0===i)return r._cursor=n,r;r._ancestors.push(n),n=n.get_child(i>0)}for(var o=r._ancestors.length-1;o>=0;--o)if(e(t,(n=r._ancestors[o]).data)>0)return r._cursor=n,r._ancestors.length=o,r;return r._ancestors.length=0,r},t}();e.TreeBase=i;var o=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else{var e;if(null===this._cursor.right)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===e);else this._ancestors.push(this._cursor),this._minNode(this._cursor.right)}return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else{var e;if(null===this._cursor.left)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===e);else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left)}return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();e.Iterator=o;var a=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,e){t?this.right=e:this.left=e},t}();e.RBTree=function(t){function e(e){var n=t.call(this)||this;return n._root=null,n._comparator=e,n.size=0,n}return r(e,t),e.prototype.insert=function(t){var n=!1;if(null===this._root)this._root=new a(t),n=!0,this.size++;else{var r=new a(void 0),i=!1,o=!1,s=null,u=r,c=null,l=this._root;for(u.right=this._root;;){if(null===l?(l=new a(t),c.set_child(i,l),n=!0,this.size++):e.is_red(l.left)&&e.is_red(l.right)&&(l.red=!0,l.left.red=!1,l.right.red=!1),e.is_red(l)&&e.is_red(c)){var h=u.right===s;l===c.get_child(o)?u.set_child(h,e.single_rotate(s,!o)):u.set_child(h,e.double_rotate(s,!o))}var f=this._comparator(l.data,t);if(0===f)break;o=i,null!==s&&(u=s),s=c,c=l,l=l.get_child(i=f<0)}this._root=r.right}return this._root.red=!1,n},e.prototype.remove=function(t){if(null===this._root)return!1;var n=new a(void 0),r=n;r.right=this._root;for(var i=null,o=null,s=null,u=!0;null!==r.get_child(u);){var c=u;o=i,i=r,r=r.get_child(u);var l=this._comparator(t,r.data);if(u=l>0,0===l&&(s=r),!e.is_red(r)&&!e.is_red(r.get_child(u)))if(e.is_red(r.get_child(!u))){var h=e.single_rotate(r,u);i.set_child(c,h),i=h}else if(!e.is_red(r.get_child(!u))){var f=i.get_child(!c);if(null!==f)if(e.is_red(f.get_child(!c))||e.is_red(f.get_child(c))){var d=o.right===i;e.is_red(f.get_child(c))?o.set_child(d,e.double_rotate(i,c)):e.is_red(f.get_child(!c))&&o.set_child(d,e.single_rotate(i,c));var p=o.get_child(d);p.red=!0,r.red=!0,p.left.red=!1,p.right.red=!1}else i.red=!1,f.red=!0,r.red=!0}}return null!==s&&(s.data=r.data,i.set_child(i.right===r,r.get_child(null===r.left)),this.size--),this._root=n.right,null!==this._root&&(this._root.red=!1),null!==s},e.is_red=function(t){return null!==t&&t.red},e.single_rotate=function(t,e){var n=t.get_child(!e);return t.set_child(!e,n.get_child(e)),n.set_child(e,t),t.red=!0,n.red=!1,n},e.double_rotate=function(t,n){return t.set_child(!n,e.single_rotate(t.get_child(!n),!n)),e.single_rotate(t,n)},e}(i)},97002:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(70980),a=n(21539);function s(t){return t.bounds=void 0!==t.leaves?t.leaves.reduce(function(t,e){return e.bounds.union(t)},u.empty()):u.empty(),void 0!==t.groups&&(t.bounds=t.groups.reduce(function(t,e){return s(e).union(t)},t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}e.computeGroupBounds=s;var u=function(){function t(t,e,n,r){this.x=t,this.X=e,this.y=n,this.Y=r}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var e=this.cx(),n=t.cx();return e<=n&&t.x0?n[0]:null},t.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}]},t.lineIntersection=function(t,e,n,r,i,o,a,s){var u=n-t,c=a-i,l=r-e,h=s-o,f=h*u-c*l;if(0==f)return null;var d=t-i,p=e-o,g=(c*p-h*d)/f,m=(u*p-l*d)/f;return g>=0&&g<=1&&m>=0&&m<=1?{x:t+g*u,y:e+g*l}:null},t.prototype.inflate=function(e){return new t(this.x-e,this.X+e,this.y-e,this.Y+e)},t}();e.Rectangle=u,e.makeEdgeBetween=function(t,e,n){var r=t.rayIntersection(e.cx(),e.cy())||{x:t.cx(),y:t.cy()},i=e.rayIntersection(t.cx(),t.cy())||{x:e.cx(),y:e.cy()},o=i.x-r.x,a=i.y-r.y,s=Math.sqrt(o*o+a*a),u=s-n;return{sourceIntersection:r,targetIntersection:i,arrowStart:{x:r.x+u*o/s,y:r.y+u*a/s}}},e.makeEdgeTo=function(t,e,n){var r=e.rayIntersection(t.x,t.y);r||(r={x:e.cx(),y:e.cy()});var i=r.x-t.x,o=r.y-t.y,a=Math.sqrt(i*i+o*o);return{x:r.x-n*i/a,y:r.y-n*o/a}};var c=function(){return function(t,e,n){this.v=t,this.r=e,this.pos=n,this.prev=f(),this.next=f()}}(),l=function(){return function(t,e,n){this.isOpen=t,this.v=e,this.pos=n}}();function h(t,e){return t.pos>e.pos?1:t.pos0&&(t[n].insert(i),i[r].insert(t))};n("next","prev"),n("prev","next")}};function g(t,e,n,r){void 0===r&&(r=!1);var i=t.padding,o=void 0!==t.groups?t.groups.length:0,a=void 0!==t.leaves?t.leaves.length:0,s=o?t.groups.reduce(function(t,r){return t.concat(g(r,e,n,!0))},[]):[],u=(r?2:0)+a+o,c=new Array(u),l=new Array(u),h=0,f=function(t,e){l[h]=t,c[h++]=e};if(r){var d=t.bounds,p=e.getCentre(d),v=e.getSize(d)/2,y=e.getOpen(d),_=e.getClose(d),w=p-v+i/2,b=p+v-i/2;t.minVar.desiredPosition=w,f(e.makeRect(y,_,w,i),t.minVar),t.maxVar.desiredPosition=b,f(e.makeRect(y,_,b,i),t.maxVar)}a&&t.leaves.forEach(function(t){return f(t.bounds,t.variable)}),o&&t.groups.forEach(function(t){var n=t.bounds;f(e.makeRect(e.getOpen(n),e.getClose(n),e.getCentre(n),e.getSize(n)),t.minVar)});var x=m(l,c,e,n);return o&&(c.forEach(function(t){t.cOut=[],t.cIn=[]}),x.forEach(function(t){t.left.cOut.push(t),t.right.cIn.push(t)}),t.groups.forEach(function(t){var n=(t.padding-e.getSize(t.bounds))/2;t.minVar.cIn.forEach(function(t){return t.gap+=n}),t.minVar.cOut.forEach(function(e){e.left=t.maxVar,e.gap+=n})})),s.concat(x)}function m(t,e,n,r){var i,a=t.length,s=2*a;console.assert(e.length>=a);var u=new Array(s);for(i=0;it[n]&&(t[n]=e)}o=t})}},t.prototype.createAlignment=function(t){var e=this,n=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var r="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach(function(t){r.push(new o.Constraint(n,e.nodes[t.node].variable,t.offset,!0))})},t.prototype.createConstraints=function(t){var e=this,n=function(t){return void 0===t.type||"separation"===t.type};this.xConstraints=t.filter(function(t){return"x"===t.axis&&n(t)}).map(function(t){return e.createSeparation(t)}),this.yConstraints=t.filter(function(t){return"y"===t.axis&&n(t)}).map(function(t){return e.createSeparation(t)}),t.filter(function(t){return"alignment"===t.type}).forEach(function(t){return e.createAlignment(t)})},t.prototype.setupVariablesAndBounds=function(t,e,n,r){this.nodes.forEach(function(i,o){i.fixed?(i.variable.weight=i.fixedWeight?i.fixedWeight:1e3,n[o]=r(i)):i.variable.weight=1;var a=(i.width||0)/2,s=(i.height||0)/2,c=t[o],l=e[o];i.bounds=new u(c-a,c+a,l-s,l+s)})},t.prototype.xProject=function(t,e,n){(this.rootGroup||this.avoidOverlaps||this.xConstraints)&&this.project(t,e,t,n,function(t){return t.px},this.xConstraints,_,function(t){return t.bounds.setXCentre(n[t.variable.index]=t.variable.position())},function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.x=e-i,t.bounds.X=r+i})},t.prototype.yProject=function(t,e,n){(this.rootGroup||this.yConstraints)&&this.project(t,e,e,n,function(t){return t.py},this.yConstraints,w,function(t){return t.bounds.setYCentre(n[t.variable.index]=t.variable.position())},function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.y=e-i,t.bounds.Y=r+i})},t.prototype.projectFunctions=function(){var t=this;return[function(e,n,r){return t.xProject(e,n,r)},function(e,n,r){return t.yProject(e,n,r)}]},t.prototype.project=function(t,e,n,r,i,o,a,u,c){this.setupVariablesAndBounds(t,e,r,i),this.rootGroup&&this.avoidOverlaps&&(s(this.rootGroup),o=o.concat(a(this.rootGroup))),this.solve(this.variables,o,n,r),this.nodes.forEach(u),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(c),s(this.rootGroup))},t.prototype.solve=function(t,e,n,r){var i=new o.Solver(t,e);i.setStartingPositions(n),i.setDesiredPositions(r),i.solve()},t}()},99147:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(741),i=function(){return function(t,e){this.id=t,this.distance=e}}(),o=function(){return function(t){this.id=t,this.neighbours=[]}}(),a=function(){return function(t,e,n){this.node=t,this.prev=e,this.d=n}}();e.Calculator=function(){function t(t,e,n,r,a){this.n=t,this.es=e,this.neighbours=new Array(this.n);for(var s=this.n;s--;)this.neighbours[s]=new o(s);for(s=this.es.length;s--;){var u=this.es[s],c=n(u),l=r(u),h=a(u);this.neighbours[c].neighbours.push(new i(l,h)),this.neighbours[l].neighbours.push(new i(c,h))}}return t.prototype.DistanceMatrix=function(){for(var t=new Array(this.n),e=0;eh&&(c.d=h,c.prev=s,n.reduceKey(c.q,c,function(t,e){return t.q=e}))}}return o},t}()},70980:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,n=t.weight;this.AB+=n*e*(t.offset/t.scale),this.AD+=n*e*t.desiredPosition,this.A2+=n*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();e.PositionStats=n;var r=function(){function t(t,e,n,r){void 0===r&&(r=!1),this.left=t,this.right=e,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=n,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();e.Constraint=r;var i=function(){function t(t,e,n){void 0===e&&(e=1),void 0===n&&(n=1),this.desiredPosition=t,this.weight=e,this.scale=n,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var n=function(n,r){return n.active&&t!==r&&e(n,r)};this.cOut.forEach(function(t){return n(t,t.right)}),this.cIn.forEach(function(t){return n(t,t.left)})},t}();e.Variable=i;var o=function(){function t(t){this.vars=[],t.offset=0,this.ps=new n(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();e.Solver=s,e.removeOverlapInOneDimension=function(t,e,n){for(var o=t.map(function(t){return new i(t.desiredCenter)}),a=[],u=t.length,c=0;c=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;++u<=n;)this._basis.point(this._beta*t[u]+(1-this._beta)*(i+(r=u/n)*a),this._beta*e[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var ze=function t(e){function n(t){return 1===e?new Fe(t):new qe(t,e)}return n.beta=function(e){return t(+e)},n}(.85),je=l(55959);function Ye(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function Be(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var Ge=l(10709),Je=l(26899),Ve=l(87254),He=l(41036),Qe=(l(92711),l(64641)),We=(l(8634),l(3031));function Xe(t){return{type:t}}function $e(t,e){return te?1:t>=e?0:NaN}function Ke(t){var e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=function(e,n){return t(e)-n},n=function(t){return function(e,n){return $e(t(e),n)}}(t)),{left:r,center:function(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);var a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}l(45161),l(38337),l(82159),["w","e"].map(Xe),["n","s"].map(Xe),["n","w","e","s","nw","ne","sw","se"].map(Xe);var tn=Math.sqrt(50),en=Math.sqrt(10),nn=Math.sqrt(2);function rn(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=tn?10:o>=en?5:o>=nn?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=tn?10:o>=en?5:o>=nn?2:1)}function on(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=tn?i*=10:o>=en?i*=5:o>=nn&&(i*=2),e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return an.setTime(+e),sn.setTime(+r),t(an),t(sn),Math.floor(n(an,sn))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var cn=un(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});cn.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?un(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):cn:null};var ln=cn,hn=un(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),fn=un(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getMinutes()}),dn=un(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),pn=un(function(t){return t.setHours(0,0,0,0)},function(t,e){return t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1});function gn(t){return un(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var vn=gn(0),mn=(gn(1),gn(2),gn(3),gn(4),gn(5),gn(6),un(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),yn=un(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});yn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?un(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var _n=yn,wn=un(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getUTCMinutes()}),bn=un(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),xn=un(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1});function En(t){return un(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var Tn=En(0),An=(En(1),En(2),En(3),En(4),En(5),En(6),un(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()})),Sn=un(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});function kn(t,e,n,r,i,o){var a=[[hn,1,1e3],[hn,5,5e3],[hn,15,15e3],[hn,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,n,r){var i=Math.abs(n-e)/r,o=Ke(function(t){return u(t,3)[2]}).right(a,i);if(o===a.length)return t.every(on(e/31536e6,n/31536e6,r));if(0===o)return ln.every(Math.max(on(e,n,r),1));var s=u(a[i/a[o-1][2]0?un(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var In=u(kn(Sn,An,Tn,xn,bn,wn),2),Cn=(In[0],In[1],u(kn(_n,mn,vn,pn,dn,fn),2)),Dn=(Cn[0],Cn[1],new Date),Nn=new Date;function Zn(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return Dn.setTime(+e),Nn.setTime(+r),t(Dn),t(Nn),Math.floor(n(Dn,Nn))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}function Mn(t){return Zn(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var On=Mn(0),Rn=Mn(1),Ln=(Mn(2),Mn(3),Mn(4)),Un=(Mn(5),Mn(6),Zn(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}));function Pn(t){return Zn(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var Fn=Pn(0),qn=Pn(1),zn=(Pn(2),Pn(3),Pn(4)),jn=(Pn(5),Pn(6),Zn(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1})),Yn=Zn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Yn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zn(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var Bn=Yn,Gn=Zn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Gn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zn(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var Jn=Gn,Vn={"-":"",_:" ",0:"0"},Hn=/[\\^$*+?|[\]().{}]/g;function Qn(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o=4||0===n?zn(t):zn.ceil(t),Qn(zn.count(Bn(t),t)+(4===Bn(t).getDay()),e,2)}function hr(t){return t.getDay()}function fr(t,e){return Qn(qn.count(Bn(t)-1,t),e,2)}function dr(t,e){return Qn(t.getFullYear()%100,e,2)}function pr(t,e){return Qn(t.getFullYear()%1e4,e,4)}function gr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Qn(e/60|0,"0",2)+Qn(e%60,"0",2)}function vr(t,e){return Qn(t.getUTCDate(),e,2)}function mr(t,e){return Qn(t.getUTCHours(),e,2)}function yr(t,e){return Qn(t.getUTCHours()%12||12,e,2)}function _r(t,e){return Qn(1+Un.count(Jn(t),t),e,3)}function wr(t,e){return Qn(t.getUTCMilliseconds(),e,3)}function br(t,e){return wr(t,e)+"000"}function xr(t,e){return Qn(t.getUTCMonth()+1,e,2)}function Er(t,e){return Qn(t.getUTCMinutes(),e,2)}function Tr(t,e){return Qn(t.getUTCSeconds(),e,2)}function Ar(t){var e=t.getUTCDay();return 0===e?7:e}function Sr(t,e){return Qn(On.count(Jn(t)-1,t),e,2)}function kr(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Ln(t):Ln.ceil(t),Qn(Ln.count(Jn(t),t)+(4===Jn(t).getUTCDay()),e,2)}function Ir(t){return t.getUTCDay()}function Cr(t,e){return Qn(Rn.count(Jn(t)-1,t),e,2)}function Dr(t,e){return Qn(t.getUTCFullYear()%100,e,2)}function Nr(t,e){return Qn(t.getUTCFullYear()%1e4,e,4)}function Zr(){return"+0000"}function Mr(){return"%"}function Or(t){return+t}function Rr(t){return Math.floor(+t/1e3)}function Lr(t){return null===t?NaN:+t}!function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=(Xn(i),$n(i),Xn(o),$n(o),Xn(a),$n(a),Xn(s),$n(s),Xn(u),$n(u),{a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Kn,e:Kn,f:ir,H:tr,I:er,j:nr,L:rr,m:or,M:ar,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Or,s:Rr,S:sr,u:ur,U:cr,V:lr,w:hr,W:fr,x:null,X:null,y:dr,Y:pr,Z:gr,"%":Mr}),l={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:vr,e:vr,f:br,H:mr,I:yr,j:_r,L:wr,m:xr,M:Er,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Or,s:Rr,S:Tr,u:Ar,U:Sr,V:kr,w:Ir,W:Cr,x:null,X:null,y:Dr,Y:Nr,Z:Zr,"%":Mr};function h(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s(e=a[u-1])&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?Jr:Gr,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),Fr.Z)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,zr),l()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),u=qr.Z,l()},h.clamp=function(t){return arguments.length?(c=!!t||Yr,l()):c!==Yr},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}()(Yr,Yr)}function Qr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Wr=l(93116),Xr=l(65636),$r=l(3712),Kr=l(3218),ti=l(22233);function ei(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0){var u=Math.round(t/a),c=Math.round(e/a);for(u*ae&&--c,o=new Array(i=c-u+1);++se&&--h,o=new Array(i=h-l+1);++s0;){if((i=rn(u,c,n))===r)return o[a]=u,o[s]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function ni(){var t=Hr();return t.copy=function(){return Vr(t,ni())},Qr.apply(t,arguments),ei(t)}function ri(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r2&&void 0!==arguments[2]?arguments[2]:Lr;if(r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function ui(){var t,e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t0?r[i-1]:e[0],i=0;)e+=n[r].value;else e=1;t.value=e}function xi(t,e){var n,r,i,o,a,s=new Si(t),u=+t.value&&(s.value=t.value),c=[s];for(null==e&&(e=Ei);n=c.pop();)if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new Si(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Ai)}function Ei(t){return t.children}function Ti(t){t.data=t.data.data}function Ai(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Si(t){this.data=t,this.depth=this.height=0,this.parent=null}mi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:vi(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:vi(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new mi(t,e)}return n.tension=function(e){return t(+e)},n}(0),yi.prototype={areaStart:gi,areaEnd:gi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:vi(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new yi(t,e)}return n.tension=function(e){return t(+e)},n}(0),Math,Math,Math,Math,Math,Math,Math,Math,l(12314),function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,v,m=[],y=e.children,_=0,w=0,b=y.length,x=e.value;_f&&(f=s),v=l*l*g,(d=Math.max(f/v,v/h))>p){l-=s;break}p=d}m.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),Si.prototype=xi.prototype={constructor:Si,count:function(){return this.eachAfter(bi)},each:function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return xi(this).eachBefore(Ti)}};var ki=l(30269),Ii=["caretElm"];function Ci(t,e){}var Di=function(t){return{model:t}};function Ni(t,e){if(1&t&&(m.TgZ(0,"span"),m.YNc(1,Ci,0,0,"ng-template",5),m.qZA()),2&t){var n=m.oxw();m.xp6(1),m.Q6J("ngTemplateOutlet",n.template)("ngTemplateOutletContext",m.VKq(2,Di,n.context))}}function Zi(t,e){if(1&t&&m._UZ(0,"span",6),2&t){var n=m.oxw();m.Q6J("innerHTML",n.title,m.oJD)}}function Mi(t,e){if(1&t&&(m.O4$(),m.kcU(),m._UZ(0,"ngx-charts-scale-legend",4)),2&t){var n=m.oxw();m.Q6J("horizontal",n.legendOptions&&"below"===n.legendOptions.position)("valueRange",n.legendOptions.domain)("colors",n.legendOptions.colors)("height",n.view[1])("width",n.legendWidth)}}function Oi(t,e){if(1&t){var n=m.EpF();m.O4$(),m.kcU(),m.TgZ(0,"ngx-charts-legend",5),m.NdJ("labelClick",function(t){return m.CHM(n),m.oxw().legendLabelClick.emit(t)})("labelActivate",function(t){return m.CHM(n),m.oxw().legendLabelActivate.emit(t)})("labelDeactivate",function(t){return m.CHM(n),m.oxw().legendLabelDeactivate.emit(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("horizontal",r.legendOptions&&"below"===r.legendOptions.position)("data",r.legendOptions.domain)("title",r.legendOptions.title)("colors",r.legendOptions.colors)("height",r.view[1])("width",r.legendWidth)("activeEntries",r.activeEntries)}}var Ri=["*"];function Li(t,e){if(1&t&&(m.TgZ(0,"header",4),m.TgZ(1,"span",5),m._uU(2),m.qZA(),m.qZA()),2&t){var n=m.oxw();m.xp6(2),m.Oqu(n.title)}}function Ui(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"li",6),m.TgZ(1,"ngx-charts-legend-entry",7),m.NdJ("select",function(t){return m.CHM(n),m.oxw().labelClick.emit(t)})("activate",function(t){return m.CHM(n),m.oxw().activate(t)})("deactivate",function(t){return m.CHM(n),m.oxw().deactivate(t)}),m.qZA(),m.qZA()}if(2&t){var r=e.$implicit,i=m.oxw();m.xp6(1),m.Q6J("label",r.label)("formattedLabel",r.formattedLabel)("color",r.color)("isActive",i.isActive(r))}}var Pi=function(){var t=function(){function t(e,n,r){f(this,t),this.applicationRef=e,this.componentFactoryResolver=n,this.injector=r}return p(t,[{key:"getRootViewContainer",value:function(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.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.")}},{key:"setRootViewContainer",value:function(t){this._container=t}},{key:"getComponentRootNode",value:function(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}},{key:"getRootViewContainerNode",value:function(t){return this.getComponentRootNode(t)}},{key:"projectComponentBindings",value:function(t,e){if(e){if(void 0!==e.inputs){var n,r=c(Object.getOwnPropertyNames(e.inputs));try{for(r.s();!(n=r.n()).done;){var i=n.value;t.instance[i]=e.inputs[i]}}catch(u){r.e(u)}finally{r.f()}}if(void 0!==e.outputs){var o,a=c(Object.getOwnPropertyNames(e.outputs));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.instance[s]=e.outputs[s]}}catch(u){a.e(u)}finally{a.f()}}}return t}},{key:"appendComponent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;n||(n=this.getRootViewContainer());var r=this.getComponentRootNode(n),i=new Je.F0(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Je.C5(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}],[{key:"setGlobalRootViewContainer",value:function(e){t.globalRootViewContainer=e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.LFG(m.z2F),m.LFG(m._Vd),m.LFG(m.zs3))},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t}();function Fi(t,e,n){var r,i,o;n=n||{};var a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){var c=+new Date;s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var qi=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function zi(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function ji(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}var Yi=function(){function t(){f(this,t)}return p(t,null,[{key:"calculateVerticalAlignment",value:function(t,e,n){var r=zi(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}},{key:"calculateVerticalCaret",value:function(t,e,n,r){var i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);var o=zi(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}},{key:"calculateHorizontalAlignment",value:function(t,e,n){var r=ji(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}},{key:"calculateHorizontalCaret",value:function(t,e,n,r){var i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);var o=ji(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}},{key:"shouldFlip",value:function(t,e,n,r){var i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}},{key:"positionCaret",value:function(e,n,r,i,o){var a=0,s=0;return e===qi.right?(s=-7,a=t.calculateVerticalCaret(r,n,i,o)):e===qi.left?(s=n.width,a=t.calculateVerticalCaret(r,n,i,o)):e===qi.top?(a=n.height,s=t.calculateHorizontalCaret(r,n,i,o)):e===qi.bottom&&(a=-7,s=t.calculateHorizontalCaret(r,n,i,o)),{top:a,left:s}}},{key:"positionContent",value:function(e,n,r,i,o){var a=0,s=0;return e===qi.right?(s=r.left+r.width+i,a=t.calculateVerticalAlignment(r,n,o)):e===qi.left?(s=r.left-n.width-i,a=t.calculateVerticalAlignment(r,n,o)):e===qi.top?(a=r.top-n.height-i,s=t.calculateHorizontalAlignment(r,n,o)):e===qi.bottom&&(a=r.top+r.height+i,s=t.calculateHorizontalAlignment(r,n,o)),{top:a,left:s}}},{key:"determinePlacement",value:function(e,n,r,i){if(t.shouldFlip(r,n,e,i)){if(e===qi.right)return qi.left;if(e===qi.left)return qi.right;if(e===qi.top)return qi.bottom;if(e===qi.bottom)return qi.top}return e}}]),t}(),Bi=function(){var t=function(){function t(e,n){f(this,t),this.element=e,this.renderer=n}return p(t,[{key:"cssClasses",get:function(){var t="ngx-charts-tooltip-content";return t+=" position-".concat(this.placement),t+=" type-".concat(this.type),t+=" ".concat(this.cssClass)}},{key:"ngAfterViewInit",value:function(){setTimeout(this.position.bind(this))}},{key:"position",value:function(){var t=this,e=this.element.nativeElement,n=this.host.nativeElement.getBoundingClientRect();if(n.height||n.width){var r=e.getBoundingClientRect();this.checkFlip(n,r),this.positionContent(e,n,r),this.showCaret&&this.positionCaret(n,r),setTimeout(function(){return t.renderer.addClass(e,"animate")},1)}}},{key:"positionContent",value:function(t,e,n){var r=Yi.positionContent(this.placement,n,e,this.spacing,this.alignment),i=r.top,o=r.left;this.renderer.setStyle(t,"top","".concat(i,"px")),this.renderer.setStyle(t,"left","".concat(o,"px"))}},{key:"positionCaret",value:function(t,e){var n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),i=Yi.positionCaret(this.placement,e,t,r,this.alignment),o=i.top,a=i.left;this.renderer.setStyle(n,"top","".concat(o,"px")),this.renderer.setStyle(n,"left","".concat(a,"px"))}},{key:"checkFlip",value:function(t,e){this.placement=Yi.determinePlacement(this.placement,e,t,this.spacing)}},{key:"onWindowResize",value:function(){this.position()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(m.SBq),m.Y36(m.Qsj))},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){var n;(1&t&&m.Gf(Ii,5),2&t)&&(m.iGM(n=m.CRH())&&(e.caretElm=n.first))},hostVars:2,hostBindings:function(t,e){1&t&&m.NdJ("resize",function(){return e.onWindowResize()},!1,m.Jf7),2&t&&m.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(m.TgZ(0,"div"),m._UZ(1,"span",0,1),m.TgZ(3,"div",2),m.YNc(4,Ni,2,4,"span",3),m.YNc(5,Zi,1,1,"span",4),m.qZA(),m.qZA()),2&t&&(m.xp6(1),m.Gre("tooltip-caret position-",e.placement,""),m.Q6J("hidden",!e.showCaret),m.xp6(3),m.Q6J("ngIf",!e.title),m.xp6(1),m.Q6J("ngIf",e.title))},directives:[d.O5,d.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),Ye([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Fi(n.value,100,void 0)}),this[e]}}}],t.prototype,"onWindowResize",null),t}(),Gi=function(){var t=function(t){r(n,t);var e=o(n);function n(t){var r;return f(this,n),(r=e.call(this,t)).type=Bi,r}return n}(function(){function t(e){f(this,t),this.injectionService=e,this.defaults={},this.components=new Map}return p(t,[{key:"getByType",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.type;return this.components.get(t)}},{key:"create",value:function(t){return this.createByType(this.type,t)}},{key:"createByType",value:function(t,e){e=this.assignDefaults(e);var n=this.injectComponent(t,e);return this.register(t,n),n}},{key:"destroy",value:function(t){var e=this.components.get(t.componentType);if(e&&e.length){var n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}},{key:"destroyAll",value:function(){this.destroyByType(this.type)}},{key:"destroyByType",value:function(t){var e=this.components.get(t);if(e&&e.length)for(var n=e.length-1;n>=0;)this.destroy(e[n--])}},{key:"injectComponent",value:function(t,e){return this.injectionService.appendComponent(t,e)}},{key:"assignDefaults",value:function(t){var e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}},{key:"register",value:function(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}]),t}());return t.\u0275fac=function(e){return new(e||t)(m.LFG(Pi))},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t}(),Ji=function(){var t=function(){function t(){f(this,t),this.showLegend=!1,this.animations=!0,this.legendLabelClick=new m.vpe,this.legendLabelActivate=new m.vpe,this.legendLabelDeactivate=new m.vpe}return p(t,[{key:"ngOnChanges",value:function(t){this.update()}},{key:"update",value:function(){var t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}},{key:"getLegendType",value:function(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[m._Bn([Gi]),m.TTD],ngContentSelectors:Ri,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(m.F$t(),m.TgZ(0,"div",0),m.O4$(),m.TgZ(1,"svg",1),m.Hsn(2),m.qZA(),m.YNc(3,Mi,1,5,"ngx-charts-scale-legend",2),m.YNc(4,Oi,1,7,"ngx-charts-legend",3),m.qZA()),2&t&&(m.Udp("width",e.view[0],"px"),m.Q6J("@animationState","active")("@.disabled",!e.animations),m.xp6(1),m.uIk("width",e.chartWidth)("height",e.view[1]),m.xp6(2),m.Q6J("ngIf",e.showLegend&&"scaleLegend"===e.legendType),m.xp6(1),m.Q6J("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[d.O5,Ki,Xi]},encapsulation:2,data:{animation:[(0,Ge.X$)("animationState",[(0,Ge.eR)(":enter",[(0,Ge.oB)({opacity:0}),(0,Ge.jt)("500ms 100ms",(0,Ge.oB)({opacity:1}))])])]},changeDetection:0}),t}(),Vi=function(){var t=function(){function t(e,n){f(this,t),this.element=e,this.zone=n,this.visible=new m.vpe,this.isVisible=!1,this.runCheck()}return p(t,[{key:"destroy",value:function(){clearTimeout(this.timeout)}},{key:"onVisibilityChange",value:function(){var t=this;this.zone.run(function(){t.isVisible=!0,t.visible.emit(!0)})}},{key:"runCheck",value:function(){var t=this,e=function e(){if(t.element){var n=t.element.nativeElement,r=n.offsetHeight,i=n.offsetWidth;r&&i?(clearTimeout(t.timeout),t.onVisibilityChange()):(clearTimeout(t.timeout),t.zone.runOutsideAngular(function(){t.timeout=setTimeout(function(){return e()},100)}))}};this.zone.runOutsideAngular(function(){t.timeout=setTimeout(function(){return e()})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(m.SBq),m.Y36(m.R0b))},t.\u0275dir=m.lG2({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t}(),Hi=function(){var t=function(){function t(e,n,r){f(this,t),this.chartElement=e,this.zone=n,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new m.vpe}return p(t,[{key:"ngAfterViewInit",value:function(){this.bindWindowResizeEvent(),this.visibilityObserver=new Vi(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}},{key:"ngOnDestroy",value:function(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}},{key:"ngOnChanges",value:function(t){this.update()}},{key:"update",value:function(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{var t=this.getContainerDims();t&&(this.width=t.width,this.height=t.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()}},{key:"getContainerDims",value:function(){var t,e,n=this.chartElement.nativeElement;if(null!==n.parentNode){var r=n.parentNode.getBoundingClientRect();t=r.width,e=r.height}return t&&e?{width:t,height:e}:null}},{key:"formatDates",value:function(){for(var t=0;t0),m.xp6(2),m.Udp("max-height",e.height-45,"px"),m.ekj("horizontal-legend",e.horizontal),m.xp6(1),m.Q6J("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[d.O5,d.sg,$i]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t}(),$i=function(){var t=function(){function t(){f(this,t),this.isActive=!1,this.select=new m.vpe,this.activate=new m.vpe,this.deactivate=new m.vpe,this.toggle=new m.vpe}return p(t,[{key:"trimmedLabel",get:function(){return this.formattedLabel||"(empty)"}},{key:"onMouseEnter",value:function(){this.activate.emit({name:this.label})}},{key:"onMouseLeave",value:function(){this.deactivate.emit({name:this.label})}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&m.NdJ("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(m.TgZ(0,"span",0),m.NdJ("click",function(){return e.select.emit(e.formattedLabel)}),m.TgZ(1,"span",1),m.NdJ("click",function(){return e.toggle.emit(e.formattedLabel)}),m.qZA(),m.TgZ(2,"span",2),m._uU(3),m.qZA(),m.qZA()),2&t&&(m.ekj("active",e.isActive),m.Q6J("title",e.formattedLabel),m.xp6(1),m.Udp("background-color",e.color),m.xp6(2),m.hij(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t}(),Ki=function(){var t=function(){function t(e){f(this,t),this.sanitizer=e,this.horizontal=!1}return p(t,[{key:"ngOnChanges",value:function(t){var e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle("linear-gradient(to ".concat(this.horizontal?"right":"bottom",", ").concat(e,")"))}},{key:"gradientString",value:function(t,e){e.push(1);var n=[];return t.reverse().forEach(function(t,r){n.push("".concat(t," ").concat(Math.round(100*e[r]),"%"))}),n.join(", ")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(ki.H7))},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[m.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(m.TgZ(0,"div",0),m.TgZ(1,"div",1),m.TgZ(2,"span"),m._uU(3),m.qZA(),m.qZA(),m._UZ(4,"div",2),m.TgZ(5,"div",1),m.TgZ(6,"span"),m._uU(7),m.qZA(),m.qZA(),m.qZA()),2&t&&(m.Udp("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),m.ekj("horizontal-legend",e.horizontal),m.xp6(3),m.Oqu(e.valueRange[1].toLocaleString()),m.xp6(1),m.Udp("background",e.gradient),m.xp6(3),m.Oqu(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t}(),to=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[d.ez,Qi,Wi],d.ez,Qi,Wi]}),t}(),eo=[{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"]}],no=function(){function t(e,n,r,i){f(this,t),"string"==typeof e&&(e=eo.find(function(t){return t.name===e})),this.colorDomain=e.domain,this.scaleType=n,this.domain=r,this.customColors=i,this.scale=this.generateColorScheme(e,n,this.domain)}return p(t,[{key:"generateColorScheme",value:function(t,e,r){var i;if("string"==typeof t&&(t=eo.find(function(e){return e.name===t})),"quantile"===e)i=ui().range(t.domain).domain(r);else if("ordinal"===e)i=oi().range(t.domain).domain(r);else if("linear"===e){var o=n(t.domain);1===o.length&&(o.push(o[0]),this.colorDomain=o);var a=ri(0,1,1/o.length);i=ni().domain(a).range(o)}return i}},{key:"getColor",value:function(t){if(null==t)throw new Error("Value can not be null");if("linear"===this.scaleType){var e=ni().domain(this.domain).range([0,1]);return this.scale(e(t))}if("function"==typeof this.customColors)return this.customColors(t);var n,r=t.toString();return this.customColors&&this.customColors.length>0&&(n=this.customColors.find(function(t){return t.name.toLowerCase()===r.toLowerCase()})),n?n.value:this.scale(t)}},{key:"getLinearGradientStops",value:function(t,e){void 0===e&&(e=this.domain[0]);var n=ni().domain(this.domain).range([0,1]),r=ai().domain(this.colorDomain).range([0,1]),i=this.getColor(t),o=n(e),a=this.getColor(e),s=n(t),u=1,l=o,h=[];for(h.push({color:a,offset:o,originalOffset:o,opacity:1});l=(s-r.bandwidth()).toFixed(4))break;h.push({color:f,offset:d,opacity:1}),l=d,u++}}if(h[h.length-1].offset<100&&h.push({color:i,offset:s,opacity:1}),s===o)h[0].offset=0,h[1].offset=100;else if(100!==h[h.length-1].offset){var p,g=c(h);try{for(g.s();!(p=g.n()).done;){var v=p.value;v.offset=(v.offset-o)/(s-o)*100}}catch(m){g.e(m)}finally{g.f()}}return h}}]),t}(),ro=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),io=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),oo=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),ao=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),so=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}();Math;var uo=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),co=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to,uo,so]]}),t}(),lo=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),ho=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),fo=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to,uo,io]]}),t}(),po=function(){var t=function t(){f(this,t),"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[to,ro,io,oo,ao,so,co,lo,uo,ho,fo]}),t}(),go=Math.PI;function vo(t){return(1-Math.cos(go*t))/2}var mo=l(87570),yo=l(48318),_o=l(40878),wo=l(3530);function bo(t){return void 0===t}function xo(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:e}}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;var So=l(32975);function ko(t,e){var n;function r(){var r,i,o=n.length,a=0,s=0;for(r=0;r=(o=(g+m)/2))?g=o:m=o,(l=n>=(a=(v+y)/2))?v=a:y=a,i=d,!(d=d[h=l<<1|c]))return i[h]=p,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s&&n===u)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(c=e>=(o=(g+m)/2))?g=o:m=o,(l=n>=(a=(v+y)/2))?v=a:y=a}while((h=l<<1|c)==(f=(u>=a)<<1|s>=o));return i[f]=d,i[h]=p,t}function No(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Zo(t){return t[0]}function Mo(t){return t[1]}function Oo(t,e,n){var r=new Ro(null==e?Zo:e,null==n?Mo:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Ro(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Lo(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Uo=Oo.prototype=Ro.prototype;function Po(t){return t.x+t.vx}function Fo(t){return t.y+t.vy}function qo(t){var e,n,r=1,i=1;function o(){for(var t,o,s,u,c,l,h,f=e.length,d=0;du+d||ic+d||os.index){var p=u-a.x-a.vx,g=c-a.y-a.vy,v=p*p+g*g;vt.r&&(t.r=t[e].r)}function s(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;rl&&(l=r),ih&&(h=i));if(u>l||c>h)return this;for(this.cover(u,c).cover(l,h),n=0;nt||t>=i||r>e||e>=o;)switch(s=(ef||(o=u.y0)>d||(a=u.x1)=m)<<1|t>=v)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=u)}else{var y=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),w=y*y+_*_;if(w=(s=(p+v)/2))?p=s:v=s,(l=a>=(u=(g+m)/2))?g=u:m=u,e=d,!(d=d[h=l<<1|c]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},Uo.removeAll=function(t){for(var e=0,n=t.length;e1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,o,a,s,u,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,n),e):c.on(t)}}}function ta(){var t,e,n,r,i=Io(-30),o=1,a=1/0,s=.81;function u(r){var i,o=t.length,a=Oo(t,Wo,Xo).visitAfter(l);for(n=r,i=0;i=a)){(t.data!==e||t.next)&&(0===l&&(d+=(l=Co())*l),0===h&&(d+=(h=Co())*h),d=0}),leaves:t.childNodeIds.map(function(t){return e.inputGraph.nodes.findIndex(function(e){return e.id===t})}).filter(function(t){return t>=0})}})),links:n(this.inputGraph.edges.map(function(t){var n=e.inputGraph.nodes.findIndex(function(e){return t.source===e.id}),r=e.inputGraph.nodes.findIndex(function(e){return t.target===e.id});if(-1!==n&&-1!==r)return Object.assign(Object.assign({},t),{source:n,target:r})}).filter(function(t){return!!t})),groupLinks:n(this.inputGraph.edges.map(function(t){var n=e.inputGraph.nodes.findIndex(function(e){return t.source===e.id}),r=e.inputGraph.nodes.findIndex(function(e){return t.target===e.id});if(!(n>=0&&r>=0))return t}).filter(function(t){return!!t}))},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",function(){e.settings.onTickListener&&e.settings.onTickListener(e.internalGraph),e.outputGraph$.next(e.internalGraphToOutputGraph(e.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()}},{key:"updateEdge",value:function(t,e){var n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.start(),this.outputGraph$.asObservable()}},{key:"internalGraphToOutputGraph",value:function(t){var e=this;return this.outputGraph.nodes=t.nodes.map(function(t){return Object.assign(Object.assign({},t),{id:t.id||Ra(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:"translate(".concat(t.x-(t.dimension&&t.dimension.width||20)/2||0,", ").concat(t.y-(t.dimension&&t.dimension.height||20)/2||0,")")})}),this.outputGraph.edges=t.links.map(function(e){var n=Pa(t.nodes,e.source),r=Pa(t.nodes,e.target);return Object.assign(Object.assign({},e),{source:n.id,target:r.id,points:[n.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy()),r.bounds.rayIntersection(n.bounds.cx(),n.bounds.cy())]})}).concat(t.groupLinks.map(function(e){var n=t.nodes.find(function(t){return t.id===e.source}),r=t.nodes.find(function(t){return t.id===e.target}),i=n||t.groups.find(function(t){return t.id===e.source}),o=r||t.groups.find(function(t){return t.id===e.target});return Object.assign(Object.assign({},e),{source:i.id,target:o.id,points:[i.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})})),this.outputGraph.clusters=t.groups.map(function(t,n){return Object.assign(Object.assign({},e.inputGraph.clusters[n]),{dimension:{width:t.bounds?t.bounds.width():20,height:t.bounds?t.bounds.height():20},position:{x:t.bounds?t.bounds.x+t.bounds.width()/2:0,y:t.bounds?t.bounds.y+t.bounds.height()/2:0}})}),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}},{key:"onDragStart",value:function(t,e){var n=this.outputGraph.nodes.findIndex(function(e){return e.id===t.id}),r=this.internalGraph.nodes[n];r&&(this.draggingStart={x:r.x-e.x,y:r.y-e.y},r.fixed=1,this.settings.force.start())}},{key:"onDrag",value:function(t,e){if(t){var n=this.outputGraph.nodes.findIndex(function(e){return e.id===t.id}),r=this.internalGraph.nodes[n];r&&(r.x=this.draggingStart.x+e.x,r.y=this.draggingStart.y+e.y)}}},{key:"onDragEnd",value:function(t,e){if(t){var n=this.outputGraph.nodes.findIndex(function(e){return e.id===t.id}),r=this.internalGraph.nodes[n];r&&(r.fixed=0)}}}]),t}()},qa=function(){var t=function(){function t(){f(this,t)}return p(t,[{key:"getLayout",value:function(t){if(Fa[t])return new Fa[t];throw new Error("Unknown layout type '".concat(t,"'"))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t}(),za=function(t){return t.Both="both",t.Horizontal="horizontal",t.Vertical="vertical",t}({}),ja=function(t){return t.UpperLeft="UpperLeft",t.UpperRight="UpperRight",t}({});function Ya(t,e,n){var r,i,o;n=n||{};var a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){var c=+new Date;s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var Ba=function(){var e=function(e){r(a,e);var i=o(a);function a(t,e,n,r){var o;return f(this,a),(o=i.call(this,t,e,n)).el=t,o.zone=e,o.cd=n,o.layoutService=r,o.legend=!1,o.nodes=[],o.clusters=[],o.links=[],o.activeEntries=[],o.draggingEnabled=!0,o.panningEnabled=!0,o.panningAxis=za.Both,o.enableZoom=!0,o.zoomSpeed=.1,o.minZoomLevel=.1,o.maxZoomLevel=4,o.autoZoom=!1,o.panOnZoom=!0,o.animate=!1,o.autoCenter=!1,o.enableTrackpadSupport=!1,o.showMiniMap=!1,o.miniMapMaxWidth=100,o.miniMapPosition=ja.UpperRight,o.activate=new m.vpe,o.deactivate=new m.vpe,o.zoomChange=new m.vpe,o.clickHandler=new m.vpe,o.isMouseMoveCalled=!1,o.graphSubscription=new mo.w,o.subscriptions=[],o.margin=[0,0,0,0],o.results=[],o.isPanning=!1,o.isDragging=!1,o.initialized=!1,o.graphDims={width:0,height:0},o._oldLinks=[],o.oldNodes=new Set,o.oldClusters=new Set,o.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},o._touchLastX=null,o._touchLastY=null,o.minimapScaleCoefficient=3,o.minimapOffsetX=0,o.minimapOffsetY=0,o.isMinimapPanning=!1,o.groupResultsBy=function(t){return t.label},o}return p(a,[{key:"zoomLevel",get:function(){return this.transformationMatrix.a},set:function(t){this.zoomTo(Number(t))}},{key:"panOffsetX",get:function(){return this.transformationMatrix.e},set:function(t){this.panTo(Number(t),null)}},{key:"panOffsetY",get:function(){return this.transformationMatrix.f},set:function(t){this.panTo(null,Number(t))}},{key:"ngOnInit",value:function(){var t=this;this.update$&&this.subscriptions.push(this.update$.subscribe(function(){t.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(function(){t.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(function(){t.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(function(e){t.panToNodeId(e)})),this.minimapClipPathId="minimapClip".concat(Ra())}},{key:"ngOnChanges",value:function(t){var e=t.layoutSettings;this.setLayout(this.layout),e&&this.setLayoutSettings(this.layoutSettings),this.update()}},{key:"setLayout",value:function(t){this.initialized=!1,t||(t="dagre"),"string"==typeof t&&(this.layout=this.layoutService.getLayout(t),this.setLayoutSettings(this.layoutSettings))}},{key:"setLayoutSettings",value:function(t){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=t)}},{key:"ngOnDestroy",value:function(){t(s(a.prototype),"ngOnDestroy",this).call(this);var e,n=c(this.subscriptions);try{for(n.s();!(e=n.n()).done;){e.value.unsubscribe()}}catch(r){n.e(r)}finally{n.f()}this.subscriptions=null}},{key:"ngAfterViewInit",value:function(){var e=this;t(s(a.prototype),"ngAfterViewInit",this).call(this),setTimeout(function(){return e.update()})}},{key:"update",value:function(){var e=this;t(s(a.prototype),"update",this).call(this),this.curve||(this.curve=ze.beta(1)),this.zone.run(function(){e.dims=function(t){var e=t.width,n=t.height,r=t.margins,i=t.showXAxis,o=void 0!==i&&i,a=t.showYAxis,s=void 0!==a&&a,u=t.xAxisHeight,c=void 0===u?0:u,l=t.yAxisWidth,h=void 0===l?0:l,f=t.showXLabel,d=void 0!==f&&f,p=t.showYLabel,g=void 0!==p&&p,v=t.showLegend,m=void 0!==v&&v,y=t.legendType,_=void 0===y?"ordinal":y,w=t.legendPosition,b=void 0===w?"right":w,x=t.columns,E=void 0===x?12:x,T=r[3],A=e,S=n-r[0]-r[2];if(m&&"right"===b&&(E-="ordinal"===_?2:1),A=(A=A*E/12)-r[1]-r[3],o&&(S-=5,S-=c,d)&&(S-=30),s&&(A-=5,A-=h,T+=h,T+=10,g)){A-=30,T+=30}return A=Math.max(0,A),S=Math.max(0,S),{width:Math.floor(A),height:Math.floor(S),xOffset:Math.floor(T)}}({width:e.width,height:e.height,margins:e.margin,showLegend:e.legend}),e.seriesDomain=e.getSeriesDomain(),e.setColors(),e.legendOptions=e.getLegendOptions(),e.createGraph(),e.updateTransform(),e.initialized=!0})}},{key:"createGraph",value:function(){var t=this;this.graphSubscription.unsubscribe(),this.graphSubscription=new mo.w;var e=function(e){return e.meta||(e.meta={}),e.id||(e.id=Ra()),e.dimension?e.meta.forceDimensions=void 0===e.meta.forceDimensions||e.meta.forceDimensions:(e.dimension={width:t.nodeWidth?t.nodeWidth:30,height:t.nodeHeight?t.nodeHeight:30},e.meta.forceDimensions=!1),e.position={x:0,y:0},e.data=e.data?e.data:{},e};this.graph={nodes:this.nodes.length>0?n(this.nodes).map(e):[],clusters:this.clusters&&this.clusters.length>0?n(this.clusters).map(e):[],edges:this.links.length>0?n(this.links).map(function(t){return t.id||(t.id=Ra()),t}):[]},requestAnimationFrame(function(){return t.draw()})}},{key:"draw",value:function(){var t=this;if(this.layout&&"string"!=typeof this.layout){this.applyNodeDimensions();var e=this.layout.run(this.graph),n=e instanceof yo.y?e:(0,_o.of)(e);this.graphSubscription.add(n.subscribe(function(e){t.graph=e,t.tick()})),0!==this.graph.nodes.length&&n.pipe((0,wo.P)()).subscribe(function(){return t.applyNodeDimensions()})}}},{key:"tick",value:function(){var t=this,e=new Set;this.graph.nodes.map(function(n){n.transform="translate(".concat(n.position.x-n.dimension.width/2||0,", ").concat(n.position.y-n.dimension.height/2||0,")"),n.data||(n.data={}),n.data.color=t.colors.getColor(t.groupResultsBy(n)),e.add(n.id)});var n=new Set;(this.graph.clusters||[]).map(function(e){e.transform="translate(".concat(e.position.x-e.dimension.width/2||0,", ").concat(e.position.y-e.dimension.height/2||0,")"),e.data||(e.data={}),e.data.color=t.colors.getColor(t.groupResultsBy(e)),n.add(e.id)}),setTimeout(function(){t.oldNodes=e,t.oldClusters=n},500);var r=[],i=function(e){var n=t.graph.edgeLabels[e],i=e.replace(/[^\w-]*/g,""),o=t.layout&&"string"!=typeof t.layout&&t.layout.settings&&t.layout.settings.multigraph,a=t._oldLinks.find(o?function(t){return"".concat(t.source).concat(t.target).concat(t.id)===i}:function(t){return"".concat(t.source).concat(t.target)===i}),s=t.graph.edges.find(o?function(t){return"".concat(t.source).concat(t.target).concat(t.id)===i}:function(t){return"".concat(t.source).concat(t.target)===i});a?a.data&&s&&s.data&&JSON.stringify(a.data)!==JSON.stringify(s.data)&&(a.data=s.data):a=s||n,a.oldLine=a.line;var u=n.points,c=t.generateLine(u),l=Object.assign({},a);l.line=c,l.points=u,t.updateMidpointOnEdge(l,u);var h=u[Math.floor(u.length/2)];h&&(l.textTransform="translate(".concat(h.x||0,",").concat(h.y||0,")")),l.textAngle=0,l.oldLine||(l.oldLine=l.line),t.calcDominantBaseline(l),r.push(l)};for(var o in this.graph.edgeLabels)i(o);this.graph.edges=r,this.graph.edges&&(this._oldLinks=this.graph.edges.map(function(t){var e=Object.assign({},t);return e.oldLine=t.line,e})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(function(){return t.redrawLines()}),this.cd.markForCheck()}},{key:"getMinimapTransform",value:function(){switch(this.miniMapPosition){case ja.UpperLeft:return"";case ja.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}},{key:"updateGraphDims",value:function(){for(var t=1/0,e=-1/0,n=1/0,r=-1/0,i=0;ie?o.position.x+o.dimension.width:e,r=o.position.y+o.dimension.height>r?o.position.y+o.dimension.height:r}t-=100,n-=100,e+=100,r+=100,this.graphDims.width=e-t,this.graphDims.height=r-n,this.minimapOffsetX=t,this.minimapOffsetY=n}},{key:"updateMinimap",value:function(){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())}},{key:"applyNodeDimensions",value:function(){var t=this;this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(function(e){var n=e.nativeElement,r=t.graph.nodes.find(function(t){return t.id===n.id});if(r){var i;try{if(!(i=n.getBBox()).width||!i.height)return}catch(l){return}if(r.dimension.height=t.nodeHeight?r.dimension.height&&r.meta.forceDimensions?r.dimension.height:t.nodeHeight:r.dimension.height&&r.meta.forceDimensions?r.dimension.height:i.height,t.nodeMaxHeight&&(r.dimension.height=Math.max(r.dimension.height,t.nodeMaxHeight)),t.nodeMinHeight&&(r.dimension.height=Math.min(r.dimension.height,t.nodeMinHeight)),t.nodeWidth)r.dimension.width=r.dimension.width&&r.meta.forceDimensions?r.dimension.width:t.nodeWidth;else if(n.getElementsByTagName("text").length){var o;try{var a,s=c(n.getElementsByTagName("text"));try{for(s.s();!(a=s.n()).done;){var u=a.value.getBBox();o?(u.width>o.width&&(o.width=u.width),u.height>o.height&&(o.height=u.height)):o=u}}catch(h){s.e(h)}finally{s.f()}}catch(l){return}r.dimension.width=r.dimension.width&&r.meta.forceDimensions?r.dimension.width:o.width+20}else r.dimension.width=r.dimension.width&&r.meta.forceDimensions?r.dimension.width:i.width;t.nodeMaxWidth&&(r.dimension.width=Math.max(r.dimension.width,t.nodeMaxWidth)),t.nodeMinWidth&&(r.dimension.width=Math.min(r.dimension.width,t.nodeMinWidth))}})}},{key:"redrawLines",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.animate;this.linkElements.map(function(n){var r=t.graph.edges.find(function(t){return t.id===n.nativeElement.id});r&&((0,He.Z)(n.nativeElement).select(".line").attr("d",r.oldLine).transition().ease(vo).duration(e?500:0).attr("d",r.line),(0,He.Z)(t.chartElement.nativeElement).select("#".concat(r.id)).attr("d",r.oldTextPath).transition().ease(vo).duration(e?500:0).attr("d",r.textPath),t.updateMidpointOnEdge(r,r.points))})}},{key:"calcDominantBaseline",value:function(t){var e=t.points[0],r=t.points[t.points.length-1];t.oldTextPath=t.textPath,r.x=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&t){var i=t.clientX,o=t.clientY,a=this.chart.nativeElement.querySelector("svg"),s=a.querySelector("g.chart"),u=a.createSVGPoint();u.x=i,u.y=o;var c=u.matrixTransform(s.getScreenCTM().inverse());this.pan(c.x,c.y,!0),this.zoom(n),this.pan(-c.x,-c.y,!0)}else this.zoom(n)}else this.pan(-1*t.deltaX,-1*t.deltaY)}},{key:"pan",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n?1:this.zoomLevel;this.transformationMatrix=To(this.transformationMatrix,Ao(t/r,e/r)),this.updateTransform()}},{key:"panTo",value:function(t,e){null==t||isNaN(t)||null==e||isNaN(e)||(this.transformationMatrix=To(this.transformationMatrix,Ao((-this.panOffsetX-t*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-e*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}},{key:"zoom",value:function(t){this.transformationMatrix=To(this.transformationMatrix,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return bo(e)&&(e=t),{a:t,c:0,e:0,b:0,d:e,f:0}}(t,t)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}},{key:"zoomTo",value:function(t){this.transformationMatrix.a=isNaN(t)?this.transformationMatrix.a:Number(t),this.transformationMatrix.d=isNaN(t)?this.transformationMatrix.d:Number(t),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}},{key:"onDrag",value:function(t){var e=this;if(this.draggingEnabled){var n=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(n,t),n.position.x+=t.movementX/this.zoomLevel,n.position.y+=t.movementY/this.zoomLevel,n.transform="translate(".concat(n.position.x-n.dimension.width/2,", ").concat(n.position.y-n.dimension.height/2,")");var r,i=c(this.graph.edges);try{var o=function(){var t=r.value;if((t.target===n.id||t.source===n.id||t.target.id===n.id||t.source.id===n.id)&&e.layout&&"string"!=typeof e.layout){var i=e.layout.updateEdge(e.graph,t),o=i instanceof yo.y?i:(0,_o.of)(i);e.graphSubscription.add(o.subscribe(function(n){e.graph=n,e.redrawEdge(t)}))}};for(i.s();!(r=i.n()).done;)o()}catch(a){i.e(a)}finally{i.f()}this.redrawLines(!1),this.updateMinimap()}}},{key:"redrawEdge",value:function(t){var e=this.generateLine(t.points);this.calcDominantBaseline(t),t.oldLine=t.line,t.line=e}},{key:"updateTransform",value:function(){var t;this.transform="matrix("+(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*e)/e,b:Math.round(t.b*e)/e,c:Math.round(t.c*e)/e,d:Math.round(t.d*e)/e,e:Math.round(t.e*e)/e,f:Math.round(t.f*e)/e}}(this.transformationMatrix,100)).a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}},{key:"onClick",value:function(t){this.select.emit(t)}},{key:"onActivate",value:function(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t].concat(n(this.activeEntries)),this.activate.emit({value:t,entries:this.activeEntries}))}},{key:"onDeactivate",value:function(t){var e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=n(this.activeEntries),this.deactivate.emit({value:t,entries:this.activeEntries})}},{key:"getSeriesDomain",value:function(){var t=this;return this.nodes.map(function(e){return t.groupResultsBy(e)}).reduce(function(t,e){return-1!==t.indexOf(e)?t:t.concat([e])},[]).sort()}},{key:"trackLinkBy",value:function(t,e){return e.id}},{key:"trackNodeBy",value:function(t,e){return e.id}},{key:"setColors",value:function(){this.colors=new no(this.scheme,"ordinal",this.seriesDomain,this.customColors)}},{key:"getLegendOptions",value:function(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors}}},{key:"onMouseMove",value:function(t){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,t):this.isDragging&&this.draggingEnabled&&this.onDrag(t)}},{key:"onMouseDown",value:function(t){this.isMouseMoveCalled=!1}},{key:"graphClick",value:function(t){this.isMouseMoveCalled||this.clickHandler.emit(t)}},{key:"onTouchStart",value:function(t){this._touchLastX=t.changedTouches[0].clientX,this._touchLastY=t.changedTouches[0].clientY,this.isPanning=!0}},{key:"onTouchMove",value:function(t){if(this.isPanning&&this.panningEnabled){var e=t.changedTouches[0].clientX,n=t.changedTouches[0].clientY,r=e-this._touchLastX,i=n-this._touchLastY;this._touchLastX=e,this._touchLastY=n,this.pan(r,i)}}},{key:"onTouchEnd",value:function(t){this.isPanning=!1}},{key:"onMouseUp",value:function(t){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,t)}},{key:"onNodeMouseDown",value:function(t,e){this.draggingEnabled&&(this.isDragging=!0,this.draggingNode=e,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(e,t))}},{key:"onMinimapDragMouseDown",value:function(){this.isMinimapPanning=!0}},{key:"onMinimapPanTo",value:function(t){this.panTo((t.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(t.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}},{key:"center",value:function(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}},{key:"zoomToFit",value:function(){var t=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);tthis.maxZoomLevel&&(t=this.maxZoomLevel),t!==this.zoomLevel&&(this.zoomLevel=t,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}},{key:"panToNodeId",value:function(t){var e=this.graph.nodes.find(function(e){return e.id===t});e&&this.panTo(e.position.x,e.position.y)}},{key:"panWithConstraints",value:function(t,e){var n=e.movementX,r=e.movementY;switch(this.isMinimapPanning&&(n=-this.minimapScaleCoefficient*n*this.zoomLevel,r=-this.minimapScaleCoefficient*r*this.zoomLevel),t){case za.Horizontal:this.pan(n,0);break;case za.Vertical:this.pan(0,r);break;default:this.pan(n,r)}}},{key:"updateMidpointOnEdge",value:function(t,e){if(t&&e)if(e.length%2==1)t.midPoint=e[Math.floor(e.length/2)];else{var n=e[e.length/2],r=e[e.length/2-1];t.midPoint={x:(n.x+r.x)/2,y:(n.y+r.y)/2}}}}]),a}(Hi);return e.\u0275fac=function(t){return new(t||e)(m.Y36(m.SBq),m.Y36(m.R0b),m.Y36(m.sBO),m.Y36(qa))},e.\u0275cmp=m.Xpm({type:e,selectors:[["ngx-graph"]],contentQueries:function(t,e,n){var r;(1&t&&(m.Suo(n,sa,5),m.Suo(n,ua,5),m.Suo(n,ca,5),m.Suo(n,la,5),m.Suo(n,ha,5)),2&t)&&(m.iGM(r=m.CRH())&&(e.linkTemplate=r.first),m.iGM(r=m.CRH())&&(e.nodeTemplate=r.first),m.iGM(r=m.CRH())&&(e.clusterTemplate=r.first),m.iGM(r=m.CRH())&&(e.defsTemplate=r.first),m.iGM(r=m.CRH())&&(e.miniMapNodeTemplate=r.first))},viewQuery:function(t,e){var n;(1&t&&(m.Gf(Ji,7,m.SBq),m.Gf(fa,5),m.Gf(da,5)),2&t)&&(m.iGM(n=m.CRH())&&(e.chart=n.first),m.iGM(n=m.CRH())&&(e.nodeElements=n),m.iGM(n=m.CRH())&&(e.linkElements=n))},hostBindings:function(t,e){1&t&&m.NdJ("mousemove",function(t){return e.onMouseMove(t)},!1,m.evT)("mousedown",function(t){return e.onMouseDown(t)},!1,m.evT)("click",function(t){return e.graphClick(t)},!1,m.evT)("touchmove",function(t){return e.onTouchMove(t)},!1,m.evT)("mouseup",function(t){return e.onMouseUp(t)},!1,m.evT)},inputs:{legend:"legend",nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",draggingEnabled:"draggingEnabled",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapPosition:"miniMapPosition",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY",layout:"layout",curve:"curve",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layoutSettings:"layoutSettings",miniMapMaxHeight:"miniMapMaxHeight"},outputs:{activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[m.qOj,m.TTD],ngContentSelectors:Ma,decls:5,vars:11,consts:[["mouseWheel","",3,"view","showLegend","legendOptions","legendLabelClick","legendLabelActivate","legendLabelDeactivate","mouseWheelUp","mouseWheelDown"],["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(t,e){1&t&&(m.F$t(),m.TgZ(0,"ngx-charts-chart",0),m.NdJ("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t)})("legendLabelDeactivate",function(t){return e.onDeactivate(t)})("mouseWheelUp",function(t){return e.onZoom(t,"in")})("mouseWheelDown",function(t){return e.onZoom(t,"out")}),m.YNc(1,Sa,12,12,"g",1),m.O4$(),m.TgZ(2,"clipPath"),m._UZ(3,"rect"),m.qZA(),m.YNc(4,Na,6,15,"g",2),m.qZA()),2&t&&(m.Q6J("view",m.WLB(8,Za,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions),m.xp6(1),m.Q6J("ngIf",e.initialized&&e.graph),m.xp6(1),m.uIk("id",e.minimapClipPathId),m.xp6(1),m.uIk("width",e.graphDims.width/e.minimapScaleCoefficient)("height",e.graphDims.height/e.minimapScaleCoefficient),m.xp6(1),m.Q6J("ngIf",e.showMiniMap))},directives:function(){return[Ji,Ga,d.O5,d.sg,d.tP]},styles:[".minimap .minimap-background{fill:rgba(0,0,0,.1)}.minimap .minimap-drag{cursor:pointer;fill:rgba(0,0,0,.2);stroke:#fff;stroke-dasharray:2px;stroke-dashoffset:2px;stroke-width:1px}.minimap .minimap-drag.panning{fill:rgba(0,0,0,.3)}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}.graph .edge{fill:none;stroke:#666}.graph .edge .edge-label{fill:#251e1e;font-size:12px;stroke:none}.graph .panning-rect{cursor:move;fill:transparent}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}"],encapsulation:2,changeDetection:0}),Ye([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Ya(n.value,500,void 0)}),this[e]}}},Be("design:type",Function),Be("design:paramtypes",[]),Be("design:returntype",void 0)],e.prototype,"updateMinimap",null),e}(),Ga=function(){var t=function(){function t(){f(this,t),this.mouseWheelUp=new m.vpe,this.mouseWheelDown=new m.vpe}return p(t,[{key:"onMouseWheelChrome",value:function(t){this.mouseWheelFunc(t)}},{key:"onMouseWheelFirefox",value:function(t){this.mouseWheelFunc(t)}},{key:"onWheel",value:function(t){this.mouseWheelFunc(t)}},{key:"onMouseWheelIE",value:function(t){this.mouseWheelFunc(t)}},{key:"mouseWheelFunc",value:function(t){window.event&&(t=window.event);var e=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail||t.deltaY||t.deltaX)),n=t.wheelDelta?e<0:e>0;(t.wheelDelta?e>0:e<0)?this.mouseWheelUp.emit(t):n&&this.mouseWheelDown.emit(t),t.returnValue=!1,t.preventDefault&&t.preventDefault()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=m.lG2({type:t,selectors:[["","mouseWheel",""]],hostBindings:function(t,e){1&t&&m.NdJ("mousewheel",function(t){return e.onMouseWheelChrome(t)})("DOMMouseScroll",function(t){return e.onMouseWheelFirefox(t)})("wheel",function(t){return e.onWheel(t)})("onmousewheel",function(t){return e.onMouseWheelIE(t)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),t}(),Ja=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({providers:[qa],imports:[[to]]}),t}(),Va=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[po],Ja]}),t}();function Ha(){}function Qa(t){return null==t?Ha:function(){return this.querySelector(t)}}function Wa(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Xa(){return[]}function $a(t){return null==t?Xa:function(){return this.querySelectorAll(t)}}function Ka(t){return function(){return this.matches(t)}}function ts(t){return function(e){return e.matches(t)}}var es=Array.prototype.find;function ns(){return this.firstElementChild}var rs=Array.prototype.filter;function is(){return this.children}function os(t){return new Array(t.length)}function as(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ss(t){return function(){return t}}function us(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;se?1:t>=e?0:NaN}as.prototype={constructor:as,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var fs="http://www.w3.org/1999/xhtml",ds={svg:"http://www.w3.org/2000/svg",xhtml:fs,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ps(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),ds.hasOwnProperty(e)?{space:ds[e],local:t}:t}function gs(t){return function(){this.removeAttribute(t)}}function vs(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ms(t,e){return function(){this.setAttribute(t,e)}}function ys(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function _s(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function ws(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function bs(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function xs(t){return function(){this.style.removeProperty(t)}}function Es(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ts(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function As(t,e){return t.style.getPropertyValue(e)||bs(t).getComputedStyle(t,null).getPropertyValue(e)}function Ss(t){return function(){delete this[t]}}function ks(t,e){return function(){this[t]=e}}function Is(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Cs(t){return t.trim().split(/^|\s+/)}function Ds(t){return t.classList||new Ns(t)}function Ns(t){this._node=t,this._names=Cs(t.getAttribute("class")||"")}function Zs(t,e){for(var n=Ds(t),r=-1,i=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function Ks(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var iu=[null];function ou(t,e){this._groups=t,this._parents=e}function au(){return new ou([[document.documentElement]],iu)}ou.prototype=au.prototype=e({constructor:ou,select:function(t){"function"!=typeof t&&(t=Qa(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=b&&(b=w+1);!(_=v[b])&&++b=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=hs);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?xs:"function"==typeof e?Ts:Es)(t,e,null==n?"":n)):As(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ss:"function"==typeof e?Is:ks)(t,e)):this.node()[t]},classed:function(t,e){var n=Cs(t+"");if(arguments.length<2){for(var r=Ds(this.node()),i=-1,o=n.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ku(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ku(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=vu.exec(t))?new Du(e[1],e[2],e[3],1):(e=mu.exec(t))?new Du(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=yu.exec(t))?ku(e[1],e[2],e[3],e[4]):(e=_u.exec(t))?ku(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=wu.exec(t))?Ou(e[1],e[2]/100,e[3]/100,1):(e=bu.exec(t))?Ou(e[1],e[2]/100,e[3]/100,e[4]):xu.hasOwnProperty(t)?Su(xu[t]):"transparent"===t?new Du(NaN,NaN,NaN,0):null}function Su(t){return new Du(t>>16&255,t>>8&255,255&t,1)}function ku(t,e,n,r){return r<=0&&(t=e=n=NaN),new Du(t,e,n,r)}function Iu(t){return t instanceof lu||(t=Au(t)),t?new Du((t=t.rgb()).r,t.g,t.b,t.opacity):new Du}function Cu(t,e,n,r){return 1===arguments.length?Iu(t):new Du(t,e,n,null==r?1:r)}function Du(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Nu(){return"#"+Mu(this.r)+Mu(this.g)+Mu(this.b)}function Zu(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Mu(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ou(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Lu(t,e,n,r)}function Ru(t){if(t instanceof Lu)return new Lu(t.h,t.s,t.l,t.opacity);if(t instanceof lu||(t=Au(t)),!t)return new Lu;if(t instanceof Lu)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&u<1?0:a,new Lu(a,s,u,t.opacity)}function Lu(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Uu(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Pu(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}uu(lu,Au,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Eu,formatHex:Eu,formatHsl:function(){return Ru(this).formatHsl()},formatRgb:Tu,toString:Tu}),uu(Du,Cu,cu(lu,{brighter:function(t){return t=null==t?hu:Math.pow(hu,t),new Du(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Du(this.r*t,this.g*t,this.b*t,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:Nu,formatHex:Nu,formatRgb:Zu,toString:Zu})),uu(Lu,function(t,e,n,r){return 1===arguments.length?Ru(t):new Lu(t,e,n,null==r?1:r)},cu(lu,{brighter:function(t){return t=null==t?hu:Math.pow(hu,t),new Lu(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Lu(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Du(Uu(t>=240?t-240:t+120,i,r),Uu(t,i,r),Uu(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Fu=function(t){return function(){return t}};function qu(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Fu(isNaN(t)?e:t)}var zu=function t(e){var n=function(t){return 1==(t=+t)?qu:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Fu(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Cu(t)).r,(e=Cu(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=qu(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function ju(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1];return Pu((n-r/e)*e,r>0?t[r-1]:2*i-o,i,o,ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Yu(n,r)})),o=Gu.lastIndex;return o0)throw new Error("too late; already scheduled");return n}function $u(t,e){var n=Ku(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Ku(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var tc,ec=180/Math.PI,nc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function rc(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Yu(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Yu(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,u),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Yu(t,n)},{i:s-2,x:Yu(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(t){for(var e,n=-1,r=u.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Xu:$u;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var kc=su.prototype.constructor;function Ic(t){return function(){this.style.removeProperty(t)}}function Cc(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Dc(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Cc(t,o,n)),r}return o._value=e,o}function Nc(t){return function(e){this.textContent=t.call(this,e)}}function Zc(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Nc(r)),e}return r._value=t,r}var Mc=0;function Oc(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Rc(){return++Mc}var Lc=su.prototype;Oc.prototype=(function(t){return su().transition(t)}).prototype=e({constructor:Oc,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Qa(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}(this,t)})},su.prototype.transition=function(t){var e,n;t instanceof Oc?(e=t._id,t=t._name):(e=Rc(),(n=Uc).time=(0,Qo.zO)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Bc.prototype,Bc.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};var Gc,Jc=Array.prototype.map;function Vc(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;++s=0;)e+=n[r].value;else e=1;t.value=e}function Wc(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=$c)):void 0===e&&(e=Xc);for(var n,r,i,o,a,s=new el(t),u=[s];n=u.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new el(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(tl)}function Xc(t){return t.children}function $c(t){return Array.isArray(t)?t[1]:null}function Kc(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function tl(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function el(t){this.data=t,this.depth=this.height=0,this.parent=null}void 0===(Gc={thousands:",",grouping:[3],currency:["$",""]}).grouping||void 0===Gc.thousands||Jc.call(Gc.grouping,Number),void 0===Gc.numerals||Jc.call(Gc.numerals,String),function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,v,m=[],y=e.children,_=0,w=0,b=y.length,x=e.value;_f&&(f=s),v=l*l*g,(d=Math.max(f/v,v/h))>p){l-=s;break}p=d}m.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),el.prototype=Wc.prototype=e({constructor:el,count:function(){return this.eachAfter(Qc)},each:function(t,e){var n,r=-1,i=c(this);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.call(e,o,++r,this)}}catch(a){i.e(a)}finally{i.f()}return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],u=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r=0;--r)o.push(n[r]);return this},find:function(t,e){var n,r=-1,i=c(this);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(t.call(e,o,++r,this))return o}}catch(a){i.e(a)}finally{i.f()}},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return Wc(this).eachBefore(Kc)}},Symbol.iterator,regeneratorRuntime.mark(function t(){var e,n,r,i,o,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a=[o=this];case 1:e=a.reverse(),a=[];case 2:if(!(o=e.pop())){t.next=9;break}return t.next=5,o;case 5:if(!(n=o.children)){t.next=7;break}for(r=0,i=n.length;r0?t.hostView.rootNodes[0]:t.location.nativeElement}},{key:"getRootViewContainerNode",value:function(t){return this.getComponentRootNode(t)}},{key:"projectComponentBindings",value:function(t,e){if(e){if(void 0!==e.inputs){var n,r=c(Object.getOwnPropertyNames(e.inputs));try{for(r.s();!(n=r.n()).done;){var i=n.value;t.instance[i]=e.inputs[i]}}catch(u){r.e(u)}finally{r.f()}}if(void 0!==e.outputs){var o,a=c(Object.getOwnPropertyNames(e.outputs));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.instance[s]=e.outputs[s]}}catch(u){a.e(u)}finally{a.f()}}}return t}},{key:"appendComponent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;n||(n=this.getRootViewContainer());var r=this.getComponentRootNode(n),i=new Je.F0(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Je.C5(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}],[{key:"setGlobalRootViewContainer",value:function(e){t.globalRootViewContainer=e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.LFG(m.z2F),m.LFG(m._Vd),m.LFG(m.zs3))},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t}();function ul(t,e,n){var r,i,o;n=n||{};var a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){var c=+new Date;s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var cl=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function ll(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function hl(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}var fl,dl,pl,gl,vl=function(){function t(){f(this,t)}return p(t,null,[{key:"calculateVerticalAlignment",value:function(t,e,n){var r=ll(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}},{key:"calculateVerticalCaret",value:function(t,e,n,r){var i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);var o=ll(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}},{key:"calculateHorizontalAlignment",value:function(t,e,n){var r=hl(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}},{key:"calculateHorizontalCaret",value:function(t,e,n,r){var i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);var o=hl(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}},{key:"shouldFlip",value:function(t,e,n,r){var i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}},{key:"positionCaret",value:function(e,n,r,i,o){var a=0,s=0;return e===cl.right?(s=-7,a=t.calculateVerticalCaret(r,n,i,o)):e===cl.left?(s=n.width,a=t.calculateVerticalCaret(r,n,i,o)):e===cl.top?(a=n.height,s=t.calculateHorizontalCaret(r,n,i,o)):e===cl.bottom&&(a=-7,s=t.calculateHorizontalCaret(r,n,i,o)),{top:a,left:s}}},{key:"positionContent",value:function(e,n,r,i,o){var a=0,s=0;return e===cl.right?(s=r.left+r.width+i,a=t.calculateVerticalAlignment(r,n,o)):e===cl.left?(s=r.left-n.width-i,a=t.calculateVerticalAlignment(r,n,o)):e===cl.top?(a=r.top-n.height-i,s=t.calculateHorizontalAlignment(r,n,o)):e===cl.bottom&&(a=r.top+r.height+i,s=t.calculateHorizontalAlignment(r,n,o)),{top:a,left:s}}},{key:"determinePlacement",value:function(e,n,r,i){if(t.shouldFlip(r,n,e,i)){if(e===cl.right)return cl.left;if(e===cl.left)return cl.right;if(e===cl.top)return cl.bottom;if(e===cl.bottom)return cl.top}return e}}]),t}(),ml=function(){var t=function(){function t(e,n,r){f(this,t),this.element=e,this.renderer=n,this.platformId=r}return p(t,[{key:"cssClasses",get:function(){var t="ngx-charts-tooltip-content";return t+=" position-".concat(this.placement),t+=" type-".concat(this.type),t+=" ".concat(this.cssClass)}},{key:"ngAfterViewInit",value:function(){setTimeout(this.position.bind(this))}},{key:"position",value:function(){var t=this;if((0,d.NF)(this.platformId)){var e=this.element.nativeElement,n=this.host.nativeElement.getBoundingClientRect();if(n.height||n.width){var r=e.getBoundingClientRect();this.checkFlip(n,r),this.positionContent(e,n,r),this.showCaret&&this.positionCaret(n,r),setTimeout(function(){return t.renderer.addClass(e,"animate")},1)}}}},{key:"positionContent",value:function(t,e,n){var r=vl.positionContent(this.placement,n,e,this.spacing,this.alignment),i=r.top,o=r.left;this.renderer.setStyle(t,"top","".concat(i,"px")),this.renderer.setStyle(t,"left","".concat(o,"px"))}},{key:"positionCaret",value:function(t,e){var n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),i=vl.positionCaret(this.placement,e,t,r,this.alignment),o=i.top,a=i.left;this.renderer.setStyle(n,"top","".concat(o,"px")),this.renderer.setStyle(n,"left","".concat(a,"px"))}},{key:"checkFlip",value:function(t,e){this.placement=vl.determinePlacement(this.placement,e,t,this.spacing)}},{key:"onWindowResize",value:function(){this.position()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(m.SBq),m.Y36(m.Qsj),m.Y36(m.Lbi))},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){var n;(1&t&&m.Gf(nl,5),2&t)&&(m.iGM(n=m.CRH())&&(e.caretElm=n.first))},hostVars:2,hostBindings:function(t,e){1&t&&m.NdJ("resize",function(){return e.onWindowResize()},!1,m.Jf7),2&t&&m.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(m.TgZ(0,"div"),m._UZ(1,"span",0,1),m.TgZ(3,"div",2),m.YNc(4,ol,2,4,"span",3),m.YNc(5,al,1,1,"span",4),m.qZA(),m.qZA()),2&t&&(m.xp6(1),m.Gre("tooltip-caret position-",e.placement,""),m.Q6J("hidden",!e.showCaret),m.xp6(3),m.Q6J("ngIf",!e.title),m.xp6(1),m.Q6J("ngIf",e.title))},directives:[d.O5,d.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);o>3&&a&&Object.defineProperty(e,n,a)}([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:ul(n.value,100,void 0)}),this[e]}}}],t.prototype,"onWindowResize",null),t}(),yl=function(){var t=function(t){r(n,t);var e=o(n);function n(t){var r;return f(this,n),(r=e.call(this,t)).type=ml,r}return n}(function(){function t(e){f(this,t),this.injectionService=e,this.defaults={},this.components=new Map}return p(t,[{key:"getByType",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.type;return this.components.get(t)}},{key:"create",value:function(t){return this.createByType(this.type,t)}},{key:"createByType",value:function(t,e){e=this.assignDefaults(e);var n=this.injectComponent(t,e);return this.register(t,n),n}},{key:"destroy",value:function(t){var e=this.components.get(t.componentType);if(e&&e.length){var n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}},{key:"destroyAll",value:function(){this.destroyByType(this.type)}},{key:"destroyByType",value:function(t){var e=this.components.get(t);if(e&&e.length)for(var n=e.length-1;n>=0;)this.destroy(e[n--])}},{key:"injectComponent",value:function(t,e){return this.injectionService.appendComponent(t,e)}},{key:"assignDefaults",value:function(t){var e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}},{key:"register",value:function(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}]),t}());return t.\u0275fac=function(e){return new(e||t)(m.LFG(sl))},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t}(),_l=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[d.ez]]}),t}(),wl=((pl={})[pl.popover="popover"]="popover",pl[pl.tooltip="tooltip"]="tooltip",pl),bl=((dl={})[dl.left="left"]="left",dl[dl.center="center"]="center",dl[dl.right="right"]="right",dl),xl=((fl={})[fl.all="all"]="all",fl[fl.focus="focus"]="focus",fl[fl.mouseover="mouseover"]="mouseover",fl),El=((gl=function(){function t(e,n,r){f(this,t),this.tooltipService=e,this.viewContainerRef=n,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=cl.top,this.tooltipAlignment=bl.center,this.tooltipType=wl.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=xl.all,this.tooltipImmediateExit=!1,this.show=new m.vpe,this.hide=new m.vpe}return p(t,[{key:"listensForFocus",get:function(){return this.tooltipShowEvent===xl.all||this.tooltipShowEvent===xl.focus}},{key:"listensForHover",get:function(){return this.tooltipShowEvent===xl.all||this.tooltipShowEvent===xl.mouseover}},{key:"ngOnDestroy",value:function(){this.hideTooltip(!0)}},{key:"onFocus",value:function(){this.listensForFocus&&this.showTooltip()}},{key:"onBlur",value:function(){this.listensForFocus&&this.hideTooltip(!0)}},{key:"onMouseEnter",value:function(){this.listensForHover&&this.showTooltip()}},{key:"onMouseLeave",value:function(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}},{key:"onMouseClick",value:function(){this.listensForHover&&this.hideTooltip(!0)}},{key:"showTooltip",value:function(t){var e=this;if(!this.component&&!this.tooltipDisabled){var n=t?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.tooltipService.destroyAll();var t=e.createBoundOptions();e.component=e.tooltipService.create(t),setTimeout(function(){e.component&&e.addHideListeners(e.component.instance.element.nativeElement)},10),e.show.emit(!0)},n)}}},{key:"addHideListeners",value:function(t){var e=this;this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",function(){clearTimeout(e.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",function(){e.hideTooltip(e.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",function(n){t.contains(n.target)||e.hideTooltip()}))}},{key:"hideTooltip",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.component){var n=function(){t.mouseLeaveContentEvent&&t.mouseLeaveContentEvent(),t.mouseEnterContentEvent&&t.mouseEnterContentEvent(),t.documentClickEvent&&t.documentClickEvent(),t.hide.emit(!0),t.tooltipService.destroy(t.component),t.component=void 0};clearTimeout(this.timeout),e?n():this.timeout=setTimeout(n,this.tooltipHideTimeout)}}},{key:"createBoundOptions",value:function(){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}}}]),t}()).\u0275fac=function(t){return new(t||gl)(m.Y36(yl),m.Y36(m.s_b),m.Y36(m.Qsj))},gl.\u0275dir=m.lG2({type:gl,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&m.NdJ("focusin",function(){return e.onFocus()})("blur",function(){return e.onBlur()})("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(t){return e.onMouseLeave(t.target)})("click",function(){return e.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",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),gl),Tl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({providers:[sl,yl],imports:[[d.ez]]}),t}();"undefined"!=typeof window?window:"undefined"!=typeof global&&global;var Al=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[d.ez,_l,Tl],d.ez,_l,Tl]}),t}(),Sl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),kl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Il=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Cl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Dl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}();Math;var Nl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Zl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al,Nl,Dl]]}),t}(),Ml=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Ol=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Rl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al,Nl,kl]]}),t}(),Ll=function(){var t=function t(){f(this,t),"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[Al,Sl,kl,Il,Cl,Dl,Zl,Ml,Nl,Ol,Rl]}),t}();function Ul(t,e){1&t&&(m.TgZ(0,"div"),m._UZ(1,"mat-spinner",3),m.qZA())}function Pl(t,e){if(1&t&&(m.TgZ(0,"span"),m._uU(1),m.ALo(2,"translate"),m.TgZ(3,"strong"),m._uU(4),m.qZA(),m.qZA()),2&t){var n=m.oxw(3);m.xp6(1),m.hij(" ",m.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),m.xp6(3),m.Oqu(n.service)}}function Fl(t,e){1&t&&(m.O4$(),m.TgZ(0,"marker",10),m._UZ(1,"path",11),m.qZA())}function ql(t,e){if(1&t&&(m.O4$(),m.TgZ(0,"g",12),m._UZ(1,"rect"),m.TgZ(2,"text",13),m._uU(3),m.qZA(),m.qZA()),2&t){var n=e.$implicit;m.Q6J("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",n.tooltip),m.xp6(1),m.uIk("width",n.dimension.width)("height",n.dimension.height)("fill",n.color),m.xp6(1),m.uIk("x",10)("y",n.dimension.height/2),m.xp6(1),m.Oqu(n.label)}}function zl(t,e){if(1&t&&(m.O4$(),m.TgZ(0,"g",14),m._UZ(1,"path",15),m.TgZ(2,"text",16),m.TgZ(3,"textPath",17),m._uU(4),m.qZA(),m.qZA(),m.qZA()),2&t){var n=e.$implicit;m.xp6(3),m.uIk("href","#"+n.id),m.xp6(1),m.hij(" ",n.label," ")}}var jl=function(t,e){return[t,e]};function Yl(t,e){if(1&t&&(m.TgZ(0,"div"),m._uU(1),m.ALo(2,"translate"),m.TgZ(3,"strong"),m._uU(4),m.qZA(),m._uU(5),m.ALo(6,"translate"),m.TgZ(7,"strong"),m._uU(8),m.qZA(),m.YNc(9,Pl,5,4,"span",4),m.TgZ(10,"div",5),m.TgZ(11,"ngx-graph",6),m.YNc(12,Fl,2,0,"ng-template",null,7,m.W1O),m.YNc(14,ql,4,9,"ng-template",null,8,m.W1O),m.YNc(16,zl,5,2,"ng-template",null,9,m.W1O),m.qZA(),m.qZA(),m.qZA()),2&t){var n=m.oxw(2);m.xp6(1),m.hij(" ",m.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),m.xp6(3),m.AsE("",n.user.firstName," ",n.user.lastName,""),m.xp6(1),m.hij(" ",m.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),m.xp6(3),m.Oqu(n.destination),m.xp6(1),m.Q6J("ngIf","noService"!==n.service),m.xp6(2),m.Q6J("links",n.hierarchialGraph.links)("nodes",n.hierarchialGraph.nodes)("curve",n.curve)("draggingEnabled",!1)("zoomToFit$",n.zoomToFit$)("view",m.WLB(16,jl,n.innerWidth,n.innerHeight))}}function Bl(t,e){if(1&t&&(m.TgZ(0,"span"),m._uU(1),m.ALo(2,"translate"),m.TgZ(3,"strong"),m._uU(4),m.qZA(),m.qZA()),2&t){var n=m.oxw(3);m.xp6(1),m.hij(" ",m.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),m.xp6(3),m.Oqu(n.service)}}function Gl(t,e){if(1&t&&(m._uU(0),m.ALo(1,"translate"),m.TgZ(2,"strong"),m._uU(3),m.qZA(),m._uU(4),m.ALo(5,"translate"),m.TgZ(6,"strong"),m._uU(7),m.qZA(),m.YNc(8,Bl,5,4,"span",4),m._uU(9),m.ALo(10,"translate")),2&t){var n=m.oxw(2);m.hij(" ",m.lcZ(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),m.xp6(3),m.AsE("",n.user.firstName," ",n.user.lastName,""),m.xp6(1),m.hij(" ",m.lcZ(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),m.xp6(3),m.Oqu(n.destination),m.xp6(1),m.Q6J("ngIf","noService"!==n.service),m.xp6(1),m.hij(" ",m.lcZ(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function Jl(t,e){if(1&t&&(m.YNc(0,Yl,18,19,"div",1),m.YNc(1,Gl,11,13,"ng-template",null,2,m.W1O)),2&t){var n=m.MAs(2),r=m.oxw();m.Q6J("ngIf",r.isConnected)("ngIfElse",n)}}var Vl=function(){var t=function(){function t(e,n,r,i,o,a,s,u,c){f(this,t),this.route=e,this.facilityManager=n,this.userService=r,this.membersService=i,this.serviceService=o,this.resourceManager=a,this.groupService=s,this.voService=u,this.translate=c,this.idCounter=0,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=ze,this.zoomToFit$=new je.xQ}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(function(e){console.log(e),t.destination=e.destination,t.service=e.service,t.userService.getUserById(e.user).subscribe(function(e){t.user=e,t.facilityManager.getFacilitiesByDestination(t.destination).subscribe(function(e){t.facilities=e,t.membersService.getMembersByUser(t.user.id).subscribe(function(e){if(t.membership=e,0===t.membership.length||0===t.facilities.length)return t.loading=!1,void(t.isConnected=!1);t.showGraph()})})})})}},{key:"showGraph",value:function(){var t=this,e=""+this.id();this.hierarchialGraph.nodes=[].concat(n(this.hierarchialGraph.nodes),[{id:e,label:this.user.firstName+" "+this.user.lastName,tooltip:this.localUser,color:"#FFFFCC",tip:"user: "+this.user.id}]);var r=""+this.id(),i="destination no id";this.hierarchialGraph.nodes="noService"===this.service?[].concat(n(this.hierarchialGraph.nodes),[{id:r,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:i}]):[].concat(n(this.hierarchialGraph.nodes),[{id:r,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:i}]);var o,a=c(this.facilities);try{var s=function(){var e=o.value;t.serviceService.getAllRichDestinationsForFacility(e.id).subscribe(function(n){t.connectToService(e,n),t.delay(2e3).then(function(){t.zoomToFit$.next(!0),t.loading=!1})})};for(a.s();!(o=a.n()).done;)s()}catch(u){a.e(u)}finally{a.f()}}},{key:"connectToService",value:function(t,e){var n=this;this.isConnectedToService(e)&&this.facilityManager.getAssignedResourcesForFacility(t.id).subscribe(function(e){for(var r=0;r0)}}function Ah(t,e){1&t&&(m.TgZ(0,"app-alert",15),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.Q6J("alert_type","info"),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function Sh(t,e){1&t&&(m.TgZ(0,"app-alert",16),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function kh(t,e){1&t&&m._UZ(0,"mat-spinner",17)}var Ih=function(){var t=function(){function t(e,n,r,i,o,a,s){f(this,t),this.dialogRef=e,this.data=n,this.tableConfigService=r,this.userManager=i,this.storeService=o,this.notificator=a,this.translate=s,this.loading=!1,this.selection=new k.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=ht.Iz}return p(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new J.NI("",[J.kI.required,J.kI.pattern(".*[\\S]+.*")])}},{key:"onAdd",value:function(){var t,e,n=this;this.loading=!0,this.isService?(t=this.selection.selected[0].id,e=this.userId):(t=this.userId,e=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(t,e).subscribe(function(){n.notificator.showSuccess(n.translate.instant("DIALOGS.CONNECT_IDENTITY.SUCCESS")),n.dialogRef.close(!0)})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSearchByString",value:function(){var t=this;if(this.searchCtrl.invalid)this.searchCtrl.markAllAsTouched();else{this.loading=!0,this.firstSearchDone=!0;var e=[bh.r.USER_DEF_ORGANIZATION,bh.r.USER_DEF_PREFERRED_MAIL];e=e.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,e).subscribe(function(e){t.identities=t.filterIdentities(e),t.loading=!1},function(){t.loading=!1})}}},{key:"onKeyInput",value:function(t){"Enter"===t.key&&this.onSearchByString()}},{key:"filterIdentities",value:function(t){return t.filter(this.isService?function(t){return!t.serviceUser}:function(t){return t.serviceUser})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(ht.dB),m.Y36(N.Fv),m.Y36(D.d6),m.Y36(D.V6),m.Y36(x.sK))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-connect-identity-dialog"]],decls:26,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"],["mat-flat-button","","color","primary",1,"mr-2","search-btn",3,"disabled","click"],[4,"ngIf"],[3,"alert_type",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"pageSize","displayedColumns","users","disableRouting","selection","page",4,"ngIf"],[3,"pageSize","displayedColumns","users","disableRouting","selection","page"],[3,"alert_type"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(m.TgZ(0,"div",0),m.NdJ("keyup",function(t){return e.onKeyInput(t)}),m.TgZ(1,"h1",1),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",2),m.TgZ(5,"mat-form-field",3),m.TgZ(6,"label"),m._UZ(7,"input",4),m.ALo(8,"translate"),m.qZA(),m.TgZ(9,"mat-error"),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.qZA(),m.TgZ(12,"button",5),m.NdJ("click",function(){return e.onSearchByString()}),m.TgZ(13,"mat-icon"),m._uU(14,"search"),m.qZA(),m.qZA(),m.YNc(15,Th,2,1,"div",6),m.YNc(16,Ah,3,4,"app-alert",7),m.YNc(17,Sh,3,3,"app-alert",8),m.qZA(),m.YNc(18,kh,1,0,"mat-spinner",9),m.TgZ(19,"div",10),m.TgZ(20,"button",11),m.NdJ("click",function(){return e.onCancel()}),m._uU(21),m.ALo(22,"translate"),m.qZA(),m.TgZ(23,"button",12),m.NdJ("click",function(){return e.onAdd()}),m._uU(24),m.ALo(25,"translate"),m.qZA(),m.qZA(),m.qZA()),2&t&&(m.Tol(e.theme),m.xp6(2),m.Oqu(m.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE")),m.xp6(5),m.s9C("placeholder",m.lcZ(8,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),m.Q6J("formControl",e.searchCtrl),m.xp6(3),m.hij(" ",m.lcZ(11,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),m.xp6(2),m.Q6J("disabled",e.loading),m.xp6(3),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.firstSearchDone),m.xp6(1),m.Q6J("ngIf",!e.loading&&e.firstSearchDone&&0===e.identities.length),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(3),m.hij(" ",m.lcZ(22,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),m.xp6(2),m.Q6J("disabled",0===e.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(25,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},directives:[I.uh,I.xY,B.KE,G.Nt,J.Fj,J.JJ,J.oH,B.TO,Z.lW,w.Hw,d.O5,I.H8,xh.C,O.w,M.$g],pipes:[x.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),t}();function Ch(t,e){1&t&&m._UZ(0,"th",12)}function Dh(t,e){if(1&t&&(m.TgZ(0,"td",13),m._uU(1),m.ALo(2,"userFullName"),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.hij(" ",m.lcZ(2,1,n)," ")}}function Nh(t,e){1&t&&m._UZ(0,"tr",14)}function Zh(t,e){1&t&&m._UZ(0,"tr",15)}var Mh=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.dialogRef=e,this.data=n,this.userManager=r,this.notificator=i,this.translate=o,this.displayedColumns=["name"]}return p(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.userId=this.data.userId,this.dataSource=new C.by([this.data.specificUser]),this.isService=this.data.isService}},{key:"onConfirm",value:function(){var t,e,n=this;this.isService?(t=this.dataSource.data[0].id,e=this.userId):(t=this.userId,e=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(t,e).subscribe(function(){n.notificator.showSuccess(n.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),n.dialogRef.close(!0)})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(N.Fv),m.Y36(D.V6),m.Y36(x.sK))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-disconnect-identity-dialog"]],decls:24,vars:21,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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(t,e){1&t&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div"),m.TgZ(4,"div",1),m.TgZ(5,"p"),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"div",2),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.TgZ(11,"table",3),m.ynx(12,4),m.YNc(13,Ch,1,0,"th",5),m.YNc(14,Dh,3,3,"td",6),m.BQk(),m.YNc(15,Nh,1,0,"tr",7),m.YNc(16,Zh,1,0,"tr",8),m.qZA(),m.qZA(),m.TgZ(17,"div",9),m.TgZ(18,"button",10),m.NdJ("click",function(){return e.onCancel()}),m._uU(19),m.ALo(20,"translate"),m.qZA(),m.TgZ(21,"button",11),m.NdJ("click",function(){return e.onConfirm()}),m._uU(22),m.ALo(23,"translate"),m.qZA(),m.qZA(),m.qZA()),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,11,"DIALOGS.DISCONNECT_IDENTITY.TITLE")),m.xp6(2),m.Tol(e.theme),m.xp6(3),m.Oqu(m.lcZ(7,13,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION")),m.xp6(3),m.hij(" ",m.lcZ(10,15,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),m.xp6(2),m.Q6J("dataSource",e.dataSource),m.xp6(4),m.Q6J("matHeaderRowDef",e.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",e.displayedColumns),m.xp6(3),m.hij(" ",m.lcZ(20,17,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),m.xp6(3),m.hij(" ",m.lcZ(23,19,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},directives:[I.uh,I.xY,C.BZ,C.w1,C.fO,C.Dz,C.as,C.nj,I.H8,Z.lW,C.ge,C.ev,C.XQ,C.Gk],pipes:[x.X$,eh.d],styles:[""]}),t}();function Oh(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-refresh-button",7),m.NdJ("refresh",function(){return m.CHM(n),m.oxw().refreshTable()}),m.qZA()}}function Rh(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().onAdd()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE")," "))}function Lh(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",9),m.NdJ("click",function(){return m.CHM(n),m.oxw().onRemove()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE")," ")}}function Uh(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"app-users-list",10),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("pageSize",r.pageSize)("users",r.identities)("selection",r.selection)("displayedColumns",r.displayedColumns)}}function Ph(t,e){1&t&&(m.TgZ(0,"app-alert",11),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES")," "))}function Fh(t,e){1&t&&m._UZ(0,"mat-spinner",12)}var qh=function(){var t=function(){function t(e,n,r,i,o,a){f(this,t),this.route=e,this.dialog=n,this.router=r,this.tableConfigService=i,this.userManager=o,this.authResolver=a,this.loading=!1,this.selection=new k.Ov(!1,[]),this.identities=[],this.tableId=ht.Iz,this.displayedColumns=["select","id","user","name"]}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.parent.params.subscribe(function(e){t.userId=e.userId,t.userManager.getSpecificUsersByUser(t.userId).subscribe(function(e){t.identities=e,t.loading=!1})})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(function(e){t.identities=e,t.selection.clear(),t.loading=!1})}},{key:"onAdd",value:function(){var t=this,e=(0,lt.kZ)();e.width="1250px",e.data={userId:this.userId,theme:"user-theme",isService:!1},this.dialog.open(Ih,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"onRemove",value:function(){var t=this,e=(0,lt.kZ)();e.width="650px",e.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],theme:"user-theme"},this.dialog.open(Mh,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(g.gz),m.Y36(I.uw),m.Y36(g.F0),m.Y36(ht.dB),m.Y36(N.Fv),m.Y36(D.x4))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-user-settings-service-identities"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"pageSize","users","selection","displayedColumns","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"pageSize","users","selection","displayedColumns","page"],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,Oh,1,0,"perun-web-apps-refresh-button",1),m.YNc(5,Rh,3,3,"button",2),m.YNc(6,Lh,3,4,"button",3),m.YNc(7,Uh,1,4,"app-users-list",4),m.YNc(8,Ph,3,3,"app-alert",5),m.qZA(),m.YNc(9,Fh,1,0,"mat-spinner",6)),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,7,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),m.xp6(2),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",void 0!==e.identities&&e.identities.length>0),m.xp6(1),m.Q6J("ngIf",!e.loading&&(void 0===e.identities||0===e.identities.length)),m.xp6(1),m.Q6J("ngIf",e.loading))},directives:[d.O5,gt.t,Z.lW,xh.C,O.w,M.$g],pipes:[x.X$],styles:[""]}),t}(),zh=l(56238),jh=l(79996);function Yh(t,e){1&t&&m._UZ(0,"mat-spinner",7)}function Bh(t,e){if(1&t&&(m.TgZ(0,"mat-option",14),m._uU(1),m.qZA()),2&t){var n=e.$implicit;m.Q6J("value",n),m.xp6(1),m.hij(" ",n.name," ")}}function Gh(t,e){if(1&t&&(m.TgZ(0,"div"),m.TgZ(1,"mat-form-field",8),m._UZ(2,"input",9),m.ALo(3,"translate"),m.TgZ(4,"mat-error"),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.qZA(),m.TgZ(7,"mat-form-field",8),m._UZ(8,"input",10),m.ALo(9,"translate"),m.TgZ(10,"mat-error"),m._uU(11),m.ALo(12,"translate"),m.qZA(),m.TgZ(13,"mat-autocomplete",11,12),m.YNc(15,Bh,2,2,"mat-option",13),m.ALo(16,"async"),m.qZA(),m.qZA(),m.qZA()),2&t){var n=m.MAs(14),r=m.oxw();m.xp6(2),m.s9C("placeholder",m.lcZ(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),m.Q6J("formControl",r.loginControl),m.xp6(3),m.hij(" ",m.lcZ(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),m.xp6(3),m.s9C("placeholder",m.lcZ(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),m.Q6J("formControl",r.extSourcesControl)("matAutocomplete",n),m.xp6(3),m.hij(" ",m.lcZ(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),m.xp6(2),m.Q6J("displayWith",r.displayFn),m.xp6(2),m.Q6J("ngForOf",m.lcZ(16,17,r.filteredExtSources))}}var Jh=function(){var t=function(){function t(e,n,r,i,o,a){var s=this;f(this,t),this.dialogRef=e,this.data=n,this.extSourcesManagerService=r,this.usersManagerService=i,this.translate=o,this.notificator=a,this.extSources=[],o.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(function(t){return s.successMessage=t})}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.loginControl=new J.NI("",[J.kI.required,J.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new J.NI("",[J.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,zh.O)(""),(0,jh.U)(function(e){return t._filter(e)})),this.extSourcesManagerService.getExtSources().subscribe(function(e){t.extSources=e,t.filteredExtSources=t.extSourcesControl.valueChanges.pipe((0,zh.O)(""),(0,jh.U)(function(e){return t._filter(e)})),t.loading=!1},function(){return t.loading=!1})}},{key:"displayFn",value:function(t){return t?t.name:null}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onAdd",value:function(){var t=this;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(function(){t.loading=!1,t.notificator.showSuccess(t.successMessage),t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"_filter",value:function(t){var e="string"==typeof t?t.toLowerCase():t.name.toLowerCase;return this.extSources.filter(function(t){return t.name.toLowerCase().includes(e)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(N.KG),m.Y36(N.Fv),m.Y36(x.sK),m.Y36(D.V6))},t.\u0275cmp=m.Xpm({type:t,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","","type","text","required","",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div",1),m.YNc(4,Yh,1,0,"mat-spinner",2),m.YNc(5,Gh,17,19,"div",3),m.qZA(),m.TgZ(6,"div",4),m.TgZ(7,"button",5),m.NdJ("click",function(){return e.onCancel()}),m._uU(8),m.ALo(9,"translate"),m.qZA(),m.TgZ(10,"button",6),m.NdJ("click",function(){return e.onAdd()}),m._uU(11),m.ALo(12,"translate"),m.qZA(),m.qZA()),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),m.xp6(3),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(3),m.hij(" ",m.lcZ(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),m.xp6(2),m.Q6J("disabled",e.loginControl.invalid||e.extSourcesControl.invalid||e.loading),m.xp6(1),m.hij(" ",m.lcZ(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},directives:[I.uh,I.xY,d.O5,I.H8,Z.lW,M.$g,B.KE,G.Nt,J.Fj,J.Q7,J.JJ,J.oH,B.TO,Ie.ZL,Ie.XC,d.sg,X.ey],pipes:[x.X$,d.Ov],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.auto-width[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:auto!important}.auto-width[_ngcontent-%COMP%] .mat-select-value[_ngcontent-%COMP%]{max-width:100%;width:auto}.pre-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),t}(),Vh=l(81954),Hh=l(23888);function Qh(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",7),m.NdJ("click",function(){return m.CHM(n),m.oxw().addIdentity()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"USER_DETAIL.IDENTITIES.ADD")))}function Wh(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().removeIdentity()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.Oqu(m.lcZ(2,2,"USER_DETAIL.IDENTITIES.REMOVE"))}}function Xh(t,e){1&t&&m._UZ(0,"mat-spinner",9)}function $h(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"perun-web-apps-user-ext-sources-list",10),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)}),m.qZA(),m.qZA()}if(2&t){var r=m.oxw();m.xp6(1),m.Q6J("displayedColumns",r.displayedColumns)("selection",r.selection)("userExtSources",r.userExtSources)("pageSize",r.pageSize)}}var Kh=function(){var t=function(){function t(e,n,r,i,o,a,s){f(this,t),this.usersManagerService=e,this.storage=n,this.registrarManagerService=r,this.dialog=i,this.route=o,this.tableConfigService=a,this.authResolver=s,this.userExtSources=[],this.selection=new k.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=ht.gG}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.userId=e.userId}),this.refreshTable()}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.selection.clear(),this.usersManagerService.getRichUserExtSources(this.userId).subscribe(function(e){t.userExtSources=e,t.loading=!1},function(){return t.loading=!1})}},{key:"addIdentity",value:function(){var t=this,e=(0,lt.kZ)();e.width="400px",e.data={userId:this.userId},this.dialog.open(Jh,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"removeIdentity",value:function(){var t=this,e=(0,lt.kZ)();e.width="400px",e.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(Vh.Lc,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(N.Fv),m.Y36(D.d6),m.Y36(N.tk),m.Y36(I.uw),m.Y36(g.gz),m.Y36(ht.dB),m.Y36(D.x4))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-user-identities"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","ml-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"admin-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","selection","userExtSources","pageSize","page"]],template:function(t,e){1&t&&(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 e.refreshTable()}),m.qZA(),m.YNc(4,Qh,3,3,"button",2),m.YNc(5,Wh,3,4,"button",3),m.TgZ(6,"div",4),m.YNc(7,Xh,1,0,"mat-spinner",5),m.qZA(),m.YNc(8,$h,2,4,"div",6)),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,5,"USER_DETAIL.IDENTITIES.TITLE")),m.xp6(3),m.Q6J("ngIf",e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",e.authResolver.isPerunAdmin()),m.xp6(2),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[gt.t,d.O5,Z.lW,M.$g,Hh.j],pipes:[x.X$],styles:[""]}),t}();function tf(t,e){1&t&&m._UZ(0,"mat-spinner",4)}function ef(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div",5),m.TgZ(1,"mat-form-field"),m.TgZ(2,"input",6),m.NdJ("change",function(){return m.CHM(n),m.oxw().makePath()}),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"mat-error"),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.qZA(),m.TgZ(7,"mat-form-field"),m.TgZ(8,"input",7),m.NdJ("ngModelChange",function(t){return m.CHM(n),m.oxw().description=t}),m.ALo(9,"translate"),m.qZA(),m.qZA(),m.TgZ(10,"mat-form-field"),m._UZ(11,"input",8),m.ALo(12,"translate"),m.TgZ(13,"mat-error"),m._uU(14),m.ALo(15,"translate"),m.qZA(),m.qZA(),m.TgZ(16,"mat-form-field"),m._UZ(17,"input",8),m.ALo(18,"translate"),m.TgZ(19,"mat-error"),m._uU(20),m.ALo(21,"translate"),m.qZA(),m.qZA(),m.TgZ(22,"mat-form-field"),m._UZ(23,"input",8),m.ALo(24,"translate"),m.TgZ(25,"mat-error"),m._uU(26),m.ALo(27,"translate"),m.qZA(),m.qZA(),m.TgZ(28,"span"),m._uU(29),m.ALo(30,"translate"),m.qZA(),m.TgZ(31,"mat-checkbox",9),m.NdJ("ngModelChange",function(t){return m.CHM(n),m.oxw().status=t}),m._uU(32),m.ALo(33,"translate"),m.qZA(),m.qZA()}if(2&t){var r=m.oxw();m.xp6(2),m.s9C("placeholder",m.lcZ(3,17,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),m.Q6J("formControl",r.nameControl),m.xp6(3),m.Oqu(m.lcZ(6,19,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_NAME")),m.xp6(3),m.s9C("placeholder",m.lcZ(9,21,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),m.Q6J("ngModel",r.description),m.xp6(3),m.s9C("placeholder",m.lcZ(12,23,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),m.Q6J("formControl",r.delayControl),m.xp6(3),m.Oqu(m.lcZ(15,25,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),m.xp6(3),m.s9C("placeholder",m.lcZ(18,27,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),m.Q6J("formControl",r.recurrenceControl),m.xp6(3),m.Oqu(m.lcZ(21,29,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),m.xp6(3),m.s9C("placeholder",m.lcZ(24,31,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),m.Q6J("formControl",r.pathControl),m.xp6(3),m.Oqu(m.lcZ(27,33,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),m.xp6(3),m.Oqu(m.lcZ(30,35,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")),m.xp6(2),m.Q6J("ngModel",r.status),m.xp6(1),m.Oqu(m.lcZ(33,37,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT"))}}function nf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div",10),m.TgZ(1,"button",11),m.NdJ("click",function(){return m.CHM(n),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"button",12),m.NdJ("click",function(){m.CHM(n);var t=m.oxw();return t.asEdit?t.onEdit():t.onCreate()}),m._uU(5),m.qZA(),m.qZA()}if(2&t){var r=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),m.xp6(2),m.Q6J("disabled",r.nameControl.invalid||r.delayControl.invalid||r.recurrenceControl.invalid||r.pathControl.invalid),m.xp6(1),m.hij(" ",r.buttonText," ")}}var rf=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.dialogRef=e,this.data=n,this.serviceManager=r,this.notificator=i,this.translate=o,this.loading=!1,this.status=!0,this.nameControl=new J.NI("",[J.kI.required]),this.delayControl=new J.NI(10,[J.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new J.NI(2,[J.kI.pattern("^[0-9]*$")]),this.pathControl=new J.NI("",[J.kI.required]),this.asEdit=!1}return p(t,[{key:"ngOnInit",value:function(){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.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"))}},{key:"onCreate",value:function(){var t=this;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,id:0,beanName:""}}).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),t.dialogRef.close(!0),t.loading=!1})}},{key:"onEdit",value:function(){var t=this;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,id:this.data.service.id,beanName:this.data.service.beanName}}).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_SUCCESS")),t.dialogRef.close(!0),t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"makePath",value:function(){var t="./".concat(this.nameControl.value);this.pathControl.setValue(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(N.KK),m.Y36(D.V6),m.Y36(x.sK))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-create-service-dialog"]],decls:6,vars:7,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"],["matInput","","required","",3,"formControl","placeholder","change"],["matInput","",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],[1,"ml-5",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(m.TgZ(0,"h1",0),m._uU(1),m.qZA(),m.TgZ(2,"div"),m.YNc(3,tf,1,0,"mat-spinner",1),m.YNc(4,ef,34,39,"div",2),m.YNc(5,nf,6,5,"div",3),m.qZA()),2&t&&(m.xp6(1),m.Oqu(e.title),m.xp6(1),m.Tol(e.theme),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[I.uh,d.O5,M.$g,I.xY,B.KE,G.Nt,J.Fj,J.Q7,J.JJ,J.oH,B.TO,J.On,W.oG,I.H8,Z.lW],pipes:[x.X$],styles:[""]}),t}();function of(t,e){1&t&&m._UZ(0,"mat-spinner",6)}function af(t,e){1&t&&m._UZ(0,"th",15)}function sf(t,e){if(1&t&&(m.TgZ(0,"td",16),m._uU(1),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.hij(" ",n.name," ")}}function uf(t,e){1&t&&m._UZ(0,"tr",17)}function cf(t,e){1&t&&m._UZ(0,"tr",18)}function lf(t,e){if(1&t&&(m.TgZ(0,"div",7),m.TgZ(1,"p"),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",8),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.TgZ(7,"table",9),m.ynx(8,10),m.YNc(9,af,1,0,"th",11),m.YNc(10,sf,2,1,"td",12),m.BQk(),m.YNc(11,uf,1,0,"tr",13),m.YNc(12,cf,1,0,"tr",14),m.qZA(),m.qZA()),2&t){var n=m.oxw();m.xp6(2),m.Oqu(m.lcZ(3,5,"DIALOGS.DELETE_SERVICE.DESCRIPTION")),m.xp6(3),m.hij(" ",m.lcZ(6,7,"DIALOGS.DELETE_SERVICE.ASK")," "),m.xp6(2),m.Q6J("dataSource",n.dataSource),m.xp6(4),m.Q6J("matHeaderRowDef",n.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",n.displayedColumns)}}var hf=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.dialogRef=e,this.data=n,this.serviceManager=r,this.notificator=i,this.translate=o,this.displayedColumns=["name"],this.dataSource=new C.by(this.data.services),this.loading=!1}return p(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.services=this.data.services}},{key:"recDelete",value:function(){var t=this;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).subscribe(function(){t.recDelete(),t.loading=!1},function(){return t.loading=!1})}},{key:"onDelete",value:function(){this.recDelete()}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(N.KK),m.Y36(D.V6),m.Y36(x.sK))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-delete-service-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div"),m.YNc(4,of,1,0,"mat-spinner",1),m.YNc(5,lf,13,9,"div",2),m.TgZ(6,"div",3),m.TgZ(7,"button",4),m.NdJ("click",function(){return e.onCancel()}),m._uU(8),m.ALo(9,"translate"),m.qZA(),m.TgZ(10,"button",5),m.NdJ("click",function(){return e.onDelete()}),m._uU(11),m.ALo(12,"translate"),m.qZA(),m.qZA(),m.qZA()),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,9,"DIALOGS.DELETE_SERVICE.TITLE")),m.xp6(2),m.Tol(e.theme),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(3),m.hij(" ",m.lcZ(9,11,"DIALOGS.DELETE_SERVICE.CANCEL"),""),m.xp6(2),m.Q6J("disabled",e.loading),m.xp6(1),m.hij(" ",m.lcZ(12,13,"DIALOGS.DELETE_SERVICE.DELETE"),""))},directives:[I.uh,d.O5,I.H8,Z.lW,M.$g,I.xY,C.BZ,C.w1,C.fO,C.Dz,C.as,C.nj,C.ge,C.ev,C.XQ,C.Gk],pipes:[x.X$],styles:[""]}),t}();function ff(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",7),m.NdJ("click",function(){return m.CHM(n),m.oxw().createService()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"ADMIN.SERVICES.CREATE"),""))}function df(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().deleteService()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(2,2,"ADMIN.SERVICES.DELETE"),"")}}function pf(t,e){1&t&&m._UZ(0,"mat-spinner",9)}function gf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"app-services-list",10),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("pageSize",r.pageSize)("selection",r.selection)("services",r.services)("filterValue",r.filterValue)}}var vf=function(){var t=function(){function t(e,n,r,i){f(this,t),this.tableConfigService=e,this.serviceManager=n,this.dialog=r,this.authResolver=i,this.selection=new k.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=ht.NL}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.serviceManager.getServices().subscribe(function(e){t.services=e,t.refreshTable()})}},{key:"createService",value:function(){var t=this,e=(0,lt.kZ)();e.width="600px",e.data={theme:"admin-theme"},this.dialog.open(rf,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"deleteService",value:function(){var t=this,e=(0,lt.kZ)();e.width="600px",e.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(hf,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.serviceManager.getServices().subscribe(function(e){t.services=e,t.selection.clear(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(ht.dB),m.Y36(N.KK),m.Y36(I.uw),m.Y36(D.x4))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","ml-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"ml-2",3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"pageSize","selection","services","filterValue","page",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"pageSize","selection","services","filterValue","page"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return e.refreshTable()}),m.qZA(),m.YNc(5,ff,3,3,"button",2),m.YNc(6,df,3,4,"button",3),m.TgZ(7,"perun-web-apps-immediate-filter",4),m.NdJ("filter",function(t){return e.applyFilter(t)}),m.qZA(),m.YNc(8,pf,1,0,"mat-spinner",5),m.YNc(9,gf,1,4,"app-services-list",6),m.qZA()),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,6,"ADMIN.SERVICES.TITLE")),m.xp6(3),m.Q6J("ngIf",e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("placeholder","ADMIN.SERVICES.FILTER"),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[gt.t,d.O5,vt.L,Z.lW,M.$g,wt.Q],pipes:[x.X$],styles:[""]}),t}(),mf=l(88884);function yf(t,e){1&t&&m._UZ(0,"mat-spinner",5)}var _f=function(){return["id","name","vo","facility","description"]};function wf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-resources-list",6),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("pageSize",r.pageSize)("resources",r.resources)("filterValue",r.filterValue)("displayedColumns",m.DdM(4,_f))}}var bf=function(){var t=function(){function t(e,n,r){f(this,t),this.userManager=e,this.tableConfigService=n,this.route=r,this.resources=[],this.tableId=ht.kO,this.filterValue=""}return p(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.route.parent.params.subscribe(function(e){t.userManager.getAssignedRichResourcesForUser(e.userId).subscribe(function(e){t.resources=e,t.loading=!1})})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"resourceFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(N.Fv),m.Y36(ht.dB),m.Y36(g.gz))},t.\u0275cmp=m.Xpm({type:t,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,"pageSize","resources","filterValue","displayedColumns","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","resources","filterValue","displayedColumns","page"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return e.refreshTable()}),m.qZA(),m.TgZ(5,"perun-web-apps-immediate-filter",2),m.NdJ("filter",function(t){return e.resourceFilter(t)}),m.qZA(),m.YNc(6,yf,1,0,"mat-spinner",3),m.YNc(7,wf,1,5,"perun-web-apps-resources-list",4),m.qZA()),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,4,"USER_DETAIL.RESOURCES.TITLE")),m.xp6(3),m.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[gt.t,vt.L,d.O5,M.$g,mf.C],pipes:[x.X$],styles:[""]}),t}(),xf=l(13572),Ef=l(40695),Tf=l(41186),Af=["list"];function Sf(t,e){1&t&&m._UZ(0,"mat-spinner",7)}function kf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-attributes-list",8,9),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("pageSize",r.pageSize)("attributes",r.attributes)("selection",r.selection)}}var If=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.dialog=e,this.attributesManager=n,this.tableConfigService=r,this.userService=i,this.route=o,this.loading=!1,this.selection=new k.Ov(!0,[]),this.tableId=ht.rF,this.attributes=[]}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.params.subscribe(function(e){t.userService.getUserExtSourceById(e.identityId).subscribe(function(e){t.userExtSource=e,t.refreshTable()})})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.attributesManager.getUserExtSourceAttributes(this.userExtSource.id).subscribe(function(e){t.attributes=(0,lt.MX)(e),t.selection.clear(),t.loading=!1})}},{key:"onAdd",value:function(){var t=this,e=(0,lt.kZ)();e.width="1050px",e.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(Ef.n,e).afterClosed().subscribe(function(e){"saved"===e&&t.refreshTable()})}},{key:"onSave",value:function(){var t=this;this.list.updateMapAttributes();var e=(0,lt.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(Vh.wA,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"onRemove",value:function(){var t=this,e=(0,lt.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(xf.k,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.uw),m.Y36(N.H8),m.Y36(ht.dB),m.Y36(N.Fv),m.Y36(g.gz))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-identity-detail"]],viewQuery:function(t,e){var n;(1&t&&m.Gf(Af,5),2&t)&&(m.iGM(n=m.CRH())&&(e.list=n.first))},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","attributes","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","attributes","selection","page"],["list",""]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return e.refreshTable()}),m.qZA(),m.TgZ(5,"button",2),m.NdJ("click",function(){return e.onSave()}),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"button",3),m.NdJ("click",function(){return e.onAdd()}),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.TgZ(11,"button",4),m.NdJ("click",function(){return e.onRemove()}),m._uU(12),m.ALo(13,"translate"),m.qZA(),m.YNc(14,Sf,1,0,"mat-spinner",5),m.YNc(15,kf,2,3,"perun-web-apps-attributes-list",6),m.qZA()),2&t&&(m.xp6(2),m.AsE("",m.lcZ(3,9,"SHARED.IDENTITY_DETAIL.TITLE")," - ",e.userExtSource?e.userExtSource.extSource.name:"",""),m.xp6(3),m.Q6J("disabled",0===e.selection.selected.length),m.xp6(1),m.Oqu(m.lcZ(7,11,"SHARED.IDENTITY_DETAIL.SAVE")),m.xp6(3),m.Oqu(m.lcZ(10,13,"SHARED.IDENTITY_DETAIL.ADD")),m.xp6(2),m.Q6J("disabled",0===e.selection.selected.length),m.xp6(1),m.Oqu(m.lcZ(13,15,"SHARED.IDENTITY_DETAIL.REMOVE")),m.xp6(2),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[gt.t,Z.lW,d.O5,M.$g,Tf.p],pipes:[x.X$],styles:[""]}),t}();function Cf(t,e){1&t&&m._UZ(0,"mat-spinner",3)}function Df(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",12),m.NdJ("click",function(){return m.CHM(n),m.oxw(2).editService()}),m.TgZ(1,"mat-icon"),m._uU(2,"edit"),m.qZA(),m.qZA()}}var Nf=function(){return{color:"black"}},Zf=function(t){return["/admin/services",t]};function Mf(t,e){if(1&t&&(m.TgZ(0,"div",4),m._UZ(1,"mat-icon",5),m.ALo(2,"translate"),m.TgZ(3,"div",6),m.TgZ(4,"div",7),m.TgZ(5,"a",8),m._uU(6),m.qZA(),m.TgZ(7,"span",9),m._uU(8),m.qZA(),m.YNc(9,Df,3,0,"button",10),m.qZA(),m.TgZ(10,"span",11),m._uU(11),m.ALo(12,"translate"),m.qZA(),m.qZA(),m.qZA()),2&t){var n=m.oxw();m.xp6(1),m.s9C("matTooltip",m.lcZ(2,8,"SERVICE_DETAIL.ENTITY")),m.Q6J("ngStyle",m.DdM(12,Nf)),m.xp6(4),m.Q6J("routerLink",m.VKq(13,Zf,n.service.id)),m.xp6(1),m.hij(" ",n.service.name," "),m.xp6(2),m.hij(" \xa0 #",n.service.id," "),m.xp6(1),m.Q6J("ngIf",n.authResolver.isPerunAdmin()),m.xp6(2),m.AsE(" ",m.lcZ(12,10,"SERVICE_DETAIL.DESCRIPTION"),": ",n.service.description," ")}}var Of=function(){var t=function(){function t(e,n,r,i,o,a){f(this,t),this.route=e,this.serviceManager=n,this.sideMenuService=r,this.sideMenuItemService=i,this.dialog=o,this.authResolver=a,this.loading=!1}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe(function(e){t.serviceManager.getServiceById(e.serviceId).subscribe(function(e){t.service=e;var n=t.sideMenuItemService.parseService(t.service);t.sideMenuService.setAdminItems([n]),t.loading=!1},function(){return t.loading=!1})})}},{key:"editService",value:function(){var t=this,e=(0,lt.kZ)();e.width="600px",e.data={theme:"service-theme",service:this.service},this.dialog.open(rf,e).afterClosed().subscribe(function(e){e&&t.ngOnInit()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(g.gz),m.Y36(N.KK),m.Y36(y.D),m.Y36(v.V),m.Y36(I.uw),m.Y36(D.x4))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-service-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","service-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","d-flex page-title-headtitle",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"service-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["aria-label","Edit service","mat-icon-button","",3,"click"]],template:function(t,e){1&t&&(m.TgZ(0,"div",0),m._UZ(1,"perun-web-apps-back-button"),m.YNc(2,Cf,1,0,"mat-spinner",1),m.YNc(3,Mf,13,15,"div",2),m._UZ(4,"app-animated-router-outlet"),m.qZA()),2&t&&(m.xp6(2),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading&&void 0!==e.service))},directives:[_.W,d.O5,b.A,M.$g,w.Hw,Y.gM,d.PC,g.yS,Z.lW],pipes:[x.X$],styles:[""],data:{animation:[yt.Ji]}}),t}(),Rf=function(){var t=function(){function t(){f(this,t),this.navItems=[]}return p(t,[{key:"ngOnInit",value:function(){this.initNavItems()}},{key:"initNavItems",value:function(){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"}]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-service-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&m._UZ(0,"perun-web-apps-menu-buttons-field",0),2&t&&m.Q6J("items",e.navItems)("size","small")},directives:[A.L],styles:[""]}),t}();function Lf(t,e){1&t&&m._UZ(0,"mat-spinner",4)}function Uf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div",5),m.TgZ(1,"perun-web-apps-immediate-filter",6),m.NdJ("filter",function(t){return m.CHM(n),m.oxw().applyFilter(t)}),m.qZA(),m._UZ(2,"app-attr-def-list",7),m.qZA()}if(2&t){var r=m.oxw();m.xp6(1),m.Q6J("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),m.xp6(1),m.Q6J("selection",r.selection)("definitions",r.attrDefinitions)("disableRouting",!0)("filterValue",r.filterValue)}}function Pf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div",8),m.TgZ(1,"button",9),m.NdJ("click",function(){return m.CHM(n),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"button",10),m.NdJ("click",function(){return m.CHM(n),m.oxw().onAdd()}),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.qZA()}if(2&t){var r=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),m.xp6(2),m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}var Ff=function(){var t=function(){function t(e,n,r,i,o,a){f(this,t),this.dialogRef=e,this.data=n,this.serviceManager=r,this.attributesManager=i,this.notificator=o,this.translate=a,this.attrDefinitions=[],this.selection=new k.Ov(!0,[]),this.filterValue="",this.loading=!1}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.attributesManager.getAllAttributeDefinitions().subscribe(function(e){t.attrDefinitions=e,t.loading=!1})}},{key:"onAdd",value:function(){var t=this;this.loading=!0;var e=this.selection.selected.map(function(t){return t.id});this.serviceManager.addRequiredAttributes(this.serviceId,e).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.ADD_REQUIRED_ATTRIBUTES.SUCCESS")),t.dialogRef.close(!0),t.loading=!1},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(N.KK),m.Y36(N.H8),m.Y36(D.V6),m.Y36(x.sK))},t.\u0275cmp=m.Xpm({type:t,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,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,Lf,1,0,"mat-spinner",1),m.YNc(5,Uf,3,5,"div",2),m.YNc(6,Pf,7,7,"div",3),m.qZA()),2&t&&(m.Tol(e.theme),m.xp6(2),m.Oqu(m.lcZ(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),m.xp6(2),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[I.uh,d.O5,M.$g,I.xY,vt.L,fe,I.H8,Z.lW],pipes:[x.X$],styles:[""]}),t}();function qf(t,e){1&t&&m._UZ(0,"mat-spinner",6)}function zf(t,e){1&t&&m._UZ(0,"th",15)}function jf(t,e){if(1&t&&(m.TgZ(0,"td",16),m._uU(1),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.hij(" ",n.friendlyName," ")}}function Yf(t,e){1&t&&m._UZ(0,"tr",17)}function Bf(t,e){1&t&&m._UZ(0,"tr",18)}function Gf(t,e){if(1&t&&(m.TgZ(0,"div",7),m.TgZ(1,"p"),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",8),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.TgZ(7,"table",9),m.ynx(8,10),m.YNc(9,zf,1,0,"th",11),m.YNc(10,jf,2,1,"td",12),m.BQk(),m.YNc(11,Yf,1,0,"tr",13),m.YNc(12,Bf,1,0,"tr",14),m.qZA(),m.qZA()),2&t){var n=m.oxw();m.xp6(2),m.Oqu(m.lcZ(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),m.xp6(3),m.hij(" ",m.lcZ(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),m.xp6(2),m.Q6J("dataSource",n.dataSource),m.xp6(4),m.Q6J("matHeaderRowDef",n.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",n.displayedColumns)}}var Jf=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.dialogRef=e,this.data=n,this.serviceManager=r,this.notificator=i,this.translate=o,this.displayedColumns=["name"],this.loading=!1}return p(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new C.by(this.data.attrDefinitions)}},{key:"onConfirm",value:function(){var t=this;this.loading=!0;var e=this.dataSource.data.map(function(t){return t.id});this.serviceManager.removeRequiredAttributes(this.serviceId,e).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.SUCCESS")),t.dialogRef.close(!0),t.loading=!1},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(N.KK),m.Y36(D.V6),m.Y36(x.sK))},t.\u0275cmp=m.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div"),m.YNc(4,qf,1,0,"mat-spinner",1),m.YNc(5,Gf,13,9,"div",2),m.TgZ(6,"div",3),m.TgZ(7,"button",4),m.NdJ("click",function(){return e.onCancel()}),m._uU(8),m.ALo(9,"translate"),m.qZA(),m.TgZ(10,"button",5),m.NdJ("click",function(){return e.onConfirm()}),m._uU(11),m.ALo(12,"translate"),m.qZA(),m.qZA(),m.qZA()),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),m.xp6(2),m.Tol(e.theme),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(3),m.hij(" ",m.lcZ(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL"),""),m.xp6(2),m.Q6J("disabled",e.loading),m.xp6(1),m.hij(" ",m.lcZ(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE"),""))},directives:[I.uh,d.O5,I.H8,Z.lW,M.$g,I.xY,C.BZ,C.w1,C.fO,C.Dz,C.as,C.nj,C.ge,C.ev,C.XQ,C.Gk],pipes:[x.X$],styles:[""]}),t}();function Vf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-refresh-button",7),m.NdJ("refresh",function(){return m.CHM(n),m.oxw().refreshTable()}),m.qZA()}}function Hf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().onAdd()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function Qf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",9),m.NdJ("click",function(){return m.CHM(n),m.oxw().onRemove()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function Wf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-immediate-filter",10),m.NdJ("filter",function(t){return m.CHM(n),m.oxw().applyFilter(t)}),m.qZA()}2&t&&m.Q6J("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER")}function Xf(t,e){1&t&&m._UZ(0,"mat-spinner",11)}function $f(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"app-attr-def-list",12),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)})("refreshEvent",function(){return m.CHM(n),m.oxw().refreshTable()}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("pageSize",r.pageSize)("definitions",r.attrDefinitions)("selection",r.selection)("filterValue",r.filterValue)("disableRouting",!r.authResolver.isPerunAdmin())}}var Kf=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.route=e,this.tableConfigService=n,this.attributeManager=r,this.dialog=i,this.authResolver=o,this.loading=!1,this.filterValue="",this.selection=new k.Ov(!0,[]),this.attrDefinitions=[],this.tableId=ht.JO}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.serviceId=e.serviceId,t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.attributeManager.getRequiredAttributesDefinition(this.serviceId).subscribe(function(e){t.selection.clear(),t.attrDefinitions=e,t.loading=!1})}},{key:"onAdd",value:function(){var t=this,e=(0,lt.kZ)();e.width="950px",e.data={serviceId:this.serviceId,theme:"service-theme"},this.dialog.open(Ff,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"onRemove",value:function(){var t=this,e=(0,lt.kZ)();e.width="650px",e.data={serviceId:this.serviceId,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(Jf,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(g.gz),m.Y36(ht.dB),m.Y36(N.H8),m.Y36(I.uw),m.Y36(D.x4))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-service-required-attributes"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","ml-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","ml-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","definitions","selection","filterValue","disableRouting","page","refreshEvent",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","definitions","selection","filterValue","disableRouting","page","refreshEvent"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,Vf,1,0,"perun-web-apps-refresh-button",1),m.YNc(5,Hf,3,3,"button",2),m.YNc(6,Qf,3,4,"button",3),m.YNc(7,Wf,1,1,"perun-web-apps-immediate-filter",4),m.YNc(8,Xf,1,0,"mat-spinner",5),m.YNc(9,$f,1,5,"app-attr-def-list",6),m.qZA()),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,7,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),m.xp6(2),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[d.O5,gt.t,Z.lW,vt.L,M.$g,fe],pipes:[x.X$],styles:[""]}),t}();function td(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-refresh-button",7),m.NdJ("refresh",function(){return m.CHM(n),m.oxw().refreshTable()}),m.qZA()}}function ed(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().onAdd()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "))}function nd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",9),m.NdJ("click",function(){return m.CHM(n),m.oxw().onRemove()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(2,2,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," ")}}function rd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"app-users-list",10),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("pageSize",r.pageSize)("users",r.associatedUsers)("selection",r.selection)("displayedColumns",r.displayedColumns)}}function id(t,e){1&t&&(m.TgZ(0,"app-alert",11),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS")," "))}function od(t,e){1&t&&m._UZ(0,"mat-spinner",12)}var ad=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.route=e,this.dialog=n,this.router=r,this.tableConfigService=i,this.userManager=o,this.loading=!1,this.selection=new k.Ov(!1,[]),this.associatedUsers=[],this.tableId=ht.It,this.displayedColumns=["select","id","user","name"]}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.parent.params.subscribe(function(e){t.userId=e.userId,t.userManager.getUsersBySpecificUser(t.userId).subscribe(function(e){t.associatedUsers=e,t.loading=!1})})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.userManager.getUsersBySpecificUser(this.userId).subscribe(function(e){t.associatedUsers=e,t.selection.clear(),t.loading=!1})}},{key:"onAdd",value:function(){var t=this,e=(0,lt.kZ)();e.width="1250px",e.data={userId:this.userId,theme:"user-theme",isService:!0},this.dialog.open(Ih,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"onRemove",value:function(){var t=this,e=(0,lt.kZ)();e.width="650px",e.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],isService:!0,theme:"user-theme"},this.dialog.open(Mh,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(g.gz),m.Y36(I.uw),m.Y36(g.F0),m.Y36(ht.dB),m.Y36(N.Fv))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-user-settings-associated-users"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"pageSize","users","selection","displayedColumns","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"pageSize","users","selection","displayedColumns","page"],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,td,1,0,"perun-web-apps-refresh-button",1),m.YNc(5,ed,3,3,"button",2),m.YNc(6,nd,3,4,"button",3),m.YNc(7,rd,1,4,"app-users-list",4),m.YNc(8,id,3,3,"app-alert",5),m.qZA(),m.YNc(9,od,1,0,"mat-spinner",6)),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,7,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),m.xp6(2),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",void 0!==e.associatedUsers&&e.associatedUsers.length>0),m.xp6(1),m.Q6J("ngIf",!e.loading&&(void 0===e.associatedUsers||0===e.associatedUsers.length)),m.xp6(1),m.Q6J("ngIf",e.loading))},directives:[d.O5,gt.t,Z.lW,xh.C,O.w,M.$g],pipes:[x.X$],styles:[""]}),t}(),sd=l(60547),ud=l(94357);function cd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-refresh-button",7),m.NdJ("refresh",function(){return m.CHM(n),m.oxw().refreshTable()}),m.qZA()}}function ld(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().onRemove()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function hd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",9),m.NdJ("click",function(){return m.CHM(n),m.oxw().onAllow()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function fd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().onBlock()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function dd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-immediate-filter",10),m.NdJ("filter",function(t){return m.CHM(n),m.oxw().applyFilter(t)}),m.qZA()}2&t&&m.Q6J("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER")}function pd(t,e){1&t&&m._UZ(0,"mat-spinner",11)}var gd=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function vd(t,e){if(1&t&&m._UZ(0,"app-perun-web-apps-destination-list",12),2&t){var n=m.oxw();m.Q6J("destinations",n.destinations)("selection",n.selection)("pageSize",n.pageSize)("displayedColumns",m.DdM(5,gd))("filterValue",n.filterValue)}}var md=function(){var t=function(){function t(e,n,r,i,o,a,s){f(this,t),this.route=e,this.tableConfigService=n,this.serviceManager=r,this.notificator=i,this.translate=o,this.dialog=a,this.authResolver=s,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new k.Ov(!0,[]),this.tableId=ht.Cf}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.serviceId=e.serviceId,t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.serviceManager.getAllRichDestinationsForService(this.serviceId).subscribe(function(e){t.selection.clear(),t.filterValue="",t.destinations=e,t.loading=!1})}},{key:"blockServiceOnDestinations",value:function(t){var e=this;if(0===t.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();var n=t.pop();this.serviceManager.blockServiceOnDestination(this.serviceId,n.id).subscribe(function(){e.blockServiceOnDestinations(t)},function(){return e.loading=!1})}},{key:"onBlock",value:function(){this.loading=!0,this.blockServiceOnDestinations(this.selection.selected)}},{key:"allowServiceOnDestinations",value:function(t){var e=this;if(0===t.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();var n=t.pop();this.serviceManager.unblockServiceOnDestinationById(this.serviceId,n.id).subscribe(function(){e.allowServiceOnDestinations(t)},function(){return e.loading=!1})}},{key:"onAllow",value:function(){this.loading=!0,this.allowServiceOnDestinations(this.selection.selected)}},{key:"onRemove",value:function(){var t=this,e=(0,lt.kZ)();e.width="500px",e.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(sd.u,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(g.gz),m.Y36(ht.dB),m.Y36(N.KK),m.Y36(D.V6),m.Y36(x.sK),m.Y36(I.uw),m.Y36(D.x4))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-service-destinations"]],decls:11,vars:10,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","selection","pageSize","displayedColumns","filterValue",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"destinations","selection","pageSize","displayedColumns","filterValue"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,cd,1,0,"perun-web-apps-refresh-button",1),m.YNc(5,ld,3,4,"button",2),m.YNc(6,hd,3,4,"button",3),m.YNc(7,fd,3,4,"button",2),m.YNc(8,dd,1,1,"perun-web-apps-immediate-filter",4),m.YNc(9,pd,1,0,"mat-spinner",5),m.YNc(10,vd,1,6,"app-perun-web-apps-destination-list",6),m.qZA()),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,8,"SERVICE_DETAIL.DESTINATIONS.TITLE")),m.xp6(2),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[d.O5,gt.t,Z.lW,vt.L,M.$g,ud.q],pipes:[x.X$],styles:[""]}),t}();function yd(t,e){1&t&&m._UZ(0,"mat-spinner",4)}function _d(t,e){1&t&&m._UZ(0,"th",13)}function wd(t,e){if(1&t&&(m.TgZ(0,"td",14),m._uU(1),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.hij(" ",n.name," ")}}function bd(t,e){1&t&&m._UZ(0,"tr",15)}function xd(t,e){1&t&&m._UZ(0,"tr",16)}function Ed(t,e){if(1&t&&(m.TgZ(0,"div",5),m.TgZ(1,"p"),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",6),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.TgZ(7,"table",7),m.ynx(8,8),m.YNc(9,_d,1,0,"th",9),m.YNc(10,wd,2,1,"td",10),m.BQk(),m.YNc(11,bd,1,0,"tr",11),m.YNc(12,xd,1,0,"tr",12),m.qZA(),m.qZA()),2&t){var n=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),m.xp6(3),m.hij(" ",m.lcZ(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),m.xp6(2),m.Q6J("dataSource",n.dataSource),m.xp6(4),m.Q6J("matHeaderRowDef",n.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",n.displayedColumns)}}function Td(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div",17),m.TgZ(1,"button",18),m.NdJ("click",function(){return m.CHM(n),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"button",19),m.NdJ("click",function(){return m.CHM(n),m.oxw().onSubmit()}),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.qZA()}if(2&t){var r=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),m.xp6(2),m.Q6J("disabled",r.loading),m.xp6(1),m.hij(" ",m.lcZ(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}var Ad=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.dialogRef=e,this.data=n,this.notificator=r,this.translate=i,this.ownersManagerService=o,this.displayedColumns=["name"],this.owners=[]}return p(t,[{key:"ngOnInit",value:function(){this.dataSource=new C.by(this.data),this.owners=this.data}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.owners.length?this.ownersManagerService.deleteOwner(this.owners.pop().id).subscribe(function(){t.onSubmit()},function(){return t.loading=!1}):this.translate.get("DIALOGS.DELETE_OWNER.SUCCESS").subscribe(function(e){t.loading=!1,t.notificator.showSuccess(e),t.dialogRef.close(!0)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(D.V6),m.Y36(x.sK),m.Y36(N.aC))},t.\u0275cmp=m.Xpm({type:t,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"],["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(t,e){1&t&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.YNc(3,yd,1,0,"mat-spinner",1),m.YNc(4,Ed,13,9,"div",2),m.YNc(5,Td,7,7,"div",3)),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,4,"DIALOGS.DELETE_OWNER.TITLE")),m.xp6(2),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[I.uh,d.O5,M.$g,I.xY,C.BZ,C.w1,C.fO,C.Dz,C.as,C.nj,C.ge,C.ev,C.XQ,C.Gk,I.H8,Z.lW],pipes:[x.X$],styles:[""]}),t}();function Sd(t,e){1&t&&m._UZ(0,"mat-spinner",4)}function kd(t,e){1&t&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.ADD_OWNER.FILL_CONTACT")," "))}function Id(t,e){1&t&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.ADD_OWNER.CONTACT_FORMAT")," "))}function Cd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"div",5),m.TgZ(2,"mat-form-field"),m._UZ(3,"input",6),m.ALo(4,"translate"),m.TgZ(5,"mat-error"),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.qZA(),m.TgZ(8,"mat-form-field"),m._UZ(9,"input",6),m.ALo(10,"translate"),m.YNc(11,kd,3,3,"mat-error",3),m.YNc(12,Id,3,3,"mat-error",3),m.qZA(),m.TgZ(13,"mat-form-field"),m.TgZ(14,"mat-select",7),m.NdJ("valueChange",function(t){return m.CHM(n),m.oxw().type=t}),m.TgZ(15,"mat-option",8),m._uU(16),m.ALo(17,"translate"),m.qZA(),m.TgZ(18,"mat-option",9),m._uU(19),m.ALo(20,"translate"),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.TgZ(21,"div",10),m.TgZ(22,"button",11),m.NdJ("click",function(){return m.CHM(n),m.oxw().onCancel()}),m._uU(23),m.ALo(24,"translate"),m.qZA(),m.TgZ(25,"div",12),m.ALo(26,"translate"),m.TgZ(27,"button",13),m.NdJ("click",function(){return m.CHM(n),m.oxw().onSubmit()}),m._uU(28),m.ALo(29,"translate"),m.qZA(),m.qZA(),m.qZA(),m.qZA()}if(2&t){var r=m.oxw();m.xp6(3),m.s9C("placeholder",m.lcZ(4,15,"DIALOGS.ADD_OWNER.NAME")),m.Q6J("formControl",r.nameCtrl),m.xp6(3),m.hij(" ",m.lcZ(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),m.xp6(3),m.s9C("placeholder",m.lcZ(10,19,"DIALOGS.ADD_OWNER.CONTACT")),m.Q6J("formControl",r.contactCtrl),m.xp6(2),m.Q6J("ngIf",r.contactCtrl.hasError("required")),m.xp6(1),m.Q6J("ngIf",r.contactCtrl.invalid&&!r.contactCtrl.hasError("required")),m.xp6(2),m.Q6J("value",r.type),m.xp6(2),m.Oqu(m.lcZ(17,21,"DIALOGS.ADD_OWNER.TYPE1")),m.xp6(3),m.Oqu(m.lcZ(20,23,"DIALOGS.ADD_OWNER.TYPE2")),m.xp6(4),m.hij(" ",m.lcZ(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),m.xp6(2),m.s9C("matTooltip",m.lcZ(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),m.Q6J("matTooltipDisabled",r.nameCtrl.valid&&r.contactCtrl.valid),m.xp6(2),m.Q6J("disabled",r.nameCtrl.invalid||r.contactCtrl.invalid),m.xp6(1),m.hij(" ",m.lcZ(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}var Dd=function(){var t=function(){function t(e,n,r,i){var o=this;f(this,t),this.dialogRef=e,this.notificator=n,this.ownersManagerService=r,this.translate=i,this.type="1",this.emailRegex=/^(([^<>+()[\]\\.,;:\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]{2,3}))$/,i.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(function(t){return o.successMessage=t})}return p(t,[{key:"ngOnInit",value:function(){this.nameCtrl=new J.NI(null,[J.kI.required,J.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new J.NI(null,[J.kI.required,J.kI.pattern(this.emailRegex)])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number.parseInt(this.type,10)}).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0)},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(D.V6),m.Y36(N.aC),m.Y36(x.sK))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-add-owner-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"],[3,"value","valueChange"],["value","1"],["value","0"],["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(t,e){1&t&&(m.TgZ(0,"div",0),m.TgZ(1,"h1",1),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,Sd,1,0,"mat-spinner",2),m.YNc(5,Cd,30,31,"div",3),m.qZA()),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,3,"DIALOGS.ADD_OWNER.TITLE")),m.xp6(2),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[I.uh,d.O5,M.$g,I.xY,B.KE,G.Nt,J.Fj,J.Q7,J.JJ,J.oH,B.TO,H.gD,X.ey,I.H8,Z.lW,Y.gM],pipes:[x.X$],styles:[""]}),t}(),Nd=l(17767);function Zd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().addOwner()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"ADMIN.OWNERS.ADD")," "))}function Md(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",9),m.NdJ("click",function(){return m.CHM(n),m.oxw().removeOwner()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",!r.selected.selected.length),m.xp6(1),m.hij(" ",m.lcZ(2,2,"ADMIN.OWNERS.DELETE")," ")}}function Od(t,e){1&t&&m._UZ(0,"mat-spinner",10)}function Rd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-owners-list",11),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("pageSize",r.pageSize)("filterValue",r.filterValue)("owners",r.owners)("selection",r.selected)}}var Ld=function(){var t=function(){function t(e,n,r,i){f(this,t),this.ownersManagerService=e,this.tableConfigService=n,this.dialog=r,this.guiAuthResolver=i,this.owners=[],this.selected=new k.Ov(!0,[]),this.filterValue="",this.tableId=ht.v1}return p(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.setAuth(),this.refreshTable()}},{key:"setAuth",value:function(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteOwner_Owner_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createOwner_Owner_policy",[])}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(function(e){t.owners=e,t.selected.clear(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"addOwner",value:function(){var t=this,e=(0,lt.kZ)();e.width="400px",e.data={},this.dialog.open(Dd,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"removeOwner",value:function(){var t=this,e=(0,lt.kZ)();e.width="400px",e.data=this.selected.selected,this.dialog.open(Ad,e).afterClosed().subscribe(function(e){e&&(t.selected.clear(),t.refreshTable())})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(N.aC),m.Y36(ht.dB),m.Y36(I.uw),m.Y36(D.x4))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-admin-owners"]],decls:10,vars:8,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","owners","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","owners","selection","page"]],template:function(t,e){1&t&&(m.TgZ(0,"div",0),m.TgZ(1,"h1",1),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-refresh-button",2),m.NdJ("refresh",function(){return e.refreshTable()}),m.qZA(),m.YNc(5,Zd,3,3,"button",3),m.YNc(6,Md,3,4,"button",4),m.TgZ(7,"perun-web-apps-immediate-filter",5),m.NdJ("filter",function(t){return e.applyFilter(t)}),m.qZA(),m.YNc(8,Od,1,0,"mat-spinner",6),m.YNc(9,Rd,1,4,"perun-web-apps-owners-list",7),m.qZA()),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,6,"ADMIN.OWNERS.TITLE")),m.xp6(3),m.Q6J("ngIf",e.addAuth),m.xp6(1),m.Q6J("ngIf",e.removeAuth),m.xp6(1),m.Q6J("placeholder","ADMIN.OWNERS.FILTER"),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[gt.t,d.O5,vt.L,Z.lW,M.$g,Nd.Q],pipes:[x.X$],styles:[""]}),t}(),Ud=l(60007);function Pd(t,e){1&t&&m._UZ(0,"mat-spinner",5)}function Fd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-facilities-list",6),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("filterValue",r.filterValue)("facilities",r.facilities)("displayedColumns",r.displayedColumns)("pageSize",r.pageSize)}}var qd,zd,jd=[{path:"",component:T,children:[{path:"",component:S,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:ye,data:{animation:"AdminAttributesPage"}},{path:"users",component:Hl.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:Ld,data:{animation:"AdminOwnersPage"}},{path:"services",component:vf,data:{animation:"AdminServicesPage"}},{path:"visualizer",component:_e,children:[{path:"",component:xe,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:be,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Le,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:Vl,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:_h,data:{animation:"AdminExtSourcesPage"}}]},{path:"users/:userId",component:sh,children:[{path:"",component:uh.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:fh.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:ch.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:lh.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:Kh,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:(qd=function(){function t(e,n,r){f(this,t),this.facilityManager=e,this.tableConfigService=n,this.route=r,this.facilities=[],this.filterValue="",this.tableId=ht.zW,this.displayedColumns=["id","name","description"]}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.userId=e.userId,t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe(function(e){t.facilities=e.map(function(t){return{facility:t}}),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}(),qd.\u0275fac=function(t){return new(t||qd)(m.Y36(N.IQ),m.Y36(ht.dB),m.Y36(g.gz))},qd.\u0275cmp=m.Xpm({type:qd,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,"filterValue","facilities","displayedColumns","pageSize","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"filterValue","facilities","displayedColumns","pageSize","page"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return e.refreshTable()}),m.qZA(),m.TgZ(5,"perun-web-apps-immediate-filter",2),m.NdJ("filter",function(t){return e.applyFilter(t)}),m.qZA(),m.YNc(6,Pd,1,0,"mat-spinner",3),m.YNc(7,Fd,1,4,"perun-web-apps-facilities-list",4),m.qZA()),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,4,"USER_DETAIL.FACILITIES.TITLE")),m.xp6(3),m.Q6J("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[gt.t,vt.L,d.O5,M.$g,Ud.X],pipes:[x.X$],styles:[""]}),qd),data:{animation:"UserFacilitiesPage"}},{path:"resources",component:bf,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:If,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:wh.t,data:{animation:"UserRolesPage"}},{path:"settings",component:hh.L,children:[{path:"",component:dh.x,data:{animation:"UserSettingsOverviewPage"}},{path:"service-identities",component:qh,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:ad,data:{animation:"AssociatedUsersPage"}}]}]},{path:"services/:serviceId",component:Of,children:[{path:"",component:Rf,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:Kf,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:md,data:{animation:"ServiceDestinationsPage"}}]}],Yd=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[g.Bz.forChild(jd)],g.Bz]}),t}(),Bd=l(28780),Gd=l(22727),Jd=l(22280),Vd=l(6363),Hd=((zd=function t(){f(this,t)}).\u0275fac=function(t){return new(t||zd)},zd.\u0275mod=m.oAB({type:zd}),zd.\u0275inj=m.cJS({imports:[[Va,Ll,d.ez,Yd,Bd.m,Gd.r,bt.ez,Jd.d4,Vd.UsersModule]]}),zd)},91721:function(t,e,n){"use strict";n.d(e,{Q:function(){return F}});var r=n(31572),i=n(58623),o=n(67033),a=n(4230),s=n(27613),u=n(88426),c=n(82819),l=n(61511),h=n(29236),d=n(43691),g=n(36922),v=n(84534),m=n(57629),y=n(39571),_=n(48160);function w(t,e){if(1&t){var n=r.EpF();r.TgZ(0,"th",16),r.TgZ(1,"mat-checkbox",17),r.NdJ("change",function(t){r.CHM(n);var e=r.oxw();return t?e.masterToggle():null}),r.qZA(),r.qZA()}if(2&t){var i=r.oxw();r.xp6(1),r.Q6J("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function b(t,e){if(1&t){var n=r.EpF();r.TgZ(0,"td",18),r.TgZ(1,"mat-checkbox",19),r.NdJ("change",function(t){var e=r.CHM(n).$implicit,i=r.oxw();return t?i.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),r.qZA(),r.qZA()}if(2&t){var i=e.$implicit,o=r.oxw();r.xp6(1),r.Q6J("aria-label",o.checkboxLabel(i))("checked",o.selection.isSelected(i))}}function x(t,e){1&t&&(r.TgZ(0,"th",20),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")))}function E(t,e){if(1&t&&(r.TgZ(0,"td",18),r._uU(1),r.qZA()),2&t){var n=e.$implicit;r.xp6(1),r.Oqu(n.id)}}function T(t,e){1&t&&(r.TgZ(0,"th",20),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")))}function A(t,e){if(1&t&&(r.TgZ(0,"td",21),r._uU(1),r.qZA()),2&t){var n=e.$implicit;r.xp6(1),r.Oqu(n.name)}}function S(t,e){1&t&&r._UZ(0,"th",16)}function k(t,e){1&t&&(r.TgZ(0,"mat-icon",23),r.ALo(1,"translate"),r._uU(2," check_circle_outline "),r.qZA()),2&t&&r.s9C("matTooltip",r.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function I(t,e){1&t&&(r.TgZ(0,"mat-icon",23),r.ALo(1,"translate"),r._uU(2," block "),r.qZA()),2&t&&r.s9C("matTooltip",r.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function C(t,e){if(1&t&&(r.TgZ(0,"td",21),r.YNc(1,k,3,3,"mat-icon",22),r.YNc(2,I,3,3,"mat-icon",22),r.qZA()),2&t){var n=e.$implicit;r.xp6(1),r.Q6J("ngIf",n.enabled),r.xp6(1),r.Q6J("ngIf",!n.enabled)}}function D(t,e){1&t&&(r.TgZ(0,"th",16),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")))}function N(t,e){if(1&t&&(r.TgZ(0,"td",21),r._uU(1),r.qZA()),2&t){var n=e.$implicit;r.xp6(1),r.Oqu(n.script)}}function Z(t,e){1&t&&(r.TgZ(0,"th",20),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")))}function M(t,e){if(1&t&&(r.TgZ(0,"td",21),r._uU(1),r.qZA()),2&t){var n=e.$implicit;r.xp6(1),r.Oqu(n.description)}}function O(t,e){1&t&&r._UZ(0,"tr",24)}var R=function(t){return["/admin/services",t]};function L(t,e){if(1&t&&r._UZ(0,"tr",25),2&t){var n=e.$implicit,i=r.oxw();r.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),r.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:r.VKq(6,R,n.id))("routerLink",i.disableRouting?null:r.VKq(8,R,n.id))}}function U(t,e){1&t&&(r.TgZ(0,"app-alert",26),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function P(t,e){1&t&&(r.TgZ(0,"app-alert",26),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}var F=function(){var t=function(){function t(e,n){f(this,t),this.authResolver=e,this.tableCheckbox=n,this.services=[],this.filterValue="",this.pageSize=10,this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new a.Ov(!0,[]),this.disableRouting=!1,this.page=new r.vpe,this.pageSizeOptions=s.f7}return p(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new o.by(this.services),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"enabled":return t.enabled?"true":"false";case"script":return t.script;case"description":return t.description;default:return""}}},{key:"exportData",value:function(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,n){return(0,s.Sd)(e,n,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,n){return(0,s.pR)(e,n,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(u.x4),r.Y36(u.UA))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-services-list"]],viewQuery:function(t,e){var n;(1&t&&(r.Gf(i.YE,7),r.Gf(s.l9,7)),2&t)&&(r.iGM(n=r.CRH())&&(e.matSort=n.first),r.iGM(n=r.CRH())&&(e.child=n.first))},inputs:{services:"services",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{page:"page"},features:[r.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","enabled"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"perun-web-apps-table-wrapper",1),r.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),r.TgZ(2,"table",2),r.ynx(3,3),r.YNc(4,w,2,3,"th",4),r.YNc(5,b,2,2,"td",5),r.BQk(),r.ynx(6,6),r.YNc(7,x,3,3,"th",7),r.YNc(8,E,2,1,"td",5),r.BQk(),r.ynx(9,8),r.YNc(10,T,3,3,"th",7),r.YNc(11,A,2,1,"td",9),r.BQk(),r.ynx(12,10),r.YNc(13,S,1,0,"th",4),r.YNc(14,C,3,2,"td",9),r.BQk(),r.ynx(15,11),r.YNc(16,D,3,3,"th",4),r.YNc(17,N,2,1,"td",9),r.BQk(),r.ynx(18,12),r.YNc(19,Z,3,3,"th",7),r.YNc(20,M,2,1,"td",9),r.BQk(),r.YNc(21,O,1,0,"tr",13),r.YNc(22,L,1,10,"tr",14),r.qZA(),r.qZA(),r.qZA(),r.YNc(23,U,3,3,"app-alert",15),r.YNc(24,P,3,3,"app-alert",15)),2&t&&(r.Q6J("hidden",void 0===e.services||0===e.services.length||0===e.dataSource.filteredData.length),r.xp6(1),r.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),r.xp6(1),r.Q6J("dataSource",e.dataSource),r.xp6(19),r.Q6J("matHeaderRowDef",e.displayedColumns),r.xp6(1),r.Q6J("matRowDefColumns",e.displayedColumns),r.xp6(1),r.Q6J("ngIf",0===e.dataSource.filteredData.length&&void 0!==e.services&&0!==e.services.length),r.xp6(1),r.Q6J("ngIf",void 0===e.services||0===e.services.length))},directives:[c.l,o.BZ,i.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,i.nU,d.Hw,g.gM,o.XQ,o.Gk,v.YH,m.rH,y.w],pipes:[_.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t}()},95914:function(t,e,n){"use strict";function r(t,e){return t(e={exports:{}},e.exports),e.exports}n.r(e),n.d(e,{StackParser:function(){return l},graphviz:function(){return m},graphvizSync:function(){return _},parse:function(){return h},wasmFolder:function(){return s}});var i=r(function(t,e){var n,r=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(t){var e,r=void 0!==(t=t||{})?t:{},i={};for(e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);var o,a="./this.program",s="";document.currentScript&&(s=document.currentScript.src),n&&(s=n),s=0!==s.indexOf("blob:")?s.substr(0,s.lastIndexOf("/")+1):"",o=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText};var u,c,l=r.print||console.log.bind(console),h=r.printErr||console.warn.bind(console);for(e in i)i.hasOwnProperty(e)&&(r[e]=i[e]);i=null,r.thisProgram&&(a=r.thisProgram),r.wasmBinary&&(u=r.wasmBinary),"object"!=typeof WebAssembly&&h("no native wasm support detected");var f=new WebAssembly.Table({initial:153,maximum:153,element:"anyfunc"}),d=!1;function p(t,e){t||z("Assertion failed: "+e)}var g,v,m,y,_,w="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function b(t,e,n){for(var r=e+n,i=e;t[i]&&!(i>=r);)++i;if(i-e>16&&t.subarray&&w)return w.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function x(t,e){return t?b(m,t,e):""}function E(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function T(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function A(t){g=t,r.HEAP8=v=new Int8Array(t),r.HEAP16=new Int16Array(t),r.HEAP32=y=new Int32Array(t),r.HEAPU8=m=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=_=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var S=r.TOTAL_MEMORY||16777216;function k(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(c=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:S/65536}))&&(g=c.buffer),S=g.byteLength,A(g),y[2080]=5251360;var I=[],C=[],D=[],N=[],Z=!1,M=Math.abs,O=Math.ceil,R=Math.floor,L=Math.min,U=0,P=null;function F(t){U++,r.monitorRunDependencies&&r.monitorRunDependencies(U)}function q(t){if(U--,r.monitorRunDependencies&&r.monitorRunDependencies(U),0==U&&P){var e=P;P=null,e()}}function z(t){throw r.onAbort&&r.onAbort(t),l(t+=""),h(t),d=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function j(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var Y,B,G,J="expatlib.wasm";function V(){try{if(u)return new Uint8Array(u);throw"both async and sync fetching of the wasm failed"}catch(h){z(h)}}j(J)||(Y=J,J=r.locateFile?r.locateFile(Y,s):s+Y);var H={1184:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";e.startElement()},1404:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";e.endElement()},1616:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";e.characterData()}};C.push({func:function(){lt()}});var Q={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=Q.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return Q.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return Q.normalize(t.join("/"))},join2:function(t,e){return Q.normalize(t+"/"+e)}};function W(t){return r.___errno_location&&(y[r.___errno_location()>>2]=t),t}var X={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:tt.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=X.resolve(t).substr(1),e=X.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(l(b(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(h(b(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(h(b(t.output,0)),t.output=[])}}},K={ops_table:null,mount:function(t){return K.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(tt.isBlkdev(n)||tt.isFIFO(n))throw new tt.ErrnoError(63);K.ops_table||(K.ops_table={dir:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr,lookup:K.node_ops.lookup,mknod:K.node_ops.mknod,rename:K.node_ops.rename,unlink:K.node_ops.unlink,rmdir:K.node_ops.rmdir,readdir:K.node_ops.readdir,symlink:K.node_ops.symlink},stream:{llseek:K.stream_ops.llseek}},file:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr},stream:{llseek:K.stream_ops.llseek,read:K.stream_ops.read,write:K.stream_ops.write,allocate:K.stream_ops.allocate,mmap:K.stream_ops.mmap,msync:K.stream_ops.msync}},link:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr,readlink:K.node_ops.readlink},stream:{}},chrdev:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr},stream:tt.chrdev_stream_ops}});var i=tt.createNode(t,e,n,r);return tt.isDir(i.mode)?(i.node_ops=K.ops_table.dir.node,i.stream_ops=K.ops_table.dir.stream,i.contents={}):tt.isFile(i.mode)?(i.node_ops=K.ops_table.file.node,i.stream_ops=K.ops_table.file.stream,i.usedBytes=0,i.contents=null):tt.isLink(i.mode)?(i.node_ops=K.ops_table.link.node,i.stream_ops=K.ops_table.link.stream):tt.isChrdev(i.mode)&&(i.node_ops=K.ops_table.chrdev.node,i.stream_ops=K.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new tt.ErrnoError(32);for(var i=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),o=tt.root,a="/",s=0;s40)throw new tt.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(tt.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%tt.nameTable.length},hashAddNode:function(t){var e=tt.hashName(t.parent.id,t.name);t.name_next=tt.nameTable[e],tt.nameTable[e]=t},hashRemoveNode:function(t){var e=tt.hashName(t.parent.id,t.name);if(tt.nameTable[e]===t)tt.nameTable[e]=t.name_next;else for(var n=tt.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=tt.mayLookup(t);if(n)throw new tt.ErrnoError(n,t);for(var r=tt.hashName(t.id,e),i=tt.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return tt.lookup(t,e)},createNode:function(t,e,n,r){tt.FSNode||(tt.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=tt.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},tt.FSNode.prototype={},Object.defineProperties(tt.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return tt.isDir(this.mode)}},isDevice:{get:function(){return tt.isChrdev(this.mode)}}}));var i=new tt.FSNode(t,e,n,r);return tt.hashAddNode(i),i},destroyNode:function(t){tt.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=tt.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return tt.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return tt.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return tt.lookupNode(t,e),20}catch(n){}return tt.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=tt.lookupNode(t,e)}catch(o){return o.errno}var i=tt.nodePermissions(t,"wx");if(i)return i;if(n){if(!tt.isDir(r.mode))return 54;if(tt.isRoot(r)||tt.getPath(r)===tt.cwd())return 10}else if(tt.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?tt.isLink(t.mode)?32:tt.isDir(t.mode)&&("r"!==tt.flagsToPermissionString(e)||512&e)?31:tt.nodePermissions(t,tt.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||tt.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!tt.streams[n])return n;throw new tt.ErrnoError(33)},getStream:function(t){return tt.streams[t]},createStream:function(t,e,n){tt.FSStream||(tt.FSStream=function(){},tt.FSStream.prototype={},Object.defineProperties(tt.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new tt.FSStream;for(var i in t)r[i]=t[i];t=r;var o=tt.nextfd(e,n);return t.fd=o,tt.streams[o]=t,t},closeStream:function(t){tt.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=tt.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new tt.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){tt.devices[t]={stream_ops:e}},getDevice:function(t){return tt.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),tt.syncFSRequests++,tt.syncFSRequests>1&&h("warning: "+tt.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=tt.getMounts(tt.root.mount),r=0;function i(t){return tt.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)})},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&tt.root)throw new tt.ErrnoError(10);if(!i&&!o){var a=tt.lookupPath(n,{follow_mount:!1});if(n=a.path,tt.isMountpoint(r=a.node))throw new tt.ErrnoError(10);if(!tt.isDir(r.mode))throw new tt.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?tt.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=tt.lookupPath(t,{follow_mount:!1});if(!tt.isMountpoint(e.node))throw new tt.ErrnoError(28);var n=e.node,r=n.mounted,i=tt.getMounts(r);Object.keys(tt.nameTable).forEach(function(t){for(var e=tt.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&tt.destroyNode(e),e=n}}),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=tt.lookupPath(t,{parent:!0}).node,i=Q.basename(t);if(!i||"."===i||".."===i)throw new tt.ErrnoError(28);var o=tt.mayCreate(r,i);if(o)throw new tt.ErrnoError(o);if(!r.node_ops.mknod)throw new tt.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,tt.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,tt.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter(function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):at(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]}),!o&&r||(a=r=1,r=this.getter(0).length,a=r,l("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=tt.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach(function(t){var e=s.stream_ops[t];u[t]=function(){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);return e.apply(null,arguments)}}),u.read=function(t,e,n,r,i){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,y[n+4>>2]=0,y[n+8>>2]=r.ino,y[n+12>>2]=r.mode,y[n+16>>2]=r.nlink,y[n+20>>2]=r.uid,y[n+24>>2]=r.gid,y[n+28>>2]=r.rdev,y[n+32>>2]=0,G=[r.size>>>0,(B=r.size,+M(B)>=1?B>0?(0|L(+R(B/4294967296),4294967295))>>>0:~~+O((B-+(~~B>>>0))/4294967296)>>>0:0)],y[n+40>>2]=G[0],y[n+44>>2]=G[1],y[n+48>>2]=4096,y[n+52>>2]=r.blocks,y[n+56>>2]=r.atime.getTime()/1e3|0,y[n+60>>2]=0,y[n+64>>2]=r.mtime.getTime()/1e3|0,y[n+68>>2]=0,y[n+72>>2]=r.ctime.getTime()/1e3|0,y[n+76>>2]=0,G=[r.ino>>>0,(B=r.ino,+M(B)>=1?B>0?(0|L(+R(B/4294967296),4294967295))>>>0:~~+O((B-+(~~B>>>0))/4294967296)>>>0:0)],y[n+80>>2]=G[0],y[n+84>>2]=G[1],0},doMsync:function(t,e,n,r,i){var o=m.slice(t,t+n);tt.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=Q.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),tt.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return tt.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=tt.readlink(t),i=Math.min(n,T(r)),o=v[e+i];return E(r,m,e,n+1),v[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=tt.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&tt.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=tt.getStream(n);return r&&tt.close(r),tt.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=tt.read(t,v,y[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],y[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return et.varargs+=4,y[et.varargs-4>>2]},getStr:function(){return x(et.get())},getStreamFromFD:function(t){void 0===t&&(t=et.get());var e=tt.getStream(t);if(!e)throw new tt.ErrnoError(8);return e},get64:function(){var t=et.get();return et.get(),t},getZero:function(){et.get()}};function nt(t){try{return c.grow(t-g.byteLength+65535>>16),A(c.buffer),1}catch(e){}}var rt={};function it(){if(!it.strings){var t={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",_:a||"./this.program"};for(var e in rt)t[e]=rt[e];var n=[];for(var e in t)n.push(e+"="+t[e]);it.strings=n}return it.strings}function ot(t,e){ot.array||(ot.array=[]);var n,r=ot.array;for(r.length=0;n=m[t++];)100===n||102===n?(r.push(_[(e=e+7&-8)>>3]),e+=8):(r.push(y[(e=e+3&-4)>>2]),e+=4);return r}function at(t,e,n){var r=n>0?n:T(t)+1,i=new Array(r),o=E(t,i,0,i.length);return e&&(i.length=o),i}tt.staticInit();var st={h:function(t,e){et.varargs=e;try{return 42}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||z(n),-n.errno}},e:function(){z()},a:function(t,e,n){var r=ot(e,n);return H[t].apply(null,r)},c:function(t,e,n){m.set(m.subarray(e,e+n),t)},d:function(t){var e=m.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),nt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},f:function(t,e){var n=it(),r=0;return n.forEach(function(n,i){var o=e+r;y[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);v[e>>0]=0}(n,o),r+=n.length+1}),0},g:function(t,e){var n=it();y[t>>2]=n.length;var r=0;return n.forEach(function(t){r+=t.length+1}),y[e>>2]=r,0},j:function(t){try{var e=et.getStreamFromFD(t);return tt.close(e),0}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||z(n),n.errno}},i:function(t,e,n,r,i){try{var o=et.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(tt.llseek(o,a,r),G=[o.position>>>0,(B=o.position,+M(B)>=1?B>0?(0|L(+R(B/4294967296),4294967295))>>>0:~~+O((B-+(~~B>>>0))/4294967296)>>>0:0)],y[i>>2]=G[0],y[i+4>>2]=G[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==tt&&s instanceof tt.ErrnoError||z(s),s.errno}},b:function(t,e,n,r){try{var i=et.getStreamFromFD(t),o=et.doWritev(i,e,n);return y[r>>2]=o,0}catch(a){return void 0!==tt&&a instanceof tt.ErrnoError||z(a),a.errno}},k:function(t){var e=Date.now();return y[t>>2]=e/1e3|0,y[t+4>>2]=e%1e3*1e3|0,0},memory:c,table:f},ut=function(){var t={a:st};function e(t,e){r.asm=t.exports,q()}function n(t){e(t.instance)}function i(e){return(u||"function"!=typeof fetch?new Promise(function(t,e){t(V())}):fetch(J,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+J+"'";return t.arrayBuffer()}).catch(function(){return V()})).then(function(e){return WebAssembly.instantiate(e,t)}).then(e,function(t){h("failed to asynchronously prepare wasm: "+t),z(t)})}if(F(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return h("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(u||"function"!=typeof WebAssembly.instantiateStreaming||j(J)||"function"!=typeof fetch)return i(n);fetch(J,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,t).then(n,function(t){h("wasm streaming compile failed: "+t),h("falling back to ArrayBuffer instantiation"),i(n)})})}(),{}}();r.asm=ut;var ct,lt=r.___wasm_call_ctors=function(){return(lt=r.___wasm_call_ctors=r.asm.l).apply(null,arguments)},ht=r._emscripten_bind_CExpat_CExpat_0=function(){return(ht=r._emscripten_bind_CExpat_CExpat_0=r.asm.m).apply(null,arguments)},ft=r._emscripten_bind_CExpat_create_0=function(){return(ft=r._emscripten_bind_CExpat_create_0=r.asm.n).apply(null,arguments)},dt=r._emscripten_bind_CExpat_destroy_0=function(){return(dt=r._emscripten_bind_CExpat_destroy_0=r.asm.o).apply(null,arguments)},pt=r._emscripten_bind_CExpat_parse_1=function(){return(pt=r._emscripten_bind_CExpat_parse_1=r.asm.p).apply(null,arguments)},gt=r._emscripten_bind_CExpat_tag_0=function(){return(gt=r._emscripten_bind_CExpat_tag_0=r.asm.q).apply(null,arguments)},vt=r._emscripten_bind_CExpat_attrs_0=function(){return(vt=r._emscripten_bind_CExpat_attrs_0=r.asm.r).apply(null,arguments)},mt=r._emscripten_bind_CExpat_content_0=function(){return(mt=r._emscripten_bind_CExpat_content_0=r.asm.s).apply(null,arguments)},yt=r._emscripten_bind_CExpat_startElement_0=function(){return(yt=r._emscripten_bind_CExpat_startElement_0=r.asm.t).apply(null,arguments)},_t=r._emscripten_bind_CExpat_endElement_0=function(){return(_t=r._emscripten_bind_CExpat_endElement_0=r.asm.u).apply(null,arguments)},wt=r._emscripten_bind_CExpat_characterData_0=function(){return(wt=r._emscripten_bind_CExpat_characterData_0=r.asm.v).apply(null,arguments)},bt=r._emscripten_bind_CExpat___destroy___0=function(){return(bt=r._emscripten_bind_CExpat___destroy___0=r.asm.w).apply(null,arguments)},xt=r._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(xt=r._emscripten_bind_CExpatJS_CExpatJS_0=r.asm.x).apply(null,arguments)},Et=r._emscripten_bind_CExpatJS_startElement_0=function(){return(Et=r._emscripten_bind_CExpatJS_startElement_0=r.asm.y).apply(null,arguments)},Tt=r._emscripten_bind_CExpatJS_endElement_0=function(){return(Tt=r._emscripten_bind_CExpatJS_endElement_0=r.asm.z).apply(null,arguments)},At=r._emscripten_bind_CExpatJS_characterData_0=function(){return(At=r._emscripten_bind_CExpatJS_characterData_0=r.asm.A).apply(null,arguments)},St=r._emscripten_bind_CExpatJS___destroy___0=function(){return(St=r._emscripten_bind_CExpatJS___destroy___0=r.asm.B).apply(null,arguments)},kt=r._emscripten_bind_VoidPtr___destroy___0=function(){return(kt=r._emscripten_bind_VoidPtr___destroy___0=r.asm.C).apply(null,arguments)},It=r._malloc=function(){return(It=r._malloc=r.asm.D).apply(null,arguments)};function Ct(t){function e(){ct||(ct=!0,d||(Z=!0,r.noFSInit||tt.init.initialized||tt.init(),$.init(),k(C),tt.ignorePermissions=!1,k(D),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),N.unshift(t);var t;k(N)}()))}U>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),I.unshift(t);var t;k(I)}(),U>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),e()},1)):e()))}if(r._free=function(){return(r._free=r.asm.E).apply(null,arguments)},r.___errno_location=function(){return(r.___errno_location=r.asm.F).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.G).apply(null,arguments)},r.dynCall_vi=function(){return(r.dynCall_vi=r.asm.H).apply(null,arguments)},r.asm=ut,r.then=function(t){if(ct)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},P=function t(){ct||Ct(),ct||(P=t)},r.run=Ct,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function Dt(){}function Nt(t){return(t||Dt).__cache__}function Zt(t,e){var n=Nt(e),r=n[t];return r||((r=Object.create((e||Dt).prototype)).ptr=t,n[t]=r)}Ct(),(Dt.prototype=Object.create(Dt.prototype)).constructor=Dt,Dt.prototype.__class__=Dt,Dt.__cache__={},r.WrapperObject=Dt,r.getCache=Nt,r.wrapPointer=Zt,r.castObject=function(t,e){return Zt(t.ptr,e)},r.NULL=Zt(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete Nt(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var Mt={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Mt.needed){for(var t=0;t=Mt.size?(p(i>0),Mt.needed+=i,n=r._malloc(i),Mt.temps.push(n)):(n=Mt.buffer+Mt.pos,Mt.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i=r);)++i;if(i-e>16&&t.subarray&&A)return A.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function k(t,e){return t?S(b,t,e):""}function I(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function C(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function D(t){_=t,r.HEAP8=w=new Int8Array(t),r.HEAP16=x=new Int16Array(t),r.HEAP32=E=new Int32Array(t),r.HEAPU8=b=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=T=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var N=r.TOTAL_MEMORY||16777216;function Z(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(d=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:N/65536}))&&(_=d.buffer),N=_.byteLength,D(_),E[54772]=5462128;var M=[],O=[],R=[],L=[],U=!1,P=Math.abs,F=Math.ceil,q=Math.floor,z=Math.min,j=0,Y=null;function B(t){j++,r.monitorRunDependencies&&r.monitorRunDependencies(j)}function G(t){if(j--,r.monitorRunDependencies&&r.monitorRunDependencies(j),0==j&&Y){var e=Y;Y=null,e()}}function J(t){throw r.onAbort&&r.onAbort(t),c(t+=""),l(t),m=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function V(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var H,Q,W,X="graphvizlib.wasm";function $(){try{if(h)return new Uint8Array(h);throw"both async and sync fetching of the wasm failed"}catch(l){J(l)}}V(X)||(H=X,X=r.locateFile?r.locateFile(H,u):u+H);var K={1088:function(t,e){var n=k(t),r=k(e);at.createPath("/",nt.dirname(n)),at.writeFile(nt.join("/",n),r)}};function tt(){J()}function et(t){return r.___errno_location&&(E[r.___errno_location()>>2]=t),t}O.push({func:function(){Et()}});var nt={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=nt.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return nt.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return nt.normalize(t.join("/"))},join2:function(t,e){return nt.normalize(t+"/"+e)}},rt={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:at.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=rt.resolve(t).substr(1),e=rt.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(c(S(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(l(S(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(l(S(t.output,0)),t.output=[])}}},ot={ops_table:null,mount:function(t){return ot.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(at.isBlkdev(n)||at.isFIFO(n))throw new at.ErrnoError(63);ot.ops_table||(ot.ops_table={dir:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,lookup:ot.node_ops.lookup,mknod:ot.node_ops.mknod,rename:ot.node_ops.rename,unlink:ot.node_ops.unlink,rmdir:ot.node_ops.rmdir,readdir:ot.node_ops.readdir,symlink:ot.node_ops.symlink},stream:{llseek:ot.stream_ops.llseek}},file:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:{llseek:ot.stream_ops.llseek,read:ot.stream_ops.read,write:ot.stream_ops.write,allocate:ot.stream_ops.allocate,mmap:ot.stream_ops.mmap,msync:ot.stream_ops.msync}},link:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,readlink:ot.node_ops.readlink},stream:{}},chrdev:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:at.chrdev_stream_ops}});var i=at.createNode(t,e,n,r);return at.isDir(i.mode)?(i.node_ops=ot.ops_table.dir.node,i.stream_ops=ot.ops_table.dir.stream,i.contents={}):at.isFile(i.mode)?(i.node_ops=ot.ops_table.file.node,i.stream_ops=ot.ops_table.file.stream,i.usedBytes=0,i.contents=null):at.isLink(i.mode)?(i.node_ops=ot.ops_table.link.node,i.stream_ops=ot.ops_table.link.stream):at.isChrdev(i.mode)&&(i.node_ops=ot.ops_table.chrdev.node,i.stream_ops=ot.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new at.ErrnoError(32);for(var i=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),o=at.root,a="/",s=0;s40)throw new at.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(at.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%at.nameTable.length},hashAddNode:function(t){var e=at.hashName(t.parent.id,t.name);t.name_next=at.nameTable[e],at.nameTable[e]=t},hashRemoveNode:function(t){var e=at.hashName(t.parent.id,t.name);if(at.nameTable[e]===t)at.nameTable[e]=t.name_next;else for(var n=at.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=at.mayLookup(t);if(n)throw new at.ErrnoError(n,t);for(var r=at.hashName(t.id,e),i=at.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return at.lookup(t,e)},createNode:function(t,e,n,r){at.FSNode||(at.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=at.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},at.FSNode.prototype={},Object.defineProperties(at.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return at.isDir(this.mode)}},isDevice:{get:function(){return at.isChrdev(this.mode)}}}));var i=new at.FSNode(t,e,n,r);return at.hashAddNode(i),i},destroyNode:function(t){at.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=at.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return at.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return at.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return at.lookupNode(t,e),20}catch(n){}return at.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=at.lookupNode(t,e)}catch(o){return o.errno}var i=at.nodePermissions(t,"wx");if(i)return i;if(n){if(!at.isDir(r.mode))return 54;if(at.isRoot(r)||at.getPath(r)===at.cwd())return 10}else if(at.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?at.isLink(t.mode)?32:at.isDir(t.mode)&&("r"!==at.flagsToPermissionString(e)||512&e)?31:at.nodePermissions(t,at.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||at.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!at.streams[n])return n;throw new at.ErrnoError(33)},getStream:function(t){return at.streams[t]},createStream:function(t,e,n){at.FSStream||(at.FSStream=function(){},at.FSStream.prototype={},Object.defineProperties(at.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new at.FSStream;for(var i in t)r[i]=t[i];t=r;var o=at.nextfd(e,n);return t.fd=o,at.streams[o]=t,t},closeStream:function(t){at.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=at.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new at.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){at.devices[t]={stream_ops:e}},getDevice:function(t){return at.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),at.syncFSRequests++,at.syncFSRequests>1&&l("warning: "+at.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=at.getMounts(at.root.mount),r=0;function i(t){return at.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)})},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&at.root)throw new at.ErrnoError(10);if(!i&&!o){var a=at.lookupPath(n,{follow_mount:!1});if(n=a.path,at.isMountpoint(r=a.node))throw new at.ErrnoError(10);if(!at.isDir(r.mode))throw new at.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?at.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=at.lookupPath(t,{follow_mount:!1});if(!at.isMountpoint(e.node))throw new at.ErrnoError(28);var n=e.node,r=n.mounted,i=at.getMounts(r);Object.keys(at.nameTable).forEach(function(t){for(var e=at.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&at.destroyNode(e),e=n}}),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=at.lookupPath(t,{parent:!0}).node,i=nt.basename(t);if(!i||"."===i||".."===i)throw new at.ErrnoError(28);var o=at.mayCreate(r,i);if(o)throw new at.ErrnoError(o);if(!r.node_ops.mknod)throw new at.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,at.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,at.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter(function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):_t(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]}),!o&&r||(a=r=1,r=this.getter(0).length,a=r,c("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=at.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach(function(t){var e=s.stream_ops[t];u[t]=function(){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);return e.apply(null,arguments)}}),u.read=function(t,e,n,r,i){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,E[n+4>>2]=0,E[n+8>>2]=r.ino,E[n+12>>2]=r.mode,E[n+16>>2]=r.nlink,E[n+20>>2]=r.uid,E[n+24>>2]=r.gid,E[n+28>>2]=r.rdev,E[n+32>>2]=0,W=[r.size>>>0,(Q=r.size,+P(Q)>=1?Q>0?(0|z(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[n+40>>2]=W[0],E[n+44>>2]=W[1],E[n+48>>2]=4096,E[n+52>>2]=r.blocks,E[n+56>>2]=r.atime.getTime()/1e3|0,E[n+60>>2]=0,E[n+64>>2]=r.mtime.getTime()/1e3|0,E[n+68>>2]=0,E[n+72>>2]=r.ctime.getTime()/1e3|0,E[n+76>>2]=0,W=[r.ino>>>0,(Q=r.ino,+P(Q)>=1?Q>0?(0|z(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[n+80>>2]=W[0],E[n+84>>2]=W[1],0},doMsync:function(t,e,n,r,i){var o=b.slice(t,t+n);at.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=nt.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),at.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return at.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=at.readlink(t),i=Math.min(n,C(r)),o=w[e+i];return I(r,b,e,n+1),w[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=at.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&at.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=at.getStream(n);return r&&at.close(r),at.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=at.read(t,w,E[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],E[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return st.varargs+=4,E[st.varargs-4>>2]},getStr:function(){return k(st.get())},getStreamFromFD:function(t){void 0===t&&(t=st.get());var e=at.getStream(t);if(!e)throw new at.ErrnoError(8);return e},get64:function(){var t=st.get();return st.get(),t},getZero:function(){st.get()}};function ut(t,e,n){e|=0;var r,i=0,o=0,a=0;if(r=(t|=0)+(n|=0)|0,e&=255,(0|n)>=67){for(;0!=(3&t);)w[t>>0]=e,t=t+1|0;for(a=e|e<<8|e<<16|e<<24,o=(i=-4&r|0)-64|0;(0|t)<=(0|o);)E[t>>2]=a,E[t+4>>2]=a,E[t+8>>2]=a,E[t+12>>2]=a,E[t+16>>2]=a,E[t+20>>2]=a,E[t+24>>2]=a,E[t+28>>2]=a,E[t+32>>2]=a,E[t+36>>2]=a,E[t+40>>2]=a,E[t+44>>2]=a,E[t+48>>2]=a,E[t+52>>2]=a,E[t+56>>2]=a,E[t+60>>2]=a,t=t+64|0;for(;(0|t)<(0|i);)E[t>>2]=a,t=t+4|0}for(;(0|t)<(0|r);)w[t>>0]=e,t=t+1|0;return r-n|0}var ct=0;function lt(t){try{return d.grow(t-_.byteLength+65535>>16),D(d.buffer),1}catch(e){}}var ht={};function ft(){if(!ft.strings){var t={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",_:a||"./this.program"};for(var e in ht)t[e]=ht[e];var n=[];for(var e in t)n.push(e+"="+t[e]);ft.strings=n}return ft.strings}function dt(t){return t%4==0&&(t%100!=0||t%400==0)}function pt(t,e){for(var n=0,r=0;r<=e;n+=t[r++]);return n}var gt=[31,29,31,30,31,30,31,31,30,31,30,31],vt=[31,28,31,30,31,30,31,31,30,31,30,31];function mt(t,e){for(var n=new Date(t.getTime());e>0;){var r=dt(n.getFullYear()),i=n.getMonth(),o=(r?gt:vt)[i];if(!(e>o-n.getDate()))return n.setDate(n.getDate()+e),n;e-=o-n.getDate()+1,n.setDate(1),i<11?n.setMonth(i+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}function yt(t,e){yt.array||(yt.array=[]);var n,r=yt.array;for(r.length=0;n=b[t++];)100===n||102===n?(r.push(T[(e=e+7&-8)>>3]),e+=8):(r.push(E[(e=e+3&-4)>>2]),e+=4);return r}function _t(t,e,n){var r=n>0?n:C(t)+1,i=new Array(r),o=I(t,i,0,i.length);return e&&(i.length=o),i}tt=function(){return performance.now()},at.staticInit();var wt={M:function(t,e){return function(t,e){var n;if(0===t)n=Date.now();else{if(1!==t&&4!==t)return et(28),-1;n=tt()}return E[e>>2]=n/1e3|0,E[e+4>>2]=n%1e3*1e3*1e3|0,0}(t,e)},k:function(t){return Ct(t)},j:function(t,e,n){throw"uncaught_exception"in Mt?Mt.uncaught_exceptions++:Mt.uncaught_exceptions=1,t},q:function(){},U:function(t,e){return et(63),-1},P:function(t,e){st.varargs=e;try{var n=st.getStr();return at.unlink(n),0}catch(r){return void 0!==at&&r instanceof at.ErrnoError||J(r),-r.errno}},R:function(t,e){st.varargs=e;try{return function(t,e,n,r,i,o){var a;o<<=12;var s=!1;if(0!=(16&r)&&t%16384!=0)return-28;if(0!=(32&r)){if(!(a=Ot(16384,e)))return-48;ut(a,0,e),s=!0}else{var u=at.getStream(i);if(!u)return-8;var c=at.mmap(u,b,t,e,o,n,r);a=c.ptr,s=c.allocated}return st.mappings[a]={malloc:a,len:e,allocated:s,fd:i,flags:r,offset:o},a}(st.get(),st.get(),st.get(),st.get(),st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},S:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doStat(at.stat,n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},T:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();return st.doStat(at.stat,n.path,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},L:function(t,e){st.varargs=e;try{return 42}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},y:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD();switch(st.get()){case 0:return(r=st.get())<0?-28:at.open(n.path,n.flags,0,r).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:var r=st.get();return n.flags|=r,0;case 12:return r=st.get(),x[r+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return et(28),-1;default:return-28}}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},K:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doAccess(n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},z:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get(),i=st.get();return at.open(n,r,i).fd}catch(o){return void 0!==at&&o instanceof at.ErrnoError||J(o),-o.errno}},O:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();switch(r){case 21509:case 21505:return n.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var i=st.get();return E[i>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return i=st.get(),at.ioctl(n,r,i);case 21523:case 21524:return n.tty?0:-59;default:J("bad ioctl syscall "+r)}}catch(o){return void 0!==at&&o instanceof at.ErrnoError||J(o),-o.errno}},Q:function(t,e){st.varargs=e;try{return function(t,e){if(-1===t||0===e)return-28;var n=st.mappings[t];if(!n)return 0;if(e===n.len){var r=at.getStream(n.fd);st.doMsync(t,r,e,n.flags,n.offset),at.munmap(r),st.mappings[t]=null,n.allocated&&Dt(n.malloc)}return 0}(st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},m:function(){},w:function(){J()},C:function(t,e,n){var r=yt(e,n);return K[t].apply(null,r)},d:function(t,e){!function(t,e){throw Zt(t,e||1),"longjmp"}(t,e)},E:function(t,e,n){b.set(b.subarray(e,e+n),t)},F:function(t){var e=b.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),lt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},I:function(t,e){var n=ft(),r=0;return n.forEach(function(n,i){var o=e+r;E[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);w[e>>0]=0}(n,o),r+=n.length+1}),0},J:function(t,e){var n=ft();E[t>>2]=n.length;var r=0;return n.forEach(function(t){r+=t.length+1}),E[e>>2]=r,0},l:function(t){!function(t,e){f||(m=!0,r.onExit&&r.onExit(t)),s(t,new Xt(t))}(t)},p:function(t){try{var e=st.getStreamFromFD(t);return at.close(e),0}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),n.errno}},H:function(t,e){try{var n=st.getStreamFromFD(t),r=n.tty?2:at.isDir(n.mode)?3:at.isLink(n.mode)?7:4;return w[e>>0]=r,0}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),i.errno}},N:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doReadv(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||J(a),a.errno}},D:function(t,e,n,r,i){try{var o=st.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(at.llseek(o,a,r),W=[o.position>>>0,(Q=o.position,+P(Q)>=1?Q>0?(0|z(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[i>>2]=W[0],E[i+4>>2]=W[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==at&&s instanceof at.ErrnoError||J(s),s.errno}},x:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doWritev(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||J(a),a.errno}},a:function(){return 0|p},X:function(t){var e=Date.now();return E[t>>2]=e/1e3|0,E[t+4>>2]=e%1e3*1e3|0,0},Y:function(t){var e=Qt();try{return Vt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},V:function(t,e){var n=Qt();try{return Ht(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},v:function(t){var e=Qt();try{return zt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},f:function(t,e){var n=Qt();try{return jt(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},e:function t(e,n,r){var i=Qt();try{return Yt(e,n,r)}catch(t){if(Wt(i),t!==t+0&&"longjmp"!==t)throw t;Zt(1,0)}},g:function(t,e,n,r){var i=Qt();try{return Bt(t,e,n,r)}catch(o){if(Wt(i),o!==o+0&&"longjmp"!==o)throw o;Zt(1,0)}},n:function(t,e,n,r,i){var o=Qt();try{return Gt(t,e,n,r,i)}catch(a){if(Wt(o),a!==a+0&&"longjmp"!==a)throw a;Zt(1,0)}},W:function(t,e,n,r,i,o,a){var s=Qt();try{return Jt(t,e,n,r,i,o,a)}catch(u){if(Wt(s),u!==u+0&&"longjmp"!==u)throw u;Zt(1,0)}},s:function(t){var e=Qt();try{Rt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},h:function(t,e){var n=Qt();try{Lt(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},o:function(t,e,n){var r=Qt();try{Ut(t,e,n)}catch(i){if(Wt(r),i!==i+0&&"longjmp"!==i)throw i;Zt(1,0)}},u:function(t,e,n,r){var i=Qt();try{Pt(t,e,n,r)}catch(o){if(Wt(i),o!==o+0&&"longjmp"!==o)throw o;Zt(1,0)}},t:function(t,e,n,r,i){var o=Qt();try{Ft(t,e,n,r,i)}catch(a){if(Wt(o),a!==a+0&&"longjmp"!==a)throw a;Zt(1,0)}},r:function(t,e,n,r,i,o){var a=Qt();try{qt(t,e,n,r,i,o)}catch(s){if(Wt(a),s!==s+0&&"longjmp"!==s)throw s;Zt(1,0)}},memory:d,i:function t(e,n,r,i){n|=0,r|=0,i|=0;var o=0;for(E[(e|=0)>>2]=ct=ct+1|0;(0|o)<(0|i);){if(0==(0|E[r+(o<<3)>>2]))return E[r+(o<<3)>>2]=ct,E[r+(4+(o<<3))>>2]=n,E[r+(8+(o<<3))>>2]=0,g(0|i),0|r;o=o+1|0}return r=0|t(0|e,0|n,0|(r=0|Nt(0|r,8*(1+(i=2*i|0)|0)|0)),0|i),g(0|i),0|r},b:function(t){g(0|t)},G:function(t,e,n,r){return function(t,e,n,r){var i=E[r+40>>2],o={tm_sec:E[r>>2],tm_min:E[r+4>>2],tm_hour:E[r+8>>2],tm_mday:E[r+12>>2],tm_mon:E[r+16>>2],tm_year:E[r+20>>2],tm_wday:E[r+24>>2],tm_yday:E[r+28>>2],tm_isdst:E[r+32>>2],tm_gmtoff:E[r+36>>2],tm_zone:i?k(i):""},a=k(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)a=a.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(t,e,n){for(var r="number"==typeof t?t.toString():t||"";r.length0?1:0}var r;return 0===(r=n(t.getFullYear()-e.getFullYear()))&&0===(r=n(t.getMonth()-e.getMonth()))&&(r=n(t.getDate()-e.getDate())),r}function p(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function g(t){var e=mt(new Date(t.tm_year+1900,0,1),t.tm_yday),n=new Date(e.getFullYear(),0,4),r=new Date(e.getFullYear()+1,0,4),i=p(n),o=p(r);return d(i,e)<=0?d(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var v={"%a":function(t){return c[t.tm_wday].substring(0,3)},"%A":function(t){return c[t.tm_wday]},"%b":function(t){return l[t.tm_mon].substring(0,3)},"%B":function(t){return l[t.tm_mon]},"%C":function(t){return f((t.tm_year+1900)/100|0,2)},"%d":function(t){return f(t.tm_mday,2)},"%e":function(t){return h(t.tm_mday,2," ")},"%g":function(t){return g(t).toString().substring(2)},"%G":function(t){return g(t)},"%H":function(t){return f(t.tm_hour,2)},"%I":function(t){var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),f(e,2)},"%j":function(t){return f(t.tm_mday+pt(dt(t.tm_year+1900)?gt:vt,t.tm_mon-1),3)},"%m":function(t){return f(t.tm_mon+1,2)},"%M":function(t){return f(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return f(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var e=new Date(t.tm_year+1900,0,1),n=0===e.getDay()?e:mt(e,7-e.getDay()),r=new Date(t.tm_year+1900,t.tm_mon,t.tm_mday);if(d(n,r)<0){var i=pt(dt(r.getFullYear())?gt:vt,r.getMonth()-1)-31,o=31-n.getDate()+i+r.getDate();return f(Math.ceil(o/7),2)}return 0===d(n,e)?"01":"00"},"%V":function(t){var e,n=new Date(t.tm_year+1900,0,4),r=new Date(t.tm_year+1901,0,4),i=p(n),o=p(r),a=mt(new Date(t.tm_year+1900,0,1),t.tm_yday);return d(a,i)<0?"53":d(o,a)<=0?"01":(e=i.getFullYear()=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(n?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var u in v)a.indexOf(u)>=0&&(a=a.replace(new RegExp(u,"g"),v[u](o)));var m=_t(a,!1);return m.length>e?0:(function(t,e){w.set(t,e)}(m,t),m.length-1)}(t,e,n,r)},table:v,c:function(t,e,n){t|=0,e|=0,n|=0;for(var r=0,i=0;(0|r)<(0|n)&&0!=(0|(i=0|E[e+(r<<3)>>2]));){if((0|i)==(0|t))return 0|E[e+(4+(r<<3))>>2];r=r+1|0}return 0},A:function(t){var e=Date.now()/1e3|0;return t&&(E[t>>2]=e),e},B:function(t){return 0!==t&&ut(t,0,16),0}},bt=function(){var t={a:wt};function e(t,e){r.asm=t.exports,G()}function n(t){e(t.instance)}function i(e){return(h||"function"!=typeof fetch?new Promise(function(t,e){t($())}):fetch(X,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+X+"'";return t.arrayBuffer()}).catch(function(){return $()})).then(function(e){return WebAssembly.instantiate(e,t)}).then(e,function(t){l("failed to asynchronously prepare wasm: "+t),J(t)})}if(B(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return l("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(h||"function"!=typeof WebAssembly.instantiateStreaming||V(X)||"function"!=typeof fetch)return i(n);fetch(X,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,t).then(n,function(t){l("wasm streaming compile failed: "+t),l("falling back to ArrayBuffer instantiation"),i(n)})})}(),{}}();r.asm=bt;var xt,Et=r.___wasm_call_ctors=function(){return(Et=r.___wasm_call_ctors=r.asm.Z).apply(null,arguments)},Tt=r._emscripten_bind_VoidPtr___destroy___0=function(){return(Tt=r._emscripten_bind_VoidPtr___destroy___0=r.asm._).apply(null,arguments)},At=r._emscripten_bind_Main_layout_3=function(){return(At=r._emscripten_bind_Main_layout_3=r.asm.$).apply(null,arguments)},St=r._emscripten_bind_Main_lastError_0=function(){return(St=r._emscripten_bind_Main_lastError_0=r.asm.aa).apply(null,arguments)},kt=r._emscripten_bind_Main_createFile_2=function(){return(kt=r._emscripten_bind_Main_createFile_2=r.asm.ba).apply(null,arguments)},It=r._emscripten_bind_Main___destroy___0=function(){return(It=r._emscripten_bind_Main___destroy___0=r.asm.ca).apply(null,arguments)},Ct=r._malloc=function(){return(Ct=r._malloc=r.asm.da).apply(null,arguments)},Dt=r._free=function(){return(Dt=r._free=r.asm.ea).apply(null,arguments)},Nt=r._realloc=function(){return(Nt=r._realloc=r.asm.fa).apply(null,arguments)},Zt=(r.___errno_location=function(){return(r.___errno_location=r.asm.ga).apply(null,arguments)},r._setThrew=function(){return(Zt=r._setThrew=r.asm.ha).apply(null,arguments)}),Mt=r.__ZSt18uncaught_exceptionv=function(){return(Mt=r.__ZSt18uncaught_exceptionv=r.asm.ia).apply(null,arguments)},Ot=r._memalign=function(){return(Ot=r._memalign=r.asm.ja).apply(null,arguments)},Rt=r.dynCall_v=function(){return(Rt=r.dynCall_v=r.asm.ka).apply(null,arguments)},Lt=r.dynCall_vi=function(){return(Lt=r.dynCall_vi=r.asm.la).apply(null,arguments)},Ut=r.dynCall_vii=function(){return(Ut=r.dynCall_vii=r.asm.ma).apply(null,arguments)},Pt=r.dynCall_viii=function(){return(Pt=r.dynCall_viii=r.asm.na).apply(null,arguments)},Ft=r.dynCall_viiii=function(){return(Ft=r.dynCall_viiii=r.asm.oa).apply(null,arguments)},qt=r.dynCall_viiiii=function(){return(qt=r.dynCall_viiiii=r.asm.pa).apply(null,arguments)},zt=r.dynCall_i=function(){return(zt=r.dynCall_i=r.asm.qa).apply(null,arguments)},jt=r.dynCall_ii=function(){return(jt=r.dynCall_ii=r.asm.ra).apply(null,arguments)},Yt=r.dynCall_iii=function(){return(Yt=r.dynCall_iii=r.asm.sa).apply(null,arguments)},Bt=r.dynCall_iiii=function(){return(Bt=r.dynCall_iiii=r.asm.ta).apply(null,arguments)},Gt=r.dynCall_iiiii=function(){return(Gt=r.dynCall_iiiii=r.asm.ua).apply(null,arguments)},Jt=r.dynCall_iiiiiii=function(){return(Jt=r.dynCall_iiiiiii=r.asm.va).apply(null,arguments)},Vt=r.dynCall_d=function(){return(Vt=r.dynCall_d=r.asm.wa).apply(null,arguments)},Ht=r.dynCall_di=function(){return(Ht=r.dynCall_di=r.asm.xa).apply(null,arguments)},Qt=r.stackSave=function(){return(Qt=r.stackSave=r.asm.ya).apply(null,arguments)},Wt=(r.stackAlloc=function(){return(r.stackAlloc=r.asm.za).apply(null,arguments)},r.stackRestore=function(){return(Wt=r.stackRestore=r.asm.Aa).apply(null,arguments)});function Xt(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function $t(t){function e(){xt||(xt=!0,m||(U=!0,r.noFSInit||at.init.initialized||at.init(),it.init(),Z(O),at.ignorePermissions=!1,Z(R),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),L.unshift(t);var t;Z(L)}()))}j>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),M.unshift(t);var t;Z(M)}(),j>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),e()},1)):e()))}if(r.asm=bt,r.then=function(t){if(xt)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},Y=function t(){xt||$t(),xt||(Y=t)},r.run=$t,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function Kt(){}function te(t){return(t||Kt).__cache__}function ee(t,e){var n=te(e),r=n[t];return r||((r=Object.create((e||Kt).prototype)).ptr=t,n[t]=r)}f=!0,$t(),(Kt.prototype=Object.create(Kt.prototype)).constructor=Kt,Kt.prototype.__class__=Kt,Kt.__cache__={},r.WrapperObject=Kt,r.getCache=te,r.wrapPointer=ee,r.castObject=function(t,e){return ee(t.ptr,e)},r.NULL=ee(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete te(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var ne={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ne.needed){for(var t=0;t=ne.size?(y(i>0),ne.needed+=i,n=r._malloc(i),ne.temps.push(n)):(n=ne.buffer+ne.pos,ne.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i\n\n'}}function v(t,e){var n,r=p({images:[],files:[]},e);(function(){for(var t=0,e=0,n=arguments.length;e>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(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(t))?new A(e[1],e[2],e[3],1):(e=f.exec(t))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?x(e[1],e[2],e[3],e[4]):(e=p.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?C(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?C(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?b(m[t]):"transparent"===t?new A(NaN,NaN,NaN,0):null}function b(t){return new A(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new A(t,e,n,r)}function E(t){return t instanceof i||(t=w(t)),t?new A((t=t.rgb()).r,t.g,t.b,t.opacity):new A}function T(t,e,n,r){return 1===arguments.length?E(t):new A(t,e,n,null==r?1:r)}function A(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(){return"#"+I(this.r)+I(this.g)+I(this.b)}function k(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function I(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function C(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Z(t,e,n,r)}function D(t){if(t instanceof Z)return new Z(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=w(t)),!t)return new Z;if(t instanceof Z)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-o,c=(a+o)/2;return u?(s=e===a?(n-r)/u+6*(n0&&c<1?0:s,new Z(s,u,c,t.opacity)}function N(t,e,n,r){return 1===arguments.length?D(t):new Z(t,e,n,null==r?1:r)}function Z(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function M(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}(0,r.Z)(i,w,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return D(this).formatHsl()},formatRgb:_,toString:_}),(0,r.Z)(A,T,(0,r.l)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new A(this.r*t,this.g*t,this.b*t,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:S,formatHex:S,formatRgb:k,toString:k})),(0,r.Z)(Z,N,(0,r.l)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new Z(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new Z(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new A(M(t>=240?t-240:t+120,i,r),M(t,i,r),M(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},80052:function(t,e,n){"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.d(e,{Z:function(){return r},l:function(){return i}})},64641:function(t,e){"use strict";var n={value:function(){}};function r(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function a(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),o=0;o1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{Z:function(){return r}})},93116:function(t,e,n){"use strict";n.d(e,{Z:function(){return i},v:function(){return o}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.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}},25047:function(t,e,n){"use strict";n.r(e),n.d(e,{formatDefaultLocale:function(){return r.ZP},format:function(){return r.WU},formatPrefix:function(){return r.jH},formatLocale:function(){return i.Z},formatSpecifier:function(){return o.Z},FormatSpecifier:function(){return o.v},precisionFixed:function(){return a.Z},precisionPrefix:function(){return s.Z},precisionRound:function(){return u.Z}});var r=n(3712),i=n(70592),o=n(93116),a=n(22233),s=n(65636),u=n(3218)},70592:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r,i=n(98477),o=n(93116),a=n(25169);function s(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var u={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var i=n[0],o=n[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return s===u?i:s>u?i+new Array(s-u+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+(0,a.Z)(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function c(t){return t}var l=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function f(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?c:(e=l.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",f=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(l.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",v=void 0===t.minus?"-":t.minus+"",m=void 0===t.nan?"NaN":t.nan+"";function y(t){var e=(t=(0,o.Z)(t)).fill,n=t.align,i=t.sign,c=t.symbol,l=t.zero,y=t.width,_=t.comma,w=t.precision,b=t.trim,x=t.type;"n"===x?(_=!0,x="g"):u[x]||(void 0===w&&(w=12),b=!0,x="g"),(l||"0"===e&&"="===n)&&(l=!0,e="0",n="=");var E="$"===c?s:"#"===c&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",T="$"===c?f:/[%p]/.test(x)?g:"",A=u[x],S=/[defgprs%]/.test(x);function k(t){var o,s,u,c=E,f=T;if("c"===x)f=A(t)+f,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?m:A(Math.abs(t),w),b&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),g&&0==+t&&"+"!==i&&(g=!1),c=(g?"("===i?i:v:"-"===i||"("===i?"":i)+c,f=("s"===x?h[8+r/3]:"")+f+(g&&"("===i?")":""),S)for(o=-1,s=t.length;++o(u=t.charCodeAt(o))||u>57){f=(46===u?d+t.slice(o+1):t.slice(o))+f,t=t.slice(0,o);break}}_&&!l&&(t=a(t,1/0));var k=c.length+t.length+f.length,I=k>1)+c+t+f+I.slice(k);break;default:t=I+c+t+f}return p(t)}return w=void 0===w?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),k.toString=function(){return t+""},k}return{format:y,formatPrefix:function(t,e){var n=y(((t=(0,o.Z)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((0,i.Z)(e)/3))),a=Math.pow(10,-r),s=h[8+r/3];return function(t){return n(a*t)+s}}}}},22233:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t){return Math.max(0,-(0,r.Z)(Math.abs(t)))}},65636:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(e)/3)))-(0,r.Z)(Math.abs(t)))}},3218:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,r.Z)(e)-(0,r.Z)(t))+1}},73180:function(t,e,n){!function(t,e,n,r,i,o,a,s,u,c){"use strict";function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0,r=e.select(this),i=t.attributes,o=r.node().attributes;if(o)for(var a=0;a0?i.children[0].text:"")}null==t.key&&(o&&("ellipse"!=n&&"polygon"!=n||(n="path")),t.key=n+"-"+e)}function v(t,e){t.id=(e?e.id+".":"")+t.key}function m(t){c[t.id]=t}function y(t,e){o&&t.id in l&&("polygon"!=e.tag&&"ellipse"!=e.tag&&"path"!=e.tag||e.tag==t.tag&&"polygon"!=t.tag||("path"!=e.tag&&(t.alternativeOld=C(e,t)),"path"!=t.tag&&(t.alternativeNew=C(t,e))))}function _(t,e){if(i&&e&&("path"==e.tag||t.alternativeOld&&"path"==t.alternativeOld.tag)){var n=(t.alternativeNew||t).attributes.d;if(t.alternativeOld)var r=g(t.alternativeOld);else r=g(e);(t.alternativeOld||(t.alternativeOld={})).points=function(t,e,n,r){for(var i=t,o=i.cloneNode(),a=i.getTotalLength(),s=(o.setAttribute("d",e),o).getTotalLength(),u=[0],c=0,l=r?n:n/Math.max(a,s);(c+=l)<1;)u.push(c);return u.push(1),u.map(function(t){var e=i.getPointAtLength(t*a),n=o.getPointAtLength(t*s);return[[e.x,e.y],[n.x,n.y]]})}(r,n,a,s)}}function w(t){var e=arguments.length>2?arguments[2]:void 0;p(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),v(t,e);var n=l[t.id];m(t),y(t,n),_(t,n);var r={};t.children.forEach(function(e){var n=e.tag;"ellipse"!=n&&"polygon"!=n||(n="path"),null==r[n]&&(r[n]=0),w(e,r[n]++,t)})}function b(t){(function(t){if(u&&t.parent&&"node"==t.parent.attributes.class&&"title"==t.tag){if(t.children.length>0)var e=t.children[0].text;else e="";h[e]=t.parent}})(t),function(t){var e=t.tag;if(u&&!l[t.id]&&t.parent&&k(t)&&("path"==e||"polygon"==e)){if("polygon"==e){var n=t.parent.children.find(function(t){return"path"==t.tag});n&&(t.totalLength=n.totalLength)}var r=function(t){return function(t){return"edge"==t.parent.attributes.class?t.parent:t.parent.parent.parent}(t).children.find(function(t){return"title"==t.tag})}(t).children[0],i=r.text.split("->");2!=i.length&&(i=r.text.split("--"));var o=i[0],a=h[o],s=f[o];if(s){if((p=a.children.findIndex(function(t,e){return"g"==t.tag}))>=0){var c=a.children[p].children.findIndex(function(t,e){return"a"==t.tag});a=a.children[p].children[c]}(p=s.children.findIndex(function(t,e){return"g"==t.tag}))>=0&&(c=s.children[p].children.findIndex(function(t,e){return"a"==t.tag}),s=s.children[p].children[c]);for(var d=a.children,p=0;p0&&this._queue.shift().call(this)}function M(t,e,n,r){var i=[t*n-(e=-e)*(r=-r),t*r+e*n];return[t=i[0],e=-(e=i[1])]}function O(t,e,n,r,i,o,a){var s=d(P.call(this,o));t.data([s]),_.call(t.node(),s),R(t,e,n,r,i,o,a)}function R(t,e,n,r,i,o,a){var s=a.shortening||0,u=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],l=r-e,h=i-n,f=Math.sqrt(l*l+h*h);if(0==f)var d=1,p=0;else d=l/f,p=h/f;if(r=e+(f-s-10-.1)*d,i=n+(f-s-10-.1)*p,o.URL||o.tooltip)var g=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),v=g.selectWithoutDataPropagation("path"),m=g.selectWithoutDataPropagation("polygon");else v=t.selectWithoutDataPropagation("path"),m=t.selectWithoutDataPropagation("polygon");var y=c.path();y.moveTo(e,n),y.lineTo(r,i),v.attr("d",y),r=e+(f-s-10)*d,i=n+(f-s-10)*p;for(var _=0;_ b ["+n+"]}","svg","dot"),s=(new window.DOMParser).parseFromString(a,"image/svg+xml");return e.select(document.createDocumentFragment()).append(function(){return s.documentElement}).select(".edge")}function F(t,e,n,r,i,o){var a=d(Y.call(this,r,i));return t.data([a]),_.call(t.node(),a),q(t,e,n,i),this}function q(t,n,r,i,o){if(i.URL||i.tooltip)var a=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else a=t;var s=a.selectAll("ellipse,polygon,path,polyline"),u=t.selectWithoutDataPropagation("text");if(0!=s.size()){var c=s.node().getBBox();c.cx=c.x+c.width/2,c.cy=c.y+c.height/2}else 0!=u.size()&&(c={x:+u.attr("x"),y:+u.attr("y"),width:0,height:0,cx:+u.attr("x"),cy:+u.attr("y")});return s.each(function(t,i){var o=e.select(this);if(o.attr("cx"))o.attr("cx",b(n)).attr("cy",b(r));else if(o.attr("points")){var a=o.attr("points").trim();o.attr("points",function(t,e,n){var r,i=(r=t.split(" ")).map(function(t){return t.split(",")});return i=r.map(function(t){return[b(+e+ +t.split(",")[0]),b(+n+ +t.split(",")[1])]}),(r=i.map(function(t){return t.join(",")})).join(" ")}(a,n-c.cx,r-c.cy))}else{var s=o.attr("d");o.attr("d",function(t,e,n){(i=t.split(/[A-Z ]/)).shift();var r=t.split(/[^[A-Z ]+/),i=(i.map(function(t){return t.split(",")}),i.map(function(t){return[b(+e+ +t.split(",")[0]),b(+n+ +t.split(",")[1])]}).map(function(t){return t.join(",")}));return r.reduce(function(t,e,n){return t.concat(e,i[n])},[]).join("")}(s,n-c.cx,r-c.cy))}}),0!=u.size()&&u.attr("x",b(+u.attr("x")+n-c.cx)).attr("y",b(+u.attr("y")+r-c.cy)),this}function z(){if(!this._drawnNode)return this;var t=this._drawnNode.g;return t.empty()||t.remove(),this._drawnNode=null,this}function j(){return this._drawnNode?this._drawnNode.g:e.select(null)}function Y(t,n){for(var r="",i=0,o=Object.keys(n);i2")(a)+" ",i+=s+" ".repeat(o-s.length),i+=u.format(" >5")(t-n)+" ","initEnd"!=s&&(i+=u.format(" >5")(t-r.start[e])),"dataProcessEnd"==s&&(i+=" prepare "+u.format(" >5")(t-r.layoutEnd[e])),"renderEnd"==s&&c._transition&&(i+=" transition start margin "+u.format(" >5")(c._transition.delay()-(t-r.renderStart[e])),l=c._transition.delay(),f=c._transition.duration()),"transitionStart"==s){var h=t-r.renderStart[e];i+=" transition delay "+u.format(" >5")(t-r.renderStart[e]),i+=" expected "+u.format(" >5")(l),i+=" diff "+u.format(" >5")(h-l)}if("transitionEnd"==s){var d=t-r.transitionStart[e];i+=" transition duration "+u.format(" >5")(d),i+=" expected "+u.format(" >5")(f),i+=" diff "+u.format(" >5")(d-f)}console.log(i),n=t}:null)},s=0;s5&&void 0!==arguments[5]?arguments[5]:{};if((o=Object.assign({},o)).style&&o.style.includes("invis"))var s=e.select(null);else{var u=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),c=d(P.call(this,o));s=u.append("g").data([c]),_.call(s.node(),c),O.call(this,s,t,n,r,i,o,a)}return this._drawnEdge={g:s,x1:t,y1:n,x2:r,y2:i,attributes:o},this},updateDrawnEdge:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var a=this._drawnEdge.g;return i=Object.assign(this._drawnEdge.attributes,i),this._drawnEdge.x1=t,this._drawnEdge.y1=e,this._drawnEdge.x2=n,this._drawnEdge.y2=r,!a.empty()||i.style&&i.style.includes("invis")||(a=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=a),a.empty()||O.call(this,a,t,e,n,r,i,o),this},moveDrawnEdgeEndPoint:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var r=this._drawnEdge.g,i=this._drawnEdge.x1,o=this._drawnEdge.y1,a=this._drawnEdge.attributes;return this._drawnEdge.x2=t,this._drawnEdge.y2=e,R(r,i,o,t,e,a,n),this},insertDrawnEdge:function(t){if(!this._drawnEdge)throw Error("No edge has been drawn");var e=this._drawnEdge.g;if(e.empty())return this;e.selectWithoutDataPropagation("title").text(t);var n=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),r=n.datum(),i=this._extractData(e,r.children.length,n.datum());return r.children.push(i),m(e,i),this._drawnEdge=null,this},removeDrawnEdge:L},"removeDrawnEdge",L),l(V,"drawnEdgeSelection",U),l(V,"drawnEdgeSelection",U),l(V,"drawNode",function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((i=Object.assign({},i)).style&&i.style.includes("invis"))var a=e.select(null);else{var s=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),u=d(Y.call(this,r,i));a=s.append("g").data([u]),_.call(a.node(),u),F.call(this,a,t,n,r,i,o)}return this._drawnNode={g:a,nodeId:r,x:t,y:n,attributes:i},this}),l(V,"updateDrawnNode",function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var o=this._drawnNode.g;return null==n&&(n=this._drawnNode.nodeId),r=Object.assign(this._drawnNode.attributes,r),this._drawnNode.nodeId=n,this._drawnNode.x=t,this._drawnNode.y=e,!o.empty()||r.style&&r.style.includes("invis")||(o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=o),o.empty()||F.call(this,o,t,e,n,r,i),this}),l(V,"moveDrawnNode",function(t,e){if(!this._drawnNode)throw Error("No node has been drawn");var n=this._drawnNode.g,r=this._drawnNode.attributes;return this._drawnNode.x=t,this._drawnNode.y=e,n.empty()||q(n,t,e,r),this}),l(V,"insertDrawnNode",function(t){if(!this._drawnNode)throw Error("No node has been drawn");null==t&&(t=this._drawnNode.nodeId);var e=this._drawnNode.g;if(e.empty())return this;var n=this._drawnNode.attributes;if(e.selectWithoutDataPropagation("title").text(t),n.URL||n.tooltip)var r=e.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),i=(r.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),r.selectWithoutDataPropagation("text"));else e.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),i=e.selectWithoutDataPropagation("text");i.text(n.label||t);var o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),a=o.datum(),s=this._extractData(e,a.children.length,o.datum());return a.children.push(s),m(e,s),this._drawnNode=null,this}),l(V,"removeDrawnNode",z),l(V,"removeDrawnNode",z),l(V,"drawnNodeSelection",j),l(V,"drawnNodeSelection",j),V),e.selection.prototype.graphviz=function(t){var e=this.node().__graphviz__;return e?(e.options(t),i.timeout((function(){e._dispatch.call("initEnd",this)}).bind(this),0)):e=new H(this,t),e},e.selection.prototype.selectWithoutDataPropagation=function(t){return e.select(this.size()>0?this.node().querySelector(t):null)},t.graphviz=Q,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(24967),n(58552),n(82159),n(14788),n(30853),n(59320),n(95914),n(25047),n(16809))},60053:function(t,e,n){"use strict";n.d(e,{Z:function(){return o},M:function(){return a}});var r=n(3031),i=n(61317);function o(t,e){return((0,i.v)(e)?i.Z:a)(t,e)}function a(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=new Array(o),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1];return r((n-i/e)*e,i>0?t[i-1]:2*o-a,o,a,i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):(0,r.Z)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?i(t,n):(0,r.Z)(isNaN(t)?e:t)}},94065:function(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{Z:function(){return r}})},28917:function(t,e,n){"use strict";function r(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}n.d(e,{Z:function(){return r}})},30853:function(t,e,n){"use strict";n.r(e),n.d(e,{interpolate:function(){return r.Z},interpolateArray:function(){return i.Z},interpolateBasis:function(){return o.Z},interpolateBasisClosed:function(){return a.Z},interpolateCubehelix:function(){return nt},interpolateCubehelixLong:function(){return rt},interpolateDate:function(){return s.Z},interpolateDiscrete:function(){return u},interpolateHcl:function(){return j},interpolateHclLong:function(){return Y},interpolateHsl:function(){return b},interpolateHslLong:function(){return x},interpolateHue:function(){return l},interpolateLab:function(){return q},interpolateNumber:function(){return h.Z},interpolateNumberArray:function(){return f.Z},interpolateObject:function(){return d.Z},interpolateRgb:function(){return y.ZP},interpolateRgbBasis:function(){return y.hD},interpolateRgbBasisClosed:function(){return y.YD},interpolateRound:function(){return p.Z},interpolateString:function(){return g.Z},interpolateTransformCss:function(){return v.Y},interpolateTransformSvg:function(){return v.w},interpolateZoom:function(){return m.Z},piecewise:function(){return it},quantize:function(){return ot}});var r=n(3031),i=n(60053),o=n(39588),a=n(17280),s=n(28917);function u(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var c=n(22656);function l(t,e){var n=(0,c.wx)(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}var h=n(75306),f=n(61317),d=n(70901),p=n(47071),g=n(51882),v=n(44090),m=n(13764),y=n(38740),_=n(12314);function w(t){return function(e,n){var r=t((e=(0,_.Ym)(e)).h,(n=(0,_.Ym)(n)).h),i=(0,c.ZP)(e.s,n.s),o=(0,c.ZP)(e.l,n.l),a=(0,c.ZP)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}var b=w(c.wx),x=w(c.ZP),E=n(80052),T=Math.PI/180,A=180/Math.PI,S=4/29,k=6/29,I=3*k*k;function C(t){if(t instanceof N)return new N(t.l,t.a,t.b,t.opacity);if(t instanceof P)return F(t);t instanceof _.Ss||(t=(0,_.SU)(t));var e,n,r=R(t.r),i=R(t.g),o=R(t.b),a=Z((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?e=n=a:(e=Z((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Z((.0139322*r+.0971045*i+.7141733*o)/.82521)),new N(116*a-16,500*(e-a),200*(a-n),t.opacity)}function D(t,e,n,r){return 1===arguments.length?C(t):new N(t,e,n,null==r?1:r)}function N(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Z(t){return t>.008856451679035631?Math.pow(t,1/3):t/I+S}function M(t){return t>k?t*t*t:I*(t-S)}function O(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function R(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function L(t){if(t instanceof P)return new P(t.h,t.c,t.l,t.opacity);if(t instanceof N||(t=C(t)),0===t.a&&0===t.b)return new P(NaN,0u&&(s=e.slice(u,s),l[c]?l[c]+=s:l[++c]=s),(n=n[0])===(a=a[0])?l[c]?l[c]+=a:l[++c]=a:(l[++c]=null,h.push({i:c,x:(0,r.Z)(n,a)})),u=o.lastIndex;return u180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:(0,s.Z)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:(0,s.Z)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:(0,s.Z)(t,n)},{i:u-2,x:(0,s.Z)(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++n1e-6)if(Math.abs(h*u-c*l)>1e-6&&o){var d=r-a,p=i-s,g=u*u+c*c,v=d*d+p*p,m=Math.sqrt(g),y=Math.sqrt(f),_=o*Math.tan((n-Math.acos((g+f-v)/(2*m*y)))/2),w=_/y,b=_/m;Math.abs(w-1)>1e-6&&(this._+="L"+(t+w*l)+","+(e+w*h)),this._+="A"+o+","+o+",0,0,"+ +(h*d>l*p)+","+(this._x1=t+b*u)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,o,a,s,u){t=+t,e=+e,u=!!u;var c=(o=+o)*Math.cos(a),l=o*Math.sin(a),h=t+c,f=e+l,d=1^u,p=u?a-s:s-a;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+h+","+f:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+h+","+f),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+d+","+(t-c)+","+(e-l)+"A"+o+","+o+",0,1,"+d+","+(this._x1=h)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+d+","+(this._x1=t+o*Math.cos(s))+","+(this._y1=e+o*Math.sin(s))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.Z=a},32436:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(26669),i=n(71867);function o(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.P&&e.documentElement.namespaceURI===i.P?e.createElement(t):e.createElementNS(n,t)}}function a(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function s(t){var e=(0,r.Z)(t);return(e.local?a:o)(e)}},24967:function(t,e,n){"use strict";n.r(e),n.d(e,{clientPoint:function(){return d.Z},create:function(){return o},creator:function(){return r.Z},customEvent:function(){return E._H},event:function(){return E.B},local:function(){return s},matcher:function(){return c.Z},mouse:function(){return l.Z},namespace:function(){return h.Z},namespaces:function(){return f.Z},select:function(){return i.Z},selectAll:function(){return g},selection:function(){return p.ZP},selector:function(){return v.Z},selectorAll:function(){return m.Z},style:function(){return y.S},touch:function(){return _.Z},touches:function(){return b},window:function(){return x.Z}});var r=n(32436),i=n(41036);function o(t){return(0,i.Z)((0,r.Z)(t).call(document.documentElement))}var a=0;function s(){return new u}function u(){this._="@"+(++a).toString(36)}u.prototype=s.prototype={constructor:u,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var c=n(54382),l=n(38337),h=n(26669),f=n(71867),d=n(54762),p=n(42710);function g(t){return"string"==typeof t?new p.Y1([document.querySelectorAll(t)],[document.documentElement]):new p.Y1([null==t?[]:t],p.Jz)}var v=n(69309),m=n(85502),y=n(97717),_=n(45161),w=n(72732);function b(t,e){null==e&&(e=(0,w.Z)().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.Z.hasOwnProperty(e)?{space:r.Z[e],local:t}:t}},71867:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});var r="http://www.w3.org/1999/xhtml";e.Z={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},54762:function(t,e,n){"use strict";function r(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}n.d(e,{Z:function(){return r}})},41036:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(42710);function i(t){return"string"==typeof t?new r.Y1([[document.querySelector(t)]],[document.documentElement]):new r.Y1([[t]],r.Jz)}},42710:function(t,e,n){"use strict";n.d(e,{Y1:function(){return Q},ZP:function(){return X},Jz:function(){return H}});var r=n(69309),i=n(85502),o=n(54382);function a(t){return new Array(t.length)}function s(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function u(t,e,n,r,i,o){for(var a,u=0,c=e.length,l=o.length;ue?1:t>=e?0:NaN}s.prototype={constructor:s,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var h=n(26669);function f(t){return function(){this.removeAttribute(t)}}function d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function p(t,e){return function(){this.setAttribute(t,e)}}function g(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function v(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function m(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var y=n(97717);function _(t){return function(){delete this[t]}}function w(t,e){return function(){this[t]=e}}function b(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function x(t){return t.trim().split(/^|\s+/)}function E(t){return t.classList||new T(t)}function T(t){this._node=t,this._names=x(t.getAttribute("class")||"")}function A(t,e){for(var n=E(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var P=n(32436);function F(){return null}function q(){var t=this.parentNode;t&&t.removeChild(this)}function z(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function j(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var Y=n(92711),B=n(11130);function G(t,e,n){var r=(0,B.Z)(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function J(t,e){return function(){return G(this,t,e)}}function V(t,e){return function(){return G(this,t,e.apply(this,arguments))}}var H=[null];function Q(t,e){this._groups=t,this._parents=e}function W(){return new Q([[document.documentElement]],H)}Q.prototype=W.prototype={constructor:Q,select:function(t){"function"!=typeof t&&(t=(0,r.Z)(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o=E&&(E=x+1);!(b=_[E])&&++E=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=l);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?_:"function"==typeof e?b:w)(t,e)):this.node()[t]},classed:function(t,e){var n=x(t+"");if(arguments.length<2){for(var r=E(this.node()),i=-1,o=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function u(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r1?this.each((null==e?i:"function"==typeof e?a:o)(t,e,null==n?"":n)):u(this.node(),t)}function u(t,e){return t.style.getPropertyValue(e)||(0,r.Z)(t).getComputedStyle(t,null).getPropertyValue(e)}},69309:function(t,e,n){"use strict";function r(){}function i(t){return null==t?r:function(){return this.querySelector(t)}}n.d(e,{Z:function(){return i}})},85502:function(t,e,n){"use strict";function r(){return[]}function i(t){return null==t?r:function(){return this.querySelectorAll(t)}}n.d(e,{Z:function(){return i}})},72732:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(92711);function i(){for(var t,e=r.B;t=e.sourceEvent;)e=t;return e}},45161:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(72732),i=n(54762);function o(t,e,n){arguments.length<3&&(n=e,e=(0,r.Z)().changedTouches);for(var o,a=0,s=e?e.length:0;a=0&&e._call.call(null,t),e=e._next;--o}function y(){c=(u=h.now())+l,o=a=0;try{m()}finally{o=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,w(o)}(),c=0}}function _(){var t=h.now(),e=t-u;e>1e3&&(l-=e,u=t)}function w(t){o||(a&&(a=clearTimeout(a)),t-c>24?(t<1/0&&(a=setTimeout(y,t-h.now()-l)),s&&(s=clearInterval(s))):(s||(u=h.now(),s=setInterval(_,1e3)),o=1,f(y)))}g.prototype=v.prototype={constructor:g,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},82159:function(t,e,n){"use strict";n.r(e),n.d(e,{active:function(){return it},interrupt:function(){return d},transition:function(){return $}});var r=n(42710),i=n(64641),o=n(65244),a=n(74199),s=(0,i.Z)("start","end","cancel","interrupt"),u=[];function c(t,e,n,r,i,c){var l=t.__transition;if(l){if(n in l)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function s(o){var l,h,f,d;if(1!==n.state)return c();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return(0,a.Z)(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[l]):+l0)throw new Error("too late; already scheduled");return n}function h(t,e){var n=f(t,e);if(n.state>3)throw new Error("too late; already running");return n}function f(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function d(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}var p=n(44090),g=n(26669);function v(t,e){var n,r;return function(){var i=h(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?l:h;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var z=n(69309),j=n(85502),Y=r.ZP.prototype.constructor,B=n(97717);function G(t){return function(){this.style.removeProperty(t)}}function J(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function V(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&J(t,o,n)),r}return o._value=e,o}function H(t){return function(e){this.textContent=t.call(this,e)}}function Q(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&H(r)),e}return r._value=t,r}var W=0;function X(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function $(t){return(0,r.ZP)().transition(t)}function K(){return++W}var tt=r.ZP.prototype;X.prototype=$.prototype={constructor:X,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=(0,z.Z)(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a1&&n.name===e)return new X([[t]],rt,e,+r);return null}},59320:function(t,e,n){"use strict";n.r(e),n.d(e,{zoom:function(){return T},zoomIdentity:function(){return p},zoomTransform:function(){return g}});var r=n(64641),i=n(8634),o=n(13764),a=n(92711),s=n(38337),u=n(41036),c=n(45161),l=n(82159);function h(t){return function(){return t}}function f(t,e,n){this.target=t,this.type=e,this.transform=n}function d(t,e,n){this.k=t,this.x=e,this.y=n}d.prototype={constructor:d,scale:function(t){return 1===t?this:new d(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new d(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var p=new d(1,0,0);function g(t){return t.__zoom||p}function v(){a.B.stopImmediatePropagation()}function m(){a.B.preventDefault(),a.B.stopImmediatePropagation()}function y(){return!a.B.button}function _(){var t,e,n=this;return n instanceof SVGElement?(t=(n=n.ownerSVGElement||n).width.baseVal.value,e=n.height.baseVal.value):(t=n.clientWidth,e=n.clientHeight),[[0,0],[t,e]]}function w(){return this.__zoom||p}function b(){return-a.B.deltaY*(a.B.deltaMode?120:1)/500}function x(){return"ontouchstart"in this}function E(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function T(){var t,e,n=y,g=_,T=E,A=b,S=x,k=[0,1/0],I=[[-1/0,-1/0],[1/0,1/0]],C=250,D=o.Z,N=[],Z=(0,r.Z)("start","zoom","end"),M=0;function O(t){t.property("__zoom",w).on("wheel.zoom",z).on("mousedown.zoom",j).on("dblclick.zoom",Y).filter(S).on("touchstart.zoom",B).on("touchmove.zoom",G).on("touchend.zoom touchcancel.zoom",J).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(t,e){return(e=Math.max(k[0],Math.min(k[1],e)))===t.k?t:new d(e,t.x,t.y)}function L(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new d(t.k,r,i)}function U(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function P(t,e,n){t.on("start.zoom",function(){F(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){F(this,arguments).end()}).tween("zoom",function(){var t=this,r=arguments,i=F(t,r),o=g.apply(t,r),a=n||U(o),s=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=t.__zoom,c="function"==typeof e?e.apply(t,r):e,l=D(u.invert(a).concat(s/u.k),c.invert(a).concat(s/c.k));return function(t){if(1===t)t=c;else{var e=l(t),n=s/e[2];t=new d(n,a[0]-e[0]*n,a[1]-e[1]*n)}i.zoom(null,t)}})}function F(t,e){for(var n,r=0,i=N.length;rM}t.zoom("mouse",T(L(t.that.__zoom,t.mouse[0]=(0,s.Z)(t.that),t.mouse[1]),t.extent,I))}function d(){r.on("mousemove.zoom mouseup.zoom",null),(0,i.D)(a.B.view,t.moved),m(),t.end()}}function Y(){if(n.apply(this,arguments)){var t=this.__zoom,e=(0,s.Z)(this),r=t.invert(e),i=t.k*(a.B.shiftKey?.5:2),o=T(L(R(t,i),e,r),g.apply(this,arguments),I);m(),C>0?(0,u.Z)(this).transition().duration(C).call(P,o,e):(0,u.Z)(this).call(O.transform,o)}}function B(){if(n.apply(this,arguments)){var e,r,i,o,s=F(this,arguments),h=a.B.changedTouches,f=h.length;for(v(),r=0;r0;--u)if(r=e[u].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,function(e){return t.outEdges(e.v,e.w)}),!0)};var a=r.constant(1);function s(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),function(r){var i=t.edge(r),s=t.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,u(e,n,s)}),r.forEach(t.outEdges(i.v),function(r){var i=t.edge(r),o=t.node(r.w);o.in-=i,u(e,n,o)}),t.removeNode(i.v),a}function u(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},73363:function(t,e,n){"use strict";var r=n(91096),i=n(19265),o=n(3266),a=n(29438),s=n(45247).normalizeRanks,u=n(22877),c=n(45247).removeEmptyRanks,l=n(8131),h=n(28549),f=n(64061),d=n(41727),p=n(14588),g=n(45247),v=n(49174).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",function(){var e=n(" buildLayoutGraph",function(){return function(t){var e=new v({multigraph:!0,compound:!0}),n=S(t.graph());return e.setGraph(r.merge({},y,A(n,m),r.pick(n,_))),r.forEach(t.nodes(),function(n){var i=S(t.node(n));e.setNode(n,r.defaults(A(i,w),b)),e.setParent(n,t.parent(n))}),r.forEach(t.edges(),function(n){var i=S(t.edge(n));e.setEdge(n,r.merge({},E,A(i,x),r.pick(i,T)))}),e}(t)});n(" runLayout",function(){!function(t,e){e(" makeSpaceForEdgeLabels",function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(t)}),e(" removeSelfEdges",function(){!function(t){r.forEach(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}(t)}),e(" acyclic",function(){i.run(t)}),e(" nestingGraph.run",function(){l.run(t)}),e(" rank",function(){a(g.asNonCompoundGraph(t))}),e(" injectEdgeLabelProxies",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w);g.addDummyNode(t,"edge-proxy",{rank:(i.rank-r.rank)/2+r.rank,e:e},"_ep")}})}(t)}),e(" removeEmptyRanks",function(){c(t)}),e(" nestingGraph.cleanup",function(){l.cleanup(t)}),e(" normalizeRanks",function(){s(t)}),e(" assignRankMinMax",function(){!function(t){var e=0;r.forEach(t.nodes(),function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))}),t.graph().maxRank=e}(t)}),e(" removeEdgeLabelProxies",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}(t)}),e(" normalize.run",function(){o.run(t)}),e(" parentDummyChains",function(){u(t)}),e(" addBorderSegments",function(){h(t)}),e(" order",function(){d(t)}),e(" insertSelfEdges",function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,function(e){var n=0;r.forEach(e,function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}(t)}),e(" adjustCoordinateSystem",function(){f.adjust(t)}),e(" position",function(){p(t)}),e(" positionSelfEdges",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}})}(t)}),e(" removeBorderNodes",function(){!function(t){r.forEach(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}}),r.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}(t)}),e(" normalize.undo",function(){o.undo(t)}),e(" fixupEdgeLabelCoords",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}(t)}),e(" undoCoordinateSystem",function(){f.undo(t)}),e(" translateGraph",function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),s=a.marginx||0,u=a.marginy||0;function c(t){var r=t.x,a=t.y,s=t.width,u=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}r.forEach(t.nodes(),function(e){c(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.has(n,"x")&&c(n)}),e-=s,i-=u,r.forEach(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=i}),r.forEach(t.edges(),function(n){var o=t.edge(n);r.forEach(o.points,function(t){t.x-=e,t.y-=i}),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)}),a.width=n-e+s,a.height=o-i+u}(t)}),e(" assignNodeIntersects",function(){!function(t){r.forEach(t.edges(),function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))})}(t)}),e(" reversePoints",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}(t)}),e(" acyclic.undo",function(){i.undo(t)})}(e,n)}),n(" updateInputGraph",function(){!function(t,e){r.forEach(t.nodes(),function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))}),r.forEach(t.edges(),function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)})})};var m=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],w=["width","height"],b={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},T=["labelpos"];function A(t,e){return r.mapValues(r.pick(t,e),Number)}function S(t){var e={};return r.forEach(t,function(t,n){e[n.toLowerCase()]=t}),e}},91096:function(t,e,n){var r;try{r={cloneDeep:n(38961),constant:n(60583),defaults:n(25177),each:n(97635),filter:n(9673),find:n(13963),flatten:n(38863),forEach:n(26404),forIn:n(21308),has:n(71645),isUndefined:n(96075),last:n(83074),map:n(86169),mapValues:n(7301),max:n(11653),merge:n(81940),min:n(47983),minBy:n(42707),now:n(41396),pick:n(28891),range:n(79289),reduce:n(37442),sortBy:n(36272),uniqueId:n(83798),values:n(95041),zipObject:n(3393)}}catch(i){}r||(r=window._),t.exports=r},8131:function(t,e,n){var r=n(91096),i=n(45247);function o(t,e,n,a,s,u,c){var l=t.children(c);if(l.length){var h=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),d=t.node(c);t.setParent(h,c),d.borderTop=h,t.setParent(f,c),d.borderBottom=f,r.forEach(l,function(r){o(t,e,n,a,s,u,r);var i=t.node(r),l=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=l!==d?1:s-u[c]+1;t.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(c)||t.setEdge(e,h,{weight:0,minlen:s+u[c]})}else c!==e&&t.setEdge(e,c,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,function(t){n(t,o+1)}),e[i]=o}return r.forEach(t.children(),function(t){n(t,1)}),e}(t),a=r.max(r.values(n))-1,s=2*a+1;t.graph().nestingRoot=e,r.forEach(t.edges(),function(e){t.edge(e).minlen*=s});var u=function(t){return r.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)}(t)+1;r.forEach(t.children(),function(r){o(t,e,s,u,a,n,r)}),t.graph().nodeRankFactor=s},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})}}},3266:function(t,e,n){"use strict";var r=n(91096),i=n(45247);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),function(e){!function(t,e){var n,r,o,a=e.v,s=t.node(a).rank,u=e.w,c=t.node(u).rank,l=e.name,h=t.edge(e),f=h.labelRank;if(c!==s+1){for(t.removeEdge(e),o=0,++s;s0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;c+=t.weight*n})),c}t.exports=function(t,e){for(var n=0,r=1;r=2),s=l.buildLayerMatrix(t);var v=o(t,s);v=t.barycenter)&&(o=0,a=0,(n=t).weight&&(o+=n.barycenter*n.weight,a+=n.weight),(i=e).weight&&(o+=i.barycenter*i.weight,a+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=o/a,n.weight=a,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,function(t){return!t.merged}),function(t){return r.pick(t,["vs","i","barycenter","weight"])})}(r.filter(n,function(t){return!t.indegree}))}},5826:function(t,e,n){var r=n(91096),i=n(25412),o=n(82764),a=n(37850);t.exports=function t(e,n,s,u){var c=e.children(n),l=e.node(n),h=l?l.borderLeft:void 0,f=l?l.borderRight:void 0,d={};h&&(c=r.filter(c,function(t){return t!==h&&t!==f}));var p=i(e,c);r.forEach(p,function(n){if(e.children(n.v).length){var i=t(e,n.v,s,u);d[n.v]=i,r.has(i,"barycenter")&&(a=i,r.isUndefined((o=n).barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a});var g=o(p,s);!function(t,e){r.forEach(t,function(t){t.vs=r.flatten(t.vs.map(function(t){return e[t]?e[t].vs:t}),!0)})}(g,d);var v=a(g,u);if(h&&(v.vs=r.flatten([h,v.vs,f],!0),e.predecessors(h).length)){var m=e.node(e.predecessors(h)[0]),y=e.node(e.predecessors(f)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+m.order+y.order)/(v.weight+2),v.weight+=2}return v}},37850:function(t,e,n){var r=n(91096),i=n(45247);function o(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,a=i.partition(t,function(t){return r.has(t,"barycenter")}),s=a.lhs,u=r.sortBy(a.rhs,function(t){return-t.i}),c=[],l=0,h=0,f=0;s.sort((n=!!e,function(t,e){return t.barycentere.barycenter?1:n?e.i-t.i:t.i-e.i})),f=o(c,u,f),r.forEach(s,function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=o(c,u,f)});var d={vs:r.flatten(c,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}},22877:function(t,e,n){var r=n(91096);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,lim:n++}}),e}(t);r.forEach(t.graph().dummyChains,function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||c>e[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,s=o.lca,u=0,c=a[u],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(c=a[u])!==s&&t.node(c).maxRanks)&&u(n,e,c)})})}return r.reduce(e,function(e,n){var o,a=-1,s=0;return r.forEach(n,function(r,u){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(o=t.node(c[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,e.length)}),n}),n}function u(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function c(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var o={},a={},s={};return r.forEach(e,function(t){r.forEach(t,function(t,e){o[t]=t,a[t]=t,s[t]=e})}),r.forEach(e,function(t){var e=-1;r.forEach(t,function(t){var u=i(t);if(u.length)for(var l=((u=r.sortBy(u,function(t){return s[t]})).length-1)/2,h=Math.floor(l),f=Math.ceil(l);h<=f;++h){var d=u[h];a[t]===t&&eu.lim&&(c=u,l=!0);var h=r.filter(e.edges(),function(e){return l===y(0,t.node(e.v),c)&&l!==y(0,t.node(e.w),c)});return r.minBy(h,function(t){return o(e,t)})}function m(t,e,n,i){t.removeEdge(n.v,n.w),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),function(t){return!e.node(t).parent}),i=s(t,n);i=i.slice(1),r.forEach(i,function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)})}(t,e)}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=h,l.calcCutValue=f,l.leaveEdge=g,l.enterEdge=v,l.exchangeEdges=m},21790:function(t,e,n){"use strict";var r=n(91096);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.min(r.map(t.outEdges(i),function(e){return n(e.w)-t.edge(e).minlen}));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},45247:function(t,e,n){"use strict";var r=n(91096),i=n(49174).Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){return r.max(r.map(t.nodes(),function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n}))}t.exports={addDummyNode:o,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,u=t.width/2,c=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),function(){return[]});return r.forEach(t.nodes(),function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)}),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank}));r.forEach(t.nodes(),function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)})},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank})),n=[];r.forEach(t.nodes(),function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)});var i=0,o=t.graph().nodeRankFactor;r.forEach(n,function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,function(e){t.node(e).rank+=i})})},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(t,"border",i,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},32862:function(t){t.exports="0.8.5"},54204:function(t,e,n){var r=n(97078);t.exports={Graph:r.Graph,json:n(2063),alg:n(29790),version:r.version}},66451:function(t,e,n){var r=n(77241);t.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),function(t){e=[],o(t),e.length&&i.push(e)}),i}},70485:function(t,e,n){var r=n(77241);function i(t,e,n,o,a,s){r.has(o,e)||(o[e]=!0,n||s.push(e),r.each(a(e),function(e){i(t,e,n,o,a,s)}),n&&s.push(e))}t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],s={};return r.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);i(t,e,"post"===n,s,o,a)}),a}},85818:function(t,e,n){var r=n(26731),i=n(77241);t.exports=function(t,e,n){return i.transform(t.nodes(),function(i,o){i[o]=r(t,o,e,n)},{})}},26731:function(t,e,n){var r=n(77241),i=n(9266);t.exports=function(t,e,n,r){return function(t,e,n,r){var o,a,s={},u=new i,c=function(t){var e=t.v!==o?t.v:t.w,r=s[e],i=n(t),c=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c0&&(o=u.removeMin(),(a=s[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return s}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},8821:function(t,e,n){var r=n(77241),i=n(45759);t.exports=function(t){return r.filter(i(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},24980:function(t,e,n){var r=n(77241);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}})}),i.forEach(function(t){var e=r[t];i.forEach(function(n){var o=r[n];i.forEach(function(n){var r=e[n],i=o[n],a=o[t].distance+r.distance;a0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(c)}return a}},45759:function(t,e,n){var r=n(77241);t.exports=function(t){var e=0,n=[],i={},o=[];function a(s){var u=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach(function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(a(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))}),u.lowlink===u.index){var c,l=[];do{c=n.pop(),i[c].onStack=!1,l.push(c)}while(s!==c);o.push(l)}}return t.nodes().forEach(function(t){r.has(i,t)||a(t)}),o}},94394:function(t,e,n){var r=n(77241);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),function a(s){if(r.has(n,s))throw new o;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],i.push(s))}),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=new Error},9266:function(t,e,n){var r=n(77241);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(t){return t.key})},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].prioritya){var s=o;o=a,a=s}return o+"\x01"+a+"\x01"+(r.isUndefined(i)?"\0":i)}function u(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}function c(t,e){return s(t,e.v,e.w,e.name)}t.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._in[e])})},i.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._out[e])})},i.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,function(t){n.length>1?i.setNode(t,e):i.setNode(t)}),this},i.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return r.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},i.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),r.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var i={};function o(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(e.nodes(),function(t){e.setParent(t,o(t))}),e},i.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r}),this},i.prototype.setEdge=function(){var t,e,n,i,a=!1,c=arguments[0];"object"==typeof c&&null!==c&&"v"in c?(t=c.v,e=c.w,n=c.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=c,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var l=s(this._isDirected,t,e,n);if(r.has(this._edgeLabels,l))return a&&(this._edgeLabels[l]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=a?i:this._defaultEdgeLabelFn(t,e,n);var h=u(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},i.prototype.edge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.v===e}):i}},i.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.w===e}):i}},i.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},97078:function(t,e,n){t.exports={Graph:n(10179),version:n(57160)}},2063:function(t,e,n){var r=n(77241),i=n(10179);function o(t){return r.map(t.nodes(),function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o})}function a(t){return r.map(t.edges(),function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i})}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),r.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},77241:function(t,e,n){var r;try{r={clone:n(7063),constant:n(60583),each:n(97635),filter:n(9673),has:n(71645),isArray:n(47712),isEmpty:n(19129),isFunction:n(70458),isUndefined:n(96075),keys:n(48600),map:n(86169),reduce:n(37442),size:n(26809),transform:n(86987),union:n(50875),values:n(95041)}}catch(i){}r||(r=window._),t.exports=r},57160:function(t){t.exports="2.1.8"},22550:function(t,e,n){var r=n(31311)(n(58568),"DataView");t.exports=r},27868:function(t,e,n){var r=n(18944),i=n(18790),o=n(40218),a=n(80072),s=n(3575);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}},5724:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r0&&o(l)?n>1?t(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},48486:function(t,e,n){var r=n(43999)();t.exports=r},79941:function(t,e,n){var r=n(48486),i=n(48600);t.exports=function(t,e){return t&&r(t,e,i)}},91338:function(t,e,n){var r=n(21813),i=n(71241);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&ne}},50018:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},29828:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},37551:function(t,e,n){var r=n(72322),i=n(32564),o=n(39920);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},80561:function(t,e,n){var r=n(3219),i=n(3902);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},31999:function(t,e,n){var r=n(47690),i=n(3902);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},47690:function(t,e,n){var r=n(30964),i=n(49642),o=n(97868),a=n(85234),s=n(32234),u=n(47712),c=n(80354),l=n(51156),h="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,p,g){var v=u(t),m=u(e),y=v?"[object Array]":s(t),_=m?"[object Array]":s(e),w=(y="[object Arguments]"==y?h:y)==h,b=(_="[object Arguments]"==_?h:_)==h,x=y==_;if(x&&c(t)){if(!c(e))return!1;v=!0,w=!1}if(x&&!w)return g||(g=new r),v||l(t)?i(t,e,n,d,p,g):o(t,e,y,n,d,p,g);if(!(1&n)){var E=w&&f.call(t,"__wrapped__"),T=b&&f.call(e,"__wrapped__");if(E||T){var A=E?t.value():t,S=T?e.value():e;return g||(g=new r),p(A,S,n,d,g)}}return!!x&&(g||(g=new r),a(t,e,n,d,p,g))}},75080:function(t,e,n){var r=n(32234),i=n(3902);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},16050:function(t,e,n){var r=n(30964),i=n(31999);t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a=200){var g=e?null:s(t);if(g)return u(g);f=!1,l=a,p=new r}else p=e?[]:d;t:for(;++ce||a&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!l&&t=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},49327:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r-1?s[u?e[c]:c]:void 0}}},15395:function(t,e,n){var r=n(49727),i=n(10139),o=n(56016);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?el))return!1;var f=u.get(t),d=u.get(e);if(f&&d)return f==e&&d==t;var p=-1,g=!0,v=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p-1&&t%1==0&&t-1}},2154:function(t,e,n){var r=n(67477);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},58289:function(t,e,n){var r=n(27868),i=n(58170),o=n(6647);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},19581:function(t,e,n){var r=n(65810);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},61608:function(t,e,n){var r=n(65810);t.exports=function(t){return r(this,t).get(t)}},8901:function(t,e,n){var r=n(65810);t.exports=function(t){return r(this,t).has(t)}},12399:function(t,e,n){var r=n(65810);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},95622:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},96878:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},94667:function(t,e,n){var r=n(74884);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},54263:function(t,e,n){var r=n(31311)(Object,"create");t.exports=r},75427:function(t,e,n){var r=n(11621)(Object.keys,Object);t.exports=r},3601:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},80166:function(t,e,n){t=n.nmd(t);var r=n(52127),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},91059:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},11621:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},90877:function(t,e,n){var r=n(86932),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},31816:function(t,e,n){var r=n(58170);t.exports=function(){this.__data__=new r,this.size=0}},86246:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},95499:function(t){t.exports=function(t){return this.__data__.get(t)}},17114:function(t){t.exports=function(t){return this.__data__.has(t)}},68677:function(t,e,n){var r=n(58170),i=n(6647),o=n(98856);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},39920:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n-1&&t%1==0&&t<=9007199254740991}},49333:function(t,e,n){var r=n(75080),i=n(97633),o=n(80166),a=o&&o.isMap,s=a?i(a):r;t.exports=s},17305:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3902:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},7629:function(t,e,n){var r=n(3219),i=n(45410),o=n(3902),a=Function.prototype.toString,s=Object.prototype.hasOwnProperty,u=a.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==u}},8274:function(t,e,n){var r=n(15104),i=n(97633),o=n(80166),a=o&&o.isSet,s=a?i(a):r;t.exports=s},27764:function(t,e,n){var r=n(3219),i=n(47712),o=n(3902);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},30419:function(t,e,n){var r=n(3219),i=n(3902);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},51156:function(t,e,n){var r=n(94154),i=n(97633),o=n(80166),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},96075:function(t){t.exports=function(t){return void 0===t}},48600:function(t,e,n){var r=n(48421),i=n(97272),o=n(9140);t.exports=function(t){return o(t)?r(t):i(t)}},10752:function(t,e,n){var r=n(48421),i=n(40623),o=n(9140);t.exports=function(t){return o(t)?r(t,!0):i(t)}},83074:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},86169:function(t,e,n){var r=n(20529),i=n(82617),o=n(26091),a=n(47712);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},7301:function(t,e,n){var r=n(61216),i=n(79941),o=n(82617);t.exports=function(t,e){var n={};return e=o(e,3),i(t,function(t,i,o){r(n,i,e(t,i,o))}),n}},11653:function(t,e,n){var r=n(91241),i=n(98109),o=n(19903);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},74884:function(t,e,n){var r=n(98856);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},81940:function(t,e,n){var r=n(75705),i=n(57082)(function(t,e,n){r(t,e,n)});t.exports=i},47983:function(t,e,n){var r=n(91241),i=n(69661),o=n(19903);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},42707:function(t,e,n){var r=n(91241),i=n(82617),o=n(69661);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},15533:function(t){t.exports=function(){}},41396:function(t,e,n){var r=n(58568);t.exports=function(){return r.Date.now()}},28891:function(t,e,n){var r=n(14964),i=n(9771)(function(t,e){return null==t?{}:r(t,e)});t.exports=i},57675:function(t,e,n){var r=n(80087),i=n(47044),o=n(46149),a=n(71241);t.exports=function(t){return o(t)?r(a(t)):i(t)}},79289:function(t,e,n){var r=n(15395)();t.exports=r},37442:function(t,e,n){var r=n(27971),i=n(43079),o=n(82617),a=n(95482),s=n(47712);t.exports=function(t,e,n){var u=s(t)?r:a,c=arguments.length<3;return u(t,o(e,4),n,c,i)}},26809:function(t,e,n){var r=n(97272),i=n(32234),o=n(9140),a=n(27764),s=n(3941);t.exports=function(t){if(null==t)return 0;if(o(t))return a(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},36272:function(t,e,n){var r=n(9555),i=n(22824),o=n(37165),a=n(10139),s=o(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])});t.exports=s},20668:function(t){t.exports=function(){return[]}},1950:function(t){t.exports=function(){return!1}},56016:function(t,e,n){var r=n(68135);t.exports=function(t){return t?1/0===(t=r(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},82748:function(t,e,n){var r=n(56016);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},68135:function(t,e,n){var r=n(94530),i=n(17305),o=n(30419),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},65208:function(t,e,n){var r=n(79399),i=n(10752);t.exports=function(t){return r(t,i(t))}},89196:function(t,e,n){var r=n(17667);t.exports=function(t){return null==t?"":r(t)}},86987:function(t,e,n){var r=n(41492),i=n(56004),o=n(79941),a=n(82617),s=n(45410),u=n(47712),c=n(80354),l=n(70458),h=n(17305),f=n(51156);t.exports=function(t,e,n){var d=u(t),p=d||c(t)||f(t);if(e=a(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:h(t)&&l(g)?i(s(t)):{}}return(p?r:o)(t,function(t,r,i){return e(n,t,r,i)}),n}},50875:function(t,e,n){var r=n(9555),i=n(37165),o=n(66833),a=n(56633),s=i(function(t){return o(r(t,1,a,!0))});t.exports=s},83798:function(t,e,n){var r=n(89196),i=0;t.exports=function(t){var e=++i;return r(t)+e}},95041:function(t,e,n){var r=n(10744),i=n(48600);t.exports=function(t){return null==t?[]:r(t,i(t))}},3393:function(t,e,n){var r=n(25823),i=n(60170);t.exports=function(t,e){return i(t||[],e||[],r)}},41282:function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(69812)),r(n(65098)),r(n(59895)),r(n(13408)),r(n(66082)),r(n(33839)),r(n(51390)),r(n(83807)),r(n(24232)),r(n(22267)),r(n(741)),r(n(21539)),r(n(97002)),r(n(99147)),r(n(70980)),r(n(96684))},69812:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390),a=function(t){function e(e){var n=t.call(this)||this,r=e;return r.trigger&&(n.trigger=r.trigger),r.kick&&(n.kick=r.kick),r.drag&&(n.drag=r.drag),r.on&&(n.on=r.on),n.dragstart=n.dragStart=o.Layout.dragStart,n.dragend=n.dragEnd=o.Layout.dragEnd,n}return i(e,t),e.prototype.trigger=function(t){},e.prototype.kick=function(){},e.prototype.drag=function(){},e.prototype.on=function(t,e){return this},e}(o.Layout);e.LayoutAdaptor=a,e.adaptor=function(t){return new a(t)}},96684:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51390),i=n(66082);e.gridify=function(t,e,n,r){return t.cola.start(0,0,0,10,!1),function(t,e,n,r){t.forEach(function(t){t.routerNode={name:t.name,bounds:t.bounds.inflate(-n)}}),e.forEach(function(e){e.routerNode={bounds:e.bounds.inflate(-r),children:(void 0!==e.groups?e.groups.map(function(e){return t.length+e.id}):[]).concat(void 0!==e.leaves?e.leaves.map(function(t){return t.index}):[])}});var o=t.concat(e).map(function(t,e){return t.routerNode.id=e,t.routerNode});return new i.GridRouter(o,{getChildren:function(t){return t.children},getBounds:function(t){return t.bounds}},n-r)}(t.cola.nodes(),t.cola.groups(),n,r).routeEdges(t.powerGraph.powerEdges,e,function(t){return t.source.routerNode.id},function(t){return t.target.routerNode.id})},e.powerGraphGridLayout=function(t,e,n){var i;t.nodes.forEach(function(t,e){return t.index=e}),(new r.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(t){(i=t).groups.forEach(function(t){return t.padding=n})});var o=t.nodes.length,a=[],s=t.nodes.slice(0);return s.forEach(function(t,e){return t.index=e}),i.groups.forEach(function(t){var e=t.index=t.id+o;s.push(t),void 0!==t.leaves&&t.leaves.forEach(function(t){return a.push({source:e,target:t.index})}),void 0!==t.groups&&t.groups.forEach(function(t){return a.push({source:e,target:t.id+o})})}),i.powerEdges.forEach(function(t){a.push({source:t.source.index,target:t.target.index})}),(new r.Layout).size(e).nodes(s).links(a).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new r.Layout).convergenceThreshold(.001).size(e).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(t){(i=t).groups.forEach(function(t){t.padding=n})}).start(50,0,100,0,!1),powerGraph:i}}},65098:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29738),i=n(62834);e.d3adaptor=function(t){return!t||function(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new r.D3StyleLayoutAdaptor:new i.D3StyleLayoutAdaptor(t)}},29738:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390),a=function(t){function e(){var e=t.call(this)||this;e.event=d3.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var n=e;return e.drag=function(){if(!t)var t=d3.behavior.drag().origin(o.Layout.dragOrigin).on("dragstart.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,d3.event),n.resume()}).on("dragend.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;this.call(t)},e}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event[e.type](e)},e.prototype.kick=function(){var e=this;d3.timer(function(){return t.prototype.tick.call(e)})},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout);e.D3StyleLayoutAdaptor=a,e.d3adaptor=function(){return new a}},62834:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390);e.D3StyleLayoutAdaptor=function(t){function e(e){var n=t.call(this)||this;n.d3Context=e,n.event=e.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var r=n;return n.drag=function(){if(!t)var t=e.drag().subject(o.Layout.dragOrigin).on("start.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,e.event),r.resume()}).on("end.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;arguments[0].call(t)},n}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(e.type,e)},e.prototype.kick=function(){var e=this,n=this.d3Context.timer(function(){return t.prototype.tick.call(e)&&n.stop()})},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout)},59895:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.locks={}}return t.prototype.add=function(t,e){this.locks[t]=e},t.prototype.clear=function(){this.locks={}},t.prototype.isEmpty=function(){for(var t in this.locks)return!1;return!0},t.prototype.apply=function(t){for(var e in this.locks)t(Number(e),this.locks[e])},t}();e.Locks=n,e.Descent=function(){function t(t,e,i){void 0===i&&(i=null),this.D=e,this.G=i,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new r,this.project=null,this.x=t,this.k=t.length;var o=this.n=t[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 n,this.minD=Number.MAX_VALUE;for(var a,s=o;s--;)for(a=o;--a>s;){var u=e[s][a];u>0&&u1e-9)break;var d=this.offsetDir();for(r=0;r1&&p>g||!isFinite(g))for(r=0;r1&&(v=1);var m=g*g,y=2*v*(p-g)/(m*p),_=p*p*p,w=2*-v/(m*_);for(isFinite(y)||console.log(y),r=0;r0?A-(I+1)*x:A-(I-1)*x)&&f<=b&&(this.scaleSnapByMaxH?(this.g[r][u]+=s*E*f,this.H[r][u][u]+=s*E):(this.g[r][u]+=E*f,this.H[r][u][u]+=E))}this.locks.isEmpty()||this.locks.apply(function(n,i){for(r=0;r0;)for(var i=e;i-- >0;)n(r,i)},t.prototype.matrixApply=function(e){t.mApply(this.k,this.n,e)},t.prototype.computeNextPosition=function(t,e){var n=this;this.computeDerivatives(t);var r=this.computeStepSize(this.g);if(this.stepAndProject(t,e,this.g,r),this.project){this.matrixApply(function(r,i){return n.e[r][i]=t[r][i]-e[r][i]});var i=this.computeStepSize(this.e);i=Math.max(.2,Math.min(i,1)),this.stepAndProject(t,e,this.e,i)}},t.prototype.run=function(t){for(var e=Number.MAX_VALUE,n=!1;!n&&t-- >0;){var r=this.rungeKutta();n=Math.abs(e/r-1)>16)/this.range},t.prototype.getNextBetween=function(t,e){return t+this.getNext()*(e-t)},t}();e.PseudoRandom=r},13408:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(97002),a=function(){};e.Point=a;var s=function(t,e,n,r){this.x1=t,this.y1=e,this.x2=n,this.y2=r};function u(t,e,n){return(e.x-t.x)*(n.y-t.y)-(n.x-t.x)*(e.y-t.y)}function c(t,e,n){return u(t,e,n)>0}function l(t,e,n){return u(t,e,n)<0}function h(t,e){var n,r,i,o,a=e.length-1;if(l(t,e[1],e[0])&&!c(t,e[a-1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return c(t,e[n],e[r])?n:r;if((o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]))&&!c(t,e[i-1],e[i]))return i;c(t,e[n+1],e[n])?o||c(t,e[n],e[i])?r=i:n=i:o&&l(t,e[n],e[i])?r=i:n=i}}function f(t,e){var n,r,i,o,a=e.length-1;if(c(t,e[a-1],e[0])&&!l(t,e[1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return l(t,e[n],e[r])?n:r;if(o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]),c(t,e[i-1],e[i])&&!o)return i;l(t,e[n+1],e[n])?o?l(t,e[n],e[i])?r=i:n=i:r=i:o?n=i:c(t,e[n],e[i])?r=i:n=i}}function d(t,e,n,r,i,o){var a,s;s=r(t[a=n(e[0],t)],e);for(var u=!1;!u;){for(u=!0;a===t.length-1&&(a=0),!i(e[s],t[a],t[a+1]);)++a;for(;0===s&&(s=e.length-1),!o(t[a],e[s],e[s-1]);)--s,u=!1}return{t1:a,t2:s}}function p(t,e){return d(t,e,h,f,c,l)}e.LineSegment=s,e.PolyPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a),e.isLeft=u,e.ConvexHull=function(t){var e,n=t.slice(0).sort(function(t,e){return t.x!==e.x?e.x-t.x:e.y-t.y}),r=t.length,i=n[0].x;for(e=1;e=0&&n[e].x===l;e--);for(s=e+1,e=o;++e<=s;)if(!(u(n[0],n[s],n[e])>=0&&e1&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}c!=s&&a.push(n[c]);var h=a.length;for(e=s;--e>=o;)if(!(u(n[c],n[o],n[e])>=0&&e>o)){for(;a.length>h&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}}return a},e.clockwiseRadialSweep=function(t,e,n){e.slice(0).sort(function(e,n){return Math.atan2(e.y-t.y,e.x-t.x)-Math.atan2(n.y-t.y,n.x-t.x)}).forEach(n)},e.tangent_PolyPolyC=d,e.LRtangent_PolyPolyC=function(t,e){var n=p(e,t);return{t1:n.t2,t2:n.t1}},e.RLtangent_PolyPolyC=p,e.LLtangent_PolyPolyC=function(t,e){return d(t,e,f,f,l,l)},e.RRtangent_PolyPolyC=function(t,e){return d(t,e,h,h,c,c)};var g=function(t,e){this.t1=t,this.t2=e};e.BiTangent=g;var v=function(){};e.BiTangents=v,e.TVGPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a);var m=function(t,e,n,r){this.id=t,this.polyid=e,this.polyvertid=n,this.p=r,r.vv=this};e.VisibilityVertex=m;var y=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,e=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+e*e)},t}();function _(t,e){for(var n=[],r=1,i=e.length;r=0&&m>=0&&y<0&&_>=0&&w>=0&&b<0?i.ll=new g(o,a):p<=0&&m<=0&&y>0&&_<=0&&w<=0&&b>0?i.rr=new g(o,a):p<=0&&m>0&&y<=0&&_>=0&&w<0&&b>=0?i.rl=new g(o,a):p>=0&&m<0&&y>=0&&_<=0&&w>0&&b<=0&&(i.lr=new g(o,a))}return i}function b(t,e){return!t.every(function(t){return!function(t,e){for(var n=1,r=e.length;n0&&this.E.push(new y(i[o-1].vv,a))}i.length>1&&this.E.push(new y(i[0].vv,i[i.length-1].vv))}for(r=0;r0)return!0;return!1},t}(),e.tangents=w,e.polysOverlap=function(t,e){if(b(t,e))return!0;if(b(e,t))return!0;for(var n=1,r=t.length;n0)return!0}return!1}},66082:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(97002),i=n(70980),o=n(99147),a=function(t,e,n){this.id=t,this.rect=e,this.children=n,this.leaf=void 0===n||0===n.length};e.NodeWrapper=a;var s=function(t,e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),this.id=t,this.x=e,this.y=n,this.node=r,this.line=i};e.Vert=s;var u=function(){function t(e,n){this.s=e,this.t=n;var r=t.findMatch(e,n),i=n.slice(0).reverse(),o=t.findMatch(e,i);r.length>=o.length?(this.length=r.length,this.si=r.si,this.ti=r.ti,this.reversed=!1):(this.length=o.length,this.si=o.si,this.ti=n.length-o.ti-o.length,this.reversed=!0)}return t.findMatch=function(t,e){for(var n=t.length,r=e.length,i={length:0,si:-1,ti:-1},o=new Array(n),a=0;ai.length&&(i.length=u,i.si=a-u+1,i.ti=s-u+1)}else o[a][s]=0}return i},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();e.LongestCommonSubsequence=u,e.GridRouter=function(){function t(t,e,n){var i=this;void 0===n&&(n=12),this.originalnodes=t,this.groupPadding=n,this.leaves=null,this.nodes=t.map(function(t,n){return new a(n,e.getBounds(t),e.getChildren(t))}),this.leaves=this.nodes.filter(function(t){return t.leaf}),this.groups=this.nodes.filter(function(t){return!t.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(t){return t.children.forEach(function(e){return i.nodes[e].parent=t})}),this.root={children:[]},this.nodes.forEach(function(t){void 0===t.parent&&(t.parent=i.root,i.root.children.push(t.id)),t.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(t,e){return i.getDepth(t)-i.getDepth(e)}),this.backToFront.slice(0).reverse().filter(function(t){return!t.leaf}).forEach(function(t){var e=r.Rectangle.empty();t.children.forEach(function(t){return e=e.union(i.nodes[t].rect)}),t.rect=e.inflate(i.groupPadding)});var o=this.midPoints(this.cols.map(function(t){return t.pos})),u=this.midPoints(this.rows.map(function(t){return t.pos})),c=o[0],l=o[o.length-1],h=u[0],f=u[u.length-1],d=this.rows.map(function(t){return{x1:c,x2:l,y1:t.pos,y2:t.pos}}).concat(u.map(function(t){return{x1:c,x2:l,y1:t,y2:t}})),p=this.cols.map(function(t){return{x1:t.pos,x2:t.pos,y1:h,y2:f}}).concat(o.map(function(t){return{x1:t,x2:t,y1:h,y2:f}})),g=d.concat(p);g.forEach(function(t){return t.verts=[]}),this.verts=[],this.edges=[],d.forEach(function(t){return p.forEach(function(e){var n=new s(i.verts.length,e.x1,t.y1);t.verts.push(n),e.verts.push(n),i.verts.push(n);for(var r=i.backToFront.length;r-- >0;){var o=i.backToFront[r],a=o.rect,u=Math.abs(n.x-a.cx()),c=Math.abs(n.y-a.cy());if(u0;){var r=n.filter(function(e){return e.rect["overlap"+t.toUpperCase()](n[0].rect)}),i={nodes:r,pos:this.avg(r.map(function(e){return e.rect["c"+t]()}))};e.push(i),i.nodes.forEach(function(t){return n.splice(n.indexOf(t),1)})}return e.sort(function(t,e){return t.pos-e.pos}),e},t.prototype.getDepth=function(t){for(var e=0;t.parent!==this.root;)e++,t=t.parent;return e},t.prototype.midPoints=function(t){for(var e=t[1]-t[0],n=[t[0]-e/2],r=1;r.1)&&s.push(u={pos:l[0][e],segments:[]}),u.segments.push(l)}return s},t.nudgeSegs=function(t,e,n,r,o,a){var s=r.length;if(!(s<=1)){for(var u=r.map(function(e){return new i.Variable(e[0][t])}),c=[],l=0;l=0&&c.push(new i.Constraint(u[g],u[v],a))}new i.Solver(u,c).solve(),u.forEach(function(e,i){var o=r[i],a=e.position();o[0][t]=o[1][t]=a;var s=n[o.edgeid];o.i>0&&(s[o.i-1][1][t]=a),o.iMath.PI||i<-Math.PI)&&(i=r-n),i},t.isLeft=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)<=0},t.getOrder=function(t){for(var e={},n=0;n=c.length||h.ti+h.length>=l.length)?n.push({l:r,r:i}):(h.si+h.length>=c.length||h.ti+h.length>=l.length?(o=c[h.si+1],s=c[h.si-1],a=l[h.ti-1]):(o=c[h.si+h.length-2],a=c[h.si+h.length],s=l[h.ti+h.length]),t.isLeft(o,a,s)?n.push({l:i,r:r}):n.push({l:r,r:i})))}return t.getOrder(n)},t.makeSegments=function(t){function e(t){return{x:t.x,y:t.y}}for(var n=function(t,e,n){return Math.abs((e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x))<.001},r=[],i=e(t[0]),o=1;o1&&l>1?1e3:0}).reverse().map(function(t){return n.verts[t]});return u.push(this.nodes[i.id].ports[0]),u.filter(function(t,e){return!(e0&&t.node===i&&u[e-1].node===i)})},t.getRoutePath=function(e,n,r,i){var o,a,s,u,c,l={routepath:"M "+e[0][0].x+" "+e[0][0].y+" ",arrowpath:""};if(e.length>1)for(var h=0;h0?a-=f/Math.abs(f)*n:s-=d/Math.abs(d)*n,l.routepath+="L "+a+" "+s+" ";var p=e[h+1],g=p[0].x,v=p[0].y;f=p[1].x-g,d=p[1].y-v;var m,y,_=t.angleBetween2Lines(o,p)<0?1:0;Math.abs(f)>0?(m=g+f/Math.abs(f)*n,y=v):(m=g,y=v+d/Math.abs(d)*n);var w=Math.abs(m-a),b=Math.abs(y-s);l.routepath+="A "+w+" "+b+" 0 0 "+_+" "+m+" "+y+" "}else{var x=[a,s];Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1])}}else f=(a=(o=e[0])[1].x)-o[0].x,d=(s=o[1].y)-o[0].y,x=[a,s],Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1]);return l},t}()},33839:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(1+Math.sqrt(5))/2;e.applyPacking=function(t,e,r,i,o,a){void 0===o&&(o=1),void 0===a&&(a=!0);var s=e,u=r,c=(o=void 0!==o?o:1,i=void 0!==i?i:0,0),l=0,h=0,f=0,d=[];function p(t,e){d=[],c=0,l=0,f=0;for(var n=0;n=t.height&&d[r].x+d[r].width+t.width+10-e<=1e-4){n=d[r];break}d.push(t),void 0!==n?(t.x=n.x+n.width+10,t.y=n.bottom,t.space_left=t.height,t.bottom=t.y,n.space_left-=t.height+10,n.bottom+=t.height+10):(t.y=f,f+=t.height+10,t.x=0,t.bottom=t.y,t.space_left=t.height),t.y+t.height-l>-1e-4&&(l=t.y+t.height-0),t.x+t.width-c>-1e-4&&(c=t.x+t.width-0)}0!=t.length&&(function(t){t.forEach(function(t){var e,n,r,o,a;e=t,n=Number.MAX_VALUE,r=Number.MAX_VALUE,o=0,a=0,e.array.forEach(function(t){var e=void 0!==t.width?t.width:i,s=void 0!==t.height?t.height:i;e/=2,s/=2,o=Math.max(t.x+e,o),n=Math.min(t.x-e,n),a=Math.max(t.y+s,a),r=Math.min(t.y-s,r)}),e.width=o-n,e.height=a-r})}(t),function(t,e){var r=Number.POSITIVE_INFINITY,i=0;t.sort(function(t,e){return e.height-t.height});for(var o=g=h=t.reduce(function(t,e){return t.widthh||d>1e-4;){if(1!=l){var g=a-(a-o)/n;u=p(t,g)}if(0!=l){var v=o+(a-o)/n;c=p(t,v)}if(f=Math.abs(g-v),d=Math.abs(u-c),uc?(o=g,g=v,u=c,l=1):(a=v,v=g,c=u,l=0),s++>100)break}p(t,i)}(t),a&&function(t){t.forEach(function(t){var e={x:0,y:0};t.array.forEach(function(t){e.x+=t.x,e.y+=t.y}),e.x/=t.array.length,e.y/=t.array.length;var n=t.x-(e.x-t.width/2)+s/2-c/2,r=t.y-(e.y-t.height/2)+u/2-l/2;t.array.forEach(function(t){t.x+=n,t.y+=r})})}(t))},e.separateGraphs=function(t,e){for(var n={},r={},i=[],o=0,a=0;a0){var e=0;this._links.forEach(function(t){e=Math.max(e,t.source,t.target)}),this._nodes=new Array(++e);for(var n=0;n0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,e){t.length=e},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return i.symmetricDiffLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.jaccardLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return i.jaccardLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.start=function(e,n,r,u,c,l){var h=this;void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===c&&(c=!0),void 0===l&&(l=!0);var f,d=this.nodes().length,p=d+2*this._groups.length,g=this._canvasSize[0],v=this._canvasSize[1],m=new Array(p),y=new Array(p),_=null,w=this._avoidOverlaps;this._nodes.forEach(function(t,e){t.index=e,void 0===t.x&&(t.x=g/2,t.y=v/2),m[e]=t.x,y[e]=t.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?f=this._distanceMatrix:(f=new s.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,function(t){return h.getLinkLength(t)}).DistanceMatrix(),_=o.Descent.createSquareMatrix(p,function(){return 2}),this._links.forEach(function(t){"number"==typeof t.source&&(t.source=h._nodes[t.source]),"number"==typeof t.target&&(t.target=h._nodes[t.target])}),this._links.forEach(function(e){var n=t.getSourceIndex(e),r=t.getTargetIndex(e);_[n][r]=_[r][n]=e.weight||1}));var b=o.Descent.createSquareMatrix(p,function(t,e){return f[t][e]});if(this._rootGroup&&void 0!==this._rootGroup.groups){var x=d;this._groups.forEach(function(t){!function(t,e,n,r){_[t][e]=_[e][t]=n,b[t][e]=b[e][t]=.1}(x,x+1,h._groupCompactness),m[x]=0,y[x++]=0,m[x]=0,y[x++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var E=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,E=E.concat(i.generateDirectedEdgeConstraints(d,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new o.Descent([m,y],b),this._descent.locks.clear(),x=0;x0&&(this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E).projectFunctions()),this._descent.run(n),this.separateOverlappingComponents(g,v,l),this.avoidOverlaps(w),w&&(this._nodes.forEach(function(t,e){t.x=m[e],t.y=y[e]}),this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E,!0).projectFunctions(),this._nodes.forEach(function(t,e){m[e]=t.x,y[e]=t.y})),this._descent.G=_,this._descent.run(r),u){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=d,this._descent.scaleSnapByMaxH=d!=p;var A=o.Descent.createSquareMatrix(p,function(t,e){return t>=d||e>=d?_[t][e]:0});this._descent.G=A,this._descent.run(u)}return this.updateNodePositions(),this.separateOverlappingComponents(g,v,l),c?this.resume():this},t.prototype.initialLayout=function(e,n,r){if(this._groups.length>0&&e>0){var i=this._nodes.length,o=this._links.map(function(t){return{source:t.source.index,target:t.target.index}}),a=this._nodes.map(function(t){return{index:t.index}});this._groups.forEach(function(t,e){a.push({index:t.index=i+e})}),this._groups.forEach(function(t,e){void 0!==t.leaves&&t.leaves.forEach(function(e){return o.push({source:t.index,target:e.index})}),void 0!==t.groups&&t.groups.forEach(function(e){return o.push({source:t.index,target:e.index})})}),(new t).size(this.size()).nodes(a).links(o).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(e,0,0,0,!1),this._nodes.forEach(function(t){n[t.index]=a[t.index].x,r[t.index]=a[t.index].y})}else this._descent.run(e)},t.prototype.separateOverlappingComponents=function(t,e,n){var r=this;if(void 0===n&&(n=!0),!this._distanceMatrix&&this._handleDisconnected){var i=this._descent.x[0],o=this._descent.x[1];this._nodes.forEach(function(t,e){t.x=i[e],t.y=o[e]});var a=c.separateGraphs(this._nodes,this._links);c.applyPacking(a,t,e,this._defaultNodeSize,1,n),this._nodes.forEach(function(t,e){r._descent.x[0][e]=t.x,r._descent.x[1][e]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))})}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new u.TangentVisibilityGraph(this._nodes.map(function(e){return e.bounds.inflate(-t).vertices()}))},t.prototype.routeEdge=function(t,e,n){void 0===e&&(e=5);var r=[],i=new u.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),o={x:t.source.x,y:t.source.y},c={x:t.target.x,y:t.target.y},l=i.addPoint(o,t.source.index),h=i.addPoint(c,t.target.index);i.addEdgeIfVisible(o,c,t.source.index,t.target.index),void 0!==n&&n(i);var f=new s.Calculator(i.V.length,i.E,function(t){return t.source.id},function(t){return t.target.id},function(t){return t.length()}).PathFromNodeToNode(l.id,h.id);if(1===f.length||f.length===i.V.length){var d=a.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,e);r=[d.sourceIntersection,d.arrowStart]}else{for(var p=f.length-2,g=i.V[f[p]].p,v=i.V[f[0]].p,m=(r=[t.source.innerBounds.rayIntersection(g.x,g.y)],p);m>=0;--m)r.push(i.V[f[m]].p);r.push(a.makeEdgeTo(v,t.target.innerBounds,e))}return r},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(e){return t.getSourceIndex(e)+"-"+t.getTargetIndex(e)},t.dragStart=function(e){h(e)?t.storeOffset(e,t.dragOrigin(e)):(t.stopNode(e),e.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(e,n){void 0!==e.leaves&&e.leaves.forEach(function(e){e.fixed|=2,t.stopNode(e),e._dragGroupOffsetX=e.x-n.x,e._dragGroupOffsetY=e.y-n.y}),void 0!==e.groups&&e.groups.forEach(function(e){return t.storeOffset(e,n)})},t.dragOrigin=function(t){return h(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(e,n){h(e)?(void 0!==e.leaves&&e.leaves.forEach(function(t){e.bounds.setXCentre(n.x),e.bounds.setYCentre(n.y),t.px=t._dragGroupOffsetX+n.x,t.py=t._dragGroupOffsetY+n.y}),void 0!==e.groups&&e.groups.forEach(function(e){return t.drag(e,n)})):(e.px=n.x,e.py=n.y)},t.dragEnd=function(e){h(e)?(void 0!==e.leaves&&e.leaves.forEach(function(e){t.dragEnd(e),delete e._dragGroupOffsetX,delete e._dragGroupOffsetY}),void 0!==e.groups&&e.groups.forEach(t.dragEnd)):e.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}()},83807:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(99147),i=n(59895),o=n(97002),a=n(24232);e.Link3D=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.actualLength=function(t){var e=this;return Math.sqrt(t.reduce(function(t,n){var r=n[e.target]-n[e.source];return t+r*r},0))},t}(),e.Node3D=function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=e,this.z=n},e.Layout3D=function(){function t(e,n,r){var i=this;void 0===r&&(r=1),this.nodes=e,this.links=n,this.idealLinkLength=r,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var o=0;o=this.R))return this.merge(e.a,e.b,t),!0}},t.prototype.nEdges=function(t,e){var n=t.incoming.intersection(e.incoming),r=t.outgoing.intersection(e.outgoing);return this.R-n.count()-r.count()},t.prototype.getGroupHierarchy=function(t){var e=this,r=[];return i(this.roots[0],{},r),this.allEdges().forEach(function(i){var o=e.modules[i.source],a=e.modules[i.target];t.push(new n(void 0===o.gid?i.source:r[o.gid],void 0===a.gid?i.target:r[a.gid],i.type))}),r},t.prototype.allEdges=function(){var e=[];return t.getEdges(this.roots[0],e),e},t.getEdges=function(e,n){e.forAll(function(e){e.getEdges(n),t.getEdges(e.children,n)})},t}();function i(t,e,n){t.forAll(function(t){if(t.isLeaf())e.leaves||(e.leaves=[]),e.leaves.push(t.id);else{var r=e;if(t.gid=n.length,!t.isIsland()||t.isPredefined()){if(r={id:t.gid},t.isPredefined())for(var o in t.definition)r[o]=t.definition[o];e.groups||(e.groups=[]),e.groups.push(t.gid),n.push(r)}i(t.children,r,n)}})}e.Configuration=r;var o=function(){function t(t,e,n,r,i){void 0===e&&(e=new s),void 0===n&&(n=new s),void 0===r&&(r=new a),this.id=t,this.outgoing=e,this.incoming=n,this.children=r,this.definition=i}return t.prototype.getEdges=function(t){var e=this;this.outgoing.forAll(function(r,i){r.forAll(function(r){t.push(new n(e.id,r.id,i))})})},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return void 0!==this.definition},t}();e.Module=o;var a=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(e){var n=new t;return n.table=function(t,e){var n={};for(var r in t)r in e&&(n[r]=t[r]);return n}(this.table,e.table),n},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var e in this.table)t(this.table[e])},t.prototype.modules=function(){var t=[];return this.forAll(function(e){e.isPredefined()||t.push(e)}),t},t}();e.ModuleSet=a;var s=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var e=!1;return this.forAllModules(function(n){e||n.id!=t||(e=!0)}),e},t.prototype.add=function(t,e){(t in this.sets?this.sets[t]:this.sets[t]=new a).add(e),++this.n},t.prototype.remove=function(t,e){var n=this.sets[t];n.remove(e),0===n.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var e in this.sets)t(this.sets[e],Number(e))},t.prototype.forAllModules=function(t){this.forAll(function(e,n){return e.forAll(t)})},t.prototype.intersection=function(e){var n=new t;return this.forAll(function(t,r){if(r in e.sets){var i=t.intersection(e.sets[r]),o=i.count();o>0&&(n.sets[r]=i,n.n+=o)}}),n},t}();e.LinkSets=s,e.getGroups=function(t,e,n,i){for(var o=new r(t.length,e,n,i);o.greedyMerge(););var a=[],s=o.getGroupHierarchy(a);return a.forEach(function(e){var n=function(n){var r=e[n];"number"==typeof r&&(e[n]=t[r])};n("source"),n("target")}),{groups:s,powerEdges:a}}},741:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var e="",n=!1,r=0;r0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var e=this._root;null!==e;){var n=this._comparator(t,e.data);if(0===n)return e.data;e=e.get_child(n>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){var e=this._comparator;return this._bound(t,function(t,n){return e(n,t)})},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new o(this)},t.prototype.each=function(t){for(var e,n=this.iterator();null!==(e=n.next());)t(e)},t.prototype.reach=function(t){for(var e,n=this.iterator();null!==(e=n.prev());)t(e)},t.prototype._bound=function(t,e){for(var n=this._root,r=this.iterator();null!==n;){var i=this._comparator(t,n.data);if(0===i)return r._cursor=n,r;r._ancestors.push(n),n=n.get_child(i>0)}for(var o=r._ancestors.length-1;o>=0;--o)if(e(t,(n=r._ancestors[o]).data)>0)return r._cursor=n,r._ancestors.length=o,r;return r._ancestors.length=0,r},t}();e.TreeBase=i;var o=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else{var e;if(null===this._cursor.right)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===e);else this._ancestors.push(this._cursor),this._minNode(this._cursor.right)}return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else{var e;if(null===this._cursor.left)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===e);else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left)}return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();e.Iterator=o;var a=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,e){t?this.right=e:this.left=e},t}();e.RBTree=function(t){function e(e){var n=t.call(this)||this;return n._root=null,n._comparator=e,n.size=0,n}return r(e,t),e.prototype.insert=function(t){var n=!1;if(null===this._root)this._root=new a(t),n=!0,this.size++;else{var r=new a(void 0),i=!1,o=!1,s=null,u=r,c=null,l=this._root;for(u.right=this._root;;){if(null===l?(l=new a(t),c.set_child(i,l),n=!0,this.size++):e.is_red(l.left)&&e.is_red(l.right)&&(l.red=!0,l.left.red=!1,l.right.red=!1),e.is_red(l)&&e.is_red(c)){var h=u.right===s;l===c.get_child(o)?u.set_child(h,e.single_rotate(s,!o)):u.set_child(h,e.double_rotate(s,!o))}var f=this._comparator(l.data,t);if(0===f)break;o=i,null!==s&&(u=s),s=c,c=l,l=l.get_child(i=f<0)}this._root=r.right}return this._root.red=!1,n},e.prototype.remove=function(t){if(null===this._root)return!1;var n=new a(void 0),r=n;r.right=this._root;for(var i=null,o=null,s=null,u=!0;null!==r.get_child(u);){var c=u;o=i,i=r,r=r.get_child(u);var l=this._comparator(t,r.data);if(u=l>0,0===l&&(s=r),!e.is_red(r)&&!e.is_red(r.get_child(u)))if(e.is_red(r.get_child(!u))){var h=e.single_rotate(r,u);i.set_child(c,h),i=h}else if(!e.is_red(r.get_child(!u))){var f=i.get_child(!c);if(null!==f)if(e.is_red(f.get_child(!c))||e.is_red(f.get_child(c))){var d=o.right===i;e.is_red(f.get_child(c))?o.set_child(d,e.double_rotate(i,c)):e.is_red(f.get_child(!c))&&o.set_child(d,e.single_rotate(i,c));var p=o.get_child(d);p.red=!0,r.red=!0,p.left.red=!1,p.right.red=!1}else i.red=!1,f.red=!0,r.red=!0}}return null!==s&&(s.data=r.data,i.set_child(i.right===r,r.get_child(null===r.left)),this.size--),this._root=n.right,null!==this._root&&(this._root.red=!1),null!==s},e.is_red=function(t){return null!==t&&t.red},e.single_rotate=function(t,e){var n=t.get_child(!e);return t.set_child(!e,n.get_child(e)),n.set_child(e,t),t.red=!0,n.red=!1,n},e.double_rotate=function(t,n){return t.set_child(!n,e.single_rotate(t.get_child(!n),!n)),e.single_rotate(t,n)},e}(i)},97002:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(70980),a=n(21539);function s(t){return t.bounds=void 0!==t.leaves?t.leaves.reduce(function(t,e){return e.bounds.union(t)},u.empty()):u.empty(),void 0!==t.groups&&(t.bounds=t.groups.reduce(function(t,e){return s(e).union(t)},t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}e.computeGroupBounds=s;var u=function(){function t(t,e,n,r){this.x=t,this.X=e,this.y=n,this.Y=r}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var e=this.cx(),n=t.cx();return e<=n&&t.x0?n[0]:null},t.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}]},t.lineIntersection=function(t,e,n,r,i,o,a,s){var u=n-t,c=a-i,l=r-e,h=s-o,f=h*u-c*l;if(0==f)return null;var d=t-i,p=e-o,g=(c*p-h*d)/f,v=(u*p-l*d)/f;return g>=0&&g<=1&&v>=0&&v<=1?{x:t+g*u,y:e+g*l}:null},t.prototype.inflate=function(e){return new t(this.x-e,this.X+e,this.y-e,this.Y+e)},t}();e.Rectangle=u,e.makeEdgeBetween=function(t,e,n){var r=t.rayIntersection(e.cx(),e.cy())||{x:t.cx(),y:t.cy()},i=e.rayIntersection(t.cx(),t.cy())||{x:e.cx(),y:e.cy()},o=i.x-r.x,a=i.y-r.y,s=Math.sqrt(o*o+a*a),u=s-n;return{sourceIntersection:r,targetIntersection:i,arrowStart:{x:r.x+u*o/s,y:r.y+u*a/s}}},e.makeEdgeTo=function(t,e,n){var r=e.rayIntersection(t.x,t.y);r||(r={x:e.cx(),y:e.cy()});var i=r.x-t.x,o=r.y-t.y,a=Math.sqrt(i*i+o*o);return{x:r.x-n*i/a,y:r.y-n*o/a}};var c=function(t,e,n){this.v=t,this.r=e,this.pos=n,this.prev=f(),this.next=f()},l=function(t,e,n){this.isOpen=t,this.v=e,this.pos=n};function h(t,e){return t.pos>e.pos?1:t.pos0&&(t[n].insert(i),i[r].insert(t))};n("next","prev"),n("prev","next")}};function g(t,e,n,r){void 0===r&&(r=!1);var i=t.padding,o=void 0!==t.groups?t.groups.length:0,a=void 0!==t.leaves?t.leaves.length:0,s=o?t.groups.reduce(function(t,r){return t.concat(g(r,e,n,!0))},[]):[],u=(r?2:0)+a+o,c=new Array(u),l=new Array(u),h=0,f=function(t,e){l[h]=t,c[h++]=e};if(r){var d=t.bounds,p=e.getCentre(d),m=e.getSize(d)/2,y=e.getOpen(d),_=e.getClose(d),w=p-m+i/2,b=p+m-i/2;t.minVar.desiredPosition=w,f(e.makeRect(y,_,w,i),t.minVar),t.maxVar.desiredPosition=b,f(e.makeRect(y,_,b,i),t.maxVar)}a&&t.leaves.forEach(function(t){return f(t.bounds,t.variable)}),o&&t.groups.forEach(function(t){var n=t.bounds;f(e.makeRect(e.getOpen(n),e.getClose(n),e.getCentre(n),e.getSize(n)),t.minVar)});var x=v(l,c,e,n);return o&&(c.forEach(function(t){t.cOut=[],t.cIn=[]}),x.forEach(function(t){t.left.cOut.push(t),t.right.cIn.push(t)}),t.groups.forEach(function(t){var n=(t.padding-e.getSize(t.bounds))/2;t.minVar.cIn.forEach(function(t){return t.gap+=n}),t.minVar.cOut.forEach(function(e){e.left=t.maxVar,e.gap+=n})})),s.concat(x)}function v(t,e,n,r){var i,a=t.length,s=2*a;console.assert(e.length>=a);var u=new Array(s);for(i=0;it[n]&&(t[n]=e)}o=t})}},t.prototype.createAlignment=function(t){var e=this,n=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var r="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach(function(t){r.push(new o.Constraint(n,e.nodes[t.node].variable,t.offset,!0))})},t.prototype.createConstraints=function(t){var e=this,n=function(t){return void 0===t.type||"separation"===t.type};this.xConstraints=t.filter(function(t){return"x"===t.axis&&n(t)}).map(function(t){return e.createSeparation(t)}),this.yConstraints=t.filter(function(t){return"y"===t.axis&&n(t)}).map(function(t){return e.createSeparation(t)}),t.filter(function(t){return"alignment"===t.type}).forEach(function(t){return e.createAlignment(t)})},t.prototype.setupVariablesAndBounds=function(t,e,n,r){this.nodes.forEach(function(i,o){i.fixed?(i.variable.weight=i.fixedWeight?i.fixedWeight:1e3,n[o]=r(i)):i.variable.weight=1;var a=(i.width||0)/2,s=(i.height||0)/2,c=t[o],l=e[o];i.bounds=new u(c-a,c+a,l-s,l+s)})},t.prototype.xProject=function(t,e,n){(this.rootGroup||this.avoidOverlaps||this.xConstraints)&&this.project(t,e,t,n,function(t){return t.px},this.xConstraints,_,function(t){return t.bounds.setXCentre(n[t.variable.index]=t.variable.position())},function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.x=e-i,t.bounds.X=r+i})},t.prototype.yProject=function(t,e,n){(this.rootGroup||this.yConstraints)&&this.project(t,e,e,n,function(t){return t.py},this.yConstraints,w,function(t){return t.bounds.setYCentre(n[t.variable.index]=t.variable.position())},function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.y=e-i,t.bounds.Y=r+i})},t.prototype.projectFunctions=function(){var t=this;return[function(e,n,r){return t.xProject(e,n,r)},function(e,n,r){return t.yProject(e,n,r)}]},t.prototype.project=function(t,e,n,r,i,o,a,u,c){this.setupVariablesAndBounds(t,e,r,i),this.rootGroup&&this.avoidOverlaps&&(s(this.rootGroup),o=o.concat(a(this.rootGroup))),this.solve(this.variables,o,n,r),this.nodes.forEach(u),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(c),s(this.rootGroup))},t.prototype.solve=function(t,e,n,r){var i=new o.Solver(t,e);i.setStartingPositions(n),i.setDesiredPositions(r),i.solve()},t}()},99147:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(741),i=function(t,e){this.id=t,this.distance=e},o=function(t){this.id=t,this.neighbours=[]},a=function(t,e,n){this.node=t,this.prev=e,this.d=n};e.Calculator=function(){function t(t,e,n,r,a){this.n=t,this.es=e,this.neighbours=new Array(this.n);for(var s=this.n;s--;)this.neighbours[s]=new o(s);for(s=this.es.length;s--;){var u=this.es[s],c=n(u),l=r(u),h=a(u);this.neighbours[c].neighbours.push(new i(l,h)),this.neighbours[l].neighbours.push(new i(c,h))}}return t.prototype.DistanceMatrix=function(){for(var t=new Array(this.n),e=0;eh&&(c.d=h,c.prev=s,n.reduceKey(c.q,c,function(t,e){return t.q=e}))}}return o},t}()},70980:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,n=t.weight;this.AB+=n*e*(t.offset/t.scale),this.AD+=n*e*t.desiredPosition,this.A2+=n*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();e.PositionStats=n;var r=function(){function t(t,e,n,r){void 0===r&&(r=!1),this.left=t,this.right=e,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=n,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();e.Constraint=r;var i=function(){function t(t,e,n){void 0===e&&(e=1),void 0===n&&(n=1),this.desiredPosition=t,this.weight=e,this.scale=n,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var n=function(n,r){return n.active&&t!==r&&e(n,r)};this.cOut.forEach(function(t){return n(t,t.right)}),this.cIn.forEach(function(t){return n(t,t.left)})},t}();e.Variable=i;var o=function(){function t(t){this.vars=[],t.offset=0,this.ps=new n(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();e.Solver=s,e.removeOverlapInOneDimension=function(t,e,n){for(var o=t.map(function(t){return new i(t.desiredCenter)}),a=[],u=t.length,c=0;c{class t{constructor(t,e){this.sideMenuService=t,this.sideMenuItemService=e}ngOnInit(){this.sideMenuService.setAdminItems([])}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(u.D),s.Y36(a.V))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"perun-web-apps-back-button"),s.TgZ(2,"h1",1),s._UZ(3,"mat-icon",2),s._uU(4),s.ALo(5,"translate"),s.qZA(),s._UZ(6,"app-animated-router-outlet"),s.qZA()),2&t&&(s.xp6(3),s.Q6J("ngStyle",s.DdM(4,d)),s.xp6(1),s.hij(" ",s.lcZ(5,2,"ADMIN.TITLE")," "))},directives:[c.W,l.Hw,i.PC,h.A],pipes:[f.X$],styles:[""]}),t})();var g=n(8557);let m=(()=>{class t{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"}]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"perun-web-apps-menu-buttons-field",0),s.qZA()),2&t&&(s.xp6(1),s.Q6J("items",e.navItems)("size","small"))},directives:[g.L],styles:[""]}),t})();var v=n(4230),y=n(84608),_=n(67033),w=n(88426),b=n(33642),x=n(15980),E=n(67806),T=n(39571);function A(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function S(t,e){1&t&&s._UZ(0,"th",16)}function I(t,e){if(1&t&&(s.TgZ(0,"td",17),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.friendlyName," ")}}function C(t,e){1&t&&s._UZ(0,"tr",18)}function D(t,e){1&t&&s._UZ(0,"tr",19)}function N(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"div"),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,S,1,0,"th",11),s.YNc(10,I,2,1,"td",12),s.BQk(),s.YNc(11,C,1,0,"tr",13),s.YNc(12,D,1,0,"tr",14),s.qZA(),s.TgZ(13,"app-alert",15),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,6,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE1")," "),s.xp6(3),s.hij(" ",s.lcZ(6,8,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE2")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns),s.xp6(2),s.hij(" ",s.lcZ(15,10,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.WARNING")," ")}}let k=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.notificator=n,this.translate=r,this.attributesManager=i,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new _.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const t=[];for(const e of this.data.attributes)t.push(e.id);this.attributesManager.deleteAttributeDefinitions(t).subscribe(()=>{this.translate.get("DIALOGS.DELETE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","error",1,"mt-3"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,A,1,0,"mat-spinner",1),s.YNc(5,N,16,12,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[y.uh,i.O5,y.H8,x.lW,E.$g,y.xY,_.BZ,_.w1,_.fO,_.Dz,_.as,_.nj,T.w,_.ge,_.ev,_.XQ,_.Gk],pipes:[f.X$],styles:[""]}),t})();var Z=n(14732),M=n(36922),O=n(66283),R=n(80340),L=n(16073),U=n(10901),P=n(4786),F=n(27521),q=n(29236),z=n(71522);function j(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function Y(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function B(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function J(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function G(t,e){if(1&t&&(s.TgZ(0,"mat-option",29),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.Oqu(t)}}function V(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function H(t,e){if(1&t&&(s.TgZ(0,"mat-option",29),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.Oqu(t)}}function Q(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function W(t,e){if(1&t&&(s.TgZ(0,"mat-option",29),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.Oqu(t)}}function $(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function X(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"mat-form-field",9),s.TgZ(2,"label"),s.TgZ(3,"input",10),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().attDef.friendlyName=e}),s.ALo(4,"translate"),s.qZA(),s.qZA(),s.YNc(5,Y,3,3,"mat-error",11),s.qZA(),s._UZ(6,"br"),s.TgZ(7,"mat-form-field",9),s.TgZ(8,"label"),s.TgZ(9,"input",10),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().attDef.displayName=e}),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.YNc(11,B,3,3,"mat-error",11),s.qZA(),s._UZ(12,"br"),s.TgZ(13,"mat-form-field",9),s.TgZ(14,"label"),s.TgZ(15,"textarea",12),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().attDef.description=e}),s.ALo(16,"translate"),s._uU(17," "),s.qZA(),s.qZA(),s.YNc(18,J,3,3,"mat-error",11),s.qZA(),s._UZ(19,"br"),s.TgZ(20,"mat-form-field",9),s.TgZ(21,"mat-placeholder"),s._uU(22),s.ALo(23,"translate"),s.qZA(),s.TgZ(24,"mat-select",13),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().entity=e}),s.YNc(25,G,2,2,"mat-option",14),s.qZA(),s.YNc(26,V,3,3,"mat-error",11),s.qZA(),s._UZ(27,"br"),s.TgZ(28,"mat-form-field",9),s.TgZ(29,"mat-placeholder"),s._uU(30),s.ALo(31,"translate"),s.qZA(),s.TgZ(32,"mat-select",13),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().definitionType=e}),s.YNc(33,H,2,2,"mat-option",14),s.qZA(),s.YNc(34,Q,3,3,"mat-error",11),s.qZA(),s._UZ(35,"br"),s.TgZ(36,"mat-form-field",9),s.TgZ(37,"mat-placeholder"),s._uU(38),s.ALo(39,"translate"),s.qZA(),s.TgZ(40,"mat-select",13),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().valueType=e}),s.YNc(41,W,2,2,"mat-option",14),s.qZA(),s.YNc(42,$,3,3,"mat-error",11),s.qZA(),s._UZ(43,"br"),s.TgZ(44,"div",15),s.TgZ(45,"p"),s._uU(46),s.ALo(47,"translate"),s.qZA(),s.TgZ(48,"p",16),s.NdJ("click",function(){return s.CHM(t),s.oxw().attDef.unique=!1}),s._uU(49,"OFF"),s.qZA(),s.TgZ(50,"mat-slide-toggle",17),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().attDef.unique=e}),s.ALo(51,"translate"),s._uU(52," ON "),s.qZA(),s.qZA(),s.TgZ(53,"div",18),s.TgZ(54,"p",19),s._uU(55),s.ALo(56,"translate"),s.qZA(),s.TgZ(57,"p",20),s._uU(58),s.ALo(59,"translate"),s.qZA(),s.qZA(),s.TgZ(60,"div",21),s.TgZ(61,"p",22),s._uU(62),s.ALo(63,"translate"),s.qZA(),s.TgZ(64,"mat-checkbox",23),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readSelf=e}),s.qZA(),s.TgZ(65,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeSelf=e}),s.qZA(),s.qZA(),s.TgZ(66,"div",21),s.TgZ(67,"p",22),s._uU(68),s.ALo(69,"translate"),s.qZA(),s.TgZ(70,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readSelfPublic=e}),s.qZA(),s.TgZ(71,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeSelfPublic=e}),s.qZA(),s.qZA(),s.TgZ(72,"div",21),s.TgZ(73,"p",22),s._uU(74),s.ALo(75,"translate"),s.qZA(),s.TgZ(76,"mat-checkbox",26),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readSelfVo=e}),s.qZA(),s.TgZ(77,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeSelfVo=e}),s.qZA(),s.qZA(),s.TgZ(78,"div",21),s.TgZ(79,"p",22),s._uU(80),s.ALo(81,"translate"),s.qZA(),s.TgZ(82,"mat-checkbox",27),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readVo=e}),s.qZA(),s.TgZ(83,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeVo=e}),s.qZA(),s.qZA(),s.TgZ(84,"div",21),s.TgZ(85,"p",22),s._uU(86),s.ALo(87,"translate"),s.qZA(),s.TgZ(88,"mat-checkbox",28),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readGroup=e}),s.qZA(),s.TgZ(89,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeGroup=e}),s.qZA(),s.qZA(),s.TgZ(90,"div",21),s.TgZ(91,"p",22),s._uU(92),s.ALo(93,"translate"),s.qZA(),s.TgZ(94,"mat-checkbox",26),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readFacility=e}),s.qZA(),s.TgZ(95,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeFacility=e}),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.s9C("placeholder",s.lcZ(4,46,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),s.Q6J("ngModel",t.attDef.friendlyName),s.xp6(2),s.Q6J("ngIf",""===t.attDef.friendlyName),s.xp6(4),s.s9C("placeholder",s.lcZ(10,48,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),s.Q6J("ngModel",t.attDef.displayName),s.xp6(2),s.Q6J("ngIf",""===t.attDef.displayName),s.xp6(4),s.s9C("placeholder",s.lcZ(16,50,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),s.Q6J("ngModel",t.attDef.description),s.xp6(3),s.Q6J("ngIf",""===t.attDef.description),s.xp6(4),s.Oqu(s.lcZ(23,52,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),s.xp6(2),s.Q6J("ngModel",t.entity),s.xp6(1),s.Q6J("ngForOf",t.entities),s.xp6(1),s.Q6J("ngIf",""===t.attDef.entity),s.xp6(4),s.Oqu(s.lcZ(31,54,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),s.xp6(2),s.Q6J("ngModel",t.definitionType),s.xp6(1),s.Q6J("ngForOf",t.definitionTypes),s.xp6(1),s.Q6J("ngIf",""===t.definitionType),s.xp6(4),s.Oqu(s.lcZ(39,56,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),s.xp6(2),s.Q6J("ngModel",t.valueType),s.xp6(1),s.Q6J("ngForOf",t.valueTypes),s.xp6(1),s.Q6J("ngIf",""===t.valueType),s.xp6(4),s.Oqu(s.lcZ(47,58,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.UNIQUE")),s.xp6(4),s.s9C("matTooltip",s.lcZ(51,60,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),s.Q6J("matTooltipDisabled",!t.disableUniqueToggle())("disabled",t.disableUniqueToggle())("ngModel",t.attDef.unique),s.xp6(5),s.Oqu(s.lcZ(56,62,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),s.xp6(3),s.Oqu(s.lcZ(59,64,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),s.xp6(4),s.Oqu(s.lcZ(63,66,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),s.xp6(2),s.Q6J("ngModel",t.readSelf),s.xp6(1),s.Q6J("ngModel",t.writeSelf),s.xp6(3),s.Oqu(s.lcZ(69,68,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),s.xp6(2),s.Q6J("ngModel",t.readSelfPublic),s.xp6(1),s.Q6J("ngModel",t.writeSelfPublic),s.xp6(3),s.Oqu(s.lcZ(75,70,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),s.xp6(2),s.Q6J("ngModel",t.readSelfVo),s.xp6(1),s.Q6J("ngModel",t.writeSelfVo),s.xp6(3),s.Oqu(s.lcZ(81,72,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),s.xp6(2),s.Q6J("ngModel",t.readVo),s.xp6(1),s.Q6J("ngModel",t.writeVo),s.xp6(3),s.Oqu(s.lcZ(87,74,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),s.xp6(2),s.Q6J("ngModel",t.readGroup),s.xp6(1),s.Q6J("ngModel",t.writeGroup),s.xp6(3),s.Oqu(s.lcZ(93,76,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),s.xp6(2),s.Q6J("ngModel",t.readFacility),s.xp6(1),s.Q6J("ngModel",t.writeFacility)}}let K=(()=>{class t{constructor(t,e,n,r){this.dialogRef=t,this.notificator=e,this.translate=n,this.attributesManager=r,this.loading=!1,this.entities=["facility","resource","group","group_resource","host","member","member_group","member_resource","user","user_ext_source","user_facility","vo","entityless"],this.definitionTypes=["def","opt","virt","core"],this.definitionType="",this.valueTypes=["String","Integer","Boolean","Array","LinkedHashMap"],this.valueType="",this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1}ngOnInit(){this.attDef={beanName:"",description:"",displayName:"",entity:"",friendlyName:"",id:void 0,namespace:"",type:"",unique:!1,writable:!1}}onSubmit(){this.loading=!0,this.attDef.namespace="urn:perun:"+this.entity+":attribute-def:"+this.definitionType,this.readValueType(),this.attributesManager.createAttributeDefinition({attribute:this.attDef}).subscribe(t=>{this.attDef=t,this.attributesManager.setAttributeRights({rights:this.readRights()}).subscribe(()=>{this.translate.get("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}readRights(){const t=[],e={};e.attributeId=this.attDef.id,e.role=Z.u.SELF,e.rights=[],this.readSelf&&e.rights.push("READ"),this.readSelfPublic&&e.rights.push("READ_PUBLIC"),this.readSelfVo&&e.rights.push("READ_VO"),this.writeSelf&&e.rights.push("WRITE"),this.writeSelfPublic&&e.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&e.rights.push("WRITE_VO"),t.push(e);const n={};n.attributeId=this.attDef.id,n.role=Z.u.VOADMIN,n.rights=[],this.readVo&&n.rights.push(b.Us.READ),this.writeVo&&n.rights.push(b.Us.WRITE),t.push(n);const r={};r.attributeId=this.attDef.id,r.role=Z.u.GROUPADMIN,r.rights=[],this.readGroup&&r.rights.push(b.Us.READ),this.writeGroup&&r.rights.push(b.Us.WRITE),t.push(r);const i={};return i.attributeId=this.attDef.id,i.role=Z.u.FACILITYADMIN,i.rights=[],this.readFacility&&i.rights.push(b.Us.READ),this.writeFacility&&i.rights.push(b.Us.WRITE),t.push(i),t}readValueType(){switch(this.valueType){case"String":this.attDef.type="java.lang.String";break;case"Integer":this.attDef.type="java.lang.Integer";break;case"Boolean":this.attDef.type="java.lang.Boolean";break;case"Array":this.attDef.type="java.util.ArrayList";break;case"LinkedHashMap":this.attDef.type="java.util.LinkedHashMap"}}disableConfirmButton(){return""===this.attDef.friendlyName||""===this.attDef.displayName||""===this.attDef.description||""===this.entity||""===this.definitionType||""===this.valueType||this.loading}disableUniqueToggle(){return("virt"===this.definitionType||"entityless"===this.entity)&&(this.attDef.unique=!1,!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-create-attribute-definition-dialog"]],decls:14,vars:16,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltip","matTooltipDisabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"form-field-width"],["matInput","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],[4,"ngIf"],["matInput","","cdkTextareaAutosize","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],["required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","matTooltipDisabled","disabled","ngModel","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[3,"value"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,j,1,0,"mat-spinner",2),s.YNc(5,X,96,78,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.onSubmit()}),s.ALo(11,"translate"),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,8,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(11,12,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),s.Q6J("disabled",e.disableConfirmButton())("matTooltipDisabled",!e.disableConfirmButton()),s.xp6(2),s.hij(" ",s.lcZ(13,14,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[y.uh,i.O5,y.H8,x.lW,M.gM,E.$g,y.xY,O.KE,R.Nt,L.Fj,L.Q7,L.JJ,L.On,U.IC,O.UY,P.gD,i.sg,F.Rr,q.oG,O.TO,z.ey],pipes:[f.X$],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.form-field-width[_ngcontent-%COMP%]{width:450px}.pointer[_ngcontent-%COMP%]{cursor:pointer}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"]}),t})();var tt=n(84140),et=n(60611);function nt(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function rt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"app-alert",9),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-form-field",10),s.TgZ(5,"input",11),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().value=e}),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.IMPORT_ATTRIBUTE.INFO")," "),s.xp6(3),s.Q6J("ngModel",t.value)("placeholder",s.lcZ(6,5,"DIALOGS.IMPORT_ATTRIBUTE.HINT"))}}let it=(()=>{class t{constructor(t,e,n,r){this.dialogRef=t,this.notificator=e,this.translate=n,this.attributesManager=r,this.value="",this.loading=!1}create(){try{this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).subscribe(t=>{for(let e=0;e{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)})},()=>this.loading=!1)}catch(t){console.log(t),this.notificator.showError(t),this.loading=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-attribute-import-dialog"]],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-stroked-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,nt,1,0,"mat-spinner",2),s.YNc(5,rt,7,7,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.dialogRef.close()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.create()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.hij(" ",s.lcZ(3,6,"DIALOGS.IMPORT_ATTRIBUTE.TITLE")," "),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,8,"DIALOGS.IMPORT_ATTRIBUTE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",0===e.value.trim().length||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,10,"DIALOGS.IMPORT_ATTRIBUTE.CREATE")," "))},directives:[y.uh,i.O5,y.H8,x.lW,E.$g,y.xY,T.w,O.KE,R.Nt,L.Fj,L.Q7,L.JJ,L.On],pipes:[f.X$],styles:[""]}),t})();var ot=n(59403),at=n(19139),st=n(58623),ut=n(17),ct=n(81391),lt=n(91721),ht=n(41939),ft=n(82819),dt=n(51556);function pt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",22),s.TgZ(1,"mat-checkbox",23),s.NdJ("change",function(e){s.CHM(t);const n=s.oxw(2);return e?n.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function gt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",24),s.TgZ(1,"mat-checkbox",25),s.NdJ("change",function(e){const n=s.CHM(t).$implicit,r=s.oxw(2);return e?r.selection.toggle(n):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw(2);s.xp6(1),s.Q6J("aria-label",n.checkboxLabel(t))("checked",n.selection.isSelected(t))}}function mt(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.KEY")," "))}function vt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",27),s.TgZ(1,"label"),s.TgZ(2,"input",28),s.NdJ("ngModelChange",function(){const e=s.CHM(t).$implicit;return s.oxw(2).onValueChange(e)})("ngModelChange",function(t){return e.$implicit[0]=t}),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(2),s.Q6J("ngModel",t[0])}}function yt(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.VALUE")," "))}function _t(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",27),s.TgZ(1,"perun-web-apps-attribute-value",29),s.NdJ("sendEventToParent2",function(){const e=s.CHM(t).$implicit;return s.oxw(2).onValueChange(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.Q6J("attribute",t[1])}}function wt(t,e){1&t&&s._UZ(0,"tr",30)}function bt(t,e){1&t&&s._UZ(0,"tr",31)}function xt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",10),s.TgZ(1,"perun-web-apps-table-wrapper",11),s.NdJ("page",function(e){return s.CHM(t),s.oxw().page.emit(e)}),s.TgZ(2,"table",12),s.ynx(3,13),s.YNc(4,pt,2,3,"th",14),s.YNc(5,gt,2,2,"td",15),s.BQk(),s.ynx(6,16),s.YNc(7,mt,3,3,"th",17),s.YNc(8,vt,3,1,"td",18),s.BQk(),s.ynx(9,19),s.YNc(10,yt,3,3,"th",17),s.YNc(11,_t,2,1,"td",18),s.BQk(),s.YNc(12,wt,1,0,"tr",20),s.YNc(13,bt,1,0,"tr",21),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("dataLength",t.dataSource.filteredData.length)("hideExport",!0)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),s.xp6(1),s.Q6J("dataSource",t.dataSource),s.xp6(10),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}function Et(t,e){1&t&&s._UZ(0,"mat-spinner",32)}function Tt(t,e){1&t&&(s.TgZ(0,"app-alert",33),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.NO_KEYS_WARNING")," "))}let At=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.notificator=n,this.translate=r,this.attributesManager=i,this.pageSize=10,this.page=new s.vpe,this.switchView=new s.vpe,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new _.by,this.selection=new v.Ov(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=tt.f7}set matSort(t){this.sort=t}ngOnChanges(){this.ngOnInit()}ngOnInit(){this.loading=!0,this.attDef=this.data.attDef,this.attributesManager.getEntitylessKeys(this.attDef.id).subscribe(t=>{this.attributesManager.getEntitylessAttributesByName(`${this.attDef.namespace}:${this.attDef.friendlyName}`).subscribe(e=>{let n=0;this.records=[];for(const r of t)this.records.push([r,e[n]]),n++;this.dataSource=new _.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 t of this.selection.selected)this.attributesManager.setEntitylessAttribute({key:t[0],attribute:t[1]}).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.ngOnInit()})});this.selection.clear(),this.isAddButtonDisabled=!1}onRemove(){for(const t of this.selection.selected)this.attributesManager.removeEntitylessAttribute(t[0],t[1].id).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.ngOnInit()})});this.ngOnInit(),this.selection.clear(),this.isAddButtonDisabled=!1}onAdd(){const t=["",this.attDef];t[1].value=void 0,this.records.unshift(t),this.dataSource.data=this.records,this.setDataSource(),this.selection.clear(),this.selection.select(t),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(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t[1].id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onValueChange(t){this.selection.select(t)}updateMapAttributes(){for(const t of this.items.toArray())"java.util.LinkedHashMap"===t.attribute.type&&t.updateMapAttribute()}ngAfterViewInit(){this.children.changes.subscribe(t=>{this.child=t.first,this.dataSource.paginator=this.child.paginator})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(st.YE,7),s.Gf(tt.l9,5),s.Gf(ht.Mw,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.children=t),s.iGM(t=s.CRH())&&(e.items=t)}},inputs:{attDef:"attDef",pageSize:"pageSize"},outputs:{page:"page",switchView:"switchView"},features:[s.TTD],decls:19,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-actions","",1,"mt-3"],["mat-stroked-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","accent","matTooltip","save or remove new attribute first","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","click"],["mat-flat-button","","color","warn",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","info","class","mt-3",4,"ngIf"],[1,"card","mt-3"],[3,"dataLength","hideExport","pageSizeOptions","pageSize","page"],["mat-table","","matSort","","matSortActive","key","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["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","info",1,"mt-3"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div",1),s.TgZ(3,"button",2),s.NdJ("click",function(){return e.switchView.emit()}),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"button",3),s.NdJ("click",function(){return e.onSave()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",4),s.NdJ("click",function(){return e.onAdd()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"button",5),s.NdJ("click",function(){return e.onRemove()}),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.TgZ(15,"div",6),s.YNc(16,xt,14,7,"div",7),s.YNc(17,Et,1,0,"mat-spinner",8),s.YNc(18,Tt,3,3,"app-alert",9),s.qZA()),2&t&&(s.xp6(1),s.Oqu(e.attDef.namespace+":"+e.attDef.friendlyName),s.xp6(3),s.hij(" ",s.lcZ(5,11,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.CANCEL")," "),s.xp6(3),s.hij(" ",s.lcZ(8,13,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE")," "),s.xp6(2),s.Q6J("disabled",e.isAddButtonDisabled)("matTooltipDisabled",!e.isAddButtonDisabled),s.xp6(1),s.hij(" ",s.lcZ(11,15,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.ADD")," "),s.xp6(3),s.hij(" ",s.lcZ(14,17,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE")," "),s.xp6(2),s.Q6J("hidden",e.loading),s.xp6(1),s.Q6J("ngIf",e.records&&e.records.length),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",0===e.records.length))},directives:[y.uh,y.H8,x.lW,M.gM,y.xY,i.O5,ft.l,_.BZ,st.YE,_.w1,_.fO,_.Dz,_.as,_.nj,_.ge,q.oG,_.ev,st.nU,R.Nt,L.Fj,L.JJ,L.On,dt.M,_.XQ,_.Gk,E.$g,T.w],pipes:[f.X$],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),t})();const St=["copiedTooltip"];function It(t,e){1&t&&s._UZ(0,"mat-spinner",12)}function Ct(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function Dt(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}const Nt=function(){return["id","name","enabled","script"]};function kt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",13),s.TgZ(1,"mat-form-field",3),s.TgZ(2,"label"),s.TgZ(3,"input",14),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).attDef.displayName=e}),s.ALo(4,"translate"),s.qZA(),s.qZA(),s.YNc(5,Ct,3,3,"mat-error",2),s.qZA(),s._UZ(6,"br"),s.TgZ(7,"mat-form-field",3),s.TgZ(8,"label"),s.TgZ(9,"textarea",15),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).attDef.description=e}),s.ALo(10,"translate"),s._uU(11," "),s.qZA(),s.qZA(),s.YNc(12,Dt,3,3,"mat-error",2),s.qZA(),s._UZ(13,"br"),s.TgZ(14,"div",16),s.TgZ(15,"p"),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"p",17),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).attDef.unique=!1}),s._uU(19,"OFF"),s.qZA(),s.TgZ(20,"mat-slide-toggle",18),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).attDef.unique=e}),s.ALo(21,"translate"),s._uU(22," ON "),s.qZA(),s.qZA(),s.TgZ(23,"div",19),s.TgZ(24,"p",20),s._uU(25),s.ALo(26,"translate"),s.qZA(),s.TgZ(27,"p",21),s._uU(28),s.ALo(29,"translate"),s.qZA(),s.qZA(),s.TgZ(30,"div",22),s.TgZ(31,"p",23),s._uU(32),s.ALo(33,"translate"),s.qZA(),s.TgZ(34,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readSelf=e}),s.qZA(),s.TgZ(35,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeSelf=e}),s.qZA(),s.qZA(),s.TgZ(36,"div",22),s.TgZ(37,"p",23),s._uU(38),s.ALo(39,"translate"),s.qZA(),s.TgZ(40,"mat-checkbox",26),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readSelfPublic=e}),s.qZA(),s.TgZ(41,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeSelfPublic=e}),s.qZA(),s.qZA(),s.TgZ(42,"div",22),s.TgZ(43,"p",23),s._uU(44),s.ALo(45,"translate"),s.qZA(),s.TgZ(46,"mat-checkbox",27),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readSelfVo=e}),s.qZA(),s.TgZ(47,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeSelfVo=e}),s.qZA(),s.qZA(),s.TgZ(48,"div",22),s.TgZ(49,"p",23),s._uU(50),s.ALo(51,"translate"),s.qZA(),s.TgZ(52,"mat-checkbox",28),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readVo=e}),s.qZA(),s.TgZ(53,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeVo=e}),s.qZA(),s.qZA(),s.TgZ(54,"div",22),s.TgZ(55,"p",23),s._uU(56),s.ALo(57,"translate"),s.qZA(),s.TgZ(58,"mat-checkbox",29),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readGroup=e}),s.qZA(),s.TgZ(59,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeGroup=e}),s.qZA(),s.qZA(),s.TgZ(60,"div",22),s.TgZ(61,"p",23),s._uU(62),s.ALo(63,"translate"),s.qZA(),s.TgZ(64,"mat-checkbox",27),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readFacility=e}),s.qZA(),s.TgZ(65,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeFacility=e}),s.qZA(),s.qZA(),s.TgZ(66,"div",30),s.TgZ(67,"p"),s._uU(68),s.ALo(69,"translate"),s.qZA(),s._UZ(70,"app-services-list",31),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.xp6(3),s.s9C("placeholder",s.lcZ(4,35,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),s.Q6J("ngModel",t.attDef.displayName),s.xp6(2),s.Q6J("ngIf",""===t.attDef.displayName),s.xp6(4),s.s9C("placeholder",s.lcZ(10,37,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),s.Q6J("ngModel",t.attDef.description),s.xp6(3),s.Q6J("ngIf",""===t.attDef.description),s.xp6(4),s.Oqu(s.lcZ(17,39,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.UNIQUE")),s.xp6(4),s.s9C("matTooltip",s.lcZ(21,41,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),s.Q6J("matTooltipDisabled",!t.disableUniqueToggle())("disabled",t.disableUniqueToggle())("ngModel",t.attDef.unique),s.xp6(5),s.Oqu(s.lcZ(26,43,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),s.xp6(3),s.Oqu(s.lcZ(29,45,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),s.xp6(4),s.Oqu(s.lcZ(33,47,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),s.xp6(2),s.Q6J("ngModel",t.readSelf),s.xp6(1),s.Q6J("ngModel",t.writeSelf),s.xp6(3),s.Oqu(s.lcZ(39,49,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),s.xp6(2),s.Q6J("ngModel",t.readSelfPublic),s.xp6(1),s.Q6J("ngModel",t.writeSelfPublic),s.xp6(3),s.Oqu(s.lcZ(45,51,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),s.xp6(2),s.Q6J("ngModel",t.readSelfVo),s.xp6(1),s.Q6J("ngModel",t.writeSelfVo),s.xp6(3),s.Oqu(s.lcZ(51,53,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),s.xp6(2),s.Q6J("ngModel",t.readVo),s.xp6(1),s.Q6J("ngModel",t.writeVo),s.xp6(3),s.Oqu(s.lcZ(57,55,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),s.xp6(2),s.Q6J("ngModel",t.readGroup),s.xp6(1),s.Q6J("ngModel",t.writeGroup),s.xp6(3),s.Oqu(s.lcZ(63,57,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),s.xp6(2),s.Q6J("ngModel",t.readFacility),s.xp6(1),s.Q6J("ngModel",t.writeFacility),s.xp6(3),s.Oqu(s.lcZ(69,59,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")),s.xp6(2),s.Q6J("services",t.services)("displayedColumns",s.DdM(61,Nt))("disableRouting",!0)}}function Zt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",32),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).switchShowKeys()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SHOW_KEYS")," "))}function Mt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",3),s.TgZ(2,"h1",4),s._uU(3),s.qZA(),s.YNc(4,It,1,0,"mat-spinner",5),s.YNc(5,kt,71,62,"div",6),s.TgZ(6,"div",7),s.YNc(7,Zt,3,3,"button",8),s.TgZ(8,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCopy()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.TgZ(11,"button",10),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.TgZ(14,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s.ALo(15,"translate"),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.Oqu(t.attDef.namespace+":"+t.attDef.friendlyName),s.xp6(1),s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading),s.xp6(2),s.Q6J("ngIf","entityless"===t.attDef.entity),s.xp6(2),s.hij(" ",s.lcZ(10,10,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FOR_IMPORT")," "),s.xp6(3),s.hij(" ",s.lcZ(13,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CANCEL")," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(15,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),s.Q6J("disabled",t.disableConfirmButton()||t.loading)("matTooltipDisabled",!t.disableConfirmButton()),s.xp6(2),s.hij(" ",s.lcZ(17,16,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function Ot(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"app-entityless-attribute-keys-list",33),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)})("switchView",function(){return s.CHM(t),s.oxw().switchShowKeys()}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("pageSize",t.pageSize)("attDef",t.attDef)}}let Rt=(()=>{class t{constructor(t,e,n,r,i,o,a,s,u){this.dialog=t,this.dialogRef=e,this.data=n,this.notificator=r,this.translate=i,this.clipboard=o,this.attributesManager=a,this.tableConfigService=s,this.serviceService=u,this.showKeys=!1,this.activatedComponent="Edit",this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1,this.tableId=et.Wv,this.loading=!1}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attDef=this.data.attDef,this.serviceService.getServicesByAttributeDefinition(this.attDef.id).subscribe(t=>{this.services=t,this.attributesManager.getAttributeRights(this.attDef.id).subscribe(t=>{this.fromRightsToCheckboxes(t),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}disableConfirmButton(){return""===this.attDef.displayName||""===this.attDef.description}disableUniqueToggle(){return this.attDef.namespace.includes("virt")||this.attDef.namespace.includes("core")||"entityless"===this.attDef.entity}onSubmit(){this.loading=!0,this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).subscribe(t=>{this.attDef=t,this.attributesManager.setAttributeRights({rights:this.fromCheckboxesToRights()}).subscribe(()=>{this.translate.get("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}fromCheckboxesToRights(){const t=[],e={};e.attributeId=this.attDef.id,e.role=Z.u.SELF,e.rights=[],this.readSelf&&e.rights.push("READ"),this.readSelfPublic&&e.rights.push("READ_PUBLIC"),this.readSelfVo&&e.rights.push("READ_VO"),this.writeSelf&&e.rights.push("WRITE"),this.writeSelfPublic&&e.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&e.rights.push("WRITE_VO"),t.push(e);const n={};n.attributeId=this.attDef.id,n.role=Z.u.VOADMIN,n.rights=[],this.readVo&&n.rights.push("READ"),this.writeVo&&n.rights.push("WRITE"),t.push(n);const r={};r.attributeId=this.attDef.id,r.role=Z.u.GROUPADMIN,r.rights=[],this.readGroup&&r.rights.push(b.Us.READ),this.writeGroup&&r.rights.push("WRITE"),t.push(r);const i={};return i.attributeId=this.attDef.id,i.role=Z.u.FACILITYADMIN,i.rights=[],this.readFacility&&i.rights.push("READ"),this.writeFacility&&i.rights.push("WRITE"),t.push(i),t}fromRightsToCheckboxes(t){for(const e of t)switch(e.role){case Z.u.SELF:e.rights.includes("READ")&&(this.readSelf=!0),e.rights.includes("READ_PUBLIC")&&(this.readSelfPublic=!0),e.rights.includes("READ_VO")&&(this.readSelfVo=!0),e.rights.includes("WRITE")&&(this.writeSelf=!0),e.rights.includes("WRITE_PUBLIC")&&(this.writeSelfPublic=!0),e.rights.includes("WRITE_VO")&&(this.writeSelfVo=!0);break;case Z.u.GROUPADMIN:e.rights.includes("READ")&&(this.readGroup=!0),e.rights.includes("WRITE")&&(this.writeGroup=!0);break;case Z.u.FACILITYADMIN:e.rights.includes("READ")&&(this.readFacility=!0),e.rights.includes("WRITE")&&(this.writeFacility=!0);break;case Z.u.VOADMIN:e.rights.includes("READ")&&(this.readVo=!0),e.rights.includes("WRITE")&&(this.writeVo=!0)}}switchShowKeys(){this.showKeys=!this.showKeys,this.showKeys?(this.dialogRef.updateSize("800px"),this.activatedComponent="Entityless"):(this.dialogRef.updateSize("700px"),this.activatedComponent="Edit")}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}onCopy(){const t={attributeDefinition:this.attDef,attributeRights:this.fromCheckboxesToRights()};this.clipboard.copy(JSON.stringify(t))?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(y.so),s.Y36(y.WI),s.Y36(w.V6),s.Y36(f.sK),s.Y36(ct.TU),s.Y36(b.H8),s.Y36(et.dB),s.Y36(b.KK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-edit-attribute-definition-dialog"]],viewQuery:function(t,e){if(1&t&&s.Gf(St,5),2&t){let t;s.iGM(t=s.CRH())&&(e.copiedToolTip=t.first)}},decls:4,vars:2,consts:[[1,"admin-theme"],[1,"parent"],[4,"ngIf"],[1,"width-650"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","","class","ml-0",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],["mat-flat-button","","color","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltip","matTooltipDisabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["matInput","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],["matInput","","cdkTextareaAutosize","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","matTooltipDisabled","disabled","ngModel","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[1,"mt-4"],[3,"services","displayedColumns","disableRouting"],["mat-flat-button","",1,"ml-0",3,"click"],[3,"pageSize","attDef","page","switchView"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,Mt,18,18,"div",2),s.YNc(3,Ot,2,2,"div",2),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",!e.showKeys),s.xp6(1),s.Q6J("ngIf",e.showKeys))},directives:[i.O5,y.uh,y.H8,x.lW,M.gM,E.$g,y.xY,O.KE,R.Nt,L.Fj,L.Q7,L.JJ,L.On,U.IC,F.Rr,q.oG,lt.Q,O.TO,At],pipes:[f.X$],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.width-650[_ngcontent-%COMP%]{width:650px!important}.pointer[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]{overflow:hidden}.parent[_ngcontent-%COMP%]{display:flex}.parent[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{flex:1}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"],data:{animation:[ut.SG,ut.GH,ut.Ls]}}),t})(),Lt=(()=>{class t{transform(t){if(null===t)return null;const e=t;return e.substring(e.lastIndexOf(":")+1,e.length)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"nameSpaceToDef",type:t,pure:!0}),t})(),Ut=(()=>{class t{transform(t){if(null===t)return null;const e=t;return e.substring(e.lastIndexOf(".")+1,e.length)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"attributeTypeClean",type:t,pure:!0}),t})();function Pt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",18),s.TgZ(1,"mat-checkbox",19),s.NdJ("change",function(e){s.CHM(t);const n=s.oxw();return e?n.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Ft(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",20),s.TgZ(1,"mat-checkbox",21),s.NdJ("change",function(e){const n=s.CHM(t).$implicit,r=s.oxw();return e?r.selection.toggle(n):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.xp6(1),s.Q6J("aria-label",n.checkboxLabel(t))("checked",n.selection.isSelected(t))}}function qt(t,e){1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ID")))}function zt(t,e){if(1&t&&(s.TgZ(0,"td",20),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.id)}}function jt(t,e){1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_FRIENDLY_NAME")))}function Yt(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.friendlyName)}}function Bt(t,e){1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ENTITY")))}function Jt(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.entity)}}function Gt(t,e){1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DEF")))}function Vt(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.ALo(2,"nameSpaceToDef"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,t.namespace))}}function Ht(t,e){1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_TYPE")))}function Qt(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.ALo(2,"attributeTypeClean"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,t.type))}}function Wt(t,e){1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_UNIQUE")))}function $t(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.unique)}}function Xt(t,e){1&t&&s._UZ(0,"tr",24)}function Kt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"tr",25),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().onRowClick(e)}),s.qZA()}if(2&t){const t=s.oxw();s.ekj("cursor-pointer",!t.disableRouting)}}function te(t,e){1&t&&(s.TgZ(0,"app-alert",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.NO_ATTRIBUTES"),"\n"))}function ee(t,e){1&t&&(s.TgZ(0,"app-alert",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let ne=(()=>{class t{constructor(t,e,n){this.dialog=t,this.authResolver=e,this.tableCheckbox=n,this.selection=new v.Ov(!0,[]),this.displayedColumns=["select","id","friendlyName","entity","namespace","type","unique"],this.pageSize=10,this.disableRouting=!1,this.refreshEvent=new s.vpe,this.page=new s.vpe,this.pageSizeOptions=tt.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new _.by(this.definitions),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"friendlyName":return t.friendlyName;case"entity":return t.entity;case"namespace":if(t.namespace){const e=t.namespace;return e.substring(e.lastIndexOf(":")+1,e.length)}return"";case"type":if(t.type){const e=t.type;return e.substring(e.lastIndexOf(".")+1,e.length)}return"";case"unique":return t.unique?"true":"false";default:return""}}exportData(t){(0,tt.O6)((0,tt.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,tt.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,tt.pR)(t,e,this.getDataForColumn,this),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onRowClick(t){if(!this.disableRouting){const e=(0,tt.kZ)();e.width="700px",e.data={attDef:t},this.dialog.open(Rt,e).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.refreshEvent.emit())})}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(w.x4),s.Y36(w.UA))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-attr-def-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(st.YE,7),s.Gf(tt.l9,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{definitions:"definitions",selection:"selection",displayedColumns:"displayedColumns",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{refreshEvent:"refreshEvent",page:"page"},features:[s.TTD],decls:29,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),s.TgZ(2,"div",2),s.TgZ(3,"table",3),s.ynx(4,4),s.YNc(5,Pt,2,3,"th",5),s.YNc(6,Ft,2,2,"td",6),s.BQk(),s.ynx(7,7),s.YNc(8,qt,3,3,"th",8),s.YNc(9,zt,2,1,"td",6),s.BQk(),s.ynx(10,9),s.YNc(11,jt,3,3,"th",8),s.YNc(12,Yt,2,1,"td",10),s.BQk(),s.ynx(13,11),s.YNc(14,Bt,3,3,"th",8),s.YNc(15,Jt,2,1,"td",10),s.BQk(),s.ynx(16,12),s.YNc(17,Gt,3,3,"th",8),s.YNc(18,Vt,3,3,"td",10),s.BQk(),s.ynx(19,13),s.YNc(20,Ht,3,3,"th",8),s.YNc(21,Qt,3,3,"td",10),s.BQk(),s.ynx(22,14),s.YNc(23,Wt,3,3,"th",8),s.YNc(24,$t,2,1,"td",10),s.BQk(),s.YNc(25,Xt,1,0,"tr",15),s.YNc(26,Kt,1,2,"tr",16),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.YNc(27,te,3,3,"app-alert",17),s.YNc(28,ee,3,3,"app-alert",17)),2&t&&(s.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.definitions.length),s.xp6(1),s.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),s.xp6(2),s.Q6J("dataSource",e.dataSource),s.xp6(22),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.definitions.length),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.definitions.length))},directives:[ft.l,_.BZ,st.YE,_.w1,_.fO,_.Dz,_.as,_.nj,i.O5,_.ge,q.oG,_.ev,st.nU,_.XQ,_.Gk,T.w],pipes:[f.X$,Lt,Ut],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function re(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCreate()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.CREATE")," "))}function ie(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onImport()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.IMPORT")," "))}function oe(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onDelete()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.ATTRIBUTES.DELETE")," ")}}function ae(t,e){1&t&&s._UZ(0,"mat-spinner",9)}function se(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-attr-def-list",10),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)})("refreshEvent",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("pageSize",t.pageSize)("definitions",t.attrDefinitions)("selection",t.selected)("filterValue",t.filterValue)("disableRouting",!t.authResolver.isPerunAdmin())}}let ue=(()=>{class t{constructor(t,e,n,r){this.dialog=t,this.attributesManager=e,this.tableConfigService=n,this.authResolver=r,this.attrDefinitions=[],this.selected=new v.Ov(!0,[]),this.filterValue="",this.tableId=et.uM}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}onCreate(){const t=(0,tt.kZ)();t.width="500px",this.dialog.open(K,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onDelete(){const t=(0,tt.kZ)();t.width="450px",t.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(k,t).afterClosed().subscribe(t=>{t&&(this.refreshTable(),this.selected.clear())})}refreshTable(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(t=>{this.attrDefinitions=t,this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}onImport(){const t=(0,tt.kZ)();t.width="700px",this.dialog.open(it,t).afterClosed().subscribe(t=>{!0===t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(b.H8),s.Y36(et.dB),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",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,"pageSize","definitions","selection","filterValue","disableRouting","page","refreshEvent",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","definitions","selection","filterValue","disableRouting","page","refreshEvent"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,re,3,3,"button",2),s.YNc(6,ie,3,3,"button",2),s.YNc(7,oe,3,4,"button",3),s.TgZ(8,"perun-web-apps-immediate-filter",4),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(9,ae,1,0,"mat-spinner",5),s.YNc(10,se,1,5,"app-attr-def-list",6),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,7,"ADMIN.ATTRIBUTES.TITLE")),s.xp6(3),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","ADMIN.ATTRIBUTES.SEARCH"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,ne],pipes:[f.X$],styles:[""]}),t})(),ce=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-visualizer"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"app-animated-router-outlet")},directives:[h.A],styles:[""]}),t})();var le=n(73180);let he=(()=>{class t{constructor(t){this.attributesManager=t}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(t=>{const e=t.graph.replace("\\t","").replace("\\n","").replace("\\","");(0,le.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(e)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-visualizer-attr-modules"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:4,vars:3,consts:[[1,"page-subtitle"],["id","dependenciesGraph",1,"card"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s._UZ(3,"div",1)),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.VISUALIZER.ATTR_DEPENDENCIES.TITLE"),"\n"))},pipes:[f.X$],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),t})(),fe=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-visualizer-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"perun-web-apps-menu-buttons-field",0),s.qZA()),2&t&&(s.xp6(1),s.Q6J("items",e.items)("size","small"))},directives:[g.L],styles:[""]}),t})();var de=n(47701),pe=n(98720),ge=n(66599),me=n(44689),ve=n(70663),ye=n(40084),_e=n(54810);function we(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.Oqu(s.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_USER"))}function be(t,e){1&t&&s._UZ(0,"mat-spinner",17),2&t&&s.Q6J("diameter",20)("strokeWidth",2)}function xe(t,e){if(1&t&&(s.TgZ(0,"mat-option",18),s.TgZ(1,"span",19),s._uU(2),s.qZA(),s._uU(3),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t.firstName+" "+t.lastName),s.xp6(2),s.hij("#",t.id,""),s.xp6(1),s.AsE(" ",t.firstName," ",t.lastName," ")}}function Ee(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.Oqu(s.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_DESTINATION"))}function Te(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.Oqu(s.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_SERVICE"))}function Ae(t,e){if(1&t&&(s.TgZ(0,"mat-radio-button",20),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t," ")}}let Se=(()=>{class t{constructor(t,e,n,r,i,o){this.usersService=t,this.translate=e,this.facilityManager=n,this.serviceService=r,this.router=i,this.notificator=o,this.searchField=new L.NI,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe((0,de.b)(400),(0,pe.x)(),(0,ge.b)(()=>this.loading=!0),(0,me.w)(t=>this.usersService.findUsers(t)),(0,ge.b)(()=>this.loading=!1)),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SELECT_NO_SERVICE").subscribe(t=>{this.noServiceText=t,this.availableServices.push(this.noServiceText)})}validateName(t){""!==this.searchField.value?this.usersService.findUsers(this.searchField.value).subscribe(e=>{for(const n of e){if((n.firstName+" "+n.lastName).toLowerCase()===this.searchField.value.toLowerCase()){this.selectedUser=n,t.selected.completed=!0,t.next();break}this.selectedUser=null}this.selectedUser||this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_NAME").subscribe(t=>{this.notificator.showError(t)})}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_NAME").subscribe(t=>{this.notificator.showError(t)})}validateDestination(t){""!==this.destination?(this.availableServices=[],this.availableServices.push(this.noServiceText),this.chosenService="",this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(e=>{if(0!==e.length){t.selected.completed=!0,t.next();for(const t of e)this.serviceService.getAllRichDestinationsForFacility(t.id).subscribe(t=>{for(const e of t)e.destination===this.destination&&-1===this.availableServices.indexOf(e.service.name)&&this.availableServices.push(e.service.name)})}else this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_DESTINATION").subscribe(t=>{this.notificator.showError(t)})})):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_DESTINATION").subscribe(t=>{this.notificator.showError(t)})}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(t=>{this.notificator.showError(t)})}notCompleted(t){t.selected.completed=!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.Fv),s.Y36(f.sK),s.Y36(b.IQ),s.Y36(b.KK),s.Y36(o.F0),s.Y36(w.V6))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-user-destination-relationship"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.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","ngModelChange","keydown.enter"],["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","ngModelChange","keydown.enter"],["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(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-vertical-stepper",2,3),s.TgZ(6,"mat-step",4),s.YNc(7,we,2,3,"ng-template",5),s.TgZ(8,"mat-form-field",6),s.TgZ(9,"input",7),s.NdJ("ngModelChange",function(){s.CHM(t);const n=s.MAs(5);return e.notCompleted(n)})("keydown.enter",function(){s.CHM(t);const n=s.MAs(5);return e.validateName(n)}),s.ALo(10,"translate"),s.qZA(),s.YNc(11,be,1,2,"mat-spinner",8),s.TgZ(12,"mat-hint",9),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"mat-autocomplete",null,10),s.YNc(17,xe,4,4,"mat-option",11),s.ALo(18,"async"),s.qZA(),s.qZA(),s.TgZ(19,"div"),s.TgZ(20,"button",12),s.NdJ("click",function(){s.CHM(t);const n=s.MAs(5);return e.validateName(n)}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(23,"mat-step",4),s.YNc(24,Ee,2,3,"ng-template",5),s.TgZ(25,"mat-form-field",6),s.TgZ(26,"input",13),s.NdJ("ngModelChange",function(t){return e.destination=t})("ngModelChange",function(){s.CHM(t);const n=s.MAs(5);return e.notCompleted(n)})("keydown.enter",function(){s.CHM(t);const n=s.MAs(5);return e.validateDestination(n)}),s.ALo(27,"translate"),s.qZA(),s.qZA(),s.TgZ(28,"div"),s.TgZ(29,"button",14),s._uU(30),s.ALo(31,"translate"),s.qZA(),s.TgZ(32,"button",12),s.NdJ("click",function(){s.CHM(t);const n=s.MAs(5);return e.validateDestination(n)}),s._uU(33),s.ALo(34,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(35,"mat-step"),s.YNc(36,Te,2,3,"ng-template",5),s.TgZ(37,"mat-radio-group",15),s.NdJ("ngModelChange",function(t){return e.chosenService=t}),s.YNc(38,Ae,2,2,"mat-radio-button",16),s.qZA(),s.TgZ(39,"div"),s.TgZ(40,"button",14),s._uU(41),s.ALo(42,"translate"),s.qZA(),s.TgZ(43,"button",12),s.NdJ("click",function(){return e.getGraph()}),s._uU(44),s.ALo(45,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(16);s.xp6(2),s.hij(" ",s.lcZ(3,16,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE")," "),s.xp6(7),s.s9C("placeholder",s.lcZ(10,18,"ADMIN.VISUALIZER.USER_DESTINATION.USER_EXAMPLE")),s.Q6J("formControl",e.searchField)("matAutocomplete",t),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(2),s.Oqu(s.lcZ(14,20,"ADMIN.VISUALIZER.USER_DESTINATION.USER_HINT")),s.xp6(4),s.Q6J("ngForOf",s.lcZ(18,22,e.users)),s.xp6(4),s.hij(" ",s.lcZ(22,24,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),s.xp6(5),s.s9C("placeholder",s.lcZ(27,26,"ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION_EXAMPLE")),s.Q6J("ngModel",e.destination),s.xp6(4),s.hij(" ",s.lcZ(31,28,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),s.xp6(3),s.hij(" ",s.lcZ(34,30,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),s.xp6(4),s.Q6J("ngModel",e.chosenService),s.xp6(1),s.Q6J("ngForOf",e.availableServices),s.xp6(3),s.hij(" ",s.lcZ(42,32,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),s.xp6(3),s.hij(" ",s.lcZ(45,34,"ADMIN.VISUALIZER.USER_DESTINATION.SUBMIT_BUTTON")," ")}},directives:[ve.Vq,ve.C0,ve.VY,O.KE,R.Nt,L.Fj,ye.ZL,L.JJ,L.oH,i.O5,O.bx,ye.XC,i.sg,x.lW,L.On,ve.fd,_e.VQ,E.$g,O.R9,z.ey,_e.U0],pipes:[f.X$,i.Ov],styles:[""]}),t})();var Ie=n(64762);function Ce(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function De(t){this._context=t}function Ne(t,e){this._basis=new De(t),this._beta=e}De.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:Ce(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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:Ce(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ne.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;++u<=n;)this._basis.point(this._beta*t[u]+(1-this._beta)*(i+(r=u/n)*a),this._beta*e[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var ke=function t(e){function n(t){return 1===e?new De(t):new Ne(t,e)}return n.beta=function(e){return t(+e)},n}(.85),Ze=n(55959);function Me(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function Oe(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var Re=n(10709),Le=n(26899),Ue=n(87254),Pe=n(41036),Fe=(n(92711),n(64641)),qe=(n(8634),n(3031));function ze(t){return{type:t}}function je(t,e){return te?1:t>=e?0:NaN}function Ye(t){let e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>je(t(e),n)}(t)),{left:r,center:function(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}n(45161),n(38337),n(82159),["w","e"].map(ze),["n","s"].map(ze),["n","w","e","s","nw","ne","sw","se"].map(ze);var Be=Math.sqrt(50),Je=Math.sqrt(10),Ge=Math.sqrt(2);function Ve(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Be?10:o>=Je?5:o>=Ge?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Be?10:o>=Je?5:o>=Ge?2:1)}function He(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Be?i*=10:o>=Je?i*=5:o>=Ge&&(i*=2),e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return Qe.setTime(+e),We.setTime(+r),t(Qe),t(We),Math.floor(n(Qe,We))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Xe=$e(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Xe.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?$e(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):Xe:null};var Ke=Xe,tn=$e(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),en=$e(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getMinutes()}),nn=$e(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),rn=$e(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5,t=>t.getDate()-1);function on(t){return $e(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var an=on(0),sn=(on(1),on(2),on(3),on(4),on(5),on(6),$e(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),un=$e(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});un.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$e(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var cn=un,ln=$e(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getUTCMinutes()}),hn=$e(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),fn=$e(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1});function dn(t){return $e(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var pn=dn(0),gn=(dn(1),dn(2),dn(3),dn(4),dn(5),dn(6),$e(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()})),mn=$e(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});mn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$e(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var vn=mn;function yn(t,e,n,r,i,o){const a=[[tn,1,1e3],[tn,5,5e3],[tn,15,15e3],[tn,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,n,r){const i=Math.abs(n-e)/r,o=Ye(([,,t])=>t).right(a,i);if(o===a.length)return t.every(He(e/31536e6,n/31536e6,r));if(0===o)return Ke.every(Math.max(He(e,n,r),1));const[s,u]=a[i/a[o-1][2]0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return En.setTime(+e),Tn.setTime(+r),t(En),t(Tn),Math.floor(n(En,Tn))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}function Sn(t){return An(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var In=Sn(0),Cn=Sn(1),Dn=(Sn(2),Sn(3),Sn(4)),Nn=(Sn(5),Sn(6),An(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}));function kn(t){return An(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var Zn=kn(0),Mn=kn(1),On=(kn(2),kn(3),kn(4)),Rn=(kn(5),kn(6),An(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1})),Ln=An(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Ln.every=function(t){return isFinite(t=Math.floor(t))&&t>0?An(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var Un=Ln,Pn=An(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Pn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?An(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var Fn=Pn;var qn={"-":"",_:" ",0:"0"},zn=/[\\^$*+?|[\]().{}]/g;function jn(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o=4||0===n?On(t):On.ceil(t),jn(On.count(Un(t),t)+(4===Un(t).getDay()),e,2)}function ir(t){return t.getDay()}function or(t,e){return jn(Mn.count(Un(t)-1,t),e,2)}function ar(t,e){return jn(t.getFullYear()%100,e,2)}function sr(t,e){return jn(t.getFullYear()%1e4,e,4)}function ur(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+jn(e/60|0,"0",2)+jn(e%60,"0",2)}function cr(t,e){return jn(t.getUTCDate(),e,2)}function lr(t,e){return jn(t.getUTCHours(),e,2)}function hr(t,e){return jn(t.getUTCHours()%12||12,e,2)}function fr(t,e){return jn(1+Nn.count(Fn(t),t),e,3)}function dr(t,e){return jn(t.getUTCMilliseconds(),e,3)}function pr(t,e){return dr(t,e)+"000"}function gr(t,e){return jn(t.getUTCMonth()+1,e,2)}function mr(t,e){return jn(t.getUTCMinutes(),e,2)}function vr(t,e){return jn(t.getUTCSeconds(),e,2)}function yr(t){var e=t.getUTCDay();return 0===e?7:e}function _r(t,e){return jn(In.count(Fn(t)-1,t),e,2)}function wr(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Dn(t):Dn.ceil(t),jn(Dn.count(Fn(t),t)+(4===Fn(t).getUTCDay()),e,2)}function br(t){return t.getUTCDay()}function xr(t,e){return jn(Cn.count(Fn(t)-1,t),e,2)}function Er(t,e){return jn(t.getUTCFullYear()%100,e,2)}function Tr(t,e){return jn(t.getUTCFullYear()%1e4,e,4)}function Ar(){return"+0000"}function Sr(){return"%"}function Ir(t){return+t}function Cr(t){return Math.floor(+t/1e3)}function Dr(t){return null===t?NaN:+t}!function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=(Bn(i),Jn(i),Bn(o),Jn(o),Bn(a),Jn(a),Bn(s),Jn(s),Bn(u),Jn(u),{a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Gn,e:Gn,f:$n,H:Vn,I:Hn,j:Qn,L:Wn,m:Xn,M:Kn,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ir,s:Cr,S:tr,u:er,U:nr,V:rr,w:ir,W:or,x:null,X:null,y:ar,Y:sr,Z:ur,"%":Sr}),l={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:cr,e:cr,f:pr,H:lr,I:hr,j:fr,L:dr,m:gr,M:mr,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ir,s:Cr,S:vr,u:yr,U:_r,V:wr,w:br,W:xr,x:null,X:null,y:Er,Y:Tr,Z:Ar,"%":Sr};function h(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s(e=a[u-1])&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?Fr:Pr,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),Zr.Z)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Or),l()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),u=Mr.Z,l()},h.clamp=function(t){return arguments.length?(c=!!t||Lr,l()):c!==Lr},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}()(Lr,Lr)}function jr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Yr=n(93116),Br=n(65636),Jr=n(3712),Gr=n(3218),Vr=n(22233);function Hr(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0){let n=Math.round(t/a),r=Math.round(e/a);for(n*ae&&--r,o=new Array(i=r-n+1);++se&&--r,o=new Array(i=r-n+1);++s0;){if((i=Ve(u,c,n))===r)return o[a]=u,o[s]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function Qr(){var t=zr();return t.copy=function(){return qr(t,Qr())},jr.apply(t,arguments),Hr(t)}function Wr(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function ei(){var t,e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t0?r[i-1]:e[0],i=0;)e+=n[r].value;else e=1;t.value=e}function mi(t,e){var n,r,i,o,a,s=new wi(t),u=+t.value&&(s.value=t.value),c=[s];for(null==e&&(e=vi);n=c.pop();)if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new wi(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(_i)}function vi(t){return t.children}function yi(t){t.data=t.data.data}function _i(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function wi(t){this.data=t,this.depth=this.height=0,this.parent=null}li.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ci(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ci(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new li(t,e)}return n.tension=function(e){return t(+e)},n}(0),hi.prototype={areaStart:ui,areaEnd:ui,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ci(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new hi(t,e)}return n.tension=function(e){return t(+e)},n}(0),fi.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,n(12314),function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,m,v=[],y=e.children,_=0,w=0,b=y.length,x=e.value;_f&&(f=s),m=l*l*g,(d=Math.max(f/m,m/h))>p){l-=s;break}p=d}v.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),wi.prototype=mi.prototype={constructor:wi,count:function(){return this.eachAfter(gi)},each:function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return mi(this).eachBefore(yi)}};var bi=n(30269);const xi=["caretElm"];function Ei(t,e){}const Ti=function(t){return{model:t}};function Ai(t,e){if(1&t&&(s.TgZ(0,"span"),s.YNc(1,Ei,0,0,"ng-template",5),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngTemplateOutlet",t.template)("ngTemplateOutletContext",s.VKq(2,Ti,t.context))}}function Si(t,e){if(1&t&&s._UZ(0,"span",6),2&t){const t=s.oxw();s.Q6J("innerHTML",t.title,s.oJD)}}function Ii(t,e){if(1&t&&(s.O4$(),s.kcU(),s._UZ(0,"ngx-charts-scale-legend",4)),2&t){const t=s.oxw();s.Q6J("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("valueRange",t.legendOptions.domain)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)}}function Ci(t,e){if(1&t){const t=s.EpF();s.O4$(),s.kcU(),s.TgZ(0,"ngx-charts-legend",5),s.NdJ("labelClick",function(e){return s.CHM(t),s.oxw().legendLabelClick.emit(e)})("labelActivate",function(e){return s.CHM(t),s.oxw().legendLabelActivate.emit(e)})("labelDeactivate",function(e){return s.CHM(t),s.oxw().legendLabelDeactivate.emit(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("data",t.legendOptions.domain)("title",t.legendOptions.title)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)("activeEntries",t.activeEntries)}}const Di=["*"];function Ni(t,e){if(1&t&&(s.TgZ(0,"header",4),s.TgZ(1,"span",5),s._uU(2),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(t.title)}}function ki(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"li",6),s.TgZ(1,"ngx-charts-legend-entry",7),s.NdJ("select",function(e){return s.CHM(t),s.oxw().labelClick.emit(e)})("activate",function(e){return s.CHM(t),s.oxw().activate(e)})("deactivate",function(e){return s.CHM(t),s.oxw().deactivate(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.xp6(1),s.Q6J("label",t.label)("formattedLabel",t.formattedLabel)("color",t.color)("isActive",n.isActive(t))}}let Zi=(()=>{class t{constructor(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.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(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const n=Object.getOwnPropertyNames(e.inputs);for(const r of n)t.instance[r]=e.inputs[r]}if(void 0!==e.outputs){const n=Object.getOwnPropertyNames(e.outputs);for(const r of n)t.instance[r]=e.outputs[r]}}return t}appendComponent(t,e={},n){n||(n=this.getRootViewContainer());const r=this.getComponentRootNode(n),i=new Le.F0(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Le.C5(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.z2F),s.LFG(s._Vd),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function Mi(t,e,n){let r,i,o;n=n||{};let a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){const c=+new Date;s||!1!==n.leading||(s=c);const l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var Oi=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function Ri(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function Li(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}class Ui{static calculateVerticalAlignment(t,e,n){let r=Ri(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(t,e,n,r){let i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);const o=Ri(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}static calculateHorizontalAlignment(t,e,n){let r=Li(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(t,e,n,r){let i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);const o=Li(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}static shouldFlip(t,e,n,r){let i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}static positionCaret(t,e,n,r,i){let o=0,a=0;return t===Oi.right?(a=-7,o=Ui.calculateVerticalCaret(n,e,r,i)):t===Oi.left?(a=e.width,o=Ui.calculateVerticalCaret(n,e,r,i)):t===Oi.top?(o=e.height,a=Ui.calculateHorizontalCaret(n,e,r,i)):t===Oi.bottom&&(o=-7,a=Ui.calculateHorizontalCaret(n,e,r,i)),{top:o,left:a}}static positionContent(t,e,n,r,i){let o=0,a=0;return t===Oi.right?(a=n.left+n.width+r,o=Ui.calculateVerticalAlignment(n,e,i)):t===Oi.left?(a=n.left-e.width-r,o=Ui.calculateVerticalAlignment(n,e,i)):t===Oi.top?(o=n.top-e.height-r,a=Ui.calculateHorizontalAlignment(n,e,i)):t===Oi.bottom&&(o=n.top+n.height+r,a=Ui.calculateHorizontalAlignment(n,e,i)),{top:o,left:a}}static determinePlacement(t,e,n,r){if(Ui.shouldFlip(n,e,t,r)){if(t===Oi.right)return Oi.left;if(t===Oi.left)return Oi.right;if(t===Oi.top)return Oi.bottom;if(t===Oi.bottom)return Oi.top}return t}}let Pi,Fi=(()=>{class t{constructor(t,e){this.element=t,this.renderer=e}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=` position-${this.placement}`,t+=` type-${this.type}`,t+=` ${this.cssClass}`,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const n=t.getBoundingClientRect();this.checkFlip(e,n),this.positionContent(t,e,n),this.showCaret&&this.positionCaret(e,n),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,n){const{top:r,left:i}=Ui.positionContent(this.placement,n,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",`${r}px`),this.renderer.setStyle(t,"left",`${i}px`)}positionCaret(t,e){const n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),{top:i,left:o}=Ui.positionCaret(this.placement,e,t,r,this.alignment);this.renderer.setStyle(n,"top",`${i}px`),this.renderer.setStyle(n,"left",`${o}px`)}checkFlip(t,e){this.placement=Ui.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.Qsj))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){if(1&t&&s.Gf(xi,5),2&t){let t;s.iGM(t=s.CRH())&&(e.caretElm=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("resize",function(){return e.onWindowResize()},!1,s.Jf7),2&t&&s.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"span",0,1),s.TgZ(3,"div",2),s.YNc(4,Ai,2,4,"span",3),s.YNc(5,Si,1,1,"span",4),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Gre("tooltip-caret position-",e.placement,""),s.Q6J("hidden",!e.showCaret),s.xp6(3),s.Q6J("ngIf",!e.title),s.xp6(1),s.Q6J("ngIf",e.title))},directives:[i.O5,i.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),Me([(100,function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Mi(n.value,100,undefined)}),this[e]}}})],t.prototype,"onWindowResize",null),t})(),qi=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const n=this.injectComponent(t,e);return this.register(t,n),n}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=Fi}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Zi))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),zi=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new s.vpe,this.legendLabelActivate=new s.vpe,this.legendLabelDeactivate=new s.vpe}ngOnChanges(t){this.update()}update(){let t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[s._Bn([qi]),s.TTD],ngContentSelectors:Di,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.O4$(),s.TgZ(1,"svg",1),s.Hsn(2),s.qZA(),s.YNc(3,Ii,1,5,"ngx-charts-scale-legend",2),s.YNc(4,Ci,1,7,"ngx-charts-legend",3),s.qZA()),2&t&&(s.Udp("width",e.view[0],"px"),s.Q6J("@animationState","active")("@.disabled",!e.animations),s.xp6(1),s.uIk("width",e.chartWidth)("height",e.view[1]),s.xp6(2),s.Q6J("ngIf",e.showLegend&&"scaleLegend"===e.legendType),s.xp6(1),s.Q6J("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[i.O5,Qi,Vi]},encapsulation:2,data:{animation:[(0,Re.X$)("animationState",[(0,Re.eR)(":enter",[(0,Re.oB)({opacity:0}),(0,Re.jt)("500ms 100ms",(0,Re.oB)({opacity:1}))])])]},changeDetection:0}),t})(),ji=(()=>{class t{constructor(t,e){this.element=t,this.zone=e,this.visible=new s.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const t=()=>{if(!this.element)return;const{offsetHeight:e,offsetWidth:n}=this.element.nativeElement;e&&n?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t())})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),Yi=(()=>{class t{constructor(t,e,n){this.chartElement=t,this.zone=e,this.cd=n,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new s.vpe}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new ji(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(t){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const t=this.getContainerDims();t&&(this.width=t.width,this.height=t.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 t,e;const n=this.chartElement.nativeElement;if(null!==n.parentNode){const r=n.parentNode.getBoundingClientRect();t=r.width,e=r.height}return t&&e?{width:t,height:e}:null}formatDates(){for(let t=0;t{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=t}cloneData(t){const e=[];for(const n of t){const t={name:n.name};if(void 0!==n.value&&(t.value=n.value),void 0!==n.series){t.series=[];for(const e of n.series){const n=Object.assign({},e);t.series.push(n)}}void 0!==n.extra&&(t.extra=JSON.parse(JSON.stringify(n.extra))),e.push(t)}return e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[s.TTD],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"div")},encapsulation:2}),t})(),Bi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez]]}),t})(),Ji=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Zi,qi],imports:[[i.ez]]}),t})();function Gi(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}"undefined"!=typeof window?Pi=window:"undefined"!=typeof global&&(Pi=global);let Vi=(()=>{class t{constructor(t){this.cd=t,this.horizontal=!1,this.labelClick=new s.vpe,this.labelActivate=new s.vpe,this.labelDeactivate=new s.vpe,this.legendEntries=[]}ngOnChanges(t){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const t=[];for(const e of this.data){const n=Gi(e);-1===t.findIndex(t=>t.label===n)&&t.push({label:e,formattedLabel:n,color:this.colors.getColor(e)})}return t}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.label===e.name)}activate(t){this.labelActivate.emit(t)}deactivate(t){this.labelDeactivate.emit(t)}trackBy(t,e){return e.label}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[s.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.YNc(1,Ni,3,1,"header",0),s.TgZ(2,"div",1),s.TgZ(3,"ul",2),s.YNc(4,ki,2,4,"li",3),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Udp("width",e.width,"px"),s.xp6(1),s.Q6J("ngIf",(null==e.title?null:e.title.length)>0),s.xp6(2),s.Udp("max-height",e.height-45,"px"),s.ekj("horizontal-legend",e.horizontal),s.xp6(1),s.Q6J("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[i.O5,i.sg,Hi]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),Hi=(()=>{class t{constructor(){this.isActive=!1,this.select=new s.vpe,this.activate=new s.vpe,this.deactivate=new s.vpe,this.toggle=new s.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&s.NdJ("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(s.TgZ(0,"span",0),s.NdJ("click",function(){return e.select.emit(e.formattedLabel)}),s.TgZ(1,"span",1),s.NdJ("click",function(){return e.toggle.emit(e.formattedLabel)}),s.qZA(),s.TgZ(2,"span",2),s._uU(3),s.qZA(),s.qZA()),2&t&&(s.ekj("active",e.isActive),s.Q6J("title",e.formattedLabel),s.xp6(1),s.Udp("background-color",e.color),s.xp6(2),s.hij(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Qi=(()=>{class t{constructor(t){this.sanitizer=t,this.horizontal=!1}ngOnChanges(t){const e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${e})`)}gradientString(t,e){e.push(1);const n=[];return t.reverse().forEach((t,r)=>{n.push(`${t} ${Math.round(100*e[r])}%`)}),n.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(bi.H7))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[s.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.qZA(),s._UZ(4,"div",2),s.TgZ(5,"div",1),s.TgZ(6,"span"),s._uU(7),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Udp("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),s.ekj("horizontal-legend",e.horizontal),s.xp6(3),s.Oqu(e.valueRange[1].toLocaleString()),s.xp6(1),s.Udp("background",e.gradient),s.xp6(3),s.Oqu(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Wi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez,Bi,Ji],i.ez,Bi,Ji]}),t})(),$i=[{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 Xi{constructor(t,e,n,r){"string"==typeof t&&(t=$i.find(e=>e.name===t)),this.colorDomain=t.domain,this.scaleType=e,this.domain=n,this.customColors=r,this.scale=this.generateColorScheme(t,e,this.domain)}generateColorScheme(t,e,n){let r;if("string"==typeof t&&(t=$i.find(e=>e.name===t)),"quantile"===e)r=ei().range(t.domain).domain(n);else if("ordinal"===e)r=Xr().range(t.domain).domain(n);else if("linear"===e){const e=[...t.domain];1===e.length&&(e.push(e[0]),this.colorDomain=e);const n=Wr(0,1,1/e.length);r=Qr().domain(n).range(e)}return r}getColor(t){if(null==t)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=Qr().domain(this.domain).range([0,1]);return this.scale(e(t))}{if("function"==typeof this.customColors)return this.customColors(t);const e=t.toString();let n;return this.customColors&&this.customColors.length>0&&(n=this.customColors.find(t=>t.name.toLowerCase()===e.toLowerCase())),n?n.value:this.scale(t)}}getLinearGradientStops(t,e){void 0===e&&(e=this.domain[0]);const n=Qr().domain(this.domain).range([0,1]),r=Kr().domain(this.colorDomain).range([0,1]),i=this.getColor(t),o=n(e),a=this.getColor(e),s=n(t);let u=1,c=o;const l=[];for(l.push({color:a,offset:o,originalOffset:o,opacity:1});c=(s-r.bandwidth()).toFixed(4))break;l.push({color:t,offset:e,opacity:1}),c=e,u++}}if(l[l.length-1].offset<100&&l.push({color:i,offset:s,opacity:1}),s===o)l[0].offset=0,l[1].offset=100;else if(100!==l[l.length-1].offset)for(const h of l)h.offset=(h.offset-o)/(s-o)*100;return l}}let Ki=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),to=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),eo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),no=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),ro=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})();Math;let io=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),oo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi,io,ro]]}),t})(),ao=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),so=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),uo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi,io,to]]}),t})(),co=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[Wi,Ki,to,eo,no,ro,oo,ao,io,so,uo]}),t})();var lo=Math.PI;function ho(t){return(1-Math.cos(lo*t))/2}var fo=n(87570),po=n(48318),go=n(40878),mo=n(3530);function vo(t){return void 0===t}function yo(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:e}}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;var xo=n(32975);function Eo(t,e){var n;function r(){var r,i,o=n.length,a=0,s=0;for(r=0;r=(o=(g+v)/2))?g=o:v=o,(l=n>=(a=(m+y)/2))?m=a:y=a,i=d,!(d=d[h=l<<1|c]))return i[h]=p,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s&&n===u)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(c=e>=(o=(g+v)/2))?g=o:v=o,(l=n>=(a=(m+y)/2))?m=a:y=a}while((h=l<<1|c)==(f=(u>=a)<<1|s>=o));return i[f]=d,i[h]=p,t}function Io(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Co(t){return t[0]}function Do(t){return t[1]}function No(t,e,n){var r=new ko(null==e?Co:e,null==n?Do:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function ko(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Zo(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Mo=No.prototype=ko.prototype;function Oo(t){return t.x+t.vx}function Ro(t){return t.y+t.vy}function Lo(t){var e,n,r=1,i=1;function o(){for(var t,o,s,u,c,l,h,f=e.length,d=0;du+d||ic+d||os.index){var p=u-a.x-a.vx,g=c-a.y-a.vy,m=p*p+g*g;mt.r&&(t.r=t[e].r)}function s(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;rl&&(l=r),ih&&(h=i));if(u>l||c>h)return this;for(this.cover(u,c).cover(l,h),n=0;nt||t>=i||r>e||e>=o;)switch(s=(ef||(o=u.y0)>d||(a=u.x1)=v)<<1|t>=m)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=u)}else{var y=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),w=y*y+_*_;if(w=(s=(p+m)/2))?p=s:m=s,(l=a>=(u=(g+v)/2))?g=u:v=u,e=d,!(d=d[h=l<<1|c]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},Mo.removeAll=function(t){for(var e=0,n=t.length;e1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,o,a,s,u,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,n),e):c.on(t)}}}function Wo(){var t,e,n,r,i=To(-30),o=1,a=1/0,s=.81;function u(r){var i,o=t.length,a=No(t,Go,Vo).visitAfter(l);for(n=r,i=0;i=a)){(t.data!==e||t.next)&&(0===l&&(d+=(l=Ao())*l),0===h&&(d+=(h=Ao())*h),dt.id===n.id);r.position={x:n.x,y:n.y},r.dimension={width:n.width,height:n.height}}return t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n.position.y<=r.position.y?-1:1;return e.points=[{x:n.position.x,y:n.position.y-i*(n.dimension.height/2)},{x:r.position.x,y:r.position.y+i*(r.dimension.height/2)}],t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xo.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=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=ka()),e});for(const n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},dagreCluster:class{constructor(){this.defaultSettings={orientation:Za.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),(0,xo.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;const e=t=>{const e=this.dagreGraph._nodes[t.id];return Object.assign(Object.assign({},t),{position:{x:e.x,y:e.y},dimension:{width:e.width,height:e.height}})};return t.clusters=(t.clusters||[]).map(e),t.nodes=t.nodes.map(e),t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n.position.y<=r.position.y?-1:1;return e.points=[{x:n.position.x,y:n.position.y-i*(n.dimension.height/2)},{x:r.position.x,y:r.position.y+i*(r.dimension.height/2)}],t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xo.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=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreClusters=t.clusters||[],this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=ka()),e});for(const n of this.dagreNodes)this.dagreGraph.setNode(n.id,n);for(const n of this.dagreClusters)this.dagreGraph.setNode(n.id,n),n.childNodeIds.forEach(t=>{this.dagreGraph.setParent(t,n.id)});for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},dagreNodesOnly:class{constructor(){this.defaultSettings={orientation:Za.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),(0,xo.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const n=this.dagreGraph._nodes[e],r=t.nodes.find(t=>t.id===n.id);r.position={x:n.x,y:n.y},r.dimension={width:n.width,height:n.height}}for(const e of t.edges)this.updateEdge(t,e);return t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",o="y"===i?"x":"y",a="y"===i?"height":"width",s=n.position[i]<=r.position[i]?-1:1,u={[o]:n.position[o],[i]:n.position[i]-s*(n.dimension[a]/2)},c={[o]:r.position[o],[i]:r.position[i]+s*(r.dimension[a]/2)},l=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[u,{[o]:u[o],[i]:u[i]-s*l},{[o]:c[o],[i]:c[i]+s*l},c];const h=t.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return h&&(h.points=e.points),t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xo.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=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=ka()),e});for(const n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},d3ForceDirected:class{constructor(){this.defaultSettings={force:Qo().force("charge",Wo().strength(-150)).force("collide",Lo(5)),forceLink:Bo().id(t=>t.id).distance(()=>100)},this.settings={},this.outputGraph$=new Ze.xQ}run(t){return this.inputGraph=t,this.d3Graph={nodes:[...this.inputGraph.nodes.map(t=>Object.assign({},t))],edges:[...this.inputGraph.edges.map(t=>Object.assign({},t))]},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(t,e){const n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.nodes(this.d3Graph.nodes).force("link",n.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(t){return this.outputGraph.nodes=this.d3Graph.nodes.map(t=>Object.assign(Object.assign({},t),{id:t.id||ka(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(t=>Object.assign(Object.assign({},t),{source:Ma(t.source).id,target:Ma(t.target).id,points:[{x:Ma(t.source).x,y:Ma(t.source).y},{x:Ma(t.target).x,y:Ma(t.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(t,e){this.settings.force.alphaTarget(.3).restart();const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(this.draggingStart={x:e.x-n.x,y:e.y-n.y},n.fx=e.x-this.draggingStart.x,n.fy=e.y-this.draggingStart.y)}onDrag(t,e){if(!t)return;const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(n.fx=e.x-this.draggingStart.x,n.fy=e.y-this.draggingStart.y)}onDragEnd(t,e){if(!t)return;const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(this.settings.force.alphaTarget(0),n.fx=void 0,n.fy=void 0)}},colaForceDirected:class{constructor(){this.defaultSettings={force:(0,ta.d3adaptor)(Object.assign(Object.assign(Object.assign({},ea),r),na)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600,xOffset:0}},this.settings={},this.outputGraph$=new Ze.xQ}run(t){return this.inputGraph=t,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(t=>Object.assign(Object.assign({},t),{width:t.dimension?t.dimension.width:20,height:t.dimension?t.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(t=>({padding:5,groups:t.childNodeIds.map(t=>this.inputGraph.clusters.findIndex(e=>e.id===t)).filter(t=>t>=0),leaves:t.childNodeIds.map(t=>this.inputGraph.nodes.findIndex(e=>e.id===t)).filter(t=>t>=0)}))],links:[...this.inputGraph.edges.map(t=>{const e=this.inputGraph.nodes.findIndex(e=>t.source===e.id),n=this.inputGraph.nodes.findIndex(e=>t.target===e.id);if(-1!==e&&-1!==n)return Object.assign(Object.assign({},t),{source:e,target:n})}).filter(t=>!!t)],groupLinks:[...this.inputGraph.edges.map(t=>{const e=this.inputGraph.nodes.findIndex(e=>t.source===e.id),n=this.inputGraph.nodes.findIndex(e=>t.target===e.id);if(!(e>=0&&n>=0))return t}).filter(t=>!!t)]},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(t,e){const n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(t){return this.outputGraph.nodes=t.nodes.map(t=>Object.assign(Object.assign({},t),{id:t.id||ka(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=t.links.map(e=>{const n=Oa(t.nodes,e.source),r=Oa(t.nodes,e.target);return Object.assign(Object.assign({},e),{source:n.id,target:r.id,points:[n.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy()),r.bounds.rayIntersection(n.bounds.cx(),n.bounds.cy())]})}).concat(t.groupLinks.map(e=>{const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n||t.groups.find(t=>t.id===e.source),o=r||t.groups.find(t=>t.id===e.target);return Object.assign(Object.assign({},e),{source:i.id,target:o.id,points:[i.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})})),this.outputGraph.clusters=t.groups.map((t,e)=>Object.assign(Object.assign({},this.inputGraph.clusters[e]),{dimension:{width:t.bounds?t.bounds.width():20,height:t.bounds?t.bounds.height():20},position:{x:t.bounds?t.bounds.x+t.bounds.width()/2:0,y:t.bounds?t.bounds.y+t.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(t,e){const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(this.draggingStart={x:r.x-e.x,y:r.y-e.y},r.fixed=1,this.settings.force.start())}onDrag(t,e){if(!t)return;const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(r.x=this.draggingStart.x+e.x,r.y=this.draggingStart.y+e.y)}onDragEnd(t,e){if(!t)return;const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(r.fixed=0)}}};let La=(()=>{class t{getLayout(t){if(Ra[t])return new Ra[t];throw new Error(`Unknown layout type '${t}'`)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();var Ua=function(t){return t.Both="both",t.Horizontal="horizontal",t.Vertical="vertical",t}({}),Pa=function(t){return t.UpperLeft="UpperLeft",t.UpperRight="UpperRight",t}({});function Fa(t,e,n){let r,i,o;n=n||{};let a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){const c=+new Date;s||!1!==n.leading||(s=c);const l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}let qa=(()=>{class t extends Yi{constructor(t,e,n,r){super(t,e,n),this.el=t,this.zone=e,this.cd=n,this.layoutService=r,this.legend=!1,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Ua.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=Pa.UpperRight,this.activate=new s.vpe,this.deactivate=new s.vpe,this.zoomChange=new s.vpe,this.clickHandler=new s.vpe,this.isMouseMoveCalled=!1,this.graphSubscription=new fo.w,this.subscriptions=[],this.margin=[0,0,0,0],this.results=[],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=t=>t.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(t){this.zoomTo(Number(t))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(t){this.panTo(Number(t),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(t){this.panTo(null,Number(t))}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(t=>{this.panToNodeId(t)})),this.minimapClipPathId=`minimapClip${ka()}`}ngOnChanges(t){const{layoutSettings:e}=t;this.setLayout(this.layout),e&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(t){this.initialized=!1,t||(t="dagre"),"string"==typeof t&&(this.layout=this.layoutService.getLayout(t),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(t){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=t)}ngOnDestroy(){super.ngOnDestroy();for(const t of this.subscriptions)t.unsubscribe();this.subscriptions=null}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>this.update())}update(){super.update(),this.curve||(this.curve=ke.beta(1)),this.zone.run(()=>{this.dims=function({width:t,height:e,margins:n,showXAxis:r=!1,showYAxis:i=!1,xAxisHeight:o=0,yAxisWidth:a=0,showXLabel:s=!1,showYLabel:u=!1,showLegend:c=!1,legendType:l="ordinal",legendPosition:h="right",columns:f=12}){let d=n[3],p=t,g=e-n[0]-n[2];if(c&&"right"===h&&(f-="ordinal"===l?2:1),p=p*f/12,p=p-n[1]-n[3],r&&(g-=5,g-=o,s)&&(g-=30),i&&(p-=5,p-=a,d+=a,d+=10,u)){const t=30;p-=t,d+=t}return p=Math.max(0,p),g=Math.max(0,g),{width:Math.floor(p),height:Math.floor(g),xOffset:Math.floor(d)}}({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new fo.w;const t=t=>(t.meta||(t.meta={}),t.id||(t.id=ka()),t.dimension?t.meta.forceDimensions=void 0===t.meta.forceDimensions||t.meta.forceDimensions:(t.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},t.meta.forceDimensions=!1),t.position={x:0,y:0},t.data=t.data?t.data:{},t);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(t):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(t):[],edges:this.links.length>0?[...this.links].map(t=>(t.id||(t.id=ka()),t)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const t=this.layout.run(this.graph),e=t instanceof po.y?t:(0,go.of)(t);this.graphSubscription.add(e.subscribe(t=>{this.graph=t,this.tick()})),0!==this.graph.nodes.length&&e.pipe((0,mo.P)()).subscribe(()=>this.applyNodeDimensions())}tick(){const t=new Set;this.graph.nodes.map(e=>{e.transform=`translate(${e.position.x-e.dimension.width/2||0}, ${e.position.y-e.dimension.height/2||0})`,e.data||(e.data={}),e.data.color=this.colors.getColor(this.groupResultsBy(e)),t.add(e.id)});const e=new Set;(this.graph.clusters||[]).map(t=>{t.transform=`translate(${t.position.x-t.dimension.width/2||0}, ${t.position.y-t.dimension.height/2||0})`,t.data||(t.data={}),t.data.color=this.colors.getColor(this.groupResultsBy(t)),e.add(t.id)}),setTimeout(()=>{this.oldNodes=t,this.oldClusters=e},500);const n=[];for(const r in this.graph.edgeLabels){const t=this.graph.edgeLabels[r],e=r.replace(/[^\w-]*/g,""),i=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let o=this._oldLinks.find(i?t=>`${t.source}${t.target}${t.id}`===e:t=>`${t.source}${t.target}`===e);const a=this.graph.edges.find(i?t=>`${t.source}${t.target}${t.id}`===e:t=>`${t.source}${t.target}`===e);o?o.data&&a&&a.data&&JSON.stringify(o.data)!==JSON.stringify(a.data)&&(o.data=a.data):o=a||t,o.oldLine=o.line;const s=t.points,u=this.generateLine(s),c=Object.assign({},o);c.line=u,c.points=s,this.updateMidpointOnEdge(c,s);const l=s[Math.floor(s.length/2)];l&&(c.textTransform=`translate(${l.x||0},${l.y||0})`),c.textAngle=0,c.oldLine||(c.oldLine=c.line),this.calcDominantBaseline(c),n.push(c)}this.graph.edges=n,this.graph.edges&&(this._oldLinks=this.graph.edges.map(t=>{const e=Object.assign({},t);return e.oldLine=t.line,e})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Pa.UpperLeft:return"";case Pa.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let t=1/0,e=-1/0,n=1/0,r=-1/0;for(let i=0;ie?o.position.x+o.dimension.width:e,r=o.position.y+o.dimension.height>r?o.position.y+o.dimension.height:r}t-=100,n-=100,e+=100,r+=100,this.graphDims.width=e-t,this.graphDims.height=r-n,this.minimapOffsetX=t,this.minimapOffsetY=n}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(t=>{const e=t.nativeElement,n=this.graph.nodes.find(t=>t.id===e.id);if(!n)return;let r;try{if(r=e.getBBox(),!r.width||!r.height)return}catch(i){return}if(n.dimension.height=this.nodeHeight?n.dimension.height&&n.meta.forceDimensions?n.dimension.height:this.nodeHeight:n.dimension.height&&n.meta.forceDimensions?n.dimension.height:r.height,this.nodeMaxHeight&&(n.dimension.height=Math.max(n.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(n.dimension.height=Math.min(n.dimension.height,this.nodeMinHeight)),this.nodeWidth)n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:this.nodeWidth;else if(e.getElementsByTagName("text").length){let t;try{for(const n of e.getElementsByTagName("text")){const e=n.getBBox();t?(e.width>t.width&&(t.width=e.width),e.height>t.height&&(t.height=e.height)):t=e}}catch(i){return}n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:t.width+20}else n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:r.width;this.nodeMaxWidth&&(n.dimension.width=Math.max(n.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(n.dimension.width=Math.min(n.dimension.width,this.nodeMinWidth))})}redrawLines(t=this.animate){this.linkElements.map(e=>{const n=this.graph.edges.find(t=>t.id===e.nativeElement.id);n&&((0,Pe.Z)(e.nativeElement).select(".line").attr("d",n.oldLine).transition().ease(ho).duration(t?500:0).attr("d",n.line),(0,Pe.Z)(this.chartElement.nativeElement).select(`#${n.id}`).attr("d",n.oldTextPath).transition().ease(ho).duration(t?500:0).attr("d",n.textPath),this.updateMidpointOnEdge(n,n.points))})}calcDominantBaseline(t){const e=t.points[0],n=t.points[t.points.length-1];t.oldTextPath=t.textPath,n.xt.x).y(t=>t.y).curve(this.curve)(t)}onZoom(t,e){if(this.enableTrackpadSupport&&!t.ctrlKey)return void this.pan(-1*t.deltaX,-1*t.deltaY);const n=1+("in"===e?this.zoomSpeed:-this.zoomSpeed),r=this.zoomLevel*n;if(!(r<=this.minZoomLevel||r>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&t){const e=t.clientX,r=t.clientY,i=this.chart.nativeElement.querySelector("svg"),o=i.querySelector("g.chart"),a=i.createSVGPoint();a.x=e,a.y=r;const s=a.matrixTransform(o.getScreenCTM().inverse());this.pan(s.x,s.y,!0),this.zoom(n),this.pan(-s.x,-s.y,!0)}else this.zoom(n)}pan(t,e,n=!1){const r=n?1:this.zoomLevel;this.transformationMatrix=wo(this.transformationMatrix,bo(t/r,e/r)),this.updateTransform()}panTo(t,e){null==t||isNaN(t)||null==e||isNaN(e)||(this.transformationMatrix=wo(this.transformationMatrix,bo((-this.panOffsetX-t*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-e*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(t){this.transformationMatrix=wo(this.transformationMatrix,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return vo(e)&&(e=t),{a:t,c:0,e:0,b:0,d:e,f:0}}(t,t)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(t){this.transformationMatrix.a=isNaN(t)?this.transformationMatrix.a:Number(t),this.transformationMatrix.d=isNaN(t)?this.transformationMatrix.d:Number(t),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(t){if(!this.draggingEnabled)return;const e=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(e,t),e.position.x+=t.movementX/this.zoomLevel,e.position.y+=t.movementY/this.zoomLevel,e.transform=`translate(${e.position.x-e.dimension.width/2}, ${e.position.y-e.dimension.height/2})`;for(const n of this.graph.edges)if((n.target===e.id||n.source===e.id||n.target.id===e.id||n.source.id===e.id)&&this.layout&&"string"!=typeof this.layout){const t=this.layout.updateEdge(this.graph,n),e=t instanceof po.y?t:(0,go.of)(t);this.graphSubscription.add(e.subscribe(t=>{this.graph=t,this.redrawEdge(n)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(t){const e=this.generateLine(t.points);this.calcDominantBaseline(t),t.oldLine=t.line,t.line=e}updateTransform(){var t;this.transform="matrix("+(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*e)/e,b:Math.round(t.b*e)/e,c:Math.round(t.c*e)/e,d:Math.round(t.d*e)/e,e:Math.round(t.e*e)/e,f:Math.round(t.f*e)/e}}(this.transformationMatrix,100)).a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}onClick(t){this.select.emit(t)}onActivate(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(t=>this.groupResultsBy(t)).reduce((t,e)=>-1!==t.indexOf(e)?t:t.concat([e]),[]).sort()}trackLinkBy(t,e){return e.id}trackNodeBy(t,e){return e.id}setColors(){this.colors=new Xi(this.scheme,"ordinal",this.seriesDomain,this.customColors)}getLegendOptions(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors}}onMouseMove(t){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,t):this.isDragging&&this.draggingEnabled&&this.onDrag(t)}onMouseDown(t){this.isMouseMoveCalled=!1}graphClick(t){this.isMouseMoveCalled||this.clickHandler.emit(t)}onTouchStart(t){this._touchLastX=t.changedTouches[0].clientX,this._touchLastY=t.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(t){if(this.isPanning&&this.panningEnabled){const e=t.changedTouches[0].clientX,n=t.changedTouches[0].clientY,r=e-this._touchLastX,i=n-this._touchLastY;this._touchLastX=e,this._touchLastY=n,this.pan(r,i)}}onTouchEnd(t){this.isPanning=!1}onMouseUp(t){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,t)}onNodeMouseDown(t,e){this.draggingEnabled&&(this.isDragging=!0,this.draggingNode=e,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(e,t))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(t){this.panTo((t.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(t.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let t=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);tthis.maxZoomLevel&&(t=this.maxZoomLevel),t!==this.zoomLevel&&(this.zoomLevel=t,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(t){const e=this.graph.nodes.find(e=>e.id===t);e&&this.panTo(e.position.x,e.position.y)}panWithConstraints(t,e){let n=e.movementX,r=e.movementY;switch(this.isMinimapPanning&&(n=-this.minimapScaleCoefficient*n*this.zoomLevel,r=-this.minimapScaleCoefficient*r*this.zoomLevel),t){case Ua.Horizontal:this.pan(n,0);break;case Ua.Vertical:this.pan(0,r);break;default:this.pan(n,r)}}updateMidpointOnEdge(t,e){if(t&&e)if(e.length%2==1)t.midPoint=e[Math.floor(e.length/2)];else{const n=e[e.length/2],r=e[e.length/2-1];t.midPoint={x:(n.x+r.x)/2,y:(n.y+r.y)/2}}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(La))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-graph"]],contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,ra,5),s.Suo(n,ia,5),s.Suo(n,oa,5),s.Suo(n,aa,5),s.Suo(n,sa,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.linkTemplate=t.first),s.iGM(t=s.CRH())&&(e.nodeTemplate=t.first),s.iGM(t=s.CRH())&&(e.clusterTemplate=t.first),s.iGM(t=s.CRH())&&(e.defsTemplate=t.first),s.iGM(t=s.CRH())&&(e.miniMapNodeTemplate=t.first)}},viewQuery:function(t,e){if(1&t&&(s.Gf(zi,7,s.SBq),s.Gf(ua,5),s.Gf(ca,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.chart=t.first),s.iGM(t=s.CRH())&&(e.nodeElements=t),s.iGM(t=s.CRH())&&(e.linkElements=t)}},hostBindings:function(t,e){1&t&&s.NdJ("mousemove",function(t){return e.onMouseMove(t)},!1,s.evT)("mousedown",function(t){return e.onMouseDown(t)},!1,s.evT)("click",function(t){return e.graphClick(t)},!1,s.evT)("touchmove",function(t){return e.onTouchMove(t)},!1,s.evT)("mouseup",function(t){return e.onMouseUp(t)},!1,s.evT)},inputs:{legend:"legend",nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",draggingEnabled:"draggingEnabled",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapPosition:"miniMapPosition",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY",layout:"layout",curve:"curve",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layoutSettings:"layoutSettings",miniMapMaxHeight:"miniMapMaxHeight"},outputs:{activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[s.qOj,s.TTD],ngContentSelectors:Da,decls:5,vars:11,consts:[["mouseWheel","",3,"view","showLegend","legendOptions","legendLabelClick","legendLabelActivate","legendLabelDeactivate","mouseWheelUp","mouseWheelDown"],["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(t,e){1&t&&(s.F$t(),s.TgZ(0,"ngx-charts-chart",0),s.NdJ("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t)})("legendLabelDeactivate",function(t){return e.onDeactivate(t)})("mouseWheelUp",function(t){return e.onZoom(t,"in")})("mouseWheelDown",function(t){return e.onZoom(t,"out")}),s.YNc(1,xa,12,12,"g",1),s.O4$(),s.TgZ(2,"clipPath"),s._UZ(3,"rect"),s.qZA(),s.YNc(4,Ia,6,15,"g",2),s.qZA()),2&t&&(s.Q6J("view",s.WLB(8,Ca,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions),s.xp6(1),s.Q6J("ngIf",e.initialized&&e.graph),s.xp6(1),s.uIk("id",e.minimapClipPathId),s.xp6(1),s.uIk("width",e.graphDims.width/e.minimapScaleCoefficient)("height",e.graphDims.height/e.minimapScaleCoefficient),s.xp6(1),s.Q6J("ngIf",e.showMiniMap))},directives:function(){return[zi,za,i.O5,i.sg,i.tP]},styles:[".minimap .minimap-background{fill:rgba(0,0,0,.1)}.minimap .minimap-drag{cursor:pointer;fill:rgba(0,0,0,.2);stroke:#fff;stroke-dasharray:2px;stroke-dashoffset:2px;stroke-width:1px}.minimap .minimap-drag.panning{fill:rgba(0,0,0,.3)}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}.graph .edge{fill:none;stroke:#666}.graph .edge .edge-label{fill:#251e1e;font-size:12px;stroke:none}.graph .panning-rect{cursor:move;fill:transparent}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}"],encapsulation:2,changeDetection:0}),Me([(500,function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Fa(n.value,500,undefined)}),this[e]}}}),Oe("design:type",Function),Oe("design:paramtypes",[]),Oe("design:returntype",void 0)],t.prototype,"updateMinimap",null),t})(),za=(()=>{class t{constructor(){this.mouseWheelUp=new s.vpe,this.mouseWheelDown=new s.vpe}onMouseWheelChrome(t){this.mouseWheelFunc(t)}onMouseWheelFirefox(t){this.mouseWheelFunc(t)}onWheel(t){this.mouseWheelFunc(t)}onMouseWheelIE(t){this.mouseWheelFunc(t)}mouseWheelFunc(t){window.event&&(t=window.event);const e=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail||t.deltaY||t.deltaX)),n=t.wheelDelta?e<0:e>0;(t.wheelDelta?e>0:e<0)?this.mouseWheelUp.emit(t):n&&this.mouseWheelDown.emit(t),t.returnValue=!1,t.preventDefault&&t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mouseWheel",""]],hostBindings:function(t,e){1&t&&s.NdJ("mousewheel",function(t){return e.onMouseWheelChrome(t)})("DOMMouseScroll",function(t){return e.onMouseWheelFirefox(t)})("wheel",function(t){return e.onWheel(t)})("onmousewheel",function(t){return e.onMouseWheelIE(t)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),t})(),ja=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[La],imports:[[Wi]]}),t})(),Ya=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[co],ja]}),t})();function Ba(){}function Ja(t){return null==t?Ba:function(){return this.querySelector(t)}}function Ga(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Va(){return[]}function Ha(t){return null==t?Va:function(){return this.querySelectorAll(t)}}function Qa(t){return function(){return this.matches(t)}}function Wa(t){return function(e){return e.matches(t)}}var $a=Array.prototype.find;function Xa(){return this.firstElementChild}var Ka=Array.prototype.filter;function ts(){return this.children}function es(t){return new Array(t.length)}function ns(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function rs(t){return function(){return t}}function is(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;se?1:t>=e?0:NaN}ns.prototype={constructor:ns,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var us="http://www.w3.org/1999/xhtml",cs={svg:"http://www.w3.org/2000/svg",xhtml:us,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ls(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),cs.hasOwnProperty(e)?{space:cs[e],local:t}:t}function hs(t){return function(){this.removeAttribute(t)}}function fs(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ds(t,e){return function(){this.setAttribute(t,e)}}function ps(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function gs(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function ms(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function vs(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ys(t){return function(){this.style.removeProperty(t)}}function _s(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ws(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function bs(t,e){return t.style.getPropertyValue(e)||vs(t).getComputedStyle(t,null).getPropertyValue(e)}function xs(t){return function(){delete this[t]}}function Es(t,e){return function(){this[t]=e}}function Ts(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function As(t){return t.trim().split(/^|\s+/)}function Ss(t){return t.classList||new Is(t)}function Is(t){this._node=t,this._names=As(t.getAttribute("class")||"")}function Cs(t,e){for(var n=Ss(t),r=-1,i=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function Qs(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tu=[null];function eu(t,e){this._groups=t,this._parents=e}function nu(){return new eu([[document.documentElement]],tu)}eu.prototype=nu.prototype={constructor:eu,select:function(t){"function"!=typeof t&&(t=Ja(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=b&&(b=w+1);!(_=m[b])&&++b=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=ss);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?ys:"function"==typeof e?ws:_s)(t,e,null==n?"":n)):bs(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?xs:"function"==typeof e?Ts:Es)(t,e)):this.node()[t]},classed:function(t,e){var n=As(t+"");if(arguments.length<2){for(var r=Ss(this.node()),i=-1,o=n.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Eu(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Eu(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=fu.exec(t))?new Su(e[1],e[2],e[3],1):(e=du.exec(t))?new Su(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=pu.exec(t))?Eu(e[1],e[2],e[3],e[4]):(e=gu.exec(t))?Eu(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=mu.exec(t))?Nu(e[1],e[2]/100,e[3]/100,1):(e=vu.exec(t))?Nu(e[1],e[2]/100,e[3]/100,e[4]):yu.hasOwnProperty(t)?xu(yu[t]):"transparent"===t?new Su(NaN,NaN,NaN,0):null}function xu(t){return new Su(t>>16&255,t>>8&255,255&t,1)}function Eu(t,e,n,r){return r<=0&&(t=e=n=NaN),new Su(t,e,n,r)}function Tu(t){return t instanceof au||(t=bu(t)),t?new Su((t=t.rgb()).r,t.g,t.b,t.opacity):new Su}function Au(t,e,n,r){return 1===arguments.length?Tu(t):new Su(t,e,n,null==r?1:r)}function Su(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Iu(){return"#"+Du(this.r)+Du(this.g)+Du(this.b)}function Cu(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Du(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Nu(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Zu(t,e,n,r)}function ku(t){if(t instanceof Zu)return new Zu(t.h,t.s,t.l,t.opacity);if(t instanceof au||(t=bu(t)),!t)return new Zu;if(t instanceof Zu)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&u<1?0:a,new Zu(a,s,u,t.opacity)}function Zu(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Mu(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ou(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}iu(au,bu,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:_u,formatHex:_u,formatHsl:function(){return ku(this).formatHsl()},formatRgb:wu,toString:wu}),iu(Su,Au,ou(au,{brighter:function(t){return t=null==t?su:Math.pow(su,t),new Su(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Su(this.r*t,this.g*t,this.b*t,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:Iu,formatHex:Iu,formatRgb:Cu,toString:Cu})),iu(Zu,function(t,e,n,r){return 1===arguments.length?ku(t):new Zu(t,e,n,null==r?1:r)},ou(au,{brighter:function(t){return t=null==t?su:Math.pow(su,t),new Zu(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Zu(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Su(Mu(t>=240?t-240:t+120,i,r),Mu(t,i,r),Mu(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Ru=t=>()=>t;function Lu(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Ru(isNaN(t)?e:t)}var Uu=function t(e){var n=function(t){return 1==(t=+t)?Lu:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ru(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Au(t)).r,(e=Au(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Lu(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Pu(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1];return Ou((n-r/e)*e,r>0?t[r-1]:2*i-o,i,o,ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Fu(n,r)})),o=zu.lastIndex;return o0)throw new Error("too late; already scheduled");return n}function Hu(t,e){var n=Qu(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Qu(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Wu,$u=180/Math.PI,Xu={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ku(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Fu(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Fu(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,u),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Fu(t,n)},{i:s-2,x:Fu(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(t){for(var e,n=-1,r=u.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Vu:Hu;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var Ec=ru.prototype.constructor;function Tc(t){return function(){this.style.removeProperty(t)}}function Ac(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Sc(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Ac(t,o,n)),r}return o._value=e,o}function Ic(t){return function(e){this.textContent=t.call(this,e)}}function Cc(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Ic(r)),e}return r._value=t,r}var Dc=0;function Nc(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function kc(){return++Dc}var Zc=ru.prototype;Nc.prototype=(function(t){return ru().transition(t)}).prototype={constructor:Nc,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Ja(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}(this,t)})},ru.prototype.transition=function(t){var e,n;t instanceof Nc?(e=t._id,t=t._name):(e=kc(),(n=Mc).time=(0,Jo.zO)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Yc(t){if(!(e=jc.exec(t)))throw new Error("invalid format: "+t);var e;return new Bc({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Bc(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Yc.prototype=Bc.prototype,Bc.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};var Jc,Gc=Array.prototype.map;function Vc(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;++s=0;)e+=n[r].value;else e=1;t.value=e}function Wc(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Xc)):void 0===e&&(e=$c);for(var n,r,i,o,a,s=new el(t),u=[s];n=u.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new el(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(tl)}function $c(t){return t.children}function Xc(t){return Array.isArray(t)?t[1]:null}function Kc(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function tl(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function el(t){this.data=t,this.depth=this.height=0,this.parent=null}void 0===(Jc={thousands:",",grouping:[3],currency:["$",""]}).grouping||void 0===Jc.thousands||Gc.call(Jc.grouping,Number),void 0===Jc.numerals||Gc.call(Jc.numerals,String),function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,m,v=[],y=e.children,_=0,w=0,b=y.length,x=e.value;_f&&(f=s),m=l*l*g,(d=Math.max(f/m,m/h))>p){l-=s;break}p=d}v.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),el.prototype=Wc.prototype={constructor:el,count:function(){return this.eachAfter(Qc)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],u=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return Wc(this).eachBefore(Kc)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n{class t{constructor(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.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(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const n=Object.getOwnPropertyNames(e.inputs);for(const r of n)t.instance[r]=e.inputs[r]}if(void 0!==e.outputs){const n=Object.getOwnPropertyNames(e.outputs);for(const r of n)t.instance[r]=e.outputs[r]}}return t}appendComponent(t,e={},n){n||(n=this.getRootViewContainer());const r=this.getComponentRootNode(n),i=new Le.F0(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Le.C5(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.z2F),s.LFG(s._Vd),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function ul(t,e,n){let r,i,o;n=n||{};let a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){const c=+new Date;s||!1!==n.leading||(s=c);const l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var cl=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function ll(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function hl(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}class fl{static calculateVerticalAlignment(t,e,n){let r=ll(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(t,e,n,r){let i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);const o=ll(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}static calculateHorizontalAlignment(t,e,n){let r=hl(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(t,e,n,r){let i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);const o=hl(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}static shouldFlip(t,e,n,r){let i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}static positionCaret(t,e,n,r,i){let o=0,a=0;return t===cl.right?(a=-7,o=fl.calculateVerticalCaret(n,e,r,i)):t===cl.left?(a=e.width,o=fl.calculateVerticalCaret(n,e,r,i)):t===cl.top?(o=e.height,a=fl.calculateHorizontalCaret(n,e,r,i)):t===cl.bottom&&(o=-7,a=fl.calculateHorizontalCaret(n,e,r,i)),{top:o,left:a}}static positionContent(t,e,n,r,i){let o=0,a=0;return t===cl.right?(a=n.left+n.width+r,o=fl.calculateVerticalAlignment(n,e,i)):t===cl.left?(a=n.left-e.width-r,o=fl.calculateVerticalAlignment(n,e,i)):t===cl.top?(o=n.top-e.height-r,a=fl.calculateHorizontalAlignment(n,e,i)):t===cl.bottom&&(o=n.top+n.height+r,a=fl.calculateHorizontalAlignment(n,e,i)),{top:o,left:a}}static determinePlacement(t,e,n,r){if(fl.shouldFlip(n,e,t,r)){if(t===cl.right)return cl.left;if(t===cl.left)return cl.right;if(t===cl.top)return cl.bottom;if(t===cl.bottom)return cl.top}return t}}let dl=(()=>{class t{constructor(t,e,n){this.element=t,this.renderer=e,this.platformId=n}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=` position-${this.placement}`,t+=` type-${this.type}`,t+=` ${this.cssClass}`,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,i.NF)(this.platformId))return;const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const n=t.getBoundingClientRect();this.checkFlip(e,n),this.positionContent(t,e,n),this.showCaret&&this.positionCaret(e,n),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,n){const{top:r,left:i}=fl.positionContent(this.placement,n,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",`${r}px`),this.renderer.setStyle(t,"left",`${i}px`)}positionCaret(t,e){const n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),{top:i,left:o}=fl.positionCaret(this.placement,e,t,r,this.alignment);this.renderer.setStyle(n,"top",`${i}px`),this.renderer.setStyle(n,"left",`${o}px`)}checkFlip(t,e){this.placement=fl.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){if(1&t&&s.Gf(nl,5),2&t){let t;s.iGM(t=s.CRH())&&(e.caretElm=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("resize",function(){return e.onWindowResize()},!1,s.Jf7),2&t&&s.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"span",0,1),s.TgZ(3,"div",2),s.YNc(4,ol,2,4,"span",3),s.YNc(5,al,1,1,"span",4),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Gre("tooltip-caret position-",e.placement,""),s.Q6J("hidden",!e.showCaret),s.xp6(3),s.Q6J("ngIf",!e.title),s.xp6(1),s.Q6J("ngIf",e.title))},directives:[i.O5,i.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);o>3&&a&&Object.defineProperty(e,n,a)}([(100,function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:ul(n.value,100,undefined)}),this[e]}}})],t.prototype,"onWindowResize",null),t})(),pl=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const n=this.injectComponent(t,e);return this.register(t,n),n}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=dl}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(sl))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),gl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez]]}),t})();var ml=function(t){return t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip",t}({}),vl=function(t){return t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right",t}({}),yl=function(t){return t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover",t}({});let _l,wl=(()=>{class t{constructor(t,e,n){this.tooltipService=t,this.viewContainerRef=e,this.renderer=n,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=cl.top,this.tooltipAlignment=vl.center,this.tooltipType=ml.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=yl.all,this.tooltipImmediateExit=!1,this.show=new s.vpe,this.hide=new s.vpe}get listensForFocus(){return this.tooltipShowEvent===yl.all||this.tooltipShowEvent===yl.focus}get listensForHover(){return this.tooltipShowEvent===yl.all||this.tooltipShowEvent===yl.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(t){if(this.component||this.tooltipDisabled)return;const e=t?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const t=this.createBoundOptions();this.component=this.tooltipService.create(t),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},e)}addHideListeners(t){this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",e=>{t.contains(e.target)||this.hideTooltip()}))}hideTooltip(t=!1){if(!this.component)return;const e=()=>{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),t?e():this.timeout=setTimeout(e,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 t.\u0275fac=function(e){return new(e||t)(s.Y36(pl),s.Y36(s.s_b),s.Y36(s.Qsj))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&s.NdJ("focusin",function(){return e.onFocus()})("blur",function(){return e.onBlur()})("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(t){return e.onMouseLeave(t.target)})("click",function(){return e.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",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),bl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[sl,pl],imports:[[i.ez]]}),t})();"undefined"!=typeof window?_l=window:"undefined"!=typeof global&&(_l=global);let xl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez,gl,bl],i.ez,gl,bl]}),t})(),El=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Tl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Al=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Sl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Il=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})();Math;let Cl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Dl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl,Cl,Il]]}),t})(),Nl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),kl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Zl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl,Cl,Tl]]}),t})(),Ml=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[xl,El,Tl,Al,Sl,Il,Dl,Nl,Cl,kl,Zl]}),t})();function Ol(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"mat-spinner",3),s.qZA())}function Rl(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.TgZ(3,"strong"),s._uU(4),s.qZA(),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),s.xp6(3),s.Oqu(t.service)}}function Ll(t,e){1&t&&(s.O4$(),s.TgZ(0,"marker",10),s._UZ(1,"path",11),s.qZA())}function Ul(t,e){if(1&t&&(s.O4$(),s.TgZ(0,"g",12),s._UZ(1,"rect"),s.TgZ(2,"text",13),s._uU(3),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.Q6J("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",t.tooltip),s.xp6(1),s.uIk("width",t.dimension.width)("height",t.dimension.height)("fill",t.color),s.xp6(1),s.uIk("x",10)("y",t.dimension.height/2),s.xp6(1),s.Oqu(t.label)}}function Pl(t,e){if(1&t&&(s.O4$(),s.TgZ(0,"g",14),s._UZ(1,"path",15),s.TgZ(2,"text",16),s.TgZ(3,"textPath",17),s._uU(4),s.qZA(),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.xp6(3),s.uIk("href","#"+t.id),s.xp6(1),s.hij(" ",t.label," ")}}const Fl=function(t,e){return[t,e]};function ql(t,e){if(1&t&&(s.TgZ(0,"div"),s._uU(1),s.ALo(2,"translate"),s.TgZ(3,"strong"),s._uU(4),s.qZA(),s._uU(5),s.ALo(6,"translate"),s.TgZ(7,"strong"),s._uU(8),s.qZA(),s.YNc(9,Rl,5,4,"span",4),s.TgZ(10,"div",5),s.TgZ(11,"ngx-graph",6),s.YNc(12,Ll,2,0,"ng-template",null,7,s.W1O),s.YNc(14,Ul,4,9,"ng-template",null,8,s.W1O),s.YNc(16,Pl,5,2,"ng-template",null,9,s.W1O),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.hij(" ",s.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),s.xp6(3),s.AsE("",t.user.firstName," ",t.user.lastName,""),s.xp6(1),s.hij(" ",s.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),s.xp6(3),s.Oqu(t.destination),s.xp6(1),s.Q6J("ngIf","noService"!==t.service),s.xp6(2),s.Q6J("links",t.hierarchialGraph.links)("nodes",t.hierarchialGraph.nodes)("curve",t.curve)("draggingEnabled",!1)("zoomToFit$",t.zoomToFit$)("view",s.WLB(16,Fl,t.innerWidth,t.innerHeight))}}function zl(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.TgZ(3,"strong"),s._uU(4),s.qZA(),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),s.xp6(3),s.Oqu(t.service)}}function jl(t,e){if(1&t&&(s._uU(0),s.ALo(1,"translate"),s.TgZ(2,"strong"),s._uU(3),s.qZA(),s._uU(4),s.ALo(5,"translate"),s.TgZ(6,"strong"),s._uU(7),s.qZA(),s.YNc(8,zl,5,4,"span",4),s._uU(9),s.ALo(10,"translate")),2&t){const t=s.oxw(2);s.hij(" ",s.lcZ(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),s.xp6(3),s.AsE("",t.user.firstName," ",t.user.lastName,""),s.xp6(1),s.hij(" ",s.lcZ(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),s.xp6(3),s.Oqu(t.destination),s.xp6(1),s.Q6J("ngIf","noService"!==t.service),s.xp6(1),s.hij(" ",s.lcZ(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function Yl(t,e){if(1&t&&(s.YNc(0,ql,18,19,"div",1),s.YNc(1,jl,11,13,"ng-template",null,2,s.W1O)),2&t){const t=s.MAs(2),e=s.oxw();s.Q6J("ngIf",e.isConnected)("ngIfElse",t)}}let Bl=(()=>{class t{constructor(t,e,n,r,i,o,a,s,u){this.route=t,this.facilityManager=e,this.userService=n,this.membersService=r,this.serviceService=i,this.resourceManager=o,this.groupService=a,this.voService=s,this.translate=u,this.idCounter=0,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=ke,this.zoomToFit$=new Ze.xQ}ngOnInit(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(t=>{console.log(t),this.destination=t.destination,this.service=t.service,this.userService.getUserById(t.user).subscribe(t=>{this.user=t,this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(t=>{this.facilities=t,this.membersService.getMembersByUser(this.user.id).subscribe(t=>{if(this.membership=t,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){const t=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:t,label:this.user.firstName+" "+this.user.lastName,tooltip:this.localUser,color:"#FFFFCC",tip:"user: "+this.user.id}];const e=""+this.id(),n="destination no id";this.hierarchialGraph.nodes="noService"===this.service?[...this.hierarchialGraph.nodes,{id:e,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:n}]:[...this.hierarchialGraph.nodes,{id:e,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:n}];for(const r of this.facilities)this.serviceService.getAllRichDestinationsForFacility(r.id).subscribe(t=>{this.connectToService(r,t),this.delay(2e3).then(()=>{this.zoomToFit$.next(!0),this.loading=!1})})}connectToService(t,e){this.isConnectedToService(e)&&this.facilityManager.getAssignedResourcesForFacility(t.id).subscribe(e=>{for(let n=0;n{0!==r.length&&this.groupService.getMemberGroups(e.id).subscribe(e=>{const i=this.findConnectedGroups(r,e);if(0!==i.length)for(const r of i)this.connectToResource(t,r,n)})})}connectToResource(t,e,n){this.resourceManager.getAssignedResourcesWithGroup(e.id).subscribe(r=>{const i=this.findConnectedResources(r,n);for(const n of i)this.resourceManager.getAssignedServicesToResource(n.id).subscribe(r=>{this.haveService(r)&&(this.isConnected=!0,this.addNodesToGraph(e.voId,e,n,t))})})}addNodesToGraph(t,e,n,r){if(-1===this.findEntityInGraph("Facility: "+r.id)){const t=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:t,label:this.localFacility+": "+r.name,tooltip:r.description,color:"#FFCCFF",tip:"Facility: "+r.id}];const e={source:t,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links=[...this.hierarchialGraph.links,e]}this.voService.getVoById(t).subscribe(t=>{if(-1===this.findEntityInGraph("Vo: "+t.id)){const e=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:e,label:this.localVo+": "+t.shortName,tooltip:t.name,color:"#E5FFCC",tip:"Vo: "+t.id}];const n={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id)].id,target:e};this.hierarchialGraph.links=[...this.hierarchialGraph.links,n]}if(-1===this.findEntityInGraph("Group: "+e.id)){const n=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:n,label:this.localGroup+": "+e.name,tooltip:e.description,color:"#CCE5FF",tip:"Group: "+e.id}];const r={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+t.id)].id,target:n};this.hierarchialGraph.links=[...this.hierarchialGraph.links,r]}const i=this.findEntityInGraph("Resource: "+n.id);if(-1!==i){const t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+e.id)].id,target:this.hierarchialGraph.nodes[i].id};this.hierarchialGraph.links=[...this.hierarchialGraph.links,t]}else{const t=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:t,label:this.localResource+": "+n.name,tooltip:n.description,color:"#FFCCCC",tip:"Resource: "+n.id}];const i={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+e.id)].id,target:t};this.hierarchialGraph.links=[...this.hierarchialGraph.links,i];const o={source:t,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+r.id)].id};this.hierarchialGraph.links=[...this.hierarchialGraph.links,o]}})}haveService(t){if("noService"===this.service)return!0;for(const e of t)if(this.service===e.name)return!0;return!1}findConnectedGroups(t,e){const n=[];for(let r=0;rsetTimeout(()=>e(),t)).then(()=>console.log("fired"))})}onResize(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight}getLocalizedNames(){this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.USER").subscribe(t=>{this.localUser=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.VO").subscribe(t=>{this.localVo=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.GROUP").subscribe(t=>{this.localGroup=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.RESOURCE").subscribe(t=>{this.localResource=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.FACILITY").subscribe(t=>{this.localFacility=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SERVICE").subscribe(t=>{this.localService=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION").subscribe(t=>{this.localDestination=t})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(b.IQ),s.Y36(b.Fv),s.Y36(b.uq),s.Y36(b.KK),s.Y36(b.xk),s.Y36(b.ff),s.Y36(b.YF),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-user-destination-graph"]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.onResize(t)},!1,s.Jf7),2&t&&s.ekj("router-component",e.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","curve","draggingEnabled","zoomToFit$","view"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","viewBox","0 -5 10 10","refX","8","refY","0","markerWidth","4","markerHeight","4","orient","auto"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["ngx-tooltip","",1,"node",3,"tooltipPlacement","tooltipType","tooltipTitle"],["alignment-baseline","central"],[1,"edge"],["stroke-width","2","marker-end","url(#arrow)",1,"line"],["text-anchor","end",1,"edge-label"],["startOffset","60%",2,"fill","#000"]],template:function(t,e){if(1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,Ol,2,0,"div",1),s.YNc(4,Yl,3,2,"ng-template",null,2,s.W1O)),2&t){const t=s.MAs(5);s.xp6(1),s.hij(" ",s.lcZ(2,3,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE"),"\n"),s.xp6(2),s.Q6J("ngIf",e.loading)("ngIfElse",t)}},directives:[i.O5,E.$g,qa,wl],pipes:[f.X$],styles:[""]}),t})();var Jl=n(71313);function Gl(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function Vl(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function Hl(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function Ql(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function Wl(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}let $l=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.userService=n,this.notificator=r,this.translateService=i,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.titleBefore=new L.NI(this.data.user.titleBefore,[L.kI.pattern(".*[\\S]+.*"),L.kI.maxLength(129)]),this.titleAfter=new L.NI(this.data.user.titleAfter,[L.kI.pattern(".*[\\S]+.*"),L.kI.maxLength(129)]),this.firstName=new L.NI(this.data.user.firstName,[L.kI.required,L.kI.pattern(".*[\\S]+.*"),L.kI.maxLength(129)]),this.middleName=new L.NI(this.data.user.middleName,[L.kI.pattern(".*[\\S]+.*"),L.kI.maxLength(129)]),this.lastName=new L.NI(this.data.user.lastName,[L.kI.required,L.kI.pattern(".*[\\S]+.*"),L.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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.Fv),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-edit-user-dialog"]],decls:32,vars:38,consts:[[1,"mat-dialog-title"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["matInput","","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",1),s.TgZ(5,"mat-form-field"),s._UZ(6,"input",2),s.ALo(7,"translate"),s.YNc(8,Gl,3,3,"mat-error",3),s.qZA(),s.TgZ(9,"mat-form-field"),s._UZ(10,"input",2),s.ALo(11,"translate"),s.YNc(12,Vl,3,3,"mat-error",3),s.qZA(),s.TgZ(13,"mat-form-field"),s._UZ(14,"input",4),s.ALo(15,"translate"),s.YNc(16,Hl,3,3,"mat-error",3),s.qZA(),s.TgZ(17,"mat-form-field"),s._UZ(18,"input",2),s.ALo(19,"translate"),s.YNc(20,Ql,3,3,"mat-error",3),s.qZA(),s.TgZ(21,"mat-form-field"),s._UZ(22,"input",4),s.ALo(23,"translate"),s.YNc(24,Wl,3,3,"mat-error",3),s.qZA(),s.qZA(),s.TgZ(25,"div",5),s.TgZ(26,"button",6),s.NdJ("click",function(){return e.onCancel()}),s._uU(27),s.ALo(28,"translate"),s.qZA(),s.TgZ(29,"button",7),s.NdJ("click",function(){return e.onSave()}),s._uU(30),s.ALo(31,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),s.xp6(4),s.s9C("placeholder",s.lcZ(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),s.Q6J("formControl",e.titleBefore),s.xp6(2),s.Q6J("ngIf",e.titleBefore.invalid),s.xp6(2),s.s9C("placeholder",s.lcZ(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),s.Q6J("formControl",e.titleAfter),s.xp6(2),s.Q6J("ngIf",e.titleAfter.invalid),s.xp6(2),s.s9C("placeholder",s.lcZ(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),s.Q6J("formControl",e.firstName),s.xp6(2),s.Q6J("ngIf",e.firstName.invalid),s.xp6(2),s.s9C("placeholder",s.lcZ(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),s.Q6J("formControl",e.middleName),s.xp6(2),s.Q6J("ngIf",e.middleName.invalid),s.xp6(2),s.s9C("placeholder",s.lcZ(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),s.Q6J("formControl",e.lastName),s.xp6(2),s.Q6J("ngIf",e.lastName.invalid),s.xp6(3),s.hij(" ",s.lcZ(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loading||e.firstName.invalid||e.lastName.invalid||e.titleBefore.invalid||e.titleAfter.invalid||e.middleName.invalid),s.xp6(1),s.hij(" ",s.lcZ(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},directives:[y.xY,O.KE,R.Nt,L.Fj,L.JJ,L.oH,i.O5,L.Q7,y.H8,x.lW,O.TO],pipes:[f.X$],styles:[""]}),t})();var Xl=n(22196);function Kl(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function th(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",12),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).editUser()}),s.TgZ(1,"mat-icon"),s._uU(2,"edit"),s.qZA(),s.qZA()}}const eh=function(){return{color:"black"}},nh=function(t){return["/admin/users",t]};function rh(t,e){if(1&t&&(s.TgZ(0,"div",4),s._UZ(1,"mat-icon",5),s.ALo(2,"translate"),s.TgZ(3,"div",6),s.TgZ(4,"div",7),s.TgZ(5,"a",8),s._uU(6),s.ALo(7,"userFullName"),s.qZA(),s.TgZ(8,"span",9),s._uU(9),s.qZA(),s.YNc(10,th,3,0,"button",10),s.qZA(),s.TgZ(11,"div"),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.TgZ(14,"span",11),s._uU(15),s.ALo(16,"translate"),s.ALo(17,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.s9C("matTooltip",s.lcZ(2,11,"ADMIN_USER.ENTITY")),s.Q6J("ngStyle",s.DdM(21,eh)),s.xp6(4),s.Q6J("routerLink",s.VKq(22,nh,t.user.id)),s.xp6(1),s.hij(" ",s.lcZ(7,13,t.user)," "),s.xp6(3),s.hij(" \xa0#",t.user.id," "),s.xp6(1),s.Q6J("ngIf",t.authResolver.isPerunAdmin()),s.xp6(2),s.AsE(" ",s.lcZ(13,15,"ADMIN_USER.UUID"),": ",t.user.uuid," "),s.xp6(3),s.lnq(" ",s.lcZ(16,17,"ADMIN_USER.ENTITY"),", ",s.lcZ(17,19,"ADMIN_USER.USER_TYPE"),": ",t.getUserType()," ")}}let ih=(()=>{class t{constructor(t,e,n,r,i,o){this.route=t,this.usersService=e,this.sideMenuService=n,this.sideMenuItemService=r,this.dialog=i,this.authResolver=o,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{const e=t.userId;this.path=`/admin/users/${e}`,this.regex="/admin/users/\\d+",this.usersService.getUserById(e).subscribe(t=>{this.user=t;const e=this.sideMenuItemService.parseUser(t,this.path,this.regex);this.sideMenuService.setAdminItems([e]),this.loading=!1},()=>this.loading=!1)})}editUser(){const t=(0,tt.kZ)();t.width="450px",t.data={theme:"admin-theme",user:this.user},this.dialog.open($l,t).afterClosed().subscribe(t=>{t&&this.usersService.getUserById(this.user.id).subscribe(t=>{this.user=t})})}getUserType(){return this.user.serviceUser?"Service":"Person"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(b.Fv),s.Y36(u.D),s.Y36(a.V),s.Y36(y.uw),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,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"],["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"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"perun-web-apps-back-button"),s.YNc(2,Kl,1,0,"mat-spinner",1),s.YNc(3,rh,18,24,"div",2),s._UZ(4,"app-animated-router-outlet"),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading&&void 0!==e.user))},directives:[c.W,i.O5,h.A,E.$g,l.Hw,M.gM,i.PC,o.yS,x.lW],pipes:[f.X$,Xl.d],styles:[""]}),t})();var oh=n(71956),ah=n(15879),sh=n(31612),uh=n(40790),ch=n(95690),lh=n(68787),hh=n(4359);function fh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",5),s.NdJ("click",function(){return s.CHM(t),s.oxw().onLoad()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.EXT_SOURCES.LOAD")," "))}function dh(t,e){1&t&&s._UZ(0,"mat-spinner",6)}const ph=function(){return["id","name","type"]};function gh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-ext-sources-list",7),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("extSources",t.extSources)("filterValue",t.filterValue)("displayedColumns",s.DdM(4,ph))("pageSize",t.pageSize)}}let mh=(()=>{class t{constructor(t,e,n,r,i){this.extSourceService=t,this.notificator=e,this.tableConfigService=n,this.translate=r,this.authResolver=i,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=et.qy,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(t=>this.loadSuccess=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}applyFilter(t){this.filterValue=t}onLoad(){this.extSourceService.loadExtSourcesDefinitions().subscribe(()=>{this.notificator.showSuccess(this.loadSuccess),this.refreshTable()})}refreshTable(){this.loading=!0,this.extSourceService.getExtSources().subscribe(t=>{this.extSources=t,this.loading=!1})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.KG),s.Y36(w.V6),s.Y36(et.dB),s.Y36(f.sK),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-ext-sources"]],decls:8,vars:7,consts:[[1,"page-subtitle"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","filterValue","displayedColumns","pageSize","page",4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"extSources","filterValue","displayedColumns","pageSize","page"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,fh,3,3,"button",1),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(6,dh,1,0,"mat-spinner",3),s.YNc(7,gh,1,5,"app-ext-sources-list",4),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,5,"ADMIN.EXT_SOURCES.TITLE")),s.xp6(2),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","ADMIN.EXT_SOURCES.SEARCH"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[i.O5,at.L,x.lW,E.$g,hh.D],pipes:[f.X$],styles:[""]}),t})();var vh=n(7233),yh=n(67004),_h=n(86593);function wh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-users-list",14),s.NdJ("page",function(e){return s.CHM(t),s.oxw(2).pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw(2);s.Q6J("pageSize",t.pageSize)("displayedColumns",t.displayedColumns)("users",t.identities)("disableRouting",!0)("selection",t.selection)}}function bh(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,wh,1,5,"app-users-list",13),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf",void 0!==t.identities&&t.identities.length>0)}}function xh(t,e){1&t&&(s.TgZ(0,"app-alert",15),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.Q6J("alert_type","info"),s.xp6(1),s.hij(" ",s.lcZ(2,2,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function Eh(t,e){1&t&&(s.TgZ(0,"app-alert",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function Th(t,e){1&t&&s._UZ(0,"mat-spinner",17)}let Ah=(()=>{class t{constructor(t,e,n,r,i,o,a){this.dialogRef=t,this.data=e,this.tableConfigService=n,this.userManager=r,this.storeService=i,this.notificator=o,this.translate=a,this.loading=!1,this.selection=new v.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=et.Iz}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new L.NI("",[L.kI.required,L.kI.pattern(".*[\\S]+.*")])}onAdd(){let t,e;this.loading=!0,this.isService?(t=this.selection.selected[0].id,e=this.userId):(t=this.userId,e=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(t,e).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 t=[yh.r.USER_DEF_ORGANIZATION,yh.r.USER_DEF_PREFERRED_MAIL];t=t.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,t).subscribe(t=>{this.identities=this.filterIdentities(t),this.loading=!1},()=>{this.loading=!1})}onKeyInput(t){"Enter"===t.key&&this.onSearchByString()}filterIdentities(t){return t.filter(this.isService?t=>!t.serviceUser:t=>t.serviceUser)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(et.dB),s.Y36(b.Fv),s.Y36(w.d6),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-connect-identity-dialog"]],decls:26,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"],["mat-flat-button","","color","primary",1,"mr-2","search-btn",3,"disabled","click"],[4,"ngIf"],[3,"alert_type",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"pageSize","displayedColumns","users","disableRouting","selection","page",4,"ngIf"],[3,"pageSize","displayedColumns","users","disableRouting","selection","page"],[3,"alert_type"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.NdJ("keyup",function(t){return e.onKeyInput(t)}),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",2),s.TgZ(5,"mat-form-field",3),s.TgZ(6,"label"),s._UZ(7,"input",4),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"mat-error"),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA(),s.TgZ(12,"button",5),s.NdJ("click",function(){return e.onSearchByString()}),s.TgZ(13,"mat-icon"),s._uU(14,"search"),s.qZA(),s.qZA(),s.YNc(15,bh,2,1,"div",6),s.YNc(16,xh,3,4,"app-alert",7),s.YNc(17,Eh,3,3,"app-alert",8),s.qZA(),s.YNc(18,Th,1,0,"mat-spinner",9),s.TgZ(19,"div",10),s.TgZ(20,"button",11),s.NdJ("click",function(){return e.onCancel()}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.TgZ(23,"button",12),s.NdJ("click",function(){return e.onAdd()}),s._uU(24),s.ALo(25,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE")),s.xp6(5),s.s9C("placeholder",s.lcZ(8,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),s.Q6J("formControl",e.searchCtrl),s.xp6(3),s.hij(" ",s.lcZ(11,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(3),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.firstSearchDone),s.xp6(1),s.Q6J("ngIf",!e.loading&&e.firstSearchDone&&0===e.identities.length),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(3),s.hij(" ",s.lcZ(22,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),s.xp6(2),s.Q6J("disabled",0===e.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(25,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},directives:[y.uh,y.xY,O.KE,R.Nt,L.Fj,L.JJ,L.oH,O.TO,x.lW,l.Hw,i.O5,y.H8,_h.C,T.w,E.$g],pipes:[f.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),t})();function Sh(t,e){1&t&&s._UZ(0,"th",12)}function Ih(t,e){if(1&t&&(s.TgZ(0,"td",13),s._uU(1),s.ALo(2,"userFullName"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",s.lcZ(2,1,t)," ")}}function Ch(t,e){1&t&&s._UZ(0,"tr",14)}function Dh(t,e){1&t&&s._UZ(0,"tr",15)}let Nh=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.userManager=n,this.notificator=r,this.translate=i,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.userId=this.data.userId,this.dataSource=new _.by([this.data.specificUser]),this.isService=this.data.isService}onConfirm(){let t,e;this.isService?(t=this.dataSource.data[0].id,e=this.userId):(t=this.userId,e=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(t,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.Fv),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-disconnect-identity-dialog"]],decls:24,vars:21,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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div"),s.TgZ(4,"div",1),s.TgZ(5,"p"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"div",2),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.TgZ(11,"table",3),s.ynx(12,4),s.YNc(13,Sh,1,0,"th",5),s.YNc(14,Ih,3,3,"td",6),s.BQk(),s.YNc(15,Ch,1,0,"tr",7),s.YNc(16,Dh,1,0,"tr",8),s.qZA(),s.qZA(),s.TgZ(17,"div",9),s.TgZ(18,"button",10),s.NdJ("click",function(){return e.onCancel()}),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.TgZ(21,"button",11),s.NdJ("click",function(){return e.onConfirm()}),s._uU(22),s.ALo(23,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,11,"DIALOGS.DISCONNECT_IDENTITY.TITLE")),s.xp6(2),s.Tol(e.theme),s.xp6(3),s.Oqu(s.lcZ(7,13,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION")),s.xp6(3),s.hij(" ",s.lcZ(10,15,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),s.xp6(2),s.Q6J("dataSource",e.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(3),s.hij(" ",s.lcZ(20,17,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),s.xp6(3),s.hij(" ",s.lcZ(23,19,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},directives:[y.uh,y.xY,_.BZ,_.w1,_.fO,_.Dz,_.as,_.nj,y.H8,x.lW,_.ge,_.ev,_.XQ,_.Gk],pipes:[f.X$,Xl.d],styles:[""]}),t})();function kh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-refresh-button",7),s.NdJ("refresh",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}}function Zh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAdd()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE")," "))}function Mh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onRemove()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE")," ")}}function Oh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-users-list",10),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("pageSize",t.pageSize)("users",t.identities)("selection",t.selection)("displayedColumns",t.displayedColumns)}}function Rh(t,e){1&t&&(s.TgZ(0,"app-alert",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES")," "))}function Lh(t,e){1&t&&s._UZ(0,"mat-spinner",12)}let Uh=(()=>{class t{constructor(t,e,n,r,i,o){this.route=t,this.dialog=e,this.router=n,this.tableConfigService=r,this.userManager=i,this.authResolver=o,this.loading=!1,this.selection=new v.Ov(!1,[]),this.identities=[],this.tableId=et.Iz,this.displayedColumns=["select","id","user","name"]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.userId=t.userId,this.userManager.getSpecificUsersByUser(this.userId).subscribe(t=>{this.identities=t,this.loading=!1})})}refreshTable(){this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(t=>{this.identities=t,this.selection.clear(),this.loading=!1})}onAdd(){const t=(0,tt.kZ)();t.width="1250px",t.data={userId:this.userId,theme:"user-theme",isService:!1},this.dialog.open(Ah,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,tt.kZ)();t.width="650px",t.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],theme:"user-theme"},this.dialog.open(Nh,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(y.uw),s.Y36(o.F0),s.Y36(et.dB),s.Y36(b.Fv),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-user-settings-service-identities"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"pageSize","users","selection","displayedColumns","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"pageSize","users","selection","displayedColumns","page"],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,kh,1,0,"perun-web-apps-refresh-button",1),s.YNc(5,Zh,3,3,"button",2),s.YNc(6,Mh,3,4,"button",3),s.YNc(7,Oh,1,4,"app-users-list",4),s.YNc(8,Rh,3,3,"app-alert",5),s.qZA(),s.YNc(9,Lh,1,0,"mat-spinner",6)),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,7,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),s.xp6(2),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",void 0!==e.identities&&e.identities.length>0),s.xp6(1),s.Q6J("ngIf",!e.loading&&(void 0===e.identities||0===e.identities.length)),s.xp6(1),s.Q6J("ngIf",e.loading))},directives:[i.O5,ot.t,x.lW,_h.C,T.w,E.$g],pipes:[f.X$],styles:[""]}),t})();var Ph=n(56238),Fh=n(79996);function qh(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function zh(t,e){if(1&t&&(s.TgZ(0,"mat-option",14),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t.name," ")}}function jh(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"mat-form-field",8),s._UZ(2,"input",9),s.ALo(3,"translate"),s.TgZ(4,"mat-error"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"mat-form-field",8),s._UZ(8,"input",10),s.ALo(9,"translate"),s.TgZ(10,"mat-error"),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"mat-autocomplete",11,12),s.YNc(15,zh,2,2,"mat-option",13),s.ALo(16,"async"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(14),e=s.oxw();s.xp6(2),s.s9C("placeholder",s.lcZ(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),s.Q6J("formControl",e.loginControl),s.xp6(3),s.hij(" ",s.lcZ(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),s.xp6(3),s.s9C("placeholder",s.lcZ(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),s.Q6J("formControl",e.extSourcesControl)("matAutocomplete",t),s.xp6(3),s.hij(" ",s.lcZ(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),s.xp6(2),s.Q6J("displayWith",e.displayFn),s.xp6(2),s.Q6J("ngForOf",s.lcZ(16,17,e.filteredExtSources))}}let Yh=(()=>{class t{constructor(t,e,n,r,i,o){this.dialogRef=t,this.data=e,this.extSourcesManagerService=n,this.usersManagerService=r,this.translate=i,this.notificator=o,this.extSources=[],i.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.loginControl=new L.NI("",[L.kI.required,L.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new L.NI("",[L.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,Ph.O)(""),(0,Fh.U)(t=>this._filter(t))),this.extSourcesManagerService.getExtSources().subscribe(t=>{this.extSources=t,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,Ph.O)(""),(0,Fh.U)(t=>this._filter(t))),this.loading=!1},()=>this.loading=!1)}displayFn(t){return t?t.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(t){const e="string"==typeof t?t.toLowerCase():t.name.toLowerCase;return this.extSources.filter(t=>t.name.toLowerCase().includes(e))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KG),s.Y36(b.Fv),s.Y36(f.sK),s.Y36(w.V6))},t.\u0275cmp=s.Xpm({type:t,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","","type","text","required","",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.YNc(4,qh,1,0,"mat-spinner",2),s.YNc(5,jh,17,19,"div",3),s.qZA(),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.onAdd()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),s.xp6(3),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loginControl.invalid||e.extSourcesControl.invalid||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},directives:[y.uh,y.xY,i.O5,y.H8,x.lW,E.$g,O.KE,R.Nt,L.Fj,L.Q7,L.JJ,L.oH,O.TO,ye.ZL,ye.XC,i.sg,z.ey],pipes:[f.X$,i.Ov],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.auto-width[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:auto!important}.auto-width[_ngcontent-%COMP%] .mat-select-value[_ngcontent-%COMP%]{max-width:100%;width:auto}.pre-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),t})();var Bh=n(61189),Jh=n(23888);function Gh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().addIdentity()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"USER_DETAIL.IDENTITIES.ADD")))}function Vh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().removeIdentity()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.Oqu(s.lcZ(2,2,"USER_DETAIL.IDENTITIES.REMOVE"))}}function Hh(t,e){1&t&&s._UZ(0,"mat-spinner",9)}function Qh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"perun-web-apps-user-ext-sources-list",10),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("displayedColumns",t.displayedColumns)("selection",t.selection)("userExtSources",t.userExtSources)("pageSize",t.pageSize)}}let Wh=(()=>{class t{constructor(t,e,n,r,i,o,a){this.usersManagerService=t,this.storage=e,this.registrarManagerService=n,this.dialog=r,this.route=i,this.tableConfigService=o,this.authResolver=a,this.userExtSources=[],this.selection=new v.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=et.gG}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.userId=t.userId}),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.usersManagerService.getRichUserExtSources(this.userId).subscribe(t=>{this.userExtSources=t,this.loading=!1},()=>this.loading=!1)}addIdentity(){const t=(0,tt.kZ)();t.width="400px",t.data={userId:this.userId},this.dialog.open(Yh,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeIdentity(){const t=(0,tt.kZ)();t.width="400px",t.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(Bh.Lc,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.Fv),s.Y36(w.d6),s.Y36(b.tk),s.Y36(y.uw),s.Y36(o.gz),s.Y36(et.dB),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-user-identities"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","ml-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"admin-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","selection","userExtSources","pageSize","page"]],template:function(t,e){1&t&&(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 e.refreshTable()}),s.qZA(),s.YNc(4,Gh,3,3,"button",2),s.YNc(5,Vh,3,4,"button",3),s.TgZ(6,"div",4),s.YNc(7,Hh,1,0,"mat-spinner",5),s.qZA(),s.YNc(8,Qh,2,4,"div",6)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,"USER_DETAIL.IDENTITIES.TITLE")),s.xp6(3),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,x.lW,E.$g,Jh.j],pipes:[f.X$],styles:[""]}),t})();function $h(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function Xh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",5),s.TgZ(1,"mat-form-field"),s.TgZ(2,"input",6),s.NdJ("change",function(){return s.CHM(t),s.oxw().makePath()}),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-error"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"mat-form-field"),s.TgZ(8,"input",7),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().description=e}),s.ALo(9,"translate"),s.qZA(),s.qZA(),s.TgZ(10,"mat-form-field"),s._UZ(11,"input",8),s.ALo(12,"translate"),s.TgZ(13,"mat-error"),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.qZA(),s.TgZ(16,"mat-form-field"),s._UZ(17,"input",8),s.ALo(18,"translate"),s.TgZ(19,"mat-error"),s._uU(20),s.ALo(21,"translate"),s.qZA(),s.qZA(),s.TgZ(22,"mat-form-field"),s._UZ(23,"input",8),s.ALo(24,"translate"),s.TgZ(25,"mat-error"),s._uU(26),s.ALo(27,"translate"),s.qZA(),s.qZA(),s.TgZ(28,"span",9),s._uU(29),s.ALo(30,"translate"),s.TgZ(31,"mat-checkbox",10),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().status=e}),s._uU(32),s.ALo(33,"translate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.s9C("placeholder",s.lcZ(3,17,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),s.Q6J("formControl",t.nameControl),s.xp6(3),s.Oqu(s.lcZ(6,19,"DIALOGS.CREATE_EDIT_SERVICE.RESTRICTION_NAME")),s.xp6(3),s.s9C("placeholder",s.lcZ(9,21,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),s.Q6J("ngModel",t.description),s.xp6(3),s.s9C("placeholder",s.lcZ(12,23,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),s.Q6J("formControl",t.delayControl),s.xp6(3),s.Oqu(s.lcZ(15,25,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),s.xp6(3),s.s9C("placeholder",s.lcZ(18,27,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),s.Q6J("formControl",t.recurrenceControl),s.xp6(3),s.Oqu(s.lcZ(21,29,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),s.xp6(3),s.s9C("placeholder",s.lcZ(24,31,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),s.Q6J("formControl",t.pathControl),s.xp6(3),s.Oqu(s.lcZ(27,33,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),s.xp6(3),s.hij("",s.lcZ(30,35,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")," "),s.xp6(2),s.Q6J("ngModel",t.status),s.xp6(1),s.Oqu(s.lcZ(33,37,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT"))}}function Kh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",11),s.TgZ(1,"button",12),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",13),s.NdJ("click",function(){s.CHM(t);const e=s.oxw();return e.asEdit?e.onEdit():e.onCreate()}),s._uU(5),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.nameControl.invalid||t.delayControl.invalid||t.recurrenceControl.invalid||t.pathControl.invalid),s.xp6(1),s.hij(" ",t.buttonText," ")}}let tf=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.serviceManager=n,this.notificator=r,this.translate=i,this.loading=!1,this.status=!0,this.nameControl=new L.NI("",[L.kI.required,L.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new L.NI(10,[L.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new L.NI(2,[L.kI.pattern("^[0-9]*$")]),this.pathControl=new L.NI("",[L.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.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,id:0,beanName:""}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),this.dialogRef.close(!0),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,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})}onCancel(){this.dialogRef.close(!1)}makePath(){const t="./".concat(this.nameControl.value);this.pathControl.setValue(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KK),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-create-service-dialog"]],decls:6,vars:7,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"],["matInput","","required","",3,"formControl","placeholder","change"],["matInput","",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],[1,"d-flex"],[1,"ml-3",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.qZA(),s.YNc(3,$h,1,0,"mat-spinner",1),s.YNc(4,Xh,34,39,"div",2),s.YNc(5,Kh,6,5,"div",3),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(e.title),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[y.uh,i.O5,E.$g,y.xY,O.KE,R.Nt,L.Fj,L.Q7,L.JJ,L.oH,O.TO,L.On,q.oG,y.H8,x.lW],pipes:[f.X$],styles:[""]}),t})();var ef=n(20247);let nf=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.serviceManager=n,this.notificator=r,this.translate=i,this.displayedColumns=["name"],this.dataSource=new _.by(this.data.services),this.loading=!1,this.force=!1,this.relations=[]}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(t){this.force=t.force,t.deleted?this.onConfirm():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KK),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-delete-service-dialog"]],decls:2,vars:7,consts:[[3,"anotherMessage","entityNames","entityType","relations","deleted"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"app-delete-entity-dialog",0),s.NdJ("deleted",function(t){return e.onSubmit(t)}),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(1),s.Q6J("anotherMessage",e.anotherMessage)("entityNames",e.dataSource)("entityType","services")("relations",e.relations))},directives:[ef.e],styles:[""]}),t})();function rf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().createService()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.SERVICES.CREATE"),""))}function of(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().deleteService()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.SERVICES.DELETE"),"")}}function af(t,e){1&t&&s._UZ(0,"mat-spinner",9)}function sf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-services-list",10),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("pageSize",t.pageSize)("selection",t.selection)("services",t.services)("filterValue",t.filterValue)}}let uf=(()=>{class t{constructor(t,e,n,r){this.tableConfigService=t,this.serviceManager=e,this.dialog=n,this.authResolver=r,this.selection=new v.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=et.NL}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.serviceManager.getServices().subscribe(t=>{this.services=t,this.refreshTable()})}createService(){const t=(0,tt.kZ)();t.width="600px",t.data={theme:"admin-theme"},this.dialog.open(tf,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}deleteService(){const t=(0,tt.kZ)();t.width="600px",t.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(nf,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(t=>{this.services=t,this.selection.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(et.dB),s.Y36(b.KK),s.Y36(y.uw),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","ml-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"ml-2",3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"pageSize","selection","services","filterValue","page",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"pageSize","selection","services","filterValue","page"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,rf,3,3,"button",2),s.YNc(6,of,3,4,"button",3),s.TgZ(7,"perun-web-apps-immediate-filter",4),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(8,af,1,0,"mat-spinner",5),s.YNc(9,sf,1,4,"app-services-list",6),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,6,"ADMIN.SERVICES.TITLE")),s.xp6(3),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","ADMIN.SERVICES.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,lt.Q],pipes:[f.X$],styles:[""]}),t})();var cf=n(88884);function lf(t,e){1&t&&s._UZ(0,"mat-spinner",5)}const hf=function(){return["id","name","vo","facility","description"]};function ff(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-resources-list",6),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("pageSize",t.pageSize)("resources",t.resources)("filterValue",t.filterValue)("displayedColumns",s.DdM(4,hf))}}let df=(()=>{class t{constructor(t,e,n){this.userManager=t,this.tableConfigService=e,this.route=n,this.resources=[],this.tableId=et.kO,this.filterValue=""}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.userManager.getAssignedRichResourcesForUser(t.userId).subscribe(t=>{this.resources=t,this.loading=!1})})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}resourceFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.Fv),s.Y36(et.dB),s.Y36(o.gz))},t.\u0275cmp=s.Xpm({type:t,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,"pageSize","resources","filterValue","displayedColumns","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","resources","filterValue","displayedColumns","page"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(t){return e.resourceFilter(t)}),s.qZA(),s.YNc(6,lf,1,0,"mat-spinner",3),s.YNc(7,ff,1,5,"perun-web-apps-resources-list",4),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,4,"USER_DETAIL.RESOURCES.TITLE")),s.xp6(3),s.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,at.L,i.O5,E.$g,cf.C],pipes:[f.X$],styles:[""]}),t})();var pf=n(13572),gf=n(40695),mf=n(41186);const vf=["list"];function yf(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function _f(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-attributes-list",8,9),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("pageSize",t.pageSize)("attributes",t.attributes)("selection",t.selection)}}let wf=(()=>{class t{constructor(t,e,n,r,i){this.dialog=t,this.attributesManager=e,this.tableConfigService=n,this.userService=r,this.route=i,this.loading=!1,this.selection=new v.Ov(!0,[]),this.tableId=et.rF,this.attributes=[]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.params.subscribe(t=>{this.userService.getUserExtSourceById(t.identityId).subscribe(t=>{this.userExtSource=t,this.refreshTable()})})}refreshTable(){this.loading=!0,this.attributesManager.getUserExtSourceAttributes(this.userExtSource.id).subscribe(t=>{this.attributes=(0,tt.MX)(t),this.selection.clear(),this.loading=!1})}onAdd(){const t=(0,tt.kZ)();t.width="1050px",t.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(gf.n,t).afterClosed().subscribe(t=>{"saved"===t&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const t=(0,tt.kZ)();t.width="450px",t.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(Bh.wA,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,tt.kZ)();t.width="450px",t.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(pf.k,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(b.H8),s.Y36(et.dB),s.Y36(b.Fv),s.Y36(o.gz))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-identity-detail"]],viewQuery:function(t,e){if(1&t&&s.Gf(vf,5),2&t){let t;s.iGM(t=s.CRH())&&(e.list=t.first)}},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","attributes","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","attributes","selection","page"],["list",""]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(5,"button",2),s.NdJ("click",function(){return e.onSave()}),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"button",3),s.NdJ("click",function(){return e.onAdd()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.TgZ(11,"button",4),s.NdJ("click",function(){return e.onRemove()}),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.YNc(14,yf,1,0,"mat-spinner",5),s.YNc(15,_f,2,3,"perun-web-apps-attributes-list",6),s.qZA()),2&t&&(s.xp6(2),s.AsE("",s.lcZ(3,9,"SHARED.IDENTITY_DETAIL.TITLE")," - ",e.userExtSource?e.userExtSource.extSource.name:"",""),s.xp6(3),s.Q6J("disabled",0===e.selection.selected.length),s.xp6(1),s.Oqu(s.lcZ(7,11,"SHARED.IDENTITY_DETAIL.SAVE")),s.xp6(3),s.Oqu(s.lcZ(10,13,"SHARED.IDENTITY_DETAIL.ADD")),s.xp6(2),s.Q6J("disabled",0===e.selection.selected.length),s.xp6(1),s.Oqu(s.lcZ(13,15,"SHARED.IDENTITY_DETAIL.REMOVE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,x.lW,i.O5,E.$g,mf.p],pipes:[f.X$],styles:[""]}),t})();function bf(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function xf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",13),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).editService()}),s.TgZ(1,"mat-icon"),s._uU(2,"edit"),s.qZA(),s.qZA()}}function Ef(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).removeService()}),s.TgZ(1,"mat-icon"),s._uU(2,"delete_forever"),s.qZA(),s.qZA()}}const Tf=function(){return{color:"black"}},Af=function(t){return["/admin/services",t]};function Sf(t,e){if(1&t&&(s.TgZ(0,"div",4),s._UZ(1,"mat-icon",5),s.ALo(2,"translate"),s.TgZ(3,"div",6),s.TgZ(4,"div",7),s.TgZ(5,"a",8),s._uU(6),s.qZA(),s.TgZ(7,"span",9),s._uU(8),s.qZA(),s.YNc(9,xf,3,0,"button",10),s.YNc(10,Ef,3,0,"button",11),s.qZA(),s.TgZ(11,"span",12),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.s9C("matTooltip",s.lcZ(2,9,"SERVICE_DETAIL.ENTITY")),s.Q6J("ngStyle",s.DdM(13,Tf)),s.xp6(4),s.Q6J("routerLink",s.VKq(14,Af,t.service.id)),s.xp6(1),s.hij(" ",t.service.name," "),s.xp6(2),s.hij(" \xa0 #",t.service.id," "),s.xp6(1),s.Q6J("ngIf",t.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",t.authResolver.isPerunAdmin()),s.xp6(2),s.AsE(" ",s.lcZ(13,11,"SERVICE_DETAIL.DESCRIPTION"),": ",t.service.description," ")}}let If=(()=>{class t{constructor(t,e,n,r,i,o,a){this.route=t,this.router=e,this.serviceManager=n,this.sideMenuService=r,this.sideMenuItemService=i,this.dialog=o,this.authResolver=a,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.serviceManager.getServiceById(t.serviceId).subscribe(t=>{this.service=t;const e=this.sideMenuItemService.parseService(this.service);this.sideMenuService.setAdminItems([e]),this.loading=!1},()=>this.loading=!1)})}editService(){const t=(0,tt.kZ)();t.width="600px",t.data={theme:"service-theme",service:this.service},this.dialog.open(tf,t).afterClosed().subscribe(t=>{t&&this.ngOnInit()})}removeService(){const t=(0,tt.kZ)();t.width="600px",t.data={theme:"service-theme",services:[this.service]},this.dialog.open(nf,t).afterClosed().subscribe(t=>{t&&(console.log(t),this.router.navigate(["/admin/services"]))})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(o.F0),s.Y36(b.KK),s.Y36(u.D),s.Y36(a.V),s.Y36(y.uw),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-service-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","service-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","d-flex page-title-headtitle",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"service-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit service","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Remove service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["aria-label","Edit service","mat-icon-button","",3,"click"],["aria-label","Remove service","mat-icon-button","",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"perun-web-apps-back-button"),s.YNc(2,bf,1,0,"mat-spinner",1),s.YNc(3,Sf,14,16,"div",2),s._UZ(4,"app-animated-router-outlet"),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading&&void 0!==e.service))},directives:[c.W,i.O5,h.A,E.$g,l.Hw,M.gM,i.PC,o.yS,x.lW],pipes:[f.X$],styles:[""],data:{animation:[ut.Ji]}}),t})(),Cf=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-service-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&s._UZ(0,"perun-web-apps-menu-buttons-field",0),2&t&&s.Q6J("items",e.navItems)("size","small")},directives:[g.L],styles:[""]}),t})();function Df(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function Nf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",5),s.TgZ(1,"perun-web-apps-immediate-filter",6),s.NdJ("filter",function(e){return s.CHM(t),s.oxw().applyFilter(e)}),s.qZA(),s._UZ(2,"app-attr-def-list",7),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),s.xp6(1),s.Q6J("selection",t.selection)("definitions",t.attrDefinitions)("disableRouting",!0)("filterValue",t.filterValue)}}function kf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",10),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAdd()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),s.xp6(2),s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}let Zf=(()=>{class t{constructor(t,e,n,r,i,o){this.dialogRef=t,this.data=e,this.serviceManager=n,this.attributesManager=r,this.notificator=i,this.translate=o,this.attrDefinitions=[],this.selection=new v.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(t=>{this.attrDefinitions=t,this.loading=!1})}onAdd(){this.loading=!0;const t=this.selection.selected.map(t=>t.id);this.serviceManager.addRequiredAttributes(this.serviceId,t).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(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KK),s.Y36(b.H8),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,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,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,Df,1,0,"mat-spinner",1),s.YNc(5,Nf,3,5,"div",2),s.YNc(6,kf,7,7,"div",3),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[y.uh,i.O5,E.$g,y.xY,at.L,ne,y.H8,x.lW],pipes:[f.X$],styles:[""]}),t})();function Mf(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function Of(t,e){1&t&&s._UZ(0,"th",15)}function Rf(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.friendlyName," ")}}function Lf(t,e){1&t&&s._UZ(0,"tr",17)}function Uf(t,e){1&t&&s._UZ(0,"tr",18)}function Pf(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",8),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",9),s.ynx(8,10),s.YNc(9,Of,1,0,"th",11),s.YNc(10,Rf,2,1,"td",12),s.BQk(),s.YNc(11,Lf,1,0,"tr",13),s.YNc(12,Uf,1,0,"tr",14),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}let Ff=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.serviceManager=n,this.notificator=r,this.translate=i,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new _.by(this.data.attrDefinitions)}onConfirm(){this.loading=!0;const t=this.dataSource.data.map(t=>t.id);this.serviceManager.removeRequiredAttributes(this.serviceId,t).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 t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KK),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div"),s.YNc(4,Mf,1,0,"mat-spinner",1),s.YNc(5,Pf,13,9,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onConfirm()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),s.xp6(2),s.Tol(e.theme),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL"),""),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE"),""))},directives:[y.uh,i.O5,y.H8,x.lW,E.$g,y.xY,_.BZ,_.w1,_.fO,_.Dz,_.as,_.nj,_.ge,_.ev,_.XQ,_.Gk],pipes:[f.X$],styles:[""]}),t})();function qf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-refresh-button",7),s.NdJ("refresh",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}}function zf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAdd()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function jf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onRemove()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function Yf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-immediate-filter",10),s.NdJ("filter",function(e){return s.CHM(t),s.oxw().applyFilter(e)}),s.qZA()}2&t&&s.Q6J("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER")}function Bf(t,e){1&t&&s._UZ(0,"mat-spinner",11)}function Jf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-attr-def-list",12),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)})("refreshEvent",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("pageSize",t.pageSize)("definitions",t.attrDefinitions)("selection",t.selection)("filterValue",t.filterValue)("disableRouting",!t.authResolver.isPerunAdmin())}}let Gf=(()=>{class t{constructor(t,e,n,r,i){this.route=t,this.tableConfigService=e,this.attributeManager=n,this.dialog=r,this.authResolver=i,this.loading=!1,this.filterValue="",this.selection=new v.Ov(!0,[]),this.attrDefinitions=[],this.tableId=et.JO}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.serviceId=t.serviceId,this.refreshTable()})}refreshTable(){this.loading=!0,this.attributeManager.getRequiredAttributesDefinition(this.serviceId).subscribe(t=>{this.selection.clear(),this.attrDefinitions=t,this.loading=!1})}onAdd(){const t=(0,tt.kZ)();t.width="950px",t.data={serviceId:this.serviceId,theme:"service-theme"},this.dialog.open(Zf,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,tt.kZ)();t.width="650px",t.data={serviceId:this.serviceId,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(Ff,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(et.dB),s.Y36(b.H8),s.Y36(y.uw),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-service-required-attributes"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","ml-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","ml-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","definitions","selection","filterValue","disableRouting","page","refreshEvent",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","definitions","selection","filterValue","disableRouting","page","refreshEvent"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,qf,1,0,"perun-web-apps-refresh-button",1),s.YNc(5,zf,3,3,"button",2),s.YNc(6,jf,3,4,"button",3),s.YNc(7,Yf,1,1,"perun-web-apps-immediate-filter",4),s.YNc(8,Bf,1,0,"mat-spinner",5),s.YNc(9,Jf,1,5,"app-attr-def-list",6),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,7,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),s.xp6(2),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[i.O5,ot.t,x.lW,at.L,E.$g,ne],pipes:[f.X$],styles:[""]}),t})();function Vf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-refresh-button",7),s.NdJ("refresh",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}}function Hf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAdd()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "))}function Qf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onRemove()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," ")}}function Wf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-users-list",10),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("pageSize",t.pageSize)("users",t.associatedUsers)("selection",t.selection)("displayedColumns",t.displayedColumns)}}function $f(t,e){1&t&&(s.TgZ(0,"app-alert",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS")," "))}function Xf(t,e){1&t&&s._UZ(0,"mat-spinner",12)}let Kf=(()=>{class t{constructor(t,e,n,r,i){this.route=t,this.dialog=e,this.router=n,this.tableConfigService=r,this.userManager=i,this.loading=!1,this.selection=new v.Ov(!1,[]),this.associatedUsers=[],this.tableId=et.It,this.displayedColumns=["select","id","user","name"]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.userId=t.userId,this.userManager.getUsersBySpecificUser(this.userId).subscribe(t=>{this.associatedUsers=t,this.loading=!1})})}refreshTable(){this.loading=!0,this.userManager.getUsersBySpecificUser(this.userId).subscribe(t=>{this.associatedUsers=t,this.selection.clear(),this.loading=!1})}onAdd(){const t=(0,tt.kZ)();t.width="1250px",t.data={userId:this.userId,theme:"user-theme",isService:!0},this.dialog.open(Ah,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,tt.kZ)();t.width="650px",t.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],isService:!0,theme:"user-theme"},this.dialog.open(Nh,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(y.uw),s.Y36(o.F0),s.Y36(et.dB),s.Y36(b.Fv))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-user-settings-associated-users"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"pageSize","users","selection","displayedColumns","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"pageSize","users","selection","displayedColumns","page"],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,Vf,1,0,"perun-web-apps-refresh-button",1),s.YNc(5,Hf,3,3,"button",2),s.YNc(6,Qf,3,4,"button",3),s.YNc(7,Wf,1,4,"app-users-list",4),s.YNc(8,$f,3,3,"app-alert",5),s.qZA(),s.YNc(9,Xf,1,0,"mat-spinner",6)),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,7,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),s.xp6(2),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",void 0!==e.associatedUsers&&e.associatedUsers.length>0),s.xp6(1),s.Q6J("ngIf",!e.loading&&(void 0===e.associatedUsers||0===e.associatedUsers.length)),s.xp6(1),s.Q6J("ngIf",e.loading))},directives:[i.O5,ot.t,x.lW,_h.C,T.w,E.$g],pipes:[f.X$],styles:[""]}),t})();var td=n(60547),ed=n(94357);function nd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-refresh-button",7),s.NdJ("refresh",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}}function rd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onRemove()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function id(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAllow()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function od(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onBlock()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function ad(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-immediate-filter",10),s.NdJ("filter",function(e){return s.CHM(t),s.oxw().applyFilter(e)}),s.qZA()}2&t&&s.Q6J("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER")}function sd(t,e){1&t&&s._UZ(0,"mat-spinner",11)}const ud=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function cd(t,e){if(1&t&&s._UZ(0,"app-perun-web-apps-destination-list",12),2&t){const t=s.oxw();s.Q6J("destinations",t.destinations)("selection",t.selection)("pageSize",t.pageSize)("displayedColumns",s.DdM(5,ud))("filterValue",t.filterValue)}}let ld=(()=>{class t{constructor(t,e,n,r,i,o,a){this.route=t,this.tableConfigService=e,this.serviceManager=n,this.notificator=r,this.translate=i,this.dialog=o,this.authResolver=a,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new v.Ov(!0,[]),this.tableId=et.Cf}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.serviceId=t.serviceId,this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getAllRichDestinationsForService(this.serviceId).subscribe(t=>{this.selection.clear(),this.filterValue="",this.destinations=t,this.loading=!1})}blockServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.blockServiceOnDestination(this.serviceId,e.id).subscribe(()=>{this.blockServiceOnDestinations(t)},()=>this.loading=!1)}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selection.selected)}allowServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.unblockServiceOnDestinationById(this.serviceId,e.id).subscribe(()=>{this.allowServiceOnDestinations(t)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selection.selected)}onRemove(){const t=(0,tt.kZ)();t.width="500px",t.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(td.u,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(et.dB),s.Y36(b.KK),s.Y36(w.V6),s.Y36(f.sK),s.Y36(y.uw),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-service-destinations"]],decls:11,vars:10,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","selection","pageSize","displayedColumns","filterValue",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"destinations","selection","pageSize","displayedColumns","filterValue"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,nd,1,0,"perun-web-apps-refresh-button",1),s.YNc(5,rd,3,4,"button",2),s.YNc(6,id,3,4,"button",3),s.YNc(7,od,3,4,"button",2),s.YNc(8,ad,1,1,"perun-web-apps-immediate-filter",4),s.YNc(9,sd,1,0,"mat-spinner",5),s.YNc(10,cd,1,6,"app-perun-web-apps-destination-list",6),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,8,"SERVICE_DETAIL.DESTINATIONS.TITLE")),s.xp6(2),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[i.O5,ot.t,x.lW,at.L,E.$g,ed.q],pipes:[f.X$],styles:[""]}),t})();function hd(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function fd(t,e){1&t&&s._UZ(0,"th",13)}function dd(t,e){if(1&t&&(s.TgZ(0,"td",14),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.name," ")}}function pd(t,e){1&t&&s._UZ(0,"tr",15)}function gd(t,e){1&t&&s._UZ(0,"tr",16)}function md(t,e){if(1&t&&(s.TgZ(0,"div",5),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",6),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",7),s.ynx(8,8),s.YNc(9,fd,1,0,"th",9),s.YNc(10,dd,2,1,"td",10),s.BQk(),s.YNc(11,pd,1,0,"tr",11),s.YNc(12,gd,1,0,"tr",12),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}function vd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",17),s.TgZ(1,"button",18),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",19),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.loading),s.xp6(1),s.hij(" ",s.lcZ(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}let yd=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.notificator=n,this.translate=r,this.ownersManagerService=i,this.displayedColumns=["name"],this.owners=[]}ngOnInit(){this.dataSource=new _.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(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.aC))},t.\u0275cmp=s.Xpm({type:t,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"],["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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,hd,1,0,"mat-spinner",1),s.YNc(4,md,13,9,"div",2),s.YNc(5,vd,7,7,"div",3)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,4,"DIALOGS.DELETE_OWNER.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[y.uh,i.O5,E.$g,y.xY,_.BZ,_.w1,_.fO,_.Dz,_.as,_.nj,_.ge,_.ev,_.XQ,_.Gk,y.H8,x.lW],pipes:[f.X$],styles:[""]}),t})();function _d(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function wd(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ADD_OWNER.FILL_CONTACT")," "))}function bd(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ADD_OWNER.CONTACT_FORMAT")," "))}function xd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",5),s.TgZ(2,"mat-form-field"),s._UZ(3,"input",6),s.ALo(4,"translate"),s.TgZ(5,"mat-error"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.qZA(),s.TgZ(8,"mat-form-field"),s._UZ(9,"input",6),s.ALo(10,"translate"),s.YNc(11,wd,3,3,"mat-error",3),s.YNc(12,bd,3,3,"mat-error",3),s.qZA(),s.TgZ(13,"mat-form-field"),s.TgZ(14,"mat-select",7),s.NdJ("valueChange",function(e){return s.CHM(t),s.oxw().type=e}),s.TgZ(15,"mat-option",8),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"mat-option",9),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(21,"div",10),s.TgZ(22,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(23),s.ALo(24,"translate"),s.qZA(),s.TgZ(25,"div",12),s.ALo(26,"translate"),s.TgZ(27,"button",13),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(28),s.ALo(29,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.s9C("placeholder",s.lcZ(4,15,"DIALOGS.ADD_OWNER.NAME")),s.Q6J("formControl",t.nameCtrl),s.xp6(3),s.hij(" ",s.lcZ(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),s.xp6(3),s.s9C("placeholder",s.lcZ(10,19,"DIALOGS.ADD_OWNER.CONTACT")),s.Q6J("formControl",t.contactCtrl),s.xp6(2),s.Q6J("ngIf",t.contactCtrl.hasError("required")),s.xp6(1),s.Q6J("ngIf",t.contactCtrl.invalid&&!t.contactCtrl.hasError("required")),s.xp6(2),s.Q6J("value",t.type),s.xp6(2),s.Oqu(s.lcZ(17,21,"DIALOGS.ADD_OWNER.TYPE1")),s.xp6(3),s.Oqu(s.lcZ(20,23,"DIALOGS.ADD_OWNER.TYPE2")),s.xp6(4),s.hij(" ",s.lcZ(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),s.Q6J("matTooltipDisabled",t.nameCtrl.valid&&t.contactCtrl.valid),s.xp6(2),s.Q6J("disabled",t.nameCtrl.invalid||t.contactCtrl.invalid),s.xp6(1),s.hij(" ",s.lcZ(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}let Ed=(()=>{class t{constructor(t,e,n,r){this.dialogRef=t,this.notificator=e,this.ownersManagerService=n,this.translate=r,this.type="1",this.emailRegex=/^(([^<>+()[\]\\.,;:\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]{2,3}))$/,r.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.nameCtrl=new L.NI(null,[L.kI.required,L.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new L.NI(null,[L.kI.required,L.kI.pattern(this.emailRegex)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number.parseInt(this.type,10)}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(w.V6),s.Y36(b.aC),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-add-owner-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"],[3,"value","valueChange"],["value","1"],["value","0"],["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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,_d,1,0,"mat-spinner",2),s.YNc(5,xd,30,31,"div",3),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"DIALOGS.ADD_OWNER.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[y.uh,i.O5,E.$g,y.xY,O.KE,R.Nt,L.Fj,L.Q7,L.JJ,L.oH,O.TO,P.gD,z.ey,y.H8,x.lW,M.gM],pipes:[f.X$],styles:[""]}),t})();var Td=n(17767);function Ad(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().addOwner()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.OWNERS.ADD")," "))}function Sd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().removeOwner()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",!t.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.OWNERS.DELETE")," ")}}function Id(t,e){1&t&&s._UZ(0,"mat-spinner",10)}function Cd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-owners-list",11),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("owners",t.owners)("selection",t.selected)}}let Dd=(()=>{class t{constructor(t,e,n,r){this.ownersManagerService=t,this.tableConfigService=e,this.dialog=n,this.guiAuthResolver=r,this.owners=[],this.selected=new v.Ov(!0,[]),this.filterValue="",this.tableId=et.v1}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),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(t=>{this.owners=t,this.selected.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}addOwner(){const t=(0,tt.kZ)();t.width="400px",t.data={},this.dialog.open(Ed,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeOwner(){const t=(0,tt.kZ)();t.width="400px",t.data=this.selected.selected,this.dialog.open(yd,t).afterClosed().subscribe(t=>{t&&(this.selected.clear(),this.refreshTable())})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.aC),s.Y36(et.dB),s.Y36(y.uw),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-owners"]],decls:10,vars:8,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","owners","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","owners","selection","page"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",2),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,Ad,3,3,"button",3),s.YNc(6,Sd,3,4,"button",4),s.TgZ(7,"perun-web-apps-immediate-filter",5),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(8,Id,1,0,"mat-spinner",6),s.YNc(9,Cd,1,4,"perun-web-apps-owners-list",7),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,6,"ADMIN.OWNERS.TITLE")),s.xp6(3),s.Q6J("ngIf",e.addAuth),s.xp6(1),s.Q6J("ngIf",e.removeAuth),s.xp6(1),s.Q6J("placeholder","ADMIN.OWNERS.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,Td.Q],pipes:[f.X$],styles:[""]}),t})();var Nd=n(60007);function kd(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function Zd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-facilities-list",6),s.NdJ("page",function(e){return s.CHM(t),s.oxw().pageChanged(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("filterValue",t.filterValue)("facilities",t.facilities)("displayedColumns",t.displayedColumns)("pageSize",t.pageSize)}}let Md=(()=>{class t{constructor(t,e,n){this.facilityManager=t,this.tableConfigService=e,this.route=n,this.facilities=[],this.filterValue="",this.tableId=et.zW,this.displayedColumns=["id","name","description"]}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.userId=t.userId,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe(t=>{this.facilities=t.map(t=>({facility:t})),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.IQ),s.Y36(et.dB),s.Y36(o.gz))},t.\u0275cmp=s.Xpm({type:t,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,"filterValue","facilities","displayedColumns","pageSize","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"filterValue","facilities","displayedColumns","pageSize","page"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(6,kd,1,0,"mat-spinner",3),s.YNc(7,Zd,1,4,"perun-web-apps-facilities-list",4),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,4,"USER_DETAIL.FACILITIES.TITLE")),s.xp6(3),s.Q6J("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,at.L,i.O5,E.$g,Nd.X],pipes:[f.X$],styles:[""]}),t})();var Od=n(19386),Rd=n(55109),Ld=n(64737),Ud=n(78364),Pd=n(541),Fd=n(69012);function qd(t,e){1&t&&s._UZ(0,"mat-spinner")}function zd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-vo-search-select",4),s.NdJ("voSelected",function(e){return s.CHM(t),s.oxw().loadMember(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("vos",t.vos)}}function jd(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.ACCOUNTS.STATUS")," ")}function Yd(t,e){1&t&&s._UZ(0,"mat-spinner")}const Bd=function(){return["id","recent","name","description","groupStatus","expiration"]};function Jd(t,e){if(1&t&&s._UZ(0,"perun-web-apps-groups-list",13),2&t){const t=s.oxw(4);s.Q6J("displayedColumns",s.DdM(2,Bd))("groups",t.groups)}}const Gd=function(t,e){return["/organizations",t,"members",e]};function Vd(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"div",7),s.TgZ(2,"span",8),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"a",9),s._uU(6),s.qZA(),s.qZA(),s._UZ(7,"app-member-overview-membership",10),s.TgZ(8,"p",11),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.YNc(11,Jd,1,3,"perun-web-apps-groups-list",12),s.qZA()),2&t){const t=s.oxw(3);s.xp6(3),s.hij("",s.lcZ(4,7,"USER_DETAIL.ACCOUNTS.MEMBER"),":"),s.xp6(2),s.Q6J("routerLink",s.WLB(11,Gd,t.selectedVo.id,t.member.id)),s.xp6(1),s.hij("",t.member.id," "),s.xp6(1),s.Q6J("member",t.member)("vo",t.selectedVo),s.xp6(2),s.Oqu(s.lcZ(10,9,"USER_DETAIL.ACCOUNTS.GROUPS")),s.xp6(2),s.Q6J("ngIf",!t.loading)}}function Hd(t,e){if(1&t&&(s.YNc(0,Yd,1,0,"mat-spinner",1),s.YNc(1,Vd,12,14,"div",1)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading)}}function Qd(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_ATT")," ")}function Wd(t,e){1&t&&s._UZ(0,"mat-spinner")}function $d(t,e){if(1&t&&s._UZ(0,"app-one-entity-attribute-page",15),2&t){const t=s.oxw(3);s.Q6J("entityId",t.member.id)("entity","member")}}function Xd(t,e){if(1&t&&(s.YNc(0,Wd,1,0,"mat-spinner",1),s.YNc(1,$d,1,2,"app-one-entity-attribute-page",14)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading)}}function Kd(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_GROUP_ATT")," ")}function tp(t,e){1&t&&s._UZ(0,"mat-spinner")}function ep(t,e){if(1&t&&s._UZ(0,"app-two-entity-attribute-page",17),2&t){const t=s.oxw(3);s.Q6J("firstEntityId",t.member.id)("firstEntity","member")("secondEntity","group")}}function np(t,e){if(1&t&&(s.YNc(0,tp,1,0,"mat-spinner",1),s.YNc(1,ep,1,3,"app-two-entity-attribute-page",16)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading)}}function rp(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_RESOURCE_ATT")," ")}function ip(t,e){1&t&&s._UZ(0,"mat-spinner")}function op(t,e){if(1&t&&s._UZ(0,"app-two-entity-attribute-page",17),2&t){const t=s.oxw(3);s.Q6J("firstEntityId",t.member.id)("firstEntity","member")("secondEntity","resource")}}function ap(t,e){if(1&t&&(s.YNc(0,ip,1,0,"mat-spinner",1),s.YNc(1,op,1,3,"app-two-entity-attribute-page",16)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading)}}function sp(t,e){1&t&&(s.TgZ(0,"mat-tab-group"),s.TgZ(1,"mat-tab"),s.YNc(2,jd,2,3,"ng-template",5),s.YNc(3,Hd,2,2,"ng-template",6),s.qZA(),s.TgZ(4,"mat-tab"),s.YNc(5,Qd,2,3,"ng-template",5),s.YNc(6,Xd,2,2,"ng-template",6),s.qZA(),s.TgZ(7,"mat-tab"),s.YNc(8,Kd,2,3,"ng-template",5),s.YNc(9,np,2,2,"ng-template",6),s.qZA(),s.TgZ(10,"mat-tab"),s.YNc(11,rp,2,3,"ng-template",5),s.YNc(12,ap,2,2,"ng-template",6),s.qZA(),s.qZA())}const up=[{path:"",component:p,children:[{path:"",component:m,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:ue,data:{animation:"AdminAttributesPage"}},{path:"users",component:Jl.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:Dd,data:{animation:"AdminOwnersPage"}},{path:"services",component:uf,data:{animation:"AdminServicesPage"}},{path:"visualizer",component:ce,children:[{path:"",component:fe,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:he,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Se,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:Bl,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:mh,data:{animation:"AdminExtSourcesPage"}}]},{path:"users/:userId",component:ih,children:[{path:"",component:oh.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:(()=>{class t{constructor(t,e,n,r){this.route=t,this.usersService=e,this.membersService=n,this.groupService=r,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(t=>{this.userId=t.userId,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(t=>{this.vos=t,this.initLoading=!1},()=>this.initLoading=!1)})}loadMember(t){this.loading=!0,this.selectedVo=t,this.membersService.getMemberByUser(this.selectedVo.id,this.userId).subscribe(t=>{this.member=t,this.groupService.getMemberRichGroupsWithAttributesByNames(this.member.id,["urn:perun:member_group:attribute-def:virt:groupStatus"]).subscribe(t=>{this.groups=t,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(b.Fv),s.Y36(b.uq),s.Y36(b.ff))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-perun-web-apps-user-accounts"]],decls:7,vars:6,consts:[[1,"page-title"],[4,"ngIf"],[1,"d-flex"],["class","w-50",3,"vos","voSelected",4,"ngIf"],[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,"displayedColumns","groups",4,"ngIf"],[3,"displayedColumns","groups"],[3,"entityId","entity",4,"ngIf"],[3,"entityId","entity"],[3,"firstEntityId","firstEntity","secondEntity",4,"ngIf"],[3,"firstEntityId","firstEntity","secondEntity"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,qd,1,0,"mat-spinner",1),s.TgZ(4,"div",2),s.YNc(5,zd,1,1,"perun-web-apps-vo-search-select",3),s.qZA(),s.YNc(6,sp,13,0,"mat-tab-group",1)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,4,"USER_DETAIL.ACCOUNTS.TITLE")),s.xp6(2),s.Q6J("ngIf",e.initLoading),s.xp6(2),s.Q6J("ngIf",!e.initLoading),s.xp6(1),s.Q6J("ngIf",!e.initLoading))},directives:[i.O5,E.$g,Od.M,Rd.SP,Rd.uX,Rd.uD,Rd.Vc,o.yS,Ld.b,Ud.W,Pd.t,Fd.Y],pipes:[f.X$],styles:[".subtitle[_ngcontent-%COMP%]{font-size:1.2rem}"]}),t})(),data:{animation:"UserAccountsPage"}},{path:"attributes",component:ch.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:ah.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:sh.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:Wh,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:Md,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:df,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:wf,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:vh.t,data:{animation:"UserRolesPage"}},{path:"settings",component:uh.L,children:[{path:"",component:lh.x,data:{animation:"UserSettingsOverviewPage"}},{path:"service-identities",component:Uh,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:Kf,data:{animation:"AssociatedUsersPage"}}]}]},{path:"services/:serviceId",component:If,children:[{path:"",component:Cf,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:Gf,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:ld,data:{animation:"ServiceDestinationsPage"}}]}];let cp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o.Bz.forChild(up)],o.Bz]}),t})();var lp=n(28780),hp=n(22727),fp=n(22280),dp=n(6363);let pp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ya,Ml,i.ez,cp,lp.m,hp.r,ht.ez,fp.d4,dp.UsersModule]]}),t})()},91721:function(t,e,n){"use strict";n.d(e,{Q:function(){return U}});var r=n(31572),i=n(58623),o=n(67033),a=n(4230),s=n(84140),u=n(88426),c=n(82819),l=n(61511),h=n(29236),f=n(43691),d=n(36922),p=n(84534),g=n(57629),m=n(39571),v=n(48160);function y(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"th",16),r.TgZ(1,"mat-checkbox",17),r.NdJ("change",function(e){r.CHM(t);const n=r.oxw();return e?n.masterToggle():null}),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.xp6(1),r.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function _(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"td",18),r.TgZ(1,"mat-checkbox",19),r.NdJ("change",function(e){const n=r.CHM(t).$implicit,i=r.oxw();return e?i.selection.toggle(n):null})("click",function(t){return t.stopPropagation()}),r.qZA(),r.qZA()}if(2&t){const t=e.$implicit,n=r.oxw();r.xp6(1),r.Q6J("aria-label",n.checkboxLabel(t))("checked",n.selection.isSelected(t))}}function w(t,e){1&t&&(r.TgZ(0,"th",20),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")))}function b(t,e){if(1&t&&(r.TgZ(0,"td",18),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.id)}}function x(t,e){1&t&&(r.TgZ(0,"th",20),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")))}function E(t,e){if(1&t&&(r.TgZ(0,"td",21),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.name)}}function T(t,e){1&t&&r._UZ(0,"th",16)}function A(t,e){1&t&&(r.TgZ(0,"mat-icon",23),r.ALo(1,"translate"),r._uU(2," check_circle_outline "),r.qZA()),2&t&&r.s9C("matTooltip",r.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function S(t,e){1&t&&(r.TgZ(0,"mat-icon",23),r.ALo(1,"translate"),r._uU(2," block "),r.qZA()),2&t&&r.s9C("matTooltip",r.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function I(t,e){if(1&t&&(r.TgZ(0,"td",21),r.YNc(1,A,3,3,"mat-icon",22),r.YNc(2,S,3,3,"mat-icon",22),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Q6J("ngIf",t.enabled),r.xp6(1),r.Q6J("ngIf",!t.enabled)}}function C(t,e){1&t&&(r.TgZ(0,"th",16),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")))}function D(t,e){if(1&t&&(r.TgZ(0,"td",21),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.script)}}function N(t,e){1&t&&(r.TgZ(0,"th",20),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")))}function k(t,e){if(1&t&&(r.TgZ(0,"td",21),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(t.description)}}function Z(t,e){1&t&&r._UZ(0,"tr",24)}const M=function(t){return["/admin/services",t]};function O(t,e){if(1&t&&r._UZ(0,"tr",25),2&t){const t=e.$implicit,n=r.oxw();r.ekj("cursor-pointer",!n.disableRouting)("disable-outline",n.disableRouting),r.Q6J("perunWebAppsMiddleClickRouterLink",n.disableRouting?null:r.VKq(6,M,t.id))("routerLink",n.disableRouting?null:r.VKq(8,M,t.id))}}function R(t,e){1&t&&(r.TgZ(0,"app-alert",26),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function L(t,e){1&t&&(r.TgZ(0,"app-alert",26),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}let U=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.services=[],this.filterValue="",this.pageSize=10,this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new a.Ov(!0,[]),this.disableRouting=!1,this.page=new r.vpe,this.pageSizeOptions=s.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new o.by(this.services),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"enabled":return t.enabled?"true":"false";case"script":return t.script;case"description":return t.description;default:return""}}exportData(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,s.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,s.pR)(t,e,this.getDataForColumn,this),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.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(u.x4),r.Y36(u.UA))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-services-list"]],viewQuery:function(t,e){if(1&t&&(r.Gf(i.YE,7),r.Gf(s.l9,7)),2&t){let t;r.iGM(t=r.CRH())&&(e.matSort=t.first),r.iGM(t=r.CRH())&&(e.child=t.first)}},inputs:{services:"services",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{page:"page"},features:[r.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","enabled"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"perun-web-apps-table-wrapper",1),r.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),r.TgZ(2,"table",2),r.ynx(3,3),r.YNc(4,y,2,3,"th",4),r.YNc(5,_,2,2,"td",5),r.BQk(),r.ynx(6,6),r.YNc(7,w,3,3,"th",7),r.YNc(8,b,2,1,"td",5),r.BQk(),r.ynx(9,8),r.YNc(10,x,3,3,"th",7),r.YNc(11,E,2,1,"td",9),r.BQk(),r.ynx(12,10),r.YNc(13,T,1,0,"th",4),r.YNc(14,I,3,2,"td",9),r.BQk(),r.ynx(15,11),r.YNc(16,C,3,3,"th",4),r.YNc(17,D,2,1,"td",9),r.BQk(),r.ynx(18,12),r.YNc(19,N,3,3,"th",7),r.YNc(20,k,2,1,"td",9),r.BQk(),r.YNc(21,Z,1,0,"tr",13),r.YNc(22,O,1,10,"tr",14),r.qZA(),r.qZA(),r.qZA(),r.YNc(23,R,3,3,"app-alert",15),r.YNc(24,L,3,3,"app-alert",15)),2&t&&(r.Q6J("hidden",void 0===e.services||0===e.services.length||0===e.dataSource.filteredData.length),r.xp6(1),r.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),r.xp6(1),r.Q6J("dataSource",e.dataSource),r.xp6(19),r.Q6J("matHeaderRowDef",e.displayedColumns),r.xp6(1),r.Q6J("matRowDefColumns",e.displayedColumns),r.xp6(1),r.Q6J("ngIf",0===e.dataSource.filteredData.length&&void 0!==e.services&&0!==e.services.length),r.xp6(1),r.Q6J("ngIf",void 0===e.services||0===e.services.length))},directives:[c.l,o.BZ,i.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,i.nU,f.Hw,d.gM,o.XQ,o.Gk,p.YH,g.rH,m.w],pipes:[v.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t})()},95914:function(t,e,n){"use strict";function r(t,e){return t(e={exports:{}},e.exports),e.exports}n.r(e),n.d(e,{StackParser:function(){return l},graphviz:function(){return v},graphvizSync:function(){return _},parse:function(){return h},wasmFolder:function(){return s}});var i=r(function(t,e){var n,r=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(t){var e,r=void 0!==(t=t||{})?t:{},i={};for(e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);var o,a="./this.program",s="";document.currentScript&&(s=document.currentScript.src),n&&(s=n),s=0!==s.indexOf("blob:")?s.substr(0,s.lastIndexOf("/")+1):"",o=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText};var u,c,l=r.print||console.log.bind(console),h=r.printErr||console.warn.bind(console);for(e in i)i.hasOwnProperty(e)&&(r[e]=i[e]);i=null,r.thisProgram&&(a=r.thisProgram),r.wasmBinary&&(u=r.wasmBinary),"object"!=typeof WebAssembly&&h("no native wasm support detected");var f=new WebAssembly.Table({initial:153,maximum:153,element:"anyfunc"}),d=!1;function p(t,e){t||z("Assertion failed: "+e)}var g,m,v,y,_,w="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function b(t,e,n){for(var r=e+n,i=e;t[i]&&!(i>=r);)++i;if(i-e>16&&t.subarray&&w)return w.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function x(t,e){return t?b(v,t,e):""}function E(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function T(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function A(t){g=t,r.HEAP8=m=new Int8Array(t),r.HEAP16=new Int16Array(t),r.HEAP32=y=new Int32Array(t),r.HEAPU8=v=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=_=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var S=r.TOTAL_MEMORY||16777216;function I(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(c=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:S/65536}))&&(g=c.buffer),S=g.byteLength,A(g),y[2080]=5251360;var C=[],D=[],N=[],k=[],Z=!1,M=Math.abs,O=Math.ceil,R=Math.floor,L=Math.min,U=0,P=null;function F(t){U++,r.monitorRunDependencies&&r.monitorRunDependencies(U)}function q(t){if(U--,r.monitorRunDependencies&&r.monitorRunDependencies(U),0==U&&P){var e=P;P=null,e()}}function z(t){throw r.onAbort&&r.onAbort(t),l(t+=""),h(t),d=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function j(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var Y,B,J,G="expatlib.wasm";function V(){try{if(u)return new Uint8Array(u);throw"both async and sync fetching of the wasm failed"}catch(h){z(h)}}j(G)||(Y=G,G=r.locateFile?r.locateFile(Y,s):s+Y);var H={1184:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";e.startElement()},1404:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";e.endElement()},1616:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";e.characterData()}};D.push({func:function(){lt()}});var Q={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=Q.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return Q.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return Q.normalize(t.join("/"))},join2:function(t,e){return Q.normalize(t+"/"+e)}};function W(t){return r.___errno_location&&(y[r.___errno_location()>>2]=t),t}var $={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:tt.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=$.resolve(t).substr(1),e=$.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(l(b(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(h(b(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(h(b(t.output,0)),t.output=[])}}},K={ops_table:null,mount:function(t){return K.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(tt.isBlkdev(n)||tt.isFIFO(n))throw new tt.ErrnoError(63);K.ops_table||(K.ops_table={dir:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr,lookup:K.node_ops.lookup,mknod:K.node_ops.mknod,rename:K.node_ops.rename,unlink:K.node_ops.unlink,rmdir:K.node_ops.rmdir,readdir:K.node_ops.readdir,symlink:K.node_ops.symlink},stream:{llseek:K.stream_ops.llseek}},file:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr},stream:{llseek:K.stream_ops.llseek,read:K.stream_ops.read,write:K.stream_ops.write,allocate:K.stream_ops.allocate,mmap:K.stream_ops.mmap,msync:K.stream_ops.msync}},link:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr,readlink:K.node_ops.readlink},stream:{}},chrdev:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr},stream:tt.chrdev_stream_ops}});var i=tt.createNode(t,e,n,r);return tt.isDir(i.mode)?(i.node_ops=K.ops_table.dir.node,i.stream_ops=K.ops_table.dir.stream,i.contents={}):tt.isFile(i.mode)?(i.node_ops=K.ops_table.file.node,i.stream_ops=K.ops_table.file.stream,i.usedBytes=0,i.contents=null):tt.isLink(i.mode)?(i.node_ops=K.ops_table.link.node,i.stream_ops=K.ops_table.link.stream):tt.isChrdev(i.mode)&&(i.node_ops=K.ops_table.chrdev.node,i.stream_ops=K.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new tt.ErrnoError(32);for(var i=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),o=tt.root,a="/",s=0;s40)throw new tt.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(tt.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%tt.nameTable.length},hashAddNode:function(t){var e=tt.hashName(t.parent.id,t.name);t.name_next=tt.nameTable[e],tt.nameTable[e]=t},hashRemoveNode:function(t){var e=tt.hashName(t.parent.id,t.name);if(tt.nameTable[e]===t)tt.nameTable[e]=t.name_next;else for(var n=tt.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=tt.mayLookup(t);if(n)throw new tt.ErrnoError(n,t);for(var r=tt.hashName(t.id,e),i=tt.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return tt.lookup(t,e)},createNode:function(t,e,n,r){tt.FSNode||(tt.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=tt.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},tt.FSNode.prototype={},Object.defineProperties(tt.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return tt.isDir(this.mode)}},isDevice:{get:function(){return tt.isChrdev(this.mode)}}}));var i=new tt.FSNode(t,e,n,r);return tt.hashAddNode(i),i},destroyNode:function(t){tt.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=tt.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return tt.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return tt.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return tt.lookupNode(t,e),20}catch(n){}return tt.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=tt.lookupNode(t,e)}catch(o){return o.errno}var i=tt.nodePermissions(t,"wx");if(i)return i;if(n){if(!tt.isDir(r.mode))return 54;if(tt.isRoot(r)||tt.getPath(r)===tt.cwd())return 10}else if(tt.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?tt.isLink(t.mode)?32:tt.isDir(t.mode)&&("r"!==tt.flagsToPermissionString(e)||512&e)?31:tt.nodePermissions(t,tt.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||tt.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!tt.streams[n])return n;throw new tt.ErrnoError(33)},getStream:function(t){return tt.streams[t]},createStream:function(t,e,n){tt.FSStream||(tt.FSStream=function(){},tt.FSStream.prototype={},Object.defineProperties(tt.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new tt.FSStream;for(var i in t)r[i]=t[i];t=r;var o=tt.nextfd(e,n);return t.fd=o,tt.streams[o]=t,t},closeStream:function(t){tt.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=tt.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new tt.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){tt.devices[t]={stream_ops:e}},getDevice:function(t){return tt.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),tt.syncFSRequests++,tt.syncFSRequests>1&&h("warning: "+tt.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=tt.getMounts(tt.root.mount),r=0;function i(t){return tt.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)})},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&tt.root)throw new tt.ErrnoError(10);if(!i&&!o){var a=tt.lookupPath(n,{follow_mount:!1});if(n=a.path,tt.isMountpoint(r=a.node))throw new tt.ErrnoError(10);if(!tt.isDir(r.mode))throw new tt.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?tt.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=tt.lookupPath(t,{follow_mount:!1});if(!tt.isMountpoint(e.node))throw new tt.ErrnoError(28);var n=e.node,r=n.mounted,i=tt.getMounts(r);Object.keys(tt.nameTable).forEach(function(t){for(var e=tt.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&tt.destroyNode(e),e=n}}),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=tt.lookupPath(t,{parent:!0}).node,i=Q.basename(t);if(!i||"."===i||".."===i)throw new tt.ErrnoError(28);var o=tt.mayCreate(r,i);if(o)throw new tt.ErrnoError(o);if(!r.node_ops.mknod)throw new tt.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,tt.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,tt.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter(function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):at(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]}),!o&&r||(a=r=1,r=this.getter(0).length,a=r,l("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=tt.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach(function(t){var e=s.stream_ops[t];u[t]=function(){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);return e.apply(null,arguments)}}),u.read=function(t,e,n,r,i){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,y[n+4>>2]=0,y[n+8>>2]=r.ino,y[n+12>>2]=r.mode,y[n+16>>2]=r.nlink,y[n+20>>2]=r.uid,y[n+24>>2]=r.gid,y[n+28>>2]=r.rdev,y[n+32>>2]=0,J=[r.size>>>0,(B=r.size,+M(B)>=1?B>0?(0|L(+R(B/4294967296),4294967295))>>>0:~~+O((B-+(~~B>>>0))/4294967296)>>>0:0)],y[n+40>>2]=J[0],y[n+44>>2]=J[1],y[n+48>>2]=4096,y[n+52>>2]=r.blocks,y[n+56>>2]=r.atime.getTime()/1e3|0,y[n+60>>2]=0,y[n+64>>2]=r.mtime.getTime()/1e3|0,y[n+68>>2]=0,y[n+72>>2]=r.ctime.getTime()/1e3|0,y[n+76>>2]=0,J=[r.ino>>>0,(B=r.ino,+M(B)>=1?B>0?(0|L(+R(B/4294967296),4294967295))>>>0:~~+O((B-+(~~B>>>0))/4294967296)>>>0:0)],y[n+80>>2]=J[0],y[n+84>>2]=J[1],0},doMsync:function(t,e,n,r,i){var o=v.slice(t,t+n);tt.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=Q.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),tt.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return tt.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=tt.readlink(t),i=Math.min(n,T(r)),o=m[e+i];return E(r,v,e,n+1),m[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=tt.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&tt.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=tt.getStream(n);return r&&tt.close(r),tt.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=tt.read(t,m,y[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],y[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return et.varargs+=4,y[et.varargs-4>>2]},getStr:function(){return x(et.get())},getStreamFromFD:function(t){void 0===t&&(t=et.get());var e=tt.getStream(t);if(!e)throw new tt.ErrnoError(8);return e},get64:function(){var t=et.get();return et.get(),t},getZero:function(){et.get()}};function nt(t){try{return c.grow(t-g.byteLength+65535>>16),A(c.buffer),1}catch(e){}}var rt={};function it(){if(!it.strings){var t={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",_:a||"./this.program"};for(var e in rt)t[e]=rt[e];var n=[];for(var e in t)n.push(e+"="+t[e]);it.strings=n}return it.strings}function ot(t,e){ot.array||(ot.array=[]);var n,r=ot.array;for(r.length=0;n=v[t++];)100===n||102===n?(r.push(_[(e=e+7&-8)>>3]),e+=8):(r.push(y[(e=e+3&-4)>>2]),e+=4);return r}function at(t,e,n){var r=n>0?n:T(t)+1,i=new Array(r),o=E(t,i,0,i.length);return e&&(i.length=o),i}tt.staticInit();var st={h:function(t,e){et.varargs=e;try{return 42}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||z(n),-n.errno}},e:function(){z()},a:function(t,e,n){var r=ot(e,n);return H[t].apply(null,r)},c:function(t,e,n){v.set(v.subarray(e,e+n),t)},d:function(t){var e=v.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),nt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},f:function(t,e){var n=it(),r=0;return n.forEach(function(n,i){var o=e+r;y[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);m[e>>0]=0}(n,o),r+=n.length+1}),0},g:function(t,e){var n=it();y[t>>2]=n.length;var r=0;return n.forEach(function(t){r+=t.length+1}),y[e>>2]=r,0},j:function(t){try{var e=et.getStreamFromFD(t);return tt.close(e),0}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||z(n),n.errno}},i:function(t,e,n,r,i){try{var o=et.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(tt.llseek(o,a,r),J=[o.position>>>0,(B=o.position,+M(B)>=1?B>0?(0|L(+R(B/4294967296),4294967295))>>>0:~~+O((B-+(~~B>>>0))/4294967296)>>>0:0)],y[i>>2]=J[0],y[i+4>>2]=J[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==tt&&s instanceof tt.ErrnoError||z(s),s.errno}},b:function(t,e,n,r){try{var i=et.getStreamFromFD(t),o=et.doWritev(i,e,n);return y[r>>2]=o,0}catch(a){return void 0!==tt&&a instanceof tt.ErrnoError||z(a),a.errno}},k:function(t){var e=Date.now();return y[t>>2]=e/1e3|0,y[t+4>>2]=e%1e3*1e3|0,0},memory:c,table:f},ut=function(){var t={a:st};function e(t,e){r.asm=t.exports,q()}function n(t){e(t.instance)}function i(e){return(u||"function"!=typeof fetch?new Promise(function(t,e){t(V())}):fetch(G,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+G+"'";return t.arrayBuffer()}).catch(function(){return V()})).then(function(e){return WebAssembly.instantiate(e,t)}).then(e,function(t){h("failed to asynchronously prepare wasm: "+t),z(t)})}if(F(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return h("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(u||"function"!=typeof WebAssembly.instantiateStreaming||j(G)||"function"!=typeof fetch)return i(n);fetch(G,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,t).then(n,function(t){h("wasm streaming compile failed: "+t),h("falling back to ArrayBuffer instantiation"),i(n)})})}(),{}}();r.asm=ut;var ct,lt=r.___wasm_call_ctors=function(){return(lt=r.___wasm_call_ctors=r.asm.l).apply(null,arguments)},ht=r._emscripten_bind_CExpat_CExpat_0=function(){return(ht=r._emscripten_bind_CExpat_CExpat_0=r.asm.m).apply(null,arguments)},ft=r._emscripten_bind_CExpat_create_0=function(){return(ft=r._emscripten_bind_CExpat_create_0=r.asm.n).apply(null,arguments)},dt=r._emscripten_bind_CExpat_destroy_0=function(){return(dt=r._emscripten_bind_CExpat_destroy_0=r.asm.o).apply(null,arguments)},pt=r._emscripten_bind_CExpat_parse_1=function(){return(pt=r._emscripten_bind_CExpat_parse_1=r.asm.p).apply(null,arguments)},gt=r._emscripten_bind_CExpat_tag_0=function(){return(gt=r._emscripten_bind_CExpat_tag_0=r.asm.q).apply(null,arguments)},mt=r._emscripten_bind_CExpat_attrs_0=function(){return(mt=r._emscripten_bind_CExpat_attrs_0=r.asm.r).apply(null,arguments)},vt=r._emscripten_bind_CExpat_content_0=function(){return(vt=r._emscripten_bind_CExpat_content_0=r.asm.s).apply(null,arguments)},yt=r._emscripten_bind_CExpat_startElement_0=function(){return(yt=r._emscripten_bind_CExpat_startElement_0=r.asm.t).apply(null,arguments)},_t=r._emscripten_bind_CExpat_endElement_0=function(){return(_t=r._emscripten_bind_CExpat_endElement_0=r.asm.u).apply(null,arguments)},wt=r._emscripten_bind_CExpat_characterData_0=function(){return(wt=r._emscripten_bind_CExpat_characterData_0=r.asm.v).apply(null,arguments)},bt=r._emscripten_bind_CExpat___destroy___0=function(){return(bt=r._emscripten_bind_CExpat___destroy___0=r.asm.w).apply(null,arguments)},xt=r._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(xt=r._emscripten_bind_CExpatJS_CExpatJS_0=r.asm.x).apply(null,arguments)},Et=r._emscripten_bind_CExpatJS_startElement_0=function(){return(Et=r._emscripten_bind_CExpatJS_startElement_0=r.asm.y).apply(null,arguments)},Tt=r._emscripten_bind_CExpatJS_endElement_0=function(){return(Tt=r._emscripten_bind_CExpatJS_endElement_0=r.asm.z).apply(null,arguments)},At=r._emscripten_bind_CExpatJS_characterData_0=function(){return(At=r._emscripten_bind_CExpatJS_characterData_0=r.asm.A).apply(null,arguments)},St=r._emscripten_bind_CExpatJS___destroy___0=function(){return(St=r._emscripten_bind_CExpatJS___destroy___0=r.asm.B).apply(null,arguments)},It=r._emscripten_bind_VoidPtr___destroy___0=function(){return(It=r._emscripten_bind_VoidPtr___destroy___0=r.asm.C).apply(null,arguments)},Ct=r._malloc=function(){return(Ct=r._malloc=r.asm.D).apply(null,arguments)};function Dt(t){function e(){ct||(ct=!0,d||(Z=!0,r.noFSInit||tt.init.initialized||tt.init(),X.init(),I(D),tt.ignorePermissions=!1,I(N),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),k.unshift(t);var t;I(k)}()))}U>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),C.unshift(t);var t;I(C)}(),U>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),e()},1)):e()))}if(r._free=function(){return(r._free=r.asm.E).apply(null,arguments)},r.___errno_location=function(){return(r.___errno_location=r.asm.F).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.G).apply(null,arguments)},r.dynCall_vi=function(){return(r.dynCall_vi=r.asm.H).apply(null,arguments)},r.asm=ut,r.then=function(t){if(ct)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},P=function t(){ct||Dt(),ct||(P=t)},r.run=Dt,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function Nt(){}function kt(t){return(t||Nt).__cache__}function Zt(t,e){var n=kt(e),r=n[t];return r||((r=Object.create((e||Nt).prototype)).ptr=t,n[t]=r)}Dt(),(Nt.prototype=Object.create(Nt.prototype)).constructor=Nt,Nt.prototype.__class__=Nt,Nt.__cache__={},r.WrapperObject=Nt,r.getCache=kt,r.wrapPointer=Zt,r.castObject=function(t,e){return Zt(t.ptr,e)},r.NULL=Zt(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete kt(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var Mt={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Mt.needed){for(var t=0;t=Mt.size?(p(i>0),Mt.needed+=i,n=r._malloc(i),Mt.temps.push(n)):(n=Mt.buffer+Mt.pos,Mt.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i=r);)++i;if(i-e>16&&t.subarray&&A)return A.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function I(t,e){return t?S(b,t,e):""}function C(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function D(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function N(t){_=t,r.HEAP8=w=new Int8Array(t),r.HEAP16=x=new Int16Array(t),r.HEAP32=E=new Int32Array(t),r.HEAPU8=b=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=T=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var k=r.TOTAL_MEMORY||16777216;function Z(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(d=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:k/65536}))&&(_=d.buffer),k=_.byteLength,N(_),E[54772]=5462128;var M=[],O=[],R=[],L=[],U=!1,P=Math.abs,F=Math.ceil,q=Math.floor,z=Math.min,j=0,Y=null;function B(t){j++,r.monitorRunDependencies&&r.monitorRunDependencies(j)}function J(t){if(j--,r.monitorRunDependencies&&r.monitorRunDependencies(j),0==j&&Y){var e=Y;Y=null,e()}}function G(t){throw r.onAbort&&r.onAbort(t),c(t+=""),l(t),v=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function V(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var H,Q,W,$="graphvizlib.wasm";function X(){try{if(h)return new Uint8Array(h);throw"both async and sync fetching of the wasm failed"}catch(l){G(l)}}V($)||(H=$,$=r.locateFile?r.locateFile(H,u):u+H);var K={1088:function(t,e){var n=I(t),r=I(e);at.createPath("/",nt.dirname(n)),at.writeFile(nt.join("/",n),r)}};function tt(){G()}function et(t){return r.___errno_location&&(E[r.___errno_location()>>2]=t),t}O.push({func:function(){Et()}});var nt={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=nt.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return nt.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return nt.normalize(t.join("/"))},join2:function(t,e){return nt.normalize(t+"/"+e)}},rt={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:at.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=rt.resolve(t).substr(1),e=rt.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(c(S(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(l(S(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(l(S(t.output,0)),t.output=[])}}},ot={ops_table:null,mount:function(t){return ot.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(at.isBlkdev(n)||at.isFIFO(n))throw new at.ErrnoError(63);ot.ops_table||(ot.ops_table={dir:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,lookup:ot.node_ops.lookup,mknod:ot.node_ops.mknod,rename:ot.node_ops.rename,unlink:ot.node_ops.unlink,rmdir:ot.node_ops.rmdir,readdir:ot.node_ops.readdir,symlink:ot.node_ops.symlink},stream:{llseek:ot.stream_ops.llseek}},file:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:{llseek:ot.stream_ops.llseek,read:ot.stream_ops.read,write:ot.stream_ops.write,allocate:ot.stream_ops.allocate,mmap:ot.stream_ops.mmap,msync:ot.stream_ops.msync}},link:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,readlink:ot.node_ops.readlink},stream:{}},chrdev:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:at.chrdev_stream_ops}});var i=at.createNode(t,e,n,r);return at.isDir(i.mode)?(i.node_ops=ot.ops_table.dir.node,i.stream_ops=ot.ops_table.dir.stream,i.contents={}):at.isFile(i.mode)?(i.node_ops=ot.ops_table.file.node,i.stream_ops=ot.ops_table.file.stream,i.usedBytes=0,i.contents=null):at.isLink(i.mode)?(i.node_ops=ot.ops_table.link.node,i.stream_ops=ot.ops_table.link.stream):at.isChrdev(i.mode)&&(i.node_ops=ot.ops_table.chrdev.node,i.stream_ops=ot.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new at.ErrnoError(32);for(var i=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),o=at.root,a="/",s=0;s40)throw new at.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(at.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%at.nameTable.length},hashAddNode:function(t){var e=at.hashName(t.parent.id,t.name);t.name_next=at.nameTable[e],at.nameTable[e]=t},hashRemoveNode:function(t){var e=at.hashName(t.parent.id,t.name);if(at.nameTable[e]===t)at.nameTable[e]=t.name_next;else for(var n=at.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=at.mayLookup(t);if(n)throw new at.ErrnoError(n,t);for(var r=at.hashName(t.id,e),i=at.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return at.lookup(t,e)},createNode:function(t,e,n,r){at.FSNode||(at.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=at.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},at.FSNode.prototype={},Object.defineProperties(at.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return at.isDir(this.mode)}},isDevice:{get:function(){return at.isChrdev(this.mode)}}}));var i=new at.FSNode(t,e,n,r);return at.hashAddNode(i),i},destroyNode:function(t){at.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=at.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return at.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return at.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return at.lookupNode(t,e),20}catch(n){}return at.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=at.lookupNode(t,e)}catch(o){return o.errno}var i=at.nodePermissions(t,"wx");if(i)return i;if(n){if(!at.isDir(r.mode))return 54;if(at.isRoot(r)||at.getPath(r)===at.cwd())return 10}else if(at.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?at.isLink(t.mode)?32:at.isDir(t.mode)&&("r"!==at.flagsToPermissionString(e)||512&e)?31:at.nodePermissions(t,at.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||at.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!at.streams[n])return n;throw new at.ErrnoError(33)},getStream:function(t){return at.streams[t]},createStream:function(t,e,n){at.FSStream||(at.FSStream=function(){},at.FSStream.prototype={},Object.defineProperties(at.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new at.FSStream;for(var i in t)r[i]=t[i];t=r;var o=at.nextfd(e,n);return t.fd=o,at.streams[o]=t,t},closeStream:function(t){at.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=at.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new at.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){at.devices[t]={stream_ops:e}},getDevice:function(t){return at.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),at.syncFSRequests++,at.syncFSRequests>1&&l("warning: "+at.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=at.getMounts(at.root.mount),r=0;function i(t){return at.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)})},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&at.root)throw new at.ErrnoError(10);if(!i&&!o){var a=at.lookupPath(n,{follow_mount:!1});if(n=a.path,at.isMountpoint(r=a.node))throw new at.ErrnoError(10);if(!at.isDir(r.mode))throw new at.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?at.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=at.lookupPath(t,{follow_mount:!1});if(!at.isMountpoint(e.node))throw new at.ErrnoError(28);var n=e.node,r=n.mounted,i=at.getMounts(r);Object.keys(at.nameTable).forEach(function(t){for(var e=at.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&at.destroyNode(e),e=n}}),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=at.lookupPath(t,{parent:!0}).node,i=nt.basename(t);if(!i||"."===i||".."===i)throw new at.ErrnoError(28);var o=at.mayCreate(r,i);if(o)throw new at.ErrnoError(o);if(!r.node_ops.mknod)throw new at.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,at.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,at.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter(function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):_t(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]}),!o&&r||(a=r=1,r=this.getter(0).length,a=r,c("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=at.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach(function(t){var e=s.stream_ops[t];u[t]=function(){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);return e.apply(null,arguments)}}),u.read=function(t,e,n,r,i){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,E[n+4>>2]=0,E[n+8>>2]=r.ino,E[n+12>>2]=r.mode,E[n+16>>2]=r.nlink,E[n+20>>2]=r.uid,E[n+24>>2]=r.gid,E[n+28>>2]=r.rdev,E[n+32>>2]=0,W=[r.size>>>0,(Q=r.size,+P(Q)>=1?Q>0?(0|z(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[n+40>>2]=W[0],E[n+44>>2]=W[1],E[n+48>>2]=4096,E[n+52>>2]=r.blocks,E[n+56>>2]=r.atime.getTime()/1e3|0,E[n+60>>2]=0,E[n+64>>2]=r.mtime.getTime()/1e3|0,E[n+68>>2]=0,E[n+72>>2]=r.ctime.getTime()/1e3|0,E[n+76>>2]=0,W=[r.ino>>>0,(Q=r.ino,+P(Q)>=1?Q>0?(0|z(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[n+80>>2]=W[0],E[n+84>>2]=W[1],0},doMsync:function(t,e,n,r,i){var o=b.slice(t,t+n);at.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=nt.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),at.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return at.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=at.readlink(t),i=Math.min(n,D(r)),o=w[e+i];return C(r,b,e,n+1),w[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=at.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&at.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=at.getStream(n);return r&&at.close(r),at.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=at.read(t,w,E[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],E[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return st.varargs+=4,E[st.varargs-4>>2]},getStr:function(){return I(st.get())},getStreamFromFD:function(t){void 0===t&&(t=st.get());var e=at.getStream(t);if(!e)throw new at.ErrnoError(8);return e},get64:function(){var t=st.get();return st.get(),t},getZero:function(){st.get()}};function ut(t,e,n){e|=0;var r,i=0,o=0,a=0;if(r=(t|=0)+(n|=0)|0,e&=255,(0|n)>=67){for(;0!=(3&t);)w[t>>0]=e,t=t+1|0;for(a=e|e<<8|e<<16|e<<24,o=(i=-4&r|0)-64|0;(0|t)<=(0|o);)E[t>>2]=a,E[t+4>>2]=a,E[t+8>>2]=a,E[t+12>>2]=a,E[t+16>>2]=a,E[t+20>>2]=a,E[t+24>>2]=a,E[t+28>>2]=a,E[t+32>>2]=a,E[t+36>>2]=a,E[t+40>>2]=a,E[t+44>>2]=a,E[t+48>>2]=a,E[t+52>>2]=a,E[t+56>>2]=a,E[t+60>>2]=a,t=t+64|0;for(;(0|t)<(0|i);)E[t>>2]=a,t=t+4|0}for(;(0|t)<(0|r);)w[t>>0]=e,t=t+1|0;return r-n|0}var ct=0;function lt(t){try{return d.grow(t-_.byteLength+65535>>16),N(d.buffer),1}catch(e){}}var ht={};function ft(){if(!ft.strings){var t={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",_:a||"./this.program"};for(var e in ht)t[e]=ht[e];var n=[];for(var e in t)n.push(e+"="+t[e]);ft.strings=n}return ft.strings}function dt(t){return t%4==0&&(t%100!=0||t%400==0)}function pt(t,e){for(var n=0,r=0;r<=e;n+=t[r++]);return n}var gt=[31,29,31,30,31,30,31,31,30,31,30,31],mt=[31,28,31,30,31,30,31,31,30,31,30,31];function vt(t,e){for(var n=new Date(t.getTime());e>0;){var r=dt(n.getFullYear()),i=n.getMonth(),o=(r?gt:mt)[i];if(!(e>o-n.getDate()))return n.setDate(n.getDate()+e),n;e-=o-n.getDate()+1,n.setDate(1),i<11?n.setMonth(i+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}function yt(t,e){yt.array||(yt.array=[]);var n,r=yt.array;for(r.length=0;n=b[t++];)100===n||102===n?(r.push(T[(e=e+7&-8)>>3]),e+=8):(r.push(E[(e=e+3&-4)>>2]),e+=4);return r}function _t(t,e,n){var r=n>0?n:D(t)+1,i=new Array(r),o=C(t,i,0,i.length);return e&&(i.length=o),i}tt=function(){return performance.now()},at.staticInit();var wt={M:function(t,e){return function(t,e){var n;if(0===t)n=Date.now();else{if(1!==t&&4!==t)return et(28),-1;n=tt()}return E[e>>2]=n/1e3|0,E[e+4>>2]=n%1e3*1e3*1e3|0,0}(t,e)},k:function(t){return Dt(t)},j:function(t,e,n){throw"uncaught_exception"in Mt?Mt.uncaught_exceptions++:Mt.uncaught_exceptions=1,t},q:function(){},U:function(t,e){return et(63),-1},P:function(t,e){st.varargs=e;try{var n=st.getStr();return at.unlink(n),0}catch(r){return void 0!==at&&r instanceof at.ErrnoError||G(r),-r.errno}},R:function(t,e){st.varargs=e;try{return function(t,e,n,r,i,o){var a;o<<=12;var s=!1;if(0!=(16&r)&&t%16384!=0)return-28;if(0!=(32&r)){if(!(a=Ot(16384,e)))return-48;ut(a,0,e),s=!0}else{var u=at.getStream(i);if(!u)return-8;var c=at.mmap(u,b,t,e,o,n,r);a=c.ptr,s=c.allocated}return st.mappings[a]={malloc:a,len:e,allocated:s,fd:i,flags:r,offset:o},a}(st.get(),st.get(),st.get(),st.get(),st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||G(n),-n.errno}},S:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doStat(at.stat,n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||G(i),-i.errno}},T:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();return st.doStat(at.stat,n.path,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||G(i),-i.errno}},L:function(t,e){st.varargs=e;try{return 42}catch(n){return void 0!==at&&n instanceof at.ErrnoError||G(n),-n.errno}},y:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD();switch(st.get()){case 0:return(r=st.get())<0?-28:at.open(n.path,n.flags,0,r).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:var r=st.get();return n.flags|=r,0;case 12:return r=st.get(),x[r+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return et(28),-1;default:return-28}}catch(i){return void 0!==at&&i instanceof at.ErrnoError||G(i),-i.errno}},K:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doAccess(n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||G(i),-i.errno}},z:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get(),i=st.get();return at.open(n,r,i).fd}catch(o){return void 0!==at&&o instanceof at.ErrnoError||G(o),-o.errno}},O:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();switch(r){case 21509:case 21505:return n.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var i=st.get();return E[i>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return i=st.get(),at.ioctl(n,r,i);case 21523:case 21524:return n.tty?0:-59;default:G("bad ioctl syscall "+r)}}catch(o){return void 0!==at&&o instanceof at.ErrnoError||G(o),-o.errno}},Q:function(t,e){st.varargs=e;try{return function(t,e){if(-1===t||0===e)return-28;var n=st.mappings[t];if(!n)return 0;if(e===n.len){var r=at.getStream(n.fd);st.doMsync(t,r,e,n.flags,n.offset),at.munmap(r),st.mappings[t]=null,n.allocated&&Nt(n.malloc)}return 0}(st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||G(n),-n.errno}},m:function(){},w:function(){G()},C:function(t,e,n){var r=yt(e,n);return K[t].apply(null,r)},d:function(t,e){!function(t,e){throw Zt(t,e||1),"longjmp"}(t,e)},E:function(t,e,n){b.set(b.subarray(e,e+n),t)},F:function(t){var e=b.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),lt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},I:function(t,e){var n=ft(),r=0;return n.forEach(function(n,i){var o=e+r;E[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);w[e>>0]=0}(n,o),r+=n.length+1}),0},J:function(t,e){var n=ft();E[t>>2]=n.length;var r=0;return n.forEach(function(t){r+=t.length+1}),E[e>>2]=r,0},l:function(t){!function(t,e){f||(v=!0,r.onExit&&r.onExit(t)),s(t,new $t(t))}(t)},p:function(t){try{var e=st.getStreamFromFD(t);return at.close(e),0}catch(n){return void 0!==at&&n instanceof at.ErrnoError||G(n),n.errno}},H:function(t,e){try{var n=st.getStreamFromFD(t),r=n.tty?2:at.isDir(n.mode)?3:at.isLink(n.mode)?7:4;return w[e>>0]=r,0}catch(i){return void 0!==at&&i instanceof at.ErrnoError||G(i),i.errno}},N:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doReadv(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||G(a),a.errno}},D:function(t,e,n,r,i){try{var o=st.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(at.llseek(o,a,r),W=[o.position>>>0,(Q=o.position,+P(Q)>=1?Q>0?(0|z(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[i>>2]=W[0],E[i+4>>2]=W[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==at&&s instanceof at.ErrnoError||G(s),s.errno}},x:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doWritev(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||G(a),a.errno}},a:function(){return 0|p},X:function(t){var e=Date.now();return E[t>>2]=e/1e3|0,E[t+4>>2]=e%1e3*1e3|0,0},Y:function(t){var e=Qt();try{return Vt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},V:function(t,e){var n=Qt();try{return Ht(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},v:function(t){var e=Qt();try{return zt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},f:function(t,e){var n=Qt();try{return jt(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},e:function(t,e,n){var r=Qt();try{return Yt(t,e,n)}catch(i){if(Wt(r),i!==i+0&&"longjmp"!==i)throw i;Zt(1,0)}},g:function(t,e,n,r){var i=Qt();try{return Bt(t,e,n,r)}catch(o){if(Wt(i),o!==o+0&&"longjmp"!==o)throw o;Zt(1,0)}},n:function(t,e,n,r,i){var o=Qt();try{return Jt(t,e,n,r,i)}catch(a){if(Wt(o),a!==a+0&&"longjmp"!==a)throw a;Zt(1,0)}},W:function(t,e,n,r,i,o,a){var s=Qt();try{return Gt(t,e,n,r,i,o,a)}catch(u){if(Wt(s),u!==u+0&&"longjmp"!==u)throw u;Zt(1,0)}},s:function(t){var e=Qt();try{Rt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},h:function(t,e){var n=Qt();try{Lt(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},o:function(t,e,n){var r=Qt();try{Ut(t,e,n)}catch(i){if(Wt(r),i!==i+0&&"longjmp"!==i)throw i;Zt(1,0)}},u:function(t,e,n,r){var i=Qt();try{Pt(t,e,n,r)}catch(o){if(Wt(i),o!==o+0&&"longjmp"!==o)throw o;Zt(1,0)}},t:function(t,e,n,r,i){var o=Qt();try{Ft(t,e,n,r,i)}catch(a){if(Wt(o),a!==a+0&&"longjmp"!==a)throw a;Zt(1,0)}},r:function(t,e,n,r,i,o){var a=Qt();try{qt(t,e,n,r,i,o)}catch(s){if(Wt(a),s!==s+0&&"longjmp"!==s)throw s;Zt(1,0)}},memory:d,i:function t(e,n,r,i){n|=0,r|=0,i|=0;var o=0;for(E[(e|=0)>>2]=ct=ct+1|0;(0|o)<(0|i);){if(0==(0|E[r+(o<<3)>>2]))return E[r+(o<<3)>>2]=ct,E[r+(4+(o<<3))>>2]=n,E[r+(8+(o<<3))>>2]=0,g(0|i),0|r;o=o+1|0}return r=0|t(0|e,0|n,0|(r=0|kt(0|r,8*(1+(i=2*i|0)|0)|0)),0|i),g(0|i),0|r},b:function(t){g(0|t)},G:function(t,e,n,r){return function(t,e,n,r){var i=E[r+40>>2],o={tm_sec:E[r>>2],tm_min:E[r+4>>2],tm_hour:E[r+8>>2],tm_mday:E[r+12>>2],tm_mon:E[r+16>>2],tm_year:E[r+20>>2],tm_wday:E[r+24>>2],tm_yday:E[r+28>>2],tm_isdst:E[r+32>>2],tm_gmtoff:E[r+36>>2],tm_zone:i?I(i):""},a=I(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)a=a.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(t,e,n){for(var r="number"==typeof t?t.toString():t||"";r.length0?1:0}var r;return 0===(r=n(t.getFullYear()-e.getFullYear()))&&0===(r=n(t.getMonth()-e.getMonth()))&&(r=n(t.getDate()-e.getDate())),r}function p(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function g(t){var e=vt(new Date(t.tm_year+1900,0,1),t.tm_yday),n=new Date(e.getFullYear(),0,4),r=new Date(e.getFullYear()+1,0,4),i=p(n),o=p(r);return d(i,e)<=0?d(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var m={"%a":function(t){return c[t.tm_wday].substring(0,3)},"%A":function(t){return c[t.tm_wday]},"%b":function(t){return l[t.tm_mon].substring(0,3)},"%B":function(t){return l[t.tm_mon]},"%C":function(t){return f((t.tm_year+1900)/100|0,2)},"%d":function(t){return f(t.tm_mday,2)},"%e":function(t){return h(t.tm_mday,2," ")},"%g":function(t){return g(t).toString().substring(2)},"%G":function(t){return g(t)},"%H":function(t){return f(t.tm_hour,2)},"%I":function(t){var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),f(e,2)},"%j":function(t){return f(t.tm_mday+pt(dt(t.tm_year+1900)?gt:mt,t.tm_mon-1),3)},"%m":function(t){return f(t.tm_mon+1,2)},"%M":function(t){return f(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return f(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var e=new Date(t.tm_year+1900,0,1),n=0===e.getDay()?e:vt(e,7-e.getDay()),r=new Date(t.tm_year+1900,t.tm_mon,t.tm_mday);if(d(n,r)<0){var i=pt(dt(r.getFullYear())?gt:mt,r.getMonth()-1)-31,o=31-n.getDate()+i+r.getDate();return f(Math.ceil(o/7),2)}return 0===d(n,e)?"01":"00"},"%V":function(t){var e,n=new Date(t.tm_year+1900,0,4),r=new Date(t.tm_year+1901,0,4),i=p(n),o=p(r),a=vt(new Date(t.tm_year+1900,0,1),t.tm_yday);return d(a,i)<0?"53":d(o,a)<=0?"01":(e=i.getFullYear()=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(n?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var u in m)a.indexOf(u)>=0&&(a=a.replace(new RegExp(u,"g"),m[u](o)));var v=_t(a,!1);return v.length>e?0:(function(t,e){w.set(t,e)}(v,t),v.length-1)}(t,e,n,r)},table:m,c:function(t,e,n){t|=0,e|=0,n|=0;for(var r=0,i=0;(0|r)<(0|n)&&0!=(0|(i=0|E[e+(r<<3)>>2]));){if((0|i)==(0|t))return 0|E[e+(4+(r<<3))>>2];r=r+1|0}return 0},A:function(t){var e=Date.now()/1e3|0;return t&&(E[t>>2]=e),e},B:function(t){return 0!==t&&ut(t,0,16),0}},bt=function(){var t={a:wt};function e(t,e){r.asm=t.exports,J()}function n(t){e(t.instance)}function i(e){return(h||"function"!=typeof fetch?new Promise(function(t,e){t(X())}):fetch($,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+$+"'";return t.arrayBuffer()}).catch(function(){return X()})).then(function(e){return WebAssembly.instantiate(e,t)}).then(e,function(t){l("failed to asynchronously prepare wasm: "+t),G(t)})}if(B(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return l("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(h||"function"!=typeof WebAssembly.instantiateStreaming||V($)||"function"!=typeof fetch)return i(n);fetch($,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,t).then(n,function(t){l("wasm streaming compile failed: "+t),l("falling back to ArrayBuffer instantiation"),i(n)})})}(),{}}();r.asm=bt;var xt,Et=r.___wasm_call_ctors=function(){return(Et=r.___wasm_call_ctors=r.asm.Z).apply(null,arguments)},Tt=r._emscripten_bind_VoidPtr___destroy___0=function(){return(Tt=r._emscripten_bind_VoidPtr___destroy___0=r.asm._).apply(null,arguments)},At=r._emscripten_bind_Main_layout_3=function(){return(At=r._emscripten_bind_Main_layout_3=r.asm.$).apply(null,arguments)},St=r._emscripten_bind_Main_lastError_0=function(){return(St=r._emscripten_bind_Main_lastError_0=r.asm.aa).apply(null,arguments)},It=r._emscripten_bind_Main_createFile_2=function(){return(It=r._emscripten_bind_Main_createFile_2=r.asm.ba).apply(null,arguments)},Ct=r._emscripten_bind_Main___destroy___0=function(){return(Ct=r._emscripten_bind_Main___destroy___0=r.asm.ca).apply(null,arguments)},Dt=r._malloc=function(){return(Dt=r._malloc=r.asm.da).apply(null,arguments)},Nt=r._free=function(){return(Nt=r._free=r.asm.ea).apply(null,arguments)},kt=r._realloc=function(){return(kt=r._realloc=r.asm.fa).apply(null,arguments)},Zt=(r.___errno_location=function(){return(r.___errno_location=r.asm.ga).apply(null,arguments)},r._setThrew=function(){return(Zt=r._setThrew=r.asm.ha).apply(null,arguments)}),Mt=r.__ZSt18uncaught_exceptionv=function(){return(Mt=r.__ZSt18uncaught_exceptionv=r.asm.ia).apply(null,arguments)},Ot=r._memalign=function(){return(Ot=r._memalign=r.asm.ja).apply(null,arguments)},Rt=r.dynCall_v=function(){return(Rt=r.dynCall_v=r.asm.ka).apply(null,arguments)},Lt=r.dynCall_vi=function(){return(Lt=r.dynCall_vi=r.asm.la).apply(null,arguments)},Ut=r.dynCall_vii=function(){return(Ut=r.dynCall_vii=r.asm.ma).apply(null,arguments)},Pt=r.dynCall_viii=function(){return(Pt=r.dynCall_viii=r.asm.na).apply(null,arguments)},Ft=r.dynCall_viiii=function(){return(Ft=r.dynCall_viiii=r.asm.oa).apply(null,arguments)},qt=r.dynCall_viiiii=function(){return(qt=r.dynCall_viiiii=r.asm.pa).apply(null,arguments)},zt=r.dynCall_i=function(){return(zt=r.dynCall_i=r.asm.qa).apply(null,arguments)},jt=r.dynCall_ii=function(){return(jt=r.dynCall_ii=r.asm.ra).apply(null,arguments)},Yt=r.dynCall_iii=function(){return(Yt=r.dynCall_iii=r.asm.sa).apply(null,arguments)},Bt=r.dynCall_iiii=function(){return(Bt=r.dynCall_iiii=r.asm.ta).apply(null,arguments)},Jt=r.dynCall_iiiii=function(){return(Jt=r.dynCall_iiiii=r.asm.ua).apply(null,arguments)},Gt=r.dynCall_iiiiiii=function(){return(Gt=r.dynCall_iiiiiii=r.asm.va).apply(null,arguments)},Vt=r.dynCall_d=function(){return(Vt=r.dynCall_d=r.asm.wa).apply(null,arguments)},Ht=r.dynCall_di=function(){return(Ht=r.dynCall_di=r.asm.xa).apply(null,arguments)},Qt=r.stackSave=function(){return(Qt=r.stackSave=r.asm.ya).apply(null,arguments)},Wt=(r.stackAlloc=function(){return(r.stackAlloc=r.asm.za).apply(null,arguments)},r.stackRestore=function(){return(Wt=r.stackRestore=r.asm.Aa).apply(null,arguments)});function $t(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function Xt(t){function e(){xt||(xt=!0,v||(U=!0,r.noFSInit||at.init.initialized||at.init(),it.init(),Z(O),at.ignorePermissions=!1,Z(R),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),L.unshift(t);var t;Z(L)}()))}j>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),M.unshift(t);var t;Z(M)}(),j>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),e()},1)):e()))}if(r.asm=bt,r.then=function(t){if(xt)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},Y=function t(){xt||Xt(),xt||(Y=t)},r.run=Xt,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function Kt(){}function te(t){return(t||Kt).__cache__}function ee(t,e){var n=te(e),r=n[t];return r||((r=Object.create((e||Kt).prototype)).ptr=t,n[t]=r)}f=!0,Xt(),(Kt.prototype=Object.create(Kt.prototype)).constructor=Kt,Kt.prototype.__class__=Kt,Kt.__cache__={},r.WrapperObject=Kt,r.getCache=te,r.wrapPointer=ee,r.castObject=function(t,e){return ee(t.ptr,e)},r.NULL=ee(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete te(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var ne={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ne.needed){for(var t=0;t=ne.size?(y(i>0),ne.needed+=i,n=r._malloc(i),ne.temps.push(n)):(n=ne.buffer+ne.pos,ne.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i\n\n'}}function m(t,e){var n,r=p({images:[],files:[]},e);(function(){for(var t=0,e=0,n=arguments.length;e>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(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(t))?new A(e[1],e[2],e[3],1):(e=f.exec(t))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?x(e[1],e[2],e[3],e[4]):(e=p.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?D(e[1],e[2]/100,e[3]/100,1):(e=m.exec(t))?D(e[1],e[2]/100,e[3]/100,e[4]):v.hasOwnProperty(t)?b(v[t]):"transparent"===t?new A(NaN,NaN,NaN,0):null}function b(t){return new A(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new A(t,e,n,r)}function E(t){return t instanceof i||(t=w(t)),t?new A((t=t.rgb()).r,t.g,t.b,t.opacity):new A}function T(t,e,n,r){return 1===arguments.length?E(t):new A(t,e,n,null==r?1:r)}function A(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(){return"#"+C(this.r)+C(this.g)+C(this.b)}function I(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function C(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function D(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Z(t,e,n,r)}function N(t){if(t instanceof Z)return new Z(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=w(t)),!t)return new Z;if(t instanceof Z)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-o,c=(a+o)/2;return u?(s=e===a?(n-r)/u+6*(n0&&c<1?0:s,new Z(s,u,c,t.opacity)}function k(t,e,n,r){return 1===arguments.length?N(t):new Z(t,e,n,null==r?1:r)}function Z(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function M(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}(0,r.Z)(i,w,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return N(this).formatHsl()},formatRgb:_,toString:_}),(0,r.Z)(A,T,(0,r.l)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new A(this.r*t,this.g*t,this.b*t,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:S,formatHex:S,formatRgb:I,toString:I})),(0,r.Z)(Z,k,(0,r.l)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new Z(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new Z(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new A(M(t>=240?t-240:t+120,i,r),M(t,i,r),M(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},80052:function(t,e,n){"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.d(e,{Z:function(){return r},l:function(){return i}})},64641:function(t,e){"use strict";var n={value:function(){}};function r(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function a(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),o=0;o1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{Z:function(){return r}})},93116:function(t,e,n){"use strict";n.d(e,{Z:function(){return i},v:function(){return o}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.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}},25047:function(t,e,n){"use strict";n.r(e),n.d(e,{formatDefaultLocale:function(){return r.ZP},format:function(){return r.WU},formatPrefix:function(){return r.jH},formatLocale:function(){return i.Z},formatSpecifier:function(){return o.Z},FormatSpecifier:function(){return o.v},precisionFixed:function(){return a.Z},precisionPrefix:function(){return s.Z},precisionRound:function(){return u.Z}});var r=n(3712),i=n(70592),o=n(93116),a=n(22233),s=n(65636),u=n(3218)},70592:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r,i=n(98477),o=n(93116),a=n(25169);function s(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var u={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var i=n[0],o=n[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return s===u?i:s>u?i+new Array(s-u+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+(0,a.Z)(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function c(t){return t}var l=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function f(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?c:(e=l.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",f=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(l.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",m=void 0===t.minus?"-":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function y(t){var e=(t=(0,o.Z)(t)).fill,n=t.align,i=t.sign,c=t.symbol,l=t.zero,y=t.width,_=t.comma,w=t.precision,b=t.trim,x=t.type;"n"===x?(_=!0,x="g"):u[x]||(void 0===w&&(w=12),b=!0,x="g"),(l||"0"===e&&"="===n)&&(l=!0,e="0",n="=");var E="$"===c?s:"#"===c&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",T="$"===c?f:/[%p]/.test(x)?g:"",A=u[x],S=/[defgprs%]/.test(x);function I(t){var o,s,u,c=E,f=T;if("c"===x)f=A(t)+f,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:A(Math.abs(t),w),b&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),g&&0==+t&&"+"!==i&&(g=!1),c=(g?"("===i?i:m:"-"===i||"("===i?"":i)+c,f=("s"===x?h[8+r/3]:"")+f+(g&&"("===i?")":""),S)for(o=-1,s=t.length;++o(u=t.charCodeAt(o))||u>57){f=(46===u?d+t.slice(o+1):t.slice(o))+f,t=t.slice(0,o);break}}_&&!l&&(t=a(t,1/0));var I=c.length+t.length+f.length,C=I>1)+c+t+f+C.slice(I);break;default:t=C+c+t+f}return p(t)}return w=void 0===w?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),I.toString=function(){return t+""},I}return{format:y,formatPrefix:function(t,e){var n=y(((t=(0,o.Z)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((0,i.Z)(e)/3))),a=Math.pow(10,-r),s=h[8+r/3];return function(t){return n(a*t)+s}}}}},22233:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t){return Math.max(0,-(0,r.Z)(Math.abs(t)))}},65636:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(e)/3)))-(0,r.Z)(Math.abs(t)))}},3218:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,r.Z)(e)-(0,r.Z)(t))+1}},73180:function(t,e,n){!function(t,e,n,r,i,o,a,s,u,c){"use strict";function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0,r=e.select(this),i=t.attributes,o=r.node().attributes;if(o)for(var a=0;a0?i.children[0].text:"")}null==t.key&&(o&&("ellipse"!=n&&"polygon"!=n||(n="path")),t.key=n+"-"+e)}function m(t,e){t.id=(e?e.id+".":"")+t.key}function v(t){c[t.id]=t}function y(t,e){o&&t.id in l&&("polygon"!=e.tag&&"ellipse"!=e.tag&&"path"!=e.tag||e.tag==t.tag&&"polygon"!=t.tag||("path"!=e.tag&&(t.alternativeOld=D(e,t)),"path"!=t.tag&&(t.alternativeNew=D(t,e))))}function _(t,e){if(i&&e&&("path"==e.tag||t.alternativeOld&&"path"==t.alternativeOld.tag)){var n=(t.alternativeNew||t).attributes.d;if(t.alternativeOld)var r=g(t.alternativeOld);else r=g(e);(t.alternativeOld||(t.alternativeOld={})).points=function(t,e,n,r){for(var i=t,o=i.cloneNode(),a=i.getTotalLength(),s=(o.setAttribute("d",e),o).getTotalLength(),u=[0],c=0,l=r?n:n/Math.max(a,s);(c+=l)<1;)u.push(c);return u.push(1),u.map(function(t){var e=i.getPointAtLength(t*a),n=o.getPointAtLength(t*s);return[[e.x,e.y],[n.x,n.y]]})}(r,n,a,s)}}function w(t){var e=arguments.length>2?arguments[2]:void 0;p(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),m(t,e);var n=l[t.id];v(t),y(t,n),_(t,n);var r={};t.children.forEach(function(e){var n=e.tag;"ellipse"!=n&&"polygon"!=n||(n="path"),null==r[n]&&(r[n]=0),w(e,r[n]++,t)})}function b(t){(function(t){if(u&&t.parent&&"node"==t.parent.attributes.class&&"title"==t.tag){if(t.children.length>0)var e=t.children[0].text;else e="";h[e]=t.parent}})(t),function(t){var e=t.tag;if(u&&!l[t.id]&&t.parent&&I(t)&&("path"==e||"polygon"==e)){if("polygon"==e){var n=t.parent.children.find(function(t){return"path"==t.tag});n&&(t.totalLength=n.totalLength)}var r=function(t){return function(t){return"edge"==t.parent.attributes.class?t.parent:t.parent.parent.parent}(t).children.find(function(t){return"title"==t.tag})}(t).children[0],i=r.text.split("->");2!=i.length&&(i=r.text.split("--"));var o=i[0],a=h[o],s=f[o];if(s){if((p=a.children.findIndex(function(t,e){return"g"==t.tag}))>=0){var c=a.children[p].children.findIndex(function(t,e){return"a"==t.tag});a=a.children[p].children[c]}(p=s.children.findIndex(function(t,e){return"g"==t.tag}))>=0&&(c=s.children[p].children.findIndex(function(t,e){return"a"==t.tag}),s=s.children[p].children[c]);for(var d=a.children,p=0;p0&&this._queue.shift().call(this)}function M(t,e,n,r){var i=[t*n-(e=-e)*(r=-r),t*r+e*n];return[t=i[0],e=-(e=i[1])]}function O(t,e,n,r,i,o,a){var s=d(P.call(this,o));t.data([s]),_.call(t.node(),s),R(t,e,n,r,i,o,a)}function R(t,e,n,r,i,o,a){var s=a.shortening||0,u=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],l=r-e,h=i-n,f=Math.sqrt(l*l+h*h);if(0==f)var d=1,p=0;else d=l/f,p=h/f;if(r=e+(f-s-10-.1)*d,i=n+(f-s-10-.1)*p,o.URL||o.tooltip)var g=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),m=g.selectWithoutDataPropagation("path"),v=g.selectWithoutDataPropagation("polygon");else m=t.selectWithoutDataPropagation("path"),v=t.selectWithoutDataPropagation("polygon");var y=c.path();y.moveTo(e,n),y.lineTo(r,i),m.attr("d",y),r=e+(f-s-10)*d,i=n+(f-s-10)*p;for(var _=0;_ b ["+n+"]}","svg","dot"),s=(new window.DOMParser).parseFromString(a,"image/svg+xml");return e.select(document.createDocumentFragment()).append(function(){return s.documentElement}).select(".edge")}function F(t,e,n,r,i,o){var a=d(Y.call(this,r,i));return t.data([a]),_.call(t.node(),a),q(t,e,n,i),this}function q(t,n,r,i,o){if(i.URL||i.tooltip)var a=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else a=t;var s=a.selectAll("ellipse,polygon,path,polyline"),u=t.selectWithoutDataPropagation("text");if(0!=s.size()){var c=s.node().getBBox();c.cx=c.x+c.width/2,c.cy=c.y+c.height/2}else 0!=u.size()&&(c={x:+u.attr("x"),y:+u.attr("y"),width:0,height:0,cx:+u.attr("x"),cy:+u.attr("y")});return s.each(function(t,i){var o=e.select(this);if(o.attr("cx"))o.attr("cx",b(n)).attr("cy",b(r));else if(o.attr("points")){var a=o.attr("points").trim();o.attr("points",function(t,e,n){var r,i=(r=t.split(" ")).map(function(t){return t.split(",")});return i=r.map(function(t){return[b(+e+ +t.split(",")[0]),b(+n+ +t.split(",")[1])]}),(r=i.map(function(t){return t.join(",")})).join(" ")}(a,n-c.cx,r-c.cy))}else{var s=o.attr("d");o.attr("d",function(t,e,n){(i=t.split(/[A-Z ]/)).shift();var r=t.split(/[^[A-Z ]+/),i=(i.map(function(t){return t.split(",")}),i.map(function(t){return[b(+e+ +t.split(",")[0]),b(+n+ +t.split(",")[1])]}).map(function(t){return t.join(",")}));return r.reduce(function(t,e,n){return t.concat(e,i[n])},[]).join("")}(s,n-c.cx,r-c.cy))}}),0!=u.size()&&u.attr("x",b(+u.attr("x")+n-c.cx)).attr("y",b(+u.attr("y")+r-c.cy)),this}function z(){if(!this._drawnNode)return this;var t=this._drawnNode.g;return t.empty()||t.remove(),this._drawnNode=null,this}function j(){return this._drawnNode?this._drawnNode.g:e.select(null)}function Y(t,n){for(var r="",i=0,o=Object.keys(n);i2")(a)+" ",i+=s+" ".repeat(o-s.length),i+=u.format(" >5")(t-n)+" ","initEnd"!=s&&(i+=u.format(" >5")(t-r.start[e])),"dataProcessEnd"==s&&(i+=" prepare "+u.format(" >5")(t-r.layoutEnd[e])),"renderEnd"==s&&c._transition&&(i+=" transition start margin "+u.format(" >5")(c._transition.delay()-(t-r.renderStart[e])),l=c._transition.delay(),f=c._transition.duration()),"transitionStart"==s){var h=t-r.renderStart[e];i+=" transition delay "+u.format(" >5")(t-r.renderStart[e]),i+=" expected "+u.format(" >5")(l),i+=" diff "+u.format(" >5")(h-l)}if("transitionEnd"==s){var d=t-r.transitionStart[e];i+=" transition duration "+u.format(" >5")(d),i+=" expected "+u.format(" >5")(f),i+=" diff "+u.format(" >5")(d-f)}console.log(i),n=t}:null)},s=0;s5&&void 0!==arguments[5]?arguments[5]:{};if((o=Object.assign({},o)).style&&o.style.includes("invis"))var s=e.select(null);else{var u=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),c=d(P.call(this,o));s=u.append("g").data([c]),_.call(s.node(),c),O.call(this,s,t,n,r,i,o,a)}return this._drawnEdge={g:s,x1:t,y1:n,x2:r,y2:i,attributes:o},this},updateDrawnEdge:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var a=this._drawnEdge.g;return i=Object.assign(this._drawnEdge.attributes,i),this._drawnEdge.x1=t,this._drawnEdge.y1=e,this._drawnEdge.x2=n,this._drawnEdge.y2=r,!a.empty()||i.style&&i.style.includes("invis")||(a=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=a),a.empty()||O.call(this,a,t,e,n,r,i,o),this},moveDrawnEdgeEndPoint:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var r=this._drawnEdge.g,i=this._drawnEdge.x1,o=this._drawnEdge.y1,a=this._drawnEdge.attributes;return this._drawnEdge.x2=t,this._drawnEdge.y2=e,R(r,i,o,t,e,a,n),this},insertDrawnEdge:function(t){if(!this._drawnEdge)throw Error("No edge has been drawn");var e=this._drawnEdge.g;if(e.empty())return this;e.selectWithoutDataPropagation("title").text(t);var n=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),r=n.datum(),i=this._extractData(e,r.children.length,n.datum());return r.children.push(i),v(e,i),this._drawnEdge=null,this},removeDrawnEdge:L},"removeDrawnEdge",L),l(V,"drawnEdgeSelection",U),l(V,"drawnEdgeSelection",U),l(V,"drawNode",function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((i=Object.assign({},i)).style&&i.style.includes("invis"))var a=e.select(null);else{var s=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),u=d(Y.call(this,r,i));a=s.append("g").data([u]),_.call(a.node(),u),F.call(this,a,t,n,r,i,o)}return this._drawnNode={g:a,nodeId:r,x:t,y:n,attributes:i},this}),l(V,"updateDrawnNode",function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var o=this._drawnNode.g;return null==n&&(n=this._drawnNode.nodeId),r=Object.assign(this._drawnNode.attributes,r),this._drawnNode.nodeId=n,this._drawnNode.x=t,this._drawnNode.y=e,!o.empty()||r.style&&r.style.includes("invis")||(o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=o),o.empty()||F.call(this,o,t,e,n,r,i),this}),l(V,"moveDrawnNode",function(t,e){if(!this._drawnNode)throw Error("No node has been drawn");var n=this._drawnNode.g,r=this._drawnNode.attributes;return this._drawnNode.x=t,this._drawnNode.y=e,n.empty()||q(n,t,e,r),this}),l(V,"insertDrawnNode",function(t){if(!this._drawnNode)throw Error("No node has been drawn");null==t&&(t=this._drawnNode.nodeId);var e=this._drawnNode.g;if(e.empty())return this;var n=this._drawnNode.attributes;if(e.selectWithoutDataPropagation("title").text(t),n.URL||n.tooltip)var r=e.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),i=(r.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),r.selectWithoutDataPropagation("text"));else e.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),i=e.selectWithoutDataPropagation("text");i.text(n.label||t);var o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),a=o.datum(),s=this._extractData(e,a.children.length,o.datum());return a.children.push(s),v(e,s),this._drawnNode=null,this}),l(V,"removeDrawnNode",z),l(V,"removeDrawnNode",z),l(V,"drawnNodeSelection",j),l(V,"drawnNodeSelection",j),V),e.selection.prototype.graphviz=function(t){var e=this.node().__graphviz__;return e?(e.options(t),i.timeout((function(){e._dispatch.call("initEnd",this)}).bind(this),0)):e=new H(this,t),e},e.selection.prototype.selectWithoutDataPropagation=function(t){return e.select(this.size()>0?this.node().querySelector(t):null)},t.graphviz=Q,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(24967),n(58552),n(82159),n(14788),n(30853),n(59320),n(95914),n(25047),n(16809))},60053:function(t,e,n){"use strict";n.d(e,{Z:function(){return o},M:function(){return a}});var r=n(3031),i=n(61317);function o(t,e){return((0,i.v)(e)?i.Z:a)(t,e)}function a(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=new Array(o),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1];return r((n-i/e)*e,i>0?t[i-1]:2*o-a,o,a,i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):(0,r.Z)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?i(t,n):(0,r.Z)(isNaN(t)?e:t)}},94065:function(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{Z:function(){return r}})},28917:function(t,e,n){"use strict";function r(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}n.d(e,{Z:function(){return r}})},30853:function(t,e,n){"use strict";n.r(e),n.d(e,{interpolate:function(){return r.Z},interpolateArray:function(){return i.Z},interpolateBasis:function(){return o.Z},interpolateBasisClosed:function(){return a.Z},interpolateCubehelix:function(){return nt},interpolateCubehelixLong:function(){return rt},interpolateDate:function(){return s.Z},interpolateDiscrete:function(){return u},interpolateHcl:function(){return j},interpolateHclLong:function(){return Y},interpolateHsl:function(){return b},interpolateHslLong:function(){return x},interpolateHue:function(){return l},interpolateLab:function(){return q},interpolateNumber:function(){return h.Z},interpolateNumberArray:function(){return f.Z},interpolateObject:function(){return d.Z},interpolateRgb:function(){return y.ZP},interpolateRgbBasis:function(){return y.hD},interpolateRgbBasisClosed:function(){return y.YD},interpolateRound:function(){return p.Z},interpolateString:function(){return g.Z},interpolateTransformCss:function(){return m.Y},interpolateTransformSvg:function(){return m.w},interpolateZoom:function(){return v.Z},piecewise:function(){return it},quantize:function(){return ot}});var r=n(3031),i=n(60053),o=n(39588),a=n(17280),s=n(28917);function u(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var c=n(22656);function l(t,e){var n=(0,c.wx)(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}var h=n(75306),f=n(61317),d=n(70901),p=n(47071),g=n(51882),m=n(44090),v=n(13764),y=n(38740),_=n(12314);function w(t){return function(e,n){var r=t((e=(0,_.Ym)(e)).h,(n=(0,_.Ym)(n)).h),i=(0,c.ZP)(e.s,n.s),o=(0,c.ZP)(e.l,n.l),a=(0,c.ZP)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}var b=w(c.wx),x=w(c.ZP),E=n(80052),T=Math.PI/180,A=180/Math.PI,S=4/29,I=6/29,C=3*I*I;function D(t){if(t instanceof k)return new k(t.l,t.a,t.b,t.opacity);if(t instanceof P)return F(t);t instanceof _.Ss||(t=(0,_.SU)(t));var e,n,r=R(t.r),i=R(t.g),o=R(t.b),a=Z((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?e=n=a:(e=Z((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Z((.0139322*r+.0971045*i+.7141733*o)/.82521)),new k(116*a-16,500*(e-a),200*(a-n),t.opacity)}function N(t,e,n,r){return 1===arguments.length?D(t):new k(t,e,n,null==r?1:r)}function k(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Z(t){return t>.008856451679035631?Math.pow(t,1/3):t/C+S}function M(t){return t>I?t*t*t:C*(t-S)}function O(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function R(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function L(t){if(t instanceof P)return new P(t.h,t.c,t.l,t.opacity);if(t instanceof k||(t=D(t)),0===t.a&&0===t.b)return new P(NaN,0u&&(s=e.slice(u,s),l[c]?l[c]+=s:l[++c]=s),(n=n[0])===(a=a[0])?l[c]?l[c]+=a:l[++c]=a:(l[++c]=null,h.push({i:c,x:(0,r.Z)(n,a)})),u=o.lastIndex;return u180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:(0,s.Z)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:(0,s.Z)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:(0,s.Z)(t,n)},{i:u-2,x:(0,s.Z)(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++n1e-6)if(Math.abs(h*u-c*l)>1e-6&&o){var d=r-a,p=i-s,g=u*u+c*c,m=d*d+p*p,v=Math.sqrt(g),y=Math.sqrt(f),_=o*Math.tan((n-Math.acos((g+f-m)/(2*v*y)))/2),w=_/y,b=_/v;Math.abs(w-1)>1e-6&&(this._+="L"+(t+w*l)+","+(e+w*h)),this._+="A"+o+","+o+",0,0,"+ +(h*d>l*p)+","+(this._x1=t+b*u)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,o,a,s,u){t=+t,e=+e,u=!!u;var c=(o=+o)*Math.cos(a),l=o*Math.sin(a),h=t+c,f=e+l,d=1^u,p=u?a-s:s-a;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+h+","+f:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+h+","+f),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+d+","+(t-c)+","+(e-l)+"A"+o+","+o+",0,1,"+d+","+(this._x1=h)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+d+","+(this._x1=t+o*Math.cos(s))+","+(this._y1=e+o*Math.sin(s))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.Z=a},32436:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(26669),i=n(71867);function o(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.P&&e.documentElement.namespaceURI===i.P?e.createElement(t):e.createElementNS(n,t)}}function a(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function s(t){var e=(0,r.Z)(t);return(e.local?a:o)(e)}},24967:function(t,e,n){"use strict";n.r(e),n.d(e,{clientPoint:function(){return d.Z},create:function(){return o},creator:function(){return r.Z},customEvent:function(){return E._H},event:function(){return E.B},local:function(){return s},matcher:function(){return c.Z},mouse:function(){return l.Z},namespace:function(){return h.Z},namespaces:function(){return f.Z},select:function(){return i.Z},selectAll:function(){return g},selection:function(){return p.ZP},selector:function(){return m.Z},selectorAll:function(){return v.Z},style:function(){return y.S},touch:function(){return _.Z},touches:function(){return b},window:function(){return x.Z}});var r=n(32436),i=n(41036);function o(t){return(0,i.Z)((0,r.Z)(t).call(document.documentElement))}var a=0;function s(){return new u}function u(){this._="@"+(++a).toString(36)}u.prototype=s.prototype={constructor:u,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var c=n(54382),l=n(38337),h=n(26669),f=n(71867),d=n(54762),p=n(42710);function g(t){return"string"==typeof t?new p.Y1([document.querySelectorAll(t)],[document.documentElement]):new p.Y1([null==t?[]:t],p.Jz)}var m=n(69309),v=n(85502),y=n(97717),_=n(45161),w=n(72732);function b(t,e){null==e&&(e=(0,w.Z)().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.Z.hasOwnProperty(e)?{space:r.Z[e],local:t}:t}},71867:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});var r="http://www.w3.org/1999/xhtml";e.Z={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},54762:function(t,e,n){"use strict";function r(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}n.d(e,{Z:function(){return r}})},41036:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(42710);function i(t){return"string"==typeof t?new r.Y1([[document.querySelector(t)]],[document.documentElement]):new r.Y1([[t]],r.Jz)}},42710:function(t,e,n){"use strict";n.d(e,{Y1:function(){return Q},ZP:function(){return $},Jz:function(){return H}});var r=n(69309),i=n(85502),o=n(54382);function a(t){return new Array(t.length)}function s(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function u(t,e,n,r,i,o){for(var a,u=0,c=e.length,l=o.length;ue?1:t>=e?0:NaN}s.prototype={constructor:s,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var h=n(26669);function f(t){return function(){this.removeAttribute(t)}}function d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function p(t,e){return function(){this.setAttribute(t,e)}}function g(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function m(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function v(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var y=n(97717);function _(t){return function(){delete this[t]}}function w(t,e){return function(){this[t]=e}}function b(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function x(t){return t.trim().split(/^|\s+/)}function E(t){return t.classList||new T(t)}function T(t){this._node=t,this._names=x(t.getAttribute("class")||"")}function A(t,e){for(var n=E(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var P=n(32436);function F(){return null}function q(){var t=this.parentNode;t&&t.removeChild(this)}function z(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function j(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var Y=n(92711),B=n(11130);function J(t,e,n){var r=(0,B.Z)(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function G(t,e){return function(){return J(this,t,e)}}function V(t,e){return function(){return J(this,t,e.apply(this,arguments))}}var H=[null];function Q(t,e){this._groups=t,this._parents=e}function W(){return new Q([[document.documentElement]],H)}Q.prototype=W.prototype={constructor:Q,select:function(t){"function"!=typeof t&&(t=(0,r.Z)(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o=E&&(E=x+1);!(b=_[E])&&++E=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=l);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?_:"function"==typeof e?b:w)(t,e)):this.node()[t]},classed:function(t,e){var n=x(t+"");if(arguments.length<2){for(var r=E(this.node()),i=-1,o=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function u(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r1?this.each((null==e?i:"function"==typeof e?a:o)(t,e,null==n?"":n)):u(this.node(),t)}function u(t,e){return t.style.getPropertyValue(e)||(0,r.Z)(t).getComputedStyle(t,null).getPropertyValue(e)}},69309:function(t,e,n){"use strict";function r(){}function i(t){return null==t?r:function(){return this.querySelector(t)}}n.d(e,{Z:function(){return i}})},85502:function(t,e,n){"use strict";function r(){return[]}function i(t){return null==t?r:function(){return this.querySelectorAll(t)}}n.d(e,{Z:function(){return i}})},72732:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(92711);function i(){for(var t,e=r.B;t=e.sourceEvent;)e=t;return e}},45161:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(72732),i=n(54762);function o(t,e,n){arguments.length<3&&(n=e,e=(0,r.Z)().changedTouches);for(var o,a=0,s=e?e.length:0;a=0&&e._call.call(null,t),e=e._next;--o}function y(){c=(u=h.now())+l,o=a=0;try{v()}finally{o=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,w(o)}(),c=0}}function _(){var t=h.now(),e=t-u;e>1e3&&(l-=e,u=t)}function w(t){o||(a&&(a=clearTimeout(a)),t-c>24?(t<1/0&&(a=setTimeout(y,t-h.now()-l)),s&&(s=clearInterval(s))):(s||(u=h.now(),s=setInterval(_,1e3)),o=1,f(y)))}g.prototype=m.prototype={constructor:g,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},82159:function(t,e,n){"use strict";n.r(e),n.d(e,{active:function(){return it},interrupt:function(){return d},transition:function(){return X}});var r=n(42710),i=n(64641),o=n(65244),a=n(74199),s=(0,i.Z)("start","end","cancel","interrupt"),u=[];function c(t,e,n,r,i,c){var l=t.__transition;if(l){if(n in l)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function s(o){var l,h,f,d;if(1!==n.state)return c();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return(0,a.Z)(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[l]):+l0)throw new Error("too late; already scheduled");return n}function h(t,e){var n=f(t,e);if(n.state>3)throw new Error("too late; already running");return n}function f(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function d(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}var p=n(44090),g=n(26669);function m(t,e){var n,r;return function(){var i=h(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?l:h;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var z=n(69309),j=n(85502),Y=r.ZP.prototype.constructor,B=n(97717);function J(t){return function(){this.style.removeProperty(t)}}function G(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function V(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&G(t,o,n)),r}return o._value=e,o}function H(t){return function(e){this.textContent=t.call(this,e)}}function Q(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&H(r)),e}return r._value=t,r}var W=0;function $(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function X(t){return(0,r.ZP)().transition(t)}function K(){return++W}var tt=r.ZP.prototype;$.prototype=X.prototype={constructor:$,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=(0,z.Z)(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a1&&n.name===e)return new $([[t]],rt,e,+r);return null}},59320:function(t,e,n){"use strict";n.r(e),n.d(e,{zoom:function(){return T},zoomIdentity:function(){return p},zoomTransform:function(){return g}});var r=n(64641),i=n(8634),o=n(13764),a=n(92711),s=n(38337),u=n(41036),c=n(45161),l=n(82159);function h(t){return function(){return t}}function f(t,e,n){this.target=t,this.type=e,this.transform=n}function d(t,e,n){this.k=t,this.x=e,this.y=n}d.prototype={constructor:d,scale:function(t){return 1===t?this:new d(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new d(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var p=new d(1,0,0);function g(t){return t.__zoom||p}function m(){a.B.stopImmediatePropagation()}function v(){a.B.preventDefault(),a.B.stopImmediatePropagation()}function y(){return!a.B.button}function _(){var t,e,n=this;return n instanceof SVGElement?(t=(n=n.ownerSVGElement||n).width.baseVal.value,e=n.height.baseVal.value):(t=n.clientWidth,e=n.clientHeight),[[0,0],[t,e]]}function w(){return this.__zoom||p}function b(){return-a.B.deltaY*(a.B.deltaMode?120:1)/500}function x(){return"ontouchstart"in this}function E(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function T(){var t,e,n=y,g=_,T=E,A=b,S=x,I=[0,1/0],C=[[-1/0,-1/0],[1/0,1/0]],D=250,N=o.Z,k=[],Z=(0,r.Z)("start","zoom","end"),M=0;function O(t){t.property("__zoom",w).on("wheel.zoom",z).on("mousedown.zoom",j).on("dblclick.zoom",Y).filter(S).on("touchstart.zoom",B).on("touchmove.zoom",J).on("touchend.zoom touchcancel.zoom",G).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(t,e){return(e=Math.max(I[0],Math.min(I[1],e)))===t.k?t:new d(e,t.x,t.y)}function L(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new d(t.k,r,i)}function U(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function P(t,e,n){t.on("start.zoom",function(){F(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){F(this,arguments).end()}).tween("zoom",function(){var t=this,r=arguments,i=F(t,r),o=g.apply(t,r),a=n||U(o),s=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=t.__zoom,c="function"==typeof e?e.apply(t,r):e,l=N(u.invert(a).concat(s/u.k),c.invert(a).concat(s/c.k));return function(t){if(1===t)t=c;else{var e=l(t),n=s/e[2];t=new d(n,a[0]-e[0]*n,a[1]-e[1]*n)}i.zoom(null,t)}})}function F(t,e){for(var n,r=0,i=k.length;rM}t.zoom("mouse",T(L(t.that.__zoom,t.mouse[0]=(0,s.Z)(t.that),t.mouse[1]),t.extent,C))}function d(){r.on("mousemove.zoom mouseup.zoom",null),(0,i.D)(a.B.view,t.moved),v(),t.end()}}function Y(){if(n.apply(this,arguments)){var t=this.__zoom,e=(0,s.Z)(this),r=t.invert(e),i=t.k*(a.B.shiftKey?.5:2),o=T(L(R(t,i),e,r),g.apply(this,arguments),C);v(),D>0?(0,u.Z)(this).transition().duration(D).call(P,o,e):(0,u.Z)(this).call(O.transform,o)}}function B(){if(n.apply(this,arguments)){var e,r,i,o,s=F(this,arguments),h=a.B.changedTouches,f=h.length;for(m(),r=0;r0;--u)if(r=e[u].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,function(e){return t.outEdges(e.v,e.w)}),!0)};var a=r.constant(1);function s(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),function(r){var i=t.edge(r),s=t.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,u(e,n,s)}),r.forEach(t.outEdges(i.v),function(r){var i=t.edge(r),o=t.node(r.w);o.in-=i,u(e,n,o)}),t.removeNode(i.v),a}function u(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},73363:function(t,e,n){"use strict";var r=n(91096),i=n(19265),o=n(3266),a=n(29438),s=n(45247).normalizeRanks,u=n(22877),c=n(45247).removeEmptyRanks,l=n(8131),h=n(28549),f=n(64061),d=n(41727),p=n(14588),g=n(45247),m=n(49174).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",function(){var e=n(" buildLayoutGraph",function(){return function(t){var e=new m({multigraph:!0,compound:!0}),n=S(t.graph());return e.setGraph(r.merge({},y,A(n,v),r.pick(n,_))),r.forEach(t.nodes(),function(n){var i=S(t.node(n));e.setNode(n,r.defaults(A(i,w),b)),e.setParent(n,t.parent(n))}),r.forEach(t.edges(),function(n){var i=S(t.edge(n));e.setEdge(n,r.merge({},E,A(i,x),r.pick(i,T)))}),e}(t)});n(" runLayout",function(){!function(t,e){e(" makeSpaceForEdgeLabels",function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(t)}),e(" removeSelfEdges",function(){!function(t){r.forEach(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}})}(t)}),e(" acyclic",function(){i.run(t)}),e(" nestingGraph.run",function(){l.run(t)}),e(" rank",function(){a(g.asNonCompoundGraph(t))}),e(" injectEdgeLabelProxies",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w);g.addDummyNode(t,"edge-proxy",{rank:(i.rank-r.rank)/2+r.rank,e},"_ep")}})}(t)}),e(" removeEmptyRanks",function(){c(t)}),e(" nestingGraph.cleanup",function(){l.cleanup(t)}),e(" normalizeRanks",function(){s(t)}),e(" assignRankMinMax",function(){!function(t){var e=0;r.forEach(t.nodes(),function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))}),t.graph().maxRank=e}(t)}),e(" removeEdgeLabelProxies",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}(t)}),e(" normalize.run",function(){o.run(t)}),e(" parentDummyChains",function(){u(t)}),e(" addBorderSegments",function(){h(t)}),e(" order",function(){d(t)}),e(" insertSelfEdges",function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,function(e){var n=0;r.forEach(e,function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}(t)}),e(" adjustCoordinateSystem",function(){f.adjust(t)}),e(" position",function(){p(t)}),e(" positionSelfEdges",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}})}(t)}),e(" removeBorderNodes",function(){!function(t){r.forEach(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}}),r.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}(t)}),e(" normalize.undo",function(){o.undo(t)}),e(" fixupEdgeLabelCoords",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}(t)}),e(" undoCoordinateSystem",function(){f.undo(t)}),e(" translateGraph",function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),s=a.marginx||0,u=a.marginy||0;function c(t){var r=t.x,a=t.y,s=t.width,u=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}r.forEach(t.nodes(),function(e){c(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.has(n,"x")&&c(n)}),e-=s,i-=u,r.forEach(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=i}),r.forEach(t.edges(),function(n){var o=t.edge(n);r.forEach(o.points,function(t){t.x-=e,t.y-=i}),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)}),a.width=n-e+s,a.height=o-i+u}(t)}),e(" assignNodeIntersects",function(){!function(t){r.forEach(t.edges(),function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))})}(t)}),e(" reversePoints",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}(t)}),e(" acyclic.undo",function(){i.undo(t)})}(e,n)}),n(" updateInputGraph",function(){!function(t,e){r.forEach(t.nodes(),function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))}),r.forEach(t.edges(),function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)})})};var v=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],w=["width","height"],b={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},T=["labelpos"];function A(t,e){return r.mapValues(r.pick(t,e),Number)}function S(t){var e={};return r.forEach(t,function(t,n){e[n.toLowerCase()]=t}),e}},91096:function(t,e,n){var r;try{r={cloneDeep:n(38961),constant:n(60583),defaults:n(25177),each:n(97635),filter:n(9673),find:n(13963),flatten:n(38863),forEach:n(26404),forIn:n(21308),has:n(71645),isUndefined:n(96075),last:n(83074),map:n(86169),mapValues:n(7301),max:n(11653),merge:n(81940),min:n(47983),minBy:n(42707),now:n(41396),pick:n(28891),range:n(79289),reduce:n(37442),sortBy:n(36272),uniqueId:n(83798),values:n(95041),zipObject:n(3393)}}catch(i){}r||(r=window._),t.exports=r},8131:function(t,e,n){var r=n(91096),i=n(45247);function o(t,e,n,a,s,u,c){var l=t.children(c);if(l.length){var h=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),d=t.node(c);t.setParent(h,c),d.borderTop=h,t.setParent(f,c),d.borderBottom=f,r.forEach(l,function(r){o(t,e,n,a,s,u,r);var i=t.node(r),l=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=l!==d?1:s-u[c]+1;t.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(c)||t.setEdge(e,h,{weight:0,minlen:s+u[c]})}else c!==e&&t.setEdge(e,c,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,function(t){n(t,o+1)}),e[i]=o}return r.forEach(t.children(),function(t){n(t,1)}),e}(t),a=r.max(r.values(n))-1,s=2*a+1;t.graph().nestingRoot=e,r.forEach(t.edges(),function(e){t.edge(e).minlen*=s});var u=function(t){return r.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)}(t)+1;r.forEach(t.children(),function(r){o(t,e,s,u,a,n,r)}),t.graph().nodeRankFactor=s},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})}}},3266:function(t,e,n){"use strict";var r=n(91096),i=n(45247);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),function(e){!function(t,e){var n,r,o,a=e.v,s=t.node(a).rank,u=e.w,c=t.node(u).rank,l=e.name,h=t.edge(e),f=h.labelRank;if(c!==s+1){for(t.removeEdge(e),o=0,++s;s0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;c+=t.weight*n})),c}t.exports=function(t,e){for(var n=0,r=1;r=2),s=l.buildLayerMatrix(t);var m=o(t,s);m=t.barycenter)&&(o=0,a=0,(n=t).weight&&(o+=n.barycenter*n.weight,a+=n.weight),(i=e).weight&&(o+=i.barycenter*i.weight,a+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=o/a,n.weight=a,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,function(t){return!t.merged}),function(t){return r.pick(t,["vs","i","barycenter","weight"])})}(r.filter(n,function(t){return!t.indegree}))}},5826:function(t,e,n){var r=n(91096),i=n(25412),o=n(82764),a=n(37850);t.exports=function t(e,n,s,u){var c=e.children(n),l=e.node(n),h=l?l.borderLeft:void 0,f=l?l.borderRight:void 0,d={};h&&(c=r.filter(c,function(t){return t!==h&&t!==f}));var p=i(e,c);r.forEach(p,function(n){if(e.children(n.v).length){var i=t(e,n.v,s,u);d[n.v]=i,r.has(i,"barycenter")&&(a=i,r.isUndefined((o=n).barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a});var g=o(p,s);!function(t,e){r.forEach(t,function(t){t.vs=r.flatten(t.vs.map(function(t){return e[t]?e[t].vs:t}),!0)})}(g,d);var m=a(g,u);if(h&&(m.vs=r.flatten([h,m.vs,f],!0),e.predecessors(h).length)){var v=e.node(e.predecessors(h)[0]),y=e.node(e.predecessors(f)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+v.order+y.order)/(m.weight+2),m.weight+=2}return m}},37850:function(t,e,n){var r=n(91096),i=n(45247);function o(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,a=i.partition(t,function(t){return r.has(t,"barycenter")}),s=a.lhs,u=r.sortBy(a.rhs,function(t){return-t.i}),c=[],l=0,h=0,f=0;s.sort((n=!!e,function(t,e){return t.barycentere.barycenter?1:n?e.i-t.i:t.i-e.i})),f=o(c,u,f),r.forEach(s,function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=o(c,u,f)});var d={vs:r.flatten(c,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}},22877:function(t,e,n){var r=n(91096);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,lim:n++}}),e}(t);r.forEach(t.graph().dummyChains,function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||c>e[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,s=o.lca,u=0,c=a[u],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(c=a[u])!==s&&t.node(c).maxRanks)&&u(n,e,c)})})}return r.reduce(e,function(e,n){var o,a=-1,s=0;return r.forEach(n,function(r,u){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(o=t.node(c[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,e.length)}),n}),n}function u(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function c(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var o={},a={},s={};return r.forEach(e,function(t){r.forEach(t,function(t,e){o[t]=t,a[t]=t,s[t]=e})}),r.forEach(e,function(t){var e=-1;r.forEach(t,function(t){var u=i(t);if(u.length)for(var l=((u=r.sortBy(u,function(t){return s[t]})).length-1)/2,h=Math.floor(l),f=Math.ceil(l);h<=f;++h){var d=u[h];a[t]===t&&eu.lim&&(c=u,l=!0);var h=r.filter(e.edges(),function(e){return l===y(0,t.node(e.v),c)&&l!==y(0,t.node(e.w),c)});return r.minBy(h,function(t){return o(e,t)})}function v(t,e,n,i){t.removeEdge(n.v,n.w),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),function(t){return!e.node(t).parent}),i=s(t,n);i=i.slice(1),r.forEach(i,function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)})}(t,e)}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=h,l.calcCutValue=f,l.leaveEdge=g,l.enterEdge=m,l.exchangeEdges=v},21790:function(t,e,n){"use strict";var r=n(91096);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.min(r.map(t.outEdges(i),function(e){return n(e.w)-t.edge(e).minlen}));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},45247:function(t,e,n){"use strict";var r=n(91096),i=n(49174).Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){return r.max(r.map(t.nodes(),function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n}))}t.exports={addDummyNode:o,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,u=t.width/2,c=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),function(){return[]});return r.forEach(t.nodes(),function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)}),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank}));r.forEach(t.nodes(),function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)})},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank})),n=[];r.forEach(t.nodes(),function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)});var i=0,o=t.graph().nodeRankFactor;r.forEach(n,function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,function(e){t.node(e).rank+=i})})},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(t,"border",i,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},32862:function(t){t.exports="0.8.5"},54204:function(t,e,n){var r=n(97078);t.exports={Graph:r.Graph,json:n(2063),alg:n(29790),version:r.version}},66451:function(t,e,n){var r=n(77241);t.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),function(t){e=[],o(t),e.length&&i.push(e)}),i}},70485:function(t,e,n){var r=n(77241);function i(t,e,n,o,a,s){r.has(o,e)||(o[e]=!0,n||s.push(e),r.each(a(e),function(e){i(t,e,n,o,a,s)}),n&&s.push(e))}t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],s={};return r.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);i(t,e,"post"===n,s,o,a)}),a}},85818:function(t,e,n){var r=n(26731),i=n(77241);t.exports=function(t,e,n){return i.transform(t.nodes(),function(i,o){i[o]=r(t,o,e,n)},{})}},26731:function(t,e,n){var r=n(77241),i=n(9266);t.exports=function(t,e,n,r){return function(t,e,n,r){var o,a,s={},u=new i,c=function(t){var e=t.v!==o?t.v:t.w,r=s[e],i=n(t),c=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c0&&(o=u.removeMin(),(a=s[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return s}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},8821:function(t,e,n){var r=n(77241),i=n(45759);t.exports=function(t){return r.filter(i(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},24980:function(t,e,n){var r=n(77241);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}})}),i.forEach(function(t){var e=r[t];i.forEach(function(n){var o=r[n];i.forEach(function(n){var r=e[n],i=o[n],a=o[t].distance+r.distance;a0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(c)}return a}},45759:function(t,e,n){var r=n(77241);t.exports=function(t){var e=0,n=[],i={},o=[];function a(s){var u=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach(function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(a(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))}),u.lowlink===u.index){var c,l=[];do{c=n.pop(),i[c].onStack=!1,l.push(c)}while(s!==c);o.push(l)}}return t.nodes().forEach(function(t){r.has(i,t)||a(t)}),o}},94394:function(t,e,n){var r=n(77241);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),function a(s){if(r.has(n,s))throw new o;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],i.push(s))}),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=new Error},9266:function(t,e,n){var r=n(77241);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(t){return t.key})},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].prioritya){var s=o;o=a,a=s}return o+"\x01"+a+"\x01"+(r.isUndefined(i)?"\0":i)}function u(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}function c(t,e){return s(t,e.v,e.w,e.name)}t.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._in[e])})},i.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._out[e])})},i.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,function(t){n.length>1?i.setNode(t,e):i.setNode(t)}),this},i.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return r.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},i.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),r.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var i={};function o(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(e.nodes(),function(t){e.setParent(t,o(t))}),e},i.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r}),this},i.prototype.setEdge=function(){var t,e,n,i,a=!1,c=arguments[0];"object"==typeof c&&null!==c&&"v"in c?(t=c.v,e=c.w,n=c.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=c,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var l=s(this._isDirected,t,e,n);if(r.has(this._edgeLabels,l))return a&&(this._edgeLabels[l]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=a?i:this._defaultEdgeLabelFn(t,e,n);var h=u(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},i.prototype.edge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.v===e}):i}},i.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.w===e}):i}},i.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},97078:function(t,e,n){t.exports={Graph:n(10179),version:n(57160)}},2063:function(t,e,n){var r=n(77241),i=n(10179);function o(t){return r.map(t.nodes(),function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o})}function a(t){return r.map(t.edges(),function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i})}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),r.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},77241:function(t,e,n){var r;try{r={clone:n(7063),constant:n(60583),each:n(97635),filter:n(9673),has:n(71645),isArray:n(47712),isEmpty:n(19129),isFunction:n(70458),isUndefined:n(96075),keys:n(48600),map:n(86169),reduce:n(37442),size:n(26809),transform:n(86987),union:n(50875),values:n(95041)}}catch(i){}r||(r=window._),t.exports=r},57160:function(t){t.exports="2.1.8"},22550:function(t,e,n){var r=n(31311)(n(58568),"DataView");t.exports=r},27868:function(t,e,n){var r=n(18944),i=n(18790),o=n(40218),a=n(80072),s=n(3575);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}},5724:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r0&&o(l)?n>1?t(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},48486:function(t,e,n){var r=n(43999)();t.exports=r},79941:function(t,e,n){var r=n(48486),i=n(48600);t.exports=function(t,e){return t&&r(t,e,i)}},91338:function(t,e,n){var r=n(21813),i=n(71241);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&ne}},50018:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},29828:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},37551:function(t,e,n){var r=n(72322),i=n(32564),o=n(39920);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},80561:function(t,e,n){var r=n(3219),i=n(3902);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},31999:function(t,e,n){var r=n(47690),i=n(3902);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},47690:function(t,e,n){var r=n(30964),i=n(49642),o=n(97868),a=n(85234),s=n(32234),u=n(47712),c=n(80354),l=n(51156),h="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,p,g){var m=u(t),v=u(e),y=m?"[object Array]":s(t),_=v?"[object Array]":s(e),w=(y="[object Arguments]"==y?h:y)==h,b=(_="[object Arguments]"==_?h:_)==h,x=y==_;if(x&&c(t)){if(!c(e))return!1;m=!0,w=!1}if(x&&!w)return g||(g=new r),m||l(t)?i(t,e,n,d,p,g):o(t,e,y,n,d,p,g);if(!(1&n)){var E=w&&f.call(t,"__wrapped__"),T=b&&f.call(e,"__wrapped__");if(E||T){var A=E?t.value():t,S=T?e.value():e;return g||(g=new r),p(A,S,n,d,g)}}return!!x&&(g||(g=new r),a(t,e,n,d,p,g))}},75080:function(t,e,n){var r=n(32234),i=n(3902);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},16050:function(t,e,n){var r=n(30964),i=n(31999);t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a=200){var g=e?null:s(t);if(g)return u(g);f=!1,l=a,p=new r}else p=e?[]:d;t:for(;++ce||a&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!l&&t=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},49327:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r-1?s[u?e[c]:c]:void 0}}},15395:function(t,e,n){var r=n(49727),i=n(10139),o=n(56016);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?el))return!1;var f=u.get(t),d=u.get(e);if(f&&d)return f==e&&d==t;var p=-1,g=!0,m=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p-1&&t%1==0&&t-1}},2154:function(t,e,n){var r=n(67477);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},58289:function(t,e,n){var r=n(27868),i=n(58170),o=n(6647);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},19581:function(t,e,n){var r=n(65810);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},61608:function(t,e,n){var r=n(65810);t.exports=function(t){return r(this,t).get(t)}},8901:function(t,e,n){var r=n(65810);t.exports=function(t){return r(this,t).has(t)}},12399:function(t,e,n){var r=n(65810);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},95622:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},96878:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},94667:function(t,e,n){var r=n(74884);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},54263:function(t,e,n){var r=n(31311)(Object,"create");t.exports=r},75427:function(t,e,n){var r=n(11621)(Object.keys,Object);t.exports=r},3601:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},80166:function(t,e,n){t=n.nmd(t);var r=n(52127),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},91059:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},11621:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},90877:function(t,e,n){var r=n(86932),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},31816:function(t,e,n){var r=n(58170);t.exports=function(){this.__data__=new r,this.size=0}},86246:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},95499:function(t){t.exports=function(t){return this.__data__.get(t)}},17114:function(t){t.exports=function(t){return this.__data__.has(t)}},68677:function(t,e,n){var r=n(58170),i=n(6647),o=n(98856);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},39920:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n-1&&t%1==0&&t<=9007199254740991}},49333:function(t,e,n){var r=n(75080),i=n(97633),o=n(80166),a=o&&o.isMap,s=a?i(a):r;t.exports=s},17305:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3902:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},7629:function(t,e,n){var r=n(3219),i=n(45410),o=n(3902),a=Function.prototype.toString,s=Object.prototype.hasOwnProperty,u=a.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==u}},8274:function(t,e,n){var r=n(15104),i=n(97633),o=n(80166),a=o&&o.isSet,s=a?i(a):r;t.exports=s},27764:function(t,e,n){var r=n(3219),i=n(47712),o=n(3902);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},30419:function(t,e,n){var r=n(3219),i=n(3902);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},51156:function(t,e,n){var r=n(94154),i=n(97633),o=n(80166),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},96075:function(t){t.exports=function(t){return void 0===t}},48600:function(t,e,n){var r=n(48421),i=n(97272),o=n(9140);t.exports=function(t){return o(t)?r(t):i(t)}},10752:function(t,e,n){var r=n(48421),i=n(40623),o=n(9140);t.exports=function(t){return o(t)?r(t,!0):i(t)}},83074:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},86169:function(t,e,n){var r=n(20529),i=n(82617),o=n(26091),a=n(47712);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},7301:function(t,e,n){var r=n(61216),i=n(79941),o=n(82617);t.exports=function(t,e){var n={};return e=o(e,3),i(t,function(t,i,o){r(n,i,e(t,i,o))}),n}},11653:function(t,e,n){var r=n(91241),i=n(98109),o=n(19903);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},74884:function(t,e,n){var r=n(98856);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},81940:function(t,e,n){var r=n(75705),i=n(57082)(function(t,e,n){r(t,e,n)});t.exports=i},47983:function(t,e,n){var r=n(91241),i=n(69661),o=n(19903);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},42707:function(t,e,n){var r=n(91241),i=n(82617),o=n(69661);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},15533:function(t){t.exports=function(){}},41396:function(t,e,n){var r=n(58568);t.exports=function(){return r.Date.now()}},28891:function(t,e,n){var r=n(14964),i=n(9771)(function(t,e){return null==t?{}:r(t,e)});t.exports=i},57675:function(t,e,n){var r=n(80087),i=n(47044),o=n(46149),a=n(71241);t.exports=function(t){return o(t)?r(a(t)):i(t)}},79289:function(t,e,n){var r=n(15395)();t.exports=r},37442:function(t,e,n){var r=n(27971),i=n(43079),o=n(82617),a=n(95482),s=n(47712);t.exports=function(t,e,n){var u=s(t)?r:a,c=arguments.length<3;return u(t,o(e,4),n,c,i)}},26809:function(t,e,n){var r=n(97272),i=n(32234),o=n(9140),a=n(27764),s=n(3941);t.exports=function(t){if(null==t)return 0;if(o(t))return a(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},36272:function(t,e,n){var r=n(9555),i=n(22824),o=n(37165),a=n(10139),s=o(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])});t.exports=s},20668:function(t){t.exports=function(){return[]}},1950:function(t){t.exports=function(){return!1}},56016:function(t,e,n){var r=n(68135);t.exports=function(t){return t?1/0===(t=r(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},82748:function(t,e,n){var r=n(56016);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},68135:function(t,e,n){var r=n(94530),i=n(17305),o=n(30419),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},65208:function(t,e,n){var r=n(79399),i=n(10752);t.exports=function(t){return r(t,i(t))}},89196:function(t,e,n){var r=n(17667);t.exports=function(t){return null==t?"":r(t)}},86987:function(t,e,n){var r=n(41492),i=n(56004),o=n(79941),a=n(82617),s=n(45410),u=n(47712),c=n(80354),l=n(70458),h=n(17305),f=n(51156);t.exports=function(t,e,n){var d=u(t),p=d||c(t)||f(t);if(e=a(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:h(t)&&l(g)?i(s(t)):{}}return(p?r:o)(t,function(t,r,i){return e(n,t,r,i)}),n}},50875:function(t,e,n){var r=n(9555),i=n(37165),o=n(66833),a=n(56633),s=i(function(t){return o(r(t,1,a,!0))});t.exports=s},83798:function(t,e,n){var r=n(89196),i=0;t.exports=function(t){var e=++i;return r(t)+e}},95041:function(t,e,n){var r=n(10744),i=n(48600);t.exports=function(t){return null==t?[]:r(t,i(t))}},3393:function(t,e,n){var r=n(25823),i=n(60170);t.exports=function(t,e){return i(t||[],e||[],r)}},41282:function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(69812)),r(n(65098)),r(n(59895)),r(n(13408)),r(n(66082)),r(n(33839)),r(n(51390)),r(n(83807)),r(n(24232)),r(n(22267)),r(n(741)),r(n(21539)),r(n(97002)),r(n(99147)),r(n(70980)),r(n(96684))},69812:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390),a=function(t){function e(e){var n=t.call(this)||this,r=e;return r.trigger&&(n.trigger=r.trigger),r.kick&&(n.kick=r.kick),r.drag&&(n.drag=r.drag),r.on&&(n.on=r.on),n.dragstart=n.dragStart=o.Layout.dragStart,n.dragend=n.dragEnd=o.Layout.dragEnd,n}return i(e,t),e.prototype.trigger=function(t){},e.prototype.kick=function(){},e.prototype.drag=function(){},e.prototype.on=function(t,e){return this},e}(o.Layout);e.LayoutAdaptor=a,e.adaptor=function(t){return new a(t)}},96684:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51390),i=n(66082);e.gridify=function(t,e,n,r){return t.cola.start(0,0,0,10,!1),function(t,e,n,r){t.forEach(function(t){t.routerNode={name:t.name,bounds:t.bounds.inflate(-n)}}),e.forEach(function(e){e.routerNode={bounds:e.bounds.inflate(-r),children:(void 0!==e.groups?e.groups.map(function(e){return t.length+e.id}):[]).concat(void 0!==e.leaves?e.leaves.map(function(t){return t.index}):[])}});var o=t.concat(e).map(function(t,e){return t.routerNode.id=e,t.routerNode});return new i.GridRouter(o,{getChildren:function(t){return t.children},getBounds:function(t){return t.bounds}},n-r)}(t.cola.nodes(),t.cola.groups(),n,r).routeEdges(t.powerGraph.powerEdges,e,function(t){return t.source.routerNode.id},function(t){return t.target.routerNode.id})},e.powerGraphGridLayout=function(t,e,n){var i;t.nodes.forEach(function(t,e){return t.index=e}),(new r.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(t){(i=t).groups.forEach(function(t){return t.padding=n})});var o=t.nodes.length,a=[],s=t.nodes.slice(0);return s.forEach(function(t,e){return t.index=e}),i.groups.forEach(function(t){var e=t.index=t.id+o;s.push(t),void 0!==t.leaves&&t.leaves.forEach(function(t){return a.push({source:e,target:t.index})}),void 0!==t.groups&&t.groups.forEach(function(t){return a.push({source:e,target:t.id+o})})}),i.powerEdges.forEach(function(t){a.push({source:t.source.index,target:t.target.index})}),(new r.Layout).size(e).nodes(s).links(a).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new r.Layout).convergenceThreshold(.001).size(e).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(t){(i=t).groups.forEach(function(t){t.padding=n})}).start(50,0,100,0,!1),powerGraph:i}}},65098:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29738),i=n(62834);e.d3adaptor=function(t){return!t||function(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new r.D3StyleLayoutAdaptor:new i.D3StyleLayoutAdaptor(t)}},29738:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390),a=function(t){function e(){var e=t.call(this)||this;e.event=d3.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var n=e;return e.drag=function(){if(!t)var t=d3.behavior.drag().origin(o.Layout.dragOrigin).on("dragstart.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,d3.event),n.resume()}).on("dragend.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;this.call(t)},e}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event[e.type](e)},e.prototype.kick=function(){var e=this;d3.timer(function(){return t.prototype.tick.call(e)})},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout);e.D3StyleLayoutAdaptor=a,e.d3adaptor=function(){return new a}},62834:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390);e.D3StyleLayoutAdaptor=function(t){function e(e){var n=t.call(this)||this;n.d3Context=e,n.event=e.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var r=n;return n.drag=function(){if(!t)var t=e.drag().subject(o.Layout.dragOrigin).on("start.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,e.event),r.resume()}).on("end.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;arguments[0].call(t)},n}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(e.type,e)},e.prototype.kick=function(){var e=this,n=this.d3Context.timer(function(){return t.prototype.tick.call(e)&&n.stop()})},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout)},59895:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.locks={}}return t.prototype.add=function(t,e){this.locks[t]=e},t.prototype.clear=function(){this.locks={}},t.prototype.isEmpty=function(){for(var t in this.locks)return!1;return!0},t.prototype.apply=function(t){for(var e in this.locks)t(Number(e),this.locks[e])},t}();e.Locks=n,e.Descent=function(){function t(t,e,i){void 0===i&&(i=null),this.D=e,this.G=i,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new r,this.project=null,this.x=t,this.k=t.length;var o=this.n=t[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 n,this.minD=Number.MAX_VALUE;for(var a,s=o;s--;)for(a=o;--a>s;){var u=e[s][a];u>0&&u1e-9)break;var d=this.offsetDir();for(r=0;r1&&p>g||!isFinite(g))for(r=0;r1&&(m=1);var v=g*g,y=2*m*(p-g)/(v*p),_=p*p*p,w=2*-m/(v*_);for(isFinite(y)||console.log(y),r=0;r0?A-(C+1)*x:A-(C-1)*x)&&f<=b&&(this.scaleSnapByMaxH?(this.g[r][u]+=s*E*f,this.H[r][u][u]+=s*E):(this.g[r][u]+=E*f,this.H[r][u][u]+=E))}this.locks.isEmpty()||this.locks.apply(function(n,i){for(r=0;r0;)for(var i=e;i-- >0;)n(r,i)},t.prototype.matrixApply=function(e){t.mApply(this.k,this.n,e)},t.prototype.computeNextPosition=function(t,e){var n=this;this.computeDerivatives(t);var r=this.computeStepSize(this.g);if(this.stepAndProject(t,e,this.g,r),this.project){this.matrixApply(function(r,i){return n.e[r][i]=t[r][i]-e[r][i]});var i=this.computeStepSize(this.e);i=Math.max(.2,Math.min(i,1)),this.stepAndProject(t,e,this.e,i)}},t.prototype.run=function(t){for(var e=Number.MAX_VALUE,n=!1;!n&&t-- >0;){var r=this.rungeKutta();n=Math.abs(e/r-1)>16)/this.range},t.prototype.getNextBetween=function(t,e){return t+this.getNext()*(e-t)},t}();e.PseudoRandom=r},13408:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(97002),a=function(){return function(){}}();e.Point=a;var s=function(){return function(t,e,n,r){this.x1=t,this.y1=e,this.x2=n,this.y2=r}}();function u(t,e,n){return(e.x-t.x)*(n.y-t.y)-(n.x-t.x)*(e.y-t.y)}function c(t,e,n){return u(t,e,n)>0}function l(t,e,n){return u(t,e,n)<0}function h(t,e){var n,r,i,o,a=e.length-1;if(l(t,e[1],e[0])&&!c(t,e[a-1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return c(t,e[n],e[r])?n:r;if((o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]))&&!c(t,e[i-1],e[i]))return i;c(t,e[n+1],e[n])?o||c(t,e[n],e[i])?r=i:n=i:o&&l(t,e[n],e[i])?r=i:n=i}}function f(t,e){var n,r,i,o,a=e.length-1;if(c(t,e[a-1],e[0])&&!l(t,e[1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return l(t,e[n],e[r])?n:r;if(o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]),c(t,e[i-1],e[i])&&!o)return i;l(t,e[n+1],e[n])?o?l(t,e[n],e[i])?r=i:n=i:r=i:o?n=i:c(t,e[n],e[i])?r=i:n=i}}function d(t,e,n,r,i,o){var a,s;s=r(t[a=n(e[0],t)],e);for(var u=!1;!u;){for(u=!0;a===t.length-1&&(a=0),!i(e[s],t[a],t[a+1]);)++a;for(;0===s&&(s=e.length-1),!o(t[a],e[s],e[s-1]);)--s,u=!1}return{t1:a,t2:s}}function p(t,e){return d(t,e,h,f,c,l)}e.LineSegment=s,e.PolyPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a),e.isLeft=u,e.ConvexHull=function(t){var e,n=t.slice(0).sort(function(t,e){return t.x!==e.x?e.x-t.x:e.y-t.y}),r=t.length,i=n[0].x;for(e=1;e=0&&n[e].x===l;e--);for(s=e+1,e=o;++e<=s;)if(!(u(n[0],n[s],n[e])>=0&&e1&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}c!=s&&a.push(n[c]);var h=a.length;for(e=s;--e>=o;)if(!(u(n[c],n[o],n[e])>=0&&e>o)){for(;a.length>h&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}}return a},e.clockwiseRadialSweep=function(t,e,n){e.slice(0).sort(function(e,n){return Math.atan2(e.y-t.y,e.x-t.x)-Math.atan2(n.y-t.y,n.x-t.x)}).forEach(n)},e.tangent_PolyPolyC=d,e.LRtangent_PolyPolyC=function(t,e){var n=p(e,t);return{t1:n.t2,t2:n.t1}},e.RLtangent_PolyPolyC=p,e.LLtangent_PolyPolyC=function(t,e){return d(t,e,f,f,l,l)},e.RRtangent_PolyPolyC=function(t,e){return d(t,e,h,h,c,c)};var g=function(){return function(t,e){this.t1=t,this.t2=e}}();e.BiTangent=g;var m=function(){return function(){}}();e.BiTangents=m,e.TVGPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a);var v=function(){return function(t,e,n,r){this.id=t,this.polyid=e,this.polyvertid=n,this.p=r,r.vv=this}}();e.VisibilityVertex=v;var y=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,e=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+e*e)},t}();function _(t,e){for(var n=[],r=1,i=e.length;r=0&&v>=0&&y<0&&_>=0&&w>=0&&b<0?i.ll=new g(o,a):p<=0&&v<=0&&y>0&&_<=0&&w<=0&&b>0?i.rr=new g(o,a):p<=0&&v>0&&y<=0&&_>=0&&w<0&&b>=0?i.rl=new g(o,a):p>=0&&v<0&&y>=0&&_<=0&&w>0&&b<=0&&(i.lr=new g(o,a))}return i}function b(t,e){return!t.every(function(t){return!function(t,e){for(var n=1,r=e.length;n0&&this.E.push(new y(i[o-1].vv,a))}i.length>1&&this.E.push(new y(i[0].vv,i[i.length-1].vv))}for(r=0;r0)return!0;return!1},t}(),e.tangents=w,e.polysOverlap=function(t,e){if(b(t,e))return!0;if(b(e,t))return!0;for(var n=1,r=t.length;n0)return!0}return!1}},66082:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(97002),i=n(70980),o=n(99147),a=function(){return function(t,e,n){this.id=t,this.rect=e,this.children=n,this.leaf=void 0===n||0===n.length}}();e.NodeWrapper=a;var s=function(){return function(t,e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),this.id=t,this.x=e,this.y=n,this.node=r,this.line=i}}();e.Vert=s;var u=function(){function t(e,n){this.s=e,this.t=n;var r=t.findMatch(e,n),i=n.slice(0).reverse(),o=t.findMatch(e,i);r.length>=o.length?(this.length=r.length,this.si=r.si,this.ti=r.ti,this.reversed=!1):(this.length=o.length,this.si=o.si,this.ti=n.length-o.ti-o.length,this.reversed=!0)}return t.findMatch=function(t,e){for(var n=t.length,r=e.length,i={length:0,si:-1,ti:-1},o=new Array(n),a=0;ai.length&&(i.length=u,i.si=a-u+1,i.ti=s-u+1)}else o[a][s]=0}return i},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();e.LongestCommonSubsequence=u,e.GridRouter=function(){function t(t,e,n){var i=this;void 0===n&&(n=12),this.originalnodes=t,this.groupPadding=n,this.leaves=null,this.nodes=t.map(function(t,n){return new a(n,e.getBounds(t),e.getChildren(t))}),this.leaves=this.nodes.filter(function(t){return t.leaf}),this.groups=this.nodes.filter(function(t){return!t.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(t){return t.children.forEach(function(e){return i.nodes[e].parent=t})}),this.root={children:[]},this.nodes.forEach(function(t){void 0===t.parent&&(t.parent=i.root,i.root.children.push(t.id)),t.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(t,e){return i.getDepth(t)-i.getDepth(e)}),this.backToFront.slice(0).reverse().filter(function(t){return!t.leaf}).forEach(function(t){var e=r.Rectangle.empty();t.children.forEach(function(t){return e=e.union(i.nodes[t].rect)}),t.rect=e.inflate(i.groupPadding)});var o=this.midPoints(this.cols.map(function(t){return t.pos})),u=this.midPoints(this.rows.map(function(t){return t.pos})),c=o[0],l=o[o.length-1],h=u[0],f=u[u.length-1],d=this.rows.map(function(t){return{x1:c,x2:l,y1:t.pos,y2:t.pos}}).concat(u.map(function(t){return{x1:c,x2:l,y1:t,y2:t}})),p=this.cols.map(function(t){return{x1:t.pos,x2:t.pos,y1:h,y2:f}}).concat(o.map(function(t){return{x1:t,x2:t,y1:h,y2:f}})),g=d.concat(p);g.forEach(function(t){return t.verts=[]}),this.verts=[],this.edges=[],d.forEach(function(t){return p.forEach(function(e){var n=new s(i.verts.length,e.x1,t.y1);t.verts.push(n),e.verts.push(n),i.verts.push(n);for(var r=i.backToFront.length;r-- >0;){var o=i.backToFront[r],a=o.rect,u=Math.abs(n.x-a.cx()),c=Math.abs(n.y-a.cy());if(u0;){var r=n.filter(function(e){return e.rect["overlap"+t.toUpperCase()](n[0].rect)}),i={nodes:r,pos:this.avg(r.map(function(e){return e.rect["c"+t]()}))};e.push(i),i.nodes.forEach(function(t){return n.splice(n.indexOf(t),1)})}return e.sort(function(t,e){return t.pos-e.pos}),e},t.prototype.getDepth=function(t){for(var e=0;t.parent!==this.root;)e++,t=t.parent;return e},t.prototype.midPoints=function(t){for(var e=t[1]-t[0],n=[t[0]-e/2],r=1;r.1)&&s.push(u={pos:l[0][e],segments:[]}),u.segments.push(l)}return s},t.nudgeSegs=function(t,e,n,r,o,a){var s=r.length;if(!(s<=1)){for(var u=r.map(function(e){return new i.Variable(e[0][t])}),c=[],l=0;l=0&&c.push(new i.Constraint(u[g],u[m],a))}new i.Solver(u,c).solve(),u.forEach(function(e,i){var o=r[i],a=e.position();o[0][t]=o[1][t]=a;var s=n[o.edgeid];o.i>0&&(s[o.i-1][1][t]=a),o.iMath.PI||i<-Math.PI)&&(i=r-n),i},t.isLeft=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)<=0},t.getOrder=function(t){for(var e={},n=0;n=c.length||h.ti+h.length>=l.length)?n.push({l:r,r:i}):(h.si+h.length>=c.length||h.ti+h.length>=l.length?(o=c[h.si+1],s=c[h.si-1],a=l[h.ti-1]):(o=c[h.si+h.length-2],a=c[h.si+h.length],s=l[h.ti+h.length]),t.isLeft(o,a,s)?n.push({l:i,r}):n.push({l:r,r:i})))}return t.getOrder(n)},t.makeSegments=function(t){function e(t){return{x:t.x,y:t.y}}for(var n=function(t,e,n){return Math.abs((e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x))<.001},r=[],i=e(t[0]),o=1;o1&&l>1?1e3:0}).reverse().map(function(t){return n.verts[t]});return u.push(this.nodes[i.id].ports[0]),u.filter(function(t,e){return!(e0&&t.node===i&&u[e-1].node===i)})},t.getRoutePath=function(e,n,r,i){var o,a,s,u,c,l={routepath:"M "+e[0][0].x+" "+e[0][0].y+" ",arrowpath:""};if(e.length>1)for(var h=0;h0?a-=f/Math.abs(f)*n:s-=d/Math.abs(d)*n,l.routepath+="L "+a+" "+s+" ";var p=e[h+1],g=p[0].x,m=p[0].y;f=p[1].x-g,d=p[1].y-m;var v,y,_=t.angleBetween2Lines(o,p)<0?1:0;Math.abs(f)>0?(v=g+f/Math.abs(f)*n,y=m):(v=g,y=m+d/Math.abs(d)*n);var w=Math.abs(v-a),b=Math.abs(y-s);l.routepath+="A "+w+" "+b+" 0 0 "+_+" "+v+" "+y+" "}else{var x=[a,s];Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1])}}else f=(a=(o=e[0])[1].x)-o[0].x,d=(s=o[1].y)-o[0].y,x=[a,s],Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1]);return l},t}()},33839:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(1+Math.sqrt(5))/2;e.applyPacking=function(t,e,r,i,o,a){void 0===o&&(o=1),void 0===a&&(a=!0);var s=e,u=r,c=(o=void 0!==o?o:1,i=void 0!==i?i:0,0),l=0,h=0,f=0,d=[];function p(t,e){d=[],c=0,l=0,f=0;for(var n=0;n=t.height&&d[r].x+d[r].width+t.width+10-e<=1e-4){n=d[r];break}d.push(t),void 0!==n?(t.x=n.x+n.width+10,t.y=n.bottom,t.space_left=t.height,t.bottom=t.y,n.space_left-=t.height+10,n.bottom+=t.height+10):(t.y=f,f+=t.height+10,t.x=0,t.bottom=t.y,t.space_left=t.height),t.y+t.height-l>-1e-4&&(l=t.y+t.height-0),t.x+t.width-c>-1e-4&&(c=t.x+t.width-0)}0!=t.length&&(function(t){t.forEach(function(t){var e,n,r,o,a;e=t,n=Number.MAX_VALUE,r=Number.MAX_VALUE,o=0,a=0,e.array.forEach(function(t){var e=void 0!==t.width?t.width:i,s=void 0!==t.height?t.height:i;e/=2,s/=2,o=Math.max(t.x+e,o),n=Math.min(t.x-e,n),a=Math.max(t.y+s,a),r=Math.min(t.y-s,r)}),e.width=o-n,e.height=a-r})}(t),function(t,e){var r=Number.POSITIVE_INFINITY,i=0;t.sort(function(t,e){return e.height-t.height});for(var o=g=h=t.reduce(function(t,e){return t.widthh||d>1e-4;){if(1!=l){var g=a-(a-o)/n;u=p(t,g)}if(0!=l){var m=o+(a-o)/n;c=p(t,m)}if(f=Math.abs(g-m),d=Math.abs(u-c),uc?(o=g,g=m,u=c,l=1):(a=m,m=g,c=u,l=0),s++>100)break}p(t,i)}(t),a&&function(t){t.forEach(function(t){var e={x:0,y:0};t.array.forEach(function(t){e.x+=t.x,e.y+=t.y}),e.x/=t.array.length,e.y/=t.array.length;var n=t.x-(e.x-t.width/2)+s/2-c/2,r=t.y-(e.y-t.height/2)+u/2-l/2;t.array.forEach(function(t){t.x+=n,t.y+=r})})}(t))},e.separateGraphs=function(t,e){for(var n={},r={},i=[],o=0,a=0;a0){var e=0;this._links.forEach(function(t){e=Math.max(e,t.source,t.target)}),this._nodes=new Array(++e);for(var n=0;n0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,e){t.length=e},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return i.symmetricDiffLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.jaccardLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return i.jaccardLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.start=function(e,n,r,u,c,l){var h=this;void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===c&&(c=!0),void 0===l&&(l=!0);var f,d=this.nodes().length,p=d+2*this._groups.length,g=this._canvasSize[0],m=this._canvasSize[1],v=new Array(p),y=new Array(p),_=null,w=this._avoidOverlaps;this._nodes.forEach(function(t,e){t.index=e,void 0===t.x&&(t.x=g/2,t.y=m/2),v[e]=t.x,y[e]=t.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?f=this._distanceMatrix:(f=new s.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,function(t){return h.getLinkLength(t)}).DistanceMatrix(),_=o.Descent.createSquareMatrix(p,function(){return 2}),this._links.forEach(function(t){"number"==typeof t.source&&(t.source=h._nodes[t.source]),"number"==typeof t.target&&(t.target=h._nodes[t.target])}),this._links.forEach(function(e){var n=t.getSourceIndex(e),r=t.getTargetIndex(e);_[n][r]=_[r][n]=e.weight||1}));var b=o.Descent.createSquareMatrix(p,function(t,e){return f[t][e]});if(this._rootGroup&&void 0!==this._rootGroup.groups){var x=d;this._groups.forEach(function(t){!function(t,e,n,r){_[t][e]=_[e][t]=n,b[t][e]=b[e][t]=.1}(x,x+1,h._groupCompactness),v[x]=0,y[x++]=0,v[x]=0,y[x++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var E=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,E=E.concat(i.generateDirectedEdgeConstraints(d,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new o.Descent([v,y],b),this._descent.locks.clear(),x=0;x0&&(this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E).projectFunctions()),this._descent.run(n),this.separateOverlappingComponents(g,m,l),this.avoidOverlaps(w),w&&(this._nodes.forEach(function(t,e){t.x=v[e],t.y=y[e]}),this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E,!0).projectFunctions(),this._nodes.forEach(function(t,e){v[e]=t.x,y[e]=t.y})),this._descent.G=_,this._descent.run(r),u){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=d,this._descent.scaleSnapByMaxH=d!=p;var A=o.Descent.createSquareMatrix(p,function(t,e){return t>=d||e>=d?_[t][e]:0});this._descent.G=A,this._descent.run(u)}return this.updateNodePositions(),this.separateOverlappingComponents(g,m,l),c?this.resume():this},t.prototype.initialLayout=function(e,n,r){if(this._groups.length>0&&e>0){var i=this._nodes.length,o=this._links.map(function(t){return{source:t.source.index,target:t.target.index}}),a=this._nodes.map(function(t){return{index:t.index}});this._groups.forEach(function(t,e){a.push({index:t.index=i+e})}),this._groups.forEach(function(t,e){void 0!==t.leaves&&t.leaves.forEach(function(e){return o.push({source:t.index,target:e.index})}),void 0!==t.groups&&t.groups.forEach(function(e){return o.push({source:t.index,target:e.index})})}),(new t).size(this.size()).nodes(a).links(o).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(e,0,0,0,!1),this._nodes.forEach(function(t){n[t.index]=a[t.index].x,r[t.index]=a[t.index].y})}else this._descent.run(e)},t.prototype.separateOverlappingComponents=function(t,e,n){var r=this;if(void 0===n&&(n=!0),!this._distanceMatrix&&this._handleDisconnected){var i=this._descent.x[0],o=this._descent.x[1];this._nodes.forEach(function(t,e){t.x=i[e],t.y=o[e]});var a=c.separateGraphs(this._nodes,this._links);c.applyPacking(a,t,e,this._defaultNodeSize,1,n),this._nodes.forEach(function(t,e){r._descent.x[0][e]=t.x,r._descent.x[1][e]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))})}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new u.TangentVisibilityGraph(this._nodes.map(function(e){return e.bounds.inflate(-t).vertices()}))},t.prototype.routeEdge=function(t,e,n){void 0===e&&(e=5);var r=[],i=new u.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),o={x:t.source.x,y:t.source.y},c={x:t.target.x,y:t.target.y},l=i.addPoint(o,t.source.index),h=i.addPoint(c,t.target.index);i.addEdgeIfVisible(o,c,t.source.index,t.target.index),void 0!==n&&n(i);var f=new s.Calculator(i.V.length,i.E,function(t){return t.source.id},function(t){return t.target.id},function(t){return t.length()}).PathFromNodeToNode(l.id,h.id);if(1===f.length||f.length===i.V.length){var d=a.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,e);r=[d.sourceIntersection,d.arrowStart]}else{for(var p=f.length-2,g=i.V[f[p]].p,m=i.V[f[0]].p,v=(r=[t.source.innerBounds.rayIntersection(g.x,g.y)],p);v>=0;--v)r.push(i.V[f[v]].p);r.push(a.makeEdgeTo(m,t.target.innerBounds,e))}return r},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(e){return t.getSourceIndex(e)+"-"+t.getTargetIndex(e)},t.dragStart=function(e){h(e)?t.storeOffset(e,t.dragOrigin(e)):(t.stopNode(e),e.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(e,n){void 0!==e.leaves&&e.leaves.forEach(function(e){e.fixed|=2,t.stopNode(e),e._dragGroupOffsetX=e.x-n.x,e._dragGroupOffsetY=e.y-n.y}),void 0!==e.groups&&e.groups.forEach(function(e){return t.storeOffset(e,n)})},t.dragOrigin=function(t){return h(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(e,n){h(e)?(void 0!==e.leaves&&e.leaves.forEach(function(t){e.bounds.setXCentre(n.x),e.bounds.setYCentre(n.y),t.px=t._dragGroupOffsetX+n.x,t.py=t._dragGroupOffsetY+n.y}),void 0!==e.groups&&e.groups.forEach(function(e){return t.drag(e,n)})):(e.px=n.x,e.py=n.y)},t.dragEnd=function(e){h(e)?(void 0!==e.leaves&&e.leaves.forEach(function(e){t.dragEnd(e),delete e._dragGroupOffsetX,delete e._dragGroupOffsetY}),void 0!==e.groups&&e.groups.forEach(t.dragEnd)):e.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}()},83807:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(99147),i=n(59895),o=n(97002),a=n(24232);e.Link3D=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.actualLength=function(t){var e=this;return Math.sqrt(t.reduce(function(t,n){var r=n[e.target]-n[e.source];return t+r*r},0))},t}(),e.Node3D=function(){return function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=e,this.z=n}}(),e.Layout3D=function(){function t(e,n,r){var i=this;void 0===r&&(r=1),this.nodes=e,this.links=n,this.idealLinkLength=r,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var o=0;o=this.R))return this.merge(e.a,e.b,t),!0}},t.prototype.nEdges=function(t,e){var n=t.incoming.intersection(e.incoming),r=t.outgoing.intersection(e.outgoing);return this.R-n.count()-r.count()},t.prototype.getGroupHierarchy=function(t){var e=this,r=[];return i(this.roots[0],{},r),this.allEdges().forEach(function(i){var o=e.modules[i.source],a=e.modules[i.target];t.push(new n(void 0===o.gid?i.source:r[o.gid],void 0===a.gid?i.target:r[a.gid],i.type))}),r},t.prototype.allEdges=function(){var e=[];return t.getEdges(this.roots[0],e),e},t.getEdges=function(e,n){e.forAll(function(e){e.getEdges(n),t.getEdges(e.children,n)})},t}();function i(t,e,n){t.forAll(function(t){if(t.isLeaf())e.leaves||(e.leaves=[]),e.leaves.push(t.id);else{var r=e;if(t.gid=n.length,!t.isIsland()||t.isPredefined()){if(r={id:t.gid},t.isPredefined())for(var o in t.definition)r[o]=t.definition[o];e.groups||(e.groups=[]),e.groups.push(t.gid),n.push(r)}i(t.children,r,n)}})}e.Configuration=r;var o=function(){function t(t,e,n,r,i){void 0===e&&(e=new s),void 0===n&&(n=new s),void 0===r&&(r=new a),this.id=t,this.outgoing=e,this.incoming=n,this.children=r,this.definition=i}return t.prototype.getEdges=function(t){var e=this;this.outgoing.forAll(function(r,i){r.forAll(function(r){t.push(new n(e.id,r.id,i))})})},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return void 0!==this.definition},t}();e.Module=o;var a=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(e){var n=new t;return n.table=function(t,e){var n={};for(var r in t)r in e&&(n[r]=t[r]);return n}(this.table,e.table),n},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var e in this.table)t(this.table[e])},t.prototype.modules=function(){var t=[];return this.forAll(function(e){e.isPredefined()||t.push(e)}),t},t}();e.ModuleSet=a;var s=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var e=!1;return this.forAllModules(function(n){e||n.id!=t||(e=!0)}),e},t.prototype.add=function(t,e){(t in this.sets?this.sets[t]:this.sets[t]=new a).add(e),++this.n},t.prototype.remove=function(t,e){var n=this.sets[t];n.remove(e),0===n.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var e in this.sets)t(this.sets[e],Number(e))},t.prototype.forAllModules=function(t){this.forAll(function(e,n){return e.forAll(t)})},t.prototype.intersection=function(e){var n=new t;return this.forAll(function(t,r){if(r in e.sets){var i=t.intersection(e.sets[r]),o=i.count();o>0&&(n.sets[r]=i,n.n+=o)}}),n},t}();e.LinkSets=s,e.getGroups=function(t,e,n,i){for(var o=new r(t.length,e,n,i);o.greedyMerge(););var a=[],s=o.getGroupHierarchy(a);return a.forEach(function(e){var n=function(n){var r=e[n];"number"==typeof r&&(e[n]=t[r])};n("source"),n("target")}),{groups:s,powerEdges:a}}},741:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var e="",n=!1,r=0;r0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var e=this._root;null!==e;){var n=this._comparator(t,e.data);if(0===n)return e.data;e=e.get_child(n>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){var e=this._comparator;return this._bound(t,function(t,n){return e(n,t)})},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new o(this)},t.prototype.each=function(t){for(var e,n=this.iterator();null!==(e=n.next());)t(e)},t.prototype.reach=function(t){for(var e,n=this.iterator();null!==(e=n.prev());)t(e)},t.prototype._bound=function(t,e){for(var n=this._root,r=this.iterator();null!==n;){var i=this._comparator(t,n.data);if(0===i)return r._cursor=n,r;r._ancestors.push(n),n=n.get_child(i>0)}for(var o=r._ancestors.length-1;o>=0;--o)if(e(t,(n=r._ancestors[o]).data)>0)return r._cursor=n,r._ancestors.length=o,r;return r._ancestors.length=0,r},t}();e.TreeBase=i;var o=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else{var e;if(null===this._cursor.right)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===e);else this._ancestors.push(this._cursor),this._minNode(this._cursor.right)}return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else{var e;if(null===this._cursor.left)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===e);else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left)}return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();e.Iterator=o;var a=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,e){t?this.right=e:this.left=e},t}();e.RBTree=function(t){function e(e){var n=t.call(this)||this;return n._root=null,n._comparator=e,n.size=0,n}return r(e,t),e.prototype.insert=function(t){var n=!1;if(null===this._root)this._root=new a(t),n=!0,this.size++;else{var r=new a(void 0),i=!1,o=!1,s=null,u=r,c=null,l=this._root;for(u.right=this._root;;){if(null===l?(l=new a(t),c.set_child(i,l),n=!0,this.size++):e.is_red(l.left)&&e.is_red(l.right)&&(l.red=!0,l.left.red=!1,l.right.red=!1),e.is_red(l)&&e.is_red(c)){var h=u.right===s;l===c.get_child(o)?u.set_child(h,e.single_rotate(s,!o)):u.set_child(h,e.double_rotate(s,!o))}var f=this._comparator(l.data,t);if(0===f)break;o=i,null!==s&&(u=s),s=c,c=l,l=l.get_child(i=f<0)}this._root=r.right}return this._root.red=!1,n},e.prototype.remove=function(t){if(null===this._root)return!1;var n=new a(void 0),r=n;r.right=this._root;for(var i=null,o=null,s=null,u=!0;null!==r.get_child(u);){var c=u;o=i,i=r,r=r.get_child(u);var l=this._comparator(t,r.data);if(u=l>0,0===l&&(s=r),!e.is_red(r)&&!e.is_red(r.get_child(u)))if(e.is_red(r.get_child(!u))){var h=e.single_rotate(r,u);i.set_child(c,h),i=h}else if(!e.is_red(r.get_child(!u))){var f=i.get_child(!c);if(null!==f)if(e.is_red(f.get_child(!c))||e.is_red(f.get_child(c))){var d=o.right===i;e.is_red(f.get_child(c))?o.set_child(d,e.double_rotate(i,c)):e.is_red(f.get_child(!c))&&o.set_child(d,e.single_rotate(i,c));var p=o.get_child(d);p.red=!0,r.red=!0,p.left.red=!1,p.right.red=!1}else i.red=!1,f.red=!0,r.red=!0}}return null!==s&&(s.data=r.data,i.set_child(i.right===r,r.get_child(null===r.left)),this.size--),this._root=n.right,null!==this._root&&(this._root.red=!1),null!==s},e.is_red=function(t){return null!==t&&t.red},e.single_rotate=function(t,e){var n=t.get_child(!e);return t.set_child(!e,n.get_child(e)),n.set_child(e,t),t.red=!0,n.red=!1,n},e.double_rotate=function(t,n){return t.set_child(!n,e.single_rotate(t.get_child(!n),!n)),e.single_rotate(t,n)},e}(i)},97002:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(70980),a=n(21539);function s(t){return t.bounds=void 0!==t.leaves?t.leaves.reduce(function(t,e){return e.bounds.union(t)},u.empty()):u.empty(),void 0!==t.groups&&(t.bounds=t.groups.reduce(function(t,e){return s(e).union(t)},t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}e.computeGroupBounds=s;var u=function(){function t(t,e,n,r){this.x=t,this.X=e,this.y=n,this.Y=r}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var e=this.cx(),n=t.cx();return e<=n&&t.x0?n[0]:null},t.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}]},t.lineIntersection=function(t,e,n,r,i,o,a,s){var u=n-t,c=a-i,l=r-e,h=s-o,f=h*u-c*l;if(0==f)return null;var d=t-i,p=e-o,g=(c*p-h*d)/f,m=(u*p-l*d)/f;return g>=0&&g<=1&&m>=0&&m<=1?{x:t+g*u,y:e+g*l}:null},t.prototype.inflate=function(e){return new t(this.x-e,this.X+e,this.y-e,this.Y+e)},t}();e.Rectangle=u,e.makeEdgeBetween=function(t,e,n){var r=t.rayIntersection(e.cx(),e.cy())||{x:t.cx(),y:t.cy()},i=e.rayIntersection(t.cx(),t.cy())||{x:e.cx(),y:e.cy()},o=i.x-r.x,a=i.y-r.y,s=Math.sqrt(o*o+a*a),u=s-n;return{sourceIntersection:r,targetIntersection:i,arrowStart:{x:r.x+u*o/s,y:r.y+u*a/s}}},e.makeEdgeTo=function(t,e,n){var r=e.rayIntersection(t.x,t.y);r||(r={x:e.cx(),y:e.cy()});var i=r.x-t.x,o=r.y-t.y,a=Math.sqrt(i*i+o*o);return{x:r.x-n*i/a,y:r.y-n*o/a}};var c=function(){return function(t,e,n){this.v=t,this.r=e,this.pos=n,this.prev=f(),this.next=f()}}(),l=function(){return function(t,e,n){this.isOpen=t,this.v=e,this.pos=n}}();function h(t,e){return t.pos>e.pos?1:t.pos0&&(t[n].insert(i),i[r].insert(t))};n("next","prev"),n("prev","next")}};function g(t,e,n,r){void 0===r&&(r=!1);var i=t.padding,o=void 0!==t.groups?t.groups.length:0,a=void 0!==t.leaves?t.leaves.length:0,s=o?t.groups.reduce(function(t,r){return t.concat(g(r,e,n,!0))},[]):[],u=(r?2:0)+a+o,c=new Array(u),l=new Array(u),h=0,f=function(t,e){l[h]=t,c[h++]=e};if(r){var d=t.bounds,p=e.getCentre(d),v=e.getSize(d)/2,y=e.getOpen(d),_=e.getClose(d),w=p-v+i/2,b=p+v-i/2;t.minVar.desiredPosition=w,f(e.makeRect(y,_,w,i),t.minVar),t.maxVar.desiredPosition=b,f(e.makeRect(y,_,b,i),t.maxVar)}a&&t.leaves.forEach(function(t){return f(t.bounds,t.variable)}),o&&t.groups.forEach(function(t){var n=t.bounds;f(e.makeRect(e.getOpen(n),e.getClose(n),e.getCentre(n),e.getSize(n)),t.minVar)});var x=m(l,c,e,n);return o&&(c.forEach(function(t){t.cOut=[],t.cIn=[]}),x.forEach(function(t){t.left.cOut.push(t),t.right.cIn.push(t)}),t.groups.forEach(function(t){var n=(t.padding-e.getSize(t.bounds))/2;t.minVar.cIn.forEach(function(t){return t.gap+=n}),t.minVar.cOut.forEach(function(e){e.left=t.maxVar,e.gap+=n})})),s.concat(x)}function m(t,e,n,r){var i,a=t.length,s=2*a;console.assert(e.length>=a);var u=new Array(s);for(i=0;it[n]&&(t[n]=e)}o=t})}},t.prototype.createAlignment=function(t){var e=this,n=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var r="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach(function(t){r.push(new o.Constraint(n,e.nodes[t.node].variable,t.offset,!0))})},t.prototype.createConstraints=function(t){var e=this,n=function(t){return void 0===t.type||"separation"===t.type};this.xConstraints=t.filter(function(t){return"x"===t.axis&&n(t)}).map(function(t){return e.createSeparation(t)}),this.yConstraints=t.filter(function(t){return"y"===t.axis&&n(t)}).map(function(t){return e.createSeparation(t)}),t.filter(function(t){return"alignment"===t.type}).forEach(function(t){return e.createAlignment(t)})},t.prototype.setupVariablesAndBounds=function(t,e,n,r){this.nodes.forEach(function(i,o){i.fixed?(i.variable.weight=i.fixedWeight?i.fixedWeight:1e3,n[o]=r(i)):i.variable.weight=1;var a=(i.width||0)/2,s=(i.height||0)/2,c=t[o],l=e[o];i.bounds=new u(c-a,c+a,l-s,l+s)})},t.prototype.xProject=function(t,e,n){(this.rootGroup||this.avoidOverlaps||this.xConstraints)&&this.project(t,e,t,n,function(t){return t.px},this.xConstraints,_,function(t){return t.bounds.setXCentre(n[t.variable.index]=t.variable.position())},function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.x=e-i,t.bounds.X=r+i})},t.prototype.yProject=function(t,e,n){(this.rootGroup||this.yConstraints)&&this.project(t,e,e,n,function(t){return t.py},this.yConstraints,w,function(t){return t.bounds.setYCentre(n[t.variable.index]=t.variable.position())},function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.y=e-i,t.bounds.Y=r+i})},t.prototype.projectFunctions=function(){var t=this;return[function(e,n,r){return t.xProject(e,n,r)},function(e,n,r){return t.yProject(e,n,r)}]},t.prototype.project=function(t,e,n,r,i,o,a,u,c){this.setupVariablesAndBounds(t,e,r,i),this.rootGroup&&this.avoidOverlaps&&(s(this.rootGroup),o=o.concat(a(this.rootGroup))),this.solve(this.variables,o,n,r),this.nodes.forEach(u),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(c),s(this.rootGroup))},t.prototype.solve=function(t,e,n,r){var i=new o.Solver(t,e);i.setStartingPositions(n),i.setDesiredPositions(r),i.solve()},t}()},99147:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(741),i=function(){return function(t,e){this.id=t,this.distance=e}}(),o=function(){return function(t){this.id=t,this.neighbours=[]}}(),a=function(){return function(t,e,n){this.node=t,this.prev=e,this.d=n}}();e.Calculator=function(){function t(t,e,n,r,a){this.n=t,this.es=e,this.neighbours=new Array(this.n);for(var s=this.n;s--;)this.neighbours[s]=new o(s);for(s=this.es.length;s--;){var u=this.es[s],c=n(u),l=r(u),h=a(u);this.neighbours[c].neighbours.push(new i(l,h)),this.neighbours[l].neighbours.push(new i(c,h))}}return t.prototype.DistanceMatrix=function(){for(var t=new Array(this.n),e=0;eh&&(c.d=h,c.prev=s,n.reduceKey(c.q,c,function(t,e){return t.q=e}))}}return o},t}()},70980:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,n=t.weight;this.AB+=n*e*(t.offset/t.scale),this.AD+=n*e*t.desiredPosition,this.A2+=n*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();e.PositionStats=n;var r=function(){function t(t,e,n,r){void 0===r&&(r=!1),this.left=t,this.right=e,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=n,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();e.Constraint=r;var i=function(){function t(t,e,n){void 0===e&&(e=1),void 0===n&&(n=1),this.desiredPosition=t,this.weight=e,this.scale=n,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var n=function(n,r){return n.active&&t!==r&&e(n,r)};this.cOut.forEach(function(t){return n(t,t.right)}),this.cIn.forEach(function(t){return n(t,t.left)})},t}();e.Variable=i;var o=function(){function t(t){this.vars=[],t.offset=0,this.ps=new n(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();e.Solver=s,e.removeOverlapInOneDimension=function(t,e,n){for(var o=t.map(function(t){return new i(t.desiredCenter)}),a=[],u=t.length,c=0;c=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;++u<=n;)this._basis.point(this._beta*t[u]+(1-this._beta)*(i+(r=u/n)*a),this._beta*e[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var ze=function t(e){function n(t){return 1===e?new Fe(t):new qe(t,e)}return n.beta=function(e){return t(+e)},n}(.85),je=l(55959);function Ye(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function Be(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var Je=l(10709),Ge=l(26899),Ve=l(87254),He=l(41036),Qe=(l(92711),l(64641)),We=(l(8634),l(3031));function Xe(t){return{type:t}}function $e(t,e){return te?1:t>=e?0:NaN}function Ke(t){var e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=function(e,n){return t(e)-n},n=function(t){return function(e,n){return $e(t(e),n)}}(t)),{left:r,center:function(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);var a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}l(45161),l(38337),l(82159),["w","e"].map(Xe),["n","s"].map(Xe),["n","w","e","s","nw","ne","sw","se"].map(Xe);var tn=Math.sqrt(50),en=Math.sqrt(10),nn=Math.sqrt(2);function rn(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=tn?10:o>=en?5:o>=nn?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=tn?10:o>=en?5:o>=nn?2:1)}function on(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=tn?i*=10:o>=en?i*=5:o>=nn&&(i*=2),e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return an.setTime(+e),sn.setTime(+r),t(an),t(sn),Math.floor(n(an,sn))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var cn=un(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});cn.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?un(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):cn:null};var ln=cn,hn=un(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),fn=un(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getMinutes()}),dn=un(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),pn=un(function(t){return t.setHours(0,0,0,0)},function(t,e){return t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1});function gn(t){return un(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var vn=gn(0),mn=(gn(1),gn(2),gn(3),gn(4),gn(5),gn(6),un(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),yn=un(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});yn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?un(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var _n=yn,wn=un(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getUTCMinutes()}),bn=un(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),xn=un(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1});function En(t){return un(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var Tn=En(0),An=(En(1),En(2),En(3),En(4),En(5),En(6),un(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()})),Sn=un(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});function kn(t,e,n,r,i,o){var a=[[hn,1,1e3],[hn,5,5e3],[hn,15,15e3],[hn,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,n,r){var i=Math.abs(n-e)/r,o=Ke(function(t){return u(t,3)[2]}).right(a,i);if(o===a.length)return t.every(on(e/31536e6,n/31536e6,r));if(0===o)return ln.every(Math.max(on(e,n,r),1));var s=u(a[i/a[o-1][2]0?un(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var In=u(kn(Sn,An,Tn,xn,bn,wn),2),Cn=(In[0],In[1],u(kn(_n,mn,vn,pn,dn,fn),2)),Dn=(Cn[0],Cn[1],new Date),Nn=new Date;function Zn(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return Dn.setTime(+e),Nn.setTime(+r),t(Dn),t(Nn),Math.floor(n(Dn,Nn))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}function Mn(t){return Zn(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var On=Mn(0),Rn=Mn(1),Ln=(Mn(2),Mn(3),Mn(4)),Un=(Mn(5),Mn(6),Zn(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}));function Pn(t){return Zn(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var Fn=Pn(0),qn=Pn(1),zn=(Pn(2),Pn(3),Pn(4)),jn=(Pn(5),Pn(6),Zn(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1})),Yn=Zn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Yn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zn(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var Bn=Yn,Jn=Zn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Jn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zn(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var Gn=Jn,Vn={"-":"",_:" ",0:"0"},Hn=/[\\^$*+?|[\]().{}]/g;function Qn(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o=4||0===n?zn(t):zn.ceil(t),Qn(zn.count(Bn(t),t)+(4===Bn(t).getDay()),e,2)}function hr(t){return t.getDay()}function fr(t,e){return Qn(qn.count(Bn(t)-1,t),e,2)}function dr(t,e){return Qn(t.getFullYear()%100,e,2)}function pr(t,e){return Qn(t.getFullYear()%1e4,e,4)}function gr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Qn(e/60|0,"0",2)+Qn(e%60,"0",2)}function vr(t,e){return Qn(t.getUTCDate(),e,2)}function mr(t,e){return Qn(t.getUTCHours(),e,2)}function yr(t,e){return Qn(t.getUTCHours()%12||12,e,2)}function _r(t,e){return Qn(1+Un.count(Gn(t),t),e,3)}function wr(t,e){return Qn(t.getUTCMilliseconds(),e,3)}function br(t,e){return wr(t,e)+"000"}function xr(t,e){return Qn(t.getUTCMonth()+1,e,2)}function Er(t,e){return Qn(t.getUTCMinutes(),e,2)}function Tr(t,e){return Qn(t.getUTCSeconds(),e,2)}function Ar(t){var e=t.getUTCDay();return 0===e?7:e}function Sr(t,e){return Qn(On.count(Gn(t)-1,t),e,2)}function kr(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Ln(t):Ln.ceil(t),Qn(Ln.count(Gn(t),t)+(4===Gn(t).getUTCDay()),e,2)}function Ir(t){return t.getUTCDay()}function Cr(t,e){return Qn(Rn.count(Gn(t)-1,t),e,2)}function Dr(t,e){return Qn(t.getUTCFullYear()%100,e,2)}function Nr(t,e){return Qn(t.getUTCFullYear()%1e4,e,4)}function Zr(){return"+0000"}function Mr(){return"%"}function Or(t){return+t}function Rr(t){return Math.floor(+t/1e3)}function Lr(t){return null===t?NaN:+t}!function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=(Xn(i),$n(i),Xn(o),$n(o),Xn(a),$n(a),Xn(s),$n(s),Xn(u),$n(u),{a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Kn,e:Kn,f:ir,H:tr,I:er,j:nr,L:rr,m:or,M:ar,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Or,s:Rr,S:sr,u:ur,U:cr,V:lr,w:hr,W:fr,x:null,X:null,y:dr,Y:pr,Z:gr,"%":Mr}),l={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:vr,e:vr,f:br,H:mr,I:yr,j:_r,L:wr,m:xr,M:Er,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Or,s:Rr,S:Tr,u:Ar,U:Sr,V:kr,w:Ir,W:Cr,x:null,X:null,y:Dr,Y:Nr,Z:Zr,"%":Mr};function h(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s(e=a[u-1])&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?Gr:Jr,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),Fr.Z)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,zr),l()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),u=qr.Z,l()},h.clamp=function(t){return arguments.length?(c=!!t||Yr,l()):c!==Yr},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}()(Yr,Yr)}function Qr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Wr=l(93116),Xr=l(65636),$r=l(3712),Kr=l(3218),ti=l(22233);function ei(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0){var u=Math.round(t/a),c=Math.round(e/a);for(u*ae&&--c,o=new Array(i=c-u+1);++se&&--h,o=new Array(i=h-l+1);++s0;){if((i=rn(u,c,n))===r)return o[a]=u,o[s]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function ni(){var t=Hr();return t.copy=function(){return Vr(t,ni())},Qr.apply(t,arguments),ei(t)}function ri(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r2&&void 0!==arguments[2]?arguments[2]:Lr;if(r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function ui(){var t,e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t0?r[i-1]:e[0],i=0;)e+=n[r].value;else e=1;t.value=e}function xi(t,e){var n,r,i,o,a,s=new Si(t),u=+t.value&&(s.value=t.value),c=[s];for(null==e&&(e=Ei);n=c.pop();)if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new Si(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Ai)}function Ei(t){return t.children}function Ti(t){t.data=t.data.data}function Ai(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Si(t){this.data=t,this.depth=this.height=0,this.parent=null}mi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:vi(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:vi(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new mi(t,e)}return n.tension=function(e){return t(+e)},n}(0),yi.prototype={areaStart:gi,areaEnd:gi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:vi(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new yi(t,e)}return n.tension=function(e){return t(+e)},n}(0),Math,Math,Math,Math,Math,Math,Math,Math,l(12314),function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,v,m=[],y=e.children,_=0,w=0,b=y.length,x=e.value;_f&&(f=s),v=l*l*g,(d=Math.max(f/v,v/h))>p){l-=s;break}p=d}m.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),Si.prototype=xi.prototype={constructor:Si,count:function(){return this.eachAfter(bi)},each:function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return xi(this).eachBefore(Ti)}};var ki=l(30269),Ii=["caretElm"];function Ci(t,e){}var Di=function(t){return{model:t}};function Ni(t,e){if(1&t&&(m.TgZ(0,"span"),m.YNc(1,Ci,0,0,"ng-template",5),m.qZA()),2&t){var n=m.oxw();m.xp6(1),m.Q6J("ngTemplateOutlet",n.template)("ngTemplateOutletContext",m.VKq(2,Di,n.context))}}function Zi(t,e){if(1&t&&m._UZ(0,"span",6),2&t){var n=m.oxw();m.Q6J("innerHTML",n.title,m.oJD)}}function Mi(t,e){if(1&t&&(m.O4$(),m.kcU(),m._UZ(0,"ngx-charts-scale-legend",4)),2&t){var n=m.oxw();m.Q6J("horizontal",n.legendOptions&&"below"===n.legendOptions.position)("valueRange",n.legendOptions.domain)("colors",n.legendOptions.colors)("height",n.view[1])("width",n.legendWidth)}}function Oi(t,e){if(1&t){var n=m.EpF();m.O4$(),m.kcU(),m.TgZ(0,"ngx-charts-legend",5),m.NdJ("labelClick",function(t){return m.CHM(n),m.oxw().legendLabelClick.emit(t)})("labelActivate",function(t){return m.CHM(n),m.oxw().legendLabelActivate.emit(t)})("labelDeactivate",function(t){return m.CHM(n),m.oxw().legendLabelDeactivate.emit(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("horizontal",r.legendOptions&&"below"===r.legendOptions.position)("data",r.legendOptions.domain)("title",r.legendOptions.title)("colors",r.legendOptions.colors)("height",r.view[1])("width",r.legendWidth)("activeEntries",r.activeEntries)}}var Ri=["*"];function Li(t,e){if(1&t&&(m.TgZ(0,"header",4),m.TgZ(1,"span",5),m._uU(2),m.qZA(),m.qZA()),2&t){var n=m.oxw();m.xp6(2),m.Oqu(n.title)}}function Ui(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"li",6),m.TgZ(1,"ngx-charts-legend-entry",7),m.NdJ("select",function(t){return m.CHM(n),m.oxw().labelClick.emit(t)})("activate",function(t){return m.CHM(n),m.oxw().activate(t)})("deactivate",function(t){return m.CHM(n),m.oxw().deactivate(t)}),m.qZA(),m.qZA()}if(2&t){var r=e.$implicit,i=m.oxw();m.xp6(1),m.Q6J("label",r.label)("formattedLabel",r.formattedLabel)("color",r.color)("isActive",i.isActive(r))}}var Pi=function(){var t=function(){function t(e,n,r){f(this,t),this.applicationRef=e,this.componentFactoryResolver=n,this.injector=r}return p(t,[{key:"getRootViewContainer",value:function(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.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.")}},{key:"setRootViewContainer",value:function(t){this._container=t}},{key:"getComponentRootNode",value:function(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}},{key:"getRootViewContainerNode",value:function(t){return this.getComponentRootNode(t)}},{key:"projectComponentBindings",value:function(t,e){if(e){if(void 0!==e.inputs){var n,r=c(Object.getOwnPropertyNames(e.inputs));try{for(r.s();!(n=r.n()).done;){var i=n.value;t.instance[i]=e.inputs[i]}}catch(u){r.e(u)}finally{r.f()}}if(void 0!==e.outputs){var o,a=c(Object.getOwnPropertyNames(e.outputs));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.instance[s]=e.outputs[s]}}catch(u){a.e(u)}finally{a.f()}}}return t}},{key:"appendComponent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;n||(n=this.getRootViewContainer());var r=this.getComponentRootNode(n),i=new Ge.F0(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Ge.C5(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}],[{key:"setGlobalRootViewContainer",value:function(e){t.globalRootViewContainer=e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.LFG(m.z2F),m.LFG(m._Vd),m.LFG(m.zs3))},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t}();function Fi(t,e,n){var r,i,o;n=n||{};var a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){var c=+new Date;s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var qi=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function zi(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function ji(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}var Yi=function(){function t(){f(this,t)}return p(t,null,[{key:"calculateVerticalAlignment",value:function(t,e,n){var r=zi(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}},{key:"calculateVerticalCaret",value:function(t,e,n,r){var i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);var o=zi(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}},{key:"calculateHorizontalAlignment",value:function(t,e,n){var r=ji(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}},{key:"calculateHorizontalCaret",value:function(t,e,n,r){var i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);var o=ji(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}},{key:"shouldFlip",value:function(t,e,n,r){var i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}},{key:"positionCaret",value:function(e,n,r,i,o){var a=0,s=0;return e===qi.right?(s=-7,a=t.calculateVerticalCaret(r,n,i,o)):e===qi.left?(s=n.width,a=t.calculateVerticalCaret(r,n,i,o)):e===qi.top?(a=n.height,s=t.calculateHorizontalCaret(r,n,i,o)):e===qi.bottom&&(a=-7,s=t.calculateHorizontalCaret(r,n,i,o)),{top:a,left:s}}},{key:"positionContent",value:function(e,n,r,i,o){var a=0,s=0;return e===qi.right?(s=r.left+r.width+i,a=t.calculateVerticalAlignment(r,n,o)):e===qi.left?(s=r.left-n.width-i,a=t.calculateVerticalAlignment(r,n,o)):e===qi.top?(a=r.top-n.height-i,s=t.calculateHorizontalAlignment(r,n,o)):e===qi.bottom&&(a=r.top+r.height+i,s=t.calculateHorizontalAlignment(r,n,o)),{top:a,left:s}}},{key:"determinePlacement",value:function(e,n,r,i){if(t.shouldFlip(r,n,e,i)){if(e===qi.right)return qi.left;if(e===qi.left)return qi.right;if(e===qi.top)return qi.bottom;if(e===qi.bottom)return qi.top}return e}}]),t}(),Bi=function(){var t=function(){function t(e,n){f(this,t),this.element=e,this.renderer=n}return p(t,[{key:"cssClasses",get:function(){var t="ngx-charts-tooltip-content";return t+=" position-".concat(this.placement),t+=" type-".concat(this.type),t+=" ".concat(this.cssClass)}},{key:"ngAfterViewInit",value:function(){setTimeout(this.position.bind(this))}},{key:"position",value:function(){var t=this,e=this.element.nativeElement,n=this.host.nativeElement.getBoundingClientRect();if(n.height||n.width){var r=e.getBoundingClientRect();this.checkFlip(n,r),this.positionContent(e,n,r),this.showCaret&&this.positionCaret(n,r),setTimeout(function(){return t.renderer.addClass(e,"animate")},1)}}},{key:"positionContent",value:function(t,e,n){var r=Yi.positionContent(this.placement,n,e,this.spacing,this.alignment),i=r.top,o=r.left;this.renderer.setStyle(t,"top","".concat(i,"px")),this.renderer.setStyle(t,"left","".concat(o,"px"))}},{key:"positionCaret",value:function(t,e){var n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),i=Yi.positionCaret(this.placement,e,t,r,this.alignment),o=i.top,a=i.left;this.renderer.setStyle(n,"top","".concat(o,"px")),this.renderer.setStyle(n,"left","".concat(a,"px"))}},{key:"checkFlip",value:function(t,e){this.placement=Yi.determinePlacement(this.placement,e,t,this.spacing)}},{key:"onWindowResize",value:function(){this.position()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(m.SBq),m.Y36(m.Qsj))},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){var n;(1&t&&m.Gf(Ii,5),2&t)&&(m.iGM(n=m.CRH())&&(e.caretElm=n.first))},hostVars:2,hostBindings:function(t,e){1&t&&m.NdJ("resize",function(){return e.onWindowResize()},!1,m.Jf7),2&t&&m.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(m.TgZ(0,"div"),m._UZ(1,"span",0,1),m.TgZ(3,"div",2),m.YNc(4,Ni,2,4,"span",3),m.YNc(5,Zi,1,1,"span",4),m.qZA(),m.qZA()),2&t&&(m.xp6(1),m.Gre("tooltip-caret position-",e.placement,""),m.Q6J("hidden",!e.showCaret),m.xp6(3),m.Q6J("ngIf",!e.title),m.xp6(1),m.Q6J("ngIf",e.title))},directives:[d.O5,d.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),Ye([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Fi(n.value,100,void 0)}),this[e]}}}],t.prototype,"onWindowResize",null),t}(),Ji=function(){var t=function(t){r(n,t);var e=o(n);function n(t){var r;return f(this,n),(r=e.call(this,t)).type=Bi,r}return n}(function(){function t(e){f(this,t),this.injectionService=e,this.defaults={},this.components=new Map}return p(t,[{key:"getByType",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.type;return this.components.get(t)}},{key:"create",value:function(t){return this.createByType(this.type,t)}},{key:"createByType",value:function(t,e){e=this.assignDefaults(e);var n=this.injectComponent(t,e);return this.register(t,n),n}},{key:"destroy",value:function(t){var e=this.components.get(t.componentType);if(e&&e.length){var n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}},{key:"destroyAll",value:function(){this.destroyByType(this.type)}},{key:"destroyByType",value:function(t){var e=this.components.get(t);if(e&&e.length)for(var n=e.length-1;n>=0;)this.destroy(e[n--])}},{key:"injectComponent",value:function(t,e){return this.injectionService.appendComponent(t,e)}},{key:"assignDefaults",value:function(t){var e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}},{key:"register",value:function(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}]),t}());return t.\u0275fac=function(e){return new(e||t)(m.LFG(Pi))},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t}(),Gi=function(){var t=function(){function t(){f(this,t),this.showLegend=!1,this.animations=!0,this.legendLabelClick=new m.vpe,this.legendLabelActivate=new m.vpe,this.legendLabelDeactivate=new m.vpe}return p(t,[{key:"ngOnChanges",value:function(t){this.update()}},{key:"update",value:function(){var t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}},{key:"getLegendType",value:function(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[m._Bn([Ji]),m.TTD],ngContentSelectors:Ri,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(m.F$t(),m.TgZ(0,"div",0),m.O4$(),m.TgZ(1,"svg",1),m.Hsn(2),m.qZA(),m.YNc(3,Mi,1,5,"ngx-charts-scale-legend",2),m.YNc(4,Oi,1,7,"ngx-charts-legend",3),m.qZA()),2&t&&(m.Udp("width",e.view[0],"px"),m.Q6J("@animationState","active")("@.disabled",!e.animations),m.xp6(1),m.uIk("width",e.chartWidth)("height",e.view[1]),m.xp6(2),m.Q6J("ngIf",e.showLegend&&"scaleLegend"===e.legendType),m.xp6(1),m.Q6J("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[d.O5,Ki,Xi]},encapsulation:2,data:{animation:[(0,Je.X$)("animationState",[(0,Je.eR)(":enter",[(0,Je.oB)({opacity:0}),(0,Je.jt)("500ms 100ms",(0,Je.oB)({opacity:1}))])])]},changeDetection:0}),t}(),Vi=function(){var t=function(){function t(e,n){f(this,t),this.element=e,this.zone=n,this.visible=new m.vpe,this.isVisible=!1,this.runCheck()}return p(t,[{key:"destroy",value:function(){clearTimeout(this.timeout)}},{key:"onVisibilityChange",value:function(){var t=this;this.zone.run(function(){t.isVisible=!0,t.visible.emit(!0)})}},{key:"runCheck",value:function(){var t=this,e=function e(){if(t.element){var n=t.element.nativeElement,r=n.offsetHeight,i=n.offsetWidth;r&&i?(clearTimeout(t.timeout),t.onVisibilityChange()):(clearTimeout(t.timeout),t.zone.runOutsideAngular(function(){t.timeout=setTimeout(function(){return e()},100)}))}};this.zone.runOutsideAngular(function(){t.timeout=setTimeout(function(){return e()})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(m.SBq),m.Y36(m.R0b))},t.\u0275dir=m.lG2({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t}(),Hi=function(){var t=function(){function t(e,n,r){f(this,t),this.chartElement=e,this.zone=n,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new m.vpe}return p(t,[{key:"ngAfterViewInit",value:function(){this.bindWindowResizeEvent(),this.visibilityObserver=new Vi(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}},{key:"ngOnDestroy",value:function(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}},{key:"ngOnChanges",value:function(t){this.update()}},{key:"update",value:function(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{var t=this.getContainerDims();t&&(this.width=t.width,this.height=t.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()}},{key:"getContainerDims",value:function(){var t,e,n=this.chartElement.nativeElement;if(null!==n.parentNode){var r=n.parentNode.getBoundingClientRect();t=r.width,e=r.height}return t&&e?{width:t,height:e}:null}},{key:"formatDates",value:function(){for(var t=0;t0),m.xp6(2),m.Udp("max-height",e.height-45,"px"),m.ekj("horizontal-legend",e.horizontal),m.xp6(1),m.Q6J("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[d.O5,d.sg,$i]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t}(),$i=function(){var t=function(){function t(){f(this,t),this.isActive=!1,this.select=new m.vpe,this.activate=new m.vpe,this.deactivate=new m.vpe,this.toggle=new m.vpe}return p(t,[{key:"trimmedLabel",get:function(){return this.formattedLabel||"(empty)"}},{key:"onMouseEnter",value:function(){this.activate.emit({name:this.label})}},{key:"onMouseLeave",value:function(){this.deactivate.emit({name:this.label})}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&m.NdJ("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(m.TgZ(0,"span",0),m.NdJ("click",function(){return e.select.emit(e.formattedLabel)}),m.TgZ(1,"span",1),m.NdJ("click",function(){return e.toggle.emit(e.formattedLabel)}),m.qZA(),m.TgZ(2,"span",2),m._uU(3),m.qZA(),m.qZA()),2&t&&(m.ekj("active",e.isActive),m.Q6J("title",e.formattedLabel),m.xp6(1),m.Udp("background-color",e.color),m.xp6(2),m.hij(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t}(),Ki=function(){var t=function(){function t(e){f(this,t),this.sanitizer=e,this.horizontal=!1}return p(t,[{key:"ngOnChanges",value:function(t){var e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle("linear-gradient(to ".concat(this.horizontal?"right":"bottom",", ").concat(e,")"))}},{key:"gradientString",value:function(t,e){e.push(1);var n=[];return t.reverse().forEach(function(t,r){n.push("".concat(t," ").concat(Math.round(100*e[r]),"%"))}),n.join(", ")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(ki.H7))},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[m.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(m.TgZ(0,"div",0),m.TgZ(1,"div",1),m.TgZ(2,"span"),m._uU(3),m.qZA(),m.qZA(),m._UZ(4,"div",2),m.TgZ(5,"div",1),m.TgZ(6,"span"),m._uU(7),m.qZA(),m.qZA(),m.qZA()),2&t&&(m.Udp("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),m.ekj("horizontal-legend",e.horizontal),m.xp6(3),m.Oqu(e.valueRange[1].toLocaleString()),m.xp6(1),m.Udp("background",e.gradient),m.xp6(3),m.Oqu(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t}(),to=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[d.ez,Qi,Wi],d.ez,Qi,Wi]}),t}(),eo=[{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"]}],no=function(){function t(e,n,r,i){f(this,t),"string"==typeof e&&(e=eo.find(function(t){return t.name===e})),this.colorDomain=e.domain,this.scaleType=n,this.domain=r,this.customColors=i,this.scale=this.generateColorScheme(e,n,this.domain)}return p(t,[{key:"generateColorScheme",value:function(t,e,r){var i;if("string"==typeof t&&(t=eo.find(function(e){return e.name===t})),"quantile"===e)i=ui().range(t.domain).domain(r);else if("ordinal"===e)i=oi().range(t.domain).domain(r);else if("linear"===e){var o=n(t.domain);1===o.length&&(o.push(o[0]),this.colorDomain=o);var a=ri(0,1,1/o.length);i=ni().domain(a).range(o)}return i}},{key:"getColor",value:function(t){if(null==t)throw new Error("Value can not be null");if("linear"===this.scaleType){var e=ni().domain(this.domain).range([0,1]);return this.scale(e(t))}if("function"==typeof this.customColors)return this.customColors(t);var n,r=t.toString();return this.customColors&&this.customColors.length>0&&(n=this.customColors.find(function(t){return t.name.toLowerCase()===r.toLowerCase()})),n?n.value:this.scale(t)}},{key:"getLinearGradientStops",value:function(t,e){void 0===e&&(e=this.domain[0]);var n=ni().domain(this.domain).range([0,1]),r=ai().domain(this.colorDomain).range([0,1]),i=this.getColor(t),o=n(e),a=this.getColor(e),s=n(t),u=1,l=o,h=[];for(h.push({color:a,offset:o,originalOffset:o,opacity:1});l=(s-r.bandwidth()).toFixed(4))break;h.push({color:f,offset:d,opacity:1}),l=d,u++}}if(h[h.length-1].offset<100&&h.push({color:i,offset:s,opacity:1}),s===o)h[0].offset=0,h[1].offset=100;else if(100!==h[h.length-1].offset){var p,g=c(h);try{for(g.s();!(p=g.n()).done;){var v=p.value;v.offset=(v.offset-o)/(s-o)*100}}catch(m){g.e(m)}finally{g.f()}}return h}}]),t}(),ro=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),io=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),oo=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),ao=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),so=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}();Math;var uo=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),co=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to,uo,so]]}),t}(),lo=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),ho=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),fo=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to,uo,io]]}),t}(),po=function(){var t=function t(){f(this,t),"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[to,ro,io,oo,ao,so,co,lo,uo,ho,fo]}),t}(),go=Math.PI;function vo(t){return(1-Math.cos(go*t))/2}var mo=l(87570),yo=l(48318),_o=l(40878),wo=l(3530);function bo(t){return void 0===t}function xo(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:e}}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;var So=l(32975);function ko(t,e){var n;function r(){var r,i,o=n.length,a=0,s=0;for(r=0;r=(o=(g+m)/2))?g=o:m=o,(l=n>=(a=(v+y)/2))?v=a:y=a,i=d,!(d=d[h=l<<1|c]))return i[h]=p,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s&&n===u)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(c=e>=(o=(g+m)/2))?g=o:m=o,(l=n>=(a=(v+y)/2))?v=a:y=a}while((h=l<<1|c)==(f=(u>=a)<<1|s>=o));return i[f]=d,i[h]=p,t}function No(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Zo(t){return t[0]}function Mo(t){return t[1]}function Oo(t,e,n){var r=new Ro(null==e?Zo:e,null==n?Mo:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Ro(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Lo(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Uo=Oo.prototype=Ro.prototype;function Po(t){return t.x+t.vx}function Fo(t){return t.y+t.vy}function qo(t){var e,n,r=1,i=1;function o(){for(var t,o,s,u,c,l,h,f=e.length,d=0;du+d||ic+d||os.index){var p=u-a.x-a.vx,g=c-a.y-a.vy,v=p*p+g*g;vt.r&&(t.r=t[e].r)}function s(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;rl&&(l=r),ih&&(h=i));if(u>l||c>h)return this;for(this.cover(u,c).cover(l,h),n=0;nt||t>=i||r>e||e>=o;)switch(s=(ef||(o=u.y0)>d||(a=u.x1)=m)<<1|t>=v)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=u)}else{var y=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),w=y*y+_*_;if(w=(s=(p+v)/2))?p=s:v=s,(l=a>=(u=(g+m)/2))?g=u:m=u,e=d,!(d=d[h=l<<1|c]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},Uo.removeAll=function(t){for(var e=0,n=t.length;e1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,o,a,s,u,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,n),e):c.on(t)}}}function ta(){var t,e,n,r,i=Io(-30),o=1,a=1/0,s=.81;function u(r){var i,o=t.length,a=Oo(t,Wo,Xo).visitAfter(l);for(n=r,i=0;i=a)){(t.data!==e||t.next)&&(0===l&&(d+=(l=Co())*l),0===h&&(d+=(h=Co())*h),d=0}),leaves:t.childNodeIds.map(function(t){return e.inputGraph.nodes.findIndex(function(e){return e.id===t})}).filter(function(t){return t>=0})}})),links:n(this.inputGraph.edges.map(function(t){var n=e.inputGraph.nodes.findIndex(function(e){return t.source===e.id}),r=e.inputGraph.nodes.findIndex(function(e){return t.target===e.id});if(-1!==n&&-1!==r)return Object.assign(Object.assign({},t),{source:n,target:r})}).filter(function(t){return!!t})),groupLinks:n(this.inputGraph.edges.map(function(t){var n=e.inputGraph.nodes.findIndex(function(e){return t.source===e.id}),r=e.inputGraph.nodes.findIndex(function(e){return t.target===e.id});if(!(n>=0&&r>=0))return t}).filter(function(t){return!!t}))},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",function(){e.settings.onTickListener&&e.settings.onTickListener(e.internalGraph),e.outputGraph$.next(e.internalGraphToOutputGraph(e.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()}},{key:"updateEdge",value:function(t,e){var n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.start(),this.outputGraph$.asObservable()}},{key:"internalGraphToOutputGraph",value:function(t){var e=this;return this.outputGraph.nodes=t.nodes.map(function(t){return Object.assign(Object.assign({},t),{id:t.id||Ra(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:"translate(".concat(t.x-(t.dimension&&t.dimension.width||20)/2||0,", ").concat(t.y-(t.dimension&&t.dimension.height||20)/2||0,")")})}),this.outputGraph.edges=t.links.map(function(e){var n=Pa(t.nodes,e.source),r=Pa(t.nodes,e.target);return Object.assign(Object.assign({},e),{source:n.id,target:r.id,points:[n.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy()),r.bounds.rayIntersection(n.bounds.cx(),n.bounds.cy())]})}).concat(t.groupLinks.map(function(e){var n=t.nodes.find(function(t){return t.id===e.source}),r=t.nodes.find(function(t){return t.id===e.target}),i=n||t.groups.find(function(t){return t.id===e.source}),o=r||t.groups.find(function(t){return t.id===e.target});return Object.assign(Object.assign({},e),{source:i.id,target:o.id,points:[i.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})})),this.outputGraph.clusters=t.groups.map(function(t,n){return Object.assign(Object.assign({},e.inputGraph.clusters[n]),{dimension:{width:t.bounds?t.bounds.width():20,height:t.bounds?t.bounds.height():20},position:{x:t.bounds?t.bounds.x+t.bounds.width()/2:0,y:t.bounds?t.bounds.y+t.bounds.height()/2:0}})}),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}},{key:"onDragStart",value:function(t,e){var n=this.outputGraph.nodes.findIndex(function(e){return e.id===t.id}),r=this.internalGraph.nodes[n];r&&(this.draggingStart={x:r.x-e.x,y:r.y-e.y},r.fixed=1,this.settings.force.start())}},{key:"onDrag",value:function(t,e){if(t){var n=this.outputGraph.nodes.findIndex(function(e){return e.id===t.id}),r=this.internalGraph.nodes[n];r&&(r.x=this.draggingStart.x+e.x,r.y=this.draggingStart.y+e.y)}}},{key:"onDragEnd",value:function(t,e){if(t){var n=this.outputGraph.nodes.findIndex(function(e){return e.id===t.id}),r=this.internalGraph.nodes[n];r&&(r.fixed=0)}}}]),t}()},qa=function(){var t=function(){function t(){f(this,t)}return p(t,[{key:"getLayout",value:function(t){if(Fa[t])return new Fa[t];throw new Error("Unknown layout type '".concat(t,"'"))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t}(),za=function(t){return t.Both="both",t.Horizontal="horizontal",t.Vertical="vertical",t}({}),ja=function(t){return t.UpperLeft="UpperLeft",t.UpperRight="UpperRight",t}({});function Ya(t,e,n){var r,i,o;n=n||{};var a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){var c=+new Date;s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var Ba=function(){var e=function(e){r(a,e);var i=o(a);function a(t,e,n,r){var o;return f(this,a),(o=i.call(this,t,e,n)).el=t,o.zone=e,o.cd=n,o.layoutService=r,o.legend=!1,o.nodes=[],o.clusters=[],o.links=[],o.activeEntries=[],o.draggingEnabled=!0,o.panningEnabled=!0,o.panningAxis=za.Both,o.enableZoom=!0,o.zoomSpeed=.1,o.minZoomLevel=.1,o.maxZoomLevel=4,o.autoZoom=!1,o.panOnZoom=!0,o.animate=!1,o.autoCenter=!1,o.enableTrackpadSupport=!1,o.showMiniMap=!1,o.miniMapMaxWidth=100,o.miniMapPosition=ja.UpperRight,o.activate=new m.vpe,o.deactivate=new m.vpe,o.zoomChange=new m.vpe,o.clickHandler=new m.vpe,o.isMouseMoveCalled=!1,o.graphSubscription=new mo.w,o.subscriptions=[],o.margin=[0,0,0,0],o.results=[],o.isPanning=!1,o.isDragging=!1,o.initialized=!1,o.graphDims={width:0,height:0},o._oldLinks=[],o.oldNodes=new Set,o.oldClusters=new Set,o.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},o._touchLastX=null,o._touchLastY=null,o.minimapScaleCoefficient=3,o.minimapOffsetX=0,o.minimapOffsetY=0,o.isMinimapPanning=!1,o.groupResultsBy=function(t){return t.label},o}return p(a,[{key:"zoomLevel",get:function(){return this.transformationMatrix.a},set:function(t){this.zoomTo(Number(t))}},{key:"panOffsetX",get:function(){return this.transformationMatrix.e},set:function(t){this.panTo(Number(t),null)}},{key:"panOffsetY",get:function(){return this.transformationMatrix.f},set:function(t){this.panTo(null,Number(t))}},{key:"ngOnInit",value:function(){var t=this;this.update$&&this.subscriptions.push(this.update$.subscribe(function(){t.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(function(){t.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(function(){t.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(function(e){t.panToNodeId(e)})),this.minimapClipPathId="minimapClip".concat(Ra())}},{key:"ngOnChanges",value:function(t){var e=t.layoutSettings;this.setLayout(this.layout),e&&this.setLayoutSettings(this.layoutSettings),this.update()}},{key:"setLayout",value:function(t){this.initialized=!1,t||(t="dagre"),"string"==typeof t&&(this.layout=this.layoutService.getLayout(t),this.setLayoutSettings(this.layoutSettings))}},{key:"setLayoutSettings",value:function(t){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=t)}},{key:"ngOnDestroy",value:function(){t(s(a.prototype),"ngOnDestroy",this).call(this);var e,n=c(this.subscriptions);try{for(n.s();!(e=n.n()).done;){e.value.unsubscribe()}}catch(r){n.e(r)}finally{n.f()}this.subscriptions=null}},{key:"ngAfterViewInit",value:function(){var e=this;t(s(a.prototype),"ngAfterViewInit",this).call(this),setTimeout(function(){return e.update()})}},{key:"update",value:function(){var e=this;t(s(a.prototype),"update",this).call(this),this.curve||(this.curve=ze.beta(1)),this.zone.run(function(){e.dims=function(t){var e=t.width,n=t.height,r=t.margins,i=t.showXAxis,o=void 0!==i&&i,a=t.showYAxis,s=void 0!==a&&a,u=t.xAxisHeight,c=void 0===u?0:u,l=t.yAxisWidth,h=void 0===l?0:l,f=t.showXLabel,d=void 0!==f&&f,p=t.showYLabel,g=void 0!==p&&p,v=t.showLegend,m=void 0!==v&&v,y=t.legendType,_=void 0===y?"ordinal":y,w=t.legendPosition,b=void 0===w?"right":w,x=t.columns,E=void 0===x?12:x,T=r[3],A=e,S=n-r[0]-r[2];if(m&&"right"===b&&(E-="ordinal"===_?2:1),A=(A=A*E/12)-r[1]-r[3],o&&(S-=5,S-=c,d)&&(S-=30),s&&(A-=5,A-=h,T+=h,T+=10,g)){A-=30,T+=30}return A=Math.max(0,A),S=Math.max(0,S),{width:Math.floor(A),height:Math.floor(S),xOffset:Math.floor(T)}}({width:e.width,height:e.height,margins:e.margin,showLegend:e.legend}),e.seriesDomain=e.getSeriesDomain(),e.setColors(),e.legendOptions=e.getLegendOptions(),e.createGraph(),e.updateTransform(),e.initialized=!0})}},{key:"createGraph",value:function(){var t=this;this.graphSubscription.unsubscribe(),this.graphSubscription=new mo.w;var e=function(e){return e.meta||(e.meta={}),e.id||(e.id=Ra()),e.dimension?e.meta.forceDimensions=void 0===e.meta.forceDimensions||e.meta.forceDimensions:(e.dimension={width:t.nodeWidth?t.nodeWidth:30,height:t.nodeHeight?t.nodeHeight:30},e.meta.forceDimensions=!1),e.position={x:0,y:0},e.data=e.data?e.data:{},e};this.graph={nodes:this.nodes.length>0?n(this.nodes).map(e):[],clusters:this.clusters&&this.clusters.length>0?n(this.clusters).map(e):[],edges:this.links.length>0?n(this.links).map(function(t){return t.id||(t.id=Ra()),t}):[]},requestAnimationFrame(function(){return t.draw()})}},{key:"draw",value:function(){var t=this;if(this.layout&&"string"!=typeof this.layout){this.applyNodeDimensions();var e=this.layout.run(this.graph),n=e instanceof yo.y?e:(0,_o.of)(e);this.graphSubscription.add(n.subscribe(function(e){t.graph=e,t.tick()})),0!==this.graph.nodes.length&&n.pipe((0,wo.P)()).subscribe(function(){return t.applyNodeDimensions()})}}},{key:"tick",value:function(){var t=this,e=new Set;this.graph.nodes.map(function(n){n.transform="translate(".concat(n.position.x-n.dimension.width/2||0,", ").concat(n.position.y-n.dimension.height/2||0,")"),n.data||(n.data={}),n.data.color=t.colors.getColor(t.groupResultsBy(n)),e.add(n.id)});var n=new Set;(this.graph.clusters||[]).map(function(e){e.transform="translate(".concat(e.position.x-e.dimension.width/2||0,", ").concat(e.position.y-e.dimension.height/2||0,")"),e.data||(e.data={}),e.data.color=t.colors.getColor(t.groupResultsBy(e)),n.add(e.id)}),setTimeout(function(){t.oldNodes=e,t.oldClusters=n},500);var r=[],i=function(e){var n=t.graph.edgeLabels[e],i=e.replace(/[^\w-]*/g,""),o=t.layout&&"string"!=typeof t.layout&&t.layout.settings&&t.layout.settings.multigraph,a=t._oldLinks.find(o?function(t){return"".concat(t.source).concat(t.target).concat(t.id)===i}:function(t){return"".concat(t.source).concat(t.target)===i}),s=t.graph.edges.find(o?function(t){return"".concat(t.source).concat(t.target).concat(t.id)===i}:function(t){return"".concat(t.source).concat(t.target)===i});a?a.data&&s&&s.data&&JSON.stringify(a.data)!==JSON.stringify(s.data)&&(a.data=s.data):a=s||n,a.oldLine=a.line;var u=n.points,c=t.generateLine(u),l=Object.assign({},a);l.line=c,l.points=u,t.updateMidpointOnEdge(l,u);var h=u[Math.floor(u.length/2)];h&&(l.textTransform="translate(".concat(h.x||0,",").concat(h.y||0,")")),l.textAngle=0,l.oldLine||(l.oldLine=l.line),t.calcDominantBaseline(l),r.push(l)};for(var o in this.graph.edgeLabels)i(o);this.graph.edges=r,this.graph.edges&&(this._oldLinks=this.graph.edges.map(function(t){var e=Object.assign({},t);return e.oldLine=t.line,e})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(function(){return t.redrawLines()}),this.cd.markForCheck()}},{key:"getMinimapTransform",value:function(){switch(this.miniMapPosition){case ja.UpperLeft:return"";case ja.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}},{key:"updateGraphDims",value:function(){for(var t=1/0,e=-1/0,n=1/0,r=-1/0,i=0;ie?o.position.x+o.dimension.width:e,r=o.position.y+o.dimension.height>r?o.position.y+o.dimension.height:r}t-=100,n-=100,e+=100,r+=100,this.graphDims.width=e-t,this.graphDims.height=r-n,this.minimapOffsetX=t,this.minimapOffsetY=n}},{key:"updateMinimap",value:function(){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())}},{key:"applyNodeDimensions",value:function(){var t=this;this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(function(e){var n=e.nativeElement,r=t.graph.nodes.find(function(t){return t.id===n.id});if(r){var i;try{if(!(i=n.getBBox()).width||!i.height)return}catch(l){return}if(r.dimension.height=t.nodeHeight?r.dimension.height&&r.meta.forceDimensions?r.dimension.height:t.nodeHeight:r.dimension.height&&r.meta.forceDimensions?r.dimension.height:i.height,t.nodeMaxHeight&&(r.dimension.height=Math.max(r.dimension.height,t.nodeMaxHeight)),t.nodeMinHeight&&(r.dimension.height=Math.min(r.dimension.height,t.nodeMinHeight)),t.nodeWidth)r.dimension.width=r.dimension.width&&r.meta.forceDimensions?r.dimension.width:t.nodeWidth;else if(n.getElementsByTagName("text").length){var o;try{var a,s=c(n.getElementsByTagName("text"));try{for(s.s();!(a=s.n()).done;){var u=a.value.getBBox();o?(u.width>o.width&&(o.width=u.width),u.height>o.height&&(o.height=u.height)):o=u}}catch(h){s.e(h)}finally{s.f()}}catch(l){return}r.dimension.width=r.dimension.width&&r.meta.forceDimensions?r.dimension.width:o.width+20}else r.dimension.width=r.dimension.width&&r.meta.forceDimensions?r.dimension.width:i.width;t.nodeMaxWidth&&(r.dimension.width=Math.max(r.dimension.width,t.nodeMaxWidth)),t.nodeMinWidth&&(r.dimension.width=Math.min(r.dimension.width,t.nodeMinWidth))}})}},{key:"redrawLines",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.animate;this.linkElements.map(function(n){var r=t.graph.edges.find(function(t){return t.id===n.nativeElement.id});r&&((0,He.Z)(n.nativeElement).select(".line").attr("d",r.oldLine).transition().ease(vo).duration(e?500:0).attr("d",r.line),(0,He.Z)(t.chartElement.nativeElement).select("#".concat(r.id)).attr("d",r.oldTextPath).transition().ease(vo).duration(e?500:0).attr("d",r.textPath),t.updateMidpointOnEdge(r,r.points))})}},{key:"calcDominantBaseline",value:function(t){var e=t.points[0],r=t.points[t.points.length-1];t.oldTextPath=t.textPath,r.x=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&t){var i=t.clientX,o=t.clientY,a=this.chart.nativeElement.querySelector("svg"),s=a.querySelector("g.chart"),u=a.createSVGPoint();u.x=i,u.y=o;var c=u.matrixTransform(s.getScreenCTM().inverse());this.pan(c.x,c.y,!0),this.zoom(n),this.pan(-c.x,-c.y,!0)}else this.zoom(n)}else this.pan(-1*t.deltaX,-1*t.deltaY)}},{key:"pan",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n?1:this.zoomLevel;this.transformationMatrix=To(this.transformationMatrix,Ao(t/r,e/r)),this.updateTransform()}},{key:"panTo",value:function(t,e){null==t||isNaN(t)||null==e||isNaN(e)||(this.transformationMatrix=To(this.transformationMatrix,Ao((-this.panOffsetX-t*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-e*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}},{key:"zoom",value:function(t){this.transformationMatrix=To(this.transformationMatrix,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return bo(e)&&(e=t),{a:t,c:0,e:0,b:0,d:e,f:0}}(t,t)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}},{key:"zoomTo",value:function(t){this.transformationMatrix.a=isNaN(t)?this.transformationMatrix.a:Number(t),this.transformationMatrix.d=isNaN(t)?this.transformationMatrix.d:Number(t),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}},{key:"onDrag",value:function(t){var e=this;if(this.draggingEnabled){var n=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(n,t),n.position.x+=t.movementX/this.zoomLevel,n.position.y+=t.movementY/this.zoomLevel,n.transform="translate(".concat(n.position.x-n.dimension.width/2,", ").concat(n.position.y-n.dimension.height/2,")");var r,i=c(this.graph.edges);try{var o=function(){var t=r.value;if((t.target===n.id||t.source===n.id||t.target.id===n.id||t.source.id===n.id)&&e.layout&&"string"!=typeof e.layout){var i=e.layout.updateEdge(e.graph,t),o=i instanceof yo.y?i:(0,_o.of)(i);e.graphSubscription.add(o.subscribe(function(n){e.graph=n,e.redrawEdge(t)}))}};for(i.s();!(r=i.n()).done;)o()}catch(a){i.e(a)}finally{i.f()}this.redrawLines(!1),this.updateMinimap()}}},{key:"redrawEdge",value:function(t){var e=this.generateLine(t.points);this.calcDominantBaseline(t),t.oldLine=t.line,t.line=e}},{key:"updateTransform",value:function(){var t;this.transform="matrix("+(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*e)/e,b:Math.round(t.b*e)/e,c:Math.round(t.c*e)/e,d:Math.round(t.d*e)/e,e:Math.round(t.e*e)/e,f:Math.round(t.f*e)/e}}(this.transformationMatrix,100)).a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}},{key:"onClick",value:function(t){this.select.emit(t)}},{key:"onActivate",value:function(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t].concat(n(this.activeEntries)),this.activate.emit({value:t,entries:this.activeEntries}))}},{key:"onDeactivate",value:function(t){var e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=n(this.activeEntries),this.deactivate.emit({value:t,entries:this.activeEntries})}},{key:"getSeriesDomain",value:function(){var t=this;return this.nodes.map(function(e){return t.groupResultsBy(e)}).reduce(function(t,e){return-1!==t.indexOf(e)?t:t.concat([e])},[]).sort()}},{key:"trackLinkBy",value:function(t,e){return e.id}},{key:"trackNodeBy",value:function(t,e){return e.id}},{key:"setColors",value:function(){this.colors=new no(this.scheme,"ordinal",this.seriesDomain,this.customColors)}},{key:"getLegendOptions",value:function(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors}}},{key:"onMouseMove",value:function(t){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,t):this.isDragging&&this.draggingEnabled&&this.onDrag(t)}},{key:"onMouseDown",value:function(t){this.isMouseMoveCalled=!1}},{key:"graphClick",value:function(t){this.isMouseMoveCalled||this.clickHandler.emit(t)}},{key:"onTouchStart",value:function(t){this._touchLastX=t.changedTouches[0].clientX,this._touchLastY=t.changedTouches[0].clientY,this.isPanning=!0}},{key:"onTouchMove",value:function(t){if(this.isPanning&&this.panningEnabled){var e=t.changedTouches[0].clientX,n=t.changedTouches[0].clientY,r=e-this._touchLastX,i=n-this._touchLastY;this._touchLastX=e,this._touchLastY=n,this.pan(r,i)}}},{key:"onTouchEnd",value:function(t){this.isPanning=!1}},{key:"onMouseUp",value:function(t){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,t)}},{key:"onNodeMouseDown",value:function(t,e){this.draggingEnabled&&(this.isDragging=!0,this.draggingNode=e,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(e,t))}},{key:"onMinimapDragMouseDown",value:function(){this.isMinimapPanning=!0}},{key:"onMinimapPanTo",value:function(t){this.panTo((t.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(t.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}},{key:"center",value:function(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}},{key:"zoomToFit",value:function(){var t=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);tthis.maxZoomLevel&&(t=this.maxZoomLevel),t!==this.zoomLevel&&(this.zoomLevel=t,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}},{key:"panToNodeId",value:function(t){var e=this.graph.nodes.find(function(e){return e.id===t});e&&this.panTo(e.position.x,e.position.y)}},{key:"panWithConstraints",value:function(t,e){var n=e.movementX,r=e.movementY;switch(this.isMinimapPanning&&(n=-this.minimapScaleCoefficient*n*this.zoomLevel,r=-this.minimapScaleCoefficient*r*this.zoomLevel),t){case za.Horizontal:this.pan(n,0);break;case za.Vertical:this.pan(0,r);break;default:this.pan(n,r)}}},{key:"updateMidpointOnEdge",value:function(t,e){if(t&&e)if(e.length%2==1)t.midPoint=e[Math.floor(e.length/2)];else{var n=e[e.length/2],r=e[e.length/2-1];t.midPoint={x:(n.x+r.x)/2,y:(n.y+r.y)/2}}}}]),a}(Hi);return e.\u0275fac=function(t){return new(t||e)(m.Y36(m.SBq),m.Y36(m.R0b),m.Y36(m.sBO),m.Y36(qa))},e.\u0275cmp=m.Xpm({type:e,selectors:[["ngx-graph"]],contentQueries:function(t,e,n){var r;(1&t&&(m.Suo(n,sa,5),m.Suo(n,ua,5),m.Suo(n,ca,5),m.Suo(n,la,5),m.Suo(n,ha,5)),2&t)&&(m.iGM(r=m.CRH())&&(e.linkTemplate=r.first),m.iGM(r=m.CRH())&&(e.nodeTemplate=r.first),m.iGM(r=m.CRH())&&(e.clusterTemplate=r.first),m.iGM(r=m.CRH())&&(e.defsTemplate=r.first),m.iGM(r=m.CRH())&&(e.miniMapNodeTemplate=r.first))},viewQuery:function(t,e){var n;(1&t&&(m.Gf(Gi,7,m.SBq),m.Gf(fa,5),m.Gf(da,5)),2&t)&&(m.iGM(n=m.CRH())&&(e.chart=n.first),m.iGM(n=m.CRH())&&(e.nodeElements=n),m.iGM(n=m.CRH())&&(e.linkElements=n))},hostBindings:function(t,e){1&t&&m.NdJ("mousemove",function(t){return e.onMouseMove(t)},!1,m.evT)("mousedown",function(t){return e.onMouseDown(t)},!1,m.evT)("click",function(t){return e.graphClick(t)},!1,m.evT)("touchmove",function(t){return e.onTouchMove(t)},!1,m.evT)("mouseup",function(t){return e.onMouseUp(t)},!1,m.evT)},inputs:{legend:"legend",nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",draggingEnabled:"draggingEnabled",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapPosition:"miniMapPosition",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY",layout:"layout",curve:"curve",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layoutSettings:"layoutSettings",miniMapMaxHeight:"miniMapMaxHeight"},outputs:{activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[m.qOj,m.TTD],ngContentSelectors:Ma,decls:5,vars:11,consts:[["mouseWheel","",3,"view","showLegend","legendOptions","legendLabelClick","legendLabelActivate","legendLabelDeactivate","mouseWheelUp","mouseWheelDown"],["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(t,e){1&t&&(m.F$t(),m.TgZ(0,"ngx-charts-chart",0),m.NdJ("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t)})("legendLabelDeactivate",function(t){return e.onDeactivate(t)})("mouseWheelUp",function(t){return e.onZoom(t,"in")})("mouseWheelDown",function(t){return e.onZoom(t,"out")}),m.YNc(1,Sa,12,12,"g",1),m.O4$(),m.TgZ(2,"clipPath"),m._UZ(3,"rect"),m.qZA(),m.YNc(4,Na,6,15,"g",2),m.qZA()),2&t&&(m.Q6J("view",m.WLB(8,Za,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions),m.xp6(1),m.Q6J("ngIf",e.initialized&&e.graph),m.xp6(1),m.uIk("id",e.minimapClipPathId),m.xp6(1),m.uIk("width",e.graphDims.width/e.minimapScaleCoefficient)("height",e.graphDims.height/e.minimapScaleCoefficient),m.xp6(1),m.Q6J("ngIf",e.showMiniMap))},directives:function(){return[Gi,Ja,d.O5,d.sg,d.tP]},styles:[".minimap .minimap-background{fill:rgba(0,0,0,.1)}.minimap .minimap-drag{cursor:pointer;fill:rgba(0,0,0,.2);stroke:#fff;stroke-dasharray:2px;stroke-dashoffset:2px;stroke-width:1px}.minimap .minimap-drag.panning{fill:rgba(0,0,0,.3)}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}.graph .edge{fill:none;stroke:#666}.graph .edge .edge-label{fill:#251e1e;font-size:12px;stroke:none}.graph .panning-rect{cursor:move;fill:transparent}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}"],encapsulation:2,changeDetection:0}),Ye([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Ya(n.value,500,void 0)}),this[e]}}},Be("design:type",Function),Be("design:paramtypes",[]),Be("design:returntype",void 0)],e.prototype,"updateMinimap",null),e}(),Ja=function(){var t=function(){function t(){f(this,t),this.mouseWheelUp=new m.vpe,this.mouseWheelDown=new m.vpe}return p(t,[{key:"onMouseWheelChrome",value:function(t){this.mouseWheelFunc(t)}},{key:"onMouseWheelFirefox",value:function(t){this.mouseWheelFunc(t)}},{key:"onWheel",value:function(t){this.mouseWheelFunc(t)}},{key:"onMouseWheelIE",value:function(t){this.mouseWheelFunc(t)}},{key:"mouseWheelFunc",value:function(t){window.event&&(t=window.event);var e=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail||t.deltaY||t.deltaX)),n=t.wheelDelta?e<0:e>0;(t.wheelDelta?e>0:e<0)?this.mouseWheelUp.emit(t):n&&this.mouseWheelDown.emit(t),t.returnValue=!1,t.preventDefault&&t.preventDefault()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=m.lG2({type:t,selectors:[["","mouseWheel",""]],hostBindings:function(t,e){1&t&&m.NdJ("mousewheel",function(t){return e.onMouseWheelChrome(t)})("DOMMouseScroll",function(t){return e.onMouseWheelFirefox(t)})("wheel",function(t){return e.onWheel(t)})("onmousewheel",function(t){return e.onMouseWheelIE(t)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),t}(),Ga=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({providers:[qa],imports:[[to]]}),t}(),Va=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[po],Ga]}),t}();function Ha(){}function Qa(t){return null==t?Ha:function(){return this.querySelector(t)}}function Wa(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Xa(){return[]}function $a(t){return null==t?Xa:function(){return this.querySelectorAll(t)}}function Ka(t){return function(){return this.matches(t)}}function ts(t){return function(e){return e.matches(t)}}var es=Array.prototype.find;function ns(){return this.firstElementChild}var rs=Array.prototype.filter;function is(){return this.children}function os(t){return new Array(t.length)}function as(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ss(t){return function(){return t}}function us(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;se?1:t>=e?0:NaN}as.prototype={constructor:as,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var fs="http://www.w3.org/1999/xhtml",ds={svg:"http://www.w3.org/2000/svg",xhtml:fs,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ps(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),ds.hasOwnProperty(e)?{space:ds[e],local:t}:t}function gs(t){return function(){this.removeAttribute(t)}}function vs(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ms(t,e){return function(){this.setAttribute(t,e)}}function ys(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function _s(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function ws(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function bs(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function xs(t){return function(){this.style.removeProperty(t)}}function Es(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ts(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function As(t,e){return t.style.getPropertyValue(e)||bs(t).getComputedStyle(t,null).getPropertyValue(e)}function Ss(t){return function(){delete this[t]}}function ks(t,e){return function(){this[t]=e}}function Is(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Cs(t){return t.trim().split(/^|\s+/)}function Ds(t){return t.classList||new Ns(t)}function Ns(t){this._node=t,this._names=Cs(t.getAttribute("class")||"")}function Zs(t,e){for(var n=Ds(t),r=-1,i=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function Ks(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var iu=[null];function ou(t,e){this._groups=t,this._parents=e}function au(){return new ou([[document.documentElement]],iu)}ou.prototype=au.prototype=e({constructor:ou,select:function(t){"function"!=typeof t&&(t=Qa(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=b&&(b=w+1);!(_=v[b])&&++b=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=hs);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?xs:"function"==typeof e?Ts:Es)(t,e,null==n?"":n)):As(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ss:"function"==typeof e?Is:ks)(t,e)):this.node()[t]},classed:function(t,e){var n=Cs(t+"");if(arguments.length<2){for(var r=Ds(this.node()),i=-1,o=n.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ku(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ku(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=vu.exec(t))?new Du(e[1],e[2],e[3],1):(e=mu.exec(t))?new Du(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=yu.exec(t))?ku(e[1],e[2],e[3],e[4]):(e=_u.exec(t))?ku(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=wu.exec(t))?Ou(e[1],e[2]/100,e[3]/100,1):(e=bu.exec(t))?Ou(e[1],e[2]/100,e[3]/100,e[4]):xu.hasOwnProperty(t)?Su(xu[t]):"transparent"===t?new Du(NaN,NaN,NaN,0):null}function Su(t){return new Du(t>>16&255,t>>8&255,255&t,1)}function ku(t,e,n,r){return r<=0&&(t=e=n=NaN),new Du(t,e,n,r)}function Iu(t){return t instanceof lu||(t=Au(t)),t?new Du((t=t.rgb()).r,t.g,t.b,t.opacity):new Du}function Cu(t,e,n,r){return 1===arguments.length?Iu(t):new Du(t,e,n,null==r?1:r)}function Du(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Nu(){return"#"+Mu(this.r)+Mu(this.g)+Mu(this.b)}function Zu(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Mu(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ou(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Lu(t,e,n,r)}function Ru(t){if(t instanceof Lu)return new Lu(t.h,t.s,t.l,t.opacity);if(t instanceof lu||(t=Au(t)),!t)return new Lu;if(t instanceof Lu)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&u<1?0:a,new Lu(a,s,u,t.opacity)}function Lu(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Uu(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Pu(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}uu(lu,Au,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Eu,formatHex:Eu,formatHsl:function(){return Ru(this).formatHsl()},formatRgb:Tu,toString:Tu}),uu(Du,Cu,cu(lu,{brighter:function(t){return t=null==t?hu:Math.pow(hu,t),new Du(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Du(this.r*t,this.g*t,this.b*t,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:Nu,formatHex:Nu,formatRgb:Zu,toString:Zu})),uu(Lu,function(t,e,n,r){return 1===arguments.length?Ru(t):new Lu(t,e,n,null==r?1:r)},cu(lu,{brighter:function(t){return t=null==t?hu:Math.pow(hu,t),new Lu(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Lu(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Du(Uu(t>=240?t-240:t+120,i,r),Uu(t,i,r),Uu(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Fu=function(t){return function(){return t}};function qu(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Fu(isNaN(t)?e:t)}var zu=function t(e){var n=function(t){return 1==(t=+t)?qu:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Fu(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Cu(t)).r,(e=Cu(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=qu(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function ju(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1];return Pu((n-r/e)*e,r>0?t[r-1]:2*i-o,i,o,ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Yu(n,r)})),o=Ju.lastIndex;return o0)throw new Error("too late; already scheduled");return n}function $u(t,e){var n=Ku(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Ku(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var tc,ec=180/Math.PI,nc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function rc(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Yu(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Yu(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,u),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Yu(t,n)},{i:s-2,x:Yu(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(t){for(var e,n=-1,r=u.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Xu:$u;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var kc=su.prototype.constructor;function Ic(t){return function(){this.style.removeProperty(t)}}function Cc(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Dc(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Cc(t,o,n)),r}return o._value=e,o}function Nc(t){return function(e){this.textContent=t.call(this,e)}}function Zc(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Nc(r)),e}return r._value=t,r}var Mc=0;function Oc(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Rc(){return++Mc}var Lc=su.prototype;Oc.prototype=(function(t){return su().transition(t)}).prototype=e({constructor:Oc,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Qa(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}(this,t)})},su.prototype.transition=function(t){var e,n;t instanceof Oc?(e=t._id,t=t._name):(e=Rc(),(n=Uc).time=(0,Qo.zO)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Bc.prototype,Bc.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};var Jc,Gc=Array.prototype.map;function Vc(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;++s=0;)e+=n[r].value;else e=1;t.value=e}function Wc(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=$c)):void 0===e&&(e=Xc);for(var n,r,i,o,a,s=new el(t),u=[s];n=u.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new el(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(tl)}function Xc(t){return t.children}function $c(t){return Array.isArray(t)?t[1]:null}function Kc(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function tl(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function el(t){this.data=t,this.depth=this.height=0,this.parent=null}void 0===(Jc={thousands:",",grouping:[3],currency:["$",""]}).grouping||void 0===Jc.thousands||Gc.call(Jc.grouping,Number),void 0===Jc.numerals||Gc.call(Jc.numerals,String),function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,v,m=[],y=e.children,_=0,w=0,b=y.length,x=e.value;_f&&(f=s),v=l*l*g,(d=Math.max(f/v,v/h))>p){l-=s;break}p=d}m.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),el.prototype=Wc.prototype=e({constructor:el,count:function(){return this.eachAfter(Qc)},each:function(t,e){var n,r=-1,i=c(this);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.call(e,o,++r,this)}}catch(a){i.e(a)}finally{i.f()}return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],u=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r=0;--r)o.push(n[r]);return this},find:function(t,e){var n,r=-1,i=c(this);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(t.call(e,o,++r,this))return o}}catch(a){i.e(a)}finally{i.f()}},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return Wc(this).eachBefore(Kc)}},Symbol.iterator,regeneratorRuntime.mark(function t(){var e,n,r,i,o,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a=[o=this];case 1:e=a.reverse(),a=[];case 2:if(!(o=e.pop())){t.next=9;break}return t.next=5,o;case 5:if(!(n=o.children)){t.next=7;break}for(r=0,i=n.length;r0?t.hostView.rootNodes[0]:t.location.nativeElement}},{key:"getRootViewContainerNode",value:function(t){return this.getComponentRootNode(t)}},{key:"projectComponentBindings",value:function(t,e){if(e){if(void 0!==e.inputs){var n,r=c(Object.getOwnPropertyNames(e.inputs));try{for(r.s();!(n=r.n()).done;){var i=n.value;t.instance[i]=e.inputs[i]}}catch(u){r.e(u)}finally{r.f()}}if(void 0!==e.outputs){var o,a=c(Object.getOwnPropertyNames(e.outputs));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.instance[s]=e.outputs[s]}}catch(u){a.e(u)}finally{a.f()}}}return t}},{key:"appendComponent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;n||(n=this.getRootViewContainer());var r=this.getComponentRootNode(n),i=new Ge.F0(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Ge.C5(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}],[{key:"setGlobalRootViewContainer",value:function(e){t.globalRootViewContainer=e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.LFG(m.z2F),m.LFG(m._Vd),m.LFG(m.zs3))},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t}();function ul(t,e,n){var r,i,o;n=n||{};var a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){var c=+new Date;s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var cl=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function ll(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function hl(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}var fl,dl,pl,gl,vl=function(){function t(){f(this,t)}return p(t,null,[{key:"calculateVerticalAlignment",value:function(t,e,n){var r=ll(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}},{key:"calculateVerticalCaret",value:function(t,e,n,r){var i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);var o=ll(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}},{key:"calculateHorizontalAlignment",value:function(t,e,n){var r=hl(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}},{key:"calculateHorizontalCaret",value:function(t,e,n,r){var i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);var o=hl(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}},{key:"shouldFlip",value:function(t,e,n,r){var i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}},{key:"positionCaret",value:function(e,n,r,i,o){var a=0,s=0;return e===cl.right?(s=-7,a=t.calculateVerticalCaret(r,n,i,o)):e===cl.left?(s=n.width,a=t.calculateVerticalCaret(r,n,i,o)):e===cl.top?(a=n.height,s=t.calculateHorizontalCaret(r,n,i,o)):e===cl.bottom&&(a=-7,s=t.calculateHorizontalCaret(r,n,i,o)),{top:a,left:s}}},{key:"positionContent",value:function(e,n,r,i,o){var a=0,s=0;return e===cl.right?(s=r.left+r.width+i,a=t.calculateVerticalAlignment(r,n,o)):e===cl.left?(s=r.left-n.width-i,a=t.calculateVerticalAlignment(r,n,o)):e===cl.top?(a=r.top-n.height-i,s=t.calculateHorizontalAlignment(r,n,o)):e===cl.bottom&&(a=r.top+r.height+i,s=t.calculateHorizontalAlignment(r,n,o)),{top:a,left:s}}},{key:"determinePlacement",value:function(e,n,r,i){if(t.shouldFlip(r,n,e,i)){if(e===cl.right)return cl.left;if(e===cl.left)return cl.right;if(e===cl.top)return cl.bottom;if(e===cl.bottom)return cl.top}return e}}]),t}(),ml=function(){var t=function(){function t(e,n,r){f(this,t),this.element=e,this.renderer=n,this.platformId=r}return p(t,[{key:"cssClasses",get:function(){var t="ngx-charts-tooltip-content";return t+=" position-".concat(this.placement),t+=" type-".concat(this.type),t+=" ".concat(this.cssClass)}},{key:"ngAfterViewInit",value:function(){setTimeout(this.position.bind(this))}},{key:"position",value:function(){var t=this;if((0,d.NF)(this.platformId)){var e=this.element.nativeElement,n=this.host.nativeElement.getBoundingClientRect();if(n.height||n.width){var r=e.getBoundingClientRect();this.checkFlip(n,r),this.positionContent(e,n,r),this.showCaret&&this.positionCaret(n,r),setTimeout(function(){return t.renderer.addClass(e,"animate")},1)}}}},{key:"positionContent",value:function(t,e,n){var r=vl.positionContent(this.placement,n,e,this.spacing,this.alignment),i=r.top,o=r.left;this.renderer.setStyle(t,"top","".concat(i,"px")),this.renderer.setStyle(t,"left","".concat(o,"px"))}},{key:"positionCaret",value:function(t,e){var n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),i=vl.positionCaret(this.placement,e,t,r,this.alignment),o=i.top,a=i.left;this.renderer.setStyle(n,"top","".concat(o,"px")),this.renderer.setStyle(n,"left","".concat(a,"px"))}},{key:"checkFlip",value:function(t,e){this.placement=vl.determinePlacement(this.placement,e,t,this.spacing)}},{key:"onWindowResize",value:function(){this.position()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(m.SBq),m.Y36(m.Qsj),m.Y36(m.Lbi))},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){var n;(1&t&&m.Gf(nl,5),2&t)&&(m.iGM(n=m.CRH())&&(e.caretElm=n.first))},hostVars:2,hostBindings:function(t,e){1&t&&m.NdJ("resize",function(){return e.onWindowResize()},!1,m.Jf7),2&t&&m.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(m.TgZ(0,"div"),m._UZ(1,"span",0,1),m.TgZ(3,"div",2),m.YNc(4,ol,2,4,"span",3),m.YNc(5,al,1,1,"span",4),m.qZA(),m.qZA()),2&t&&(m.xp6(1),m.Gre("tooltip-caret position-",e.placement,""),m.Q6J("hidden",!e.showCaret),m.xp6(3),m.Q6J("ngIf",!e.title),m.xp6(1),m.Q6J("ngIf",e.title))},directives:[d.O5,d.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);o>3&&a&&Object.defineProperty(e,n,a)}([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:ul(n.value,100,void 0)}),this[e]}}}],t.prototype,"onWindowResize",null),t}(),yl=function(){var t=function(t){r(n,t);var e=o(n);function n(t){var r;return f(this,n),(r=e.call(this,t)).type=ml,r}return n}(function(){function t(e){f(this,t),this.injectionService=e,this.defaults={},this.components=new Map}return p(t,[{key:"getByType",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.type;return this.components.get(t)}},{key:"create",value:function(t){return this.createByType(this.type,t)}},{key:"createByType",value:function(t,e){e=this.assignDefaults(e);var n=this.injectComponent(t,e);return this.register(t,n),n}},{key:"destroy",value:function(t){var e=this.components.get(t.componentType);if(e&&e.length){var n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}},{key:"destroyAll",value:function(){this.destroyByType(this.type)}},{key:"destroyByType",value:function(t){var e=this.components.get(t);if(e&&e.length)for(var n=e.length-1;n>=0;)this.destroy(e[n--])}},{key:"injectComponent",value:function(t,e){return this.injectionService.appendComponent(t,e)}},{key:"assignDefaults",value:function(t){var e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}},{key:"register",value:function(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}]),t}());return t.\u0275fac=function(e){return new(e||t)(m.LFG(sl))},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t}(),_l=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[d.ez]]}),t}(),wl=((pl={})[pl.popover="popover"]="popover",pl[pl.tooltip="tooltip"]="tooltip",pl),bl=((dl={})[dl.left="left"]="left",dl[dl.center="center"]="center",dl[dl.right="right"]="right",dl),xl=((fl={})[fl.all="all"]="all",fl[fl.focus="focus"]="focus",fl[fl.mouseover="mouseover"]="mouseover",fl),El=((gl=function(){function t(e,n,r){f(this,t),this.tooltipService=e,this.viewContainerRef=n,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=cl.top,this.tooltipAlignment=bl.center,this.tooltipType=wl.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=xl.all,this.tooltipImmediateExit=!1,this.show=new m.vpe,this.hide=new m.vpe}return p(t,[{key:"listensForFocus",get:function(){return this.tooltipShowEvent===xl.all||this.tooltipShowEvent===xl.focus}},{key:"listensForHover",get:function(){return this.tooltipShowEvent===xl.all||this.tooltipShowEvent===xl.mouseover}},{key:"ngOnDestroy",value:function(){this.hideTooltip(!0)}},{key:"onFocus",value:function(){this.listensForFocus&&this.showTooltip()}},{key:"onBlur",value:function(){this.listensForFocus&&this.hideTooltip(!0)}},{key:"onMouseEnter",value:function(){this.listensForHover&&this.showTooltip()}},{key:"onMouseLeave",value:function(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}},{key:"onMouseClick",value:function(){this.listensForHover&&this.hideTooltip(!0)}},{key:"showTooltip",value:function(t){var e=this;if(!this.component&&!this.tooltipDisabled){var n=t?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.tooltipService.destroyAll();var t=e.createBoundOptions();e.component=e.tooltipService.create(t),setTimeout(function(){e.component&&e.addHideListeners(e.component.instance.element.nativeElement)},10),e.show.emit(!0)},n)}}},{key:"addHideListeners",value:function(t){var e=this;this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",function(){clearTimeout(e.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",function(){e.hideTooltip(e.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",function(n){t.contains(n.target)||e.hideTooltip()}))}},{key:"hideTooltip",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.component){var n=function(){t.mouseLeaveContentEvent&&t.mouseLeaveContentEvent(),t.mouseEnterContentEvent&&t.mouseEnterContentEvent(),t.documentClickEvent&&t.documentClickEvent(),t.hide.emit(!0),t.tooltipService.destroy(t.component),t.component=void 0};clearTimeout(this.timeout),e?n():this.timeout=setTimeout(n,this.tooltipHideTimeout)}}},{key:"createBoundOptions",value:function(){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}}}]),t}()).\u0275fac=function(t){return new(t||gl)(m.Y36(yl),m.Y36(m.s_b),m.Y36(m.Qsj))},gl.\u0275dir=m.lG2({type:gl,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&m.NdJ("focusin",function(){return e.onFocus()})("blur",function(){return e.onBlur()})("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(t){return e.onMouseLeave(t.target)})("click",function(){return e.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",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),gl),Tl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({providers:[sl,yl],imports:[[d.ez]]}),t}();"undefined"!=typeof window?window:"undefined"!=typeof global&&global;var Al=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[d.ez,_l,Tl],d.ez,_l,Tl]}),t}(),Sl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),kl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Il=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Cl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Dl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}();Math;var Nl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Zl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al,Nl,Dl]]}),t}(),Ml=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Ol=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Rl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al,Nl,kl]]}),t}(),Ll=function(){var t=function t(){f(this,t),"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[Al,Sl,kl,Il,Cl,Dl,Zl,Ml,Nl,Ol,Rl]}),t}();function Ul(t,e){1&t&&(m.TgZ(0,"div"),m._UZ(1,"mat-spinner",3),m.qZA())}function Pl(t,e){if(1&t&&(m.TgZ(0,"span"),m._uU(1),m.ALo(2,"translate"),m.TgZ(3,"strong"),m._uU(4),m.qZA(),m.qZA()),2&t){var n=m.oxw(3);m.xp6(1),m.hij(" ",m.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),m.xp6(3),m.Oqu(n.service)}}function Fl(t,e){1&t&&(m.O4$(),m.TgZ(0,"marker",10),m._UZ(1,"path",11),m.qZA())}function ql(t,e){if(1&t&&(m.O4$(),m.TgZ(0,"g",12),m._UZ(1,"rect"),m.TgZ(2,"text",13),m._uU(3),m.qZA(),m.qZA()),2&t){var n=e.$implicit;m.Q6J("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",n.tooltip),m.xp6(1),m.uIk("width",n.dimension.width)("height",n.dimension.height)("fill",n.color),m.xp6(1),m.uIk("x",10)("y",n.dimension.height/2),m.xp6(1),m.Oqu(n.label)}}function zl(t,e){if(1&t&&(m.O4$(),m.TgZ(0,"g",14),m._UZ(1,"path",15),m.TgZ(2,"text",16),m.TgZ(3,"textPath",17),m._uU(4),m.qZA(),m.qZA(),m.qZA()),2&t){var n=e.$implicit;m.xp6(3),m.uIk("href","#"+n.id),m.xp6(1),m.hij(" ",n.label," ")}}var jl=function(t,e){return[t,e]};function Yl(t,e){if(1&t&&(m.TgZ(0,"div"),m._uU(1),m.ALo(2,"translate"),m.TgZ(3,"strong"),m._uU(4),m.qZA(),m._uU(5),m.ALo(6,"translate"),m.TgZ(7,"strong"),m._uU(8),m.qZA(),m.YNc(9,Pl,5,4,"span",4),m.TgZ(10,"div",5),m.TgZ(11,"ngx-graph",6),m.YNc(12,Fl,2,0,"ng-template",null,7,m.W1O),m.YNc(14,ql,4,9,"ng-template",null,8,m.W1O),m.YNc(16,zl,5,2,"ng-template",null,9,m.W1O),m.qZA(),m.qZA(),m.qZA()),2&t){var n=m.oxw(2);m.xp6(1),m.hij(" ",m.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),m.xp6(3),m.AsE("",n.user.firstName," ",n.user.lastName,""),m.xp6(1),m.hij(" ",m.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),m.xp6(3),m.Oqu(n.destination),m.xp6(1),m.Q6J("ngIf","noService"!==n.service),m.xp6(2),m.Q6J("links",n.hierarchialGraph.links)("nodes",n.hierarchialGraph.nodes)("curve",n.curve)("draggingEnabled",!1)("zoomToFit$",n.zoomToFit$)("view",m.WLB(16,jl,n.innerWidth,n.innerHeight))}}function Bl(t,e){if(1&t&&(m.TgZ(0,"span"),m._uU(1),m.ALo(2,"translate"),m.TgZ(3,"strong"),m._uU(4),m.qZA(),m.qZA()),2&t){var n=m.oxw(3);m.xp6(1),m.hij(" ",m.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),m.xp6(3),m.Oqu(n.service)}}function Jl(t,e){if(1&t&&(m._uU(0),m.ALo(1,"translate"),m.TgZ(2,"strong"),m._uU(3),m.qZA(),m._uU(4),m.ALo(5,"translate"),m.TgZ(6,"strong"),m._uU(7),m.qZA(),m.YNc(8,Bl,5,4,"span",4),m._uU(9),m.ALo(10,"translate")),2&t){var n=m.oxw(2);m.hij(" ",m.lcZ(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),m.xp6(3),m.AsE("",n.user.firstName," ",n.user.lastName,""),m.xp6(1),m.hij(" ",m.lcZ(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),m.xp6(3),m.Oqu(n.destination),m.xp6(1),m.Q6J("ngIf","noService"!==n.service),m.xp6(1),m.hij(" ",m.lcZ(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function Gl(t,e){if(1&t&&(m.YNc(0,Yl,18,19,"div",1),m.YNc(1,Jl,11,13,"ng-template",null,2,m.W1O)),2&t){var n=m.MAs(2),r=m.oxw();m.Q6J("ngIf",r.isConnected)("ngIfElse",n)}}var Vl=function(){var t=function(){function t(e,n,r,i,o,a,s,u,c){f(this,t),this.route=e,this.facilityManager=n,this.userService=r,this.membersService=i,this.serviceService=o,this.resourceManager=a,this.groupService=s,this.voService=u,this.translate=c,this.idCounter=0,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=ze,this.zoomToFit$=new je.xQ}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(function(e){console.log(e),t.destination=e.destination,t.service=e.service,t.userService.getUserById(e.user).subscribe(function(e){t.user=e,t.facilityManager.getFacilitiesByDestination(t.destination).subscribe(function(e){t.facilities=e,t.membersService.getMembersByUser(t.user.id).subscribe(function(e){if(t.membership=e,0===t.membership.length||0===t.facilities.length)return t.loading=!1,void(t.isConnected=!1);t.showGraph()})})})})}},{key:"showGraph",value:function(){var t=this,e=""+this.id();this.hierarchialGraph.nodes=[].concat(n(this.hierarchialGraph.nodes),[{id:e,label:this.user.firstName+" "+this.user.lastName,tooltip:this.localUser,color:"#FFFFCC",tip:"user: "+this.user.id}]);var r=""+this.id(),i="destination no id";this.hierarchialGraph.nodes="noService"===this.service?[].concat(n(this.hierarchialGraph.nodes),[{id:r,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:i}]):[].concat(n(this.hierarchialGraph.nodes),[{id:r,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:i}]);var o,a=c(this.facilities);try{var s=function(){var e=o.value;t.serviceService.getAllRichDestinationsForFacility(e.id).subscribe(function(n){t.connectToService(e,n),t.delay(2e3).then(function(){t.zoomToFit$.next(!0),t.loading=!1})})};for(a.s();!(o=a.n()).done;)s()}catch(u){a.e(u)}finally{a.f()}}},{key:"connectToService",value:function(t,e){var n=this;this.isConnectedToService(e)&&this.facilityManager.getAssignedResourcesForFacility(t.id).subscribe(function(e){for(var r=0;r0)}}function Ah(t,e){1&t&&(m.TgZ(0,"app-alert",15),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.Q6J("alert_type","info"),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function Sh(t,e){1&t&&(m.TgZ(0,"app-alert",16),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function kh(t,e){1&t&&m._UZ(0,"mat-spinner",17)}var Ih=function(){var t=function(){function t(e,n,r,i,o,a,s){f(this,t),this.dialogRef=e,this.data=n,this.tableConfigService=r,this.userManager=i,this.storeService=o,this.notificator=a,this.translate=s,this.loading=!1,this.selection=new k.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=ht.Iz}return p(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new G.NI("",[G.kI.required,G.kI.pattern(".*[\\S]+.*")])}},{key:"onAdd",value:function(){var t,e,n=this;this.loading=!0,this.isService?(t=this.selection.selected[0].id,e=this.userId):(t=this.userId,e=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(t,e).subscribe(function(){n.notificator.showSuccess(n.translate.instant("DIALOGS.CONNECT_IDENTITY.SUCCESS")),n.dialogRef.close(!0)})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSearchByString",value:function(){var t=this;if(this.searchCtrl.invalid)this.searchCtrl.markAllAsTouched();else{this.loading=!0,this.firstSearchDone=!0;var e=[bh.r.USER_DEF_ORGANIZATION,bh.r.USER_DEF_PREFERRED_MAIL];e=e.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,e).subscribe(function(e){t.identities=t.filterIdentities(e),t.loading=!1},function(){t.loading=!1})}}},{key:"onKeyInput",value:function(t){"Enter"===t.key&&this.onSearchByString()}},{key:"filterIdentities",value:function(t){return t.filter(this.isService?function(t){return!t.serviceUser}:function(t){return t.serviceUser})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(ht.dB),m.Y36(N.Fv),m.Y36(D.d6),m.Y36(D.V6),m.Y36(x.sK))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-connect-identity-dialog"]],decls:26,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"],["mat-flat-button","","color","primary",1,"mr-2","search-btn",3,"disabled","click"],[4,"ngIf"],[3,"alert_type",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"pageSize","displayedColumns","users","disableRouting","selection","page",4,"ngIf"],[3,"pageSize","displayedColumns","users","disableRouting","selection","page"],[3,"alert_type"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(m.TgZ(0,"div",0),m.NdJ("keyup",function(t){return e.onKeyInput(t)}),m.TgZ(1,"h1",1),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",2),m.TgZ(5,"mat-form-field",3),m.TgZ(6,"label"),m._UZ(7,"input",4),m.ALo(8,"translate"),m.qZA(),m.TgZ(9,"mat-error"),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.qZA(),m.TgZ(12,"button",5),m.NdJ("click",function(){return e.onSearchByString()}),m.TgZ(13,"mat-icon"),m._uU(14,"search"),m.qZA(),m.qZA(),m.YNc(15,Th,2,1,"div",6),m.YNc(16,Ah,3,4,"app-alert",7),m.YNc(17,Sh,3,3,"app-alert",8),m.qZA(),m.YNc(18,kh,1,0,"mat-spinner",9),m.TgZ(19,"div",10),m.TgZ(20,"button",11),m.NdJ("click",function(){return e.onCancel()}),m._uU(21),m.ALo(22,"translate"),m.qZA(),m.TgZ(23,"button",12),m.NdJ("click",function(){return e.onAdd()}),m._uU(24),m.ALo(25,"translate"),m.qZA(),m.qZA(),m.qZA()),2&t&&(m.Tol(e.theme),m.xp6(2),m.Oqu(m.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE")),m.xp6(5),m.s9C("placeholder",m.lcZ(8,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),m.Q6J("formControl",e.searchCtrl),m.xp6(3),m.hij(" ",m.lcZ(11,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),m.xp6(2),m.Q6J("disabled",e.loading),m.xp6(3),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.firstSearchDone),m.xp6(1),m.Q6J("ngIf",!e.loading&&e.firstSearchDone&&0===e.identities.length),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(3),m.hij(" ",m.lcZ(22,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),m.xp6(2),m.Q6J("disabled",0===e.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(25,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},directives:[I.uh,I.xY,B.KE,J.Nt,G.Fj,G.JJ,G.oH,B.TO,Z.lW,w.Hw,d.O5,I.H8,xh.C,O.w,M.$g],pipes:[x.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),t}();function Ch(t,e){1&t&&m._UZ(0,"th",12)}function Dh(t,e){if(1&t&&(m.TgZ(0,"td",13),m._uU(1),m.ALo(2,"userFullName"),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.hij(" ",m.lcZ(2,1,n)," ")}}function Nh(t,e){1&t&&m._UZ(0,"tr",14)}function Zh(t,e){1&t&&m._UZ(0,"tr",15)}var Mh=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.dialogRef=e,this.data=n,this.userManager=r,this.notificator=i,this.translate=o,this.displayedColumns=["name"]}return p(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.userId=this.data.userId,this.dataSource=new C.by([this.data.specificUser]),this.isService=this.data.isService}},{key:"onConfirm",value:function(){var t,e,n=this;this.isService?(t=this.dataSource.data[0].id,e=this.userId):(t=this.userId,e=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(t,e).subscribe(function(){n.notificator.showSuccess(n.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),n.dialogRef.close(!0)})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(N.Fv),m.Y36(D.V6),m.Y36(x.sK))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-disconnect-identity-dialog"]],decls:24,vars:21,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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(t,e){1&t&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div"),m.TgZ(4,"div",1),m.TgZ(5,"p"),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"div",2),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.TgZ(11,"table",3),m.ynx(12,4),m.YNc(13,Ch,1,0,"th",5),m.YNc(14,Dh,3,3,"td",6),m.BQk(),m.YNc(15,Nh,1,0,"tr",7),m.YNc(16,Zh,1,0,"tr",8),m.qZA(),m.qZA(),m.TgZ(17,"div",9),m.TgZ(18,"button",10),m.NdJ("click",function(){return e.onCancel()}),m._uU(19),m.ALo(20,"translate"),m.qZA(),m.TgZ(21,"button",11),m.NdJ("click",function(){return e.onConfirm()}),m._uU(22),m.ALo(23,"translate"),m.qZA(),m.qZA(),m.qZA()),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,11,"DIALOGS.DISCONNECT_IDENTITY.TITLE")),m.xp6(2),m.Tol(e.theme),m.xp6(3),m.Oqu(m.lcZ(7,13,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION")),m.xp6(3),m.hij(" ",m.lcZ(10,15,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),m.xp6(2),m.Q6J("dataSource",e.dataSource),m.xp6(4),m.Q6J("matHeaderRowDef",e.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",e.displayedColumns),m.xp6(3),m.hij(" ",m.lcZ(20,17,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),m.xp6(3),m.hij(" ",m.lcZ(23,19,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},directives:[I.uh,I.xY,C.BZ,C.w1,C.fO,C.Dz,C.as,C.nj,I.H8,Z.lW,C.ge,C.ev,C.XQ,C.Gk],pipes:[x.X$,eh.d],styles:[""]}),t}();function Oh(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-refresh-button",7),m.NdJ("refresh",function(){return m.CHM(n),m.oxw().refreshTable()}),m.qZA()}}function Rh(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().onAdd()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE")," "))}function Lh(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",9),m.NdJ("click",function(){return m.CHM(n),m.oxw().onRemove()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE")," ")}}function Uh(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"app-users-list",10),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("pageSize",r.pageSize)("users",r.identities)("selection",r.selection)("displayedColumns",r.displayedColumns)}}function Ph(t,e){1&t&&(m.TgZ(0,"app-alert",11),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES")," "))}function Fh(t,e){1&t&&m._UZ(0,"mat-spinner",12)}var qh=function(){var t=function(){function t(e,n,r,i,o,a){f(this,t),this.route=e,this.dialog=n,this.router=r,this.tableConfigService=i,this.userManager=o,this.authResolver=a,this.loading=!1,this.selection=new k.Ov(!1,[]),this.identities=[],this.tableId=ht.Iz,this.displayedColumns=["select","id","user","name"]}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.parent.params.subscribe(function(e){t.userId=e.userId,t.userManager.getSpecificUsersByUser(t.userId).subscribe(function(e){t.identities=e,t.loading=!1})})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(function(e){t.identities=e,t.selection.clear(),t.loading=!1})}},{key:"onAdd",value:function(){var t=this,e=(0,lt.kZ)();e.width="1250px",e.data={userId:this.userId,theme:"user-theme",isService:!1},this.dialog.open(Ih,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"onRemove",value:function(){var t=this,e=(0,lt.kZ)();e.width="650px",e.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],theme:"user-theme"},this.dialog.open(Mh,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(g.gz),m.Y36(I.uw),m.Y36(g.F0),m.Y36(ht.dB),m.Y36(N.Fv),m.Y36(D.x4))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-user-settings-service-identities"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"pageSize","users","selection","displayedColumns","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"pageSize","users","selection","displayedColumns","page"],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,Oh,1,0,"perun-web-apps-refresh-button",1),m.YNc(5,Rh,3,3,"button",2),m.YNc(6,Lh,3,4,"button",3),m.YNc(7,Uh,1,4,"app-users-list",4),m.YNc(8,Ph,3,3,"app-alert",5),m.qZA(),m.YNc(9,Fh,1,0,"mat-spinner",6)),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,7,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),m.xp6(2),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",void 0!==e.identities&&e.identities.length>0),m.xp6(1),m.Q6J("ngIf",!e.loading&&(void 0===e.identities||0===e.identities.length)),m.xp6(1),m.Q6J("ngIf",e.loading))},directives:[d.O5,gt.t,Z.lW,xh.C,O.w,M.$g],pipes:[x.X$],styles:[""]}),t}(),zh=l(56238),jh=l(79996);function Yh(t,e){1&t&&m._UZ(0,"mat-spinner",7)}function Bh(t,e){if(1&t&&(m.TgZ(0,"mat-option",14),m._uU(1),m.qZA()),2&t){var n=e.$implicit;m.Q6J("value",n),m.xp6(1),m.hij(" ",n.name," ")}}function Jh(t,e){if(1&t&&(m.TgZ(0,"div"),m.TgZ(1,"mat-form-field",8),m._UZ(2,"input",9),m.ALo(3,"translate"),m.TgZ(4,"mat-error"),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.qZA(),m.TgZ(7,"mat-form-field",8),m._UZ(8,"input",10),m.ALo(9,"translate"),m.TgZ(10,"mat-error"),m._uU(11),m.ALo(12,"translate"),m.qZA(),m.TgZ(13,"mat-autocomplete",11,12),m.YNc(15,Bh,2,2,"mat-option",13),m.ALo(16,"async"),m.qZA(),m.qZA(),m.qZA()),2&t){var n=m.MAs(14),r=m.oxw();m.xp6(2),m.s9C("placeholder",m.lcZ(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),m.Q6J("formControl",r.loginControl),m.xp6(3),m.hij(" ",m.lcZ(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),m.xp6(3),m.s9C("placeholder",m.lcZ(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),m.Q6J("formControl",r.extSourcesControl)("matAutocomplete",n),m.xp6(3),m.hij(" ",m.lcZ(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),m.xp6(2),m.Q6J("displayWith",r.displayFn),m.xp6(2),m.Q6J("ngForOf",m.lcZ(16,17,r.filteredExtSources))}}var Gh=function(){var t=function(){function t(e,n,r,i,o,a){var s=this;f(this,t),this.dialogRef=e,this.data=n,this.extSourcesManagerService=r,this.usersManagerService=i,this.translate=o,this.notificator=a,this.extSources=[],o.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(function(t){return s.successMessage=t})}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.loginControl=new G.NI("",[G.kI.required,G.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new G.NI("",[G.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,zh.O)(""),(0,jh.U)(function(e){return t._filter(e)})),this.extSourcesManagerService.getExtSources().subscribe(function(e){t.extSources=e,t.filteredExtSources=t.extSourcesControl.valueChanges.pipe((0,zh.O)(""),(0,jh.U)(function(e){return t._filter(e)})),t.loading=!1},function(){return t.loading=!1})}},{key:"displayFn",value:function(t){return t?t.name:null}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onAdd",value:function(){var t=this;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(function(){t.loading=!1,t.notificator.showSuccess(t.successMessage),t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"_filter",value:function(t){var e="string"==typeof t?t.toLowerCase():t.name.toLowerCase;return this.extSources.filter(function(t){return t.name.toLowerCase().includes(e)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(N.KG),m.Y36(N.Fv),m.Y36(x.sK),m.Y36(D.V6))},t.\u0275cmp=m.Xpm({type:t,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","","type","text","required","",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div",1),m.YNc(4,Yh,1,0,"mat-spinner",2),m.YNc(5,Jh,17,19,"div",3),m.qZA(),m.TgZ(6,"div",4),m.TgZ(7,"button",5),m.NdJ("click",function(){return e.onCancel()}),m._uU(8),m.ALo(9,"translate"),m.qZA(),m.TgZ(10,"button",6),m.NdJ("click",function(){return e.onAdd()}),m._uU(11),m.ALo(12,"translate"),m.qZA(),m.qZA()),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),m.xp6(3),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(3),m.hij(" ",m.lcZ(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),m.xp6(2),m.Q6J("disabled",e.loginControl.invalid||e.extSourcesControl.invalid||e.loading),m.xp6(1),m.hij(" ",m.lcZ(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},directives:[I.uh,I.xY,d.O5,I.H8,Z.lW,M.$g,B.KE,J.Nt,G.Fj,G.Q7,G.JJ,G.oH,B.TO,Ie.ZL,Ie.XC,d.sg,X.ey],pipes:[x.X$,d.Ov],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.auto-width[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:auto!important}.auto-width[_ngcontent-%COMP%] .mat-select-value[_ngcontent-%COMP%]{max-width:100%;width:auto}.pre-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),t}(),Vh=l(61189),Hh=l(23888);function Qh(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",7),m.NdJ("click",function(){return m.CHM(n),m.oxw().addIdentity()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"USER_DETAIL.IDENTITIES.ADD")))}function Wh(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().removeIdentity()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.Oqu(m.lcZ(2,2,"USER_DETAIL.IDENTITIES.REMOVE"))}}function Xh(t,e){1&t&&m._UZ(0,"mat-spinner",9)}function $h(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"perun-web-apps-user-ext-sources-list",10),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)}),m.qZA(),m.qZA()}if(2&t){var r=m.oxw();m.xp6(1),m.Q6J("displayedColumns",r.displayedColumns)("selection",r.selection)("userExtSources",r.userExtSources)("pageSize",r.pageSize)}}var Kh=function(){var t=function(){function t(e,n,r,i,o,a,s){f(this,t),this.usersManagerService=e,this.storage=n,this.registrarManagerService=r,this.dialog=i,this.route=o,this.tableConfigService=a,this.authResolver=s,this.userExtSources=[],this.selection=new k.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=ht.gG}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.userId=e.userId}),this.refreshTable()}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.selection.clear(),this.usersManagerService.getRichUserExtSources(this.userId).subscribe(function(e){t.userExtSources=e,t.loading=!1},function(){return t.loading=!1})}},{key:"addIdentity",value:function(){var t=this,e=(0,lt.kZ)();e.width="400px",e.data={userId:this.userId},this.dialog.open(Gh,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"removeIdentity",value:function(){var t=this,e=(0,lt.kZ)();e.width="400px",e.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(Vh.Lc,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(N.Fv),m.Y36(D.d6),m.Y36(N.tk),m.Y36(I.uw),m.Y36(g.gz),m.Y36(ht.dB),m.Y36(D.x4))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-user-identities"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","ml-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"admin-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","selection","userExtSources","pageSize","page"]],template:function(t,e){1&t&&(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 e.refreshTable()}),m.qZA(),m.YNc(4,Qh,3,3,"button",2),m.YNc(5,Wh,3,4,"button",3),m.TgZ(6,"div",4),m.YNc(7,Xh,1,0,"mat-spinner",5),m.qZA(),m.YNc(8,$h,2,4,"div",6)),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,5,"USER_DETAIL.IDENTITIES.TITLE")),m.xp6(3),m.Q6J("ngIf",e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",e.authResolver.isPerunAdmin()),m.xp6(2),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[gt.t,d.O5,Z.lW,M.$g,Hh.j],pipes:[x.X$],styles:[""]}),t}();function tf(t,e){1&t&&m._UZ(0,"mat-spinner",4)}function ef(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div",5),m.TgZ(1,"mat-form-field"),m.TgZ(2,"input",6),m.NdJ("change",function(){return m.CHM(n),m.oxw().makePath()}),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"mat-error"),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.qZA(),m.TgZ(7,"mat-form-field"),m.TgZ(8,"input",7),m.NdJ("ngModelChange",function(t){return m.CHM(n),m.oxw().description=t}),m.ALo(9,"translate"),m.qZA(),m.qZA(),m.TgZ(10,"mat-form-field"),m._UZ(11,"input",8),m.ALo(12,"translate"),m.TgZ(13,"mat-error"),m._uU(14),m.ALo(15,"translate"),m.qZA(),m.qZA(),m.TgZ(16,"mat-form-field"),m._UZ(17,"input",8),m.ALo(18,"translate"),m.TgZ(19,"mat-error"),m._uU(20),m.ALo(21,"translate"),m.qZA(),m.qZA(),m.TgZ(22,"mat-form-field"),m._UZ(23,"input",8),m.ALo(24,"translate"),m.TgZ(25,"mat-error"),m._uU(26),m.ALo(27,"translate"),m.qZA(),m.qZA(),m.TgZ(28,"span",9),m._uU(29),m.ALo(30,"translate"),m.TgZ(31,"mat-checkbox",10),m.NdJ("ngModelChange",function(t){return m.CHM(n),m.oxw().status=t}),m._uU(32),m.ALo(33,"translate"),m.qZA(),m.qZA(),m.qZA()}if(2&t){var r=m.oxw();m.xp6(2),m.s9C("placeholder",m.lcZ(3,17,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),m.Q6J("formControl",r.nameControl),m.xp6(3),m.Oqu(m.lcZ(6,19,"DIALOGS.CREATE_EDIT_SERVICE.RESTRICTION_NAME")),m.xp6(3),m.s9C("placeholder",m.lcZ(9,21,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),m.Q6J("ngModel",r.description),m.xp6(3),m.s9C("placeholder",m.lcZ(12,23,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),m.Q6J("formControl",r.delayControl),m.xp6(3),m.Oqu(m.lcZ(15,25,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),m.xp6(3),m.s9C("placeholder",m.lcZ(18,27,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),m.Q6J("formControl",r.recurrenceControl),m.xp6(3),m.Oqu(m.lcZ(21,29,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),m.xp6(3),m.s9C("placeholder",m.lcZ(24,31,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),m.Q6J("formControl",r.pathControl),m.xp6(3),m.Oqu(m.lcZ(27,33,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),m.xp6(3),m.hij("",m.lcZ(30,35,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")," "),m.xp6(2),m.Q6J("ngModel",r.status),m.xp6(1),m.Oqu(m.lcZ(33,37,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT"))}}function nf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div",11),m.TgZ(1,"button",12),m.NdJ("click",function(){return m.CHM(n),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"button",13),m.NdJ("click",function(){m.CHM(n);var t=m.oxw();return t.asEdit?t.onEdit():t.onCreate()}),m._uU(5),m.qZA(),m.qZA()}if(2&t){var r=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),m.xp6(2),m.Q6J("disabled",r.nameControl.invalid||r.delayControl.invalid||r.recurrenceControl.invalid||r.pathControl.invalid),m.xp6(1),m.hij(" ",r.buttonText," ")}}var rf=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.dialogRef=e,this.data=n,this.serviceManager=r,this.notificator=i,this.translate=o,this.loading=!1,this.status=!0,this.nameControl=new G.NI("",[G.kI.required,G.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new G.NI(10,[G.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new G.NI(2,[G.kI.pattern("^[0-9]*$")]),this.pathControl=new G.NI("",[G.kI.required]),this.asEdit=!1}return p(t,[{key:"ngOnInit",value:function(){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.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"))}},{key:"onCreate",value:function(){var t=this;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,id:0,beanName:""}}).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),t.dialogRef.close(!0),t.loading=!1})}},{key:"onEdit",value:function(){var t=this;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,id:this.data.service.id,beanName:this.data.service.beanName}}).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_SUCCESS")),t.dialogRef.close(!0),t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"makePath",value:function(){var t="./".concat(this.nameControl.value);this.pathControl.setValue(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(N.KK),m.Y36(D.V6),m.Y36(x.sK))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-create-service-dialog"]],decls:6,vars:7,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"],["matInput","","required","",3,"formControl","placeholder","change"],["matInput","",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],[1,"d-flex"],[1,"ml-3",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.qZA(),m.YNc(3,tf,1,0,"mat-spinner",1),m.YNc(4,ef,34,39,"div",2),m.YNc(5,nf,6,5,"div",3),m.qZA()),2&t&&(m.Tol(e.theme),m.xp6(2),m.Oqu(e.title),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[I.uh,d.O5,M.$g,I.xY,B.KE,J.Nt,G.Fj,G.Q7,G.JJ,G.oH,B.TO,G.On,W.oG,I.H8,Z.lW],pipes:[x.X$],styles:[""]}),t}(),of=l(20247),af=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.dialogRef=e,this.data=n,this.serviceManager=r,this.notificator=i,this.translate=o,this.displayedColumns=["name"],this.dataSource=new C.by(this.data.services),this.loading=!1,this.force=!1,this.relations=[]}return p(t,[{key:"ngOnInit",value:function(){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")}},{key:"onConfirm",value:function(){var t=this;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(function(){t.onConfirm(),t.loading=!1},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(t){this.force=t.force,t.deleted?this.onConfirm():this.onCancel()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(N.KK),m.Y36(D.V6),m.Y36(x.sK))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-delete-service-dialog"]],decls:2,vars:7,consts:[[3,"anotherMessage","entityNames","entityType","relations","deleted"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"app-delete-entity-dialog",0),m.NdJ("deleted",function(t){return e.onSubmit(t)}),m.qZA(),m.qZA()),2&t&&(m.Tol(e.theme),m.xp6(1),m.Q6J("anotherMessage",e.anotherMessage)("entityNames",e.dataSource)("entityType","services")("relations",e.relations))},directives:[of.e],styles:[""]}),t}();function sf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",7),m.NdJ("click",function(){return m.CHM(n),m.oxw().createService()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"ADMIN.SERVICES.CREATE"),""))}function uf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().deleteService()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(2,2,"ADMIN.SERVICES.DELETE"),"")}}function cf(t,e){1&t&&m._UZ(0,"mat-spinner",9)}function lf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"app-services-list",10),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("pageSize",r.pageSize)("selection",r.selection)("services",r.services)("filterValue",r.filterValue)}}var hf=function(){var t=function(){function t(e,n,r,i){f(this,t),this.tableConfigService=e,this.serviceManager=n,this.dialog=r,this.authResolver=i,this.selection=new k.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=ht.NL}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.serviceManager.getServices().subscribe(function(e){t.services=e,t.refreshTable()})}},{key:"createService",value:function(){var t=this,e=(0,lt.kZ)();e.width="600px",e.data={theme:"admin-theme"},this.dialog.open(rf,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"deleteService",value:function(){var t=this,e=(0,lt.kZ)();e.width="600px",e.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(af,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.serviceManager.getServices().subscribe(function(e){t.services=e,t.selection.clear(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(ht.dB),m.Y36(N.KK),m.Y36(I.uw),m.Y36(D.x4))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","ml-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"ml-2",3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"pageSize","selection","services","filterValue","page",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"pageSize","selection","services","filterValue","page"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return e.refreshTable()}),m.qZA(),m.YNc(5,sf,3,3,"button",2),m.YNc(6,uf,3,4,"button",3),m.TgZ(7,"perun-web-apps-immediate-filter",4),m.NdJ("filter",function(t){return e.applyFilter(t)}),m.qZA(),m.YNc(8,cf,1,0,"mat-spinner",5),m.YNc(9,lf,1,4,"app-services-list",6),m.qZA()),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,6,"ADMIN.SERVICES.TITLE")),m.xp6(3),m.Q6J("ngIf",e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("placeholder","ADMIN.SERVICES.FILTER"),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[gt.t,d.O5,vt.L,Z.lW,M.$g,wt.Q],pipes:[x.X$],styles:[""]}),t}(),ff=l(88884);function df(t,e){1&t&&m._UZ(0,"mat-spinner",5)}var pf=function(){return["id","name","vo","facility","description"]};function gf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-resources-list",6),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("pageSize",r.pageSize)("resources",r.resources)("filterValue",r.filterValue)("displayedColumns",m.DdM(4,pf))}}var vf=function(){var t=function(){function t(e,n,r){f(this,t),this.userManager=e,this.tableConfigService=n,this.route=r,this.resources=[],this.tableId=ht.kO,this.filterValue=""}return p(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.route.parent.params.subscribe(function(e){t.userManager.getAssignedRichResourcesForUser(e.userId).subscribe(function(e){t.resources=e,t.loading=!1})})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"resourceFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(N.Fv),m.Y36(ht.dB),m.Y36(g.gz))},t.\u0275cmp=m.Xpm({type:t,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,"pageSize","resources","filterValue","displayedColumns","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","resources","filterValue","displayedColumns","page"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return e.refreshTable()}),m.qZA(),m.TgZ(5,"perun-web-apps-immediate-filter",2),m.NdJ("filter",function(t){return e.resourceFilter(t)}),m.qZA(),m.YNc(6,df,1,0,"mat-spinner",3),m.YNc(7,gf,1,5,"perun-web-apps-resources-list",4),m.qZA()),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,4,"USER_DETAIL.RESOURCES.TITLE")),m.xp6(3),m.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[gt.t,vt.L,d.O5,M.$g,ff.C],pipes:[x.X$],styles:[""]}),t}(),mf=l(13572),yf=l(40695),_f=l(41186),wf=["list"];function bf(t,e){1&t&&m._UZ(0,"mat-spinner",7)}function xf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-attributes-list",8,9),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("pageSize",r.pageSize)("attributes",r.attributes)("selection",r.selection)}}var Ef=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.dialog=e,this.attributesManager=n,this.tableConfigService=r,this.userService=i,this.route=o,this.loading=!1,this.selection=new k.Ov(!0,[]),this.tableId=ht.rF,this.attributes=[]}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.params.subscribe(function(e){t.userService.getUserExtSourceById(e.identityId).subscribe(function(e){t.userExtSource=e,t.refreshTable()})})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.attributesManager.getUserExtSourceAttributes(this.userExtSource.id).subscribe(function(e){t.attributes=(0,lt.MX)(e),t.selection.clear(),t.loading=!1})}},{key:"onAdd",value:function(){var t=this,e=(0,lt.kZ)();e.width="1050px",e.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(yf.n,e).afterClosed().subscribe(function(e){"saved"===e&&t.refreshTable()})}},{key:"onSave",value:function(){var t=this;this.list.updateMapAttributes();var e=(0,lt.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(Vh.wA,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"onRemove",value:function(){var t=this,e=(0,lt.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(mf.k,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.uw),m.Y36(N.H8),m.Y36(ht.dB),m.Y36(N.Fv),m.Y36(g.gz))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-identity-detail"]],viewQuery:function(t,e){var n;(1&t&&m.Gf(wf,5),2&t)&&(m.iGM(n=m.CRH())&&(e.list=n.first))},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","attributes","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","attributes","selection","page"],["list",""]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return e.refreshTable()}),m.qZA(),m.TgZ(5,"button",2),m.NdJ("click",function(){return e.onSave()}),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"button",3),m.NdJ("click",function(){return e.onAdd()}),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.TgZ(11,"button",4),m.NdJ("click",function(){return e.onRemove()}),m._uU(12),m.ALo(13,"translate"),m.qZA(),m.YNc(14,bf,1,0,"mat-spinner",5),m.YNc(15,xf,2,3,"perun-web-apps-attributes-list",6),m.qZA()),2&t&&(m.xp6(2),m.AsE("",m.lcZ(3,9,"SHARED.IDENTITY_DETAIL.TITLE")," - ",e.userExtSource?e.userExtSource.extSource.name:"",""),m.xp6(3),m.Q6J("disabled",0===e.selection.selected.length),m.xp6(1),m.Oqu(m.lcZ(7,11,"SHARED.IDENTITY_DETAIL.SAVE")),m.xp6(3),m.Oqu(m.lcZ(10,13,"SHARED.IDENTITY_DETAIL.ADD")),m.xp6(2),m.Q6J("disabled",0===e.selection.selected.length),m.xp6(1),m.Oqu(m.lcZ(13,15,"SHARED.IDENTITY_DETAIL.REMOVE")),m.xp6(2),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[gt.t,Z.lW,d.O5,M.$g,_f.p],pipes:[x.X$],styles:[""]}),t}();function Tf(t,e){1&t&&m._UZ(0,"mat-spinner",3)}function Af(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",13),m.NdJ("click",function(){return m.CHM(n),m.oxw(2).editService()}),m.TgZ(1,"mat-icon"),m._uU(2,"edit"),m.qZA(),m.qZA()}}function Sf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",14),m.NdJ("click",function(){return m.CHM(n),m.oxw(2).removeService()}),m.TgZ(1,"mat-icon"),m._uU(2,"delete_forever"),m.qZA(),m.qZA()}}var kf=function(){return{color:"black"}},If=function(t){return["/admin/services",t]};function Cf(t,e){if(1&t&&(m.TgZ(0,"div",4),m._UZ(1,"mat-icon",5),m.ALo(2,"translate"),m.TgZ(3,"div",6),m.TgZ(4,"div",7),m.TgZ(5,"a",8),m._uU(6),m.qZA(),m.TgZ(7,"span",9),m._uU(8),m.qZA(),m.YNc(9,Af,3,0,"button",10),m.YNc(10,Sf,3,0,"button",11),m.qZA(),m.TgZ(11,"span",12),m._uU(12),m.ALo(13,"translate"),m.qZA(),m.qZA(),m.qZA()),2&t){var n=m.oxw();m.xp6(1),m.s9C("matTooltip",m.lcZ(2,9,"SERVICE_DETAIL.ENTITY")),m.Q6J("ngStyle",m.DdM(13,kf)),m.xp6(4),m.Q6J("routerLink",m.VKq(14,If,n.service.id)),m.xp6(1),m.hij(" ",n.service.name," "),m.xp6(2),m.hij(" \xa0 #",n.service.id," "),m.xp6(1),m.Q6J("ngIf",n.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",n.authResolver.isPerunAdmin()),m.xp6(2),m.AsE(" ",m.lcZ(13,11,"SERVICE_DETAIL.DESCRIPTION"),": ",n.service.description," ")}}var Df=function(){var t=function(){function t(e,n,r,i,o,a,s){f(this,t),this.route=e,this.router=n,this.serviceManager=r,this.sideMenuService=i,this.sideMenuItemService=o,this.dialog=a,this.authResolver=s,this.loading=!1}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe(function(e){t.serviceManager.getServiceById(e.serviceId).subscribe(function(e){t.service=e;var n=t.sideMenuItemService.parseService(t.service);t.sideMenuService.setAdminItems([n]),t.loading=!1},function(){return t.loading=!1})})}},{key:"editService",value:function(){var t=this,e=(0,lt.kZ)();e.width="600px",e.data={theme:"service-theme",service:this.service},this.dialog.open(rf,e).afterClosed().subscribe(function(e){e&&t.ngOnInit()})}},{key:"removeService",value:function(){var t=this,e=(0,lt.kZ)();e.width="600px",e.data={theme:"service-theme",services:[this.service]},this.dialog.open(af,e).afterClosed().subscribe(function(e){e&&(console.log(e),t.router.navigate(["/admin/services"]))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(g.gz),m.Y36(g.F0),m.Y36(N.KK),m.Y36(y.D),m.Y36(v.V),m.Y36(I.uw),m.Y36(D.x4))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-service-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","service-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","d-flex page-title-headtitle",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"service-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit service","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Remove service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["aria-label","Edit service","mat-icon-button","",3,"click"],["aria-label","Remove service","mat-icon-button","",3,"click"]],template:function(t,e){1&t&&(m.TgZ(0,"div",0),m._UZ(1,"perun-web-apps-back-button"),m.YNc(2,Tf,1,0,"mat-spinner",1),m.YNc(3,Cf,14,16,"div",2),m._UZ(4,"app-animated-router-outlet"),m.qZA()),2&t&&(m.xp6(2),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading&&void 0!==e.service))},directives:[_.W,d.O5,b.A,M.$g,w.Hw,Y.gM,d.PC,g.yS,Z.lW],pipes:[x.X$],styles:[""],data:{animation:[yt.Ji]}}),t}(),Nf=function(){var t=function(){function t(){f(this,t),this.navItems=[]}return p(t,[{key:"ngOnInit",value:function(){this.initNavItems()}},{key:"initNavItems",value:function(){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"}]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-service-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&m._UZ(0,"perun-web-apps-menu-buttons-field",0),2&t&&m.Q6J("items",e.navItems)("size","small")},directives:[A.L],styles:[""]}),t}();function Zf(t,e){1&t&&m._UZ(0,"mat-spinner",4)}function Mf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div",5),m.TgZ(1,"perun-web-apps-immediate-filter",6),m.NdJ("filter",function(t){return m.CHM(n),m.oxw().applyFilter(t)}),m.qZA(),m._UZ(2,"app-attr-def-list",7),m.qZA()}if(2&t){var r=m.oxw();m.xp6(1),m.Q6J("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),m.xp6(1),m.Q6J("selection",r.selection)("definitions",r.attrDefinitions)("disableRouting",!0)("filterValue",r.filterValue)}}function Of(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div",8),m.TgZ(1,"button",9),m.NdJ("click",function(){return m.CHM(n),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"button",10),m.NdJ("click",function(){return m.CHM(n),m.oxw().onAdd()}),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.qZA()}if(2&t){var r=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),m.xp6(2),m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}var Rf=function(){var t=function(){function t(e,n,r,i,o,a){f(this,t),this.dialogRef=e,this.data=n,this.serviceManager=r,this.attributesManager=i,this.notificator=o,this.translate=a,this.attrDefinitions=[],this.selection=new k.Ov(!0,[]),this.filterValue="",this.loading=!1}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.attributesManager.getAllAttributeDefinitions().subscribe(function(e){t.attrDefinitions=e,t.loading=!1})}},{key:"onAdd",value:function(){var t=this;this.loading=!0;var e=this.selection.selected.map(function(t){return t.id});this.serviceManager.addRequiredAttributes(this.serviceId,e).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.ADD_REQUIRED_ATTRIBUTES.SUCCESS")),t.dialogRef.close(!0),t.loading=!1},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(N.KK),m.Y36(N.H8),m.Y36(D.V6),m.Y36(x.sK))},t.\u0275cmp=m.Xpm({type:t,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,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,Zf,1,0,"mat-spinner",1),m.YNc(5,Mf,3,5,"div",2),m.YNc(6,Of,7,7,"div",3),m.qZA()),2&t&&(m.Tol(e.theme),m.xp6(2),m.Oqu(m.lcZ(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),m.xp6(2),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[I.uh,d.O5,M.$g,I.xY,vt.L,fe,I.H8,Z.lW],pipes:[x.X$],styles:[""]}),t}();function Lf(t,e){1&t&&m._UZ(0,"mat-spinner",6)}function Uf(t,e){1&t&&m._UZ(0,"th",15)}function Pf(t,e){if(1&t&&(m.TgZ(0,"td",16),m._uU(1),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.hij(" ",n.friendlyName," ")}}function Ff(t,e){1&t&&m._UZ(0,"tr",17)}function qf(t,e){1&t&&m._UZ(0,"tr",18)}function zf(t,e){if(1&t&&(m.TgZ(0,"div",7),m.TgZ(1,"p"),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",8),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.TgZ(7,"table",9),m.ynx(8,10),m.YNc(9,Uf,1,0,"th",11),m.YNc(10,Pf,2,1,"td",12),m.BQk(),m.YNc(11,Ff,1,0,"tr",13),m.YNc(12,qf,1,0,"tr",14),m.qZA(),m.qZA()),2&t){var n=m.oxw();m.xp6(2),m.Oqu(m.lcZ(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),m.xp6(3),m.hij(" ",m.lcZ(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),m.xp6(2),m.Q6J("dataSource",n.dataSource),m.xp6(4),m.Q6J("matHeaderRowDef",n.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",n.displayedColumns)}}var jf=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.dialogRef=e,this.data=n,this.serviceManager=r,this.notificator=i,this.translate=o,this.displayedColumns=["name"],this.loading=!1}return p(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new C.by(this.data.attrDefinitions)}},{key:"onConfirm",value:function(){var t=this;this.loading=!0;var e=this.dataSource.data.map(function(t){return t.id});this.serviceManager.removeRequiredAttributes(this.serviceId,e).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.SUCCESS")),t.dialogRef.close(!0),t.loading=!1},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(N.KK),m.Y36(D.V6),m.Y36(x.sK))},t.\u0275cmp=m.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div"),m.YNc(4,Lf,1,0,"mat-spinner",1),m.YNc(5,zf,13,9,"div",2),m.TgZ(6,"div",3),m.TgZ(7,"button",4),m.NdJ("click",function(){return e.onCancel()}),m._uU(8),m.ALo(9,"translate"),m.qZA(),m.TgZ(10,"button",5),m.NdJ("click",function(){return e.onConfirm()}),m._uU(11),m.ALo(12,"translate"),m.qZA(),m.qZA(),m.qZA()),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),m.xp6(2),m.Tol(e.theme),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(3),m.hij(" ",m.lcZ(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL"),""),m.xp6(2),m.Q6J("disabled",e.loading),m.xp6(1),m.hij(" ",m.lcZ(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE"),""))},directives:[I.uh,d.O5,I.H8,Z.lW,M.$g,I.xY,C.BZ,C.w1,C.fO,C.Dz,C.as,C.nj,C.ge,C.ev,C.XQ,C.Gk],pipes:[x.X$],styles:[""]}),t}();function Yf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-refresh-button",7),m.NdJ("refresh",function(){return m.CHM(n),m.oxw().refreshTable()}),m.qZA()}}function Bf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().onAdd()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function Jf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",9),m.NdJ("click",function(){return m.CHM(n),m.oxw().onRemove()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function Gf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-immediate-filter",10),m.NdJ("filter",function(t){return m.CHM(n),m.oxw().applyFilter(t)}),m.qZA()}2&t&&m.Q6J("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER")}function Vf(t,e){1&t&&m._UZ(0,"mat-spinner",11)}function Hf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"app-attr-def-list",12),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)})("refreshEvent",function(){return m.CHM(n),m.oxw().refreshTable()}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("pageSize",r.pageSize)("definitions",r.attrDefinitions)("selection",r.selection)("filterValue",r.filterValue)("disableRouting",!r.authResolver.isPerunAdmin())}}var Qf=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.route=e,this.tableConfigService=n,this.attributeManager=r,this.dialog=i,this.authResolver=o,this.loading=!1,this.filterValue="",this.selection=new k.Ov(!0,[]),this.attrDefinitions=[],this.tableId=ht.JO}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.serviceId=e.serviceId,t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.attributeManager.getRequiredAttributesDefinition(this.serviceId).subscribe(function(e){t.selection.clear(),t.attrDefinitions=e,t.loading=!1})}},{key:"onAdd",value:function(){var t=this,e=(0,lt.kZ)();e.width="950px",e.data={serviceId:this.serviceId,theme:"service-theme"},this.dialog.open(Rf,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"onRemove",value:function(){var t=this,e=(0,lt.kZ)();e.width="650px",e.data={serviceId:this.serviceId,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(jf,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(g.gz),m.Y36(ht.dB),m.Y36(N.H8),m.Y36(I.uw),m.Y36(D.x4))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-service-required-attributes"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","ml-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","ml-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","definitions","selection","filterValue","disableRouting","page","refreshEvent",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","definitions","selection","filterValue","disableRouting","page","refreshEvent"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,Yf,1,0,"perun-web-apps-refresh-button",1),m.YNc(5,Bf,3,3,"button",2),m.YNc(6,Jf,3,4,"button",3),m.YNc(7,Gf,1,1,"perun-web-apps-immediate-filter",4),m.YNc(8,Vf,1,0,"mat-spinner",5),m.YNc(9,Hf,1,5,"app-attr-def-list",6),m.qZA()),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,7,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),m.xp6(2),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[d.O5,gt.t,Z.lW,vt.L,M.$g,fe],pipes:[x.X$],styles:[""]}),t}();function Wf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-refresh-button",7),m.NdJ("refresh",function(){return m.CHM(n),m.oxw().refreshTable()}),m.qZA()}}function Xf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().onAdd()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "))}function $f(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",9),m.NdJ("click",function(){return m.CHM(n),m.oxw().onRemove()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(2,2,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," ")}}function Kf(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"app-users-list",10),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("pageSize",r.pageSize)("users",r.associatedUsers)("selection",r.selection)("displayedColumns",r.displayedColumns)}}function td(t,e){1&t&&(m.TgZ(0,"app-alert",11),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS")," "))}function ed(t,e){1&t&&m._UZ(0,"mat-spinner",12)}var nd=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.route=e,this.dialog=n,this.router=r,this.tableConfigService=i,this.userManager=o,this.loading=!1,this.selection=new k.Ov(!1,[]),this.associatedUsers=[],this.tableId=ht.It,this.displayedColumns=["select","id","user","name"]}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.parent.params.subscribe(function(e){t.userId=e.userId,t.userManager.getUsersBySpecificUser(t.userId).subscribe(function(e){t.associatedUsers=e,t.loading=!1})})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.userManager.getUsersBySpecificUser(this.userId).subscribe(function(e){t.associatedUsers=e,t.selection.clear(),t.loading=!1})}},{key:"onAdd",value:function(){var t=this,e=(0,lt.kZ)();e.width="1250px",e.data={userId:this.userId,theme:"user-theme",isService:!0},this.dialog.open(Ih,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"onRemove",value:function(){var t=this,e=(0,lt.kZ)();e.width="650px",e.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],isService:!0,theme:"user-theme"},this.dialog.open(Mh,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(g.gz),m.Y36(I.uw),m.Y36(g.F0),m.Y36(ht.dB),m.Y36(N.Fv))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-user-settings-associated-users"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"pageSize","users","selection","displayedColumns","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"pageSize","users","selection","displayedColumns","page"],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,Wf,1,0,"perun-web-apps-refresh-button",1),m.YNc(5,Xf,3,3,"button",2),m.YNc(6,$f,3,4,"button",3),m.YNc(7,Kf,1,4,"app-users-list",4),m.YNc(8,td,3,3,"app-alert",5),m.qZA(),m.YNc(9,ed,1,0,"mat-spinner",6)),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,7,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),m.xp6(2),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",void 0!==e.associatedUsers&&e.associatedUsers.length>0),m.xp6(1),m.Q6J("ngIf",!e.loading&&(void 0===e.associatedUsers||0===e.associatedUsers.length)),m.xp6(1),m.Q6J("ngIf",e.loading))},directives:[d.O5,gt.t,Z.lW,xh.C,O.w,M.$g],pipes:[x.X$],styles:[""]}),t}(),rd=l(60547),id=l(94357);function od(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-refresh-button",7),m.NdJ("refresh",function(){return m.CHM(n),m.oxw().refreshTable()}),m.qZA()}}function ad(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().onRemove()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function sd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",9),m.NdJ("click",function(){return m.CHM(n),m.oxw().onAllow()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function ud(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().onBlock()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",0===r.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function cd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-immediate-filter",10),m.NdJ("filter",function(t){return m.CHM(n),m.oxw().applyFilter(t)}),m.qZA()}2&t&&m.Q6J("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER")}function ld(t,e){1&t&&m._UZ(0,"mat-spinner",11)}var hd=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function fd(t,e){if(1&t&&m._UZ(0,"app-perun-web-apps-destination-list",12),2&t){var n=m.oxw();m.Q6J("destinations",n.destinations)("selection",n.selection)("pageSize",n.pageSize)("displayedColumns",m.DdM(5,hd))("filterValue",n.filterValue)}}var dd=function(){var t=function(){function t(e,n,r,i,o,a,s){f(this,t),this.route=e,this.tableConfigService=n,this.serviceManager=r,this.notificator=i,this.translate=o,this.dialog=a,this.authResolver=s,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new k.Ov(!0,[]),this.tableId=ht.Cf}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.serviceId=e.serviceId,t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.serviceManager.getAllRichDestinationsForService(this.serviceId).subscribe(function(e){t.selection.clear(),t.filterValue="",t.destinations=e,t.loading=!1})}},{key:"blockServiceOnDestinations",value:function(t){var e=this;if(0===t.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();var n=t.pop();this.serviceManager.blockServiceOnDestination(this.serviceId,n.id).subscribe(function(){e.blockServiceOnDestinations(t)},function(){return e.loading=!1})}},{key:"onBlock",value:function(){this.loading=!0,this.blockServiceOnDestinations(this.selection.selected)}},{key:"allowServiceOnDestinations",value:function(t){var e=this;if(0===t.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();var n=t.pop();this.serviceManager.unblockServiceOnDestinationById(this.serviceId,n.id).subscribe(function(){e.allowServiceOnDestinations(t)},function(){return e.loading=!1})}},{key:"onAllow",value:function(){this.loading=!0,this.allowServiceOnDestinations(this.selection.selected)}},{key:"onRemove",value:function(){var t=this,e=(0,lt.kZ)();e.width="500px",e.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(rd.u,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(g.gz),m.Y36(ht.dB),m.Y36(N.KK),m.Y36(D.V6),m.Y36(x.sK),m.Y36(I.uw),m.Y36(D.x4))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-service-destinations"]],decls:11,vars:10,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","selection","pageSize","displayedColumns","filterValue",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"destinations","selection","pageSize","displayedColumns","filterValue"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,od,1,0,"perun-web-apps-refresh-button",1),m.YNc(5,ad,3,4,"button",2),m.YNc(6,sd,3,4,"button",3),m.YNc(7,ud,3,4,"button",2),m.YNc(8,cd,1,1,"perun-web-apps-immediate-filter",4),m.YNc(9,ld,1,0,"mat-spinner",5),m.YNc(10,fd,1,6,"app-perun-web-apps-destination-list",6),m.qZA()),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,8,"SERVICE_DETAIL.DESTINATIONS.TITLE")),m.xp6(2),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",!e.loading&&e.authResolver.isPerunAdmin()),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[d.O5,gt.t,Z.lW,vt.L,M.$g,id.q],pipes:[x.X$],styles:[""]}),t}();function pd(t,e){1&t&&m._UZ(0,"mat-spinner",4)}function gd(t,e){1&t&&m._UZ(0,"th",13)}function vd(t,e){if(1&t&&(m.TgZ(0,"td",14),m._uU(1),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.hij(" ",n.name," ")}}function md(t,e){1&t&&m._UZ(0,"tr",15)}function yd(t,e){1&t&&m._UZ(0,"tr",16)}function _d(t,e){if(1&t&&(m.TgZ(0,"div",5),m.TgZ(1,"p"),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",6),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.TgZ(7,"table",7),m.ynx(8,8),m.YNc(9,gd,1,0,"th",9),m.YNc(10,vd,2,1,"td",10),m.BQk(),m.YNc(11,md,1,0,"tr",11),m.YNc(12,yd,1,0,"tr",12),m.qZA(),m.qZA()),2&t){var n=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),m.xp6(3),m.hij(" ",m.lcZ(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),m.xp6(2),m.Q6J("dataSource",n.dataSource),m.xp6(4),m.Q6J("matHeaderRowDef",n.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",n.displayedColumns)}}function wd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div",17),m.TgZ(1,"button",18),m.NdJ("click",function(){return m.CHM(n),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"button",19),m.NdJ("click",function(){return m.CHM(n),m.oxw().onSubmit()}),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.qZA()}if(2&t){var r=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),m.xp6(2),m.Q6J("disabled",r.loading),m.xp6(1),m.hij(" ",m.lcZ(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}var bd=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.dialogRef=e,this.data=n,this.notificator=r,this.translate=i,this.ownersManagerService=o,this.displayedColumns=["name"],this.owners=[]}return p(t,[{key:"ngOnInit",value:function(){this.dataSource=new C.by(this.data),this.owners=this.data}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.owners.length?this.ownersManagerService.deleteOwner(this.owners.pop().id).subscribe(function(){t.onSubmit()},function(){return t.loading=!1}):this.translate.get("DIALOGS.DELETE_OWNER.SUCCESS").subscribe(function(e){t.loading=!1,t.notificator.showSuccess(e),t.dialogRef.close(!0)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(D.V6),m.Y36(x.sK),m.Y36(N.aC))},t.\u0275cmp=m.Xpm({type:t,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"],["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(t,e){1&t&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.YNc(3,pd,1,0,"mat-spinner",1),m.YNc(4,_d,13,9,"div",2),m.YNc(5,wd,7,7,"div",3)),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,4,"DIALOGS.DELETE_OWNER.TITLE")),m.xp6(2),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[I.uh,d.O5,M.$g,I.xY,C.BZ,C.w1,C.fO,C.Dz,C.as,C.nj,C.ge,C.ev,C.XQ,C.Gk,I.H8,Z.lW],pipes:[x.X$],styles:[""]}),t}();function xd(t,e){1&t&&m._UZ(0,"mat-spinner",4)}function Ed(t,e){1&t&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.ADD_OWNER.FILL_CONTACT")," "))}function Td(t,e){1&t&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.ADD_OWNER.CONTACT_FORMAT")," "))}function Ad(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"div",5),m.TgZ(2,"mat-form-field"),m._UZ(3,"input",6),m.ALo(4,"translate"),m.TgZ(5,"mat-error"),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.qZA(),m.TgZ(8,"mat-form-field"),m._UZ(9,"input",6),m.ALo(10,"translate"),m.YNc(11,Ed,3,3,"mat-error",3),m.YNc(12,Td,3,3,"mat-error",3),m.qZA(),m.TgZ(13,"mat-form-field"),m.TgZ(14,"mat-select",7),m.NdJ("valueChange",function(t){return m.CHM(n),m.oxw().type=t}),m.TgZ(15,"mat-option",8),m._uU(16),m.ALo(17,"translate"),m.qZA(),m.TgZ(18,"mat-option",9),m._uU(19),m.ALo(20,"translate"),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.TgZ(21,"div",10),m.TgZ(22,"button",11),m.NdJ("click",function(){return m.CHM(n),m.oxw().onCancel()}),m._uU(23),m.ALo(24,"translate"),m.qZA(),m.TgZ(25,"div",12),m.ALo(26,"translate"),m.TgZ(27,"button",13),m.NdJ("click",function(){return m.CHM(n),m.oxw().onSubmit()}),m._uU(28),m.ALo(29,"translate"),m.qZA(),m.qZA(),m.qZA(),m.qZA()}if(2&t){var r=m.oxw();m.xp6(3),m.s9C("placeholder",m.lcZ(4,15,"DIALOGS.ADD_OWNER.NAME")),m.Q6J("formControl",r.nameCtrl),m.xp6(3),m.hij(" ",m.lcZ(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),m.xp6(3),m.s9C("placeholder",m.lcZ(10,19,"DIALOGS.ADD_OWNER.CONTACT")),m.Q6J("formControl",r.contactCtrl),m.xp6(2),m.Q6J("ngIf",r.contactCtrl.hasError("required")),m.xp6(1),m.Q6J("ngIf",r.contactCtrl.invalid&&!r.contactCtrl.hasError("required")),m.xp6(2),m.Q6J("value",r.type),m.xp6(2),m.Oqu(m.lcZ(17,21,"DIALOGS.ADD_OWNER.TYPE1")),m.xp6(3),m.Oqu(m.lcZ(20,23,"DIALOGS.ADD_OWNER.TYPE2")),m.xp6(4),m.hij(" ",m.lcZ(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),m.xp6(2),m.s9C("matTooltip",m.lcZ(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),m.Q6J("matTooltipDisabled",r.nameCtrl.valid&&r.contactCtrl.valid),m.xp6(2),m.Q6J("disabled",r.nameCtrl.invalid||r.contactCtrl.invalid),m.xp6(1),m.hij(" ",m.lcZ(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}var Sd=function(){var t=function(){function t(e,n,r,i){var o=this;f(this,t),this.dialogRef=e,this.notificator=n,this.ownersManagerService=r,this.translate=i,this.type="1",this.emailRegex=/^(([^<>+()[\]\\.,;:\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]{2,3}))$/,i.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(function(t){return o.successMessage=t})}return p(t,[{key:"ngOnInit",value:function(){this.nameCtrl=new G.NI(null,[G.kI.required,G.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new G.NI(null,[G.kI.required,G.kI.pattern(this.emailRegex)])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number.parseInt(this.type,10)}).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0)},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(D.V6),m.Y36(N.aC),m.Y36(x.sK))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-add-owner-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"],[3,"value","valueChange"],["value","1"],["value","0"],["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(t,e){1&t&&(m.TgZ(0,"div",0),m.TgZ(1,"h1",1),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,xd,1,0,"mat-spinner",2),m.YNc(5,Ad,30,31,"div",3),m.qZA()),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,3,"DIALOGS.ADD_OWNER.TITLE")),m.xp6(2),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[I.uh,d.O5,M.$g,I.xY,B.KE,J.Nt,G.Fj,G.Q7,G.JJ,G.oH,B.TO,H.gD,X.ey,I.H8,Z.lW,Y.gM],pipes:[x.X$],styles:[""]}),t}(),kd=l(17767);function Id(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().addOwner()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"ADMIN.OWNERS.ADD")," "))}function Cd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",9),m.NdJ("click",function(){return m.CHM(n),m.oxw().removeOwner()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("disabled",!r.selected.selected.length),m.xp6(1),m.hij(" ",m.lcZ(2,2,"ADMIN.OWNERS.DELETE")," ")}}function Dd(t,e){1&t&&m._UZ(0,"mat-spinner",10)}function Nd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-owners-list",11),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("pageSize",r.pageSize)("filterValue",r.filterValue)("owners",r.owners)("selection",r.selected)}}var Zd=function(){var t=function(){function t(e,n,r,i){f(this,t),this.ownersManagerService=e,this.tableConfigService=n,this.dialog=r,this.guiAuthResolver=i,this.owners=[],this.selected=new k.Ov(!0,[]),this.filterValue="",this.tableId=ht.v1}return p(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.setAuth(),this.refreshTable()}},{key:"setAuth",value:function(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteOwner_Owner_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createOwner_Owner_policy",[])}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(function(e){t.owners=e,t.selected.clear(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"addOwner",value:function(){var t=this,e=(0,lt.kZ)();e.width="400px",e.data={},this.dialog.open(Sd,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"removeOwner",value:function(){var t=this,e=(0,lt.kZ)();e.width="400px",e.data=this.selected.selected,this.dialog.open(bd,e).afterClosed().subscribe(function(e){e&&(t.selected.clear(),t.refreshTable())})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(N.aC),m.Y36(ht.dB),m.Y36(I.uw),m.Y36(D.x4))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-admin-owners"]],decls:10,vars:8,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","owners","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","owners","selection","page"]],template:function(t,e){1&t&&(m.TgZ(0,"div",0),m.TgZ(1,"h1",1),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-refresh-button",2),m.NdJ("refresh",function(){return e.refreshTable()}),m.qZA(),m.YNc(5,Id,3,3,"button",3),m.YNc(6,Cd,3,4,"button",4),m.TgZ(7,"perun-web-apps-immediate-filter",5),m.NdJ("filter",function(t){return e.applyFilter(t)}),m.qZA(),m.YNc(8,Dd,1,0,"mat-spinner",6),m.YNc(9,Nd,1,4,"perun-web-apps-owners-list",7),m.qZA()),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,6,"ADMIN.OWNERS.TITLE")),m.xp6(3),m.Q6J("ngIf",e.addAuth),m.xp6(1),m.Q6J("ngIf",e.removeAuth),m.xp6(1),m.Q6J("placeholder","ADMIN.OWNERS.FILTER"),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[gt.t,d.O5,vt.L,Z.lW,M.$g,kd.Q],pipes:[x.X$],styles:[""]}),t}(),Md=l(60007);function Od(t,e){1&t&&m._UZ(0,"mat-spinner",5)}function Rd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-facilities-list",6),m.NdJ("page",function(t){return m.CHM(n),m.oxw().pageChanged(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("filterValue",r.filterValue)("facilities",r.facilities)("displayedColumns",r.displayedColumns)("pageSize",r.pageSize)}}var Ld=function(){var t=function(){function t(e,n,r){f(this,t),this.facilityManager=e,this.tableConfigService=n,this.route=r,this.facilities=[],this.filterValue="",this.tableId=ht.zW,this.displayedColumns=["id","name","description"]}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.userId=e.userId,t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe(function(e){t.facilities=e.map(function(t){return{facility:t}}),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(N.IQ),m.Y36(ht.dB),m.Y36(g.gz))},t.\u0275cmp=m.Xpm({type:t,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,"filterValue","facilities","displayedColumns","pageSize","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"filterValue","facilities","displayedColumns","pageSize","page"]],template:function(t,e){1&t&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return e.refreshTable()}),m.qZA(),m.TgZ(5,"perun-web-apps-immediate-filter",2),m.NdJ("filter",function(t){return e.applyFilter(t)}),m.qZA(),m.YNc(6,Od,1,0,"mat-spinner",3),m.YNc(7,Rd,1,4,"perun-web-apps-facilities-list",4),m.qZA()),2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,4,"USER_DETAIL.FACILITIES.TITLE")),m.xp6(3),m.Q6J("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),m.xp6(1),m.Q6J("ngIf",e.loading),m.xp6(1),m.Q6J("ngIf",!e.loading))},directives:[gt.t,vt.L,d.O5,M.$g,Md.X],pipes:[x.X$],styles:[""]}),t}(),Ud=l(19386),Pd=l(55109),Fd=l(64737),qd=l(78364),zd=l(541),jd=l(69012);function Yd(t,e){1&t&&m._UZ(0,"mat-spinner")}function Bd(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"perun-web-apps-vo-search-select",4),m.NdJ("voSelected",function(t){return m.CHM(n),m.oxw().loadMember(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("vos",r.vos)}}function Jd(t,e){1&t&&(m._uU(0),m.ALo(1,"translate")),2&t&&m.hij(" ",m.lcZ(1,1,"USER_DETAIL.ACCOUNTS.STATUS")," ")}function Gd(t,e){1&t&&m._UZ(0,"mat-spinner")}var Vd=function(){return["id","recent","name","description","groupStatus","expiration"]};function Hd(t,e){if(1&t&&m._UZ(0,"perun-web-apps-groups-list",13),2&t){var n=m.oxw(4);m.Q6J("displayedColumns",m.DdM(2,Vd))("groups",n.groups)}}var Qd=function(t,e){return["/organizations",t,"members",e]};function Wd(t,e){if(1&t&&(m.TgZ(0,"div"),m.TgZ(1,"div",7),m.TgZ(2,"span",8),m._uU(3),m.ALo(4,"translate"),m.qZA(),m.TgZ(5,"a",9),m._uU(6),m.qZA(),m.qZA(),m._UZ(7,"app-member-overview-membership",10),m.TgZ(8,"p",11),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.YNc(11,Hd,1,3,"perun-web-apps-groups-list",12),m.qZA()),2&t){var n=m.oxw(3);m.xp6(3),m.hij("",m.lcZ(4,7,"USER_DETAIL.ACCOUNTS.MEMBER"),":"),m.xp6(2),m.Q6J("routerLink",m.WLB(11,Qd,n.selectedVo.id,n.member.id)),m.xp6(1),m.hij("",n.member.id," "),m.xp6(1),m.Q6J("member",n.member)("vo",n.selectedVo),m.xp6(2),m.Oqu(m.lcZ(10,9,"USER_DETAIL.ACCOUNTS.GROUPS")),m.xp6(2),m.Q6J("ngIf",!n.loading)}}function Xd(t,e){if(1&t&&(m.YNc(0,Gd,1,0,"mat-spinner",1),m.YNc(1,Wd,12,14,"div",1)),2&t){var n=m.oxw(2);m.Q6J("ngIf",n.loading),m.xp6(1),m.Q6J("ngIf",!n.loading)}}function $d(t,e){1&t&&(m._uU(0),m.ALo(1,"translate")),2&t&&m.hij(" ",m.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_ATT")," ")}function Kd(t,e){1&t&&m._UZ(0,"mat-spinner")}function tp(t,e){if(1&t&&m._UZ(0,"app-one-entity-attribute-page",15),2&t){var n=m.oxw(3);m.Q6J("entityId",n.member.id)("entity","member")}}function ep(t,e){if(1&t&&(m.YNc(0,Kd,1,0,"mat-spinner",1),m.YNc(1,tp,1,2,"app-one-entity-attribute-page",14)),2&t){var n=m.oxw(2);m.Q6J("ngIf",n.loading),m.xp6(1),m.Q6J("ngIf",!n.loading)}}function np(t,e){1&t&&(m._uU(0),m.ALo(1,"translate")),2&t&&m.hij(" ",m.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_GROUP_ATT")," ")}function rp(t,e){1&t&&m._UZ(0,"mat-spinner")}function ip(t,e){if(1&t&&m._UZ(0,"app-two-entity-attribute-page",17),2&t){var n=m.oxw(3);m.Q6J("firstEntityId",n.member.id)("firstEntity","member")("secondEntity","group")}}function op(t,e){if(1&t&&(m.YNc(0,rp,1,0,"mat-spinner",1),m.YNc(1,ip,1,3,"app-two-entity-attribute-page",16)),2&t){var n=m.oxw(2);m.Q6J("ngIf",n.loading),m.xp6(1),m.Q6J("ngIf",!n.loading)}}function ap(t,e){1&t&&(m._uU(0),m.ALo(1,"translate")),2&t&&m.hij(" ",m.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_RESOURCE_ATT")," ")}function sp(t,e){1&t&&m._UZ(0,"mat-spinner")}function up(t,e){if(1&t&&m._UZ(0,"app-two-entity-attribute-page",17),2&t){var n=m.oxw(3);m.Q6J("firstEntityId",n.member.id)("firstEntity","member")("secondEntity","resource")}}function cp(t,e){if(1&t&&(m.YNc(0,sp,1,0,"mat-spinner",1),m.YNc(1,up,1,3,"app-two-entity-attribute-page",16)),2&t){var n=m.oxw(2);m.Q6J("ngIf",n.loading),m.xp6(1),m.Q6J("ngIf",!n.loading)}}function lp(t,e){1&t&&(m.TgZ(0,"mat-tab-group"),m.TgZ(1,"mat-tab"),m.YNc(2,Jd,2,3,"ng-template",5),m.YNc(3,Xd,2,2,"ng-template",6),m.qZA(),m.TgZ(4,"mat-tab"),m.YNc(5,$d,2,3,"ng-template",5),m.YNc(6,ep,2,2,"ng-template",6),m.qZA(),m.TgZ(7,"mat-tab"),m.YNc(8,np,2,3,"ng-template",5),m.YNc(9,op,2,2,"ng-template",6),m.qZA(),m.TgZ(10,"mat-tab"),m.YNc(11,ap,2,3,"ng-template",5),m.YNc(12,cp,2,2,"ng-template",6),m.qZA(),m.qZA())}var hp,fp,dp=[{path:"",component:T,children:[{path:"",component:S,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:ye,data:{animation:"AdminAttributesPage"}},{path:"users",component:Hl.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:Zd,data:{animation:"AdminOwnersPage"}},{path:"services",component:hf,data:{animation:"AdminServicesPage"}},{path:"visualizer",component:_e,children:[{path:"",component:xe,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:be,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Le,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:Vl,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:_h,data:{animation:"AdminExtSourcesPage"}}]},{path:"users/:userId",component:sh,children:[{path:"",component:uh.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:(hp=function(){function t(e,n,r,i){f(this,t),this.route=e,this.usersService=n,this.membersService=r,this.groupService=i,this.initLoading=!1,this.loading=!1,this.vos=[],this.selectedVo=null,this.member=null,this.groups=[]}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.initLoading=!0,this.route.parent.params.subscribe(function(e){t.userId=e.userId,t.usersService.getVosWhereUserIsMember(t.userId).subscribe(function(e){t.vos=e,t.initLoading=!1},function(){return t.initLoading=!1})})}},{key:"loadMember",value:function(t){var e=this;this.loading=!0,this.selectedVo=t,this.membersService.getMemberByUser(this.selectedVo.id,this.userId).subscribe(function(t){e.member=t,e.groupService.getMemberRichGroupsWithAttributesByNames(e.member.id,["urn:perun:member_group:attribute-def:virt:groupStatus"]).subscribe(function(t){e.groups=t,e.loading=!1},function(){return e.loading=!1})},function(){return e.loading=!1})}}]),t}(),hp.\u0275fac=function(t){return new(t||hp)(m.Y36(g.gz),m.Y36(N.Fv),m.Y36(N.uq),m.Y36(N.ff))},hp.\u0275cmp=m.Xpm({type:hp,selectors:[["app-perun-web-apps-user-accounts"]],decls:7,vars:6,consts:[[1,"page-title"],[4,"ngIf"],[1,"d-flex"],["class","w-50",3,"vos","voSelected",4,"ngIf"],[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,"displayedColumns","groups",4,"ngIf"],[3,"displayedColumns","groups"],[3,"entityId","entity",4,"ngIf"],[3,"entityId","entity"],[3,"firstEntityId","firstEntity","secondEntity",4,"ngIf"],[3,"firstEntityId","firstEntity","secondEntity"]],template:function(t,e){1&t&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.YNc(3,Yd,1,0,"mat-spinner",1),m.TgZ(4,"div",2),m.YNc(5,Bd,1,1,"perun-web-apps-vo-search-select",3),m.qZA(),m.YNc(6,lp,13,0,"mat-tab-group",1)),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,4,"USER_DETAIL.ACCOUNTS.TITLE")),m.xp6(2),m.Q6J("ngIf",e.initLoading),m.xp6(2),m.Q6J("ngIf",!e.initLoading),m.xp6(1),m.Q6J("ngIf",!e.initLoading))},directives:[d.O5,M.$g,Ud.M,Pd.SP,Pd.uX,Pd.uD,Pd.Vc,g.yS,Fd.b,qd.W,zd.t,jd.Y],pipes:[x.X$],styles:[".subtitle[_ngcontent-%COMP%]{font-size:1.2rem}"]}),hp),data:{animation:"UserAccountsPage"}},{path:"attributes",component:fh.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:ch.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:lh.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:Kh,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:Ld,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:vf,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Ef,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:wh.t,data:{animation:"UserRolesPage"}},{path:"settings",component:hh.L,children:[{path:"",component:dh.x,data:{animation:"UserSettingsOverviewPage"}},{path:"service-identities",component:qh,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:nd,data:{animation:"AssociatedUsersPage"}}]}]},{path:"services/:serviceId",component:Df,children:[{path:"",component:Nf,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:Qf,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:dd,data:{animation:"ServiceDestinationsPage"}}]}],pp=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[g.Bz.forChild(dp)],g.Bz]}),t}(),gp=l(28780),vp=l(22727),mp=l(22280),yp=l(6363),_p=((fp=function t(){f(this,t)}).\u0275fac=function(t){return new(t||fp)},fp.\u0275mod=m.oAB({type:fp}),fp.\u0275inj=m.cJS({imports:[[Va,Ll,d.ez,pp,gp.m,vp.r,bt.ez,mp.d4,yp.UsersModule]]}),fp)},91721:function(t,e,n){"use strict";n.d(e,{Q:function(){return F}});var r=n(31572),i=n(58623),o=n(67033),a=n(4230),s=n(84140),u=n(88426),c=n(82819),l=n(61511),h=n(29236),d=n(43691),g=n(36922),v=n(84534),m=n(57629),y=n(39571),_=n(48160);function w(t,e){if(1&t){var n=r.EpF();r.TgZ(0,"th",16),r.TgZ(1,"mat-checkbox",17),r.NdJ("change",function(t){r.CHM(n);var e=r.oxw();return t?e.masterToggle():null}),r.qZA(),r.qZA()}if(2&t){var i=r.oxw();r.xp6(1),r.Q6J("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function b(t,e){if(1&t){var n=r.EpF();r.TgZ(0,"td",18),r.TgZ(1,"mat-checkbox",19),r.NdJ("change",function(t){var e=r.CHM(n).$implicit,i=r.oxw();return t?i.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),r.qZA(),r.qZA()}if(2&t){var i=e.$implicit,o=r.oxw();r.xp6(1),r.Q6J("aria-label",o.checkboxLabel(i))("checked",o.selection.isSelected(i))}}function x(t,e){1&t&&(r.TgZ(0,"th",20),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")))}function E(t,e){if(1&t&&(r.TgZ(0,"td",18),r._uU(1),r.qZA()),2&t){var n=e.$implicit;r.xp6(1),r.Oqu(n.id)}}function T(t,e){1&t&&(r.TgZ(0,"th",20),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")))}function A(t,e){if(1&t&&(r.TgZ(0,"td",21),r._uU(1),r.qZA()),2&t){var n=e.$implicit;r.xp6(1),r.Oqu(n.name)}}function S(t,e){1&t&&r._UZ(0,"th",16)}function k(t,e){1&t&&(r.TgZ(0,"mat-icon",23),r.ALo(1,"translate"),r._uU(2," check_circle_outline "),r.qZA()),2&t&&r.s9C("matTooltip",r.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function I(t,e){1&t&&(r.TgZ(0,"mat-icon",23),r.ALo(1,"translate"),r._uU(2," block "),r.qZA()),2&t&&r.s9C("matTooltip",r.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function C(t,e){if(1&t&&(r.TgZ(0,"td",21),r.YNc(1,k,3,3,"mat-icon",22),r.YNc(2,I,3,3,"mat-icon",22),r.qZA()),2&t){var n=e.$implicit;r.xp6(1),r.Q6J("ngIf",n.enabled),r.xp6(1),r.Q6J("ngIf",!n.enabled)}}function D(t,e){1&t&&(r.TgZ(0,"th",16),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")))}function N(t,e){if(1&t&&(r.TgZ(0,"td",21),r._uU(1),r.qZA()),2&t){var n=e.$implicit;r.xp6(1),r.Oqu(n.script)}}function Z(t,e){1&t&&(r.TgZ(0,"th",20),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")))}function M(t,e){if(1&t&&(r.TgZ(0,"td",21),r._uU(1),r.qZA()),2&t){var n=e.$implicit;r.xp6(1),r.Oqu(n.description)}}function O(t,e){1&t&&r._UZ(0,"tr",24)}var R=function(t){return["/admin/services",t]};function L(t,e){if(1&t&&r._UZ(0,"tr",25),2&t){var n=e.$implicit,i=r.oxw();r.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),r.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:r.VKq(6,R,n.id))("routerLink",i.disableRouting?null:r.VKq(8,R,n.id))}}function U(t,e){1&t&&(r.TgZ(0,"app-alert",26),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function P(t,e){1&t&&(r.TgZ(0,"app-alert",26),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}var F=function(){var t=function(){function t(e,n){f(this,t),this.authResolver=e,this.tableCheckbox=n,this.services=[],this.filterValue="",this.pageSize=10,this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new a.Ov(!0,[]),this.disableRouting=!1,this.page=new r.vpe,this.pageSizeOptions=s.f7}return p(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new o.by(this.services),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"enabled":return t.enabled?"true":"false";case"script":return t.script;case"description":return t.description;default:return""}}},{key:"exportData",value:function(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,n){return(0,s.Sd)(e,n,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,n){return(0,s.pR)(e,n,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(u.x4),r.Y36(u.UA))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-services-list"]],viewQuery:function(t,e){var n;(1&t&&(r.Gf(i.YE,7),r.Gf(s.l9,7)),2&t)&&(r.iGM(n=r.CRH())&&(e.matSort=n.first),r.iGM(n=r.CRH())&&(e.child=n.first))},inputs:{services:"services",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{page:"page"},features:[r.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","enabled"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"perun-web-apps-table-wrapper",1),r.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),r.TgZ(2,"table",2),r.ynx(3,3),r.YNc(4,w,2,3,"th",4),r.YNc(5,b,2,2,"td",5),r.BQk(),r.ynx(6,6),r.YNc(7,x,3,3,"th",7),r.YNc(8,E,2,1,"td",5),r.BQk(),r.ynx(9,8),r.YNc(10,T,3,3,"th",7),r.YNc(11,A,2,1,"td",9),r.BQk(),r.ynx(12,10),r.YNc(13,S,1,0,"th",4),r.YNc(14,C,3,2,"td",9),r.BQk(),r.ynx(15,11),r.YNc(16,D,3,3,"th",4),r.YNc(17,N,2,1,"td",9),r.BQk(),r.ynx(18,12),r.YNc(19,Z,3,3,"th",7),r.YNc(20,M,2,1,"td",9),r.BQk(),r.YNc(21,O,1,0,"tr",13),r.YNc(22,L,1,10,"tr",14),r.qZA(),r.qZA(),r.qZA(),r.YNc(23,U,3,3,"app-alert",15),r.YNc(24,P,3,3,"app-alert",15)),2&t&&(r.Q6J("hidden",void 0===e.services||0===e.services.length||0===e.dataSource.filteredData.length),r.xp6(1),r.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),r.xp6(1),r.Q6J("dataSource",e.dataSource),r.xp6(19),r.Q6J("matHeaderRowDef",e.displayedColumns),r.xp6(1),r.Q6J("matRowDefColumns",e.displayedColumns),r.xp6(1),r.Q6J("ngIf",0===e.dataSource.filteredData.length&&void 0!==e.services&&0!==e.services.length),r.xp6(1),r.Q6J("ngIf",void 0===e.services||0===e.services.length))},directives:[c.l,o.BZ,i.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,i.nU,d.Hw,g.gM,o.XQ,o.Gk,v.YH,m.rH,y.w],pipes:[_.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t}()},95914:function(t,e,n){"use strict";function r(t,e){return t(e={exports:{}},e.exports),e.exports}n.r(e),n.d(e,{StackParser:function(){return l},graphviz:function(){return m},graphvizSync:function(){return _},parse:function(){return h},wasmFolder:function(){return s}});var i=r(function(t,e){var n,r=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(t){var e,r=void 0!==(t=t||{})?t:{},i={};for(e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);var o,a="./this.program",s="";document.currentScript&&(s=document.currentScript.src),n&&(s=n),s=0!==s.indexOf("blob:")?s.substr(0,s.lastIndexOf("/")+1):"",o=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText};var u,c,l=r.print||console.log.bind(console),h=r.printErr||console.warn.bind(console);for(e in i)i.hasOwnProperty(e)&&(r[e]=i[e]);i=null,r.thisProgram&&(a=r.thisProgram),r.wasmBinary&&(u=r.wasmBinary),"object"!=typeof WebAssembly&&h("no native wasm support detected");var f=new WebAssembly.Table({initial:153,maximum:153,element:"anyfunc"}),d=!1;function p(t,e){t||z("Assertion failed: "+e)}var g,v,m,y,_,w="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function b(t,e,n){for(var r=e+n,i=e;t[i]&&!(i>=r);)++i;if(i-e>16&&t.subarray&&w)return w.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function x(t,e){return t?b(m,t,e):""}function E(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function T(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function A(t){g=t,r.HEAP8=v=new Int8Array(t),r.HEAP16=new Int16Array(t),r.HEAP32=y=new Int32Array(t),r.HEAPU8=m=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=_=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var S=r.TOTAL_MEMORY||16777216;function k(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(c=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:S/65536}))&&(g=c.buffer),S=g.byteLength,A(g),y[2080]=5251360;var I=[],C=[],D=[],N=[],Z=!1,M=Math.abs,O=Math.ceil,R=Math.floor,L=Math.min,U=0,P=null;function F(t){U++,r.monitorRunDependencies&&r.monitorRunDependencies(U)}function q(t){if(U--,r.monitorRunDependencies&&r.monitorRunDependencies(U),0==U&&P){var e=P;P=null,e()}}function z(t){throw r.onAbort&&r.onAbort(t),l(t+=""),h(t),d=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function j(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var Y,B,J,G="expatlib.wasm";function V(){try{if(u)return new Uint8Array(u);throw"both async and sync fetching of the wasm failed"}catch(h){z(h)}}j(G)||(Y=G,G=r.locateFile?r.locateFile(Y,s):s+Y);var H={1184:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";e.startElement()},1404:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";e.endElement()},1616:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";e.characterData()}};C.push({func:function(){lt()}});var Q={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=Q.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return Q.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return Q.normalize(t.join("/"))},join2:function(t,e){return Q.normalize(t+"/"+e)}};function W(t){return r.___errno_location&&(y[r.___errno_location()>>2]=t),t}var X={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:tt.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=X.resolve(t).substr(1),e=X.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(l(b(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(h(b(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(h(b(t.output,0)),t.output=[])}}},K={ops_table:null,mount:function(t){return K.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(tt.isBlkdev(n)||tt.isFIFO(n))throw new tt.ErrnoError(63);K.ops_table||(K.ops_table={dir:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr,lookup:K.node_ops.lookup,mknod:K.node_ops.mknod,rename:K.node_ops.rename,unlink:K.node_ops.unlink,rmdir:K.node_ops.rmdir,readdir:K.node_ops.readdir,symlink:K.node_ops.symlink},stream:{llseek:K.stream_ops.llseek}},file:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr},stream:{llseek:K.stream_ops.llseek,read:K.stream_ops.read,write:K.stream_ops.write,allocate:K.stream_ops.allocate,mmap:K.stream_ops.mmap,msync:K.stream_ops.msync}},link:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr,readlink:K.node_ops.readlink},stream:{}},chrdev:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr},stream:tt.chrdev_stream_ops}});var i=tt.createNode(t,e,n,r);return tt.isDir(i.mode)?(i.node_ops=K.ops_table.dir.node,i.stream_ops=K.ops_table.dir.stream,i.contents={}):tt.isFile(i.mode)?(i.node_ops=K.ops_table.file.node,i.stream_ops=K.ops_table.file.stream,i.usedBytes=0,i.contents=null):tt.isLink(i.mode)?(i.node_ops=K.ops_table.link.node,i.stream_ops=K.ops_table.link.stream):tt.isChrdev(i.mode)&&(i.node_ops=K.ops_table.chrdev.node,i.stream_ops=K.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new tt.ErrnoError(32);for(var i=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),o=tt.root,a="/",s=0;s40)throw new tt.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(tt.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%tt.nameTable.length},hashAddNode:function(t){var e=tt.hashName(t.parent.id,t.name);t.name_next=tt.nameTable[e],tt.nameTable[e]=t},hashRemoveNode:function(t){var e=tt.hashName(t.parent.id,t.name);if(tt.nameTable[e]===t)tt.nameTable[e]=t.name_next;else for(var n=tt.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=tt.mayLookup(t);if(n)throw new tt.ErrnoError(n,t);for(var r=tt.hashName(t.id,e),i=tt.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return tt.lookup(t,e)},createNode:function(t,e,n,r){tt.FSNode||(tt.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=tt.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},tt.FSNode.prototype={},Object.defineProperties(tt.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return tt.isDir(this.mode)}},isDevice:{get:function(){return tt.isChrdev(this.mode)}}}));var i=new tt.FSNode(t,e,n,r);return tt.hashAddNode(i),i},destroyNode:function(t){tt.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=tt.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return tt.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return tt.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return tt.lookupNode(t,e),20}catch(n){}return tt.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=tt.lookupNode(t,e)}catch(o){return o.errno}var i=tt.nodePermissions(t,"wx");if(i)return i;if(n){if(!tt.isDir(r.mode))return 54;if(tt.isRoot(r)||tt.getPath(r)===tt.cwd())return 10}else if(tt.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?tt.isLink(t.mode)?32:tt.isDir(t.mode)&&("r"!==tt.flagsToPermissionString(e)||512&e)?31:tt.nodePermissions(t,tt.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||tt.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!tt.streams[n])return n;throw new tt.ErrnoError(33)},getStream:function(t){return tt.streams[t]},createStream:function(t,e,n){tt.FSStream||(tt.FSStream=function(){},tt.FSStream.prototype={},Object.defineProperties(tt.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new tt.FSStream;for(var i in t)r[i]=t[i];t=r;var o=tt.nextfd(e,n);return t.fd=o,tt.streams[o]=t,t},closeStream:function(t){tt.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=tt.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new tt.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){tt.devices[t]={stream_ops:e}},getDevice:function(t){return tt.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),tt.syncFSRequests++,tt.syncFSRequests>1&&h("warning: "+tt.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=tt.getMounts(tt.root.mount),r=0;function i(t){return tt.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)})},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&tt.root)throw new tt.ErrnoError(10);if(!i&&!o){var a=tt.lookupPath(n,{follow_mount:!1});if(n=a.path,tt.isMountpoint(r=a.node))throw new tt.ErrnoError(10);if(!tt.isDir(r.mode))throw new tt.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?tt.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=tt.lookupPath(t,{follow_mount:!1});if(!tt.isMountpoint(e.node))throw new tt.ErrnoError(28);var n=e.node,r=n.mounted,i=tt.getMounts(r);Object.keys(tt.nameTable).forEach(function(t){for(var e=tt.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&tt.destroyNode(e),e=n}}),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=tt.lookupPath(t,{parent:!0}).node,i=Q.basename(t);if(!i||"."===i||".."===i)throw new tt.ErrnoError(28);var o=tt.mayCreate(r,i);if(o)throw new tt.ErrnoError(o);if(!r.node_ops.mknod)throw new tt.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,tt.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,tt.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter(function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):at(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]}),!o&&r||(a=r=1,r=this.getter(0).length,a=r,l("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=tt.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach(function(t){var e=s.stream_ops[t];u[t]=function(){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);return e.apply(null,arguments)}}),u.read=function(t,e,n,r,i){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,y[n+4>>2]=0,y[n+8>>2]=r.ino,y[n+12>>2]=r.mode,y[n+16>>2]=r.nlink,y[n+20>>2]=r.uid,y[n+24>>2]=r.gid,y[n+28>>2]=r.rdev,y[n+32>>2]=0,J=[r.size>>>0,(B=r.size,+M(B)>=1?B>0?(0|L(+R(B/4294967296),4294967295))>>>0:~~+O((B-+(~~B>>>0))/4294967296)>>>0:0)],y[n+40>>2]=J[0],y[n+44>>2]=J[1],y[n+48>>2]=4096,y[n+52>>2]=r.blocks,y[n+56>>2]=r.atime.getTime()/1e3|0,y[n+60>>2]=0,y[n+64>>2]=r.mtime.getTime()/1e3|0,y[n+68>>2]=0,y[n+72>>2]=r.ctime.getTime()/1e3|0,y[n+76>>2]=0,J=[r.ino>>>0,(B=r.ino,+M(B)>=1?B>0?(0|L(+R(B/4294967296),4294967295))>>>0:~~+O((B-+(~~B>>>0))/4294967296)>>>0:0)],y[n+80>>2]=J[0],y[n+84>>2]=J[1],0},doMsync:function(t,e,n,r,i){var o=m.slice(t,t+n);tt.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=Q.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),tt.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return tt.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=tt.readlink(t),i=Math.min(n,T(r)),o=v[e+i];return E(r,m,e,n+1),v[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=tt.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&tt.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=tt.getStream(n);return r&&tt.close(r),tt.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=tt.read(t,v,y[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],y[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return et.varargs+=4,y[et.varargs-4>>2]},getStr:function(){return x(et.get())},getStreamFromFD:function(t){void 0===t&&(t=et.get());var e=tt.getStream(t);if(!e)throw new tt.ErrnoError(8);return e},get64:function(){var t=et.get();return et.get(),t},getZero:function(){et.get()}};function nt(t){try{return c.grow(t-g.byteLength+65535>>16),A(c.buffer),1}catch(e){}}var rt={};function it(){if(!it.strings){var t={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",_:a||"./this.program"};for(var e in rt)t[e]=rt[e];var n=[];for(var e in t)n.push(e+"="+t[e]);it.strings=n}return it.strings}function ot(t,e){ot.array||(ot.array=[]);var n,r=ot.array;for(r.length=0;n=m[t++];)100===n||102===n?(r.push(_[(e=e+7&-8)>>3]),e+=8):(r.push(y[(e=e+3&-4)>>2]),e+=4);return r}function at(t,e,n){var r=n>0?n:T(t)+1,i=new Array(r),o=E(t,i,0,i.length);return e&&(i.length=o),i}tt.staticInit();var st={h:function(t,e){et.varargs=e;try{return 42}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||z(n),-n.errno}},e:function(){z()},a:function(t,e,n){var r=ot(e,n);return H[t].apply(null,r)},c:function(t,e,n){m.set(m.subarray(e,e+n),t)},d:function(t){var e=m.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),nt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},f:function(t,e){var n=it(),r=0;return n.forEach(function(n,i){var o=e+r;y[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);v[e>>0]=0}(n,o),r+=n.length+1}),0},g:function(t,e){var n=it();y[t>>2]=n.length;var r=0;return n.forEach(function(t){r+=t.length+1}),y[e>>2]=r,0},j:function(t){try{var e=et.getStreamFromFD(t);return tt.close(e),0}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||z(n),n.errno}},i:function(t,e,n,r,i){try{var o=et.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(tt.llseek(o,a,r),J=[o.position>>>0,(B=o.position,+M(B)>=1?B>0?(0|L(+R(B/4294967296),4294967295))>>>0:~~+O((B-+(~~B>>>0))/4294967296)>>>0:0)],y[i>>2]=J[0],y[i+4>>2]=J[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==tt&&s instanceof tt.ErrnoError||z(s),s.errno}},b:function(t,e,n,r){try{var i=et.getStreamFromFD(t),o=et.doWritev(i,e,n);return y[r>>2]=o,0}catch(a){return void 0!==tt&&a instanceof tt.ErrnoError||z(a),a.errno}},k:function(t){var e=Date.now();return y[t>>2]=e/1e3|0,y[t+4>>2]=e%1e3*1e3|0,0},memory:c,table:f},ut=function(){var t={a:st};function e(t,e){r.asm=t.exports,q()}function n(t){e(t.instance)}function i(e){return(u||"function"!=typeof fetch?new Promise(function(t,e){t(V())}):fetch(G,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+G+"'";return t.arrayBuffer()}).catch(function(){return V()})).then(function(e){return WebAssembly.instantiate(e,t)}).then(e,function(t){h("failed to asynchronously prepare wasm: "+t),z(t)})}if(F(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return h("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(u||"function"!=typeof WebAssembly.instantiateStreaming||j(G)||"function"!=typeof fetch)return i(n);fetch(G,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,t).then(n,function(t){h("wasm streaming compile failed: "+t),h("falling back to ArrayBuffer instantiation"),i(n)})})}(),{}}();r.asm=ut;var ct,lt=r.___wasm_call_ctors=function(){return(lt=r.___wasm_call_ctors=r.asm.l).apply(null,arguments)},ht=r._emscripten_bind_CExpat_CExpat_0=function(){return(ht=r._emscripten_bind_CExpat_CExpat_0=r.asm.m).apply(null,arguments)},ft=r._emscripten_bind_CExpat_create_0=function(){return(ft=r._emscripten_bind_CExpat_create_0=r.asm.n).apply(null,arguments)},dt=r._emscripten_bind_CExpat_destroy_0=function(){return(dt=r._emscripten_bind_CExpat_destroy_0=r.asm.o).apply(null,arguments)},pt=r._emscripten_bind_CExpat_parse_1=function(){return(pt=r._emscripten_bind_CExpat_parse_1=r.asm.p).apply(null,arguments)},gt=r._emscripten_bind_CExpat_tag_0=function(){return(gt=r._emscripten_bind_CExpat_tag_0=r.asm.q).apply(null,arguments)},vt=r._emscripten_bind_CExpat_attrs_0=function(){return(vt=r._emscripten_bind_CExpat_attrs_0=r.asm.r).apply(null,arguments)},mt=r._emscripten_bind_CExpat_content_0=function(){return(mt=r._emscripten_bind_CExpat_content_0=r.asm.s).apply(null,arguments)},yt=r._emscripten_bind_CExpat_startElement_0=function(){return(yt=r._emscripten_bind_CExpat_startElement_0=r.asm.t).apply(null,arguments)},_t=r._emscripten_bind_CExpat_endElement_0=function(){return(_t=r._emscripten_bind_CExpat_endElement_0=r.asm.u).apply(null,arguments)},wt=r._emscripten_bind_CExpat_characterData_0=function(){return(wt=r._emscripten_bind_CExpat_characterData_0=r.asm.v).apply(null,arguments)},bt=r._emscripten_bind_CExpat___destroy___0=function(){return(bt=r._emscripten_bind_CExpat___destroy___0=r.asm.w).apply(null,arguments)},xt=r._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(xt=r._emscripten_bind_CExpatJS_CExpatJS_0=r.asm.x).apply(null,arguments)},Et=r._emscripten_bind_CExpatJS_startElement_0=function(){return(Et=r._emscripten_bind_CExpatJS_startElement_0=r.asm.y).apply(null,arguments)},Tt=r._emscripten_bind_CExpatJS_endElement_0=function(){return(Tt=r._emscripten_bind_CExpatJS_endElement_0=r.asm.z).apply(null,arguments)},At=r._emscripten_bind_CExpatJS_characterData_0=function(){return(At=r._emscripten_bind_CExpatJS_characterData_0=r.asm.A).apply(null,arguments)},St=r._emscripten_bind_CExpatJS___destroy___0=function(){return(St=r._emscripten_bind_CExpatJS___destroy___0=r.asm.B).apply(null,arguments)},kt=r._emscripten_bind_VoidPtr___destroy___0=function(){return(kt=r._emscripten_bind_VoidPtr___destroy___0=r.asm.C).apply(null,arguments)},It=r._malloc=function(){return(It=r._malloc=r.asm.D).apply(null,arguments)};function Ct(t){function e(){ct||(ct=!0,d||(Z=!0,r.noFSInit||tt.init.initialized||tt.init(),$.init(),k(C),tt.ignorePermissions=!1,k(D),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),N.unshift(t);var t;k(N)}()))}U>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),I.unshift(t);var t;k(I)}(),U>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),e()},1)):e()))}if(r._free=function(){return(r._free=r.asm.E).apply(null,arguments)},r.___errno_location=function(){return(r.___errno_location=r.asm.F).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.G).apply(null,arguments)},r.dynCall_vi=function(){return(r.dynCall_vi=r.asm.H).apply(null,arguments)},r.asm=ut,r.then=function(t){if(ct)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},P=function t(){ct||Ct(),ct||(P=t)},r.run=Ct,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function Dt(){}function Nt(t){return(t||Dt).__cache__}function Zt(t,e){var n=Nt(e),r=n[t];return r||((r=Object.create((e||Dt).prototype)).ptr=t,n[t]=r)}Ct(),(Dt.prototype=Object.create(Dt.prototype)).constructor=Dt,Dt.prototype.__class__=Dt,Dt.__cache__={},r.WrapperObject=Dt,r.getCache=Nt,r.wrapPointer=Zt,r.castObject=function(t,e){return Zt(t.ptr,e)},r.NULL=Zt(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete Nt(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var Mt={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Mt.needed){for(var t=0;t=Mt.size?(p(i>0),Mt.needed+=i,n=r._malloc(i),Mt.temps.push(n)):(n=Mt.buffer+Mt.pos,Mt.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i=r);)++i;if(i-e>16&&t.subarray&&A)return A.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function k(t,e){return t?S(b,t,e):""}function I(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function C(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function D(t){_=t,r.HEAP8=w=new Int8Array(t),r.HEAP16=x=new Int16Array(t),r.HEAP32=E=new Int32Array(t),r.HEAPU8=b=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=T=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var N=r.TOTAL_MEMORY||16777216;function Z(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(d=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:N/65536}))&&(_=d.buffer),N=_.byteLength,D(_),E[54772]=5462128;var M=[],O=[],R=[],L=[],U=!1,P=Math.abs,F=Math.ceil,q=Math.floor,z=Math.min,j=0,Y=null;function B(t){j++,r.monitorRunDependencies&&r.monitorRunDependencies(j)}function J(t){if(j--,r.monitorRunDependencies&&r.monitorRunDependencies(j),0==j&&Y){var e=Y;Y=null,e()}}function G(t){throw r.onAbort&&r.onAbort(t),c(t+=""),l(t),m=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function V(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var H,Q,W,X="graphvizlib.wasm";function $(){try{if(h)return new Uint8Array(h);throw"both async and sync fetching of the wasm failed"}catch(l){G(l)}}V(X)||(H=X,X=r.locateFile?r.locateFile(H,u):u+H);var K={1088:function(t,e){var n=k(t),r=k(e);at.createPath("/",nt.dirname(n)),at.writeFile(nt.join("/",n),r)}};function tt(){G()}function et(t){return r.___errno_location&&(E[r.___errno_location()>>2]=t),t}O.push({func:function(){Et()}});var nt={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=nt.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return nt.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return nt.normalize(t.join("/"))},join2:function(t,e){return nt.normalize(t+"/"+e)}},rt={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:at.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=rt.resolve(t).substr(1),e=rt.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(c(S(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(l(S(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(l(S(t.output,0)),t.output=[])}}},ot={ops_table:null,mount:function(t){return ot.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(at.isBlkdev(n)||at.isFIFO(n))throw new at.ErrnoError(63);ot.ops_table||(ot.ops_table={dir:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,lookup:ot.node_ops.lookup,mknod:ot.node_ops.mknod,rename:ot.node_ops.rename,unlink:ot.node_ops.unlink,rmdir:ot.node_ops.rmdir,readdir:ot.node_ops.readdir,symlink:ot.node_ops.symlink},stream:{llseek:ot.stream_ops.llseek}},file:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:{llseek:ot.stream_ops.llseek,read:ot.stream_ops.read,write:ot.stream_ops.write,allocate:ot.stream_ops.allocate,mmap:ot.stream_ops.mmap,msync:ot.stream_ops.msync}},link:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,readlink:ot.node_ops.readlink},stream:{}},chrdev:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:at.chrdev_stream_ops}});var i=at.createNode(t,e,n,r);return at.isDir(i.mode)?(i.node_ops=ot.ops_table.dir.node,i.stream_ops=ot.ops_table.dir.stream,i.contents={}):at.isFile(i.mode)?(i.node_ops=ot.ops_table.file.node,i.stream_ops=ot.ops_table.file.stream,i.usedBytes=0,i.contents=null):at.isLink(i.mode)?(i.node_ops=ot.ops_table.link.node,i.stream_ops=ot.ops_table.link.stream):at.isChrdev(i.mode)&&(i.node_ops=ot.ops_table.chrdev.node,i.stream_ops=ot.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new at.ErrnoError(32);for(var i=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),o=at.root,a="/",s=0;s40)throw new at.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(at.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%at.nameTable.length},hashAddNode:function(t){var e=at.hashName(t.parent.id,t.name);t.name_next=at.nameTable[e],at.nameTable[e]=t},hashRemoveNode:function(t){var e=at.hashName(t.parent.id,t.name);if(at.nameTable[e]===t)at.nameTable[e]=t.name_next;else for(var n=at.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=at.mayLookup(t);if(n)throw new at.ErrnoError(n,t);for(var r=at.hashName(t.id,e),i=at.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return at.lookup(t,e)},createNode:function(t,e,n,r){at.FSNode||(at.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=at.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},at.FSNode.prototype={},Object.defineProperties(at.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return at.isDir(this.mode)}},isDevice:{get:function(){return at.isChrdev(this.mode)}}}));var i=new at.FSNode(t,e,n,r);return at.hashAddNode(i),i},destroyNode:function(t){at.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=at.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return at.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return at.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return at.lookupNode(t,e),20}catch(n){}return at.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=at.lookupNode(t,e)}catch(o){return o.errno}var i=at.nodePermissions(t,"wx");if(i)return i;if(n){if(!at.isDir(r.mode))return 54;if(at.isRoot(r)||at.getPath(r)===at.cwd())return 10}else if(at.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?at.isLink(t.mode)?32:at.isDir(t.mode)&&("r"!==at.flagsToPermissionString(e)||512&e)?31:at.nodePermissions(t,at.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||at.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!at.streams[n])return n;throw new at.ErrnoError(33)},getStream:function(t){return at.streams[t]},createStream:function(t,e,n){at.FSStream||(at.FSStream=function(){},at.FSStream.prototype={},Object.defineProperties(at.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new at.FSStream;for(var i in t)r[i]=t[i];t=r;var o=at.nextfd(e,n);return t.fd=o,at.streams[o]=t,t},closeStream:function(t){at.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=at.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new at.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){at.devices[t]={stream_ops:e}},getDevice:function(t){return at.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),at.syncFSRequests++,at.syncFSRequests>1&&l("warning: "+at.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=at.getMounts(at.root.mount),r=0;function i(t){return at.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)})},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&at.root)throw new at.ErrnoError(10);if(!i&&!o){var a=at.lookupPath(n,{follow_mount:!1});if(n=a.path,at.isMountpoint(r=a.node))throw new at.ErrnoError(10);if(!at.isDir(r.mode))throw new at.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?at.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=at.lookupPath(t,{follow_mount:!1});if(!at.isMountpoint(e.node))throw new at.ErrnoError(28);var n=e.node,r=n.mounted,i=at.getMounts(r);Object.keys(at.nameTable).forEach(function(t){for(var e=at.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&at.destroyNode(e),e=n}}),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=at.lookupPath(t,{parent:!0}).node,i=nt.basename(t);if(!i||"."===i||".."===i)throw new at.ErrnoError(28);var o=at.mayCreate(r,i);if(o)throw new at.ErrnoError(o);if(!r.node_ops.mknod)throw new at.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,at.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,at.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter(function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):_t(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]}),!o&&r||(a=r=1,r=this.getter(0).length,a=r,c("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=at.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach(function(t){var e=s.stream_ops[t];u[t]=function(){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);return e.apply(null,arguments)}}),u.read=function(t,e,n,r,i){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,E[n+4>>2]=0,E[n+8>>2]=r.ino,E[n+12>>2]=r.mode,E[n+16>>2]=r.nlink,E[n+20>>2]=r.uid,E[n+24>>2]=r.gid,E[n+28>>2]=r.rdev,E[n+32>>2]=0,W=[r.size>>>0,(Q=r.size,+P(Q)>=1?Q>0?(0|z(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[n+40>>2]=W[0],E[n+44>>2]=W[1],E[n+48>>2]=4096,E[n+52>>2]=r.blocks,E[n+56>>2]=r.atime.getTime()/1e3|0,E[n+60>>2]=0,E[n+64>>2]=r.mtime.getTime()/1e3|0,E[n+68>>2]=0,E[n+72>>2]=r.ctime.getTime()/1e3|0,E[n+76>>2]=0,W=[r.ino>>>0,(Q=r.ino,+P(Q)>=1?Q>0?(0|z(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[n+80>>2]=W[0],E[n+84>>2]=W[1],0},doMsync:function(t,e,n,r,i){var o=b.slice(t,t+n);at.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=nt.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),at.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return at.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=at.readlink(t),i=Math.min(n,C(r)),o=w[e+i];return I(r,b,e,n+1),w[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=at.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&at.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=at.getStream(n);return r&&at.close(r),at.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=at.read(t,w,E[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],E[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return st.varargs+=4,E[st.varargs-4>>2]},getStr:function(){return k(st.get())},getStreamFromFD:function(t){void 0===t&&(t=st.get());var e=at.getStream(t);if(!e)throw new at.ErrnoError(8);return e},get64:function(){var t=st.get();return st.get(),t},getZero:function(){st.get()}};function ut(t,e,n){e|=0;var r,i=0,o=0,a=0;if(r=(t|=0)+(n|=0)|0,e&=255,(0|n)>=67){for(;0!=(3&t);)w[t>>0]=e,t=t+1|0;for(a=e|e<<8|e<<16|e<<24,o=(i=-4&r|0)-64|0;(0|t)<=(0|o);)E[t>>2]=a,E[t+4>>2]=a,E[t+8>>2]=a,E[t+12>>2]=a,E[t+16>>2]=a,E[t+20>>2]=a,E[t+24>>2]=a,E[t+28>>2]=a,E[t+32>>2]=a,E[t+36>>2]=a,E[t+40>>2]=a,E[t+44>>2]=a,E[t+48>>2]=a,E[t+52>>2]=a,E[t+56>>2]=a,E[t+60>>2]=a,t=t+64|0;for(;(0|t)<(0|i);)E[t>>2]=a,t=t+4|0}for(;(0|t)<(0|r);)w[t>>0]=e,t=t+1|0;return r-n|0}var ct=0;function lt(t){try{return d.grow(t-_.byteLength+65535>>16),D(d.buffer),1}catch(e){}}var ht={};function ft(){if(!ft.strings){var t={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",_:a||"./this.program"};for(var e in ht)t[e]=ht[e];var n=[];for(var e in t)n.push(e+"="+t[e]);ft.strings=n}return ft.strings}function dt(t){return t%4==0&&(t%100!=0||t%400==0)}function pt(t,e){for(var n=0,r=0;r<=e;n+=t[r++]);return n}var gt=[31,29,31,30,31,30,31,31,30,31,30,31],vt=[31,28,31,30,31,30,31,31,30,31,30,31];function mt(t,e){for(var n=new Date(t.getTime());e>0;){var r=dt(n.getFullYear()),i=n.getMonth(),o=(r?gt:vt)[i];if(!(e>o-n.getDate()))return n.setDate(n.getDate()+e),n;e-=o-n.getDate()+1,n.setDate(1),i<11?n.setMonth(i+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}function yt(t,e){yt.array||(yt.array=[]);var n,r=yt.array;for(r.length=0;n=b[t++];)100===n||102===n?(r.push(T[(e=e+7&-8)>>3]),e+=8):(r.push(E[(e=e+3&-4)>>2]),e+=4);return r}function _t(t,e,n){var r=n>0?n:C(t)+1,i=new Array(r),o=I(t,i,0,i.length);return e&&(i.length=o),i}tt=function(){return performance.now()},at.staticInit();var wt={M:function(t,e){return function(t,e){var n;if(0===t)n=Date.now();else{if(1!==t&&4!==t)return et(28),-1;n=tt()}return E[e>>2]=n/1e3|0,E[e+4>>2]=n%1e3*1e3*1e3|0,0}(t,e)},k:function(t){return Ct(t)},j:function(t,e,n){throw"uncaught_exception"in Mt?Mt.uncaught_exceptions++:Mt.uncaught_exceptions=1,t},q:function(){},U:function(t,e){return et(63),-1},P:function(t,e){st.varargs=e;try{var n=st.getStr();return at.unlink(n),0}catch(r){return void 0!==at&&r instanceof at.ErrnoError||G(r),-r.errno}},R:function(t,e){st.varargs=e;try{return function(t,e,n,r,i,o){var a;o<<=12;var s=!1;if(0!=(16&r)&&t%16384!=0)return-28;if(0!=(32&r)){if(!(a=Ot(16384,e)))return-48;ut(a,0,e),s=!0}else{var u=at.getStream(i);if(!u)return-8;var c=at.mmap(u,b,t,e,o,n,r);a=c.ptr,s=c.allocated}return st.mappings[a]={malloc:a,len:e,allocated:s,fd:i,flags:r,offset:o},a}(st.get(),st.get(),st.get(),st.get(),st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||G(n),-n.errno}},S:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doStat(at.stat,n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||G(i),-i.errno}},T:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();return st.doStat(at.stat,n.path,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||G(i),-i.errno}},L:function(t,e){st.varargs=e;try{return 42}catch(n){return void 0!==at&&n instanceof at.ErrnoError||G(n),-n.errno}},y:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD();switch(st.get()){case 0:return(r=st.get())<0?-28:at.open(n.path,n.flags,0,r).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:var r=st.get();return n.flags|=r,0;case 12:return r=st.get(),x[r+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return et(28),-1;default:return-28}}catch(i){return void 0!==at&&i instanceof at.ErrnoError||G(i),-i.errno}},K:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doAccess(n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||G(i),-i.errno}},z:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get(),i=st.get();return at.open(n,r,i).fd}catch(o){return void 0!==at&&o instanceof at.ErrnoError||G(o),-o.errno}},O:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();switch(r){case 21509:case 21505:return n.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var i=st.get();return E[i>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return i=st.get(),at.ioctl(n,r,i);case 21523:case 21524:return n.tty?0:-59;default:G("bad ioctl syscall "+r)}}catch(o){return void 0!==at&&o instanceof at.ErrnoError||G(o),-o.errno}},Q:function(t,e){st.varargs=e;try{return function(t,e){if(-1===t||0===e)return-28;var n=st.mappings[t];if(!n)return 0;if(e===n.len){var r=at.getStream(n.fd);st.doMsync(t,r,e,n.flags,n.offset),at.munmap(r),st.mappings[t]=null,n.allocated&&Dt(n.malloc)}return 0}(st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||G(n),-n.errno}},m:function(){},w:function(){G()},C:function(t,e,n){var r=yt(e,n);return K[t].apply(null,r)},d:function(t,e){!function(t,e){throw Zt(t,e||1),"longjmp"}(t,e)},E:function(t,e,n){b.set(b.subarray(e,e+n),t)},F:function(t){var e=b.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),lt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},I:function(t,e){var n=ft(),r=0;return n.forEach(function(n,i){var o=e+r;E[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);w[e>>0]=0}(n,o),r+=n.length+1}),0},J:function(t,e){var n=ft();E[t>>2]=n.length;var r=0;return n.forEach(function(t){r+=t.length+1}),E[e>>2]=r,0},l:function(t){!function(t,e){f||(m=!0,r.onExit&&r.onExit(t)),s(t,new Xt(t))}(t)},p:function(t){try{var e=st.getStreamFromFD(t);return at.close(e),0}catch(n){return void 0!==at&&n instanceof at.ErrnoError||G(n),n.errno}},H:function(t,e){try{var n=st.getStreamFromFD(t),r=n.tty?2:at.isDir(n.mode)?3:at.isLink(n.mode)?7:4;return w[e>>0]=r,0}catch(i){return void 0!==at&&i instanceof at.ErrnoError||G(i),i.errno}},N:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doReadv(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||G(a),a.errno}},D:function(t,e,n,r,i){try{var o=st.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(at.llseek(o,a,r),W=[o.position>>>0,(Q=o.position,+P(Q)>=1?Q>0?(0|z(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[i>>2]=W[0],E[i+4>>2]=W[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==at&&s instanceof at.ErrnoError||G(s),s.errno}},x:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doWritev(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||G(a),a.errno}},a:function(){return 0|p},X:function(t){var e=Date.now();return E[t>>2]=e/1e3|0,E[t+4>>2]=e%1e3*1e3|0,0},Y:function(t){var e=Qt();try{return Vt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},V:function(t,e){var n=Qt();try{return Ht(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},v:function(t){var e=Qt();try{return zt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},f:function(t,e){var n=Qt();try{return jt(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},e:function t(e,n,r){var i=Qt();try{return Yt(e,n,r)}catch(t){if(Wt(i),t!==t+0&&"longjmp"!==t)throw t;Zt(1,0)}},g:function(t,e,n,r){var i=Qt();try{return Bt(t,e,n,r)}catch(o){if(Wt(i),o!==o+0&&"longjmp"!==o)throw o;Zt(1,0)}},n:function(t,e,n,r,i){var o=Qt();try{return Jt(t,e,n,r,i)}catch(a){if(Wt(o),a!==a+0&&"longjmp"!==a)throw a;Zt(1,0)}},W:function(t,e,n,r,i,o,a){var s=Qt();try{return Gt(t,e,n,r,i,o,a)}catch(u){if(Wt(s),u!==u+0&&"longjmp"!==u)throw u;Zt(1,0)}},s:function(t){var e=Qt();try{Rt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},h:function(t,e){var n=Qt();try{Lt(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},o:function(t,e,n){var r=Qt();try{Ut(t,e,n)}catch(i){if(Wt(r),i!==i+0&&"longjmp"!==i)throw i;Zt(1,0)}},u:function(t,e,n,r){var i=Qt();try{Pt(t,e,n,r)}catch(o){if(Wt(i),o!==o+0&&"longjmp"!==o)throw o;Zt(1,0)}},t:function(t,e,n,r,i){var o=Qt();try{Ft(t,e,n,r,i)}catch(a){if(Wt(o),a!==a+0&&"longjmp"!==a)throw a;Zt(1,0)}},r:function(t,e,n,r,i,o){var a=Qt();try{qt(t,e,n,r,i,o)}catch(s){if(Wt(a),s!==s+0&&"longjmp"!==s)throw s;Zt(1,0)}},memory:d,i:function t(e,n,r,i){n|=0,r|=0,i|=0;var o=0;for(E[(e|=0)>>2]=ct=ct+1|0;(0|o)<(0|i);){if(0==(0|E[r+(o<<3)>>2]))return E[r+(o<<3)>>2]=ct,E[r+(4+(o<<3))>>2]=n,E[r+(8+(o<<3))>>2]=0,g(0|i),0|r;o=o+1|0}return r=0|t(0|e,0|n,0|(r=0|Nt(0|r,8*(1+(i=2*i|0)|0)|0)),0|i),g(0|i),0|r},b:function(t){g(0|t)},G:function(t,e,n,r){return function(t,e,n,r){var i=E[r+40>>2],o={tm_sec:E[r>>2],tm_min:E[r+4>>2],tm_hour:E[r+8>>2],tm_mday:E[r+12>>2],tm_mon:E[r+16>>2],tm_year:E[r+20>>2],tm_wday:E[r+24>>2],tm_yday:E[r+28>>2],tm_isdst:E[r+32>>2],tm_gmtoff:E[r+36>>2],tm_zone:i?k(i):""},a=k(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)a=a.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(t,e,n){for(var r="number"==typeof t?t.toString():t||"";r.length0?1:0}var r;return 0===(r=n(t.getFullYear()-e.getFullYear()))&&0===(r=n(t.getMonth()-e.getMonth()))&&(r=n(t.getDate()-e.getDate())),r}function p(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function g(t){var e=mt(new Date(t.tm_year+1900,0,1),t.tm_yday),n=new Date(e.getFullYear(),0,4),r=new Date(e.getFullYear()+1,0,4),i=p(n),o=p(r);return d(i,e)<=0?d(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var v={"%a":function(t){return c[t.tm_wday].substring(0,3)},"%A":function(t){return c[t.tm_wday]},"%b":function(t){return l[t.tm_mon].substring(0,3)},"%B":function(t){return l[t.tm_mon]},"%C":function(t){return f((t.tm_year+1900)/100|0,2)},"%d":function(t){return f(t.tm_mday,2)},"%e":function(t){return h(t.tm_mday,2," ")},"%g":function(t){return g(t).toString().substring(2)},"%G":function(t){return g(t)},"%H":function(t){return f(t.tm_hour,2)},"%I":function(t){var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),f(e,2)},"%j":function(t){return f(t.tm_mday+pt(dt(t.tm_year+1900)?gt:vt,t.tm_mon-1),3)},"%m":function(t){return f(t.tm_mon+1,2)},"%M":function(t){return f(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return f(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var e=new Date(t.tm_year+1900,0,1),n=0===e.getDay()?e:mt(e,7-e.getDay()),r=new Date(t.tm_year+1900,t.tm_mon,t.tm_mday);if(d(n,r)<0){var i=pt(dt(r.getFullYear())?gt:vt,r.getMonth()-1)-31,o=31-n.getDate()+i+r.getDate();return f(Math.ceil(o/7),2)}return 0===d(n,e)?"01":"00"},"%V":function(t){var e,n=new Date(t.tm_year+1900,0,4),r=new Date(t.tm_year+1901,0,4),i=p(n),o=p(r),a=mt(new Date(t.tm_year+1900,0,1),t.tm_yday);return d(a,i)<0?"53":d(o,a)<=0?"01":(e=i.getFullYear()=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(n?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var u in v)a.indexOf(u)>=0&&(a=a.replace(new RegExp(u,"g"),v[u](o)));var m=_t(a,!1);return m.length>e?0:(function(t,e){w.set(t,e)}(m,t),m.length-1)}(t,e,n,r)},table:v,c:function(t,e,n){t|=0,e|=0,n|=0;for(var r=0,i=0;(0|r)<(0|n)&&0!=(0|(i=0|E[e+(r<<3)>>2]));){if((0|i)==(0|t))return 0|E[e+(4+(r<<3))>>2];r=r+1|0}return 0},A:function(t){var e=Date.now()/1e3|0;return t&&(E[t>>2]=e),e},B:function(t){return 0!==t&&ut(t,0,16),0}},bt=function(){var t={a:wt};function e(t,e){r.asm=t.exports,J()}function n(t){e(t.instance)}function i(e){return(h||"function"!=typeof fetch?new Promise(function(t,e){t($())}):fetch(X,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+X+"'";return t.arrayBuffer()}).catch(function(){return $()})).then(function(e){return WebAssembly.instantiate(e,t)}).then(e,function(t){l("failed to asynchronously prepare wasm: "+t),G(t)})}if(B(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return l("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(h||"function"!=typeof WebAssembly.instantiateStreaming||V(X)||"function"!=typeof fetch)return i(n);fetch(X,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,t).then(n,function(t){l("wasm streaming compile failed: "+t),l("falling back to ArrayBuffer instantiation"),i(n)})})}(),{}}();r.asm=bt;var xt,Et=r.___wasm_call_ctors=function(){return(Et=r.___wasm_call_ctors=r.asm.Z).apply(null,arguments)},Tt=r._emscripten_bind_VoidPtr___destroy___0=function(){return(Tt=r._emscripten_bind_VoidPtr___destroy___0=r.asm._).apply(null,arguments)},At=r._emscripten_bind_Main_layout_3=function(){return(At=r._emscripten_bind_Main_layout_3=r.asm.$).apply(null,arguments)},St=r._emscripten_bind_Main_lastError_0=function(){return(St=r._emscripten_bind_Main_lastError_0=r.asm.aa).apply(null,arguments)},kt=r._emscripten_bind_Main_createFile_2=function(){return(kt=r._emscripten_bind_Main_createFile_2=r.asm.ba).apply(null,arguments)},It=r._emscripten_bind_Main___destroy___0=function(){return(It=r._emscripten_bind_Main___destroy___0=r.asm.ca).apply(null,arguments)},Ct=r._malloc=function(){return(Ct=r._malloc=r.asm.da).apply(null,arguments)},Dt=r._free=function(){return(Dt=r._free=r.asm.ea).apply(null,arguments)},Nt=r._realloc=function(){return(Nt=r._realloc=r.asm.fa).apply(null,arguments)},Zt=(r.___errno_location=function(){return(r.___errno_location=r.asm.ga).apply(null,arguments)},r._setThrew=function(){return(Zt=r._setThrew=r.asm.ha).apply(null,arguments)}),Mt=r.__ZSt18uncaught_exceptionv=function(){return(Mt=r.__ZSt18uncaught_exceptionv=r.asm.ia).apply(null,arguments)},Ot=r._memalign=function(){return(Ot=r._memalign=r.asm.ja).apply(null,arguments)},Rt=r.dynCall_v=function(){return(Rt=r.dynCall_v=r.asm.ka).apply(null,arguments)},Lt=r.dynCall_vi=function(){return(Lt=r.dynCall_vi=r.asm.la).apply(null,arguments)},Ut=r.dynCall_vii=function(){return(Ut=r.dynCall_vii=r.asm.ma).apply(null,arguments)},Pt=r.dynCall_viii=function(){return(Pt=r.dynCall_viii=r.asm.na).apply(null,arguments)},Ft=r.dynCall_viiii=function(){return(Ft=r.dynCall_viiii=r.asm.oa).apply(null,arguments)},qt=r.dynCall_viiiii=function(){return(qt=r.dynCall_viiiii=r.asm.pa).apply(null,arguments)},zt=r.dynCall_i=function(){return(zt=r.dynCall_i=r.asm.qa).apply(null,arguments)},jt=r.dynCall_ii=function(){return(jt=r.dynCall_ii=r.asm.ra).apply(null,arguments)},Yt=r.dynCall_iii=function(){return(Yt=r.dynCall_iii=r.asm.sa).apply(null,arguments)},Bt=r.dynCall_iiii=function(){return(Bt=r.dynCall_iiii=r.asm.ta).apply(null,arguments)},Jt=r.dynCall_iiiii=function(){return(Jt=r.dynCall_iiiii=r.asm.ua).apply(null,arguments)},Gt=r.dynCall_iiiiiii=function(){return(Gt=r.dynCall_iiiiiii=r.asm.va).apply(null,arguments)},Vt=r.dynCall_d=function(){return(Vt=r.dynCall_d=r.asm.wa).apply(null,arguments)},Ht=r.dynCall_di=function(){return(Ht=r.dynCall_di=r.asm.xa).apply(null,arguments)},Qt=r.stackSave=function(){return(Qt=r.stackSave=r.asm.ya).apply(null,arguments)},Wt=(r.stackAlloc=function(){return(r.stackAlloc=r.asm.za).apply(null,arguments)},r.stackRestore=function(){return(Wt=r.stackRestore=r.asm.Aa).apply(null,arguments)});function Xt(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function $t(t){function e(){xt||(xt=!0,m||(U=!0,r.noFSInit||at.init.initialized||at.init(),it.init(),Z(O),at.ignorePermissions=!1,Z(R),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),L.unshift(t);var t;Z(L)}()))}j>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),M.unshift(t);var t;Z(M)}(),j>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),e()},1)):e()))}if(r.asm=bt,r.then=function(t){if(xt)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},Y=function t(){xt||$t(),xt||(Y=t)},r.run=$t,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function Kt(){}function te(t){return(t||Kt).__cache__}function ee(t,e){var n=te(e),r=n[t];return r||((r=Object.create((e||Kt).prototype)).ptr=t,n[t]=r)}f=!0,$t(),(Kt.prototype=Object.create(Kt.prototype)).constructor=Kt,Kt.prototype.__class__=Kt,Kt.__cache__={},r.WrapperObject=Kt,r.getCache=te,r.wrapPointer=ee,r.castObject=function(t,e){return ee(t.ptr,e)},r.NULL=ee(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete te(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var ne={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ne.needed){for(var t=0;t=ne.size?(y(i>0),ne.needed+=i,n=r._malloc(i),ne.temps.push(n)):(n=ne.buffer+ne.pos,ne.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i\n\n'}}function v(t,e){var n,r=p({images:[],files:[]},e);(function(){for(var t=0,e=0,n=arguments.length;e>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(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(t))?new A(e[1],e[2],e[3],1):(e=f.exec(t))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?x(e[1],e[2],e[3],e[4]):(e=p.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?C(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?C(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?b(m[t]):"transparent"===t?new A(NaN,NaN,NaN,0):null}function b(t){return new A(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new A(t,e,n,r)}function E(t){return t instanceof i||(t=w(t)),t?new A((t=t.rgb()).r,t.g,t.b,t.opacity):new A}function T(t,e,n,r){return 1===arguments.length?E(t):new A(t,e,n,null==r?1:r)}function A(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(){return"#"+I(this.r)+I(this.g)+I(this.b)}function k(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function I(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function C(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Z(t,e,n,r)}function D(t){if(t instanceof Z)return new Z(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=w(t)),!t)return new Z;if(t instanceof Z)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-o,c=(a+o)/2;return u?(s=e===a?(n-r)/u+6*(n0&&c<1?0:s,new Z(s,u,c,t.opacity)}function N(t,e,n,r){return 1===arguments.length?D(t):new Z(t,e,n,null==r?1:r)}function Z(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function M(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}(0,r.Z)(i,w,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return D(this).formatHsl()},formatRgb:_,toString:_}),(0,r.Z)(A,T,(0,r.l)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new A(this.r*t,this.g*t,this.b*t,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:S,formatHex:S,formatRgb:k,toString:k})),(0,r.Z)(Z,N,(0,r.l)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new Z(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new Z(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new A(M(t>=240?t-240:t+120,i,r),M(t,i,r),M(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},80052:function(t,e,n){"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.d(e,{Z:function(){return r},l:function(){return i}})},64641:function(t,e){"use strict";var n={value:function(){}};function r(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function a(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),o=0;o1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{Z:function(){return r}})},93116:function(t,e,n){"use strict";n.d(e,{Z:function(){return i},v:function(){return o}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.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}},25047:function(t,e,n){"use strict";n.r(e),n.d(e,{formatDefaultLocale:function(){return r.ZP},format:function(){return r.WU},formatPrefix:function(){return r.jH},formatLocale:function(){return i.Z},formatSpecifier:function(){return o.Z},FormatSpecifier:function(){return o.v},precisionFixed:function(){return a.Z},precisionPrefix:function(){return s.Z},precisionRound:function(){return u.Z}});var r=n(3712),i=n(70592),o=n(93116),a=n(22233),s=n(65636),u=n(3218)},70592:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r,i=n(98477),o=n(93116),a=n(25169);function s(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var u={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var i=n[0],o=n[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return s===u?i:s>u?i+new Array(s-u+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+(0,a.Z)(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function c(t){return t}var l=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function f(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?c:(e=l.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",f=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(l.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",v=void 0===t.minus?"-":t.minus+"",m=void 0===t.nan?"NaN":t.nan+"";function y(t){var e=(t=(0,o.Z)(t)).fill,n=t.align,i=t.sign,c=t.symbol,l=t.zero,y=t.width,_=t.comma,w=t.precision,b=t.trim,x=t.type;"n"===x?(_=!0,x="g"):u[x]||(void 0===w&&(w=12),b=!0,x="g"),(l||"0"===e&&"="===n)&&(l=!0,e="0",n="=");var E="$"===c?s:"#"===c&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",T="$"===c?f:/[%p]/.test(x)?g:"",A=u[x],S=/[defgprs%]/.test(x);function k(t){var o,s,u,c=E,f=T;if("c"===x)f=A(t)+f,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?m:A(Math.abs(t),w),b&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),g&&0==+t&&"+"!==i&&(g=!1),c=(g?"("===i?i:v:"-"===i||"("===i?"":i)+c,f=("s"===x?h[8+r/3]:"")+f+(g&&"("===i?")":""),S)for(o=-1,s=t.length;++o(u=t.charCodeAt(o))||u>57){f=(46===u?d+t.slice(o+1):t.slice(o))+f,t=t.slice(0,o);break}}_&&!l&&(t=a(t,1/0));var k=c.length+t.length+f.length,I=k>1)+c+t+f+I.slice(k);break;default:t=I+c+t+f}return p(t)}return w=void 0===w?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),k.toString=function(){return t+""},k}return{format:y,formatPrefix:function(t,e){var n=y(((t=(0,o.Z)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((0,i.Z)(e)/3))),a=Math.pow(10,-r),s=h[8+r/3];return function(t){return n(a*t)+s}}}}},22233:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t){return Math.max(0,-(0,r.Z)(Math.abs(t)))}},65636:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(e)/3)))-(0,r.Z)(Math.abs(t)))}},3218:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,r.Z)(e)-(0,r.Z)(t))+1}},73180:function(t,e,n){!function(t,e,n,r,i,o,a,s,u,c){"use strict";function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0,r=e.select(this),i=t.attributes,o=r.node().attributes;if(o)for(var a=0;a0?i.children[0].text:"")}null==t.key&&(o&&("ellipse"!=n&&"polygon"!=n||(n="path")),t.key=n+"-"+e)}function v(t,e){t.id=(e?e.id+".":"")+t.key}function m(t){c[t.id]=t}function y(t,e){o&&t.id in l&&("polygon"!=e.tag&&"ellipse"!=e.tag&&"path"!=e.tag||e.tag==t.tag&&"polygon"!=t.tag||("path"!=e.tag&&(t.alternativeOld=C(e,t)),"path"!=t.tag&&(t.alternativeNew=C(t,e))))}function _(t,e){if(i&&e&&("path"==e.tag||t.alternativeOld&&"path"==t.alternativeOld.tag)){var n=(t.alternativeNew||t).attributes.d;if(t.alternativeOld)var r=g(t.alternativeOld);else r=g(e);(t.alternativeOld||(t.alternativeOld={})).points=function(t,e,n,r){for(var i=t,o=i.cloneNode(),a=i.getTotalLength(),s=(o.setAttribute("d",e),o).getTotalLength(),u=[0],c=0,l=r?n:n/Math.max(a,s);(c+=l)<1;)u.push(c);return u.push(1),u.map(function(t){var e=i.getPointAtLength(t*a),n=o.getPointAtLength(t*s);return[[e.x,e.y],[n.x,n.y]]})}(r,n,a,s)}}function w(t){var e=arguments.length>2?arguments[2]:void 0;p(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),v(t,e);var n=l[t.id];m(t),y(t,n),_(t,n);var r={};t.children.forEach(function(e){var n=e.tag;"ellipse"!=n&&"polygon"!=n||(n="path"),null==r[n]&&(r[n]=0),w(e,r[n]++,t)})}function b(t){(function(t){if(u&&t.parent&&"node"==t.parent.attributes.class&&"title"==t.tag){if(t.children.length>0)var e=t.children[0].text;else e="";h[e]=t.parent}})(t),function(t){var e=t.tag;if(u&&!l[t.id]&&t.parent&&k(t)&&("path"==e||"polygon"==e)){if("polygon"==e){var n=t.parent.children.find(function(t){return"path"==t.tag});n&&(t.totalLength=n.totalLength)}var r=function(t){return function(t){return"edge"==t.parent.attributes.class?t.parent:t.parent.parent.parent}(t).children.find(function(t){return"title"==t.tag})}(t).children[0],i=r.text.split("->");2!=i.length&&(i=r.text.split("--"));var o=i[0],a=h[o],s=f[o];if(s){if((p=a.children.findIndex(function(t,e){return"g"==t.tag}))>=0){var c=a.children[p].children.findIndex(function(t,e){return"a"==t.tag});a=a.children[p].children[c]}(p=s.children.findIndex(function(t,e){return"g"==t.tag}))>=0&&(c=s.children[p].children.findIndex(function(t,e){return"a"==t.tag}),s=s.children[p].children[c]);for(var d=a.children,p=0;p0&&this._queue.shift().call(this)}function M(t,e,n,r){var i=[t*n-(e=-e)*(r=-r),t*r+e*n];return[t=i[0],e=-(e=i[1])]}function O(t,e,n,r,i,o,a){var s=d(P.call(this,o));t.data([s]),_.call(t.node(),s),R(t,e,n,r,i,o,a)}function R(t,e,n,r,i,o,a){var s=a.shortening||0,u=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],l=r-e,h=i-n,f=Math.sqrt(l*l+h*h);if(0==f)var d=1,p=0;else d=l/f,p=h/f;if(r=e+(f-s-10-.1)*d,i=n+(f-s-10-.1)*p,o.URL||o.tooltip)var g=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),v=g.selectWithoutDataPropagation("path"),m=g.selectWithoutDataPropagation("polygon");else v=t.selectWithoutDataPropagation("path"),m=t.selectWithoutDataPropagation("polygon");var y=c.path();y.moveTo(e,n),y.lineTo(r,i),v.attr("d",y),r=e+(f-s-10)*d,i=n+(f-s-10)*p;for(var _=0;_ b ["+n+"]}","svg","dot"),s=(new window.DOMParser).parseFromString(a,"image/svg+xml");return e.select(document.createDocumentFragment()).append(function(){return s.documentElement}).select(".edge")}function F(t,e,n,r,i,o){var a=d(Y.call(this,r,i));return t.data([a]),_.call(t.node(),a),q(t,e,n,i),this}function q(t,n,r,i,o){if(i.URL||i.tooltip)var a=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else a=t;var s=a.selectAll("ellipse,polygon,path,polyline"),u=t.selectWithoutDataPropagation("text");if(0!=s.size()){var c=s.node().getBBox();c.cx=c.x+c.width/2,c.cy=c.y+c.height/2}else 0!=u.size()&&(c={x:+u.attr("x"),y:+u.attr("y"),width:0,height:0,cx:+u.attr("x"),cy:+u.attr("y")});return s.each(function(t,i){var o=e.select(this);if(o.attr("cx"))o.attr("cx",b(n)).attr("cy",b(r));else if(o.attr("points")){var a=o.attr("points").trim();o.attr("points",function(t,e,n){var r,i=(r=t.split(" ")).map(function(t){return t.split(",")});return i=r.map(function(t){return[b(+e+ +t.split(",")[0]),b(+n+ +t.split(",")[1])]}),(r=i.map(function(t){return t.join(",")})).join(" ")}(a,n-c.cx,r-c.cy))}else{var s=o.attr("d");o.attr("d",function(t,e,n){(i=t.split(/[A-Z ]/)).shift();var r=t.split(/[^[A-Z ]+/),i=(i.map(function(t){return t.split(",")}),i.map(function(t){return[b(+e+ +t.split(",")[0]),b(+n+ +t.split(",")[1])]}).map(function(t){return t.join(",")}));return r.reduce(function(t,e,n){return t.concat(e,i[n])},[]).join("")}(s,n-c.cx,r-c.cy))}}),0!=u.size()&&u.attr("x",b(+u.attr("x")+n-c.cx)).attr("y",b(+u.attr("y")+r-c.cy)),this}function z(){if(!this._drawnNode)return this;var t=this._drawnNode.g;return t.empty()||t.remove(),this._drawnNode=null,this}function j(){return this._drawnNode?this._drawnNode.g:e.select(null)}function Y(t,n){for(var r="",i=0,o=Object.keys(n);i2")(a)+" ",i+=s+" ".repeat(o-s.length),i+=u.format(" >5")(t-n)+" ","initEnd"!=s&&(i+=u.format(" >5")(t-r.start[e])),"dataProcessEnd"==s&&(i+=" prepare "+u.format(" >5")(t-r.layoutEnd[e])),"renderEnd"==s&&c._transition&&(i+=" transition start margin "+u.format(" >5")(c._transition.delay()-(t-r.renderStart[e])),l=c._transition.delay(),f=c._transition.duration()),"transitionStart"==s){var h=t-r.renderStart[e];i+=" transition delay "+u.format(" >5")(t-r.renderStart[e]),i+=" expected "+u.format(" >5")(l),i+=" diff "+u.format(" >5")(h-l)}if("transitionEnd"==s){var d=t-r.transitionStart[e];i+=" transition duration "+u.format(" >5")(d),i+=" expected "+u.format(" >5")(f),i+=" diff "+u.format(" >5")(d-f)}console.log(i),n=t}:null)},s=0;s5&&void 0!==arguments[5]?arguments[5]:{};if((o=Object.assign({},o)).style&&o.style.includes("invis"))var s=e.select(null);else{var u=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),c=d(P.call(this,o));s=u.append("g").data([c]),_.call(s.node(),c),O.call(this,s,t,n,r,i,o,a)}return this._drawnEdge={g:s,x1:t,y1:n,x2:r,y2:i,attributes:o},this},updateDrawnEdge:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var a=this._drawnEdge.g;return i=Object.assign(this._drawnEdge.attributes,i),this._drawnEdge.x1=t,this._drawnEdge.y1=e,this._drawnEdge.x2=n,this._drawnEdge.y2=r,!a.empty()||i.style&&i.style.includes("invis")||(a=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=a),a.empty()||O.call(this,a,t,e,n,r,i,o),this},moveDrawnEdgeEndPoint:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var r=this._drawnEdge.g,i=this._drawnEdge.x1,o=this._drawnEdge.y1,a=this._drawnEdge.attributes;return this._drawnEdge.x2=t,this._drawnEdge.y2=e,R(r,i,o,t,e,a,n),this},insertDrawnEdge:function(t){if(!this._drawnEdge)throw Error("No edge has been drawn");var e=this._drawnEdge.g;if(e.empty())return this;e.selectWithoutDataPropagation("title").text(t);var n=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),r=n.datum(),i=this._extractData(e,r.children.length,n.datum());return r.children.push(i),m(e,i),this._drawnEdge=null,this},removeDrawnEdge:L},"removeDrawnEdge",L),l(V,"drawnEdgeSelection",U),l(V,"drawnEdgeSelection",U),l(V,"drawNode",function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((i=Object.assign({},i)).style&&i.style.includes("invis"))var a=e.select(null);else{var s=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),u=d(Y.call(this,r,i));a=s.append("g").data([u]),_.call(a.node(),u),F.call(this,a,t,n,r,i,o)}return this._drawnNode={g:a,nodeId:r,x:t,y:n,attributes:i},this}),l(V,"updateDrawnNode",function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var o=this._drawnNode.g;return null==n&&(n=this._drawnNode.nodeId),r=Object.assign(this._drawnNode.attributes,r),this._drawnNode.nodeId=n,this._drawnNode.x=t,this._drawnNode.y=e,!o.empty()||r.style&&r.style.includes("invis")||(o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=o),o.empty()||F.call(this,o,t,e,n,r,i),this}),l(V,"moveDrawnNode",function(t,e){if(!this._drawnNode)throw Error("No node has been drawn");var n=this._drawnNode.g,r=this._drawnNode.attributes;return this._drawnNode.x=t,this._drawnNode.y=e,n.empty()||q(n,t,e,r),this}),l(V,"insertDrawnNode",function(t){if(!this._drawnNode)throw Error("No node has been drawn");null==t&&(t=this._drawnNode.nodeId);var e=this._drawnNode.g;if(e.empty())return this;var n=this._drawnNode.attributes;if(e.selectWithoutDataPropagation("title").text(t),n.URL||n.tooltip)var r=e.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),i=(r.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),r.selectWithoutDataPropagation("text"));else e.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),i=e.selectWithoutDataPropagation("text");i.text(n.label||t);var o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),a=o.datum(),s=this._extractData(e,a.children.length,o.datum());return a.children.push(s),m(e,s),this._drawnNode=null,this}),l(V,"removeDrawnNode",z),l(V,"removeDrawnNode",z),l(V,"drawnNodeSelection",j),l(V,"drawnNodeSelection",j),V),e.selection.prototype.graphviz=function(t){var e=this.node().__graphviz__;return e?(e.options(t),i.timeout((function(){e._dispatch.call("initEnd",this)}).bind(this),0)):e=new H(this,t),e},e.selection.prototype.selectWithoutDataPropagation=function(t){return e.select(this.size()>0?this.node().querySelector(t):null)},t.graphviz=Q,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(24967),n(58552),n(82159),n(14788),n(30853),n(59320),n(95914),n(25047),n(16809))},60053:function(t,e,n){"use strict";n.d(e,{Z:function(){return o},M:function(){return a}});var r=n(3031),i=n(61317);function o(t,e){return((0,i.v)(e)?i.Z:a)(t,e)}function a(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=new Array(o),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1];return r((n-i/e)*e,i>0?t[i-1]:2*o-a,o,a,i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):(0,r.Z)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?i(t,n):(0,r.Z)(isNaN(t)?e:t)}},94065:function(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{Z:function(){return r}})},28917:function(t,e,n){"use strict";function r(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}n.d(e,{Z:function(){return r}})},30853:function(t,e,n){"use strict";n.r(e),n.d(e,{interpolate:function(){return r.Z},interpolateArray:function(){return i.Z},interpolateBasis:function(){return o.Z},interpolateBasisClosed:function(){return a.Z},interpolateCubehelix:function(){return nt},interpolateCubehelixLong:function(){return rt},interpolateDate:function(){return s.Z},interpolateDiscrete:function(){return u},interpolateHcl:function(){return j},interpolateHclLong:function(){return Y},interpolateHsl:function(){return b},interpolateHslLong:function(){return x},interpolateHue:function(){return l},interpolateLab:function(){return q},interpolateNumber:function(){return h.Z},interpolateNumberArray:function(){return f.Z},interpolateObject:function(){return d.Z},interpolateRgb:function(){return y.ZP},interpolateRgbBasis:function(){return y.hD},interpolateRgbBasisClosed:function(){return y.YD},interpolateRound:function(){return p.Z},interpolateString:function(){return g.Z},interpolateTransformCss:function(){return v.Y},interpolateTransformSvg:function(){return v.w},interpolateZoom:function(){return m.Z},piecewise:function(){return it},quantize:function(){return ot}});var r=n(3031),i=n(60053),o=n(39588),a=n(17280),s=n(28917);function u(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var c=n(22656);function l(t,e){var n=(0,c.wx)(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}var h=n(75306),f=n(61317),d=n(70901),p=n(47071),g=n(51882),v=n(44090),m=n(13764),y=n(38740),_=n(12314);function w(t){return function(e,n){var r=t((e=(0,_.Ym)(e)).h,(n=(0,_.Ym)(n)).h),i=(0,c.ZP)(e.s,n.s),o=(0,c.ZP)(e.l,n.l),a=(0,c.ZP)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}var b=w(c.wx),x=w(c.ZP),E=n(80052),T=Math.PI/180,A=180/Math.PI,S=4/29,k=6/29,I=3*k*k;function C(t){if(t instanceof N)return new N(t.l,t.a,t.b,t.opacity);if(t instanceof P)return F(t);t instanceof _.Ss||(t=(0,_.SU)(t));var e,n,r=R(t.r),i=R(t.g),o=R(t.b),a=Z((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?e=n=a:(e=Z((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Z((.0139322*r+.0971045*i+.7141733*o)/.82521)),new N(116*a-16,500*(e-a),200*(a-n),t.opacity)}function D(t,e,n,r){return 1===arguments.length?C(t):new N(t,e,n,null==r?1:r)}function N(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Z(t){return t>.008856451679035631?Math.pow(t,1/3):t/I+S}function M(t){return t>k?t*t*t:I*(t-S)}function O(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function R(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function L(t){if(t instanceof P)return new P(t.h,t.c,t.l,t.opacity);if(t instanceof N||(t=C(t)),0===t.a&&0===t.b)return new P(NaN,0u&&(s=e.slice(u,s),l[c]?l[c]+=s:l[++c]=s),(n=n[0])===(a=a[0])?l[c]?l[c]+=a:l[++c]=a:(l[++c]=null,h.push({i:c,x:(0,r.Z)(n,a)})),u=o.lastIndex;return u180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:(0,s.Z)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:(0,s.Z)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:(0,s.Z)(t,n)},{i:u-2,x:(0,s.Z)(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++n1e-6)if(Math.abs(h*u-c*l)>1e-6&&o){var d=r-a,p=i-s,g=u*u+c*c,v=d*d+p*p,m=Math.sqrt(g),y=Math.sqrt(f),_=o*Math.tan((n-Math.acos((g+f-v)/(2*m*y)))/2),w=_/y,b=_/m;Math.abs(w-1)>1e-6&&(this._+="L"+(t+w*l)+","+(e+w*h)),this._+="A"+o+","+o+",0,0,"+ +(h*d>l*p)+","+(this._x1=t+b*u)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,o,a,s,u){t=+t,e=+e,u=!!u;var c=(o=+o)*Math.cos(a),l=o*Math.sin(a),h=t+c,f=e+l,d=1^u,p=u?a-s:s-a;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+h+","+f:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+h+","+f),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+d+","+(t-c)+","+(e-l)+"A"+o+","+o+",0,1,"+d+","+(this._x1=h)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+d+","+(this._x1=t+o*Math.cos(s))+","+(this._y1=e+o*Math.sin(s))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.Z=a},32436:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(26669),i=n(71867);function o(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.P&&e.documentElement.namespaceURI===i.P?e.createElement(t):e.createElementNS(n,t)}}function a(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function s(t){var e=(0,r.Z)(t);return(e.local?a:o)(e)}},24967:function(t,e,n){"use strict";n.r(e),n.d(e,{clientPoint:function(){return d.Z},create:function(){return o},creator:function(){return r.Z},customEvent:function(){return E._H},event:function(){return E.B},local:function(){return s},matcher:function(){return c.Z},mouse:function(){return l.Z},namespace:function(){return h.Z},namespaces:function(){return f.Z},select:function(){return i.Z},selectAll:function(){return g},selection:function(){return p.ZP},selector:function(){return v.Z},selectorAll:function(){return m.Z},style:function(){return y.S},touch:function(){return _.Z},touches:function(){return b},window:function(){return x.Z}});var r=n(32436),i=n(41036);function o(t){return(0,i.Z)((0,r.Z)(t).call(document.documentElement))}var a=0;function s(){return new u}function u(){this._="@"+(++a).toString(36)}u.prototype=s.prototype={constructor:u,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var c=n(54382),l=n(38337),h=n(26669),f=n(71867),d=n(54762),p=n(42710);function g(t){return"string"==typeof t?new p.Y1([document.querySelectorAll(t)],[document.documentElement]):new p.Y1([null==t?[]:t],p.Jz)}var v=n(69309),m=n(85502),y=n(97717),_=n(45161),w=n(72732);function b(t,e){null==e&&(e=(0,w.Z)().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.Z.hasOwnProperty(e)?{space:r.Z[e],local:t}:t}},71867:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});var r="http://www.w3.org/1999/xhtml";e.Z={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},54762:function(t,e,n){"use strict";function r(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}n.d(e,{Z:function(){return r}})},41036:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(42710);function i(t){return"string"==typeof t?new r.Y1([[document.querySelector(t)]],[document.documentElement]):new r.Y1([[t]],r.Jz)}},42710:function(t,e,n){"use strict";n.d(e,{Y1:function(){return Q},ZP:function(){return X},Jz:function(){return H}});var r=n(69309),i=n(85502),o=n(54382);function a(t){return new Array(t.length)}function s(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function u(t,e,n,r,i,o){for(var a,u=0,c=e.length,l=o.length;ue?1:t>=e?0:NaN}s.prototype={constructor:s,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var h=n(26669);function f(t){return function(){this.removeAttribute(t)}}function d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function p(t,e){return function(){this.setAttribute(t,e)}}function g(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function v(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function m(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var y=n(97717);function _(t){return function(){delete this[t]}}function w(t,e){return function(){this[t]=e}}function b(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function x(t){return t.trim().split(/^|\s+/)}function E(t){return t.classList||new T(t)}function T(t){this._node=t,this._names=x(t.getAttribute("class")||"")}function A(t,e){for(var n=E(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var P=n(32436);function F(){return null}function q(){var t=this.parentNode;t&&t.removeChild(this)}function z(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function j(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var Y=n(92711),B=n(11130);function J(t,e,n){var r=(0,B.Z)(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function G(t,e){return function(){return J(this,t,e)}}function V(t,e){return function(){return J(this,t,e.apply(this,arguments))}}var H=[null];function Q(t,e){this._groups=t,this._parents=e}function W(){return new Q([[document.documentElement]],H)}Q.prototype=W.prototype={constructor:Q,select:function(t){"function"!=typeof t&&(t=(0,r.Z)(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o=E&&(E=x+1);!(b=_[E])&&++E=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=l);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?_:"function"==typeof e?b:w)(t,e)):this.node()[t]},classed:function(t,e){var n=x(t+"");if(arguments.length<2){for(var r=E(this.node()),i=-1,o=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function u(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r1?this.each((null==e?i:"function"==typeof e?a:o)(t,e,null==n?"":n)):u(this.node(),t)}function u(t,e){return t.style.getPropertyValue(e)||(0,r.Z)(t).getComputedStyle(t,null).getPropertyValue(e)}},69309:function(t,e,n){"use strict";function r(){}function i(t){return null==t?r:function(){return this.querySelector(t)}}n.d(e,{Z:function(){return i}})},85502:function(t,e,n){"use strict";function r(){return[]}function i(t){return null==t?r:function(){return this.querySelectorAll(t)}}n.d(e,{Z:function(){return i}})},72732:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(92711);function i(){for(var t,e=r.B;t=e.sourceEvent;)e=t;return e}},45161:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(72732),i=n(54762);function o(t,e,n){arguments.length<3&&(n=e,e=(0,r.Z)().changedTouches);for(var o,a=0,s=e?e.length:0;a=0&&e._call.call(null,t),e=e._next;--o}function y(){c=(u=h.now())+l,o=a=0;try{m()}finally{o=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,w(o)}(),c=0}}function _(){var t=h.now(),e=t-u;e>1e3&&(l-=e,u=t)}function w(t){o||(a&&(a=clearTimeout(a)),t-c>24?(t<1/0&&(a=setTimeout(y,t-h.now()-l)),s&&(s=clearInterval(s))):(s||(u=h.now(),s=setInterval(_,1e3)),o=1,f(y)))}g.prototype=v.prototype={constructor:g,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},82159:function(t,e,n){"use strict";n.r(e),n.d(e,{active:function(){return it},interrupt:function(){return d},transition:function(){return $}});var r=n(42710),i=n(64641),o=n(65244),a=n(74199),s=(0,i.Z)("start","end","cancel","interrupt"),u=[];function c(t,e,n,r,i,c){var l=t.__transition;if(l){if(n in l)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function s(o){var l,h,f,d;if(1!==n.state)return c();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return(0,a.Z)(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[l]):+l0)throw new Error("too late; already scheduled");return n}function h(t,e){var n=f(t,e);if(n.state>3)throw new Error("too late; already running");return n}function f(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function d(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}var p=n(44090),g=n(26669);function v(t,e){var n,r;return function(){var i=h(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?l:h;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var z=n(69309),j=n(85502),Y=r.ZP.prototype.constructor,B=n(97717);function J(t){return function(){this.style.removeProperty(t)}}function G(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function V(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&G(t,o,n)),r}return o._value=e,o}function H(t){return function(e){this.textContent=t.call(this,e)}}function Q(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&H(r)),e}return r._value=t,r}var W=0;function X(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function $(t){return(0,r.ZP)().transition(t)}function K(){return++W}var tt=r.ZP.prototype;X.prototype=$.prototype={constructor:X,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=(0,z.Z)(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a1&&n.name===e)return new X([[t]],rt,e,+r);return null}},59320:function(t,e,n){"use strict";n.r(e),n.d(e,{zoom:function(){return T},zoomIdentity:function(){return p},zoomTransform:function(){return g}});var r=n(64641),i=n(8634),o=n(13764),a=n(92711),s=n(38337),u=n(41036),c=n(45161),l=n(82159);function h(t){return function(){return t}}function f(t,e,n){this.target=t,this.type=e,this.transform=n}function d(t,e,n){this.k=t,this.x=e,this.y=n}d.prototype={constructor:d,scale:function(t){return 1===t?this:new d(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new d(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var p=new d(1,0,0);function g(t){return t.__zoom||p}function v(){a.B.stopImmediatePropagation()}function m(){a.B.preventDefault(),a.B.stopImmediatePropagation()}function y(){return!a.B.button}function _(){var t,e,n=this;return n instanceof SVGElement?(t=(n=n.ownerSVGElement||n).width.baseVal.value,e=n.height.baseVal.value):(t=n.clientWidth,e=n.clientHeight),[[0,0],[t,e]]}function w(){return this.__zoom||p}function b(){return-a.B.deltaY*(a.B.deltaMode?120:1)/500}function x(){return"ontouchstart"in this}function E(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function T(){var t,e,n=y,g=_,T=E,A=b,S=x,k=[0,1/0],I=[[-1/0,-1/0],[1/0,1/0]],C=250,D=o.Z,N=[],Z=(0,r.Z)("start","zoom","end"),M=0;function O(t){t.property("__zoom",w).on("wheel.zoom",z).on("mousedown.zoom",j).on("dblclick.zoom",Y).filter(S).on("touchstart.zoom",B).on("touchmove.zoom",J).on("touchend.zoom touchcancel.zoom",G).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(t,e){return(e=Math.max(k[0],Math.min(k[1],e)))===t.k?t:new d(e,t.x,t.y)}function L(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new d(t.k,r,i)}function U(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function P(t,e,n){t.on("start.zoom",function(){F(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){F(this,arguments).end()}).tween("zoom",function(){var t=this,r=arguments,i=F(t,r),o=g.apply(t,r),a=n||U(o),s=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=t.__zoom,c="function"==typeof e?e.apply(t,r):e,l=D(u.invert(a).concat(s/u.k),c.invert(a).concat(s/c.k));return function(t){if(1===t)t=c;else{var e=l(t),n=s/e[2];t=new d(n,a[0]-e[0]*n,a[1]-e[1]*n)}i.zoom(null,t)}})}function F(t,e){for(var n,r=0,i=N.length;rM}t.zoom("mouse",T(L(t.that.__zoom,t.mouse[0]=(0,s.Z)(t.that),t.mouse[1]),t.extent,I))}function d(){r.on("mousemove.zoom mouseup.zoom",null),(0,i.D)(a.B.view,t.moved),m(),t.end()}}function Y(){if(n.apply(this,arguments)){var t=this.__zoom,e=(0,s.Z)(this),r=t.invert(e),i=t.k*(a.B.shiftKey?.5:2),o=T(L(R(t,i),e,r),g.apply(this,arguments),I);m(),C>0?(0,u.Z)(this).transition().duration(C).call(P,o,e):(0,u.Z)(this).call(O.transform,o)}}function B(){if(n.apply(this,arguments)){var e,r,i,o,s=F(this,arguments),h=a.B.changedTouches,f=h.length;for(v(),r=0;r0;--u)if(r=e[u].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,function(e){return t.outEdges(e.v,e.w)}),!0)};var a=r.constant(1);function s(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),function(r){var i=t.edge(r),s=t.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,u(e,n,s)}),r.forEach(t.outEdges(i.v),function(r){var i=t.edge(r),o=t.node(r.w);o.in-=i,u(e,n,o)}),t.removeNode(i.v),a}function u(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},73363:function(t,e,n){"use strict";var r=n(91096),i=n(19265),o=n(3266),a=n(29438),s=n(45247).normalizeRanks,u=n(22877),c=n(45247).removeEmptyRanks,l=n(8131),h=n(28549),f=n(64061),d=n(41727),p=n(14588),g=n(45247),v=n(49174).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",function(){var e=n(" buildLayoutGraph",function(){return function(t){var e=new v({multigraph:!0,compound:!0}),n=S(t.graph());return e.setGraph(r.merge({},y,A(n,m),r.pick(n,_))),r.forEach(t.nodes(),function(n){var i=S(t.node(n));e.setNode(n,r.defaults(A(i,w),b)),e.setParent(n,t.parent(n))}),r.forEach(t.edges(),function(n){var i=S(t.edge(n));e.setEdge(n,r.merge({},E,A(i,x),r.pick(i,T)))}),e}(t)});n(" runLayout",function(){!function(t,e){e(" makeSpaceForEdgeLabels",function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(t)}),e(" removeSelfEdges",function(){!function(t){r.forEach(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}(t)}),e(" acyclic",function(){i.run(t)}),e(" nestingGraph.run",function(){l.run(t)}),e(" rank",function(){a(g.asNonCompoundGraph(t))}),e(" injectEdgeLabelProxies",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w);g.addDummyNode(t,"edge-proxy",{rank:(i.rank-r.rank)/2+r.rank,e:e},"_ep")}})}(t)}),e(" removeEmptyRanks",function(){c(t)}),e(" nestingGraph.cleanup",function(){l.cleanup(t)}),e(" normalizeRanks",function(){s(t)}),e(" assignRankMinMax",function(){!function(t){var e=0;r.forEach(t.nodes(),function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))}),t.graph().maxRank=e}(t)}),e(" removeEdgeLabelProxies",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}(t)}),e(" normalize.run",function(){o.run(t)}),e(" parentDummyChains",function(){u(t)}),e(" addBorderSegments",function(){h(t)}),e(" order",function(){d(t)}),e(" insertSelfEdges",function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,function(e){var n=0;r.forEach(e,function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}(t)}),e(" adjustCoordinateSystem",function(){f.adjust(t)}),e(" position",function(){p(t)}),e(" positionSelfEdges",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}})}(t)}),e(" removeBorderNodes",function(){!function(t){r.forEach(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}}),r.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}(t)}),e(" normalize.undo",function(){o.undo(t)}),e(" fixupEdgeLabelCoords",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}(t)}),e(" undoCoordinateSystem",function(){f.undo(t)}),e(" translateGraph",function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),s=a.marginx||0,u=a.marginy||0;function c(t){var r=t.x,a=t.y,s=t.width,u=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}r.forEach(t.nodes(),function(e){c(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.has(n,"x")&&c(n)}),e-=s,i-=u,r.forEach(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=i}),r.forEach(t.edges(),function(n){var o=t.edge(n);r.forEach(o.points,function(t){t.x-=e,t.y-=i}),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)}),a.width=n-e+s,a.height=o-i+u}(t)}),e(" assignNodeIntersects",function(){!function(t){r.forEach(t.edges(),function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))})}(t)}),e(" reversePoints",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}(t)}),e(" acyclic.undo",function(){i.undo(t)})}(e,n)}),n(" updateInputGraph",function(){!function(t,e){r.forEach(t.nodes(),function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))}),r.forEach(t.edges(),function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)})})};var m=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],w=["width","height"],b={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},T=["labelpos"];function A(t,e){return r.mapValues(r.pick(t,e),Number)}function S(t){var e={};return r.forEach(t,function(t,n){e[n.toLowerCase()]=t}),e}},91096:function(t,e,n){var r;try{r={cloneDeep:n(38961),constant:n(60583),defaults:n(25177),each:n(97635),filter:n(9673),find:n(13963),flatten:n(38863),forEach:n(26404),forIn:n(21308),has:n(71645),isUndefined:n(96075),last:n(83074),map:n(86169),mapValues:n(7301),max:n(11653),merge:n(81940),min:n(47983),minBy:n(42707),now:n(41396),pick:n(28891),range:n(79289),reduce:n(37442),sortBy:n(36272),uniqueId:n(83798),values:n(95041),zipObject:n(3393)}}catch(i){}r||(r=window._),t.exports=r},8131:function(t,e,n){var r=n(91096),i=n(45247);function o(t,e,n,a,s,u,c){var l=t.children(c);if(l.length){var h=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),d=t.node(c);t.setParent(h,c),d.borderTop=h,t.setParent(f,c),d.borderBottom=f,r.forEach(l,function(r){o(t,e,n,a,s,u,r);var i=t.node(r),l=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=l!==d?1:s-u[c]+1;t.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(c)||t.setEdge(e,h,{weight:0,minlen:s+u[c]})}else c!==e&&t.setEdge(e,c,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,function(t){n(t,o+1)}),e[i]=o}return r.forEach(t.children(),function(t){n(t,1)}),e}(t),a=r.max(r.values(n))-1,s=2*a+1;t.graph().nestingRoot=e,r.forEach(t.edges(),function(e){t.edge(e).minlen*=s});var u=function(t){return r.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)}(t)+1;r.forEach(t.children(),function(r){o(t,e,s,u,a,n,r)}),t.graph().nodeRankFactor=s},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})}}},3266:function(t,e,n){"use strict";var r=n(91096),i=n(45247);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),function(e){!function(t,e){var n,r,o,a=e.v,s=t.node(a).rank,u=e.w,c=t.node(u).rank,l=e.name,h=t.edge(e),f=h.labelRank;if(c!==s+1){for(t.removeEdge(e),o=0,++s;s0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;c+=t.weight*n})),c}t.exports=function(t,e){for(var n=0,r=1;r=2),s=l.buildLayerMatrix(t);var v=o(t,s);v=t.barycenter)&&(o=0,a=0,(n=t).weight&&(o+=n.barycenter*n.weight,a+=n.weight),(i=e).weight&&(o+=i.barycenter*i.weight,a+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=o/a,n.weight=a,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,function(t){return!t.merged}),function(t){return r.pick(t,["vs","i","barycenter","weight"])})}(r.filter(n,function(t){return!t.indegree}))}},5826:function(t,e,n){var r=n(91096),i=n(25412),o=n(82764),a=n(37850);t.exports=function t(e,n,s,u){var c=e.children(n),l=e.node(n),h=l?l.borderLeft:void 0,f=l?l.borderRight:void 0,d={};h&&(c=r.filter(c,function(t){return t!==h&&t!==f}));var p=i(e,c);r.forEach(p,function(n){if(e.children(n.v).length){var i=t(e,n.v,s,u);d[n.v]=i,r.has(i,"barycenter")&&(a=i,r.isUndefined((o=n).barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a});var g=o(p,s);!function(t,e){r.forEach(t,function(t){t.vs=r.flatten(t.vs.map(function(t){return e[t]?e[t].vs:t}),!0)})}(g,d);var v=a(g,u);if(h&&(v.vs=r.flatten([h,v.vs,f],!0),e.predecessors(h).length)){var m=e.node(e.predecessors(h)[0]),y=e.node(e.predecessors(f)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+m.order+y.order)/(v.weight+2),v.weight+=2}return v}},37850:function(t,e,n){var r=n(91096),i=n(45247);function o(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,a=i.partition(t,function(t){return r.has(t,"barycenter")}),s=a.lhs,u=r.sortBy(a.rhs,function(t){return-t.i}),c=[],l=0,h=0,f=0;s.sort((n=!!e,function(t,e){return t.barycentere.barycenter?1:n?e.i-t.i:t.i-e.i})),f=o(c,u,f),r.forEach(s,function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=o(c,u,f)});var d={vs:r.flatten(c,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}},22877:function(t,e,n){var r=n(91096);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,lim:n++}}),e}(t);r.forEach(t.graph().dummyChains,function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||c>e[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,s=o.lca,u=0,c=a[u],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(c=a[u])!==s&&t.node(c).maxRanks)&&u(n,e,c)})})}return r.reduce(e,function(e,n){var o,a=-1,s=0;return r.forEach(n,function(r,u){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(o=t.node(c[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,e.length)}),n}),n}function u(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function c(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var o={},a={},s={};return r.forEach(e,function(t){r.forEach(t,function(t,e){o[t]=t,a[t]=t,s[t]=e})}),r.forEach(e,function(t){var e=-1;r.forEach(t,function(t){var u=i(t);if(u.length)for(var l=((u=r.sortBy(u,function(t){return s[t]})).length-1)/2,h=Math.floor(l),f=Math.ceil(l);h<=f;++h){var d=u[h];a[t]===t&&eu.lim&&(c=u,l=!0);var h=r.filter(e.edges(),function(e){return l===y(0,t.node(e.v),c)&&l!==y(0,t.node(e.w),c)});return r.minBy(h,function(t){return o(e,t)})}function m(t,e,n,i){t.removeEdge(n.v,n.w),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),function(t){return!e.node(t).parent}),i=s(t,n);i=i.slice(1),r.forEach(i,function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)})}(t,e)}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=h,l.calcCutValue=f,l.leaveEdge=g,l.enterEdge=v,l.exchangeEdges=m},21790:function(t,e,n){"use strict";var r=n(91096);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.min(r.map(t.outEdges(i),function(e){return n(e.w)-t.edge(e).minlen}));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},45247:function(t,e,n){"use strict";var r=n(91096),i=n(49174).Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){return r.max(r.map(t.nodes(),function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n}))}t.exports={addDummyNode:o,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,u=t.width/2,c=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),function(){return[]});return r.forEach(t.nodes(),function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)}),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank}));r.forEach(t.nodes(),function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)})},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank})),n=[];r.forEach(t.nodes(),function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)});var i=0,o=t.graph().nodeRankFactor;r.forEach(n,function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,function(e){t.node(e).rank+=i})})},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(t,"border",i,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},32862:function(t){t.exports="0.8.5"},54204:function(t,e,n){var r=n(97078);t.exports={Graph:r.Graph,json:n(2063),alg:n(29790),version:r.version}},66451:function(t,e,n){var r=n(77241);t.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),function(t){e=[],o(t),e.length&&i.push(e)}),i}},70485:function(t,e,n){var r=n(77241);function i(t,e,n,o,a,s){r.has(o,e)||(o[e]=!0,n||s.push(e),r.each(a(e),function(e){i(t,e,n,o,a,s)}),n&&s.push(e))}t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],s={};return r.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);i(t,e,"post"===n,s,o,a)}),a}},85818:function(t,e,n){var r=n(26731),i=n(77241);t.exports=function(t,e,n){return i.transform(t.nodes(),function(i,o){i[o]=r(t,o,e,n)},{})}},26731:function(t,e,n){var r=n(77241),i=n(9266);t.exports=function(t,e,n,r){return function(t,e,n,r){var o,a,s={},u=new i,c=function(t){var e=t.v!==o?t.v:t.w,r=s[e],i=n(t),c=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c0&&(o=u.removeMin(),(a=s[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return s}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},8821:function(t,e,n){var r=n(77241),i=n(45759);t.exports=function(t){return r.filter(i(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},24980:function(t,e,n){var r=n(77241);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}})}),i.forEach(function(t){var e=r[t];i.forEach(function(n){var o=r[n];i.forEach(function(n){var r=e[n],i=o[n],a=o[t].distance+r.distance;a0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(c)}return a}},45759:function(t,e,n){var r=n(77241);t.exports=function(t){var e=0,n=[],i={},o=[];function a(s){var u=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach(function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(a(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))}),u.lowlink===u.index){var c,l=[];do{c=n.pop(),i[c].onStack=!1,l.push(c)}while(s!==c);o.push(l)}}return t.nodes().forEach(function(t){r.has(i,t)||a(t)}),o}},94394:function(t,e,n){var r=n(77241);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),function a(s){if(r.has(n,s))throw new o;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],i.push(s))}),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=new Error},9266:function(t,e,n){var r=n(77241);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(t){return t.key})},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].prioritya){var s=o;o=a,a=s}return o+"\x01"+a+"\x01"+(r.isUndefined(i)?"\0":i)}function u(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}function c(t,e){return s(t,e.v,e.w,e.name)}t.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._in[e])})},i.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._out[e])})},i.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,function(t){n.length>1?i.setNode(t,e):i.setNode(t)}),this},i.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return r.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},i.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),r.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var i={};function o(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(e.nodes(),function(t){e.setParent(t,o(t))}),e},i.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r}),this},i.prototype.setEdge=function(){var t,e,n,i,a=!1,c=arguments[0];"object"==typeof c&&null!==c&&"v"in c?(t=c.v,e=c.w,n=c.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=c,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var l=s(this._isDirected,t,e,n);if(r.has(this._edgeLabels,l))return a&&(this._edgeLabels[l]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=a?i:this._defaultEdgeLabelFn(t,e,n);var h=u(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},i.prototype.edge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.v===e}):i}},i.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.w===e}):i}},i.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},97078:function(t,e,n){t.exports={Graph:n(10179),version:n(57160)}},2063:function(t,e,n){var r=n(77241),i=n(10179);function o(t){return r.map(t.nodes(),function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o})}function a(t){return r.map(t.edges(),function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i})}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),r.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},77241:function(t,e,n){var r;try{r={clone:n(7063),constant:n(60583),each:n(97635),filter:n(9673),has:n(71645),isArray:n(47712),isEmpty:n(19129),isFunction:n(70458),isUndefined:n(96075),keys:n(48600),map:n(86169),reduce:n(37442),size:n(26809),transform:n(86987),union:n(50875),values:n(95041)}}catch(i){}r||(r=window._),t.exports=r},57160:function(t){t.exports="2.1.8"},22550:function(t,e,n){var r=n(31311)(n(58568),"DataView");t.exports=r},27868:function(t,e,n){var r=n(18944),i=n(18790),o=n(40218),a=n(80072),s=n(3575);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}},5724:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r0&&o(l)?n>1?t(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},48486:function(t,e,n){var r=n(43999)();t.exports=r},79941:function(t,e,n){var r=n(48486),i=n(48600);t.exports=function(t,e){return t&&r(t,e,i)}},91338:function(t,e,n){var r=n(21813),i=n(71241);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&ne}},50018:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},29828:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},37551:function(t,e,n){var r=n(72322),i=n(32564),o=n(39920);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},80561:function(t,e,n){var r=n(3219),i=n(3902);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},31999:function(t,e,n){var r=n(47690),i=n(3902);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},47690:function(t,e,n){var r=n(30964),i=n(49642),o=n(97868),a=n(85234),s=n(32234),u=n(47712),c=n(80354),l=n(51156),h="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,p,g){var v=u(t),m=u(e),y=v?"[object Array]":s(t),_=m?"[object Array]":s(e),w=(y="[object Arguments]"==y?h:y)==h,b=(_="[object Arguments]"==_?h:_)==h,x=y==_;if(x&&c(t)){if(!c(e))return!1;v=!0,w=!1}if(x&&!w)return g||(g=new r),v||l(t)?i(t,e,n,d,p,g):o(t,e,y,n,d,p,g);if(!(1&n)){var E=w&&f.call(t,"__wrapped__"),T=b&&f.call(e,"__wrapped__");if(E||T){var A=E?t.value():t,S=T?e.value():e;return g||(g=new r),p(A,S,n,d,g)}}return!!x&&(g||(g=new r),a(t,e,n,d,p,g))}},75080:function(t,e,n){var r=n(32234),i=n(3902);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},16050:function(t,e,n){var r=n(30964),i=n(31999);t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a=200){var g=e?null:s(t);if(g)return u(g);f=!1,l=a,p=new r}else p=e?[]:d;t:for(;++ce||a&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!l&&t=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},49327:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r-1?s[u?e[c]:c]:void 0}}},15395:function(t,e,n){var r=n(49727),i=n(10139),o=n(56016);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?el))return!1;var f=u.get(t),d=u.get(e);if(f&&d)return f==e&&d==t;var p=-1,g=!0,v=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p-1&&t%1==0&&t-1}},2154:function(t,e,n){var r=n(67477);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},58289:function(t,e,n){var r=n(27868),i=n(58170),o=n(6647);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},19581:function(t,e,n){var r=n(65810);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},61608:function(t,e,n){var r=n(65810);t.exports=function(t){return r(this,t).get(t)}},8901:function(t,e,n){var r=n(65810);t.exports=function(t){return r(this,t).has(t)}},12399:function(t,e,n){var r=n(65810);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},95622:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},96878:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},94667:function(t,e,n){var r=n(74884);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},54263:function(t,e,n){var r=n(31311)(Object,"create");t.exports=r},75427:function(t,e,n){var r=n(11621)(Object.keys,Object);t.exports=r},3601:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},80166:function(t,e,n){t=n.nmd(t);var r=n(52127),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},91059:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},11621:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},90877:function(t,e,n){var r=n(86932),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},31816:function(t,e,n){var r=n(58170);t.exports=function(){this.__data__=new r,this.size=0}},86246:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},95499:function(t){t.exports=function(t){return this.__data__.get(t)}},17114:function(t){t.exports=function(t){return this.__data__.has(t)}},68677:function(t,e,n){var r=n(58170),i=n(6647),o=n(98856);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},39920:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n-1&&t%1==0&&t<=9007199254740991}},49333:function(t,e,n){var r=n(75080),i=n(97633),o=n(80166),a=o&&o.isMap,s=a?i(a):r;t.exports=s},17305:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3902:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},7629:function(t,e,n){var r=n(3219),i=n(45410),o=n(3902),a=Function.prototype.toString,s=Object.prototype.hasOwnProperty,u=a.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==u}},8274:function(t,e,n){var r=n(15104),i=n(97633),o=n(80166),a=o&&o.isSet,s=a?i(a):r;t.exports=s},27764:function(t,e,n){var r=n(3219),i=n(47712),o=n(3902);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},30419:function(t,e,n){var r=n(3219),i=n(3902);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},51156:function(t,e,n){var r=n(94154),i=n(97633),o=n(80166),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},96075:function(t){t.exports=function(t){return void 0===t}},48600:function(t,e,n){var r=n(48421),i=n(97272),o=n(9140);t.exports=function(t){return o(t)?r(t):i(t)}},10752:function(t,e,n){var r=n(48421),i=n(40623),o=n(9140);t.exports=function(t){return o(t)?r(t,!0):i(t)}},83074:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},86169:function(t,e,n){var r=n(20529),i=n(82617),o=n(26091),a=n(47712);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},7301:function(t,e,n){var r=n(61216),i=n(79941),o=n(82617);t.exports=function(t,e){var n={};return e=o(e,3),i(t,function(t,i,o){r(n,i,e(t,i,o))}),n}},11653:function(t,e,n){var r=n(91241),i=n(98109),o=n(19903);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},74884:function(t,e,n){var r=n(98856);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},81940:function(t,e,n){var r=n(75705),i=n(57082)(function(t,e,n){r(t,e,n)});t.exports=i},47983:function(t,e,n){var r=n(91241),i=n(69661),o=n(19903);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},42707:function(t,e,n){var r=n(91241),i=n(82617),o=n(69661);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},15533:function(t){t.exports=function(){}},41396:function(t,e,n){var r=n(58568);t.exports=function(){return r.Date.now()}},28891:function(t,e,n){var r=n(14964),i=n(9771)(function(t,e){return null==t?{}:r(t,e)});t.exports=i},57675:function(t,e,n){var r=n(80087),i=n(47044),o=n(46149),a=n(71241);t.exports=function(t){return o(t)?r(a(t)):i(t)}},79289:function(t,e,n){var r=n(15395)();t.exports=r},37442:function(t,e,n){var r=n(27971),i=n(43079),o=n(82617),a=n(95482),s=n(47712);t.exports=function(t,e,n){var u=s(t)?r:a,c=arguments.length<3;return u(t,o(e,4),n,c,i)}},26809:function(t,e,n){var r=n(97272),i=n(32234),o=n(9140),a=n(27764),s=n(3941);t.exports=function(t){if(null==t)return 0;if(o(t))return a(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},36272:function(t,e,n){var r=n(9555),i=n(22824),o=n(37165),a=n(10139),s=o(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])});t.exports=s},20668:function(t){t.exports=function(){return[]}},1950:function(t){t.exports=function(){return!1}},56016:function(t,e,n){var r=n(68135);t.exports=function(t){return t?1/0===(t=r(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},82748:function(t,e,n){var r=n(56016);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},68135:function(t,e,n){var r=n(94530),i=n(17305),o=n(30419),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},65208:function(t,e,n){var r=n(79399),i=n(10752);t.exports=function(t){return r(t,i(t))}},89196:function(t,e,n){var r=n(17667);t.exports=function(t){return null==t?"":r(t)}},86987:function(t,e,n){var r=n(41492),i=n(56004),o=n(79941),a=n(82617),s=n(45410),u=n(47712),c=n(80354),l=n(70458),h=n(17305),f=n(51156);t.exports=function(t,e,n){var d=u(t),p=d||c(t)||f(t);if(e=a(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:h(t)&&l(g)?i(s(t)):{}}return(p?r:o)(t,function(t,r,i){return e(n,t,r,i)}),n}},50875:function(t,e,n){var r=n(9555),i=n(37165),o=n(66833),a=n(56633),s=i(function(t){return o(r(t,1,a,!0))});t.exports=s},83798:function(t,e,n){var r=n(89196),i=0;t.exports=function(t){var e=++i;return r(t)+e}},95041:function(t,e,n){var r=n(10744),i=n(48600);t.exports=function(t){return null==t?[]:r(t,i(t))}},3393:function(t,e,n){var r=n(25823),i=n(60170);t.exports=function(t,e){return i(t||[],e||[],r)}},41282:function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(69812)),r(n(65098)),r(n(59895)),r(n(13408)),r(n(66082)),r(n(33839)),r(n(51390)),r(n(83807)),r(n(24232)),r(n(22267)),r(n(741)),r(n(21539)),r(n(97002)),r(n(99147)),r(n(70980)),r(n(96684))},69812:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390),a=function(t){function e(e){var n=t.call(this)||this,r=e;return r.trigger&&(n.trigger=r.trigger),r.kick&&(n.kick=r.kick),r.drag&&(n.drag=r.drag),r.on&&(n.on=r.on),n.dragstart=n.dragStart=o.Layout.dragStart,n.dragend=n.dragEnd=o.Layout.dragEnd,n}return i(e,t),e.prototype.trigger=function(t){},e.prototype.kick=function(){},e.prototype.drag=function(){},e.prototype.on=function(t,e){return this},e}(o.Layout);e.LayoutAdaptor=a,e.adaptor=function(t){return new a(t)}},96684:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51390),i=n(66082);e.gridify=function(t,e,n,r){return t.cola.start(0,0,0,10,!1),function(t,e,n,r){t.forEach(function(t){t.routerNode={name:t.name,bounds:t.bounds.inflate(-n)}}),e.forEach(function(e){e.routerNode={bounds:e.bounds.inflate(-r),children:(void 0!==e.groups?e.groups.map(function(e){return t.length+e.id}):[]).concat(void 0!==e.leaves?e.leaves.map(function(t){return t.index}):[])}});var o=t.concat(e).map(function(t,e){return t.routerNode.id=e,t.routerNode});return new i.GridRouter(o,{getChildren:function(t){return t.children},getBounds:function(t){return t.bounds}},n-r)}(t.cola.nodes(),t.cola.groups(),n,r).routeEdges(t.powerGraph.powerEdges,e,function(t){return t.source.routerNode.id},function(t){return t.target.routerNode.id})},e.powerGraphGridLayout=function(t,e,n){var i;t.nodes.forEach(function(t,e){return t.index=e}),(new r.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(t){(i=t).groups.forEach(function(t){return t.padding=n})});var o=t.nodes.length,a=[],s=t.nodes.slice(0);return s.forEach(function(t,e){return t.index=e}),i.groups.forEach(function(t){var e=t.index=t.id+o;s.push(t),void 0!==t.leaves&&t.leaves.forEach(function(t){return a.push({source:e,target:t.index})}),void 0!==t.groups&&t.groups.forEach(function(t){return a.push({source:e,target:t.id+o})})}),i.powerEdges.forEach(function(t){a.push({source:t.source.index,target:t.target.index})}),(new r.Layout).size(e).nodes(s).links(a).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new r.Layout).convergenceThreshold(.001).size(e).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(t){(i=t).groups.forEach(function(t){t.padding=n})}).start(50,0,100,0,!1),powerGraph:i}}},65098:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29738),i=n(62834);e.d3adaptor=function(t){return!t||function(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new r.D3StyleLayoutAdaptor:new i.D3StyleLayoutAdaptor(t)}},29738:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390),a=function(t){function e(){var e=t.call(this)||this;e.event=d3.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var n=e;return e.drag=function(){if(!t)var t=d3.behavior.drag().origin(o.Layout.dragOrigin).on("dragstart.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,d3.event),n.resume()}).on("dragend.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;this.call(t)},e}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event[e.type](e)},e.prototype.kick=function(){var e=this;d3.timer(function(){return t.prototype.tick.call(e)})},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout);e.D3StyleLayoutAdaptor=a,e.d3adaptor=function(){return new a}},62834:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390);e.D3StyleLayoutAdaptor=function(t){function e(e){var n=t.call(this)||this;n.d3Context=e,n.event=e.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var r=n;return n.drag=function(){if(!t)var t=e.drag().subject(o.Layout.dragOrigin).on("start.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,e.event),r.resume()}).on("end.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;arguments[0].call(t)},n}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(e.type,e)},e.prototype.kick=function(){var e=this,n=this.d3Context.timer(function(){return t.prototype.tick.call(e)&&n.stop()})},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout)},59895:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.locks={}}return t.prototype.add=function(t,e){this.locks[t]=e},t.prototype.clear=function(){this.locks={}},t.prototype.isEmpty=function(){for(var t in this.locks)return!1;return!0},t.prototype.apply=function(t){for(var e in this.locks)t(Number(e),this.locks[e])},t}();e.Locks=n,e.Descent=function(){function t(t,e,i){void 0===i&&(i=null),this.D=e,this.G=i,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new r,this.project=null,this.x=t,this.k=t.length;var o=this.n=t[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 n,this.minD=Number.MAX_VALUE;for(var a,s=o;s--;)for(a=o;--a>s;){var u=e[s][a];u>0&&u1e-9)break;var d=this.offsetDir();for(r=0;r1&&p>g||!isFinite(g))for(r=0;r1&&(v=1);var m=g*g,y=2*v*(p-g)/(m*p),_=p*p*p,w=2*-v/(m*_);for(isFinite(y)||console.log(y),r=0;r0?A-(I+1)*x:A-(I-1)*x)&&f<=b&&(this.scaleSnapByMaxH?(this.g[r][u]+=s*E*f,this.H[r][u][u]+=s*E):(this.g[r][u]+=E*f,this.H[r][u][u]+=E))}this.locks.isEmpty()||this.locks.apply(function(n,i){for(r=0;r0;)for(var i=e;i-- >0;)n(r,i)},t.prototype.matrixApply=function(e){t.mApply(this.k,this.n,e)},t.prototype.computeNextPosition=function(t,e){var n=this;this.computeDerivatives(t);var r=this.computeStepSize(this.g);if(this.stepAndProject(t,e,this.g,r),this.project){this.matrixApply(function(r,i){return n.e[r][i]=t[r][i]-e[r][i]});var i=this.computeStepSize(this.e);i=Math.max(.2,Math.min(i,1)),this.stepAndProject(t,e,this.e,i)}},t.prototype.run=function(t){for(var e=Number.MAX_VALUE,n=!1;!n&&t-- >0;){var r=this.rungeKutta();n=Math.abs(e/r-1)>16)/this.range},t.prototype.getNextBetween=function(t,e){return t+this.getNext()*(e-t)},t}();e.PseudoRandom=r},13408:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(97002),a=function(){};e.Point=a;var s=function(t,e,n,r){this.x1=t,this.y1=e,this.x2=n,this.y2=r};function u(t,e,n){return(e.x-t.x)*(n.y-t.y)-(n.x-t.x)*(e.y-t.y)}function c(t,e,n){return u(t,e,n)>0}function l(t,e,n){return u(t,e,n)<0}function h(t,e){var n,r,i,o,a=e.length-1;if(l(t,e[1],e[0])&&!c(t,e[a-1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return c(t,e[n],e[r])?n:r;if((o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]))&&!c(t,e[i-1],e[i]))return i;c(t,e[n+1],e[n])?o||c(t,e[n],e[i])?r=i:n=i:o&&l(t,e[n],e[i])?r=i:n=i}}function f(t,e){var n,r,i,o,a=e.length-1;if(c(t,e[a-1],e[0])&&!l(t,e[1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return l(t,e[n],e[r])?n:r;if(o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]),c(t,e[i-1],e[i])&&!o)return i;l(t,e[n+1],e[n])?o?l(t,e[n],e[i])?r=i:n=i:r=i:o?n=i:c(t,e[n],e[i])?r=i:n=i}}function d(t,e,n,r,i,o){var a,s;s=r(t[a=n(e[0],t)],e);for(var u=!1;!u;){for(u=!0;a===t.length-1&&(a=0),!i(e[s],t[a],t[a+1]);)++a;for(;0===s&&(s=e.length-1),!o(t[a],e[s],e[s-1]);)--s,u=!1}return{t1:a,t2:s}}function p(t,e){return d(t,e,h,f,c,l)}e.LineSegment=s,e.PolyPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a),e.isLeft=u,e.ConvexHull=function(t){var e,n=t.slice(0).sort(function(t,e){return t.x!==e.x?e.x-t.x:e.y-t.y}),r=t.length,i=n[0].x;for(e=1;e=0&&n[e].x===l;e--);for(s=e+1,e=o;++e<=s;)if(!(u(n[0],n[s],n[e])>=0&&e1&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}c!=s&&a.push(n[c]);var h=a.length;for(e=s;--e>=o;)if(!(u(n[c],n[o],n[e])>=0&&e>o)){for(;a.length>h&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}}return a},e.clockwiseRadialSweep=function(t,e,n){e.slice(0).sort(function(e,n){return Math.atan2(e.y-t.y,e.x-t.x)-Math.atan2(n.y-t.y,n.x-t.x)}).forEach(n)},e.tangent_PolyPolyC=d,e.LRtangent_PolyPolyC=function(t,e){var n=p(e,t);return{t1:n.t2,t2:n.t1}},e.RLtangent_PolyPolyC=p,e.LLtangent_PolyPolyC=function(t,e){return d(t,e,f,f,l,l)},e.RRtangent_PolyPolyC=function(t,e){return d(t,e,h,h,c,c)};var g=function(t,e){this.t1=t,this.t2=e};e.BiTangent=g;var v=function(){};e.BiTangents=v,e.TVGPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a);var m=function(t,e,n,r){this.id=t,this.polyid=e,this.polyvertid=n,this.p=r,r.vv=this};e.VisibilityVertex=m;var y=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,e=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+e*e)},t}();function _(t,e){for(var n=[],r=1,i=e.length;r=0&&m>=0&&y<0&&_>=0&&w>=0&&b<0?i.ll=new g(o,a):p<=0&&m<=0&&y>0&&_<=0&&w<=0&&b>0?i.rr=new g(o,a):p<=0&&m>0&&y<=0&&_>=0&&w<0&&b>=0?i.rl=new g(o,a):p>=0&&m<0&&y>=0&&_<=0&&w>0&&b<=0&&(i.lr=new g(o,a))}return i}function b(t,e){return!t.every(function(t){return!function(t,e){for(var n=1,r=e.length;n0&&this.E.push(new y(i[o-1].vv,a))}i.length>1&&this.E.push(new y(i[0].vv,i[i.length-1].vv))}for(r=0;r0)return!0;return!1},t}(),e.tangents=w,e.polysOverlap=function(t,e){if(b(t,e))return!0;if(b(e,t))return!0;for(var n=1,r=t.length;n0)return!0}return!1}},66082:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(97002),i=n(70980),o=n(99147),a=function(t,e,n){this.id=t,this.rect=e,this.children=n,this.leaf=void 0===n||0===n.length};e.NodeWrapper=a;var s=function(t,e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),this.id=t,this.x=e,this.y=n,this.node=r,this.line=i};e.Vert=s;var u=function(){function t(e,n){this.s=e,this.t=n;var r=t.findMatch(e,n),i=n.slice(0).reverse(),o=t.findMatch(e,i);r.length>=o.length?(this.length=r.length,this.si=r.si,this.ti=r.ti,this.reversed=!1):(this.length=o.length,this.si=o.si,this.ti=n.length-o.ti-o.length,this.reversed=!0)}return t.findMatch=function(t,e){for(var n=t.length,r=e.length,i={length:0,si:-1,ti:-1},o=new Array(n),a=0;ai.length&&(i.length=u,i.si=a-u+1,i.ti=s-u+1)}else o[a][s]=0}return i},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();e.LongestCommonSubsequence=u,e.GridRouter=function(){function t(t,e,n){var i=this;void 0===n&&(n=12),this.originalnodes=t,this.groupPadding=n,this.leaves=null,this.nodes=t.map(function(t,n){return new a(n,e.getBounds(t),e.getChildren(t))}),this.leaves=this.nodes.filter(function(t){return t.leaf}),this.groups=this.nodes.filter(function(t){return!t.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(t){return t.children.forEach(function(e){return i.nodes[e].parent=t})}),this.root={children:[]},this.nodes.forEach(function(t){void 0===t.parent&&(t.parent=i.root,i.root.children.push(t.id)),t.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(t,e){return i.getDepth(t)-i.getDepth(e)}),this.backToFront.slice(0).reverse().filter(function(t){return!t.leaf}).forEach(function(t){var e=r.Rectangle.empty();t.children.forEach(function(t){return e=e.union(i.nodes[t].rect)}),t.rect=e.inflate(i.groupPadding)});var o=this.midPoints(this.cols.map(function(t){return t.pos})),u=this.midPoints(this.rows.map(function(t){return t.pos})),c=o[0],l=o[o.length-1],h=u[0],f=u[u.length-1],d=this.rows.map(function(t){return{x1:c,x2:l,y1:t.pos,y2:t.pos}}).concat(u.map(function(t){return{x1:c,x2:l,y1:t,y2:t}})),p=this.cols.map(function(t){return{x1:t.pos,x2:t.pos,y1:h,y2:f}}).concat(o.map(function(t){return{x1:t,x2:t,y1:h,y2:f}})),g=d.concat(p);g.forEach(function(t){return t.verts=[]}),this.verts=[],this.edges=[],d.forEach(function(t){return p.forEach(function(e){var n=new s(i.verts.length,e.x1,t.y1);t.verts.push(n),e.verts.push(n),i.verts.push(n);for(var r=i.backToFront.length;r-- >0;){var o=i.backToFront[r],a=o.rect,u=Math.abs(n.x-a.cx()),c=Math.abs(n.y-a.cy());if(u0;){var r=n.filter(function(e){return e.rect["overlap"+t.toUpperCase()](n[0].rect)}),i={nodes:r,pos:this.avg(r.map(function(e){return e.rect["c"+t]()}))};e.push(i),i.nodes.forEach(function(t){return n.splice(n.indexOf(t),1)})}return e.sort(function(t,e){return t.pos-e.pos}),e},t.prototype.getDepth=function(t){for(var e=0;t.parent!==this.root;)e++,t=t.parent;return e},t.prototype.midPoints=function(t){for(var e=t[1]-t[0],n=[t[0]-e/2],r=1;r.1)&&s.push(u={pos:l[0][e],segments:[]}),u.segments.push(l)}return s},t.nudgeSegs=function(t,e,n,r,o,a){var s=r.length;if(!(s<=1)){for(var u=r.map(function(e){return new i.Variable(e[0][t])}),c=[],l=0;l=0&&c.push(new i.Constraint(u[g],u[v],a))}new i.Solver(u,c).solve(),u.forEach(function(e,i){var o=r[i],a=e.position();o[0][t]=o[1][t]=a;var s=n[o.edgeid];o.i>0&&(s[o.i-1][1][t]=a),o.iMath.PI||i<-Math.PI)&&(i=r-n),i},t.isLeft=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)<=0},t.getOrder=function(t){for(var e={},n=0;n=c.length||h.ti+h.length>=l.length)?n.push({l:r,r:i}):(h.si+h.length>=c.length||h.ti+h.length>=l.length?(o=c[h.si+1],s=c[h.si-1],a=l[h.ti-1]):(o=c[h.si+h.length-2],a=c[h.si+h.length],s=l[h.ti+h.length]),t.isLeft(o,a,s)?n.push({l:i,r:r}):n.push({l:r,r:i})))}return t.getOrder(n)},t.makeSegments=function(t){function e(t){return{x:t.x,y:t.y}}for(var n=function(t,e,n){return Math.abs((e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x))<.001},r=[],i=e(t[0]),o=1;o1&&l>1?1e3:0}).reverse().map(function(t){return n.verts[t]});return u.push(this.nodes[i.id].ports[0]),u.filter(function(t,e){return!(e0&&t.node===i&&u[e-1].node===i)})},t.getRoutePath=function(e,n,r,i){var o,a,s,u,c,l={routepath:"M "+e[0][0].x+" "+e[0][0].y+" ",arrowpath:""};if(e.length>1)for(var h=0;h0?a-=f/Math.abs(f)*n:s-=d/Math.abs(d)*n,l.routepath+="L "+a+" "+s+" ";var p=e[h+1],g=p[0].x,v=p[0].y;f=p[1].x-g,d=p[1].y-v;var m,y,_=t.angleBetween2Lines(o,p)<0?1:0;Math.abs(f)>0?(m=g+f/Math.abs(f)*n,y=v):(m=g,y=v+d/Math.abs(d)*n);var w=Math.abs(m-a),b=Math.abs(y-s);l.routepath+="A "+w+" "+b+" 0 0 "+_+" "+m+" "+y+" "}else{var x=[a,s];Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1])}}else f=(a=(o=e[0])[1].x)-o[0].x,d=(s=o[1].y)-o[0].y,x=[a,s],Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1]);return l},t}()},33839:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(1+Math.sqrt(5))/2;e.applyPacking=function(t,e,r,i,o,a){void 0===o&&(o=1),void 0===a&&(a=!0);var s=e,u=r,c=(o=void 0!==o?o:1,i=void 0!==i?i:0,0),l=0,h=0,f=0,d=[];function p(t,e){d=[],c=0,l=0,f=0;for(var n=0;n=t.height&&d[r].x+d[r].width+t.width+10-e<=1e-4){n=d[r];break}d.push(t),void 0!==n?(t.x=n.x+n.width+10,t.y=n.bottom,t.space_left=t.height,t.bottom=t.y,n.space_left-=t.height+10,n.bottom+=t.height+10):(t.y=f,f+=t.height+10,t.x=0,t.bottom=t.y,t.space_left=t.height),t.y+t.height-l>-1e-4&&(l=t.y+t.height-0),t.x+t.width-c>-1e-4&&(c=t.x+t.width-0)}0!=t.length&&(function(t){t.forEach(function(t){var e,n,r,o,a;e=t,n=Number.MAX_VALUE,r=Number.MAX_VALUE,o=0,a=0,e.array.forEach(function(t){var e=void 0!==t.width?t.width:i,s=void 0!==t.height?t.height:i;e/=2,s/=2,o=Math.max(t.x+e,o),n=Math.min(t.x-e,n),a=Math.max(t.y+s,a),r=Math.min(t.y-s,r)}),e.width=o-n,e.height=a-r})}(t),function(t,e){var r=Number.POSITIVE_INFINITY,i=0;t.sort(function(t,e){return e.height-t.height});for(var o=g=h=t.reduce(function(t,e){return t.widthh||d>1e-4;){if(1!=l){var g=a-(a-o)/n;u=p(t,g)}if(0!=l){var v=o+(a-o)/n;c=p(t,v)}if(f=Math.abs(g-v),d=Math.abs(u-c),uc?(o=g,g=v,u=c,l=1):(a=v,v=g,c=u,l=0),s++>100)break}p(t,i)}(t),a&&function(t){t.forEach(function(t){var e={x:0,y:0};t.array.forEach(function(t){e.x+=t.x,e.y+=t.y}),e.x/=t.array.length,e.y/=t.array.length;var n=t.x-(e.x-t.width/2)+s/2-c/2,r=t.y-(e.y-t.height/2)+u/2-l/2;t.array.forEach(function(t){t.x+=n,t.y+=r})})}(t))},e.separateGraphs=function(t,e){for(var n={},r={},i=[],o=0,a=0;a0){var e=0;this._links.forEach(function(t){e=Math.max(e,t.source,t.target)}),this._nodes=new Array(++e);for(var n=0;n0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,e){t.length=e},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return i.symmetricDiffLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.jaccardLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return i.jaccardLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.start=function(e,n,r,u,c,l){var h=this;void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===c&&(c=!0),void 0===l&&(l=!0);var f,d=this.nodes().length,p=d+2*this._groups.length,g=this._canvasSize[0],v=this._canvasSize[1],m=new Array(p),y=new Array(p),_=null,w=this._avoidOverlaps;this._nodes.forEach(function(t,e){t.index=e,void 0===t.x&&(t.x=g/2,t.y=v/2),m[e]=t.x,y[e]=t.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?f=this._distanceMatrix:(f=new s.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,function(t){return h.getLinkLength(t)}).DistanceMatrix(),_=o.Descent.createSquareMatrix(p,function(){return 2}),this._links.forEach(function(t){"number"==typeof t.source&&(t.source=h._nodes[t.source]),"number"==typeof t.target&&(t.target=h._nodes[t.target])}),this._links.forEach(function(e){var n=t.getSourceIndex(e),r=t.getTargetIndex(e);_[n][r]=_[r][n]=e.weight||1}));var b=o.Descent.createSquareMatrix(p,function(t,e){return f[t][e]});if(this._rootGroup&&void 0!==this._rootGroup.groups){var x=d;this._groups.forEach(function(t){!function(t,e,n,r){_[t][e]=_[e][t]=n,b[t][e]=b[e][t]=.1}(x,x+1,h._groupCompactness),m[x]=0,y[x++]=0,m[x]=0,y[x++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var E=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,E=E.concat(i.generateDirectedEdgeConstraints(d,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new o.Descent([m,y],b),this._descent.locks.clear(),x=0;x0&&(this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E).projectFunctions()),this._descent.run(n),this.separateOverlappingComponents(g,v,l),this.avoidOverlaps(w),w&&(this._nodes.forEach(function(t,e){t.x=m[e],t.y=y[e]}),this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E,!0).projectFunctions(),this._nodes.forEach(function(t,e){m[e]=t.x,y[e]=t.y})),this._descent.G=_,this._descent.run(r),u){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=d,this._descent.scaleSnapByMaxH=d!=p;var A=o.Descent.createSquareMatrix(p,function(t,e){return t>=d||e>=d?_[t][e]:0});this._descent.G=A,this._descent.run(u)}return this.updateNodePositions(),this.separateOverlappingComponents(g,v,l),c?this.resume():this},t.prototype.initialLayout=function(e,n,r){if(this._groups.length>0&&e>0){var i=this._nodes.length,o=this._links.map(function(t){return{source:t.source.index,target:t.target.index}}),a=this._nodes.map(function(t){return{index:t.index}});this._groups.forEach(function(t,e){a.push({index:t.index=i+e})}),this._groups.forEach(function(t,e){void 0!==t.leaves&&t.leaves.forEach(function(e){return o.push({source:t.index,target:e.index})}),void 0!==t.groups&&t.groups.forEach(function(e){return o.push({source:t.index,target:e.index})})}),(new t).size(this.size()).nodes(a).links(o).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(e,0,0,0,!1),this._nodes.forEach(function(t){n[t.index]=a[t.index].x,r[t.index]=a[t.index].y})}else this._descent.run(e)},t.prototype.separateOverlappingComponents=function(t,e,n){var r=this;if(void 0===n&&(n=!0),!this._distanceMatrix&&this._handleDisconnected){var i=this._descent.x[0],o=this._descent.x[1];this._nodes.forEach(function(t,e){t.x=i[e],t.y=o[e]});var a=c.separateGraphs(this._nodes,this._links);c.applyPacking(a,t,e,this._defaultNodeSize,1,n),this._nodes.forEach(function(t,e){r._descent.x[0][e]=t.x,r._descent.x[1][e]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))})}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new u.TangentVisibilityGraph(this._nodes.map(function(e){return e.bounds.inflate(-t).vertices()}))},t.prototype.routeEdge=function(t,e,n){void 0===e&&(e=5);var r=[],i=new u.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),o={x:t.source.x,y:t.source.y},c={x:t.target.x,y:t.target.y},l=i.addPoint(o,t.source.index),h=i.addPoint(c,t.target.index);i.addEdgeIfVisible(o,c,t.source.index,t.target.index),void 0!==n&&n(i);var f=new s.Calculator(i.V.length,i.E,function(t){return t.source.id},function(t){return t.target.id},function(t){return t.length()}).PathFromNodeToNode(l.id,h.id);if(1===f.length||f.length===i.V.length){var d=a.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,e);r=[d.sourceIntersection,d.arrowStart]}else{for(var p=f.length-2,g=i.V[f[p]].p,v=i.V[f[0]].p,m=(r=[t.source.innerBounds.rayIntersection(g.x,g.y)],p);m>=0;--m)r.push(i.V[f[m]].p);r.push(a.makeEdgeTo(v,t.target.innerBounds,e))}return r},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(e){return t.getSourceIndex(e)+"-"+t.getTargetIndex(e)},t.dragStart=function(e){h(e)?t.storeOffset(e,t.dragOrigin(e)):(t.stopNode(e),e.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(e,n){void 0!==e.leaves&&e.leaves.forEach(function(e){e.fixed|=2,t.stopNode(e),e._dragGroupOffsetX=e.x-n.x,e._dragGroupOffsetY=e.y-n.y}),void 0!==e.groups&&e.groups.forEach(function(e){return t.storeOffset(e,n)})},t.dragOrigin=function(t){return h(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(e,n){h(e)?(void 0!==e.leaves&&e.leaves.forEach(function(t){e.bounds.setXCentre(n.x),e.bounds.setYCentre(n.y),t.px=t._dragGroupOffsetX+n.x,t.py=t._dragGroupOffsetY+n.y}),void 0!==e.groups&&e.groups.forEach(function(e){return t.drag(e,n)})):(e.px=n.x,e.py=n.y)},t.dragEnd=function(e){h(e)?(void 0!==e.leaves&&e.leaves.forEach(function(e){t.dragEnd(e),delete e._dragGroupOffsetX,delete e._dragGroupOffsetY}),void 0!==e.groups&&e.groups.forEach(t.dragEnd)):e.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}()},83807:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(99147),i=n(59895),o=n(97002),a=n(24232);e.Link3D=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.actualLength=function(t){var e=this;return Math.sqrt(t.reduce(function(t,n){var r=n[e.target]-n[e.source];return t+r*r},0))},t}(),e.Node3D=function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=e,this.z=n},e.Layout3D=function(){function t(e,n,r){var i=this;void 0===r&&(r=1),this.nodes=e,this.links=n,this.idealLinkLength=r,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var o=0;o=this.R))return this.merge(e.a,e.b,t),!0}},t.prototype.nEdges=function(t,e){var n=t.incoming.intersection(e.incoming),r=t.outgoing.intersection(e.outgoing);return this.R-n.count()-r.count()},t.prototype.getGroupHierarchy=function(t){var e=this,r=[];return i(this.roots[0],{},r),this.allEdges().forEach(function(i){var o=e.modules[i.source],a=e.modules[i.target];t.push(new n(void 0===o.gid?i.source:r[o.gid],void 0===a.gid?i.target:r[a.gid],i.type))}),r},t.prototype.allEdges=function(){var e=[];return t.getEdges(this.roots[0],e),e},t.getEdges=function(e,n){e.forAll(function(e){e.getEdges(n),t.getEdges(e.children,n)})},t}();function i(t,e,n){t.forAll(function(t){if(t.isLeaf())e.leaves||(e.leaves=[]),e.leaves.push(t.id);else{var r=e;if(t.gid=n.length,!t.isIsland()||t.isPredefined()){if(r={id:t.gid},t.isPredefined())for(var o in t.definition)r[o]=t.definition[o];e.groups||(e.groups=[]),e.groups.push(t.gid),n.push(r)}i(t.children,r,n)}})}e.Configuration=r;var o=function(){function t(t,e,n,r,i){void 0===e&&(e=new s),void 0===n&&(n=new s),void 0===r&&(r=new a),this.id=t,this.outgoing=e,this.incoming=n,this.children=r,this.definition=i}return t.prototype.getEdges=function(t){var e=this;this.outgoing.forAll(function(r,i){r.forAll(function(r){t.push(new n(e.id,r.id,i))})})},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return void 0!==this.definition},t}();e.Module=o;var a=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(e){var n=new t;return n.table=function(t,e){var n={};for(var r in t)r in e&&(n[r]=t[r]);return n}(this.table,e.table),n},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var e in this.table)t(this.table[e])},t.prototype.modules=function(){var t=[];return this.forAll(function(e){e.isPredefined()||t.push(e)}),t},t}();e.ModuleSet=a;var s=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var e=!1;return this.forAllModules(function(n){e||n.id!=t||(e=!0)}),e},t.prototype.add=function(t,e){(t in this.sets?this.sets[t]:this.sets[t]=new a).add(e),++this.n},t.prototype.remove=function(t,e){var n=this.sets[t];n.remove(e),0===n.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var e in this.sets)t(this.sets[e],Number(e))},t.prototype.forAllModules=function(t){this.forAll(function(e,n){return e.forAll(t)})},t.prototype.intersection=function(e){var n=new t;return this.forAll(function(t,r){if(r in e.sets){var i=t.intersection(e.sets[r]),o=i.count();o>0&&(n.sets[r]=i,n.n+=o)}}),n},t}();e.LinkSets=s,e.getGroups=function(t,e,n,i){for(var o=new r(t.length,e,n,i);o.greedyMerge(););var a=[],s=o.getGroupHierarchy(a);return a.forEach(function(e){var n=function(n){var r=e[n];"number"==typeof r&&(e[n]=t[r])};n("source"),n("target")}),{groups:s,powerEdges:a}}},741:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var e="",n=!1,r=0;r0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var e=this._root;null!==e;){var n=this._comparator(t,e.data);if(0===n)return e.data;e=e.get_child(n>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){var e=this._comparator;return this._bound(t,function(t,n){return e(n,t)})},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new o(this)},t.prototype.each=function(t){for(var e,n=this.iterator();null!==(e=n.next());)t(e)},t.prototype.reach=function(t){for(var e,n=this.iterator();null!==(e=n.prev());)t(e)},t.prototype._bound=function(t,e){for(var n=this._root,r=this.iterator();null!==n;){var i=this._comparator(t,n.data);if(0===i)return r._cursor=n,r;r._ancestors.push(n),n=n.get_child(i>0)}for(var o=r._ancestors.length-1;o>=0;--o)if(e(t,(n=r._ancestors[o]).data)>0)return r._cursor=n,r._ancestors.length=o,r;return r._ancestors.length=0,r},t}();e.TreeBase=i;var o=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else{var e;if(null===this._cursor.right)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===e);else this._ancestors.push(this._cursor),this._minNode(this._cursor.right)}return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else{var e;if(null===this._cursor.left)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===e);else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left)}return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();e.Iterator=o;var a=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,e){t?this.right=e:this.left=e},t}();e.RBTree=function(t){function e(e){var n=t.call(this)||this;return n._root=null,n._comparator=e,n.size=0,n}return r(e,t),e.prototype.insert=function(t){var n=!1;if(null===this._root)this._root=new a(t),n=!0,this.size++;else{var r=new a(void 0),i=!1,o=!1,s=null,u=r,c=null,l=this._root;for(u.right=this._root;;){if(null===l?(l=new a(t),c.set_child(i,l),n=!0,this.size++):e.is_red(l.left)&&e.is_red(l.right)&&(l.red=!0,l.left.red=!1,l.right.red=!1),e.is_red(l)&&e.is_red(c)){var h=u.right===s;l===c.get_child(o)?u.set_child(h,e.single_rotate(s,!o)):u.set_child(h,e.double_rotate(s,!o))}var f=this._comparator(l.data,t);if(0===f)break;o=i,null!==s&&(u=s),s=c,c=l,l=l.get_child(i=f<0)}this._root=r.right}return this._root.red=!1,n},e.prototype.remove=function(t){if(null===this._root)return!1;var n=new a(void 0),r=n;r.right=this._root;for(var i=null,o=null,s=null,u=!0;null!==r.get_child(u);){var c=u;o=i,i=r,r=r.get_child(u);var l=this._comparator(t,r.data);if(u=l>0,0===l&&(s=r),!e.is_red(r)&&!e.is_red(r.get_child(u)))if(e.is_red(r.get_child(!u))){var h=e.single_rotate(r,u);i.set_child(c,h),i=h}else if(!e.is_red(r.get_child(!u))){var f=i.get_child(!c);if(null!==f)if(e.is_red(f.get_child(!c))||e.is_red(f.get_child(c))){var d=o.right===i;e.is_red(f.get_child(c))?o.set_child(d,e.double_rotate(i,c)):e.is_red(f.get_child(!c))&&o.set_child(d,e.single_rotate(i,c));var p=o.get_child(d);p.red=!0,r.red=!0,p.left.red=!1,p.right.red=!1}else i.red=!1,f.red=!0,r.red=!0}}return null!==s&&(s.data=r.data,i.set_child(i.right===r,r.get_child(null===r.left)),this.size--),this._root=n.right,null!==this._root&&(this._root.red=!1),null!==s},e.is_red=function(t){return null!==t&&t.red},e.single_rotate=function(t,e){var n=t.get_child(!e);return t.set_child(!e,n.get_child(e)),n.set_child(e,t),t.red=!0,n.red=!1,n},e.double_rotate=function(t,n){return t.set_child(!n,e.single_rotate(t.get_child(!n),!n)),e.single_rotate(t,n)},e}(i)},97002:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(70980),a=n(21539);function s(t){return t.bounds=void 0!==t.leaves?t.leaves.reduce(function(t,e){return e.bounds.union(t)},u.empty()):u.empty(),void 0!==t.groups&&(t.bounds=t.groups.reduce(function(t,e){return s(e).union(t)},t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}e.computeGroupBounds=s;var u=function(){function t(t,e,n,r){this.x=t,this.X=e,this.y=n,this.Y=r}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var e=this.cx(),n=t.cx();return e<=n&&t.x0?n[0]:null},t.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}]},t.lineIntersection=function(t,e,n,r,i,o,a,s){var u=n-t,c=a-i,l=r-e,h=s-o,f=h*u-c*l;if(0==f)return null;var d=t-i,p=e-o,g=(c*p-h*d)/f,v=(u*p-l*d)/f;return g>=0&&g<=1&&v>=0&&v<=1?{x:t+g*u,y:e+g*l}:null},t.prototype.inflate=function(e){return new t(this.x-e,this.X+e,this.y-e,this.Y+e)},t}();e.Rectangle=u,e.makeEdgeBetween=function(t,e,n){var r=t.rayIntersection(e.cx(),e.cy())||{x:t.cx(),y:t.cy()},i=e.rayIntersection(t.cx(),t.cy())||{x:e.cx(),y:e.cy()},o=i.x-r.x,a=i.y-r.y,s=Math.sqrt(o*o+a*a),u=s-n;return{sourceIntersection:r,targetIntersection:i,arrowStart:{x:r.x+u*o/s,y:r.y+u*a/s}}},e.makeEdgeTo=function(t,e,n){var r=e.rayIntersection(t.x,t.y);r||(r={x:e.cx(),y:e.cy()});var i=r.x-t.x,o=r.y-t.y,a=Math.sqrt(i*i+o*o);return{x:r.x-n*i/a,y:r.y-n*o/a}};var c=function(t,e,n){this.v=t,this.r=e,this.pos=n,this.prev=f(),this.next=f()},l=function(t,e,n){this.isOpen=t,this.v=e,this.pos=n};function h(t,e){return t.pos>e.pos?1:t.pos0&&(t[n].insert(i),i[r].insert(t))};n("next","prev"),n("prev","next")}};function g(t,e,n,r){void 0===r&&(r=!1);var i=t.padding,o=void 0!==t.groups?t.groups.length:0,a=void 0!==t.leaves?t.leaves.length:0,s=o?t.groups.reduce(function(t,r){return t.concat(g(r,e,n,!0))},[]):[],u=(r?2:0)+a+o,c=new Array(u),l=new Array(u),h=0,f=function(t,e){l[h]=t,c[h++]=e};if(r){var d=t.bounds,p=e.getCentre(d),m=e.getSize(d)/2,y=e.getOpen(d),_=e.getClose(d),w=p-m+i/2,b=p+m-i/2;t.minVar.desiredPosition=w,f(e.makeRect(y,_,w,i),t.minVar),t.maxVar.desiredPosition=b,f(e.makeRect(y,_,b,i),t.maxVar)}a&&t.leaves.forEach(function(t){return f(t.bounds,t.variable)}),o&&t.groups.forEach(function(t){var n=t.bounds;f(e.makeRect(e.getOpen(n),e.getClose(n),e.getCentre(n),e.getSize(n)),t.minVar)});var x=v(l,c,e,n);return o&&(c.forEach(function(t){t.cOut=[],t.cIn=[]}),x.forEach(function(t){t.left.cOut.push(t),t.right.cIn.push(t)}),t.groups.forEach(function(t){var n=(t.padding-e.getSize(t.bounds))/2;t.minVar.cIn.forEach(function(t){return t.gap+=n}),t.minVar.cOut.forEach(function(e){e.left=t.maxVar,e.gap+=n})})),s.concat(x)}function v(t,e,n,r){var i,a=t.length,s=2*a;console.assert(e.length>=a);var u=new Array(s);for(i=0;it[n]&&(t[n]=e)}o=t})}},t.prototype.createAlignment=function(t){var e=this,n=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var r="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach(function(t){r.push(new o.Constraint(n,e.nodes[t.node].variable,t.offset,!0))})},t.prototype.createConstraints=function(t){var e=this,n=function(t){return void 0===t.type||"separation"===t.type};this.xConstraints=t.filter(function(t){return"x"===t.axis&&n(t)}).map(function(t){return e.createSeparation(t)}),this.yConstraints=t.filter(function(t){return"y"===t.axis&&n(t)}).map(function(t){return e.createSeparation(t)}),t.filter(function(t){return"alignment"===t.type}).forEach(function(t){return e.createAlignment(t)})},t.prototype.setupVariablesAndBounds=function(t,e,n,r){this.nodes.forEach(function(i,o){i.fixed?(i.variable.weight=i.fixedWeight?i.fixedWeight:1e3,n[o]=r(i)):i.variable.weight=1;var a=(i.width||0)/2,s=(i.height||0)/2,c=t[o],l=e[o];i.bounds=new u(c-a,c+a,l-s,l+s)})},t.prototype.xProject=function(t,e,n){(this.rootGroup||this.avoidOverlaps||this.xConstraints)&&this.project(t,e,t,n,function(t){return t.px},this.xConstraints,_,function(t){return t.bounds.setXCentre(n[t.variable.index]=t.variable.position())},function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.x=e-i,t.bounds.X=r+i})},t.prototype.yProject=function(t,e,n){(this.rootGroup||this.yConstraints)&&this.project(t,e,e,n,function(t){return t.py},this.yConstraints,w,function(t){return t.bounds.setYCentre(n[t.variable.index]=t.variable.position())},function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.y=e-i,t.bounds.Y=r+i})},t.prototype.projectFunctions=function(){var t=this;return[function(e,n,r){return t.xProject(e,n,r)},function(e,n,r){return t.yProject(e,n,r)}]},t.prototype.project=function(t,e,n,r,i,o,a,u,c){this.setupVariablesAndBounds(t,e,r,i),this.rootGroup&&this.avoidOverlaps&&(s(this.rootGroup),o=o.concat(a(this.rootGroup))),this.solve(this.variables,o,n,r),this.nodes.forEach(u),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(c),s(this.rootGroup))},t.prototype.solve=function(t,e,n,r){var i=new o.Solver(t,e);i.setStartingPositions(n),i.setDesiredPositions(r),i.solve()},t}()},99147:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(741),i=function(t,e){this.id=t,this.distance=e},o=function(t){this.id=t,this.neighbours=[]},a=function(t,e,n){this.node=t,this.prev=e,this.d=n};e.Calculator=function(){function t(t,e,n,r,a){this.n=t,this.es=e,this.neighbours=new Array(this.n);for(var s=this.n;s--;)this.neighbours[s]=new o(s);for(s=this.es.length;s--;){var u=this.es[s],c=n(u),l=r(u),h=a(u);this.neighbours[c].neighbours.push(new i(l,h)),this.neighbours[l].neighbours.push(new i(c,h))}}return t.prototype.DistanceMatrix=function(){for(var t=new Array(this.n),e=0;eh&&(c.d=h,c.prev=s,n.reduceKey(c.q,c,function(t,e){return t.q=e}))}}return o},t}()},70980:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,n=t.weight;this.AB+=n*e*(t.offset/t.scale),this.AD+=n*e*t.desiredPosition,this.A2+=n*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();e.PositionStats=n;var r=function(){function t(t,e,n,r){void 0===r&&(r=!1),this.left=t,this.right=e,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=n,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();e.Constraint=r;var i=function(){function t(t,e,n){void 0===e&&(e=1),void 0===n&&(n=1),this.desiredPosition=t,this.weight=e,this.scale=n,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var n=function(n,r){return n.active&&t!==r&&e(n,r)};this.cOut.forEach(function(t){return n(t,t.right)}),this.cIn.forEach(function(t){return n(t,t.left)})},t}();e.Variable=i;var o=function(){function t(t){this.vars=[],t.offset=0,this.ps=new n(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();e.Solver=s,e.removeOverlapInOneDimension=function(t,e,n){for(var o=t.map(function(t){return new i(t.desiredCenter)}),a=[],u=t.length,c=0;c{class t{constructor(t,e,i,s,a,n,l){this.dialog=t,this.facilityManager=e,this.route=i,this.sideMenuService=s,this.sideMenuItemService=a,this.guiAuthResolver=n,this.router=l,this.editFacilityAuth=!1,this.deleteAuth=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.facilityManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t;const e=this.sideMenuItemService.parseFacility(t);this.sideMenuService.setFacilityMenuItems([e]),this.editFacilityAuth=this.guiAuthResolver.isAuthorized("updateFacility_Facility_policy",[this.facility]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteFacility_Facility_Boolean_policy",[this.facility]),(0,r.sF)("facilities",this.facility),(0,r.XI)(this.facility),this.loading=!1},()=>this.loading=!1)})}editFacility(){const t=(0,r.kZ)();t.width="450px",t.data={theme:"facility-theme",facility:this.facility,dialogType:d.Eg.FACILITY},this.dialog.open(d.rd,t).afterClosed().subscribe(t=>{t&&this.facilityManager.getFacilityById(this.facility.id).subscribe(t=>{this.facility=t})})}deleteFacility(){const t=(0,r.kZ)();t.width="500px",t.data={theme:"facility-theme",facility:this.facility},this.dialog.open(h.Y,t).afterClosed().subscribe(t=>{t&&this.router.navigate([""])})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.IQ),p.Y36(a.gz),p.Y36(f.D),p.Y36(o.V),p.Y36(u.x4),p.Y36(a.F0))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-detail-page"]],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(t,e){1&t&&(p.TgZ(0,"div",0),p._UZ(1,"perun-web-apps-back-button"),p.YNc(2,C,1,0,"mat-spinner",1),p.YNc(3,v,17,19,"div",2),p.qZA()),2&t&&(p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading&&void 0!==e.facility))},directives:[m.W,s.O5,S.$g,A.Hw,T.gM,s.PC,a.yS,I.A,b.lW],pipes:[E.X$],styles:[""],data:{animation:[l.Ji]}}),t})();var O=i(8557);function D(t,e){1&t&&p._UZ(0,"mat-spinner",2)}function R(t,e){if(1&t&&(p.TgZ(0,"div"),p._UZ(1,"perun-web-apps-menu-buttons-field",3),p.qZA()),2&t){const t=p.oxw();p.xp6(1),p.Q6J("items",t.navItems)("size","small")}}let N=(()=>{class t{constructor(t,e,i){this.facilityManager=t,this.route=e,this.authResolver=i,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.facilityManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t,this.initItems(),this.loading=!1},()=>this.loading=!1)})}initItems(){this.navItems=[],this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[this.facility])&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/facilities/${this.facility.id}/resources`,label:"MENU_ITEMS.FACILITY.RESOURCES",style:"facility-btn"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[this.facility])&&this.navItems.push({cssIcon:"perun-user",url:`/facilities/${this.facility.id}/allowed-users`,label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",style:"facility-btn"}),this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[this.facility])&&this.navItems.push({cssIcon:"perun-group",url:`/facilities/${this.facility.id}/allowed-groups`,label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",style:"facility-btn"}),this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[this.facility])&&this.navItems.push({cssIcon:"perun-service-status",url:`/facilities/${this.facility.id}/services-status`,label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",style:"facility-btn"}),this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[this.facility])&&this.navItems.push({cssIcon:"perun-service_destination",url:`/facilities/${this.facility.id}/services-destinations`,label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",style:"facility-btn"}),this.authResolver.isFacilityAdmin()&&this.navItems.push({cssIcon:"perun-hosts",url:`/facilities/${this.facility.id}/hosts`,label:"MENU_ITEMS.FACILITY.HOSTS",style:"facility-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`/facilities/${this.facility.id}/attributes`,label:"MENU_ITEMS.FACILITY.ATTRIBUTES",style:"facility-btn"}),(this.authResolver.isAuthorized("getBansForFacility_int_policy",[this.facility])||this.authResolver.isManagerPagePrivileged(this.facility)||this.authResolver.isAuthorized("getOwners_Facility_policy",[this.facility])||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[this.facility]))&&this.navItems.push({cssIcon:"perun-settings2",url:`/facilities/${this.facility.id}/settings`,label:"MENU_ITEMS.FACILITY.SETTINGS",style:"facility-btn"})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(a.gz),p.Y36(u.x4))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.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(t,e){1&t&&(p.YNc(0,D,1,0,"mat-spinner",0),p.YNc(1,R,2,2,"div",1)),2&t&&(p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[s.O5,S.$g,O.L],styles:[""]}),t})();var w=i(64467),k=i(39124),Y=i(72920),M=i(76527);let F=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&p._UZ(0,"app-animated-router-outlet")},directives:[I.A],styles:[""],data:{animation:[l.Ji]}}),t})();function q(t,e){1&t&&p._UZ(0,"mat-spinner",2)}function U(t,e){if(1&t&&(p.TgZ(0,"div"),p._UZ(1,"perun-web-apps-menu-buttons-field",3),p.qZA()),2&t){const t=p.oxw();p.xp6(1),p.Q6J("items",t.items)("size","small")}}let J=(()=>{class t{constructor(t,e,i){this.route=t,this.facilityManager=e,this.authResolver=i,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.facilityManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t,this.initItems(),this.loading=!1},()=>this.loading=!1)})}initItems(){this.items=[],this.authResolver.isAuthorized("getOwners_Facility_policy",[this.facility])&&this.items.push({cssIcon:"perun-owner-grey",url:`/facilities/${this.facility.id}/settings/owners`,label:"MENU_ITEMS.FACILITY.OWNERS",style:"facility-btn"}),this.authResolver.isManagerPagePrivileged(this.facility)&&this.items.push({cssIcon:"perun-manager",url:`/facilities/${this.facility.id}/settings/managers`,label:"MENU_ITEMS.FACILITY.MANAGERS",style:"facility-btn"}),this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[this.facility])&&this.items.push({cssIcon:"perun-security-teams",url:`/facilities/${this.facility.id}/settings/security-teams`,label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",style:"facility-btn"}),this.authResolver.isAuthorized("getBansForFacility_int_policy",[this.facility])&&this.items.push({cssIcon:"perun-black-list",url:`/facilities/${this.facility.id}/settings/blacklist`,label:"MENU_ITEMS.FACILITY.BLACKLIST",style:"facility-btn"})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.gz),p.Y36(c.IQ),p.Y36(u.x4))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.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(t,e){1&t&&(p.YNc(0,q,1,0,"mat-spinner",0),p.YNc(1,U,2,2,"div",1)),2&t&&(p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[s.O5,S.$g,O.L],styles:[""]}),t})();var Q=i(55109),z=i(541),H=i(69012);function V(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.hij(" ",p.lcZ(1,1,"FACILITY_DETAIL.ENTITY")," ")}function B(t,e){if(1&t&&p._UZ(0,"app-one-entity-attribute-page",4),2&t){const t=p.oxw();p.Q6J("entity","facility")("entityId",t.facilityId)}}function P(t,e){1&t&&(p._uU(0),p.ALo(1,"translate"),p.ALo(2,"translate")),2&t&&p.AsE(" ",p.lcZ(1,2,"FACILITY_DETAIL.ENTITY")," - ",p.lcZ(2,4,"ADMIN_USER.ENTITY")," ")}function G(t,e){if(1&t&&p._UZ(0,"app-two-entity-attribute-page",5),2&t){const t=p.oxw(2);p.Q6J("firstEntity","facility")("firstEntityId",t.facilityId)("secondEntity","user")}}function $(t,e){1&t&&(p.TgZ(0,"mat-tab"),p.YNc(1,P,3,6,"ng-template",1),p.YNc(2,G,1,3,"ng-template",2),p.qZA())}let j=(()=>{class t{constructor(t,e){this.route=t,this.authResolver=e}ngOnInit(){this.route.parent.params.subscribe(t=>{this.facilityId=t.facilityId,this.facilityUserAttAuth=this.authResolver.isAuthorized("getAssignedUsers_Facility_policy",[{id:this.facilityId,beanName:"Facility"}])})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.gz),p.Y36(u.x4))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:9,vars:4,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-tab-group"),p.TgZ(5,"mat-tab"),p.YNc(6,V,2,3,"ng-template",1),p.YNc(7,B,1,2,"ng-template",2),p.qZA(),p.YNc(8,$,3,0,"mat-tab",3),p.qZA(),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,2,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),p.xp6(6),p.Q6J("ngIf",e.facilityUserAttAuth))},directives:[Q.SP,Q.uX,Q.uD,Q.Vc,s.O5,z.t,H.Y],pipes:[E.X$],styles:[""]}),t})();var K=i(77968),W=i(22927),X=i(79472),tt=i(42473),et=i(16073),it=i(56238),st=i(79996),at=i(22280),nt=i(29236),lt=i(66283),ot=i(80340),ct=i(40084),rt=i(71522),ut=i(22196);function dt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-option",10),p.NdJ("onSelectionChange",function(){const e=p.CHM(t).$implicit;return p.oxw(3).onSelectedService(e)}),p._uU(1),p.qZA()}if(2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t.name," ")}}function ht(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-form-field",6),p.TgZ(1,"input",7),p.NdJ("keyup",function(e){return p.CHM(t),p.oxw(2).updatedSerVal(e)}),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"mat-autocomplete",8,9),p.TgZ(5,"mat-option",10),p.NdJ("onSelectionChange",function(){return p.CHM(t),p.oxw(2).onSelectedService("NOT_SELECTED")}),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"mat-option",10),p.NdJ("onSelectionChange",function(){return p.CHM(t),p.oxw(2).onSelectedService("ALL")}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.YNc(11,dt,2,2,"mat-option",11),p.ALo(12,"async"),p.qZA(),p.qZA()}if(2&t){const t=p.MAs(4),e=p.oxw(2);p.xp6(1),p.s9C("placeholder",p.lcZ(2,9,"FACILITY_DETAIL.SERVICE_CONFIG.SERVICE_SELECT")),p.Q6J("formControl",e.serviceField)("matAutocomplete",t),p.xp6(2),p.Q6J("displayWith",e.serviceDisplayFn.bind(e)),p.xp6(2),p.Q6J("value","NOT_SELECTED"),p.xp6(1),p.hij(" ",p.lcZ(7,11,"FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED")," "),p.xp6(2),p.Q6J("value","ALL"),p.xp6(1),p.hij(" ",p.lcZ(10,13,"FACILITY_DETAIL.SERVICE_CONFIG.ALL")," "),p.xp6(2),p.Q6J("ngForOf",p.lcZ(12,15,e.filteredServices))}}function pt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-option",10),p.NdJ("onSelectionChange",function(){const e=p.CHM(t).$implicit;return p.oxw(3).onSelectedResource(e)}),p._uU(1),p.qZA()}if(2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t.name," ")}}function gt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-form-field",6),p.TgZ(1,"input",12),p.NdJ("keyup",function(e){return p.CHM(t),p.oxw(2).updatedResVal(e)}),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"mat-autocomplete",8,9),p.YNc(5,pt,2,2,"mat-option",11),p.ALo(6,"async"),p.qZA(),p.qZA()}if(2&t){const t=p.MAs(4),e=p.oxw(2);p.xp6(1),p.s9C("placeholder",p.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.RES_SELECT")),p.Q6J("matAutocomplete",t)("formControl",e.resourceField),p.xp6(2),p.Q6J("displayWith",e.resourceDisplayFn.bind(e)),p.xp6(2),p.Q6J("ngForOf",p.lcZ(6,7,e.filteredResources))}}function ft(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-option",10),p.NdJ("onSelectionChange",function(){const e=p.CHM(t).$implicit;return p.oxw(3).onSelectedGroup(e)}),p._uU(1),p.qZA()}if(2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t.name," ")}}function mt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-form-field",6),p.TgZ(1,"input",12),p.NdJ("keyup",function(e){return p.CHM(t),p.oxw(2).updatedGroupVal(e)}),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"mat-autocomplete",13,9),p.YNc(5,ft,2,2,"mat-option",11),p.ALo(6,"async"),p.qZA(),p.qZA()}if(2&t){const t=p.MAs(4),e=p.oxw(2);p.xp6(1),p.s9C("placeholder",p.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.GROUP_SELECT")),p.Q6J("matAutocomplete",t)("formControl",e.groupField),p.xp6(2),p.Q6J("displayWith",e.groupDisplayFn.bind(e)),p.xp6(2),p.Q6J("ngForOf",p.lcZ(6,7,e.filteredGroups))}}function St(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-option",10),p.NdJ("onSelectionChange",function(){const e=p.CHM(t).$implicit;return p.oxw(3).onSelectedMember(e)}),p._uU(1),p.ALo(2,"userFullName"),p.qZA()}if(2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",p.lcZ(2,2,t.user)," ")}}function At(t,e){if(1&t&&(p.TgZ(0,"mat-form-field",6),p._UZ(1,"input",14),p.ALo(2,"translate"),p.TgZ(3,"mat-autocomplete",8,9),p.YNc(5,St,3,4,"mat-option",11),p.ALo(6,"async"),p.qZA(),p.qZA()),2&t){const t=p.MAs(4),e=p.oxw(2);p.xp6(1),p.s9C("placeholder",p.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.MEMBER_SELECT")),p.Q6J("formControl",e.memberField)("matAutocomplete",t),p.xp6(2),p.Q6J("displayWith",e.memberDisplayFn.bind(e)),p.xp6(2),p.Q6J("ngForOf",p.lcZ(6,7,e.filteredMembers))}}function Tt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",3),p.YNc(1,ht,13,17,"mat-form-field",4),p.TgZ(2,"mat-checkbox",5),p.NdJ("change",function(e){return p.CHM(t),p.oxw().onOfferAllServices(e)}),p._uU(3),p.ALo(4,"translate"),p.qZA(),p.YNc(5,gt,7,9,"mat-form-field",4),p.YNc(6,mt,7,9,"mat-form-field",4),p.YNc(7,At,7,9,"mat-form-field",4),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("ngIf",void 0!==t.services),p.xp6(2),p.hij(" ",p.lcZ(4,5,"FACILITY_DETAIL.SERVICE_CONFIG.ALL_SERVICES")," "),p.xp6(2),p.Q6J("ngIf",void 0!==t.resources&&0!==t.resources.length),p.xp6(1),p.Q6J("ngIf",void 0!==t.selectedResource&&void 0!==t.groups&&0!==t.groups.length),p.xp6(1),p.Q6J("ngIf",void 0!==t.selectedGroup&&void 0!==t.members&&0!==t.members.length)}}function It(t,e){if(1&t&&p._UZ(0,"perun-web-apps-service-configurator",15),2&t){const t=p.oxw();p.Q6J("facility",t.facility)("resource",t.selectedResource)("group",t.selectedGroup)("service",t.selectedService)("member",t.selectedMember)}}let bt=(()=>{class t{constructor(t,e,i,s,a,n,l){this.route=t,this.facilityManager=e,this.resourceManager=i,this.serviceManager=s,this.membersManager=a,this.namePipe=n,this.translate=l,this.selectedService="NOT_SELECTED",this.attrNames=[],this.serviceField=new et.NI,this.resourceField=new et.NI,this.groupField=new et.NI,this.memberField=new et.NI,this.allowedStatuses=["INVALID","VALID"],this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.ALL").subscribe(t=>this.serviceAllTranslation=t),this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED").subscribe(t=>this.serviceNotSelectedTranslation=t)}ngOnInit(){this.route.parent.params.subscribe(t=>{this.facilityManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t,this.facilityManager.getAssignedResourcesForFacility(t.id).subscribe(t=>this.resources=t),this.serviceManager.getAssignedServices(t.id).subscribe(t=>this.services=t)})}),this.filteredServices=this.serviceField.valueChanges.pipe((0,it.O)(""),(0,st.U)(t=>this._filterServices(t))),this.filteredResources=this.resourceField.valueChanges.pipe((0,it.O)(""),(0,st.U)(t=>this._filterResources(t))),this.filteredGroups=this.groupField.valueChanges.pipe((0,it.O)(""),(0,st.U)(t=>this._filterGroups(t))),this.filteredMembers=this.memberField.valueChanges.pipe((0,it.O)(""),(0,st.U)(t=>this._filterMembers(t)))}onSelectedService(t){this.selectedService=t}onSelectedResource(t){this.selectedResource=t,void 0!==this.selectedResource?(this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(t=>this.groups=t),this.selectedGroup=void 0,this.selectedMember=void 0):this.groups=void 0}onOfferAllServices(t){t.checked||this.serviceManager.getAssignedServices(this.facility.id).subscribe(t=>this.services=t)}onSelectedGroup(t){this.selectedGroup=t,void 0!==this.selectedGroup?(this.membersManager.getCompleteRichMembersForGroup(this.selectedGroup.id,!1,this.allowedStatuses,this.attrNames).subscribe(t=>this.members=t),this.selectedMember=void 0):this.members=void 0}onSelectedMember(t){this.selectedMember=t}_filterServices(t){const e=t.toString().toLowerCase();return this.services.filter(t=>t.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e))}_filterResources(t){const e=t.toString().toLowerCase();return this.resources.filter(t=>t.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e))}_filterGroups(t){const e=t.toString().toLowerCase();return this.groups.filter(t=>t.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e))}_filterMembers(t){const e=t.toString().toLowerCase();return this.members.filter(t=>this.namePipe.transform(t.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e))}serviceDisplayFn(t){if(null!==t)return"ALL"===t?this.serviceAllTranslation:"NOT_SELECTED"===t?this.serviceNotSelectedTranslation:t.name}resourceDisplayFn(t){if(null!==t)return t.name}groupDisplayFn(t){if(null!==t)return t.name}memberDisplayFn(t){if(null!==t)return this.namePipe.transform(t.user)}updatedSerVal(t){""===t.target.value&&(this.selectedService="NOT_SELECTED")}updatedResVal(t){""===t.target.value&&(this.groups=void 0,this.members=void 0)}updatedGroupVal(t){""===t.target.value&&(this.members=void 0)}updatedMemVal(t){}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.gz),p.Y36(c.IQ),p.Y36(c.xk),p.Y36(c.KK),p.Y36(c.uq),p.Y36(at.dp),p.Y36(E.sK))},t.\u0275cmp=p.Xpm({type:t,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","service","member",4,"ngIf"],[1,"col-12","col-lg-6","mb-2"],["class","w-100",4,"ngIf"],[3,"change"],[1,"w-100"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete","keyup"],["autoActiveFirstOption","",3,"displayWith"],["auto","matAutocomplete"],[3,"value","onSelectionChange"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],["type","text","matInput","",3,"placeholder","matAutocomplete","formControl","keyup"],["autoActiveFirstOption","",3,"ngClass","displayWith"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete"],[3,"facility","resource","group","service","member"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,Tt,8,7,"div",1),p.YNc(5,It,1,5,"perun-web-apps-service-configurator",2),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,3,"FACILITY_DETAIL.SERVICE_CONFIG.TITLE")),p.xp6(2),p.Q6J("ngIf",!!e.facility),p.xp6(1),p.Q6J("ngIf",!!e.facility))},directives:[s.O5,nt.oG,lt.KE,ot.Nt,et.Fj,ct.ZL,et.JJ,et.oH,ct.XC,rt.ey,s.sg,s.mk],pipes:[E.X$,s.Ov,ut.d],styles:[""]}),t})();var Et=i(489);function Ct(t,e){if(1&t&&p._UZ(0,"app-managers-page",1),2&t){const t=p.oxw();p.Q6J("complementaryObject",t.facility)("complementaryObjectType",t.type)("theme",t.theme)("availableRoles",t.availableRoles)}}let Zt=(()=>{class t{constructor(t,e,i){this.facilityService=t,this.route=e,this.guiAuthResolver=i,this.availableRoles=[],this.selected="user",this.type="Facility",this.theme="facility-theme"}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.facilityService.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility")}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(a.gz),p.Y36(u.x4))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-perun-web-apps-facility-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&p.YNc(0,Ct,1,4,"app-managers-page",0),2&t&&p.Q6J("ngIf",e.facility)},directives:[s.O5,Et.s],styles:[""]}),t})();var yt=i(60611),_t=i(4230),Lt=i(60547),vt=i(4786);function xt(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function Ot(t,e){1&t&&(p.TgZ(0,"mat-option",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.SELECTION_ALL")))}function Dt(t,e){1&t&&(p.TgZ(0,"mat-option",20),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.NO_SERVICE")))}function Rt(t,e){if(1&t&&(p.TgZ(0,"mat-option",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t.name," ")}}function Nt(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.CHOOSE_SERVICE")," "))}function wt(t,e){if(1&t&&(p.TgZ(0,"mat-option",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit,i=p.oxw(2);p.Q6J("value",t),p.xp6(1),p.hij(" ",i.getTypeForView(t)," ")}}function kt(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.REQUIRED_FIELD")," "))}function Yt(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.INVALID_DESTINATION")," "))}function Mt(t,e){if(1&t&&(p.TgZ(0,"mat-form-field",22),p._UZ(1,"input",23),p.YNc(2,kt,3,3,"mat-error",13),p.YNc(3,Yt,3,3,"mat-error",13),p.qZA()),2&t){const t=p.oxw(2);p.xp6(1),p.s9C("placeholder",t.getTypeForView(t.selectedType)),p.Q6J("formControl",t.destinationControl),p.xp6(1),p.Q6J("ngIf","host"===t.selectedType&&!t.useFacilityHost&&t.destinationControl.hasError("required")),p.xp6(1),p.Q6J("ngIf",t.destinationControl.hasError("invalidDestination"))}}function Ft(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-checkbox",24),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw(2).useFacilityHost=e}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("ngModel",t.useFacilityHost),p.xp6(1),p.hij(" ",p.lcZ(2,2,"DIALOGS.ADD_SERVICE_DESTINATION.USE_FACILITY_HOST")," ")}}function qt(t,e){if(1&t&&(p.TgZ(0,"mat-option",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t," ")}}function Ut(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",7),p.TgZ(1,"div",8),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-form-field"),p.TgZ(5,"mat-select",9),p.ALo(6,"translate"),p.YNc(7,Ot,3,3,"mat-option",10),p.YNc(8,Dt,3,3,"mat-option",11),p.YNc(9,Rt,2,2,"mat-option",12),p.qZA(),p.YNc(10,Nt,3,3,"mat-error",13),p.qZA(),p.TgZ(11,"mat-checkbox",14),p.NdJ("change",function(){return p.CHM(t),p.oxw().getServices()})("ngModelChange",function(e){return p.CHM(t),p.oxw().servicesOnFacility=e}),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.TgZ(14,"mat-form-field"),p.TgZ(15,"mat-select",15),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw().selectedType=e})("selectionChange",function(){return p.CHM(t),p.oxw().destinationControl.updateValueAndValidity()}),p.ALo(16,"translate"),p.YNc(17,wt,2,2,"mat-option",12),p.qZA(),p.qZA(),p.YNc(18,Mt,4,4,"mat-form-field",16),p.YNc(19,Ft,3,4,"mat-checkbox",17),p.TgZ(20,"mat-form-field"),p.TgZ(21,"mat-select",18),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw().selectedPropagation=e}),p.ALo(22,"translate"),p.YNc(23,qt,2,2,"mat-option",12),p.qZA(),p.qZA(),p.TgZ(24,"div",8),p._uU(25),p.ALo(26,"translate"),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,18,"DIALOGS.ADD_SERVICE_DESTINATION.DESCRIPTION")),p.xp6(3),p.s9C("placeholder",p.lcZ(6,20,"DIALOGS.ADD_SERVICE_DESTINATION.SERVICE")),p.Q6J("formControl",t.serviceControl),p.xp6(2),p.Q6J("ngIf",0!==t.services.length),p.xp6(1),p.Q6J("ngIf",0===t.services.length),p.xp6(1),p.Q6J("ngForOf",t.services),p.xp6(1),p.Q6J("ngIf",void 0===t.serviceControl.value),p.xp6(1),p.Q6J("ngModel",t.servicesOnFacility),p.xp6(1),p.Oqu(p.lcZ(13,22,"DIALOGS.ADD_SERVICE_DESTINATION.IS_SERVICES_ONLY_ON_FACILITY")),p.xp6(3),p.s9C("placeholder",p.lcZ(16,24,"DIALOGS.ADD_SERVICE_DESTINATION.TYPE")),p.Q6J("ngModel",t.selectedType),p.xp6(2),p.Q6J("ngForOf",t.types),p.xp6(1),p.Q6J("ngIf",!("host"===t.selectedType&&t.useFacilityHost)),p.xp6(1),p.Q6J("ngIf","host"===t.selectedType),p.xp6(2),p.s9C("placeholder",p.lcZ(22,26,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION")),p.Q6J("ngModel",t.selectedPropagation),p.xp6(2),p.Q6J("ngForOf",t.propagations),p.xp6(2),p.hij(" ",p.lcZ(26,28,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION_TYPE_"+t.selectedPropagation)," ")}}let Jt=(()=>{class t{constructor(t,e,i,s){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.servicesManager=s,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(/^(([^<>()[\]\\.,;:\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]{2,}))$/),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.loading=!0,this.serviceControl=new et.NI(void 0,et.kI.required),this.destinationControl=new et.NI("",this.getDestinationValidator()),this.emailControl=new et.NI("",[et.kI.required,et.kI.pattern(this.emailRegex)]),this.facilitiesManager.getHosts(this.data.facility.id).subscribe(t=>{this.hosts=t,this.servicesOnFacility=!0,this.getServices(),this.loading=!1},()=>this.loading=!1)}getDestinationValidator(){return t=>{if(!t.value)return null;let e;switch(this.selectedType){case"host":case"host-windows-proxy":e=this.hostPattern;break;case"email":case"semail":e=this.emailRegex;break;case"url":e=this.urlPattern;break;case"user@host":case"user@host-windows":e=this.userAtHostPattern;break;case"user@host:port":e=this.userAtHostPortPattern;break;case"service-specific":e=this.serviceSpecificPattern;break;default:return null}return e.test(t.value)?null:{invalidDestination:{value:t.value}}}}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?this.servicesManager.getAssignedServices(this.data.facility.id).subscribe(t=>{this.services=t},()=>this.loading=!1):this.servicesManager.getServices().subscribe(t=>{this.services=t},()=>this.loading=!1),this.loading=!1,this.serviceControl.setValue(void 0)}getTypeForView(t){return"semail"===t?"Send Mail":"service-specific"===t?"Service Specific":t}invalidDestination(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.IQ),p.Y36(c.KK))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-perun-web-apps-add-services-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",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(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,xt,1,0,"mat-spinner",1),p.YNc(5,Ut,27,30,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.onSubmit()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.Tol(e.data.theme),p.xp6(2),p.Oqu(p.lcZ(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading||e.invalidDestination()||e.serviceControl.invalid||"noService"===e.serviceControl.value),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},directives:[g.uh,s.O5,g.H8,b.lW,S.$g,g.xY,lt.KE,vt.gD,et.Q7,et.JJ,et.oH,s.sg,nt.oG,et.On,rt.ey,lt.TO,ot.Nt,et.Fj],pipes:[E.X$],styles:[""],data:{animation:[l.BQ]}}),t})();var Qt=i(59403),zt=i(19139),Ht=i(94357);function Vt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",8),p.NdJ("click",function(){return p.CHM(t),p.oxw().addDestination()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function Bt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",9),p.NdJ("click",function(){return p.CHM(t),p.oxw().removeDestination()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function Pt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",10),p.NdJ("click",function(){return p.CHM(t),p.oxw().onAllow()}),p.TgZ(1,"mat-icon"),p._uU(2," check_circle_outline "),p.qZA(),p._uU(3),p.ALo(4,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length||t.allSelectedAllowed()),p.xp6(3),p.hij(" ",p.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function Gt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",10),p.NdJ("click",function(){return p.CHM(t),p.oxw().onBlock()}),p.TgZ(1,"mat-icon"),p._uU(2," block "),p.qZA(),p._uU(3),p.ALo(4,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length||t.allSelectedBlocked()),p.xp6(3),p.hij(" ",p.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function $t(t,e){1&t&&p._UZ(0,"mat-spinner",11)}function jt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-perun-web-apps-destination-list",12),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("destinations",t.destinations)("selection",t.selected)("displayedColumns",t.displayedColumns)}}let Kt=(()=>{class t{constructor(t,e,i,s,a,n,l,o,c){this.dialog=t,this.facilitiesManager=e,this.servicesManager=i,this.tableConfigService=s,this.translate=a,this.notificator=n,this.route=l,this.authResolver=o,this.serviceManager=c,this.selected=new _t.Ov(!0,[]),this.displayedColumns=["select","destinationId","service","destination","type","propagationType"],this.filterValue="",this.tableId=yt.Cf}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(t=>{this.facilitiesManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t,this.refreshTable()})})}refreshTable(){this.loading=!0,this.servicesManager.getAllRichDestinationsForFacility(this.facility.id).subscribe(t=>{this.destinations=t,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?["select","destinationId","service","destination","type","status","propagationType"]:["destinationId","service","destination","type","status","propagationType"]}addDestination(){const t=(0,r.kZ)();t.width="600px",t.data={facility:this.facility,theme:"facility-theme"},this.dialog.open(Jt,t).afterClosed().subscribe(t=>{t&&this.translate.get("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS").subscribe(t=>{this.refreshTable(),this.notificator.showSuccess(t)})})}removeDestination(){const t=(0,r.kZ)();t.width="600px",t.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(Lt.u,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}blockServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.blockServiceOnDestination(e.service.id,e.id).subscribe(()=>{this.blockServiceOnDestinations(t)},()=>this.loading=!1)}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selected.selected)}allowServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.unblockServiceOnDestinationById(e.service.id,e.id).subscribe(()=>{this.allowServiceOnDestinations(t)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selected.selected)}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}allSelectedAllowed(){return this.selected.selected.reduce((t,e)=>t&&!e.blocked,!0)}allSelectedBlocked(){return this.selected.selected.reduce((t,e)=>t&&e.blocked,!0)}}return t.id="FacilityServicesDestinationsComponent",t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.IQ),p.Y36(c.KK),p.Y36(yt.dB),p.Y36(E.sK),p.Y36(u.V6),p.Y36(a.gz),p.Y36(u.x4),p.Y36(c.KK))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-perun-web-apps-facility-services-destinations"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:12,vars:10,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","destinations","selection","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","destinations","selection","displayedColumns","page"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.YNc(5,Vt,3,3,"button",2),p.YNc(6,Bt,3,4,"button",3),p.YNc(7,Pt,5,4,"button",4),p.YNc(8,Gt,5,4,"button",4),p.TgZ(9,"perun-web-apps-immediate-filter",5),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(10,$t,1,0,"mat-spinner",6),p.YNc(11,jt,1,5,"app-perun-web-apps-destination-list",7),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,8,"FACILITY_DETAIL.SERVICES_DESTINATIONS.TITLE")),p.xp6(3),p.Q6J("ngIf",!e.loading&&e.addAuth),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.removeAuth),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.allowAuth),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.blockAuth),p.xp6(1),p.Q6J("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,s.O5,zt.L,b.lW,A.Hw,S.$g,Ht.q],pipes:[E.X$],styles:[""]}),t})();var Wt=i(17767);function Xt(t,e){1&t&&p._UZ(0,"mat-spinner",3)}function te(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div"),p.TgZ(1,"perun-web-apps-immediate-filter",4),p.NdJ("filter",function(e){return p.CHM(t),p.oxw().applyFilter(e)}),p.qZA(),p.TgZ(2,"div",5),p.TgZ(3,"perun-web-apps-owners-list",6),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA(),p.qZA(),p.TgZ(4,"div",7),p.TgZ(5,"button",8),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCancel()}),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"button",9),p.NdJ("click",function(){return p.CHM(t),p.oxw().onAdd()}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("placeholder","DIALOGS.ADD_OWNERS.FILTER"),p.xp6(2),p.Q6J("filterValue",t.filterValue)("pageSize",t.pageSize)("owners",t.owners)("selection",t.selection),p.xp6(3),p.hij(" ",p.lcZ(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",0===t.selection.selected.length||t.loading),p.xp6(1),p.hij(" ",p.lcZ(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}let ee=(()=>{class t{constructor(t,e,i,s,a,n,l){this.dialogRef=t,this.data=e,this.notificator=i,this.tableConfigService=s,this.translate=a,this.ownersManagerService=n,this.facilitiesManagerService=l,this.extSources=[],this.selection=new _t.Ov(!0,[]),this.filterValue="",this.tableId=yt.BV,this.owners=[],this.translate.get("DIALOGS.ADD_OWNERS.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(t=>{this.owners=t.filter(t=>!this.data.forbiddenOwners.includes(t.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}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)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(u.V6),p.Y36(yt.dB),p.Y36(E.sK),p.Y36(c.aC),p.Y36(c.IQ))},t.\u0275cmp=p.Xpm({type:t,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","pageSize","owners","selection","page"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,Xt,1,0,"mat-spinner",1),p.YNc(5,te,11,12,"div",2),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,6,"DIALOGS.ADD_OWNERS.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[g.uh,s.O5,S.$g,zt.L,g.xY,Wt.Q,g.H8,b.lW],pipes:[E.X$],styles:[""]}),t})();var ie=i(67033);function se(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function ae(t,e){1&t&&p._UZ(0,"th",15)}function ne(t,e){if(1&t&&(p.TgZ(0,"td",16),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.name," ")}}function le(t,e){1&t&&p._UZ(0,"tr",17)}function oe(t,e){1&t&&p._UZ(0,"tr",18)}function ce(t,e){if(1&t&&(p.TgZ(0,"div",7),p.TgZ(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",8),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"table",9),p.ynx(8,10),p.YNc(9,ae,1,0,"th",11),p.YNc(10,ne,2,1,"td",12),p.BQk(),p.YNc(11,le,1,0,"tr",13),p.YNc(12,oe,1,0,"tr",14),p.qZA(),p.qZA()),2&t){const t=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,5,"DIALOGS.REMOVE_OWNERS.DESCRIPTION")," "),p.xp6(3),p.hij(" ",p.lcZ(6,7,"DIALOGS.REMOVE_OWNERS.ASK")," "),p.xp6(2),p.Q6J("dataSource",t.dataSource),p.xp6(4),p.Q6J("matHeaderRowDef",t.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",t.displayedColumns)}}let re=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=s,this.facilitiesManagerService=a,this.displayedColumns=["name"],s.get("DIALOGS.REMOVE_OWNERS.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.dataSource=new ie.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 t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(u.V6),p.Y36(E.sK),p.Y36(c.IQ))},t.\u0275cmp=p.Xpm({type:t,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(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,se,1,0,"mat-spinner",1),p.YNc(5,ce,13,9,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.onSubmit()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},directives:[g.uh,s.O5,g.H8,b.lW,S.$g,g.xY,ie.BZ,ie.w1,ie.fO,ie.Dz,ie.as,ie.nj,ie.ge,ie.ev,ie.XQ,ie.Gk],pipes:[E.X$],styles:[""]}),t})();function ue(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-refresh-button",7),p.NdJ("refresh",function(){return p.CHM(t),p.oxw().refreshTable()}),p.qZA()}}function de(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",8),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCreate()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function he(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",9),p.NdJ("click",function(){return p.CHM(t),p.oxw().onRemove()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selection.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function pe(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-immediate-filter",10),p.NdJ("filter",function(e){return p.CHM(t),p.oxw().applyFilter(e)}),p.qZA()}2&t&&p.Q6J("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER")}function ge(t,e){1&t&&p._UZ(0,"mat-spinner",11)}function fe(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-owners-list",12),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("owners",t.owners)("displayedColumns",t.displayedColumns)("selection",t.selection)}}let me=(()=>{class t{constructor(t,e,i,s,a){this.facilitiesManagerService=t,this.tableConfigService=e,this.route=i,this.dialog=s,this.authResolver=a,this.owners=[],this.selection=new _t.Ov(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=yt.zp}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.filterValue="",this.route.parent.parent.params.subscribe(t=>{this.facilityId=parseInt(t.facilityId,10),this.facility={id:this.facilityId,beanName:"Facility"},this.refreshTable()})}refreshTable(){this.loading=!0,this.selection.clear(),this.facilitiesManagerService.getFacilityOwners(this.facilityId).subscribe(t=>{this.owners=t,this.setAuthRights(),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(t){this.filterValue=t}onCreate(){const t=(0,r.kZ)();t.width="800px",t.data={theme:"facility-theme",facilityId:this.facilityId,forbiddenOwners:this.owners.map(t=>t.id)},this.dialog.open(ee,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,r.kZ)();t.width="600px",t.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facilityId},this.dialog.open(re,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(yt.dB),p.Y36(a.gz),p.Y36(g.uw),p.Y36(u.x4))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-settings-owners"]],decls:9,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["class","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",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","owners","displayedColumns","selection","page",4,"ngIf"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","owners","displayedColumns","selection","page"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.YNc(3,ue,1,0,"perun-web-apps-refresh-button",1),p.YNc(4,de,3,3,"button",2),p.YNc(5,he,3,4,"button",3),p.YNc(6,pe,1,1,"perun-web-apps-immediate-filter",4),p.YNc(7,ge,1,0,"mat-spinner",5),p.YNc(8,fe,1,5,"perun-web-apps-owners-list",6)),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,7,"FACILITY_DETAIL.SETTINGS.OWNERS.TITLE")),p.xp6(2),p.Q6J("ngIf",!e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.addAuth),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.removeAuth),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[s.O5,Qt.t,b.lW,zt.L,S.$g,Wt.Q],pipes:[E.X$],styles:[""]}),t})();function Se(t,e){1&t&&p._UZ(0,"mat-spinner",7)}function Ae(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function Te(t,e){if(1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t){const t=p.oxw(2);p.xp6(1),p.AsE(" ",p.lcZ(2,2,"DIALOGS.ADD_HOST.INVALID_HOST"),"",t.hostsCtrl.getError("invalidHost").value," ")}}function Ie(t,e){if(1&t&&(p.TgZ(0,"div",8),p.TgZ(1,"mat-form-field"),p.TgZ(2,"textarea",9),p._uU(3," "),p.qZA(),p.YNc(4,Ae,3,3,"mat-error",10),p.YNc(5,Te,3,4,"mat-error",10),p.qZA(),p.TgZ(6,"div",11),p._uU(7),p.ALo(8,"translate"),p.qZA(),p.qZA()),2&t){const t=p.oxw();p.xp6(2),p.Q6J("formControl",t.hostsCtrl),p.xp6(2),p.Q6J("ngIf",t.hostsCtrl.hasError("required")),p.xp6(1),p.Q6J("ngIf",t.hostsCtrl.hasError("invalidHost")),p.xp6(2),p.Oqu(p.lcZ(8,4,"DIALOGS.ADD_HOST.HINT"))}}let be=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=s,this.translate=a,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}$")}ngOnInit(){this.theme=this.data.theme,this.facilityName=this.data.facilityName,this.hostsCtrl=new et.NI("",[et.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const t=this.hostsCtrl.value.split("\n");let e=[];for(const i of t)e=e.concat(this.parseHostName(i));this.facilitiesManager.addHosts(this.data.facilityId,e).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 t=>{let e=[];const i=t.value.split("\n");for(const s of i)e=e.concat(this.parseHostName(s));for(const s of e)if(!this.hostPattern.test(s))return{invalidHost:{value:s}};return null}}parseHostName(t){const e=new RegExp("[[0-9]+-[0-9]+]","g"),i=t.split(e),s=t.match(e);if(null==s)return""===t?[]:[t];let a=[];for(let n=0;n{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=s,this.translate=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.hosts=this.data.hosts,this.dataSource=new ie.by(this.data.hosts)}onConfirm(){this.loading=!0,this.facilitiesManager.removeHosts(this.data.facilityId,this.hosts.map(t=>t.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 t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.IQ),p.Y36(u.V6),p.Y36(E.sK))},t.\u0275cmp=p.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,Ee,1,0,"mat-spinner",1),p.YNc(5,Le,13,9,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.onConfirm()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_HOST.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_HOST.CANCEL"),""),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_HOST.CONFIRM"),""))},directives:[g.uh,s.O5,g.H8,b.lW,S.$g,g.xY,ie.BZ,ie.w1,ie.fO,ie.Dz,ie.as,ie.nj,ie.ge,ie.ev,ie.XQ,ie.Gk],pipes:[E.X$],styles:[""]}),t})();var xe=i(58623),Oe=i(82819),De=i(84534),Re=i(39571);function Ne(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",13),p.TgZ(1,"mat-checkbox",14),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function we(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",15),p.TgZ(1,"mat-checkbox",16),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function ke(t,e){1&t&&(p.TgZ(0,"th",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_ID")))}function Ye(t,e){if(1&t&&(p.TgZ(0,"td",15),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.id)}}function Me(t,e){1&t&&(p.TgZ(0,"th",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_NAME")))}function Fe(t,e){if(1&t&&(p.TgZ(0,"td",18),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.hostname)}}function qe(t,e){1&t&&p._UZ(0,"tr",19)}const Ue=function(t,e){return["/facilities",t,"hosts",e]};function Je(t,e){if(1&t&&p._UZ(0,"tr",20),2&t){const t=e.$implicit,i=p.oxw();p.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:p.WLB(2,Ue,i.facilityId,t.id))("routerLink",i.disableRouting?null:p.WLB(5,Ue,i.facilityId,t.id))}}function Qe(t,e){1&t&&(p.TgZ(0,"app-alert",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ze(t,e){1&t&&(p.TgZ(0,"app-alert",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.NO_HOST_WARNING"),"\n"))}let He=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.hosts=[],this.selection=new _t.Ov(!0,[]),this.pageSize=10,this.disableRouting=!1,this.displayedColumns=["select","id","name"],this.page=new p.vpe,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new ie.by(this.hosts),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.hostname;default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(u.x4),p.Y36(u.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-hosts-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(xe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[p.TTD],decls:16,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,Ne,2,3,"th",4),p.YNc(5,we,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,ke,3,3,"th",7),p.YNc(8,Ye,2,1,"td",5),p.BQk(),p.ynx(9,8),p.YNc(10,Me,3,3,"th",7),p.YNc(11,Fe,2,1,"td",9),p.BQk(),p.YNc(12,qe,1,0,"tr",10),p.YNc(13,Je,1,8,"tr",11),p.qZA(),p.qZA(),p.qZA(),p.YNc(14,Qe,3,3,"app-alert",12),p.YNc(15,ze,3,3,"app-alert",12)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.hosts.length),p.xp6(1),p.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(10),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.hosts.length),p.xp6(1),p.Q6J("ngIf",0===e.hosts.length))},directives:[Oe.l,ie.BZ,xe.YE,ie.w1,ie.fO,ie.Dz,ie.as,ie.nj,s.O5,ie.ge,nt.oG,ie.ev,xe.nU,ie.XQ,ie.Gk,De.YH,a.rH,Re.w],pipes:[E.X$],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function Ve(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw().addHost()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.HOSTS.ADD")," "))}function Be(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",8),p.NdJ("click",function(){return p.CHM(t),p.oxw().removeHost()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.HOSTS.REMOVE")," ")}}function Pe(t,e){1&t&&p._UZ(0,"mat-spinner",9)}function Ge(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-hosts-list",10),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("hosts",t.hosts)("selection",t.selected)("displayedColumns",t.displayedColumns)("disableRouting",!t.routeAuth)("facilityId",t.facilityId)}}let $e=(()=>{class t{constructor(t,e,i,s,a){this.dialog=t,this.facilitiesManager=e,this.tableConfigService=i,this.route=s,this.authResolver=a,this.hosts=[],this.selected=new _t.Ov(!0,[]),this.filterValue="",this.tableId=yt.eq,this.displayedColumns=["id","name"]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.facilityId=t.facilityId,this.facilitiesManager.getFacilityById(this.facilityId).subscribe(t=>{this.facility=t,this.refreshTable()})})}refreshTable(){this.loading=!0,this.facilitiesManager.getHosts(this.facilityId).subscribe(t=>{this.hosts=t,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 t=(0,r.kZ)();t.width="600px",t.data={facilityId:this.facility.id,facilityName:this.facility.name,theme:"facility-theme"},this.dialog.open(be,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeHost(){const t=(0,r.kZ)();t.width="600px",t.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(ve,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.IQ),p.Y36(yt.dB),p.Y36(a.gz),p.Y36(u.x4))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-hosts"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",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,"pageSize","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId","page"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.YNc(5,Ve,3,3,"button",2),p.YNc(6,Be,3,4,"button",3),p.TgZ(7,"perun-web-apps-immediate-filter",4),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(8,Pe,1,0,"mat-spinner",5),p.YNc(9,Ge,1,7,"app-hosts-list",6),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),p.xp6(3),p.Q6J("ngIf",!e.loading&&e.addAuth),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.removeAuth),p.xp6(1),p.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,s.O5,zt.L,b.lW,S.$g,He],pipes:[E.X$],styles:[""]}),t})();function je(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",14),p.TgZ(1,"mat-checkbox",15),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Ke(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",16),p.TgZ(1,"mat-checkbox",17),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function We(t,e){1&t&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")))}function Xe(t,e){if(1&t&&(p.TgZ(0,"td",16),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t[1].id)}}function ti(t,e){1&t&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")))}function ei(t,e){if(1&t&&(p.TgZ(0,"td",19),p._uU(1),p.ALo(2,"userFullName"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(p.lcZ(2,1,t[1]))}}function ii(t,e){1&t&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")))}function si(t,e){if(1&t&&(p.TgZ(0,"td",19),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t[0].description)}}function ai(t,e){1&t&&p._UZ(0,"tr",20)}function ni(t,e){1&t&&p._UZ(0,"tr",21)}function li(t,e){1&t&&(p.TgZ(0,"app-alert",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function oi(t,e){1&t&&(p.TgZ(0,"app-alert",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}let ci=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.bansOnFacilitiesWithUsers=[],this.selection=new _t.Ov(!0,[]),this.pageSize=10,this.page=new p.vpe,this.displayedColumns=["select","userId","name","reason"],this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"userId"!==t)),this.dataSource=new ie.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"userId":return t[1].id.toString();case"reason":return t[0].description;case"name":return(0,r.hu)(t[1]);default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t[0].userId+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(u.x4),p.Y36(u.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(xe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",pageSize:"pageSize"},outputs:{page:"page"},features:[p.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,je,2,3,"th",4),p.YNc(5,Ke,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,We,3,3,"th",7),p.YNc(8,Xe,2,1,"td",5),p.BQk(),p.ynx(9,8),p.YNc(10,ti,3,3,"th",7),p.YNc(11,ei,3,3,"td",9),p.BQk(),p.ynx(12,10),p.YNc(13,ii,3,3,"th",7),p.YNc(14,si,2,1,"td",9),p.BQk(),p.YNc(15,ai,1,0,"tr",11),p.YNc(16,ni,1,0,"tr",12),p.qZA(),p.qZA(),p.qZA(),p.YNc(17,li,3,3,"app-alert",13),p.YNc(18,oi,3,3,"app-alert",13)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.bansOnFacilitiesWithUsers.length),p.xp6(1),p.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(13),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.bansOnFacilitiesWithUsers.length),p.xp6(1),p.Q6J("ngIf",0===e.bansOnFacilitiesWithUsers.length))},directives:[Oe.l,ie.BZ,xe.YE,ie.w1,ie.fO,ie.Dz,ie.as,ie.nj,s.O5,ie.ge,nt.oG,ie.ev,xe.nU,ie.XQ,ie.Gk,Re.w],pipes:[E.X$,ut.d],styles:[""]}),t})();function ri(t,e){1&t&&p._UZ(0,"mat-spinner",5)}function ui(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-perun-web-apps-blacklist-list",6),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("bansOnFacilitiesWithUsers",t.bansOnFacilitiesWithUsers)("selection",t.selected)}}let di=(()=>{class t{constructor(t,e,i,s){this.facilitiesManager=t,this.usersManager=e,this.tableConfigService=i,this.route=s,this.bansOnFacilitiesWithUsers=[],this.selected=new _t.Ov(!0,[]),this.filterValue="",this.tableId=yt.NG}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.facilitiesManager.getBansForFacility(t.facilityId).subscribe(t=>{const e=t;for(const i of e){let t;this.usersManager.getUserById(i.userId).subscribe(e=>{t=e}),this.bansOnFacilitiesWithUsers.push([i,t])}this.selected.clear(),this.loading=!1})})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(c.Fv),p.Y36(yt.dB),p.Y36(a.gz))},t.\u0275cmp=p.Xpm({type:t,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,"pageSize","filterValue","bansOnFacilitiesWithUsers","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","bansOnFacilitiesWithUsers","selection","page"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.TgZ(5,"perun-web-apps-immediate-filter",2),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.ALo(6,"translate"),p.qZA(),p.YNc(7,ri,1,0,"mat-spinner",3),p.YNc(8,ui,1,4,"app-perun-web-apps-blacklist-list",4),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),p.xp6(3),p.Q6J("placeholder",p.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,zt.L,s.O5,S.$g,ci],pipes:[E.X$],styles:[""]}),t})();var hi=i(41939),pi=i(13572),gi=i(40695),fi=i(41186);const mi=["list"];function Si(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-attributes-list",6,7),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("pageSize",t.pageSize)("attributes",t.attributes)("selection",t.selected)}}let Ai=(()=>{class t{constructor(t,e,i,s,a){this.dialog=t,this.attributesManager=e,this.facilityManager=i,this.tableConfigService=s,this.route=a,this.attributes=[],this.selected=new _t.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=yt.rF}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.params.subscribe(t=>{this.hostId=t.hostId,this.facilityManager.getHostById(this.hostId).subscribe(t=>{this.host=t}),this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(t=>{this.attributes=(0,r.MX)(t),this.selected.clear(),this.loading=!1})}onSave(){this.list.updateMapAttributes();const t=(0,r.kZ)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(d.wA,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}addAttribute(){const t=(0,r.kZ)();t.width="1050px",t.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(gi.n,t).afterClosed().subscribe(t=>{"saved"===t&&this.refreshTable()})}removeAttribute(){const t=(0,r.kZ)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(pi.k,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.H8),p.Y36(c.IQ),p.Y36(yt.dB),p.Y36(a.gz))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-hosts-detail"]],viewQuery:function(t,e){if(1&t&&p.Gf(mi,5),2&t){let t;p.iGM(t=p.CRH())&&(e.list=t.first)}},decls:15,vars:16,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"pageSize","attributes","selection","page",4,"ngIf"],[3,"pageSize","attributes","selection","page"],["list",""]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.TgZ(5,"button",2),p.NdJ("click",function(){return e.addAttribute()}),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"button",3),p.NdJ("click",function(){return e.onSave()}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.TgZ(11,"button",4),p.NdJ("click",function(){return e.removeAttribute()}),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.YNc(14,Si,2,3,"perun-web-apps-attributes-list",5),p.qZA()),2&t&&(p.xp6(2),p.AsE(" ",p.lcZ(3,8,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",e.host.hostname,""),p.xp6(4),p.hij(" ",p.lcZ(7,10,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),p.xp6(2),p.Q6J("disabled",0===e.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(10,12,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),p.xp6(2),p.Q6J("disabled",0===e.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(13,14,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),p.xp6(2),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,b.lW,s.O5,fi.p],pipes:[E.X$],styles:[""]}),t})();function Ti(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",14),p.TgZ(1,"mat-checkbox",15),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Ii(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",16),p.TgZ(1,"mat-checkbox",17),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function bi(t,e){1&t&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")))}function Ei(t,e){if(1&t&&(p.TgZ(0,"td",16),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.id)}}function Ci(t,e){1&t&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")))}function Zi(t,e){if(1&t&&(p.TgZ(0,"td",19),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.name)}}function yi(t,e){1&t&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")))}function _i(t,e){if(1&t&&(p.TgZ(0,"td",19),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.description)}}function Li(t,e){1&t&&p._UZ(0,"tr",20)}function vi(t,e){1&t&&p._UZ(0,"tr",21)}function xi(t,e){1&t&&(p.TgZ(0,"app-alert",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Oi(t,e){1&t&&(p.TgZ(0,"app-alert",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}let Di=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.securityTeams=[],this.selection=new _t.Ov(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","name","description"],this.page=new p.vpe,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new ie.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"description":return t.description;default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(u.x4),p.Y36(u.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-security-teams-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(xe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[p.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,Ti,2,3,"th",4),p.YNc(5,Ii,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,bi,3,3,"th",7),p.YNc(8,Ei,2,1,"td",5),p.BQk(),p.ynx(9,8),p.YNc(10,Ci,3,3,"th",7),p.YNc(11,Zi,2,1,"td",9),p.BQk(),p.ynx(12,10),p.YNc(13,yi,3,3,"th",7),p.YNc(14,_i,2,1,"td",9),p.BQk(),p.YNc(15,Li,1,0,"tr",11),p.YNc(16,vi,1,0,"tr",12),p.qZA(),p.qZA(),p.qZA(),p.YNc(17,xi,3,3,"app-alert",13),p.YNc(18,Oi,3,3,"app-alert",13)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.securityTeams.length),p.xp6(1),p.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(13),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.securityTeams.length),p.xp6(1),p.Q6J("ngIf",0===e.securityTeams.length))},directives:[Oe.l,ie.BZ,xe.YE,ie.w1,ie.fO,ie.Dz,ie.as,ie.nj,s.O5,ie.ge,nt.oG,ie.ev,xe.nU,ie.XQ,ie.Gk,Re.w],pipes:[E.X$],styles:[""]}),t})();function Ri(t,e){1&t&&p._UZ(0,"mat-spinner",5)}function Ni(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-security-teams-list",6),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("securityTeams",t.securityTeams)("displayedColumns",t.displayedColumns)("selection",t.selected)}}let wi=(()=>{class t{constructor(t,e,i,s,a){this.dialog=t,this.facilitiesManager=e,this.tableConfigService=i,this.route=s,this.authResolver=a,this.securityTeams=[],this.selected=new _t.Ov(!0,[]),this.filterValue="",this.tableId=yt.O9,this.displayedColumns=[]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.facilitiesManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t,this.refreshTable()})})}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(t=>{this.securityTeams=t,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(t){this.filterValue=t}addSecurityTeam(){}removeSecurityTeam(){}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.IQ),p.Y36(yt.dB),p.Y36(a.gz),p.Y36(u.x4))},t.\u0275cmp=p.Xpm({type:t,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,"pageSize","filterValue","securityTeams","displayedColumns","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","securityTeams","displayedColumns","selection","page"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.TgZ(5,"perun-web-apps-immediate-filter",2),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(6,Ri,1,0,"mat-spinner",3),p.YNc(7,Ni,1,5,"app-security-teams-list",4),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),p.xp6(3),p.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,zt.L,s.O5,S.$g,Di],pipes:[E.X$],styles:[""]}),t})();var ki=i(64359),Yi=i(75374);function Mi(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function Fi(t,e){1&t&&(p.TgZ(0,"th",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")))}function qi(t,e){if(1&t&&(p.TgZ(0,"td",18),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.id," ")}}function Ui(t,e){1&t&&(p.TgZ(0,"th",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")))}function Ji(t,e){if(1&t&&(p.TgZ(0,"td",18),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.destination.destination," ")}}function Qi(t,e){1&t&&(p.TgZ(0,"th",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function zi(t,e){if(1&t&&(p.TgZ(0,"td",18),p._uU(1),p.ALo(2,"date"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",p.xi3(2,1,t.timestamp,"d.M.y H:mm:ss")," ")}}function Hi(t,e){1&t&&p._UZ(0,"tr",19)}function Vi(t,e){1&t&&p._UZ(0,"tr",20)}function Bi(t,e){if(1&t&&(p.TgZ(0,"div",7),p.TgZ(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",8),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"table",9),p.ynx(8,10),p.YNc(9,Fi,3,3,"th",11),p.YNc(10,qi,2,1,"td",12),p.BQk(),p.ynx(11,13),p.YNc(12,Ui,3,3,"th",11),p.YNc(13,Ji,2,1,"td",12),p.BQk(),p.ynx(14,14),p.YNc(15,Qi,3,3,"th",11),p.YNc(16,zi,3,4,"td",12),p.BQk(),p.YNc(17,Hi,1,0,"tr",15),p.YNc(18,Vi,1,0,"tr",16),p.qZA(),p.qZA()),2&t){const t=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),p.xp6(3),p.hij(" ",p.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),p.xp6(2),p.Q6J("dataSource",t.dataSource),p.xp6(10),p.Q6J("matHeaderRowDef",t.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",t.displayedColumns)}}let Pi=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.taskManager=i,this.notificator=s,this.translate=a,this.loading=!1,this.dataSource=new ie.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}ngOnInit(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}deleteResults(){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.deleteResults()},()=>this.loading=!1)}onDelete(){this.deleteResults()}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.Ob),p.Y36(u.V6),p.Y36(E.sK))},t.\u0275cmp=p.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,Mi,1,0,"mat-spinner",1),p.YNc(5,Bi,19,9,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.onDelete()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},directives:[g.uh,s.O5,g.H8,b.lW,S.$g,g.xY,ie.BZ,ie.w1,ie.fO,ie.Dz,ie.as,ie.nj,ie.ge,ie.ev,ie.XQ,ie.Gk],pipes:[E.X$,s.uU],styles:[""]}),t})();var Gi=i(88884);function $i(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function ji(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-checkbox",13),p.NdJ("change",function(e){return p.CHM(t),p.oxw(2).change(e)}),p.ALo(1,"translate"),p._uU(2),p.ALo(3,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.s9C("matTooltip",p.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),p.Q6J("matTooltipDisabled",!t.checkboxesDisabled)("disabled",t.checkboxesDisabled)("checked",t.taskChecked),p.xp6(2),p.hij(" ",p.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function Ki(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-checkbox",14),p.NdJ("change",function(e){return p.CHM(t),p.oxw(2).change(e)}),p.ALo(1,"translate"),p._uU(2),p.ALo(3,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.s9C("matTooltip",p.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),p.Q6J("matTooltipDisabled",!t.checkboxesDisabled)("disabled",t.checkboxesDisabled)("checked",t.taskResultsChecked),p.xp6(2),p.hij(" ",p.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function Wi(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-resources-list",15),p.NdJ("allSelected",function(e){return p.CHM(t),p.oxw(2).disableCheckboxes(e)})("page",function(e){return p.CHM(t),p.oxw(2).pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("pageSize",t.pageSize)("disableRouting",!0)("resources",t.resources)("selection",t.selected)("displayedColumns",t.displayedColumns)}}function Xi(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",7),p.TgZ(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div"),p.YNc(5,ji,4,9,"mat-checkbox",8),p.YNc(6,Ki,4,9,"mat-checkbox",9),p.TgZ(7,"mat-checkbox",10),p.NdJ("change",function(e){return p.CHM(t),p.oxw().change(e)}),p.ALo(8,"translate"),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.qZA(),p.TgZ(11,"p"),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.TgZ(14,"div",11),p._uU(15),p.ALo(16,"translate"),p.qZA(),p.YNc(17,Wi,1,5,"perun-web-apps-resources-list",12),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),p.xp6(3),p.Q6J("ngIf",null!==t.taskId),p.xp6(1),p.Q6J("ngIf",null!==t.taskId),p.xp6(1),p.s9C("matTooltip",p.lcZ(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),p.Q6J("matTooltipDisabled",!t.checkboxesDisabled)("disabled",t.checkboxesDisabled)("checked",t.destinationChecked),p.xp6(2),p.hij(" ",p.lcZ(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),p.xp6(3),p.Oqu(p.lcZ(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),p.xp6(3),p.hij(" ",p.lcZ(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),p.xp6(2),p.Q6J("ngIf",!t.loading)}}let ts=(()=>{class t{constructor(t,e,i,s,a,n,l,o,c){this.dialogRef=t,this.data=e,this.tableConfigService=i,this.resourcesManager=s,this.tasksManager=a,this.serviceManager=n,this.translate=l,this.notificator=o,this.cd=c,this.loading=!1,this.dataSource=new ie.by(this.data.resource),this.selected=new _t.Ov(!0,[...this.dataSource.data]),this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=yt.$V}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),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(t=>{t.forEach(t=>{this.tasksManager.deleteTaskResultById({taskResultId:t.id}).subscribe()})}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe(t=>{t.forEach(t=>{this.serviceManager.removeDestination(this.serviceId,this.facilityId,t.destination,t.type).subscribe()})}),this.selected.selected.forEach(t=>{this.resourcesManager.removeService(t.id,this.serviceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)})}cancel(){this.dialogRef.close(!1)}disableCheckboxes(t){t&&this.checkboxesDisabled&&this.changeCheckboxes(!0),t||this.checkboxesDisabled||this.changeCheckboxes(!1)}changeCheckboxes(t){this.checkboxesDisabled=!t,this.taskChecked=t,this.taskResultsChecked=t,this.destinationChecked=t,this.cd.detectChanges()}change(t){switch(t.source.id){case"task":this.taskChecked=t.checked;break;case"taskResults":this.taskResultsChecked=t.checked;break;case"destination":this.destinationChecked=t.checked}}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(yt.dB),p.Y36(c.xk),p.Y36(c.Ob),p.Y36(c.KK),p.Y36(E.sK),p.Y36(u.V6),p.Y36(p.sBO))},t.\u0275cmp=p.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["id","task","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","taskResults","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","destination","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[1,"font-weight-bold"],[3,"pageSize","disableRouting","resources","selection","displayedColumns","allSelected","page",4,"ngIf"],["id","task","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],["id","taskResults","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[3,"pageSize","disableRouting","resources","selection","displayedColumns","allSelected","page"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,$i,1,0,"mat-spinner",1),p.YNc(5,Xi,18,21,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.cancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.remove()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading||0===e.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},directives:[g.uh,s.O5,g.H8,b.lW,S.$g,g.xY,nt.oG,T.gM,Gi.C],pipes:[E.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),t})();function es(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function is(t,e){1&t&&(p.TgZ(0,"div",7),p.TgZ(1,"div",8),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.qZA()),2&t&&(p.xp6(2),p.hij(" ",p.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let ss=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.tasksManager=i,this.translate=s,this.notificator=a,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.Ob),p.Y36(E.sK),p.Y36(u.V6))},t.\u0275cmp=p.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,es,1,0,"mat-spinner",1),p.YNc(5,is,4,3,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.cancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.remove()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},directives:[g.uh,s.O5,g.H8,b.lW,S.$g,g.xY],pipes:[E.X$],styles:[""]}),t})();var as=i(8055);let ns=(()=>{class t{transform(t){return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=p.Yjl({name:"serviceStateBlockedToString",type:t,pure:!0}),t})();function ls(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",17),p.TgZ(1,"mat-checkbox",18),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e&&i.masterToggle(),i.selectionChange.emit()}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())("aria-label",t.checkboxLabel())}}function os(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",19),p.TgZ(1,"mat-checkbox",20),p.NdJ("click",function(t){return t.stopPropagation()})("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e&&s.selection.toggle(i),s.selectionChange.emit()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("checked",i.selection.isSelected(t))("aria-label",i.checkboxLabel(t))}}function cs(t,e){1&t&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")))}function rs(t,e){if(1&t&&(p.TgZ(0,"div"),p._uU(1),p.qZA()),2&t){const t=p.oxw().$implicit;p.xp6(1),p.Oqu(t.task.id)}}function us(t,e){1&t&&(p.TgZ(0,"div"),p._uU(1,"0"),p.qZA())}function ds(t,e){if(1&t&&(p.TgZ(0,"td",19),p.YNc(1,rs,2,1,"div",22),p.YNc(2,us,2,0,"div",22),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngIf",t.task),p.xp6(1),p.Q6J("ngIf",!t.task)}}function hs(t,e){1&t&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")))}function ps(t,e){if(1&t&&(p.TgZ(0,"td",23),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.service.name)}}function gs(t,e){1&t&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")))}function fs(t,e){if(1&t&&(p.TgZ(0,"td",23),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.status)}}function ms(t,e){1&t&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")))}function Ss(t,e){if(1&t&&(p.TgZ(0,"td",23),p._uU(1),p.ALo(2,"serviceStateBlockedToString"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(p.lcZ(2,1,t))}}function As(t,e){1&t&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")))}function Ts(t,e){if(1&t&&(p.TgZ(0,"div"),p._uU(1),p.ALo(2,"date"),p.qZA()),2&t){const t=p.oxw().$implicit;p.xp6(1),p.Oqu(p.xi3(2,1,t.task.startTime,"d.M.y H:mm:ss"))}}function Is(t,e){1&t&&(p.TgZ(0,"div"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET"),""))}function bs(t,e){if(1&t&&(p.TgZ(0,"td",23),p.YNc(1,Ts,3,4,"div",22),p.YNc(2,Is,3,3,"div",22),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngIf",t.task&&t.task.startTime),p.xp6(1),p.Q6J("ngIf",!t.task||!t.task.startTime)}}function Es(t,e){1&t&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")))}function Cs(t,e){if(1&t&&(p.TgZ(0,"div"),p._uU(1),p.ALo(2,"date"),p.qZA()),2&t){const t=p.oxw().$implicit;p.xp6(1),p.Oqu(p.xi3(2,1,t.task.endTime,"d.M.y H:mm:ss"))}}function Zs(t,e){1&t&&(p.TgZ(0,"div"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function ys(t,e){if(1&t&&(p.TgZ(0,"td",23),p.YNc(1,Cs,3,4,"div",22),p.YNc(2,Zs,3,3,"div",22),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngIf",t.task&&t.task.endTime),p.xp6(1),p.Q6J("ngIf",!t.task||!t.task.endTime)}}function _s(t,e){1&t&&p._UZ(0,"tr",24)}const Ls=function(t,e){return["/facilities",t,"services-status",e]};function vs(t,e){if(1&t&&p._UZ(0,"tr",25),2&t){const t=e.$implicit,i=p.oxw();p.ekj("disable-outline",i.disableRouting||!t.task)("make-yellow","WARNING"===t.status)("make-green","DONE"===t.status)("make-red","GENERROR"===t.status||"SENDERROR"===t.status||"ERROR"===t.status)("cursor-pointer",!i.disableRouting&&null!==t.task),p.Q6J("routerLink",i.disableRouting||null===t.task?null:p.WLB(12,Ls,t.facility.id,t.taskId))("perunWebAppsMiddleClickRouterLink",i.disableRouting||null===t.task?null:p.WLB(15,Ls,t.facility.id,t.taskId))}}function xs(t,e){1&t&&(p.TgZ(0,"app-alert",26),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Os(t,e){1&t&&(p.TgZ(0,"app-alert",26),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}let Ds=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new _t.Ov(!0,[]),this.pageSize=10,this.disableRouting=!0,this.page=new p.vpe,this.selectionChange=new p.vpe,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"task.id"!==t)),this.dataSource=new ie.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(t,e)=>{const i=e.trim().toLowerCase(),s=t=>{let e="";return Object.values(t).forEach(t=>{"object"!=typeof t?e=e+" "+t:null!==t&&(e=e+" "+s(t))}),e.trim().toLowerCase()};return s(t).includes(i)},this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"task.id":return t.task?t.task.id.toString():t[e];case"service.name":return t.service.name;case"status":return t.status;case"blocked":return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return t.task&&t.task.startTime?(0,s.p6)(t.task.startTime,"d.M.y H:mm:ss","en"):t[e];case"task.endTime":return t.task&&t.task.endTime?(0,s.p6)(t.task.endTime,"d.M.y H:mm:ss","en"):t[e];default:return t[e]}}getSortDataForColumn(t,e){switch(e){case"task.id":return t.task?t.task.id.toString():t[e];case"service.name":return t.service.name;case"status":return t.status;case"blocked":return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return t.task&&t.task.startTime?(0,s.p6)(t.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):t[e];case"task.endTime":return t.task&&t.task.endTime?(0,s.p6)(t.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):t[e];default:return t[e]}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getSortDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.service.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(u.x4),p.Y36(u.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(xe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page",selectionChange:"selectionChange"},features:[p.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","task.id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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",""],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"checked","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],[4,"ngIf"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,ls,2,3,"th",4),p.YNc(5,os,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,cs,3,3,"th",7),p.YNc(8,ds,3,2,"td",5),p.BQk(),p.ynx(9,8),p.YNc(10,hs,3,3,"th",7),p.YNc(11,ps,2,1,"td",9),p.BQk(),p.ynx(12,10),p.YNc(13,gs,3,3,"th",7),p.YNc(14,fs,2,1,"td",9),p.BQk(),p.ynx(15,11),p.YNc(16,ms,3,3,"th",7),p.YNc(17,Ss,3,3,"td",9),p.BQk(),p.ynx(18,12),p.YNc(19,As,3,3,"th",7),p.YNc(20,bs,3,2,"td",9),p.BQk(),p.ynx(21,13),p.YNc(22,Es,3,3,"th",7),p.YNc(23,ys,3,2,"td",9),p.BQk(),p.YNc(24,_s,1,0,"tr",14),p.YNc(25,vs,1,18,"tr",15),p.qZA(),p.qZA(),p.qZA(),p.YNc(26,xs,3,3,"app-alert",16),p.YNc(27,Os,3,3,"app-alert",16)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.servicesStatus.length),p.xp6(1),p.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(22),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.servicesStatus.length),p.xp6(1),p.Q6J("ngIf",0===e.servicesStatus.length))},directives:[Oe.l,ie.BZ,xe.YE,ie.w1,ie.fO,ie.Dz,ie.as,ie.nj,s.O5,ie.ge,nt.oG,ie.ev,xe.nU,ie.XQ,ie.Gk,a.rH,De.YH,Re.w],pipes:[E.X$,ns,s.uU],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.make-green[_ngcontent-%COMP%]{background-color:#c4ffcb}.make-yellow[_ngcontent-%COMP%]{background-color:#fffde7}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function Rs(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){return p.CHM(t),p.oxw().forcePropagation()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Ns(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){return p.CHM(t),p.oxw().allow()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length||t.disableAllowButton),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function ws(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(t),p.oxw().block()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length||t.disableBlockButton),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function ks(t,e){if(1&t&&(p.TgZ(0,"button",13),p.ALo(1,"translate"),p._uU(2),p.ALo(3,"translate"),p.qZA()),2&t){const t=p.oxw(),e=p.MAs(10);p.s9C("matTooltip",p.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),p.Q6J("matTooltipDisabled",!t.disableRemoveButton)("disabled",t.disableRemoveButton)("matMenuTriggerFor",e),p.xp6(2),p.hij(" ",p.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function Ys(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw().removeTaskResults()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function Ms(t,e){1&t&&p._UZ(0,"mat-spinner",14)}function Fs(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-services-status-list",15),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)})("selectionChange",function(){return p.CHM(t),p.oxw().selectionChanged()}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("servicesStatus",t.servicesStates)("selection",t.selected)("disableRouting",!t.routeAuth)}}let qs=(()=>{class t{constructor(t,e,i,s,a,n,l,o,c,r){this.route=t,this.tasksManager=e,this.tableConfigService=i,this.servicesManager=s,this.notificator=a,this.translate=n,this.authResolver=l,this.facilityManager=o,this.resourcesManager=c,this.dialog=r,this.servicesStates=[],this.selected=new _t.Ov(!0,[]),this.filterValue="",this.tableId=yt.oK,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,n.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(t=>this.successFPMessage=t),n.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(t=>this.successAllowMessage=t),n.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(t=>this.successBlockMessage=t),n.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(t=>this.successDeleteMessage=t),n.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(t=>this.allreadyDeletedMessage=t)}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.facilityId=parseInt(t.facilityId,10),this.facility={id:this.facilityId,beanName:"Facility"},this.refreshTable()})}forcePropagation(){for(const t of this.selected.selected)this.servicesManager.forceServicePropagation(t.service.id,t.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successFPMessage)})}allow(){for(const t of this.selected.selected)this.servicesManager.unblockServiceOnFacility(t.service.id,t.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successAllowMessage)})}block(){for(const t of this.selected.selected)this.servicesManager.blockServiceOnFacility(t.service.id,t.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successBlockMessage)})}removeTaskResults(){this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe(t=>{const e=(0,r.kZ)();e.width="600px",e.data={theme:"facility-theme",taskResults:t},this.dialog.open(Pi,e)})}removeServiceFromFacility(){this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(t=>{const e=(0,r.kZ)();e.width="600px",this.taskId=this.taskIsNull?null:this.selected.selected[0].task.id,0===t.length?(e.data={theme:"facility-theme",taskId:this.taskId},this.dialog.open(ss,e).afterClosed().subscribe(t=>{t&&(this.disableRemoveButton=!0,this.refreshTable())})):this.resourcesManager.getRichResourcesByIds(t.map(t=>t.id)).subscribe(t=>{e.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:t},this.dialog.open(ts,e).afterClosed().subscribe(t=>{t&&(this.disableRemoveButton=!0,this.refreshTable())})})})}refreshTable(){this.loading=!0,this.tasksManager.getFacilityServicesState(this.facilityId).subscribe(t=>{this.servicesStates=t,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(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}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 t of this.selected.selected)t.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.gz),p.Y36(c.Ob),p.Y36(yt.dB),p.Y36(c.KK),p.Y36(u.V6),p.Y36(E.sK),p.Y36(u.x4),p.Y36(c.IQ),p.Y36(c.xk),p.Y36(g.uw))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor",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,"pageSize","filterValue","servicesStatus","selection","disableRouting","page","selectionChange",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","servicesStatus","selection","disableRouting","page","selectionChange"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.YNc(5,Rs,3,4,"button",2),p.YNc(6,Ns,3,4,"button",2),p.YNc(7,ws,3,4,"button",3),p.YNc(8,ks,4,9,"button",4),p.TgZ(9,"mat-menu",null,5),p.YNc(11,Ys,3,3,"button",6),p.TgZ(12,"button",7),p.NdJ("click",function(){return e.removeServiceFromFacility()}),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.qZA(),p.TgZ(15,"perun-web-apps-immediate-filter",8),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(16,Ms,1,0,"mat-spinner",9),p.YNc(17,Fs,1,5,"perun-web-apps-services-status-list",10),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),p.xp6(3),p.Q6J("ngIf",!e.loading&&e.propagationAuth),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.allowAuth),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.blockAuth),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.deleteAuth),p.xp6(3),p.Q6J("ngIf",!e.taskIsNull),p.xp6(2),p.Oqu(p.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")),p.xp6(2),p.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,s.O5,as.VK,as.OP,zt.L,b.lW,T.gM,as.p6,S.$g,Ds],pipes:[E.X$],styles:[""]}),t})();var Us=i(86593);function Js(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-refresh-button",6),p.NdJ("refresh",function(){return p.CHM(t),p.oxw().refreshTable()}),p.qZA()}}function Qs(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-immediate-filter",7),p.NdJ("filter",function(e){return p.CHM(t),p.oxw().applyFilter(e)}),p.qZA()}2&t&&p.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER")}function zs(t,e){1&t&&p._UZ(0,"mat-spinner",8)}function Hs(t,e){1&t&&(p.TgZ(0,"app-alert",9),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.ALLOWED_USERS.NO_USERS")," "))}const Vs=function(){return["id","name"]};function Bs(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-users-list",10),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("pageSize",t.pageSize)("users",t.users)("displayedColumns",p.DdM(5,Vs))("disableRouting",!t.routeAuth)("filter",t.filterValue)}}let Ps=(()=>{class t{constructor(t,e,i,s){this.route=t,this.facilityService=e,this.tableConfigService=i,this.authResolver=s,this.loading=!1,this.filterValue="",this.tableId=yt.z6}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.facilityId=t.facilityId,this.routeAuth=this.authResolver.isPerunAdminOrObserver(),this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityService.getAssignedUsers(this.facilityId).subscribe(t=>{this.users=t,this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.gz),p.Y36(c.IQ),p.Y36(yt.dB),p.Y36(u.x4))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-allowed-users"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"pageSize","users","displayedColumns","disableRouting","filter","page",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[3,"pageSize","users","displayedColumns","disableRouting","filter","page"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,Js,1,0,"perun-web-apps-refresh-button",1),p.YNc(5,Qs,1,1,"perun-web-apps-immediate-filter",2),p.YNc(6,zs,1,0,"mat-spinner",3),p.YNc(7,Hs,3,3,"app-alert",4),p.YNc(8,Bs,1,6,"app-users-list",5),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,6,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),p.xp6(2),p.Q6J("ngIf",!e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading&&(void 0===e.users||0===e.users.length)),p.xp6(1),p.Q6J("ngIf",!e.loading&&0!==e.users.length))},directives:[s.O5,Qt.t,zt.L,S.$g,Re.w,Us.C],pipes:[E.X$],styles:[""]}),t})();var Gs=i(95142);function $s(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",19),p.TgZ(1,"mat-checkbox",20),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function js(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",21),p.TgZ(1,"mat-checkbox",22),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function Ks(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")))}function Ws(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.id)}}function Xs(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")))}function ta(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.destination.destination)}}function ea(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")))}function ia(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.destination.type.toUpperCase())}}function sa(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")))}function aa(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.service.name)}}function na(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")))}function la(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.status)}}function oa(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")))}function ca(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.ALo(2,"date"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(p.xi3(2,1,t.timestamp,"d.M.y H:mm:ss"))}}function ra(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")))}function ua(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.returnCode)}}function da(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")))}function ha(t,e){if(1&t&&(p.TgZ(0,"span"),p._uU(1),p._UZ(2,"br"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t)}}function pa(t,e){if(1&t&&(p.TgZ(0,"td",21),p.YNc(1,ha,3,1,"span",24),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngForOf",t.standardMessage.split("\n"))}}function ga(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")))}function fa(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.errorMessage)}}function ma(t,e){1&t&&p._UZ(0,"tr",25)}function Sa(t,e){if(1&t&&p._UZ(0,"tr",26),2&t){const t=e.$implicit;p.ekj("greenTableItem","DONE"===t.status)("redTableItem","ERROR"===t.status||"DENIED"===t.status)("yellowTableItem","WARNING"===t.status)}}function Aa(t,e){1&t&&(p.TgZ(0,"app-alert",27),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ta(t,e){1&t&&(p.TgZ(0,"app-alert",27),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}let Ia=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.pageSizeOptions=r.f7,this.taskResults=[],this.selection=new _t.Ov(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.page=new p.vpe}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new ie.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"destination":return t.destination.destination;case"type":return t.destination.type;case"service":return t.service.name;case"status":return t.status;case"time":return(0,s.p6)(t.timestamp.toString(),"d.M.y H:mm:ss","en");case"returnCode":return t.returnCode.toString();case"standardMessage":return t.standardMessage;case"errorMessage":return t.errorMessage;default:return""}}getSortDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"destination":return t.destination.destination;case"type":return t.destination.type;case"service":return t.service.name;case"status":return t.status;case"time":return(0,s.p6)(t.timestamp.toString(),"yyyy.MM.dd HH:mm:ss","en");case"returnCode":return t.returnCode.toString();case"standardMessage":return t.standardMessage;case"errorMessage":return t.errorMessage;default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getSortDataForColumn,this))}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(u.x4),p.Y36(u.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(xe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[p.TTD],decls:37,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,$s,2,3,"th",4),p.YNc(5,js,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,Ks,3,3,"th",7),p.YNc(8,Ws,2,1,"td",5),p.BQk(),p.ynx(9,8),p.YNc(10,Xs,3,3,"th",7),p.YNc(11,ta,2,1,"td",5),p.BQk(),p.ynx(12,9),p.YNc(13,ea,3,3,"th",7),p.YNc(14,ia,2,1,"td",5),p.BQk(),p.ynx(15,10),p.YNc(16,sa,3,3,"th",7),p.YNc(17,aa,2,1,"td",5),p.BQk(),p.ynx(18,11),p.YNc(19,na,3,3,"th",7),p.YNc(20,la,2,1,"td",5),p.BQk(),p.ynx(21,12),p.YNc(22,oa,3,3,"th",7),p.YNc(23,ca,3,4,"td",5),p.BQk(),p.ynx(24,13),p.YNc(25,ra,3,3,"th",7),p.YNc(26,ua,2,1,"td",5),p.BQk(),p.ynx(27,14),p.YNc(28,da,3,3,"th",7),p.YNc(29,pa,2,1,"td",5),p.BQk(),p.ynx(30,15),p.YNc(31,ga,3,3,"th",7),p.YNc(32,fa,2,1,"td",5),p.BQk(),p.YNc(33,ma,1,0,"tr",16),p.YNc(34,Sa,1,6,"tr",17),p.qZA(),p.qZA(),p.qZA(),p.YNc(35,Aa,3,3,"app-alert",18),p.YNc(36,Ta,3,3,"app-alert",18)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.taskResults.length),p.xp6(1),p.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(31),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.taskResults.length),p.xp6(1),p.Q6J("ngIf",0===e.taskResults.length))},directives:[Oe.l,ie.BZ,xe.YE,ie.w1,ie.fO,ie.Dz,ie.as,ie.nj,s.O5,ie.ge,nt.oG,ie.ev,xe.nU,s.sg,ie.XQ,ie.Gk,Re.w],pipes:[E.X$,s.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),t})();function ba(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",8),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).removeTaskResult()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("disabled",0===t.selection.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE")," ")}}function Ea(t,e){1&t&&p._UZ(0,"mat-spinner",9)}function Ca(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-task-results-list",10),p.NdJ("page",function(e){return p.CHM(t),p.oxw(2).pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("pageSize",t.pageSize)("selection",t.selection)("taskResults",t.taskResults)}}function Za(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div"),p.TgZ(1,"h1",1),p._uU(2),p.ALo(3,"translate"),p.TgZ(4,"span",2),p._uU(5),p.qZA(),p.qZA(),p.TgZ(6,"perun-web-apps-refresh-button",3),p.NdJ("refresh",function(){return p.CHM(t),p.oxw().refreshTable()}),p.qZA(),p.YNc(7,ba,3,4,"button",4),p.TgZ(8,"perun-web-apps-immediate-filter",5),p.NdJ("filter",function(e){return p.CHM(t),p.oxw().applyFilter(e)}),p.qZA(),p.YNc(9,Ea,1,0,"mat-spinner",6),p.YNc(10,Ca,1,5,"perun-web-apps-task-results-list",7),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.AsE("",p.lcZ(3,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",t.task.service.name," "),p.xp6(3),p.hij(" \xa0#",t.task.id," "),p.xp6(2),p.Q6J("ngIf",!t.loading&&t.removeAuth),p.xp6(1),p.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),p.xp6(1),p.Q6J("ngIf",t.loading),p.xp6(1),p.Q6J("ngIf",!t.loading)}}let ya=(()=>{class t{constructor(t,e,i,s,a){this.route=t,this.tableConfigService=e,this.taskManager=i,this.authResolver=s,this.dialog=a,this.loading=!1,this.filterValue="",this.selection=new _t.Ov(!0,[]),this.tableId=yt.e5,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.facility={id:parseInt(t.facilityId,10),beanName:"Facility"},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(t=>{this.taskId=t.taskId,this.taskManager.getTaskById(this.taskId).subscribe(t=>{this.task=t,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(t=>{this.selection.clear(),this.taskResults=t,this.loading=!1})}removeTaskResult(){const t=(0,r.kZ)();t.width="600px",t.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(Pi,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.gz),p.Y36(yt.dB),p.Y36(c.Ob),p.Y36(u.x4),p.Y36(g.uw))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-task-results"]],decls:1,vars:1,consts:[[4,"ngIf"],[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,"displayedColumns","filterValue","pageSize","selection","taskResults","page",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","pageSize","selection","taskResults","page"]],template:function(t,e){1&t&&p.YNc(0,Za,11,9,"div",0),2&t&&p.Q6J("ngIf",!e.loading)},directives:[s.O5,Qt.t,zt.L,b.lW,S.$g,Ia],pipes:[E.X$],styles:[""]}),t})();var _a=i(53134);const La=[{path:"",component:n.P},{path:":facilityId",component:x,children:[{path:"",component:N,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:j,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:w.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:Ps,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:k.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:qs,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:ya,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:bt,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:Kt,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:$e,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:Ai,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:F,children:[{path:"",component:J,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:me,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:Zt,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:wi,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:di,data:{animation:"FacilitySettingsBlackListPage"}}]}]},{path:":facilityId/resources/:resourceId",component:Y.b,children:[{path:"",component:M.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:X.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:tt.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:Yi.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:Gs.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:_a.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:K.t,children:[{path:"",component:W.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:ki.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let va=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=p.oAB({type:t}),t.\u0275inj=p.cJS({imports:[[a.Bz.forChild(La)],a.Bz]}),t})();var xa=i(28780),Oa=i(22727),Da=i(6363);let Ra=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=p.oAB({type:t}),t.\u0275inj=p.cJS({providers:[at.dp],imports:[[s.ez,va,xa.m,Oa.r,hi.ez,at.d4,Da.UsersModule]]}),t})()}}]); \ No newline at end of file +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[300],{55300:function(t,e,i){"use strict";i.r(e),i.d(e,{FacilitiesModule:function(){return Da}});var s=i(61511),a=i(57629),n=i(73916),l=i(17),o=i(75585),c=i(33642),r=i(84140),u=i(88426),d=i(61189),h=i(30570),p=i(31572),g=i(84608),f=i(48958),m=i(66297),S=i(67806),A=i(43691),T=i(36922),I=i(21575),b=i(15980),E=i(48160);function C(t,e){1&t&&p._UZ(0,"mat-spinner",3)}function Z(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).editFacility()}),p.TgZ(1,"mat-icon"),p._uU(2,"edit"),p.qZA(),p.qZA()}}function y(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).deleteFacility()}),p.TgZ(1,"mat-icon"),p._uU(2,"delete_forever"),p.qZA(),p.qZA()}}const _=function(){return{color:"black"}},L=function(t){return["/facilities",t]};function v(t,e){if(1&t&&(p.TgZ(0,"div"),p.TgZ(1,"div",4),p._UZ(2,"mat-icon",5),p.ALo(3,"translate"),p.TgZ(4,"div",6),p.TgZ(5,"div",7),p.TgZ(6,"a",8),p._uU(7),p.qZA(),p.TgZ(8,"span",9),p._uU(9),p.qZA(),p.YNc(10,Z,3,0,"button",10),p.YNc(11,y,3,0,"button",10),p.qZA(),p.TgZ(12,"span",11),p._uU(13),p.ALo(14,"translate"),p.ALo(15,"translate"),p.qZA(),p.qZA(),p.qZA(),p._UZ(16,"app-animated-router-outlet"),p.qZA()),2&t){const t=p.oxw();p.xp6(2),p.s9C("matTooltip",p.lcZ(3,10,"FACILITY_DETAIL.ENTITY")),p.Q6J("ngStyle",p.DdM(16,_)),p.xp6(4),p.Q6J("routerLink",p.VKq(17,L,t.facility.id)),p.xp6(1),p.Oqu(t.facility.name),p.xp6(2),p.hij(" \xa0#",t.facility.id," "),p.xp6(1),p.Q6J("ngIf",t.editFacilityAuth),p.xp6(1),p.Q6J("ngIf",t.deleteAuth),p.xp6(2),p.lnq(" ",p.lcZ(14,12,"FACILITY_DETAIL.ENTITY"),", ",p.lcZ(15,14,"FACILITY_DETAIL.DESCRIPTION"),": ",t.facility.description," ")}}let x=(()=>{class t{constructor(t,e,i,s,a,n,l){this.dialog=t,this.facilityManager=e,this.route=i,this.sideMenuService=s,this.sideMenuItemService=a,this.guiAuthResolver=n,this.router=l,this.editFacilityAuth=!1,this.deleteAuth=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.facilityManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t;const e=this.sideMenuItemService.parseFacility(t);this.sideMenuService.setFacilityMenuItems([e]),this.editFacilityAuth=this.guiAuthResolver.isAuthorized("updateFacility_Facility_policy",[this.facility]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteFacility_Facility_Boolean_policy",[this.facility]),(0,r.sF)("facilities",this.facility),(0,r.XI)(this.facility),this.loading=!1},()=>this.loading=!1)})}editFacility(){const t=(0,r.kZ)();t.width="450px",t.data={theme:"facility-theme",facility:this.facility,dialogType:d.Eg.FACILITY},this.dialog.open(d.rd,t).afterClosed().subscribe(t=>{t&&this.facilityManager.getFacilityById(this.facility.id).subscribe(t=>{this.facility=t})})}deleteFacility(){const t=(0,r.kZ)();t.width="500px",t.data={theme:"facility-theme",facility:this.facility},this.dialog.open(h.Y,t).afterClosed().subscribe(t=>{t&&this.router.navigate([""])})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.IQ),p.Y36(a.gz),p.Y36(f.D),p.Y36(o.V),p.Y36(u.x4),p.Y36(a.F0))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-detail-page"]],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(t,e){1&t&&(p.TgZ(0,"div",0),p._UZ(1,"perun-web-apps-back-button"),p.YNc(2,C,1,0,"mat-spinner",1),p.YNc(3,v,17,19,"div",2),p.qZA()),2&t&&(p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading&&void 0!==e.facility))},directives:[m.W,s.O5,S.$g,A.Hw,T.gM,s.PC,a.yS,I.A,b.lW],pipes:[E.X$],styles:[""],data:{animation:[l.Ji]}}),t})();var O=i(8557);function D(t,e){1&t&&p._UZ(0,"mat-spinner",2)}function R(t,e){if(1&t&&(p.TgZ(0,"div"),p._UZ(1,"perun-web-apps-menu-buttons-field",3),p.qZA()),2&t){const t=p.oxw();p.xp6(1),p.Q6J("items",t.navItems)("size","small")}}let N=(()=>{class t{constructor(t,e,i){this.facilityManager=t,this.route=e,this.authResolver=i,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.facilityManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t,this.initItems(),this.loading=!1},()=>this.loading=!1)})}initItems(){this.navItems=[],this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[this.facility])&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/facilities/${this.facility.id}/resources`,label:"MENU_ITEMS.FACILITY.RESOURCES",style:"facility-btn"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[this.facility])&&this.navItems.push({cssIcon:"perun-user",url:`/facilities/${this.facility.id}/allowed-users`,label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",style:"facility-btn"}),this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[this.facility])&&this.navItems.push({cssIcon:"perun-group",url:`/facilities/${this.facility.id}/allowed-groups`,label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",style:"facility-btn"}),this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[this.facility])&&this.navItems.push({cssIcon:"perun-service-status",url:`/facilities/${this.facility.id}/services-status`,label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",style:"facility-btn"}),this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[this.facility])&&this.navItems.push({cssIcon:"perun-service_destination",url:`/facilities/${this.facility.id}/services-destinations`,label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",style:"facility-btn"}),this.authResolver.isFacilityAdmin()&&this.navItems.push({cssIcon:"perun-hosts",url:`/facilities/${this.facility.id}/hosts`,label:"MENU_ITEMS.FACILITY.HOSTS",style:"facility-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`/facilities/${this.facility.id}/attributes`,label:"MENU_ITEMS.FACILITY.ATTRIBUTES",style:"facility-btn"}),(this.authResolver.isAuthorized("getBansForFacility_int_policy",[this.facility])||this.authResolver.isManagerPagePrivileged(this.facility)||this.authResolver.isAuthorized("getOwners_Facility_policy",[this.facility])||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[this.facility]))&&this.navItems.push({cssIcon:"perun-settings2",url:`/facilities/${this.facility.id}/settings`,label:"MENU_ITEMS.FACILITY.SETTINGS",style:"facility-btn"})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(a.gz),p.Y36(u.x4))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.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(t,e){1&t&&(p.YNc(0,D,1,0,"mat-spinner",0),p.YNc(1,R,2,2,"div",1)),2&t&&(p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[s.O5,S.$g,O.L],styles:[""]}),t})();var w=i(64467),k=i(39124),Y=i(72920),M=i(76527);let F=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&p._UZ(0,"app-animated-router-outlet")},directives:[I.A],styles:[""],data:{animation:[l.Ji]}}),t})();function q(t,e){1&t&&p._UZ(0,"mat-spinner",2)}function U(t,e){if(1&t&&(p.TgZ(0,"div"),p._UZ(1,"perun-web-apps-menu-buttons-field",3),p.qZA()),2&t){const t=p.oxw();p.xp6(1),p.Q6J("items",t.items)("size","small")}}let J=(()=>{class t{constructor(t,e,i){this.route=t,this.facilityManager=e,this.authResolver=i,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.facilityManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t,this.initItems(),this.loading=!1},()=>this.loading=!1)})}initItems(){this.items=[],this.authResolver.isAuthorized("getOwners_Facility_policy",[this.facility])&&this.items.push({cssIcon:"perun-owner-grey",url:`/facilities/${this.facility.id}/settings/owners`,label:"MENU_ITEMS.FACILITY.OWNERS",style:"facility-btn"}),this.authResolver.isManagerPagePrivileged(this.facility)&&this.items.push({cssIcon:"perun-manager",url:`/facilities/${this.facility.id}/settings/managers`,label:"MENU_ITEMS.FACILITY.MANAGERS",style:"facility-btn"}),this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[this.facility])&&this.items.push({cssIcon:"perun-security-teams",url:`/facilities/${this.facility.id}/settings/security-teams`,label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",style:"facility-btn"}),this.authResolver.isAuthorized("getBansForFacility_int_policy",[this.facility])&&this.items.push({cssIcon:"perun-black-list",url:`/facilities/${this.facility.id}/settings/blacklist`,label:"MENU_ITEMS.FACILITY.BLACKLIST",style:"facility-btn"})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.gz),p.Y36(c.IQ),p.Y36(u.x4))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.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(t,e){1&t&&(p.YNc(0,q,1,0,"mat-spinner",0),p.YNc(1,U,2,2,"div",1)),2&t&&(p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[s.O5,S.$g,O.L],styles:[""]}),t})();var Q=i(55109),z=i(541),H=i(69012);function V(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.hij(" ",p.lcZ(1,1,"FACILITY_DETAIL.ENTITY")," ")}function B(t,e){if(1&t&&p._UZ(0,"app-one-entity-attribute-page",4),2&t){const t=p.oxw();p.Q6J("entity","facility")("entityId",t.facilityId)}}function P(t,e){1&t&&(p._uU(0),p.ALo(1,"translate"),p.ALo(2,"translate")),2&t&&p.AsE(" ",p.lcZ(1,2,"FACILITY_DETAIL.ENTITY")," - ",p.lcZ(2,4,"ADMIN_USER.ENTITY")," ")}function G(t,e){if(1&t&&p._UZ(0,"app-two-entity-attribute-page",5),2&t){const t=p.oxw(2);p.Q6J("firstEntity","facility")("firstEntityId",t.facilityId)("secondEntity","user")}}function $(t,e){1&t&&(p.TgZ(0,"mat-tab"),p.YNc(1,P,3,6,"ng-template",1),p.YNc(2,G,1,3,"ng-template",2),p.qZA())}let j=(()=>{class t{constructor(t,e){this.route=t,this.authResolver=e}ngOnInit(){this.route.parent.params.subscribe(t=>{this.facilityId=t.facilityId,this.facilityUserAttAuth=this.authResolver.isAuthorized("getAssignedUsers_Facility_policy",[{id:this.facilityId,beanName:"Facility"}])})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.gz),p.Y36(u.x4))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:9,vars:4,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-tab-group"),p.TgZ(5,"mat-tab"),p.YNc(6,V,2,3,"ng-template",1),p.YNc(7,B,1,2,"ng-template",2),p.qZA(),p.YNc(8,$,3,0,"mat-tab",3),p.qZA(),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,2,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),p.xp6(6),p.Q6J("ngIf",e.facilityUserAttAuth))},directives:[Q.SP,Q.uX,Q.uD,Q.Vc,s.O5,z.t,H.Y],pipes:[E.X$],styles:[""]}),t})();var K=i(77968),W=i(22927),X=i(79472),tt=i(42473),et=i(16073),it=i(56238),st=i(79996),at=i(22280),nt=i(29236),lt=i(66283),ot=i(80340),ct=i(40084),rt=i(71522),ut=i(22196);function dt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-option",10),p.NdJ("onSelectionChange",function(){const e=p.CHM(t).$implicit;return p.oxw(3).onSelectedService(e)}),p._uU(1),p.qZA()}if(2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t.name," ")}}function ht(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-form-field",6),p.TgZ(1,"input",7),p.NdJ("keyup",function(e){return p.CHM(t),p.oxw(2).updatedSerVal(e)}),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"mat-autocomplete",8,9),p.TgZ(5,"mat-option",10),p.NdJ("onSelectionChange",function(){return p.CHM(t),p.oxw(2).onSelectedService("NOT_SELECTED")}),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"mat-option",10),p.NdJ("onSelectionChange",function(){return p.CHM(t),p.oxw(2).onSelectedService("ALL")}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.YNc(11,dt,2,2,"mat-option",11),p.ALo(12,"async"),p.qZA(),p.qZA()}if(2&t){const t=p.MAs(4),e=p.oxw(2);p.xp6(1),p.s9C("placeholder",p.lcZ(2,9,"FACILITY_DETAIL.SERVICE_CONFIG.SERVICE_SELECT")),p.Q6J("formControl",e.serviceField)("matAutocomplete",t),p.xp6(2),p.Q6J("displayWith",e.serviceDisplayFn.bind(e)),p.xp6(2),p.Q6J("value","NOT_SELECTED"),p.xp6(1),p.hij(" ",p.lcZ(7,11,"FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED")," "),p.xp6(2),p.Q6J("value","ALL"),p.xp6(1),p.hij(" ",p.lcZ(10,13,"FACILITY_DETAIL.SERVICE_CONFIG.ALL")," "),p.xp6(2),p.Q6J("ngForOf",p.lcZ(12,15,e.filteredServices))}}function pt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-option",10),p.NdJ("onSelectionChange",function(){const e=p.CHM(t).$implicit;return p.oxw(3).onSelectedResource(e)}),p._uU(1),p.qZA()}if(2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t.name," ")}}function gt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-form-field",6),p.TgZ(1,"input",12),p.NdJ("keyup",function(e){return p.CHM(t),p.oxw(2).updatedResVal(e)}),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"mat-autocomplete",8,9),p.YNc(5,pt,2,2,"mat-option",11),p.ALo(6,"async"),p.qZA(),p.qZA()}if(2&t){const t=p.MAs(4),e=p.oxw(2);p.xp6(1),p.s9C("placeholder",p.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.RES_SELECT")),p.Q6J("matAutocomplete",t)("formControl",e.resourceField),p.xp6(2),p.Q6J("displayWith",e.resourceDisplayFn.bind(e)),p.xp6(2),p.Q6J("ngForOf",p.lcZ(6,7,e.filteredResources))}}function ft(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-option",10),p.NdJ("onSelectionChange",function(){const e=p.CHM(t).$implicit;return p.oxw(3).onSelectedGroup(e)}),p._uU(1),p.qZA()}if(2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t.name," ")}}function mt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-form-field",6),p.TgZ(1,"input",12),p.NdJ("keyup",function(e){return p.CHM(t),p.oxw(2).updatedGroupVal(e)}),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"mat-autocomplete",13,9),p.YNc(5,ft,2,2,"mat-option",11),p.ALo(6,"async"),p.qZA(),p.qZA()}if(2&t){const t=p.MAs(4),e=p.oxw(2);p.xp6(1),p.s9C("placeholder",p.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.GROUP_SELECT")),p.Q6J("matAutocomplete",t)("formControl",e.groupField),p.xp6(2),p.Q6J("displayWith",e.groupDisplayFn.bind(e)),p.xp6(2),p.Q6J("ngForOf",p.lcZ(6,7,e.filteredGroups))}}function St(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-option",10),p.NdJ("onSelectionChange",function(){const e=p.CHM(t).$implicit;return p.oxw(3).onSelectedMember(e)}),p._uU(1),p.ALo(2,"userFullName"),p.qZA()}if(2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",p.lcZ(2,2,t.user)," ")}}function At(t,e){if(1&t&&(p.TgZ(0,"mat-form-field",6),p._UZ(1,"input",14),p.ALo(2,"translate"),p.TgZ(3,"mat-autocomplete",8,9),p.YNc(5,St,3,4,"mat-option",11),p.ALo(6,"async"),p.qZA(),p.qZA()),2&t){const t=p.MAs(4),e=p.oxw(2);p.xp6(1),p.s9C("placeholder",p.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.MEMBER_SELECT")),p.Q6J("formControl",e.memberField)("matAutocomplete",t),p.xp6(2),p.Q6J("displayWith",e.memberDisplayFn.bind(e)),p.xp6(2),p.Q6J("ngForOf",p.lcZ(6,7,e.filteredMembers))}}function Tt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",3),p.YNc(1,ht,13,17,"mat-form-field",4),p.TgZ(2,"mat-checkbox",5),p.NdJ("change",function(e){return p.CHM(t),p.oxw().onOfferAllServices(e)}),p._uU(3),p.ALo(4,"translate"),p.qZA(),p.YNc(5,gt,7,9,"mat-form-field",4),p.YNc(6,mt,7,9,"mat-form-field",4),p.YNc(7,At,7,9,"mat-form-field",4),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("ngIf",void 0!==t.services),p.xp6(2),p.hij(" ",p.lcZ(4,5,"FACILITY_DETAIL.SERVICE_CONFIG.ALL_SERVICES")," "),p.xp6(2),p.Q6J("ngIf",void 0!==t.resources&&0!==t.resources.length),p.xp6(1),p.Q6J("ngIf",void 0!==t.selectedResource&&void 0!==t.groups&&0!==t.groups.length),p.xp6(1),p.Q6J("ngIf",void 0!==t.selectedGroup&&void 0!==t.members&&0!==t.members.length)}}function It(t,e){if(1&t&&p._UZ(0,"perun-web-apps-service-configurator",15),2&t){const t=p.oxw();p.Q6J("facility",t.facility)("resource",t.selectedResource)("group",t.selectedGroup)("service",t.selectedService)("member",t.selectedMember)}}let bt=(()=>{class t{constructor(t,e,i,s,a,n,l){this.route=t,this.facilityManager=e,this.resourceManager=i,this.serviceManager=s,this.membersManager=a,this.namePipe=n,this.translate=l,this.selectedService="NOT_SELECTED",this.attrNames=[],this.serviceField=new et.NI,this.resourceField=new et.NI,this.groupField=new et.NI,this.memberField=new et.NI,this.allowedStatuses=["INVALID","VALID"],this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.ALL").subscribe(t=>this.serviceAllTranslation=t),this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED").subscribe(t=>this.serviceNotSelectedTranslation=t)}ngOnInit(){this.route.parent.params.subscribe(t=>{this.facilityManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t,this.facilityManager.getAssignedResourcesForFacility(t.id).subscribe(t=>this.resources=t),this.serviceManager.getAssignedServices(t.id).subscribe(t=>this.services=t)})}),this.filteredServices=this.serviceField.valueChanges.pipe((0,it.O)(""),(0,st.U)(t=>this._filterServices(t))),this.filteredResources=this.resourceField.valueChanges.pipe((0,it.O)(""),(0,st.U)(t=>this._filterResources(t))),this.filteredGroups=this.groupField.valueChanges.pipe((0,it.O)(""),(0,st.U)(t=>this._filterGroups(t))),this.filteredMembers=this.memberField.valueChanges.pipe((0,it.O)(""),(0,st.U)(t=>this._filterMembers(t)))}onSelectedService(t){this.selectedService=t}onSelectedResource(t){this.selectedResource=t,void 0!==this.selectedResource?(this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(t=>this.groups=t),this.selectedGroup=void 0,this.selectedMember=void 0):this.groups=void 0}onOfferAllServices(t){t.checked||this.serviceManager.getAssignedServices(this.facility.id).subscribe(t=>this.services=t)}onSelectedGroup(t){this.selectedGroup=t,void 0!==this.selectedGroup?(this.membersManager.getCompleteRichMembersForGroup(this.selectedGroup.id,!1,this.allowedStatuses,this.attrNames).subscribe(t=>this.members=t),this.selectedMember=void 0):this.members=void 0}onSelectedMember(t){this.selectedMember=t}_filterServices(t){const e=t.toString().toLowerCase();return this.services.filter(t=>t.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e))}_filterResources(t){const e=t.toString().toLowerCase();return this.resources.filter(t=>t.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e))}_filterGroups(t){const e=t.toString().toLowerCase();return this.groups.filter(t=>t.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e))}_filterMembers(t){const e=t.toString().toLowerCase();return this.members.filter(t=>this.namePipe.transform(t.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e))}serviceDisplayFn(t){if(null!==t)return"ALL"===t?this.serviceAllTranslation:"NOT_SELECTED"===t?this.serviceNotSelectedTranslation:t.name}resourceDisplayFn(t){if(null!==t)return t.name}groupDisplayFn(t){if(null!==t)return t.name}memberDisplayFn(t){if(null!==t)return this.namePipe.transform(t.user)}updatedSerVal(t){""===t.target.value&&(this.selectedService="NOT_SELECTED")}updatedResVal(t){""===t.target.value&&(this.groups=void 0,this.members=void 0)}updatedGroupVal(t){""===t.target.value&&(this.members=void 0)}updatedMemVal(t){}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.gz),p.Y36(c.IQ),p.Y36(c.xk),p.Y36(c.KK),p.Y36(c.uq),p.Y36(at.dp),p.Y36(E.sK))},t.\u0275cmp=p.Xpm({type:t,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","service","member",4,"ngIf"],[1,"col-12","col-lg-6","mb-2"],["class","w-100",4,"ngIf"],[3,"change"],[1,"w-100"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete","keyup"],["autoActiveFirstOption","",3,"displayWith"],["auto","matAutocomplete"],[3,"value","onSelectionChange"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],["type","text","matInput","",3,"placeholder","matAutocomplete","formControl","keyup"],["autoActiveFirstOption","",3,"ngClass","displayWith"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete"],[3,"facility","resource","group","service","member"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,Tt,8,7,"div",1),p.YNc(5,It,1,5,"perun-web-apps-service-configurator",2),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,3,"FACILITY_DETAIL.SERVICE_CONFIG.TITLE")),p.xp6(2),p.Q6J("ngIf",!!e.facility),p.xp6(1),p.Q6J("ngIf",!!e.facility))},directives:[s.O5,nt.oG,lt.KE,ot.Nt,et.Fj,ct.ZL,et.JJ,et.oH,ct.XC,rt.ey,s.sg,s.mk],pipes:[E.X$,s.Ov,ut.d],styles:[""]}),t})();var Et=i(489);function Ct(t,e){if(1&t&&p._UZ(0,"app-managers-page",1),2&t){const t=p.oxw();p.Q6J("complementaryObject",t.facility)("complementaryObjectType",t.type)("theme",t.theme)("availableRoles",t.availableRoles)}}let Zt=(()=>{class t{constructor(t,e,i){this.facilityService=t,this.route=e,this.guiAuthResolver=i,this.availableRoles=[],this.selected="user",this.type="Facility",this.theme="facility-theme"}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.facilityService.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility")}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(a.gz),p.Y36(u.x4))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-perun-web-apps-facility-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&p.YNc(0,Ct,1,4,"app-managers-page",0),2&t&&p.Q6J("ngIf",e.facility)},directives:[s.O5,Et.s],styles:[""]}),t})();var yt=i(60611),_t=i(4230),Lt=i(60547),vt=i(4786);function xt(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function Ot(t,e){1&t&&(p.TgZ(0,"mat-option",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.SELECTION_ALL")))}function Dt(t,e){1&t&&(p.TgZ(0,"mat-option",20),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.NO_SERVICE")))}function Rt(t,e){if(1&t&&(p.TgZ(0,"mat-option",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t.name," ")}}function Nt(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.CHOOSE_SERVICE")," "))}function wt(t,e){if(1&t&&(p.TgZ(0,"mat-option",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit,i=p.oxw(2);p.Q6J("value",t),p.xp6(1),p.hij(" ",i.getTypeForView(t)," ")}}function kt(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.REQUIRED_FIELD")," "))}function Yt(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.INVALID_DESTINATION")," "))}function Mt(t,e){if(1&t&&(p.TgZ(0,"mat-form-field",22),p._UZ(1,"input",23),p.YNc(2,kt,3,3,"mat-error",13),p.YNc(3,Yt,3,3,"mat-error",13),p.qZA()),2&t){const t=p.oxw(2);p.xp6(1),p.s9C("placeholder",t.getTypeForView(t.selectedType)),p.Q6J("formControl",t.destinationControl),p.xp6(1),p.Q6J("ngIf","host"===t.selectedType&&!t.useFacilityHost&&t.destinationControl.hasError("required")),p.xp6(1),p.Q6J("ngIf",t.destinationControl.hasError("invalidDestination"))}}function Ft(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-checkbox",24),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw(2).useFacilityHost=e}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("ngModel",t.useFacilityHost),p.xp6(1),p.hij(" ",p.lcZ(2,2,"DIALOGS.ADD_SERVICE_DESTINATION.USE_FACILITY_HOST")," ")}}function qt(t,e){if(1&t&&(p.TgZ(0,"mat-option",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t," ")}}function Ut(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",7),p.TgZ(1,"div",8),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-form-field"),p.TgZ(5,"mat-select",9),p.ALo(6,"translate"),p.YNc(7,Ot,3,3,"mat-option",10),p.YNc(8,Dt,3,3,"mat-option",11),p.YNc(9,Rt,2,2,"mat-option",12),p.qZA(),p.YNc(10,Nt,3,3,"mat-error",13),p.qZA(),p.TgZ(11,"mat-checkbox",14),p.NdJ("change",function(){return p.CHM(t),p.oxw().getServices()})("ngModelChange",function(e){return p.CHM(t),p.oxw().servicesOnFacility=e}),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.TgZ(14,"mat-form-field"),p.TgZ(15,"mat-select",15),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw().selectedType=e})("selectionChange",function(){return p.CHM(t),p.oxw().destinationControl.updateValueAndValidity()}),p.ALo(16,"translate"),p.YNc(17,wt,2,2,"mat-option",12),p.qZA(),p.qZA(),p.YNc(18,Mt,4,4,"mat-form-field",16),p.YNc(19,Ft,3,4,"mat-checkbox",17),p.TgZ(20,"mat-form-field"),p.TgZ(21,"mat-select",18),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw().selectedPropagation=e}),p.ALo(22,"translate"),p.YNc(23,qt,2,2,"mat-option",12),p.qZA(),p.qZA(),p.TgZ(24,"div",8),p._uU(25),p.ALo(26,"translate"),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,18,"DIALOGS.ADD_SERVICE_DESTINATION.DESCRIPTION")),p.xp6(3),p.s9C("placeholder",p.lcZ(6,20,"DIALOGS.ADD_SERVICE_DESTINATION.SERVICE")),p.Q6J("formControl",t.serviceControl),p.xp6(2),p.Q6J("ngIf",0!==t.services.length),p.xp6(1),p.Q6J("ngIf",0===t.services.length),p.xp6(1),p.Q6J("ngForOf",t.services),p.xp6(1),p.Q6J("ngIf",void 0===t.serviceControl.value),p.xp6(1),p.Q6J("ngModel",t.servicesOnFacility),p.xp6(1),p.Oqu(p.lcZ(13,22,"DIALOGS.ADD_SERVICE_DESTINATION.IS_SERVICES_ONLY_ON_FACILITY")),p.xp6(3),p.s9C("placeholder",p.lcZ(16,24,"DIALOGS.ADD_SERVICE_DESTINATION.TYPE")),p.Q6J("ngModel",t.selectedType),p.xp6(2),p.Q6J("ngForOf",t.types),p.xp6(1),p.Q6J("ngIf",!("host"===t.selectedType&&t.useFacilityHost)),p.xp6(1),p.Q6J("ngIf","host"===t.selectedType),p.xp6(2),p.s9C("placeholder",p.lcZ(22,26,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION")),p.Q6J("ngModel",t.selectedPropagation),p.xp6(2),p.Q6J("ngForOf",t.propagations),p.xp6(2),p.hij(" ",p.lcZ(26,28,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION_TYPE_"+t.selectedPropagation)," ")}}let Jt=(()=>{class t{constructor(t,e,i,s){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.servicesManager=s,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(/^(([^<>()[\]\\.,;:\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]{2,}))$/),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.loading=!0,this.serviceControl=new et.NI(void 0,et.kI.required),this.destinationControl=new et.NI("",this.getDestinationValidator()),this.emailControl=new et.NI("",[et.kI.required,et.kI.pattern(this.emailRegex)]),this.facilitiesManager.getHosts(this.data.facility.id).subscribe(t=>{this.hosts=t,this.servicesOnFacility=!0,this.getServices(),this.loading=!1},()=>this.loading=!1)}getDestinationValidator(){return t=>{if(!t.value)return null;let e;switch(this.selectedType){case"host":case"host-windows-proxy":e=this.hostPattern;break;case"email":case"semail":e=this.emailRegex;break;case"url":e=this.urlPattern;break;case"user@host":case"user@host-windows":e=this.userAtHostPattern;break;case"user@host:port":e=this.userAtHostPortPattern;break;case"service-specific":e=this.serviceSpecificPattern;break;default:return null}return e.test(t.value)?null:{invalidDestination:{value:t.value}}}}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?this.servicesManager.getAssignedServices(this.data.facility.id).subscribe(t=>{this.services=t},()=>this.loading=!1):this.servicesManager.getServices().subscribe(t=>{this.services=t},()=>this.loading=!1),this.loading=!1,this.serviceControl.setValue(void 0)}getTypeForView(t){return"semail"===t?"Send Mail":"service-specific"===t?"Service Specific":t}invalidDestination(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.IQ),p.Y36(c.KK))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-perun-web-apps-add-services-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",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(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,xt,1,0,"mat-spinner",1),p.YNc(5,Ut,27,30,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.onSubmit()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.Tol(e.data.theme),p.xp6(2),p.Oqu(p.lcZ(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading||e.invalidDestination()||e.serviceControl.invalid||"noService"===e.serviceControl.value),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},directives:[g.uh,s.O5,g.H8,b.lW,S.$g,g.xY,lt.KE,vt.gD,et.Q7,et.JJ,et.oH,s.sg,nt.oG,et.On,rt.ey,lt.TO,ot.Nt,et.Fj],pipes:[E.X$],styles:[""],data:{animation:[l.BQ]}}),t})();var Qt=i(59403),zt=i(19139),Ht=i(94357);function Vt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",8),p.NdJ("click",function(){return p.CHM(t),p.oxw().addDestination()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function Bt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",9),p.NdJ("click",function(){return p.CHM(t),p.oxw().removeDestination()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function Pt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",10),p.NdJ("click",function(){return p.CHM(t),p.oxw().onAllow()}),p.TgZ(1,"mat-icon"),p._uU(2," check_circle_outline "),p.qZA(),p._uU(3),p.ALo(4,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length||t.allSelectedAllowed()),p.xp6(3),p.hij(" ",p.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function Gt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",10),p.NdJ("click",function(){return p.CHM(t),p.oxw().onBlock()}),p.TgZ(1,"mat-icon"),p._uU(2," block "),p.qZA(),p._uU(3),p.ALo(4,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length||t.allSelectedBlocked()),p.xp6(3),p.hij(" ",p.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function $t(t,e){1&t&&p._UZ(0,"mat-spinner",11)}function jt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-perun-web-apps-destination-list",12),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("destinations",t.destinations)("selection",t.selected)("displayedColumns",t.displayedColumns)}}let Kt=(()=>{class t{constructor(t,e,i,s,a,n,l,o,c){this.dialog=t,this.facilitiesManager=e,this.servicesManager=i,this.tableConfigService=s,this.translate=a,this.notificator=n,this.route=l,this.authResolver=o,this.serviceManager=c,this.selected=new _t.Ov(!0,[]),this.displayedColumns=["select","destinationId","service","destination","type","propagationType"],this.filterValue="",this.tableId=yt.Cf}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(t=>{this.facilitiesManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t,this.refreshTable()})})}refreshTable(){this.loading=!0,this.servicesManager.getAllRichDestinationsForFacility(this.facility.id).subscribe(t=>{this.destinations=t,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?["select","destinationId","service","destination","type","status","propagationType"]:["destinationId","service","destination","type","status","propagationType"]}addDestination(){const t=(0,r.kZ)();t.width="600px",t.data={facility:this.facility,theme:"facility-theme"},this.dialog.open(Jt,t).afterClosed().subscribe(t=>{t&&this.translate.get("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS").subscribe(t=>{this.refreshTable(),this.notificator.showSuccess(t)})})}removeDestination(){const t=(0,r.kZ)();t.width="600px",t.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(Lt.u,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}blockServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.blockServiceOnDestination(e.service.id,e.id).subscribe(()=>{this.blockServiceOnDestinations(t)},()=>this.loading=!1)}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selected.selected)}allowServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.unblockServiceOnDestinationById(e.service.id,e.id).subscribe(()=>{this.allowServiceOnDestinations(t)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selected.selected)}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}allSelectedAllowed(){return this.selected.selected.reduce((t,e)=>t&&!e.blocked,!0)}allSelectedBlocked(){return this.selected.selected.reduce((t,e)=>t&&e.blocked,!0)}}return t.id="FacilityServicesDestinationsComponent",t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.IQ),p.Y36(c.KK),p.Y36(yt.dB),p.Y36(E.sK),p.Y36(u.V6),p.Y36(a.gz),p.Y36(u.x4),p.Y36(c.KK))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-perun-web-apps-facility-services-destinations"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:12,vars:10,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","destinations","selection","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","destinations","selection","displayedColumns","page"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.YNc(5,Vt,3,3,"button",2),p.YNc(6,Bt,3,4,"button",3),p.YNc(7,Pt,5,4,"button",4),p.YNc(8,Gt,5,4,"button",4),p.TgZ(9,"perun-web-apps-immediate-filter",5),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(10,$t,1,0,"mat-spinner",6),p.YNc(11,jt,1,5,"app-perun-web-apps-destination-list",7),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,8,"FACILITY_DETAIL.SERVICES_DESTINATIONS.TITLE")),p.xp6(3),p.Q6J("ngIf",!e.loading&&e.addAuth),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.removeAuth),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.allowAuth),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.blockAuth),p.xp6(1),p.Q6J("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,s.O5,zt.L,b.lW,A.Hw,S.$g,Ht.q],pipes:[E.X$],styles:[""]}),t})();var Wt=i(17767);function Xt(t,e){1&t&&p._UZ(0,"mat-spinner",3)}function te(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div"),p.TgZ(1,"perun-web-apps-immediate-filter",4),p.NdJ("filter",function(e){return p.CHM(t),p.oxw().applyFilter(e)}),p.qZA(),p.TgZ(2,"div",5),p.TgZ(3,"perun-web-apps-owners-list",6),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA(),p.qZA(),p.TgZ(4,"div",7),p.TgZ(5,"button",8),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCancel()}),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"button",9),p.NdJ("click",function(){return p.CHM(t),p.oxw().onAdd()}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("placeholder","DIALOGS.ADD_OWNERS.FILTER"),p.xp6(2),p.Q6J("filterValue",t.filterValue)("pageSize",t.pageSize)("owners",t.owners)("selection",t.selection),p.xp6(3),p.hij(" ",p.lcZ(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",0===t.selection.selected.length||t.loading),p.xp6(1),p.hij(" ",p.lcZ(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}let ee=(()=>{class t{constructor(t,e,i,s,a,n,l){this.dialogRef=t,this.data=e,this.notificator=i,this.tableConfigService=s,this.translate=a,this.ownersManagerService=n,this.facilitiesManagerService=l,this.extSources=[],this.selection=new _t.Ov(!0,[]),this.filterValue="",this.tableId=yt.BV,this.owners=[],this.translate.get("DIALOGS.ADD_OWNERS.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(t=>{this.owners=t.filter(t=>!this.data.forbiddenOwners.includes(t.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}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)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(u.V6),p.Y36(yt.dB),p.Y36(E.sK),p.Y36(c.aC),p.Y36(c.IQ))},t.\u0275cmp=p.Xpm({type:t,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","pageSize","owners","selection","page"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,Xt,1,0,"mat-spinner",1),p.YNc(5,te,11,12,"div",2),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,6,"DIALOGS.ADD_OWNERS.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[g.uh,s.O5,S.$g,zt.L,g.xY,Wt.Q,g.H8,b.lW],pipes:[E.X$],styles:[""]}),t})();var ie=i(67033);function se(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function ae(t,e){1&t&&p._UZ(0,"th",15)}function ne(t,e){if(1&t&&(p.TgZ(0,"td",16),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.name," ")}}function le(t,e){1&t&&p._UZ(0,"tr",17)}function oe(t,e){1&t&&p._UZ(0,"tr",18)}function ce(t,e){if(1&t&&(p.TgZ(0,"div",7),p.TgZ(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",8),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"table",9),p.ynx(8,10),p.YNc(9,ae,1,0,"th",11),p.YNc(10,ne,2,1,"td",12),p.BQk(),p.YNc(11,le,1,0,"tr",13),p.YNc(12,oe,1,0,"tr",14),p.qZA(),p.qZA()),2&t){const t=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,5,"DIALOGS.REMOVE_OWNERS.DESCRIPTION")," "),p.xp6(3),p.hij(" ",p.lcZ(6,7,"DIALOGS.REMOVE_OWNERS.ASK")," "),p.xp6(2),p.Q6J("dataSource",t.dataSource),p.xp6(4),p.Q6J("matHeaderRowDef",t.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",t.displayedColumns)}}let re=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=s,this.facilitiesManagerService=a,this.displayedColumns=["name"],s.get("DIALOGS.REMOVE_OWNERS.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.dataSource=new ie.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 t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(u.V6),p.Y36(E.sK),p.Y36(c.IQ))},t.\u0275cmp=p.Xpm({type:t,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(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,se,1,0,"mat-spinner",1),p.YNc(5,ce,13,9,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.onSubmit()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},directives:[g.uh,s.O5,g.H8,b.lW,S.$g,g.xY,ie.BZ,ie.w1,ie.fO,ie.Dz,ie.as,ie.nj,ie.ge,ie.ev,ie.XQ,ie.Gk],pipes:[E.X$],styles:[""]}),t})();function ue(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-refresh-button",7),p.NdJ("refresh",function(){return p.CHM(t),p.oxw().refreshTable()}),p.qZA()}}function de(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",8),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCreate()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function he(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",9),p.NdJ("click",function(){return p.CHM(t),p.oxw().onRemove()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selection.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function pe(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-immediate-filter",10),p.NdJ("filter",function(e){return p.CHM(t),p.oxw().applyFilter(e)}),p.qZA()}2&t&&p.Q6J("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER")}function ge(t,e){1&t&&p._UZ(0,"mat-spinner",11)}function fe(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-owners-list",12),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("owners",t.owners)("displayedColumns",t.displayedColumns)("selection",t.selection)}}let me=(()=>{class t{constructor(t,e,i,s,a){this.facilitiesManagerService=t,this.tableConfigService=e,this.route=i,this.dialog=s,this.authResolver=a,this.owners=[],this.selection=new _t.Ov(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=yt.zp}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.filterValue="",this.route.parent.parent.params.subscribe(t=>{this.facilityId=parseInt(t.facilityId,10),this.facility={id:this.facilityId,beanName:"Facility"},this.refreshTable()})}refreshTable(){this.loading=!0,this.selection.clear(),this.facilitiesManagerService.getFacilityOwners(this.facilityId).subscribe(t=>{this.owners=t,this.setAuthRights(),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(t){this.filterValue=t}onCreate(){const t=(0,r.kZ)();t.width="800px",t.data={theme:"facility-theme",facilityId:this.facilityId,forbiddenOwners:this.owners.map(t=>t.id)},this.dialog.open(ee,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,r.kZ)();t.width="600px",t.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facilityId},this.dialog.open(re,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(yt.dB),p.Y36(a.gz),p.Y36(g.uw),p.Y36(u.x4))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-settings-owners"]],decls:9,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["class","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",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","owners","displayedColumns","selection","page",4,"ngIf"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","owners","displayedColumns","selection","page"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.YNc(3,ue,1,0,"perun-web-apps-refresh-button",1),p.YNc(4,de,3,3,"button",2),p.YNc(5,he,3,4,"button",3),p.YNc(6,pe,1,1,"perun-web-apps-immediate-filter",4),p.YNc(7,ge,1,0,"mat-spinner",5),p.YNc(8,fe,1,5,"perun-web-apps-owners-list",6)),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,7,"FACILITY_DETAIL.SETTINGS.OWNERS.TITLE")),p.xp6(2),p.Q6J("ngIf",!e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.addAuth),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.removeAuth),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[s.O5,Qt.t,b.lW,zt.L,S.$g,Wt.Q],pipes:[E.X$],styles:[""]}),t})();function Se(t,e){1&t&&p._UZ(0,"mat-spinner",7)}function Ae(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function Te(t,e){if(1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t){const t=p.oxw(2);p.xp6(1),p.AsE(" ",p.lcZ(2,2,"DIALOGS.ADD_HOST.INVALID_HOST"),"",t.hostsCtrl.getError("invalidHost").value," ")}}function Ie(t,e){if(1&t&&(p.TgZ(0,"div",8),p.TgZ(1,"mat-form-field"),p.TgZ(2,"textarea",9),p._uU(3," "),p.qZA(),p.YNc(4,Ae,3,3,"mat-error",10),p.YNc(5,Te,3,4,"mat-error",10),p.qZA(),p.TgZ(6,"div",11),p._uU(7),p.ALo(8,"translate"),p.qZA(),p.qZA()),2&t){const t=p.oxw();p.xp6(2),p.Q6J("formControl",t.hostsCtrl),p.xp6(2),p.Q6J("ngIf",t.hostsCtrl.hasError("required")),p.xp6(1),p.Q6J("ngIf",t.hostsCtrl.hasError("invalidHost")),p.xp6(2),p.Oqu(p.lcZ(8,4,"DIALOGS.ADD_HOST.HINT"))}}let be=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=s,this.translate=a,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}$")}ngOnInit(){this.theme=this.data.theme,this.facilityName=this.data.facilityName,this.hostsCtrl=new et.NI("",[et.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const t=this.hostsCtrl.value.split("\n");let e=[];for(const i of t)e=e.concat(this.parseHostName(i));this.facilitiesManager.addHosts(this.data.facilityId,e).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 t=>{let e=[];const i=t.value.split("\n");for(const s of i)e=e.concat(this.parseHostName(s));for(const s of e)if(!this.hostPattern.test(s))return{invalidHost:{value:s}};return null}}parseHostName(t){const e=new RegExp("[[0-9]+-[0-9]+]","g"),i=t.split(e),s=t.match(e);if(null==s)return""===t?[]:[t];let a=[];for(let n=0;n{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=s,this.translate=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.hosts=this.data.hosts,this.dataSource=new ie.by(this.data.hosts)}onConfirm(){this.loading=!0,this.facilitiesManager.removeHosts(this.data.facilityId,this.hosts.map(t=>t.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 t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.IQ),p.Y36(u.V6),p.Y36(E.sK))},t.\u0275cmp=p.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,Ee,1,0,"mat-spinner",1),p.YNc(5,Le,13,9,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.onConfirm()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_HOST.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_HOST.CANCEL"),""),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_HOST.CONFIRM"),""))},directives:[g.uh,s.O5,g.H8,b.lW,S.$g,g.xY,ie.BZ,ie.w1,ie.fO,ie.Dz,ie.as,ie.nj,ie.ge,ie.ev,ie.XQ,ie.Gk],pipes:[E.X$],styles:[""]}),t})();var xe=i(58623),Oe=i(82819),De=i(84534),Re=i(39571);function Ne(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",13),p.TgZ(1,"mat-checkbox",14),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function we(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",15),p.TgZ(1,"mat-checkbox",16),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function ke(t,e){1&t&&(p.TgZ(0,"th",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_ID")))}function Ye(t,e){if(1&t&&(p.TgZ(0,"td",15),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.id)}}function Me(t,e){1&t&&(p.TgZ(0,"th",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_NAME")))}function Fe(t,e){if(1&t&&(p.TgZ(0,"td",18),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.hostname)}}function qe(t,e){1&t&&p._UZ(0,"tr",19)}const Ue=function(t,e){return["/facilities",t,"hosts",e]};function Je(t,e){if(1&t&&p._UZ(0,"tr",20),2&t){const t=e.$implicit,i=p.oxw();p.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:p.WLB(2,Ue,i.facilityId,t.id))("routerLink",i.disableRouting?null:p.WLB(5,Ue,i.facilityId,t.id))}}function Qe(t,e){1&t&&(p.TgZ(0,"app-alert",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ze(t,e){1&t&&(p.TgZ(0,"app-alert",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.NO_HOST_WARNING"),"\n"))}let He=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.hosts=[],this.selection=new _t.Ov(!0,[]),this.pageSize=10,this.disableRouting=!1,this.displayedColumns=["select","id","name"],this.page=new p.vpe,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new ie.by(this.hosts),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.hostname;default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(u.x4),p.Y36(u.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-hosts-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(xe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[p.TTD],decls:16,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,Ne,2,3,"th",4),p.YNc(5,we,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,ke,3,3,"th",7),p.YNc(8,Ye,2,1,"td",5),p.BQk(),p.ynx(9,8),p.YNc(10,Me,3,3,"th",7),p.YNc(11,Fe,2,1,"td",9),p.BQk(),p.YNc(12,qe,1,0,"tr",10),p.YNc(13,Je,1,8,"tr",11),p.qZA(),p.qZA(),p.qZA(),p.YNc(14,Qe,3,3,"app-alert",12),p.YNc(15,ze,3,3,"app-alert",12)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.hosts.length),p.xp6(1),p.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(10),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.hosts.length),p.xp6(1),p.Q6J("ngIf",0===e.hosts.length))},directives:[Oe.l,ie.BZ,xe.YE,ie.w1,ie.fO,ie.Dz,ie.as,ie.nj,s.O5,ie.ge,nt.oG,ie.ev,xe.nU,ie.XQ,ie.Gk,De.YH,a.rH,Re.w],pipes:[E.X$],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function Ve(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw().addHost()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.HOSTS.ADD")," "))}function Be(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",8),p.NdJ("click",function(){return p.CHM(t),p.oxw().removeHost()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.HOSTS.REMOVE")," ")}}function Pe(t,e){1&t&&p._UZ(0,"mat-spinner",9)}function Ge(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-hosts-list",10),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("hosts",t.hosts)("selection",t.selected)("displayedColumns",t.displayedColumns)("disableRouting",!t.routeAuth)("facilityId",t.facilityId)}}let $e=(()=>{class t{constructor(t,e,i,s,a){this.dialog=t,this.facilitiesManager=e,this.tableConfigService=i,this.route=s,this.authResolver=a,this.hosts=[],this.selected=new _t.Ov(!0,[]),this.filterValue="",this.tableId=yt.eq,this.displayedColumns=["id","name"]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.facilityId=t.facilityId,this.facilitiesManager.getFacilityById(this.facilityId).subscribe(t=>{this.facility=t,this.refreshTable()})})}refreshTable(){this.loading=!0,this.facilitiesManager.getHosts(this.facilityId).subscribe(t=>{this.hosts=t,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 t=(0,r.kZ)();t.width="600px",t.data={facilityId:this.facility.id,facilityName:this.facility.name,theme:"facility-theme"},this.dialog.open(be,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeHost(){const t=(0,r.kZ)();t.width="600px",t.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(ve,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.IQ),p.Y36(yt.dB),p.Y36(a.gz),p.Y36(u.x4))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-hosts"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",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,"pageSize","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId","page"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.YNc(5,Ve,3,3,"button",2),p.YNc(6,Be,3,4,"button",3),p.TgZ(7,"perun-web-apps-immediate-filter",4),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(8,Pe,1,0,"mat-spinner",5),p.YNc(9,Ge,1,7,"app-hosts-list",6),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),p.xp6(3),p.Q6J("ngIf",!e.loading&&e.addAuth),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.removeAuth),p.xp6(1),p.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,s.O5,zt.L,b.lW,S.$g,He],pipes:[E.X$],styles:[""]}),t})();function je(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",14),p.TgZ(1,"mat-checkbox",15),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Ke(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",16),p.TgZ(1,"mat-checkbox",17),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function We(t,e){1&t&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")))}function Xe(t,e){if(1&t&&(p.TgZ(0,"td",16),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t[1].id)}}function ti(t,e){1&t&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")))}function ei(t,e){if(1&t&&(p.TgZ(0,"td",19),p._uU(1),p.ALo(2,"userFullName"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(p.lcZ(2,1,t[1]))}}function ii(t,e){1&t&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")))}function si(t,e){if(1&t&&(p.TgZ(0,"td",19),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t[0].description)}}function ai(t,e){1&t&&p._UZ(0,"tr",20)}function ni(t,e){1&t&&p._UZ(0,"tr",21)}function li(t,e){1&t&&(p.TgZ(0,"app-alert",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function oi(t,e){1&t&&(p.TgZ(0,"app-alert",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}let ci=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.bansOnFacilitiesWithUsers=[],this.selection=new _t.Ov(!0,[]),this.pageSize=10,this.page=new p.vpe,this.displayedColumns=["select","userId","name","reason"],this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"userId"!==t)),this.dataSource=new ie.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"userId":return t[1].id.toString();case"reason":return t[0].description;case"name":return(0,r.hu)(t[1]);default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t[0].userId+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(u.x4),p.Y36(u.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(xe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",pageSize:"pageSize"},outputs:{page:"page"},features:[p.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,je,2,3,"th",4),p.YNc(5,Ke,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,We,3,3,"th",7),p.YNc(8,Xe,2,1,"td",5),p.BQk(),p.ynx(9,8),p.YNc(10,ti,3,3,"th",7),p.YNc(11,ei,3,3,"td",9),p.BQk(),p.ynx(12,10),p.YNc(13,ii,3,3,"th",7),p.YNc(14,si,2,1,"td",9),p.BQk(),p.YNc(15,ai,1,0,"tr",11),p.YNc(16,ni,1,0,"tr",12),p.qZA(),p.qZA(),p.qZA(),p.YNc(17,li,3,3,"app-alert",13),p.YNc(18,oi,3,3,"app-alert",13)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.bansOnFacilitiesWithUsers.length),p.xp6(1),p.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(13),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.bansOnFacilitiesWithUsers.length),p.xp6(1),p.Q6J("ngIf",0===e.bansOnFacilitiesWithUsers.length))},directives:[Oe.l,ie.BZ,xe.YE,ie.w1,ie.fO,ie.Dz,ie.as,ie.nj,s.O5,ie.ge,nt.oG,ie.ev,xe.nU,ie.XQ,ie.Gk,Re.w],pipes:[E.X$,ut.d],styles:[""]}),t})();function ri(t,e){1&t&&p._UZ(0,"mat-spinner",5)}function ui(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-perun-web-apps-blacklist-list",6),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("bansOnFacilitiesWithUsers",t.bansOnFacilitiesWithUsers)("selection",t.selected)}}let di=(()=>{class t{constructor(t,e,i,s){this.facilitiesManager=t,this.usersManager=e,this.tableConfigService=i,this.route=s,this.bansOnFacilitiesWithUsers=[],this.selected=new _t.Ov(!0,[]),this.filterValue="",this.tableId=yt.NG}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.facilitiesManager.getBansForFacility(t.facilityId).subscribe(t=>{const e=t;for(const i of e){let t;this.usersManager.getUserById(i.userId).subscribe(e=>{t=e}),this.bansOnFacilitiesWithUsers.push([i,t])}this.selected.clear(),this.loading=!1})})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(c.Fv),p.Y36(yt.dB),p.Y36(a.gz))},t.\u0275cmp=p.Xpm({type:t,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,"pageSize","filterValue","bansOnFacilitiesWithUsers","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","bansOnFacilitiesWithUsers","selection","page"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.TgZ(5,"perun-web-apps-immediate-filter",2),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.ALo(6,"translate"),p.qZA(),p.YNc(7,ri,1,0,"mat-spinner",3),p.YNc(8,ui,1,4,"app-perun-web-apps-blacklist-list",4),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),p.xp6(3),p.Q6J("placeholder",p.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,zt.L,s.O5,S.$g,ci],pipes:[E.X$],styles:[""]}),t})();var hi=i(41939),pi=i(13572),gi=i(40695),fi=i(41186);const mi=["list"];function Si(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-attributes-list",6,7),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("pageSize",t.pageSize)("attributes",t.attributes)("selection",t.selected)}}let Ai=(()=>{class t{constructor(t,e,i,s,a){this.dialog=t,this.attributesManager=e,this.facilityManager=i,this.tableConfigService=s,this.route=a,this.attributes=[],this.selected=new _t.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=yt.rF}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.params.subscribe(t=>{this.hostId=t.hostId,this.facilityManager.getHostById(this.hostId).subscribe(t=>{this.host=t}),this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(t=>{this.attributes=(0,r.MX)(t),this.selected.clear(),this.loading=!1})}onSave(){this.list.updateMapAttributes();const t=(0,r.kZ)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(d.wA,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}addAttribute(){const t=(0,r.kZ)();t.width="1050px",t.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(gi.n,t).afterClosed().subscribe(t=>{"saved"===t&&this.refreshTable()})}removeAttribute(){const t=(0,r.kZ)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(pi.k,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.H8),p.Y36(c.IQ),p.Y36(yt.dB),p.Y36(a.gz))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-hosts-detail"]],viewQuery:function(t,e){if(1&t&&p.Gf(mi,5),2&t){let t;p.iGM(t=p.CRH())&&(e.list=t.first)}},decls:15,vars:16,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"pageSize","attributes","selection","page",4,"ngIf"],[3,"pageSize","attributes","selection","page"],["list",""]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.TgZ(5,"button",2),p.NdJ("click",function(){return e.addAttribute()}),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"button",3),p.NdJ("click",function(){return e.onSave()}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.TgZ(11,"button",4),p.NdJ("click",function(){return e.removeAttribute()}),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.YNc(14,Si,2,3,"perun-web-apps-attributes-list",5),p.qZA()),2&t&&(p.xp6(2),p.AsE(" ",p.lcZ(3,8,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",e.host.hostname,""),p.xp6(4),p.hij(" ",p.lcZ(7,10,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),p.xp6(2),p.Q6J("disabled",0===e.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(10,12,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),p.xp6(2),p.Q6J("disabled",0===e.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(13,14,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),p.xp6(2),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,b.lW,s.O5,fi.p],pipes:[E.X$],styles:[""]}),t})();function Ti(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",14),p.TgZ(1,"mat-checkbox",15),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Ii(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",16),p.TgZ(1,"mat-checkbox",17),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function bi(t,e){1&t&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")))}function Ei(t,e){if(1&t&&(p.TgZ(0,"td",16),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.id)}}function Ci(t,e){1&t&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")))}function Zi(t,e){if(1&t&&(p.TgZ(0,"td",19),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.name)}}function yi(t,e){1&t&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")))}function _i(t,e){if(1&t&&(p.TgZ(0,"td",19),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.description)}}function Li(t,e){1&t&&p._UZ(0,"tr",20)}function vi(t,e){1&t&&p._UZ(0,"tr",21)}function xi(t,e){1&t&&(p.TgZ(0,"app-alert",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Oi(t,e){1&t&&(p.TgZ(0,"app-alert",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}let Di=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.securityTeams=[],this.selection=new _t.Ov(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","name","description"],this.page=new p.vpe,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new ie.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"description":return t.description;default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(u.x4),p.Y36(u.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-security-teams-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(xe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[p.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,Ti,2,3,"th",4),p.YNc(5,Ii,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,bi,3,3,"th",7),p.YNc(8,Ei,2,1,"td",5),p.BQk(),p.ynx(9,8),p.YNc(10,Ci,3,3,"th",7),p.YNc(11,Zi,2,1,"td",9),p.BQk(),p.ynx(12,10),p.YNc(13,yi,3,3,"th",7),p.YNc(14,_i,2,1,"td",9),p.BQk(),p.YNc(15,Li,1,0,"tr",11),p.YNc(16,vi,1,0,"tr",12),p.qZA(),p.qZA(),p.qZA(),p.YNc(17,xi,3,3,"app-alert",13),p.YNc(18,Oi,3,3,"app-alert",13)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.securityTeams.length),p.xp6(1),p.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(13),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.securityTeams.length),p.xp6(1),p.Q6J("ngIf",0===e.securityTeams.length))},directives:[Oe.l,ie.BZ,xe.YE,ie.w1,ie.fO,ie.Dz,ie.as,ie.nj,s.O5,ie.ge,nt.oG,ie.ev,xe.nU,ie.XQ,ie.Gk,Re.w],pipes:[E.X$],styles:[""]}),t})();function Ri(t,e){1&t&&p._UZ(0,"mat-spinner",5)}function Ni(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-security-teams-list",6),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("securityTeams",t.securityTeams)("displayedColumns",t.displayedColumns)("selection",t.selected)}}let wi=(()=>{class t{constructor(t,e,i,s,a){this.dialog=t,this.facilitiesManager=e,this.tableConfigService=i,this.route=s,this.authResolver=a,this.securityTeams=[],this.selected=new _t.Ov(!0,[]),this.filterValue="",this.tableId=yt.O9,this.displayedColumns=[]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.facilitiesManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t,this.refreshTable()})})}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(t=>{this.securityTeams=t,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(t){this.filterValue=t}addSecurityTeam(){}removeSecurityTeam(){}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.IQ),p.Y36(yt.dB),p.Y36(a.gz),p.Y36(u.x4))},t.\u0275cmp=p.Xpm({type:t,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,"pageSize","filterValue","securityTeams","displayedColumns","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","securityTeams","displayedColumns","selection","page"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.TgZ(5,"perun-web-apps-immediate-filter",2),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(6,Ri,1,0,"mat-spinner",3),p.YNc(7,Ni,1,5,"app-security-teams-list",4),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),p.xp6(3),p.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,zt.L,s.O5,S.$g,Di],pipes:[E.X$],styles:[""]}),t})();var ki=i(64359),Yi=i(75374);function Mi(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function Fi(t,e){1&t&&(p.TgZ(0,"th",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")))}function qi(t,e){if(1&t&&(p.TgZ(0,"td",18),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.id," ")}}function Ui(t,e){1&t&&(p.TgZ(0,"th",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")))}function Ji(t,e){if(1&t&&(p.TgZ(0,"td",18),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.destination.destination," ")}}function Qi(t,e){1&t&&(p.TgZ(0,"th",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function zi(t,e){if(1&t&&(p.TgZ(0,"td",18),p._uU(1),p.ALo(2,"date"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",p.xi3(2,1,t.timestamp,"d.M.y H:mm:ss")," ")}}function Hi(t,e){1&t&&p._UZ(0,"tr",19)}function Vi(t,e){1&t&&p._UZ(0,"tr",20)}function Bi(t,e){if(1&t&&(p.TgZ(0,"div",7),p.TgZ(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",8),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"table",9),p.ynx(8,10),p.YNc(9,Fi,3,3,"th",11),p.YNc(10,qi,2,1,"td",12),p.BQk(),p.ynx(11,13),p.YNc(12,Ui,3,3,"th",11),p.YNc(13,Ji,2,1,"td",12),p.BQk(),p.ynx(14,14),p.YNc(15,Qi,3,3,"th",11),p.YNc(16,zi,3,4,"td",12),p.BQk(),p.YNc(17,Hi,1,0,"tr",15),p.YNc(18,Vi,1,0,"tr",16),p.qZA(),p.qZA()),2&t){const t=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),p.xp6(3),p.hij(" ",p.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),p.xp6(2),p.Q6J("dataSource",t.dataSource),p.xp6(10),p.Q6J("matHeaderRowDef",t.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",t.displayedColumns)}}let Pi=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.taskManager=i,this.notificator=s,this.translate=a,this.loading=!1,this.dataSource=new ie.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}ngOnInit(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}deleteResults(){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.deleteResults()},()=>this.loading=!1)}onDelete(){this.deleteResults()}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.Ob),p.Y36(u.V6),p.Y36(E.sK))},t.\u0275cmp=p.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,Mi,1,0,"mat-spinner",1),p.YNc(5,Bi,19,9,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.onDelete()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},directives:[g.uh,s.O5,g.H8,b.lW,S.$g,g.xY,ie.BZ,ie.w1,ie.fO,ie.Dz,ie.as,ie.nj,ie.ge,ie.ev,ie.XQ,ie.Gk],pipes:[E.X$,s.uU],styles:[""]}),t})();var Gi=i(88884);function $i(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function ji(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-checkbox",13),p.NdJ("change",function(e){return p.CHM(t),p.oxw(2).change(e)}),p.ALo(1,"translate"),p._uU(2),p.ALo(3,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.s9C("matTooltip",p.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),p.Q6J("matTooltipDisabled",!t.checkboxesDisabled)("disabled",t.checkboxesDisabled)("checked",t.taskChecked),p.xp6(2),p.hij(" ",p.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function Ki(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-checkbox",14),p.NdJ("change",function(e){return p.CHM(t),p.oxw(2).change(e)}),p.ALo(1,"translate"),p._uU(2),p.ALo(3,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.s9C("matTooltip",p.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),p.Q6J("matTooltipDisabled",!t.checkboxesDisabled)("disabled",t.checkboxesDisabled)("checked",t.taskResultsChecked),p.xp6(2),p.hij(" ",p.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function Wi(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-resources-list",15),p.NdJ("allSelected",function(e){return p.CHM(t),p.oxw(2).disableCheckboxes(e)})("page",function(e){return p.CHM(t),p.oxw(2).pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("pageSize",t.pageSize)("disableRouting",!0)("resources",t.resources)("selection",t.selected)("displayedColumns",t.displayedColumns)}}function Xi(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",7),p.TgZ(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div"),p.YNc(5,ji,4,9,"mat-checkbox",8),p.YNc(6,Ki,4,9,"mat-checkbox",9),p.TgZ(7,"mat-checkbox",10),p.NdJ("change",function(e){return p.CHM(t),p.oxw().change(e)}),p.ALo(8,"translate"),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.qZA(),p.TgZ(11,"p"),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.TgZ(14,"div",11),p._uU(15),p.ALo(16,"translate"),p.qZA(),p.YNc(17,Wi,1,5,"perun-web-apps-resources-list",12),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),p.xp6(3),p.Q6J("ngIf",null!==t.taskId),p.xp6(1),p.Q6J("ngIf",null!==t.taskId),p.xp6(1),p.s9C("matTooltip",p.lcZ(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),p.Q6J("matTooltipDisabled",!t.checkboxesDisabled)("disabled",t.checkboxesDisabled)("checked",t.destinationChecked),p.xp6(2),p.hij(" ",p.lcZ(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),p.xp6(3),p.Oqu(p.lcZ(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),p.xp6(3),p.hij(" ",p.lcZ(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),p.xp6(2),p.Q6J("ngIf",!t.loading)}}let ts=(()=>{class t{constructor(t,e,i,s,a,n,l,o,c){this.dialogRef=t,this.data=e,this.tableConfigService=i,this.resourcesManager=s,this.tasksManager=a,this.serviceManager=n,this.translate=l,this.notificator=o,this.cd=c,this.loading=!1,this.dataSource=new ie.by(this.data.resource),this.selected=new _t.Ov(!0,[...this.dataSource.data]),this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=yt.$V}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),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(t=>{t.forEach(t=>{this.tasksManager.deleteTaskResultById({taskResultId:t.id}).subscribe()})}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe(t=>{t.forEach(t=>{this.serviceManager.removeDestination(this.serviceId,this.facilityId,t.destination,t.type).subscribe()})}),this.selected.selected.forEach(t=>{this.resourcesManager.removeService(t.id,this.serviceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)})}cancel(){this.dialogRef.close(!1)}disableCheckboxes(t){t&&this.checkboxesDisabled&&this.changeCheckboxes(!0),t||this.checkboxesDisabled||this.changeCheckboxes(!1)}changeCheckboxes(t){this.checkboxesDisabled=!t,this.taskChecked=t,this.taskResultsChecked=t,this.destinationChecked=t,this.cd.detectChanges()}change(t){switch(t.source.id){case"task":this.taskChecked=t.checked;break;case"taskResults":this.taskResultsChecked=t.checked;break;case"destination":this.destinationChecked=t.checked}}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(yt.dB),p.Y36(c.xk),p.Y36(c.Ob),p.Y36(c.KK),p.Y36(E.sK),p.Y36(u.V6),p.Y36(p.sBO))},t.\u0275cmp=p.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["id","task","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","taskResults","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","destination","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[1,"font-weight-bold"],[3,"pageSize","disableRouting","resources","selection","displayedColumns","allSelected","page",4,"ngIf"],["id","task","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],["id","taskResults","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[3,"pageSize","disableRouting","resources","selection","displayedColumns","allSelected","page"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,$i,1,0,"mat-spinner",1),p.YNc(5,Xi,18,21,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.cancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.remove()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading||0===e.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},directives:[g.uh,s.O5,g.H8,b.lW,S.$g,g.xY,nt.oG,T.gM,Gi.C],pipes:[E.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),t})();function es(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function is(t,e){1&t&&(p.TgZ(0,"div",7),p.TgZ(1,"div",8),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.qZA()),2&t&&(p.xp6(2),p.hij(" ",p.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let ss=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.tasksManager=i,this.translate=s,this.notificator=a,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.Ob),p.Y36(E.sK),p.Y36(u.V6))},t.\u0275cmp=p.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,es,1,0,"mat-spinner",1),p.YNc(5,is,4,3,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.cancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.remove()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},directives:[g.uh,s.O5,g.H8,b.lW,S.$g,g.xY],pipes:[E.X$],styles:[""]}),t})();var as=i(8055);let ns=(()=>{class t{transform(t){return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=p.Yjl({name:"serviceStateBlockedToString",type:t,pure:!0}),t})();function ls(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",17),p.TgZ(1,"mat-checkbox",18),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e&&i.masterToggle(),i.selectionChange.emit()}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())("aria-label",t.checkboxLabel())}}function os(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",19),p.TgZ(1,"mat-checkbox",20),p.NdJ("click",function(t){return t.stopPropagation()})("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e&&s.selection.toggle(i),s.selectionChange.emit()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("checked",i.selection.isSelected(t))("aria-label",i.checkboxLabel(t))}}function cs(t,e){1&t&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")))}function rs(t,e){if(1&t&&(p.TgZ(0,"div"),p._uU(1),p.qZA()),2&t){const t=p.oxw().$implicit;p.xp6(1),p.Oqu(t.task.id)}}function us(t,e){1&t&&(p.TgZ(0,"div"),p._uU(1,"0"),p.qZA())}function ds(t,e){if(1&t&&(p.TgZ(0,"td",19),p.YNc(1,rs,2,1,"div",22),p.YNc(2,us,2,0,"div",22),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngIf",t.task),p.xp6(1),p.Q6J("ngIf",!t.task)}}function hs(t,e){1&t&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")))}function ps(t,e){if(1&t&&(p.TgZ(0,"td",23),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.service.name)}}function gs(t,e){1&t&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")))}function fs(t,e){if(1&t&&(p.TgZ(0,"td",23),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.status)}}function ms(t,e){1&t&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")))}function Ss(t,e){if(1&t&&(p.TgZ(0,"td",23),p._uU(1),p.ALo(2,"serviceStateBlockedToString"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(p.lcZ(2,1,t))}}function As(t,e){1&t&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")))}function Ts(t,e){if(1&t&&(p.TgZ(0,"div"),p._uU(1),p.ALo(2,"date"),p.qZA()),2&t){const t=p.oxw().$implicit;p.xp6(1),p.Oqu(p.xi3(2,1,t.task.startTime,"d.M.y H:mm:ss"))}}function Is(t,e){1&t&&(p.TgZ(0,"div"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET"),""))}function bs(t,e){if(1&t&&(p.TgZ(0,"td",23),p.YNc(1,Ts,3,4,"div",22),p.YNc(2,Is,3,3,"div",22),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngIf",t.task&&t.task.startTime),p.xp6(1),p.Q6J("ngIf",!t.task||!t.task.startTime)}}function Es(t,e){1&t&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")))}function Cs(t,e){if(1&t&&(p.TgZ(0,"div"),p._uU(1),p.ALo(2,"date"),p.qZA()),2&t){const t=p.oxw().$implicit;p.xp6(1),p.Oqu(p.xi3(2,1,t.task.endTime,"d.M.y H:mm:ss"))}}function Zs(t,e){1&t&&(p.TgZ(0,"div"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function ys(t,e){if(1&t&&(p.TgZ(0,"td",23),p.YNc(1,Cs,3,4,"div",22),p.YNc(2,Zs,3,3,"div",22),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngIf",t.task&&t.task.endTime),p.xp6(1),p.Q6J("ngIf",!t.task||!t.task.endTime)}}function _s(t,e){1&t&&p._UZ(0,"tr",24)}const Ls=function(t,e){return["/facilities",t,"services-status",e]};function vs(t,e){if(1&t&&p._UZ(0,"tr",25),2&t){const t=e.$implicit,i=p.oxw();p.ekj("disable-outline",i.disableRouting||!t.task)("make-yellow","WARNING"===t.status)("make-green","DONE"===t.status)("make-red","GENERROR"===t.status||"SENDERROR"===t.status||"ERROR"===t.status)("cursor-pointer",!i.disableRouting&&null!==t.task),p.Q6J("routerLink",i.disableRouting||null===t.task?null:p.WLB(12,Ls,t.facility.id,t.taskId))("perunWebAppsMiddleClickRouterLink",i.disableRouting||null===t.task?null:p.WLB(15,Ls,t.facility.id,t.taskId))}}function xs(t,e){1&t&&(p.TgZ(0,"app-alert",26),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Os(t,e){1&t&&(p.TgZ(0,"app-alert",26),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}let Ds=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new _t.Ov(!0,[]),this.pageSize=10,this.disableRouting=!0,this.page=new p.vpe,this.selectionChange=new p.vpe,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"task.id"!==t)),this.dataSource=new ie.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(t,e)=>{const i=e.trim().toLowerCase(),s=t=>{let e="";return Object.values(t).forEach(t=>{"object"!=typeof t?e=e+" "+t:null!==t&&(e=e+" "+s(t))}),e.trim().toLowerCase()};return s(t).includes(i)},this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"task.id":return t.task?t.task.id.toString():t[e];case"service.name":return t.service.name;case"status":return t.status;case"blocked":return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return t.task&&t.task.startTime?(0,s.p6)(t.task.startTime,"d.M.y H:mm:ss","en"):t[e];case"task.endTime":return t.task&&t.task.endTime?(0,s.p6)(t.task.endTime,"d.M.y H:mm:ss","en"):t[e];default:return t[e]}}getSortDataForColumn(t,e){switch(e){case"task.id":return t.task?t.task.id.toString():t[e];case"service.name":return t.service.name;case"status":return t.status;case"blocked":return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return t.task&&t.task.startTime?(0,s.p6)(t.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):t[e];case"task.endTime":return t.task&&t.task.endTime?(0,s.p6)(t.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):t[e];default:return t[e]}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getSortDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.service.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(u.x4),p.Y36(u.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(xe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page",selectionChange:"selectionChange"},features:[p.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","task.id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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",""],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"checked","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],[4,"ngIf"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,ls,2,3,"th",4),p.YNc(5,os,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,cs,3,3,"th",7),p.YNc(8,ds,3,2,"td",5),p.BQk(),p.ynx(9,8),p.YNc(10,hs,3,3,"th",7),p.YNc(11,ps,2,1,"td",9),p.BQk(),p.ynx(12,10),p.YNc(13,gs,3,3,"th",7),p.YNc(14,fs,2,1,"td",9),p.BQk(),p.ynx(15,11),p.YNc(16,ms,3,3,"th",7),p.YNc(17,Ss,3,3,"td",9),p.BQk(),p.ynx(18,12),p.YNc(19,As,3,3,"th",7),p.YNc(20,bs,3,2,"td",9),p.BQk(),p.ynx(21,13),p.YNc(22,Es,3,3,"th",7),p.YNc(23,ys,3,2,"td",9),p.BQk(),p.YNc(24,_s,1,0,"tr",14),p.YNc(25,vs,1,18,"tr",15),p.qZA(),p.qZA(),p.qZA(),p.YNc(26,xs,3,3,"app-alert",16),p.YNc(27,Os,3,3,"app-alert",16)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.servicesStatus.length),p.xp6(1),p.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(22),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.servicesStatus.length),p.xp6(1),p.Q6J("ngIf",0===e.servicesStatus.length))},directives:[Oe.l,ie.BZ,xe.YE,ie.w1,ie.fO,ie.Dz,ie.as,ie.nj,s.O5,ie.ge,nt.oG,ie.ev,xe.nU,ie.XQ,ie.Gk,a.rH,De.YH,Re.w],pipes:[E.X$,ns,s.uU],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.make-green[_ngcontent-%COMP%]{background-color:#c4ffcb}.make-yellow[_ngcontent-%COMP%]{background-color:#fffde7}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function Rs(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){return p.CHM(t),p.oxw().forcePropagation()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Ns(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){return p.CHM(t),p.oxw().allow()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length||t.disableAllowButton),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function ws(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(t),p.oxw().block()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length||t.disableBlockButton),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function ks(t,e){if(1&t&&(p.TgZ(0,"button",13),p.ALo(1,"translate"),p._uU(2),p.ALo(3,"translate"),p.qZA()),2&t){const t=p.oxw(),e=p.MAs(10);p.s9C("matTooltip",p.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),p.Q6J("matTooltipDisabled",!t.disableRemoveButton)("disabled",t.disableRemoveButton)("matMenuTriggerFor",e),p.xp6(2),p.hij(" ",p.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function Ys(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw().removeTaskResults()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function Ms(t,e){1&t&&p._UZ(0,"mat-spinner",14)}function Fs(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-services-status-list",15),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)})("selectionChange",function(){return p.CHM(t),p.oxw().selectionChanged()}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("servicesStatus",t.servicesStates)("selection",t.selected)("disableRouting",!t.routeAuth)}}let qs=(()=>{class t{constructor(t,e,i,s,a,n,l,o,c,r){this.route=t,this.tasksManager=e,this.tableConfigService=i,this.servicesManager=s,this.notificator=a,this.translate=n,this.authResolver=l,this.facilityManager=o,this.resourcesManager=c,this.dialog=r,this.servicesStates=[],this.selected=new _t.Ov(!0,[]),this.filterValue="",this.tableId=yt.oK,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,n.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(t=>this.successFPMessage=t),n.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(t=>this.successAllowMessage=t),n.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(t=>this.successBlockMessage=t),n.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(t=>this.successDeleteMessage=t),n.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(t=>this.allreadyDeletedMessage=t)}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.facilityId=parseInt(t.facilityId,10),this.facility={id:this.facilityId,beanName:"Facility"},this.refreshTable()})}forcePropagation(){for(const t of this.selected.selected)this.servicesManager.forceServicePropagation(t.service.id,t.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successFPMessage)})}allow(){for(const t of this.selected.selected)this.servicesManager.unblockServiceOnFacility(t.service.id,t.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successAllowMessage)})}block(){for(const t of this.selected.selected)this.servicesManager.blockServiceOnFacility(t.service.id,t.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successBlockMessage)})}removeTaskResults(){this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe(t=>{const e=(0,r.kZ)();e.width="600px",e.data={theme:"facility-theme",taskResults:t},this.dialog.open(Pi,e)})}removeServiceFromFacility(){this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(t=>{const e=(0,r.kZ)();e.width="600px",this.taskId=this.taskIsNull?null:this.selected.selected[0].task.id,0===t.length?(e.data={theme:"facility-theme",taskId:this.taskId},this.dialog.open(ss,e).afterClosed().subscribe(t=>{t&&(this.disableRemoveButton=!0,this.refreshTable())})):this.resourcesManager.getRichResourcesByIds(t.map(t=>t.id)).subscribe(t=>{e.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:t},this.dialog.open(ts,e).afterClosed().subscribe(t=>{t&&(this.disableRemoveButton=!0,this.refreshTable())})})})}refreshTable(){this.loading=!0,this.tasksManager.getFacilityServicesState(this.facilityId).subscribe(t=>{this.servicesStates=t,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(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}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 t of this.selected.selected)t.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.gz),p.Y36(c.Ob),p.Y36(yt.dB),p.Y36(c.KK),p.Y36(u.V6),p.Y36(E.sK),p.Y36(u.x4),p.Y36(c.IQ),p.Y36(c.xk),p.Y36(g.uw))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor",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,"pageSize","filterValue","servicesStatus","selection","disableRouting","page","selectionChange",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","servicesStatus","selection","disableRouting","page","selectionChange"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.YNc(5,Rs,3,4,"button",2),p.YNc(6,Ns,3,4,"button",2),p.YNc(7,ws,3,4,"button",3),p.YNc(8,ks,4,9,"button",4),p.TgZ(9,"mat-menu",null,5),p.YNc(11,Ys,3,3,"button",6),p.TgZ(12,"button",7),p.NdJ("click",function(){return e.removeServiceFromFacility()}),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.qZA(),p.TgZ(15,"perun-web-apps-immediate-filter",8),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(16,Ms,1,0,"mat-spinner",9),p.YNc(17,Fs,1,5,"perun-web-apps-services-status-list",10),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),p.xp6(3),p.Q6J("ngIf",!e.loading&&e.propagationAuth),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.allowAuth),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.blockAuth),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.deleteAuth),p.xp6(3),p.Q6J("ngIf",!e.taskIsNull),p.xp6(2),p.Oqu(p.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")),p.xp6(2),p.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,s.O5,as.VK,as.OP,zt.L,b.lW,T.gM,as.p6,S.$g,Ds],pipes:[E.X$],styles:[""]}),t})();var Us=i(91058),Js=i(86593);function Qs(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function zs(t,e){1&t&&(p.TgZ(0,"app-alert",7),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.ALLOWED_USERS.NO_USERS")," "))}const Hs=function(){return["id","name"]};function Vs(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-users-list",8),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("pageSize",t.pageSize)("users",t.users)("displayedColumns",p.DdM(5,Hs))("disableRouting",!t.routeAuth)("filter",t.filterValue)}}let Bs=(()=>{class t{constructor(t,e,i,s){this.route=t,this.facilityService=e,this.tableConfigService=i,this.authResolver=s,this.loading=!1,this.filterValue="",this.tableId=yt.z6}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.facilityId=t.facilityId,this.routeAuth=this.authResolver.isPerunAdminOrObserver(),this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityService.getAssignedUsers(this.facilityId).subscribe(t=>{this.users=t,this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.gz),p.Y36(c.IQ),p.Y36(yt.dB),p.Y36(u.x4))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-allowed-users"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"pageSize","users","displayedColumns","disableRouting","filter","page",4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[3,"pageSize","users","displayedColumns","disableRouting","filter","page"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.TgZ(5,"perun-web-apps-debounce-filter",2),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(6,Qs,1,0,"mat-spinner",3),p.YNc(7,zs,3,3,"app-alert",4),p.YNc(8,Vs,1,6,"app-users-list",5),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,5,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),p.xp6(3),p.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading&&(void 0===e.users||0===e.users.length)),p.xp6(1),p.Q6J("ngIf",!e.loading&&0!==e.users.length))},directives:[Qt.t,Us.P,s.O5,S.$g,Re.w,Js.C],pipes:[E.X$],styles:[""]}),t})();var Ps=i(95142);function Gs(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",19),p.TgZ(1,"mat-checkbox",20),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function $s(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",21),p.TgZ(1,"mat-checkbox",22),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function js(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")))}function Ks(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.id)}}function Ws(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")))}function Xs(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.destination.destination)}}function ta(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")))}function ea(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.destination.type.toUpperCase())}}function ia(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")))}function sa(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.service.name)}}function aa(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")))}function na(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.status)}}function la(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")))}function oa(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.ALo(2,"date"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(p.xi3(2,1,t.timestamp,"d.M.y H:mm:ss"))}}function ca(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")))}function ra(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.returnCode)}}function ua(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")))}function da(t,e){if(1&t&&(p.TgZ(0,"span"),p._uU(1),p._UZ(2,"br"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t)}}function ha(t,e){if(1&t&&(p.TgZ(0,"td",21),p.YNc(1,da,3,1,"span",24),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngForOf",t.standardMessage.split("\n"))}}function pa(t,e){1&t&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")))}function ga(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.errorMessage)}}function fa(t,e){1&t&&p._UZ(0,"tr",25)}function ma(t,e){if(1&t&&p._UZ(0,"tr",26),2&t){const t=e.$implicit;p.ekj("greenTableItem","DONE"===t.status)("redTableItem","ERROR"===t.status||"DENIED"===t.status)("yellowTableItem","WARNING"===t.status)}}function Sa(t,e){1&t&&(p.TgZ(0,"app-alert",27),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Aa(t,e){1&t&&(p.TgZ(0,"app-alert",27),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}let Ta=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.pageSizeOptions=r.f7,this.taskResults=[],this.selection=new _t.Ov(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.page=new p.vpe}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new ie.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"destination":return t.destination.destination;case"type":return t.destination.type;case"service":return t.service.name;case"status":return t.status;case"time":return(0,s.p6)(t.timestamp.toString(),"d.M.y H:mm:ss","en");case"returnCode":return t.returnCode.toString();case"standardMessage":return t.standardMessage;case"errorMessage":return t.errorMessage;default:return""}}getSortDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"destination":return t.destination.destination;case"type":return t.destination.type;case"service":return t.service.name;case"status":return t.status;case"time":return(0,s.p6)(t.timestamp.toString(),"yyyy.MM.dd HH:mm:ss","en");case"returnCode":return t.returnCode.toString();case"standardMessage":return t.standardMessage;case"errorMessage":return t.errorMessage;default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getSortDataForColumn,this))}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(u.x4),p.Y36(u.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(xe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[p.TTD],decls:37,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,Gs,2,3,"th",4),p.YNc(5,$s,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,js,3,3,"th",7),p.YNc(8,Ks,2,1,"td",5),p.BQk(),p.ynx(9,8),p.YNc(10,Ws,3,3,"th",7),p.YNc(11,Xs,2,1,"td",5),p.BQk(),p.ynx(12,9),p.YNc(13,ta,3,3,"th",7),p.YNc(14,ea,2,1,"td",5),p.BQk(),p.ynx(15,10),p.YNc(16,ia,3,3,"th",7),p.YNc(17,sa,2,1,"td",5),p.BQk(),p.ynx(18,11),p.YNc(19,aa,3,3,"th",7),p.YNc(20,na,2,1,"td",5),p.BQk(),p.ynx(21,12),p.YNc(22,la,3,3,"th",7),p.YNc(23,oa,3,4,"td",5),p.BQk(),p.ynx(24,13),p.YNc(25,ca,3,3,"th",7),p.YNc(26,ra,2,1,"td",5),p.BQk(),p.ynx(27,14),p.YNc(28,ua,3,3,"th",7),p.YNc(29,ha,2,1,"td",5),p.BQk(),p.ynx(30,15),p.YNc(31,pa,3,3,"th",7),p.YNc(32,ga,2,1,"td",5),p.BQk(),p.YNc(33,fa,1,0,"tr",16),p.YNc(34,ma,1,6,"tr",17),p.qZA(),p.qZA(),p.qZA(),p.YNc(35,Sa,3,3,"app-alert",18),p.YNc(36,Aa,3,3,"app-alert",18)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.taskResults.length),p.xp6(1),p.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(31),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.taskResults.length),p.xp6(1),p.Q6J("ngIf",0===e.taskResults.length))},directives:[Oe.l,ie.BZ,xe.YE,ie.w1,ie.fO,ie.Dz,ie.as,ie.nj,s.O5,ie.ge,nt.oG,ie.ev,xe.nU,s.sg,ie.XQ,ie.Gk,Re.w],pipes:[E.X$,s.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),t})();function Ia(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",8),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).removeTaskResult()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("disabled",0===t.selection.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE")," ")}}function ba(t,e){1&t&&p._UZ(0,"mat-spinner",9)}function Ea(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-task-results-list",10),p.NdJ("page",function(e){return p.CHM(t),p.oxw(2).pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("pageSize",t.pageSize)("selection",t.selection)("taskResults",t.taskResults)}}function Ca(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div"),p.TgZ(1,"h1",1),p._uU(2),p.ALo(3,"translate"),p.TgZ(4,"span",2),p._uU(5),p.qZA(),p.qZA(),p.TgZ(6,"perun-web-apps-refresh-button",3),p.NdJ("refresh",function(){return p.CHM(t),p.oxw().refreshTable()}),p.qZA(),p.YNc(7,Ia,3,4,"button",4),p.TgZ(8,"perun-web-apps-immediate-filter",5),p.NdJ("filter",function(e){return p.CHM(t),p.oxw().applyFilter(e)}),p.qZA(),p.YNc(9,ba,1,0,"mat-spinner",6),p.YNc(10,Ea,1,5,"perun-web-apps-task-results-list",7),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.AsE("",p.lcZ(3,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",t.task.service.name," "),p.xp6(3),p.hij(" \xa0#",t.task.id," "),p.xp6(2),p.Q6J("ngIf",!t.loading&&t.removeAuth),p.xp6(1),p.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),p.xp6(1),p.Q6J("ngIf",t.loading),p.xp6(1),p.Q6J("ngIf",!t.loading)}}let Za=(()=>{class t{constructor(t,e,i,s,a){this.route=t,this.tableConfigService=e,this.taskManager=i,this.authResolver=s,this.dialog=a,this.loading=!1,this.filterValue="",this.selection=new _t.Ov(!0,[]),this.tableId=yt.e5,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.facility={id:parseInt(t.facilityId,10),beanName:"Facility"},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(t=>{this.taskId=t.taskId,this.taskManager.getTaskById(this.taskId).subscribe(t=>{this.task=t,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(t=>{this.selection.clear(),this.taskResults=t,this.loading=!1})}removeTaskResult(){const t=(0,r.kZ)();t.width="600px",t.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(Pi,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.gz),p.Y36(yt.dB),p.Y36(c.Ob),p.Y36(u.x4),p.Y36(g.uw))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-task-results"]],decls:1,vars:1,consts:[[4,"ngIf"],[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,"displayedColumns","filterValue","pageSize","selection","taskResults","page",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","pageSize","selection","taskResults","page"]],template:function(t,e){1&t&&p.YNc(0,Ca,11,9,"div",0),2&t&&p.Q6J("ngIf",!e.loading)},directives:[s.O5,Qt.t,zt.L,b.lW,S.$g,Ta],pipes:[E.X$],styles:[""]}),t})();var ya=i(53134);const _a=[{path:"",component:n.P},{path:":facilityId",component:x,children:[{path:"",component:N,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:j,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:w.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:Bs,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:k.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:qs,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:Za,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:bt,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:Kt,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:$e,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:Ai,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:F,children:[{path:"",component:J,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:me,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:Zt,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:wi,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:di,data:{animation:"FacilitySettingsBlackListPage"}}]}]},{path:":facilityId/resources/:resourceId",component:Y.b,children:[{path:"",component:M.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:X.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:tt.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:Yi.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:Ps.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:ya.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:K.t,children:[{path:"",component:W.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:ki.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let La=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=p.oAB({type:t}),t.\u0275inj=p.cJS({imports:[[a.Bz.forChild(_a)],a.Bz]}),t})();var va=i(28780),xa=i(22727),Oa=i(6363);let Da=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=p.oAB({type:t}),t.\u0275inj=p.cJS({providers:[at.dp],imports:[[s.ez,La,va.m,xa.r,hi.ez,at.d4,Oa.UsersModule]]}),t})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/300-es5.4d98bfefe34fffafe58f.js b/dist/apps/admin-gui/300-es5.a828853dfe9786d61a8d.js similarity index 86% rename from dist/apps/admin-gui/300-es5.4d98bfefe34fffafe58f.js rename to dist/apps/admin-gui/300-es5.a828853dfe9786d61a8d.js index 930a89682..25d8786e0 100644 --- a/dist/apps/admin-gui/300-es5.4d98bfefe34fffafe58f.js +++ b/dist/apps/admin-gui/300-es5.a828853dfe9786d61a8d.js @@ -1 +1 @@ -!function(){function e(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){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 t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==i)return;var a,n,s=[],l=!0,r=!1;try{for(i=i.call(e);!(l=(a=i.next()).done)&&(s.push(a.value),!t||s.length!==t);l=!0);}catch(o){r=!0,n=o}finally{try{l||null==i.return||i.return()}finally{if(r)throw n}}return s}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=a(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,s=function(){};return{s:s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,r=!0,o=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){o=!0,l=e},f:function(){try{r||null==i.return||i.return()}finally{if(o)throw l}}}}function a(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i()[\]\\.,;:\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]{2,}))$/),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-_.:/]*$")}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.serviceControl=new le.NI(void 0,le.kI.required),this.destinationControl=new le.NI("",this.getDestinationValidator()),this.emailControl=new le.NI("",[le.kI.required,le.kI.pattern(this.emailRegex)]),this.facilitiesManager.getHosts(this.data.facility.id).subscribe(function(t){e.hosts=t,e.servicesOnFacility=!0,e.getServices(),e.loading=!1},function(){return e.loading=!1})}},{key:"getDestinationValidator",value:function(){var e=this;return function(t){if(!t.value)return null;var i;switch(e.selectedType){case"host":case"host-windows-proxy":i=e.hostPattern;break;case"email":case"semail":i=e.emailRegex;break;case"url":i=e.urlPattern;break;case"user@host":case"user@host-windows":i=e.userAtHostPattern;break;case"user@host:port":i=e.userAtHostPortPattern;break;case"service-specific":i=e.serviceSpecificPattern;break;default:return null}return i.test(t.value)?null:{invalidDestination:{value:t.value}}}}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,"all"===this.serviceControl.value?this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility({services:this.services,facility:this.data.facility.id}).subscribe(function(){e.dialogRef.close(!0)},function(){return e.loading=!1}):this.servicesManager.addDestinationToMultipleServices({services:this.services,facility:this.data.facility.id,destination:this.destinationControl.value,type:this.selectedType,propagationType:this.selectedPropagation}).subscribe(function(){e.dialogRef.close(!0)},function(){return e.loading=!1}):this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(this.serviceControl.value.id,this.data.facility.id).subscribe(function(){e.dialogRef.close(!0)},function(){return e.loading=!1}):this.servicesManager.addDestination(this.serviceControl.value.id,this.data.facility.id,this.destinationControl.value,this.selectedType,this.selectedPropagation).subscribe(function(){e.dialogRef.close(!0)},function(){return e.loading=!1})}},{key:"getServices",value:function(){var e=this;this.loading=!0,this.servicesOnFacility?this.servicesManager.getAssignedServices(this.data.facility.id).subscribe(function(t){e.services=t},function(){return e.loading=!1}):this.servicesManager.getServices().subscribe(function(t){e.services=t},function(){return e.loading=!1}),this.loading=!1,this.serviceControl.setValue(void 0)}},{key:"getTypeForView",value:function(e){return"semail"===e?"Send Mail":"service-specific"===e?"Service Specific":e}},{key:"invalidDestination",value:function(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(A.so),v.Y36(A.WI),v.Y36(f.IQ),v.Y36(f.KK))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-perun-web-apps-add-services-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",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,t){1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Ne,1,0,"mat-spinner",1),v.YNc(5,Ve,27,30,"div",2),v.TgZ(6,"div",3),v.TgZ(7,"button",4),v.NdJ("click",function(){return t.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return t.onSubmit()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.qZA(),v.qZA()),2&e&&(v.Tol(t.data.theme),v.xp6(2),v.Oqu(v.lcZ(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),v.xp6(2),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),v.xp6(2),v.Q6J("disabled",t.loading||t.invalidDestination()||t.serviceControl.invalid||"noService"===t.serviceControl.value),v.xp6(1),v.hij(" ",v.lcZ(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},directives:[A.uh,o.O5,A.H8,Z.lW,y.$g,A.xY,de.KE,Re.gD,le.Q7,le.JJ,le.oH,o.sg,ue.oG,le.On,pe.ey,de.TO,he.Nt,le.Fj],pipes:[_.X$],styles:[""],data:{animation:[d.BQ]}}),e}(),Pe=l(59403),Ge=l(19139),$e=l(94357);function je(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",8),v.NdJ("click",function(){return v.CHM(i),v.oxw().addDestination()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function Ke(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",9),v.NdJ("click",function(){return v.CHM(i),v.oxw().removeDestination()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("disabled",0===a.selected.selected.length),v.xp6(1),v.hij(" ",v.lcZ(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function We(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",10),v.NdJ("click",function(){return v.CHM(i),v.oxw().onAllow()}),v.TgZ(1,"mat-icon"),v._uU(2," check_circle_outline "),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("disabled",0===a.selected.selected.length||a.allSelectedAllowed()),v.xp6(3),v.hij(" ",v.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function Xe(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",10),v.NdJ("click",function(){return v.CHM(i),v.oxw().onBlock()}),v.TgZ(1,"mat-icon"),v._uU(2," block "),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("disabled",0===a.selected.selected.length||a.allSelectedBlocked()),v.xp6(3),v.hij(" ",v.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function et(e,t){1&e&&v._UZ(0,"mat-spinner",11)}function tt(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"app-perun-web-apps-destination-list",12),v.NdJ("page",function(e){return v.CHM(i),v.oxw().pageChanged(e)}),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("pageSize",a.pageSize)("filterValue",a.filterValue)("destinations",a.destinations)("selection",a.selected)("displayedColumns",a.displayedColumns)}}var it=function(){var e=function(){function e(t,i,a,n,l,r,o,c,u){s(this,e),this.dialog=t,this.facilitiesManager=i,this.servicesManager=a,this.tableConfigService=n,this.translate=l,this.notificator=r,this.route=o,this.authResolver=c,this.serviceManager=u,this.selected=new Oe.Ov(!0,[]),this.displayedColumns=["select","destinationId","service","destination","type","propagationType"],this.filterValue="",this.tableId=xe.Cf}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(function(t){e.facilitiesManager.getFacilityById(t.facilityId).subscribe(function(t){e.facility=t,e.refreshTable()})})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.servicesManager.getAllRichDestinationsForFacility(this.facility.id).subscribe(function(t){e.destinations=t,e.selected.clear(),e.setAuthRights(),e.loading=!1})}},{key:"setAuthRights",value:function(){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?["select","destinationId","service","destination","type","status","propagationType"]:["destinationId","service","destination","type","status","propagationType"]}},{key:"addDestination",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={facility:this.facility,theme:"facility-theme"},this.dialog.open(Be,t).afterClosed().subscribe(function(t){t&&e.translate.get("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS").subscribe(function(t){e.refreshTable(),e.notificator.showSuccess(t)})})}},{key:"removeDestination",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(De.u,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"blockServiceOnDestinations",value:function(e){var t=this;if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();var i=e.pop();this.serviceManager.blockServiceOnDestination(i.service.id,i.id).subscribe(function(){t.blockServiceOnDestinations(e)},function(){return t.loading=!1})}},{key:"onBlock",value:function(){this.loading=!0,this.blockServiceOnDestinations(this.selected.selected)}},{key:"allowServiceOnDestinations",value:function(e){var t=this;if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();var i=e.pop();this.serviceManager.unblockServiceOnDestinationById(i.service.id,i.id).subscribe(function(){t.allowServiceOnDestinations(e)},function(){return t.loading=!1})}},{key:"onAllow",value:function(){this.loading=!0,this.allowServiceOnDestinations(this.selected.selected)}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}},{key:"allSelectedAllowed",value:function(){return this.selected.selected.reduce(function(e,t){return e&&!t.blocked},!0)}},{key:"allSelectedBlocked",value:function(){return this.selected.selected.reduce(function(e,t){return e&&t.blocked},!0)}}]),e}();return e.id="FacilityServicesDestinationsComponent",e.\u0275fac=function(t){return new(t||e)(v.Y36(A.uw),v.Y36(f.IQ),v.Y36(f.KK),v.Y36(xe.dB),v.Y36(_.sK),v.Y36(g.V6),v.Y36(c.gz),v.Y36(g.x4),v.Y36(f.KK))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-perun-web-apps-facility-services-destinations"]],hostVars:2,hostBindings:function(e,t){2&e&&v.ekj("router-component",t.true)},decls:12,vars:10,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","destinations","selection","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","destinations","selection","displayedColumns","page"]],template:function(e,t){1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return t.refreshTable()}),v.qZA(),v.YNc(5,je,3,3,"button",2),v.YNc(6,Ke,3,4,"button",3),v.YNc(7,We,5,4,"button",4),v.YNc(8,Xe,5,4,"button",4),v.TgZ(9,"perun-web-apps-immediate-filter",5),v.NdJ("filter",function(e){return t.applyFilter(e)}),v.qZA(),v.YNc(10,et,1,0,"mat-spinner",6),v.YNc(11,tt,1,5,"app-perun-web-apps-destination-list",7),v.qZA()),2&e&&(v.xp6(2),v.Oqu(v.lcZ(3,8,"FACILITY_DETAIL.SERVICES_DESTINATIONS.TITLE")),v.xp6(3),v.Q6J("ngIf",!t.loading&&t.addAuth),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.removeAuth),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.allowAuth),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.blockAuth),v.xp6(1),v.Q6J("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading))},directives:[Pe.t,o.O5,Ge.L,Z.lW,b.Hw,y.$g,$e.q],pipes:[_.X$],styles:[""]}),e}(),at=l(17767);function nt(e,t){1&e&&v._UZ(0,"mat-spinner",3)}function st(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"div"),v.TgZ(1,"perun-web-apps-immediate-filter",4),v.NdJ("filter",function(e){return v.CHM(i),v.oxw().applyFilter(e)}),v.qZA(),v.TgZ(2,"div",5),v.TgZ(3,"perun-web-apps-owners-list",6),v.NdJ("page",function(e){return v.CHM(i),v.oxw().pageChanged(e)}),v.qZA(),v.qZA(),v.TgZ(4,"div",7),v.TgZ(5,"button",8),v.NdJ("click",function(){return v.CHM(i),v.oxw().onCancel()}),v._uU(6),v.ALo(7,"translate"),v.qZA(),v.TgZ(8,"button",9),v.NdJ("click",function(){return v.CHM(i),v.oxw().onAdd()}),v._uU(9),v.ALo(10,"translate"),v.qZA(),v.qZA(),v.qZA()}if(2&e){var a=v.oxw();v.xp6(1),v.Q6J("placeholder","DIALOGS.ADD_OWNERS.FILTER"),v.xp6(2),v.Q6J("filterValue",a.filterValue)("pageSize",a.pageSize)("owners",a.owners)("selection",a.selection),v.xp6(3),v.hij(" ",v.lcZ(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),v.xp6(2),v.Q6J("disabled",0===a.selection.selected.length||a.loading),v.xp6(1),v.hij(" ",v.lcZ(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}var lt=function(){var e=function(){function e(t,i,a,n,l,r,o){var c=this;s(this,e),this.dialogRef=t,this.data=i,this.notificator=a,this.tableConfigService=n,this.translate=l,this.ownersManagerService=r,this.facilitiesManagerService=o,this.extSources=[],this.selection=new Oe.Ov(!0,[]),this.filterValue="",this.tableId=xe.BV,this.owners=[],this.translate.get("DIALOGS.ADD_OWNERS.SUCCESS").subscribe(function(e){return c.successMessage=e})}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(function(t){e.owners=t.filter(function(t){return!e.data.forbiddenOwners.includes(t.id)}),e.loading=!1},function(){return e.loading=!1})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"onAdd",value:function(){var e=this;this.loading=!0,0!==this.selection.selected.length?this.facilitiesManagerService.addFacilityOwner(this.data.facilityId,this.selection.selected.pop().id).subscribe(function(){return e.onAdd()},function(){return e.loading=!1}):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(A.so),v.Y36(A.WI),v.Y36(g.V6),v.Y36(xe.dB),v.Y36(_.sK),v.Y36(f.aC),v.Y36(f.IQ))},e.\u0275cmp=v.Xpm({type:e,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","pageSize","owners","selection","page"],["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,t){1&e&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div"),v.YNc(4,nt,1,0,"mat-spinner",1),v.YNc(5,st,11,12,"div",2),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,6,"DIALOGS.ADD_OWNERS.TITLE")),v.xp6(2),v.Tol(t.theme),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading))},directives:[A.uh,o.O5,y.$g,Ge.L,A.xY,at.Q,A.H8,Z.lW],pipes:[_.X$],styles:[""]}),e}(),rt=l(67033);function ot(e,t){1&e&&v._UZ(0,"mat-spinner",6)}function ct(e,t){1&e&&v._UZ(0,"th",15)}function ut(e,t){if(1&e&&(v.TgZ(0,"td",16),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.hij(" ",i.name," ")}}function dt(e,t){1&e&&v._UZ(0,"tr",17)}function ht(e,t){1&e&&v._UZ(0,"tr",18)}function ft(e,t){if(1&e&&(v.TgZ(0,"div",7),v.TgZ(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",8),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"table",9),v.ynx(8,10),v.YNc(9,ct,1,0,"th",11),v.YNc(10,ut,2,1,"td",12),v.BQk(),v.YNc(11,dt,1,0,"tr",13),v.YNc(12,ht,1,0,"tr",14),v.qZA(),v.qZA()),2&e){var i=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,5,"DIALOGS.REMOVE_OWNERS.DESCRIPTION")," "),v.xp6(3),v.hij(" ",v.lcZ(6,7,"DIALOGS.REMOVE_OWNERS.ASK")," "),v.xp6(2),v.Q6J("dataSource",i.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",i.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",i.displayedColumns)}}var pt=function(){var e=function(){function e(t,i,a,n,l){var r=this;s(this,e),this.dialogRef=t,this.data=i,this.notificator=a,this.translate=n,this.facilitiesManagerService=l,this.displayedColumns=["name"],n.get("DIALOGS.REMOVE_OWNERS.SUCCESS").subscribe(function(e){return r.successMessage=e})}return r(e,[{key:"ngOnInit",value:function(){this.dataSource=new rt.by(this.data.owners),this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,0!==this.data.owners.length?this.facilitiesManagerService.removeFacilityOwner(this.data.facilityId,this.data.owners.pop().id).subscribe(function(){return e.onSubmit()},function(){return e.loading=!1}):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(A.so),v.Y36(A.WI),v.Y36(g.V6),v.Y36(_.sK),v.Y36(f.IQ))},e.\u0275cmp=v.Xpm({type:e,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,t){1&e&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div"),v.YNc(4,ot,1,0,"mat-spinner",1),v.YNc(5,ft,13,9,"div",2),v.TgZ(6,"div",3),v.TgZ(7,"button",4),v.NdJ("click",function(){return t.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return t.onSubmit()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.qZA(),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),v.xp6(2),v.Tol(t.theme),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),v.xp6(2),v.Q6J("disabled",t.loading),v.xp6(1),v.hij(" ",v.lcZ(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},directives:[A.uh,o.O5,A.H8,Z.lW,y.$g,A.xY,rt.BZ,rt.w1,rt.fO,rt.Dz,rt.as,rt.nj,rt.ge,rt.ev,rt.XQ,rt.Gk],pipes:[_.X$],styles:[""]}),e}();function gt(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"perun-web-apps-refresh-button",7),v.NdJ("refresh",function(){return v.CHM(i),v.oxw().refreshTable()}),v.qZA()}}function mt(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",8),v.NdJ("click",function(){return v.CHM(i),v.oxw().onCreate()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function St(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",9),v.NdJ("click",function(){return v.CHM(i),v.oxw().onRemove()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("disabled",0===a.selection.selected.length),v.xp6(1),v.hij(" ",v.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function vt(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"perun-web-apps-immediate-filter",10),v.NdJ("filter",function(e){return v.CHM(i),v.oxw().applyFilter(e)}),v.qZA()}2&e&&v.Q6J("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER")}function At(e,t){1&e&&v._UZ(0,"mat-spinner",11)}function Tt(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"perun-web-apps-owners-list",12),v.NdJ("page",function(e){return v.CHM(i),v.oxw().pageChanged(e)}),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("pageSize",a.pageSize)("filterValue",a.filterValue)("owners",a.owners)("displayedColumns",a.displayedColumns)("selection",a.selection)}}var It=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.facilitiesManagerService=t,this.tableConfigService=i,this.route=a,this.dialog=n,this.authResolver=l,this.owners=[],this.selection=new Oe.Ov(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=xe.zp}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.filterValue="",this.route.parent.parent.params.subscribe(function(t){e.facilityId=parseInt(t.facilityId,10),e.facility={id:e.facilityId,beanName:"Facility"},e.refreshTable()})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.selection.clear(),this.facilitiesManagerService.getFacilityOwners(this.facilityId).subscribe(function(t){e.owners=t,e.setAuthRights(),e.loading=!1})}},{key:"setAuthRights",value:function(){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"]}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"onCreate",value:function(){var e=this,t=(0,p.kZ)();t.width="800px",t.data={theme:"facility-theme",facilityId:this.facilityId,forbiddenOwners:this.owners.map(function(e){return e.id})},this.dialog.open(lt,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"onRemove",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facilityId},this.dialog.open(pt,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(f.IQ),v.Y36(xe.dB),v.Y36(c.gz),v.Y36(A.uw),v.Y36(g.x4))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-facility-settings-owners"]],decls:9,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["class","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",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","owners","displayedColumns","selection","page",4,"ngIf"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","owners","displayedColumns","selection","page"]],template:function(e,t){1&e&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.YNc(3,gt,1,0,"perun-web-apps-refresh-button",1),v.YNc(4,mt,3,3,"button",2),v.YNc(5,St,3,4,"button",3),v.YNc(6,vt,1,1,"perun-web-apps-immediate-filter",4),v.YNc(7,At,1,0,"mat-spinner",5),v.YNc(8,Tt,1,5,"perun-web-apps-owners-list",6)),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,7,"FACILITY_DETAIL.SETTINGS.OWNERS.TITLE")),v.xp6(2),v.Q6J("ngIf",!t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.addAuth),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.removeAuth),v.xp6(1),v.Q6J("ngIf",!t.loading),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading))},directives:[o.O5,Pe.t,Z.lW,Ge.L,y.$g,at.Q],pipes:[_.X$],styles:[""]}),e}();function yt(e,t){1&e&&v._UZ(0,"mat-spinner",7)}function bt(e,t){1&e&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function Et(e,t){if(1&e&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e){var i=v.oxw(2);v.xp6(1),v.AsE(" ",v.lcZ(2,2,"DIALOGS.ADD_HOST.INVALID_HOST"),"",i.hostsCtrl.getError("invalidHost").value," ")}}function Ct(e,t){if(1&e&&(v.TgZ(0,"div",8),v.TgZ(1,"mat-form-field"),v.TgZ(2,"textarea",9),v._uU(3," "),v.qZA(),v.YNc(4,bt,3,3,"mat-error",10),v.YNc(5,Et,3,4,"mat-error",10),v.qZA(),v.TgZ(6,"div",11),v._uU(7),v.ALo(8,"translate"),v.qZA(),v.qZA()),2&e){var i=v.oxw();v.xp6(2),v.Q6J("formControl",i.hostsCtrl),v.xp6(2),v.Q6J("ngIf",i.hostsCtrl.hasError("required")),v.xp6(1),v.Q6J("ngIf",i.hostsCtrl.hasError("invalidHost")),v.xp6(2),v.Oqu(v.lcZ(8,4,"DIALOGS.ADD_HOST.HINT"))}}var Zt=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.dialogRef=t,this.data=i,this.facilitiesManager=a,this.notificator=n,this.translate=l,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}$")}return r(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.facilityName=this.data.facilityName,this.hostsCtrl=new le.NI("",[le.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}},{key:"onAdd",value:function(){var e=this;this.loading=!0;var t,a=[],n=i(this.hostsCtrl.value.split("\n"));try{for(n.s();!(t=n.n()).done;){var s=t.value;a=a.concat(this.parseHostName(s))}}catch(l){n.e(l)}finally{n.f()}this.facilitiesManager.addHosts(this.data.facilityId,a).subscribe(function(){e.notificator.showSuccess(e.translate.instant("DIALOGS.ADD_HOST.SUCCESS")),e.dialogRef.close(!0)},function(){return e.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"hostsNameValidator",value:function(){var e=this;return function(t){var a,n=[],s=i(t.value.split("\n"));try{for(s.s();!(a=s.n()).done;){var l=a.value;n=n.concat(e.parseHostName(l))}}catch(u){s.e(u)}finally{s.f()}var r,o=i(n);try{for(o.s();!(r=o.n()).done;){var c=r.value;if(!e.hostPattern.test(c))return{invalidHost:{value:c}}}}catch(u){o.e(u)}finally{o.f()}return null}}},{key:"parseHostName",value:function(e){var i=new RegExp("[[0-9]+-[0-9]+]","g"),a=e.split(i),n=e.match(i);if(null==n)return""===e?[]:[e];for(var s=[],l=0;l_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]]))}},{key:"addHost",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={facilityId:this.facility.id,facilityName:this.facility.name,theme:"facility-theme"},this.dialog.open(Zt,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"removeHost",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(Rt,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(A.uw),v.Y36(f.IQ),v.Y36(xe.dB),v.Y36(c.gz),v.Y36(g.x4))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-facility-hosts"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",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,"pageSize","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId","page"]],template:function(e,t){1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return t.refreshTable()}),v.qZA(),v.YNc(5,jt,3,3,"button",2),v.YNc(6,Kt,3,4,"button",3),v.TgZ(7,"perun-web-apps-immediate-filter",4),v.NdJ("filter",function(e){return t.applyFilter(e)}),v.qZA(),v.YNc(8,Wt,1,0,"mat-spinner",5),v.YNc(9,Xt,1,7,"app-hosts-list",6),v.qZA()),2&e&&(v.xp6(2),v.Oqu(v.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),v.xp6(3),v.Q6J("ngIf",!t.loading&&t.addAuth),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.removeAuth),v.xp6(1),v.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading))},directives:[Pe.t,o.O5,Ge.L,Z.lW,y.$g,$t],pipes:[_.X$],styles:[""]}),e}();function ti(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"th",14),v.TgZ(1,"mat-checkbox",15),v.NdJ("change",function(e){v.CHM(i);var t=v.oxw();return e?t.masterToggle():null}),v.qZA(),v.qZA()}if(2&e){var a=v.oxw();v.xp6(1),v.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function ii(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"td",16),v.TgZ(1,"mat-checkbox",17),v.NdJ("change",function(e){var t=v.CHM(i).$implicit,a=v.oxw();return e?a.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),v.qZA(),v.qZA()}if(2&e){var a=t.$implicit,n=v.oxw();v.xp6(1),v.Q6J("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function ai(e,t){1&e&&(v.TgZ(0,"th",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")))}function ni(e,t){if(1&e&&(v.TgZ(0,"td",16),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i[1].id)}}function si(e,t){1&e&&(v.TgZ(0,"th",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")))}function li(e,t){if(1&e&&(v.TgZ(0,"td",19),v._uU(1),v.ALo(2,"userFullName"),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(v.lcZ(2,1,i[1]))}}function ri(e,t){1&e&&(v.TgZ(0,"th",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")))}function oi(e,t){if(1&e&&(v.TgZ(0,"td",19),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i[0].description)}}function ci(e,t){1&e&&v._UZ(0,"tr",20)}function ui(e,t){1&e&&v._UZ(0,"tr",21)}function di(e,t){1&e&&(v.TgZ(0,"app-alert",22),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function hi(e,t){1&e&&(v.TgZ(0,"app-alert",22),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}var fi=function(){var e=function(){function e(t,i){s(this,e),this.authResolver=t,this.tableCheckbox=i,this.bansOnFacilitiesWithUsers=[],this.selection=new Oe.Ov(!0,[]),this.pageSize=10,this.page=new v.vpe,this.displayedColumns=["select","userId","name","reason"],this.pageSizeOptions=p.f7}return r(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"userId"!==e})),this.dataSource=new rt.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){case"userId":return e[1].id.toString();case"reason":return e[0].description;case"name":return(0,p.hu)(e[1]);default:return""}}},{key:"exportData",value:function(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,p.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,p.pR)(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e[0].userId+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(g.x4),v.Y36(g.UA))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(e,t){var i;(1&e&&(v.Gf(Nt.YE,7),v.Gf(p.l9,7)),2&e)&&(v.iGM(i=v.CRH())&&(t.matSort=i.first),v.iGM(i=v.CRH())&&(t.child=i.first))},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",pageSize:"pageSize"},outputs:{page:"page"},features:[v.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(v.TgZ(0,"div",0),v.TgZ(1,"perun-web-apps-table-wrapper",1),v.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),v.TgZ(2,"table",2),v.ynx(3,3),v.YNc(4,ti,2,3,"th",4),v.YNc(5,ii,2,2,"td",5),v.BQk(),v.ynx(6,6),v.YNc(7,ai,3,3,"th",7),v.YNc(8,ni,2,1,"td",5),v.BQk(),v.ynx(9,8),v.YNc(10,si,3,3,"th",7),v.YNc(11,li,3,3,"td",9),v.BQk(),v.ynx(12,10),v.YNc(13,ri,3,3,"th",7),v.YNc(14,oi,2,1,"td",9),v.BQk(),v.YNc(15,ci,1,0,"tr",11),v.YNc(16,ui,1,0,"tr",12),v.qZA(),v.qZA(),v.qZA(),v.YNc(17,di,3,3,"app-alert",13),v.YNc(18,hi,3,3,"app-alert",13)),2&e&&(v.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.bansOnFacilitiesWithUsers.length),v.xp6(1),v.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),v.xp6(1),v.Q6J("dataSource",t.dataSource),v.xp6(13),v.Q6J("matHeaderRowDef",t.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",t.displayedColumns),v.xp6(1),v.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.bansOnFacilitiesWithUsers.length),v.xp6(1),v.Q6J("ngIf",0===t.bansOnFacilitiesWithUsers.length))},directives:[wt.l,rt.BZ,Nt.YE,rt.w1,rt.fO,rt.Dz,rt.as,rt.nj,o.O5,rt.ge,ue.oG,rt.ev,Nt.nU,rt.XQ,rt.Gk,Mt.w],pipes:[_.X$,ge.d],styles:[""]}),e}();function pi(e,t){1&e&&v._UZ(0,"mat-spinner",5)}function gi(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"app-perun-web-apps-blacklist-list",6),v.NdJ("page",function(e){return v.CHM(i),v.oxw().pageChanged(e)}),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("pageSize",a.pageSize)("filterValue",a.filterValue)("bansOnFacilitiesWithUsers",a.bansOnFacilitiesWithUsers)("selection",a.selected)}}var mi=function(){var e=function(){function e(t,i,a,n){s(this,e),this.facilitiesManager=t,this.usersManager=i,this.tableConfigService=a,this.route=n,this.bansOnFacilitiesWithUsers=[],this.selected=new Oe.Ov(!0,[]),this.filterValue="",this.tableId=xe.NG}return r(e,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.route.parent.parent.params.subscribe(function(t){e.facilitiesManager.getBansForFacility(t.facilityId).subscribe(function(t){var a,n=i(t);try{for(n.s();!(a=n.n()).done;){var s=a.value,l=void 0;e.usersManager.getUserById(s.userId).subscribe(function(e){l=e}),e.bansOnFacilitiesWithUsers.push([s,l])}}catch(r){n.e(r)}finally{n.f()}e.selected.clear(),e.loading=!1})})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(f.IQ),v.Y36(f.Fv),v.Y36(xe.dB),v.Y36(c.gz))},e.\u0275cmp=v.Xpm({type:e,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,"pageSize","filterValue","bansOnFacilitiesWithUsers","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","bansOnFacilitiesWithUsers","selection","page"]],template:function(e,t){1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return t.refreshTable()}),v.qZA(),v.TgZ(5,"perun-web-apps-immediate-filter",2),v.NdJ("filter",function(e){return t.applyFilter(e)}),v.ALo(6,"translate"),v.qZA(),v.YNc(7,pi,1,0,"mat-spinner",3),v.YNc(8,gi,1,4,"app-perun-web-apps-blacklist-list",4),v.qZA()),2&e&&(v.xp6(2),v.Oqu(v.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),v.xp6(3),v.Q6J("placeholder",v.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),v.xp6(2),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading))},directives:[Pe.t,Ge.L,o.O5,y.$g,fi],pipes:[_.X$],styles:[""]}),e}(),Si=l(41939),vi=l(13572),Ai=l(40695),Ti=l(41186),Ii=["list"];function yi(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"perun-web-apps-attributes-list",6,7),v.NdJ("page",function(e){return v.CHM(i),v.oxw().pageChanged(e)}),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("pageSize",a.pageSize)("attributes",a.attributes)("selection",a.selected)}}var bi=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.dialog=t,this.attributesManager=i,this.facilityManager=a,this.tableConfigService=n,this.route=l,this.attributes=[],this.selected=new Oe.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=xe.rF}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.params.subscribe(function(t){e.hostId=t.hostId,e.facilityManager.getHostById(e.hostId).subscribe(function(t){e.host=t}),e.refreshTable()})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(function(t){e.attributes=(0,p.MX)(t),e.selected.clear(),e.loading=!1})}},{key:"onSave",value:function(){var e=this;this.list.updateMapAttributes();var t=(0,p.kZ)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(m.wA,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"addAttribute",value:function(){var e=this,t=(0,p.kZ)();t.width="1050px",t.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(Ai.n,t).afterClosed().subscribe(function(t){"saved"===t&&e.refreshTable()})}},{key:"removeAttribute",value:function(){var e=this,t=(0,p.kZ)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(vi.k,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(A.uw),v.Y36(f.H8),v.Y36(f.IQ),v.Y36(xe.dB),v.Y36(c.gz))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-facility-hosts-detail"]],viewQuery:function(e,t){var i;(1&e&&v.Gf(Ii,5),2&e)&&(v.iGM(i=v.CRH())&&(t.list=i.first))},decls:15,vars:16,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"pageSize","attributes","selection","page",4,"ngIf"],[3,"pageSize","attributes","selection","page"],["list",""]],template:function(e,t){1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return t.refreshTable()}),v.qZA(),v.TgZ(5,"button",2),v.NdJ("click",function(){return t.addAttribute()}),v._uU(6),v.ALo(7,"translate"),v.qZA(),v.TgZ(8,"button",3),v.NdJ("click",function(){return t.onSave()}),v._uU(9),v.ALo(10,"translate"),v.qZA(),v.TgZ(11,"button",4),v.NdJ("click",function(){return t.removeAttribute()}),v._uU(12),v.ALo(13,"translate"),v.qZA(),v.YNc(14,yi,2,3,"perun-web-apps-attributes-list",5),v.qZA()),2&e&&(v.xp6(2),v.AsE(" ",v.lcZ(3,8,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",t.host.hostname,""),v.xp6(4),v.hij(" ",v.lcZ(7,10,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),v.xp6(2),v.Q6J("disabled",0===t.selected.selected.length),v.xp6(1),v.hij(" ",v.lcZ(10,12,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),v.xp6(2),v.Q6J("disabled",0===t.selected.selected.length),v.xp6(1),v.hij(" ",v.lcZ(13,14,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),v.xp6(2),v.Q6J("ngIf",!t.loading))},directives:[Pe.t,Z.lW,o.O5,Ti.p],pipes:[_.X$],styles:[""]}),e}();function Ei(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"th",14),v.TgZ(1,"mat-checkbox",15),v.NdJ("change",function(e){v.CHM(i);var t=v.oxw();return e?t.masterToggle():null}),v.qZA(),v.qZA()}if(2&e){var a=v.oxw();v.xp6(1),v.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function Ci(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"td",16),v.TgZ(1,"mat-checkbox",17),v.NdJ("change",function(e){var t=v.CHM(i).$implicit,a=v.oxw();return e?a.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),v.qZA(),v.qZA()}if(2&e){var a=t.$implicit,n=v.oxw();v.xp6(1),v.Q6J("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function Zi(e,t){1&e&&(v.TgZ(0,"th",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")))}function _i(e,t){if(1&e&&(v.TgZ(0,"td",16),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.id)}}function ki(e,t){1&e&&(v.TgZ(0,"th",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")))}function Li(e,t){if(1&e&&(v.TgZ(0,"td",19),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.name)}}function xi(e,t){1&e&&(v.TgZ(0,"th",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")))}function Oi(e,t){if(1&e&&(v.TgZ(0,"td",19),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.description)}}function Di(e,t){1&e&&v._UZ(0,"tr",20)}function Ri(e,t){1&e&&v._UZ(0,"tr",21)}function Ni(e,t){1&e&&(v.TgZ(0,"app-alert",22),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function wi(e,t){1&e&&(v.TgZ(0,"app-alert",22),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}var Yi=function(){var e=function(){function e(t,i){s(this,e),this.authResolver=t,this.tableCheckbox=i,this.securityTeams=[],this.selection=new Oe.Ov(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","name","description"],this.page=new v.vpe,this.pageSizeOptions=p.f7}return r(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new rt.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"description":return e.description;default:return""}}},{key:"exportData",value:function(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,p.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,p.pR)(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(g.x4),v.Y36(g.UA))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-security-teams-list"]],viewQuery:function(e,t){var i;(1&e&&(v.Gf(Nt.YE,7),v.Gf(p.l9,7)),2&e)&&(v.iGM(i=v.CRH())&&(t.matSort=i.first),v.iGM(i=v.CRH())&&(t.child=i.first))},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[v.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(v.TgZ(0,"div",0),v.TgZ(1,"perun-web-apps-table-wrapper",1),v.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),v.TgZ(2,"table",2),v.ynx(3,3),v.YNc(4,Ei,2,3,"th",4),v.YNc(5,Ci,2,2,"td",5),v.BQk(),v.ynx(6,6),v.YNc(7,Zi,3,3,"th",7),v.YNc(8,_i,2,1,"td",5),v.BQk(),v.ynx(9,8),v.YNc(10,ki,3,3,"th",7),v.YNc(11,Li,2,1,"td",9),v.BQk(),v.ynx(12,10),v.YNc(13,xi,3,3,"th",7),v.YNc(14,Oi,2,1,"td",9),v.BQk(),v.YNc(15,Di,1,0,"tr",11),v.YNc(16,Ri,1,0,"tr",12),v.qZA(),v.qZA(),v.qZA(),v.YNc(17,Ni,3,3,"app-alert",13),v.YNc(18,wi,3,3,"app-alert",13)),2&e&&(v.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.securityTeams.length),v.xp6(1),v.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),v.xp6(1),v.Q6J("dataSource",t.dataSource),v.xp6(13),v.Q6J("matHeaderRowDef",t.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",t.displayedColumns),v.xp6(1),v.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.securityTeams.length),v.xp6(1),v.Q6J("ngIf",0===t.securityTeams.length))},directives:[wt.l,rt.BZ,Nt.YE,rt.w1,rt.fO,rt.Dz,rt.as,rt.nj,o.O5,rt.ge,ue.oG,rt.ev,Nt.nU,rt.XQ,rt.Gk,Mt.w],pipes:[_.X$],styles:[""]}),e}();function Mi(e,t){1&e&&v._UZ(0,"mat-spinner",5)}function Fi(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"app-security-teams-list",6),v.NdJ("page",function(e){return v.CHM(i),v.oxw().pageChanged(e)}),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("pageSize",a.pageSize)("filterValue",a.filterValue)("securityTeams",a.securityTeams)("displayedColumns",a.displayedColumns)("selection",a.selected)}}var qi=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.dialog=t,this.facilitiesManager=i,this.tableConfigService=a,this.route=n,this.authResolver=l,this.securityTeams=[],this.selected=new Oe.Ov(!0,[]),this.filterValue="",this.tableId=xe.O9,this.displayedColumns=[]}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(t){e.facilitiesManager.getFacilityById(t.facilityId).subscribe(function(t){e.facility=t,e.refreshTable()})})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(function(t){e.securityTeams=t,e.selected.clear(),e.setAuthRights(),e.loading=!1})}},{key:"setAuthRights",value:function(){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"]}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"addSecurityTeam",value:function(){}},{key:"removeSecurityTeam",value:function(){}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(A.uw),v.Y36(f.IQ),v.Y36(xe.dB),v.Y36(c.gz),v.Y36(g.x4))},e.\u0275cmp=v.Xpm({type:e,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,"pageSize","filterValue","securityTeams","displayedColumns","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","securityTeams","displayedColumns","selection","page"]],template:function(e,t){1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return t.refreshTable()}),v.qZA(),v.TgZ(5,"perun-web-apps-immediate-filter",2),v.NdJ("filter",function(e){return t.applyFilter(e)}),v.qZA(),v.YNc(6,Mi,1,0,"mat-spinner",3),v.YNc(7,Fi,1,5,"app-security-teams-list",4),v.qZA()),2&e&&(v.xp6(2),v.Oqu(v.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),v.xp6(3),v.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading))},directives:[Pe.t,Ge.L,o.O5,y.$g,Yi],pipes:[_.X$],styles:[""]}),e}(),Ui=l(64359),Ji=l(75374);function Qi(e,t){1&e&&v._UZ(0,"mat-spinner",6)}function zi(e,t){1&e&&(v.TgZ(0,"th",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")))}function Hi(e,t){if(1&e&&(v.TgZ(0,"td",18),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.hij(" ",i.id," ")}}function Vi(e,t){1&e&&(v.TgZ(0,"th",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")))}function Bi(e,t){if(1&e&&(v.TgZ(0,"td",18),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.hij(" ",i.destination.destination," ")}}function Pi(e,t){1&e&&(v.TgZ(0,"th",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function Gi(e,t){if(1&e&&(v.TgZ(0,"td",18),v._uU(1),v.ALo(2,"date"),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.hij(" ",v.xi3(2,1,i.timestamp,"d.M.y H:mm:ss")," ")}}function $i(e,t){1&e&&v._UZ(0,"tr",19)}function ji(e,t){1&e&&v._UZ(0,"tr",20)}function Ki(e,t){if(1&e&&(v.TgZ(0,"div",7),v.TgZ(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",8),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"table",9),v.ynx(8,10),v.YNc(9,zi,3,3,"th",11),v.YNc(10,Hi,2,1,"td",12),v.BQk(),v.ynx(11,13),v.YNc(12,Vi,3,3,"th",11),v.YNc(13,Bi,2,1,"td",12),v.BQk(),v.ynx(14,14),v.YNc(15,Pi,3,3,"th",11),v.YNc(16,Gi,3,4,"td",12),v.BQk(),v.YNc(17,$i,1,0,"tr",15),v.YNc(18,ji,1,0,"tr",16),v.qZA(),v.qZA()),2&e){var i=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),v.xp6(3),v.hij(" ",v.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),v.xp6(2),v.Q6J("dataSource",i.dataSource),v.xp6(10),v.Q6J("matHeaderRowDef",i.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",i.displayedColumns)}}var Wi=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.dialogRef=t,this.data=i,this.taskManager=a,this.notificator=n,this.translate=l,this.loading=!1,this.dataSource=new rt.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}return r(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}},{key:"deleteResults",value:function(){var e=this;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(function(){e.deleteResults()},function(){return e.loading=!1})}},{key:"onDelete",value:function(){this.deleteResults()}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(A.so),v.Y36(A.WI),v.Y36(f.Ob),v.Y36(g.V6),v.Y36(_.sK))},e.\u0275cmp=v.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div"),v.YNc(4,Qi,1,0,"mat-spinner",1),v.YNc(5,Ki,19,9,"div",2),v.TgZ(6,"div",3),v.TgZ(7,"button",4),v.NdJ("click",function(){return t.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return t.onDelete()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.qZA(),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),v.xp6(2),v.Tol(t.theme),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),v.xp6(2),v.Q6J("disabled",t.loading),v.xp6(1),v.hij(" ",v.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},directives:[A.uh,o.O5,A.H8,Z.lW,y.$g,A.xY,rt.BZ,rt.w1,rt.fO,rt.Dz,rt.as,rt.nj,rt.ge,rt.ev,rt.XQ,rt.Gk],pipes:[_.X$,o.uU],styles:[""]}),e}(),Xi=l(88884);function ea(e,t){1&e&&v._UZ(0,"mat-spinner",6)}function ta(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"mat-checkbox",13),v.NdJ("change",function(e){return v.CHM(i),v.oxw(2).change(e)}),v.ALo(1,"translate"),v._uU(2),v.ALo(3,"translate"),v.qZA()}if(2&e){var a=v.oxw(2);v.s9C("matTooltip",v.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),v.Q6J("matTooltipDisabled",!a.checkboxesDisabled)("disabled",a.checkboxesDisabled)("checked",a.taskChecked),v.xp6(2),v.hij(" ",v.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function ia(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"mat-checkbox",14),v.NdJ("change",function(e){return v.CHM(i),v.oxw(2).change(e)}),v.ALo(1,"translate"),v._uU(2),v.ALo(3,"translate"),v.qZA()}if(2&e){var a=v.oxw(2);v.s9C("matTooltip",v.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),v.Q6J("matTooltipDisabled",!a.checkboxesDisabled)("disabled",a.checkboxesDisabled)("checked",a.taskResultsChecked),v.xp6(2),v.hij(" ",v.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function aa(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"perun-web-apps-resources-list",15),v.NdJ("allSelected",function(e){return v.CHM(i),v.oxw(2).disableCheckboxes(e)})("page",function(e){return v.CHM(i),v.oxw(2).pageChanged(e)}),v.qZA()}if(2&e){var a=v.oxw(2);v.Q6J("pageSize",a.pageSize)("disableRouting",!0)("resources",a.resources)("selection",a.selected)("displayedColumns",a.displayedColumns)}}function na(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"div",7),v.TgZ(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div"),v.YNc(5,ta,4,9,"mat-checkbox",8),v.YNc(6,ia,4,9,"mat-checkbox",9),v.TgZ(7,"mat-checkbox",10),v.NdJ("change",function(e){return v.CHM(i),v.oxw().change(e)}),v.ALo(8,"translate"),v._uU(9),v.ALo(10,"translate"),v.qZA(),v.qZA(),v.TgZ(11,"p"),v._uU(12),v.ALo(13,"translate"),v.qZA(),v.TgZ(14,"div",11),v._uU(15),v.ALo(16,"translate"),v.qZA(),v.YNc(17,aa,1,5,"perun-web-apps-resources-list",12),v.qZA()}if(2&e){var a=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),v.xp6(3),v.Q6J("ngIf",null!==a.taskId),v.xp6(1),v.Q6J("ngIf",null!==a.taskId),v.xp6(1),v.s9C("matTooltip",v.lcZ(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),v.Q6J("matTooltipDisabled",!a.checkboxesDisabled)("disabled",a.checkboxesDisabled)("checked",a.destinationChecked),v.xp6(2),v.hij(" ",v.lcZ(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),v.xp6(3),v.Oqu(v.lcZ(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),v.xp6(3),v.hij(" ",v.lcZ(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),v.xp6(2),v.Q6J("ngIf",!a.loading)}}var sa=function(){var t=function(){function t(i,a,n,l,r,o,c,u,d){s(this,t),this.dialogRef=i,this.data=a,this.tableConfigService=n,this.resourcesManager=l,this.tasksManager=r,this.serviceManager=o,this.translate=c,this.notificator=u,this.cd=d,this.loading=!1,this.dataSource=new rt.by(this.data.resource),this.selected=new Oe.Ov(!0,e(this.dataSource.data)),this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=xe.$V}return r(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),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}},{key:"remove",value:function(){var e=this;this.loading=!0,this.taskResultsChecked&&!this.taskChecked&&null!==this.taskId&&this.tasksManager.getTaskResultsForGUIByTask(this.taskId).subscribe(function(t){t.forEach(function(t){e.tasksManager.deleteTaskResultById({taskResultId:t.id}).subscribe()})}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe(function(t){t.forEach(function(t){e.serviceManager.removeDestination(e.serviceId,e.facilityId,t.destination,t.type).subscribe()})}),this.selected.selected.forEach(function(t){e.resourcesManager.removeService(t.id,e.serviceId).subscribe(function(){e.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.dialogRef.close(!0)})},function(){return e.loading=!1})})}},{key:"cancel",value:function(){this.dialogRef.close(!1)}},{key:"disableCheckboxes",value:function(e){e&&this.checkboxesDisabled&&this.changeCheckboxes(!0),e||this.checkboxesDisabled||this.changeCheckboxes(!1)}},{key:"changeCheckboxes",value:function(e){this.checkboxesDisabled=!e,this.taskChecked=e,this.taskResultsChecked=e,this.destinationChecked=e,this.cd.detectChanges()}},{key:"change",value:function(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}}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(v.Y36(A.so),v.Y36(A.WI),v.Y36(xe.dB),v.Y36(f.xk),v.Y36(f.Ob),v.Y36(f.KK),v.Y36(_.sK),v.Y36(g.V6),v.Y36(v.sBO))},t.\u0275cmp=v.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["id","task","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","taskResults","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","destination","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[1,"font-weight-bold"],[3,"pageSize","disableRouting","resources","selection","displayedColumns","allSelected","page",4,"ngIf"],["id","task","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],["id","taskResults","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[3,"pageSize","disableRouting","resources","selection","displayedColumns","allSelected","page"]],template:function(e,t){1&e&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div"),v.YNc(4,ea,1,0,"mat-spinner",1),v.YNc(5,na,18,21,"div",2),v.TgZ(6,"div",3),v.TgZ(7,"button",4),v.NdJ("click",function(){return t.cancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return t.remove()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.qZA(),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),v.xp6(2),v.Tol(t.theme),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),v.xp6(2),v.Q6J("disabled",t.loading||0===t.selected.selected.length),v.xp6(1),v.hij(" ",v.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},directives:[A.uh,o.O5,A.H8,Z.lW,y.$g,A.xY,ue.oG,E.gM,Xi.C],pipes:[_.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),t}();function la(e,t){1&e&&v._UZ(0,"mat-spinner",6)}function ra(e,t){1&e&&(v.TgZ(0,"div",7),v.TgZ(1,"div",8),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.qZA()),2&e&&(v.xp6(2),v.hij(" ",v.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}var oa=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.dialogRef=t,this.data=i,this.tasksManager=a,this.translate=n,this.notificator=l,this.loading=!1}return r(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.taskId=this.data.taskId}},{key:"remove",value:function(){var e=this;this.loading=!0,this.tasksManager.deleteTask({task:this.taskId}).subscribe(function(){e.translate.get("DIALOGS.DELETE_TASK.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.dialogRef.close(!0)})},function(){return e.loading=!1})}},{key:"cancel",value:function(){this.dialogRef.close(!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(A.so),v.Y36(A.WI),v.Y36(f.Ob),v.Y36(_.sK),v.Y36(g.V6))},e.\u0275cmp=v.Xpm({type:e,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(e,t){1&e&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div"),v.YNc(4,la,1,0,"mat-spinner",1),v.YNc(5,ra,4,3,"div",2),v.TgZ(6,"div",3),v.TgZ(7,"button",4),v.NdJ("click",function(){return t.cancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return t.remove()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.qZA(),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),v.xp6(2),v.Tol(t.theme),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),v.xp6(2),v.Q6J("disabled",t.loading),v.xp6(1),v.hij(" ",v.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},directives:[A.uh,o.O5,A.H8,Z.lW,y.$g,A.xY],pipes:[_.X$],styles:[""]}),e}(),ca=l(8055),ua=function(){var e=function(){function e(){s(this,e)}return r(e,[{key:"transform",value:function(e){return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=v.Yjl({name:"serviceStateBlockedToString",type:e,pure:!0}),e}();function da(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"th",17),v.TgZ(1,"mat-checkbox",18),v.NdJ("change",function(e){v.CHM(i);var t=v.oxw();return e&&t.masterToggle(),t.selectionChange.emit()}),v.qZA(),v.qZA()}if(2&e){var a=v.oxw();v.xp6(1),v.Q6J("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())("aria-label",a.checkboxLabel())}}function ha(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"td",19),v.TgZ(1,"mat-checkbox",20),v.NdJ("click",function(e){return e.stopPropagation()})("change",function(e){var t=v.CHM(i).$implicit,a=v.oxw();return e&&a.selection.toggle(t),a.selectionChange.emit()}),v.qZA(),v.qZA()}if(2&e){var a=t.$implicit,n=v.oxw();v.xp6(1),v.Q6J("checked",n.selection.isSelected(a))("aria-label",n.checkboxLabel(a))}}function fa(e,t){1&e&&(v.TgZ(0,"th",21),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")))}function pa(e,t){if(1&e&&(v.TgZ(0,"div"),v._uU(1),v.qZA()),2&e){var i=v.oxw().$implicit;v.xp6(1),v.Oqu(i.task.id)}}function ga(e,t){1&e&&(v.TgZ(0,"div"),v._uU(1,"0"),v.qZA())}function ma(e,t){if(1&e&&(v.TgZ(0,"td",19),v.YNc(1,pa,2,1,"div",22),v.YNc(2,ga,2,0,"div",22),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Q6J("ngIf",i.task),v.xp6(1),v.Q6J("ngIf",!i.task)}}function Sa(e,t){1&e&&(v.TgZ(0,"th",21),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")))}function va(e,t){if(1&e&&(v.TgZ(0,"td",23),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.service.name)}}function Aa(e,t){1&e&&(v.TgZ(0,"th",21),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")))}function Ta(e,t){if(1&e&&(v.TgZ(0,"td",23),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.status)}}function Ia(e,t){1&e&&(v.TgZ(0,"th",21),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")))}function ya(e,t){if(1&e&&(v.TgZ(0,"td",23),v._uU(1),v.ALo(2,"serviceStateBlockedToString"),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(v.lcZ(2,1,i))}}function ba(e,t){1&e&&(v.TgZ(0,"th",21),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")))}function Ea(e,t){if(1&e&&(v.TgZ(0,"div"),v._uU(1),v.ALo(2,"date"),v.qZA()),2&e){var i=v.oxw().$implicit;v.xp6(1),v.Oqu(v.xi3(2,1,i.task.startTime,"d.M.y H:mm:ss"))}}function Ca(e,t){1&e&&(v.TgZ(0,"div"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET"),""))}function Za(e,t){if(1&e&&(v.TgZ(0,"td",23),v.YNc(1,Ea,3,4,"div",22),v.YNc(2,Ca,3,3,"div",22),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Q6J("ngIf",i.task&&i.task.startTime),v.xp6(1),v.Q6J("ngIf",!i.task||!i.task.startTime)}}function _a(e,t){1&e&&(v.TgZ(0,"th",21),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")))}function ka(e,t){if(1&e&&(v.TgZ(0,"div"),v._uU(1),v.ALo(2,"date"),v.qZA()),2&e){var i=v.oxw().$implicit;v.xp6(1),v.Oqu(v.xi3(2,1,i.task.endTime,"d.M.y H:mm:ss"))}}function La(e,t){1&e&&(v.TgZ(0,"div"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function xa(e,t){if(1&e&&(v.TgZ(0,"td",23),v.YNc(1,ka,3,4,"div",22),v.YNc(2,La,3,3,"div",22),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Q6J("ngIf",i.task&&i.task.endTime),v.xp6(1),v.Q6J("ngIf",!i.task||!i.task.endTime)}}function Oa(e,t){1&e&&v._UZ(0,"tr",24)}var Da=function(e,t){return["/facilities",e,"services-status",t]};function Ra(e,t){if(1&e&&v._UZ(0,"tr",25),2&e){var i=t.$implicit,a=v.oxw();v.ekj("disable-outline",a.disableRouting||!i.task)("make-yellow","WARNING"===i.status)("make-green","DONE"===i.status)("make-red","GENERROR"===i.status||"SENDERROR"===i.status||"ERROR"===i.status)("cursor-pointer",!a.disableRouting&&null!==i.task),v.Q6J("routerLink",a.disableRouting||null===i.task?null:v.WLB(12,Da,i.facility.id,i.taskId))("perunWebAppsMiddleClickRouterLink",a.disableRouting||null===i.task?null:v.WLB(15,Da,i.facility.id,i.taskId))}}function Na(e,t){1&e&&(v.TgZ(0,"app-alert",26),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function wa(e,t){1&e&&(v.TgZ(0,"app-alert",26),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}var Ya=function(){var e=function(){function e(t,i){s(this,e),this.authResolver=t,this.tableCheckbox=i,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new Oe.Ov(!0,[]),this.pageSize=10,this.disableRouting=!0,this.page=new v.vpe,this.selectionChange=new v.vpe,this.pageSizeOptions=p.f7}return r(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"task.id"!==e})),this.dataSource=new rt.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=function(e,t){var i=t.trim().toLowerCase();return function e(t){var i="";return Object.values(t).forEach(function(t){"object"!=typeof t?i=i+" "+t:null!==t&&(i=i+" "+e(t))}),i.trim().toLowerCase()}(e).includes(i)},this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){case"task.id":return e.task?e.task.id.toString():e[t];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&&e.task.startTime?(0,o.p6)(e.task.startTime,"d.M.y H:mm:ss","en"):e[t];case"task.endTime":return e.task&&e.task.endTime?(0,o.p6)(e.task.endTime,"d.M.y H:mm:ss","en"):e[t];default:return e[t]}}},{key:"getSortDataForColumn",value:function(e,t){switch(t){case"task.id":return e.task?e.task.id.toString():e[t];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&&e.task.startTime?(0,o.p6)(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[t];case"task.endTime":return e.task&&e.task.endTime?(0,o.p6)(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[t];default:return e[t]}}},{key:"exportData",value:function(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,p.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,p.pR)(t,i,e.getSortDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.service.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(g.x4),v.Y36(g.UA))},e.\u0275cmp=v.Xpm({type:e,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(e,t){var i;(1&e&&(v.Gf(Nt.YE,7),v.Gf(p.l9,7)),2&e)&&(v.iGM(i=v.CRH())&&(t.matSort=i.first),v.iGM(i=v.CRH())&&(t.child=i.first))},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page",selectionChange:"selectionChange"},features:[v.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","task.id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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",""],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"checked","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],[4,"ngIf"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,t){1&e&&(v.TgZ(0,"div",0),v.TgZ(1,"perun-web-apps-table-wrapper",1),v.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),v.TgZ(2,"table",2),v.ynx(3,3),v.YNc(4,da,2,3,"th",4),v.YNc(5,ha,2,2,"td",5),v.BQk(),v.ynx(6,6),v.YNc(7,fa,3,3,"th",7),v.YNc(8,ma,3,2,"td",5),v.BQk(),v.ynx(9,8),v.YNc(10,Sa,3,3,"th",7),v.YNc(11,va,2,1,"td",9),v.BQk(),v.ynx(12,10),v.YNc(13,Aa,3,3,"th",7),v.YNc(14,Ta,2,1,"td",9),v.BQk(),v.ynx(15,11),v.YNc(16,Ia,3,3,"th",7),v.YNc(17,ya,3,3,"td",9),v.BQk(),v.ynx(18,12),v.YNc(19,ba,3,3,"th",7),v.YNc(20,Za,3,2,"td",9),v.BQk(),v.ynx(21,13),v.YNc(22,_a,3,3,"th",7),v.YNc(23,xa,3,2,"td",9),v.BQk(),v.YNc(24,Oa,1,0,"tr",14),v.YNc(25,Ra,1,18,"tr",15),v.qZA(),v.qZA(),v.qZA(),v.YNc(26,Na,3,3,"app-alert",16),v.YNc(27,wa,3,3,"app-alert",16)),2&e&&(v.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.servicesStatus.length),v.xp6(1),v.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),v.xp6(1),v.Q6J("dataSource",t.dataSource),v.xp6(22),v.Q6J("matHeaderRowDef",t.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",t.displayedColumns),v.xp6(1),v.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.servicesStatus.length),v.xp6(1),v.Q6J("ngIf",0===t.servicesStatus.length))},directives:[wt.l,rt.BZ,Nt.YE,rt.w1,rt.fO,rt.Dz,rt.as,rt.nj,o.O5,rt.ge,ue.oG,rt.ev,Nt.nU,rt.XQ,rt.Gk,c.rH,Yt.YH,Mt.w],pipes:[_.X$,ua,o.uU],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.make-green[_ngcontent-%COMP%]{background-color:#c4ffcb}.make-yellow[_ngcontent-%COMP%]{background-color:#fffde7}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),e}();function Ma(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",11),v.NdJ("click",function(){return v.CHM(i),v.oxw().forcePropagation()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("disabled",0===a.selected.selected.length),v.xp6(1),v.hij(" ",v.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Fa(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",11),v.NdJ("click",function(){return v.CHM(i),v.oxw().allow()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("disabled",0===a.selected.selected.length||a.disableAllowButton),v.xp6(1),v.hij(" ",v.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function qa(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",12),v.NdJ("click",function(){return v.CHM(i),v.oxw().block()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("disabled",0===a.selected.selected.length||a.disableBlockButton),v.xp6(1),v.hij(" ",v.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function Ua(e,t){if(1&e&&(v.TgZ(0,"button",13),v.ALo(1,"translate"),v._uU(2),v.ALo(3,"translate"),v.qZA()),2&e){var i=v.oxw(),a=v.MAs(10);v.s9C("matTooltip",v.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),v.Q6J("matTooltipDisabled",!i.disableRemoveButton)("disabled",i.disableRemoveButton)("matMenuTriggerFor",a),v.xp6(2),v.hij(" ",v.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function Ja(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",7),v.NdJ("click",function(){return v.CHM(i),v.oxw().removeTaskResults()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function Qa(e,t){1&e&&v._UZ(0,"mat-spinner",14)}function za(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"perun-web-apps-services-status-list",15),v.NdJ("page",function(e){return v.CHM(i),v.oxw().pageChanged(e)})("selectionChange",function(){return v.CHM(i),v.oxw().selectionChanged()}),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("pageSize",a.pageSize)("filterValue",a.filterValue)("servicesStatus",a.servicesStates)("selection",a.selected)("disableRouting",!a.routeAuth)}}var Ha=function(){var e=function(){function e(t,i,a,n,l,r,o,c,u,d){var h=this;s(this,e),this.route=t,this.tasksManager=i,this.tableConfigService=a,this.servicesManager=n,this.notificator=l,this.translate=r,this.authResolver=o,this.facilityManager=c,this.resourcesManager=u,this.dialog=d,this.servicesStates=[],this.selected=new Oe.Ov(!0,[]),this.filterValue="",this.tableId=xe.oK,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,r.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(function(e){return h.successFPMessage=e}),r.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(function(e){return h.successAllowMessage=e}),r.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(function(e){return h.successBlockMessage=e}),r.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(function(e){return h.successDeleteMessage=e}),r.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(function(e){return h.allreadyDeletedMessage=e})}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(t){e.facilityId=parseInt(t.facilityId,10),e.facility={id:e.facilityId,beanName:"Facility"},e.refreshTable()})}},{key:"forcePropagation",value:function(){var e,t=this,a=i(this.selected.selected);try{for(a.s();!(e=a.n()).done;){var n=e.value;this.servicesManager.forceServicePropagation(n.service.id,n.facility.id).subscribe(function(){t.refreshTable(),t.notificator.showSuccess(t.successFPMessage)})}}catch(s){a.e(s)}finally{a.f()}}},{key:"allow",value:function(){var e,t=this,a=i(this.selected.selected);try{for(a.s();!(e=a.n()).done;){var n=e.value;this.servicesManager.unblockServiceOnFacility(n.service.id,n.facility.id).subscribe(function(){t.refreshTable(),t.notificator.showSuccess(t.successAllowMessage)})}}catch(s){a.e(s)}finally{a.f()}}},{key:"block",value:function(){var e,t=this,a=i(this.selected.selected);try{for(a.s();!(e=a.n()).done;){var n=e.value;this.servicesManager.blockServiceOnFacility(n.service.id,n.facility.id).subscribe(function(){t.refreshTable(),t.notificator.showSuccess(t.successBlockMessage)})}}catch(s){a.e(s)}finally{a.f()}}},{key:"removeTaskResults",value:function(){var e=this;this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe(function(t){var i=(0,p.kZ)();i.width="600px",i.data={theme:"facility-theme",taskResults:t},e.dialog.open(Wi,i)})}},{key:"removeServiceFromFacility",value:function(){var e=this;this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(function(t){var i=(0,p.kZ)();i.width="600px",e.taskId=e.taskIsNull?null:e.selected.selected[0].task.id,0===t.length?(i.data={theme:"facility-theme",taskId:e.taskId},e.dialog.open(oa,i).afterClosed().subscribe(function(t){t&&(e.disableRemoveButton=!0,e.refreshTable())})):e.resourcesManager.getRichResourcesByIds(t.map(function(e){return e.id})).subscribe(function(t){i.data={theme:"facility-theme",taskId:e.taskId,serviceId:e.selected.selected[0].service.id,facilityId:e.selected.selected[0].facility.id,resource:t},e.dialog.open(sa,i).afterClosed().subscribe(function(t){t&&(e.disableRemoveButton=!0,e.refreshTable())})})})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.tasksManager.getFacilityServicesState(this.facilityId).subscribe(function(t){e.servicesStates=t,e.selected.clear(),e.setAuthRights(),e.loading=!1})}},{key:"setAuthRights",value:function(){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])}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}},{key:"selectionChanged",value:function(){this.disableBlockButton=!0,this.disableAllowButton=!0,this.disableRemoveButton=1!==this.selected.selected.length,this.disableRemoveButton||(this.taskIsNull=null===this.selected.selected[0].task);var e,t=i(this.selected.selected);try{for(t.s();!(e=t.n()).done;){e.value.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}}catch(a){t.e(a)}finally{t.f()}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(c.gz),v.Y36(f.Ob),v.Y36(xe.dB),v.Y36(f.KK),v.Y36(g.V6),v.Y36(_.sK),v.Y36(g.x4),v.Y36(f.IQ),v.Y36(f.xk),v.Y36(A.uw))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor",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,"pageSize","filterValue","servicesStatus","selection","disableRouting","page","selectionChange",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","servicesStatus","selection","disableRouting","page","selectionChange"]],template:function(e,t){1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return t.refreshTable()}),v.qZA(),v.YNc(5,Ma,3,4,"button",2),v.YNc(6,Fa,3,4,"button",2),v.YNc(7,qa,3,4,"button",3),v.YNc(8,Ua,4,9,"button",4),v.TgZ(9,"mat-menu",null,5),v.YNc(11,Ja,3,3,"button",6),v.TgZ(12,"button",7),v.NdJ("click",function(){return t.removeServiceFromFacility()}),v._uU(13),v.ALo(14,"translate"),v.qZA(),v.qZA(),v.TgZ(15,"perun-web-apps-immediate-filter",8),v.NdJ("filter",function(e){return t.applyFilter(e)}),v.qZA(),v.YNc(16,Qa,1,0,"mat-spinner",9),v.YNc(17,za,1,5,"perun-web-apps-services-status-list",10),v.qZA()),2&e&&(v.xp6(2),v.Oqu(v.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),v.xp6(3),v.Q6J("ngIf",!t.loading&&t.propagationAuth),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.allowAuth),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.blockAuth),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.deleteAuth),v.xp6(3),v.Q6J("ngIf",!t.taskIsNull),v.xp6(2),v.Oqu(v.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")),v.xp6(2),v.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading))},directives:[Pe.t,o.O5,ca.VK,ca.OP,Ge.L,Z.lW,E.gM,ca.p6,y.$g,Ya],pipes:[_.X$],styles:[""]}),e}(),Va=l(86593);function Ba(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"perun-web-apps-refresh-button",6),v.NdJ("refresh",function(){return v.CHM(i),v.oxw().refreshTable()}),v.qZA()}}function Pa(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"perun-web-apps-immediate-filter",7),v.NdJ("filter",function(e){return v.CHM(i),v.oxw().applyFilter(e)}),v.qZA()}2&e&&v.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER")}function Ga(e,t){1&e&&v._UZ(0,"mat-spinner",8)}function $a(e,t){1&e&&(v.TgZ(0,"app-alert",9),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"FACILITY_DETAIL.ALLOWED_USERS.NO_USERS")," "))}var ja=function(){return["id","name"]};function Ka(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"app-users-list",10),v.NdJ("page",function(e){return v.CHM(i),v.oxw().pageChanged(e)}),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("pageSize",a.pageSize)("users",a.users)("displayedColumns",v.DdM(5,ja))("disableRouting",!a.routeAuth)("filter",a.filterValue)}}var Wa=function(){var e=function(){function e(t,i,a,n){s(this,e),this.route=t,this.facilityService=i,this.tableConfigService=a,this.authResolver=n,this.loading=!1,this.filterValue="",this.tableId=xe.z6}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(t){e.facilityId=t.facilityId,e.routeAuth=e.authResolver.isPerunAdminOrObserver(),e.refreshTable()})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.facilityService.getAssignedUsers(this.facilityId).subscribe(function(t){e.users=t,e.loading=!1})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(c.gz),v.Y36(f.IQ),v.Y36(xe.dB),v.Y36(g.x4))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-facility-allowed-users"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"pageSize","users","displayedColumns","disableRouting","filter","page",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[3,"pageSize","users","displayedColumns","disableRouting","filter","page"]],template:function(e,t){1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Ba,1,0,"perun-web-apps-refresh-button",1),v.YNc(5,Pa,1,1,"perun-web-apps-immediate-filter",2),v.YNc(6,Ga,1,0,"mat-spinner",3),v.YNc(7,$a,3,3,"app-alert",4),v.YNc(8,Ka,1,6,"app-users-list",5),v.qZA()),2&e&&(v.xp6(2),v.Oqu(v.lcZ(3,6,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),v.xp6(2),v.Q6J("ngIf",!t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading&&(void 0===t.users||0===t.users.length)),v.xp6(1),v.Q6J("ngIf",!t.loading&&0!==t.users.length))},directives:[o.O5,Pe.t,Ge.L,y.$g,Mt.w,Va.C],pipes:[_.X$],styles:[""]}),e}(),Xa=l(95142);function en(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"th",19),v.TgZ(1,"mat-checkbox",20),v.NdJ("change",function(e){v.CHM(i);var t=v.oxw();return e?t.masterToggle():null}),v.qZA(),v.qZA()}if(2&e){var a=v.oxw();v.xp6(1),v.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function tn(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"td",21),v.TgZ(1,"mat-checkbox",22),v.NdJ("change",function(e){var t=v.CHM(i).$implicit,a=v.oxw();return e?a.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),v.qZA(),v.qZA()}if(2&e){var a=t.$implicit,n=v.oxw();v.xp6(1),v.Q6J("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function an(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")))}function nn(e,t){if(1&e&&(v.TgZ(0,"td",21),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.id)}}function sn(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")))}function ln(e,t){if(1&e&&(v.TgZ(0,"td",21),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.destination.destination)}}function rn(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")))}function on(e,t){if(1&e&&(v.TgZ(0,"td",21),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.destination.type.toUpperCase())}}function cn(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")))}function un(e,t){if(1&e&&(v.TgZ(0,"td",21),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.service.name)}}function dn(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")))}function hn(e,t){if(1&e&&(v.TgZ(0,"td",21),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.status)}}function fn(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")))}function pn(e,t){if(1&e&&(v.TgZ(0,"td",21),v._uU(1),v.ALo(2,"date"),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(v.xi3(2,1,i.timestamp,"d.M.y H:mm:ss"))}}function gn(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")))}function mn(e,t){if(1&e&&(v.TgZ(0,"td",21),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.returnCode)}}function Sn(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")))}function vn(e,t){if(1&e&&(v.TgZ(0,"span"),v._uU(1),v._UZ(2,"br"),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i)}}function An(e,t){if(1&e&&(v.TgZ(0,"td",21),v.YNc(1,vn,3,1,"span",24),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Q6J("ngForOf",i.standardMessage.split("\n"))}}function Tn(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")))}function In(e,t){if(1&e&&(v.TgZ(0,"td",21),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.errorMessage)}}function yn(e,t){1&e&&v._UZ(0,"tr",25)}function bn(e,t){if(1&e&&v._UZ(0,"tr",26),2&e){var i=t.$implicit;v.ekj("greenTableItem","DONE"===i.status)("redTableItem","ERROR"===i.status||"DENIED"===i.status)("yellowTableItem","WARNING"===i.status)}}function En(e,t){1&e&&(v.TgZ(0,"app-alert",27),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Cn(e,t){1&e&&(v.TgZ(0,"app-alert",27),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}var Zn=function(){var e=function(){function e(t,i){s(this,e),this.authResolver=t,this.tableCheckbox=i,this.pageSizeOptions=p.f7,this.taskResults=[],this.selection=new Oe.Ov(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.page=new v.vpe}return r(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new rt.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){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,o.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""}}},{key:"getSortDataForColumn",value:function(e,t){switch(t){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,o.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""}}},{key:"exportData",value:function(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=function(t,i){return(0,p.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,p.pR)(t,i,e.getSortDataForColumn,e)})}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(g.x4),v.Y36(g.UA))},e.\u0275cmp=v.Xpm({type:e,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(e,t){var i;(1&e&&(v.Gf(Nt.YE,7),v.Gf(p.l9,7)),2&e)&&(v.iGM(i=v.CRH())&&(t.matSort=i.first),v.iGM(i=v.CRH())&&(t.child=i.first))},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[v.TTD],decls:37,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(v.TgZ(0,"div",0),v.TgZ(1,"perun-web-apps-table-wrapper",1),v.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),v.TgZ(2,"table",2),v.ynx(3,3),v.YNc(4,en,2,3,"th",4),v.YNc(5,tn,2,2,"td",5),v.BQk(),v.ynx(6,6),v.YNc(7,an,3,3,"th",7),v.YNc(8,nn,2,1,"td",5),v.BQk(),v.ynx(9,8),v.YNc(10,sn,3,3,"th",7),v.YNc(11,ln,2,1,"td",5),v.BQk(),v.ynx(12,9),v.YNc(13,rn,3,3,"th",7),v.YNc(14,on,2,1,"td",5),v.BQk(),v.ynx(15,10),v.YNc(16,cn,3,3,"th",7),v.YNc(17,un,2,1,"td",5),v.BQk(),v.ynx(18,11),v.YNc(19,dn,3,3,"th",7),v.YNc(20,hn,2,1,"td",5),v.BQk(),v.ynx(21,12),v.YNc(22,fn,3,3,"th",7),v.YNc(23,pn,3,4,"td",5),v.BQk(),v.ynx(24,13),v.YNc(25,gn,3,3,"th",7),v.YNc(26,mn,2,1,"td",5),v.BQk(),v.ynx(27,14),v.YNc(28,Sn,3,3,"th",7),v.YNc(29,An,2,1,"td",5),v.BQk(),v.ynx(30,15),v.YNc(31,Tn,3,3,"th",7),v.YNc(32,In,2,1,"td",5),v.BQk(),v.YNc(33,yn,1,0,"tr",16),v.YNc(34,bn,1,6,"tr",17),v.qZA(),v.qZA(),v.qZA(),v.YNc(35,En,3,3,"app-alert",18),v.YNc(36,Cn,3,3,"app-alert",18)),2&e&&(v.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.taskResults.length),v.xp6(1),v.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),v.xp6(1),v.Q6J("dataSource",t.dataSource),v.xp6(31),v.Q6J("matHeaderRowDef",t.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",t.displayedColumns),v.xp6(1),v.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.taskResults.length),v.xp6(1),v.Q6J("ngIf",0===t.taskResults.length))},directives:[wt.l,rt.BZ,Nt.YE,rt.w1,rt.fO,rt.Dz,rt.as,rt.nj,o.O5,rt.ge,ue.oG,rt.ev,Nt.nU,o.sg,rt.XQ,rt.Gk,Mt.w],pipes:[_.X$,o.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),e}();function _n(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",8),v.NdJ("click",function(){return v.CHM(i),v.oxw(2).removeTaskResult()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&e){var a=v.oxw(2);v.Q6J("disabled",0===a.selection.selected.length),v.xp6(1),v.hij(" ",v.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE")," ")}}function kn(e,t){1&e&&v._UZ(0,"mat-spinner",9)}function Ln(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"perun-web-apps-task-results-list",10),v.NdJ("page",function(e){return v.CHM(i),v.oxw(2).pageChanged(e)}),v.qZA()}if(2&e){var a=v.oxw(2);v.Q6J("displayedColumns",a.displayedColumns)("filterValue",a.filterValue)("pageSize",a.pageSize)("selection",a.selection)("taskResults",a.taskResults)}}function xn(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"div"),v.TgZ(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.TgZ(4,"span",2),v._uU(5),v.qZA(),v.qZA(),v.TgZ(6,"perun-web-apps-refresh-button",3),v.NdJ("refresh",function(){return v.CHM(i),v.oxw().refreshTable()}),v.qZA(),v.YNc(7,_n,3,4,"button",4),v.TgZ(8,"perun-web-apps-immediate-filter",5),v.NdJ("filter",function(e){return v.CHM(i),v.oxw().applyFilter(e)}),v.qZA(),v.YNc(9,kn,1,0,"mat-spinner",6),v.YNc(10,Ln,1,5,"perun-web-apps-task-results-list",7),v.qZA()}if(2&e){var a=v.oxw();v.xp6(2),v.AsE("",v.lcZ(3,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",a.task.service.name," "),v.xp6(3),v.hij(" \xa0#",a.task.id," "),v.xp6(2),v.Q6J("ngIf",!a.loading&&a.removeAuth),v.xp6(1),v.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),v.xp6(1),v.Q6J("ngIf",a.loading),v.xp6(1),v.Q6J("ngIf",!a.loading)}}var On,Dn=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.route=t,this.tableConfigService=i,this.taskManager=a,this.authResolver=n,this.dialog=l,this.loading=!1,this.filterValue="",this.selection=new Oe.Ov(!0,[]),this.tableId=xe.e5,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(t){e.facility={id:parseInt(t.facilityId,10),beanName:"Facility"},e.removeAuth=e.authResolver.isAuthorized("deleteTask_Task_policy",[e.facility]),e.removeAuth||(e.displayedColumns=["id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]),e.route.params.subscribe(function(t){e.taskId=t.taskId,e.taskManager.getTaskById(e.taskId).subscribe(function(t){e.task=t,e.refreshTable()})})})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(function(t){e.selection.clear(),e.taskResults=t,e.loading=!1})}},{key:"removeTaskResult",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(Wi,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(c.gz),v.Y36(xe.dB),v.Y36(f.Ob),v.Y36(g.x4),v.Y36(A.uw))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-facility-task-results"]],decls:1,vars:1,consts:[[4,"ngIf"],[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,"displayedColumns","filterValue","pageSize","selection","taskResults","page",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","pageSize","selection","taskResults","page"]],template:function(e,t){1&e&&v.YNc(0,xn,11,9,"div",0),2&e&&v.Q6J("ngIf",!t.loading)},directives:[o.O5,Pe.t,Ge.L,Z.lW,y.$g,Zn],pipes:[_.X$],styles:[""]}),e}(),Rn=l(53134),Nn=[{path:"",component:u.P},{path:":facilityId",component:N,children:[{path:"",component:F,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:te,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:q.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:Wa,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:U.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:Ha,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:Dn,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:Ze,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:it,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:ei,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:bi,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:z,children:[{path:"",component:B,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:It,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:Le,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:qi,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:mi,data:{animation:"FacilitySettingsBlackListPage"}}]}]},{path:":facilityId/resources/:resourceId",component:J.b,children:[{path:"",component:Q.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:ne.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:se.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:Ji.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:Xa.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Rn.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:ie.t,children:[{path:"",component:ae.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:Ui.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}],wn=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=v.oAB({type:e}),e.\u0275inj=v.cJS({imports:[[c.Bz.forChild(Nn)],c.Bz]}),e}(),Yn=l(28780),Mn=l(22727),Fn=l(6363),qn=((On=function e(){s(this,e)}).\u0275fac=function(e){return new(e||On)},On.\u0275mod=v.oAB({type:On}),On.\u0275inj=v.cJS({providers:[ce.dp],imports:[[o.ez,wn,Yn.m,Mn.r,Si.ez,ce.d4,Fn.UsersModule]]}),On)}}])}(); \ No newline at end of file +!function(){function e(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){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 t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==i)return;var a,n,s=[],l=!0,r=!1;try{for(i=i.call(e);!(l=(a=i.next()).done)&&(s.push(a.value),!t||s.length!==t);l=!0);}catch(o){r=!0,n=o}finally{try{l||null==i.return||i.return()}finally{if(r)throw n}}return s}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=a(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,s=function(){};return{s:s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,r=!0,o=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){o=!0,l=e},f:function(){try{r||null==i.return||i.return()}finally{if(o)throw l}}}}function a(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i()[\]\\.,;:\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]{2,}))$/),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-_.:/]*$")}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.serviceControl=new le.NI(void 0,le.kI.required),this.destinationControl=new le.NI("",this.getDestinationValidator()),this.emailControl=new le.NI("",[le.kI.required,le.kI.pattern(this.emailRegex)]),this.facilitiesManager.getHosts(this.data.facility.id).subscribe(function(t){e.hosts=t,e.servicesOnFacility=!0,e.getServices(),e.loading=!1},function(){return e.loading=!1})}},{key:"getDestinationValidator",value:function(){var e=this;return function(t){if(!t.value)return null;var i;switch(e.selectedType){case"host":case"host-windows-proxy":i=e.hostPattern;break;case"email":case"semail":i=e.emailRegex;break;case"url":i=e.urlPattern;break;case"user@host":case"user@host-windows":i=e.userAtHostPattern;break;case"user@host:port":i=e.userAtHostPortPattern;break;case"service-specific":i=e.serviceSpecificPattern;break;default:return null}return i.test(t.value)?null:{invalidDestination:{value:t.value}}}}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,"all"===this.serviceControl.value?this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility({services:this.services,facility:this.data.facility.id}).subscribe(function(){e.dialogRef.close(!0)},function(){return e.loading=!1}):this.servicesManager.addDestinationToMultipleServices({services:this.services,facility:this.data.facility.id,destination:this.destinationControl.value,type:this.selectedType,propagationType:this.selectedPropagation}).subscribe(function(){e.dialogRef.close(!0)},function(){return e.loading=!1}):this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(this.serviceControl.value.id,this.data.facility.id).subscribe(function(){e.dialogRef.close(!0)},function(){return e.loading=!1}):this.servicesManager.addDestination(this.serviceControl.value.id,this.data.facility.id,this.destinationControl.value,this.selectedType,this.selectedPropagation).subscribe(function(){e.dialogRef.close(!0)},function(){return e.loading=!1})}},{key:"getServices",value:function(){var e=this;this.loading=!0,this.servicesOnFacility?this.servicesManager.getAssignedServices(this.data.facility.id).subscribe(function(t){e.services=t},function(){return e.loading=!1}):this.servicesManager.getServices().subscribe(function(t){e.services=t},function(){return e.loading=!1}),this.loading=!1,this.serviceControl.setValue(void 0)}},{key:"getTypeForView",value:function(e){return"semail"===e?"Send Mail":"service-specific"===e?"Service Specific":e}},{key:"invalidDestination",value:function(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(A.so),v.Y36(A.WI),v.Y36(f.IQ),v.Y36(f.KK))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-perun-web-apps-add-services-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",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,t){1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Ne,1,0,"mat-spinner",1),v.YNc(5,Ve,27,30,"div",2),v.TgZ(6,"div",3),v.TgZ(7,"button",4),v.NdJ("click",function(){return t.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return t.onSubmit()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.qZA(),v.qZA()),2&e&&(v.Tol(t.data.theme),v.xp6(2),v.Oqu(v.lcZ(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),v.xp6(2),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),v.xp6(2),v.Q6J("disabled",t.loading||t.invalidDestination()||t.serviceControl.invalid||"noService"===t.serviceControl.value),v.xp6(1),v.hij(" ",v.lcZ(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},directives:[A.uh,o.O5,A.H8,Z.lW,y.$g,A.xY,de.KE,Re.gD,le.Q7,le.JJ,le.oH,o.sg,ue.oG,le.On,pe.ey,de.TO,he.Nt,le.Fj],pipes:[_.X$],styles:[""],data:{animation:[d.BQ]}}),e}(),Be=l(59403),Ge=l(19139),$e=l(94357);function je(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",8),v.NdJ("click",function(){return v.CHM(i),v.oxw().addDestination()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function Ke(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",9),v.NdJ("click",function(){return v.CHM(i),v.oxw().removeDestination()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("disabled",0===a.selected.selected.length),v.xp6(1),v.hij(" ",v.lcZ(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function We(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",10),v.NdJ("click",function(){return v.CHM(i),v.oxw().onAllow()}),v.TgZ(1,"mat-icon"),v._uU(2," check_circle_outline "),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("disabled",0===a.selected.selected.length||a.allSelectedAllowed()),v.xp6(3),v.hij(" ",v.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function Xe(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",10),v.NdJ("click",function(){return v.CHM(i),v.oxw().onBlock()}),v.TgZ(1,"mat-icon"),v._uU(2," block "),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("disabled",0===a.selected.selected.length||a.allSelectedBlocked()),v.xp6(3),v.hij(" ",v.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function et(e,t){1&e&&v._UZ(0,"mat-spinner",11)}function tt(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"app-perun-web-apps-destination-list",12),v.NdJ("page",function(e){return v.CHM(i),v.oxw().pageChanged(e)}),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("pageSize",a.pageSize)("filterValue",a.filterValue)("destinations",a.destinations)("selection",a.selected)("displayedColumns",a.displayedColumns)}}var it=function(){var e=function(){function e(t,i,a,n,l,r,o,c,u){s(this,e),this.dialog=t,this.facilitiesManager=i,this.servicesManager=a,this.tableConfigService=n,this.translate=l,this.notificator=r,this.route=o,this.authResolver=c,this.serviceManager=u,this.selected=new Oe.Ov(!0,[]),this.displayedColumns=["select","destinationId","service","destination","type","propagationType"],this.filterValue="",this.tableId=xe.Cf}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(function(t){e.facilitiesManager.getFacilityById(t.facilityId).subscribe(function(t){e.facility=t,e.refreshTable()})})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.servicesManager.getAllRichDestinationsForFacility(this.facility.id).subscribe(function(t){e.destinations=t,e.selected.clear(),e.setAuthRights(),e.loading=!1})}},{key:"setAuthRights",value:function(){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?["select","destinationId","service","destination","type","status","propagationType"]:["destinationId","service","destination","type","status","propagationType"]}},{key:"addDestination",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={facility:this.facility,theme:"facility-theme"},this.dialog.open(Pe,t).afterClosed().subscribe(function(t){t&&e.translate.get("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS").subscribe(function(t){e.refreshTable(),e.notificator.showSuccess(t)})})}},{key:"removeDestination",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(De.u,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"blockServiceOnDestinations",value:function(e){var t=this;if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();var i=e.pop();this.serviceManager.blockServiceOnDestination(i.service.id,i.id).subscribe(function(){t.blockServiceOnDestinations(e)},function(){return t.loading=!1})}},{key:"onBlock",value:function(){this.loading=!0,this.blockServiceOnDestinations(this.selected.selected)}},{key:"allowServiceOnDestinations",value:function(e){var t=this;if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();var i=e.pop();this.serviceManager.unblockServiceOnDestinationById(i.service.id,i.id).subscribe(function(){t.allowServiceOnDestinations(e)},function(){return t.loading=!1})}},{key:"onAllow",value:function(){this.loading=!0,this.allowServiceOnDestinations(this.selected.selected)}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}},{key:"allSelectedAllowed",value:function(){return this.selected.selected.reduce(function(e,t){return e&&!t.blocked},!0)}},{key:"allSelectedBlocked",value:function(){return this.selected.selected.reduce(function(e,t){return e&&t.blocked},!0)}}]),e}();return e.id="FacilityServicesDestinationsComponent",e.\u0275fac=function(t){return new(t||e)(v.Y36(A.uw),v.Y36(f.IQ),v.Y36(f.KK),v.Y36(xe.dB),v.Y36(_.sK),v.Y36(g.V6),v.Y36(c.gz),v.Y36(g.x4),v.Y36(f.KK))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-perun-web-apps-facility-services-destinations"]],hostVars:2,hostBindings:function(e,t){2&e&&v.ekj("router-component",t.true)},decls:12,vars:10,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","destinations","selection","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","destinations","selection","displayedColumns","page"]],template:function(e,t){1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return t.refreshTable()}),v.qZA(),v.YNc(5,je,3,3,"button",2),v.YNc(6,Ke,3,4,"button",3),v.YNc(7,We,5,4,"button",4),v.YNc(8,Xe,5,4,"button",4),v.TgZ(9,"perun-web-apps-immediate-filter",5),v.NdJ("filter",function(e){return t.applyFilter(e)}),v.qZA(),v.YNc(10,et,1,0,"mat-spinner",6),v.YNc(11,tt,1,5,"app-perun-web-apps-destination-list",7),v.qZA()),2&e&&(v.xp6(2),v.Oqu(v.lcZ(3,8,"FACILITY_DETAIL.SERVICES_DESTINATIONS.TITLE")),v.xp6(3),v.Q6J("ngIf",!t.loading&&t.addAuth),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.removeAuth),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.allowAuth),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.blockAuth),v.xp6(1),v.Q6J("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading))},directives:[Be.t,o.O5,Ge.L,Z.lW,b.Hw,y.$g,$e.q],pipes:[_.X$],styles:[""]}),e}(),at=l(17767);function nt(e,t){1&e&&v._UZ(0,"mat-spinner",3)}function st(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"div"),v.TgZ(1,"perun-web-apps-immediate-filter",4),v.NdJ("filter",function(e){return v.CHM(i),v.oxw().applyFilter(e)}),v.qZA(),v.TgZ(2,"div",5),v.TgZ(3,"perun-web-apps-owners-list",6),v.NdJ("page",function(e){return v.CHM(i),v.oxw().pageChanged(e)}),v.qZA(),v.qZA(),v.TgZ(4,"div",7),v.TgZ(5,"button",8),v.NdJ("click",function(){return v.CHM(i),v.oxw().onCancel()}),v._uU(6),v.ALo(7,"translate"),v.qZA(),v.TgZ(8,"button",9),v.NdJ("click",function(){return v.CHM(i),v.oxw().onAdd()}),v._uU(9),v.ALo(10,"translate"),v.qZA(),v.qZA(),v.qZA()}if(2&e){var a=v.oxw();v.xp6(1),v.Q6J("placeholder","DIALOGS.ADD_OWNERS.FILTER"),v.xp6(2),v.Q6J("filterValue",a.filterValue)("pageSize",a.pageSize)("owners",a.owners)("selection",a.selection),v.xp6(3),v.hij(" ",v.lcZ(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),v.xp6(2),v.Q6J("disabled",0===a.selection.selected.length||a.loading),v.xp6(1),v.hij(" ",v.lcZ(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}var lt=function(){var e=function(){function e(t,i,a,n,l,r,o){var c=this;s(this,e),this.dialogRef=t,this.data=i,this.notificator=a,this.tableConfigService=n,this.translate=l,this.ownersManagerService=r,this.facilitiesManagerService=o,this.extSources=[],this.selection=new Oe.Ov(!0,[]),this.filterValue="",this.tableId=xe.BV,this.owners=[],this.translate.get("DIALOGS.ADD_OWNERS.SUCCESS").subscribe(function(e){return c.successMessage=e})}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(function(t){e.owners=t.filter(function(t){return!e.data.forbiddenOwners.includes(t.id)}),e.loading=!1},function(){return e.loading=!1})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"onAdd",value:function(){var e=this;this.loading=!0,0!==this.selection.selected.length?this.facilitiesManagerService.addFacilityOwner(this.data.facilityId,this.selection.selected.pop().id).subscribe(function(){return e.onAdd()},function(){return e.loading=!1}):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(A.so),v.Y36(A.WI),v.Y36(g.V6),v.Y36(xe.dB),v.Y36(_.sK),v.Y36(f.aC),v.Y36(f.IQ))},e.\u0275cmp=v.Xpm({type:e,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","pageSize","owners","selection","page"],["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,t){1&e&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div"),v.YNc(4,nt,1,0,"mat-spinner",1),v.YNc(5,st,11,12,"div",2),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,6,"DIALOGS.ADD_OWNERS.TITLE")),v.xp6(2),v.Tol(t.theme),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading))},directives:[A.uh,o.O5,y.$g,Ge.L,A.xY,at.Q,A.H8,Z.lW],pipes:[_.X$],styles:[""]}),e}(),rt=l(67033);function ot(e,t){1&e&&v._UZ(0,"mat-spinner",6)}function ct(e,t){1&e&&v._UZ(0,"th",15)}function ut(e,t){if(1&e&&(v.TgZ(0,"td",16),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.hij(" ",i.name," ")}}function dt(e,t){1&e&&v._UZ(0,"tr",17)}function ht(e,t){1&e&&v._UZ(0,"tr",18)}function ft(e,t){if(1&e&&(v.TgZ(0,"div",7),v.TgZ(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",8),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"table",9),v.ynx(8,10),v.YNc(9,ct,1,0,"th",11),v.YNc(10,ut,2,1,"td",12),v.BQk(),v.YNc(11,dt,1,0,"tr",13),v.YNc(12,ht,1,0,"tr",14),v.qZA(),v.qZA()),2&e){var i=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,5,"DIALOGS.REMOVE_OWNERS.DESCRIPTION")," "),v.xp6(3),v.hij(" ",v.lcZ(6,7,"DIALOGS.REMOVE_OWNERS.ASK")," "),v.xp6(2),v.Q6J("dataSource",i.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",i.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",i.displayedColumns)}}var pt=function(){var e=function(){function e(t,i,a,n,l){var r=this;s(this,e),this.dialogRef=t,this.data=i,this.notificator=a,this.translate=n,this.facilitiesManagerService=l,this.displayedColumns=["name"],n.get("DIALOGS.REMOVE_OWNERS.SUCCESS").subscribe(function(e){return r.successMessage=e})}return r(e,[{key:"ngOnInit",value:function(){this.dataSource=new rt.by(this.data.owners),this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,0!==this.data.owners.length?this.facilitiesManagerService.removeFacilityOwner(this.data.facilityId,this.data.owners.pop().id).subscribe(function(){return e.onSubmit()},function(){return e.loading=!1}):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(A.so),v.Y36(A.WI),v.Y36(g.V6),v.Y36(_.sK),v.Y36(f.IQ))},e.\u0275cmp=v.Xpm({type:e,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,t){1&e&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div"),v.YNc(4,ot,1,0,"mat-spinner",1),v.YNc(5,ft,13,9,"div",2),v.TgZ(6,"div",3),v.TgZ(7,"button",4),v.NdJ("click",function(){return t.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return t.onSubmit()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.qZA(),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),v.xp6(2),v.Tol(t.theme),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),v.xp6(2),v.Q6J("disabled",t.loading),v.xp6(1),v.hij(" ",v.lcZ(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},directives:[A.uh,o.O5,A.H8,Z.lW,y.$g,A.xY,rt.BZ,rt.w1,rt.fO,rt.Dz,rt.as,rt.nj,rt.ge,rt.ev,rt.XQ,rt.Gk],pipes:[_.X$],styles:[""]}),e}();function gt(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"perun-web-apps-refresh-button",7),v.NdJ("refresh",function(){return v.CHM(i),v.oxw().refreshTable()}),v.qZA()}}function mt(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",8),v.NdJ("click",function(){return v.CHM(i),v.oxw().onCreate()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function St(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",9),v.NdJ("click",function(){return v.CHM(i),v.oxw().onRemove()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("disabled",0===a.selection.selected.length),v.xp6(1),v.hij(" ",v.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function vt(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"perun-web-apps-immediate-filter",10),v.NdJ("filter",function(e){return v.CHM(i),v.oxw().applyFilter(e)}),v.qZA()}2&e&&v.Q6J("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER")}function At(e,t){1&e&&v._UZ(0,"mat-spinner",11)}function Tt(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"perun-web-apps-owners-list",12),v.NdJ("page",function(e){return v.CHM(i),v.oxw().pageChanged(e)}),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("pageSize",a.pageSize)("filterValue",a.filterValue)("owners",a.owners)("displayedColumns",a.displayedColumns)("selection",a.selection)}}var It=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.facilitiesManagerService=t,this.tableConfigService=i,this.route=a,this.dialog=n,this.authResolver=l,this.owners=[],this.selection=new Oe.Ov(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=xe.zp}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.filterValue="",this.route.parent.parent.params.subscribe(function(t){e.facilityId=parseInt(t.facilityId,10),e.facility={id:e.facilityId,beanName:"Facility"},e.refreshTable()})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.selection.clear(),this.facilitiesManagerService.getFacilityOwners(this.facilityId).subscribe(function(t){e.owners=t,e.setAuthRights(),e.loading=!1})}},{key:"setAuthRights",value:function(){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"]}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"onCreate",value:function(){var e=this,t=(0,p.kZ)();t.width="800px",t.data={theme:"facility-theme",facilityId:this.facilityId,forbiddenOwners:this.owners.map(function(e){return e.id})},this.dialog.open(lt,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"onRemove",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facilityId},this.dialog.open(pt,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(f.IQ),v.Y36(xe.dB),v.Y36(c.gz),v.Y36(A.uw),v.Y36(g.x4))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-facility-settings-owners"]],decls:9,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["class","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",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","owners","displayedColumns","selection","page",4,"ngIf"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","owners","displayedColumns","selection","page"]],template:function(e,t){1&e&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.YNc(3,gt,1,0,"perun-web-apps-refresh-button",1),v.YNc(4,mt,3,3,"button",2),v.YNc(5,St,3,4,"button",3),v.YNc(6,vt,1,1,"perun-web-apps-immediate-filter",4),v.YNc(7,At,1,0,"mat-spinner",5),v.YNc(8,Tt,1,5,"perun-web-apps-owners-list",6)),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,7,"FACILITY_DETAIL.SETTINGS.OWNERS.TITLE")),v.xp6(2),v.Q6J("ngIf",!t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.addAuth),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.removeAuth),v.xp6(1),v.Q6J("ngIf",!t.loading),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading))},directives:[o.O5,Be.t,Z.lW,Ge.L,y.$g,at.Q],pipes:[_.X$],styles:[""]}),e}();function yt(e,t){1&e&&v._UZ(0,"mat-spinner",7)}function bt(e,t){1&e&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function Et(e,t){if(1&e&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e){var i=v.oxw(2);v.xp6(1),v.AsE(" ",v.lcZ(2,2,"DIALOGS.ADD_HOST.INVALID_HOST"),"",i.hostsCtrl.getError("invalidHost").value," ")}}function Ct(e,t){if(1&e&&(v.TgZ(0,"div",8),v.TgZ(1,"mat-form-field"),v.TgZ(2,"textarea",9),v._uU(3," "),v.qZA(),v.YNc(4,bt,3,3,"mat-error",10),v.YNc(5,Et,3,4,"mat-error",10),v.qZA(),v.TgZ(6,"div",11),v._uU(7),v.ALo(8,"translate"),v.qZA(),v.qZA()),2&e){var i=v.oxw();v.xp6(2),v.Q6J("formControl",i.hostsCtrl),v.xp6(2),v.Q6J("ngIf",i.hostsCtrl.hasError("required")),v.xp6(1),v.Q6J("ngIf",i.hostsCtrl.hasError("invalidHost")),v.xp6(2),v.Oqu(v.lcZ(8,4,"DIALOGS.ADD_HOST.HINT"))}}var Zt=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.dialogRef=t,this.data=i,this.facilitiesManager=a,this.notificator=n,this.translate=l,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}$")}return r(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.facilityName=this.data.facilityName,this.hostsCtrl=new le.NI("",[le.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}},{key:"onAdd",value:function(){var e=this;this.loading=!0;var t,a=[],n=i(this.hostsCtrl.value.split("\n"));try{for(n.s();!(t=n.n()).done;){var s=t.value;a=a.concat(this.parseHostName(s))}}catch(l){n.e(l)}finally{n.f()}this.facilitiesManager.addHosts(this.data.facilityId,a).subscribe(function(){e.notificator.showSuccess(e.translate.instant("DIALOGS.ADD_HOST.SUCCESS")),e.dialogRef.close(!0)},function(){return e.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"hostsNameValidator",value:function(){var e=this;return function(t){var a,n=[],s=i(t.value.split("\n"));try{for(s.s();!(a=s.n()).done;){var l=a.value;n=n.concat(e.parseHostName(l))}}catch(u){s.e(u)}finally{s.f()}var r,o=i(n);try{for(o.s();!(r=o.n()).done;){var c=r.value;if(!e.hostPattern.test(c))return{invalidHost:{value:c}}}}catch(u){o.e(u)}finally{o.f()}return null}}},{key:"parseHostName",value:function(e){var i=new RegExp("[[0-9]+-[0-9]+]","g"),a=e.split(i),n=e.match(i);if(null==n)return""===e?[]:[e];for(var s=[],l=0;l_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]]))}},{key:"addHost",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={facilityId:this.facility.id,facilityName:this.facility.name,theme:"facility-theme"},this.dialog.open(Zt,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"removeHost",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(Rt,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(A.uw),v.Y36(f.IQ),v.Y36(xe.dB),v.Y36(c.gz),v.Y36(g.x4))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-facility-hosts"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",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,"pageSize","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId","page"]],template:function(e,t){1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return t.refreshTable()}),v.qZA(),v.YNc(5,jt,3,3,"button",2),v.YNc(6,Kt,3,4,"button",3),v.TgZ(7,"perun-web-apps-immediate-filter",4),v.NdJ("filter",function(e){return t.applyFilter(e)}),v.qZA(),v.YNc(8,Wt,1,0,"mat-spinner",5),v.YNc(9,Xt,1,7,"app-hosts-list",6),v.qZA()),2&e&&(v.xp6(2),v.Oqu(v.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),v.xp6(3),v.Q6J("ngIf",!t.loading&&t.addAuth),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.removeAuth),v.xp6(1),v.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading))},directives:[Be.t,o.O5,Ge.L,Z.lW,y.$g,$t],pipes:[_.X$],styles:[""]}),e}();function ti(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"th",14),v.TgZ(1,"mat-checkbox",15),v.NdJ("change",function(e){v.CHM(i);var t=v.oxw();return e?t.masterToggle():null}),v.qZA(),v.qZA()}if(2&e){var a=v.oxw();v.xp6(1),v.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function ii(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"td",16),v.TgZ(1,"mat-checkbox",17),v.NdJ("change",function(e){var t=v.CHM(i).$implicit,a=v.oxw();return e?a.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),v.qZA(),v.qZA()}if(2&e){var a=t.$implicit,n=v.oxw();v.xp6(1),v.Q6J("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function ai(e,t){1&e&&(v.TgZ(0,"th",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")))}function ni(e,t){if(1&e&&(v.TgZ(0,"td",16),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i[1].id)}}function si(e,t){1&e&&(v.TgZ(0,"th",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")))}function li(e,t){if(1&e&&(v.TgZ(0,"td",19),v._uU(1),v.ALo(2,"userFullName"),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(v.lcZ(2,1,i[1]))}}function ri(e,t){1&e&&(v.TgZ(0,"th",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")))}function oi(e,t){if(1&e&&(v.TgZ(0,"td",19),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i[0].description)}}function ci(e,t){1&e&&v._UZ(0,"tr",20)}function ui(e,t){1&e&&v._UZ(0,"tr",21)}function di(e,t){1&e&&(v.TgZ(0,"app-alert",22),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function hi(e,t){1&e&&(v.TgZ(0,"app-alert",22),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}var fi=function(){var e=function(){function e(t,i){s(this,e),this.authResolver=t,this.tableCheckbox=i,this.bansOnFacilitiesWithUsers=[],this.selection=new Oe.Ov(!0,[]),this.pageSize=10,this.page=new v.vpe,this.displayedColumns=["select","userId","name","reason"],this.pageSizeOptions=p.f7}return r(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"userId"!==e})),this.dataSource=new rt.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){case"userId":return e[1].id.toString();case"reason":return e[0].description;case"name":return(0,p.hu)(e[1]);default:return""}}},{key:"exportData",value:function(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,p.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,p.pR)(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e[0].userId+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(g.x4),v.Y36(g.UA))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(e,t){var i;(1&e&&(v.Gf(Nt.YE,7),v.Gf(p.l9,7)),2&e)&&(v.iGM(i=v.CRH())&&(t.matSort=i.first),v.iGM(i=v.CRH())&&(t.child=i.first))},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",pageSize:"pageSize"},outputs:{page:"page"},features:[v.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(v.TgZ(0,"div",0),v.TgZ(1,"perun-web-apps-table-wrapper",1),v.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),v.TgZ(2,"table",2),v.ynx(3,3),v.YNc(4,ti,2,3,"th",4),v.YNc(5,ii,2,2,"td",5),v.BQk(),v.ynx(6,6),v.YNc(7,ai,3,3,"th",7),v.YNc(8,ni,2,1,"td",5),v.BQk(),v.ynx(9,8),v.YNc(10,si,3,3,"th",7),v.YNc(11,li,3,3,"td",9),v.BQk(),v.ynx(12,10),v.YNc(13,ri,3,3,"th",7),v.YNc(14,oi,2,1,"td",9),v.BQk(),v.YNc(15,ci,1,0,"tr",11),v.YNc(16,ui,1,0,"tr",12),v.qZA(),v.qZA(),v.qZA(),v.YNc(17,di,3,3,"app-alert",13),v.YNc(18,hi,3,3,"app-alert",13)),2&e&&(v.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.bansOnFacilitiesWithUsers.length),v.xp6(1),v.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),v.xp6(1),v.Q6J("dataSource",t.dataSource),v.xp6(13),v.Q6J("matHeaderRowDef",t.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",t.displayedColumns),v.xp6(1),v.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.bansOnFacilitiesWithUsers.length),v.xp6(1),v.Q6J("ngIf",0===t.bansOnFacilitiesWithUsers.length))},directives:[wt.l,rt.BZ,Nt.YE,rt.w1,rt.fO,rt.Dz,rt.as,rt.nj,o.O5,rt.ge,ue.oG,rt.ev,Nt.nU,rt.XQ,rt.Gk,Mt.w],pipes:[_.X$,ge.d],styles:[""]}),e}();function pi(e,t){1&e&&v._UZ(0,"mat-spinner",5)}function gi(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"app-perun-web-apps-blacklist-list",6),v.NdJ("page",function(e){return v.CHM(i),v.oxw().pageChanged(e)}),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("pageSize",a.pageSize)("filterValue",a.filterValue)("bansOnFacilitiesWithUsers",a.bansOnFacilitiesWithUsers)("selection",a.selected)}}var mi=function(){var e=function(){function e(t,i,a,n){s(this,e),this.facilitiesManager=t,this.usersManager=i,this.tableConfigService=a,this.route=n,this.bansOnFacilitiesWithUsers=[],this.selected=new Oe.Ov(!0,[]),this.filterValue="",this.tableId=xe.NG}return r(e,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.route.parent.parent.params.subscribe(function(t){e.facilitiesManager.getBansForFacility(t.facilityId).subscribe(function(t){var a,n=i(t);try{for(n.s();!(a=n.n()).done;){var s=a.value,l=void 0;e.usersManager.getUserById(s.userId).subscribe(function(e){l=e}),e.bansOnFacilitiesWithUsers.push([s,l])}}catch(r){n.e(r)}finally{n.f()}e.selected.clear(),e.loading=!1})})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(f.IQ),v.Y36(f.Fv),v.Y36(xe.dB),v.Y36(c.gz))},e.\u0275cmp=v.Xpm({type:e,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,"pageSize","filterValue","bansOnFacilitiesWithUsers","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","bansOnFacilitiesWithUsers","selection","page"]],template:function(e,t){1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return t.refreshTable()}),v.qZA(),v.TgZ(5,"perun-web-apps-immediate-filter",2),v.NdJ("filter",function(e){return t.applyFilter(e)}),v.ALo(6,"translate"),v.qZA(),v.YNc(7,pi,1,0,"mat-spinner",3),v.YNc(8,gi,1,4,"app-perun-web-apps-blacklist-list",4),v.qZA()),2&e&&(v.xp6(2),v.Oqu(v.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),v.xp6(3),v.Q6J("placeholder",v.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),v.xp6(2),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading))},directives:[Be.t,Ge.L,o.O5,y.$g,fi],pipes:[_.X$],styles:[""]}),e}(),Si=l(41939),vi=l(13572),Ai=l(40695),Ti=l(41186),Ii=["list"];function yi(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"perun-web-apps-attributes-list",6,7),v.NdJ("page",function(e){return v.CHM(i),v.oxw().pageChanged(e)}),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("pageSize",a.pageSize)("attributes",a.attributes)("selection",a.selected)}}var bi=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.dialog=t,this.attributesManager=i,this.facilityManager=a,this.tableConfigService=n,this.route=l,this.attributes=[],this.selected=new Oe.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=xe.rF}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.params.subscribe(function(t){e.hostId=t.hostId,e.facilityManager.getHostById(e.hostId).subscribe(function(t){e.host=t}),e.refreshTable()})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(function(t){e.attributes=(0,p.MX)(t),e.selected.clear(),e.loading=!1})}},{key:"onSave",value:function(){var e=this;this.list.updateMapAttributes();var t=(0,p.kZ)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(m.wA,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"addAttribute",value:function(){var e=this,t=(0,p.kZ)();t.width="1050px",t.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(Ai.n,t).afterClosed().subscribe(function(t){"saved"===t&&e.refreshTable()})}},{key:"removeAttribute",value:function(){var e=this,t=(0,p.kZ)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(vi.k,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(A.uw),v.Y36(f.H8),v.Y36(f.IQ),v.Y36(xe.dB),v.Y36(c.gz))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-facility-hosts-detail"]],viewQuery:function(e,t){var i;(1&e&&v.Gf(Ii,5),2&e)&&(v.iGM(i=v.CRH())&&(t.list=i.first))},decls:15,vars:16,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"pageSize","attributes","selection","page",4,"ngIf"],[3,"pageSize","attributes","selection","page"],["list",""]],template:function(e,t){1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return t.refreshTable()}),v.qZA(),v.TgZ(5,"button",2),v.NdJ("click",function(){return t.addAttribute()}),v._uU(6),v.ALo(7,"translate"),v.qZA(),v.TgZ(8,"button",3),v.NdJ("click",function(){return t.onSave()}),v._uU(9),v.ALo(10,"translate"),v.qZA(),v.TgZ(11,"button",4),v.NdJ("click",function(){return t.removeAttribute()}),v._uU(12),v.ALo(13,"translate"),v.qZA(),v.YNc(14,yi,2,3,"perun-web-apps-attributes-list",5),v.qZA()),2&e&&(v.xp6(2),v.AsE(" ",v.lcZ(3,8,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",t.host.hostname,""),v.xp6(4),v.hij(" ",v.lcZ(7,10,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),v.xp6(2),v.Q6J("disabled",0===t.selected.selected.length),v.xp6(1),v.hij(" ",v.lcZ(10,12,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),v.xp6(2),v.Q6J("disabled",0===t.selected.selected.length),v.xp6(1),v.hij(" ",v.lcZ(13,14,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),v.xp6(2),v.Q6J("ngIf",!t.loading))},directives:[Be.t,Z.lW,o.O5,Ti.p],pipes:[_.X$],styles:[""]}),e}();function Ei(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"th",14),v.TgZ(1,"mat-checkbox",15),v.NdJ("change",function(e){v.CHM(i);var t=v.oxw();return e?t.masterToggle():null}),v.qZA(),v.qZA()}if(2&e){var a=v.oxw();v.xp6(1),v.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function Ci(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"td",16),v.TgZ(1,"mat-checkbox",17),v.NdJ("change",function(e){var t=v.CHM(i).$implicit,a=v.oxw();return e?a.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),v.qZA(),v.qZA()}if(2&e){var a=t.$implicit,n=v.oxw();v.xp6(1),v.Q6J("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function Zi(e,t){1&e&&(v.TgZ(0,"th",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")))}function _i(e,t){if(1&e&&(v.TgZ(0,"td",16),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.id)}}function ki(e,t){1&e&&(v.TgZ(0,"th",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")))}function Li(e,t){if(1&e&&(v.TgZ(0,"td",19),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.name)}}function xi(e,t){1&e&&(v.TgZ(0,"th",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")))}function Oi(e,t){if(1&e&&(v.TgZ(0,"td",19),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.description)}}function Di(e,t){1&e&&v._UZ(0,"tr",20)}function Ri(e,t){1&e&&v._UZ(0,"tr",21)}function Ni(e,t){1&e&&(v.TgZ(0,"app-alert",22),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function wi(e,t){1&e&&(v.TgZ(0,"app-alert",22),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}var Yi=function(){var e=function(){function e(t,i){s(this,e),this.authResolver=t,this.tableCheckbox=i,this.securityTeams=[],this.selection=new Oe.Ov(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","name","description"],this.page=new v.vpe,this.pageSizeOptions=p.f7}return r(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new rt.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"description":return e.description;default:return""}}},{key:"exportData",value:function(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,p.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,p.pR)(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(g.x4),v.Y36(g.UA))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-security-teams-list"]],viewQuery:function(e,t){var i;(1&e&&(v.Gf(Nt.YE,7),v.Gf(p.l9,7)),2&e)&&(v.iGM(i=v.CRH())&&(t.matSort=i.first),v.iGM(i=v.CRH())&&(t.child=i.first))},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[v.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(v.TgZ(0,"div",0),v.TgZ(1,"perun-web-apps-table-wrapper",1),v.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),v.TgZ(2,"table",2),v.ynx(3,3),v.YNc(4,Ei,2,3,"th",4),v.YNc(5,Ci,2,2,"td",5),v.BQk(),v.ynx(6,6),v.YNc(7,Zi,3,3,"th",7),v.YNc(8,_i,2,1,"td",5),v.BQk(),v.ynx(9,8),v.YNc(10,ki,3,3,"th",7),v.YNc(11,Li,2,1,"td",9),v.BQk(),v.ynx(12,10),v.YNc(13,xi,3,3,"th",7),v.YNc(14,Oi,2,1,"td",9),v.BQk(),v.YNc(15,Di,1,0,"tr",11),v.YNc(16,Ri,1,0,"tr",12),v.qZA(),v.qZA(),v.qZA(),v.YNc(17,Ni,3,3,"app-alert",13),v.YNc(18,wi,3,3,"app-alert",13)),2&e&&(v.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.securityTeams.length),v.xp6(1),v.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),v.xp6(1),v.Q6J("dataSource",t.dataSource),v.xp6(13),v.Q6J("matHeaderRowDef",t.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",t.displayedColumns),v.xp6(1),v.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.securityTeams.length),v.xp6(1),v.Q6J("ngIf",0===t.securityTeams.length))},directives:[wt.l,rt.BZ,Nt.YE,rt.w1,rt.fO,rt.Dz,rt.as,rt.nj,o.O5,rt.ge,ue.oG,rt.ev,Nt.nU,rt.XQ,rt.Gk,Mt.w],pipes:[_.X$],styles:[""]}),e}();function Mi(e,t){1&e&&v._UZ(0,"mat-spinner",5)}function Fi(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"app-security-teams-list",6),v.NdJ("page",function(e){return v.CHM(i),v.oxw().pageChanged(e)}),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("pageSize",a.pageSize)("filterValue",a.filterValue)("securityTeams",a.securityTeams)("displayedColumns",a.displayedColumns)("selection",a.selected)}}var qi=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.dialog=t,this.facilitiesManager=i,this.tableConfigService=a,this.route=n,this.authResolver=l,this.securityTeams=[],this.selected=new Oe.Ov(!0,[]),this.filterValue="",this.tableId=xe.O9,this.displayedColumns=[]}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(t){e.facilitiesManager.getFacilityById(t.facilityId).subscribe(function(t){e.facility=t,e.refreshTable()})})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(function(t){e.securityTeams=t,e.selected.clear(),e.setAuthRights(),e.loading=!1})}},{key:"setAuthRights",value:function(){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"]}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"addSecurityTeam",value:function(){}},{key:"removeSecurityTeam",value:function(){}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(A.uw),v.Y36(f.IQ),v.Y36(xe.dB),v.Y36(c.gz),v.Y36(g.x4))},e.\u0275cmp=v.Xpm({type:e,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,"pageSize","filterValue","securityTeams","displayedColumns","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","securityTeams","displayedColumns","selection","page"]],template:function(e,t){1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return t.refreshTable()}),v.qZA(),v.TgZ(5,"perun-web-apps-immediate-filter",2),v.NdJ("filter",function(e){return t.applyFilter(e)}),v.qZA(),v.YNc(6,Mi,1,0,"mat-spinner",3),v.YNc(7,Fi,1,5,"app-security-teams-list",4),v.qZA()),2&e&&(v.xp6(2),v.Oqu(v.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),v.xp6(3),v.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading))},directives:[Be.t,Ge.L,o.O5,y.$g,Yi],pipes:[_.X$],styles:[""]}),e}(),Ui=l(64359),Ji=l(75374);function Qi(e,t){1&e&&v._UZ(0,"mat-spinner",6)}function zi(e,t){1&e&&(v.TgZ(0,"th",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")))}function Hi(e,t){if(1&e&&(v.TgZ(0,"td",18),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.hij(" ",i.id," ")}}function Vi(e,t){1&e&&(v.TgZ(0,"th",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")))}function Pi(e,t){if(1&e&&(v.TgZ(0,"td",18),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.hij(" ",i.destination.destination," ")}}function Bi(e,t){1&e&&(v.TgZ(0,"th",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function Gi(e,t){if(1&e&&(v.TgZ(0,"td",18),v._uU(1),v.ALo(2,"date"),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.hij(" ",v.xi3(2,1,i.timestamp,"d.M.y H:mm:ss")," ")}}function $i(e,t){1&e&&v._UZ(0,"tr",19)}function ji(e,t){1&e&&v._UZ(0,"tr",20)}function Ki(e,t){if(1&e&&(v.TgZ(0,"div",7),v.TgZ(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",8),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"table",9),v.ynx(8,10),v.YNc(9,zi,3,3,"th",11),v.YNc(10,Hi,2,1,"td",12),v.BQk(),v.ynx(11,13),v.YNc(12,Vi,3,3,"th",11),v.YNc(13,Pi,2,1,"td",12),v.BQk(),v.ynx(14,14),v.YNc(15,Bi,3,3,"th",11),v.YNc(16,Gi,3,4,"td",12),v.BQk(),v.YNc(17,$i,1,0,"tr",15),v.YNc(18,ji,1,0,"tr",16),v.qZA(),v.qZA()),2&e){var i=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),v.xp6(3),v.hij(" ",v.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),v.xp6(2),v.Q6J("dataSource",i.dataSource),v.xp6(10),v.Q6J("matHeaderRowDef",i.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",i.displayedColumns)}}var Wi=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.dialogRef=t,this.data=i,this.taskManager=a,this.notificator=n,this.translate=l,this.loading=!1,this.dataSource=new rt.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}return r(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}},{key:"deleteResults",value:function(){var e=this;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(function(){e.deleteResults()},function(){return e.loading=!1})}},{key:"onDelete",value:function(){this.deleteResults()}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(A.so),v.Y36(A.WI),v.Y36(f.Ob),v.Y36(g.V6),v.Y36(_.sK))},e.\u0275cmp=v.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div"),v.YNc(4,Qi,1,0,"mat-spinner",1),v.YNc(5,Ki,19,9,"div",2),v.TgZ(6,"div",3),v.TgZ(7,"button",4),v.NdJ("click",function(){return t.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return t.onDelete()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.qZA(),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),v.xp6(2),v.Tol(t.theme),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),v.xp6(2),v.Q6J("disabled",t.loading),v.xp6(1),v.hij(" ",v.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},directives:[A.uh,o.O5,A.H8,Z.lW,y.$g,A.xY,rt.BZ,rt.w1,rt.fO,rt.Dz,rt.as,rt.nj,rt.ge,rt.ev,rt.XQ,rt.Gk],pipes:[_.X$,o.uU],styles:[""]}),e}(),Xi=l(88884);function ea(e,t){1&e&&v._UZ(0,"mat-spinner",6)}function ta(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"mat-checkbox",13),v.NdJ("change",function(e){return v.CHM(i),v.oxw(2).change(e)}),v.ALo(1,"translate"),v._uU(2),v.ALo(3,"translate"),v.qZA()}if(2&e){var a=v.oxw(2);v.s9C("matTooltip",v.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),v.Q6J("matTooltipDisabled",!a.checkboxesDisabled)("disabled",a.checkboxesDisabled)("checked",a.taskChecked),v.xp6(2),v.hij(" ",v.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function ia(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"mat-checkbox",14),v.NdJ("change",function(e){return v.CHM(i),v.oxw(2).change(e)}),v.ALo(1,"translate"),v._uU(2),v.ALo(3,"translate"),v.qZA()}if(2&e){var a=v.oxw(2);v.s9C("matTooltip",v.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),v.Q6J("matTooltipDisabled",!a.checkboxesDisabled)("disabled",a.checkboxesDisabled)("checked",a.taskResultsChecked),v.xp6(2),v.hij(" ",v.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function aa(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"perun-web-apps-resources-list",15),v.NdJ("allSelected",function(e){return v.CHM(i),v.oxw(2).disableCheckboxes(e)})("page",function(e){return v.CHM(i),v.oxw(2).pageChanged(e)}),v.qZA()}if(2&e){var a=v.oxw(2);v.Q6J("pageSize",a.pageSize)("disableRouting",!0)("resources",a.resources)("selection",a.selected)("displayedColumns",a.displayedColumns)}}function na(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"div",7),v.TgZ(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div"),v.YNc(5,ta,4,9,"mat-checkbox",8),v.YNc(6,ia,4,9,"mat-checkbox",9),v.TgZ(7,"mat-checkbox",10),v.NdJ("change",function(e){return v.CHM(i),v.oxw().change(e)}),v.ALo(8,"translate"),v._uU(9),v.ALo(10,"translate"),v.qZA(),v.qZA(),v.TgZ(11,"p"),v._uU(12),v.ALo(13,"translate"),v.qZA(),v.TgZ(14,"div",11),v._uU(15),v.ALo(16,"translate"),v.qZA(),v.YNc(17,aa,1,5,"perun-web-apps-resources-list",12),v.qZA()}if(2&e){var a=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),v.xp6(3),v.Q6J("ngIf",null!==a.taskId),v.xp6(1),v.Q6J("ngIf",null!==a.taskId),v.xp6(1),v.s9C("matTooltip",v.lcZ(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),v.Q6J("matTooltipDisabled",!a.checkboxesDisabled)("disabled",a.checkboxesDisabled)("checked",a.destinationChecked),v.xp6(2),v.hij(" ",v.lcZ(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),v.xp6(3),v.Oqu(v.lcZ(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),v.xp6(3),v.hij(" ",v.lcZ(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),v.xp6(2),v.Q6J("ngIf",!a.loading)}}var sa=function(){var t=function(){function t(i,a,n,l,r,o,c,u,d){s(this,t),this.dialogRef=i,this.data=a,this.tableConfigService=n,this.resourcesManager=l,this.tasksManager=r,this.serviceManager=o,this.translate=c,this.notificator=u,this.cd=d,this.loading=!1,this.dataSource=new rt.by(this.data.resource),this.selected=new Oe.Ov(!0,e(this.dataSource.data)),this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=xe.$V}return r(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),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}},{key:"remove",value:function(){var e=this;this.loading=!0,this.taskResultsChecked&&!this.taskChecked&&null!==this.taskId&&this.tasksManager.getTaskResultsForGUIByTask(this.taskId).subscribe(function(t){t.forEach(function(t){e.tasksManager.deleteTaskResultById({taskResultId:t.id}).subscribe()})}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe(function(t){t.forEach(function(t){e.serviceManager.removeDestination(e.serviceId,e.facilityId,t.destination,t.type).subscribe()})}),this.selected.selected.forEach(function(t){e.resourcesManager.removeService(t.id,e.serviceId).subscribe(function(){e.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.dialogRef.close(!0)})},function(){return e.loading=!1})})}},{key:"cancel",value:function(){this.dialogRef.close(!1)}},{key:"disableCheckboxes",value:function(e){e&&this.checkboxesDisabled&&this.changeCheckboxes(!0),e||this.checkboxesDisabled||this.changeCheckboxes(!1)}},{key:"changeCheckboxes",value:function(e){this.checkboxesDisabled=!e,this.taskChecked=e,this.taskResultsChecked=e,this.destinationChecked=e,this.cd.detectChanges()}},{key:"change",value:function(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}}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(v.Y36(A.so),v.Y36(A.WI),v.Y36(xe.dB),v.Y36(f.xk),v.Y36(f.Ob),v.Y36(f.KK),v.Y36(_.sK),v.Y36(g.V6),v.Y36(v.sBO))},t.\u0275cmp=v.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["id","task","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","taskResults","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","destination","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[1,"font-weight-bold"],[3,"pageSize","disableRouting","resources","selection","displayedColumns","allSelected","page",4,"ngIf"],["id","task","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],["id","taskResults","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[3,"pageSize","disableRouting","resources","selection","displayedColumns","allSelected","page"]],template:function(e,t){1&e&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div"),v.YNc(4,ea,1,0,"mat-spinner",1),v.YNc(5,na,18,21,"div",2),v.TgZ(6,"div",3),v.TgZ(7,"button",4),v.NdJ("click",function(){return t.cancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return t.remove()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.qZA(),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),v.xp6(2),v.Tol(t.theme),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),v.xp6(2),v.Q6J("disabled",t.loading||0===t.selected.selected.length),v.xp6(1),v.hij(" ",v.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},directives:[A.uh,o.O5,A.H8,Z.lW,y.$g,A.xY,ue.oG,E.gM,Xi.C],pipes:[_.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),t}();function la(e,t){1&e&&v._UZ(0,"mat-spinner",6)}function ra(e,t){1&e&&(v.TgZ(0,"div",7),v.TgZ(1,"div",8),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.qZA()),2&e&&(v.xp6(2),v.hij(" ",v.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}var oa=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.dialogRef=t,this.data=i,this.tasksManager=a,this.translate=n,this.notificator=l,this.loading=!1}return r(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.taskId=this.data.taskId}},{key:"remove",value:function(){var e=this;this.loading=!0,this.tasksManager.deleteTask({task:this.taskId}).subscribe(function(){e.translate.get("DIALOGS.DELETE_TASK.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.dialogRef.close(!0)})},function(){return e.loading=!1})}},{key:"cancel",value:function(){this.dialogRef.close(!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(A.so),v.Y36(A.WI),v.Y36(f.Ob),v.Y36(_.sK),v.Y36(g.V6))},e.\u0275cmp=v.Xpm({type:e,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(e,t){1&e&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div"),v.YNc(4,la,1,0,"mat-spinner",1),v.YNc(5,ra,4,3,"div",2),v.TgZ(6,"div",3),v.TgZ(7,"button",4),v.NdJ("click",function(){return t.cancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return t.remove()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.qZA(),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),v.xp6(2),v.Tol(t.theme),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),v.xp6(2),v.Q6J("disabled",t.loading),v.xp6(1),v.hij(" ",v.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},directives:[A.uh,o.O5,A.H8,Z.lW,y.$g,A.xY],pipes:[_.X$],styles:[""]}),e}(),ca=l(8055),ua=function(){var e=function(){function e(){s(this,e)}return r(e,[{key:"transform",value:function(e){return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=v.Yjl({name:"serviceStateBlockedToString",type:e,pure:!0}),e}();function da(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"th",17),v.TgZ(1,"mat-checkbox",18),v.NdJ("change",function(e){v.CHM(i);var t=v.oxw();return e&&t.masterToggle(),t.selectionChange.emit()}),v.qZA(),v.qZA()}if(2&e){var a=v.oxw();v.xp6(1),v.Q6J("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())("aria-label",a.checkboxLabel())}}function ha(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"td",19),v.TgZ(1,"mat-checkbox",20),v.NdJ("click",function(e){return e.stopPropagation()})("change",function(e){var t=v.CHM(i).$implicit,a=v.oxw();return e&&a.selection.toggle(t),a.selectionChange.emit()}),v.qZA(),v.qZA()}if(2&e){var a=t.$implicit,n=v.oxw();v.xp6(1),v.Q6J("checked",n.selection.isSelected(a))("aria-label",n.checkboxLabel(a))}}function fa(e,t){1&e&&(v.TgZ(0,"th",21),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")))}function pa(e,t){if(1&e&&(v.TgZ(0,"div"),v._uU(1),v.qZA()),2&e){var i=v.oxw().$implicit;v.xp6(1),v.Oqu(i.task.id)}}function ga(e,t){1&e&&(v.TgZ(0,"div"),v._uU(1,"0"),v.qZA())}function ma(e,t){if(1&e&&(v.TgZ(0,"td",19),v.YNc(1,pa,2,1,"div",22),v.YNc(2,ga,2,0,"div",22),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Q6J("ngIf",i.task),v.xp6(1),v.Q6J("ngIf",!i.task)}}function Sa(e,t){1&e&&(v.TgZ(0,"th",21),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")))}function va(e,t){if(1&e&&(v.TgZ(0,"td",23),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.service.name)}}function Aa(e,t){1&e&&(v.TgZ(0,"th",21),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")))}function Ta(e,t){if(1&e&&(v.TgZ(0,"td",23),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.status)}}function Ia(e,t){1&e&&(v.TgZ(0,"th",21),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")))}function ya(e,t){if(1&e&&(v.TgZ(0,"td",23),v._uU(1),v.ALo(2,"serviceStateBlockedToString"),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(v.lcZ(2,1,i))}}function ba(e,t){1&e&&(v.TgZ(0,"th",21),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")))}function Ea(e,t){if(1&e&&(v.TgZ(0,"div"),v._uU(1),v.ALo(2,"date"),v.qZA()),2&e){var i=v.oxw().$implicit;v.xp6(1),v.Oqu(v.xi3(2,1,i.task.startTime,"d.M.y H:mm:ss"))}}function Ca(e,t){1&e&&(v.TgZ(0,"div"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET"),""))}function Za(e,t){if(1&e&&(v.TgZ(0,"td",23),v.YNc(1,Ea,3,4,"div",22),v.YNc(2,Ca,3,3,"div",22),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Q6J("ngIf",i.task&&i.task.startTime),v.xp6(1),v.Q6J("ngIf",!i.task||!i.task.startTime)}}function _a(e,t){1&e&&(v.TgZ(0,"th",21),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")))}function ka(e,t){if(1&e&&(v.TgZ(0,"div"),v._uU(1),v.ALo(2,"date"),v.qZA()),2&e){var i=v.oxw().$implicit;v.xp6(1),v.Oqu(v.xi3(2,1,i.task.endTime,"d.M.y H:mm:ss"))}}function La(e,t){1&e&&(v.TgZ(0,"div"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function xa(e,t){if(1&e&&(v.TgZ(0,"td",23),v.YNc(1,ka,3,4,"div",22),v.YNc(2,La,3,3,"div",22),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Q6J("ngIf",i.task&&i.task.endTime),v.xp6(1),v.Q6J("ngIf",!i.task||!i.task.endTime)}}function Oa(e,t){1&e&&v._UZ(0,"tr",24)}var Da=function(e,t){return["/facilities",e,"services-status",t]};function Ra(e,t){if(1&e&&v._UZ(0,"tr",25),2&e){var i=t.$implicit,a=v.oxw();v.ekj("disable-outline",a.disableRouting||!i.task)("make-yellow","WARNING"===i.status)("make-green","DONE"===i.status)("make-red","GENERROR"===i.status||"SENDERROR"===i.status||"ERROR"===i.status)("cursor-pointer",!a.disableRouting&&null!==i.task),v.Q6J("routerLink",a.disableRouting||null===i.task?null:v.WLB(12,Da,i.facility.id,i.taskId))("perunWebAppsMiddleClickRouterLink",a.disableRouting||null===i.task?null:v.WLB(15,Da,i.facility.id,i.taskId))}}function Na(e,t){1&e&&(v.TgZ(0,"app-alert",26),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function wa(e,t){1&e&&(v.TgZ(0,"app-alert",26),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}var Ya=function(){var e=function(){function e(t,i){s(this,e),this.authResolver=t,this.tableCheckbox=i,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new Oe.Ov(!0,[]),this.pageSize=10,this.disableRouting=!0,this.page=new v.vpe,this.selectionChange=new v.vpe,this.pageSizeOptions=p.f7}return r(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"task.id"!==e})),this.dataSource=new rt.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=function(e,t){var i=t.trim().toLowerCase();return function e(t){var i="";return Object.values(t).forEach(function(t){"object"!=typeof t?i=i+" "+t:null!==t&&(i=i+" "+e(t))}),i.trim().toLowerCase()}(e).includes(i)},this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){case"task.id":return e.task?e.task.id.toString():e[t];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&&e.task.startTime?(0,o.p6)(e.task.startTime,"d.M.y H:mm:ss","en"):e[t];case"task.endTime":return e.task&&e.task.endTime?(0,o.p6)(e.task.endTime,"d.M.y H:mm:ss","en"):e[t];default:return e[t]}}},{key:"getSortDataForColumn",value:function(e,t){switch(t){case"task.id":return e.task?e.task.id.toString():e[t];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&&e.task.startTime?(0,o.p6)(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[t];case"task.endTime":return e.task&&e.task.endTime?(0,o.p6)(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[t];default:return e[t]}}},{key:"exportData",value:function(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,p.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,p.pR)(t,i,e.getSortDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.service.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(g.x4),v.Y36(g.UA))},e.\u0275cmp=v.Xpm({type:e,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(e,t){var i;(1&e&&(v.Gf(Nt.YE,7),v.Gf(p.l9,7)),2&e)&&(v.iGM(i=v.CRH())&&(t.matSort=i.first),v.iGM(i=v.CRH())&&(t.child=i.first))},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page",selectionChange:"selectionChange"},features:[v.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","task.id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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",""],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"checked","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],[4,"ngIf"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,t){1&e&&(v.TgZ(0,"div",0),v.TgZ(1,"perun-web-apps-table-wrapper",1),v.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),v.TgZ(2,"table",2),v.ynx(3,3),v.YNc(4,da,2,3,"th",4),v.YNc(5,ha,2,2,"td",5),v.BQk(),v.ynx(6,6),v.YNc(7,fa,3,3,"th",7),v.YNc(8,ma,3,2,"td",5),v.BQk(),v.ynx(9,8),v.YNc(10,Sa,3,3,"th",7),v.YNc(11,va,2,1,"td",9),v.BQk(),v.ynx(12,10),v.YNc(13,Aa,3,3,"th",7),v.YNc(14,Ta,2,1,"td",9),v.BQk(),v.ynx(15,11),v.YNc(16,Ia,3,3,"th",7),v.YNc(17,ya,3,3,"td",9),v.BQk(),v.ynx(18,12),v.YNc(19,ba,3,3,"th",7),v.YNc(20,Za,3,2,"td",9),v.BQk(),v.ynx(21,13),v.YNc(22,_a,3,3,"th",7),v.YNc(23,xa,3,2,"td",9),v.BQk(),v.YNc(24,Oa,1,0,"tr",14),v.YNc(25,Ra,1,18,"tr",15),v.qZA(),v.qZA(),v.qZA(),v.YNc(26,Na,3,3,"app-alert",16),v.YNc(27,wa,3,3,"app-alert",16)),2&e&&(v.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.servicesStatus.length),v.xp6(1),v.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),v.xp6(1),v.Q6J("dataSource",t.dataSource),v.xp6(22),v.Q6J("matHeaderRowDef",t.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",t.displayedColumns),v.xp6(1),v.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.servicesStatus.length),v.xp6(1),v.Q6J("ngIf",0===t.servicesStatus.length))},directives:[wt.l,rt.BZ,Nt.YE,rt.w1,rt.fO,rt.Dz,rt.as,rt.nj,o.O5,rt.ge,ue.oG,rt.ev,Nt.nU,rt.XQ,rt.Gk,c.rH,Yt.YH,Mt.w],pipes:[_.X$,ua,o.uU],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.make-green[_ngcontent-%COMP%]{background-color:#c4ffcb}.make-yellow[_ngcontent-%COMP%]{background-color:#fffde7}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),e}();function Ma(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",11),v.NdJ("click",function(){return v.CHM(i),v.oxw().forcePropagation()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("disabled",0===a.selected.selected.length),v.xp6(1),v.hij(" ",v.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Fa(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",11),v.NdJ("click",function(){return v.CHM(i),v.oxw().allow()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("disabled",0===a.selected.selected.length||a.disableAllowButton),v.xp6(1),v.hij(" ",v.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function qa(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",12),v.NdJ("click",function(){return v.CHM(i),v.oxw().block()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("disabled",0===a.selected.selected.length||a.disableBlockButton),v.xp6(1),v.hij(" ",v.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function Ua(e,t){if(1&e&&(v.TgZ(0,"button",13),v.ALo(1,"translate"),v._uU(2),v.ALo(3,"translate"),v.qZA()),2&e){var i=v.oxw(),a=v.MAs(10);v.s9C("matTooltip",v.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),v.Q6J("matTooltipDisabled",!i.disableRemoveButton)("disabled",i.disableRemoveButton)("matMenuTriggerFor",a),v.xp6(2),v.hij(" ",v.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function Ja(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",7),v.NdJ("click",function(){return v.CHM(i),v.oxw().removeTaskResults()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function Qa(e,t){1&e&&v._UZ(0,"mat-spinner",14)}function za(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"perun-web-apps-services-status-list",15),v.NdJ("page",function(e){return v.CHM(i),v.oxw().pageChanged(e)})("selectionChange",function(){return v.CHM(i),v.oxw().selectionChanged()}),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("pageSize",a.pageSize)("filterValue",a.filterValue)("servicesStatus",a.servicesStates)("selection",a.selected)("disableRouting",!a.routeAuth)}}var Ha=function(){var e=function(){function e(t,i,a,n,l,r,o,c,u,d){var h=this;s(this,e),this.route=t,this.tasksManager=i,this.tableConfigService=a,this.servicesManager=n,this.notificator=l,this.translate=r,this.authResolver=o,this.facilityManager=c,this.resourcesManager=u,this.dialog=d,this.servicesStates=[],this.selected=new Oe.Ov(!0,[]),this.filterValue="",this.tableId=xe.oK,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,r.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(function(e){return h.successFPMessage=e}),r.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(function(e){return h.successAllowMessage=e}),r.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(function(e){return h.successBlockMessage=e}),r.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(function(e){return h.successDeleteMessage=e}),r.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(function(e){return h.allreadyDeletedMessage=e})}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(t){e.facilityId=parseInt(t.facilityId,10),e.facility={id:e.facilityId,beanName:"Facility"},e.refreshTable()})}},{key:"forcePropagation",value:function(){var e,t=this,a=i(this.selected.selected);try{for(a.s();!(e=a.n()).done;){var n=e.value;this.servicesManager.forceServicePropagation(n.service.id,n.facility.id).subscribe(function(){t.refreshTable(),t.notificator.showSuccess(t.successFPMessage)})}}catch(s){a.e(s)}finally{a.f()}}},{key:"allow",value:function(){var e,t=this,a=i(this.selected.selected);try{for(a.s();!(e=a.n()).done;){var n=e.value;this.servicesManager.unblockServiceOnFacility(n.service.id,n.facility.id).subscribe(function(){t.refreshTable(),t.notificator.showSuccess(t.successAllowMessage)})}}catch(s){a.e(s)}finally{a.f()}}},{key:"block",value:function(){var e,t=this,a=i(this.selected.selected);try{for(a.s();!(e=a.n()).done;){var n=e.value;this.servicesManager.blockServiceOnFacility(n.service.id,n.facility.id).subscribe(function(){t.refreshTable(),t.notificator.showSuccess(t.successBlockMessage)})}}catch(s){a.e(s)}finally{a.f()}}},{key:"removeTaskResults",value:function(){var e=this;this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe(function(t){var i=(0,p.kZ)();i.width="600px",i.data={theme:"facility-theme",taskResults:t},e.dialog.open(Wi,i)})}},{key:"removeServiceFromFacility",value:function(){var e=this;this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(function(t){var i=(0,p.kZ)();i.width="600px",e.taskId=e.taskIsNull?null:e.selected.selected[0].task.id,0===t.length?(i.data={theme:"facility-theme",taskId:e.taskId},e.dialog.open(oa,i).afterClosed().subscribe(function(t){t&&(e.disableRemoveButton=!0,e.refreshTable())})):e.resourcesManager.getRichResourcesByIds(t.map(function(e){return e.id})).subscribe(function(t){i.data={theme:"facility-theme",taskId:e.taskId,serviceId:e.selected.selected[0].service.id,facilityId:e.selected.selected[0].facility.id,resource:t},e.dialog.open(sa,i).afterClosed().subscribe(function(t){t&&(e.disableRemoveButton=!0,e.refreshTable())})})})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.tasksManager.getFacilityServicesState(this.facilityId).subscribe(function(t){e.servicesStates=t,e.selected.clear(),e.setAuthRights(),e.loading=!1})}},{key:"setAuthRights",value:function(){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])}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}},{key:"selectionChanged",value:function(){this.disableBlockButton=!0,this.disableAllowButton=!0,this.disableRemoveButton=1!==this.selected.selected.length,this.disableRemoveButton||(this.taskIsNull=null===this.selected.selected[0].task);var e,t=i(this.selected.selected);try{for(t.s();!(e=t.n()).done;){e.value.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}}catch(a){t.e(a)}finally{t.f()}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(c.gz),v.Y36(f.Ob),v.Y36(xe.dB),v.Y36(f.KK),v.Y36(g.V6),v.Y36(_.sK),v.Y36(g.x4),v.Y36(f.IQ),v.Y36(f.xk),v.Y36(A.uw))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor",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,"pageSize","filterValue","servicesStatus","selection","disableRouting","page","selectionChange",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","servicesStatus","selection","disableRouting","page","selectionChange"]],template:function(e,t){1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return t.refreshTable()}),v.qZA(),v.YNc(5,Ma,3,4,"button",2),v.YNc(6,Fa,3,4,"button",2),v.YNc(7,qa,3,4,"button",3),v.YNc(8,Ua,4,9,"button",4),v.TgZ(9,"mat-menu",null,5),v.YNc(11,Ja,3,3,"button",6),v.TgZ(12,"button",7),v.NdJ("click",function(){return t.removeServiceFromFacility()}),v._uU(13),v.ALo(14,"translate"),v.qZA(),v.qZA(),v.TgZ(15,"perun-web-apps-immediate-filter",8),v.NdJ("filter",function(e){return t.applyFilter(e)}),v.qZA(),v.YNc(16,Qa,1,0,"mat-spinner",9),v.YNc(17,za,1,5,"perun-web-apps-services-status-list",10),v.qZA()),2&e&&(v.xp6(2),v.Oqu(v.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),v.xp6(3),v.Q6J("ngIf",!t.loading&&t.propagationAuth),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.allowAuth),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.blockAuth),v.xp6(1),v.Q6J("ngIf",!t.loading&&t.deleteAuth),v.xp6(3),v.Q6J("ngIf",!t.taskIsNull),v.xp6(2),v.Oqu(v.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")),v.xp6(2),v.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading))},directives:[Be.t,o.O5,ca.VK,ca.OP,Ge.L,Z.lW,E.gM,ca.p6,y.$g,Ya],pipes:[_.X$],styles:[""]}),e}(),Va=l(91058),Pa=l(86593);function Ba(e,t){1&e&&v._UZ(0,"mat-spinner",6)}function Ga(e,t){1&e&&(v.TgZ(0,"app-alert",7),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"FACILITY_DETAIL.ALLOWED_USERS.NO_USERS")," "))}var $a=function(){return["id","name"]};function ja(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"app-users-list",8),v.NdJ("page",function(e){return v.CHM(i),v.oxw().pageChanged(e)}),v.qZA()}if(2&e){var a=v.oxw();v.Q6J("pageSize",a.pageSize)("users",a.users)("displayedColumns",v.DdM(5,$a))("disableRouting",!a.routeAuth)("filter",a.filterValue)}}var Ka=function(){var e=function(){function e(t,i,a,n){s(this,e),this.route=t,this.facilityService=i,this.tableConfigService=a,this.authResolver=n,this.loading=!1,this.filterValue="",this.tableId=xe.z6}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(t){e.facilityId=t.facilityId,e.routeAuth=e.authResolver.isPerunAdminOrObserver(),e.refreshTable()})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.facilityService.getAssignedUsers(this.facilityId).subscribe(function(t){e.users=t,e.loading=!1})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(c.gz),v.Y36(f.IQ),v.Y36(xe.dB),v.Y36(g.x4))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-facility-allowed-users"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"pageSize","users","displayedColumns","disableRouting","filter","page",4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[3,"pageSize","users","displayedColumns","disableRouting","filter","page"]],template:function(e,t){1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return t.refreshTable()}),v.qZA(),v.TgZ(5,"perun-web-apps-debounce-filter",2),v.NdJ("filter",function(e){return t.applyFilter(e)}),v.qZA(),v.YNc(6,Ba,1,0,"mat-spinner",3),v.YNc(7,Ga,3,3,"app-alert",4),v.YNc(8,ja,1,6,"app-users-list",5),v.qZA()),2&e&&(v.xp6(2),v.Oqu(v.lcZ(3,5,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),v.xp6(3),v.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),v.xp6(1),v.Q6J("ngIf",t.loading),v.xp6(1),v.Q6J("ngIf",!t.loading&&(void 0===t.users||0===t.users.length)),v.xp6(1),v.Q6J("ngIf",!t.loading&&0!==t.users.length))},directives:[Be.t,Va.P,o.O5,y.$g,Mt.w,Pa.C],pipes:[_.X$],styles:[""]}),e}(),Wa=l(95142);function Xa(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"th",19),v.TgZ(1,"mat-checkbox",20),v.NdJ("change",function(e){v.CHM(i);var t=v.oxw();return e?t.masterToggle():null}),v.qZA(),v.qZA()}if(2&e){var a=v.oxw();v.xp6(1),v.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function en(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"td",21),v.TgZ(1,"mat-checkbox",22),v.NdJ("change",function(e){var t=v.CHM(i).$implicit,a=v.oxw();return e?a.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),v.qZA(),v.qZA()}if(2&e){var a=t.$implicit,n=v.oxw();v.xp6(1),v.Q6J("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function tn(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")))}function an(e,t){if(1&e&&(v.TgZ(0,"td",21),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.id)}}function nn(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")))}function sn(e,t){if(1&e&&(v.TgZ(0,"td",21),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.destination.destination)}}function ln(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")))}function rn(e,t){if(1&e&&(v.TgZ(0,"td",21),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.destination.type.toUpperCase())}}function on(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")))}function cn(e,t){if(1&e&&(v.TgZ(0,"td",21),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.service.name)}}function un(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")))}function dn(e,t){if(1&e&&(v.TgZ(0,"td",21),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.status)}}function hn(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")))}function fn(e,t){if(1&e&&(v.TgZ(0,"td",21),v._uU(1),v.ALo(2,"date"),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(v.xi3(2,1,i.timestamp,"d.M.y H:mm:ss"))}}function pn(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")))}function gn(e,t){if(1&e&&(v.TgZ(0,"td",21),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.returnCode)}}function mn(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")))}function Sn(e,t){if(1&e&&(v.TgZ(0,"span"),v._uU(1),v._UZ(2,"br"),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i)}}function vn(e,t){if(1&e&&(v.TgZ(0,"td",21),v.YNc(1,Sn,3,1,"span",24),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Q6J("ngForOf",i.standardMessage.split("\n"))}}function An(e,t){1&e&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")))}function Tn(e,t){if(1&e&&(v.TgZ(0,"td",21),v._uU(1),v.qZA()),2&e){var i=t.$implicit;v.xp6(1),v.Oqu(i.errorMessage)}}function In(e,t){1&e&&v._UZ(0,"tr",25)}function yn(e,t){if(1&e&&v._UZ(0,"tr",26),2&e){var i=t.$implicit;v.ekj("greenTableItem","DONE"===i.status)("redTableItem","ERROR"===i.status||"DENIED"===i.status)("yellowTableItem","WARNING"===i.status)}}function bn(e,t){1&e&&(v.TgZ(0,"app-alert",27),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function En(e,t){1&e&&(v.TgZ(0,"app-alert",27),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&e&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}var Cn=function(){var e=function(){function e(t,i){s(this,e),this.authResolver=t,this.tableCheckbox=i,this.pageSizeOptions=p.f7,this.taskResults=[],this.selection=new Oe.Ov(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.page=new v.vpe}return r(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new rt.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){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,o.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""}}},{key:"getSortDataForColumn",value:function(e,t){switch(t){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,o.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""}}},{key:"exportData",value:function(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=function(t,i){return(0,p.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,p.pR)(t,i,e.getSortDataForColumn,e)})}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(g.x4),v.Y36(g.UA))},e.\u0275cmp=v.Xpm({type:e,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(e,t){var i;(1&e&&(v.Gf(Nt.YE,7),v.Gf(p.l9,7)),2&e)&&(v.iGM(i=v.CRH())&&(t.matSort=i.first),v.iGM(i=v.CRH())&&(t.child=i.first))},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[v.TTD],decls:37,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(v.TgZ(0,"div",0),v.TgZ(1,"perun-web-apps-table-wrapper",1),v.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),v.TgZ(2,"table",2),v.ynx(3,3),v.YNc(4,Xa,2,3,"th",4),v.YNc(5,en,2,2,"td",5),v.BQk(),v.ynx(6,6),v.YNc(7,tn,3,3,"th",7),v.YNc(8,an,2,1,"td",5),v.BQk(),v.ynx(9,8),v.YNc(10,nn,3,3,"th",7),v.YNc(11,sn,2,1,"td",5),v.BQk(),v.ynx(12,9),v.YNc(13,ln,3,3,"th",7),v.YNc(14,rn,2,1,"td",5),v.BQk(),v.ynx(15,10),v.YNc(16,on,3,3,"th",7),v.YNc(17,cn,2,1,"td",5),v.BQk(),v.ynx(18,11),v.YNc(19,un,3,3,"th",7),v.YNc(20,dn,2,1,"td",5),v.BQk(),v.ynx(21,12),v.YNc(22,hn,3,3,"th",7),v.YNc(23,fn,3,4,"td",5),v.BQk(),v.ynx(24,13),v.YNc(25,pn,3,3,"th",7),v.YNc(26,gn,2,1,"td",5),v.BQk(),v.ynx(27,14),v.YNc(28,mn,3,3,"th",7),v.YNc(29,vn,2,1,"td",5),v.BQk(),v.ynx(30,15),v.YNc(31,An,3,3,"th",7),v.YNc(32,Tn,2,1,"td",5),v.BQk(),v.YNc(33,In,1,0,"tr",16),v.YNc(34,yn,1,6,"tr",17),v.qZA(),v.qZA(),v.qZA(),v.YNc(35,bn,3,3,"app-alert",18),v.YNc(36,En,3,3,"app-alert",18)),2&e&&(v.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.taskResults.length),v.xp6(1),v.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),v.xp6(1),v.Q6J("dataSource",t.dataSource),v.xp6(31),v.Q6J("matHeaderRowDef",t.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",t.displayedColumns),v.xp6(1),v.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.taskResults.length),v.xp6(1),v.Q6J("ngIf",0===t.taskResults.length))},directives:[wt.l,rt.BZ,Nt.YE,rt.w1,rt.fO,rt.Dz,rt.as,rt.nj,o.O5,rt.ge,ue.oG,rt.ev,Nt.nU,o.sg,rt.XQ,rt.Gk,Mt.w],pipes:[_.X$,o.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),e}();function Zn(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"button",8),v.NdJ("click",function(){return v.CHM(i),v.oxw(2).removeTaskResult()}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&e){var a=v.oxw(2);v.Q6J("disabled",0===a.selection.selected.length),v.xp6(1),v.hij(" ",v.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE")," ")}}function _n(e,t){1&e&&v._UZ(0,"mat-spinner",9)}function kn(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"perun-web-apps-task-results-list",10),v.NdJ("page",function(e){return v.CHM(i),v.oxw(2).pageChanged(e)}),v.qZA()}if(2&e){var a=v.oxw(2);v.Q6J("displayedColumns",a.displayedColumns)("filterValue",a.filterValue)("pageSize",a.pageSize)("selection",a.selection)("taskResults",a.taskResults)}}function Ln(e,t){if(1&e){var i=v.EpF();v.TgZ(0,"div"),v.TgZ(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.TgZ(4,"span",2),v._uU(5),v.qZA(),v.qZA(),v.TgZ(6,"perun-web-apps-refresh-button",3),v.NdJ("refresh",function(){return v.CHM(i),v.oxw().refreshTable()}),v.qZA(),v.YNc(7,Zn,3,4,"button",4),v.TgZ(8,"perun-web-apps-immediate-filter",5),v.NdJ("filter",function(e){return v.CHM(i),v.oxw().applyFilter(e)}),v.qZA(),v.YNc(9,_n,1,0,"mat-spinner",6),v.YNc(10,kn,1,5,"perun-web-apps-task-results-list",7),v.qZA()}if(2&e){var a=v.oxw();v.xp6(2),v.AsE("",v.lcZ(3,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",a.task.service.name," "),v.xp6(3),v.hij(" \xa0#",a.task.id," "),v.xp6(2),v.Q6J("ngIf",!a.loading&&a.removeAuth),v.xp6(1),v.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),v.xp6(1),v.Q6J("ngIf",a.loading),v.xp6(1),v.Q6J("ngIf",!a.loading)}}var xn,On=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.route=t,this.tableConfigService=i,this.taskManager=a,this.authResolver=n,this.dialog=l,this.loading=!1,this.filterValue="",this.selection=new Oe.Ov(!0,[]),this.tableId=xe.e5,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(t){e.facility={id:parseInt(t.facilityId,10),beanName:"Facility"},e.removeAuth=e.authResolver.isAuthorized("deleteTask_Task_policy",[e.facility]),e.removeAuth||(e.displayedColumns=["id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]),e.route.params.subscribe(function(t){e.taskId=t.taskId,e.taskManager.getTaskById(e.taskId).subscribe(function(t){e.task=t,e.refreshTable()})})})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(function(t){e.selection.clear(),e.taskResults=t,e.loading=!1})}},{key:"removeTaskResult",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(Wi,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(v.Y36(c.gz),v.Y36(xe.dB),v.Y36(f.Ob),v.Y36(g.x4),v.Y36(A.uw))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-facility-task-results"]],decls:1,vars:1,consts:[[4,"ngIf"],[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,"displayedColumns","filterValue","pageSize","selection","taskResults","page",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","pageSize","selection","taskResults","page"]],template:function(e,t){1&e&&v.YNc(0,Ln,11,9,"div",0),2&e&&v.Q6J("ngIf",!t.loading)},directives:[o.O5,Be.t,Ge.L,Z.lW,y.$g,Cn],pipes:[_.X$],styles:[""]}),e}(),Dn=l(53134),Rn=[{path:"",component:u.P},{path:":facilityId",component:N,children:[{path:"",component:F,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:te,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:q.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:Ka,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:U.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:Ha,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:On,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:Ze,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:it,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:ei,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:bi,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:z,children:[{path:"",component:P,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:It,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:Le,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:qi,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:mi,data:{animation:"FacilitySettingsBlackListPage"}}]}]},{path:":facilityId/resources/:resourceId",component:J.b,children:[{path:"",component:Q.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:ne.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:se.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:Ji.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:Wa.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Dn.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:ie.t,children:[{path:"",component:ae.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:Ui.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}],Nn=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=v.oAB({type:e}),e.\u0275inj=v.cJS({imports:[[c.Bz.forChild(Rn)],c.Bz]}),e}(),wn=l(28780),Yn=l(22727),Mn=l(6363),Fn=((xn=function e(){s(this,e)}).\u0275fac=function(e){return new(e||xn)},xn.\u0275mod=v.oAB({type:xn}),xn.\u0275inj=v.cJS({providers:[ce.dp],imports:[[o.ez,Nn,wn.m,Yn.r,Si.ez,ce.d4,Mn.UsersModule]]}),xn)}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/363-es2015.3fbe2b130d5c69b906dc.js b/dist/apps/admin-gui/363-es2015.3fbe2b130d5c69b906dc.js deleted file mode 100644 index ad61cded1..000000000 --- a/dist/apps/admin-gui/363-es2015.3fbe2b130d5c69b906dc.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[363],{95690:function(e,t,i){"use strict";i.d(t,{u:function(){return f}});var s=i(88426),n=i(31572),r=i(57629),a=i(55109),o=i(61511),c=i(541),p=i(69012),l=i(48160);function u(e,t){1&e&&(n._uU(0),n.ALo(1,"translate")),2&e&&n.hij(" ",n.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function g(e,t){if(1&e&&n._UZ(0,"app-one-entity-attribute-page",5),2&e){const e=n.oxw();n.Q6J("entityId",e.userId)("entity","user")}}function d(e,t){1&e&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&e&&n.AsE(" ",n.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",n.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function m(e,t){if(1&e&&n._UZ(0,"app-two-entity-attribute-page",6),2&e){const e=n.oxw(2);n.Q6J("firstEntity","user")("firstEntityId",e.userId)("secondEntity","facility")}}function h(e,t){1&e&&(n.TgZ(0,"mat-tab"),n.YNc(1,d,3,6,"ng-template",2),n.YNc(2,m,1,3,"ng-template",3),n.qZA())}let f=(()=>{class e{constructor(e,t,i){this.route=e,this.store=t,this.authResolver=i}ngOnInit(){this.route.parent.params.subscribe(e=>{this.userId=e.userId,void 0===this.userId&&(this.userId=this.store.getPerunPrincipal().userId),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:this.userId,beanName:"User"}])})}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(r.gz),n.Y36(s.d6),n.Y36(s.x4))},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-user-settings-attributes"]],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("router-component",t.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(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"mat-tab-group"),n.TgZ(4,"mat-tab",1),n.YNc(5,u,2,3,"ng-template",2),n.YNc(6,g,1,2,"ng-template",3),n.qZA(),n.YNc(7,h,3,0,"mat-tab",4),n.qZA()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,2,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),n.xp6(6),n.Q6J("ngIf",t.userFacilityAttAuth))},directives:[a.SP,a.uX,a.uD,a.Vc,o.O5,c.t,p.Y],pipes:[l.X$],styles:[""]}),e})()},31612:function(e,t,i){"use strict";i.d(t,{u:function(){return T}});var s=i(88426),n=i(33642),r=i(60611),a=i(31572),o=i(57629),c=i(61511),p=i(59403),l=i(19139),u=i(67806),g=i(78364),d=i(48160);function m(e,t){1&e&&(a.TgZ(0,"h1",6),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function h(e,t){1&e&&(a.TgZ(0,"h1",6),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function f(e,t){1&e&&a._UZ(0,"mat-spinner",7)}const Z=function(){return["id","vo","name","description","status"]};function I(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"perun-web-apps-groups-list",8),a.NdJ("page",function(t){return a.CHM(e),a.oxw().pageChanged(t)}),a.qZA()}if(2&e){const e=a.oxw();a.Q6J("pageSize",e.pageSize)("groups",e.membersGroups)("displayedColumns",a.DdM(5,Z))("disableMembers",!1)("filter",e.memberFilterValue)}}function S(e,t){1&e&&a._UZ(0,"mat-spinner",7)}const A=function(){return["id","vo","name","description"]};function E(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"perun-web-apps-groups-list",8),a.NdJ("page",function(t){return a.CHM(e),a.oxw(2).adminPageChanged(t)}),a.qZA()}if(2&e){const e=a.oxw(2);a.Q6J("pageSize",e.adminPageSize)("groups",e.adminsGroups)("displayedColumns",a.DdM(5,A))("disableMembers",!1)("filter",e.adminFilterValue)}}function b(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"div",9),a.TgZ(1,"h1",6),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return a.CHM(e),a.oxw().refreshAdminTable()}),a.qZA(),a.TgZ(5,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(t){return a.CHM(e),a.oxw().adminFilter(t)}),a.qZA(),a.YNc(6,S,1,0,"mat-spinner",3),a.YNc(7,E,1,6,"perun-web-apps-groups-list",4),a.qZA()}if(2&e){const e=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),a.xp6(3),a.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),a.xp6(1),a.Q6J("ngIf",e.adminRefresh),a.xp6(1),a.Q6J("ngIf",!e.adminRefresh)}}let T=(()=>{class e{constructor(e,t,i,s,n,a){this.usersService=e,this.memberService=t,this.tableConfigService=i,this.groupService=s,this.store=n,this.route=a,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=r.KE,this.adminTableId=r.Sb}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.adminPageSize=this.tableConfigService.getTablePageSize(this.adminTableId),!0===(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(e=>this.userId=e.userId),this.refreshAdminTable(),this.refreshMemberTable()}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}adminPageChanged(e){this.adminPageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.adminTableId,e.pageSize)}memberFilter(e){this.memberFilterValue=e}adminFilter(e){this.adminFilterValue=e}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(e=>{this.adminsGroups=e,this.adminRefresh=!1})}refreshMemberTable(){this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e;for(const t of this.vos)this.memberService.getMemberByUser(t.id,this.userId).subscribe(e=>{this.groupService.getMemberGroups(e.id).subscribe(e=>{this.membersGroups=this.membersGroups.concat(e),this.vos.indexOf(t)===this.vos.length-1&&(this.memberRefresh=!1)})});0===e.length&&(this.memberRefresh=!1)})}}return e.\u0275fac=function(t){return new(t||e)(a.Y36(n.Fv),a.Y36(n.uq),a.Y36(r.dB),a.Y36(n.ff),a.Y36(s.d6),a.Y36(o.gz))},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("router-component",t.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","groups","displayedColumns","disableMembers","filter","page",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"pageSize","groups","displayedColumns","disableMembers","filter","page"],[1,"mt-5"]],template:function(e,t){1&e&&(a.YNc(0,m,3,3,"h1",0),a.YNc(1,h,3,3,"h1",0),a.TgZ(2,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return t.refreshMemberTable()}),a.qZA(),a.TgZ(3,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(e){return t.memberFilter(e)}),a.qZA(),a.YNc(4,f,1,0,"mat-spinner",3),a.YNc(5,I,1,6,"perun-web-apps-groups-list",4),a.YNc(6,b,8,6,"div",5)),2&e&&(a.Q6J("ngIf",t.showPrincipal),a.xp6(1),a.Q6J("ngIf",!t.showPrincipal),a.xp6(2),a.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),a.xp6(1),a.Q6J("ngIf",t.memberRefresh),a.xp6(1),a.Q6J("ngIf",!t.memberRefresh),a.xp6(1),a.Q6J("ngIf",!t.showPrincipal))},directives:[c.O5,p.t,l.L,u.$g,g.W],pipes:[d.X$],styles:[""]}),e})()},15879:function(e,t,i){"use strict";i.d(t,{j:function(){return E}});var s=i(33642),n=i(88426),r=i(60611),a=i(31572),o=i(57629),c=i(61511),p=i(59403),l=i(19139),u=i(67806),g=i(97162),d=i(48160);function m(e,t){1&e&&(a.TgZ(0,"h1",6),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function h(e,t){1&e&&(a.TgZ(0,"h1",6),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function f(e,t){1&e&&a._UZ(0,"mat-spinner",7)}function Z(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"perun-web-apps-vos-list",8),a.NdJ("page",function(t){return a.CHM(e),a.oxw().memberPageChanged(t)}),a.qZA()}if(2&e){const e=a.oxw();a.Q6J("displayedColumns",e.displayedColumns)("pageSize",e.memberPageSize)("filterValue",e.memberFilterValue)("vos",e.vosWhereIsMember)}}function I(e,t){1&e&&a._UZ(0,"mat-spinner",7)}function S(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"perun-web-apps-vos-list",8),a.NdJ("page",function(t){return a.CHM(e),a.oxw(2).adminPageChanged(t)}),a.qZA()}if(2&e){const e=a.oxw(2);a.Q6J("displayedColumns",e.displayedColumns)("pageSize",e.adminPageSize)("filterValue",e.adminFilterValue)("vos",e.vosWhereIsAdmin)}}function A(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"div",9),a.TgZ(1,"h1",6),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return a.CHM(e),a.oxw().refreshAdminTable()}),a.qZA(),a.TgZ(5,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(t){return a.CHM(e),a.oxw().applyAdminFilter(t)}),a.qZA(),a.YNc(6,I,1,0,"mat-spinner",3),a.YNc(7,S,1,4,"perun-web-apps-vos-list",4),a.qZA()}if(2&e){const e=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),a.xp6(3),a.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),a.xp6(1),a.Q6J("ngIf",e.adminRefresh),a.xp6(1),a.Q6J("ngIf",!e.adminRefresh)}}let E=(()=>{class e{constructor(e,t,i,s,n){this.usersService=e,this.authResolver=t,this.tableConfigService=i,this.store=s,this.route=n,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=r.YF,this.memberTableId=r.gc}ngOnInit(){this.adminPageSize=this.tableConfigService.getTablePageSize(this.adminTableId),this.memberPageSize=this.tableConfigService.getTablePageSize(this.memberTableId),!0===(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(e=>this.userId=e.userId),this.refreshAdminTable(),this.refreshMemberTable()}refreshMemberTable(){this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vosWhereIsMember=e,this.memberRefresh=!1},()=>this.memberRefresh=!1)}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(e=>{this.vosWhereIsAdmin=e,this.adminRefresh=!1},()=>this.adminRefresh=!1)}applyMemberFilter(e){this.memberFilterValue=e}adminPageChanged(e){this.adminPageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.adminTableId,e.pageSize)}memberPageChanged(e){this.memberPageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.memberTableId,e.pageSize)}applyAdminFilter(e){this.adminFilterValue=e}}return e.\u0275fac=function(t){return new(t||e)(a.Y36(s.Fv),a.Y36(n.x4),a.Y36(r.dB),a.Y36(n.d6),a.Y36(o.gz))},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("router-component",t.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","pageSize","filterValue","vos","page",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","pageSize","filterValue","vos","page"],[1,"mt-5"]],template:function(e,t){1&e&&(a.YNc(0,m,3,3,"h1",0),a.YNc(1,h,3,3,"h1",0),a.TgZ(2,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return t.refreshMemberTable()}),a.qZA(),a.TgZ(3,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(e){return t.applyMemberFilter(e)}),a.qZA(),a.YNc(4,f,1,0,"mat-spinner",3),a.YNc(5,Z,1,4,"perun-web-apps-vos-list",4),a.YNc(6,A,8,6,"div",5)),2&e&&(a.Q6J("ngIf",t.isMyProfile),a.xp6(1),a.Q6J("ngIf",!t.isMyProfile),a.xp6(2),a.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),a.xp6(1),a.Q6J("ngIf",t.memberRefresh),a.xp6(1),a.Q6J("ngIf",!t.memberRefresh),a.xp6(1),a.Q6J("ngIf",!t.isMyProfile))},directives:[c.O5,p.t,l.L,u.$g,g.Z],pipes:[d.X$],styles:[""]}),e})()},71956:function(e,t,i){"use strict";i.d(t,{Z:function(){return R}});var s=i(33642),n=i(67033),r=i(88426),a=i(67004),o=i(27613),c=i(81954),p=i(31572),l=i(57629),u=i(84608),g=i(61511),d=i(8557),m=i(27439),h=i(15980),f=i(43691),Z=i(48160);function I(e,t){1&e&&p._UZ(0,"th",12)}function S(e,t){if(1&e&&(p.TgZ(0,"td",13),p._uU(1),p.qZA()),2&e){const e=t.$implicit;p.xp6(1),p.hij(" ",e.displayName,": ")}}function A(e,t){1&e&&p._UZ(0,"th",12)}function E(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"td",14),p._uU(1),p.TgZ(2,"button",15),p.NdJ("click",function(){return p.CHM(e),p.oxw(2).changeEmail()}),p.TgZ(3,"mat-icon"),p._uU(4,"edit"),p.qZA(),p.qZA(),p.qZA()}if(2&e){const e=t.$implicit;p.xp6(1),p.hij(" ",e.value," ")}}function b(e,t){1&e&&p._UZ(0,"tr",16)}function T(e,t){if(1&e&&(p.TgZ(0,"div",2),p.TgZ(1,"mat-card",3),p.TgZ(2,"mat-card-header"),p.TgZ(3,"mat-card-title"),p.TgZ(4,"h1",4),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(7,"mat-card-content"),p.TgZ(8,"table",5),p.ynx(9,6),p.YNc(10,I,1,0,"th",7),p.YNc(11,S,2,1,"td",8),p.BQk(),p.ynx(12,9),p.YNc(13,A,1,0,"th",7),p.YNc(14,E,5,1,"td",10),p.BQk(),p.YNc(15,b,1,0,"tr",11),p.qZA(),p.qZA(),p.qZA(),p.qZA()),2&e){const e=p.oxw();p.xp6(5),p.Oqu(p.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),p.xp6(3),p.Q6J("dataSource",e.mailDataSource),p.xp6(7),p.Q6J("matRowDefColumns",e.displayedColumns)}}let R=(()=>{class e{constructor(e,t,i,s,n){this.userService=e,this.attributeService=t,this.storeService=i,this.route=s,this.dialog=n,this.navItems=[],this.displayedColumns=["name","value"],this.inMyProfile=!1}ngOnInit(){this.route.params.subscribe(e=>{void 0!==e.userId?this.userService.getUserById(e.userId).subscribe(e=>{this.user=e,this.initNavItems()}):(this.inMyProfile=!0,this.userID=this.storeService.getPerunPrincipal().user.id,this.attributeService.getUserAttributeByName(this.userID,a.r.USER_DEF_PREFERRED_MAIL).subscribe(e=>{this.preferredMail=e,this.handleMailNotDefined(),this.mailDataSource=new n.by([this.preferredMail]),this.initNavItems()}))})}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-group",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-group",url:"roles",label:"MENU_ITEMS.USER.ROLES",style:"user-btn"},{cssIcon:"perun-settings2",url:"settings",label:"MENU_ITEMS.ADMIN.SETTINGS",style:"user-btn"})}changeEmail(){const e=(0,o.kZ)();e.width="350px",e.data={userId:this.userID},this.dialog.open(c.gr,e).afterClosed().subscribe(e=>{e&&this.attributeService.getUserAttributeByName(this.userID,a.r.USER_DEF_PREFERRED_MAIL).subscribe(e=>{this.preferredMail=e,this.handleMailNotDefined(),this.mailDataSource=new n.by([this.preferredMail])})})}handleMailNotDefined(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,o.Cz)(a.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:Object("-")})}}return e.\u0275fac=function(t){return new(t||e)(p.Y36(s.Fv),p.Y36(s.H8),p.Y36(r.d6),p.Y36(l.gz),p.Y36(u.uw))},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&p.ekj("router-component",t.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(e,t){1&e&&(p.YNc(0,T,16,5,"div",0),p._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&e&&(p.Q6J("ngIf",t.inMyProfile),p.xp6(1),p.Q6J("items",t.navItems)("size","small"))},directives:[g.O5,d.L,m.a8,m.dk,m.n5,m.dn,n.BZ,n.w1,n.fO,n.Dz,n.nj,n.ge,n.ev,h.lW,f.Hw,n.Gk],pipes:[Z.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),e})()},7233:function(e,t,i){"use strict";i.d(t,{t:function(){return Pe}});var s=i(33642),n=i(88426),r=i(31572),a=i(57629),o=i(61511),c=i(67806),p=i(45001),l=i(43691),u=i(27439),g=i(97162),d=i(86593),m=i(78364),h=i(88884),f=i(60007),Z=i(4252),I=i(48160);function S(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function A(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function E(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SELF_VOS_ADMIN")," "))}function b(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SELF_VOS")," "))}function T(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SELF_IDENTITIES_ADMIN")," "))}function R(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SELF_IDENTITIES")," "))}const v=function(){return["user","id","name"]};function x(e,t){if(1&e&&(r.TgZ(0,"div",11),r.YNc(1,T,3,3,"div",2),r.YNc(2,R,3,3,"div",2),r._UZ(3,"app-users-list",12),r.qZA()),2&e){const e=r.oxw(4);r.xp6(1),r.Q6J("ngIf",!e.showDescription),r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("users",e.users)("disableRouting",!0)("displayedColumns",r.DdM(5,v))}}const N=function(){return["id","name","shortName"]};function U(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,E,3,3,"div",2),r.YNc(2,b,3,3,"div",2),r._UZ(3,"perun-web-apps-vos-list",9),r.YNc(4,x,4,6,"div",10),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",!e.showDescription),r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(5,N))("vos",e.vos),r.xp6(1),r.Q6J("ngIf",e.users.length)}}function O(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getSelfData()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,A,1,0,"mat-spinner",1),r.YNc(8,U,5,6,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.SELF")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function _(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function M(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.GROUPADMIN_GROUPS")," "))}const q=function(){return["id","vo","name","description"]};function w(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,M,3,3,"div",2),r._UZ(2,"perun-web-apps-groups-list",14),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("groups",e.groups)("displayedColumns",r.DdM(3,q))}}function C(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getAdminGroupsAndVos()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",13),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,_,1,0,"mat-spinner",1),r.YNc(8,w,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.GROUPADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function L(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function Y(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.GROUPOBSERVER_GROUPS")," "))}const J=function(){return["id","recent","vo","name","description"]};function P(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,Y,3,3,"div",2),r._UZ(2,"perun-web-apps-groups-list",14),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("groups",e.groups)("displayedColumns",r.DdM(3,J))}}function y(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getGroupsAndVos("GROUPOBSERVER")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",13),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,L,1,0,"mat-spinner",1),r.YNc(8,P,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.GROUPOBSERVER")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function D(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function F(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.VOADMIN_VOS")," "))}function Q(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,F,3,3,"div",2),r._UZ(2,"perun-web-apps-vos-list",9),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,N))("vos",e.vos)}}function V(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getAdminVos()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",15),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,D,1,0,"mat-spinner",1),r.YNc(8,Q,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.VOADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function z(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function B(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.VOOBSERVER_VOS")," "))}function G(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,B,3,3,"div",2),r._UZ(2,"perun-web-apps-vos-list",9),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,N))("vos",e.vos)}}function k(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){r.CHM(e);const t=r.oxw(2);return t.getVos(t.roles.get("VOOBSERVER").get("Vo"))}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",15),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,z,1,0,"mat-spinner",1),r.YNc(8,G,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.VOOBSERVER")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function H(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function j(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.TRUSTEDFACILITYADMIN_VOS")," "))}function W(e,t){if(1&e&&(r.TgZ(0,"div"),r.TgZ(1,"div"),r.YNc(2,j,3,3,"div",2),r._UZ(3,"perun-web-apps-vos-list",9),r.qZA(),r.qZA()),2&e){const e=r.oxw(3);r.xp6(2),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,N))("vos",e.vos)}}function X(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){r.CHM(e);const t=r.oxw(2);return t.getVos(t.roles.get("TRUSTEDFACILITYADMIN").get("Vo"))}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",15),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,H,1,0,"mat-spinner",1),r.YNc(8,W,4,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.TRUSTEDFACILITYADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function $(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function K(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.TOPGROUPCREATOR_VOS")," "))}function ee(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,K,3,3,"div",2),r._UZ(2,"perun-web-apps-vos-list",9),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,N))("vos",e.vos)}}function te(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){r.CHM(e);const t=r.oxw(2);return t.getVos(t.roles.get("TOPGROUPCREATOR").get("Vo"))}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",15),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,$,1,0,"mat-spinner",1),r.YNc(8,ee,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.TOPGROUPCREATOR")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function ie(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function se(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.RESOURCEADMIN_RESOURCES")," "))}const ne=function(){return["id","name","vo","facility","description"]};function re(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,se,3,3,"div",2),r._UZ(2,"perun-web-apps-resources-list",17),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("resources",e.resources)("routingVo",!0)("displayedColumns",r.DdM(4,ne))}}function ae(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getResourcesData("RESOURCEADMIN")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",16),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,ie,1,0,"mat-spinner",1),r.YNc(8,re,3,5,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.RESOURCEADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function oe(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function ce(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.RESOURCEOBSERVER_RESOURCES")," "))}function pe(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,ce,3,3,"div",2),r._UZ(2,"perun-web-apps-resources-list",17),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("resources",e.resources)("routingVo",!0)("displayedColumns",r.DdM(4,ne))}}function le(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getResourcesData("RESOURCEOBSERVER")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",16),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,oe,1,0,"mat-spinner",1),r.YNc(8,pe,3,5,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.RESOURCEOBSERVER")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function ue(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function ge(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.RESOURCESELFSERVICE_RESOURCES")," "))}function de(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,ge,3,3,"div",2),r._UZ(2,"perun-web-apps-resources-list",17),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("resources",e.resources)("routingVo",!0)("displayedColumns",r.DdM(4,ne))}}function me(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getResourcesData("RESOURCESELFSERVICE")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",16),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,ue,1,0,"mat-spinner",1),r.YNc(8,de,3,5,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.RESOURCESELFSERVICE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function he(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function fe(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.FACILITYADMIN_FACILITIES")," "))}const Ze=function(){return["id","name","description"]};function Ie(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,fe,3,3,"div",2),r._UZ(2,"perun-web-apps-facilities-list",19),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,Ze))("facilities",e.facilities)}}function Se(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getAdminFacilities()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",18),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,he,1,0,"mat-spinner",1),r.YNc(8,Ie,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.FACILITYADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function Ae(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function Ee(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.FACILITYOBSERVER_FACILITIES")," "))}function be(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,Ee,3,3,"div",2),r._UZ(2,"perun-web-apps-facilities-list",19),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,Ze))("facilities",e.facilities)}}function Te(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getFacilities("FACILITYOBSERVER")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",18),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,Ae,1,0,"mat-spinner",1),r.YNc(8,be,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.FACILITYOBSERVER")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function Re(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function ve(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SPONSORSHIP_MEMBERS")," "))}const xe=function(){return["id","fullName","sponsored"]};function Ne(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,ve,3,3,"div",2),r._UZ(2,"perun-web-apps-members-list",20),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("members",e.members)("displayedColumns",r.DdM(3,xe))}}function Ue(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getMembers()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,Re,1,0,"mat-spinner",1),r.YNc(8,Ne,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.SPONSORSHIP")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function Oe(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function _e(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SPONSOR_VOS")," "))}function Me(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,_e,3,3,"div",2),r._UZ(2,"perun-web-apps-vos-list",9),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,N))("vos",e.vos)}}function qe(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){r.CHM(e);const t=r.oxw(2);return t.getVos(t.roles.get("SPONSOR").get("Vo"))}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,Oe,1,0,"mat-spinner",1),r.YNc(8,Me,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.SPONSOR")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function we(e,t){1&e&&(r.TgZ(0,"mat-expansion-panel"),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&e&&(r.xp6(5),r.Oqu(r.lcZ(6,1,"ROLES.PERUN_ADMIN")))}function Ce(e,t){1&e&&(r.TgZ(0,"mat-expansion-panel"),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&e&&(r.xp6(5),r.Oqu(r.lcZ(6,1,"ROLES.PERUN_OBSERVER")))}function Le(e,t){if(1&e&&(r.TgZ(0,"p",22),r._uU(1),r.qZA()),2&e){const e=t.$implicit;r.xp6(1),r.AsE("",e[0]," ids: ",e[1],"")}}function Ye(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){const t=r.CHM(e).$implicit;return r.oxw(2).getInnerKeys(t)}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.qZA(),r.qZA(),r.qZA(),r.YNc(6,Le,2,2,"p",21),r.qZA()}if(2&e){const e=t.$implicit,i=r.oxw(2);r.xp6(5),r.Oqu(e),r.xp6(1),r.Q6J("ngForOf",i.currentIds)}}function Je(e,t){if(1&e&&(r.TgZ(0,"mat-accordion"),r.YNc(1,O,9,5,"mat-expansion-panel",4),r.YNc(2,C,9,5,"mat-expansion-panel",4),r.YNc(3,y,9,5,"mat-expansion-panel",4),r.YNc(4,V,9,5,"mat-expansion-panel",4),r.YNc(5,k,9,5,"mat-expansion-panel",4),r.YNc(6,X,9,5,"mat-expansion-panel",4),r.YNc(7,te,9,5,"mat-expansion-panel",4),r.YNc(8,ae,9,5,"mat-expansion-panel",4),r.YNc(9,le,9,5,"mat-expansion-panel",4),r.YNc(10,me,9,5,"mat-expansion-panel",4),r.YNc(11,Se,9,5,"mat-expansion-panel",4),r.YNc(12,Te,9,5,"mat-expansion-panel",4),r.YNc(13,Ue,9,5,"mat-expansion-panel",4),r.YNc(14,qe,9,5,"mat-expansion-panel",4),r.YNc(15,we,7,3,"mat-expansion-panel",2),r.YNc(16,Ce,7,3,"mat-expansion-panel",2),r.YNc(17,Ye,7,2,"mat-expansion-panel",5),r.qZA()),2&e){const e=r.oxw();r.xp6(1),r.Q6J("ngIf",e.isSelf),r.xp6(1),r.Q6J("ngIf",e.isGroupAdmin),r.xp6(1),r.Q6J("ngIf",e.isGroupObserver),r.xp6(1),r.Q6J("ngIf",e.isVoAdmin),r.xp6(1),r.Q6J("ngIf",e.isVoObserver),r.xp6(1),r.Q6J("ngIf",e.isTrustedFacilityAdmin),r.xp6(1),r.Q6J("ngIf",e.isTopGroupCreator),r.xp6(1),r.Q6J("ngIf",e.isResourceAdmin),r.xp6(1),r.Q6J("ngIf",e.isResourceObserver),r.xp6(1),r.Q6J("ngIf",e.isResourceSelfService),r.xp6(1),r.Q6J("ngIf",e.isFacilityAdmin),r.xp6(1),r.Q6J("ngIf",e.isFacilityObserver),r.xp6(1),r.Q6J("ngIf",e.hasSponsorship),r.xp6(1),r.Q6J("ngIf",e.isSponsor),r.xp6(1),r.Q6J("ngIf",e.isPerunAdmin),r.xp6(1),r.Q6J("ngIf",e.isPerunObserver),r.xp6(1),r.Q6J("ngForOf",e.roleNames)}}let Pe=(()=>{class e{constructor(e,t,i,s,n,r,a,o,c){this.authzResolverService=e,this.usersManagerService=t,this.vosManagerService=i,this.facilitiesManagerService=s,this.resourcesManagerService=n,this.membersManagerService=r,this.groupsManagerService=a,this.route=o,this.store=c,this.currentIds=[],this.roles=new Map,this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSORSHIP","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER"],this.roleNames=[],this.groups=[],this.vos=[],this.facilities=[],this.users=[],this.resources=[],this.members=[]}ngOnInit(){this.outerLoading=!0,this.route.parent.params.subscribe(e=>{e.userId?(this.userId=e.userId,this.authzResolverService.getUserRoleNames(this.userId).subscribe(e=>{this.roleNames=e.map(e=>e.toUpperCase()),this.authzResolverService.getUserRoles(this.userId).subscribe(e=>{this.prepareRoles(e)})})):(this.showDescription=!0,this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.userId,this.roleNames=Object.keys(this.principal.roles),this.prepareRoles(this.principal.roles))})}prepareRoles(e){this.roleNames.forEach(t=>{const i=new Map;switch(Object.keys(e[t]).forEach(s=>{i.set(s,e[t][s])}),t){case"SELF":this.isSelf=!0;break;case"GROUPADMIN":this.isGroupAdmin=!0;break;case"VOADMIN":this.isVoAdmin=!0;break;case"RESOURCEADMIN":this.isResourceAdmin=!0;break;case"FACILITYADMIN":this.isFacilityAdmin=!0;break;case"TOPGROUPCREATOR":this.isTopGroupCreator=!0;break;case"SPONSORSHIP":this.hasSponsorship=!0;break;case"SPONSOR":this.isSponsor=!0;break;case"RESOURCESELFSERVICE":this.isResourceSelfService=!0;break;case"VOOBSERVER":this.isVoObserver=!0;break;case"RESOURCEOBSERVER":this.isResourceObserver=!0;break;case"GROUPOBSERVER":this.isGroupObserver=!0;break;case"TRUSTEDFACILITYADMIN":this.isTrustedFacilityAdmin=!0;break;case"FACILITYOBSERVER":this.isFacilityObserver=!0;break;case"PERUNADMIN":this.isPerunAdmin=!0;break;case"PERUNOBSERVER":this.isPerunObserver=!0}this.roles.set(t,i)}),this.roleNames=this.roleNames.filter(e=>!this.roleFilter.includes(e)),this.outerLoading=!1}getAdminGroupsAndVos(){this.loading=!0,this.groups=[],this.usersManagerService.getGroupsWhereUserIsAdmin(this.userId).subscribe(e=>{this.groups=e;const t=[...new Set(this.groups.map(e=>e.voId))];this.getVos(t)})}getVos(e){this.loading=!0,this.vos=[],this.vosManagerService.getVosByIds(e).subscribe(e=>{this.vos=e,this.loading=!1})}getInnerKeys(e){if(this.roles.get(e)){const t=this.roles.get(e).entries(),i=[];let s=t.next().value;for(;s;)i.push(s),s=t.next().value;this.currentIds=i}else this.currentIds=[]}getAdminVos(){this.loading=!0,this.vos=[],this.usersManagerService.getVosWhereUserIsAdmin(this.userId).subscribe(e=>{this.vos=e,this.loading=!1})}getAdminFacilities(){this.loading=!0,this.facilities=[],this.facilitiesManagerService.getFacilitiesWhereUserIsAdmin(this.userId).subscribe(e=>{this.facilities=e.map(e=>({facility:e})),this.loading=!1})}getSelfData(){this.loading=!0,this.vos=[],this.users=[],this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e;const t=this.roles.get("SELF").get("User");t?this.usersManagerService.getUsersByIds(t).subscribe(e=>{this.users=e,this.loading=!1}):this.loading=!1})}getResourcesData(e){this.loading=!0;const t=this.roles.get(e).get("Resource");this.vos=[],this.facilities=[],this.resources=[],this.resourcesManagerService.getRichResourcesByIds(t).subscribe(e=>{this.resources=e,this.vos=this.resources.map(e=>e.vo).filter((e,t,i)=>i.indexOf(e)===t),this.facilities=this.resources.map(e=>({facility:e.facility})).filter((e,t,i)=>i.indexOf(e)===t),this.loading=!1})}getMembers(){this.loading=!0;const e=this.roles.get("SPONSORSHIP").get("Member");this.members=[],this.membersManagerService.getRichMembersByIds(e).subscribe(e=>{this.members=e,this.loading=!1})}getGroupsAndVos(e){this.loading=!0;const t=this.roles.get(e).get("Vo"),i=this.roles.get(e).get("Group");this.vos=[],this.groups=[],this.groupsManagerService.getGroupsByIds(i).subscribe(e=>{this.groups=e,this.vosManagerService.getVosByIds(t).subscribe(e=>{this.vos=e,this.loading=!1})})}getFacilities(e){this.loading=!0,this.facilities=[];const t=this.roles.get(e).get("Facility");this.facilitiesManagerService.getFacilitiesByIds(t).subscribe(e=>{this.facilities=e.map(e=>({facility:e})),this.loading=!1})}}return e.\u0275fac=function(t){return new(t||e)(r.Y36(s.Ct),r.Y36(s.Fv),r.Y36(s.YF),r.Y36(s.IQ),r.Y36(s.xk),r.Y36(s.uq),r.Y36(s.ff),r.Y36(a.gz),r.Y36(n.d6))},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(e,t){2&e&&r.ekj("router-component",t.true)},decls:5,vars:5,consts:[[1,"page-subtitle","d-flex"],["class","ml-auto mr-auto",4,"ngIf"],[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","vos"],["class","mt-5",4,"ngIf"],[1,"mt-5"],[3,"users","disableRouting","displayedColumns"],["mat-card-avatar","","svgIcon","perun-group-black",1,"mr-2"],[3,"groups","displayedColumns"],["mat-card-avatar","","svgIcon","perun-vo-black",1,"mr-2"],["mat-card-avatar","","svgIcon","perun-resource-black",1,"mr-2"],[3,"resources","routingVo","displayedColumns"],["mat-card-avatar","","svgIcon","perun-facility-black",1,"mr-2"],[3,"displayedColumns","facilities"],[3,"members","displayedColumns"],["class","role-content",4,"ngFor","ngForOf"],[1,"role-content"]],template:function(e,t){1&e&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.YNc(3,S,1,0,"mat-spinner",1),r.YNc(4,Je,18,17,"mat-accordion",2)),2&e&&(r.xp6(1),r.Oqu(r.lcZ(2,3,"ROLES.TITLE")),r.xp6(2),r.Q6J("ngIf",t.outerLoading),r.xp6(1),r.Q6J("ngIf",!t.outerLoading))},directives:[o.O5,c.$g,p.pp,o.sg,p.ib,p.yz,p.yK,l.Hw,u.kc,g.Z,d.C,m.W,h.C,f.X,Z.O],pipes:[I.X$],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),e})()},68787:function(e,t,i){"use strict";i.d(t,{x:function(){return u}});var s=i(33642),n=i(31572),r=i(57629),a=i(61511),o=i(67806),c=i(8557);function p(e,t){1&e&&n._UZ(0,"mat-spinner",2)}function l(e,t){if(1&e&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&e){const e=n.oxw();n.xp6(1),n.Q6J("items",e.navItems)("size","small")}}let u=(()=>{class e{constructor(e,t){this.route=e,this.userManager=t,this.navItems=[],this.loading=!1}ngOnInit(){window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.userManager.getUserById(e.userId).subscribe(e=>{this.isServiceUser=e.serviceUser,this.initNavItems(),this.loading=!1},()=>this.loading=!1)})):this.initNavItems()}initNavItems(){this.navItems=[],window.location.pathname.startsWith("/admin")?this.navItems.push(this.isServiceUser?{cssIcon:"perun-service-identity",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}:{cssIcon:"perun-service-identity",url:"service-identities",label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",style:"user-btn"}):this.navItems.push({cssIcon:"perun-settings2",url:"passwordReset",label:"MENU_ITEMS.USER.PASSWORD_RESET",style:"user-btn"},{cssIcon:"perun-settings2",url:"guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(r.gz),n.Y36(s.Fv))},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("router-component",t.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,t){1&e&&(n.YNc(0,p,1,0,"mat-spinner",0),n.YNc(1,l,2,2,"div",1)),2&e&&(n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},directives:[a.O5,o.$g,c.L],styles:[""]}),e})()},40790:function(e,t,i){"use strict";i.d(t,{L:function(){return r}});var s=i(31572),n=i(21575);let r=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&s.ekj("router-component",t.true)},decls:1,vars:0,template:function(e,t){1&e&&s._UZ(0,"app-animated-router-outlet")},directives:[n.A],styles:[""]}),e})()},6363:function(e,t,i){"use strict";i.r(t),i.d(t,{UsersModule:function(){return ge}});var s=i(61511),n=i(57629),r=i(15879),a=i(31612),o=i(40790),c=i(68787),p=i(95690),l=i(41939),u=i(27613),g=i(13857),d=i(31572),m=i(66283),h=i(4786),f=i(71522),Z=i(48160);function I(e,t){if(1&e&&(d.TgZ(0,"mat-option",5),d._uU(1),d.qZA()),2&e){const e=t.$implicit;d.Q6J("value",e),d.xp6(1),d.hij(" ",e," ")}}let S=(()=>{class e{constructor(e){this.guiConfigService=e,this.tablePageSizeOptions=u.f7}ngOnInit(){this.preferredTablePageSize=this.guiConfigService.getNumber(g.Rc)}updatePreferredTablePageSize(){this.guiConfigService.setNumber(g.Rc,this.preferredTablePageSize)}}return e.\u0275fac=function(t){return new(t||e)(d.Y36(g.Ng))},e.\u0275cmp=d.Xpm({type:e,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(e,t){1&e&&(d.TgZ(0,"h1",0),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.TgZ(3,"div",1),d.TgZ(4,"mat-form-field",2),d.TgZ(5,"mat-label"),d._uU(6),d.ALo(7,"translate"),d.qZA(),d.TgZ(8,"mat-select",3),d.NdJ("valueChange",function(e){return t.preferredTablePageSize=e})("valueChange",function(){return t.updatePreferredTablePageSize()}),d.YNc(9,I,2,2,"mat-option",4),d.qZA(),d.qZA(),d.qZA()),2&e&&(d.xp6(1),d.Oqu(d.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),d.xp6(5),d.Oqu(d.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),d.xp6(2),d.Q6J("value",t.preferredTablePageSize),d.xp6(1),d.Q6J("ngForOf",t.tablePageSizeOptions))},directives:[m.KE,m.hX,h.gD,s.sg,f.ey],pipes:[Z.X$],styles:[""]}),e})();var A=i(71956),E=i(88426),b=i(48958),T=i(66297),R=i(43691),v=i(36922),x=i(21575),N=i(22196);const U=function(){return{color:"black"}},O=function(){return["/myProfile"]};function _(e,t){if(1&e&&(d.TgZ(0,"div",1),d._UZ(1,"perun-web-apps-back-button"),d.TgZ(2,"div",2),d._UZ(3,"mat-icon",3),d.ALo(4,"translate"),d.TgZ(5,"div",4),d.TgZ(6,"div",5),d.TgZ(7,"a",6),d._uU(8),d.ALo(9,"userFullName"),d.qZA(),d.TgZ(10,"span",7),d._uU(11),d.qZA(),d.qZA(),d.TgZ(12,"span",8),d._uU(13),d.ALo(14,"translate"),d.ALo(15,"translate"),d.qZA(),d.qZA(),d.qZA(),d._UZ(16,"app-animated-router-outlet"),d.qZA()),2&e){const e=d.oxw();d.xp6(3),d.s9C("matTooltip",d.lcZ(4,8,"MENU_ITEMS.USER.ENTITY")),d.Q6J("ngStyle",d.DdM(16,U)),d.xp6(4),d.Q6J("routerLink",d.DdM(17,O)),d.xp6(1),d.hij(" ",d.lcZ(9,10,e.user)," "),d.xp6(3),d.hij(" \xa0#",e.user.id," "),d.xp6(2),d.lnq(" ",d.lcZ(14,12,"MENU_ITEMS.USER.ENTITY"),", ",d.lcZ(15,14,"MENU_ITEMS.USER.USER_TYPE"),": ",e.getUserType()," ")}}let M=(()=>{class e{constructor(e,t,i){this.sideMenuService=e,this.store=t,this.router=i}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 e.\u0275fac=function(t){return new(t||e)(d.Y36(b.D),d.Y36(E.d6),d.Y36(n.F0))},e.\u0275cmp=d.Xpm({type:e,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(e,t){1&e&&d.YNc(0,_,17,18,"div",0),2&e&&d.Q6J("ngIf",void 0!==t.user)},directives:[s.O5,T.W,R.Hw,v.gM,s.PC,n.yS,x.A],pipes:[Z.X$,N.d],styles:[""]}),e})();var q=i(7233);const w=[{path:"",component:M,children:[{path:"",component:A.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:p.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:r.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:a.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:q.t,data:{animation:"UserRolesPage"}},{path:"settings",component:o.L,children:[{path:"",component:c.x,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:l.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:S,data:{animation:"UserAppConfigurationPage"}}]}]}];let C=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=d.oAB({type:e}),e.\u0275inj=d.cJS({imports:[[n.Bz.forChild(w)],n.Bz]}),e})();var L=i(40084),Y=i(80340),J=i(16073),P=i(25122),y=i(45001),D=i(15980),F=i(58623),Q=i(67033),V=i(55109),z=i(91010),B=i(29236),G=i(84608),k=i(71403),H=i(67806),j=i(45994),W=i(27521),X=i(15812),$=i(54810),K=i(27679),ee=i(73005),te=i(27439),ie=i(70663),se=i(88975),ne=i(10033),re=i(8055),ae=i(4253),oe=i(22727),ce=i(41050),pe=i(7423),le=i(22280),ue=i(28780);let ge=(()=>{class e{constructor(e){this.translate=e,e.addLangs(["en","cs"])}}return e.\u0275fac=function(t){return new(t||e)(d.LFG(Z.sK))},e.\u0275mod=d.oAB({type:e}),e.\u0275inj=d.cJS({imports:[[s.ez,C,L.Bb,Y.c,m.lN,J.UX,J.u5,R.Ps,P.SJ,y.To,Z.aw.forChild({}),D.ot,F.JX,Q.p0,V.Nh,z.dp,D.ot,B.p9,G.Is,h.LD,k.ZX,H.Cq,j.Cv,v.AV,W.rP,X.FA,f.XK,$.Fk,K.t,f.si,ee.TU,te.QW,ie.T5,se._t,te.QW,ne.Hi,re.Tx,ae.Cl,oe.r,ce.g,l.ez,pe.r,le.d4,ue.m]]}),e})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/363-es2015.9c3a7cea17cb338ca650.js b/dist/apps/admin-gui/363-es2015.9c3a7cea17cb338ca650.js new file mode 100644 index 000000000..ffe92252c --- /dev/null +++ b/dist/apps/admin-gui/363-es2015.9c3a7cea17cb338ca650.js @@ -0,0 +1 @@ +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[363],{95690:function(e,t,s){"use strict";s.d(t,{u:function(){return f}});var i=s(88426),n=s(31572),r=s(57629),a=s(55109),o=s(61511),c=s(541),p=s(69012),l=s(48160);function u(e,t){1&e&&(n._uU(0),n.ALo(1,"translate")),2&e&&n.hij(" ",n.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function g(e,t){if(1&e&&n._UZ(0,"app-one-entity-attribute-page",5),2&e){const e=n.oxw();n.Q6J("entityId",e.userId)("entity","user")}}function d(e,t){1&e&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&e&&n.AsE(" ",n.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",n.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function m(e,t){if(1&e&&n._UZ(0,"app-two-entity-attribute-page",6),2&e){const e=n.oxw(2);n.Q6J("firstEntity","user")("firstEntityId",e.userId)("secondEntity","facility")}}function h(e,t){1&e&&(n.TgZ(0,"mat-tab"),n.YNc(1,d,3,6,"ng-template",2),n.YNc(2,m,1,3,"ng-template",3),n.qZA())}let f=(()=>{class e{constructor(e,t,s){this.route=e,this.store=t,this.authResolver=s}ngOnInit(){this.route.parent.params.subscribe(e=>{this.userId=e.userId,void 0===this.userId&&(this.userId=this.store.getPerunPrincipal().userId),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:this.userId,beanName:"User"}])})}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(r.gz),n.Y36(i.d6),n.Y36(i.x4))},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-user-settings-attributes"]],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("router-component",t.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(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"mat-tab-group"),n.TgZ(4,"mat-tab",1),n.YNc(5,u,2,3,"ng-template",2),n.YNc(6,g,1,2,"ng-template",3),n.qZA(),n.YNc(7,h,3,0,"mat-tab",4),n.qZA()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,2,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),n.xp6(6),n.Q6J("ngIf",t.userFacilityAttAuth))},directives:[a.SP,a.uX,a.uD,a.Vc,o.O5,c.t,p.Y],pipes:[l.X$],styles:[""]}),e})()},31612:function(e,t,s){"use strict";s.d(t,{u:function(){return T}});var i=s(88426),n=s(33642),r=s(60611),a=s(31572),o=s(57629),c=s(61511),p=s(59403),l=s(19139),u=s(67806),g=s(78364),d=s(48160);function m(e,t){1&e&&(a.TgZ(0,"h1",6),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function h(e,t){1&e&&(a.TgZ(0,"h1",6),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function f(e,t){1&e&&a._UZ(0,"mat-spinner",7)}const Z=function(){return["id","vo","name","description","status"]};function I(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"perun-web-apps-groups-list",8),a.NdJ("page",function(t){return a.CHM(e),a.oxw().pageChanged(t)}),a.qZA()}if(2&e){const e=a.oxw();a.Q6J("pageSize",e.pageSize)("groups",e.membersGroups)("displayedColumns",a.DdM(5,Z))("disableMembers",!1)("filter",e.memberFilterValue)}}function S(e,t){1&e&&a._UZ(0,"mat-spinner",7)}const A=function(){return["id","vo","name","description"]};function E(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"perun-web-apps-groups-list",8),a.NdJ("page",function(t){return a.CHM(e),a.oxw(2).adminPageChanged(t)}),a.qZA()}if(2&e){const e=a.oxw(2);a.Q6J("pageSize",e.adminPageSize)("groups",e.adminsGroups)("displayedColumns",a.DdM(5,A))("disableMembers",!1)("filter",e.adminFilterValue)}}function b(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"div",9),a.TgZ(1,"h1",6),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return a.CHM(e),a.oxw().refreshAdminTable()}),a.qZA(),a.TgZ(5,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(t){return a.CHM(e),a.oxw().adminFilter(t)}),a.qZA(),a.YNc(6,S,1,0,"mat-spinner",3),a.YNc(7,E,1,6,"perun-web-apps-groups-list",4),a.qZA()}if(2&e){const e=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),a.xp6(3),a.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),a.xp6(1),a.Q6J("ngIf",e.adminRefresh),a.xp6(1),a.Q6J("ngIf",!e.adminRefresh)}}let T=(()=>{class e{constructor(e,t,s,i,n,a){this.usersService=e,this.memberService=t,this.tableConfigService=s,this.groupService=i,this.store=n,this.route=a,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=r.KE,this.adminTableId=r.Sb}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.adminPageSize=this.tableConfigService.getTablePageSize(this.adminTableId),!0===(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(e=>this.userId=e.userId),this.refreshAdminTable(),this.refreshMemberTable()}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}adminPageChanged(e){this.adminPageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.adminTableId,e.pageSize)}memberFilter(e){this.memberFilterValue=e}adminFilter(e){this.adminFilterValue=e}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(e=>{this.adminsGroups=e,this.adminRefresh=!1})}refreshMemberTable(){this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e;for(const t of this.vos)this.memberService.getMemberByUser(t.id,this.userId).subscribe(e=>{this.groupService.getMemberGroups(e.id).subscribe(e=>{this.membersGroups=this.membersGroups.concat(e),this.vos.indexOf(t)===this.vos.length-1&&(this.memberRefresh=!1)})});0===e.length&&(this.memberRefresh=!1)})}}return e.\u0275fac=function(t){return new(t||e)(a.Y36(n.Fv),a.Y36(n.uq),a.Y36(r.dB),a.Y36(n.ff),a.Y36(i.d6),a.Y36(o.gz))},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("router-component",t.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","groups","displayedColumns","disableMembers","filter","page",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"pageSize","groups","displayedColumns","disableMembers","filter","page"],[1,"mt-5"]],template:function(e,t){1&e&&(a.YNc(0,m,3,3,"h1",0),a.YNc(1,h,3,3,"h1",0),a.TgZ(2,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return t.refreshMemberTable()}),a.qZA(),a.TgZ(3,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(e){return t.memberFilter(e)}),a.qZA(),a.YNc(4,f,1,0,"mat-spinner",3),a.YNc(5,I,1,6,"perun-web-apps-groups-list",4),a.YNc(6,b,8,6,"div",5)),2&e&&(a.Q6J("ngIf",t.showPrincipal),a.xp6(1),a.Q6J("ngIf",!t.showPrincipal),a.xp6(2),a.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),a.xp6(1),a.Q6J("ngIf",t.memberRefresh),a.xp6(1),a.Q6J("ngIf",!t.memberRefresh),a.xp6(1),a.Q6J("ngIf",!t.showPrincipal))},directives:[c.O5,p.t,l.L,u.$g,g.W],pipes:[d.X$],styles:[""]}),e})()},15879:function(e,t,s){"use strict";s.d(t,{j:function(){return E}});var i=s(33642),n=s(88426),r=s(60611),a=s(31572),o=s(57629),c=s(61511),p=s(59403),l=s(19139),u=s(67806),g=s(97162),d=s(48160);function m(e,t){1&e&&(a.TgZ(0,"h1",6),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function h(e,t){1&e&&(a.TgZ(0,"h1",6),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function f(e,t){1&e&&a._UZ(0,"mat-spinner",7)}function Z(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"perun-web-apps-vos-list",8),a.NdJ("page",function(t){return a.CHM(e),a.oxw().memberPageChanged(t)}),a.qZA()}if(2&e){const e=a.oxw();a.Q6J("displayedColumns",e.displayedColumns)("pageSize",e.memberPageSize)("filterValue",e.memberFilterValue)("vos",e.vosWhereIsMember)}}function I(e,t){1&e&&a._UZ(0,"mat-spinner",7)}function S(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"perun-web-apps-vos-list",8),a.NdJ("page",function(t){return a.CHM(e),a.oxw(2).adminPageChanged(t)}),a.qZA()}if(2&e){const e=a.oxw(2);a.Q6J("displayedColumns",e.displayedColumns)("pageSize",e.adminPageSize)("filterValue",e.adminFilterValue)("vos",e.vosWhereIsAdmin)}}function A(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"div",9),a.TgZ(1,"h1",6),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return a.CHM(e),a.oxw().refreshAdminTable()}),a.qZA(),a.TgZ(5,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(t){return a.CHM(e),a.oxw().applyAdminFilter(t)}),a.qZA(),a.YNc(6,I,1,0,"mat-spinner",3),a.YNc(7,S,1,4,"perun-web-apps-vos-list",4),a.qZA()}if(2&e){const e=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),a.xp6(3),a.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),a.xp6(1),a.Q6J("ngIf",e.adminRefresh),a.xp6(1),a.Q6J("ngIf",!e.adminRefresh)}}let E=(()=>{class e{constructor(e,t,s,i,n){this.usersService=e,this.authResolver=t,this.tableConfigService=s,this.store=i,this.route=n,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=r.YF,this.memberTableId=r.gc}ngOnInit(){this.adminPageSize=this.tableConfigService.getTablePageSize(this.adminTableId),this.memberPageSize=this.tableConfigService.getTablePageSize(this.memberTableId),!0===(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(e=>this.userId=e.userId),this.refreshAdminTable(),this.refreshMemberTable()}refreshMemberTable(){this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vosWhereIsMember=e,this.memberRefresh=!1},()=>this.memberRefresh=!1)}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(e=>{this.vosWhereIsAdmin=e,this.adminRefresh=!1},()=>this.adminRefresh=!1)}applyMemberFilter(e){this.memberFilterValue=e}adminPageChanged(e){this.adminPageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.adminTableId,e.pageSize)}memberPageChanged(e){this.memberPageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.memberTableId,e.pageSize)}applyAdminFilter(e){this.adminFilterValue=e}}return e.\u0275fac=function(t){return new(t||e)(a.Y36(i.Fv),a.Y36(n.x4),a.Y36(r.dB),a.Y36(n.d6),a.Y36(o.gz))},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("router-component",t.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","pageSize","filterValue","vos","page",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","pageSize","filterValue","vos","page"],[1,"mt-5"]],template:function(e,t){1&e&&(a.YNc(0,m,3,3,"h1",0),a.YNc(1,h,3,3,"h1",0),a.TgZ(2,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return t.refreshMemberTable()}),a.qZA(),a.TgZ(3,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(e){return t.applyMemberFilter(e)}),a.qZA(),a.YNc(4,f,1,0,"mat-spinner",3),a.YNc(5,Z,1,4,"perun-web-apps-vos-list",4),a.YNc(6,A,8,6,"div",5)),2&e&&(a.Q6J("ngIf",t.isMyProfile),a.xp6(1),a.Q6J("ngIf",!t.isMyProfile),a.xp6(2),a.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),a.xp6(1),a.Q6J("ngIf",t.memberRefresh),a.xp6(1),a.Q6J("ngIf",!t.memberRefresh),a.xp6(1),a.Q6J("ngIf",!t.isMyProfile))},directives:[c.O5,p.t,l.L,u.$g,g.Z],pipes:[d.X$],styles:[""]}),e})()},71956:function(e,t,s){"use strict";s.d(t,{Z:function(){return R}});var i=s(33642),n=s(67033),r=s(88426),a=s(67004),o=s(84140),c=s(61189),p=s(31572),l=s(57629),u=s(84608),g=s(61511),d=s(8557),m=s(27439),h=s(15980),f=s(43691),Z=s(48160);function I(e,t){1&e&&p._UZ(0,"th",12)}function S(e,t){if(1&e&&(p.TgZ(0,"td",13),p._uU(1),p.qZA()),2&e){const e=t.$implicit;p.xp6(1),p.hij(" ",e.displayName,": ")}}function A(e,t){1&e&&p._UZ(0,"th",12)}function E(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"td",14),p._uU(1),p.TgZ(2,"button",15),p.NdJ("click",function(){return p.CHM(e),p.oxw(2).changeEmail()}),p.TgZ(3,"mat-icon"),p._uU(4,"edit"),p.qZA(),p.qZA(),p.qZA()}if(2&e){const e=t.$implicit;p.xp6(1),p.hij(" ",e.value," ")}}function b(e,t){1&e&&p._UZ(0,"tr",16)}function T(e,t){if(1&e&&(p.TgZ(0,"div",2),p.TgZ(1,"mat-card",3),p.TgZ(2,"mat-card-header"),p.TgZ(3,"mat-card-title"),p.TgZ(4,"h1",4),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(7,"mat-card-content"),p.TgZ(8,"table",5),p.ynx(9,6),p.YNc(10,I,1,0,"th",7),p.YNc(11,S,2,1,"td",8),p.BQk(),p.ynx(12,9),p.YNc(13,A,1,0,"th",7),p.YNc(14,E,5,1,"td",10),p.BQk(),p.YNc(15,b,1,0,"tr",11),p.qZA(),p.qZA(),p.qZA(),p.qZA()),2&e){const e=p.oxw();p.xp6(5),p.Oqu(p.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),p.xp6(3),p.Q6J("dataSource",e.mailDataSource),p.xp6(7),p.Q6J("matRowDefColumns",e.displayedColumns)}}let R=(()=>{class e{constructor(e,t,s,i,n){this.userService=e,this.attributeService=t,this.storeService=s,this.route=i,this.dialog=n,this.navItems=[],this.displayedColumns=["name","value"],this.inMyProfile=!1}ngOnInit(){this.route.params.subscribe(e=>{void 0!==e.userId?this.userService.getUserById(e.userId).subscribe(e=>{this.user=e,this.initNavItems()}):(this.inMyProfile=!0,this.userID=this.storeService.getPerunPrincipal().user.id,this.attributeService.getUserAttributeByName(this.userID,a.r.USER_DEF_PREFERRED_MAIL).subscribe(e=>{this.preferredMail=e,this.handleMailNotDefined(),this.mailDataSource=new n.by([this.preferredMail]),this.initNavItems()}))})}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-group",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-group",url:"roles",label:"MENU_ITEMS.USER.ROLES",style:"user-btn"},{cssIcon:"perun-settings2",url:"settings",label:"MENU_ITEMS.ADMIN.SETTINGS",style:"user-btn"})}changeEmail(){const e=(0,o.kZ)();e.width="350px",e.data={userId:this.userID},this.dialog.open(c.gr,e).afterClosed().subscribe(e=>{e&&this.attributeService.getUserAttributeByName(this.userID,a.r.USER_DEF_PREFERRED_MAIL).subscribe(e=>{this.preferredMail=e,this.handleMailNotDefined(),this.mailDataSource=new n.by([this.preferredMail])})})}handleMailNotDefined(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,o.Cz)(a.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:Object("-")})}}return e.\u0275fac=function(t){return new(t||e)(p.Y36(i.Fv),p.Y36(i.H8),p.Y36(r.d6),p.Y36(l.gz),p.Y36(u.uw))},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&p.ekj("router-component",t.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(e,t){1&e&&(p.YNc(0,T,16,5,"div",0),p._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&e&&(p.Q6J("ngIf",t.inMyProfile),p.xp6(1),p.Q6J("items",t.navItems)("size","small"))},directives:[g.O5,d.L,m.a8,m.dk,m.n5,m.dn,n.BZ,n.w1,n.fO,n.Dz,n.nj,n.ge,n.ev,h.lW,f.Hw,n.Gk],pipes:[Z.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),e})()},7233:function(e,t,s){"use strict";s.d(t,{t:function(){return Pe}});var i=s(33642),n=s(88426),r=s(31572),a=s(57629),o=s(61511),c=s(67806),p=s(45001),l=s(43691),u=s(27439),g=s(97162),d=s(86593),m=s(78364),h=s(88884),f=s(60007),Z=s(4252),I=s(48160);function S(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function A(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function E(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SELF_VOS_ADMIN")," "))}function b(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SELF_VOS")," "))}function T(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SELF_IDENTITIES_ADMIN")," "))}function R(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SELF_IDENTITIES")," "))}const v=function(){return["user","id","name"]};function x(e,t){if(1&e&&(r.TgZ(0,"div",11),r.YNc(1,T,3,3,"div",2),r.YNc(2,R,3,3,"div",2),r._UZ(3,"app-users-list",12),r.qZA()),2&e){const e=r.oxw(4);r.xp6(1),r.Q6J("ngIf",!e.showDescription),r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("users",e.users)("disableRouting",!0)("displayedColumns",r.DdM(5,v))}}const N=function(){return["id","name","shortName"]};function U(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,E,3,3,"div",2),r.YNc(2,b,3,3,"div",2),r._UZ(3,"perun-web-apps-vos-list",9),r.YNc(4,x,4,6,"div",10),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",!e.showDescription),r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(5,N))("vos",e.vos),r.xp6(1),r.Q6J("ngIf",e.users.length)}}function O(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getSelfData()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,A,1,0,"mat-spinner",1),r.YNc(8,U,5,6,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.SELF")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function _(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function M(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.GROUPADMIN_GROUPS")," "))}const q=function(){return["id","vo","name","description"]};function w(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,M,3,3,"div",2),r._UZ(2,"perun-web-apps-groups-list",14),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("groups",e.groups)("displayedColumns",r.DdM(3,q))}}function C(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getAdminGroupsAndVos()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",13),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,_,1,0,"mat-spinner",1),r.YNc(8,w,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.GROUPADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function L(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function Y(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.GROUPOBSERVER_GROUPS")," "))}const J=function(){return["id","recent","vo","name","description"]};function P(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,Y,3,3,"div",2),r._UZ(2,"perun-web-apps-groups-list",14),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("groups",e.groups)("displayedColumns",r.DdM(3,J))}}function y(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getGroupsAndVos("GROUPOBSERVER")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",13),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,L,1,0,"mat-spinner",1),r.YNc(8,P,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.GROUPOBSERVER")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function D(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function F(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.VOADMIN_VOS")," "))}function Q(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,F,3,3,"div",2),r._UZ(2,"perun-web-apps-vos-list",9),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,N))("vos",e.vos)}}function V(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getAdminVos()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",15),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,D,1,0,"mat-spinner",1),r.YNc(8,Q,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.VOADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function z(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function B(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.VOOBSERVER_VOS")," "))}function G(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,B,3,3,"div",2),r._UZ(2,"perun-web-apps-vos-list",9),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,N))("vos",e.vos)}}function k(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){r.CHM(e);const t=r.oxw(2);return t.getVos(t.roles.get("VOOBSERVER").get("Vo"))}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",15),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,z,1,0,"mat-spinner",1),r.YNc(8,G,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.VOOBSERVER")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function H(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function j(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.TRUSTEDFACILITYADMIN_VOS")," "))}function W(e,t){if(1&e&&(r.TgZ(0,"div"),r.TgZ(1,"div"),r.YNc(2,j,3,3,"div",2),r._UZ(3,"perun-web-apps-vos-list",9),r.qZA(),r.qZA()),2&e){const e=r.oxw(3);r.xp6(2),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,N))("vos",e.vos)}}function X(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){r.CHM(e);const t=r.oxw(2);return t.getVos(t.roles.get("TRUSTEDFACILITYADMIN").get("Vo"))}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",15),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,H,1,0,"mat-spinner",1),r.YNc(8,W,4,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.TRUSTEDFACILITYADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function $(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function K(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.TOPGROUPCREATOR_VOS")," "))}function ee(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,K,3,3,"div",2),r._UZ(2,"perun-web-apps-vos-list",9),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,N))("vos",e.vos)}}function te(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){r.CHM(e);const t=r.oxw(2);return t.getVos(t.roles.get("TOPGROUPCREATOR").get("Vo"))}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",15),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,$,1,0,"mat-spinner",1),r.YNc(8,ee,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.TOPGROUPCREATOR")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function se(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function ie(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.RESOURCEADMIN_RESOURCES")," "))}const ne=function(){return["id","name","vo","facility","description"]};function re(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,ie,3,3,"div",2),r._UZ(2,"perun-web-apps-resources-list",17),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("resources",e.resources)("routingVo",!0)("displayedColumns",r.DdM(4,ne))}}function ae(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getResourcesData("RESOURCEADMIN")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",16),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,se,1,0,"mat-spinner",1),r.YNc(8,re,3,5,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.RESOURCEADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function oe(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function ce(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.RESOURCEOBSERVER_RESOURCES")," "))}function pe(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,ce,3,3,"div",2),r._UZ(2,"perun-web-apps-resources-list",17),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("resources",e.resources)("routingVo",!0)("displayedColumns",r.DdM(4,ne))}}function le(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getResourcesData("RESOURCEOBSERVER")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",16),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,oe,1,0,"mat-spinner",1),r.YNc(8,pe,3,5,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.RESOURCEOBSERVER")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function ue(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function ge(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.RESOURCESELFSERVICE_RESOURCES")," "))}function de(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,ge,3,3,"div",2),r._UZ(2,"perun-web-apps-resources-list",17),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("resources",e.resources)("routingVo",!0)("displayedColumns",r.DdM(4,ne))}}function me(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getResourcesData("RESOURCESELFSERVICE")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",16),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,ue,1,0,"mat-spinner",1),r.YNc(8,de,3,5,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.RESOURCESELFSERVICE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function he(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function fe(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.FACILITYADMIN_FACILITIES")," "))}const Ze=function(){return["id","name","description"]};function Ie(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,fe,3,3,"div",2),r._UZ(2,"perun-web-apps-facilities-list",19),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,Ze))("facilities",e.facilities)}}function Se(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getAdminFacilities()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",18),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,he,1,0,"mat-spinner",1),r.YNc(8,Ie,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.FACILITYADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function Ae(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function Ee(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.FACILITYOBSERVER_FACILITIES")," "))}function be(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,Ee,3,3,"div",2),r._UZ(2,"perun-web-apps-facilities-list",19),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,Ze))("facilities",e.facilities)}}function Te(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getFacilities("FACILITYOBSERVER")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",18),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,Ae,1,0,"mat-spinner",1),r.YNc(8,be,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.FACILITYOBSERVER")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function Re(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function ve(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SPONSORSHIP_MEMBERS")," "))}const xe=function(){return["id","fullName","sponsored"]};function Ne(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,ve,3,3,"div",2),r._UZ(2,"perun-web-apps-members-list",20),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("members",e.members)("displayedColumns",r.DdM(3,xe))}}function Ue(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getMembers()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,Re,1,0,"mat-spinner",1),r.YNc(8,Ne,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.SPONSORSHIP")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function Oe(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function _e(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SPONSOR_VOS")," "))}function Me(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,_e,3,3,"div",2),r._UZ(2,"perun-web-apps-vos-list",9),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,N))("vos",e.vos)}}function qe(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){r.CHM(e);const t=r.oxw(2);return t.getVos(t.roles.get("SPONSOR").get("Vo"))}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,Oe,1,0,"mat-spinner",1),r.YNc(8,Me,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.SPONSOR")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function we(e,t){1&e&&(r.TgZ(0,"mat-expansion-panel"),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&e&&(r.xp6(5),r.Oqu(r.lcZ(6,1,"ROLES.PERUN_ADMIN")))}function Ce(e,t){1&e&&(r.TgZ(0,"mat-expansion-panel"),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&e&&(r.xp6(5),r.Oqu(r.lcZ(6,1,"ROLES.PERUN_OBSERVER")))}function Le(e,t){if(1&e&&(r.TgZ(0,"p",22),r._uU(1),r.qZA()),2&e){const e=t.$implicit;r.xp6(1),r.AsE("",e[0]," ids: ",e[1],"")}}function Ye(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){const t=r.CHM(e).$implicit;return r.oxw(2).getInnerKeys(t)}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.qZA(),r.qZA(),r.qZA(),r.YNc(6,Le,2,2,"p",21),r.qZA()}if(2&e){const e=t.$implicit,s=r.oxw(2);r.xp6(5),r.Oqu(e),r.xp6(1),r.Q6J("ngForOf",s.currentIds)}}function Je(e,t){if(1&e&&(r.TgZ(0,"mat-accordion"),r.YNc(1,O,9,5,"mat-expansion-panel",4),r.YNc(2,C,9,5,"mat-expansion-panel",4),r.YNc(3,y,9,5,"mat-expansion-panel",4),r.YNc(4,V,9,5,"mat-expansion-panel",4),r.YNc(5,k,9,5,"mat-expansion-panel",4),r.YNc(6,X,9,5,"mat-expansion-panel",4),r.YNc(7,te,9,5,"mat-expansion-panel",4),r.YNc(8,ae,9,5,"mat-expansion-panel",4),r.YNc(9,le,9,5,"mat-expansion-panel",4),r.YNc(10,me,9,5,"mat-expansion-panel",4),r.YNc(11,Se,9,5,"mat-expansion-panel",4),r.YNc(12,Te,9,5,"mat-expansion-panel",4),r.YNc(13,Ue,9,5,"mat-expansion-panel",4),r.YNc(14,qe,9,5,"mat-expansion-panel",4),r.YNc(15,we,7,3,"mat-expansion-panel",2),r.YNc(16,Ce,7,3,"mat-expansion-panel",2),r.YNc(17,Ye,7,2,"mat-expansion-panel",5),r.qZA()),2&e){const e=r.oxw();r.xp6(1),r.Q6J("ngIf",e.isSelf),r.xp6(1),r.Q6J("ngIf",e.isGroupAdmin),r.xp6(1),r.Q6J("ngIf",e.isGroupObserver),r.xp6(1),r.Q6J("ngIf",e.isVoAdmin),r.xp6(1),r.Q6J("ngIf",e.isVoObserver),r.xp6(1),r.Q6J("ngIf",e.isTrustedFacilityAdmin),r.xp6(1),r.Q6J("ngIf",e.isTopGroupCreator),r.xp6(1),r.Q6J("ngIf",e.isResourceAdmin),r.xp6(1),r.Q6J("ngIf",e.isResourceObserver),r.xp6(1),r.Q6J("ngIf",e.isResourceSelfService),r.xp6(1),r.Q6J("ngIf",e.isFacilityAdmin),r.xp6(1),r.Q6J("ngIf",e.isFacilityObserver),r.xp6(1),r.Q6J("ngIf",e.hasSponsorship),r.xp6(1),r.Q6J("ngIf",e.isSponsor),r.xp6(1),r.Q6J("ngIf",e.isPerunAdmin),r.xp6(1),r.Q6J("ngIf",e.isPerunObserver),r.xp6(1),r.Q6J("ngForOf",e.roleNames)}}let Pe=(()=>{class e{constructor(e,t,s,i,n,r,a,o,c){this.authzResolverService=e,this.usersManagerService=t,this.vosManagerService=s,this.facilitiesManagerService=i,this.resourcesManagerService=n,this.membersManagerService=r,this.groupsManagerService=a,this.route=o,this.store=c,this.currentIds=[],this.roles=new Map,this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSORSHIP","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER"],this.roleNames=[],this.groups=[],this.vos=[],this.facilities=[],this.users=[],this.resources=[],this.members=[]}ngOnInit(){this.outerLoading=!0,this.route.parent.params.subscribe(e=>{e.userId?(this.userId=e.userId,this.authzResolverService.getUserRoleNames(this.userId).subscribe(e=>{this.roleNames=e.map(e=>e.toUpperCase()),this.authzResolverService.getUserRoles(this.userId).subscribe(e=>{this.prepareRoles(e)})})):(this.showDescription=!0,this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.userId,this.roleNames=Object.keys(this.principal.roles),this.prepareRoles(this.principal.roles))})}prepareRoles(e){this.roleNames.forEach(t=>{const s=new Map;switch(Object.keys(e[t]).forEach(i=>{s.set(i,e[t][i])}),t){case"SELF":this.isSelf=!0;break;case"GROUPADMIN":this.isGroupAdmin=!0;break;case"VOADMIN":this.isVoAdmin=!0;break;case"RESOURCEADMIN":this.isResourceAdmin=!0;break;case"FACILITYADMIN":this.isFacilityAdmin=!0;break;case"TOPGROUPCREATOR":this.isTopGroupCreator=!0;break;case"SPONSORSHIP":this.hasSponsorship=!0;break;case"SPONSOR":this.isSponsor=!0;break;case"RESOURCESELFSERVICE":this.isResourceSelfService=!0;break;case"VOOBSERVER":this.isVoObserver=!0;break;case"RESOURCEOBSERVER":this.isResourceObserver=!0;break;case"GROUPOBSERVER":this.isGroupObserver=!0;break;case"TRUSTEDFACILITYADMIN":this.isTrustedFacilityAdmin=!0;break;case"FACILITYOBSERVER":this.isFacilityObserver=!0;break;case"PERUNADMIN":this.isPerunAdmin=!0;break;case"PERUNOBSERVER":this.isPerunObserver=!0}this.roles.set(t,s)}),this.roleNames=this.roleNames.filter(e=>!this.roleFilter.includes(e)),this.outerLoading=!1}getAdminGroupsAndVos(){this.loading=!0,this.groups=[],this.usersManagerService.getGroupsWhereUserIsAdmin(this.userId).subscribe(e=>{this.groups=e;const t=[...new Set(this.groups.map(e=>e.voId))];this.getVos(t)})}getVos(e){this.loading=!0,this.vos=[],this.vosManagerService.getVosByIds(e).subscribe(e=>{this.vos=e,this.loading=!1})}getInnerKeys(e){if(this.roles.get(e)){const t=this.roles.get(e).entries(),s=[];let i=t.next().value;for(;i;)s.push(i),i=t.next().value;this.currentIds=s}else this.currentIds=[]}getAdminVos(){this.loading=!0,this.vos=[],this.usersManagerService.getVosWhereUserIsAdmin(this.userId).subscribe(e=>{this.vos=e,this.loading=!1})}getAdminFacilities(){this.loading=!0,this.facilities=[],this.facilitiesManagerService.getFacilitiesWhereUserIsAdmin(this.userId).subscribe(e=>{this.facilities=e.map(e=>({facility:e})),this.loading=!1})}getSelfData(){this.loading=!0,this.vos=[],this.users=[],this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e;const t=this.roles.get("SELF").get("User");t?this.usersManagerService.getUsersByIds(t).subscribe(e=>{this.users=e,this.loading=!1}):this.loading=!1})}getResourcesData(e){this.loading=!0;const t=this.roles.get(e).get("Resource");this.vos=[],this.facilities=[],this.resources=[],this.resourcesManagerService.getRichResourcesByIds(t).subscribe(e=>{this.resources=e,this.vos=this.resources.map(e=>e.vo).filter((e,t,s)=>s.indexOf(e)===t),this.facilities=this.resources.map(e=>({facility:e.facility})).filter((e,t,s)=>s.indexOf(e)===t),this.loading=!1})}getMembers(){this.loading=!0;const e=this.roles.get("SPONSORSHIP").get("Member");this.members=[],this.membersManagerService.getRichMembersByIds(e).subscribe(e=>{this.members=e,this.loading=!1})}getGroupsAndVos(e){this.loading=!0;const t=this.roles.get(e).get("Vo"),s=this.roles.get(e).get("Group");this.vos=[],this.groups=[],this.groupsManagerService.getGroupsByIds(s).subscribe(e=>{this.groups=e,this.vosManagerService.getVosByIds(t).subscribe(e=>{this.vos=e,this.loading=!1})})}getFacilities(e){this.loading=!0,this.facilities=[];const t=this.roles.get(e).get("Facility");this.facilitiesManagerService.getFacilitiesByIds(t).subscribe(e=>{this.facilities=e.map(e=>({facility:e})),this.loading=!1})}}return e.\u0275fac=function(t){return new(t||e)(r.Y36(i.Ct),r.Y36(i.Fv),r.Y36(i.YF),r.Y36(i.IQ),r.Y36(i.xk),r.Y36(i.uq),r.Y36(i.ff),r.Y36(a.gz),r.Y36(n.d6))},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(e,t){2&e&&r.ekj("router-component",t.true)},decls:5,vars:5,consts:[[1,"page-subtitle","d-flex"],["class","ml-auto mr-auto",4,"ngIf"],[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","vos"],["class","mt-5",4,"ngIf"],[1,"mt-5"],[3,"users","disableRouting","displayedColumns"],["mat-card-avatar","","svgIcon","perun-group-black",1,"mr-2"],[3,"groups","displayedColumns"],["mat-card-avatar","","svgIcon","perun-vo-black",1,"mr-2"],["mat-card-avatar","","svgIcon","perun-resource-black",1,"mr-2"],[3,"resources","routingVo","displayedColumns"],["mat-card-avatar","","svgIcon","perun-facility-black",1,"mr-2"],[3,"displayedColumns","facilities"],[3,"members","displayedColumns"],["class","role-content",4,"ngFor","ngForOf"],[1,"role-content"]],template:function(e,t){1&e&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.YNc(3,S,1,0,"mat-spinner",1),r.YNc(4,Je,18,17,"mat-accordion",2)),2&e&&(r.xp6(1),r.Oqu(r.lcZ(2,3,"ROLES.TITLE")),r.xp6(2),r.Q6J("ngIf",t.outerLoading),r.xp6(1),r.Q6J("ngIf",!t.outerLoading))},directives:[o.O5,c.$g,p.pp,o.sg,p.ib,p.yz,p.yK,l.Hw,u.kc,g.Z,d.C,m.W,h.C,f.X,Z.O],pipes:[I.X$],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),e})()},68787:function(e,t,s){"use strict";s.d(t,{x:function(){return u}});var i=s(33642),n=s(31572),r=s(57629),a=s(61511),o=s(67806),c=s(8557);function p(e,t){1&e&&n._UZ(0,"mat-spinner",2)}function l(e,t){if(1&e&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&e){const e=n.oxw();n.xp6(1),n.Q6J("items",e.navItems)("size","small")}}let u=(()=>{class e{constructor(e,t){this.route=e,this.userManager=t,this.navItems=[],this.loading=!1}ngOnInit(){window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.userManager.getUserById(e.userId).subscribe(e=>{this.isServiceUser=e.serviceUser,this.initNavItems(),this.loading=!1},()=>this.loading=!1)})):this.initNavItems()}initNavItems(){this.navItems=[],window.location.pathname.startsWith("/admin")?this.navItems.push(this.isServiceUser?{cssIcon:"perun-service-identity",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}:{cssIcon:"perun-service-identity",url:"service-identities",label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",style:"user-btn"}):this.navItems.push({cssIcon:"perun-settings2",url:"passwordReset",label:"MENU_ITEMS.USER.PASSWORD_RESET",style:"user-btn"},{cssIcon:"perun-settings2",url:"guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(r.gz),n.Y36(i.Fv))},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("router-component",t.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,t){1&e&&(n.YNc(0,p,1,0,"mat-spinner",0),n.YNc(1,l,2,2,"div",1)),2&e&&(n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},directives:[a.O5,o.$g,c.L],styles:[""]}),e})()},40790:function(e,t,s){"use strict";s.d(t,{L:function(){return r}});var i=s(31572),n=s(21575);let r=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Xpm({type:e,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("router-component",t.true)},decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"app-animated-router-outlet")},directives:[n.A],styles:[""]}),e})()},6363:function(e,t,s){"use strict";s.r(t),s.d(t,{UsersModule:function(){return ge}});var i=s(61511),n=s(57629),r=s(15879),a=s(31612),o=s(40790),c=s(68787),p=s(95690),l=s(41939),u=s(84140),g=s(13857),d=s(31572),m=s(66283),h=s(4786),f=s(71522),Z=s(48160);function I(e,t){if(1&e&&(d.TgZ(0,"mat-option",5),d._uU(1),d.qZA()),2&e){const e=t.$implicit;d.Q6J("value",e),d.xp6(1),d.hij(" ",e," ")}}let S=(()=>{class e{constructor(e){this.guiConfigService=e,this.tablePageSizeOptions=u.f7}ngOnInit(){this.preferredTablePageSize=this.guiConfigService.getNumber(g.Rc)}updatePreferredTablePageSize(){this.guiConfigService.setNumber(g.Rc,this.preferredTablePageSize)}}return e.\u0275fac=function(t){return new(t||e)(d.Y36(g.Ng))},e.\u0275cmp=d.Xpm({type:e,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(e,t){1&e&&(d.TgZ(0,"h1",0),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.TgZ(3,"div",1),d.TgZ(4,"mat-form-field",2),d.TgZ(5,"mat-label"),d._uU(6),d.ALo(7,"translate"),d.qZA(),d.TgZ(8,"mat-select",3),d.NdJ("valueChange",function(e){return t.preferredTablePageSize=e})("valueChange",function(){return t.updatePreferredTablePageSize()}),d.YNc(9,I,2,2,"mat-option",4),d.qZA(),d.qZA(),d.qZA()),2&e&&(d.xp6(1),d.Oqu(d.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),d.xp6(5),d.Oqu(d.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),d.xp6(2),d.Q6J("value",t.preferredTablePageSize),d.xp6(1),d.Q6J("ngForOf",t.tablePageSizeOptions))},directives:[m.KE,m.hX,h.gD,i.sg,f.ey],pipes:[Z.X$],styles:[""]}),e})();var A=s(71956),E=s(88426),b=s(48958),T=s(66297),R=s(43691),v=s(36922),x=s(21575),N=s(22196);const U=function(){return{color:"black"}},O=function(){return["/myProfile"]};function _(e,t){if(1&e&&(d.TgZ(0,"div",1),d._UZ(1,"perun-web-apps-back-button"),d.TgZ(2,"div",2),d._UZ(3,"mat-icon",3),d.ALo(4,"translate"),d.TgZ(5,"div",4),d.TgZ(6,"div",5),d.TgZ(7,"a",6),d._uU(8),d.ALo(9,"userFullName"),d.qZA(),d.TgZ(10,"span",7),d._uU(11),d.qZA(),d.qZA(),d.TgZ(12,"span",8),d._uU(13),d.ALo(14,"translate"),d.ALo(15,"translate"),d.qZA(),d.qZA(),d.qZA(),d._UZ(16,"app-animated-router-outlet"),d.qZA()),2&e){const e=d.oxw();d.xp6(3),d.s9C("matTooltip",d.lcZ(4,8,"MENU_ITEMS.USER.ENTITY")),d.Q6J("ngStyle",d.DdM(16,U)),d.xp6(4),d.Q6J("routerLink",d.DdM(17,O)),d.xp6(1),d.hij(" ",d.lcZ(9,10,e.user)," "),d.xp6(3),d.hij(" \xa0#",e.user.id," "),d.xp6(2),d.lnq(" ",d.lcZ(14,12,"MENU_ITEMS.USER.ENTITY"),", ",d.lcZ(15,14,"MENU_ITEMS.USER.USER_TYPE"),": ",e.getUserType()," ")}}let M=(()=>{class e{constructor(e,t,s){this.sideMenuService=e,this.store=t,this.router=s}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 e.\u0275fac=function(t){return new(t||e)(d.Y36(b.D),d.Y36(E.d6),d.Y36(n.F0))},e.\u0275cmp=d.Xpm({type:e,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(e,t){1&e&&d.YNc(0,_,17,18,"div",0),2&e&&d.Q6J("ngIf",void 0!==t.user)},directives:[i.O5,T.W,R.Hw,v.gM,i.PC,n.yS,x.A],pipes:[Z.X$,N.d],styles:[""]}),e})();var q=s(7233);const w=[{path:"",component:M,children:[{path:"",component:A.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:p.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:r.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:a.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:q.t,data:{animation:"UserRolesPage"}},{path:"settings",component:o.L,children:[{path:"",component:c.x,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:l.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:S,data:{animation:"UserAppConfigurationPage"}}]}]}];let C=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=d.oAB({type:e}),e.\u0275inj=d.cJS({imports:[[n.Bz.forChild(w)],n.Bz]}),e})();var L=s(40084),Y=s(80340),J=s(16073),P=s(25122),y=s(45001),D=s(15980),F=s(58623),Q=s(67033),V=s(55109),z=s(91010),B=s(29236),G=s(84608),k=s(71403),H=s(67806),j=s(45994),W=s(27521),X=s(15812),$=s(54810),K=s(27679),ee=s(73005),te=s(27439),se=s(70663),ie=s(88975),ne=s(10033),re=s(8055),ae=s(4253),oe=s(22727),ce=s(41050),pe=s(7423),le=s(22280),ue=s(28780);let ge=(()=>{class e{constructor(e){this.translate=e,e.addLangs(["en","cs"])}}return e.\u0275fac=function(t){return new(t||e)(d.LFG(Z.sK))},e.\u0275mod=d.oAB({type:e}),e.\u0275inj=d.cJS({imports:[[i.ez,C,L.Bb,Y.c,m.lN,J.UX,J.u5,R.Ps,P.SJ,y.To,Z.aw.forChild({}),D.ot,F.JX,Q.p0,V.Nh,z.dp,D.ot,B.p9,G.Is,h.LD,k.ZX,H.Cq,j.Cv,v.AV,W.rP,X.FA,f.XK,$.Fk,K.t,f.si,ee.TU,te.QW,se.T5,ie._t,te.QW,ne.Hi,re.Tx,ae.Cl,oe.r,ce.g,l.ez,pe.r,le.d4,ue.m]]}),e})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/363-es5.3fbe2b130d5c69b906dc.js b/dist/apps/admin-gui/363-es5.3fbe2b130d5c69b906dc.js deleted file mode 100644 index e7f83d27d..000000000 --- a/dist/apps/admin-gui/363-es5.3fbe2b130d5c69b906dc.js +++ /dev/null @@ -1 +0,0 @@ -!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||n(e)||function(){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 n(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}function t(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==i.return||i.return()}finally{if(u)throw a}}}}(e.vos);try{var s=function(){var n=i.value;e.memberService.getMemberByUser(n.id,e.userId).subscribe(function(t){e.groupService.getMemberGroups(t.id).subscribe(function(t){e.membersGroups=e.membersGroups.concat(t),e.vos.indexOf(n)===e.vos.length-1&&(e.memberRefresh=!1)})})};for(r.s();!(i=r.n()).done;)s()}catch(a){r.e(a)}finally{r.f()}0===t.length&&(e.memberRefresh=!1)})}}]),e}();return e.\u0275fac=function(n){return new(n||e)(c.Y36(o.Fv),c.Y36(o.uq),c.Y36(u.dB),c.Y36(o.ff),c.Y36(a.d6),c.Y36(l.gz))},e.\u0275cmp=c.Xpm({type:e,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(e,n){2&e&&c.ekj("router-component",n.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","groups","displayedColumns","disableMembers","filter","page",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"pageSize","groups","displayedColumns","disableMembers","filter","page"],[1,"mt-5"]],template:function(e,n){1&e&&(c.YNc(0,h,3,3,"h1",0),c.YNc(1,Z,3,3,"h1",0),c.TgZ(2,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return n.refreshMemberTable()}),c.qZA(),c.TgZ(3,"perun-web-apps-immediate-filter",2),c.NdJ("filter",function(e){return n.memberFilter(e)}),c.qZA(),c.YNc(4,I,1,0,"mat-spinner",3),c.YNc(5,A,1,6,"perun-web-apps-groups-list",4),c.YNc(6,R,8,6,"div",5)),2&e&&(c.Q6J("ngIf",n.showPrincipal),c.xp6(1),c.Q6J("ngIf",!n.showPrincipal),c.xp6(2),c.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),c.xp6(1),c.Q6J("ngIf",n.memberRefresh),c.xp6(1),c.Q6J("ngIf",!n.memberRefresh),c.xp6(1),c.Q6J("ngIf",!n.showPrincipal))},directives:[p.O5,f.t,g.L,d.$g,m.W],pipes:[v.X$],styles:[""]}),e}()},15879:function(e,n,t){"use strict";t.d(n,{j:function(){return E}});var r=t(33642),a=t(88426),o=t(60611),u=t(31572),c=t(57629),l=t(61511),p=t(59403),f=t(19139),g=t(67806),d=t(97162),m=t(48160);function v(e,n){1&e&&(u.TgZ(0,"h1",6),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function h(e,n){1&e&&(u.TgZ(0,"h1",6),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function Z(e,n){1&e&&u._UZ(0,"mat-spinner",7)}function I(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"perun-web-apps-vos-list",8),u.NdJ("page",function(e){return u.CHM(t),u.oxw().memberPageChanged(e)}),u.qZA()}if(2&e){var i=u.oxw();u.Q6J("displayedColumns",i.displayedColumns)("pageSize",i.memberPageSize)("filterValue",i.memberFilterValue)("vos",i.vosWhereIsMember)}}function S(e,n){1&e&&u._UZ(0,"mat-spinner",7)}function A(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"perun-web-apps-vos-list",8),u.NdJ("page",function(e){return u.CHM(t),u.oxw(2).adminPageChanged(e)}),u.qZA()}if(2&e){var i=u.oxw(2);u.Q6J("displayedColumns",i.displayedColumns)("pageSize",i.adminPageSize)("filterValue",i.adminFilterValue)("vos",i.vosWhereIsAdmin)}}function b(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"div",9),u.TgZ(1,"h1",6),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return u.CHM(t),u.oxw().refreshAdminTable()}),u.qZA(),u.TgZ(5,"perun-web-apps-immediate-filter",2),u.NdJ("filter",function(e){return u.CHM(t),u.oxw().applyAdminFilter(e)}),u.qZA(),u.YNc(6,S,1,0,"mat-spinner",3),u.YNc(7,A,1,4,"perun-web-apps-vos-list",4),u.qZA()}if(2&e){var i=u.oxw();u.xp6(2),u.Oqu(u.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),u.xp6(3),u.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),u.xp6(1),u.Q6J("ngIf",i.adminRefresh),u.xp6(1),u.Q6J("ngIf",!i.adminRefresh)}}var E=function(){var e=function(){function e(n,t,r,s,a){i(this,e),this.usersService=n,this.authResolver=t,this.tableConfigService=r,this.store=s,this.route=a,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=o.YF,this.memberTableId=o.gc}return s(e,[{key:"ngOnInit",value:function(){var e=this;this.adminPageSize=this.tableConfigService.getTablePageSize(this.adminTableId),this.memberPageSize=this.tableConfigService.getTablePageSize(this.memberTableId),!0===(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(function(n){return e.userId=n.userId}),this.refreshAdminTable(),this.refreshMemberTable()}},{key:"refreshMemberTable",value:function(){var e=this;this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(function(n){e.vosWhereIsMember=n,e.memberRefresh=!1},function(){return e.memberRefresh=!1})}},{key:"refreshAdminTable",value:function(){var e=this;this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(function(n){e.vosWhereIsAdmin=n,e.adminRefresh=!1},function(){return e.adminRefresh=!1})}},{key:"applyMemberFilter",value:function(e){this.memberFilterValue=e}},{key:"adminPageChanged",value:function(e){this.adminPageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.adminTableId,e.pageSize)}},{key:"memberPageChanged",value:function(e){this.memberPageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.memberTableId,e.pageSize)}},{key:"applyAdminFilter",value:function(e){this.adminFilterValue=e}}]),e}();return e.\u0275fac=function(n){return new(n||e)(u.Y36(r.Fv),u.Y36(a.x4),u.Y36(o.dB),u.Y36(a.d6),u.Y36(c.gz))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(e,n){2&e&&u.ekj("router-component",n.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","pageSize","filterValue","vos","page",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","pageSize","filterValue","vos","page"],[1,"mt-5"]],template:function(e,n){1&e&&(u.YNc(0,v,3,3,"h1",0),u.YNc(1,h,3,3,"h1",0),u.TgZ(2,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return n.refreshMemberTable()}),u.qZA(),u.TgZ(3,"perun-web-apps-immediate-filter",2),u.NdJ("filter",function(e){return n.applyMemberFilter(e)}),u.qZA(),u.YNc(4,Z,1,0,"mat-spinner",3),u.YNc(5,I,1,4,"perun-web-apps-vos-list",4),u.YNc(6,b,8,6,"div",5)),2&e&&(u.Q6J("ngIf",n.isMyProfile),u.xp6(1),u.Q6J("ngIf",!n.isMyProfile),u.xp6(2),u.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),u.xp6(1),u.Q6J("ngIf",n.memberRefresh),u.xp6(1),u.Q6J("ngIf",!n.memberRefresh),u.xp6(1),u.Q6J("ngIf",!n.isMyProfile))},directives:[l.O5,p.t,f.L,g.$g,d.Z],pipes:[m.X$],styles:[""]}),e}()},71956:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var r=t(33642),a=t(67033),o=t(88426),u=t(67004),c=t(27613),l=t(81954),p=t(31572),f=t(57629),g=t(84608),d=t(61511),m=t(8557),v=t(27439),h=t(15980),Z=t(43691),I=t(48160);function S(e,n){1&e&&p._UZ(0,"th",12)}function A(e,n){if(1&e&&(p.TgZ(0,"td",13),p._uU(1),p.qZA()),2&e){var t=n.$implicit;p.xp6(1),p.hij(" ",t.displayName,": ")}}function b(e,n){1&e&&p._UZ(0,"th",12)}function E(e,n){if(1&e){var t=p.EpF();p.TgZ(0,"td",14),p._uU(1),p.TgZ(2,"button",15),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).changeEmail()}),p.TgZ(3,"mat-icon"),p._uU(4,"edit"),p.qZA(),p.qZA(),p.qZA()}if(2&e){var i=n.$implicit;p.xp6(1),p.hij(" ",i.value," ")}}function T(e,n){1&e&&p._UZ(0,"tr",16)}function R(e,n){if(1&e&&(p.TgZ(0,"div",2),p.TgZ(1,"mat-card",3),p.TgZ(2,"mat-card-header"),p.TgZ(3,"mat-card-title"),p.TgZ(4,"h1",4),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(7,"mat-card-content"),p.TgZ(8,"table",5),p.ynx(9,6),p.YNc(10,S,1,0,"th",7),p.YNc(11,A,2,1,"td",8),p.BQk(),p.ynx(12,9),p.YNc(13,b,1,0,"th",7),p.YNc(14,E,5,1,"td",10),p.BQk(),p.YNc(15,T,1,0,"tr",11),p.qZA(),p.qZA(),p.qZA(),p.qZA()),2&e){var t=p.oxw();p.xp6(5),p.Oqu(p.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),p.xp6(3),p.Q6J("dataSource",t.mailDataSource),p.xp6(7),p.Q6J("matRowDefColumns",t.displayedColumns)}}var x=function(){var e=function(){function e(n,t,r,s,a){i(this,e),this.userService=n,this.attributeService=t,this.storeService=r,this.route=s,this.dialog=a,this.navItems=[],this.displayedColumns=["name","value"],this.inMyProfile=!1}return s(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(n){void 0!==n.userId?e.userService.getUserById(n.userId).subscribe(function(n){e.user=n,e.initNavItems()}):(e.inMyProfile=!0,e.userID=e.storeService.getPerunPrincipal().user.id,e.attributeService.getUserAttributeByName(e.userID,u.r.USER_DEF_PREFERRED_MAIL).subscribe(function(n){e.preferredMail=n,e.handleMailNotDefined(),e.mailDataSource=new a.by([e.preferredMail]),e.initNavItems()}))})}},{key:"initNavItems",value:function(){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-group",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-group",url:"roles",label:"MENU_ITEMS.USER.ROLES",style:"user-btn"},{cssIcon:"perun-settings2",url:"settings",label:"MENU_ITEMS.ADMIN.SETTINGS",style:"user-btn"})}},{key:"changeEmail",value:function(){var e=this,n=(0,c.kZ)();n.width="350px",n.data={userId:this.userID},this.dialog.open(l.gr,n).afterClosed().subscribe(function(n){n&&e.attributeService.getUserAttributeByName(e.userID,u.r.USER_DEF_PREFERRED_MAIL).subscribe(function(n){e.preferredMail=n,e.handleMailNotDefined(),e.mailDataSource=new a.by([e.preferredMail])})})}},{key:"handleMailNotDefined",value:function(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,c.Cz)(u.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:Object("-")})}}]),e}();return e.\u0275fac=function(n){return new(n||e)(p.Y36(r.Fv),p.Y36(r.H8),p.Y36(o.d6),p.Y36(f.gz),p.Y36(g.uw))},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(e,n){2&e&&p.ekj("router-component",n.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(e,n){1&e&&(p.YNc(0,R,16,5,"div",0),p._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&e&&(p.Q6J("ngIf",n.inMyProfile),p.xp6(1),p.Q6J("items",n.navItems)("size","small"))},directives:[d.O5,m.L,v.a8,v.dk,v.n5,v.dn,a.BZ,a.w1,a.fO,a.Dz,a.nj,a.ge,a.ev,h.lW,Z.Hw,a.Gk],pipes:[I.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),e}()},7233:function(n,t,r){"use strict";r.d(t,{t:function(){return Fe}});var a=r(33642),o=r(88426),u=r(31572),c=r(57629),l=r(61511),p=r(67806),f=r(45001),g=r(43691),d=r(27439),m=r(97162),v=r(86593),h=r(78364),Z=r(88884),I=r(60007),S=r(4252),A=r(48160);function b(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function E(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function T(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SELF_VOS_ADMIN")," "))}function R(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SELF_VOS")," "))}function x(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SELF_IDENTITIES_ADMIN")," "))}function N(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SELF_IDENTITIES")," "))}var U=function(){return["user","id","name"]};function O(e,n){if(1&e&&(u.TgZ(0,"div",11),u.YNc(1,x,3,3,"div",2),u.YNc(2,N,3,3,"div",2),u._UZ(3,"app-users-list",12),u.qZA()),2&e){var t=u.oxw(4);u.xp6(1),u.Q6J("ngIf",!t.showDescription),u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("users",t.users)("disableRouting",!0)("displayedColumns",u.DdM(5,U))}}var _=function(){return["id","name","shortName"]};function y(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,T,3,3,"div",2),u.YNc(2,R,3,3,"div",2),u._UZ(3,"perun-web-apps-vos-list",9),u.YNc(4,O,4,6,"div",10),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",!t.showDescription),u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(5,_))("vos",t.vos),u.xp6(1),u.Q6J("ngIf",t.users.length)}}function M(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getSelfData()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,E,1,0,"mat-spinner",1),u.YNc(8,y,5,6,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.SELF")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function w(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function q(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.GROUPADMIN_GROUPS")," "))}var C=function(){return["id","vo","name","description"]};function L(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,q,3,3,"div",2),u._UZ(2,"perun-web-apps-groups-list",14),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("groups",t.groups)("displayedColumns",u.DdM(3,C))}}function Y(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getAdminGroupsAndVos()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",13),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,w,1,0,"mat-spinner",1),u.YNc(8,L,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.GROUPADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function J(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function P(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.GROUPOBSERVER_GROUPS")," "))}var D=function(){return["id","recent","vo","name","description"]};function F(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,P,3,3,"div",2),u._UZ(2,"perun-web-apps-groups-list",14),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("groups",t.groups)("displayedColumns",u.DdM(3,D))}}function Q(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getGroupsAndVos("GROUPOBSERVER")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",13),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,J,1,0,"mat-spinner",1),u.YNc(8,F,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.GROUPOBSERVER")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function V(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function k(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.VOADMIN_VOS")," "))}function z(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,k,3,3,"div",2),u._UZ(2,"perun-web-apps-vos-list",9),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,_))("vos",t.vos)}}function B(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getAdminVos()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",15),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,V,1,0,"mat-spinner",1),u.YNc(8,z,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.VOADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function G(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function j(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.VOOBSERVER_VOS")," "))}function H(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,j,3,3,"div",2),u._UZ(2,"perun-web-apps-vos-list",9),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,_))("vos",t.vos)}}function W(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){u.CHM(t);var e=u.oxw(2);return e.getVos(e.roles.get("VOOBSERVER").get("Vo"))}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",15),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,G,1,0,"mat-spinner",1),u.YNc(8,H,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.VOOBSERVER")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function X(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function $(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.TRUSTEDFACILITYADMIN_VOS")," "))}function K(e,n){if(1&e&&(u.TgZ(0,"div"),u.TgZ(1,"div"),u.YNc(2,$,3,3,"div",2),u._UZ(3,"perun-web-apps-vos-list",9),u.qZA(),u.qZA()),2&e){var t=u.oxw(3);u.xp6(2),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,_))("vos",t.vos)}}function ee(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){u.CHM(t);var e=u.oxw(2);return e.getVos(e.roles.get("TRUSTEDFACILITYADMIN").get("Vo"))}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",15),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,X,1,0,"mat-spinner",1),u.YNc(8,K,4,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.TRUSTEDFACILITYADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function ne(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function te(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.TOPGROUPCREATOR_VOS")," "))}function ie(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,te,3,3,"div",2),u._UZ(2,"perun-web-apps-vos-list",9),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,_))("vos",t.vos)}}function re(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){u.CHM(t);var e=u.oxw(2);return e.getVos(e.roles.get("TOPGROUPCREATOR").get("Vo"))}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",15),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,ne,1,0,"mat-spinner",1),u.YNc(8,ie,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.TOPGROUPCREATOR")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function se(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function ae(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.RESOURCEADMIN_RESOURCES")," "))}var oe=function(){return["id","name","vo","facility","description"]};function ue(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,ae,3,3,"div",2),u._UZ(2,"perun-web-apps-resources-list",17),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("resources",t.resources)("routingVo",!0)("displayedColumns",u.DdM(4,oe))}}function ce(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getResourcesData("RESOURCEADMIN")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",16),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,se,1,0,"mat-spinner",1),u.YNc(8,ue,3,5,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.RESOURCEADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function le(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function pe(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.RESOURCEOBSERVER_RESOURCES")," "))}function fe(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,pe,3,3,"div",2),u._UZ(2,"perun-web-apps-resources-list",17),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("resources",t.resources)("routingVo",!0)("displayedColumns",u.DdM(4,oe))}}function ge(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getResourcesData("RESOURCEOBSERVER")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",16),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,le,1,0,"mat-spinner",1),u.YNc(8,fe,3,5,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.RESOURCEOBSERVER")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function de(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function me(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.RESOURCESELFSERVICE_RESOURCES")," "))}function ve(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,me,3,3,"div",2),u._UZ(2,"perun-web-apps-resources-list",17),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("resources",t.resources)("routingVo",!0)("displayedColumns",u.DdM(4,oe))}}function he(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getResourcesData("RESOURCESELFSERVICE")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",16),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,de,1,0,"mat-spinner",1),u.YNc(8,ve,3,5,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.RESOURCESELFSERVICE")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function Ze(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function Ie(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.FACILITYADMIN_FACILITIES")," "))}var Se=function(){return["id","name","description"]};function Ae(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,Ie,3,3,"div",2),u._UZ(2,"perun-web-apps-facilities-list",19),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,Se))("facilities",t.facilities)}}function be(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getAdminFacilities()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",18),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,Ze,1,0,"mat-spinner",1),u.YNc(8,Ae,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.FACILITYADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function Ee(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function Te(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.FACILITYOBSERVER_FACILITIES")," "))}function Re(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,Te,3,3,"div",2),u._UZ(2,"perun-web-apps-facilities-list",19),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,Se))("facilities",t.facilities)}}function xe(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getFacilities("FACILITYOBSERVER")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",18),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,Ee,1,0,"mat-spinner",1),u.YNc(8,Re,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.FACILITYOBSERVER")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function Ne(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function Ue(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SPONSORSHIP_MEMBERS")," "))}var Oe=function(){return["id","fullName","sponsored"]};function _e(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,Ue,3,3,"div",2),u._UZ(2,"perun-web-apps-members-list",20),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("members",t.members)("displayedColumns",u.DdM(3,Oe))}}function ye(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getMembers()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,Ne,1,0,"mat-spinner",1),u.YNc(8,_e,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.SPONSORSHIP")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function Me(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function we(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SPONSOR_VOS")," "))}function qe(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,we,3,3,"div",2),u._UZ(2,"perun-web-apps-vos-list",9),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,_))("vos",t.vos)}}function Ce(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){u.CHM(t);var e=u.oxw(2);return e.getVos(e.roles.get("SPONSOR").get("Vo"))}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,Me,1,0,"mat-spinner",1),u.YNc(8,qe,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.SPONSOR")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function Le(e,n){1&e&&(u.TgZ(0,"mat-expansion-panel"),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.xp6(5),u.Oqu(u.lcZ(6,1,"ROLES.PERUN_ADMIN")))}function Ye(e,n){1&e&&(u.TgZ(0,"mat-expansion-panel"),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.xp6(5),u.Oqu(u.lcZ(6,1,"ROLES.PERUN_OBSERVER")))}function Je(e,n){if(1&e&&(u.TgZ(0,"p",22),u._uU(1),u.qZA()),2&e){var t=n.$implicit;u.xp6(1),u.AsE("",t[0]," ids: ",t[1],"")}}function Pe(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){var e=u.CHM(t).$implicit;return u.oxw(2).getInnerKeys(e)}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.qZA(),u.qZA(),u.qZA(),u.YNc(6,Je,2,2,"p",21),u.qZA()}if(2&e){var i=n.$implicit,r=u.oxw(2);u.xp6(5),u.Oqu(i),u.xp6(1),u.Q6J("ngForOf",r.currentIds)}}function De(e,n){if(1&e&&(u.TgZ(0,"mat-accordion"),u.YNc(1,M,9,5,"mat-expansion-panel",4),u.YNc(2,Y,9,5,"mat-expansion-panel",4),u.YNc(3,Q,9,5,"mat-expansion-panel",4),u.YNc(4,B,9,5,"mat-expansion-panel",4),u.YNc(5,W,9,5,"mat-expansion-panel",4),u.YNc(6,ee,9,5,"mat-expansion-panel",4),u.YNc(7,re,9,5,"mat-expansion-panel",4),u.YNc(8,ce,9,5,"mat-expansion-panel",4),u.YNc(9,ge,9,5,"mat-expansion-panel",4),u.YNc(10,he,9,5,"mat-expansion-panel",4),u.YNc(11,be,9,5,"mat-expansion-panel",4),u.YNc(12,xe,9,5,"mat-expansion-panel",4),u.YNc(13,ye,9,5,"mat-expansion-panel",4),u.YNc(14,Ce,9,5,"mat-expansion-panel",4),u.YNc(15,Le,7,3,"mat-expansion-panel",2),u.YNc(16,Ye,7,3,"mat-expansion-panel",2),u.YNc(17,Pe,7,2,"mat-expansion-panel",5),u.qZA()),2&e){var t=u.oxw();u.xp6(1),u.Q6J("ngIf",t.isSelf),u.xp6(1),u.Q6J("ngIf",t.isGroupAdmin),u.xp6(1),u.Q6J("ngIf",t.isGroupObserver),u.xp6(1),u.Q6J("ngIf",t.isVoAdmin),u.xp6(1),u.Q6J("ngIf",t.isVoObserver),u.xp6(1),u.Q6J("ngIf",t.isTrustedFacilityAdmin),u.xp6(1),u.Q6J("ngIf",t.isTopGroupCreator),u.xp6(1),u.Q6J("ngIf",t.isResourceAdmin),u.xp6(1),u.Q6J("ngIf",t.isResourceObserver),u.xp6(1),u.Q6J("ngIf",t.isResourceSelfService),u.xp6(1),u.Q6J("ngIf",t.isFacilityAdmin),u.xp6(1),u.Q6J("ngIf",t.isFacilityObserver),u.xp6(1),u.Q6J("ngIf",t.hasSponsorship),u.xp6(1),u.Q6J("ngIf",t.isSponsor),u.xp6(1),u.Q6J("ngIf",t.isPerunAdmin),u.xp6(1),u.Q6J("ngIf",t.isPerunObserver),u.xp6(1),u.Q6J("ngForOf",t.roleNames)}}var Fe=function(){var n=function(){function n(e,t,r,s,a,o,u,c,l){i(this,n),this.authzResolverService=e,this.usersManagerService=t,this.vosManagerService=r,this.facilitiesManagerService=s,this.resourcesManagerService=a,this.membersManagerService=o,this.groupsManagerService=u,this.route=c,this.store=l,this.currentIds=[],this.roles=new Map,this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSORSHIP","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER"],this.roleNames=[],this.groups=[],this.vos=[],this.facilities=[],this.users=[],this.resources=[],this.members=[]}return s(n,[{key:"ngOnInit",value:function(){var e=this;this.outerLoading=!0,this.route.parent.params.subscribe(function(n){n.userId?(e.userId=n.userId,e.authzResolverService.getUserRoleNames(e.userId).subscribe(function(n){e.roleNames=n.map(function(e){return e.toUpperCase()}),e.authzResolverService.getUserRoles(e.userId).subscribe(function(n){e.prepareRoles(n)})})):(e.showDescription=!0,e.principal=e.store.getPerunPrincipal(),e.userId=e.principal.userId,e.roleNames=Object.keys(e.principal.roles),e.prepareRoles(e.principal.roles))})}},{key:"prepareRoles",value:function(e){var n=this;this.roleNames.forEach(function(t){var i=new Map;switch(Object.keys(e[t]).forEach(function(n){i.set(n,e[t][n])}),t){case"SELF":n.isSelf=!0;break;case"GROUPADMIN":n.isGroupAdmin=!0;break;case"VOADMIN":n.isVoAdmin=!0;break;case"RESOURCEADMIN":n.isResourceAdmin=!0;break;case"FACILITYADMIN":n.isFacilityAdmin=!0;break;case"TOPGROUPCREATOR":n.isTopGroupCreator=!0;break;case"SPONSORSHIP":n.hasSponsorship=!0;break;case"SPONSOR":n.isSponsor=!0;break;case"RESOURCESELFSERVICE":n.isResourceSelfService=!0;break;case"VOOBSERVER":n.isVoObserver=!0;break;case"RESOURCEOBSERVER":n.isResourceObserver=!0;break;case"GROUPOBSERVER":n.isGroupObserver=!0;break;case"TRUSTEDFACILITYADMIN":n.isTrustedFacilityAdmin=!0;break;case"FACILITYOBSERVER":n.isFacilityObserver=!0;break;case"PERUNADMIN":n.isPerunAdmin=!0;break;case"PERUNOBSERVER":n.isPerunObserver=!0}n.roles.set(t,i)}),this.roleNames=this.roleNames.filter(function(e){return!n.roleFilter.includes(e)}),this.outerLoading=!1}},{key:"getAdminGroupsAndVos",value:function(){var n=this;this.loading=!0,this.groups=[],this.usersManagerService.getGroupsWhereUserIsAdmin(this.userId).subscribe(function(t){n.groups=t;var i=e(new Set(n.groups.map(function(e){return e.voId})));n.getVos(i)})}},{key:"getVos",value:function(e){var n=this;this.loading=!0,this.vos=[],this.vosManagerService.getVosByIds(e).subscribe(function(e){n.vos=e,n.loading=!1})}},{key:"getInnerKeys",value:function(e){if(this.roles.get(e)){for(var n=this.roles.get(e).entries(),t=[],i=n.next().value;i;)t.push(i),i=n.next().value;this.currentIds=t}else this.currentIds=[]}},{key:"getAdminVos",value:function(){var e=this;this.loading=!0,this.vos=[],this.usersManagerService.getVosWhereUserIsAdmin(this.userId).subscribe(function(n){e.vos=n,e.loading=!1})}},{key:"getAdminFacilities",value:function(){var e=this;this.loading=!0,this.facilities=[],this.facilitiesManagerService.getFacilitiesWhereUserIsAdmin(this.userId).subscribe(function(n){e.facilities=n.map(function(e){return{facility:e}}),e.loading=!1})}},{key:"getSelfData",value:function(){var e=this;this.loading=!0,this.vos=[],this.users=[],this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(function(n){e.vos=n;var t=e.roles.get("SELF").get("User");t?e.usersManagerService.getUsersByIds(t).subscribe(function(n){e.users=n,e.loading=!1}):e.loading=!1})}},{key:"getResourcesData",value:function(e){var n=this;this.loading=!0;var t=this.roles.get(e).get("Resource");this.vos=[],this.facilities=[],this.resources=[],this.resourcesManagerService.getRichResourcesByIds(t).subscribe(function(e){n.resources=e,n.vos=n.resources.map(function(e){return e.vo}).filter(function(e,n,t){return t.indexOf(e)===n}),n.facilities=n.resources.map(function(e){return{facility:e.facility}}).filter(function(e,n,t){return t.indexOf(e)===n}),n.loading=!1})}},{key:"getMembers",value:function(){var e=this;this.loading=!0;var n=this.roles.get("SPONSORSHIP").get("Member");this.members=[],this.membersManagerService.getRichMembersByIds(n).subscribe(function(n){e.members=n,e.loading=!1})}},{key:"getGroupsAndVos",value:function(e){var n=this;this.loading=!0;var t=this.roles.get(e).get("Vo"),i=this.roles.get(e).get("Group");this.vos=[],this.groups=[],this.groupsManagerService.getGroupsByIds(i).subscribe(function(e){n.groups=e,n.vosManagerService.getVosByIds(t).subscribe(function(e){n.vos=e,n.loading=!1})})}},{key:"getFacilities",value:function(e){var n=this;this.loading=!0,this.facilities=[];var t=this.roles.get(e).get("Facility");this.facilitiesManagerService.getFacilitiesByIds(t).subscribe(function(e){n.facilities=e.map(function(e){return{facility:e}}),n.loading=!1})}}]),n}();return n.\u0275fac=function(e){return new(e||n)(u.Y36(a.Ct),u.Y36(a.Fv),u.Y36(a.YF),u.Y36(a.IQ),u.Y36(a.xk),u.Y36(a.uq),u.Y36(a.ff),u.Y36(c.gz),u.Y36(o.d6))},n.\u0275cmp=u.Xpm({type:n,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(e,n){2&e&&u.ekj("router-component",n.true)},decls:5,vars:5,consts:[[1,"page-subtitle","d-flex"],["class","ml-auto mr-auto",4,"ngIf"],[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","vos"],["class","mt-5",4,"ngIf"],[1,"mt-5"],[3,"users","disableRouting","displayedColumns"],["mat-card-avatar","","svgIcon","perun-group-black",1,"mr-2"],[3,"groups","displayedColumns"],["mat-card-avatar","","svgIcon","perun-vo-black",1,"mr-2"],["mat-card-avatar","","svgIcon","perun-resource-black",1,"mr-2"],[3,"resources","routingVo","displayedColumns"],["mat-card-avatar","","svgIcon","perun-facility-black",1,"mr-2"],[3,"displayedColumns","facilities"],[3,"members","displayedColumns"],["class","role-content",4,"ngFor","ngForOf"],[1,"role-content"]],template:function(e,n){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.YNc(3,b,1,0,"mat-spinner",1),u.YNc(4,De,18,17,"mat-accordion",2)),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,3,"ROLES.TITLE")),u.xp6(2),u.Q6J("ngIf",n.outerLoading),u.xp6(1),u.Q6J("ngIf",!n.outerLoading))},directives:[l.O5,p.$g,f.pp,l.sg,f.ib,f.yz,f.yK,g.Hw,d.kc,m.Z,v.C,h.W,Z.C,I.X,S.O],pipes:[A.X$],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),n}()},68787:function(e,n,t){"use strict";t.d(n,{x:function(){return g}});var r=t(33642),a=t(31572),o=t(57629),u=t(61511),c=t(67806),l=t(8557);function p(e,n){1&e&&a._UZ(0,"mat-spinner",2)}function f(e,n){if(1&e&&(a.TgZ(0,"div"),a._UZ(1,"perun-web-apps-menu-buttons-field",3),a.qZA()),2&e){var t=a.oxw();a.xp6(1),a.Q6J("items",t.navItems)("size","small")}}var g=function(){var e=function(){function e(n,t){i(this,e),this.route=n,this.userManager=t,this.navItems=[],this.loading=!1}return s(e,[{key:"ngOnInit",value:function(){var e=this;window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(function(n){e.userManager.getUserById(n.userId).subscribe(function(n){e.isServiceUser=n.serviceUser,e.initNavItems(),e.loading=!1},function(){return e.loading=!1})})):this.initNavItems()}},{key:"initNavItems",value:function(){this.navItems=[],window.location.pathname.startsWith("/admin")?this.navItems.push(this.isServiceUser?{cssIcon:"perun-service-identity",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}:{cssIcon:"perun-service-identity",url:"service-identities",label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",style:"user-btn"}):this.navItems.push({cssIcon:"perun-settings2",url:"passwordReset",label:"MENU_ITEMS.USER.PASSWORD_RESET",style:"user-btn"},{cssIcon:"perun-settings2",url:"guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}]),e}();return e.\u0275fac=function(n){return new(n||e)(a.Y36(o.gz),a.Y36(r.Fv))},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(e,n){2&e&&a.ekj("router-component",n.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,n){1&e&&(a.YNc(0,p,1,0,"mat-spinner",0),a.YNc(1,f,2,2,"div",1)),2&e&&(a.Q6J("ngIf",n.loading),a.xp6(1),a.Q6J("ngIf",!n.loading))},directives:[u.O5,c.$g,l.L],styles:[""]}),e}()},40790:function(e,n,t){"use strict";t.d(n,{L:function(){return a}});var r=t(31572),s=t(21575),a=function(){var e=function e(){i(this,e)};return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(e,n){2&e&&r.ekj("router-component",n.true)},decls:1,vars:0,template:function(e,n){1&e&&r._UZ(0,"app-animated-router-outlet")},directives:[s.A],styles:[""]}),e}()},6363:function(e,n,t){"use strict";t.r(n),t.d(n,{UsersModule:function(){return me}});var r=t(61511),a=t(57629),o=t(15879),u=t(31612),c=t(40790),l=t(68787),p=t(95690),f=t(41939),g=t(27613),d=t(13857),m=t(31572),v=t(66283),h=t(4786),Z=t(71522),I=t(48160);function S(e,n){if(1&e&&(m.TgZ(0,"mat-option",5),m._uU(1),m.qZA()),2&e){var t=n.$implicit;m.Q6J("value",t),m.xp6(1),m.hij(" ",t," ")}}var A=function(){var e=function(){function e(n){i(this,e),this.guiConfigService=n,this.tablePageSizeOptions=g.f7}return s(e,[{key:"ngOnInit",value:function(){this.preferredTablePageSize=this.guiConfigService.getNumber(d.Rc)}},{key:"updatePreferredTablePageSize",value:function(){this.guiConfigService.setNumber(d.Rc,this.preferredTablePageSize)}}]),e}();return e.\u0275fac=function(n){return new(n||e)(m.Y36(d.Ng))},e.\u0275cmp=m.Xpm({type:e,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(e,n){1&e&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div",1),m.TgZ(4,"mat-form-field",2),m.TgZ(5,"mat-label"),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"mat-select",3),m.NdJ("valueChange",function(e){return n.preferredTablePageSize=e})("valueChange",function(){return n.updatePreferredTablePageSize()}),m.YNc(9,S,2,2,"mat-option",4),m.qZA(),m.qZA(),m.qZA()),2&e&&(m.xp6(1),m.Oqu(m.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),m.xp6(5),m.Oqu(m.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),m.xp6(2),m.Q6J("value",n.preferredTablePageSize),m.xp6(1),m.Q6J("ngForOf",n.tablePageSizeOptions))},directives:[v.KE,v.hX,h.gD,r.sg,Z.ey],pipes:[I.X$],styles:[""]}),e}(),b=t(71956),E=t(88426),T=t(48958),R=t(66297),x=t(43691),N=t(36922),U=t(21575),O=t(22196),_=function(){return{color:"black"}},y=function(){return["/myProfile"]};function M(e,n){if(1&e&&(m.TgZ(0,"div",1),m._UZ(1,"perun-web-apps-back-button"),m.TgZ(2,"div",2),m._UZ(3,"mat-icon",3),m.ALo(4,"translate"),m.TgZ(5,"div",4),m.TgZ(6,"div",5),m.TgZ(7,"a",6),m._uU(8),m.ALo(9,"userFullName"),m.qZA(),m.TgZ(10,"span",7),m._uU(11),m.qZA(),m.qZA(),m.TgZ(12,"span",8),m._uU(13),m.ALo(14,"translate"),m.ALo(15,"translate"),m.qZA(),m.qZA(),m.qZA(),m._UZ(16,"app-animated-router-outlet"),m.qZA()),2&e){var t=m.oxw();m.xp6(3),m.s9C("matTooltip",m.lcZ(4,8,"MENU_ITEMS.USER.ENTITY")),m.Q6J("ngStyle",m.DdM(16,_)),m.xp6(4),m.Q6J("routerLink",m.DdM(17,y)),m.xp6(1),m.hij(" ",m.lcZ(9,10,t.user)," "),m.xp6(3),m.hij(" \xa0#",t.user.id," "),m.xp6(2),m.lnq(" ",m.lcZ(14,12,"MENU_ITEMS.USER.ENTITY"),", ",m.lcZ(15,14,"MENU_ITEMS.USER.USER_TYPE"),": ",t.getUserType()," ")}}var w,q=function(){var e=function(){function e(n,t,r){i(this,e),this.sideMenuService=n,this.store=t,this.router=r}return s(e,[{key:"ngOnInit",value:function(){var e=this;this.path=this.router.url,this.router.events.subscribe(function(){e.path=e.router.url}),this.principal=this.store.getPerunPrincipal(),this.user=this.principal.user,this.sideMenuService.setUserItems([])}},{key:"getUserType",value:function(){return this.user.serviceUser?"Service":"Person"}}]),e}();return e.\u0275fac=function(n){return new(n||e)(m.Y36(T.D),m.Y36(E.d6),m.Y36(a.F0))},e.\u0275cmp=m.Xpm({type:e,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(e,n){1&e&&m.YNc(0,M,17,18,"div",0),2&e&&m.Q6J("ngIf",void 0!==n.user)},directives:[r.O5,R.W,x.Hw,N.gM,r.PC,a.yS,U.A],pipes:[I.X$,O.d],styles:[""]}),e}(),C=t(7233),L=[{path:"",component:q,children:[{path:"",component:b.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:p.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:o.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:u.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:C.t,data:{animation:"UserRolesPage"}},{path:"settings",component:c.L,children:[{path:"",component:l.x,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:f.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:A,data:{animation:"UserAppConfigurationPage"}}]}]}],Y=function(){var e=function e(){i(this,e)};return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=m.oAB({type:e}),e.\u0275inj=m.cJS({imports:[[a.Bz.forChild(L)],a.Bz]}),e}(),J=t(40084),P=t(80340),D=t(16073),F=t(25122),Q=t(45001),V=t(15980),k=t(58623),z=t(67033),B=t(55109),G=t(91010),j=t(29236),H=t(84608),W=t(71403),X=t(67806),$=t(45994),K=t(27521),ee=t(15812),ne=t(54810),te=t(27679),ie=t(73005),re=t(27439),se=t(70663),ae=t(88975),oe=t(10033),ue=t(8055),ce=t(4253),le=t(22727),pe=t(41050),fe=t(7423),ge=t(22280),de=t(28780),me=((w=function e(n){i(this,e),this.translate=n,n.addLangs(["en","cs"])}).\u0275fac=function(e){return new(e||w)(m.LFG(I.sK))},w.\u0275mod=m.oAB({type:w}),w.\u0275inj=m.cJS({imports:[[r.ez,Y,J.Bb,P.c,v.lN,D.UX,D.u5,x.Ps,F.SJ,Q.To,I.aw.forChild({}),V.ot,k.JX,z.p0,B.Nh,G.dp,V.ot,j.p9,H.Is,h.LD,W.ZX,X.Cq,$.Cv,N.AV,K.rP,ee.FA,Z.XK,ne.Fk,te.t,Z.si,ie.TU,re.QW,se.T5,ae._t,re.QW,oe.Hi,ue.Tx,ce.Cl,le.r,pe.g,f.ez,fe.r,ge.d4,de.m]]}),w)}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/363-es5.9c3a7cea17cb338ca650.js b/dist/apps/admin-gui/363-es5.9c3a7cea17cb338ca650.js new file mode 100644 index 000000000..e6c652bd7 --- /dev/null +++ b/dist/apps/admin-gui/363-es5.9c3a7cea17cb338ca650.js @@ -0,0 +1 @@ +!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||n(e)||function(){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 n(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}function t(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==i.return||i.return()}finally{if(u)throw a}}}}(e.vos);try{var s=function(){var n=i.value;e.memberService.getMemberByUser(n.id,e.userId).subscribe(function(t){e.groupService.getMemberGroups(t.id).subscribe(function(t){e.membersGroups=e.membersGroups.concat(t),e.vos.indexOf(n)===e.vos.length-1&&(e.memberRefresh=!1)})})};for(r.s();!(i=r.n()).done;)s()}catch(a){r.e(a)}finally{r.f()}0===t.length&&(e.memberRefresh=!1)})}}]),e}();return e.\u0275fac=function(n){return new(n||e)(c.Y36(o.Fv),c.Y36(o.uq),c.Y36(u.dB),c.Y36(o.ff),c.Y36(a.d6),c.Y36(l.gz))},e.\u0275cmp=c.Xpm({type:e,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(e,n){2&e&&c.ekj("router-component",n.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","groups","displayedColumns","disableMembers","filter","page",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"pageSize","groups","displayedColumns","disableMembers","filter","page"],[1,"mt-5"]],template:function(e,n){1&e&&(c.YNc(0,h,3,3,"h1",0),c.YNc(1,Z,3,3,"h1",0),c.TgZ(2,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return n.refreshMemberTable()}),c.qZA(),c.TgZ(3,"perun-web-apps-immediate-filter",2),c.NdJ("filter",function(e){return n.memberFilter(e)}),c.qZA(),c.YNc(4,I,1,0,"mat-spinner",3),c.YNc(5,A,1,6,"perun-web-apps-groups-list",4),c.YNc(6,R,8,6,"div",5)),2&e&&(c.Q6J("ngIf",n.showPrincipal),c.xp6(1),c.Q6J("ngIf",!n.showPrincipal),c.xp6(2),c.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),c.xp6(1),c.Q6J("ngIf",n.memberRefresh),c.xp6(1),c.Q6J("ngIf",!n.memberRefresh),c.xp6(1),c.Q6J("ngIf",!n.showPrincipal))},directives:[p.O5,f.t,g.L,d.$g,m.W],pipes:[v.X$],styles:[""]}),e}()},15879:function(e,n,t){"use strict";t.d(n,{j:function(){return E}});var r=t(33642),a=t(88426),o=t(60611),u=t(31572),c=t(57629),l=t(61511),p=t(59403),f=t(19139),g=t(67806),d=t(97162),m=t(48160);function v(e,n){1&e&&(u.TgZ(0,"h1",6),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function h(e,n){1&e&&(u.TgZ(0,"h1",6),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function Z(e,n){1&e&&u._UZ(0,"mat-spinner",7)}function I(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"perun-web-apps-vos-list",8),u.NdJ("page",function(e){return u.CHM(t),u.oxw().memberPageChanged(e)}),u.qZA()}if(2&e){var i=u.oxw();u.Q6J("displayedColumns",i.displayedColumns)("pageSize",i.memberPageSize)("filterValue",i.memberFilterValue)("vos",i.vosWhereIsMember)}}function S(e,n){1&e&&u._UZ(0,"mat-spinner",7)}function A(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"perun-web-apps-vos-list",8),u.NdJ("page",function(e){return u.CHM(t),u.oxw(2).adminPageChanged(e)}),u.qZA()}if(2&e){var i=u.oxw(2);u.Q6J("displayedColumns",i.displayedColumns)("pageSize",i.adminPageSize)("filterValue",i.adminFilterValue)("vos",i.vosWhereIsAdmin)}}function b(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"div",9),u.TgZ(1,"h1",6),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return u.CHM(t),u.oxw().refreshAdminTable()}),u.qZA(),u.TgZ(5,"perun-web-apps-immediate-filter",2),u.NdJ("filter",function(e){return u.CHM(t),u.oxw().applyAdminFilter(e)}),u.qZA(),u.YNc(6,S,1,0,"mat-spinner",3),u.YNc(7,A,1,4,"perun-web-apps-vos-list",4),u.qZA()}if(2&e){var i=u.oxw();u.xp6(2),u.Oqu(u.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),u.xp6(3),u.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),u.xp6(1),u.Q6J("ngIf",i.adminRefresh),u.xp6(1),u.Q6J("ngIf",!i.adminRefresh)}}var E=function(){var e=function(){function e(n,t,r,s,a){i(this,e),this.usersService=n,this.authResolver=t,this.tableConfigService=r,this.store=s,this.route=a,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=o.YF,this.memberTableId=o.gc}return s(e,[{key:"ngOnInit",value:function(){var e=this;this.adminPageSize=this.tableConfigService.getTablePageSize(this.adminTableId),this.memberPageSize=this.tableConfigService.getTablePageSize(this.memberTableId),!0===(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(function(n){return e.userId=n.userId}),this.refreshAdminTable(),this.refreshMemberTable()}},{key:"refreshMemberTable",value:function(){var e=this;this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(function(n){e.vosWhereIsMember=n,e.memberRefresh=!1},function(){return e.memberRefresh=!1})}},{key:"refreshAdminTable",value:function(){var e=this;this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(function(n){e.vosWhereIsAdmin=n,e.adminRefresh=!1},function(){return e.adminRefresh=!1})}},{key:"applyMemberFilter",value:function(e){this.memberFilterValue=e}},{key:"adminPageChanged",value:function(e){this.adminPageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.adminTableId,e.pageSize)}},{key:"memberPageChanged",value:function(e){this.memberPageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.memberTableId,e.pageSize)}},{key:"applyAdminFilter",value:function(e){this.adminFilterValue=e}}]),e}();return e.\u0275fac=function(n){return new(n||e)(u.Y36(r.Fv),u.Y36(a.x4),u.Y36(o.dB),u.Y36(a.d6),u.Y36(c.gz))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(e,n){2&e&&u.ekj("router-component",n.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","pageSize","filterValue","vos","page",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","pageSize","filterValue","vos","page"],[1,"mt-5"]],template:function(e,n){1&e&&(u.YNc(0,v,3,3,"h1",0),u.YNc(1,h,3,3,"h1",0),u.TgZ(2,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return n.refreshMemberTable()}),u.qZA(),u.TgZ(3,"perun-web-apps-immediate-filter",2),u.NdJ("filter",function(e){return n.applyMemberFilter(e)}),u.qZA(),u.YNc(4,Z,1,0,"mat-spinner",3),u.YNc(5,I,1,4,"perun-web-apps-vos-list",4),u.YNc(6,b,8,6,"div",5)),2&e&&(u.Q6J("ngIf",n.isMyProfile),u.xp6(1),u.Q6J("ngIf",!n.isMyProfile),u.xp6(2),u.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),u.xp6(1),u.Q6J("ngIf",n.memberRefresh),u.xp6(1),u.Q6J("ngIf",!n.memberRefresh),u.xp6(1),u.Q6J("ngIf",!n.isMyProfile))},directives:[l.O5,p.t,f.L,g.$g,d.Z],pipes:[m.X$],styles:[""]}),e}()},71956:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var r=t(33642),a=t(67033),o=t(88426),u=t(67004),c=t(84140),l=t(61189),p=t(31572),f=t(57629),g=t(84608),d=t(61511),m=t(8557),v=t(27439),h=t(15980),Z=t(43691),I=t(48160);function S(e,n){1&e&&p._UZ(0,"th",12)}function A(e,n){if(1&e&&(p.TgZ(0,"td",13),p._uU(1),p.qZA()),2&e){var t=n.$implicit;p.xp6(1),p.hij(" ",t.displayName,": ")}}function b(e,n){1&e&&p._UZ(0,"th",12)}function E(e,n){if(1&e){var t=p.EpF();p.TgZ(0,"td",14),p._uU(1),p.TgZ(2,"button",15),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).changeEmail()}),p.TgZ(3,"mat-icon"),p._uU(4,"edit"),p.qZA(),p.qZA(),p.qZA()}if(2&e){var i=n.$implicit;p.xp6(1),p.hij(" ",i.value," ")}}function T(e,n){1&e&&p._UZ(0,"tr",16)}function R(e,n){if(1&e&&(p.TgZ(0,"div",2),p.TgZ(1,"mat-card",3),p.TgZ(2,"mat-card-header"),p.TgZ(3,"mat-card-title"),p.TgZ(4,"h1",4),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(7,"mat-card-content"),p.TgZ(8,"table",5),p.ynx(9,6),p.YNc(10,S,1,0,"th",7),p.YNc(11,A,2,1,"td",8),p.BQk(),p.ynx(12,9),p.YNc(13,b,1,0,"th",7),p.YNc(14,E,5,1,"td",10),p.BQk(),p.YNc(15,T,1,0,"tr",11),p.qZA(),p.qZA(),p.qZA(),p.qZA()),2&e){var t=p.oxw();p.xp6(5),p.Oqu(p.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),p.xp6(3),p.Q6J("dataSource",t.mailDataSource),p.xp6(7),p.Q6J("matRowDefColumns",t.displayedColumns)}}var x=function(){var e=function(){function e(n,t,r,s,a){i(this,e),this.userService=n,this.attributeService=t,this.storeService=r,this.route=s,this.dialog=a,this.navItems=[],this.displayedColumns=["name","value"],this.inMyProfile=!1}return s(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(n){void 0!==n.userId?e.userService.getUserById(n.userId).subscribe(function(n){e.user=n,e.initNavItems()}):(e.inMyProfile=!0,e.userID=e.storeService.getPerunPrincipal().user.id,e.attributeService.getUserAttributeByName(e.userID,u.r.USER_DEF_PREFERRED_MAIL).subscribe(function(n){e.preferredMail=n,e.handleMailNotDefined(),e.mailDataSource=new a.by([e.preferredMail]),e.initNavItems()}))})}},{key:"initNavItems",value:function(){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-group",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-group",url:"roles",label:"MENU_ITEMS.USER.ROLES",style:"user-btn"},{cssIcon:"perun-settings2",url:"settings",label:"MENU_ITEMS.ADMIN.SETTINGS",style:"user-btn"})}},{key:"changeEmail",value:function(){var e=this,n=(0,c.kZ)();n.width="350px",n.data={userId:this.userID},this.dialog.open(l.gr,n).afterClosed().subscribe(function(n){n&&e.attributeService.getUserAttributeByName(e.userID,u.r.USER_DEF_PREFERRED_MAIL).subscribe(function(n){e.preferredMail=n,e.handleMailNotDefined(),e.mailDataSource=new a.by([e.preferredMail])})})}},{key:"handleMailNotDefined",value:function(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,c.Cz)(u.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:Object("-")})}}]),e}();return e.\u0275fac=function(n){return new(n||e)(p.Y36(r.Fv),p.Y36(r.H8),p.Y36(o.d6),p.Y36(f.gz),p.Y36(g.uw))},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(e,n){2&e&&p.ekj("router-component",n.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(e,n){1&e&&(p.YNc(0,R,16,5,"div",0),p._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&e&&(p.Q6J("ngIf",n.inMyProfile),p.xp6(1),p.Q6J("items",n.navItems)("size","small"))},directives:[d.O5,m.L,v.a8,v.dk,v.n5,v.dn,a.BZ,a.w1,a.fO,a.Dz,a.nj,a.ge,a.ev,h.lW,Z.Hw,a.Gk],pipes:[I.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),e}()},7233:function(n,t,r){"use strict";r.d(t,{t:function(){return Fe}});var a=r(33642),o=r(88426),u=r(31572),c=r(57629),l=r(61511),p=r(67806),f=r(45001),g=r(43691),d=r(27439),m=r(97162),v=r(86593),h=r(78364),Z=r(88884),I=r(60007),S=r(4252),A=r(48160);function b(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function E(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function T(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SELF_VOS_ADMIN")," "))}function R(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SELF_VOS")," "))}function x(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SELF_IDENTITIES_ADMIN")," "))}function N(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SELF_IDENTITIES")," "))}var U=function(){return["user","id","name"]};function O(e,n){if(1&e&&(u.TgZ(0,"div",11),u.YNc(1,x,3,3,"div",2),u.YNc(2,N,3,3,"div",2),u._UZ(3,"app-users-list",12),u.qZA()),2&e){var t=u.oxw(4);u.xp6(1),u.Q6J("ngIf",!t.showDescription),u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("users",t.users)("disableRouting",!0)("displayedColumns",u.DdM(5,U))}}var _=function(){return["id","name","shortName"]};function y(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,T,3,3,"div",2),u.YNc(2,R,3,3,"div",2),u._UZ(3,"perun-web-apps-vos-list",9),u.YNc(4,O,4,6,"div",10),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",!t.showDescription),u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(5,_))("vos",t.vos),u.xp6(1),u.Q6J("ngIf",t.users.length)}}function M(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getSelfData()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,E,1,0,"mat-spinner",1),u.YNc(8,y,5,6,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.SELF")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function w(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function q(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.GROUPADMIN_GROUPS")," "))}var C=function(){return["id","vo","name","description"]};function L(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,q,3,3,"div",2),u._UZ(2,"perun-web-apps-groups-list",14),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("groups",t.groups)("displayedColumns",u.DdM(3,C))}}function Y(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getAdminGroupsAndVos()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",13),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,w,1,0,"mat-spinner",1),u.YNc(8,L,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.GROUPADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function J(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function P(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.GROUPOBSERVER_GROUPS")," "))}var D=function(){return["id","recent","vo","name","description"]};function F(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,P,3,3,"div",2),u._UZ(2,"perun-web-apps-groups-list",14),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("groups",t.groups)("displayedColumns",u.DdM(3,D))}}function Q(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getGroupsAndVos("GROUPOBSERVER")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",13),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,J,1,0,"mat-spinner",1),u.YNc(8,F,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.GROUPOBSERVER")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function V(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function k(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.VOADMIN_VOS")," "))}function z(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,k,3,3,"div",2),u._UZ(2,"perun-web-apps-vos-list",9),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,_))("vos",t.vos)}}function B(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getAdminVos()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",15),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,V,1,0,"mat-spinner",1),u.YNc(8,z,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.VOADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function G(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function j(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.VOOBSERVER_VOS")," "))}function H(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,j,3,3,"div",2),u._UZ(2,"perun-web-apps-vos-list",9),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,_))("vos",t.vos)}}function W(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){u.CHM(t);var e=u.oxw(2);return e.getVos(e.roles.get("VOOBSERVER").get("Vo"))}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",15),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,G,1,0,"mat-spinner",1),u.YNc(8,H,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.VOOBSERVER")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function X(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function $(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.TRUSTEDFACILITYADMIN_VOS")," "))}function K(e,n){if(1&e&&(u.TgZ(0,"div"),u.TgZ(1,"div"),u.YNc(2,$,3,3,"div",2),u._UZ(3,"perun-web-apps-vos-list",9),u.qZA(),u.qZA()),2&e){var t=u.oxw(3);u.xp6(2),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,_))("vos",t.vos)}}function ee(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){u.CHM(t);var e=u.oxw(2);return e.getVos(e.roles.get("TRUSTEDFACILITYADMIN").get("Vo"))}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",15),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,X,1,0,"mat-spinner",1),u.YNc(8,K,4,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.TRUSTEDFACILITYADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function ne(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function te(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.TOPGROUPCREATOR_VOS")," "))}function ie(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,te,3,3,"div",2),u._UZ(2,"perun-web-apps-vos-list",9),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,_))("vos",t.vos)}}function re(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){u.CHM(t);var e=u.oxw(2);return e.getVos(e.roles.get("TOPGROUPCREATOR").get("Vo"))}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",15),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,ne,1,0,"mat-spinner",1),u.YNc(8,ie,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.TOPGROUPCREATOR")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function se(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function ae(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.RESOURCEADMIN_RESOURCES")," "))}var oe=function(){return["id","name","vo","facility","description"]};function ue(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,ae,3,3,"div",2),u._UZ(2,"perun-web-apps-resources-list",17),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("resources",t.resources)("routingVo",!0)("displayedColumns",u.DdM(4,oe))}}function ce(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getResourcesData("RESOURCEADMIN")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",16),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,se,1,0,"mat-spinner",1),u.YNc(8,ue,3,5,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.RESOURCEADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function le(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function pe(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.RESOURCEOBSERVER_RESOURCES")," "))}function fe(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,pe,3,3,"div",2),u._UZ(2,"perun-web-apps-resources-list",17),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("resources",t.resources)("routingVo",!0)("displayedColumns",u.DdM(4,oe))}}function ge(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getResourcesData("RESOURCEOBSERVER")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",16),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,le,1,0,"mat-spinner",1),u.YNc(8,fe,3,5,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.RESOURCEOBSERVER")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function de(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function me(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.RESOURCESELFSERVICE_RESOURCES")," "))}function ve(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,me,3,3,"div",2),u._UZ(2,"perun-web-apps-resources-list",17),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("resources",t.resources)("routingVo",!0)("displayedColumns",u.DdM(4,oe))}}function he(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getResourcesData("RESOURCESELFSERVICE")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",16),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,de,1,0,"mat-spinner",1),u.YNc(8,ve,3,5,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.RESOURCESELFSERVICE")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function Ze(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function Ie(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.FACILITYADMIN_FACILITIES")," "))}var Se=function(){return["id","name","description"]};function Ae(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,Ie,3,3,"div",2),u._UZ(2,"perun-web-apps-facilities-list",19),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,Se))("facilities",t.facilities)}}function be(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getAdminFacilities()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",18),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,Ze,1,0,"mat-spinner",1),u.YNc(8,Ae,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.FACILITYADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function Ee(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function Te(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.FACILITYOBSERVER_FACILITIES")," "))}function Re(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,Te,3,3,"div",2),u._UZ(2,"perun-web-apps-facilities-list",19),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,Se))("facilities",t.facilities)}}function xe(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getFacilities("FACILITYOBSERVER")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",18),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,Ee,1,0,"mat-spinner",1),u.YNc(8,Re,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.FACILITYOBSERVER")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function Ne(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function Ue(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SPONSORSHIP_MEMBERS")," "))}var Oe=function(){return["id","fullName","sponsored"]};function _e(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,Ue,3,3,"div",2),u._UZ(2,"perun-web-apps-members-list",20),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("members",t.members)("displayedColumns",u.DdM(3,Oe))}}function ye(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(t),u.oxw(2).getMembers()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,Ne,1,0,"mat-spinner",1),u.YNc(8,_e,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.SPONSORSHIP")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function Me(e,n){1&e&&u._UZ(0,"mat-spinner",3)}function we(e,n){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SPONSOR_VOS")," "))}function qe(e,n){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,we,3,3,"div",2),u._UZ(2,"perun-web-apps-vos-list",9),u.qZA()),2&e){var t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,_))("vos",t.vos)}}function Ce(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){u.CHM(t);var e=u.oxw(2);return e.getVos(e.roles.get("SPONSOR").get("Vo"))}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,Me,1,0,"mat-spinner",1),u.YNc(8,qe,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.SPONSOR")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function Le(e,n){1&e&&(u.TgZ(0,"mat-expansion-panel"),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.xp6(5),u.Oqu(u.lcZ(6,1,"ROLES.PERUN_ADMIN")))}function Ye(e,n){1&e&&(u.TgZ(0,"mat-expansion-panel"),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.xp6(5),u.Oqu(u.lcZ(6,1,"ROLES.PERUN_OBSERVER")))}function Je(e,n){if(1&e&&(u.TgZ(0,"p",22),u._uU(1),u.qZA()),2&e){var t=n.$implicit;u.xp6(1),u.AsE("",t[0]," ids: ",t[1],"")}}function Pe(e,n){if(1&e){var t=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){var e=u.CHM(t).$implicit;return u.oxw(2).getInnerKeys(e)}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.qZA(),u.qZA(),u.qZA(),u.YNc(6,Je,2,2,"p",21),u.qZA()}if(2&e){var i=n.$implicit,r=u.oxw(2);u.xp6(5),u.Oqu(i),u.xp6(1),u.Q6J("ngForOf",r.currentIds)}}function De(e,n){if(1&e&&(u.TgZ(0,"mat-accordion"),u.YNc(1,M,9,5,"mat-expansion-panel",4),u.YNc(2,Y,9,5,"mat-expansion-panel",4),u.YNc(3,Q,9,5,"mat-expansion-panel",4),u.YNc(4,B,9,5,"mat-expansion-panel",4),u.YNc(5,W,9,5,"mat-expansion-panel",4),u.YNc(6,ee,9,5,"mat-expansion-panel",4),u.YNc(7,re,9,5,"mat-expansion-panel",4),u.YNc(8,ce,9,5,"mat-expansion-panel",4),u.YNc(9,ge,9,5,"mat-expansion-panel",4),u.YNc(10,he,9,5,"mat-expansion-panel",4),u.YNc(11,be,9,5,"mat-expansion-panel",4),u.YNc(12,xe,9,5,"mat-expansion-panel",4),u.YNc(13,ye,9,5,"mat-expansion-panel",4),u.YNc(14,Ce,9,5,"mat-expansion-panel",4),u.YNc(15,Le,7,3,"mat-expansion-panel",2),u.YNc(16,Ye,7,3,"mat-expansion-panel",2),u.YNc(17,Pe,7,2,"mat-expansion-panel",5),u.qZA()),2&e){var t=u.oxw();u.xp6(1),u.Q6J("ngIf",t.isSelf),u.xp6(1),u.Q6J("ngIf",t.isGroupAdmin),u.xp6(1),u.Q6J("ngIf",t.isGroupObserver),u.xp6(1),u.Q6J("ngIf",t.isVoAdmin),u.xp6(1),u.Q6J("ngIf",t.isVoObserver),u.xp6(1),u.Q6J("ngIf",t.isTrustedFacilityAdmin),u.xp6(1),u.Q6J("ngIf",t.isTopGroupCreator),u.xp6(1),u.Q6J("ngIf",t.isResourceAdmin),u.xp6(1),u.Q6J("ngIf",t.isResourceObserver),u.xp6(1),u.Q6J("ngIf",t.isResourceSelfService),u.xp6(1),u.Q6J("ngIf",t.isFacilityAdmin),u.xp6(1),u.Q6J("ngIf",t.isFacilityObserver),u.xp6(1),u.Q6J("ngIf",t.hasSponsorship),u.xp6(1),u.Q6J("ngIf",t.isSponsor),u.xp6(1),u.Q6J("ngIf",t.isPerunAdmin),u.xp6(1),u.Q6J("ngIf",t.isPerunObserver),u.xp6(1),u.Q6J("ngForOf",t.roleNames)}}var Fe=function(){var n=function(){function n(e,t,r,s,a,o,u,c,l){i(this,n),this.authzResolverService=e,this.usersManagerService=t,this.vosManagerService=r,this.facilitiesManagerService=s,this.resourcesManagerService=a,this.membersManagerService=o,this.groupsManagerService=u,this.route=c,this.store=l,this.currentIds=[],this.roles=new Map,this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSORSHIP","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER"],this.roleNames=[],this.groups=[],this.vos=[],this.facilities=[],this.users=[],this.resources=[],this.members=[]}return s(n,[{key:"ngOnInit",value:function(){var e=this;this.outerLoading=!0,this.route.parent.params.subscribe(function(n){n.userId?(e.userId=n.userId,e.authzResolverService.getUserRoleNames(e.userId).subscribe(function(n){e.roleNames=n.map(function(e){return e.toUpperCase()}),e.authzResolverService.getUserRoles(e.userId).subscribe(function(n){e.prepareRoles(n)})})):(e.showDescription=!0,e.principal=e.store.getPerunPrincipal(),e.userId=e.principal.userId,e.roleNames=Object.keys(e.principal.roles),e.prepareRoles(e.principal.roles))})}},{key:"prepareRoles",value:function(e){var n=this;this.roleNames.forEach(function(t){var i=new Map;switch(Object.keys(e[t]).forEach(function(n){i.set(n,e[t][n])}),t){case"SELF":n.isSelf=!0;break;case"GROUPADMIN":n.isGroupAdmin=!0;break;case"VOADMIN":n.isVoAdmin=!0;break;case"RESOURCEADMIN":n.isResourceAdmin=!0;break;case"FACILITYADMIN":n.isFacilityAdmin=!0;break;case"TOPGROUPCREATOR":n.isTopGroupCreator=!0;break;case"SPONSORSHIP":n.hasSponsorship=!0;break;case"SPONSOR":n.isSponsor=!0;break;case"RESOURCESELFSERVICE":n.isResourceSelfService=!0;break;case"VOOBSERVER":n.isVoObserver=!0;break;case"RESOURCEOBSERVER":n.isResourceObserver=!0;break;case"GROUPOBSERVER":n.isGroupObserver=!0;break;case"TRUSTEDFACILITYADMIN":n.isTrustedFacilityAdmin=!0;break;case"FACILITYOBSERVER":n.isFacilityObserver=!0;break;case"PERUNADMIN":n.isPerunAdmin=!0;break;case"PERUNOBSERVER":n.isPerunObserver=!0}n.roles.set(t,i)}),this.roleNames=this.roleNames.filter(function(e){return!n.roleFilter.includes(e)}),this.outerLoading=!1}},{key:"getAdminGroupsAndVos",value:function(){var n=this;this.loading=!0,this.groups=[],this.usersManagerService.getGroupsWhereUserIsAdmin(this.userId).subscribe(function(t){n.groups=t;var i=e(new Set(n.groups.map(function(e){return e.voId})));n.getVos(i)})}},{key:"getVos",value:function(e){var n=this;this.loading=!0,this.vos=[],this.vosManagerService.getVosByIds(e).subscribe(function(e){n.vos=e,n.loading=!1})}},{key:"getInnerKeys",value:function(e){if(this.roles.get(e)){for(var n=this.roles.get(e).entries(),t=[],i=n.next().value;i;)t.push(i),i=n.next().value;this.currentIds=t}else this.currentIds=[]}},{key:"getAdminVos",value:function(){var e=this;this.loading=!0,this.vos=[],this.usersManagerService.getVosWhereUserIsAdmin(this.userId).subscribe(function(n){e.vos=n,e.loading=!1})}},{key:"getAdminFacilities",value:function(){var e=this;this.loading=!0,this.facilities=[],this.facilitiesManagerService.getFacilitiesWhereUserIsAdmin(this.userId).subscribe(function(n){e.facilities=n.map(function(e){return{facility:e}}),e.loading=!1})}},{key:"getSelfData",value:function(){var e=this;this.loading=!0,this.vos=[],this.users=[],this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(function(n){e.vos=n;var t=e.roles.get("SELF").get("User");t?e.usersManagerService.getUsersByIds(t).subscribe(function(n){e.users=n,e.loading=!1}):e.loading=!1})}},{key:"getResourcesData",value:function(e){var n=this;this.loading=!0;var t=this.roles.get(e).get("Resource");this.vos=[],this.facilities=[],this.resources=[],this.resourcesManagerService.getRichResourcesByIds(t).subscribe(function(e){n.resources=e,n.vos=n.resources.map(function(e){return e.vo}).filter(function(e,n,t){return t.indexOf(e)===n}),n.facilities=n.resources.map(function(e){return{facility:e.facility}}).filter(function(e,n,t){return t.indexOf(e)===n}),n.loading=!1})}},{key:"getMembers",value:function(){var e=this;this.loading=!0;var n=this.roles.get("SPONSORSHIP").get("Member");this.members=[],this.membersManagerService.getRichMembersByIds(n).subscribe(function(n){e.members=n,e.loading=!1})}},{key:"getGroupsAndVos",value:function(e){var n=this;this.loading=!0;var t=this.roles.get(e).get("Vo"),i=this.roles.get(e).get("Group");this.vos=[],this.groups=[],this.groupsManagerService.getGroupsByIds(i).subscribe(function(e){n.groups=e,n.vosManagerService.getVosByIds(t).subscribe(function(e){n.vos=e,n.loading=!1})})}},{key:"getFacilities",value:function(e){var n=this;this.loading=!0,this.facilities=[];var t=this.roles.get(e).get("Facility");this.facilitiesManagerService.getFacilitiesByIds(t).subscribe(function(e){n.facilities=e.map(function(e){return{facility:e}}),n.loading=!1})}}]),n}();return n.\u0275fac=function(e){return new(e||n)(u.Y36(a.Ct),u.Y36(a.Fv),u.Y36(a.YF),u.Y36(a.IQ),u.Y36(a.xk),u.Y36(a.uq),u.Y36(a.ff),u.Y36(c.gz),u.Y36(o.d6))},n.\u0275cmp=u.Xpm({type:n,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(e,n){2&e&&u.ekj("router-component",n.true)},decls:5,vars:5,consts:[[1,"page-subtitle","d-flex"],["class","ml-auto mr-auto",4,"ngIf"],[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","vos"],["class","mt-5",4,"ngIf"],[1,"mt-5"],[3,"users","disableRouting","displayedColumns"],["mat-card-avatar","","svgIcon","perun-group-black",1,"mr-2"],[3,"groups","displayedColumns"],["mat-card-avatar","","svgIcon","perun-vo-black",1,"mr-2"],["mat-card-avatar","","svgIcon","perun-resource-black",1,"mr-2"],[3,"resources","routingVo","displayedColumns"],["mat-card-avatar","","svgIcon","perun-facility-black",1,"mr-2"],[3,"displayedColumns","facilities"],[3,"members","displayedColumns"],["class","role-content",4,"ngFor","ngForOf"],[1,"role-content"]],template:function(e,n){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.YNc(3,b,1,0,"mat-spinner",1),u.YNc(4,De,18,17,"mat-accordion",2)),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,3,"ROLES.TITLE")),u.xp6(2),u.Q6J("ngIf",n.outerLoading),u.xp6(1),u.Q6J("ngIf",!n.outerLoading))},directives:[l.O5,p.$g,f.pp,l.sg,f.ib,f.yz,f.yK,g.Hw,d.kc,m.Z,v.C,h.W,Z.C,I.X,S.O],pipes:[A.X$],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),n}()},68787:function(e,n,t){"use strict";t.d(n,{x:function(){return g}});var r=t(33642),a=t(31572),o=t(57629),u=t(61511),c=t(67806),l=t(8557);function p(e,n){1&e&&a._UZ(0,"mat-spinner",2)}function f(e,n){if(1&e&&(a.TgZ(0,"div"),a._UZ(1,"perun-web-apps-menu-buttons-field",3),a.qZA()),2&e){var t=a.oxw();a.xp6(1),a.Q6J("items",t.navItems)("size","small")}}var g=function(){var e=function(){function e(n,t){i(this,e),this.route=n,this.userManager=t,this.navItems=[],this.loading=!1}return s(e,[{key:"ngOnInit",value:function(){var e=this;window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(function(n){e.userManager.getUserById(n.userId).subscribe(function(n){e.isServiceUser=n.serviceUser,e.initNavItems(),e.loading=!1},function(){return e.loading=!1})})):this.initNavItems()}},{key:"initNavItems",value:function(){this.navItems=[],window.location.pathname.startsWith("/admin")?this.navItems.push(this.isServiceUser?{cssIcon:"perun-service-identity",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}:{cssIcon:"perun-service-identity",url:"service-identities",label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",style:"user-btn"}):this.navItems.push({cssIcon:"perun-settings2",url:"passwordReset",label:"MENU_ITEMS.USER.PASSWORD_RESET",style:"user-btn"},{cssIcon:"perun-settings2",url:"guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}]),e}();return e.\u0275fac=function(n){return new(n||e)(a.Y36(o.gz),a.Y36(r.Fv))},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(e,n){2&e&&a.ekj("router-component",n.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,n){1&e&&(a.YNc(0,p,1,0,"mat-spinner",0),a.YNc(1,f,2,2,"div",1)),2&e&&(a.Q6J("ngIf",n.loading),a.xp6(1),a.Q6J("ngIf",!n.loading))},directives:[u.O5,c.$g,l.L],styles:[""]}),e}()},40790:function(e,n,t){"use strict";t.d(n,{L:function(){return a}});var r=t(31572),s=t(21575),a=function(){var e=function e(){i(this,e)};return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(e,n){2&e&&r.ekj("router-component",n.true)},decls:1,vars:0,template:function(e,n){1&e&&r._UZ(0,"app-animated-router-outlet")},directives:[s.A],styles:[""]}),e}()},6363:function(e,n,t){"use strict";t.r(n),t.d(n,{UsersModule:function(){return me}});var r=t(61511),a=t(57629),o=t(15879),u=t(31612),c=t(40790),l=t(68787),p=t(95690),f=t(41939),g=t(84140),d=t(13857),m=t(31572),v=t(66283),h=t(4786),Z=t(71522),I=t(48160);function S(e,n){if(1&e&&(m.TgZ(0,"mat-option",5),m._uU(1),m.qZA()),2&e){var t=n.$implicit;m.Q6J("value",t),m.xp6(1),m.hij(" ",t," ")}}var A=function(){var e=function(){function e(n){i(this,e),this.guiConfigService=n,this.tablePageSizeOptions=g.f7}return s(e,[{key:"ngOnInit",value:function(){this.preferredTablePageSize=this.guiConfigService.getNumber(d.Rc)}},{key:"updatePreferredTablePageSize",value:function(){this.guiConfigService.setNumber(d.Rc,this.preferredTablePageSize)}}]),e}();return e.\u0275fac=function(n){return new(n||e)(m.Y36(d.Ng))},e.\u0275cmp=m.Xpm({type:e,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(e,n){1&e&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div",1),m.TgZ(4,"mat-form-field",2),m.TgZ(5,"mat-label"),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"mat-select",3),m.NdJ("valueChange",function(e){return n.preferredTablePageSize=e})("valueChange",function(){return n.updatePreferredTablePageSize()}),m.YNc(9,S,2,2,"mat-option",4),m.qZA(),m.qZA(),m.qZA()),2&e&&(m.xp6(1),m.Oqu(m.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),m.xp6(5),m.Oqu(m.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),m.xp6(2),m.Q6J("value",n.preferredTablePageSize),m.xp6(1),m.Q6J("ngForOf",n.tablePageSizeOptions))},directives:[v.KE,v.hX,h.gD,r.sg,Z.ey],pipes:[I.X$],styles:[""]}),e}(),b=t(71956),E=t(88426),T=t(48958),R=t(66297),x=t(43691),N=t(36922),U=t(21575),O=t(22196),_=function(){return{color:"black"}},y=function(){return["/myProfile"]};function M(e,n){if(1&e&&(m.TgZ(0,"div",1),m._UZ(1,"perun-web-apps-back-button"),m.TgZ(2,"div",2),m._UZ(3,"mat-icon",3),m.ALo(4,"translate"),m.TgZ(5,"div",4),m.TgZ(6,"div",5),m.TgZ(7,"a",6),m._uU(8),m.ALo(9,"userFullName"),m.qZA(),m.TgZ(10,"span",7),m._uU(11),m.qZA(),m.qZA(),m.TgZ(12,"span",8),m._uU(13),m.ALo(14,"translate"),m.ALo(15,"translate"),m.qZA(),m.qZA(),m.qZA(),m._UZ(16,"app-animated-router-outlet"),m.qZA()),2&e){var t=m.oxw();m.xp6(3),m.s9C("matTooltip",m.lcZ(4,8,"MENU_ITEMS.USER.ENTITY")),m.Q6J("ngStyle",m.DdM(16,_)),m.xp6(4),m.Q6J("routerLink",m.DdM(17,y)),m.xp6(1),m.hij(" ",m.lcZ(9,10,t.user)," "),m.xp6(3),m.hij(" \xa0#",t.user.id," "),m.xp6(2),m.lnq(" ",m.lcZ(14,12,"MENU_ITEMS.USER.ENTITY"),", ",m.lcZ(15,14,"MENU_ITEMS.USER.USER_TYPE"),": ",t.getUserType()," ")}}var w,q=function(){var e=function(){function e(n,t,r){i(this,e),this.sideMenuService=n,this.store=t,this.router=r}return s(e,[{key:"ngOnInit",value:function(){var e=this;this.path=this.router.url,this.router.events.subscribe(function(){e.path=e.router.url}),this.principal=this.store.getPerunPrincipal(),this.user=this.principal.user,this.sideMenuService.setUserItems([])}},{key:"getUserType",value:function(){return this.user.serviceUser?"Service":"Person"}}]),e}();return e.\u0275fac=function(n){return new(n||e)(m.Y36(T.D),m.Y36(E.d6),m.Y36(a.F0))},e.\u0275cmp=m.Xpm({type:e,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(e,n){1&e&&m.YNc(0,M,17,18,"div",0),2&e&&m.Q6J("ngIf",void 0!==n.user)},directives:[r.O5,R.W,x.Hw,N.gM,r.PC,a.yS,U.A],pipes:[I.X$,O.d],styles:[""]}),e}(),C=t(7233),L=[{path:"",component:q,children:[{path:"",component:b.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:p.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:o.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:u.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:C.t,data:{animation:"UserRolesPage"}},{path:"settings",component:c.L,children:[{path:"",component:l.x,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:f.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:A,data:{animation:"UserAppConfigurationPage"}}]}]}],Y=function(){var e=function e(){i(this,e)};return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=m.oAB({type:e}),e.\u0275inj=m.cJS({imports:[[a.Bz.forChild(L)],a.Bz]}),e}(),J=t(40084),P=t(80340),D=t(16073),F=t(25122),Q=t(45001),V=t(15980),k=t(58623),z=t(67033),B=t(55109),G=t(91010),j=t(29236),H=t(84608),W=t(71403),X=t(67806),$=t(45994),K=t(27521),ee=t(15812),ne=t(54810),te=t(27679),ie=t(73005),re=t(27439),se=t(70663),ae=t(88975),oe=t(10033),ue=t(8055),ce=t(4253),le=t(22727),pe=t(41050),fe=t(7423),ge=t(22280),de=t(28780),me=((w=function e(n){i(this,e),this.translate=n,n.addLangs(["en","cs"])}).\u0275fac=function(e){return new(e||w)(m.LFG(I.sK))},w.\u0275mod=m.oAB({type:w}),w.\u0275inj=m.cJS({imports:[[r.ez,Y,J.Bb,P.c,v.lN,D.UX,D.u5,x.Ps,F.SJ,Q.To,I.aw.forChild({}),V.ot,k.JX,z.p0,B.Nh,G.dp,V.ot,j.p9,H.Is,h.LD,W.ZX,X.Cq,$.Cv,N.AV,K.rP,ee.FA,Z.XK,ne.Fk,te.t,Z.si,ie.TU,re.QW,se.T5,ae._t,re.QW,oe.Hi,ue.Tx,ce.Cl,le.r,pe.g,f.ez,fe.r,ge.d4,de.m]]}),w)}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/427-es2015.1c911b592f126adfd085.js b/dist/apps/admin-gui/427-es2015.1c911b592f126adfd085.js new file mode 100644 index 000000000..c20b3f90f --- /dev/null +++ b/dist/apps/admin-gui/427-es2015.1c911b592f126adfd085.js @@ -0,0 +1 @@ +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[427],{67427:function(t,e,i){"use strict";i.r(e),i.d(e,{VosModule:function(){return ql}});var o=i(61511),a=i(57629),s=i(17249),n=i(75585),r=i(17),l=i(33642),c=i(84140),u=i(88426),p=i(67004),d=i(61189),g=i(43491),h=i(31572),m=i(48958),A=i(84608),I=i(66297),T=i(67806),f=i(43691),E=i(36922),Z=i(21575),b=i(15980),_=i(48160),S=i(44385),N=i(52984),O=i(51392);function v(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function x(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",13),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).editGroup()}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function C(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",14),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).deleteGroup()}),h.TgZ(1,"mat-icon"),h._uU(2,"delete_forever"),h.qZA(),h.qZA()}}function L(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",17),h.NdJ("click",function(){return h.CHM(t),h.oxw(3).onSyncDetail()}),h.ALo(1,"groupSyncIcon"),h.TgZ(2,"mat-icon"),h.ALo(3,"groupSyncIconColor"),h._uU(4),h.ALo(5,"groupSyncIcon"),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(3);h.Q6J("disabled","sync_disabled"===h.lcZ(1,5,t.group)),h.xp6(2),h.Tol(h.lcZ(3,7,t.group)),h.xp6(2),h.hij(" ",h.lcZ(5,9,t.group)," ")}}function R(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"span",15),h.ALo(4,"translate"),h.ALo(5,"groupSyncToolTip"),h.YNc(6,L,6,11,"button",16),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.hij(" , ",h.lcZ(2,4,"GROUP_DETAIL.SYNCHRONIZATION"),": "),h.xp6(2),h.Q6J("matTooltipPosition","above")("matTooltip",h.lcZ(4,6,h.lcZ(5,8,t.group))),h.xp6(3),h.Q6J("ngIf",t.syncAuth)}}const M=function(){return{color:"black"}},D=function(t,e){return["/organizations",t,"groups",e]},U=function(t){return["/organizations",t]};function q(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",4),h._UZ(2,"mat-icon",5),h.ALo(3,"translate"),h.TgZ(4,"div",6),h.TgZ(5,"div",7),h.TgZ(6,"a",8),h._uU(7),h.qZA(),h.TgZ(8,"span",9),h._uU(9),h.qZA(),h.YNc(10,x,3,0,"button",10),h.YNc(11,C,3,0,"button",11),h.qZA(),h.TgZ(12,"div"),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"span",12),h._uU(16),h.ALo(17,"translate"),h.ALo(18,"translate"),h.TgZ(19,"a",8),h._uU(20),h.qZA(),h._uU(21),h.ALo(22,"translate"),h.YNc(23,R,7,10,"span",2),h.qZA(),h.qZA(),h.qZA(),h._UZ(24,"app-animated-router-outlet"),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.s9C("matTooltip",h.lcZ(3,16,"GROUP_DETAIL.ENTITY")),h.Q6J("ngStyle",h.DdM(26,M)),h.xp6(4),h.Q6J("routerLink",h.WLB(27,D,t.vo.id,t.group.id)),h.xp6(1),h.hij(" ",t.group.shortName," "),h.xp6(2),h.hij(" \xa0#",t.group.id," "),h.xp6(1),h.Q6J("ngIf","members"!==t.group.name&&t.editAuth),h.xp6(1),h.Q6J("ngIf","members"!==t.group.name&&t.deleteAuth),h.xp6(2),h.AsE(" ",h.lcZ(14,18,"GROUP_DETAIL.UUID"),": ",t.group.uuid," "),h.xp6(3),h.AsE(" ",h.lcZ(17,20,"GROUP_DETAIL.ENTITY"),", ",h.lcZ(18,22,"GROUP_DETAIL.VO_NAME"),": "),h.xp6(3),h.Q6J("routerLink",h.VKq(30,U,t.vo.id)),h.xp6(1),h.Oqu(t.vo.name),h.xp6(1),h.AsE(", ",h.lcZ(22,24,"GROUP_DETAIL.DESCRIPTION"),": ",t.group.description," "),h.xp6(2),h.Q6J("ngIf",t.syncEnabled)}}let w=(()=>{class t{constructor(t,e,i,o,a,s,n,r){this.sideMenuService=t,this.voService=e,this.route=i,this.sideMenuItemService=o,this.groupService=a,this.dialog=s,this.guiAuthResolver=n,this.router=r,this.editAuth=!1,this.deleteAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[p.r.GROUP_SYNC_ENABLED,p.r.GROUP_LAST_SYNC_STATE,p.r.GROUP_LAST_SYNC_TIMESTAMP,p.r.GROUP_STRUCTURE_SYNC_ENABLED,p.r.GROUP_LAST_STRUCTURE_SYNC_STATE,p.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{const e=t.groupId;this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.groupService.getGroupById(e).subscribe(i=>{this.group=i,(0,c.sF)("groups",this.group),(0,c.XI)(this.group),this.guiAuthResolver.isAuthorized("getRichGroupByIdWithAttributesByNames_int_List_policy",[this.group])?this.groupService.getRichGroupByIdWithAttributesByNames(e,this.attrNames).subscribe(t=>{this.group=t,this.syncEnabled=this.isSynchronized(),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]);const o=this.sideMenuItemService.parseVo(t),a=this.sideMenuItemService.parseGroup(i);this.sideMenuService.setAccessMenuItems([o,a]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}isSynchronized(){return this.group.attributes.some(t=>"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString())}onSyncDetail(){const t=(0,c.kZ)();t.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(d.Bp,t)}editGroup(){const t=(0,c.kZ)();t.width="450px",t.data={theme:"group-theme",group:this.group,dialogType:d.Eg.GROUP},this.dialog.open(d.rd,t).afterClosed().subscribe(t=>{t&&this.groupService.getGroupById(this.group.id).subscribe(t=>{this.group=t})})}deleteGroup(){const t=(0,c.kZ)();t.width="500px",t.data={theme:"group-theme",groups:[this.group]},this.dialog.open(g.P,t).afterClosed().subscribe(t=>{t&&this.router.navigate(["../"],{relativeTo:this.route})})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(a.gz),h.Y36(n.V),h.Y36(l.ff),h.Y36(A.uw),h.Y36(u.x4),h.Y36(a.F0))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-detail-page"]],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"],["mat-icon-button","","aria-label","Edit group",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","aria-label","Edit group",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(t,e){1&t&&(h.TgZ(0,"div",0),h._UZ(1,"perun-web-apps-back-button"),h.YNc(2,v,1,0,"mat-spinner",1),h.YNc(3,q,25,32,"div",2),h.qZA()),2&t&&(h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.group))},directives:[I.W,o.O5,T.$g,f.Hw,E.gM,o.PC,a.yS,Z.A,b.lW],pipes:[_.X$,S.r,N.J,O.F],styles:[""],data:{animation:[r.Ji]}}),t})();function P(t,e){1&t&&h._UZ(0,"mat-spinner",3)}const G=function(t){return["/admin","users",t]};function y(t,e){if(1&t&&(h.TgZ(0,"a",8),h._uU(1),h.qZA()),2&t){const t=h.oxw(2);h.Q6J("routerLink",h.VKq(2,G,t.member.userId)),h.xp6(1),h.hij(" ",t.member.userId," ")}}function Y(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Oqu(t.member.userId)}}const J=function(){return{color:"black"}},V=function(t,e){return["/organizations",t,"members",e]};function F(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",4),h._UZ(2,"mat-icon",5),h.ALo(3,"translate"),h.TgZ(4,"div",6),h.TgZ(5,"div",7),h.TgZ(6,"a",8),h._uU(7),h.qZA(),h.TgZ(8,"span",9),h._uU(9),h.qZA(),h.qZA(),h.TgZ(10,"span",10),h._uU(11),h.ALo(12,"translate"),h.ALo(13,"translate"),h.YNc(14,y,2,4,"a",11),h.YNc(15,Y,2,1,"span",2),h.qZA(),h.qZA(),h.qZA(),h._UZ(16,"app-animated-router-outlet"),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.s9C("matTooltip",h.lcZ(3,9,"MEMBER_DETAIL.ENTITY")),h.Q6J("ngStyle",h.DdM(15,J)),h.xp6(4),h.Q6J("routerLink",h.WLB(16,V,t.vo.id,t.member.id)),h.xp6(1),h.hij(" ",t.fullName," "),h.xp6(2),h.hij(" \xa0#",t.member.id," "),h.xp6(2),h.AsE(" ",h.lcZ(12,11,"MEMBER_DETAIL.ENTITY"),", ",h.lcZ(13,13,"MEMBER_DETAIL.USER_ID"),": "),h.xp6(3),h.Q6J("ngIf",t.isAuthorized),h.xp6(1),h.Q6J("ngIf",!t.isAuthorized)}}let Q=(()=>{class t{constructor(t,e,i,o,a,s,n){this.sideMenuItemService=t,this.translate=e,this.sideMenuService=i,this.membersService=o,this.voService=a,this.route=s,this.authResolver=n,this.fullName="",this.isAuthorized=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{const e=t.voId,i=t.memberId;this.isAuthorized=this.authResolver.isPerunAdminOrObserver(),this.voService.getVoById(e).subscribe(t=>{this.vo=t,this.membersService.getRichMemberWithAttributes(i).subscribe(t=>{this.member=t;const e=this.sideMenuItemService.parseVo(this.vo),i=this.sideMenuItemService.parseMember(this.member,this.vo);this.fullName=i.label,this.sideMenuService.setAccessMenuItems([e,i]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(n.V),h.Y36(_.sK),h.Y36(m.D),h.Y36(l.uq),h.Y36(l.YF),h.Y36(a.gz),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"div",0),h._UZ(1,"perun-web-apps-back-button"),h.YNc(2,P,1,0,"mat-spinner",1),h.YNc(3,F,17,19,"div",2),h.qZA()),2&t&&(h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.member))},directives:[I.W,o.O5,T.$g,f.Hw,E.gM,o.PC,a.yS,Z.A],pipes:[_.X$],styles:[""],data:{animation:[r.Ji]}}),t})();var k=i(8557);function z(t,e){1&t&&h._UZ(0,"mat-spinner",2)}function B(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-menu-buttons-field",3),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("items",t.navItems)("size","small")}}let H=(()=>{class t{constructor(t,e,i,o,a){this.sideMenuService=t,this.voService=e,this.route=i,this.router=o,this.authResolver=a,this.items=[],this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.initNavItems(),this.loading=!1},()=>this.loading=!1)})}initNavItems(){this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/members`,label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups`,label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.vo.id}/resources`,label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.vo.id}/applications`,label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/sponsoredMembers`,label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-service-identity",url:`/organizations/${this.vo.id}/serviceAccounts`,label:"MENU_ITEMS.VO.SERVICE_MEMBERS",style:"vo-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/attributes`,label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[this.vo])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.vo.id}/statistics`,label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),(this.authResolver.isManagerPagePrivileged(this.vo)||this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])||this.authResolver.isThisVoAdminOrObserver(this.vo.id))&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.vo.id}/settings`,label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(a.gz),h.Y36(a.F0),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.YNc(0,z,1,0,"mat-spinner",0),h.YNc(1,B,2,2,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,T.$g,k.L],styles:[""]}),t})();var j=i(48002),$=i(28940),X=i(99608);function W(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function K(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",13),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).editVo()}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function tt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",14),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).removeVo()}),h.TgZ(1,"mat-icon"),h._uU(2,"delete_forever"),h.qZA(),h.qZA()}}const et=function(){return{color:"black"}},it=function(t){return["/organizations/",t]};function ot(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",4),h._UZ(2,"mat-icon",5),h.ALo(3,"translate"),h.TgZ(4,"div",6),h.TgZ(5,"div",7),h.TgZ(6,"a",8),h._uU(7),h.qZA(),h.TgZ(8,"span",9),h._uU(9),h.qZA(),h.YNc(10,K,3,0,"button",10),h.YNc(11,tt,3,0,"button",11),h.qZA(),h.TgZ(12,"span",12),h._uU(13),h.ALo(14,"translate"),h.ALo(15,"translate"),h.qZA(),h.qZA(),h.qZA(),h._UZ(16,"app-animated-router-outlet"),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.s9C("matTooltip",h.lcZ(3,10,"VO_DETAIL.ENTITY")),h.Q6J("ngStyle",h.DdM(16,et)),h.xp6(4),h.Q6J("routerLink",h.VKq(17,it,t.vo.id)),h.xp6(1),h.hij(" ",t.vo.name," "),h.xp6(2),h.hij(" \xa0#",t.vo.id," "),h.xp6(1),h.Q6J("ngIf",t.editAuth),h.xp6(1),h.Q6J("ngIf",t.removeAuth),h.xp6(2),h.lnq(" ",h.lcZ(14,12,"VO_DETAIL.ENTITY"),", ",h.lcZ(15,14,"VO_DETAIL.SHORT_NAME"),": ",t.vo.shortName," ")}}let at=(()=>{class t{constructor(t,e,i,o,a,s,n){this.sideMenuService=t,this.voService=e,this.route=i,this.router=o,this.sideMenuItemService=a,this.dialog=s,this.authResolver=n,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.editAuth=this.authResolver.isAuthorized("updateVo_Vo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("deleteVo_Vo_policy",[this.vo]);const e=this.sideMenuItemService.parseVo(t);this.sideMenuService.setAccessMenuItems([e]),(0,c.sF)("vos",this.vo),(0,c.XI)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const t=(0,c.kZ)();t.width="450px",t.data={theme:"vo-theme",vo:this.vo,dialogType:d.Eg.VO},this.dialog.open(d.rd,t).afterClosed().subscribe(t=>{t&&this.voService.getVoById(this.vo.id).subscribe(t=>{this.vo=t})})}removeVo(){const t=(0,c.kZ)();t.width="500px",t.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(X.o,t).afterClosed().subscribe(t=>{t&&this.router.navigate([""])})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(a.gz),h.Y36(a.F0),h.Y36(n.V),h.Y36(A.uw),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-detail-page"]],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"],["svgIcon","perun-vo-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,"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",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo",3,"click"]],template:function(t,e){1&t&&(h.TgZ(0,"div",0),h._UZ(1,"perun-web-apps-back-button"),h.YNc(2,W,1,0,"mat-spinner",1),h.YNc(3,ot,17,19,"div",2),h.qZA()),2&t&&(h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading&&void 0!==e.vo))},directives:[I.W,o.O5,T.$g,f.Hw,E.gM,o.PC,a.yS,Z.A,b.lW],pipes:[_.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[r.Ji]}}),t})();var st=i(67033),nt=i(95121),rt=i(79592),lt=i(27439),ct=i(64737),ut=i(37665),pt=i(39571),dt=i(74842),gt=i(37043),ht=i(73669),mt=i(58506);function At(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"perun-web-apps-group-search-select",7),h.NdJ("groupSelected",function(e){return h.CHM(t),h.oxw().groupIsSelected(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("groups",t.groups)("firstSelectedGroup",t.selectedGroup)}}function It(t,e){1&t&&h._UZ(0,"mat-spinner",8)}function Tt(t,e){1&t&&(h.TgZ(0,"app-alert",9),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function ft(t,e){1&t&&h._UZ(0,"th",17)}function Et(t,e){if(1&t&&(h.TgZ(0,"td",18),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t,": ")}}function Zt(t,e){1&t&&h._UZ(0,"th",17)}function bt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",22),h.NdJ("click",function(){return h.CHM(t),h.oxw(4).changeStatus()}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function _t(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"i"),h.ALo(2,"memberStatusIconColor"),h._uU(3),h.ALo(4,"memberStatusIcon"),h.qZA(),h.TgZ(5,"b",20),h._uU(6),h.ALo(7,"transformMemberStatus"),h.qZA(),h.YNc(8,bt,3,0,"button",21),h.qZA()),2&t){const t=h.oxw(3);h.xp6(1),h.Gre("material-icons vert-center mr-1 ",h.lcZ(2,6,t.selectedMember.groupStatus),""),h.xp6(2),h.hij(" ",h.lcZ(4,8,t.selectedMember.groupStatus)," "),h.xp6(3),h.hij(" ",h.lcZ(7,10,t.selectedMember.groupStatus)," "),h.xp6(2),h.Q6J("ngIf",t.authResolver.isThisVoAdmin(t.vo.id)||t.authResolver.isThisGroupAdmin(t.selectedGroup.id))}}function St(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",22),h.NdJ("click",function(){return h.CHM(t),h.oxw(4).changeExpiration()}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function Nt(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"i",2),h._uU(2),h.ALo(3,"parseDate"),h.qZA(),h.YNc(4,St,3,0,"button",21),h.qZA()),2&t){const t=h.oxw(3);h.xp6(2),h.hij(" ",h.lcZ(3,2,t.expiration)," "),h.xp6(2),h.Q6J("ngIf",t.authResolver.isThisVoAdmin(t.vo.id)||t.authResolver.isThisGroupAdmin(t.selectedGroup.id))}}function Ot(t,e){if(1&t&&(h.TgZ(0,"td",19),h.YNc(1,_t,9,12,"div",6),h.YNc(2,Nt,5,4,"div",6),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Q6J("ngIf","Status"===t),h.xp6(1),h.Q6J("ngIf","Expiration"===t)}}function vt(t,e){1&t&&h._UZ(0,"tr",23)}function xt(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"table",10),h.ynx(2,11),h.YNc(3,ft,1,0,"th",12),h.YNc(4,Et,2,1,"td",13),h.BQk(),h.ynx(5,14),h.YNc(6,Zt,1,0,"th",12),h.YNc(7,Ot,3,2,"td",15),h.BQk(),h.YNc(8,vt,1,0,"tr",16),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("dataSource",t.groupMembershipDataSource),h.xp6(7),h.Q6J("matRowDefColumns",t.displayedColumns)}}let Ct=(()=>{class t{constructor(t,e,i,o){this.groupsManager=t,this.authResolver=e,this.translate=i,this.dialog=o,this.noGroups=!1,this.groupMembershipDataSource=new st.by,this.expiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new st.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(t=>{if(this.groups=t,0===this.groups.length)return void(this.noGroups=!0);const e=this.findInitiallySelectedGroupId();this.groupIsSelected(e),this.initLoading=!1})}findInitiallySelectedGroupId(){if(this.recentIds=(0,c.vL)("groups"),this.recentIds){const t=this.groups.find(t=>t.id===this.recentIds[0]);if(t)return t}return this.groups[0]}groupIsSelected(t){this.loading=!0,this.selectedGroup=t,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[p.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(t=>{this.selectedMember=t[0],this.expirationAtt=this.selectedMember.memberAttributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName),this.expirationAtt?(this.groupMembershipDataSource=new st.by(["Status","Expiration"]),this.expiration=this.expirationAtt.value?this.expirationAtt.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):this.groupMembershipDataSource=new st.by(["Status"]),this.loading=!1})}changeExpiration(t=!1){const e=(0,c.kZ)();e.width="400px",e.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:t},this.dialog.open(d.u3,e).afterClosed().subscribe(t=>{t&&this.groupIsSelected(this.selectedGroup)})}changeStatus(){const t=(0,c.kZ)();t.width="600px",t.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(d.pf,t).afterClosed().subscribe(t=>{t&&(this.selectedMember=t,this.changeExpiration(!0))})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.ff),h.Y36(u.x4),h.Y36(_.sK),h.Y36(A.uw))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-overview-groups"]],inputs:{vo:"vo",member:"member"},features:[h.TTD],decls:11,vars:7,consts:[[1,"mat-elevation-z3","groups-card","mt-4"],[1,"page-subtitle"],[1,"column-center"],[3,"groups","firstSelectedGroup","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","info",4,"ngIf"],[4,"ngIf"],[3,"groups","firstSelectedGroup","groupSelected"],[1,"mr-auto","ml-auto"],["alert_type","info"],["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(t,e){1&t&&(h.TgZ(0,"mat-card",0),h.TgZ(1,"mat-card-header"),h.TgZ(2,"mat-card-title"),h.TgZ(3,"h1",1),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(6,"mat-card-content",2),h.YNc(7,At,1,2,"perun-web-apps-group-search-select",3),h.YNc(8,It,1,0,"mat-spinner",4),h.YNc(9,Tt,3,3,"app-alert",5),h.YNc(10,xt,9,2,"div",6),h.qZA(),h.qZA()),2&t&&(h.xp6(4),h.Oqu(h.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")),h.xp6(3),h.Q6J("ngIf",!e.initLoading),h.xp6(1),h.Q6J("ngIf",(e.loading||e.initLoading)&&!e.noGroups),h.xp6(1),h.Q6J("ngIf",e.noGroups),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[lt.a8,lt.dk,lt.n5,lt.dn,o.O5,ut.h,T.$g,pt.w,st.BZ,st.w1,st.fO,st.Dz,st.nj,st.ge,st.ev,b.lW,f.Hw,st.Gk],pipes:[_.X$,dt.u,gt.f,ht.r,mt.M],styles:[".groups-card[_ngcontent-%COMP%]{max-width:400px}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),t})(),Lt=(()=>{class t{transform(t){return(0,c.Cz)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=h.Yjl({name:"attributeFriendlyName",type:t,pure:!0}),t})();var Rt=i(22196);function Mt(t,e){1&t&&h._UZ(0,"mat-spinner",2)}function Dt(t,e){1&t&&h._UZ(0,"th",17)}function Ut(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&t){const t=h.oxw().$implicit,e=h.oxw(2);h.xp6(1),h.hij(" ",e.attributes.get(t)[0],": ")}}function qt(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.ALo(2,"attributeFriendlyName"),h.qZA()),2&t){const t=h.oxw().$implicit;h.xp6(1),h.hij(" ",h.lcZ(2,1,t),": ")}}function wt(t,e){if(1&t&&(h.TgZ(0,"td",18),h.YNc(1,Ut,2,1,"span",1),h.YNc(2,qt,3,3,"span",1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.Q6J("ngIf",null!==i.attributes.get(t)[0]),h.xp6(1),h.Q6J("ngIf",null===i.attributes.get(t)[0])}}function Pt(t,e){1&t&&h._UZ(0,"th",17)}function Gt(t,e){if(1&t&&(h.TgZ(0,"td",19),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.hij(" ",i.attributes.get(t)[1]," ")}}function yt(t,e){1&t&&h._UZ(0,"tr",20)}function Yt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-card",5),h.TgZ(1,"mat-card-header"),h.TgZ(2,"mat-card-title"),h.TgZ(3,"h1",6),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(6,"mat-card-content",21),h.TgZ(7,"div",22),h.ALo(8,"translate"),h.TgZ(9,"button",23),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).requestPwdReset()}),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(4),h.Oqu(h.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),h.xp6(3),h.Q6J("matTooltip",h.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED"))("matTooltipDisabled",t.logins.length>0),h.xp6(2),h.Q6J("disabled",!t.logins.length),h.xp6(1),h.hij(" ",h.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function Jt(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")))}function Vt(t,e){if(1&t&&(h.TgZ(0,"td",33),h._uU(1),h.ALo(2,"userFullName"),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",h.lcZ(2,1,t.user)," ")}}function Ft(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")))}function Qt(t,e){if(1&t&&(h.TgZ(0,"td",33),h.TgZ(1,"span",34),h._uU(2),h.ALo(3,"parseDate"),h.qZA(),h.qZA()),2&t){const t=e.$implicit;h.xp6(2),h.Oqu(h.lcZ(3,1,t.validityTo))}}function kt(t,e){1&t&&h._UZ(0,"tr",35)}function zt(t,e){1&t&&h._UZ(0,"tr",20)}const Bt=function(){return["sponsors","expiration"]};function Ht(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-card-content"),h.TgZ(1,"h6",26),h._uU(2),h.ALo(3,"translate"),h.TgZ(4,"button",27),h.NdJ("click",function(){return h.CHM(t),h.oxw(3).changeSponsors()}),h.TgZ(5,"mat-icon"),h._uU(6,"edit"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(7,"table",28),h.ynx(8,29),h.YNc(9,Jt,3,3,"th",9),h.YNc(10,Vt,3,3,"td",30),h.BQk(),h.ynx(11,31),h.YNc(12,Ft,3,3,"th",9),h.YNc(13,Qt,4,3,"td",30),h.BQk(),h.YNc(14,kt,1,0,"tr",32),h.YNc(15,zt,1,0,"tr",13),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(3);h.xp6(2),h.hij(" ",h.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),h.xp6(5),h.Q6J("dataSource",t.sponsorsDataSource),h.xp6(7),h.Q6J("matHeaderRowDef",h.DdM(6,Bt)),h.xp6(1),h.Q6J("matRowDefColumns",h.DdM(7,Bt))}}function jt(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"mat-card",24),h.TgZ(2,"mat-card-header"),h.TgZ(3,"mat-card-title"),h.TgZ(4,"h1",6),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.qZA(),h.TgZ(7,"mat-card-subtitle",25),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.qZA(),h.YNc(10,Ht,16,8,"mat-card-content",1),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(5),h.Oqu(h.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),h.xp6(3),h.hij(" ",h.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),h.xp6(2),h.Q6J("ngIf",0!==t.sponsors.length)}}function $t(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",3),h.TgZ(2,"div",4),h.TgZ(3,"mat-card",5),h.TgZ(4,"mat-card-header"),h.TgZ(5,"mat-card-title"),h.TgZ(6,"h1",6),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(9,"mat-card-content"),h.TgZ(10,"table",7),h.ynx(11,8),h.YNc(12,Dt,1,0,"th",9),h.YNc(13,wt,3,2,"td",10),h.BQk(),h.ynx(14,11),h.YNc(15,Pt,1,0,"th",9),h.YNc(16,Gt,2,1,"td",12),h.BQk(),h.YNc(17,yt,1,0,"tr",13),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(18,"div",4),h._UZ(19,"app-member-overview-membership",14),h._UZ(20,"app-member-overview-groups",14),h.qZA(),h.TgZ(21,"div",4),h.YNc(22,Yt,12,11,"mat-card",15),h.YNc(23,jt,11,7,"div",1),h.qZA(),h.qZA(),h.TgZ(24,"div"),h._UZ(25,"perun-web-apps-menu-buttons-field",16),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(7),h.Oqu(h.lcZ(8,11,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),h.xp6(3),h.Q6J("dataSource",t.dataSource),h.xp6(7),h.Q6J("matRowDefColumns",t.displayedColumns),h.xp6(2),h.Q6J("member",t.member)("vo",t.vo),h.xp6(1),h.Q6J("member",t.member)("vo",t.vo),h.xp6(2),h.Q6J("ngIf",t.pwdResetAuth),h.xp6(1),h.Q6J("ngIf",t.member.sponsored),h.xp6(2),h.Q6J("items",t.navItems)("size","small")}}let Xt=(()=>{class t{constructor(t,e,i,o,a,s,n){this.attributesManager=t,this.membersService=e,this.usersManager=i,this.route=o,this.dialog=a,this.authResolver=s,this.storeService=n,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new st.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new st.by,this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{const e=t.memberId;this.attributeNames=this.storeService.getMemberProfileAttributeNames(),this.membersService.getRichMemberWithAttributes(e).subscribe(t=>{const e=this.storeService.get("password_namespace_attributes").map(t=>(t=t.split(":"))[t.length-1]);this.attributesManager.getLogins(t.userId).subscribe(i=>{this.logins=i.filter(t=>e.includes(t.friendlyNameParameter)),this.member=t,this.initAttributes(),this.dataSource=new st.by(Array.from(this.attributes.keys())),this.vo={id:t.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(t=>{this.sponsors=t,this.sponsorsDataSource=new st.by(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}initAttributes(){this.attributeNames.forEach(t=>{this.attributes.set(t,[null,"-"])}),this.filterAttributes()}filterAttributes(){null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(t=>{this.attributeNames.includes(t.friendlyName)&&this.attributes.set(t.friendlyName,[t.displayName,t.value.toString()])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(t=>{this.attributeNames.includes(t.friendlyName)&&this.attributes.set(t.friendlyName,[t.displayName,t.value.toString()])})}initNavItems(){this.navItems=[],this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.member.voId}/members/${this.member.id}/groups`,label:"MENU_ITEMS.MEMBER.GROUPS",style:"member-btn"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.member.voId}/members/${this.member.id}/applications`,label:"MENU_ITEMS.MEMBER.APPLICATIONS",style:"member-btn"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-resource",url:`/organizations/${this.member.voId}/members/${this.member.id}/resources`,label:"MENU_ITEMS.MEMBER.RESOURCES",style:"member-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/members/${this.member.id}/attributes`,label:"MENU_ITEMS.MEMBER.ATTRIBUTES",style:"member-btn"})}refreshData(){this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(t=>{this.member=t,this.loading=!1},()=>this.loading=!1)}requestPwdReset(){const t=(0,c.kZ)();t.width="400px",t.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(nt.m,t)}changeSponsors(){const t=(0,c.kZ)();t.width="650px",t.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(rt.H,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(t=>{this.member=t,this.member.sponsored&&this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(t=>{this.sponsors=t,this.sponsorsDataSource.data=this.sponsors}),this.loading=!1}))})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.H8),h.Y36(l.uq),h.Y36(l.Fv),h.Y36(a.gz),h.Y36(A.uw),h.Y36(u.x4),h.Y36(u.d6))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",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(t,e){1&t&&(h.YNc(0,Mt,1,0,"mat-spinner",0),h.YNc(1,$t,26,13,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,T.$g,lt.a8,lt.dk,lt.n5,lt.dn,st.BZ,st.w1,st.fO,st.Dz,st.nj,ct.b,Ct,k.L,st.ge,st.ev,st.Gk,E.gM,b.lW,lt.$j,f.Hw,st.as,st.XQ],pipes:[_.X$,Lt,Rt.d,mt.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}"]}),t})();var Wt=i(81835);function Kt(t,e){1&t&&h._UZ(0,"mat-spinner",2)}const te=function(t,e){return["/organizations",t,"groups",e]};function ee(t,e){if(1&t&&(h.TgZ(0,"p"),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"a",4),h._uU(4),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.hij(" ",h.lcZ(2,3,"GROUP_DETAIL.SUBGROUP_INFO")," "),h.xp6(2),h.Q6J("routerLink",h.WLB(5,te,t.parentGroup.voId,t.parentGroup.id)),h.xp6(1),h.hij(" ",t.parentGroup.name," ")}}function ie(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,ee,5,8,"p",1),h._UZ(2,"perun-web-apps-menu-buttons-field",3),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf",null!==t.parentGroup),h.xp6(1),h.Q6J("items",t.navItems)("size","small")}}let oe=(()=>{class t{constructor(t,e,i,o,a,s,n){this.route=t,this.groupService=e,this.voService=i,this.guiAuthResolver=o,this.apiRequest=a,this.attributesManager=s,this.notificator=n,this.navItems=[],this.parentGroup=null,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.groupId=t.groupId,this.groupService.getGroupById(this.groupId).subscribe(t=>{this.group=t,null!==this.group.parentGroupId?this.loadParentGroupData():(this.parentGroup=null,this.initNavItems(),this.loading=!1)},()=>this.loading=!1)})}loadParentGroupData(){this.groupService.getGroupById(this.group.parentGroupId).subscribe(t=>{this.parentGroup=t,this.initNavItems(),this.loading=!1},()=>this.loading=!1)}initNavItems(){this.navItems=[],this.guiAuthResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[this.group])&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.group.voId}/groups/${this.groupId}/members`,label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[this.group])&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.groupId}/subgroups`,label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getAssignedRichResources_Group_policy",[this.group])&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.group.voId}/groups/${this.groupId}/resources`,label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[this.group])&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.group.voId}/groups/${this.groupId}/applications`,label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.group.voId}/groups/${this.group.id}/attributes`,label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"});const t=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[this.group]),e=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[this.group]),i=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[this.group]);t&&i&&e&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.group.voId}/groups/${this.group.id}/statistics`,label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"});let o=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,p.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{o=!0},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t)});const a=this.guiAuthResolver.isManagerPagePrivileged(this.group),s=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),n=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),r=this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group]);(o||a||s||n||r)&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.group.voId}/groups/${this.groupId}/settings`,label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(l.ff),h.Y36(l.YF),h.Y36(u.x4),h.Y36(u.F5),h.Y36(l.H8),h.Y36(u.V6))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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(t,e){1&t&&(h.YNc(0,Kt,1,0,"mat-spinner",0),h.YNc(1,ie,3,3,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,T.$g,k.L,a.yS],pipes:[_.X$],styles:[""]}),t})();var ae=i(82044);let se=(()=>{class t{constructor(t){this.route=t}ngOnInit(){this.route.parent.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&h._UZ(0,"app-animated-router-outlet")},directives:[Z.A],styles:[""],data:{animation:[r.Ji]}}),t})();var ne=i(40659);let re=(()=>{class t{constructor(t,e){this.route=t,this.router=e,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=e.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),e.events.subscribe(t=>{t instanceof a.m2&&(this.currentUrl=t.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl))})}ngOnInit(){this.route.parent.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(a.F0))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&h._UZ(0,"app-animated-router-outlet")},directives:[Z.A],styles:[""],data:{animation:[r.Ji]}}),t})();var le=i(541);let ce=(()=>{class t{constructor(t){this.route=t}ngOnInit(){this.route.parent.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityId","entity"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._UZ(4,"app-one-entity-attribute-page",1),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),h.xp6(2),h.Q6J("entityId",e.voId)("entity","vo"))},directives:[le.t],pipes:[_.X$],styles:[""]}),t})();function ue(t,e){1&t&&h._UZ(0,"mat-spinner",2)}function pe(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-menu-buttons-field",3),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("items",t.items)("size","small")}}let de=(()=>{class t{constructor(t,e,i,o,a){this.sideMenuService=t,this.voService=e,this.authResolver=i,this.route=o,this.router=a,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.initItems(),this.loading=!1},()=>this.loading=!1)})}initItems(){this.items=[],this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/settings/expiration`,label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.authResolver.isManagerPagePrivileged(this.vo)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/settings/managers`,label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/settings/applicationForm`,label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/settings/notifications`,label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.vo.id}/settings/extsources`,label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(u.x4),h.Y36(a.gz),h.Y36(a.F0))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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(t,e){1&t&&(h.YNc(0,ue,1,0,"mat-spinner",0),h.YNc(1,pe,2,2,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,T.$g,k.L],styles:[""]}),t})();var ge=i(27521),he=i(16073),me=i(54810);const Ae=["*"];let Ie=(()=>{class t{constructor(){this.modelChange=new h.vpe}get model(){return this.modelValue}set model(t){this.modelValue=t}ngAfterViewInit(){this.toggle.change.subscribe(()=>this.valueChanged())}valueChanged(){this.modelChange.emit(this.toggle.checked)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-settings-toggle-item"]],viewQuery:function(t,e){if(1&t&&h.Gf(ge.Rr,7),2&t){let t;h.iGM(t=h.CRH())&&(e.toggle=t.first)}},inputs:{title:"title",model:"model"},outputs:{modelChange:"modelChange"},ngContentSelectors:Ae,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(t,e){if(1&t){const t=h.EpF();h.F$t(),h.TgZ(0,"div",0),h.TgZ(1,"div",1),h.TgZ(2,"label",2),h.NdJ("click",function(){return h.CHM(t),h.MAs(5).toggle()||e.valueChanged()}),h._uU(3),h.qZA(),h.TgZ(4,"mat-slide-toggle",3,4),h.NdJ("ngModelChange",function(t){return e.modelValue=t}),h.qZA(),h.qZA(),h.TgZ(6,"div",5),h.Hsn(7),h.qZA(),h.qZA()}if(2&t){const t=h.MAs(5);h.xp6(2),h.ekj("unselected-setting",!t.checked),h.xp6(1),h.hij(" ",e.title," "),h.xp6(1),h.Q6J("ngModel",e.modelValue),h.xp6(2),h.Q6J("@openClose",t.checked?"open":"closed")}},directives:[ge.Rr,he.JJ,he.On],styles:[""],data:{animation:[r.BQ]}}),t})();var Te=i(66283),fe=i(4786),Ee=i(80340),Ze=i(71522),be=i(29236);function _e(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",25),h.TgZ(1,"mat-form-field",26),h.TgZ(2,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.periodStatic=e}),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-hint"),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(2),h.s9C("pattern",t.datePattern),h.s9C("placeholder",h.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),h.Q6J("ngModel",t.currentConfiguration.periodStatic),h.xp6(3),h.Oqu(h.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Se(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t.value),h.xp6(1),h.Oqu(t.text)}}function Ne(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",18),h.TgZ(1,"mat-form-field",19),h.TgZ(2,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.periodDynamic=e}),h.ALo(3,"translate"),h.qZA(),h.qZA(),h.TgZ(4,"mat-form-field"),h.TgZ(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"mat-select",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.periodDynamicUnit=e}),h.YNc(9,Se,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(2),h.s9C("pattern",t.dynamicAmountPattern),h.s9C("placeholder",h.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),h.Q6J("ngModel",t.currentConfiguration.periodDynamic),h.xp6(4),h.Oqu(h.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),h.xp6(2),h.Q6J("ngModel",t.currentConfiguration.periodDynamicUnit),h.xp6(1),h.Q6J("ngForOf",t.amountOptions)}}function Oe(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.Oqu(t)}}function ve(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.Oqu(t)}}function xe(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t.value),h.xp6(1),h.Oqu(t.text)}}function Ce(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",t," ")}}function Le(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",25),h.TgZ(1,"mat-form-field",26),h.TgZ(2,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(3).currentConfiguration.specialLoaPeriodStatic=e}),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-hint"),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(3);h.xp6(2),h.s9C("pattern",t.datePattern),h.s9C("placeholder",h.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),h.Q6J("ngModel",t.currentConfiguration.specialLoaPeriodStatic),h.xp6(3),h.Oqu(h.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Re(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t.value),h.xp6(1),h.Oqu(t.text)}}function Me(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",18),h.TgZ(1,"mat-form-field",19),h.TgZ(2,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(3).currentConfiguration.specialLoaPeriodDynamic=e}),h.ALo(3,"translate"),h.qZA(),h.qZA(),h.TgZ(4,"mat-form-field"),h.TgZ(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"mat-select",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(3).currentConfiguration.specialLoaPeriodDynamicUnit=e}),h.YNc(9,Re,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(3);h.xp6(2),h.s9C("pattern",t.dynamicAmountPattern),h.s9C("placeholder",h.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),h.Q6J("ngModel",t.currentConfiguration.specialLoaPeriodDynamic),h.xp6(4),h.Oqu(h.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),h.xp6(2),h.Q6J("ngModel",t.currentConfiguration.specialLoaPeriodDynamicUnit),h.xp6(1),h.Q6J("ngForOf",t.amountOptions)}}function De(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",28),h.TgZ(1,"mat-radio-group",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.specialLoaPeriodType=e}),h.TgZ(2,"mat-radio-button",9,29),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"mat-radio-button",11,30),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.qZA(),h.YNc(10,Le,7,8,"div",13),h.YNc(11,Me,10,10,"div",14),h.TgZ(12,"div"),h.TgZ(13,"mat-checkbox",31),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.specialLoaPeriodExtendExpiredMembers=e}),h._uU(14),h.ALo(15,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.MAs(3),e=h.MAs(7),i=h.oxw(2);h.xp6(1),h.Q6J("ngModel",i.currentConfiguration.specialLoaPeriodType),h.xp6(3),h.hij(" ",h.lcZ(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),h.xp6(4),h.hij(" ",h.lcZ(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),h.xp6(2),h.Q6J("ngIf",t.checked),h.xp6(1),h.Q6J("ngIf",e.checked),h.xp6(2),h.Q6J("ngModel",i.currentConfiguration.specialLoaPeriodExtendExpiredMembers),h.xp6(1),h.hij(" ",h.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function Ue(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",1),h.TgZ(1,"div",2),h.TgZ(2,"h1",3),h.NdJ("click",function(){return h.CHM(t),h.MAs(6).toggle()}),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.TgZ(5,"mat-slide-toggle",4,5),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.enabled=e}),h.qZA(),h.qZA(),h.TgZ(7,"div"),h.TgZ(8,"label",6),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"div",7),h.TgZ(12,"mat-radio-group",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.periodType=e}),h.TgZ(13,"mat-radio-button",9,10),h._uU(15),h.ALo(16,"translate"),h.qZA(),h.TgZ(17,"mat-radio-button",11,12),h._uU(19),h.ALo(20,"translate"),h.qZA(),h.qZA(),h.YNc(21,_e,7,8,"div",13),h.YNc(22,Ne,10,10,"div",14),h.qZA(),h.TgZ(23,"app-settings-toggle-item",15),h.NdJ("modelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.doNotAllowLoasEnabled=e}),h.ALo(24,"translate"),h.TgZ(25,"mat-form-field"),h.TgZ(26,"mat-placeholder"),h._uU(27),h.ALo(28,"translate"),h.qZA(),h.TgZ(29,"mat-select",16),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.doNotAllowLoas=e}),h.YNc(30,Oe,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA(),h.TgZ(31,"app-settings-toggle-item",15),h.NdJ("modelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.doNotExtendLoasEnabled=e}),h.ALo(32,"translate"),h.TgZ(33,"mat-form-field"),h.TgZ(34,"mat-placeholder"),h._uU(35),h.ALo(36,"translate"),h.qZA(),h.TgZ(37,"mat-select",16),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.doNotExtendLoas=e}),h.YNc(38,ve,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA(),h.TgZ(39,"app-settings-toggle-item",15),h.NdJ("modelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.gracePeriodEnabled=e}),h.ALo(40,"translate"),h.TgZ(41,"div",18),h.TgZ(42,"mat-form-field",19),h.TgZ(43,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.gracePeriod=e}),h.ALo(44,"translate"),h.qZA(),h.qZA(),h.TgZ(45,"mat-form-field"),h.TgZ(46,"mat-label"),h._uU(47),h.ALo(48,"translate"),h.qZA(),h.TgZ(49,"mat-select",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.gracePeriodUnit=e}),h.YNc(50,xe,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(51,"app-settings-toggle-item",15),h.NdJ("modelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.specialLoaPeriodEnabled=e}),h.ALo(52,"translate"),h.TgZ(53,"div",7),h.TgZ(54,"div"),h.TgZ(55,"mat-form-field"),h.TgZ(56,"mat-label"),h._uU(57),h.ALo(58,"translate"),h.qZA(),h.TgZ(59,"mat-select",8,21),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.specialLoa=e}),h.YNc(61,Ce,2,2,"mat-option",17),h.qZA(),h.qZA(),h.YNc(62,De,16,13,"div",22),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(63,"div",23),h.ALo(64,"translate"),h.TgZ(65,"button",24),h.NdJ("click",function(){return h.CHM(t),h.oxw().saveChanges()}),h._uU(66),h.ALo(67,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.MAs(6),e=h.MAs(14),i=h.MAs(18),o=h.oxw();h.xp6(2),h.ekj("unselected-setting",!t.checked),h.xp6(1),h.hij(" ",h.lcZ(4,40,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.enabled),h.xp6(2),h.Q6J("@openClose",t.checked?"open":"closed"),h.xp6(2),h.Oqu(h.lcZ(10,42,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),h.xp6(3),h.Q6J("ngModel",o.currentConfiguration.periodType),h.xp6(3),h.hij(" ",h.lcZ(16,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),h.xp6(4),h.hij(" ",h.lcZ(20,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),h.xp6(2),h.Q6J("ngIf",e.checked),h.xp6(1),h.Q6J("ngIf",i.checked),h.xp6(1),h.Q6J("model",o.currentConfiguration.doNotAllowLoasEnabled)("title",h.lcZ(24,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),h.xp6(4),h.Oqu(h.lcZ(28,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.doNotAllowLoas),h.xp6(1),h.Q6J("ngForOf",o.loas),h.xp6(1),h.Q6J("model",o.currentConfiguration.doNotExtendLoasEnabled)("title",h.lcZ(32,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),h.xp6(4),h.Oqu(h.lcZ(36,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.doNotExtendLoas),h.xp6(1),h.Q6J("ngForOf",o.loas),h.xp6(1),h.Q6J("model",o.currentConfiguration.gracePeriodEnabled)("title",h.lcZ(40,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),h.xp6(4),h.s9C("pattern",o.dynamicAmountPattern),h.s9C("placeholder",h.lcZ(44,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),h.Q6J("ngModel",o.currentConfiguration.gracePeriod),h.xp6(4),h.Oqu(h.lcZ(48,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.gracePeriodUnit),h.xp6(1),h.Q6J("ngForOf",o.amountOptions),h.xp6(1),h.Q6J("model",o.currentConfiguration.specialLoaPeriodEnabled)("title",h.lcZ(52,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),h.xp6(6),h.Oqu(h.lcZ(58,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.specialLoa),h.xp6(2),h.Q6J("ngForOf",o.loas),h.xp6(1),h.Q6J("ngIf",null!==o.currentConfiguration.specialLoa),h.xp6(1),h.s9C("matTooltip",h.lcZ(64,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),h.Q6J("matTooltipDisabled",o.expirationAttribute.writable)("matTooltipPosition","above"),h.xp6(2),h.Q6J("disabled",!o.areChangesMade()||!o.expirationAttribute.writable),h.xp6(1),h.hij(" ",h.lcZ(67,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}let qe=(()=>{class t{constructor(){this.saveAttribute=new h.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 t=new Map;this.loas.forEach(e=>t.set(e,"")),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}ngOnChanges(t){t.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}saveChanges(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}areChangesMade(){const t=this.parseAttributeValueFromConfig(this.currentConfiguration),e=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===e?null!==t:null===t||t.period!==e.period||t.gracePeriod!==e.gracePeriod||t.doNotExtendLoa!==e.doNotExtendLoa||t.doNotAllowLoa!==e.doNotAllowLoa||t.periodLoa!==e.periodLoa}parseExpirationRulesAttribute(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}parsePeriod(t){switch(t.periodType){case"dynamic":return this.parseDynamicPeriod(t);case"static":return this.parseStaticPeriod(t)}}createInitConfiguration(){const t=new Map;return this.loas.forEach(e=>t.set(e,"")),{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(t){let e=this.createInitConfiguration();return null==t||(void 0!==t.period&&t.period.length>0&&(e=this.setPeriodValues(t,e)),void 0!==t.doNotAllowLoa&&t.doNotAllowLoa.length>0&&(e=this.setDoNotAllowLoasValues(t,e)),void 0!==t.doNotExtendLoa&&t.doNotExtendLoa.length>0&&(e=this.setDoNotExtendLoasValues(t,e)),void 0!==t.gracePeriod&&t.gracePeriod.length>0&&(e=this.setGracePeriodValues(t,e)),void 0!==t.periodLoa&&t.periodLoa.length>0&&(e=this.setSpecialLoaPeriodValues(t,e))),e}setPeriodValues(t,e){if(e.enabled=!0,t.period.startsWith("+")){e.periodType="dynamic";const i=t.period.charAt(t.period.length-1);e.periodDynamic=t.period.substring(1,t.period.length-1),e.periodDynamicUnit=i}else e.periodType="static",e.periodStatic=t.period;return e}setDoNotAllowLoasValues(t,e){const i=[];return t.doNotAllowLoa.split(",").forEach(t=>i.push(parseInt(t.trim(),10))),e.doNotAllowLoas=i,i.length>0&&(e.doNotAllowLoasEnabled=!0),e}setDoNotExtendLoasValues(t,e){const i=[];return t.doNotExtendLoa.split(",").forEach(t=>i.push(parseInt(t.trim(),10))),e.doNotExtendLoas=i,i.length>0&&(e.doNotExtendLoasEnabled=!0),e}setGracePeriodValues(t,e){e.gracePeriodEnabled=!0;const i=t.gracePeriod.charAt(t.gracePeriod.length-1);return e.gracePeriod=t.gracePeriod.substring(0,t.gracePeriod.length-1),e.gracePeriodUnit=i,e}setSpecialLoaPeriodValues(t,e){e.specialLoa=parseInt(t.periodLoa.substring(0,t.periodLoa.indexOf("|")),10),e.specialLoaPeriodEnabled=!0;let i=t.periodLoa.substring(t.periodLoa.indexOf("|")+1,t.periodLoa.length);if(i.startsWith("+")){i.endsWith(".")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="dynamic";const t=i.charAt(i.length-1);e.specialLoaPeriodDynamic=i.substring(1,i.length-1),e.specialLoaPeriodDynamicUnit=t}else i.endsWith("..")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="static",e.specialLoaPeriodStatic=i;return e}parseDynamicPeriod(t){return"+"+t.periodDynamic+t.periodDynamicUnit}parseStaticPeriod(t){return t.periodStatic}parseDontAllowLoas(t){if(!t.doNotAllowLoasEnabled)return null;let e="";return t.doNotAllowLoas.forEach(t=>e+=t+","),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}parseDontExtendLoas(t){if(!t.doNotExtendLoasEnabled)return null;let e="";return t.doNotExtendLoas.forEach(t=>e+=t+","),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}parseGracePeriod(t){return t.gracePeriodEnabled?t.gracePeriod+t.gracePeriodUnit:null}parseSpecialLoaPeriod(t){if(!t.specialLoaPeriodEnabled)return null;let e=t.specialLoa+"|";switch(t.specialLoaPeriodType){case"static":e+=this.parseSpecialLoaPeriodStatic(t);break;case"dynamic":e+=this.parseSpecialLoaPeriodDynamic(t)}return null!=e&&t.specialLoaPeriodExtendExpiredMembers&&(e+="."),e}parseSpecialLoaPeriodStatic(t){return t.specialLoaPeriodStatic}parseSpecialLoaPeriodDynamic(t){return"+"+t.specialLoaPeriodDynamic+t.specialLoaPeriodDynamicUnit}parseAttributeValueFromConfig(t){if(!t.enabled)return null;const e=this.parsePeriod(t),i=this.parseDontAllowLoas(t),o=this.parseDontExtendLoas(t),a=this.parseGracePeriod(t),s=this.parseSpecialLoaPeriod(t),n={period:e};return null!==o&&(n.doNotExtendLoa=o),null!==i&&(n.doNotAllowLoa=i),null!==a&&(n.gracePeriod=a),null!==s&&(n.periodLoa=s),n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[h.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"],[3,"model","title","modelChange"],["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"],["mat-flat-button","","color","primary",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&h.YNc(0,Ue,68,70,"div",0),2&t&&h.Q6J("ngIf",e.currentConfiguration)},directives:[o.O5,ge.Rr,he.JJ,he.On,me.VQ,me.U0,Ie,Te.KE,Te.UY,fe.gD,o.sg,Ee.Nt,he.Fj,he.c5,Te.hX,E.gM,b.lW,Te.bx,Ze.ey,be.oG],pipes:[_.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:[r.BQ]}}),t})();function we(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-expiration-settings",1),h.NdJ("saveAttribute",function(e){return h.CHM(t),h.oxw().saveExpirationAttribute(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("expirationAttribute",t.expirationAttribute)}}let Pe=(()=>{class t{constructor(t,e,i,o,a){this.attributesManager=t,this.route=e,this.translate=i,this.notificator=o,this.apiRequest=a,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(t=>this.errorMessage=t)}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.loadSettings()})}loadSettings(){this.attributesManager.getVoAttributeByName(this.voId,p.r.VO_DEF_EXPIRATION_RULES).subscribe(t=>{this.expirationAttribute=t})}saveExpirationAttribute(t){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.voId,attribute:t}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},t=>{console.log(t),this.notificator.showRPCError(t.error,this.errorMessage)})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.H8),h.Y36(a.gz),h.Y36(_.sK),h.Y36(u.V6),h.Y36(u.F5))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&h.YNc(0,we,1,1,"app-expiration-settings",0),2&t&&h.Q6J("ngIf",void 0!==e.expirationAttribute)},directives:[o.O5,qe],styles:[""],data:{animation:[r.BQ]}}),t})();var Ge=i(62284),ye=i(489);function Ye(t,e){if(1&t&&h._UZ(0,"app-managers-page",1),2&t){const t=h.oxw();h.Q6J("complementaryObject",t.vo)("complementaryObjectType",t.type)("theme",t.theme)("availableRoles",t.availableRoles)}}let Je=(()=>{class t{constructor(t,e,i,o){this.dialog=t,this.voService=e,this.route=i,this.guiAuthResolver=o,this.availableRoles=[],this.selected="user",this.type="Vo",this.theme="vo-theme"}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.uw),h.Y36(l.YF),h.Y36(a.gz),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&h.YNc(0,Ye,1,4,"app-managers-page",0),2&t&&h.Q6J("ngIf",e.vo)},directives:[o.O5,ye.s],styles:[""]}),t})();function Ve(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function Fe(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"mat-form-field",8),h.TgZ(4,"textarea",17),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).reason=e}),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),h.xp6(3),h.Q6J("ngModel",t.reason)}}function Qe(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",7),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"mat-form-field",8),h.TgZ(4,"mat-select",9),h.NdJ("valueChange",function(e){return h.CHM(t),h.oxw().mailType=e}),h.TgZ(5,"mat-option",10),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"mat-option",11),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"mat-option",12),h._uU(12),h.ALo(13,"translate"),h.qZA(),h.TgZ(14,"mat-option",13),h._uU(15),h.ALo(16,"translate"),h.qZA(),h.TgZ(17,"mat-option",14),h._uU(18),h.ALo(19,"translate"),h.qZA(),h.TgZ(20,"mat-option",15),h._uU(21),h.ALo(22,"translate"),h.qZA(),h.qZA(),h.qZA(),h.YNc(23,Fe,5,4,"div",16),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.hij(" ",h.lcZ(2,9,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),h.xp6(3),h.Q6J("value",t.mailType),h.xp6(2),h.Oqu(h.lcZ(7,11,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),h.xp6(3),h.Oqu(h.lcZ(10,13,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),h.xp6(3),h.Oqu(h.lcZ(13,15,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),h.xp6(3),h.Oqu(h.lcZ(16,17,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),h.xp6(3),h.Oqu(h.lcZ(19,19,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),h.xp6(3),h.Oqu(h.lcZ(22,21,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),h.xp6(2),h.Q6J("ngIf","APP_REJECTED_USER"===t.mailType)}}let ke=(()=>{class t{constructor(t,e,i,o,a){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=o,this.registrarManager=a,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(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close()})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(_.sK),h.Y36(u.V6),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","accent",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","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],[4,"ngIf"],["matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Ve,1,0,"mat-spinner",1),h.YNc(5,Qe,24,23,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Gre("",e.theme,"}"),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},directives:[A.uh,o.O5,A.H8,b.lW,T.$g,A.xY,Te.KE,fe.gD,Ze.ey,Ee.Nt,he.Fj,he.JJ,he.On],pipes:[_.X$],styles:[""]}),t})();function ze(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function Be(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",7),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"mat-form-field",8),h.TgZ(4,"textarea",9),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().reason=e}),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),h.xp6(3),h.Q6J("ngModel",t.reason)}}let He=(()=>{class t{constructor(t,e,i,o,a){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=o,this.registrarManager=a,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close()})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(_.sK),h.Y36(u.V6),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,ze,1,0,"mat-spinner",1),h.YNc(5,Be,5,4,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},directives:[A.uh,o.O5,A.H8,b.lW,T.$g,A.xY,Te.KE,Ee.Nt,he.Fj,he.JJ,he.On],pipes:[_.X$],styles:[""]}),t})();function je(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function $e(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function Xe(t,e){if(1&t&&(h.TgZ(0,"mat-form-field"),h.TgZ(1,"label"),h._UZ(2,"input",9),h.qZA(),h.YNc(3,$e,3,3,"mat-error",8),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Q6J("formControl",t.emailControl),h.xp6(1),h.Q6J("ngIf",t.emailControl.invalid)}}function We(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function Ke(t,e){if(1&t&&(h.TgZ(0,"mat-form-field"),h._UZ(1,"input",10),h.YNc(2,We,3,3,"mat-error",8),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Q6J("formControl",t.inputControl),h.xp6(1),h.Q6J("ngIf",t.inputControl.invalid)}}function ti(t,e){if(1&t&&(h.TgZ(0,"div",7),h.YNc(1,Xe,4,2,"mat-form-field",8),h.YNc(2,Ke,3,2,"mat-form-field",8),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf",null!==t.emailControl),h.xp6(1),h.Q6J("ngIf",null!==t.inputControl)}}let ei=(()=>{class t{constructor(t,e,i,o,a){this.dialogRef=t,this.data=e,this.notificator=i,this.translateService=o,this.registrarService=a,this.loading=!1,this.inputControl=null,this.emailControl=null}ngOnInit(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=this.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new he.NI(this.formItemData.value,[he.kI.required,he.kI.email]):this.inputControl=new he.NI(this.formItemData.value,[he.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)}getLabel(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(u.V6),h.Y36(_.sK),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,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"],["type","text","matInput","","required","",3,"formControl"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,je,1,0,"mat-spinner",1),h.YNc(5,ti,3,2,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.AsE("",h.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",e.itemName,""),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading||null!==e.inputControl&&e.inputControl.invalid||null!==e.emailControl&&e.emailControl.invalid),h.xp6(1),h.hij(" ",h.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},directives:[A.uh,o.O5,A.H8,b.lW,T.$g,A.xY,Te.KE,Ee.Nt,he.Fj,he.Q7,he.JJ,he.oH,Te.TO],pipes:[_.X$],styles:[""]}),t})();var ii=i(27679),oi=i(84650);function ai(t,e){if(1&t&&(h.TgZ(0,"span",5),h._uU(1),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.hij(" #",t.application.id," ")}}function si(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function ni(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",17),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).verifyApplication()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function ri(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",17),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).approveApplication()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function li(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",18),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).rejectApplication()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function ci(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",18),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).deleteApplication()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function ui(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",19),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).resendNotification()}),h.TgZ(1,"i",14),h._uU(2," mail_outline "),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function pi(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"span",10),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._uU(4),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Oqu(h.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),h.xp6(2),h.hij(": ",t.application.vo.name," ")}}function di(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"span",10),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._uU(4),h.TgZ(5,"span",10),h._uU(6),h.ALo(7,"translate"),h.qZA(),h._uU(8),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Oqu(h.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),h.xp6(2),h.hij(": ",t.application.group.name," "),h.xp6(2),h.Oqu(h.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),h.xp6(2),h.hij(": ",t.application.vo.name," ")}}function gi(t,e){1&t&&(h.TgZ(0,"span"),h.TgZ(1,"mat-icon",20),h._uU(2,"arrow_right_alt"),h.qZA(),h._uU(3," Initial "),h.qZA())}function hi(t,e){1&t&&(h.TgZ(0,"span"),h.TgZ(1,"mat-icon",20),h._uU(2,"restore"),h.qZA(),h._uU(3," Extension "),h.qZA())}function mi(t,e){1&t&&(h.TgZ(0,"span"),h.TgZ(1,"mat-icon",20),h._uU(2,"nat"),h.qZA(),h._uU(3," Embedded "),h.qZA())}function Ai(t,e){if(1&t&&(h.TgZ(0,"div",21),h.TgZ(1,"mat-card-title"),h.TgZ(2,"i",22),h._uU(3,"clear"),h.qZA(),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div"),h.TgZ(7,"span",10),h._uU(8),h.ALo(9,"translate"),h.qZA(),h._uU(10),h.ALo(11,"date"),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(4),h.AsE(" ",h.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",t.getModifiedAtName(t.application.modifiedBy),""),h.xp6(4),h.Oqu(h.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),h.xp6(2),h.hij(": ",h.xi3(11,8,t.application.modifiedAt,"d.M.y H:mm:ss"),"")}}function Ii(t,e){if(1&t&&(h.TgZ(0,"div",21),h.TgZ(1,"mat-card-title"),h.TgZ(2,"i",23),h._uU(3,"done"),h.qZA(),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div"),h.TgZ(7,"span",10),h._uU(8),h.ALo(9,"translate"),h.qZA(),h._uU(10),h.ALo(11,"date"),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(4),h.AsE(" ",h.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",t.getModifiedAtName(t.application.modifiedBy),""),h.xp6(4),h.Oqu(h.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),h.xp6(2),h.hij(": ",h.xi3(11,8,t.application.modifiedAt,"d.M.y H:mm:ss"),"")}}function Ti(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"span",10),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._uU(4),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Oqu(h.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),h.xp6(2),h.hij(": ",t.userMail,"")}}function fi(t,e){1&t&&h._UZ(0,"th",32)}function Ei(t,e){if(1&t&&(h.TgZ(0,"td",33),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3);h.xp6(1),h.AsE("",i.getLabel(t.formItem),"",t.formItem.type.startsWith("FROM_FEDERATION")?"*":"","")}}function Zi(t,e){1&t&&h._UZ(0,"th",32)}function bi(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",36),h.NdJ("click",function(){h.CHM(t);const e=h.oxw().$implicit;return h.oxw(3).editApplicationData(e)}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function _i(t,e){if(1&t&&(h.TgZ(0,"td",34),h._uU(1),h.YNc(2,bi,3,0,"button",35),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3);h.xp6(1),h.hij(" ",t.value," "),h.xp6(1),h.Q6J("ngIf",!t.formItem.type.startsWith("FROM_FEDERATION")&&("NEW"===i.application.state||"VERIFIED"===i.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==t.formItem.type)}}function Si(t,e){1&t&&h._UZ(0,"tr",37)}function Ni(t,e){1&t&&h._UZ(0,"tr",38)}function Oi(t,e){if(1&t&&(h.TgZ(0,"table",24),h.ynx(1,25),h.YNc(2,fi,1,0,"th",26),h.YNc(3,Ei,2,2,"td",27),h.BQk(),h.ynx(4,28),h.YNc(5,Zi,1,0,"th",26),h.YNc(6,_i,3,2,"td",29),h.BQk(),h.YNc(7,Si,1,0,"tr",30),h.YNc(8,Ni,1,0,"tr",31),h.qZA()),2&t){const t=h.oxw(2);h.Q6J("dataSource",t.dataSource),h.xp6(7),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}function vi(t,e){1&t&&(h.TgZ(0,"div",39),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij("*",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VALUE_BY_EXTERNALS"),""))}function xi(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,ni,3,3,"button",7),h.YNc(2,ri,3,3,"button",7),h.YNc(3,li,3,3,"button",8),h.YNc(4,ci,3,3,"button",8),h.YNc(5,ui,5,3,"button",9),h.YNc(6,pi,5,4,"div",4),h.YNc(7,di,9,8,"div",4),h.TgZ(8,"div"),h.TgZ(9,"span",10),h._uU(10),h.ALo(11,"translate"),h.qZA(),h._uU(12,": "),h._UZ(13,"span",11),h.ALo(14,"applicationState"),h.qZA(),h.TgZ(15,"div"),h.TgZ(16,"span",10),h._uU(17),h.ALo(18,"translate"),h.qZA(),h._uU(19,": "),h.YNc(20,gi,4,0,"span",4),h.YNc(21,hi,4,0,"span",4),h.YNc(22,mi,4,0,"span",4),h.qZA(),h.YNc(23,Ai,12,11,"div",12),h.YNc(24,Ii,12,11,"div",12),h.TgZ(25,"div",13),h.TgZ(26,"mat-card-title"),h.TgZ(27,"i",14),h._uU(28,"redo"),h.qZA(),h._uU(29),h.ALo(30,"translate"),h.ALo(31,"userFullName"),h.qZA(),h.YNc(32,Ti,5,4,"div",4),h.TgZ(33,"div"),h.TgZ(34,"span",10),h._uU(35),h.ALo(36,"translate"),h.qZA(),h._uU(37),h.qZA(),h.TgZ(38,"div"),h.TgZ(39,"span",10),h._uU(40),h.ALo(41,"translate"),h.qZA(),h._uU(42),h.qZA(),h.TgZ(43,"div"),h.TgZ(44,"span",10),h._uU(45),h.ALo(46,"translate"),h.qZA(),h._uU(47),h.ALo(48,"date"),h.qZA(),h.YNc(49,Oi,9,3,"table",15),h.YNc(50,vi,3,3,"div",16),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf","NEW"===t.application.state&&t.verifyAuth),h.xp6(1),h.Q6J("ngIf",("VERIFIED"===t.application.state||"NEW"===t.application.state)&&t.approveAuth),h.xp6(1),h.Q6J("ngIf",("VERIFIED"===t.application.state||"NEW"===t.application.state)&&t.rejectAuth),h.xp6(1),h.Q6J("ngIf",("REJECTED"===t.application.state||"NEW"===t.application.state)&&t.deleteAuth),h.xp6(1),h.Q6J("ngIf",t.resendAuth),h.xp6(1),h.Q6J("ngIf",!t.application.group),h.xp6(1),h.Q6J("ngIf",t.application.group),h.xp6(3),h.Oqu(h.lcZ(11,26,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),h.xp6(3),h.Q6J("outerHTML",h.lcZ(14,28,t.application.state),h.oJD),h.xp6(4),h.Oqu(h.lcZ(18,30,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),h.xp6(3),h.Q6J("ngIf","INITIAL"===t.application.type),h.xp6(1),h.Q6J("ngIf","EXTENSION"===t.application.type),h.xp6(1),h.Q6J("ngIf","EMBEDDED"===t.application.type),h.xp6(1),h.Q6J("ngIf","REJECTED"===t.application.state),h.xp6(1),h.Q6J("ngIf","APPROVED"===t.application.state),h.xp6(5),h.AsE(" ",h.lcZ(30,32,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===t.application.user?t.submittedBy():h.lcZ(31,34,t.application.user),""),h.xp6(3),h.Q6J("ngIf",t.userMail),h.xp6(3),h.Oqu(h.lcZ(36,36,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),h.xp6(2),h.hij(": ",t.application.extSourceName,""),h.xp6(3),h.Oqu(h.lcZ(41,38,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),h.xp6(2),h.hij(": ",t.application.extSourceLoa,""),h.xp6(3),h.Oqu(h.lcZ(46,40,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),h.xp6(2),h.hij(": ",h.xi3(48,42,t.application.createdAt,"d.M.y H:mm:ss"),""),h.xp6(2),h.Q6J("ngIf",0!==t.userData.length),h.xp6(1),h.Q6J("ngIf",0!==t.userData.length)}}let Ci=(()=>{class t{constructor(t,e,i,o,a,s,n,r){this.registrarManager=t,this.dialog=e,this.translate=i,this.route=o,this.notificator=a,this.router=s,this.authResolver=n,this.usersService=r,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.route.parent.params.subscribe(e=>{this.dialogTheme=e.groupId?"group-theme":e.memberId?"member-theme":"vo-theme",this.registrarManager.getApplicationById(t.applicationId).subscribe(t=>{this.application=t,"EMBEDDED"===this.application.type&&this.application.user?this.usersService.getRichUserWithAttributes(this.application.user.id).subscribe(t=>{var e;const i=t.userAttributes.find(t=>"preferredMail"===t.friendlyName);this.userMail=null===(e=null==i?void 0:i.value)||void 0===e?void 0:e.toString(),this.setAuthRights(),this.loading=!1}):this.registrarManager.getApplicationDataById(this.application.id).subscribe(t=>{this.userData=t,this.dataSource=new st.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(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}submittedBy(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}getModifiedAtName(t){const e=t.lastIndexOf("/CN=");if(-1!==e){const i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}resendNotification(){const t=(0,c.kZ)();t.width="500px",t.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(ke,t)}deleteApplication(){this.loading=!0,this.registrarManager.deleteApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(t=>{this.notificator.showSuccess(t),this.router.navigateByUrl(this.router.url.substring(0,this.router.url.lastIndexOf("/")))})})}rejectApplication(){const t=(0,c.kZ)();t.width="500px",t.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(He,t).afterClosed().subscribe(()=>{this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(t=>{this.application=t,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(t=>{this.notificator.showSuccess(t)}),this.registrarManager.getApplicationById(this.application.id).subscribe(t=>{this.application=t,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(t=>{this.notificator.showSuccess(t)}),this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(t=>{this.application=t,this.loading=!1})})}editApplicationData(t){const e=(0,c.kZ)();e.width="600px",e.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:t},this.dialog.open(ei,e)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.tk),h.Y36(A.uw),h.Y36(_.sK),h.Y36(a.gz),h.Y36(u.V6),h.Y36(a.F0),h.Y36(u.x4),h.Y36(l.Fv))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","","class","mr-2 mb-2",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"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],["class","font-italic",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",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"],["mat-cell","","class","font-weight-bold",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["mat-header-row","","class","h-50",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["mat-icon-button","","aria-label","Edit Application data",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Edit Application data",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""],[1,"font-italic"]],template:function(t,e){1&t&&(h.TgZ(0,"h2",0),h._uU(1),h.ALo(2,"translate"),h.YNc(3,ai,2,1,"span",1),h.qZA(),h._UZ(4,"mat-divider",2),h.YNc(5,si,1,0,"mat-spinner",3),h.YNc(6,xi,51,45,"div",4)),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),h.xp6(2),h.Q6J("ngIf",!!e.application),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,ii.d,T.$g,lt.n5,b.lW,f.Hw,st.BZ,st.w1,st.fO,st.Dz,st.as,st.nj,st.ge,st.ev,st.XQ,st.Gk],pipes:[_.X$,oi.h,Rt.d,o.uU],styles:[""]}),t})();var Li=i(11930),Ri=i(7433);let Mi=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&h._UZ(0,"app-animated-router-outlet")},directives:[Z.A],styles:[""],data:{animation:[r.Ji]}}),t})();var Di=i(55109),Ui=i(69012);function qi(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.hij(" ",h.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function wi(t,e){if(1&t&&h._UZ(0,"app-one-entity-attribute-page",4),2&t){const t=h.oxw();h.Q6J("entity","group")("entityId",t.groupId)}}function Pi(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",h.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function Gi(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",5),2&t){const t=h.oxw(2);h.Q6J("firstEntity","group")("firstEntityId",t.groupId)("secondEntity","member")}}function yi(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,Pi,3,6,"ng-template",1),h.YNc(2,Gi,1,3,"ng-template",2),h.qZA())}function Yi(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",h.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Ji(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",5),2&t){const t=h.oxw(2);h.Q6J("firstEntity","group")("firstEntityId",t.groupId)("secondEntity","resource")}}function Vi(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,Yi,3,6,"ng-template",1),h.YNc(2,Ji,1,3,"ng-template",2),h.qZA())}let Fi=(()=>{class t{constructor(t,e,i){this.route=t,this.groupManager=e,this.authResolver=i}ngOnInit(){this.route.parent.params.subscribe(t=>{this.groupId=t.groupId,this.groupManager.getGroupById(this.groupId).subscribe(t=>{this.group=t,this.groupResourceAttAuth=this.authResolver.isAuthorized("getAssignedResources_Group_policy",[this.group]),this.groupMemberAttAuth=this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_List_List_boolean_policy",[this.group])})})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(l.ff),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-tab-group"),h.TgZ(5,"mat-tab"),h.YNc(6,qi,2,3,"ng-template",1),h.YNc(7,wi,1,2,"ng-template",2),h.qZA(),h.YNc(8,yi,3,0,"mat-tab",3),h.YNc(9,Vi,3,0,"mat-tab",3),h.qZA(),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),h.xp6(6),h.Q6J("ngIf",e.groupMemberAttAuth),h.xp6(1),h.Q6J("ngIf",e.groupResourceAttAuth))},directives:[Di.SP,Di.uX,Di.uD,Di.Vc,o.O5,le.t,Ui.Y],pipes:[_.X$],styles:[""]}),t})();function Qi(t,e){1&t&&h._UZ(0,"mat-spinner",2)}function ki(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-menu-buttons-field",3),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("items",t.items)("size","small")}}let zi=(()=>{class t{constructor(t,e,i,o,a,s,n,r,l){this.sideMenuService=t,this.voService=e,this.groupService=i,this.route=o,this.router=a,this.guiAuthResolver=s,this.apiRequest=n,this.attributesManager=r,this.notificator=l,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{const e=t.voId;this.groupService.getGroupById(t.groupId).subscribe(t=>{this.group=t,this.voService.getVoById(e).subscribe(t=>{this.vo=t,this.initItems(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}initItems(){this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,p.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/expiration`,label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t)}),this.guiAuthResolver.isManagerPagePrivileged(this.group)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/managers`,label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group])&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/applicationForm`,label:"MENU_ITEMS.GROUP.APPLICATION_FORM",style:"group-btn"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group])&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/notifications`,label:"MENU_ITEMS.GROUP.NOTIFICATIONS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group])&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/relations`,label:"MENU_ITEMS.GROUP.RELATIONS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getGroupExtSources_Group_policy",[this.group])&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/extsources`,label:"MENU_ITEMS.GROUP.EXTSOURCES",style:"group-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(l.ff),h.Y36(a.gz),h.Y36(a.F0),h.Y36(u.x4),h.Y36(u.F5),h.Y36(l.H8),h.Y36(u.V6))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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(t,e){1&t&&(h.YNc(0,Qi,1,0,"mat-spinner",0),h.YNc(1,ki,2,2,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,T.$g,k.L],styles:[""]}),t})();var Bi=i(14527);function Hi(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function ji(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",10),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).switchToInitial()}),h.TgZ(1,"i",11),h._uU(2,"arrow_right_alt"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function $i(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",10),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).switchToExtension()}),h.TgZ(1,"i",11),h._uU(2,"cached"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function Xi(t,e){if(1&t&&(h.TgZ(0,"mat-option",12),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"uppercase"),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",h.lcZ(2,2,h.lcZ(3,4,"SHARED_LIB.LANGUAGES."+t))," ")}}function Wi(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Ki(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function to(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h._UZ(5,"input",19),h.qZA(),h.qZA(),h.TgZ(6,"div",20),h.YNc(7,Wi,2,1,"mat-icon",21),h.YNc(8,Ki,2,1,"mat-icon",21),h.TgZ(9,"span",22),h._uU(10),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function eo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function io(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function oo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h._UZ(5,"input",24),h.qZA(),h.qZA(),h.TgZ(6,"div",20),h.YNc(7,eo,2,1,"mat-icon",21),h.YNc(8,io,2,1,"mat-icon",21),h.TgZ(9,"span",22),h._uU(10),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(4),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function ao(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function so(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function no(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h._UZ(5,"input",25),h._UZ(6,"br"),h._UZ(7,"input",19),h.qZA(),h.qZA(),h.TgZ(8,"div",20),h.YNc(9,ao,2,1,"mat-icon",21),h.YNc(10,so,2,1,"mat-icon",21),h.TgZ(11,"span",22),h._uU(12),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function ro(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"input",27),h._uU(2),h._UZ(3,"br"),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3).$implicit;h.xp6(1),h.Q6J("disabled","ALWAYS"===i.disabled),h.xp6(1),h.hij(" ",t,"")}}function lo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function co(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function uo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"form",18),h.YNc(5,ro,4,2,"div",9),h._UZ(6,"input",26),h.ALo(7,"translate"),h.qZA(),h.qZA(),h.TgZ(8,"div",20),h.YNc(9,lo,2,1,"mat-icon",21),h.YNc(10,co,2,1,"mat-icon",21),h.TgZ(11,"span",22),h._uU(12),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("ngForOf",e.getLocalizedOptions(t)),h.xp6(1),h.s9C("value",h.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(3),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function po(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"span",28),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(1),h.Q6J("innerHTML",e.getLocalizedLabel(t),h.oJD)}}function go(t,e){if(1&t&&(h.TgZ(0,"option"),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t)}}function ho(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function mo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Ao(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"select",29),h.YNc(6,go,2,1,"option",9),h.qZA(),h.qZA(),h.qZA(),h.TgZ(7,"div",20),h.YNc(8,ho,2,1,"mat-icon",21),h.YNc(9,mo,2,1,"mat-icon",21),h.TgZ(10,"span",22),h._uU(11),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(1),h.Q6J("ngForOf",e.getLocalizedOptions(t)),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Io(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function To(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function fo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h._UZ(4,"textarea",30),h.qZA(),h.TgZ(5,"div",20),h.YNc(6,Io,2,1,"mat-icon",21),h.YNc(7,To,2,1,"mat-icon",21),h.TgZ(8,"span",22),h._uU(9),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(1),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Eo(t,e){if(1&t&&(h.TgZ(0,"option",35),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t)}}function Zo(t,e){1&t&&(h.TgZ(0,"div",36),h.TgZ(1,"form"),h._UZ(2,"input",37),h.qZA(),h.qZA())}function bo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function _o(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function So(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"select",31),h.NdJ("ngModelChange",function(e){h.CHM(t);const i=h.oxw(2).$implicit;return h.oxw(2).mapForCombobox[i.id]=e}),h.TgZ(6,"option",32),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.YNc(9,Eo,2,1,"option",33),h.qZA(),h.YNc(10,Zo,3,0,"div",34),h.qZA(),h.qZA(),h.TgZ(11,"div",20),h.YNc(12,bo,2,1,"mat-icon",21),h.YNc(13,_o,2,1,"mat-icon",21),h.TgZ(14,"span",22),h._uU(15),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("ngModel",e.mapForCombobox[t.id])("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Oqu(h.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")),h.xp6(2),h.Q6J("ngForOf",e.getLocalizedOptions(t)),h.xp6(1),h.Q6J("ngIf","true"===e.mapForCombobox[t.id]),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function No(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"input",38),h._uU(2),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3).$implicit;h.xp6(1),h.Q6J("disabled","ALWAYS"===i.disabled),h.xp6(1),h.hij(" ",t," ")}}function Oo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function vo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function xo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"form",36),h.YNc(6,No,3,2,"div",9),h.qZA(),h.qZA(),h.qZA(),h.TgZ(7,"div",20),h.YNc(8,Oo,2,1,"mat-icon",21),h.YNc(9,vo,2,1,"mat-icon",21),h.TgZ(10,"span",22),h._uU(11),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(3),h.Q6J("ngForOf",e.getLocalizedOptions(t)),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Co(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Lo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Ro(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"form",36),h._UZ(6,"input",38),h._uU(7," example group1 "),h._UZ(8,"br"),h._UZ(9,"input",38),h._uU(10," example group2 "),h._UZ(11,"br"),h._UZ(12,"input",38),h._uU(13," example group3 "),h.qZA(),h.qZA(),h.qZA(),h.TgZ(14,"div",20),h.YNc(15,Co,2,1,"mat-icon",21),h.YNc(16,Lo,2,1,"mat-icon",21),h.TgZ(17,"span",22),h._uU(18),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(3),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(3),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(3),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(3),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Mo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",41),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Do(t,e){if(1&t&&(h.TgZ(0,"mat-icon",41),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Uo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"button",39),h._uU(2),h.qZA(),h.YNc(3,Mo,2,1,"mat-icon",40),h.YNc(4,Do,2,1,"mat-icon",40),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(1),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(1),h.Oqu(e.getLocalizedLabel(t)),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden)}}function qo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",41),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function wo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",41),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Po(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"button",39),h._uU(2),h.qZA(),h.YNc(3,qo,2,1,"mat-icon",40),h.YNc(4,wo,2,1,"mat-icon",40),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(1),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(1),h.Oqu(e.getLocalizedLabel(t)),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden)}}function Go(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function yo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Yo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"select",42),h.TgZ(6,"option",43),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.TgZ(9,"option",44),h._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),h.qZA(),h.TgZ(11,"option",45),h._uU(12,"(GMT -11:00) Midway Island, Samoa"),h.qZA(),h.TgZ(13,"option",46),h._uU(14,"(GMT -10:00) Hawaii"),h.qZA(),h.TgZ(15,"option",47),h._uU(16,"(GMT -9:30) Taiohae"),h.qZA(),h.TgZ(17,"option",48),h._uU(18,"(GMT -9:00) Alaska"),h.qZA(),h.TgZ(19,"option",49),h._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),h.qZA(),h.TgZ(21,"option",50),h._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),h.qZA(),h.TgZ(23,"option",51),h._uU(24,"(GMT -6:00) Central Time (US & Canada), Mexico City"),h.qZA(),h.TgZ(25,"option",52),h._uU(26,"(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima"),h.qZA(),h.TgZ(27,"option",53),h._uU(28,"(GMT -4:30) Caracas"),h.qZA(),h.TgZ(29,"option",54),h._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),h.qZA(),h.TgZ(31,"option",55),h._uU(32,"(GMT -3:30) Newfoundland"),h.qZA(),h.TgZ(33,"option",56),h._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),h.qZA(),h.TgZ(35,"option",57),h._uU(36,"(GMT -2:00) Mid-Atlantic"),h.qZA(),h.TgZ(37,"option",58),h._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),h.qZA(),h.TgZ(39,"option",59),h._uU(40,"(GMT) Western Europe Time, London, Lisbon, Casablanca"),h.qZA(),h.TgZ(41,"option",60),h._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),h.qZA(),h.TgZ(43,"option",61),h._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),h.qZA(),h.TgZ(45,"option",62),h._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),h.qZA(),h.TgZ(47,"option",63),h._uU(48,"(GMT +3:30) Tehran"),h.qZA(),h.TgZ(49,"option",64),h._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),h.qZA(),h.TgZ(51,"option",65),h._uU(52,"(GMT +4:30) Kabul"),h.qZA(),h.TgZ(53,"option",66),h._uU(54,"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent"),h.qZA(),h.TgZ(55,"option",67),h._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),h.qZA(),h.TgZ(57,"option",68),h._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),h.qZA(),h.TgZ(59,"option",69),h._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),h.qZA(),h.TgZ(61,"option",70),h._uU(62,"(GMT +6:30) Yangon, Mandalay"),h.qZA(),h.TgZ(63,"option",71),h._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),h.qZA(),h.TgZ(65,"option",72),h._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),h.qZA(),h.TgZ(67,"option",73),h._uU(68,"(GMT +8:45) Eucla"),h.qZA(),h.TgZ(69,"option",74),h._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),h.qZA(),h.TgZ(71,"option",75),h._uU(72,"(GMT +9:30) Adelaide, Darwin"),h.qZA(),h.TgZ(73,"option",76),h._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),h.qZA(),h.TgZ(75,"option",77),h._uU(76,"(GMT +10:30) Lord Howe Island"),h.qZA(),h.TgZ(77,"option",78),h._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),h.qZA(),h.TgZ(79,"option",79),h._uU(80,"(GMT +11:30) Norfolk Island"),h.qZA(),h.TgZ(81,"option",80),h._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),h.qZA(),h.TgZ(83,"option",81),h._uU(84,"(GMT +12:45) Chatham Islands"),h.qZA(),h.TgZ(85,"option",82),h._uU(86,"(GMT +13:00) Apia, Nukualofa"),h.qZA(),h.TgZ(87,"option",83),h._uU(88,"(GMT +14:00) Line Islands, Tokelau"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(89,"div",20),h.YNc(90,Go,2,1,"mat-icon",21),h.YNc(91,yo,2,1,"mat-icon",21),h.TgZ(92,"span",22),h._uU(93),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.hij(" ",h.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),h.xp6(83),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Jo(t,e){if(1&t&&(h.TgZ(0,"div",14),h.YNc(1,to,11,5,"div",15),h.YNc(2,oo,11,4,"div",15),h.YNc(3,no,13,6,"div",15),h.YNc(4,uo,13,9,"div",15),h.YNc(5,po,2,1,"div",2),h.YNc(6,Ao,12,6,"div",15),h.YNc(7,fo,10,5,"div",15),h.YNc(8,So,16,11,"div",15),h.YNc(9,xo,12,5,"div",15),h.YNc(10,Ro,19,7,"div",15),h.YNc(11,Uo,5,4,"div",15),h.YNc(12,Po,5,4,"div",2),h.YNc(13,Yo,94,8,"div",15),h.qZA()),2&t){const t=h.oxw().$implicit;h.xp6(1),h.Q6J("ngIf",("TEXTFIELD"===t.type||"VALIDATED_EMAIL"===t.type||"USERNAME"===t.type)&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","FROM_FEDERATION_SHOW"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","PASSWORD"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","RADIO"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf",("HEADING"===t.type||"HTML_COMMENT"===t.type)&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","SELECTIONBOX"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","TEXTAREA"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","COMBOBOX"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","CHECKBOX"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","SUBMIT_BUTTON"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","TIMEZONE"===t.type&&"ALWAYS"!==t.hidden)}}function Vo(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,Jo,14,13,"div",13),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.Q6J("ngIf",i.isValid(t))}}function Fo(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"div",4),h.YNc(2,ji,5,3,"button",5),h.YNc(3,$i,5,3,"button",5),h.TgZ(4,"mat-form-field"),h.TgZ(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"mat-select",6),h.NdJ("valueChange",function(e){return h.CHM(t),h.oxw().currentLanguage=e}),h.YNc(9,Xi,4,6,"mat-option",7),h.qZA(),h.qZA(),h.qZA(),h.TgZ(10,"div",8),h.YNc(11,Vo,2,1,"div",9),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(2),h.Q6J("ngIf",!t.initialPage),h.xp6(1),h.Q6J("ngIf",t.initialPage),h.xp6(3),h.Oqu(h.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),h.xp6(2),h.Q6J("value",t.currentLanguage),h.xp6(1),h.Q6J("ngForOf",t.languages),h.xp6(2),h.Q6J("ngForOf",t.applicationFormItems)}}let Qo=(()=>{class t{constructor(t,e,i){this.route=t,this.translate=e,this.store=i,this.loading=!0,this.applicationFormItems=[],this.currentLanguage="en",this.languages=["en"],this.initialPage=!0,this.mapForCombobox=new Map}ngOnInit(){this.languages=this.store.get("supportedLanguages"),this.route.queryParamMap.subscribe(t=>{this.applicationFormItems=JSON.parse(t.get("applicationFormItems")),this.loading=!1})}switchToInitial(){this.initialPage=!0}switchToExtension(){this.initialPage=!1}getLocalizedOptions(t){if(t.i18n[this.currentLanguage]){const e=t.i18n[this.currentLanguage].options;if(null!==e&&""!==e){const t=[];for(const i of e.split("|"))t.push(i.split("#")[1]);return t}}return[]}isValid(t){if(t.forDelete)return!1;for(const e of t.applicationTypes){if("INITIAL"===e&&this.initialPage)return!0;if("EXTENSION"===e&&!this.initialPage)return!0}return!1}disabledTooltip(t){let e,i,o;switch(t.disabled){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED");case"IF_PREFILLED":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.disabledDependencyItemId).shortname,o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${e} ${i} ${o}`;case"IF_EMPTY":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.disabledDependencyItemId).shortname,o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${e} ${i} ${o}`;default:return""}}hiddenTooltip(t){let e,i,o;switch(t.hidden){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN");case"IF_PREFILLED":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.hiddenDependencyItemId).shortname,o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${e} ${i} ${o}`;case"IF_EMPTY":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.hiddenDependencyItemId).shortname,o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${e} ${i} ${o}`;default:return""}}getLocalizedLabel(t){return t.i18n[this.currentLanguage]&&t.i18n[this.currentLanguage].label?t.i18n[this.currentLanguage].label:t.shortname}getLocalizedHint(t){return t.i18n[this.currentLanguage]?t.i18n[this.currentLanguage].help:""}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(_.sK),h.Y36(u.d6))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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","disabled","",1,"w-100"],["type","text",1,"mb-1","w-100",3,"disabled"],["type","reset",3,"disabled","value"],["type","radio","name","temp",3,"disabled"],[3,"innerHTML"],[1,"w-100",3,"disabled"],[1,"w-50",3,"disabled"],[1,"w-100",3,"ngModel","disabled","ngModelChange"],["value","true","selected",""],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],[1,"w-100"],["type","text"],["type","checkbox",3,"disabled"],["mat-flat-button","","color","accent",3,"disabled"],["class","pointer left",3,"matTooltip",4,"ngIf"],[1,"pointer","left",3,"matTooltip"],["name","timezone_offset","id","timezone-offset",1,"w-100",3,"disabled"],["value","-12:00","selected","selected"],["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"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,Hi,1,0,"mat-spinner",1),h.YNc(4,Fo,12,8,"div",2)),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,T.$g,Te.KE,Te.hX,fe.gD,o.sg,b.lW,Ze.ey,f.Hw,E.gM,he._Y,he.JL,he.F,he.YN,he.Kr,he.EJ,he.JJ,he.On],pipes:[_.X$,o.gd],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function ko(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.hij(" ",h.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function zo(t,e){if(1&t&&h._UZ(0,"app-one-entity-attribute-page",5),2&t){const t=h.oxw();h.Q6J("entity","member")("entityId",t.memberId)}}function Bo(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",h.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function Ho(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",6),2&t){const t=h.oxw(2);h.Q6J("firstEntity","member")("firstEntityId",t.memberId)("secondEntity","group")}}function jo(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,Bo,3,6,"ng-template",1),h.YNc(2,Ho,1,3,"ng-template",2),h.qZA())}function $o(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",h.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Xo(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",6),2&t){const t=h.oxw(2);h.Q6J("firstEntity","member")("firstEntityId",t.memberId)("secondEntity","resource")}}function Wo(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,$o,3,6,"ng-template",1),h.YNc(2,Xo,1,3,"ng-template",2),h.qZA())}function Ko(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.hij(" ",h.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function ta(t,e){if(1&t&&h._UZ(0,"app-one-entity-attribute-page",7),2&t){const t=h.oxw();h.Q6J("entityId",t.member.userId)("entity","user")}}function ea(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",h.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function ia(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",6),2&t){const t=h.oxw(2);h.Q6J("firstEntity","user")("firstEntityId",t.member.userId)("secondEntity","facility")}}function oa(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,ea,3,6,"ng-template",1),h.YNc(2,ia,1,3,"ng-template",2),h.qZA())}let aa=(()=>{class t{constructor(t,e,i){this.route=t,this.authResolver=e,this.memberManager=i}ngOnInit(){this.route.parent.params.subscribe(t=>{this.memberId=t.memberId,this.memberManager.getMemberById(this.memberId).subscribe(t=>{this.member=t,this.memberGroupAttAuth=this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.member]),this.memberResourceAttAuth=this.authResolver.isAuthorized("getAllowedResources_Member_policy",[this.member]),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{beanName:"User",id:t.userId}])})})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(u.x4),h.Y36(l.uq))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:14,vars:6,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[1,"mb-2"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"],[3,"entityId","entity"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-tab-group"),h.TgZ(5,"mat-tab"),h.YNc(6,ko,2,3,"ng-template",1),h.YNc(7,zo,1,2,"ng-template",2),h.qZA(),h.YNc(8,jo,3,0,"mat-tab",3),h.YNc(9,Wo,3,0,"mat-tab",3),h.TgZ(10,"mat-tab",4),h.YNc(11,Ko,2,3,"ng-template",1),h.YNc(12,ta,1,2,"ng-template",2),h.qZA(),h.YNc(13,oa,3,0,"mat-tab",3),h.qZA(),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),h.xp6(6),h.Q6J("ngIf",e.memberGroupAttAuth),h.xp6(1),h.Q6J("ngIf",e.memberResourceAttAuth),h.xp6(4),h.Q6J("ngIf",e.userFacilityAttAuth))},directives:[Di.SP,Di.uX,Di.uD,Di.Vc,o.O5,le.t,Ui.Y],pipes:[_.X$],styles:[""]}),t})(),sa=(()=>{class t{constructor(t,e,i,o,a){this.sideMenuService=t,this.voService=e,this.authResolver=i,this.route=o,this.router=a,this.items=[]}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.initItems()})})}initItems(){this.items=[{cssIcon:"perun-resource",url:`/organizations/${this.vo.id}/resources/preview`,label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}],this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-resource-tags",url:`/organizations/${this.vo.id}/resources/tags`,label:"MENU_ITEMS.VO.RESOURCE_TAGS",style:"vo-btn"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-resources-state",url:`/organizations/${this.vo.id}/resources/states`,label:"MENU_ITEMS.VO.RESOURCE_STATES",style:"vo-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(u.x4),h.Y36(a.gz),h.Y36(a.F0))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-menu-buttons-field",0),h.qZA()),2&t&&(h.xp6(1),h.Q6J("items",e.items)("size","small"))},directives:[k.L],styles:[""]}),t})();var na=i(88227),ra=i(97397),la=i(4230),ca=i(24923);function ua(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function pa(t,e){1&t&&h._UZ(0,"th",15)}function da(t,e){if(1&t&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t.tagName," ")}}function ga(t,e){1&t&&h._UZ(0,"tr",17)}function ha(t,e){1&t&&h._UZ(0,"tr",18)}function ma(t,e){if(1&t&&(h.TgZ(0,"div",7),h.TgZ(1,"p"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",8),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"table",9),h.ynx(8,10),h.YNc(9,pa,1,0,"th",11),h.YNc(10,da,2,1,"td",12),h.BQk(),h.YNc(11,ga,1,0,"tr",13),h.YNc(12,ha,1,0,"tr",14),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),h.xp6(3),h.hij(" ",h.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),h.xp6(2),h.Q6J("dataSource",t.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}let Aa=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.resourceManager=i,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new st.by(this.data.tagsForDelete)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;for(const t of this.data.tagsForDelete)this.resourceManager.deleteResourceTag({resourceTag:t}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.dialogRef.close(!0))}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.xk))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,ua,1,0,"mat-spinner",1),h.YNc(5,ma,13,9,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},directives:[A.uh,o.O5,A.H8,b.lW,T.$g,A.xY,st.BZ,st.w1,st.fO,st.Dz,st.as,st.nj,st.ge,st.ev,st.XQ,st.Gk],pipes:[_.X$],styles:[""]}),t})();var Ia=i(60611),Ta=i(59403),fa=i(19139),Ea=i(4196);function Za(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().create()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function ba(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().deleteTag()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function _a(t,e){1&t&&h._UZ(0,"mat-spinner",9)}function Sa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-resources-tags-list",10),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("selection",t.selection)("pageSize",t.pageSize)("resourceTags",t.resourceTag)("filterValue",t.filterValue)("displayedColumns",t.displayedColumns)("entity","vo")}}let Na=(()=>{class t{constructor(t,e,i,o,a,s,n,r){this.route=t,this.resourceManager=e,this.dialog=i,this.notificator=o,this.tableConfigService=a,this.translator=s,this.authResolver=n,this.voService=r,this.loading=!1,this.resourceTag=[],this.selection=new la.Ov(!0,[]),this.tableId=Ia.O7,this.displayedColumns=[]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.voService.getVoById(this.voId).subscribe(t=>{this.vo=t,this.updateData()})})}deleteTag(){const t=(0,c.kZ)();t.width="450px",t.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(Aa,t).afterClosed().subscribe(t=>{t&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.updateData())})}create(){const t=(0,c.kZ)();t.width="450px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(ca.p,t).afterClosed().subscribe(t=>{t&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.voId).subscribe(t=>{this.resourceTag=t,this.selection.clear(),this.setAuthRights(),this.loading=!1})}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")}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(l.xk),h.Y36(A.uw),h.Y36(u.V6),h.Y36(Ia.dB),h.Y36(_.sK),h.Y36(u.x4),h.Y36(l.YF))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.updateData()}),h.qZA(),h.YNc(4,Za,3,3,"button",2),h.YNc(5,ba,3,4,"button",3),h.TgZ(6,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(7,_a,1,0,"mat-spinner",5),h.YNc(8,Sa,1,6,"app-resources-tags-list",6)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),h.xp6(3),h.Q6J("ngIf",e.createAuth),h.xp6(1),h.Q6J("ngIf",e.deleteAuth),h.xp6(1),h.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[Ta.t,o.O5,fa.L,b.lW,T.$g,Ea.o],pipes:[_.X$],styles:[""]}),t})();function Oa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-expiration-settings",1),h.NdJ("saveAttribute",function(e){return h.CHM(t),h.oxw().saveExpirationAttribute(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("expirationAttribute",t.expirationAttribute)}}let va=(()=>{class t{constructor(t,e,i,o,a){this.attributesManager=t,this.route=e,this.translate=i,this.notificator=o,this.apiRequest=a,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(t=>this.errorMessage=t)}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.groupId=t.groupId,this.loadSettings()})}loadSettings(){this.attributesManager.getGroupAttributeByName(this.groupId,p.r.GROUP_DEF_EXPIRATION_RULES).subscribe(t=>{this.expirationAttribute=t})}saveExpirationAttribute(t){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.groupId,attribute:t}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},t=>this.notificator.showRPCError(t.error,this.errorMessage))}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.H8),h.Y36(a.gz),h.Y36(_.sK),h.Y36(u.V6),h.Y36(u.F5))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&h.YNc(0,Oa,1,1,"app-expiration-settings",0),2&t&&h.Q6J("ngIf",void 0!==e.expirationAttribute)},directives:[o.O5,qe],styles:[""]}),t})();function xa(t,e){if(1&t&&h._UZ(0,"app-managers-page",1),2&t){const t=h.oxw();h.Q6J("complementaryObject",t.group)("complementaryObjectType",t.type)("theme",t.theme)("availableRoles",t.availableRoles)}}let Ca=(()=>{class t{constructor(t,e,i){this.groupService=t,this.route=e,this.guiAuthResolver=i,this.availableRoles=[],this.selected="user",this.type="Group",this.theme="group-theme"}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.groupService.getGroupById(t.groupId).subscribe(t=>{this.group=t})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Group")}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.ff),h.Y36(a.gz),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&h.YNc(0,xa,1,4,"app-managers-page",0),2&t&&h.Q6J("ngIf",e.group)},directives:[o.O5,ye.s],styles:[""]}),t})();function La(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function Ra(t,e){1&t&&h._UZ(0,"th",15)}function Ma(t,e){if(1&t&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.hij(" ",i.getMailType(t)," ")}}function Da(t,e){1&t&&h._UZ(0,"tr",17)}function Ua(t,e){1&t&&h._UZ(0,"tr",18)}function qa(t,e){if(1&t&&(h.TgZ(0,"div",7),h.TgZ(1,"p"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",8),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"table",9),h.ynx(8,10),h.YNc(9,Ra,1,0,"th",11),h.YNc(10,Ma,2,1,"td",12),h.BQk(),h.YNc(11,Da,1,0,"tr",13),h.YNc(12,Ua,1,0,"tr",14),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),h.xp6(3),h.hij(" ",h.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),h.xp6(2),h.Q6J("dataSource",t.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}let wa=(()=>{class t{constructor(t,e,i,o,a){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=o,this.registrarService=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new st.by(this.data.mails)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.groupId)for(const t of this.data.mails)this.registrarService.deleteApplicationMailForGroup(this.data.groupId,t.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1);else for(const t of this.data.mails)this.registrarService.deleteApplicationMailForVo(this.data.voId,t.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getMailType(t){let e="";return null==t.mailType||""===t.mailType?e="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+t.mailType).subscribe(t=>{e=t}),e}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(u.V6),h.Y36(_.sK),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,La,1,0,"mat-spinner",1),h.YNc(5,qa,13,9,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},directives:[A.uh,o.O5,A.H8,b.lW,T.$g,A.xY,st.BZ,st.w1,st.fO,st.Dz,st.as,st.nj,st.ge,st.ev,st.XQ,st.Gk],pipes:[_.X$],styles:[""]}),t})();var Pa=i(10901);function Ga(t,e){1&t&&h._UZ(0,"mat-spinner",7)}function ya(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",8),h.TgZ(1,"div"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-form-field"),h.TgZ(5,"textarea",9),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().mailFooter=e}),h.qZA(),h.qZA(),h.TgZ(6,"div",10),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.LABEL"),": "),h.xp6(3),h.Q6J("cdkTextareaAutosize",!0)("ngModel",t.mailFooter),h.xp6(2),h.Oqu(h.lcZ(8,6,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION"))}}let Ya=(()=>{class t{constructor(t,e,i,o,a){this.dialogRef=t,this.attributesManager=e,this.translateService=i,this.notificator=o,this.data=a,this.mailFooter="",this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}submit(){this.loading=!0,this.mailAttribute.value=this.mailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe(()=>{this.notificateSuccess(),this.dialogRef.close()},()=>this.loading=!1):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe(()=>{this.notificateSuccess(),this.dialogRef.close()},()=>this.loading=!1)}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,p.r.VO_DEF_MAIL_FOOTER).subscribe(t=>{this.mailAttribute=t,this.editAuth=this.mailAttribute.writable,this.mailFooter=t.value?t.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,p.r.GROUP_DEF_MAIL_FOOTER).subscribe(t=>{this.mailAttribute=t,this.editAuth=this.mailAttribute.writable,this.mailFooter=t.value?t.value:""})}notificateSuccess(){this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close()})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(l.H8),h.Y36(_.sK),h.Y36(u.V6),h.Y36(A.WI))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["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"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"mt-2","font-italic","text-muted"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Ga,1,0,"mat-spinner",1),h.YNc(5,ya,9,8,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.cancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"div",5),h.ALo(11,"translate"),h.TgZ(12,"button",6),h.NdJ("click",function(){return e.submit()}),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),h.xp6(2),h.s9C("matTooltip",h.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),h.Q6J("matTooltipDisabled",e.editAuth)("matTooltipPosition","above"),h.xp6(2),h.Q6J("disabled",e.loading||!e.editAuth),h.xp6(1),h.hij(" ",h.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},directives:[A.uh,o.O5,A.H8,b.lW,E.gM,T.$g,A.xY,Te.KE,Ee.Nt,Pa.IC,he.Fj,he.JJ,he.On],pipes:[_.X$],styles:[""]}),t})();var Ja=i(4253);function Va(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"div",1),h.TgZ(2,"button",2),h.NdJ("click",function(){const e=h.CHM(t).$implicit;return h.oxw().addTag("{"+e[0]+"}")}),h.ALo(3,"translate"),h._uU(4),h.qZA(),h.TgZ(5,"span",3),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.qZA(),h._UZ(8,"mat-divider",4),h.qZA()}if(2&t){const t=e.$implicit;h.xp6(2),h.s9C("matTooltip",h.lcZ(3,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAG_HINT")),h.xp6(2),h.hij(" ",t[0]," "),h.xp6(2),h.hij(" ",h.lcZ(7,5,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+t[1])," ")}}let Fa=(()=>{class t{constructor(){this.tags=[],this.addedTag=new h.vpe}addTag(t){this.addedTag.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&h.YNc(0,Va,9,7,"div",0),2&t&&h.Q6J("ngForOf",e.tags)},directives:[o.sg,b.lW,E.gM,ii.d],pipes:[_.X$],styles:[".tag-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}"]}),t})(),Qa=(()=>{class t{constructor(){this.addedTag=new h.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 t=[];t.push(["appId","APPID_DESCRIPTION"]),t.push(["actor","ACTOR_DESCRIPTION"]),t.push(["extSource","EXTSOURCE_DESCRIPTION"]),t.push(["voName","VONAME_DESCRIPTION"]),t.push(["groupName","GROUPNAME_DESCRIPTION"]),t.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),t.push(["errors","ERRORS_DESCRIPTION"]),t.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),t.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=t}getUserRelatedTags(){const t=[];t.push(["firstName","FIRSTNAME_DESCRIPTION"]),t.push(["lastName","LASTNAME_DESCRIPTION"]),t.push(["displayName","DISPLAYNAME_DESCRIPTION"]),t.push(["mail","MAIL_DESCRIPTION"]),t.push(["phone","PHONE_DESCRIPTION"]),t.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),t.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=t}getValidationLinksUsersTags(){const t=[];t.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),t.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),t.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),t.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),t.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),t.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=t}getApplicationLinksUsersTags(){const t=[];t.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),t.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),t.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),t.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),t.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=t}getApplicationLinksAdministratorsTags(){const t=[];t.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),t.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),t.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),t.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),this.applicationLinksAdministratorsTags=t}getPerunLinksAdministratorsTags(){const t=[];t.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),t.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),t.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),t.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),this.perunLinksAdministratorsTags=t}getUserInvitationsTags(){const t=[];t.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),t.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),t.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),t.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),t.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),t.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),t.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),t.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),t.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=t}addTag(t){this.addedTag.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"app-alert",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1),h.TgZ(4,"div",2),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(8,"div",4),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(12,"div",4),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"div",5),h._uU(16),h.ALo(17,"translate"),h.qZA(),h.TgZ(18,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(19,"div",4),h._uU(20),h.ALo(21,"translate"),h.qZA(),h.TgZ(22,"div",5),h._uU(23),h.ALo(24,"translate"),h.qZA(),h.TgZ(25,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(26,"div",4),h._uU(27),h.ALo(28,"translate"),h.qZA(),h.TgZ(29,"div",5),h._uU(30),h.ALo(31,"translate"),h.qZA(),h.TgZ(32,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(33,"div",4),h._uU(34),h.ALo(35,"translate"),h.qZA(),h.TgZ(36,"div",5),h._uU(37),h.ALo(38,"translate"),h.qZA(),h.TgZ(39,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(40,"div",4),h._uU(41),h.ALo(42,"translate"),h.qZA(),h.TgZ(43,"div",5),h._uU(44),h.ALo(45,"translate"),h.qZA(),h.TgZ(46,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),h.xp6(4),h.hij("",h.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),":"),h.xp6(2),h.Q6J("tags",e.applicationRelatedTags),h.xp6(2),h.hij("",h.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),":"),h.xp6(2),h.Q6J("tags",e.userRelatedTags),h.xp6(2),h.hij("",h.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),":"),h.xp6(3),h.hij(" ",h.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.validationLinksUsersTags),h.xp6(2),h.hij("",h.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),":"),h.xp6(3),h.hij(" ",h.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.applicationLinksUsersTags),h.xp6(2),h.hij("",h.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),":"),h.xp6(3),h.hij(" ",h.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.applicationLinksAdministratorsTags),h.xp6(2),h.hij("",h.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),":"),h.xp6(3),h.hij(" ",h.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.perunLinksAdministratorsTags),h.xp6(2),h.hij("",h.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),":"),h.xp6(3),h.hij(" ",h.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.userInvitationsTags))},directives:[pt.w,Ja.PQ,Fa],pipes:[_.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),t})();function ka(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",9),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function za(t,e){1&t&&(h.TgZ(0,"h1",9),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function Ba(t,e){1&t&&h._UZ(0,"mat-spinner",10)}function Ha(t,e){1&t&&(h.TgZ(0,"div",34),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function ja(t,e){1&t&&(h.TgZ(0,"div",34),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function $a(t,e){1&t&&(h.TgZ(0,"mat-option",36),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function Xa(t,e){1&t&&(h.TgZ(0,"div",34),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function Wa(t,e){1&t&&(h.TgZ(0,"div",34),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function Ka(t,e){1&t&&h._UZ(0,"mat-divider",50)}function ts(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",38),h.TgZ(1,"div",39),h.TgZ(2,"div",40),h.TgZ(3,"button",41),h.NdJ("click",function(){h.CHM(t);const e=h.oxw(3);return e.showTags=!e.showTags}),h._uU(4),h.ALo(5,"translate"),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"span",42),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"mat-form-field",18),h.TgZ(11,"input",43,44),h.NdJ("focus",function(){return h.CHM(t),h.oxw(3).isTextFocused=!1})("ngModelChange",function(e){h.CHM(t);const i=h.oxw().$implicit;return h.oxw(2).applicationMail.message[i].subject=e}),h.qZA(),h.qZA(),h.qZA(),h.TgZ(13,"div",45),h._uU(14),h.ALo(15,"translate"),h.qZA(),h.TgZ(16,"mat-form-field",18),h.TgZ(17,"textarea",46,47),h.NdJ("focus",function(){return h.CHM(t),h.oxw(3).isTextFocused=!0})("ngModelChange",function(e){h.CHM(t);const i=h.oxw().$implicit;return h.oxw(2).applicationMail.message[i].text=e}),h._uU(19," "),h.qZA(),h.qZA(),h.qZA(),h.YNc(20,Ka,1,0,"mat-divider",48),h.TgZ(21,"div"),h.TgZ(22,"app-tag-bar",49),h.NdJ("addedTag",function(e){h.CHM(t);const i=h.MAs(12),o=h.MAs(18),a=h.oxw().$implicit;return h.oxw(2).addTag(i,o,a,e)}),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw().$implicit,e=h.oxw(2);h.xp6(4),h.hij(" ",e.showTags?h.lcZ(5,7,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):h.lcZ(6,9,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),h.xp6(4),h.hij(" ",h.lcZ(9,11,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT"),": "),h.xp6(3),h.Q6J("ngModel",e.applicationMail.message[t].subject),h.xp6(3),h.hij(" ",h.lcZ(15,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),h.xp6(3),h.Q6J("ngModel",e.applicationMail.message[t].text),h.xp6(3),h.Q6J("ngIf",e.showTags),h.xp6(1),h.Q6J("@tagsOpenClose",e.showTags?"open":"closed")}}function es(t,e){1&t&&(h.TgZ(0,"mat-tab",14),h.ALo(1,"translate"),h.ALo(2,"uppercase"),h.YNc(3,ts,23,15,"ng-template",37),h.qZA()),2&t&&h.s9C("label",h.lcZ(1,1,h.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+e.$implicit)))}function is(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",11),h.TgZ(1,"div"),h.TgZ(2,"app-alert",12),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.qZA(),h.TgZ(5,"mat-tab-group",13),h.TgZ(6,"mat-tab",14),h.ALo(7,"translate"),h.TgZ(8,"div",15),h.TgZ(9,"span",16),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"div",17),h.TgZ(13,"mat-form-field",18),h.TgZ(14,"mat-select",19),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().applicationMail.mailType=e})("selectionChange",function(){return h.CHM(t),h.oxw().notificationExist()}),h.TgZ(15,"mat-option",20),h._uU(16),h.ALo(17,"translate"),h.qZA(),h.TgZ(18,"mat-option",21),h._uU(19),h.ALo(20,"translate"),h.qZA(),h.TgZ(21,"mat-option",22),h._uU(22),h.ALo(23,"translate"),h.qZA(),h.TgZ(24,"mat-option",23),h._uU(25),h.ALo(26,"translate"),h.qZA(),h.TgZ(27,"mat-option",24),h._uU(28),h.ALo(29,"translate"),h.qZA(),h.TgZ(30,"mat-option",25),h._uU(31),h.ALo(32,"translate"),h.qZA(),h.TgZ(33,"mat-option",26),h._uU(34),h.ALo(35,"translate"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(36,"div",27),h._UZ(37,"span",28),h.YNc(38,Ha,3,3,"div",29),h.YNc(39,ja,3,3,"div",29),h.qZA(),h.TgZ(40,"div",15),h.TgZ(41,"span",30),h._uU(42),h.ALo(43,"translate"),h.qZA(),h.TgZ(44,"div",17),h.TgZ(45,"mat-form-field",18),h.TgZ(46,"mat-select",19),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().applicationMail.appType=e})("selectionChange",function(){return h.CHM(t),h.oxw().notificationExist()}),h.TgZ(47,"mat-option",31),h._uU(48),h.ALo(49,"translate"),h.qZA(),h.YNc(50,$a,3,3,"mat-option",32),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(51,"div",27),h._UZ(52,"span",28),h.YNc(53,Xa,3,3,"div",29),h.YNc(54,Wa,3,3,"div",29),h.qZA(),h.TgZ(55,"div",15),h.TgZ(56,"span",30),h._uU(57),h.ALo(58,"translate"),h.qZA(),h.TgZ(59,"div",17),h.TgZ(60,"mat-checkbox",33),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().applicationMail.send=e}),h.qZA(),h.qZA(),h.qZA(),h.TgZ(61,"div",27),h._UZ(62,"span",28),h.TgZ(63,"div",34),h._uU(64),h.ALo(65,"translate"),h.qZA(),h.qZA(),h.qZA(),h.YNc(66,es,4,5,"mat-tab",35),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.Q6J("@openClose",t.invalidNotification?"open":"closed"),h.xp6(2),h.Oqu(h.lcZ(4,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),h.xp6(3),h.s9C("label",h.lcZ(7,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),h.xp6(4),h.hij("",h.lcZ(11,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),h.xp6(4),h.Q6J("ngModel",t.applicationMail.mailType)("disabled",!t.data.createMailNotification),h.xp6(2),h.hij(" ",h.lcZ(17,32,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),h.xp6(3),h.hij(" ",h.lcZ(20,34,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),h.xp6(3),h.hij(" ",h.lcZ(23,36,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),h.xp6(3),h.hij(" ",h.lcZ(26,38,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),h.xp6(3),h.hij(" ",h.lcZ(29,40,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),h.xp6(3),h.hij(" ",h.lcZ(32,42,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),h.xp6(3),h.hij(" ",h.lcZ(35,44,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),h.xp6(4),h.Q6J("ngIf",!t.data.createMailNotification),h.xp6(1),h.Q6J("ngIf",t.data.createMailNotification),h.xp6(3),h.hij("",h.lcZ(43,46,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),h.xp6(4),h.Q6J("ngModel",t.applicationMail.appType)("disabled",!t.data.createMailNotification),h.xp6(2),h.hij(" ",h.lcZ(49,48,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),h.xp6(2),h.Q6J("ngIf","USER_INVITE"!==t.applicationMail.mailType),h.xp6(3),h.Q6J("ngIf",!t.data.createMailNotification),h.xp6(1),h.Q6J("ngIf",t.data.createMailNotification),h.xp6(3),h.hij("",h.lcZ(58,50,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),h.xp6(3),h.Q6J("ngModel",t.applicationMail.send),h.xp6(4),h.hij(" ",h.lcZ(65,52,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),h.xp6(2),h.Q6J("ngForOf",t.languages)}}function os(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",51),h.NdJ("click",function(){return h.CHM(t),h.oxw().create()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",t.invalidNotification||t.loading),h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function as(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",51),h.NdJ("click",function(){return h.CHM(t),h.oxw().save()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",t.loading||!t.editAuth),h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}let ss=(()=>{class t{constructor(t,e,i,o,a,s){this.dialogRef=t,this.registrarService=e,this.data=i,this.authResolver=o,this.groupsService=a,this.store=s,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"]}ngOnInit(){this.languages=this.store.get("supportedLanguages"),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(t=>{this.editAuth=this.authResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[t])}):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(t,e,i,o){let a;a=this.isTextFocused?e:t;const s=a.selectionStart;this.isTextFocused?this.applicationMail.message[i].text=this.applicationMail.message[i].text.substring(0,s)+o+this.applicationMail.message[i].text.substring(s):this.applicationMail.message[i].subject=this.applicationMail.message[i].subject.substring(0,s)+o+this.applicationMail.message[i].subject.substring(s),a.focus()}notificationExist(){for(const t of this.data.applicationMails)if(t.mailType===this.applicationMail.mailType&&t.appType===this.applicationMail.appType)return void(this.invalidNotification=!0);this.invalidNotification=!1}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(l.tk),h.Y36(A.WI),h.Y36(u.x4),h.Y36(l.ff),h.Y36(u.d6))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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","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","EXTENSION"],["matTabContent",""],[1,"d-flex","w-100"],[1,"pr-2","w-100"],[1,"pt-2"],["mat-stroked-button","",1,"right-button",3,"click"],[1,"font-weight-bold","pr-2"],["matInput","",3,"ngModel","focus","ngModelChange"],["Input",""],[1,"font-weight-bold"],["matInput","","rows","17",3,"ngModel","focus","ngModelChange"],["Textarea",""],["class","ml-3 mr-3","vertical","true",4,"ngIf"],[3,"addedTag"],["vertical","true",1,"ml-3","mr-3"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",0),h.YNc(2,ka,4,3,"div",1),h.YNc(3,za,3,3,"ng-template",null,2,h.W1O),h.YNc(5,Ba,1,0,"mat-spinner",3),h.YNc(6,is,67,54,"div",4),h.TgZ(7,"div",5),h.TgZ(8,"button",6),h.NdJ("click",function(){return e.cancel()}),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.YNc(11,os,3,4,"button",7),h.TgZ(12,"div",8),h.ALo(13,"translate"),h.YNc(14,as,3,4,"button",7),h.qZA(),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.MAs(4);h.Gre("",e.theme," h-100"),h.xp6(2),h.Q6J("ngIf",e.data.createMailNotification)("ngIfElse",t),h.xp6(3),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),h.xp6(2),h.Q6J("ngIf",e.data.createMailNotification),h.xp6(1),h.s9C("matTooltip",h.lcZ(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),h.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.editAuth),h.xp6(2),h.Q6J("ngIf",!e.data.createMailNotification)}},directives:[o.O5,A.H8,b.lW,E.gM,A.uh,T.$g,A.xY,pt.w,Di.SP,Di.uX,Te.KE,fe.gD,he.JJ,he.On,Ze.ey,be.oG,o.sg,Di.Vc,Ee.Nt,he.Fj,Qa,ii.d],pipes:[_.X$,o.gd],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}"],data:{animation:[r.es,r.BQ]}}),t})();var ns=i(19386);function rs(t,e){1&t&&h._UZ(0,"mat-spinner",9)}let ls=(()=>{class t{constructor(t,e,i,o,a,s){this.dialogRef=t,this.voService=e,this.groupService=i,this.translateService=o,this.registrarService=a,this.data=s,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=t=>t.name}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(t=>{this.fakeGroup={id:-1,name:t,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},this.selectedGroup=this.fakeGroup,this.voService.getAllVos().subscribe(t=>{this.vos=t,this.vos=t.sort((t,e)=>t.name>e.name?1:t.namethis.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(t){this.selectedVo=t,this.getGroups()}getGroups(){null!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(t=>{this.groups=[this.fakeGroup].concat(t)}):this.groups=[this.fakeGroup]}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(l.YF),h.Y36(l.ff),h.Y36(_.sK),h.Y36(l.tk),h.Y36(A.WI))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,rs,1,0,"mat-spinner",1),h.TgZ(5,"div",2),h.TgZ(6,"div",3),h._uU(7),h.ALo(8,"translate"),h.qZA(),h._uU(9),h.ALo(10,"translate"),h.TgZ(11,"perun-web-apps-vo-search-select",4),h.NdJ("voSelected",function(t){return e.voSelected(t)}),h.qZA(),h._uU(12),h.ALo(13,"translate"),h.TgZ(14,"perun-web-apps-group-search-select",5),h.NdJ("groupSelected",function(t){return e.selectedGroup=t}),h.qZA(),h.qZA(),h.TgZ(15,"div",6),h.TgZ(16,"button",7),h.NdJ("click",function(){return e.cancel()}),h._uU(17),h.ALo(18,"translate"),h.qZA(),h.TgZ(19,"button",8),h.NdJ("click",function(){return e.submit()}),h._uU(20),h.ALo(21,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,15,"DIALOGS.NOTIFICATIONS_COPY_MAILS.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("hidden",e.loading),h.xp6(2),h.Oqu(h.lcZ(8,17,"DIALOGS.NOTIFICATIONS_COPY_MAILS.DESCRIPTION")),h.xp6(2),h.hij(" ",h.lcZ(10,19,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_VO"),": "),h.xp6(2),h.Q6J("vos",e.vos),h.xp6(1),h.hij(" ",h.lcZ(13,21,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_GROUP"),": "),h.xp6(2),h.Q6J("groups",e.groups)("disableAutoSelect",!0),h.xp6(3),h.hij(" ",h.lcZ(18,23,"DIALOGS.NOTIFICATIONS_COPY_MAILS.CANCEL_BUTTON")," "),h.xp6(2),h.Q6J("disabled",null===e.selectedVo||null===e.selectedGroup||e.loading),h.xp6(1),h.hij(" ",h.lcZ(21,25,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SUBMIT_BUTTON")," "))},directives:[A.uh,o.O5,A.xY,ns.M,ut.h,A.H8,b.lW,T.$g],pipes:[_.X$],styles:[""],data:{animation:[r.BQ]}}),t})();var cs=i(58623),us=i(82819);function ps(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"th",13),h.TgZ(1,"mat-checkbox",14),h.NdJ("change",function(e){h.CHM(t);const i=h.oxw();return e?i.masterToggle():null}),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function ds(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"td",15),h.TgZ(1,"mat-checkbox",16),h.NdJ("change",function(e){const i=h.CHM(t).$implicit,o=h.oxw();return e?o.toggle(i):null})("click",function(t){return t.stopPropagation()}),h.qZA(),h.qZA()}if(2&t){const t=e.$implicit,i=h.oxw();h.xp6(1),h.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function gs(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function hs(t,e){if(1&t&&(h.TgZ(0,"td",15),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t.id)}}function ms(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function As(t,e){if(1&t&&(h.TgZ(0,"td",18),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw();h.xp6(1),h.Oqu(i.getMailType(t))}}function Is(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function Ts(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"mat-icon",21),h._uU(2,"arrow_right_alt"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()),2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_INITIAL")," "))}function fs(t,e){1&t&&(h.TgZ(0,"mat-icon",22),h._uU(1,"cached"),h.qZA(),h._uU(2),h.ALo(3,"translate")),2&t&&(h.xp6(2),h.hij(" ",h.lcZ(3,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_EXTENSION")," "))}function Es(t,e){if(1&t&&(h.TgZ(0,"td",18),h.YNc(1,Ts,5,3,"div",19),h.YNc(2,fs,4,3,"ng-template",null,20,h.W1O),h.qZA()),2&t){const t=e.$implicit,i=h.MAs(3);h.xp6(1),h.Q6J("ngIf","INITIAL"===t.appType)("ngIfElse",i)}}function Zs(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function bs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"td",18),h.TgZ(1,"section"),h.TgZ(2,"mat-checkbox",23),h.NdJ("change",function(){const e=h.CHM(t).$implicit;return h.oxw().changeSending(e)})("click",function(t){return t.stopPropagation()}),h.ALo(3,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=e.$implicit,i=h.oxw();h.xp6(2),h.s9C("matTooltip",h.lcZ(3,4,"VO_DETAIL.SETTINGS.NOTIFICATIONS.DISABLED_HINT")),h.Q6J("disabled",i.disableSend)("matTooltipDisabled",!i.disableSend)("ngModel",t.send)}}function _s(t,e){1&t&&h._UZ(0,"tr",24)}function Ss(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"tr",25),h.NdJ("click",function(){const e=h.CHM(t).$implicit;return h.oxw().openApplicationMailDetail(e)}),h.qZA()}2&t&&h.ekj("cursor-pointer",!0)}let Ns=(()=>{class t{constructor(t,e,i,o,a,s){this.registrarService=t,this.translate=e,this.notificator=i,this.dialog=o,this.authResolver=a,this.tableCheckbox=s,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new la.Ov(!0,[]),this.pageSize=10,this.selectionChange=new h.vpe,this.page=new h.vpe,this.pageSizeOptions=c.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new st.by(this.applicationMails),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeSending(t){t.send?this.registrarService.setSendingEnabled({mails:[t],enabled:!1}).subscribe(()=>{t.send=!1}):this.registrarService.setSendingEnabled({mails:[t],enabled:!0}).subscribe(()=>{t.send=!0})}openApplicationMailDetail(t){const e=(0,c.kZ)();e.width="1400px",e.height="700px",e.data={theme:this.theme,voId:this.voId,groupId:this.groupId,createMailNotification:!1,applicationMail:t},this.dialog.open(ss,e).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.EDIT_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.selectionChange.emit(this.selection),this.update())})}getMailType(t){let e="";return null==t.mailType||""===t.mailType?e="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+t.mailType).subscribe(t=>{e=t}),e}update(){this.groupId?this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(t=>{this.updateTable(t)}):this.registrarService.getApplicationMailsForVo(this.voId).subscribe(t=>{this.updateTable(t)})}toggle(t){this.selection.toggle(t),this.selectionChange.emit(this.selection)}updateTable(t){this.applicationMails=t,this.dataSource=new st.by(this.applicationMails),this.setDataSource()}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.tk),h.Y36(_.sK),h.Y36(u.V6),h.Y36(A.uw),h.Y36(u.x4),h.Y36(u.UA))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-notification-list"]],viewQuery:function(t,e){if(1&t&&(h.Gf(cs.YE,7),h.Gf(c.l9,7)),2&t){let t;h.iGM(t=h.CRH())&&(e.matSort=t.first),h.iGM(t=h.CRH())&&(e.child=t.first)}},inputs:{applicationMails:"applicationMails",voId:"voId",groupId:"groupId",displayedColumns:"displayedColumns",disableSend:"disableSend",selection:"selection",pageSize:"pageSize",theme:"theme"},outputs:{selectionChange:"selectionChange",page:"page"},features:[h.TTD],decls:19,vars:7,consts:[[3,"dataLength","hideExport","pageSizeOptions","pageSize","page"],["mat-table","","matSort","","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["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"]],template:function(t,e){1&t&&(h.TgZ(0,"perun-web-apps-table-wrapper",0),h.NdJ("page",function(t){return e.page.emit(t)}),h.TgZ(1,"table",1),h.ynx(2,2),h.YNc(3,ps,2,3,"th",3),h.YNc(4,ds,2,2,"td",4),h.BQk(),h.ynx(5,5),h.YNc(6,gs,3,3,"th",6),h.YNc(7,hs,2,1,"td",4),h.BQk(),h.ynx(8,7),h.YNc(9,ms,3,3,"th",6),h.YNc(10,As,2,1,"td",8),h.BQk(),h.ynx(11,9),h.YNc(12,Is,3,3,"th",6),h.YNc(13,Es,4,2,"td",8),h.BQk(),h.ynx(14,10),h.YNc(15,Zs,3,3,"th",6),h.YNc(16,bs,4,6,"td",8),h.BQk(),h.YNc(17,_s,1,0,"tr",11),h.YNc(18,Ss,1,2,"tr",12),h.qZA(),h.qZA()),2&t&&(h.Q6J("dataLength",e.dataSource.filteredData.length)("hideExport",!0)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),h.xp6(1),h.Q6J("dataSource",e.dataSource),h.xp6(16),h.Q6J("matHeaderRowDef",e.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",e.displayedColumns))},directives:[us.l,st.BZ,cs.YE,st.w1,st.fO,st.Dz,st.as,st.nj,st.ge,be.oG,st.ev,cs.nU,o.O5,f.Hw,E.gM,he.JJ,he.On,st.XQ,st.Gk],pipes:[_.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function Os(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",9),h.NdJ("click",function(){return h.CHM(t),h.oxw().add()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function vs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",10),h.NdJ("click",function(){return h.CHM(t),h.oxw().remove()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function xs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",11),h.NdJ("click",function(){return h.CHM(t),h.oxw().changeEmailFooter()}),h.TgZ(1,"i",12),h._uU(2,"email"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "))}function Cs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",13),h.NdJ("click",function(){return h.CHM(t),h.oxw().copy()}),h.TgZ(1,"i",12),h._uU(2,"file_copy"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Ls(t,e){1&t&&h._UZ(0,"mat-spinner",14)}function Rs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",15),h.TgZ(1,"app-notification-list",16),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)})("selectionChange",function(e){return h.CHM(t),h.oxw().changeSelection(e)}),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.Q6J("applicationMails",t.applicationMails)("pageSize",t.pageSize)("voId",t.voId)("displayedColumns",t.displayedColumns)("disableSend",!t.addAuth)("selection",t.selection)("theme","vo-theme")}}function Ms(t,e){1&t&&(h.TgZ(0,"app-alert",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.Q6J("alert_type","warn"),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}let Ds=(()=>{class t{constructor(t,e,i,o,a,s,n,r,l){this.route=t,this.registrarService=e,this.translate=i,this.dialog=o,this.tableConfigService=a,this.notificator=s,this.authResolver=n,this.voService=r,this.store=l,this.loading=!1,this.applicationMails=[],this.selection=new la.Ov(!0,[]),this.tableId=Ia.VR,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.registrarService.getVoApplicationForm(this.voId).subscribe(t=>{this.applicationForm=t,this.registrarService.getApplicationMailsForVo(this.voId).subscribe(t=>{this.applicationMails=t,this.voService.getVoById(this.voId).subscribe(t=>{this.vo=t,this.setAuthRights(),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 t=this.store.get("supportedLanguages"),e=(0,c.i5)(t);e.formId=this.applicationForm.id;const i=(0,c.kZ)();i.width="1400px",i.height="700px",i.data={theme:"vo-theme",voId:this.voId,createMailNotification:!0,applicationMail:e,applicationMails:this.applicationMails},this.dialog.open(ss,i).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}remove(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.voId,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(wa,t).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}copy(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(ls,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForVo(this.voId).subscribe(t=>{this.applicationMails=t,this.loading=!1})}changeEmailFooter(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(Ya,t)}changeSelection(t){this.selection=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(l.tk),h.Y36(_.sK),h.Y36(A.uw),h.Y36(Ia.dB),h.Y36(u.V6),h.Y36(u.x4),h.Y36(l.YF),h.Y36(u.d6))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-notifications"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:11,vars:10,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["class","card mt-2",4,"ngIf"],[3,"alert_type",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],["mat-stroked-button","",3,"click"],[1,"ml-auto","mr-auto"],[1,"card","mt-2"],[3,"applicationMails","pageSize","voId","displayedColumns","disableSend","selection","theme","page","selectionChange"],[3,"alert_type"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1),h.YNc(4,Os,3,3,"button",2),h.YNc(5,vs,3,4,"button",3),h.YNc(6,xs,5,3,"button",4),h.YNc(7,Cs,5,3,"button",5),h.qZA(),h.YNc(8,Ls,1,0,"mat-spinner",6),h.YNc(9,Rs,2,7,"div",7),h.YNc(10,Ms,3,4,"app-alert",8)),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,8,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),h.xp6(3),h.Q6J("ngIf",!e.loading&&e.addAuth),h.xp6(1),h.Q6J("ngIf",!e.loading&&e.removeAuth),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading&&e.copyAuth),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",0!==e.applicationMails.length&&!e.loading),h.xp6(1),h.Q6J("ngIf",0===e.applicationMails.length&&!e.loading))},directives:[o.O5,b.lW,T.$g,Ns,pt.w],pipes:[_.X$],styles:[""]}),t})();var Us=i(65423);function qs(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function ws(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",12),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).add()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function Ps(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",13),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).remove()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Gs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",14),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).copy()}),h.TgZ(1,"i",8),h._uU(2,"file_copy"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function ys(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",15),h.TgZ(1,"app-notification-list",16),h.NdJ("page",function(e){return h.CHM(t),h.oxw(2).pageChanged(e)})("selectionChange",function(e){return h.CHM(t),h.oxw(2).changeSelection(e)}),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(1),h.Q6J("disableSend",!t.addAuth)("displayedColumns",t.displayedColumns)("applicationMails",t.applicationMails)("pageSize",t.pageSize)("groupId",t.groupId)("selection",t.selection)("theme","group-theme")}}function Ys(t,e){1&t&&(h.TgZ(0,"app-alert",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS")," "))}function Js(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"div",4),h.YNc(2,ws,3,3,"button",5),h.YNc(3,Ps,3,4,"button",6),h.TgZ(4,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().changeEmailFooter()}),h.TgZ(5,"i",8),h._uU(6,"email"),h.qZA(),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.YNc(9,Gs,5,3,"button",9),h.qZA(),h.YNc(10,ys,2,7,"div",10),h.YNc(11,Ys,3,3,"app-alert",11),h.qZA()}if(2&t){const t=h.oxw();h.xp6(2),h.Q6J("ngIf",t.addAuth),h.xp6(1),h.Q6J("ngIf",t.removeAuth),h.xp6(4),h.hij(" ",h.lcZ(8,6,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),h.xp6(2),h.Q6J("ngIf",t.copyAuth),h.xp6(1),h.Q6J("ngIf",0!==t.applicationMails.length),h.xp6(1),h.Q6J("ngIf",0===t.applicationMails.length)}}function Vs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",19),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).createEmptyApplicationForm()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.CREATE_APPLICATION_FORM")," "))}function Fs(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"app-alert",17),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Vs,3,3,"button",18),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.Oqu(h.lcZ(3,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_APPLICATION_FORM")),h.xp6(2),h.Q6J("ngIf",t.createFormAuth)}}let Qs=(()=>{class t{constructor(t,e,i,o,a,s,n,r,l,c){this.route=t,this.registrarService=e,this.translate=i,this.dialog=o,this.apiRequest=a,this.tableConfigService=s,this.notificator=n,this.groupsService=r,this.guiAuthResolver=l,this.attributesService=c,this.loading=!1,this.applicationMails=[],this.selection=new la.Ov(!0,[]),this.noApplicationForm=!1,this.editEmailFooterAuth=!1,this.addAuth=!1,this.removeAuth=!1,this.copyAuth=!1,this.createFormAuth=!1,this.displayedColumns=[],this.tableId=Ia.AA}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.groupId=t.groupId,this.groupsService.getGroupById(this.groupId).subscribe(t=>{this.group=t,this.apiRequest.dontHandleErrorForNext(),this.registrarService.getGroupApplicationForm(this.groupId).subscribe(t=>{this.applicationForm=t,this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(t=>{this.applicationMails=t,this.apiRequest.dontHandleErrorForNext(),this.attributesService.getGroupAttributeByName(this.groupId,p.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.setAuthRights(),this.loading=!1},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t),this.setAuthRights(),this.loading=!1})})},t=>{"FormNotExistsException"===t.error.name?(this.setAuthRights(),this.loading=!1):this.notificator.showRPCError(t)})})})}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 t=(0,c.i5)();t.formId=this.applicationForm.id;const e=(0,c.kZ)();e.width="1400px",e.height="700px",e.data={theme:"group-theme",voId:this.voId,groupId:this.groupId,createMailNotification:!0,applicationMail:t,applicationMails:this.applicationMails},this.dialog.open(ss,e).afterClosed().subscribe(t=>{t&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}remove(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.voId,groupId:this.groupId,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(wa,t).afterClosed().subscribe(t=>{t&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}copy(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.voId,groupId:this.groupId,theme:"group-theme"},this.dialog.open(ls,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(t=>{this.applicationMails=t,this.loading=!1})}changeEmailFooter(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.voId,groupId:this.groupId,theme:"group-theme"},this.dialog.open(Ya,t)}changeSelection(t){this.selection=t}createEmptyApplicationForm(){this.registrarService.createApplicationFormInGroup(this.groupId).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(l.tk),h.Y36(_.sK),h.Y36(A.uw),h.Y36(u.F5),h.Y36(Ia.dB),h.Y36(u.V6),h.Y36(l.ff),h.Y36(u.x4),h.Y36(l.H8))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-notifications"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-100","d-flex"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],["mat-stroked-button","","class","ml-auto",3,"click",4,"ngIf"],["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"ml-auto",3,"click"],[1,"card","mt-2"],[3,"disableSend","displayedColumns","applicationMails","pageSize","groupId","selection","theme","page","selectionChange"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,qs,1,0,"mat-spinner",1),h.YNc(4,Js,12,8,"div",2),h.YNc(5,Fs,5,4,"div",2)),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,4,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.noApplicationForm&&!e.loading),h.xp6(1),h.Q6J("ngIf",e.noApplicationForm&&!e.loading))},directives:[o.O5,T.$g,b.lW,Ns,pt.w],pipes:[_.X$],styles:[""]}),t})();var ks=i(4359);function zs(t,e){1&t&&h._UZ(0,"mat-spinner",8)}function Bs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",9),h.TgZ(1,"app-ext-sources-list",10),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.Q6J("pageSize",t.pageSize)("extSources",t.extSources)("filterValue",t.filterValue)("selection",t.selection)}}let Hs=(()=>{class t{constructor(t,e,i,o,a,s){this.dialogRef=t,this.data=e,this.extSourceService=i,this.notificator=o,this.tableConfigService=a,this.translate=s,this.extSources=[],this.selection=new la.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=Ia.BV}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.data.groupId?this.extSourceService.getVoExtSources(this.data.voId).subscribe(t=>{this.extSources=t.filter(t=>!this.data.extSources.some(({id:e})=>e===t.id)),this.loading=!1},()=>this.loading=!1):this.extSourceService.getExtSources().subscribe(t=>{this.extSources=t.filter(t=>!this.data.extSources.some(({id:e})=>e===t.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}addVoExtSource(t){if(0===t.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const e=t.pop();this.extSourceService.addExtSourceWithVoSource(this.data.voId,e.id).subscribe(()=>{this.addVoExtSource(t)},()=>this.loading=!1)}addGroupExtSource(t){if(0===t.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const e=t.pop();this.extSourceService.addExtSourceWithGroupSource(this.data.groupId,e.id).subscribe(()=>{this.addGroupExtSource(t)},()=>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)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.KG),h.Y36(u.V6),h.Y36(Ia.dB),h.Y36(_.sK))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"pageSize","extSources","filterValue","selection","page"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",0),h.TgZ(2,"h1",1),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.TgZ(5,"perun-web-apps-immediate-filter",2),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.qZA(),h.YNc(6,zs,1,0,"mat-spinner",3),h.YNc(7,Bs,2,4,"div",4),h.TgZ(8,"div",5),h.TgZ(9,"button",6),h.NdJ("click",function(){return e.onCancel()}),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"button",7),h.NdJ("click",function(){return e.onAdd()}),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(3),h.Oqu(h.lcZ(4,10,"DIALOGS.ADD_EXT_SOURCES.TITLE")),h.xp6(2),h.Q6J("placeholder","DIALOGS.ADD_EXT_SOURCES.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(11,12,"DIALOGS.ADD_EXT_SOURCES.CANCEL")," "),h.xp6(2),h.Q6J("disabled",0===e.selection.selected.length||e.loading),h.xp6(1),h.hij(" ",h.lcZ(14,14,"DIALOGS.ADD_EXT_SOURCES.ADD")," "))},directives:[A.uh,fa.L,o.O5,A.H8,b.lW,T.$g,A.xY,ks.D],pipes:[_.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),t})();function js(t,e){1&t&&h._UZ(0,"mat-spinner",7)}function $s(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1,"id"),h.qZA())}function Xs(t,e){if(1&t&&(h.TgZ(0,"td",18),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t.id," ")}}function Ws(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1,"name"),h.qZA())}function Ks(t,e){if(1&t&&(h.TgZ(0,"td",18),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t.name," ")}}function tn(t,e){1&t&&h._UZ(0,"tr",19)}function en(t,e){1&t&&h._UZ(0,"tr",20)}function on(t,e){if(1&t&&(h.TgZ(0,"div",8),h.TgZ(1,"p"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",9),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"table",10),h.ynx(8,11),h.YNc(9,$s,2,0,"th",12),h.YNc(10,Xs,2,1,"td",13),h.BQk(),h.ynx(11,14),h.YNc(12,Ws,2,0,"th",12),h.YNc(13,Ks,2,1,"td",13),h.BQk(),h.YNc(14,tn,1,0,"tr",15),h.YNc(15,en,1,0,"tr",16),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,5,"DIALOGS.REMOVE_EXT_SOURCES.DESCRIPTION")," "),h.xp6(3),h.hij(" ",h.lcZ(6,7,"DIALOGS.REMOVE_EXT_SOURCES.ASK")," "),h.xp6(2),h.Q6J("dataSource",t.extSources),h.xp6(7),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}let an=(()=>{class t{constructor(t,e,i,o,a,s){this.dialogRef=t,this.data=e,this.extSourceService=i,this.notificator=o,this.tableConfigService=a,this.translate=s,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const t=this.extSources.pop();this.extSourceService.removeExtSourceWithVoSource(this.data.voId,t.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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const t=this.extSources.pop();this.extSourceService.removeExtSourceWithGroupSource(this.data.groupId,t.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}onRemove(){this.loading=!0,this.data.groupId?this.removeGroupExtSource():this.removeVoExtSource()}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.KG),h.Y36(u.V6),h.Y36(Ia.dB),h.Y36(_.sK))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",0),h.TgZ(2,"h1",1),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.qZA(),h.YNc(5,js,1,0,"mat-spinner",2),h.YNc(6,on,16,9,"div",3),h.TgZ(7,"div",4),h.TgZ(8,"button",5),h.NdJ("click",function(){return e.onCancel()}),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"button",6),h.NdJ("click",function(){return e.onRemove()}),h._uU(12),h.ALo(13,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(3),h.Oqu(h.lcZ(4,8,"DIALOGS.REMOVE_EXT_SOURCES.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(10,10,"DIALOGS.REMOVE_EXT_SOURCES.CANCEL")," "),h.xp6(3),h.hij(" ",h.lcZ(13,12,"DIALOGS.REMOVE_EXT_SOURCES.REMOVE")," "))},directives:[A.uh,o.O5,A.H8,b.lW,T.$g,A.xY,st.BZ,st.w1,st.fO,st.Dz,st.as,st.nj,st.ge,st.ev,st.XQ,st.Gk],pipes:[_.X$],styles:[""]}),t})();function sn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().onAdd()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function nn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().onRemove()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function rn(t,e){1&t&&h._UZ(0,"mat-spinner",9)}function ln(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-ext-sources-list",10),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("pageSize",t.pageSize)("extSources",t.extSources)("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("selection",t.selection)}}let cn=(()=>{class t{constructor(t,e,i,o,a,s,n,r){this.extSourceService=t,this.route=e,this.dialog=i,this.notificator=o,this.tableConfigService=a,this.translate=s,this.authResolver=n,this.voService=r,this.extSources=[],this.selection=new la.Ov(!0,[]),this.filterValue="",this.tableId=Ia.qV,this.displayedColumns=[],this.translate.get("VO_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(t=>this.successMessage=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.voService.getVoById(this.voId).subscribe(t=>{this.vo=t,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"]}refreshTable(){this.loading=!0,this.extSourceService.getVoExtSources(this.voId).subscribe(t=>{this.extSources=t,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t}onAdd(){const t=(0,c.kZ)();t.width="1000px",t.data={voId:this.voId,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(Hs,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,c.kZ)();t.width="600px",t.data={voId:this.voId,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(an,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.KG),h.Y36(a.gz),h.Y36(A.uw),h.Y36(u.V6),h.Y36(Ia.dB),h.Y36(_.sK),h.Y36(u.x4),h.Y36(l.YF))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","extSources","displayedColumns","filterValue","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","extSources","displayedColumns","filterValue","selection","page"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.YNc(5,sn,3,3,"button",2),h.YNc(6,nn,3,4,"button",3),h.TgZ(7,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(8,rn,1,0,"mat-spinner",5),h.YNc(9,ln,1,5,"app-ext-sources-list",6),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,6,"VO_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),h.xp6(3),h.Q6J("ngIf",e.addAuth),h.xp6(1),h.Q6J("ngIf",e.removeAuth),h.xp6(1),h.Q6J("placeholder","VO_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[Ta.t,o.O5,fa.L,b.lW,T.$g,ks.D],pipes:[_.X$],styles:[""]}),t})();var un=i(78364);function pn(t,e){1&t&&h._UZ(0,"mat-spinner",3)}const dn=function(){return["select","id","name","description"]};function gn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(e){return h.CHM(t),h.oxw().applyFilter(e)}),h.qZA(),h.TgZ(2,"div",5),h.TgZ(3,"perun-web-apps-groups-list",6),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA(),h.qZA(),h.TgZ(4,"div",7),h.TgZ(5,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().onCancel()}),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"button",9),h.NdJ("click",function(){return h.CHM(t),h.oxw().onSubmit()}),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Tol(t.theme),h.xp6(1),h.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),h.xp6(2),h.Q6J("groupsToDisable",t.groupsToDisable)("disableGroups",!0)("pageSize",t.pageSize)("groups",t.groups)("selection",t.selection)("displayedColumns",h.DdM(21,dn))("filter",t.filterValue)("disableHeadCheckbox",!0)("disableRouting",!0)("authType","create-relation-dialog"),h.xp6(3),h.hij(" ",h.lcZ(7,17,"DIALOGS.CREATE_RELATION.CANCEL")," "),h.xp6(2),h.Q6J("disabled",t.loading||0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(10,19,"DIALOGS.CREATE_RELATION.CREATE")," ")}}let hn=(()=>{class t{constructor(t,e,i,o,a,s,n){this.dialogRef=t,this.groupService=e,this.notificator=i,this.translate=o,this.tableConfigService=a,this.guiAuthResolver=s,this.data=n,this.selection=new la.Ov(!1,[]),this.filterValue="",this.tableId=Ia.RS,this.groupsToDisable=new Set,o.get("DIALOGS.CREATE_RELATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.groupService.getGroupUnions(this.data.group.id,!this.data.reverse).subscribe(t=>{t=t.concat(this.data.groups),this.groupService.getAllGroups(this.data.voId).subscribe(e=>{const i=t.map(t=>t.id);this.groups=e.filter(t=>!i.includes(t.id)&&t.id!==this.data.group.id),this.setGroupsToDisable(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!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(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}setGroupsToDisable(){for(const t of this.groups)this.guiAuthResolver.isAuthorized("createGroupUnion_Group_Group_policy",[this.data.group,t])||this.groupsToDisable.add(t.id)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(l.ff),h.Y36(u.V6),h.Y36(_.sK),h.Y36(Ia.dB),h.Y36(u.x4),h.Y36(A.WI))},t.\u0275cmp=h.Xpm({type:t,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,"placeholder","filter"],["mat-dialog-content","",1,"dialog-container"],[3,"groupsToDisable","disableGroups","pageSize","groups","selection","displayedColumns","filter","disableHeadCheckbox","disableRouting","authType","page"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div"),h.YNc(4,pn,1,0,"mat-spinner",1),h.qZA(),h.YNc(5,gn,11,22,"div",2)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"DIALOGS.CREATE_RELATION.TITLE")),h.xp6(2),h.Tol(e.theme),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[A.uh,o.O5,T.$g,fa.L,A.xY,un.W,A.H8,b.lW],pipes:[_.X$],styles:[""]}),t})();function mn(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function An(t,e){1&t&&h._UZ(0,"th",15)}function In(t,e){if(1&t&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t.name," ")}}function Tn(t,e){1&t&&h._UZ(0,"tr",17)}function fn(t,e){1&t&&h._UZ(0,"tr",18)}function En(t,e){if(1&t&&(h.TgZ(0,"div",7),h.TgZ(1,"p"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",8),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"table",9),h.ynx(8,10),h.YNc(9,An,1,0,"th",11),h.YNc(10,In,2,1,"td",12),h.BQk(),h.YNc(11,Tn,1,0,"tr",13),h.YNc(12,fn,1,0,"tr",14),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,5,"DIALOGS.REMOVE_RELATION.DESCRIPTION")," "),h.xp6(3),h.hij(" ",h.lcZ(6,7,"DIALOGS.REMOVE_RELATION.ASK")," "),h.xp6(2),h.Q6J("dataSource",t.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}let Zn=(()=>{class t{constructor(t,e,i,o,a){this.dialogRef=t,this.data=e,this.notificator=i,this.groupService=o,this.translate=a,this.displayedColumns=["name"],a.get("DIALOGS.REMOVE_RELATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new st.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 t=this.data.reverse?this.data.groups.shift().id:this.data.groupId,e=this.data.reverse?this.data.groupId:this.data.groups.shift().id;this.groupService.removeGroupUnion(t,e).subscribe(()=>{this.onSubmit(),this.dialogRef.close(!0)},()=>this.loading=!1)}}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(u.V6),h.Y36(l.ff),h.Y36(_.sK))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,mn,1,0,"mat-spinner",1),h.YNc(5,En,13,9,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.REMOVE_RELATION.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.REMOVE_RELATION.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.REMOVE_RELATION.DELETE")," "))},directives:[A.uh,o.O5,A.H8,b.lW,T.$g,A.xY,st.BZ,st.w1,st.fO,st.Dz,st.as,st.nj,st.ge,st.ev,st.XQ,st.Gk],pipes:[_.X$],styles:[""]}),t})();var bn=i(41939);const _n=["list"];function Sn(t,e){1&t&&h._UZ(0,"mat-spinner",8)}const Nn=function(){return["select","id","vo","name","description"]};function On(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"perun-web-apps-groups-list",9,10),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("pageSize",t.pageSize)("groups",t.groups)("parentGroup",t.group)("authType","group-relations")("selection",t.selection)("filter",t.filterValue)("displayedColumns",h.DdM(8,Nn))("disableHeadCheckbox",!0)}}let vn=(()=>{class t{constructor(t,e,i,o){this.route=t,this.groupService=e,this.tableConfigService=i,this.dialog=o,this.selection=new la.Ov(!0,[]),this.groups=[],this.reverse=!1,this.filterValue="",this.tableId=Ia._7}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.groupId=t.groupId,this.voId=t.voId,this.groupService.getGroupById(this.groupId).subscribe(t=>{this.group=t,this.refreshTable()})})}onCreate(){const t=(0,c.kZ)();t.width="1050px",t.data={groups:this.groups,theme:"group-theme",group:this.group,voId:this.voId,reverse:this.reverse},this.dialog.open(hn,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onDelete(){const t=(0,c.kZ)();t.width="450px",t.data={groups:this.selection.selected,theme:"group-theme",groupId:+this.groupId,reverse:this.reverse},this.dialog.open(Zn,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getGroupUnions(this.groupId,this.reverse).subscribe(t=>{this.groups=t,this.selection.clear(),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}showReverseUnions(){this.reverse=!this.reverse,this.refreshTable()}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(l.ff),h.Y36(Ia.dB),h.Y36(A.uw))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-relations"]],viewQuery:function(t,e){if(1&t&&h.Gf(_n,5),2&t){let t;h.iGM(t=h.CRH())&&(e.list=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:18,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"matTooltip","matTooltipDisabled","disabled","click"],[3,"placeholder","filter"],[3,"change"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","groups","parentGroup","authType","selection","filter","displayedColumns","disableHeadCheckbox","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","groups","parentGroup","authType","selection","filter","displayedColumns","disableHeadCheckbox","page"],["list",""]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.TgZ(5,"button",2),h.NdJ("click",function(){return e.onCreate()}),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"button",3),h.NdJ("click",function(){return e.onDelete()}),h.ALo(9,"translate"),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.TgZ(13,"mat-checkbox",5),h.NdJ("change",function(){return e.showReverseUnions()}),h._uU(14),h.ALo(15,"translate"),h.qZA(),h.YNc(16,Sn,1,0,"mat-spinner",6),h.YNc(17,On,2,9,"perun-web-apps-groups-list",7),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,10,"GROUP_DETAIL.SETTINGS.RELATIONS.TITLE")),h.xp6(4),h.hij(" ",h.lcZ(7,12,"GROUP_DETAIL.SETTINGS.RELATIONS.CREATE")," "),h.xp6(2),h.s9C("matTooltip",h.lcZ(9,14,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE_TOOLTIP")),h.Q6J("matTooltipDisabled",0===e.selection.selected.length||void 0!==e.list&&e.list.removeAuth)("disabled",0===e.selection.selected.length||void 0!==e.list&&!e.list.removeAuth),h.xp6(2),h.hij(" ",h.lcZ(11,16,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE")," "),h.xp6(2),h.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),h.xp6(2),h.Oqu(h.lcZ(15,18,"GROUP_DETAIL.SETTINGS.RELATIONS.REVERSE_UNIONS")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[Ta.t,b.lW,E.gM,fa.L,be.oG,o.O5,T.$g,un.W],pipes:[_.X$],styles:[""]}),t})();var xn=i(21548),Cn=i(29851);function Ln(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",6),h.NdJ("click",function(){return h.CHM(t),h.oxw().showAllDetails=!0}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_ALL_DETAILS")," "))}function Rn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",6),h.NdJ("click",function(){return h.CHM(t),h.oxw().showAllDetails=!1}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_LESS_DETAILS")," "))}function Mn(t,e){1&t&&h._UZ(0,"mat-spinner",7)}function Dn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-applications-list",10),h.NdJ("page",function(e){return h.CHM(t),h.oxw(2).pageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("applications",t.applications)("member",t.member)("displayedColumns",t.displayedColumns)}}function Un(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-perun-web-apps-application-list-details",11),h.NdJ("page",function(e){return h.CHM(t),h.oxw(2).detailPageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("pageSize",t.detailPageSize)("filterValue",t.filterValue)("applications",t.applications)("member",t.member)}}function qn(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,Dn,1,5,"app-applications-list",8),h.YNc(2,Un,1,4,"app-perun-web-apps-application-list-details",9),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf",!t.showAllDetails),h.xp6(1),h.Q6J("ngIf",t.showAllDetails)}}let wn=(()=>{class t{constructor(t,e,i,o){this.registrarManager=t,this.memberManager=e,this.tableConfigService=i,this.route=o,this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","group","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=Ia.d7,this.tableId=Ia.vq}ngOnInit(){this.detailPageSize=this.tableConfigService.getTablePageSize(this.detailTableId),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(t=>{this.memberId=t.memberId,this.memberManager.getMemberById(this.memberId).subscribe(t=>{this.member=t}),this.registrarManager.getApplicationsForMember(this.memberId).subscribe(t=>{this.applications=t,this.loading=!1})})}refreshTable(){this.loading=!0,this.registrarManager.getApplicationsForMember(this.memberId).subscribe(t=>{this.applications=t,this.loading=!1})}applyFilter(t){this.filterValue=t}detailPageChanged(t){this.detailPageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.detailTableId,t.pageSize)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.tk),h.Y36(l.uq),h.Y36(Ia.dB),h.Y36(a.gz))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-applications"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","applications","member","displayedColumns","page",4,"ngIf"],[3,"pageSize","filterValue","applications","member","page",4,"ngIf"],[3,"pageSize","filterValue","applications","member","displayedColumns","page"],[3,"pageSize","filterValue","applications","member","page"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div"),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.YNc(5,Ln,3,3,"button",2),h.YNc(6,Rn,3,3,"button",2),h.TgZ(7,"perun-web-apps-immediate-filter",3),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.qZA(),h.YNc(8,Mn,1,0,"mat-spinner",4),h.YNc(9,qn,3,2,"div",5)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"MEMBER_DETAIL.APPLICATIONS.TITLE")),h.xp6(4),h.Q6J("ngIf",!e.showAllDetails),h.xp6(1),h.Q6J("ngIf",e.showAllDetails),h.xp6(1),h.Q6J("placeholder","MEMBER_DETAIL.APPLICATIONS.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[Ta.t,o.O5,fa.L,b.lW,T.$g,xn.M,Cn.w],pipes:[_.X$],styles:[""]}),t})();var Pn=i(56238),Gn=i(79996),yn=i(70663),Yn=i(40084);function Jn(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECT_RESOURCE"))}function Vn(t,e){1&t&&h._UZ(0,"mat-spinner",13)}function Fn(t,e){if(1&t&&(h.TgZ(0,"mat-option",24),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",t," ")}}function Qn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-option",25),h.NdJ("click",function(){const e=h.CHM(t).$implicit,i=h.oxw(2),o=h.MAs(6);return i.setResource(e),o.selected.completed=!0}),h._uU(1),h.qZA()}if(2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",t.name," ")}}function kn(t,e){if(1&t&&(h.TgZ(0,"div",22),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t.name)}}function zn(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div"),h.TgZ(2,"mat-form-field",14),h._UZ(3,"input",15),h.ALo(4,"translate"),h.TgZ(5,"mat-autocomplete",16,17),h.YNc(7,Fn,2,2,"mat-option",18),h.ALo(8,"async"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(9,"div"),h.TgZ(10,"mat-form-field",14),h.TgZ(11,"mat-select",19),h.ALo(12,"translate"),h.YNc(13,Qn,2,2,"mat-option",20),h.ALo(14,"async"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(15,"div"),h.TgZ(16,"span",21),h._uU(17),h.ALo(18,"translate"),h.qZA(),h.TgZ(19,"div",22),h._uU(20),h.qZA(),h.qZA(),h.TgZ(21,"div"),h.TgZ(22,"span",21),h._uU(23),h.ALo(24,"translate"),h.qZA(),h.YNc(25,kn,2,1,"div",23),h.qZA(),h.qZA()),2&t){const t=h.MAs(6),e=h.oxw();h.xp6(3),h.s9C("placeholder",h.lcZ(4,10,"DIALOGS.ADD_MEMBER_TO_RESOURCE.FILTER")),h.Q6J("formControl",e.facilityCtrl)("matAutocomplete",t),h.xp6(4),h.Q6J("ngForOf",h.lcZ(8,12,e.filteredFacilities)),h.xp6(4),h.s9C("placeholder",h.lcZ(12,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECTED")),h.xp6(2),h.Q6J("ngForOf",h.lcZ(14,16,e.filteredResources)),h.xp6(4),h.Oqu(h.lcZ(18,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.DESCRIPTION")),h.xp6(3),h.hij(" ",e.description," "),h.xp6(3),h.Oqu(h.lcZ(24,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SERVICES")),h.xp6(2),h.Q6J("ngForOf",e.services)}}function Bn(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.ADD_GROUP"))}function Hn(t,e){1&t&&h._UZ(0,"mat-spinner",13)}const jn=function(){return["select","id","name","description"]};function $n(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-groups-list",26),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("disableGroups",!0)("disableHeadCheckbox",!0)("disableRouting",!0)("groupsToDisable",t.membersGroupsId)("groups",t.groups)("displayedColumns",h.DdM(7,jn))("selection",t.selectedGroups)}}function Xn(t,e){1&t&&(h.TgZ(0,"app-alert",27),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.NO_GROUPS")," "))}let Wn=(()=>{class t{constructor(t,e,i,o,a,s,n){this.dialogRef=t,this.data=e,this.resourceManager=i,this.groupManager=o,this.notificator=a,this.translate=s,this.authResolver=n,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new he.NI,this.facilitiesNames=[],this.resources=[],this.selectedResource=null,this.services=[],this.description="",this.groups=[],this.selectedGroups=new la.Ov(!1,[])}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getRichResources(this.data.voId).subscribe(t=>{this.resources=t,this.getResourceFacilities(),this.loading=!1},()=>this.loading=!1)}getResourceFacilities(){const t=new Set;for(const e of this.resources)t.add(e.facility.name);this.facilitiesNames=Array.from(t),this.filteredFacilities=this.facilityCtrl.valueChanges.pipe((0,Pn.O)(""),(0,Gn.U)(t=>this.filterFacilities(t))),this.filteredResources=this.facilityCtrl.valueChanges.pipe((0,Pn.O)(""),(0,Gn.U)(t=>this.filterResources(t)))}filterFacilities(t){const e=t.toLowerCase();return this.facilitiesNames.filter(t=>t.toLowerCase().indexOf(e)>=0).sort((t,e)=>t.toLowerCase().localeCompare(e.toLowerCase()))}filterResources(t){if(null==t)return this.resources;const e=t.toLowerCase();return this.resources.filter(t=>0===t.facility.name.toLowerCase().indexOf(e)).sort((t,e)=>t.name.toLowerCase().localeCompare(e.name.toLowerCase()))}setResource(t){this.processing=!0,this.selectedResource=t,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(t=>{this.services=t,this.processing=!1},()=>this.processing=!1),this.description=this.selectedResource.description}loadGroups(){this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(t=>{this.groups=t,this.groupManager.getAllMemberGroups(this.data.memberId).subscribe(t=>{this.membersGroupsId=new Set(t.map(t=>t.id)),this.groups.forEach(t=>{this.authResolver.isAuthorized("addMember_Group_Member_policy",[t])||this.membersGroupsId.add(t.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)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.xk),h.Y36(l.ff),h.Y36(u.V6),h.Y36(_.sK),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-add-member-to-resource-dialog"]],decls:30,vars:26,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],["completed","false"],["matStepLabel",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","matStepperNext","",1,"ml-2",3,"disabled","click"],["alert_type","warn",4,"ngIf"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto",3,"click"],[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",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","groupsToDisable","groups","displayedColumns","selection"],["alert_type","warn"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",1),h.TgZ(5,"mat-horizontal-stepper",2,3),h.TgZ(7,"mat-step",4),h.YNc(8,Jn,2,3,"ng-template",5),h.YNc(9,Vn,1,0,"mat-spinner",6),h.YNc(10,zn,26,22,"div",7),h.TgZ(11,"div",8),h.TgZ(12,"button",9),h.NdJ("click",function(){return e.onCancel()}),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"button",10),h.NdJ("click",function(){return e.loadGroups()}),h._uU(16),h.ALo(17,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(18,"mat-step"),h.YNc(19,Bn,2,3,"ng-template",5),h.YNc(20,Hn,1,0,"mat-spinner",6),h.YNc(21,$n,2,8,"div",7),h.YNc(22,Xn,3,3,"app-alert",11),h.TgZ(23,"div",8),h.TgZ(24,"button",12),h.NdJ("click",function(){return e.selectedGroups.clear()}),h._uU(25),h.ALo(26,"translate"),h.qZA(),h.TgZ(27,"button",10),h.NdJ("click",function(){return e.onFinish()}),h._uU(28),h.ALo(29,"translate"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),h.xp6(3),h.Q6J("linear",!0),h.xp6(4),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.Oqu(h.lcZ(14,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")),h.xp6(2),h.Q6J("disabled",null===e.selectedResource||e.processing||e.loading),h.xp6(1),h.Oqu(h.lcZ(17,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CONTINUE")),h.xp6(4),h.Q6J("ngIf",e.processing),h.xp6(1),h.Q6J("ngIf",0!==e.groups.length&&!e.processing),h.xp6(1),h.Q6J("ngIf",0===e.groups.length&&!e.processing),h.xp6(3),h.hij(" ",h.lcZ(26,22,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK"),""),h.xp6(2),h.Q6J("disabled",0===e.selectedGroups.selected.length||e.processing),h.xp6(1),h.hij(" ",h.lcZ(29,24,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT"),""))},directives:[A.uh,A.xY,yn.Vq,yn.C0,yn.VY,o.O5,A.H8,b.lW,yn.Ic,yn.fd,T.$g,Te.KE,Ee.Nt,he.Fj,Yn.ZL,he.JJ,he.oH,Yn.XC,o.sg,fe.gD,Ze.ey,un.W,pt.w],pipes:[_.X$,o.Ov],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),t})();var Kn=i(88884);function tr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"perun-web-apps-refresh-button",6),h.NdJ("refresh",function(){return h.CHM(t),h.oxw().refreshTable()}),h.qZA()}}function er(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().addResource()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function ir(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"perun-web-apps-immediate-filter",8),h.NdJ("filter",function(e){return h.CHM(t),h.oxw().applyFilter(e)}),h.qZA()}2&t&&h.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER")}function or(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"perun-web-apps-resources-list",9),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("displayedColumns",t.displayedColumns)("routingVo",!0)("disableRouting",!t.routeAuth)("resources",t.resources)}}function ar(t,e){1&t&&h._UZ(0,"mat-spinner",10)}let sr=(()=>{class t{constructor(t,e,i,o,a,s){this.dialog=t,this.tableConfigService=e,this.memberManager=i,this.resourceManager=o,this.route=a,this.authResolver=s,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=Ia.aL}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.memberManager.getMemberById(t.memberId).subscribe(t=>{this.member=t,this.refreshTable()})})}addResource(){const t=(0,c.kZ)();t.width="1200px",t.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(Wn,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(t=>{this.resources=t,this.setAuthRights(),this.loading=!1})}setAuthRights(){const t={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[t]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[t,this.resources[0]]))}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.uw),h.Y36(Ia.dB),h.Y36(l.uq),h.Y36(l.xk),h.Y36(a.gz),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-resources"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["class","mr-2",3,"placeholder","filter",4,"ngIf"],[3,"pageSize","filterValue","displayedColumns","routingVo","disableRouting","resources","page",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",3,"click"],[1,"mr-2",3,"placeholder","filter"],[3,"pageSize","filterValue","displayedColumns","routingVo","disableRouting","resources","page"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,tr,1,0,"perun-web-apps-refresh-button",1),h.YNc(5,er,3,3,"button",2),h.YNc(6,ir,1,1,"perun-web-apps-immediate-filter",3),h.YNc(7,or,1,6,"perun-web-apps-resources-list",4),h.qZA(),h.YNc(8,ar,1,0,"mat-spinner",5)),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,6,"MEMBER_DETAIL.RESOURCES.TITLE")),h.xp6(2),h.Q6J("ngIf",!e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading&&e.addAuth),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(1),h.Q6J("ngIf",e.loading))},directives:[o.O5,Ta.t,b.lW,fa.L,Kn.C,T.$g],pipes:[_.X$],styles:[""]}),t})();var nr=i(72920),rr=i(76527),lr=i(42473),cr=i(77968),ur=i(22927),pr=i(79472),dr=i(64359),gr=i(75374),hr=i(95142),mr=i(48666);function Ar(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().onAdd()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function Ir(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().onRemove()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function Tr(t,e){1&t&&h._UZ(0,"mat-spinner",9)}function fr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-ext-sources-list",10),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("pageSize",t.pageSize)("extSources",t.extSources)("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("selection",t.selection)}}let Er=(()=>{class t{constructor(t,e,i,o,a,s,n,r){this.extSourceService=t,this.route=e,this.dialog=i,this.notificator=o,this.tableConfigService=a,this.translate=s,this.authResolver=n,this.groupService=r,this.extSources=[],this.selection=new la.Ov(!0,[]),this.filterValue="",this.tableId=Ia.S7,this.displayedColumns=[],this.translate.get("GROUP_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(t=>this.successMessage=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.groupId=t.groupId,this.groupService.getGroupById(this.groupId).subscribe(t=>{this.group=t,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.groupId).subscribe(t=>{this.extSources=t,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t}onAdd(){const t=(0,c.kZ)();t.width="1000px",t.data={voId:this.voId,groupId:this.groupId,extSources:this.extSources,theme:"group-theme"},this.dialog.open(Hs,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,c.kZ)();t.width="600px",t.data={voId:this.voId,groupId:this.groupId,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(an,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.KG),h.Y36(a.gz),h.Y36(A.uw),h.Y36(u.V6),h.Y36(Ia.dB),h.Y36(_.sK),h.Y36(u.x4),h.Y36(l.ff))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","extSources","displayedColumns","filterValue","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","extSources","displayedColumns","filterValue","selection","page"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.YNc(5,Ar,3,3,"button",2),h.YNc(6,Ir,3,4,"button",3),h.TgZ(7,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(8,Tr,1,0,"mat-spinner",5),h.YNc(9,fr,1,5,"app-ext-sources-list",6),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),h.xp6(3),h.Q6J("ngIf",e.addAuth),h.xp6(1),h.Q6J("ngIf",e.removeAuth),h.xp6(1),h.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[Ta.t,o.O5,fa.L,b.lW,T.$g,ks.D],pipes:[_.X$],styles:[""]}),t})();function Zr(t,e){1&t&&h._UZ(0,"th",9)}function br(t,e){if(1&t&&(h.TgZ(0,"td",10),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t,": ")}}function _r(t,e){1&t&&h._UZ(0,"th",9)}function Sr(t,e){if(1&t&&(h.TgZ(0,"td",11),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw();h.xp6(1),h.hij(" ",i.statistics.get(t.toLowerCase())," ")}}function Nr(t,e){1&t&&h._UZ(0,"tr",12)}let Or=(()=>{class t{constructor(){this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}ngOnInit(){this.dataSource=new st.by(this.rowNames)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"mat-card",0),h.TgZ(1,"mat-card-header"),h.TgZ(2,"mat-card-title"),h.TgZ(3,"h1",1),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(6,"mat-card-content"),h.TgZ(7,"table",2),h.ynx(8,3),h.YNc(9,Zr,1,0,"th",4),h.YNc(10,br,2,1,"td",5),h.BQk(),h.ynx(11,6),h.YNc(12,_r,1,0,"th",4),h.YNc(13,Sr,2,1,"td",7),h.BQk(),h.YNc(14,Nr,1,0,"tr",8),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.xp6(4),h.Oqu(h.lcZ(5,3,e.title)),h.xp6(3),h.Q6J("dataSource",e.dataSource),h.xp6(7),h.Q6J("matRowDefColumns",e.displayedColumns))},directives:[lt.a8,lt.dk,lt.n5,lt.dn,st.BZ,st.w1,st.fO,st.Dz,st.nj,st.ge,st.ev,st.Gk],pipes:[_.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0;display:inline-block;vertical-align:top}"]}),t})();function vr(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function xr(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"app-statistics-card",4),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("rowNames",t.rowNames)("statistics",t.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}let Cr=(()=>{class t{constructor(t,e){this.voService=t,this.route=e,this.loading=!1,this.dataSource=new st.by,this.displayedColumns=["status","count"],this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]])}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.voId=t.voId,this.dataSource=new st.by(this.rowNames),this.voService.getVoMembersCountsByStatus(this.voId).subscribe(t=>{this.allMembersCount=0;for(const e of Object.keys(t))this.membersCount.set(e.toLowerCase(),t[e]),this.allMembersCount+=t[e];this.membersCount.set("members",this.allMembersCount),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.YF),h.Y36(a.gz))},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,vr,1,0,"mat-spinner",1),h.YNc(4,xr,2,3,"div",2)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,3,"VO_DETAIL.STATISTICS.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,T.$g,Or],pipes:[_.X$],styles:[""]}),t})();function Lr(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function Rr(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"app-statistics-card",4),h._UZ(2,"app-statistics-card",4),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("rowNames",t.voStatusCountsRowNames)("statistics",t.membersCountsByVoStatus)("title","GROUP_DETAIL.STATISTICS.VO_STATUS_COUNT"),h.xp6(1),h.Q6J("rowNames",t.groupStatusCountsRowNames)("statistics",t.membersCountsByGroupStatus)("title","GROUP_DETAIL.STATISTICS.GROUP_STATUS_COUNT")}}let Mr=(()=>{class t{constructor(t,e){this.route=t,this.groupService=e,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.route.parent.params.subscribe(t=>{this.groupId=t.groupId,this.groupService.getGroupMembersCount(this.groupId).subscribe(t=>{this.membersCountsByVoStatus.set("members",t),this.membersCountsByGroupStatus.set("members",t),this.groupService.getGroupMembersCountsByVoStatus(this.groupId).subscribe(t=>{Object.entries(t).forEach(([t,e])=>this.membersCountsByVoStatus.set(t.toLowerCase(),e)),this.groupService.getGroupMembersCountsByGroupStatus(this.groupId).subscribe(t=>{Object.entries(t).forEach(([t,e])=>this.membersCountsByGroupStatus.set(t.toLowerCase(),e)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(l.ff))},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,Lr,1,0,"mat-spinner",1),h.YNc(4,Rr,3,6,"div",2)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,3,"GROUP_DETAIL.STATISTICS.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,T.$g,Or],pipes:[_.X$],styles:[""]}),t})();var Dr=i(91058);function Ur(t,e){1&t&&h._UZ(0,"mat-spinner",6)}const qr=function(){return["select","id","name","description"]};function wr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",7),h.TgZ(1,"perun-web-apps-debounce-filter",8),h.NdJ("filter",function(e){return h.CHM(t),h.oxw().applyFilter(e)}),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"perun-web-apps-groups-list",9),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.s9C("placeholder",h.lcZ(2,8,"DIALOGS.ADD_GROUP_TO_REGISTRATION.FILTER_DESCRIPTION")),h.xp6(2),h.Q6J("pageSize",t.pageSize)("groups",t.unAssignedGroups)("selection",t.selection)("filter",t.filterValue)("displayedColumns",h.DdM(10,qr))("disableRouting",!0)("disableMembers",!0)}}let Pr=(()=>{class t{constructor(t,e,i,o,a){this.dialogRef=t,this.data=e,this.groupService=i,this.registrarService=o,this.tableConfigService=a,this.loading=!1,this.selection=new la.Ov(!0,[]),this.filterValue="",this.tableId=Ia.Is}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.groupService.getAllGroups(this.data.voId).subscribe(t=>{this.unAssignedGroups=t.filter(t=>this.data.assignedGroups.indexOf(t.id)<=-1),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.registrarService.addGroupsToAutoRegistration(this.selection.selected.map(t=>t.id)).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.ff),h.Y36(l.tk),h.Y36(Ia.dB))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-add-group-to-registration"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-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","accent",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"pageSize","groups","selection","filter","displayedColumns","disableRouting","disableMembers","page"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Ur,1,0,"mat-spinner",1),h.YNc(5,wr,4,11,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onAdd()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.ADD_GROUP_TO_REGISTRATION.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.ADD_GROUP_TO_REGISTRATION.CANCEL_BUTTON")," "),h.xp6(2),h.Q6J("disabled",0===e.selection.selected.length||e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.ADD_GROUP_TO_REGISTRATION.ADD_BUTTON")," "))},directives:[A.uh,o.O5,A.H8,b.lW,T.$g,A.xY,Dr.P,un.W],pipes:[_.X$],styles:[""]}),t})();const Gr=["list"];function yr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",9),h.NdJ("click",function(){return h.CHM(t),h.oxw().onAddGroup()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.ADD"),"\n"))}function Yr(t,e){1&t&&h._UZ(0,"mat-spinner",10)}const Jr=function(){return["select","id","name","description"]};function Vr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"perun-web-apps-groups-list",11,12),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("selection",t.selected)("pageSize",t.pageSize)("displayedColumns",h.DdM(7,Jr))("disableRouting",!0)("filter",t.filterValue)("authType","application-form-manage-groups")("groups",t.groups)}}let Fr=(()=>{class t{constructor(t,e,i,o,a){this.tableConfigService=t,this.registrarService=e,this.authResolver=i,this.dialog=o,this.route=a,this.groups=[],this.selected=new la.Ov(!0,[]),this.tableId=Ia.CE,this.filterValue=""}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.loadGroups()})}loadGroups(){this.loading=!0,this.registrarService.getGroupsToAutoRegistration(this.voId).subscribe(t=>{this.groups=t,this.selected.clear(),this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}onAddGroup(){const t=(0,c.kZ)();t.width="900px",t.data={voId:this.voId,assignedGroups:this.groups.map(t=>t.id),theme:"vo-theme"},this.dialog.open(Pr,t).afterClosed().subscribe(t=>{t&&this.loadGroups()})}removeGroup(){const t=(0,c.kZ)();t.width="450px",t.data={items:this.selected.selected.map(t=>t.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"},this.dialog.open(d.Tf,t).afterClosed().subscribe(t=>{t&&this.registrarService.deleteGroupsFromAutoRegistration(this.selected.selected.map(t=>t.id)).subscribe(()=>{this.loadGroups()})})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"}])}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(Ia.dB),h.Y36(l.tk),h.Y36(u.x4),h.Y36(A.uw),h.Y36(a.gz))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-application-form-manage-groups"]],viewQuery:function(t,e){if(1&t&&h.Gf(Gr,5),2&t){let t;h.iGM(t=h.CRH())&&(e.list=t.first)}},decls:17,vars:22,consts:[[1,"page-subtitle"],[3,"alert_type"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"selection","pageSize","displayedColumns","disableRouting","filter","authType","groups","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"selection","pageSize","displayedColumns","disableRouting","filter","authType","groups","page"],["list",""]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"app-alert",1),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"perun-web-apps-refresh-button",2),h.NdJ("refresh",function(){return e.loadGroups()}),h.qZA(),h.YNc(8,yr,3,3,"button",3),h.TgZ(9,"span",4),h.ALo(10,"translate"),h.TgZ(11,"button",5),h.NdJ("click",function(){return e.removeGroup()}),h._uU(12),h.ALo(13,"translate"),h.qZA(),h.qZA(),h.TgZ(14,"perun-web-apps-immediate-filter",6),h.NdJ("filter",function(t){return e.filterValue=t}),h.qZA(),h.YNc(15,Yr,1,0,"mat-spinner",7),h.YNc(16,Vr,2,8,"perun-web-apps-groups-list",8)),2&t&&(h.xp6(1),h.AsE(" ",h.lcZ(2,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",h.lcZ(3,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),h.xp6(3),h.Q6J("alert_type","info"),h.xp6(1),h.hij(" ",h.lcZ(6,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),h.xp6(3),h.Q6J("ngIf",e.addAuth),h.xp6(1),h.s9C("matTooltip",h.lcZ(10,18,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),h.Q6J("matTooltipDisabled",void 0===e.list||void 0!==e.list&&e.list.removeAuth),h.xp6(2),h.Q6J("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),h.xp6(1),h.hij(" ",h.lcZ(13,20,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," "),h.xp6(2),h.Q6J("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[pt.w,Ta.t,o.O5,E.gM,b.lW,fa.L,T.$g,un.W],pipes:[_.X$],styles:[""]}),t})();var Qr=i(53134),kr=i(47701),zr=i(90611),Br=i(44689),Hr=i(85250),jr=i(4252);function $r(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_IDENTITY"))}function Xr(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Wr(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Kr(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL_INVALID")))}function tl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function el(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function il(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function ol(t,e){if(1&t&&(h.TgZ(0,"mat-option",37),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",t," ")}}function al(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function sl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_EXISTS")))}function nl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_FORMAT")))}function rl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_LONG")))}function ll(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_SHORT")))}function cl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.PWD_WEAK")))}function ul(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.PWD_SHORT")))}function pl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function dl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.PWD_DONT_MATCH")))}function gl(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATE_USERS"))}function hl(t,e){if(1&t&&(h.TgZ(0,"span",43),h._uU(1),h.qZA()),2&t){const t=h.oxw().$implicit;h.xp6(1),h.hij("#",t.id,"")}}function ml(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-list-item"),h.TgZ(1,"p",38),h._uU(2),h.ALo(3,"userFullName"),h.YNc(4,hl,2,1,"span",39),h.TgZ(5,"span",40),h.ALo(6,"translate"),h.TgZ(7,"button",41),h.NdJ("click",function(){const e=h.CHM(t).$implicit;return h.oxw(2).removeUser(e)}),h.TgZ(8,"mat-icon",42),h._uU(9,"close"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(2),h.hij("",h.lcZ(3,5,t.user)," "),h.xp6(2),h.Q6J("ngIf",t.id),h.xp6(1),h.Q6J("matTooltipDisabled",i.assignedMembers.length>1)("matTooltip",h.lcZ(6,7,"DIALOGS.CREATE_SERVICE_MEMBER.MINIMAL_USERS")),h.xp6(2),h.Q6J("disabled",1===i.assignedMembers.length)}}function Al(t,e){1&t&&h._UZ(0,"mat-spinner",44)}const Il=function(){return["checkbox","id","fullName"]};function Tl(t,e){if(1&t&&h._UZ(0,"perun-web-apps-members-list",47),2&t){const t=h.oxw(3);h.Q6J("disableRouting",!0)("displayedColumns",h.DdM(5,Il))("members",t.members)("pageSize",t.pageSize)("selection",t.selection)}}function fl(t,e){1&t&&(h.TgZ(0,"app-alert",48),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.Q6J("alert_type","info"),h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")," "))}function El(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,Tl,1,6,"perun-web-apps-members-list",45),h.YNc(2,fl,3,4,"app-alert",46),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Q6J("ngIf",t.firstSearchDone),h.xp6(1),h.Q6J("ngIf",!t.firstSearchDone)}}function Zl(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",4),h.TgZ(1,"mat-stepper",5),h.TgZ(2,"mat-step",6),h.TgZ(3,"form",7),h.YNc(4,$r,2,3,"ng-template",8),h.TgZ(5,"div",9),h.TgZ(6,"mat-form-field"),h.TgZ(7,"mat-label"),h._uU(8),h.ALo(9,"translate"),h.qZA(),h._UZ(10,"input",10),h.YNc(11,Xr,3,3,"mat-error",11),h.qZA(),h.TgZ(12,"mat-form-field"),h.TgZ(13,"mat-label"),h._uU(14),h.ALo(15,"translate"),h.qZA(),h._UZ(16,"input",12),h.YNc(17,Wr,3,3,"mat-error",11),h.YNc(18,Kr,3,3,"mat-error",11),h.qZA(),h.TgZ(19,"mat-form-field"),h.TgZ(20,"mat-label"),h._uU(21),h.ALo(22,"translate"),h.qZA(),h._UZ(23,"input",13),h.YNc(24,tl,3,3,"mat-error",11),h.qZA(),h.TgZ(25,"mat-form-field"),h.TgZ(26,"mat-label"),h._uU(27),h.ALo(28,"translate"),h.qZA(),h._UZ(29,"input",14),h.YNc(30,el,3,3,"mat-error",11),h.qZA(),h.qZA(),h.qZA(),h.TgZ(31,"div",15),h.TgZ(32,"button",16),h.NdJ("click",function(){return h.CHM(t),h.oxw().onCancel()}),h._uU(33),h.ALo(34,"translate"),h.qZA(),h.TgZ(35,"button",17),h._uU(36),h.ALo(37,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(38,"mat-step",6),h.TgZ(39,"form",7),h.YNc(40,il,2,3,"ng-template",8),h.TgZ(41,"div",9),h.TgZ(42,"mat-form-field"),h.TgZ(43,"mat-label"),h._uU(44),h.ALo(45,"translate"),h.qZA(),h.TgZ(46,"mat-select",18),h.NdJ("valueChange",function(e){return h.CHM(t),h.oxw().onNamespaceChanged(e)}),h.YNc(47,ol,2,2,"mat-option",19),h.qZA(),h.qZA(),h.TgZ(48,"mat-form-field",20),h.ALo(49,"translate"),h.TgZ(50,"mat-label"),h._uU(51),h.ALo(52,"translate"),h.qZA(),h._UZ(53,"input",21),h.YNc(54,al,3,3,"mat-error",11),h.YNc(55,sl,3,3,"mat-error",11),h.YNc(56,nl,3,3,"mat-error",11),h.YNc(57,rl,3,3,"mat-error",11),h.YNc(58,ll,3,3,"mat-error",11),h.qZA(),h.TgZ(59,"mat-radio-group",22),h.NdJ("ngModelChange",function(){return h.CHM(t),h.oxw().passwordOptionChanged()}),h.ALo(60,"translate"),h.TgZ(61,"mat-radio-button",23),h._uU(62),h.ALo(63,"translate"),h.qZA(),h.TgZ(64,"mat-radio-button",23),h._uU(65),h.ALo(66,"translate"),h.qZA(),h.qZA(),h.TgZ(67,"div",9),h.TgZ(68,"mat-form-field",24),h.NdJ("click",function(){return h.CHM(t),h.oxw().secondFormGroup.get("generatePasswordCtrl").setValue(!1)}),h.TgZ(69,"mat-label"),h._uU(70),h.ALo(71,"translate"),h.qZA(),h._UZ(72,"input",25),h.YNc(73,cl,3,3,"mat-error",11),h.YNc(74,ul,3,3,"mat-error",11),h.qZA(),h.TgZ(75,"mat-form-field",24),h.NdJ("click",function(){return h.CHM(t),h.oxw().secondFormGroup.get("generatePasswordCtrl").setValue(!1)}),h.TgZ(76,"mat-label"),h._uU(77),h.ALo(78,"translate"),h.qZA(),h._UZ(79,"input",26),h.YNc(80,pl,3,3,"mat-error",11),h.YNc(81,dl,3,3,"mat-error",11),h.qZA(),h.TgZ(82,"p",27),h._uU(83),h.ALo(84,"translate"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(85,"div",15),h.TgZ(86,"button",16),h.NdJ("click",function(){return h.CHM(t),h.oxw().onCancel()}),h._uU(87),h.ALo(88,"translate"),h.qZA(),h.TgZ(89,"button",28),h._uU(90),h.ALo(91,"translate"),h.qZA(),h.TgZ(92,"button",29),h._uU(93),h.ALo(94,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(95,"mat-step"),h.YNc(96,gl,2,3,"ng-template",8),h.TgZ(97,"h6"),h._uU(98),h.ALo(99,"translate"),h.qZA(),h.TgZ(100,"mat-list"),h.YNc(101,ml,10,9,"mat-list-item",30),h.qZA(),h.TgZ(102,"h6",31),h._uU(103),h.ALo(104,"translate"),h.qZA(),h.TgZ(105,"mat-form-field",32),h.TgZ(106,"input",33),h.NdJ("keyup.enter",function(){h.CHM(t);const e=h.oxw();return 0!==e.searchCtrl.value.length&&e.onSearchByString()}),h.ALo(107,"translate"),h.qZA(),h.qZA(),h.TgZ(108,"button",34),h.NdJ("click",function(){return h.CHM(t),h.oxw().onSearchByString()}),h.TgZ(109,"mat-icon"),h._uU(110,"search"),h.qZA(),h.qZA(),h.TgZ(111,"button",35),h.NdJ("click",function(){return h.CHM(t),h.oxw().addUsers()}),h._uU(112),h.ALo(113,"translate"),h.qZA(),h.YNc(114,Al,1,0,"mat-spinner",3),h.YNc(115,El,3,2,"div",11),h.TgZ(116,"div",15),h.TgZ(117,"button",16),h.NdJ("click",function(){return h.CHM(t),h.oxw().onCancel()}),h._uU(118),h.ALo(119,"translate"),h.qZA(),h.TgZ(120,"button",28),h._uU(121),h.ALo(122,"translate"),h.qZA(),h.TgZ(123,"button",36),h.NdJ("click",function(){return h.CHM(t),h.oxw().onCreate()}),h._uU(124),h.ALo(125,"translate"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.Q6J("linear",!0),h.xp6(1),h.Q6J("stepControl",t.firstFormGroup),h.xp6(1),h.Q6J("formGroup",t.firstFormGroup),h.xp6(5),h.Oqu(h.lcZ(9,66,"DIALOGS.CREATE_SERVICE_MEMBER.NAME")),h.xp6(3),h.Q6J("ngIf",t.firstFormGroup.get("nameCtrl").hasError("required")),h.xp6(3),h.Oqu(h.lcZ(15,68,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL")),h.xp6(3),h.Q6J("ngIf",t.firstFormGroup.get("emailCtrl").hasError("required")),h.xp6(1),h.Q6J("ngIf",t.firstFormGroup.get("emailCtrl").hasError("pattern")),h.xp6(3),h.Oqu(h.lcZ(22,70,"DIALOGS.CREATE_SERVICE_MEMBER.SUBJECT_DN")),h.xp6(2),h.Q6J("required",!!t.firstFormGroup.get("issuerCtrl").value&&0!==t.firstFormGroup.get("issuerCtrl").value.trim().length),h.xp6(1),h.Q6J("ngIf",t.firstFormGroup.get("subjectCtrl").hasError("required")),h.xp6(3),h.Oqu(h.lcZ(28,72,"DIALOGS.CREATE_SERVICE_MEMBER.ISSUER_DN")),h.xp6(2),h.Q6J("required",!!t.firstFormGroup.get("subjectCtrl").value&&0!==t.firstFormGroup.get("subjectCtrl").value.trim().length),h.xp6(1),h.Q6J("ngIf",t.firstFormGroup.get("issuerCtrl").hasError("required")),h.xp6(3),h.hij(" ",h.lcZ(34,74,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),h.xp6(2),h.Q6J("disabled",t.firstFormGroup.invalid||t.firstFormGroup.pending),h.xp6(1),h.hij(" ",h.lcZ(37,76,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," "),h.xp6(2),h.Q6J("stepControl",t.secondFormGroup),h.xp6(1),h.Q6J("formGroup",t.secondFormGroup),h.xp6(5),h.Oqu(h.lcZ(45,78,"DIALOGS.CREATE_SERVICE_MEMBER.NAMESPACE")),h.xp6(3),h.Q6J("ngForOf",t.passwordNamespaces),h.xp6(1),h.s9C("matTooltip",h.lcZ(49,80,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED")),h.Q6J("matTooltipDisabled",t.secondFormGroup.get("loginCtrl").enabled),h.xp6(3),h.Oqu(h.lcZ(52,82,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN")),h.xp6(3),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").hasError("required")),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").hasError("loginExists")),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").hasError("pattern")&&!t.secondFormGroup.get("loginCtrl").hasError("minlength")),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").hasError("maxlength")),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").hasError("minlength")),h.xp6(1),h.s9C("matTooltip",h.lcZ(60,84,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),h.Q6J("matTooltipDisabled","Not selected"!==t.secondFormGroup.get("namespaceCtrl").value),h.xp6(2),h.Q6J("checked",t.secondFormGroup.get("generatePasswordCtrl").value&&t.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!0),h.xp6(1),h.hij(" ",h.lcZ(63,86,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),h.xp6(2),h.Q6J("checked",!t.secondFormGroup.get("generatePasswordCtrl").value&&t.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!1),h.xp6(1),h.hij(" ",h.lcZ(66,88,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),h.xp6(2),h.ekj("input-disabled",t.secondFormGroup.get("generatePasswordCtrl").value),h.xp6(3),h.Oqu(h.lcZ(71,90,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD")),h.xp6(2),h.Q6J("required",!t.secondFormGroup.get("generatePasswordCtrl").value),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("passwordCtrl").hasError("isWeak")&&!t.secondFormGroup.get("passwordCtrl").hasError("minlength")),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("passwordCtrl").hasError("minlength")),h.xp6(3),h.Oqu(h.lcZ(78,92,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_AGAIN")),h.xp6(2),h.Q6J("required",!t.secondFormGroup.get("generatePasswordCtrl").value),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("passwordAgainCtrl").hasError("required")),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),h.xp6(2),h.Oqu(h.lcZ(84,94,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_INFO")),h.xp6(4),h.hij(" ",h.lcZ(88,96,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),h.xp6(3),h.hij(" ",h.lcZ(91,98,"DIALOGS.CREATE_SERVICE_MEMBER.BACK")," "),h.xp6(2),h.Q6J("disabled",t.secondFormGroup.invalid||t.secondFormGroup.pending),h.xp6(1),h.hij(" ",h.lcZ(94,100,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," "),h.xp6(5),h.Oqu(h.lcZ(99,102,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),h.xp6(3),h.Q6J("ngForOf",t.assignedMembers),h.xp6(2),h.Oqu(h.lcZ(104,104,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),h.xp6(3),h.s9C("placeholder",h.lcZ(107,106,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_PLACEHOLDER")),h.Q6J("formControl",t.searchCtrl),h.xp6(2),h.Q6J("disabled",t.loading||0===t.searchCtrl.value.length),h.xp6(3),h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.Oqu(h.lcZ(113,108,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")),h.xp6(2),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading),h.xp6(3),h.hij(" ",h.lcZ(119,110,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),h.xp6(3),h.hij(" ",h.lcZ(122,112,"DIALOGS.CREATE_SERVICE_MEMBER.BACK")," "),h.xp6(2),h.Q6J("disabled",t.firstFormGroup.invalid||"Not selected"!==t.secondFormGroup.get("namespaceCtrl").value&&t.secondFormGroup.invalid),h.xp6(1),h.Oqu(h.lcZ(125,114,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE"))}}function bl(t,e){1&t&&h._UZ(0,"mat-spinner",44)}let _l=(()=>{class t{constructor(t,e,i,o,a,s,n,r,l){this.dialogRef=t,this.data=e,this.membersManagerService=i,this.usersManagerService=o,this.notificator=a,this.translate=s,this.store=n,this._formBuilder=r,this.tableConfigService=l,this.passwordNamespaces=[],this.firstSearchDone=!1,this.searchCtrl=new he.NI(""),this.members=[],this.selection=new la.Ov(!0,[]),this.tableId=Ia.j1,this.assignedMembers=[],this.candidate={},this.successMessageMember="",this.successMessagePwd="",s.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(t=>this.successMessageMember=t),s.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(t=>this.successMessagePwd=t)}ngOnInit(){this.firstFormGroup=this._formBuilder.group({nameCtrl:["",he.kI.required],emailCtrl:["",[he.kI.required,he.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[he.kI.pattern("^[a-z][a-z0-9_-]+$"),he.kI.maxLength(15),he.kI.minLength(2)]],passwordCtrl:["",he.kI.compose([c.dN.patternValidator([/\d/,/[A-Z]/,/[a-z]/,/[$&+,:;=?@#|'<>.^*()%!-]/]),he.kI.minLength(10)])],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validator:c.dN.passwordMatchValidator}),this.onNamespaceChanged("Not selected"),this.passwordNamespaces=["Not selected"].concat(this.store.get("password_namespace_attributes").map(t=>t.split(":")[6].toUpperCase())),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId);const t=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(t.id).subscribe(e=>{let i={};for(const t of e)t.voId===this.data.voId&&(i=t);i.user=t,this.assignedMembers.push(i)})}existingLoginValidator(){return t=>{let e=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase();return e="not selected"===e?"mu":e,t.valueChanges.pipe((0,kr.b)(500),(0,zr.q)(1),(0,Br.w)(()=>this.usersManagerService.isLoginAvailable(e,t.value).pipe((0,Gn.U)(t=>t?null:{loginExists:!0}))))}}onCreate(){this.processing=!0,this.candidate.firstName="",this.candidate.lastName=this.firstFormGroup.get("nameCtrl").value,this.candidate.attributes={},this.candidate.attributes["urn:perun:member:attribute-def:def:mail"]=this.firstFormGroup.get("emailCtrl").value,"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&(this.candidate.attributes[`urn:perun:user:attribute-def:def:login-namespace:${this.secondFormGroup.get("namespaceCtrl").value.toLowerCase()}`]=this.secondFormGroup.get("loginCtrl").value);const t=this.firstFormGroup.get("subjectCtrl");t&&t.value&&(this.candidate.userExtSource={},this.candidate.userExtSource.login=t.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"),this.membersManagerService.createSpecificMember({vo:this.data.voId,specificUserType:"SERVICE",specificUserOwners:this.assignedMembers.map(t=>t.user),candidate:this.candidate}).subscribe(t=>{this.membersManagerService.validateMemberAsync(t.id).subscribe(t=>{this.notificator.showSuccess(this.successMessageMember),"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value?this.setPassword(t,this.secondFormGroup.get("generatePasswordCtrl").value):(this.dialogRef.close(!0),this.processing=!1)},()=>this.processing=!1)},()=>this.processing=!1)}setPassword(t,e){const i=this.secondFormGroup.get("loginCtrl").value,o=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),a=this.secondFormGroup.get("passwordCtrl").value;e?this.usersManagerService.reserveRandomPassword(t.userId,o).subscribe(()=>{this.usersManagerService.validatePasswordForUser(t.userId,o).subscribe(()=>{this.validateMember(t.id)},()=>{this.processing=!1,this.dialogRef.close(!0)})},()=>{this.processing=!1,this.dialogRef.close(!0)}):this.usersManagerService.reservePasswordForLogin(i,o,a).subscribe(()=>{this.usersManagerService.validatePasswordForLogin(i,o).subscribe(()=>{this.validateMember(t.id)},()=>{this.processing=!1,this.dialogRef.close(!0)})},()=>{this.processing=!1,this.dialogRef.close(!0)})}validateMember(t){this.membersManagerService.validateMemberAsync(t).subscribe(()=>{this.notificator.showSuccess(this.successMessagePwd),this.dialogRef.close(!0),this.processing=!1},()=>{this.processing=!1,this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.voId,[null],this.searchCtrl.value).subscribe(t=>{this.members=t.filter(t=>!t.user.specificUser),this.firstSearchDone=!0,this.loading=!1})}addUsers(){const t=this.assignedMembers.map(t=>t.id);this.selection.selected.forEach(e=>{t.includes(e.id)||this.assignedMembers.push(e)}),this.selection.clear()}removeUser(t){this.assignedMembers=this.assignedMembers.filter(e=>e.id!==t.id)}onNamespaceChanged(t){const e=this.secondFormGroup.get("loginCtrl"),i=this.secondFormGroup.get("passwordCtrl"),o=this.secondFormGroup.get("passwordAgainCtrl"),a=this.secondFormGroup.get("generatePasswordCtrl");if("Not selected"!==t){const t=[he.kI.required,he.kI.pattern("^[a-z][a-z0-9_-]+$"),he.kI.maxLength(15),he.kI.minLength(2)];(0,c.mH)(e,t,[this.existingLoginValidator()]),(0,c.mH)(a,[]),this.passwordOptionChanged()}else e.disable(),e.setValue(""),i.disable(),i.setValue(""),o.disable(),o.setValue(""),a.disable(),a.dirty||a.setValue(!0)}passwordOptionChanged(){const t=this.secondFormGroup.get("passwordCtrl"),e=this.secondFormGroup.get("passwordAgainCtrl");if(this.secondFormGroup.get("generatePasswordCtrl").value)t.disable(),t.setValue(""),e.disable(),e.setValue("");else{const i=[he.kI.required,c.dN.patternValidator([/\d/,/[A-Z]/,/[a-z]/,/[$&+,:;=?@#|'<>.^*()%!-]/]),he.kI.minLength(10)];(0,c.mH)(t,i),(0,c.mH)(e,[])}}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.uq),h.Y36(l.Fv),h.Y36(u.V6),h.Y36(_.sK),h.Y36(u.d6),h.Y36(he.qu),h.Y36(Ia.dB))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-create-service-member-dialog"]],decls:6,vars:5,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-content","",1,"dialog-container"],[3,"linear"],[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"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["color","accent","mat-flat-button","","matStepperNext","",1,"ml-auto",3,"disabled"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltipDisabled","matTooltip"],["formControlName","loginCtrl","matInput","","required",""],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[3,"click"],["formControlName","passwordCtrl","matInput","","type","password",3,"required"],["formControlName","passwordAgainCtrl","matInput","","type","password",3,"required"],[1,"white-space-pre"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto"],["color","accent","mat-flat-button","","matStepperNext","",1,"ml-2",3,"disabled"],[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"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[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","pageSize","selection",4,"ngIf"],[3,"alert_type",4,"ngIf"],[3,"disableRouting","displayedColumns","members","pageSize","selection"],[3,"alert_type"]],template:function(t,e){1&t&&(h.TgZ(0,"div",0),h.TgZ(1,"h1",1),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Zl,126,116,"div",2),h.YNc(5,bl,1,0,"mat-spinner",3),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,3,"DIALOGS.CREATE_SERVICE_MEMBER.TITLE")),h.xp6(2),h.Q6J("ngIf",!e.processing),h.xp6(1),h.Q6J("ngIf",e.processing))},directives:[o.O5,A.xY,yn.Vq,yn.C0,he._Y,he.JL,he.sg,yn.VY,Te.KE,Te.hX,he.Fj,Ee.Nt,he.JJ,he.u,he.Q7,A.H8,b.lW,yn.Ic,fe.gD,o.sg,E.gM,me.VQ,me.U0,yn.fd,Hr.i$,he.oH,f.Hw,Te.TO,Ze.ey,Hr.Tg,T.$g,jr.O,pt.w],pipes:[_.X$,Rt.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}"]}),t})();var Sl=i(4374);function Nl(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().createServiceMember()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.CREATE"),"\n"))}function Ol(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().onRemoveMembers()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",t.selection.isEmpty()),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.DELETE"),"\n")}}function vl(t,e){1&t&&h._UZ(0,"mat-spinner",9)}const xl=function(){return["checkbox","id","type","fullName","status"]};function Cl(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"perun-web-apps-members-list",10),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("displayedColumns",h.DdM(5,xl))("filter",t.searchString)("members",t.members)("pageSize",t.pageSize)("selection",t.selection)}}const Ll=[{path:"",component:s.Y},{path:":voId",component:at,children:[{path:"",component:H,data:{animation:"VoOverviewPage"}},{path:"attributes",component:ce,data:{animation:"VoAttributesPage"}},{path:"groups",component:j.G,data:{animation:"VoGroupsPage"}},{path:"members",component:$.y,data:{animation:"VoMembersPage"}},{path:"resources",component:se,children:[{path:"",component:sa,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:na.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:ra.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Na,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:ne.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:Ci,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:mr.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:(()=>{class t{constructor(t,e,i,o,a,s){this.membersManager=t,this.route=e,this.dialog=i,this.authResolver=o,this.tableConfigService=a,this.authzService=s,this.members=[],this.selection=new la.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=Ia._c}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.voId=t.voId,this.refresh()}),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[{beanName:"",id:this.voId}])}createServiceMember(){const t=(0,c.kZ)();t.width="750px",t.data={voId:this.voId},this.dialog.open(_l,t).afterClosed().subscribe(t=>{t&&this.refresh()})}onRemoveMembers(){const t=(0,c.kZ)();t.width="450px",t.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(Sl.X,t).afterClosed().subscribe(t=>{t&&(this.refresh(),this.selection.clear())})}applyFilter(t){this.searchString=t}refresh(){this.loading=!0,this.membersManager.findCompleteRichMembersForVo(this.voId,[null],"(Service)").subscribe(t=>{this.members=t,this.loading=!1})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.uq),h.Y36(a.gz),h.Y36(A.uw),h.Y36(u.x4),h.Y36(Ia.dB),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-service-members"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","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,"displayedColumns","filter","members","pageSize","selection","page",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filter","members","pageSize","selection","page"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refresh()}),h.qZA(),h.YNc(4,Nl,3,3,"button",2),h.YNc(5,Ol,3,4,"button",3),h.TgZ(6,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(7,vl,1,0,"mat-spinner",5),h.YNc(8,Cl,1,6,"perun-web-apps-members-list",6)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.TITLE")),h.xp6(3),h.Q6J("ngIf",!e.loading),h.xp6(1),h.Q6J("ngIf",e.removeAuth),h.xp6(1),h.Q6J("placeholder","VO_DETAIL.SETTINGS.SERVICE_MEMBERS.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[Ta.t,o.O5,fa.L,b.lW,T.$g,jr.O],pipes:[_.X$],styles:[""]}),t})(),data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:Cr,data:{animation:"VoStatisticsPage"}},{path:"settings",component:re,children:[{path:"",component:de,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:Pe,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:Je,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:Bi.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:Qo,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:Fr},{path:"notifications",component:Ds,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:cn,data:{animation:"VoSettingsExtSourcesPage"}}]}]},{path:":voId/members/:memberId",component:Q,children:[{path:"",component:Xt,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:aa,data:{animation:"MemberAttributesPage"}},{path:"groups",component:Wt.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:wn,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:Ci,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:sr,data:{animation:"MemberResourcesPage"}}]},{path:":voId/groups/:groupId",component:w,children:[{path:"",component:oe,data:{animation:"GroupOverviewPage"}},{path:"members",component:Li.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:ae.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:Ge.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:Ri.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:Fi,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:Mr,data:{animation:"GroupStatisticsPage"}},{path:"settings",component:Mi,children:[{path:"",component:zi,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:va,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:Ca,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:Us.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:Qo},{path:"notifications",component:Qs,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:vn,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:Er,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:Ci,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:nr.b,children:[{path:"",component:rr.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:lr.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:gr.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:pr.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:hr.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Qr.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:cr.t,children:[{path:"",component:ur.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:dr.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let Rl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[a.Bz.forChild(Ll)],a.Bz]}),t})();var Ml=i(28780),Dl=i(22727),Ul=i(22280);let ql=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[o.ez,Rl,Ml.m,Dl.r,bn.ez,Ul.d4,c.Je]]}),t})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/427-es5.1c911b592f126adfd085.js b/dist/apps/admin-gui/427-es5.1c911b592f126adfd085.js new file mode 100644 index 000000000..577bff496 --- /dev/null +++ b/dist/apps/admin-gui/427-es5.1c911b592f126adfd085.js @@ -0,0 +1 @@ +!function(){function t(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var a,n,o=[],r=!0,s=!1;try{for(i=i.call(t);!(r=(a=i.next()).done)&&(o.push(a.value),!e||o.length!==e);r=!0);}catch(l){s=!0,n=l}finally{try{r||null==i.return||i.return()}finally{if(s)throw n}}return o}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=i(t))||e&&t&&"number"==typeof t.length){a&&(t=a);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,l=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return s=t.done,t},e:function(t){l=!0,r=t},f:function(){try{s||null==a.return||a.return()}finally{if(l)throw r}}}}function i(t,e){if(t){if("string"==typeof t)return a(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i_policy",[t.group])?t.groupService.getRichGroupByIdWithAttributesByNames(i,t.attrNames).subscribe(function(e){t.group=e,t.syncEnabled=t.isSynchronized(),t.syncAuth=t.guiAuthResolver.isAuthorized("forceGroupSynchronization_Group_policy",[t.group])},function(){return t.loading=!1}):t.syncEnabled=!1,t.editAuth=t.guiAuthResolver.isAuthorized("updateGroup_Group_policy",[t.group]),t.deleteAuth=t.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[t.group]);var n=t.sideMenuItemService.parseVo(e),o=t.sideMenuItemService.parseGroup(a);t.sideMenuService.setAccessMenuItems([n,o]),t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})})}},{key:"isSynchronized",value:function(){return this.group.attributes.some(function(t){return"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString()})}},{key:"onSyncDetail",value:function(){var t=(0,g.kZ)();t.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(f.Bp,t)}},{key:"editGroup",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={theme:"group-theme",group:this.group,dialogType:f.Eg.GROUP},this.dialog.open(f.rd,e).afterClosed().subscribe(function(e){e&&t.groupService.getGroupById(t.group.id).subscribe(function(e){t.group=e})})}},{key:"deleteGroup",value:function(){var t=this,e=(0,g.kZ)();e.width="500px",e.data={theme:"group-theme",groups:[this.group]},this.dialog.open(A.P,e).afterClosed().subscribe(function(e){e&&t.router.navigate(["../"],{relativeTo:t.route})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.YF),I.Y36(l.gz),I.Y36(c.V),I.Y36(d.ff),I.Y36(v.uw),I.Y36(h.x4),I.Y36(l.F0))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-detail-page"]],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"],["mat-icon-button","","aria-label","Edit group",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","aria-label","Edit group",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(t,e){1&t&&(I.TgZ(0,"div",0),I._UZ(1,"perun-web-apps-back-button"),I.YNc(2,R,1,0,"mat-spinner",1),I.YNc(3,G,25,32,"div",2),I.qZA()),2&t&&(I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.group))},directives:[E.W,s.O5,Z.$g,b.Hw,_.gM,s.PC,l.yS,S.A,N.lW],pipes:[O.X$,x.r,C.J,L.F],styles:[""],data:{animation:[p.Ji]}}),t}();function Y(t,e){1&t&&I._UZ(0,"mat-spinner",3)}var J=function(t){return["/admin","users",t]};function V(t,e){if(1&t&&(I.TgZ(0,"a",8),I._uU(1),I.qZA()),2&t){var i=I.oxw(2);I.Q6J("routerLink",I.VKq(2,J,i.member.userId)),I.xp6(1),I.hij(" ",i.member.userId," ")}}function F(t,e){if(1&t&&(I.TgZ(0,"span"),I._uU(1),I.qZA()),2&t){var i=I.oxw(2);I.xp6(1),I.Oqu(i.member.userId)}}var Q=function(){return{color:"black"}},z=function(t,e){return["/organizations",t,"members",e]};function B(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"div",4),I._UZ(2,"mat-icon",5),I.ALo(3,"translate"),I.TgZ(4,"div",6),I.TgZ(5,"div",7),I.TgZ(6,"a",8),I._uU(7),I.qZA(),I.TgZ(8,"span",9),I._uU(9),I.qZA(),I.qZA(),I.TgZ(10,"span",10),I._uU(11),I.ALo(12,"translate"),I.ALo(13,"translate"),I.YNc(14,V,2,4,"a",11),I.YNc(15,F,2,1,"span",2),I.qZA(),I.qZA(),I.qZA(),I._UZ(16,"app-animated-router-outlet"),I.qZA()),2&t){var i=I.oxw();I.xp6(2),I.s9C("matTooltip",I.lcZ(3,9,"MEMBER_DETAIL.ENTITY")),I.Q6J("ngStyle",I.DdM(15,Q)),I.xp6(4),I.Q6J("routerLink",I.WLB(16,z,i.vo.id,i.member.id)),I.xp6(1),I.hij(" ",i.fullName," "),I.xp6(2),I.hij(" \xa0#",i.member.id," "),I.xp6(2),I.AsE(" ",I.lcZ(12,11,"MEMBER_DETAIL.ENTITY"),", ",I.lcZ(13,13,"MEMBER_DETAIL.USER_ID"),": "),I.xp6(3),I.Q6J("ngIf",i.isAuthorized),I.xp6(1),I.Q6J("ngIf",!i.isAuthorized)}}var j=function(){var t=function(){function t(e,i,a,o,r,s,l){n(this,t),this.sideMenuItemService=e,this.translate=i,this.sideMenuService=a,this.membersService=o,this.voService=r,this.route=s,this.authResolver=l,this.fullName="",this.isAuthorized=!1,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe(function(e){var i=e.voId,a=e.memberId;t.isAuthorized=t.authResolver.isPerunAdminOrObserver(),t.voService.getVoById(i).subscribe(function(e){t.vo=e,t.membersService.getRichMemberWithAttributes(a).subscribe(function(e){t.member=e;var i=t.sideMenuItemService.parseVo(t.vo),a=t.sideMenuItemService.parseMember(t.member,t.vo);t.fullName=a.label,t.sideMenuService.setAccessMenuItems([i,a]),t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(c.V),I.Y36(O.sK),I.Y36(T.D),I.Y36(d.uq),I.Y36(d.YF),I.Y36(l.gz),I.Y36(h.x4))},t.\u0275cmp=I.Xpm({type:t,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(t,e){1&t&&(I.TgZ(0,"div",0),I._UZ(1,"perun-web-apps-back-button"),I.YNc(2,Y,1,0,"mat-spinner",1),I.YNc(3,B,17,19,"div",2),I.qZA()),2&t&&(I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.member))},directives:[E.W,s.O5,Z.$g,b.Hw,_.gM,s.PC,l.yS,S.A],pipes:[O.X$],styles:[""],data:{animation:[p.Ji]}}),t}(),H=o(8557);function X(t,e){1&t&&I._UZ(0,"mat-spinner",2)}function $(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"perun-web-apps-menu-buttons-field",3),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("items",i.navItems)("size","small")}}var W=function(){var t=function(){function t(e,i,a,o,r){n(this,t),this.sideMenuService=e,this.voService=i,this.route=a,this.router=o,this.authResolver=r,this.items=[],this.navItems=[],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e,t.initNavItems(),t.loading=!1},function(){return t.loading=!1})})}},{key:"initNavItems",value:function(){this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:"/organizations/".concat(this.vo.id,"/members"),label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:"/organizations/".concat(this.vo.id,"/groups"),label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-manage-facility",url:"/organizations/".concat(this.vo.id,"/resources"),label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:"/organizations/".concat(this.vo.id,"/applications"),label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:"/organizations/".concat(this.vo.id,"/sponsoredMembers"),label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-service-identity",url:"/organizations/".concat(this.vo.id,"/serviceAccounts"),label:"MENU_ITEMS.VO.SERVICE_MEMBERS",style:"vo-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"/organizations/".concat(this.vo.id,"/attributes"),label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[this.vo])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-statistics",url:"/organizations/".concat(this.vo.id,"/statistics"),label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),(this.authResolver.isManagerPagePrivileged(this.vo)||this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])||this.authResolver.isThisVoAdminOrObserver(this.vo.id))&&this.navItems.push({cssIcon:"perun-settings2",url:"/organizations/".concat(this.vo.id,"/settings"),label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.YF),I.Y36(l.gz),I.Y36(l.F0),I.Y36(h.x4))},t.\u0275cmp=I.Xpm({type:t,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(t,e){1&t&&(I.YNc(0,X,1,0,"mat-spinner",0),I.YNc(1,$,2,2,"div",1)),2&t&&(I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,Z.$g,H.L],styles:[""]}),t}(),K=o(48002),tt=o(28940),et=o(99608);function it(t,e){1&t&&I._UZ(0,"mat-spinner",3)}function at(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",13),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).editVo()}),I.TgZ(1,"mat-icon"),I._uU(2,"edit"),I.qZA(),I.qZA()}}function nt(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",14),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).removeVo()}),I.TgZ(1,"mat-icon"),I._uU(2,"delete_forever"),I.qZA(),I.qZA()}}var ot=function(){return{color:"black"}},rt=function(t){return["/organizations/",t]};function st(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"div",4),I._UZ(2,"mat-icon",5),I.ALo(3,"translate"),I.TgZ(4,"div",6),I.TgZ(5,"div",7),I.TgZ(6,"a",8),I._uU(7),I.qZA(),I.TgZ(8,"span",9),I._uU(9),I.qZA(),I.YNc(10,at,3,0,"button",10),I.YNc(11,nt,3,0,"button",11),I.qZA(),I.TgZ(12,"span",12),I._uU(13),I.ALo(14,"translate"),I.ALo(15,"translate"),I.qZA(),I.qZA(),I.qZA(),I._UZ(16,"app-animated-router-outlet"),I.qZA()),2&t){var i=I.oxw();I.xp6(2),I.s9C("matTooltip",I.lcZ(3,10,"VO_DETAIL.ENTITY")),I.Q6J("ngStyle",I.DdM(16,ot)),I.xp6(4),I.Q6J("routerLink",I.VKq(17,rt,i.vo.id)),I.xp6(1),I.hij(" ",i.vo.name," "),I.xp6(2),I.hij(" \xa0#",i.vo.id," "),I.xp6(1),I.Q6J("ngIf",i.editAuth),I.xp6(1),I.Q6J("ngIf",i.removeAuth),I.xp6(2),I.lnq(" ",I.lcZ(14,12,"VO_DETAIL.ENTITY"),", ",I.lcZ(15,14,"VO_DETAIL.SHORT_NAME"),": ",i.vo.shortName," ")}}var lt=function(){var t=function(){function t(e,i,a,o,r,s,l){n(this,t),this.sideMenuService=e,this.voService=i,this.route=a,this.router=o,this.sideMenuItemService=r,this.dialog=s,this.authResolver=l,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e,t.editAuth=t.authResolver.isAuthorized("updateVo_Vo_policy",[t.vo]),t.removeAuth=t.authResolver.isAuthorized("deleteVo_Vo_policy",[t.vo]);var i=t.sideMenuItemService.parseVo(e);t.sideMenuService.setAccessMenuItems([i]),(0,g.sF)("vos",t.vo),(0,g.XI)(t.vo),t.loading=!1},function(){return t.loading=!1})})}},{key:"editVo",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:f.Eg.VO},this.dialog.open(f.rd,e).afterClosed().subscribe(function(e){e&&t.voService.getVoById(t.vo.id).subscribe(function(e){t.vo=e})})}},{key:"removeVo",value:function(){var t=this,e=(0,g.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(et.o,e).afterClosed().subscribe(function(e){e&&t.router.navigate([""])})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.YF),I.Y36(l.gz),I.Y36(l.F0),I.Y36(c.V),I.Y36(v.uw),I.Y36(h.x4))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-detail-page"]],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"],["svgIcon","perun-vo-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,"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",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo",3,"click"]],template:function(t,e){1&t&&(I.TgZ(0,"div",0),I._UZ(1,"perun-web-apps-back-button"),I.YNc(2,it,1,0,"mat-spinner",1),I.YNc(3,st,17,19,"div",2),I.qZA()),2&t&&(I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading&&void 0!==e.vo))},directives:[E.W,s.O5,Z.$g,b.Hw,_.gM,s.PC,l.yS,S.A,N.lW],pipes:[O.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[p.Ji]}}),t}(),ut=o(67033),ct=o(95121),pt=o(79592),dt=o(27439),gt=o(64737),ht=o(37665),mt=o(39571),ft=o(74842),At=o(37043),It=o(73669),Tt=o(58506);function vt(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"perun-web-apps-group-search-select",7),I.NdJ("groupSelected",function(t){return I.CHM(i),I.oxw().groupIsSelected(t)}),I.qZA()}if(2&t){var a=I.oxw();I.Q6J("groups",a.groups)("firstSelectedGroup",a.selectedGroup)}}function Et(t,e){1&t&&I._UZ(0,"mat-spinner",8)}function Zt(t,e){1&t&&(I.TgZ(0,"app-alert",9),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function bt(t,e){1&t&&I._UZ(0,"th",17)}function _t(t,e){if(1&t&&(I.TgZ(0,"td",18),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.hij(" ",i,": ")}}function St(t,e){1&t&&I._UZ(0,"th",17)}function Nt(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",22),I.NdJ("click",function(){return I.CHM(i),I.oxw(4).changeStatus()}),I.TgZ(1,"mat-icon"),I._uU(2,"edit"),I.qZA(),I.qZA()}}function Ot(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"i"),I.ALo(2,"memberStatusIconColor"),I._uU(3),I.ALo(4,"memberStatusIcon"),I.qZA(),I.TgZ(5,"b",20),I._uU(6),I.ALo(7,"transformMemberStatus"),I.qZA(),I.YNc(8,Nt,3,0,"button",21),I.qZA()),2&t){var i=I.oxw(3);I.xp6(1),I.Gre("material-icons vert-center mr-1 ",I.lcZ(2,6,i.selectedMember.groupStatus),""),I.xp6(2),I.hij(" ",I.lcZ(4,8,i.selectedMember.groupStatus)," "),I.xp6(3),I.hij(" ",I.lcZ(7,10,i.selectedMember.groupStatus)," "),I.xp6(2),I.Q6J("ngIf",i.authResolver.isThisVoAdmin(i.vo.id)||i.authResolver.isThisGroupAdmin(i.selectedGroup.id))}}function xt(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",22),I.NdJ("click",function(){return I.CHM(i),I.oxw(4).changeExpiration()}),I.TgZ(1,"mat-icon"),I._uU(2,"edit"),I.qZA(),I.qZA()}}function Ct(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"i",2),I._uU(2),I.ALo(3,"parseDate"),I.qZA(),I.YNc(4,xt,3,0,"button",21),I.qZA()),2&t){var i=I.oxw(3);I.xp6(2),I.hij(" ",I.lcZ(3,2,i.expiration)," "),I.xp6(2),I.Q6J("ngIf",i.authResolver.isThisVoAdmin(i.vo.id)||i.authResolver.isThisGroupAdmin(i.selectedGroup.id))}}function Lt(t,e){if(1&t&&(I.TgZ(0,"td",19),I.YNc(1,Ot,9,12,"div",6),I.YNc(2,Ct,5,4,"div",6),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.Q6J("ngIf","Status"===i),I.xp6(1),I.Q6J("ngIf","Expiration"===i)}}function Rt(t,e){1&t&&I._UZ(0,"tr",23)}function Mt(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"table",10),I.ynx(2,11),I.YNc(3,bt,1,0,"th",12),I.YNc(4,_t,2,1,"td",13),I.BQk(),I.ynx(5,14),I.YNc(6,St,1,0,"th",12),I.YNc(7,Lt,3,2,"td",15),I.BQk(),I.YNc(8,Rt,1,0,"tr",16),I.qZA(),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("dataSource",i.groupMembershipDataSource),I.xp6(7),I.Q6J("matRowDefColumns",i.displayedColumns)}}var Dt=function(){var t=function(){function t(e,i,a,o){n(this,t),this.groupsManager=e,this.authResolver=i,this.translate=a,this.dialog=o,this.noGroups=!1,this.groupMembershipDataSource=new ut.by,this.expiration="",this.displayedColumns=["attName","attValue"]}return r(t,[{key:"ngOnChanges",value:function(){var t=this;this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new ut.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(function(e){if(t.groups=e,0!==t.groups.length){var i=t.findInitiallySelectedGroupId();t.groupIsSelected(i),t.initLoading=!1}else t.noGroups=!0})}},{key:"findInitiallySelectedGroupId",value:function(){var t=this;if(this.recentIds=(0,g.vL)("groups"),this.recentIds){var e=this.groups.find(function(e){return e.id===t.recentIds[0]});if(e)return e}return this.groups[0]}},{key:"groupIsSelected",value:function(t){var e=this;this.loading=!0,this.selectedGroup=t,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[m.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(function(t){e.selectedMember=t[0],e.expirationAtt=e.selectedMember.memberAttributes.find(function(t){return"groupMembershipExpiration"===t.baseFriendlyName}),e.expirationAtt?(e.groupMembershipDataSource=new ut.by(["Status","Expiration"]),e.expiration=e.expirationAtt.value?e.expirationAtt.value:e.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):e.groupMembershipDataSource=new ut.by(["Status"]),e.loading=!1})}},{key:"changeExpiration",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=(0,g.kZ)();i.width="400px",i.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:e},this.dialog.open(f.u3,i).afterClosed().subscribe(function(e){e&&t.groupIsSelected(t.selectedGroup)})}},{key:"changeStatus",value:function(){var t=this,e=(0,g.kZ)();e.width="600px",e.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(f.pf,e).afterClosed().subscribe(function(e){e&&(t.selectedMember=e,t.changeExpiration(!0))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.ff),I.Y36(h.x4),I.Y36(O.sK),I.Y36(v.uw))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-member-overview-groups"]],inputs:{vo:"vo",member:"member"},features:[I.TTD],decls:11,vars:7,consts:[[1,"mat-elevation-z3","groups-card","mt-4"],[1,"page-subtitle"],[1,"column-center"],[3,"groups","firstSelectedGroup","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","info",4,"ngIf"],[4,"ngIf"],[3,"groups","firstSelectedGroup","groupSelected"],[1,"mr-auto","ml-auto"],["alert_type","info"],["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(t,e){1&t&&(I.TgZ(0,"mat-card",0),I.TgZ(1,"mat-card-header"),I.TgZ(2,"mat-card-title"),I.TgZ(3,"h1",1),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(6,"mat-card-content",2),I.YNc(7,vt,1,2,"perun-web-apps-group-search-select",3),I.YNc(8,Et,1,0,"mat-spinner",4),I.YNc(9,Zt,3,3,"app-alert",5),I.YNc(10,Mt,9,2,"div",6),I.qZA(),I.qZA()),2&t&&(I.xp6(4),I.Oqu(I.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")),I.xp6(3),I.Q6J("ngIf",!e.initLoading),I.xp6(1),I.Q6J("ngIf",(e.loading||e.initLoading)&&!e.noGroups),I.xp6(1),I.Q6J("ngIf",e.noGroups),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[dt.a8,dt.dk,dt.n5,dt.dn,s.O5,ht.h,Z.$g,mt.w,ut.BZ,ut.w1,ut.fO,ut.Dz,ut.nj,ut.ge,ut.ev,N.lW,b.Hw,ut.Gk],pipes:[O.X$,ft.u,At.f,It.r,Tt.M],styles:[".groups-card[_ngcontent-%COMP%]{max-width:400px}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),t}(),yt=function(){var t=function(){function t(){n(this,t)}return r(t,[{key:"transform",value:function(t){return(0,g.Cz)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=I.Yjl({name:"attributeFriendlyName",type:t,pure:!0}),t}(),Ut=o(22196);function qt(t,e){1&t&&I._UZ(0,"mat-spinner",2)}function wt(t,e){1&t&&I._UZ(0,"th",17)}function Pt(t,e){if(1&t&&(I.TgZ(0,"span"),I._uU(1),I.qZA()),2&t){var i=I.oxw().$implicit,a=I.oxw(2);I.xp6(1),I.hij(" ",a.attributes.get(i)[0],": ")}}function Gt(t,e){if(1&t&&(I.TgZ(0,"span"),I._uU(1),I.ALo(2,"attributeFriendlyName"),I.qZA()),2&t){var i=I.oxw().$implicit;I.xp6(1),I.hij(" ",I.lcZ(2,1,i),": ")}}function kt(t,e){if(1&t&&(I.TgZ(0,"td",18),I.YNc(1,Pt,2,1,"span",1),I.YNc(2,Gt,3,3,"span",1),I.qZA()),2&t){var i=e.$implicit,a=I.oxw(2);I.xp6(1),I.Q6J("ngIf",null!==a.attributes.get(i)[0]),I.xp6(1),I.Q6J("ngIf",null===a.attributes.get(i)[0])}}function Yt(t,e){1&t&&I._UZ(0,"th",17)}function Jt(t,e){if(1&t&&(I.TgZ(0,"td",19),I._uU(1),I.qZA()),2&t){var i=e.$implicit,a=I.oxw(2);I.xp6(1),I.hij(" ",a.attributes.get(i)[1]," ")}}function Vt(t,e){1&t&&I._UZ(0,"tr",20)}function Ft(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"mat-card",5),I.TgZ(1,"mat-card-header"),I.TgZ(2,"mat-card-title"),I.TgZ(3,"h1",6),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(6,"mat-card-content",21),I.TgZ(7,"div",22),I.ALo(8,"translate"),I.TgZ(9,"button",23),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).requestPwdReset()}),I._uU(10),I.ALo(11,"translate"),I.qZA(),I.qZA(),I.qZA(),I.qZA()}if(2&t){var a=I.oxw(2);I.xp6(4),I.Oqu(I.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),I.xp6(3),I.Q6J("matTooltip",I.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED"))("matTooltipDisabled",a.logins.length>0),I.xp6(2),I.Q6J("disabled",!a.logins.length),I.xp6(1),I.hij(" ",I.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function Qt(t,e){1&t&&(I.TgZ(0,"th",17),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")))}function zt(t,e){if(1&t&&(I.TgZ(0,"td",33),I._uU(1),I.ALo(2,"userFullName"),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.hij(" ",I.lcZ(2,1,i.user)," ")}}function Bt(t,e){1&t&&(I.TgZ(0,"th",17),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")))}function jt(t,e){if(1&t&&(I.TgZ(0,"td",33),I.TgZ(1,"span",34),I._uU(2),I.ALo(3,"parseDate"),I.qZA(),I.qZA()),2&t){var i=e.$implicit;I.xp6(2),I.Oqu(I.lcZ(3,1,i.validityTo))}}function Ht(t,e){1&t&&I._UZ(0,"tr",35)}function Xt(t,e){1&t&&I._UZ(0,"tr",20)}var $t=function(){return["sponsors","expiration"]};function Wt(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"mat-card-content"),I.TgZ(1,"h6",26),I._uU(2),I.ALo(3,"translate"),I.TgZ(4,"button",27),I.NdJ("click",function(){return I.CHM(i),I.oxw(3).changeSponsors()}),I.TgZ(5,"mat-icon"),I._uU(6,"edit"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(7,"table",28),I.ynx(8,29),I.YNc(9,Qt,3,3,"th",9),I.YNc(10,zt,3,3,"td",30),I.BQk(),I.ynx(11,31),I.YNc(12,Bt,3,3,"th",9),I.YNc(13,jt,4,3,"td",30),I.BQk(),I.YNc(14,Ht,1,0,"tr",32),I.YNc(15,Xt,1,0,"tr",13),I.qZA(),I.qZA()}if(2&t){var a=I.oxw(3);I.xp6(2),I.hij(" ",I.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),I.xp6(5),I.Q6J("dataSource",a.sponsorsDataSource),I.xp6(7),I.Q6J("matHeaderRowDef",I.DdM(6,$t)),I.xp6(1),I.Q6J("matRowDefColumns",I.DdM(7,$t))}}function Kt(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"mat-card",24),I.TgZ(2,"mat-card-header"),I.TgZ(3,"mat-card-title"),I.TgZ(4,"h1",6),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.qZA(),I.TgZ(7,"mat-card-subtitle",25),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.qZA(),I.YNc(10,Wt,16,8,"mat-card-content",1),I.qZA(),I.qZA()),2&t){var i=I.oxw(2);I.xp6(5),I.Oqu(I.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),I.xp6(3),I.hij(" ",I.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),I.xp6(2),I.Q6J("ngIf",0!==i.sponsors.length)}}function te(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"div",3),I.TgZ(2,"div",4),I.TgZ(3,"mat-card",5),I.TgZ(4,"mat-card-header"),I.TgZ(5,"mat-card-title"),I.TgZ(6,"h1",6),I._uU(7),I.ALo(8,"translate"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(9,"mat-card-content"),I.TgZ(10,"table",7),I.ynx(11,8),I.YNc(12,wt,1,0,"th",9),I.YNc(13,kt,3,2,"td",10),I.BQk(),I.ynx(14,11),I.YNc(15,Yt,1,0,"th",9),I.YNc(16,Jt,2,1,"td",12),I.BQk(),I.YNc(17,Vt,1,0,"tr",13),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(18,"div",4),I._UZ(19,"app-member-overview-membership",14),I._UZ(20,"app-member-overview-groups",14),I.qZA(),I.TgZ(21,"div",4),I.YNc(22,Ft,12,11,"mat-card",15),I.YNc(23,Kt,11,7,"div",1),I.qZA(),I.qZA(),I.TgZ(24,"div"),I._UZ(25,"perun-web-apps-menu-buttons-field",16),I.qZA(),I.qZA()),2&t){var i=I.oxw();I.xp6(7),I.Oqu(I.lcZ(8,11,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),I.xp6(3),I.Q6J("dataSource",i.dataSource),I.xp6(7),I.Q6J("matRowDefColumns",i.displayedColumns),I.xp6(2),I.Q6J("member",i.member)("vo",i.vo),I.xp6(1),I.Q6J("member",i.member)("vo",i.vo),I.xp6(2),I.Q6J("ngIf",i.pwdResetAuth),I.xp6(1),I.Q6J("ngIf",i.member.sponsored),I.xp6(2),I.Q6J("items",i.navItems)("size","small")}}var ee=function(){var t=function(){function t(e,i,a,o,r,s,l){n(this,t),this.attributesManager=e,this.membersService=i,this.usersManager=a,this.route=o,this.dialog=r,this.authResolver=s,this.storeService=l,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new ut.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new ut.by,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.params.subscribe(function(e){var i=e.memberId;t.attributeNames=t.storeService.getMemberProfileAttributeNames(),t.membersService.getRichMemberWithAttributes(i).subscribe(function(e){var i=t.storeService.get("password_namespace_attributes").map(function(t){return(t=t.split(":"))[t.length-1]});t.attributesManager.getLogins(e.userId).subscribe(function(a){t.logins=a.filter(function(t){return i.includes(t.friendlyNameParameter)}),t.member=e,t.initAttributes(),t.dataSource=new ut.by(Array.from(t.attributes.keys())),t.vo={id:e.voId,beanName:"Vo"},t.pwdResetAuth=t.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[t.vo,t.member]),t.member.sponsored&&t.authResolver.isAuthorized("getSponsorsForMember_Member_List_policy",[t.member])?t.usersManager.getSponsorsForMember(t.member.id,null).subscribe(function(e){t.sponsors=e,t.sponsorsDataSource=new ut.by(t.sponsors),t.initNavItems(),t.refreshData()}):(t.initNavItems(),t.refreshData())},function(){return t.loading=!1})})})}},{key:"initAttributes",value:function(){var t=this;this.attributeNames.forEach(function(e){t.attributes.set(e,[null,"-"])}),this.filterAttributes()}},{key:"filterAttributes",value:function(){var t=this;null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(function(e){t.attributeNames.includes(e.friendlyName)&&t.attributes.set(e.friendlyName,[e.displayName,e.value.toString()])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(function(e){t.attributeNames.includes(e.friendlyName)&&t.attributes.set(e.friendlyName,[e.displayName,e.value.toString()])})}},{key:"initNavItems",value:function(){this.navItems=[],this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:"/organizations/".concat(this.member.voId,"/members/").concat(this.member.id,"/groups"),label:"MENU_ITEMS.MEMBER.GROUPS",style:"member-btn"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:"/organizations/".concat(this.member.voId,"/members/").concat(this.member.id,"/applications"),label:"MENU_ITEMS.MEMBER.APPLICATIONS",style:"member-btn"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-resource",url:"/organizations/".concat(this.member.voId,"/members/").concat(this.member.id,"/resources"),label:"MENU_ITEMS.MEMBER.RESOURCES",style:"member-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"/organizations/".concat(this.vo.id,"/members/").concat(this.member.id,"/attributes"),label:"MENU_ITEMS.MEMBER.ATTRIBUTES",style:"member-btn"})}},{key:"refreshData",value:function(){var t=this;this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(function(e){t.member=e,t.loading=!1},function(){return t.loading=!1})}},{key:"requestPwdReset",value:function(){var t=(0,g.kZ)();t.width="400px",t.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(ct.m,t)}},{key:"changeSponsors",value:function(){var t=this,e=(0,g.kZ)();e.width="650px",e.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(pt.H,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.membersService.getRichMemberWithAttributes(t.member.id).subscribe(function(e){t.member=e,t.member.sponsored&&t.usersManager.getSponsorsForMember(t.member.id,null).subscribe(function(e){t.sponsors=e,t.sponsorsDataSource.data=t.sponsors}),t.loading=!1}))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.H8),I.Y36(d.uq),I.Y36(d.Fv),I.Y36(l.gz),I.Y36(v.uw),I.Y36(h.x4),I.Y36(h.d6))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",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(t,e){1&t&&(I.YNc(0,qt,1,0,"mat-spinner",0),I.YNc(1,te,26,13,"div",1)),2&t&&(I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,Z.$g,dt.a8,dt.dk,dt.n5,dt.dn,ut.BZ,ut.w1,ut.fO,ut.Dz,ut.nj,gt.b,Dt,H.L,ut.ge,ut.ev,ut.Gk,_.gM,N.lW,dt.$j,b.Hw,ut.as,ut.XQ],pipes:[O.X$,yt,Ut.d,Tt.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}"]}),t}(),ie=o(81835);function ae(t,e){1&t&&I._UZ(0,"mat-spinner",2)}var ne=function(t,e){return["/organizations",t,"groups",e]};function oe(t,e){if(1&t&&(I.TgZ(0,"p"),I._uU(1),I.ALo(2,"translate"),I.TgZ(3,"a",4),I._uU(4),I.qZA(),I.qZA()),2&t){var i=I.oxw(2);I.xp6(1),I.hij(" ",I.lcZ(2,3,"GROUP_DETAIL.SUBGROUP_INFO")," "),I.xp6(2),I.Q6J("routerLink",I.WLB(5,ne,i.parentGroup.voId,i.parentGroup.id)),I.xp6(1),I.hij(" ",i.parentGroup.name," ")}}function re(t,e){if(1&t&&(I.TgZ(0,"div"),I.YNc(1,oe,5,8,"p",1),I._UZ(2,"perun-web-apps-menu-buttons-field",3),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("ngIf",null!==i.parentGroup),I.xp6(1),I.Q6J("items",i.navItems)("size","small")}}var se=function(){var t=function(){function t(e,i,a,o,r,s,l){n(this,t),this.route=e,this.groupService=i,this.voService=a,this.guiAuthResolver=o,this.apiRequest=r,this.attributesManager=s,this.notificator=l,this.navItems=[],this.parentGroup=null,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe(function(e){t.groupId=e.groupId,t.groupService.getGroupById(t.groupId).subscribe(function(e){t.group=e,null!==t.group.parentGroupId?t.loadParentGroupData():(t.parentGroup=null,t.initNavItems(),t.loading=!1)},function(){return t.loading=!1})})}},{key:"loadParentGroupData",value:function(){var t=this;this.groupService.getGroupById(this.group.parentGroupId).subscribe(function(e){t.parentGroup=e,t.initNavItems(),t.loading=!1},function(){return t.loading=!1})}},{key:"initNavItems",value:function(){var t=this;this.navItems=[],this.guiAuthResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[this.group])&&this.navItems.push({cssIcon:"perun-user",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.groupId,"/members"),label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[this.group])&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.groupId,"/subgroups"),label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getAssignedRichResources_Group_policy",[this.group])&&this.navItems.push({cssIcon:"perun-manage-facility",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.groupId,"/resources"),label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[this.group])&&this.navItems.push({cssIcon:"perun-applications",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.groupId,"/applications"),label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/attributes"),label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"});var e=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[this.group]),i=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[this.group]),a=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[this.group]);e&&a&&i&&this.navItems.push({cssIcon:"perun-statistics",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/statistics"),label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"});var n=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,m.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(){n=!0},function(e){"HttpErrorResponse"!==e.name&&t.notificator.showRPCError(e)});var o=this.guiAuthResolver.isManagerPagePrivileged(this.group),r=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),s=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),l=this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group]);(n||o||r||s||l)&&this.navItems.push({cssIcon:"perun-settings2",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.groupId,"/settings"),label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz),I.Y36(d.ff),I.Y36(d.YF),I.Y36(h.x4),I.Y36(h.F5),I.Y36(d.H8),I.Y36(h.V6))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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(t,e){1&t&&(I.YNc(0,ae,1,0,"mat-spinner",0),I.YNc(1,re,3,3,"div",1)),2&t&&(I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,Z.$g,H.L,l.yS],pipes:[O.X$],styles:[""]}),t}(),le=o(82044),ue=function(){var t=function(){function t(e){n(this,t),this.route=e}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.voId=e.voId})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&I._UZ(0,"app-animated-router-outlet")},directives:[S.A],styles:[""],data:{animation:[p.Ji]}}),t}(),ce=o(40659),pe=function(){var t=function(){function t(e,i){var a=this;n(this,t),this.route=e,this.router=i,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=i.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),i.events.subscribe(function(t){t instanceof l.m2&&(a.currentUrl=t.url,a.backButtonDisplayed=a.backButtonRegex.test(a.currentUrl))})}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.voId=e.voId})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz),I.Y36(l.F0))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&I._UZ(0,"app-animated-router-outlet")},directives:[S.A],styles:[""],data:{animation:[p.Ji]}}),t}(),de=o(541),ge=function(){var t=function(){function t(e){n(this,t),this.route=e}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.voId=e.voId})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityId","entity"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I._UZ(4,"app-one-entity-attribute-page",1),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),I.xp6(2),I.Q6J("entityId",e.voId)("entity","vo"))},directives:[de.t],pipes:[O.X$],styles:[""]}),t}();function he(t,e){1&t&&I._UZ(0,"mat-spinner",2)}function me(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"perun-web-apps-menu-buttons-field",3),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("items",i.items)("size","small")}}var fe=function(){var t=function(){function t(e,i,a,o,r){n(this,t),this.sideMenuService=e,this.voService=i,this.authResolver=a,this.route=o,this.router=r,this.items=[],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.parent.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e,t.initItems(),t.loading=!1},function(){return t.loading=!1})})}},{key:"initItems",value:function(){this.items=[],this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-group",url:"/organizations/".concat(this.vo.id,"/settings/expiration"),label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.authResolver.isManagerPagePrivileged(this.vo)&&this.items.push({cssIcon:"perun-manager",url:"/organizations/".concat(this.vo.id,"/settings/managers"),label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-application-form",url:"/organizations/".concat(this.vo.id,"/settings/applicationForm"),label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-notification",url:"/organizations/".concat(this.vo.id,"/settings/notifications"),label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-external-sources",url:"/organizations/".concat(this.vo.id,"/settings/extsources"),label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.YF),I.Y36(h.x4),I.Y36(l.gz),I.Y36(l.F0))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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(t,e){1&t&&(I.YNc(0,he,1,0,"mat-spinner",0),I.YNc(1,me,2,2,"div",1)),2&t&&(I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,Z.$g,H.L],styles:[""]}),t}(),Ae=o(27521),Ie=o(16073),Te=o(54810),ve=["*"],Ee=function(){var t=function(){function t(){n(this,t),this.modelChange=new I.vpe}return r(t,[{key:"model",get:function(){return this.modelValue},set:function(t){this.modelValue=t}},{key:"ngAfterViewInit",value:function(){var t=this;this.toggle.change.subscribe(function(){return t.valueChanged()})}},{key:"valueChanged",value:function(){this.modelChange.emit(this.toggle.checked)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-settings-toggle-item"]],viewQuery:function(t,e){var i;(1&t&&I.Gf(Ae.Rr,7),2&t)&&(I.iGM(i=I.CRH())&&(e.toggle=i.first))},inputs:{title:"title",model:"model"},outputs:{modelChange:"modelChange"},ngContentSelectors:ve,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(t,e){if(1&t){var i=I.EpF();I.F$t(),I.TgZ(0,"div",0),I.TgZ(1,"div",1),I.TgZ(2,"label",2),I.NdJ("click",function(){return I.CHM(i),I.MAs(5).toggle()||e.valueChanged()}),I._uU(3),I.qZA(),I.TgZ(4,"mat-slide-toggle",3,4),I.NdJ("ngModelChange",function(t){return e.modelValue=t}),I.qZA(),I.qZA(),I.TgZ(6,"div",5),I.Hsn(7),I.qZA(),I.qZA()}if(2&t){var a=I.MAs(5);I.xp6(2),I.ekj("unselected-setting",!a.checked),I.xp6(1),I.hij(" ",e.title," "),I.xp6(1),I.Q6J("ngModel",e.modelValue),I.xp6(2),I.Q6J("@openClose",a.checked?"open":"closed")}},directives:[Ae.Rr,Ie.JJ,Ie.On],styles:[""],data:{animation:[p.BQ]}}),t}(),Ze=o(66283),be=o(4786),_e=o(80340),Se=o(71522),Ne=o(29236);function Oe(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",25),I.TgZ(1,"mat-form-field",26),I.TgZ(2,"input",20),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).currentConfiguration.periodStatic=t}),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"mat-hint"),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var a=I.oxw(2);I.xp6(2),I.s9C("pattern",a.datePattern),I.s9C("placeholder",I.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),I.Q6J("ngModel",a.currentConfiguration.periodStatic),I.xp6(3),I.Oqu(I.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function xe(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i.value),I.xp6(1),I.Oqu(i.text)}}function Ce(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",18),I.TgZ(1,"mat-form-field",19),I.TgZ(2,"input",20),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).currentConfiguration.periodDynamic=t}),I.ALo(3,"translate"),I.qZA(),I.qZA(),I.TgZ(4,"mat-form-field"),I.TgZ(5,"mat-label"),I._uU(6),I.ALo(7,"translate"),I.qZA(),I.TgZ(8,"mat-select",8),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).currentConfiguration.periodDynamicUnit=t}),I.YNc(9,xe,2,2,"mat-option",17),I.qZA(),I.qZA(),I.qZA()}if(2&t){var a=I.oxw(2);I.xp6(2),I.s9C("pattern",a.dynamicAmountPattern),I.s9C("placeholder",I.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),I.Q6J("ngModel",a.currentConfiguration.periodDynamic),I.xp6(4),I.Oqu(I.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),I.xp6(2),I.Q6J("ngModel",a.currentConfiguration.periodDynamicUnit),I.xp6(1),I.Q6J("ngForOf",a.amountOptions)}}function Le(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i),I.xp6(1),I.Oqu(i)}}function Re(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i),I.xp6(1),I.Oqu(i)}}function Me(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i.value),I.xp6(1),I.Oqu(i.text)}}function De(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i),I.xp6(1),I.hij(" ",i," ")}}function ye(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",25),I.TgZ(1,"mat-form-field",26),I.TgZ(2,"input",20),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(3).currentConfiguration.specialLoaPeriodStatic=t}),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"mat-hint"),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var a=I.oxw(3);I.xp6(2),I.s9C("pattern",a.datePattern),I.s9C("placeholder",I.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),I.Q6J("ngModel",a.currentConfiguration.specialLoaPeriodStatic),I.xp6(3),I.Oqu(I.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Ue(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i.value),I.xp6(1),I.Oqu(i.text)}}function qe(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",18),I.TgZ(1,"mat-form-field",19),I.TgZ(2,"input",20),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(3).currentConfiguration.specialLoaPeriodDynamic=t}),I.ALo(3,"translate"),I.qZA(),I.qZA(),I.TgZ(4,"mat-form-field"),I.TgZ(5,"mat-label"),I._uU(6),I.ALo(7,"translate"),I.qZA(),I.TgZ(8,"mat-select",8),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(3).currentConfiguration.specialLoaPeriodDynamicUnit=t}),I.YNc(9,Ue,2,2,"mat-option",17),I.qZA(),I.qZA(),I.qZA()}if(2&t){var a=I.oxw(3);I.xp6(2),I.s9C("pattern",a.dynamicAmountPattern),I.s9C("placeholder",I.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),I.Q6J("ngModel",a.currentConfiguration.specialLoaPeriodDynamic),I.xp6(4),I.Oqu(I.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),I.xp6(2),I.Q6J("ngModel",a.currentConfiguration.specialLoaPeriodDynamicUnit),I.xp6(1),I.Q6J("ngForOf",a.amountOptions)}}function we(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",28),I.TgZ(1,"mat-radio-group",8),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).currentConfiguration.specialLoaPeriodType=t}),I.TgZ(2,"mat-radio-button",9,29),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.TgZ(6,"mat-radio-button",11,30),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.qZA(),I.YNc(10,ye,7,8,"div",13),I.YNc(11,qe,10,10,"div",14),I.TgZ(12,"div"),I.TgZ(13,"mat-checkbox",31),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).currentConfiguration.specialLoaPeriodExtendExpiredMembers=t}),I._uU(14),I.ALo(15,"translate"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var a=I.MAs(3),n=I.MAs(7),o=I.oxw(2);I.xp6(1),I.Q6J("ngModel",o.currentConfiguration.specialLoaPeriodType),I.xp6(3),I.hij(" ",I.lcZ(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),I.xp6(4),I.hij(" ",I.lcZ(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),I.xp6(2),I.Q6J("ngIf",a.checked),I.xp6(1),I.Q6J("ngIf",n.checked),I.xp6(2),I.Q6J("ngModel",o.currentConfiguration.specialLoaPeriodExtendExpiredMembers),I.xp6(1),I.hij(" ",I.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function Pe(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",1),I.TgZ(1,"div",2),I.TgZ(2,"h1",3),I.NdJ("click",function(){return I.CHM(i),I.MAs(6).toggle()}),I._uU(3),I.ALo(4,"translate"),I.qZA(),I.TgZ(5,"mat-slide-toggle",4,5),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.enabled=t}),I.qZA(),I.qZA(),I.TgZ(7,"div"),I.TgZ(8,"label",6),I._uU(9),I.ALo(10,"translate"),I.qZA(),I.TgZ(11,"div",7),I.TgZ(12,"mat-radio-group",8),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.periodType=t}),I.TgZ(13,"mat-radio-button",9,10),I._uU(15),I.ALo(16,"translate"),I.qZA(),I.TgZ(17,"mat-radio-button",11,12),I._uU(19),I.ALo(20,"translate"),I.qZA(),I.qZA(),I.YNc(21,Oe,7,8,"div",13),I.YNc(22,Ce,10,10,"div",14),I.qZA(),I.TgZ(23,"app-settings-toggle-item",15),I.NdJ("modelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.doNotAllowLoasEnabled=t}),I.ALo(24,"translate"),I.TgZ(25,"mat-form-field"),I.TgZ(26,"mat-placeholder"),I._uU(27),I.ALo(28,"translate"),I.qZA(),I.TgZ(29,"mat-select",16),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.doNotAllowLoas=t}),I.YNc(30,Le,2,2,"mat-option",17),I.qZA(),I.qZA(),I.qZA(),I.TgZ(31,"app-settings-toggle-item",15),I.NdJ("modelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.doNotExtendLoasEnabled=t}),I.ALo(32,"translate"),I.TgZ(33,"mat-form-field"),I.TgZ(34,"mat-placeholder"),I._uU(35),I.ALo(36,"translate"),I.qZA(),I.TgZ(37,"mat-select",16),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.doNotExtendLoas=t}),I.YNc(38,Re,2,2,"mat-option",17),I.qZA(),I.qZA(),I.qZA(),I.TgZ(39,"app-settings-toggle-item",15),I.NdJ("modelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.gracePeriodEnabled=t}),I.ALo(40,"translate"),I.TgZ(41,"div",18),I.TgZ(42,"mat-form-field",19),I.TgZ(43,"input",20),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.gracePeriod=t}),I.ALo(44,"translate"),I.qZA(),I.qZA(),I.TgZ(45,"mat-form-field"),I.TgZ(46,"mat-label"),I._uU(47),I.ALo(48,"translate"),I.qZA(),I.TgZ(49,"mat-select",8),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.gracePeriodUnit=t}),I.YNc(50,Me,2,2,"mat-option",17),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(51,"app-settings-toggle-item",15),I.NdJ("modelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.specialLoaPeriodEnabled=t}),I.ALo(52,"translate"),I.TgZ(53,"div",7),I.TgZ(54,"div"),I.TgZ(55,"mat-form-field"),I.TgZ(56,"mat-label"),I._uU(57),I.ALo(58,"translate"),I.qZA(),I.TgZ(59,"mat-select",8,21),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.specialLoa=t}),I.YNc(61,De,2,2,"mat-option",17),I.qZA(),I.qZA(),I.YNc(62,we,16,13,"div",22),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(63,"div",23),I.ALo(64,"translate"),I.TgZ(65,"button",24),I.NdJ("click",function(){return I.CHM(i),I.oxw().saveChanges()}),I._uU(66),I.ALo(67,"translate"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var a=I.MAs(6),n=I.MAs(14),o=I.MAs(18),r=I.oxw();I.xp6(2),I.ekj("unselected-setting",!a.checked),I.xp6(1),I.hij(" ",I.lcZ(4,40,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),I.xp6(2),I.Q6J("ngModel",r.currentConfiguration.enabled),I.xp6(2),I.Q6J("@openClose",a.checked?"open":"closed"),I.xp6(2),I.Oqu(I.lcZ(10,42,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),I.xp6(3),I.Q6J("ngModel",r.currentConfiguration.periodType),I.xp6(3),I.hij(" ",I.lcZ(16,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),I.xp6(4),I.hij(" ",I.lcZ(20,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),I.xp6(2),I.Q6J("ngIf",n.checked),I.xp6(1),I.Q6J("ngIf",o.checked),I.xp6(1),I.Q6J("model",r.currentConfiguration.doNotAllowLoasEnabled)("title",I.lcZ(24,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),I.xp6(4),I.Oqu(I.lcZ(28,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),I.xp6(2),I.Q6J("ngModel",r.currentConfiguration.doNotAllowLoas),I.xp6(1),I.Q6J("ngForOf",r.loas),I.xp6(1),I.Q6J("model",r.currentConfiguration.doNotExtendLoasEnabled)("title",I.lcZ(32,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),I.xp6(4),I.Oqu(I.lcZ(36,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),I.xp6(2),I.Q6J("ngModel",r.currentConfiguration.doNotExtendLoas),I.xp6(1),I.Q6J("ngForOf",r.loas),I.xp6(1),I.Q6J("model",r.currentConfiguration.gracePeriodEnabled)("title",I.lcZ(40,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),I.xp6(4),I.s9C("pattern",r.dynamicAmountPattern),I.s9C("placeholder",I.lcZ(44,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),I.Q6J("ngModel",r.currentConfiguration.gracePeriod),I.xp6(4),I.Oqu(I.lcZ(48,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),I.xp6(2),I.Q6J("ngModel",r.currentConfiguration.gracePeriodUnit),I.xp6(1),I.Q6J("ngForOf",r.amountOptions),I.xp6(1),I.Q6J("model",r.currentConfiguration.specialLoaPeriodEnabled)("title",I.lcZ(52,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),I.xp6(6),I.Oqu(I.lcZ(58,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),I.xp6(2),I.Q6J("ngModel",r.currentConfiguration.specialLoa),I.xp6(2),I.Q6J("ngForOf",r.loas),I.xp6(1),I.Q6J("ngIf",null!==r.currentConfiguration.specialLoa),I.xp6(1),I.s9C("matTooltip",I.lcZ(64,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),I.Q6J("matTooltipDisabled",r.expirationAttribute.writable)("matTooltipPosition","above"),I.xp6(2),I.Q6J("disabled",!r.areChangesMade()||!r.expirationAttribute.writable),I.xp6(1),I.hij(" ",I.lcZ(67,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}var Ge=function(){var t=function(){function t(){n(this,t),this.saveAttribute=new I.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"}]}return r(t,[{key:"ngOnInit",value:function(){var t=new Map;this.loas.forEach(function(e){return t.set(e,"")}),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}},{key:"ngOnChanges",value:function(t){t.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}},{key:"saveChanges",value:function(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}},{key:"areChangesMade",value:function(){var t=this.parseAttributeValueFromConfig(this.currentConfiguration),e=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===e?null!==t:null===t||t.period!==e.period||t.gracePeriod!==e.gracePeriod||t.doNotExtendLoa!==e.doNotExtendLoa||t.doNotAllowLoa!==e.doNotAllowLoa||t.periodLoa!==e.periodLoa}},{key:"parseExpirationRulesAttribute",value:function(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}},{key:"parsePeriod",value:function(t){switch(t.periodType){case"dynamic":return this.parseDynamicPeriod(t);case"static":return this.parseStaticPeriod(t)}}},{key:"createInitConfiguration",value:function(){var t=new Map;return this.loas.forEach(function(e){return t.set(e,"")}),{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}}},{key:"unParseAttrValue",value:function(t){var e=this.createInitConfiguration();return null==t||(void 0!==t.period&&t.period.length>0&&(e=this.setPeriodValues(t,e)),void 0!==t.doNotAllowLoa&&t.doNotAllowLoa.length>0&&(e=this.setDoNotAllowLoasValues(t,e)),void 0!==t.doNotExtendLoa&&t.doNotExtendLoa.length>0&&(e=this.setDoNotExtendLoasValues(t,e)),void 0!==t.gracePeriod&&t.gracePeriod.length>0&&(e=this.setGracePeriodValues(t,e)),void 0!==t.periodLoa&&t.periodLoa.length>0&&(e=this.setSpecialLoaPeriodValues(t,e))),e}},{key:"setPeriodValues",value:function(t,e){if(e.enabled=!0,t.period.startsWith("+")){e.periodType="dynamic";var i=t.period.charAt(t.period.length-1);e.periodDynamic=t.period.substring(1,t.period.length-1),e.periodDynamicUnit=i}else e.periodType="static",e.periodStatic=t.period;return e}},{key:"setDoNotAllowLoasValues",value:function(t,e){var i=[];return t.doNotAllowLoa.split(",").forEach(function(t){return i.push(parseInt(t.trim(),10))}),e.doNotAllowLoas=i,i.length>0&&(e.doNotAllowLoasEnabled=!0),e}},{key:"setDoNotExtendLoasValues",value:function(t,e){var i=[];return t.doNotExtendLoa.split(",").forEach(function(t){return i.push(parseInt(t.trim(),10))}),e.doNotExtendLoas=i,i.length>0&&(e.doNotExtendLoasEnabled=!0),e}},{key:"setGracePeriodValues",value:function(t,e){e.gracePeriodEnabled=!0;var i=t.gracePeriod.charAt(t.gracePeriod.length-1);return e.gracePeriod=t.gracePeriod.substring(0,t.gracePeriod.length-1),e.gracePeriodUnit=i,e}},{key:"setSpecialLoaPeriodValues",value:function(t,e){e.specialLoa=parseInt(t.periodLoa.substring(0,t.periodLoa.indexOf("|")),10),e.specialLoaPeriodEnabled=!0;var i=t.periodLoa.substring(t.periodLoa.indexOf("|")+1,t.periodLoa.length);if(i.startsWith("+")){i.endsWith(".")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="dynamic";var a=i.charAt(i.length-1);e.specialLoaPeriodDynamic=i.substring(1,i.length-1),e.specialLoaPeriodDynamicUnit=a}else i.endsWith("..")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="static",e.specialLoaPeriodStatic=i;return e}},{key:"parseDynamicPeriod",value:function(t){return"+"+t.periodDynamic+t.periodDynamicUnit}},{key:"parseStaticPeriod",value:function(t){return t.periodStatic}},{key:"parseDontAllowLoas",value:function(t){if(!t.doNotAllowLoasEnabled)return null;var e="";return t.doNotAllowLoas.forEach(function(t){return e+=t+","}),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}},{key:"parseDontExtendLoas",value:function(t){if(!t.doNotExtendLoasEnabled)return null;var e="";return t.doNotExtendLoas.forEach(function(t){return e+=t+","}),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}},{key:"parseGracePeriod",value:function(t){return t.gracePeriodEnabled?t.gracePeriod+t.gracePeriodUnit:null}},{key:"parseSpecialLoaPeriod",value:function(t){if(!t.specialLoaPeriodEnabled)return null;var e=t.specialLoa+"|";switch(t.specialLoaPeriodType){case"static":e+=this.parseSpecialLoaPeriodStatic(t);break;case"dynamic":e+=this.parseSpecialLoaPeriodDynamic(t)}return null!=e&&t.specialLoaPeriodExtendExpiredMembers&&(e+="."),e}},{key:"parseSpecialLoaPeriodStatic",value:function(t){return t.specialLoaPeriodStatic}},{key:"parseSpecialLoaPeriodDynamic",value:function(t){return"+"+t.specialLoaPeriodDynamic+t.specialLoaPeriodDynamicUnit}},{key:"parseAttributeValueFromConfig",value:function(t){if(!t.enabled)return null;var e=this.parsePeriod(t),i=this.parseDontAllowLoas(t),a=this.parseDontExtendLoas(t),n=this.parseGracePeriod(t),o=this.parseSpecialLoaPeriod(t),r={period:e};return null!==a&&(r.doNotExtendLoa=a),null!==i&&(r.doNotAllowLoa=i),null!==n&&(r.gracePeriod=n),null!==o&&(r.periodLoa=o),r}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[I.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"],[3,"model","title","modelChange"],["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"],["mat-flat-button","","color","primary",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&I.YNc(0,Pe,68,70,"div",0),2&t&&I.Q6J("ngIf",e.currentConfiguration)},directives:[s.O5,Ae.Rr,Ie.JJ,Ie.On,Te.VQ,Te.U0,Ee,Ze.KE,Ze.UY,be.gD,s.sg,_e.Nt,Ie.Fj,Ie.c5,Ze.hX,_.gM,N.lW,Ze.bx,Se.ey,Ne.oG],pipes:[O.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:[p.BQ]}}),t}();function ke(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"app-expiration-settings",1),I.NdJ("saveAttribute",function(t){return I.CHM(i),I.oxw().saveExpirationAttribute(t)}),I.qZA()}if(2&t){var a=I.oxw();I.Q6J("expirationAttribute",a.expirationAttribute)}}var Ye=function(){var t=function(){function t(e,i,a,o,r){var s=this;n(this,t),this.attributesManager=e,this.route=i,this.translate=a,this.notificator=o,this.apiRequest=r,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(function(t){return s.successMessage=t}),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(function(t){return s.errorMessage=t})}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.parent.params.subscribe(function(e){t.voId=e.voId,t.loadSettings()})}},{key:"loadSettings",value:function(){var t=this;this.attributesManager.getVoAttributeByName(this.voId,m.r.VO_DEF_EXPIRATION_RULES).subscribe(function(e){t.expirationAttribute=e})}},{key:"saveExpirationAttribute",value:function(t){var e=this;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.voId,attribute:t}).subscribe(function(){e.loadSettings(),e.notificator.showSuccess(e.successMessage)},function(t){console.log(t),e.notificator.showRPCError(t.error,e.errorMessage)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.H8),I.Y36(l.gz),I.Y36(O.sK),I.Y36(h.V6),I.Y36(h.F5))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&I.YNc(0,ke,1,1,"app-expiration-settings",0),2&t&&I.Q6J("ngIf",void 0!==e.expirationAttribute)},directives:[s.O5,Ge],styles:[""],data:{animation:[p.BQ]}}),t}(),Je=o(62284),Ve=o(489);function Fe(t,e){if(1&t&&I._UZ(0,"app-managers-page",1),2&t){var i=I.oxw();I.Q6J("complementaryObject",i.vo)("complementaryObjectType",i.type)("theme",i.theme)("availableRoles",i.availableRoles)}}var Qe=function(){var t=function(){function t(e,i,a,o){n(this,t),this.dialog=e,this.voService=i,this.route=a,this.guiAuthResolver=o,this.availableRoles=[],this.selected="user",this.type="Vo",this.theme="vo-theme"}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.parent.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.uw),I.Y36(d.YF),I.Y36(l.gz),I.Y36(h.x4))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&I.YNc(0,Fe,1,4,"app-managers-page",0),2&t&&I.Q6J("ngIf",e.vo)},directives:[s.O5,Ve.s],styles:[""]}),t}();function ze(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function Be(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div"),I._uU(1),I.ALo(2,"translate"),I.TgZ(3,"mat-form-field",8),I.TgZ(4,"textarea",17),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).reason=t}),I.qZA(),I.qZA(),I.qZA()}if(2&t){var a=I.oxw(2);I.xp6(1),I.hij(" ",I.lcZ(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),I.xp6(3),I.Q6J("ngModel",a.reason)}}function je(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",7),I._uU(1),I.ALo(2,"translate"),I.TgZ(3,"mat-form-field",8),I.TgZ(4,"mat-select",9),I.NdJ("valueChange",function(t){return I.CHM(i),I.oxw().mailType=t}),I.TgZ(5,"mat-option",10),I._uU(6),I.ALo(7,"translate"),I.qZA(),I.TgZ(8,"mat-option",11),I._uU(9),I.ALo(10,"translate"),I.qZA(),I.TgZ(11,"mat-option",12),I._uU(12),I.ALo(13,"translate"),I.qZA(),I.TgZ(14,"mat-option",13),I._uU(15),I.ALo(16,"translate"),I.qZA(),I.TgZ(17,"mat-option",14),I._uU(18),I.ALo(19,"translate"),I.qZA(),I.TgZ(20,"mat-option",15),I._uU(21),I.ALo(22,"translate"),I.qZA(),I.qZA(),I.qZA(),I.YNc(23,Be,5,4,"div",16),I.qZA()}if(2&t){var a=I.oxw();I.xp6(1),I.hij(" ",I.lcZ(2,9,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),I.xp6(3),I.Q6J("value",a.mailType),I.xp6(2),I.Oqu(I.lcZ(7,11,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),I.xp6(3),I.Oqu(I.lcZ(10,13,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),I.xp6(3),I.Oqu(I.lcZ(13,15,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),I.xp6(3),I.Oqu(I.lcZ(16,17,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),I.xp6(3),I.Oqu(I.lcZ(19,19,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),I.xp6(3),I.Oqu(I.lcZ(22,21,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),I.xp6(2),I.Q6J("ngIf","APP_REJECTED_USER"===a.mailType)}}var He=function(){var t=function(){function t(e,i,a,o,r){n(this,t),this.dialogRef=e,this.data=i,this.translate=a,this.notificator=o,this.registrarManager=r,this.mailType="APP_CREATED_USER",this.reason="",this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,"APP_REJECTED_USER"===this.mailType?this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType,reason:this.reason}).subscribe(function(){t.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close()})},function(){return t.loading=!1}):this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType}).subscribe(function(){t.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close()})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(O.sK),I.Y36(h.V6),I.Y36(d.tk))},t.\u0275cmp=I.Xpm({type:t,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"],["mat-flat-button","","color","accent",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","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],[4,"ngIf"],["matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,ze,1,0,"mat-spinner",1),I.YNc(5,je,24,23,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.onCancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"button",5),I.NdJ("click",function(){return e.onSubmit()}),I._uU(11),I.ALo(12,"translate"),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Gre("",e.theme,"}"),I.xp6(2),I.Oqu(I.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),I.xp6(2),I.Q6J("disabled",e.loading),I.xp6(1),I.hij(" ",I.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},directives:[v.uh,s.O5,v.H8,N.lW,Z.$g,v.xY,Ze.KE,be.gD,Se.ey,_e.Nt,Ie.Fj,Ie.JJ,Ie.On],pipes:[O.X$],styles:[""]}),t}();function Xe(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function $e(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",7),I._uU(1),I.ALo(2,"translate"),I.TgZ(3,"mat-form-field",8),I.TgZ(4,"textarea",9),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().reason=t}),I.qZA(),I.qZA(),I.qZA()}if(2&t){var a=I.oxw();I.xp6(1),I.hij(" ",I.lcZ(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),I.xp6(3),I.Q6J("ngModel",a.reason)}}var We=function(){var t=function(){function t(e,i,a,o,r){n(this,t),this.dialogRef=e,this.data=i,this.translate=a,this.notificator=o,this.registrarManager=r,this.reason="",this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.registrarManager.rejectApplication(this.data.applicationId,this.reason).subscribe(function(){t.translate.get("DIALOGS.REJECT_APPLICATION.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close()})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(O.sK),I.Y36(h.V6),I.Y36(d.tk))},t.\u0275cmp=I.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,Xe,1,0,"mat-spinner",1),I.YNc(5,$e,5,4,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.onCancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"button",5),I.NdJ("click",function(){return e.onSubmit()}),I._uU(11),I.ALo(12,"translate"),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.Oqu(I.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),I.xp6(2),I.Q6J("disabled",e.loading),I.xp6(1),I.hij(" ",I.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},directives:[v.uh,s.O5,v.H8,N.lW,Z.$g,v.xY,Ze.KE,_e.Nt,Ie.Fj,Ie.JJ,Ie.On],pipes:[O.X$],styles:[""]}),t}();function Ke(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function ti(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function ei(t,e){if(1&t&&(I.TgZ(0,"mat-form-field"),I.TgZ(1,"label"),I._UZ(2,"input",9),I.qZA(),I.YNc(3,ti,3,3,"mat-error",8),I.qZA()),2&t){var i=I.oxw(2);I.xp6(2),I.Q6J("formControl",i.emailControl),I.xp6(1),I.Q6J("ngIf",i.emailControl.invalid)}}function ii(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function ai(t,e){if(1&t&&(I.TgZ(0,"mat-form-field"),I._UZ(1,"input",10),I.YNc(2,ii,3,3,"mat-error",8),I.qZA()),2&t){var i=I.oxw(2);I.xp6(1),I.Q6J("formControl",i.inputControl),I.xp6(1),I.Q6J("ngIf",i.inputControl.invalid)}}function ni(t,e){if(1&t&&(I.TgZ(0,"div",7),I.YNc(1,ei,4,2,"mat-form-field",8),I.YNc(2,ai,3,2,"mat-form-field",8),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("ngIf",null!==i.emailControl),I.xp6(1),I.Q6J("ngIf",null!==i.inputControl)}}var oi=function(){var t=function(){function t(e,i,a,o,r){n(this,t),this.dialogRef=e,this.data=i,this.notificator=a,this.translateService=o,this.registrarService=r,this.loading=!1,this.inputControl=null,this.emailControl=null}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=this.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new Ie.NI(this.formItemData.value,[Ie.kI.required,Ie.kI.email]):this.inputControl=new Ie.NI(this.formItemData.value,[Ie.kI.required])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;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(function(){t.notificator.showSuccess(t.translateService.instant("DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUCCESS")),t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"getLabel",value:function(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(h.V6),I.Y36(O.sK),I.Y36(d.tk))},t.\u0275cmp=I.Xpm({type:t,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"],["type","text","matInput","","required","",3,"formControl"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,Ke,1,0,"mat-spinner",1),I.YNc(5,ni,3,2,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.onCancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"button",5),I.NdJ("click",function(){return e.onSubmit()}),I._uU(11),I.ALo(12,"translate"),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.AsE("",I.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",e.itemName,""),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),I.xp6(2),I.Q6J("disabled",e.loading||null!==e.inputControl&&e.inputControl.invalid||null!==e.emailControl&&e.emailControl.invalid),I.xp6(1),I.hij(" ",I.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},directives:[v.uh,s.O5,v.H8,N.lW,Z.$g,v.xY,Ze.KE,_e.Nt,Ie.Fj,Ie.Q7,Ie.JJ,Ie.oH,Ze.TO],pipes:[O.X$],styles:[""]}),t}(),ri=o(27679),si=o(84650);function li(t,e){if(1&t&&(I.TgZ(0,"span",5),I._uU(1),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.hij(" #",i.application.id," ")}}function ui(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function ci(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",17),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).verifyApplication()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function pi(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",17),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).approveApplication()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function di(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",18),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).rejectApplication()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function gi(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",18),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).deleteApplication()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function hi(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",19),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).resendNotification()}),I.TgZ(1,"i",14),I._uU(2," mail_outline "),I.qZA(),I._uU(3),I.ALo(4,"translate"),I.qZA()}2&t&&(I.xp6(3),I.hij(" ",I.lcZ(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function mi(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"span",10),I._uU(2),I.ALo(3,"translate"),I.qZA(),I._uU(4),I.qZA()),2&t){var i=I.oxw(2);I.xp6(2),I.Oqu(I.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),I.xp6(2),I.hij(": ",i.application.vo.name," ")}}function fi(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"span",10),I._uU(2),I.ALo(3,"translate"),I.qZA(),I._uU(4),I.TgZ(5,"span",10),I._uU(6),I.ALo(7,"translate"),I.qZA(),I._uU(8),I.qZA()),2&t){var i=I.oxw(2);I.xp6(2),I.Oqu(I.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),I.xp6(2),I.hij(": ",i.application.group.name," "),I.xp6(2),I.Oqu(I.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),I.xp6(2),I.hij(": ",i.application.vo.name," ")}}function Ai(t,e){1&t&&(I.TgZ(0,"span"),I.TgZ(1,"mat-icon",20),I._uU(2,"arrow_right_alt"),I.qZA(),I._uU(3," Initial "),I.qZA())}function Ii(t,e){1&t&&(I.TgZ(0,"span"),I.TgZ(1,"mat-icon",20),I._uU(2,"restore"),I.qZA(),I._uU(3," Extension "),I.qZA())}function Ti(t,e){1&t&&(I.TgZ(0,"span"),I.TgZ(1,"mat-icon",20),I._uU(2,"nat"),I.qZA(),I._uU(3," Embedded "),I.qZA())}function vi(t,e){if(1&t&&(I.TgZ(0,"div",21),I.TgZ(1,"mat-card-title"),I.TgZ(2,"i",22),I._uU(3,"clear"),I.qZA(),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.TgZ(6,"div"),I.TgZ(7,"span",10),I._uU(8),I.ALo(9,"translate"),I.qZA(),I._uU(10),I.ALo(11,"date"),I.qZA(),I.qZA()),2&t){var i=I.oxw(2);I.xp6(4),I.AsE(" ",I.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",i.getModifiedAtName(i.application.modifiedBy),""),I.xp6(4),I.Oqu(I.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),I.xp6(2),I.hij(": ",I.xi3(11,8,i.application.modifiedAt,"d.M.y H:mm:ss"),"")}}function Ei(t,e){if(1&t&&(I.TgZ(0,"div",21),I.TgZ(1,"mat-card-title"),I.TgZ(2,"i",23),I._uU(3,"done"),I.qZA(),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.TgZ(6,"div"),I.TgZ(7,"span",10),I._uU(8),I.ALo(9,"translate"),I.qZA(),I._uU(10),I.ALo(11,"date"),I.qZA(),I.qZA()),2&t){var i=I.oxw(2);I.xp6(4),I.AsE(" ",I.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",i.getModifiedAtName(i.application.modifiedBy),""),I.xp6(4),I.Oqu(I.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),I.xp6(2),I.hij(": ",I.xi3(11,8,i.application.modifiedAt,"d.M.y H:mm:ss"),"")}}function Zi(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"span",10),I._uU(2),I.ALo(3,"translate"),I.qZA(),I._uU(4),I.qZA()),2&t){var i=I.oxw(2);I.xp6(2),I.Oqu(I.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),I.xp6(2),I.hij(": ",i.userMail,"")}}function bi(t,e){1&t&&I._UZ(0,"th",32)}function _i(t,e){if(1&t&&(I.TgZ(0,"td",33),I._uU(1),I.qZA()),2&t){var i=e.$implicit,a=I.oxw(3);I.xp6(1),I.AsE("",a.getLabel(i.formItem),"",i.formItem.type.startsWith("FROM_FEDERATION")?"*":"","")}}function Si(t,e){1&t&&I._UZ(0,"th",32)}function Ni(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",36),I.NdJ("click",function(){I.CHM(i);var t=I.oxw().$implicit;return I.oxw(3).editApplicationData(t)}),I.TgZ(1,"mat-icon"),I._uU(2,"edit"),I.qZA(),I.qZA()}}function Oi(t,e){if(1&t&&(I.TgZ(0,"td",34),I._uU(1),I.YNc(2,Ni,3,0,"button",35),I.qZA()),2&t){var i=e.$implicit,a=I.oxw(3);I.xp6(1),I.hij(" ",i.value," "),I.xp6(1),I.Q6J("ngIf",!i.formItem.type.startsWith("FROM_FEDERATION")&&("NEW"===a.application.state||"VERIFIED"===a.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==i.formItem.type)}}function xi(t,e){1&t&&I._UZ(0,"tr",37)}function Ci(t,e){1&t&&I._UZ(0,"tr",38)}function Li(t,e){if(1&t&&(I.TgZ(0,"table",24),I.ynx(1,25),I.YNc(2,bi,1,0,"th",26),I.YNc(3,_i,2,2,"td",27),I.BQk(),I.ynx(4,28),I.YNc(5,Si,1,0,"th",26),I.YNc(6,Oi,3,2,"td",29),I.BQk(),I.YNc(7,xi,1,0,"tr",30),I.YNc(8,Ci,1,0,"tr",31),I.qZA()),2&t){var i=I.oxw(2);I.Q6J("dataSource",i.dataSource),I.xp6(7),I.Q6J("matHeaderRowDef",i.displayedColumns),I.xp6(1),I.Q6J("matRowDefColumns",i.displayedColumns)}}function Ri(t,e){1&t&&(I.TgZ(0,"div",39),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij("*",I.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VALUE_BY_EXTERNALS"),""))}function Mi(t,e){if(1&t&&(I.TgZ(0,"div"),I.YNc(1,ci,3,3,"button",7),I.YNc(2,pi,3,3,"button",7),I.YNc(3,di,3,3,"button",8),I.YNc(4,gi,3,3,"button",8),I.YNc(5,hi,5,3,"button",9),I.YNc(6,mi,5,4,"div",4),I.YNc(7,fi,9,8,"div",4),I.TgZ(8,"div"),I.TgZ(9,"span",10),I._uU(10),I.ALo(11,"translate"),I.qZA(),I._uU(12,": "),I._UZ(13,"span",11),I.ALo(14,"applicationState"),I.qZA(),I.TgZ(15,"div"),I.TgZ(16,"span",10),I._uU(17),I.ALo(18,"translate"),I.qZA(),I._uU(19,": "),I.YNc(20,Ai,4,0,"span",4),I.YNc(21,Ii,4,0,"span",4),I.YNc(22,Ti,4,0,"span",4),I.qZA(),I.YNc(23,vi,12,11,"div",12),I.YNc(24,Ei,12,11,"div",12),I.TgZ(25,"div",13),I.TgZ(26,"mat-card-title"),I.TgZ(27,"i",14),I._uU(28,"redo"),I.qZA(),I._uU(29),I.ALo(30,"translate"),I.ALo(31,"userFullName"),I.qZA(),I.YNc(32,Zi,5,4,"div",4),I.TgZ(33,"div"),I.TgZ(34,"span",10),I._uU(35),I.ALo(36,"translate"),I.qZA(),I._uU(37),I.qZA(),I.TgZ(38,"div"),I.TgZ(39,"span",10),I._uU(40),I.ALo(41,"translate"),I.qZA(),I._uU(42),I.qZA(),I.TgZ(43,"div"),I.TgZ(44,"span",10),I._uU(45),I.ALo(46,"translate"),I.qZA(),I._uU(47),I.ALo(48,"date"),I.qZA(),I.YNc(49,Li,9,3,"table",15),I.YNc(50,Ri,3,3,"div",16),I.qZA(),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("ngIf","NEW"===i.application.state&&i.verifyAuth),I.xp6(1),I.Q6J("ngIf",("VERIFIED"===i.application.state||"NEW"===i.application.state)&&i.approveAuth),I.xp6(1),I.Q6J("ngIf",("VERIFIED"===i.application.state||"NEW"===i.application.state)&&i.rejectAuth),I.xp6(1),I.Q6J("ngIf",("REJECTED"===i.application.state||"NEW"===i.application.state)&&i.deleteAuth),I.xp6(1),I.Q6J("ngIf",i.resendAuth),I.xp6(1),I.Q6J("ngIf",!i.application.group),I.xp6(1),I.Q6J("ngIf",i.application.group),I.xp6(3),I.Oqu(I.lcZ(11,26,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),I.xp6(3),I.Q6J("outerHTML",I.lcZ(14,28,i.application.state),I.oJD),I.xp6(4),I.Oqu(I.lcZ(18,30,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),I.xp6(3),I.Q6J("ngIf","INITIAL"===i.application.type),I.xp6(1),I.Q6J("ngIf","EXTENSION"===i.application.type),I.xp6(1),I.Q6J("ngIf","EMBEDDED"===i.application.type),I.xp6(1),I.Q6J("ngIf","REJECTED"===i.application.state),I.xp6(1),I.Q6J("ngIf","APPROVED"===i.application.state),I.xp6(5),I.AsE(" ",I.lcZ(30,32,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===i.application.user?i.submittedBy():I.lcZ(31,34,i.application.user),""),I.xp6(3),I.Q6J("ngIf",i.userMail),I.xp6(3),I.Oqu(I.lcZ(36,36,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),I.xp6(2),I.hij(": ",i.application.extSourceName,""),I.xp6(3),I.Oqu(I.lcZ(41,38,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),I.xp6(2),I.hij(": ",i.application.extSourceLoa,""),I.xp6(3),I.Oqu(I.lcZ(46,40,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),I.xp6(2),I.hij(": ",I.xi3(48,42,i.application.createdAt,"d.M.y H:mm:ss"),""),I.xp6(2),I.Q6J("ngIf",0!==i.userData.length),I.xp6(1),I.Q6J("ngIf",0!==i.userData.length)}}var Di=function(){var t=function(){function t(e,i,a,o,r,s,l,u){n(this,t),this.registrarManager=e,this.dialog=i,this.translate=a,this.route=o,this.notificator=r,this.router=s,this.authResolver=l,this.usersService=u,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe(function(e){t.route.parent.params.subscribe(function(i){t.dialogTheme=i.groupId?"group-theme":i.memberId?"member-theme":"vo-theme",t.registrarManager.getApplicationById(e.applicationId).subscribe(function(e){t.application=e,"EMBEDDED"===t.application.type&&t.application.user?t.usersService.getRichUserWithAttributes(t.application.user.id).subscribe(function(e){var i,a=e.userAttributes.find(function(t){return"preferredMail"===t.friendlyName});t.userMail=null===(i=null==a?void 0:a.value)||void 0===i?void 0:i.toString(),t.setAuthRights(),t.loading=!1}):t.registrarManager.getApplicationDataById(t.application.id).subscribe(function(e){t.userData=e,t.dataSource=new ut.by(t.userData),t.setAuthRights(),t.loading=!1})})})})}},{key:"setAuthRights",value:function(){"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]))}},{key:"getLabel",value:function(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}},{key:"submittedBy",value:function(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}},{key:"getModifiedAtName",value:function(t){var e=t.lastIndexOf("/CN=");if(-1!==e){var i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}},{key:"resendNotification",value:function(){var t=(0,g.kZ)();t.width="500px",t.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(He,t)}},{key:"deleteApplication",value:function(){var t=this;this.loading=!0,this.registrarManager.deleteApplication(this.application.id).subscribe(function(){t.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(function(e){t.notificator.showSuccess(e),t.router.navigateByUrl(t.router.url.substring(0,t.router.url.lastIndexOf("/")))})})}},{key:"rejectApplication",value:function(){var t=this,e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(We,e).afterClosed().subscribe(function(){t.loading=!0,t.registrarManager.getApplicationById(t.application.id).subscribe(function(e){t.application=e,t.loading=!1},function(){return t.loading=!1})})}},{key:"approveApplication",value:function(){var t=this;this.loading=!0,this.registrarManager.approveApplication(this.application.id).subscribe(function(){t.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE_MESSAGE").subscribe(function(e){t.notificator.showSuccess(e)}),t.registrarManager.getApplicationById(t.application.id).subscribe(function(e){t.application=e,t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"verifyApplication",value:function(){var t=this;this.registrarManager.verifyApplication(this.application.id).subscribe(function(){t.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY_MESSAGE").subscribe(function(e){t.notificator.showSuccess(e)}),t.loading=!0,t.registrarManager.getApplicationById(t.application.id).subscribe(function(e){t.application=e,t.loading=!1})})}},{key:"editApplicationData",value:function(t){var e=(0,g.kZ)();e.width="600px",e.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:t},this.dialog.open(oi,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.tk),I.Y36(v.uw),I.Y36(O.sK),I.Y36(l.gz),I.Y36(h.V6),I.Y36(l.F0),I.Y36(h.x4),I.Y36(d.Fv))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","","class","mr-2 mb-2",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"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],["class","font-italic",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",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"],["mat-cell","","class","font-weight-bold",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["mat-header-row","","class","h-50",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["mat-icon-button","","aria-label","Edit Application data",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Edit Application data",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""],[1,"font-italic"]],template:function(t,e){1&t&&(I.TgZ(0,"h2",0),I._uU(1),I.ALo(2,"translate"),I.YNc(3,li,2,1,"span",1),I.qZA(),I._UZ(4,"mat-divider",2),I.YNc(5,ui,1,0,"mat-spinner",3),I.YNc(6,Mi,51,45,"div",4)),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),I.xp6(2),I.Q6J("ngIf",!!e.application),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,ri.d,Z.$g,dt.n5,N.lW,b.Hw,ut.BZ,ut.w1,ut.fO,ut.Dz,ut.as,ut.nj,ut.ge,ut.ev,ut.XQ,ut.Gk],pipes:[O.X$,si.h,Ut.d,s.uU],styles:[""]}),t}(),yi=o(11930),Ui=o(7433),qi=function(){var t=function t(){n(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&I._UZ(0,"app-animated-router-outlet")},directives:[S.A],styles:[""],data:{animation:[p.Ji]}}),t}(),wi=o(55109),Pi=o(69012);function Gi(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.hij(" ",I.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function ki(t,e){if(1&t&&I._UZ(0,"app-one-entity-attribute-page",4),2&t){var i=I.oxw();I.Q6J("entity","group")("entityId",i.groupId)}}function Yi(t,e){1&t&&(I._uU(0),I.ALo(1,"translate"),I.ALo(2,"translate")),2&t&&I.AsE(" ",I.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",I.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function Ji(t,e){if(1&t&&I._UZ(0,"app-two-entity-attribute-page",5),2&t){var i=I.oxw(2);I.Q6J("firstEntity","group")("firstEntityId",i.groupId)("secondEntity","member")}}function Vi(t,e){1&t&&(I.TgZ(0,"mat-tab"),I.YNc(1,Yi,3,6,"ng-template",1),I.YNc(2,Ji,1,3,"ng-template",2),I.qZA())}function Fi(t,e){1&t&&(I._uU(0),I.ALo(1,"translate"),I.ALo(2,"translate")),2&t&&I.AsE(" ",I.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",I.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Qi(t,e){if(1&t&&I._UZ(0,"app-two-entity-attribute-page",5),2&t){var i=I.oxw(2);I.Q6J("firstEntity","group")("firstEntityId",i.groupId)("secondEntity","resource")}}function zi(t,e){1&t&&(I.TgZ(0,"mat-tab"),I.YNc(1,Fi,3,6,"ng-template",1),I.YNc(2,Qi,1,3,"ng-template",2),I.qZA())}var Bi=function(){var t=function(){function t(e,i,a){n(this,t),this.route=e,this.groupManager=i,this.authResolver=a}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.groupId=e.groupId,t.groupManager.getGroupById(t.groupId).subscribe(function(e){t.group=e,t.groupResourceAttAuth=t.authResolver.isAuthorized("getAssignedResources_Group_policy",[t.group]),t.groupMemberAttAuth=t.authResolver.isAuthorized("getCompleteRichMembers_Group_List_List_List_boolean_policy",[t.group])})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz),I.Y36(d.ff),I.Y36(h.x4))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"mat-tab-group"),I.TgZ(5,"mat-tab"),I.YNc(6,Gi,2,3,"ng-template",1),I.YNc(7,ki,1,2,"ng-template",2),I.qZA(),I.YNc(8,Vi,3,0,"mat-tab",3),I.YNc(9,zi,3,0,"mat-tab",3),I.qZA(),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),I.xp6(6),I.Q6J("ngIf",e.groupMemberAttAuth),I.xp6(1),I.Q6J("ngIf",e.groupResourceAttAuth))},directives:[wi.SP,wi.uX,wi.uD,wi.Vc,s.O5,de.t,Pi.Y],pipes:[O.X$],styles:[""]}),t}();function ji(t,e){1&t&&I._UZ(0,"mat-spinner",2)}function Hi(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"perun-web-apps-menu-buttons-field",3),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("items",i.items)("size","small")}}var Xi=function(){var t=function(){function t(e,i,a,o,r,s,l,u,c){n(this,t),this.sideMenuService=e,this.voService=i,this.groupService=a,this.route=o,this.router=r,this.guiAuthResolver=s,this.apiRequest=l,this.attributesManager=u,this.notificator=c,this.items=[],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.parent.params.subscribe(function(e){var i=e.voId;t.groupService.getGroupById(e.groupId).subscribe(function(e){t.group=e,t.voService.getVoById(i).subscribe(function(e){t.vo=e,t.initItems(),t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})})}},{key:"initItems",value:function(){var t=this;this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,m.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(){t.items.push({cssIcon:"perun-group",url:"/organizations/".concat(t.vo.id,"/groups/").concat(t.group.id,"/settings/expiration"),label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},function(e){"HttpErrorResponse"!==e.name&&t.notificator.showRPCError(e)}),this.guiAuthResolver.isManagerPagePrivileged(this.group)&&this.items.push({cssIcon:"perun-manager",url:"/organizations/".concat(this.vo.id,"/groups/").concat(this.group.id,"/settings/managers"),label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group])&&this.items.push({cssIcon:"perun-application-form",url:"/organizations/".concat(this.vo.id,"/groups/").concat(this.group.id,"/settings/applicationForm"),label:"MENU_ITEMS.GROUP.APPLICATION_FORM",style:"group-btn"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group])&&this.items.push({cssIcon:"perun-notification",url:"/organizations/".concat(this.vo.id,"/groups/").concat(this.group.id,"/settings/notifications"),label:"MENU_ITEMS.GROUP.NOTIFICATIONS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group])&&this.items.push({cssIcon:"perun-group",url:"/organizations/".concat(this.vo.id,"/groups/").concat(this.group.id,"/settings/relations"),label:"MENU_ITEMS.GROUP.RELATIONS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getGroupExtSources_Group_policy",[this.group])&&this.items.push({cssIcon:"perun-external-sources",url:"/organizations/".concat(this.vo.id,"/groups/").concat(this.group.id,"/settings/extsources"),label:"MENU_ITEMS.GROUP.EXTSOURCES",style:"group-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.YF),I.Y36(d.ff),I.Y36(l.gz),I.Y36(l.F0),I.Y36(h.x4),I.Y36(h.F5),I.Y36(d.H8),I.Y36(h.V6))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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(t,e){1&t&&(I.YNc(0,ji,1,0,"mat-spinner",0),I.YNc(1,Hi,2,2,"div",1)),2&t&&(I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,Z.$g,H.L],styles:[""]}),t}(),$i=o(14527);function Wi(t,e){1&t&&I._UZ(0,"mat-spinner",3)}function Ki(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",10),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).switchToInitial()}),I.TgZ(1,"i",11),I._uU(2,"arrow_right_alt"),I.qZA(),I._uU(3),I.ALo(4,"translate"),I.qZA()}2&t&&(I.xp6(3),I.hij(" ",I.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function ta(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",10),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).switchToExtension()}),I.TgZ(1,"i",11),I._uU(2,"cached"),I.qZA(),I._uU(3),I.ALo(4,"translate"),I.qZA()}2&t&&(I.xp6(3),I.hij(" ",I.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function ea(t,e){if(1&t&&(I.TgZ(0,"mat-option",12),I._uU(1),I.ALo(2,"translate"),I.ALo(3,"uppercase"),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i),I.xp6(1),I.hij(" ",I.lcZ(2,2,I.lcZ(3,4,"SHARED_LIB.LANGUAGES."+i))," ")}}function ia(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.disabledTooltip(i))}}function aa(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.hiddenTooltip(i))}}function na(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I._UZ(5,"input",19),I.qZA(),I.qZA(),I.TgZ(6,"div",20),I.YNc(7,ia,2,1,"mat-icon",21),I.YNc(8,aa,2,1,"mat-icon",21),I.TgZ(9,"span",22),I._uU(10),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,a=I.oxw(2);I.xp6(3),I.Oqu(a.getLocalizedLabel(i)),I.xp6(2),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(2),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(a.getLocalizedHint(i))}}function oa(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.disabledTooltip(i))}}function ra(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.hiddenTooltip(i))}}function sa(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I._UZ(5,"input",24),I.qZA(),I.qZA(),I.TgZ(6,"div",20),I.YNc(7,oa,2,1,"mat-icon",21),I.YNc(8,ra,2,1,"mat-icon",21),I.TgZ(9,"span",22),I._uU(10),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,a=I.oxw(2);I.xp6(3),I.Oqu(a.getLocalizedLabel(i)),I.xp6(4),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(a.getLocalizedHint(i))}}function la(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.disabledTooltip(i))}}function ua(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.hiddenTooltip(i))}}function ca(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I._UZ(5,"input",25),I._UZ(6,"br"),I._UZ(7,"input",19),I.qZA(),I.qZA(),I.TgZ(8,"div",20),I.YNc(9,la,2,1,"mat-icon",21),I.YNc(10,ua,2,1,"mat-icon",21),I.TgZ(11,"span",22),I._uU(12),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,a=I.oxw(2);I.xp6(3),I.Oqu(a.getLocalizedLabel(i)),I.xp6(2),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(2),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(2),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(a.getLocalizedHint(i))}}function pa(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"input",27),I._uU(2),I._UZ(3,"br"),I.qZA()),2&t){var i=e.$implicit,a=I.oxw(3).$implicit;I.xp6(1),I.Q6J("disabled","ALWAYS"===a.disabled),I.xp6(1),I.hij(" ",i,"")}}function da(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.disabledTooltip(i))}}function ga(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.hiddenTooltip(i))}}function ha(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"form",18),I.YNc(5,pa,4,2,"div",9),I._UZ(6,"input",26),I.ALo(7,"translate"),I.qZA(),I.qZA(),I.TgZ(8,"div",20),I.YNc(9,da,2,1,"mat-icon",21),I.YNc(10,ga,2,1,"mat-icon",21),I.TgZ(11,"span",22),I._uU(12),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,a=I.oxw(2);I.xp6(3),I.Oqu(a.getLocalizedLabel(i)),I.xp6(2),I.Q6J("ngForOf",a.getLocalizedOptions(i)),I.xp6(1),I.s9C("value",I.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(3),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(a.getLocalizedHint(i))}}function ma(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"span",28),I.qZA()),2&t){var i=I.oxw(2).$implicit,a=I.oxw(2);I.xp6(1),I.Q6J("innerHTML",a.getLocalizedLabel(i),I.oJD)}}function fa(t,e){if(1&t&&(I.TgZ(0,"option"),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.Oqu(i)}}function Aa(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.disabledTooltip(i))}}function Ia(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.hiddenTooltip(i))}}function Ta(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I.TgZ(5,"select",29),I.YNc(6,fa,2,1,"option",9),I.qZA(),I.qZA(),I.qZA(),I.TgZ(7,"div",20),I.YNc(8,Aa,2,1,"mat-icon",21),I.YNc(9,Ia,2,1,"mat-icon",21),I.TgZ(10,"span",22),I._uU(11),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,a=I.oxw(2);I.xp6(3),I.Oqu(a.getLocalizedLabel(i)),I.xp6(2),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(1),I.Q6J("ngForOf",a.getLocalizedOptions(i)),I.xp6(2),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(a.getLocalizedHint(i))}}function va(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.disabledTooltip(i))}}function Ea(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.hiddenTooltip(i))}}function Za(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I._UZ(4,"textarea",30),I.qZA(),I.TgZ(5,"div",20),I.YNc(6,va,2,1,"mat-icon",21),I.YNc(7,Ea,2,1,"mat-icon",21),I.TgZ(8,"span",22),I._uU(9),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,a=I.oxw(2);I.xp6(3),I.Oqu(a.getLocalizedLabel(i)),I.xp6(1),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(2),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(a.getLocalizedHint(i))}}function ba(t,e){if(1&t&&(I.TgZ(0,"option",35),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.Oqu(i)}}function _a(t,e){1&t&&(I.TgZ(0,"div",36),I.TgZ(1,"form"),I._UZ(2,"input",37),I.qZA(),I.qZA())}function Sa(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.disabledTooltip(i))}}function Na(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.hiddenTooltip(i))}}function Oa(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I.TgZ(5,"select",31),I.NdJ("ngModelChange",function(t){I.CHM(i);var e=I.oxw(2).$implicit;return I.oxw(2).mapForCombobox[e.id]=t}),I.TgZ(6,"option",32),I._uU(7),I.ALo(8,"translate"),I.qZA(),I.YNc(9,ba,2,1,"option",33),I.qZA(),I.YNc(10,_a,3,0,"div",34),I.qZA(),I.qZA(),I.TgZ(11,"div",20),I.YNc(12,Sa,2,1,"mat-icon",21),I.YNc(13,Na,2,1,"mat-icon",21),I.TgZ(14,"span",22),I._uU(15),I.qZA(),I.qZA(),I.qZA()}if(2&t){var a=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(a)),I.xp6(2),I.Q6J("ngModel",n.mapForCombobox[a.id])("disabled","ALWAYS"===a.disabled),I.xp6(2),I.Oqu(I.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")),I.xp6(2),I.Q6J("ngForOf",n.getLocalizedOptions(a)),I.xp6(1),I.Q6J("ngIf","true"===n.mapForCombobox[a.id]),I.xp6(2),I.Q6J("ngIf","NEVER"!==a.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==a.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(a))}}function xa(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"input",38),I._uU(2),I.qZA()),2&t){var i=e.$implicit,a=I.oxw(3).$implicit;I.xp6(1),I.Q6J("disabled","ALWAYS"===a.disabled),I.xp6(1),I.hij(" ",i," ")}}function Ca(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.disabledTooltip(i))}}function La(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.hiddenTooltip(i))}}function Ra(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I.TgZ(5,"form",36),I.YNc(6,xa,3,2,"div",9),I.qZA(),I.qZA(),I.qZA(),I.TgZ(7,"div",20),I.YNc(8,Ca,2,1,"mat-icon",21),I.YNc(9,La,2,1,"mat-icon",21),I.TgZ(10,"span",22),I._uU(11),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,a=I.oxw(2);I.xp6(3),I.Oqu(a.getLocalizedLabel(i)),I.xp6(3),I.Q6J("ngForOf",a.getLocalizedOptions(i)),I.xp6(2),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(a.getLocalizedHint(i))}}function Ma(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.disabledTooltip(i))}}function Da(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.hiddenTooltip(i))}}function ya(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I.TgZ(5,"form",36),I._UZ(6,"input",38),I._uU(7," example group1 "),I._UZ(8,"br"),I._UZ(9,"input",38),I._uU(10," example group2 "),I._UZ(11,"br"),I._UZ(12,"input",38),I._uU(13," example group3 "),I.qZA(),I.qZA(),I.qZA(),I.TgZ(14,"div",20),I.YNc(15,Ma,2,1,"mat-icon",21),I.YNc(16,Da,2,1,"mat-icon",21),I.TgZ(17,"span",22),I._uU(18),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,a=I.oxw(2);I.xp6(3),I.Oqu(a.getLocalizedLabel(i)),I.xp6(3),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(3),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(3),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(3),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(a.getLocalizedHint(i))}}function Ua(t,e){if(1&t&&(I.TgZ(0,"mat-icon",41),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.disabledTooltip(i))}}function qa(t,e){if(1&t&&(I.TgZ(0,"mat-icon",41),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.hiddenTooltip(i))}}function wa(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"button",39),I._uU(2),I.qZA(),I.YNc(3,Ua,2,1,"mat-icon",40),I.YNc(4,qa,2,1,"mat-icon",40),I.qZA()),2&t){var i=I.oxw(2).$implicit,a=I.oxw(2);I.xp6(1),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(1),I.Oqu(a.getLocalizedLabel(i)),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden)}}function Pa(t,e){if(1&t&&(I.TgZ(0,"mat-icon",41),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.disabledTooltip(i))}}function Ga(t,e){if(1&t&&(I.TgZ(0,"mat-icon",41),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.hiddenTooltip(i))}}function ka(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"button",39),I._uU(2),I.qZA(),I.YNc(3,Pa,2,1,"mat-icon",40),I.YNc(4,Ga,2,1,"mat-icon",40),I.qZA()),2&t){var i=I.oxw(2).$implicit,a=I.oxw(2);I.xp6(1),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(1),I.Oqu(a.getLocalizedLabel(i)),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden)}}function Ya(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.disabledTooltip(i))}}function Ja(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,a=I.oxw(2);I.Q6J("matTooltip",a.hiddenTooltip(i))}}function Va(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I.TgZ(5,"select",42),I.TgZ(6,"option",43),I._uU(7),I.ALo(8,"translate"),I.qZA(),I.TgZ(9,"option",44),I._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),I.qZA(),I.TgZ(11,"option",45),I._uU(12,"(GMT -11:00) Midway Island, Samoa"),I.qZA(),I.TgZ(13,"option",46),I._uU(14,"(GMT -10:00) Hawaii"),I.qZA(),I.TgZ(15,"option",47),I._uU(16,"(GMT -9:30) Taiohae"),I.qZA(),I.TgZ(17,"option",48),I._uU(18,"(GMT -9:00) Alaska"),I.qZA(),I.TgZ(19,"option",49),I._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),I.qZA(),I.TgZ(21,"option",50),I._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),I.qZA(),I.TgZ(23,"option",51),I._uU(24,"(GMT -6:00) Central Time (US & Canada), Mexico City"),I.qZA(),I.TgZ(25,"option",52),I._uU(26,"(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima"),I.qZA(),I.TgZ(27,"option",53),I._uU(28,"(GMT -4:30) Caracas"),I.qZA(),I.TgZ(29,"option",54),I._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),I.qZA(),I.TgZ(31,"option",55),I._uU(32,"(GMT -3:30) Newfoundland"),I.qZA(),I.TgZ(33,"option",56),I._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),I.qZA(),I.TgZ(35,"option",57),I._uU(36,"(GMT -2:00) Mid-Atlantic"),I.qZA(),I.TgZ(37,"option",58),I._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),I.qZA(),I.TgZ(39,"option",59),I._uU(40,"(GMT) Western Europe Time, London, Lisbon, Casablanca"),I.qZA(),I.TgZ(41,"option",60),I._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),I.qZA(),I.TgZ(43,"option",61),I._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),I.qZA(),I.TgZ(45,"option",62),I._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),I.qZA(),I.TgZ(47,"option",63),I._uU(48,"(GMT +3:30) Tehran"),I.qZA(),I.TgZ(49,"option",64),I._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),I.qZA(),I.TgZ(51,"option",65),I._uU(52,"(GMT +4:30) Kabul"),I.qZA(),I.TgZ(53,"option",66),I._uU(54,"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent"),I.qZA(),I.TgZ(55,"option",67),I._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),I.qZA(),I.TgZ(57,"option",68),I._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),I.qZA(),I.TgZ(59,"option",69),I._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),I.qZA(),I.TgZ(61,"option",70),I._uU(62,"(GMT +6:30) Yangon, Mandalay"),I.qZA(),I.TgZ(63,"option",71),I._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),I.qZA(),I.TgZ(65,"option",72),I._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),I.qZA(),I.TgZ(67,"option",73),I._uU(68,"(GMT +8:45) Eucla"),I.qZA(),I.TgZ(69,"option",74),I._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),I.qZA(),I.TgZ(71,"option",75),I._uU(72,"(GMT +9:30) Adelaide, Darwin"),I.qZA(),I.TgZ(73,"option",76),I._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),I.qZA(),I.TgZ(75,"option",77),I._uU(76,"(GMT +10:30) Lord Howe Island"),I.qZA(),I.TgZ(77,"option",78),I._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),I.qZA(),I.TgZ(79,"option",79),I._uU(80,"(GMT +11:30) Norfolk Island"),I.qZA(),I.TgZ(81,"option",80),I._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),I.qZA(),I.TgZ(83,"option",81),I._uU(84,"(GMT +12:45) Chatham Islands"),I.qZA(),I.TgZ(85,"option",82),I._uU(86,"(GMT +13:00) Apia, Nukualofa"),I.qZA(),I.TgZ(87,"option",83),I._uU(88,"(GMT +14:00) Line Islands, Tokelau"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(89,"div",20),I.YNc(90,Ya,2,1,"mat-icon",21),I.YNc(91,Ja,2,1,"mat-icon",21),I.TgZ(92,"span",22),I._uU(93),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,a=I.oxw(2);I.xp6(3),I.Oqu(a.getLocalizedLabel(i)),I.xp6(2),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(2),I.hij(" ",I.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),I.xp6(83),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(a.getLocalizedHint(i))}}function Fa(t,e){if(1&t&&(I.TgZ(0,"div",14),I.YNc(1,na,11,5,"div",15),I.YNc(2,sa,11,4,"div",15),I.YNc(3,ca,13,6,"div",15),I.YNc(4,ha,13,9,"div",15),I.YNc(5,ma,2,1,"div",2),I.YNc(6,Ta,12,6,"div",15),I.YNc(7,Za,10,5,"div",15),I.YNc(8,Oa,16,11,"div",15),I.YNc(9,Ra,12,5,"div",15),I.YNc(10,ya,19,7,"div",15),I.YNc(11,wa,5,4,"div",15),I.YNc(12,ka,5,4,"div",2),I.YNc(13,Va,94,8,"div",15),I.qZA()),2&t){var i=I.oxw().$implicit;I.xp6(1),I.Q6J("ngIf",("TEXTFIELD"===i.type||"VALIDATED_EMAIL"===i.type||"USERNAME"===i.type)&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","FROM_FEDERATION_SHOW"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","PASSWORD"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","RADIO"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf",("HEADING"===i.type||"HTML_COMMENT"===i.type)&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","SELECTIONBOX"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","TEXTAREA"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","COMBOBOX"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","CHECKBOX"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","SUBMIT_BUTTON"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","TIMEZONE"===i.type&&"ALWAYS"!==i.hidden)}}function Qa(t,e){if(1&t&&(I.TgZ(0,"div"),I.YNc(1,Fa,14,13,"div",13),I.qZA()),2&t){var i=e.$implicit,a=I.oxw(2);I.xp6(1),I.Q6J("ngIf",a.isValid(i))}}function za(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div"),I.TgZ(1,"div",4),I.YNc(2,Ki,5,3,"button",5),I.YNc(3,ta,5,3,"button",5),I.TgZ(4,"mat-form-field"),I.TgZ(5,"mat-label"),I._uU(6),I.ALo(7,"translate"),I.qZA(),I.TgZ(8,"mat-select",6),I.NdJ("valueChange",function(t){return I.CHM(i),I.oxw().currentLanguage=t}),I.YNc(9,ea,4,6,"mat-option",7),I.qZA(),I.qZA(),I.qZA(),I.TgZ(10,"div",8),I.YNc(11,Qa,2,1,"div",9),I.qZA(),I.qZA()}if(2&t){var a=I.oxw();I.xp6(2),I.Q6J("ngIf",!a.initialPage),I.xp6(1),I.Q6J("ngIf",a.initialPage),I.xp6(3),I.Oqu(I.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),I.xp6(2),I.Q6J("value",a.currentLanguage),I.xp6(1),I.Q6J("ngForOf",a.languages),I.xp6(2),I.Q6J("ngForOf",a.applicationFormItems)}}var Ba=function(){var t=function(){function t(e,i,a){n(this,t),this.route=e,this.translate=i,this.store=a,this.loading=!0,this.applicationFormItems=[],this.currentLanguage="en",this.languages=["en"],this.initialPage=!0,this.mapForCombobox=new Map}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.languages=this.store.get("supportedLanguages"),this.route.queryParamMap.subscribe(function(e){t.applicationFormItems=JSON.parse(e.get("applicationFormItems")),t.loading=!1})}},{key:"switchToInitial",value:function(){this.initialPage=!0}},{key:"switchToExtension",value:function(){this.initialPage=!1}},{key:"getLocalizedOptions",value:function(t){if(t.i18n[this.currentLanguage]){var i=t.i18n[this.currentLanguage].options;if(null!==i&&""!==i){var a,n=[],o=e(i.split("|"));try{for(o.s();!(a=o.n()).done;){var r=a.value;n.push(r.split("#")[1])}}catch(s){o.e(s)}finally{o.f()}return n}}return[]}},{key:"isValid",value:function(t){if(t.forDelete)return!1;var i,a=e(t.applicationTypes);try{for(a.s();!(i=a.n()).done;){var n=i.value;if("INITIAL"===n&&this.initialPage)return!0;if("EXTENSION"===n&&!this.initialPage)return!0}}catch(o){a.e(o)}finally{a.f()}return!1}},{key:"disabledTooltip",value:function(t){var e,i,a;switch(t.disabled){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED");case"IF_PREFILLED":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.disabledDependencyItemId}).shortname,a=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),"".concat(e," ").concat(i," ").concat(a);case"IF_EMPTY":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.disabledDependencyItemId}).shortname,a=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),"".concat(e," ").concat(i," ").concat(a);default:return""}}},{key:"hiddenTooltip",value:function(t){var e,i,a;switch(t.hidden){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN");case"IF_PREFILLED":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.hiddenDependencyItemId}).shortname,a=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),"".concat(e," ").concat(i," ").concat(a);case"IF_EMPTY":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.hiddenDependencyItemId}).shortname,a=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),"".concat(e," ").concat(i," ").concat(a);default:return""}}},{key:"getLocalizedLabel",value:function(t){return t.i18n[this.currentLanguage]&&t.i18n[this.currentLanguage].label?t.i18n[this.currentLanguage].label:t.shortname}},{key:"getLocalizedHint",value:function(t){return t.i18n[this.currentLanguage]?t.i18n[this.currentLanguage].help:""}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz),I.Y36(O.sK),I.Y36(h.d6))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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","disabled","",1,"w-100"],["type","text",1,"mb-1","w-100",3,"disabled"],["type","reset",3,"disabled","value"],["type","radio","name","temp",3,"disabled"],[3,"innerHTML"],[1,"w-100",3,"disabled"],[1,"w-50",3,"disabled"],[1,"w-100",3,"ngModel","disabled","ngModelChange"],["value","true","selected",""],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],[1,"w-100"],["type","text"],["type","checkbox",3,"disabled"],["mat-flat-button","","color","accent",3,"disabled"],["class","pointer left",3,"matTooltip",4,"ngIf"],[1,"pointer","left",3,"matTooltip"],["name","timezone_offset","id","timezone-offset",1,"w-100",3,"disabled"],["value","-12:00","selected","selected"],["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"]],template:function(t,e){1&t&&(I.TgZ(0,"h1",0),I._uU(1),I.ALo(2,"translate"),I.qZA(),I.YNc(3,Wi,1,0,"mat-spinner",1),I.YNc(4,za,12,8,"div",2)),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,Z.$g,Ze.KE,Ze.hX,be.gD,s.sg,N.lW,Se.ey,b.Hw,_.gM,Ie._Y,Ie.JL,Ie.F,Ie.YN,Ie.Kr,Ie.EJ,Ie.JJ,Ie.On],pipes:[O.X$,s.gd],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}();function ja(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.hij(" ",I.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function Ha(t,e){if(1&t&&I._UZ(0,"app-one-entity-attribute-page",5),2&t){var i=I.oxw();I.Q6J("entity","member")("entityId",i.memberId)}}function Xa(t,e){1&t&&(I._uU(0),I.ALo(1,"translate"),I.ALo(2,"translate")),2&t&&I.AsE(" ",I.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",I.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function $a(t,e){if(1&t&&I._UZ(0,"app-two-entity-attribute-page",6),2&t){var i=I.oxw(2);I.Q6J("firstEntity","member")("firstEntityId",i.memberId)("secondEntity","group")}}function Wa(t,e){1&t&&(I.TgZ(0,"mat-tab"),I.YNc(1,Xa,3,6,"ng-template",1),I.YNc(2,$a,1,3,"ng-template",2),I.qZA())}function Ka(t,e){1&t&&(I._uU(0),I.ALo(1,"translate"),I.ALo(2,"translate")),2&t&&I.AsE(" ",I.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",I.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function tn(t,e){if(1&t&&I._UZ(0,"app-two-entity-attribute-page",6),2&t){var i=I.oxw(2);I.Q6J("firstEntity","member")("firstEntityId",i.memberId)("secondEntity","resource")}}function en(t,e){1&t&&(I.TgZ(0,"mat-tab"),I.YNc(1,Ka,3,6,"ng-template",1),I.YNc(2,tn,1,3,"ng-template",2),I.qZA())}function an(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.hij(" ",I.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function nn(t,e){if(1&t&&I._UZ(0,"app-one-entity-attribute-page",7),2&t){var i=I.oxw();I.Q6J("entityId",i.member.userId)("entity","user")}}function on(t,e){1&t&&(I._uU(0),I.ALo(1,"translate"),I.ALo(2,"translate")),2&t&&I.AsE(" ",I.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",I.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function rn(t,e){if(1&t&&I._UZ(0,"app-two-entity-attribute-page",6),2&t){var i=I.oxw(2);I.Q6J("firstEntity","user")("firstEntityId",i.member.userId)("secondEntity","facility")}}function sn(t,e){1&t&&(I.TgZ(0,"mat-tab"),I.YNc(1,on,3,6,"ng-template",1),I.YNc(2,rn,1,3,"ng-template",2),I.qZA())}var ln=function(){var t=function(){function t(e,i,a){n(this,t),this.route=e,this.authResolver=i,this.memberManager=a}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.memberId=e.memberId,t.memberManager.getMemberById(t.memberId).subscribe(function(e){t.member=e,t.memberGroupAttAuth=t.authResolver.isAuthorized("getMemberGroups_Member_policy",[t.member]),t.memberResourceAttAuth=t.authResolver.isAuthorized("getAllowedResources_Member_policy",[t.member]),t.userFacilityAttAuth=t.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{beanName:"User",id:e.userId}])})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz),I.Y36(h.x4),I.Y36(d.uq))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-member-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:14,vars:6,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[1,"mb-2"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"],[3,"entityId","entity"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"mat-tab-group"),I.TgZ(5,"mat-tab"),I.YNc(6,ja,2,3,"ng-template",1),I.YNc(7,Ha,1,2,"ng-template",2),I.qZA(),I.YNc(8,Wa,3,0,"mat-tab",3),I.YNc(9,en,3,0,"mat-tab",3),I.TgZ(10,"mat-tab",4),I.YNc(11,an,2,3,"ng-template",1),I.YNc(12,nn,1,2,"ng-template",2),I.qZA(),I.YNc(13,sn,3,0,"mat-tab",3),I.qZA(),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),I.xp6(6),I.Q6J("ngIf",e.memberGroupAttAuth),I.xp6(1),I.Q6J("ngIf",e.memberResourceAttAuth),I.xp6(4),I.Q6J("ngIf",e.userFacilityAttAuth))},directives:[wi.SP,wi.uX,wi.uD,wi.Vc,s.O5,de.t,Pi.Y],pipes:[O.X$],styles:[""]}),t}(),un=function(){var t=function(){function t(e,i,a,o,r){n(this,t),this.sideMenuService=e,this.voService=i,this.authResolver=a,this.route=o,this.router=r,this.items=[]}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.parent.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e,t.initItems()})})}},{key:"initItems",value:function(){this.items=[{cssIcon:"perun-resource",url:"/organizations/".concat(this.vo.id,"/resources/preview"),label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}],this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-resource-tags",url:"/organizations/".concat(this.vo.id,"/resources/tags"),label:"MENU_ITEMS.VO.RESOURCE_TAGS",style:"vo-btn"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-resources-state",url:"/organizations/".concat(this.vo.id,"/resources/states"),label:"MENU_ITEMS.VO.RESOURCE_STATES",style:"vo-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.YF),I.Y36(h.x4),I.Y36(l.gz),I.Y36(l.F0))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I._UZ(1,"perun-web-apps-menu-buttons-field",0),I.qZA()),2&t&&(I.xp6(1),I.Q6J("items",e.items)("size","small"))},directives:[H.L],styles:[""]}),t}(),cn=o(88227),pn=o(97397),dn=o(4230),gn=o(24923);function hn(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function mn(t,e){1&t&&I._UZ(0,"th",15)}function fn(t,e){if(1&t&&(I.TgZ(0,"td",16),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.hij(" ",i.tagName," ")}}function An(t,e){1&t&&I._UZ(0,"tr",17)}function In(t,e){1&t&&I._UZ(0,"tr",18)}function Tn(t,e){if(1&t&&(I.TgZ(0,"div",7),I.TgZ(1,"p"),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"div",8),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.TgZ(7,"table",9),I.ynx(8,10),I.YNc(9,mn,1,0,"th",11),I.YNc(10,fn,2,1,"td",12),I.BQk(),I.YNc(11,An,1,0,"tr",13),I.YNc(12,In,1,0,"tr",14),I.qZA(),I.qZA()),2&t){var i=I.oxw();I.xp6(2),I.hij(" ",I.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),I.xp6(3),I.hij(" ",I.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),I.xp6(2),I.Q6J("dataSource",i.dataSource),I.xp6(4),I.Q6J("matHeaderRowDef",i.displayedColumns),I.xp6(1),I.Q6J("matRowDefColumns",i.displayedColumns)}}var vn=function(){var t=function(){function t(e,i,a){n(this,t),this.dialogRef=e,this.data=i,this.resourceManager=a,this.displayedColumns=["name"],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new ut.by(this.data.tagsForDelete)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var i,a=e(this.data.tagsForDelete);try{for(a.s();!(i=a.n()).done;){var n=i.value;this.resourceManager.deleteResourceTag({resourceTag:n}).subscribe(function(){t.dialogRef.close(!0)},function(){return t.dialogRef.close(!0)})}}catch(o){a.e(o)}finally{a.f()}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(d.xk))},t.\u0275cmp=I.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,hn,1,0,"mat-spinner",1),I.YNc(5,Tn,13,9,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.onCancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"button",5),I.NdJ("click",function(){return e.onSubmit()}),I._uU(11),I.ALo(12,"translate"),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.Oqu(I.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),I.xp6(2),I.Q6J("disabled",e.loading),I.xp6(1),I.hij(" ",I.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},directives:[v.uh,s.O5,v.H8,N.lW,Z.$g,v.xY,ut.BZ,ut.w1,ut.fO,ut.Dz,ut.as,ut.nj,ut.ge,ut.ev,ut.XQ,ut.Gk],pipes:[O.X$],styles:[""]}),t}(),En=o(60611),Zn=o(59403),bn=o(19139),_n=o(4196);function Sn(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",7),I.NdJ("click",function(){return I.CHM(i),I.oxw().create()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function Nn(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",8),I.NdJ("click",function(){return I.CHM(i),I.oxw().deleteTag()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var a=I.oxw();I.Q6J("disabled",0===a.selection.selected.length),I.xp6(1),I.hij(" ",I.lcZ(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function On(t,e){1&t&&I._UZ(0,"mat-spinner",9)}function xn(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"app-resources-tags-list",10),I.NdJ("page",function(t){return I.CHM(i),I.oxw().pageChanged(t)}),I.qZA()}if(2&t){var a=I.oxw();I.Q6J("selection",a.selection)("pageSize",a.pageSize)("resourceTags",a.resourceTag)("filterValue",a.filterValue)("displayedColumns",a.displayedColumns)("entity","vo")}}var Cn=function(){var t=function(){function t(e,i,a,o,r,s,l,u){n(this,t),this.route=e,this.resourceManager=i,this.dialog=a,this.notificator=o,this.tableConfigService=r,this.translator=s,this.authResolver=l,this.voService=u,this.loading=!1,this.resourceTag=[],this.selection=new dn.Ov(!0,[]),this.tableId=En.O7,this.displayedColumns=[]}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(function(e){t.voId=e.voId,t.voService.getVoById(t.voId).subscribe(function(e){t.vo=e,t.updateData()})})}},{key:"deleteTag",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(vn,e).afterClosed().subscribe(function(e){e&&(t.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.updateData())})}},{key:"create",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(gn.p,e).afterClosed().subscribe(function(e){e&&(t.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.updateData())})}},{key:"updateData",value:function(){var t=this;this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.voId).subscribe(function(e){t.resourceTag=e,t.selection.clear(),t.setAuthRights(),t.loading=!1})}},{key:"setAuthRights",value:function(){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")}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz),I.Y36(d.xk),I.Y36(v.uw),I.Y36(h.V6),I.Y36(En.dB),I.Y36(O.sK),I.Y36(h.x4),I.Y36(d.YF))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page"]],template:function(t,e){1&t&&(I.TgZ(0,"h1",0),I._uU(1),I.ALo(2,"translate"),I.qZA(),I.TgZ(3,"perun-web-apps-refresh-button",1),I.NdJ("refresh",function(){return e.updateData()}),I.qZA(),I.YNc(4,Sn,3,3,"button",2),I.YNc(5,Nn,3,4,"button",3),I.TgZ(6,"perun-web-apps-immediate-filter",4),I.NdJ("filter",function(t){return e.applyFilter(t)}),I.qZA(),I.YNc(7,On,1,0,"mat-spinner",5),I.YNc(8,xn,1,6,"app-resources-tags-list",6)),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),I.xp6(3),I.Q6J("ngIf",e.createAuth),I.xp6(1),I.Q6J("ngIf",e.deleteAuth),I.xp6(1),I.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),I.xp6(1),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[Zn.t,s.O5,bn.L,N.lW,Z.$g,_n.o],pipes:[O.X$],styles:[""]}),t}();function Ln(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"app-expiration-settings",1),I.NdJ("saveAttribute",function(t){return I.CHM(i),I.oxw().saveExpirationAttribute(t)}),I.qZA()}if(2&t){var a=I.oxw();I.Q6J("expirationAttribute",a.expirationAttribute)}}var Rn=function(){var t=function(){function t(e,i,a,o,r){var s=this;n(this,t),this.attributesManager=e,this.route=i,this.translate=a,this.notificator=o,this.apiRequest=r,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(function(t){return s.successMessage=t}),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(function(t){return s.errorMessage=t})}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.parent.params.subscribe(function(e){t.groupId=e.groupId,t.loadSettings()})}},{key:"loadSettings",value:function(){var t=this;this.attributesManager.getGroupAttributeByName(this.groupId,m.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(e){t.expirationAttribute=e})}},{key:"saveExpirationAttribute",value:function(t){var e=this;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.groupId,attribute:t}).subscribe(function(){e.loadSettings(),e.notificator.showSuccess(e.successMessage)},function(t){return e.notificator.showRPCError(t.error,e.errorMessage)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.H8),I.Y36(l.gz),I.Y36(O.sK),I.Y36(h.V6),I.Y36(h.F5))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&I.YNc(0,Ln,1,1,"app-expiration-settings",0),2&t&&I.Q6J("ngIf",void 0!==e.expirationAttribute)},directives:[s.O5,Ge],styles:[""]}),t}();function Mn(t,e){if(1&t&&I._UZ(0,"app-managers-page",1),2&t){var i=I.oxw();I.Q6J("complementaryObject",i.group)("complementaryObjectType",i.type)("theme",i.theme)("availableRoles",i.availableRoles)}}var Dn=function(){var t=function(){function t(e,i,a){n(this,t),this.groupService=e,this.route=i,this.guiAuthResolver=a,this.availableRoles=[],this.selected="user",this.type="Group",this.theme="group-theme"}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.parent.params.subscribe(function(e){t.groupService.getGroupById(e.groupId).subscribe(function(e){t.group=e})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Group")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.ff),I.Y36(l.gz),I.Y36(h.x4))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&I.YNc(0,Mn,1,4,"app-managers-page",0),2&t&&I.Q6J("ngIf",e.group)},directives:[s.O5,Ve.s],styles:[""]}),t}();function yn(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function Un(t,e){1&t&&I._UZ(0,"th",15)}function qn(t,e){if(1&t&&(I.TgZ(0,"td",16),I._uU(1),I.qZA()),2&t){var i=e.$implicit,a=I.oxw(2);I.xp6(1),I.hij(" ",a.getMailType(i)," ")}}function wn(t,e){1&t&&I._UZ(0,"tr",17)}function Pn(t,e){1&t&&I._UZ(0,"tr",18)}function Gn(t,e){if(1&t&&(I.TgZ(0,"div",7),I.TgZ(1,"p"),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"div",8),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.TgZ(7,"table",9),I.ynx(8,10),I.YNc(9,Un,1,0,"th",11),I.YNc(10,qn,2,1,"td",12),I.BQk(),I.YNc(11,wn,1,0,"tr",13),I.YNc(12,Pn,1,0,"tr",14),I.qZA(),I.qZA()),2&t){var i=I.oxw();I.xp6(2),I.hij(" ",I.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),I.xp6(3),I.hij(" ",I.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),I.xp6(2),I.Q6J("dataSource",i.dataSource),I.xp6(4),I.Q6J("matHeaderRowDef",i.displayedColumns),I.xp6(1),I.Q6J("matRowDefColumns",i.displayedColumns)}}var kn=function(){var t=function(){function t(e,i,a,o,r){n(this,t),this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.registrarService=r,this.displayedColumns=["name"],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new ut.by(this.data.mails)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;if(this.loading=!0,this.data.groupId){var i,a=e(this.data.mails);try{for(a.s();!(i=a.n()).done;){var n=i.value;this.registrarService.deleteApplicationMailForGroup(this.data.groupId,n.id).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1})}}catch(l){a.e(l)}finally{a.f()}}else{var o,r=e(this.data.mails);try{for(r.s();!(o=r.n()).done;){var s=o.value;this.registrarService.deleteApplicationMailForVo(this.data.voId,s.id).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1})}}catch(l){r.e(l)}finally{r.f()}}}},{key:"getMailType",value:function(t){var e="";return null==t.mailType||""===t.mailType?e="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+t.mailType).subscribe(function(t){e=t}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(h.V6),I.Y36(O.sK),I.Y36(d.tk))},t.\u0275cmp=I.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,yn,1,0,"mat-spinner",1),I.YNc(5,Gn,13,9,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.onCancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"button",5),I.NdJ("click",function(){return e.onSubmit()}),I._uU(11),I.ALo(12,"translate"),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.Oqu(I.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),I.xp6(2),I.Q6J("disabled",e.loading),I.xp6(1),I.hij(" ",I.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},directives:[v.uh,s.O5,v.H8,N.lW,Z.$g,v.xY,ut.BZ,ut.w1,ut.fO,ut.Dz,ut.as,ut.nj,ut.ge,ut.ev,ut.XQ,ut.Gk],pipes:[O.X$],styles:[""]}),t}(),Yn=o(10901);function Jn(t,e){1&t&&I._UZ(0,"mat-spinner",7)}function Vn(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",8),I.TgZ(1,"div"),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"mat-form-field"),I.TgZ(5,"textarea",9),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().mailFooter=t}),I.qZA(),I.qZA(),I.TgZ(6,"div",10),I._uU(7),I.ALo(8,"translate"),I.qZA(),I.qZA()}if(2&t){var a=I.oxw();I.xp6(2),I.hij(" ",I.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.LABEL"),": "),I.xp6(3),I.Q6J("cdkTextareaAutosize",!0)("ngModel",a.mailFooter),I.xp6(2),I.Oqu(I.lcZ(8,6,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION"))}}var Fn=function(){var t=function(){function t(e,i,a,o,r){n(this,t),this.dialogRef=e,this.attributesManager=i,this.translateService=a,this.notificator=o,this.data=r,this.mailFooter="",this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}},{key:"submit",value:function(){var t=this;this.loading=!0,this.mailAttribute.value=this.mailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe(function(){t.notificateSuccess(),t.dialogRef.close()},function(){return t.loading=!1}):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe(function(){t.notificateSuccess(),t.dialogRef.close()},function(){return t.loading=!1})}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"getFooterForVo",value:function(){var t=this;this.attributesManager.getVoAttributeByName(this.data.voId,m.r.VO_DEF_MAIL_FOOTER).subscribe(function(e){t.mailAttribute=e,t.editAuth=t.mailAttribute.writable,t.mailFooter=e.value?e.value:""})}},{key:"getFooterForGroup",value:function(){var t=this;this.attributesManager.getGroupAttributeByName(this.data.groupId,m.r.GROUP_DEF_MAIL_FOOTER).subscribe(function(e){t.mailAttribute=e,t.editAuth=t.mailAttribute.writable,t.mailFooter=e.value?e.value:""})}},{key:"notificateSuccess",value:function(){var t=this;this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(d.H8),I.Y36(O.sK),I.Y36(h.V6),I.Y36(v.WI))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["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"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"mt-2","font-italic","text-muted"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,Jn,1,0,"mat-spinner",1),I.YNc(5,Vn,9,8,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.cancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"div",5),I.ALo(11,"translate"),I.TgZ(12,"button",6),I.NdJ("click",function(){return e.submit()}),I._uU(13),I.ALo(14,"translate"),I.qZA(),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.Oqu(I.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),I.xp6(2),I.s9C("matTooltip",I.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),I.Q6J("matTooltipDisabled",e.editAuth)("matTooltipPosition","above"),I.xp6(2),I.Q6J("disabled",e.loading||!e.editAuth),I.xp6(1),I.hij(" ",I.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},directives:[v.uh,s.O5,v.H8,N.lW,_.gM,Z.$g,v.xY,Ze.KE,_e.Nt,Yn.IC,Ie.Fj,Ie.JJ,Ie.On],pipes:[O.X$],styles:[""]}),t}(),Qn=o(4253);function zn(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div"),I.TgZ(1,"div",1),I.TgZ(2,"button",2),I.NdJ("click",function(){var t=I.CHM(i).$implicit;return I.oxw().addTag("{"+t[0]+"}")}),I.ALo(3,"translate"),I._uU(4),I.qZA(),I.TgZ(5,"span",3),I._uU(6),I.ALo(7,"translate"),I.qZA(),I.qZA(),I._UZ(8,"mat-divider",4),I.qZA()}if(2&t){var a=e.$implicit;I.xp6(2),I.s9C("matTooltip",I.lcZ(3,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAG_HINT")),I.xp6(2),I.hij(" ",a[0]," "),I.xp6(2),I.hij(" ",I.lcZ(7,5,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+a[1])," ")}}var Bn=function(){var t=function(){function t(){n(this,t),this.tags=[],this.addedTag=new I.vpe}return r(t,[{key:"addTag",value:function(t){this.addedTag.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,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(t,e){1&t&&I.YNc(0,zn,9,7,"div",0),2&t&&I.Q6J("ngForOf",e.tags)},directives:[s.sg,N.lW,_.gM,ri.d],pipes:[O.X$],styles:[".tag-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}"]}),t}(),jn=function(){var t=function(){function t(){n(this,t),this.addedTag=new I.vpe,this.applicationRelatedTags=[],this.userRelatedTags=[],this.validationLinksUsersTags=[],this.applicationLinksUsersTags=[],this.applicationLinksAdministratorsTags=[],this.perunLinksAdministratorsTags=[],this.userInvitationsTags=[]}return r(t,[{key:"ngOnInit",value:function(){this.getApplicationRelatedTags(),this.getUserRelatedTags(),this.getValidationLinksUsersTags(),this.getApplicationLinksUsersTags(),this.getApplicationLinksAdministratorsTags(),this.getPerunLinksAdministratorsTags(),this.getUserInvitationsTags()}},{key:"getApplicationRelatedTags",value:function(){var t=[];t.push(["appId","APPID_DESCRIPTION"]),t.push(["actor","ACTOR_DESCRIPTION"]),t.push(["extSource","EXTSOURCE_DESCRIPTION"]),t.push(["voName","VONAME_DESCRIPTION"]),t.push(["groupName","GROUPNAME_DESCRIPTION"]),t.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),t.push(["errors","ERRORS_DESCRIPTION"]),t.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),t.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=t}},{key:"getUserRelatedTags",value:function(){var t=[];t.push(["firstName","FIRSTNAME_DESCRIPTION"]),t.push(["lastName","LASTNAME_DESCRIPTION"]),t.push(["displayName","DISPLAYNAME_DESCRIPTION"]),t.push(["mail","MAIL_DESCRIPTION"]),t.push(["phone","PHONE_DESCRIPTION"]),t.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),t.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=t}},{key:"getValidationLinksUsersTags",value:function(){var t=[];t.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),t.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),t.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),t.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),t.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),t.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=t}},{key:"getApplicationLinksUsersTags",value:function(){var t=[];t.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),t.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),t.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),t.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),t.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=t}},{key:"getApplicationLinksAdministratorsTags",value:function(){var t=[];t.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),t.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),t.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),t.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),this.applicationLinksAdministratorsTags=t}},{key:"getPerunLinksAdministratorsTags",value:function(){var t=[];t.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),t.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),t.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),t.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),this.perunLinksAdministratorsTags=t}},{key:"getUserInvitationsTags",value:function(){var t=[];t.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),t.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),t.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),t.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),t.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),t.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),t.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),t.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),t.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=t}},{key:"addTag",value:function(t){this.addedTag.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,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(t,e){1&t&&(I.TgZ(0,"app-alert",0),I._uU(1),I.ALo(2,"translate"),I.qZA(),I.TgZ(3,"div",1),I.TgZ(4,"div",2),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.TgZ(7,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(8,"div",4),I._uU(9),I.ALo(10,"translate"),I.qZA(),I.TgZ(11,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(12,"div",4),I._uU(13),I.ALo(14,"translate"),I.qZA(),I.TgZ(15,"div",5),I._uU(16),I.ALo(17,"translate"),I.qZA(),I.TgZ(18,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(19,"div",4),I._uU(20),I.ALo(21,"translate"),I.qZA(),I.TgZ(22,"div",5),I._uU(23),I.ALo(24,"translate"),I.qZA(),I.TgZ(25,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(26,"div",4),I._uU(27),I.ALo(28,"translate"),I.qZA(),I.TgZ(29,"div",5),I._uU(30),I.ALo(31,"translate"),I.qZA(),I.TgZ(32,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(33,"div",4),I._uU(34),I.ALo(35,"translate"),I.qZA(),I.TgZ(36,"div",5),I._uU(37),I.ALo(38,"translate"),I.qZA(),I.TgZ(39,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(40,"div",4),I._uU(41),I.ALo(42,"translate"),I.qZA(),I.TgZ(43,"div",5),I._uU(44),I.ALo(45,"translate"),I.qZA(),I.TgZ(46,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),I.xp6(4),I.hij("",I.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),":"),I.xp6(2),I.Q6J("tags",e.applicationRelatedTags),I.xp6(2),I.hij("",I.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),":"),I.xp6(2),I.Q6J("tags",e.userRelatedTags),I.xp6(2),I.hij("",I.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),":"),I.xp6(3),I.hij(" ",I.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),I.xp6(2),I.Q6J("tags",e.validationLinksUsersTags),I.xp6(2),I.hij("",I.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),":"),I.xp6(3),I.hij(" ",I.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),I.xp6(2),I.Q6J("tags",e.applicationLinksUsersTags),I.xp6(2),I.hij("",I.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),":"),I.xp6(3),I.hij(" ",I.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),I.xp6(2),I.Q6J("tags",e.applicationLinksAdministratorsTags),I.xp6(2),I.hij("",I.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),":"),I.xp6(3),I.hij(" ",I.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),I.xp6(2),I.Q6J("tags",e.perunLinksAdministratorsTags),I.xp6(2),I.hij("",I.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),":"),I.xp6(3),I.hij(" ",I.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),I.xp6(2),I.Q6J("tags",e.userInvitationsTags))},directives:[mt.w,Qn.PQ,Bn],pipes:[O.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),t}();function Hn(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",9),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function Xn(t,e){1&t&&(I.TgZ(0,"h1",9),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function $n(t,e){1&t&&I._UZ(0,"mat-spinner",10)}function Wn(t,e){1&t&&(I.TgZ(0,"div",34),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function Kn(t,e){1&t&&(I.TgZ(0,"div",34),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function to(t,e){1&t&&(I.TgZ(0,"mat-option",36),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function eo(t,e){1&t&&(I.TgZ(0,"div",34),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function io(t,e){1&t&&(I.TgZ(0,"div",34),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function ao(t,e){1&t&&I._UZ(0,"mat-divider",50)}function no(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",38),I.TgZ(1,"div",39),I.TgZ(2,"div",40),I.TgZ(3,"button",41),I.NdJ("click",function(){I.CHM(i);var t=I.oxw(3);return t.showTags=!t.showTags}),I._uU(4),I.ALo(5,"translate"),I.ALo(6,"translate"),I.qZA(),I.TgZ(7,"span",42),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"mat-form-field",18),I.TgZ(11,"input",43,44),I.NdJ("focus",function(){return I.CHM(i),I.oxw(3).isTextFocused=!1})("ngModelChange",function(t){I.CHM(i);var e=I.oxw().$implicit;return I.oxw(2).applicationMail.message[e].subject=t}),I.qZA(),I.qZA(),I.qZA(),I.TgZ(13,"div",45),I._uU(14),I.ALo(15,"translate"),I.qZA(),I.TgZ(16,"mat-form-field",18),I.TgZ(17,"textarea",46,47),I.NdJ("focus",function(){return I.CHM(i),I.oxw(3).isTextFocused=!0})("ngModelChange",function(t){I.CHM(i);var e=I.oxw().$implicit;return I.oxw(2).applicationMail.message[e].text=t}),I._uU(19," "),I.qZA(),I.qZA(),I.qZA(),I.YNc(20,ao,1,0,"mat-divider",48),I.TgZ(21,"div"),I.TgZ(22,"app-tag-bar",49),I.NdJ("addedTag",function(t){I.CHM(i);var e=I.MAs(12),a=I.MAs(18),n=I.oxw().$implicit;return I.oxw(2).addTag(e,a,n,t)}),I.qZA(),I.qZA(),I.qZA()}if(2&t){var a=I.oxw().$implicit,n=I.oxw(2);I.xp6(4),I.hij(" ",n.showTags?I.lcZ(5,7,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):I.lcZ(6,9,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),I.xp6(4),I.hij(" ",I.lcZ(9,11,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT"),": "),I.xp6(3),I.Q6J("ngModel",n.applicationMail.message[a].subject),I.xp6(3),I.hij(" ",I.lcZ(15,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),I.xp6(3),I.Q6J("ngModel",n.applicationMail.message[a].text),I.xp6(3),I.Q6J("ngIf",n.showTags),I.xp6(1),I.Q6J("@tagsOpenClose",n.showTags?"open":"closed")}}function oo(t,e){1&t&&(I.TgZ(0,"mat-tab",14),I.ALo(1,"translate"),I.ALo(2,"uppercase"),I.YNc(3,no,23,15,"ng-template",37),I.qZA()),2&t&&I.s9C("label",I.lcZ(1,1,I.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+e.$implicit)))}function ro(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",11),I.TgZ(1,"div"),I.TgZ(2,"app-alert",12),I._uU(3),I.ALo(4,"translate"),I.qZA(),I.qZA(),I.TgZ(5,"mat-tab-group",13),I.TgZ(6,"mat-tab",14),I.ALo(7,"translate"),I.TgZ(8,"div",15),I.TgZ(9,"span",16),I._uU(10),I.ALo(11,"translate"),I.qZA(),I.TgZ(12,"div",17),I.TgZ(13,"mat-form-field",18),I.TgZ(14,"mat-select",19),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().applicationMail.mailType=t})("selectionChange",function(){return I.CHM(i),I.oxw().notificationExist()}),I.TgZ(15,"mat-option",20),I._uU(16),I.ALo(17,"translate"),I.qZA(),I.TgZ(18,"mat-option",21),I._uU(19),I.ALo(20,"translate"),I.qZA(),I.TgZ(21,"mat-option",22),I._uU(22),I.ALo(23,"translate"),I.qZA(),I.TgZ(24,"mat-option",23),I._uU(25),I.ALo(26,"translate"),I.qZA(),I.TgZ(27,"mat-option",24),I._uU(28),I.ALo(29,"translate"),I.qZA(),I.TgZ(30,"mat-option",25),I._uU(31),I.ALo(32,"translate"),I.qZA(),I.TgZ(33,"mat-option",26),I._uU(34),I.ALo(35,"translate"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(36,"div",27),I._UZ(37,"span",28),I.YNc(38,Wn,3,3,"div",29),I.YNc(39,Kn,3,3,"div",29),I.qZA(),I.TgZ(40,"div",15),I.TgZ(41,"span",30),I._uU(42),I.ALo(43,"translate"),I.qZA(),I.TgZ(44,"div",17),I.TgZ(45,"mat-form-field",18),I.TgZ(46,"mat-select",19),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().applicationMail.appType=t})("selectionChange",function(){return I.CHM(i),I.oxw().notificationExist()}),I.TgZ(47,"mat-option",31),I._uU(48),I.ALo(49,"translate"),I.qZA(),I.YNc(50,to,3,3,"mat-option",32),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(51,"div",27),I._UZ(52,"span",28),I.YNc(53,eo,3,3,"div",29),I.YNc(54,io,3,3,"div",29),I.qZA(),I.TgZ(55,"div",15),I.TgZ(56,"span",30),I._uU(57),I.ALo(58,"translate"),I.qZA(),I.TgZ(59,"div",17),I.TgZ(60,"mat-checkbox",33),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().applicationMail.send=t}),I.qZA(),I.qZA(),I.qZA(),I.TgZ(61,"div",27),I._UZ(62,"span",28),I.TgZ(63,"div",34),I._uU(64),I.ALo(65,"translate"),I.qZA(),I.qZA(),I.qZA(),I.YNc(66,oo,4,5,"mat-tab",35),I.qZA(),I.qZA()}if(2&t){var a=I.oxw();I.xp6(1),I.Q6J("@openClose",a.invalidNotification?"open":"closed"),I.xp6(2),I.Oqu(I.lcZ(4,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),I.xp6(3),I.s9C("label",I.lcZ(7,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),I.xp6(4),I.hij("",I.lcZ(11,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),I.xp6(4),I.Q6J("ngModel",a.applicationMail.mailType)("disabled",!a.data.createMailNotification),I.xp6(2),I.hij(" ",I.lcZ(17,32,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),I.xp6(3),I.hij(" ",I.lcZ(20,34,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),I.xp6(3),I.hij(" ",I.lcZ(23,36,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),I.xp6(3),I.hij(" ",I.lcZ(26,38,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),I.xp6(3),I.hij(" ",I.lcZ(29,40,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),I.xp6(3),I.hij(" ",I.lcZ(32,42,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),I.xp6(3),I.hij(" ",I.lcZ(35,44,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),I.xp6(4),I.Q6J("ngIf",!a.data.createMailNotification),I.xp6(1),I.Q6J("ngIf",a.data.createMailNotification),I.xp6(3),I.hij("",I.lcZ(43,46,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),I.xp6(4),I.Q6J("ngModel",a.applicationMail.appType)("disabled",!a.data.createMailNotification),I.xp6(2),I.hij(" ",I.lcZ(49,48,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),I.xp6(2),I.Q6J("ngIf","USER_INVITE"!==a.applicationMail.mailType),I.xp6(3),I.Q6J("ngIf",!a.data.createMailNotification),I.xp6(1),I.Q6J("ngIf",a.data.createMailNotification),I.xp6(3),I.hij("",I.lcZ(58,50,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),I.xp6(3),I.Q6J("ngModel",a.applicationMail.send),I.xp6(4),I.hij(" ",I.lcZ(65,52,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),I.xp6(2),I.Q6J("ngForOf",a.languages)}}function so(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",51),I.NdJ("click",function(){return I.CHM(i),I.oxw().create()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var a=I.oxw();I.Q6J("disabled",a.invalidNotification||a.loading),I.xp6(1),I.hij(" ",I.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function lo(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",51),I.NdJ("click",function(){return I.CHM(i),I.oxw().save()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var a=I.oxw();I.Q6J("disabled",a.loading||!a.editAuth),I.xp6(1),I.hij(" ",I.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}var uo=function(){var t=function(){function t(e,i,a,o,r,s){n(this,t),this.dialogRef=e,this.registrarService=i,this.data=a,this.authResolver=o,this.groupsService=r,this.store=s,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"]}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.languages=this.store.get("supportedLanguages"),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(function(e){t.editAuth=t.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"}]))}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"create",value:function(){var t=this;this.notificationExist(),this.invalidNotification||(this.loading=!0,this.data.groupId?this.registrarService.addApplicationMailForGroup({group:this.data.groupId,mail:this.applicationMail}).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1}):this.registrarService.addApplicationMailForVo({vo:this.data.voId,mail:this.applicationMail}).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1}))}},{key:"save",value:function(){var t=this;this.loading=!0,this.registrarService.updateApplicationMail({mail:this.applicationMail}).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"addTag",value:function(t,e,i,a){var n,o=(n=this.isTextFocused?e:t).selectionStart;this.isTextFocused?this.applicationMail.message[i].text=this.applicationMail.message[i].text.substring(0,o)+a+this.applicationMail.message[i].text.substring(o):this.applicationMail.message[i].subject=this.applicationMail.message[i].subject.substring(0,o)+a+this.applicationMail.message[i].subject.substring(o),n.focus()}},{key:"notificationExist",value:function(){var t,i=e(this.data.applicationMails);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a.mailType===this.applicationMail.mailType&&a.appType===this.applicationMail.appType)return void(this.invalidNotification=!0)}}catch(n){i.e(n)}finally{i.f()}this.invalidNotification=!1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(d.tk),I.Y36(v.WI),I.Y36(h.x4),I.Y36(d.ff),I.Y36(h.d6))},t.\u0275cmp=I.Xpm({type:t,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"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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","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","EXTENSION"],["matTabContent",""],[1,"d-flex","w-100"],[1,"pr-2","w-100"],[1,"pt-2"],["mat-stroked-button","",1,"right-button",3,"click"],[1,"font-weight-bold","pr-2"],["matInput","",3,"ngModel","focus","ngModelChange"],["Input",""],[1,"font-weight-bold"],["matInput","","rows","17",3,"ngModel","focus","ngModelChange"],["Textarea",""],["class","ml-3 mr-3","vertical","true",4,"ngIf"],[3,"addedTag"],["vertical","true",1,"ml-3","mr-3"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"div",0),I.YNc(2,Hn,4,3,"div",1),I.YNc(3,Xn,3,3,"ng-template",null,2,I.W1O),I.YNc(5,$n,1,0,"mat-spinner",3),I.YNc(6,ro,67,54,"div",4),I.TgZ(7,"div",5),I.TgZ(8,"button",6),I.NdJ("click",function(){return e.cancel()}),I._uU(9),I.ALo(10,"translate"),I.qZA(),I.YNc(11,so,3,4,"button",7),I.TgZ(12,"div",8),I.ALo(13,"translate"),I.YNc(14,lo,3,4,"button",7),I.qZA(),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.MAs(4);I.Gre("",e.theme," h-100"),I.xp6(2),I.Q6J("ngIf",e.data.createMailNotification)("ngIfElse",i),I.xp6(3),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),I.xp6(2),I.Q6J("ngIf",e.data.createMailNotification),I.xp6(1),I.s9C("matTooltip",I.lcZ(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),I.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.editAuth),I.xp6(2),I.Q6J("ngIf",!e.data.createMailNotification)}},directives:[s.O5,v.H8,N.lW,_.gM,v.uh,Z.$g,v.xY,mt.w,wi.SP,wi.uX,Ze.KE,be.gD,Ie.JJ,Ie.On,Se.ey,Ne.oG,s.sg,wi.Vc,_e.Nt,Ie.Fj,jn,ri.d],pipes:[O.X$,s.gd],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}"],data:{animation:[p.es,p.BQ]}}),t}(),co=o(19386);function po(t,e){1&t&&I._UZ(0,"mat-spinner",9)}var go=function(){var t=function(){function t(e,i,a,o,r,s){n(this,t),this.dialogRef=e,this.voService=i,this.groupService=a,this.translateService=o,this.registrarService=r,this.data=s,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=function(t){return t.name}}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(function(e){t.fakeGroup={id:-1,name:e,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},t.selectedGroup=t.fakeGroup,t.voService.getAllVos().subscribe(function(e){t.vos=e,t.vos=e.sort(function(t,e){return t.name>e.name?1:t.name=0}).sort(function(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())})}},{key:"filterResources",value:function(t){if(null==t)return this.resources;var e=t.toLowerCase();return this.resources.filter(function(t){return 0===t.facility.name.toLowerCase().indexOf(e)}).sort(function(t,e){return t.name.toLowerCase().localeCompare(e.name.toLowerCase())})}},{key:"setResource",value:function(t){var e=this;this.processing=!0,this.selectedResource=t,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(function(t){e.services=t,e.processing=!1},function(){return e.processing=!1}),this.description=this.selectedResource.description}},{key:"loadGroups",value:function(){var t=this;this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(function(e){t.groups=e,t.groupManager.getAllMemberGroups(t.data.memberId).subscribe(function(e){t.membersGroupsId=new Set(e.map(function(t){return t.id})),t.groups.forEach(function(e){t.authResolver.isAuthorized("addMember_Group_Member_policy",[e])||t.membersGroupsId.add(e.id)}),t.processing=!1},function(){return t.processing=!1})})}},{key:"onFinish",value:function(){var t=this;this.processing=!0,this.groupManager.addMembers(this.selectedGroups.selected[0].id,[this.data.memberId]).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.ADD_MEMBER_TO_RESOURCE.SUCCESS")),t.dialogRef.close(!0)},function(){return t.processing=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(d.xk),I.Y36(d.ff),I.Y36(h.V6),I.Y36(O.sK),I.Y36(h.x4))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-add-member-to-resource-dialog"]],decls:30,vars:26,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],["completed","false"],["matStepLabel",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","matStepperNext","",1,"ml-2",3,"disabled","click"],["alert_type","warn",4,"ngIf"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto",3,"click"],[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",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","groupsToDisable","groups","displayedColumns","selection"],["alert_type","warn"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"div",1),I.TgZ(5,"mat-horizontal-stepper",2,3),I.TgZ(7,"mat-step",4),I.YNc(8,Qr,2,3,"ng-template",5),I.YNc(9,zr,1,0,"mat-spinner",6),I.YNc(10,Xr,26,22,"div",7),I.TgZ(11,"div",8),I.TgZ(12,"button",9),I.NdJ("click",function(){return e.onCancel()}),I._uU(13),I.ALo(14,"translate"),I.qZA(),I.TgZ(15,"button",10),I.NdJ("click",function(){return e.loadGroups()}),I._uU(16),I.ALo(17,"translate"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(18,"mat-step"),I.YNc(19,$r,2,3,"ng-template",5),I.YNc(20,Wr,1,0,"mat-spinner",6),I.YNc(21,ts,2,8,"div",7),I.YNc(22,es,3,3,"app-alert",11),I.TgZ(23,"div",8),I.TgZ(24,"button",12),I.NdJ("click",function(){return e.selectedGroups.clear()}),I._uU(25),I.ALo(26,"translate"),I.qZA(),I.TgZ(27,"button",10),I.NdJ("click",function(){return e.onFinish()}),I._uU(28),I.ALo(29,"translate"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.Oqu(I.lcZ(3,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),I.xp6(3),I.Q6J("linear",!0),I.xp6(4),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.Oqu(I.lcZ(14,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")),I.xp6(2),I.Q6J("disabled",null===e.selectedResource||e.processing||e.loading),I.xp6(1),I.Oqu(I.lcZ(17,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CONTINUE")),I.xp6(4),I.Q6J("ngIf",e.processing),I.xp6(1),I.Q6J("ngIf",0!==e.groups.length&&!e.processing),I.xp6(1),I.Q6J("ngIf",0===e.groups.length&&!e.processing),I.xp6(3),I.hij(" ",I.lcZ(26,22,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK"),""),I.xp6(2),I.Q6J("disabled",0===e.selectedGroups.selected.length||e.processing),I.xp6(1),I.hij(" ",I.lcZ(29,24,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT"),""))},directives:[v.uh,v.xY,Vr.Vq,Vr.C0,Vr.VY,s.O5,v.H8,N.lW,Vr.Ic,Vr.fd,Z.$g,Ze.KE,_e.Nt,Ie.Fj,Fr.ZL,Ie.JJ,Ie.oH,Fr.XC,s.sg,be.gD,Se.ey,hr.W,mt.w],pipes:[O.X$,s.Ov],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),t}(),as=o(88884);function ns(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"perun-web-apps-refresh-button",6),I.NdJ("refresh",function(){return I.CHM(i),I.oxw().refreshTable()}),I.qZA()}}function os(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",7),I.NdJ("click",function(){return I.CHM(i),I.oxw().addResource()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function rs(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"perun-web-apps-immediate-filter",8),I.NdJ("filter",function(t){return I.CHM(i),I.oxw().applyFilter(t)}),I.qZA()}2&t&&I.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER")}function ss(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"perun-web-apps-resources-list",9),I.NdJ("page",function(t){return I.CHM(i),I.oxw().pageChanged(t)}),I.qZA()}if(2&t){var a=I.oxw();I.Q6J("pageSize",a.pageSize)("filterValue",a.filterValue)("displayedColumns",a.displayedColumns)("routingVo",!0)("disableRouting",!a.routeAuth)("resources",a.resources)}}function ls(t,e){1&t&&I._UZ(0,"mat-spinner",10)}var us=function(){var t=function(){function t(e,i,a,o,r,s){n(this,t),this.dialog=e,this.tableConfigService=i,this.memberManager=a,this.resourceManager=o,this.route=r,this.authResolver=s,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=En.aL}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.memberManager.getMemberById(e.memberId).subscribe(function(e){t.member=e,t.refreshTable()})})}},{key:"addResource",value:function(){var t=this,e=(0,g.kZ)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(is,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(function(e){t.resources=e,t.setAuthRights(),t.loading=!1})}},{key:"setAuthRights",value:function(){var t={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[t]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[t,this.resources[0]]))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.uw),I.Y36(En.dB),I.Y36(d.uq),I.Y36(d.xk),I.Y36(l.gz),I.Y36(h.x4))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-member-resources"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["class","mr-2",3,"placeholder","filter",4,"ngIf"],[3,"pageSize","filterValue","displayedColumns","routingVo","disableRouting","resources","page",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",3,"click"],[1,"mr-2",3,"placeholder","filter"],[3,"pageSize","filterValue","displayedColumns","routingVo","disableRouting","resources","page"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,ns,1,0,"perun-web-apps-refresh-button",1),I.YNc(5,os,3,3,"button",2),I.YNc(6,rs,1,1,"perun-web-apps-immediate-filter",3),I.YNc(7,ss,1,6,"perun-web-apps-resources-list",4),I.qZA(),I.YNc(8,ls,1,0,"mat-spinner",5)),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,6,"MEMBER_DETAIL.RESOURCES.TITLE")),I.xp6(2),I.Q6J("ngIf",!e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading&&e.addAuth),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(1),I.Q6J("ngIf",e.loading))},directives:[s.O5,Zn.t,N.lW,bn.L,as.C,Z.$g],pipes:[O.X$],styles:[""]}),t}(),cs=o(72920),ps=o(76527),ds=o(42473),gs=o(77968),hs=o(22927),ms=o(79472),fs=o(64359),As=o(75374),Is=o(95142),Ts=o(48666);function vs(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",7),I.NdJ("click",function(){return I.CHM(i),I.oxw().onAdd()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function Es(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",8),I.NdJ("click",function(){return I.CHM(i),I.oxw().onRemove()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var a=I.oxw();I.Q6J("disabled",0===a.selection.selected.length),I.xp6(1),I.hij(" ",I.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function Zs(t,e){1&t&&I._UZ(0,"mat-spinner",9)}function bs(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"app-ext-sources-list",10),I.NdJ("page",function(t){return I.CHM(i),I.oxw().pageChanged(t)}),I.qZA()}if(2&t){var a=I.oxw();I.Q6J("pageSize",a.pageSize)("extSources",a.extSources)("displayedColumns",a.displayedColumns)("filterValue",a.filterValue)("selection",a.selection)}}var _s=function(){var t=function(){function t(e,i,a,o,r,s,l,u){var c=this;n(this,t),this.extSourceService=e,this.route=i,this.dialog=a,this.notificator=o,this.tableConfigService=r,this.translate=s,this.authResolver=l,this.groupService=u,this.extSources=[],this.selection=new dn.Ov(!0,[]),this.filterValue="",this.tableId=En.S7,this.displayedColumns=[],this.translate.get("GROUP_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(function(t){return c.successMessage=t})}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(function(e){t.voId=e.voId,t.groupId=e.groupId,t.groupService.getGroupById(t.groupId).subscribe(function(e){t.group=e,t.refreshTable()})})}},{key:"setAuthRights",value:function(){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"]}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.extSourceService.getGroupExtSources(this.groupId).subscribe(function(e){t.extSources=e,t.selection.clear(),t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"onAdd",value:function(){var t=this,e=(0,g.kZ)();e.width="1000px",e.data={voId:this.voId,groupId:this.groupId,extSources:this.extSources,theme:"group-theme"},this.dialog.open(Ko,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"onRemove",value:function(){var t=this,e=(0,g.kZ)();e.width="600px",e.data={voId:this.voId,groupId:this.groupId,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(lr,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.KG),I.Y36(l.gz),I.Y36(v.uw),I.Y36(h.V6),I.Y36(En.dB),I.Y36(O.sK),I.Y36(h.x4),I.Y36(d.ff))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","extSources","displayedColumns","filterValue","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","extSources","displayedColumns","filterValue","selection","page"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"perun-web-apps-refresh-button",1),I.NdJ("refresh",function(){return e.refreshTable()}),I.qZA(),I.YNc(5,vs,3,3,"button",2),I.YNc(6,Es,3,4,"button",3),I.TgZ(7,"perun-web-apps-immediate-filter",4),I.NdJ("filter",function(t){return e.applyFilter(t)}),I.qZA(),I.YNc(8,Zs,1,0,"mat-spinner",5),I.YNc(9,bs,1,5,"app-ext-sources-list",6),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),I.xp6(3),I.Q6J("ngIf",e.addAuth),I.xp6(1),I.Q6J("ngIf",e.removeAuth),I.xp6(1),I.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),I.xp6(1),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[Zn.t,s.O5,bn.L,N.lW,Z.$g,Xo.D],pipes:[O.X$],styles:[""]}),t}();function Ss(t,e){1&t&&I._UZ(0,"th",9)}function Ns(t,e){if(1&t&&(I.TgZ(0,"td",10),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.hij(" ",i,": ")}}function Os(t,e){1&t&&I._UZ(0,"th",9)}function xs(t,e){if(1&t&&(I.TgZ(0,"td",11),I._uU(1),I.qZA()),2&t){var i=e.$implicit,a=I.oxw();I.xp6(1),I.hij(" ",a.statistics.get(i.toLowerCase())," ")}}function Cs(t,e){1&t&&I._UZ(0,"tr",12)}var Ls=function(){var t=function(){function t(){n(this,t),this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}return r(t,[{key:"ngOnInit",value:function(){this.dataSource=new ut.by(this.rowNames)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,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(t,e){1&t&&(I.TgZ(0,"mat-card",0),I.TgZ(1,"mat-card-header"),I.TgZ(2,"mat-card-title"),I.TgZ(3,"h1",1),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(6,"mat-card-content"),I.TgZ(7,"table",2),I.ynx(8,3),I.YNc(9,Ss,1,0,"th",4),I.YNc(10,Ns,2,1,"td",5),I.BQk(),I.ynx(11,6),I.YNc(12,Os,1,0,"th",4),I.YNc(13,xs,2,1,"td",7),I.BQk(),I.YNc(14,Cs,1,0,"tr",8),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.xp6(4),I.Oqu(I.lcZ(5,3,e.title)),I.xp6(3),I.Q6J("dataSource",e.dataSource),I.xp6(7),I.Q6J("matRowDefColumns",e.displayedColumns))},directives:[dt.a8,dt.dk,dt.n5,dt.dn,ut.BZ,ut.w1,ut.fO,ut.Dz,ut.nj,ut.ge,ut.ev,ut.Gk],pipes:[O.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0;display:inline-block;vertical-align:top}"]}),t}();function Rs(t,e){1&t&&I._UZ(0,"mat-spinner",3)}function Ms(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"app-statistics-card",4),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("rowNames",i.rowNames)("statistics",i.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}var Ds=function(){var t=function(){function t(e,i){n(this,t),this.voService=e,this.route=i,this.loading=!1,this.dataSource=new ut.by,this.displayedColumns=["status","count"],this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]])}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.params.subscribe(function(e){t.voId=e.voId,t.dataSource=new ut.by(t.rowNames),t.voService.getVoMembersCountsByStatus(t.voId).subscribe(function(e){t.allMembersCount=0;for(var i=0,a=Object.keys(e);i_policy",[{id:this.voId,beanName:"Vo"}])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(En.dB),I.Y36(d.tk),I.Y36(h.x4),I.Y36(v.uw),I.Y36(l.gz))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-application-form-manage-groups"]],viewQuery:function(t,e){var i;(1&t&&I.Gf(Js,5),2&t)&&(I.iGM(i=I.CRH())&&(e.list=i.first))},decls:17,vars:22,consts:[[1,"page-subtitle"],[3,"alert_type"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"selection","pageSize","displayedColumns","disableRouting","filter","authType","groups","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"selection","pageSize","displayedColumns","disableRouting","filter","authType","groups","page"],["list",""]],template:function(t,e){1&t&&(I.TgZ(0,"h1",0),I._uU(1),I.ALo(2,"translate"),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"app-alert",1),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.TgZ(7,"perun-web-apps-refresh-button",2),I.NdJ("refresh",function(){return e.loadGroups()}),I.qZA(),I.YNc(8,Vs,3,3,"button",3),I.TgZ(9,"span",4),I.ALo(10,"translate"),I.TgZ(11,"button",5),I.NdJ("click",function(){return e.removeGroup()}),I._uU(12),I.ALo(13,"translate"),I.qZA(),I.qZA(),I.TgZ(14,"perun-web-apps-immediate-filter",6),I.NdJ("filter",function(t){return e.filterValue=t}),I.qZA(),I.YNc(15,Fs,1,0,"mat-spinner",7),I.YNc(16,zs,2,8,"perun-web-apps-groups-list",8)),2&t&&(I.xp6(1),I.AsE(" ",I.lcZ(2,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",I.lcZ(3,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),I.xp6(3),I.Q6J("alert_type","info"),I.xp6(1),I.hij(" ",I.lcZ(6,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),I.xp6(3),I.Q6J("ngIf",e.addAuth),I.xp6(1),I.s9C("matTooltip",I.lcZ(10,18,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),I.Q6J("matTooltipDisabled",void 0===e.list||void 0!==e.list&&e.list.removeAuth),I.xp6(2),I.Q6J("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),I.xp6(1),I.hij(" ",I.lcZ(13,20,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," "),I.xp6(2),I.Q6J("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),I.xp6(1),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[mt.w,Zn.t,s.O5,_.gM,N.lW,bn.L,Z.$g,hr.W],pipes:[O.X$],styles:[""]}),t}(),js=o(53134),Hs=o(47701),Xs=o(90611),$s=o(44689),Ws=o(85250),Ks=o(4252);function tl(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.Oqu(I.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_IDENTITY"))}function el(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function il(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function al(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL_INVALID")))}function nl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function ol(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function rl(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.Oqu(I.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function sl(t,e){if(1&t&&(I.TgZ(0,"mat-option",37),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i),I.xp6(1),I.hij(" ",i," ")}}function ll(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function ul(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_EXISTS")))}function cl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_FORMAT")))}function pl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_LONG")))}function dl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_SHORT")))}function gl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.PWD_WEAK")))}function hl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.PWD_SHORT")))}function ml(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function fl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.PWD_DONT_MATCH")))}function Al(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.Oqu(I.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATE_USERS"))}function Il(t,e){if(1&t&&(I.TgZ(0,"span",43),I._uU(1),I.qZA()),2&t){var i=I.oxw().$implicit;I.xp6(1),I.hij("#",i.id,"")}}function Tl(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"mat-list-item"),I.TgZ(1,"p",38),I._uU(2),I.ALo(3,"userFullName"),I.YNc(4,Il,2,1,"span",39),I.TgZ(5,"span",40),I.ALo(6,"translate"),I.TgZ(7,"button",41),I.NdJ("click",function(){var t=I.CHM(i).$implicit;return I.oxw(2).removeUser(t)}),I.TgZ(8,"mat-icon",42),I._uU(9,"close"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.qZA()}if(2&t){var a=e.$implicit,n=I.oxw(2);I.xp6(2),I.hij("",I.lcZ(3,5,a.user)," "),I.xp6(2),I.Q6J("ngIf",a.id),I.xp6(1),I.Q6J("matTooltipDisabled",n.assignedMembers.length>1)("matTooltip",I.lcZ(6,7,"DIALOGS.CREATE_SERVICE_MEMBER.MINIMAL_USERS")),I.xp6(2),I.Q6J("disabled",1===n.assignedMembers.length)}}function vl(t,e){1&t&&I._UZ(0,"mat-spinner",44)}var El=function(){return["checkbox","id","fullName"]};function Zl(t,e){if(1&t&&I._UZ(0,"perun-web-apps-members-list",47),2&t){var i=I.oxw(3);I.Q6J("disableRouting",!0)("displayedColumns",I.DdM(5,El))("members",i.members)("pageSize",i.pageSize)("selection",i.selection)}}function bl(t,e){1&t&&(I.TgZ(0,"app-alert",48),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.Q6J("alert_type","info"),I.xp6(1),I.hij(" ",I.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")," "))}function _l(t,e){if(1&t&&(I.TgZ(0,"div"),I.YNc(1,Zl,1,6,"perun-web-apps-members-list",45),I.YNc(2,bl,3,4,"app-alert",46),I.qZA()),2&t){var i=I.oxw(2);I.xp6(1),I.Q6J("ngIf",i.firstSearchDone),I.xp6(1),I.Q6J("ngIf",!i.firstSearchDone)}}function Sl(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",4),I.TgZ(1,"mat-stepper",5),I.TgZ(2,"mat-step",6),I.TgZ(3,"form",7),I.YNc(4,tl,2,3,"ng-template",8),I.TgZ(5,"div",9),I.TgZ(6,"mat-form-field"),I.TgZ(7,"mat-label"),I._uU(8),I.ALo(9,"translate"),I.qZA(),I._UZ(10,"input",10),I.YNc(11,el,3,3,"mat-error",11),I.qZA(),I.TgZ(12,"mat-form-field"),I.TgZ(13,"mat-label"),I._uU(14),I.ALo(15,"translate"),I.qZA(),I._UZ(16,"input",12),I.YNc(17,il,3,3,"mat-error",11),I.YNc(18,al,3,3,"mat-error",11),I.qZA(),I.TgZ(19,"mat-form-field"),I.TgZ(20,"mat-label"),I._uU(21),I.ALo(22,"translate"),I.qZA(),I._UZ(23,"input",13),I.YNc(24,nl,3,3,"mat-error",11),I.qZA(),I.TgZ(25,"mat-form-field"),I.TgZ(26,"mat-label"),I._uU(27),I.ALo(28,"translate"),I.qZA(),I._UZ(29,"input",14),I.YNc(30,ol,3,3,"mat-error",11),I.qZA(),I.qZA(),I.qZA(),I.TgZ(31,"div",15),I.TgZ(32,"button",16),I.NdJ("click",function(){return I.CHM(i),I.oxw().onCancel()}),I._uU(33),I.ALo(34,"translate"),I.qZA(),I.TgZ(35,"button",17),I._uU(36),I.ALo(37,"translate"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(38,"mat-step",6),I.TgZ(39,"form",7),I.YNc(40,rl,2,3,"ng-template",8),I.TgZ(41,"div",9),I.TgZ(42,"mat-form-field"),I.TgZ(43,"mat-label"),I._uU(44),I.ALo(45,"translate"),I.qZA(),I.TgZ(46,"mat-select",18),I.NdJ("valueChange",function(t){return I.CHM(i),I.oxw().onNamespaceChanged(t)}),I.YNc(47,sl,2,2,"mat-option",19),I.qZA(),I.qZA(),I.TgZ(48,"mat-form-field",20),I.ALo(49,"translate"),I.TgZ(50,"mat-label"),I._uU(51),I.ALo(52,"translate"),I.qZA(),I._UZ(53,"input",21),I.YNc(54,ll,3,3,"mat-error",11),I.YNc(55,ul,3,3,"mat-error",11),I.YNc(56,cl,3,3,"mat-error",11),I.YNc(57,pl,3,3,"mat-error",11),I.YNc(58,dl,3,3,"mat-error",11),I.qZA(),I.TgZ(59,"mat-radio-group",22),I.NdJ("ngModelChange",function(){return I.CHM(i),I.oxw().passwordOptionChanged()}),I.ALo(60,"translate"),I.TgZ(61,"mat-radio-button",23),I._uU(62),I.ALo(63,"translate"),I.qZA(),I.TgZ(64,"mat-radio-button",23),I._uU(65),I.ALo(66,"translate"),I.qZA(),I.qZA(),I.TgZ(67,"div",9),I.TgZ(68,"mat-form-field",24),I.NdJ("click",function(){return I.CHM(i),I.oxw().secondFormGroup.get("generatePasswordCtrl").setValue(!1)}),I.TgZ(69,"mat-label"),I._uU(70),I.ALo(71,"translate"),I.qZA(),I._UZ(72,"input",25),I.YNc(73,gl,3,3,"mat-error",11),I.YNc(74,hl,3,3,"mat-error",11),I.qZA(),I.TgZ(75,"mat-form-field",24),I.NdJ("click",function(){return I.CHM(i),I.oxw().secondFormGroup.get("generatePasswordCtrl").setValue(!1)}),I.TgZ(76,"mat-label"),I._uU(77),I.ALo(78,"translate"),I.qZA(),I._UZ(79,"input",26),I.YNc(80,ml,3,3,"mat-error",11),I.YNc(81,fl,3,3,"mat-error",11),I.qZA(),I.TgZ(82,"p",27),I._uU(83),I.ALo(84,"translate"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(85,"div",15),I.TgZ(86,"button",16),I.NdJ("click",function(){return I.CHM(i),I.oxw().onCancel()}),I._uU(87),I.ALo(88,"translate"),I.qZA(),I.TgZ(89,"button",28),I._uU(90),I.ALo(91,"translate"),I.qZA(),I.TgZ(92,"button",29),I._uU(93),I.ALo(94,"translate"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(95,"mat-step"),I.YNc(96,Al,2,3,"ng-template",8),I.TgZ(97,"h6"),I._uU(98),I.ALo(99,"translate"),I.qZA(),I.TgZ(100,"mat-list"),I.YNc(101,Tl,10,9,"mat-list-item",30),I.qZA(),I.TgZ(102,"h6",31),I._uU(103),I.ALo(104,"translate"),I.qZA(),I.TgZ(105,"mat-form-field",32),I.TgZ(106,"input",33),I.NdJ("keyup.enter",function(){I.CHM(i);var t=I.oxw();return 0!==t.searchCtrl.value.length&&t.onSearchByString()}),I.ALo(107,"translate"),I.qZA(),I.qZA(),I.TgZ(108,"button",34),I.NdJ("click",function(){return I.CHM(i),I.oxw().onSearchByString()}),I.TgZ(109,"mat-icon"),I._uU(110,"search"),I.qZA(),I.qZA(),I.TgZ(111,"button",35),I.NdJ("click",function(){return I.CHM(i),I.oxw().addUsers()}),I._uU(112),I.ALo(113,"translate"),I.qZA(),I.YNc(114,vl,1,0,"mat-spinner",3),I.YNc(115,_l,3,2,"div",11),I.TgZ(116,"div",15),I.TgZ(117,"button",16),I.NdJ("click",function(){return I.CHM(i),I.oxw().onCancel()}),I._uU(118),I.ALo(119,"translate"),I.qZA(),I.TgZ(120,"button",28),I._uU(121),I.ALo(122,"translate"),I.qZA(),I.TgZ(123,"button",36),I.NdJ("click",function(){return I.CHM(i),I.oxw().onCreate()}),I._uU(124),I.ALo(125,"translate"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.qZA()}if(2&t){var a=I.oxw();I.xp6(1),I.Q6J("linear",!0),I.xp6(1),I.Q6J("stepControl",a.firstFormGroup),I.xp6(1),I.Q6J("formGroup",a.firstFormGroup),I.xp6(5),I.Oqu(I.lcZ(9,66,"DIALOGS.CREATE_SERVICE_MEMBER.NAME")),I.xp6(3),I.Q6J("ngIf",a.firstFormGroup.get("nameCtrl").hasError("required")),I.xp6(3),I.Oqu(I.lcZ(15,68,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL")),I.xp6(3),I.Q6J("ngIf",a.firstFormGroup.get("emailCtrl").hasError("required")),I.xp6(1),I.Q6J("ngIf",a.firstFormGroup.get("emailCtrl").hasError("pattern")),I.xp6(3),I.Oqu(I.lcZ(22,70,"DIALOGS.CREATE_SERVICE_MEMBER.SUBJECT_DN")),I.xp6(2),I.Q6J("required",!!a.firstFormGroup.get("issuerCtrl").value&&0!==a.firstFormGroup.get("issuerCtrl").value.trim().length),I.xp6(1),I.Q6J("ngIf",a.firstFormGroup.get("subjectCtrl").hasError("required")),I.xp6(3),I.Oqu(I.lcZ(28,72,"DIALOGS.CREATE_SERVICE_MEMBER.ISSUER_DN")),I.xp6(2),I.Q6J("required",!!a.firstFormGroup.get("subjectCtrl").value&&0!==a.firstFormGroup.get("subjectCtrl").value.trim().length),I.xp6(1),I.Q6J("ngIf",a.firstFormGroup.get("issuerCtrl").hasError("required")),I.xp6(3),I.hij(" ",I.lcZ(34,74,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),I.xp6(2),I.Q6J("disabled",a.firstFormGroup.invalid||a.firstFormGroup.pending),I.xp6(1),I.hij(" ",I.lcZ(37,76,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," "),I.xp6(2),I.Q6J("stepControl",a.secondFormGroup),I.xp6(1),I.Q6J("formGroup",a.secondFormGroup),I.xp6(5),I.Oqu(I.lcZ(45,78,"DIALOGS.CREATE_SERVICE_MEMBER.NAMESPACE")),I.xp6(3),I.Q6J("ngForOf",a.passwordNamespaces),I.xp6(1),I.s9C("matTooltip",I.lcZ(49,80,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED")),I.Q6J("matTooltipDisabled",a.secondFormGroup.get("loginCtrl").enabled),I.xp6(3),I.Oqu(I.lcZ(52,82,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN")),I.xp6(3),I.Q6J("ngIf",a.secondFormGroup.get("loginCtrl").hasError("required")),I.xp6(1),I.Q6J("ngIf",a.secondFormGroup.get("loginCtrl").hasError("loginExists")),I.xp6(1),I.Q6J("ngIf",a.secondFormGroup.get("loginCtrl").hasError("pattern")&&!a.secondFormGroup.get("loginCtrl").hasError("minlength")),I.xp6(1),I.Q6J("ngIf",a.secondFormGroup.get("loginCtrl").hasError("maxlength")),I.xp6(1),I.Q6J("ngIf",a.secondFormGroup.get("loginCtrl").hasError("minlength")),I.xp6(1),I.s9C("matTooltip",I.lcZ(60,84,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),I.Q6J("matTooltipDisabled","Not selected"!==a.secondFormGroup.get("namespaceCtrl").value),I.xp6(2),I.Q6J("checked",a.secondFormGroup.get("generatePasswordCtrl").value&&a.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!0),I.xp6(1),I.hij(" ",I.lcZ(63,86,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),I.xp6(2),I.Q6J("checked",!a.secondFormGroup.get("generatePasswordCtrl").value&&a.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!1),I.xp6(1),I.hij(" ",I.lcZ(66,88,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),I.xp6(2),I.ekj("input-disabled",a.secondFormGroup.get("generatePasswordCtrl").value),I.xp6(3),I.Oqu(I.lcZ(71,90,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD")),I.xp6(2),I.Q6J("required",!a.secondFormGroup.get("generatePasswordCtrl").value),I.xp6(1),I.Q6J("ngIf",a.secondFormGroup.get("passwordCtrl").hasError("isWeak")&&!a.secondFormGroup.get("passwordCtrl").hasError("minlength")),I.xp6(1),I.Q6J("ngIf",a.secondFormGroup.get("passwordCtrl").hasError("minlength")),I.xp6(3),I.Oqu(I.lcZ(78,92,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_AGAIN")),I.xp6(2),I.Q6J("required",!a.secondFormGroup.get("generatePasswordCtrl").value),I.xp6(1),I.Q6J("ngIf",a.secondFormGroup.get("passwordAgainCtrl").hasError("required")),I.xp6(1),I.Q6J("ngIf",a.secondFormGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),I.xp6(2),I.Oqu(I.lcZ(84,94,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_INFO")),I.xp6(4),I.hij(" ",I.lcZ(88,96,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),I.xp6(3),I.hij(" ",I.lcZ(91,98,"DIALOGS.CREATE_SERVICE_MEMBER.BACK")," "),I.xp6(2),I.Q6J("disabled",a.secondFormGroup.invalid||a.secondFormGroup.pending),I.xp6(1),I.hij(" ",I.lcZ(94,100,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," "),I.xp6(5),I.Oqu(I.lcZ(99,102,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),I.xp6(3),I.Q6J("ngForOf",a.assignedMembers),I.xp6(2),I.Oqu(I.lcZ(104,104,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),I.xp6(3),I.s9C("placeholder",I.lcZ(107,106,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_PLACEHOLDER")),I.Q6J("formControl",a.searchCtrl),I.xp6(2),I.Q6J("disabled",a.loading||0===a.searchCtrl.value.length),I.xp6(3),I.Q6J("disabled",0===a.selection.selected.length),I.xp6(1),I.Oqu(I.lcZ(113,108,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")),I.xp6(2),I.Q6J("ngIf",a.loading),I.xp6(1),I.Q6J("ngIf",!a.loading),I.xp6(3),I.hij(" ",I.lcZ(119,110,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),I.xp6(3),I.hij(" ",I.lcZ(122,112,"DIALOGS.CREATE_SERVICE_MEMBER.BACK")," "),I.xp6(2),I.Q6J("disabled",a.firstFormGroup.invalid||"Not selected"!==a.secondFormGroup.get("namespaceCtrl").value&&a.secondFormGroup.invalid),I.xp6(1),I.Oqu(I.lcZ(125,114,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE"))}}function Nl(t,e){1&t&&I._UZ(0,"mat-spinner",44)}var Ol=function(){var t=function(){function t(e,i,a,o,r,s,l,u,c){var p=this;n(this,t),this.dialogRef=e,this.data=i,this.membersManagerService=a,this.usersManagerService=o,this.notificator=r,this.translate=s,this.store=l,this._formBuilder=u,this.tableConfigService=c,this.passwordNamespaces=[],this.firstSearchDone=!1,this.searchCtrl=new Ie.NI(""),this.members=[],this.selection=new dn.Ov(!0,[]),this.tableId=En.j1,this.assignedMembers=[],this.candidate={},this.successMessageMember="",this.successMessagePwd="",s.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(function(t){return p.successMessageMember=t}),s.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(function(t){return p.successMessagePwd=t})}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.firstFormGroup=this._formBuilder.group({nameCtrl:["",Ie.kI.required],emailCtrl:["",[Ie.kI.required,Ie.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[Ie.kI.pattern("^[a-z][a-z0-9_-]+$"),Ie.kI.maxLength(15),Ie.kI.minLength(2)]],passwordCtrl:["",Ie.kI.compose([g.dN.patternValidator([/\d/,/[A-Z]/,/[a-z]/,/[$&+,:;=?@#|'<>.^*()%!-]/]),Ie.kI.minLength(10)])],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validator:g.dN.passwordMatchValidator}),this.onNamespaceChanged("Not selected"),this.passwordNamespaces=["Not selected"].concat(this.store.get("password_namespace_attributes").map(function(t){return t.split(":")[6].toUpperCase()})),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId);var i=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(i.id).subscribe(function(a){var n,o={},r=e(a);try{for(r.s();!(n=r.n()).done;){var s=n.value;s.voId===t.data.voId&&(o=s)}}catch(l){r.e(l)}finally{r.f()}o.user=i,t.assignedMembers.push(o)})}},{key:"existingLoginValidator",value:function(){var t=this;return function(e){var i=t.secondFormGroup.get("namespaceCtrl").value.toLowerCase();return i="not selected"===i?"mu":i,e.valueChanges.pipe((0,Hs.b)(500),(0,Xs.q)(1),(0,$s.w)(function(){return t.usersManagerService.isLoginAvailable(i,e.value).pipe((0,Jr.U)(function(t){return t?null:{loginExists:!0}}))}))}}},{key:"onCreate",value:function(){var t=this;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,"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&(this.candidate.attributes["urn:perun:user:attribute-def:def:login-namespace:".concat(this.secondFormGroup.get("namespaceCtrl").value.toLowerCase())]=this.secondFormGroup.get("loginCtrl").value);var e=this.firstFormGroup.get("subjectCtrl");e&&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"),this.membersManagerService.createSpecificMember({vo:this.data.voId,specificUserType:"SERVICE",specificUserOwners:this.assignedMembers.map(function(t){return t.user}),candidate:this.candidate}).subscribe(function(e){t.membersManagerService.validateMemberAsync(e.id).subscribe(function(e){t.notificator.showSuccess(t.successMessageMember),"Not selected"!==t.secondFormGroup.get("namespaceCtrl").value?t.setPassword(e,t.secondFormGroup.get("generatePasswordCtrl").value):(t.dialogRef.close(!0),t.processing=!1)},function(){return t.processing=!1})},function(){return t.processing=!1})}},{key:"setPassword",value:function(t,e){var i=this,a=this.secondFormGroup.get("loginCtrl").value,n=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),o=this.secondFormGroup.get("passwordCtrl").value;e?this.usersManagerService.reserveRandomPassword(t.userId,n).subscribe(function(){i.usersManagerService.validatePasswordForUser(t.userId,n).subscribe(function(){i.validateMember(t.id)},function(){i.processing=!1,i.dialogRef.close(!0)})},function(){i.processing=!1,i.dialogRef.close(!0)}):this.usersManagerService.reservePasswordForLogin(a,n,o).subscribe(function(){i.usersManagerService.validatePasswordForLogin(a,n).subscribe(function(){i.validateMember(t.id)},function(){i.processing=!1,i.dialogRef.close(!0)})},function(){i.processing=!1,i.dialogRef.close(!0)})}},{key:"validateMember",value:function(t){var e=this;this.membersManagerService.validateMemberAsync(t).subscribe(function(){e.notificator.showSuccess(e.successMessagePwd),e.dialogRef.close(!0),e.processing=!1},function(){e.processing=!1,e.dialogRef.close(!0)})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSearchByString",value:function(){var t=this;this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.voId,[null],this.searchCtrl.value).subscribe(function(e){t.members=e.filter(function(t){return!t.user.specificUser}),t.firstSearchDone=!0,t.loading=!1})}},{key:"addUsers",value:function(){var t=this,e=this.assignedMembers.map(function(t){return t.id});this.selection.selected.forEach(function(i){e.includes(i.id)||t.assignedMembers.push(i)}),this.selection.clear()}},{key:"removeUser",value:function(t){this.assignedMembers=this.assignedMembers.filter(function(e){return e.id!==t.id})}},{key:"onNamespaceChanged",value:function(t){var e=this.secondFormGroup.get("loginCtrl"),i=this.secondFormGroup.get("passwordCtrl"),a=this.secondFormGroup.get("passwordAgainCtrl"),n=this.secondFormGroup.get("generatePasswordCtrl");if("Not selected"!==t){var o=[Ie.kI.required,Ie.kI.pattern("^[a-z][a-z0-9_-]+$"),Ie.kI.maxLength(15),Ie.kI.minLength(2)];(0,g.mH)(e,o,[this.existingLoginValidator()]),(0,g.mH)(n,[]),this.passwordOptionChanged()}else e.disable(),e.setValue(""),i.disable(),i.setValue(""),a.disable(),a.setValue(""),n.disable(),n.dirty||n.setValue(!0)}},{key:"passwordOptionChanged",value:function(){var t=this.secondFormGroup.get("passwordCtrl"),e=this.secondFormGroup.get("passwordAgainCtrl");if(this.secondFormGroup.get("generatePasswordCtrl").value)t.disable(),t.setValue(""),e.disable(),e.setValue("");else{var i=[Ie.kI.required,g.dN.patternValidator([/\d/,/[A-Z]/,/[a-z]/,/[$&+,:;=?@#|'<>.^*()%!-]/]),Ie.kI.minLength(10)];(0,g.mH)(t,i),(0,g.mH)(e,[])}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(d.uq),I.Y36(d.Fv),I.Y36(h.V6),I.Y36(O.sK),I.Y36(h.d6),I.Y36(Ie.qu),I.Y36(En.dB))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-create-service-member-dialog"]],decls:6,vars:5,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-content","",1,"dialog-container"],[3,"linear"],[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"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["color","accent","mat-flat-button","","matStepperNext","",1,"ml-auto",3,"disabled"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltipDisabled","matTooltip"],["formControlName","loginCtrl","matInput","","required",""],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[3,"click"],["formControlName","passwordCtrl","matInput","","type","password",3,"required"],["formControlName","passwordAgainCtrl","matInput","","type","password",3,"required"],[1,"white-space-pre"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto"],["color","accent","mat-flat-button","","matStepperNext","",1,"ml-2",3,"disabled"],[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"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[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","pageSize","selection",4,"ngIf"],[3,"alert_type",4,"ngIf"],[3,"disableRouting","displayedColumns","members","pageSize","selection"],[3,"alert_type"]],template:function(t,e){1&t&&(I.TgZ(0,"div",0),I.TgZ(1,"h1",1),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,Sl,126,116,"div",2),I.YNc(5,Nl,1,0,"mat-spinner",3),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,3,"DIALOGS.CREATE_SERVICE_MEMBER.TITLE")),I.xp6(2),I.Q6J("ngIf",!e.processing),I.xp6(1),I.Q6J("ngIf",e.processing))},directives:[s.O5,v.xY,Vr.Vq,Vr.C0,Ie._Y,Ie.JL,Ie.sg,Vr.VY,Ze.KE,Ze.hX,Ie.Fj,_e.Nt,Ie.JJ,Ie.u,Ie.Q7,v.H8,N.lW,Vr.Ic,be.gD,s.sg,_.gM,Te.VQ,Te.U0,Vr.fd,Ws.i$,Ie.oH,b.Hw,Ze.TO,Se.ey,Ws.Tg,Z.$g,Ks.O,mt.w],pipes:[O.X$,Ut.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}"]}),t}(),xl=o(4374);function Cl(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",7),I.NdJ("click",function(){return I.CHM(i),I.oxw().createServiceMember()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.CREATE"),"\n"))}function Ll(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",8),I.NdJ("click",function(){return I.CHM(i),I.oxw().onRemoveMembers()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var a=I.oxw();I.Q6J("disabled",a.selection.isEmpty()),I.xp6(1),I.hij(" ",I.lcZ(2,2,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.DELETE"),"\n")}}function Rl(t,e){1&t&&I._UZ(0,"mat-spinner",9)}var Ml=function(){return["checkbox","id","type","fullName","status"]};function Dl(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"perun-web-apps-members-list",10),I.NdJ("page",function(t){return I.CHM(i),I.oxw().pageChanged(t)}),I.qZA()}if(2&t){var a=I.oxw();I.Q6J("displayedColumns",I.DdM(5,Ml))("filter",a.searchString)("members",a.members)("pageSize",a.pageSize)("selection",a.selection)}}var yl,Ul,ql=[{path:"",component:u.Y},{path:":voId",component:lt,children:[{path:"",component:W,data:{animation:"VoOverviewPage"}},{path:"attributes",component:ge,data:{animation:"VoAttributesPage"}},{path:"groups",component:K.G,data:{animation:"VoGroupsPage"}},{path:"members",component:tt.y,data:{animation:"VoMembersPage"}},{path:"resources",component:ue,children:[{path:"",component:un,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:cn.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:pn.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Cn,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:ce.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:Di,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:Ts.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:(yl=function(){function t(e,i,a,o,r,s){n(this,t),this.membersManager=e,this.route=i,this.dialog=a,this.authResolver=o,this.tableConfigService=r,this.authzService=s,this.members=[],this.selection=new dn.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=En._c}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.voId=e.voId,t.refresh()}),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[{beanName:"",id:this.voId}])}},{key:"createServiceMember",value:function(){var t=this,e=(0,g.kZ)();e.width="750px",e.data={voId:this.voId},this.dialog.open(Ol,e).afterClosed().subscribe(function(e){e&&t.refresh()})}},{key:"onRemoveMembers",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(xl.X,e).afterClosed().subscribe(function(e){e&&(t.refresh(),t.selection.clear())})}},{key:"applyFilter",value:function(t){this.searchString=t}},{key:"refresh",value:function(){var t=this;this.loading=!0,this.membersManager.findCompleteRichMembersForVo(this.voId,[null],"(Service)").subscribe(function(e){t.members=e,t.loading=!1})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}(),yl.\u0275fac=function(t){return new(t||yl)(I.Y36(d.uq),I.Y36(l.gz),I.Y36(v.uw),I.Y36(h.x4),I.Y36(En.dB),I.Y36(h.x4))},yl.\u0275cmp=I.Xpm({type:yl,selectors:[["app-vo-settings-service-members"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","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,"displayedColumns","filter","members","pageSize","selection","page",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filter","members","pageSize","selection","page"]],template:function(t,e){1&t&&(I.TgZ(0,"h1",0),I._uU(1),I.ALo(2,"translate"),I.qZA(),I.TgZ(3,"perun-web-apps-refresh-button",1),I.NdJ("refresh",function(){return e.refresh()}),I.qZA(),I.YNc(4,Cl,3,3,"button",2),I.YNc(5,Ll,3,4,"button",3),I.TgZ(6,"perun-web-apps-immediate-filter",4),I.NdJ("filter",function(t){return e.applyFilter(t)}),I.qZA(),I.YNc(7,Rl,1,0,"mat-spinner",5),I.YNc(8,Dl,1,6,"perun-web-apps-members-list",6)),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,6,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.TITLE")),I.xp6(3),I.Q6J("ngIf",!e.loading),I.xp6(1),I.Q6J("ngIf",e.removeAuth),I.xp6(1),I.Q6J("placeholder","VO_DETAIL.SETTINGS.SERVICE_MEMBERS.FILTER"),I.xp6(1),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[Zn.t,s.O5,bn.L,N.lW,Z.$g,Ks.O],pipes:[O.X$],styles:[""]}),yl),data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:Ds,data:{animation:"VoStatisticsPage"}},{path:"settings",component:pe,children:[{path:"",component:fe,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:Ye,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:Qe,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:$i.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:Ba,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:Bs},{path:"notifications",component:Po,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:gr,data:{animation:"VoSettingsExtSourcesPage"}}]}]},{path:":voId/members/:memberId",component:j,children:[{path:"",component:ee,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:ln,data:{animation:"MemberAttributesPage"}},{path:"groups",component:ie.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:kr,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:Di,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:us,data:{animation:"MemberResourcesPage"}}]},{path:":voId/groups/:groupId",component:k,children:[{path:"",component:se,data:{animation:"GroupOverviewPage"}},{path:"members",component:yi.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:le.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:Je.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:Ui.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:Bi,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:qs,data:{animation:"GroupStatisticsPage"}},{path:"settings",component:qi,children:[{path:"",component:Xi,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:Rn,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:Dn,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:Go.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:Ba},{path:"notifications",component:Ho,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:Rr,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:_s,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:Di,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:cs.b,children:[{path:"",component:ps.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:ds.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:As.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:ms.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:Is.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:js.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:gs.t,children:[{path:"",component:hs.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:fs.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}],wl=function(){var t=function t(){n(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=I.oAB({type:t}),t.\u0275inj=I.cJS({imports:[[l.Bz.forChild(ql)],l.Bz]}),t}(),Pl=o(28780),Gl=o(22727),kl=o(22280),Yl=((Ul=function t(){n(this,t)}).\u0275fac=function(t){return new(t||Ul)},Ul.\u0275mod=I.oAB({type:Ul}),Ul.\u0275inj=I.cJS({imports:[[s.ez,wl,Pl.m,Gl.r,Nr.ez,kl.d4,g.Je]]}),Ul)}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/512-es2015.a8526fc624109da8878b.js b/dist/apps/admin-gui/512-es2015.a8526fc624109da8878b.js deleted file mode 100644 index 701105258..000000000 --- a/dist/apps/admin-gui/512-es2015.a8526fc624109da8878b.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[512],{72512:function(t,e,i){"use strict";i.r(e),i.d(e,{VosModule:function(){return ll}});var o=i(61511),a=i(57629),s=i(17249),n=i(75585),r=i(17),l=i(33642),c=i(27613),u=i(88426),p=i(67004),d=i(81954),g=i(43491),h=i(31572),m=i(48958),A=i(84608),T=i(66297),I=i(67806),f=i(43691),E=i(36922),Z=i(21575),b=i(15980),_=i(48160),S=i(44385),N=i(52984),v=i(51392);function O(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function x(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",13),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).editGroup()}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function L(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",14),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).deleteGroup()}),h.TgZ(1,"mat-icon"),h._uU(2,"delete_forever"),h.qZA(),h.qZA()}}function C(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",17),h.NdJ("click",function(){return h.CHM(t),h.oxw(3).onSyncDetail()}),h.ALo(1,"groupSyncIcon"),h.TgZ(2,"mat-icon"),h.ALo(3,"groupSyncIconColor"),h._uU(4),h.ALo(5,"groupSyncIcon"),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(3);h.Q6J("disabled","sync_disabled"===h.lcZ(1,5,t.group)),h.xp6(2),h.Tol(h.lcZ(3,7,t.group)),h.xp6(2),h.hij(" ",h.lcZ(5,9,t.group)," ")}}function R(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"span",15),h.ALo(4,"translate"),h.ALo(5,"groupSyncToolTip"),h.YNc(6,C,6,11,"button",16),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.hij(" , ",h.lcZ(2,4,"GROUP_DETAIL.SYNCHRONIZATION"),": "),h.xp6(2),h.Q6J("matTooltipPosition","above")("matTooltip",h.lcZ(4,6,h.lcZ(5,8,t.group))),h.xp6(3),h.Q6J("ngIf",t.syncAuth)}}const D=function(){return{color:"black"}},M=function(t,e){return["/organizations",t,"groups",e]},U=function(t){return["/organizations",t]};function q(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",4),h._UZ(2,"mat-icon",5),h.ALo(3,"translate"),h.TgZ(4,"div",6),h.TgZ(5,"div",7),h.TgZ(6,"a",8),h._uU(7),h.qZA(),h.TgZ(8,"span",9),h._uU(9),h.qZA(),h.YNc(10,x,3,0,"button",10),h.YNc(11,L,3,0,"button",11),h.qZA(),h.TgZ(12,"div"),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"span",12),h._uU(16),h.ALo(17,"translate"),h.ALo(18,"translate"),h.TgZ(19,"a",8),h._uU(20),h.qZA(),h._uU(21),h.ALo(22,"translate"),h.YNc(23,R,7,10,"span",2),h.qZA(),h.qZA(),h.qZA(),h._UZ(24,"app-animated-router-outlet"),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.s9C("matTooltip",h.lcZ(3,16,"GROUP_DETAIL.ENTITY")),h.Q6J("ngStyle",h.DdM(26,D)),h.xp6(4),h.Q6J("routerLink",h.WLB(27,M,t.vo.id,t.group.id)),h.xp6(1),h.hij(" ",t.group.shortName," "),h.xp6(2),h.hij(" \xa0#",t.group.id," "),h.xp6(1),h.Q6J("ngIf","members"!==t.group.name&&t.editAuth),h.xp6(1),h.Q6J("ngIf","members"!==t.group.name&&t.deleteAuth),h.xp6(2),h.AsE(" ",h.lcZ(14,18,"GROUP_DETAIL.UUID"),": ",t.group.uuid," "),h.xp6(3),h.AsE(" ",h.lcZ(17,20,"GROUP_DETAIL.ENTITY"),", ",h.lcZ(18,22,"GROUP_DETAIL.VO_NAME"),": "),h.xp6(3),h.Q6J("routerLink",h.VKq(30,U,t.vo.id)),h.xp6(1),h.Oqu(t.vo.name),h.xp6(1),h.AsE(", ",h.lcZ(22,24,"GROUP_DETAIL.DESCRIPTION"),": ",t.group.description," "),h.xp6(2),h.Q6J("ngIf",t.syncEnabled)}}let P=(()=>{class t{constructor(t,e,i,o,a,s,n,r){this.sideMenuService=t,this.voService=e,this.route=i,this.sideMenuItemService=o,this.groupService=a,this.dialog=s,this.guiAuthResolver=n,this.router=r,this.editAuth=!1,this.deleteAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[p.r.GROUP_SYNC_ENABLED,p.r.GROUP_LAST_SYNC_STATE,p.r.GROUP_LAST_SYNC_TIMESTAMP,p.r.GROUP_STRUCTURE_SYNC_ENABLED,p.r.GROUP_LAST_STRUCTURE_SYNC_STATE,p.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{const e=t.groupId;this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.groupService.getGroupById(e).subscribe(i=>{this.group=i,(0,c.sF)("groups",this.group),(0,c.XI)(this.group),this.guiAuthResolver.isAuthorized("getRichGroupByIdWithAttributesByNames_int_List_policy",[this.group])?this.groupService.getRichGroupByIdWithAttributesByNames(e,this.attrNames).subscribe(t=>{this.group=t,this.syncEnabled=this.isSynchronized(),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]);const o=this.sideMenuItemService.parseVo(t),a=this.sideMenuItemService.parseGroup(i);this.sideMenuService.setAccessMenuItems([o,a]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}isSynchronized(){return this.group.attributes.some(t=>"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString())}onSyncDetail(){const t=(0,c.kZ)();t.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(d.Bp,t)}editGroup(){const t=(0,c.kZ)();t.width="450px",t.data={theme:"group-theme",group:this.group,dialogType:d.Eg.GROUP},this.dialog.open(d.rd,t).afterClosed().subscribe(t=>{t&&this.groupService.getGroupById(this.group.id).subscribe(t=>{this.group=t})})}deleteGroup(){const t=(0,c.kZ)();t.width="500px",t.data={theme:"group-theme",groups:[this.group]},this.dialog.open(g.P,t).afterClosed().subscribe(t=>{t&&this.router.navigate(["../"],{relativeTo:this.route})})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(a.gz),h.Y36(n.V),h.Y36(l.ff),h.Y36(A.uw),h.Y36(u.x4),h.Y36(a.F0))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-detail-page"]],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"],["mat-icon-button","","aria-label","Edit group",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","aria-label","Edit group",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(t,e){1&t&&(h.TgZ(0,"div",0),h._UZ(1,"perun-web-apps-back-button"),h.YNc(2,O,1,0,"mat-spinner",1),h.YNc(3,q,25,32,"div",2),h.qZA()),2&t&&(h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.group))},directives:[T.W,o.O5,I.$g,f.Hw,E.gM,o.PC,a.yS,Z.A,b.lW],pipes:[_.X$,S.r,N.J,v.F],styles:[""],data:{animation:[r.Ji]}}),t})();function w(t,e){1&t&&h._UZ(0,"mat-spinner",3)}const y=function(t){return["/admin","users",t]};function G(t,e){if(1&t&&(h.TgZ(0,"a",8),h._uU(1),h.qZA()),2&t){const t=h.oxw(2);h.Q6J("routerLink",h.VKq(2,y,t.member.userId)),h.xp6(1),h.hij(" ",t.member.userId," ")}}function Y(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Oqu(t.member.userId)}}const J=function(){return{color:"black"}},V=function(t,e){return["/organizations",t,"members",e]};function F(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",4),h._UZ(2,"mat-icon",5),h.ALo(3,"translate"),h.TgZ(4,"div",6),h.TgZ(5,"div",7),h.TgZ(6,"a",8),h._uU(7),h.qZA(),h.TgZ(8,"span",9),h._uU(9),h.qZA(),h.qZA(),h.TgZ(10,"span",10),h._uU(11),h.ALo(12,"translate"),h.ALo(13,"translate"),h.YNc(14,G,2,4,"a",11),h.YNc(15,Y,2,1,"span",2),h.qZA(),h.qZA(),h.qZA(),h._UZ(16,"app-animated-router-outlet"),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.s9C("matTooltip",h.lcZ(3,9,"MEMBER_DETAIL.ENTITY")),h.Q6J("ngStyle",h.DdM(15,J)),h.xp6(4),h.Q6J("routerLink",h.WLB(16,V,t.vo.id,t.member.id)),h.xp6(1),h.hij(" ",t.fullName," "),h.xp6(2),h.hij(" \xa0#",t.member.id," "),h.xp6(2),h.AsE(" ",h.lcZ(12,11,"MEMBER_DETAIL.ENTITY"),", ",h.lcZ(13,13,"MEMBER_DETAIL.USER_ID"),": "),h.xp6(3),h.Q6J("ngIf",t.isAuthorized),h.xp6(1),h.Q6J("ngIf",!t.isAuthorized)}}let Q=(()=>{class t{constructor(t,e,i,o,a,s,n){this.sideMenuItemService=t,this.translate=e,this.sideMenuService=i,this.membersService=o,this.voService=a,this.route=s,this.authResolver=n,this.fullName="",this.isAuthorized=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{const e=t.voId,i=t.memberId;this.isAuthorized=this.authResolver.isPerunAdminOrObserver(),this.voService.getVoById(e).subscribe(t=>{this.vo=t,this.membersService.getRichMemberWithAttributes(i).subscribe(t=>{this.member=t;const e=this.sideMenuItemService.parseVo(this.vo),i=this.sideMenuItemService.parseMember(this.member,this.vo);this.fullName=i.label,this.sideMenuService.setAccessMenuItems([e,i]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(n.V),h.Y36(_.sK),h.Y36(m.D),h.Y36(l.uq),h.Y36(l.YF),h.Y36(a.gz),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"div",0),h._UZ(1,"perun-web-apps-back-button"),h.YNc(2,w,1,0,"mat-spinner",1),h.YNc(3,F,17,19,"div",2),h.qZA()),2&t&&(h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.member))},directives:[T.W,o.O5,I.$g,f.Hw,E.gM,o.PC,a.yS,Z.A],pipes:[_.X$],styles:[""],data:{animation:[r.Ji]}}),t})();var k=i(8557);function z(t,e){1&t&&h._UZ(0,"mat-spinner",2)}function B(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-menu-buttons-field",3),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("items",t.navItems)("size","small")}}let j=(()=>{class t{constructor(t,e,i,o,a){this.sideMenuService=t,this.voService=e,this.route=i,this.router=o,this.authResolver=a,this.items=[],this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.initNavItems(),this.loading=!1},()=>this.loading=!1)})}initNavItems(){this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/members`,label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups`,label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.vo.id}/resources`,label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.vo.id}/applications`,label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/sponsoredMembers`,label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/attributes`,label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[this.vo])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.vo.id}/statistics`,label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),(this.authResolver.isManagerPagePrivileged(this.vo)||this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])||this.authResolver.isThisVoAdminOrObserver(this.vo.id))&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.vo.id}/settings`,label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(a.gz),h.Y36(a.F0),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.YNc(0,z,1,0,"mat-spinner",0),h.YNc(1,B,2,2,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,I.$g,k.L],styles:[""]}),t})();var H=i(48002),$=i(28940),X=i(99608);function W(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function K(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",13),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).editVo()}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function tt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",14),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).removeVo()}),h.TgZ(1,"mat-icon"),h._uU(2,"delete_forever"),h.qZA(),h.qZA()}}const et=function(){return{color:"black"}},it=function(t){return["/organizations/",t]};function ot(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",4),h._UZ(2,"mat-icon",5),h.ALo(3,"translate"),h.TgZ(4,"div",6),h.TgZ(5,"div",7),h.TgZ(6,"a",8),h._uU(7),h.qZA(),h.TgZ(8,"span",9),h._uU(9),h.qZA(),h.YNc(10,K,3,0,"button",10),h.YNc(11,tt,3,0,"button",11),h.qZA(),h.TgZ(12,"span",12),h._uU(13),h.ALo(14,"translate"),h.ALo(15,"translate"),h.qZA(),h.qZA(),h.qZA(),h._UZ(16,"app-animated-router-outlet"),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.s9C("matTooltip",h.lcZ(3,10,"VO_DETAIL.ENTITY")),h.Q6J("ngStyle",h.DdM(16,et)),h.xp6(4),h.Q6J("routerLink",h.VKq(17,it,t.vo.id)),h.xp6(1),h.hij(" ",t.vo.name," "),h.xp6(2),h.hij(" \xa0#",t.vo.id," "),h.xp6(1),h.Q6J("ngIf",t.editAuth),h.xp6(1),h.Q6J("ngIf",t.removeAuth),h.xp6(2),h.lnq(" ",h.lcZ(14,12,"VO_DETAIL.ENTITY"),", ",h.lcZ(15,14,"VO_DETAIL.SHORT_NAME"),": ",t.vo.shortName," ")}}let at=(()=>{class t{constructor(t,e,i,o,a,s,n){this.sideMenuService=t,this.voService=e,this.route=i,this.router=o,this.sideMenuItemService=a,this.dialog=s,this.authResolver=n,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.editAuth=this.authResolver.isAuthorized("updateVo_Vo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("deleteVo_Vo_policy",[this.vo]);const e=this.sideMenuItemService.parseVo(t);this.sideMenuService.setAccessMenuItems([e]),(0,c.sF)("vos",this.vo),(0,c.XI)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const t=(0,c.kZ)();t.width="450px",t.data={theme:"vo-theme",vo:this.vo,dialogType:d.Eg.VO},this.dialog.open(d.rd,t).afterClosed().subscribe(t=>{t&&this.voService.getVoById(this.vo.id).subscribe(t=>{this.vo=t})})}removeVo(){const t=(0,c.kZ)();t.width="500px",t.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(X.o,t).afterClosed().subscribe(t=>{t&&this.router.navigate([""])})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(a.gz),h.Y36(a.F0),h.Y36(n.V),h.Y36(A.uw),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-detail-page"]],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"],["svgIcon","perun-vo-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,"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",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo",3,"click"]],template:function(t,e){1&t&&(h.TgZ(0,"div",0),h._UZ(1,"perun-web-apps-back-button"),h.YNc(2,W,1,0,"mat-spinner",1),h.YNc(3,ot,17,19,"div",2),h.qZA()),2&t&&(h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading&&void 0!==e.vo))},directives:[T.W,o.O5,I.$g,f.Hw,E.gM,o.PC,a.yS,Z.A,b.lW],pipes:[_.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[r.Ji]}}),t})();var st=i(67033),nt=i(95121),rt=i(79592),lt=i(27439),ct=i(74842),ut=i(37043);let pt=(()=>{class t{transform(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?t:"ACTIVE"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=h.Yjl({name:"transformMemberStatus",type:t,pure:!0}),t})();var dt=i(58506);function gt(t,e){1&t&&h._UZ(0,"mat-spinner",4)}function ht(t,e){1&t&&h._UZ(0,"th",12)}function mt(t,e){if(1&t&&(h.TgZ(0,"td",13),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t,": ")}}function At(t,e){1&t&&h._UZ(0,"th",12)}function Tt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",17),h.NdJ("click",function(){return h.CHM(t),h.oxw(4).changeStatus()}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function It(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"i"),h.ALo(2,"memberStatusIconColor"),h._uU(3),h.ALo(4,"memberStatusIcon"),h.qZA(),h.TgZ(5,"b",15),h._uU(6),h.ALo(7,"transformMemberStatus"),h.qZA(),h.YNc(8,Tt,3,0,"button",16),h.qZA()),2&t){const t=h.oxw(3);h.xp6(1),h.Gre("material-icons vert-center mr-1 ",h.lcZ(2,6,t.member.status),""),h.xp6(2),h.hij(" ",h.lcZ(4,8,t.member.status)," "),h.xp6(3),h.hij(" ",h.lcZ(7,10,t.member.status)," "),h.xp6(2),h.Q6J("ngIf",t.authResolver.isThisVoAdmin(t.vo.id))}}function ft(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",17),h.NdJ("click",function(){return h.CHM(t),h.oxw(4).changeVoExpiration(!1)}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function Et(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"i",18),h._uU(2),h.ALo(3,"parseDate"),h.qZA(),h.YNc(4,ft,3,0,"button",16),h.qZA()),2&t){const t=h.oxw(3);h.xp6(2),h.hij(" ",h.lcZ(3,2,t.voExpiration)," "),h.xp6(2),h.Q6J("ngIf",t.authResolver.isThisVoAdmin(t.vo.id))}}function Zt(t,e){if(1&t&&(h.TgZ(0,"td",14),h.YNc(1,It,9,12,"div",3),h.YNc(2,Et,5,4,"div",3),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Q6J("ngIf","Status"===t),h.xp6(1),h.Q6J("ngIf","Expiration"===t)}}function bt(t,e){1&t&&h._UZ(0,"tr",19)}function _t(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"table",5),h.ynx(2,6),h.YNc(3,ht,1,0,"th",7),h.YNc(4,mt,2,1,"td",8),h.BQk(),h.ynx(5,9),h.YNc(6,At,1,0,"th",7),h.YNc(7,Zt,3,2,"td",10),h.BQk(),h.YNc(8,bt,1,0,"tr",11),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("dataSource",t.voMembershipDataSource),h.xp6(7),h.Q6J("matRowDefColumns",t.displayedColumns)}}let St=(()=>{class t{constructor(t,e,i,o,a,s){this.dialog=t,this.authResolver=e,this.apiRequest=i,this.attributesManager=o,this.translate=a,this.notificator=s,this.voMembershipDataSource=new st.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new st.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const t=(0,c.kZ)();t.width="600px",t.data={member:this.member,voId:this.vo.id};const e=this.member.status;this.dialog.open(d.pf,t).afterClosed().subscribe(t=>{t&&(this.member=t,("VALID"!==e||"EXPIRED"!==t.status&&"DISABLED"!==t.status)&&"VALID"!==t.status||this.changeVoExpiration(!0))})}changeVoExpiration(t){const e=(0,c.kZ)();e.width="400px",e.data={voId:this.vo.id,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:t},this.dialog.open(d.kZ,e).afterClosed().subscribe(t=>{t&&this.refreshVoExpiration()})}refreshVoExpiration(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,p.r.MEMBER_DEF_EXPIRATION).subscribe(t=>{this.voExpirationAtt=t,this.voExpiration=t.value?t.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},t=>{"PrivilegeException"!==t.error.name?this.notificator.showError(t):this.voMembershipDataSource=new st.by(["Status"]),this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.uw),h.Y36(u.x4),h.Y36(u.F5),h.Y36(l.H8),h.Y36(_.sK),h.Y36(u.V6))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-overview-membership"]],inputs:{member:"member",vo:"vo"},features:[h.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(t,e){1&t&&(h.TgZ(0,"mat-card",0),h.TgZ(1,"mat-card-header"),h.TgZ(2,"mat-card-title"),h.TgZ(3,"h1",1),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(6,"mat-card-content"),h.YNc(7,gt,1,0,"mat-spinner",2),h.YNc(8,_t,9,2,"div",3),h.qZA(),h.qZA()),2&t&&(h.xp6(4),h.Oqu(h.lcZ(5,3,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")),h.xp6(3),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[lt.a8,lt.dk,lt.n5,lt.dn,o.O5,I.$g,st.BZ,st.w1,st.fO,st.Dz,st.nj,st.ge,st.ev,b.lW,f.Hw,st.Gk],pipes:[_.X$,ct.u,ut.f,pt,dt.M],styles:[".membership-card[_ngcontent-%COMP%]{max-width:400px}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),t})();var Nt=i(37665),vt=i(39571);function Ot(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"perun-web-apps-group-search-select",7),h.NdJ("groupSelected",function(e){return h.CHM(t),h.oxw().groupIsSelected(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("groups",t.groups)("firstSelectedGroup",t.selectedGroup)}}function xt(t,e){1&t&&h._UZ(0,"mat-spinner",8)}function Lt(t,e){1&t&&(h.TgZ(0,"app-alert",9),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function Ct(t,e){1&t&&h._UZ(0,"th",17)}function Rt(t,e){if(1&t&&(h.TgZ(0,"td",18),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t,": ")}}function Dt(t,e){1&t&&h._UZ(0,"th",17)}function Mt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",22),h.NdJ("click",function(){return h.CHM(t),h.oxw(4).changeStatus()}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function Ut(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"i"),h.ALo(2,"memberStatusIconColor"),h._uU(3),h.ALo(4,"memberStatusIcon"),h.qZA(),h.TgZ(5,"b",20),h._uU(6),h.ALo(7,"transformMemberStatus"),h.qZA(),h.YNc(8,Mt,3,0,"button",21),h.qZA()),2&t){const t=h.oxw(3);h.xp6(1),h.Gre("material-icons vert-center mr-1 ",h.lcZ(2,6,t.selectedMember.groupStatus),""),h.xp6(2),h.hij(" ",h.lcZ(4,8,t.selectedMember.groupStatus)," "),h.xp6(3),h.hij(" ",h.lcZ(7,10,t.selectedMember.groupStatus)," "),h.xp6(2),h.Q6J("ngIf",t.authResolver.isThisVoAdmin(t.vo.id)||t.authResolver.isThisGroupAdmin(t.selectedGroup.id))}}function qt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",22),h.NdJ("click",function(){return h.CHM(t),h.oxw(4).changeExpiration()}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function Pt(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"i",2),h._uU(2),h.ALo(3,"parseDate"),h.qZA(),h.YNc(4,qt,3,0,"button",21),h.qZA()),2&t){const t=h.oxw(3);h.xp6(2),h.hij(" ",h.lcZ(3,2,t.expiration)," "),h.xp6(2),h.Q6J("ngIf",t.authResolver.isThisVoAdmin(t.vo.id)||t.authResolver.isThisGroupAdmin(t.selectedGroup.id))}}function wt(t,e){if(1&t&&(h.TgZ(0,"td",19),h.YNc(1,Ut,9,12,"div",6),h.YNc(2,Pt,5,4,"div",6),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Q6J("ngIf","Status"===t),h.xp6(1),h.Q6J("ngIf","Expiration"===t)}}function yt(t,e){1&t&&h._UZ(0,"tr",23)}function Gt(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"table",10),h.ynx(2,11),h.YNc(3,Ct,1,0,"th",12),h.YNc(4,Rt,2,1,"td",13),h.BQk(),h.ynx(5,14),h.YNc(6,Dt,1,0,"th",12),h.YNc(7,wt,3,2,"td",15),h.BQk(),h.YNc(8,yt,1,0,"tr",16),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("dataSource",t.groupMembershipDataSource),h.xp6(7),h.Q6J("matRowDefColumns",t.displayedColumns)}}let Yt=(()=>{class t{constructor(t,e,i,o){this.groupsManager=t,this.authResolver=e,this.translate=i,this.dialog=o,this.noGroups=!1,this.groupMembershipDataSource=new st.by,this.expiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new st.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(t=>{if(this.groups=t,0===this.groups.length)return void(this.noGroups=!0);const e=this.findInitiallySelectedGroupId();this.groupIsSelected(e),this.initLoading=!1})}findInitiallySelectedGroupId(){if(this.recentIds=(0,c.vL)("groups"),this.recentIds){const t=this.groups.find(t=>t.id===this.recentIds[0]);if(t)return t}return this.groups[0]}groupIsSelected(t){this.loading=!0,this.selectedGroup=t,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[p.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(t=>{this.selectedMember=t[0],this.expirationAtt=this.selectedMember.memberAttributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName),this.expirationAtt?(this.groupMembershipDataSource=new st.by(["Status","Expiration"]),this.expiration=this.expirationAtt.value?this.expirationAtt.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):this.groupMembershipDataSource=new st.by(["Status"]),this.loading=!1})}changeExpiration(t=!1){const e=(0,c.kZ)();e.width="400px",e.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:t},this.dialog.open(d.u3,e).afterClosed().subscribe(t=>{t&&this.groupIsSelected(this.selectedGroup)})}changeStatus(){const t=(0,c.kZ)();t.width="600px",t.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(d.pf,t).afterClosed().subscribe(t=>{t&&(this.selectedMember=t,this.changeExpiration(!0))})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.ff),h.Y36(u.x4),h.Y36(_.sK),h.Y36(A.uw))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-overview-groups"]],inputs:{vo:"vo",member:"member"},features:[h.TTD],decls:11,vars:7,consts:[[1,"mat-elevation-z3","groups-card","mt-4"],[1,"page-subtitle"],[1,"column-center"],[3,"groups","firstSelectedGroup","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","info",4,"ngIf"],[4,"ngIf"],[3,"groups","firstSelectedGroup","groupSelected"],[1,"mr-auto","ml-auto"],["alert_type","info"],["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(t,e){1&t&&(h.TgZ(0,"mat-card",0),h.TgZ(1,"mat-card-header"),h.TgZ(2,"mat-card-title"),h.TgZ(3,"h1",1),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(6,"mat-card-content",2),h.YNc(7,Ot,1,2,"perun-web-apps-group-search-select",3),h.YNc(8,xt,1,0,"mat-spinner",4),h.YNc(9,Lt,3,3,"app-alert",5),h.YNc(10,Gt,9,2,"div",6),h.qZA(),h.qZA()),2&t&&(h.xp6(4),h.Oqu(h.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")),h.xp6(3),h.Q6J("ngIf",!e.initLoading),h.xp6(1),h.Q6J("ngIf",(e.loading||e.initLoading)&&!e.noGroups),h.xp6(1),h.Q6J("ngIf",e.noGroups),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[lt.a8,lt.dk,lt.n5,lt.dn,o.O5,Nt.h,I.$g,vt.w,st.BZ,st.w1,st.fO,st.Dz,st.nj,st.ge,st.ev,b.lW,f.Hw,st.Gk],pipes:[_.X$,ct.u,ut.f,pt,dt.M],styles:[".groups-card[_ngcontent-%COMP%]{max-width:400px}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),t})(),Jt=(()=>{class t{transform(t){return(0,c.Cz)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=h.Yjl({name:"attributeFriendlyName",type:t,pure:!0}),t})();var Vt=i(22196);function Ft(t,e){1&t&&h._UZ(0,"mat-spinner",2)}function Qt(t,e){1&t&&h._UZ(0,"th",17)}function kt(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&t){const t=h.oxw().$implicit,e=h.oxw(2);h.xp6(1),h.hij(" ",e.attributes.get(t)[0],": ")}}function zt(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.ALo(2,"attributeFriendlyName"),h.qZA()),2&t){const t=h.oxw().$implicit;h.xp6(1),h.hij(" ",h.lcZ(2,1,t),": ")}}function Bt(t,e){if(1&t&&(h.TgZ(0,"td",18),h.YNc(1,kt,2,1,"span",1),h.YNc(2,zt,3,3,"span",1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.Q6J("ngIf",null!==i.attributes.get(t)[0]),h.xp6(1),h.Q6J("ngIf",null===i.attributes.get(t)[0])}}function jt(t,e){1&t&&h._UZ(0,"th",17)}function Ht(t,e){if(1&t&&(h.TgZ(0,"td",19),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.hij(" ",i.attributes.get(t)[1]," ")}}function $t(t,e){1&t&&h._UZ(0,"tr",20)}function Xt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-card",5),h.TgZ(1,"mat-card-header"),h.TgZ(2,"mat-card-title"),h.TgZ(3,"h1",6),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(6,"mat-card-content",21),h.TgZ(7,"div",22),h.ALo(8,"translate"),h.TgZ(9,"button",23),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).requestPwdReset()}),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(4),h.Oqu(h.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),h.xp6(3),h.Q6J("matTooltip",h.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED"))("matTooltipDisabled",t.logins.length>0),h.xp6(2),h.Q6J("disabled",!t.logins.length),h.xp6(1),h.hij(" ",h.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function Wt(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")))}function Kt(t,e){if(1&t&&(h.TgZ(0,"td",33),h._uU(1),h.ALo(2,"userFullName"),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",h.lcZ(2,1,t.user)," ")}}function te(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")))}function ee(t,e){if(1&t&&(h.TgZ(0,"td",33),h.TgZ(1,"span",34),h._uU(2),h.ALo(3,"parseDate"),h.qZA(),h.qZA()),2&t){const t=e.$implicit;h.xp6(2),h.Oqu(h.lcZ(3,1,t.validityTo))}}function ie(t,e){1&t&&h._UZ(0,"tr",35)}function oe(t,e){1&t&&h._UZ(0,"tr",20)}const ae=function(){return["sponsors","expiration"]};function se(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-card-content"),h.TgZ(1,"h6",26),h._uU(2),h.ALo(3,"translate"),h.TgZ(4,"button",27),h.NdJ("click",function(){return h.CHM(t),h.oxw(3).changeSponsors()}),h.TgZ(5,"mat-icon"),h._uU(6,"edit"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(7,"table",28),h.ynx(8,29),h.YNc(9,Wt,3,3,"th",9),h.YNc(10,Kt,3,3,"td",30),h.BQk(),h.ynx(11,31),h.YNc(12,te,3,3,"th",9),h.YNc(13,ee,4,3,"td",30),h.BQk(),h.YNc(14,ie,1,0,"tr",32),h.YNc(15,oe,1,0,"tr",13),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(3);h.xp6(2),h.hij(" ",h.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),h.xp6(5),h.Q6J("dataSource",t.sponsorsDataSource),h.xp6(7),h.Q6J("matHeaderRowDef",h.DdM(6,ae)),h.xp6(1),h.Q6J("matRowDefColumns",h.DdM(7,ae))}}function ne(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"mat-card",24),h.TgZ(2,"mat-card-header"),h.TgZ(3,"mat-card-title"),h.TgZ(4,"h1",6),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.qZA(),h.TgZ(7,"mat-card-subtitle",25),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.qZA(),h.YNc(10,se,16,8,"mat-card-content",1),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(5),h.Oqu(h.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),h.xp6(3),h.hij(" ",h.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),h.xp6(2),h.Q6J("ngIf",0!==t.sponsors.length)}}function re(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",3),h.TgZ(2,"div",4),h.TgZ(3,"mat-card",5),h.TgZ(4,"mat-card-header"),h.TgZ(5,"mat-card-title"),h.TgZ(6,"h1",6),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(9,"mat-card-content"),h.TgZ(10,"table",7),h.ynx(11,8),h.YNc(12,Qt,1,0,"th",9),h.YNc(13,Bt,3,2,"td",10),h.BQk(),h.ynx(14,11),h.YNc(15,jt,1,0,"th",9),h.YNc(16,Ht,2,1,"td",12),h.BQk(),h.YNc(17,$t,1,0,"tr",13),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(18,"div",4),h._UZ(19,"app-member-overview-membership",14),h._UZ(20,"app-member-overview-groups",14),h.qZA(),h.TgZ(21,"div",4),h.YNc(22,Xt,12,11,"mat-card",15),h.YNc(23,ne,11,7,"div",1),h.qZA(),h.qZA(),h.TgZ(24,"div"),h._UZ(25,"perun-web-apps-menu-buttons-field",16),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(7),h.Oqu(h.lcZ(8,11,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),h.xp6(3),h.Q6J("dataSource",t.dataSource),h.xp6(7),h.Q6J("matRowDefColumns",t.displayedColumns),h.xp6(2),h.Q6J("member",t.member)("vo",t.vo),h.xp6(1),h.Q6J("member",t.member)("vo",t.vo),h.xp6(2),h.Q6J("ngIf",t.pwdResetAuth),h.xp6(1),h.Q6J("ngIf",t.member.sponsored),h.xp6(2),h.Q6J("items",t.navItems)("size","small")}}let le=(()=>{class t{constructor(t,e,i,o,a,s,n){this.attributesManager=t,this.membersService=e,this.usersManager=i,this.route=o,this.dialog=a,this.authResolver=s,this.storeService=n,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new st.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new st.by,this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{const e=t.memberId;this.attributeNames=this.storeService.getMemberProfileAttributeNames(),this.membersService.getRichMemberWithAttributes(e).subscribe(t=>{const e=this.storeService.get("password_namespace_attributes").map(t=>(t=t.split(":"))[t.length-1]);this.attributesManager.getLogins(t.userId).subscribe(i=>{this.logins=i.filter(t=>e.includes(t.friendlyNameParameter)),this.member=t,this.initAttributes(),this.dataSource=new st.by(Array.from(this.attributes.keys())),this.vo={id:t.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(t=>{this.sponsors=t,this.sponsorsDataSource=new st.by(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}initAttributes(){this.attributeNames.forEach(t=>{this.attributes.set(t,[null,"-"])}),this.filterAttributes()}filterAttributes(){null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(t=>{this.attributeNames.includes(t.friendlyName)&&this.attributes.set(t.friendlyName,[t.displayName,t.value.toString()])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(t=>{this.attributeNames.includes(t.friendlyName)&&this.attributes.set(t.friendlyName,[t.displayName,t.value.toString()])})}initNavItems(){this.navItems=[],this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.member.voId}/members/${this.member.id}/groups`,label:"MENU_ITEMS.MEMBER.GROUPS",style:"member-btn"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.member.voId}/members/${this.member.id}/applications`,label:"MENU_ITEMS.MEMBER.APPLICATIONS",style:"member-btn"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-resource",url:`/organizations/${this.member.voId}/members/${this.member.id}/resources`,label:"MENU_ITEMS.MEMBER.RESOURCES",style:"member-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/members/${this.member.id}/attributes`,label:"MENU_ITEMS.MEMBER.ATTRIBUTES",style:"member-btn"})}refreshData(){this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(t=>{this.member=t,this.loading=!1},()=>this.loading=!1)}requestPwdReset(){const t=(0,c.kZ)();t.width="400px",t.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(nt.m,t)}changeSponsors(){const t=(0,c.kZ)();t.width="650px",t.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(rt.H,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(t=>{this.member=t,this.member.sponsored&&this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(t=>{this.sponsors=t,this.sponsorsDataSource.data=this.sponsors}),this.loading=!1}))})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.H8),h.Y36(l.uq),h.Y36(l.Fv),h.Y36(a.gz),h.Y36(A.uw),h.Y36(u.x4),h.Y36(u.d6))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",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(t,e){1&t&&(h.YNc(0,Ft,1,0,"mat-spinner",0),h.YNc(1,re,26,13,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,I.$g,lt.a8,lt.dk,lt.n5,lt.dn,st.BZ,st.w1,st.fO,st.Dz,st.nj,St,Yt,k.L,st.ge,st.ev,st.Gk,E.gM,b.lW,lt.$j,f.Hw,st.as,st.XQ],pipes:[_.X$,Jt,Vt.d,dt.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}"]}),t})();var ce=i(81835);function ue(t,e){1&t&&h._UZ(0,"mat-spinner",2)}const pe=function(t,e){return["/organizations",t,"groups",e]};function de(t,e){if(1&t&&(h.TgZ(0,"p"),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"a",4),h._uU(4),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.hij(" ",h.lcZ(2,3,"GROUP_DETAIL.SUBGROUP_INFO")," "),h.xp6(2),h.Q6J("routerLink",h.WLB(5,pe,t.parentGroup.voId,t.parentGroup.id)),h.xp6(1),h.hij(" ",t.parentGroup.name," ")}}function ge(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,de,5,8,"p",1),h._UZ(2,"perun-web-apps-menu-buttons-field",3),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf",null!==t.parentGroup),h.xp6(1),h.Q6J("items",t.navItems)("size","small")}}let he=(()=>{class t{constructor(t,e,i,o,a,s,n){this.route=t,this.groupService=e,this.voService=i,this.guiAuthResolver=o,this.apiRequest=a,this.attributesManager=s,this.notificator=n,this.navItems=[],this.parentGroup=null,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.groupId=t.groupId,this.groupService.getGroupById(this.groupId).subscribe(t=>{this.group=t,null!==this.group.parentGroupId?this.loadParentGroupData():(this.parentGroup=null,this.initNavItems(),this.loading=!1)},()=>this.loading=!1)})}loadParentGroupData(){this.groupService.getGroupById(this.group.parentGroupId).subscribe(t=>{this.parentGroup=t,this.initNavItems(),this.loading=!1},()=>this.loading=!1)}initNavItems(){this.navItems=[],this.guiAuthResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[this.group])&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.group.voId}/groups/${this.groupId}/members`,label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[this.group])&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.groupId}/subgroups`,label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getAssignedRichResources_Group_policy",[this.group])&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.group.voId}/groups/${this.groupId}/resources`,label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[this.group])&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.group.voId}/groups/${this.groupId}/applications`,label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.group.voId}/groups/${this.group.id}/attributes`,label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"});const t=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[this.group]),e=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[this.group]),i=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[this.group]);t&&i&&e&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.group.voId}/groups/${this.group.id}/statistics`,label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"});let o=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,p.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{o=!0},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t)});const a=this.guiAuthResolver.isManagerPagePrivileged(this.group),s=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),n=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),r=this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group]);(o||a||s||n||r)&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.group.voId}/groups/${this.groupId}/settings`,label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(l.ff),h.Y36(l.YF),h.Y36(u.x4),h.Y36(u.F5),h.Y36(l.H8),h.Y36(u.V6))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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(t,e){1&t&&(h.YNc(0,ue,1,0,"mat-spinner",0),h.YNc(1,ge,3,3,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,I.$g,k.L,a.yS],pipes:[_.X$],styles:[""]}),t})();var me=i(82044);let Ae=(()=>{class t{constructor(t){this.route=t}ngOnInit(){this.route.parent.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&h._UZ(0,"app-animated-router-outlet")},directives:[Z.A],styles:[""],data:{animation:[r.Ji]}}),t})();var Te=i(40659);let Ie=(()=>{class t{constructor(t,e){this.route=t,this.router=e,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=e.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),e.events.subscribe(t=>{t instanceof a.m2&&(this.currentUrl=t.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl))})}ngOnInit(){this.route.parent.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(a.F0))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&h._UZ(0,"app-animated-router-outlet")},directives:[Z.A],styles:[""],data:{animation:[r.Ji]}}),t})();var fe=i(541);let Ee=(()=>{class t{constructor(t){this.route=t}ngOnInit(){this.route.parent.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityId","entity"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._UZ(4,"app-one-entity-attribute-page",1),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),h.xp6(2),h.Q6J("entityId",e.voId)("entity","vo"))},directives:[fe.t],pipes:[_.X$],styles:[""]}),t})();function Ze(t,e){1&t&&h._UZ(0,"mat-spinner",2)}function be(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-menu-buttons-field",3),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("items",t.items)("size","small")}}let _e=(()=>{class t{constructor(t,e,i,o,a){this.sideMenuService=t,this.voService=e,this.authResolver=i,this.route=o,this.router=a,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.initItems(),this.loading=!1},()=>this.loading=!1)})}initItems(){this.items=[],this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/settings/expiration`,label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.authResolver.isManagerPagePrivileged(this.vo)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/settings/managers`,label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/settings/applicationForm`,label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/settings/notifications`,label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.vo.id}/settings/extsources`,label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(u.x4),h.Y36(a.gz),h.Y36(a.F0))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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(t,e){1&t&&(h.YNc(0,Ze,1,0,"mat-spinner",0),h.YNc(1,be,2,2,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,I.$g,k.L],styles:[""]}),t})();var Se=i(27521),Ne=i(16073),ve=i(54810);const Oe=["*"];let xe=(()=>{class t{constructor(){this.modelChange=new h.vpe}get model(){return this.modelValue}set model(t){this.modelValue=t}ngAfterViewInit(){this.toggle.change.subscribe(()=>this.valueChanged())}valueChanged(){this.modelChange.emit(this.toggle.checked)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-settings-toggle-item"]],viewQuery:function(t,e){if(1&t&&h.Gf(Se.Rr,7),2&t){let t;h.iGM(t=h.CRH())&&(e.toggle=t.first)}},inputs:{title:"title",model:"model"},outputs:{modelChange:"modelChange"},ngContentSelectors:Oe,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(t,e){if(1&t){const t=h.EpF();h.F$t(),h.TgZ(0,"div",0),h.TgZ(1,"div",1),h.TgZ(2,"label",2),h.NdJ("click",function(){return h.CHM(t),h.MAs(5).toggle()||e.valueChanged()}),h._uU(3),h.qZA(),h.TgZ(4,"mat-slide-toggle",3,4),h.NdJ("ngModelChange",function(t){return e.modelValue=t}),h.qZA(),h.qZA(),h.TgZ(6,"div",5),h.Hsn(7),h.qZA(),h.qZA()}if(2&t){const t=h.MAs(5);h.xp6(2),h.ekj("unselected-setting",!t.checked),h.xp6(1),h.hij(" ",e.title," "),h.xp6(1),h.Q6J("ngModel",e.modelValue),h.xp6(2),h.Q6J("@openClose",t.checked?"open":"closed")}},directives:[Se.Rr,Ne.JJ,Ne.On],styles:[""],data:{animation:[r.BQ]}}),t})();var Le=i(66283),Ce=i(4786),Re=i(80340),De=i(71522),Me=i(29236);function Ue(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",25),h.TgZ(1,"mat-form-field",26),h.TgZ(2,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.periodStatic=e}),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-hint"),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(2),h.s9C("pattern",t.datePattern),h.s9C("placeholder",h.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),h.Q6J("ngModel",t.currentConfiguration.periodStatic),h.xp6(3),h.Oqu(h.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function qe(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t.value),h.xp6(1),h.Oqu(t.text)}}function Pe(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",18),h.TgZ(1,"mat-form-field",19),h.TgZ(2,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.periodDynamic=e}),h.ALo(3,"translate"),h.qZA(),h.qZA(),h.TgZ(4,"mat-form-field"),h.TgZ(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"mat-select",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.periodDynamicUnit=e}),h.YNc(9,qe,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(2),h.s9C("pattern",t.dynamicAmountPattern),h.s9C("placeholder",h.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),h.Q6J("ngModel",t.currentConfiguration.periodDynamic),h.xp6(4),h.Oqu(h.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),h.xp6(2),h.Q6J("ngModel",t.currentConfiguration.periodDynamicUnit),h.xp6(1),h.Q6J("ngForOf",t.amountOptions)}}function we(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.Oqu(t)}}function ye(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.Oqu(t)}}function Ge(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t.value),h.xp6(1),h.Oqu(t.text)}}function Ye(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",t," ")}}function Je(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",25),h.TgZ(1,"mat-form-field",26),h.TgZ(2,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(3).currentConfiguration.specialLoaPeriodStatic=e}),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-hint"),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(3);h.xp6(2),h.s9C("pattern",t.datePattern),h.s9C("placeholder",h.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),h.Q6J("ngModel",t.currentConfiguration.specialLoaPeriodStatic),h.xp6(3),h.Oqu(h.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Ve(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t.value),h.xp6(1),h.Oqu(t.text)}}function Fe(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",18),h.TgZ(1,"mat-form-field",19),h.TgZ(2,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(3).currentConfiguration.specialLoaPeriodDynamic=e}),h.ALo(3,"translate"),h.qZA(),h.qZA(),h.TgZ(4,"mat-form-field"),h.TgZ(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"mat-select",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(3).currentConfiguration.specialLoaPeriodDynamicUnit=e}),h.YNc(9,Ve,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(3);h.xp6(2),h.s9C("pattern",t.dynamicAmountPattern),h.s9C("placeholder",h.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),h.Q6J("ngModel",t.currentConfiguration.specialLoaPeriodDynamic),h.xp6(4),h.Oqu(h.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),h.xp6(2),h.Q6J("ngModel",t.currentConfiguration.specialLoaPeriodDynamicUnit),h.xp6(1),h.Q6J("ngForOf",t.amountOptions)}}function Qe(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",28),h.TgZ(1,"mat-radio-group",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.specialLoaPeriodType=e}),h.TgZ(2,"mat-radio-button",9,29),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"mat-radio-button",11,30),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.qZA(),h.YNc(10,Je,7,8,"div",13),h.YNc(11,Fe,10,10,"div",14),h.TgZ(12,"div"),h.TgZ(13,"mat-checkbox",31),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.specialLoaPeriodExtendExpiredMembers=e}),h._uU(14),h.ALo(15,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.MAs(3),e=h.MAs(7),i=h.oxw(2);h.xp6(1),h.Q6J("ngModel",i.currentConfiguration.specialLoaPeriodType),h.xp6(3),h.hij(" ",h.lcZ(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),h.xp6(4),h.hij(" ",h.lcZ(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),h.xp6(2),h.Q6J("ngIf",t.checked),h.xp6(1),h.Q6J("ngIf",e.checked),h.xp6(2),h.Q6J("ngModel",i.currentConfiguration.specialLoaPeriodExtendExpiredMembers),h.xp6(1),h.hij(" ",h.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function ke(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",1),h.TgZ(1,"div",2),h.TgZ(2,"h1",3),h.NdJ("click",function(){return h.CHM(t),h.MAs(6).toggle()}),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.TgZ(5,"mat-slide-toggle",4,5),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.enabled=e}),h.qZA(),h.qZA(),h.TgZ(7,"div"),h.TgZ(8,"label",6),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"div",7),h.TgZ(12,"mat-radio-group",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.periodType=e}),h.TgZ(13,"mat-radio-button",9,10),h._uU(15),h.ALo(16,"translate"),h.qZA(),h.TgZ(17,"mat-radio-button",11,12),h._uU(19),h.ALo(20,"translate"),h.qZA(),h.qZA(),h.YNc(21,Ue,7,8,"div",13),h.YNc(22,Pe,10,10,"div",14),h.qZA(),h.TgZ(23,"app-settings-toggle-item",15),h.NdJ("modelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.doNotAllowLoasEnabled=e}),h.ALo(24,"translate"),h.TgZ(25,"mat-form-field"),h.TgZ(26,"mat-placeholder"),h._uU(27),h.ALo(28,"translate"),h.qZA(),h.TgZ(29,"mat-select",16),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.doNotAllowLoas=e}),h.YNc(30,we,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA(),h.TgZ(31,"app-settings-toggle-item",15),h.NdJ("modelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.doNotExtendLoasEnabled=e}),h.ALo(32,"translate"),h.TgZ(33,"mat-form-field"),h.TgZ(34,"mat-placeholder"),h._uU(35),h.ALo(36,"translate"),h.qZA(),h.TgZ(37,"mat-select",16),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.doNotExtendLoas=e}),h.YNc(38,ye,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA(),h.TgZ(39,"app-settings-toggle-item",15),h.NdJ("modelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.gracePeriodEnabled=e}),h.ALo(40,"translate"),h.TgZ(41,"div",18),h.TgZ(42,"mat-form-field",19),h.TgZ(43,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.gracePeriod=e}),h.ALo(44,"translate"),h.qZA(),h.qZA(),h.TgZ(45,"mat-form-field"),h.TgZ(46,"mat-label"),h._uU(47),h.ALo(48,"translate"),h.qZA(),h.TgZ(49,"mat-select",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.gracePeriodUnit=e}),h.YNc(50,Ge,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(51,"app-settings-toggle-item",15),h.NdJ("modelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.specialLoaPeriodEnabled=e}),h.ALo(52,"translate"),h.TgZ(53,"div",7),h.TgZ(54,"div"),h.TgZ(55,"mat-form-field"),h.TgZ(56,"mat-label"),h._uU(57),h.ALo(58,"translate"),h.qZA(),h.TgZ(59,"mat-select",8,21),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.specialLoa=e}),h.YNc(61,Ye,2,2,"mat-option",17),h.qZA(),h.qZA(),h.YNc(62,Qe,16,13,"div",22),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(63,"div",23),h.ALo(64,"translate"),h.TgZ(65,"button",24),h.NdJ("click",function(){return h.CHM(t),h.oxw().saveChanges()}),h._uU(66),h.ALo(67,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.MAs(6),e=h.MAs(14),i=h.MAs(18),o=h.oxw();h.xp6(2),h.ekj("unselected-setting",!t.checked),h.xp6(1),h.hij(" ",h.lcZ(4,40,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.enabled),h.xp6(2),h.Q6J("@openClose",t.checked?"open":"closed"),h.xp6(2),h.Oqu(h.lcZ(10,42,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),h.xp6(3),h.Q6J("ngModel",o.currentConfiguration.periodType),h.xp6(3),h.hij(" ",h.lcZ(16,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),h.xp6(4),h.hij(" ",h.lcZ(20,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),h.xp6(2),h.Q6J("ngIf",e.checked),h.xp6(1),h.Q6J("ngIf",i.checked),h.xp6(1),h.Q6J("model",o.currentConfiguration.doNotAllowLoasEnabled)("title",h.lcZ(24,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),h.xp6(4),h.Oqu(h.lcZ(28,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.doNotAllowLoas),h.xp6(1),h.Q6J("ngForOf",o.loas),h.xp6(1),h.Q6J("model",o.currentConfiguration.doNotExtendLoasEnabled)("title",h.lcZ(32,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),h.xp6(4),h.Oqu(h.lcZ(36,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.doNotExtendLoas),h.xp6(1),h.Q6J("ngForOf",o.loas),h.xp6(1),h.Q6J("model",o.currentConfiguration.gracePeriodEnabled)("title",h.lcZ(40,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),h.xp6(4),h.s9C("pattern",o.dynamicAmountPattern),h.s9C("placeholder",h.lcZ(44,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),h.Q6J("ngModel",o.currentConfiguration.gracePeriod),h.xp6(4),h.Oqu(h.lcZ(48,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.gracePeriodUnit),h.xp6(1),h.Q6J("ngForOf",o.amountOptions),h.xp6(1),h.Q6J("model",o.currentConfiguration.specialLoaPeriodEnabled)("title",h.lcZ(52,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),h.xp6(6),h.Oqu(h.lcZ(58,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.specialLoa),h.xp6(2),h.Q6J("ngForOf",o.loas),h.xp6(1),h.Q6J("ngIf",null!==o.currentConfiguration.specialLoa),h.xp6(1),h.s9C("matTooltip",h.lcZ(64,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),h.Q6J("matTooltipDisabled",o.expirationAttribute.writable)("matTooltipPosition","above"),h.xp6(2),h.Q6J("disabled",!o.areChangesMade()||!o.expirationAttribute.writable),h.xp6(1),h.hij(" ",h.lcZ(67,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}let ze=(()=>{class t{constructor(){this.saveAttribute=new h.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 t=new Map;this.loas.forEach(e=>t.set(e,"")),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}ngOnChanges(t){t.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}saveChanges(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}areChangesMade(){const t=this.parseAttributeValueFromConfig(this.currentConfiguration),e=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===e?null!==t:null===t||t.period!==e.period||t.gracePeriod!==e.gracePeriod||t.doNotExtendLoa!==e.doNotExtendLoa||t.doNotAllowLoa!==e.doNotAllowLoa||t.periodLoa!==e.periodLoa}parseExpirationRulesAttribute(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}parsePeriod(t){switch(t.periodType){case"dynamic":return this.parseDynamicPeriod(t);case"static":return this.parseStaticPeriod(t)}}createInitConfiguration(){const t=new Map;return this.loas.forEach(e=>t.set(e,"")),{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(t){let e=this.createInitConfiguration();return null==t||(void 0!==t.period&&t.period.length>0&&(e=this.setPeriodValues(t,e)),void 0!==t.doNotAllowLoa&&t.doNotAllowLoa.length>0&&(e=this.setDoNotAllowLoasValues(t,e)),void 0!==t.doNotExtendLoa&&t.doNotExtendLoa.length>0&&(e=this.setDoNotExtendLoasValues(t,e)),void 0!==t.gracePeriod&&t.gracePeriod.length>0&&(e=this.setGracePeriodValues(t,e)),void 0!==t.periodLoa&&t.periodLoa.length>0&&(e=this.setSpecialLoaPeriodValues(t,e))),e}setPeriodValues(t,e){if(e.enabled=!0,t.period.startsWith("+")){e.periodType="dynamic";const i=t.period.charAt(t.period.length-1);e.periodDynamic=t.period.substring(1,t.period.length-1),e.periodDynamicUnit=i}else e.periodType="static",e.periodStatic=t.period;return e}setDoNotAllowLoasValues(t,e){const i=[];return t.doNotAllowLoa.split(",").forEach(t=>i.push(parseInt(t.trim(),10))),e.doNotAllowLoas=i,i.length>0&&(e.doNotAllowLoasEnabled=!0),e}setDoNotExtendLoasValues(t,e){const i=[];return t.doNotExtendLoa.split(",").forEach(t=>i.push(parseInt(t.trim(),10))),e.doNotExtendLoas=i,i.length>0&&(e.doNotExtendLoasEnabled=!0),e}setGracePeriodValues(t,e){e.gracePeriodEnabled=!0;const i=t.gracePeriod.charAt(t.gracePeriod.length-1);return e.gracePeriod=t.gracePeriod.substring(0,t.gracePeriod.length-1),e.gracePeriodUnit=i,e}setSpecialLoaPeriodValues(t,e){e.specialLoa=parseInt(t.periodLoa.substring(0,t.periodLoa.indexOf("|")),10),e.specialLoaPeriodEnabled=!0;let i=t.periodLoa.substring(t.periodLoa.indexOf("|")+1,t.periodLoa.length);if(i.startsWith("+")){i.endsWith(".")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="dynamic";const t=i.charAt(i.length-1);e.specialLoaPeriodDynamic=i.substring(1,i.length-1),e.specialLoaPeriodDynamicUnit=t}else i.endsWith("..")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="static",e.specialLoaPeriodStatic=i;return e}parseDynamicPeriod(t){return"+"+t.periodDynamic+t.periodDynamicUnit}parseStaticPeriod(t){return t.periodStatic}parseDontAllowLoas(t){if(!t.doNotAllowLoasEnabled)return null;let e="";return t.doNotAllowLoas.forEach(t=>e+=t+","),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}parseDontExtendLoas(t){if(!t.doNotExtendLoasEnabled)return null;let e="";return t.doNotExtendLoas.forEach(t=>e+=t+","),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}parseGracePeriod(t){return t.gracePeriodEnabled?t.gracePeriod+t.gracePeriodUnit:null}parseSpecialLoaPeriod(t){if(!t.specialLoaPeriodEnabled)return null;let e=t.specialLoa+"|";switch(t.specialLoaPeriodType){case"static":e+=this.parseSpecialLoaPeriodStatic(t);break;case"dynamic":e+=this.parseSpecialLoaPeriodDynamic(t)}return null!=e&&t.specialLoaPeriodExtendExpiredMembers&&(e+="."),e}parseSpecialLoaPeriodStatic(t){return t.specialLoaPeriodStatic}parseSpecialLoaPeriodDynamic(t){return"+"+t.specialLoaPeriodDynamic+t.specialLoaPeriodDynamicUnit}parseAttributeValueFromConfig(t){if(!t.enabled)return null;const e=this.parsePeriod(t),i=this.parseDontAllowLoas(t),o=this.parseDontExtendLoas(t),a=this.parseGracePeriod(t),s=this.parseSpecialLoaPeriod(t),n={period:e};return null!==o&&(n.doNotExtendLoa=o),null!==i&&(n.doNotAllowLoa=i),null!==a&&(n.gracePeriod=a),null!==s&&(n.periodLoa=s),n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[h.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"],[3,"model","title","modelChange"],["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"],["mat-flat-button","","color","primary",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&h.YNc(0,ke,68,70,"div",0),2&t&&h.Q6J("ngIf",e.currentConfiguration)},directives:[o.O5,Se.Rr,Ne.JJ,Ne.On,ve.VQ,ve.U0,xe,Le.KE,Le.UY,Ce.gD,o.sg,Re.Nt,Ne.Fj,Ne.c5,Le.hX,E.gM,b.lW,Le.bx,De.ey,Me.oG],pipes:[_.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:[r.BQ]}}),t})();function Be(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-expiration-settings",1),h.NdJ("saveAttribute",function(e){return h.CHM(t),h.oxw().saveExpirationAttribute(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("expirationAttribute",t.expirationAttribute)}}let je=(()=>{class t{constructor(t,e,i,o,a){this.attributesManager=t,this.route=e,this.translate=i,this.notificator=o,this.apiRequest=a,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(t=>this.errorMessage=t)}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.loadSettings()})}loadSettings(){this.attributesManager.getVoAttributeByName(this.voId,p.r.VO_DEF_EXPIRATION_RULES).subscribe(t=>{this.expirationAttribute=t})}saveExpirationAttribute(t){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.voId,attribute:t}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},t=>{console.log(t),this.notificator.showRPCError(t.error,this.errorMessage)})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.H8),h.Y36(a.gz),h.Y36(_.sK),h.Y36(u.V6),h.Y36(u.F5))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&h.YNc(0,Be,1,1,"app-expiration-settings",0),2&t&&h.Q6J("ngIf",void 0!==e.expirationAttribute)},directives:[o.O5,ze],styles:[""],data:{animation:[r.BQ]}}),t})();var He=i(62284),$e=i(489);function Xe(t,e){if(1&t&&h._UZ(0,"app-managers-page",1),2&t){const t=h.oxw();h.Q6J("complementaryObject",t.vo)("complementaryObjectType",t.type)("theme",t.theme)("availableRoles",t.availableRoles)}}let We=(()=>{class t{constructor(t,e,i,o){this.dialog=t,this.voService=e,this.route=i,this.guiAuthResolver=o,this.availableRoles=[],this.selected="user",this.type="Vo",this.theme="vo-theme"}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.uw),h.Y36(l.YF),h.Y36(a.gz),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&h.YNc(0,Xe,1,4,"app-managers-page",0),2&t&&h.Q6J("ngIf",e.vo)},directives:[o.O5,$e.s],styles:[""]}),t})();function Ke(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function ti(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"mat-form-field",8),h.TgZ(4,"textarea",17),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).reason=e}),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),h.xp6(3),h.Q6J("ngModel",t.reason)}}function ei(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",7),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"mat-form-field",8),h.TgZ(4,"mat-select",9),h.NdJ("valueChange",function(e){return h.CHM(t),h.oxw().mailType=e}),h.TgZ(5,"mat-option",10),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"mat-option",11),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"mat-option",12),h._uU(12),h.ALo(13,"translate"),h.qZA(),h.TgZ(14,"mat-option",13),h._uU(15),h.ALo(16,"translate"),h.qZA(),h.TgZ(17,"mat-option",14),h._uU(18),h.ALo(19,"translate"),h.qZA(),h.TgZ(20,"mat-option",15),h._uU(21),h.ALo(22,"translate"),h.qZA(),h.qZA(),h.qZA(),h.YNc(23,ti,5,4,"div",16),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.hij(" ",h.lcZ(2,9,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),h.xp6(3),h.Q6J("value",t.mailType),h.xp6(2),h.Oqu(h.lcZ(7,11,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),h.xp6(3),h.Oqu(h.lcZ(10,13,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),h.xp6(3),h.Oqu(h.lcZ(13,15,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),h.xp6(3),h.Oqu(h.lcZ(16,17,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),h.xp6(3),h.Oqu(h.lcZ(19,19,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),h.xp6(3),h.Oqu(h.lcZ(22,21,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),h.xp6(2),h.Q6J("ngIf","APP_REJECTED_USER"===t.mailType)}}let ii=(()=>{class t{constructor(t,e,i,o,a){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=o,this.registrarManager=a,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(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close()})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(_.sK),h.Y36(u.V6),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","accent",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","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],[4,"ngIf"],["matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Ke,1,0,"mat-spinner",1),h.YNc(5,ei,24,23,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Gre("",e.theme,"}"),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},directives:[A.uh,o.O5,A.H8,b.lW,I.$g,A.xY,Le.KE,Ce.gD,De.ey,Re.Nt,Ne.Fj,Ne.JJ,Ne.On],pipes:[_.X$],styles:[""]}),t})();function oi(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function ai(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",7),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"mat-form-field",8),h.TgZ(4,"textarea",9),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().reason=e}),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),h.xp6(3),h.Q6J("ngModel",t.reason)}}let si=(()=>{class t{constructor(t,e,i,o,a){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=o,this.registrarManager=a,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close()})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(_.sK),h.Y36(u.V6),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,oi,1,0,"mat-spinner",1),h.YNc(5,ai,5,4,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},directives:[A.uh,o.O5,A.H8,b.lW,I.$g,A.xY,Le.KE,Re.Nt,Ne.Fj,Ne.JJ,Ne.On],pipes:[_.X$],styles:[""]}),t})();function ni(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function ri(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function li(t,e){if(1&t&&(h.TgZ(0,"mat-form-field"),h.TgZ(1,"label"),h._UZ(2,"input",9),h.qZA(),h.YNc(3,ri,3,3,"mat-error",8),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Q6J("formControl",t.emailControl),h.xp6(1),h.Q6J("ngIf",t.emailControl.invalid)}}function ci(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function ui(t,e){if(1&t&&(h.TgZ(0,"mat-form-field"),h._UZ(1,"input",10),h.YNc(2,ci,3,3,"mat-error",8),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Q6J("formControl",t.inputControl),h.xp6(1),h.Q6J("ngIf",t.inputControl.invalid)}}function pi(t,e){if(1&t&&(h.TgZ(0,"div",7),h.YNc(1,li,4,2,"mat-form-field",8),h.YNc(2,ui,3,2,"mat-form-field",8),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf",null!==t.emailControl),h.xp6(1),h.Q6J("ngIf",null!==t.inputControl)}}let di=(()=>{class t{constructor(t,e,i,o,a){this.dialogRef=t,this.data=e,this.notificator=i,this.translateService=o,this.registrarService=a,this.loading=!1,this.inputControl=null,this.emailControl=null}ngOnInit(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=this.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new Ne.NI(this.formItemData.value,[Ne.kI.required,Ne.kI.email]):this.inputControl=new Ne.NI(this.formItemData.value,[Ne.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)}getLabel(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(u.V6),h.Y36(_.sK),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,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"],["type","text","matInput","","required","",3,"formControl"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,ni,1,0,"mat-spinner",1),h.YNc(5,pi,3,2,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.AsE("",h.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",e.itemName,""),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading||null!==e.inputControl&&e.inputControl.invalid||null!==e.emailControl&&e.emailControl.invalid),h.xp6(1),h.hij(" ",h.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},directives:[A.uh,o.O5,A.H8,b.lW,I.$g,A.xY,Le.KE,Re.Nt,Ne.Fj,Ne.Q7,Ne.JJ,Ne.oH,Le.TO],pipes:[_.X$],styles:[""]}),t})();var gi=i(27679),hi=i(84650);function mi(t,e){if(1&t&&(h.TgZ(0,"span",5),h._uU(1),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.hij(" #",t.application.id," ")}}function Ai(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function Ti(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",17),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).verifyApplication()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function Ii(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",17),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).approveApplication()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function fi(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",18),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).rejectApplication()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function Ei(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",18),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).deleteApplication()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function Zi(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",19),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).resendNotification()}),h.TgZ(1,"i",14),h._uU(2," mail_outline "),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function bi(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"span",10),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._uU(4),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Oqu(h.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),h.xp6(2),h.hij(": ",t.application.vo.name," ")}}function _i(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"span",10),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._uU(4),h.TgZ(5,"span",10),h._uU(6),h.ALo(7,"translate"),h.qZA(),h._uU(8),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Oqu(h.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),h.xp6(2),h.hij(": ",t.application.group.name," "),h.xp6(2),h.Oqu(h.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),h.xp6(2),h.hij(": ",t.application.vo.name," ")}}function Si(t,e){1&t&&(h.TgZ(0,"span"),h.TgZ(1,"mat-icon",20),h._uU(2,"arrow_right_alt"),h.qZA(),h._uU(3," Initial "),h.qZA())}function Ni(t,e){1&t&&(h.TgZ(0,"span"),h.TgZ(1,"mat-icon",20),h._uU(2,"restore"),h.qZA(),h._uU(3," Extension "),h.qZA())}function vi(t,e){1&t&&(h.TgZ(0,"span"),h.TgZ(1,"mat-icon",20),h._uU(2,"nat"),h.qZA(),h._uU(3," Embedded "),h.qZA())}function Oi(t,e){if(1&t&&(h.TgZ(0,"div",21),h.TgZ(1,"mat-card-title"),h.TgZ(2,"i",22),h._uU(3,"clear"),h.qZA(),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div"),h.TgZ(7,"span",10),h._uU(8),h.ALo(9,"translate"),h.qZA(),h._uU(10),h.ALo(11,"date"),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(4),h.AsE(" ",h.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",t.getModifiedAtName(t.application.modifiedBy),""),h.xp6(4),h.Oqu(h.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),h.xp6(2),h.hij(": ",h.xi3(11,8,t.application.modifiedAt,"d.M.y H:mm:ss"),"")}}function xi(t,e){if(1&t&&(h.TgZ(0,"div",21),h.TgZ(1,"mat-card-title"),h.TgZ(2,"i",23),h._uU(3,"done"),h.qZA(),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div"),h.TgZ(7,"span",10),h._uU(8),h.ALo(9,"translate"),h.qZA(),h._uU(10),h.ALo(11,"date"),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(4),h.AsE(" ",h.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",t.getModifiedAtName(t.application.modifiedBy),""),h.xp6(4),h.Oqu(h.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),h.xp6(2),h.hij(": ",h.xi3(11,8,t.application.modifiedAt,"d.M.y H:mm:ss"),"")}}function Li(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"span",10),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._uU(4),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Oqu(h.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),h.xp6(2),h.hij(": ",t.userMail,"")}}function Ci(t,e){1&t&&h._UZ(0,"th",32)}function Ri(t,e){if(1&t&&(h.TgZ(0,"td",33),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3);h.xp6(1),h.AsE("",i.getLabel(t.formItem),"",t.formItem.type.startsWith("FROM_FEDERATION")?"*":"","")}}function Di(t,e){1&t&&h._UZ(0,"th",32)}function Mi(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",36),h.NdJ("click",function(){h.CHM(t);const e=h.oxw().$implicit;return h.oxw(3).editApplicationData(e)}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function Ui(t,e){if(1&t&&(h.TgZ(0,"td",34),h._uU(1),h.YNc(2,Mi,3,0,"button",35),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3);h.xp6(1),h.hij(" ",t.value," "),h.xp6(1),h.Q6J("ngIf",!t.formItem.type.startsWith("FROM_FEDERATION")&&("NEW"===i.application.state||"VERIFIED"===i.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==t.formItem.type)}}function qi(t,e){1&t&&h._UZ(0,"tr",37)}function Pi(t,e){1&t&&h._UZ(0,"tr",38)}function wi(t,e){if(1&t&&(h.TgZ(0,"table",24),h.ynx(1,25),h.YNc(2,Ci,1,0,"th",26),h.YNc(3,Ri,2,2,"td",27),h.BQk(),h.ynx(4,28),h.YNc(5,Di,1,0,"th",26),h.YNc(6,Ui,3,2,"td",29),h.BQk(),h.YNc(7,qi,1,0,"tr",30),h.YNc(8,Pi,1,0,"tr",31),h.qZA()),2&t){const t=h.oxw(2);h.Q6J("dataSource",t.dataSource),h.xp6(7),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}function yi(t,e){1&t&&(h.TgZ(0,"div",39),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij("*",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VALUE_BY_EXTERNALS"),""))}function Gi(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,Ti,3,3,"button",7),h.YNc(2,Ii,3,3,"button",7),h.YNc(3,fi,3,3,"button",8),h.YNc(4,Ei,3,3,"button",8),h.YNc(5,Zi,5,3,"button",9),h.YNc(6,bi,5,4,"div",4),h.YNc(7,_i,9,8,"div",4),h.TgZ(8,"div"),h.TgZ(9,"span",10),h._uU(10),h.ALo(11,"translate"),h.qZA(),h._uU(12,": "),h._UZ(13,"span",11),h.ALo(14,"applicationState"),h.qZA(),h.TgZ(15,"div"),h.TgZ(16,"span",10),h._uU(17),h.ALo(18,"translate"),h.qZA(),h._uU(19,": "),h.YNc(20,Si,4,0,"span",4),h.YNc(21,Ni,4,0,"span",4),h.YNc(22,vi,4,0,"span",4),h.qZA(),h.YNc(23,Oi,12,11,"div",12),h.YNc(24,xi,12,11,"div",12),h.TgZ(25,"div",13),h.TgZ(26,"mat-card-title"),h.TgZ(27,"i",14),h._uU(28,"redo"),h.qZA(),h._uU(29),h.ALo(30,"translate"),h.ALo(31,"userFullName"),h.qZA(),h.YNc(32,Li,5,4,"div",4),h.TgZ(33,"div"),h.TgZ(34,"span",10),h._uU(35),h.ALo(36,"translate"),h.qZA(),h._uU(37),h.qZA(),h.TgZ(38,"div"),h.TgZ(39,"span",10),h._uU(40),h.ALo(41,"translate"),h.qZA(),h._uU(42),h.qZA(),h.TgZ(43,"div"),h.TgZ(44,"span",10),h._uU(45),h.ALo(46,"translate"),h.qZA(),h._uU(47),h.ALo(48,"date"),h.qZA(),h.YNc(49,wi,9,3,"table",15),h.YNc(50,yi,3,3,"div",16),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf","NEW"===t.application.state&&t.verifyAuth),h.xp6(1),h.Q6J("ngIf",("VERIFIED"===t.application.state||"NEW"===t.application.state)&&t.approveAuth),h.xp6(1),h.Q6J("ngIf",("VERIFIED"===t.application.state||"NEW"===t.application.state)&&t.rejectAuth),h.xp6(1),h.Q6J("ngIf",("REJECTED"===t.application.state||"NEW"===t.application.state)&&t.deleteAuth),h.xp6(1),h.Q6J("ngIf",t.resendAuth),h.xp6(1),h.Q6J("ngIf",!t.application.group),h.xp6(1),h.Q6J("ngIf",t.application.group),h.xp6(3),h.Oqu(h.lcZ(11,26,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),h.xp6(3),h.Q6J("outerHTML",h.lcZ(14,28,t.application.state),h.oJD),h.xp6(4),h.Oqu(h.lcZ(18,30,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),h.xp6(3),h.Q6J("ngIf","INITIAL"===t.application.type),h.xp6(1),h.Q6J("ngIf","EXTENSION"===t.application.type),h.xp6(1),h.Q6J("ngIf","EMBEDDED"===t.application.type),h.xp6(1),h.Q6J("ngIf","REJECTED"===t.application.state),h.xp6(1),h.Q6J("ngIf","APPROVED"===t.application.state),h.xp6(5),h.AsE(" ",h.lcZ(30,32,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===t.application.user?t.submittedBy():h.lcZ(31,34,t.application.user),""),h.xp6(3),h.Q6J("ngIf",t.userMail),h.xp6(3),h.Oqu(h.lcZ(36,36,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),h.xp6(2),h.hij(": ",t.application.extSourceName,""),h.xp6(3),h.Oqu(h.lcZ(41,38,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),h.xp6(2),h.hij(": ",t.application.extSourceLoa,""),h.xp6(3),h.Oqu(h.lcZ(46,40,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),h.xp6(2),h.hij(": ",h.xi3(48,42,t.application.createdAt,"d.M.y H:mm:ss"),""),h.xp6(2),h.Q6J("ngIf",0!==t.userData.length),h.xp6(1),h.Q6J("ngIf",0!==t.userData.length)}}let Yi=(()=>{class t{constructor(t,e,i,o,a,s,n,r){this.registrarManager=t,this.dialog=e,this.translate=i,this.route=o,this.notificator=a,this.router=s,this.authResolver=n,this.usersService=r,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.dialogTheme=t.groupId?"group-theme":t.memberId?"member-theme":"vo-theme",this.registrarManager.getApplicationById(t.applicationId).subscribe(t=>{this.application=t,"EMBEDDED"===this.application.type&&this.application.user?this.usersService.getRichUserWithAttributes(this.application.user.id).subscribe(t=>{var e;const i=t.userAttributes.find(t=>"preferredMail"===t.friendlyName);this.userMail=null===(e=null==i?void 0:i.value)||void 0===e?void 0:e.toString(),this.setAuthRights(),this.loading=!1}):this.registrarManager.getApplicationDataById(this.application.id).subscribe(t=>{this.userData=t,this.dataSource=new st.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(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}submittedBy(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}getModifiedAtName(t){const e=t.lastIndexOf("/CN=");if(-1!==e){const i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}resendNotification(){const t=(0,c.kZ)();t.width="500px",t.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(ii,t)}deleteApplication(){this.loading=!0,this.registrarManager.deleteApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(t=>{this.notificator.showSuccess(t),this.router.navigateByUrl(this.router.url.substring(0,this.router.url.lastIndexOf("/")))})})}rejectApplication(){const t=(0,c.kZ)();t.width="500px",t.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(si,t).afterClosed().subscribe(()=>{this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(t=>{this.application=t,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(t=>{this.notificator.showSuccess(t)}),this.registrarManager.getApplicationById(this.application.id).subscribe(t=>{this.application=t,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(t=>{this.notificator.showSuccess(t)}),this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(t=>{this.application=t,this.loading=!1})})}editApplicationData(t){const e=(0,c.kZ)();e.width="600px",e.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:t},this.dialog.open(di,e)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.tk),h.Y36(A.uw),h.Y36(_.sK),h.Y36(a.gz),h.Y36(u.V6),h.Y36(a.F0),h.Y36(u.x4),h.Y36(l.Fv))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","","class","mr-2 mb-2",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"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],["class","font-italic",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",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"],["mat-cell","","class","font-weight-bold",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["mat-header-row","","class","h-50",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["mat-icon-button","","aria-label","Edit Application data",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Edit Application data",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""],[1,"font-italic"]],template:function(t,e){1&t&&(h.TgZ(0,"h2",0),h._uU(1),h.ALo(2,"translate"),h.YNc(3,mi,2,1,"span",1),h.qZA(),h._UZ(4,"mat-divider",2),h.YNc(5,Ai,1,0,"mat-spinner",3),h.YNc(6,Gi,51,45,"div",4)),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),h.xp6(2),h.Q6J("ngIf",!!e.application),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,gi.d,I.$g,lt.n5,b.lW,f.Hw,st.BZ,st.w1,st.fO,st.Dz,st.as,st.nj,st.ge,st.ev,st.XQ,st.Gk],pipes:[_.X$,hi.h,Vt.d,o.uU],styles:[""]}),t})();var Ji=i(11930),Vi=i(7433);let Fi=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&h._UZ(0,"app-animated-router-outlet")},directives:[Z.A],styles:[""],data:{animation:[r.Ji]}}),t})();var Qi=i(55109),ki=i(69012);function zi(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.hij(" ",h.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function Bi(t,e){if(1&t&&h._UZ(0,"app-one-entity-attribute-page",4),2&t){const t=h.oxw();h.Q6J("entity","group")("entityId",t.groupId)}}function ji(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",h.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function Hi(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",5),2&t){const t=h.oxw(2);h.Q6J("firstEntity","group")("firstEntityId",t.groupId)("secondEntity","member")}}function $i(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,ji,3,6,"ng-template",1),h.YNc(2,Hi,1,3,"ng-template",2),h.qZA())}function Xi(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",h.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Wi(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",5),2&t){const t=h.oxw(2);h.Q6J("firstEntity","group")("firstEntityId",t.groupId)("secondEntity","resource")}}function Ki(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,Xi,3,6,"ng-template",1),h.YNc(2,Wi,1,3,"ng-template",2),h.qZA())}let to=(()=>{class t{constructor(t,e,i){this.route=t,this.groupManager=e,this.authResolver=i}ngOnInit(){this.route.parent.params.subscribe(t=>{this.groupId=t.groupId,this.groupManager.getGroupById(this.groupId).subscribe(t=>{this.group=t,this.groupResourceAttAuth=this.authResolver.isAuthorized("getAssignedResources_Group_policy",[this.group]),this.groupMemberAttAuth=this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_List_List_boolean_policy",[this.group])})})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(l.ff),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-tab-group"),h.TgZ(5,"mat-tab"),h.YNc(6,zi,2,3,"ng-template",1),h.YNc(7,Bi,1,2,"ng-template",2),h.qZA(),h.YNc(8,$i,3,0,"mat-tab",3),h.YNc(9,Ki,3,0,"mat-tab",3),h.qZA(),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),h.xp6(6),h.Q6J("ngIf",e.groupMemberAttAuth),h.xp6(1),h.Q6J("ngIf",e.groupResourceAttAuth))},directives:[Qi.SP,Qi.uX,Qi.uD,Qi.Vc,o.O5,fe.t,ki.Y],pipes:[_.X$],styles:[""]}),t})();function eo(t,e){1&t&&h._UZ(0,"mat-spinner",2)}function io(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-menu-buttons-field",3),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("items",t.items)("size","small")}}let oo=(()=>{class t{constructor(t,e,i,o,a,s,n,r,l){this.sideMenuService=t,this.voService=e,this.groupService=i,this.route=o,this.router=a,this.guiAuthResolver=s,this.apiRequest=n,this.attributesManager=r,this.notificator=l,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{const e=t.voId;this.groupService.getGroupById(t.groupId).subscribe(t=>{this.group=t,this.voService.getVoById(e).subscribe(t=>{this.vo=t,this.initItems(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}initItems(){this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,p.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/expiration`,label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t)}),this.guiAuthResolver.isManagerPagePrivileged(this.group)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/managers`,label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group])&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/applicationForm`,label:"MENU_ITEMS.GROUP.APPLICATION_FORM",style:"group-btn"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group])&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/notifications`,label:"MENU_ITEMS.GROUP.NOTIFICATIONS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group])&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/relations`,label:"MENU_ITEMS.GROUP.RELATIONS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getGroupExtSources_Group_policy",[this.group])&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.vo.id}/groups/${this.group.id}/settings/extsources`,label:"MENU_ITEMS.GROUP.EXTSOURCES",style:"group-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(l.ff),h.Y36(a.gz),h.Y36(a.F0),h.Y36(u.x4),h.Y36(u.F5),h.Y36(l.H8),h.Y36(u.V6))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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(t,e){1&t&&(h.YNc(0,eo,1,0,"mat-spinner",0),h.YNc(1,io,2,2,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,I.$g,k.L],styles:[""]}),t})();var ao=i(14527);function so(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function no(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",10),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).switchToInitial()}),h.TgZ(1,"i",11),h._uU(2,"arrow_right_alt"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function ro(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",10),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).switchToExtension()}),h.TgZ(1,"i",11),h._uU(2,"cached"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function lo(t,e){if(1&t&&(h.TgZ(0,"mat-option",12),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"uppercase"),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",h.lcZ(2,2,h.lcZ(3,4,"SHARED_LIB.LANGUAGES."+t))," ")}}function co(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function uo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function po(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h._UZ(5,"input",19),h.qZA(),h.qZA(),h.TgZ(6,"div",20),h.YNc(7,co,2,1,"mat-icon",21),h.YNc(8,uo,2,1,"mat-icon",21),h.TgZ(9,"span",22),h._uU(10),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function go(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function ho(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function mo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h._UZ(5,"input",24),h.qZA(),h.qZA(),h.TgZ(6,"div",20),h.YNc(7,go,2,1,"mat-icon",21),h.YNc(8,ho,2,1,"mat-icon",21),h.TgZ(9,"span",22),h._uU(10),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(4),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Ao(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function To(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Io(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h._UZ(5,"input",25),h._UZ(6,"br"),h._UZ(7,"input",19),h.qZA(),h.qZA(),h.TgZ(8,"div",20),h.YNc(9,Ao,2,1,"mat-icon",21),h.YNc(10,To,2,1,"mat-icon",21),h.TgZ(11,"span",22),h._uU(12),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function fo(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"input",27),h._uU(2),h._UZ(3,"br"),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3).$implicit;h.xp6(1),h.Q6J("disabled","ALWAYS"===i.disabled),h.xp6(1),h.hij(" ",t,"")}}function Eo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Zo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function bo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"form",18),h.YNc(5,fo,4,2,"div",9),h._UZ(6,"input",26),h.ALo(7,"translate"),h.qZA(),h.qZA(),h.TgZ(8,"div",20),h.YNc(9,Eo,2,1,"mat-icon",21),h.YNc(10,Zo,2,1,"mat-icon",21),h.TgZ(11,"span",22),h._uU(12),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("ngForOf",e.getLocalizedOptions(t)),h.xp6(1),h.s9C("value",h.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(3),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function _o(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"span",28),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(1),h.Q6J("innerHTML",e.getLocalizedLabel(t),h.oJD)}}function So(t,e){if(1&t&&(h.TgZ(0,"option"),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t)}}function No(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function vo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Oo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"select",29),h.YNc(6,So,2,1,"option",9),h.qZA(),h.qZA(),h.qZA(),h.TgZ(7,"div",20),h.YNc(8,No,2,1,"mat-icon",21),h.YNc(9,vo,2,1,"mat-icon",21),h.TgZ(10,"span",22),h._uU(11),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(1),h.Q6J("ngForOf",e.getLocalizedOptions(t)),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function xo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Lo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Co(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h._UZ(4,"textarea",30),h.qZA(),h.TgZ(5,"div",20),h.YNc(6,xo,2,1,"mat-icon",21),h.YNc(7,Lo,2,1,"mat-icon",21),h.TgZ(8,"span",22),h._uU(9),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(1),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Ro(t,e){if(1&t&&(h.TgZ(0,"option",35),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t)}}function Do(t,e){1&t&&(h.TgZ(0,"div",36),h.TgZ(1,"form"),h._UZ(2,"input",37),h.qZA(),h.qZA())}function Mo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Uo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function qo(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"select",31),h.NdJ("ngModelChange",function(e){h.CHM(t);const i=h.oxw(2).$implicit;return h.oxw(2).mapForCombobox[i.id]=e}),h.TgZ(6,"option",32),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.YNc(9,Ro,2,1,"option",33),h.qZA(),h.YNc(10,Do,3,0,"div",34),h.qZA(),h.qZA(),h.TgZ(11,"div",20),h.YNc(12,Mo,2,1,"mat-icon",21),h.YNc(13,Uo,2,1,"mat-icon",21),h.TgZ(14,"span",22),h._uU(15),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("ngModel",e.mapForCombobox[t.id])("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Oqu(h.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")),h.xp6(2),h.Q6J("ngForOf",e.getLocalizedOptions(t)),h.xp6(1),h.Q6J("ngIf","true"===e.mapForCombobox[t.id]),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Po(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"input",38),h._uU(2),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3).$implicit;h.xp6(1),h.Q6J("disabled","ALWAYS"===i.disabled),h.xp6(1),h.hij(" ",t," ")}}function wo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function yo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Go(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"form",36),h.YNc(6,Po,3,2,"div",9),h.qZA(),h.qZA(),h.qZA(),h.TgZ(7,"div",20),h.YNc(8,wo,2,1,"mat-icon",21),h.YNc(9,yo,2,1,"mat-icon",21),h.TgZ(10,"span",22),h._uU(11),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(3),h.Q6J("ngForOf",e.getLocalizedOptions(t)),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Yo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Jo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Vo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"form",36),h._UZ(6,"input",38),h._uU(7," example group1 "),h._UZ(8,"br"),h._UZ(9,"input",38),h._uU(10," example group2 "),h._UZ(11,"br"),h._UZ(12,"input",38),h._uU(13," example group3 "),h.qZA(),h.qZA(),h.qZA(),h.TgZ(14,"div",20),h.YNc(15,Yo,2,1,"mat-icon",21),h.YNc(16,Jo,2,1,"mat-icon",21),h.TgZ(17,"span",22),h._uU(18),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(3),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(3),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(3),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(3),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Fo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",41),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Qo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",41),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function ko(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"button",39),h._uU(2),h.qZA(),h.YNc(3,Fo,2,1,"mat-icon",40),h.YNc(4,Qo,2,1,"mat-icon",40),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(1),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(1),h.Oqu(e.getLocalizedLabel(t)),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden)}}function zo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",41),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Bo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",41),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function jo(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"button",39),h._uU(2),h.qZA(),h.YNc(3,zo,2,1,"mat-icon",40),h.YNc(4,Bo,2,1,"mat-icon",40),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(1),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(1),h.Oqu(e.getLocalizedLabel(t)),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden)}}function Ho(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function $o(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Xo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"select",42),h.TgZ(6,"option",43),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.TgZ(9,"option",44),h._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),h.qZA(),h.TgZ(11,"option",45),h._uU(12,"(GMT -11:00) Midway Island, Samoa"),h.qZA(),h.TgZ(13,"option",46),h._uU(14,"(GMT -10:00) Hawaii"),h.qZA(),h.TgZ(15,"option",47),h._uU(16,"(GMT -9:30) Taiohae"),h.qZA(),h.TgZ(17,"option",48),h._uU(18,"(GMT -9:00) Alaska"),h.qZA(),h.TgZ(19,"option",49),h._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),h.qZA(),h.TgZ(21,"option",50),h._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),h.qZA(),h.TgZ(23,"option",51),h._uU(24,"(GMT -6:00) Central Time (US & Canada), Mexico City"),h.qZA(),h.TgZ(25,"option",52),h._uU(26,"(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima"),h.qZA(),h.TgZ(27,"option",53),h._uU(28,"(GMT -4:30) Caracas"),h.qZA(),h.TgZ(29,"option",54),h._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),h.qZA(),h.TgZ(31,"option",55),h._uU(32,"(GMT -3:30) Newfoundland"),h.qZA(),h.TgZ(33,"option",56),h._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),h.qZA(),h.TgZ(35,"option",57),h._uU(36,"(GMT -2:00) Mid-Atlantic"),h.qZA(),h.TgZ(37,"option",58),h._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),h.qZA(),h.TgZ(39,"option",59),h._uU(40,"(GMT) Western Europe Time, London, Lisbon, Casablanca"),h.qZA(),h.TgZ(41,"option",60),h._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),h.qZA(),h.TgZ(43,"option",61),h._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),h.qZA(),h.TgZ(45,"option",62),h._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),h.qZA(),h.TgZ(47,"option",63),h._uU(48,"(GMT +3:30) Tehran"),h.qZA(),h.TgZ(49,"option",64),h._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),h.qZA(),h.TgZ(51,"option",65),h._uU(52,"(GMT +4:30) Kabul"),h.qZA(),h.TgZ(53,"option",66),h._uU(54,"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent"),h.qZA(),h.TgZ(55,"option",67),h._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),h.qZA(),h.TgZ(57,"option",68),h._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),h.qZA(),h.TgZ(59,"option",69),h._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),h.qZA(),h.TgZ(61,"option",70),h._uU(62,"(GMT +6:30) Yangon, Mandalay"),h.qZA(),h.TgZ(63,"option",71),h._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),h.qZA(),h.TgZ(65,"option",72),h._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),h.qZA(),h.TgZ(67,"option",73),h._uU(68,"(GMT +8:45) Eucla"),h.qZA(),h.TgZ(69,"option",74),h._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),h.qZA(),h.TgZ(71,"option",75),h._uU(72,"(GMT +9:30) Adelaide, Darwin"),h.qZA(),h.TgZ(73,"option",76),h._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),h.qZA(),h.TgZ(75,"option",77),h._uU(76,"(GMT +10:30) Lord Howe Island"),h.qZA(),h.TgZ(77,"option",78),h._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),h.qZA(),h.TgZ(79,"option",79),h._uU(80,"(GMT +11:30) Norfolk Island"),h.qZA(),h.TgZ(81,"option",80),h._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),h.qZA(),h.TgZ(83,"option",81),h._uU(84,"(GMT +12:45) Chatham Islands"),h.qZA(),h.TgZ(85,"option",82),h._uU(86,"(GMT +13:00) Apia, Nukualofa"),h.qZA(),h.TgZ(87,"option",83),h._uU(88,"(GMT +14:00) Line Islands, Tokelau"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(89,"div",20),h.YNc(90,Ho,2,1,"mat-icon",21),h.YNc(91,$o,2,1,"mat-icon",21),h.TgZ(92,"span",22),h._uU(93),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.hij(" ",h.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),h.xp6(83),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Wo(t,e){if(1&t&&(h.TgZ(0,"div",14),h.YNc(1,po,11,5,"div",15),h.YNc(2,mo,11,4,"div",15),h.YNc(3,Io,13,6,"div",15),h.YNc(4,bo,13,9,"div",15),h.YNc(5,_o,2,1,"div",2),h.YNc(6,Oo,12,6,"div",15),h.YNc(7,Co,10,5,"div",15),h.YNc(8,qo,16,11,"div",15),h.YNc(9,Go,12,5,"div",15),h.YNc(10,Vo,19,7,"div",15),h.YNc(11,ko,5,4,"div",15),h.YNc(12,jo,5,4,"div",2),h.YNc(13,Xo,94,8,"div",15),h.qZA()),2&t){const t=h.oxw().$implicit;h.xp6(1),h.Q6J("ngIf",("TEXTFIELD"===t.type||"VALIDATED_EMAIL"===t.type||"USERNAME"===t.type)&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","FROM_FEDERATION_SHOW"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","PASSWORD"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","RADIO"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf",("HEADING"===t.type||"HTML_COMMENT"===t.type)&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","SELECTIONBOX"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","TEXTAREA"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","COMBOBOX"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","CHECKBOX"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","SUBMIT_BUTTON"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","TIMEZONE"===t.type&&"ALWAYS"!==t.hidden)}}function Ko(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,Wo,14,13,"div",13),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.Q6J("ngIf",i.isValid(t))}}function ta(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"div",4),h.YNc(2,no,5,3,"button",5),h.YNc(3,ro,5,3,"button",5),h.TgZ(4,"mat-form-field"),h.TgZ(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"mat-select",6),h.NdJ("valueChange",function(e){return h.CHM(t),h.oxw().currentLanguage=e}),h.YNc(9,lo,4,6,"mat-option",7),h.qZA(),h.qZA(),h.qZA(),h.TgZ(10,"div",8),h.YNc(11,Ko,2,1,"div",9),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(2),h.Q6J("ngIf",!t.initialPage),h.xp6(1),h.Q6J("ngIf",t.initialPage),h.xp6(3),h.Oqu(h.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),h.xp6(2),h.Q6J("value",t.currentLanguage),h.xp6(1),h.Q6J("ngForOf",t.languages),h.xp6(2),h.Q6J("ngForOf",t.applicationFormItems)}}let ea=(()=>{class t{constructor(t,e,i){this.route=t,this.translate=e,this.store=i,this.loading=!0,this.applicationFormItems=[],this.currentLanguage="en",this.languages=["en"],this.initialPage=!0,this.mapForCombobox=new Map}ngOnInit(){this.languages=this.store.get("supportedLanguages"),this.route.queryParamMap.subscribe(t=>{this.applicationFormItems=JSON.parse(t.get("applicationFormItems")),this.loading=!1})}switchToInitial(){this.initialPage=!0}switchToExtension(){this.initialPage=!1}getLocalizedOptions(t){if(t.i18n[this.currentLanguage]){const e=t.i18n[this.currentLanguage].options;if(null!==e&&""!==e){const t=[];for(const i of e.split("|"))t.push(i.split("#")[1]);return t}}return[]}isValid(t){if(t.forDelete)return!1;for(const e of t.applicationTypes){if("INITIAL"===e&&this.initialPage)return!0;if("EXTENSION"===e&&!this.initialPage)return!0}return!1}disabledTooltip(t){let e,i,o;switch(t.disabled){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED");case"IF_PREFILLED":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.disabledDependencyItemId).shortname,o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${e} ${i} ${o}`;case"IF_EMPTY":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.disabledDependencyItemId).shortname,o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${e} ${i} ${o}`;default:return""}}hiddenTooltip(t){let e,i,o;switch(t.hidden){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN");case"IF_PREFILLED":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.hiddenDependencyItemId).shortname,o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${e} ${i} ${o}`;case"IF_EMPTY":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.hiddenDependencyItemId).shortname,o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${e} ${i} ${o}`;default:return""}}getLocalizedLabel(t){return t.i18n[this.currentLanguage]&&t.i18n[this.currentLanguage].label?t.i18n[this.currentLanguage].label:t.shortname}getLocalizedHint(t){return t.i18n[this.currentLanguage]?t.i18n[this.currentLanguage].help:""}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(_.sK),h.Y36(u.d6))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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","disabled","",1,"w-100"],["type","text",1,"mb-1","w-100",3,"disabled"],["type","reset",3,"disabled","value"],["type","radio","name","temp",3,"disabled"],[3,"innerHTML"],[1,"w-100",3,"disabled"],[1,"w-50",3,"disabled"],[1,"w-100",3,"ngModel","disabled","ngModelChange"],["value","true","selected",""],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],[1,"w-100"],["type","text"],["type","checkbox",3,"disabled"],["mat-flat-button","","color","accent",3,"disabled"],["class","pointer left",3,"matTooltip",4,"ngIf"],[1,"pointer","left",3,"matTooltip"],["name","timezone_offset","id","timezone-offset",1,"w-100",3,"disabled"],["value","-12:00","selected","selected"],["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"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,so,1,0,"mat-spinner",1),h.YNc(4,ta,12,8,"div",2)),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,I.$g,Le.KE,Le.hX,Ce.gD,o.sg,b.lW,De.ey,f.Hw,E.gM,Ne._Y,Ne.JL,Ne.F,Ne.YN,Ne.Kr,Ne.EJ,Ne.JJ,Ne.On],pipes:[_.X$,o.gd],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function ia(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.hij(" ",h.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function oa(t,e){if(1&t&&h._UZ(0,"app-one-entity-attribute-page",5),2&t){const t=h.oxw();h.Q6J("entity","member")("entityId",t.memberId)}}function aa(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",h.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function sa(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",6),2&t){const t=h.oxw(2);h.Q6J("firstEntity","member")("firstEntityId",t.memberId)("secondEntity","group")}}function na(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,aa,3,6,"ng-template",1),h.YNc(2,sa,1,3,"ng-template",2),h.qZA())}function ra(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",h.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function la(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",6),2&t){const t=h.oxw(2);h.Q6J("firstEntity","member")("firstEntityId",t.memberId)("secondEntity","resource")}}function ca(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,ra,3,6,"ng-template",1),h.YNc(2,la,1,3,"ng-template",2),h.qZA())}function ua(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.hij(" ",h.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function pa(t,e){if(1&t&&h._UZ(0,"app-one-entity-attribute-page",7),2&t){const t=h.oxw();h.Q6J("entityId",t.member.userId)("entity","user")}}function da(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",h.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function ga(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",6),2&t){const t=h.oxw(2);h.Q6J("firstEntity","user")("firstEntityId",t.member.userId)("secondEntity","facility")}}function ha(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,da,3,6,"ng-template",1),h.YNc(2,ga,1,3,"ng-template",2),h.qZA())}let ma=(()=>{class t{constructor(t,e,i){this.route=t,this.authResolver=e,this.memberManager=i}ngOnInit(){this.route.parent.params.subscribe(t=>{this.memberId=t.memberId,this.memberManager.getMemberById(this.memberId).subscribe(t=>{this.member=t,this.memberGroupAttAuth=this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.member]),this.memberResourceAttAuth=this.authResolver.isAuthorized("getAllowedResources_Member_policy",[this.member]),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{beanName:"User",id:t.userId}])})})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(u.x4),h.Y36(l.uq))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:14,vars:6,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[1,"mb-2"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"],[3,"entityId","entity"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-tab-group"),h.TgZ(5,"mat-tab"),h.YNc(6,ia,2,3,"ng-template",1),h.YNc(7,oa,1,2,"ng-template",2),h.qZA(),h.YNc(8,na,3,0,"mat-tab",3),h.YNc(9,ca,3,0,"mat-tab",3),h.TgZ(10,"mat-tab",4),h.YNc(11,ua,2,3,"ng-template",1),h.YNc(12,pa,1,2,"ng-template",2),h.qZA(),h.YNc(13,ha,3,0,"mat-tab",3),h.qZA(),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),h.xp6(6),h.Q6J("ngIf",e.memberGroupAttAuth),h.xp6(1),h.Q6J("ngIf",e.memberResourceAttAuth),h.xp6(4),h.Q6J("ngIf",e.userFacilityAttAuth))},directives:[Qi.SP,Qi.uX,Qi.uD,Qi.Vc,o.O5,fe.t,ki.Y],pipes:[_.X$],styles:[""]}),t})(),Aa=(()=>{class t{constructor(t,e,i,o,a){this.sideMenuService=t,this.voService=e,this.authResolver=i,this.route=o,this.router=a,this.items=[]}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.initItems()})})}initItems(){this.items=[{cssIcon:"perun-resource",url:`/organizations/${this.vo.id}/resources/preview`,label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}],this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-resource-tags",url:`/organizations/${this.vo.id}/resources/tags`,label:"MENU_ITEMS.VO.RESOURCE_TAGS",style:"vo-btn"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-resources-state",url:`/organizations/${this.vo.id}/resources/states`,label:"MENU_ITEMS.VO.RESOURCE_STATES",style:"vo-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(u.x4),h.Y36(a.gz),h.Y36(a.F0))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-menu-buttons-field",0),h.qZA()),2&t&&(h.xp6(1),h.Q6J("items",e.items)("size","small"))},directives:[k.L],styles:[""]}),t})();var Ta=i(88227),Ia=i(97397),fa=i(4230);function Ea(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function Za(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",7),h.TgZ(1,"mat-form-field"),h.TgZ(2,"input",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().name=e}),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-error"),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(2),h.s9C("placeholder",h.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),h.Q6J("ngModel",t.name),h.xp6(3),h.Oqu(h.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let ba=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.resourceManager=i,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 t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.xk))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["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","accent",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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Ea,1,0,"mat-spinner",1),h.YNc(5,Za,7,7,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},directives:[A.uh,o.O5,A.H8,b.lW,I.$g,A.xY,Le.KE,Re.Nt,Ne.Fj,Ne.Q7,Ne.JJ,Ne.On,Le.TO],pipes:[_.X$],styles:[""]}),t})();function _a(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function Sa(t,e){1&t&&h._UZ(0,"th",15)}function Na(t,e){if(1&t&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t.tagName," ")}}function va(t,e){1&t&&h._UZ(0,"tr",17)}function Oa(t,e){1&t&&h._UZ(0,"tr",18)}function xa(t,e){if(1&t&&(h.TgZ(0,"div",7),h.TgZ(1,"p"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",8),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"table",9),h.ynx(8,10),h.YNc(9,Sa,1,0,"th",11),h.YNc(10,Na,2,1,"td",12),h.BQk(),h.YNc(11,va,1,0,"tr",13),h.YNc(12,Oa,1,0,"tr",14),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),h.xp6(3),h.hij(" ",h.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),h.xp6(2),h.Q6J("dataSource",t.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}let La=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.resourceManager=i,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new st.by(this.data.tagsForDelete)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;for(const t of this.data.tagsForDelete)this.resourceManager.deleteResourceTag({resourceTag:t}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.dialogRef.close(!0))}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.xk))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,_a,1,0,"mat-spinner",1),h.YNc(5,xa,13,9,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},directives:[A.uh,o.O5,A.H8,b.lW,I.$g,A.xY,st.BZ,st.w1,st.fO,st.Dz,st.as,st.nj,st.ge,st.ev,st.XQ,st.Gk],pipes:[_.X$],styles:[""]}),t})();var Ca=i(60611),Ra=i(59403),Da=i(19139),Ma=i(4196);function Ua(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().create()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function qa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().deleteTag()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function Pa(t,e){1&t&&h._UZ(0,"mat-spinner",9)}function wa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-resources-tags-list",10),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("selection",t.selection)("pageSize",t.pageSize)("resourceTags",t.resourceTag)("filterValue",t.filterValue)("displayedColumns",t.displayedColumns)("entity","vo")}}let ya=(()=>{class t{constructor(t,e,i,o,a,s,n,r){this.route=t,this.resourceManager=e,this.dialog=i,this.notificator=o,this.tableConfigService=a,this.translator=s,this.authResolver=n,this.voService=r,this.loading=!1,this.resourceTag=[],this.selection=new fa.Ov(!0,[]),this.tableId=Ca.O7,this.displayedColumns=[]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.voService.getVoById(this.voId).subscribe(t=>{this.vo=t,this.updateData()})})}deleteTag(){const t=(0,c.kZ)();t.width="450px",t.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(La,t).afterClosed().subscribe(t=>{t&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.updateData())})}create(){const t=(0,c.kZ)();t.width="450px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(ba,t).afterClosed().subscribe(t=>{t&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.voId).subscribe(t=>{this.resourceTag=t,this.selection.clear(),this.setAuthRights(),this.loading=!1})}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")}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(l.xk),h.Y36(A.uw),h.Y36(u.V6),h.Y36(Ca.dB),h.Y36(_.sK),h.Y36(u.x4),h.Y36(l.YF))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.updateData()}),h.qZA(),h.YNc(4,Ua,3,3,"button",2),h.YNc(5,qa,3,4,"button",3),h.TgZ(6,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(7,Pa,1,0,"mat-spinner",5),h.YNc(8,wa,1,6,"app-resources-tags-list",6)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),h.xp6(3),h.Q6J("ngIf",e.createAuth),h.xp6(1),h.Q6J("ngIf",e.deleteAuth),h.xp6(1),h.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[Ra.t,o.O5,Da.L,b.lW,I.$g,Ma.o],pipes:[_.X$],styles:[""]}),t})();function Ga(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-expiration-settings",1),h.NdJ("saveAttribute",function(e){return h.CHM(t),h.oxw().saveExpirationAttribute(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("expirationAttribute",t.expirationAttribute)}}let Ya=(()=>{class t{constructor(t,e,i,o,a){this.attributesManager=t,this.route=e,this.translate=i,this.notificator=o,this.apiRequest=a,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(t=>this.errorMessage=t)}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.groupId=t.groupId,this.loadSettings()})}loadSettings(){this.attributesManager.getGroupAttributeByName(this.groupId,p.r.GROUP_DEF_EXPIRATION_RULES).subscribe(t=>{this.expirationAttribute=t})}saveExpirationAttribute(t){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.groupId,attribute:t}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},t=>this.notificator.showRPCError(t.error,this.errorMessage))}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.H8),h.Y36(a.gz),h.Y36(_.sK),h.Y36(u.V6),h.Y36(u.F5))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&h.YNc(0,Ga,1,1,"app-expiration-settings",0),2&t&&h.Q6J("ngIf",void 0!==e.expirationAttribute)},directives:[o.O5,ze],styles:[""]}),t})();function Ja(t,e){if(1&t&&h._UZ(0,"app-managers-page",1),2&t){const t=h.oxw();h.Q6J("complementaryObject",t.group)("complementaryObjectType",t.type)("theme",t.theme)("availableRoles",t.availableRoles)}}let Va=(()=>{class t{constructor(t,e,i){this.groupService=t,this.route=e,this.guiAuthResolver=i,this.availableRoles=[],this.selected="user",this.type="Group",this.theme="group-theme"}ngOnInit(){this.route.parent.parent.params.subscribe(t=>{this.groupService.getGroupById(t.groupId).subscribe(t=>{this.group=t})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Group")}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.ff),h.Y36(a.gz),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&h.YNc(0,Ja,1,4,"app-managers-page",0),2&t&&h.Q6J("ngIf",e.group)},directives:[o.O5,$e.s],styles:[""]}),t})();function Fa(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function Qa(t,e){1&t&&h._UZ(0,"th",15)}function ka(t,e){if(1&t&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.hij(" ",i.getMailType(t)," ")}}function za(t,e){1&t&&h._UZ(0,"tr",17)}function Ba(t,e){1&t&&h._UZ(0,"tr",18)}function ja(t,e){if(1&t&&(h.TgZ(0,"div",7),h.TgZ(1,"p"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",8),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"table",9),h.ynx(8,10),h.YNc(9,Qa,1,0,"th",11),h.YNc(10,ka,2,1,"td",12),h.BQk(),h.YNc(11,za,1,0,"tr",13),h.YNc(12,Ba,1,0,"tr",14),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),h.xp6(3),h.hij(" ",h.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),h.xp6(2),h.Q6J("dataSource",t.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}let Ha=(()=>{class t{constructor(t,e,i,o,a){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=o,this.registrarService=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new st.by(this.data.mails)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.groupId)for(const t of this.data.mails)this.registrarService.deleteApplicationMailForGroup(this.data.groupId,t.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1);else for(const t of this.data.mails)this.registrarService.deleteApplicationMailForVo(this.data.voId,t.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getMailType(t){let e="";return null==t.mailType||""===t.mailType?e="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+t.mailType).subscribe(t=>{e=t}),e}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(u.V6),h.Y36(_.sK),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Fa,1,0,"mat-spinner",1),h.YNc(5,ja,13,9,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},directives:[A.uh,o.O5,A.H8,b.lW,I.$g,A.xY,st.BZ,st.w1,st.fO,st.Dz,st.as,st.nj,st.ge,st.ev,st.XQ,st.Gk],pipes:[_.X$],styles:[""]}),t})();var $a=i(10901);function Xa(t,e){1&t&&h._UZ(0,"mat-spinner",7)}function Wa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",8),h.TgZ(1,"div"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-form-field"),h.TgZ(5,"textarea",9),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().mailFooter=e}),h.qZA(),h.qZA(),h.TgZ(6,"div",10),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.LABEL"),": "),h.xp6(3),h.Q6J("cdkTextareaAutosize",!0)("ngModel",t.mailFooter),h.xp6(2),h.Oqu(h.lcZ(8,6,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION"))}}let Ka=(()=>{class t{constructor(t,e,i,o,a){this.dialogRef=t,this.attributesManager=e,this.translateService=i,this.notificator=o,this.data=a,this.mailFooter="",this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}submit(){this.loading=!0,this.mailAttribute.value=this.mailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe(()=>{this.notificateSuccess(),this.dialogRef.close()},()=>this.loading=!1):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe(()=>{this.notificateSuccess(),this.dialogRef.close()},()=>this.loading=!1)}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,p.r.VO_DEF_MAIL_FOOTER).subscribe(t=>{this.mailAttribute=t,this.editAuth=this.mailAttribute.writable,this.mailFooter=t.value?t.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,p.r.GROUP_DEF_MAIL_FOOTER).subscribe(t=>{this.mailAttribute=t,this.editAuth=this.mailAttribute.writable,this.mailFooter=t.value?t.value:""})}notificateSuccess(){this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close()})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(l.H8),h.Y36(_.sK),h.Y36(u.V6),h.Y36(A.WI))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["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"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"mt-2","font-italic","text-muted"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Xa,1,0,"mat-spinner",1),h.YNc(5,Wa,9,8,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.cancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"div",5),h.ALo(11,"translate"),h.TgZ(12,"button",6),h.NdJ("click",function(){return e.submit()}),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),h.xp6(2),h.s9C("matTooltip",h.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),h.Q6J("matTooltipDisabled",e.editAuth)("matTooltipPosition","above"),h.xp6(2),h.Q6J("disabled",e.loading||!e.editAuth),h.xp6(1),h.hij(" ",h.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},directives:[A.uh,o.O5,A.H8,b.lW,E.gM,I.$g,A.xY,Le.KE,Re.Nt,$a.IC,Ne.Fj,Ne.JJ,Ne.On],pipes:[_.X$],styles:[""]}),t})();var ts=i(4253);function es(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"button",1),h.NdJ("click",function(){const e=h.CHM(t).$implicit;return h.oxw().addTag("{"+e[0]+"}")}),h._uU(2),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}if(2&t){const t=e.$implicit;h.xp6(2),h.hij("",t[0]," "),h.xp6(1),h.hij(" - ",h.lcZ(4,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+t[1]),"\n")}}let is=(()=>{class t{constructor(){this.tags=[],this.addedTag=new h.vpe}addTag(t){this.addedTag.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-tag-section"]],inputs:{tags:"tags"},outputs:{addedTag:"addedTag"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["mat-flat-button","",3,"click"]],template:function(t,e){1&t&&h.YNc(0,es,5,4,"div",0),2&t&&h.Q6J("ngForOf",e.tags)},directives:[o.sg,b.lW],pipes:[_.X$],styles:[""]}),t})(),os=(()=>{class t{constructor(){this.addedTag=new h.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 t=[];t.push(["appId","APPID_DESCRIPTION"]),t.push(["actor","ACTOR_DESCRIPTION"]),t.push(["extSource","EXTSOURCE_DESCRIPTION"]),t.push(["voName","VONAME_DESCRIPTION"]),t.push(["groupName","GROUPNAME_DESCRIPTION"]),t.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),t.push(["errors","ERRORS_DESCRIPTION"]),t.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),t.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=t}getUserRelatedTags(){const t=[];t.push(["firstName","FIRSTNAME_DESCRIPTION"]),t.push(["lastName","LASTNAME_DESCRIPTION"]),t.push(["displayName","DISPLAYNAME_DESCRIPTION"]),t.push(["mail","MAIL_DESCRIPTION"]),t.push(["phone","PHONE_DESCRIPTION"]),t.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),t.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=t}getValidationLinksUsersTags(){const t=[];t.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),t.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),t.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),t.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),t.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),t.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=t}getApplicationLinksUsersTags(){const t=[];t.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),t.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),t.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),t.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),t.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=t}getApplicationLinksAdministratorsTags(){const t=[];t.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),t.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),t.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),t.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),this.applicationLinksAdministratorsTags=t}getPerunLinksAdministratorsTags(){const t=[];t.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),t.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),t.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),t.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),this.perunLinksAdministratorsTags=t}getUserInvitationsTags(){const t=[];t.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),t.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),t.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),t.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),t.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),t.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),t.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),t.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),t.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=t}addTag(t){this.addedTag.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"app-alert",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1),h.TgZ(4,"div",2),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(8,"div",4),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(12,"div",4),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"div",5),h._uU(16),h.ALo(17,"translate"),h.qZA(),h.TgZ(18,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(19,"div",4),h._uU(20),h.ALo(21,"translate"),h.qZA(),h.TgZ(22,"div",5),h._uU(23),h.ALo(24,"translate"),h.qZA(),h.TgZ(25,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(26,"div",4),h._uU(27),h.ALo(28,"translate"),h.qZA(),h.TgZ(29,"div",5),h._uU(30),h.ALo(31,"translate"),h.qZA(),h.TgZ(32,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(33,"div",4),h._uU(34),h.ALo(35,"translate"),h.qZA(),h.TgZ(36,"div",5),h._uU(37),h.ALo(38,"translate"),h.qZA(),h.TgZ(39,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(40,"div",4),h._uU(41),h.ALo(42,"translate"),h.qZA(),h.TgZ(43,"div",5),h._uU(44),h.ALo(45,"translate"),h.qZA(),h.TgZ(46,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),h.xp6(4),h.hij("",h.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),":"),h.xp6(2),h.Q6J("tags",e.applicationRelatedTags),h.xp6(2),h.hij("",h.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),":"),h.xp6(2),h.Q6J("tags",e.userRelatedTags),h.xp6(2),h.hij("",h.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),":"),h.xp6(3),h.hij(" ",h.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.validationLinksUsersTags),h.xp6(2),h.hij("",h.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),":"),h.xp6(3),h.hij(" ",h.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.applicationLinksUsersTags),h.xp6(2),h.hij("",h.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),":"),h.xp6(3),h.hij(" ",h.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.applicationLinksAdministratorsTags),h.xp6(2),h.hij("",h.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),":"),h.xp6(3),h.hij(" ",h.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.perunLinksAdministratorsTags),h.xp6(2),h.hij("",h.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),":"),h.xp6(3),h.hij(" ",h.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.userInvitationsTags))},directives:[vt.w,ts.PQ,is],pipes:[_.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:380px;overflow:auto}"]}),t})();function as(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",9),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function ss(t,e){1&t&&(h.TgZ(0,"h1",9),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function ns(t,e){1&t&&h._UZ(0,"mat-spinner",10)}function rs(t,e){1&t&&(h.TgZ(0,"div",34),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function ls(t,e){1&t&&(h.TgZ(0,"div",34),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function cs(t,e){1&t&&(h.TgZ(0,"mat-option",36),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function us(t,e){1&t&&(h.TgZ(0,"div",34),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function ps(t,e){1&t&&(h.TgZ(0,"div",34),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function ds(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",38),h.TgZ(1,"div",39),h.TgZ(2,"div",40),h.TgZ(3,"span",41),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"mat-form-field",18),h.TgZ(7,"input",42,43),h.NdJ("focus",function(){return h.CHM(t),h.oxw(3).isTextFocused=!1})("ngModelChange",function(e){h.CHM(t);const i=h.oxw().$implicit;return h.oxw(2).applicationMail.message[i].subject=e}),h.qZA(),h.qZA(),h.qZA(),h.TgZ(9,"div",44),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"button",45),h.NdJ("click",function(){h.CHM(t);const e=h.oxw(3);return e.showTags=!e.showTags}),h._uU(13),h.ALo(14,"translate"),h.ALo(15,"translate"),h.qZA(),h.TgZ(16,"mat-form-field",18),h.TgZ(17,"textarea",46,47),h.NdJ("focus",function(){return h.CHM(t),h.oxw(3).isTextFocused=!0})("ngModelChange",function(e){h.CHM(t);const i=h.oxw().$implicit;return h.oxw(2).applicationMail.message[i].text=e}),h._uU(19," "),h.qZA(),h.qZA(),h.qZA(),h.TgZ(20,"div"),h.TgZ(21,"app-tag-bar",48),h.NdJ("addedTag",function(e){h.CHM(t);const i=h.MAs(8),o=h.MAs(18),a=h.oxw().$implicit;return h.oxw(2).addTag(i,o,a,e)}),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw().$implicit,e=h.oxw(2);h.xp6(4),h.hij("",h.lcZ(5,6,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT")," :"),h.xp6(3),h.Q6J("ngModel",e.applicationMail.message[t].subject),h.xp6(3),h.hij(" ",h.lcZ(11,8,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),h.xp6(3),h.hij(" ",e.showTags?h.lcZ(14,10,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):h.lcZ(15,12,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),h.xp6(4),h.Q6J("ngModel",e.applicationMail.message[t].text),h.xp6(3),h.Q6J("@tagsOpenClose",e.showTags?"open":"closed")}}function gs(t,e){1&t&&(h.TgZ(0,"mat-tab",14),h.ALo(1,"translate"),h.ALo(2,"uppercase"),h.YNc(3,ds,22,14,"ng-template",37),h.qZA()),2&t&&h.s9C("label",h.lcZ(1,1,h.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+e.$implicit)))}function hs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",11),h.TgZ(1,"div"),h.TgZ(2,"app-alert",12),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.qZA(),h.TgZ(5,"mat-tab-group",13),h.TgZ(6,"mat-tab",14),h.ALo(7,"translate"),h.TgZ(8,"div",15),h.TgZ(9,"span",16),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"div",17),h.TgZ(13,"mat-form-field",18),h.TgZ(14,"mat-select",19),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().applicationMail.mailType=e})("selectionChange",function(){return h.CHM(t),h.oxw().notificationExist()}),h.TgZ(15,"mat-option",20),h._uU(16),h.ALo(17,"translate"),h.qZA(),h.TgZ(18,"mat-option",21),h._uU(19),h.ALo(20,"translate"),h.qZA(),h.TgZ(21,"mat-option",22),h._uU(22),h.ALo(23,"translate"),h.qZA(),h.TgZ(24,"mat-option",23),h._uU(25),h.ALo(26,"translate"),h.qZA(),h.TgZ(27,"mat-option",24),h._uU(28),h.ALo(29,"translate"),h.qZA(),h.TgZ(30,"mat-option",25),h._uU(31),h.ALo(32,"translate"),h.qZA(),h.TgZ(33,"mat-option",26),h._uU(34),h.ALo(35,"translate"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(36,"div",27),h._UZ(37,"span",28),h.YNc(38,rs,3,3,"div",29),h.YNc(39,ls,3,3,"div",29),h.qZA(),h.TgZ(40,"div",15),h.TgZ(41,"span",30),h._uU(42),h.ALo(43,"translate"),h.qZA(),h.TgZ(44,"div",17),h.TgZ(45,"mat-form-field",18),h.TgZ(46,"mat-select",19),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().applicationMail.appType=e})("selectionChange",function(){return h.CHM(t),h.oxw().notificationExist()}),h.TgZ(47,"mat-option",31),h._uU(48),h.ALo(49,"translate"),h.qZA(),h.YNc(50,cs,3,3,"mat-option",32),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(51,"div",27),h._UZ(52,"span",28),h.YNc(53,us,3,3,"div",29),h.YNc(54,ps,3,3,"div",29),h.qZA(),h.TgZ(55,"div",15),h.TgZ(56,"span",30),h._uU(57),h.ALo(58,"translate"),h.qZA(),h.TgZ(59,"div",17),h.TgZ(60,"mat-checkbox",33),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().applicationMail.send=e}),h.qZA(),h.qZA(),h.qZA(),h.TgZ(61,"div",27),h._UZ(62,"span",28),h.TgZ(63,"div",34),h._uU(64),h.ALo(65,"translate"),h.qZA(),h.qZA(),h.qZA(),h.YNc(66,gs,4,5,"mat-tab",35),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.Q6J("@openClose",t.invalidNotification?"open":"closed"),h.xp6(2),h.Oqu(h.lcZ(4,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),h.xp6(3),h.s9C("label",h.lcZ(7,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),h.xp6(4),h.hij("",h.lcZ(11,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),h.xp6(4),h.Q6J("ngModel",t.applicationMail.mailType)("disabled",!t.data.createMailNotification),h.xp6(2),h.hij(" ",h.lcZ(17,32,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),h.xp6(3),h.hij(" ",h.lcZ(20,34,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),h.xp6(3),h.hij(" ",h.lcZ(23,36,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),h.xp6(3),h.hij(" ",h.lcZ(26,38,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),h.xp6(3),h.hij(" ",h.lcZ(29,40,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),h.xp6(3),h.hij(" ",h.lcZ(32,42,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),h.xp6(3),h.hij(" ",h.lcZ(35,44,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),h.xp6(4),h.Q6J("ngIf",!t.data.createMailNotification),h.xp6(1),h.Q6J("ngIf",t.data.createMailNotification),h.xp6(3),h.hij("",h.lcZ(43,46,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),h.xp6(4),h.Q6J("ngModel",t.applicationMail.appType)("disabled",!t.data.createMailNotification),h.xp6(2),h.hij(" ",h.lcZ(49,48,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),h.xp6(2),h.Q6J("ngIf","USER_INVITE"!==t.applicationMail.mailType),h.xp6(3),h.Q6J("ngIf",!t.data.createMailNotification),h.xp6(1),h.Q6J("ngIf",t.data.createMailNotification),h.xp6(3),h.hij("",h.lcZ(58,50,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),h.xp6(3),h.Q6J("ngModel",t.applicationMail.send),h.xp6(4),h.hij(" ",h.lcZ(65,52,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),h.xp6(2),h.Q6J("ngForOf",t.languages)}}function ms(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",49),h.NdJ("click",function(){return h.CHM(t),h.oxw().create()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",t.invalidNotification||t.loading),h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function As(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",49),h.NdJ("click",function(){return h.CHM(t),h.oxw().save()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",t.loading||!t.editAuth),h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}let Ts=(()=>{class t{constructor(t,e,i,o,a,s){this.dialogRef=t,this.registrarService=e,this.data=i,this.authResolver=o,this.groupsService=a,this.store=s,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"]}ngOnInit(){this.languages=this.store.get("supportedLanguages"),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(t=>{this.editAuth=this.authResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[t])}):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(t,e,i,o){let a;a=this.isTextFocused?e:t;const s=a.selectionStart;this.isTextFocused?this.applicationMail.message[i].text=this.applicationMail.message[i].text.substring(0,s)+o+this.applicationMail.message[i].text.substring(s):this.applicationMail.message[i].subject=this.applicationMail.message[i].subject.substring(0,s)+o+this.applicationMail.message[i].subject.substring(s),a.focus()}notificationExist(){for(const t of this.data.applicationMails)if(t.mailType===this.applicationMail.mailType&&t.appType===this.applicationMail.appType)return void(this.invalidNotification=!0);this.invalidNotification=!1}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(l.tk),h.Y36(A.WI),h.Y36(u.x4),h.Y36(l.ff),h.Y36(u.d6))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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","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","EXTENSION"],["matTabContent",""],[1,"d-flex","w-100"],[1,"pr-2","w-100"],[1,"pt-2"],[1,"font-weight-bold","pr-2"],["matInput","",3,"ngModel","focus","ngModelChange"],["Input",""],[1,"font-weight-bold"],["mat-flat-button","",3,"click"],["matInput","","rows","17",3,"ngModel","focus","ngModelChange"],["Textarea",""],[3,"addedTag"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",0),h.YNc(2,as,4,3,"div",1),h.YNc(3,ss,3,3,"ng-template",null,2,h.W1O),h.YNc(5,ns,1,0,"mat-spinner",3),h.YNc(6,hs,67,54,"div",4),h.TgZ(7,"div",5),h.TgZ(8,"button",6),h.NdJ("click",function(){return e.cancel()}),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.YNc(11,ms,3,4,"button",7),h.TgZ(12,"div",8),h.ALo(13,"translate"),h.YNc(14,As,3,4,"button",7),h.qZA(),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.MAs(4);h.Gre("",e.theme," h-100"),h.xp6(2),h.Q6J("ngIf",e.data.createMailNotification)("ngIfElse",t),h.xp6(3),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),h.xp6(2),h.Q6J("ngIf",e.data.createMailNotification),h.xp6(1),h.s9C("matTooltip",h.lcZ(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),h.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.editAuth),h.xp6(2),h.Q6J("ngIf",!e.data.createMailNotification)}},directives:[o.O5,A.H8,b.lW,E.gM,A.uh,I.$g,A.xY,vt.w,Qi.SP,Qi.uX,Le.KE,Ce.gD,Ne.JJ,Ne.On,De.ey,Me.oG,o.sg,Qi.Vc,Re.Nt,Ne.Fj,os],pipes:[_.X$,o.gd],styles:[""],data:{animation:[r.es,r.BQ]}}),t})();var Is=i(19386);function fs(t,e){1&t&&h._UZ(0,"mat-spinner",9)}let Es=(()=>{class t{constructor(t,e,i,o,a,s){this.dialogRef=t,this.voService=e,this.groupService=i,this.translateService=o,this.registrarService=a,this.data=s,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=t=>t.name}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(t=>{this.fakeGroup={id:-1,name:t,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},this.selectedGroup=this.fakeGroup,this.voService.getAllVos().subscribe(t=>{this.vos=t,this.vos=t.sort((t,e)=>t.name>e.name?1:t.namethis.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(t){this.selectedVo=t,this.getGroups()}getGroups(){null!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(t=>{this.groups=[this.fakeGroup].concat(t)}):this.groups=[this.fakeGroup]}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(l.YF),h.Y36(l.ff),h.Y36(_.sK),h.Y36(l.tk),h.Y36(A.WI))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,fs,1,0,"mat-spinner",1),h.TgZ(5,"div",2),h.TgZ(6,"div",3),h._uU(7),h.ALo(8,"translate"),h.qZA(),h._uU(9),h.ALo(10,"translate"),h.TgZ(11,"perun-web-apps-vo-search-select",4),h.NdJ("voSelected",function(t){return e.voSelected(t)}),h.qZA(),h._uU(12),h.ALo(13,"translate"),h.TgZ(14,"perun-web-apps-group-search-select",5),h.NdJ("groupSelected",function(t){return e.selectedGroup=t}),h.qZA(),h.qZA(),h.TgZ(15,"div",6),h.TgZ(16,"button",7),h.NdJ("click",function(){return e.cancel()}),h._uU(17),h.ALo(18,"translate"),h.qZA(),h.TgZ(19,"button",8),h.NdJ("click",function(){return e.submit()}),h._uU(20),h.ALo(21,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,15,"DIALOGS.NOTIFICATIONS_COPY_MAILS.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("hidden",e.loading),h.xp6(2),h.Oqu(h.lcZ(8,17,"DIALOGS.NOTIFICATIONS_COPY_MAILS.DESCRIPTION")),h.xp6(2),h.hij(" ",h.lcZ(10,19,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_VO"),": "),h.xp6(2),h.Q6J("vos",e.vos),h.xp6(1),h.hij(" ",h.lcZ(13,21,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_GROUP"),": "),h.xp6(2),h.Q6J("groups",e.groups)("disableAutoSelect",!0),h.xp6(3),h.hij(" ",h.lcZ(18,23,"DIALOGS.NOTIFICATIONS_COPY_MAILS.CANCEL_BUTTON")," "),h.xp6(2),h.Q6J("disabled",null===e.selectedVo||null===e.selectedGroup||e.loading),h.xp6(1),h.hij(" ",h.lcZ(21,25,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SUBMIT_BUTTON")," "))},directives:[A.uh,o.O5,A.xY,Is.M,Nt.h,A.H8,b.lW,I.$g],pipes:[_.X$],styles:[""],data:{animation:[r.BQ]}}),t})();var Zs=i(58623),bs=i(82819);function _s(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"th",13),h.TgZ(1,"mat-checkbox",14),h.NdJ("change",function(e){h.CHM(t);const i=h.oxw();return e?i.masterToggle():null}),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Ss(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"td",15),h.TgZ(1,"mat-checkbox",16),h.NdJ("change",function(e){const i=h.CHM(t).$implicit,o=h.oxw();return e?o.toggle(i):null})("click",function(t){return t.stopPropagation()}),h.qZA(),h.qZA()}if(2&t){const t=e.$implicit,i=h.oxw();h.xp6(1),h.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function Ns(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function vs(t,e){if(1&t&&(h.TgZ(0,"td",15),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t.id)}}function Os(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function xs(t,e){if(1&t&&(h.TgZ(0,"td",18),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw();h.xp6(1),h.Oqu(i.getMailType(t))}}function Ls(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function Cs(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"mat-icon",21),h._uU(2,"arrow_right_alt"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()),2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_INITIAL")," "))}function Rs(t,e){1&t&&(h.TgZ(0,"mat-icon",22),h._uU(1,"cached"),h.qZA(),h._uU(2),h.ALo(3,"translate")),2&t&&(h.xp6(2),h.hij(" ",h.lcZ(3,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_EXTENSION")," "))}function Ds(t,e){if(1&t&&(h.TgZ(0,"td",18),h.YNc(1,Cs,5,3,"div",19),h.YNc(2,Rs,4,3,"ng-template",null,20,h.W1O),h.qZA()),2&t){const t=e.$implicit,i=h.MAs(3);h.xp6(1),h.Q6J("ngIf","INITIAL"===t.appType)("ngIfElse",i)}}function Ms(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function Us(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"td",18),h.TgZ(1,"section"),h.TgZ(2,"mat-checkbox",23),h.NdJ("change",function(){const e=h.CHM(t).$implicit;return h.oxw().changeSending(e)})("click",function(t){return t.stopPropagation()}),h.ALo(3,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=e.$implicit,i=h.oxw();h.xp6(2),h.s9C("matTooltip",h.lcZ(3,4,"VO_DETAIL.SETTINGS.NOTIFICATIONS.DISABLED_HINT")),h.Q6J("disabled",i.disableSend)("matTooltipDisabled",!i.disableSend)("ngModel",t.send)}}function qs(t,e){1&t&&h._UZ(0,"tr",24)}function Ps(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"tr",25),h.NdJ("click",function(){const e=h.CHM(t).$implicit;return h.oxw().openApplicationMailDetail(e)}),h.qZA()}2&t&&h.ekj("cursor-pointer",!0)}let ws=(()=>{class t{constructor(t,e,i,o,a,s){this.registrarService=t,this.translate=e,this.notificator=i,this.dialog=o,this.authResolver=a,this.tableCheckbox=s,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new fa.Ov(!0,[]),this.pageSize=10,this.selectionChange=new h.vpe,this.page=new h.vpe,this.pageSizeOptions=c.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new st.by(this.applicationMails),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeSending(t){t.send?this.registrarService.setSendingEnabled({mails:[t],enabled:!1}).subscribe(()=>{t.send=!1}):this.registrarService.setSendingEnabled({mails:[t],enabled:!0}).subscribe(()=>{t.send=!0})}openApplicationMailDetail(t){const e=(0,c.kZ)();e.width="1400px",e.height="700px",e.data={theme:this.theme,voId:this.voId,groupId:this.groupId,createMailNotification:!1,applicationMail:t},this.dialog.open(Ts,e).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.EDIT_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.selectionChange.emit(this.selection),this.update())})}getMailType(t){let e="";return null==t.mailType||""===t.mailType?e="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+t.mailType).subscribe(t=>{e=t}),e}update(){this.groupId?this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(t=>{this.updateTable(t)}):this.registrarService.getApplicationMailsForVo(this.voId).subscribe(t=>{this.updateTable(t)})}toggle(t){this.selection.toggle(t),this.selectionChange.emit(this.selection)}updateTable(t){this.applicationMails=t,this.dataSource=new st.by(this.applicationMails),this.setDataSource()}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.tk),h.Y36(_.sK),h.Y36(u.V6),h.Y36(A.uw),h.Y36(u.x4),h.Y36(u.UA))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-notification-list"]],viewQuery:function(t,e){if(1&t&&(h.Gf(Zs.YE,7),h.Gf(c.l9,7)),2&t){let t;h.iGM(t=h.CRH())&&(e.matSort=t.first),h.iGM(t=h.CRH())&&(e.child=t.first)}},inputs:{applicationMails:"applicationMails",voId:"voId",groupId:"groupId",displayedColumns:"displayedColumns",disableSend:"disableSend",selection:"selection",pageSize:"pageSize",theme:"theme"},outputs:{selectionChange:"selectionChange",page:"page"},features:[h.TTD],decls:19,vars:7,consts:[[3,"dataLength","hideExport","pageSizeOptions","pageSize","page"],["mat-table","","matSort","","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["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"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["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"]],template:function(t,e){1&t&&(h.TgZ(0,"perun-web-apps-table-wrapper",0),h.NdJ("page",function(t){return e.page.emit(t)}),h.TgZ(1,"table",1),h.ynx(2,2),h.YNc(3,_s,2,3,"th",3),h.YNc(4,Ss,2,2,"td",4),h.BQk(),h.ynx(5,5),h.YNc(6,Ns,3,3,"th",6),h.YNc(7,vs,2,1,"td",4),h.BQk(),h.ynx(8,7),h.YNc(9,Os,3,3,"th",6),h.YNc(10,xs,2,1,"td",8),h.BQk(),h.ynx(11,9),h.YNc(12,Ls,3,3,"th",6),h.YNc(13,Ds,4,2,"td",8),h.BQk(),h.ynx(14,10),h.YNc(15,Ms,3,3,"th",6),h.YNc(16,Us,4,6,"td",8),h.BQk(),h.YNc(17,qs,1,0,"tr",11),h.YNc(18,Ps,1,2,"tr",12),h.qZA(),h.qZA()),2&t&&(h.Q6J("dataLength",e.dataSource.filteredData.length)("hideExport",!0)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),h.xp6(1),h.Q6J("dataSource",e.dataSource),h.xp6(16),h.Q6J("matHeaderRowDef",e.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",e.displayedColumns))},directives:[bs.l,st.BZ,Zs.YE,st.w1,st.fO,st.Dz,st.as,st.nj,st.ge,Me.oG,st.ev,Zs.nU,o.O5,f.Hw,E.gM,Ne.JJ,Ne.On,st.XQ,st.Gk],pipes:[_.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function ys(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",9),h.NdJ("click",function(){return h.CHM(t),h.oxw().add()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function Gs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",10),h.NdJ("click",function(){return h.CHM(t),h.oxw().remove()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Ys(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",11),h.NdJ("click",function(){return h.CHM(t),h.oxw().changeEmailFooter()}),h.TgZ(1,"i",12),h._uU(2,"email"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "))}function Js(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",13),h.NdJ("click",function(){return h.CHM(t),h.oxw().copy()}),h.TgZ(1,"i",12),h._uU(2,"file_copy"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Vs(t,e){1&t&&h._UZ(0,"mat-spinner",14)}function Fs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",15),h.TgZ(1,"app-notification-list",16),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)})("selectionChange",function(e){return h.CHM(t),h.oxw().changeSelection(e)}),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.Q6J("applicationMails",t.applicationMails)("pageSize",t.pageSize)("voId",t.voId)("displayedColumns",t.displayedColumns)("disableSend",!t.addAuth)("selection",t.selection)("theme","vo-theme")}}function Qs(t,e){1&t&&(h.TgZ(0,"app-alert",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.Q6J("alert_type","warn"),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}let ks=(()=>{class t{constructor(t,e,i,o,a,s,n,r,l){this.route=t,this.registrarService=e,this.translate=i,this.dialog=o,this.tableConfigService=a,this.notificator=s,this.authResolver=n,this.voService=r,this.store=l,this.loading=!1,this.applicationMails=[],this.selection=new fa.Ov(!0,[]),this.tableId=Ca.VR,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.registrarService.getVoApplicationForm(this.voId).subscribe(t=>{this.applicationForm=t,this.registrarService.getApplicationMailsForVo(this.voId).subscribe(t=>{this.applicationMails=t,this.voService.getVoById(this.voId).subscribe(t=>{this.vo=t,this.setAuthRights(),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 t=this.store.get("supportedLanguages"),e=(0,c.i5)(t);e.formId=this.applicationForm.id;const i=(0,c.kZ)();i.width="1400px",i.height="700px",i.data={theme:"vo-theme",voId:this.voId,createMailNotification:!0,applicationMail:e,applicationMails:this.applicationMails},this.dialog.open(Ts,i).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}remove(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.voId,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ha,t).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}copy(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(Es,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForVo(this.voId).subscribe(t=>{this.applicationMails=t,this.loading=!1})}changeEmailFooter(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(Ka,t)}changeSelection(t){this.selection=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(l.tk),h.Y36(_.sK),h.Y36(A.uw),h.Y36(Ca.dB),h.Y36(u.V6),h.Y36(u.x4),h.Y36(l.YF),h.Y36(u.d6))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-notifications"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:11,vars:10,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["class","card mt-2",4,"ngIf"],[3,"alert_type",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],["mat-stroked-button","",3,"click"],[1,"ml-auto","mr-auto"],[1,"card","mt-2"],[3,"applicationMails","pageSize","voId","displayedColumns","disableSend","selection","theme","page","selectionChange"],[3,"alert_type"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1),h.YNc(4,ys,3,3,"button",2),h.YNc(5,Gs,3,4,"button",3),h.YNc(6,Ys,5,3,"button",4),h.YNc(7,Js,5,3,"button",5),h.qZA(),h.YNc(8,Vs,1,0,"mat-spinner",6),h.YNc(9,Fs,2,7,"div",7),h.YNc(10,Qs,3,4,"app-alert",8)),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,8,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),h.xp6(3),h.Q6J("ngIf",!e.loading&&e.addAuth),h.xp6(1),h.Q6J("ngIf",!e.loading&&e.removeAuth),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading&&e.copyAuth),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",0!==e.applicationMails.length&&!e.loading),h.xp6(1),h.Q6J("ngIf",0===e.applicationMails.length&&!e.loading))},directives:[o.O5,b.lW,I.$g,ws,vt.w],pipes:[_.X$],styles:[""]}),t})();var zs=i(65423);function Bs(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function js(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",12),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).add()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function Hs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",13),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).remove()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function $s(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",14),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).copy()}),h.TgZ(1,"i",8),h._uU(2,"file_copy"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Xs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",15),h.TgZ(1,"app-notification-list",16),h.NdJ("page",function(e){return h.CHM(t),h.oxw(2).pageChanged(e)})("selectionChange",function(e){return h.CHM(t),h.oxw(2).changeSelection(e)}),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(1),h.Q6J("disableSend",!t.addAuth)("displayedColumns",t.displayedColumns)("applicationMails",t.applicationMails)("pageSize",t.pageSize)("groupId",t.groupId)("selection",t.selection)("theme","group-theme")}}function Ws(t,e){1&t&&(h.TgZ(0,"app-alert",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS")," "))}function Ks(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"div",4),h.YNc(2,js,3,3,"button",5),h.YNc(3,Hs,3,4,"button",6),h.TgZ(4,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().changeEmailFooter()}),h.TgZ(5,"i",8),h._uU(6,"email"),h.qZA(),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.YNc(9,$s,5,3,"button",9),h.qZA(),h.YNc(10,Xs,2,7,"div",10),h.YNc(11,Ws,3,3,"app-alert",11),h.qZA()}if(2&t){const t=h.oxw();h.xp6(2),h.Q6J("ngIf",t.addAuth),h.xp6(1),h.Q6J("ngIf",t.removeAuth),h.xp6(4),h.hij(" ",h.lcZ(8,6,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),h.xp6(2),h.Q6J("ngIf",t.copyAuth),h.xp6(1),h.Q6J("ngIf",0!==t.applicationMails.length),h.xp6(1),h.Q6J("ngIf",0===t.applicationMails.length)}}function tn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",19),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).createEmptyApplicationForm()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.CREATE_APPLICATION_FORM")," "))}function en(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"app-alert",17),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,tn,3,3,"button",18),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.Oqu(h.lcZ(3,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_APPLICATION_FORM")),h.xp6(2),h.Q6J("ngIf",t.createFormAuth)}}let on=(()=>{class t{constructor(t,e,i,o,a,s,n,r,l,c){this.route=t,this.registrarService=e,this.translate=i,this.dialog=o,this.apiRequest=a,this.tableConfigService=s,this.notificator=n,this.groupsService=r,this.guiAuthResolver=l,this.attributesService=c,this.loading=!1,this.applicationMails=[],this.selection=new fa.Ov(!0,[]),this.noApplicationForm=!1,this.editEmailFooterAuth=!1,this.addAuth=!1,this.removeAuth=!1,this.copyAuth=!1,this.createFormAuth=!1,this.displayedColumns=[],this.tableId=Ca.AA}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.groupId=t.groupId,this.groupsService.getGroupById(this.groupId).subscribe(t=>{this.group=t,this.apiRequest.dontHandleErrorForNext(),this.registrarService.getGroupApplicationForm(this.groupId).subscribe(t=>{this.applicationForm=t,this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(t=>{this.applicationMails=t,this.apiRequest.dontHandleErrorForNext(),this.attributesService.getGroupAttributeByName(this.groupId,p.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.setAuthRights(),this.loading=!1},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t),this.setAuthRights(),this.loading=!1})})},t=>{"FormNotExistsException"===t.error.name?(this.setAuthRights(),this.loading=!1):this.notificator.showRPCError(t)})})})}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 t=(0,c.i5)();t.formId=this.applicationForm.id;const e=(0,c.kZ)();e.width="1400px",e.height="700px",e.data={theme:"group-theme",voId:this.voId,groupId:this.groupId,createMailNotification:!0,applicationMail:t,applicationMails:this.applicationMails},this.dialog.open(Ts,e).afterClosed().subscribe(t=>{t&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}remove(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.voId,groupId:this.groupId,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(Ha,t).afterClosed().subscribe(t=>{t&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}copy(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.voId,groupId:this.groupId,theme:"group-theme"},this.dialog.open(Es,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(t=>{this.applicationMails=t,this.loading=!1})}changeEmailFooter(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.voId,groupId:this.groupId,theme:"group-theme"},this.dialog.open(Ka,t)}changeSelection(t){this.selection=t}createEmptyApplicationForm(){this.registrarService.createApplicationFormInGroup(this.groupId).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(l.tk),h.Y36(_.sK),h.Y36(A.uw),h.Y36(u.F5),h.Y36(Ca.dB),h.Y36(u.V6),h.Y36(l.ff),h.Y36(u.x4),h.Y36(l.H8))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-notifications"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-100","d-flex"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],["mat-stroked-button","","class","ml-auto",3,"click",4,"ngIf"],["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"ml-auto",3,"click"],[1,"card","mt-2"],[3,"disableSend","displayedColumns","applicationMails","pageSize","groupId","selection","theme","page","selectionChange"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,Bs,1,0,"mat-spinner",1),h.YNc(4,Ks,12,8,"div",2),h.YNc(5,en,5,4,"div",2)),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,4,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.noApplicationForm&&!e.loading),h.xp6(1),h.Q6J("ngIf",e.noApplicationForm&&!e.loading))},directives:[o.O5,I.$g,b.lW,ws,vt.w],pipes:[_.X$],styles:[""]}),t})();var an=i(4359);function sn(t,e){1&t&&h._UZ(0,"mat-spinner",8)}function nn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",9),h.TgZ(1,"app-ext-sources-list",10),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.Q6J("pageSize",t.pageSize)("extSources",t.extSources)("filterValue",t.filterValue)("selection",t.selection)}}let rn=(()=>{class t{constructor(t,e,i,o,a,s){this.dialogRef=t,this.data=e,this.extSourceService=i,this.notificator=o,this.tableConfigService=a,this.translate=s,this.extSources=[],this.selection=new fa.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=Ca.BV}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.data.groupId?this.extSourceService.getVoExtSources(this.data.voId).subscribe(t=>{this.extSources=t.filter(t=>!this.data.extSources.some(({id:e})=>e===t.id)),this.loading=!1},()=>this.loading=!1):this.extSourceService.getExtSources().subscribe(t=>{this.extSources=t.filter(t=>!this.data.extSources.some(({id:e})=>e===t.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}addVoExtSource(t){if(0===t.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const e=t.pop();this.extSourceService.addExtSourceWithVoSource(this.data.voId,e.id).subscribe(()=>{this.addVoExtSource(t)},()=>this.loading=!1)}addGroupExtSource(t){if(0===t.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const e=t.pop();this.extSourceService.addExtSourceWithGroupSource(this.data.groupId,e.id).subscribe(()=>{this.addGroupExtSource(t)},()=>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)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.KG),h.Y36(u.V6),h.Y36(Ca.dB),h.Y36(_.sK))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"pageSize","extSources","filterValue","selection","page"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",0),h.TgZ(2,"h1",1),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.TgZ(5,"perun-web-apps-immediate-filter",2),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.qZA(),h.YNc(6,sn,1,0,"mat-spinner",3),h.YNc(7,nn,2,4,"div",4),h.TgZ(8,"div",5),h.TgZ(9,"button",6),h.NdJ("click",function(){return e.onCancel()}),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"button",7),h.NdJ("click",function(){return e.onAdd()}),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(3),h.Oqu(h.lcZ(4,10,"DIALOGS.ADD_EXT_SOURCES.TITLE")),h.xp6(2),h.Q6J("placeholder","DIALOGS.ADD_EXT_SOURCES.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(11,12,"DIALOGS.ADD_EXT_SOURCES.CANCEL")," "),h.xp6(2),h.Q6J("disabled",0===e.selection.selected.length||e.loading),h.xp6(1),h.hij(" ",h.lcZ(14,14,"DIALOGS.ADD_EXT_SOURCES.ADD")," "))},directives:[A.uh,Da.L,o.O5,A.H8,b.lW,I.$g,A.xY,an.D],pipes:[_.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),t})();function ln(t,e){1&t&&h._UZ(0,"mat-spinner",7)}function cn(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1,"id"),h.qZA())}function un(t,e){if(1&t&&(h.TgZ(0,"td",18),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t.id," ")}}function pn(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1,"name"),h.qZA())}function dn(t,e){if(1&t&&(h.TgZ(0,"td",18),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t.name," ")}}function gn(t,e){1&t&&h._UZ(0,"tr",19)}function hn(t,e){1&t&&h._UZ(0,"tr",20)}function mn(t,e){if(1&t&&(h.TgZ(0,"div",8),h.TgZ(1,"p"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",9),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"table",10),h.ynx(8,11),h.YNc(9,cn,2,0,"th",12),h.YNc(10,un,2,1,"td",13),h.BQk(),h.ynx(11,14),h.YNc(12,pn,2,0,"th",12),h.YNc(13,dn,2,1,"td",13),h.BQk(),h.YNc(14,gn,1,0,"tr",15),h.YNc(15,hn,1,0,"tr",16),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,5,"DIALOGS.REMOVE_EXT_SOURCES.DESCRIPTION")," "),h.xp6(3),h.hij(" ",h.lcZ(6,7,"DIALOGS.REMOVE_EXT_SOURCES.ASK")," "),h.xp6(2),h.Q6J("dataSource",t.extSources),h.xp6(7),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}let An=(()=>{class t{constructor(t,e,i,o,a,s){this.dialogRef=t,this.data=e,this.extSourceService=i,this.notificator=o,this.tableConfigService=a,this.translate=s,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const t=this.extSources.pop();this.extSourceService.removeExtSourceWithVoSource(this.data.voId,t.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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const t=this.extSources.pop();this.extSourceService.removeExtSourceWithGroupSource(this.data.groupId,t.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}onRemove(){this.loading=!0,this.data.groupId?this.removeGroupExtSource():this.removeVoExtSource()}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.KG),h.Y36(u.V6),h.Y36(Ca.dB),h.Y36(_.sK))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",0),h.TgZ(2,"h1",1),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.qZA(),h.YNc(5,ln,1,0,"mat-spinner",2),h.YNc(6,mn,16,9,"div",3),h.TgZ(7,"div",4),h.TgZ(8,"button",5),h.NdJ("click",function(){return e.onCancel()}),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"button",6),h.NdJ("click",function(){return e.onRemove()}),h._uU(12),h.ALo(13,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(3),h.Oqu(h.lcZ(4,8,"DIALOGS.REMOVE_EXT_SOURCES.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(10,10,"DIALOGS.REMOVE_EXT_SOURCES.CANCEL")," "),h.xp6(3),h.hij(" ",h.lcZ(13,12,"DIALOGS.REMOVE_EXT_SOURCES.REMOVE")," "))},directives:[A.uh,o.O5,A.H8,b.lW,I.$g,A.xY,st.BZ,st.w1,st.fO,st.Dz,st.as,st.nj,st.ge,st.ev,st.XQ,st.Gk],pipes:[_.X$],styles:[""]}),t})();function Tn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().onAdd()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function In(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().onRemove()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function fn(t,e){1&t&&h._UZ(0,"mat-spinner",9)}function En(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-ext-sources-list",10),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("pageSize",t.pageSize)("extSources",t.extSources)("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("selection",t.selection)}}let Zn=(()=>{class t{constructor(t,e,i,o,a,s,n,r){this.extSourceService=t,this.route=e,this.dialog=i,this.notificator=o,this.tableConfigService=a,this.translate=s,this.authResolver=n,this.voService=r,this.extSources=[],this.selection=new fa.Ov(!0,[]),this.filterValue="",this.tableId=Ca.qV,this.displayedColumns=[],this.translate.get("VO_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(t=>this.successMessage=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.voService.getVoById(this.voId).subscribe(t=>{this.vo=t,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"]}refreshTable(){this.loading=!0,this.extSourceService.getVoExtSources(this.voId).subscribe(t=>{this.extSources=t,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t}onAdd(){const t=(0,c.kZ)();t.width="1000px",t.data={voId:this.voId,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(rn,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,c.kZ)();t.width="600px",t.data={voId:this.voId,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(An,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.KG),h.Y36(a.gz),h.Y36(A.uw),h.Y36(u.V6),h.Y36(Ca.dB),h.Y36(_.sK),h.Y36(u.x4),h.Y36(l.YF))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","extSources","displayedColumns","filterValue","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","extSources","displayedColumns","filterValue","selection","page"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.YNc(5,Tn,3,3,"button",2),h.YNc(6,In,3,4,"button",3),h.TgZ(7,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(8,fn,1,0,"mat-spinner",5),h.YNc(9,En,1,5,"app-ext-sources-list",6),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,6,"VO_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),h.xp6(3),h.Q6J("ngIf",e.addAuth),h.xp6(1),h.Q6J("ngIf",e.removeAuth),h.xp6(1),h.Q6J("placeholder","VO_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[Ra.t,o.O5,Da.L,b.lW,I.$g,an.D],pipes:[_.X$],styles:[""]}),t})();var bn=i(78364);function _n(t,e){1&t&&h._UZ(0,"mat-spinner",3)}const Sn=function(){return["select","id","name","description"]};function Nn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(e){return h.CHM(t),h.oxw().applyFilter(e)}),h.qZA(),h.TgZ(2,"div",5),h.TgZ(3,"perun-web-apps-groups-list",6),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA(),h.qZA(),h.TgZ(4,"div",7),h.TgZ(5,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().onCancel()}),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"button",9),h.NdJ("click",function(){return h.CHM(t),h.oxw().onSubmit()}),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Tol(t.theme),h.xp6(1),h.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),h.xp6(2),h.Q6J("groupsToDisable",t.groupsToDisable)("disableGroups",!0)("pageSize",t.pageSize)("groups",t.groups)("selection",t.selection)("displayedColumns",h.DdM(21,Sn))("filter",t.filterValue)("disableHeadCheckbox",!0)("disableRouting",!0)("authType","create-relation-dialog"),h.xp6(3),h.hij(" ",h.lcZ(7,17,"DIALOGS.CREATE_RELATION.CANCEL")," "),h.xp6(2),h.Q6J("disabled",t.loading||0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(10,19,"DIALOGS.CREATE_RELATION.CREATE")," ")}}let vn=(()=>{class t{constructor(t,e,i,o,a,s,n){this.dialogRef=t,this.groupService=e,this.notificator=i,this.translate=o,this.tableConfigService=a,this.guiAuthResolver=s,this.data=n,this.selection=new fa.Ov(!1,[]),this.filterValue="",this.tableId=Ca.RS,this.groupsToDisable=new Set,o.get("DIALOGS.CREATE_RELATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.groupService.getGroupUnions(this.data.group.id,!this.data.reverse).subscribe(t=>{t=t.concat(this.data.groups),this.groupService.getAllGroups(this.data.voId).subscribe(e=>{const i=t.map(t=>t.id);this.groups=e.filter(t=>!i.includes(t.id)&&t.id!==this.data.group.id),this.setGroupsToDisable(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!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(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}setGroupsToDisable(){for(const t of this.groups)this.guiAuthResolver.isAuthorized("createGroupUnion_Group_Group_policy",[this.data.group,t])||this.groupsToDisable.add(t.id)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(l.ff),h.Y36(u.V6),h.Y36(_.sK),h.Y36(Ca.dB),h.Y36(u.x4),h.Y36(A.WI))},t.\u0275cmp=h.Xpm({type:t,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,"placeholder","filter"],["mat-dialog-content","",1,"dialog-container"],[3,"groupsToDisable","disableGroups","pageSize","groups","selection","displayedColumns","filter","disableHeadCheckbox","disableRouting","authType","page"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div"),h.YNc(4,_n,1,0,"mat-spinner",1),h.qZA(),h.YNc(5,Nn,11,22,"div",2)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"DIALOGS.CREATE_RELATION.TITLE")),h.xp6(2),h.Tol(e.theme),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[A.uh,o.O5,I.$g,Da.L,A.xY,bn.W,A.H8,b.lW],pipes:[_.X$],styles:[""]}),t})();function On(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function xn(t,e){1&t&&h._UZ(0,"th",15)}function Ln(t,e){if(1&t&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t.name," ")}}function Cn(t,e){1&t&&h._UZ(0,"tr",17)}function Rn(t,e){1&t&&h._UZ(0,"tr",18)}function Dn(t,e){if(1&t&&(h.TgZ(0,"div",7),h.TgZ(1,"p"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",8),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"table",9),h.ynx(8,10),h.YNc(9,xn,1,0,"th",11),h.YNc(10,Ln,2,1,"td",12),h.BQk(),h.YNc(11,Cn,1,0,"tr",13),h.YNc(12,Rn,1,0,"tr",14),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,5,"DIALOGS.REMOVE_RELATION.DESCRIPTION")," "),h.xp6(3),h.hij(" ",h.lcZ(6,7,"DIALOGS.REMOVE_RELATION.ASK")," "),h.xp6(2),h.Q6J("dataSource",t.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}let Mn=(()=>{class t{constructor(t,e,i,o,a){this.dialogRef=t,this.data=e,this.notificator=i,this.groupService=o,this.translate=a,this.displayedColumns=["name"],a.get("DIALOGS.REMOVE_RELATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new st.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 t=this.data.reverse?this.data.groups.shift().id:this.data.groupId,e=this.data.reverse?this.data.groupId:this.data.groups.shift().id;this.groupService.removeGroupUnion(t,e).subscribe(()=>{this.onSubmit(),this.dialogRef.close(!0)},()=>this.loading=!1)}}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(u.V6),h.Y36(l.ff),h.Y36(_.sK))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,On,1,0,"mat-spinner",1),h.YNc(5,Dn,13,9,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.REMOVE_RELATION.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.REMOVE_RELATION.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.REMOVE_RELATION.DELETE")," "))},directives:[A.uh,o.O5,A.H8,b.lW,I.$g,A.xY,st.BZ,st.w1,st.fO,st.Dz,st.as,st.nj,st.ge,st.ev,st.XQ,st.Gk],pipes:[_.X$],styles:[""]}),t})();var Un=i(41939);const qn=["list"];function Pn(t,e){1&t&&h._UZ(0,"mat-spinner",8)}const wn=function(){return["select","id","vo","name","description"]};function yn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"perun-web-apps-groups-list",9,10),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("pageSize",t.pageSize)("groups",t.groups)("parentGroup",t.group)("authType","group-relations")("selection",t.selection)("filter",t.filterValue)("displayedColumns",h.DdM(8,wn))("disableHeadCheckbox",!0)}}let Gn=(()=>{class t{constructor(t,e,i,o){this.route=t,this.groupService=e,this.tableConfigService=i,this.dialog=o,this.selection=new fa.Ov(!0,[]),this.groups=[],this.reverse=!1,this.filterValue="",this.tableId=Ca._7}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.groupId=t.groupId,this.voId=t.voId,this.groupService.getGroupById(this.groupId).subscribe(t=>{this.group=t,this.refreshTable()})})}onCreate(){const t=(0,c.kZ)();t.width="1050px",t.data={groups:this.groups,theme:"group-theme",group:this.group,voId:this.voId,reverse:this.reverse},this.dialog.open(vn,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onDelete(){const t=(0,c.kZ)();t.width="450px",t.data={groups:this.selection.selected,theme:"group-theme",groupId:+this.groupId,reverse:this.reverse},this.dialog.open(Mn,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getGroupUnions(this.groupId,this.reverse).subscribe(t=>{this.groups=t,this.selection.clear(),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}showReverseUnions(){this.reverse=!this.reverse,this.refreshTable()}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(l.ff),h.Y36(Ca.dB),h.Y36(A.uw))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-relations"]],viewQuery:function(t,e){if(1&t&&h.Gf(qn,5),2&t){let t;h.iGM(t=h.CRH())&&(e.list=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:18,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"matTooltip","matTooltipDisabled","disabled","click"],[3,"placeholder","filter"],[3,"change"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","groups","parentGroup","authType","selection","filter","displayedColumns","disableHeadCheckbox","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","groups","parentGroup","authType","selection","filter","displayedColumns","disableHeadCheckbox","page"],["list",""]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.TgZ(5,"button",2),h.NdJ("click",function(){return e.onCreate()}),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"button",3),h.NdJ("click",function(){return e.onDelete()}),h.ALo(9,"translate"),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.TgZ(13,"mat-checkbox",5),h.NdJ("change",function(){return e.showReverseUnions()}),h._uU(14),h.ALo(15,"translate"),h.qZA(),h.YNc(16,Pn,1,0,"mat-spinner",6),h.YNc(17,yn,2,9,"perun-web-apps-groups-list",7),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,10,"GROUP_DETAIL.SETTINGS.RELATIONS.TITLE")),h.xp6(4),h.hij(" ",h.lcZ(7,12,"GROUP_DETAIL.SETTINGS.RELATIONS.CREATE")," "),h.xp6(2),h.s9C("matTooltip",h.lcZ(9,14,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE_TOOLTIP")),h.Q6J("matTooltipDisabled",0===e.selection.selected.length||void 0!==e.list&&e.list.removeAuth)("disabled",0===e.selection.selected.length||void 0!==e.list&&!e.list.removeAuth),h.xp6(2),h.hij(" ",h.lcZ(11,16,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE")," "),h.xp6(2),h.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),h.xp6(2),h.Oqu(h.lcZ(15,18,"GROUP_DETAIL.SETTINGS.RELATIONS.REVERSE_UNIONS")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[Ra.t,b.lW,E.gM,Da.L,Me.oG,o.O5,I.$g,bn.W],pipes:[_.X$],styles:[""]}),t})();var Yn=i(21548),Jn=i(29851);function Vn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",6),h.NdJ("click",function(){return h.CHM(t),h.oxw().showAllDetails=!0}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_ALL_DETAILS")," "))}function Fn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",6),h.NdJ("click",function(){return h.CHM(t),h.oxw().showAllDetails=!1}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_LESS_DETAILS")," "))}function Qn(t,e){1&t&&h._UZ(0,"mat-spinner",7)}function kn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-applications-list",10),h.NdJ("page",function(e){return h.CHM(t),h.oxw(2).pageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("applications",t.applications)("member",t.member)("displayedColumns",t.displayedColumns)}}function zn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-perun-web-apps-application-list-details",11),h.NdJ("page",function(e){return h.CHM(t),h.oxw(2).detailPageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("pageSize",t.detailPageSize)("filterValue",t.filterValue)("applications",t.applications)("member",t.member)}}function Bn(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,kn,1,5,"app-applications-list",8),h.YNc(2,zn,1,4,"app-perun-web-apps-application-list-details",9),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf",!t.showAllDetails),h.xp6(1),h.Q6J("ngIf",t.showAllDetails)}}let jn=(()=>{class t{constructor(t,e,i,o){this.registrarManager=t,this.memberManager=e,this.tableConfigService=i,this.route=o,this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","group","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=Ca.d7,this.tableId=Ca.vq}ngOnInit(){this.detailPageSize=this.tableConfigService.getTablePageSize(this.detailTableId),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(t=>{this.memberId=t.memberId,this.memberManager.getMemberById(this.memberId).subscribe(t=>{this.member=t}),this.registrarManager.getApplicationsForMember(this.memberId).subscribe(t=>{this.applications=t,this.loading=!1})})}refreshTable(){this.loading=!0,this.registrarManager.getApplicationsForMember(this.memberId).subscribe(t=>{this.applications=t,this.loading=!1})}applyFilter(t){this.filterValue=t}detailPageChanged(t){this.detailPageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.detailTableId,t.pageSize)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.tk),h.Y36(l.uq),h.Y36(Ca.dB),h.Y36(a.gz))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-applications"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","applications","member","displayedColumns","page",4,"ngIf"],[3,"pageSize","filterValue","applications","member","page",4,"ngIf"],[3,"pageSize","filterValue","applications","member","displayedColumns","page"],[3,"pageSize","filterValue","applications","member","page"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div"),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.YNc(5,Vn,3,3,"button",2),h.YNc(6,Fn,3,3,"button",2),h.TgZ(7,"perun-web-apps-immediate-filter",3),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.qZA(),h.YNc(8,Qn,1,0,"mat-spinner",4),h.YNc(9,Bn,3,2,"div",5)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"MEMBER_DETAIL.APPLICATIONS.TITLE")),h.xp6(4),h.Q6J("ngIf",!e.showAllDetails),h.xp6(1),h.Q6J("ngIf",e.showAllDetails),h.xp6(1),h.Q6J("placeholder","MEMBER_DETAIL.APPLICATIONS.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[Ra.t,o.O5,Da.L,b.lW,I.$g,Yn.M,Jn.w],pipes:[_.X$],styles:[""]}),t})();var Hn=i(56238),$n=i(79996),Xn=i(70663),Wn=i(40084);function Kn(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECT_RESOURCE"))}function tr(t,e){1&t&&h._UZ(0,"mat-spinner",13)}function er(t,e){if(1&t&&(h.TgZ(0,"mat-option",24),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",t," ")}}function ir(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-option",25),h.NdJ("click",function(){const e=h.CHM(t).$implicit,i=h.oxw(2),o=h.MAs(6);return i.setResource(e),o.selected.completed=!0}),h._uU(1),h.qZA()}if(2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",t.name," ")}}function or(t,e){if(1&t&&(h.TgZ(0,"div",22),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t.name)}}function ar(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div"),h.TgZ(2,"mat-form-field",14),h._UZ(3,"input",15),h.ALo(4,"translate"),h.TgZ(5,"mat-autocomplete",16,17),h.YNc(7,er,2,2,"mat-option",18),h.ALo(8,"async"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(9,"div"),h.TgZ(10,"mat-form-field",14),h.TgZ(11,"mat-select",19),h.ALo(12,"translate"),h.YNc(13,ir,2,2,"mat-option",20),h.ALo(14,"async"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(15,"div"),h.TgZ(16,"span",21),h._uU(17),h.ALo(18,"translate"),h.qZA(),h.TgZ(19,"div",22),h._uU(20),h.qZA(),h.qZA(),h.TgZ(21,"div"),h.TgZ(22,"span",21),h._uU(23),h.ALo(24,"translate"),h.qZA(),h.YNc(25,or,2,1,"div",23),h.qZA(),h.qZA()),2&t){const t=h.MAs(6),e=h.oxw();h.xp6(3),h.s9C("placeholder",h.lcZ(4,10,"DIALOGS.ADD_MEMBER_TO_RESOURCE.FILTER")),h.Q6J("formControl",e.facilityCtrl)("matAutocomplete",t),h.xp6(4),h.Q6J("ngForOf",h.lcZ(8,12,e.filteredFacilities)),h.xp6(4),h.s9C("placeholder",h.lcZ(12,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECTED")),h.xp6(2),h.Q6J("ngForOf",h.lcZ(14,16,e.filteredResources)),h.xp6(4),h.Oqu(h.lcZ(18,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.DESCRIPTION")),h.xp6(3),h.hij(" ",e.description," "),h.xp6(3),h.Oqu(h.lcZ(24,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SERVICES")),h.xp6(2),h.Q6J("ngForOf",e.services)}}function sr(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.ADD_GROUP"))}function nr(t,e){1&t&&h._UZ(0,"mat-spinner",13)}const rr=function(){return["select","id","name","description"]};function lr(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-groups-list",26),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("disableGroups",!0)("disableHeadCheckbox",!0)("disableRouting",!0)("groupsToDisable",t.membersGroupsId)("groups",t.groups)("displayedColumns",h.DdM(7,rr))("selection",t.selectedGroups)}}function cr(t,e){1&t&&(h.TgZ(0,"app-alert",27),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.NO_GROUPS")," "))}let ur=(()=>{class t{constructor(t,e,i,o,a,s,n){this.dialogRef=t,this.data=e,this.resourceManager=i,this.groupManager=o,this.notificator=a,this.translate=s,this.authResolver=n,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new Ne.NI,this.facilitiesNames=[],this.resources=[],this.selectedResource=null,this.services=[],this.description="",this.groups=[],this.selectedGroups=new fa.Ov(!1,[])}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getRichResources(this.data.voId).subscribe(t=>{this.resources=t,this.getResourceFacilities(),this.loading=!1},()=>this.loading=!1)}getResourceFacilities(){const t=new Set;for(const e of this.resources)t.add(e.facility.name);this.facilitiesNames=Array.from(t),this.filteredFacilities=this.facilityCtrl.valueChanges.pipe((0,Hn.O)(""),(0,$n.U)(t=>this.filterFacilities(t))),this.filteredResources=this.facilityCtrl.valueChanges.pipe((0,Hn.O)(""),(0,$n.U)(t=>this.filterResources(t)))}filterFacilities(t){const e=t.toLowerCase();return this.facilitiesNames.filter(t=>t.toLowerCase().indexOf(e)>=0).sort((t,e)=>t.toLowerCase().localeCompare(e.toLowerCase()))}filterResources(t){if(null==t)return this.resources;const e=t.toLowerCase();return this.resources.filter(t=>0===t.facility.name.toLowerCase().indexOf(e)).sort((t,e)=>t.name.toLowerCase().localeCompare(e.name.toLowerCase()))}setResource(t){this.processing=!0,this.selectedResource=t,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(t=>{this.services=t,this.processing=!1},()=>this.processing=!1),this.description=this.selectedResource.description}loadGroups(){this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(t=>{this.groups=t,this.groupManager.getAllMemberGroups(this.data.memberId).subscribe(t=>{this.membersGroupsId=new Set(t.map(t=>t.id)),this.groups.forEach(t=>{this.authResolver.isAuthorized("addMember_Group_Member_policy",[t])||this.membersGroupsId.add(t.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)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.xk),h.Y36(l.ff),h.Y36(u.V6),h.Y36(_.sK),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-add-member-to-resource-dialog"]],decls:30,vars:26,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],["completed","false"],["matStepLabel",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","matStepperNext","",1,"ml-2",3,"disabled","click"],["alert_type","warn",4,"ngIf"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto",3,"click"],[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",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","groupsToDisable","groups","displayedColumns","selection"],["alert_type","warn"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",1),h.TgZ(5,"mat-horizontal-stepper",2,3),h.TgZ(7,"mat-step",4),h.YNc(8,Kn,2,3,"ng-template",5),h.YNc(9,tr,1,0,"mat-spinner",6),h.YNc(10,ar,26,22,"div",7),h.TgZ(11,"div",8),h.TgZ(12,"button",9),h.NdJ("click",function(){return e.onCancel()}),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"button",10),h.NdJ("click",function(){return e.loadGroups()}),h._uU(16),h.ALo(17,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(18,"mat-step"),h.YNc(19,sr,2,3,"ng-template",5),h.YNc(20,nr,1,0,"mat-spinner",6),h.YNc(21,lr,2,8,"div",7),h.YNc(22,cr,3,3,"app-alert",11),h.TgZ(23,"div",8),h.TgZ(24,"button",12),h.NdJ("click",function(){return e.selectedGroups.clear()}),h._uU(25),h.ALo(26,"translate"),h.qZA(),h.TgZ(27,"button",10),h.NdJ("click",function(){return e.onFinish()}),h._uU(28),h.ALo(29,"translate"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),h.xp6(3),h.Q6J("linear",!0),h.xp6(4),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.Oqu(h.lcZ(14,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")),h.xp6(2),h.Q6J("disabled",null===e.selectedResource||e.processing||e.loading),h.xp6(1),h.Oqu(h.lcZ(17,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CONTINUE")),h.xp6(4),h.Q6J("ngIf",e.processing),h.xp6(1),h.Q6J("ngIf",0!==e.groups.length&&!e.processing),h.xp6(1),h.Q6J("ngIf",0===e.groups.length&&!e.processing),h.xp6(3),h.hij(" ",h.lcZ(26,22,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK"),""),h.xp6(2),h.Q6J("disabled",0===e.selectedGroups.selected.length||e.processing),h.xp6(1),h.hij(" ",h.lcZ(29,24,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT"),""))},directives:[A.uh,A.xY,Xn.Vq,Xn.C0,Xn.VY,o.O5,A.H8,b.lW,Xn.Ic,Xn.fd,I.$g,Le.KE,Re.Nt,Ne.Fj,Wn.ZL,Ne.JJ,Ne.oH,Wn.XC,o.sg,Ce.gD,De.ey,bn.W,vt.w],pipes:[_.X$,o.Ov],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),t})();var pr=i(88884);function dr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"perun-web-apps-refresh-button",6),h.NdJ("refresh",function(){return h.CHM(t),h.oxw().refreshTable()}),h.qZA()}}function gr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().addResource()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function hr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"perun-web-apps-immediate-filter",8),h.NdJ("filter",function(e){return h.CHM(t),h.oxw().applyFilter(e)}),h.qZA()}2&t&&h.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER")}function mr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"perun-web-apps-resources-list",9),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("displayedColumns",t.displayedColumns)("routingVo",!0)("disableRouting",!t.routeAuth)("resources",t.resources)}}function Ar(t,e){1&t&&h._UZ(0,"mat-spinner",10)}let Tr=(()=>{class t{constructor(t,e,i,o,a,s){this.dialog=t,this.tableConfigService=e,this.memberManager=i,this.resourceManager=o,this.route=a,this.authResolver=s,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=Ca.aL}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.memberManager.getMemberById(t.memberId).subscribe(t=>{this.member=t,this.refreshTable()})})}addResource(){const t=(0,c.kZ)();t.width="1200px",t.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(ur,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(t=>{this.resources=t,this.setAuthRights(),this.loading=!1})}setAuthRights(){const t={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[t]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[t,this.resources[0]]))}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.uw),h.Y36(Ca.dB),h.Y36(l.uq),h.Y36(l.xk),h.Y36(a.gz),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-resources"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["class","mr-2",3,"placeholder","filter",4,"ngIf"],[3,"pageSize","filterValue","displayedColumns","routingVo","disableRouting","resources","page",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",3,"click"],[1,"mr-2",3,"placeholder","filter"],[3,"pageSize","filterValue","displayedColumns","routingVo","disableRouting","resources","page"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,dr,1,0,"perun-web-apps-refresh-button",1),h.YNc(5,gr,3,3,"button",2),h.YNc(6,hr,1,1,"perun-web-apps-immediate-filter",3),h.YNc(7,mr,1,6,"perun-web-apps-resources-list",4),h.qZA(),h.YNc(8,Ar,1,0,"mat-spinner",5)),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,6,"MEMBER_DETAIL.RESOURCES.TITLE")),h.xp6(2),h.Q6J("ngIf",!e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading&&e.addAuth),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(1),h.Q6J("ngIf",e.loading))},directives:[o.O5,Ra.t,b.lW,Da.L,pr.C,I.$g],pipes:[_.X$],styles:[""]}),t})();var Ir=i(72920),fr=i(76527),Er=i(42473),Zr=i(77968),br=i(22927),_r=i(79472),Sr=i(64359),Nr=i(75374),vr=i(95142),Or=i(48666);function xr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().onAdd()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function Lr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().onRemove()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function Cr(t,e){1&t&&h._UZ(0,"mat-spinner",9)}function Rr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-ext-sources-list",10),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("pageSize",t.pageSize)("extSources",t.extSources)("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("selection",t.selection)}}let Dr=(()=>{class t{constructor(t,e,i,o,a,s,n,r){this.extSourceService=t,this.route=e,this.dialog=i,this.notificator=o,this.tableConfigService=a,this.translate=s,this.authResolver=n,this.groupService=r,this.extSources=[],this.selection=new fa.Ov(!0,[]),this.filterValue="",this.tableId=Ca.S7,this.displayedColumns=[],this.translate.get("GROUP_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(t=>this.successMessage=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.groupId=t.groupId,this.groupService.getGroupById(this.groupId).subscribe(t=>{this.group=t,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.groupId).subscribe(t=>{this.extSources=t,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t}onAdd(){const t=(0,c.kZ)();t.width="1000px",t.data={voId:this.voId,groupId:this.groupId,extSources:this.extSources,theme:"group-theme"},this.dialog.open(rn,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,c.kZ)();t.width="600px",t.data={voId:this.voId,groupId:this.groupId,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(An,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.KG),h.Y36(a.gz),h.Y36(A.uw),h.Y36(u.V6),h.Y36(Ca.dB),h.Y36(_.sK),h.Y36(u.x4),h.Y36(l.ff))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","extSources","displayedColumns","filterValue","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","extSources","displayedColumns","filterValue","selection","page"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.YNc(5,xr,3,3,"button",2),h.YNc(6,Lr,3,4,"button",3),h.TgZ(7,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(8,Cr,1,0,"mat-spinner",5),h.YNc(9,Rr,1,5,"app-ext-sources-list",6),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),h.xp6(3),h.Q6J("ngIf",e.addAuth),h.xp6(1),h.Q6J("ngIf",e.removeAuth),h.xp6(1),h.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[Ra.t,o.O5,Da.L,b.lW,I.$g,an.D],pipes:[_.X$],styles:[""]}),t})();function Mr(t,e){1&t&&h._UZ(0,"th",9)}function Ur(t,e){if(1&t&&(h.TgZ(0,"td",10),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t,": ")}}function qr(t,e){1&t&&h._UZ(0,"th",9)}function Pr(t,e){if(1&t&&(h.TgZ(0,"td",11),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw();h.xp6(1),h.hij(" ",i.statistics.get(t.toLowerCase())," ")}}function wr(t,e){1&t&&h._UZ(0,"tr",12)}let yr=(()=>{class t{constructor(){this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}ngOnInit(){this.dataSource=new st.by(this.rowNames)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"mat-card",0),h.TgZ(1,"mat-card-header"),h.TgZ(2,"mat-card-title"),h.TgZ(3,"h1",1),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(6,"mat-card-content"),h.TgZ(7,"table",2),h.ynx(8,3),h.YNc(9,Mr,1,0,"th",4),h.YNc(10,Ur,2,1,"td",5),h.BQk(),h.ynx(11,6),h.YNc(12,qr,1,0,"th",4),h.YNc(13,Pr,2,1,"td",7),h.BQk(),h.YNc(14,wr,1,0,"tr",8),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.xp6(4),h.Oqu(h.lcZ(5,3,e.title)),h.xp6(3),h.Q6J("dataSource",e.dataSource),h.xp6(7),h.Q6J("matRowDefColumns",e.displayedColumns))},directives:[lt.a8,lt.dk,lt.n5,lt.dn,st.BZ,st.w1,st.fO,st.Dz,st.nj,st.ge,st.ev,st.Gk],pipes:[_.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0;display:inline-block;vertical-align:top}"]}),t})();function Gr(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function Yr(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"app-statistics-card",4),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("rowNames",t.rowNames)("statistics",t.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}let Jr=(()=>{class t{constructor(t,e){this.voService=t,this.route=e,this.loading=!1,this.dataSource=new st.by,this.displayedColumns=["status","count"],this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]])}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.voId=t.voId,this.dataSource=new st.by(this.rowNames),this.voService.getVoMembersCountsByStatus(this.voId).subscribe(t=>{this.allMembersCount=0;for(const e of Object.keys(t))this.membersCount.set(e.toLowerCase(),t[e]),this.allMembersCount+=t[e];this.membersCount.set("members",this.allMembersCount),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.YF),h.Y36(a.gz))},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,Gr,1,0,"mat-spinner",1),h.YNc(4,Yr,2,3,"div",2)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,3,"VO_DETAIL.STATISTICS.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,I.$g,yr],pipes:[_.X$],styles:[""]}),t})();function Vr(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function Fr(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"app-statistics-card",4),h._UZ(2,"app-statistics-card",4),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("rowNames",t.voStatusCountsRowNames)("statistics",t.membersCountsByVoStatus)("title","GROUP_DETAIL.STATISTICS.VO_STATUS_COUNT"),h.xp6(1),h.Q6J("rowNames",t.groupStatusCountsRowNames)("statistics",t.membersCountsByGroupStatus)("title","GROUP_DETAIL.STATISTICS.GROUP_STATUS_COUNT")}}let Qr=(()=>{class t{constructor(t,e){this.route=t,this.groupService=e,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.route.parent.params.subscribe(t=>{this.groupId=t.groupId,this.groupService.getGroupMembersCount(this.groupId).subscribe(t=>{this.membersCountsByVoStatus.set("members",t),this.membersCountsByGroupStatus.set("members",t),this.groupService.getGroupMembersCountsByVoStatus(this.groupId).subscribe(t=>{Object.entries(t).forEach(([t,e])=>this.membersCountsByVoStatus.set(t.toLowerCase(),e)),this.groupService.getGroupMembersCountsByGroupStatus(this.groupId).subscribe(t=>{Object.entries(t).forEach(([t,e])=>this.membersCountsByGroupStatus.set(t.toLowerCase(),e)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(a.gz),h.Y36(l.ff))},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,Vr,1,0,"mat-spinner",1),h.YNc(4,Fr,3,6,"div",2)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,3,"GROUP_DETAIL.STATISTICS.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,I.$g,yr],pipes:[_.X$],styles:[""]}),t})();var kr=i(91058);function zr(t,e){1&t&&h._UZ(0,"mat-spinner",6)}const Br=function(){return["select","id","name","description"]};function jr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",7),h.TgZ(1,"perun-web-apps-debounce-filter",8),h.NdJ("filter",function(e){return h.CHM(t),h.oxw().applyFilter(e)}),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"perun-web-apps-groups-list",9),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.s9C("placeholder",h.lcZ(2,8,"DIALOGS.ADD_GROUP_TO_REGISTRATION.FILTER_DESCRIPTION")),h.xp6(2),h.Q6J("pageSize",t.pageSize)("groups",t.unAssignedGroups)("selection",t.selection)("filter",t.filterValue)("displayedColumns",h.DdM(10,Br))("disableRouting",!0)("disableMembers",!0)}}let Hr=(()=>{class t{constructor(t,e,i,o,a){this.dialogRef=t,this.data=e,this.groupService=i,this.registrarService=o,this.tableConfigService=a,this.loading=!1,this.selection=new fa.Ov(!0,[]),this.filterValue="",this.tableId=Ca.Is}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.groupService.getAllGroups(this.data.voId).subscribe(t=>{this.unAssignedGroups=t.filter(t=>this.data.assignedGroups.indexOf(t.id)<=-1),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.registrarService.addGroupsToAutoRegistration(this.selection.selected.map(t=>t.id)).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.ff),h.Y36(l.tk),h.Y36(Ca.dB))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-add-group-to-registration"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-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","accent",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"pageSize","groups","selection","filter","displayedColumns","disableRouting","disableMembers","page"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,zr,1,0,"mat-spinner",1),h.YNc(5,jr,4,11,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onAdd()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.ADD_GROUP_TO_REGISTRATION.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.ADD_GROUP_TO_REGISTRATION.CANCEL_BUTTON")," "),h.xp6(2),h.Q6J("disabled",0===e.selection.selected.length||e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.ADD_GROUP_TO_REGISTRATION.ADD_BUTTON")," "))},directives:[A.uh,o.O5,A.H8,b.lW,I.$g,A.xY,kr.P,bn.W],pipes:[_.X$],styles:[""]}),t})();const $r=["list"];function Xr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",9),h.NdJ("click",function(){return h.CHM(t),h.oxw().onAddGroup()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.ADD"),"\n"))}function Wr(t,e){1&t&&h._UZ(0,"mat-spinner",10)}const Kr=function(){return["select","id","name","description"]};function tl(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"perun-web-apps-groups-list",11,12),h.NdJ("page",function(e){return h.CHM(t),h.oxw().pageChanged(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("selection",t.selected)("pageSize",t.pageSize)("displayedColumns",h.DdM(7,Kr))("disableRouting",!0)("filter",t.filterValue)("authType","application-form-manage-groups")("groups",t.groups)}}let el=(()=>{class t{constructor(t,e,i,o,a){this.tableConfigService=t,this.registrarService=e,this.authResolver=i,this.dialog=o,this.route=a,this.groups=[],this.selected=new fa.Ov(!0,[]),this.tableId=Ca.CE,this.filterValue=""}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.loadGroups()})}loadGroups(){this.loading=!0,this.registrarService.getGroupsToAutoRegistration(this.voId).subscribe(t=>{this.groups=t,this.selected.clear(),this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}onAddGroup(){const t=(0,c.kZ)();t.width="900px",t.data={voId:this.voId,assignedGroups:this.groups.map(t=>t.id),theme:"vo-theme"},this.dialog.open(Hr,t).afterClosed().subscribe(t=>{t&&this.loadGroups()})}removeGroup(){const t=(0,c.kZ)();t.width="450px",t.data={items:this.selected.selected.map(t=>t.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"},this.dialog.open(d.Tf,t).afterClosed().subscribe(t=>{t&&this.registrarService.deleteGroupsFromAutoRegistration(this.selected.selected.map(t=>t.id)).subscribe(()=>{this.loadGroups()})})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"}])}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(Ca.dB),h.Y36(l.tk),h.Y36(u.x4),h.Y36(A.uw),h.Y36(a.gz))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-application-form-manage-groups"]],viewQuery:function(t,e){if(1&t&&h.Gf($r,5),2&t){let t;h.iGM(t=h.CRH())&&(e.list=t.first)}},decls:17,vars:22,consts:[[1,"page-subtitle"],[3,"alert_type"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"selection","pageSize","displayedColumns","disableRouting","filter","authType","groups","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"selection","pageSize","displayedColumns","disableRouting","filter","authType","groups","page"],["list",""]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"app-alert",1),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"perun-web-apps-refresh-button",2),h.NdJ("refresh",function(){return e.loadGroups()}),h.qZA(),h.YNc(8,Xr,3,3,"button",3),h.TgZ(9,"span",4),h.ALo(10,"translate"),h.TgZ(11,"button",5),h.NdJ("click",function(){return e.removeGroup()}),h._uU(12),h.ALo(13,"translate"),h.qZA(),h.qZA(),h.TgZ(14,"perun-web-apps-immediate-filter",6),h.NdJ("filter",function(t){return e.filterValue=t}),h.qZA(),h.YNc(15,Wr,1,0,"mat-spinner",7),h.YNc(16,tl,2,8,"perun-web-apps-groups-list",8)),2&t&&(h.xp6(1),h.AsE(" ",h.lcZ(2,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",h.lcZ(3,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),h.xp6(3),h.Q6J("alert_type","info"),h.xp6(1),h.hij(" ",h.lcZ(6,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),h.xp6(3),h.Q6J("ngIf",e.addAuth),h.xp6(1),h.s9C("matTooltip",h.lcZ(10,18,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),h.Q6J("matTooltipDisabled",void 0===e.list||void 0!==e.list&&e.list.removeAuth),h.xp6(2),h.Q6J("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),h.xp6(1),h.hij(" ",h.lcZ(13,20,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," "),h.xp6(2),h.Q6J("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[vt.w,Ra.t,o.O5,E.gM,b.lW,Da.L,I.$g,bn.W],pipes:[_.X$],styles:[""]}),t})();var il=i(53134);const ol=[{path:"",component:s.Y},{path:":voId",component:at,children:[{path:"",component:j,data:{animation:"VoOverviewPage"}},{path:"attributes",component:Ee,data:{animation:"VoAttributesPage"}},{path:"groups",component:H.G,data:{animation:"VoGroupsPage"}},{path:"members",component:$.y,data:{animation:"VoMembersPage"}},{path:"resources",component:Ae,children:[{path:"",component:Aa,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:Ta.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:Ia.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:ya,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:Te.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:Yi,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:Or.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"statistics",component:Jr,data:{animation:"VoStatisticsPage"}},{path:"settings",component:Ie,children:[{path:"",component:_e,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:je,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:We,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:ao.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:ea,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:el},{path:"notifications",component:ks,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:Zn,data:{animation:"VoSettingsExtSourcesPage"}}]}]},{path:":voId/members/:memberId",component:Q,children:[{path:"",component:le,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:ma,data:{animation:"MemberAttributesPage"}},{path:"groups",component:ce.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:jn,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:Yi,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:Tr,data:{animation:"MemberResourcesPage"}}]},{path:":voId/groups/:groupId",component:P,children:[{path:"",component:he,data:{animation:"GroupOverviewPage"}},{path:"members",component:Ji.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:me.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:He.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:Vi.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:to,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:Qr,data:{animation:"GroupStatisticsPage"}},{path:"settings",component:Fi,children:[{path:"",component:oo,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:Ya,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:Va,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:zs.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:ea},{path:"notifications",component:on,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:Gn,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:Dr,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:Yi,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:Ir.b,children:[{path:"",component:fr.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:Er.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:Nr.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:_r.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:vr.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:il.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:Zr.t,children:[{path:"",component:br.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:Sr.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let al=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[a.Bz.forChild(ol)],a.Bz]}),t})();var sl=i(28780),nl=i(22727),rl=i(22280);let ll=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[o.ez,al,sl.m,nl.r,Un.ez,rl.d4,c.Je]]}),t})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/512-es5.a8526fc624109da8878b.js b/dist/apps/admin-gui/512-es5.a8526fc624109da8878b.js deleted file mode 100644 index 8dbab440f..000000000 --- a/dist/apps/admin-gui/512-es5.a8526fc624109da8878b.js +++ /dev/null @@ -1 +0,0 @@ -!function(){function t(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,a,o=[],r=!0,s=!1;try{for(i=i.call(t);!(r=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);r=!0);}catch(l){s=!0,a=l}finally{try{r||null==i.return||i.return()}finally{if(s)throw a}}return o}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var a=0,o=function(){};return{s:o,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,r=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw r}}}}function i(t,e){if(t){if("string"==typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i_policy",[t.group])?t.groupService.getRichGroupByIdWithAttributesByNames(i,t.attrNames).subscribe(function(e){t.group=e,t.syncEnabled=t.isSynchronized(),t.syncAuth=t.guiAuthResolver.isAuthorized("forceGroupSynchronization_Group_policy",[t.group])},function(){return t.loading=!1}):t.syncEnabled=!1,t.editAuth=t.guiAuthResolver.isAuthorized("updateGroup_Group_policy",[t.group]),t.deleteAuth=t.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[t.group]);var a=t.sideMenuItemService.parseVo(e),o=t.sideMenuItemService.parseGroup(n);t.sideMenuService.setAccessMenuItems([a,o]),t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})})}},{key:"isSynchronized",value:function(){return this.group.attributes.some(function(t){return"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString()})}},{key:"onSyncDetail",value:function(){var t=(0,g.kZ)();t.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(m.Bp,t)}},{key:"editGroup",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={theme:"group-theme",group:this.group,dialogType:m.Eg.GROUP},this.dialog.open(m.rd,e).afterClosed().subscribe(function(e){e&&t.groupService.getGroupById(t.group.id).subscribe(function(e){t.group=e})})}},{key:"deleteGroup",value:function(){var t=this,e=(0,g.kZ)();e.width="500px",e.data={theme:"group-theme",groups:[this.group]},this.dialog.open(A.P,e).afterClosed().subscribe(function(e){e&&t.router.navigate(["../"],{relativeTo:t.route})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(I.D),T.Y36(d.YF),T.Y36(l.gz),T.Y36(c.V),T.Y36(d.ff),T.Y36(v.uw),T.Y36(h.x4),T.Y36(l.F0))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-group-detail-page"]],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"],["mat-icon-button","","aria-label","Edit group",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","aria-label","Edit group",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(t,e){1&t&&(T.TgZ(0,"div",0),T._UZ(1,"perun-web-apps-back-button"),T.YNc(2,R,1,0,"mat-spinner",1),T.YNc(3,G,25,32,"div",2),T.qZA()),2&t&&(T.xp6(2),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.group))},directives:[E.W,s.O5,Z.$g,b.Hw,_.gM,s.PC,l.yS,S.A,N.lW],pipes:[O.X$,x.r,L.J,C.F],styles:[""],data:{animation:[p.Ji]}}),t}();function Y(t,e){1&t&&T._UZ(0,"mat-spinner",3)}var J=function(t){return["/admin","users",t]};function V(t,e){if(1&t&&(T.TgZ(0,"a",8),T._uU(1),T.qZA()),2&t){var i=T.oxw(2);T.Q6J("routerLink",T.VKq(2,J,i.member.userId)),T.xp6(1),T.hij(" ",i.member.userId," ")}}function F(t,e){if(1&t&&(T.TgZ(0,"span"),T._uU(1),T.qZA()),2&t){var i=T.oxw(2);T.xp6(1),T.Oqu(i.member.userId)}}var Q=function(){return{color:"black"}},z=function(t,e){return["/organizations",t,"members",e]};function B(t,e){if(1&t&&(T.TgZ(0,"div"),T.TgZ(1,"div",4),T._UZ(2,"mat-icon",5),T.ALo(3,"translate"),T.TgZ(4,"div",6),T.TgZ(5,"div",7),T.TgZ(6,"a",8),T._uU(7),T.qZA(),T.TgZ(8,"span",9),T._uU(9),T.qZA(),T.qZA(),T.TgZ(10,"span",10),T._uU(11),T.ALo(12,"translate"),T.ALo(13,"translate"),T.YNc(14,V,2,4,"a",11),T.YNc(15,F,2,1,"span",2),T.qZA(),T.qZA(),T.qZA(),T._UZ(16,"app-animated-router-outlet"),T.qZA()),2&t){var i=T.oxw();T.xp6(2),T.s9C("matTooltip",T.lcZ(3,9,"MEMBER_DETAIL.ENTITY")),T.Q6J("ngStyle",T.DdM(15,Q)),T.xp6(4),T.Q6J("routerLink",T.WLB(16,z,i.vo.id,i.member.id)),T.xp6(1),T.hij(" ",i.fullName," "),T.xp6(2),T.hij(" \xa0#",i.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",i.isAuthorized),T.xp6(1),T.Q6J("ngIf",!i.isAuthorized)}}var j=function(){var t=function(){function t(e,i,n,o,r,s,l){a(this,t),this.sideMenuItemService=e,this.translate=i,this.sideMenuService=n,this.membersService=o,this.voService=r,this.route=s,this.authResolver=l,this.fullName="",this.isAuthorized=!1,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe(function(e){var i=e.voId,n=e.memberId;t.isAuthorized=t.authResolver.isPerunAdminOrObserver(),t.voService.getVoById(i).subscribe(function(e){t.vo=e,t.membersService.getRichMemberWithAttributes(n).subscribe(function(e){t.member=e;var i=t.sideMenuItemService.parseVo(t.vo),n=t.sideMenuItemService.parseMember(t.member,t.vo);t.fullName=n.label,t.sideMenuService.setAccessMenuItems([i,n]),t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(c.V),T.Y36(O.sK),T.Y36(I.D),T.Y36(d.uq),T.Y36(d.YF),T.Y36(l.gz),T.Y36(h.x4))},t.\u0275cmp=T.Xpm({type:t,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(t,e){1&t&&(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,B,17,19,"div",2),T.qZA()),2&t&&(T.xp6(2),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.member))},directives:[E.W,s.O5,Z.$g,b.Hw,_.gM,s.PC,l.yS,S.A],pipes:[O.X$],styles:[""],data:{animation:[p.Ji]}}),t}(),H=o(8557);function X(t,e){1&t&&T._UZ(0,"mat-spinner",2)}function $(t,e){if(1&t&&(T.TgZ(0,"div"),T._UZ(1,"perun-web-apps-menu-buttons-field",3),T.qZA()),2&t){var i=T.oxw();T.xp6(1),T.Q6J("items",i.navItems)("size","small")}}var W=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.sideMenuService=e,this.voService=i,this.route=n,this.router=o,this.authResolver=r,this.items=[],this.navItems=[],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e,t.initNavItems(),t.loading=!1},function(){return t.loading=!1})})}},{key:"initNavItems",value:function(){this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:"/organizations/".concat(this.vo.id,"/members"),label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:"/organizations/".concat(this.vo.id,"/groups"),label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-manage-facility",url:"/organizations/".concat(this.vo.id,"/resources"),label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:"/organizations/".concat(this.vo.id,"/applications"),label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:"/organizations/".concat(this.vo.id,"/sponsoredMembers"),label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"/organizations/".concat(this.vo.id,"/attributes"),label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[this.vo])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-statistics",url:"/organizations/".concat(this.vo.id,"/statistics"),label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),(this.authResolver.isManagerPagePrivileged(this.vo)||this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])||this.authResolver.isThisVoAdminOrObserver(this.vo.id))&&this.navItems.push({cssIcon:"perun-settings2",url:"/organizations/".concat(this.vo.id,"/settings"),label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(I.D),T.Y36(d.YF),T.Y36(l.gz),T.Y36(l.F0),T.Y36(h.x4))},t.\u0275cmp=T.Xpm({type:t,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(t,e){1&t&&(T.YNc(0,X,1,0,"mat-spinner",0),T.YNc(1,$,2,2,"div",1)),2&t&&(T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading))},directives:[s.O5,Z.$g,H.L],styles:[""]}),t}(),K=o(48002),tt=o(28940),et=o(99608);function it(t,e){1&t&&T._UZ(0,"mat-spinner",3)}function nt(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",13),T.NdJ("click",function(){return T.CHM(i),T.oxw(2).editVo()}),T.TgZ(1,"mat-icon"),T._uU(2,"edit"),T.qZA(),T.qZA()}}function at(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",14),T.NdJ("click",function(){return T.CHM(i),T.oxw(2).removeVo()}),T.TgZ(1,"mat-icon"),T._uU(2,"delete_forever"),T.qZA(),T.qZA()}}var ot=function(){return{color:"black"}},rt=function(t){return["/organizations/",t]};function st(t,e){if(1&t&&(T.TgZ(0,"div"),T.TgZ(1,"div",4),T._UZ(2,"mat-icon",5),T.ALo(3,"translate"),T.TgZ(4,"div",6),T.TgZ(5,"div",7),T.TgZ(6,"a",8),T._uU(7),T.qZA(),T.TgZ(8,"span",9),T._uU(9),T.qZA(),T.YNc(10,nt,3,0,"button",10),T.YNc(11,at,3,0,"button",11),T.qZA(),T.TgZ(12,"span",12),T._uU(13),T.ALo(14,"translate"),T.ALo(15,"translate"),T.qZA(),T.qZA(),T.qZA(),T._UZ(16,"app-animated-router-outlet"),T.qZA()),2&t){var i=T.oxw();T.xp6(2),T.s9C("matTooltip",T.lcZ(3,10,"VO_DETAIL.ENTITY")),T.Q6J("ngStyle",T.DdM(16,ot)),T.xp6(4),T.Q6J("routerLink",T.VKq(17,rt,i.vo.id)),T.xp6(1),T.hij(" ",i.vo.name," "),T.xp6(2),T.hij(" \xa0#",i.vo.id," "),T.xp6(1),T.Q6J("ngIf",i.editAuth),T.xp6(1),T.Q6J("ngIf",i.removeAuth),T.xp6(2),T.lnq(" ",T.lcZ(14,12,"VO_DETAIL.ENTITY"),", ",T.lcZ(15,14,"VO_DETAIL.SHORT_NAME"),": ",i.vo.shortName," ")}}var lt=function(){var t=function(){function t(e,i,n,o,r,s,l){a(this,t),this.sideMenuService=e,this.voService=i,this.route=n,this.router=o,this.sideMenuItemService=r,this.dialog=s,this.authResolver=l,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e,t.editAuth=t.authResolver.isAuthorized("updateVo_Vo_policy",[t.vo]),t.removeAuth=t.authResolver.isAuthorized("deleteVo_Vo_policy",[t.vo]);var i=t.sideMenuItemService.parseVo(e);t.sideMenuService.setAccessMenuItems([i]),(0,g.sF)("vos",t.vo),(0,g.XI)(t.vo),t.loading=!1},function(){return t.loading=!1})})}},{key:"editVo",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:m.Eg.VO},this.dialog.open(m.rd,e).afterClosed().subscribe(function(e){e&&t.voService.getVoById(t.vo.id).subscribe(function(e){t.vo=e})})}},{key:"removeVo",value:function(){var t=this,e=(0,g.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(et.o,e).afterClosed().subscribe(function(e){e&&t.router.navigate([""])})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(I.D),T.Y36(d.YF),T.Y36(l.gz),T.Y36(l.F0),T.Y36(c.V),T.Y36(v.uw),T.Y36(h.x4))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-vo-detail-page"]],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"],["svgIcon","perun-vo-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,"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",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo",3,"click"]],template:function(t,e){1&t&&(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,st,17,19,"div",2),T.qZA()),2&t&&(T.xp6(2),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading&&void 0!==e.vo))},directives:[E.W,s.O5,Z.$g,b.Hw,_.gM,s.PC,l.yS,S.A,N.lW],pipes:[O.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[p.Ji]}}),t}(),ut=o(67033),ct=o(95121),pt=o(79592),dt=o(27439),gt=o(74842),ht=o(37043),ft=function(){var t=function(){function t(){a(this,t)}return r(t,[{key:"transform",value:function(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?t:"ACTIVE"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=T.Yjl({name:"transformMemberStatus",type:t,pure:!0}),t}(),mt=o(58506);function At(t,e){1&t&&T._UZ(0,"mat-spinner",4)}function Tt(t,e){1&t&&T._UZ(0,"th",12)}function It(t,e){if(1&t&&(T.TgZ(0,"td",13),T._uU(1),T.qZA()),2&t){var i=e.$implicit;T.xp6(1),T.hij(" ",i,": ")}}function vt(t,e){1&t&&T._UZ(0,"th",12)}function Et(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",17),T.NdJ("click",function(){return T.CHM(i),T.oxw(4).changeStatus()}),T.TgZ(1,"mat-icon"),T._uU(2,"edit"),T.qZA(),T.qZA()}}function Zt(t,e){if(1&t&&(T.TgZ(0,"div"),T.TgZ(1,"i"),T.ALo(2,"memberStatusIconColor"),T._uU(3),T.ALo(4,"memberStatusIcon"),T.qZA(),T.TgZ(5,"b",15),T._uU(6),T.ALo(7,"transformMemberStatus"),T.qZA(),T.YNc(8,Et,3,0,"button",16),T.qZA()),2&t){var i=T.oxw(3);T.xp6(1),T.Gre("material-icons vert-center mr-1 ",T.lcZ(2,6,i.member.status),""),T.xp6(2),T.hij(" ",T.lcZ(4,8,i.member.status)," "),T.xp6(3),T.hij(" ",T.lcZ(7,10,i.member.status)," "),T.xp6(2),T.Q6J("ngIf",i.authResolver.isThisVoAdmin(i.vo.id))}}function bt(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",17),T.NdJ("click",function(){return T.CHM(i),T.oxw(4).changeVoExpiration(!1)}),T.TgZ(1,"mat-icon"),T._uU(2,"edit"),T.qZA(),T.qZA()}}function _t(t,e){if(1&t&&(T.TgZ(0,"div"),T.TgZ(1,"i",18),T._uU(2),T.ALo(3,"parseDate"),T.qZA(),T.YNc(4,bt,3,0,"button",16),T.qZA()),2&t){var i=T.oxw(3);T.xp6(2),T.hij(" ",T.lcZ(3,2,i.voExpiration)," "),T.xp6(2),T.Q6J("ngIf",i.authResolver.isThisVoAdmin(i.vo.id))}}function St(t,e){if(1&t&&(T.TgZ(0,"td",14),T.YNc(1,Zt,9,12,"div",3),T.YNc(2,_t,5,4,"div",3),T.qZA()),2&t){var i=e.$implicit;T.xp6(1),T.Q6J("ngIf","Status"===i),T.xp6(1),T.Q6J("ngIf","Expiration"===i)}}function Nt(t,e){1&t&&T._UZ(0,"tr",19)}function Ot(t,e){if(1&t&&(T.TgZ(0,"div"),T.TgZ(1,"table",5),T.ynx(2,6),T.YNc(3,Tt,1,0,"th",7),T.YNc(4,It,2,1,"td",8),T.BQk(),T.ynx(5,9),T.YNc(6,vt,1,0,"th",7),T.YNc(7,St,3,2,"td",10),T.BQk(),T.YNc(8,Nt,1,0,"tr",11),T.qZA(),T.qZA()),2&t){var i=T.oxw();T.xp6(1),T.Q6J("dataSource",i.voMembershipDataSource),T.xp6(7),T.Q6J("matRowDefColumns",i.displayedColumns)}}var xt=function(){var t=function(){function t(e,i,n,o,r,s){a(this,t),this.dialog=e,this.authResolver=i,this.apiRequest=n,this.attributesManager=o,this.translate=r,this.notificator=s,this.voMembershipDataSource=new ut.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}return r(t,[{key:"ngOnChanges",value:function(){this.voMembershipDataSource=new ut.by(["Status","Expiration"]),this.refreshVoExpiration()}},{key:"changeStatus",value:function(){var t=this,e=(0,g.kZ)();e.width="600px",e.data={member:this.member,voId:this.vo.id};var i=this.member.status;this.dialog.open(m.pf,e).afterClosed().subscribe(function(e){e&&(t.member=e,("VALID"!==i||"EXPIRED"!==e.status&&"DISABLED"!==e.status)&&"VALID"!==e.status||t.changeVoExpiration(!0))})}},{key:"changeVoExpiration",value:function(t){var e=this,i=(0,g.kZ)();i.width="400px",i.data={voId:this.vo.id,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:t},this.dialog.open(m.kZ,i).afterClosed().subscribe(function(t){t&&e.refreshVoExpiration()})}},{key:"refreshVoExpiration",value:function(){var t=this;this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,f.r.MEMBER_DEF_EXPIRATION).subscribe(function(e){t.voExpirationAtt=e,t.voExpiration=e.value?e.value:t.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),t.loading=!1},function(e){"PrivilegeException"!==e.error.name?t.notificator.showError(e):t.voMembershipDataSource=new ut.by(["Status"]),t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(v.uw),T.Y36(h.x4),T.Y36(h.F5),T.Y36(d.H8),T.Y36(O.sK),T.Y36(h.V6))},t.\u0275cmp=T.Xpm({type:t,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(t,e){1&t&&(T.TgZ(0,"mat-card",0),T.TgZ(1,"mat-card-header"),T.TgZ(2,"mat-card-title"),T.TgZ(3,"h1",1),T._uU(4),T.ALo(5,"translate"),T.qZA(),T.qZA(),T.qZA(),T.TgZ(6,"mat-card-content"),T.YNc(7,At,1,0,"mat-spinner",2),T.YNc(8,Ot,9,2,"div",3),T.qZA(),T.qZA()),2&t&&(T.xp6(4),T.Oqu(T.lcZ(5,3,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")),T.xp6(3),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading))},directives:[dt.a8,dt.dk,dt.n5,dt.dn,s.O5,Z.$g,ut.BZ,ut.w1,ut.fO,ut.Dz,ut.nj,ut.ge,ut.ev,N.lW,b.Hw,ut.Gk],pipes:[O.X$,gt.u,ht.f,ft,mt.M],styles:[".membership-card[_ngcontent-%COMP%]{max-width:400px}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),t}(),Lt=o(37665),Ct=o(39571);function Rt(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"perun-web-apps-group-search-select",7),T.NdJ("groupSelected",function(t){return T.CHM(i),T.oxw().groupIsSelected(t)}),T.qZA()}if(2&t){var n=T.oxw();T.Q6J("groups",n.groups)("firstSelectedGroup",n.selectedGroup)}}function Dt(t,e){1&t&&T._UZ(0,"mat-spinner",8)}function yt(t,e){1&t&&(T.TgZ(0,"app-alert",9),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function Mt(t,e){1&t&&T._UZ(0,"th",17)}function Ut(t,e){if(1&t&&(T.TgZ(0,"td",18),T._uU(1),T.qZA()),2&t){var i=e.$implicit;T.xp6(1),T.hij(" ",i,": ")}}function qt(t,e){1&t&&T._UZ(0,"th",17)}function Pt(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",22),T.NdJ("click",function(){return T.CHM(i),T.oxw(4).changeStatus()}),T.TgZ(1,"mat-icon"),T._uU(2,"edit"),T.qZA(),T.qZA()}}function wt(t,e){if(1&t&&(T.TgZ(0,"div"),T.TgZ(1,"i"),T.ALo(2,"memberStatusIconColor"),T._uU(3),T.ALo(4,"memberStatusIcon"),T.qZA(),T.TgZ(5,"b",20),T._uU(6),T.ALo(7,"transformMemberStatus"),T.qZA(),T.YNc(8,Pt,3,0,"button",21),T.qZA()),2&t){var i=T.oxw(3);T.xp6(1),T.Gre("material-icons vert-center mr-1 ",T.lcZ(2,6,i.selectedMember.groupStatus),""),T.xp6(2),T.hij(" ",T.lcZ(4,8,i.selectedMember.groupStatus)," "),T.xp6(3),T.hij(" ",T.lcZ(7,10,i.selectedMember.groupStatus)," "),T.xp6(2),T.Q6J("ngIf",i.authResolver.isThisVoAdmin(i.vo.id)||i.authResolver.isThisGroupAdmin(i.selectedGroup.id))}}function Gt(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",22),T.NdJ("click",function(){return T.CHM(i),T.oxw(4).changeExpiration()}),T.TgZ(1,"mat-icon"),T._uU(2,"edit"),T.qZA(),T.qZA()}}function kt(t,e){if(1&t&&(T.TgZ(0,"div"),T.TgZ(1,"i",2),T._uU(2),T.ALo(3,"parseDate"),T.qZA(),T.YNc(4,Gt,3,0,"button",21),T.qZA()),2&t){var i=T.oxw(3);T.xp6(2),T.hij(" ",T.lcZ(3,2,i.expiration)," "),T.xp6(2),T.Q6J("ngIf",i.authResolver.isThisVoAdmin(i.vo.id)||i.authResolver.isThisGroupAdmin(i.selectedGroup.id))}}function Yt(t,e){if(1&t&&(T.TgZ(0,"td",19),T.YNc(1,wt,9,12,"div",6),T.YNc(2,kt,5,4,"div",6),T.qZA()),2&t){var i=e.$implicit;T.xp6(1),T.Q6J("ngIf","Status"===i),T.xp6(1),T.Q6J("ngIf","Expiration"===i)}}function Jt(t,e){1&t&&T._UZ(0,"tr",23)}function Vt(t,e){if(1&t&&(T.TgZ(0,"div"),T.TgZ(1,"table",10),T.ynx(2,11),T.YNc(3,Mt,1,0,"th",12),T.YNc(4,Ut,2,1,"td",13),T.BQk(),T.ynx(5,14),T.YNc(6,qt,1,0,"th",12),T.YNc(7,Yt,3,2,"td",15),T.BQk(),T.YNc(8,Jt,1,0,"tr",16),T.qZA(),T.qZA()),2&t){var i=T.oxw();T.xp6(1),T.Q6J("dataSource",i.groupMembershipDataSource),T.xp6(7),T.Q6J("matRowDefColumns",i.displayedColumns)}}var Ft=function(){var t=function(){function t(e,i,n,o){a(this,t),this.groupsManager=e,this.authResolver=i,this.translate=n,this.dialog=o,this.noGroups=!1,this.groupMembershipDataSource=new ut.by,this.expiration="",this.displayedColumns=["attName","attValue"]}return r(t,[{key:"ngOnChanges",value:function(){var t=this;this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new ut.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(function(e){if(t.groups=e,0!==t.groups.length){var i=t.findInitiallySelectedGroupId();t.groupIsSelected(i),t.initLoading=!1}else t.noGroups=!0})}},{key:"findInitiallySelectedGroupId",value:function(){var t=this;if(this.recentIds=(0,g.vL)("groups"),this.recentIds){var e=this.groups.find(function(e){return e.id===t.recentIds[0]});if(e)return e}return this.groups[0]}},{key:"groupIsSelected",value:function(t){var e=this;this.loading=!0,this.selectedGroup=t,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[f.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(function(t){e.selectedMember=t[0],e.expirationAtt=e.selectedMember.memberAttributes.find(function(t){return"groupMembershipExpiration"===t.baseFriendlyName}),e.expirationAtt?(e.groupMembershipDataSource=new ut.by(["Status","Expiration"]),e.expiration=e.expirationAtt.value?e.expirationAtt.value:e.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):e.groupMembershipDataSource=new ut.by(["Status"]),e.loading=!1})}},{key:"changeExpiration",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=(0,g.kZ)();i.width="400px",i.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:e},this.dialog.open(m.u3,i).afterClosed().subscribe(function(e){e&&t.groupIsSelected(t.selectedGroup)})}},{key:"changeStatus",value:function(){var t=this,e=(0,g.kZ)();e.width="600px",e.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(m.pf,e).afterClosed().subscribe(function(e){e&&(t.selectedMember=e,t.changeExpiration(!0))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(d.ff),T.Y36(h.x4),T.Y36(O.sK),T.Y36(v.uw))},t.\u0275cmp=T.Xpm({type:t,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,"groups","firstSelectedGroup","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","info",4,"ngIf"],[4,"ngIf"],[3,"groups","firstSelectedGroup","groupSelected"],[1,"mr-auto","ml-auto"],["alert_type","info"],["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(t,e){1&t&&(T.TgZ(0,"mat-card",0),T.TgZ(1,"mat-card-header"),T.TgZ(2,"mat-card-title"),T.TgZ(3,"h1",1),T._uU(4),T.ALo(5,"translate"),T.qZA(),T.qZA(),T.qZA(),T.TgZ(6,"mat-card-content",2),T.YNc(7,Rt,1,2,"perun-web-apps-group-search-select",3),T.YNc(8,Dt,1,0,"mat-spinner",4),T.YNc(9,yt,3,3,"app-alert",5),T.YNc(10,Vt,9,2,"div",6),T.qZA(),T.qZA()),2&t&&(T.xp6(4),T.Oqu(T.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")),T.xp6(3),T.Q6J("ngIf",!e.initLoading),T.xp6(1),T.Q6J("ngIf",(e.loading||e.initLoading)&&!e.noGroups),T.xp6(1),T.Q6J("ngIf",e.noGroups),T.xp6(1),T.Q6J("ngIf",!e.loading))},directives:[dt.a8,dt.dk,dt.n5,dt.dn,s.O5,Lt.h,Z.$g,Ct.w,ut.BZ,ut.w1,ut.fO,ut.Dz,ut.nj,ut.ge,ut.ev,N.lW,b.Hw,ut.Gk],pipes:[O.X$,gt.u,ht.f,ft,mt.M],styles:[".groups-card[_ngcontent-%COMP%]{max-width:400px}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),t}(),Qt=function(){var t=function(){function t(){a(this,t)}return r(t,[{key:"transform",value:function(t){return(0,g.Cz)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=T.Yjl({name:"attributeFriendlyName",type:t,pure:!0}),t}(),zt=o(22196);function Bt(t,e){1&t&&T._UZ(0,"mat-spinner",2)}function jt(t,e){1&t&&T._UZ(0,"th",17)}function Ht(t,e){if(1&t&&(T.TgZ(0,"span"),T._uU(1),T.qZA()),2&t){var i=T.oxw().$implicit,n=T.oxw(2);T.xp6(1),T.hij(" ",n.attributes.get(i)[0],": ")}}function Xt(t,e){if(1&t&&(T.TgZ(0,"span"),T._uU(1),T.ALo(2,"attributeFriendlyName"),T.qZA()),2&t){var i=T.oxw().$implicit;T.xp6(1),T.hij(" ",T.lcZ(2,1,i),": ")}}function $t(t,e){if(1&t&&(T.TgZ(0,"td",18),T.YNc(1,Ht,2,1,"span",1),T.YNc(2,Xt,3,3,"span",1),T.qZA()),2&t){var i=e.$implicit,n=T.oxw(2);T.xp6(1),T.Q6J("ngIf",null!==n.attributes.get(i)[0]),T.xp6(1),T.Q6J("ngIf",null===n.attributes.get(i)[0])}}function Wt(t,e){1&t&&T._UZ(0,"th",17)}function Kt(t,e){if(1&t&&(T.TgZ(0,"td",19),T._uU(1),T.qZA()),2&t){var i=e.$implicit,n=T.oxw(2);T.xp6(1),T.hij(" ",n.attributes.get(i)[1]," ")}}function te(t,e){1&t&&T._UZ(0,"tr",20)}function ee(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"mat-card",5),T.TgZ(1,"mat-card-header"),T.TgZ(2,"mat-card-title"),T.TgZ(3,"h1",6),T._uU(4),T.ALo(5,"translate"),T.qZA(),T.qZA(),T.qZA(),T.TgZ(6,"mat-card-content",21),T.TgZ(7,"div",22),T.ALo(8,"translate"),T.TgZ(9,"button",23),T.NdJ("click",function(){return T.CHM(i),T.oxw(2).requestPwdReset()}),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.qZA(),T.qZA(),T.qZA()}if(2&t){var n=T.oxw(2);T.xp6(4),T.Oqu(T.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),T.xp6(3),T.Q6J("matTooltip",T.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED"))("matTooltipDisabled",n.logins.length>0),T.xp6(2),T.Q6J("disabled",!n.logins.length),T.xp6(1),T.hij(" ",T.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function ie(t,e){1&t&&(T.TgZ(0,"th",17),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")))}function ne(t,e){if(1&t&&(T.TgZ(0,"td",33),T._uU(1),T.ALo(2,"userFullName"),T.qZA()),2&t){var i=e.$implicit;T.xp6(1),T.hij(" ",T.lcZ(2,1,i.user)," ")}}function ae(t,e){1&t&&(T.TgZ(0,"th",17),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")))}function oe(t,e){if(1&t&&(T.TgZ(0,"td",33),T.TgZ(1,"span",34),T._uU(2),T.ALo(3,"parseDate"),T.qZA(),T.qZA()),2&t){var i=e.$implicit;T.xp6(2),T.Oqu(T.lcZ(3,1,i.validityTo))}}function re(t,e){1&t&&T._UZ(0,"tr",35)}function se(t,e){1&t&&T._UZ(0,"tr",20)}var le=function(){return["sponsors","expiration"]};function ue(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"mat-card-content"),T.TgZ(1,"h6",26),T._uU(2),T.ALo(3,"translate"),T.TgZ(4,"button",27),T.NdJ("click",function(){return T.CHM(i),T.oxw(3).changeSponsors()}),T.TgZ(5,"mat-icon"),T._uU(6,"edit"),T.qZA(),T.qZA(),T.qZA(),T.TgZ(7,"table",28),T.ynx(8,29),T.YNc(9,ie,3,3,"th",9),T.YNc(10,ne,3,3,"td",30),T.BQk(),T.ynx(11,31),T.YNc(12,ae,3,3,"th",9),T.YNc(13,oe,4,3,"td",30),T.BQk(),T.YNc(14,re,1,0,"tr",32),T.YNc(15,se,1,0,"tr",13),T.qZA(),T.qZA()}if(2&t){var n=T.oxw(3);T.xp6(2),T.hij(" ",T.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),T.xp6(5),T.Q6J("dataSource",n.sponsorsDataSource),T.xp6(7),T.Q6J("matHeaderRowDef",T.DdM(6,le)),T.xp6(1),T.Q6J("matRowDefColumns",T.DdM(7,le))}}function ce(t,e){if(1&t&&(T.TgZ(0,"div"),T.TgZ(1,"mat-card",24),T.TgZ(2,"mat-card-header"),T.TgZ(3,"mat-card-title"),T.TgZ(4,"h1",6),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.qZA(),T.TgZ(7,"mat-card-subtitle",25),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.qZA(),T.YNc(10,ue,16,8,"mat-card-content",1),T.qZA(),T.qZA()),2&t){var i=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!==i.sponsors.length)}}function pe(t,e){if(1&t&&(T.TgZ(0,"div"),T.TgZ(1,"div",3),T.TgZ(2,"div",4),T.TgZ(3,"mat-card",5),T.TgZ(4,"mat-card-header"),T.TgZ(5,"mat-card-title"),T.TgZ(6,"h1",6),T._uU(7),T.ALo(8,"translate"),T.qZA(),T.qZA(),T.qZA(),T.TgZ(9,"mat-card-content"),T.TgZ(10,"table",7),T.ynx(11,8),T.YNc(12,jt,1,0,"th",9),T.YNc(13,$t,3,2,"td",10),T.BQk(),T.ynx(14,11),T.YNc(15,Wt,1,0,"th",9),T.YNc(16,Kt,2,1,"td",12),T.BQk(),T.YNc(17,te,1,0,"tr",13),T.qZA(),T.qZA(),T.qZA(),T.qZA(),T.TgZ(18,"div",4),T._UZ(19,"app-member-overview-membership",14),T._UZ(20,"app-member-overview-groups",14),T.qZA(),T.TgZ(21,"div",4),T.YNc(22,ee,12,11,"mat-card",15),T.YNc(23,ce,11,7,"div",1),T.qZA(),T.qZA(),T.TgZ(24,"div"),T._UZ(25,"perun-web-apps-menu-buttons-field",16),T.qZA(),T.qZA()),2&t){var i=T.oxw();T.xp6(7),T.Oqu(T.lcZ(8,11,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),T.xp6(3),T.Q6J("dataSource",i.dataSource),T.xp6(7),T.Q6J("matRowDefColumns",i.displayedColumns),T.xp6(2),T.Q6J("member",i.member)("vo",i.vo),T.xp6(1),T.Q6J("member",i.member)("vo",i.vo),T.xp6(2),T.Q6J("ngIf",i.pwdResetAuth),T.xp6(1),T.Q6J("ngIf",i.member.sponsored),T.xp6(2),T.Q6J("items",i.navItems)("size","small")}}var de=function(){var t=function(){function t(e,i,n,o,r,s,l){a(this,t),this.attributesManager=e,this.membersService=i,this.usersManager=n,this.route=o,this.dialog=r,this.authResolver=s,this.storeService=l,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new ut.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new ut.by,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.params.subscribe(function(e){var i=e.memberId;t.attributeNames=t.storeService.getMemberProfileAttributeNames(),t.membersService.getRichMemberWithAttributes(i).subscribe(function(e){var i=t.storeService.get("password_namespace_attributes").map(function(t){return(t=t.split(":"))[t.length-1]});t.attributesManager.getLogins(e.userId).subscribe(function(n){t.logins=n.filter(function(t){return i.includes(t.friendlyNameParameter)}),t.member=e,t.initAttributes(),t.dataSource=new ut.by(Array.from(t.attributes.keys())),t.vo={id:e.voId,beanName:"Vo"},t.pwdResetAuth=t.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[t.vo,t.member]),t.member.sponsored&&t.authResolver.isAuthorized("getSponsorsForMember_Member_List_policy",[t.member])?t.usersManager.getSponsorsForMember(t.member.id,null).subscribe(function(e){t.sponsors=e,t.sponsorsDataSource=new ut.by(t.sponsors),t.initNavItems(),t.refreshData()}):(t.initNavItems(),t.refreshData())},function(){return t.loading=!1})})})}},{key:"initAttributes",value:function(){var t=this;this.attributeNames.forEach(function(e){t.attributes.set(e,[null,"-"])}),this.filterAttributes()}},{key:"filterAttributes",value:function(){var t=this;null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(function(e){t.attributeNames.includes(e.friendlyName)&&t.attributes.set(e.friendlyName,[e.displayName,e.value.toString()])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(function(e){t.attributeNames.includes(e.friendlyName)&&t.attributes.set(e.friendlyName,[e.displayName,e.value.toString()])})}},{key:"initNavItems",value:function(){this.navItems=[],this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:"/organizations/".concat(this.member.voId,"/members/").concat(this.member.id,"/groups"),label:"MENU_ITEMS.MEMBER.GROUPS",style:"member-btn"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:"/organizations/".concat(this.member.voId,"/members/").concat(this.member.id,"/applications"),label:"MENU_ITEMS.MEMBER.APPLICATIONS",style:"member-btn"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-resource",url:"/organizations/".concat(this.member.voId,"/members/").concat(this.member.id,"/resources"),label:"MENU_ITEMS.MEMBER.RESOURCES",style:"member-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"/organizations/".concat(this.vo.id,"/members/").concat(this.member.id,"/attributes"),label:"MENU_ITEMS.MEMBER.ATTRIBUTES",style:"member-btn"})}},{key:"refreshData",value:function(){var t=this;this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(function(e){t.member=e,t.loading=!1},function(){return t.loading=!1})}},{key:"requestPwdReset",value:function(){var t=(0,g.kZ)();t.width="400px",t.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(ct.m,t)}},{key:"changeSponsors",value:function(){var t=this,e=(0,g.kZ)();e.width="650px",e.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(pt.H,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.membersService.getRichMemberWithAttributes(t.member.id).subscribe(function(e){t.member=e,t.member.sponsored&&t.usersManager.getSponsorsForMember(t.member.id,null).subscribe(function(e){t.sponsors=e,t.sponsorsDataSource.data=t.sponsors}),t.loading=!1}))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(d.H8),T.Y36(d.uq),T.Y36(d.Fv),T.Y36(l.gz),T.Y36(v.uw),T.Y36(h.x4),T.Y36(h.d6))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.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,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",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(t,e){1&t&&(T.YNc(0,Bt,1,0,"mat-spinner",0),T.YNc(1,pe,26,13,"div",1)),2&t&&(T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading))},directives:[s.O5,Z.$g,dt.a8,dt.dk,dt.n5,dt.dn,ut.BZ,ut.w1,ut.fO,ut.Dz,ut.nj,xt,Ft,H.L,ut.ge,ut.ev,ut.Gk,_.gM,N.lW,dt.$j,b.Hw,ut.as,ut.XQ],pipes:[O.X$,Qt,zt.d,mt.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}"]}),t}(),ge=o(81835);function he(t,e){1&t&&T._UZ(0,"mat-spinner",2)}var fe=function(t,e){return["/organizations",t,"groups",e]};function me(t,e){if(1&t&&(T.TgZ(0,"p"),T._uU(1),T.ALo(2,"translate"),T.TgZ(3,"a",4),T._uU(4),T.qZA(),T.qZA()),2&t){var i=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,fe,i.parentGroup.voId,i.parentGroup.id)),T.xp6(1),T.hij(" ",i.parentGroup.name," ")}}function Ae(t,e){if(1&t&&(T.TgZ(0,"div"),T.YNc(1,me,5,8,"p",1),T._UZ(2,"perun-web-apps-menu-buttons-field",3),T.qZA()),2&t){var i=T.oxw();T.xp6(1),T.Q6J("ngIf",null!==i.parentGroup),T.xp6(1),T.Q6J("items",i.navItems)("size","small")}}var Te=function(){var t=function(){function t(e,i,n,o,r,s,l){a(this,t),this.route=e,this.groupService=i,this.voService=n,this.guiAuthResolver=o,this.apiRequest=r,this.attributesManager=s,this.notificator=l,this.navItems=[],this.parentGroup=null,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe(function(e){t.groupId=e.groupId,t.groupService.getGroupById(t.groupId).subscribe(function(e){t.group=e,null!==t.group.parentGroupId?t.loadParentGroupData():(t.parentGroup=null,t.initNavItems(),t.loading=!1)},function(){return t.loading=!1})})}},{key:"loadParentGroupData",value:function(){var t=this;this.groupService.getGroupById(this.group.parentGroupId).subscribe(function(e){t.parentGroup=e,t.initNavItems(),t.loading=!1},function(){return t.loading=!1})}},{key:"initNavItems",value:function(){var t=this;this.navItems=[],this.guiAuthResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[this.group])&&this.navItems.push({cssIcon:"perun-user",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.groupId,"/members"),label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[this.group])&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.groupId,"/subgroups"),label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getAssignedRichResources_Group_policy",[this.group])&&this.navItems.push({cssIcon:"perun-manage-facility",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.groupId,"/resources"),label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[this.group])&&this.navItems.push({cssIcon:"perun-applications",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.groupId,"/applications"),label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/attributes"),label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"});var e=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[this.group]),i=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[this.group]),n=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[this.group]);e&&n&&i&&this.navItems.push({cssIcon:"perun-statistics",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/statistics"),label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"});var a=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,f.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(){a=!0},function(e){"HttpErrorResponse"!==e.name&&t.notificator.showRPCError(e)});var o=this.guiAuthResolver.isManagerPagePrivileged(this.group),r=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),s=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),l=this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group]);(a||o||r||s||l)&&this.navItems.push({cssIcon:"perun-settings2",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.groupId,"/settings"),label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(l.gz),T.Y36(d.ff),T.Y36(d.YF),T.Y36(h.x4),T.Y36(h.F5),T.Y36(d.H8),T.Y36(h.V6))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.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(t,e){1&t&&(T.YNc(0,he,1,0,"mat-spinner",0),T.YNc(1,Ae,3,3,"div",1)),2&t&&(T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading))},directives:[s.O5,Z.$g,H.L,l.yS],pipes:[O.X$],styles:[""]}),t}(),Ie=o(82044),ve=function(){var t=function(){function t(e){a(this,t),this.route=e}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.voId=e.voId})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(l.gz))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&T._UZ(0,"app-animated-router-outlet")},directives:[S.A],styles:[""],data:{animation:[p.Ji]}}),t}(),Ee=o(40659),Ze=function(){var t=function(){function t(e,i){var n=this;a(this,t),this.route=e,this.router=i,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=i.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),i.events.subscribe(function(t){t instanceof l.m2&&(n.currentUrl=t.url,n.backButtonDisplayed=n.backButtonRegex.test(n.currentUrl))})}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.voId=e.voId})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(l.gz),T.Y36(l.F0))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&T._UZ(0,"app-animated-router-outlet")},directives:[S.A],styles:[""],data:{animation:[p.Ji]}}),t}(),be=o(541),_e=function(){var t=function(){function t(e){a(this,t),this.route=e}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.voId=e.voId})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(l.gz))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-vo-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityId","entity"]],template:function(t,e){1&t&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T._UZ(4,"app-one-entity-attribute-page",1),T.qZA()),2&t&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),T.xp6(2),T.Q6J("entityId",e.voId)("entity","vo"))},directives:[be.t],pipes:[O.X$],styles:[""]}),t}();function Se(t,e){1&t&&T._UZ(0,"mat-spinner",2)}function Ne(t,e){if(1&t&&(T.TgZ(0,"div"),T._UZ(1,"perun-web-apps-menu-buttons-field",3),T.qZA()),2&t){var i=T.oxw();T.xp6(1),T.Q6J("items",i.items)("size","small")}}var Oe=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.sideMenuService=e,this.voService=i,this.authResolver=n,this.route=o,this.router=r,this.items=[],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.parent.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e,t.initItems(),t.loading=!1},function(){return t.loading=!1})})}},{key:"initItems",value:function(){this.items=[],this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-group",url:"/organizations/".concat(this.vo.id,"/settings/expiration"),label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.authResolver.isManagerPagePrivileged(this.vo)&&this.items.push({cssIcon:"perun-manager",url:"/organizations/".concat(this.vo.id,"/settings/managers"),label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-application-form",url:"/organizations/".concat(this.vo.id,"/settings/applicationForm"),label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),this.authResolver.isThisVoAdminOrObserver(this.vo.id)&&this.items.push({cssIcon:"perun-notification",url:"/organizations/".concat(this.vo.id,"/settings/notifications"),label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-external-sources",url:"/organizations/".concat(this.vo.id,"/settings/extsources"),label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(I.D),T.Y36(d.YF),T.Y36(h.x4),T.Y36(l.gz),T.Y36(l.F0))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.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(t,e){1&t&&(T.YNc(0,Se,1,0,"mat-spinner",0),T.YNc(1,Ne,2,2,"div",1)),2&t&&(T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading))},directives:[s.O5,Z.$g,H.L],styles:[""]}),t}(),xe=o(27521),Le=o(16073),Ce=o(54810),Re=["*"],De=function(){var t=function(){function t(){a(this,t),this.modelChange=new T.vpe}return r(t,[{key:"model",get:function(){return this.modelValue},set:function(t){this.modelValue=t}},{key:"ngAfterViewInit",value:function(){var t=this;this.toggle.change.subscribe(function(){return t.valueChanged()})}},{key:"valueChanged",value:function(){this.modelChange.emit(this.toggle.checked)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-settings-toggle-item"]],viewQuery:function(t,e){var i;(1&t&&T.Gf(xe.Rr,7),2&t)&&(T.iGM(i=T.CRH())&&(e.toggle=i.first))},inputs:{title:"title",model:"model"},outputs:{modelChange:"modelChange"},ngContentSelectors:Re,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(t,e){if(1&t){var i=T.EpF();T.F$t(),T.TgZ(0,"div",0),T.TgZ(1,"div",1),T.TgZ(2,"label",2),T.NdJ("click",function(){return T.CHM(i),T.MAs(5).toggle()||e.valueChanged()}),T._uU(3),T.qZA(),T.TgZ(4,"mat-slide-toggle",3,4),T.NdJ("ngModelChange",function(t){return e.modelValue=t}),T.qZA(),T.qZA(),T.TgZ(6,"div",5),T.Hsn(7),T.qZA(),T.qZA()}if(2&t){var n=T.MAs(5);T.xp6(2),T.ekj("unselected-setting",!n.checked),T.xp6(1),T.hij(" ",e.title," "),T.xp6(1),T.Q6J("ngModel",e.modelValue),T.xp6(2),T.Q6J("@openClose",n.checked?"open":"closed")}},directives:[xe.Rr,Le.JJ,Le.On],styles:[""],data:{animation:[p.BQ]}}),t}(),ye=o(66283),Me=o(4786),Ue=o(80340),qe=o(71522),Pe=o(29236);function we(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"div",25),T.TgZ(1,"mat-form-field",26),T.TgZ(2,"input",20),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw(2).currentConfiguration.periodStatic=t}),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-hint"),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.qZA(),T.qZA()}if(2&t){var n=T.oxw(2);T.xp6(2),T.s9C("pattern",n.datePattern),T.s9C("placeholder",T.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),T.Q6J("ngModel",n.currentConfiguration.periodStatic),T.xp6(3),T.Oqu(T.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Ge(t,e){if(1&t&&(T.TgZ(0,"mat-option",27),T._uU(1),T.qZA()),2&t){var i=e.$implicit;T.Q6J("value",i.value),T.xp6(1),T.Oqu(i.text)}}function ke(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"div",18),T.TgZ(1,"mat-form-field",19),T.TgZ(2,"input",20),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw(2).currentConfiguration.periodDynamic=t}),T.ALo(3,"translate"),T.qZA(),T.qZA(),T.TgZ(4,"mat-form-field"),T.TgZ(5,"mat-label"),T._uU(6),T.ALo(7,"translate"),T.qZA(),T.TgZ(8,"mat-select",8),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw(2).currentConfiguration.periodDynamicUnit=t}),T.YNc(9,Ge,2,2,"mat-option",17),T.qZA(),T.qZA(),T.qZA()}if(2&t){var n=T.oxw(2);T.xp6(2),T.s9C("pattern",n.dynamicAmountPattern),T.s9C("placeholder",T.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),T.Q6J("ngModel",n.currentConfiguration.periodDynamic),T.xp6(4),T.Oqu(T.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),T.xp6(2),T.Q6J("ngModel",n.currentConfiguration.periodDynamicUnit),T.xp6(1),T.Q6J("ngForOf",n.amountOptions)}}function Ye(t,e){if(1&t&&(T.TgZ(0,"mat-option",27),T._uU(1),T.qZA()),2&t){var i=e.$implicit;T.Q6J("value",i),T.xp6(1),T.Oqu(i)}}function Je(t,e){if(1&t&&(T.TgZ(0,"mat-option",27),T._uU(1),T.qZA()),2&t){var i=e.$implicit;T.Q6J("value",i),T.xp6(1),T.Oqu(i)}}function Ve(t,e){if(1&t&&(T.TgZ(0,"mat-option",27),T._uU(1),T.qZA()),2&t){var i=e.$implicit;T.Q6J("value",i.value),T.xp6(1),T.Oqu(i.text)}}function Fe(t,e){if(1&t&&(T.TgZ(0,"mat-option",27),T._uU(1),T.qZA()),2&t){var i=e.$implicit;T.Q6J("value",i),T.xp6(1),T.hij(" ",i," ")}}function Qe(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"div",25),T.TgZ(1,"mat-form-field",26),T.TgZ(2,"input",20),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw(3).currentConfiguration.specialLoaPeriodStatic=t}),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-hint"),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.qZA(),T.qZA()}if(2&t){var n=T.oxw(3);T.xp6(2),T.s9C("pattern",n.datePattern),T.s9C("placeholder",T.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),T.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodStatic),T.xp6(3),T.Oqu(T.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function ze(t,e){if(1&t&&(T.TgZ(0,"mat-option",27),T._uU(1),T.qZA()),2&t){var i=e.$implicit;T.Q6J("value",i.value),T.xp6(1),T.Oqu(i.text)}}function Be(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"div",18),T.TgZ(1,"mat-form-field",19),T.TgZ(2,"input",20),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw(3).currentConfiguration.specialLoaPeriodDynamic=t}),T.ALo(3,"translate"),T.qZA(),T.qZA(),T.TgZ(4,"mat-form-field"),T.TgZ(5,"mat-label"),T._uU(6),T.ALo(7,"translate"),T.qZA(),T.TgZ(8,"mat-select",8),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw(3).currentConfiguration.specialLoaPeriodDynamicUnit=t}),T.YNc(9,ze,2,2,"mat-option",17),T.qZA(),T.qZA(),T.qZA()}if(2&t){var n=T.oxw(3);T.xp6(2),T.s9C("pattern",n.dynamicAmountPattern),T.s9C("placeholder",T.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),T.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodDynamic),T.xp6(4),T.Oqu(T.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),T.xp6(2),T.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodDynamicUnit),T.xp6(1),T.Q6J("ngForOf",n.amountOptions)}}function je(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"div",28),T.TgZ(1,"mat-radio-group",8),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw(2).currentConfiguration.specialLoaPeriodType=t}),T.TgZ(2,"mat-radio-button",9,29),T._uU(4),T.ALo(5,"translate"),T.qZA(),T.TgZ(6,"mat-radio-button",11,30),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.qZA(),T.YNc(10,Qe,7,8,"div",13),T.YNc(11,Be,10,10,"div",14),T.TgZ(12,"div"),T.TgZ(13,"mat-checkbox",31),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw(2).currentConfiguration.specialLoaPeriodExtendExpiredMembers=t}),T._uU(14),T.ALo(15,"translate"),T.qZA(),T.qZA(),T.qZA()}if(2&t){var n=T.MAs(3),a=T.MAs(7),o=T.oxw(2);T.xp6(1),T.Q6J("ngModel",o.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",n.checked),T.xp6(1),T.Q6J("ngIf",a.checked),T.xp6(2),T.Q6J("ngModel",o.currentConfiguration.specialLoaPeriodExtendExpiredMembers),T.xp6(1),T.hij(" ",T.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function He(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"div",1),T.TgZ(1,"div",2),T.TgZ(2,"h1",3),T.NdJ("click",function(){return T.CHM(i),T.MAs(6).toggle()}),T._uU(3),T.ALo(4,"translate"),T.qZA(),T.TgZ(5,"mat-slide-toggle",4,5),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw().currentConfiguration.enabled=t}),T.qZA(),T.qZA(),T.TgZ(7,"div"),T.TgZ(8,"label",6),T._uU(9),T.ALo(10,"translate"),T.qZA(),T.TgZ(11,"div",7),T.TgZ(12,"mat-radio-group",8),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw().currentConfiguration.periodType=t}),T.TgZ(13,"mat-radio-button",9,10),T._uU(15),T.ALo(16,"translate"),T.qZA(),T.TgZ(17,"mat-radio-button",11,12),T._uU(19),T.ALo(20,"translate"),T.qZA(),T.qZA(),T.YNc(21,we,7,8,"div",13),T.YNc(22,ke,10,10,"div",14),T.qZA(),T.TgZ(23,"app-settings-toggle-item",15),T.NdJ("modelChange",function(t){return T.CHM(i),T.oxw().currentConfiguration.doNotAllowLoasEnabled=t}),T.ALo(24,"translate"),T.TgZ(25,"mat-form-field"),T.TgZ(26,"mat-placeholder"),T._uU(27),T.ALo(28,"translate"),T.qZA(),T.TgZ(29,"mat-select",16),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw().currentConfiguration.doNotAllowLoas=t}),T.YNc(30,Ye,2,2,"mat-option",17),T.qZA(),T.qZA(),T.qZA(),T.TgZ(31,"app-settings-toggle-item",15),T.NdJ("modelChange",function(t){return T.CHM(i),T.oxw().currentConfiguration.doNotExtendLoasEnabled=t}),T.ALo(32,"translate"),T.TgZ(33,"mat-form-field"),T.TgZ(34,"mat-placeholder"),T._uU(35),T.ALo(36,"translate"),T.qZA(),T.TgZ(37,"mat-select",16),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw().currentConfiguration.doNotExtendLoas=t}),T.YNc(38,Je,2,2,"mat-option",17),T.qZA(),T.qZA(),T.qZA(),T.TgZ(39,"app-settings-toggle-item",15),T.NdJ("modelChange",function(t){return T.CHM(i),T.oxw().currentConfiguration.gracePeriodEnabled=t}),T.ALo(40,"translate"),T.TgZ(41,"div",18),T.TgZ(42,"mat-form-field",19),T.TgZ(43,"input",20),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw().currentConfiguration.gracePeriod=t}),T.ALo(44,"translate"),T.qZA(),T.qZA(),T.TgZ(45,"mat-form-field"),T.TgZ(46,"mat-label"),T._uU(47),T.ALo(48,"translate"),T.qZA(),T.TgZ(49,"mat-select",8),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw().currentConfiguration.gracePeriodUnit=t}),T.YNc(50,Ve,2,2,"mat-option",17),T.qZA(),T.qZA(),T.qZA(),T.qZA(),T.TgZ(51,"app-settings-toggle-item",15),T.NdJ("modelChange",function(t){return T.CHM(i),T.oxw().currentConfiguration.specialLoaPeriodEnabled=t}),T.ALo(52,"translate"),T.TgZ(53,"div",7),T.TgZ(54,"div"),T.TgZ(55,"mat-form-field"),T.TgZ(56,"mat-label"),T._uU(57),T.ALo(58,"translate"),T.qZA(),T.TgZ(59,"mat-select",8,21),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw().currentConfiguration.specialLoa=t}),T.YNc(61,Fe,2,2,"mat-option",17),T.qZA(),T.qZA(),T.YNc(62,je,16,13,"div",22),T.qZA(),T.qZA(),T.qZA(),T.qZA(),T.TgZ(63,"div",23),T.ALo(64,"translate"),T.TgZ(65,"button",24),T.NdJ("click",function(){return T.CHM(i),T.oxw().saveChanges()}),T._uU(66),T.ALo(67,"translate"),T.qZA(),T.qZA(),T.qZA()}if(2&t){var n=T.MAs(6),a=T.MAs(14),o=T.MAs(18),r=T.oxw();T.xp6(2),T.ekj("unselected-setting",!n.checked),T.xp6(1),T.hij(" ",T.lcZ(4,40,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),T.xp6(2),T.Q6J("ngModel",r.currentConfiguration.enabled),T.xp6(2),T.Q6J("@openClose",n.checked?"open":"closed"),T.xp6(2),T.Oqu(T.lcZ(10,42,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),T.xp6(3),T.Q6J("ngModel",r.currentConfiguration.periodType),T.xp6(3),T.hij(" ",T.lcZ(16,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),T.xp6(4),T.hij(" ",T.lcZ(20,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),T.xp6(2),T.Q6J("ngIf",a.checked),T.xp6(1),T.Q6J("ngIf",o.checked),T.xp6(1),T.Q6J("model",r.currentConfiguration.doNotAllowLoasEnabled)("title",T.lcZ(24,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),T.xp6(4),T.Oqu(T.lcZ(28,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),T.xp6(2),T.Q6J("ngModel",r.currentConfiguration.doNotAllowLoas),T.xp6(1),T.Q6J("ngForOf",r.loas),T.xp6(1),T.Q6J("model",r.currentConfiguration.doNotExtendLoasEnabled)("title",T.lcZ(32,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),T.xp6(4),T.Oqu(T.lcZ(36,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),T.xp6(2),T.Q6J("ngModel",r.currentConfiguration.doNotExtendLoas),T.xp6(1),T.Q6J("ngForOf",r.loas),T.xp6(1),T.Q6J("model",r.currentConfiguration.gracePeriodEnabled)("title",T.lcZ(40,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),T.xp6(4),T.s9C("pattern",r.dynamicAmountPattern),T.s9C("placeholder",T.lcZ(44,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),T.Q6J("ngModel",r.currentConfiguration.gracePeriod),T.xp6(4),T.Oqu(T.lcZ(48,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),T.xp6(2),T.Q6J("ngModel",r.currentConfiguration.gracePeriodUnit),T.xp6(1),T.Q6J("ngForOf",r.amountOptions),T.xp6(1),T.Q6J("model",r.currentConfiguration.specialLoaPeriodEnabled)("title",T.lcZ(52,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),T.xp6(6),T.Oqu(T.lcZ(58,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),T.xp6(2),T.Q6J("ngModel",r.currentConfiguration.specialLoa),T.xp6(2),T.Q6J("ngForOf",r.loas),T.xp6(1),T.Q6J("ngIf",null!==r.currentConfiguration.specialLoa),T.xp6(1),T.s9C("matTooltip",T.lcZ(64,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),T.Q6J("matTooltipDisabled",r.expirationAttribute.writable)("matTooltipPosition","above"),T.xp6(2),T.Q6J("disabled",!r.areChangesMade()||!r.expirationAttribute.writable),T.xp6(1),T.hij(" ",T.lcZ(67,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}var Xe=function(){var t=function(){function t(){a(this,t),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"}]}return r(t,[{key:"ngOnInit",value:function(){var t=new Map;this.loas.forEach(function(e){return t.set(e,"")}),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}},{key:"ngOnChanges",value:function(t){t.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}},{key:"saveChanges",value:function(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}},{key:"areChangesMade",value:function(){var t=this.parseAttributeValueFromConfig(this.currentConfiguration),e=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===e?null!==t:null===t||t.period!==e.period||t.gracePeriod!==e.gracePeriod||t.doNotExtendLoa!==e.doNotExtendLoa||t.doNotAllowLoa!==e.doNotAllowLoa||t.periodLoa!==e.periodLoa}},{key:"parseExpirationRulesAttribute",value:function(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}},{key:"parsePeriod",value:function(t){switch(t.periodType){case"dynamic":return this.parseDynamicPeriod(t);case"static":return this.parseStaticPeriod(t)}}},{key:"createInitConfiguration",value:function(){var t=new Map;return this.loas.forEach(function(e){return t.set(e,"")}),{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}}},{key:"unParseAttrValue",value:function(t){var e=this.createInitConfiguration();return null==t||(void 0!==t.period&&t.period.length>0&&(e=this.setPeriodValues(t,e)),void 0!==t.doNotAllowLoa&&t.doNotAllowLoa.length>0&&(e=this.setDoNotAllowLoasValues(t,e)),void 0!==t.doNotExtendLoa&&t.doNotExtendLoa.length>0&&(e=this.setDoNotExtendLoasValues(t,e)),void 0!==t.gracePeriod&&t.gracePeriod.length>0&&(e=this.setGracePeriodValues(t,e)),void 0!==t.periodLoa&&t.periodLoa.length>0&&(e=this.setSpecialLoaPeriodValues(t,e))),e}},{key:"setPeriodValues",value:function(t,e){if(e.enabled=!0,t.period.startsWith("+")){e.periodType="dynamic";var i=t.period.charAt(t.period.length-1);e.periodDynamic=t.period.substring(1,t.period.length-1),e.periodDynamicUnit=i}else e.periodType="static",e.periodStatic=t.period;return e}},{key:"setDoNotAllowLoasValues",value:function(t,e){var i=[];return t.doNotAllowLoa.split(",").forEach(function(t){return i.push(parseInt(t.trim(),10))}),e.doNotAllowLoas=i,i.length>0&&(e.doNotAllowLoasEnabled=!0),e}},{key:"setDoNotExtendLoasValues",value:function(t,e){var i=[];return t.doNotExtendLoa.split(",").forEach(function(t){return i.push(parseInt(t.trim(),10))}),e.doNotExtendLoas=i,i.length>0&&(e.doNotExtendLoasEnabled=!0),e}},{key:"setGracePeriodValues",value:function(t,e){e.gracePeriodEnabled=!0;var i=t.gracePeriod.charAt(t.gracePeriod.length-1);return e.gracePeriod=t.gracePeriod.substring(0,t.gracePeriod.length-1),e.gracePeriodUnit=i,e}},{key:"setSpecialLoaPeriodValues",value:function(t,e){e.specialLoa=parseInt(t.periodLoa.substring(0,t.periodLoa.indexOf("|")),10),e.specialLoaPeriodEnabled=!0;var i=t.periodLoa.substring(t.periodLoa.indexOf("|")+1,t.periodLoa.length);if(i.startsWith("+")){i.endsWith(".")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="dynamic";var n=i.charAt(i.length-1);e.specialLoaPeriodDynamic=i.substring(1,i.length-1),e.specialLoaPeriodDynamicUnit=n}else i.endsWith("..")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="static",e.specialLoaPeriodStatic=i;return e}},{key:"parseDynamicPeriod",value:function(t){return"+"+t.periodDynamic+t.periodDynamicUnit}},{key:"parseStaticPeriod",value:function(t){return t.periodStatic}},{key:"parseDontAllowLoas",value:function(t){if(!t.doNotAllowLoasEnabled)return null;var e="";return t.doNotAllowLoas.forEach(function(t){return e+=t+","}),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}},{key:"parseDontExtendLoas",value:function(t){if(!t.doNotExtendLoasEnabled)return null;var e="";return t.doNotExtendLoas.forEach(function(t){return e+=t+","}),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}},{key:"parseGracePeriod",value:function(t){return t.gracePeriodEnabled?t.gracePeriod+t.gracePeriodUnit:null}},{key:"parseSpecialLoaPeriod",value:function(t){if(!t.specialLoaPeriodEnabled)return null;var e=t.specialLoa+"|";switch(t.specialLoaPeriodType){case"static":e+=this.parseSpecialLoaPeriodStatic(t);break;case"dynamic":e+=this.parseSpecialLoaPeriodDynamic(t)}return null!=e&&t.specialLoaPeriodExtendExpiredMembers&&(e+="."),e}},{key:"parseSpecialLoaPeriodStatic",value:function(t){return t.specialLoaPeriodStatic}},{key:"parseSpecialLoaPeriodDynamic",value:function(t){return"+"+t.specialLoaPeriodDynamic+t.specialLoaPeriodDynamicUnit}},{key:"parseAttributeValueFromConfig",value:function(t){if(!t.enabled)return null;var e=this.parsePeriod(t),i=this.parseDontAllowLoas(t),n=this.parseDontExtendLoas(t),a=this.parseGracePeriod(t),o=this.parseSpecialLoaPeriod(t),r={period:e};return null!==n&&(r.doNotExtendLoa=n),null!==i&&(r.doNotAllowLoa=i),null!==a&&(r.gracePeriod=a),null!==o&&(r.periodLoa=o),r}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=T.Xpm({type:t,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"],[3,"model","title","modelChange"],["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"],["mat-flat-button","","color","primary",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&T.YNc(0,He,68,70,"div",0),2&t&&T.Q6J("ngIf",e.currentConfiguration)},directives:[s.O5,xe.Rr,Le.JJ,Le.On,Ce.VQ,Ce.U0,De,ye.KE,ye.UY,Me.gD,s.sg,Ue.Nt,Le.Fj,Le.c5,ye.hX,_.gM,N.lW,ye.bx,qe.ey,Pe.oG],pipes:[O.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:[p.BQ]}}),t}();function $e(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"app-expiration-settings",1),T.NdJ("saveAttribute",function(t){return T.CHM(i),T.oxw().saveExpirationAttribute(t)}),T.qZA()}if(2&t){var n=T.oxw();T.Q6J("expirationAttribute",n.expirationAttribute)}}var We=function(){var t=function(){function t(e,i,n,o,r){var s=this;a(this,t),this.attributesManager=e,this.route=i,this.translate=n,this.notificator=o,this.apiRequest=r,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(function(t){return s.successMessage=t}),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(function(t){return s.errorMessage=t})}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.parent.params.subscribe(function(e){t.voId=e.voId,t.loadSettings()})}},{key:"loadSettings",value:function(){var t=this;this.attributesManager.getVoAttributeByName(this.voId,f.r.VO_DEF_EXPIRATION_RULES).subscribe(function(e){t.expirationAttribute=e})}},{key:"saveExpirationAttribute",value:function(t){var e=this;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.voId,attribute:t}).subscribe(function(){e.loadSettings(),e.notificator.showSuccess(e.successMessage)},function(t){console.log(t),e.notificator.showRPCError(t.error,e.errorMessage)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(d.H8),T.Y36(l.gz),T.Y36(O.sK),T.Y36(h.V6),T.Y36(h.F5))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&T.YNc(0,$e,1,1,"app-expiration-settings",0),2&t&&T.Q6J("ngIf",void 0!==e.expirationAttribute)},directives:[s.O5,Xe],styles:[""],data:{animation:[p.BQ]}}),t}(),Ke=o(62284),ti=o(489);function ei(t,e){if(1&t&&T._UZ(0,"app-managers-page",1),2&t){var i=T.oxw();T.Q6J("complementaryObject",i.vo)("complementaryObjectType",i.type)("theme",i.theme)("availableRoles",i.availableRoles)}}var ii=function(){var t=function(){function t(e,i,n,o){a(this,t),this.dialog=e,this.voService=i,this.route=n,this.guiAuthResolver=o,this.availableRoles=[],this.selected="user",this.type="Vo",this.theme="vo-theme"}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.parent.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(v.uw),T.Y36(d.YF),T.Y36(l.gz),T.Y36(h.x4))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&T.YNc(0,ei,1,4,"app-managers-page",0),2&t&&T.Q6J("ngIf",e.vo)},directives:[s.O5,ti.s],styles:[""]}),t}();function ni(t,e){1&t&&T._UZ(0,"mat-spinner",6)}function ai(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"div"),T._uU(1),T.ALo(2,"translate"),T.TgZ(3,"mat-form-field",8),T.TgZ(4,"textarea",17),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw(2).reason=t}),T.qZA(),T.qZA(),T.qZA()}if(2&t){var n=T.oxw(2);T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),T.xp6(3),T.Q6J("ngModel",n.reason)}}function oi(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"div",7),T._uU(1),T.ALo(2,"translate"),T.TgZ(3,"mat-form-field",8),T.TgZ(4,"mat-select",9),T.NdJ("valueChange",function(t){return T.CHM(i),T.oxw().mailType=t}),T.TgZ(5,"mat-option",10),T._uU(6),T.ALo(7,"translate"),T.qZA(),T.TgZ(8,"mat-option",11),T._uU(9),T.ALo(10,"translate"),T.qZA(),T.TgZ(11,"mat-option",12),T._uU(12),T.ALo(13,"translate"),T.qZA(),T.TgZ(14,"mat-option",13),T._uU(15),T.ALo(16,"translate"),T.qZA(),T.TgZ(17,"mat-option",14),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.TgZ(20,"mat-option",15),T._uU(21),T.ALo(22,"translate"),T.qZA(),T.qZA(),T.qZA(),T.YNc(23,ai,5,4,"div",16),T.qZA()}if(2&t){var n=T.oxw();T.xp6(1),T.hij(" ",T.lcZ(2,9,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),T.xp6(3),T.Q6J("value",n.mailType),T.xp6(2),T.Oqu(T.lcZ(7,11,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),T.xp6(3),T.Oqu(T.lcZ(10,13,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),T.xp6(3),T.Oqu(T.lcZ(13,15,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),T.xp6(3),T.Oqu(T.lcZ(16,17,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),T.xp6(3),T.Oqu(T.lcZ(19,19,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),T.xp6(3),T.Oqu(T.lcZ(22,21,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),T.xp6(2),T.Q6J("ngIf","APP_REJECTED_USER"===n.mailType)}}var ri=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialogRef=e,this.data=i,this.translate=n,this.notificator=o,this.registrarManager=r,this.mailType="APP_CREATED_USER",this.reason="",this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,"APP_REJECTED_USER"===this.mailType?this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType,reason:this.reason}).subscribe(function(){t.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close()})},function(){return t.loading=!1}):this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType}).subscribe(function(){t.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close()})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(v.so),T.Y36(v.WI),T.Y36(O.sK),T.Y36(h.V6),T.Y36(d.tk))},t.\u0275cmp=T.Xpm({type:t,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"],["mat-flat-button","","color","accent",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","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],[4,"ngIf"],["matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,ni,1,0,"mat-spinner",1),T.YNc(5,oi,24,23,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return e.onCancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return e.onSubmit()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA(),T.qZA()),2&t&&(T.Gre("",e.theme,"}"),T.xp6(2),T.Oqu(T.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),T.xp6(2),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading),T.xp6(3),T.hij(" ",T.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),T.xp6(2),T.Q6J("disabled",e.loading),T.xp6(1),T.hij(" ",T.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},directives:[v.uh,s.O5,v.H8,N.lW,Z.$g,v.xY,ye.KE,Me.gD,qe.ey,Ue.Nt,Le.Fj,Le.JJ,Le.On],pipes:[O.X$],styles:[""]}),t}();function si(t,e){1&t&&T._UZ(0,"mat-spinner",6)}function li(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"div",7),T._uU(1),T.ALo(2,"translate"),T.TgZ(3,"mat-form-field",8),T.TgZ(4,"textarea",9),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw().reason=t}),T.qZA(),T.qZA(),T.qZA()}if(2&t){var n=T.oxw();T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),T.xp6(3),T.Q6J("ngModel",n.reason)}}var ui=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialogRef=e,this.data=i,this.translate=n,this.notificator=o,this.registrarManager=r,this.reason="",this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.registrarManager.rejectApplication(this.data.applicationId,this.reason).subscribe(function(){t.translate.get("DIALOGS.REJECT_APPLICATION.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close()})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(v.so),T.Y36(v.WI),T.Y36(O.sK),T.Y36(h.V6),T.Y36(d.tk))},t.\u0275cmp=T.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,si,1,0,"mat-spinner",1),T.YNc(5,li,5,4,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return e.onCancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return e.onSubmit()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA(),T.qZA()),2&t&&(T.Tol(e.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),T.xp6(2),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading),T.xp6(3),T.hij(" ",T.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),T.xp6(2),T.Q6J("disabled",e.loading),T.xp6(1),T.hij(" ",T.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},directives:[v.uh,s.O5,v.H8,N.lW,Z.$g,v.xY,ye.KE,Ue.Nt,Le.Fj,Le.JJ,Le.On],pipes:[O.X$],styles:[""]}),t}();function ci(t,e){1&t&&T._UZ(0,"mat-spinner",6)}function pi(t,e){1&t&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function di(t,e){if(1&t&&(T.TgZ(0,"mat-form-field"),T.TgZ(1,"label"),T._UZ(2,"input",9),T.qZA(),T.YNc(3,pi,3,3,"mat-error",8),T.qZA()),2&t){var i=T.oxw(2);T.xp6(2),T.Q6J("formControl",i.emailControl),T.xp6(1),T.Q6J("ngIf",i.emailControl.invalid)}}function gi(t,e){1&t&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function hi(t,e){if(1&t&&(T.TgZ(0,"mat-form-field"),T._UZ(1,"input",10),T.YNc(2,gi,3,3,"mat-error",8),T.qZA()),2&t){var i=T.oxw(2);T.xp6(1),T.Q6J("formControl",i.inputControl),T.xp6(1),T.Q6J("ngIf",i.inputControl.invalid)}}function fi(t,e){if(1&t&&(T.TgZ(0,"div",7),T.YNc(1,di,4,2,"mat-form-field",8),T.YNc(2,hi,3,2,"mat-form-field",8),T.qZA()),2&t){var i=T.oxw();T.xp6(1),T.Q6J("ngIf",null!==i.emailControl),T.xp6(1),T.Q6J("ngIf",null!==i.inputControl)}}var mi=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translateService=o,this.registrarService=r,this.loading=!1,this.inputControl=null,this.emailControl=null}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=this.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new Le.NI(this.formItemData.value,[Le.kI.required,Le.kI.email]):this.inputControl=new Le.NI(this.formItemData.value,[Le.kI.required])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;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(function(){t.notificator.showSuccess(t.translateService.instant("DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUCCESS")),t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"getLabel",value:function(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(v.so),T.Y36(v.WI),T.Y36(h.V6),T.Y36(O.sK),T.Y36(d.tk))},t.\u0275cmp=T.Xpm({type:t,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"],["type","text","matInput","","required","",3,"formControl"]],template:function(t,e){1&t&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,ci,1,0,"mat-spinner",1),T.YNc(5,fi,3,2,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return e.onCancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return e.onSubmit()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA(),T.qZA()),2&t&&(T.Tol(e.theme),T.xp6(2),T.AsE("",T.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",e.itemName,""),T.xp6(2),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading),T.xp6(3),T.hij(" ",T.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),T.xp6(2),T.Q6J("disabled",e.loading||null!==e.inputControl&&e.inputControl.invalid||null!==e.emailControl&&e.emailControl.invalid),T.xp6(1),T.hij(" ",T.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},directives:[v.uh,s.O5,v.H8,N.lW,Z.$g,v.xY,ye.KE,Ue.Nt,Le.Fj,Le.Q7,Le.JJ,Le.oH,ye.TO],pipes:[O.X$],styles:[""]}),t}(),Ai=o(27679),Ti=o(84650);function Ii(t,e){if(1&t&&(T.TgZ(0,"span",5),T._uU(1),T.qZA()),2&t){var i=T.oxw();T.xp6(1),T.hij(" #",i.application.id," ")}}function vi(t,e){1&t&&T._UZ(0,"mat-spinner",6)}function Ei(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",17),T.NdJ("click",function(){return T.CHM(i),T.oxw(2).verifyApplication()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&t&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function Zi(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",17),T.NdJ("click",function(){return T.CHM(i),T.oxw(2).approveApplication()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&t&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function bi(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",18),T.NdJ("click",function(){return T.CHM(i),T.oxw(2).rejectApplication()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&t&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function _i(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",18),T.NdJ("click",function(){return T.CHM(i),T.oxw(2).deleteApplication()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&t&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function Si(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",19),T.NdJ("click",function(){return T.CHM(i),T.oxw(2).resendNotification()}),T.TgZ(1,"i",14),T._uU(2," mail_outline "),T.qZA(),T._uU(3),T.ALo(4,"translate"),T.qZA()}2&t&&(T.xp6(3),T.hij(" ",T.lcZ(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function Ni(t,e){if(1&t&&(T.TgZ(0,"div"),T.TgZ(1,"span",10),T._uU(2),T.ALo(3,"translate"),T.qZA(),T._uU(4),T.qZA()),2&t){var i=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(": ",i.application.vo.name," ")}}function Oi(t,e){if(1&t&&(T.TgZ(0,"div"),T.TgZ(1,"span",10),T._uU(2),T.ALo(3,"translate"),T.qZA(),T._uU(4),T.TgZ(5,"span",10),T._uU(6),T.ALo(7,"translate"),T.qZA(),T._uU(8),T.qZA()),2&t){var i=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(": ",i.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(": ",i.application.vo.name," ")}}function xi(t,e){1&t&&(T.TgZ(0,"span"),T.TgZ(1,"mat-icon",20),T._uU(2,"arrow_right_alt"),T.qZA(),T._uU(3," Initial "),T.qZA())}function Li(t,e){1&t&&(T.TgZ(0,"span"),T.TgZ(1,"mat-icon",20),T._uU(2,"restore"),T.qZA(),T._uU(3," Extension "),T.qZA())}function Ci(t,e){1&t&&(T.TgZ(0,"span"),T.TgZ(1,"mat-icon",20),T._uU(2,"nat"),T.qZA(),T._uU(3," Embedded "),T.qZA())}function Ri(t,e){if(1&t&&(T.TgZ(0,"div",21),T.TgZ(1,"mat-card-title"),T.TgZ(2,"i",22),T._uU(3,"clear"),T.qZA(),T._uU(4),T.ALo(5,"translate"),T.qZA(),T.TgZ(6,"div"),T.TgZ(7,"span",10),T._uU(8),T.ALo(9,"translate"),T.qZA(),T._uU(10),T.ALo(11,"date"),T.qZA(),T.qZA()),2&t){var i=T.oxw(2);T.xp6(4),T.AsE(" ",T.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",i.getModifiedAtName(i.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,i.application.modifiedAt,"d.M.y H:mm:ss"),"")}}function Di(t,e){if(1&t&&(T.TgZ(0,"div",21),T.TgZ(1,"mat-card-title"),T.TgZ(2,"i",23),T._uU(3,"done"),T.qZA(),T._uU(4),T.ALo(5,"translate"),T.qZA(),T.TgZ(6,"div"),T.TgZ(7,"span",10),T._uU(8),T.ALo(9,"translate"),T.qZA(),T._uU(10),T.ALo(11,"date"),T.qZA(),T.qZA()),2&t){var i=T.oxw(2);T.xp6(4),T.AsE(" ",T.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",i.getModifiedAtName(i.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,i.application.modifiedAt,"d.M.y H:mm:ss"),"")}}function yi(t,e){if(1&t&&(T.TgZ(0,"div"),T.TgZ(1,"span",10),T._uU(2),T.ALo(3,"translate"),T.qZA(),T._uU(4),T.qZA()),2&t){var i=T.oxw(2);T.xp6(2),T.Oqu(T.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),T.xp6(2),T.hij(": ",i.userMail,"")}}function Mi(t,e){1&t&&T._UZ(0,"th",32)}function Ui(t,e){if(1&t&&(T.TgZ(0,"td",33),T._uU(1),T.qZA()),2&t){var i=e.$implicit,n=T.oxw(3);T.xp6(1),T.AsE("",n.getLabel(i.formItem),"",i.formItem.type.startsWith("FROM_FEDERATION")?"*":"","")}}function qi(t,e){1&t&&T._UZ(0,"th",32)}function Pi(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",36),T.NdJ("click",function(){T.CHM(i);var t=T.oxw().$implicit;return T.oxw(3).editApplicationData(t)}),T.TgZ(1,"mat-icon"),T._uU(2,"edit"),T.qZA(),T.qZA()}}function wi(t,e){if(1&t&&(T.TgZ(0,"td",34),T._uU(1),T.YNc(2,Pi,3,0,"button",35),T.qZA()),2&t){var i=e.$implicit,n=T.oxw(3);T.xp6(1),T.hij(" ",i.value," "),T.xp6(1),T.Q6J("ngIf",!i.formItem.type.startsWith("FROM_FEDERATION")&&("NEW"===n.application.state||"VERIFIED"===n.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==i.formItem.type)}}function Gi(t,e){1&t&&T._UZ(0,"tr",37)}function ki(t,e){1&t&&T._UZ(0,"tr",38)}function Yi(t,e){if(1&t&&(T.TgZ(0,"table",24),T.ynx(1,25),T.YNc(2,Mi,1,0,"th",26),T.YNc(3,Ui,2,2,"td",27),T.BQk(),T.ynx(4,28),T.YNc(5,qi,1,0,"th",26),T.YNc(6,wi,3,2,"td",29),T.BQk(),T.YNc(7,Gi,1,0,"tr",30),T.YNc(8,ki,1,0,"tr",31),T.qZA()),2&t){var i=T.oxw(2);T.Q6J("dataSource",i.dataSource),T.xp6(7),T.Q6J("matHeaderRowDef",i.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",i.displayedColumns)}}function Ji(t,e){1&t&&(T.TgZ(0,"div",39),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.hij("*",T.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VALUE_BY_EXTERNALS"),""))}function Vi(t,e){if(1&t&&(T.TgZ(0,"div"),T.YNc(1,Ei,3,3,"button",7),T.YNc(2,Zi,3,3,"button",7),T.YNc(3,bi,3,3,"button",8),T.YNc(4,_i,3,3,"button",8),T.YNc(5,Si,5,3,"button",9),T.YNc(6,Ni,5,4,"div",4),T.YNc(7,Oi,9,8,"div",4),T.TgZ(8,"div"),T.TgZ(9,"span",10),T._uU(10),T.ALo(11,"translate"),T.qZA(),T._uU(12,": "),T._UZ(13,"span",11),T.ALo(14,"applicationState"),T.qZA(),T.TgZ(15,"div"),T.TgZ(16,"span",10),T._uU(17),T.ALo(18,"translate"),T.qZA(),T._uU(19,": "),T.YNc(20,xi,4,0,"span",4),T.YNc(21,Li,4,0,"span",4),T.YNc(22,Ci,4,0,"span",4),T.qZA(),T.YNc(23,Ri,12,11,"div",12),T.YNc(24,Di,12,11,"div",12),T.TgZ(25,"div",13),T.TgZ(26,"mat-card-title"),T.TgZ(27,"i",14),T._uU(28,"redo"),T.qZA(),T._uU(29),T.ALo(30,"translate"),T.ALo(31,"userFullName"),T.qZA(),T.YNc(32,yi,5,4,"div",4),T.TgZ(33,"div"),T.TgZ(34,"span",10),T._uU(35),T.ALo(36,"translate"),T.qZA(),T._uU(37),T.qZA(),T.TgZ(38,"div"),T.TgZ(39,"span",10),T._uU(40),T.ALo(41,"translate"),T.qZA(),T._uU(42),T.qZA(),T.TgZ(43,"div"),T.TgZ(44,"span",10),T._uU(45),T.ALo(46,"translate"),T.qZA(),T._uU(47),T.ALo(48,"date"),T.qZA(),T.YNc(49,Yi,9,3,"table",15),T.YNc(50,Ji,3,3,"div",16),T.qZA(),T.qZA()),2&t){var i=T.oxw();T.xp6(1),T.Q6J("ngIf","NEW"===i.application.state&&i.verifyAuth),T.xp6(1),T.Q6J("ngIf",("VERIFIED"===i.application.state||"NEW"===i.application.state)&&i.approveAuth),T.xp6(1),T.Q6J("ngIf",("VERIFIED"===i.application.state||"NEW"===i.application.state)&&i.rejectAuth),T.xp6(1),T.Q6J("ngIf",("REJECTED"===i.application.state||"NEW"===i.application.state)&&i.deleteAuth),T.xp6(1),T.Q6J("ngIf",i.resendAuth),T.xp6(1),T.Q6J("ngIf",!i.application.group),T.xp6(1),T.Q6J("ngIf",i.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,i.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"===i.application.type),T.xp6(1),T.Q6J("ngIf","EXTENSION"===i.application.type),T.xp6(1),T.Q6J("ngIf","EMBEDDED"===i.application.type),T.xp6(1),T.Q6J("ngIf","REJECTED"===i.application.state),T.xp6(1),T.Q6J("ngIf","APPROVED"===i.application.state),T.xp6(5),T.AsE(" ",T.lcZ(30,32,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===i.application.user?i.submittedBy():T.lcZ(31,34,i.application.user),""),T.xp6(3),T.Q6J("ngIf",i.userMail),T.xp6(3),T.Oqu(T.lcZ(36,36,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),T.xp6(2),T.hij(": ",i.application.extSourceName,""),T.xp6(3),T.Oqu(T.lcZ(41,38,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),T.xp6(2),T.hij(": ",i.application.extSourceLoa,""),T.xp6(3),T.Oqu(T.lcZ(46,40,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),T.xp6(2),T.hij(": ",T.xi3(48,42,i.application.createdAt,"d.M.y H:mm:ss"),""),T.xp6(2),T.Q6J("ngIf",0!==i.userData.length),T.xp6(1),T.Q6J("ngIf",0!==i.userData.length)}}var Fi=function(){var t=function(){function t(e,i,n,o,r,s,l,u){a(this,t),this.registrarManager=e,this.dialog=i,this.translate=n,this.route=o,this.notificator=r,this.router=s,this.authResolver=l,this.usersService=u,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe(function(e){t.dialogTheme=e.groupId?"group-theme":e.memberId?"member-theme":"vo-theme",t.registrarManager.getApplicationById(e.applicationId).subscribe(function(e){t.application=e,"EMBEDDED"===t.application.type&&t.application.user?t.usersService.getRichUserWithAttributes(t.application.user.id).subscribe(function(e){var i,n=e.userAttributes.find(function(t){return"preferredMail"===t.friendlyName});t.userMail=null===(i=null==n?void 0:n.value)||void 0===i?void 0:i.toString(),t.setAuthRights(),t.loading=!1}):t.registrarManager.getApplicationDataById(t.application.id).subscribe(function(e){t.userData=e,t.dataSource=new ut.by(t.userData),t.setAuthRights(),t.loading=!1})})})}},{key:"setAuthRights",value:function(){"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]))}},{key:"getLabel",value:function(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}},{key:"submittedBy",value:function(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}},{key:"getModifiedAtName",value:function(t){var e=t.lastIndexOf("/CN=");if(-1!==e){var i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}},{key:"resendNotification",value:function(){var t=(0,g.kZ)();t.width="500px",t.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(ri,t)}},{key:"deleteApplication",value:function(){var t=this;this.loading=!0,this.registrarManager.deleteApplication(this.application.id).subscribe(function(){t.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(function(e){t.notificator.showSuccess(e),t.router.navigateByUrl(t.router.url.substring(0,t.router.url.lastIndexOf("/")))})})}},{key:"rejectApplication",value:function(){var t=this,e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(ui,e).afterClosed().subscribe(function(){t.loading=!0,t.registrarManager.getApplicationById(t.application.id).subscribe(function(e){t.application=e,t.loading=!1},function(){return t.loading=!1})})}},{key:"approveApplication",value:function(){var t=this;this.loading=!0,this.registrarManager.approveApplication(this.application.id).subscribe(function(){t.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE_MESSAGE").subscribe(function(e){t.notificator.showSuccess(e)}),t.registrarManager.getApplicationById(t.application.id).subscribe(function(e){t.application=e,t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"verifyApplication",value:function(){var t=this;this.registrarManager.verifyApplication(this.application.id).subscribe(function(){t.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY_MESSAGE").subscribe(function(e){t.notificator.showSuccess(e)}),t.loading=!0,t.registrarManager.getApplicationById(t.application.id).subscribe(function(e){t.application=e,t.loading=!1})})}},{key:"editApplicationData",value:function(t){var e=(0,g.kZ)();e.width="600px",e.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:t},this.dialog.open(mi,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(d.tk),T.Y36(v.uw),T.Y36(O.sK),T.Y36(l.gz),T.Y36(h.V6),T.Y36(l.F0),T.Y36(h.x4),T.Y36(d.Fv))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","","class","mr-2 mb-2",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"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],["class","font-italic",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",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"],["mat-cell","","class","font-weight-bold",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["mat-header-row","","class","h-50",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["mat-icon-button","","aria-label","Edit Application data",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Edit Application data",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""],[1,"font-italic"]],template:function(t,e){1&t&&(T.TgZ(0,"h2",0),T._uU(1),T.ALo(2,"translate"),T.YNc(3,Ii,2,1,"span",1),T.qZA(),T._UZ(4,"mat-divider",2),T.YNc(5,vi,1,0,"mat-spinner",3),T.YNc(6,Vi,51,45,"div",4)),2&t&&(T.xp6(1),T.hij(" ",T.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),T.xp6(2),T.Q6J("ngIf",!!e.application),T.xp6(2),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading))},directives:[s.O5,Ai.d,Z.$g,dt.n5,N.lW,b.Hw,ut.BZ,ut.w1,ut.fO,ut.Dz,ut.as,ut.nj,ut.ge,ut.ev,ut.XQ,ut.Gk],pipes:[O.X$,Ti.h,zt.d,s.uU],styles:[""]}),t}(),Qi=o(11930),zi=o(7433),Bi=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&T._UZ(0,"app-animated-router-outlet")},directives:[S.A],styles:[""],data:{animation:[p.Ji]}}),t}(),ji=o(55109),Hi=o(69012);function Xi(t,e){1&t&&(T._uU(0),T.ALo(1,"translate")),2&t&&T.hij(" ",T.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function $i(t,e){if(1&t&&T._UZ(0,"app-one-entity-attribute-page",4),2&t){var i=T.oxw();T.Q6J("entity","group")("entityId",i.groupId)}}function Wi(t,e){1&t&&(T._uU(0),T.ALo(1,"translate"),T.ALo(2,"translate")),2&t&&T.AsE(" ",T.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",T.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function Ki(t,e){if(1&t&&T._UZ(0,"app-two-entity-attribute-page",5),2&t){var i=T.oxw(2);T.Q6J("firstEntity","group")("firstEntityId",i.groupId)("secondEntity","member")}}function tn(t,e){1&t&&(T.TgZ(0,"mat-tab"),T.YNc(1,Wi,3,6,"ng-template",1),T.YNc(2,Ki,1,3,"ng-template",2),T.qZA())}function en(t,e){1&t&&(T._uU(0),T.ALo(1,"translate"),T.ALo(2,"translate")),2&t&&T.AsE(" ",T.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",T.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function nn(t,e){if(1&t&&T._UZ(0,"app-two-entity-attribute-page",5),2&t){var i=T.oxw(2);T.Q6J("firstEntity","group")("firstEntityId",i.groupId)("secondEntity","resource")}}function an(t,e){1&t&&(T.TgZ(0,"mat-tab"),T.YNc(1,en,3,6,"ng-template",1),T.YNc(2,nn,1,3,"ng-template",2),T.qZA())}var on=function(){var t=function(){function t(e,i,n){a(this,t),this.route=e,this.groupManager=i,this.authResolver=n}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.groupId=e.groupId,t.groupManager.getGroupById(t.groupId).subscribe(function(e){t.group=e,t.groupResourceAttAuth=t.authResolver.isAuthorized("getAssignedResources_Group_policy",[t.group]),t.groupMemberAttAuth=t.authResolver.isAuthorized("getCompleteRichMembers_Group_List_List_List_boolean_policy",[t.group])})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(l.gz),T.Y36(d.ff),T.Y36(h.x4))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-group-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(t,e){1&t&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-tab-group"),T.TgZ(5,"mat-tab"),T.YNc(6,Xi,2,3,"ng-template",1),T.YNc(7,$i,1,2,"ng-template",2),T.qZA(),T.YNc(8,tn,3,0,"mat-tab",3),T.YNc(9,an,3,0,"mat-tab",3),T.qZA(),T.qZA()),2&t&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),T.xp6(6),T.Q6J("ngIf",e.groupMemberAttAuth),T.xp6(1),T.Q6J("ngIf",e.groupResourceAttAuth))},directives:[ji.SP,ji.uX,ji.uD,ji.Vc,s.O5,be.t,Hi.Y],pipes:[O.X$],styles:[""]}),t}();function rn(t,e){1&t&&T._UZ(0,"mat-spinner",2)}function sn(t,e){if(1&t&&(T.TgZ(0,"div"),T._UZ(1,"perun-web-apps-menu-buttons-field",3),T.qZA()),2&t){var i=T.oxw();T.xp6(1),T.Q6J("items",i.items)("size","small")}}var ln=function(){var t=function(){function t(e,i,n,o,r,s,l,u,c){a(this,t),this.sideMenuService=e,this.voService=i,this.groupService=n,this.route=o,this.router=r,this.guiAuthResolver=s,this.apiRequest=l,this.attributesManager=u,this.notificator=c,this.items=[],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.parent.params.subscribe(function(e){var i=e.voId;t.groupService.getGroupById(e.groupId).subscribe(function(e){t.group=e,t.voService.getVoById(i).subscribe(function(e){t.vo=e,t.initItems(),t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})})}},{key:"initItems",value:function(){var t=this;this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,f.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(){t.items.push({cssIcon:"perun-group",url:"/organizations/".concat(t.vo.id,"/groups/").concat(t.group.id,"/settings/expiration"),label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},function(e){"HttpErrorResponse"!==e.name&&t.notificator.showRPCError(e)}),this.guiAuthResolver.isManagerPagePrivileged(this.group)&&this.items.push({cssIcon:"perun-manager",url:"/organizations/".concat(this.vo.id,"/groups/").concat(this.group.id,"/settings/managers"),label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group])&&this.items.push({cssIcon:"perun-application-form",url:"/organizations/".concat(this.vo.id,"/groups/").concat(this.group.id,"/settings/applicationForm"),label:"MENU_ITEMS.GROUP.APPLICATION_FORM",style:"group-btn"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group])&&this.items.push({cssIcon:"perun-notification",url:"/organizations/".concat(this.vo.id,"/groups/").concat(this.group.id,"/settings/notifications"),label:"MENU_ITEMS.GROUP.NOTIFICATIONS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group])&&this.items.push({cssIcon:"perun-group",url:"/organizations/".concat(this.vo.id,"/groups/").concat(this.group.id,"/settings/relations"),label:"MENU_ITEMS.GROUP.RELATIONS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getGroupExtSources_Group_policy",[this.group])&&this.items.push({cssIcon:"perun-external-sources",url:"/organizations/".concat(this.vo.id,"/groups/").concat(this.group.id,"/settings/extsources"),label:"MENU_ITEMS.GROUP.EXTSOURCES",style:"group-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(I.D),T.Y36(d.YF),T.Y36(d.ff),T.Y36(l.gz),T.Y36(l.F0),T.Y36(h.x4),T.Y36(h.F5),T.Y36(d.H8),T.Y36(h.V6))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.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(t,e){1&t&&(T.YNc(0,rn,1,0,"mat-spinner",0),T.YNc(1,sn,2,2,"div",1)),2&t&&(T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading))},directives:[s.O5,Z.$g,H.L],styles:[""]}),t}(),un=o(14527);function cn(t,e){1&t&&T._UZ(0,"mat-spinner",3)}function pn(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){return T.CHM(i),T.oxw(2).switchToInitial()}),T.TgZ(1,"i",11),T._uU(2,"arrow_right_alt"),T.qZA(),T._uU(3),T.ALo(4,"translate"),T.qZA()}2&t&&(T.xp6(3),T.hij(" ",T.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function dn(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){return T.CHM(i),T.oxw(2).switchToExtension()}),T.TgZ(1,"i",11),T._uU(2,"cached"),T.qZA(),T._uU(3),T.ALo(4,"translate"),T.qZA()}2&t&&(T.xp6(3),T.hij(" ",T.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function gn(t,e){if(1&t&&(T.TgZ(0,"mat-option",12),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"uppercase"),T.qZA()),2&t){var i=e.$implicit;T.Q6J("value",i),T.xp6(1),T.hij(" ",T.lcZ(2,2,T.lcZ(3,4,"SHARED_LIB.LANGUAGES."+i))," ")}}function hn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"lock"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.disabledTooltip(i))}}function fn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"visibility_off"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.hiddenTooltip(i))}}function mn(t,e){if(1&t&&(T.TgZ(0,"div",16),T.TgZ(1,"div",17),T.TgZ(2,"span",18),T._uU(3),T.qZA(),T.TgZ(4,"div",18),T._UZ(5,"input",19),T.qZA(),T.qZA(),T.TgZ(6,"div",20),T.YNc(7,hn,2,1,"mat-icon",21),T.YNc(8,fn,2,1,"mat-icon",21),T.TgZ(9,"span",22),T._uU(10),T.qZA(),T.qZA(),T.qZA()),2&t){var i=T.oxw(2).$implicit,n=T.oxw(2);T.xp6(3),T.Oqu(n.getLocalizedLabel(i)),T.xp6(2),T.Q6J("disabled","ALWAYS"===i.disabled),T.xp6(2),T.Q6J("ngIf","NEVER"!==i.disabled),T.xp6(1),T.Q6J("ngIf","NEVER"!==i.hidden),T.xp6(2),T.Oqu(n.getLocalizedHint(i))}}function An(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"lock"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.disabledTooltip(i))}}function Tn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"visibility_off"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.hiddenTooltip(i))}}function In(t,e){if(1&t&&(T.TgZ(0,"div",16),T.TgZ(1,"div",17),T.TgZ(2,"span",18),T._uU(3),T.qZA(),T.TgZ(4,"div",18),T._UZ(5,"input",24),T.qZA(),T.qZA(),T.TgZ(6,"div",20),T.YNc(7,An,2,1,"mat-icon",21),T.YNc(8,Tn,2,1,"mat-icon",21),T.TgZ(9,"span",22),T._uU(10),T.qZA(),T.qZA(),T.qZA()),2&t){var i=T.oxw(2).$implicit,n=T.oxw(2);T.xp6(3),T.Oqu(n.getLocalizedLabel(i)),T.xp6(4),T.Q6J("ngIf","NEVER"!==i.disabled),T.xp6(1),T.Q6J("ngIf","NEVER"!==i.hidden),T.xp6(2),T.Oqu(n.getLocalizedHint(i))}}function vn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"lock"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.disabledTooltip(i))}}function En(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"visibility_off"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.hiddenTooltip(i))}}function Zn(t,e){if(1&t&&(T.TgZ(0,"div",16),T.TgZ(1,"div",17),T.TgZ(2,"span",18),T._uU(3),T.qZA(),T.TgZ(4,"div",18),T._UZ(5,"input",25),T._UZ(6,"br"),T._UZ(7,"input",19),T.qZA(),T.qZA(),T.TgZ(8,"div",20),T.YNc(9,vn,2,1,"mat-icon",21),T.YNc(10,En,2,1,"mat-icon",21),T.TgZ(11,"span",22),T._uU(12),T.qZA(),T.qZA(),T.qZA()),2&t){var i=T.oxw(2).$implicit,n=T.oxw(2);T.xp6(3),T.Oqu(n.getLocalizedLabel(i)),T.xp6(2),T.Q6J("disabled","ALWAYS"===i.disabled),T.xp6(2),T.Q6J("disabled","ALWAYS"===i.disabled),T.xp6(2),T.Q6J("ngIf","NEVER"!==i.disabled),T.xp6(1),T.Q6J("ngIf","NEVER"!==i.hidden),T.xp6(2),T.Oqu(n.getLocalizedHint(i))}}function bn(t,e){if(1&t&&(T.TgZ(0,"div"),T._UZ(1,"input",27),T._uU(2),T._UZ(3,"br"),T.qZA()),2&t){var i=e.$implicit,n=T.oxw(3).$implicit;T.xp6(1),T.Q6J("disabled","ALWAYS"===n.disabled),T.xp6(1),T.hij(" ",i,"")}}function _n(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"lock"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.disabledTooltip(i))}}function Sn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"visibility_off"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.hiddenTooltip(i))}}function Nn(t,e){if(1&t&&(T.TgZ(0,"div",16),T.TgZ(1,"div",17),T.TgZ(2,"span",18),T._uU(3),T.qZA(),T.TgZ(4,"form",18),T.YNc(5,bn,4,2,"div",9),T._UZ(6,"input",26),T.ALo(7,"translate"),T.qZA(),T.qZA(),T.TgZ(8,"div",20),T.YNc(9,_n,2,1,"mat-icon",21),T.YNc(10,Sn,2,1,"mat-icon",21),T.TgZ(11,"span",22),T._uU(12),T.qZA(),T.qZA(),T.qZA()),2&t){var i=T.oxw(2).$implicit,n=T.oxw(2);T.xp6(3),T.Oqu(n.getLocalizedLabel(i)),T.xp6(2),T.Q6J("ngForOf",n.getLocalizedOptions(i)),T.xp6(1),T.s9C("value",T.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),T.Q6J("disabled","ALWAYS"===i.disabled),T.xp6(3),T.Q6J("ngIf","NEVER"!==i.disabled),T.xp6(1),T.Q6J("ngIf","NEVER"!==i.hidden),T.xp6(2),T.Oqu(n.getLocalizedHint(i))}}function On(t,e){if(1&t&&(T.TgZ(0,"div"),T._UZ(1,"span",28),T.qZA()),2&t){var i=T.oxw(2).$implicit,n=T.oxw(2);T.xp6(1),T.Q6J("innerHTML",n.getLocalizedLabel(i),T.oJD)}}function xn(t,e){if(1&t&&(T.TgZ(0,"option"),T._uU(1),T.qZA()),2&t){var i=e.$implicit;T.xp6(1),T.Oqu(i)}}function Ln(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"lock"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.disabledTooltip(i))}}function Cn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"visibility_off"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.hiddenTooltip(i))}}function Rn(t,e){if(1&t&&(T.TgZ(0,"div",16),T.TgZ(1,"div",17),T.TgZ(2,"span",18),T._uU(3),T.qZA(),T.TgZ(4,"div",18),T.TgZ(5,"select",29),T.YNc(6,xn,2,1,"option",9),T.qZA(),T.qZA(),T.qZA(),T.TgZ(7,"div",20),T.YNc(8,Ln,2,1,"mat-icon",21),T.YNc(9,Cn,2,1,"mat-icon",21),T.TgZ(10,"span",22),T._uU(11),T.qZA(),T.qZA(),T.qZA()),2&t){var i=T.oxw(2).$implicit,n=T.oxw(2);T.xp6(3),T.Oqu(n.getLocalizedLabel(i)),T.xp6(2),T.Q6J("disabled","ALWAYS"===i.disabled),T.xp6(1),T.Q6J("ngForOf",n.getLocalizedOptions(i)),T.xp6(2),T.Q6J("ngIf","NEVER"!==i.disabled),T.xp6(1),T.Q6J("ngIf","NEVER"!==i.hidden),T.xp6(2),T.Oqu(n.getLocalizedHint(i))}}function Dn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"lock"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.disabledTooltip(i))}}function yn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"visibility_off"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.hiddenTooltip(i))}}function Mn(t,e){if(1&t&&(T.TgZ(0,"div",16),T.TgZ(1,"div",17),T.TgZ(2,"span",18),T._uU(3),T.qZA(),T._UZ(4,"textarea",30),T.qZA(),T.TgZ(5,"div",20),T.YNc(6,Dn,2,1,"mat-icon",21),T.YNc(7,yn,2,1,"mat-icon",21),T.TgZ(8,"span",22),T._uU(9),T.qZA(),T.qZA(),T.qZA()),2&t){var i=T.oxw(2).$implicit,n=T.oxw(2);T.xp6(3),T.Oqu(n.getLocalizedLabel(i)),T.xp6(1),T.Q6J("disabled","ALWAYS"===i.disabled),T.xp6(2),T.Q6J("ngIf","NEVER"!==i.disabled),T.xp6(1),T.Q6J("ngIf","NEVER"!==i.hidden),T.xp6(2),T.Oqu(n.getLocalizedHint(i))}}function Un(t,e){if(1&t&&(T.TgZ(0,"option",35),T._uU(1),T.qZA()),2&t){var i=e.$implicit;T.xp6(1),T.Oqu(i)}}function qn(t,e){1&t&&(T.TgZ(0,"div",36),T.TgZ(1,"form"),T._UZ(2,"input",37),T.qZA(),T.qZA())}function Pn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"lock"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.disabledTooltip(i))}}function wn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"visibility_off"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.hiddenTooltip(i))}}function Gn(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"div",16),T.TgZ(1,"div",17),T.TgZ(2,"span",18),T._uU(3),T.qZA(),T.TgZ(4,"div",18),T.TgZ(5,"select",31),T.NdJ("ngModelChange",function(t){T.CHM(i);var e=T.oxw(2).$implicit;return T.oxw(2).mapForCombobox[e.id]=t}),T.TgZ(6,"option",32),T._uU(7),T.ALo(8,"translate"),T.qZA(),T.YNc(9,Un,2,1,"option",33),T.qZA(),T.YNc(10,qn,3,0,"div",34),T.qZA(),T.qZA(),T.TgZ(11,"div",20),T.YNc(12,Pn,2,1,"mat-icon",21),T.YNc(13,wn,2,1,"mat-icon",21),T.TgZ(14,"span",22),T._uU(15),T.qZA(),T.qZA(),T.qZA()}if(2&t){var n=T.oxw(2).$implicit,a=T.oxw(2);T.xp6(3),T.Oqu(a.getLocalizedLabel(n)),T.xp6(2),T.Q6J("ngModel",a.mapForCombobox[n.id])("disabled","ALWAYS"===n.disabled),T.xp6(2),T.Oqu(T.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")),T.xp6(2),T.Q6J("ngForOf",a.getLocalizedOptions(n)),T.xp6(1),T.Q6J("ngIf","true"===a.mapForCombobox[n.id]),T.xp6(2),T.Q6J("ngIf","NEVER"!==n.disabled),T.xp6(1),T.Q6J("ngIf","NEVER"!==n.hidden),T.xp6(2),T.Oqu(a.getLocalizedHint(n))}}function kn(t,e){if(1&t&&(T.TgZ(0,"div"),T._UZ(1,"input",38),T._uU(2),T.qZA()),2&t){var i=e.$implicit,n=T.oxw(3).$implicit;T.xp6(1),T.Q6J("disabled","ALWAYS"===n.disabled),T.xp6(1),T.hij(" ",i," ")}}function Yn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"lock"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.disabledTooltip(i))}}function Jn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"visibility_off"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.hiddenTooltip(i))}}function Vn(t,e){if(1&t&&(T.TgZ(0,"div",16),T.TgZ(1,"div",17),T.TgZ(2,"span",18),T._uU(3),T.qZA(),T.TgZ(4,"div",18),T.TgZ(5,"form",36),T.YNc(6,kn,3,2,"div",9),T.qZA(),T.qZA(),T.qZA(),T.TgZ(7,"div",20),T.YNc(8,Yn,2,1,"mat-icon",21),T.YNc(9,Jn,2,1,"mat-icon",21),T.TgZ(10,"span",22),T._uU(11),T.qZA(),T.qZA(),T.qZA()),2&t){var i=T.oxw(2).$implicit,n=T.oxw(2);T.xp6(3),T.Oqu(n.getLocalizedLabel(i)),T.xp6(3),T.Q6J("ngForOf",n.getLocalizedOptions(i)),T.xp6(2),T.Q6J("ngIf","NEVER"!==i.disabled),T.xp6(1),T.Q6J("ngIf","NEVER"!==i.hidden),T.xp6(2),T.Oqu(n.getLocalizedHint(i))}}function Fn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"lock"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.disabledTooltip(i))}}function Qn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"visibility_off"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.hiddenTooltip(i))}}function zn(t,e){if(1&t&&(T.TgZ(0,"div",16),T.TgZ(1,"div",17),T.TgZ(2,"span",18),T._uU(3),T.qZA(),T.TgZ(4,"div",18),T.TgZ(5,"form",36),T._UZ(6,"input",38),T._uU(7," example group1 "),T._UZ(8,"br"),T._UZ(9,"input",38),T._uU(10," example group2 "),T._UZ(11,"br"),T._UZ(12,"input",38),T._uU(13," example group3 "),T.qZA(),T.qZA(),T.qZA(),T.TgZ(14,"div",20),T.YNc(15,Fn,2,1,"mat-icon",21),T.YNc(16,Qn,2,1,"mat-icon",21),T.TgZ(17,"span",22),T._uU(18),T.qZA(),T.qZA(),T.qZA()),2&t){var i=T.oxw(2).$implicit,n=T.oxw(2);T.xp6(3),T.Oqu(n.getLocalizedLabel(i)),T.xp6(3),T.Q6J("disabled","ALWAYS"===i.disabled),T.xp6(3),T.Q6J("disabled","ALWAYS"===i.disabled),T.xp6(3),T.Q6J("disabled","ALWAYS"===i.disabled),T.xp6(3),T.Q6J("ngIf","NEVER"!==i.disabled),T.xp6(1),T.Q6J("ngIf","NEVER"!==i.hidden),T.xp6(2),T.Oqu(n.getLocalizedHint(i))}}function Bn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",41),T._uU(1,"lock"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.disabledTooltip(i))}}function jn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",41),T._uU(1,"visibility_off"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.hiddenTooltip(i))}}function Hn(t,e){if(1&t&&(T.TgZ(0,"div",16),T.TgZ(1,"button",39),T._uU(2),T.qZA(),T.YNc(3,Bn,2,1,"mat-icon",40),T.YNc(4,jn,2,1,"mat-icon",40),T.qZA()),2&t){var i=T.oxw(2).$implicit,n=T.oxw(2);T.xp6(1),T.Q6J("disabled","ALWAYS"===i.disabled),T.xp6(1),T.Oqu(n.getLocalizedLabel(i)),T.xp6(1),T.Q6J("ngIf","NEVER"!==i.disabled),T.xp6(1),T.Q6J("ngIf","NEVER"!==i.hidden)}}function Xn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",41),T._uU(1,"lock"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.disabledTooltip(i))}}function $n(t,e){if(1&t&&(T.TgZ(0,"mat-icon",41),T._uU(1,"visibility_off"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.hiddenTooltip(i))}}function Wn(t,e){if(1&t&&(T.TgZ(0,"div"),T.TgZ(1,"button",39),T._uU(2),T.qZA(),T.YNc(3,Xn,2,1,"mat-icon",40),T.YNc(4,$n,2,1,"mat-icon",40),T.qZA()),2&t){var i=T.oxw(2).$implicit,n=T.oxw(2);T.xp6(1),T.Q6J("disabled","ALWAYS"===i.disabled),T.xp6(1),T.Oqu(n.getLocalizedLabel(i)),T.xp6(1),T.Q6J("ngIf","NEVER"!==i.disabled),T.xp6(1),T.Q6J("ngIf","NEVER"!==i.hidden)}}function Kn(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"lock"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.disabledTooltip(i))}}function ta(t,e){if(1&t&&(T.TgZ(0,"mat-icon",23),T._uU(1,"visibility_off"),T.qZA()),2&t){var i=T.oxw(3).$implicit,n=T.oxw(2);T.Q6J("matTooltip",n.hiddenTooltip(i))}}function ea(t,e){if(1&t&&(T.TgZ(0,"div",16),T.TgZ(1,"div",17),T.TgZ(2,"span",18),T._uU(3),T.qZA(),T.TgZ(4,"div",18),T.TgZ(5,"select",42),T.TgZ(6,"option",43),T._uU(7),T.ALo(8,"translate"),T.qZA(),T.TgZ(9,"option",44),T._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),T.qZA(),T.TgZ(11,"option",45),T._uU(12,"(GMT -11:00) Midway Island, Samoa"),T.qZA(),T.TgZ(13,"option",46),T._uU(14,"(GMT -10:00) Hawaii"),T.qZA(),T.TgZ(15,"option",47),T._uU(16,"(GMT -9:30) Taiohae"),T.qZA(),T.TgZ(17,"option",48),T._uU(18,"(GMT -9:00) Alaska"),T.qZA(),T.TgZ(19,"option",49),T._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),T.qZA(),T.TgZ(21,"option",50),T._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),T.qZA(),T.TgZ(23,"option",51),T._uU(24,"(GMT -6:00) Central Time (US & Canada), Mexico City"),T.qZA(),T.TgZ(25,"option",52),T._uU(26,"(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima"),T.qZA(),T.TgZ(27,"option",53),T._uU(28,"(GMT -4:30) Caracas"),T.qZA(),T.TgZ(29,"option",54),T._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),T.qZA(),T.TgZ(31,"option",55),T._uU(32,"(GMT -3:30) Newfoundland"),T.qZA(),T.TgZ(33,"option",56),T._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),T.qZA(),T.TgZ(35,"option",57),T._uU(36,"(GMT -2:00) Mid-Atlantic"),T.qZA(),T.TgZ(37,"option",58),T._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),T.qZA(),T.TgZ(39,"option",59),T._uU(40,"(GMT) Western Europe Time, London, Lisbon, Casablanca"),T.qZA(),T.TgZ(41,"option",60),T._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),T.qZA(),T.TgZ(43,"option",61),T._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),T.qZA(),T.TgZ(45,"option",62),T._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),T.qZA(),T.TgZ(47,"option",63),T._uU(48,"(GMT +3:30) Tehran"),T.qZA(),T.TgZ(49,"option",64),T._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),T.qZA(),T.TgZ(51,"option",65),T._uU(52,"(GMT +4:30) Kabul"),T.qZA(),T.TgZ(53,"option",66),T._uU(54,"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent"),T.qZA(),T.TgZ(55,"option",67),T._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),T.qZA(),T.TgZ(57,"option",68),T._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),T.qZA(),T.TgZ(59,"option",69),T._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),T.qZA(),T.TgZ(61,"option",70),T._uU(62,"(GMT +6:30) Yangon, Mandalay"),T.qZA(),T.TgZ(63,"option",71),T._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),T.qZA(),T.TgZ(65,"option",72),T._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),T.qZA(),T.TgZ(67,"option",73),T._uU(68,"(GMT +8:45) Eucla"),T.qZA(),T.TgZ(69,"option",74),T._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),T.qZA(),T.TgZ(71,"option",75),T._uU(72,"(GMT +9:30) Adelaide, Darwin"),T.qZA(),T.TgZ(73,"option",76),T._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),T.qZA(),T.TgZ(75,"option",77),T._uU(76,"(GMT +10:30) Lord Howe Island"),T.qZA(),T.TgZ(77,"option",78),T._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),T.qZA(),T.TgZ(79,"option",79),T._uU(80,"(GMT +11:30) Norfolk Island"),T.qZA(),T.TgZ(81,"option",80),T._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),T.qZA(),T.TgZ(83,"option",81),T._uU(84,"(GMT +12:45) Chatham Islands"),T.qZA(),T.TgZ(85,"option",82),T._uU(86,"(GMT +13:00) Apia, Nukualofa"),T.qZA(),T.TgZ(87,"option",83),T._uU(88,"(GMT +14:00) Line Islands, Tokelau"),T.qZA(),T.qZA(),T.qZA(),T.qZA(),T.TgZ(89,"div",20),T.YNc(90,Kn,2,1,"mat-icon",21),T.YNc(91,ta,2,1,"mat-icon",21),T.TgZ(92,"span",22),T._uU(93),T.qZA(),T.qZA(),T.qZA()),2&t){var i=T.oxw(2).$implicit,n=T.oxw(2);T.xp6(3),T.Oqu(n.getLocalizedLabel(i)),T.xp6(2),T.Q6J("disabled","ALWAYS"===i.disabled),T.xp6(2),T.hij(" ",T.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),T.xp6(83),T.Q6J("ngIf","NEVER"!==i.disabled),T.xp6(1),T.Q6J("ngIf","NEVER"!==i.hidden),T.xp6(2),T.Oqu(n.getLocalizedHint(i))}}function ia(t,e){if(1&t&&(T.TgZ(0,"div",14),T.YNc(1,mn,11,5,"div",15),T.YNc(2,In,11,4,"div",15),T.YNc(3,Zn,13,6,"div",15),T.YNc(4,Nn,13,9,"div",15),T.YNc(5,On,2,1,"div",2),T.YNc(6,Rn,12,6,"div",15),T.YNc(7,Mn,10,5,"div",15),T.YNc(8,Gn,16,11,"div",15),T.YNc(9,Vn,12,5,"div",15),T.YNc(10,zn,19,7,"div",15),T.YNc(11,Hn,5,4,"div",15),T.YNc(12,Wn,5,4,"div",2),T.YNc(13,ea,94,8,"div",15),T.qZA()),2&t){var i=T.oxw().$implicit;T.xp6(1),T.Q6J("ngIf",("TEXTFIELD"===i.type||"VALIDATED_EMAIL"===i.type||"USERNAME"===i.type)&&"ALWAYS"!==i.hidden),T.xp6(1),T.Q6J("ngIf","FROM_FEDERATION_SHOW"===i.type&&"ALWAYS"!==i.hidden),T.xp6(1),T.Q6J("ngIf","PASSWORD"===i.type&&"ALWAYS"!==i.hidden),T.xp6(1),T.Q6J("ngIf","RADIO"===i.type&&"ALWAYS"!==i.hidden),T.xp6(1),T.Q6J("ngIf",("HEADING"===i.type||"HTML_COMMENT"===i.type)&&"ALWAYS"!==i.hidden),T.xp6(1),T.Q6J("ngIf","SELECTIONBOX"===i.type&&"ALWAYS"!==i.hidden),T.xp6(1),T.Q6J("ngIf","TEXTAREA"===i.type&&"ALWAYS"!==i.hidden),T.xp6(1),T.Q6J("ngIf","COMBOBOX"===i.type&&"ALWAYS"!==i.hidden),T.xp6(1),T.Q6J("ngIf","CHECKBOX"===i.type&&"ALWAYS"!==i.hidden),T.xp6(1),T.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===i.type&&"ALWAYS"!==i.hidden),T.xp6(1),T.Q6J("ngIf","SUBMIT_BUTTON"===i.type&&"ALWAYS"!==i.hidden),T.xp6(1),T.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===i.type&&"ALWAYS"!==i.hidden),T.xp6(1),T.Q6J("ngIf","TIMEZONE"===i.type&&"ALWAYS"!==i.hidden)}}function na(t,e){if(1&t&&(T.TgZ(0,"div"),T.YNc(1,ia,14,13,"div",13),T.qZA()),2&t){var i=e.$implicit,n=T.oxw(2);T.xp6(1),T.Q6J("ngIf",n.isValid(i))}}function aa(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"div"),T.TgZ(1,"div",4),T.YNc(2,pn,5,3,"button",5),T.YNc(3,dn,5,3,"button",5),T.TgZ(4,"mat-form-field"),T.TgZ(5,"mat-label"),T._uU(6),T.ALo(7,"translate"),T.qZA(),T.TgZ(8,"mat-select",6),T.NdJ("valueChange",function(t){return T.CHM(i),T.oxw().currentLanguage=t}),T.YNc(9,gn,4,6,"mat-option",7),T.qZA(),T.qZA(),T.qZA(),T.TgZ(10,"div",8),T.YNc(11,na,2,1,"div",9),T.qZA(),T.qZA()}if(2&t){var n=T.oxw();T.xp6(2),T.Q6J("ngIf",!n.initialPage),T.xp6(1),T.Q6J("ngIf",n.initialPage),T.xp6(3),T.Oqu(T.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),T.xp6(2),T.Q6J("value",n.currentLanguage),T.xp6(1),T.Q6J("ngForOf",n.languages),T.xp6(2),T.Q6J("ngForOf",n.applicationFormItems)}}var oa=function(){var t=function(){function t(e,i,n){a(this,t),this.route=e,this.translate=i,this.store=n,this.loading=!0,this.applicationFormItems=[],this.currentLanguage="en",this.languages=["en"],this.initialPage=!0,this.mapForCombobox=new Map}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.languages=this.store.get("supportedLanguages"),this.route.queryParamMap.subscribe(function(e){t.applicationFormItems=JSON.parse(e.get("applicationFormItems")),t.loading=!1})}},{key:"switchToInitial",value:function(){this.initialPage=!0}},{key:"switchToExtension",value:function(){this.initialPage=!1}},{key:"getLocalizedOptions",value:function(t){if(t.i18n[this.currentLanguage]){var i=t.i18n[this.currentLanguage].options;if(null!==i&&""!==i){var n,a=[],o=e(i.split("|"));try{for(o.s();!(n=o.n()).done;){var r=n.value;a.push(r.split("#")[1])}}catch(s){o.e(s)}finally{o.f()}return a}}return[]}},{key:"isValid",value:function(t){if(t.forDelete)return!1;var i,n=e(t.applicationTypes);try{for(n.s();!(i=n.n()).done;){var a=i.value;if("INITIAL"===a&&this.initialPage)return!0;if("EXTENSION"===a&&!this.initialPage)return!0}}catch(o){n.e(o)}finally{n.f()}return!1}},{key:"disabledTooltip",value:function(t){var e,i,n;switch(t.disabled){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED");case"IF_PREFILLED":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.disabledDependencyItemId}).shortname,n=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),"".concat(e," ").concat(i," ").concat(n);case"IF_EMPTY":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.disabledDependencyItemId}).shortname,n=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),"".concat(e," ").concat(i," ").concat(n);default:return""}}},{key:"hiddenTooltip",value:function(t){var e,i,n;switch(t.hidden){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN");case"IF_PREFILLED":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.hiddenDependencyItemId}).shortname,n=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),"".concat(e," ").concat(i," ").concat(n);case"IF_EMPTY":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.hiddenDependencyItemId}).shortname,n=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),"".concat(e," ").concat(i," ").concat(n);default:return""}}},{key:"getLocalizedLabel",value:function(t){return t.i18n[this.currentLanguage]&&t.i18n[this.currentLanguage].label?t.i18n[this.currentLanguage].label:t.shortname}},{key:"getLocalizedHint",value:function(t){return t.i18n[this.currentLanguage]?t.i18n[this.currentLanguage].help:""}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(l.gz),T.Y36(O.sK),T.Y36(h.d6))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.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","disabled","",1,"w-100"],["type","text",1,"mb-1","w-100",3,"disabled"],["type","reset",3,"disabled","value"],["type","radio","name","temp",3,"disabled"],[3,"innerHTML"],[1,"w-100",3,"disabled"],[1,"w-50",3,"disabled"],[1,"w-100",3,"ngModel","disabled","ngModelChange"],["value","true","selected",""],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],[1,"w-100"],["type","text"],["type","checkbox",3,"disabled"],["mat-flat-button","","color","accent",3,"disabled"],["class","pointer left",3,"matTooltip",4,"ngIf"],[1,"pointer","left",3,"matTooltip"],["name","timezone_offset","id","timezone-offset",1,"w-100",3,"disabled"],["value","-12:00","selected","selected"],["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"]],template:function(t,e){1&t&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.YNc(3,cn,1,0,"mat-spinner",1),T.YNc(4,aa,12,8,"div",2)),2&t&&(T.xp6(1),T.hij(" ",T.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),T.xp6(2),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading))},directives:[s.O5,Z.$g,ye.KE,ye.hX,Me.gD,s.sg,N.lW,qe.ey,b.Hw,_.gM,Le._Y,Le.JL,Le.F,Le.YN,Le.Kr,Le.EJ,Le.JJ,Le.On],pipes:[O.X$,s.gd],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}();function ra(t,e){1&t&&(T._uU(0),T.ALo(1,"translate")),2&t&&T.hij(" ",T.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function sa(t,e){if(1&t&&T._UZ(0,"app-one-entity-attribute-page",5),2&t){var i=T.oxw();T.Q6J("entity","member")("entityId",i.memberId)}}function la(t,e){1&t&&(T._uU(0),T.ALo(1,"translate"),T.ALo(2,"translate")),2&t&&T.AsE(" ",T.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",T.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function ua(t,e){if(1&t&&T._UZ(0,"app-two-entity-attribute-page",6),2&t){var i=T.oxw(2);T.Q6J("firstEntity","member")("firstEntityId",i.memberId)("secondEntity","group")}}function ca(t,e){1&t&&(T.TgZ(0,"mat-tab"),T.YNc(1,la,3,6,"ng-template",1),T.YNc(2,ua,1,3,"ng-template",2),T.qZA())}function pa(t,e){1&t&&(T._uU(0),T.ALo(1,"translate"),T.ALo(2,"translate")),2&t&&T.AsE(" ",T.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",T.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function da(t,e){if(1&t&&T._UZ(0,"app-two-entity-attribute-page",6),2&t){var i=T.oxw(2);T.Q6J("firstEntity","member")("firstEntityId",i.memberId)("secondEntity","resource")}}function ga(t,e){1&t&&(T.TgZ(0,"mat-tab"),T.YNc(1,pa,3,6,"ng-template",1),T.YNc(2,da,1,3,"ng-template",2),T.qZA())}function ha(t,e){1&t&&(T._uU(0),T.ALo(1,"translate")),2&t&&T.hij(" ",T.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function fa(t,e){if(1&t&&T._UZ(0,"app-one-entity-attribute-page",7),2&t){var i=T.oxw();T.Q6J("entityId",i.member.userId)("entity","user")}}function ma(t,e){1&t&&(T._uU(0),T.ALo(1,"translate"),T.ALo(2,"translate")),2&t&&T.AsE(" ",T.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",T.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function Aa(t,e){if(1&t&&T._UZ(0,"app-two-entity-attribute-page",6),2&t){var i=T.oxw(2);T.Q6J("firstEntity","user")("firstEntityId",i.member.userId)("secondEntity","facility")}}function Ta(t,e){1&t&&(T.TgZ(0,"mat-tab"),T.YNc(1,ma,3,6,"ng-template",1),T.YNc(2,Aa,1,3,"ng-template",2),T.qZA())}var Ia=function(){var t=function(){function t(e,i,n){a(this,t),this.route=e,this.authResolver=i,this.memberManager=n}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.memberId=e.memberId,t.memberManager.getMemberById(t.memberId).subscribe(function(e){t.member=e,t.memberGroupAttAuth=t.authResolver.isAuthorized("getMemberGroups_Member_policy",[t.member]),t.memberResourceAttAuth=t.authResolver.isAuthorized("getAllowedResources_Member_policy",[t.member]),t.userFacilityAttAuth=t.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{beanName:"User",id:e.userId}])})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(l.gz),T.Y36(h.x4),T.Y36(d.uq))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-member-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.true)},decls:14,vars:6,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[1,"mb-2"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"],[3,"entityId","entity"]],template:function(t,e){1&t&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-tab-group"),T.TgZ(5,"mat-tab"),T.YNc(6,ra,2,3,"ng-template",1),T.YNc(7,sa,1,2,"ng-template",2),T.qZA(),T.YNc(8,ca,3,0,"mat-tab",3),T.YNc(9,ga,3,0,"mat-tab",3),T.TgZ(10,"mat-tab",4),T.YNc(11,ha,2,3,"ng-template",1),T.YNc(12,fa,1,2,"ng-template",2),T.qZA(),T.YNc(13,Ta,3,0,"mat-tab",3),T.qZA(),T.qZA()),2&t&&(T.xp6(2),T.Oqu(T.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),T.xp6(6),T.Q6J("ngIf",e.memberGroupAttAuth),T.xp6(1),T.Q6J("ngIf",e.memberResourceAttAuth),T.xp6(4),T.Q6J("ngIf",e.userFacilityAttAuth))},directives:[ji.SP,ji.uX,ji.uD,ji.Vc,s.O5,be.t,Hi.Y],pipes:[O.X$],styles:[""]}),t}(),va=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.sideMenuService=e,this.voService=i,this.authResolver=n,this.route=o,this.router=r,this.items=[]}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.parent.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e,t.initItems()})})}},{key:"initItems",value:function(){this.items=[{cssIcon:"perun-resource",url:"/organizations/".concat(this.vo.id,"/resources/preview"),label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}],this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-resource-tags",url:"/organizations/".concat(this.vo.id,"/resources/tags"),label:"MENU_ITEMS.VO.RESOURCE_TAGS",style:"vo-btn"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-resources-state",url:"/organizations/".concat(this.vo.id,"/resources/states"),label:"MENU_ITEMS.VO.RESOURCE_STATES",style:"vo-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(I.D),T.Y36(d.YF),T.Y36(h.x4),T.Y36(l.gz),T.Y36(l.F0))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(T.TgZ(0,"div"),T._UZ(1,"perun-web-apps-menu-buttons-field",0),T.qZA()),2&t&&(T.xp6(1),T.Q6J("items",e.items)("size","small"))},directives:[H.L],styles:[""]}),t}(),Ea=o(88227),Za=o(97397),ba=o(4230);function _a(t,e){1&t&&T._UZ(0,"mat-spinner",6)}function Sa(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"div",7),T.TgZ(1,"mat-form-field"),T.TgZ(2,"input",8),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw().name=t}),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-error"),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.qZA(),T.qZA()}if(2&t){var n=T.oxw();T.xp6(2),T.s9C("placeholder",T.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),T.Q6J("ngModel",n.name),T.xp6(3),T.Oqu(T.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}var Na=function(){var t=function(){function t(e,i,n){a(this,t),this.dialogRef=e,this.data=i,this.resourceManager=n,this.name="",this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;""!==this.name&&(this.loading=!0,this.resourceManager.createResourceTagWithTagName(this.name,this.data.voId).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(v.so),T.Y36(v.WI),T.Y36(d.xk))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["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","accent",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(t,e){1&t&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,_a,1,0,"mat-spinner",1),T.YNc(5,Sa,7,7,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return e.onCancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return e.onSubmit()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA(),T.qZA()),2&t&&(T.Tol(e.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),T.xp6(2),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading),T.xp6(3),T.hij(" ",T.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),T.xp6(2),T.Q6J("disabled",e.loading),T.xp6(1),T.hij(" ",T.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},directives:[v.uh,s.O5,v.H8,N.lW,Z.$g,v.xY,ye.KE,Ue.Nt,Le.Fj,Le.Q7,Le.JJ,Le.On,ye.TO],pipes:[O.X$],styles:[""]}),t}();function Oa(t,e){1&t&&T._UZ(0,"mat-spinner",6)}function xa(t,e){1&t&&T._UZ(0,"th",15)}function La(t,e){if(1&t&&(T.TgZ(0,"td",16),T._uU(1),T.qZA()),2&t){var i=e.$implicit;T.xp6(1),T.hij(" ",i.tagName," ")}}function Ca(t,e){1&t&&T._UZ(0,"tr",17)}function Ra(t,e){1&t&&T._UZ(0,"tr",18)}function Da(t,e){if(1&t&&(T.TgZ(0,"div",7),T.TgZ(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",8),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"table",9),T.ynx(8,10),T.YNc(9,xa,1,0,"th",11),T.YNc(10,La,2,1,"td",12),T.BQk(),T.YNc(11,Ca,1,0,"tr",13),T.YNc(12,Ra,1,0,"tr",14),T.qZA(),T.qZA()),2&t){var i=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",i.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",i.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",i.displayedColumns)}}var ya=function(){var t=function(){function t(e,i,n){a(this,t),this.dialogRef=e,this.data=i,this.resourceManager=n,this.displayedColumns=["name"],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new ut.by(this.data.tagsForDelete)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var i,n=e(this.data.tagsForDelete);try{for(n.s();!(i=n.n()).done;){var a=i.value;this.resourceManager.deleteResourceTag({resourceTag:a}).subscribe(function(){t.dialogRef.close(!0)},function(){return t.dialogRef.close(!0)})}}catch(o){n.e(o)}finally{n.f()}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(v.so),T.Y36(v.WI),T.Y36(d.xk))},t.\u0275cmp=T.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Oa,1,0,"mat-spinner",1),T.YNc(5,Da,13,9,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return e.onCancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return e.onSubmit()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA(),T.qZA()),2&t&&(T.Tol(e.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),T.xp6(2),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading),T.xp6(3),T.hij(" ",T.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),T.xp6(2),T.Q6J("disabled",e.loading),T.xp6(1),T.hij(" ",T.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},directives:[v.uh,s.O5,v.H8,N.lW,Z.$g,v.xY,ut.BZ,ut.w1,ut.fO,ut.Dz,ut.as,ut.nj,ut.ge,ut.ev,ut.XQ,ut.Gk],pipes:[O.X$],styles:[""]}),t}(),Ma=o(60611),Ua=o(59403),qa=o(19139),Pa=o(4196);function wa(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",7),T.NdJ("click",function(){return T.CHM(i),T.oxw().create()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&t&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function Ga(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",8),T.NdJ("click",function(){return T.CHM(i),T.oxw().deleteTag()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&t){var n=T.oxw();T.Q6J("disabled",0===n.selection.selected.length),T.xp6(1),T.hij(" ",T.lcZ(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function ka(t,e){1&t&&T._UZ(0,"mat-spinner",9)}function Ya(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"app-resources-tags-list",10),T.NdJ("page",function(t){return T.CHM(i),T.oxw().pageChanged(t)}),T.qZA()}if(2&t){var n=T.oxw();T.Q6J("selection",n.selection)("pageSize",n.pageSize)("resourceTags",n.resourceTag)("filterValue",n.filterValue)("displayedColumns",n.displayedColumns)("entity","vo")}}var Ja=function(){var t=function(){function t(e,i,n,o,r,s,l,u){a(this,t),this.route=e,this.resourceManager=i,this.dialog=n,this.notificator=o,this.tableConfigService=r,this.translator=s,this.authResolver=l,this.voService=u,this.loading=!1,this.resourceTag=[],this.selection=new ba.Ov(!0,[]),this.tableId=Ma.O7,this.displayedColumns=[]}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(function(e){t.voId=e.voId,t.voService.getVoById(t.voId).subscribe(function(e){t.vo=e,t.updateData()})})}},{key:"deleteTag",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(ya,e).afterClosed().subscribe(function(e){e&&(t.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.updateData())})}},{key:"create",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(Na,e).afterClosed().subscribe(function(e){e&&(t.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.updateData())})}},{key:"updateData",value:function(){var t=this;this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.voId).subscribe(function(e){t.resourceTag=e,t.selection.clear(),t.setAuthRights(),t.loading=!1})}},{key:"setAuthRights",value:function(){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")}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(l.gz),T.Y36(d.xk),T.Y36(v.uw),T.Y36(h.V6),T.Y36(Ma.dB),T.Y36(O.sK),T.Y36(h.x4),T.Y36(d.YF))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.true)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page"]],template:function(t,e){1&t&&(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 e.updateData()}),T.qZA(),T.YNc(4,wa,3,3,"button",2),T.YNc(5,Ga,3,4,"button",3),T.TgZ(6,"perun-web-apps-immediate-filter",4),T.NdJ("filter",function(t){return e.applyFilter(t)}),T.qZA(),T.YNc(7,ka,1,0,"mat-spinner",5),T.YNc(8,Ya,1,6,"app-resources-tags-list",6)),2&t&&(T.xp6(1),T.Oqu(T.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),T.xp6(3),T.Q6J("ngIf",e.createAuth),T.xp6(1),T.Q6J("ngIf",e.deleteAuth),T.xp6(1),T.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),T.xp6(1),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading))},directives:[Ua.t,s.O5,qa.L,N.lW,Z.$g,Pa.o],pipes:[O.X$],styles:[""]}),t}();function Va(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"app-expiration-settings",1),T.NdJ("saveAttribute",function(t){return T.CHM(i),T.oxw().saveExpirationAttribute(t)}),T.qZA()}if(2&t){var n=T.oxw();T.Q6J("expirationAttribute",n.expirationAttribute)}}var Fa=function(){var t=function(){function t(e,i,n,o,r){var s=this;a(this,t),this.attributesManager=e,this.route=i,this.translate=n,this.notificator=o,this.apiRequest=r,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(function(t){return s.successMessage=t}),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(function(t){return s.errorMessage=t})}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.parent.params.subscribe(function(e){t.groupId=e.groupId,t.loadSettings()})}},{key:"loadSettings",value:function(){var t=this;this.attributesManager.getGroupAttributeByName(this.groupId,f.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(e){t.expirationAttribute=e})}},{key:"saveExpirationAttribute",value:function(t){var e=this;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.groupId,attribute:t}).subscribe(function(){e.loadSettings(),e.notificator.showSuccess(e.successMessage)},function(t){return e.notificator.showRPCError(t.error,e.errorMessage)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(d.H8),T.Y36(l.gz),T.Y36(O.sK),T.Y36(h.V6),T.Y36(h.F5))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&T.YNc(0,Va,1,1,"app-expiration-settings",0),2&t&&T.Q6J("ngIf",void 0!==e.expirationAttribute)},directives:[s.O5,Xe],styles:[""]}),t}();function Qa(t,e){if(1&t&&T._UZ(0,"app-managers-page",1),2&t){var i=T.oxw();T.Q6J("complementaryObject",i.group)("complementaryObjectType",i.type)("theme",i.theme)("availableRoles",i.availableRoles)}}var za=function(){var t=function(){function t(e,i,n){a(this,t),this.groupService=e,this.route=i,this.guiAuthResolver=n,this.availableRoles=[],this.selected="user",this.type="Group",this.theme="group-theme"}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.parent.params.subscribe(function(e){t.groupService.getGroupById(e.groupId).subscribe(function(e){t.group=e})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Group")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(d.ff),T.Y36(l.gz),T.Y36(h.x4))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&T.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&T.YNc(0,Qa,1,4,"app-managers-page",0),2&t&&T.Q6J("ngIf",e.group)},directives:[s.O5,ti.s],styles:[""]}),t}();function Ba(t,e){1&t&&T._UZ(0,"mat-spinner",6)}function ja(t,e){1&t&&T._UZ(0,"th",15)}function Ha(t,e){if(1&t&&(T.TgZ(0,"td",16),T._uU(1),T.qZA()),2&t){var i=e.$implicit,n=T.oxw(2);T.xp6(1),T.hij(" ",n.getMailType(i)," ")}}function Xa(t,e){1&t&&T._UZ(0,"tr",17)}function $a(t,e){1&t&&T._UZ(0,"tr",18)}function Wa(t,e){if(1&t&&(T.TgZ(0,"div",7),T.TgZ(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",8),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"table",9),T.ynx(8,10),T.YNc(9,ja,1,0,"th",11),T.YNc(10,Ha,2,1,"td",12),T.BQk(),T.YNc(11,Xa,1,0,"tr",13),T.YNc(12,$a,1,0,"tr",14),T.qZA(),T.qZA()),2&t){var i=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",i.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",i.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",i.displayedColumns)}}var Ka=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=o,this.registrarService=r,this.displayedColumns=["name"],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new ut.by(this.data.mails)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;if(this.loading=!0,this.data.groupId){var i,n=e(this.data.mails);try{for(n.s();!(i=n.n()).done;){var a=i.value;this.registrarService.deleteApplicationMailForGroup(this.data.groupId,a.id).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1})}}catch(l){n.e(l)}finally{n.f()}}else{var o,r=e(this.data.mails);try{for(r.s();!(o=r.n()).done;){var s=o.value;this.registrarService.deleteApplicationMailForVo(this.data.voId,s.id).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1})}}catch(l){r.e(l)}finally{r.f()}}}},{key:"getMailType",value:function(t){var e="";return null==t.mailType||""===t.mailType?e="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+t.mailType).subscribe(function(t){e=t}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(v.so),T.Y36(v.WI),T.Y36(h.V6),T.Y36(O.sK),T.Y36(d.tk))},t.\u0275cmp=T.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Ba,1,0,"mat-spinner",1),T.YNc(5,Wa,13,9,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return e.onCancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return e.onSubmit()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA(),T.qZA()),2&t&&(T.Tol(e.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),T.xp6(2),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading),T.xp6(3),T.hij(" ",T.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),T.xp6(2),T.Q6J("disabled",e.loading),T.xp6(1),T.hij(" ",T.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},directives:[v.uh,s.O5,v.H8,N.lW,Z.$g,v.xY,ut.BZ,ut.w1,ut.fO,ut.Dz,ut.as,ut.nj,ut.ge,ut.ev,ut.XQ,ut.Gk],pipes:[O.X$],styles:[""]}),t}(),to=o(10901);function eo(t,e){1&t&&T._UZ(0,"mat-spinner",7)}function io(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"div",8),T.TgZ(1,"div"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-form-field"),T.TgZ(5,"textarea",9),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw().mailFooter=t}),T.qZA(),T.qZA(),T.TgZ(6,"div",10),T._uU(7),T.ALo(8,"translate"),T.qZA(),T.qZA()}if(2&t){var n=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.LABEL"),": "),T.xp6(3),T.Q6J("cdkTextareaAutosize",!0)("ngModel",n.mailFooter),T.xp6(2),T.Oqu(T.lcZ(8,6,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION"))}}var no=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialogRef=e,this.attributesManager=i,this.translateService=n,this.notificator=o,this.data=r,this.mailFooter="",this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}},{key:"submit",value:function(){var t=this;this.loading=!0,this.mailAttribute.value=this.mailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe(function(){t.notificateSuccess(),t.dialogRef.close()},function(){return t.loading=!1}):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe(function(){t.notificateSuccess(),t.dialogRef.close()},function(){return t.loading=!1})}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"getFooterForVo",value:function(){var t=this;this.attributesManager.getVoAttributeByName(this.data.voId,f.r.VO_DEF_MAIL_FOOTER).subscribe(function(e){t.mailAttribute=e,t.editAuth=t.mailAttribute.writable,t.mailFooter=e.value?e.value:""})}},{key:"getFooterForGroup",value:function(){var t=this;this.attributesManager.getGroupAttributeByName(this.data.groupId,f.r.GROUP_DEF_MAIL_FOOTER).subscribe(function(e){t.mailAttribute=e,t.editAuth=t.mailAttribute.writable,t.mailFooter=e.value?e.value:""})}},{key:"notificateSuccess",value:function(){var t=this;this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(v.so),T.Y36(d.H8),T.Y36(O.sK),T.Y36(h.V6),T.Y36(v.WI))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["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"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"mt-2","font-italic","text-muted"]],template:function(t,e){1&t&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,eo,1,0,"mat-spinner",1),T.YNc(5,io,9,8,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return e.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 e.submit()}),T._uU(13),T.ALo(14,"translate"),T.qZA(),T.qZA(),T.qZA(),T.qZA()),2&t&&(T.Tol(e.theme),T.xp6(2),T.Oqu(T.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),T.xp6(2),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.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",e.editAuth)("matTooltipPosition","above"),T.xp6(2),T.Q6J("disabled",e.loading||!e.editAuth),T.xp6(1),T.hij(" ",T.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},directives:[v.uh,s.O5,v.H8,N.lW,_.gM,Z.$g,v.xY,ye.KE,Ue.Nt,to.IC,Le.Fj,Le.JJ,Le.On],pipes:[O.X$],styles:[""]}),t}(),ao=o(4253);function oo(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"div"),T.TgZ(1,"button",1),T.NdJ("click",function(){var t=T.CHM(i).$implicit;return T.oxw().addTag("{"+t[0]+"}")}),T._uU(2),T.qZA(),T._uU(3),T.ALo(4,"translate"),T.qZA()}if(2&t){var n=e.$implicit;T.xp6(2),T.hij("",n[0]," "),T.xp6(1),T.hij(" - ",T.lcZ(4,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+n[1]),"\n")}}var ro=function(){var t=function(){function t(){a(this,t),this.tags=[],this.addedTag=new T.vpe}return r(t,[{key:"addTag",value:function(t){this.addedTag.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-tag-section"]],inputs:{tags:"tags"},outputs:{addedTag:"addedTag"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["mat-flat-button","",3,"click"]],template:function(t,e){1&t&&T.YNc(0,oo,5,4,"div",0),2&t&&T.Q6J("ngForOf",e.tags)},directives:[s.sg,N.lW],pipes:[O.X$],styles:[""]}),t}(),so=function(){var t=function(){function t(){a(this,t),this.addedTag=new T.vpe,this.applicationRelatedTags=[],this.userRelatedTags=[],this.validationLinksUsersTags=[],this.applicationLinksUsersTags=[],this.applicationLinksAdministratorsTags=[],this.perunLinksAdministratorsTags=[],this.userInvitationsTags=[]}return r(t,[{key:"ngOnInit",value:function(){this.getApplicationRelatedTags(),this.getUserRelatedTags(),this.getValidationLinksUsersTags(),this.getApplicationLinksUsersTags(),this.getApplicationLinksAdministratorsTags(),this.getPerunLinksAdministratorsTags(),this.getUserInvitationsTags()}},{key:"getApplicationRelatedTags",value:function(){var t=[];t.push(["appId","APPID_DESCRIPTION"]),t.push(["actor","ACTOR_DESCRIPTION"]),t.push(["extSource","EXTSOURCE_DESCRIPTION"]),t.push(["voName","VONAME_DESCRIPTION"]),t.push(["groupName","GROUPNAME_DESCRIPTION"]),t.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),t.push(["errors","ERRORS_DESCRIPTION"]),t.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),t.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=t}},{key:"getUserRelatedTags",value:function(){var t=[];t.push(["firstName","FIRSTNAME_DESCRIPTION"]),t.push(["lastName","LASTNAME_DESCRIPTION"]),t.push(["displayName","DISPLAYNAME_DESCRIPTION"]),t.push(["mail","MAIL_DESCRIPTION"]),t.push(["phone","PHONE_DESCRIPTION"]),t.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),t.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=t}},{key:"getValidationLinksUsersTags",value:function(){var t=[];t.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),t.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),t.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),t.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),t.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),t.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=t}},{key:"getApplicationLinksUsersTags",value:function(){var t=[];t.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),t.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),t.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),t.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),t.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=t}},{key:"getApplicationLinksAdministratorsTags",value:function(){var t=[];t.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),t.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),t.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),t.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),this.applicationLinksAdministratorsTags=t}},{key:"getPerunLinksAdministratorsTags",value:function(){var t=[];t.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),t.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),t.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),t.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),this.perunLinksAdministratorsTags=t}},{key:"getUserInvitationsTags",value:function(){var t=[];t.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),t.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),t.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),t.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),t.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),t.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),t.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),t.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),t.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=t}},{key:"addTag",value:function(t){this.addedTag.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=T.Xpm({type:t,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(t,e){1&t&&(T.TgZ(0,"app-alert",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(4,"div",2),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"app-tag-section",3),T.NdJ("addedTag",function(t){return e.addTag(t)}),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(t){return e.addTag(t)}),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(t){return e.addTag(t)}),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(t){return e.addTag(t)}),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(t){return e.addTag(t)}),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(t){return e.addTag(t)}),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(t){return e.addTag(t)}),T.qZA(),T.qZA()),2&t&&(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",e.applicationRelatedTags),T.xp6(2),T.hij("",T.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),":"),T.xp6(2),T.Q6J("tags",e.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",e.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",e.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",e.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",e.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",e.userInvitationsTags))},directives:[Ct.w,ao.PQ,ro],pipes:[O.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:380px;overflow:auto}"]}),t}();function lo(t,e){1&t&&(T.TgZ(0,"div"),T.TgZ(1,"h1",9),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.qZA()),2&t&&(T.xp6(2),T.Oqu(T.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function uo(t,e){1&t&&(T.TgZ(0,"h1",9),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function co(t,e){1&t&&T._UZ(0,"mat-spinner",10)}function po(t,e){1&t&&(T.TgZ(0,"div",34),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function go(t,e){1&t&&(T.TgZ(0,"div",34),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function ho(t,e){1&t&&(T.TgZ(0,"mat-option",36),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function fo(t,e){1&t&&(T.TgZ(0,"div",34),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function mo(t,e){1&t&&(T.TgZ(0,"div",34),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function Ao(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"div",38),T.TgZ(1,"div",39),T.TgZ(2,"div",40),T.TgZ(3,"span",41),T._uU(4),T.ALo(5,"translate"),T.qZA(),T.TgZ(6,"mat-form-field",18),T.TgZ(7,"input",42,43),T.NdJ("focus",function(){return T.CHM(i),T.oxw(3).isTextFocused=!1})("ngModelChange",function(t){T.CHM(i);var e=T.oxw().$implicit;return T.oxw(2).applicationMail.message[e].subject=t}),T.qZA(),T.qZA(),T.qZA(),T.TgZ(9,"div",44),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.TgZ(12,"button",45),T.NdJ("click",function(){T.CHM(i);var t=T.oxw(3);return t.showTags=!t.showTags}),T._uU(13),T.ALo(14,"translate"),T.ALo(15,"translate"),T.qZA(),T.TgZ(16,"mat-form-field",18),T.TgZ(17,"textarea",46,47),T.NdJ("focus",function(){return T.CHM(i),T.oxw(3).isTextFocused=!0})("ngModelChange",function(t){T.CHM(i);var e=T.oxw().$implicit;return T.oxw(2).applicationMail.message[e].text=t}),T._uU(19," "),T.qZA(),T.qZA(),T.qZA(),T.TgZ(20,"div"),T.TgZ(21,"app-tag-bar",48),T.NdJ("addedTag",function(t){T.CHM(i);var e=T.MAs(8),n=T.MAs(18),a=T.oxw().$implicit;return T.oxw(2).addTag(e,n,a,t)}),T.qZA(),T.qZA(),T.qZA()}if(2&t){var n=T.oxw().$implicit,a=T.oxw(2);T.xp6(4),T.hij("",T.lcZ(5,6,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT")," :"),T.xp6(3),T.Q6J("ngModel",a.applicationMail.message[n].subject),T.xp6(3),T.hij(" ",T.lcZ(11,8,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),T.xp6(3),T.hij(" ",a.showTags?T.lcZ(14,10,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):T.lcZ(15,12,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),T.xp6(4),T.Q6J("ngModel",a.applicationMail.message[n].text),T.xp6(3),T.Q6J("@tagsOpenClose",a.showTags?"open":"closed")}}function To(t,e){1&t&&(T.TgZ(0,"mat-tab",14),T.ALo(1,"translate"),T.ALo(2,"uppercase"),T.YNc(3,Ao,22,14,"ng-template",37),T.qZA()),2&t&&T.s9C("label",T.lcZ(1,1,T.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+e.$implicit)))}function Io(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"div",11),T.TgZ(1,"div"),T.TgZ(2,"app-alert",12),T._uU(3),T.ALo(4,"translate"),T.qZA(),T.qZA(),T.TgZ(5,"mat-tab-group",13),T.TgZ(6,"mat-tab",14),T.ALo(7,"translate"),T.TgZ(8,"div",15),T.TgZ(9,"span",16),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.TgZ(12,"div",17),T.TgZ(13,"mat-form-field",18),T.TgZ(14,"mat-select",19),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw().applicationMail.mailType=t})("selectionChange",function(){return T.CHM(i),T.oxw().notificationExist()}),T.TgZ(15,"mat-option",20),T._uU(16),T.ALo(17,"translate"),T.qZA(),T.TgZ(18,"mat-option",21),T._uU(19),T.ALo(20,"translate"),T.qZA(),T.TgZ(21,"mat-option",22),T._uU(22),T.ALo(23,"translate"),T.qZA(),T.TgZ(24,"mat-option",23),T._uU(25),T.ALo(26,"translate"),T.qZA(),T.TgZ(27,"mat-option",24),T._uU(28),T.ALo(29,"translate"),T.qZA(),T.TgZ(30,"mat-option",25),T._uU(31),T.ALo(32,"translate"),T.qZA(),T.TgZ(33,"mat-option",26),T._uU(34),T.ALo(35,"translate"),T.qZA(),T.qZA(),T.qZA(),T.qZA(),T.qZA(),T.TgZ(36,"div",27),T._UZ(37,"span",28),T.YNc(38,po,3,3,"div",29),T.YNc(39,go,3,3,"div",29),T.qZA(),T.TgZ(40,"div",15),T.TgZ(41,"span",30),T._uU(42),T.ALo(43,"translate"),T.qZA(),T.TgZ(44,"div",17),T.TgZ(45,"mat-form-field",18),T.TgZ(46,"mat-select",19),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw().applicationMail.appType=t})("selectionChange",function(){return T.CHM(i),T.oxw().notificationExist()}),T.TgZ(47,"mat-option",31),T._uU(48),T.ALo(49,"translate"),T.qZA(),T.YNc(50,ho,3,3,"mat-option",32),T.qZA(),T.qZA(),T.qZA(),T.qZA(),T.TgZ(51,"div",27),T._UZ(52,"span",28),T.YNc(53,fo,3,3,"div",29),T.YNc(54,mo,3,3,"div",29),T.qZA(),T.TgZ(55,"div",15),T.TgZ(56,"span",30),T._uU(57),T.ALo(58,"translate"),T.qZA(),T.TgZ(59,"div",17),T.TgZ(60,"mat-checkbox",33),T.NdJ("ngModelChange",function(t){return T.CHM(i),T.oxw().applicationMail.send=t}),T.qZA(),T.qZA(),T.qZA(),T.TgZ(61,"div",27),T._UZ(62,"span",28),T.TgZ(63,"div",34),T._uU(64),T.ALo(65,"translate"),T.qZA(),T.qZA(),T.qZA(),T.YNc(66,To,4,5,"mat-tab",35),T.qZA(),T.qZA()}if(2&t){var n=T.oxw();T.xp6(1),T.Q6J("@openClose",n.invalidNotification?"open":"closed"),T.xp6(2),T.Oqu(T.lcZ(4,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),T.xp6(3),T.s9C("label",T.lcZ(7,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),T.xp6(4),T.hij("",T.lcZ(11,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),T.xp6(4),T.Q6J("ngModel",n.applicationMail.mailType)("disabled",!n.data.createMailNotification),T.xp6(2),T.hij(" ",T.lcZ(17,32,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),T.xp6(3),T.hij(" ",T.lcZ(20,34,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),T.xp6(3),T.hij(" ",T.lcZ(23,36,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),T.xp6(3),T.hij(" ",T.lcZ(26,38,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),T.xp6(3),T.hij(" ",T.lcZ(29,40,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),T.xp6(3),T.hij(" ",T.lcZ(32,42,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),T.xp6(3),T.hij(" ",T.lcZ(35,44,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),T.xp6(4),T.Q6J("ngIf",!n.data.createMailNotification),T.xp6(1),T.Q6J("ngIf",n.data.createMailNotification),T.xp6(3),T.hij("",T.lcZ(43,46,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),T.xp6(4),T.Q6J("ngModel",n.applicationMail.appType)("disabled",!n.data.createMailNotification),T.xp6(2),T.hij(" ",T.lcZ(49,48,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),T.xp6(2),T.Q6J("ngIf","USER_INVITE"!==n.applicationMail.mailType),T.xp6(3),T.Q6J("ngIf",!n.data.createMailNotification),T.xp6(1),T.Q6J("ngIf",n.data.createMailNotification),T.xp6(3),T.hij("",T.lcZ(58,50,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),T.xp6(3),T.Q6J("ngModel",n.applicationMail.send),T.xp6(4),T.hij(" ",T.lcZ(65,52,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),T.xp6(2),T.Q6J("ngForOf",n.languages)}}function vo(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",49),T.NdJ("click",function(){return T.CHM(i),T.oxw().create()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&t){var n=T.oxw();T.Q6J("disabled",n.invalidNotification||n.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function Eo(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",49),T.NdJ("click",function(){return T.CHM(i),T.oxw().save()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&t){var n=T.oxw();T.Q6J("disabled",n.loading||!n.editAuth),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}var Zo=function(){var t=function(){function t(e,i,n,o,r,s){a(this,t),this.dialogRef=e,this.registrarService=i,this.data=n,this.authResolver=o,this.groupsService=r,this.store=s,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"]}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.languages=this.store.get("supportedLanguages"),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(function(e){t.editAuth=t.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"}]))}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"create",value:function(){var t=this;this.notificationExist(),this.invalidNotification||(this.loading=!0,this.data.groupId?this.registrarService.addApplicationMailForGroup({group:this.data.groupId,mail:this.applicationMail}).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1}):this.registrarService.addApplicationMailForVo({vo:this.data.voId,mail:this.applicationMail}).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1}))}},{key:"save",value:function(){var t=this;this.loading=!0,this.registrarService.updateApplicationMail({mail:this.applicationMail}).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"addTag",value:function(t,e,i,n){var a,o=(a=this.isTextFocused?e:t).selectionStart;this.isTextFocused?this.applicationMail.message[i].text=this.applicationMail.message[i].text.substring(0,o)+n+this.applicationMail.message[i].text.substring(o):this.applicationMail.message[i].subject=this.applicationMail.message[i].subject.substring(0,o)+n+this.applicationMail.message[i].subject.substring(o),a.focus()}},{key:"notificationExist",value:function(){var t,i=e(this.data.applicationMails);try{for(i.s();!(t=i.n()).done;){var n=t.value;if(n.mailType===this.applicationMail.mailType&&n.appType===this.applicationMail.appType)return void(this.invalidNotification=!0)}}catch(a){i.e(a)}finally{i.f()}this.invalidNotification=!1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(v.so),T.Y36(d.tk),T.Y36(v.WI),T.Y36(h.x4),T.Y36(d.ff),T.Y36(h.d6))},t.\u0275cmp=T.Xpm({type:t,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"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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","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","EXTENSION"],["matTabContent",""],[1,"d-flex","w-100"],[1,"pr-2","w-100"],[1,"pt-2"],[1,"font-weight-bold","pr-2"],["matInput","",3,"ngModel","focus","ngModelChange"],["Input",""],[1,"font-weight-bold"],["mat-flat-button","",3,"click"],["matInput","","rows","17",3,"ngModel","focus","ngModelChange"],["Textarea",""],[3,"addedTag"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){if(1&t&&(T.TgZ(0,"div"),T.TgZ(1,"div",0),T.YNc(2,lo,4,3,"div",1),T.YNc(3,uo,3,3,"ng-template",null,2,T.W1O),T.YNc(5,co,1,0,"mat-spinner",3),T.YNc(6,Io,67,54,"div",4),T.TgZ(7,"div",5),T.TgZ(8,"button",6),T.NdJ("click",function(){return e.cancel()}),T._uU(9),T.ALo(10,"translate"),T.qZA(),T.YNc(11,vo,3,4,"button",7),T.TgZ(12,"div",8),T.ALo(13,"translate"),T.YNc(14,Eo,3,4,"button",7),T.qZA(),T.qZA(),T.qZA(),T.qZA()),2&t){var i=T.MAs(4);T.Gre("",e.theme," h-100"),T.xp6(2),T.Q6J("ngIf",e.data.createMailNotification)("ngIfElse",i),T.xp6(3),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading),T.xp6(3),T.hij(" ",T.lcZ(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),T.xp6(2),T.Q6J("ngIf",e.data.createMailNotification),T.xp6(1),T.s9C("matTooltip",T.lcZ(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),T.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.editAuth),T.xp6(2),T.Q6J("ngIf",!e.data.createMailNotification)}},directives:[s.O5,v.H8,N.lW,_.gM,v.uh,Z.$g,v.xY,Ct.w,ji.SP,ji.uX,ye.KE,Me.gD,Le.JJ,Le.On,qe.ey,Pe.oG,s.sg,ji.Vc,Ue.Nt,Le.Fj,so],pipes:[O.X$,s.gd],styles:[""],data:{animation:[p.es,p.BQ]}}),t}(),bo=o(19386);function _o(t,e){1&t&&T._UZ(0,"mat-spinner",9)}var So=function(){var t=function(){function t(e,i,n,o,r,s){a(this,t),this.dialogRef=e,this.voService=i,this.groupService=n,this.translateService=o,this.registrarService=r,this.data=s,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=function(t){return t.name}}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(function(e){t.fakeGroup={id:-1,name:e,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},t.selectedGroup=t.fakeGroup,t.voService.getAllVos().subscribe(function(e){t.vos=e,t.vos=e.sort(function(t,e){return t.name>e.name?1:t.name=0}).sort(function(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())})}},{key:"filterResources",value:function(t){if(null==t)return this.resources;var e=t.toLowerCase();return this.resources.filter(function(t){return 0===t.facility.name.toLowerCase().indexOf(e)}).sort(function(t,e){return t.name.toLowerCase().localeCompare(e.name.toLowerCase())})}},{key:"setResource",value:function(t){var e=this;this.processing=!0,this.selectedResource=t,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(function(t){e.services=t,e.processing=!1},function(){return e.processing=!1}),this.description=this.selectedResource.description}},{key:"loadGroups",value:function(){var t=this;this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(function(e){t.groups=e,t.groupManager.getAllMemberGroups(t.data.memberId).subscribe(function(e){t.membersGroupsId=new Set(e.map(function(t){return t.id})),t.groups.forEach(function(e){t.authResolver.isAuthorized("addMember_Group_Member_policy",[e])||t.membersGroupsId.add(e.id)}),t.processing=!1},function(){return t.processing=!1})})}},{key:"onFinish",value:function(){var t=this;this.processing=!0,this.groupManager.addMembers(this.selectedGroups.selected[0].id,[this.data.memberId]).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.ADD_MEMBER_TO_RESOURCE.SUCCESS")),t.dialogRef.close(!0)},function(){return t.processing=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(v.so),T.Y36(v.WI),T.Y36(d.xk),T.Y36(d.ff),T.Y36(h.V6),T.Y36(O.sK),T.Y36(h.x4))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-add-member-to-resource-dialog"]],decls:30,vars:26,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],["completed","false"],["matStepLabel",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","matStepperNext","",1,"ml-2",3,"disabled","click"],["alert_type","warn",4,"ngIf"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto",3,"click"],[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",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","groupsToDisable","groups","displayedColumns","selection"],["alert_type","warn"]],template:function(t,e){1&t&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",1),T.TgZ(5,"mat-horizontal-stepper",2,3),T.TgZ(7,"mat-step",4),T.YNc(8,ns,2,3,"ng-template",5),T.YNc(9,as,1,0,"mat-spinner",6),T.YNc(10,ls,26,22,"div",7),T.TgZ(11,"div",8),T.TgZ(12,"button",9),T.NdJ("click",function(){return e.onCancel()}),T._uU(13),T.ALo(14,"translate"),T.qZA(),T.TgZ(15,"button",10),T.NdJ("click",function(){return e.loadGroups()}),T._uU(16),T.ALo(17,"translate"),T.qZA(),T.qZA(),T.qZA(),T.TgZ(18,"mat-step"),T.YNc(19,us,2,3,"ng-template",5),T.YNc(20,cs,1,0,"mat-spinner",6),T.YNc(21,ds,2,8,"div",7),T.YNc(22,gs,3,3,"app-alert",11),T.TgZ(23,"div",8),T.TgZ(24,"button",12),T.NdJ("click",function(){return e.selectedGroups.clear()}),T._uU(25),T.ALo(26,"translate"),T.qZA(),T.TgZ(27,"button",10),T.NdJ("click",function(){return e.onFinish()}),T._uU(28),T.ALo(29,"translate"),T.qZA(),T.qZA(),T.qZA(),T.qZA(),T.qZA(),T.qZA()),2&t&&(T.Tol(e.theme),T.xp6(2),T.Oqu(T.lcZ(3,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),T.xp6(3),T.Q6J("linear",!0),T.xp6(4),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading),T.xp6(3),T.Oqu(T.lcZ(14,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")),T.xp6(2),T.Q6J("disabled",null===e.selectedResource||e.processing||e.loading),T.xp6(1),T.Oqu(T.lcZ(17,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CONTINUE")),T.xp6(4),T.Q6J("ngIf",e.processing),T.xp6(1),T.Q6J("ngIf",0!==e.groups.length&&!e.processing),T.xp6(1),T.Q6J("ngIf",0===e.groups.length&&!e.processing),T.xp6(3),T.hij(" ",T.lcZ(26,22,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK"),""),T.xp6(2),T.Q6J("disabled",0===e.selectedGroups.selected.length||e.processing),T.xp6(1),T.hij(" ",T.lcZ(29,24,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT"),""))},directives:[v.uh,v.xY,es.Vq,es.C0,es.VY,s.O5,v.H8,N.lW,es.Ic,es.fd,Z.$g,ye.KE,Ue.Nt,Le.Fj,is.ZL,Le.JJ,Le.oH,is.XC,s.sg,Me.gD,qe.ey,Nr.W,Ct.w],pipes:[O.X$,s.Ov],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),t}(),fs=o(88884);function ms(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"perun-web-apps-refresh-button",6),T.NdJ("refresh",function(){return T.CHM(i),T.oxw().refreshTable()}),T.qZA()}}function As(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",7),T.NdJ("click",function(){return T.CHM(i),T.oxw().addResource()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&t&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function Ts(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"perun-web-apps-immediate-filter",8),T.NdJ("filter",function(t){return T.CHM(i),T.oxw().applyFilter(t)}),T.qZA()}2&t&&T.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER")}function Is(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"perun-web-apps-resources-list",9),T.NdJ("page",function(t){return T.CHM(i),T.oxw().pageChanged(t)}),T.qZA()}if(2&t){var n=T.oxw();T.Q6J("pageSize",n.pageSize)("filterValue",n.filterValue)("displayedColumns",n.displayedColumns)("routingVo",!0)("disableRouting",!n.routeAuth)("resources",n.resources)}}function vs(t,e){1&t&&T._UZ(0,"mat-spinner",10)}var Es=function(){var t=function(){function t(e,i,n,o,r,s){a(this,t),this.dialog=e,this.tableConfigService=i,this.memberManager=n,this.resourceManager=o,this.route=r,this.authResolver=s,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=Ma.aL}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.memberManager.getMemberById(e.memberId).subscribe(function(e){t.member=e,t.refreshTable()})})}},{key:"addResource",value:function(){var t=this,e=(0,g.kZ)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(hs,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(function(e){t.resources=e,t.setAuthRights(),t.loading=!1})}},{key:"setAuthRights",value:function(){var t={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[t]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[t,this.resources[0]]))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(v.uw),T.Y36(Ma.dB),T.Y36(d.uq),T.Y36(d.xk),T.Y36(l.gz),T.Y36(h.x4))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-member-resources"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["class","mr-2",3,"placeholder","filter",4,"ngIf"],[3,"pageSize","filterValue","displayedColumns","routingVo","disableRouting","resources","page",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",3,"click"],[1,"mr-2",3,"placeholder","filter"],[3,"pageSize","filterValue","displayedColumns","routingVo","disableRouting","resources","page"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,ms,1,0,"perun-web-apps-refresh-button",1),T.YNc(5,As,3,3,"button",2),T.YNc(6,Ts,1,1,"perun-web-apps-immediate-filter",3),T.YNc(7,Is,1,6,"perun-web-apps-resources-list",4),T.qZA(),T.YNc(8,vs,1,0,"mat-spinner",5)),2&t&&(T.xp6(2),T.Oqu(T.lcZ(3,6,"MEMBER_DETAIL.RESOURCES.TITLE")),T.xp6(2),T.Q6J("ngIf",!e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading&&e.addAuth),T.xp6(1),T.Q6J("ngIf",!e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading),T.xp6(1),T.Q6J("ngIf",e.loading))},directives:[s.O5,Ua.t,N.lW,qa.L,fs.C,Z.$g],pipes:[O.X$],styles:[""]}),t}(),Zs=o(72920),bs=o(76527),_s=o(42473),Ss=o(77968),Ns=o(22927),Os=o(79472),xs=o(64359),Ls=o(75374),Cs=o(95142),Rs=o(48666);function Ds(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",7),T.NdJ("click",function(){return T.CHM(i),T.oxw().onAdd()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&t&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function ys(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"button",8),T.NdJ("click",function(){return T.CHM(i),T.oxw().onRemove()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&t){var n=T.oxw();T.Q6J("disabled",0===n.selection.selected.length),T.xp6(1),T.hij(" ",T.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function Ms(t,e){1&t&&T._UZ(0,"mat-spinner",9)}function Us(t,e){if(1&t){var i=T.EpF();T.TgZ(0,"app-ext-sources-list",10),T.NdJ("page",function(t){return T.CHM(i),T.oxw().pageChanged(t)}),T.qZA()}if(2&t){var n=T.oxw();T.Q6J("pageSize",n.pageSize)("extSources",n.extSources)("displayedColumns",n.displayedColumns)("filterValue",n.filterValue)("selection",n.selection)}}var qs=function(){var t=function(){function t(e,i,n,o,r,s,l,u){var c=this;a(this,t),this.extSourceService=e,this.route=i,this.dialog=n,this.notificator=o,this.tableConfigService=r,this.translate=s,this.authResolver=l,this.groupService=u,this.extSources=[],this.selection=new ba.Ov(!0,[]),this.filterValue="",this.tableId=Ma.S7,this.displayedColumns=[],this.translate.get("GROUP_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(function(t){return c.successMessage=t})}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(function(e){t.voId=e.voId,t.groupId=e.groupId,t.groupService.getGroupById(t.groupId).subscribe(function(e){t.group=e,t.refreshTable()})})}},{key:"setAuthRights",value:function(){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"]}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.extSourceService.getGroupExtSources(this.groupId).subscribe(function(e){t.extSources=e,t.selection.clear(),t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"onAdd",value:function(){var t=this,e=(0,g.kZ)();e.width="1000px",e.data={voId:this.voId,groupId:this.groupId,extSources:this.extSources,theme:"group-theme"},this.dialog.open(pr,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"onRemove",value:function(){var t=this,e=(0,g.kZ)();e.width="600px",e.data={voId:this.voId,groupId:this.groupId,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(vr,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(d.KG),T.Y36(l.gz),T.Y36(v.uw),T.Y36(h.V6),T.Y36(Ma.dB),T.Y36(O.sK),T.Y36(h.x4),T.Y36(d.ff))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","extSources","displayedColumns","filterValue","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","extSources","displayedColumns","filterValue","selection","page"]],template:function(t,e){1&t&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"perun-web-apps-refresh-button",1),T.NdJ("refresh",function(){return e.refreshTable()}),T.qZA(),T.YNc(5,Ds,3,3,"button",2),T.YNc(6,ys,3,4,"button",3),T.TgZ(7,"perun-web-apps-immediate-filter",4),T.NdJ("filter",function(t){return e.applyFilter(t)}),T.qZA(),T.YNc(8,Ms,1,0,"mat-spinner",5),T.YNc(9,Us,1,5,"app-ext-sources-list",6),T.qZA()),2&t&&(T.xp6(2),T.Oqu(T.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),T.xp6(3),T.Q6J("ngIf",e.addAuth),T.xp6(1),T.Q6J("ngIf",e.removeAuth),T.xp6(1),T.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),T.xp6(1),T.Q6J("ngIf",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading))},directives:[Ua.t,s.O5,qa.L,N.lW,Z.$g,lr.D],pipes:[O.X$],styles:[""]}),t}();function Ps(t,e){1&t&&T._UZ(0,"th",9)}function ws(t,e){if(1&t&&(T.TgZ(0,"td",10),T._uU(1),T.qZA()),2&t){var i=e.$implicit;T.xp6(1),T.hij(" ",i,": ")}}function Gs(t,e){1&t&&T._UZ(0,"th",9)}function ks(t,e){if(1&t&&(T.TgZ(0,"td",11),T._uU(1),T.qZA()),2&t){var i=e.$implicit,n=T.oxw();T.xp6(1),T.hij(" ",n.statistics.get(i.toLowerCase())," ")}}function Ys(t,e){1&t&&T._UZ(0,"tr",12)}var Js=function(){var t=function(){function t(){a(this,t),this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}return r(t,[{key:"ngOnInit",value:function(){this.dataSource=new ut.by(this.rowNames)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=T.Xpm({type:t,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(t,e){1&t&&(T.TgZ(0,"mat-card",0),T.TgZ(1,"mat-card-header"),T.TgZ(2,"mat-card-title"),T.TgZ(3,"h1",1),T._uU(4),T.ALo(5,"translate"),T.qZA(),T.qZA(),T.qZA(),T.TgZ(6,"mat-card-content"),T.TgZ(7,"table",2),T.ynx(8,3),T.YNc(9,Ps,1,0,"th",4),T.YNc(10,ws,2,1,"td",5),T.BQk(),T.ynx(11,6),T.YNc(12,Gs,1,0,"th",4),T.YNc(13,ks,2,1,"td",7),T.BQk(),T.YNc(14,Ys,1,0,"tr",8),T.qZA(),T.qZA(),T.qZA()),2&t&&(T.xp6(4),T.Oqu(T.lcZ(5,3,e.title)),T.xp6(3),T.Q6J("dataSource",e.dataSource),T.xp6(7),T.Q6J("matRowDefColumns",e.displayedColumns))},directives:[dt.a8,dt.dk,dt.n5,dt.dn,ut.BZ,ut.w1,ut.fO,ut.Dz,ut.nj,ut.ge,ut.ev,ut.Gk],pipes:[O.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0;display:inline-block;vertical-align:top}"]}),t}();function Vs(t,e){1&t&&T._UZ(0,"mat-spinner",3)}function Fs(t,e){if(1&t&&(T.TgZ(0,"div"),T._UZ(1,"app-statistics-card",4),T.qZA()),2&t){var i=T.oxw();T.xp6(1),T.Q6J("rowNames",i.rowNames)("statistics",i.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}var Qs=function(){var t=function(){function t(e,i){a(this,t),this.voService=e,this.route=i,this.loading=!1,this.dataSource=new ut.by,this.displayedColumns=["status","count"],this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]])}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.params.subscribe(function(e){t.voId=e.voId,t.dataSource=new ut.by(t.rowNames),t.voService.getVoMembersCountsByStatus(t.voId).subscribe(function(e){t.allMembersCount=0;for(var i=0,n=Object.keys(e);i_policy",[{id:this.voId,beanName:"Vo"}])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(T.Y36(Ma.dB),T.Y36(d.tk),T.Y36(h.x4),T.Y36(v.uw),T.Y36(l.gz))},t.\u0275cmp=T.Xpm({type:t,selectors:[["app-application-form-manage-groups"]],viewQuery:function(t,e){var i;(1&t&&T.Gf(tl,5),2&t)&&(T.iGM(i=T.CRH())&&(e.list=i.first))},decls:17,vars:22,consts:[[1,"page-subtitle"],[3,"alert_type"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"selection","pageSize","displayedColumns","disableRouting","filter","authType","groups","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"selection","pageSize","displayedColumns","disableRouting","filter","authType","groups","page"],["list",""]],template:function(t,e){1&t&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"app-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 e.loadGroups()}),T.qZA(),T.YNc(8,el,3,3,"button",3),T.TgZ(9,"span",4),T.ALo(10,"translate"),T.TgZ(11,"button",5),T.NdJ("click",function(){return e.removeGroup()}),T._uU(12),T.ALo(13,"translate"),T.qZA(),T.qZA(),T.TgZ(14,"perun-web-apps-immediate-filter",6),T.NdJ("filter",function(t){return e.filterValue=t}),T.qZA(),T.YNc(15,il,1,0,"mat-spinner",7),T.YNc(16,al,2,8,"perun-web-apps-groups-list",8)),2&t&&(T.xp6(1),T.AsE(" ",T.lcZ(2,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",T.lcZ(3,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),T.xp6(3),T.Q6J("alert_type","info"),T.xp6(1),T.hij(" ",T.lcZ(6,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),T.xp6(3),T.Q6J("ngIf",e.addAuth),T.xp6(1),T.s9C("matTooltip",T.lcZ(10,18,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),T.Q6J("matTooltipDisabled",void 0===e.list||void 0!==e.list&&e.list.removeAuth),T.xp6(2),T.Q6J("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),T.xp6(1),T.hij(" ",T.lcZ(13,20,"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",e.loading),T.xp6(1),T.Q6J("ngIf",!e.loading))},directives:[Ct.w,Ua.t,s.O5,_.gM,N.lW,qa.L,Z.$g,Nr.W],pipes:[O.X$],styles:[""]}),t}(),sl=o(53134),ll=[{path:"",component:u.Y},{path:":voId",component:lt,children:[{path:"",component:W,data:{animation:"VoOverviewPage"}},{path:"attributes",component:_e,data:{animation:"VoAttributesPage"}},{path:"groups",component:K.G,data:{animation:"VoGroupsPage"}},{path:"members",component:tt.y,data:{animation:"VoMembersPage"}},{path:"resources",component:ve,children:[{path:"",component:va,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:Ea.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:Za.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Ja,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:Ee.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:Fi,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:Rs.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"statistics",component:Qs,data:{animation:"VoStatisticsPage"}},{path:"settings",component:Ze,children:[{path:"",component:Oe,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:We,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:ii,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:un.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:oa,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:rl},{path:"notifications",component:Xo,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:Sr,data:{animation:"VoSettingsExtSourcesPage"}}]}]},{path:":voId/members/:memberId",component:j,children:[{path:"",component:de,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:Ia,data:{animation:"MemberAttributesPage"}},{path:"groups",component:ge.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:Wr,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:Fi,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:Es,data:{animation:"MemberResourcesPage"}}]},{path:":voId/groups/:groupId",component:k,children:[{path:"",component:Te,data:{animation:"GroupOverviewPage"}},{path:"members",component:Qi.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:Ie.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:Ke.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:zi.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:on,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:js,data:{animation:"GroupStatisticsPage"}},{path:"settings",component:Bi,children:[{path:"",component:ln,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:Fa,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:za,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:$o.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:oa},{path:"notifications",component:sr,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:Vr,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:qs,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:Fi,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:Zs.b,children:[{path:"",component:bs.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:_s.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:Ls.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:Os.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:Cs.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:sl.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:Ss.t,children:[{path:"",component:Ns.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:xs.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}],ul=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=T.oAB({type:t}),t.\u0275inj=T.cJS({imports:[[l.Bz.forChild(ll)],l.Bz]}),t}(),cl=o(28780),pl=o(22727),dl=o(22280),gl=((ol=function t(){a(this,t)}).\u0275fac=function(t){return new(t||ol)},ol.\u0275mod=T.oAB({type:ol}),ol.\u0275inj=T.cJS({imports:[[s.ez,ul,cl.m,pl.r,wr.ez,dl.d4,g.Je]]}),ol)}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/579-es2015.1addc672c03e39557987.js b/dist/apps/admin-gui/579-es2015.a7ecabb9fc862945e886.js similarity index 99% rename from dist/apps/admin-gui/579-es2015.1addc672c03e39557987.js rename to dist/apps/admin-gui/579-es2015.a7ecabb9fc862945e886.js index f3e3125b0..d4bfb4635 100644 --- a/dist/apps/admin-gui/579-es2015.1addc672c03e39557987.js +++ b/dist/apps/admin-gui/579-es2015.a7ecabb9fc862945e886.js @@ -1 +1 @@ -(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[579],{21575:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(17),n=i(31572),a=i(57629);let r=(()=>{class t{constructor(){}prepareRoute(t){return t&&t.activatedRouteData&&t.activatedRouteData.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-animated-router-outlet"]],decls:3,vars:0,consts:[["outlet","outlet"]],template:function(t,e){1&t&&(n.TgZ(0,"div"),n._UZ(1,"router-outlet",null,0),n.qZA())},directives:[a.lC],styles:[""],data:{animation:[s.Ji]}}),t})()},40695:function(t,e,i){"use strict";i.d(e,{n:function(){return S}});var s=i(84608),n=i(4230),a=i(88426),r=i(33642),c=i(60611),o=(i(41939),i(31572)),l=i(48160),u=i(19139),d=i(61511),h=i(15980),b=i(39571),p=i(67806),g=i(41186);const f=["list"];function E(t,e){1&t&&(o.TgZ(0,"app-alert",10),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE.ERROR_EMPTY_VALUE")," "))}function m(t,e){1&t&&o._UZ(0,"mat-spinner",11)}function y(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"perun-web-apps-attributes-list",12,13),o.NdJ("page",function(e){return o.CHM(t),o.oxw().pageChanged(e)}),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("attributes",t.attributes)("filterValue",t.filterValue)("inDialog",!0)("pageSize",t.pageSize)("selection",t.selected)}}let S=(()=>{class t{constructor(t,e,i,s,a,r){this.dialogRef=t,this.data=e,this.attributesManager=i,this.notificator=s,this.tableConfigService=a,this.translate=r,this.selected=new n.Ov(!0,[]),this.showError=!1,this.filterValue="",this.tableId=c.rF,this.translate.get("DIALOGS.CREATE_ATTRIBUTE.SUCCESS_SAVE").subscribe(t=>this.saveSuccessMessage=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId);const t=new Array;let e,i,s,n,a,r,c,o;switch(this.data.notEmptyAttributes.forEach(e=>{t.push(e.id)}),this.data.entity){case"member":e=this.data.entityId;break;case"user":i=this.data.entityId;break;case"vo":s=this.data.entityId;break;case"group":n=this.data.entityId;break;case"resource":a=this.data.entityId;break;case"facility":r=this.data.entityId;break;case"host":c=this.data.entityId;break;case"ues":o=this.data.entityId}switch(this.data.secondEntity){case"member":e=this.data.secondEntityId;break;case"user":i=this.data.secondEntityId;break;case"vo":s=this.data.secondEntityId;break;case"group":n=this.data.secondEntityId;break;case"resource":a=this.data.secondEntityId;break;case"facility":r=this.data.secondEntityId;break;case"host":c=this.data.secondEntityId;break;case"ues":o=this.data.secondEntityId}this.loading=!0,this.attributesManager.getAttributesDefinitionWithRights(e,i,s,n,a,r,c,o).subscribe(e=>{this.attributes=e,this.attributes=this.attributes.filter(e=>!t.includes(e.id)&&this.twoEntityValid(e)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSave(){this.list.updateMapAttributes();let t=!1;for(const e of this.selected.selected)"java.util.ArrayList"===e.type&&0===e.value.length&&(t=!0),void 0===e.value&&(t=!0);if(t)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":switch(this.data.secondEntity){case"resource":this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default: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":switch(this.data.secondEntity){case"facility":this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default: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()})}}applyFilter(t){this.filterValue=t}handleSuccess(){this.notificator.showSuccess(this.saveSuccessMessage),this.selected.clear(),this.dialogRef.close("saved")}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}twoEntityValid(t){return!this.data.secondEntity||t.entity===`${this.data.entity}_${this.data.secondEntity}`}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(s.so),o.Y36(s.WI),o.Y36(r.H8),o.Y36(a.V6),o.Y36(c.dB),o.Y36(l.sK))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-create-attribute-dialog"]],viewQuery:function(t,e){if(1&t&&o.Gf(f,5),2&t){let t;o.iGM(t=o.CRH())&&(e.list=t.first)}},decls:17,vars:17,consts:[["mat-dialog-title",""],[1,"page-subtitle"],[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,"attributes","filterValue","inDialog","pageSize","selection","page",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","error",1,"ml-3","font-size-1rem"],[1,"ml-auto","mr-auto"],[3,"attributes","filterValue","inDialog","pageSize","selection","page"],["list",""]],template:function(t,e){1&t&&(o.TgZ(0,"div"),o.TgZ(1,"div",0),o.TgZ(2,"h1",1),o._uU(3),o.ALo(4,"translate"),o.qZA(),o.TgZ(5,"perun-web-apps-immediate-filter",2),o.NdJ("filter",function(t){return e.applyFilter(t)}),o.qZA(),o.YNc(6,E,3,3,"app-alert",3),o.qZA(),o.TgZ(7,"div",4),o.YNc(8,m,1,0,"mat-spinner",5),o.YNc(9,y,2,5,"perun-web-apps-attributes-list",6),o.qZA(),o.TgZ(10,"div",7),o.TgZ(11,"button",8),o.NdJ("click",function(){return e.onCancel()}),o._uU(12),o.ALo(13,"translate"),o.qZA(),o.TgZ(14,"button",9),o.NdJ("click",function(){return e.onSave()}),o._uU(15),o.ALo(16,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.Tol(e.data.style),o.xp6(3),o.Oqu(o.lcZ(4,11,"DIALOGS.CREATE_ATTRIBUTE.SET_NEW")),o.xp6(2),o.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),o.xp6(1),o.Q6J("ngIf",e.showError),o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",void 0!==e.attributes&&!e.loading),o.xp6(3),o.hij(" ",o.lcZ(13,13,"DIALOGS.CREATE_ATTRIBUTE.CANCEL")," "),o.xp6(2),o.Q6J("disabled",0===e.selected.selected.length),o.xp6(1),o.hij(" ",o.lcZ(16,15,"DIALOGS.CREATE_ATTRIBUTE.SAVE")," "))},directives:[s.uh,u.L,d.O5,s.xY,s.H8,h.lW,b.w,p.$g,g.p],pipes:[l.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),t})()},13572:function(t,e,i){"use strict";i.d(e,{k:function(){return m}});var s=i(84608),n=i(67033),a=i(88426),r=i(33642),c=i(31572),o=i(48160),l=i(61511),u=i(15980),d=i(67806);function h(t,e){1&t&&c._UZ(0,"mat-spinner",6)}function b(t,e){1&t&&c._UZ(0,"th",15)}function p(t,e){if(1&t&&(c.TgZ(0,"td",16),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.hij(" ",t.displayName," ")}}function g(t,e){1&t&&c._UZ(0,"tr",17)}function f(t,e){1&t&&c._UZ(0,"tr",18)}function E(t,e){if(1&t&&(c.TgZ(0,"div",7),c.TgZ(1,"div"),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",8),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"table",9),c.ynx(8,10),c.YNc(9,b,1,0,"th",11),c.YNc(10,p,2,1,"td",12),c.BQk(),c.YNc(11,g,1,0,"tr",13),c.YNc(12,f,1,0,"tr",14),c.qZA(),c.qZA()),2&t){const t=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,5,"DIALOGS.DELETE_ATTRIBUTES.DESCRIPTION")," "),c.xp6(3),c.hij(" ",c.lcZ(6,7,"DIALOGS.DELETE_ATTRIBUTES.ASK")," "),c.xp6(2),c.Q6J("dataSource",t.dataSource),c.xp6(4),c.Q6J("matHeaderRowDef",t.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",t.displayedColumns)}}let m=(()=>{class t{constructor(t,e,i,s,n){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=s,this.attributesManager=n,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.dataSource=new n.by(this.data.attributes),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){const t=[];for(const i of this.data.attributes)t.push(i.id);const e={};switch(e[this.data.entity]=this.data.entityId,e.attributes=t,void 0!==this.data.secondEntity&&(e[this.data.secondEntity]=this.data.secondEntityId),this.loading=!0,this.data.entity){case"vo":this.attributesManager.removeVoAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.removeGroupResourceAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeGroupAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.removeUserFacilityAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeUserAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.removeMemberResourceAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":this.attributesManager.removeMemberGroupAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeMemberAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"facility":this.attributesManager.removeFacilityAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"host":this.attributesManager.removeHostAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"ues":this.attributesManager.removeUesAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()});break;case"resource":this.attributesManager.removeResourceAttributes(this.data.entityId,t).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.DELETE_ATTRIBUTES.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(s.so),c.Y36(s.WI),c.Y36(a.V6),c.Y36(o.sK),c.Y36(r.H8))},t.\u0275cmp=c.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,h,1,0,"mat-spinner",1),c.YNc(5,E,13,9,"div",2),c.TgZ(6,"div",3),c.TgZ(7,"button",4),c.NdJ("click",function(){return e.onCancel()}),c._uU(8),c.ALo(9,"translate"),c.qZA(),c.TgZ(10,"button",5),c.NdJ("click",function(){return e.onSubmit()}),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.qZA(),c.qZA()),2&t&&(c.Tol(e.theme),c.xp6(2),c.Oqu(c.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTES.TITLE")),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(3),c.hij(" ",c.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTES.CANCEL")," "),c.xp6(2),c.Q6J("disabled",e.loading),c.xp6(1),c.hij(" ",c.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTES.DELETE")," "))},directives:[s.uh,l.O5,s.H8,u.lW,d.$g,s.xY,n.BZ,n.w1,n.fO,n.Dz,n.as,n.nj,n.ge,n.ev,n.XQ,n.Gk],pipes:[o.X$],styles:[""]}),t})()},541:function(t,e,i){"use strict";i.d(e,{t:function(){return A}});var s=i(33642),n=i(4230),a=i(27613),r=i(40695),c=i(81954),o=i(13572),l=(i(41939),i(60611)),u=i(31572),d=i(84608),h=i(59403),b=i(15980),p=i(19139),g=i(61511),f=i(67806),E=i(41186),m=i(48160);const y=["list"];function S(t,e){1&t&&u._UZ(0,"mat-spinner",7)}function I(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-attributes-list",8,9),u.NdJ("page",function(e){return u.CHM(t),u.oxw().pageChanged(e)}),u.qZA()}if(2&t){const t=u.oxw();u.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("attributes",t.attributes)("selection",t.selection)}}let A=(()=>{class t{constructor(t,e,i){this.attributesManagerService=t,this.tableConfigService=e,this.dialog=i,this.attributes=[],this.selection=new n.Ov(!0,[]),this.filterValue="",this.tableId=l.rF,this.loading=!1}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}refreshTable(){switch(this.loading=!0,this.entity){case"member":this.attributesManagerService.getMemberAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"group":this.attributesManagerService.getGroupAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"user":this.attributesManagerService.getUserAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"resource":this.attributesManagerService.getResourceAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"facility":this.attributesManagerService.getFacilityAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"vo":this.attributesManagerService.getVoAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1})}}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}onCreate(){const t=(0,a.kZ)();t.width="1050px",t.data={entityId:this.entityId,entity:this.entity,notEmptyAttributes:this.attributes,style:this.entity+"-theme"},this.dialog.open(r.n,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const t=(0,a.kZ)();t.width="450px",t.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(c.wA,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onDelete(){const t=(0,a.kZ)();t.width="450px",t.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(o.k,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.H8),u.Y36(l.dB),u.Y36(d.uw))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-one-entity-attribute-page"]],viewQuery:function(t,e){if(1&t&&u.Gf(y,5),2&t){let t;u.iGM(t=u.CRH())&&(e.list=t.first)}},inputs:{entity:"entity",entityId:"entityId"},decls:13,vars:14,consts:[[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","attributes","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","attributes","selection","page"],["list",""]],template:function(t,e){1&t&&(u.TgZ(0,"perun-web-apps-refresh-button",0),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.TgZ(1,"button",1),u.NdJ("click",function(){return e.onCreate()}),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"button",2),u.NdJ("click",function(){return e.onSave()}),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"button",3),u.NdJ("click",function(){return e.onDelete()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"perun-web-apps-immediate-filter",4),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(11,S,1,0,"mat-spinner",5),u.YNc(12,I,2,4,"perun-web-apps-attributes-list",6)),2&t&&(u.xp6(2),u.hij(" ",u.lcZ(3,8,"USER_DETAIL.SETTINGS.ATTRIBUTES.CREATE"),"\n"),u.xp6(2),u.Q6J("disabled",0===e.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(6,10,"USER_DETAIL.SETTINGS.ATTRIBUTES.SAVE"),"\n"),u.xp6(2),u.Q6J("disabled",0===e.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(9,12,"USER_DETAIL.SETTINGS.ATTRIBUTES.DELETE"),"\n"),u.xp6(2),u.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[h.t,b.lW,p.L,g.O5,f.$g,E.p],pipes:[m.X$],styles:[""]}),t})()},69012:function(t,e,i){"use strict";i.d(e,{Y:function(){return O}});var s=i(33642),n=(i(41939),i(4230)),a=i(13572),r=i(27613),c=i(81954),o=i(40695),l=i(67004),u=i(31572),d=i(84608),h=i(61511),b=i(67806),p=i(39571),g=i(59403),f=i(15980),E=i(37665),m=i(44973),y=i(48160);let S=(()=>{class t{constructor(){this.resourceSelected=new u.vpe,this.nameFunction=t=>t.name}ngOnInit(){this.resources=this.resources.sort(r.aC)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u.Xpm({type:t,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resources:"resources"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(u.TgZ(0,"perun-web-apps-entity-search-select",0),u.NdJ("entitySelected",function(t){return e.resourceSelected.emit(t)}),u.ALo(1,"translate"),u.ALo(2,"translate"),u.ALo(3,"translate"),u.qZA()),2&t&&u.Q6J("entities",e.resources)("searchFunction",e.nameFunction)("mainTextFunction",e.nameFunction)("selectPlaceholder",u.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",u.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",u.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},directives:[m.i],pipes:[y.X$],styles:[""]}),t})(),I=(()=>{class t{constructor(){this.memberSelected=new u.vpe,this.memberFullNameFunction=t=>(0,r.bD)(t.user)}ngOnInit(){this.members=this.members.sort(r.fx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u.Xpm({type:t,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(t,e){1&t&&(u.TgZ(0,"perun-web-apps-entity-search-select",0),u.NdJ("entitySelected",function(t){return e.memberSelected.emit(t)}),u.ALo(1,"translate"),u.ALo(2,"translate"),u.ALo(3,"translate"),u.qZA()),2&t&&u.Q6J("entities",e.members)("searchFunction",e.memberFullNameFunction)("mainTextFunction",e.memberFullNameFunction)("selectPlaceholder",u.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",u.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",u.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},directives:[m.i],pipes:[y.X$],styles:[""]}),t})(),A=(()=>{class t{constructor(){this.facilitySelected=new u.vpe,this.nameFunction=t=>t.name}ngOnInit(){this.facilities=this.facilities.sort(r.aC)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u.Xpm({type:t,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(t,e){1&t&&(u.TgZ(0,"perun-web-apps-entity-search-select",0),u.NdJ("entitySelected",function(t){return e.facilitySelected.emit(t)}),u.ALo(1,"translate"),u.ALo(2,"translate"),u.ALo(3,"translate"),u.qZA()),2&t&&u.Q6J("entities",e.facilities)("searchFunction",e.nameFunction)("mainTextFunction",e.nameFunction)("selectPlaceholder",u.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",u.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",u.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},directives:[m.i],pipes:[y.X$],styles:[""]}),t})();var T=i(7927),w=i(41186);const M=["list"];function Z(t,e){1&t&&u._UZ(0,"mat-spinner",4)}function v(t,e){if(1&t&&(u.TgZ(0,"app-alert",5),u._uU(1),u.qZA()),2&t){const t=u.oxw();u.xp6(1),u.Oqu(t.noEntityMessage)}}function C(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-group-search-select",17),u.NdJ("groupSelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("groups",t.entityValues)}}function R(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-resource-search-select",18),u.NdJ("resourceSelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("resources",t.entityValues)}}function x(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-member-search-select",19),u.NdJ("memberSelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("members",t.entityValues)}}function _(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-facility-search-select",20),u.NdJ("facilitySelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("facilities",t.entityValues)}}function L(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-user-search-select",21),u.NdJ("userSelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("users",t.entityValues)}}function N(t,e){1&t&&u._UZ(0,"mat-spinner",4)}function k(t,e){if(1&t&&u._UZ(0,"perun-web-apps-attributes-list",22,23),2&t){const t=u.oxw(2);u.Q6J("attributes",t.attributes)("selection",t.selection)}}function U(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"div",6),u.YNc(2,C,1,1,"perun-web-apps-group-search-select",7),u.YNc(3,R,1,1,"perun-web-apps-resource-search-select",8),u.YNc(4,x,1,1,"perun-web-apps-member-search-select",9),u.YNc(5,_,1,1,"perun-web-apps-facility-search-select",10),u.YNc(6,L,1,1,"perun-web-apps-user-search-select",11),u.qZA(),u.TgZ(7,"perun-web-apps-refresh-button",12),u.NdJ("refresh",function(){u.CHM(t);const e=u.oxw();return e.getAttributes(e.specificSecondEntity.id)}),u.qZA(),u.TgZ(8,"button",13),u.NdJ("click",function(){u.CHM(t);const e=u.oxw();return e.onAdd(e.specificSecondEntity.id)}),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.TgZ(11,"button",14),u.NdJ("click",function(){u.CHM(t);const e=u.oxw();return e.onSave(e.specificSecondEntity.id)}),u._uU(12),u.ALo(13,"translate"),u.qZA(),u.TgZ(14,"button",15),u.NdJ("click",function(){u.CHM(t);const e=u.oxw();return e.onDelete(e.specificSecondEntity.id)}),u._uU(15),u.ALo(16,"translate"),u.qZA(),u.YNc(17,N,1,0,"mat-spinner",1),u.YNc(18,k,2,2,"perun-web-apps-attributes-list",16),u.qZA()}if(2&t){const t=u.oxw();u.xp6(2),u.Q6J("ngIf","group"===t.secondEntity),u.xp6(1),u.Q6J("ngIf","resource"===t.secondEntity),u.xp6(1),u.Q6J("ngIf","member"===t.secondEntity),u.xp6(1),u.Q6J("ngIf","facility"===t.secondEntity),u.xp6(1),u.Q6J("ngIf","user"===t.secondEntity),u.xp6(3),u.hij(" ",u.lcZ(10,12,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(13,14,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(16,16,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),u.xp6(2),u.Q6J("ngIf",t.innerLoading),u.xp6(1),u.Q6J("ngIf",!t.innerLoading)}}let O=(()=>{class t{constructor(t,e,i,s,a,r){this.attributesManagerService=t,this.resourcesManagerService=e,this.facilitiesManagerService=i,this.groupsManagerService=s,this.membersManager=a,this.dialog=r,this.entityValues=[],this.attributes=[],this.selection=new n.Ov(!0,[]),this.allowedStatuses=["INVALID","VALID"],this.loading=!1,this.innerLoading=!1}ngOnInit(){this.loadEntityValues(),this.setMessages(this.secondEntity.toLowerCase())}loadEntityValues(){switch(this.loading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.resourcesManagerService.getAllowedResources(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1});break;case"group":this.groupsManagerService.getMemberGroups(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.resourcesManagerService.getAssignedResourcesWithGroup(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1});break;case"member":this.membersManager.getCompleteRichMembersForGroup(this.firstEntityId,!1,this.allowedStatuses,null,[l.r.MEMBER_CORE_ID]).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}break;case"user":this.facilitiesManagerService.getAssignedFacilitiesByUser(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1});break;case"resource":switch(this.secondEntity){case"member":this.resourcesManagerService.getAssignedRichMembers(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1});break;case"group":this.resourcesManagerService.getAssignedGroups(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}break;case"facility":this.facilitiesManagerService.getAssignedUsers(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}}preselectEntity(){0!==this.entityValues.length&&this.specifySecondEntity(this.entityValues[0])}getAttributes(t){switch(this.innerLoading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.attributesManagerService.getMemberResourceAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"group":this.attributesManagerService.getMemberGroupAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.attributesManagerService.getGroupResourceAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"member":this.attributesManagerService.getMemberGroupAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}break;case"user":this.attributesManagerService.getUserFacilityAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"resource":switch(this.secondEntity){case"member":this.attributesManagerService.getMemberResourceAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"group":this.attributesManagerService.getGroupResourceAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}break;case"facility":this.attributesManagerService.getUserFacilityAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}}setMessages(t){this.noEntityMessage=`No ${t} assigned`}onSave(t){this.list.updateMapAttributes();const e=(0,r.kZ)();e.width="450px",e.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:t,attributes:this.selection.selected},this.dialog.open(c.wA,e).afterClosed().subscribe(e=>{e&&(this.selection.clear(),this.getAttributes(t))})}onDelete(t){const e=(0,r.kZ)();e.width="450px",e.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:t,attributes:this.selection.selected,theme:`${this.firstEntity}-theme`},this.dialog.open(a.k,e).afterClosed().subscribe(e=>{e&&(this.selection.clear(),this.getAttributes(t))})}onAdd(t){const e=(0,r.kZ)();e.width="1050px",e.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:t,notEmptyAttributes:this.attributes,style:`${this.firstEntity}-theme`},this.dialog.open(o.n,e).afterClosed().subscribe(e=>{e&&(this.selection.clear(),this.getAttributes(t))})}specifySecondEntity(t){t&&(this.specificSecondEntity=t,this.getAttributes(this.specificSecondEntity.id))}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.H8),u.Y36(s.xk),u.Y36(s.IQ),u.Y36(s.ff),u.Y36(s.uq),u.Y36(d.uw))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-two-entity-attribute-page"]],viewQuery:function(t,e){if(1&t&&u.Gf(M,5),2&t){let t;u.iGM(t=u.CRH())&&(e.list=t.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,"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"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"attributes","selection",4,"ngIf"],[3,"groups","groupSelected"],[3,"resources","resourceSelected"],[3,"members","memberSelected"],[3,"facilities","facilitySelected"],[3,"users","userSelected"],[3,"attributes","selection"],["list",""]],template:function(t,e){1&t&&(u.TgZ(0,"div",0),u.YNc(1,Z,1,0,"mat-spinner",1),u.YNc(2,v,2,1,"app-alert",2),u.YNc(3,U,19,18,"div",3),u.qZA()),2&t&&(u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",0===e.entityValues.length&&!e.loading),u.xp6(1),u.Q6J("ngIf",0!==e.entityValues.length))},directives:[h.O5,b.$g,p.w,g.t,f.lW,E.h,S,I,A,T.S,w.p],pipes:[y.X$],styles:[".w-35[_ngcontent-%COMP%]{width:35%}"]}),t})()},8557:function(t,e,i){"use strict";i.d(e,{L:function(){return h}});var s=i(31572),n=i(84608),a=i(57629),r=i(61511),c=i(71522),o=i(43691),l=i(48160);function u(t,e){if(1&t&&(s.TgZ(0,"div",3),s.TgZ(1,"a",4),s._UZ(2,"mat-icon",5),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Gre("",t.style," item-itself"),s.Q6J("routerLink",t.url),s.xp6(1),s.Q6J("svgIcon",t.cssIcon),s.xp6(1),s.hij(" ",s.lcZ(4,6,t.label)," ")}}function d(t,e){if(1&t&&(s.TgZ(0,"div",1),s.YNc(1,u,5,8,"div",2),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.items)}}let h=(()=>{class t{constructor(t,e){this.dialog=t,this.route=e,this.size="large"}ngOnInit(){this.route.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.uw),s.Y36(a.gz))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&s.YNc(0,d,2,1,"div",0),2&t&&s.Q6J("ngIf","small"===e.size)},directives:[r.O5,r.sg,c.wG,a.yS,o.Hw],pipes:[l.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}.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}}"]}),t})()}}]); \ No newline at end of file +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[579],{21575:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(17),n=i(31572),a=i(57629);let r=(()=>{class t{constructor(){}prepareRoute(t){return t&&t.activatedRouteData&&t.activatedRouteData.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-animated-router-outlet"]],decls:3,vars:0,consts:[["outlet","outlet"]],template:function(t,e){1&t&&(n.TgZ(0,"div"),n._UZ(1,"router-outlet",null,0),n.qZA())},directives:[a.lC],styles:[""],data:{animation:[s.Ji]}}),t})()},40695:function(t,e,i){"use strict";i.d(e,{n:function(){return S}});var s=i(84608),n=i(4230),a=i(88426),r=i(33642),c=i(60611),o=(i(41939),i(31572)),l=i(48160),u=i(19139),d=i(61511),h=i(15980),b=i(39571),p=i(67806),g=i(41186);const f=["list"];function E(t,e){1&t&&(o.TgZ(0,"app-alert",10),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE.ERROR_EMPTY_VALUE")," "))}function m(t,e){1&t&&o._UZ(0,"mat-spinner",11)}function y(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"perun-web-apps-attributes-list",12,13),o.NdJ("page",function(e){return o.CHM(t),o.oxw().pageChanged(e)}),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("attributes",t.attributes)("filterValue",t.filterValue)("inDialog",!0)("pageSize",t.pageSize)("selection",t.selected)}}let S=(()=>{class t{constructor(t,e,i,s,a,r){this.dialogRef=t,this.data=e,this.attributesManager=i,this.notificator=s,this.tableConfigService=a,this.translate=r,this.selected=new n.Ov(!0,[]),this.showError=!1,this.filterValue="",this.tableId=c.rF,this.translate.get("DIALOGS.CREATE_ATTRIBUTE.SUCCESS_SAVE").subscribe(t=>this.saveSuccessMessage=t)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId);const t=new Array;let e,i,s,n,a,r,c,o;switch(this.data.notEmptyAttributes.forEach(e=>{t.push(e.id)}),this.data.entity){case"member":e=this.data.entityId;break;case"user":i=this.data.entityId;break;case"vo":s=this.data.entityId;break;case"group":n=this.data.entityId;break;case"resource":a=this.data.entityId;break;case"facility":r=this.data.entityId;break;case"host":c=this.data.entityId;break;case"ues":o=this.data.entityId}switch(this.data.secondEntity){case"member":e=this.data.secondEntityId;break;case"user":i=this.data.secondEntityId;break;case"vo":s=this.data.secondEntityId;break;case"group":n=this.data.secondEntityId;break;case"resource":a=this.data.secondEntityId;break;case"facility":r=this.data.secondEntityId;break;case"host":c=this.data.secondEntityId;break;case"ues":o=this.data.secondEntityId}this.loading=!0,this.attributesManager.getAttributesDefinitionWithRights(e,i,s,n,a,r,c,o).subscribe(e=>{this.attributes=e,this.attributes=this.attributes.filter(e=>!t.includes(e.id)&&this.twoEntityValid(e)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSave(){this.list.updateMapAttributes();let t=!1;for(const e of this.selected.selected)"java.util.ArrayList"===e.type&&0===e.value.length&&(t=!0),void 0===e.value&&(t=!0);if(t)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":switch(this.data.secondEntity){case"resource":this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default: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":switch(this.data.secondEntity){case"facility":this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default: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()})}}applyFilter(t){this.filterValue=t}handleSuccess(){this.notificator.showSuccess(this.saveSuccessMessage),this.selected.clear(),this.dialogRef.close("saved")}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}twoEntityValid(t){return!this.data.secondEntity||t.entity===`${this.data.entity}_${this.data.secondEntity}`}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(s.so),o.Y36(s.WI),o.Y36(r.H8),o.Y36(a.V6),o.Y36(c.dB),o.Y36(l.sK))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-create-attribute-dialog"]],viewQuery:function(t,e){if(1&t&&o.Gf(f,5),2&t){let t;o.iGM(t=o.CRH())&&(e.list=t.first)}},decls:17,vars:17,consts:[["mat-dialog-title",""],[1,"page-subtitle"],[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,"attributes","filterValue","inDialog","pageSize","selection","page",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","error",1,"ml-3","font-size-1rem"],[1,"ml-auto","mr-auto"],[3,"attributes","filterValue","inDialog","pageSize","selection","page"],["list",""]],template:function(t,e){1&t&&(o.TgZ(0,"div"),o.TgZ(1,"div",0),o.TgZ(2,"h1",1),o._uU(3),o.ALo(4,"translate"),o.qZA(),o.TgZ(5,"perun-web-apps-immediate-filter",2),o.NdJ("filter",function(t){return e.applyFilter(t)}),o.qZA(),o.YNc(6,E,3,3,"app-alert",3),o.qZA(),o.TgZ(7,"div",4),o.YNc(8,m,1,0,"mat-spinner",5),o.YNc(9,y,2,5,"perun-web-apps-attributes-list",6),o.qZA(),o.TgZ(10,"div",7),o.TgZ(11,"button",8),o.NdJ("click",function(){return e.onCancel()}),o._uU(12),o.ALo(13,"translate"),o.qZA(),o.TgZ(14,"button",9),o.NdJ("click",function(){return e.onSave()}),o._uU(15),o.ALo(16,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.Tol(e.data.style),o.xp6(3),o.Oqu(o.lcZ(4,11,"DIALOGS.CREATE_ATTRIBUTE.SET_NEW")),o.xp6(2),o.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),o.xp6(1),o.Q6J("ngIf",e.showError),o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",void 0!==e.attributes&&!e.loading),o.xp6(3),o.hij(" ",o.lcZ(13,13,"DIALOGS.CREATE_ATTRIBUTE.CANCEL")," "),o.xp6(2),o.Q6J("disabled",0===e.selected.selected.length),o.xp6(1),o.hij(" ",o.lcZ(16,15,"DIALOGS.CREATE_ATTRIBUTE.SAVE")," "))},directives:[s.uh,u.L,d.O5,s.xY,s.H8,h.lW,b.w,p.$g,g.p],pipes:[l.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),t})()},13572:function(t,e,i){"use strict";i.d(e,{k:function(){return m}});var s=i(84608),n=i(67033),a=i(88426),r=i(33642),c=i(31572),o=i(48160),l=i(61511),u=i(15980),d=i(67806);function h(t,e){1&t&&c._UZ(0,"mat-spinner",6)}function b(t,e){1&t&&c._UZ(0,"th",15)}function p(t,e){if(1&t&&(c.TgZ(0,"td",16),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.hij(" ",t.displayName," ")}}function g(t,e){1&t&&c._UZ(0,"tr",17)}function f(t,e){1&t&&c._UZ(0,"tr",18)}function E(t,e){if(1&t&&(c.TgZ(0,"div",7),c.TgZ(1,"div"),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",8),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"table",9),c.ynx(8,10),c.YNc(9,b,1,0,"th",11),c.YNc(10,p,2,1,"td",12),c.BQk(),c.YNc(11,g,1,0,"tr",13),c.YNc(12,f,1,0,"tr",14),c.qZA(),c.qZA()),2&t){const t=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,5,"DIALOGS.DELETE_ATTRIBUTES.DESCRIPTION")," "),c.xp6(3),c.hij(" ",c.lcZ(6,7,"DIALOGS.DELETE_ATTRIBUTES.ASK")," "),c.xp6(2),c.Q6J("dataSource",t.dataSource),c.xp6(4),c.Q6J("matHeaderRowDef",t.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",t.displayedColumns)}}let m=(()=>{class t{constructor(t,e,i,s,n){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=s,this.attributesManager=n,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.dataSource=new n.by(this.data.attributes),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){const t=[];for(const i of this.data.attributes)t.push(i.id);const e={};switch(e[this.data.entity]=this.data.entityId,e.attributes=t,void 0!==this.data.secondEntity&&(e[this.data.secondEntity]=this.data.secondEntityId),this.loading=!0,this.data.entity){case"vo":this.attributesManager.removeVoAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.removeGroupResourceAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeGroupAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.removeUserFacilityAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeUserAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.removeMemberResourceAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":this.attributesManager.removeMemberGroupAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeMemberAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"facility":this.attributesManager.removeFacilityAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"host":this.attributesManager.removeHostAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"ues":this.attributesManager.removeUesAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()});break;case"resource":this.attributesManager.removeResourceAttributes(this.data.entityId,t).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.DELETE_ATTRIBUTES.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(s.so),c.Y36(s.WI),c.Y36(a.V6),c.Y36(o.sK),c.Y36(r.H8))},t.\u0275cmp=c.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,h,1,0,"mat-spinner",1),c.YNc(5,E,13,9,"div",2),c.TgZ(6,"div",3),c.TgZ(7,"button",4),c.NdJ("click",function(){return e.onCancel()}),c._uU(8),c.ALo(9,"translate"),c.qZA(),c.TgZ(10,"button",5),c.NdJ("click",function(){return e.onSubmit()}),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.qZA(),c.qZA()),2&t&&(c.Tol(e.theme),c.xp6(2),c.Oqu(c.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTES.TITLE")),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(3),c.hij(" ",c.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTES.CANCEL")," "),c.xp6(2),c.Q6J("disabled",e.loading),c.xp6(1),c.hij(" ",c.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTES.DELETE")," "))},directives:[s.uh,l.O5,s.H8,u.lW,d.$g,s.xY,n.BZ,n.w1,n.fO,n.Dz,n.as,n.nj,n.ge,n.ev,n.XQ,n.Gk],pipes:[o.X$],styles:[""]}),t})()},541:function(t,e,i){"use strict";i.d(e,{t:function(){return A}});var s=i(33642),n=i(4230),a=i(84140),r=i(40695),c=i(61189),o=i(13572),l=(i(41939),i(60611)),u=i(31572),d=i(84608),h=i(59403),b=i(15980),p=i(19139),g=i(61511),f=i(67806),E=i(41186),m=i(48160);const y=["list"];function S(t,e){1&t&&u._UZ(0,"mat-spinner",7)}function I(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-attributes-list",8,9),u.NdJ("page",function(e){return u.CHM(t),u.oxw().pageChanged(e)}),u.qZA()}if(2&t){const t=u.oxw();u.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("attributes",t.attributes)("selection",t.selection)}}let A=(()=>{class t{constructor(t,e,i){this.attributesManagerService=t,this.tableConfigService=e,this.dialog=i,this.attributes=[],this.selection=new n.Ov(!0,[]),this.filterValue="",this.tableId=l.rF,this.loading=!1}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}refreshTable(){switch(this.loading=!0,this.entity){case"member":this.attributesManagerService.getMemberAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"group":this.attributesManagerService.getGroupAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"user":this.attributesManagerService.getUserAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"resource":this.attributesManagerService.getResourceAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"facility":this.attributesManagerService.getFacilityAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"vo":this.attributesManagerService.getVoAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1})}}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}onCreate(){const t=(0,a.kZ)();t.width="1050px",t.data={entityId:this.entityId,entity:this.entity,notEmptyAttributes:this.attributes,style:this.entity+"-theme"},this.dialog.open(r.n,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const t=(0,a.kZ)();t.width="450px",t.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(c.wA,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onDelete(){const t=(0,a.kZ)();t.width="450px",t.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(o.k,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.H8),u.Y36(l.dB),u.Y36(d.uw))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-one-entity-attribute-page"]],viewQuery:function(t,e){if(1&t&&u.Gf(y,5),2&t){let t;u.iGM(t=u.CRH())&&(e.list=t.first)}},inputs:{entity:"entity",entityId:"entityId"},decls:13,vars:14,consts:[[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","attributes","selection","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","attributes","selection","page"],["list",""]],template:function(t,e){1&t&&(u.TgZ(0,"perun-web-apps-refresh-button",0),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.TgZ(1,"button",1),u.NdJ("click",function(){return e.onCreate()}),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"button",2),u.NdJ("click",function(){return e.onSave()}),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"button",3),u.NdJ("click",function(){return e.onDelete()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"perun-web-apps-immediate-filter",4),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(11,S,1,0,"mat-spinner",5),u.YNc(12,I,2,4,"perun-web-apps-attributes-list",6)),2&t&&(u.xp6(2),u.hij(" ",u.lcZ(3,8,"USER_DETAIL.SETTINGS.ATTRIBUTES.CREATE"),"\n"),u.xp6(2),u.Q6J("disabled",0===e.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(6,10,"USER_DETAIL.SETTINGS.ATTRIBUTES.SAVE"),"\n"),u.xp6(2),u.Q6J("disabled",0===e.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(9,12,"USER_DETAIL.SETTINGS.ATTRIBUTES.DELETE"),"\n"),u.xp6(2),u.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[h.t,b.lW,p.L,g.O5,f.$g,E.p],pipes:[m.X$],styles:[""]}),t})()},69012:function(t,e,i){"use strict";i.d(e,{Y:function(){return O}});var s=i(33642),n=(i(41939),i(4230)),a=i(13572),r=i(84140),c=i(61189),o=i(40695),l=i(67004),u=i(31572),d=i(84608),h=i(61511),b=i(67806),p=i(39571),g=i(59403),f=i(15980),E=i(37665),m=i(44973),y=i(48160);let S=(()=>{class t{constructor(){this.resourceSelected=new u.vpe,this.nameFunction=t=>t.name}ngOnInit(){this.resources=this.resources.sort(r.aC)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u.Xpm({type:t,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resources:"resources"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(u.TgZ(0,"perun-web-apps-entity-search-select",0),u.NdJ("entitySelected",function(t){return e.resourceSelected.emit(t)}),u.ALo(1,"translate"),u.ALo(2,"translate"),u.ALo(3,"translate"),u.qZA()),2&t&&u.Q6J("entities",e.resources)("searchFunction",e.nameFunction)("mainTextFunction",e.nameFunction)("selectPlaceholder",u.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",u.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",u.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},directives:[m.i],pipes:[y.X$],styles:[""]}),t})(),I=(()=>{class t{constructor(){this.memberSelected=new u.vpe,this.memberFullNameFunction=t=>(0,r.bD)(t.user)}ngOnInit(){this.members=this.members.sort(r.fx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u.Xpm({type:t,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(t,e){1&t&&(u.TgZ(0,"perun-web-apps-entity-search-select",0),u.NdJ("entitySelected",function(t){return e.memberSelected.emit(t)}),u.ALo(1,"translate"),u.ALo(2,"translate"),u.ALo(3,"translate"),u.qZA()),2&t&&u.Q6J("entities",e.members)("searchFunction",e.memberFullNameFunction)("mainTextFunction",e.memberFullNameFunction)("selectPlaceholder",u.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",u.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",u.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},directives:[m.i],pipes:[y.X$],styles:[""]}),t})(),A=(()=>{class t{constructor(){this.facilitySelected=new u.vpe,this.nameFunction=t=>t.name}ngOnInit(){this.facilities=this.facilities.sort(r.aC)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u.Xpm({type:t,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(t,e){1&t&&(u.TgZ(0,"perun-web-apps-entity-search-select",0),u.NdJ("entitySelected",function(t){return e.facilitySelected.emit(t)}),u.ALo(1,"translate"),u.ALo(2,"translate"),u.ALo(3,"translate"),u.qZA()),2&t&&u.Q6J("entities",e.facilities)("searchFunction",e.nameFunction)("mainTextFunction",e.nameFunction)("selectPlaceholder",u.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",u.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",u.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},directives:[m.i],pipes:[y.X$],styles:[""]}),t})();var T=i(7927),w=i(41186);const M=["list"];function Z(t,e){1&t&&u._UZ(0,"mat-spinner",4)}function v(t,e){if(1&t&&(u.TgZ(0,"app-alert",5),u._uU(1),u.qZA()),2&t){const t=u.oxw();u.xp6(1),u.Oqu(t.noEntityMessage)}}function C(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-group-search-select",17),u.NdJ("groupSelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("groups",t.entityValues)}}function R(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-resource-search-select",18),u.NdJ("resourceSelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("resources",t.entityValues)}}function x(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-member-search-select",19),u.NdJ("memberSelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("members",t.entityValues)}}function _(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-facility-search-select",20),u.NdJ("facilitySelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("facilities",t.entityValues)}}function L(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-user-search-select",21),u.NdJ("userSelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("users",t.entityValues)}}function N(t,e){1&t&&u._UZ(0,"mat-spinner",4)}function k(t,e){if(1&t&&u._UZ(0,"perun-web-apps-attributes-list",22,23),2&t){const t=u.oxw(2);u.Q6J("attributes",t.attributes)("selection",t.selection)}}function U(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"div",6),u.YNc(2,C,1,1,"perun-web-apps-group-search-select",7),u.YNc(3,R,1,1,"perun-web-apps-resource-search-select",8),u.YNc(4,x,1,1,"perun-web-apps-member-search-select",9),u.YNc(5,_,1,1,"perun-web-apps-facility-search-select",10),u.YNc(6,L,1,1,"perun-web-apps-user-search-select",11),u.qZA(),u.TgZ(7,"perun-web-apps-refresh-button",12),u.NdJ("refresh",function(){u.CHM(t);const e=u.oxw();return e.getAttributes(e.specificSecondEntity.id)}),u.qZA(),u.TgZ(8,"button",13),u.NdJ("click",function(){u.CHM(t);const e=u.oxw();return e.onAdd(e.specificSecondEntity.id)}),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.TgZ(11,"button",14),u.NdJ("click",function(){u.CHM(t);const e=u.oxw();return e.onSave(e.specificSecondEntity.id)}),u._uU(12),u.ALo(13,"translate"),u.qZA(),u.TgZ(14,"button",15),u.NdJ("click",function(){u.CHM(t);const e=u.oxw();return e.onDelete(e.specificSecondEntity.id)}),u._uU(15),u.ALo(16,"translate"),u.qZA(),u.YNc(17,N,1,0,"mat-spinner",1),u.YNc(18,k,2,2,"perun-web-apps-attributes-list",16),u.qZA()}if(2&t){const t=u.oxw();u.xp6(2),u.Q6J("ngIf","group"===t.secondEntity),u.xp6(1),u.Q6J("ngIf","resource"===t.secondEntity),u.xp6(1),u.Q6J("ngIf","member"===t.secondEntity),u.xp6(1),u.Q6J("ngIf","facility"===t.secondEntity),u.xp6(1),u.Q6J("ngIf","user"===t.secondEntity),u.xp6(3),u.hij(" ",u.lcZ(10,12,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(13,14,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(16,16,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),u.xp6(2),u.Q6J("ngIf",t.innerLoading),u.xp6(1),u.Q6J("ngIf",!t.innerLoading)}}let O=(()=>{class t{constructor(t,e,i,s,a,r){this.attributesManagerService=t,this.resourcesManagerService=e,this.facilitiesManagerService=i,this.groupsManagerService=s,this.membersManager=a,this.dialog=r,this.entityValues=[],this.attributes=[],this.selection=new n.Ov(!0,[]),this.allowedStatuses=["INVALID","VALID"],this.loading=!1,this.innerLoading=!1}ngOnInit(){this.loadEntityValues(),this.setMessages(this.secondEntity.toLowerCase())}loadEntityValues(){switch(this.loading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.resourcesManagerService.getAllowedResources(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1});break;case"group":this.groupsManagerService.getMemberGroups(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.resourcesManagerService.getAssignedResourcesWithGroup(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1});break;case"member":this.membersManager.getCompleteRichMembersForGroup(this.firstEntityId,!1,this.allowedStatuses,null,[l.r.MEMBER_CORE_ID]).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}break;case"user":this.facilitiesManagerService.getAssignedFacilitiesByUser(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1});break;case"resource":switch(this.secondEntity){case"member":this.resourcesManagerService.getAssignedRichMembers(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1});break;case"group":this.resourcesManagerService.getAssignedGroups(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}break;case"facility":this.facilitiesManagerService.getAssignedUsers(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}}preselectEntity(){0!==this.entityValues.length&&this.specifySecondEntity(this.entityValues[0])}getAttributes(t){switch(this.innerLoading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.attributesManagerService.getMemberResourceAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"group":this.attributesManagerService.getMemberGroupAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.attributesManagerService.getGroupResourceAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"member":this.attributesManagerService.getMemberGroupAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}break;case"user":this.attributesManagerService.getUserFacilityAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"resource":switch(this.secondEntity){case"member":this.attributesManagerService.getMemberResourceAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"group":this.attributesManagerService.getGroupResourceAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}break;case"facility":this.attributesManagerService.getUserFacilityAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}}setMessages(t){this.noEntityMessage=`No ${t} assigned`}onSave(t){this.list.updateMapAttributes();const e=(0,r.kZ)();e.width="450px",e.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:t,attributes:this.selection.selected},this.dialog.open(c.wA,e).afterClosed().subscribe(e=>{e&&(this.selection.clear(),this.getAttributes(t))})}onDelete(t){const e=(0,r.kZ)();e.width="450px",e.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:t,attributes:this.selection.selected,theme:`${this.firstEntity}-theme`},this.dialog.open(a.k,e).afterClosed().subscribe(e=>{e&&(this.selection.clear(),this.getAttributes(t))})}onAdd(t){const e=(0,r.kZ)();e.width="1050px",e.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:t,notEmptyAttributes:this.attributes,style:`${this.firstEntity}-theme`},this.dialog.open(o.n,e).afterClosed().subscribe(e=>{e&&(this.selection.clear(),this.getAttributes(t))})}specifySecondEntity(t){t&&(this.specificSecondEntity=t,this.getAttributes(this.specificSecondEntity.id))}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.H8),u.Y36(s.xk),u.Y36(s.IQ),u.Y36(s.ff),u.Y36(s.uq),u.Y36(d.uw))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-two-entity-attribute-page"]],viewQuery:function(t,e){if(1&t&&u.Gf(M,5),2&t){let t;u.iGM(t=u.CRH())&&(e.list=t.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,"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"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"attributes","selection",4,"ngIf"],[3,"groups","groupSelected"],[3,"resources","resourceSelected"],[3,"members","memberSelected"],[3,"facilities","facilitySelected"],[3,"users","userSelected"],[3,"attributes","selection"],["list",""]],template:function(t,e){1&t&&(u.TgZ(0,"div",0),u.YNc(1,Z,1,0,"mat-spinner",1),u.YNc(2,v,2,1,"app-alert",2),u.YNc(3,U,19,18,"div",3),u.qZA()),2&t&&(u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",0===e.entityValues.length&&!e.loading),u.xp6(1),u.Q6J("ngIf",0!==e.entityValues.length))},directives:[h.O5,b.$g,p.w,g.t,f.lW,E.h,S,I,A,T.S,w.p],pipes:[y.X$],styles:[".w-35[_ngcontent-%COMP%]{width:35%}"]}),t})()},8557:function(t,e,i){"use strict";i.d(e,{L:function(){return h}});var s=i(31572),n=i(84608),a=i(57629),r=i(61511),c=i(71522),o=i(43691),l=i(48160);function u(t,e){if(1&t&&(s.TgZ(0,"div",3),s.TgZ(1,"a",4),s._UZ(2,"mat-icon",5),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Gre("",t.style," item-itself"),s.Q6J("routerLink",t.url),s.xp6(1),s.Q6J("svgIcon",t.cssIcon),s.xp6(1),s.hij(" ",s.lcZ(4,6,t.label)," ")}}function d(t,e){if(1&t&&(s.TgZ(0,"div",1),s.YNc(1,u,5,8,"div",2),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.items)}}let h=(()=>{class t{constructor(t,e){this.dialog=t,this.route=e,this.size="large"}ngOnInit(){this.route.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.uw),s.Y36(a.gz))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&s.YNc(0,d,2,1,"div",0),2&t&&s.Q6J("ngIf","small"===e.size)},directives:[r.O5,r.sg,c.wG,a.yS,o.Hw],pipes:[l.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}.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}}"]}),t})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/579-es5.1addc672c03e39557987.js b/dist/apps/admin-gui/579-es5.a7ecabb9fc862945e886.js similarity index 99% rename from dist/apps/admin-gui/579-es5.1addc672c03e39557987.js rename to dist/apps/admin-gui/579-es5.a7ecabb9fc862945e886.js index a92223aa7..926bd5bf1 100644 --- a/dist/apps/admin-gui/579-es5.1addc672c03e39557987.js +++ b/dist/apps/admin-gui/579-es5.a7ecabb9fc862945e886.js @@ -1 +1 @@ -!function(){function t(t,i){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,i){if(!t)return;if("string"==typeof t)return e(t,i);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,i)}(t))||i&&t&&"number"==typeof t.length){n&&(t=n);var s=0,a=function(){};return{s:a,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,c=!0,o=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){o=!0,r=t},f:function(){try{c||null==n.return||n.return()}finally{if(o)throw r}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,c=!0,o=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){o=!0,r=t},f:function(){try{c||null==n.return||n.return()}finally{if(o)throw r}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i{class e{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.selection=new l.Ov,this.filterValue="",this.displayedColumns=["select","id","name","type"],this.pageSize=5,this.page=new i.vpe,this.exporting=!1,this.pageSizeOptions=c.f7}set matSort(e){this.sort=e,this.setDataSource()}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new r.by(this.extSources),this.setDataSource()}getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"type":return e.type.substring(40);case"name":return e.name;default:return""}}exportData(e){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>(0,c.Sd)(e,t,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(e,t)=>(0,c.pR)(e,t,this.getDataForColumn,this),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.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.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 e.\u0275fac=function(t){return new(t||e)(i.Y36(n.x4),i.Y36(n.UA))},e.\u0275cmp=i.Xpm({type:e,selectors:[["app-ext-sources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(c.l9,7),i.Gf(s.YE,7)),2&e){let e;i.iGM(e=i.CRH())&&(t.child=e.first),i.iGM(e=i.CRH())&&(t.matSort=e.first)}},inputs:{extSources:"extSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",pageSize:"pageSize"},outputs:{page:"page"},features:[i.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,m,2,3,"th",4),i.YNc(5,g,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,f,3,3,"th",7),i.YNc(8,x,2,1,"td",5),i.BQk(),i.ynx(9,8),i.YNc(10,C,3,3,"th",7),i.YNc(11,D,2,1,"td",9),i.BQk(),i.ynx(12,10),i.YNc(13,T,3,3,"th",7),i.YNc(14,Z,3,3,"td",9),i.BQk(),i.YNc(15,A,1,0,"tr",11),i.YNc(16,O,1,0,"tr",12),i.qZA(),i.qZA(),i.qZA(),i.YNc(17,w,3,3,"app-alert",13),i.YNc(18,b,3,3,"app-alert",13)),2&e&&(i.Q6J("hidden",0===t.extSources.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),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.extSources.length),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.extSources.length))},directives:[o.l,r.BZ,s.YE,r.w1,r.fO,r.Dz,r.as,r.nj,u.O5,r.ge,h.oG,r.ev,s.nU,r.XQ,r.Gk,p.w],pipes:[d.X$,S.A],styles:[""]}),e})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/592-es5.77e3d7989f44b988548d.js b/dist/apps/admin-gui/592-es5.77e3d7989f44b988548d.js deleted file mode 100644 index f3ef91d47..000000000 --- a/dist/apps/admin-gui/592-es5.77e3d7989f44b988548d.js +++ /dev/null @@ -1 +0,0 @@ -!function(){function e(e,t){for(var a=0;a{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.destinations=[],this.selection=new s.Ov(!0,[]),this.filterValue="",this.pageSize=10,this.page=new i.vpe,this.pageSizeOptions=l.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"destinationId"!==t)),this.dataSource=new o.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}getDataForColumn(t,e){switch(e){case"destinationId":return t.id.toString();case"service":return t.service.name;case"facility":return t.facility.name;case"destination":return t.destination;case"type":return t.type;case"status":return t.blocked?"blocked":"allowed";case"propagationType":return t.propagationType;default:return""}}exportData(t){(0,l.O6)((0,l.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,l.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,l.pR)(t,e,this.getDataForColumn,this),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(c.x4),i.Y36(c.UA))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(t,e){if(1&t&&(i.Gf(n.YE,7),i.Gf(l.l9,7)),2&t){let t;i.iGM(t=i.CRH())&&(e.matSort=t.first),i.iGM(t=i.CRH())&&(e.child=t.first)}},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[i.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","destinationId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","service"],["mat-cell","",4,"matCellDef"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["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(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,S,2,3,"th",4),i.YNc(5,f,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,T,3,3,"th",7),i.YNc(8,A,2,1,"td",5),i.BQk(),i.ynx(9,8),i.YNc(10,N,3,3,"th",7),i.YNc(11,Z,2,1,"td",9),i.BQk(),i.ynx(12,10),i.YNc(13,O,3,3,"th",7),i.YNc(14,D,2,1,"td",9),i.BQk(),i.ynx(15,11),i.YNc(16,C,3,3,"th",7),i.YNc(17,x,2,1,"td",9),i.BQk(),i.ynx(18,12),i.YNc(19,I,3,3,"th",7),i.YNc(20,E,2,1,"td",9),i.BQk(),i.ynx(21,13),i.YNc(22,_,1,0,"th",4),i.YNc(23,b,3,2,"td",9),i.BQk(),i.ynx(24,14),i.YNc(25,q,3,3,"th",7),i.YNc(26,L,2,1,"td",9),i.BQk(),i.YNc(27,R,1,0,"tr",15),i.YNc(28,k,1,0,"tr",16),i.qZA(),i.qZA(),i.qZA(),i.YNc(29,Y,3,3,"app-alert",17),i.YNc(30,U,3,3,"app-alert",17)),2&t&&(i.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.destinations.length),i.xp6(1),i.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(25),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.destinations.length),i.xp6(1),i.Q6J("ngIf",0===e.destinations.length))},directives:[r.l,o.BZ,n.YE,o.w1,o.fO,o.Dz,o.as,o.nj,u.O5,o.ge,d.oG,o.ev,n.nU,p.Hw,h.gM,o.XQ,o.Gk,m.w],pipes:[g.X$],styles:[""]}),t})()},60547:function(t,e,a){"use strict";a.d(e,{u:function(){return f}});var i=a(33642),n=a(84608),s=a(67033),o=a(88426),l=a(31572),c=a(48160),r=a(61511),u=a(15980),d=a(67806),p=a(39571),h=a(94357);function m(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function g(t,e){if(1&t&&l._UZ(0,"app-perun-web-apps-destination-list",11),2&t){const t=l.oxw(2);l.Q6J("destinations",t.destinations)("displayedColumns",t.displayedColumns)}}function S(t,e){if(1&t&&(l.TgZ(0,"div",7),l.TgZ(1,"app-alert",8),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"p"),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.TgZ(7,"div",9),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.YNc(10,g,1,2,"app-perun-web-apps-destination-list",10),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("alert_type","warn"),l.xp6(1),l.Oqu(l.lcZ(3,5,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),l.xp6(3),l.Oqu(l.lcZ(6,7,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),l.xp6(3),l.hij(" ",l.lcZ(9,9,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),l.xp6(2),l.Q6J("ngIf",!t.loading)}}let f=(()=>{class t{constructor(t,e,a,i,n){this.dialogRef=t,this.data=e,this.notificator=a,this.translate=i,this.serviceManager=n,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 s.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 t=this.destinations.pop();this.serviceManager.removeDestination(t.service.id,t.facility.id,t.destination,t.type).subscribe(()=>{this.deleteDestinations()},()=>this.loading=!1)}onConfirm(){this.loading=!0,this.deleteDestinations()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(n.so),l.Y36(n.WI),l.Y36(o.V6),l.Y36(c.sK),l.Y36(i.KK))},t.\u0275cmp=l.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"alert_type"],[1,"font-weight-bold"],[3,"destinations","displayedColumns",4,"ngIf"],[3,"destinations","displayedColumns"]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"div"),l.YNc(4,m,1,0,"mat-spinner",1),l.YNc(5,S,11,11,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onConfirm()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),l.xp6(2),l.Tol(e.theme),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.hij(" ",l.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL"),""),l.xp6(2),l.Q6J("disabled",e.loading),l.xp6(1),l.hij(" ",l.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM"),""))},directives:[n.uh,r.O5,n.H8,u.lW,d.$g,n.xY,p.w,h.q],pipes:[c.X$],styles:[""]}),t})()},17767:function(t,e,a){"use strict";a.d(e,{Q:function(){return _}});var i=a(31572),n=a(58623),s=a(4230),o=a(67033),l=a(27613),c=a(88426),r=a(82819),u=a(61511),d=a(29236),p=a(39571),h=a(48160);function m(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"th",15),i.TgZ(1,"mat-checkbox",16),i.NdJ("change",function(e){i.CHM(t);const a=i.oxw();return e?a.masterToggle():null}),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function g(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"td",17),i.TgZ(1,"mat-checkbox",18),i.NdJ("change",function(e){const a=i.CHM(t).$implicit,n=i.oxw();return e?n.selection.toggle(a):null})("click",function(t){return t.stopPropagation()}),i.qZA(),i.qZA()}if(2&t){const t=e.$implicit,a=i.oxw();i.xp6(1),i.Q6J("aria-label",a.checkboxLabel(t))("checked",a.selection.isSelected(t))}}function S(t,e){1&t&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")))}function f(t,e){if(1&t&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.hij(" ",t.id," ")}}function T(t,e){1&t&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")))}function A(t,e){if(1&t&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.name)}}function N(t,e){1&t&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")))}function Z(t,e){if(1&t&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.contact)}}function O(t,e){1&t&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")))}function D(t,e){if(1&t&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.type)}}function C(t,e){1&t&&i._UZ(0,"tr",21)}function x(t,e){1&t&&i._UZ(0,"tr",22)}function I(t,e){1&t&&(i.TgZ(0,"app-alert",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS")))}function E(t,e){1&t&&(i.TgZ(0,"app-alert",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS")))}let _=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.owners=[],this.selection=new s.Ov(!0,[]),this.pageSize=10,this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.page=new i.vpe,this.pageSizeOptions=l.f7}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"contact":return t.contact;case"type":return t.type;default:return""}}exportData(t){(0,l.O6)((0,l.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,l.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,l.pR)(t,e,this.getDataForColumn,this),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(t=>"id"!==t)),this.dataSource=new o.by(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(c.x4),i.Y36(c.UA))},t.\u0275cmp=i.Xpm({type:t,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(t,e){if(1&t&&(i.Gf(l.l9,7),i.Gf(n.YE,7)),2&t){let t;i.iGM(t=i.CRH())&&(e.child=t.first),i.iGM(t=i.CRH())&&(e.matSort=t.first)}},inputs:{owners:"owners",selection:"selection",pageSize:"pageSize",filterValue:"filterValue",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[i.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,m,2,3,"th",4),i.YNc(5,g,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,S,3,3,"th",7),i.YNc(8,f,2,1,"td",5),i.BQk(),i.ynx(9,8),i.YNc(10,T,3,3,"th",7),i.YNc(11,A,2,1,"td",9),i.BQk(),i.ynx(12,10),i.YNc(13,N,3,3,"th",7),i.YNc(14,Z,2,1,"td",9),i.BQk(),i.ynx(15,11),i.YNc(16,O,3,3,"th",7),i.YNc(17,D,2,1,"td",9),i.BQk(),i.YNc(18,C,1,0,"tr",12),i.YNc(19,x,1,0,"tr",13),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,I,3,3,"app-alert",14),i.YNc(21,E,3,3,"app-alert",14)),2&t&&(i.Q6J("hidden",!e.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(1),i.Q6J("ngIf",!e.owners.length),i.xp6(1),i.Q6J("ngIf",!e.dataSource.filteredData.length&&e.owners.length))},directives:[r.l,o.BZ,n.YE,o.w1,o.fO,o.Dz,o.as,o.nj,u.O5,o.ge,d.oG,o.ev,n.nU,o.XQ,o.Gk,p.w],pipes:[h.X$],styles:[""]}),t})()}}]); \ No newline at end of file +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[756],{94357:function(t,e,a){"use strict";a.d(e,{q:function(){return v}});var i=a(31572),n=a(58623),s=a(4230),o=a(67033),l=a(84140),c=a(88426),r=a(82819),u=a(61511),d=a(29236),p=a(43691),h=a(36922),m=a(39571),g=a(48160);function S(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"th",18),i.TgZ(1,"mat-checkbox",19),i.NdJ("change",function(e){i.CHM(t);const a=i.oxw();return e?a.masterToggle():null}),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function f(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"td",20),i.TgZ(1,"mat-checkbox",21),i.NdJ("change",function(e){const a=i.CHM(t).$implicit,n=i.oxw();return e?n.selection.toggle(a):null})("click",function(t){return t.stopPropagation()}),i.qZA(),i.qZA()}if(2&t){const t=e.$implicit,a=i.oxw();i.xp6(1),i.Q6J("aria-label",a.checkboxLabel(t))("checked",a.selection.isSelected(t))}}function T(t,e){1&t&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")))}function A(t,e){if(1&t&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.id)}}function N(t,e){1&t&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")))}function Z(t,e){if(1&t&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.service.name)}}function O(t,e){1&t&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")))}function D(t,e){if(1&t&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.facility.name)}}function C(t,e){1&t&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")))}function x(t,e){if(1&t&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.destination)}}function I(t,e){1&t&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")))}function E(t,e){if(1&t&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.type.toUpperCase())}}function _(t,e){1&t&&i._UZ(0,"th",18)}function w(t,e){1&t&&(i.TgZ(0,"mat-icon",25),i.ALo(1,"translate"),i._uU(2," check_circle_outline "),i.qZA()),2&t&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function y(t,e){1&t&&(i.TgZ(0,"mat-icon",25),i.ALo(1,"translate"),i._uU(2," block "),i.qZA()),2&t&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function b(t,e){if(1&t&&(i.TgZ(0,"td",23),i.YNc(1,w,3,3,"mat-icon",24),i.YNc(2,y,3,3,"mat-icon",24),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("ngIf",!t.blocked),i.xp6(1),i.Q6J("ngIf",t.blocked)}}function q(t,e){1&t&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")))}function L(t,e){if(1&t&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.propagationType)}}function R(t,e){1&t&&i._UZ(0,"tr",26)}function k(t,e){1&t&&i._UZ(0,"tr",27)}function Y(t,e){1&t&&(i.TgZ(0,"app-alert",28),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function U(t,e){1&t&&(i.TgZ(0,"app-alert",28),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}let v=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.destinations=[],this.selection=new s.Ov(!0,[]),this.filterValue="",this.pageSize=10,this.page=new i.vpe,this.pageSizeOptions=l.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"destinationId"!==t)),this.dataSource=new o.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}getDataForColumn(t,e){switch(e){case"destinationId":return t.id.toString();case"service":return t.service.name;case"facility":return t.facility.name;case"destination":return t.destination;case"type":return t.type;case"status":return t.blocked?"blocked":"allowed";case"propagationType":return t.propagationType;default:return""}}exportData(t){(0,l.O6)((0,l.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,l.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,l.pR)(t,e,this.getDataForColumn,this),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(c.x4),i.Y36(c.UA))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(t,e){if(1&t&&(i.Gf(n.YE,7),i.Gf(l.l9,7)),2&t){let t;i.iGM(t=i.CRH())&&(e.matSort=t.first),i.iGM(t=i.CRH())&&(e.child=t.first)}},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[i.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","destinationId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","service"],["mat-cell","",4,"matCellDef"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["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(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,S,2,3,"th",4),i.YNc(5,f,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,T,3,3,"th",7),i.YNc(8,A,2,1,"td",5),i.BQk(),i.ynx(9,8),i.YNc(10,N,3,3,"th",7),i.YNc(11,Z,2,1,"td",9),i.BQk(),i.ynx(12,10),i.YNc(13,O,3,3,"th",7),i.YNc(14,D,2,1,"td",9),i.BQk(),i.ynx(15,11),i.YNc(16,C,3,3,"th",7),i.YNc(17,x,2,1,"td",9),i.BQk(),i.ynx(18,12),i.YNc(19,I,3,3,"th",7),i.YNc(20,E,2,1,"td",9),i.BQk(),i.ynx(21,13),i.YNc(22,_,1,0,"th",4),i.YNc(23,b,3,2,"td",9),i.BQk(),i.ynx(24,14),i.YNc(25,q,3,3,"th",7),i.YNc(26,L,2,1,"td",9),i.BQk(),i.YNc(27,R,1,0,"tr",15),i.YNc(28,k,1,0,"tr",16),i.qZA(),i.qZA(),i.qZA(),i.YNc(29,Y,3,3,"app-alert",17),i.YNc(30,U,3,3,"app-alert",17)),2&t&&(i.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.destinations.length),i.xp6(1),i.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(25),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.destinations.length),i.xp6(1),i.Q6J("ngIf",0===e.destinations.length))},directives:[r.l,o.BZ,n.YE,o.w1,o.fO,o.Dz,o.as,o.nj,u.O5,o.ge,d.oG,o.ev,n.nU,p.Hw,h.gM,o.XQ,o.Gk,m.w],pipes:[g.X$],styles:[""]}),t})()},60547:function(t,e,a){"use strict";a.d(e,{u:function(){return f}});var i=a(33642),n=a(84608),s=a(67033),o=a(88426),l=a(31572),c=a(48160),r=a(61511),u=a(15980),d=a(67806),p=a(39571),h=a(94357);function m(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function g(t,e){if(1&t&&l._UZ(0,"app-perun-web-apps-destination-list",11),2&t){const t=l.oxw(2);l.Q6J("destinations",t.destinations)("displayedColumns",t.displayedColumns)}}function S(t,e){if(1&t&&(l.TgZ(0,"div",7),l.TgZ(1,"app-alert",8),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"p"),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.TgZ(7,"div",9),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.YNc(10,g,1,2,"app-perun-web-apps-destination-list",10),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("alert_type","warn"),l.xp6(1),l.Oqu(l.lcZ(3,5,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),l.xp6(3),l.Oqu(l.lcZ(6,7,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),l.xp6(3),l.hij(" ",l.lcZ(9,9,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),l.xp6(2),l.Q6J("ngIf",!t.loading)}}let f=(()=>{class t{constructor(t,e,a,i,n){this.dialogRef=t,this.data=e,this.notificator=a,this.translate=i,this.serviceManager=n,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 s.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 t=this.destinations.pop();this.serviceManager.removeDestination(t.service.id,t.facility.id,t.destination,t.type).subscribe(()=>{this.deleteDestinations()},()=>this.loading=!1)}onConfirm(){this.loading=!0,this.deleteDestinations()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(n.so),l.Y36(n.WI),l.Y36(o.V6),l.Y36(c.sK),l.Y36(i.KK))},t.\u0275cmp=l.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"alert_type"],[1,"font-weight-bold"],[3,"destinations","displayedColumns",4,"ngIf"],[3,"destinations","displayedColumns"]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"div"),l.YNc(4,m,1,0,"mat-spinner",1),l.YNc(5,S,11,11,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onConfirm()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),l.xp6(2),l.Tol(e.theme),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.hij(" ",l.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL"),""),l.xp6(2),l.Q6J("disabled",e.loading),l.xp6(1),l.hij(" ",l.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM"),""))},directives:[n.uh,r.O5,n.H8,u.lW,d.$g,n.xY,p.w,h.q],pipes:[c.X$],styles:[""]}),t})()},17767:function(t,e,a){"use strict";a.d(e,{Q:function(){return _}});var i=a(31572),n=a(58623),s=a(4230),o=a(67033),l=a(84140),c=a(88426),r=a(82819),u=a(61511),d=a(29236),p=a(39571),h=a(48160);function m(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"th",15),i.TgZ(1,"mat-checkbox",16),i.NdJ("change",function(e){i.CHM(t);const a=i.oxw();return e?a.masterToggle():null}),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function g(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"td",17),i.TgZ(1,"mat-checkbox",18),i.NdJ("change",function(e){const a=i.CHM(t).$implicit,n=i.oxw();return e?n.selection.toggle(a):null})("click",function(t){return t.stopPropagation()}),i.qZA(),i.qZA()}if(2&t){const t=e.$implicit,a=i.oxw();i.xp6(1),i.Q6J("aria-label",a.checkboxLabel(t))("checked",a.selection.isSelected(t))}}function S(t,e){1&t&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")))}function f(t,e){if(1&t&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.hij(" ",t.id," ")}}function T(t,e){1&t&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")))}function A(t,e){if(1&t&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.name)}}function N(t,e){1&t&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")))}function Z(t,e){if(1&t&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.contact)}}function O(t,e){1&t&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")))}function D(t,e){if(1&t&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.type)}}function C(t,e){1&t&&i._UZ(0,"tr",21)}function x(t,e){1&t&&i._UZ(0,"tr",22)}function I(t,e){1&t&&(i.TgZ(0,"app-alert",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS")))}function E(t,e){1&t&&(i.TgZ(0,"app-alert",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS")))}let _=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.owners=[],this.selection=new s.Ov(!0,[]),this.pageSize=10,this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.page=new i.vpe,this.pageSizeOptions=l.f7}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"contact":return t.contact;case"type":return t.type;default:return""}}exportData(t){(0,l.O6)((0,l.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,l.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,l.pR)(t,e,this.getDataForColumn,this),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(t=>"id"!==t)),this.dataSource=new o.by(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(c.x4),i.Y36(c.UA))},t.\u0275cmp=i.Xpm({type:t,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(t,e){if(1&t&&(i.Gf(l.l9,7),i.Gf(n.YE,7)),2&t){let t;i.iGM(t=i.CRH())&&(e.child=t.first),i.iGM(t=i.CRH())&&(e.matSort=t.first)}},inputs:{owners:"owners",selection:"selection",pageSize:"pageSize",filterValue:"filterValue",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[i.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,m,2,3,"th",4),i.YNc(5,g,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,S,3,3,"th",7),i.YNc(8,f,2,1,"td",5),i.BQk(),i.ynx(9,8),i.YNc(10,T,3,3,"th",7),i.YNc(11,A,2,1,"td",9),i.BQk(),i.ynx(12,10),i.YNc(13,N,3,3,"th",7),i.YNc(14,Z,2,1,"td",9),i.BQk(),i.ynx(15,11),i.YNc(16,O,3,3,"th",7),i.YNc(17,D,2,1,"td",9),i.BQk(),i.YNc(18,C,1,0,"tr",12),i.YNc(19,x,1,0,"tr",13),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,I,3,3,"app-alert",14),i.YNc(21,E,3,3,"app-alert",14)),2&t&&(i.Q6J("hidden",!e.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(1),i.Q6J("ngIf",!e.owners.length),i.xp6(1),i.Q6J("ngIf",!e.dataSource.filteredData.length&&e.owners.length))},directives:[r.l,o.BZ,n.YE,o.w1,o.fO,o.Dz,o.as,o.nj,u.O5,o.ge,d.oG,o.ev,n.nU,o.XQ,o.Gk,p.w],pipes:[h.X$],styles:[""]}),t})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/756-es5.008cd3af4db238dee841.js b/dist/apps/admin-gui/756-es5.191260c437bd1ee35217.js similarity index 99% rename from dist/apps/admin-gui/756-es5.008cd3af4db238dee841.js rename to dist/apps/admin-gui/756-es5.191260c437bd1ee35217.js index 0b6ceabce..9eb9ead62 100644 --- a/dist/apps/admin-gui/756-es5.008cd3af4db238dee841.js +++ b/dist/apps/admin-gui/756-es5.191260c437bd1ee35217.js @@ -1 +1 @@ -!function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var a=0;a{class e{constructor(e,t,i,s){this.route=e,this.resourceService=t,this.tableConfigService=i,this.authResolver=s,this.loading=!1,this.filterValue="",this.tableId=a.iQ}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(e=>{this.resourceId=e.resourceId,this.refreshTable()})}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resourceId).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}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(r.gz),n.Y36(s.xk),n.Y36(a.dB),n.Y36(o.x4))},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-resource-assigned-members"]],decls:7,vars:7,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filter","displayedColumns","members","pageSize","page","updateTable",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filter","displayedColumns","members","pageSize","page","updateTable"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.YNc(3,p,1,0,"perun-web-apps-refresh-button",1),n.YNc(4,m,1,1,"perun-web-apps-debounce-filter",2),n.YNc(5,f,1,0,"mat-spinner",3),n.YNc(6,S,1,6,"perun-web-apps-members-list",4)),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),n.xp6(2),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},directives:[l.O5,c.t,u.P,d.$g,g.O],pipes:[h.X$],styles:[""]}),e})()},75374:function(e,t,i){"use strict";i.d(t,{D:function(){return y}});var s=i(33642),a=i(60611),o=i(4230),n=i(84140),r=i(84608),l=i(88426),c=i(31572),u=i(48160),d=i(61511),g=i(15980),h=i(67806),p=i(91058),m=i(91721);function f(e,t){1&e&&c._UZ(0,"mat-spinner",6)}function A(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"app-services-list",10),c.NdJ("page",function(t){return c.CHM(e),c.oxw(2).pageChanged(t)}),c.qZA()}if(2&e){const e=c.oxw(2);c.Q6J("pageSize",e.pageSize)("disableRouting",!0)("services",e.unAssignedServices)("filterValue",e.filterValue)("selection",e.selection)}}function S(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",7),c.TgZ(1,"perun-web-apps-debounce-filter",8),c.NdJ("filter",function(t){return c.CHM(e),c.oxw().applyFilter(t)}),c.ALo(2,"translate"),c.qZA(),c.YNc(3,A,1,5,"app-services-list",9),c.qZA()}if(2&e){const e=c.oxw();c.xp6(1),c.s9C("placeholder",c.lcZ(2,2,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.FILTER_DESCRIPTION")),c.xp6(2),c.Q6J("ngIf",!e.loading)}}let b=(()=>{class e{constructor(e,t,i,s,n,r,l){this.dialogRef=e,this.data=t,this.notificator=i,this.translate=s,this.resourceManager=n,this.servicesManager=r,this.tableConfigService=l,this.loading=!1,this.selection=new o.Ov(!0,[]),this.tableId=a.DR,this.filterValue=""}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(e=>{this.servicesManager.getServices().subscribe(t=>{this.unAssignedServices=t;for(const i of e)for(const e of t)i.id===e.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(e),1);this.filteredServices=this.unAssignedServices,this.loading=!1})})}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0;const e=[];for(const t of this.selection.selected)e.push(t.id);this.resourceManager.assignServices(this.data.resourceId,e).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(r.so),c.Y36(r.WI),c.Y36(l.V6),c.Y36(u.sK),c.Y36(s.xk),c.Y36(s.KK),c.Y36(a.dB))},e.\u0275cmp=c.Xpm({type:e,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"placeholder","filter"],[3,"pageSize","disableRouting","services","filterValue","selection","page",4,"ngIf"],[3,"pageSize","disableRouting","services","filterValue","selection","page"]],template:function(e,t){1&e&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,f,1,0,"mat-spinner",1),c.YNc(5,S,4,4,"div",2),c.TgZ(6,"div",3),c.TgZ(7,"button",4),c.NdJ("click",function(){return t.onCancel()}),c._uU(8),c.ALo(9,"translate"),c.qZA(),c.TgZ(10,"button",5),c.NdJ("click",function(){return t.onAdd()}),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.qZA(),c.qZA()),2&e&&(c.Tol(t.theme),c.xp6(2),c.Oqu(c.lcZ(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),c.xp6(2),c.Q6J("ngIf",t.loading),c.xp6(1),c.Q6J("ngIf",!t.loading),c.xp6(3),c.hij(" ",c.lcZ(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),c.xp6(2),c.Q6J("disabled",0===t.selection.selected.length||t.loading),c.xp6(1),c.hij(" ",c.lcZ(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.ADD_BUTTON")," "))},directives:[r.uh,d.O5,r.H8,g.lW,h.$g,r.xY,p.P,m.Q],pipes:[u.X$],styles:[""]}),e})();var R=i(67033);function E(e,t){1&e&&c._UZ(0,"mat-spinner",6)}function Z(e,t){1&e&&c._UZ(0,"th",15)}function T(e,t){if(1&e&&(c.TgZ(0,"td",16),c._uU(1),c.qZA()),2&e){const e=t.$implicit;c.xp6(1),c.hij(" ",e.name," ")}}function I(e,t){1&e&&c._UZ(0,"tr",17)}function C(e,t){1&e&&c._UZ(0,"tr",18)}function v(e,t){if(1&e&&(c.TgZ(0,"div",7),c.TgZ(1,"p"),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",8),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"table",9),c.ynx(8,10),c.YNc(9,Z,1,0,"th",11),c.YNc(10,T,2,1,"td",12),c.BQk(),c.YNc(11,I,1,0,"tr",13),c.YNc(12,C,1,0,"tr",14),c.qZA(),c.qZA()),2&e){const e=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,5,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DESCRIPTION")," "),c.xp6(3),c.hij(" ",c.lcZ(6,7,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.ASK")," "),c.xp6(2),c.Q6J("dataSource",e.dataSource),c.xp6(4),c.Q6J("matHeaderRowDef",e.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",e.displayedColumns)}}let O=(()=>{class e{constructor(e,t,i,s,a){this.dialogRef=e,this.data=t,this.notificator=i,this.translate=s,this.resourcesManager=a,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new R.by(this.data.services)}onSubmit(){this.loading=!0;const e=[];for(const t of this.data.services)e.push(t.id);this.resourcesManager.removeServices(this.data.resourceId,e).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(r.so),c.Y36(r.WI),c.Y36(l.V6),c.Y36(u.sK),c.Y36(s.xk))},e.\u0275cmp=c.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,E,1,0,"mat-spinner",1),c.YNc(5,v,13,9,"div",2),c.TgZ(6,"div",3),c.TgZ(7,"button",4),c.NdJ("click",function(){return t.onCancel()}),c._uU(8),c.ALo(9,"translate"),c.qZA(),c.TgZ(10,"button",5),c.NdJ("click",function(){return t.onSubmit()}),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.qZA(),c.qZA()),2&e&&(c.Tol(t.theme),c.xp6(2),c.Oqu(c.lcZ(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),c.xp6(2),c.Q6J("ngIf",t.loading),c.xp6(1),c.Q6J("ngIf",!t.loading),c.xp6(3),c.hij(" ",c.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),c.xp6(2),c.Q6J("disabled",t.loading),c.xp6(1),c.hij(" ",c.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},directives:[r.uh,d.O5,r.H8,g.lW,h.$g,r.xY,R.BZ,R.w1,R.fO,R.Dz,R.as,R.nj,R.ge,R.ev,R.XQ,R.Gk],pipes:[u.X$],styles:[""]}),e})();var _=i(57629),x=i(59403),N=i(19139);function D(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"button",7),c.NdJ("click",function(){return c.CHM(e),c.oxw().addService()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&e&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_SERVICES.ADD_SERVICE"),"\n"))}function U(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",function(){return c.CHM(e),c.oxw().removeServices()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&e){const e=c.oxw();c.Q6J("disabled",0===e.selected.selected.length),c.xp6(1),c.hij(" ",c.lcZ(2,2,"RESOURCE_DETAIL.ASSIGNED_SERVICES.REMOVE_SERVICE"),"\n")}}function w(e,t){1&e&&c._UZ(0,"mat-spinner",9)}function L(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"app-services-list",10),c.NdJ("page",function(t){return c.CHM(e),c.oxw().pageChanged(t)}),c.qZA()}if(2&e){const e=c.oxw();c.Q6J("pageSize",e.pageSize)("services",e.assignedServices)("selection",e.selected)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("disableRouting",!e.serviceRoutingAuth)}}let y=(()=>{class e{constructor(e,t,i,s,n){this.route=e,this.resourcesManager=t,this.tableConfigService=i,this.dialog=s,this.guiAuthResolver=n,this.assignedServices=[],this.selected=new o.Ov(!0,[]),this.tableId=a.uC,this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"]}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(e=>{this.resourceId=e.resourceId,this.resourcesManager.getResourceById(this.resourceId).subscribe(e=>{this.resource=e,this.getDataForAuthorization(),this.loadAllServices()})})}loadAllServices(){this.loading=!0,this.resourcesManager.getAssignedServicesToResource(this.resourceId).subscribe(e=>{this.assignedServices=e,this.selected.clear(),this.loading=!1})}addService(){const e=(0,n.kZ)();e.width="800px",e.data={theme:"resource-theme",resourceId:this.resourceId},this.dialog.open(b,e).afterClosed().subscribe(e=>{e&&this.loadAllServices()})}removeServices(){const e=(0,n.kZ)();e.width="500px",e.data={theme:"resource-theme",resourceId:this.resourceId,services:this.selected.selected},this.dialog.open(O,e).afterClosed().subscribe(e=>{e&&this.loadAllServices()})}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}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 e.\u0275fac=function(t){return new(t||e)(c.Y36(_.gz),c.Y36(s.xk),c.Y36(a.dB),c.Y36(r.uw),c.Y36(l.x4))},e.\u0275cmp=c.Xpm({type:e,selectors:[["app-perun-web-apps-resource-assigned-services"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","ml-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","services","selection","filterValue","displayedColumns","disableRouting","page",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","services","selection","filterValue","displayedColumns","disableRouting","page"]],template:function(e,t){1&e&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return t.loadAllServices()}),c.qZA(),c.YNc(4,D,3,3,"button",2),c.YNc(5,U,3,4,"button",3),c.TgZ(6,"perun-web-apps-immediate-filter",4),c.NdJ("filter",function(e){return t.applyFilter(e)}),c.qZA(),c.YNc(7,w,1,0,"mat-spinner",5),c.YNc(8,L,1,6,"app-services-list",6)),2&e&&(c.xp6(1),c.Oqu(c.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),c.xp6(3),c.Q6J("ngIf",!t.loadingResource&&t.assignServiceAuth),c.xp6(1),c.Q6J("ngIf",!t.loadingResource&&t.removeServiceAuth),c.xp6(1),c.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),c.xp6(1),c.Q6J("ngIf",t.loading),c.xp6(1),c.Q6J("ngIf",!t.loading))},directives:[x.t,d.O5,N.L,g.lW,h.$g,m.Q],pipes:[u.X$],styles:[""]}),e})()},79472:function(e,t,i){"use strict";i.d(t,{X:function(){return R}});var s=i(88426),a=i(33642),o=i(31572),n=i(57629),r=i(55109),l=i(61511),c=i(541),u=i(69012),d=i(48160);function g(e,t){1&e&&(o._uU(0),o.ALo(1,"translate")),2&e&&o.hij(" ",o.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function h(e,t){if(1&e&&o._UZ(0,"app-one-entity-attribute-page",4),2&e){const e=o.oxw();o.Q6J("entity","resource")("entityId",e.resourceId)}}function p(e,t){1&e&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&e&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function m(e,t){if(1&e&&o._UZ(0,"app-two-entity-attribute-page",5),2&e){const e=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",e.resourceId)("secondEntity","member")}}function f(e,t){1&e&&(o.TgZ(0,"mat-tab"),o.YNc(1,p,3,6,"ng-template",1),o.YNc(2,m,1,3,"ng-template",2),o.qZA())}function A(e,t){1&e&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&e&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function S(e,t){if(1&e&&o._UZ(0,"app-two-entity-attribute-page",5),2&e){const e=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",e.resourceId)("secondEntity","group")}}function b(e,t){1&e&&(o.TgZ(0,"mat-tab"),o.YNc(1,A,3,6,"ng-template",1),o.YNc(2,S,1,3,"ng-template",2),o.qZA())}let R=(()=>{class e{constructor(e,t,i){this.route=e,this.authResolver=t,this.resourceManager=i}ngOnInit(){this.route.parent.params.subscribe(e=>{this.resourceId=parseInt(e.resourceId,10),this.resourceManager.getResourceById(this.resourceId).subscribe(e=>{this.resource=e,this.resourceGroupAttAuth=this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[this.resource]),this.resourceMemberAttAuth=this.authResolver.isAuthorized("getAssignedRichMembers_Resource_policy",[this.resource])})})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(n.gz),o.Y36(s.x4),o.Y36(a.xk))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,t){1&e&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-tab-group"),o.TgZ(5,"mat-tab"),o.YNc(6,g,2,3,"ng-template",1),o.YNc(7,h,1,2,"ng-template",2),o.qZA(),o.YNc(8,f,3,0,"mat-tab",3),o.YNc(9,b,3,0,"mat-tab",3),o.qZA(),o.qZA()),2&e&&(o.xp6(2),o.Oqu(o.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),o.xp6(6),o.Q6J("ngIf",t.resourceMemberAttAuth),o.xp6(1),o.Q6J("ngIf",t.resourceGroupAttAuth))},directives:[r.SP,r.uX,r.uD,r.Vc,l.O5,c.t,u.Y],pipes:[d.X$],styles:[""]}),e})()},72920:function(e,t,i){"use strict";i.d(t,{b:function(){return y}});var s=i(17),a=i(75585),o=i(33642),n=i(84140),r=i(88426),l=i(22280),c=i(61189),u=i(95909),d=i(31572),g=i(57629),h=i(48958),p=i(84608),m=i(66297),f=i(61511),A=i(67806),S=i(43691),b=i(36922),R=i(21575),E=i(15980),Z=i(48160);function T(e,t){1&e&&d._UZ(0,"mat-spinner",3)}function I(e,t){if(1&e){const e=d.EpF();d.TgZ(0,"button",15),d.NdJ("click",function(){return d.CHM(e),d.oxw(2).editResource()}),d.TgZ(1,"mat-icon"),d._uU(2,"edit"),d.qZA(),d.qZA()}}function C(e,t){if(1&e){const e=d.EpF();d.TgZ(0,"button",16),d.NdJ("click",function(){return d.CHM(e),d.oxw(2).deleteResource()}),d.TgZ(1,"mat-icon"),d._uU(2,"delete_forever"),d.qZA(),d.qZA()}}const v=function(e){return["/organizations",e]};function O(e,t){if(1&e&&(d.TgZ(0,"a",8),d._uU(1),d.qZA()),2&e){const e=d.oxw(2);d.Q6J("routerLink",d.VKq(2,v,e.resource.vo.id)),d.xp6(1),d.Oqu(e.resource.vo.name)}}function _(e,t){if(1&e&&(d.TgZ(0,"span"),d._uU(1),d.qZA()),2&e){const e=d.oxw(2);d.xp6(1),d.hij(" ",e.resource.vo.name," ")}}const x=function(e){return["/facilities",e]};function N(e,t){if(1&e&&(d.TgZ(0,"a",8),d._uU(1),d.qZA()),2&e){const e=d.oxw(2);d.Q6J("routerLink",d.VKq(2,x,e.resource.facilityId)),d.xp6(1),d.Oqu(e.resource.facility.name)}}function D(e,t){if(1&e&&(d.TgZ(0,"span"),d._uU(1),d.qZA()),2&e){const e=d.oxw(2);d.xp6(1),d.hij(" ",e.resource.facility.name," ")}}const U=function(){return{color:"black"}},w=function(e){return[e]};function L(e,t){if(1&e&&(d.TgZ(0,"div"),d.TgZ(1,"div",4),d._UZ(2,"mat-icon",5),d.ALo(3,"translate"),d.TgZ(4,"div",6),d.TgZ(5,"div",7),d.TgZ(6,"a",8),d._uU(7),d.qZA(),d.TgZ(8,"span",9),d._uU(9),d.qZA(),d.YNc(10,I,3,0,"button",10),d.YNc(11,C,3,0,"button",11),d.qZA(),d.TgZ(12,"div"),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.TgZ(15,"span",12),d._uU(16),d.ALo(17,"translate"),d.ALo(18,"translate"),d.YNc(19,O,2,4,"a",13),d.YNc(20,_,2,1,"span",2),d._uU(21),d.ALo(22,"translate"),d.YNc(23,N,2,4,"a",14),d.YNc(24,D,2,1,"span",2),d._uU(25),d.ALo(26,"translate"),d.qZA(),d.qZA(),d.qZA(),d._UZ(27,"app-animated-router-outlet"),d.qZA()),2&e){const e=d.oxw();d.xp6(2),d.s9C("matTooltip",d.lcZ(3,20,"RESOURCE_DETAIL.ENTITY")),d.Q6J("ngStyle",d.DdM(32,U)),d.xp6(4),d.Q6J("routerLink",d.VKq(33,w,e.baseUrl)),d.xp6(1),d.hij(" ",e.resource.name," "),d.xp6(2),d.hij(" \xa0#",e.resource.id," "),d.xp6(1),d.Q6J("ngIf",e.editResourceAuth),d.xp6(1),d.Q6J("ngIf",e.deleteAuth),d.xp6(2),d.AsE(" ",d.lcZ(14,22,"RESOURCE_DETAIL.UUID"),": ",e.resource.uuid," "),d.xp6(3),d.AsE(" ",d.lcZ(17,24,"RESOURCE_DETAIL.ENTITY"),", ",d.lcZ(18,26,"RESOURCE_DETAIL.VO"),": "),d.xp6(3),d.Q6J("ngIf",e.voLinkAuth),d.xp6(1),d.Q6J("ngIf",!e.voLinkAuth),d.xp6(1),d.AsE(" #",e.resource.voId,", ",d.lcZ(22,28,"RESOURCE_DETAIL.FACILITY"),": "),d.xp6(2),d.Q6J("ngIf",e.facilityLinkAuth),d.xp6(1),d.Q6J("ngIf",!e.facilityLinkAuth),d.xp6(1),d.lnq(" #",e.resource.facilityId,", ",d.lcZ(26,30,"RESOURCE_DETAIL.DESCRIPTION"),": ",e.resource.description," ")}}let y=(()=>{class e{constructor(e,t,i,s,a,o,n,r,l){this.route=e,this.facilityManager=t,this.vosManagerService=i,this.resourcesManager=s,this.sideMenuService=a,this.sideMenuItemService=o,this.dialog=n,this.guiAuthResolver=r,this.router=l,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.resourcesManager.getRichResourceById(e.resourceId).subscribe(e=>{this.resource=e,this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new l.r5).transform(e,!1),this.facilityManager.getFacilityById(e.facilityId).subscribe(t=>{const i=this.sideMenuItemService.parseFacility(t),s=this.sideMenuItemService.parseResource(e,!1);this.sideMenuService.setFacilityMenuItems([i,s]),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new l.r5).transform(e,!0),this.vosManagerService.getVoById(e.voId).subscribe(t=>{const i=this.sideMenuItemService.parseVo(t),s=this.sideMenuItemService.parseResource(e,!0);this.sideMenuService.setAccessMenuItems([i,s]),this.loading=!1},()=>this.loading=!1)),(0,n.sF)("resources",this.resource)})})}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])}editResource(){let e;this.resourcesManager.getResourceById(this.resource.id).subscribe(t=>{e=t;const i=(0,n.kZ)();i.width="450px",i.data={theme:"resource-theme",resource:e,dialogType:c.Eg.RESOURCE},this.dialog.open(c.rd,i).afterClosed().subscribe(e=>{e&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(e=>{this.resource=e})})})}deleteResource(){const e=(0,n.kZ)();e.width="500px",e.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(u.f,e).afterClosed().subscribe(e=>{e&&this.router.navigate(["../"],{relativeTo:this.route})})}}return e.\u0275fac=function(t){return new(t||e)(d.Y36(g.gz),d.Y36(o.IQ),d.Y36(o.YF),d.Y36(o.xk),d.Y36(h.D),d.Y36(a.V),d.Y36(p.uw),d.Y36(r.x4),d.Y36(g.F0))},e.\u0275cmp=d.Xpm({type:e,selectors:[["app-resource-detail-page"]],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"],["mat-icon-button","","aria-label","Edit resource",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"],["mat-icon-button","","aria-label","Edit resource",3,"click"],["mat-icon-button","",3,"click"]],template:function(e,t){1&e&&(d.TgZ(0,"div",0),d._UZ(1,"perun-web-apps-back-button"),d.YNc(2,T,1,0,"mat-spinner",1),d.YNc(3,L,28,35,"div",2),d.qZA()),2&e&&(d.xp6(2),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading&&void 0!==t.resource))},directives:[m.W,f.O5,A.$g,S.Hw,b.gM,f.PC,g.yS,R.A,E.lW],pipes:[Z.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[s.Ji]}}),e})()},42473:function(e,t,i){"use strict";i.d(t,{K:function(){return Q}});var s=i(33642),a=i(4230),o=i(84608),n=i(67033),r=i(88426),l=i(31572),c=i(48160),u=i(61511),d=i(15980),g=i(67806);function h(e,t){1&e&&l._UZ(0,"mat-spinner",6)}function p(e,t){1&e&&l._UZ(0,"th",15)}function m(e,t){if(1&e&&(l.TgZ(0,"td",16),l._uU(1),l.qZA()),2&e){const e=t.$implicit;l.xp6(1),l.hij(" ",e.name," ")}}function f(e,t){1&e&&l._UZ(0,"tr",17)}function A(e,t){1&e&&l._UZ(0,"tr",18)}function S(e,t){if(1&e&&(l.TgZ(0,"div",7),l.TgZ(1,"p"),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",8),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.TgZ(7,"table",9),l.ynx(8,10),l.YNc(9,p,1,0,"th",11),l.YNc(10,m,2,1,"td",12),l.BQk(),l.YNc(11,f,1,0,"tr",13),l.YNc(12,A,1,0,"tr",14),l.qZA(),l.qZA()),2&e){const e=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),l.xp6(3),l.hij(" ",l.lcZ(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),l.xp6(2),l.Q6J("dataSource",e.dataSource),l.xp6(4),l.Q6J("matHeaderRowDef",e.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",e.displayedColumns)}}let b=(()=>{class e{constructor(e,t,i,s,a){this.dialogRef=e,this.data=t,this.notificator=i,this.translate=s,this.resourceManager=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new n.by(this.data.groups)}onCancel(){this.dialogRef.close()}onSubmit(){const e=[];for(const t of this.data.groups)e.push(t.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(e,this.data.resourceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(l.Y36(o.so),l.Y36(o.WI),l.Y36(r.V6),l.Y36(c.sK),l.Y36(s.xk))},e.\u0275cmp=l.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,h,1,0,"mat-spinner",1),l.YNc(5,S,13,9,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return t.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return t.onSubmit()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&e&&(l.Tol(t.theme),l.xp6(2),l.Oqu(l.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),l.xp6(2),l.Q6J("ngIf",t.loading),l.xp6(1),l.Q6J("ngIf",!t.loading),l.xp6(3),l.hij(" ",l.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),l.xp6(2),l.Q6J("disabled",t.loading),l.xp6(1),l.hij(" ",l.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},directives:[o.uh,u.O5,o.H8,d.lW,g.$g,o.xY,n.BZ,n.w1,n.fO,n.Dz,n.as,n.nj,n.ge,n.ev,n.XQ,n.Gk],pipes:[c.X$],styles:[""]}),e})();var R=i(60611),E=i(29236),Z=i(36922),T=i(16073),I=i(91058),C=i(78364);function v(e,t){1&e&&l._UZ(0,"mat-spinner",7)}const O=function(){return["select","id","name","description"]};function _(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"div",8),l.TgZ(1,"perun-web-apps-debounce-filter",9),l.NdJ("filter",function(t){return l.CHM(e),l.oxw().applyFilter(t)}),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"perun-web-apps-groups-list",10),l.NdJ("page",function(t){return l.CHM(e),l.oxw().pageChanged(t)}),l.qZA(),l.qZA()}if(2&e){const e=l.oxw();l.xp6(1),l.s9C("placeholder",l.lcZ(2,8,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),l.xp6(2),l.Q6J("pageSize",e.pageSize)("groups",e.unAssignedGroups)("selection",e.selection)("filter",e.filterValue)("displayedColumns",l.DdM(10,O))("disableRouting",!0)("disableMembers",!1)}}let x=(()=>{class e{constructor(e,t,i,s,o,n,r,l){this.dialogRef=e,this.data=t,this.notificator=i,this.translate=s,this.resourceManager=o,this.tableConfigService=n,this.groupService=r,this.guiAuthResolver=l,this.loading=!1,this.checkGroups=!1,this.async=!0,this.selection=new a.Ov(!0,[]),this.filterValue="",this.tableId=R.cL}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.resource=this.data.resource,this.resourceManager.getAssignedGroups(this.resource.id).subscribe(e=>{this.groupService.getAllGroups(this.resource.voId).subscribe(t=>{this.unAssignedGroups=t;for(const i of e)for(const e of t)i.id===e.id&&this.unAssignedGroups.splice(this.unAssignedGroups.indexOf(e),1);this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}onAdd(){if(this.checkGroups);else{this.loading=!0;const e=[];for(const t of this.selection.selected)e.push(t.id);this.resourceManager.assignGroupsToResource(e,this.resource.id,this.async).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}canAddGroups(){let e=!0;return this.selection.selected.forEach(t=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,t])||(e=!1)}),e}}return e.\u0275fac=function(t){return new(t||e)(l.Y36(o.so),l.Y36(o.WI),l.Y36(r.V6),l.Y36(c.sK),l.Y36(s.xk),l.Y36(R.dB),l.Y36(s.ff),l.Y36(r.x4))},e.\u0275cmp=l.Xpm({type:e,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],decls:18,vars:26,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions",""],[3,"matTooltip","ngModel","ngModelChange"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","matTooltip","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"pageSize","groups","selection","filter","displayedColumns","disableRouting","disableMembers","page"]],template:function(e,t){1&e&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,v,1,0,"mat-spinner",1),l.YNc(5,_,4,11,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"mat-checkbox",4),l.NdJ("ngModelChange",function(e){return t.async=e}),l.ALo(8,"translate"),l._uU(9),l.ALo(10,"translate"),l.qZA(),l.TgZ(11,"button",5),l.NdJ("click",function(){return t.onCancel()}),l._uU(12),l.ALo(13,"translate"),l.qZA(),l.TgZ(14,"button",6),l.NdJ("click",function(){return t.onAdd()}),l.ALo(15,"translate"),l._uU(16),l.ALo(17,"translate"),l.qZA(),l.qZA(),l.qZA()),2&e&&(l.Tol(t.theme),l.xp6(2),l.Oqu(l.lcZ(3,14,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),l.xp6(2),l.Q6J("ngIf",t.loading),l.xp6(1),l.Q6J("ngIf",!t.loading),l.xp6(2),l.s9C("matTooltip",l.lcZ(8,16,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT_DESCRIPTION")),l.Q6J("ngModel",t.async),l.xp6(2),l.hij(" ",l.lcZ(10,18,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),l.xp6(3),l.hij(" ",l.lcZ(13,20,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(15,22,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_TOOLTIP")),l.Q6J("disabled",0===t.selection.selected.length||!t.canAddGroups()||t.loading)("matTooltipDisabled",t.canAddGroups()),l.xp6(2),l.hij(" ",l.lcZ(17,24,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))},directives:[o.uh,u.O5,o.H8,E.oG,Z.gM,T.JJ,T.On,d.lW,g.$g,o.xY,I.P,C.W],pipes:[c.X$],styles:[""]}),e})();var N=i(84140),D=i(67004),U=i(57629),w=i(59403),L=i(39571);const y=["checkbox"];function M(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"button",9),l.NdJ("click",function(){return l.CHM(e),l.oxw().addGroup()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function G(e,t){1&e&&l._UZ(0,"mat-spinner",10)}const Y=function(e){return[e]},q=function(){return["select","id","name","status","description"]};function J(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"div",11),l.TgZ(1,"perun-web-apps-groups-list",12),l.NdJ("page",function(t){return l.CHM(e),l.oxw().pageChanged(t)})("refreshTable",function(){return l.CHM(e),l.oxw().loadAllGroups()}),l.qZA(),l.qZA()}if(2&e){const e=l.oxw();l.xp6(1),l.Q6J("pageSize",e.pageSize)("groups",e.assignedGroups)("filter",e.filteredValue)("selection",e.selected)("disableMembers",!1)("resourceId",e.resourceId)("disableRouting",!e.guiAuthResolver.isAuthorized("getGroupById_int_policy",l.VKq(8,Y,e.assignedGroups[0])))("displayedColumns",l.DdM(10,q))}}function k(e,t){1&e&&(l.TgZ(0,"app-alert",13),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.NO_GROUPS"),"\n"))}let Q=(()=>{class e{constructor(e,t,i,s,o,n){this.route=e,this.resourcesManager=t,this.vosManagerService=i,this.tableConfigService=s,this.dialog=o,this.guiAuthResolver=n,this.assignedGroups=[],this.selected=new a.Ov(!0,[]),this.filteredValue="",this.tableId=R.Ad}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(e=>{this.resourceId=e.resourceId,this.getDataForAuthorization(),this.loadAllGroups()})}loadAllGroups(){this.loading=!0,this.resourcesManager.getGroupAssignments(this.resourceId,[D.r.GROUP_SYNC_ENABLED]).subscribe(e=>{this.assignedGroups=e.map(e=>{const t=e.enrichedGroup.group;return t.status=e.status,t.failureCause=e.failureCause,t}),this.selected.clear(),this.loading=!1})}addGroup(){const e=(0,N.kZ)();e.width="800px",e.data={theme:"resource-theme",resource:this.resource},this.dialog.open(x,e).afterClosed().subscribe(e=>{e&&this.loadAllGroups()})}removeGroups(){const e=(0,N.kZ)();e.width="500px",e.data={resourceId:this.resourceId,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(b,e).afterClosed().subscribe(e=>{e&&this.loadAllGroups()})}canRemoveGroups(){let e=!0;return this.selected.selected.forEach(t=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,t])||(e=!1)}),e}applyFilter(e){this.filteredValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}getDataForAuthorization(){this.loadingResource=!0,this.resourcesManager.getResourceById(this.resourceId).subscribe(e=>{this.resource=e,this.loadingResource=!1})}}return e.\u0275fac=function(t){return new(t||e)(l.Y36(U.gz),l.Y36(s.xk),l.Y36(s.YF),l.Y36(R.dB),l.Y36(o.uw),l.Y36(r.x4))},e.\u0275cmp=l.Xpm({type:e,selectors:[["app-perun-web-apps-resource-groups"]],viewQuery:function(e,t){if(1&e&&l.Gf(y,7),2&e){let e;l.iGM(e=l.CRH())&&(t.checkbox=e.first)}},decls:14,vars:18,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","mat-flat-button","",1,"ml-2","mr-2",3,"disabled","click"],[3,"matTooltipDisabled","matTooltip"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["alert_type","warn",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"pageSize","groups","filter","selection","disableMembers","resourceId","disableRouting","displayedColumns","page","refreshTable"],["alert_type","warn"]],template:function(e,t){1&e&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"perun-web-apps-refresh-button",1),l.NdJ("refresh",function(){return t.loadAllGroups()}),l.qZA(),l.YNc(4,M,3,3,"button",2),l.TgZ(5,"button",3),l.NdJ("click",function(){return t.removeGroups()}),l.TgZ(6,"span",4),l.ALo(7,"translate"),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.qZA(),l.TgZ(10,"perun-web-apps-debounce-filter",5),l.NdJ("filter",function(e){return t.applyFilter(e)}),l.qZA(),l.YNc(11,G,1,0,"mat-spinner",6),l.YNc(12,J,2,11,"div",7),l.YNc(13,k,3,3,"app-alert",8)),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,10,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),l.xp6(3),l.Q6J("ngIf",!t.loadingResource&&t.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",l.VKq(16,Y,t.resource))),l.xp6(1),l.Q6J("disabled",0===t.selected.selected.length||!t.canRemoveGroups()),l.xp6(1),l.s9C("matTooltip",l.lcZ(7,12,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),l.Q6J("matTooltipDisabled",t.canRemoveGroups()),l.xp6(2),l.hij(" ",l.lcZ(9,14,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),l.xp6(2),l.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),l.xp6(1),l.Q6J("ngIf",t.loading),l.xp6(1),l.Q6J("ngIf",!t.loading&&0!==t.assignedGroups.length),l.xp6(1),l.Q6J("ngIf",0===t.assignedGroups.length&&!t.loading))},directives:[w.t,u.O5,d.lW,Z.gM,I.P,g.$g,C.W,L.w],pipes:[c.X$],styles:[""]}),e})()},76527:function(e,t,i){"use strict";i.d(t,{H:function(){return g}});var s=i(33642),a=i(88426),o=i(31572),n=i(57629),r=i(61511),l=i(67806),c=i(8557);function u(e,t){1&e&&o._UZ(0,"mat-spinner",2)}function d(e,t){if(1&e&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("items",e.navItems)("size","small")}}let g=(()=>{class e{constructor(e,t,i){this.resourcesManager=e,this.route=t,this.guiAuthResolver=i,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.resourcesManager.getResourceById(e.resourceId).subscribe(e=>{this.resource=e,this.initItems("facilities"!==this.route.parent.parent.snapshot.url[0].path),this.loading=!1},()=>this.loading=!1)})}initItems(e){const t=e?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`;this.navItems=[],this.guiAuthResolver.isAuthorized("getAssignedGroups_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-group",url:`${t}/resources/${this.resource.id}/groups`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedServices_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-service",url:`/${t}/resources/${this.resource.id}/services`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedMembers_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-user",url:`${t}/resources/${this.resource.id}/members`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-resource-tags",url:`${t}/resources/${this.resource.id}/tags`,label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`${t}/resources/${this.resource.id}/attributes`,label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.guiAuthResolver.isManagerPagePrivileged(this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:`${t}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(s.xk),o.Y36(n.gz),o.Y36(a.x4))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.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,t){1&e&&(o.YNc(0,u,1,0,"mat-spinner",0),o.YNc(1,d,2,2,"div",1)),2&e&&(o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading))},directives:[r.O5,l.$g,c.L],styles:[""]}),e})()},64359:function(e,t,i){"use strict";i.d(t,{O:function(){return u}});var s=i(33642),a=i(88426),o=i(31572),n=i(57629),r=i(61511),l=i(489);function c(e,t){if(1&e&&o._UZ(0,"app-managers-page",1),2&e){const e=o.oxw();o.Q6J("complementaryObject",e.resource)("complementaryObjectType",e.type)("theme",e.theme)("availableRoles",e.availableRoles)}}let u=(()=>{class e{constructor(e,t,i){this.route=e,this.resourceService=t,this.guiAuthResolver=i,this.availableRoles=[],this.type="Resource",this.theme="resource-theme"}ngOnInit(){this.route.parent.parent.params.subscribe(e=>{this.resourceService.getResourceById(e.resourceId).subscribe(e=>{this.resource=e})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Resource")}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(n.gz),o.Y36(s.xk),o.Y36(a.x4))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-settings-managers"]],decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(e,t){1&e&&o.YNc(0,c,1,4,"app-managers-page",0),2&e&&o.Q6J("ngIf",t.resource)},directives:[r.O5,l.s],styles:[""]}),e})()},22927:function(e,t,i){"use strict";i.d(t,{h:function(){return g}});var s=i(33642),a=i(88426),o=i(31572),n=i(57629),r=i(61511),l=i(67806),c=i(8557);function u(e,t){1&e&&o._UZ(0,"mat-spinner",2)}function d(e,t){if(1&e&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("items",e.items)("size","small")}}let g=(()=>{class e{constructor(e,t,i){this.route=e,this.resourceManager=t,this.authResolver=i,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.resourceManager.getResourceById(e.resourceId).subscribe(e=>{this.resource=e,this.initItems("facilities"!==this.route.parent.parent.parent.snapshot.url[0].path),this.loading=!1},()=>this.loading=!1)})}initItems(e){this.items=[],this.authResolver.isManagerPagePrivileged(this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${e?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(n.gz),o.Y36(s.xk),o.Y36(a.x4))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.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,t){1&e&&(o.YNc(0,u,1,0,"mat-spinner",0),o.YNc(1,d,2,2,"div",1)),2&e&&(o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading))},directives:[r.O5,l.$g,c.L],styles:[""]}),e})()},77968:function(e,t,i){"use strict";i.d(t,{t:function(){return n}});var s=i(17),a=i(31572),o=i(21575);let n=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("router-component",t.true)},decls:1,vars:0,template:function(e,t){1&e&&a._UZ(0,"app-animated-router-outlet")},directives:[o.A],styles:[""],data:{animation:[s.Ji]}}),e})()},53134:function(e,t,i){"use strict";i.d(t,{v:function(){return _}});var s=i(33642),a=i(4230),o=i(60611),n=i(84140),r=i(88426),l=i(61189),c=i(84608),u=i(31572),d=i(61511),g=i(15980),h=i(67806),p=i(4196),m=i(48160);function f(e,t){1&e&&u._UZ(0,"mat-spinner",8)}function A(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"app-resources-tags-list",9),u.NdJ("page",function(t){return u.CHM(e),u.oxw().pageChanged(t)}),u.qZA()}if(2&e){const e=u.oxw();u.Q6J("selection",e.selection)("pageSize",e.pageSize)("resourceTags",e.resourceTags)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("entity","resource")}}let S=(()=>{class e{constructor(e,t,i,s){this.dialogRef=e,this.data=t,this.tableConfigService=i,this.resourcesManager=s,this.tableId=o.g,this.selection=new a.Ov(!0,[]),this.resourceTags=[],this.displayedColumns=["select","id","name"]}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),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(e=>{this.resourceTags=e.filter(e=>this.assignedTags.map(e=>e.id).indexOf(e.id)<=-1),this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(e){if(0===e.length)return this.dialogRef.close(!0);const t=e.pop();this.resourcesManager.assignResourceTagToResource({resource:this.resourceId,resourceTag:t}).subscribe(()=>{this.onSubmit(e)})}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(c.so),u.Y36(c.WI),u.Y36(o.dB),u.Y36(s.xk))},e.\u0275cmp=u.Xpm({type:e,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","pageSize","resourceTags","filterValue","displayedColumns","entity","page",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,"mr-auto","ml-auto"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page"]],template:function(e,t){1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",1),u.TgZ(5,"div",2),u.YNc(6,f,1,0,"mat-spinner",3),u.qZA(),u.YNc(7,A,1,6,"app-resources-tags-list",4),u.qZA(),u.TgZ(8,"div",5),u.TgZ(9,"button",6),u.NdJ("click",function(){return t.onCancel()}),u._uU(10),u.ALo(11,"translate"),u.qZA(),u.TgZ(12,"button",7),u.NdJ("click",function(){return t.onSubmit(t.selection.selected)}),u._uU(13),u.ALo(14,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),u.xp6(4),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading),u.xp6(3),u.hij(" ",u.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",t.loading||0===t.resourceTags.length),u.xp6(1),u.hij(" ",u.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},directives:[c.uh,c.xY,d.O5,c.H8,g.lW,h.$g,p.o],pipes:[m.X$],styles:[""]}),e})();var b=i(24923),R=i(57629),E=i(59403),Z=i(19139);function T(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",8),u.NdJ("click",function(){return u.CHM(e),u.oxw().create()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function I(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",9),u.NdJ("click",function(){return u.CHM(e),u.oxw().addTag()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function C(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",10),u.NdJ("click",function(){return u.CHM(e),u.oxw().removeTags()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&e){const e=u.oxw();u.Q6J("disabled",0===e.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function v(e,t){1&e&&u._UZ(0,"mat-spinner",11)}function O(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"app-resources-tags-list",12),u.NdJ("page",function(t){return u.CHM(e),u.oxw().pageChanged(t)}),u.qZA()}if(2&e){const e=u.oxw();u.Q6J("selection",e.selection)("pageSize",e.pageSize)("resourceTags",e.resourceTags)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("entity","resource")}}let _=(()=>{class e{constructor(e,t,i,s,n,r,l,c){this.route=e,this.authResolver=t,this.tableConfigService=i,this.resourcesManager=s,this.voService=n,this.dialog=r,this.notificator=l,this.translate=c,this.loading=!1,this.resourceTags=[],this.selection=new a.Ov(!0,[]),this.tableId=o.M8,this.displayedColumns=[]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(e=>{this.resourceId=e.resourceId,this.resourcesManager.getResourceById(this.resourceId).subscribe(e=>{this.resource=e,this.updateData()})})}removeTags(){const e=(0,n.kZ)();e.width="450px",e.data={items:this.selection.selected.map(e=>e.tagName),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme"},this.dialog.open(l.Tf,e).afterClosed().subscribe(e=>{e&&this.removeTag(this.selection.selected)})}removeTag(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData();const t=e.pop();this.resourcesManager.removeResourceTagFromResource({resource:this.resourceId,resourceTag:t}).subscribe(()=>{this.removeTag(e)})}addTag(){const e=(0,n.kZ)();e.width="600px",e.data={voId:this.resource.voId,resourceId:this.resourceId,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(S,e).afterClosed().subscribe(e=>{e&&(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),this.updateData())})}create(){const e=(0,n.kZ)();e.width="450px",e.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(b.p,e).afterClosed().subscribe(e=>{e&&(this.translate.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resourceId).subscribe(e=>{this.resourceTags=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){const e={id:this.resource.voId,beanName:"Vo"};this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[e]),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(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(R.gz),u.Y36(r.x4),u.Y36(o.dB),u.Y36(s.xk),u.Y36(s.YF),u.Y36(c.uw),u.Y36(r.V6),u.Y36(m.sK))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-perun-web-apps-resource-tags"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return t.updateData()}),u.qZA(),u.YNc(4,T,3,3,"button",2),u.YNc(5,I,3,3,"button",3),u.YNc(6,C,3,4,"button",4),u.TgZ(7,"perun-web-apps-immediate-filter",5),u.NdJ("filter",function(e){return t.applyFilter(e)}),u.qZA(),u.YNc(8,v,1,0,"mat-spinner",6),u.YNc(9,O,1,6,"app-resources-tags-list",7)),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,7,"RESOURCE_DETAIL.TAGS.TITLE")),u.xp6(3),u.Q6J("ngIf",t.createAuth),u.xp6(1),u.Q6J("ngIf",t.addAuth),u.xp6(1),u.Q6J("ngIf",t.removeAuth),u.xp6(1),u.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),u.xp6(1),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading))},directives:[E.t,d.O5,Z.L,g.lW,h.$g,p.o],pipes:[m.X$],styles:[""]}),e})()},24923:function(e,t,i){"use strict";i.d(t,{p:function(){return m}});var s=i(84608),a=i(33642),o=i(31572),n=i(61511),r=i(15980),l=i(67806),c=i(66283),u=i(80340),d=i(16073),g=i(48160);function h(e,t){1&e&&o._UZ(0,"mat-spinner",6)}function p(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",7),o.TgZ(1,"mat-form-field"),o.TgZ(2,"input",8),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().name=t}),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-error"),o._uU(5),o.ALo(6,"translate"),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(2),o.s9C("placeholder",o.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),o.Q6J("ngModel",e.name),o.xp6(3),o.Oqu(o.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let m=(()=>{class e{constructor(e,t,i){this.dialogRef=e,this.data=t,this.resourceManager=i,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 e.\u0275fac=function(t){return new(t||e)(o.Y36(s.so),o.Y36(s.WI),o.Y36(a.xk))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["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","accent",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(e,t){1&e&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,h,1,0,"mat-spinner",1),o.YNc(5,p,7,7,"div",2),o.TgZ(6,"div",3),o.TgZ(7,"button",4),o.NdJ("click",function(){return t.onCancel()}),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",5),o.NdJ("click",function(){return t.onSubmit()}),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.Tol(t.theme),o.xp6(2),o.Oqu(o.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),o.xp6(2),o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading),o.xp6(3),o.hij(" ",o.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),o.xp6(2),o.Q6J("disabled",t.loading),o.xp6(1),o.hij(" ",o.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},directives:[s.uh,n.O5,s.H8,r.lW,l.$g,s.xY,c.KE,u.Nt,d.Fj,d.Q7,d.JJ,d.On,c.TO],pipes:[g.X$],styles:[""]}),e})()},489:function(e,t,i){"use strict";i.d(t,{s:function(){return De}});var s=i(4230),a=i(84608),o=i(88426),n=i(33642),r=i(60611),l=i(67004),c=i(16073),u=i(31572),d=i(48160),g=i(57629),h=i(66283),p=i(4786),m=i(61511),f=i(80340),A=i(15980),S=i(71522),b=i(67806),R=i(39571),E=i(86593);let Z=(()=>{class e{constructor(e){this.translate=e,this.prefix="ROLES."}transform(e){const t=this.prefix.concat(e);return this.translate.instant(t)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(d.sK,16))},e.\u0275pipe=u.Yjl({name:"displayedRole",type:e,pure:!0}),e})();function T(e,t){if(1&e&&(u.TgZ(0,"mat-option",15),u._uU(1),u.ALo(2,"displayedRole"),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.Oqu(u.lcZ(2,2,e))}}function I(e,t){1&e&&u._UZ(0,"mat-spinner",16)}function C(e,t){1&e&&(u.TgZ(0,"app-alert",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}const v=function(){return["select","id","name","email","logins","organization"]};function O(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"app-users-list",21),u.NdJ("page",function(t){return u.CHM(e),u.oxw(2).pageChanged(t)}),u.qZA()}if(2&e){const e=u.oxw(2);u.Q6J("pageSize",e.pageSize)("disableRouting",!0)("selection",e.selection)("displayedColumns",u.DdM(5,v))("users",e.users)}}function _(e,t){if(1&e&&(u.TgZ(0,"div",17),u.YNc(1,C,3,3,"app-alert",18),u.YNc(2,O,1,6,"app-users-list",19),u.qZA()),2&e){const e=u.oxw();u.xp6(1),u.Q6J("ngIf",0===e.users.length&&e.firstSearchDone),u.xp6(1),u.Q6J("ngIf",0!==e.users.length)}}let x=(()=>{class e{constructor(e,t,i,a,o,n,l,c,u,d){this.dialogRef=e,this.data=t,this.authzService=i,this.usersService=a,this.translate=o,this.notificator=n,this.storeService=l,this.route=c,this.router=u,this.tableConfigService=d,this.selection=new s.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=r.H2,o.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(e=>this.title=e),o.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(e=>this.successMessage=e)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new c.NI("",[c.kI.required,c.kI.pattern(".*[\\S]+.*")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(e=>e.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 e=[l.r.USER_DEF_ORGANIZATION,l.r.USER_DEF_PREFERRED_MAIL];e=e.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,e).subscribe(e=>{this.users=e,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.so),u.Y36(a.WI),u.Y36(n.Ct),u.Y36(n.Fv),u.Y36(d.sK),u.Y36(o.V6),u.Y36(o.d6),u.Y36(g.gz),u.Y36(g.F0),u.Y36(r.dB))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-add-manager-dialog"]],decls:32,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",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"pageSize","disableRouting","selection","displayedColumns","users","page",4,"ngIf"],["alert_type","warn"],[3,"pageSize","disableRouting","selection","displayedColumns","users","page"]],template:function(e,t){1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",1),u.TgZ(5,"div",2),u.TgZ(6,"mat-form-field",3),u.TgZ(7,"mat-label"),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"mat-select",4),u.NdJ("valueChange",function(e){return t.selectedRole=e}),u.YNc(11,T,3,4,"mat-option",5),u.qZA(),u.qZA(),u.TgZ(12,"mat-form-field",6),u.TgZ(13,"label"),u.TgZ(14,"input",7),u.NdJ("keyup.enter",function(){return t.onSearchByString()}),u.ALo(15,"translate"),u.qZA(),u.qZA(),u.TgZ(16,"mat-error"),u._uU(17),u.ALo(18,"translate"),u.qZA(),u.qZA(),u.qZA(),u.TgZ(19,"button",8),u.NdJ("click",function(){return t.onSearchByString()}),u._uU(20),u.ALo(21,"translate"),u.qZA(),u.TgZ(22,"div",9),u.YNc(23,I,1,0,"mat-spinner",10),u.qZA(),u.YNc(24,_,3,2,"div",11),u.qZA(),u.TgZ(25,"div",12),u.TgZ(26,"button",13),u.NdJ("click",function(){return t.onCancel()}),u._uU(27),u.ALo(28,"translate"),u.qZA(),u.TgZ(29,"button",14),u.NdJ("click",function(){return t.onSubmit()}),u._uU(30),u.ALo(31,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),u.xp6(6),u.Oqu(u.lcZ(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.xp6(2),u.Q6J("value",t.selectedRole),u.xp6(1),u.Q6J("ngForOf",t.availableRoles),u.xp6(3),u.s9C("placeholder",u.lcZ(15,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),u.Q6J("formControl",t.searchCtrl),u.xp6(3),u.hij(" ",u.lcZ(18,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),u.xp6(2),u.Q6J("disabled",t.loading),u.xp6(1),u.hij(" ",u.lcZ(21,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),u.xp6(3),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",null!==t.users&&!t.loading),u.xp6(3),u.hij(" ",u.lcZ(28,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length||void 0===t.selectedRole||t.loading),u.xp6(1),u.hij(" ",u.lcZ(31,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},directives:[a.uh,a.xY,h.KE,h.hX,p.gD,m.sg,f.Nt,c.Fj,c.JJ,c.oH,h.TO,A.lW,m.O5,a.H8,S.ey,b.$g,R.w,E.C],pipes:[d.X$,Z],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),e})();var N=i(67033);function D(e,t){1&e&&u._UZ(0,"th",14)}function U(e,t){if(1&e&&(u.TgZ(0,"td",15),u._uU(1),u.qZA()),2&e){const e=t.$implicit;u.xp6(1),u.AsE(" ",e.firstName," ",e.lastName,"")}}function w(e,t){1&e&&u._UZ(0,"tr",16)}function L(e,t){1&e&&u._UZ(0,"tr",17)}function y(e,t){if(1&e&&(u.TgZ(0,"div",6),u.TgZ(1,"p"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",7),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"table",8),u.ynx(8,9),u.YNc(9,D,1,0,"th",10),u.YNc(10,U,2,2,"td",11),u.BQk(),u.YNc(11,w,1,0,"tr",12),u.YNc(12,L,1,0,"tr",13),u.qZA(),u.qZA()),2&e){const e=u.oxw();u.xp6(2),u.hij(" ",u.lcZ(3,5,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),u.xp6(3),u.hij(" ",u.lcZ(6,7,"DIALOGS.REMOVE_MANAGERS.ASK")," "),u.xp6(2),u.Q6J("dataSource",e.dataSource),u.xp6(4),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns)}}function M(e,t){1&e&&u._UZ(0,"mat-spinner",18)}let G=(()=>{class e{constructor(e,t,i,s,a){this.dialogRef=e,this.data=t,this.notificator=i,this.translate=s,this.authzService=a,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new N.by(this.data.managers),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithUserComplementaryObject({role:this.data.role,users:this.data.managers.map(e=>e.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.so),u.Y36(a.WI),u.Y36(o.V6),u.Y36(d.sK),u.Y36(n.Ct))},e.\u0275cmp=u.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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",""],[1,"mr-auto","ml-auto"]],template:function(e,t){1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,y,13,9,"div",1),u.YNc(5,M,1,0,"mat-spinner",2),u.TgZ(6,"div",3),u.TgZ(7,"button",4),u.NdJ("click",function(){return t.onCancel()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",5),u.NdJ("click",function(){return t.onSubmit()}),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),u.xp6(2),u.Q6J("ngIf",!t.loading),u.xp6(1),u.Q6J("ngIf",t.loading),u.xp6(3),u.hij(" ",u.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",t.loading),u.xp6(1),u.hij(" ",u.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},directives:[a.uh,m.O5,a.H8,A.lW,a.xY,N.BZ,N.w1,N.fO,N.Dz,N.as,N.nj,N.ge,N.ev,N.XQ,N.Gk,b.$g],pipes:[d.X$],styles:[""]}),e})();function Y(e,t){1&e&&u._UZ(0,"mat-spinner",6)}function q(e,t){1&e&&u._UZ(0,"th",15)}function J(e,t){if(1&e&&(u.TgZ(0,"td",16),u._uU(1),u.qZA()),2&e){const e=t.$implicit;u.xp6(1),u.hij(" ",e.name,"")}}function k(e,t){1&e&&u._UZ(0,"tr",17)}function Q(e,t){1&e&&u._UZ(0,"tr",18)}function z(e,t){if(1&e&&(u.TgZ(0,"div",7),u.TgZ(1,"p"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"table",9),u.ynx(8,10),u.YNc(9,q,1,0,"th",11),u.YNc(10,J,2,1,"td",12),u.BQk(),u.YNc(11,k,1,0,"tr",13),u.YNc(12,Q,1,0,"tr",14),u.qZA(),u.qZA()),2&e){const e=u.oxw();u.xp6(2),u.hij(" ",u.lcZ(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),u.xp6(3),u.hij(" ",u.lcZ(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),u.xp6(2),u.Q6J("dataSource",e.dataSource),u.xp6(4),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns)}}let V=(()=>{class e{constructor(e,t,i,s,a){this.dialogRef=e,this.data=t,this.notificator=i,this.translate=s,this.authzService=a,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new N.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(e=>e.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.so),u.Y36(a.WI),u.Y36(o.V6),u.Y36(d.sK),u.Y36(n.Ct))},e.\u0275cmp=u.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,Y,1,0,"mat-spinner",1),u.YNc(5,z,13,9,"div",2),u.TgZ(6,"div",3),u.TgZ(7,"button",4),u.NdJ("click",function(){return t.onCancel()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",5),u.NdJ("click",function(){return t.onSubmit()}),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),u.xp6(2),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading),u.xp6(3),u.hij(" ",u.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",t.loading),u.xp6(1),u.hij(" ",u.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},directives:[a.uh,m.O5,a.H8,A.lW,b.$g,a.xY,N.BZ,N.w1,N.fO,N.Dz,N.as,N.nj,N.ge,N.ev,N.XQ,N.Gk],pipes:[d.X$],styles:[""]}),e})();var P=i(56238),F=i(79996),H=i(40084),j=i(91058),$=i(78364);function B(e,t){if(1&e&&(u.TgZ(0,"mat-option",17),u._uU(1),u.ALo(2,"displayedRole"),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.Oqu(u.lcZ(2,2,e))}}function X(e,t){if(1&e&&(u.TgZ(0,"mat-option",17),u._uU(1),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.hij(" ",e.name," ")}}function W(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"perun-web-apps-debounce-filter",18),u.NdJ("filter",function(t){return u.CHM(e),u.oxw().applyFilter(t)}),u.ALo(1,"translate"),u.qZA()}2&e&&u.s9C("placeholder",u.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function K(e,t){1&e&&u._UZ(0,"mat-spinner",19)}const ee=function(){return["select","id","name","description"]};function te(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"div",20),u.TgZ(1,"perun-web-apps-groups-list",21),u.NdJ("page",function(t){return u.CHM(e),u.oxw().pageChanged(t)}),u.qZA(),u.qZA()}if(2&e){const e=u.oxw();u.xp6(1),u.Q6J("pageSize",e.pageSize)("disableRouting",!0)("displayedColumns",u.DdM(7,ee))("selection",e.selection)("filter",e.filterValue)("groups",e.groups)("disableMembers",!1)}}let ie=(()=>{class e{constructor(e,t,i,a,o,n,l,u,d,g){this.dialogRef=e,this.data=t,this.authzService=i,this.voService=a,this.groupService=o,this.translate=n,this.notificator=l,this.route=u,this.tableConfigService=d,this.router=g,this.searchString="",this.selection=new s.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new c.NI,this.firstSearchDone=!1,this.tableId=r.kZ,n.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(e=>this.title=e),n.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(e=>this.successMessage=e)}displayFn(e){return e?e.name:null}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(e=>e.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>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(e=>{this.filteredOptions=this.myControl.valueChanges.pipe((0,P.O)(""),(0,F.U)(e=>this._filter(e))),this.vos=e,this.loading=!1},()=>this.loading=!1)}_filter(e){const t="string"==typeof e?e.toLowerCase():e.name.toLowerCase;return this.vos.filter(e=>e.name.toLowerCase().includes(t))}showVoGroups(e){this.loading=!0,this.groupService.getAllGroups(e.option.value.id).subscribe(e=>{this.groups=e,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}applyFilter(e){this.filterValue=e}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.so),u.Y36(a.WI),u.Y36(n.Ct),u.Y36(n.YF),u.Y36(n.ff),u.Y36(d.sK),u.Y36(o.V6),u.Y36(g.gz),u.Y36(r.dB),u.Y36(g.F0))},e.\u0275cmp=u.Xpm({type:e,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"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"pageSize","disableRouting","displayedColumns","selection","filter","groups","disableMembers","page"]],template:function(e,t){if(1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",1),u.TgZ(5,"div",2),u.TgZ(6,"mat-form-field",3),u.TgZ(7,"mat-label"),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"mat-select",4),u.NdJ("valueChange",function(e){return t.selectedRole=e}),u.YNc(11,B,3,4,"mat-option",5),u.qZA(),u.qZA(),u.TgZ(12,"mat-form-field",6),u.TgZ(13,"mat-label"),u._uU(14),u.ALo(15,"translate"),u.qZA(),u._UZ(16,"input",7),u.ALo(17,"translate"),u.TgZ(18,"mat-autocomplete",8,9),u.NdJ("optionSelected",function(e){return t.showVoGroups(e)}),u.YNc(20,X,2,2,"mat-option",5),u.ALo(21,"async"),u.qZA(),u.qZA(),u.qZA(),u.YNc(22,W,2,3,"perun-web-apps-debounce-filter",10),u.TgZ(23,"div",11),u.YNc(24,K,1,0,"mat-spinner",12),u.qZA(),u.YNc(25,te,2,8,"div",13),u.qZA(),u.TgZ(26,"div",14),u.TgZ(27,"button",15),u.NdJ("click",function(){return t.onCancel()}),u._uU(28),u.ALo(29,"translate"),u.qZA(),u.TgZ(30,"button",16),u.NdJ("click",function(){return t.onSubmit()}),u._uU(31),u.ALo(32,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e){const e=u.MAs(19);u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,19,"DIALOGS.ADD_GROUPS.TITLE")),u.xp6(6),u.Oqu(u.lcZ(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.xp6(2),u.Q6J("value",t.selectedRole),u.xp6(1),u.Q6J("ngForOf",t.availableRoles),u.xp6(3),u.Oqu(u.lcZ(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),u.xp6(2),u.s9C("placeholder",u.lcZ(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),u.Q6J("formControl",t.myControl)("matAutocomplete",e),u.xp6(2),u.Q6J("displayWith",t.displayFn),u.xp6(2),u.Q6J("ngForOf",u.lcZ(21,27,t.filteredOptions)),u.xp6(2),u.Q6J("ngIf",null!==t.groups&&t.groups.length>0&&!t.loading),u.xp6(2),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",null!==t.groups&&!t.loading),u.xp6(3),u.hij(" ",u.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length||t.loading),u.xp6(1),u.hij(" ",u.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},directives:[a.uh,a.xY,h.KE,h.hX,p.gD,m.sg,f.Nt,c.Fj,H.ZL,c.JJ,c.oH,H.XC,m.O5,a.H8,A.lW,S.ey,j.P,b.$g,$.W],pipes:[d.X$,m.Ov,Z],styles:[""]}),e})();var se=i(84140),ae=i(55109),oe=i(59403);function ne(e,t){1&e&&(u._uU(0),u.ALo(1,"translate")),2&e&&u.hij(" ",u.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function re(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"perun-web-apps-refresh-button",11),u.NdJ("refresh",function(){return u.CHM(e),u.oxw(2).refreshUsers()}),u.qZA()}}function le(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",12),u.NdJ("click",function(){return u.CHM(e),u.oxw(2).addManager()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function ce(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",13),u.NdJ("click",function(){return u.CHM(e),u.oxw(2).removeManager()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&e){const e=u.oxw(2);u.Q6J("disabled",0===e.selectionUsers.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function ue(e,t){if(1&e&&(u.TgZ(0,"mat-option",17),u._uU(1),u.ALo(2,"displayedRole"),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.Oqu(u.lcZ(2,2,e))}}function de(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"mat-form-field",14),u.TgZ(1,"mat-label"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"mat-select",15),u.NdJ("valueChange",function(t){return u.CHM(e),u.oxw(2).selectedRole=t})("selectionChange",function(){return u.CHM(e),u.oxw(2).refreshUsers()}),u.YNc(5,ue,3,4,"mat-option",16),u.qZA(),u.qZA()}if(2&e){const e=u.oxw(2);u.xp6(2),u.Oqu(u.lcZ(3,3,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.xp6(2),u.Q6J("value",e.selectedRole),u.xp6(1),u.Q6J("ngForOf",e.availableRoles)}}function ge(e,t){1&e&&u._UZ(0,"mat-spinner",18)}const he=function(){return["select","id","name","email","logins","organization"]},pe=function(){return["id","name","email","logins","organization"]};function me(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"app-users-list",20),u.NdJ("page",function(t){return u.CHM(e),u.oxw(3).pageChanged(t)}),u.qZA()}if(2&e){const e=u.oxw(3);u.Q6J("pageSize",e.pageSize)("users",e.managers)("disableRouting",!e.routeAuth)("displayedColumns",e.manageAuth?u.DdM(5,he):u.DdM(6,pe))("selection",e.selectionUsers)}}function fe(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,me,1,7,"app-users-list",19),u.qZA()),2&e){const e=u.oxw(2);u.xp6(1),u.Q6J("ngIf",e.managers)}}function Ae(e,t){if(1&e&&(u.YNc(0,re,1,0,"perun-web-apps-refresh-button",5),u.YNc(1,le,3,3,"button",6),u.YNc(2,ce,3,4,"button",7),u.YNc(3,de,6,5,"mat-form-field",8),u.YNc(4,ge,1,0,"mat-spinner",9),u.YNc(5,fe,2,1,"div",10)),2&e){const e=u.oxw();u.Q6J("ngIf",!e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading&&e.manageAuth),u.xp6(1),u.Q6J("ngIf",!e.loading&&e.manageAuth),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading)}}function Se(e,t){1&e&&(u._uU(0),u.ALo(1,"translate")),2&e&&u.hij(" ",u.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function be(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"perun-web-apps-refresh-button",11),u.NdJ("refresh",function(){return u.CHM(e),u.oxw(2).refreshGroups()}),u.qZA()}}function Re(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",12),u.NdJ("click",function(){return u.CHM(e),u.oxw(2).addGroup()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Ee(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",13),u.NdJ("click",function(){return u.CHM(e),u.oxw(2).removeGroup()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&e){const e=u.oxw(2);u.Q6J("disabled",0===e.selectionGroups.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Ze(e,t){if(1&e&&(u.TgZ(0,"mat-option",17),u._uU(1),u.ALo(2,"displayedRole"),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.Oqu(u.lcZ(2,2,e))}}function Te(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"mat-form-field",14),u.TgZ(1,"mat-label"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"mat-select",15),u.NdJ("valueChange",function(t){return u.CHM(e),u.oxw(2).selectedRole=t})("selectionChange",function(){return u.CHM(e),u.oxw(2).refreshGroups()}),u.YNc(5,Ze,3,4,"mat-option",16),u.qZA(),u.qZA()}if(2&e){const e=u.oxw(2);u.xp6(2),u.Oqu(u.lcZ(3,3,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.xp6(2),u.Q6J("value",e.selectedRole),u.xp6(1),u.Q6J("ngForOf",e.availableRoles)}}function Ie(e,t){1&e&&u._UZ(0,"mat-spinner",18)}const Ce=function(){return["select","id","vo","name","description"]},ve=function(){return["id","vo","name","description"]};function Oe(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"perun-web-apps-groups-list",22),u.NdJ("page",function(t){return u.CHM(e),u.oxw(3).pageChanged(t)}),u.qZA()}if(2&e){const e=u.oxw(3);u.Q6J("pageSize",e.pageSize)("displayedColumns",e.manageAuth?u.DdM(5,Ce):u.DdM(6,ve))("groups",e.groups)("selection",e.selectionGroups)("disableMembers",!1)}}function _e(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,Oe,1,7,"perun-web-apps-groups-list",21),u.qZA()),2&e){const e=u.oxw(2);u.xp6(1),u.Q6J("ngIf",e.groups)}}function xe(e,t){if(1&e&&(u.YNc(0,be,1,0,"perun-web-apps-refresh-button",5),u.YNc(1,Re,3,3,"button",6),u.YNc(2,Ee,3,4,"button",7),u.YNc(3,Te,6,5,"mat-form-field",8),u.YNc(4,Ie,1,0,"mat-spinner",9),u.YNc(5,_e,2,1,"div",10)),2&e){const e=u.oxw();u.Q6J("ngIf",!e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading&&e.manageAuth),u.xp6(1),u.Q6J("ngIf",!e.loading&&e.manageAuth),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading)}}function Ne(e,t){1&e&&(u.TgZ(0,"app-alert",23),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}let De=(()=>{class e{constructor(e,t,i,a,o){this.dialog=e,this.tableConfigService=t,this.authzService=i,this.storeService=a,this.guiAuthResolver=o,this.groups=null,this.managers=null,this.selectionUsers=new s.Ov(!0,[]),this.selectionGroups=new s.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=r.HC,this.availableRolesPrivileges=new Map}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.guiAuthResolver.getRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(e=>this.availableRolesPrivileges.get(e).readAuth),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0]),this.routeAuth=this.guiAuthResolver.isPerunAdminOrObserver(),this.refreshUsers()}changeRolePrivileges(){this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;let e=!1;for(const t of this.roleModes)if(this.selectedMode===t.toLowerCase()){e=!0;break}e||(this.selectedMode=this.roleModes[0].toLowerCase())}tabChanged(e){this.loading=!0,0===e.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}refreshUsers(){this.loading=!0,this.changeRolePrivileges();let e=[l.r.USER_DEF_ORGANIZATION,l.r.USER_DEF_PREFERRED_MAIL];e=e.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,e,!1,!0).subscribe(e=>{this.managers=e,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(e=>{this.groups=e,this.selectionGroups.clear(),this.loading=!1},()=>{this.loading=!1})}addManager(){const e=(0,se.kZ)();e.width="1000px",e.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(x,e).afterClosed().subscribe(e=>{e&&this.refreshUsers()})}removeManager(){const e=(0,se.kZ)();e.width="450px",e.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(G,e).afterClosed().subscribe(e=>{e&&this.refreshUsers()})}removeGroup(){const e=(0,se.kZ)();e.width="450px",e.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(V,e).afterClosed().subscribe(e=>{e&&this.refreshGroups()})}addGroup(){const e=(0,se.kZ)();e.width="1000px",e.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(ie,e).afterClosed().subscribe(e=>{e&&this.refreshGroups()})}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.uw),u.Y36(r.dB),u.Y36(n.Ct),u.Y36(o.d6),u.Y36(o.x4))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(e,t){2&e&&u.ekj("router-component",t.true)},inputs:{complementaryObject:"complementaryObject",availableRoles:"availableRoles",complementaryObjectType:"complementaryObjectType",theme:"theme"},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["alert_type","warn",4,"ngIf"],["class","mt-2",3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2 mt-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 mt-2",3,"disabled","click",4,"ngIf"],["class","mr-2 mt-2",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2","mt-2",3,"disabled","click"],[1,"mr-2","mt-2"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"pageSize","users","disableRouting","displayedColumns","selection","page",4,"ngIf"],[3,"pageSize","users","disableRouting","displayedColumns","selection","page"],[3,"pageSize","displayedColumns","groups","selection","disableMembers","page",4,"ngIf"],[3,"pageSize","displayedColumns","groups","selection","disableMembers","page"],["alert_type","warn"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"mat-tab-group",1),u.NdJ("selectedTabChange",function(e){return t.tabChanged(e)}),u.TgZ(4,"mat-tab"),u.YNc(5,ne,2,3,"ng-template",2),u.YNc(6,Ae,6,6,"ng-template",3),u.qZA(),u.TgZ(7,"mat-tab"),u.YNc(8,Se,2,3,"ng-template",2),u.YNc(9,xe,6,6,"ng-template",3),u.qZA(),u.qZA(),u.YNc(10,Ne,3,3,"app-alert",4)),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),u.xp6(9),u.Q6J("ngIf",0===t.availableRoles.length))},directives:[ae.SP,ae.uX,ae.uD,ae.Vc,m.O5,oe.t,A.lW,h.KE,h.hX,p.gD,m.sg,S.ey,b.$g,E.C,$.W,R.w],pipes:[d.X$,Z],styles:[""]}),e})()},4196:function(e,t,i){"use strict";i.d(t,{o:function(){return G}});var s=i(31572),a=i(58623),o=i(67033),n=i(4230),r=i(88426),l=i(33642),c=i(84140),u=i(48160),d=i(82819),g=i(61511),h=i(29236),p=i(66283),m=i(80340),f=i(16073),A=i(15980),S=i(36922),b=i(43691),R=i(39571);function E(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"th",14),s.TgZ(1,"mat-checkbox",15),s.NdJ("change",function(t){s.CHM(e);const i=s.oxw();return t?i.masterToggle():null}),s.qZA(),s.qZA()}if(2&e){const e=s.oxw();s.xp6(1),s.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Z(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"td",16),s.TgZ(1,"mat-checkbox",17),s.NdJ("change",function(t){const i=s.CHM(e).$implicit,a=s.oxw();return t?a.selection.toggle(i):null})("click",function(e){return e.stopPropagation()}),s.qZA(),s.qZA()}if(2&e){const e=t.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))}}function T(e,t){1&e&&(s.TgZ(0,"th",18),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")))}function I(e,t){if(1&e&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&e){const e=t.$implicit;s.xp6(1),s.Oqu(e.id)}}function C(e,t){1&e&&(s.TgZ(0,"th",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")))}function v(e,t){if(1&e&&(s.TgZ(0,"div"),s._uU(1),s.qZA()),2&e){const e=s.oxw().$implicit;s.xp6(1),s.hij(" ",e.tagName," ")}}function O(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"mat-form-field"),s.TgZ(2,"input",21),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw().$implicit.tagName=t}),s.qZA(),s.qZA(),s.qZA()}if(2&e){const e=s.oxw().$implicit;s.xp6(2),s.Q6J("ngModel",e.tagName)}}function _(e,t){if(1&e&&(s.TgZ(0,"td",19),s.YNc(1,v,2,1,"div",20),s.YNc(2,O,3,1,"div",20),s.qZA()),2&e){const e=t.$implicit,i=s.oxw();s.xp6(1),s.Q6J("ngIf",!i.isChanging.isSelected(e)),s.xp6(1),s.Q6J("ngIf",i.isChanging.isSelected(e))}}function x(e,t){1&e&&s._UZ(0,"th",14)}function N(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"button",24),s.NdJ("click",function(){s.CHM(e);const t=s.oxw().$implicit;return s.oxw().edit(t)}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon"),s._uU(3,"edit"),s.qZA(),s.qZA()}2&e&&s.s9C("matTooltip",s.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function D(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"button",24),s.NdJ("click",function(){s.CHM(e);const t=s.oxw().$implicit;return s.oxw().save(t)}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon"),s._uU(3,"save"),s.qZA(),s.qZA()}2&e&&s.s9C("matTooltip",s.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function U(e,t){if(1&e&&(s.TgZ(0,"td",19),s.TgZ(1,"div",22),s.YNc(2,N,4,3,"button",23),s.YNc(3,D,4,3,"button",23),s.qZA(),s.qZA()),2&e){const e=t.$implicit,i=s.oxw();s.xp6(2),s.Q6J("ngIf",!i.isChanging.isSelected(e)),s.xp6(1),s.Q6J("ngIf",i.isChanging.isSelected(e))}}function w(e,t){1&e&&s._UZ(0,"tr",25)}function L(e,t){1&e&&s._UZ(0,"tr",26)}function y(e,t){if(1&e&&(s.TgZ(0,"app-alert",27),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"translate"),s.qZA()),2&e){const e=s.oxw();s.xp6(1),s.hij(" ","vo"===e.entity?s.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):s.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function M(e,t){1&e&&(s.TgZ(0,"app-alert",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let G=(()=>{class e{constructor(e,t,i,a,o){this.resourceManager=e,this.notificator=t,this.translator=i,this.authResolver=a,this.tableCheckbox=o,this.resourceTags=[],this.selection=new n.Ov(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","name","edit"],this.page=new s.vpe,this.isChanging=new n.Ov(!0,[]),this.pageSizeOptions=c.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new o.by(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.tagName;default:return""}}exportData(e){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>(0,c.Sd)(e,t,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(e,t)=>(0,c.pR)(e,t,this.getDataForColumn,this),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.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.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"}save(e){this.resourceManager.updateResourceTag({resourceTag:e}).subscribe(()=>{this.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e)}),this.isChanging.deselect(e)})}edit(e){this.isChanging.select(e)}}return e.\u0275fac=function(t){return new(t||e)(s.Y36(l.xk),s.Y36(r.V6),s.Y36(u.sK),s.Y36(r.x4),s.Y36(r.UA))},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-resources-tags-list"]],viewQuery:function(e,t){if(1&e&&(s.Gf(a.YE,7),s.Gf(c.l9,7)),2&e){let e;s.iGM(e=s.CRH())&&(t.matSort=e.first),s.iGM(e=s.CRH())&&(t.child=e.first)}},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",pageSize:"pageSize",displayedColumns:"displayedColumns",entity:"entity"},outputs:{page:"page"},features:[s.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","edit"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["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(e,t){1&e&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,E,2,3,"th",4),s.YNc(5,Z,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,T,3,3,"th",7),s.YNc(8,I,2,1,"td",5),s.BQk(),s.ynx(9,8),s.YNc(10,C,3,3,"th",4),s.YNc(11,_,3,2,"td",9),s.BQk(),s.ynx(12,10),s.YNc(13,x,1,0,"th",4),s.YNc(14,U,4,2,"td",9),s.BQk(),s.YNc(15,w,1,0,"tr",11),s.YNc(16,L,1,0,"tr",12),s.qZA(),s.qZA(),s.qZA(),s.YNc(17,y,4,5,"app-alert",13),s.YNc(18,M,3,3,"app-alert",13)),2&e&&(s.Q6J("hidden",0===t.resourceTags.length||0===t.dataSource.filteredData.length),s.xp6(1),s.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),s.xp6(1),s.Q6J("dataSource",t.dataSource),s.xp6(13),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===t.resourceTags.length),s.xp6(1),s.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resourceTags.length))},directives:[d.l,o.BZ,a.YE,o.w1,o.fO,o.Dz,o.as,o.nj,g.O5,o.ge,h.oG,o.ev,a.nU,p.KE,m.Nt,f.Fj,f.JJ,f.On,A.lW,S.gM,b.Hw,o.XQ,o.Gk,R.w],pipes:[u.X$],styles:[""]}),e})()},91721:function(e,t,i){"use strict";i.d(t,{Q:function(){return G}});var s=i(31572),a=i(58623),o=i(67033),n=i(4230),r=i(84140),l=i(88426),c=i(82819),u=i(61511),d=i(29236),g=i(43691),h=i(36922),p=i(84534),m=i(57629),f=i(39571),A=i(48160);function S(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"th",16),s.TgZ(1,"mat-checkbox",17),s.NdJ("change",function(t){s.CHM(e);const i=s.oxw();return t?i.masterToggle():null}),s.qZA(),s.qZA()}if(2&e){const e=s.oxw();s.xp6(1),s.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function b(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"td",18),s.TgZ(1,"mat-checkbox",19),s.NdJ("change",function(t){const i=s.CHM(e).$implicit,a=s.oxw();return t?a.selection.toggle(i):null})("click",function(e){return e.stopPropagation()}),s.qZA(),s.qZA()}if(2&e){const e=t.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))}}function R(e,t){1&e&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")))}function E(e,t){if(1&e&&(s.TgZ(0,"td",18),s._uU(1),s.qZA()),2&e){const e=t.$implicit;s.xp6(1),s.Oqu(e.id)}}function Z(e,t){1&e&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")))}function T(e,t){if(1&e&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&e){const e=t.$implicit;s.xp6(1),s.Oqu(e.name)}}function I(e,t){1&e&&s._UZ(0,"th",16)}function C(e,t){1&e&&(s.TgZ(0,"mat-icon",23),s.ALo(1,"translate"),s._uU(2," check_circle_outline "),s.qZA()),2&e&&s.s9C("matTooltip",s.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function v(e,t){1&e&&(s.TgZ(0,"mat-icon",23),s.ALo(1,"translate"),s._uU(2," block "),s.qZA()),2&e&&s.s9C("matTooltip",s.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function O(e,t){if(1&e&&(s.TgZ(0,"td",21),s.YNc(1,C,3,3,"mat-icon",22),s.YNc(2,v,3,3,"mat-icon",22),s.qZA()),2&e){const e=t.$implicit;s.xp6(1),s.Q6J("ngIf",e.enabled),s.xp6(1),s.Q6J("ngIf",!e.enabled)}}function _(e,t){1&e&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")))}function x(e,t){if(1&e&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&e){const e=t.$implicit;s.xp6(1),s.Oqu(e.script)}}function N(e,t){1&e&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")))}function D(e,t){if(1&e&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&e){const e=t.$implicit;s.xp6(1),s.Oqu(e.description)}}function U(e,t){1&e&&s._UZ(0,"tr",24)}const w=function(e){return["/admin/services",e]};function L(e,t){if(1&e&&s._UZ(0,"tr",25),2&e){const e=t.$implicit,i=s.oxw();s.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:s.VKq(6,w,e.id))("routerLink",i.disableRouting?null:s.VKq(8,w,e.id))}}function y(e,t){1&e&&(s.TgZ(0,"app-alert",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function M(e,t){1&e&&(s.TgZ(0,"app-alert",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}let G=(()=>{class e{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.services=[],this.filterValue="",this.pageSize=10,this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new n.Ov(!0,[]),this.disableRouting=!1,this.page=new s.vpe,this.pageSizeOptions=r.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new o.by(this.services),this.setDataSource()}getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"enabled":return e.enabled?"true":"false";case"script":return e.script;case"description":return e.description;default:return""}}exportData(e){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>(0,r.Sd)(e,t,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(e,t)=>(0,r.pR)(e,t,this.getDataForColumn,this),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.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.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 e.\u0275fac=function(t){return new(t||e)(s.Y36(l.x4),s.Y36(l.UA))},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-services-list"]],viewQuery:function(e,t){if(1&e&&(s.Gf(a.YE,7),s.Gf(r.l9,7)),2&e){let e;s.iGM(e=s.CRH())&&(t.matSort=e.first),s.iGM(e=s.CRH())&&(t.child=e.first)}},inputs:{services:"services",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{page:"page"},features:[s.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","enabled"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,S,2,3,"th",4),s.YNc(5,b,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,R,3,3,"th",7),s.YNc(8,E,2,1,"td",5),s.BQk(),s.ynx(9,8),s.YNc(10,Z,3,3,"th",7),s.YNc(11,T,2,1,"td",9),s.BQk(),s.ynx(12,10),s.YNc(13,I,1,0,"th",4),s.YNc(14,O,3,2,"td",9),s.BQk(),s.ynx(15,11),s.YNc(16,_,3,3,"th",4),s.YNc(17,x,2,1,"td",9),s.BQk(),s.ynx(18,12),s.YNc(19,N,3,3,"th",7),s.YNc(20,D,2,1,"td",9),s.BQk(),s.YNc(21,U,1,0,"tr",13),s.YNc(22,L,1,10,"tr",14),s.qZA(),s.qZA(),s.qZA(),s.YNc(23,y,3,3,"app-alert",15),s.YNc(24,M,3,3,"app-alert",15)),2&e&&(s.Q6J("hidden",void 0===t.services||0===t.services.length||0===t.dataSource.filteredData.length),s.xp6(1),s.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),s.xp6(1),s.Q6J("dataSource",t.dataSource),s.xp6(19),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===t.dataSource.filteredData.length&&void 0!==t.services&&0!==t.services.length),s.xp6(1),s.Q6J("ngIf",void 0===t.services||0===t.services.length))},directives:[c.l,o.BZ,a.YE,o.w1,o.fO,o.Dz,o.as,o.nj,u.O5,o.ge,d.oG,o.ev,a.nU,g.Hw,h.gM,o.XQ,o.Gk,p.YH,m.rH,f.w],pipes:[A.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),e})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/827-es2015.8b0b957d45d345d3fb05.js b/dist/apps/admin-gui/827-es2015.8b0b957d45d345d3fb05.js deleted file mode 100644 index 098b8226a..000000000 --- a/dist/apps/admin-gui/827-es2015.8b0b957d45d345d3fb05.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[827],{95142:function(e,t,i){"use strict";i.d(t,{y:function(){return b}});var s=i(33642),a=i(60611),o=i(88426),n=i(31572),r=i(57629),l=i(61511),c=i(59403),u=i(19139),d=i(67806),g=i(4252),h=i(48160);function p(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"perun-web-apps-refresh-button",5),n.NdJ("refresh",function(){return n.CHM(e),n.oxw().refreshTable()}),n.qZA()}}function m(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"perun-web-apps-immediate-filter",6),n.NdJ("filter",function(t){return n.CHM(e),n.oxw().applyFilter(t)}),n.qZA()}2&e&&n.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_MEMBERS.FILTER")}function f(e,t){1&e&&n._UZ(0,"mat-spinner",7)}const A=function(){return["id","fullName"]};function S(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"perun-web-apps-members-list",8),n.NdJ("page",function(t){return n.CHM(e),n.oxw().pageChanged(t)})("updateTable",function(){return n.CHM(e),n.oxw().refreshTable()}),n.qZA()}if(2&e){const e=n.oxw();n.Q6J("disableRouting",!e.routeAuth)("filter",e.filterValue)("displayedColumns",n.DdM(5,A))("members",e.members)("pageSize",e.pageSize)}}let b=(()=>{class e{constructor(e,t,i,s){this.route=e,this.resourceService=t,this.tableConfigService=i,this.authResolver=s,this.loading=!1,this.filterValue="",this.tableId=a.iQ}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(e=>{this.resourceId=e.resourceId,this.refreshTable()})}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resourceId).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}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(r.gz),n.Y36(s.xk),n.Y36(a.dB),n.Y36(o.x4))},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-resource-assigned-members"]],decls:7,vars:7,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filter","displayedColumns","members","pageSize","page","updateTable",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filter","displayedColumns","members","pageSize","page","updateTable"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.YNc(3,p,1,0,"perun-web-apps-refresh-button",1),n.YNc(4,m,1,1,"perun-web-apps-immediate-filter",2),n.YNc(5,f,1,0,"mat-spinner",3),n.YNc(6,S,1,6,"perun-web-apps-members-list",4)),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),n.xp6(2),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},directives:[l.O5,c.t,u.L,d.$g,g.O],pipes:[h.X$],styles:[""]}),e})()},75374:function(e,t,i){"use strict";i.d(t,{D:function(){return L}});var s=i(33642),a=i(60611),o=i(4230),n=i(27613),r=i(84608),l=i(88426),c=i(31572),u=i(48160),d=i(61511),g=i(15980),h=i(67806),p=i(91058),m=i(91721);function f(e,t){1&e&&c._UZ(0,"mat-spinner",6)}function A(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"app-services-list",10),c.NdJ("page",function(t){return c.CHM(e),c.oxw(2).pageChanged(t)}),c.qZA()}if(2&e){const e=c.oxw(2);c.Q6J("pageSize",e.pageSize)("disableRouting",!0)("services",e.unAssignedServices)("filterValue",e.filterValue)("selection",e.selection)}}function S(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",7),c.TgZ(1,"perun-web-apps-debounce-filter",8),c.NdJ("filter",function(t){return c.CHM(e),c.oxw().applyFilter(t)}),c.ALo(2,"translate"),c.qZA(),c.YNc(3,A,1,5,"app-services-list",9),c.qZA()}if(2&e){const e=c.oxw();c.xp6(1),c.s9C("placeholder",c.lcZ(2,2,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.FILTER_DESCRIPTION")),c.xp6(2),c.Q6J("ngIf",!e.loading)}}let b=(()=>{class e{constructor(e,t,i,s,n,r,l){this.dialogRef=e,this.data=t,this.notificator=i,this.translate=s,this.resourceManager=n,this.servicesManager=r,this.tableConfigService=l,this.loading=!1,this.selection=new o.Ov(!0,[]),this.tableId=a.DR,this.filterValue=""}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(e=>{this.servicesManager.getServices().subscribe(t=>{this.unAssignedServices=t;for(const i of e)for(const e of t)i.id===e.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(e),1);this.filteredServices=this.unAssignedServices,this.loading=!1})})}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0;const e=[];for(const t of this.selection.selected)e.push(t.id);this.resourceManager.assignServices(this.data.resourceId,e).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(r.so),c.Y36(r.WI),c.Y36(l.V6),c.Y36(u.sK),c.Y36(s.xk),c.Y36(s.KK),c.Y36(a.dB))},e.\u0275cmp=c.Xpm({type:e,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"placeholder","filter"],[3,"pageSize","disableRouting","services","filterValue","selection","page",4,"ngIf"],[3,"pageSize","disableRouting","services","filterValue","selection","page"]],template:function(e,t){1&e&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,f,1,0,"mat-spinner",1),c.YNc(5,S,4,4,"div",2),c.TgZ(6,"div",3),c.TgZ(7,"button",4),c.NdJ("click",function(){return t.onCancel()}),c._uU(8),c.ALo(9,"translate"),c.qZA(),c.TgZ(10,"button",5),c.NdJ("click",function(){return t.onAdd()}),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.qZA(),c.qZA()),2&e&&(c.Tol(t.theme),c.xp6(2),c.Oqu(c.lcZ(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),c.xp6(2),c.Q6J("ngIf",t.loading),c.xp6(1),c.Q6J("ngIf",!t.loading),c.xp6(3),c.hij(" ",c.lcZ(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),c.xp6(2),c.Q6J("disabled",0===t.selection.selected.length||t.loading),c.xp6(1),c.hij(" ",c.lcZ(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.ADD_BUTTON")," "))},directives:[r.uh,d.O5,r.H8,g.lW,h.$g,r.xY,p.P,m.Q],pipes:[u.X$],styles:[""]}),e})();var R=i(67033);function E(e,t){1&e&&c._UZ(0,"mat-spinner",6)}function Z(e,t){1&e&&c._UZ(0,"th",15)}function T(e,t){if(1&e&&(c.TgZ(0,"td",16),c._uU(1),c.qZA()),2&e){const e=t.$implicit;c.xp6(1),c.hij(" ",e.name," ")}}function I(e,t){1&e&&c._UZ(0,"tr",17)}function C(e,t){1&e&&c._UZ(0,"tr",18)}function v(e,t){if(1&e&&(c.TgZ(0,"div",7),c.TgZ(1,"p"),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",8),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"table",9),c.ynx(8,10),c.YNc(9,Z,1,0,"th",11),c.YNc(10,T,2,1,"td",12),c.BQk(),c.YNc(11,I,1,0,"tr",13),c.YNc(12,C,1,0,"tr",14),c.qZA(),c.qZA()),2&e){const e=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,5,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DESCRIPTION")," "),c.xp6(3),c.hij(" ",c.lcZ(6,7,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.ASK")," "),c.xp6(2),c.Q6J("dataSource",e.dataSource),c.xp6(4),c.Q6J("matHeaderRowDef",e.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",e.displayedColumns)}}let O=(()=>{class e{constructor(e,t,i,s,a){this.dialogRef=e,this.data=t,this.notificator=i,this.translate=s,this.resourcesManager=a,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new R.by(this.data.services)}onSubmit(){this.loading=!0;const e=[];for(const t of this.data.services)e.push(t.id);this.resourcesManager.removeServices(this.data.resourceId,e).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(r.so),c.Y36(r.WI),c.Y36(l.V6),c.Y36(u.sK),c.Y36(s.xk))},e.\u0275cmp=c.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,E,1,0,"mat-spinner",1),c.YNc(5,v,13,9,"div",2),c.TgZ(6,"div",3),c.TgZ(7,"button",4),c.NdJ("click",function(){return t.onCancel()}),c._uU(8),c.ALo(9,"translate"),c.qZA(),c.TgZ(10,"button",5),c.NdJ("click",function(){return t.onSubmit()}),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.qZA(),c.qZA()),2&e&&(c.Tol(t.theme),c.xp6(2),c.Oqu(c.lcZ(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),c.xp6(2),c.Q6J("ngIf",t.loading),c.xp6(1),c.Q6J("ngIf",!t.loading),c.xp6(3),c.hij(" ",c.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),c.xp6(2),c.Q6J("disabled",t.loading),c.xp6(1),c.hij(" ",c.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},directives:[r.uh,d.O5,r.H8,g.lW,h.$g,r.xY,R.BZ,R.w1,R.fO,R.Dz,R.as,R.nj,R.ge,R.ev,R.XQ,R.Gk],pipes:[u.X$],styles:[""]}),e})();var _=i(57629),x=i(59403),N=i(19139);function D(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"button",7),c.NdJ("click",function(){return c.CHM(e),c.oxw().addService()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&e&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_SERVICES.ADD_SERVICE"),"\n"))}function w(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",function(){return c.CHM(e),c.oxw().removeServices()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&e){const e=c.oxw();c.Q6J("disabled",0===e.selected.selected.length),c.xp6(1),c.hij(" ",c.lcZ(2,2,"RESOURCE_DETAIL.ASSIGNED_SERVICES.REMOVE_SERVICE"),"\n")}}function U(e,t){1&e&&c._UZ(0,"mat-spinner",9)}function y(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"app-services-list",10),c.NdJ("page",function(t){return c.CHM(e),c.oxw().pageChanged(t)}),c.qZA()}if(2&e){const e=c.oxw();c.Q6J("pageSize",e.pageSize)("services",e.assignedServices)("selection",e.selected)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("disableRouting",!e.serviceRoutingAuth)}}let L=(()=>{class e{constructor(e,t,i,s,n){this.route=e,this.resourcesManager=t,this.tableConfigService=i,this.dialog=s,this.guiAuthResolver=n,this.assignedServices=[],this.selected=new o.Ov(!0,[]),this.tableId=a.uC,this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"]}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(e=>{this.resourceId=e.resourceId,this.resourcesManager.getResourceById(this.resourceId).subscribe(e=>{this.resource=e,this.getDataForAuthorization(),this.loadAllServices()})})}loadAllServices(){this.loading=!0,this.resourcesManager.getAssignedServicesToResource(this.resourceId).subscribe(e=>{this.assignedServices=e,this.selected.clear(),this.loading=!1})}addService(){const e=(0,n.kZ)();e.width="800px",e.data={theme:"resource-theme",resourceId:this.resourceId},this.dialog.open(b,e).afterClosed().subscribe(e=>{e&&this.loadAllServices()})}removeServices(){const e=(0,n.kZ)();e.width="500px",e.data={theme:"resource-theme",resourceId:this.resourceId,services:this.selected.selected},this.dialog.open(O,e).afterClosed().subscribe(e=>{e&&this.loadAllServices()})}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}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 e.\u0275fac=function(t){return new(t||e)(c.Y36(_.gz),c.Y36(s.xk),c.Y36(a.dB),c.Y36(r.uw),c.Y36(l.x4))},e.\u0275cmp=c.Xpm({type:e,selectors:[["app-perun-web-apps-resource-assigned-services"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","ml-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","services","selection","filterValue","displayedColumns","disableRouting","page",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","services","selection","filterValue","displayedColumns","disableRouting","page"]],template:function(e,t){1&e&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return t.loadAllServices()}),c.qZA(),c.YNc(4,D,3,3,"button",2),c.YNc(5,w,3,4,"button",3),c.TgZ(6,"perun-web-apps-immediate-filter",4),c.NdJ("filter",function(e){return t.applyFilter(e)}),c.qZA(),c.YNc(7,U,1,0,"mat-spinner",5),c.YNc(8,y,1,6,"app-services-list",6)),2&e&&(c.xp6(1),c.Oqu(c.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),c.xp6(3),c.Q6J("ngIf",!t.loadingResource&&t.assignServiceAuth),c.xp6(1),c.Q6J("ngIf",!t.loadingResource&&t.removeServiceAuth),c.xp6(1),c.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),c.xp6(1),c.Q6J("ngIf",t.loading),c.xp6(1),c.Q6J("ngIf",!t.loading))},directives:[x.t,d.O5,N.L,g.lW,h.$g,m.Q],pipes:[u.X$],styles:[""]}),e})()},79472:function(e,t,i){"use strict";i.d(t,{X:function(){return R}});var s=i(88426),a=i(33642),o=i(31572),n=i(57629),r=i(55109),l=i(61511),c=i(541),u=i(69012),d=i(48160);function g(e,t){1&e&&(o._uU(0),o.ALo(1,"translate")),2&e&&o.hij(" ",o.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function h(e,t){if(1&e&&o._UZ(0,"app-one-entity-attribute-page",4),2&e){const e=o.oxw();o.Q6J("entity","resource")("entityId",e.resourceId)}}function p(e,t){1&e&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&e&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function m(e,t){if(1&e&&o._UZ(0,"app-two-entity-attribute-page",5),2&e){const e=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",e.resourceId)("secondEntity","member")}}function f(e,t){1&e&&(o.TgZ(0,"mat-tab"),o.YNc(1,p,3,6,"ng-template",1),o.YNc(2,m,1,3,"ng-template",2),o.qZA())}function A(e,t){1&e&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&e&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function S(e,t){if(1&e&&o._UZ(0,"app-two-entity-attribute-page",5),2&e){const e=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",e.resourceId)("secondEntity","group")}}function b(e,t){1&e&&(o.TgZ(0,"mat-tab"),o.YNc(1,A,3,6,"ng-template",1),o.YNc(2,S,1,3,"ng-template",2),o.qZA())}let R=(()=>{class e{constructor(e,t,i){this.route=e,this.authResolver=t,this.resourceManager=i}ngOnInit(){this.route.parent.params.subscribe(e=>{this.resourceId=parseInt(e.resourceId,10),this.resourceManager.getResourceById(this.resourceId).subscribe(e=>{this.resource=e,this.resourceGroupAttAuth=this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[this.resource]),this.resourceMemberAttAuth=this.authResolver.isAuthorized("getAssignedRichMembers_Resource_policy",[this.resource])})})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(n.gz),o.Y36(s.x4),o.Y36(a.xk))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,t){1&e&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-tab-group"),o.TgZ(5,"mat-tab"),o.YNc(6,g,2,3,"ng-template",1),o.YNc(7,h,1,2,"ng-template",2),o.qZA(),o.YNc(8,f,3,0,"mat-tab",3),o.YNc(9,b,3,0,"mat-tab",3),o.qZA(),o.qZA()),2&e&&(o.xp6(2),o.Oqu(o.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),o.xp6(6),o.Q6J("ngIf",t.resourceMemberAttAuth),o.xp6(1),o.Q6J("ngIf",t.resourceGroupAttAuth))},directives:[r.SP,r.uX,r.uD,r.Vc,l.O5,c.t,u.Y],pipes:[d.X$],styles:[""]}),e})()},72920:function(e,t,i){"use strict";i.d(t,{b:function(){return L}});var s=i(17),a=i(75585),o=i(33642),n=i(27613),r=i(88426),l=i(22280),c=i(81954),u=i(95909),d=i(31572),g=i(57629),h=i(48958),p=i(84608),m=i(66297),f=i(61511),A=i(67806),S=i(43691),b=i(36922),R=i(21575),E=i(15980),Z=i(48160);function T(e,t){1&e&&d._UZ(0,"mat-spinner",3)}function I(e,t){if(1&e){const e=d.EpF();d.TgZ(0,"button",15),d.NdJ("click",function(){return d.CHM(e),d.oxw(2).editResource()}),d.TgZ(1,"mat-icon"),d._uU(2,"edit"),d.qZA(),d.qZA()}}function C(e,t){if(1&e){const e=d.EpF();d.TgZ(0,"button",16),d.NdJ("click",function(){return d.CHM(e),d.oxw(2).deleteResource()}),d.TgZ(1,"mat-icon"),d._uU(2,"delete_forever"),d.qZA(),d.qZA()}}const v=function(e){return["/organizations",e]};function O(e,t){if(1&e&&(d.TgZ(0,"a",8),d._uU(1),d.qZA()),2&e){const e=d.oxw(2);d.Q6J("routerLink",d.VKq(2,v,e.resource.vo.id)),d.xp6(1),d.Oqu(e.resource.vo.name)}}function _(e,t){if(1&e&&(d.TgZ(0,"span"),d._uU(1),d.qZA()),2&e){const e=d.oxw(2);d.xp6(1),d.hij(" ",e.resource.vo.name," ")}}const x=function(e){return["/facilities",e]};function N(e,t){if(1&e&&(d.TgZ(0,"a",8),d._uU(1),d.qZA()),2&e){const e=d.oxw(2);d.Q6J("routerLink",d.VKq(2,x,e.resource.facilityId)),d.xp6(1),d.Oqu(e.resource.facility.name)}}function D(e,t){if(1&e&&(d.TgZ(0,"span"),d._uU(1),d.qZA()),2&e){const e=d.oxw(2);d.xp6(1),d.hij(" ",e.resource.facility.name," ")}}const w=function(){return{color:"black"}},U=function(e){return[e]};function y(e,t){if(1&e&&(d.TgZ(0,"div"),d.TgZ(1,"div",4),d._UZ(2,"mat-icon",5),d.ALo(3,"translate"),d.TgZ(4,"div",6),d.TgZ(5,"div",7),d.TgZ(6,"a",8),d._uU(7),d.qZA(),d.TgZ(8,"span",9),d._uU(9),d.qZA(),d.YNc(10,I,3,0,"button",10),d.YNc(11,C,3,0,"button",11),d.qZA(),d.TgZ(12,"div"),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.TgZ(15,"span",12),d._uU(16),d.ALo(17,"translate"),d.ALo(18,"translate"),d.YNc(19,O,2,4,"a",13),d.YNc(20,_,2,1,"span",2),d._uU(21),d.ALo(22,"translate"),d.YNc(23,N,2,4,"a",14),d.YNc(24,D,2,1,"span",2),d._uU(25),d.ALo(26,"translate"),d.qZA(),d.qZA(),d.qZA(),d._UZ(27,"app-animated-router-outlet"),d.qZA()),2&e){const e=d.oxw();d.xp6(2),d.s9C("matTooltip",d.lcZ(3,20,"RESOURCE_DETAIL.ENTITY")),d.Q6J("ngStyle",d.DdM(32,w)),d.xp6(4),d.Q6J("routerLink",d.VKq(33,U,e.baseUrl)),d.xp6(1),d.hij(" ",e.resource.name," "),d.xp6(2),d.hij(" \xa0#",e.resource.id," "),d.xp6(1),d.Q6J("ngIf",e.editResourceAuth),d.xp6(1),d.Q6J("ngIf",e.deleteAuth),d.xp6(2),d.AsE(" ",d.lcZ(14,22,"RESOURCE_DETAIL.UUID"),": ",e.resource.uuid," "),d.xp6(3),d.AsE(" ",d.lcZ(17,24,"RESOURCE_DETAIL.ENTITY"),", ",d.lcZ(18,26,"RESOURCE_DETAIL.VO"),": "),d.xp6(3),d.Q6J("ngIf",e.voLinkAuth),d.xp6(1),d.Q6J("ngIf",!e.voLinkAuth),d.xp6(1),d.AsE(" #",e.resource.voId,", ",d.lcZ(22,28,"RESOURCE_DETAIL.FACILITY"),": "),d.xp6(2),d.Q6J("ngIf",e.facilityLinkAuth),d.xp6(1),d.Q6J("ngIf",!e.facilityLinkAuth),d.xp6(1),d.lnq(" #",e.resource.facilityId,", ",d.lcZ(26,30,"RESOURCE_DETAIL.DESCRIPTION"),": ",e.resource.description," ")}}let L=(()=>{class e{constructor(e,t,i,s,a,o,n,r,l){this.route=e,this.facilityManager=t,this.vosManagerService=i,this.resourcesManager=s,this.sideMenuService=a,this.sideMenuItemService=o,this.dialog=n,this.guiAuthResolver=r,this.router=l,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.resourcesManager.getRichResourceById(e.resourceId).subscribe(e=>{this.resource=e,this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new l.r5).transform(e,!1),this.facilityManager.getFacilityById(e.facilityId).subscribe(t=>{const i=this.sideMenuItemService.parseFacility(t),s=this.sideMenuItemService.parseResource(e,!1);this.sideMenuService.setFacilityMenuItems([i,s]),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new l.r5).transform(e,!0),this.vosManagerService.getVoById(e.voId).subscribe(t=>{const i=this.sideMenuItemService.parseVo(t),s=this.sideMenuItemService.parseResource(e,!0);this.sideMenuService.setAccessMenuItems([i,s]),this.loading=!1},()=>this.loading=!1)),(0,n.sF)("resources",this.resource)})})}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])}editResource(){let e;this.resourcesManager.getResourceById(this.resource.id).subscribe(t=>{e=t;const i=(0,n.kZ)();i.width="450px",i.data={theme:"resource-theme",resource:e,dialogType:c.Eg.RESOURCE},this.dialog.open(c.rd,i).afterClosed().subscribe(e=>{e&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(e=>{this.resource=e})})})}deleteResource(){const e=(0,n.kZ)();e.width="500px",e.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(u.f,e).afterClosed().subscribe(e=>{e&&this.router.navigate(["../"],{relativeTo:this.route})})}}return e.\u0275fac=function(t){return new(t||e)(d.Y36(g.gz),d.Y36(o.IQ),d.Y36(o.YF),d.Y36(o.xk),d.Y36(h.D),d.Y36(a.V),d.Y36(p.uw),d.Y36(r.x4),d.Y36(g.F0))},e.\u0275cmp=d.Xpm({type:e,selectors:[["app-resource-detail-page"]],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"],["mat-icon-button","","aria-label","Edit resource",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"],["mat-icon-button","","aria-label","Edit resource",3,"click"],["mat-icon-button","",3,"click"]],template:function(e,t){1&e&&(d.TgZ(0,"div",0),d._UZ(1,"perun-web-apps-back-button"),d.YNc(2,T,1,0,"mat-spinner",1),d.YNc(3,y,28,35,"div",2),d.qZA()),2&e&&(d.xp6(2),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading&&void 0!==t.resource))},directives:[m.W,f.O5,A.$g,S.Hw,b.gM,f.PC,g.yS,R.A,E.lW],pipes:[Z.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[s.Ji]}}),e})()},42473:function(e,t,i){"use strict";i.d(t,{K:function(){return z}});var s=i(33642),a=i(4230),o=i(84608),n=i(67033),r=i(88426),l=i(31572),c=i(48160),u=i(61511),d=i(15980),g=i(67806);function h(e,t){1&e&&l._UZ(0,"mat-spinner",6)}function p(e,t){1&e&&l._UZ(0,"th",15)}function m(e,t){if(1&e&&(l.TgZ(0,"td",16),l._uU(1),l.qZA()),2&e){const e=t.$implicit;l.xp6(1),l.hij(" ",e.name," ")}}function f(e,t){1&e&&l._UZ(0,"tr",17)}function A(e,t){1&e&&l._UZ(0,"tr",18)}function S(e,t){if(1&e&&(l.TgZ(0,"div",7),l.TgZ(1,"p"),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",8),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.TgZ(7,"table",9),l.ynx(8,10),l.YNc(9,p,1,0,"th",11),l.YNc(10,m,2,1,"td",12),l.BQk(),l.YNc(11,f,1,0,"tr",13),l.YNc(12,A,1,0,"tr",14),l.qZA(),l.qZA()),2&e){const e=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),l.xp6(3),l.hij(" ",l.lcZ(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),l.xp6(2),l.Q6J("dataSource",e.dataSource),l.xp6(4),l.Q6J("matHeaderRowDef",e.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",e.displayedColumns)}}let b=(()=>{class e{constructor(e,t,i,s,a){this.dialogRef=e,this.data=t,this.notificator=i,this.translate=s,this.resourceManager=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new n.by(this.data.groups)}onCancel(){this.dialogRef.close()}onSubmit(){const e=[];for(const t of this.data.groups)e.push(t.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(e,this.data.resourceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(l.Y36(o.so),l.Y36(o.WI),l.Y36(r.V6),l.Y36(c.sK),l.Y36(s.xk))},e.\u0275cmp=l.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,h,1,0,"mat-spinner",1),l.YNc(5,S,13,9,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return t.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return t.onSubmit()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&e&&(l.Tol(t.theme),l.xp6(2),l.Oqu(l.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),l.xp6(2),l.Q6J("ngIf",t.loading),l.xp6(1),l.Q6J("ngIf",!t.loading),l.xp6(3),l.hij(" ",l.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),l.xp6(2),l.Q6J("disabled",t.loading),l.xp6(1),l.hij(" ",l.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},directives:[o.uh,u.O5,o.H8,d.lW,g.$g,o.xY,n.BZ,n.w1,n.fO,n.Dz,n.as,n.nj,n.ge,n.ev,n.XQ,n.Gk],pipes:[c.X$],styles:[""]}),e})();var R=i(60611),E=i(29236),Z=i(36922),T=i(16073),I=i(91058),C=i(78364);function v(e,t){1&e&&l._UZ(0,"mat-spinner",7)}const O=function(){return["select","id","name","description"]};function _(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"div",8),l.TgZ(1,"perun-web-apps-debounce-filter",9),l.NdJ("filter",function(t){return l.CHM(e),l.oxw().applyFilter(t)}),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"perun-web-apps-groups-list",10),l.NdJ("page",function(t){return l.CHM(e),l.oxw().pageChanged(t)}),l.qZA(),l.qZA()}if(2&e){const e=l.oxw();l.xp6(1),l.s9C("placeholder",l.lcZ(2,8,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),l.xp6(2),l.Q6J("pageSize",e.pageSize)("groups",e.unAssignedGroups)("selection",e.selection)("filter",e.filterValue)("displayedColumns",l.DdM(10,O))("disableRouting",!0)("disableMembers",!1)}}let x=(()=>{class e{constructor(e,t,i,s,o,n,r,l){this.dialogRef=e,this.data=t,this.notificator=i,this.translate=s,this.resourceManager=o,this.tableConfigService=n,this.groupService=r,this.guiAuthResolver=l,this.loading=!1,this.checkGroups=!1,this.async=!0,this.selection=new a.Ov(!0,[]),this.filterValue="",this.tableId=R.cL}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.resource=this.data.resource,this.resourceManager.getAssignedGroups(this.resource.id).subscribe(e=>{this.groupService.getAllGroups(this.resource.voId).subscribe(t=>{this.unAssignedGroups=t;for(const i of e)for(const e of t)i.id===e.id&&this.unAssignedGroups.splice(this.unAssignedGroups.indexOf(e),1);this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}onAdd(){if(this.checkGroups);else{this.loading=!0;const e=[];for(const t of this.selection.selected)e.push(t.id);this.resourceManager.assignGroupsToResource(e,this.resource.id,this.async).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}canAddGroups(){let e=!0;return this.selection.selected.forEach(t=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,t])||(e=!1)}),e}}return e.\u0275fac=function(t){return new(t||e)(l.Y36(o.so),l.Y36(o.WI),l.Y36(r.V6),l.Y36(c.sK),l.Y36(s.xk),l.Y36(R.dB),l.Y36(s.ff),l.Y36(r.x4))},e.\u0275cmp=l.Xpm({type:e,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],decls:18,vars:26,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions",""],[3,"matTooltip","ngModel","ngModelChange"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","matTooltip","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"pageSize","groups","selection","filter","displayedColumns","disableRouting","disableMembers","page"]],template:function(e,t){1&e&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,v,1,0,"mat-spinner",1),l.YNc(5,_,4,11,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"mat-checkbox",4),l.NdJ("ngModelChange",function(e){return t.async=e}),l.ALo(8,"translate"),l._uU(9),l.ALo(10,"translate"),l.qZA(),l.TgZ(11,"button",5),l.NdJ("click",function(){return t.onCancel()}),l._uU(12),l.ALo(13,"translate"),l.qZA(),l.TgZ(14,"button",6),l.NdJ("click",function(){return t.onAdd()}),l.ALo(15,"translate"),l._uU(16),l.ALo(17,"translate"),l.qZA(),l.qZA(),l.qZA()),2&e&&(l.Tol(t.theme),l.xp6(2),l.Oqu(l.lcZ(3,14,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),l.xp6(2),l.Q6J("ngIf",t.loading),l.xp6(1),l.Q6J("ngIf",!t.loading),l.xp6(2),l.s9C("matTooltip",l.lcZ(8,16,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT_DESCRIPTION")),l.Q6J("ngModel",t.async),l.xp6(2),l.hij(" ",l.lcZ(10,18,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),l.xp6(3),l.hij(" ",l.lcZ(13,20,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(15,22,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_TOOLTIP")),l.Q6J("disabled",0===t.selection.selected.length||!t.canAddGroups()||t.loading)("matTooltipDisabled",t.canAddGroups()),l.xp6(2),l.hij(" ",l.lcZ(17,24,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))},directives:[o.uh,u.O5,o.H8,E.oG,Z.gM,T.JJ,T.On,d.lW,g.$g,o.xY,I.P,C.W],pipes:[c.X$],styles:[""]}),e})();var N=i(27613),D=i(67004),w=i(57629),U=i(59403),y=i(39571);const L=["checkbox"];function M(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"button",9),l.NdJ("click",function(){return l.CHM(e),l.oxw().addGroup()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function G(e,t){1&e&&l._UZ(0,"mat-spinner",10)}const Y=function(e){return[e]},q=function(){return["select","id","name","status","description"]};function J(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"div",11),l.TgZ(1,"perun-web-apps-groups-list",12),l.NdJ("page",function(t){return l.CHM(e),l.oxw().pageChanged(t)})("refreshTable",function(){return l.CHM(e),l.oxw().loadAllGroups()}),l.qZA(),l.qZA()}if(2&e){const e=l.oxw();l.xp6(1),l.Q6J("pageSize",e.pageSize)("groups",e.assignedGroups)("filter",e.filteredValue)("selection",e.selected)("disableMembers",!1)("resourceId",e.resourceId)("disableRouting",!e.guiAuthResolver.isAuthorized("getGroupById_int_policy",l.VKq(8,Y,e.assignedGroups[0])))("displayedColumns",l.DdM(10,q))}}function k(e,t){1&e&&(l.TgZ(0,"app-alert",13),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.NO_GROUPS"),"\n"))}let z=(()=>{class e{constructor(e,t,i,s,o,n){this.route=e,this.resourcesManager=t,this.vosManagerService=i,this.tableConfigService=s,this.dialog=o,this.guiAuthResolver=n,this.assignedGroups=[],this.selected=new a.Ov(!0,[]),this.filteredValue="",this.tableId=R.Ad}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(e=>{this.resourceId=e.resourceId,this.getDataForAuthorization(),this.loadAllGroups()})}loadAllGroups(){this.loading=!0,this.resourcesManager.getGroupAssignments(this.resourceId,[D.r.GROUP_SYNC_ENABLED]).subscribe(e=>{this.assignedGroups=e.map(e=>{const t=e.enrichedGroup.group;return t.status=e.status,t.failureCause=e.failureCause,t}),this.selected.clear(),this.loading=!1})}addGroup(){const e=(0,N.kZ)();e.width="800px",e.data={theme:"resource-theme",resource:this.resource},this.dialog.open(x,e).afterClosed().subscribe(e=>{e&&this.loadAllGroups()})}removeGroups(){const e=(0,N.kZ)();e.width="500px",e.data={resourceId:this.resourceId,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(b,e).afterClosed().subscribe(e=>{e&&this.loadAllGroups()})}canRemoveGroups(){let e=!0;return this.selected.selected.forEach(t=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,t])||(e=!1)}),e}applyFilter(e){this.filteredValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}getDataForAuthorization(){this.loadingResource=!0,this.resourcesManager.getResourceById(this.resourceId).subscribe(e=>{this.resource=e,this.loadingResource=!1})}}return e.\u0275fac=function(t){return new(t||e)(l.Y36(w.gz),l.Y36(s.xk),l.Y36(s.YF),l.Y36(R.dB),l.Y36(o.uw),l.Y36(r.x4))},e.\u0275cmp=l.Xpm({type:e,selectors:[["app-perun-web-apps-resource-groups"]],viewQuery:function(e,t){if(1&e&&l.Gf(L,7),2&e){let e;l.iGM(e=l.CRH())&&(t.checkbox=e.first)}},decls:14,vars:18,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","mat-flat-button","",1,"ml-2","mr-2",3,"disabled","click"],[3,"matTooltipDisabled","matTooltip"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["alert_type","warn",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"pageSize","groups","filter","selection","disableMembers","resourceId","disableRouting","displayedColumns","page","refreshTable"],["alert_type","warn"]],template:function(e,t){1&e&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"perun-web-apps-refresh-button",1),l.NdJ("refresh",function(){return t.loadAllGroups()}),l.qZA(),l.YNc(4,M,3,3,"button",2),l.TgZ(5,"button",3),l.NdJ("click",function(){return t.removeGroups()}),l.TgZ(6,"span",4),l.ALo(7,"translate"),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.qZA(),l.TgZ(10,"perun-web-apps-debounce-filter",5),l.NdJ("filter",function(e){return t.applyFilter(e)}),l.qZA(),l.YNc(11,G,1,0,"mat-spinner",6),l.YNc(12,J,2,11,"div",7),l.YNc(13,k,3,3,"app-alert",8)),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,10,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),l.xp6(3),l.Q6J("ngIf",!t.loadingResource&&t.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",l.VKq(16,Y,t.resource))),l.xp6(1),l.Q6J("disabled",0===t.selected.selected.length||!t.canRemoveGroups()),l.xp6(1),l.s9C("matTooltip",l.lcZ(7,12,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),l.Q6J("matTooltipDisabled",t.canRemoveGroups()),l.xp6(2),l.hij(" ",l.lcZ(9,14,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),l.xp6(2),l.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),l.xp6(1),l.Q6J("ngIf",t.loading),l.xp6(1),l.Q6J("ngIf",!t.loading&&0!==t.assignedGroups.length),l.xp6(1),l.Q6J("ngIf",0===t.assignedGroups.length&&!t.loading))},directives:[U.t,u.O5,d.lW,Z.gM,I.P,g.$g,C.W,y.w],pipes:[c.X$],styles:[""]}),e})()},76527:function(e,t,i){"use strict";i.d(t,{H:function(){return g}});var s=i(33642),a=i(88426),o=i(31572),n=i(57629),r=i(61511),l=i(67806),c=i(8557);function u(e,t){1&e&&o._UZ(0,"mat-spinner",2)}function d(e,t){if(1&e&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("items",e.navItems)("size","small")}}let g=(()=>{class e{constructor(e,t,i){this.resourcesManager=e,this.route=t,this.guiAuthResolver=i,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.resourcesManager.getResourceById(e.resourceId).subscribe(e=>{this.resource=e,this.initItems("facilities"!==this.route.parent.parent.snapshot.url[0].path),this.loading=!1},()=>this.loading=!1)})}initItems(e){const t=e?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`;this.navItems=[],this.guiAuthResolver.isAuthorized("getAssignedGroups_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-group",url:`${t}/resources/${this.resource.id}/groups`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedServices_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-service",url:`/${t}/resources/${this.resource.id}/services`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedMembers_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-user",url:`${t}/resources/${this.resource.id}/members`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-resource-tags",url:`${t}/resources/${this.resource.id}/tags`,label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`${t}/resources/${this.resource.id}/attributes`,label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.guiAuthResolver.isManagerPagePrivileged(this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:`${t}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(s.xk),o.Y36(n.gz),o.Y36(a.x4))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.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,t){1&e&&(o.YNc(0,u,1,0,"mat-spinner",0),o.YNc(1,d,2,2,"div",1)),2&e&&(o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading))},directives:[r.O5,l.$g,c.L],styles:[""]}),e})()},64359:function(e,t,i){"use strict";i.d(t,{O:function(){return u}});var s=i(33642),a=i(88426),o=i(31572),n=i(57629),r=i(61511),l=i(489);function c(e,t){if(1&e&&o._UZ(0,"app-managers-page",1),2&e){const e=o.oxw();o.Q6J("complementaryObject",e.resource)("complementaryObjectType",e.type)("theme",e.theme)("availableRoles",e.availableRoles)}}let u=(()=>{class e{constructor(e,t,i){this.route=e,this.resourceService=t,this.guiAuthResolver=i,this.availableRoles=[],this.type="Resource",this.theme="resource-theme"}ngOnInit(){this.route.parent.parent.params.subscribe(e=>{this.resourceService.getResourceById(e.resourceId).subscribe(e=>{this.resource=e})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Resource")}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(n.gz),o.Y36(s.xk),o.Y36(a.x4))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-settings-managers"]],decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(e,t){1&e&&o.YNc(0,c,1,4,"app-managers-page",0),2&e&&o.Q6J("ngIf",t.resource)},directives:[r.O5,l.s],styles:[""]}),e})()},22927:function(e,t,i){"use strict";i.d(t,{h:function(){return g}});var s=i(33642),a=i(88426),o=i(31572),n=i(57629),r=i(61511),l=i(67806),c=i(8557);function u(e,t){1&e&&o._UZ(0,"mat-spinner",2)}function d(e,t){if(1&e&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("items",e.items)("size","small")}}let g=(()=>{class e{constructor(e,t,i){this.route=e,this.resourceManager=t,this.authResolver=i,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.resourceManager.getResourceById(e.resourceId).subscribe(e=>{this.resource=e,this.initItems("facilities"!==this.route.parent.parent.parent.snapshot.url[0].path),this.loading=!1},()=>this.loading=!1)})}initItems(e){this.items=[],this.authResolver.isManagerPagePrivileged(this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${e?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(n.gz),o.Y36(s.xk),o.Y36(a.x4))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.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,t){1&e&&(o.YNc(0,u,1,0,"mat-spinner",0),o.YNc(1,d,2,2,"div",1)),2&e&&(o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading))},directives:[r.O5,l.$g,c.L],styles:[""]}),e})()},77968:function(e,t,i){"use strict";i.d(t,{t:function(){return n}});var s=i(17),a=i(31572),o=i(21575);let n=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("router-component",t.true)},decls:1,vars:0,template:function(e,t){1&e&&a._UZ(0,"app-animated-router-outlet")},directives:[o.A],styles:[""],data:{animation:[s.Ji]}}),e})()},53134:function(e,t,i){"use strict";i.d(t,{v:function(){return v}});var s=i(33642),a=i(4230),o=i(60611),n=i(27613),r=i(88426),l=i(81954),c=i(84608),u=i(31572),d=i(61511),g=i(15980),h=i(67806),p=i(4196),m=i(48160);function f(e,t){1&e&&u._UZ(0,"mat-spinner",8)}function A(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"app-resources-tags-list",9),u.NdJ("page",function(t){return u.CHM(e),u.oxw().pageChanged(t)}),u.qZA()}if(2&e){const e=u.oxw();u.Q6J("selection",e.selection)("pageSize",e.pageSize)("resourceTags",e.resourceTags)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("entity","resource")}}let S=(()=>{class e{constructor(e,t,i,s){this.dialogRef=e,this.data=t,this.tableConfigService=i,this.resourcesManager=s,this.tableId=o.g,this.selection=new a.Ov(!0,[]),this.resourceTags=[],this.displayedColumns=["select","id","name"]}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),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(e=>{this.resourceTags=e.filter(e=>this.assignedTags.map(e=>e.id).indexOf(e.id)<=-1),this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(e){if(0===e.length)return this.dialogRef.close(!0);const t=e.pop();this.resourcesManager.assignResourceTagToResource({resource:this.resourceId,resourceTag:t}).subscribe(()=>{this.onSubmit(e)})}applyFilter(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(c.so),u.Y36(c.WI),u.Y36(o.dB),u.Y36(s.xk))},e.\u0275cmp=u.Xpm({type:e,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","pageSize","resourceTags","filterValue","displayedColumns","entity","page",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,"mr-auto","ml-auto"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page"]],template:function(e,t){1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",1),u.TgZ(5,"div",2),u.YNc(6,f,1,0,"mat-spinner",3),u.qZA(),u.YNc(7,A,1,6,"app-resources-tags-list",4),u.qZA(),u.TgZ(8,"div",5),u.TgZ(9,"button",6),u.NdJ("click",function(){return t.onCancel()}),u._uU(10),u.ALo(11,"translate"),u.qZA(),u.TgZ(12,"button",7),u.NdJ("click",function(){return t.onSubmit(t.selection.selected)}),u._uU(13),u.ALo(14,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),u.xp6(4),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading),u.xp6(3),u.hij(" ",u.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",t.loading||0===t.resourceTags.length),u.xp6(1),u.hij(" ",u.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},directives:[c.uh,c.xY,d.O5,c.H8,g.lW,h.$g,p.o],pipes:[m.X$],styles:[""]}),e})();var b=i(57629),R=i(59403),E=i(19139);function Z(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",7),u.NdJ("click",function(){return u.CHM(e),u.oxw().addTag()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function T(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",8),u.NdJ("click",function(){return u.CHM(e),u.oxw().removeTags()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&e){const e=u.oxw();u.Q6J("disabled",0===e.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function I(e,t){1&e&&u._UZ(0,"mat-spinner",9)}function C(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"app-resources-tags-list",10),u.NdJ("page",function(t){return u.CHM(e),u.oxw().pageChanged(t)}),u.qZA()}if(2&e){const e=u.oxw();u.Q6J("selection",e.selection)("pageSize",e.pageSize)("resourceTags",e.resourceTags)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("entity","resource")}}let v=(()=>{class e{constructor(e,t,i,s,n,r,l,c){this.route=e,this.authResolver=t,this.tableConfigService=i,this.resourcesManager=s,this.voService=n,this.dialog=r,this.notificator=l,this.translate=c,this.loading=!1,this.resourceTags=[],this.selection=new a.Ov(!0,[]),this.tableId=o.M8,this.displayedColumns=[]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(e=>{this.voId=e.voId,this.resourceId=e.resourceId,this.resourcesManager.getResourceById(this.resourceId).subscribe(e=>{this.resource=e,this.updateData()})})}removeTags(){const e=(0,n.kZ)();e.width="450px",e.data={items:this.selection.selected.map(e=>e.tagName),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme"},this.dialog.open(l.Tf,e).afterClosed().subscribe(e=>{e&&this.removeTag(this.selection.selected)})}removeTag(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData();const t=e.pop();this.resourcesManager.removeResourceTagFromResource({resource:this.resourceId,resourceTag:t}).subscribe(()=>{this.removeTag(e)})}addTag(){const e=(0,n.kZ)();e.width="600px",e.data={voId:this.voId,resourceId:this.resourceId,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(S,e).afterClosed().subscribe(e=>{e&&(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resourceId).subscribe(e=>{this.resourceTags=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.displayedColumns=[],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(e){this.filterValue=e}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(b.gz),u.Y36(r.x4),u.Y36(o.dB),u.Y36(s.xk),u.Y36(s.YF),u.Y36(c.uw),u.Y36(r.V6),u.Y36(m.sK))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-perun-web-apps-resource-tags"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return t.updateData()}),u.qZA(),u.YNc(4,Z,3,3,"button",2),u.YNc(5,T,3,4,"button",3),u.TgZ(6,"perun-web-apps-immediate-filter",4),u.NdJ("filter",function(e){return t.applyFilter(e)}),u.qZA(),u.YNc(7,I,1,0,"mat-spinner",5),u.YNc(8,C,1,6,"app-resources-tags-list",6)),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,6,"RESOURCE_DETAIL.TAGS.TITLE")),u.xp6(3),u.Q6J("ngIf",t.addAuth),u.xp6(1),u.Q6J("ngIf",t.removeAuth),u.xp6(1),u.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),u.xp6(1),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading))},directives:[R.t,d.O5,E.L,g.lW,h.$g,p.o],pipes:[m.X$],styles:[""]}),e})()},489:function(e,t,i){"use strict";i.d(t,{s:function(){return De}});var s=i(4230),a=i(84608),o=i(88426),n=i(33642),r=i(60611),l=i(67004),c=i(16073),u=i(31572),d=i(48160),g=i(57629),h=i(66283),p=i(4786),m=i(61511),f=i(80340),A=i(15980),S=i(71522),b=i(67806),R=i(39571),E=i(86593);let Z=(()=>{class e{constructor(e){this.translate=e,this.prefix="ROLES."}transform(e){const t=this.prefix.concat(e);return this.translate.instant(t)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(d.sK,16))},e.\u0275pipe=u.Yjl({name:"displayedRole",type:e,pure:!0}),e})();function T(e,t){if(1&e&&(u.TgZ(0,"mat-option",15),u._uU(1),u.ALo(2,"displayedRole"),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.Oqu(u.lcZ(2,2,e))}}function I(e,t){1&e&&u._UZ(0,"mat-spinner",16)}function C(e,t){1&e&&(u.TgZ(0,"app-alert",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}const v=function(){return["select","id","name","email","logins","organization"]};function O(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"app-users-list",21),u.NdJ("page",function(t){return u.CHM(e),u.oxw(2).pageChanged(t)}),u.qZA()}if(2&e){const e=u.oxw(2);u.Q6J("pageSize",e.pageSize)("disableRouting",!0)("selection",e.selection)("displayedColumns",u.DdM(5,v))("users",e.users)}}function _(e,t){if(1&e&&(u.TgZ(0,"div",17),u.YNc(1,C,3,3,"app-alert",18),u.YNc(2,O,1,6,"app-users-list",19),u.qZA()),2&e){const e=u.oxw();u.xp6(1),u.Q6J("ngIf",0===e.users.length&&e.firstSearchDone),u.xp6(1),u.Q6J("ngIf",0!==e.users.length)}}let x=(()=>{class e{constructor(e,t,i,a,o,n,l,c,u,d){this.dialogRef=e,this.data=t,this.authzService=i,this.usersService=a,this.translate=o,this.notificator=n,this.storeService=l,this.route=c,this.router=u,this.tableConfigService=d,this.selection=new s.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=r.H2,o.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(e=>this.title=e),o.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(e=>this.successMessage=e)}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new c.NI("",[c.kI.required,c.kI.pattern(".*[\\S]+.*")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(e=>e.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 e=[l.r.USER_DEF_ORGANIZATION,l.r.USER_DEF_PREFERRED_MAIL];e=e.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,e).subscribe(e=>{this.users=e,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.so),u.Y36(a.WI),u.Y36(n.Ct),u.Y36(n.Fv),u.Y36(d.sK),u.Y36(o.V6),u.Y36(o.d6),u.Y36(g.gz),u.Y36(g.F0),u.Y36(r.dB))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-add-manager-dialog"]],decls:32,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",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"pageSize","disableRouting","selection","displayedColumns","users","page",4,"ngIf"],["alert_type","warn"],[3,"pageSize","disableRouting","selection","displayedColumns","users","page"]],template:function(e,t){1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",1),u.TgZ(5,"div",2),u.TgZ(6,"mat-form-field",3),u.TgZ(7,"mat-label"),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"mat-select",4),u.NdJ("valueChange",function(e){return t.selectedRole=e}),u.YNc(11,T,3,4,"mat-option",5),u.qZA(),u.qZA(),u.TgZ(12,"mat-form-field",6),u.TgZ(13,"label"),u.TgZ(14,"input",7),u.NdJ("keyup.enter",function(){return t.onSearchByString()}),u.ALo(15,"translate"),u.qZA(),u.qZA(),u.TgZ(16,"mat-error"),u._uU(17),u.ALo(18,"translate"),u.qZA(),u.qZA(),u.qZA(),u.TgZ(19,"button",8),u.NdJ("click",function(){return t.onSearchByString()}),u._uU(20),u.ALo(21,"translate"),u.qZA(),u.TgZ(22,"div",9),u.YNc(23,I,1,0,"mat-spinner",10),u.qZA(),u.YNc(24,_,3,2,"div",11),u.qZA(),u.TgZ(25,"div",12),u.TgZ(26,"button",13),u.NdJ("click",function(){return t.onCancel()}),u._uU(27),u.ALo(28,"translate"),u.qZA(),u.TgZ(29,"button",14),u.NdJ("click",function(){return t.onSubmit()}),u._uU(30),u.ALo(31,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),u.xp6(6),u.Oqu(u.lcZ(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.xp6(2),u.Q6J("value",t.selectedRole),u.xp6(1),u.Q6J("ngForOf",t.availableRoles),u.xp6(3),u.s9C("placeholder",u.lcZ(15,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),u.Q6J("formControl",t.searchCtrl),u.xp6(3),u.hij(" ",u.lcZ(18,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),u.xp6(2),u.Q6J("disabled",t.loading),u.xp6(1),u.hij(" ",u.lcZ(21,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),u.xp6(3),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",null!==t.users&&!t.loading),u.xp6(3),u.hij(" ",u.lcZ(28,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length||void 0===t.selectedRole||t.loading),u.xp6(1),u.hij(" ",u.lcZ(31,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},directives:[a.uh,a.xY,h.KE,h.hX,p.gD,m.sg,f.Nt,c.Fj,c.JJ,c.oH,h.TO,A.lW,m.O5,a.H8,S.ey,b.$g,R.w,E.C],pipes:[d.X$,Z],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),e})();var N=i(67033);function D(e,t){1&e&&u._UZ(0,"th",14)}function w(e,t){if(1&e&&(u.TgZ(0,"td",15),u._uU(1),u.qZA()),2&e){const e=t.$implicit;u.xp6(1),u.AsE(" ",e.firstName," ",e.lastName,"")}}function U(e,t){1&e&&u._UZ(0,"tr",16)}function y(e,t){1&e&&u._UZ(0,"tr",17)}function L(e,t){if(1&e&&(u.TgZ(0,"div",6),u.TgZ(1,"p"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",7),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"table",8),u.ynx(8,9),u.YNc(9,D,1,0,"th",10),u.YNc(10,w,2,2,"td",11),u.BQk(),u.YNc(11,U,1,0,"tr",12),u.YNc(12,y,1,0,"tr",13),u.qZA(),u.qZA()),2&e){const e=u.oxw();u.xp6(2),u.hij(" ",u.lcZ(3,5,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),u.xp6(3),u.hij(" ",u.lcZ(6,7,"DIALOGS.REMOVE_MANAGERS.ASK")," "),u.xp6(2),u.Q6J("dataSource",e.dataSource),u.xp6(4),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns)}}function M(e,t){1&e&&u._UZ(0,"mat-spinner",18)}let G=(()=>{class e{constructor(e,t,i,s,a){this.dialogRef=e,this.data=t,this.notificator=i,this.translate=s,this.authzService=a,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new N.by(this.data.managers),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithUserComplementaryObject({role:this.data.role,users:this.data.managers.map(e=>e.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.so),u.Y36(a.WI),u.Y36(o.V6),u.Y36(d.sK),u.Y36(n.Ct))},e.\u0275cmp=u.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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",""],[1,"mr-auto","ml-auto"]],template:function(e,t){1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,L,13,9,"div",1),u.YNc(5,M,1,0,"mat-spinner",2),u.TgZ(6,"div",3),u.TgZ(7,"button",4),u.NdJ("click",function(){return t.onCancel()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",5),u.NdJ("click",function(){return t.onSubmit()}),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),u.xp6(2),u.Q6J("ngIf",!t.loading),u.xp6(1),u.Q6J("ngIf",t.loading),u.xp6(3),u.hij(" ",u.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",t.loading),u.xp6(1),u.hij(" ",u.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},directives:[a.uh,m.O5,a.H8,A.lW,a.xY,N.BZ,N.w1,N.fO,N.Dz,N.as,N.nj,N.ge,N.ev,N.XQ,N.Gk,b.$g],pipes:[d.X$],styles:[""]}),e})();function Y(e,t){1&e&&u._UZ(0,"mat-spinner",6)}function q(e,t){1&e&&u._UZ(0,"th",15)}function J(e,t){if(1&e&&(u.TgZ(0,"td",16),u._uU(1),u.qZA()),2&e){const e=t.$implicit;u.xp6(1),u.hij(" ",e.name,"")}}function k(e,t){1&e&&u._UZ(0,"tr",17)}function z(e,t){1&e&&u._UZ(0,"tr",18)}function Q(e,t){if(1&e&&(u.TgZ(0,"div",7),u.TgZ(1,"p"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"table",9),u.ynx(8,10),u.YNc(9,q,1,0,"th",11),u.YNc(10,J,2,1,"td",12),u.BQk(),u.YNc(11,k,1,0,"tr",13),u.YNc(12,z,1,0,"tr",14),u.qZA(),u.qZA()),2&e){const e=u.oxw();u.xp6(2),u.hij(" ",u.lcZ(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),u.xp6(3),u.hij(" ",u.lcZ(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),u.xp6(2),u.Q6J("dataSource",e.dataSource),u.xp6(4),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns)}}let V=(()=>{class e{constructor(e,t,i,s,a){this.dialogRef=e,this.data=t,this.notificator=i,this.translate=s,this.authzService=a,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new N.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(e=>e.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.so),u.Y36(a.WI),u.Y36(o.V6),u.Y36(d.sK),u.Y36(n.Ct))},e.\u0275cmp=u.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,Y,1,0,"mat-spinner",1),u.YNc(5,Q,13,9,"div",2),u.TgZ(6,"div",3),u.TgZ(7,"button",4),u.NdJ("click",function(){return t.onCancel()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",5),u.NdJ("click",function(){return t.onSubmit()}),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),u.xp6(2),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading),u.xp6(3),u.hij(" ",u.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",t.loading),u.xp6(1),u.hij(" ",u.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},directives:[a.uh,m.O5,a.H8,A.lW,b.$g,a.xY,N.BZ,N.w1,N.fO,N.Dz,N.as,N.nj,N.ge,N.ev,N.XQ,N.Gk],pipes:[d.X$],styles:[""]}),e})();var P=i(56238),F=i(79996),H=i(40084),j=i(91058),$=i(78364);function B(e,t){if(1&e&&(u.TgZ(0,"mat-option",17),u._uU(1),u.ALo(2,"displayedRole"),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.Oqu(u.lcZ(2,2,e))}}function X(e,t){if(1&e&&(u.TgZ(0,"mat-option",17),u._uU(1),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.hij(" ",e.name," ")}}function W(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"perun-web-apps-debounce-filter",18),u.NdJ("filter",function(t){return u.CHM(e),u.oxw().applyFilter(t)}),u.ALo(1,"translate"),u.qZA()}2&e&&u.s9C("placeholder",u.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function K(e,t){1&e&&u._UZ(0,"mat-spinner",19)}const ee=function(){return["select","id","name","description"]};function te(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"div",20),u.TgZ(1,"perun-web-apps-groups-list",21),u.NdJ("page",function(t){return u.CHM(e),u.oxw().pageChanged(t)}),u.qZA(),u.qZA()}if(2&e){const e=u.oxw();u.xp6(1),u.Q6J("pageSize",e.pageSize)("disableRouting",!0)("displayedColumns",u.DdM(7,ee))("selection",e.selection)("filter",e.filterValue)("groups",e.groups)("disableMembers",!1)}}let ie=(()=>{class e{constructor(e,t,i,a,o,n,l,u,d,g){this.dialogRef=e,this.data=t,this.authzService=i,this.voService=a,this.groupService=o,this.translate=n,this.notificator=l,this.route=u,this.tableConfigService=d,this.router=g,this.searchString="",this.selection=new s.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new c.NI,this.firstSearchDone=!1,this.tableId=r.kZ,n.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(e=>this.title=e),n.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(e=>this.successMessage=e)}displayFn(e){return e?e.name:null}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(e=>e.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>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(e=>{this.filteredOptions=this.myControl.valueChanges.pipe((0,P.O)(""),(0,F.U)(e=>this._filter(e))),this.vos=e,this.loading=!1},()=>this.loading=!1)}_filter(e){const t="string"==typeof e?e.toLowerCase():e.name.toLowerCase;return this.vos.filter(e=>e.name.toLowerCase().includes(t))}showVoGroups(e){this.loading=!0,this.groupService.getAllGroups(e.option.value.id).subscribe(e=>{this.groups=e,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}applyFilter(e){this.filterValue=e}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.so),u.Y36(a.WI),u.Y36(n.Ct),u.Y36(n.YF),u.Y36(n.ff),u.Y36(d.sK),u.Y36(o.V6),u.Y36(g.gz),u.Y36(r.dB),u.Y36(g.F0))},e.\u0275cmp=u.Xpm({type:e,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"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"pageSize","disableRouting","displayedColumns","selection","filter","groups","disableMembers","page"]],template:function(e,t){if(1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",1),u.TgZ(5,"div",2),u.TgZ(6,"mat-form-field",3),u.TgZ(7,"mat-label"),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"mat-select",4),u.NdJ("valueChange",function(e){return t.selectedRole=e}),u.YNc(11,B,3,4,"mat-option",5),u.qZA(),u.qZA(),u.TgZ(12,"mat-form-field",6),u.TgZ(13,"mat-label"),u._uU(14),u.ALo(15,"translate"),u.qZA(),u._UZ(16,"input",7),u.ALo(17,"translate"),u.TgZ(18,"mat-autocomplete",8,9),u.NdJ("optionSelected",function(e){return t.showVoGroups(e)}),u.YNc(20,X,2,2,"mat-option",5),u.ALo(21,"async"),u.qZA(),u.qZA(),u.qZA(),u.YNc(22,W,2,3,"perun-web-apps-debounce-filter",10),u.TgZ(23,"div",11),u.YNc(24,K,1,0,"mat-spinner",12),u.qZA(),u.YNc(25,te,2,8,"div",13),u.qZA(),u.TgZ(26,"div",14),u.TgZ(27,"button",15),u.NdJ("click",function(){return t.onCancel()}),u._uU(28),u.ALo(29,"translate"),u.qZA(),u.TgZ(30,"button",16),u.NdJ("click",function(){return t.onSubmit()}),u._uU(31),u.ALo(32,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e){const e=u.MAs(19);u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,19,"DIALOGS.ADD_GROUPS.TITLE")),u.xp6(6),u.Oqu(u.lcZ(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.xp6(2),u.Q6J("value",t.selectedRole),u.xp6(1),u.Q6J("ngForOf",t.availableRoles),u.xp6(3),u.Oqu(u.lcZ(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),u.xp6(2),u.s9C("placeholder",u.lcZ(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),u.Q6J("formControl",t.myControl)("matAutocomplete",e),u.xp6(2),u.Q6J("displayWith",t.displayFn),u.xp6(2),u.Q6J("ngForOf",u.lcZ(21,27,t.filteredOptions)),u.xp6(2),u.Q6J("ngIf",null!==t.groups&&t.groups.length>0&&!t.loading),u.xp6(2),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",null!==t.groups&&!t.loading),u.xp6(3),u.hij(" ",u.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length||t.loading),u.xp6(1),u.hij(" ",u.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},directives:[a.uh,a.xY,h.KE,h.hX,p.gD,m.sg,f.Nt,c.Fj,H.ZL,c.JJ,c.oH,H.XC,m.O5,a.H8,A.lW,S.ey,j.P,b.$g,$.W],pipes:[d.X$,m.Ov,Z],styles:[""]}),e})();var se=i(27613),ae=i(55109),oe=i(59403);function ne(e,t){1&e&&(u._uU(0),u.ALo(1,"translate")),2&e&&u.hij(" ",u.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function re(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"perun-web-apps-refresh-button",11),u.NdJ("refresh",function(){return u.CHM(e),u.oxw(2).refreshUsers()}),u.qZA()}}function le(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",12),u.NdJ("click",function(){return u.CHM(e),u.oxw(2).addManager()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function ce(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",13),u.NdJ("click",function(){return u.CHM(e),u.oxw(2).removeManager()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&e){const e=u.oxw(2);u.Q6J("disabled",0===e.selectionUsers.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function ue(e,t){if(1&e&&(u.TgZ(0,"mat-option",17),u._uU(1),u.ALo(2,"displayedRole"),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.Oqu(u.lcZ(2,2,e))}}function de(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"mat-form-field",14),u.TgZ(1,"mat-label"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"mat-select",15),u.NdJ("valueChange",function(t){return u.CHM(e),u.oxw(2).selectedRole=t})("selectionChange",function(){return u.CHM(e),u.oxw(2).refreshUsers()}),u.YNc(5,ue,3,4,"mat-option",16),u.qZA(),u.qZA()}if(2&e){const e=u.oxw(2);u.xp6(2),u.Oqu(u.lcZ(3,3,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.xp6(2),u.Q6J("value",e.selectedRole),u.xp6(1),u.Q6J("ngForOf",e.availableRoles)}}function ge(e,t){1&e&&u._UZ(0,"mat-spinner",18)}const he=function(){return["select","id","name","email","logins","organization"]},pe=function(){return["id","name","email","logins","organization"]};function me(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"app-users-list",20),u.NdJ("page",function(t){return u.CHM(e),u.oxw(3).pageChanged(t)}),u.qZA()}if(2&e){const e=u.oxw(3);u.Q6J("pageSize",e.pageSize)("users",e.managers)("disableRouting",!e.routeAuth)("displayedColumns",e.manageAuth?u.DdM(5,he):u.DdM(6,pe))("selection",e.selectionUsers)}}function fe(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,me,1,7,"app-users-list",19),u.qZA()),2&e){const e=u.oxw(2);u.xp6(1),u.Q6J("ngIf",e.managers)}}function Ae(e,t){if(1&e&&(u.YNc(0,re,1,0,"perun-web-apps-refresh-button",5),u.YNc(1,le,3,3,"button",6),u.YNc(2,ce,3,4,"button",7),u.YNc(3,de,6,5,"mat-form-field",8),u.YNc(4,ge,1,0,"mat-spinner",9),u.YNc(5,fe,2,1,"div",10)),2&e){const e=u.oxw();u.Q6J("ngIf",!e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading&&e.manageAuth),u.xp6(1),u.Q6J("ngIf",!e.loading&&e.manageAuth),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading)}}function Se(e,t){1&e&&(u._uU(0),u.ALo(1,"translate")),2&e&&u.hij(" ",u.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function be(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"perun-web-apps-refresh-button",11),u.NdJ("refresh",function(){return u.CHM(e),u.oxw(2).refreshGroups()}),u.qZA()}}function Re(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",12),u.NdJ("click",function(){return u.CHM(e),u.oxw(2).addGroup()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Ee(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",13),u.NdJ("click",function(){return u.CHM(e),u.oxw(2).removeGroup()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&e){const e=u.oxw(2);u.Q6J("disabled",0===e.selectionGroups.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Ze(e,t){if(1&e&&(u.TgZ(0,"mat-option",17),u._uU(1),u.ALo(2,"displayedRole"),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.Oqu(u.lcZ(2,2,e))}}function Te(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"mat-form-field",14),u.TgZ(1,"mat-label"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"mat-select",15),u.NdJ("valueChange",function(t){return u.CHM(e),u.oxw(2).selectedRole=t})("selectionChange",function(){return u.CHM(e),u.oxw(2).refreshGroups()}),u.YNc(5,Ze,3,4,"mat-option",16),u.qZA(),u.qZA()}if(2&e){const e=u.oxw(2);u.xp6(2),u.Oqu(u.lcZ(3,3,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.xp6(2),u.Q6J("value",e.selectedRole),u.xp6(1),u.Q6J("ngForOf",e.availableRoles)}}function Ie(e,t){1&e&&u._UZ(0,"mat-spinner",18)}const Ce=function(){return["select","id","vo","name","description"]},ve=function(){return["id","vo","name","description"]};function Oe(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"perun-web-apps-groups-list",22),u.NdJ("page",function(t){return u.CHM(e),u.oxw(3).pageChanged(t)}),u.qZA()}if(2&e){const e=u.oxw(3);u.Q6J("pageSize",e.pageSize)("displayedColumns",e.manageAuth?u.DdM(5,Ce):u.DdM(6,ve))("groups",e.groups)("selection",e.selectionGroups)("disableMembers",!1)}}function _e(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,Oe,1,7,"perun-web-apps-groups-list",21),u.qZA()),2&e){const e=u.oxw(2);u.xp6(1),u.Q6J("ngIf",e.groups)}}function xe(e,t){if(1&e&&(u.YNc(0,be,1,0,"perun-web-apps-refresh-button",5),u.YNc(1,Re,3,3,"button",6),u.YNc(2,Ee,3,4,"button",7),u.YNc(3,Te,6,5,"mat-form-field",8),u.YNc(4,Ie,1,0,"mat-spinner",9),u.YNc(5,_e,2,1,"div",10)),2&e){const e=u.oxw();u.Q6J("ngIf",!e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading&&e.manageAuth),u.xp6(1),u.Q6J("ngIf",!e.loading&&e.manageAuth),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading)}}function Ne(e,t){1&e&&(u.TgZ(0,"app-alert",23),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}let De=(()=>{class e{constructor(e,t,i,a,o){this.dialog=e,this.tableConfigService=t,this.authzService=i,this.storeService=a,this.guiAuthResolver=o,this.groups=null,this.managers=null,this.selectionUsers=new s.Ov(!0,[]),this.selectionGroups=new s.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=r.HC,this.availableRolesPrivileges=new Map}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.guiAuthResolver.getRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(e=>this.availableRolesPrivileges.get(e).readAuth),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0]),this.routeAuth=this.guiAuthResolver.isPerunAdminOrObserver(),this.refreshUsers()}changeRolePrivileges(){this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;let e=!1;for(const t of this.roleModes)if(this.selectedMode===t.toLowerCase()){e=!0;break}e||(this.selectedMode=this.roleModes[0].toLowerCase())}tabChanged(e){this.loading=!0,0===e.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}refreshUsers(){this.loading=!0,this.changeRolePrivileges();let e=[l.r.USER_DEF_ORGANIZATION,l.r.USER_DEF_PREFERRED_MAIL];e=e.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,e,!1,!0).subscribe(e=>{this.managers=e,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(e=>{this.groups=e,this.selectionGroups.clear(),this.loading=!1},()=>{this.loading=!1})}addManager(){const e=(0,se.kZ)();e.width="1000px",e.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(x,e).afterClosed().subscribe(e=>{e&&this.refreshUsers()})}removeManager(){const e=(0,se.kZ)();e.width="450px",e.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(G,e).afterClosed().subscribe(e=>{e&&this.refreshUsers()})}removeGroup(){const e=(0,se.kZ)();e.width="450px",e.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(V,e).afterClosed().subscribe(e=>{e&&this.refreshGroups()})}addGroup(){const e=(0,se.kZ)();e.width="1000px",e.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(ie,e).afterClosed().subscribe(e=>{e&&this.refreshGroups()})}pageChanged(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.uw),u.Y36(r.dB),u.Y36(n.Ct),u.Y36(o.d6),u.Y36(o.x4))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(e,t){2&e&&u.ekj("router-component",t.true)},inputs:{complementaryObject:"complementaryObject",availableRoles:"availableRoles",complementaryObjectType:"complementaryObjectType",theme:"theme"},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["alert_type","warn",4,"ngIf"],["class","mt-2",3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2 mt-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 mt-2",3,"disabled","click",4,"ngIf"],["class","mr-2 mt-2",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2","mt-2",3,"disabled","click"],[1,"mr-2","mt-2"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"pageSize","users","disableRouting","displayedColumns","selection","page",4,"ngIf"],[3,"pageSize","users","disableRouting","displayedColumns","selection","page"],[3,"pageSize","displayedColumns","groups","selection","disableMembers","page",4,"ngIf"],[3,"pageSize","displayedColumns","groups","selection","disableMembers","page"],["alert_type","warn"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"mat-tab-group",1),u.NdJ("selectedTabChange",function(e){return t.tabChanged(e)}),u.TgZ(4,"mat-tab"),u.YNc(5,ne,2,3,"ng-template",2),u.YNc(6,Ae,6,6,"ng-template",3),u.qZA(),u.TgZ(7,"mat-tab"),u.YNc(8,Se,2,3,"ng-template",2),u.YNc(9,xe,6,6,"ng-template",3),u.qZA(),u.qZA(),u.YNc(10,Ne,3,3,"app-alert",4)),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),u.xp6(9),u.Q6J("ngIf",0===t.availableRoles.length))},directives:[ae.SP,ae.uX,ae.uD,ae.Vc,m.O5,oe.t,A.lW,h.KE,h.hX,p.gD,m.sg,S.ey,b.$g,E.C,$.W,R.w],pipes:[d.X$,Z],styles:[""]}),e})()},4196:function(e,t,i){"use strict";i.d(t,{o:function(){return G}});var s=i(31572),a=i(58623),o=i(67033),n=i(4230),r=i(88426),l=i(33642),c=i(27613),u=i(48160),d=i(82819),g=i(61511),h=i(29236),p=i(66283),m=i(80340),f=i(16073),A=i(15980),S=i(36922),b=i(43691),R=i(39571);function E(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"th",14),s.TgZ(1,"mat-checkbox",15),s.NdJ("change",function(t){s.CHM(e);const i=s.oxw();return t?i.masterToggle():null}),s.qZA(),s.qZA()}if(2&e){const e=s.oxw();s.xp6(1),s.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Z(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"td",16),s.TgZ(1,"mat-checkbox",17),s.NdJ("change",function(t){const i=s.CHM(e).$implicit,a=s.oxw();return t?a.selection.toggle(i):null})("click",function(e){return e.stopPropagation()}),s.qZA(),s.qZA()}if(2&e){const e=t.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))}}function T(e,t){1&e&&(s.TgZ(0,"th",18),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")))}function I(e,t){if(1&e&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&e){const e=t.$implicit;s.xp6(1),s.Oqu(e.id)}}function C(e,t){1&e&&(s.TgZ(0,"th",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")))}function v(e,t){if(1&e&&(s.TgZ(0,"div"),s._uU(1),s.qZA()),2&e){const e=s.oxw().$implicit;s.xp6(1),s.hij(" ",e.tagName," ")}}function O(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"mat-form-field"),s.TgZ(2,"input",21),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw().$implicit.tagName=t}),s.qZA(),s.qZA(),s.qZA()}if(2&e){const e=s.oxw().$implicit;s.xp6(2),s.Q6J("ngModel",e.tagName)}}function _(e,t){if(1&e&&(s.TgZ(0,"td",19),s.YNc(1,v,2,1,"div",20),s.YNc(2,O,3,1,"div",20),s.qZA()),2&e){const e=t.$implicit,i=s.oxw();s.xp6(1),s.Q6J("ngIf",!i.isChanging.isSelected(e)),s.xp6(1),s.Q6J("ngIf",i.isChanging.isSelected(e))}}function x(e,t){1&e&&s._UZ(0,"th",14)}function N(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"button",24),s.NdJ("click",function(){s.CHM(e);const t=s.oxw().$implicit;return s.oxw().edit(t)}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon"),s._uU(3,"edit"),s.qZA(),s.qZA()}2&e&&s.s9C("matTooltip",s.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function D(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"button",24),s.NdJ("click",function(){s.CHM(e);const t=s.oxw().$implicit;return s.oxw().save(t)}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon"),s._uU(3,"save"),s.qZA(),s.qZA()}2&e&&s.s9C("matTooltip",s.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function w(e,t){if(1&e&&(s.TgZ(0,"td",19),s.TgZ(1,"div",22),s.YNc(2,N,4,3,"button",23),s.YNc(3,D,4,3,"button",23),s.qZA(),s.qZA()),2&e){const e=t.$implicit,i=s.oxw();s.xp6(2),s.Q6J("ngIf",!i.isChanging.isSelected(e)),s.xp6(1),s.Q6J("ngIf",i.isChanging.isSelected(e))}}function U(e,t){1&e&&s._UZ(0,"tr",25)}function y(e,t){1&e&&s._UZ(0,"tr",26)}function L(e,t){if(1&e&&(s.TgZ(0,"app-alert",27),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"translate"),s.qZA()),2&e){const e=s.oxw();s.xp6(1),s.hij(" ","vo"===e.entity?s.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):s.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function M(e,t){1&e&&(s.TgZ(0,"app-alert",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let G=(()=>{class e{constructor(e,t,i,a,o){this.resourceManager=e,this.notificator=t,this.translator=i,this.authResolver=a,this.tableCheckbox=o,this.resourceTags=[],this.selection=new n.Ov(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","name","edit"],this.page=new s.vpe,this.isChanging=new n.Ov(!0,[]),this.pageSizeOptions=c.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new o.by(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.tagName;default:return""}}exportData(e){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>(0,c.Sd)(e,t,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(e,t)=>(0,c.pR)(e,t,this.getDataForColumn,this),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.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.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"}save(e){this.resourceManager.updateResourceTag({resourceTag:e}).subscribe(()=>{this.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e)}),this.isChanging.deselect(e)})}edit(e){this.isChanging.select(e)}}return e.\u0275fac=function(t){return new(t||e)(s.Y36(l.xk),s.Y36(r.V6),s.Y36(u.sK),s.Y36(r.x4),s.Y36(r.UA))},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-resources-tags-list"]],viewQuery:function(e,t){if(1&e&&(s.Gf(a.YE,7),s.Gf(c.l9,7)),2&e){let e;s.iGM(e=s.CRH())&&(t.matSort=e.first),s.iGM(e=s.CRH())&&(t.child=e.first)}},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",pageSize:"pageSize",displayedColumns:"displayedColumns",entity:"entity"},outputs:{page:"page"},features:[s.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","edit"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["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(e,t){1&e&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,E,2,3,"th",4),s.YNc(5,Z,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,T,3,3,"th",7),s.YNc(8,I,2,1,"td",5),s.BQk(),s.ynx(9,8),s.YNc(10,C,3,3,"th",4),s.YNc(11,_,3,2,"td",9),s.BQk(),s.ynx(12,10),s.YNc(13,x,1,0,"th",4),s.YNc(14,w,4,2,"td",9),s.BQk(),s.YNc(15,U,1,0,"tr",11),s.YNc(16,y,1,0,"tr",12),s.qZA(),s.qZA(),s.qZA(),s.YNc(17,L,4,5,"app-alert",13),s.YNc(18,M,3,3,"app-alert",13)),2&e&&(s.Q6J("hidden",0===t.resourceTags.length||0===t.dataSource.filteredData.length),s.xp6(1),s.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),s.xp6(1),s.Q6J("dataSource",t.dataSource),s.xp6(13),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===t.resourceTags.length),s.xp6(1),s.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resourceTags.length))},directives:[d.l,o.BZ,a.YE,o.w1,o.fO,o.Dz,o.as,o.nj,g.O5,o.ge,h.oG,o.ev,a.nU,p.KE,m.Nt,f.Fj,f.JJ,f.On,A.lW,S.gM,b.Hw,o.XQ,o.Gk,R.w],pipes:[u.X$],styles:[""]}),e})()},91721:function(e,t,i){"use strict";i.d(t,{Q:function(){return G}});var s=i(31572),a=i(58623),o=i(67033),n=i(4230),r=i(27613),l=i(88426),c=i(82819),u=i(61511),d=i(29236),g=i(43691),h=i(36922),p=i(84534),m=i(57629),f=i(39571),A=i(48160);function S(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"th",16),s.TgZ(1,"mat-checkbox",17),s.NdJ("change",function(t){s.CHM(e);const i=s.oxw();return t?i.masterToggle():null}),s.qZA(),s.qZA()}if(2&e){const e=s.oxw();s.xp6(1),s.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function b(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"td",18),s.TgZ(1,"mat-checkbox",19),s.NdJ("change",function(t){const i=s.CHM(e).$implicit,a=s.oxw();return t?a.selection.toggle(i):null})("click",function(e){return e.stopPropagation()}),s.qZA(),s.qZA()}if(2&e){const e=t.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))}}function R(e,t){1&e&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")))}function E(e,t){if(1&e&&(s.TgZ(0,"td",18),s._uU(1),s.qZA()),2&e){const e=t.$implicit;s.xp6(1),s.Oqu(e.id)}}function Z(e,t){1&e&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")))}function T(e,t){if(1&e&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&e){const e=t.$implicit;s.xp6(1),s.Oqu(e.name)}}function I(e,t){1&e&&s._UZ(0,"th",16)}function C(e,t){1&e&&(s.TgZ(0,"mat-icon",23),s.ALo(1,"translate"),s._uU(2," check_circle_outline "),s.qZA()),2&e&&s.s9C("matTooltip",s.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function v(e,t){1&e&&(s.TgZ(0,"mat-icon",23),s.ALo(1,"translate"),s._uU(2," block "),s.qZA()),2&e&&s.s9C("matTooltip",s.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function O(e,t){if(1&e&&(s.TgZ(0,"td",21),s.YNc(1,C,3,3,"mat-icon",22),s.YNc(2,v,3,3,"mat-icon",22),s.qZA()),2&e){const e=t.$implicit;s.xp6(1),s.Q6J("ngIf",e.enabled),s.xp6(1),s.Q6J("ngIf",!e.enabled)}}function _(e,t){1&e&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")))}function x(e,t){if(1&e&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&e){const e=t.$implicit;s.xp6(1),s.Oqu(e.script)}}function N(e,t){1&e&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")))}function D(e,t){if(1&e&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&e){const e=t.$implicit;s.xp6(1),s.Oqu(e.description)}}function w(e,t){1&e&&s._UZ(0,"tr",24)}const U=function(e){return["/admin/services",e]};function y(e,t){if(1&e&&s._UZ(0,"tr",25),2&e){const e=t.$implicit,i=s.oxw();s.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:s.VKq(6,U,e.id))("routerLink",i.disableRouting?null:s.VKq(8,U,e.id))}}function L(e,t){1&e&&(s.TgZ(0,"app-alert",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function M(e,t){1&e&&(s.TgZ(0,"app-alert",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}let G=(()=>{class e{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.services=[],this.filterValue="",this.pageSize=10,this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new n.Ov(!0,[]),this.disableRouting=!1,this.page=new s.vpe,this.pageSizeOptions=r.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new o.by(this.services),this.setDataSource()}getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"enabled":return e.enabled?"true":"false";case"script":return e.script;case"description":return e.description;default:return""}}exportData(e){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>(0,r.Sd)(e,t,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(e,t)=>(0,r.pR)(e,t,this.getDataForColumn,this),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.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.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 e.\u0275fac=function(t){return new(t||e)(s.Y36(l.x4),s.Y36(l.UA))},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-services-list"]],viewQuery:function(e,t){if(1&e&&(s.Gf(a.YE,7),s.Gf(r.l9,7)),2&e){let e;s.iGM(e=s.CRH())&&(t.matSort=e.first),s.iGM(e=s.CRH())&&(t.child=e.first)}},inputs:{services:"services",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{page:"page"},features:[s.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","enabled"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,S,2,3,"th",4),s.YNc(5,b,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,R,3,3,"th",7),s.YNc(8,E,2,1,"td",5),s.BQk(),s.ynx(9,8),s.YNc(10,Z,3,3,"th",7),s.YNc(11,T,2,1,"td",9),s.BQk(),s.ynx(12,10),s.YNc(13,I,1,0,"th",4),s.YNc(14,O,3,2,"td",9),s.BQk(),s.ynx(15,11),s.YNc(16,_,3,3,"th",4),s.YNc(17,x,2,1,"td",9),s.BQk(),s.ynx(18,12),s.YNc(19,N,3,3,"th",7),s.YNc(20,D,2,1,"td",9),s.BQk(),s.YNc(21,w,1,0,"tr",13),s.YNc(22,y,1,10,"tr",14),s.qZA(),s.qZA(),s.qZA(),s.YNc(23,L,3,3,"app-alert",15),s.YNc(24,M,3,3,"app-alert",15)),2&e&&(s.Q6J("hidden",void 0===t.services||0===t.services.length||0===t.dataSource.filteredData.length),s.xp6(1),s.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),s.xp6(1),s.Q6J("dataSource",t.dataSource),s.xp6(19),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===t.dataSource.filteredData.length&&void 0!==t.services&&0!==t.services.length),s.xp6(1),s.Q6J("ngIf",void 0===t.services||0===t.services.length))},directives:[c.l,o.BZ,a.YE,o.w1,o.fO,o.Dz,o.as,o.nj,u.O5,o.ge,d.oG,o.ev,a.nU,g.Hw,h.gM,o.XQ,o.Gk,p.YH,m.rH,f.w],pipes:[A.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),e})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/827-es5.48873b00486d65bdb035.js b/dist/apps/admin-gui/827-es5.48873b00486d65bdb035.js new file mode 100644 index 000000000..355c591b8 --- /dev/null +++ b/dist/apps/admin-gui/827-es5.48873b00486d65bdb035.js @@ -0,0 +1 @@ +!function(){function e(e,i){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=function(e,i){if(!e)return;if("string"==typeof e)return t(e,i);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return t(e,i)}(e))||i&&e&&"number"==typeof e.length){a&&(e=a);var n=0,s=function(){};return{s:s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,l=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==a.return||a.return()}finally{if(l)throw r}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i_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()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(N.gz),g.Y36(r.xk),g.Y36(o.dB),g.Y36(u.uw),g.Y36(d.x4))},e.\u0275cmp=g.Xpm({type:e,selectors:[["app-perun-web-apps-resource-assigned-services"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","ml-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","services","selection","filterValue","displayedColumns","disableRouting","page",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","services","selection","filterValue","displayedColumns","disableRouting","page"]],template:function(e,t){1&e&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"perun-web-apps-refresh-button",1),g.NdJ("refresh",function(){return t.loadAllServices()}),g.qZA(),g.YNc(4,U,3,3,"button",2),g.YNc(5,L,3,4,"button",3),g.TgZ(6,"perun-web-apps-immediate-filter",4),g.NdJ("filter",function(e){return t.applyFilter(e)}),g.qZA(),g.YNc(7,k,1,0,"mat-spinner",5),g.YNc(8,M,1,6,"app-services-list",6)),2&e&&(g.xp6(1),g.Oqu(g.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),g.xp6(3),g.Q6J("ngIf",!t.loadingResource&&t.assignServiceAuth),g.xp6(1),g.Q6J("ngIf",!t.loadingResource&&t.removeServiceAuth),g.xp6(1),g.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),g.xp6(1),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",!t.loading))},directives:[D.t,h.O5,w.L,f.lW,m.$g,A.Q],pipes:[p.X$],styles:[""]}),e}()},79472:function(e,t,a){"use strict";a.d(t,{X:function(){return E}});var s=a(88426),r=a(33642),o=a(31572),l=a(57629),c=a(55109),u=a(61511),d=a(541),g=a(69012),p=a(48160);function h(e,t){1&e&&(o._uU(0),o.ALo(1,"translate")),2&e&&o.hij(" ",o.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function f(e,t){if(1&e&&o._UZ(0,"app-one-entity-attribute-page",4),2&e){var i=o.oxw();o.Q6J("entity","resource")("entityId",i.resourceId)}}function m(e,t){1&e&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&e&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function v(e,t){if(1&e&&o._UZ(0,"app-two-entity-attribute-page",5),2&e){var i=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",i.resourceId)("secondEntity","member")}}function A(e,t){1&e&&(o.TgZ(0,"mat-tab"),o.YNc(1,m,3,6,"ng-template",1),o.YNc(2,v,1,3,"ng-template",2),o.qZA())}function S(e,t){1&e&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&e&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function b(e,t){if(1&e&&o._UZ(0,"app-two-entity-attribute-page",5),2&e){var i=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",i.resourceId)("secondEntity","group")}}function R(e,t){1&e&&(o.TgZ(0,"mat-tab"),o.YNc(1,S,3,6,"ng-template",1),o.YNc(2,b,1,3,"ng-template",2),o.qZA())}var E=function(){var e=function(){function e(t,a,n){i(this,e),this.route=t,this.authResolver=a,this.resourceManager=n}return n(e,[{key:"ngOnInit",value:function(){var e=this;this.route.parent.params.subscribe(function(t){e.resourceId=parseInt(t.resourceId,10),e.resourceManager.getResourceById(e.resourceId).subscribe(function(t){e.resource=t,e.resourceGroupAttAuth=e.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[e.resource]),e.resourceMemberAttAuth=e.authResolver.isAuthorized("getAssignedRichMembers_Resource_policy",[e.resource])})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(l.gz),o.Y36(s.x4),o.Y36(r.xk))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,t){1&e&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-tab-group"),o.TgZ(5,"mat-tab"),o.YNc(6,h,2,3,"ng-template",1),o.YNc(7,f,1,2,"ng-template",2),o.qZA(),o.YNc(8,A,3,0,"mat-tab",3),o.YNc(9,R,3,0,"mat-tab",3),o.qZA(),o.qZA()),2&e&&(o.xp6(2),o.Oqu(o.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),o.xp6(6),o.Q6J("ngIf",t.resourceMemberAttAuth),o.xp6(1),o.Q6J("ngIf",t.resourceGroupAttAuth))},directives:[c.SP,c.uX,c.uD,c.Vc,u.O5,d.t,g.Y],pipes:[p.X$],styles:[""]}),e}()},72920:function(e,t,a){"use strict";a.d(t,{b:function(){return M}});var s=a(17),r=a(75585),o=a(33642),l=a(84140),c=a(88426),u=a(22280),d=a(61189),g=a(95909),p=a(31572),h=a(57629),f=a(48958),m=a(84608),v=a(66297),A=a(61511),S=a(67806),b=a(43691),R=a(36922),E=a(21575),Z=a(15980),T=a(48160);function I(e,t){1&e&&p._UZ(0,"mat-spinner",3)}function C(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"button",15),p.NdJ("click",function(){return p.CHM(i),p.oxw(2).editResource()}),p.TgZ(1,"mat-icon"),p._uU(2,"edit"),p.qZA(),p.qZA()}}function O(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"button",16),p.NdJ("click",function(){return p.CHM(i),p.oxw(2).deleteResource()}),p.TgZ(1,"mat-icon"),p._uU(2,"delete_forever"),p.qZA(),p.qZA()}}var _=function(e){return["/organizations",e]};function y(e,t){if(1&e&&(p.TgZ(0,"a",8),p._uU(1),p.qZA()),2&e){var i=p.oxw(2);p.Q6J("routerLink",p.VKq(2,_,i.resource.vo.id)),p.xp6(1),p.Oqu(i.resource.vo.name)}}function x(e,t){if(1&e&&(p.TgZ(0,"span"),p._uU(1),p.qZA()),2&e){var i=p.oxw(2);p.xp6(1),p.hij(" ",i.resource.vo.name," ")}}var N=function(e){return["/facilities",e]};function D(e,t){if(1&e&&(p.TgZ(0,"a",8),p._uU(1),p.qZA()),2&e){var i=p.oxw(2);p.Q6J("routerLink",p.VKq(2,N,i.resource.facilityId)),p.xp6(1),p.Oqu(i.resource.facility.name)}}function w(e,t){if(1&e&&(p.TgZ(0,"span"),p._uU(1),p.qZA()),2&e){var i=p.oxw(2);p.xp6(1),p.hij(" ",i.resource.facility.name," ")}}var U=function(){return{color:"black"}},L=function(e){return[e]};function k(e,t){if(1&e&&(p.TgZ(0,"div"),p.TgZ(1,"div",4),p._UZ(2,"mat-icon",5),p.ALo(3,"translate"),p.TgZ(4,"div",6),p.TgZ(5,"div",7),p.TgZ(6,"a",8),p._uU(7),p.qZA(),p.TgZ(8,"span",9),p._uU(9),p.qZA(),p.YNc(10,C,3,0,"button",10),p.YNc(11,O,3,0,"button",11),p.qZA(),p.TgZ(12,"div"),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.TgZ(15,"span",12),p._uU(16),p.ALo(17,"translate"),p.ALo(18,"translate"),p.YNc(19,y,2,4,"a",13),p.YNc(20,x,2,1,"span",2),p._uU(21),p.ALo(22,"translate"),p.YNc(23,D,2,4,"a",14),p.YNc(24,w,2,1,"span",2),p._uU(25),p.ALo(26,"translate"),p.qZA(),p.qZA(),p.qZA(),p._UZ(27,"app-animated-router-outlet"),p.qZA()),2&e){var i=p.oxw();p.xp6(2),p.s9C("matTooltip",p.lcZ(3,20,"RESOURCE_DETAIL.ENTITY")),p.Q6J("ngStyle",p.DdM(32,U)),p.xp6(4),p.Q6J("routerLink",p.VKq(33,L,i.baseUrl)),p.xp6(1),p.hij(" ",i.resource.name," "),p.xp6(2),p.hij(" \xa0#",i.resource.id," "),p.xp6(1),p.Q6J("ngIf",i.editResourceAuth),p.xp6(1),p.Q6J("ngIf",i.deleteAuth),p.xp6(2),p.AsE(" ",p.lcZ(14,22,"RESOURCE_DETAIL.UUID"),": ",i.resource.uuid," "),p.xp6(3),p.AsE(" ",p.lcZ(17,24,"RESOURCE_DETAIL.ENTITY"),", ",p.lcZ(18,26,"RESOURCE_DETAIL.VO"),": "),p.xp6(3),p.Q6J("ngIf",i.voLinkAuth),p.xp6(1),p.Q6J("ngIf",!i.voLinkAuth),p.xp6(1),p.AsE(" #",i.resource.voId,", ",p.lcZ(22,28,"RESOURCE_DETAIL.FACILITY"),": "),p.xp6(2),p.Q6J("ngIf",i.facilityLinkAuth),p.xp6(1),p.Q6J("ngIf",!i.facilityLinkAuth),p.xp6(1),p.lnq(" #",i.resource.facilityId,", ",p.lcZ(26,30,"RESOURCE_DETAIL.DESCRIPTION"),": ",i.resource.description," ")}}var M=function(){var e=function(){function e(t,a,n,s,r,o,l,c,u){i(this,e),this.route=t,this.facilityManager=a,this.vosManagerService=n,this.resourcesManager=s,this.sideMenuService=r,this.sideMenuItemService=o,this.dialog=l,this.guiAuthResolver=c,this.router=u,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}return n(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.route.params.subscribe(function(t){e.resourcesManager.getRichResourceById(t.resourceId).subscribe(function(t){e.resource=t,e.setAuth(),"facilities"===e.route.parent.snapshot.url[0].path?(e.baseUrl=(new u.r5).transform(t,!1),e.facilityManager.getFacilityById(t.facilityId).subscribe(function(i){var a=e.sideMenuItemService.parseFacility(i),n=e.sideMenuItemService.parseResource(t,!1);e.sideMenuService.setFacilityMenuItems([a,n]),e.loading=!1},function(){return e.loading=!1})):(e.baseUrl=(new u.r5).transform(t,!0),e.vosManagerService.getVoById(t.voId).subscribe(function(i){var a=e.sideMenuItemService.parseVo(i),n=e.sideMenuItemService.parseResource(t,!0);e.sideMenuService.setAccessMenuItems([a,n]),e.loading=!1},function(){return e.loading=!1})),(0,l.sF)("resources",e.resource)})})}},{key:"setAuth",value:function(){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])}},{key:"editResource",value:function(){var e,t=this;this.resourcesManager.getResourceById(this.resource.id).subscribe(function(i){e=i;var a=(0,l.kZ)();a.width="450px",a.data={theme:"resource-theme",resource:e,dialogType:d.Eg.RESOURCE},t.dialog.open(d.rd,a).afterClosed().subscribe(function(e){e&&t.resourcesManager.getRichResourceById(t.resource.id).subscribe(function(e){t.resource=e})})})}},{key:"deleteResource",value:function(){var e=this,t=(0,l.kZ)();t.width="500px",t.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(g.f,t).afterClosed().subscribe(function(t){t&&e.router.navigate(["../"],{relativeTo:e.route})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(p.Y36(h.gz),p.Y36(o.IQ),p.Y36(o.YF),p.Y36(o.xk),p.Y36(f.D),p.Y36(r.V),p.Y36(m.uw),p.Y36(c.x4),p.Y36(h.F0))},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-resource-detail-page"]],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"],["mat-icon-button","","aria-label","Edit resource",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"],["mat-icon-button","","aria-label","Edit resource",3,"click"],["mat-icon-button","",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0),p._UZ(1,"perun-web-apps-back-button"),p.YNc(2,I,1,0,"mat-spinner",1),p.YNc(3,k,28,35,"div",2),p.qZA()),2&e&&(p.xp6(2),p.Q6J("ngIf",t.loading),p.xp6(1),p.Q6J("ngIf",!t.loading&&void 0!==t.resource))},directives:[v.W,A.O5,S.$g,b.Hw,R.gM,A.PC,h.yS,E.A,Z.lW],pipes:[T.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[s.Ji]}}),e}()},42473:function(t,a,s){"use strict";s.d(a,{K:function(){return P}});var r=s(33642),o=s(4230),l=s(84608),c=s(67033),u=s(88426),d=s(31572),g=s(48160),p=s(61511),h=s(15980),f=s(67806);function m(e,t){1&e&&d._UZ(0,"mat-spinner",6)}function v(e,t){1&e&&d._UZ(0,"th",15)}function A(e,t){if(1&e&&(d.TgZ(0,"td",16),d._uU(1),d.qZA()),2&e){var i=t.$implicit;d.xp6(1),d.hij(" ",i.name," ")}}function S(e,t){1&e&&d._UZ(0,"tr",17)}function b(e,t){1&e&&d._UZ(0,"tr",18)}function R(e,t){if(1&e&&(d.TgZ(0,"div",7),d.TgZ(1,"p"),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"div",8),d._uU(5),d.ALo(6,"translate"),d.qZA(),d.TgZ(7,"table",9),d.ynx(8,10),d.YNc(9,v,1,0,"th",11),d.YNc(10,A,2,1,"td",12),d.BQk(),d.YNc(11,S,1,0,"tr",13),d.YNc(12,b,1,0,"tr",14),d.qZA(),d.qZA()),2&e){var i=d.oxw();d.xp6(2),d.hij(" ",d.lcZ(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),d.xp6(3),d.hij(" ",d.lcZ(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),d.xp6(2),d.Q6J("dataSource",i.dataSource),d.xp6(4),d.Q6J("matHeaderRowDef",i.displayedColumns),d.xp6(1),d.Q6J("matRowDefColumns",i.displayedColumns)}}var E=function(){var t=function(){function t(e,a,n,s,r){i(this,t),this.dialogRef=e,this.data=a,this.notificator=n,this.translate=s,this.resourceManager=r,this.displayedColumns=["name"],this.loading=!1}return n(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.groups)}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t,i=this,a=[],n=e(this.data.groups);try{for(n.s();!(t=n.n()).done;){var s=t.value;a.push(s.id)}}catch(r){n.e(r)}finally{n.f()}this.loading=!0,this.resourceManager.removeGroupsFromResource(a,this.data.resourceId).subscribe(function(){i.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(function(e){i.notificator.showSuccess(e),i.dialogRef.close(!0)})},function(){return i.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(l.so),d.Y36(l.WI),d.Y36(u.V6),d.Y36(g.sK),d.Y36(r.xk))},t.\u0275cmp=d.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.YNc(4,m,1,0,"mat-spinner",1),d.YNc(5,R,13,9,"div",2),d.TgZ(6,"div",3),d.TgZ(7,"button",4),d.NdJ("click",function(){return t.onCancel()}),d._uU(8),d.ALo(9,"translate"),d.qZA(),d.TgZ(10,"button",5),d.NdJ("click",function(){return t.onSubmit()}),d._uU(11),d.ALo(12,"translate"),d.qZA(),d.qZA(),d.qZA()),2&e&&(d.Tol(t.theme),d.xp6(2),d.Oqu(d.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),d.xp6(2),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading),d.xp6(3),d.hij(" ",d.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),d.xp6(2),d.Q6J("disabled",t.loading),d.xp6(1),d.hij(" ",d.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},directives:[l.uh,p.O5,l.H8,h.lW,f.$g,l.xY,c.BZ,c.w1,c.fO,c.Dz,c.as,c.nj,c.ge,c.ev,c.XQ,c.Gk],pipes:[g.X$],styles:[""]}),t}(),Z=s(60611),T=s(29236),I=s(36922),C=s(16073),O=s(91058),_=s(78364);function y(e,t){1&e&&d._UZ(0,"mat-spinner",7)}var x=function(){return["select","id","name","description"]};function N(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"div",8),d.TgZ(1,"perun-web-apps-debounce-filter",9),d.NdJ("filter",function(e){return d.CHM(i),d.oxw().applyFilter(e)}),d.ALo(2,"translate"),d.qZA(),d.TgZ(3,"perun-web-apps-groups-list",10),d.NdJ("page",function(e){return d.CHM(i),d.oxw().pageChanged(e)}),d.qZA(),d.qZA()}if(2&e){var a=d.oxw();d.xp6(1),d.s9C("placeholder",d.lcZ(2,8,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),d.xp6(2),d.Q6J("pageSize",a.pageSize)("groups",a.unAssignedGroups)("selection",a.selection)("filter",a.filterValue)("displayedColumns",d.DdM(10,x))("disableRouting",!0)("disableMembers",!1)}}var D=function(){var t=function(){function t(e,a,n,s,r,l,c,u){i(this,t),this.dialogRef=e,this.data=a,this.notificator=n,this.translate=s,this.resourceManager=r,this.tableConfigService=l,this.groupService=c,this.guiAuthResolver=u,this.loading=!1,this.checkGroups=!1,this.async=!0,this.selection=new o.Ov(!0,[]),this.filterValue="",this.tableId=Z.cL}return n(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.resource=this.data.resource,this.resourceManager.getAssignedGroups(this.resource.id).subscribe(function(i){t.groupService.getAllGroups(t.resource.voId).subscribe(function(a){t.unAssignedGroups=a;var n,s=e(i);try{for(s.s();!(n=s.n()).done;){var r,o=n.value,l=e(a);try{for(l.s();!(r=l.n()).done;){var c=r.value;o.id===c.id&&t.unAssignedGroups.splice(t.unAssignedGroups.indexOf(c),1)}}catch(u){l.e(u)}finally{l.f()}}}catch(u){s.e(u)}finally{s.f()}t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onAdd",value:function(){var t=this;if(this.checkGroups);else{this.loading=!0;var i,a=[],n=e(this.selection.selected);try{for(n.s();!(i=n.n()).done;){var s=i.value;a.push(s.id)}}catch(r){n.e(r)}finally{n.f()}this.resourceManager.assignGroupsToResource(a,this.resource.id,this.async).subscribe(function(){t.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}},{key:"canAddGroups",value:function(){var e=this,t=!0;return this.selection.selected.forEach(function(i){e.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[e.resource,i])||(t=!1)}),t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(l.so),d.Y36(l.WI),d.Y36(u.V6),d.Y36(g.sK),d.Y36(r.xk),d.Y36(Z.dB),d.Y36(r.ff),d.Y36(u.x4))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],decls:18,vars:26,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions",""],[3,"matTooltip","ngModel","ngModelChange"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","matTooltip","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"pageSize","groups","selection","filter","displayedColumns","disableRouting","disableMembers","page"]],template:function(e,t){1&e&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.YNc(4,y,1,0,"mat-spinner",1),d.YNc(5,N,4,11,"div",2),d.TgZ(6,"div",3),d.TgZ(7,"mat-checkbox",4),d.NdJ("ngModelChange",function(e){return t.async=e}),d.ALo(8,"translate"),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.TgZ(11,"button",5),d.NdJ("click",function(){return t.onCancel()}),d._uU(12),d.ALo(13,"translate"),d.qZA(),d.TgZ(14,"button",6),d.NdJ("click",function(){return t.onAdd()}),d.ALo(15,"translate"),d._uU(16),d.ALo(17,"translate"),d.qZA(),d.qZA(),d.qZA()),2&e&&(d.Tol(t.theme),d.xp6(2),d.Oqu(d.lcZ(3,14,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),d.xp6(2),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading),d.xp6(2),d.s9C("matTooltip",d.lcZ(8,16,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT_DESCRIPTION")),d.Q6J("ngModel",t.async),d.xp6(2),d.hij(" ",d.lcZ(10,18,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),d.xp6(3),d.hij(" ",d.lcZ(13,20,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),d.xp6(2),d.s9C("matTooltip",d.lcZ(15,22,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_TOOLTIP")),d.Q6J("disabled",0===t.selection.selected.length||!t.canAddGroups()||t.loading)("matTooltipDisabled",t.canAddGroups()),d.xp6(2),d.hij(" ",d.lcZ(17,24,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))},directives:[l.uh,p.O5,l.H8,T.oG,I.gM,C.JJ,C.On,h.lW,f.$g,l.xY,O.P,_.W],pipes:[g.X$],styles:[""]}),t}(),w=s(84140),U=s(67004),L=s(57629),k=s(59403),M=s(39571),G=["checkbox"];function Y(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"button",9),d.NdJ("click",function(){return d.CHM(i),d.oxw().addGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function q(e,t){1&e&&d._UZ(0,"mat-spinner",10)}var J=function(e){return[e]},Q=function(){return["select","id","name","status","description"]};function z(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"div",11),d.TgZ(1,"perun-web-apps-groups-list",12),d.NdJ("page",function(e){return d.CHM(i),d.oxw().pageChanged(e)})("refreshTable",function(){return d.CHM(i),d.oxw().loadAllGroups()}),d.qZA(),d.qZA()}if(2&e){var a=d.oxw();d.xp6(1),d.Q6J("pageSize",a.pageSize)("groups",a.assignedGroups)("filter",a.filteredValue)("selection",a.selected)("disableMembers",!1)("resourceId",a.resourceId)("disableRouting",!a.guiAuthResolver.isAuthorized("getGroupById_int_policy",d.VKq(8,J,a.assignedGroups[0])))("displayedColumns",d.DdM(10,Q))}}function V(e,t){1&e&&(d.TgZ(0,"app-alert",13),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.NO_GROUPS"),"\n"))}var P=function(){var e=function(){function e(t,a,n,s,r,l){i(this,e),this.route=t,this.resourcesManager=a,this.vosManagerService=n,this.tableConfigService=s,this.dialog=r,this.guiAuthResolver=l,this.assignedGroups=[],this.selected=new o.Ov(!0,[]),this.filteredValue="",this.tableId=Z.Ad}return n(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(function(t){e.resourceId=t.resourceId,e.getDataForAuthorization(),e.loadAllGroups()})}},{key:"loadAllGroups",value:function(){var e=this;this.loading=!0,this.resourcesManager.getGroupAssignments(this.resourceId,[U.r.GROUP_SYNC_ENABLED]).subscribe(function(t){e.assignedGroups=t.map(function(e){var t=e.enrichedGroup.group;return t.status=e.status,t.failureCause=e.failureCause,t}),e.selected.clear(),e.loading=!1})}},{key:"addGroup",value:function(){var e=this,t=(0,w.kZ)();t.width="800px",t.data={theme:"resource-theme",resource:this.resource},this.dialog.open(D,t).afterClosed().subscribe(function(t){t&&e.loadAllGroups()})}},{key:"removeGroups",value:function(){var e=this,t=(0,w.kZ)();t.width="500px",t.data={resourceId:this.resourceId,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(E,t).afterClosed().subscribe(function(t){t&&e.loadAllGroups()})}},{key:"canRemoveGroups",value:function(){var e=this,t=!0;return this.selected.selected.forEach(function(i){e.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[e.resource,i])||(t=!1)}),t}},{key:"applyFilter",value:function(e){this.filteredValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}},{key:"getDataForAuthorization",value:function(){var e=this;this.loadingResource=!0,this.resourcesManager.getResourceById(this.resourceId).subscribe(function(t){e.resource=t,e.loadingResource=!1})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.Y36(L.gz),d.Y36(r.xk),d.Y36(r.YF),d.Y36(Z.dB),d.Y36(l.uw),d.Y36(u.x4))},e.\u0275cmp=d.Xpm({type:e,selectors:[["app-perun-web-apps-resource-groups"]],viewQuery:function(e,t){var i;(1&e&&d.Gf(G,7),2&e)&&(d.iGM(i=d.CRH())&&(t.checkbox=i.first))},decls:14,vars:18,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","mat-flat-button","",1,"ml-2","mr-2",3,"disabled","click"],[3,"matTooltipDisabled","matTooltip"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["alert_type","warn",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"pageSize","groups","filter","selection","disableMembers","resourceId","disableRouting","displayedColumns","page","refreshTable"],["alert_type","warn"]],template:function(e,t){1&e&&(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 t.loadAllGroups()}),d.qZA(),d.YNc(4,Y,3,3,"button",2),d.TgZ(5,"button",3),d.NdJ("click",function(){return t.removeGroups()}),d.TgZ(6,"span",4),d.ALo(7,"translate"),d._uU(8),d.ALo(9,"translate"),d.qZA(),d.qZA(),d.TgZ(10,"perun-web-apps-debounce-filter",5),d.NdJ("filter",function(e){return t.applyFilter(e)}),d.qZA(),d.YNc(11,q,1,0,"mat-spinner",6),d.YNc(12,z,2,11,"div",7),d.YNc(13,V,3,3,"app-alert",8)),2&e&&(d.xp6(1),d.Oqu(d.lcZ(2,10,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",!t.loadingResource&&t.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",d.VKq(16,J,t.resource))),d.xp6(1),d.Q6J("disabled",0===t.selected.selected.length||!t.canRemoveGroups()),d.xp6(1),d.s9C("matTooltip",d.lcZ(7,12,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),d.Q6J("matTooltipDisabled",t.canRemoveGroups()),d.xp6(2),d.hij(" ",d.lcZ(9,14,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),d.xp6(2),d.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),d.xp6(1),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading&&0!==t.assignedGroups.length),d.xp6(1),d.Q6J("ngIf",0===t.assignedGroups.length&&!t.loading))},directives:[k.t,p.O5,h.lW,I.gM,O.P,f.$g,_.W,M.w],pipes:[g.X$],styles:[""]}),e}()},76527:function(e,t,a){"use strict";a.d(t,{H:function(){return h}});var s=a(33642),r=a(88426),o=a(31572),l=a(57629),c=a(61511),u=a(67806),d=a(8557);function g(e,t){1&e&&o._UZ(0,"mat-spinner",2)}function p(e,t){if(1&e&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&e){var i=o.oxw();o.xp6(1),o.Q6J("items",i.navItems)("size","small")}}var h=function(){var e=function(){function e(t,a,n){i(this,e),this.resourcesManager=t,this.route=a,this.guiAuthResolver=n,this.navItems=[],this.loading=!1}return n(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.route.params.subscribe(function(t){e.resourcesManager.getResourceById(t.resourceId).subscribe(function(t){e.resource=t,e.initItems("facilities"!==e.route.parent.parent.snapshot.url[0].path),e.loading=!1},function(){return e.loading=!1})})}},{key:"initItems",value:function(e){var t=e?"/organizations/".concat(this.resource.voId):"/facilities/".concat(this.resource.facilityId);this.navItems=[],this.guiAuthResolver.isAuthorized("getAssignedGroups_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-group",url:"".concat(t,"/resources/").concat(this.resource.id,"/groups"),label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedServices_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-service",url:"/".concat(t,"/resources/").concat(this.resource.id,"/services"),label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedMembers_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-user",url:"".concat(t,"/resources/").concat(this.resource.id,"/members"),label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-resource-tags",url:"".concat(t,"/resources/").concat(this.resource.id,"/tags"),label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"".concat(t,"/resources/").concat(this.resource.id,"/attributes"),label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.guiAuthResolver.isManagerPagePrivileged(this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:"".concat(t,"/resources/").concat(this.resource.id,"/settings"),label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(s.xk),o.Y36(l.gz),o.Y36(r.x4))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.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,t){1&e&&(o.YNc(0,g,1,0,"mat-spinner",0),o.YNc(1,p,2,2,"div",1)),2&e&&(o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading))},directives:[c.O5,u.$g,d.L],styles:[""]}),e}()},64359:function(e,t,a){"use strict";a.d(t,{O:function(){return g}});var s=a(33642),r=a(88426),o=a(31572),l=a(57629),c=a(61511),u=a(489);function d(e,t){if(1&e&&o._UZ(0,"app-managers-page",1),2&e){var i=o.oxw();o.Q6J("complementaryObject",i.resource)("complementaryObjectType",i.type)("theme",i.theme)("availableRoles",i.availableRoles)}}var g=function(){var e=function(){function e(t,a,n){i(this,e),this.route=t,this.resourceService=a,this.guiAuthResolver=n,this.availableRoles=[],this.type="Resource",this.theme="resource-theme"}return n(e,[{key:"ngOnInit",value:function(){var e=this;this.route.parent.parent.params.subscribe(function(t){e.resourceService.getResourceById(t.resourceId).subscribe(function(t){e.resource=t})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Resource")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(l.gz),o.Y36(s.xk),o.Y36(r.x4))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-settings-managers"]],decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(e,t){1&e&&o.YNc(0,d,1,4,"app-managers-page",0),2&e&&o.Q6J("ngIf",t.resource)},directives:[c.O5,u.s],styles:[""]}),e}()},22927:function(e,t,a){"use strict";a.d(t,{h:function(){return h}});var s=a(33642),r=a(88426),o=a(31572),l=a(57629),c=a(61511),u=a(67806),d=a(8557);function g(e,t){1&e&&o._UZ(0,"mat-spinner",2)}function p(e,t){if(1&e&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&e){var i=o.oxw();o.xp6(1),o.Q6J("items",i.items)("size","small")}}var h=function(){var e=function(){function e(t,a,n){i(this,e),this.route=t,this.resourceManager=a,this.authResolver=n,this.items=[],this.loading=!1}return n(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.route.parent.parent.params.subscribe(function(t){e.resourceManager.getResourceById(t.resourceId).subscribe(function(t){e.resource=t,e.initItems("facilities"!==e.route.parent.parent.parent.snapshot.url[0].path),e.loading=!1},function(){return e.loading=!1})})}},{key:"initItems",value:function(e){this.items=[],this.authResolver.isManagerPagePrivileged(this.resource)&&this.items.push({cssIcon:"perun-manager",url:"".concat(e?"/organizations/".concat(this.resource.voId):"/facilities/".concat(this.resource.facilityId),"/resources/").concat(this.resource.id,"/settings/managers"),label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(l.gz),o.Y36(s.xk),o.Y36(r.x4))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.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,t){1&e&&(o.YNc(0,g,1,0,"mat-spinner",0),o.YNc(1,p,2,2,"div",1)),2&e&&(o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading))},directives:[c.O5,u.$g,d.L],styles:[""]}),e}()},77968:function(e,t,a){"use strict";a.d(t,{t:function(){return o}});var n=a(17),s=a(31572),r=a(21575),o=function(){var e=function e(){i(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&s.ekj("router-component",t.true)},decls:1,vars:0,template:function(e,t){1&e&&s._UZ(0,"app-animated-router-outlet")},directives:[r.A],styles:[""],data:{animation:[n.Ji]}}),e}()},53134:function(e,t,a){"use strict";a.d(t,{v:function(){return x}});var s=a(33642),r=a(4230),o=a(60611),l=a(84140),c=a(88426),u=a(61189),d=a(84608),g=a(31572),p=a(61511),h=a(15980),f=a(67806),m=a(4196),v=a(48160);function A(e,t){1&e&&g._UZ(0,"mat-spinner",8)}function S(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"app-resources-tags-list",9),g.NdJ("page",function(e){return g.CHM(i),g.oxw().pageChanged(e)}),g.qZA()}if(2&e){var a=g.oxw();g.Q6J("selection",a.selection)("pageSize",a.pageSize)("resourceTags",a.resourceTags)("filterValue",a.filterValue)("displayedColumns",a.displayedColumns)("entity","resource")}}var b=function(){var e=function(){function e(t,a,n,s){i(this,e),this.dialogRef=t,this.data=a,this.tableConfigService=n,this.resourcesManager=s,this.tableId=o.g,this.selection=new r.Ov(!0,[]),this.resourceTags=[],this.displayedColumns=["select","id","name"]}return n(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),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(function(t){e.resourceTags=t.filter(function(t){return e.assignedTags.map(function(e){return e.id}).indexOf(t.id)<=-1}),e.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(e){var t=this;if(0===e.length)return this.dialogRef.close(!0);var i=e.pop();this.resourcesManager.assignResourceTagToResource({resource:this.resourceId,resourceTag:i}).subscribe(function(){t.onSubmit(e)})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(d.so),g.Y36(d.WI),g.Y36(o.dB),g.Y36(s.xk))},e.\u0275cmp=g.Xpm({type:e,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","pageSize","resourceTags","filterValue","displayedColumns","entity","page",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,"mr-auto","ml-auto"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page"]],template:function(e,t){1&e&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",1),g.TgZ(5,"div",2),g.YNc(6,A,1,0,"mat-spinner",3),g.qZA(),g.YNc(7,S,1,6,"app-resources-tags-list",4),g.qZA(),g.TgZ(8,"div",5),g.TgZ(9,"button",6),g.NdJ("click",function(){return t.onCancel()}),g._uU(10),g.ALo(11,"translate"),g.qZA(),g.TgZ(12,"button",7),g.NdJ("click",function(){return t.onSubmit(t.selection.selected)}),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.Tol(t.theme),g.xp6(2),g.Oqu(g.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),g.xp6(4),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",!t.loading),g.xp6(3),g.hij(" ",g.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),g.xp6(2),g.Q6J("disabled",t.loading||0===t.resourceTags.length),g.xp6(1),g.hij(" ",g.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},directives:[d.uh,d.xY,p.O5,d.H8,h.lW,f.$g,m.o],pipes:[v.X$],styles:[""]}),e}(),R=a(24923),E=a(57629),Z=a(59403),T=a(19139);function I(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",8),g.NdJ("click",function(){return g.CHM(i),g.oxw().create()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function C(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",9),g.NdJ("click",function(){return g.CHM(i),g.oxw().addTag()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function O(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",10),g.NdJ("click",function(){return g.CHM(i),g.oxw().removeTags()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}if(2&e){var a=g.oxw();g.Q6J("disabled",0===a.selection.selected.length),g.xp6(1),g.hij(" ",g.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function _(e,t){1&e&&g._UZ(0,"mat-spinner",11)}function y(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"app-resources-tags-list",12),g.NdJ("page",function(e){return g.CHM(i),g.oxw().pageChanged(e)}),g.qZA()}if(2&e){var a=g.oxw();g.Q6J("selection",a.selection)("pageSize",a.pageSize)("resourceTags",a.resourceTags)("filterValue",a.filterValue)("displayedColumns",a.displayedColumns)("entity","resource")}}var x=function(){var e=function(){function e(t,a,n,s,l,c,u,d){i(this,e),this.route=t,this.authResolver=a,this.tableConfigService=n,this.resourcesManager=s,this.voService=l,this.dialog=c,this.notificator=u,this.translate=d,this.loading=!1,this.resourceTags=[],this.selection=new r.Ov(!0,[]),this.tableId=o.M8,this.displayedColumns=[]}return n(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(t){e.resourceId=t.resourceId,e.resourcesManager.getResourceById(e.resourceId).subscribe(function(t){e.resource=t,e.updateData()})})}},{key:"removeTags",value:function(){var e=this,t=(0,l.kZ)();t.width="450px",t.data={items:this.selection.selected.map(function(e){return e.tagName}),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme"},this.dialog.open(u.Tf,t).afterClosed().subscribe(function(t){t&&e.removeTag(e.selection.selected)})}},{key:"removeTag",value:function(e){var t=this;if(0===e.length)return this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData();var i=e.pop();this.resourcesManager.removeResourceTagFromResource({resource:this.resourceId,resourceTag:i}).subscribe(function(){t.removeTag(e)})}},{key:"addTag",value:function(){var e=this,t=(0,l.kZ)();t.width="600px",t.data={voId:this.resource.voId,resourceId:this.resourceId,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(b,t).afterClosed().subscribe(function(t){t&&(e.notificator.showSuccess(e.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),e.updateData())})}},{key:"create",value:function(){var e=this,t=(0,l.kZ)();t.width="450px",t.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(R.p,t).afterClosed().subscribe(function(t){t&&(e.translate.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(function(t){e.notificator.showSuccess(t)}),e.updateData())})}},{key:"updateData",value:function(){var e=this;this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resourceId).subscribe(function(t){e.resourceTags=t,e.selection.clear(),e.setAuthRights(),e.loading=!1})}},{key:"setAuthRights",value:function(){var e={id:this.resource.voId,beanName:"Vo"};this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[e]),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"]}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(E.gz),g.Y36(c.x4),g.Y36(o.dB),g.Y36(s.xk),g.Y36(s.YF),g.Y36(d.uw),g.Y36(c.V6),g.Y36(v.sK))},e.\u0275cmp=g.Xpm({type:e,selectors:[["app-perun-web-apps-resource-tags"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page"]],template:function(e,t){1&e&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"perun-web-apps-refresh-button",1),g.NdJ("refresh",function(){return t.updateData()}),g.qZA(),g.YNc(4,I,3,3,"button",2),g.YNc(5,C,3,3,"button",3),g.YNc(6,O,3,4,"button",4),g.TgZ(7,"perun-web-apps-immediate-filter",5),g.NdJ("filter",function(e){return t.applyFilter(e)}),g.qZA(),g.YNc(8,_,1,0,"mat-spinner",6),g.YNc(9,y,1,6,"app-resources-tags-list",7)),2&e&&(g.xp6(1),g.Oqu(g.lcZ(2,7,"RESOURCE_DETAIL.TAGS.TITLE")),g.xp6(3),g.Q6J("ngIf",t.createAuth),g.xp6(1),g.Q6J("ngIf",t.addAuth),g.xp6(1),g.Q6J("ngIf",t.removeAuth),g.xp6(1),g.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),g.xp6(1),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",!t.loading))},directives:[Z.t,p.O5,T.L,h.lW,f.$g,m.o],pipes:[v.X$],styles:[""]}),e}()},24923:function(e,t,a){"use strict";a.d(t,{p:function(){return v}});var s=a(84608),r=a(33642),o=a(31572),l=a(61511),c=a(15980),u=a(67806),d=a(66283),g=a(80340),p=a(16073),h=a(48160);function f(e,t){1&e&&o._UZ(0,"mat-spinner",6)}function m(e,t){if(1&e){var i=o.EpF();o.TgZ(0,"div",7),o.TgZ(1,"mat-form-field"),o.TgZ(2,"input",8),o.NdJ("ngModelChange",function(e){return o.CHM(i),o.oxw().name=e}),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-error"),o._uU(5),o.ALo(6,"translate"),o.qZA(),o.qZA(),o.qZA()}if(2&e){var a=o.oxw();o.xp6(2),o.s9C("placeholder",o.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),o.Q6J("ngModel",a.name),o.xp6(3),o.Oqu(o.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}var v=function(){var e=function(){function e(t,a,n){i(this,e),this.dialogRef=t,this.data=a,this.resourceManager=n,this.name="",this.loading=!1}return n(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;""!==this.name&&(this.loading=!0,this.resourceManager.createResourceTagWithTagName(this.name,this.data.voId).subscribe(function(){e.dialogRef.close(!0)},function(){return e.loading=!1}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(s.so),o.Y36(s.WI),o.Y36(r.xk))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["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","accent",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(e,t){1&e&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,f,1,0,"mat-spinner",1),o.YNc(5,m,7,7,"div",2),o.TgZ(6,"div",3),o.TgZ(7,"button",4),o.NdJ("click",function(){return t.onCancel()}),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",5),o.NdJ("click",function(){return t.onSubmit()}),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.Tol(t.theme),o.xp6(2),o.Oqu(o.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),o.xp6(2),o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading),o.xp6(3),o.hij(" ",o.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),o.xp6(2),o.Q6J("disabled",t.loading),o.xp6(1),o.hij(" ",o.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},directives:[s.uh,l.O5,s.H8,c.lW,u.$g,s.xY,d.KE,g.Nt,p.Fj,p.Q7,p.JJ,p.On,d.TO],pipes:[h.X$],styles:[""]}),e}()},489:function(t,a,s){"use strict";s.d(a,{s:function(){return Ue}});var r=s(4230),o=s(84608),l=s(88426),c=s(33642),u=s(60611),d=s(67004),g=s(16073),p=s(31572),h=s(48160),f=s(57629),m=s(66283),v=s(4786),A=s(61511),S=s(80340),b=s(15980),R=s(71522),E=s(67806),Z=s(39571),T=s(86593),I=function(){var e=function(){function e(t){i(this,e),this.translate=t,this.prefix="ROLES."}return n(e,[{key:"transform",value:function(e){var t=this.prefix.concat(e);return this.translate.instant(t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(p.Y36(h.sK,16))},e.\u0275pipe=p.Yjl({name:"displayedRole",type:e,pure:!0}),e}();function C(e,t){if(1&e&&(p.TgZ(0,"mat-option",15),p._uU(1),p.ALo(2,"displayedRole"),p.qZA()),2&e){var i=t.$implicit;p.Q6J("value",i),p.xp6(1),p.Oqu(p.lcZ(2,2,i))}}function O(e,t){1&e&&p._UZ(0,"mat-spinner",16)}function _(e,t){1&e&&(p.TgZ(0,"app-alert",20),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}var y=function(){return["select","id","name","email","logins","organization"]};function x(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"app-users-list",21),p.NdJ("page",function(e){return p.CHM(i),p.oxw(2).pageChanged(e)}),p.qZA()}if(2&e){var a=p.oxw(2);p.Q6J("pageSize",a.pageSize)("disableRouting",!0)("selection",a.selection)("displayedColumns",p.DdM(5,y))("users",a.users)}}function N(e,t){if(1&e&&(p.TgZ(0,"div",17),p.YNc(1,_,3,3,"app-alert",18),p.YNc(2,x,1,6,"app-users-list",19),p.qZA()),2&e){var i=p.oxw();p.xp6(1),p.Q6J("ngIf",0===i.users.length&&i.firstSearchDone),p.xp6(1),p.Q6J("ngIf",0!==i.users.length)}}var D=function(){var e=function(){function e(t,a,n,s,o,l,c,d,g,p){var h=this;i(this,e),this.dialogRef=t,this.data=a,this.authzService=n,this.usersService=s,this.translate=o,this.notificator=l,this.storeService=c,this.route=d,this.router=g,this.tableConfigService=p,this.selection=new r.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=u.H2,o.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(function(e){return h.title=e}),o.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(function(e){return h.successMessage=e})}return n(e,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new g.NI("",[g.kI.required,g.kI.pattern(".*[\\S]+.*")])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(function(e){return e.id}),complementaryObject:this.data.complementaryObject}).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})}},{key:"onSearchByString",value:function(){var e=this;if(this.searchCtrl.invalid)this.searchCtrl.markAllAsTouched();else{this.loading=!0,this.selection.clear();var t=[d.r.USER_DEF_ORGANIZATION,d.r.USER_DEF_PREFERRED_MAIL];t=t.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,t).subscribe(function(t){e.users=t,e.loading=!1,e.firstSearchDone=!0},function(){return e.loading=!1})}}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(p.Y36(o.so),p.Y36(o.WI),p.Y36(c.Ct),p.Y36(c.Fv),p.Y36(h.sK),p.Y36(l.V6),p.Y36(l.d6),p.Y36(f.gz),p.Y36(f.F0),p.Y36(u.dB))},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-add-manager-dialog"]],decls:32,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",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"pageSize","disableRouting","selection","displayedColumns","users","page",4,"ngIf"],["alert_type","warn"],[3,"pageSize","disableRouting","selection","displayedColumns","users","page"]],template:function(e,t){1&e&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",1),p.TgZ(5,"div",2),p.TgZ(6,"mat-form-field",3),p.TgZ(7,"mat-label"),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"mat-select",4),p.NdJ("valueChange",function(e){return t.selectedRole=e}),p.YNc(11,C,3,4,"mat-option",5),p.qZA(),p.qZA(),p.TgZ(12,"mat-form-field",6),p.TgZ(13,"label"),p.TgZ(14,"input",7),p.NdJ("keyup.enter",function(){return t.onSearchByString()}),p.ALo(15,"translate"),p.qZA(),p.qZA(),p.TgZ(16,"mat-error"),p._uU(17),p.ALo(18,"translate"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(19,"button",8),p.NdJ("click",function(){return t.onSearchByString()}),p._uU(20),p.ALo(21,"translate"),p.qZA(),p.TgZ(22,"div",9),p.YNc(23,O,1,0,"mat-spinner",10),p.qZA(),p.YNc(24,N,3,2,"div",11),p.qZA(),p.TgZ(25,"div",12),p.TgZ(26,"button",13),p.NdJ("click",function(){return t.onCancel()}),p._uU(27),p.ALo(28,"translate"),p.qZA(),p.TgZ(29,"button",14),p.NdJ("click",function(){return t.onSubmit()}),p._uU(30),p.ALo(31,"translate"),p.qZA(),p.qZA(),p.qZA()),2&e&&(p.Tol(t.theme),p.xp6(2),p.Oqu(p.lcZ(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),p.xp6(6),p.Oqu(p.lcZ(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),p.xp6(2),p.Q6J("value",t.selectedRole),p.xp6(1),p.Q6J("ngForOf",t.availableRoles),p.xp6(3),p.s9C("placeholder",p.lcZ(15,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),p.Q6J("formControl",t.searchCtrl),p.xp6(3),p.hij(" ",p.lcZ(18,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),p.xp6(2),p.Q6J("disabled",t.loading),p.xp6(1),p.hij(" ",p.lcZ(21,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),p.xp6(3),p.Q6J("ngIf",t.loading),p.xp6(1),p.Q6J("ngIf",null!==t.users&&!t.loading),p.xp6(3),p.hij(" ",p.lcZ(28,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",0===t.selection.selected.length||void 0===t.selectedRole||t.loading),p.xp6(1),p.hij(" ",p.lcZ(31,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},directives:[o.uh,o.xY,m.KE,m.hX,v.gD,A.sg,S.Nt,g.Fj,g.JJ,g.oH,m.TO,b.lW,A.O5,o.H8,R.ey,E.$g,Z.w,T.C],pipes:[h.X$,I],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),e}(),w=s(67033);function U(e,t){1&e&&p._UZ(0,"th",14)}function L(e,t){if(1&e&&(p.TgZ(0,"td",15),p._uU(1),p.qZA()),2&e){var i=t.$implicit;p.xp6(1),p.AsE(" ",i.firstName," ",i.lastName,"")}}function k(e,t){1&e&&p._UZ(0,"tr",16)}function M(e,t){1&e&&p._UZ(0,"tr",17)}function G(e,t){if(1&e&&(p.TgZ(0,"div",6),p.TgZ(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",7),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"table",8),p.ynx(8,9),p.YNc(9,U,1,0,"th",10),p.YNc(10,L,2,2,"td",11),p.BQk(),p.YNc(11,k,1,0,"tr",12),p.YNc(12,M,1,0,"tr",13),p.qZA(),p.qZA()),2&e){var i=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,5,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),p.xp6(3),p.hij(" ",p.lcZ(6,7,"DIALOGS.REMOVE_MANAGERS.ASK")," "),p.xp6(2),p.Q6J("dataSource",i.dataSource),p.xp6(4),p.Q6J("matHeaderRowDef",i.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",i.displayedColumns)}}function Y(e,t){1&e&&p._UZ(0,"mat-spinner",18)}var q=function(){var e=function(){function e(t,a,n,s,r){i(this,e),this.dialogRef=t,this.data=a,this.notificator=n,this.translate=s,this.authzService=r,this.displayedColumns=["name"]}return n(e,[{key:"ngOnInit",value:function(){this.dataSource=new w.by(this.data.managers),this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.authzService.unsetRoleWithUserComplementaryObject({role:this.data.role,users:this.data.managers.map(function(e){return e.id}),complementaryObject:this.data.complementaryObject}).subscribe(function(){e.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})},function(){return e.loading=!1})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(p.Y36(o.so),p.Y36(o.WI),p.Y36(l.V6),p.Y36(h.sK),p.Y36(c.Ct))},e.\u0275cmp=p.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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",""],[1,"mr-auto","ml-auto"]],template:function(e,t){1&e&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,G,13,9,"div",1),p.YNc(5,Y,1,0,"mat-spinner",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return t.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return t.onSubmit()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&e&&(p.Tol(t.theme),p.xp6(2),p.Oqu(p.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),p.xp6(2),p.Q6J("ngIf",!t.loading),p.xp6(1),p.Q6J("ngIf",t.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",t.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},directives:[o.uh,A.O5,o.H8,b.lW,o.xY,w.BZ,w.w1,w.fO,w.Dz,w.as,w.nj,w.ge,w.ev,w.XQ,w.Gk,E.$g],pipes:[h.X$],styles:[""]}),e}();function J(e,t){1&e&&p._UZ(0,"mat-spinner",6)}function Q(e,t){1&e&&p._UZ(0,"th",15)}function z(e,t){if(1&e&&(p.TgZ(0,"td",16),p._uU(1),p.qZA()),2&e){var i=t.$implicit;p.xp6(1),p.hij(" ",i.name,"")}}function V(e,t){1&e&&p._UZ(0,"tr",17)}function P(e,t){1&e&&p._UZ(0,"tr",18)}function F(e,t){if(1&e&&(p.TgZ(0,"div",7),p.TgZ(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",8),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"table",9),p.ynx(8,10),p.YNc(9,Q,1,0,"th",11),p.YNc(10,z,2,1,"td",12),p.BQk(),p.YNc(11,V,1,0,"tr",13),p.YNc(12,P,1,0,"tr",14),p.qZA(),p.qZA()),2&e){var i=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),p.xp6(3),p.hij(" ",p.lcZ(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),p.xp6(2),p.Q6J("dataSource",i.dataSource),p.xp6(4),p.Q6J("matHeaderRowDef",i.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",i.displayedColumns)}}var j=function(){var e=function(){function e(t,a,n,s,r){i(this,e),this.dialogRef=t,this.data=a,this.notificator=n,this.translate=s,this.authzService=r,this.displayedColumns=["name"]}return n(e,[{key:"ngOnInit",value:function(){this.dataSource=new w.by(this.data.groups),this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.authzService.unsetRoleWithGroupComplementaryObject({role:this.data.role,authorizedGroups:this.data.groups.map(function(e){return e.id}),complementaryObject:this.data.complementaryObject}).subscribe(function(){e.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})},function(){return e.loading=!1})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(p.Y36(o.so),p.Y36(o.WI),p.Y36(l.V6),p.Y36(h.sK),p.Y36(c.Ct))},e.\u0275cmp=p.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,J,1,0,"mat-spinner",1),p.YNc(5,F,13,9,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return t.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return t.onSubmit()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&e&&(p.Tol(t.theme),p.xp6(2),p.Oqu(p.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),p.xp6(2),p.Q6J("ngIf",t.loading),p.xp6(1),p.Q6J("ngIf",!t.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",t.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},directives:[o.uh,A.O5,o.H8,b.lW,E.$g,o.xY,w.BZ,w.w1,w.fO,w.Dz,w.as,w.nj,w.ge,w.ev,w.XQ,w.Gk],pipes:[h.X$],styles:[""]}),e}(),H=s(56238),B=s(79996),$=s(40084),X=s(91058),W=s(78364);function K(e,t){if(1&e&&(p.TgZ(0,"mat-option",17),p._uU(1),p.ALo(2,"displayedRole"),p.qZA()),2&e){var i=t.$implicit;p.Q6J("value",i),p.xp6(1),p.Oqu(p.lcZ(2,2,i))}}function ee(e,t){if(1&e&&(p.TgZ(0,"mat-option",17),p._uU(1),p.qZA()),2&e){var i=t.$implicit;p.Q6J("value",i),p.xp6(1),p.hij(" ",i.name," ")}}function te(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"perun-web-apps-debounce-filter",18),p.NdJ("filter",function(e){return p.CHM(i),p.oxw().applyFilter(e)}),p.ALo(1,"translate"),p.qZA()}2&e&&p.s9C("placeholder",p.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function ie(e,t){1&e&&p._UZ(0,"mat-spinner",19)}var ae=function(){return["select","id","name","description"]};function ne(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"div",20),p.TgZ(1,"perun-web-apps-groups-list",21),p.NdJ("page",function(e){return p.CHM(i),p.oxw().pageChanged(e)}),p.qZA(),p.qZA()}if(2&e){var a=p.oxw();p.xp6(1),p.Q6J("pageSize",a.pageSize)("disableRouting",!0)("displayedColumns",p.DdM(7,ae))("selection",a.selection)("filter",a.filterValue)("groups",a.groups)("disableMembers",!1)}}var se=function(){var e=function(){function e(t,a,n,s,o,l,c,d,p,h){var f=this;i(this,e),this.dialogRef=t,this.data=a,this.authzService=n,this.voService=s,this.groupService=o,this.translate=l,this.notificator=c,this.route=d,this.tableConfigService=p,this.router=h,this.searchString="",this.selection=new r.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new g.NI,this.firstSearchDone=!1,this.tableId=u.kZ,l.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(function(e){return f.title=e}),l.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(function(e){return f.successMessage=e})}return n(e,[{key:"displayFn",value:function(e){return e?e.name:null}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(function(e){return e.id}),complementaryObject:this.data.complementaryObject}).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.loading=!1,e.dialogRef.close()},function(){return e.loading=!1})}},{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.theme=this.data.theme,this.voService.getMyVos().subscribe(function(t){e.filteredOptions=e.myControl.valueChanges.pipe((0,H.O)(""),(0,B.U)(function(t){return e._filter(t)})),e.vos=t,e.loading=!1},function(){return e.loading=!1})}},{key:"_filter",value:function(e){var t="string"==typeof e?e.toLowerCase():e.name.toLowerCase;return this.vos.filter(function(e){return e.name.toLowerCase().includes(t)})}},{key:"showVoGroups",value:function(e){var t=this;this.loading=!0,this.groupService.getAllGroups(e.option.value.id).subscribe(function(e){t.groups=e,t.loading=!1,t.firstSearchDone=!0},function(){return t.loading=!1})}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}},{key:"applyFilter",value:function(e){this.filterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(p.Y36(o.so),p.Y36(o.WI),p.Y36(c.Ct),p.Y36(c.YF),p.Y36(c.ff),p.Y36(h.sK),p.Y36(l.V6),p.Y36(f.gz),p.Y36(u.dB),p.Y36(f.F0))},e.\u0275cmp=p.Xpm({type:e,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"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"pageSize","disableRouting","displayedColumns","selection","filter","groups","disableMembers","page"]],template:function(e,t){if(1&e&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",1),p.TgZ(5,"div",2),p.TgZ(6,"mat-form-field",3),p.TgZ(7,"mat-label"),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"mat-select",4),p.NdJ("valueChange",function(e){return t.selectedRole=e}),p.YNc(11,K,3,4,"mat-option",5),p.qZA(),p.qZA(),p.TgZ(12,"mat-form-field",6),p.TgZ(13,"mat-label"),p._uU(14),p.ALo(15,"translate"),p.qZA(),p._UZ(16,"input",7),p.ALo(17,"translate"),p.TgZ(18,"mat-autocomplete",8,9),p.NdJ("optionSelected",function(e){return t.showVoGroups(e)}),p.YNc(20,ee,2,2,"mat-option",5),p.ALo(21,"async"),p.qZA(),p.qZA(),p.qZA(),p.YNc(22,te,2,3,"perun-web-apps-debounce-filter",10),p.TgZ(23,"div",11),p.YNc(24,ie,1,0,"mat-spinner",12),p.qZA(),p.YNc(25,ne,2,8,"div",13),p.qZA(),p.TgZ(26,"div",14),p.TgZ(27,"button",15),p.NdJ("click",function(){return t.onCancel()}),p._uU(28),p.ALo(29,"translate"),p.qZA(),p.TgZ(30,"button",16),p.NdJ("click",function(){return t.onSubmit()}),p._uU(31),p.ALo(32,"translate"),p.qZA(),p.qZA(),p.qZA()),2&e){var i=p.MAs(19);p.Tol(t.theme),p.xp6(2),p.Oqu(p.lcZ(3,19,"DIALOGS.ADD_GROUPS.TITLE")),p.xp6(6),p.Oqu(p.lcZ(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),p.xp6(2),p.Q6J("value",t.selectedRole),p.xp6(1),p.Q6J("ngForOf",t.availableRoles),p.xp6(3),p.Oqu(p.lcZ(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),p.xp6(2),p.s9C("placeholder",p.lcZ(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),p.Q6J("formControl",t.myControl)("matAutocomplete",i),p.xp6(2),p.Q6J("displayWith",t.displayFn),p.xp6(2),p.Q6J("ngForOf",p.lcZ(21,27,t.filteredOptions)),p.xp6(2),p.Q6J("ngIf",null!==t.groups&&t.groups.length>0&&!t.loading),p.xp6(2),p.Q6J("ngIf",t.loading),p.xp6(1),p.Q6J("ngIf",null!==t.groups&&!t.loading),p.xp6(3),p.hij(" ",p.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",0===t.selection.selected.length||t.loading),p.xp6(1),p.hij(" ",p.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},directives:[o.uh,o.xY,m.KE,m.hX,v.gD,A.sg,S.Nt,g.Fj,$.ZL,g.JJ,g.oH,$.XC,A.O5,o.H8,b.lW,R.ey,X.P,E.$g,W.W],pipes:[h.X$,A.Ov,I],styles:[""]}),e}(),re=s(84140),oe=s(55109),le=s(59403);function ce(e,t){1&e&&(p._uU(0),p.ALo(1,"translate")),2&e&&p.hij(" ",p.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function ue(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"perun-web-apps-refresh-button",11),p.NdJ("refresh",function(){return p.CHM(i),p.oxw(2).refreshUsers()}),p.qZA()}}function de(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(i),p.oxw(2).addManager()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function ge(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"button",13),p.NdJ("click",function(){return p.CHM(i),p.oxw(2).removeManager()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&e){var a=p.oxw(2);p.Q6J("disabled",0===a.selectionUsers.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function pe(e,t){if(1&e&&(p.TgZ(0,"mat-option",17),p._uU(1),p.ALo(2,"displayedRole"),p.qZA()),2&e){var i=t.$implicit;p.Q6J("value",i),p.xp6(1),p.Oqu(p.lcZ(2,2,i))}}function he(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"mat-form-field",14),p.TgZ(1,"mat-label"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-select",15),p.NdJ("valueChange",function(e){return p.CHM(i),p.oxw(2).selectedRole=e})("selectionChange",function(){return p.CHM(i),p.oxw(2).refreshUsers()}),p.YNc(5,pe,3,4,"mat-option",16),p.qZA(),p.qZA()}if(2&e){var a=p.oxw(2);p.xp6(2),p.Oqu(p.lcZ(3,3,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),p.xp6(2),p.Q6J("value",a.selectedRole),p.xp6(1),p.Q6J("ngForOf",a.availableRoles)}}function fe(e,t){1&e&&p._UZ(0,"mat-spinner",18)}var me=function(){return["select","id","name","email","logins","organization"]},ve=function(){return["id","name","email","logins","organization"]};function Ae(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"app-users-list",20),p.NdJ("page",function(e){return p.CHM(i),p.oxw(3).pageChanged(e)}),p.qZA()}if(2&e){var a=p.oxw(3);p.Q6J("pageSize",a.pageSize)("users",a.managers)("disableRouting",!a.routeAuth)("displayedColumns",a.manageAuth?p.DdM(5,me):p.DdM(6,ve))("selection",a.selectionUsers)}}function Se(e,t){if(1&e&&(p.TgZ(0,"div"),p.YNc(1,Ae,1,7,"app-users-list",19),p.qZA()),2&e){var i=p.oxw(2);p.xp6(1),p.Q6J("ngIf",i.managers)}}function be(e,t){if(1&e&&(p.YNc(0,ue,1,0,"perun-web-apps-refresh-button",5),p.YNc(1,de,3,3,"button",6),p.YNc(2,ge,3,4,"button",7),p.YNc(3,he,6,5,"mat-form-field",8),p.YNc(4,fe,1,0,"mat-spinner",9),p.YNc(5,Se,2,1,"div",10)),2&e){var i=p.oxw();p.Q6J("ngIf",!i.loading),p.xp6(1),p.Q6J("ngIf",!i.loading&&i.manageAuth),p.xp6(1),p.Q6J("ngIf",!i.loading&&i.manageAuth),p.xp6(1),p.Q6J("ngIf",!i.loading),p.xp6(1),p.Q6J("ngIf",i.loading),p.xp6(1),p.Q6J("ngIf",!i.loading)}}function Re(e,t){1&e&&(p._uU(0),p.ALo(1,"translate")),2&e&&p.hij(" ",p.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function Ee(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"perun-web-apps-refresh-button",11),p.NdJ("refresh",function(){return p.CHM(i),p.oxw(2).refreshGroups()}),p.qZA()}}function Ze(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(i),p.oxw(2).addGroup()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Te(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"button",13),p.NdJ("click",function(){return p.CHM(i),p.oxw(2).removeGroup()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&e){var a=p.oxw(2);p.Q6J("disabled",0===a.selectionGroups.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Ie(e,t){if(1&e&&(p.TgZ(0,"mat-option",17),p._uU(1),p.ALo(2,"displayedRole"),p.qZA()),2&e){var i=t.$implicit;p.Q6J("value",i),p.xp6(1),p.Oqu(p.lcZ(2,2,i))}}function Ce(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"mat-form-field",14),p.TgZ(1,"mat-label"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-select",15),p.NdJ("valueChange",function(e){return p.CHM(i),p.oxw(2).selectedRole=e})("selectionChange",function(){return p.CHM(i),p.oxw(2).refreshGroups()}),p.YNc(5,Ie,3,4,"mat-option",16),p.qZA(),p.qZA()}if(2&e){var a=p.oxw(2);p.xp6(2),p.Oqu(p.lcZ(3,3,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),p.xp6(2),p.Q6J("value",a.selectedRole),p.xp6(1),p.Q6J("ngForOf",a.availableRoles)}}function Oe(e,t){1&e&&p._UZ(0,"mat-spinner",18)}var _e=function(){return["select","id","vo","name","description"]},ye=function(){return["id","vo","name","description"]};function xe(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"perun-web-apps-groups-list",22),p.NdJ("page",function(e){return p.CHM(i),p.oxw(3).pageChanged(e)}),p.qZA()}if(2&e){var a=p.oxw(3);p.Q6J("pageSize",a.pageSize)("displayedColumns",a.manageAuth?p.DdM(5,_e):p.DdM(6,ye))("groups",a.groups)("selection",a.selectionGroups)("disableMembers",!1)}}function Ne(e,t){if(1&e&&(p.TgZ(0,"div"),p.YNc(1,xe,1,7,"perun-web-apps-groups-list",21),p.qZA()),2&e){var i=p.oxw(2);p.xp6(1),p.Q6J("ngIf",i.groups)}}function De(e,t){if(1&e&&(p.YNc(0,Ee,1,0,"perun-web-apps-refresh-button",5),p.YNc(1,Ze,3,3,"button",6),p.YNc(2,Te,3,4,"button",7),p.YNc(3,Ce,6,5,"mat-form-field",8),p.YNc(4,Oe,1,0,"mat-spinner",9),p.YNc(5,Ne,2,1,"div",10)),2&e){var i=p.oxw();p.Q6J("ngIf",!i.loading),p.xp6(1),p.Q6J("ngIf",!i.loading&&i.manageAuth),p.xp6(1),p.Q6J("ngIf",!i.loading&&i.manageAuth),p.xp6(1),p.Q6J("ngIf",!i.loading),p.xp6(1),p.Q6J("ngIf",i.loading),p.xp6(1),p.Q6J("ngIf",!i.loading)}}function we(e,t){1&e&&(p.TgZ(0,"app-alert",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}var Ue=function(){var t=function(){function t(e,a,n,s,o){i(this,t),this.dialog=e,this.tableConfigService=a,this.authzService=n,this.storeService=s,this.guiAuthResolver=o,this.groups=null,this.managers=null,this.selectionUsers=new r.Ov(!0,[]),this.selectionGroups=new r.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=u.HC,this.availableRolesPrivileges=new Map}return n(t,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.guiAuthResolver.getRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(function(t){return e.availableRolesPrivileges.get(t).readAuth}),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0]),this.routeAuth=this.guiAuthResolver.isPerunAdminOrObserver(),this.refreshUsers()}},{key:"changeRolePrivileges",value:function(){this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;var t,i=!1,a=e(this.roleModes);try{for(a.s();!(t=a.n()).done;){var n=t.value;if(this.selectedMode===n.toLowerCase()){i=!0;break}}}catch(s){a.e(s)}finally{a.f()}i||(this.selectedMode=this.roleModes[0].toLowerCase())}},{key:"tabChanged",value:function(e){this.loading=!0,0===e.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}},{key:"refreshUsers",value:function(){var e=this;this.loading=!0,this.changeRolePrivileges();var t=[d.r.USER_DEF_ORGANIZATION,d.r.USER_DEF_PREFERRED_MAIL];t=t.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,t,!1,!0).subscribe(function(t){e.managers=t,e.selectionUsers.clear(),e.loading=!1},function(){e.loading=!1})}},{key:"refreshGroups",value:function(){var e=this;this.loading=!0,this.changeRolePrivileges(),this.authzService.getAuthzAdminGroups(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType).subscribe(function(t){e.groups=t,e.selectionGroups.clear(),e.loading=!1},function(){e.loading=!1})}},{key:"addManager",value:function(){var e=this,t=(0,re.kZ)();t.width="1000px",t.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(D,t).afterClosed().subscribe(function(t){t&&e.refreshUsers()})}},{key:"removeManager",value:function(){var e=this,t=(0,re.kZ)();t.width="450px",t.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(q,t).afterClosed().subscribe(function(t){t&&e.refreshUsers()})}},{key:"removeGroup",value:function(){var e=this,t=(0,re.kZ)();t.width="450px",t.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(j,t).afterClosed().subscribe(function(t){t&&e.refreshGroups()})}},{key:"addGroup",value:function(){var e=this,t=(0,re.kZ)();t.width="1000px",t.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(se,t).afterClosed().subscribe(function(t){t&&e.refreshGroups()})}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(p.Y36(o.uw),p.Y36(u.dB),p.Y36(c.Ct),p.Y36(l.d6),p.Y36(l.x4))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(e,t){2&e&&p.ekj("router-component",t.true)},inputs:{complementaryObject:"complementaryObject",availableRoles:"availableRoles",complementaryObjectType:"complementaryObjectType",theme:"theme"},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["alert_type","warn",4,"ngIf"],["class","mt-2",3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2 mt-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 mt-2",3,"disabled","click",4,"ngIf"],["class","mr-2 mt-2",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2","mt-2",3,"disabled","click"],[1,"mr-2","mt-2"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"pageSize","users","disableRouting","displayedColumns","selection","page",4,"ngIf"],[3,"pageSize","users","disableRouting","displayedColumns","selection","page"],[3,"pageSize","displayedColumns","groups","selection","disableMembers","page",4,"ngIf"],[3,"pageSize","displayedColumns","groups","selection","disableMembers","page"],["alert_type","warn"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"mat-tab-group",1),p.NdJ("selectedTabChange",function(e){return t.tabChanged(e)}),p.TgZ(4,"mat-tab"),p.YNc(5,ce,2,3,"ng-template",2),p.YNc(6,be,6,6,"ng-template",3),p.qZA(),p.TgZ(7,"mat-tab"),p.YNc(8,Re,2,3,"ng-template",2),p.YNc(9,De,6,6,"ng-template",3),p.qZA(),p.qZA(),p.YNc(10,we,3,3,"app-alert",4)),2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),p.xp6(9),p.Q6J("ngIf",0===t.availableRoles.length))},directives:[oe.SP,oe.uX,oe.uD,oe.Vc,A.O5,le.t,b.lW,m.KE,m.hX,v.gD,A.sg,R.ey,E.$g,T.C,W.W,Z.w],pipes:[h.X$,I],styles:[""]}),t}()},4196:function(e,t,a){"use strict";a.d(t,{o:function(){return Y}});var s=a(31572),r=a(58623),o=a(67033),l=a(4230),c=a(88426),u=a(33642),d=a(84140),g=a(48160),p=a(82819),h=a(61511),f=a(29236),m=a(66283),v=a(80340),A=a(16073),S=a(15980),b=a(36922),R=a(43691),E=a(39571);function Z(e,t){if(1&e){var i=s.EpF();s.TgZ(0,"th",14),s.TgZ(1,"mat-checkbox",15),s.NdJ("change",function(e){s.CHM(i);var t=s.oxw();return e?t.masterToggle():null}),s.qZA(),s.qZA()}if(2&e){var a=s.oxw();s.xp6(1),s.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function T(e,t){if(1&e){var i=s.EpF();s.TgZ(0,"td",16),s.TgZ(1,"mat-checkbox",17),s.NdJ("change",function(e){var t=s.CHM(i).$implicit,a=s.oxw();return e?a.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),s.qZA(),s.qZA()}if(2&e){var a=t.$implicit,n=s.oxw();s.xp6(1),s.Q6J("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function I(e,t){1&e&&(s.TgZ(0,"th",18),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")))}function C(e,t){if(1&e&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&e){var i=t.$implicit;s.xp6(1),s.Oqu(i.id)}}function O(e,t){1&e&&(s.TgZ(0,"th",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")))}function _(e,t){if(1&e&&(s.TgZ(0,"div"),s._uU(1),s.qZA()),2&e){var i=s.oxw().$implicit;s.xp6(1),s.hij(" ",i.tagName," ")}}function y(e,t){if(1&e){var i=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"mat-form-field"),s.TgZ(2,"input",21),s.NdJ("ngModelChange",function(e){return s.CHM(i),s.oxw().$implicit.tagName=e}),s.qZA(),s.qZA(),s.qZA()}if(2&e){var a=s.oxw().$implicit;s.xp6(2),s.Q6J("ngModel",a.tagName)}}function x(e,t){if(1&e&&(s.TgZ(0,"td",19),s.YNc(1,_,2,1,"div",20),s.YNc(2,y,3,1,"div",20),s.qZA()),2&e){var i=t.$implicit,a=s.oxw();s.xp6(1),s.Q6J("ngIf",!a.isChanging.isSelected(i)),s.xp6(1),s.Q6J("ngIf",a.isChanging.isSelected(i))}}function N(e,t){1&e&&s._UZ(0,"th",14)}function D(e,t){if(1&e){var i=s.EpF();s.TgZ(0,"button",24),s.NdJ("click",function(){s.CHM(i);var e=s.oxw().$implicit;return s.oxw().edit(e)}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon"),s._uU(3,"edit"),s.qZA(),s.qZA()}2&e&&s.s9C("matTooltip",s.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function w(e,t){if(1&e){var i=s.EpF();s.TgZ(0,"button",24),s.NdJ("click",function(){s.CHM(i);var e=s.oxw().$implicit;return s.oxw().save(e)}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon"),s._uU(3,"save"),s.qZA(),s.qZA()}2&e&&s.s9C("matTooltip",s.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function U(e,t){if(1&e&&(s.TgZ(0,"td",19),s.TgZ(1,"div",22),s.YNc(2,D,4,3,"button",23),s.YNc(3,w,4,3,"button",23),s.qZA(),s.qZA()),2&e){var i=t.$implicit,a=s.oxw();s.xp6(2),s.Q6J("ngIf",!a.isChanging.isSelected(i)),s.xp6(1),s.Q6J("ngIf",a.isChanging.isSelected(i))}}function L(e,t){1&e&&s._UZ(0,"tr",25)}function k(e,t){1&e&&s._UZ(0,"tr",26)}function M(e,t){if(1&e&&(s.TgZ(0,"app-alert",27),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"translate"),s.qZA()),2&e){var i=s.oxw();s.xp6(1),s.hij(" ","vo"===i.entity?s.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):s.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function G(e,t){1&e&&(s.TgZ(0,"app-alert",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var Y=function(){var e=function(){function e(t,a,n,r,o){i(this,e),this.resourceManager=t,this.notificator=a,this.translator=n,this.authResolver=r,this.tableCheckbox=o,this.resourceTags=[],this.selection=new l.Ov(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","name","edit"],this.page=new s.vpe,this.isChanging=new l.Ov(!0,[]),this.pageSizeOptions=d.f7}return n(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new o.by(this.resourceTags),this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}},{key:"getDataForColumn",value:function(e,t){switch(t){case"id":return e.id.toString();case"name":return e.tagName;default:return""}}},{key:"exportData",value:function(e){(0,d.O6)((0,d.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,d.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,d.pR)(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"save",value:function(e){var t=this;this.resourceManager.updateResourceTag({resourceTag:e}).subscribe(function(){t.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.isChanging.deselect(e)})}},{key:"edit",value:function(e){this.isChanging.select(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(s.Y36(u.xk),s.Y36(c.V6),s.Y36(g.sK),s.Y36(c.x4),s.Y36(c.UA))},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-resources-tags-list"]],viewQuery:function(e,t){var i;(1&e&&(s.Gf(r.YE,7),s.Gf(d.l9,7)),2&e)&&(s.iGM(i=s.CRH())&&(t.matSort=i.first),s.iGM(i=s.CRH())&&(t.child=i.first))},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",pageSize:"pageSize",displayedColumns:"displayedColumns",entity:"entity"},outputs:{page:"page"},features:[s.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","edit"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["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(e,t){1&e&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,Z,2,3,"th",4),s.YNc(5,T,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,I,3,3,"th",7),s.YNc(8,C,2,1,"td",5),s.BQk(),s.ynx(9,8),s.YNc(10,O,3,3,"th",4),s.YNc(11,x,3,2,"td",9),s.BQk(),s.ynx(12,10),s.YNc(13,N,1,0,"th",4),s.YNc(14,U,4,2,"td",9),s.BQk(),s.YNc(15,L,1,0,"tr",11),s.YNc(16,k,1,0,"tr",12),s.qZA(),s.qZA(),s.qZA(),s.YNc(17,M,4,5,"app-alert",13),s.YNc(18,G,3,3,"app-alert",13)),2&e&&(s.Q6J("hidden",0===t.resourceTags.length||0===t.dataSource.filteredData.length),s.xp6(1),s.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),s.xp6(1),s.Q6J("dataSource",t.dataSource),s.xp6(13),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===t.resourceTags.length),s.xp6(1),s.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resourceTags.length))},directives:[p.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,f.oG,o.ev,r.nU,m.KE,v.Nt,A.Fj,A.JJ,A.On,S.lW,b.gM,R.Hw,o.XQ,o.Gk,E.w],pipes:[g.X$],styles:[""]}),e}()},91721:function(e,t,a){"use strict";a.d(t,{Q:function(){return Y}});var s=a(31572),r=a(58623),o=a(67033),l=a(4230),c=a(84140),u=a(88426),d=a(82819),g=a(61511),p=a(29236),h=a(43691),f=a(36922),m=a(84534),v=a(57629),A=a(39571),S=a(48160);function b(e,t){if(1&e){var i=s.EpF();s.TgZ(0,"th",16),s.TgZ(1,"mat-checkbox",17),s.NdJ("change",function(e){s.CHM(i);var t=s.oxw();return e?t.masterToggle():null}),s.qZA(),s.qZA()}if(2&e){var a=s.oxw();s.xp6(1),s.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function R(e,t){if(1&e){var i=s.EpF();s.TgZ(0,"td",18),s.TgZ(1,"mat-checkbox",19),s.NdJ("change",function(e){var t=s.CHM(i).$implicit,a=s.oxw();return e?a.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),s.qZA(),s.qZA()}if(2&e){var a=t.$implicit,n=s.oxw();s.xp6(1),s.Q6J("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function E(e,t){1&e&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")))}function Z(e,t){if(1&e&&(s.TgZ(0,"td",18),s._uU(1),s.qZA()),2&e){var i=t.$implicit;s.xp6(1),s.Oqu(i.id)}}function T(e,t){1&e&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")))}function I(e,t){if(1&e&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&e){var i=t.$implicit;s.xp6(1),s.Oqu(i.name)}}function C(e,t){1&e&&s._UZ(0,"th",16)}function O(e,t){1&e&&(s.TgZ(0,"mat-icon",23),s.ALo(1,"translate"),s._uU(2," check_circle_outline "),s.qZA()),2&e&&s.s9C("matTooltip",s.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function _(e,t){1&e&&(s.TgZ(0,"mat-icon",23),s.ALo(1,"translate"),s._uU(2," block "),s.qZA()),2&e&&s.s9C("matTooltip",s.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function y(e,t){if(1&e&&(s.TgZ(0,"td",21),s.YNc(1,O,3,3,"mat-icon",22),s.YNc(2,_,3,3,"mat-icon",22),s.qZA()),2&e){var i=t.$implicit;s.xp6(1),s.Q6J("ngIf",i.enabled),s.xp6(1),s.Q6J("ngIf",!i.enabled)}}function x(e,t){1&e&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")))}function N(e,t){if(1&e&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&e){var i=t.$implicit;s.xp6(1),s.Oqu(i.script)}}function D(e,t){1&e&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")))}function w(e,t){if(1&e&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&e){var i=t.$implicit;s.xp6(1),s.Oqu(i.description)}}function U(e,t){1&e&&s._UZ(0,"tr",24)}var L=function(e){return["/admin/services",e]};function k(e,t){if(1&e&&s._UZ(0,"tr",25),2&e){var i=t.$implicit,a=s.oxw();s.ekj("cursor-pointer",!a.disableRouting)("disable-outline",a.disableRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",a.disableRouting?null:s.VKq(6,L,i.id))("routerLink",a.disableRouting?null:s.VKq(8,L,i.id))}}function M(e,t){1&e&&(s.TgZ(0,"app-alert",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function G(e,t){1&e&&(s.TgZ(0,"app-alert",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}var Y=function(){var e=function(){function e(t,a){i(this,e),this.authResolver=t,this.tableCheckbox=a,this.services=[],this.filterValue="",this.pageSize=10,this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new l.Ov(!0,[]),this.disableRouting=!1,this.page=new s.vpe,this.pageSizeOptions=c.f7}return n(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new o.by(this.services),this.setDataSource()}},{key:"getDataForColumn",value:function(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"enabled":return e.enabled?"true":"false";case"script":return e.script;case"description":return e.description;default:return""}}},{key:"exportData",value:function(e){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,c.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,c.pR)(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(s.Y36(u.x4),s.Y36(u.UA))},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-services-list"]],viewQuery:function(e,t){var i;(1&e&&(s.Gf(r.YE,7),s.Gf(c.l9,7)),2&e)&&(s.iGM(i=s.CRH())&&(t.matSort=i.first),s.iGM(i=s.CRH())&&(t.child=i.first))},inputs:{services:"services",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{page:"page"},features:[s.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","enabled"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,b,2,3,"th",4),s.YNc(5,R,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,E,3,3,"th",7),s.YNc(8,Z,2,1,"td",5),s.BQk(),s.ynx(9,8),s.YNc(10,T,3,3,"th",7),s.YNc(11,I,2,1,"td",9),s.BQk(),s.ynx(12,10),s.YNc(13,C,1,0,"th",4),s.YNc(14,y,3,2,"td",9),s.BQk(),s.ynx(15,11),s.YNc(16,x,3,3,"th",4),s.YNc(17,N,2,1,"td",9),s.BQk(),s.ynx(18,12),s.YNc(19,D,3,3,"th",7),s.YNc(20,w,2,1,"td",9),s.BQk(),s.YNc(21,U,1,0,"tr",13),s.YNc(22,k,1,10,"tr",14),s.qZA(),s.qZA(),s.qZA(),s.YNc(23,M,3,3,"app-alert",15),s.YNc(24,G,3,3,"app-alert",15)),2&e&&(s.Q6J("hidden",void 0===t.services||0===t.services.length||0===t.dataSource.filteredData.length),s.xp6(1),s.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),s.xp6(1),s.Q6J("dataSource",t.dataSource),s.xp6(19),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===t.dataSource.filteredData.length&&void 0!==t.services&&0!==t.services.length),s.xp6(1),s.Q6J("ngIf",void 0===t.services||0===t.services.length))},directives:[d.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,g.O5,o.ge,p.oG,o.ev,r.nU,h.Hw,f.gM,o.XQ,o.Gk,m.YH,v.rH,A.w],pipes:[S.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),e}()}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/827-es5.8b0b957d45d345d3fb05.js b/dist/apps/admin-gui/827-es5.8b0b957d45d345d3fb05.js deleted file mode 100644 index d995c357e..000000000 --- a/dist/apps/admin-gui/827-es5.8b0b957d45d345d3fb05.js +++ /dev/null @@ -1 +0,0 @@ -!function(){function e(e,i){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=function(e,i){if(!e)return;if("string"==typeof e)return t(e,i);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return t(e,i)}(e))||i&&e&&"number"==typeof e.length){a&&(e=a);var n=0,s=function(){};return{s:s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,l=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==a.return||a.return()}finally{if(l)throw r}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i_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()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(N.gz),g.Y36(r.xk),g.Y36(o.dB),g.Y36(u.uw),g.Y36(d.x4))},e.\u0275cmp=g.Xpm({type:e,selectors:[["app-perun-web-apps-resource-assigned-services"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","ml-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","services","selection","filterValue","displayedColumns","disableRouting","page",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","services","selection","filterValue","displayedColumns","disableRouting","page"]],template:function(e,t){1&e&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"perun-web-apps-refresh-button",1),g.NdJ("refresh",function(){return t.loadAllServices()}),g.qZA(),g.YNc(4,U,3,3,"button",2),g.YNc(5,L,3,4,"button",3),g.TgZ(6,"perun-web-apps-immediate-filter",4),g.NdJ("filter",function(e){return t.applyFilter(e)}),g.qZA(),g.YNc(7,k,1,0,"mat-spinner",5),g.YNc(8,M,1,6,"app-services-list",6)),2&e&&(g.xp6(1),g.Oqu(g.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),g.xp6(3),g.Q6J("ngIf",!t.loadingResource&&t.assignServiceAuth),g.xp6(1),g.Q6J("ngIf",!t.loadingResource&&t.removeServiceAuth),g.xp6(1),g.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),g.xp6(1),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",!t.loading))},directives:[D.t,h.O5,w.L,f.lW,m.$g,A.Q],pipes:[p.X$],styles:[""]}),e}()},79472:function(e,t,a){"use strict";a.d(t,{X:function(){return E}});var s=a(88426),r=a(33642),o=a(31572),l=a(57629),c=a(55109),u=a(61511),d=a(541),g=a(69012),p=a(48160);function h(e,t){1&e&&(o._uU(0),o.ALo(1,"translate")),2&e&&o.hij(" ",o.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function f(e,t){if(1&e&&o._UZ(0,"app-one-entity-attribute-page",4),2&e){var i=o.oxw();o.Q6J("entity","resource")("entityId",i.resourceId)}}function m(e,t){1&e&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&e&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function v(e,t){if(1&e&&o._UZ(0,"app-two-entity-attribute-page",5),2&e){var i=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",i.resourceId)("secondEntity","member")}}function A(e,t){1&e&&(o.TgZ(0,"mat-tab"),o.YNc(1,m,3,6,"ng-template",1),o.YNc(2,v,1,3,"ng-template",2),o.qZA())}function S(e,t){1&e&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&e&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function b(e,t){if(1&e&&o._UZ(0,"app-two-entity-attribute-page",5),2&e){var i=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",i.resourceId)("secondEntity","group")}}function R(e,t){1&e&&(o.TgZ(0,"mat-tab"),o.YNc(1,S,3,6,"ng-template",1),o.YNc(2,b,1,3,"ng-template",2),o.qZA())}var E=function(){var e=function(){function e(t,a,n){i(this,e),this.route=t,this.authResolver=a,this.resourceManager=n}return n(e,[{key:"ngOnInit",value:function(){var e=this;this.route.parent.params.subscribe(function(t){e.resourceId=parseInt(t.resourceId,10),e.resourceManager.getResourceById(e.resourceId).subscribe(function(t){e.resource=t,e.resourceGroupAttAuth=e.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[e.resource]),e.resourceMemberAttAuth=e.authResolver.isAuthorized("getAssignedRichMembers_Resource_policy",[e.resource])})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(l.gz),o.Y36(s.x4),o.Y36(r.xk))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,t){1&e&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-tab-group"),o.TgZ(5,"mat-tab"),o.YNc(6,h,2,3,"ng-template",1),o.YNc(7,f,1,2,"ng-template",2),o.qZA(),o.YNc(8,A,3,0,"mat-tab",3),o.YNc(9,R,3,0,"mat-tab",3),o.qZA(),o.qZA()),2&e&&(o.xp6(2),o.Oqu(o.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),o.xp6(6),o.Q6J("ngIf",t.resourceMemberAttAuth),o.xp6(1),o.Q6J("ngIf",t.resourceGroupAttAuth))},directives:[c.SP,c.uX,c.uD,c.Vc,u.O5,d.t,g.Y],pipes:[p.X$],styles:[""]}),e}()},72920:function(e,t,a){"use strict";a.d(t,{b:function(){return M}});var s=a(17),r=a(75585),o=a(33642),l=a(27613),c=a(88426),u=a(22280),d=a(81954),g=a(95909),p=a(31572),h=a(57629),f=a(48958),m=a(84608),v=a(66297),A=a(61511),S=a(67806),b=a(43691),R=a(36922),E=a(21575),Z=a(15980),T=a(48160);function I(e,t){1&e&&p._UZ(0,"mat-spinner",3)}function C(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"button",15),p.NdJ("click",function(){return p.CHM(i),p.oxw(2).editResource()}),p.TgZ(1,"mat-icon"),p._uU(2,"edit"),p.qZA(),p.qZA()}}function O(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"button",16),p.NdJ("click",function(){return p.CHM(i),p.oxw(2).deleteResource()}),p.TgZ(1,"mat-icon"),p._uU(2,"delete_forever"),p.qZA(),p.qZA()}}var _=function(e){return["/organizations",e]};function y(e,t){if(1&e&&(p.TgZ(0,"a",8),p._uU(1),p.qZA()),2&e){var i=p.oxw(2);p.Q6J("routerLink",p.VKq(2,_,i.resource.vo.id)),p.xp6(1),p.Oqu(i.resource.vo.name)}}function x(e,t){if(1&e&&(p.TgZ(0,"span"),p._uU(1),p.qZA()),2&e){var i=p.oxw(2);p.xp6(1),p.hij(" ",i.resource.vo.name," ")}}var N=function(e){return["/facilities",e]};function D(e,t){if(1&e&&(p.TgZ(0,"a",8),p._uU(1),p.qZA()),2&e){var i=p.oxw(2);p.Q6J("routerLink",p.VKq(2,N,i.resource.facilityId)),p.xp6(1),p.Oqu(i.resource.facility.name)}}function w(e,t){if(1&e&&(p.TgZ(0,"span"),p._uU(1),p.qZA()),2&e){var i=p.oxw(2);p.xp6(1),p.hij(" ",i.resource.facility.name," ")}}var U=function(){return{color:"black"}},L=function(e){return[e]};function k(e,t){if(1&e&&(p.TgZ(0,"div"),p.TgZ(1,"div",4),p._UZ(2,"mat-icon",5),p.ALo(3,"translate"),p.TgZ(4,"div",6),p.TgZ(5,"div",7),p.TgZ(6,"a",8),p._uU(7),p.qZA(),p.TgZ(8,"span",9),p._uU(9),p.qZA(),p.YNc(10,C,3,0,"button",10),p.YNc(11,O,3,0,"button",11),p.qZA(),p.TgZ(12,"div"),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.TgZ(15,"span",12),p._uU(16),p.ALo(17,"translate"),p.ALo(18,"translate"),p.YNc(19,y,2,4,"a",13),p.YNc(20,x,2,1,"span",2),p._uU(21),p.ALo(22,"translate"),p.YNc(23,D,2,4,"a",14),p.YNc(24,w,2,1,"span",2),p._uU(25),p.ALo(26,"translate"),p.qZA(),p.qZA(),p.qZA(),p._UZ(27,"app-animated-router-outlet"),p.qZA()),2&e){var i=p.oxw();p.xp6(2),p.s9C("matTooltip",p.lcZ(3,20,"RESOURCE_DETAIL.ENTITY")),p.Q6J("ngStyle",p.DdM(32,U)),p.xp6(4),p.Q6J("routerLink",p.VKq(33,L,i.baseUrl)),p.xp6(1),p.hij(" ",i.resource.name," "),p.xp6(2),p.hij(" \xa0#",i.resource.id," "),p.xp6(1),p.Q6J("ngIf",i.editResourceAuth),p.xp6(1),p.Q6J("ngIf",i.deleteAuth),p.xp6(2),p.AsE(" ",p.lcZ(14,22,"RESOURCE_DETAIL.UUID"),": ",i.resource.uuid," "),p.xp6(3),p.AsE(" ",p.lcZ(17,24,"RESOURCE_DETAIL.ENTITY"),", ",p.lcZ(18,26,"RESOURCE_DETAIL.VO"),": "),p.xp6(3),p.Q6J("ngIf",i.voLinkAuth),p.xp6(1),p.Q6J("ngIf",!i.voLinkAuth),p.xp6(1),p.AsE(" #",i.resource.voId,", ",p.lcZ(22,28,"RESOURCE_DETAIL.FACILITY"),": "),p.xp6(2),p.Q6J("ngIf",i.facilityLinkAuth),p.xp6(1),p.Q6J("ngIf",!i.facilityLinkAuth),p.xp6(1),p.lnq(" #",i.resource.facilityId,", ",p.lcZ(26,30,"RESOURCE_DETAIL.DESCRIPTION"),": ",i.resource.description," ")}}var M=function(){var e=function(){function e(t,a,n,s,r,o,l,c,u){i(this,e),this.route=t,this.facilityManager=a,this.vosManagerService=n,this.resourcesManager=s,this.sideMenuService=r,this.sideMenuItemService=o,this.dialog=l,this.guiAuthResolver=c,this.router=u,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}return n(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.route.params.subscribe(function(t){e.resourcesManager.getRichResourceById(t.resourceId).subscribe(function(t){e.resource=t,e.setAuth(),"facilities"===e.route.parent.snapshot.url[0].path?(e.baseUrl=(new u.r5).transform(t,!1),e.facilityManager.getFacilityById(t.facilityId).subscribe(function(i){var a=e.sideMenuItemService.parseFacility(i),n=e.sideMenuItemService.parseResource(t,!1);e.sideMenuService.setFacilityMenuItems([a,n]),e.loading=!1},function(){return e.loading=!1})):(e.baseUrl=(new u.r5).transform(t,!0),e.vosManagerService.getVoById(t.voId).subscribe(function(i){var a=e.sideMenuItemService.parseVo(i),n=e.sideMenuItemService.parseResource(t,!0);e.sideMenuService.setAccessMenuItems([a,n]),e.loading=!1},function(){return e.loading=!1})),(0,l.sF)("resources",e.resource)})})}},{key:"setAuth",value:function(){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])}},{key:"editResource",value:function(){var e,t=this;this.resourcesManager.getResourceById(this.resource.id).subscribe(function(i){e=i;var a=(0,l.kZ)();a.width="450px",a.data={theme:"resource-theme",resource:e,dialogType:d.Eg.RESOURCE},t.dialog.open(d.rd,a).afterClosed().subscribe(function(e){e&&t.resourcesManager.getRichResourceById(t.resource.id).subscribe(function(e){t.resource=e})})})}},{key:"deleteResource",value:function(){var e=this,t=(0,l.kZ)();t.width="500px",t.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(g.f,t).afterClosed().subscribe(function(t){t&&e.router.navigate(["../"],{relativeTo:e.route})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(p.Y36(h.gz),p.Y36(o.IQ),p.Y36(o.YF),p.Y36(o.xk),p.Y36(f.D),p.Y36(r.V),p.Y36(m.uw),p.Y36(c.x4),p.Y36(h.F0))},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-resource-detail-page"]],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"],["mat-icon-button","","aria-label","Edit resource",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"],["mat-icon-button","","aria-label","Edit resource",3,"click"],["mat-icon-button","",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0),p._UZ(1,"perun-web-apps-back-button"),p.YNc(2,I,1,0,"mat-spinner",1),p.YNc(3,k,28,35,"div",2),p.qZA()),2&e&&(p.xp6(2),p.Q6J("ngIf",t.loading),p.xp6(1),p.Q6J("ngIf",!t.loading&&void 0!==t.resource))},directives:[v.W,A.O5,S.$g,b.Hw,R.gM,A.PC,h.yS,E.A,Z.lW],pipes:[T.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[s.Ji]}}),e}()},42473:function(t,a,s){"use strict";s.d(a,{K:function(){return P}});var r=s(33642),o=s(4230),l=s(84608),c=s(67033),u=s(88426),d=s(31572),g=s(48160),p=s(61511),h=s(15980),f=s(67806);function m(e,t){1&e&&d._UZ(0,"mat-spinner",6)}function v(e,t){1&e&&d._UZ(0,"th",15)}function A(e,t){if(1&e&&(d.TgZ(0,"td",16),d._uU(1),d.qZA()),2&e){var i=t.$implicit;d.xp6(1),d.hij(" ",i.name," ")}}function S(e,t){1&e&&d._UZ(0,"tr",17)}function b(e,t){1&e&&d._UZ(0,"tr",18)}function R(e,t){if(1&e&&(d.TgZ(0,"div",7),d.TgZ(1,"p"),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"div",8),d._uU(5),d.ALo(6,"translate"),d.qZA(),d.TgZ(7,"table",9),d.ynx(8,10),d.YNc(9,v,1,0,"th",11),d.YNc(10,A,2,1,"td",12),d.BQk(),d.YNc(11,S,1,0,"tr",13),d.YNc(12,b,1,0,"tr",14),d.qZA(),d.qZA()),2&e){var i=d.oxw();d.xp6(2),d.hij(" ",d.lcZ(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),d.xp6(3),d.hij(" ",d.lcZ(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),d.xp6(2),d.Q6J("dataSource",i.dataSource),d.xp6(4),d.Q6J("matHeaderRowDef",i.displayedColumns),d.xp6(1),d.Q6J("matRowDefColumns",i.displayedColumns)}}var E=function(){var t=function(){function t(e,a,n,s,r){i(this,t),this.dialogRef=e,this.data=a,this.notificator=n,this.translate=s,this.resourceManager=r,this.displayedColumns=["name"],this.loading=!1}return n(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.groups)}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t,i=this,a=[],n=e(this.data.groups);try{for(n.s();!(t=n.n()).done;){var s=t.value;a.push(s.id)}}catch(r){n.e(r)}finally{n.f()}this.loading=!0,this.resourceManager.removeGroupsFromResource(a,this.data.resourceId).subscribe(function(){i.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(function(e){i.notificator.showSuccess(e),i.dialogRef.close(!0)})},function(){return i.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(l.so),d.Y36(l.WI),d.Y36(u.V6),d.Y36(g.sK),d.Y36(r.xk))},t.\u0275cmp=d.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.YNc(4,m,1,0,"mat-spinner",1),d.YNc(5,R,13,9,"div",2),d.TgZ(6,"div",3),d.TgZ(7,"button",4),d.NdJ("click",function(){return t.onCancel()}),d._uU(8),d.ALo(9,"translate"),d.qZA(),d.TgZ(10,"button",5),d.NdJ("click",function(){return t.onSubmit()}),d._uU(11),d.ALo(12,"translate"),d.qZA(),d.qZA(),d.qZA()),2&e&&(d.Tol(t.theme),d.xp6(2),d.Oqu(d.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),d.xp6(2),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading),d.xp6(3),d.hij(" ",d.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),d.xp6(2),d.Q6J("disabled",t.loading),d.xp6(1),d.hij(" ",d.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},directives:[l.uh,p.O5,l.H8,h.lW,f.$g,l.xY,c.BZ,c.w1,c.fO,c.Dz,c.as,c.nj,c.ge,c.ev,c.XQ,c.Gk],pipes:[g.X$],styles:[""]}),t}(),Z=s(60611),T=s(29236),I=s(36922),C=s(16073),O=s(91058),_=s(78364);function y(e,t){1&e&&d._UZ(0,"mat-spinner",7)}var x=function(){return["select","id","name","description"]};function N(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"div",8),d.TgZ(1,"perun-web-apps-debounce-filter",9),d.NdJ("filter",function(e){return d.CHM(i),d.oxw().applyFilter(e)}),d.ALo(2,"translate"),d.qZA(),d.TgZ(3,"perun-web-apps-groups-list",10),d.NdJ("page",function(e){return d.CHM(i),d.oxw().pageChanged(e)}),d.qZA(),d.qZA()}if(2&e){var a=d.oxw();d.xp6(1),d.s9C("placeholder",d.lcZ(2,8,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),d.xp6(2),d.Q6J("pageSize",a.pageSize)("groups",a.unAssignedGroups)("selection",a.selection)("filter",a.filterValue)("displayedColumns",d.DdM(10,x))("disableRouting",!0)("disableMembers",!1)}}var D=function(){var t=function(){function t(e,a,n,s,r,l,c,u){i(this,t),this.dialogRef=e,this.data=a,this.notificator=n,this.translate=s,this.resourceManager=r,this.tableConfigService=l,this.groupService=c,this.guiAuthResolver=u,this.loading=!1,this.checkGroups=!1,this.async=!0,this.selection=new o.Ov(!0,[]),this.filterValue="",this.tableId=Z.cL}return n(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.resource=this.data.resource,this.resourceManager.getAssignedGroups(this.resource.id).subscribe(function(i){t.groupService.getAllGroups(t.resource.voId).subscribe(function(a){t.unAssignedGroups=a;var n,s=e(i);try{for(s.s();!(n=s.n()).done;){var r,o=n.value,l=e(a);try{for(l.s();!(r=l.n()).done;){var c=r.value;o.id===c.id&&t.unAssignedGroups.splice(t.unAssignedGroups.indexOf(c),1)}}catch(u){l.e(u)}finally{l.f()}}}catch(u){s.e(u)}finally{s.f()}t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onAdd",value:function(){var t=this;if(this.checkGroups);else{this.loading=!0;var i,a=[],n=e(this.selection.selected);try{for(n.s();!(i=n.n()).done;){var s=i.value;a.push(s.id)}}catch(r){n.e(r)}finally{n.f()}this.resourceManager.assignGroupsToResource(a,this.resource.id,this.async).subscribe(function(){t.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}},{key:"canAddGroups",value:function(){var e=this,t=!0;return this.selection.selected.forEach(function(i){e.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[e.resource,i])||(t=!1)}),t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(l.so),d.Y36(l.WI),d.Y36(u.V6),d.Y36(g.sK),d.Y36(r.xk),d.Y36(Z.dB),d.Y36(r.ff),d.Y36(u.x4))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],decls:18,vars:26,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions",""],[3,"matTooltip","ngModel","ngModelChange"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","matTooltip","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"pageSize","groups","selection","filter","displayedColumns","disableRouting","disableMembers","page"]],template:function(e,t){1&e&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.YNc(4,y,1,0,"mat-spinner",1),d.YNc(5,N,4,11,"div",2),d.TgZ(6,"div",3),d.TgZ(7,"mat-checkbox",4),d.NdJ("ngModelChange",function(e){return t.async=e}),d.ALo(8,"translate"),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.TgZ(11,"button",5),d.NdJ("click",function(){return t.onCancel()}),d._uU(12),d.ALo(13,"translate"),d.qZA(),d.TgZ(14,"button",6),d.NdJ("click",function(){return t.onAdd()}),d.ALo(15,"translate"),d._uU(16),d.ALo(17,"translate"),d.qZA(),d.qZA(),d.qZA()),2&e&&(d.Tol(t.theme),d.xp6(2),d.Oqu(d.lcZ(3,14,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),d.xp6(2),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading),d.xp6(2),d.s9C("matTooltip",d.lcZ(8,16,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT_DESCRIPTION")),d.Q6J("ngModel",t.async),d.xp6(2),d.hij(" ",d.lcZ(10,18,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),d.xp6(3),d.hij(" ",d.lcZ(13,20,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),d.xp6(2),d.s9C("matTooltip",d.lcZ(15,22,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_TOOLTIP")),d.Q6J("disabled",0===t.selection.selected.length||!t.canAddGroups()||t.loading)("matTooltipDisabled",t.canAddGroups()),d.xp6(2),d.hij(" ",d.lcZ(17,24,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))},directives:[l.uh,p.O5,l.H8,T.oG,I.gM,C.JJ,C.On,h.lW,f.$g,l.xY,O.P,_.W],pipes:[g.X$],styles:[""]}),t}(),w=s(27613),U=s(67004),L=s(57629),k=s(59403),M=s(39571),G=["checkbox"];function Y(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"button",9),d.NdJ("click",function(){return d.CHM(i),d.oxw().addGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function q(e,t){1&e&&d._UZ(0,"mat-spinner",10)}var J=function(e){return[e]},z=function(){return["select","id","name","status","description"]};function Q(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"div",11),d.TgZ(1,"perun-web-apps-groups-list",12),d.NdJ("page",function(e){return d.CHM(i),d.oxw().pageChanged(e)})("refreshTable",function(){return d.CHM(i),d.oxw().loadAllGroups()}),d.qZA(),d.qZA()}if(2&e){var a=d.oxw();d.xp6(1),d.Q6J("pageSize",a.pageSize)("groups",a.assignedGroups)("filter",a.filteredValue)("selection",a.selected)("disableMembers",!1)("resourceId",a.resourceId)("disableRouting",!a.guiAuthResolver.isAuthorized("getGroupById_int_policy",d.VKq(8,J,a.assignedGroups[0])))("displayedColumns",d.DdM(10,z))}}function V(e,t){1&e&&(d.TgZ(0,"app-alert",13),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.NO_GROUPS"),"\n"))}var P=function(){var e=function(){function e(t,a,n,s,r,l){i(this,e),this.route=t,this.resourcesManager=a,this.vosManagerService=n,this.tableConfigService=s,this.dialog=r,this.guiAuthResolver=l,this.assignedGroups=[],this.selected=new o.Ov(!0,[]),this.filteredValue="",this.tableId=Z.Ad}return n(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(function(t){e.resourceId=t.resourceId,e.getDataForAuthorization(),e.loadAllGroups()})}},{key:"loadAllGroups",value:function(){var e=this;this.loading=!0,this.resourcesManager.getGroupAssignments(this.resourceId,[U.r.GROUP_SYNC_ENABLED]).subscribe(function(t){e.assignedGroups=t.map(function(e){var t=e.enrichedGroup.group;return t.status=e.status,t.failureCause=e.failureCause,t}),e.selected.clear(),e.loading=!1})}},{key:"addGroup",value:function(){var e=this,t=(0,w.kZ)();t.width="800px",t.data={theme:"resource-theme",resource:this.resource},this.dialog.open(D,t).afterClosed().subscribe(function(t){t&&e.loadAllGroups()})}},{key:"removeGroups",value:function(){var e=this,t=(0,w.kZ)();t.width="500px",t.data={resourceId:this.resourceId,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(E,t).afterClosed().subscribe(function(t){t&&e.loadAllGroups()})}},{key:"canRemoveGroups",value:function(){var e=this,t=!0;return this.selected.selected.forEach(function(i){e.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[e.resource,i])||(t=!1)}),t}},{key:"applyFilter",value:function(e){this.filteredValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}},{key:"getDataForAuthorization",value:function(){var e=this;this.loadingResource=!0,this.resourcesManager.getResourceById(this.resourceId).subscribe(function(t){e.resource=t,e.loadingResource=!1})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.Y36(L.gz),d.Y36(r.xk),d.Y36(r.YF),d.Y36(Z.dB),d.Y36(l.uw),d.Y36(u.x4))},e.\u0275cmp=d.Xpm({type:e,selectors:[["app-perun-web-apps-resource-groups"]],viewQuery:function(e,t){var i;(1&e&&d.Gf(G,7),2&e)&&(d.iGM(i=d.CRH())&&(t.checkbox=i.first))},decls:14,vars:18,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","mat-flat-button","",1,"ml-2","mr-2",3,"disabled","click"],[3,"matTooltipDisabled","matTooltip"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["alert_type","warn",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"pageSize","groups","filter","selection","disableMembers","resourceId","disableRouting","displayedColumns","page","refreshTable"],["alert_type","warn"]],template:function(e,t){1&e&&(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 t.loadAllGroups()}),d.qZA(),d.YNc(4,Y,3,3,"button",2),d.TgZ(5,"button",3),d.NdJ("click",function(){return t.removeGroups()}),d.TgZ(6,"span",4),d.ALo(7,"translate"),d._uU(8),d.ALo(9,"translate"),d.qZA(),d.qZA(),d.TgZ(10,"perun-web-apps-debounce-filter",5),d.NdJ("filter",function(e){return t.applyFilter(e)}),d.qZA(),d.YNc(11,q,1,0,"mat-spinner",6),d.YNc(12,Q,2,11,"div",7),d.YNc(13,V,3,3,"app-alert",8)),2&e&&(d.xp6(1),d.Oqu(d.lcZ(2,10,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",!t.loadingResource&&t.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",d.VKq(16,J,t.resource))),d.xp6(1),d.Q6J("disabled",0===t.selected.selected.length||!t.canRemoveGroups()),d.xp6(1),d.s9C("matTooltip",d.lcZ(7,12,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),d.Q6J("matTooltipDisabled",t.canRemoveGroups()),d.xp6(2),d.hij(" ",d.lcZ(9,14,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),d.xp6(2),d.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),d.xp6(1),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading&&0!==t.assignedGroups.length),d.xp6(1),d.Q6J("ngIf",0===t.assignedGroups.length&&!t.loading))},directives:[k.t,p.O5,h.lW,I.gM,O.P,f.$g,_.W,M.w],pipes:[g.X$],styles:[""]}),e}()},76527:function(e,t,a){"use strict";a.d(t,{H:function(){return h}});var s=a(33642),r=a(88426),o=a(31572),l=a(57629),c=a(61511),u=a(67806),d=a(8557);function g(e,t){1&e&&o._UZ(0,"mat-spinner",2)}function p(e,t){if(1&e&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&e){var i=o.oxw();o.xp6(1),o.Q6J("items",i.navItems)("size","small")}}var h=function(){var e=function(){function e(t,a,n){i(this,e),this.resourcesManager=t,this.route=a,this.guiAuthResolver=n,this.navItems=[],this.loading=!1}return n(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.route.params.subscribe(function(t){e.resourcesManager.getResourceById(t.resourceId).subscribe(function(t){e.resource=t,e.initItems("facilities"!==e.route.parent.parent.snapshot.url[0].path),e.loading=!1},function(){return e.loading=!1})})}},{key:"initItems",value:function(e){var t=e?"/organizations/".concat(this.resource.voId):"/facilities/".concat(this.resource.facilityId);this.navItems=[],this.guiAuthResolver.isAuthorized("getAssignedGroups_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-group",url:"".concat(t,"/resources/").concat(this.resource.id,"/groups"),label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedServices_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-service",url:"/".concat(t,"/resources/").concat(this.resource.id,"/services"),label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedMembers_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-user",url:"".concat(t,"/resources/").concat(this.resource.id,"/members"),label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-resource-tags",url:"".concat(t,"/resources/").concat(this.resource.id,"/tags"),label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"".concat(t,"/resources/").concat(this.resource.id,"/attributes"),label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.guiAuthResolver.isManagerPagePrivileged(this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:"".concat(t,"/resources/").concat(this.resource.id,"/settings"),label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(s.xk),o.Y36(l.gz),o.Y36(r.x4))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.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,t){1&e&&(o.YNc(0,g,1,0,"mat-spinner",0),o.YNc(1,p,2,2,"div",1)),2&e&&(o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading))},directives:[c.O5,u.$g,d.L],styles:[""]}),e}()},64359:function(e,t,a){"use strict";a.d(t,{O:function(){return g}});var s=a(33642),r=a(88426),o=a(31572),l=a(57629),c=a(61511),u=a(489);function d(e,t){if(1&e&&o._UZ(0,"app-managers-page",1),2&e){var i=o.oxw();o.Q6J("complementaryObject",i.resource)("complementaryObjectType",i.type)("theme",i.theme)("availableRoles",i.availableRoles)}}var g=function(){var e=function(){function e(t,a,n){i(this,e),this.route=t,this.resourceService=a,this.guiAuthResolver=n,this.availableRoles=[],this.type="Resource",this.theme="resource-theme"}return n(e,[{key:"ngOnInit",value:function(){var e=this;this.route.parent.parent.params.subscribe(function(t){e.resourceService.getResourceById(t.resourceId).subscribe(function(t){e.resource=t})}),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Resource")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(l.gz),o.Y36(s.xk),o.Y36(r.x4))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-settings-managers"]],decls:1,vars:1,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles",4,"ngIf"],[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(e,t){1&e&&o.YNc(0,d,1,4,"app-managers-page",0),2&e&&o.Q6J("ngIf",t.resource)},directives:[c.O5,u.s],styles:[""]}),e}()},22927:function(e,t,a){"use strict";a.d(t,{h:function(){return h}});var s=a(33642),r=a(88426),o=a(31572),l=a(57629),c=a(61511),u=a(67806),d=a(8557);function g(e,t){1&e&&o._UZ(0,"mat-spinner",2)}function p(e,t){if(1&e&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&e){var i=o.oxw();o.xp6(1),o.Q6J("items",i.items)("size","small")}}var h=function(){var e=function(){function e(t,a,n){i(this,e),this.route=t,this.resourceManager=a,this.authResolver=n,this.items=[],this.loading=!1}return n(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.route.parent.parent.params.subscribe(function(t){e.resourceManager.getResourceById(t.resourceId).subscribe(function(t){e.resource=t,e.initItems("facilities"!==e.route.parent.parent.parent.snapshot.url[0].path),e.loading=!1},function(){return e.loading=!1})})}},{key:"initItems",value:function(e){this.items=[],this.authResolver.isManagerPagePrivileged(this.resource)&&this.items.push({cssIcon:"perun-manager",url:"".concat(e?"/organizations/".concat(this.resource.voId):"/facilities/".concat(this.resource.facilityId),"/resources/").concat(this.resource.id,"/settings/managers"),label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(l.gz),o.Y36(s.xk),o.Y36(r.x4))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.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,t){1&e&&(o.YNc(0,g,1,0,"mat-spinner",0),o.YNc(1,p,2,2,"div",1)),2&e&&(o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading))},directives:[c.O5,u.$g,d.L],styles:[""]}),e}()},77968:function(e,t,a){"use strict";a.d(t,{t:function(){return o}});var n=a(17),s=a(31572),r=a(21575),o=function(){var e=function e(){i(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&s.ekj("router-component",t.true)},decls:1,vars:0,template:function(e,t){1&e&&s._UZ(0,"app-animated-router-outlet")},directives:[r.A],styles:[""],data:{animation:[n.Ji]}}),e}()},53134:function(e,t,a){"use strict";a.d(t,{v:function(){return _}});var s=a(33642),r=a(4230),o=a(60611),l=a(27613),c=a(88426),u=a(81954),d=a(84608),g=a(31572),p=a(61511),h=a(15980),f=a(67806),m=a(4196),v=a(48160);function A(e,t){1&e&&g._UZ(0,"mat-spinner",8)}function S(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"app-resources-tags-list",9),g.NdJ("page",function(e){return g.CHM(i),g.oxw().pageChanged(e)}),g.qZA()}if(2&e){var a=g.oxw();g.Q6J("selection",a.selection)("pageSize",a.pageSize)("resourceTags",a.resourceTags)("filterValue",a.filterValue)("displayedColumns",a.displayedColumns)("entity","resource")}}var b=function(){var e=function(){function e(t,a,n,s){i(this,e),this.dialogRef=t,this.data=a,this.tableConfigService=n,this.resourcesManager=s,this.tableId=o.g,this.selection=new r.Ov(!0,[]),this.resourceTags=[],this.displayedColumns=["select","id","name"]}return n(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),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(function(t){e.resourceTags=t.filter(function(t){return e.assignedTags.map(function(e){return e.id}).indexOf(t.id)<=-1}),e.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(e){var t=this;if(0===e.length)return this.dialogRef.close(!0);var i=e.pop();this.resourcesManager.assignResourceTagToResource({resource:this.resourceId,resourceTag:i}).subscribe(function(){t.onSubmit(e)})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(d.so),g.Y36(d.WI),g.Y36(o.dB),g.Y36(s.xk))},e.\u0275cmp=g.Xpm({type:e,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","pageSize","resourceTags","filterValue","displayedColumns","entity","page",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,"mr-auto","ml-auto"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page"]],template:function(e,t){1&e&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",1),g.TgZ(5,"div",2),g.YNc(6,A,1,0,"mat-spinner",3),g.qZA(),g.YNc(7,S,1,6,"app-resources-tags-list",4),g.qZA(),g.TgZ(8,"div",5),g.TgZ(9,"button",6),g.NdJ("click",function(){return t.onCancel()}),g._uU(10),g.ALo(11,"translate"),g.qZA(),g.TgZ(12,"button",7),g.NdJ("click",function(){return t.onSubmit(t.selection.selected)}),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.Tol(t.theme),g.xp6(2),g.Oqu(g.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),g.xp6(4),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",!t.loading),g.xp6(3),g.hij(" ",g.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),g.xp6(2),g.Q6J("disabled",t.loading||0===t.resourceTags.length),g.xp6(1),g.hij(" ",g.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},directives:[d.uh,d.xY,p.O5,d.H8,h.lW,f.$g,m.o],pipes:[v.X$],styles:[""]}),e}(),R=a(57629),E=a(59403),Z=a(19139);function T(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",7),g.NdJ("click",function(){return g.CHM(i),g.oxw().addTag()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function I(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",8),g.NdJ("click",function(){return g.CHM(i),g.oxw().removeTags()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}if(2&e){var a=g.oxw();g.Q6J("disabled",0===a.selection.selected.length),g.xp6(1),g.hij(" ",g.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function C(e,t){1&e&&g._UZ(0,"mat-spinner",9)}function O(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"app-resources-tags-list",10),g.NdJ("page",function(e){return g.CHM(i),g.oxw().pageChanged(e)}),g.qZA()}if(2&e){var a=g.oxw();g.Q6J("selection",a.selection)("pageSize",a.pageSize)("resourceTags",a.resourceTags)("filterValue",a.filterValue)("displayedColumns",a.displayedColumns)("entity","resource")}}var _=function(){var e=function(){function e(t,a,n,s,l,c,u,d){i(this,e),this.route=t,this.authResolver=a,this.tableConfigService=n,this.resourcesManager=s,this.voService=l,this.dialog=c,this.notificator=u,this.translate=d,this.loading=!1,this.resourceTags=[],this.selection=new r.Ov(!0,[]),this.tableId=o.M8,this.displayedColumns=[]}return n(e,[{key:"ngOnInit",value:function(){var e=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(t){e.voId=t.voId,e.resourceId=t.resourceId,e.resourcesManager.getResourceById(e.resourceId).subscribe(function(t){e.resource=t,e.updateData()})})}},{key:"removeTags",value:function(){var e=this,t=(0,l.kZ)();t.width="450px",t.data={items:this.selection.selected.map(function(e){return e.tagName}),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme"},this.dialog.open(u.Tf,t).afterClosed().subscribe(function(t){t&&e.removeTag(e.selection.selected)})}},{key:"removeTag",value:function(e){var t=this;if(0===e.length)return this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData();var i=e.pop();this.resourcesManager.removeResourceTagFromResource({resource:this.resourceId,resourceTag:i}).subscribe(function(){t.removeTag(e)})}},{key:"addTag",value:function(){var e=this,t=(0,l.kZ)();t.width="600px",t.data={voId:this.voId,resourceId:this.resourceId,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(b,t).afterClosed().subscribe(function(t){t&&(e.notificator.showSuccess(e.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),e.updateData())})}},{key:"updateData",value:function(){var e=this;this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resourceId).subscribe(function(t){e.resourceTags=t,e.selection.clear(),e.setAuthRights(),e.loading=!1})}},{key:"setAuthRights",value:function(){this.displayedColumns=[],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"]}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(R.gz),g.Y36(c.x4),g.Y36(o.dB),g.Y36(s.xk),g.Y36(s.YF),g.Y36(d.uw),g.Y36(c.V6),g.Y36(v.sK))},e.\u0275cmp=g.Xpm({type:e,selectors:[["app-perun-web-apps-resource-tags"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","pageSize","resourceTags","filterValue","displayedColumns","entity","page"]],template:function(e,t){1&e&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"perun-web-apps-refresh-button",1),g.NdJ("refresh",function(){return t.updateData()}),g.qZA(),g.YNc(4,T,3,3,"button",2),g.YNc(5,I,3,4,"button",3),g.TgZ(6,"perun-web-apps-immediate-filter",4),g.NdJ("filter",function(e){return t.applyFilter(e)}),g.qZA(),g.YNc(7,C,1,0,"mat-spinner",5),g.YNc(8,O,1,6,"app-resources-tags-list",6)),2&e&&(g.xp6(1),g.Oqu(g.lcZ(2,6,"RESOURCE_DETAIL.TAGS.TITLE")),g.xp6(3),g.Q6J("ngIf",t.addAuth),g.xp6(1),g.Q6J("ngIf",t.removeAuth),g.xp6(1),g.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),g.xp6(1),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",!t.loading))},directives:[E.t,p.O5,Z.L,h.lW,f.$g,m.o],pipes:[v.X$],styles:[""]}),e}()},489:function(t,a,s){"use strict";s.d(a,{s:function(){return Ue}});var r=s(4230),o=s(84608),l=s(88426),c=s(33642),u=s(60611),d=s(67004),g=s(16073),p=s(31572),h=s(48160),f=s(57629),m=s(66283),v=s(4786),A=s(61511),S=s(80340),b=s(15980),R=s(71522),E=s(67806),Z=s(39571),T=s(86593),I=function(){var e=function(){function e(t){i(this,e),this.translate=t,this.prefix="ROLES."}return n(e,[{key:"transform",value:function(e){var t=this.prefix.concat(e);return this.translate.instant(t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(p.Y36(h.sK,16))},e.\u0275pipe=p.Yjl({name:"displayedRole",type:e,pure:!0}),e}();function C(e,t){if(1&e&&(p.TgZ(0,"mat-option",15),p._uU(1),p.ALo(2,"displayedRole"),p.qZA()),2&e){var i=t.$implicit;p.Q6J("value",i),p.xp6(1),p.Oqu(p.lcZ(2,2,i))}}function O(e,t){1&e&&p._UZ(0,"mat-spinner",16)}function _(e,t){1&e&&(p.TgZ(0,"app-alert",20),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}var y=function(){return["select","id","name","email","logins","organization"]};function x(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"app-users-list",21),p.NdJ("page",function(e){return p.CHM(i),p.oxw(2).pageChanged(e)}),p.qZA()}if(2&e){var a=p.oxw(2);p.Q6J("pageSize",a.pageSize)("disableRouting",!0)("selection",a.selection)("displayedColumns",p.DdM(5,y))("users",a.users)}}function N(e,t){if(1&e&&(p.TgZ(0,"div",17),p.YNc(1,_,3,3,"app-alert",18),p.YNc(2,x,1,6,"app-users-list",19),p.qZA()),2&e){var i=p.oxw();p.xp6(1),p.Q6J("ngIf",0===i.users.length&&i.firstSearchDone),p.xp6(1),p.Q6J("ngIf",0!==i.users.length)}}var D=function(){var e=function(){function e(t,a,n,s,o,l,c,d,g,p){var h=this;i(this,e),this.dialogRef=t,this.data=a,this.authzService=n,this.usersService=s,this.translate=o,this.notificator=l,this.storeService=c,this.route=d,this.router=g,this.tableConfigService=p,this.selection=new r.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=u.H2,o.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(function(e){return h.title=e}),o.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(function(e){return h.successMessage=e})}return n(e,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new g.NI("",[g.kI.required,g.kI.pattern(".*[\\S]+.*")])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(function(e){return e.id}),complementaryObject:this.data.complementaryObject}).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})}},{key:"onSearchByString",value:function(){var e=this;if(this.searchCtrl.invalid)this.searchCtrl.markAllAsTouched();else{this.loading=!0,this.selection.clear();var t=[d.r.USER_DEF_ORGANIZATION,d.r.USER_DEF_PREFERRED_MAIL];t=t.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,t).subscribe(function(t){e.users=t,e.loading=!1,e.firstSearchDone=!0},function(){return e.loading=!1})}}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(p.Y36(o.so),p.Y36(o.WI),p.Y36(c.Ct),p.Y36(c.Fv),p.Y36(h.sK),p.Y36(l.V6),p.Y36(l.d6),p.Y36(f.gz),p.Y36(f.F0),p.Y36(u.dB))},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-add-manager-dialog"]],decls:32,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",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"pageSize","disableRouting","selection","displayedColumns","users","page",4,"ngIf"],["alert_type","warn"],[3,"pageSize","disableRouting","selection","displayedColumns","users","page"]],template:function(e,t){1&e&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",1),p.TgZ(5,"div",2),p.TgZ(6,"mat-form-field",3),p.TgZ(7,"mat-label"),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"mat-select",4),p.NdJ("valueChange",function(e){return t.selectedRole=e}),p.YNc(11,C,3,4,"mat-option",5),p.qZA(),p.qZA(),p.TgZ(12,"mat-form-field",6),p.TgZ(13,"label"),p.TgZ(14,"input",7),p.NdJ("keyup.enter",function(){return t.onSearchByString()}),p.ALo(15,"translate"),p.qZA(),p.qZA(),p.TgZ(16,"mat-error"),p._uU(17),p.ALo(18,"translate"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(19,"button",8),p.NdJ("click",function(){return t.onSearchByString()}),p._uU(20),p.ALo(21,"translate"),p.qZA(),p.TgZ(22,"div",9),p.YNc(23,O,1,0,"mat-spinner",10),p.qZA(),p.YNc(24,N,3,2,"div",11),p.qZA(),p.TgZ(25,"div",12),p.TgZ(26,"button",13),p.NdJ("click",function(){return t.onCancel()}),p._uU(27),p.ALo(28,"translate"),p.qZA(),p.TgZ(29,"button",14),p.NdJ("click",function(){return t.onSubmit()}),p._uU(30),p.ALo(31,"translate"),p.qZA(),p.qZA(),p.qZA()),2&e&&(p.Tol(t.theme),p.xp6(2),p.Oqu(p.lcZ(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),p.xp6(6),p.Oqu(p.lcZ(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),p.xp6(2),p.Q6J("value",t.selectedRole),p.xp6(1),p.Q6J("ngForOf",t.availableRoles),p.xp6(3),p.s9C("placeholder",p.lcZ(15,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),p.Q6J("formControl",t.searchCtrl),p.xp6(3),p.hij(" ",p.lcZ(18,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),p.xp6(2),p.Q6J("disabled",t.loading),p.xp6(1),p.hij(" ",p.lcZ(21,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),p.xp6(3),p.Q6J("ngIf",t.loading),p.xp6(1),p.Q6J("ngIf",null!==t.users&&!t.loading),p.xp6(3),p.hij(" ",p.lcZ(28,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",0===t.selection.selected.length||void 0===t.selectedRole||t.loading),p.xp6(1),p.hij(" ",p.lcZ(31,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},directives:[o.uh,o.xY,m.KE,m.hX,v.gD,A.sg,S.Nt,g.Fj,g.JJ,g.oH,m.TO,b.lW,A.O5,o.H8,R.ey,E.$g,Z.w,T.C],pipes:[h.X$,I],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),e}(),w=s(67033);function U(e,t){1&e&&p._UZ(0,"th",14)}function L(e,t){if(1&e&&(p.TgZ(0,"td",15),p._uU(1),p.qZA()),2&e){var i=t.$implicit;p.xp6(1),p.AsE(" ",i.firstName," ",i.lastName,"")}}function k(e,t){1&e&&p._UZ(0,"tr",16)}function M(e,t){1&e&&p._UZ(0,"tr",17)}function G(e,t){if(1&e&&(p.TgZ(0,"div",6),p.TgZ(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",7),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"table",8),p.ynx(8,9),p.YNc(9,U,1,0,"th",10),p.YNc(10,L,2,2,"td",11),p.BQk(),p.YNc(11,k,1,0,"tr",12),p.YNc(12,M,1,0,"tr",13),p.qZA(),p.qZA()),2&e){var i=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,5,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),p.xp6(3),p.hij(" ",p.lcZ(6,7,"DIALOGS.REMOVE_MANAGERS.ASK")," "),p.xp6(2),p.Q6J("dataSource",i.dataSource),p.xp6(4),p.Q6J("matHeaderRowDef",i.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",i.displayedColumns)}}function Y(e,t){1&e&&p._UZ(0,"mat-spinner",18)}var q=function(){var e=function(){function e(t,a,n,s,r){i(this,e),this.dialogRef=t,this.data=a,this.notificator=n,this.translate=s,this.authzService=r,this.displayedColumns=["name"]}return n(e,[{key:"ngOnInit",value:function(){this.dataSource=new w.by(this.data.managers),this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.authzService.unsetRoleWithUserComplementaryObject({role:this.data.role,users:this.data.managers.map(function(e){return e.id}),complementaryObject:this.data.complementaryObject}).subscribe(function(){e.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})},function(){return e.loading=!1})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(p.Y36(o.so),p.Y36(o.WI),p.Y36(l.V6),p.Y36(h.sK),p.Y36(c.Ct))},e.\u0275cmp=p.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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",""],[1,"mr-auto","ml-auto"]],template:function(e,t){1&e&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,G,13,9,"div",1),p.YNc(5,Y,1,0,"mat-spinner",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return t.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return t.onSubmit()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&e&&(p.Tol(t.theme),p.xp6(2),p.Oqu(p.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),p.xp6(2),p.Q6J("ngIf",!t.loading),p.xp6(1),p.Q6J("ngIf",t.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",t.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},directives:[o.uh,A.O5,o.H8,b.lW,o.xY,w.BZ,w.w1,w.fO,w.Dz,w.as,w.nj,w.ge,w.ev,w.XQ,w.Gk,E.$g],pipes:[h.X$],styles:[""]}),e}();function J(e,t){1&e&&p._UZ(0,"mat-spinner",6)}function z(e,t){1&e&&p._UZ(0,"th",15)}function Q(e,t){if(1&e&&(p.TgZ(0,"td",16),p._uU(1),p.qZA()),2&e){var i=t.$implicit;p.xp6(1),p.hij(" ",i.name,"")}}function V(e,t){1&e&&p._UZ(0,"tr",17)}function P(e,t){1&e&&p._UZ(0,"tr",18)}function F(e,t){if(1&e&&(p.TgZ(0,"div",7),p.TgZ(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",8),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"table",9),p.ynx(8,10),p.YNc(9,z,1,0,"th",11),p.YNc(10,Q,2,1,"td",12),p.BQk(),p.YNc(11,V,1,0,"tr",13),p.YNc(12,P,1,0,"tr",14),p.qZA(),p.qZA()),2&e){var i=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),p.xp6(3),p.hij(" ",p.lcZ(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),p.xp6(2),p.Q6J("dataSource",i.dataSource),p.xp6(4),p.Q6J("matHeaderRowDef",i.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",i.displayedColumns)}}var j=function(){var e=function(){function e(t,a,n,s,r){i(this,e),this.dialogRef=t,this.data=a,this.notificator=n,this.translate=s,this.authzService=r,this.displayedColumns=["name"]}return n(e,[{key:"ngOnInit",value:function(){this.dataSource=new w.by(this.data.groups),this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.authzService.unsetRoleWithGroupComplementaryObject({role:this.data.role,authorizedGroups:this.data.groups.map(function(e){return e.id}),complementaryObject:this.data.complementaryObject}).subscribe(function(){e.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})},function(){return e.loading=!1})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(p.Y36(o.so),p.Y36(o.WI),p.Y36(l.V6),p.Y36(h.sK),p.Y36(c.Ct))},e.\u0275cmp=p.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,J,1,0,"mat-spinner",1),p.YNc(5,F,13,9,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return t.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return t.onSubmit()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&e&&(p.Tol(t.theme),p.xp6(2),p.Oqu(p.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),p.xp6(2),p.Q6J("ngIf",t.loading),p.xp6(1),p.Q6J("ngIf",!t.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",t.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},directives:[o.uh,A.O5,o.H8,b.lW,E.$g,o.xY,w.BZ,w.w1,w.fO,w.Dz,w.as,w.nj,w.ge,w.ev,w.XQ,w.Gk],pipes:[h.X$],styles:[""]}),e}(),H=s(56238),B=s(79996),$=s(40084),X=s(91058),W=s(78364);function K(e,t){if(1&e&&(p.TgZ(0,"mat-option",17),p._uU(1),p.ALo(2,"displayedRole"),p.qZA()),2&e){var i=t.$implicit;p.Q6J("value",i),p.xp6(1),p.Oqu(p.lcZ(2,2,i))}}function ee(e,t){if(1&e&&(p.TgZ(0,"mat-option",17),p._uU(1),p.qZA()),2&e){var i=t.$implicit;p.Q6J("value",i),p.xp6(1),p.hij(" ",i.name," ")}}function te(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"perun-web-apps-debounce-filter",18),p.NdJ("filter",function(e){return p.CHM(i),p.oxw().applyFilter(e)}),p.ALo(1,"translate"),p.qZA()}2&e&&p.s9C("placeholder",p.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function ie(e,t){1&e&&p._UZ(0,"mat-spinner",19)}var ae=function(){return["select","id","name","description"]};function ne(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"div",20),p.TgZ(1,"perun-web-apps-groups-list",21),p.NdJ("page",function(e){return p.CHM(i),p.oxw().pageChanged(e)}),p.qZA(),p.qZA()}if(2&e){var a=p.oxw();p.xp6(1),p.Q6J("pageSize",a.pageSize)("disableRouting",!0)("displayedColumns",p.DdM(7,ae))("selection",a.selection)("filter",a.filterValue)("groups",a.groups)("disableMembers",!1)}}var se=function(){var e=function(){function e(t,a,n,s,o,l,c,d,p,h){var f=this;i(this,e),this.dialogRef=t,this.data=a,this.authzService=n,this.voService=s,this.groupService=o,this.translate=l,this.notificator=c,this.route=d,this.tableConfigService=p,this.router=h,this.searchString="",this.selection=new r.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new g.NI,this.firstSearchDone=!1,this.tableId=u.kZ,l.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(function(e){return f.title=e}),l.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(function(e){return f.successMessage=e})}return n(e,[{key:"displayFn",value:function(e){return e?e.name:null}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(function(e){return e.id}),complementaryObject:this.data.complementaryObject}).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.loading=!1,e.dialogRef.close()},function(){return e.loading=!1})}},{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.theme=this.data.theme,this.voService.getMyVos().subscribe(function(t){e.filteredOptions=e.myControl.valueChanges.pipe((0,H.O)(""),(0,B.U)(function(t){return e._filter(t)})),e.vos=t,e.loading=!1},function(){return e.loading=!1})}},{key:"_filter",value:function(e){var t="string"==typeof e?e.toLowerCase():e.name.toLowerCase;return this.vos.filter(function(e){return e.name.toLowerCase().includes(t)})}},{key:"showVoGroups",value:function(e){var t=this;this.loading=!0,this.groupService.getAllGroups(e.option.value.id).subscribe(function(e){t.groups=e,t.loading=!1,t.firstSearchDone=!0},function(){return t.loading=!1})}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}},{key:"applyFilter",value:function(e){this.filterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(p.Y36(o.so),p.Y36(o.WI),p.Y36(c.Ct),p.Y36(c.YF),p.Y36(c.ff),p.Y36(h.sK),p.Y36(l.V6),p.Y36(f.gz),p.Y36(u.dB),p.Y36(f.F0))},e.\u0275cmp=p.Xpm({type:e,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"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"pageSize","disableRouting","displayedColumns","selection","filter","groups","disableMembers","page"]],template:function(e,t){if(1&e&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",1),p.TgZ(5,"div",2),p.TgZ(6,"mat-form-field",3),p.TgZ(7,"mat-label"),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"mat-select",4),p.NdJ("valueChange",function(e){return t.selectedRole=e}),p.YNc(11,K,3,4,"mat-option",5),p.qZA(),p.qZA(),p.TgZ(12,"mat-form-field",6),p.TgZ(13,"mat-label"),p._uU(14),p.ALo(15,"translate"),p.qZA(),p._UZ(16,"input",7),p.ALo(17,"translate"),p.TgZ(18,"mat-autocomplete",8,9),p.NdJ("optionSelected",function(e){return t.showVoGroups(e)}),p.YNc(20,ee,2,2,"mat-option",5),p.ALo(21,"async"),p.qZA(),p.qZA(),p.qZA(),p.YNc(22,te,2,3,"perun-web-apps-debounce-filter",10),p.TgZ(23,"div",11),p.YNc(24,ie,1,0,"mat-spinner",12),p.qZA(),p.YNc(25,ne,2,8,"div",13),p.qZA(),p.TgZ(26,"div",14),p.TgZ(27,"button",15),p.NdJ("click",function(){return t.onCancel()}),p._uU(28),p.ALo(29,"translate"),p.qZA(),p.TgZ(30,"button",16),p.NdJ("click",function(){return t.onSubmit()}),p._uU(31),p.ALo(32,"translate"),p.qZA(),p.qZA(),p.qZA()),2&e){var i=p.MAs(19);p.Tol(t.theme),p.xp6(2),p.Oqu(p.lcZ(3,19,"DIALOGS.ADD_GROUPS.TITLE")),p.xp6(6),p.Oqu(p.lcZ(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),p.xp6(2),p.Q6J("value",t.selectedRole),p.xp6(1),p.Q6J("ngForOf",t.availableRoles),p.xp6(3),p.Oqu(p.lcZ(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),p.xp6(2),p.s9C("placeholder",p.lcZ(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),p.Q6J("formControl",t.myControl)("matAutocomplete",i),p.xp6(2),p.Q6J("displayWith",t.displayFn),p.xp6(2),p.Q6J("ngForOf",p.lcZ(21,27,t.filteredOptions)),p.xp6(2),p.Q6J("ngIf",null!==t.groups&&t.groups.length>0&&!t.loading),p.xp6(2),p.Q6J("ngIf",t.loading),p.xp6(1),p.Q6J("ngIf",null!==t.groups&&!t.loading),p.xp6(3),p.hij(" ",p.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",0===t.selection.selected.length||t.loading),p.xp6(1),p.hij(" ",p.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},directives:[o.uh,o.xY,m.KE,m.hX,v.gD,A.sg,S.Nt,g.Fj,$.ZL,g.JJ,g.oH,$.XC,A.O5,o.H8,b.lW,R.ey,X.P,E.$g,W.W],pipes:[h.X$,A.Ov,I],styles:[""]}),e}(),re=s(27613),oe=s(55109),le=s(59403);function ce(e,t){1&e&&(p._uU(0),p.ALo(1,"translate")),2&e&&p.hij(" ",p.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function ue(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"perun-web-apps-refresh-button",11),p.NdJ("refresh",function(){return p.CHM(i),p.oxw(2).refreshUsers()}),p.qZA()}}function de(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(i),p.oxw(2).addManager()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function ge(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"button",13),p.NdJ("click",function(){return p.CHM(i),p.oxw(2).removeManager()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&e){var a=p.oxw(2);p.Q6J("disabled",0===a.selectionUsers.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function pe(e,t){if(1&e&&(p.TgZ(0,"mat-option",17),p._uU(1),p.ALo(2,"displayedRole"),p.qZA()),2&e){var i=t.$implicit;p.Q6J("value",i),p.xp6(1),p.Oqu(p.lcZ(2,2,i))}}function he(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"mat-form-field",14),p.TgZ(1,"mat-label"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-select",15),p.NdJ("valueChange",function(e){return p.CHM(i),p.oxw(2).selectedRole=e})("selectionChange",function(){return p.CHM(i),p.oxw(2).refreshUsers()}),p.YNc(5,pe,3,4,"mat-option",16),p.qZA(),p.qZA()}if(2&e){var a=p.oxw(2);p.xp6(2),p.Oqu(p.lcZ(3,3,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),p.xp6(2),p.Q6J("value",a.selectedRole),p.xp6(1),p.Q6J("ngForOf",a.availableRoles)}}function fe(e,t){1&e&&p._UZ(0,"mat-spinner",18)}var me=function(){return["select","id","name","email","logins","organization"]},ve=function(){return["id","name","email","logins","organization"]};function Ae(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"app-users-list",20),p.NdJ("page",function(e){return p.CHM(i),p.oxw(3).pageChanged(e)}),p.qZA()}if(2&e){var a=p.oxw(3);p.Q6J("pageSize",a.pageSize)("users",a.managers)("disableRouting",!a.routeAuth)("displayedColumns",a.manageAuth?p.DdM(5,me):p.DdM(6,ve))("selection",a.selectionUsers)}}function Se(e,t){if(1&e&&(p.TgZ(0,"div"),p.YNc(1,Ae,1,7,"app-users-list",19),p.qZA()),2&e){var i=p.oxw(2);p.xp6(1),p.Q6J("ngIf",i.managers)}}function be(e,t){if(1&e&&(p.YNc(0,ue,1,0,"perun-web-apps-refresh-button",5),p.YNc(1,de,3,3,"button",6),p.YNc(2,ge,3,4,"button",7),p.YNc(3,he,6,5,"mat-form-field",8),p.YNc(4,fe,1,0,"mat-spinner",9),p.YNc(5,Se,2,1,"div",10)),2&e){var i=p.oxw();p.Q6J("ngIf",!i.loading),p.xp6(1),p.Q6J("ngIf",!i.loading&&i.manageAuth),p.xp6(1),p.Q6J("ngIf",!i.loading&&i.manageAuth),p.xp6(1),p.Q6J("ngIf",!i.loading),p.xp6(1),p.Q6J("ngIf",i.loading),p.xp6(1),p.Q6J("ngIf",!i.loading)}}function Re(e,t){1&e&&(p._uU(0),p.ALo(1,"translate")),2&e&&p.hij(" ",p.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function Ee(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"perun-web-apps-refresh-button",11),p.NdJ("refresh",function(){return p.CHM(i),p.oxw(2).refreshGroups()}),p.qZA()}}function Ze(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(i),p.oxw(2).addGroup()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Te(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"button",13),p.NdJ("click",function(){return p.CHM(i),p.oxw(2).removeGroup()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&e){var a=p.oxw(2);p.Q6J("disabled",0===a.selectionGroups.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Ie(e,t){if(1&e&&(p.TgZ(0,"mat-option",17),p._uU(1),p.ALo(2,"displayedRole"),p.qZA()),2&e){var i=t.$implicit;p.Q6J("value",i),p.xp6(1),p.Oqu(p.lcZ(2,2,i))}}function Ce(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"mat-form-field",14),p.TgZ(1,"mat-label"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-select",15),p.NdJ("valueChange",function(e){return p.CHM(i),p.oxw(2).selectedRole=e})("selectionChange",function(){return p.CHM(i),p.oxw(2).refreshGroups()}),p.YNc(5,Ie,3,4,"mat-option",16),p.qZA(),p.qZA()}if(2&e){var a=p.oxw(2);p.xp6(2),p.Oqu(p.lcZ(3,3,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),p.xp6(2),p.Q6J("value",a.selectedRole),p.xp6(1),p.Q6J("ngForOf",a.availableRoles)}}function Oe(e,t){1&e&&p._UZ(0,"mat-spinner",18)}var _e=function(){return["select","id","vo","name","description"]},ye=function(){return["id","vo","name","description"]};function xe(e,t){if(1&e){var i=p.EpF();p.TgZ(0,"perun-web-apps-groups-list",22),p.NdJ("page",function(e){return p.CHM(i),p.oxw(3).pageChanged(e)}),p.qZA()}if(2&e){var a=p.oxw(3);p.Q6J("pageSize",a.pageSize)("displayedColumns",a.manageAuth?p.DdM(5,_e):p.DdM(6,ye))("groups",a.groups)("selection",a.selectionGroups)("disableMembers",!1)}}function Ne(e,t){if(1&e&&(p.TgZ(0,"div"),p.YNc(1,xe,1,7,"perun-web-apps-groups-list",21),p.qZA()),2&e){var i=p.oxw(2);p.xp6(1),p.Q6J("ngIf",i.groups)}}function De(e,t){if(1&e&&(p.YNc(0,Ee,1,0,"perun-web-apps-refresh-button",5),p.YNc(1,Ze,3,3,"button",6),p.YNc(2,Te,3,4,"button",7),p.YNc(3,Ce,6,5,"mat-form-field",8),p.YNc(4,Oe,1,0,"mat-spinner",9),p.YNc(5,Ne,2,1,"div",10)),2&e){var i=p.oxw();p.Q6J("ngIf",!i.loading),p.xp6(1),p.Q6J("ngIf",!i.loading&&i.manageAuth),p.xp6(1),p.Q6J("ngIf",!i.loading&&i.manageAuth),p.xp6(1),p.Q6J("ngIf",!i.loading),p.xp6(1),p.Q6J("ngIf",i.loading),p.xp6(1),p.Q6J("ngIf",!i.loading)}}function we(e,t){1&e&&(p.TgZ(0,"app-alert",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}var Ue=function(){var t=function(){function t(e,a,n,s,o){i(this,t),this.dialog=e,this.tableConfigService=a,this.authzService=n,this.storeService=s,this.guiAuthResolver=o,this.groups=null,this.managers=null,this.selectionUsers=new r.Ov(!0,[]),this.selectionGroups=new r.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=u.HC,this.availableRolesPrivileges=new Map}return n(t,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.guiAuthResolver.getRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(function(t){return e.availableRolesPrivileges.get(t).readAuth}),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0]),this.routeAuth=this.guiAuthResolver.isPerunAdminOrObserver(),this.refreshUsers()}},{key:"changeRolePrivileges",value:function(){this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;var t,i=!1,a=e(this.roleModes);try{for(a.s();!(t=a.n()).done;){var n=t.value;if(this.selectedMode===n.toLowerCase()){i=!0;break}}}catch(s){a.e(s)}finally{a.f()}i||(this.selectedMode=this.roleModes[0].toLowerCase())}},{key:"tabChanged",value:function(e){this.loading=!0,0===e.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}},{key:"refreshUsers",value:function(){var e=this;this.loading=!0,this.changeRolePrivileges();var t=[d.r.USER_DEF_ORGANIZATION,d.r.USER_DEF_PREFERRED_MAIL];t=t.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,t,!1,!0).subscribe(function(t){e.managers=t,e.selectionUsers.clear(),e.loading=!1},function(){e.loading=!1})}},{key:"refreshGroups",value:function(){var e=this;this.loading=!0,this.changeRolePrivileges(),this.authzService.getAuthzAdminGroups(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType).subscribe(function(t){e.groups=t,e.selectionGroups.clear(),e.loading=!1},function(){e.loading=!1})}},{key:"addManager",value:function(){var e=this,t=(0,re.kZ)();t.width="1000px",t.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(D,t).afterClosed().subscribe(function(t){t&&e.refreshUsers()})}},{key:"removeManager",value:function(){var e=this,t=(0,re.kZ)();t.width="450px",t.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(q,t).afterClosed().subscribe(function(t){t&&e.refreshUsers()})}},{key:"removeGroup",value:function(){var e=this,t=(0,re.kZ)();t.width="450px",t.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(j,t).afterClosed().subscribe(function(t){t&&e.refreshGroups()})}},{key:"addGroup",value:function(){var e=this,t=(0,re.kZ)();t.width="1000px",t.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(se,t).afterClosed().subscribe(function(t){t&&e.refreshGroups()})}},{key:"pageChanged",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(p.Y36(o.uw),p.Y36(u.dB),p.Y36(c.Ct),p.Y36(l.d6),p.Y36(l.x4))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(e,t){2&e&&p.ekj("router-component",t.true)},inputs:{complementaryObject:"complementaryObject",availableRoles:"availableRoles",complementaryObjectType:"complementaryObjectType",theme:"theme"},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["alert_type","warn",4,"ngIf"],["class","mt-2",3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2 mt-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 mt-2",3,"disabled","click",4,"ngIf"],["class","mr-2 mt-2",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2","mt-2",3,"disabled","click"],[1,"mr-2","mt-2"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"pageSize","users","disableRouting","displayedColumns","selection","page",4,"ngIf"],[3,"pageSize","users","disableRouting","displayedColumns","selection","page"],[3,"pageSize","displayedColumns","groups","selection","disableMembers","page",4,"ngIf"],[3,"pageSize","displayedColumns","groups","selection","disableMembers","page"],["alert_type","warn"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"mat-tab-group",1),p.NdJ("selectedTabChange",function(e){return t.tabChanged(e)}),p.TgZ(4,"mat-tab"),p.YNc(5,ce,2,3,"ng-template",2),p.YNc(6,be,6,6,"ng-template",3),p.qZA(),p.TgZ(7,"mat-tab"),p.YNc(8,Re,2,3,"ng-template",2),p.YNc(9,De,6,6,"ng-template",3),p.qZA(),p.qZA(),p.YNc(10,we,3,3,"app-alert",4)),2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),p.xp6(9),p.Q6J("ngIf",0===t.availableRoles.length))},directives:[oe.SP,oe.uX,oe.uD,oe.Vc,A.O5,le.t,b.lW,m.KE,m.hX,v.gD,A.sg,R.ey,E.$g,T.C,W.W,Z.w],pipes:[h.X$,I],styles:[""]}),t}()},4196:function(e,t,a){"use strict";a.d(t,{o:function(){return Y}});var s=a(31572),r=a(58623),o=a(67033),l=a(4230),c=a(88426),u=a(33642),d=a(27613),g=a(48160),p=a(82819),h=a(61511),f=a(29236),m=a(66283),v=a(80340),A=a(16073),S=a(15980),b=a(36922),R=a(43691),E=a(39571);function Z(e,t){if(1&e){var i=s.EpF();s.TgZ(0,"th",14),s.TgZ(1,"mat-checkbox",15),s.NdJ("change",function(e){s.CHM(i);var t=s.oxw();return e?t.masterToggle():null}),s.qZA(),s.qZA()}if(2&e){var a=s.oxw();s.xp6(1),s.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function T(e,t){if(1&e){var i=s.EpF();s.TgZ(0,"td",16),s.TgZ(1,"mat-checkbox",17),s.NdJ("change",function(e){var t=s.CHM(i).$implicit,a=s.oxw();return e?a.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),s.qZA(),s.qZA()}if(2&e){var a=t.$implicit,n=s.oxw();s.xp6(1),s.Q6J("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function I(e,t){1&e&&(s.TgZ(0,"th",18),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")))}function C(e,t){if(1&e&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&e){var i=t.$implicit;s.xp6(1),s.Oqu(i.id)}}function O(e,t){1&e&&(s.TgZ(0,"th",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")))}function _(e,t){if(1&e&&(s.TgZ(0,"div"),s._uU(1),s.qZA()),2&e){var i=s.oxw().$implicit;s.xp6(1),s.hij(" ",i.tagName," ")}}function y(e,t){if(1&e){var i=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"mat-form-field"),s.TgZ(2,"input",21),s.NdJ("ngModelChange",function(e){return s.CHM(i),s.oxw().$implicit.tagName=e}),s.qZA(),s.qZA(),s.qZA()}if(2&e){var a=s.oxw().$implicit;s.xp6(2),s.Q6J("ngModel",a.tagName)}}function x(e,t){if(1&e&&(s.TgZ(0,"td",19),s.YNc(1,_,2,1,"div",20),s.YNc(2,y,3,1,"div",20),s.qZA()),2&e){var i=t.$implicit,a=s.oxw();s.xp6(1),s.Q6J("ngIf",!a.isChanging.isSelected(i)),s.xp6(1),s.Q6J("ngIf",a.isChanging.isSelected(i))}}function N(e,t){1&e&&s._UZ(0,"th",14)}function D(e,t){if(1&e){var i=s.EpF();s.TgZ(0,"button",24),s.NdJ("click",function(){s.CHM(i);var e=s.oxw().$implicit;return s.oxw().edit(e)}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon"),s._uU(3,"edit"),s.qZA(),s.qZA()}2&e&&s.s9C("matTooltip",s.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function w(e,t){if(1&e){var i=s.EpF();s.TgZ(0,"button",24),s.NdJ("click",function(){s.CHM(i);var e=s.oxw().$implicit;return s.oxw().save(e)}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon"),s._uU(3,"save"),s.qZA(),s.qZA()}2&e&&s.s9C("matTooltip",s.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function U(e,t){if(1&e&&(s.TgZ(0,"td",19),s.TgZ(1,"div",22),s.YNc(2,D,4,3,"button",23),s.YNc(3,w,4,3,"button",23),s.qZA(),s.qZA()),2&e){var i=t.$implicit,a=s.oxw();s.xp6(2),s.Q6J("ngIf",!a.isChanging.isSelected(i)),s.xp6(1),s.Q6J("ngIf",a.isChanging.isSelected(i))}}function L(e,t){1&e&&s._UZ(0,"tr",25)}function k(e,t){1&e&&s._UZ(0,"tr",26)}function M(e,t){if(1&e&&(s.TgZ(0,"app-alert",27),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"translate"),s.qZA()),2&e){var i=s.oxw();s.xp6(1),s.hij(" ","vo"===i.entity?s.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):s.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function G(e,t){1&e&&(s.TgZ(0,"app-alert",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var Y=function(){var e=function(){function e(t,a,n,r,o){i(this,e),this.resourceManager=t,this.notificator=a,this.translator=n,this.authResolver=r,this.tableCheckbox=o,this.resourceTags=[],this.selection=new l.Ov(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","name","edit"],this.page=new s.vpe,this.isChanging=new l.Ov(!0,[]),this.pageSizeOptions=d.f7}return n(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new o.by(this.resourceTags),this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}},{key:"getDataForColumn",value:function(e,t){switch(t){case"id":return e.id.toString();case"name":return e.tagName;default:return""}}},{key:"exportData",value:function(e){(0,d.O6)((0,d.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,d.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,d.pR)(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"save",value:function(e){var t=this;this.resourceManager.updateResourceTag({resourceTag:e}).subscribe(function(){t.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.isChanging.deselect(e)})}},{key:"edit",value:function(e){this.isChanging.select(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(s.Y36(u.xk),s.Y36(c.V6),s.Y36(g.sK),s.Y36(c.x4),s.Y36(c.UA))},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-resources-tags-list"]],viewQuery:function(e,t){var i;(1&e&&(s.Gf(r.YE,7),s.Gf(d.l9,7)),2&e)&&(s.iGM(i=s.CRH())&&(t.matSort=i.first),s.iGM(i=s.CRH())&&(t.child=i.first))},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",pageSize:"pageSize",displayedColumns:"displayedColumns",entity:"entity"},outputs:{page:"page"},features:[s.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","edit"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["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(e,t){1&e&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,Z,2,3,"th",4),s.YNc(5,T,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,I,3,3,"th",7),s.YNc(8,C,2,1,"td",5),s.BQk(),s.ynx(9,8),s.YNc(10,O,3,3,"th",4),s.YNc(11,x,3,2,"td",9),s.BQk(),s.ynx(12,10),s.YNc(13,N,1,0,"th",4),s.YNc(14,U,4,2,"td",9),s.BQk(),s.YNc(15,L,1,0,"tr",11),s.YNc(16,k,1,0,"tr",12),s.qZA(),s.qZA(),s.qZA(),s.YNc(17,M,4,5,"app-alert",13),s.YNc(18,G,3,3,"app-alert",13)),2&e&&(s.Q6J("hidden",0===t.resourceTags.length||0===t.dataSource.filteredData.length),s.xp6(1),s.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),s.xp6(1),s.Q6J("dataSource",t.dataSource),s.xp6(13),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===t.resourceTags.length),s.xp6(1),s.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resourceTags.length))},directives:[p.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,f.oG,o.ev,r.nU,m.KE,v.Nt,A.Fj,A.JJ,A.On,S.lW,b.gM,R.Hw,o.XQ,o.Gk,E.w],pipes:[g.X$],styles:[""]}),e}()},91721:function(e,t,a){"use strict";a.d(t,{Q:function(){return Y}});var s=a(31572),r=a(58623),o=a(67033),l=a(4230),c=a(27613),u=a(88426),d=a(82819),g=a(61511),p=a(29236),h=a(43691),f=a(36922),m=a(84534),v=a(57629),A=a(39571),S=a(48160);function b(e,t){if(1&e){var i=s.EpF();s.TgZ(0,"th",16),s.TgZ(1,"mat-checkbox",17),s.NdJ("change",function(e){s.CHM(i);var t=s.oxw();return e?t.masterToggle():null}),s.qZA(),s.qZA()}if(2&e){var a=s.oxw();s.xp6(1),s.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function R(e,t){if(1&e){var i=s.EpF();s.TgZ(0,"td",18),s.TgZ(1,"mat-checkbox",19),s.NdJ("change",function(e){var t=s.CHM(i).$implicit,a=s.oxw();return e?a.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),s.qZA(),s.qZA()}if(2&e){var a=t.$implicit,n=s.oxw();s.xp6(1),s.Q6J("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function E(e,t){1&e&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")))}function Z(e,t){if(1&e&&(s.TgZ(0,"td",18),s._uU(1),s.qZA()),2&e){var i=t.$implicit;s.xp6(1),s.Oqu(i.id)}}function T(e,t){1&e&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")))}function I(e,t){if(1&e&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&e){var i=t.$implicit;s.xp6(1),s.Oqu(i.name)}}function C(e,t){1&e&&s._UZ(0,"th",16)}function O(e,t){1&e&&(s.TgZ(0,"mat-icon",23),s.ALo(1,"translate"),s._uU(2," check_circle_outline "),s.qZA()),2&e&&s.s9C("matTooltip",s.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function _(e,t){1&e&&(s.TgZ(0,"mat-icon",23),s.ALo(1,"translate"),s._uU(2," block "),s.qZA()),2&e&&s.s9C("matTooltip",s.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function y(e,t){if(1&e&&(s.TgZ(0,"td",21),s.YNc(1,O,3,3,"mat-icon",22),s.YNc(2,_,3,3,"mat-icon",22),s.qZA()),2&e){var i=t.$implicit;s.xp6(1),s.Q6J("ngIf",i.enabled),s.xp6(1),s.Q6J("ngIf",!i.enabled)}}function x(e,t){1&e&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")))}function N(e,t){if(1&e&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&e){var i=t.$implicit;s.xp6(1),s.Oqu(i.script)}}function D(e,t){1&e&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")))}function w(e,t){if(1&e&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&e){var i=t.$implicit;s.xp6(1),s.Oqu(i.description)}}function U(e,t){1&e&&s._UZ(0,"tr",24)}var L=function(e){return["/admin/services",e]};function k(e,t){if(1&e&&s._UZ(0,"tr",25),2&e){var i=t.$implicit,a=s.oxw();s.ekj("cursor-pointer",!a.disableRouting)("disable-outline",a.disableRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",a.disableRouting?null:s.VKq(6,L,i.id))("routerLink",a.disableRouting?null:s.VKq(8,L,i.id))}}function M(e,t){1&e&&(s.TgZ(0,"app-alert",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function G(e,t){1&e&&(s.TgZ(0,"app-alert",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}var Y=function(){var e=function(){function e(t,a){i(this,e),this.authResolver=t,this.tableCheckbox=a,this.services=[],this.filterValue="",this.pageSize=10,this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new l.Ov(!0,[]),this.disableRouting=!1,this.page=new s.vpe,this.pageSizeOptions=c.f7}return n(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new o.by(this.services),this.setDataSource()}},{key:"getDataForColumn",value:function(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"enabled":return e.enabled?"true":"false";case"script":return e.script;case"description":return e.description;default:return""}}},{key:"exportData",value:function(e){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,c.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,c.pR)(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(s.Y36(u.x4),s.Y36(u.UA))},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-services-list"]],viewQuery:function(e,t){var i;(1&e&&(s.Gf(r.YE,7),s.Gf(c.l9,7)),2&e)&&(s.iGM(i=s.CRH())&&(t.matSort=i.first),s.iGM(i=s.CRH())&&(t.child=i.first))},inputs:{services:"services",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{page:"page"},features:[s.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","enabled"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,b,2,3,"th",4),s.YNc(5,R,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,E,3,3,"th",7),s.YNc(8,Z,2,1,"td",5),s.BQk(),s.ynx(9,8),s.YNc(10,T,3,3,"th",7),s.YNc(11,I,2,1,"td",9),s.BQk(),s.ynx(12,10),s.YNc(13,C,1,0,"th",4),s.YNc(14,y,3,2,"td",9),s.BQk(),s.ynx(15,11),s.YNc(16,x,3,3,"th",4),s.YNc(17,N,2,1,"td",9),s.BQk(),s.ynx(18,12),s.YNc(19,D,3,3,"th",7),s.YNc(20,w,2,1,"td",9),s.BQk(),s.YNc(21,U,1,0,"tr",13),s.YNc(22,k,1,10,"tr",14),s.qZA(),s.qZA(),s.qZA(),s.YNc(23,M,3,3,"app-alert",15),s.YNc(24,G,3,3,"app-alert",15)),2&e&&(s.Q6J("hidden",void 0===t.services||0===t.services.length||0===t.dataSource.filteredData.length),s.xp6(1),s.Q6J("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),s.xp6(1),s.Q6J("dataSource",t.dataSource),s.xp6(19),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===t.dataSource.filteredData.length&&void 0!==t.services&&0!==t.services.length),s.xp6(1),s.Q6J("ngIf",void 0===t.services||0===t.services.length))},directives:[d.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,g.O5,o.ge,p.oG,o.ev,r.nU,h.Hw,f.gM,o.XQ,o.Gk,m.YH,v.rH,A.w],pipes:[S.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),e}()}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/901-es2015.5b604fcd09c050f65159.js b/dist/apps/admin-gui/901-es2015.5b604fcd09c050f65159.js new file mode 100644 index 000000000..2c699b0eb --- /dev/null +++ b/dist/apps/admin-gui/901-es2015.5b604fcd09c050f65159.js @@ -0,0 +1 @@ +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[901],{4359:function(t,e,a){"use strict";a.d(e,{D:function(){return v}});var i=a(31572),n=a(4230),s=a(58623),o=a(67033),r=a(84140),c=a(88426),l=a(82819),u=a(61511),m=a(29236),h=a(39571),d=a(48160),p=a(99373);function f(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"th",14),i.TgZ(1,"mat-checkbox",15),i.NdJ("change",function(e){i.CHM(t);const a=i.oxw();return e?a.masterToggle():null}),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function g(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"td",16),i.TgZ(1,"mat-checkbox",17),i.NdJ("change",function(e){const a=i.CHM(t).$implicit,n=i.oxw();return e?n.selection.toggle(a):null})("click",function(t){return t.stopPropagation()}),i.qZA(),i.qZA()}if(2&t){const t=e.$implicit,a=i.oxw();i.xp6(1),i.Q6J("aria-label",a.checkboxLabel(t))("checked",a.selection.isSelected(t))}}function S(t,e){1&t&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.ID")))}function x(t,e){if(1&t&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.id)}}function Z(t,e){1&t&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NAME")))}function b(t,e){if(1&t&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.name)}}function A(t,e){1&t&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.TYPE")))}function E(t,e){if(1&t&&(i.TgZ(0,"td",19),i._uU(1),i.ALo(2,"extSourceType"),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(i.lcZ(2,1,t.type))}}function T(t,e){1&t&&i._UZ(0,"tr",20)}function C(t,e){1&t&&i._UZ(0,"tr",21)}function D(t,e){1&t&&(i.TgZ(0,"app-alert",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_EXT_SOURCES"),"\n"))}function w(t,e){1&t&&(i.TgZ(0,"app-alert",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_FILTER_RESULTS"),"\n"))}let v=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.selection=new n.Ov,this.filterValue="",this.displayedColumns=["select","id","name","type"],this.pageSize=5,this.page=new i.vpe,this.exporting=!1,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new o.by(this.extSources),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"type":return t.type.substring(40);case"name":return t.name;default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this),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.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(c.x4),i.Y36(c.UA))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-ext-sources-list"]],viewQuery:function(t,e){if(1&t&&(i.Gf(r.l9,7),i.Gf(s.YE,7)),2&t){let t;i.iGM(t=i.CRH())&&(e.child=t.first),i.iGM(t=i.CRH())&&(e.matSort=t.first)}},inputs:{extSources:"extSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",pageSize:"pageSize"},outputs:{page:"page"},features:[i.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,f,2,3,"th",4),i.YNc(5,g,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,S,3,3,"th",7),i.YNc(8,x,2,1,"td",5),i.BQk(),i.ynx(9,8),i.YNc(10,Z,3,3,"th",7),i.YNc(11,b,2,1,"td",9),i.BQk(),i.ynx(12,10),i.YNc(13,A,3,3,"th",7),i.YNc(14,E,3,3,"td",9),i.BQk(),i.YNc(15,T,1,0,"tr",11),i.YNc(16,C,1,0,"tr",12),i.qZA(),i.qZA(),i.qZA(),i.YNc(17,D,3,3,"app-alert",13),i.YNc(18,w,3,3,"app-alert",13)),2&t&&(i.Q6J("hidden",0===e.extSources.length||0===e.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===e.extSources.length),i.xp6(1),i.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.extSources.length))},directives:[l.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,u.O5,o.ge,m.oG,o.ev,s.nU,o.XQ,o.Gk,h.w],pipes:[d.X$,p.A],styles:[""]}),t})()},64737:function(t,e,a){"use strict";a.d(e,{b:function(){return R}});var i=a(33642),n=a(84140),s=a(61189),o=a(67033),r=a(88426),c=a(67004),l=a(31572),u=a(84608),m=a(48160),h=a(27439),d=a(61511),p=a(67806),f=a(15980),g=a(43691),S=a(74842),x=a(37043),Z=a(73669),b=a(58506);function A(t,e){1&t&&l._UZ(0,"mat-spinner",4)}function E(t,e){1&t&&l._UZ(0,"th",12)}function T(t,e){if(1&t&&(l.TgZ(0,"td",13),l._uU(1),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.hij(" ",t,": ")}}function C(t,e){1&t&&l._UZ(0,"th",12)}function D(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",17),l.NdJ("click",function(){return l.CHM(t),l.oxw(4).changeStatus()}),l.TgZ(1,"mat-icon"),l._uU(2,"edit"),l.qZA(),l.qZA()}}function w(t,e){if(1&t&&(l.TgZ(0,"div"),l.TgZ(1,"i"),l.ALo(2,"memberStatusIconColor"),l._uU(3),l.ALo(4,"memberStatusIcon"),l.qZA(),l.TgZ(5,"b",15),l._uU(6),l.ALo(7,"transformMemberStatus"),l.qZA(),l.YNc(8,D,3,0,"button",16),l.qZA()),2&t){const t=l.oxw(3);l.xp6(1),l.Gre("material-icons vert-center mr-1 ",l.lcZ(2,6,t.member.status),""),l.xp6(2),l.hij(" ",l.lcZ(4,8,t.member.status)," "),l.xp6(3),l.hij(" ",l.lcZ(7,10,t.member.status)," "),l.xp6(2),l.Q6J("ngIf",t.authResolver.isThisVoAdmin(t.vo.id))}}function v(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",17),l.NdJ("click",function(){return l.CHM(t),l.oxw(4).changeVoExpiration(!1)}),l.TgZ(1,"mat-icon"),l._uU(2,"edit"),l.qZA(),l.qZA()}}function N(t,e){if(1&t&&(l.TgZ(0,"div"),l.TgZ(1,"i",18),l._uU(2),l.ALo(3,"parseDate"),l.qZA(),l.YNc(4,v,3,0,"button",16),l.qZA()),2&t){const t=l.oxw(3);l.xp6(2),l.hij(" ",l.lcZ(3,2,t.voExpiration)," "),l.xp6(2),l.Q6J("ngIf",t.authResolver.isThisVoAdmin(t.vo.id))}}function _(t,e){if(1&t&&(l.TgZ(0,"td",14),l.YNc(1,w,9,12,"div",3),l.YNc(2,N,5,4,"div",3),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Q6J("ngIf","Status"===t),l.xp6(1),l.Q6J("ngIf","Expiration"===t)}}function O(t,e){1&t&&l._UZ(0,"tr",19)}function q(t,e){if(1&t&&(l.TgZ(0,"div"),l.TgZ(1,"table",5),l.ynx(2,6),l.YNc(3,E,1,0,"th",7),l.YNc(4,T,2,1,"td",8),l.BQk(),l.ynx(5,9),l.YNc(6,C,1,0,"th",7),l.YNc(7,_,3,2,"td",10),l.BQk(),l.YNc(8,O,1,0,"tr",11),l.qZA(),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("dataSource",t.voMembershipDataSource),l.xp6(7),l.Q6J("matRowDefColumns",t.displayedColumns)}}let R=(()=>{class t{constructor(t,e,a,i,n,s){this.dialog=t,this.authResolver=e,this.apiRequest=a,this.attributesManager=i,this.translate=n,this.notificator=s,this.voMembershipDataSource=new o.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new o.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const t=(0,n.kZ)();t.width="600px",t.data={member:this.member,voId:this.vo.id};const e=this.member.status;this.dialog.open(s.pf,t).afterClosed().subscribe(t=>{t&&(this.member=t,("VALID"!==e||"EXPIRED"!==t.status&&"DISABLED"!==t.status)&&"VALID"!==t.status||this.changeVoExpiration(!0))})}changeVoExpiration(t){const e=(0,n.kZ)();e.width="400px",e.data={voId:this.vo.id,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:t},this.dialog.open(s.kZ,e).afterClosed().subscribe(t=>{t&&this.refreshVoExpiration()})}refreshVoExpiration(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,c.r.MEMBER_DEF_EXPIRATION).subscribe(t=>{this.voExpirationAtt=t,this.voExpiration=t.value?t.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},t=>{"PrivilegeException"!==t.error.name?this.notificator.showError(t):this.voMembershipDataSource=new o.by(["Status"]),this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(u.uw),l.Y36(r.x4),l.Y36(r.F5),l.Y36(i.H8),l.Y36(m.sK),l.Y36(r.V6))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-member-overview-membership"]],inputs:{member:"member",vo:"vo"},features:[l.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(t,e){1&t&&(l.TgZ(0,"mat-card",0),l.TgZ(1,"mat-card-header"),l.TgZ(2,"mat-card-title"),l.TgZ(3,"h1",1),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.qZA(),l.qZA(),l.TgZ(6,"mat-card-content"),l.YNc(7,A,1,0,"mat-spinner",2),l.YNc(8,q,9,2,"div",3),l.qZA(),l.qZA()),2&t&&(l.xp6(4),l.Oqu(l.lcZ(5,3,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")),l.xp6(3),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[h.a8,h.dk,h.n5,h.dn,d.O5,p.$g,o.BZ,o.w1,o.fO,o.Dz,o.nj,o.ge,o.ev,f.lW,g.Hw,o.Gk],pipes:[m.X$,S.u,x.f,Z.r,b.M],styles:[".membership-card[_ngcontent-%COMP%]{max-width:400px}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),t})()},73669:function(t,e,a){"use strict";a.d(e,{r:function(){return n}});var i=a(31572);let n=(()=>{class t{transform(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?t:"ACTIVE"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"transformMemberStatus",type:t,pure:!0}),t})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/901-es5.5b604fcd09c050f65159.js b/dist/apps/admin-gui/901-es5.5b604fcd09c050f65159.js new file mode 100644 index 000000000..85b057451 --- /dev/null +++ b/dist/apps/admin-gui/901-es5.5b604fcd09c050f65159.js @@ -0,0 +1 @@ +!function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var a=0;a - - + @@ -27,5 +26,5 @@ - + diff --git a/dist/apps/admin-gui/main-es2015.7cd331bb3a27f4d3095d.js b/dist/apps/admin-gui/main-es2015.7cd331bb3a27f4d3095d.js deleted file mode 100644 index 4be2a0fbf..000000000 --- a/dist/apps/admin-gui/main-es2015.7cd331bb3a27f4d3095d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[179],{27622:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=27622,t.exports=e},71313:function(t,e,i){"use strict";i.d(e,{t:function(){return C}});var n=i(33642),s=i(60611),o=i(67004),r=i(88426),a=i(16073),c=i(31572),u=i(66283),l=i(80340),h=i(15980),d=i(43691),p=i(61511),g=i(67806),f=i(86593),m=i(39571),b=i(48160);function w(t,e){1&t&&c._UZ(0,"mat-spinner",8)}const _=function(){return["user","id","name","email","logins","organization"]};function y(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"app-users-list",11),c.NdJ("page",function(e){return c.CHM(t),c.oxw(2).pageChanged(e)}),c.qZA()}if(2&t){const t=c.oxw(2);c.Q6J("pageSize",t.pageSize)("displayedColumns",c.DdM(3,_))("users",t.users)}}function A(t,e){1&t&&(c.TgZ(0,"app-alert",12),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.Q6J("alert_type","info"),c.xp6(1),c.hij(" ",c.lcZ(2,2,"ADMIN.USERS.SEARCH_INFO")," "))}function v(t,e){1&t&&(c.TgZ(0,"app-alert",12),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.Q6J("alert_type","warn"),c.xp6(1),c.hij(" ",c.lcZ(2,2,"ADMIN.USERS.NO_USERS_FOUND")," "))}function T(t,e){if(1&t&&(c.TgZ(0,"div"),c.YNc(1,y,1,4,"app-users-list",9),c.YNc(2,A,3,4,"app-alert",10),c.YNc(3,v,3,4,"app-alert",10),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.Q6J("ngIf",void 0!==t.users&&t.users.length>0),c.xp6(1),c.Q6J("ngIf",!t.firstSearchDone),c.xp6(1),c.Q6J("ngIf",t.firstSearchDone&&0===t.users.length)}}let C=(()=>{class t{constructor(t,e,i){this.usersService=t,this.storeService=e,this.tableConfigService=i,this.loading=!1,this.firstSearchDone=!1,this.tableId=s.xx,this.attributes=[]}ngOnInit(){this.searchControl=new a.NI("",[a.kI.required,a.kI.pattern(".*[\\S]+.*")]),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.attributes=[o.r.USER_DEF_ORGANIZATION,o.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(){this.searchControl.invalid?this.searchControl.markAllAsTouched():(this.loading=!0,this.firstSearchDone=!0,this.usersService.findRichUsersWithAttributes(this.searchControl.value,this.attributes).subscribe(t=>{this.users=t,this.loading=!1},()=>{this.loading=!1}))}onKeyInput(t){"Enter"===t.key&&this.onSearchByString()}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}findUsersWithoutVO(){this.loading=!0,this.firstSearchDone=!0,this.usersService.getRichUsersWithoutVoWithAttributes(this.attributes).subscribe(t=>{this.users=t,this.loading=!1},()=>this.loading=!1)}}return t.id="AdminUsersComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(n.Fv),c.Y36(r.d6),c.Y36(s.dB))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:18,vars:17,consts:[[3,"keyup"],[1,"page-subtitle"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["mat-flat-button","","color","primary",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","displayedColumns","users","page",4,"ngIf"],[3,"alert_type",4,"ngIf"],[3,"pageSize","displayedColumns","users","page"],[3,"alert_type"]],template:function(t,e){1&t&&(c.TgZ(0,"div",0),c.NdJ("keyup",function(t){return e.onKeyInput(t)}),c.TgZ(1,"h1",1),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"mat-form-field",2),c._UZ(5,"input",3),c.ALo(6,"translate"),c.TgZ(7,"mat-error"),c._uU(8),c.ALo(9,"translate"),c.qZA(),c.qZA(),c.TgZ(10,"button",4),c.NdJ("click",function(){return e.onSearchByString()}),c.TgZ(11,"mat-icon"),c._uU(12,"search"),c.qZA(),c.qZA(),c.TgZ(13,"button",5),c.NdJ("click",function(){return e.findUsersWithoutVO()}),c._uU(14),c.ALo(15,"translate"),c.qZA(),c.YNc(16,w,1,0,"mat-spinner",6),c.YNc(17,T,4,3,"div",7),c.qZA()),2&t&&(c.xp6(2),c.Oqu(c.lcZ(3,9,"ADMIN.USERS.TITLE")),c.xp6(3),c.s9C("placeholder",c.lcZ(6,11,"ADMIN.USERS.SEARCH_PLACEHOLDER")),c.Q6J("formControl",e.searchControl),c.xp6(3),c.hij(" ",c.lcZ(9,13,"ADMIN.USERS.EMPTY_SEARCH")," "),c.xp6(2),c.Q6J("disabled",e.loading),c.xp6(3),c.Q6J("disabled",e.loading),c.xp6(1),c.hij(" ",c.lcZ(15,15,"ADMIN.USERS.USERS_WITHOUT_VO")," "),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[u.KE,l.Nt,a.Fj,a.JJ,a.oH,u.TO,h.lW,d.Hw,p.O5,g.$g,f.C,m.w],pipes:[b.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),t})()},61601:function(t,e,i){"use strict";i.d(e,{y:function(){return T}});var n=i(88426),s=i(38289),o=i(29063),r=i(27613),a=i(31572),c=i(84608),u=i(15980),l=i(48160);let h=(()=>{class t{constructor(t){this.dialogRef=t}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(c.so))},t.\u0275cmp=a.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"div",2),a.TgZ(5,"p"),a._uU(6),a.ALo(7,"translate"),a.qZA(),a.qZA(),a.TgZ(8,"div",3),a.TgZ(9,"button",4),a.NdJ("click",function(){return e.onClose()}),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.TgZ(12,"button",5),a.NdJ("click",function(){return e.onReload()}),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),a.xp6(5),a.hij(" ",a.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),a.xp6(4),a.hij(" ",a.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),a.xp6(3),a.hij(" ",a.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},directives:[c.uh,c.xY,c.H8,u.lW],pipes:[l.X$],styles:[""]}),t})();var d=i(57629),p=i(43835);let g=(()=>{class t{constructor(t,e){this.router=t,this.routeReuseStrategy=e;const i=e;t.events.subscribe(t=>{t instanceof d.OD&&i.setLastNavigationType("popstate"===t.navigationTrigger?"back":"direct")})}init(){}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(d.F0),a.LFG(d.wN))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function f(t,e){if(1&t&&(a.TgZ(0,"div",3),a.TgZ(1,"mat-icon"),a._uU(2,"alert"),a.qZA(),a._uU(3),a.qZA()),2&t){const t=a.oxw();a.xp6(3),a.hij(" ",t.warningMessage,"\n")}}const m=function(t,e){return{top:t,background:e}},b=function(t,e){return{"margin-top":t,"min-height":e}},w=function(t){return{"border-color":t}},_=function(t){return{background:t}},y=function(t,e){return{"min-height":t,"background-color":e}};function A(t,e){if(1&t&&(a._UZ(0,"app-perun-nav-menu",4),a.TgZ(1,"mat-sidenav-container",5),a.TgZ(2,"mat-sidenav",6,7),a.TgZ(4,"perfect-scrollbar",8),a._UZ(5,"app-side-menu",9),a.qZA(),a.qZA(),a.TgZ(6,"mat-sidenav-content",10),a.TgZ(7,"div",11),a._UZ(8,"router-outlet"),a.qZA(),a.TgZ(9,"div",12),a._UZ(10,"perun-web-apps-footer"),a.qZA(),a.qZA(),a.qZA()),2&t){const t=a.MAs(3),e=a.oxw();a.Q6J("ngStyle",a.WLB(13,m,e.getNavMenuTop(),e.navBackgroundColor))("sideNav",t)("principal",e.principal),a.xp6(1),a.Q6J("ngStyle",a.WLB(16,b,e.getSideNavMarginTop(),e.getSideNavMinHeight())),a.xp6(1),a.Q6J("ngStyle",a.VKq(19,w,e.sideBarBorderColor))("mode",e.sidebarMode)("opened",!e.isMobile())("fixedInViewport",!0)("fixedTopGap",e.getTopGap()),a.xp6(2),a.Q6J("ngStyle",a.VKq(21,_,e.sideMenubackgroundColor))("scrollIndicators",!0),a.xp6(1),a.Q6J("sideNav",t),a.xp6(1),a.Q6J("ngStyle",a.WLB(23,y,e.getContentInnerMinHeight(),e.contentBackgroundColor))}}function v(t,e){1&t&&a._UZ(0,"perun-web-apps-login-screen-base",13),2&t&&a.Q6J("application","admin-gui")}let T=(()=>{class t{constructor(t,e,n,s,o,r){this.cache=t,this.store=e,this.http=n,this.dialog=s,this.router=o,this.initAuth=r,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=i(60306).i8,this.cache.init(),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side",this.lastScreenWidth=window.innerWidth}isMobile(){return window.innerWidth<=t.minWidth}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),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,s.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,p.h)(t=>t instanceof d.OD)).subscribe(t=>{this.updateInitAccessedPage(t)})}updateInitAccessedPage(t){t.url===sessionStorage.getItem("initPage")?("imperative"===t.navigationTrigger&&t.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===t.navigationTrigger&&(t.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(t.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const t=new o.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:t}).subscribe(t=>{const e=t.version;if(e)if(this.version&&"SNAPSHOT"!==e&&this.version!==e){const t=(0,r.kZ)();this.dialog.open(h,t)}else this.version=e},()=>{})}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"}getContentInnerMinHeight(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}}return t.minWidth=992,t.\u0275fac=function(e){return new(e||t)(a.Y36(g),a.Y36(n.d6),a.Y36(o.eN),a.Y36(c.uw),a.Y36(d.F0),a.Y36(n.v0))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-root"]],hostBindings:function(t,e){1&t&&a.NdJ("resize",function(t){return e.getScreenSize(t)},!1,a.Jf7)},decls:4,vars:4,consts:[["class","beta-warning",4,"ngIf"],[3,"displayWarning"],[3,"ngIf"],[1,"beta-warning"],["id","nav-menu",1,"mat-elevation-z3",3,"ngStyle","sideNav","principal"],[3,"ngStyle"],[3,"ngStyle","mode","opened","fixedInViewport","fixedTopGap"],["sidenav",""],[3,"ngStyle","scrollIndicators"],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[3,"application"]],template:function(t,e){1&t&&(a.YNc(0,f,4,1,"div",0),a._UZ(1,"perun-web-apps-notificator",1),a.YNc(2,A,11,26,"ng-template",2),a.YNc(3,v,1,1,"ng-template",2)),2&t&&(a.Q6J("ngIf",e.displayWarning),a.xp6(1),a.Q6J("displayWarning",e.displayWarning),a.xp6(1),a.Q6J("ngIf",!e.isLoginScreenShow),a.xp6(1),a.Q6J("ngIf",e.isLoginScreenShow))},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width:768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.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}"]}),t})()},48958:function(t,e,i){"use strict";i.d(e,{D:function(){return s}});var n=i(31572);let s=(()=>{class t{constructor(){this.accessItemsChange=new n.vpe,this.facilityItemsChange=new n.vpe,this.adminItemsChange=new n.vpe,this.userItemsChange=new n.vpe,this.resetChange=new n.vpe,this.homeItemsChange=new n.vpe}setHomeItems(t){this.homeItemsChange.emit(t)}setAccessMenuItems(t){this.accessItemsChange.emit(t)}setFacilityMenuItems(t){this.facilityItemsChange.emit(t)}setAdminItems(t){this.adminItemsChange.emit(t)}setUserItems(t){this.userItemsChange.emit(t)}reset(){this.resetChange.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},39124:function(t,e,i){"use strict";i.d(e,{o:function(){return T}});var n=i(33642),s=i(60611),o=i(88426),r=i(31572),a=i(57629),c=i(59403),u=i(66283),l=i(4786),h=i(71522),d=i(61511),p=i(19139),g=i(67806),f=i(78364),m=i(39571),b=i(48160);function w(t,e){if(1&t&&(r.TgZ(0,"mat-option",9),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t.id),r.xp6(1),r.hij(" ",t.name," ")}}function _(t,e){1&t&&r._UZ(0,"mat-spinner",10)}const y=function(){return["id","vo","name","description"]};function A(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"perun-web-apps-groups-list",11),r.NdJ("page",function(e){return r.CHM(t),r.oxw().pageChanged(e)}),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("pageSize",t.pageSize)("displayedColumns",r.DdM(6,y))("groups",t.groupsToShow)("groupsToDisable",t.groupsWithoutRouteAuth)("filter",t.filterValue)("disableMembers",!1)}}function v(t,e){1&t&&(r.TgZ(0,"app-alert",12),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"FACILITY_DETAIL.ALLOWED_GROUPS.NO_GROUPS_ALERT")," "))}let T=(()=>{class t{constructor(t,e,i,n){this.facilityManager=t,this.route=e,this.tableConfigService=i,this.authResolver=n,this.filterValue="",this.groups=[],this.selected="all",this.groupsToShow=this.groups,this.tableId=s.Aj,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.facilityId=t.facilityId,this.facilityManager.getAllowedVos(this.facilityId).subscribe(t=>{this.vos=t,this.refreshTable()})})}showGroup(){this.groupsToShow="all"!==this.selected?this.groups.filter(t=>t.voId===parseInt(this.selected,10)):this.groups}refreshTable(){this.loading=!0,this.groups=[],this.filterValue="",this.vos.forEach(t=>{this.facilityManager.getAllowedGroups(this.facilityId,t.id).subscribe(e=>{this.groups=this.groups.concat(e),this.groupsToShow=this.groups,this.setAuthRights(t,e),this.loading=!1})}),0===this.vos.length&&(this.loading=!1)}setAuthRights(t,e){e.forEach(e=>{this.authResolver.isAuthorized("getGroupById_int_policy",[t,e])||this.groupsWithoutRouteAuth.add(e.id)})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="FacilityAllowedGroupsComponent",t.\u0275fac=function(e){return new(e||t)(r.Y36(n.IQ),r.Y36(a.gz),r.Y36(s.dB),r.Y36(o.x4))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("router-component",e.true)},inputs:{groups:"groups"},decls:18,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"value","valueChange","selectionChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","displayedColumns","groups","groupsToDisable","filter","disableMembers","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"pageSize","displayedColumns","groups","groupsToDisable","filter","disableMembers","page"],["alert_type","warn"]],template:function(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"perun-web-apps-refresh-button",1),r.NdJ("refresh",function(){return e.refreshTable()}),r.qZA(),r.TgZ(5,"mat-form-field"),r.TgZ(6,"mat-label"),r._uU(7),r.ALo(8,"translate"),r.qZA(),r.TgZ(9,"mat-select",2),r.NdJ("valueChange",function(t){return e.selected=t})("selectionChange",function(){return e.showGroup()}),r.TgZ(10,"mat-option",3),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.YNc(13,w,2,2,"mat-option",4),r.qZA(),r.qZA(),r.TgZ(14,"perun-web-apps-immediate-filter",5),r.NdJ("filter",function(t){return e.applyFilter(t)}),r.qZA(),r.YNc(15,_,1,0,"mat-spinner",6),r.YNc(16,A,1,7,"perun-web-apps-groups-list",7),r.YNc(17,v,3,3,"app-alert",8),r.qZA()),2&t&&(r.xp6(2),r.Oqu(r.lcZ(3,9,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),r.xp6(5),r.Oqu(r.lcZ(8,11,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),r.xp6(2),r.Q6J("value",e.selected),r.xp6(2),r.Oqu(r.lcZ(12,13,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),r.xp6(2),r.Q6J("ngForOf",e.vos),r.xp6(1),r.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),r.xp6(1),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading&&0!==e.groupsToShow.length),r.xp6(1),r.Q6J("ngIf",0===e.groupsToShow.length&&!e.loading))},directives:[c.t,u.KE,u.hX,l.gD,h.ey,d.sg,p.L,d.O5,g.$g,f.W,m.w],pipes:[b.X$],styles:[""]}),t})()},64467:function(t,e,i){"use strict";i.d(e,{f:function(){return I}});var n=i(4230),s=i(95909),o=i(33642),r=i(16073),a=i(84608),c=i(88426),u=i(31572),l=i(48160),h=i(61511),d=i(15980),p=i(67806),g=i(19386),f=i(66283),m=i(80340);function b(t,e){1&t&&u._UZ(0,"mat-spinner",5)}function w(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div",6),u.TgZ(1,"perun-web-apps-vo-search-select",7),u.NdJ("voSelected",function(e){return u.CHM(t),u.oxw().selectedVo=e}),u.qZA(),u.TgZ(2,"mat-form-field"),u._UZ(3,"input",8),u.ALo(4,"translate"),u.TgZ(5,"mat-error"),u._uU(6),u.ALo(7,"translate"),u.qZA(),u.qZA(),u.TgZ(8,"mat-form-field"),u._UZ(9,"input",8),u.ALo(10,"translate"),u.TgZ(11,"mat-error"),u._uU(12),u.ALo(13,"translate"),u.qZA(),u.qZA(),u.qZA()}if(2&t){const t=u.oxw();u.xp6(1),u.Q6J("vos",t.vos),u.xp6(2),u.s9C("placeholder",u.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),u.Q6J("formControl",t.nameCtrl),u.xp6(3),u.hij(" ",u.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),u.xp6(3),u.s9C("placeholder",u.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),u.Q6J("formControl",t.descriptionCtrl),u.xp6(3),u.hij(" ",u.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let _=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.notificator=i,this.voService=n,this.translate=s,this.resourcesManager=o,this.vos=[],this.selectedVo=null,s.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(t=>{this.vos=t,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new r.NI(null,[r.kI.required,r.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new r.NI(null,[r.kI.required,r.kI.pattern(".*[\\S]+.*")])}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 t.\u0275fac=function(e){return new(e||t)(u.Y36(a.so),u.Y36(a.WI),u.Y36(c.V6),u.Y36(o.YF),u.Y36(l.sK),u.Y36(o.xk))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-create-resource-dialog"]],decls:10,vars:12,consts:[["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","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"long-input",3,"vos","voSelected"],["matInput","","required","",3,"placeholder","formControl"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.YNc(1,b,1,0,"mat-spinner",0),u.YNc(2,w,14,15,"div",1),u.TgZ(3,"div",2),u.TgZ(4,"button",3),u.NdJ("click",function(){return e.onCancel()}),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"button",4),u.NdJ("click",function(){return e.onSubmit()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.qZA(),u.qZA()),2&t&&(u.Tol(e.theme),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(3),u.Oqu(u.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")),u.xp6(2),u.Q6J("disabled",e.nameCtrl.invalid||e.descriptionCtrl.invalid||null===e.selectedVo||e.loading),u.xp6(1),u.Oqu(u.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")))},directives:[h.O5,a.H8,d.lW,p.$g,a.xY,g.M,f.KE,m.Nt,r.Fj,r.Q7,r.JJ,r.oH,f.TO],pipes:[l.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),t})();var y=i(60611),A=i(27613),v=i(57629),T=i(59403),C=i(19139),S=i(88884);function E(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",7),u.NdJ("click",function(){return u.CHM(t),u.oxw().createResource()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function k(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",8),u.NdJ("click",function(){return u.CHM(t),u.oxw().removeResource()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&t){const t=u.oxw();u.Q6J("disabled",0===t.selected.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function x(t,e){1&t&&u._UZ(0,"mat-spinner",9)}function R(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-resources-list",10),u.NdJ("page",function(e){return u.CHM(t),u.oxw().pageChanged(e)}),u.qZA()}if(2&t){const t=u.oxw();u.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("resources",t.resources)("selection",t.selected)("disableRouting",!t.routeAuth)("displayedColumns",t.displayedColumns)}}let I=(()=>{class t{constructor(t,e,i,s,o){this.dialog=t,this.facilitiesManager=e,this.tableConfigService=i,this.route=s,this.authResolver=o,this.resources=[],this.selected=new n.Ov(!0,[]),this.filterValue="",this.tableId=y.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.facilitiesManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t,this.refreshTable()})})}removeResource(){const t=(0,A.kZ)();t.width="450px",t.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(s.f,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(t=>{this.resources=t,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(t){this.filterValue=t}createResource(){const t=(0,A.kZ)();t.width="1350px",t.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(_,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="FacilityResourcesComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(a.uw),u.Y36(o.IQ),u.Y36(y.dB),u.Y36(v.gz),u.Y36(c.x4))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.true)},decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",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,"pageSize","filterValue","resources","selection","disableRouting","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","selection","disableRouting","displayedColumns","page"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.YNc(5,E,3,3,"button",2),u.YNc(6,k,3,4,"button",3),u.TgZ(7,"perun-web-apps-immediate-filter",4),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(8,x,1,0,"mat-spinner",5),u.YNc(9,R,1,6,"perun-web-apps-resources-list",6),u.qZA()),2&t&&(u.xp6(2),u.Oqu(u.lcZ(3,6,"FACILITY_DETAIL.RESOURCES.TITLE")),u.xp6(3),u.Q6J("ngIf",!e.loading&&e.addAuth),u.xp6(1),u.Q6J("ngIf",!e.loading&&e.removeAuth),u.xp6(1),u.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[T.t,h.O5,C.L,d.lW,p.$g,S.C],pipes:[l.X$],styles:[""]}),t})()},73916:function(t,e,i){"use strict";i.d(e,{P:function(){return z}});var n=i(33642),s=i(27613),o=i(60611),r=i(4230),a=i(84608),c=i(88426),u=i(16073),l=i(31572),h=i(48160),d=i(61511),p=i(15980),g=i(67806),f=i(66283),m=i(80340),b=i(4786),w=i(71522);function _(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function y(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"mat-option",13),l.NdJ("click",function(){const e=l.CHM(t).$implicit;return l.oxw(2).srcFacility=e}),l._uU(1),l.qZA()}if(2&t){const t=e.$implicit;l.Q6J("value",t),l.xp6(1),l.hij(" ",t.name," ")}}function A(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",7),l.TgZ(1,"mat-form-field"),l._UZ(2,"input",8),l.ALo(3,"translate"),l.TgZ(4,"mat-error"),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.qZA(),l.TgZ(7,"mat-form-field"),l._UZ(8,"input",9),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"mat-form-field"),l.TgZ(11,"mat-select",10),l.ALo(12,"translate"),l.TgZ(13,"mat-option",11),l.NdJ("click",function(){return l.CHM(t),l.oxw().srcFacility=null}),l._uU(14),l.ALo(15,"translate"),l.qZA(),l.YNc(16,y,2,2,"mat-option",12),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(2),l.s9C("placeholder",l.lcZ(3,8,"DIALOGS.CREATE_FACILITY.NAME")),l.Q6J("formControl",t.nameControl),l.xp6(3),l.Oqu(l.lcZ(6,10,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),l.xp6(3),l.s9C("placeholder",l.lcZ(9,12,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),l.Q6J("formControl",t.descControl),l.xp6(3),l.s9C("placeholder",l.lcZ(12,14,"DIALOGS.CREATE_FACILITY.AS_COPY")),l.xp6(3),l.hij(" ",l.lcZ(15,16,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),l.xp6(2),l.Q6J("ngForOf",t.facilities)}}let v=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=n,this.translate=s,this.nameControl=new u.NI("",[u.kI.required]),this.descControl=new u.NI(""),this.srcFacility=null,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(t=>{this.facilities=t,this.loading=!1},()=>this.loading=!1)}copyFacilitySettings(t){this.facilitiesManager.copyAttributes(this.srcFacility.id,t).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,t).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,t).subscribe(()=>{this.handleSuccess()},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}onCreate(){this.loading=!0,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe(t=>{null!==this.srcFacility?this.copyFacilitySettings(t.id):this.handleSuccess()})}handleSuccess(){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(a.so),l.Y36(a.WI),l.Y36(n.IQ),l.Y36(c.V6),l.Y36(h.sK))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-create-facility-dialog"]],decls:13,vars:15,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"],["mat-flat-button","","color","accent",1,"ml2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"],["disableOptionCentering","true",3,"placeholder"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,_,1,0,"mat-spinner",1),l.YNc(5,A,17,18,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onCreate()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,9,"DIALOGS.CREATE_FACILITY.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.Oqu(l.lcZ(9,11,"DIALOGS.CREATE_FACILITY.CANCEL")),l.xp6(2),l.Q6J("disabled",0===e.nameControl.value.trim().length||e.loading),l.xp6(1),l.Oqu(l.lcZ(12,13,"DIALOGS.CREATE_FACILITY.CREATE")))},directives:[d.O5,a.H8,p.lW,g.$g,a.xY,f.KE,m.Nt,u.Fj,u.Q7,u.JJ,u.oH,f.TO,b.gD,w.ey,d.sg],pipes:[h.X$],styles:[""]}),t})();var T=i(30570),C=i(48958),S=i(66297),E=i(43691),k=i(59403),x=i(19139),R=i(60007);function I(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-refresh-button",9),l.NdJ("refresh",function(){return l.CHM(t),l.oxw().refreshTable()}),l.qZA()}}function O(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",10),l.NdJ("click",function(){return l.CHM(t),l.oxw().onCreate()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"FACILITY_MANAGEMENT.CREATE")))}function P(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){return l.CHM(t),l.oxw().onDelete()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("disabled",0===t.selection.selected.length),l.xp6(1),l.Oqu(l.lcZ(2,2,"FACILITY_MANAGEMENT.DELETE"))}}function D(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",12),l.NdJ("filter",function(e){return l.CHM(t),l.oxw().applyFilter(e)}),l.qZA()}2&t&&l.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER")}function M(t,e){1&t&&l._UZ(0,"mat-spinner",13)}function L(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-facilities-list",14),l.NdJ("page",function(e){return l.CHM(t),l.oxw().pageChanged(e)}),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("pageSize",t.pageSize)("selection",t.selection)("filterValue",t.filterValue)("facilities",t.facilities)("recentIds",t.recentIds)}}const N=function(){return{color:"black"}};let z=(()=>{class t{constructor(t,e,i,n){this.facilityManager=t,this.sideMenuService=e,this.tableConfigService=i,this.dialog=n,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=o.xt,this.selection=new r.Ov(!1,[])}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(t=>{this.selection.clear(),this.facilities=t,this.recentIds=(0,s.vL)("facilities"),this.loading=!1})}onCreate(){const t=(0,s.kZ)();t.width="800px",t.data={theme:"facility-theme"},this.dialog.open(v,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.refreshTable())})}onDelete(){const t=(0,s.kZ)();t.width="500px",t.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(T.Y,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="FacilitySelectPageComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(n.IQ),l.Y36(C.D),l.Y36(o.dB),l.Y36(a.uw))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:12,vars:11,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",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","selection","filterValue","facilities","recentIds","page",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","selection","filterValue","facilities","recentIds","page"]],template:function(t,e){1&t&&(l.TgZ(0,"div",0),l._UZ(1,"perun-web-apps-back-button"),l.TgZ(2,"h1",1),l._UZ(3,"mat-icon",2),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.YNc(6,I,1,0,"perun-web-apps-refresh-button",3),l.YNc(7,O,3,3,"button",4),l.YNc(8,P,3,4,"button",5),l.YNc(9,D,1,2,"perun-web-apps-immediate-filter",6),l.YNc(10,M,1,0,"mat-spinner",7),l.YNc(11,L,1,5,"perun-web-apps-facilities-list",8),l.qZA()),2&t&&(l.xp6(3),l.Q6J("ngStyle",l.DdM(10,N)),l.xp6(1),l.hij(" ",l.lcZ(5,8,"FACILITY_MANAGEMENT.TITLE")," "),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[S.W,E.Hw,d.PC,d.O5,k.t,p.lW,x.L,g.$g,R.X],pipes:[h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t})()},92438:function(t,e,i){"use strict";i.d(e,{J:function(){return y}});var n=i(84608),s=i(88426),o=i(33642),r=i(27613),a=i(16073),c=i(31572),u=i(48160),l=i(66283),h=i(80340),d=i(4786),p=i(61511),g=i(15980),f=i(71522);let m=(()=>{class t{constructor(t){this.translateService=t,this.returnData=""}transform(t){switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe(t=>{this.returnData=t});break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.FROM_FEDERATION_HIDDEN").subscribe(t=>{this.returnData=t});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe(t=>{this.returnData=t});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe(t=>{this.returnData=t});break;case"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.FROM_FEDERATION_SHOW").subscribe(t=>{this.returnData=t});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe(t=>{this.returnData=t});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe(t=>{this.returnData=t});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe(t=>{this.returnData=t});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe(t=>{this.returnData=t});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe(t=>{this.returnData=t});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe(t=>{this.returnData=t});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe(t=>{this.returnData=t});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe(t=>{this.returnData=t});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe(t=>{this.returnData=t});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe(t=>{this.returnData=t});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe(t=>{this.returnData=t});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe(t=>{this.returnData=t});break;default:return t}return this.returnData}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(u.sK,16))},t.\u0275pipe=c.Yjl({name:"applicationFormWidgetDescription",type:t,pure:!0}),t})();var b=i(65050);function w(t,e){if(1&t&&(c.TgZ(0,"mat-option",9),c._uU(1),c.ALo(2,"applicationFormItemType"),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t),c.xp6(1),c.hij(" ",c.lcZ(2,2,t)," ")}}function _(t,e){if(1&t&&(c.TgZ(0,"mat-option",9),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t),c.xp6(1),c.hij(" ",t," ")}}let y=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.translateService=i,this.store=n,this.languages=this.store.get("supportedLanguages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","FROM_FEDERATION_HIDDEN","HTML_COMMENT","TEXTFIELD","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION"]}ngOnInit(){this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(t=>{this.nameCtrl=new a.NI("",[a.kI.required,a.kI.pattern(".*[\\S]+.*"),a.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(t);for(const e of this.data.applicationFormItems)this.items.push(e.shortname),e.type===o.Dy.EMBEDDEDGROUPAPPLICATION&&(this.widgets=this.widgets.filter(t=>t!==o.Dy.EMBEDDEDGROUPAPPLICATION));this.selectedItem=t})}cancel(){this.dialogRef.close(!1)}submit(){const t=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,t])}createApplicationItem(){const t=(0,r.dv)(this.languages);t.id=this.data.fakeId,t.shortname=this.nameCtrl.value,t.type=this.selectedWidget;for(let e=0;e{class t{constructor(t){this.guiAuthResolver=t,this.pageSize=10,this.page=new l.vpe,this.displayedColumns=["checkbox","status","fullName","voExtSource","email","logins","alreadyMember","local"],this.pageSizeOptions=c.f7,this.addAuth=!1}set matSort(t){this.sort=t,this.setDataSource()}getDataForColumn(t,e,i){var n,s;switch(e){case"status":return t.member&&null!==(n=t.member.status)&&void 0!==n?n:"";case"fullName":{const e=t.richUser?t.richUser:t.candidate;return e.lastName?e.lastName:null!==(s=e.firstName)&&void 0!==s?s:""}case"voExtSource":return t.richUser?(0,c.OV)(t.richUser):(0,c.v$)(t.candidate);case"email":return t.richUser||t.member?(0,c.kN)(t.richUser):i.getEmail(t);case"logins":return i.getLogins(t);case"alreadyMember":return i.getAlreadyMember(t);case"local":return t.richUser?"Local":"External identity";default:return t[e]}}getExportDataForColumn(t,e,i){var n;switch(e){case"status":return t.member&&null!==(n=t.member.status)&&void 0!==n?n:"";case"fullName":return(0,c.bD)(t.richUser?t.richUser:t.candidate);case"voExtSource":return t.richUser?(0,c.OV)(t.richUser):(0,c.v$)(t.candidate);case"email":return t.richUser||t.member?(0,c.kN)(t.richUser):i.getEmail(t);case"logins":return i.getLogins(t);case"alreadyMember":return i.getAlreadyMember(t);case"local":return t.richUser?"Local":"External identity";default:return t[e]}}exportData(t){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){null!=this.child&&this.child.paginator&&this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,c.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,c.pR)(t,e,this.getDataForColumn,this),this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.dataSource=new d.by(this.members),this.setDataSource()}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t)),this.setAddAuth()}getEmail(t){let e;if(t.richUser){for(const i of t.richUser.userAttributes)if(i.namespace+":"+i.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){e=i;break}return null!=e&&null!=e.value&&"null"!==e.value.toString().toLowerCase()?e.value.toString().replace(","," "):""}return(0,c.Jc)(t.candidate)}getOrganization(t){return(0,c.v$)(t)}getLogins(t){if(t.richUser)return this.getLoginsForRichUser(t.richUser);{let e=this.getLoginsForCandidate(t.candidate);return null!=e&&""!==e||(e=t.candidate.userExtSource.login),e}}getLoginsForRichUser(t){let e="";for(const i of t.userAttributes)i.friendlyName.startsWith("login-namespace")&&null!=i.value&&(e.length>0&&(e+=", "),e+=i.friendlyName.substring(16)+": "+i.value);return e}getLoginsForCandidate(t){let e="";for(const i in t.attributes)Object.prototype.hasOwnProperty.call(t.attributes,i)&&-1!==i.indexOf("urn:perun:user:attribute-def:def:login-namespace:")&&null!=t.attributes[i]&&(e.length>0&&(e+=", "),e+=i.substring(49)+": "+t.attributes[i]);return e}getAlreadyMember(t){if("vo"===this.type){if(null!=t.member)return"Member of VO"}else{if(null!=t.member&&0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType)return"Member of Group";if(null!=t.member&&0!==t.member.sourceGroupId&&"INDIRECT"===t.member.membershipType)return"Indirect member of Group";if(null!=t.member)return"Member of VO"}return""}isCheckboxDisabled(t){return"vo"===this.type?null!=t.member:!!t.member&&0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType}setAddAuth(){void 0!==this.group&&0!==this.selection.selected.length&&(this.addAuth=!!this.selection.selected[0].member||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.group]))}itemSelectionToggle(t){this.selection.toggle(t),this.setAddAuth()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(s.x4))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-members-candidates-list"]],viewQuery:function(t,e){if(1&t&&(l.Gf(h.YE,5),l.Gf(c.l9,7)),2&t){let t;l.iGM(t=l.CRH())&&(e.matSort=t.first),l.iGM(t=l.CRH())&&(e.child=t.first)}},inputs:{members:"members",selection:"selection",type:"type",pageSize:"pageSize",group:"group"},outputs:{page:"page"},features:[l.TTD],decls:29,vars:6,consts:[[1,"card","mt-2"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"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"]],template:function(t,e){1&t&&(l.TgZ(0,"div",0),l.TgZ(1,"perun-web-apps-table-wrapper",1),l.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),l.TgZ(2,"table",2),l.ynx(3,3),l.YNc(4,v,1,0,"th",4),l.YNc(5,T,2,2,"td",5),l.BQk(),l.ynx(6,6),l.YNc(7,C,3,3,"th",7),l.YNc(8,E,2,1,"td",8),l.BQk(),l.ynx(9,9),l.YNc(10,k,3,3,"th",7),l.YNc(11,x,4,5,"td",8),l.BQk(),l.ynx(12,10),l.YNc(13,R,3,3,"th",7),l.YNc(14,I,3,3,"td",8),l.BQk(),l.ynx(15,11),l.YNc(16,O,3,3,"th",7),l.YNc(17,P,2,1,"td",8),l.BQk(),l.ynx(18,12),l.YNc(19,D,3,3,"th",7),l.YNc(20,M,2,1,"td",8),l.BQk(),l.ynx(21,13),l.YNc(22,L,3,3,"th",7),l.YNc(23,N,2,1,"td",8),l.BQk(),l.ynx(24,14),l.YNc(25,z,1,0,"th",7),l.YNc(26,F,2,1,"td",8),l.BQk(),l.YNc(27,Z,1,0,"tr",15),l.YNc(28,B,1,0,"tr",16),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.xp6(1),l.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),l.xp6(1),l.Q6J("dataSource",e.dataSource),l.xp6(25),l.Q6J("matHeaderRowDef",e.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",e.displayedColumns))},directives:[p.l,d.BZ,h.YE,d.w1,d.fO,d.Dz,d.as,d.nj,d.ge,d.ev,g.oG,h.nU,f.O5,m.gM,d.XQ,d.Gk],pipes:[b.X$,w.u,_.f,y.d,A.Z],styles:[""]}),t})();var U=i(16073),H=i(57629),j=i(66283),G=i(80340),Y=i(15980),V=i(67806),K=i(39571),J=i(8055);const $=["list"];function Q(t,e){1&t&&l._UZ(0,"mat-spinner",10)}function W(t,e){1&t&&(l.TgZ(0,"app-alert",14),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NO_USERS_FOUND")," "))}function X(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"app-members-candidates-list",15,16),l.NdJ("page",function(e){return l.CHM(t),l.oxw(3).pageChanged(e)}),l.qZA()}if(2&t){const t=l.oxw(3);l.Q6J("group",t.data.group)("pageSize",t.pageSize)("selection",t.selection)("members",t.members)("type",t.data.type)}}function tt(t,e){if(1&t&&(l.TgZ(0,"div",11),l.YNc(1,W,3,3,"app-alert",12),l.YNc(2,X,2,5,"app-members-candidates-list",13),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Q6J("ngIf",0===t.members.length&&t.firstSearchDone),l.xp6(1),l.Q6J("ngIf",0!==t.members.length)}}function et(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",4),l.TgZ(1,"mat-form-field",5),l.TgZ(2,"label"),l.TgZ(3,"input",6),l.NdJ("keyup.enter",function(){return l.CHM(t),l.oxw().onSearchByString()}),l.ALo(4,"translate"),l.qZA(),l.qZA(),l.TgZ(5,"mat-error"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.qZA(),l.TgZ(8,"button",7),l.NdJ("click",function(){return l.CHM(t),l.oxw().onSearchByString()}),l._uU(9),l.ALo(10,"translate"),l.qZA(),l.TgZ(11,"div",8),l.YNc(12,Q,1,0,"mat-spinner",2),l.qZA(),l.YNc(13,tt,3,2,"div",9),l.qZA()}if(2&t){const t=l.oxw();l.xp6(3),l.s9C("placeholder",l.lcZ(4,7,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),l.Q6J("formControl",t.searchCtrl),l.xp6(3),l.hij(" ",l.lcZ(7,9,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")," "),l.xp6(2),l.Q6J("disabled",t.loading),l.xp6(1),l.hij(" ",l.lcZ(10,11,"DIALOGS.ADD_MEMBERS.SEARCH")," "),l.xp6(3),l.Q6J("ngIf",t.loading),l.xp6(1),l.Q6J("ngIf",!!t.members&&!t.loading)}}function it(t,e){1&t&&l._UZ(0,"mat-spinner",10)}function nt(t,e){if(1&t&&(l.TgZ(0,"button",24),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t){l.oxw();const t=l.MAs(8),e=l.oxw();l.Q6J("disabled",0===e.selection.selected.length||e.loading)("matMenuTriggerFor",t),l.xp6(1),l.hij(" ",l.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function st(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",25),l.NdJ("click",function(){const e=l.CHM(t).$implicit;return l.oxw(2).onInvite(e)}),l._uU(1),l.ALo(2,"translate"),l.ALo(3,"uppercase"),l.qZA()}if(2&t){const t=e.$implicit;l.xp6(1),l.hij(" ",l.lcZ(2,1,l.lcZ(3,3,"SHARED_LIB.LANGUAGES."+t))," ")}}function ot(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",17),l.TgZ(1,"button",18),l.NdJ("click",function(){return l.CHM(t),l.oxw().onCancel()}),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"span",19),l.ALo(5,"translate"),l.YNc(6,nt,3,5,"button",20),l.TgZ(7,"mat-menu",null,21),l.YNc(9,st,4,5,"button",22),l.qZA(),l.qZA(),l.TgZ(10,"button",23),l.NdJ("click",function(){return l.CHM(t),l.oxw().onAdd()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,7,"DIALOGS.ADD_MEMBERS.CANCEL")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(5,9,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),l.Q6J("matTooltipDisabled",0===t.selection.selected.length||"group"!==t.data.type||void 0!==t.list&&t.list.addAuth),l.xp6(2),l.Q6J("ngIf","group"!==t.data.type||"group"===t.data.type&&t.inviteAuth),l.xp6(3),l.Q6J("ngForOf",t.languages),l.xp6(1),l.Q6J("disabled",0===t.selection.selected.length||t.loading||"group"===t.data.type&&void 0!==t.list&&!t.list.addAuth),l.xp6(1),l.hij(" ",l.lcZ(12,11,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}let rt=(()=>{class t{constructor(t,e,i,n,s,r,a,c,l,h,d,p,g){this.dialogRef=t,this.data=e,this.membersManagerService=i,this.groupService=n,this.voService=s,this.registrarManager=r,this.translate=a,this.notificator=c,this.route=l,this.tableConfigService=h,this.router=d,this.guiAuthResolver=p,this.store=g,this.languages=["en"],this.selection=new o.Ov(!1,[]),this.members=[],this.firstSearchDone=!1,this.tableId=u.tY,this.inviteAuth=!1,a.get("DIALOGS.ADD_MEMBERS.TITLE").subscribe(t=>this.title=t)}onCancel(){this.dialogRef.close(!1)}onAdd(){this.processing=!0;const t=this.selection.selected[0];"vo"===this.data.type?t.richUser?this.addUserToVo(t):this.addCandidateToVo(t):"group"===this.data.type&&(t.member?this.addMemberToGroup(t):t.richUser?this.addUserToGroup(t):t.candidate&&this.addCandidateToGroup(t))}onInvite(t){this.processing=!0,this.selection.selected[0].richUser?"vo"===this.data.type?this.registrarManager.sendInvitationToExistingUser(this.selection.selected[0].richUser.id,this.data.entityId).subscribe(()=>{this.onInviteSuccess()},()=>this.onError()):"group"===this.data.type&&this.registrarManager.sendInvitationGroupToExistingUser(this.selection.selected[0].richUser.id,this.data.voId,this.data.group.id).subscribe(()=>{this.onInviteSuccess()},()=>this.onError()):"vo"===this.data.type?this.registrarManager.sendInvitation((0,c.Jc)(this.selection.selected[0].candidate),t,this.data.voId).subscribe(()=>{this.onInviteSuccess()},()=>this.onError()):"group"===this.data.type&&this.registrarManager.sendInvitationForGroup((0,c.Jc)(this.selection.selected[0].candidate),t,this.data.voId,this.data.group.id).subscribe(()=>{this.onInviteSuccess()},()=>this.onError())}onSearchByString(){this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.loading=!0,this.selection.clear(),"vo"===this.data.type?this.voService.getCompleteCandidatesForVo(this.data.entityId,[a.r.USER_DEF_ORGANIZATION,a.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(t=>{this.members=t,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1):this.voService.getCompleteCandidatesForGroup(this.data.entityId,[a.r.USER_DEF_ORGANIZATION,a.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(t=>{this.members=t,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1))}ngOnInit(){this.languages=this.store.get("supportedLanguages"),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,"group"===this.data.type&&(this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group])),this.searchCtrl=new U.NI("",[U.kI.required,U.kI.pattern(".*[\\S]+.*")])}addUserToVo(t){this.membersManagerService.createMemberForUser({vo:this.data.entityId,user:t.richUser.id}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}addCandidateToVo(t){this.membersManagerService.createMemberForCandidate({vo:this.data.entityId,candidate:this.createCandidate(t.candidate)}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}addUserToGroup(t){this.membersManagerService.createMemberForUser({vo:this.data.voId,user:t.richUser.id,groups:[{id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId}]}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}addMemberToGroup(t){this.groupService.addMembers(this.data.entityId,[t.member.id]).subscribe(()=>{this.onAddSuccess()},()=>this.onError())}addCandidateToGroup(t){const e={id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId};this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.createCandidate(t.candidate),groups:[e]}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}onAddSuccess(){this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}onError(){this.selection.clear(),this.processing=!1}onInviteSuccess(){this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}onValidateSuccess(){this.dialogRef.close(!0)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}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}}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(n.so),l.Y36(n.WI),l.Y36(r.uq),l.Y36(r.ff),l.Y36(r.YF),l.Y36(r.tk),l.Y36(b.sK),l.Y36(s.V6),l.Y36(H.gz),l.Y36(u.dB),l.Y36(H.F0),l.Y36(s.x4),l.Y36(s.d6))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-add-member-dialog"]],viewQuery:function(t,e){if(1&t&&l.Gf($,5),2&t){let t;l.iGM(t=l.CRH())&&(e.list=t.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"ml-auto",3,"disabled","click"],[1,"no-bounce-scrollbar"],["class","mt-3",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"group","pageSize","selection","members","type","page",4,"ngIf"],["alert_type","warn"],[3,"group","pageSize","selection","members","type","page"],["list",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["class","ml-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,et,14,13,"div",1),l.YNc(5,it,1,0,"mat-spinner",2),l.YNc(6,ot,13,13,"div",3),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,7,"DIALOGS.ADD_MEMBERS.TITLE")),l.xp6(2),l.Q6J("ngIf",!e.processing),l.xp6(1),l.Q6J("ngIf",e.processing),l.xp6(1),l.Q6J("ngIf",!e.processing))},directives:[n.uh,f.O5,n.xY,j.KE,G.Nt,U.Fj,U.JJ,U.oH,j.TO,Y.lW,V.$g,K.w,q,n.H8,m.gM,J.VK,f.sg,J.p6,J.OP],pipes:[b.X$,f.gd],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}"]}),t})()},68570:function(t,e,i){"use strict";i.d(e,{W:function(){return g}});var n=i(84608),s=i(33642),o=i(88426),r=i(31572),a=i(48160),c=i(61511),u=i(19386),l=i(37665),h=i(15980),d=i(67806);function p(t,e){1&t&&r._UZ(0,"mat-spinner",9)}let g=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.dialogRef=t,this.voService=e,this.groupService=i,this.translateService=n,this.registrarManager=s,this.notificatorService=o,this.apiRequest=r,this.data=a,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=t=>t.name,n.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(t=>this.successMessage=t),n.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(t=>this.privilegeMessage=t),n.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(t=>this.noFormMessage=t)}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(t=>{this.vos=t.sort((t,e)=>t.name>e.name?1:t.namethis.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(t){this.selectedVo=t,this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(t=>{this.groups=t}):this.groups=[],this.selectedGroup=null}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(s.YF),r.Y36(s.ff),r.Y36(a.sK),r.Y36(s.tk),r.Y36(o.V6),r.Y36(o.F5),r.Y36(n.WI))},t.\u0275cmp=r.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,p,1,0,"mat-spinner",1),r.TgZ(5,"div",2),r.TgZ(6,"div",3),r._uU(7),r.ALo(8,"translate"),r.qZA(),r._uU(9),r.ALo(10,"translate"),r.TgZ(11,"perun-web-apps-vo-search-select",4),r.NdJ("voSelected",function(t){return e.voSelected(t)}),r.qZA(),r._uU(12),r.ALo(13,"translate"),r.TgZ(14,"perun-web-apps-group-search-select",5),r.NdJ("groupSelected",function(t){return e.selectedGroup=t}),r.qZA(),r.qZA(),r.TgZ(15,"div",6),r.TgZ(16,"button",7),r.NdJ("click",function(){return e.cancel()}),r._uU(17),r.ALo(18,"translate"),r.qZA(),r.TgZ(19,"button",8),r.NdJ("click",function(){return e.submit()}),r._uU(20),r.ALo(21,"translate"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Tol(e.theme),r.xp6(2),r.Oqu(r.lcZ(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("hidden",e.loading),r.xp6(2),r.Oqu(r.lcZ(8,17,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")),r.xp6(2),r.hij(" ",r.lcZ(10,19,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),r.xp6(2),r.Q6J("vos",e.vos),r.xp6(1),r.hij(" ",r.lcZ(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),r.xp6(2),r.Q6J("groups",e.groups)("disableAutoSelect",!0),r.xp6(3),r.hij(" ",r.lcZ(18,23,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),r.xp6(2),r.Q6J("disabled",!e.selectedVo&&!e.selectedGroup||e.loading),r.xp6(1),r.hij(" ",r.lcZ(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},directives:[n.uh,c.O5,n.xY,u.M,l.h,n.H8,h.lW,d.$g],pipes:[a.X$],styles:[""]}),t})()},88419:function(t,e,i){"use strict";i.d(e,{y:function(){return y}});var n=i(84608),s=i(88426),o=i(33642),r=i(16073),a=i(31572),c=i(48160),u=i(61511),l=i(67806),h=i(66283),d=i(80340),p=i(15980),g=i(29236),f=i(37665);function m(t,e){1&t&&a._UZ(0,"mat-spinner",3)}function b(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-checkbox",13),a.NdJ("click",function(){return a.CHM(t),a.oxw(2).loadVoGroups()})("ngModelChange",function(e){return a.CHM(t),a.oxw(2).asSubgroup=e}),a._uU(1),a.ALo(2,"translate"),a.qZA()}if(2&t){const t=a.oxw(2);a.Q6J("labelPosition","before")("ngModel",t.asSubgroup),a.xp6(1),a.hij(" ",a.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function w(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"perun-web-apps-group-search-select",14),a.NdJ("groupSelected",function(e){return a.CHM(t),a.oxw(2).selectedParent=e}),a.qZA()}if(2&t){const t=a.oxw(2);a.Q6J("disableAutoSelect",!0)("groups",t.voGroups)}}function _(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"div",4),a.TgZ(2,"mat-form-field"),a.TgZ(3,"label",5),a._UZ(4,"input",6),a.ALo(5,"translate"),a.qZA(),a.TgZ(6,"mat-error"),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.qZA(),a.TgZ(9,"mat-form-field",7),a.TgZ(10,"label",5),a._UZ(11,"textarea",6),a.ALo(12,"translate"),a.qZA(),a.TgZ(13,"mat-error"),a._uU(14),a.ALo(15,"translate"),a.qZA(),a.qZA(),a.YNc(16,b,3,5,"mat-checkbox",8),a.YNc(17,w,1,2,"perun-web-apps-group-search-select",9),a.qZA(),a.TgZ(18,"div",10),a.TgZ(19,"button",11),a.NdJ("click",function(){return a.CHM(t),a.oxw().onCancel()}),a._uU(20),a.ALo(21,"translate"),a.qZA(),a.TgZ(22,"button",12),a.NdJ("click",function(){return a.CHM(t),a.oxw().onSubmit()}),a._uU(23),a.ALo(24,"translate"),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(4),a.s9C("placeholder",a.lcZ(5,11,"DIALOGS.CREATE_GROUP.NAME")),a.Q6J("formControl",t.nameControl),a.xp6(3),a.hij(" ",t.invalidNameMessage.length?t.invalidNameMessage:a.lcZ(8,13,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),a.xp6(4),a.s9C("placeholder",a.lcZ(12,15,"DIALOGS.CREATE_GROUP.DESCRIPTION")),a.Q6J("formControl",t.descriptionControl),a.xp6(3),a.hij(" ",a.lcZ(15,17,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),a.xp6(2),a.Q6J("ngIf",t.isNotSubGroup),a.xp6(1),a.Q6J("ngIf",t.asSubgroup),a.xp6(3),a.hij(" ",a.lcZ(21,19,"DIALOGS.CREATE_GROUP.CANCEL")," "),a.xp6(2),a.Q6J("disabled",t.nameControl.invalid||t.descriptionControl.invalid||t.asSubgroup&&null===t.selectedParent||t.loading),a.xp6(1),a.hij(" ",a.lcZ(24,21,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let y=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.groupService=i,this.translate=n,this.notificator=s,this.store=o,this.asSubgroup=!1,this.invalidNameMessage=this.store.get("groupNameErrorMessage"),this.secondaryRegex=this.store.get("groupNameSecondaryRegex"),this.voGroups=[],this.nameFunction=t=>t.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?n.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(t=>this.title=t):n.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(t=>{this.title=t+this.data.parentGroup.name}),n.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(t=>this.successMessage=t),n.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(t=>this.successSubGroupMessage=t)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new r.NI("",[r.kI.required,r.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),r.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new r.NI("",[r.kI.required,r.kI.maxLength(129)]),this.selectedParent=null}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.isNotSubGroup&&!this.asSubgroup?this.groupService.createGroupWithVoNameDescription(this.data.voId,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1):this.groupService.createGroupWithParentGroupNameDescription(this.asSubgroup?this.selectedParent.id:this.data.parentGroup.id,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successSubGroupMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}loadVoGroups(){this.groupService.getAllGroups(this.data.voId).subscribe(t=>{this.voGroups=t.filter(t=>"members"!==t.name)})}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.ff),a.Y36(c.sK),a.Y36(s.V6),a.Y36(s.d6))},t.\u0275cmp=a.Xpm({type:t,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","","required","",3,"formControl","placeholder"],[1,"mt-4"],[3,"labelPosition","ngModel","click","ngModelChange",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",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,"labelPosition","ngModel","click","ngModelChange"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div"),a.YNc(3,m,1,0,"mat-spinner",1),a.YNc(4,_,25,23,"div",2),a.qZA()),2&t&&(a.xp6(1),a.Oqu(e.title),a.xp6(1),a.Tol(e.theme),a.xp6(1),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,u.O5,l.$g,n.xY,h.KE,d.Nt,r.Fj,r.Q7,r.JJ,r.oH,h.TO,n.H8,p.lW,g.oG,r.On,f.h],pipes:[c.X$],styles:[""]}),t})()},20247:function(t,e,i){"use strict";i.d(e,{e:function(){return I}});var n=i(31572),s=i(16073),o=i(67033),r=i(61511),a=i(84608),c=i(15980),u=i(43691),l=i(85250),h=i(39571),d=i(66283),p=i(80340),g=i(48160);function f(t,e){if(1&t&&(n.TgZ(0,"div",14),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"translate"),n.TgZ(4,"span",15),n._uU(5),n.ALo(6,"translate"),n.qZA(),n._uU(7),n.ALo(8,"translate"),n.qZA()),2&t){const t=n.oxw(2);n.xp6(1),n.lnq(" ",n.lcZ(2,6,"DIALOGS.DELETE_ENTITY.BASIC")," ",n.lcZ(3,8,"DIALOGS.DELETE_ENTITY.ONLY")," ",t.entityType," "),n.xp6(4),n.Oqu(n.lcZ(6,10,"DIALOGS.DELETE_ENTITY.OR")),n.xp6(2),n.AsE(" ",t.entityType," ",n.lcZ(8,12,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function m(t,e){if(1&t&&(n.TgZ(0,"div",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t){const t=n.oxw(2);n.xp6(1),n.AsE(" ",n.lcZ(2,2,"DIALOGS.DELETE_ENTITY.BASIC")," ",t.entityType," ? ")}}function b(t,e){1&t&&n._UZ(0,"th",16)}function w(t,e){if(1&t&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",t.name," ")}}function _(t,e){1&t&&n._UZ(0,"tr",18)}function y(t,e){1&t&&n._UZ(0,"tr",19)}function A(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",12),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).force=!0}),n.TgZ(1,"mat-icon"),n._uU(2,"warning"),n.qZA(),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"translate"),n.qZA()}2&t&&(n.xp6(3),n.AsE(" ",n.lcZ(4,2,"DIALOGS.DELETE_ENTITY.DELETE")," ",n.lcZ(5,4,"DIALOGS.DELETE_ENTITY.RELATIONS")," "))}const v=function(){return["name"]};function T(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div"),n.TgZ(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",2),n.YNc(5,f,9,14,"div",3),n.YNc(6,m,3,4,"div",3),n.TgZ(7,"table",4),n.ynx(8,5),n.YNc(9,b,1,0,"th",6),n.YNc(10,w,2,1,"td",7),n.BQk(),n.YNc(11,_,1,0,"tr",8),n.YNc(12,y,1,0,"tr",9),n.qZA(),n.qZA(),n.TgZ(13,"div",10),n.TgZ(14,"button",11),n.NdJ("click",function(){return n.CHM(t),n.oxw().onCancel()}),n._uU(15),n.ALo(16,"translate"),n.qZA(),n.TgZ(17,"button",12),n.NdJ("click",function(){return n.CHM(t),n.oxw().onDelete()}),n._uU(18),n.ALo(19,"translate"),n.qZA(),n.YNc(20,A,6,6,"button",13),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(2),n.AsE("",n.lcZ(3,10,"DIALOGS.DELETE_ENTITY.DELETE")," ",t.entityType,""),n.xp6(3),n.Q6J("ngIf",!t.disableForce),n.xp6(1),n.Q6J("ngIf",t.disableForce),n.xp6(1),n.Q6J("dataSource",t.entityNames),n.xp6(4),n.Q6J("matHeaderRowDef",n.DdM(16,v)),n.xp6(1),n.Q6J("matRowDefColumns",n.DdM(17,v)),n.xp6(3),n.hij(" ",n.lcZ(16,12,"DIALOGS.DELETE_ENTITY.CANCEL")," "),n.xp6(3),n.hij(" ",n.lcZ(19,14,"DIALOGS.DELETE_ENTITY.DELETE")," "),n.xp6(2),n.Q6J("ngIf",!t.disableForce)}}function C(t,e){if(1&t&&(n.TgZ(0,"mat-list-item"),n.TgZ(1,"span"),n.TgZ(2,"mat-icon",24),n._uU(3,"fiber_manual_record"),n.qZA(),n._uU(4),n.qZA(),n.qZA()),2&t){const t=e.$implicit;n.xp6(4),n.hij(" ",t," ")}}function S(t,e){1&t&&n._UZ(0,"th",16)}function E(t,e){if(1&t&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",t.name," ")}}function k(t,e){1&t&&n._UZ(0,"tr",18)}function x(t,e){1&t&&n._UZ(0,"tr",19)}function R(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div"),n.TgZ(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"div",2),n.TgZ(6,"div",14),n._uU(7),n.ALo(8,"translate"),n.TgZ(9,"mat-list"),n.YNc(10,C,5,1,"mat-list-item",20),n.qZA(),n.TgZ(11,"app-alert",21),n._uU(12),n.ALo(13,"translate"),n.qZA(),n.TgZ(14,"table",4),n.ynx(15,5),n.YNc(16,S,1,0,"th",6),n.YNc(17,E,2,1,"td",7),n.BQk(),n.YNc(18,k,1,0,"tr",8),n.YNc(19,x,1,0,"tr",9),n.qZA(),n.qZA(),n.TgZ(20,"mat-form-field"),n._UZ(21,"input",22),n.ALo(22,"translate"),n.qZA(),n.qZA(),n.TgZ(23,"div",10),n.TgZ(24,"button",11),n.NdJ("click",function(){return n.CHM(t),n.oxw().onCancel()}),n._uU(25),n.ALo(26,"translate"),n.qZA(),n.TgZ(27,"button",23),n.NdJ("click",function(){return n.CHM(t),n.oxw().onDelete()}),n.TgZ(28,"mat-icon"),n._uU(29,"warning"),n.qZA(),n._uU(30),n.ALo(31,"translate"),n.ALo(32,"translate"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(2),n.lnq("",n.lcZ(3,16,"DIALOGS.DELETE_ENTITY.DELETE")," ",t.entityType," ",n.lcZ(4,18,"DIALOGS.DELETE_ENTITY.RELATIONS"),""),n.xp6(5),n.hij(" ",n.lcZ(8,20,"DIALOGS.DELETE_ENTITY.WARN"),": "),n.xp6(3),n.Q6J("ngForOf",t.relations),n.xp6(2),n.AsE(" ",n.lcZ(13,22,"DIALOGS.DELETE_ENTITY.ASK")," ",t.entityType," ? "),n.xp6(2),n.Q6J("dataSource",t.entityNames),n.xp6(4),n.Q6J("matHeaderRowDef",n.DdM(32,v)),n.xp6(1),n.Q6J("matRowDefColumns",n.DdM(33,v)),n.xp6(2),n.s9C("placeholder",n.lcZ(22,24,"DIALOGS.DELETE_ENTITY.CONTROL")),n.Q6J("formControl",t.deleteControl),n.xp6(4),n.hij(" ",n.lcZ(26,26,"DIALOGS.DELETE_ENTITY.CANCEL")," "),n.xp6(2),n.Q6J("disabled",t.deleteControl.invalid),n.xp6(3),n.AsE(" ",n.lcZ(31,28,"DIALOGS.DELETE_ENTITY.DELETE")," ",n.lcZ(32,30,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}let I=(()=>{class t{constructor(){this.entityNames=new o.by,this.relations=[],this.disableForce=!1,this.deleted=new n.vpe,this.loading=!1,this.force=!1,this.deleteReg=/^DELETE$/,this.deleteControl=new s.NI("",[s.kI.required,s.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-delete-entity-dialog"]],inputs:{title:"title",entityNames:"entityNames",entityType:"entityType",relations:"relations",disableForce:"disableForce"},outputs:{deleted:"deleted"},decls:2,vars:2,consts:[[4,"ngIf"],["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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["class","ml-2","mat-flat-button","","color","warn",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",""],[4,"ngFor","ngForOf"],["alert_type","warn"],["matInput","",3,"formControl","placeholder"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"dot-icon"]],template:function(t,e){1&t&&(n.YNc(0,T,21,18,"div",0),n.YNc(1,R,33,34,"div",0)),2&t&&(n.Q6J("ngIf",!e.force),n.xp6(1),n.Q6J("ngIf",e.force))},directives:[r.O5,a.uh,a.xY,o.BZ,o.w1,o.fO,o.Dz,o.as,o.nj,a.H8,c.lW,o.ge,o.ev,o.XQ,o.Gk,u.Hw,l.i$,r.sg,h.w,d.KE,p.Nt,s.Fj,s.JJ,s.oH,l.Tg],pipes:[g.X$],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),t})()},30570:function(t,e,i){"use strict";i.d(e,{Y:function(){return l}});var n=i(33642),s=i(84608),o=i(88426),r=i(67033),a=i(31572),c=i(48160),u=i(20247);let l=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=n,this.translate=s,this.displayedColumns=["name"],this.loading=!1,this.force=!1,this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.facility=this.data.facility,this.dataSource=new r.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(t){this.force=t.force,t.deleted?this.onConfirm():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(n.IQ),a.Y36(o.V6),a.Y36(c.sK))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-delete-facility-dialog"]],decls:2,vars:6,consts:[[3,"entityNames","entityType","relations","deleted"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"app-delete-entity-dialog",0),a.NdJ("deleted",function(t){return e.onSubmit(t)}),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("entityNames",e.dataSource)("entityType","facilities")("relations",e.relations))},directives:[u.e],styles:[""]}),t})()},43491:function(t,e,i){"use strict";i.d(e,{P:function(){return l}});var n=i(84608),s=i(67033),o=i(88426),r=i(33642),a=i(31572),c=i(48160),u=i(20247);let l=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.groupService=s,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.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,this.groupService.deleteGroups(this.data.groups.map(t=>t.id),this.force).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(t){this.force=t.force,t.deleted?this.onDelete():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.V6),a.Y36(c.sK),a.Y36(r.ff))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-delete-group-dialog"]],decls:2,vars:6,consts:[[3,"entityNames","entityType","relations","deleted"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"app-delete-entity-dialog",0),a.NdJ("deleted",function(t){return e.onSubmit(t)}),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("entityNames",e.dataSource)("entityType","groups")("relations",e.relations))},directives:[u.e],styles:[""]}),t})()},75954:function(t,e,i){"use strict";i.d(e,{_:function(){return it}});var n=i(84608),s=i(33642),o=i(27613),r=i(41939),a=i(88426),c=i(31572),u=i(48160),l=i(61511),h=i(15980),d=i(67806),p=i(55109);const g=["*"];let f=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:g,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(t,e){1&t&&(c.F$t(),c.TgZ(0,"div",0),c.TgZ(1,"span",1),c._uU(2),c.qZA(),c.TgZ(3,"div",2),c.Hsn(4),c.qZA(),c.qZA(),c.TgZ(5,"div",3),c._UZ(6,"span",4),c.TgZ(7,"div",5),c._uU(8),c.qZA(),c.qZA()),2&t&&(c.xp6(2),c.hij("",e.label,":"),c.xp6(6),c.hij(" ",e.description," "))},styles:[""]}),t})();var m=i(66283),b=i(80340),w=i(16073),_=i(29236),y=i(4786),A=i(71522),v=i(30725),T=i(10901),C=i(36922),S=i(43691),E=i(65050);let k=(()=>{class t{constructor(t){this.translateService=t}transform(t){switch(t){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+t);default:return t}}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(u.sK,16))},t.\u0275pipe=c.Yjl({name:"applicationFormItemDisabled",type:t,pure:!0}),t})(),x=(()=>{class t{constructor(t){this.translateService=t}transform(t){switch(t){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+t);default:return t}}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(u.sK,16))},t.\u0275pipe=c.Yjl({name:"applicationFormItemHidden",type:t,pure:!0}),t})();function R(t,e){1&t&&c._UZ(0,"mat-spinner",7)}function I(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"section"),c.TgZ(5,"mat-checkbox",21),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw(3).applicationFormItem.updatable=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(3);c.xp6(1),c.Q6J("label",c.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE"))("description",c.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.applicationFormItem.updatable)}}function O(t,e){if(1&t&&(c.TgZ(0,"mat-option",24),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t.value),c.xp6(1),c.hij(" ",t.displayName," ")}}function P(t,e){if(1&t&&(c.TgZ(0,"mat-option",24),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t.value),c.xp6(1),c.hij(" ",t.displayName," ")}}function D(t,e){if(1&t&&(c.TgZ(0,"mat-option",24),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t.value),c.xp6(1),c.hij(" ",t.displayName," ")}}function M(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",12),c.TgZ(1,"mat-form-field",12),c.TgZ(2,"input",13),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw(3).applicationFormItem.federationAttribute=e}),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(3);c.xp6(2),c.Q6J("ngModel",t.applicationFormItem.federationAttribute)}}function L(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"section"),c.TgZ(5,"mat-checkbox",21),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.required=e}),c.qZA(),c.qZA(),c.qZA(),c.YNc(6,I,6,7,"div",16),c.TgZ(7,"app-edit-application-form-item-line",11),c.ALo(8,"translate"),c.ALo(9,"translate"),c.TgZ(10,"mat-form-field",12),c.TgZ(11,"mat-select",17),c.NdJ("valueChange",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.perunSourceAttribute=e}),c.YNc(12,O,2,2,"mat-option",18),c.qZA(),c.qZA(),c.qZA(),c.TgZ(13,"app-edit-application-form-item-line",11),c.ALo(14,"translate"),c.ALo(15,"translate"),c.TgZ(16,"mat-form-field",12),c.TgZ(17,"mat-select",17),c.NdJ("valueChange",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.perunDestinationAttribute=e}),c.YNc(18,P,2,2,"mat-option",18),c.qZA(),c.qZA(),c.qZA(),c.TgZ(19,"app-edit-application-form-item-line",11),c.ALo(20,"translate"),c.ALo(21,"translate"),c.TgZ(22,"mat-form-field",12),c.TgZ(23,"mat-select",22),c.NdJ("selectionChange",function(){return c.CHM(t),c.oxw(2).federationAttributeschanged()})("valueChange",function(e){return c.CHM(t),c.oxw(2).federationAttribute=e}),c.YNc(24,D,2,2,"mat-option",18),c.qZA(),c.qZA(),c.YNc(25,M,3,1,"div",23),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED"))("description",c.lcZ(3,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.applicationFormItem.required),c.xp6(1),c.Q6J("ngIf",t.typesWithUpdatable.indexOf(t.applicationFormItem.type)>-1),c.xp6(1),c.Q6J("label",c.lcZ(8,21,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE"))("description",c.lcZ(9,23,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("value",t.applicationFormItem.perunSourceAttribute),c.xp6(1),c.Q6J("ngForOf",t.sourceAttributes),c.xp6(1),c.Q6J("label",c.lcZ(14,25,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE"))("description",c.lcZ(15,27,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("value",t.applicationFormItem.perunDestinationAttribute),c.xp6(1),c.Q6J("ngForOf",t.destinationAttributes),c.xp6(1),c.Q6J("label",c.lcZ(20,29,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE"))("description",c.lcZ(21,31,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("value",t.federationAttribute),c.xp6(1),c.Q6J("ngForOf",t.federationAttributes),c.xp6(1),c.Q6J("ngIf","custom"===t.federationAttribute)}}function N(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"input",13),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.regex=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX"))("description",c.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.applicationFormItem.regex)}}function z(t,e){if(1&t&&(c.TgZ(0,"mat-option",24),c._uU(1),c.ALo(2,"applicationFormItemDisabled"),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t),c.xp6(1),c.hij(" ",c.lcZ(2,2,t)," ")}}function F(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"perun-web-apps-app-form-item-search-select",25),c.NdJ("itemSelected",function(e){return c.CHM(t),c.oxw(3).disabledDependencyItem=e}),c.qZA()}if(2&t){const t=c.oxw(3);c.Q6J("item",t.disabledDependencyItem)("items",t.possibleDependencyItems)}}function Z(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"mat-select",17),c.NdJ("valueChange",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.disabled=e}),c.YNc(6,z,3,4,"mat-option",18),c.qZA(),c.qZA(),c.qZA(),c.TgZ(7,"app-edit-application-form-item-line",11),c.ALo(8,"translate"),c.ALo(9,"translate"),c.TgZ(10,"div",12),c.YNc(11,F,1,2,"perun-web-apps-app-form-item-search-select",19),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED"))("description",c.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION")),c.xp6(4),c.Q6J("value",t.applicationFormItem.disabled),c.xp6(1),c.Q6J("ngForOf",t.disabledValues),c.xp6(1),c.Q6J("label",c.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY"))("description",c.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION")),c.xp6(4),c.Q6J("ngIf",null!==t.disabledDependencyItem)}}function B(t,e){if(1&t&&(c.TgZ(0,"mat-option",24),c._uU(1),c.ALo(2,"applicationFormItemHidden"),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t),c.xp6(1),c.hij(" ",c.lcZ(2,2,t)," ")}}function q(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"perun-web-apps-app-form-item-search-select",25),c.NdJ("itemSelected",function(e){return c.CHM(t),c.oxw(2).hiddenDependencyItem=e}),c.qZA()}if(2&t){const t=c.oxw(2);c.Q6J("item",t.hiddenDependencyItem)("items",t.possibleDependencyItems)}}function U(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",26),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].label=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw().$implicit,e=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT"))("description",c.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION")),c.xp6(4),c.Q6J("cdkTextareaAutosize",!0)("ngModel",e.applicationFormItem.i18n[t].label)}}function H(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",13),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].label=e}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(6,"app-edit-application-form-item-line",11),c.ALo(7,"translate"),c.ALo(8,"translate"),c.TgZ(9,"mat-form-field",12),c.TgZ(10,"textarea",13),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].help=e}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(11,"app-edit-application-form-item-line",11),c.ALo(12,"translate"),c.ALo(13,"translate"),c.TgZ(14,"mat-form-field",12),c.TgZ(15,"textarea",13),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].errorMessage=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw().$implicit,e=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",c.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",e.applicationFormItem.i18n[t].label),c.xp6(1),c.Q6J("label",c.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP"))("description",c.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",e.applicationFormItem.i18n[t].help),c.xp6(1),c.Q6J("label",c.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR"))("description",c.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",e.applicationFormItem.i18n[t].errorMessage)}}function j(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",13),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].label=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw().$implicit,e=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",c.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",e.applicationFormItem.i18n[t].label)}}function G(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.TgZ(3,"mat-form-field"),c.TgZ(4,"input",13),c.NdJ("ngModelChange",function(t){return e.$implicit[0]=t}),c.qZA(),c.qZA(),c._uU(5),c.ALo(6,"translate"),c.TgZ(7,"mat-form-field"),c.TgZ(8,"input",13),c.NdJ("ngModelChange",function(t){return e.$implicit[1]=t}),c.qZA(),c.qZA(),c.TgZ(9,"button",35),c.NdJ("click",function(){const e=c.CHM(t).$implicit,i=c.oxw(2).$implicit;return c.oxw(2).removeOption(e,i)}),c.ALo(10,"translate"),c.TgZ(11,"mat-icon"),c._uU(12,"clear"),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=e.$implicit;c.xp6(1),c.hij(" ",c.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),c.xp6(3),c.Q6J("ngModel",t[0]),c.xp6(1),c.hij(" ",c.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),c.xp6(3),c.Q6J("ngModel",t[1]),c.xp6(1),c.s9C("matTooltip",c.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function Y(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"div",27),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",28),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"div",29),c.TgZ(8,"button",30),c.NdJ("click",function(){c.CHM(t);const e=c.oxw().$implicit;return c.oxw(2).sortOptionsAZ(e)}),c.TgZ(9,"i",31),c._uU(10,"arrow_downward"),c.qZA(),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.TgZ(13,"button",32),c.NdJ("click",function(){c.CHM(t);const e=c.oxw().$implicit;return c.oxw(2).sortOptionsZA(e)}),c.TgZ(14,"i",31),c._uU(15,"arrow_upward"),c.qZA(),c._uU(16),c.ALo(17,"translate"),c.qZA(),c.qZA(),c.YNc(18,G,13,11,"div",33),c.TgZ(19,"button",34),c.NdJ("click",function(){c.CHM(t);const e=c.oxw().$implicit;return c.oxw(2).addOption(e)}),c._uU(20),c.ALo(21,"translate"),c.qZA(),c.qZA()}if(2&t){const t=c.oxw().$implicit,e=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",e.options[t]),c.xp6(2),c.hij(" ",c.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const V=function(){return["HEADING","HTML_COMMENT"]},K=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION"]},J=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},$=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function Q(t,e){if(1&t&&(c.TgZ(0,"mat-tab",10),c.ALo(1,"translate"),c.ALo(2,"uppercase"),c.YNc(3,U,6,8,"div",16),c.YNc(4,H,16,21,"div",16),c.YNc(5,j,6,7,"div",16),c.YNc(6,Y,22,16,"div",16),c.qZA()),2&t){const t=e.$implicit,i=c.oxw(2);c.s9C("label",c.lcZ(1,5,c.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+t))),c.xp6(3),c.Q6J("ngIf",i.isApplicationFormItemOfType(c.DdM(9,V))),c.xp6(1),c.Q6J("ngIf",i.isApplicationFormItemOfType(c.DdM(10,K))),c.xp6(1),c.Q6J("ngIf",i.isApplicationFormItemOfType(c.DdM(11,J))),c.xp6(1),c.Q6J("ngIf",i.isApplicationFormItemOfType(c.DdM(12,$)))}}const W=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]},X=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]};function tt(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",8),c.TgZ(1,"mat-tab-group",9),c.TgZ(2,"mat-tab",10),c.ALo(3,"translate"),c.TgZ(4,"app-edit-application-form-item-line",11),c.ALo(5,"translate"),c.ALo(6,"translate"),c.TgZ(7,"mat-form-field",12),c.TgZ(8,"input",13),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw().applicationFormItem.shortname=e}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(9,"app-edit-application-form-item-line",11),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",11),c.ALo(15,"translate"),c.ALo(16,"translate"),c.TgZ(17,"section"),c.TgZ(18,"mat-checkbox",14),c.NdJ("change",function(){return c.CHM(t),c.oxw().onChangingType("INITIAL")}),c._uU(19),c.ALo(20,"translate"),c.qZA(),c.TgZ(21,"mat-checkbox",15),c.NdJ("change",function(){return c.CHM(t),c.oxw().onChangingType("EXTENSION")}),c._uU(22),c.ALo(23,"translate"),c.qZA(),c.qZA(),c.qZA(),c.YNc(24,L,26,33,"div",16),c.YNc(25,N,6,7,"div",16),c.YNc(26,Z,12,15,"div",16),c.TgZ(27,"app-edit-application-form-item-line",11),c.ALo(28,"translate"),c.ALo(29,"translate"),c.TgZ(30,"mat-form-field",12),c.TgZ(31,"mat-select",17),c.NdJ("valueChange",function(e){return c.CHM(t),c.oxw().applicationFormItem.hidden=e}),c.YNc(32,B,3,4,"mat-option",18),c.qZA(),c.qZA(),c.qZA(),c.TgZ(33,"app-edit-application-form-item-line",11),c.ALo(34,"translate"),c.ALo(35,"translate"),c.TgZ(36,"div",12),c.YNc(37,q,1,2,"perun-web-apps-app-form-item-search-select",19),c.qZA(),c.qZA(),c.qZA(),c.YNc(38,Q,7,13,"mat-tab",20),c.qZA(),c.qZA()}if(2&t){const t=c.oxw();c.xp6(2),c.s9C("label",c.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),c.xp6(2),c.Q6J("label",c.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME"))("description",c.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.applicationFormItem.shortname),c.xp6(1),c.Q6J("label",c.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET"))("description",c.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION")),c.xp6(3),c.hij(" ",c.lcZ(13,34,t.applicationFormItem.type)," "),c.xp6(2),c.Q6J("label",c.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION"))("description",c.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.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",t.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",t.isApplicationFormItemOfType(c.DdM(52,W))),c.xp6(1),c.Q6J("ngIf",t.isApplicationFormItemOfType(c.DdM(53,X))),c.xp6(1),c.Q6J("ngIf",t.typesWithDisabled.indexOf(t.applicationFormItem.type)>-1),c.xp6(1),c.Q6J("label",c.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN"))("description",c.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION")),c.xp6(4),c.Q6J("value",t.applicationFormItem.hidden),c.xp6(1),c.Q6J("ngForOf",t.hiddenValues),c.xp6(1),c.Q6J("label",c.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY"))("description",c.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION")),c.xp6(4),c.Q6J("ngIf",null!==t.hiddenDependencyItem),c.xp6(1),c.Q6J("ngForOf",t.languages)}}class et{constructor(t,e){this.value=e,this.displayName=t}}let it=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.attributesManager=i,this.translateService=n,this.store=s,this.federationAttributes=[],this.federationAttribute="",this.sourceAttributes=[],this.destinationAttributes=[],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"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"],this.languages=["en"]}ngOnInit(){this.languages=this.store.get("supportedLanguages"),this.hiddenDependencyItem=this.data.allItems.find(t=>t.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=r.Sx),this.disabledDependencyItem=this.data.allItems.find(t=>t.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=r.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,o.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(t=>{this.attributeDefinitions=t,this.getDestinationAndSourceAttributes(),this.loading=!1},()=>this.loading=!1),this.getFederationAttributes(),this.getFederationAttribute(),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}getPossibleDepItems(){return[r.Sx].concat(this.data.allItems.filter(t=>this.dependencyTypes.indexOf(t.type)>-1).filter(t=>t.id!==this.data.applicationFormItem.id))}cancel(){this.dialogRef.close()}submit(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===r.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===r.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(t){if(this.applicationFormItem.applicationTypes.includes(t)){const e=this.applicationFormItem.applicationTypes.indexOf(t);this.applicationFormItem.applicationTypes.splice(e,1)}else this.applicationFormItem.applicationTypes.push(t)}getDestinationAndSourceAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(t=>{this.sourceAttributes.push(new et(t,"")),this.destinationAttributes.push(new et(t,""))});for(const t of this.attributeDefinitions)"user"===t.entity.toLowerCase()||"member"===t.entity.toLowerCase()?(this.sourceAttributes.push(new et(t.friendlyName+" ("+t.entity+" / "+this.getDefinition(t)+")",t.namespace+":"+t.friendlyName)),this.destinationAttributes.push(new et(t.friendlyName+" ("+t.entity+" / "+this.getDefinition(t)+")",t.namespace+":"+t.friendlyName))):("vo"===t.entity.toLowerCase()||"group"===t.entity.toLowerCase()&&this.data.group)&&this.sourceAttributes.push(new et(t.friendlyName+" ("+t.entity+" / "+this.getDefinition(t)+")",t.namespace+":"+t.friendlyName))}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(t=>{this.federationAttributes.push(new et(t,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(t=>{this.federationAttributes.push(new et(t,"custom")),this.federationAttributes.push(new et("Display name","displayName")),this.federationAttributes.push(new et("Common name","cn")),this.federationAttributes.push(new et("Mail","mail")),this.federationAttributes.push(new et("Organization","o")),this.federationAttributes.push(new et("Level of Assurance (LoA)","loa")),this.federationAttributes.push(new et("First name","givenName")),this.federationAttributes.push(new et("Surname","sn")),this.federationAttributes.push(new et("EPPN","eppn")),this.federationAttributes.push(new et("IdP Category","md_entityCategory")),this.federationAttributes.push(new et("IdP Affiliation","affiliation")),this.federationAttributes.push(new et("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.federationAttributes.push(new et("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.federationAttributes.push(new et("schacHomeOrganization","schacHomeOrganization")),this.federationAttributes.push(new et("Login","uid")),this.federationAttributes.push(new et("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){if(this.applicationFormItem.federationAttribute){for(const t of this.federationAttributes)if(t.value===this.applicationFormItem.federationAttribute)return void(this.federationAttribute=t.value);this.federationAttribute="custom"}}federationAttributeschanged(){this.applicationFormItem.federationAttribute="custom"!==this.federationAttribute?this.federationAttribute:""}getDefinition(t){const e=t.namespace.split(":");return null===e[4]?"null":e[4]}addOption(t){this.options[t].push(["",""])}removeOption(t,e){this.options[e]=this.options[e].filter(e=>!(e[0]===t[0]&&e[1]===t[1]))}updateOption(t){let e="";if(this.options&&this.options[t])for(const i of this.options[t])""!==i[0]&&""!==i[1]&&(e=""===e?i[0]+"#"+i[1]:e+"|"+i[0]+"#"+i[1]);this.applicationFormItem.i18n[t].options=e}updateOptions(){for(const t of this.languages)this.updateOption(t)}copy(t,e){e.applicationTypes=t.applicationTypes,e.federationAttribute=t.federationAttribute,e.forDelete=t.forDelete;for(const i of this.languages)e.i18n[i].errorMessage=t.i18n[i].errorMessage,e.i18n[i].help=t.i18n[i].help,e.i18n[i].label=t.i18n[i].label,e.i18n[i].options=t.i18n[i].options;e.id=t.id,e.ordnum=t.ordnum,e.perunDestinationAttribute=t.perunDestinationAttribute,e.perunSourceAttribute=t.perunSourceAttribute,e.regex=t.regex,e.required=t.required,e.shortname=t.shortname,e.type=t.type,e.updatable=t.updatable,e.disabled=t.disabled,e.hidden=t.hidden,e.disabledDependencyItemId=t.disabledDependencyItemId,e.hiddenDependencyItemId=t.hiddenDependencyItemId}sortOptionsAZ(t){this.options[t]=this.options[t].sort((t,e)=>t[1]>e[1]?1:t[1]t[1]>e[1]?-1:t[1]-1}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(n.so),c.Y36(n.WI),c.Y36(s.H8),c.Y36(u.sK),c.Y36(a.d6))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-edit-application-form-item-dialog"]],decls:14,vars:16,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2","mt-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["color","primary"],[3,"label"],[3,"label","description"],[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"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["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"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-icon-button","","color","warn",3,"matTooltip","click"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"div",0),c.TgZ(2,"h1",1),c._uU(3),c.ALo(4,"translate"),c.qZA(),c.YNc(5,R,1,0,"mat-spinner",2),c.YNc(6,tt,39,54,"div",3),c.TgZ(7,"div",4),c.TgZ(8,"button",5),c.NdJ("click",function(){return e.cancel()}),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.TgZ(11,"button",6),c.NdJ("click",function(){return e.submit()}),c._uU(12),c.ALo(13,"translate"),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&t&&(c.Gre("",e.theme," h-100"),c.xp6(3),c.AsE("",c.lcZ(4,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",e.applicationFormItem.shortname,""),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(3),c.hij(" ",c.lcZ(10,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),c.xp6(2),c.Q6J("disabled",e.loading),c.xp6(1),c.hij(" ",c.lcZ(13,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},directives:[n.uh,l.O5,n.H8,h.lW,d.$g,n.xY,p.SP,p.uX,f,m.KE,b.Nt,w.Fj,w.JJ,w.On,_.oG,y.gD,l.sg,A.ey,v.Y,T.IC,C.gM,S.Hw],pipes:[u.X$,E.c,k,x,l.gd],styles:[""]}),t})()},79592:function(t,e,i){"use strict";i.d(e,{H:function(){return P}});var n=i(33642),s=i(84608),o=i(88426),r=i(67033),a=i(27613),c=i(81954),u=i(61511),l=i(31572),h=i(48160),d=i(15980),p=i(67806),g=i(43691),f=i(36922),m=i(22196);function b(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function w(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")))}function _(t,e){if(1&t&&(l.TgZ(0,"td",18),l._uU(1),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.hij(" ",t.user.id," ")}}function y(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")))}function A(t,e){if(1&t&&(l.TgZ(0,"td",18),l._uU(1),l.ALo(2,"userFullName"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.hij(" ",l.lcZ(2,1,t.user)," ")}}function v(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")))}function T(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",20),l.NdJ("click",function(){l.CHM(t);const e=l.oxw().$implicit;return l.oxw(2).changeExpiration(e)}),l.TgZ(1,"mat-icon"),l._uU(2," today "),l.qZA(),l.qZA()}}function C(t,e){if(1&t&&(l.TgZ(0,"td",18),l.TgZ(1,"span"),l._uU(2),l.qZA(),l.YNc(3,T,3,0,"button",19),l.qZA()),2&t){const t=e.$implicit,i=l.oxw(2);l.xp6(2),l.Oqu(i.parseDate(t.validityTo)),l.xp6(1),l.Q6J("ngIf",i.isExpirationAuthorized(t))}}function S(t,e){1&t&&l._UZ(0,"th",17)}function E(t,e){1&t&&(l.TgZ(0,"mat-icon",25),l._uU(1,"clear"),l.qZA())}function k(t,e){1&t&&(l.TgZ(0,"mat-icon"),l._uU(1,"settings_backup_restore"),l.qZA())}function x(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"td",18),l.TgZ(1,"div",21),l.ALo(2,"translate"),l.TgZ(3,"button",22),l.NdJ("click",function(){const e=l.CHM(t).$implicit;return l.oxw(2).markSponsor(e)}),l.YNc(4,E,2,0,"mat-icon",23),l.YNc(5,k,2,0,"mat-icon",24),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit,i=l.oxw(2);l.xp6(1),l.s9C("matTooltip",l.lcZ(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),l.Q6J("matTooltipPosition","above")("matTooltipDisabled",i.isRemoveAuthorized(t)),l.xp6(2),l.Q6J("disabled",!i.isRemoveAuthorized(t)),l.xp6(1),l.Q6J("ngIf",!i.sponsorsToRemove.has(t.user.id)),l.xp6(1),l.Q6J("ngIf",i.sponsorsToRemove.has(t.user.id))}}function R(t,e){1&t&&l._UZ(0,"tr",26)}function I(t,e){if(1&t&&l._UZ(0,"tr",27),2&t){const t=e.$implicit,i=l.oxw(2);l.ekj("make-red",i.sponsorsToRemove.has(t.user.id))}}function O(t,e){if(1&t&&(l.TgZ(0,"div",7),l.TgZ(1,"table",8),l.ynx(2,9),l.YNc(3,w,3,3,"th",10),l.YNc(4,_,2,1,"td",11),l.BQk(),l.ynx(5,12),l.YNc(6,y,3,3,"th",10),l.YNc(7,A,3,3,"td",11),l.BQk(),l.ynx(8,13),l.YNc(9,v,3,3,"th",10),l.YNc(10,C,4,2,"td",11),l.BQk(),l.ynx(11,14),l.YNc(12,S,1,0,"th",10),l.YNc(13,x,6,8,"td",11),l.BQk(),l.YNc(14,R,1,0,"tr",15),l.YNc(15,I,1,2,"tr",16),l.qZA(),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("dataSource",t.dataSource),l.xp6(13),l.Q6J("matHeaderRowDef",t.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",t.displayedColumns)}}let P=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.dialogRef=t,this.data=e,this.memberService=i,this.userService=n,this.notificator=s,this.authResolver=o,this.translate=r,this.dialog=a,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.expirationChanged=!1,this.sponsorsToRemove=new Set}ngOnInit(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new r.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(t){this.sponsorsToRemove.has(t.user.id)?this.sponsorsToRemove.delete(t.user.id):this.sponsorsToRemove.add(t.user.id)}removeSponsors(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const e=t.pop();this.memberService.removeSponsor(this.data.member.id,e).subscribe(()=>{this.removeSponsors(t)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const t=Array.from(this.sponsorsToRemove);this.removeSponsors(t)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(t){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[t.user])}isExpirationAuthorized(t){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[t.user,this.vo])}parseDate(t){return null===t?"Never expire":(0,u.p6)(t,"d.M.y","en")}changeExpiration(t){const e=(0,a.kZ)();e.width="400px",e.data={memberId:this.data.member.id,sponsor:t},this.dialog.open(c.hd,e).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(t=>{this.sponsors=t,this.dataSource=new r.by(this.sponsors),this.loading=!1}))})}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(s.so),l.Y36(s.WI),l.Y36(n.uq),l.Y36(n.Fv),l.Y36(o.V6),l.Y36(o.x4),l.Y36(h.sK),l.Y36(s.uw))},t.\u0275cmp=l.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["mat-header-row","","class","font-weight-bolder",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"div"),l.YNc(4,b,1,0,"mat-spinner",1),l.YNc(5,O,16,3,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onSubmit()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),l.xp6(2),l.Tol(e.theme),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.hij(" ",l.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL"),""),l.xp6(2),l.Q6J("disabled",e.loading||0===e.sponsorsToRemove.size),l.xp6(1),l.hij(" ",l.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT"),""))},directives:[s.uh,u.O5,s.H8,d.lW,p.$g,s.xY,r.BZ,r.w1,r.fO,r.Dz,r.as,r.nj,r.ge,r.ev,g.Hw,f.gM,r.XQ,r.Gk],pipes:[h.X$,m.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:grey}"]}),t})()},88690:function(t,e,i){"use strict";i.d(e,{R:function(){return T}});var n=i(84608),s=i(16073),o=i(33642),r=i(88426),a=i(31572),c=i(48160),u=i(61511),l=i(15980),h=i(67806),d=i(66283),p=i(80340),g=i(4786),f=i(71522);function m(t,e){1&t&&a._UZ(0,"mat-spinner",6)}function b(t,e){1&t&&(a.TgZ(0,"div",14),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function w(t,e){1&t&&(a.TgZ(0,"div",14),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function _(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function y(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function A(t,e){if(1&t&&(a.TgZ(0,"mat-option",15),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"uppercase"),a.qZA()),2&t){const t=e.$implicit;a.s9C("value",t),a.xp6(1),a.Oqu(a.lcZ(2,2,a.lcZ(3,4,"SHARED_LIB.LANGUAGES."+t)))}}function v(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",7),a.YNc(1,b,3,3,"div",8),a.YNc(2,w,3,3,"div",8),a.TgZ(3,"mat-form-field",9),a._UZ(4,"input",10),a.ALo(5,"translate"),a.YNc(6,_,3,3,"mat-error",11),a.qZA(),a.TgZ(7,"mat-form-field",9),a._UZ(8,"textarea",10),a.ALo(9,"translate"),a.YNc(10,y,3,3,"mat-error",11),a.qZA(),a.TgZ(11,"mat-form-field",9),a.TgZ(12,"mat-label"),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.TgZ(15,"mat-select",12),a.NdJ("valueChange",function(e){return a.CHM(t),a.oxw().currentLanguage=e}),a.YNc(16,A,4,6,"mat-option",13),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngIf",!t.data.groupId),a.xp6(1),a.Q6J("ngIf",t.data.groupId),a.xp6(2),a.s9C("placeholder",a.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),a.Q6J("formControl",t.name),a.xp6(2),a.Q6J("ngIf",t.name.invalid),a.xp6(2),a.s9C("placeholder",a.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),a.Q6J("formControl",t.emailForm),a.xp6(2),a.Q6J("ngIf",t.emailForm.invalid),a.xp6(3),a.Oqu(a.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),a.xp6(2),a.Q6J("value",t.currentLanguage),a.xp6(1),a.Q6J("ngForOf",t.languages)}}let T=(()=>{class t{constructor(t,e,i,n,o,r){this.dialogRef=t,this.data=e,this.registrarManager=i,this.notificator=n,this.translate=o,this.store=r,this.emailForm=new s.NI("",[s.kI.required,s.kI.email]),this.languages=["en"],this.currentLanguage="en",this.name=new s.NI("",s.kI.required),this.loading=!1}ngOnInit(){this.languages=this.store.get("supportedLanguages"),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(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.tk),a.Y36(r.V6),a.Y36(c.sK),a.Y36(r.d6))},t.\u0275cmp=a.Xpm({type:t,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"],["mat-flat-button","","color","accent",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(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,m,1,0,"mat-spinner",1),a.YNc(5,v,17,17,"div",2),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return e.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return e.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),a.xp6(2),a.Q6J("disabled",e.emailForm.invalid||e.name.invalid||e.loading),a.xp6(1),a.hij(" ",a.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},directives:[n.uh,u.O5,n.H8,l.lW,h.$g,n.xY,d.KE,p.Nt,s.Fj,s.Q7,s.JJ,s.oH,d.hX,g.gD,u.sg,d.TO,f.ey],pipes:[c.X$,u.gd],styles:[""]}),t})()},57820:function(t,e,i){"use strict";i.d(e,{c:function(){return x}});var n=i(84608),s=i(16073),o=i(56238),r=i(79996),a=i(17),c=i(88426),u=i(33642),l=i(31572),h=i(48160),d=i(54810),p=i(61511),g=i(15980),f=i(36922),m=i(39571),b=i(66283),w=i(80340),_=i(40084),y=i(71522),A=i(67806);function v(t,e){1&t&&(l.TgZ(0,"mat-radio-button",12),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function T(t,e){1&t&&(l.TgZ(0,"mat-radio-button",13),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function C(t,e){1&t&&(l.TgZ(0,"app-alert",14),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function S(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"mat-option",20),l.NdJ("click",function(){const e=l.CHM(t).$implicit;return l.oxw(2).selectedGroup=e}),l.TgZ(1,"span"),l._uU(2),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit;l.Q6J("value",t),l.xp6(2),l.Oqu(t.name)}}function E(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"mat-form-field",15),l.TgZ(1,"input",16),l.NdJ("change",function(){return l.CHM(t),l.oxw().selectedGroup=null}),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"mat-autocomplete",17,18),l.YNc(5,S,3,2,"mat-option",19),l.ALo(6,"async"),l.qZA(),l.qZA()}if(2&t){const t=l.MAs(4),e=l.oxw();l.Q6J("@openClose","toGroup"===e.moveOption?"open":"closed"),l.xp6(1),l.s9C("placeholder",l.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),l.Q6J("matAutocomplete",t)("formControl",e.otherGroupsCtrl),l.xp6(2),l.Q6J("displayWith",e.displayFn),l.xp6(2),l.Q6J("ngForOf",l.lcZ(6,8,e.filteredGroups))}}function k(t,e){1&t&&l._UZ(0,"mat-spinner",21)}let x=(()=>{class t{constructor(t,e,i,n,o,r,a){this.dialogRef=t,this.data=e,this.groupService=i,this.notificator=n,this.translate=o,this.apiRequest=r,this.authResolver=a,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new s.NI(null,[s.kI.required]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(t=>this.successMessage=t),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(t=>this.errorMessage=t)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(t=>{this.otherGroups=t.filter(t=>t.id!==this.data.group.id&&"members"!==t.name&&this.canMove(t)),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.O)(""),(0,r.U)(t=>t?this._filterGroups(t):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(t){return t?t.name:t}_filterGroups(t){if("object"==typeof t)return[];const e=t.toLowerCase();return t?this.otherGroups.filter(t=>t.name.toLowerCase().indexOf(e)>-1):this.otherGroups}canMove(t){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[t,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,t])}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)},t=>{this.notificator.showRPCError(t,this.errorMessage),this.dialogRef.close(!1)})}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(n.so),l.Y36(n.WI),l.Y36(u.ff),l.Y36(c.V6),l.Y36(h.sK),l.Y36(c.F5),l.Y36(c.x4))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","value","toRoot","class","move-options",4,"ngIf"],["value","toGroup","color","primary",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["value","toGroup","color","primary"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","matAutocomplete","formControl","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",1),l.TgZ(5,"p"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.TgZ(8,"mat-radio-group",2),l.NdJ("ngModelChange",function(t){return e.moveOption=t}),l.YNc(9,v,3,3,"mat-radio-button",3),l.YNc(10,T,3,3,"mat-radio-button",4),l.qZA(),l.YNc(11,C,3,3,"app-alert",5),l.YNc(12,E,7,10,"mat-form-field",6),l.qZA(),l.YNc(13,k,1,0,"mat-spinner",7),l.TgZ(14,"div",8),l.TgZ(15,"button",9),l.NdJ("click",function(){return e.close()}),l._uU(16),l.ALo(17,"translate"),l.qZA(),l.TgZ(18,"span",10),l.ALo(19,"translate"),l.TgZ(20,"button",11),l.NdJ("click",function(){return e.confirm()}),l._uU(21),l.ALo(22,"translate"),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.data.theme),l.xp6(2),l.AsE("",l.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",e.data.group.name,""),l.xp6(4),l.hij(" ",l.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),l.xp6(2),l.Q6J("ngModel",e.moveOption),l.xp6(1),l.Q6J("ngIf",!e.toRootOptionDisabled),l.xp6(1),l.Q6J("ngIf",!e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",e.toRootOptionDisabled&&e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",!e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(3),l.hij(" ",l.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),l.Q6J("matTooltipPosition","above")("matTooltipDisabled",null!==e.selectedGroup||"toRoot"===e.moveOption),l.xp6(2),l.Q6J("disabled",(e.otherGroupsCtrl.invalid||null===e.selectedGroup)&&"toRoot"!==e.moveOption||e.loading),l.xp6(1),l.hij(" ",l.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},directives:[n.uh,n.xY,d.VQ,s.JJ,s.On,p.O5,n.H8,g.lW,f.gM,d.U0,m.w,b.KE,w.Nt,_.ZL,s.Fj,s.Q7,s.oH,_.XC,p.sg,y.ey,A.$g],pipes:[h.X$,p.Ov],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[a.BQ]}}),t})()},95121:function(t,e,i){"use strict";i.d(e,{m:function(){return _}});var n=i(84608),s=i(33642),o=i(88426),r=i(31572),a=i(48160),c=i(61511),u=i(15980),l=i(67806),h=i(66283),d=i(4786),p=i(71522);function g(t,e){1&t&&r._UZ(0,"mat-spinner",7)}function f(t,e){if(1&t&&(r.TgZ(0,"mat-option",13),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.hij(" ",t.friendlyNameParameter," ")}}function m(t,e){if(1&t&&(r.TgZ(0,"mat-option",13),r._uU(1),r.ALo(2,"translate"),r.ALo(3,"uppercase"),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.hij(" ",r.lcZ(2,2,r.lcZ(3,4,"SHARED_LIB.LANGUAGES."+t))," ")}}function b(t,e){if(1&t&&(r.TgZ(0,"mat-option",13),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.hij(" ",t," ")}}function w(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",8),r.TgZ(1,"mat-form-field"),r.TgZ(2,"mat-label"),r._uU(3),r.ALo(4,"translate"),r.qZA(),r.TgZ(5,"mat-select",9),r.NdJ("valueChange",function(e){return r.CHM(t),r.oxw().selectedLogin=e}),r.YNc(6,f,2,2,"mat-option",10),r.qZA(),r.qZA(),r.TgZ(7,"mat-form-field"),r.TgZ(8,"mat-label"),r._uU(9),r.ALo(10,"translate"),r.qZA(),r.TgZ(11,"mat-select",9),r.NdJ("valueChange",function(e){return r.CHM(t),r.oxw().selectedLang=e}),r.YNc(12,m,4,6,"mat-option",10),r.qZA(),r.qZA(),r.TgZ(13,"mat-form-field"),r.TgZ(14,"mat-label"),r._uU(15),r.ALo(16,"translate"),r.qZA(),r.TgZ(17,"mat-select",9),r.NdJ("valueChange",function(e){return r.CHM(t),r.oxw().selectedMail=e}),r.YNc(18,b,2,2,"mat-option",10),r.qZA(),r.qZA(),r.TgZ(19,"div",11),r.TgZ(20,"p",12),r._uU(21),r.ALo(22,"translate"),r.qZA(),r.TgZ(23,"p"),r._uU(24),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.xp6(3),r.Oqu(r.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),r.xp6(2),r.Q6J("value",t.selectedLogin),r.xp6(1),r.Q6J("ngForOf",t.logins),r.xp6(3),r.Oqu(r.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),r.xp6(2),r.Q6J("value",t.selectedLang),r.xp6(1),r.Q6J("ngForOf",t.languages),r.xp6(3),r.Oqu(r.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),r.xp6(2),r.Q6J("value",t.selectedMail),r.xp6(1),r.Q6J("ngForOf",t.mails),r.xp6(3),r.Oqu(r.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),r.xp6(3),r.Oqu(t.selectedLogin.value)}}let _=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.membersManagerService=i,this.attributesManagerService=n,this.store=s,this.translate=o,this.notificator=r,this.languages=this.store.get("supportedLanguages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],o.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}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"}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,this.selectedLogin.friendlyNameParameter,this.pwdMails.get(this.selectedMail),this.selectedLang).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.uq),r.Y36(s.H8),r.Y36(o.d6),r.Y36(a.sK),r.Y36(o.V6))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.TgZ(3,"div",1),r.YNc(4,g,1,0,"mat-spinner",2),r.qZA(),r.YNc(5,w,25,19,"div",3),r.TgZ(6,"div",4),r.TgZ(7,"button",5),r.NdJ("click",function(){return e.onCancel()}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.TgZ(10,"button",6),r.NdJ("click",function(){return e.onSubmit()}),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),r.xp6(3),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(3),r.hij(" ",r.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),r.xp6(2),r.Q6J("disabled",e.loading),r.xp6(1),r.hij(" ",r.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},directives:[n.uh,c.O5,n.H8,u.lW,l.$g,n.xY,h.KE,h.hX,d.gD,c.sg,p.ey],pipes:[a.X$,c.gd],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),t})()},4374:function(t,e,i){"use strict";i.d(e,{X:function(){return v}});var n=i(84608),s=i(67033),o=i(88426),r=i(33642),a=i(31572),c=i(48160),u=i(61511),l=i(67806),h=i(15980),d=i(22196);function p(t,e){1&t&&a._UZ(0,"th",13)}function g(t,e){if(1&t&&(a.TgZ(0,"td",14),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.id," ")}}function f(t,e){1&t&&a._UZ(0,"th",13)}function m(t,e){if(1&t&&(a.TgZ(0,"td",14),a._uU(1),a.ALo(2,"userFullName"),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",a.lcZ(2,1,t.user)," ")}}function b(t,e){1&t&&a._UZ(0,"tr",15)}function w(t,e){1&t&&a._UZ(0,"tr",16)}function _(t,e){if(1&t&&(a.TgZ(0,"div",4),a.TgZ(1,"p"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"div",5),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"table",6),a.ynx(8,7),a.YNc(9,p,1,0,"th",8),a.YNc(10,g,2,1,"td",9),a.BQk(),a.ynx(11,10),a.YNc(12,f,1,0,"th",8),a.YNc(13,m,3,3,"td",9),a.BQk(),a.YNc(14,b,1,0,"tr",11),a.YNc(15,w,1,0,"tr",12),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,5,t.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),a.xp6(3),a.hij(" ",a.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),a.xp6(2),a.Q6J("dataSource",t.dataSource),a.xp6(7),a.Q6J("matHeaderRowDef",t.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",t.displayedColumns)}}function y(t,e){1&t&&a._UZ(0,"mat-spinner",17)}function A(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",18),a.TgZ(1,"button",19),a.NdJ("click",function(){return a.CHM(t),a.oxw().onCancel()}),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"button",20),a.NdJ("click",function(){return a.CHM(t),a.oxw().onSubmit()}),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),a.xp6(3),a.hij(" ",a.lcZ(6,4,t.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let v=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.membersService=i,this.groupService=n,this.notificator=s,this.translate=o,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.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(t=>t.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(t=>t.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const t=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(t),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.uq),a.Y36(r.ff),a.Y36(o.V6),a.Y36(c.sK))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-remove-members-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["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",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,_,16,9,"div",1),a.YNc(5,y,1,0,"mat-spinner",2),a.YNc(6,A,7,6,"div",3),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),a.xp6(2),a.Q6J("ngIf",!e.loading),a.xp6(1),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,u.O5,n.xY,s.BZ,s.w1,s.fO,s.Dz,s.as,s.nj,s.ge,s.ev,s.XQ,s.Gk,l.$g,n.H8,h.lW],pipes:[c.X$,d.d],styles:[""]}),t})()},95909:function(t,e,i){"use strict";i.d(e,{f:function(){return l}});var n=i(84608),s=i(67033),o=i(88426),r=i(33642),a=i(31572),c=i(48160),u=i(20247);let l=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.resourcesManager=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.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(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(t){t.deleted?this.onDelete():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.V6),a.Y36(c.sK),a.Y36(r.xk))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-remove-resource-dialog"]],decls:2,vars:6,consts:[[3,"entityNames","entityType","disableForce","deleted"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"app-delete-entity-dialog",0),a.NdJ("deleted",function(t){return e.onSubmit(t)}),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("entityNames",e.dataSource)("entityType","resources")("disableForce",!0))},directives:[u.e],styles:[""]}),t})()},99608:function(t,e,i){"use strict";i.d(e,{o:function(){return l}});var n=i(84608),s=i(67033),o=i(88426),r=i(33642),a=i(31572),c=i(48160),u=i(20247);let l=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.voService=n,this.translate=s,this.force=!1,this.displayedColumns=["name"],this.relations=[],s.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.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(t){this.force=t.force,t.deleted?this.onDelete():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.V6),a.Y36(r.YF),a.Y36(c.sK))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-remove-vo-dialog"]],decls:2,vars:6,consts:[[3,"entityNames","entityType","relations","deleted"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"app-delete-entity-dialog",0),a.NdJ("deleted",function(t){return e.onSubmit(t)}),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("entityNames",e.dataSource)("entityType","organizations")("relations",e.relations))},directives:[u.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),t})()},24555:function(t,e,i){"use strict";i.d(e,{E:function(){return w}});var n=i(84608),s=i(33642),o=i(31572),r=i(61511),a=i(15980),c=i(67806),u=i(66283),l=i(80340),h=i(16073),d=i(4786),p=i(71522),g=i(48160);function f(t,e){1&t&&o._UZ(0,"mat-spinner",6)}function m(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div"),o._uU(1),o.ALo(2,"translate"),o.TgZ(3,"mat-form-field",9),o.TgZ(4,"mat-select",10),o.NdJ("valueChange",function(e){return o.CHM(t),o.oxw(2).embeddedState=e}),o.TgZ(5,"mat-option",11),o._uU(6),o.ALo(7,"translate"),o.qZA(),o.TgZ(8,"mat-option",12),o._uU(9),o.ALo(10,"translate"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&t){const t=o.oxw(2);o.xp6(1),o.hij(" ",o.lcZ(2,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),": "),o.xp6(3),o.Q6J("value",t.embeddedState),o.xp6(2),o.Oqu(o.lcZ(7,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(10,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function b(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",7),o.TgZ(1,"div"),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-form-field"),o.TgZ(5,"input",8),o.NdJ("ngModelChange",function(e){return o.CHM(t),o.oxw().moduleName=e}),o.qZA(),o.qZA(),o.TgZ(6,"div"),o._uU(7),o.ALo(8,"translate"),o.qZA(),o.TgZ(9,"mat-form-field",9),o.TgZ(10,"mat-select",10),o.NdJ("valueChange",function(e){return o.CHM(t),o.oxw().initialState=e}),o.TgZ(11,"mat-option",11),o._uU(12),o.ALo(13,"translate"),o.qZA(),o.TgZ(14,"mat-option",12),o._uU(15),o.ALo(16,"translate"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(17,"div"),o._uU(18),o.ALo(19,"translate"),o.qZA(),o.TgZ(20,"mat-form-field",9),o.TgZ(21,"mat-select",10),o.NdJ("valueChange",function(e){return o.CHM(t),o.oxw().extensionState=e}),o.TgZ(22,"mat-option",11),o._uU(23),o.ALo(24,"translate"),o.qZA(),o.TgZ(25,"mat-option",12),o._uU(26),o.ALo(27,"translate"),o.qZA(),o.qZA(),o.qZA(),o.YNc(28,m,11,10,"div",13),o.qZA()}if(2&t){const t=o.oxw();o.xp6(2),o.Oqu(o.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),o.xp6(3),o.Q6J("ngModel",t.moduleName),o.xp6(2),o.hij(" ",o.lcZ(8,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),": "),o.xp6(3),o.Q6J("value",t.initialState),o.xp6(2),o.Oqu(o.lcZ(13,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(16,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.xp6(3),o.hij(" ",o.lcZ(19,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),": "),o.xp6(3),o.Q6J("value",t.extensionState),o.xp6(2),o.Oqu(o.lcZ(24,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(27,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.xp6(2),o.Q6J("ngIf","group"===t.entity&&t.autoRegistrationEnabled)}}let w=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.registrarManager=i,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(t=>{this.dialogRef.close(t)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.so),o.Y36(n.WI),o.Y36(s.tk))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["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","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","ngModelChange"],[1,"w-100"],["disableOptionCentering","",3,"value","valueChange"],["value","auto"],["value","manual"],[4,"ngIf"]],template:function(t,e){1&t&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,f,1,0,"mat-spinner",1),o.YNc(5,b,29,25,"div",2),o.TgZ(6,"div",3),o.TgZ(7,"button",4),o.NdJ("click",function(){return e.onCancel()}),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",5),o.NdJ("click",function(){return e.submit()}),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.Tol(e.theme),o.xp6(2),o.Oqu(o.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading),o.xp6(3),o.hij(" ",o.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),o.xp6(2),o.Q6J("disabled",e.loading),o.xp6(1),o.hij(" ",o.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},directives:[n.uh,r.O5,n.H8,a.lW,c.$g,n.xY,u.KE,l.Nt,h.Fj,h.JJ,h.On,d.gD,p.ey],pipes:[g.X$],styles:[""]}),t})()},86593:function(t,e,i){"use strict";i.d(e,{C:function(){return H}});var n=i(31572),s=i(58623),o=i(67033),r=i(4230),a=i(27613),c=i(88426),u=i(82819),l=i(61511),h=i(29236),d=i(43691),p=i(36922),g=i(84534),f=i(39571),m=i(48160),b=i(22196),w=i(35887);let _=(()=>{class t{transform(t){return(0,a.kN)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"userEmail",type:t,pure:!0}),t})(),y=(()=>{class t{transform(t){return(0,a.$0)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"userLogins",type:t,pure:!0}),t})();function A(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",19),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw(2);return e?i.masterToggle():null}),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function v(t,e){if(1&t&&(n.TgZ(0,"th",17),n.YNc(1,A,1,3,"mat-checkbox",18),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",t.selection.isMultipleSelection())}}function T(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",20),n.TgZ(1,"mat-checkbox",21),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function C(t,e){1&t&&n._UZ(0,"th",17)}function S(t,e){1&t&&(n.TgZ(0,"mat-icon",23),n.ALo(1,"translate"),n._uU(2," account_circle "),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function E(t,e){1&t&&(n.TgZ(0,"mat-icon",23),n.ALo(1,"translate"),n._uU(2," traffic "),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"MANAGERS_LIST.SERVICE"))}function k(t,e){if(1&t&&(n.TgZ(0,"td",20),n.YNc(1,S,3,3,"mat-icon",22),n.YNc(2,E,3,3,"mat-icon",22),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",!t.serviceUser),n.xp6(1),n.Q6J("ngIf",t.serviceUser)}}function x(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.ID")))}function R(t,e){if(1&t&&(n.TgZ(0,"td",20),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",t.id," ")}}function I(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.NAME")))}function O(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function P(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function D(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userVo"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function M(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userEmail"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function N(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userLogins"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function F(t,e){1&t&&n._UZ(0,"tr",26)}const Z=function(t){return["/admin/users",t]};function B(t,e){if(1&t&&n._UZ(0,"tr",27),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disableRouting),n.Q6J("perunWebAppsForceRouterLink",i.disableRouting?null:n.VKq(4,Z,t.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.VKq(6,Z,t.id))}}function q(t,e){1&t&&(n.TgZ(0,"app-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}function U(t,e){1&t&&(n.TgZ(0,"app-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let H=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.selection=new r.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.pageSize=10,this.disableRouting=!1,this.filter="",this.page=new n.vpe,this.pageSizeOptions=a.f7}set matSort(t){this.sort=t,this.setDataSource()}getDataForColumn(t,e){var i;switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"true":"false";case"name":return t?t.lastName?t.lastName:null!==(i=t.firstName)&&void 0!==i?i:"":"";case"organization":return(0,a.OV)(t);case"email":return(0,a.kN)(t);case"logins":return(0,a.lt)(t);default:return""}}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"service-user":"user";case"name":return t?(0,a.bD)(t):"";case"organization":return(0,a.OV)(t);case"email":return(0,a.kN)(t);case"logins":return(0,a.lt)(t);default:return""}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filter=this.filter,this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getDataForColumn,this))}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new o.by(this.users),this.dataSource.paginator=this.child.paginator,this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filter,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.x4),n.Y36(c.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-users-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(a.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",filter:"filter"},outputs:{page:"page"},features:[n.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","user"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,v,2,1,"th",4),n.YNc(5,T,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,C,1,0,"th",4),n.YNc(8,k,3,2,"td",5),n.BQk(),n.ynx(9,7),n.YNc(10,x,3,3,"th",8),n.YNc(11,R,2,1,"td",5),n.BQk(),n.ynx(12,9),n.YNc(13,I,3,3,"th",8),n.YNc(14,O,3,3,"td",10),n.BQk(),n.ynx(15,11),n.YNc(16,P,3,3,"th",8),n.YNc(17,D,3,3,"td",10),n.BQk(),n.ynx(18,12),n.YNc(19,M,3,3,"th",8),n.YNc(20,L,3,3,"td",10),n.BQk(),n.ynx(21,13),n.YNc(22,N,3,3,"th",8),n.YNc(23,z,3,3,"td",10),n.BQk(),n.YNc(24,F,1,0,"tr",14),n.YNc(25,B,1,8,"tr",15),n.qZA(),n.qZA(),n.qZA(),n.YNc(26,q,3,3,"app-alert",16),n.YNc(27,U,3,3,"app-alert",16)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(22),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.users.length),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.users.length))},directives:[u.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,d.Hw,p.gM,s.nU,o.XQ,o.Gk,g.Kd,g.YH,f.w],pipes:[m.X$,b.d,w.Z,_,y],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},65050:function(t,e,i){"use strict";i.d(e,{c:function(){return o}});var n=i(31572),s=i(48160);let o=(()=>{class t{constructor(t){this.translateService=t,this.returnData=""}transform(t){switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(t=>{this.returnData=t});break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_HIDDEN").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"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_SHOW").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;default:return t}return this.returnData}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.sK,16))},t.\u0275pipe=n.Yjl({name:"applicationFormItemType",type:t,pure:!0}),t})()},84650:function(t,e,i){"use strict";i.d(e,{h:function(){return o}});var n=i(31572),s=i(48160);let o=(()=>{class t{constructor(t){this.translate=t,this.returnData=""}transform(t){switch(t){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=t}return this.returnData}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.sK,16))},t.\u0275pipe=n.Yjl({name:"applicationState",type:t,pure:!1}),t})()},99373:function(t,e,i){"use strict";i.d(e,{A:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){return t.substring(40)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"extSourceType",type:t,pure:!0}),t})()},35887:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var n=i(27613),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.OV)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"userVo",type:t,pure:!0}),t})()},28780:function(t,e,i){"use strict";i.d(e,{m:function(){return Et}});var n=i(61511),s=i(57629),o=i(40084),r=i(15980),a=i(29236),c=i(71522),u=i(15812),l=i(84608),h=i(27679),d=i(45001),p=i(66283),g=i(43691),f=i(80340),m=i(73005),b=i(45994),w=i(67806),_=i(54810),y=i(4786),A=i(25122),v=i(27521),T=i(71403),C=i(58623),S=i(67033),E=i(55109),k=i(36922),x=i(91010),R=i(27439),I=i(41050),O=i(10033),P=i(8055),D=i(70663),M=i(16073),L=i(24081),N=i(17),z=i(88426),F=i(31572),Z=i(84534),B=i(48160);const q=["collapse"],U=function(){return{color:"linkTextColor"}};function H(t,e){1&t&&(F.TgZ(0,"mat-icon",14),F._uU(1,"keyboard_arrow_right"),F.qZA()),2&t&&F.Q6J("ngStyle",F.DdM(1,U))}function j(t,e){1&t&&(F.TgZ(0,"mat-icon",14),F._uU(1,"keyboard_arrow_down"),F.qZA()),2&t&&F.Q6J("ngStyle",F.DdM(1,U))}function G(t,e){if(1&t&&(F.TgZ(0,"span",12),F.YNc(1,H,2,2,"mat-icon",13),F.YNc(2,j,2,2,"mat-icon",13),F.qZA()),2&t){const t=F.oxw().$implicit,e=F.oxw(2);F.xp6(1),F.Q6J("ngIf",!e.isActive(e.currentUrl,t.showChildrenRegex)),F.xp6(1),F.Q6J("ngIf",e.isActive(e.currentUrl,t.showChildrenRegex))}}const Y=function(t,e){return{color:t,"border-color":e}};function V(t,e){if(1&t){const t=F.EpF();F.TgZ(0,"a",17),F.NdJ("click",function(){const e=F.CHM(t).$implicit;return F.oxw(4).navigate(e.url)}),F._uU(1),F.ALo(2,"translate"),F.qZA()}if(2&t){const t=e.$implicit,i=F.oxw(4);F.ekj("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),F.Q6J("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:"")("ngStyle",F.WLB(9,Y,i.linkTextColor,i.linkTextColor)),F.xp6(1),F.hij(" ",F.lcZ(2,7,t.label)," ")}}function K(t,e){if(1&t&&(F.TgZ(0,"div",15),F.YNc(1,V,3,12,"a",16),F.qZA()),2&t){const t=F.oxw().$implicit;F.Q6J("@rollInOut",void 0),F.xp6(1),F.Q6J("ngForOf",null==t?null:t.children)}}function J(t,e){if(1&t){const t=F.EpF();F.TgZ(0,"div"),F.TgZ(1,"a",9),F.NdJ("click",function(){const e=F.CHM(t).$implicit;return F.oxw(2).navigate(e.url)}),F._uU(2),F.ALo(3,"translate"),F.YNc(4,G,3,2,"span",10),F.qZA(),F.YNc(5,K,2,2,"div",11),F.qZA()}if(2&t){const t=e.$implicit,i=F.oxw(2);F.xp6(1),F.ekj("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),F.Q6J("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:"")("ngStyle",F.WLB(11,Y,i.linkTextColor,i.linkTextColor)),F.xp6(1),F.hij(" ",F.lcZ(3,9,t.label)," "),F.xp6(2),F.Q6J("ngIf",t.children),F.xp6(1),F.Q6J("ngIf",i.isActive(i.currentUrl,t.showChildrenRegex))}}function $(t,e){if(1&t&&(F.TgZ(0,"div"),F.YNc(1,J,6,14,"div",8),F.qZA()),2&t){const t=F.oxw();F.Q6J("@rollInOut",void 0),F.xp6(1),F.Q6J("ngForOf",t.item.links)}}const Q=function(t,e){return{background:t,"border-top":e}},W=function(t){return{color:t}},X=function(){return{color:"currentColor"}},tt=function(t){return{background:t}};let et=(()=>{class t{constructor(t,e){this.router=t,this.store=e,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.iconColor=this.store.get("theme","sidemenu_item_icon_color"),this.dividerStyle="1px solid "+this.store.get("theme","sidemenu_divider_color"),this.currentUrl=t.url,t.events.subscribe(t=>{t instanceof s.m2&&(this.currentUrl=t.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(t,e){return new RegExp(e).test(t)}navigate(t){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(t)):this.router.navigate(t)}}return t.\u0275fac=function(e){return new(e||t)(F.Y36(s.F0),F.Y36(z.d6))},t.\u0275cmp=F.Xpm({type:t,selectors:[["app-side-menu-item"]],viewQuery:function(t,e){if(1&t&&F.Gf(q,5),2&t){let t;F.iGM(t=F.CRH())&&(e.collapseDiv=t.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(t,e){1&t&&(F.TgZ(0,"div",0),F.TgZ(1,"div",1),F.NdJ("click",function(){return e.toggle()}),F.TgZ(2,"div",2),F.TgZ(3,"a",3),F.TgZ(4,"div"),F._UZ(5,"mat-icon",4),F.qZA(),F.TgZ(6,"div",5),F._uU(7),F.ALo(8,"translate"),F.qZA(),F.qZA(),F.qZA(),F.qZA(),F.TgZ(9,"div"),F.TgZ(10,"div",6),F.YNc(11,$,2,2,"div",7),F.qZA(),F.qZA(),F.qZA()),2&t&&(F.xp6(1),F.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",F.WLB(18,Q,e.item.backgroundColorCss,e.index?e.dividerStyle:"none")),F.xp6(1),F.Gre("entity-menu-item-link ",e.item.labelClass,""),F.Q6J("perunWebAppsMiddleClickRouterLink",e.item.baseLink),F.xp6(1),F.Q6J("ngStyle",F.VKq(21,W,e.item.textColorCss)),F.xp6(2),F.Q6J("ngStyle",F.DdM(23,X))("svgIcon",e.item.icon),F.xp6(2),F.Oqu(F.lcZ(8,16,e.item.label)),F.xp6(2),F.Q6J("@openClose",e.expanded?"open":"closed"),F.xp6(1),F.Gre("side-entity-menu ",e.item.linksClass,""),F.Q6J("ngStyle",F.VKq(24,tt,e.linkBgColor)),F.xp6(1),F.Q6J("ngIf",e.showLinks))},directives:[c.wG,n.PC,Z.YH,g.Hw,n.O5,n.sg,n.mk],pipes:[B.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:[N.BQ,N.Ly]}}),t})(),it=(()=>{class t{transform(t){if(void 0===t.value)return"";switch(t.type){case"java.lang.String":return t.value;case"java.lang.Integer":return t.value.toString();case"java.util.ArrayList":return this.whenValueIsArray(t.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(t.value);case"java.lang.Boolean":return t.value.toString();default:return t.value}}whenValueIsArray(t){let e="";return t.forEach(function(t){e=e.concat(t+", ")}),e}whenValueIsMap(t){let e="";return t.forEach((t,i)=>{e=e.concat(i+": "+t+", ")}),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=F.Yjl({name:"anyToString",type:t,pure:!0}),t})();const nt=["collapse"],st=function(){return{color:"linkTextColor"}};function ot(t,e){1&t&&(F.TgZ(0,"mat-icon",12),F._uU(1,"keyboard_arrow_right"),F.qZA()),2&t&&F.Q6J("ngStyle",F.DdM(1,st))}function rt(t,e){1&t&&(F.TgZ(0,"mat-icon",12),F._uU(1,"keyboard_arrow_down"),F.qZA()),2&t&&F.Q6J("ngStyle",F.DdM(1,st))}function at(t,e){if(1&t&&(F.TgZ(0,"span",10),F.YNc(1,ot,2,2,"mat-icon",11),F.YNc(2,rt,2,2,"mat-icon",11),F.qZA()),2&t){const t=F.oxw().$implicit,e=F.oxw();F.xp6(1),F.Q6J("ngIf",!e.isActive(e.currentUrl,t.showChildrenRegex)),F.xp6(1),F.Q6J("ngIf",e.isActive(e.currentUrl,t.showChildrenRegex))}}const ct=function(t,e){return{color:t,"border-color":e}};function ut(t,e){if(1&t){const t=F.EpF();F.TgZ(0,"a",14),F.NdJ("click",function(){const e=F.CHM(t).$implicit;return F.oxw(3).navigate(e.url)}),F._uU(1),F.ALo(2,"translate"),F.qZA()}if(2&t){const t=e.$implicit,i=F.oxw(3);F.ekj("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),F.Q6J("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",F.WLB(9,ct,i.linkTextColor,i.linkTextColor))("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:""),F.xp6(1),F.hij(" ",F.lcZ(2,7,t.label)," ")}}function lt(t,e){if(1&t&&(F.TgZ(0,"div"),F.YNc(1,ut,3,12,"a",13),F.qZA()),2&t){const t=F.oxw().$implicit;F.Q6J("@rollInOut",void 0),F.xp6(1),F.Q6J("ngForOf",null==t?null:t.children)}}function ht(t,e){if(1&t){const t=F.EpF();F.TgZ(0,"div"),F.TgZ(1,"a",7),F.NdJ("click",function(){const e=F.CHM(t).$implicit;return F.oxw().navigate(e.url)}),F._uU(2),F.ALo(3,"translate"),F.YNc(4,at,3,2,"span",8),F.qZA(),F.YNc(5,lt,2,2,"div",9),F.qZA()}if(2&t){const t=e.$implicit,i=F.oxw();F.xp6(1),F.ekj("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),F.Q6J("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",F.WLB(11,ct,i.linkTextColor,i.linkTextColor))("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:""),F.xp6(1),F.hij(" ",F.lcZ(3,9,t.label)," "),F.xp6(2),F.Q6J("ngIf",t.children),F.xp6(1),F.Q6J("ngIf",i.isActive(i.currentUrl,t.showChildrenRegex))}}const dt=function(t){return{background:t}},pt=function(t){return{color:t}},gt=function(){return{color:"currentColor"}};let ft=(()=>{class t{constructor(t,e){this.router=t,this.store=e,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.iconColor=this.store.get("theme","sidemenu_item_icon_color"),this.currentUrl=t.url,t.events.subscribe(t=>{t instanceof s.m2&&(this.currentUrl=t.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(t,e){return new RegExp(e).test(t)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(t){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(t)):this.router.navigate(t)}}return t.\u0275fac=function(e){return new(e||t)(F.Y36(s.F0),F.Y36(z.d6))},t.\u0275cmp=F.Xpm({type:t,selectors:[["app-side-menu-root-item"]],viewQuery:function(t,e){if(1&t&&F.Gf(nt,5),2&t){let t;F.iGM(t=F.CRH())&&(e.collapseDiv=t.first)}},inputs:{item:"item",index:"index",showOpen:"showOpen",sideNav:"sideNav"},features:[F.TTD],decls:12,vars:27,consts:[[1,"entity-menu-item"],["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","ngStyle","ngClass","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"],["matRipple","","class","pl-5 clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","activated","ngClass","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","ngClass","click"]],template:function(t,e){1&t&&(F.TgZ(0,"div",0),F.TgZ(1,"div",1),F.NdJ("click",function(){return e.toggle()}),F.TgZ(2,"div"),F.TgZ(3,"a",2),F.TgZ(4,"div"),F._UZ(5,"mat-icon",3),F.qZA(),F.TgZ(6,"div",4),F._uU(7),F.ALo(8,"translate"),F.qZA(),F.qZA(),F.qZA(),F.qZA(),F.TgZ(9,"div"),F.TgZ(10,"div",5),F.YNc(11,ht,6,14,"div",6),F.qZA(),F.qZA(),F.qZA()),2&t&&(F.xp6(1),F.ekj("root-header-activated",e.isActive(e.currentUrl,e.item.baseColorClassRegex)),F.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",F.VKq(20,dt,e.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",e.item.baseLink),F.xp6(1),F.Gre("entity-menu-item-link ",e.item.labelClass,""),F.xp6(1),F.Q6J("ngStyle",F.VKq(22,pt,e.item.textColorCss)),F.xp6(2),F.Q6J("ngStyle",F.DdM(24,gt))("svgIcon",e.item.icon),F.xp6(2),F.Oqu(F.lcZ(8,18,e.item.label)),F.xp6(2),F.Q6J("@openClose",e.expanded?"open":"closed"),F.xp6(1),F.Gre("side-entity-menu ",e.item.linksClass,""),F.Q6J("ngStyle",F.VKq(25,dt,e.linkBgColor)),F.xp6(1),F.Q6J("ngForOf",e.item.links))},directives:[c.wG,n.PC,Z.YH,g.Hw,n.sg,n.mk,n.O5],pipes:[B.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:[N.BQ,N.Ly]}}),t})();var mt=i(88975),bt=i(4253),wt=i(22727),_t=i(99373),yt=i(41939),At=i(7423),vt=i(22280),Tt=i(30146),Ct=i(85250),St=i(27613);let Et=(()=>{class t{constructor(t){this.translate=t,t.addLangs(["en","cs"])}}return t.\u0275fac=function(e){return new(e||t)(F.LFG(B.sK))},t.\u0275mod=F.oAB({type:t}),t.\u0275inj=F.cJS({providers:[it,_t.A],imports:[[n.ez,s.Bz,o.Bb,f.c,p.lN,M.UX,M.u5,g.Ps,A.SJ,d.To,B.aw.forChild({}),r.ot,C.JX,S.p0,E.Nh,x.dp,r.ot,a.p9,l.Is,y.LD,T.ZX,w.Cq,b.Cv,k.AV,v.rP,u.FA,c.XK,_.Fk,h.t,c.si,m.TU,R.QW,D.T5,mt._t,R.QW,O.Hi,P.Tx,bt.Cl,wt.r,I.g,yt.ez,At.r,vt.d4,Tt.Co,Ct.ie,St.Je],Tt.Co,o.Bb,f.c,s.Bz,M.UX,M.u5,g.Ps,A.SJ,B.aw,C.JX,S.p0,E.Nh,x.dp,r.ot,a.p9,l.Is,y.LD,T.ZX,w.Cq,b.Cv,k.AV,v.rP,u.FA,c.XK,_.Fk,h.t,R.QW,D.T5,c.si,m.TU,mt._t,O.Hi,O.Hi,d.To,P.Tx,bt.Cl,bt.Cl,bt.Cl,At.r]}),t})();F.B6R(L.V,[ft,n.sg,et,n.O5],[])},75585:function(t,e,i){"use strict";i.d(e,{V:function(){return l}});var n=i(88426),s=i(33642),o=i(27613),r=i(22280),a=i(67004),c=i(31572),u=i(48160);let l=(()=>{class t{constructor(t,e,i,n,s,o,r){this.translate=t,this.authResolver=e,this.store=i,this.apiRequest=n,this.attributesManager=s,this.notificator=o,this.guiAuthResolver=r,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:"^dont-use$",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.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$"}]}}parseFacility(t){return{label:t.name,baseLink:[`/facilities/${t.id}`],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(t),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(t,e){const i=(new r.r5).transform(t,e);return{label:t.name,baseLink:[i],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(i,e?"/organizations":"/facilities",t),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getResourceLinks(t,e,i){const n=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[t],activatedRegex:`${e}/\\d+/resources/\\d+$`}];return this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[t,"groups"],activatedRegex:`${e}/\\d+/resources/\\d+/groups$`}),this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[t,"services"],activatedRegex:`${e}/\\d+/resources/\\d+/services$`}),this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[t,"members"],activatedRegex:`${e}/\\d+/resources/\\d+/members$`}),this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[t,"tags"],activatedRegex:`${e}/\\d+/resources/\\d+/tags$`}),n.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[t,"attributes"],activatedRegex:`${e}/\\d+/resources/\\d+/attributes$`}),this.authResolver.isManagerPagePrivileged(i)&&n.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[t,"settings"],activatedRegex:`${e}/\\d+/resources/\\d+/settings$`,children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[t,"settings","managers"],activatedRegex:`${e}/\\d+/resources/\\d+/settings/managers$`}],showChildrenRegex:`${e}/\\d+/resources/\\d+/settings`}),n}parseGroup(t){return{label:t.name,baseLink:[`/organizations/${t.voId}/groups/${t.id}`],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(t),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(t){return{label:t.name,baseLink:[`/organizations/${t.id}`],links:this.getVoLinks(t),colorClass:"vo-item",icon:"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}parseMember(t,e){return{label:(0,o.bD)(t.user),baseLink:[`/organizations/${t.voId}/members/${t.id}`],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(t,e),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(t,e,i){return{label:(0,o.bD)(t),baseLink:[e],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(t,e,i),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(t){return{label:t.name,baseLink:[`/admin/services/${t.id}`],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${t.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${t.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${t.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(t){const e=[];if(e.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${t.id}`],activatedRegex:"/organizations/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${t.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${t.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])){const i=[{label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${t.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}];this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${t.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${t.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),e.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${t.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:i,showChildrenRegex:"/organizations/\\d+/resources"})}this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[t])&&e.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${t.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${t.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),e.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${t.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.guiAuthResolver.isAuthorized("getMembersCount_Vo_Status_policy",[t])&&this.guiAuthResolver.isAuthorized("getMembersCount_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${t.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"});const i=this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[t]),n=this.authResolver.isManagerPagePrivileged(t),s=this.authResolver.isThisVoAdminOrObserver(t.id);if(n||i||s){const o=[];s&&o.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${t.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),n&&o.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${t.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),s&&o.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${t.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),s&&o.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${t.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),i&&o.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${t.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),e.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${t.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:o,showChildrenRegex:"/organizations/\\d+/settings"})}return e}getUserLinks(t,e,i){const n=[];return n.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[e],activatedRegex:`${i}$`}),n.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${e}/organizations`],activatedRegex:`${i}/organizations`}),n.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${e}/groups`],activatedRegex:`${i}/groups`}),n.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${e}/identities`],activatedRegex:`${i}/identities`}),n.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${e}/facilities`],activatedRegex:`${i}/facilities`}),n.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${e}/resources`],activatedRegex:`${i}/resources`}),n.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${e}/attributes`],activatedRegex:`${i}/attributes`}),n.push({label:"MENU_ITEMS.USER.ROLES",url:[`${e}/roles`],activatedRegex:`^${e}/roles`}),n.push({label:"MENU_ITEMS.ADMIN.SETTINGS",url:[`${e}/settings`],activatedRegex:`${i}/settings$`,children:[],showChildrenRegex:`${i}/settings`}),n[n.length-1].children.push(t.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${e}/settings/associated-users`],activatedRegex:`^${e}/settings/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${e}/settings/service-identities`],activatedRegex:`^${e}/settings/service-identities`}),n}getMemberLinks(t,e){const i=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${t.voId}/members/${t.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.authResolver.isAuthorized("getMemberGroups_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`//organizations/${t.voId}/members/${t.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`//organizations/${t.voId}/members/${t.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${t.voId}/members/${t.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),i.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${t.voId}/members/${t.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),i}getFacilityLinks(t){const e=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${t.id}`],activatedRegex:"/facilities/\\d+$"}];this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${t.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${t.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${t.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${t.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${t.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.authResolver.isFacilityAdmin()&&e.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${t.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),e.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",t.id,"attributes"],activatedRegex:"/facilities/\\d+/attributes$"});const i=this.authResolver.isAuthorized("getBansForFacility_int_policy",[t]),n=this.authResolver.isAuthorized("getRichAdmins_Facility_List_boolean_boolean_policy",[t]),s=this.authResolver.isAuthorized("getOwners_Facility_policy",[t]),o=this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[t]);if(i||n||s||o){const r=[];s&&r.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",t.id,"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),n&&r.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",t.id,"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),o&&r.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${t.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),i&&r.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",t.id,"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),e.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",t.id,"settings"],activatedRegex:"/facilities/\\d+/settings$",children:r,showChildrenRegex:"/facilities/\\d+/settings"})}return e}getGroupLinks(t){const e=[],i=[];e.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${t.voId}/groups/${t.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[t])&&e.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${t.voId}/groups/${t.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[t])&&"members"!==t.name&&e.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${t.voId}/groups/${t.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[t])&&e.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${t.voId}/groups/${t.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[t])&&e.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${t.voId}/groups/${t.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),e.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${t.voId}/groups/${t.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"});const n=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[t]),s=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[t]),o=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[t]);return n&&s&&o&&e.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${t.voId}/groups/${t.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(t.id,a.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{i.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${t.voId}/groups/${t.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t)}),this.authResolver.isManagerPagePrivileged(t)&&i.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${t.voId}/groups/${t.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${t.voId}/groups/${t.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${t.voId}/groups/${t.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${t.voId}/groups/${t.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${t.voId}/groups/${t.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==i.length&&e.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${t.voId}/groups/${t.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:i,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),e}}return t.\u0275fac=function(e){return new(e||t)(c.LFG(u.sK),c.LFG(n.x4),c.LFG(n.d6),c.LFG(n.F5),c.LFG(s.H8),c.LFG(n.V6),c.LFG(n.x4))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},24081:function(t,e,i){"use strict";i.d(e,{V:function(){return w}});var n=i(61601),s=i(75585),o=i(88426),r=i(17),a=i(31572),c=i(48958);function u(t,e){if(1&t&&(a.TgZ(0,"div",8),a._UZ(1,"app-side-menu-item",9),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)}}function l(t,e){if(1&t&&(a.TgZ(0,"div",8),a._UZ(1,"app-side-menu-item",10),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)("showLinks",i===n.accessItems.length-1)}}function h(t,e){if(1&t&&a._UZ(0,"app-side-menu-root-item",2),2&t){const t=a.oxw();a.Q6J("sideNav",t.sideNav)("item",t.facilityItem)}}function d(t,e){if(1&t&&(a.TgZ(0,"div",8),a._UZ(1,"app-side-menu-item",10),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw(2);a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)("showLinks",i===n.facilityItems.length-1)}}function p(t,e){if(1&t&&(a.TgZ(0,"div"),a.YNc(1,d,2,5,"div",3),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngForOf",t.facilityItems)}}function g(t,e){if(1&t&&(a.TgZ(0,"div",8),a._UZ(1,"app-side-menu-item",10),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)("showLinks",i===n.userItems.length-1)}}function f(t,e){if(1&t&&a._UZ(0,"app-side-menu-root-item",6),2&t){const t=a.oxw();a.Q6J("sideNav",t.sideNav)("showOpen",t.adminItemOpened)("item",t.adminItem)}}function m(t,e){if(1&t&&(a.TgZ(0,"div",8),a._UZ(1,"app-side-menu-item",10),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw(2);a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)("showLinks",!0)}}function b(t,e){if(1&t&&(a.TgZ(0,"div"),a.YNc(1,m,2,5,"div",3),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngForOf",t.adminItems)}}let w=(()=>{class t{constructor(t,e,i,n){this.sideMenuService=t,this.sideMenuItemService=e,this.authResolver=i,this.store=n,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}ngOnInit(){this.mobileView=window.innerWidth<=n.y.minWidth,this.mobileView?this.sideNav.close():this.sideNav.open(),this.sideMenuService.facilityItemsChange.subscribe(t=>{this.setFacilityItems(t)}),this.sideMenuService.accessItemsChange.subscribe(t=>{this.setAccessItems(t)}),this.sideMenuService.adminItemsChange.subscribe(t=>{this.setAdminItems(t)}),this.sideMenuService.userItemsChange.subscribe(t=>{this.setUserItems(t)}),this.sideMenuService.homeItemsChange.subscribe(t=>{this.setHomeItems(t)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.adminItems,[])}setHomeItems(t){this.resetExceptHome(),this.setNewItems(this.homeItems,t)}setFacilityItems(t){this.resetExceptFacility(),this.setNewItems(this.facilityItems,t)}setAccessItems(t){this.resetExceptAccess(),this.setNewItems(this.accessItems,t)}setUserItems(t){this.userItemOpened=!0,this.resetExceptUser(),this.setNewItems(this.userItems,t)}setAdminItems(t){this.adminItemOpened=0===t.length,this.resetExceptAdmin(),this.setNewItems(this.adminItems,t)}setNewItems(t,e){const i=t.length>e.length?t.length:e.length;for(let n=0;nt.length-1)t.push(e[n]);else{if(n>e.length-1){const e=t.length;for(let i=0;i{class t{constructor(t){this.dialogRef=t}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.so))},t.\u0275cmp=n.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n.TgZ(4,"div",2),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"div"),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"div",3),n._uU(11),n.ALo(12,"translate"),n.qZA(),n.qZA(),n.TgZ(13,"div",4),n.TgZ(14,"button",5),n.NdJ("click",function(){return e.onCancel()}),n._uU(15),n.ALo(16,"translate"),n.qZA(),n.TgZ(17,"button",6),n.NdJ("click",function(){return e.submit()}),n._uU(18),n.ALo(19,"translate"),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),n.xp6(4),n.Oqu(n.lcZ(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")),n.xp6(3),n.Oqu(n.lcZ(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),n.xp6(3),n.Oqu(n.lcZ(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),n.xp6(4),n.hij(" ",n.lcZ(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),n.xp6(3),n.hij(" ",n.lcZ(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},directives:[o.uh,o.xY,o.H8,r.lW],pipes:[a.X$],styles:[""]}),t})();var u=i(88426),l=i(75954),h=i(27613),d=i(57629),p=i(61511),g=i(67806),f=i(67033),m=i(43691),b=i(36922),w=i(16073),_=i(39571),y=i(65050);const A=["table"];function v(t,e){1&t&&n._UZ(0,"mat-spinner",3)}function T(t,e){1&t&&n._UZ(0,"th",24)}function C(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",25),n.TgZ(1,"button",26),n.NdJ("mousedown",function(){return n.CHM(t),n.oxw(2).dragDisabled=!1}),n.TgZ(2,"mat-icon"),n._uU(3,"drag_indicator"),n.qZA(),n.qZA(),n.qZA()}}function S(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")))}function E(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.shortname)}}function k(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")))}function x(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"applicationFormItemType"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t.type))}}function R(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")))}function I(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",30),n._uU(2,"lock"),n.qZA(),n._UZ(3,"br"),n._uU(4),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("matTooltip",e.disabledTooltip(t)),n.xp6(3),n.hij(" ",e.disabledHiddenDependency(t,t.disabled,t.disabledDependencyItemId)," ")}}function O(t,e){if(1&t&&(n.TgZ(0,"td",28),n.YNc(1,I,5,2,"div",29),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","NEVER"!==t.disabled)}}function P(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")))}function D(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",30),n._uU(2,"visibility_off"),n.qZA(),n._UZ(3,"br"),n._uU(4),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("matTooltip",e.hiddenTooltip(t)),n.xp6(3),n.hij(" ",e.disabledHiddenDependency(t,t.hidden,t.hiddenDependencyItemId)," ")}}function M(t,e){if(1&t&&(n.TgZ(0,"td",28),n.YNc(1,D,5,2,"div",29),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","NEVER"!==t.hidden)}}function L(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")))}function N(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",32),n.qZA(),n.qZA())}function z(t,e){1&t&&(n.TgZ(0,"div",33),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_VALUE")," "))}function F(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",34),n.qZA(),n.qZA())}function Z(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",35),n._UZ(3,"br"),n._UZ(4,"input",32),n.qZA(),n.qZA())}function B(t,e){if(1&t&&(n.TgZ(0,"div"),n._UZ(1,"input",38),n._uU(2),n._UZ(3,"br"),n.qZA()),2&t){const t=e.$implicit;n.xp6(2),n.hij(" ",t,"")}}function q(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n.YNc(2,B,4,1,"div",36),n._UZ(3,"input",37),n.ALo(4,"translate"),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Q6J("ngForOf",e.getLocalizedOptions(t)),n.xp6(1),n.s9C("value",n.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function U(t,e){if(1&t&&(n.TgZ(0,"div"),n._UZ(1,"span",39),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("innerHTML",e.getLocalizedLabel(t),n.oJD)}}function H(t,e){if(1&t&&(n.TgZ(0,"option"),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t)}}function j(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"select"),n.YNc(2,H,2,1,"option",36),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Q6J("ngForOf",e.getLocalizedOptions(t))}}function G(t,e){1&t&&(n.TgZ(0,"div"),n._UZ(1,"textarea"),n.qZA())}function Y(t,e){if(1&t&&(n.TgZ(0,"option",43),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t)}}function V(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",32),n.qZA(),n.qZA())}function K(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div"),n.TgZ(1,"select",40),n.NdJ("ngModelChange",function(e){n.CHM(t);const i=n.oxw().$implicit;return n.oxw(2).mapForCombobox[i.id]=e}),n.YNc(2,Y,2,1,"option",41),n.TgZ(3,"option",42),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA(),n.YNc(6,V,3,0,"div",29),n.qZA()}if(2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("ngModel",e.mapForCombobox[t.id]),n.xp6(1),n.Q6J("ngForOf",e.getLocalizedOptions(t)),n.xp6(2),n.Oqu(n.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")),n.xp6(2),n.Q6J("ngIf","true"===e.mapForCombobox[t.id])}}function J(t,e){if(1&t&&(n.TgZ(0,"div"),n._UZ(1,"input",44),n._uU(2),n.qZA()),2&t){const t=e.$implicit;n.xp6(2),n.hij(" ",t," ")}}function $(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n.YNc(2,J,3,1,"div",36),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Q6J("ngForOf",e.getLocalizedOptions(t))}}function Q(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"button",45),n._uU(2),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Oqu(e.getLocalizedLabel(t))}}function W(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"select",46),n.TgZ(2,"option",47),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"option",48),n._uU(6,"(GMT -12:00) Eniwetok, Kwajalein"),n.qZA(),n.TgZ(7,"option",49),n._uU(8,"(GMT -11:00) Midway Island, Samoa"),n.qZA(),n.TgZ(9,"option",50),n._uU(10,"(GMT -10:00) Hawaii"),n.qZA(),n.TgZ(11,"option",51),n._uU(12,"(GMT -9:30) Taiohae"),n.qZA(),n.TgZ(13,"option",52),n._uU(14,"(GMT -9:00) Alaska"),n.qZA(),n.TgZ(15,"option",53),n._uU(16,"(GMT -8:00) Pacific Time (US & Canada)"),n.qZA(),n.TgZ(17,"option",54),n._uU(18,"(GMT -7:00) Mountain Time (US & Canada)"),n.qZA(),n.TgZ(19,"option",55),n._uU(20,"(GMT -6:00) Central Time (US & Canada), Mexico City"),n.qZA(),n.TgZ(21,"option",56),n._uU(22,"(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima"),n.qZA(),n.TgZ(23,"option",57),n._uU(24,"(GMT -4:30) Caracas"),n.qZA(),n.TgZ(25,"option",58),n._uU(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),n.qZA(),n.TgZ(27,"option",59),n._uU(28,"(GMT -3:30) Newfoundland"),n.qZA(),n.TgZ(29,"option",60),n._uU(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),n.qZA(),n.TgZ(31,"option",61),n._uU(32,"(GMT -2:00) Mid-Atlantic"),n.qZA(),n.TgZ(33,"option",62),n._uU(34,"(GMT -1:00) Azores, Cape Verde Islands"),n.qZA(),n.TgZ(35,"option",63),n._uU(36,"(GMT) Western Europe Time, London, Lisbon, Casablanca"),n.qZA(),n.TgZ(37,"option",64),n._uU(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),n.qZA(),n.TgZ(39,"option",65),n._uU(40,"(GMT +2:00) Kaliningrad, South Africa"),n.qZA(),n.TgZ(41,"option",66),n._uU(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),n.qZA(),n.TgZ(43,"option",67),n._uU(44,"(GMT +3:30) Tehran"),n.qZA(),n.TgZ(45,"option",68),n._uU(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),n.qZA(),n.TgZ(47,"option",69),n._uU(48,"(GMT +4:30) Kabul"),n.qZA(),n.TgZ(49,"option",70),n._uU(50,"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent"),n.qZA(),n.TgZ(51,"option",71),n._uU(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),n.qZA(),n.TgZ(53,"option",72),n._uU(54,"(GMT +5:45) Kathmandu, Pokhara"),n.qZA(),n.TgZ(55,"option",73),n._uU(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),n.qZA(),n.TgZ(57,"option",74),n._uU(58,"(GMT +6:30) Yangon, Mandalay"),n.qZA(),n.TgZ(59,"option",75),n._uU(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),n.qZA(),n.TgZ(61,"option",76),n._uU(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),n.qZA(),n.TgZ(63,"option",77),n._uU(64,"(GMT +8:45) Eucla"),n.qZA(),n.TgZ(65,"option",78),n._uU(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),n.qZA(),n.TgZ(67,"option",79),n._uU(68,"(GMT +9:30) Adelaide, Darwin"),n.qZA(),n.TgZ(69,"option",80),n._uU(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),n.qZA(),n.TgZ(71,"option",81),n._uU(72,"(GMT +10:30) Lord Howe Island"),n.qZA(),n.TgZ(73,"option",82),n._uU(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),n.qZA(),n.TgZ(75,"option",83),n._uU(76,"(GMT +11:30) Norfolk Island"),n.qZA(),n.TgZ(77,"option",84),n._uU(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),n.qZA(),n.TgZ(79,"option",85),n._uU(80,"(GMT +12:45) Chatham Islands"),n.qZA(),n.TgZ(81,"option",86),n._uU(82,"(GMT +13:00) Apia, Nukualofa"),n.qZA(),n.TgZ(83,"option",87),n._uU(84,"(GMT +14:00) Line Islands, Tokelau"),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.xp6(3),n.Oqu(n.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")))}function X(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"button",45),n._uU(2),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Oqu(e.getLocalizedLabel(t))}}function tt(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",44),n._uU(3," example group1 "),n._UZ(4,"br"),n._UZ(5,"input",44),n._uU(6," example group2 "),n._UZ(7,"br"),n._UZ(8,"input",44),n._uU(9," example group3 "),n.qZA(),n.qZA())}function et(t,e){if(1&t&&(n.TgZ(0,"td",25),n.YNc(1,N,3,0,"div",29),n.YNc(2,z,3,3,"div",31),n.YNc(3,F,3,0,"div",29),n.YNc(4,Z,5,0,"div",29),n.YNc(5,q,5,4,"div",29),n.YNc(6,U,2,1,"div",29),n.YNc(7,j,3,1,"div",29),n.YNc(8,G,2,0,"div",29),n.YNc(9,K,7,6,"div",29),n.YNc(10,$,3,1,"div",29),n.YNc(11,Q,3,1,"div",29),n.YNc(12,W,85,3,"div",29),n.YNc(13,X,3,1,"div",29),n.YNc(14,tt,10,0,"div",29),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","TEXTFIELD"===t.type||"VALIDATED_EMAIL"===t.type||"USERNAME"===t.type),n.xp6(1),n.Q6J("ngIf","FROM_FEDERATION_HIDDEN"===t.type),n.xp6(1),n.Q6J("ngIf","FROM_FEDERATION_SHOW"===t.type),n.xp6(1),n.Q6J("ngIf","PASSWORD"===t.type),n.xp6(1),n.Q6J("ngIf","RADIO"===t.type),n.xp6(1),n.Q6J("ngIf","HEADING"===t.type||"HTML_COMMENT"===t.type),n.xp6(1),n.Q6J("ngIf","SELECTIONBOX"===t.type),n.xp6(1),n.Q6J("ngIf","TEXTAREA"===t.type),n.xp6(1),n.Q6J("ngIf","COMBOBOX"===t.type),n.xp6(1),n.Q6J("ngIf","CHECKBOX"===t.type),n.xp6(1),n.Q6J("ngIf","SUBMIT_BUTTON"===t.type),n.xp6(1),n.Q6J("ngIf","TIMEZONE"===t.type),n.xp6(1),n.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===t.type),n.xp6(1),n.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===t.type)}}function it(t,e){1&t&&n._UZ(0,"th",24)}function nt(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",89),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).openManagingGroups(e)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"supervised_user_circle"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function st(t,e){if(1&t&&(n.TgZ(0,"td",25),n.YNc(1,nt,4,3,"button",88),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===t.type&&!t.forDelete)}}function ot(t,e){1&t&&n._UZ(0,"th",24)}function rt(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",92),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).edit(e)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"edit"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function at(t,e){1&t&&(n.TgZ(0,"div",93),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function ct(t,e){if(1&t&&(n.TgZ(0,"td",25),n.YNc(1,rt,4,3,"button",90),n.YNc(2,at,3,3,"div",91),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",!t.forDelete),n.xp6(1),n.Q6J("ngIf",t.forDelete)}}function ut(t,e){1&t&&n._UZ(0,"th",24)}function lt(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",95),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).delete(e)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"delete"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}function ht(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",89),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).restore(e)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"settings_backup_restore"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function dt(t,e){if(1&t&&(n.TgZ(0,"td",25),n.YNc(1,lt,4,3,"button",94),n.YNc(2,ht,4,3,"button",88),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",!t.forDelete),n.xp6(1),n.Q6J("ngIf",t.forDelete)}}function pt(t,e){1&t&&n._UZ(0,"tr",96)}function gt(t,e){if(1&t&&n._UZ(0,"tr",97),2&t){const t=e.$implicit,i=n.oxw(2);n.ekj("make-green",t.id<=0)("make-red",t.forDelete)("make-yellow",-1!==i.itemsChanged.indexOf(t.id)&&!t.forDelete&&t.id>0),n.Q6J("cdkDragData",t)}}function ft(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div",4),n.TgZ(1,"div",5),n.TgZ(2,"div",6),n.TgZ(3,"table",7,8),n.NdJ("cdkDropListDropped",function(e){return n.CHM(t),n.oxw().drop(e)}),n.ynx(5,9),n.YNc(6,T,1,0,"th",10),n.YNc(7,C,4,0,"td",11),n.BQk(),n.ynx(8,12),n.YNc(9,S,3,3,"th",10),n.YNc(10,E,2,1,"td",11),n.BQk(),n.ynx(11,13),n.YNc(12,k,3,3,"th",10),n.YNc(13,x,3,3,"td",11),n.BQk(),n.ynx(14,14),n.YNc(15,R,3,3,"th",15),n.YNc(16,O,2,1,"td",16),n.BQk(),n.ynx(17,17),n.YNc(18,P,3,3,"th",15),n.YNc(19,M,2,1,"td",16),n.BQk(),n.ynx(20,18),n.YNc(21,L,3,3,"th",10),n.YNc(22,et,15,14,"td",11),n.BQk(),n.ynx(23,19),n.YNc(24,it,1,0,"th",10),n.YNc(25,st,2,1,"td",11),n.BQk(),n.ynx(26,20),n.YNc(27,ot,1,0,"th",10),n.YNc(28,ct,3,2,"td",11),n.BQk(),n.ynx(29,21),n.YNc(30,ut,1,0,"th",10),n.YNc(31,dt,3,2,"td",11),n.BQk(),n.YNc(32,pt,1,0,"tr",22),n.YNc(33,gt,1,7,"tr",23),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(3),n.Q6J("cdkDropListDisabled",t.dragDisabled)("dataSource",t.dataSource),n.xp6(29),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns)}}function mt(t,e){1&t&&(n.TgZ(0,"app-alert",98),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let bt=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.notificator=e,this.router=i,this.translate=s,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new n.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}disabledHiddenDependency(t,e,i){let n="";if("IF_EMPTY"===e||"IF_PREFILLED"===e){const t=null===i?"":this.applicationFormItems.find(t=>t.id===i).shortname;n="IF_EMPTY"===e?`(${this.ifEmpty} ${t})`:`(${this.ifPrefilled} ${t})`}return n}disabledTooltip(t){let e;switch(t.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return e=null===t.disabledDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${e} ${this.isEmpty}`;case"IF_PREFILLED":return e=null===t.disabledDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${e} ${this.isPrefilled}`}}hiddenTooltip(t){let e;switch(t.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return e=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${e} ${this.isEmpty}`;case"IF_PREFILLED":return e=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${e} ${this.isPrefilled}`}}edit(t){const e=(0,h.kZ)();e.width="600px",e.height="600px",e.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:t,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(l._,e).afterClosed().subscribe(e=>{e&&(this.itemsChanged.push(t.id),this.applicationFormItemsChange.emit())})}delete(t){const e=(0,h.kZ)();e.width="500px",this.dialog.open(c,e).afterClosed().subscribe(e=>{e&&(t.forDelete=!0,0===t.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(t),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(t){this.dragDisabled=!0;const e=this.applicationFormItems.indexOf(t.item.data);(0,s.bA)(this.applicationFormItems,e,t.currentIndex),this.itemsChanged.push(this.applicationFormItems[t.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(t){if(t.i18n[this.translate.getDefaultLang()]){const e=t.i18n[this.translate.getDefaultLang()].options;if(null!==e&&""!==e){const t=[];for(const i of e.split("|"))t.push(i.split("#")[1]);return t}}return[]}getLocalizedLabel(t){return t.i18n[this.translate.getDefaultLang()]?t.i18n[this.translate.getDefaultLang()].label:t.shortname}restore(t){t.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.uw),n.Y36(u.V6),n.Y36(d.F0),n.Y36(a.sK))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-application-form-list"]],viewQuery:function(t,e){if(1&t&&n.Gf(A,5),2&t){let t;n.iGM(t=n.CRH())&&(e.table=t.first)}},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[n.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"],["class","font-italic disabled",4,"ngIf"],["type","text"],[1,"font-italic","disabled"],["disabled",""],["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"],["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(t,e){1&t&&(n.YNc(0,v,1,0,"mat-spinner",0),n.YNc(1,ft,34,4,"div",1),n.YNc(2,mt,3,3,"app-alert",2)),2&t&&(n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",0!==e.applicationFormItems.length&&!e.loading),n.xp6(1),n.Q6J("ngIf",0===e.applicationFormItems.length&&!e.loading))},directives:[p.O5,g.$g,f.BZ,s.Wj,f.w1,f.fO,f.Dz,f.as,f.nj,f.ge,f.ev,r.lW,m.Hw,b.gM,w._Y,w.JL,w.F,p.sg,w.YN,w.Kr,w.EJ,w.JJ,w.On,f.XQ,f.Gk,s.Zt,_.w],pipes:[a.X$,y.c],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%], .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}"]}),t})()},29851:function(t,e,i){"use strict";i.d(e,{w:function(){return et}});var n=i(31572),s=i(33642),o=i(67033),r=i(27613),a=i(88426),c=i(57629),u=i(82819),l=i(61511),h=i(84534),d=i(67806),p=i(39571),g=i(48160),f=i(22196);function m(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function b(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function w(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_ID")))}function _(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.vo.id)}}function y(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_NAME")))}function A(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.vo.name)}}function v(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_ID")))}function T(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.group?t.group.id:"")}}function C(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")))}function S(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.group?t.group.name:"")}}function E(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")))}function k(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.type)}}function x(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")))}function R(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.state)}}function I(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCENAME")))}function O(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.extSourceName)}}function P(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCETYPE")))}function D(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.extSourceType)}}function M(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_USER")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",t.user?n.lcZ(2,1,t.user):"null"," ")}}function N(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_BY")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length)," ")}}function F(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")))}function Z(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.ALo(2,"date"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,t.createdAt,"d.M.y"))}}function B(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")))}function q(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Oqu(i.getFriendlyName(t.modifiedBy))}}function U(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_AT")))}function H(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.ALo(2,"date"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,t.modifiedAt,"d.M.y"))}}function j(t,e){if(1&t&&(n.TgZ(0,"th",26),n._uU(1),n.qZA()),2&t){const t=n.oxw().$implicit;n.xp6(1),n.Oqu(t)}}function G(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit,i=n.oxw().$implicit;n.xp6(1),n.Oqu(t[i])}}function Y(t,e){1&t&&(n.ynx(0,29),n.YNc(1,j,2,1,"th",4),n.YNc(2,G,2,1,"td",11),n.BQk()),2&t&&n.Q6J("matColumnDef",e.$implicit)}function V(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_FEDINFO")))}function K(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.fedInfo)}}function J(t,e){1&t&&n._UZ(0,"tr",30)}function $(t,e){if(1&t&&n._UZ(0,"tr",31),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",i.selectApplication(t))("routerLink",i.selectApplication(t))}}function Q(t,e){1&t&&n._UZ(0,"mat-spinner",32)}function W(t,e){1&t&&(n.TgZ(0,"app-alert",34),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND")," "))}function X(t,e){1&t&&(n.TgZ(0,"app-alert",34),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT")," "))}function tt(t,e){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,W,3,3,"app-alert",33),n.YNc(2,X,3,3,"app-alert",33),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",0===t.dataSource.data.length),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.table.length)}}let et=(()=>{class t{constructor(t,e,i){this.router=t,this.authResolver=e,this.registrarManager=i,this.applications=[],this.pageSize=10,this.disableRouting=!1,this.page=new n.vpe,this.displayedColumns=["id","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","createdAt","modifiedBy","modifiedAt","fedInfo"],this.loading=!1,this.table=[],this.addedColumns=new Set,this.pageSizeOptions=r.f7}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.loading=!0,this.table=[],this.initialize(),this.getApplicationsData(0)}getExportDataForColumn(t,e){var i,n,s,o;switch(e){case"id":return t.id.toString();case"voId":return t.vo.id.toString();case"voName":return t.vo.name;case"groupId":return null!==(n=null===(i=t.group)||void 0===i?void 0:i.id.toString())&&void 0!==n?n:"";case"groupName":return null!==(o=null===(s=t.group)||void 0===s?void 0:s.name)&&void 0!==o?o:"";case"type":return t.type;case"fedInfo":return t.fedInfo;case"state":return t.state;case"extSourceName":return t.extSourceName;case"extSourceType":return t.extSourceType;case"user":return t.user?(0,r.bD)(t.user):"";case"createdBy":return t.createdBy;case"createdAt":return t.createdAt;case"modifiedBy":return t.modifiedBy;case"modifiedAt":return t.modifiedAt;default:return t[e]}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}getApplicationsData(t){if(this.applications.length===t)return void this.initialize();const e=this.applications[t],i={};i.id=e.id,i.vo=e.vo,i.group=e.group,i.type=e.type,i.fedInfo=e.fedInfo,i.state=e.state,i.extSourceName=e.extSourceName,i.extSourceType=e.extSourceType,i.extSourceLoa=e.extSourceLoa,i.user=e.user,i.createdBy=e.createdBy,i.createdAt=e.createdAt,i.modifiedBy=e.modifiedBy,i.modifiedAt=e.modifiedAt,this.registrarManager.getApplicationDataById(e.id).subscribe(e=>{for(const t of e)null!==t.formItem.i18n.en.label&&0!==t.formItem.i18n.en.label.length?(i[t.formItem.i18n.en.label]=t.value,this.addedColumns.add(t.formItem.i18n.en.label)):(i[t.shortname]=t.value,this.addedColumns.add(t.shortname));this.table.push(i),this.getApplicationsData(t+1)})}initialize(){for(const t of this.addedColumns)this.displayedColumns.push(t);this.dataSource=new o.by(this.table),this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage(),this.loading=!1}getFriendlyName(t){const e=t.lastIndexOf("/CN=");if(-1!==e){const i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}selectApplication(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.F0),n.Y36(a.x4),n.Y36(s.tk))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-perun-web-apps-application-list-details"]],viewQuery:function(t,e){if(1&t&&n.Gf(r.l9,7),2&t){let t;n.iGM(t=n.CRH())&&(e.child=t.first)}},inputs:{applications:"applications",group:"group",member:"member",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.TTD],decls:53,vars:12,consts:[[1,"card","mt-2","w-100",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","createdAt"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],[3,"matColumnDef",4,"ngFor","ngForOf"],["matColumnDef","fedInfo"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[1,"ml-auto","mr-auto"],["alert_type","warn",4,"ngIf"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,m,3,3,"th",4),n.YNc(5,b,2,1,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,w,3,3,"th",4),n.YNc(8,_,2,1,"td",5),n.BQk(),n.ynx(9,7),n.YNc(10,y,3,3,"th",4),n.YNc(11,A,2,1,"td",5),n.BQk(),n.ynx(12,8),n.YNc(13,v,3,3,"th",4),n.YNc(14,T,2,1,"td",5),n.BQk(),n.ynx(15,9),n.YNc(16,C,3,3,"th",4),n.YNc(17,S,2,1,"td",5),n.BQk(),n.ynx(18,10),n.YNc(19,E,3,3,"th",4),n.YNc(20,k,2,1,"td",11),n.BQk(),n.ynx(21,12),n.YNc(22,x,3,3,"th",4),n.YNc(23,R,2,1,"td",11),n.BQk(),n.ynx(24,13),n.YNc(25,I,3,3,"th",4),n.YNc(26,O,2,1,"td",11),n.BQk(),n.ynx(27,14),n.YNc(28,P,3,3,"th",4),n.YNc(29,D,2,1,"td",11),n.BQk(),n.ynx(30,15),n.YNc(31,M,3,3,"th",4),n.YNc(32,L,3,3,"td",11),n.BQk(),n.ynx(33,16),n.YNc(34,N,3,3,"th",4),n.YNc(35,z,2,1,"td",11),n.BQk(),n.ynx(36,17),n.YNc(37,F,3,3,"th",4),n.YNc(38,Z,3,4,"td",11),n.BQk(),n.ynx(39,18),n.YNc(40,B,3,3,"th",4),n.YNc(41,q,2,1,"td",11),n.BQk(),n.ynx(42,19),n.YNc(43,U,3,3,"th",4),n.YNc(44,H,3,4,"td",11),n.BQk(),n.YNc(45,Y,3,1,"ng-container",20),n.ynx(46,21),n.YNc(47,V,3,3,"th",4),n.YNc(48,K,2,1,"td",11),n.BQk(),n.YNc(49,J,1,0,"tr",22),n.YNc(50,$,1,4,"tr",23),n.qZA(),n.qZA(),n.qZA(),n.YNc(51,Q,1,0,"mat-spinner",24),n.YNc(52,tt,3,2,"div",25)),2&t&&(n.ekj("hide-table",e.loading),n.Q6J("hidden",0===e.table.length||!!e.dataSource&&0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(43),n.Q6J("ngForOf",e.addedColumns),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",!e.loading))},directives:[u.l,o.BZ,o.w1,o.fO,o.Dz,l.sg,o.as,o.nj,l.O5,o.ge,o.ev,o.XQ,o.Gk,h.YH,c.rH,d.$g,p.w],pipes:[g.X$,f.d,l.uU],styles:[".mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%], mat-cell[_ngcontent-%COMP%], mat-header-cell[_ngcontent-%COMP%]{padding:8px!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},21548:function(t,e,i){"use strict";i.d(e,{M:function(){return H}});var n=i(31572),s=i(58623),o=i(67033),r=i(27613),a=i(88426),c=i(82819),u=i(61511),l=i(43691),h=i(36922),d=i(84534),p=i(57629),g=i(39571),f=i(48160),m=i(84650),b=i(22196);function w(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function _(t,e){if(1&t&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function y(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")))}function A(t,e){if(1&t&&(n.TgZ(0,"td",18),n._uU(1),n.ALo(2,"date"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,t.createdAt,"d.M.y"))}}function v(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")))}function T(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",20),n._uU(2,"arrow_right_alt"),n.qZA(),n.qZA())}function C(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",21),n._uU(2,"restore"),n.qZA(),n.qZA())}function S(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",22),n._uU(2,"nat"),n.qZA(),n.qZA())}function E(t,e){if(1&t&&(n.TgZ(0,"td",18),n.YNc(1,T,3,0,"div",19),n.YNc(2,C,3,0,"div",19),n.YNc(3,S,3,0,"div",19),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","INITIAL"===t.type),n.xp6(1),n.Q6J("ngIf","EXTENSION"===t.type),n.xp6(1),n.Q6J("ngIf","EMBEDDED"===t.type)}}function k(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")))}function x(t,e){if(1&t&&(n.TgZ(0,"td",18),n._UZ(1,"span",23),n.ALo(2,"applicationState"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("outerHTML",n.lcZ(2,1,t.state),n.oJD)}}function R(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_SUBMITTED_BY")))}function I(t,e){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){const t=n.oxw().$implicit;n.xp6(1),n.hij(" ",t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length)," ")}}function O(t,e){if(1&t&&(n._uU(0),n.ALo(1,"userFullName")),2&t){const t=n.oxw().$implicit;n.hij(" ",n.lcZ(1,1,t.user)," ")}}function P(t,e){if(1&t&&(n.TgZ(0,"td",18),n.YNc(1,I,2,1,"div",24),n.YNc(2,O,2,3,"ng-template",null,25,n.W1O),n.qZA()),2&t){const t=e.$implicit,i=n.MAs(3);n.xp6(1),n.Q6J("ngIf",null===t.user)("ngIfElse",i)}}function D(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")))}function M(t,e){1&t&&(n.TgZ(0,"div",28),n._uU(1," - "),n.qZA())}function L(t,e){if(1&t&&n._uU(0),2&t){const t=n.oxw().$implicit;n.hij(" ",t.group.name," ")}}function N(t,e){if(1&t&&(n.TgZ(0,"td",18),n.YNc(1,M,2,0,"div",26),n.YNc(2,L,1,1,"ng-template",null,27,n.W1O),n.qZA()),2&t){const t=e.$implicit,i=n.MAs(3);n.xp6(1),n.Q6J("ngIf",null===t.group)("ngIfElse",i)}}function z(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")))}function F(t,e){if(1&t&&(n.TgZ(0,"td",18),n._uU(1),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Oqu(i.getFriendlyName(t.modifiedBy))}}function Z(t,e){1&t&&n._UZ(0,"tr",29)}function B(t,e){if(1&t&&n._UZ(0,"tr",30),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",i.selectApplication(t))("routerLink",i.selectApplication(t))}}function q(t,e){1&t&&(n.TgZ(0,"app-alert",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}function U(t,e){1&t&&(n.TgZ(0,"app-alert",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let H=(()=>{class t{constructor(t,e){this.authResolver=t,this.changeDetector=e,this.applications=[],this.displayedColumns=[],this.pageSize=10,this.disableRouting=!1,this.page=new n.vpe,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource(),this.changeDetector.detectChanges()}ngOnChanges(){this.dataSource=new o.by(this.applications),this.setDataSource()}getDataForColumn(t,e,i){var n;switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}getExportDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?(0,r.bD)(t.user):t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}parseModifiedBy(t){const e=t.modifiedBy.lastIndexOf("/CN=");if(-1!==e){const i=t.modifiedBy.slice(e+4,t.modifiedBy.length).replace("/unstructuredName="," ").toLowerCase();return-1!==i.lastIndexOf("\\")?t.modifiedBy.slice(t.modifiedBy.lastIndexOf("=")+1,t.modifiedBy.length):i}return t.modifiedBy.toLowerCase()}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.child.paginator&&(this.dataSource&&(this.dataSource.paginator=this.child.paginator,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this)),this.dataSource.filter=this.filterValue)}getFriendlyName(t){const e=t.lastIndexOf("/CN=");if(-1!==e){const i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}selectApplication(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.x4),n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-applications-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,5),n.Gf(r.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},inputs:{applications:"applications",group:"group",member:"member",displayedColumns:"displayedColumns",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","createdAt","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","createdAt"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","user"],["matColumnDef","group"],["matColumnDef","modifiedBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],["class","font-italic text-muted",4,"ngIf","ngIfElse"],["groupName",""],[1,"font-italic","text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,w,3,3,"th",4),n.YNc(5,_,2,1,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,y,3,3,"th",4),n.YNc(8,A,3,4,"td",7),n.BQk(),n.ynx(9,8),n.YNc(10,v,3,3,"th",4),n.YNc(11,E,4,3,"td",7),n.BQk(),n.ynx(12,9),n.YNc(13,k,3,3,"th",4),n.YNc(14,x,3,3,"td",7),n.BQk(),n.ynx(15,10),n.YNc(16,R,3,3,"th",4),n.YNc(17,P,4,2,"td",7),n.BQk(),n.ynx(18,11),n.YNc(19,D,3,3,"th",4),n.YNc(20,N,4,2,"td",7),n.BQk(),n.ynx(21,12),n.YNc(22,z,3,3,"th",4),n.YNc(23,F,2,1,"td",7),n.BQk(),n.YNc(24,Z,1,0,"tr",13),n.YNc(25,B,1,4,"tr",14),n.qZA(),n.qZA(),n.qZA(),n.YNc(26,q,3,3,"app-alert",15),n.YNc(27,U,3,3,"app-alert",15)),2&t&&(n.Q6J("hidden",0===e.applications.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(22),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.applications.length),n.xp6(1),n.Q6J("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.applications.length))},directives:[c.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,u.O5,o.ge,s.nU,o.ev,l.Hw,h.gM,o.XQ,o.Gk,d.YH,p.rH,g.w],pipes:[f.X$,u.uU,m.h,b.d],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},62284:function(t,e,i){"use strict";i.d(e,{W:function(){return k}});var n=i(33642),s=i(60611),o=i(88426),r=i(16073),a=i(61511),c=i(31572),u=i(57629),l=i(59403),h=i(66283),d=i(4786),p=i(71522),g=i(91058),f=i(51613),m=i(15980),b=i(67806),w=i(21548),_=i(29851),y=i(48160);function A(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",15),c.NdJ("click",function(){return c.CHM(t),c.oxw().showAllDetails=!0}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function v(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",15),c.NdJ("click",function(){return c.CHM(t),c.oxw().showAllDetails=!1}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function T(t,e){1&t&&c._UZ(0,"mat-spinner",16)}function C(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"app-applications-list",19),c.NdJ("page",function(e){return c.CHM(t),c.oxw(2).pageChanged(e)}),c.qZA()}if(2&t){const t=c.oxw(2);c.Q6J("pageSize",t.pageSize)("disableRouting",!t.routeAuth)("filterValue",t.filterValue)("applications",t.applications)("displayedColumns",t.displayedColumns)("group",t.group)}}function S(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"app-perun-web-apps-application-list-details",20),c.NdJ("page",function(e){return c.CHM(t),c.oxw(2).detailPageChanged(e)}),c.qZA()}if(2&t){const t=c.oxw(2);c.Q6J("pageSize",t.detailPageSize)("disableRouting",!t.routeAuth)("filterValue",t.filterValue)("applications",t.applications)("group",t.group)}}function E(t,e){if(1&t&&(c.TgZ(0,"div"),c.YNc(1,C,1,6,"app-applications-list",17),c.YNc(2,S,1,5,"app-perun-web-apps-application-list-details",18),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.Q6J("ngIf",!t.showAllDetails),c.xp6(1),c.Q6J("ngIf",t.showAllDetails)}}let k=(()=>{class t{constructor(t,e,i,n,o,r){this.groupService=t,this.registrarManager=e,this.tableConfigService=i,this.route=n,this.guiAuthResolver=o,this.store=r,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=s.Af,this.tableId=s.gB,this.routeAuth=!1}ngOnInit(){this.detailPageSize=this.tableConfigService.getTablePageSize(this.detailTableId),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(t=>{this.groupService.getGroupById(t.groupId).subscribe(t=>{this.group=t,this.setData(["NEW","VERIFIED"])}),this.startDate=new r.NI((0,a.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new r.NI((0,a.p6)(new Date,"yyyy-MM-dd","en-GB"))})}setAuth(){0!==this.applications.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("group-getApplicationById_int_policy",[this.group]))}setData(t){this.registrarManager.getApplicationsForGroup(this.group.id,t,(0,a.p6)(this.startDate.value,"yyyy-MM-dd","en-GB"),(0,a.p6)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(t=>{this.applications=t,this.setAuth(),this.loading=!1})}select(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}yearAgo(){const t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}applyFilter(t){this.filterValue=t}detailPageChanged(t){this.detailPageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.detailTableId,t.pageSize)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="GroupApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(n.ff),c.Y36(n.tk),c.Y36(s.dB),c.Y36(u.gz),c.Y36(o.x4),c.Y36(o.d6))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:34,vars:32,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",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,"startDate","endDate","datePicker"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","disableRouting","filterValue","applications","displayedColumns","group","page",4,"ngIf"],[3,"pageSize","disableRouting","filterValue","applications","group","page",4,"ngIf"],[3,"pageSize","disableRouting","filterValue","applications","displayedColumns","group","page"],[3,"pageSize","disableRouting","filterValue","applications","group","page"]],template:function(t,e){1&t&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"div"),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.select()}),c.qZA(),c.YNc(5,A,3,3,"button",2),c.YNc(6,v,3,3,"button",2),c.TgZ(7,"mat-form-field",3),c.TgZ(8,"mat-label"),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.TgZ(11,"mat-select",4),c.NdJ("selectionChange",function(){return e.select()})("valueChange",function(t){return e.state=t}),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.qZA(),c.qZA(),c.TgZ(30,"perun-web-apps-debounce-filter",11),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.TgZ(31,"perun-web-apps-date-range",12),c.NdJ("datePicker",function(){return e.select()}),c.qZA(),c.qZA(),c.YNc(32,T,1,0,"mat-spinner",13),c.YNc(33,E,3,2,"div",14)),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,16,"VO_DETAIL.APPLICATION.TITLE")),c.xp6(4),c.Q6J("ngIf",!e.showAllDetails),c.xp6(1),c.Q6J("ngIf",e.showAllDetails),c.xp6(3),c.Oqu(c.lcZ(10,18,"VO_DETAIL.APPLICATION.TABLE_STATE")),c.xp6(2),c.Q6J("value",e.state),c.xp6(2),c.Oqu(c.lcZ(14,20,"VO_DETAIL.APPLICATION.SELECTION_ALL")),c.xp6(3),c.Oqu(c.lcZ(17,22,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),c.xp6(3),c.Oqu(c.lcZ(20,24,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),c.xp6(3),c.Oqu(c.lcZ(23,26,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),c.xp6(3),c.Oqu(c.lcZ(26,28,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),c.xp6(3),c.Oqu(c.lcZ(29,30,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),c.xp6(2),c.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),c.xp6(1),c.Q6J("startDate",e.startDate)("endDate",e.endDate),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[l.t,a.O5,h.KE,h.hX,d.gD,p.ey,g.P,f.S,m.lW,b.$g,w.M,_.w],pipes:[y.X$],styles:[""]}),t})()},11930:function(t,e,i){"use strict";i.d(e,{y:function(){return N}});var n=i(4230),s=i(88426),o=i(67004),r=i(85613),a=i(4374),c=i(33642),u=i(60611),l=i(27613),h=i(88690),d=i(16073),p=i(31572),g=i(57629),f=i(84608),m=i(61511),b=i(59403),w=i(36922),_=i(66283),y=i(4786),A=i(91058),v=i(39571),T=i(15980),C=i(71522),S=i(67806),E=i(91779),k=i(48160);function x(t,e){1&t&&(p.TgZ(0,"app-alert",14),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function R(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",15),p.NdJ("click",function(){return p.CHM(t),p.oxw().onAddMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.synchEnabled||t.blockManualMemberAdding),p.xp6(1),p.hij(" ",p.lcZ(2,2,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function I(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",15),p.NdJ("click",function(){return p.CHM(t),p.oxw().onInviteMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.synchEnabled),p.xp6(1),p.hij(" ",p.lcZ(2,2,"GROUP_DETAIL.MEMBERS.INVITE_MEMBER")," ")}}function O(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",16),p.NdJ("click",function(){return p.CHM(t),p.oxw().onRemoveMembers()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.selection.isEmpty()||t.synchEnabled),p.xp6(1),p.hij(" ",p.lcZ(2,2,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function P(t,e){if(1&t&&(p.TgZ(0,"mat-option",17),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.Oqu(t)}}function D(t,e){if(1&t&&(p.TgZ(0,"mat-option",17),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.Oqu(t)}}function M(t,e){1&t&&p._UZ(0,"mat-spinner",18)}function L(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-members-dynamic-list",19),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("voId",t.group.voId)("groupId",t.group.id)("pageSize",t.pageSize)("selection",t.selection)("displayedColumns",t.displayedColumns)("updateTable",t.updateTable)("searchString",t.searchString)("selectedStatuses",t.selectedStatuses)("selectedGroupStatuses",t.selectedGroupStatuses)("attrNames",t.memberAttrNames)}}let N=(()=>{class t{constructor(t,e,i,n,s,r,a,c,l){this.groupService=t,this.route=e,this.tableConfigService=i,this.dialog=n,this.guiAuthResolver=s,this.storeService=r,this.attributesManager=a,this.apiRequest=c,this.notificator=l,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=u.dI,this.memberAttrNames=[o.r.MEMBER_DEF_ORGANIZATION,o.r.MEMBER_DEF_MAIL,o.r.USER_DEF_ORGANIZATION,o.r.USER_DEF_PREFERRED_MAIL,o.r.MEMBER_DEF_EXPIRATION,o.r.MEMBER_DEF_GROUP_EXPIRATION],this.groupAttrNames=[o.r.GROUP_SYNC_ENABLED,o.r.GROUP_LAST_SYNC_STATE,o.r.GROUP_LAST_SYNC_TIMESTAMP,o.r.GROUP_STRUCTURE_SYNC_ENABLED,o.r.GROUP_LAST_STRUCTURE_SYNC_STATE,o.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new d.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new d.NI,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"]}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.selection=new n.Ov(!0,[]),this.statuses.setValue(this.selectedStatuses),this.groupStatuses.setValue(this.selectedGroupStatuses),this.memberAttrNames=this.memberAttrNames.concat(this.storeService.getLoginAttributeNames()),this.route.parent.params.subscribe(t=>{const e=t.groupId;this.isManualAddingBlocked(t.voId,e).then(()=>this.loadPage(e))})}loadPage(t){this.groupService.getRichGroupByIdWithAttributesByNames(t,this.groupAttrNames).subscribe(t=>{this.group=t,this.synchEnabled=this.isSynchronized(),this.setAuthRights(),this.loading=!1})}isSynchronized(){return this.group.attributes.some(t=>"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString())}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(t){this.searchString=t,this.updateTable=!this.updateTable}onAddMember(){const t=(0,l.kZ)();t.width="1000px",t.data={voId:this.group.voId,group:this.group,entityId:this.group.id,theme:"group-theme",type:"group"},this.dialog.open(r.o,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onRemoveMembers(){const t=(0,l.kZ)();t.width="450px",t.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(a.X,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onInviteMember(){const t=(0,l.kZ)();t.width="650px",t.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(h.R,t)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}displaySelectedStatuses(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?`${this.statuses.value[0]} ${this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked(t,e){return new Promise(i=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(t=>{this.blockManualMemberAdding=null!==t.value,!0!==this.blockManualMemberAdding?(this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(e,"urn:perun:group:attribute-def:def:blockManualMemberAdding").subscribe(t=>{this.blockManualMemberAdding=null!==t.value,i()},t=>{"PrivilegeException"!==t.error.name&&this.notificator.showError(t),i()})):i()},t=>{"PrivilegeException"!==t.error.name&&this.notificator.showError(t),i()})})}changeVoStatuses(){this.selectedStatuses=this.statuses.value}changeGroupStatuses(){this.selectedGroupStatuses=this.groupStatuses.value}}return t.id="GroupMembersComponent",t.\u0275fac=function(e){return new(e||t)(p.Y36(c.ff),p.Y36(g.gz),p.Y36(u.dB),p.Y36(f.uw),p.Y36(s.x4),p.Y36(s.d6),p.Y36(c.H8),p.Y36(s.F5),p.Y36(s.V6))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:36,vars:41,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],[3,"matTooltip","matTooltipDisabled"],["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"],[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,"voId","groupId","pageSize","selection","displayedColumns","updateTable","searchString","selectedStatuses","selectedGroupStatuses","attrNames","page",4,"ngIf"],["alert_type","warn"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"group-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"voId","groupId","pageSize","selection","displayedColumns","updateTable","searchString","selectedStatuses","selectedGroupStatuses","attrNames","page"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.YNc(3,x,3,3,"app-alert",1),p.TgZ(4,"div",2),p.TgZ(5,"perun-web-apps-refresh-button",3),p.NdJ("click",function(){return e.updateTable=!e.updateTable}),p.qZA(),p.TgZ(6,"span",4),p.ALo(7,"translate"),p.TgZ(8,"div",5),p.ALo(9,"translate"),p.YNc(10,R,3,4,"button",6),p.qZA(),p.qZA(),p.TgZ(11,"span",4),p.ALo(12,"translate"),p.YNc(13,I,3,4,"button",6),p.qZA(),p.TgZ(14,"span",4),p.ALo(15,"translate"),p.YNc(16,O,3,4,"button",7),p.qZA(),p.TgZ(17,"mat-form-field",8),p.TgZ(18,"mat-label"),p._uU(19),p.ALo(20,"translate"),p.qZA(),p.TgZ(21,"mat-select",9),p.NdJ("closed",function(){return e.changeVoStatuses()}),p.TgZ(22,"mat-select-trigger"),p._uU(23),p.qZA(),p.YNc(24,P,2,2,"mat-option",10),p.qZA(),p.qZA(),p.TgZ(25,"mat-form-field",8),p.TgZ(26,"mat-label"),p._uU(27),p.ALo(28,"translate"),p.qZA(),p.TgZ(29,"mat-select",9),p.NdJ("closed",function(){return e.changeGroupStatuses()}),p.TgZ(30,"mat-select-trigger"),p._uU(31),p.qZA(),p.YNc(32,D,2,2,"mat-option",10),p.qZA(),p.qZA(),p.TgZ(33,"perun-web-apps-debounce-filter",11),p.NdJ("filter",function(t){return e.onSearchByString(t)}),p.qZA(),p.qZA(),p.YNc(34,M,1,0,"mat-spinner",12),p.YNc(35,L,1,10,"perun-web-apps-members-dynamic-list",13)),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,27,"GROUP_DETAIL.MEMBERS.TITLE")),p.xp6(2),p.Q6J("ngIf",e.synchEnabled),p.xp6(3),p.s9C("matTooltip",p.lcZ(7,29,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),p.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),p.xp6(2),p.s9C("matTooltip",p.lcZ(9,31,"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),p.Q6J("matTooltipDisabled",!e.blockManualMemberAdding),p.xp6(2),p.Q6J("ngIf",e.addAuth),p.xp6(1),p.s9C("matTooltip",p.lcZ(12,33,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),p.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),p.xp6(2),p.Q6J("ngIf",e.inviteAuth),p.xp6(1),p.s9C("matTooltip",p.lcZ(15,35,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),p.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),p.xp6(2),p.Q6J("ngIf",e.removeAuth),p.xp6(3),p.Oqu(p.lcZ(20,37,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),p.xp6(2),p.Q6J("formControl",e.statuses),p.xp6(2),p.hij(" ",e.displaySelectedStatuses()," "),p.xp6(1),p.Q6J("ngForOf",e.statusList),p.xp6(3),p.Oqu(p.lcZ(28,39,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),p.xp6(2),p.Q6J("formControl",e.groupStatuses),p.xp6(2),p.hij(" ",e.displaySelectedGroupStatuses()," "),p.xp6(1),p.Q6J("ngForOf",e.groupStatusList),p.xp6(1),p.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[m.O5,b.t,w.gM,_.KE,_.hX,y.gD,d.JJ,d.oH,y.$L,m.sg,A.P,v.w,T.lW,C.ey,S.$g,E.m],pipes:[k.X$],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}"]}),t})()},7433:function(t,e,i){"use strict";i.d(e,{q:function(){return B}});var n=i(4230),s=i(33642),o=i(60611),r=i(84608),a=i(88426),c=(i(41939),i(31572)),u=i(48160),l=i(19139),h=i(61511),d=i(67806),p=i(88884),g=i(29236),f=i(36922),m=i(16073),b=i(15980);const w=["list"];function _(t,e){1&t&&c._UZ(0,"mat-spinner",4)}const y=function(){return["select","id","name","facility","tags","description"]};function A(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"div",5),c._UZ(2,"perun-web-apps-resources-list",6,7),c.qZA(),c.TgZ(4,"div",8),c.TgZ(5,"mat-checkbox",9),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw().async=e}),c.ALo(6,"translate"),c._uU(7),c.ALo(8,"translate"),c.qZA(),c.TgZ(9,"button",10),c.NdJ("click",function(){return c.CHM(t),c.oxw().onCancel()}),c._uU(10),c.ALo(11,"translate"),c.qZA(),c.TgZ(12,"span",11),c.ALo(13,"translate"),c.TgZ(14,"button",12),c.NdJ("click",function(){return c.CHM(t),c.oxw().onSubmit()}),c._uU(15),c.ALo(16,"translate"),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.MAs(3),e=c.oxw();c.xp6(2),c.Q6J("resources",e.resources)("disableRouting",!0)("selection",e.selection)("groupToResource",e.data.group)("displayedColumns",c.DdM(24,y))("filterValue",e.filterValue),c.xp6(3),c.s9C("matTooltip",c.lcZ(6,14,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT_DESCRIPTION")),c.Q6J("ngModel",e.async),c.xp6(2),c.hij(" ",c.lcZ(8,16,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),c.xp6(3),c.hij(" ",c.lcZ(11,18,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),c.xp6(2),c.s9C("matTooltip",c.lcZ(13,20,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),c.Q6J("matTooltipDisabled",void 0===t||t.addAuth),c.xp6(2),c.Q6J("disabled",0===e.selection.selected.length||e.loading||void 0!==t&&!t.addAuth),c.xp6(1),c.hij(" ",c.lcZ(16,22,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}let v=(()=>{class t{constructor(t,e,i,s,o){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=s,this.resourcesManager=o,this.filterValue="",this.resources=[],this.selection=new n.Ov(!0,[]),this.theme="",this.async=!0}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.resourcesManager.getRichResources(this.data.voId).subscribe(t=>{this.resources=t.filter(t=>!this.data.unwantedResources.includes(t.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const t=this.selection.selected.map(t=>t.id);this.resourcesManager.assignGroupToResources(this.data.group.id,t,this.async).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(r.so),c.Y36(r.WI),c.Y36(a.V6),c.Y36(u.sK),c.Y36(s.xk))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(t,e){if(1&t&&c.Gf(w,5),2&t){let t;c.iGM(t=c.CRH())&&(e.list=t.first)}},decls:8,vars:11,consts:[["mat-dialog-title",""],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[3,"resources","disableRouting","selection","groupToResource","displayedColumns","filterValue"],["list",""],["mat-dialog-actions",""],[3,"matTooltip","ngModel","ngModelChange"],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"perun-web-apps-immediate-filter",1),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.ALo(5,"translate"),c.qZA(),c.YNc(6,_,1,0,"mat-spinner",2),c.YNc(7,A,17,25,"div",3),c.qZA()),2&t&&(c.Tol(e.theme),c.xp6(2),c.Oqu(c.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),c.xp6(2),c.Q6J("placeholder",c.lcZ(5,9,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[r.uh,l.L,h.O5,d.$g,r.xY,p.C,r.H8,g.oG,f.gM,m.JJ,m.On,b.lW],pipes:[u.X$],styles:[""]}),t})();var T=i(67033);function C(t,e){1&t&&c._UZ(0,"mat-spinner",4)}function S(t,e){1&t&&c._UZ(0,"th",13)}function E(t,e){if(1&t&&(c.TgZ(0,"td",14),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.hij(" ",t.name," ")}}function k(t,e){1&t&&c._UZ(0,"tr",15)}function x(t,e){1&t&&c._UZ(0,"tr",16)}function R(t,e){if(1&t&&(c.TgZ(0,"div",5),c.TgZ(1,"p"),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",6),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"table",7),c.ynx(8,8),c.YNc(9,S,1,0,"th",9),c.YNc(10,E,2,1,"td",10),c.BQk(),c.YNc(11,k,1,0,"tr",11),c.YNc(12,x,1,0,"tr",12),c.qZA(),c.qZA()),2&t){const t=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),c.xp6(3),c.hij(" ",c.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),c.xp6(2),c.Q6J("dataSource",t.dataSource),c.xp6(4),c.Q6J("matHeaderRowDef",t.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",t.displayedColumns)}}function I(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",17),c.TgZ(1,"button",18),c.NdJ("click",function(){return c.CHM(t),c.oxw().onCancel()}),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"button",19),c.NdJ("click",function(){return c.CHM(t),c.oxw().onSubmit()}),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.qZA()}if(2&t){const t=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),c.xp6(2),c.Q6J("disabled",t.loading),c.xp6(1),c.hij(" ",c.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let O=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.resourcesManager=s,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new T.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const t=this.data.resources.map(t=>t.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,t).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(r.so),c.Y36(r.WI),c.Y36(a.V6),c.Y36(u.sK),c.Y36(s.xk))},t.\u0275cmp=c.Xpm({type:t,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"],["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(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,C,1,0,"mat-spinner",1),c.YNc(5,R,13,9,"div",2),c.YNc(6,I,7,7,"div",3),c.qZA()),2&t&&(c.Tol(e.data.theme),c.xp6(2),c.Oqu(c.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[r.uh,h.O5,d.$g,r.xY,T.BZ,T.w1,T.fO,T.Dz,T.as,T.nj,T.ge,T.ev,T.XQ,T.Gk,r.H8,b.lW],pipes:[u.X$],styles:[""]}),t})();var P=i(27613),D=i(57629),M=i(59403);const L=["list"];function N(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",function(){return c.CHM(t),c.oxw().addResource()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function z(t,e){1&t&&c._UZ(0,"mat-spinner",9)}const F=function(){return["select","id","name","status","facility","tags","description"]};function Z(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"perun-web-apps-resources-list",10,11),c.NdJ("page",function(e){return c.CHM(t),c.oxw().pageChanged(e)})("refreshTable",function(){return c.CHM(t),c.oxw().refreshTable()}),c.qZA()}if(2&t){const t=c.oxw();c.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("resources",t.resources)("routingVo",!0)("disableRouting",!t.routingAuth)("selection",t.selected)("groupToResource",t.group)("groupId",t.groupId)("displayedColumns",c.DdM(9,F))}}let B=(()=>{class t{constructor(t,e,i,s,r,a){this.resourcesManager=t,this.groupService=e,this.tableConfigService=i,this.route=s,this.dialog=r,this.guiAuthResolver=a,this.resources=null,this.selected=new n.Ov(!0,[]),this.filterValue="",this.tableId=o.v1,this.addAuth=!1}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.groupId=t.groupId,this.voId=t.voId,this.groupService.getGroupById(this.groupId).subscribe(t=>{this.group=t,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(t=>{this.resources=t.map(t=>{const e=t.enrichedResource.resource;return e.facility=t.facility,e.status=t.status,e.resourceTags=t.resourceTags,e.failureCause=t.failureCause,e}),this.selected.clear(),this.setAuthorization(),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}addResource(){const t=(0,P.kZ)();t.width="1000px",t.data={theme:"group-theme",group:this.group,voId:this.voId,unwantedResources:this.resources.map(t=>t.id)},this.dialog.open(v,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeResource(){const t=(0,P.kZ)();t.width="450px",t.data={theme:"group-theme",resources:this.selected.selected,groupId:this.groupId},this.dialog.open(O,t).afterClosed().subscribe(t=>{t&&(this.selected.clear(),this.refreshTable())})}}return t.id="GroupResourcesComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(s.xk),c.Y36(s.ff),c.Y36(o.dB),c.Y36(D.gz),c.Y36(r.uw),c.Y36(a.x4))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-group-resources"]],viewQuery:function(t,e){if(1&t&&c.Gf(L,5),2&t){let t;c.iGM(t=c.CRH())&&(e.list=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","groupToResource","groupId","displayedColumns","page","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","groupToResource","groupId","displayedColumns","page","refreshTable"],["list",""]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.refreshTable()}),c.qZA(),c.YNc(5,N,3,3,"button",2),c.TgZ(6,"span",3),c.ALo(7,"translate"),c.TgZ(8,"button",4),c.NdJ("click",function(){return e.removeResource()}),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.qZA(),c.TgZ(11,"perun-web-apps-immediate-filter",5),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.YNc(12,z,1,0,"mat-spinner",6),c.YNc(13,Z,2,10,"perun-web-apps-resources-list",7),c.qZA()),2&t&&(c.xp6(2),c.Oqu(c.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),c.xp6(3),c.Q6J("ngIf",e.addAuth),c.xp6(1),c.s9C("matTooltip",c.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),c.Q6J("matTooltipDisabled",0===e.selected.selected.length||void 0!==e.list&&e.list.removeAuth),c.xp6(2),c.Q6J("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),c.xp6(1),c.hij(" ",c.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),c.xp6(2),c.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",e.resources&&!e.loading))},directives:[M.t,h.O5,f.gM,b.lW,l.L,d.$g,p.C],pipes:[u.X$],styles:[""]}),t})()},65423:function(t,e,i){"use strict";i.d(e,{Z:function(){return Z}});var n=i(88426),s=i(92438),o=i(75954),r=i(68570),a=i(24555),c=i(33642),u=i(27613),l=i(31572),h=i(57629),d=i(84608),p=i(48160),g=i(61511),f=i(67806),m=i(43691),b=i(36922),w=i(27679),_=i(59403),y=i(15980),A=i(92846),v=i(27521),T=i(16073),C=i(39571);const S=["autoRegToggle"];function E(t,e){1&t&&l._UZ(0,"mat-spinner",3)}function k(t,e){if(1&t&&(l.TgZ(0,"span"),l._uU(1," , "),l.TgZ(2,"mat-icon",21),l._uU(3,"nat"),l.qZA(),l._uU(4),l.ALo(5,"translate"),l.ALo(6,"translate"),l.qZA()),2&t){const t=l.oxw(2);l.xp6(4),l.hij(" ",t.applicationForm.automaticApprovalEmbedded?l.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function x(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"mat-slide-toggle",22,23),l.NdJ("change",function(){return l.CHM(t),l.oxw(2).updateAutoRegistration()}),l._uU(3),l.ALo(4,"translate"),l.qZA(),l.qZA()}if(2&t){const t=l.oxw(2);l.xp6(1),l.Q6J("disabled",!t.changeAutoRegistration)("ngModel",t.autoRegistrationEnabled),l.xp6(2),l.hij(" ",l.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function R(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",24),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).settings()}),l.TgZ(1,"i",18),l._uU(2,"edit"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function I(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",25),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).add()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function O(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",26),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).save()}),l.TgZ(1,"i",18),l._uU(2,"save"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}if(2&t){const t=l.oxw(2);l.Q6J("disabled",!t.itemsChanged),l.xp6(3),l.hij(" ",l.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function P(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",27),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).copy()}),l.TgZ(1,"i",18),l._uU(2,"file_copy"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function D(t,e){1&t&&(l.TgZ(0,"app-alert",28),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const M=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},L=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function N(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"div",4),l.TgZ(2,"div",5),l.TgZ(3,"div",6),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.TgZ(6,"div"),l.TgZ(7,"span",6),l._uU(8),l.ALo(9,"translate"),l.qZA(),l._uU(10,": "),l.TgZ(11,"mat-icon",7),l._uU(12,"arrow_right_alt"),l.qZA(),l._uU(13),l.ALo(14,"translate"),l.ALo(15,"translate"),l.TgZ(16,"mat-icon",8),l._uU(17,"restore"),l.qZA(),l._uU(18),l.ALo(19,"translate"),l.ALo(20,"translate"),l.YNc(21,k,7,5,"span",2),l.qZA(),l.YNc(22,x,5,5,"div",2),l.qZA(),l.TgZ(23,"div",9),l.YNc(24,R,5,3,"button",10),l.qZA(),l.qZA(),l._UZ(25,"mat-divider",11),l.TgZ(26,"div",12),l.TgZ(27,"perun-web-apps-refresh-button",13),l.NdJ("refresh",function(){return l.CHM(t),l.oxw().updateFormItems()}),l.qZA(),l.YNc(28,I,3,3,"button",14),l.YNc(29,O,5,4,"button",15),l.YNc(30,P,5,3,"button",16),l.TgZ(31,"button",17),l.NdJ("click",function(){return l.CHM(t),l.oxw().preview()}),l.TgZ(32,"i",18),l._uU(33,"search"),l.qZA(),l._uU(34),l.ALo(35,"translate"),l.qZA(),l.qZA(),l.YNc(36,D,3,3,"app-alert",19),l.TgZ(37,"app-application-form-list",20),l.NdJ("applicationFormItemsChange",function(){return l.CHM(t),l.oxw().changeItems()}),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(2),l.Q6J("ngClass",t.autoRegistrationEnabled?"w-75":"w-50"),l.xp6(2),l.AsE("",l.lcZ(5,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",t.applicationForm.moduleClassName," "),l.xp6(4),l.Oqu(l.lcZ(9,21,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),l.xp6(5),l.hij(" ",t.applicationForm.automaticApproval?l.lcZ(14,23,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(15,25,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),l.xp6(5),l.hij(" ",t.applicationForm.automaticApprovalExtension?l.lcZ(19,27,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(20,29,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),l.xp6(3),l.Q6J("ngIf",t.autoRegistrationEnabled),l.xp6(1),l.Q6J("ngIf",t.voHasEmbeddedGroupApplication),l.xp6(2),l.Q6J("ngIf",t.editAuth),l.xp6(4),l.Q6J("ngIf",t.editAuth),l.xp6(1),l.Q6J("ngIf",t.editAuth),l.xp6(1),l.Q6J("ngIf",t.editAuth),l.xp6(4),l.hij(" ",l.lcZ(35,31,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),l.xp6(2),l.Q6J("ngIf",t.editAuth),l.xp6(1),l.Q6J("loading",t.loading)("applicationForm",t.applicationForm)("applicationFormItems",t.applicationFormItems)("theme","group-theme")("displayedColumns",t.editAuth?l.DdM(33,M):l.DdM(34,L))}}function z(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",17),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).createEmptyApplicationForm()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function F(t,e){if(1&t&&(l.TgZ(0,"div"),l.TgZ(1,"app-alert",29),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,z,3,3,"button",30),l.qZA()),2&t){const t=l.oxw();l.xp6(2),l.Oqu(l.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),l.xp6(2),l.Q6J("ngIf",t.createEmptyForm)}}let Z=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u){this.registrarManager=t,this.route=e,this.dialog=i,this.notificator=n,this.translate=s,this.apiRequest=o,this.router=r,this.guiAuthResolver=a,this.groupsManager=c,this.attributesManager=u,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.groupId=t.groupId,this.groupsManager.getGroupById(this.groupId).subscribe(t=>{this.group=t,this.apiRequest.dontHandleErrorForNext(),this.registrarManager.getGroupApplicationForm(this.groupId).subscribe(t=>{this.applicationForm=t,this.registrarManager.getFormItemsForGroup(this.groupId).subscribe(t=>{this.applicationFormItems=t,this.attributesManager.getGroupAttributeByName(this.groupId,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(t=>{this.voHasEmbeddedGroupApplication=null!==t.value,this.autoRegistrationEnabled=!!t.value,this.setAuth(),this.loading=!1})},()=>this.loading=!1)},t=>{"FormNotExistsException"===t.error.name?(this.noApplicationForm=!0,this.setAuth(),this.loading=!1):this.notificator.showRPCError(t.error)})},()=>this.loading=!1)})}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 t=(0,u.kZ)();t.width="500px",t.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(s.J,t).afterClosed().subscribe(e=>{e&&(this.applicationFormItems=Object.assign([],e[0]),t=(0,u.kZ)(),t.width="600px",t.height="600px",t.data={voId:this.voId,groupId:this.groupId,applicationFormItem:e[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(o._,t),this.itemsChanged=!0)})}copy(){const t=(0,u.kZ)();t.width="500px",t.data={voId:this.voId,groupId:this.groupId,theme:"group-theme"},this.dialog.open(r.W,t).afterClosed().subscribe(t=>{t&&this.updateFormItems()})}settings(){const t=(0,u.kZ)();t.width="400px",t.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(a.E,t).afterClosed().subscribe(t=>{t&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.applicationForm=t)})}preview(){this.router.navigate(["/organizations",this.voId,"groups",this.groupId,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.registrarManager.getFormItemsForGroup(this.groupId).subscribe(t=>{this.applicationFormItems=t,this.itemsChanged=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.groupId).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let t=0;for(const e of this.applicationFormItems)e.ordnum=t,e.forDelete||t++;this.registrarManager.updateFormItemsForGroup({group:this.groupId,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),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(t=>{this.notificator.showSuccess(t)}),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(t=>{this.notificator.showSuccess(t)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return t.id="GroupSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(c.tk),l.Y36(h.gz),l.Y36(d.uw),l.Y36(n.V6),l.Y36(p.sK),l.Y36(n.F5),l.Y36(h.F0),l.Y36(n.x4),l.Y36(c.ff),l.Y36(c.H8))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-group-settings-application-form"]],viewQuery:function(t,e){if(1&t&&l.Gf(S,5),2&t){let t;l.iGM(t=l.CRH())&&(e.autoRegToggle=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[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"],["mat-stroked-button","","class","ml-auto",3,"click",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","applicationFormItemsChange"],["matTooltip","Embedded",1,"align-text-bottom"],["color","primary",3,"disabled","ngModel","change"],["autoRegToggle",""],["mat-stroked-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"click"],["alert_type","info"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.YNc(3,E,1,0,"mat-spinner",1),l.YNc(4,N,38,35,"div",2),l.YNc(5,F,5,4,"div",2)),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading&&!e.noApplicationForm),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.noApplicationForm))},directives:[g.O5,f.$g,g.mk,m.Hw,b.gM,w.d,_.t,y.lW,A.b,v.Rr,T.JJ,T.On,C.w],pipes:[p.X$],styles:[""]}),t})()},82044:function(t,e,i){"use strict";i.d(e,{u:function(){return F}});var n=i(88419),s=i(4230),o=i(43491),r=i(27613),a=i(33642),c=i(67004),u=i(60611),l=i(57820),h=i(88426),d=(i(41939),i(31572)),p=i(84608),g=i(57629),f=i(59403),m=i(61511),b=i(91058),w=i(27521),_=i(16073),y=i(15980),A=i(36922),v=i(67806),T=i(11441),C=i(78364),S=i(48160);const E=["tree"],k=["list"],x=["toggle"];function R(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",9),d.NdJ("click",function(){return d.CHM(t),d.oxw().onCreateGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function I(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",12),d.NdJ("click",function(){return d.CHM(t),d.oxw(2).deleteGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("disabled",0===t.selected.selected.length||void 0!==t.tree&&!t.tree.removeAuth||void 0!==t.list&&!t.list.removeAuth),d.xp6(1),d.hij(" ",d.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function O(t,e){if(1&t&&(d.TgZ(0,"span",10),d.ALo(1,"translate"),d.YNc(2,I,3,4,"button",11),d.qZA()),2&t){const t=d.oxw();d.s9C("matTooltip",d.lcZ(1,3,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),d.Q6J("matTooltipDisabled",void 0===t.tree&&void 0===t.list||void 0!==t.tree&&t.tree.removeAuth||void 0!==t.list&&t.list.removeAuth),d.xp6(2),d.Q6J("ngIf",!t.loading&&t.deleteAuth)}}function P(t,e){1&t&&d._UZ(0,"mat-spinner",13)}function D(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"perun-web-apps-groups-tree",17,18),d.NdJ("moveGroup",function(e){return d.CHM(t),d.oxw(2).onMoveGroup(e)})("refreshTable",function(){return d.CHM(t),d.oxw(2).refreshTable()}),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("groups",t.groups)("expandAll",t.filtering)("hideCheckbox",!t.deleteAuth)("selection",t.selected)("filterValue",t.filterValue)("disableRouting",!t.routeAuth)}}const M=function(){return["select","id","name","description","menu"]},L=function(){return["id","name","description","menu"]};function N(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",19,20),d.NdJ("page",function(e){return d.CHM(t),d.oxw(2).pageChanged(e)})("moveGroup",function(e){return d.CHM(t),d.oxw(2).onMoveGroup(e)})("refreshTable",function(){return d.CHM(t),d.oxw(2).refreshTable()}),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("pageSize",t.pageSize)("groups",t.groups)("selection",t.selected)("authType","group-subgroups")("disableMembers",!0)("disableRouting",!t.routeAuth)("displayedColumns",t.deleteAuth?d.DdM(8,M):d.DdM(9,L))("filter",t.filterValue)}}function z(t,e){if(1&t&&(d.TgZ(0,"div",14),d.YNc(1,D,2,6,"perun-web-apps-groups-tree",15),d.YNc(2,N,2,10,"perun-web-apps-groups-list",16),d.qZA()),2&t){const t=d.oxw();d.xp6(1),d.Q6J("ngIf",!t.showGroupList),d.xp6(1),d.Q6J("ngIf",t.showGroupList)}}let F=(()=>{class t{constructor(t,e,i,n,o,r){this.dialog=t,this.groupService=e,this.tableConfigService=i,this.route=n,this.guiAuthResolver=o,this.initAuthService=r,this.groups=[],this.selected=new s.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=u.bf,this.filterValue=""}onCreateGroup(){const t=(0,r.kZ)();t.width="450px",t.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(n.y,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.refreshTable())})}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),"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.route.parent.params.subscribe(t=>{this.groupService.getGroupById(t.groupId).subscribe(t=>{this.group=t,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 t=(0,r.kZ)();t.width="450px",t.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(o.P,t).afterClosed().subscribe(t=>{t&&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(t=>{this.groups=t,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t,this.filtering=""!==t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}onMoveGroup(t){const e=(0,r.kZ)();e.width="550px",e.data={group:t,theme:"group-theme"},this.dialog.open(l.c,e).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.id="GroupSubgroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Y36(p.uw),d.Y36(a.ff),d.Y36(u.dB),d.Y36(g.gz),d.Y36(h.x4),d.Y36(h.v0))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-group-subgroups"]],viewQuery:function(t,e){if(1&t&&(d.Gf(E,5),d.Gf(k,5),d.Gf(x,7)),2&t){let t;d.iGM(t=d.CRH())&&(e.tree=t.first),d.iGM(t=d.CRH())&&(e.list=t.first),d.iGM(t=d.CRH())&&(e.toggle=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("router-component",e.true)},decls:17,vars:16,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled",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","mat-flat-button","",1,"mr-2",3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable",4,"ngIf"],[3,"pageSize","groups","selection","authType","disableMembers","disableRouting","displayedColumns","filter","page","moveGroup","refreshTable",4,"ngIf"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable"],["tree",""],[3,"pageSize","groups","selection","authType","disableMembers","disableRouting","displayedColumns","filter","page","moveGroup","refreshTable"],["list",""]],template:function(t,e){if(1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return e.refreshTable()}),d.qZA(),d.YNc(5,R,3,3,"button",2),d.YNc(6,O,3,5,"span",3),d.TgZ(7,"perun-web-apps-debounce-filter",4),d.NdJ("filter",function(t){return e.applyFilter(t)}),d.qZA(),d.TgZ(8,"mat-slide-toggle",5,6),d.NdJ("change",function(){return e.selected.clear()})("ngModelChange",function(t){return e.showGroupList=t}),d._uU(10),d.ALo(11,"translate"),d.qZA(),d.TgZ(12,"label"),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.YNc(15,P,1,0,"mat-spinner",7),d.YNc(16,z,3,2,"div",8),d.qZA()),2&t){const t=d.MAs(9);d.xp6(2),d.Oqu(d.lcZ(3,10,"GROUP_DETAIL.SUBGROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",!e.loading&&e.createAuth),d.xp6(1),d.Q6J("ngIf",!e.loading),d.xp6(1),d.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),d.xp6(1),d.Q6J("ngModel",e.showGroupList),d.xp6(2),d.Oqu(d.lcZ(11,12,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),d.xp6(2),d.uIk("for",t.inputId),d.xp6(1),d.Oqu(d.lcZ(14,14,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),d.xp6(2),d.Q6J("ngIf",e.loading),d.xp6(1),d.Q6J("ngIf",!e.loading)}},directives:[f.t,m.O5,b.P,w.Rr,_.JJ,_.On,y.lW,A.gM,v.$g,T.I,C.W],pipes:[S.X$],styles:[""]}),t})()},81835:function(t,e,i){"use strict";i.d(e,{j:function(){return H}});var n=i(33642),s=i(60611),o=i(4230),r=i(27613),a=i(84608),c=i(88426),u=i(67004),l=i(31572),h=i(48160),d=i(61511),p=i(67806),g=i(19139),f=i(78364),m=i(15980);function b(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function w(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",7),l.NdJ("filter",function(e){return l.CHM(t),l.oxw().applyFilter(e)}),l.qZA()}2&t&&l.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}const _=function(){return["select","id","name","description"]};function y(t,e){if(1&t&&l._UZ(0,"perun-web-apps-groups-list",8),2&t){const t=l.oxw();l.Q6J("groups",t.groups)("selection",t.selection)("displayedColumns",l.DdM(8,_))("filter",t.filterValue)("groupsToDisable",t.membersGroups)("disableGroups",!0)("disableRouting",!0)("disableMembers",!0)}}function A(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",9),l.TgZ(1,"button",10),l.NdJ("click",function(){return l.CHM(t),l.oxw().onCancel()}),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"button",11),l.NdJ("click",function(){return l.CHM(t),l.oxw().onAdd()}),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),l.xp6(2),l.Q6J("disabled",0===t.selection.selected.length),l.xp6(1),l.hij(" ",l.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let v=(()=>{class t{constructor(t,e,i,n,s,r,a){this.dialogRef=t,this.data=e,this.groupManager=i,this.memberManager=n,this.notificator=s,this.translate=r,this.authResolver=a,this.loading=!1,this.groups=[],this.selection=new o.Ov(!0,[]),this.attrNames=[u.r.GROUP_SYNC_ENABLED,u.r.GROUP_LAST_SYNC_STATE,u.r.GROUP_LAST_SYNC_TIMESTAMP,u.r.GROUP_STRUCTURE_SYNC_ENABLED,u.r.GROUP_LAST_STRUCTURE_SYNC_STATE,u.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(t=>{this.member=t,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(t=>{this.groups=t.filter(t=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[t])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const t=this.selection.selected.map(t=>t.id);this.loading=!0,this.groupManager.addMember(t,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(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(a.so),l.Y36(a.WI),l.Y36(n.ff),l.Y36(n.uq),l.Y36(c.V6),l.Y36(h.sK),l.Y36(c.x4))},t.\u0275cmp=l.Xpm({type:t,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,"groups","selection","displayedColumns","filter","groupsToDisable","disableGroups","disableRouting","disableMembers",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"groups","selection","displayedColumns","filter","groupsToDisable","disableGroups","disableRouting","disableMembers"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,b,1,0,"mat-spinner",1),l.TgZ(5,"div",2),l.YNc(6,w,1,1,"perun-web-apps-immediate-filter",3),l.YNc(7,y,1,9,"perun-web-apps-groups-list",4),l.qZA(),l.YNc(8,A,7,7,"div",5),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[a.uh,d.O5,a.xY,p.$g,g.L,f.W,a.H8,m.lW],pipes:[h.X$],styles:[""]}),t})();var T=i(67033);function C(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function S(t,e){1&t&&l._UZ(0,"th",15)}function E(t,e){if(1&t&&(l.TgZ(0,"td",16),l._uU(1),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.hij(" ",t.name," ")}}function k(t,e){1&t&&l._UZ(0,"tr",17)}function x(t,e){1&t&&l._UZ(0,"tr",18)}function R(t,e){if(1&t&&(l.TgZ(0,"div",7),l.TgZ(1,"p"),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",8),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.TgZ(7,"table",9),l.ynx(8,10),l.YNc(9,S,1,0,"th",11),l.YNc(10,E,2,1,"td",12),l.BQk(),l.YNc(11,k,1,0,"tr",13),l.YNc(12,x,1,0,"tr",14),l.qZA(),l.qZA()),2&t){const t=l.oxw();l.xp6(2),l.Oqu(l.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),l.xp6(3),l.hij(" ",l.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),l.xp6(2),l.Q6J("dataSource",t.dataSource),l.xp6(4),l.Q6J("matHeaderRowDef",t.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",t.displayedColumns)}}let I=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.groupManager=i,this.notificator=n,this.translate=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new T.by(this.data.groups)}onRemove(){this.loading=!0;const t=this.dataSource.data.map(t=>t.id);this.groupManager.removeMember(t,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 t.\u0275fac=function(e){return new(e||t)(l.Y36(a.so),l.Y36(a.WI),l.Y36(n.ff),l.Y36(c.V6),l.Y36(h.sK))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-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,"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"],["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(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,C,1,0,"mat-spinner",1),l.YNc(5,R,13,9,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onRemove()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.hij("",l.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),l.xp6(2),l.Q6J("disabled",e.loading),l.xp6(1),l.hij("",l.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},directives:[a.uh,d.O5,a.H8,m.lW,p.$g,a.xY,T.BZ,T.w1,T.fO,T.Dz,T.as,T.nj,T.ge,T.ev,T.XQ,T.Gk],pipes:[h.X$],styles:[""]}),t})();i(41939);var O=i(57629),P=i(59403),D=i(36922);const M=["list"];function L(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-refresh-button",7),l.NdJ("refresh",function(){return l.CHM(t),l.oxw().refreshTable()}),l.qZA()}}function N(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",8),l.NdJ("click",function(){return l.CHM(t),l.oxw().addGroup()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function z(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).removeGroup()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){const t=l.oxw(2);l.Q6J("disabled",0===t.selection.selected.length||void 0!==t.list&&!t.list.removeAuth),l.xp6(1),l.hij(" ",l.lcZ(2,2,"MEMBER_DETAIL.GROUPS.REMOVE")," ")}}function F(t,e){if(1&t&&(l.TgZ(0,"span",9),l.ALo(1,"translate"),l.YNc(2,z,3,4,"button",10),l.qZA()),2&t){const t=l.oxw();l.s9C("matTooltip",l.lcZ(1,3,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),l.Q6J("matTooltipDisabled",void 0===t.list||void 0!==t.list&&t.list.removeAuth),l.xp6(2),l.Q6J("ngIf",!t.loading)}}function Z(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",12),l.NdJ("filter",function(e){return l.CHM(t),l.oxw().applyFilter(e)}),l.qZA()}2&t&&l.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH")}function B(t,e){1&t&&l._UZ(0,"mat-spinner",13)}const q=function(){return["select","id","vo","name","description","expiration"]};function U(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-groups-list",14,15),l.NdJ("page",function(e){return l.CHM(t),l.oxw().pageChanged(e)})("refreshTable",function(){return l.CHM(t),l.oxw().refreshTable()}),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("pageSize",t.pageSize)("groups",t.groups)("displayedColumns",l.DdM(9,q))("selection",t.selection)("filter",t.filterValue)("memberId",t.memberId)("memberGroupStatus",t.member.groupStatus)("disableRouting",!t.routeAuth)("authType","member-groups")}}let H=(()=>{class t{constructor(t,e,i,n,r,a){this.groupsService=t,this.tableConfigService=e,this.route=i,this.dialog=n,this.authResolver=r,this.memberService=a,this.filterValue="",this.tableId=s.W1,this.selection=new o.Ov(!0,[])}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.memberId=t.memberId,this.memberService.getMemberById(this.memberId).subscribe(t=>{this.member=t,this.groupsService.getAllGroups(this.member.voId).subscribe(t=>{this.allGroups=t,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,["urn:perun:member_group:attribute-def:def:groupMembershipExpiration"]).subscribe(t=>{this.selection.clear(),this.filterValue="",this.groups=t,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const t={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((t,e)=>t||this.authResolver.isAuthorized("addMember_Group_Member_policy",[e]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[t,this.groups[0]]))}addGroup(){const t=(0,r.kZ)();t.width="850px",t.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(t=>t.id)),theme:"member-theme"},this.dialog.open(v,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeGroup(){const t=(0,r.kZ)();t.width="650px",t.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(I,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="MemberGroupsComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(n.ff),l.Y36(s.dB),l.Y36(O.gz),l.Y36(a.uw),l.Y36(c.x4),l.Y36(n.uq))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-member-groups"]],viewQuery:function(t,e){if(1&t&&l.Gf(M,5),2&t){let t;l.iGM(t=l.CRH())&&(e.list=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:9,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"pageSize","groups","displayedColumns","selection","filter","memberId","memberGroupStatus","disableRouting","authType","page","refreshTable",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[3,"pageSize","groups","displayedColumns","selection","filter","memberId","memberGroupStatus","disableRouting","authType","page","refreshTable"],["list",""]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.YNc(3,L,1,0,"perun-web-apps-refresh-button",1),l.YNc(4,N,3,3,"button",2),l.YNc(5,F,3,5,"span",3),l.YNc(6,Z,1,1,"perun-web-apps-immediate-filter",4),l.YNc(7,B,1,0,"mat-spinner",5),l.YNc(8,U,2,10,"perun-web-apps-groups-list",6)),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,7,"MEMBER_DETAIL.GROUPS.TITLE")),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.addAuth),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[d.O5,P.t,m.lW,D.gM,g.L,p.$g,f.W],pipes:[h.X$],styles:[""]}),t})()},40659:function(t,e,i){"use strict";i.d(e,{c:function(){return k}});var n=i(33642),s=i(60611),o=i(16073),r=i(61511),a=i(31572),c=i(57629),u=i(59403),l=i(66283),h=i(4786),d=i(71522),p=i(91058),g=i(51613),f=i(29236),m=i(15980),b=i(67806),w=i(21548),_=i(29851),y=i(48160);function A(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",16),a.NdJ("click",function(){return a.CHM(t),a.oxw().showAllDetails=!0}),a._uU(1),a.ALo(2,"translate"),a.qZA()}2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function v(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",16),a.NdJ("click",function(){return a.CHM(t),a.oxw().showAllDetails=!1}),a._uU(1),a.ALo(2,"translate"),a.qZA()}2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function T(t,e){1&t&&a._UZ(0,"mat-spinner",17)}function C(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"app-applications-list",20),a.NdJ("page",function(e){return a.CHM(t),a.oxw(2).pageChanged(e)}),a.qZA()}if(2&t){const t=a.oxw(2);a.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("applications",t.applications)("displayedColumns",t.displayedColumns)}}function S(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"app-perun-web-apps-application-list-details",21),a.NdJ("page",function(e){return a.CHM(t),a.oxw(2).detailPageChanged(e)}),a.qZA()}if(2&t){const t=a.oxw(2);a.Q6J("pageSize",t.detailPageSize)("filterValue",t.filterValue)("applications",t.applications)}}function E(t,e){if(1&t&&(a.TgZ(0,"div"),a.YNc(1,C,1,4,"app-applications-list",18),a.YNc(2,S,1,3,"app-perun-web-apps-application-list-details",19),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngIf",!t.showAllDetails),a.xp6(1),a.Q6J("ngIf",t.showAllDetails)}}let k=(()=>{class t{constructor(t,e,i,n){this.voService=t,this.registrarManager=e,this.tableConfigService=i,this.route=n,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","group","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=s.Jf,this.tableId=s.Hi,this.checked=!1}ngOnInit(){this.detailPageSize=this.tableConfigService.getTablePageSize(this.detailTableId),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.setData(["NEW","VERIFIED"])}),this.startDate=new o.NI((0,r.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new o.NI((0,r.p6)(new Date,"yyyy-MM-dd","en-GB"))})}setData(t){this.registrarManager.getApplicationsForVo(this.vo.id,t,(0,r.p6)(this.startDate.value,"yyyy-MM-dd","en-GB"),(0,r.p6)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(t=>{this.applications=!1===this.checked?t.filter(t=>null===t.group):t,this.loading=!1})}select(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}yearAgo(){const t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}showGroupApplications(t){this.checked=t.checked,this.select()}applyFilter(t){this.filterValue=t}detailPageChanged(t){this.detailPageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.detailTableId,t.pageSize)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="VoApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(a.Y36(n.YF),a.Y36(n.tk),a.Y36(s.dB),a.Y36(c.gz))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("router-component",e.true)},decls:38,vars:36,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,"startDate","endDate","datePicker"],["color","primary",3,"checked","change"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","applications","displayedColumns","page",4,"ngIf"],[3,"pageSize","filterValue","applications","page",4,"ngIf"],[3,"pageSize","filterValue","applications","displayedColumns","page"],[3,"pageSize","filterValue","applications","page"]],template:function(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div"),a.TgZ(4,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return e.select()}),a.qZA(),a.YNc(5,A,3,3,"button",2),a.YNc(6,v,3,3,"button",2),a.TgZ(7,"mat-form-field",3),a.TgZ(8,"mat-label"),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.TgZ(11,"mat-select",4),a.NdJ("selectionChange",function(){return e.select()})("valueChange",function(t){return e.state=t}),a.TgZ(12,"mat-option",5),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.TgZ(15,"mat-option",6),a._uU(16),a.ALo(17,"translate"),a.qZA(),a.TgZ(18,"mat-option",7),a._uU(19),a.ALo(20,"translate"),a.qZA(),a.TgZ(21,"mat-option",8),a._uU(22),a.ALo(23,"translate"),a.qZA(),a.TgZ(24,"mat-option",9),a._uU(25),a.ALo(26,"translate"),a.qZA(),a.TgZ(27,"mat-option",10),a._uU(28),a.ALo(29,"translate"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(30,"perun-web-apps-debounce-filter",11),a.NdJ("filter",function(t){return e.applyFilter(t)}),a.qZA(),a.TgZ(31,"perun-web-apps-date-range",12),a.NdJ("datePicker",function(){return e.select()}),a.qZA(),a.TgZ(32,"div"),a.TgZ(33,"mat-checkbox",13),a.NdJ("change",function(t){return e.showGroupApplications(t)}),a._uU(34),a.ALo(35,"translate"),a.qZA(),a.qZA(),a.qZA(),a.YNc(36,T,1,0,"mat-spinner",14),a.YNc(37,E,3,2,"div",15)),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,18,"VO_DETAIL.APPLICATION.TITLE")),a.xp6(4),a.Q6J("ngIf",!e.showAllDetails),a.xp6(1),a.Q6J("ngIf",e.showAllDetails),a.xp6(3),a.Oqu(a.lcZ(10,20,"VO_DETAIL.APPLICATION.TABLE_STATE")),a.xp6(2),a.Q6J("value",e.state),a.xp6(2),a.Oqu(a.lcZ(14,22,"VO_DETAIL.APPLICATION.SELECTION_ALL")),a.xp6(3),a.Oqu(a.lcZ(17,24,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),a.xp6(3),a.Oqu(a.lcZ(20,26,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),a.xp6(3),a.Oqu(a.lcZ(23,28,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),a.xp6(3),a.Oqu(a.lcZ(26,30,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),a.xp6(3),a.Oqu(a.lcZ(29,32,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),a.xp6(2),a.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),a.xp6(1),a.Q6J("startDate",e.startDate)("endDate",e.endDate),a.xp6(2),a.Q6J("checked",e.checked),a.xp6(1),a.hij(" ",a.lcZ(35,34,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[u.t,r.O5,l.KE,l.hX,h.gD,d.ey,p.P,g.S,f.oG,m.lW,b.$g,w.M,_.w],pipes:[y.X$],styles:[""]}),t})()},48002:function(t,e,i){"use strict";i.d(e,{G:function(){return B}});var n=i(88419),s=i(43491),o=i(4230),r=i(57820),a=i(27613),c=i(33642),u=i(60611),l=i(67004),h=i(88426),d=(i(41939),i(31572)),p=i(84608),g=i(48958),f=i(57629),m=i(59403),b=i(61511),w=i(91058),_=i(27521),y=i(16073),A=i(15980),v=i(36922),T=i(67806),C=i(11441),S=i(78364),E=i(39571),k=i(48160);const x=["toggle"],R=["tree"],I=["list"];function O(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",10),d.NdJ("click",function(){return d.CHM(t),d.oxw().onCreateGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function P(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",13),d.NdJ("click",function(){return d.CHM(t),d.oxw(2).deleteGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("disabled",0===t.selected.selected.length||t.disableRemove()),d.xp6(1),d.hij(" ",d.lcZ(2,2,"VO_DETAIL.GROUPS.DELETE_GROUP")," ")}}function D(t,e){if(1&t&&(d.TgZ(0,"span",11),d.ALo(1,"translate"),d.YNc(2,P,3,4,"button",12),d.qZA()),2&t){const t=d.oxw();d.s9C("matTooltip",d.lcZ(1,3,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),d.Q6J("matTooltipDisabled",void 0===t.tree&&void 0===t.list||t.disableTooltip()),d.xp6(2),d.Q6J("ngIf",!t.loading)}}function M(t,e){1&t&&d._UZ(0,"mat-spinner",14)}function L(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"perun-web-apps-groups-tree",18,19),d.NdJ("moveGroup",function(e){return d.CHM(t),d.oxw(2).onMoveGroup(e)})("refreshTable",function(){return d.CHM(t),d.oxw(2).loadAllGroups()}),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("groups",t.groups)("expandAll",t.filtering)("vo",t.vo)("selection",t.selected)("disableRouting",!t.routeAuth)("filterValue",t.filterValue)}}const N=function(){return["select","id","name","description","menu"]};function z(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",20,21),d.NdJ("page",function(e){return d.CHM(t),d.oxw(2).pageChanged(e)})("moveGroup",function(e){return d.CHM(t),d.oxw(2).onMoveGroup(e)})("refreshTable",function(){return d.CHM(t),d.oxw(2).loadAllGroups()}),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("pageSize",t.pageSize)("groups",t.groups)("selection",t.selected)("disableMembers",!0)("displayedColumns",d.DdM(8,N))("disableRouting",!t.routeAuth)("authType","vo-groups")("filter",t.filterValue)}}function F(t,e){if(1&t&&(d.TgZ(0,"div",15),d.YNc(1,L,2,6,"perun-web-apps-groups-tree",16),d.YNc(2,z,2,9,"perun-web-apps-groups-list",17),d.qZA()),2&t){const t=d.oxw();d.xp6(1),d.Q6J("ngIf",!t.showGroupList),d.xp6(1),d.Q6J("ngIf",t.showGroupList)}}function Z(t,e){1&t&&(d.TgZ(0,"app-alert",22),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}let B=(()=>{class t{constructor(t,e,i,n,s,r,a,c){this.dialog=t,this.groupService=e,this.sideMenuService=i,this.voService=n,this.route=s,this.tableConfigService=r,this.authResolver=a,this.initAuthService=c,this.groups=[],this.showGroupList=!1,this.selected=new o.Ov(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=u.rc}onCreateGroup(){const t=(0,a.kZ)();t.width="450px",t.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(n.y,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.loadAllGroups())})}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),"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.route.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,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 void 0!==this.tree&&this.tree.removeAuth||void 0!==this.list&&this.list.removeAuth}deleteGroup(){const t=(0,a.kZ)();t.width="450px",t.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(s.P,t).afterClosed().subscribe(t=>{t&&this.loadAllGroups()})}removeAllGroups(){this.selected.clear()}onMoveGroup(t){const e=(0,a.kZ)();e.width="550px",e.data={group:t,theme:"vo-theme"},this.dialog.open(r.c,e).afterClosed().subscribe(t=>{t&&this.loadAllGroups()})}loadAllGroups(){this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[l.r.GROUP_SYNC_ENABLED,l.r.GROUP_LAST_SYNC_STATE,l.r.GROUP_LAST_SYNC_TIMESTAMP,l.r.GROUP_STRUCTURE_SYNC_ENABLED,l.r.GROUP_LAST_STRUCTURE_SYNC_STATE,l.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(t=>{this.groups=t,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t,this.filtering=""!==t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="VoGroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Y36(p.uw),d.Y36(c.ff),d.Y36(g.D),d.Y36(c.YF),d.Y36(f.gz),d.Y36(u.dB),d.Y36(h.x4),d.Y36(h.v0))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-vo-groups"]],viewQuery:function(t,e){if(1&t&&(d.Gf(x,7),d.Gf(R,5),d.Gf(I,5)),2&t){let t;d.iGM(t=d.CRH())&&(e.toggle=t.first),d.iGM(t=d.CRH())&&(e.tree=t.first),d.iGM(t=d.CRH())&&(e.list=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("router-component",e.true)},decls:18,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"pageSize","groups","selection","disableMembers","displayedColumns","disableRouting","authType","filter","page","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable"],["tree",""],["theme","vo-theme",3,"pageSize","groups","selection","disableMembers","displayedColumns","disableRouting","authType","filter","page","moveGroup","refreshTable"],["list",""],["alert_type","warn"]],template:function(t,e){if(1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return e.loadAllGroups()}),d.qZA(),d.YNc(5,O,3,3,"button",2),d.YNc(6,D,3,5,"span",3),d.TgZ(7,"perun-web-apps-debounce-filter",4),d.NdJ("filter",function(t){return e.applyFilter(t)}),d.qZA(),d.TgZ(8,"mat-slide-toggle",5,6),d.NdJ("change",function(){return e.removeAllGroups()})("ngModelChange",function(t){return e.showGroupList=t}),d._uU(10),d.ALo(11,"translate"),d.qZA(),d.TgZ(12,"label"),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.YNc(15,M,1,0,"mat-spinner",7),d.YNc(16,F,3,2,"div",8),d.YNc(17,Z,3,3,"app-alert",9),d.qZA()),2&t){const t=d.MAs(9);d.xp6(2),d.Oqu(d.lcZ(3,11,"VO_DETAIL.GROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",!e.loading&&e.createAuth),d.xp6(1),d.Q6J("ngIf",!e.loading),d.xp6(1),d.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),d.xp6(1),d.Q6J("ngModel",e.showGroupList),d.xp6(2),d.Oqu(d.lcZ(11,13,"VO_DETAIL.GROUPS.TREE_VIEW")),d.xp6(2),d.uIk("for",t.inputId),d.xp6(1),d.Oqu(d.lcZ(14,15,"VO_DETAIL.GROUPS.LIST_VIEW")),d.xp6(2),d.Q6J("ngIf",e.loading),d.xp6(1),d.Q6J("ngIf",!e.loading&&0!==e.groups.length),d.xp6(1),d.Q6J("ngIf",0===e.groups.length&&!e.loading)}},directives:[m.t,b.O5,w.P,_.Rr,y.JJ,y.On,A.lW,v.gM,T.$g,C.I,S.W,E.w],pipes:[k.X$],styles:[""]}),t})()},28940:function(t,e,i){"use strict";i.d(e,{y:function(){return D}});var n=i(4230),s=i(88426),o=i(4374),r=i(85613),a=i(33642),c=i(67004),u=i(16073),l=i(60611),h=i(27613),d=i(88690),p=i(31572),g=i(57629),f=i(84608),m=i(59403),b=i(36922),w=i(61511),_=i(66283),y=i(4786),A=i(91058),v=i(15980),T=i(71522),C=i(67806),S=i(91779),E=i(48160);function k(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",14),p.NdJ("click",function(){return p.CHM(t),p.oxw().onAddMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.blockManualMemberAdding),p.xp6(1),p.hij(" ",p.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function x(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",15),p.NdJ("click",function(){return p.CHM(t),p.oxw().onInviteMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function R(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",16),p.NdJ("click",function(){return p.CHM(t),p.oxw().onRemoveMembers()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.selection.isEmpty()),p.xp6(1),p.hij(" ",p.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function I(t,e){if(1&t&&(p.TgZ(0,"mat-option",17),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.Oqu(t)}}function O(t,e){1&t&&p._UZ(0,"mat-spinner",18)}function P(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-members-dynamic-list",19),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("voId",t.vo.id)("pageSize",t.pageSize)("selection",t.selection)("displayedColumns",t.displayedColumns)("attrNames",t.attrNames)("searchString",t.searchString)("selectedStatuses",t.selectedStatuses)("updateTable",t.updateTable)}}let D=(()=>{class t{constructor(t,e,i,s,o,r,a,h,d){this.voService=t,this.route=e,this.notificator=i,this.tableConfigService=s,this.dialog=o,this.authzService=r,this.storeService=a,this.attributesManager=h,this.apiRequest=d,this.members=null,this.selection=new n.Ov(!0,[]),this.loading=!1,this.attrNames=[c.r.MEMBER_DEF_ORGANIZATION,c.r.MEMBER_DEF_MAIL,c.r.USER_DEF_ORGANIZATION,c.r.USER_DEF_PREFERRED_MAIL,c.r.MEMBER_DEF_EXPIRATION],this.statuses=new u.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=l.j1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.updateTable=!1}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.statuses.setValue(this.selectedStatuses),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.route.parent.params.subscribe(t=>{const e=t.voId;this.isManualAddingBlocked(e).then(()=>{this.voService.getVoById(e).subscribe(t=>{this.vo=t,this.setAuthRights(),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(t){this.searchString=t,this.updateTable=!this.updateTable}onAddMember(){const t=(0,h.kZ)();t.width="1000px",t.data={entityId:this.vo.id,voId:this.vo.id,theme:"vo-theme",type:"vo"},this.dialog.open(r.o,t).afterClosed().subscribe(t=>{t&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const t=(0,h.kZ)();t.width="450px",t.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(o.X,t).afterClosed().subscribe(t=>{t&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const t=(0,h.kZ)();t.width="650px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(d.R,t)}displaySelectedStatuses(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?`${this.statuses.value[0]} ${this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""}`:""}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}isManualAddingBlocked(t){return new Promise(e=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(t=>{this.blockManualMemberAdding=null!==t.value,e()},t=>{"PrivilegeException"!==t.error.name&&this.notificator.showError(t),e()})})}changeStatuses(){this.selectedStatuses=this.statuses.value}}return t.id="VoMembersComponent",t.\u0275fac=function(e){return new(e||t)(p.Y36(a.YF),p.Y36(g.gz),p.Y36(s.V6),p.Y36(l.dB),p.Y36(f.uw),p.Y36(s.x4),p.Y36(s.d6),p.Y36(a.H8),p.Y36(s.F5))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:22,vars:19,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",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,"voId","pageSize","selection","displayedColumns","attrNames","searchString","selectedStatuses","updateTable","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"voId","pageSize","selection","displayedColumns","attrNames","searchString","selectedStatuses","updateTable","page"]],template:function(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"h1",1),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",2),p.TgZ(5,"perun-web-apps-refresh-button",3),p.NdJ("click",function(){return e.updateTable=!e.updateTable}),p.qZA(),p.TgZ(6,"div",4),p.ALo(7,"translate"),p.YNc(8,k,3,4,"button",5),p.qZA(),p.YNc(9,x,3,3,"button",6),p.YNc(10,R,3,4,"button",7),p.TgZ(11,"mat-form-field",8),p.TgZ(12,"mat-label"),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.TgZ(15,"mat-select",9),p.NdJ("closed",function(){return e.changeStatuses()}),p.TgZ(16,"mat-select-trigger"),p._uU(17),p.qZA(),p.YNc(18,I,2,2,"mat-option",10),p.qZA(),p.qZA(),p.TgZ(19,"perun-web-apps-debounce-filter",11),p.NdJ("filter",function(t){return e.onSearchByString(t)}),p.qZA(),p.qZA(),p.YNc(20,O,1,0,"mat-spinner",12),p.YNc(21,P,1,8,"perun-web-apps-members-dynamic-list",13),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,13,"VO_DETAIL.MEMBERS.TITLE")),p.xp6(4),p.s9C("matTooltip",p.lcZ(7,15,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),p.Q6J("matTooltipDisabled",!e.blockManualMemberAdding),p.xp6(2),p.Q6J("ngIf",e.addAuth),p.xp6(1),p.Q6J("ngIf",e.inviteAuth),p.xp6(1),p.Q6J("ngIf",e.removeAuth),p.xp6(3),p.Oqu(p.lcZ(14,17,"VO_DETAIL.MEMBERS.FILTER_STATUS")),p.xp6(2),p.Q6J("formControl",e.statuses),p.xp6(2),p.hij(" ",e.displaySelectedStatuses()," "),p.xp6(1),p.Q6J("ngForOf",e.statusList),p.xp6(1),p.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[m.t,b.gM,w.O5,_.KE,_.hX,y.gD,u.JJ,u.oH,y.$L,w.sg,A.P,v.lW,T.ey,C.$g,S.m],pipes:[E.X$],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}"]}),t})()},88227:function(t,e,i){"use strict";i.d(e,{z:function(){return v}});var n=i(4230),s=i(33642),o=i(95909),r=i(60611),a=i(27613),c=i(88426),u=i(31572),l=i(57629),h=i(84608),d=i(59403),p=i(61511),g=i(19139),f=i(15980),m=i(67806),b=i(88884),w=i(48160);function _(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",6),u.NdJ("click",function(){return u.CHM(t),u.oxw().deleteSelectedResources()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&t){const t=u.oxw();u.Q6J("disabled",0===t.selected.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function y(t,e){1&t&&u._UZ(0,"mat-spinner",7)}function A(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-resources-list",8),u.NdJ("page",function(e){return u.CHM(t),u.oxw().pageChanged(e)}),u.qZA()}if(2&t){const t=u.oxw();u.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("resources",t.resources)("routingVo",!0)("disableRouting",!t.routeAuth)("selection",t.selected)("displayedColumns",t.displayedColumns)}}let v=(()=>{class t{constructor(t,e,i,s,o,a){this.resourcesManager=t,this.voService=e,this.route=i,this.tableConfigService=s,this.dialog=o,this.authResolver=a,this.resources=[],this.selected=new n.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=r.nT,this.routeAuth=!1}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,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(t=>{this.resources=t,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t}deleteSelectedResources(){const t=(0,a.kZ)();t.width="450px",t.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(o.f,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="VoResourcesPreviewComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(s.xk),u.Y36(s.YF),u.Y36(l.gz),u.Y36(r.dB),u.Y36(h.uw),u.Y36(c.x4))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.true)},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","displayedColumns","page"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.YNc(5,_,3,4,"button",2),u.TgZ(6,"perun-web-apps-immediate-filter",3),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(7,y,1,0,"mat-spinner",4),u.YNc(8,A,1,7,"perun-web-apps-resources-list",5),u.qZA()),2&t&&(u.xp6(2),u.Oqu(u.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),u.xp6(3),u.Q6J("ngIf",!e.loading&&e.removeAuth),u.xp6(1),u.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[d.t,p.O5,g.L,f.lW,m.$g,b.C],pipes:[w.X$],styles:[""]}),t})()},97397:function(t,e,i){"use strict";i.d(e,{z:function(){return Q}});var n=i(88426),s=i(33642),o=i(31572),r=i(57629),a=i(61511),c=i(67806),u=i(59403),l=i(55109),h=i(67033),d=i(45001),p=i(27679),g=i(48160);function f(t,e){if(1&t&&(o.TgZ(0,"mat-panel-description"),o.TgZ(1,"div"),o.TgZ(2,"i",7),o._uU(3," error "),o.qZA(),o._uU(4),o.ALo(5,"translate"),o.ALo(6,"translate"),o.qZA(),o.qZA()),2&t){const t=o.oxw().$implicit,e=o.oxw();o.xp6(4),o.HOy(" ",e.getErrorCountStates(t)," ",o.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",t.taskList.length," ",o.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function m(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")))}function b(t,e){if(1&t&&(o.TgZ(0,"td",21),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(t.id)}}function w(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")))}function _(t,e){if(1&t&&(o.TgZ(0,"td",21),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(t.service.name)}}function y(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")))}function A(t,e){if(1&t&&(o.TgZ(0,"td",21),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(t.status)}}function v(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")))}function T(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){const t=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,t.schedule,"d.M.y H:mm:ss")," ")}}function C(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function S(t,e){if(1&t&&(o.TgZ(0,"td",21),o.YNc(1,T,3,4,"div",22),o.YNc(2,C,2,3,"ng-template",23,24,o.W1O),o.qZA()),2&t){const t=e.$implicit,i=o.MAs(3);o.xp6(1),o.Q6J("ngIf",t.schedule)("ngIfElse",i)}}function E(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")))}function k(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){const t=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,t.schedule,"d.M.y H:mm:ss")," ")}}function x(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function R(t,e){if(1&t&&(o.TgZ(0,"td",21),o.YNc(1,k,3,4,"div",22),o.YNc(2,x,2,3,"ng-template",23,24,o.W1O),o.qZA()),2&t){const t=e.$implicit,i=o.MAs(3);o.xp6(1),o.Q6J("ngIf",t.startTime)("ngIfElse",i)}}function I(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")))}function O(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){const t=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,t.schedule,"d.M.y H:mm:ss")," ")}}function P(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function D(t,e){if(1&t&&(o.TgZ(0,"td",21),o.YNc(1,O,3,4,"div",22),o.YNc(2,P,2,3,"ng-template",23,24,o.W1O),o.qZA()),2&t){const t=e.$implicit,i=o.MAs(3);o.xp6(1),o.Q6J("ngIf",t.endTime)("ngIfElse",i)}}function M(t,e){1&t&&o._UZ(0,"tr",25)}const L=function(t,e,i){return{redTableItem:t,greenTableItem:e,yellowTableItem:i}};function N(t,e){if(1&t&&o._UZ(0,"tr",26),2&t){const t=e.$implicit;o.Q6J("ngClass",o.kEZ(1,L,"ERROR"===t.status||"SENDERROR"===t.status||"GENERROR"===t.status,"DONE"===t.status,"WARNING"===t.status))}}function z(t,e){if(1&t&&(o.TgZ(0,"table",9),o.ynx(1,10),o.YNc(2,m,3,3,"th",11),o.YNc(3,b,2,1,"td",12),o.BQk(),o.ynx(4,13),o.YNc(5,w,3,3,"th",11),o.YNc(6,_,2,1,"td",12),o.BQk(),o.ynx(7,14),o.YNc(8,y,3,3,"th",11),o.YNc(9,A,2,1,"td",12),o.BQk(),o.ynx(10,15),o.YNc(11,v,3,3,"th",11),o.YNc(12,S,4,2,"td",12),o.BQk(),o.ynx(13,16),o.YNc(14,E,3,3,"th",11),o.YNc(15,R,4,2,"td",12),o.BQk(),o.ynx(16,17),o.YNc(17,I,3,3,"th",11),o.YNc(18,D,4,2,"td",12),o.BQk(),o.YNc(19,M,1,0,"tr",18),o.YNc(20,N,1,5,"tr",19),o.qZA()),2&t){const t=o.oxw(2).$implicit,e=o.oxw();o.Q6J("dataSource",e.datasources[e.propagation.indexOf(t)]),o.xp6(19),o.Q6J("matHeaderRowDef",e.displayedColumns),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns)}}function F(t,e){1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function Z(t,e){if(1&t&&(o._UZ(0,"mat-divider"),o.YNc(1,z,21,3,"table",8),o.YNc(2,F,3,3,"div",5)),2&t){const t=o.oxw().$implicit;o.xp6(1),o.Q6J("ngIf",0!==t.taskList.length),o.xp6(1),o.Q6J("ngIf",0===t.taskList.length)}}function B(t,e){if(1&t&&(o.TgZ(0,"mat-expansion-panel"),o.TgZ(1,"mat-expansion-panel-header"),o.TgZ(2,"mat-panel-title"),o._UZ(3,"img",3),o.TgZ(4,"div",4),o._uU(5),o.qZA(),o.qZA(),o.YNc(6,f,7,8,"mat-panel-description",5),o.qZA(),o.YNc(7,Z,3,2,"ng-template",6),o.qZA()),2&t){const t=e.$implicit,i=o.oxw();o.xp6(5),o.hij(" ",t.resource.name," "),o.xp6(1),o.Q6J("ngIf",0!==i.getErrorCountStates(t))}}let q=(()=>{class t{constructor(){this.propagation=[],this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}ngOnInit(){this.getDataSource()}getErrorCountStates(t){let e=0;for(const i of t.taskList)"ERROR"!==i.status&&"GENERROR"!==i.status&&"SENDERROR"!==i.status||e++;return e}getDataSource(){for(const t of this.propagation)this.datasources.push(new h.by(t.taskList))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-state-tab"]],inputs:{propagation:"propagation"},decls:3,vars:1,consts:[[1,"p-2"],["multi","true","togglePosition","before",1,"headers-align"],[4,"ngFor","ngForOf"],["src","assets/img/PerunWebImages/resource-black.svg","height","28","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["mat-table","","class","w-100",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(t,e){1&t&&(o.TgZ(0,"div",0),o.TgZ(1,"mat-accordion",1),o.YNc(2,B,8,2,"mat-expansion-panel",2),o.qZA(),o.qZA()),2&t&&(o.xp6(2),o.Q6J("ngForOf",e.propagation))},directives:[d.pp,a.sg,d.ib,d.yz,d.yK,a.O5,d.HS,d.u4,p.d,h.BZ,h.w1,h.fO,h.Dz,h.as,h.nj,h.ge,h.ev,h.XQ,h.Gk,a.mk],pipes:[g.X$,a.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_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}"]}),t})();var U=i(39571);function H(t,e){1&t&&o._UZ(0,"mat-spinner",3)}function j(t,e){if(1&t&&(o._uU(0),o.ALo(1,"translate"),o.TgZ(2,"span",8),o._uU(3),o.qZA()),2&t){const t=o.oxw(2);o.hij(" ",o.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),o.xp6(3),o.Oqu(t.errorPropagation.length)}}function G(t,e){1&t&&(o.TgZ(0,"app-alert",11),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.Q6J("alert_type","warn"),o.xp6(1),o.hij(" ",o.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function Y(t,e){if(1&t&&(o.YNc(0,G,3,4,"app-alert",9),o._UZ(1,"app-state-tab",10)),2&t){const t=o.oxw(2);o.Q6J("ngIf",0===t.errorPropagation.length),o.xp6(1),o.Q6J("propagation",t.errorPropagation)}}function V(t,e){if(1&t&&(o._uU(0),o.ALo(1,"translate"),o.TgZ(2,"span",12),o._uU(3),o.qZA()),2&t){const t=o.oxw(2);o.hij(" ",o.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),o.xp6(3),o.Oqu(t.okPropagation.length)}}function K(t,e){1&t&&(o.TgZ(0,"app-alert",14),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function J(t,e){if(1&t&&(o.YNc(0,K,3,3,"app-alert",13),o._UZ(1,"app-state-tab",10)),2&t){const t=o.oxw(2);o.Q6J("ngIf",0===t.okPropagation.length),o.xp6(1),o.Q6J("propagation",t.okPropagation)}}function $(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"perun-web-apps-refresh-button",4),o.NdJ("refresh",function(){return o.CHM(t),o.oxw().refreshTable()}),o.qZA(),o.TgZ(2,"mat-tab-group",5),o.NdJ("selectedIndexChange",function(e){return o.CHM(t),o.oxw().selectedIndex=e}),o.TgZ(3,"mat-tab"),o.YNc(4,j,4,4,"ng-template",6),o.YNc(5,Y,2,2,"ng-template",7),o.qZA(),o.TgZ(6,"mat-tab"),o.YNc(7,V,4,4,"ng-template",6),o.YNc(8,J,2,2,"ng-template",7),o.qZA(),o.qZA(),o.qZA()}if(2&t){const t=o.oxw();o.xp6(2),o.Q6J("selectedIndex",t.selectedIndex)}}let Q=(()=>{class t{constructor(t,e,i){this.route=t,this.taskService=e,this.customIconService=i,this.loading=!1,this.resourceStates=[],this.selectedIndex=0}ngOnInit(){this.customIconService.registerPerunRefreshIcon(),this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.refreshTable()})}refreshTable(){console.log(this.selectedIndex),this.loading=!0,this.taskService.getAllResourcesState(this.voId).subscribe(t=>{this.resourceStates=t,this.okPropagation=[],this.errorPropagation=[];for(const e of t){let t=!0;for(const i of e.taskList)if("ERROR"===i.status||"GENERROR"===i.status||"SENDERROR"===i.status){t=!1;break}t?this.okPropagation.push(e):this.errorPropagation.push(e)}this.loading=!1})}}return t.id="VoResourcesStatesComponent",t.\u0275fac=function(e){return new(e||t)(o.Y36(r.gz),o.Y36(s.Ob),o.Y36(n.EB))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"refresh"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["matTabContent",""],[1,"badge","badge-danger","ml-1"],[3,"alert_type",4,"ngIf"],[3,"propagation"],[3,"alert_type"],[1,"badge","badge-success","ml-1"],["alert_type","warn",4,"ngIf"],["alert_type","warn"]],template:function(t,e){1&t&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.YNc(3,H,1,0,"mat-spinner",1),o.YNc(4,$,9,1,"div",2)),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,3,"VO_DETAIL.RESOURCES.STATES.TITLE")),o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading))},directives:[a.O5,c.$g,u.t,l.SP,l.uX,l.uD,l.Vc,q,U.w],pipes:[g.X$],styles:[""]}),t})()},14527:function(t,e,i){"use strict";i.d(e,{w:function(){return I}});var n=i(24555),s=i(88426),o=i(68570),r=i(92438),a=i(75954),c=i(33642),u=i(27613),l=i(31572),h=i(57629),d=i(84608),p=i(48160),g=i(61511),f=i(67806),m=i(43691),b=i(36922),w=i(27679),_=i(59403),y=i(15980),A=i(92846),v=i(39571);function T(t,e){1&t&&l._UZ(0,"mat-spinner",3)}function C(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",21),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).settings()}),l.TgZ(1,"i",18),l._uU(2,"edit"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function S(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",22),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).add()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function E(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",23),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).save()}),l.TgZ(1,"i",18),l._uU(2,"save"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}if(2&t){const t=l.oxw(2);l.Q6J("disabled",!t.itemsChanged),l.xp6(3),l.hij(" ",l.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function k(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",24),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).copy()}),l.TgZ(1,"i",18),l._uU(2,"file_copy"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function x(t,e){1&t&&(l.TgZ(0,"app-alert",25),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.Q6J("alert_type","info"),l.xp6(1),l.hij(" ",l.lcZ(2,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}function R(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"div",4),l.TgZ(2,"div",5),l.TgZ(3,"div",6),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.TgZ(6,"div"),l.TgZ(7,"span",6),l._uU(8),l.ALo(9,"translate"),l.qZA(),l._uU(10,": "),l.TgZ(11,"mat-icon",7),l._uU(12,"arrow_right_alt"),l.qZA(),l._uU(13),l.ALo(14,"translate"),l.ALo(15,"translate"),l.TgZ(16,"mat-icon",8),l._uU(17,"restore"),l.qZA(),l._uU(18),l.ALo(19,"translate"),l.ALo(20,"translate"),l.qZA(),l.qZA(),l.TgZ(21,"div",9),l.YNc(22,C,5,3,"button",10),l.qZA(),l.qZA(),l._UZ(23,"mat-divider",11),l.TgZ(24,"div",12),l.TgZ(25,"perun-web-apps-refresh-button",13),l.NdJ("refresh",function(){return l.CHM(t),l.oxw().updateFormItems()}),l.qZA(),l.YNc(26,S,3,3,"button",14),l.YNc(27,E,5,4,"button",15),l.YNc(28,k,5,3,"button",16),l.TgZ(29,"button",17),l.NdJ("click",function(){return l.CHM(t),l.oxw().preview()}),l.TgZ(30,"i",18),l._uU(31,"search"),l.qZA(),l._uU(32),l.ALo(33,"translate"),l.qZA(),l.qZA(),l.YNc(34,x,3,4,"app-alert",19),l.TgZ(35,"app-application-form-list",20),l.NdJ("applicationFormItemsChange",function(){return l.CHM(t),l.oxw().changeItems()}),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(4),l.AsE("",l.lcZ(5,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",t.applicationForm.moduleClassName," "),l.xp6(4),l.Oqu(l.lcZ(9,18,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),l.xp6(5),l.hij(" ",t.applicationForm.automaticApproval?l.lcZ(14,20,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(15,22,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),l.xp6(5),l.hij(" ",t.applicationForm.automaticApprovalExtension?l.lcZ(19,24,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(20,26,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),l.xp6(4),l.Q6J("ngIf",t.editAuth),l.xp6(4),l.Q6J("ngIf",t.editAuth),l.xp6(1),l.Q6J("ngIf",t.editAuth),l.xp6(1),l.Q6J("ngIf",t.editAuth),l.xp6(4),l.hij(" ",l.lcZ(33,28,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),l.xp6(2),l.Q6J("ngIf",t.editAuth),l.xp6(1),l.Q6J("loading",t.loading)("applicationForm",t.applicationForm)("applicationFormItems",t.applicationFormItems)("theme","vo-theme")("displayedColumns",t.displayedColumns)}}let I=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.registrarManager=t,this.route=e,this.dialog=i,this.notificator=n,this.translate=s,this.router=o,this.authResolver=r,this.voService=a,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.idCounter=-1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{const e=t.voId;this.voId=e,this.registrarManager.getVoApplicationForm(e).subscribe(t=>{this.applicationForm=t,this.registrarManager.getFormItemsForVo(e).subscribe(t=>{this.applicationFormItems=t,this.voService.getVoById(this.voId).subscribe(t=>{this.vo=t,this.setAuthRights(),this.loading=!1})})})})}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"]}add(){let t=(0,u.kZ)();t.width="500px",t.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(r.J,t).afterClosed().subscribe(e=>{e&&(this.applicationFormItems=Object.assign([],e[0]),t=(0,u.kZ)(),t.width="600px",t.height="600px",t.data={voId:this.voId,applicationFormItem:e[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(a._,t),this.itemsChanged=!0)})}copy(){const t=(0,u.kZ)();t.width="500px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(o.W,t).afterClosed().subscribe(t=>{t&&this.updateFormItems()})}settings(){const t=(0,u.kZ)();t.width="400px",t.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(n.E,t).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.applicationForm=t)})}preview(){this.router.navigate(["/organizations",this.voId,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.registrarManager.getFormItemsForVo(this.voId).subscribe(t=>{this.applicationFormItems=t,this.itemsChanged=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let t=0;for(const e of this.applicationFormItems)e.ordnum=t,e.forDelete||t++;this.registrarManager.updateFormItemsForVo({vo:this.voId,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(t=>t.forDelete=!0),this.itemsChanged=!0}}return t.id="VoSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(c.tk),l.Y36(h.gz),l.Y36(d.uw),l.Y36(s.V6),l.Y36(p.sK),l.Y36(h.F0),l.Y36(s.x4),l.Y36(c.YF))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[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"],["mat-stroked-button","","class","ml-auto",3,"click",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],[3,"alert_type",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","applicationFormItemsChange"],["mat-stroked-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"click"],[3,"alert_type"]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.YNc(3,T,1,0,"mat-spinner",1),l.YNc(4,R,36,30,"div",2)),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[g.O5,f.$g,m.Hw,b.gM,w.d,_.t,y.lW,A.b,v.w],pipes:[p.X$],styles:[""]}),t})()},48666:function(t,e,i){"use strict";i.d(e,{T:function(){return pe}});var n=i(33642),s=i(4230),o=i(60611),r=i(27613),a=i(84608),c=i(88426),u=i(16073),l=i(61511),h=i(14732),d=i(81110),p=i(40878),g=i(44689),f=i(79996),m=i(47727),b=i(31572),w=i(48160),_=i(67806),y=i(70663),A=i(66283),v=i(80340),T=i(15980),C=i(4786),S=i(36922),E=i(29236),k=i(54810),x=i(15812);let R=(()=>{class t{constructor(){this.expiration="never",this.expirationControl=new u.NI(null),this.datePicker=new b.vpe}ngOnInit(){const t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationControl.setValue((0,l.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}setExpiration(){this.expiration=(0,l.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,l.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=b.Xpm({type:t,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(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"mat-radio-group",0),b.NdJ("ngModelChange",function(t){return e.expiration=t})("change",function(){return e.emitDate()}),b.TgZ(1,"mat-radio-button",1),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"mat-radio-button",2),b.TgZ(5,"mat-form-field",3),b.NdJ("click",function(){return b.CHM(t),b.MAs(12).open()}),b.TgZ(6,"mat-label"),b._uU(7),b.ALo(8,"translate"),b.qZA(),b.TgZ(9,"input",4),b.NdJ("dateChange",function(){return e.setExpiration()}),b.qZA(),b._UZ(10,"mat-datepicker-toggle",5),b._UZ(11,"mat-datepicker",6,7),b.qZA(),b.qZA(),b.qZA()}if(2&t){const t=b.MAs(12);b.Q6J("ngModel",e.expiration),b.xp6(2),b.hij(" ",b.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),b.xp6(2),b.s9C("value",e.expirationControl.value),b.xp6(3),b.Oqu(b.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),b.xp6(2),b.Q6J("min",e.minDate)("formControl",e.expirationControl)("matDatepicker",t),b.xp6(1),b.Q6J("for",t)("disabled",!1),b.xp6(1),b.Q6J("disabled",!1)}},directives:[k.VQ,u.JJ,u.On,k.U0,A.KE,A.hX,v.Nt,u.Fj,x.hl,u.oH,x.nW,A.R9,x.Mq],pipes:[w.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();var I=i(39571),O=i(71522),P=i(43691),D=i(7927),M=i(22196);function L(t,e){1&t&&(b.TgZ(0,"h1",4),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")))}function N(t,e){1&t&&b._UZ(0,"mat-spinner",5)}function z(t,e){1&t&&(b._uU(0),b.ALo(1,"translate")),2&t&&b.Oqu(b.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function F(t,e){1&t&&(b.TgZ(0,"app-alert",42),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function Z(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function B(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function q(t,e){1&t&&(b._uU(0),b.ALo(1,"translate")),2&t&&b.Oqu(b.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function U(t,e){if(1&t&&(b.TgZ(0,"mat-option",43),b._uU(1),b.qZA()),2&t){const t=e.$implicit;b.Q6J("value",t),b.xp6(1),b.hij(" ",t," ")}}function H(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function j(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function G(t,e){1&t&&b._UZ(0,"mat-spinner",44),2&t&&b.Q6J("diameter",18)}function Y(t,e){1&t&&(b.TgZ(0,"mat-icon",45),b.ALo(1,"translate"),b._uU(2," error "),b.qZA()),2&t&&b.Q6J("matTooltip",b.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACKEND_ERROR_LONG"))}function V(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")))}function K(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACKEND_ERROR")))}function J(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function $(t,e){1&t&&(b._uU(0),b.ALo(1,"translate")),2&t&&b.Oqu(b.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function Q(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"div"),b.TgZ(1,"perun-web-apps-user-search-select",46),b.NdJ("userSelected",function(e){return b.CHM(t),b.oxw(2).selectedSponsor=e}),b.qZA(),b.qZA()}if(2&t){const t=b.oxw(2);b.xp6(1),b.Q6J("users",t.voSponsors)("disableAutoSelect",!0)}}function W(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"div",6),b.TgZ(1,"mat-horizontal-stepper",7),b.TgZ(2,"mat-step",8),b.YNc(3,z,2,3,"ng-template",9),b.YNc(4,F,3,3,"app-alert",10),b.TgZ(5,"form",11),b.TgZ(6,"h5",12),b._uU(7),b.ALo(8,"translate"),b.qZA(),b.TgZ(9,"mat-form-field",13),b._UZ(10,"input",14),b.ALo(11,"translate"),b.YNc(12,Z,3,3,"mat-error",15),b.qZA(),b.TgZ(13,"mat-form-field"),b._UZ(14,"input",16),b.ALo(15,"translate"),b.YNc(16,B,3,3,"mat-error",15),b.qZA(),b.TgZ(17,"mat-form-field"),b._UZ(18,"input",17),b.ALo(19,"translate"),b.qZA(),b.TgZ(20,"mat-form-field"),b._UZ(21,"input",18),b.ALo(22,"translate"),b.qZA(),b.qZA(),b.TgZ(23,"div",19),b.TgZ(24,"button",20),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCancel()}),b._uU(25),b.ALo(26,"translate"),b.qZA(),b.TgZ(27,"button",21),b._uU(28),b.ALo(29,"translate"),b.qZA(),b.qZA(),b.qZA(),b.TgZ(30,"mat-step",8),b.YNc(31,q,2,3,"ng-template",9),b.TgZ(32,"h5",12),b._uU(33),b.ALo(34,"translate"),b.qZA(),b.TgZ(35,"form",22),b.TgZ(36,"mat-form-field"),b.TgZ(37,"mat-select",23),b.NdJ("valueChange",function(e){return b.CHM(t),b.oxw().onNamespaceChanged(e)}),b.ALo(38,"translate"),b.YNc(39,U,2,2,"mat-option",24),b.qZA(),b.YNc(40,H,3,3,"mat-error",15),b.qZA(),b.TgZ(41,"mat-form-field",25),b.ALo(42,"translate"),b._UZ(43,"input",26),b.ALo(44,"translate"),b.YNc(45,j,3,3,"mat-error",15),b.qZA(),b.TgZ(46,"span",25),b.ALo(47,"translate"),b.TgZ(48,"mat-checkbox",27),b.NdJ("change",function(){return b.CHM(t),b.oxw().passwordResetChange()}),b._uU(49),b.ALo(50,"translate"),b.qZA(),b.qZA(),b.TgZ(51,"mat-form-field",25),b._UZ(52,"input",28),b.ALo(53,"translate"),b.YNc(54,G,1,1,"mat-spinner",29),b.YNc(55,Y,3,3,"mat-icon",30),b.YNc(56,V,3,3,"mat-error",15),b.YNc(57,K,3,3,"mat-error",15),b.qZA(),b.TgZ(58,"mat-checkbox",31),b._uU(59),b.ALo(60,"translate"),b.qZA(),b.TgZ(61,"mat-form-field"),b._UZ(62,"input",32),b.ALo(63,"translate"),b.YNc(64,J,3,3,"mat-error",15),b.qZA(),b.TgZ(65,"div",19),b.TgZ(66,"button",20),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCancel()}),b._uU(67),b.ALo(68,"translate"),b.qZA(),b.TgZ(69,"button",33),b._uU(70),b.ALo(71,"translate"),b.qZA(),b.TgZ(72,"button",34),b._uU(73),b.ALo(74,"translate"),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.TgZ(75,"mat-step"),b.YNc(76,$,2,3,"ng-template",9),b.TgZ(77,"div",35),b.TgZ(78,"h5",12),b._uU(79),b.ALo(80,"translate"),b.qZA(),b.TgZ(81,"div",13),b.TgZ(82,"h6"),b._uU(83),b.ALo(84,"translate"),b.qZA(),b.TgZ(85,"mat-radio-group",36),b.NdJ("ngModelChange",function(e){return b.CHM(t),b.oxw().sponsorType=e}),b.TgZ(86,"span",37),b.ALo(87,"translate"),b.TgZ(88,"mat-radio-button",38),b.NdJ("click",function(){return b.CHM(t),b.oxw().selectedSponsor=null}),b._uU(89),b.ALo(90,"translate"),b.qZA(),b.qZA(),b.TgZ(91,"span",37),b.ALo(92,"translate"),b.TgZ(93,"mat-radio-button",39),b._uU(94),b.ALo(95,"translate"),b.qZA(),b.qZA(),b.qZA(),b.YNc(96,Q,2,2,"div",15),b.qZA(),b.TgZ(97,"h6",13),b._uU(98),b.ALo(99,"translate"),b.qZA(),b.TgZ(100,"perun-web-apps-expiration-select",40),b.NdJ("datePicker",function(e){return b.CHM(t),b.oxw().setExpiration(e)}),b.qZA(),b.qZA(),b.TgZ(101,"div",19),b.TgZ(102,"button",20),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCancel()}),b._uU(103),b.ALo(104,"translate"),b.qZA(),b.TgZ(105,"button",33),b._uU(106),b.ALo(107,"translate"),b.qZA(),b.TgZ(108,"button",41),b.NdJ("click",function(){return b.CHM(t),b.oxw().onConfirm()}),b._uU(109),b.ALo(110,"translate"),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.qZA()}if(2&t){const t=b.oxw();b.xp6(1),b.Q6J("linear",!0),b.xp6(1),b.Q6J("stepControl",t.userControl),b.xp6(2),b.Q6J("ngIf",t.functionalityNotSupported),b.xp6(1),b.Q6J("formGroup",t.userControl),b.xp6(2),b.hij(" ",b.lcZ(8,60,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),b.xp6(3),b.s9C("placeholder",b.lcZ(11,62,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),b.xp6(2),b.Q6J("ngIf",t.userControl.hasError("required","firstName")),b.xp6(2),b.s9C("placeholder",b.lcZ(15,64,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),b.xp6(2),b.Q6J("ngIf",t.userControl.hasError("required","lastName")),b.xp6(2),b.s9C("placeholder",b.lcZ(19,66,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),b.xp6(3),b.s9C("placeholder",b.lcZ(22,68,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),b.xp6(4),b.hij(" ",b.lcZ(26,70,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),b.xp6(2),b.Q6J("disabled",t.userControl.invalid),b.xp6(1),b.hij(" ",b.lcZ(29,72,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," "),b.xp6(2),b.Q6J("stepControl",t.namespaceControl),b.xp6(3),b.Oqu(b.lcZ(34,74,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),b.xp6(2),b.Q6J("formGroup",t.namespaceControl),b.xp6(2),b.s9C("placeholder",b.lcZ(38,76,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),b.xp6(2),b.Q6J("ngForOf",t.namespaceOptions),b.xp6(1),b.Q6J("ngIf",t.namespaceControl.hasError("required","namespace")),b.xp6(1),b.s9C("matTooltip",b.lcZ(42,78,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),b.Q6J("matTooltipDisabled",t.namespaceControl.get("login").enabled),b.xp6(2),b.s9C("placeholder",b.lcZ(44,80,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),b.xp6(2),b.Q6J("ngIf",t.namespaceControl.hasError("required","login")),b.xp6(1),b.s9C("matTooltip",b.lcZ(47,82,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),b.Q6J("matTooltipDisabled",t.namespaceControl.get("passwordReset").enabled),b.xp6(3),b.hij("",b.lcZ(50,84,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),b.xp6(2),b.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.namespaceControl.get("password").enabled),b.xp6(1),b.s9C("placeholder",b.lcZ(53,86,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")),b.Q6J("type",t.namespaceControl.get("showPassword").value?"text":"password")("errorStateMatcher",t.passwordStateMatcher),b.xp6(2),b.Q6J("ngIf",t.namespaceControl.get("password").pending),b.xp6(1),b.Q6J("ngIf",t.namespaceControl.get("password").dirty&&null!==t.namespaceControl.get("password").errors),b.xp6(1),b.Q6J("ngIf",t.namespaceControl.get("password").hasError("required")),b.xp6(1),b.Q6J("ngIf",t.namespaceControl.get("password").hasError("backendError")),b.xp6(2),b.hij(" ",b.lcZ(60,88,"DIALOGS.CREATE_SPONSORED_MEMBER.SHOW_PASSWORD")," "),b.xp6(3),b.s9C("placeholder",b.lcZ(63,90,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),b.xp6(2),b.Q6J("ngIf",t.namespaceControl.hasError("required","email")||t.namespaceControl.hasError("pattern","email")),b.xp6(3),b.hij(" ",b.lcZ(68,92,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),b.xp6(3),b.hij(" ",b.lcZ(71,94,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "),b.xp6(2),b.Q6J("disabled",t.namespaceControl.invalid||t.namespaceControl.get("password").pending),b.xp6(1),b.hij(" ",b.lcZ(74,96,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," "),b.xp6(6),b.Oqu(b.lcZ(80,98,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),b.xp6(4),b.Oqu(b.lcZ(84,100,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),b.xp6(2),b.Q6J("ngModel",t.sponsorType),b.xp6(1),b.s9C("matTooltip",b.lcZ(87,102,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),b.Q6J("matTooltipDisabled",t.isSponsor),b.xp6(2),b.Q6J("disabled",!t.isSponsor),b.xp6(1),b.hij(" ",b.lcZ(90,104,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),b.xp6(2),b.s9C("matTooltip",b.lcZ(92,106,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),b.Q6J("matTooltipDisabled",t.isPerunAdmin),b.xp6(2),b.Q6J("disabled",!t.isPerunAdmin),b.xp6(1),b.hij(" ",b.lcZ(95,108,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),b.xp6(2),b.Q6J("ngIf","other"===t.sponsorType),b.xp6(2),b.Oqu(b.lcZ(99,110,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION")),b.xp6(5),b.hij(" ",b.lcZ(104,112,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),b.xp6(3),b.hij(" ",b.lcZ(107,114,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "),b.xp6(2),b.Q6J("disabled",null===t.sponsorType||"other"===t.sponsorType&&null===t.selectedSponsor),b.xp6(1),b.hij(" ",b.lcZ(110,116,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function X(t,e){if(1&t&&(b.TgZ(0,"div",6),b.TgZ(1,"div",47),b.TgZ(2,"mat-icon",48),b._uU(3,"done"),b.qZA(),b._uU(4),b.ALo(5,"translate"),b.TgZ(6,"i"),b._uU(7),b.ALo(8,"userFullName"),b.qZA(),b._uU(9),b.ALo(10,"translate"),b.qZA(),b.TgZ(11,"div"),b._uU(12),b.ALo(13,"translate"),b.qZA(),b.TgZ(14,"div"),b._uU(15),b.ALo(16,"translate"),b.qZA(),b.TgZ(17,"app-alert",49),b._uU(18),b.ALo(19,"translate"),b.qZA(),b.qZA()),2&t){const t=b.oxw();b.xp6(4),b.hij(" ",b.lcZ(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),b.xp6(3),b.Oqu(b.lcZ(8,10,t.createdMember.user)),b.xp6(2),b.hij(" ",b.lcZ(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),b.xp6(3),b.AsE("",b.lcZ(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",t.loginThatWasSet,""),b.xp6(3),b.AsE("",b.lcZ(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",t.namespaceControl.get("password").value," "),b.xp6(3),b.Oqu(b.lcZ(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function tt(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"div",19),b.TgZ(1,"button",50),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCancel()}),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.qZA()}2&t&&(b.xp6(2),b.hij(" ",b.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}class et{isErrorState(t){return!!(t&&t.invalid&&t.dirty)}}const it=(t,e,i,n=500)=>s=>(0,d.H)(n).pipe((0,g.w)(()=>(i.dontHandleErrorForNext(),null===t||"No namespace"===t?(0,p.of)(null):e.checkPasswordStrength(s.value,t))),(0,f.U)(()=>null),(0,m.K)(t=>(0,p.of)({backendError:t.error.message.substr(t.error.message.indexOf(":")+1)})));let nt=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u){this.dialogRef=t,this.data=e,this.membersService=i,this.apiRequestConfiguration=n,this.usersService=s,this.store=o,this.translator=r,this.authzService=a,this.guiAuthResolver=c,this.formBuilder=u,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.namespaceRules=[],this.parsedRules=new Map,this.emailRegx=/^(([^<>+()[\]\\.,;:\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]{2,3}))$/,this.userControl=null,this.namespaceControl=null,this.passwordStateMatcher=new et,this.voSponsors=[],this.selectedSponsor=null,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.expiration="never"}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voSponsors=this.data.sponsors,this.isSponsor=this.guiAuthResolver.principalHasRole(h.u.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.userControl=this.formBuilder.group({firstName:["",u.kI.required],lastName:["",u.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",u.kI.required],login:["",[u.kI.required]],password:["",u.kI.required,[it(null,this.usersService,this.apiRequestConfiguration)]],passwordReset:[!1,[]],showPassword:[!1,[]],email:["",[u.kI.required,u.kI.pattern(this.emailRegx)]]}),this.membersService.getAllNamespacesRules().subscribe(t=>{this.store.get("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(t),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1})}parseNamespaceRules(){for(const t of this.namespaceRules){this.namespaceOptions.push(t.namespaceName);const e={login:"disabled",password:"disabled"};this.parseAttributes(e,t.requiredAttributes,"required"),this.parseAttributes(e,t.optionalAttributes,"optional"),this.parsedRules.set(t.namespaceName,e)}}parseAttributes(t,e,i){for(const n of e)switch(n){case"login":t.login=i;break;case"password":t.password=i}}onConfirm(){this.loading=!0;const t={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},e=this.namespaceControl.get("namespace").value,i=this.parsedRules.get(e);"No namespace"!==e&&(t.userData.namespace=e),"disabled"!==i.login&&(t.userData.login=this.namespaceControl.get("login").value),"disabled"!==i.password&&(t.sendActivationLink=this.namespaceControl.get("passwordReset").value,t.userData.password=this.namespaceControl.get("password").value),"never"!==this.expiration&&(t.validityTo=this.expiration),this.membersService.createSponsoredMember(t).subscribe(t=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=t,t&&t.userAttributes&&t.userAttributes.filter(t=>"login-namespace"===t.baseFriendlyName).filter(t=>t.friendlyNameParameter===e).filter(t=>null!==t.value).forEach(t=>{this.loginThatWasSet=t.value.toString()}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}enableFormControl(t,e,i=[]){t.enable(),t.clearValidators(),t.clearAsyncValidators(),t.setValidators(e),t.setAsyncValidators(i),t.updateValueAndValidity()}onNamespaceChanged(t){const e=this.parsedRules.get(t),i=this.namespaceControl.get("login"),n=this.namespaceControl.get("password"),s=this.namespaceControl.get("passwordReset"),o=this.namespaceControl.get("showPassword");"disabled"!==e.login?this.enableFormControl(i,"optional"===e.login?[]:[u.kI.required]):(i.disable(),i.setValue("")),"disabled"!==e.password?(this.enableFormControl(n,"optional"===e.password?[]:[u.kI.required],[it(t,this.usersService,this.apiRequestConfiguration)]),this.enableFormControl(s,[]),this.enableFormControl(o,[])):(n.disable(),n.setValue(""),s.disable(),s.setValue(!1),o.disable(),o.setValue(!1))}passwordResetChange(){const t=this.namespaceControl.get("password");this.namespaceControl.get("passwordReset").value?(t.disable(),t.setValue("")):t.enable()}setExpiration(t){this.expiration="never"===t?"never":(0,l.p6)(t,"yyyy-MM-dd","en-GB")}getPasswordDisabledTooltip(){return this.namespaceControl.get("passwordReset").value?this.translator.instant("DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_VIA_EMAIL"):this.translator.instant("DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_DISABLED")}}return t.\u0275fac=function(e){return new(e||t)(b.Y36(a.so),b.Y36(a.WI),b.Y36(n.uq),b.Y36(c.F5),b.Y36(n.Fv),b.Y36(c.d6),b.Y36(w.sK),b.Y36(n.Ct),b.Y36(c.x4),b.Y36(u.qu))},t.\u0275cmp=b.Xpm({type:t,selectors:[["app-create-sponsored-member-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],[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"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-auto",3,"disabled"],[1,"dialog-container","mt-4",3,"formGroup"],["required","","formControlName","namespace",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","login",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],["matInput","","formControlName","password",3,"type","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["color","warn","matSuffix","",3,"matTooltip",4,"ngIf"],["formControlName","showPassword",1,"example-margin"],["matInput","","required","","formControlName","email",3,"placeholder"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-2",3,"disabled"],[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"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-2",3,"disabled","click"],["alert_type","error"],[3,"value"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",3,"matTooltip"],[3,"users","disableAutoSelect","userSelected"],[1,"bigger-font","mb-2"],[1,"mr-2","mb-2"],["alert_type","warn"],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(t,e){1&t&&(b.TgZ(0,"div"),b.YNc(1,L,3,3,"h1",0),b.YNc(2,N,1,0,"mat-spinner",1),b.YNc(3,W,111,118,"div",2),b.YNc(4,X,20,20,"div",2),b.YNc(5,tt,4,3,"div",3),b.qZA()),2&t&&(b.Tol(e.theme),b.xp6(1),b.Q6J("ngIf",!e.successfullyCreated),b.xp6(1),b.Q6J("ngIf",e.loading),b.xp6(1),b.Q6J("ngIf",!e.loading&&!e.successfullyCreated),b.xp6(1),b.Q6J("ngIf",!e.loading&&e.successfullyCreated),b.xp6(1),b.Q6J("ngIf",e.successfullyCreated))},directives:[l.O5,a.uh,_.$g,a.xY,y.Vq,y.C0,y.VY,u._Y,u.JL,u.sg,A.KE,v.Nt,u.Fj,u.JJ,u.u,u.Q7,a.H8,T.lW,y.Ic,C.gD,l.sg,S.gM,E.oG,y.fd,k.VQ,u.On,k.U0,R,I.w,A.TO,O.ey,A.R9,P.Hw,D.S],pipes:[w.X$,M.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}"]}),t})();var st=i(67004),ot=i(43005),rt=i(19139),at=i(78364);function ct(t,e){1&t&&b._UZ(0,"mat-spinner",3)}function ut(t,e){1&t&&(b._uU(0),b.ALo(1,"translate")),2&t&&b.Oqu(b.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function lt(t,e){1&t&&(b.TgZ(0,"app-alert",32),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function ht(t,e){if(1&t&&(b.TgZ(0,"mat-option",33),b._uU(1),b.qZA()),2&t){const t=e.$implicit;b.Q6J("value",t),b.xp6(1),b.hij(" ",t," ")}}function dt(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function pt(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function gt(t,e){if(1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t){const t=b.oxw(2);b.xp6(1),b.AsE(" ",b.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",t.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function ft(t,e){if(1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t){const t=b.oxw(2);b.xp6(1),b.AsE(" ",b.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",t.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function mt(t,e){if(1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t){const t=b.oxw(2);b.xp6(1),b.AsE(" ",b.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",t.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function bt(t,e){1&t&&(b._uU(0),b.ALo(1,"translate")),2&t&&b.Oqu(b.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function wt(t,e){1&t&&(b.TgZ(0,"app-alert",34),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function _t(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"mat-radio-group",35),b.NdJ("ngModelChange",function(e){return b.CHM(t),b.oxw(2).passwordReset=e}),b.TgZ(1,"mat-radio-button",36),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"mat-radio-button",37),b._uU(5),b.ALo(6,"translate"),b.qZA(),b.qZA()}if(2&t){const t=b.oxw(2);b.Q6J("ngModel",t.passwordReset),b.xp6(2),b.hij(" ",b.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),b.xp6(3),b.hij(" ",b.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function yt(t,e){1&t&&(b._uU(0),b.ALo(1,"translate")),2&t&&b.Oqu(b.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function At(t,e){1&t&&(b._uU(0),b.ALo(1,"translate")),2&t&&b.Oqu(b.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function vt(t,e){1&t&&(b.TgZ(0,"div"),b.TgZ(1,"app-alert",38),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.qZA()),2&t&&(b.xp6(2),b.Oqu(b.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function Tt(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"div"),b.TgZ(1,"h5",39),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"perun-web-apps-create-group-form",40),b.NdJ("nameChanged",function(e){return b.CHM(t),b.oxw(2).name=e})("descriptionChanged",function(e){return b.CHM(t),b.oxw(2).description=e})("parentGroupChanged",function(e){return b.CHM(t),b.oxw(2).parentGroup=e})("asSubgroupChanged",function(e){return b.CHM(t),b.oxw(2).asSubGroup=e}),b.qZA(),b.qZA()}if(2&t){const t=b.oxw(2);b.xp6(2),b.Oqu(b.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")),b.xp6(2),b.Q6J("voGroups",t.allVoGroups)}}const Ct=function(){return["select","id","name","description"]};function St(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"div"),b.TgZ(1,"h5",39),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"perun-web-apps-immediate-filter",41),b.NdJ("filter",function(e){return b.CHM(t),b.oxw(2).applyFilter(e)}),b.qZA(),b.TgZ(5,"perun-web-apps-groups-list",42),b.NdJ("page",function(e){return b.CHM(t),b.oxw(2).groupTablePageChanged(e)}),b.qZA(),b.qZA()}if(2&t){const t=b.oxw(2);b.xp6(2),b.Oqu(b.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")),b.xp6(2),b.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),b.xp6(1),b.Q6J("groups",t.assignableGroups)("selection",t.selection)("displayedColumns",b.DdM(10,Ct))("disableRouting",!0)("pageSize",t.pageSize)("filter",t.filterValue)}}function Et(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"div",4),b.TgZ(1,"mat-horizontal-stepper",5),b.TgZ(2,"mat-step",6),b.YNc(3,ut,2,3,"ng-template",7),b.YNc(4,lt,3,3,"app-alert",8),b.TgZ(5,"h5",9),b._uU(6),b.ALo(7,"translate"),b.qZA(),b.TgZ(8,"form",10),b.TgZ(9,"mat-form-field"),b.TgZ(10,"mat-select",11),b.ALo(11,"translate"),b.YNc(12,ht,2,2,"mat-option",12),b.qZA(),b.YNc(13,dt,3,3,"mat-error",13),b.qZA(),b.TgZ(14,"div"),b._uU(15),b.ALo(16,"translate"),b.qZA(),b.TgZ(17,"div",14),b._uU(18),b.qZA(),b.TgZ(19,"mat-form-field",15),b.TgZ(20,"mat-label"),b._uU(21),b.ALo(22,"translate"),b.qZA(),b.TgZ(23,"textarea",16),b._uU(24," "),b.qZA(),b.YNc(25,pt,3,3,"mat-error",13),b.YNc(26,gt,3,4,"mat-error",13),b.YNc(27,ft,3,4,"mat-error",13),b.YNc(28,mt,3,4,"mat-error",13),b.qZA(),b.TgZ(29,"div",17),b.TgZ(30,"button",18),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCancel()}),b._uU(31),b.ALo(32,"translate"),b.qZA(),b.TgZ(33,"button",19),b._uU(34),b.ALo(35,"translate"),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.TgZ(36,"mat-step"),b.YNc(37,bt,2,3,"ng-template",7),b.TgZ(38,"div",9),b.TgZ(39,"h5",20),b._uU(40),b.ALo(41,"translate"),b.qZA(),b.YNc(42,wt,3,3,"app-alert",21),b.YNc(43,_t,7,7,"mat-radio-group",22),b.qZA(),b.TgZ(44,"div",17),b.TgZ(45,"button",18),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCancel()}),b._uU(46),b.ALo(47,"translate"),b.qZA(),b.TgZ(48,"button",23),b._uU(49),b.ALo(50,"translate"),b.qZA(),b.TgZ(51,"button",24),b._uU(52),b.ALo(53,"translate"),b.qZA(),b.qZA(),b.qZA(),b.TgZ(54,"mat-step"),b.YNc(55,yt,2,3,"ng-template",7),b.TgZ(56,"div",9),b.TgZ(57,"h5",20),b._uU(58),b.ALo(59,"translate"),b.qZA(),b.TgZ(60,"perun-web-apps-expiration-select",25),b.NdJ("datePicker",function(e){return b.CHM(t),b.oxw().setExpiration(e)}),b.qZA(),b.qZA(),b.TgZ(61,"div",17),b.TgZ(62,"button",18),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCancel()}),b._uU(63),b.ALo(64,"translate"),b.qZA(),b.TgZ(65,"button",23),b._uU(66),b.ALo(67,"translate"),b.qZA(),b.TgZ(68,"button",24),b._uU(69),b.ALo(70,"translate"),b.qZA(),b.qZA(),b.qZA(),b.TgZ(71,"mat-step"),b.YNc(72,At,2,3,"ng-template",7),b.TgZ(73,"div",9),b.TgZ(74,"h5",20),b._uU(75),b.ALo(76,"translate"),b.qZA(),b.TgZ(77,"mat-radio-group",26),b.NdJ("change",function(){return b.CHM(t),b.oxw().groupAssigmentChanged()})("ngModelChange",function(e){return b.CHM(t),b.oxw().groupAssignment=e}),b.TgZ(78,"mat-radio-button",27),b._uU(79),b.ALo(80,"translate"),b.qZA(),b.TgZ(81,"span",28),b.ALo(82,"translate"),b.TgZ(83,"mat-radio-button",29),b._uU(84),b.ALo(85,"translate"),b.qZA(),b.qZA(),b.TgZ(86,"span",28),b.ALo(87,"translate"),b.TgZ(88,"mat-radio-button",30),b._uU(89),b.ALo(90,"translate"),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.YNc(91,vt,4,3,"div",13),b.YNc(92,Tt,5,4,"div",13),b.YNc(93,St,6,11,"div",13),b.TgZ(94,"div",17),b.TgZ(95,"button",18),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCancel()}),b._uU(96),b.ALo(97,"translate"),b.qZA(),b.TgZ(98,"button",23),b._uU(99),b.ALo(100,"translate"),b.qZA(),b.TgZ(101,"button",31),b.NdJ("click",function(){return b.CHM(t),b.oxw().onSubmit()}),b._uU(102),b.ALo(103,"translate"),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.qZA()}if(2&t){const t=b.oxw();b.xp6(1),b.Q6J("linear",!0),b.xp6(1),b.Q6J("stepControl",t.usersInfoFormGroup),b.xp6(2),b.Q6J("ngIf",t.functionalityNotSupported),b.xp6(2),b.Oqu(b.lcZ(7,50,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),b.xp6(2),b.Q6J("formGroup",t.usersInfoFormGroup),b.xp6(2),b.s9C("placeholder",b.lcZ(11,52,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),b.xp6(2),b.Q6J("ngForOf",t.namespaceOptions),b.xp6(1),b.Q6J("ngIf",t.usersInfoFormGroup.hasError("required","namespace")),b.xp6(2),b.Oqu(b.lcZ(16,54,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),b.xp6(3),b.Oqu(t.getSelectedNamespaceRules().csvGenHeaderDescription),b.xp6(3),b.Oqu(b.lcZ(22,56,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),b.xp6(2),b.s9C("placeholder",t.getSelectedNamespaceRules().csvGenPlaceholder),b.xp6(2),b.Q6J("ngIf",t.usersInfoFormGroup.hasError("required","sponsoredMembers")),b.xp6(1),b.Q6J("ngIf",t.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),b.xp6(1),b.Q6J("ngIf",t.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),b.xp6(1),b.Q6J("ngIf",t.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),b.xp6(3),b.hij(" ",b.lcZ(32,58,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),b.xp6(2),b.Q6J("disabled",t.usersInfoFormGroup.invalid),b.xp6(1),b.hij(" ",b.lcZ(35,60,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," "),b.xp6(6),b.Oqu(b.lcZ(41,62,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")),b.xp6(2),b.Q6J("ngIf","No namespace"===t.getSelectedNamespaceRules().namespaceName),b.xp6(1),b.Q6J("ngIf","No namespace"!==t.getSelectedNamespaceRules().namespaceName),b.xp6(3),b.hij(" ",b.lcZ(47,64,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),b.xp6(3),b.hij(" ",b.lcZ(50,66,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "),b.xp6(2),b.Q6J("disabled",null===t.passwordReset),b.xp6(1),b.hij(" ",b.lcZ(53,68,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," "),b.xp6(6),b.Oqu(b.lcZ(59,70,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),b.xp6(2),b.Q6J("expiration",t.expiration),b.xp6(3),b.hij(" ",b.lcZ(64,72,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),b.xp6(3),b.hij(" ",b.lcZ(67,74,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "),b.xp6(2),b.Q6J("disabled",null===t.expiration),b.xp6(1),b.hij("",b.lcZ(70,76,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," "),b.xp6(6),b.Oqu(b.lcZ(76,78,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),b.xp6(2),b.Q6J("ngModel",t.groupAssignment),b.xp6(2),b.hij(" ",b.lcZ(80,80,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),b.xp6(2),b.s9C("matTooltip",b.lcZ(82,82,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),b.Q6J("matTooltipDisabled",!t.manualMemberAddingBlocked&&t.createGroupAuth),b.xp6(2),b.Q6J("disabled",t.manualMemberAddingBlocked||!t.createGroupAuth),b.xp6(1),b.hij(" ",b.lcZ(85,84,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),b.xp6(2),b.s9C("matTooltip",b.lcZ(87,86,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),b.Q6J("matTooltipDisabled",!t.manualMemberAddingBlocked&&0!==t.assignableGroups.length),b.xp6(2),b.Q6J("disabled",t.manualMemberAddingBlocked||0===t.assignableGroups.length),b.xp6(1),b.hij(" ",b.lcZ(90,88,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),b.xp6(2),b.Q6J("ngIf","none"===t.groupAssignment),b.xp6(1),b.Q6J("ngIf","new"===t.groupAssignment),b.xp6(1),b.Q6J("ngIf","existing"===t.groupAssignment),b.xp6(3),b.hij(" ",b.lcZ(97,90,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),b.xp6(3),b.hij(" ",b.lcZ(100,92,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "),b.xp6(2),b.Q6J("disabled",null===t.groupAssignment||"existing"===t.groupAssignment&&0===t.selection.selected.length||"new"===t.groupAssignment&&(0===t.name.length||0===t.description.length)||!0===t.asSubGroup&&null===t.parentGroup),b.xp6(1),b.hij(" ",b.lcZ(103,94,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}let kt=(()=>{class t{constructor(t,e,i,n,r,a,c,u,l,h,d){this.dialogRef=t,this.data=e,this.store=i,this.membersService=n,this.notificator=r,this.translate=a,this.guiAuthResolver=c,this.groupsService=u,this.attributesService=l,this.formBuilder=h,this.tableConfigService=d,this.loading=!1,this.functionalityNotSupported=!1,this.emailRegx=/^(([^<>+()[\]\\.,;:\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]{2,3}))$/,this.namespaceOptions=[],this.namespaceRules=[],this.passwordReset="generate",this.groupAssignment=null,this.expiration="never",this.assignableGroups=[],this.allVoGroups=[],this.selection=new s.Ov(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.submitDisabled=!1,this.filterValue="",this.tableId=o.rc,this.groupAttrNames=[st.r.GROUP_SYNC_ENABLED,st.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}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.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",u.kI.required],sponsoredMembers:["",[u.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(t=>{this.manualMemberAddingBlocked=this.hasAttributeEnabled(t,"blockManualMemberAdding"),!0!==this.manualMemberAddingBlocked?this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(t=>{this.allVoGroups=t.filter(t=>"members"!==t.name),this.assignableGroups=this.filterAssignableGroups(t),this.membersService.getAllNamespacesRules().subscribe(t=>{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(t),this.namespaceRules.forEach(t=>this.namespaceOptions.push(t.namespaceName)),0===this.namespaceOptions.length?this.functionalityNotSupported=!0:this.usersInfoFormGroup.setValue({namespace:this.namespaceOptions[0],sponsoredMembers:""}),this.loading=!1})},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1)}filterAssignableGroups(t){const e=[];for(const i of t)this.hasAttributeEnabled(i.attributes,"synchronizationEnabled")||this.hasAttributeEnabled(i.attributes,"blockManualMemberAdding")||!this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[i])||e.push(i);return e}hasAttributeEnabled(t,e){return t.some(t=>t.friendlyName===e&&null!==t.value&&"true"===t.value.toString())}createOutputObjects(t){let e="",i="",n="",s="";const o=[];for(const r of Object.keys(t)){e=r.replace(";"," ").split(";")[0];for(const e of Object.keys(t[r]))switch(e){case"status":i=t[r][e];break;case"login":n=t[r][e];break;case"password":s=t[r][e]}o.push({name:e,status:i,login:n,password:s})}return o}onGenerate(){this.loading=!0;const t=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),e=this.getSelectedNamespaceRules().csvGenHeader,i=[];for(const s of t){const t=this.parseMemberLine(s);if("format"===t||"email"===t)return void(this.loading=!1);""!==t&&i.push(t)}const n={data:i,header:e,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset};"none"!==this.groupAssignment&&(n.groups=this.groupIds),"never"!==this.expiration&&(n.validityTo=(0,l.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(n.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(n).subscribe(t=>{(0,r.O6)(this.createOutputObjects(t),"csv","member-logins"),this.notificator.showSuccess(this.translate.instant("DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}parseMemberLine(t){const e=t.trim();if(""===e)return"";const i=e.split(";"),n=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(i.length!==n.length)return"format";if("mail"===n[2].slice(n[2].length-4).toLowerCase()&&!i[2].trim().match(this.emailRegx))return"email";if("login"===n[3]&&""===i[3].trim())return"login";let s="";for(const o of i)s+=o.trim()+";";return s.slice(0,-1)}userInputValidator(){return t=>{const e=t.value.split("\n");for(const i of e){const t=this.parseMemberLine(i);if("format"===t)return{invalidFormat:{value:i}};if("email"===t)return{invalidEmail:{value:i}};if("login"===t)return{invalidLogin:{value:i}}}return null}}setExpiration(t){this.expiration="never"===t?"never":(0,l.p6)(t,"yyyy-MM-dd","en-GB")}groupTablePageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}applyFilter(t){this.filterValue=t}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(t=>{this.groupIds.push(t.id),this.onGenerate()},()=>this.loading=!1):this.groupsService.createGroupWithVoNameDescription(this.data.voId,this.name,this.description).subscribe(t=>{this.groupIds.push(t.id),this.onGenerate()},()=>this.loading=!1):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(t=>t.id)),this.onGenerate())}getSelectedNamespaceRules(){return this.namespaceRules.find(t=>t.namespaceName===this.usersInfoFormGroup.get("namespace").value)}}return t.\u0275fac=function(e){return new(e||t)(b.Y36(a.so),b.Y36(a.WI),b.Y36(c.d6),b.Y36(n.uq),b.Y36(c.V6),b.Y36(w.sK),b.Y36(c.x4),b.Y36(n.ff),b.Y36(n.H8),b.Y36(u.qu),b.Y36(o.dB))},t.\u0275cmp=b.Xpm({type:t,selectors:[["app-generate-sponsored-members-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"mt-2"],[1,"flex-container","mt-2",3,"formGroup"],["required","","formControlName","namespace",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"font-weight-bold"],[1,"pt-2"],["id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","rows","8","cols","50","matInput","","formControlName","sponsoredMembers",1,"md-textarea","form-control",3,"placeholder"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-auto",3,"disabled"],[1,"mb-4"],["alert_type","info",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","color","accent","matStepperNext","",3,"disabled"],[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"],["mat-flat-button","","color","accent",3,"disabled","click"],["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","nameChanged","descriptionChanged","parentGroupChanged","asSubgroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","displayedColumns","disableRouting","pageSize","filter","page"]],template:function(t,e){1&t&&(b.TgZ(0,"div"),b.TgZ(1,"h1",0),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.YNc(4,ct,1,0,"mat-spinner",1),b.YNc(5,Et,104,96,"div",2),b.qZA()),2&t&&(b.Tol(e.theme),b.xp6(2),b.Oqu(b.lcZ(3,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),b.xp6(2),b.Q6J("ngIf",e.loading),b.xp6(1),b.Q6J("ngIf",!e.loading))},directives:[a.uh,l.O5,_.$g,a.xY,y.Vq,y.C0,y.VY,u._Y,u.JL,u.sg,A.KE,C.gD,u.Q7,u.JJ,u.u,l.sg,A.hX,v.Nt,u.Fj,a.H8,T.lW,y.Ic,y.fd,R,k.VQ,u.On,k.U0,S.gM,I.w,O.ey,A.TO,ot.r,rt.L,at.W],pipes:[w.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();var xt=i(4252);function Rt(t,e){1&t&&b._UZ(0,"mat-spinner",12)}const It=function(){return["checkbox","id","fullName","status","sponsored","email"]};function Ot(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"perun-web-apps-members-list",13),b.NdJ("page",function(e){return b.CHM(t),b.oxw().pageChanged(e)}),b.qZA()}if(2&t){const t=b.oxw();b.Q6J("pageSize",t.pageSize)("hidden",t.loading)("members",t.members)("selection",t.selection)("displayedColumns",b.DdM(6,It))("disableRouting",!0)}}function Pt(t,e){1&t&&(b.TgZ(0,"app-alert",14),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let Dt=(()=>{class t{constructor(t,e,i,n,r,a,c){this.dialogRef=t,this.data=e,this.store=i,this.membersService=n,this.notificator=r,this.translate=a,this.tableConfigService=c,this.loading=!1,this.tableId=o.US,this.expiration="never",this.searchCtrl=new u.NI("",[u.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new s.Ov(!0,[])}ngOnInit(){this.theme=this.data.theme,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId)}onCancel(){this.dialogRef.close(!1)}sponsor(t){if(this.loading=!0,0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const e=t.pop();e.sponsored?this.membersService.sponsorMember(e.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(t)},()=>this.loading=!1):this.membersService.setSponsorshipForMember(e.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(t)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const t=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(t)}setExpiration(t){this.expiration="never"===t?"never":(0,l.p6)(t,"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,[st.r.MEMBER_DEF_EXPIRATION,st.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(t=>{this.members=t,this.loading=!1},()=>this.loading=!1))}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(b.Y36(a.so),b.Y36(a.WI),b.Y36(c.d6),b.Y36(n.uq),b.Y36(c.V6),b.Y36(w.sK),b.Y36(o.dB))},t.\u0275cmp=b.Xpm({type:t,selectors:[["app-sponsor-existing-member-dialog"]],decls:31,vars:30,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"ml-auto",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","hidden","members","selection","displayedColumns","disableRouting","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","hidden","members","selection","displayedColumns","disableRouting","page"],["alert_type","warn"]],template:function(t,e){1&t&&(b.TgZ(0,"div"),b.TgZ(1,"h1",0),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"div",1),b.TgZ(5,"mat-form-field",2),b.TgZ(6,"label"),b.TgZ(7,"input",3),b.NdJ("keyup.enter",function(){return e.onSearchByString()}),b.ALo(8,"translate"),b.qZA(),b.qZA(),b.TgZ(9,"mat-error"),b._uU(10),b.ALo(11,"translate"),b.qZA(),b.qZA(),b.TgZ(12,"button",4),b.NdJ("click",function(){return e.onSearchByString()}),b._uU(13),b.ALo(14,"translate"),b.qZA(),b.YNc(15,Rt,1,0,"mat-spinner",5),b.YNc(16,Ot,1,7,"perun-web-apps-members-list",6),b.YNc(17,Pt,3,3,"app-alert",7),b.TgZ(18,"div"),b._UZ(19,"br"),b.TgZ(20,"h6"),b._uU(21),b.ALo(22,"translate"),b.qZA(),b.TgZ(23,"perun-web-apps-expiration-select",8),b.NdJ("datePicker",function(t){return e.setExpiration(t)}),b.qZA(),b.qZA(),b.qZA(),b.TgZ(24,"div",9),b.TgZ(25,"button",10),b.NdJ("click",function(){return e.onCancel()}),b._uU(26),b.ALo(27,"translate"),b.qZA(),b.TgZ(28,"button",11),b.NdJ("click",function(){return e.onSubmit()}),b._uU(29),b.ALo(30,"translate"),b.qZA(),b.qZA(),b.qZA()),2&t&&(b.Tol(e.theme),b.xp6(2),b.Oqu(b.lcZ(3,16,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),b.xp6(5),b.s9C("placeholder",b.lcZ(8,18,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),b.Q6J("formControl",e.searchCtrl),b.xp6(3),b.hij(" ",b.lcZ(11,20,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," "),b.xp6(2),b.Q6J("disabled",e.loading),b.xp6(1),b.hij(" ",b.lcZ(14,22,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," "),b.xp6(2),b.Q6J("ngIf",e.loading),b.xp6(1),b.Q6J("ngIf",e.firstSearchDone),b.xp6(1),b.Q6J("ngIf",!e.firstSearchDone),b.xp6(4),b.Oqu(b.lcZ(22,24,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),b.xp6(5),b.hij(" ",b.lcZ(27,26,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),b.xp6(2),b.Q6J("disabled",e.loading||0===e.selection.selected.length),b.xp6(1),b.hij(" ",b.lcZ(30,28,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},directives:[a.uh,a.xY,A.KE,v.Nt,u.Fj,u.JJ,u.oH,A.TO,T.lW,l.O5,R,a.H8,_.$g,xt.O,I.w],pipes:[w.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),t})();var Mt=i(57629),Lt=i(59403),Nt=i(8055),zt=i(58623),Ft=i(67033),Zt=i(79592),Bt=i(95121),qt=i(82819),Ut=i(84534);function Ht(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"th",15),b.TgZ(1,"mat-checkbox",16),b.NdJ("change",function(e){b.CHM(t);const i=b.oxw();return e?i.masterToggle():null}),b.qZA(),b.qZA()}if(2&t){const t=b.oxw();b.xp6(1),b.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function jt(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"td",17),b.TgZ(1,"mat-checkbox",18),b.NdJ("change",function(e){const i=b.CHM(t).$implicit,n=b.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),b.qZA(),b.qZA()}if(2&t){const t=e.$implicit,i=b.oxw();b.xp6(1),b.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function Gt(t,e){1&t&&(b.TgZ(0,"th",19),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")))}function Yt(t,e){if(1&t&&(b.TgZ(0,"td",17),b._uU(1),b.qZA()),2&t){const t=e.$implicit;b.xp6(1),b.Oqu(t.member.id)}}function Vt(t,e){1&t&&(b.TgZ(0,"th",19),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")))}function Kt(t,e){if(1&t&&(b.TgZ(0,"td",20),b._uU(1),b.ALo(2,"userFullName"),b.qZA()),2&t){const t=e.$implicit;b.xp6(1),b.Oqu(b.lcZ(2,1,t.member.user))}}function Jt(t,e){1&t&&(b.TgZ(0,"th",19),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")))}function $t(t,e){if(1&t&&(b.TgZ(0,"span"),b._uU(1),b.ALo(2,"userFullName"),b._UZ(3,"br"),b.qZA()),2&t){const t=e.$implicit;b.xp6(1),b.hij(" ",b.lcZ(2,1,t.user),"")}}function Qt(t,e){if(1&t&&(b.TgZ(0,"td",20),b.YNc(1,$t,4,3,"span",21),b.qZA()),2&t){const t=e.$implicit;b.xp6(1),b.Q6J("ngForOf",t.sponsors)}}function Wt(t,e){1&t&&b._UZ(0,"th",19)}function Xt(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"span",24),b.ALo(1,"translate"),b.TgZ(2,"button",25),b.NdJ("mouseenter",function(){return b.CHM(t),b.oxw(2).disableRouting=!0})("mouseleave",function(){b.CHM(t);const e=b.oxw(2);return e.disableRouting=e.routingStrategy})("click",function(){b.CHM(t);const e=b.oxw().$implicit;return b.oxw().resetPassword(e)}),b.TgZ(3,"mat-icon"),b._uU(4,"vpn_key"),b.qZA(),b.qZA(),b.qZA()}if(2&t){const t=b.oxw(2);b.Q6J("matTooltipPosition","above")("matTooltip",b.lcZ(1,3,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),b.xp6(2),b.Q6J("disabled",t.loading)}}function te(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"td",20),b.TgZ(1,"button",22),b.NdJ("click",function(){const e=b.CHM(t).$implicit;return b.oxw().showSponsors(e)})("mouseenter",function(){return b.CHM(t),b.oxw().disableRouting=!0})("mouseleave",function(){b.CHM(t);const e=b.oxw();return e.disableRouting=e.routingStrategy}),b.TgZ(2,"mat-icon"),b._uU(3,"edit"),b.qZA(),b.qZA(),b.YNc(4,Xt,5,5,"span",23),b.qZA()}if(2&t){const t=e.$implicit,i=b.oxw();b.xp6(4),b.Q6J("ngIf",i.passwdResetAuth(t))}}function ee(t,e){1&t&&b._UZ(0,"tr",26)}const ie=function(t,e){return["/organizations",t,"members",e]};function ne(t,e){if(1&t&&b._UZ(0,"tr",27),2&t){const t=e.$implicit,i=b.oxw();b.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),b.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:b.WLB(6,ie,t.member.voId,t.member.id))("routerLink",i.disableRouting?null:b.WLB(9,ie,t.member.voId,t.member.id))}}function se(t,e){1&t&&(b.TgZ(0,"app-alert",28),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function oe(t,e){1&t&&(b.TgZ(0,"app-alert",28),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}let re=(()=>{class t{constructor(t,e,i,n,s){this.dialog=t,this.authResolver=e,this.storeService=i,this.attributesManager=n,this.tableCheckbox=s,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","sponsors","menu"],this.disableRouting=!1,this.pageSize=10,this.page=new b.vpe,this.refreshTable=new b.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new Ft.by(this.sponsoredMembers),this.setDataSource(),this.dataSource.filter=this.filterValue,this.routingStrategy=this.disableRouting}getSortDataForColumn(t,e){var i;switch(e){case"id":return t.member.id.toString();case"name":return t.member.user?t.member.user.lastName?t.member.user.lastName:null!==(i=t.member.user.firstName)&&void 0!==i?i:"":"";case"sponsors":return t.sponsors.length.toString();default:return""}}getDataForColumn(t,e){switch(e){case"id":return t.member.id.toString();case"name":return t.member.user?(0,r.bD)(t.member.user):"";case"sponsors":return t.sponsors.map(t=>(0,r.bD)(t.user)).join();default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getSortDataForColumn,this),this.dataSource.filter=this.filterValue,this.dataSource.paginator=this.child.paginator)}showSponsors(t){const e=(0,r.kZ)();e.width="650px",e.data={sponsors:t.sponsors,member:t.member,theme:"vo-theme"},this.dialog.open(Zt.H,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.member.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}resetPassword(t){this.loading=!0;const e=this.storeService.get("password_namespace_attributes").map(t=>(t=t.split(":"))[t.length-1]);this.attributesManager.getLogins(t.member.userId).subscribe(i=>{const n=i.filter(t=>e.includes(t.friendlyNameParameter)),s=(0,r.kZ)();s.width="400px",s.data={userId:t.member.userId,memberId:t.member.id,logins:n},this.dialog.open(Bt.m,s).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(t){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:t.member.voId,beanName:"Vo"},t.member])}}return t.\u0275fac=function(e){return new(e||t)(b.Y36(a.uw),b.Y36(c.x4),b.Y36(c.d6),b.Y36(n.H8),b.Y36(c.UA))},t.\u0275cmp=b.Xpm({type:t,selectors:[["app-sponsored-members-list"]],viewQuery:function(t,e){if(1&t&&(b.Gf(zt.YE,7),b.Gf(r.l9,7)),2&t){let t;b.iGM(t=b.CRH())&&(e.matSort=t.first),b.iGM(t=b.CRH())&&(e.child=t.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSize:"pageSize"},outputs:{page:"page",refreshTable:"refreshTable"},features:[b.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-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(t,e){1&t&&(b.TgZ(0,"div",0),b.TgZ(1,"perun-web-apps-table-wrapper",1),b.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),b.TgZ(2,"table",2),b.ynx(3,3),b.YNc(4,Ht,2,3,"th",4),b.YNc(5,jt,2,2,"td",5),b.BQk(),b.ynx(6,6),b.YNc(7,Gt,3,3,"th",7),b.YNc(8,Yt,2,1,"td",5),b.BQk(),b.ynx(9,8),b.YNc(10,Vt,3,3,"th",7),b.YNc(11,Kt,3,3,"td",9),b.BQk(),b.ynx(12,10),b.YNc(13,Jt,3,3,"th",7),b.YNc(14,Qt,2,1,"td",9),b.BQk(),b.ynx(15,11),b.YNc(16,Wt,1,0,"th",7),b.YNc(17,te,5,1,"td",9),b.BQk(),b.YNc(18,ee,1,0,"tr",12),b.YNc(19,ne,1,12,"tr",13),b.qZA(),b.qZA(),b.qZA(),b.YNc(20,se,3,3,"app-alert",14),b.YNc(21,oe,3,3,"app-alert",14)),2&t&&(b.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.sponsoredMembers.length),b.xp6(1),b.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),b.xp6(1),b.Q6J("dataSource",e.dataSource),b.xp6(16),b.Q6J("matHeaderRowDef",e.displayedColumns),b.xp6(1),b.Q6J("matRowDefColumns",e.displayedColumns),b.xp6(1),b.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.sponsoredMembers.length),b.xp6(1),b.Q6J("ngIf",0===e.sponsoredMembers.length))},directives:[qt.l,Ft.BZ,zt.YE,Ft.w1,Ft.fO,Ft.Dz,Ft.as,Ft.nj,l.O5,Ft.ge,E.oG,Ft.ev,zt.nU,l.sg,T.lW,P.Hw,S.gM,Ft.XQ,Ft.Gk,Ut.YH,Mt.rH,I.w],pipes:[w.X$,M.d],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function ae(t,e){if(1&t&&(b.TgZ(0,"button",10),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t){const t=b.oxw(),e=b.MAs(9);b.Q6J("disabled",t.findSponsorsAuth&&0===t.voSponsors.length)("matMenuTriggerFor",e),b.xp6(1),b.hij(" ",b.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function ce(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"button",11),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCreate()}),b._uU(1),b.ALo(2,"translate"),b.qZA()}2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function ue(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"button",11),b.NdJ("click",function(){return b.CHM(t),b.oxw().onGenerate()}),b._uU(1),b.ALo(2,"translate"),b.qZA()}2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function le(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"button",12),b.NdJ("click",function(){return b.CHM(t),b.oxw().onSponsorExistingMember()}),b._uU(1),b.ALo(2,"translate"),b.qZA()}2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function he(t,e){1&t&&b._UZ(0,"mat-spinner",13)}function de(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"app-sponsored-members-list",14),b.NdJ("page",function(e){return b.CHM(t),b.oxw().pageChanged(e)})("refreshTable",function(){return b.CHM(t),b.oxw().refresh()}),b.qZA()}if(2&t){const t=b.oxw();b.Q6J("sponsoredMembers",t.members)("disableRouting",!t.routeAuth)("selection",t.selection)("filterValue",t.searchString)("pageSize",t.pageSize)}}let pe=(()=>{class t{constructor(t,e,i,n,r,a,c){this.membersManager=t,this.route=e,this.dialog=i,this.authResolver=n,this.tableConfigService=r,this.storeService=a,this.authzResolver=c,this.members=[],this.voSponsors=[],this.attrNames=[],this.selection=new s.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=o.Bf}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.voId=t.voId,this.vo={id:this.voId,beanName:"Vo"};const e=["SPONSOR"],i=new Map;this.authResolver.getRolesAuthorization(e,this.vo,i),this.findSponsorsAuth=i.get(e[0]).readAuth,this.findSponsorsAuth?this.authzResolver.getAuthzRichAdmins(h.u.SPONSOR,this.vo.id,"Vo",[st.r.USER_DEF_PREFERRED_MAIL],!1,!1).subscribe(t=>{this.voSponsors=t,this.setAuthRights(),this.refresh()}):(this.setAuthRights(),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 t=(0,r.kZ)();t.width="620px",t.data={entityId:this.voId,voId:this.voId,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(nt,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(t=>{this.storeService.setPerunPrincipal(t),this.refresh()}))})}onGenerate(){const t=(0,r.kZ)();t.width="750px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(kt,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(t=>{this.storeService.setPerunPrincipal(t),this.refresh()}))})}onSponsorExistingMember(){const t=(0,r.kZ)();t.width="650px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(Dt,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(t=>{this.storeService.setPerunPrincipal(t),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.voId,this.attrNames).subscribe(t=>{this.selection.clear(),this.members=t,this.setAuthRights(),this.loading=!1})}applyFilter(t){this.searchString=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="VoSponsoredMembersComponent",t.\u0275fac=function(e){return new(e||t)(b.Y36(n.uq),b.Y36(Mt.gz),b.Y36(a.uw),b.Y36(c.x4),b.Y36(o.dB),b.Y36(c.d6),b.Y36(n.Ct))},t.\u0275cmp=b.Xpm({type:t,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(t,e){2&t&&b.ekj("router-component",e.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2 dropdown-toggle",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"sponsoredMembers","disableRouting","selection","filterValue","pageSize","page","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"sponsoredMembers","disableRouting","selection","filterValue","pageSize","page","refreshTable"]],template:function(t,e){1&t&&(b.TgZ(0,"div"),b.TgZ(1,"h1",0),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"perun-web-apps-refresh-button",1),b.NdJ("refresh",function(){return e.refresh()}),b.qZA(),b.TgZ(5,"span",2),b.ALo(6,"translate"),b.YNc(7,ae,3,5,"button",3),b.qZA(),b.TgZ(8,"mat-menu",null,4),b.YNc(10,ce,3,3,"button",5),b.YNc(11,ue,3,3,"button",5),b.qZA(),b.YNc(12,le,3,3,"button",6),b.TgZ(13,"perun-web-apps-immediate-filter",7),b.NdJ("filter",function(t){return e.applyFilter(t)}),b.qZA(),b.YNc(14,he,1,0,"mat-spinner",8),b.YNc(15,de,1,5,"app-sponsored-members-list",9),b.qZA()),2&t&&(b.xp6(2),b.Oqu(b.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),b.xp6(3),b.s9C("matTooltip",b.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),b.Q6J("matTooltipDisabled",!(e.findSponsorsAuth&&0===e.voSponsors.length)),b.xp6(2),b.Q6J("ngIf",!e.loading&&(e.createAuth||e.generateAuth)),b.xp6(3),b.Q6J("ngIf",e.createAuth),b.xp6(1),b.Q6J("ngIf",e.generateAuth),b.xp6(1),b.Q6J("ngIf",!e.loading&&e.setSponsorshipAuth),b.xp6(1),b.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),b.xp6(1),b.Q6J("ngIf",e.loading),b.xp6(1),b.Q6J("ngIf",!e.loading))},directives:[Lt.t,S.gM,l.O5,Nt.VK,rt.L,T.lW,Nt.p6,Nt.OP,_.$g,re],pipes:[w.X$],styles:[""]}),t})()},17249:function(t,e,i){"use strict";i.d(e,{Y:function(){return N}});var n=i(33642),s=i(27613),o=i(88426),r=i(99608),a=i(4230),c=i(84608),u=i(16073),l=i(31572),h=i(48160),d=i(57629),p=i(61511),g=i(67806),f=i(66283),m=i(80340),b=i(15980),w=i(36922);function _(t,e){1&t&&l._UZ(0,"mat-spinner",3)}function y(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"div",4),l.TgZ(2,"mat-form-field"),l._UZ(3,"input",5),l.ALo(4,"translate"),l.TgZ(5,"mat-error"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.qZA(),l.TgZ(8,"mat-form-field"),l._UZ(9,"input",5),l.ALo(10,"translate"),l.TgZ(11,"mat-error"),l._uU(12),l.ALo(13,"translate"),l.qZA(),l.qZA(),l.qZA(),l.TgZ(14,"div",6),l.TgZ(15,"button",7),l.NdJ("click",function(){return l.CHM(t),l.oxw().onCancel()}),l._uU(16),l.ALo(17,"translate"),l.qZA(),l.TgZ(18,"div",8),l.ALo(19,"translate"),l.TgZ(20,"button",9),l.NdJ("click",function(){return l.CHM(t),l.oxw().onSubmit()}),l._uU(21),l.ALo(22,"translate"),l.qZA(),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(3),l.s9C("placeholder",l.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),l.Q6J("formControl",t.fullNameCtrl),l.xp6(3),l.hij(" ",l.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),l.xp6(3),l.s9C("placeholder",l.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),l.Q6J("formControl",t.shortNameCtrl),l.xp6(3),l.hij(" ",l.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),l.xp6(4),l.hij(" ",l.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),l.Q6J("matTooltipDisabled",t.shortNameCtrl.valid&&t.fullNameCtrl.valid),l.xp6(2),l.Q6J("disabled",t.shortNameCtrl.invalid||t.fullNameCtrl.invalid),l.xp6(1),l.hij(" ",l.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let A=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.notificator=i,this.voService=n,this.translate=s,this.router=o,s.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new u.NI(null,[u.kI.required,u.kI.pattern("^[\\w.-]+$"),u.kI.maxLength(33)]),this.fullNameCtrl=new u.NI(null,[u.kI.required,u.kI.pattern(".*[\\S]+.*"),u.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(t=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0),this.router.navigate(["/organizations",t.id])},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(c.so),l.Y36(c.WI),l.Y36(o.V6),l.Y36(n.YF),l.Y36(h.sK),l.Y36(d.F0))},t.\u0275cmp=l.Xpm({type:t,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","","required","",3,"placeholder","formControl"],["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(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,_,1,0,"mat-spinner",1),l.YNc(5,y,23,25,"div",2),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[c.uh,p.O5,g.$g,c.xY,f.KE,m.Nt,u.Fj,u.Q7,u.JJ,u.oH,f.TO,c.H8,b.lW,w.gM],pipes:[h.X$],styles:[""]}),t})();var v=i(60611),T=i(48958),C=i(66297),S=i(43691),E=i(59403),k=i(19139),x=i(97162);function R(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-refresh-button",9),l.NdJ("refresh",function(){return l.CHM(t),l.oxw().refreshTable()}),l.qZA()}}function I(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",10),l.NdJ("click",function(){return l.CHM(t),l.oxw().onCreateVo()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function O(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){return l.CHM(t),l.oxw().onRemoveVo()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("disabled",0===t.selection.selected.length),l.xp6(1),l.hij(" ",l.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function P(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",12),l.NdJ("filter",function(e){return l.CHM(t),l.oxw().applyFilter(e)}),l.qZA()}2&t&&l.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER")}function D(t,e){1&t&&l._UZ(0,"mat-spinner",13)}function M(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-vos-list",14),l.NdJ("page",function(e){return l.CHM(t),l.oxw().pageChanged(e)}),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("pageSize",t.pageSize)("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("recentIds",t.recentIds)("selection",t.selection)("vos",t.vos)}}const L=function(){return{color:"black"}};let N=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.sideMenuService=t,this.voService=e,this.guiAuthResolver=i,this.tableConfigService=n,this.dialog=s,this.notificator=o,this.apiRequest=r,this.initAuthService=a,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=v.tw}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.selection=new a.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","recent","shortName","name"]:["id","recent","shortName","name"],this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setAccessMenuItems([])}refreshTable(){this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyVos().subscribe(t=>{this.vos=t,this.recentIds=(0,s.vL)("vos"),this.loading=!1},t=>{"PrivilegeException"===t.error.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(t)})}applyFilter(t){this.filterValue=t}onCreateVo(){const t=(0,s.kZ)();t.width="600px",t.data={theme:"vo-theme"},this.dialog.open(A,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const t=(0,s.kZ)();t.width="500px",t.data={theme:"vo-theme",vos:[this.selection.selected[0]]},this.dialog.open(r.o,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="VoSelectPageComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(T.D),l.Y36(n.YF),l.Y36(o.x4),l.Y36(v.dB),l.Y36(c.uw),l.Y36(o.V6),l.Y36(o.F5),l.Y36(o.v0))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.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",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","displayedColumns","filterValue","recentIds","selection","vos","page",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","displayedColumns","filterValue","recentIds","selection","vos","page"]],template:function(t,e){1&t&&(l.TgZ(0,"div",0),l._UZ(1,"perun-web-apps-back-button"),l.TgZ(2,"h1",1),l._UZ(3,"mat-icon",2),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.YNc(6,R,1,0,"perun-web-apps-refresh-button",3),l.YNc(7,I,3,3,"button",4),l.YNc(8,O,3,4,"button",5),l.YNc(9,P,1,2,"perun-web-apps-immediate-filter",6),l.YNc(10,D,1,0,"mat-spinner",7),l.YNc(11,M,1,6,"perun-web-apps-vos-list",8),l.qZA()),2&t&&(l.xp6(3),l.Q6J("ngStyle",l.DdM(10,L)),l.xp6(1),l.hij(" ",l.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.createAuth),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.deleteAuth),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[C.W,S.Hw,p.PC,p.O5,E.t,b.lW,k.L,g.$g,x.Z],pipes:[h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t})()},15291:function(t,e,i){"use strict";var n=i(30269),s=i(31572),o=i(57629);let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t})();var a=i(33642),c=i(88426),u=i(27613),l=i(81954),h=i(48958),d=i(48160),p=i(84608),g=i(25122),f=i(29236),m=i(16073),b=i(61511),w=i(43691),_=i(15980),y=i(39571),A=i(71522);function v(t,e){1&t&&(s.TgZ(0,"app-alert",2),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}function T(t,e){if(1&t&&(s.TgZ(0,"div",5),s.TgZ(1,"a",6),s.TgZ(2,"span",7),s._uU(3),s.qZA(),s._UZ(4,"mat-icon",8),s._uU(5),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Gre("",t.style," item-itself"),s.Q6J("routerLink",t.url),s.xp6(2),s.Oqu(t.type),s.xp6(1),s.Q6J("svgIcon",t.cssIcon),s.xp6(1),s.hij(" ",t.label," ")}}function C(t,e){if(1&t&&(s.TgZ(0,"div",3),s.YNc(1,T,6,7,"div",4),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.items)}}let S=(()=>{class t{constructor(){this.items=[]}ngOnInit(){const t=(0,u.vL)("recent");for(const e of t)switch(e.type){case"Vo":this.items.push({cssIcon:"perun-vo",url:`/organizations/${e.id}`,label:e.name,style:"vo-btn",type:"Organization"});break;case"Group":this.items.push({cssIcon:"perun-group",url:`/organizations/${e.voId}/groups/${e.id}`,label:e.name,style:"group-btn",type:"Group"});break;case"Facility":this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${e.id}`,label:e.name,style:"facility-btn",type:"Facility"})}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-perun-web-apps-dashboard-recently-viewed-button-field"]],decls:2,vars:2,consts:[["alert_type","info",4,"ngIf"],["class","items-container",4,"ngIf"],["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"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&(s.YNc(0,v,3,3,"app-alert",0),s.YNc(1,C,2,1,"div",1)),2&t&&(s.Q6J("ngIf",0===e.items.length),s.xp6(1),s.Q6J("ngIf",e.items.length>0))},directives:[b.O5,y.w,b.sg,A.wG,o.yS,w.Hw],pipes:[d.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}.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;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}"]}),t})();var E=i(36922),k=i(67806),x=i(97162),R=i(78364),I=i(88884),O=i(60007);function P(t,e){1&t&&s._UZ(0,"mat-spinner",7)}const D=function(){return["id","recent","shortName","name"]};function M(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"perun-web-apps-vos-list",8),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("pageSizeOptions",null)("pageSize",5)("displayedColumns",s.DdM(5,D))("recentIds",t.recentIds)("vos",t.objects)}}const L=function(){return["id","recent","vo","name","description"]};function N(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"perun-web-apps-groups-list",9),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("pageSizeOptions",null)("pageSize",5)("groups",t.objects)("recentIds",t.recentIds)("displayedColumns",s.DdM(5,L))}}const z=function(){return["id","recent","name","vo","facility"]};function F(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"perun-web-apps-resources-list",10),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("pageSizeOptions",null)("pageSize",5)("resources",t.objects)("displayedColumns",s.DdM(6,z))("recentIds",t.recentIds)("routingVo",!0)}}const Z=function(){return["id","recent","name","description"]};function B(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"perun-web-apps-facilities-list",11),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("pageSizeOptions",null)("pageSize",5)("facilities",t.objects)("recentIds",t.recentIds)("displayedColumns",s.DdM(5,Z))}}function q(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,M,2,6,"span",6),s.YNc(2,N,2,6,"span",6),s.YNc(3,F,2,7,"span",6),s.YNc(4,B,2,6,"span",6),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf","Vo"===t.primaryObject),s.xp6(1),s.Q6J("ngIf","Group"===t.primaryObject),s.xp6(1),s.Q6J("ngIf","Resource"===t.primaryObject),s.xp6(1),s.Q6J("ngIf","Facility"===t.primaryObject)}}let U=(()=>{class t{constructor(t,e,i){this.authzResolver=t,this.guiAuthResolver=e,this.resourceService=i,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(t=>{this.objects=t,this.recentIds=(0,u.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(t=>{this.objects=t,this.recentIds=(0,u.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(t=>{this.objects=t,this.recentIds=(0,u.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(t=>{this.objects=t.map(t=>({facility:t})),this.recentIds=(0,u.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.Ct),s.Y36(c.x4),s.Y36(a.xk))},t.\u0275cmp=s.Xpm({type:t,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","pageSize","displayedColumns","recentIds","vos"],[3,"pageSizeOptions","pageSize","groups","recentIds","displayedColumns"],[3,"pageSizeOptions","pageSize","resources","displayedColumns","recentIds","routingVo"],[3,"pageSizeOptions","pageSize","facilities","recentIds","displayedColumns"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s._UZ(2,"mat-icon",2),s._uU(3),s.ALo(4,"translate"),s.TgZ(5,"span",3),s.ALo(6,"translate"),s.TgZ(7,"mat-icon",4),s._uU(8,"info_outline"),s.qZA(),s.qZA(),s.qZA(),s.YNc(9,P,1,0,"mat-spinner",5),s.YNc(10,q,5,4,"div",6),s.qZA()),2&t&&(s.xp6(2),s.Q6J("svgIcon",e.svgIcon),s.xp6(1),s.hij(" ",s.lcZ(4,5,e.title)," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(6,7,e.roleTooltipInfo)),s.xp6(4),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[w.Hw,E.gM,b.O5,k.$g,x.Z,R.W,I.C,O.X],pipes:[d.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}"]}),t})();var H=i(22196);function j(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"mat-checkbox",8),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.changeRoleView(i):null}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("checked",i.isRoleShowed(t)),s.xp6(1),s.Oqu(s.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+t))}}function G(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",15),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).rightSettingOpened=!0}),s.TgZ(1,"mat-icon"),s._uU(2,"settings"),s.qZA(),s.qZA()}}function Y(t,e){1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function V(t,e){1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function K(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",23),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).goToUserProfile()}),s.TgZ(1,"mat-icon",24),s._uU(2,"exit_to_app"),s.qZA(),s._uU(3),s.ALo(4,"translate"),s.qZA()}2&t&&(s.xp6(3),s.hij("",s.lcZ(4,1,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," "))}const J=function(){return["/myProfile"]};function $(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"div",16),s.TgZ(2,"div",17),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"div",18),s.YNc(6,Y,3,3,"span",14),s.YNc(7,V,3,3,"span",14),s.qZA(),s.TgZ(8,"div",19),s.TgZ(9,"button",20),s._UZ(10,"mat-icon",21),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.YNc(13,K,5,3,"button",22),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw(2);s.xp6(3),s.hij(" ",s.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),s.xp6(3),s.Q6J("ngIf",!t.userProfileUrl),s.xp6(1),s.Q6J("ngIf",t.userProfileUrl),s.xp6(2),s.Q6J("routerLink",s.DdM(10,J)),s.xp6(2),s.hij(" ",s.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),s.xp6(2),s.Q6J("ngIf",t.userProfileUrl)}}function Q(t,e){1&t&&(s.TgZ(0,"span"),s.TgZ(1,"div",3),s._uU(2),s.ALo(3,"translate"),s.qZA(),s._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),s.qZA()),2&t&&(s.xp6(2),s.hij(" ",s.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function W(t,e){1&t&&(s.TgZ(0,"div",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function X(t,e){if(1&t&&s._UZ(0,"app-perun-web-apps-dashboard-card",30),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("roleName",t)("role",e.roles[t])}}function tt(t,e){if(1&t&&(s.TgZ(0,"div",28),s.YNc(1,X,1,2,"app-perun-web-apps-dashboard-card",29),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",i.isRoleShowed(t))}}function et(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,Q,5,3,"span",14),s.YNc(2,W,3,3,"div",25),s.TgZ(3,"div"),s.YNc(4,tt,2,1,"div",26),s.qZA(),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngIf",t.recentlyViewedShow),s.xp6(1),s.Q6J("ngIf",t.rolesToHide.toString()!==t.roleNames.toString()),s.xp6(2),s.Q6J("ngForOf",t.roleNames)}}function it(t,e){if(1&t&&(s.TgZ(0,"div",9),s.TgZ(1,"h1",10),s._UZ(2,"mat-icon",11),s.TgZ(3,"span",12),s._uU(4),s.ALo(5,"translate"),s.ALo(6,"userFullName"),s.qZA(),s.YNc(7,G,3,0,"button",13),s.qZA(),s.YNc(8,$,14,11,"div",14),s.YNc(9,et,5,3,"div",14),s.qZA()),2&t){const t=s.oxw();s.xp6(4),s.AsE("",s.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",s.lcZ(6,7,t.user),""),s.xp6(3),s.Q6J("ngIf",!t.isOnlySelfRole),s.xp6(1),s.Q6J("ngIf",t.isOnlySelfRole),s.xp6(1),s.Q6J("ngIf",!t.isOnlySelfRole)}}let nt=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l,h){this.userManager=t,this.storeService=e,this.guiAuthResolver=i,this.facilitiesService=n,this.resourcesService=s,this.sideMenuService=o,this.route=r,this.router=a,this.notificator=c,this.translateService=u,this.dialog=l,this.apiRequestConfiguration=h,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"],u.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(t=>this.mailSuccessMessage=t)}ngOnInit(){this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.userProfileUrl=this.storeService.get("user_profile_url");const t=Object.keys(this.roles);this.isOnlySelfRole=t.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(e=>t.includes(e)),this.getDashboardSettings(),this.sideMenuService.setHomeItems([])}validatePreferredMailChange(){const t=this.route.snapshot.queryParamMap,e=t.get("token"),i=t.get("u");e&&i&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(e,Number.parseInt(i,10)).subscribe(()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0})},()=>{const t=(0,u.kZ)();t.width="600px",this.dialog.open(l.qD,t).afterClosed().subscribe(()=>{this.getDashboardSettings()})}))}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}getDashboardSettings(){const t=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===t||t;const e=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===e?[]:e}changeRoleView(t){if(this.isRoleShowed(t)){const e=[];for(const i of this.roleNames)this.isRoleShowed(i)||e.push(i),i===t&&e.push(i);this.rolesToHide=e}else this.rolesToHide=this.rolesToHide.filter(e=>e!==t);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(t){for(const e of this.rolesToHide)if(e===t)return!1;return!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.Fv),s.Y36(c.d6),s.Y36(c.x4),s.Y36(a.IQ),s.Y36(a.xk),s.Y36(h.D),s.Y36(o.gz),s.Y36(o.F0),s.Y36(c.V6),s.Y36(d.sK),s.Y36(p.uw),s.Y36(c.F5))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.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"],[1,"pt-1"],["mat-stroked-button","","class","ml-auto text-bigger",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,"d-flex","pt-3"],["mat-stroked-button","",1,"ml-auto","mr-auto","text-bigger",3,"routerLink"],["svgIcon","perun-user-dark",1,"mr-1","user-icon"],["mat-stroked-button","","class","ml-auto mr-auto text-bigger",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ml-auto","mr-auto","text-bigger",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(t,e){1&t&&(s.TgZ(0,"mat-sidenav-container",0),s.TgZ(1,"mat-sidenav",1),s.NdJ("openedChange",function(t){return e.rightSettingOpened=t}),s.TgZ(2,"div",2),s.TgZ(3,"div",3),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div"),s.TgZ(7,"mat-checkbox",4),s.NdJ("ngModelChange",function(t){return e.recentlyViewedShow=t})("change",function(t){return t?e.recentlyViewedChanged():null}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA(),s.TgZ(10,"div",5),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.YNc(13,j,4,4,"div",6),s.qZA(),s.qZA(),s.TgZ(14,"mat-sidenav-content"),s.YNc(15,it,10,9,"div",7),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Q6J("opened",e.rightSettingOpened),s.xp6(3),s.Oqu(s.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),s.xp6(3),s.Q6J("ngModel",e.recentlyViewedShow),s.xp6(1),s.Oqu(s.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),s.xp6(3),s.Oqu(s.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),s.xp6(2),s.Q6J("ngForOf",e.roleNames),s.xp6(2),s.Q6J("ngIf",void 0!==e.user))},directives:[g.TM,g.JX,f.oG,m.JJ,m.On,b.sg,g.Rh,b.O5,w.Hw,_.lW,o.rH,S,U],pipes:[d.X$,H.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;grid-column-gap:1rem;-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 - 64px - 200px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),t})();var st=i(66297);let ot=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"perun-web-apps-back-button"),s.TgZ(2,"h1",1),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Oqu(s.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},directives:[st.W],pipes:[d.X$],styles:[""]}),t})();var rt=i(41939);let at=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ez,_.ot,w.Ps,o.Bz,rt.ez,d.aw]]}),t})(),ct=(()=>{class t{constructor(t){this.auth=t}startAuth(){this.auth.startAuthentication()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.e8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con","vo-theme"],[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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h4",3),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.startAuth()}),s._uU(7),s.ALo(8,"translate"),s.TgZ(9,"mat-icon"),s._uU(10," login "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.hij(" ",s.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),s.xp6(3),s.hij(" ",s.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[_.lW,w.Hw],pipes:[d.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),t})();var ut=i(76198);const lt=function(t){return{padding:t}},ht=function(){return{height:"56px"}};function dt(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"div",10),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngStyle",s.VKq(3,lt,t.logoPadding)),s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)("ngStyle",s.DdM(5,ht))}}function pt(t,e){if(1&t&&(s.TgZ(0,"div",11),s._UZ(1,"div",12),s._UZ(2,"mat-icon",13),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}function gt(t,e){if(1&t&&(s.TgZ(0,"div",14),s._UZ(1,"a",15),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}const ft=function(t){return{color:t}};function mt(t,e){if(1&t&&(s.TgZ(0,"p",16),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngStyle",s.VKq(2,ft,t.textColor)),s.xp6(1),s.hij(" ",t.headerTitle," ")}}const bt=function(t,e){return{background:t,color:e}},wt=function(t,e){return{"min-height":t,"background-color":e}};let _t=(()=>{class t{constructor(t,e){this.storeService=t,this.sanitizer=e,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){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"):"",this.logoPadding="admin-gui"===this.application?this.storeService.get("logo_padding"):""}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.d6),s.Y36(n.H7))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],["style"," display: flex; flex-direction: row;",4,"ngIf"],["style","padding-top: 16px",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"],[3,"ngStyle"],[1,"logo-container",3,"innerHTML","ngStyle"],[2,"display","flex","flex-direction","row"],[1,"router-icon-scale",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[2,"padding-top","16px"],[1,"ml-3",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,dt,2,6,"div",1),s.YNc(2,pt,3,1,"div",2),s.YNc(3,gt,2,1,"div",3),s.YNc(4,mt,2,4,"p",4),s.qZA(),s.TgZ(5,"div",5),s.TgZ(6,"div",6),s.TgZ(7,"div",7),s._UZ(8,"router-outlet"),s.qZA(),s.TgZ(9,"div",8),s._UZ(10,"perun-web-apps-footer"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Q6J("ngStyle",s.WLB(6,bt,e.headerBackgroundColor,e.headerTextColor)),s.xp6(1),s.Q6J("ngIf","admin-gui"===e.application),s.xp6(1),s.Q6J("ngIf","publications"===e.application),s.xp6(1),s.Q6J("ngIf","user-profile"===e.application),s.xp6(1),s.Q6J("ngIf",!!e.headerTitle),s.xp6(2),s.Q6J("ngStyle",s.WLB(9,wt,e.getContentInnerMinHeight(),e.contentBackgroundColor)))},directives:[b.PC,b.O5,o.lC,ut.$,w.Hw],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}.router-icon-scale[_ngcontent-%COMP%]{transform:scale(.75);margin-top:.3rem}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}"]}),t})();const yt=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:rt.t$},{path:"api-callback",component:r},{path:"login",component:ct},{path:"organizations",loadChildren:()=>Promise.all([i.e(579),i.e(827),i.e(592),i.e(512)]).then(i.bind(i,72512)).then(t=>t.VosModule)},{path:"admin",loadChildren:()=>Promise.all([i.e(579),i.e(363),i.e(756),i.e(592),i.e(147)]).then(i.bind(i,48147)).then(t=>t.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([i.e(579),i.e(363),i.e(827),i.e(756),i.e(300)]).then(i.bind(i,55300)).then(t=>t.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([i.e(579),i.e(363)]).then(i.bind(i,6363)).then(t=>t.UsersModule)},{path:"home",component:nt},{path:"**",component:ot}];let At=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o.Bz.forRoot(yt,{preloadingStrategy:o.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],o.Bz]}),t})();var vt=i(61601),Tt=i(28780);class Ct{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}var St=i(29063),Et=i(43490);let kt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[c.e8],imports:[[b.ez]]}),t})();var xt=i(28940),Rt=i(48002),It=i(40659),Ot=i(62284),Pt=i(7433),Dt=i(82044),Mt=i(11930),Lt=i(39124),Nt=i(64467),zt=i(81835),Ft=i(88227),Zt=i(97397),Bt=i(71313),qt=i(14527),Ut=i(65423),Ht=i(17249),jt=i(73916),Gt=i(48666);let Yt=(()=>{class t{constructor(){this.allowCachePages=[{type:"vo",components:[xt.y.id,Rt.G.id,It.c.id,Ft.z.id,Zt.z.id,qt.w.id,Gt.T.id]},{type:"group",components:[Mt.y.id,Dt.u.id,Pt.q.id,Ot.W.id,Ut.Z.id]},{type:"facility",components:[Lt.o.id,Nt.f.id]},{type:"member",components:[zt.j.id]},{type:"admin",components:[Bt.t.id]},{type:"entitySelect",components:[Ht.Y.id,jt.P.id]}],this.cacheTimeMs=3e5,this.resets=[{lastValue:null,resetType:"vo",resetPath:":voId",param:"voId"},{lastValue:null,resetType:"group",resetPath:":voId/groups/:groupId",param:"groupId"},{lastValue:null,resetType:"facility",resetPath:":facilityId",param:"facilityId"},{lastValue:null,resetType:"member",resetPath:":voId/members/:memberId",param:"memberId"},{lastValue:null,resetType:"admin",resetPath:"admin/users"}],this.isUserNavigatingBack=!1,this.typeToComponentToHandlers=new Map;for(const t of this.allowCachePages)this.typeToComponentToHandlers.set(t.type,new Map)}setLastNavigationType(t){this.isUserNavigatingBack="back"===t}checkResets(t){const e=this.getPath(t);for(const i of this.resets)if(i.resetPath===e){const e=t.params[i.param];null!==i.lastValue&&i.lastValue!==e&&this.typeToComponentToHandlers.get(i.resetType).clear(),i.lastValue=e}}shouldReuseRoute(t,e){return this.checkResets(e),t.routeConfig===e.routeConfig}retrieve(t){if(t.component){const e=this.getComponentName(t.component);for(const t of this.allowCachePages)if(-1!==t.components.indexOf(e)){const i=this.typeToComponentToHandlers.get(t.type).get(e);return void 0===i?null:i.routeHandle}}return null}shouldAttach(t){if(!this.isUserNavigatingBack)return!1;if(t.component){const e=this.getComponentName(t.component);for(const t of this.allowCachePages){const i=this.typeToComponentToHandlers.get(t.type).get(e);if(void 0!==i&&this.getCurrentTimestamp()-i.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();const i=this.getComponentType(t);this.typeToComponentToHandlers.get(i).set(this.getComponentName(t.component),{routeHandle:e,saveTimeStamp:this.getCurrentTimestamp()})}}getCurrentTimestamp(){return+Date.now()}getComponentName(t){return t.id}getComponentType(t){const e=this.getComponentName(t.component);for(const i of this.allowCachePages)if(-1!==i.components.indexOf(e))return i.type;return null}getPath(t){return null!==t.routeConfig&&null!==t.routeConfig.path?t.routeConfig.path:""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Vt=new s.OlP("perun-api-service");let Kt=(()=>{class t{constructor(t,e){this.http=t,this.storeService=e}initializeColors(t,e){return new Promise(i=>{e.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),this.setEntityTheme(t.entity,e)}),i()})}setEntityTheme(t,e){const i=(n=e,[Jt(tinycolor(n).lighten(52),"50"),Jt(tinycolor(n).lighten(37),"100"),Jt(tinycolor(n).lighten(26),"200"),Jt(tinycolor(n).lighten(12),"300"),Jt(tinycolor(n).lighten(6),"400"),Jt(tinycolor(n),"500"),Jt(tinycolor(n).darken(6),"600"),Jt(tinycolor(n).darken(12),"700"),Jt(tinycolor(n).darken(18),"800"),Jt(tinycolor(n).darken(24),"900"),Jt(tinycolor(n).lighten(50).saturate(30),"A100"),Jt(tinycolor(n).lighten(30).saturate(30),"A200"),Jt(tinycolor(n).lighten(10).saturate(15),"A400"),Jt(tinycolor(n).lighten(5).saturate(5),"A700")]);var n;for(const s of i){const e=`--${t}-theme-primary-contrast-${s.name}`,i=s.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${t}-theme-primary-${s.name}`,`${s.red},${s.green},${s.blue}`),document.documentElement.style.setProperty(e,i)}}loadAppDefaultConfig(){return new Promise(t=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setDefaultConfig(e),t()})})}loadAppInstanceConfig(){return new Promise(t=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setInstanceConfig(e);const i=document.location.hostname;void 0!==e.brandings&&void 0!==e.brandings[i]&&this.storeService.setBanding(i),t()},()=>{console.log("instance config not detected"),t()})})}getNoCacheHeaders(){return new St.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(St.eN),s.LFG(c.d6))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Jt(t,e){const i=tinycolor(t),n=i.toRgb();return{name:e,hex:i.toHexString(),darkContrast:i.isLight(),red:n.r,green:n.g,blue:n.b}}let $t=(()=>{class t{constructor(t,e){this.data=t,this.location=e}redirect(){this.location.go("/"),location.reload()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(p.WI),s.Y36(b.Ye))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"h2"),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"p"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div"),s.TgZ(7,"button",0),s.NdJ("click",function(){return e.redirect()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,3,e.data.title),"\n"),s.xp6(3),s.hij(" ",s.lcZ(5,5,e.data.message),"\n"),s.xp6(4),s.hij(" ",s.lcZ(9,7,e.data.action)," "))},pipes:[d.X$],styles:[""]}),t})(),Qt=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}refresh(){location.reload()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(p.so),s.Y36(p.WI))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"h2"),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"p"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div"),s.TgZ(7,"button",0),s.NdJ("click",function(){return e.refresh()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,3,e.data.title),"\n"),s.xp6(3),s.hij(" ",s.lcZ(5,5,e.data.message),"\n"),s.xp6(4),s.hij(" ",s.lcZ(9,7,e.data.action)," "))},pipes:[d.X$],styles:[""]}),t})(),Wt=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u){this.initAuthService=t,this.appConfigService=e,this.store=i,this.authzSevice=n,this.dialog=s,this.location=o,this.translate=r,this.guiAuthResolver=a,this.titleService=c,this.router=u,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.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.initAuthService.verifyAuth()).catch(t=>{if("Invalid path"!==t)throw console.error(t),this.location.go("/"),location.reload(),t;this.handleErr(t)}).then(t=>t?this.initAuthService.loadPrincipal().catch(t=>this.handleErr(t)).then(()=>this.loadPolicies()).then(()=>this.guiAuthResolver.loadRolesManagementRules()):this.initAuthService.handleAuthStart())}setApiUrl(){return new Promise(t=>{this.authzSevice.configuration.basePath=this.store.get("api_url"),this.titleService.setTitle(this.store.get("document_title")),t()})}handleErr(t){const e=(0,u.kZ)();throw"Invalid path"===t?(e.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open($t,e)):(e.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===t.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":t.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(Qt,e)),console.error(t),t}loadPolicies(){return new Promise((t,e)=>{this.authzSevice.getAllPolicies().subscribe(e=>{this.guiAuthResolver.setPerunPolicies(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(c.v0),s.LFG(Kt),s.LFG(c.d6),s.LFG(a.Ct),s.LFG(p.uw),s.LFG(b.Ye),s.LFG(d.sK),s.LFG(c.x4),s.LFG(n.Dx),s.LFG(o.F0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Xt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ez,p.Is,_.ot,d.aw]]}),t})();var te=i(64762),ee=i(55959),ie=i(87254),ne=i(31906),se=i(30810),oe=i(25416),re=i(98720),ae=i(88414);function ce(t){return getComputedStyle(t)}function ue(t,e){for(var i in e){var n=e[i];"number"==typeof n&&(n+="px"),t.style[i]=n}return t}function le(t){var e=document.createElement("div");return e.className=t,e}var he="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function de(t,e){if(!he)throw new Error("No element matching method supported");return he.call(t,e)}function pe(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function ge(t,e){return Array.prototype.filter.call(t.children,function(t){return de(t,e)})}var fe=function(t){return"ps__thumb-"+t},me=function(t){return"ps__rail-"+t},be=function(t){return"ps--active-"+t},we=function(t){return"ps--scrolling-"+t},_e={x:null,y:null};function ye(t,e){var i=t.element.classList,n=we(e);i.contains(n)?clearTimeout(_e[e]):i.add(n)}function Ae(t,e){_e[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(we(e))},t.settings.scrollingThreshold)}var ve=function(t){this.element=t,this.handlers={}},Te={isEmpty:{configurable:!0}};ve.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},ve.prototype.unbind=function(t,e){var i=this;this.handlers[t]=this.handlers[t].filter(function(n){return!(!e||n===e)||(i.element.removeEventListener(t,n,!1),!1)})},ve.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},Te.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(ve.prototype,Te);var Ce=function(){this.eventElements=[]};function Se(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function Ee(t,e,i,n,s){var o;if(void 0===n&&(n=!0),void 0===s&&(s=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,i,n,s){var o=i[0],r=i[1],a=i[2],c=i[3],u=i[4],l=i[5];void 0===n&&(n=!0),void 0===s&&(s=!1);var h=t.element;t.reach[c]=null,h[a]<1&&(t.reach[c]="start"),h[a]>t[o]-t[r]-1&&(t.reach[c]="end"),e&&(h.dispatchEvent(Se("ps-scroll-"+c)),e<0?h.dispatchEvent(Se("ps-scroll-"+u)):e>0&&h.dispatchEvent(Se("ps-scroll-"+l)),n&&function(t,e){ye(t,e),Ae(t,e)}(t,c)),t.reach[c]&&(e||s)&&h.dispatchEvent(Se("ps-"+c+"-reach-"+t.reach[c]))}(t,i,o,n,s)}function ke(t){return parseInt(t,10)||0}Ce.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new ve(t),this.eventElements.push(e)),e},Ce.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},Ce.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},Ce.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},Ce.prototype.once=function(t,e,i){var n=this.eventElement(t),s=function(t){n.unbind(e,s),i(t)};n.bind(e,s)};var xe={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function Re(t){var e=t.element,i=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.ceil(n.width),t.containerHeight=Math.ceil(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(ge(e,me("x")).forEach(function(t){return pe(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(ge(e,me("y")).forEach(function(t){return pe(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var i={width:e.railXWidth},n=Math.floor(t.scrollTop);i.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-n:i.top=e.scrollbarXTop+n,ue(e.scrollbarXRail,i);var s={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?s.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:s.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,ue(e.scrollbarYRail,s),ue(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),ue(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(be("x")):(e.classList.remove(be("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(be("y")):(e.classList.remove(be("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function Ie(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function Oe(t,e){var i=e[0],n=e[1],s=e[2],o=e[3],r=e[4],a=e[5],c=e[6],u=e[7],l=e[8],h=t.element,d=null,p=null,g=null;function f(e){e.touches&&e.touches[0]&&(e[s]=e.touches[0].pageY),h[c]=d+g*(e[s]-p),ye(t,u),Re(t),e.stopPropagation(),e.preventDefault()}function m(){Ae(t,u),t[l].classList.remove("ps--clicking"),t.event.unbind(t.ownerDocument,"mousemove",f)}function b(e,r){d=h[c],r&&e.touches&&(e[s]=e.touches[0].pageY),p=e[s],g=(t[n]-t[i])/(t[o]-t[a]),r?t.event.bind(t.ownerDocument,"touchmove",f):(t.event.bind(t.ownerDocument,"mousemove",f),t.event.once(t.ownerDocument,"mouseup",m),e.preventDefault()),t[l].classList.add("ps--clicking"),e.stopPropagation()}t.event.bind(t[r],"mousedown",function(t){b(t)}),t.event.bind(t[r],"touchstart",function(t){b(t,!0)})}var Pe={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,Re(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,Re(t),e.stopPropagation()})},"drag-thumb":function(t){Oe(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Oe(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(de(e,":hover")||de(t.scrollbarX,":focus")||de(t.scrollbarY,":focus"))){var n,s=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(s){if("IFRAME"===s.tagName)s=s.contentDocument.activeElement;else for(;s.shadowRoot;)s=s.shadowRoot.activeElement;if(de(n=s,"input,[contenteditable]")||de(n,"select,[contenteditable]")||de(n,"textarea,[contenteditable]")||de(n,"button,[contenteditable]"))return}var o=0,r=0;switch(i.which){case 37:o=i.metaKey?-t.contentWidth:i.altKey?-t.containerWidth:-30;break;case 38:r=i.metaKey?t.contentHeight:i.altKey?t.containerHeight:30;break;case 39:o=i.metaKey?t.contentWidth:i.altKey?t.containerWidth:30;break;case 40:r=i.metaKey?-t.contentHeight:i.altKey?-t.containerHeight:-30;break;case 32:r=i.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:r=t.containerHeight;break;case 34:r=-t.containerHeight;break;case 36:r=t.contentHeight;break;case 35:r=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==o||t.settings.suppressScrollY&&0!==r||(e.scrollTop-=r,e.scrollLeft+=o,Re(t),function(i,n){var s=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===s&&n>0||s>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===o&&i<0||o>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}(o,r)&&i.preventDefault())}})},wheel:function(t){var e=t.element;function i(i){var n=function(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}(i),s=n[0],o=n[1];if(!function(t,i,n){if(!xe.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var s=t;s&&s!==e;){if(s.classList.contains("ps__child--consume"))return!0;var o=ce(s);if(n&&o.overflowY.match(/(scroll|auto)/)){var r=s.scrollHeight-s.clientHeight;if(r>0&&(s.scrollTop>0&&n<0||s.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&i<0||s.scrollLeft0))return!0}s=s.parentNode}return!1}(i.target,s,o)){var r=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(o?e.scrollTop-=o*t.settings.wheelSpeed:e.scrollTop+=s*t.settings.wheelSpeed,r=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(s?e.scrollLeft+=s*t.settings.wheelSpeed:e.scrollLeft-=o*t.settings.wheelSpeed,r=!0):(e.scrollTop-=o*t.settings.wheelSpeed,e.scrollLeft+=s*t.settings.wheelSpeed),Re(t),(r=r||function(i,n){var s=Math.floor(e.scrollTop),o=0===e.scrollTop,r=s+e.offsetHeight===e.scrollHeight,a=0===e.scrollLeft,c=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(n)>Math.abs(i)?o||r:a||c)||!t.settings.wheelPropagation}(s,o))&&!i.ctrlKey&&(i.stopPropagation(),i.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",i):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",i)},touch:function(t){if(xe.supportsTouch||xe.supportsIePointer){var e=t.element,i={},n=0,s={},o=null;xe.supportsTouch?(t.event.bind(e,"touchstart",u),t.event.bind(e,"touchmove",l),t.event.bind(e,"touchend",h)):xe.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",u),t.event.bind(e,"pointermove",l),t.event.bind(e,"pointerup",h)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",u),t.event.bind(e,"MSPointerMove",l),t.event.bind(e,"MSPointerUp",h)))}function r(i,n){e.scrollTop-=n,e.scrollLeft-=i,Re(t)}function a(t){return t.targetTouches?t.targetTouches[0]:t}function c(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function u(t){if(c(t)){var e=a(t);i.pageX=e.pageX,i.pageY=e.pageY,n=(new Date).getTime(),null!==o&&clearInterval(o)}}function l(o){if(c(o)){var u=a(o),l={pageX:u.pageX,pageY:u.pageY},h=l.pageX-i.pageX,d=l.pageY-i.pageY;if(function(t,i,n){if(!e.contains(t))return!1;for(var s=t;s&&s!==e;){if(s.classList.contains("ps__child--consume"))return!0;var o=ce(s);if(n&&o.overflowY.match(/(scroll|auto)/)){var r=s.scrollHeight-s.clientHeight;if(r>0&&(s.scrollTop>0&&n<0||s.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&i<0||s.scrollLeft0))return!0}s=s.parentNode}return!1}(o.target,h,d))return;r(h,d),i=l;var p=(new Date).getTime(),g=p-n;g>0&&(s.x=h/g,s.y=d/g,n=p),function(i,n){var s=Math.floor(e.scrollTop),o=e.scrollLeft,r=Math.abs(i),a=Math.abs(n);if(a>r){if(n<0&&s===t.contentHeight-t.containerHeight||n>0&&0===s)return 0===window.scrollY&&n>0&&xe.isChrome}else if(r>a&&(i<0&&o===t.contentWidth-t.containerWidth||i>0&&0===o))return!0;return!0}(h,d)&&o.preventDefault()}}function h(){t.settings.swipeEasing&&(clearInterval(o),o=setInterval(function(){t.isInitialized?clearInterval(o):s.x||s.y?Math.abs(s.x)<.01&&Math.abs(s.y)<.01?clearInterval(o):(r(30*s.x,30*s.y),s.x*=.8,s.y*=.8):clearInterval(o)},10))}}},De=function(t,e){var i=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var n in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[n]=e[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s,o,r=function(){return t.classList.add("ps--focus")},a=function(){return t.classList.remove("ps--focus")};this.isRtl="rtl"===ce(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,s=t.scrollLeft<0,t.scrollLeft=o,s),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new Ce,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=le(me("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=le(fe("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=ce(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=ke(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=ke(c.borderLeftWidth)+ke(c.borderRightWidth),ue(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=ke(c.marginLeft)+ke(c.marginRight),ue(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=le(me("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=le(fe("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=ce(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=ke(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=ce(t);return ke(e.width)+ke(e.paddingLeft)+ke(e.paddingRight)+ke(e.borderLeftWidth)+ke(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=ke(u.borderTopWidth)+ke(u.borderBottomWidth),ue(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=ke(u.marginTop)+ke(u.marginBottom),ue(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return Pe[t](i)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return i.onScroll(t)}),Re(this)};De.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,ue(this.scrollbarXRail,{display:"block"}),ue(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=ke(ce(this.scrollbarXRail).marginLeft)+ke(ce(this.scrollbarXRail).marginRight),this.railYMarginHeight=ke(ce(this.scrollbarYRail).marginTop)+ke(ce(this.scrollbarYRail).marginBottom),ue(this.scrollbarXRail,{display:"none"}),ue(this.scrollbarYRail,{display:"none"}),Re(this),Ee(this,"top",0,!1,!0),Ee(this,"left",0,!1,!0),ue(this.scrollbarXRail,{display:""}),ue(this.scrollbarYRail,{display:""}))},De.prototype.onScroll=function(t){this.isAlive&&(Re(this),Ee(this,"top",this.element.scrollTop-this.lastScrollTop),Ee(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},De.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),pe(this.scrollbarX),pe(this.scrollbarY),pe(this.scrollbarXRail),pe(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},De.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};var Me=De,Le=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some(function(t,n){return t[0]===e&&(i=n,!0)}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i0},t.prototype.connect_=function(){Ne&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Be?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){Ne&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;Ze.some(function(t){return!!~i.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Ue=function(t,e){for(var i=0,n=Object.keys(e);i0},t}(),We="undefined"!=typeof WeakMap?new WeakMap:new Le,Xe=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=qe.getInstance(),n=new Qe(e,i,this);We.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){Xe.prototype[t]=function(){var e;return(e=We.get(this))[t].apply(e,arguments)}});var ti=void 0!==ze.ResizeObserver?ze.ResizeObserver:Xe;function ei(t,e){if(1&t&&(s.TgZ(0,"div",3),s._UZ(1,"div",4),s._UZ(2,"div",5),s._UZ(3,"div",6),s._UZ(4,"div",7),s.qZA()),2&t){const t=s.oxw();s.ekj("ps-at-top",t.states.top)("ps-at-left",t.states.left)("ps-at-right",t.states.right)("ps-at-bottom",t.states.bottom),s.xp6(1),s.ekj("ps-indicator-show",t.indicatorY&&t.interaction),s.xp6(1),s.ekj("ps-indicator-show",t.indicatorX&&t.interaction),s.xp6(1),s.ekj("ps-indicator-show",t.indicatorX&&t.interaction),s.xp6(1),s.ekj("ps-indicator-show",t.indicatorY&&t.interaction)}}const ii=["*"],ni=new s.OlP("PERFECT_SCROLLBAR_CONFIG");class si{constructor(t,e,i,n){this.x=t,this.y=e,this.w=i,this.h=n}}class oi{constructor(t,e){this.x=t,this.y=e}}const ri=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class ai{constructor(t={}){this.assign(t)}assign(t={}){for(const e in t)this[e]=t[e]}}let ci=(()=>{let t=class{constructor(t,e,i,n,o){this.zone=t,this.differs=e,this.elementRef=i,this.platformId=n,this.defaults=o,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new ee.xQ,this.disabled=!1,this.psScrollY=new s.vpe,this.psScrollX=new s.vpe,this.psScrollUp=new s.vpe,this.psScrollDown=new s.vpe,this.psScrollLeft=new s.vpe,this.psScrollRight=new s.vpe,this.psYReachEnd=new s.vpe,this.psYReachStart=new s.vpe,this.psXReachEnd=new s.vpe,this.psXReachStart=new s.vpe}ngOnInit(){if(!this.disabled&&(0,b.NF)(this.platformId)){const t=new ai(this.defaults);t.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Me(this.elementRef.nativeElement,t)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new ti(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{ri.forEach(t=>{const e=t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`);(0,ie.R)(this.elementRef.nativeElement,e).pipe((0,se.e)(20),(0,oe.R)(this.ngDestroy)).subscribe(e=>{this[t].emit(e)})})})}}ngOnDestroy(){(0,b.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,b.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(t){t.disabled&&!t.disabled.isFirstChange()&&(0,b.NF)(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(t){}},0))}geometry(t="scroll"){return new si(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])}position(t=!1){return!t&&this.instance?new oi(this.instance.reach.x||0,this.instance.reach.y||0):new oi(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(t="any"){const e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)}scrollTo(t,e,i){this.disabled||(null==e&&null==i?this.animateScrolling("scrollTop",t,i):(null!=t&&this.animateScrolling("scrollLeft",t,i),null!=e&&this.animateScrolling("scrollTop",e,i)))}scrollToX(t,e){this.animateScrolling("scrollLeft",t,e)}scrollToY(t,e){this.animateScrolling("scrollTop",t,e)}scrollToTop(t,e){this.animateScrolling("scrollTop",t||0,e)}scrollToLeft(t,e){this.animateScrolling("scrollLeft",t||0,e)}scrollToRight(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)}scrollToBottom(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)}scrollToElement(t,e,i){const n=this.elementRef.nativeElement.querySelector(t);if(n){const t=n.getBoundingClientRect(),s=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",t.left-s.left+this.elementRef.nativeElement.scrollLeft+(e||0),i),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",t.top-s.top+this.elementRef.nativeElement.scrollTop+(e||0),i)}}animateScrolling(t,e,i){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),i&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){let n=0,s=0,o=performance.now(),r=this.elementRef.nativeElement[t];const a=(r-e)/2,c=u=>{s+=Math.PI/(i/(u-o)),n=Math.round(e+a+a*Math.cos(s)),this.elementRef.nativeElement[t]===r&&(s>=Math.PI?this.animateScrolling(t,e,0):(this.elementRef.nativeElement[t]=n,r=this.elementRef.nativeElement[t],o=u,this.animation=window.requestAnimationFrame(c)))};window.requestAnimationFrame(c)}}else this.elementRef.nativeElement[t]=e}};return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.R0b),s.Y36(s.aQg),s.Y36(s.SBq),s.Y36(s.Lbi),s.Y36(ni,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[s.TTD]}),t=(0,te.gn)([(0,te.fM)(3,(0,s.tBr)(s.Lbi)),(0,te.fM)(4,(0,s.FiY)()),(0,te.fM)(4,(0,s.tBr)(ni))],t),t})(),ui=(()=>{let t=class{constructor(t,e,i){this.zone=t,this.cdRef=e,this.platformId=i,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new ee.xQ,this.stateUpdate=new ee.xQ,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new s.vpe,this.psScrollX=new s.vpe,this.psScrollUp=new s.vpe,this.psScrollDown=new s.vpe,this.psScrollLeft=new s.vpe,this.psScrollRight=new s.vpe,this.psYReachEnd=new s.vpe,this.psYReachStart=new s.vpe,this.psXReachEnd=new s.vpe,this.psXReachStart=new s.vpe}ngOnInit(){(0,b.NF)(this.platformId)&&(this.stateUpdate.pipe((0,oe.R)(this.ngDestroy),(0,re.x)((t,e)=>t===e&&!this.stateTimeout)).subscribe(t=>{this.stateTimeout&&"undefined"!=typeof window&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===t||"y"===t?(this.interaction=!1,"x"===t?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===t&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===t||"right"===t?(this.states.left=!1,this.states.right=!1,this.states[t]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):"top"!==t&&"bottom"!==t||(this.states.top=!1,this.states.bottom=!1,this.states[t]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&"undefined"!=typeof window&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const t=this.directiveRef.elementRef.nativeElement;(0,ie.R)(t,"wheel").pipe((0,oe.R)(this.ngDestroy)).subscribe(t=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(t,t.deltaX,t.deltaY)}),(0,ie.R)(t,"touchmove").pipe((0,oe.R)(this.ngDestroy)).subscribe(t=>{if(!this.disabled&&this.autoPropagation){const e=t.touches[0].clientX,i=t.touches[0].clientY;this.checkPropagation(t,e-this.scrollPositionX,i-this.scrollPositionY),this.scrollPositionX=e,this.scrollPositionY=i}}),(0,ne.T)((0,ie.R)(t,"ps-scroll-x").pipe((0,ae.h)("x")),(0,ie.R)(t,"ps-scroll-y").pipe((0,ae.h)("y")),(0,ie.R)(t,"ps-x-reach-end").pipe((0,ae.h)("right")),(0,ie.R)(t,"ps-y-reach-end").pipe((0,ae.h)("bottom")),(0,ie.R)(t,"ps-x-reach-start").pipe((0,ae.h)("left")),(0,ie.R)(t,"ps-y-reach-start").pipe((0,ae.h)("top"))).pipe((0,oe.R)(this.ngDestroy)).subscribe(t=>{this.disabled||!this.autoPropagation&&!this.scrollIndicators||this.stateUpdate.next(t)})}}),window.setTimeout(()=>{ri.forEach(t=>{this.directiveRef&&(this.directiveRef[t]=this[t])})},0))}ngOnDestroy(){(0,b.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&"undefined"!=typeof window&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,b.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const t=this.directiveRef.elementRef.nativeElement;this.usePropagationX=t.classList.contains("ps--active-x"),this.usePropagationY=t.classList.contains("ps--active-y")}}checkPropagation(t,e,i){this.interaction=!0;const n=e<0?-1:1,s=i<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==n)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==s))&&(t.preventDefault(),t.stopPropagation()),e&&(this.scrollDirectionX=n),i&&(this.scrollDirectionY=s),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}};return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perfect-scrollbar"]],viewQuery:function(t,e){if(1&t&&s.Gf(ci,7),2&t){let t;s.iGM(t=s.CRH())&&(e.directiveRef=t.first)}},hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("ps-show-limits",e.autoPropagation)("ps-show-active",e.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:ii,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.YNc(3,ei,5,16,"div",2),s.qZA()),2&t&&(s.ekj("ps",e.usePSClass),s.Q6J("perfectScrollbar",e.config)("disabled",e.disabled),s.xp6(3),s.Q6J("ngIf",e.scrollIndicators))},directives:[ci,b.O5],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:-webkit-box;display:flex;flex-direction:column;height:auto;min-width:0;min-height:0;-webkit-box-direction:column;-webkit-box-orient:column}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:-webkit-box;display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-direction:inherit;-webkit-box-flex:1;-webkit-box-orient:inherit;-webkit-box-pack:inherit},perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important;-webkit-box-direction:row!important;-webkit-box-orient:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important;-webkit-box-direction:column!important;-webkit-box-orient:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{position:absolute;opacity:0;-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;-webkit-transition:width .2s linear,opacity .2s linear,background-color .2s linear;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;-webkit-transition:height .2s linear,opacity .2s linear,background-color .2s linear;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x,perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x,perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:-webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to bottom,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:-webkit-gradient(linear,left bottom,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to top,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to right,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:-webkit-gradient(linear,right top,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to left,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:-webkit-gradient(linear,left top,left bottom,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to bottom,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:-webkit-gradient(linear,left bottom,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to top,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:-webkit-gradient(linear,left top,right top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to right,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:-webkit-gradient(linear,right top,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to left,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show{opacity:1}",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ps{overflow:auto!important}}"],encapsulation:2}),t=(0,te.gn)([(0,te.fM)(2,(0,s.tBr)(s.Lbi))],t),t})(),li=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ez],b.ez]}),t})();var hi=i(17),di=i(11418);function pi(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"perun-web-apps-notification",2),s.NdJ("closeNotification",function(){const e=s.CHM(t).index;return s.oxw().removeNotification(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.Q6J("@flyInOut",void 0),s.xp6(1),s.Q6J("data",t)("newNotification",!0)}}const gi=function(t){return{top:t}};let fi=(()=>{class t{constructor(t,e){this.notificator=t,this.notificationStorageService=e,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(t=>{this.processNotification(t)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}processNotification(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(t){this.notifications.splice(t,1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.V6),s.Y36(c.SZ))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.getScreenSize(t)},!1,s.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,pi,2,3,"div",1),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(2,gi,e.getNotificatorTop())),s.xp6(1),s.Q6J("ngForOf",e.notifications))},directives:[b.PC,b.sg,di.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;bottom:0}}"],data:{animation:[hi.Pd]}}),t})();var mi=i(4253);function bi(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"perun-web-apps-notification",10),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("data",t)("inDialog",!0)}}function wi(t,e){if(1&t&&(s.TgZ(0,"div",6),s.TgZ(1,"cdk-virtual-scroll-viewport",7),s.YNc(2,bi,2,2,"div",8),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Q6J("cdkVirtualForOf",t.notifications)}}function _i(t,e){1&t&&(s.TgZ(0,"app-alert",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}let yi=(()=>{class t{constructor(t,e){this.dialogRef=t,this.notificationStorageService=e}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(p.so),s.Y36(c.SZ))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,wi,3,1,"div",1),s.YNc(4,_i,3,3,"app-alert",2),s.TgZ(5,"div",3),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.onClear()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",5),s.NdJ("click",function(){return e.onCancel()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),s.xp6(2),s.Q6J("ngIf",0!==e.notifications.length),s.xp6(1),s.Q6J("ngIf",0===e.notifications.length),s.xp6(3),s.hij(" ",s.lcZ(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),s.xp6(3),s.hij(" ",s.lcZ(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},directives:[p.uh,b.O5,p.H8,_.lW,mi.N7,mi.xd,mi.x0,di.c,y.w],pipes:[d.X$],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),t})();var Ai=i(41050),vi=i(66438);function Ti(t,e){1&t&&(s.TgZ(0,"div",11),s.TgZ(1,"span",12),s._uU(2," ~ \ud83d\uddf2\xa0 "),s.qZA(),s.TgZ(3,"span",13),s._uU(4," DEVEL "),s.qZA(),s.TgZ(5,"span",12),s._uU(6," \xa0\ud83d\uddf2 ~ "),s.qZA(),s.qZA())}const Ci=function(t){return{color:t}},Si=function(){return["/"]},Ei=function(t){return{padding:t}},ki=function(){return{height:"56px"}};let xi=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u){this.storeService=t,this.authService=e,this.authzResolverService=i,this.dialog=n,this.notificator=s,this.translateService=o,this.store=r,this.sanitizer=a,this.notificationStorageService=c,this.utilsService=u,this.logoutEnabled=!0,this.navTextColor=this.store.get("theme","nav_text_color"),this.iconColor=this.store.get("theme","nav_icon_color"),this.logoPadding=this.storeService.get("logo_padding"),this.isDevel=!1}ngOnInit(){this.isDevel=this.storeService.get("isDevel"),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.utilsService.getAppsConfig().subscribe(t=>{this.profileUrl=t.brands[0].newApps.profile?t.brands[0].newApps.profile:null})}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const t=(0,u.kZ)();t.width="520px",this.dialog.open(yi,t)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}reloadRoles(){this.authzResolverService.loadAuthorizationComponents().subscribe(()=>this.notificator.showSuccess(this.translateService.instant("NAV.RELOAD_ROLES_SUCCESS")))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.d6),s.Y36(c.e8),s.Y36(a.Ct),s.Y36(p.uw),s.Y36(c.V6),s.Y36(d.sK),s.Y36(c.d6),s.Y36(n.H7),s.Y36(c.SZ),s.Y36(a.FW))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-perun-nav-menu"]],inputs:{sideNav:"sideNav",principal:"principal"},decls:14,vars:34,consts:[["id","nav-menu-icons",3,"ngStyle"],["mat-icon-button","",1,"mr-2","mt-auto","mb-auto",3,"click"],[3,"ngStyle"],["queryParamsHandling","merge",3,"routerLink","ngStyle"],[1,"logo-container",3,"innerHTML","ngStyle"],["logoContainer",""],["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,"url","label","user","showReloadRoles","logoutEnabled","iconColor","textColor"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"button",1),s.NdJ("click",function(){return e.sideNav.toggle()}),s.TgZ(2,"mat-icon",2),s._uU(3," menu "),s.qZA(),s.qZA(),s.TgZ(4,"a",3),s._UZ(5,"div",4,5),s.qZA(),s.qZA(),s.YNc(7,Ti,7,0,"div",6),s.TgZ(8,"div",7),s.TgZ(9,"button",8),s.NdJ("click",function(){return e.showNotificationHistory()}),s.ALo(10,"translate"),s.TgZ(11,"mat-icon",9),s._uU(12),s.qZA(),s.qZA(),s._UZ(13,"perun-web-apps-header-menu",10),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(22,Ci,e.navTextColor)),s.xp6(2),s.Q6J("ngStyle",s.VKq(24,Ci,e.iconColor)),s.xp6(2),s.Q6J("routerLink",s.DdM(26,Si))("ngStyle",s.VKq(27,Ei,e.logoPadding)),s.xp6(1),s.Q6J("innerHTML",e.logo,s.oJD)("ngStyle",s.DdM(29,ki)),s.xp6(2),s.Q6J("ngIf",e.isDevel),s.xp6(1),s.Q6J("ngStyle",s.VKq(30,Ci,e.navTextColor)),s.xp6(1),s.Q6J("matTooltip",s.lcZ(10,20,"NAV.NOTIFICATIONS_TOOLTIP")),s.xp6(2),s.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),s.Q6J("ngStyle",s.VKq(32,Ci,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),s.xp6(1),s.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," "),s.xp6(1),s.Q6J("url",e.profileUrl)("label",e.profileLabel)("user",e.principal.user)("showReloadRoles",e.authzResolverService.isPerunAdmin())("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.navTextColor))},directives:[b.PC,_.lW,w.Hw,o.yS,b.O5,E.gM,Ai.k,vi.X],pipes:[d.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%] [_ngcontent-%COMP%]::slotted(svg){height:56px}#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}"]}),t})();var Ri=i(24081);const Ii={provide:St.TP,useExisting:(0,s.Gpc)(()=>c.yC),multi:!0};function Oi(t){return new Ct(t,"./assets/i18n/",".json")}function Pi(t){const e={basePath:t.get("api_url")};return new a.VK(e)}const Di=t=>()=>t.initialize(),Mi={suppressScrollX:!0};let Li=(()=>{class t{constructor(t,e){this.customIconService=t,this.translate=e,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(c.EB),s.LFG(d.sK))},t.\u0275mod=s.oAB({type:t,bootstrap:[vt.y]}),t.\u0275inj=s.cJS({providers:[Wt,{provide:s.ip1,useFactory:Di,multi:!0,deps:[Wt]},{provide:a.VK,useFactory:Pi,deps:[c.d6]},{provide:o.wN,useClass:Yt},c.EB,{provide:Vt,useClass:c.sM},c.yC,Ii,{provide:ni,useValue:Mi}],imports:[[Et.PW,n.b2,St.JF,Tt.m,kt,At,w.Ps,Xt,d.aw.forRoot({loader:{provide:d.Zw,useFactory:Oi,deps:[St.eN]}}),a.au,li,rt.ez,at]]}),t})();s.B6R(vt.y,[b.O5,w.Hw,fi,xi,b.PC,g.TM,g.JX,ui,Ri.V,g.Rh,o.lC,ut.$,_t],[]),(0,s.G48)(),n.q6().bootstrapModule(Li).catch(t=>console.error(t))},7423:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(61511),s=i(31572);let o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez]]}),t})()},13857:function(t,e,i){"use strict";i.d(e,{Rc:function(){return s},pI:function(){return o},Ng:function(){return r}});var n=i(31572);const s="GUI_CONFIG.PREF_PAGE_SIZE",o="GUI_CONFIG.PREF_PAGE_SIZE.";let r=(()=>{class t{constructor(){}getString(t){return localStorage.getItem(t)}getNumber(t){return parseInt(localStorage.getItem(t),10)}setNumber(t,e){localStorage.setItem(t,e.toString())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},60611:function(t,e,i){"use strict";i.d(e,{dB:function(){return o},CP:function(){return r},tw:function(){return a},nT:function(){return c},YF:function(){return u},gc:function(){return l},v1:function(){return h},AA:function(){return d},VR:function(){return p},uM:function(){return g},xx:function(){return f},H2:function(){return m},xt:function(){return b},dI:function(){return w},j1:function(){return _},Wv:function(){return y},qy:function(){return A},BV:function(){return v},qV:function(){return T},tY:function(){return C},Af:function(){return S},O7:function(){return E},gB:function(){return k},Hi:function(){return x},Jf:function(){return R},W1:function(){return I},rF:function(){return O},Aj:function(){return P},Ad:function(){return D},kZ:function(){return M},cL:function(){return L},RS:function(){return N},HC:function(){return z},KE:function(){return F},Sb:function(){return Z},_7:function(){return B},bf:function(){return q},rc:function(){return U},Cf:function(){return H},eq:function(){return j},NG:function(){return G},O9:function(){return Y},d7:function(){return V},vq:function(){return K},NL:function(){return J},kO:function(){return $},aL:function(){return Q},DR:function(){return W},uC:function(){return X},JO:function(){return tt},oK:function(){return et},Iz:function(){return it},It:function(){return nt},z6:function(){return st},iQ:function(){return ot},e5:function(){return rt},Bf:function(){return at},zp:function(){return ct},US:function(){return ut},gG:function(){return lt},$V:function(){return ht},S7:function(){return dt},zW:function(){return pt},CE:function(){return gt},Is:function(){return ft},M8:function(){return mt},g:function(){return bt}});var n=i(13857),s=i(31572);let o=(()=>{class t{constructor(t){this.guiConfigService=t}getTablePageSize(t){const e=this.guiConfigService.getNumber(n.pI+t);if(!isNaN(e))return e;const i=this.guiConfigService.getNumber(n.Rc);return isNaN(i)?10:i}setTablePageSize(t,e){this.guiConfigService.setNumber(n.pI+t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.Ng))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const r="0",a="1",c="2",u="3",l="4",h="5",d="6",p="7",g="8",f="9",m="10",b="11",w="12",_="13",y="14",A="15",v="16",T="17",C="18",S="19",E="20",k="21",x="22",R="23",I="24",O="25",P="26",D="27",M="28",L="29",N="30",z="31",F="32",Z="33",B="34",q="35",U="36",H="37",j="42",G="43",Y="44",V="45",K="46",J="47",$="48",Q="49",W="50",X="51",tt="52",et="53",it="54",nt="55",st="56",ot="57",rt="58",at="59",ct="62",ut="63",lt="64",ht="65",dt="66",pt="69",gt="71",ft="72",mt="75",bt="76"},17:function(t,e,i){"use strict";i.d(e,{Ji:function(){return a},Pd:function(){return o},BQ:function(){return s},Ly:function(){return r},GH:function(){return l},Ls:function(){return h},SG:function(){return u},es:function(){return c}});var n=i(10709);const s=(0,n.X$)("openClose",[(0,n.SB)("open",(0,n.oB)({overflow:"hidden"})),(0,n.SB)("closed",(0,n.oB)({height:"0px",overflow:"hidden"})),(0,n.eR)("open <=> closed",[(0,n.jt)(".3s ease-in")])]),o=(0,n.X$)("flyInOut",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)(".25s")]),(0,n.eR)(":leave",[(0,n.jt)(".5s",(0,n.oB)({transform:"translateX(100%)"}))])]),r=(0,n.X$)("rollInOut",[(0,n.eR)(":enter",[(0,n.oB)({height:"0px"}),(0,n.jt)(".25s")]),(0,n.eR)(":leave",[(0,n.jt)(".25s",(0,n.oB)({height:"0px"}))])]),a=(0,n.X$)("routeAnimations",[(0,n.eR)("* => *",[(0,n.oB)({position:"relative"}),(0,n.IO)(":enter",[(0,n.oB)({width:"100%",opacity:0})],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({position:"absolute",width:"100%",opacity:1}),(0,n.jt)("0.15s",(0,n.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,n.IO)(":enter",[(0,n.oB)({position:"absolute",width:"100%",opacity:0}),(0,n.jt)("0.15s",(0,n.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),c=(0,n.X$)("tagsOpenClose",[(0,n.SB)("open",(0,n.oB)({})),(0,n.SB)("closed",(0,n.oB)({width:"0px",height:"0px"})),(0,n.eR)("open <=> closed",[(0,n.jt)(".3s ease-in")])]),u=(0,n.X$)("switchAnimations",[(0,n.eR)("true => false",[(0,n.IO)(":enter, :leave",(0,n.oB)({})),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(-100%)"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)",position:"absolute"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,n.eR)("false => true",[(0,n.IO)(":enter, :leave",(0,n.oB)({})),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)",position:"absolute"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),l=(0,n.X$)("slideInOutLeft",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(-100%)",position:"relative"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(0%)"}))]),(0,n.eR)(":leave",[(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(-100%)"}))])]),h=(0,n.X$)("slideInOutRight",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(100%)",position:"fixed"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(0%)"}))]),(0,n.eR)(":leave",[(0,n.oB)({transform:"translateX(-100%)",position:"relative"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(100%)"}))])])},41939:function(t,e,i){"use strict";i.d(e,{Mw:function(){return N.M},Sx:function(){return W.S},Nj:function(){return $},ez:function(){return L},t$:function(){return Q}});var n=i(61511),s=i(29236),o=i(67033),r=i(48160),a=i(57629),c=i(58623),u=i(73005),l=i(67806),h=i(22727),d=i(43691),p=i(8055),g=i(15980),f=i(36922),m=i(66283),b=i(16073),w=i(80340),_=i(10033),y=i(88975),A=i(71522),v=i(22280),T=i(81391),C=i(91010),S=i(15812),E=i(54810),k=i(4786),x=i(30146),R=i(4253),I=i(84608),O=i(27613),P=i(31572);let D=(()=>{class t extends A.LF{format(t,e){return"input"===e?`${t.getDate().toString()}.${(t.getMonth()+1).toString()}.${t.getFullYear()}`:t.toDateString()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=P.n5z(t)))(i||t)}}(),t.\u0275prov=P.Yz7({token:t,factory:t.\u0275fac}),t})();const M={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 L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=P.oAB({type:t}),t.\u0275inj=P.cJS({providers:[{provide:A._A,useClass:D},{provide:A.sG,useValue:M}],imports:[[n.ez,s.p9,o.p0,b.u5,_.Hi,y._t,r.aw,a.Bz,c.JX,u.TU,l.Cq,h.r,d.Ps,p.Tx,g.ot,f.AV,m.lN,b.UX,w.c,A.si,v.d4,T.Iq,C.dp,S.FA,E.Fk,A.Ng,k.LD,x.Co,R.Cl,I.Is,O.Je]]}),t})();i(41186);var N=i(51556),z=(i(76021),i(84584),i(22230),i(33596),i(88884),i(11418),i(23888),i(33642)),F=i(88426),Z=i(39571),B=i(83787);function q(t,e){1&t&&(P.TgZ(0,"app-alert"),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function U(t,e){1&t&&(P.TgZ(0,"th",15),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))))}function H(t,e){if(1&t&&(P.TgZ(0,"td",16),P._uU(1),P.qZA()),2&t){const t=e.$implicit;P.xp6(1),P.Oqu(t.friendlyNameParameter)}}function j(t,e){1&t&&(P.TgZ(0,"th",15),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))))}function G(t,e){if(1&t&&(P.TgZ(0,"td",17),P._uU(1),P.qZA()),2&t){const t=e.$implicit;P.xp6(1),P.Oqu(t.value)}}function Y(t,e){1&t&&P._UZ(0,"th",15)}function V(t,e){if(1&t){const t=P.EpF();P.TgZ(0,"td",18),P.TgZ(1,"button",19),P.NdJ("click",function(){const e=P.CHM(t).$implicit;return P.oxw().changePassword(e.friendlyNameParameter)}),P._uU(2),P.ALo(3,"translate"),P.ALo(4,"customTranslate"),P.qZA(),P.qZA()}if(2&t){const t=e.$implicit,i=P.oxw();P.xp6(1),P.Q6J("disabled",!i.logins.includes(t)),P.xp6(1),P.Oqu(P.lcZ(3,2,P.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD")))}}function K(t,e){1&t&&P._UZ(0,"tr",20)}function J(t,e){1&t&&P._UZ(0,"tr",21)}let $=(()=>{class t{constructor(t,e){this.attributesManagerService=t,this.store=e,this.nameSpaces=[],this.logins=[],this.displayedColumns=["namespace","value","change"]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(t=>{const e=this.nameSpaces.map(t=>{const e=t.split(":");return e[e.length-1]});this.logins=t.filter(t=>e.includes(t.friendlyNameParameter)),this.dataSource=new o.by(t)})}changePassword(t){const e=this.store.get("pwd_reset_base_url");location.href=`${e}?login-namespace=${t}`}}return t.\u0275fac=function(e){return new(e||t)(P.Y36(z.H8),P.Y36(F.d6))},t.\u0275cmp=P.Xpm({type:t,selectors:[["perun-web-apps-password-reset"]],decls:20,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","change"],["mat-cell","",4,"matCellDef"],["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"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(t,e){1&t&&(P.TgZ(0,"h1",0),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA(),P.YNc(4,q,4,5,"app-alert",1),P.TgZ(5,"div",2),P.TgZ(6,"div",3),P.TgZ(7,"div",4),P.TgZ(8,"table",5),P.ynx(9,6),P.YNc(10,U,4,5,"th",7),P.YNc(11,H,2,1,"td",8),P.BQk(),P.ynx(12,9),P.YNc(13,j,4,5,"th",7),P.YNc(14,G,2,1,"td",10),P.BQk(),P.ynx(15,11),P.YNc(16,Y,1,0,"th",7),P.YNc(17,V,5,6,"td",12),P.BQk(),P.YNc(18,K,1,0,"tr",13),P.YNc(19,J,1,0,"tr",14),P.qZA(),P.qZA(),P.qZA(),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,5,P.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE"))),P.xp6(3),P.Q6J("ngIf",!e.logins.length),P.xp6(4),P.Q6J("dataSource",e.dataSource),P.xp6(10),P.Q6J("matHeaderRowDef",e.displayedColumns),P.xp6(1),P.Q6J("matRowDefColumns",e.displayedColumns))},directives:[n.O5,o.BZ,c.YE,o.w1,o.fO,o.Dz,o.as,o.nj,Z.w,o.ge,o.ev,g.lW,o.XQ,o.Gk],pipes:[r.X$,B.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}"]}),t})(),Q=(()=>{class t{constructor(t,e,i,n){this.router=t,this.route=e,this.location=i,this.forceRoute=n}ngOnInit(){"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(t=>{this.router.navigate([t.redirectTo])}):this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(P.Y36(a.F0),P.Y36(a.gz),P.Y36(n.Ye),P.Y36(F.xw))},t.\u0275cmp=P.Xpm({type:t,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t})();i(78364),i(11441),i(76198),i(43005);var W=i(30725);i(66438)},30725:function(t,e,i){"use strict";i.d(e,{S:function(){return r},Y:function(){return a}});var n=i(31572),s=(i(33642),i(48160)),o=i(44973);const r={};let a=(()=>{class t{constructor(t){this.translate=t,this.item=null,this.itemSelected=new n.vpe,this.nameFunction=t=>t===r?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):t.shortname,this.secondaryFunction=t=>t===r?"":t.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+t.id,this.searchFunction=t=>t===r?"":t.shortname+t.id}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.sK))},t.\u0275cmp=n.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(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.itemSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.items)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.secondaryFunction)("entity",e.item)("disableAutoSelect",!0)("selectPlaceholder",n.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",n.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[o.i],pipes:[s.X$],styles:[""]}),t})()},76021:function(t,e,i){"use strict";i.d(e,{u:function(){return h}});var n=i(31572),s=i(27613),o=i(61511),r=i(29236),a=i(16073),c=i(66283);function u(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",2),n.NdJ("change",function(){return n.CHM(t),n.oxw()._sendEventToParent()})("ngModelChange",function(e){return n.CHM(t),n.oxw().attribute.value=e}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("ngModel",t.attribute.value)}}function l(t,e){if(1&t&&(n.TgZ(0,"mat-label"),n._uU(1),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Oqu(t.attribute.value)}}let h=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.readonly||(this.readonly=(0,s.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,u,1,1,"mat-checkbox",0),n.YNc(2,l,2,1,"mat-label",1),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",!e.readonly),n.xp6(1),n.Q6J("ngIf",e.readonly))},directives:[o.O5,r.oG,a.JJ,a.On,c.hX],styles:[""]}),t})()},84584:function(t,e,i){"use strict";i.d(e,{H:function(){return C}});var n=i(31572),s=i(75842),o=i(88975),r=i(81954),a=i(27613),c=i(84608),u=i(10033),l=i(61511),h=i(43691),d=i(36922),p=i(15980),g=i(66283),f=i(80340);function m(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",9),n.NdJ("mousedown",function(){return n.CHM(t),n.oxw(2).dragDisabled=!1}),n._uU(1,"drag_indicator"),n.qZA()}}function b(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",10),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().edit(e)}),n._uU(1,"edit"),n.qZA()}}function w(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",11),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().remove(e)}),n._uU(1,"cancel"),n.qZA()}}function _(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-chip",4),n.NdJ("removed",function(){const e=n.CHM(t).$implicit,i=n.oxw();return i.remove(e),i._sendEventToParent()}),n.YNc(1,m,2,0,"mat-icon",5),n.TgZ(2,"div",6),n.NdJ("click",function(){const e=n.CHM(t).$implicit,i=n.oxw();return i.readonly&&void 0!==i.attribute.displayName&&i.showValue(e,i.attribute.displayName)}),n._uU(3),n.qZA(),n.YNc(4,b,2,0,"mat-icon",7),n.YNc(5,w,2,0,"mat-icon",8),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.Q6J("selectable",i.selectable)("cdkDragData",t)("removable",i.removable),n.xp6(1),n.Q6J("ngIf",i.removable),n.xp6(1),n.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),n.xp6(1),n.Oqu(t),n.xp6(1),n.Q6J("ngIf",i.removable),n.xp6(1),n.Q6J("ngIf",i.removable)}}function y(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function A(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function v(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div",12),n.TgZ(1,"span",13),n.TgZ(2,"button",14),n.NdJ("click",function(){return n.CHM(t),n.oxw().onShowChange()}),n.YNc(3,y,2,0,"mat-icon",15),n.YNc(4,A,2,0,"mat-icon",15),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("matTooltip",t.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.xp6(2),n.Q6J("ngIf",!t.showMore),n.xp6(1),n.Q6J("ngIf",t.showMore)}}function T(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-form-field",12),n.TgZ(1,"input",16),n.NdJ("matChipInputTokenEnd",function(e){return n.CHM(t),n.oxw().add(e)})("change",function(){return n.CHM(t),n.oxw()._sendEventToParent()}),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(),e=n.MAs(2);n.xp6(1),n.Q6J("matChipInputFor",e)("matChipInputSeparatorKeyCodes",t.separatorKeysCodes)("matChipInputAddOnBlur",t.addOnBlur)}}let C=(()=>{class t{constructor(t){this.dialog=t,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[s.K5,s.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new n.vpe,this.readonly=!1}ngOnInit(){this.removable=!(0,a.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,a.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(t){const e=t.input,i=t.value;(i||"").trim()&&(this.attribute.value.push(i.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),e&&(e.value=""),this.sendEventToParent.emit()}remove(t){const e=(0,a.kZ)();e.width="400px",e.data={name:t},this.dialog.open(r.Wr,e).afterClosed().subscribe(e=>{if(e){const e=this.attribute.value.indexOf(t);this.attribute.value.splice(e,1),this.values=Object.values(this.attribute.value),this.sendEventToParent.emit()}})}drop(t){this.dragDisabled=!0,(0,o.bA)(this.attribute.value,t.previousIndex,t.currentIndex),this.values=Object.values(this.attribute.value)}edit(t){const e=this.attribute.value.indexOf(t),i=(0,a.kZ)();i.width="600px",i.data={attribute:this.attribute,index:e},this.dialog.open(r.r2,i).afterClosed().subscribe(t=>{t&&(this.values=Object.values(this.attribute.value),this.sendEventToParent.emit())})}showValue(t,e){const i=(0,a.kZ)();i.width="350px",i.data={value:t,title:e},this.dialog.open(r.mk,i)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.uw))},t.\u0275cmp=n.Xpm({type:t,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",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-chip-list",0,1),n.NdJ("cdkDropListDropped",function(t){return e.drop(t),e._sendEventToParent()}),n.YNc(3,_,6,9,"mat-chip",2),n.YNc(4,v,5,4,"div",3),n.YNc(5,T,2,3,"mat-form-field",3),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.Q6J("cdkDropListDisabled",e.dragDisabled),n.xp6(2),n.Q6J("ngForOf",e.values.slice(0,e.itemsShown)),n.xp6(1),n.Q6J("ngIf",e.values.length>e.defaultItemsShown),n.xp6(1),n.Q6J("ngIf",!e.readonly))},directives:[u.qn,o.Wj,l.sg,l.O5,u.HS,o.Zt,h.Hw,d.gM,p.lW,g.KE,f.Nt,u.oH],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})()},22230:function(t,e,i){"use strict";i.d(e,{$:function(){return y}});var n=i(81954),s=i(27613),o=i(31572),r=i(84608),a=i(16073),c=i(61511),u=i(36922),l=i(66283),h=i(80340),d=i(15980),p=i(43691);function g(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",15),o.NdJ("click",function(){o.CHM(t);const e=o.oxw().index;return o.oxw().removeValue(e)}),o.TgZ(1,"mat-icon"),o._uU(2," indeterminate_check_box "),o.qZA(),o.qZA()}}function f(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",9),o.TgZ(1,"mat-form-field",10),o._UZ(2,"label",11),o.TgZ(3,"input",12),o.NdJ("click",function(){const e=o.CHM(t).index,i=o.oxw();return i.readonly&&i.attribute.displayName&&i.showValue(i.keys[e],i.attribute.displayName)})("ngModelChange",function(e){const i=o.CHM(t).index;return o.oxw().keys[i]=e}),o.qZA(),o.qZA(),o.TgZ(4,"mat-form-field",10),o._UZ(5,"label",11),o.TgZ(6,"input",13),o.NdJ("click",function(){const e=o.CHM(t).$implicit,i=o.oxw();return i.readonly&&void 0!==i.attribute.displayName&&i.showValue(e,i.attribute.displayName)})("ngModelChange",function(e){const i=o.CHM(t).index;return o.oxw().values[i]=e}),o.qZA(),o.qZA(),o.YNc(7,g,3,0,"button",14),o.qZA()}if(2&t){const t=e.index,i=o.oxw();o.xp6(1),o.s9C("appearance",i.readonly?"none":"standard"),o.xp6(1),o.hYB("for","",i.attribute.id,"-key-",t,""),o.xp6(1),o.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),o.hYB("id","",i.attribute.id,"-key-",t,""),o.MGl("name","key-",t,""),o.Q6J("ngModel",i.keys[t])("readonly",i.readonly),o.xp6(1),o.s9C("appearance",i.readonly?"none":"standard"),o.xp6(1),o.hYB("for","",i.attribute.id,"-value-",t,""),o.xp6(1),o.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),o.MGl("name","value-",t,""),o.hYB("id","",i.attribute.id,"-value-",t,""),o.Q6J("readonly",i.readonly)("ngModel",i.values[t]),o.xp6(1),o.Q6J("ngIf",!i.readonly)}}function m(t,e){1&t&&(o.TgZ(0,"mat-icon"),o._uU(1,"more_horiz"),o.qZA())}function b(t,e){1&t&&(o.TgZ(0,"mat-icon"),o._uU(1,"keyboard_arrow_up"),o.qZA())}function w(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",16),o.NdJ("click",function(){return o.CHM(t),o.oxw().onShowChange()}),o.YNc(1,m,2,0,"mat-icon",17),o.YNc(2,b,2,0,"mat-icon",17),o.qZA()}if(2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",!t.showMore),o.xp6(1),o.Q6J("ngIf",t.showMore)}}function _(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",18),o.NdJ("click",function(){return o.CHM(t),o.oxw().addValue()}),o.TgZ(1,"mat-icon"),o._uU(2," add_box "),o.qZA(),o.qZA()}}let y=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(void 0!==this.attribute.value){const t=this.attribute.value;for(const[e,i]of Object.entries(t))this.keys.push(e),this.values.push(i)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,s.Hm)(this.attribute))}customTrackBy(t){return t}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(t){this.keys.splice(t,1),this.values.splice(t,1)}updateAttribute(){const t={};for(let e=0;ee.defaultItemsShown),o.xp6(1),o.Q6J("ngIf",!e.readonly))},directives:[a._Y,a.JL,a.F,c.sg,u.gM,c.O5,l.KE,h.Nt,a.Fj,a.Q7,a.JJ,a.On,d.lW,p.Hw],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}"]}),t})()},33596:function(t,e,i){"use strict";i.d(e,{_:function(){return l}});var n=i(31572),s=i(27613),o=i(81954),r=i(84608),a=i(66283),c=i(80340),u=i(16073);let l=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,s.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t,e){const i=(0,s.kZ)();i.width="350px",i.data={value:t,title:e},this.dialog.open(o.mk,i)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.uw))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"input",1),n.NdJ("click",function(){return e.readonly&&void 0!==e.value&&e.showValue(e.value,e.attribute.displayName)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),n.qZA(),n.qZA()),2&t&&(n.s9C("appearance",e.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",e.readonly&&void 0!==e.value),n.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[a.KE,c.Nt,u.Fj,u.JJ,u.On],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})()},51556:function(t,e,i){"use strict";i.d(e,{M:function(){return v}});var n=i(31572),s=i(22230),o=i(61511),r=i(76021),a=i(84584),c=i(33596),u=i(27613),l=i(81954),h=i(84608),d=i(66283),p=i(80340),g=i(16073);let f=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.readonly||(this.readonly=(0,u.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t){const e=(0,u.kZ)();e.width="350px",e.data={value:t.value,title:t.displayName},this.dialog.open(l.mk,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(h.uw))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"input",1),n.NdJ("click",function(){return e.readonly&&void 0!==e.attribute.value&&e.showValue(e.attribute)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),n.qZA(),n.qZA()),2&t&&(n.s9C("appearance",e.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",e.readonly&&void 0!==e.attribute.value),n.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[d.KE,p.Nt,g.wV,g.Fj,g.JJ,g.On],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();const m=["map"];function b(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-boolean",3),n.NdJ("sendEventToParent",function(){return n.CHM(t),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function w(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-list",3),n.NdJ("sendEventToParent",function(){return n.CHM(t),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function _(t,e){if(1&t&&n._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function y(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-string",3),n.NdJ("sendEventToParent",function(){return n.CHM(t),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function A(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-integer",3),n.NdJ("sendEventToParent",function(){return n.CHM(t),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}let v=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent2=new n.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(t,e){if(1&t&&n.Gf(m,5),2&t){let t;n.iGM(t=n.CRH())&&(e.mapComponent=t.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(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,b,1,2,"perun-web-apps-attribute-value-boolean",0),n.YNc(2,w,1,2,"perun-web-apps-attribute-value-list",0),n.TgZ(3,"div",1),n.NdJ("click",function(){return e._sendEventToParent2()}),n.YNc(4,_,2,2,"perun-web-apps-attribute-value-map",2),n.qZA(),n.YNc(5,y,1,2,"perun-web-apps-attribute-value-string",0),n.YNc(6,A,1,2,"perun-web-apps-attribute-value-integer",0),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf","java.lang.Boolean"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.util.ArrayList"===e.attribute.type),n.xp6(2),n.Q6J("ngIf","java.util.LinkedHashMap"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.String"===e.attribute.type||"java.lang.LargeString"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.Integer"===e.attribute.type))},directives:[o.O5,r.u,a.H,s.$,c._,f],styles:[""]}),t})()},41186:function(t,e,i){"use strict";i.d(e,{p:function(){return O}});var n=i(31572),s=i(58623),o=i(67033),r=i(4230),a=i(51556),c=i(27613),u=i(88426),l=i(82819),h=i(61511),d=i(29236),p=i(36922),g=i(39571);let f=(()=>{class t{transform(t){return"virt"===t.namespace.split(":")[4]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"isVirtualAttribute",type:t,pure:!0}),t})();var m=i(48160);function b(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"th",15),n.TgZ(1,"mat-checkbox",16),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw();return e?i.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())("aria-label",t.checkboxLabel())}}function w(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",17),n.TgZ(1,"mat-checkbox",18),n.NdJ("click",function(t){return t.stopPropagation()})("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.selection.toggle(i):null}),n.ALo(2,"isVirtualAttribute"),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("checked",i.selection.isSelected(t))("disabled",n.lcZ(2,3,t)||!t.writable)("aria-label",i.checkboxLabel(t))}}function _(t,e){1&t&&(n.TgZ(0,"th",19),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")))}function y(t,e){if(1&t&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function A(t,e){1&t&&(n.TgZ(0,"th",19),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")))}function v(t,e){if(1&t&&(n.TgZ(0,"td",20),n.TgZ(1,"div",21),n._uU(2),n.qZA(),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.s9C("matTooltip",i.getAttributeFullName(t)),n.xp6(1),n.hij(" ",t.displayName," ")}}function T(t,e){1&t&&(n.TgZ(0,"th",15),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")))}function C(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",20),n.TgZ(1,"perun-web-apps-attribute-value",22),n.NdJ("sendEventToParent2",function(){const e=n.CHM(t).$implicit;return n.oxw().onValueChange(e)}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("attribute",t)("readonly",i.readonly||!t.writable)}}function S(t,e){1&t&&(n.TgZ(0,"th",19),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")))}function E(t,e){if(1&t&&(n.TgZ(0,"td",20),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.description)}}function k(t,e){1&t&&n._UZ(0,"tr",23)}function x(t,e){if(1&t&&(n._UZ(0,"tr",24),n.ALo(1,"translate")),2&t){const t=e.$implicit,i=n.oxw();n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),n.Q6J("matTooltipPosition","before")("matTooltipDisabled",t.writable||i.readonly)}}function R(t,e){1&t&&(n.TgZ(0,"app-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function I(t,e){1&t&&(n.TgZ(0,"app-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY"),"\n"))}let O=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.attributes=[],this.selection=new r.Ov(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.pageSize=10,this.page=new n.vpe,this.readonly=!1,this.hiddenColumns=[],this.pageSizeOptions=c.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new o.by((0,c.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"displayName":return t.displayName;case"description":return t.description;case"value":return JSON.stringify(t.value);default:return""}}exportData(t){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(t=>!this.hiddenColumns.includes(t)),this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,c.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,c.pR)(t,e,this.getDataForColumn,this),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.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.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"}updateMapAttributes(){for(const t of this.items.toArray())"java.util.LinkedHashMap"===t.attribute.type&&t.updateMapAttribute()}onValueChange(t){this.canBeSelected(t)&&this.selection.select(t)}canBeSelected(t){return!(0,c.Hm)(t)&&t.writable}getAttributeFullName(t){return`${t.namespace}:${t.friendlyName}`}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.x4),n.Y36(u.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(c.l9,7),n.Gf(a.M,5)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first),n.iGM(t=n.CRH())&&(e.items=t)}},inputs:{attributes:"attributes",selection:"selection",inDialog:"inDialog",filterValue:"filterValue",pageSize:"pageSize",readonly:"readonly",hiddenColumns:"hiddenColumns"},outputs:{page:"page"},features:[n.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["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",""],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,b,2,3,"th",4),n.YNc(5,w,3,5,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,_,3,3,"th",7),n.YNc(8,y,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,A,3,3,"th",7),n.YNc(11,v,3,2,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,T,3,3,"th",4),n.YNc(14,C,2,2,"td",9),n.BQk(),n.ynx(15,11),n.YNc(16,S,3,3,"th",7),n.YNc(17,E,2,1,"td",9),n.BQk(),n.YNc(18,k,1,0,"tr",12),n.YNc(19,x,2,5,"tr",13),n.qZA(),n.qZA(),n.qZA(),n.YNc(20,R,3,3,"app-alert",14),n.YNc(21,I,3,3,"app-alert",14)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(16),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.dataSource.data.length),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.data.length))},directives:[l.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,d.oG,o.ev,s.nU,p.gM,a.M,o.XQ,o.Gk,g.w],pipes:[f,m.X$],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),t})()},66297:function(t,e,i){"use strict";i.d(e,{W:function(){return h}});var n=i(88426),s=i(31572),o=i(61511),r=i(15980),a=i(36922),c=i(43691),u=i(48160);const l=function(t){return{color:t}};let h=(()=>{class t{constructor(t,e){this.location=t,this.storeService=e}ngOnInit(){this.backButtonColor=this.storeService.get("theme","backButtonColor")}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.Ye),s.Y36(n.d6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"button",0),s.NdJ("click",function(){return e.goBack()}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",1),s._uU(3,"arrow_right_alt"),s.qZA(),s.qZA()),2&t&&(s.s9C("matTooltip",s.lcZ(1,2,"Back")),s.Q6J("ngStyle",s.VKq(4,l,e.backButtonColor)))},directives:[r.lW,o.PC,a.gM,c.Hw],pipes:[u.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),t})()},43005:function(t,e,i){"use strict";i.d(e,{r:function(){return g}});var n=i(31572),s=i(16073),o=i(88426),r=i(66283),a=i(80340),c=i(61511),u=i(29236),l=i(37665),h=i(48160);function d(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",7),n.NdJ("change",function(){return n.CHM(t),n.oxw().emitAsSubGroup()})("ngModelChange",function(e){return n.CHM(t),n.oxw().asSubgroup=e}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("labelPosition","before")("ngModel",t.asSubgroup),n.xp6(1),n.hij(" ",n.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function p(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-group-search-select",8),n.NdJ("groupSelected",function(e){return n.CHM(t),n.oxw().emitParentGroup(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("disableAutoSelect",!0)("groups",t.voGroups)}}let g=(()=>{class t{constructor(t){this.store=t,this.parentGroup=null,this.voGroups=[],this.asSubgroup=!1,this.invalidNameMessage=this.store.get("groupNameErrorMessage"),this.secondaryRegex=this.store.get("groupNameSecondaryRegex"),this.nameChanged=new n.vpe,this.descriptionChanged=new n.vpe,this.parentGroupChanged=new n.vpe,this.asSubgroupChanged=new n.vpe}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new s.NI("",[s.kI.required,s.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),s.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new s.NI("",[s.kI.required,s.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(t=>"members"!==t.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(t){this.selectedParent=t,this.parentGroupChanged.emit(t)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.d6))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"mat-form-field",1),n.NdJ("keyup",function(){return e.emitName()}),n.TgZ(2,"label",2),n._UZ(3,"input",3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"mat-error"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.qZA(),n.TgZ(8,"mat-form-field",4),n.NdJ("keyup",function(){return e.emitDescription()}),n.TgZ(9,"label",2),n._UZ(10,"textarea",3),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"mat-error"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.qZA(),n.YNc(15,d,3,5,"mat-checkbox",5),n.YNc(16,p,1,2,"perun-web-apps-group-search-select",6),n.qZA()),2&t&&(n.xp6(3),n.s9C("placeholder",n.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),n.Q6J("formControl",e.nameControl),n.xp6(3),n.hij(" ",e.invalidNameMessage.length?e.invalidNameMessage:n.lcZ(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),n.xp6(4),n.s9C("placeholder",n.lcZ(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),n.Q6J("formControl",e.descriptionControl),n.xp6(3),n.hij(" ",n.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),n.xp6(2),n.Q6J("ngIf",e.isNotSubGroup),n.xp6(1),n.Q6J("ngIf",e.asSubgroup))},directives:[r.KE,a.Nt,s.Fj,s.Q7,s.JJ,s.oH,r.TO,c.O5,u.oG,s.On,l.h],pipes:[h.X$],styles:[""]}),t})()},51613:function(t,e,i){"use strict";i.d(e,{S:function(){return u}});var n=i(31572),s=i(66283),o=i(80340),r=i(15812),a=i(16073),c=i(48160);let u=(()=>{class t{constructor(){this.datePicker=new n.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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},outputs:{datePicker:"datePicker"},decls:16,vars:16,consts:[["appearance","standard",1,"space-right",3,"click"],["matInput","","readonly","",3,"matDatepicker","min","max","formControl","dateChange"],["matSuffix","",3,"for"],["datePickerStart",""],["appearance","standard",3,"click"],["datePickerEnd",""]],template:function(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-form-field",0),n.NdJ("click",function(){return n.CHM(t),n.MAs(7).open()}),n.TgZ(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"input",1),n.NdJ("dateChange",function(){return e.dateChange()}),n.qZA(),n._UZ(5,"mat-datepicker-toggle",2),n._UZ(6,"mat-datepicker",null,3),n.qZA(),n.TgZ(8,"mat-form-field",4),n.NdJ("click",function(){return n.CHM(t),n.MAs(15).open()}),n.TgZ(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"input",1),n.NdJ("dateChange",function(){return e.dateChange()}),n.qZA(),n._UZ(13,"mat-datepicker-toggle",2),n._UZ(14,"mat-datepicker",null,5),n.qZA()}if(2&t){const t=n.MAs(7),i=n.MAs(15);n.xp6(2),n.Oqu(n.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),n.xp6(2),n.Q6J("matDatepicker",t)("min",e.startMinDate)("max",e.startMaxDate)("formControl",e.startDate),n.xp6(1),n.Q6J("for",t),n.xp6(5),n.Oqu(n.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),n.xp6(2),n.Q6J("matDatepicker",i)("min",e.endMinDate)("max",e.endMaxDate)("formControl",e.endDate),n.xp6(1),n.Q6J("for",i)}},directives:[s.KE,s.hX,o.Nt,r.hl,a.Fj,a.JJ,a.oH,r.nW,s.R9,r.Mq],pipes:[c.X$],styles:[""]}),t})()},91058:function(t,e,i){"use strict";i.d(e,{P:function(){return d}});var n=i(31572),s=i(87254),o=i(79996),r=i(47701),a=i(98720),c=i(66283),u=i(80340),l=i(48160);const h=["groupFilterInput"];let d=(()=>{class t{constructor(){this.filter=new n.vpe}ngOnInit(){(0,s.R)(this.groupFilterInput.nativeElement,"keyup").pipe((0,o.U)(t=>t.target.value),(0,r.b)(500),(0,a.x)()).subscribe(t=>{this.filter.emit(t)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(t,e){if(1&t&&n.Gf(h,7),2&t){let t;n.iGM(t=n.CRH())&&(e.groupFilterInput=t.first)}},inputs:{placeholder:"placeholder"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-3"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n._UZ(1,"input",1,2),n.ALo(3,"translate"),n.qZA()),2&t&&(n.xp6(1),n.s9C("placeholder",n.lcZ(3,1,e.placeholder)))},directives:[c.KE,u.Nt],pipes:[l.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t})()},44973:function(t,e,i){"use strict";i.d(e,{i:function(){return w}});var n=i(31572),s=i(16073),o=i(66994),r=i(55959),a=i(25416),c=i(96577),u=i(66283),l=i(4786),h=i(71522),d=i(30146),p=i(61511),g=i(4253);const f=["scrollViewport"];function m(t,e){if(1&t&&(n.TgZ(0,"mat-option",7),n._uU(1),n.TgZ(2,"span",8),n._uU(3),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.Q6J("value",null==t.entitiesCtrl?null:t.entitiesCtrl.value),n.xp6(1),n.hij(" ",t.mainTextFunction(null==t.entitiesCtrl?null:t.entitiesCtrl.value)," "),n.xp6(2),n.Oqu(t.secondaryTextFunction(null==t.entitiesCtrl?null:t.entitiesCtrl.value))}}function b(t,e){if(1&t&&(n.TgZ(0,"mat-option",9),n._uU(1),n.TgZ(2,"span",8),n._uU(3),n.qZA(),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.Q6J("value",t),n.xp6(1),n.hij(" ",i.mainTextFunction(t)," "),n.xp6(2),n.Oqu(i.secondaryTextFunction(t))}}let w=(()=>{class t{constructor(t){this.cd=t,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.entitySelected=new n.vpe,this.entitiesCtrl=new s.NI,this.entityFilterCtrl=new s.NI,this.filteredEntities=new o.t(1),this.entitiesLen=0,this._onDestroy=new r.xQ,this.mainTextFunction=t=>(0,c.stringify)(t),this.secondaryTextFunction=t=>"#"+t.id}ngOnInit(){this.entitiesCtrl.valueChanges.subscribe(t=>this.entitySelected.emit(t)),this.disableAutoSelect||null!==this.entity||this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(t=>this.entitiesLen=t.length),this.entityFilterCtrl.valueChanges.pipe((0,a.R)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}ngOnChanges(t){t.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}filterEntites(){if(!this.entities)return;let t=this.entityFilterCtrl.value;if(!t)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();t=this.normalize(t),this.filteredEntities.next(this.entities.filter(e=>this.normalize(this.searchFunction(e)).indexOf(t)>=0)),this.cd.detectChanges()}normalize(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}getViewportHeight(){let t=48*this.entitiesLen;return t>192&&(t=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),t}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(t,e){if(1&t&&n.Gf(f,5),2&t){let t;n.iGM(t=n.CRH())&&(e.scrollViewport=t.first)}},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected"},features:[n.TTD],decls:9,vars:14,consts:[[1,"w-100"],[3,"placeholder","formControl","openedChange"],[3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"value",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"selected-options-bottom",3,"value"],[1,"text-muted","muted"],[3,"value"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"mat-select",1),n.NdJ("openedChange",function(){return e.openChange()}),n.TgZ(2,"mat-option"),n._UZ(3,"ngx-mat-select-search",2),n.qZA(),n.YNc(4,m,4,3,"mat-option",3),n.TgZ(5,"cdk-virtual-scroll-viewport",4,5),n.YNc(7,b,4,3,"mat-option",6),n.ALo(8,"async"),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.s9C("placeholder",e.selectPlaceholder),n.Q6J("formControl",e.entitiesCtrl),n.xp6(2),n.s9C("placeholderLabel",e.findPlaceholder),n.s9C("noEntriesFoundLabel",e.noEntriesText),n.Q6J("clearSearchInput",!1)("formControl",e.entityFilterCtrl),n.xp6(1),n.Q6J("ngIf",null==e.entitiesCtrl?null:e.entitiesCtrl.value),n.xp6(1),n.Udp("height",e.getViewportHeight(),"px"),n.Q6J("minBufferPx",240)("maxBufferPx",480),n.xp6(2),n.Q6J("cdkVirtualForOf",n.lcZ(8,12,e.filteredEntities)))},directives:[u.KE,l.gD,s.JJ,s.oH,h.ey,d.nu,p.O5,g.N7,g.xd,g.x0],pipes:[p.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}"]}),t})()},60007:function(t,e,i){"use strict";i.d(e,{X:function(){return J}});var n=i(31572),s=i(58623),o=i(67033),r=i(27613),a=i(88426),c=i(82819),u=i(61511),l=i(29236),h=i(72953),d=i(16073),p=i(36922),g=i(15980),f=i(43691);function m(t,e){if(1&t&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.hij(" ",t[i.paramName]," ")}}function b(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function w(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function _(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){return n.CHM(t),n.oxw().onShowChange()}),n.YNc(1,b,2,0,"mat-icon",8),n.YNc(2,w,2,0,"mat-icon",8),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",!t.showMore),n.xp6(1),n.Q6J("ngIf",t.showMore)}}let y=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[n.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(t,e){1&t&&(n.TgZ(0,"form",0),n.TgZ(1,"div",1),n.TgZ(2,"div",2),n.YNc(3,m,2,1,"div",3),n.qZA(),n.TgZ(4,"div"),n.TgZ(5,"span",4),n.YNc(6,_,3,2,"button",5),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.xp6(3),n.Q6J("ngForOf",e.objects.slice(0,e.itemsShown)),n.xp6(2),n.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.xp6(1),n.Q6J("ngIf",e.objects.length>e.defaultItemsShown))},directives:[d._Y,d.JL,d.F,u.sg,p.gM,u.O5,g.lW,f.Hw],styles:[""]}),t})();var A=i(84534),v=i(57629),T=i(39571),C=i(48160),S=i(48853);let E=(()=>{class t{transform(t,e,i){return t.filter(t=>t[i].includes(e)).filter((t,e,n)=>n.findIndex(e=>e[i]===t[i])===e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"filterUniqueObjects",type:t,pure:!0}),t})();function k(t,e){1&t&&n._UZ(0,"th",18)}function x(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",19),n.TgZ(1,"mat-checkbox",20),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function R(t,e){1&t&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")))}function I(t,e){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.facility.id)}}function O(t,e){1&t&&n._UZ(0,"th",18)}function P(t,e){if(1&t&&(n.TgZ(0,"td",22),n._UZ(1,"perun-web-apps-recently-viewed-icon",23),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("id",t.facility.id)("recentIds",i.recentIds)}}function D(t,e){1&t&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")))}function M(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.facility.name)}}function L(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")))}function N(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.facility.description)}}function z(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")))}function F(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.ALo(2,"technicalOwners"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t.owners))}}function Z(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")))}function B(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",22),n.TgZ(1,"perun-web-apps-object-list-values",24),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw().disableRouting=!0})("mouseleave",function(){return n.CHM(t),n.oxw().disableRouting=!1}),n.ALo(2,"filterUniqueObjects"),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("objects",n.Dn7(2,2,t.destinations,i.filterValue,"destination"))("paramName","destination")}}function q(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")))}function U(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",22),n.TgZ(1,"perun-web-apps-object-list-values",24),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw().disableRouting=!0})("mouseleave",function(){return n.CHM(t),n.oxw().disableRouting=!1}),n.ALo(2,"filterUniqueObjects"),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("objects",n.Dn7(2,2,t.hosts,i.filterValue,"hostname"))("paramName","hostname")}}function H(t,e){1&t&&n._UZ(0,"tr",25)}const j=function(t){return["/facilities",t]},G=function(){return[]};function Y(t,e){if(1&t&&n._UZ(0,"tr",26),2&t){const t=e.$implicit,i=n.oxw();n.Q6J("perunWebAppsMiddleClickRouterLink",n.VKq(2,j,t.facility.id))("routerLink",i.disableRouting?n.DdM(4,G):n.VKq(5,j,t.facility.id))}}function V(t,e){1&t&&(n.TgZ(0,"app-alert",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function K(t,e){1&t&&(n.TgZ(0,"app-alert",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let J=(()=>{class t{constructor(t){this.authResolver=t,this.pageSize=10,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=r.f7,this.page=new n.vpe}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource()}getDataForColumn(t,e,i){switch(e){case"id":return t.facility.id.toString();case"name":return t.facility.name;case"description":return t.facility.description;case"technicalOwners":return(0,r.te)(t.owners);case"recent":return i.recentIds&&i.recentIds.indexOf(t.facility.id)>-1?"#".repeat(i.recentIds.indexOf(t.facility.id)):t.name;case"destinations":return t.destinations.map(t=>t.destination).join(" ; ");case"hosts":return t.hosts.map(t=>t.hostname).join(" ; ");default:return t[e]}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){null!=this.child&&this.child.paginator&&(this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this)),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(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.facility.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(r.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[n.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","technicalOwners"],["matColumnDef","destinations"],["matColumnDef","hosts"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,k,1,0,"th",4),n.YNc(5,x,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,R,3,3,"th",7),n.YNc(8,I,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,O,1,0,"th",4),n.YNc(11,P,2,2,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,D,3,3,"th",7),n.YNc(14,M,2,1,"td",9),n.BQk(),n.ynx(15,11),n.YNc(16,L,3,3,"th",4),n.YNc(17,N,2,1,"td",9),n.BQk(),n.ynx(18,12),n.YNc(19,z,3,3,"th",4),n.YNc(20,F,3,3,"td",9),n.BQk(),n.ynx(21,13),n.YNc(22,Z,3,3,"th",4),n.YNc(23,B,3,6,"td",9),n.BQk(),n.ynx(24,14),n.YNc(25,q,3,3,"th",4),n.YNc(26,U,3,6,"td",9),n.BQk(),n.YNc(27,H,1,0,"tr",15),n.YNc(28,Y,1,7,"tr",16),n.qZA(),n.qZA(),n.qZA(),n.YNc(29,V,3,3,"app-alert",17),n.YNc(30,K,3,3,"app-alert",17)),2&t&&(n.Q6J("hidden",!e.dataSource||0===e.dataSource.filteredData.length||0===e.facilities.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(25),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.facilities.length),n.xp6(1),n.Q6J("ngIf",0===e.facilities.length))},directives:[c.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,u.O5,o.ge,o.ev,l.oG,s.nU,h.W,y,o.XQ,o.Gk,A.YH,v.rH,T.w],pipes:[C.X$,S.J,E],styles:["tr[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},54930:function(t,e,i){"use strict";i.d(e,{i:function(){return T}});var n=i(31572),s=i(88426),o=i(61511),r=i(15980),a=i(81391),c=i(36922),u=i(43691),l=i(8055),h=i(48160),d=i(44385),p=i(52984),g=i(51392);function f(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.ALo(2,"groupSyncToolTip"),n.TgZ(3,"button",6),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onSyncDetail()}),n.ALo(4,"groupSyncIcon"),n.TgZ(5,"mat-icon"),n.ALo(6,"groupSyncIconColor"),n._uU(7),n.ALo(8,"groupSyncIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("matTooltipPosition","above")("matTooltip",n.lcZ(1,7,n.lcZ(2,9,t.group))),n.xp6(3),n.Q6J("disabled","sync_disabled"===n.lcZ(4,11,t.group)),n.xp6(2),n.Tol(n.lcZ(6,13,t.group)),n.xp6(2),n.hij(" ",n.lcZ(8,15,t.group)," ")}}function m(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.TgZ(2,"button",6),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onMoveGroup()}),n.TgZ(3,"mat-icon"),n._uU(4,"arrow_right_alt"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),n.Q6J("matTooltipPosition","above"),n.xp6(2),n.Q6J("disabled",t.disabled)}}function b(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.TgZ(2,"button",6),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onChangeNameDescription()}),n.TgZ(3,"mat-icon"),n._uU(4,"text_format"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),n.Q6J("matTooltipPosition","above"),n.xp6(2),n.Q6J("disabled",t.disabled)}}function w(t,e){if(1&t&&(n.TgZ(0,"div",2),n.TgZ(1,"button",3),n.ALo(2,"translate"),n.TgZ(3,"mat-icon"),n._uU(4," file_copy "),n.qZA(),n.qZA(),n.YNc(5,f,9,17,"span",4),n.YNc(6,m,5,5,"span",4),n.YNc(7,b,5,5,"span",4),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.Q6J("cdkCopyToClipboard",t.group.name)("matTooltipPosition","above"),n.xp6(4),n.Q6J("ngIf",t.syncAuth),n.xp6(1),n.Q6J("ngIf",t.moveAuth),n.xp6(1),n.Q6J("ngIf",t.editAuth)}}function _(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onSyncDetail()}),n.ALo(1,"groupSyncIcon"),n.TgZ(2,"mat-icon"),n.ALo(3,"groupSyncIconColor"),n._uU(4),n.ALo(5,"groupSyncIcon"),n.qZA(),n.TgZ(6,"span"),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"groupSyncToolTip"),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("disabled","sync_disabled"===n.lcZ(1,6,t.group)),n.xp6(2),n.Tol(n.lcZ(3,8,t.group)),n.xp6(2),n.hij(" ",n.lcZ(5,10,t.group)," "),n.xp6(3),n.Oqu(n.lcZ(8,12,n.lcZ(9,14,t.group)))}}function y(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onMoveGroup()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_right_alt"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("disabled",t.disabled),n.xp6(4),n.Oqu(n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function A(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onChangeNameDescription()}),n.TgZ(1,"mat-icon"),n._uU(2,"text_format"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("disabled",t.disabled),n.xp6(4),n.Oqu(n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function v(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"button",7),n.TgZ(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA(),n.qZA(),n.TgZ(4,"mat-menu",null,8),n.TgZ(6,"button",9),n.TgZ(7,"mat-icon"),n._uU(8," file_copy "),n.qZA(),n.TgZ(9,"span"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.qZA(),n.YNc(12,_,10,16,"button",10),n.YNc(13,y,6,4,"button",10),n.YNc(14,A,6,4,"button",10),n.qZA(),n.qZA()),2&t){const t=n.MAs(5),e=n.oxw();n.xp6(1),n.Q6J("mat-menu-trigger-for",t),n.xp6(5),n.Q6J("cdkCopyToClipboard",e.group.name),n.xp6(4),n.Oqu(n.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.xp6(2),n.Q6J("ngIf",e.syncAuth),n.xp6(1),n.Q6J("ngIf",e.moveAuth),n.xp6(1),n.Q6J("ngIf",e.editAuth)}}let T=(()=>{class t{constructor(t){this.authResolver=t,this.disabled=!1,this.moveGroup=new n.vpe,this.syncGroup=new n.vpe,this.changeNameDescription=new n.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 t.\u0275fac=function(e){return new(e||t)(n.Y36(s.x4))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.YNc(0,w,8,8,"div",0),n.YNc(1,v,15,8,"div",1)),2&t&&(n.Q6J("ngIf",e.displayButtons),n.xp6(1),n.Q6J("ngIf",!e.displayButtons))},directives:[o.O5,r.lW,a.i3,c.gM,u.Hw,l.p6,l.VK,l.OP],pipes:[h.X$,d.r,p.J,g.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),t})()},68529:function(t,e,i){"use strict";i.d(e,{x:function(){return x}});var n=i(31572),s=i(27613),o=i(84608),r=i(33642),a=i(61511),c=i(67806),u=i(54810),l=i(16073),h=i(15980),d=i(48160);function p(t,e){1&t&&n._UZ(0,"mat-spinner",4)}function g(t,e){1&t&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function f(t,e){1&t&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function m(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-radio-group",12),n.NdJ("ngModelChange",function(e){return n.CHM(t),n.oxw(2).asyncValidation=e}),n.TgZ(1,"span",13),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-radio-button",14),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"mat-radio-button",14),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("ngModel",t.asyncValidation),n.xp6(2),n.hij(" ",n.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE"),": "),n.xp6(2),n.Q6J("value",!1),n.xp6(1),n.hij(" ",n.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),n.xp6(2),n.Q6J("value",!0),n.xp6(1),n.hij(" ",n.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function b(t,e){1&t&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function w(t,e){1&t&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function _(t,e){if(1&t&&(n.TgZ(0,"div",5),n.TgZ(1,"p",6),n._uU(2),n.TgZ(3,"span",7),n._uU(4),n.qZA(),n._uU(5),n.TgZ(6,"span",7),n._uU(7),n.qZA(),n.qZA(),n.TgZ(8,"p"),n.TgZ(9,"strong",8),n._uU(10),n.ALo(11,"translate"),n.qZA(),n._uU(12),n.qZA(),n.TgZ(13,"p"),n.TgZ(14,"strong",8),n._uU(15),n.ALo(16,"translate"),n.qZA(),n._uU(17),n.qZA(),n.YNc(18,g,3,3,"span",9),n.YNc(19,f,3,3,"span",9),n.YNc(20,m,10,12,"mat-radio-group",10),n.YNc(21,b,3,3,"span",9),n.YNc(22,w,3,3,"span",9),n.qZA()),2&t){const t=n.oxw();n.xp6(2),n.hij(" ",t.group.name," "),n.xp6(2),n.hij("#",t.group.id,""),n.xp6(1),n.hij(" - ",t.resource.name," "),n.xp6(2),n.hij("#",t.resource.id,""),n.xp6(3),n.hij("",n.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT"),":"),n.xp6(2),n.hij(" ",t.status," "),n.xp6(3),n.hij("",n.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW"),":"),n.xp6(2),n.hij(" ",t.getReversedStatus()," "),n.xp6(1),n.Q6J("ngIf","INACTIVE"===t.status),n.xp6(1),n.Q6J("ngIf","ACTIVE"===t.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===t.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===t.status&&!1===t.asyncValidation),n.xp6(1),n.Q6J("ngIf","INACTIVE"===t.status&&!0===t.asyncValidation)}}function y(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div",15),n.TgZ(1,"button",16),n.NdJ("click",function(){return n.CHM(t),n.oxw().onCancel()}),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"button",17),n.NdJ("click",function(){return n.CHM(t),n.oxw().onSubmit()}),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),n.xp6(2),n.Q6J("disabled",t.loading),n.xp6(1),n.hij(" ",n.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SUBMIT")," ")}}let A=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.resourceService=i,this.groupService=n,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(t=>{this.resource=t,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 t.\u0275fac=function(e){return new(e||t)(n.Y36(o.so),n.Y36(o.WI),n.Y36(r.xk),n.Y36(r.ff))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,p,1,0,"mat-spinner",1),n.YNc(5,_,23,17,"div",2),n.YNc(6,y,7,7,"div",3),n.qZA()),2&t&&(n.Tol(e.theme),n.xp6(2),n.Oqu(n.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")),n.xp6(2),n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",!e.loading),n.xp6(1),n.Q6J("ngIf",!e.loading))},directives:[o.uh,a.O5,c.$g,o.xY,u.VQ,l.JJ,l.On,u.U0,o.H8,h.lW],pipes:[d.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),t})();var v=i(36922),T=i(43691);function C(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){return n.CHM(t),n.oxw().changeStatus()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3,"check_circle_outline"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function S(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){return n.CHM(t),n.oxw().changeStatus()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",5),n._uU(3,"block"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function E(t,e){if(1&t&&(n.TgZ(0,"span",6),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",7),n._uU(3,"report"),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.hYB("matTooltip","",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",t.failureCause,"")}}function k(t,e){1&t&&(n.TgZ(0,"span",6),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",8),n._uU(3,"autorenew"),n.qZA(),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let x=(()=>{class t{constructor(t){this.dialog=t,this.status="",this.statusChange=new n.vpe}changeStatus(){const t=(0,s.kZ)();t.width="500px",t.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(A,t).afterClosed().subscribe(t=>{t&&this.statusChange.emit()})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.uw))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],["matTooltipPosition","above",3,"matTooltip"],[1,"red"],[1,"black"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.YNc(1,C,4,3,"span",1),n.YNc(2,S,4,3,"span",1),n.YNc(3,E,4,4,"span",2),n.YNc(4,k,4,3,"span",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf","ACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","FAILED"===e.status),n.xp6(1),n.Q6J("ngIf","PROCESSING"===e.status))},directives:[a.O5,v.gM,T.Hw],pipes:[d.X$],styles:[""]}),t})()},37665:function(t,e,i){"use strict";i.d(e,{h:function(){return a}});var n=i(31572),s=i(27613),o=i(44973),r=i(48160);let a=(()=>{class t{constructor(){this.groupSelected=new n.vpe,this.disableAutoSelect=!1,this.nameFunction=t=>t.name}ngOnInit(){this.groups=this.groups.sort(s.aC)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect",firstSelectedGroup:"firstSelectedGroup"},outputs:{groupSelected:"groupSelected"},decls:4,vars:14,consts:[[1,"long-input",3,"entities","entity","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){if(1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.groupSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t){let t;n.Q6J("entities",e.groups)("entity",null!==(t=e.firstSelectedGroup)&&void 0!==t?t:null)("disableAutoSelect",e.disableAutoSelect)("mainTextFunction",e.nameFunction)("searchFunction",e.nameFunction)("selectPlaceholder",n.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",n.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",n.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))}},directives:[o.i],pipes:[r.X$],styles:[""]}),t})()},78364:function(t,e,i){"use strict";i.d(e,{W:function(){return W}});var n=i(31572),s=i(58623),o=i(67033),r=i(4230),a=i(33642),c=i(27613),u=i(81954),l=i(88426),h=i(61511),d=i(84608),p=i(82819),g=i(29236),f=i(36922),m=i(72953),b=i(68529),w=i(15980),_=i(43691),y=i(54930),A=i(84534),v=i(57629),T=i(39571),C=i(48160),S=i(58506);let E=(()=>{class t{transform(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName);return e&&e.value?e.value:"Never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"groupExpiration",type:t,pure:!0}),t})();function k(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",22),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw(2);return e?i.masterToggle():null}),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function x(t,e){if(1&t&&(n.TgZ(0,"th",20),n.YNc(1,k,1,3,"mat-checkbox",21),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",!t.disableHeadCheckbox)}}function R(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",23),n.TgZ(1,"span",24),n.ALo(2,"translate"),n.TgZ(3,"mat-checkbox",25),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,i.getCheckboxTooltipMessage(t))),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!i.disableSelect(t)),n.xp6(2),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","members"===t.name&&i.disableMembers||i.disableSelect(t))}}function I(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")))}function O(t,e){if(1&t&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function P(t,e){1&t&&n._UZ(0,"th",20)}function D(t,e){if(1&t&&(n.TgZ(0,"td",27),n._UZ(1,"perun-web-apps-recently-viewed-icon",28),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("recentIds",i.recentIds)("id",t.id)}}function M(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Oqu(i.voNames.get(t.voId))}}function N(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.name)}}function F(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")))}function Z(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",29),n.TgZ(1,"perun-web-apps-group-resource-status",30),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw();return e.disabledRouting=e.disableRouting})("statusChange",function(){return n.CHM(t),n.oxw().refreshTable.emit()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("theme","resource-theme")("groupId",t.id)("resourceId",i.resourceId)("failureCause",t.failureCause)("status",t.status)}}function B(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")))}function q(t,e){if(1&t&&(n.TgZ(0,"td",29),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.description)}}function U(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")))}function H(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",32),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().changeExpiration(e)})("mouseenter",function(){return n.CHM(t),n.oxw(2).disabledRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw(2);return e.disabledRouting=e.disableRouting}),n.TgZ(1,"mat-icon"),n._uU(2,"edit"),n.qZA(),n.qZA()}}function j(t,e){if(1&t&&(n.TgZ(0,"td",29),n._uU(1),n.ALo(2,"parseDate"),n.ALo(3,"groupExpiration"),n.YNc(4,H,3,0,"button",31),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,2,n.lcZ(3,4,t))," "),n.xp6(3),n.Q6J("ngIf",i.canManageGroup(t))}}function G(t,e){1&t&&n._UZ(0,"th",20)}function Y(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"perun-web-apps-group-menu",33),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw();return e.disabledRouting=e.disableRouting})("moveGroup",function(){const e=n.CHM(t).$implicit;return n.oxw().onMoveGroup(e)})("changeNameDescription",function(){const e=n.CHM(t).$implicit;return n.oxw().onChangeNameDescription(e)})("syncGroup",function(){const e=n.CHM(t).$implicit;return n.oxw().onSyncDetail(e)}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("disabled","members"===t.name)("displayButtons",i.displayButtons)("group",t)}}function V(t,e){1&t&&n._UZ(0,"tr",34)}const K=function(t,e){return["/organizations",t,"groups",e]};function J(t,e){if(1&t&&n._UZ(0,"tr",35),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disableRouting&&!i.groupsToDisable.has(t.id))("disable-outline",i.disabledRouting||i.groupsToDisable.has(t.id)),n.Q6J("perunWebAppsMiddleClickRouterLink",i.disabledRouting||i.groupsToDisable.has(t.id)?null:n.WLB(6,K,t.voId,t.id))("routerLink",i.disabledRouting||i.groupsToDisable.has(t.id)?null:n.WLB(9,K,t.voId,t.id))}}function $(t,e){1&t&&(n.TgZ(0,"app-alert",36),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_GROUPS"),"\n"))}function Q(t,e){1&t&&(n.TgZ(0,"app-alert",36),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let W=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.authResolver=e,this.voService=i,this.tableCheckbox=s,this.displayButtons=window.innerWidth>800,this.theme="group-theme",this.moveGroup=new n.vpe,this.groups=[],this.selection=new r.Ov(!0,[]),this.hasMembersGroup=!1,this.displayedColumns=["select","id","recent","vo","name","status","description","expiration","menu"],this.groupsToDisable=new Set,this.pageSize=10,this.filter="",this.disableRouting=!1,this.pageSizeOptions=c.f7,this.recentIds=[],this.resourceId=null,this.page=new n.vpe,this.refreshTable=new n.vpe,this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.canBeSelected=t=>!("members"===t.name&&this.disableMembers||this.disableSelect(t))}set matSort(t){this.sort=t,this.setDataSource()}shouldHideButtons(){this.displayButtons=window.innerWidth>800}ngOnInit(){this.shouldHideButtons()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.disabledRouting=this.disableRouting,this.hasMembersGroup=this.checkIfHasMembersGroup(),this.updateVoNames(),this.dataSource=new o.by(this.groups),this.setDataSource(),this.authType&&(this.removeAuth=this.setAuth())}checkIfHasMembersGroup(){for(const t of this.groups)if("members"===t.name)return!0;return!1}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return i.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":{const e=(0,c.x2)(t);return(0,c.sG)(e)}case"recent":return"";case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}getSortDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return i.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":{const e=(0,c.x2)(t);return e&&"never"!==e.toLowerCase()?(0,h.p6)(e,"yyyy.MM.dd","en"):e}case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"status":return t.status;default:return t[e]}}exportData(t){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,c.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this,!0),this.dataSource.sortData=(t,e)=>(0,c.pR)(t,e,this.getSortDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.filter=this.filter,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.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.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.groupsToDisable.has(t.id)||this.isSynchronized(t))}ngAfterViewInit(){void 0===this.vo&&0!==this.groups.length&&(this.vo={id:this.groups[0].voId,beanName:"Vo"}),this.dataSource.paginator=this.child.paginator}onMoveGroup(t){this.moveGroup.emit(t)}onSyncDetail(t){const e=(0,c.kZ)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(u.Bp,e)}onChangeNameDescription(t){const e=(0,c.kZ)();e.data={theme:"group-theme",group:t,dialogType:u.Eg.GROUP},this.dialog.open(u.rd,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}setAuth(){return"group-subgroups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[e]),!0):"group-relations"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("removeGroupUnion_Group_Group_policy",[this.parentGroup,e]),!0):"vo-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,e]),!0):"member-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[e]),!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[this.vo,e]),!0):void 0}itemSelectionToggle(t){this.selection.toggle(t),this.removeAuth=this.setAuth()}isSynchronized(t){return!!t.attributes&&t.attributes.some(t=>"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString())}getCheckboxTooltipMessage(t){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":this.isSynchronized(t)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_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(t=>{this.voNames.set(t.id,t.name)})}))}changeExpiration(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName),i=(0,c.kZ)();i.width="400px",i.data={memberId:this.memberId,groupId:t.id,expirationAttr:e,mode:"group",status:this.memberGroupStatus},this.dialog.open(u.u3,i).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}canManageGroup(t){return this.authResolver.isThisGroupAdmin(t.id)||this.authResolver.isThisVoAdmin(t.voId)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(d.uw),n.Y36(l.x4),n.Y36(a.YF),n.Y36(l.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(c.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},hostBindings:function(t,e){1&t&&n.NdJ("resize",function(t){return e.shouldHideButtons(t)},!1,n.Jf7)},inputs:{theme:"theme",groups:"groups",selection:"selection",displayedColumns:"displayedColumns",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisable:"groupsToDisable",pageSize:"pageSize",filter:"filter",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",authType:"authType",memberId:"memberId",memberGroupStatus:"memberGroupStatus",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",resourceId:"resourceId"},outputs:{moveGroup:"moveGroup",page:"page",refreshTable:"refreshTable"},features:[n.TTD],decls:34,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","name"],["matColumnDef","status"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","resourceId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-icon-button","",3,"click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"click","mouseenter","mouseleave"],[3,"disabled","displayButtons","group","mouseenter","mouseleave","moveGroup","changeNameDescription","syncGroup"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,x,2,1,"th",4),n.YNc(5,R,4,8,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,I,3,3,"th",7),n.YNc(8,O,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,P,1,0,"th",4),n.YNc(11,D,2,2,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,M,3,3,"th",7),n.YNc(14,L,2,1,"td",5),n.BQk(),n.ynx(15,11),n.YNc(16,N,3,3,"th",7),n.YNc(17,z,2,1,"td",9),n.BQk(),n.ynx(18,12),n.YNc(19,F,3,3,"th",7),n.YNc(20,Z,2,5,"td",13),n.BQk(),n.ynx(21,14),n.YNc(22,B,3,3,"th",7),n.YNc(23,q,2,1,"td",13),n.BQk(),n.ynx(24,15),n.YNc(25,U,3,3,"th",7),n.YNc(26,j,5,6,"td",13),n.BQk(),n.ynx(27,16),n.YNc(28,G,1,0,"th",4),n.YNc(29,Y,2,3,"td",9),n.BQk(),n.YNc(30,V,1,0,"tr",17),n.YNc(31,J,1,12,"tr",18),n.qZA(),n.qZA(),n.qZA(),n.YNc(32,$,3,3,"app-alert",19),n.YNc(33,Q,3,3,"app-alert",19)),2&t&&(n.Q6J("hidden",0===e.groups.length||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(28),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.groups.length),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.groups.length))},directives:[p.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,g.oG,o.ev,f.gM,s.nU,m.W,b.x,w.lW,_.Hw,y.i,o.XQ,o.Gk,A.YH,v.rH,T.w],pipes:[C.X$,S.M,E],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})()},11441:function(t,e,i){"use strict";i.d(e,{I:function(){return O}});var n=i(31572),s=i(91010),o=i(71709),r=i(4230),a=i(14732),c=i(27613),u=i(81954),l=i(88426),h=i(84608),d=i(61511),p=i(4253),g=i(57629),f=i(15980),m=i(36922),b=i(54930),w=i(29236),_=i(43691),y=i(39571),A=i(48160);const v=["scrollViewport"];function T(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",19),n.NdJ("change",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).itemSelectionToggle(e)}),n.qZA()}if(2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.Q6J("disabled","members"===t.fullName)("checked",e.selection.isSelected(t))("indeterminate",e.descendantsPartiallySelected(t))}}function C(t,e){if(1&t&&(n.TgZ(0,"mat-icon",20),n._uU(1),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.hij(" ",e.treeControl.isExpanded(t)?"expand_more":"chevron_right"," ")}}function S(t,e){if(1&t&&(n.TgZ(0,"span",21),n._uU(1),n.qZA()),2&t){const t=n.oxw().$implicit;n.xp6(1),n.hij(" #",t.id," ")}}const E=function(t,e){return["/organizations",t,"groups",e]};function k(t,e){if(1&t){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",6),n.YNc(2,T,1,3,"mat-checkbox",7),n.TgZ(3,"a",8),n.TgZ(4,"button",9),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw(2).disableRouting=!0})("mouseleave",function(){return n.CHM(t),n.oxw(2).disableRouting=!1})("click",function(){const e=n.CHM(t).$implicit;return n.oxw(2).treeControl.toggle(e)}),n.YNc(5,C,2,1,"mat-icon",10),n.qZA(),n.TgZ(6,"div",11),n.TgZ(7,"span",12),n._uU(8),n.qZA(),n.YNc(9,S,2,1,"span",13),n.qZA(),n.TgZ(10,"div",14,15),n.TgZ(12,"span",16),n._uU(13),n.qZA(),n.qZA(),n.qZA(),n.TgZ(14,"div",17),n.TgZ(15,"perun-web-apps-group-menu",18),n.NdJ("moveGroup",function(){const e=n.CHM(t).$implicit;return n.oxw(2).onMoveGroup(e)})("syncGroup",function(){const e=n.CHM(t).$implicit;return n.oxw(2).onSyncDetail(e)})("changeNameDescription",function(){const e=n.CHM(t).$implicit;return n.oxw(2).onChangeNameDescription(e)}),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&t){const t=e.$implicit,i=n.oxw(2);n.xp6(1),n.Udp("padding-left",24*t.level+"px"),n.xp6(1),n.Q6J("ngIf",!i.hideCheckbox),n.xp6(1),n.Q6J("routerLink",i.disableRouting?null:n.WLB(14,E,t.voId,t.id)),n.xp6(1),n.Q6J("disabled",!t.expandable),n.uIk("aria-label","toggle "+t.name),n.xp6(1),n.Q6J("ngIf",t.expandable),n.xp6(3),n.hij(" ",t.name," "),n.xp6(1),n.Q6J("ngIf",i.authResolver.isPerunAdminOrObserver()),n.xp6(3),n.s9C("matTooltip",t.description),n.xp6(1),n.hij(" ",t.description," "),n.xp6(2),n.Q6J("disabled","members"===t.fullName)("displayButtons",i.displayButtons)("group",t)}}const x=function(t){return{height:t}};function R(t,e){if(1&t&&(n.TgZ(0,"div",2),n.TgZ(1,"cdk-virtual-scroll-viewport",3,4),n.YNc(3,k,16,17,"ng-container",5),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",n.VKq(4,x,t.getTreeViewHeight())),n.xp6(2),n.Q6J("cdkVirtualForOf",t.dataSource)}}function I(t,e){1&t&&(n.TgZ(0,"app-alert",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let O=(()=>{class t{constructor(t,e,i){this.cd=t,this.dialog=e,this.authResolver=i,this.transformer=(t,e)=>({expandable:!!t.children&&t.children.length>0,name:t.shortName,fullName:t.name,parentGroupId:t.parentGroupId,level:e,id:t.id,voId:t.voId,attributes:t.attributes,beanName:t.beanName,description:t.description}),this.displayButtons=window.innerWidth>600,this.theme="group-theme",this.moveGroup=new n.vpe,this.refreshTable=new n.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new r.Ov(!0,[]),this.hideCheckbox=!1,this.treeControl=new o.C2(t=>t.level,t=>t.expandable),this.treeFlattener=new s.JZ(this.transformer,t=>t.level,t=>t.expandable,t=>t.children),this.dataSource=new s.kc(this.treeControl,this.treeFlattener),this.hasChild=(t,e)=>e.expandable,this.getLevel=t=>t.level}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(t=>{var e,i;return(null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes(this.filterValue.toLowerCase()))||(null===(i=t.description)||void 0===i?void 0:i.toLowerCase().includes(this.filterValue.toLowerCase()))||t.id.toString().includes(this.filterValue.toLowerCase())||t.uuid.toLowerCase().includes(this.filterValue.toLowerCase())});for(const t of this.filteredGroups)t.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,c.oU)(t.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(t){const e=(0,c.kZ)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(u.Bp,e)}onChangeNameDescription(t){const e=(0,c.kZ)();e.data={theme:"group-theme",group:t,dialogType:u.Eg.GROUP},this.dialog.open(u.rd,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}createGroupTrees(t){const e=new Map;for(const s of t)e.set(s.id,new a.m(s));const i=new Set;e.forEach((t,e,n)=>{const s=n.get(t.parentGroupId);void 0!==s&&(s.addChild(t),n.set(t.parentGroupId,s)),null!==t.parentGroupId&&void 0===s&&i.add(t.id)});const n=[];e.forEach(t=>{(null===t.parentGroupId||i.has(t.id))&&n.push(t)}),this.dataSource.data=n,this.cd.detectChanges()}getParentNode(t){const e=this.getLevel(t);if(e<1)return null;for(let i=this.treeControl.dataNodes.indexOf(t)-1;i>=0;i--){const t=this.treeControl.dataNodes[i];if(this.getLevel(t)this.selection.isSelected(t));e&&!i&&this.selection.deselect(t)}checkAllParentsSelection(t){let e=this.getParentNode(t);for(;e;)this.checkRootNodeSelection(e),e=this.getParentNode(e);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(t){return this.treeControl.getDescendants(t).some(t=>this.selection.isSelected(t))&&!this.selection.isSelected(t)}itemSelectionToggle(t){this.selection.toggle(t);const e=this.treeControl.getDescendants(t);this.selection.isSelected(t)?this.selection.select(...e):this.selection.deselect(...e),e.every(t=>this.selection.isSelected(t)),this.checkAllParentsSelection(t)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(t,e)=>t&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,e]):(t,e)=>t&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[e]),!0)}onMoveGroup(t){this.moveGroup.emit(t)}getTreeViewHeight(){let t=0;this.scrollViewport&&(t=this.scrollViewport.getDataLength());let e=48*t;return e>672&&(e=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),e+"px"}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO),n.Y36(h.uw),n.Y36(l.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(t,e){if(1&t&&n.Gf(v,5),2&t){let t;n.iGM(t=n.CRH())&&(e.scrollViewport=t.first)}},hostBindings:function(t,e){1&t&&n.NdJ("resize",function(t){return e.shouldHideButtons(t)},!1,n.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[n.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(t,e){1&t&&(n.YNc(0,R,4,6,"div",0),n.YNc(1,I,3,3,"app-alert",1)),2&t&&(n.Q6J("ngIf",0!==e.filteredGroups.length),n.xp6(1),n.Q6J("ngIf",0===e.filteredGroups.length))},directives:[d.O5,p.N7,p.xd,d.PC,p.x0,g.yS,f.lW,m.gM,b.i,w.oG,_.Hw,y.w],pipes:[A.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.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:rgba(0,0,0,.05)}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),t})()},66438:function(t,e,i){"use strict";i.d(e,{X:function(){return m}});var n=i(33642),s=i(88426),o=i(31572),r=i(48160),a=i(61511),c=i(8055),u=i(15980),l=i(43691),h=i(36922);const d=function(t){return{color:t}};function p(t,e){if(1&t&&(o.TgZ(0,"button",8),o.ALo(1,"translate"),o.TgZ(2,"mat-icon",4),o._uU(3," apps "),o.qZA(),o.qZA()),2&t){const t=o.oxw(),e=o.MAs(2);o.Q6J("matMenuTriggerFor",e)("matTooltip",o.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),o.xp6(2),o.Q6J("ngStyle",o.VKq(5,d,t.iconColor))}}function g(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",2),o.NdJ("click",function(){return o.CHM(t),o.oxw().reloadRoles()}),o._uU(1),o.ALo(2,"translate"),o.qZA()}2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"NAV.RELOAD_ROLES")," "))}function f(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",2),o.NdJ("click",function(){return o.CHM(t),o.oxw().onLogOut()}),o._uU(1),o.ALo(2,"translate"),o.qZA()}2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"NAV.LOGOUT")))}let m=(()=>{class t{constructor(t,e,i,n){this.authService=t,this.authzResolverService=e,this.notificator=i,this.translateService=n,this.showReloadRoles=!1}ngOnInit(){}redirectToUrl(){window.open(this.url,"_blank")}reloadRoles(){this.authzResolverService.loadAuthorizationComponents().subscribe(()=>this.notificator.showSuccess(this.translateService.instant("NAV.RELOAD_ROLES_SUCCESS")))}onLogOut(){this.authService.logout()}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(s.e8),o.Y36(n.Ct),o.Y36(s.V6),o.Y36(r.sK))},t.\u0275cmp=o.Xpm({type:t,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",showReloadRoles:"showReloadRoles",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:15,vars:16,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(t,e){if(1&t&&(o.YNc(0,p,4,7,"button",0),o.TgZ(1,"mat-menu",null,1),o.TgZ(3,"button",2),o.NdJ("click",function(){return e.redirectToUrl()}),o.TgZ(4,"span"),o._uU(5),o.qZA(),o.qZA(),o.qZA(),o.TgZ(6,"button",3),o.TgZ(7,"mat-icon",4),o._uU(8," person "),o.qZA(),o.TgZ(9,"span",5),o._uU(10),o.qZA(),o.qZA(),o.TgZ(11,"mat-menu",null,6),o.YNc(13,g,3,3,"button",7),o.YNc(14,f,3,3,"button",7),o.qZA()),2&t){const t=o.MAs(12);o.Q6J("ngIf",e.url),o.xp6(5),o.Oqu(e.label),o.xp6(1),o.Q6J("matMenuTriggerFor",t),o.xp6(1),o.Q6J("ngStyle",o.VKq(12,d,e.iconColor)),o.xp6(2),o.Q6J("ngStyle",o.VKq(14,d,e.textColor)),o.xp6(1),o.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," "),o.xp6(3),o.Q6J("ngIf",e.showReloadRoles),o.xp6(1),o.Q6J("ngIf",e.logoutEnabled)}},directives:[a.O5,c.VK,c.OP,u.lW,c.p6,l.Hw,a.PC,h.gM],pipes:[r.X$],styles:["@media (max-width:991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),t})()},19139:function(t,e,i){"use strict";i.d(e,{L:function(){return d}});var n=i(31572),s=i(16073),o=i(66283),r=i(61511),a=i(80340),c=i(84534),u=i(48160);function l(t,e){if(1&t&&(n._UZ(0,"input",3),n.ALo(1,"translate")),2&t){const t=n.oxw();n.s9C("placeholder",n.lcZ(1,2,t.placeholder)),n.Q6J("formControl",t.formControl)}}function h(t,e){if(1&t&&(n._UZ(0,"input",4),n.ALo(1,"translate")),2&t){const t=n.oxw();n.s9C("placeholder",n.lcZ(1,2,t.placeholder)),n.Q6J("formControl",t.formControl)}}let d=(()=>{class t{constructor(){this.filter=new n.vpe,this.autoFocus=!1,this.formControl=new s.NI}ngOnInit(){this.formControl.valueChanges.subscribe(t=>{let e=t.trim();e=e.toLowerCase(),this.filter.emit(e)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","ml-2"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.YNc(1,l,2,4,"input",1),n.YNc(2,h,2,4,"input",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",e.autoFocus),n.xp6(1),n.Q6J("ngIf",!e.autoFocus))},directives:[o.KE,r.O5,a.Nt,s.Fj,c.hT,s.JJ,s.oH],pipes:[u.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:auto!important}"]}),t})()},91779:function(t,e,i){"use strict";i.d(e,{m:function(){return X}});var n=i(31572),s=i(58623),o=i(27613),r=i(81954),a=i(88426),c=i(31906),u=i(66599),l=i(84608),h=i(82819),d=i(61511),p=i(67033),g=i(67806),f=i(29236),m=i(43691),b=i(36922),w=i(84534),_=i(57629),y=i(39571),A=i(48160),v=i(22196),T=i(74842),C=i(91322),S=i(37043),E=i(99197),k=i(63720),x=i(1157);function R(t,e){1&t&&(n.TgZ(0,"div",20),n._UZ(1,"mat-spinner",21),n.qZA())}function I(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"th",22),n.TgZ(1,"mat-checkbox",23),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw();return e?i.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function O(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",24),n.TgZ(1,"mat-checkbox",25),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function P(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ID")))}function D(t,e){if(1&t&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function M(t,e){1&t&&n._UZ(0,"th",26)}function L(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",29),n.NdJ("click",function(e){n.CHM(t);const i=n.oxw().$implicit;return n.oxw().viewMemberGroupTree(e,i)}),n.ALo(1,"translate"),n._uU(2,"transfer_within_a_station"),n.qZA()}2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function N(t,e){if(1&t&&(n.TgZ(0,"td",27),n.YNc(1,L,3,3,"mat-icon",28),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","DIRECT"!==t.membershipType)}}function z(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.NAME")))}function F(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t.user))}}function Z(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function B(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"i",30),n.NdJ("click",function(e){const i=n.CHM(t).$implicit;return n.oxw().changeStatus(e,i)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,t.status),""),n.s9C("matTooltip",n.xi3(3,7,t,!1)),n.xp6(4),n.hij(" ",n.lcZ(6,10,t.status)," ")}}function q(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function U(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"i",30),n.NdJ("click",function(e){const i=n.CHM(t).$implicit;return n.oxw().changeStatus(e,i)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,t.groupStatus),""),n.s9C("matTooltip",n.xi3(3,7,t,!0)),n.xp6(4),n.hij(" ",n.lcZ(6,10,t.groupStatus)," ")}}function H(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function j(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberOrganization"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function G(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function Y(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberEmail"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function V(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function K(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberLogins"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function J(t,e){1&t&&n._UZ(0,"tr",31)}const $=function(t,e){return["/organizations",t,"members",e]};function Q(t,e){if(1&t&&n._UZ(0,"tr",32),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",i.dataSource.routeAuth)("disable-outline",!i.dataSource.routeAuth),n.Q6J("perunWebAppsMiddleClickRouterLink",i.dataSource.routeAuth?n.WLB(6,$,t.voId,t.id):null)("routerLink",i.dataSource.routeAuth?n.WLB(9,$,t.voId,t.id):null)}}function W(t,e){1&t&&(n.TgZ(0,"app-alert",33),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.Q6J("alert_type","warn"),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let X=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.authResolver=e,this.tableCheckbox=i,this.dynamicPaginatingService=s,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.pageSize=10,this.selectedGroupStatuses=[],this.page=new n.vpe,this.exporting=!1,this.pageSizeOptions=o.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,c.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,u.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new a.Ct(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.pageSize,"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(t=>this.selection.select(t))}isAllSelected(){return this.selection.selected.length===this.pageSize}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(t,e){if(t.stopPropagation(),"INVALID"===e.status){const t=(0,o.kZ)();t.width="500px",t.data={member:e},this.dialog.open(r.pf,t).afterClosed().subscribe(t=>{t&&this.loadMembersPage()})}}loadMembersPage(){this.dataSource.loadMembers(this.voId,this.attrNames,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.child.paginator.pageIndex,this.child.paginator.pageSize,"fullName"===this.sort.active?"NAME":"ID",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}exportData(t){(0,o.O6)((0,o.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn,this),t)}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"fullName":return t.user?(0,o.bD)(t.user):"";case"status":return t.status;case"groupStatus":return t.groupStatus;case"organization":return(0,o.Gw)(t);case"email":return(0,o.g$)(t);case"logins":return(0,o.lt)(t);default:return""}}viewMemberGroupTree(t,e){t.stopPropagation();const i=(0,o.kZ)();i.width="800px",i.data={member:e,groupId:this.groupId},this.dialog.open(r.jd,i)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(l.uw),n.Y36(a.x4),n.Y36(a.UA),n.Y36(a.ly))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(o.l9,7),n.Gf(s.YE,5)),2&t){let t;n.iGM(t=n.CRH())&&(e.child=t.first),n.iGM(t=n.CRH())&&(e.sort=t.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",updateTable:"updateTable"},outputs:{page:"page"},features:[n.TTD],decls:37,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"matTooltip","click",4,"ngIf"],[3,"matTooltip","click"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.ALo(1,"async"),n.TgZ(2,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.YNc(3,R,2,0,"div",2),n.ALo(4,"async"),n.TgZ(5,"table",3),n.ynx(6,4),n.YNc(7,I,2,3,"th",5),n.YNc(8,O,2,2,"td",6),n.BQk(),n.ynx(9,7),n.YNc(10,P,3,3,"th",8),n.YNc(11,D,2,1,"td",6),n.BQk(),n.ynx(12,9),n.YNc(13,M,1,0,"th",8),n.YNc(14,N,2,1,"td",10),n.BQk(),n.ynx(15,11),n.YNc(16,z,3,3,"th",8),n.YNc(17,F,3,3,"td",10),n.BQk(),n.ynx(18,12),n.YNc(19,Z,3,3,"th",5),n.YNc(20,B,7,12,"td",10),n.BQk(),n.ynx(21,13),n.YNc(22,q,3,3,"th",5),n.YNc(23,U,7,12,"td",10),n.BQk(),n.ynx(24,14),n.YNc(25,H,3,3,"th",5),n.YNc(26,j,3,3,"td",10),n.BQk(),n.ynx(27,15),n.YNc(28,G,3,3,"th",5),n.YNc(29,Y,3,3,"td",10),n.BQk(),n.ynx(30,16),n.YNc(31,V,3,3,"th",5),n.YNc(32,K,3,3,"td",10),n.BQk(),n.YNc(33,J,1,0,"tr",17),n.YNc(34,Q,1,12,"tr",18),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,W,3,4,"app-alert",19),n.ALo(36,"async")),2&t&&(n.Q6J("hidden",0===e.dataSource.allMemberCount&&!1===n.lcZ(1,9,e.dataSource.loading$)),n.xp6(2),n.Q6J("dataLength",e.dataSource.allMemberCount)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("ngIf",n.lcZ(4,11,e.dataSource.loading$)),n.xp6(2),n.Q6J("dataSource",e.dataSource),n.xp6(28),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.allMemberCount&&!1===n.lcZ(36,13,e.dataSource.loading$)))},directives:[h.l,d.O5,p.BZ,s.YE,p.w1,p.fO,p.Dz,p.as,p.nj,g.$g,p.ge,f.oG,p.ev,s.nU,m.Hw,b.gM,p.XQ,p.Gk,w.YH,_.rH,y.w],pipes:[d.Ov,A.X$,v.d,T.u,C.i,S.f,E.M,k.D,x.p],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}"]}),t})()},4252:function(t,e,i){"use strict";i.d(e,{O:function(){return tt}});var n=i(31572),s=i(58623),o=i(67033),r=i(4230),a=i(27613),c=i(81954),u=i(88426),l=i(84608),h=i(57629),d=i(82819),p=i(61511),g=i(29236),f=i(36922),m=i(43691),b=i(84534),w=i(39571),_=i(48160),y=i(22196),A=i(74842),v=i(91322),T=i(37043),C=i(99197),S=i(63720),E=i(1157);function k(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"th",22),n.TgZ(1,"mat-checkbox",23),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw();return e?i.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function x(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",24),n.TgZ(1,"mat-checkbox",25),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),n.ALo(2,"translate"),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","DIRECT"!==t.membershipType)("matTooltip","DIRECT"!==t.membershipType?n.lcZ(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function R(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ID")))}function I(t,e){if(1&t&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function O(t,e){1&t&&n._UZ(0,"th",26)}function P(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",29),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().viewMemberGroupTree(e)})("mouseenter",function(){return n.CHM(t),n.oxw(2).disableRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw(2);return e.disableRouting=e.disabledRouting}),n.ALo(1,"translate"),n._uU(2,"transfer_within_a_station"),n.qZA()}2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function D(t,e){if(1&t&&(n.TgZ(0,"td",27),n.YNc(1,P,3,3,"mat-icon",28),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","DIRECT"!==t.membershipType)}}function M(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.NAME")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t.user))}}function N(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function z(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"i",30),n.NdJ("click",function(e){const i=n.CHM(t).$implicit;return n.oxw().changeStatus(e,i)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,t.status),""),n.s9C("matTooltip",n.xi3(3,7,t,!1)),n.xp6(4),n.hij(" ",n.lcZ(6,10,t.status)," ")}}function F(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function Z(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"i",30),n.NdJ("click",function(e){const i=n.CHM(t).$implicit;return n.oxw().changeStatus(e,i)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,t.groupStatus),""),n.s9C("matTooltip",n.xi3(3,7,t,!0)),n.xp6(4),n.hij(" ",n.lcZ(6,10,t.groupStatus)," ")}}function B(t,e){1&t&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")))}function q(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"check_circle_outline"),n.qZA())}function U(t,e){if(1&t&&(n.TgZ(0,"td",32),n.YNc(1,q,2,0,"mat-icon",33),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",t.sponsored)}}function H(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function j(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberOrganization"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function G(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function Y(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberEmail"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function V(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function K(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberLogins"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function J(t,e){1&t&&n._UZ(0,"tr",34)}const $=function(t,e){return["/organizations",t,"members",e]};function Q(t,e){if(1&t&&n._UZ(0,"tr",35),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disabledRouting)("disable-outline",i.disableRouting)("italic_font","DIRECT"!==t.membershipType),n.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.WLB(8,$,t.voId,t.id))("routerLink",i.disableRouting?null:n.WLB(11,$,t.voId,t.id))}}function W(t,e){1&t&&(n.TgZ(0,"app-alert",36),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.Q6J("alert_type","warn"),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function X(t,e){1&t&&(n.TgZ(0,"app-alert",36),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.Q6J("alert_type","warn"),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let tt=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.authResolver=e,this.tableCheckbox=i,this.route=s,this.selection=new r.Ov,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.pageSize=10,this.disableRouting=!1,this.filter="",this.page=new n.vpe,this.updateTable=new n.vpe,this.pageSizeOptions=a.f7,this.canBeSelected=t=>"DIRECT"===t.membershipType}set matSort(t){this.sort=t,this.setDataSource()}getSortDataForColumn(t,e,i){var n;switch(e){case"id":return t.id.toString();case"fullName":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return(0,a.Gw)(t);case"email":return(0,a.g$)(t);default:return""}}getFilterDataForColumn(t,e){switch(e){case"fullName":return t.user?(0,a.bD)(t.user):"";case"email":return(0,a.g$)(t);case"logins":return(0,a.lt)(t);default:return""}}getExportDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"fullName":return t.user?(0,a.bD)(t.user):"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return(0,a.Gw)(t);case"email":return(0,a.g$)(t);case"logins":return(0,a.lt)(t);default:return""}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns,this.getFilterDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getSortDataForColumn,this),this.dataSource.filter=this.filter,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new o.by(this.members),this.setDataSource(),this.disabledRouting=this.disableRouting,this.route.parent.params.subscribe(t=>{t.groupId&&(this.groupId=t.groupId)})}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.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.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,e){if(t.stopPropagation(),"INVALID"===e.status){const t=(0,a.kZ)();t.width="500px",t.data={member:e},this.dialog.open(c.pf,t).afterClosed().subscribe(t=>{t&&this.updateTable.emit(!0)})}}viewMemberGroupTree(t){const e=(0,a.kZ)();e.width="800px",e.data={member:t,groupId:this.groupId},this.dialog.open(c.jd,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(l.uw),n.Y36(u.x4),n.Y36(u.UA),n.Y36(h.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-members-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(a.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",filter:"filter"},outputs:{page:"page",updateTable:"updateTable"},features:[n.TTD],decls:37,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["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-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","italic_font","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["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-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,k,2,3,"th",4),n.YNc(5,x,3,6,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,R,3,3,"th",7),n.YNc(8,I,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,O,1,0,"th",7),n.YNc(11,D,2,1,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,M,3,3,"th",7),n.YNc(14,L,3,3,"td",9),n.BQk(),n.ynx(15,11),n.YNc(16,N,3,3,"th",7),n.YNc(17,z,7,12,"td",9),n.BQk(),n.ynx(18,12),n.YNc(19,F,3,3,"th",7),n.YNc(20,Z,7,12,"td",9),n.BQk(),n.ynx(21,13),n.YNc(22,B,3,3,"th",14),n.YNc(23,U,2,1,"td",15),n.BQk(),n.ynx(24,16),n.YNc(25,H,3,3,"th",7),n.YNc(26,j,3,3,"td",9),n.BQk(),n.ynx(27,17),n.YNc(28,G,3,3,"th",7),n.YNc(29,Y,3,3,"td",9),n.BQk(),n.ynx(30,18),n.YNc(31,V,3,3,"th",4),n.YNc(32,K,3,3,"td",9),n.BQk(),n.YNc(33,J,1,0,"tr",19),n.YNc(34,Q,1,14,"tr",20),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,W,3,4,"app-alert",21),n.YNc(36,X,3,4,"app-alert",21)),2&t&&(n.Q6J("hidden",0===e.members.length||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(31),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0!==e.members.length&&0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("ngIf",0===e.members.length))},directives:[d.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,p.O5,o.ge,g.oG,o.ev,f.gM,s.nU,m.Hw,o.XQ,o.Gk,b.YH,h.rH,w.w],pipes:[_.X$,y.d,A.u,v.i,T.f,C.M,S.D,E.p],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_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}.italic_font[_ngcontent-%COMP%]{font-style:italic}"]}),t})()},11418:function(t,e,i){"use strict";i.d(e,{c:function(){return p}});var n=i(31572),s=i(88426),o=i(27613),r=i(81954),a=i(84608),c=i(61511),u=i(43691),l=i(48160);function h(t,e){if(1&t&&(n.TgZ(0,"div",5),n.TgZ(1,"mat-icon"),n._uU(2),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.xp6(2),n.Oqu(t.data.icon)}}function d(t,e){if(1&t&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.hij(" ",t.showTimestamp()," ")}}let p=(()=>{class t{constructor(t,e){this.dialog=t,this.notificationStorageService=e,this.newNotification=!1,this.closeNotification=new n.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const t=(0,o.kZ)();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(r.FM,t).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,o.ys)(this.data.delay,()=>{this.alreadyClosed||this.waiting||this.closeSelf()})}showTimestamp(){const[t,e]=this.data.timeStamp.split(":");return e.length<2?t+":0"+e:this.data.timeStamp}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.uw),n.Y36(s.SZ))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"div",0),n.NdJ("click",function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()}),n.YNc(2,h,3,1,"div",1),n.TgZ(3,"div",2),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,d,2,1,"div",3),n.TgZ(7,"div",4),n.NdJ("click",function(){return e.waiting=!0,e.doAction()}),n._uU(8),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Gre("notification ",e.inDialog?"":"mat-elevation-z7",""),n.ekj("error","error"===e.data.type)("success","success"===e.data.type),n.xp6(2),n.Q6J("ngIf",null!==e.data.icon),n.xp6(2),n.hij(" ",n.lcZ(5,12,e.data.title)," "),n.xp6(2),n.Q6J("ngIf",e.inDialog),n.xp6(1),n.Q6J("hidden",e.alreadyPressed),n.xp6(1),n.hij(" ",e.data.actionText," "))},directives:[c.O5,u.Hw],pipes:[l.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}"]}),t})()},76198:function(t,e,i){"use strict";i.d(e,{$:function(){return k}});var n=i(31572),s=i(88426),o=i(33642),r=i(84608),a=i(48160),c=i(66283),u=i(80340),l=i(16073),h=i(61511),d=i(15980);function p(t,e){1&t&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let g=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.storeService=s,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(t=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)),this.dialogRef.close()})}getFullEmailBody(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(60306).i8}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.so),n.Y36(a.sK),n.Y36(s.V6),n.Y36(o.Hr),n.Y36(s.d6))},t.\u0275cmp=n.Xpm({type:t,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(t,e){if(1&t&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n.TgZ(4,"mat-form-field"),n.TgZ(5,"mat-label"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"input",2,3),n.NdJ("ngModelChange",function(t){return e.subject=t}),n.qZA(),n.YNc(10,p,3,3,"mat-error",4),n.qZA(),n.TgZ(11,"mat-form-field"),n.TgZ(12,"mat-label"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"textarea",5),n.NdJ("ngModelChange",function(t){return e.message=t}),n.ALo(16,"translate"),n._uU(17," "),n.qZA(),n.TgZ(18,"mat-hint"),n._uU(19),n.ALo(20,"translate"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(21,"div",6),n.TgZ(22,"div",7),n.TgZ(23,"button",8),n.NdJ("click",function(){return e.close()}),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.TgZ(26,"button",9),n.NdJ("click",function(){return e.sendBugReport()}),n._uU(27),n.ALo(28,"translate"),n.qZA(),n.qZA(),n.qZA()),2&t){const t=n.MAs(9);n.xp6(1),n.Oqu(n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),n.xp6(5),n.Oqu(n.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),n.xp6(2),n.Q6J("ngModel",e.subject),n.xp6(2),n.Q6J("ngIf",t.invalid),n.xp6(3),n.Oqu(n.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),n.xp6(2),n.s9C("placeholder",n.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),n.Q6J("ngModel",e.message),n.xp6(4),n.Oqu(n.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),n.xp6(5),n.hij(" ",n.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",t.invalid),n.xp6(1),n.hij(" ",n.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[r.uh,r.xY,c.KE,c.hX,u.Nt,l.Fj,l.Q7,l.JJ,l.On,h.O5,c.bx,r.H8,d.lW,c.TO],pipes:[a.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();var f=i(27613);let m=(()=>{class t{transform(t,e,i){return t[`${i}_${e}`]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"localisedText",type:t,pure:!0}),t})();const b=function(t){return{color:t}};function w(t,e){if(1&t&&(n.TgZ(0,"i",16),n._uU(1),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(3);n.Q6J("ngStyle",n.VKq(2,b,e.linksTextColor)),n.xp6(1),n.hij(" ",t.icon," ")}}function _(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",17),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(3).openDialog(e.dialog)}),n._uU(1),n.ALo(2,"localisedText"),n.qZA()}if(2&t){const t=n.oxw().$implicit,e=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,b,e.linksTextColor)),n.xp6(1),n.hij("",n.Dn7(2,2,t,e.language,"label")," ")}}function y(t,e){if(1&t&&(n.TgZ(0,"a",18),n._uU(1),n.ALo(2,"localisedText"),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(3);n.Q6J("href",t.link,n.LSH)("ngStyle",n.VKq(7,b,e.linksTextColor)),n.xp6(1),n.Oqu(n.Dn7(2,3,t,e.language,"label"))}}function A(t,e){if(1&t&&(n.TgZ(0,"span",19),n._uU(1),n.ALo(2,"localisedText"),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,b,e.linksTextColor)),n.xp6(1),n.Oqu(n.Dn7(2,2,t,e.language,"label"))}}function v(t,e){if(1&t&&(n.TgZ(0,"div",11),n.YNc(1,w,2,4,"i",12),n.YNc(2,_,3,8,"span",13),n.YNc(3,y,3,9,"a",14),n.YNc(4,A,3,8,"span",15),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",t.icon),n.xp6(1),n.Q6J("ngIf",t.dialog),n.xp6(1),n.Q6J("ngIf",t.link&&!t.dialog),n.xp6(1),n.Q6J("ngIf",!t.link&&!t.dialog)}}function T(t,e){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,v,5,4,"div",10),n.qZA()),2&t){const t=n.oxw().$implicit;n.xp6(1),n.Q6J("ngForOf",t.elements)}}function C(t,e){if(1&t&&(n.TgZ(0,"div",7),n.TgZ(1,"h6",8),n._uU(2),n.ALo(3,"localisedText"),n.qZA(),n.YNc(4,T,2,1,"div",9),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("ngStyle",n.VKq(7,b,i.headersTextColor)),n.xp6(1),n.hij(" ",n.Dn7(3,3,t,i.language,"title")," "),n.xp6(2),n.Q6J("ngIf",t.elements)}}function S(t,e){if(1&t&&(n.TgZ(0,"span"),n.TgZ(1,"a",6),n._uU(2),n.qZA(),n.qZA()),2&t){const t=e.$implicit,i=e.index,s=n.oxw();n.xp6(1),n.Q6J("href",t.url,n.LSH)("ngStyle",n.VKq(3,b,s.copyrightTextColor)),n.xp6(1),n.Oqu(i?", "+t.name:t.name)}}const E=function(t){return{background:t}};let k=(()=>{class t{constructor(t,e,i){this.storeService=t,this.translateService=e,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),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.footerHeight=new n.vpe}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{this.language=t.lang}),this.version=i(60306).i8,this.items=this.storeService.get("footer","columns"),this.copyrightItems=this.storeService.get("footer","copyright_items"),this.getHeight()}openDialog(t){const e=(0,f.kZ)();switch(t){case"reportIssue":e.width="550px",this.dialog.open(g,e)}}getHeight(){let t=1;for(const e of this.items)t=t{class t{constructor(){this.recentIds=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(t,e){1&t&&n.YNc(0,c,3,3,"mat-icon",0),2&t&&n.Q6J("ngIf",e.recentIds.indexOf(e.id)>-1)},directives:[s.O5,o.Hw,r.gM],pipes:[a.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),t})()},59403:function(t,e,i){"use strict";i.d(e,{t:function(){return c}});var n=i(31572),s=i(15980),o=i(36922),r=i(43691),a=i(48160);let c=(()=>{class t{constructor(){this.refresh=new n.vpe}onClickbutton(t){this.refresh.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&(n.TgZ(0,"button",0),n.NdJ("click",function(t){return e.onClickbutton(t)}),n.ALo(1,"translate"),n._UZ(2,"mat-icon",1),n.qZA()),2&t&&(n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),n.Q6J("disabled",e.disabled),n.xp6(2),n.s9C("svgIcon",e.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[s.lW,o.gM,r.Hw],pipes:[a.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}"]}),t})()},88884:function(t,e,i){"use strict";i.d(e,{C:function(){return H}});var n=i(31572),s=i(58623),o=i(67033),r=i(4230),a=i(27613),c=i(88426),u=i(82819),l=i(61511),h=i(29236),d=i(72953),p=i(68529),g=i(84534),f=i(57629),m=i(39571),b=i(48160);let w=(()=>{class t{transform(t){if(null==t)return null;let e="";return t.forEach(function(t){e=e.concat(t.tagName)}),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"resourceTagsToString",type:t,pure:!0}),t})();var _=i(95603);function y(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"th",20),n.TgZ(1,"mat-checkbox",21),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw();return e?i.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function A(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",22),n.TgZ(1,"mat-checkbox",23),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function v(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")))}function T(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function C(t,e){1&t&&n._UZ(0,"th",20)}function S(t,e){if(1&t&&(n.TgZ(0,"td",25),n._UZ(1,"perun-web-apps-recently-viewed-icon",26),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("recentIds",i.recentIds)("id",t.id)}}function E(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")))}function k(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.name)}}function x(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")))}function R(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.vo.name)}}function I(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")))}function O(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",25),n.TgZ(1,"perun-web-apps-group-resource-status",27),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw();return e.disabledRouting=e.disableRouting})("statusChange",function(){return n.CHM(t),n.oxw().refreshTable.emit()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("theme","group-theme")("resourceId",t.id)("groupId",i.groupId)("failureCause",t.failureCause)("status",t.status)}}function P(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")))}function D(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.facility.name)}}function M(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"resourceTagsToString"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t.resourceTags))}}function N(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.description)}}function F(t,e){1&t&&n._UZ(0,"tr",28)}const Z=function(t){return[t]};function B(t,e){if(1&t&&(n._UZ(0,"tr",29),n.ALo(1,"getResourceRoute"),n.ALo(2,"getResourceRoute")),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disabledRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",n.VKq(12,Z,i.disabledRouting?null:n.xi3(1,6,t,i.routingVo)))("routerLink",i.disabledRouting?null:n.xi3(2,9,t,i.routingVo))}}function q(t,e){1&t&&(n.TgZ(0,"app-alert",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function U(t,e){1&t&&(n.TgZ(0,"app-alert",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let H=(()=>{class t{constructor(t,e){this.guiAuthResolver=t,this.tableCheckbox=e,this.resources=[],this.selection=new r.Ov(!0,[]),this.pageSize=10,this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","name","vo","status","facility","tags","description"],this.pageSizeOptions=a.f7,this.groupId=null,this.page=new n.vpe,this.refreshTable=new n.vpe,this.allSelected=new n.vpe,this.removeAuth=!1,this.addAuth=!1}set matSort(t){this.sort=t,this.setDataSource()}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new o.by(this.resources),this.setDataSource(),this.dataSource.filter=this.filterValue,this.setAuth()}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return t.vo.name;case"name":return t.name;case"facility":return t.facility.name;case"description":return t.description;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"tags":{if(!t.resourceTags)return t[e];let i="";return t.resourceTags.forEach(function(t){i=i.concat(t.tagName)}),i}case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this,!0),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){const t=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource);return this.allSelected.emit(t),t}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1),this.setAuth()}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}setAuth(){const t=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((e,i)=>e&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",t.concat([i])),!0),this.addAuth=this.selection.selected.reduce((e,i)=>e&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",t.concat([i])),!0)}itemSelectionToggle(t){this.selection.toggle(t),this.setAuth()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.x4),n.Y36(c.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(a.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId"},outputs:{page:"page",refreshTable:"refreshTable",allSelected:"allSelected"},features:[n.TTD],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","status"],["matColumnDef","facility"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],[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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,y,2,3,"th",4),n.YNc(5,A,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,v,3,3,"th",7),n.YNc(8,T,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,C,1,0,"th",4),n.YNc(11,S,2,2,"td",10),n.BQk(),n.ynx(12,11),n.YNc(13,E,3,3,"th",7),n.YNc(14,k,2,1,"td",10),n.BQk(),n.ynx(15,12),n.YNc(16,x,3,3,"th",7),n.YNc(17,R,2,1,"td",10),n.BQk(),n.ynx(18,13),n.YNc(19,I,3,3,"th",7),n.YNc(20,O,2,5,"td",10),n.BQk(),n.ynx(21,14),n.YNc(22,P,3,3,"th",7),n.YNc(23,D,2,1,"td",10),n.BQk(),n.ynx(24,15),n.YNc(25,M,3,3,"th",7),n.YNc(26,L,3,3,"td",10),n.BQk(),n.ynx(27,16),n.YNc(28,N,3,3,"th",7),n.YNc(29,z,2,1,"td",10),n.BQk(),n.YNc(30,F,1,0,"tr",17),n.YNc(31,B,3,14,"tr",18),n.qZA(),n.qZA(),n.qZA(),n.YNc(32,q,3,3,"app-alert",19),n.YNc(33,U,3,3,"app-alert",19)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.resources.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(28),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.resources.length),n.xp6(1),n.Q6J("ngIf",0===e.resources.length))},directives:[u.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,s.nU,d.W,p.x,o.XQ,o.Gk,g.YH,f.rH,m.w],pipes:[b.X$,w,_.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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})()},23888:function(t,e,i){"use strict";i.d(e,{j:function(){return M}});var n=i(31572),s=i(4230),o=i(58623),r=i(67033),a=i(88426),c=i(27613),u=i(57629),l=i(82819),h=i(61511),d=i(29236),p=i(84534),g=i(39571),f=i(48160),m=i(83787);let b=(()=>{class t{transform(t){const e=t.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"getMailFromAttributes",type:t,pure:!0}),t})();function w(t,e){1&t&&n._UZ(0,"th",17)}function _(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",18),n.TgZ(1,"mat-checkbox",19),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function y(t,e){1&t&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))))}function A(t,e){if(1&t&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.userExtSource.id)}}function v(t,e){1&t&&(n.TgZ(0,"th",17),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))))}function T(t,e){if(1&t&&(n.TgZ(0,"td",21),n._uU(1),n.ALo(2,"getMailFromAttributes"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t.attributes))}}function C(t,e){if(1&t&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,t.extSourceNameHeader?t.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME")))}}function S(t,e){if(1&t&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.userExtSource.extSource.name)}}function E(t,e){if(1&t&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,t.loginHeader?t.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN")))}}function k(t,e){if(1&t&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.userExtSource.login)}}function x(t,e){1&t&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))))}function R(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.ALo(2,"date"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,t.userExtSource.lastAccess,"d.M.y H:mm:ss"))}}function I(t,e){1&t&&n._UZ(0,"tr",23)}const O=function(t,e){return["/admin","users",t,"identities",e]};function P(t,e){if(1&t&&n._UZ(0,"tr",24),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.WLB(6,O,i.userId,t.userExtSource.id))("routerLink",i.disableRouting?null:n.WLB(9,O,i.userId,t.userExtSource.id))}}function D(t,e){1&t&&(n.TgZ(0,"app-alert",25),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let M=(()=>{class t{constructor(t,e){this.route=t,this.authResolver=e,this.selection=new s.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSize=5,this.page=new n.vpe,this.pageSizeOptions=c.f7}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.disableRouting||this.route.parent.params.subscribe(t=>{this.userId=t.userId}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new r.by(this.userExtSources),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.userExtSource.id.toString();case"mail":{const e=t.attributes.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A"}case"extSourceName":return t.userExtSource.extSource.name;case"login":return t.userExtSource.login;case"lastAccess":return t.userExtSource.lastAccess.split(".")[0];default:return""}}exportData(t){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,c.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,c.pR)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(t){return`${this.selection.isSelected(t.userExtSource)?"deselect":"select"} row ${t.userExtSource.id+1}`}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.gz),n.Y36(a.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(c.l9,7),n.Gf(o.YE,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.child=t.first),n.iGM(t=n.CRH())&&(e.matSort=t.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",pageSize:"pageSize",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.TTD],decls:24,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["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",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,w,1,0,"th",4),n.YNc(5,_,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,y,4,5,"th",7),n.YNc(8,A,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,v,4,5,"th",4),n.YNc(11,T,3,3,"td",8),n.BQk(),n.ynx(12,10),n.YNc(13,C,4,5,"th",7),n.YNc(14,S,2,1,"td",8),n.BQk(),n.ynx(15,11),n.YNc(16,E,4,5,"th",7),n.YNc(17,k,2,1,"td",8),n.BQk(),n.ynx(18,12),n.YNc(19,x,4,5,"th",7),n.YNc(20,R,3,4,"td",13),n.BQk(),n.YNc(21,I,1,0,"tr",14),n.YNc(22,P,1,12,"tr",15),n.qZA(),n.qZA(),n.qZA(),n.YNc(23,D,4,5,"app-alert",16)),2&t&&(n.Q6J("hidden",0===e.userExtSources.length||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(19),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.userExtSources.length))},directives:[l.l,r.BZ,o.YE,r.w1,r.fO,r.Dz,r.as,r.nj,h.O5,r.ge,r.ev,d.oG,o.nU,r.XQ,r.Gk,p.YH,u.rH,g.w],pipes:[f.X$,m.a,b,h.uU],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t})()},7927:function(t,e,i){"use strict";i.d(e,{S:function(){return a}});var n=i(31572),s=i(27613),o=i(44973),r=i(48160);let a=(()=>{class t{constructor(){this.disableAutoSelect=!1,this.userSelected=new n.vpe,this.userFullNameFunction=s.bD}ngOnInit(){this.users=this.users.sort(s.fx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-user-search-select"]],inputs:{users:"users",disableAutoSelect:"disableAutoSelect"},outputs:{userSelected:"userSelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.userSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.users)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.userFullNameFunction)("mainTextFunction",e.userFullNameFunction)("selectPlaceholder",n.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",n.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",n.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},directives:[o.i],pipes:[r.X$],styles:[""]}),t})()},19386:function(t,e,i){"use strict";i.d(e,{M:function(){return r}});var n=i(31572),s=i(44973),o=i(48160);let r=(()=>{class t{constructor(){this.voSelected=new n.vpe,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.shortName,this.searchFunction=t=>t.name+t.shortName+t.id}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vos:"vos"},outputs:{voSelected:"voSelected"},decls:4,vars:13,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.voSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.vos)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",n.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",n.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",n.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},directives:[s.i],pipes:[o.X$],styles:[""]}),t})()},97162:function(t,e,i){"use strict";i.d(e,{Z:function(){return O}});var n=i(31572),s=i(58623),o=i(67033),r=i(27613),a=i(88426),c=i(82819),u=i(61511),l=i(29236),h=i(72953),d=i(84534),p=i(57629),g=i(39571),f=i(48160);function m(t,e){1&t&&n._UZ(0,"th",15)}function b(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",16),n.TgZ(1,"mat-checkbox",17),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function w(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")))}function _(t,e){if(1&t&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function y(t,e){1&t&&n._UZ(0,"th",15)}function A(t,e){if(1&t&&(n.TgZ(0,"td",19),n._UZ(1,"perun-web-apps-recently-viewed-icon",20),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("recentIds",i.recentIds)("id",t.id)}}function v(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")))}function T(t,e){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.shortName)}}function C(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")))}function S(t,e){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.name)}}function E(t,e){1&t&&n._UZ(0,"tr",21)}const k=function(t){return["/organizations",t]};function x(t,e){if(1&t&&n._UZ(0,"tr",22),2&t){const t=e.$implicit,i=n.oxw();n.ekj("disable-outline",i.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.VKq(4,k,t.id))("routerLink",i.disableRouting?null:n.VKq(6,k,t.id))}}function R(t,e){1&t&&(n.TgZ(0,"app-alert",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function I(t,e){1&t&&(n.TgZ(0,"app-alert",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let O=(()=>{class t{constructor(t){this.authResolver=t,this.vos=[],this.displayedColumns=[],this.pageSize=10,this.disableRouting=!1,this.pageSizeOptions=r.f7,this.page=new n.vpe}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new o.by(this.vos),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"shortName":return t.shortName;case"name":return t.name;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;default:return t[e]}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this),this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(t){return`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(r.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[n.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,m,1,0,"th",4),n.YNc(5,b,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,w,3,3,"th",7),n.YNc(8,_,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,y,1,0,"th",4),n.YNc(11,A,2,2,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,v,3,3,"th",7),n.YNc(14,T,2,1,"td",9),n.BQk(),n.ynx(15,11),n.YNc(16,C,3,3,"th",7),n.YNc(17,S,2,1,"td",9),n.BQk(),n.YNc(18,E,1,0,"tr",12),n.YNc(19,x,1,8,"tr",13),n.qZA(),n.qZA(),n.qZA(),n.YNc(20,R,3,3,"app-alert",14),n.YNc(21,I,3,3,"app-alert",14)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.vos.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(16),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.vos.length),n.xp6(1),n.Q6J("ngIf",0===e.vos.length))},directives:[c.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,u.O5,o.ge,o.ev,l.oG,s.nU,h.W,o.XQ,o.Gk,d.YH,p.rH,g.w],pipes:[f.X$],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}tr[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})()},81954:function(t,e,i){"use strict";i.d(e,{Wr:function(){return ut},r2:function(){return ct},gr:function(){return pt},u3:function(){return Vt},pf:function(){return w},hd:function(){return Xt},kZ:function(){return $t},wA:function(){return at},rd:function(){return I},Eg:function(){return R},Bp:function(){return F},qD:function(){return Ft},jd:function(){return Nt},FM:function(){return j},Lc:function(){return X},mk:function(){return it},Tf:function(){return yt}}),i(22280);var n=i(84608),s=i(33642),o=i(88426),r=i(31572),a=i(48160),c=i(61511),u=i(15980),l=i(67806),h=i(66283),d=i(4786),p=i(71522);function g(t,e){1&t&&r._UZ(0,"mat-spinner",6)}function f(t,e){if(1&t&&(r.TgZ(0,"mat-option",16),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.Oqu(t)}}function m(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-form-field",13),r.TgZ(1,"mat-label"),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"mat-select",14),r.NdJ("selectionChange",function(e){return r.CHM(t),r.oxw(2).changeStatus(e)}),r.YNc(5,f,2,2,"mat-option",15),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(2);r.xp6(2),r.Oqu(r.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),r.xp6(3),r.Q6J("ngForOf",t.allStatuses)}}function b(t,e){if(1&t&&(r.TgZ(0,"div",7),r.TgZ(1,"div",8),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"div",9),r._uU(5),r.qZA(),r.TgZ(6,"div",8),r._uU(7),r.ALo(8,"translate"),r.YNc(9,m,6,4,"mat-form-field",10),r.qZA(),r.TgZ(10,"div",11),r._UZ(11,"i",12),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.AsE("",r.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",t.actualStatus,""),r.xp6(3),r.Oqu(t.description),r.xp6(2),r.hij(" ",r.lcZ(8,8,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),r.xp6(2),r.Q6J("ngIf",!t.loading),r.xp6(2),r.Q6J("innerHTML",t.changeMessage,r.oJD)}}let w=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.memberManager=i,this.groupsManager=n,this.notificatorService=s,this.translate=o,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.allStatuses=this.data.groupId?"VALID"===this.actualStatus?["EXPIRED"]:["VALID"]:"INVALID"===this.actualStatus?["VALID","EXPIRED"]:this.allStatuses.filter(t=>t!==this.actualStatus),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.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(t){this.selectedStatus=t.value,this.submitButtonText="VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}changeStatusMessage(t,e){if("VALID"===t)switch(e){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(e){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=""}}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe(t=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(e=>{this.notificatorService.showSuccess(e),this.dialogRef.close(t)})},()=>this.loading=!1):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe(t=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(e=>{this.notificatorService.showSuccess(e),this.dialogRef.close(t)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.uq),r.Y36(s.ff),r.Y36(o.V6),r.Y36(a.sK))},t.\u0275cmp=r.Xpm({type:t,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","mr-2 mt-2",4,"ngIf"],[1,"text-muted","new-line"],[3,"innerHTML"],[1,"mr-2","mt-2"],[3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,g,1,0,"mat-spinner",1),r.YNc(5,b,12,10,"div",2),r.TgZ(6,"div",3),r.TgZ(7,"button",4),r.NdJ("click",function(){return e.cancel()}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.TgZ(10,"button",5),r.NdJ("click",function(){return e.submit()}),r._uU(11),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Tol(e.theme),r.xp6(2),r.Oqu(r.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(3),r.hij(" ",r.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),r.xp6(2),r.Q6J("disabled",e.loading||!e.selectedStatus),r.xp6(1),r.hij(" ",e.submitButtonText," "))},directives:[n.uh,c.O5,n.H8,u.lW,l.$g,n.xY,h.KE,h.hX,d.gD,c.sg,p.ey],pipes:[a.X$],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),t})();var _=i(16073),y=i(80340);function A(t,e){1&t&&(r.TgZ(0,"h1",7),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")))}function v(t,e){1&t&&(r.TgZ(0,"h1",7),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")))}function T(t,e){1&t&&(r.TgZ(0,"h1",7),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")))}function C(t,e){1&t&&(r.TgZ(0,"h1",7),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")))}function S(t,e){1&t&&r._UZ(0,"mat-spinner",8)}function E(t,e){if(1&t&&(r.TgZ(0,"mat-form-field"),r._UZ(1,"input",13),r.ALo(2,"translate"),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.MGl("placeholder","",r.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),r.Q6J("value",t.shortName)}}function k(t,e){if(1&t&&(r.TgZ(0,"mat-form-field",14),r._UZ(1,"textarea",15),r.ALo(2,"translate"),r.TgZ(3,"mat-error"),r._uU(4),r.ALo(5,"translate"),r.qZA(),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.MGl("placeholder","",r.lcZ(2,3,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),r.Q6J("formControl",t.descriptionCtrl),r.xp6(3),r.hij(" ",r.lcZ(5,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_DESCRIPTION")," ")}}function x(t,e){if(1&t&&(r.TgZ(0,"div",9),r.YNc(1,E,3,4,"mat-form-field",10),r.TgZ(2,"mat-form-field"),r._UZ(3,"input",11),r.ALo(4,"translate"),r.TgZ(5,"mat-error"),r._uU(6),r.ALo(7,"translate"),r.qZA(),r.qZA(),r.YNc(8,k,6,7,"mat-form-field",12),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngIf",2===t.dialogType),r.xp6(2),r.MGl("placeholder","",r.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),r.Q6J("formControl",t.nameCtrl),r.xp6(3),r.hij(" ",t.invalidNameMessage.length?t.invalidNameMessage:r.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),r.xp6(2),r.Q6J("ngIf",2!==t.dialogType)}}var R=function(t){return t[t.FACILITY=0]="FACILITY",t[t.RESOURCE=1]="RESOURCE",t[t.VO=2]="VO",t[t.GROUP=3]="GROUP",t}({});let I=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this.dialogRef=t,this.data=e,this.notificator=i,this.translateService=n,this.facilitiesManager=s,this.resourcesManager=o,this.groupsManager=r,this.vosManager=a,this.store=c,this.invalidNameMessage=this.data.dialogType===R.GROUP?this.store.get("groupNameErrorMessage"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===R.GROUP?this.store.get("groupNameSecondaryRegex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case R.FACILITY:this.nameCtrl=new _.NI(this.data.facility.name,[_.kI.required,_.kI.pattern(".*[\\S]+.*"),_.kI.maxLength(129)]),this.descriptionCtrl=new _.NI(this.data.facility.description,[_.kI.required,_.kI.pattern(".*[\\S]+.*"),_.kI.maxLength(129)]);break;case R.RESOURCE:this.nameCtrl=new _.NI(this.data.resource.name,[_.kI.required,_.kI.pattern(".*[\\S]+.*"),_.kI.maxLength(129)]),this.descriptionCtrl=new _.NI(this.data.resource.description,[_.kI.required,_.kI.pattern(".*[\\S]+.*"),_.kI.maxLength(129)]);break;case R.GROUP:{const t=this.data.group.name.split(":");this.nameCtrl=new _.NI(t[t.length-1],[_.kI.required,_.kI.pattern(".*[\\S]+.*"),_.kI.pattern(this.secondaryRegex),_.kI.maxLength(129)]),this.descriptionCtrl=new _.NI(this.data.group.description,[_.kI.required,_.kI.pattern(".*[\\S]+.*"),_.kI.maxLength(129)]);break}case R.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new _.NI(this.data.vo.name,[_.kI.required,_.kI.pattern(".*[\\S]+.*"),_.kI.maxLength(129)]),this.descriptionCtrl=new _.NI}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case R.FACILITY:this.editFacility();break;case R.RESOURCE:this.editResource();break;case R.GROUP:this.editGroup();break;case R.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(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(t=>{const e=t;e.name=this.nameCtrl.value,e.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:e}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(o.V6),r.Y36(a.sK),r.Y36(s.IQ),r.Y36(s.xk),r.Y36(s.ff),r.Y36(s.YF),r.Y36(o.d6))},t.\u0275cmp=r.Xpm({type:t,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","","required","",1,"overflow-hidden",3,"formControl","placeholder"]],template:function(t,e){1&t&&(r.TgZ(0,"div"),r.YNc(1,A,3,3,"h1",0),r.YNc(2,v,3,3,"h1",0),r.YNc(3,T,3,3,"h1",0),r.YNc(4,C,3,3,"h1",0),r.TgZ(5,"div",1),r.YNc(6,S,1,0,"mat-spinner",2),r.YNc(7,x,9,9,"div",3),r.qZA(),r.TgZ(8,"div",4),r.TgZ(9,"button",5),r.NdJ("click",function(){return e.cancel()}),r._uU(10),r.ALo(11,"translate"),r.qZA(),r.TgZ(12,"button",6),r.NdJ("click",function(){return e.submit()}),r._uU(13),r.ALo(14,"translate"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Tol(e.theme),r.xp6(1),r.Q6J("ngIf",0===e.dialogType),r.xp6(1),r.Q6J("ngIf",1===e.dialogType),r.xp6(1),r.Q6J("ngIf",2===e.dialogType),r.xp6(1),r.Q6J("ngIf",3===e.dialogType),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(3),r.hij(" ",r.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),r.xp6(2),r.Q6J("disabled",e.loading||e.nameCtrl.invalid||e.descriptionCtrl.invalid),r.xp6(1),r.hij(" ",r.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},directives:[c.O5,n.xY,n.H8,u.lW,n.uh,l.$g,h.KE,y.Nt,_.Fj,_.Q7,_.JJ,_.oH,h.TO,y.D7],pipes:[a.X$],styles:[""]}),t})();var O=i(67004),P=i(27613),D=i(43691);function M(t,e){1&t&&r._UZ(0,"mat-spinner",8)}function L(t,e){if(1&t&&(r.TgZ(0,"div",9),r.TgZ(1,"span"),r._uU(2),r.ALo(3,"translate"),r.TgZ(4,"b"),r._uU(5),r.qZA(),r.qZA(),r._UZ(6,"br"),r.TgZ(7,"span"),r._uU(8),r.ALo(9,"translate"),r.TgZ(10,"b"),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.qZA(),r._UZ(13,"br"),r.TgZ(14,"span"),r._uU(15),r.ALo(16,"translate"),r.TgZ(17,"b"),r._uU(18),r.ALo(19,"translate"),r.qZA(),r.qZA(),r._UZ(20,"br"),r.TgZ(21,"span"),r._uU(22),r.ALo(23,"translate"),r.TgZ(24,"b"),r._uU(25),r.ALo(26,"translate"),r.qZA(),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.hij(" ",r.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),r.xp6(3),r.Oqu(t.group.name),r.xp6(3),r.hij(" ",r.lcZ(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),r.xp6(3),r.Oqu(r.lcZ(12,12,t.getSynchronizationType())),r.xp6(4),r.hij(" ",r.lcZ(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),r.xp6(3),r.Oqu(r.lcZ(19,16,t.getLastSyncState())),r.xp6(4),r.hij(" ",r.lcZ(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),r.xp6(3),r.Oqu(r.lcZ(26,20,t.getLastSyncTime()))}}function N(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",10),r.NdJ("click",function(){return r.CHM(t),r.oxw().onForceStructure()}),r._uU(1),r.ALo(2,"translate"),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("disabled",t.loading),r.xp6(1),r.hij(" ",r.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function z(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",10),r.NdJ("click",function(){return r.CHM(t),r.oxw().onForce()}),r._uU(1),r.ALo(2,"translate"),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("disabled",t.loading),r.xp6(1),r.hij(" ",r.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let F=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.groupService=i,this.notificator=n,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,[O.r.GROUP_SYNC_ENABLED,O.r.GROUP_LAST_SYNC_STATE,O.r.GROUP_LAST_SYNC_TIMESTAMP,O.r.GROUP_STRUCTURE_SYNC_ENABLED,O.r.GROUP_LAST_STRUCTURE_SYNC_STATE,O.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(t=>{this.group=t,this.syncEnabled=(0,P.IL)(this.group.attributes,O.r.GROUP_SYNC_ENABLED).value,this.lastSyncState=(0,P.IL)(this.group.attributes,O.r.GROUP_LAST_SYNC_STATE).value,this.lastSyncTime=(0,P.IL)(this.group.attributes,O.r.GROUP_LAST_SYNC_TIMESTAMP).value,this.structSyncEnabled=(0,P.IL)(this.group.attributes,O.r.GROUP_STRUCTURE_SYNC_ENABLED).value,this.lastStructSyncState=(0,P.IL)(this.group.attributes,O.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,this.lastStructSyncTime=(0,P.IL)(this.group.attributes,O.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 t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.ff),r.Y36(o.V6))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,M,1,0,"mat-spinner",1),r.YNc(5,L,27,22,"div",2),r.TgZ(6,"div",3),r.TgZ(7,"div",4),r.TgZ(8,"button",5),r.NdJ("click",function(){return e.refresh()}),r.TgZ(9,"mat-icon"),r._uU(10,"refresh"),r.qZA(),r.qZA(),r.YNc(11,N,3,4,"button",6),r.YNc(12,z,3,4,"button",6),r.TgZ(13,"button",7),r.NdJ("click",function(){return e.onCancel()}),r._uU(14),r.ALo(15,"translate"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Tol(e.theme),r.xp6(2),r.Oqu(r.lcZ(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(6),r.Q6J("ngIf",e.isStructured()),r.xp6(1),r.Q6J("ngIf",e.isBasic()||e.isStructured()),r.xp6(2),r.hij(" ",r.lcZ(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},directives:[n.uh,c.O5,n.H8,u.lW,D.Hw,l.$g,n.xY],pipes:[a.X$],styles:[""]}),t})();function Z(t,e){1&t&&r._UZ(0,"mat-spinner",7)}function B(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function q(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function U(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",8),r.TgZ(1,"mat-form-field"),r.TgZ(2,"mat-label"),r._uU(3),r.ALo(4,"translate"),r.qZA(),r.TgZ(5,"input",9,10),r.NdJ("ngModelChange",function(e){return r.CHM(t),r.oxw().subject=e}),r.qZA(),r.YNc(7,B,3,3,"mat-error",11),r.qZA(),r.TgZ(8,"mat-form-field"),r.TgZ(9,"mat-label"),r._uU(10),r.ALo(11,"translate"),r.qZA(),r.TgZ(12,"textarea",12,13),r.NdJ("ngModelChange",function(e){return r.CHM(t),r.oxw().message=e}),r.ALo(14,"translate"),r._uU(15," "),r.qZA(),r.YNc(16,q,3,3,"mat-error",11),r.qZA(),r.qZA()}if(2&t){const t=r.MAs(6),e=r.MAs(13),i=r.oxw();r.xp6(3),r.Oqu(r.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),r.xp6(2),r.Q6J("ngModel",i.subject),r.xp6(2),r.Q6J("ngIf",t.invalid),r.xp6(3),r.Oqu(r.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),r.xp6(2),r.s9C("placeholder",r.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),r.Q6J("ngModel",i.message),r.xp6(4),r.Q6J("ngIf",e.invalid)}}let H=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.data=s,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data.error&&this.data.error.errorId&&(this.subject=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(t=>{this.dialogRef.afterClosed().subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const t=this.storeService.get("config");let e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;return e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),e=e.concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.call+"\n\n"),this.data.error.payload&&(e=e.concat("Payload:\n"+this.data.error.payload+"\n\n")),e=e.concat("Sended from new Perun Gui, version: "+i(60306).i8),e.split("\n").join("\n ")}parseMethod(t){return t?this.methodRegexp.exec(t)[1]:t}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(a.sK),r.Y36(o.V6),r.Y36(s.Hr),r.Y36(n.WI),r.Y36(o.d6))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.YNc(3,Z,1,0,"mat-spinner",1),r.YNc(4,U,17,13,"div",2),r.TgZ(5,"div",3),r.TgZ(6,"div",4),r.TgZ(7,"button",5),r.NdJ("click",function(){return e.dialogRef.close()}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.TgZ(10,"button",6),r.NdJ("click",function(){return e.sendBugReport()}),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(4),r.hij(" ",r.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),r.xp6(2),r.Q6J("disabled",""===e.message||""===e.subject||e.loading),r.xp6(1),r.hij(" ",r.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[n.uh,c.O5,n.H8,u.lW,l.$g,n.xY,h.KE,h.hX,y.Nt,_.Fj,_.Q7,_.JJ,_.On,h.TO],pipes:[a.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),j=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.dialog=e,this.data=i}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const t=(0,P.kZ)();t.width="550px",t.data={error:this.data.error},t.autoFocus=!1,this.dialog.open(H,t)}),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.uw),r.Y36(n.WI))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.qZA(),r.TgZ(2,"div",1),r._uU(3),r.qZA(),r.TgZ(4,"div",2),r.TgZ(5,"div",3),r.TgZ(6,"button",4),r.NdJ("click",function(){return e.onBugReportClick()}),r._uU(7),r.ALo(8,"translate"),r.qZA(),r.TgZ(9,"button",5),r.NdJ("click",function(){return e.onCloseClick()}),r._uU(10),r.ALo(11,"translate"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(e.data.title),r.xp6(2),r.hij("\n",e.data.description,"\n"),r.xp6(3),r.Q6J("hidden","error"!==e.data.type),r.xp6(1),r.hij(" ",r.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),r.xp6(3),r.hij(" ",r.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[n.uh,n.xY,n.H8,u.lW],pipes:[a.X$],styles:[""]}),t})();var G=i(67033),Y=i(83787);function V(t,e){1&t&&r._UZ(0,"mat-spinner",3)}function K(t,e){1&t&&r._UZ(0,"th",15)}function J(t,e){if(1&t&&(r.TgZ(0,"td",16),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.hij(" ",t.userExtSource.extSource.name," ")}}function $(t,e){1&t&&r._UZ(0,"tr",17)}function Q(t,e){1&t&&r._UZ(0,"tr",18)}function W(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div"),r.TgZ(1,"div",4),r.TgZ(2,"p"),r._uU(3),r.ALo(4,"translate"),r.ALo(5,"customTranslate"),r.qZA(),r.TgZ(6,"div",5),r._uU(7),r.ALo(8,"translate"),r.ALo(9,"customTranslate"),r.qZA(),r.TgZ(10,"table",6),r.ynx(11,7),r.YNc(12,K,1,0,"th",8),r.YNc(13,J,2,1,"td",9),r.BQk(),r.YNc(14,$,1,0,"tr",10),r.YNc(15,Q,1,0,"tr",11),r.qZA(),r.qZA(),r.TgZ(16,"div",12),r.TgZ(17,"button",13),r.NdJ("click",function(){return r.CHM(t),r.oxw().onCancel()}),r._uU(18),r.ALo(19,"translate"),r.ALo(20,"customTranslate"),r.qZA(),r.TgZ(21,"button",14),r.NdJ("click",function(){return r.CHM(t),r.oxw().onSubmit()}),r._uU(22),r.ALo(23,"translate"),r.ALo(24,"customTranslate"),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.xp6(3),r.hij(" ",r.lcZ(4,7,r.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),r.xp6(4),r.hij(" ",r.lcZ(8,11,r.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),r.xp6(3),r.Q6J("dataSource",t.dataSource),r.xp6(4),r.Q6J("matHeaderRowDef",t.displayedColumns),r.xp6(1),r.Q6J("matRowDefColumns",t.displayedColumns),r.xp6(3),r.hij(" ",r.lcZ(19,15,r.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),r.xp6(4),r.hij(" ",r.lcZ(23,19,r.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let X=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.usersManagerService=i,this.translate=n,this.notificator=s,this.force=!1,this.displayedColumns=["name"],n.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new G.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 t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.Fv),r.Y36(a.sK),r.Y36(o.V6))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.ALo(3,"customTranslate"),r.qZA(),r.TgZ(4,"div"),r.YNc(5,V,1,0,"mat-spinner",1),r.YNc(6,W,25,23,"div",2),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,6,r.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE"))),r.xp6(3),r.Tol(e.theme),r.xp6(1),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[n.uh,c.O5,l.$g,n.xY,G.BZ,G.w1,G.fO,G.Dz,G.as,G.nj,n.H8,u.lW,G.ge,G.ev,G.XQ,G.Gk],pipes:[a.X$,Y.a],styles:[""]}),t})();var tt=i(10901),et=i(81391);let it=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.qZA(),r.TgZ(2,"div",1),r.TgZ(3,"textarea",2),r._uU(4),r.qZA(),r.qZA(),r.TgZ(5,"div",3),r.TgZ(6,"button",4),r.NdJ("click",function(){return e.onCancel()}),r._uU(7),r.ALo(8,"translate"),r.qZA(),r.TgZ(9,"button",5),r._uU(10),r.ALo(11,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(e.title),r.xp6(3),r.Oqu(e.value),r.xp6(3),r.hij(" ",r.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),r.xp6(2),r.Q6J("cdkCopyToClipboard",e.value),r.xp6(1),r.hij(" ",r.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[n.uh,n.xY,tt.IC,y.Nt,n.H8,u.lW,et.i3],pipes:[a.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),t})();function nt(t,e){1&t&&r._UZ(0,"th",12)}function st(t,e){if(1&t&&(r.TgZ(0,"td",13),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.hij(" ",t.displayName," ")}}function ot(t,e){1&t&&r._UZ(0,"tr",14)}function rt(t,e){1&t&&r._UZ(0,"tr",15)}let at=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.attributesManager=s,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new G.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){const t=[];for(const i of this.data.attributes)t.push(i.id);const e={};switch(e[this.data.entity]=this.data.entityId,e.attributes=t,void 0!==this.data.secondEntity&&(e[this.data.secondEntity]=this.data.secondEntityId),this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()})}break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default: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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(o.V6),r.Y36(a.sK),r.Y36(s.H8))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.TgZ(3,"div",1),r.TgZ(4,"div"),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.TgZ(7,"div",2),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.TgZ(10,"table",3),r.ynx(11,4),r.YNc(12,nt,1,0,"th",5),r.YNc(13,st,2,1,"td",6),r.BQk(),r.YNc(14,ot,1,0,"tr",7),r.YNc(15,rt,1,0,"tr",8),r.qZA(),r.qZA(),r.TgZ(16,"div",9),r.TgZ(17,"button",10),r.NdJ("click",function(){return e.onCancel()}),r._uU(18),r.ALo(19,"translate"),r.qZA(),r.TgZ(20,"button",11),r.NdJ("click",function(){return e.onSubmit()}),r._uU(21),r.ALo(22,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),r.xp6(4),r.hij(" ",r.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),r.xp6(3),r.hij(" ",r.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),r.xp6(2),r.Q6J("dataSource",e.dataSource),r.xp6(4),r.Q6J("matHeaderRowDef",e.displayedColumns),r.xp6(1),r.Q6J("matRowDefColumns",e.displayedColumns),r.xp6(3),r.hij(" ",r.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),r.xp6(3),r.hij(" ",r.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},directives:[n.uh,n.xY,G.BZ,G.w1,G.fO,G.Dz,G.as,G.nj,n.H8,u.lW,G.ge,G.ev,G.XQ,G.Gk],pipes:[a.X$],styles:[""]}),t})(),ct=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,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 t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h5",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.TgZ(3,"div",1),r.TgZ(4,"mat-form-field"),r.TgZ(5,"textarea",2),r.NdJ("ngModelChange",function(t){return e.attributeValue=t}),r.qZA(),r.qZA(),r.qZA(),r.TgZ(6,"div",3),r.TgZ(7,"button",4),r.NdJ("click",function(){return e.cancel()}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.TgZ(10,"button",5),r.NdJ("click",function(){return e.submit()}),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE")),r.xp6(4),r.Q6J("ngModel",e.attributeValue),r.xp6(3),r.hij(" ",r.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),r.xp6(3),r.hij(" ",r.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[n.uh,n.xY,h.KE,tt.IC,y.Nt,_.Fj,_.JJ,_.On,n.H8,u.lW],pipes:[a.X$],styles:[""]}),t})(),ut=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h5",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.TgZ(3,"div",1),r.TgZ(4,"div"),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.TgZ(7,"div",2),r._uU(8),r.qZA(),r.qZA(),r.TgZ(9,"div",3),r.TgZ(10,"button",4),r.NdJ("click",function(){return e.cancel()}),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.TgZ(13,"button",5),r.NdJ("click",function(){return e.submit()}),r._uU(14),r.ALo(15,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE")),r.xp6(4),r.hij(" ",r.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),r.xp6(3),r.hij(" ",e.data.name," "),r.xp6(3),r.hij(" ",r.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),r.xp6(3),r.hij(" ",r.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[n.uh,n.xY,n.H8,u.lW],pipes:[a.X$],styles:[""]}),t})();var lt=i(39571);function ht(t,e){if(1&t&&(r.TgZ(0,"app-alert",9),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.pendingEmailsMessage)}}function dt(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.ALo(2,"translate"),r.ALo(3,"customTranslate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,r.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let pt=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=n,this.usersManagerService=s,this.authService=o,this.pendingMails=[],i.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(t=>this.successMessage=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(t=>this.pendingEmailsMessageStart=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(t=>this.pendingEmailsMessageEnd=t)}ngOnInit(){this.emailControl=new _.NI(null,[_.kI.required,_.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(t=>{this.pendingMails=t.filter((t,e,i)=>e===i.indexOf(t));let e="";this.pendingMails.forEach(t=>e+=`${t===this.pendingMails[0]?"":", "}${t}`),console.log(e),this.pendingEmailsMessage=this.pendingEmailsMessageStart+e+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 t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(a.sK),r.Y36(o.V6),r.Y36(s.Fv),r.Y36(o.e8))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.ALo(3,"customTranslate"),r.qZA(),r.TgZ(4,"div",1),r.YNc(5,ht,2,1,"app-alert",2),r.TgZ(6,"mat-form-field",3),r.TgZ(7,"label",3),r._UZ(8,"input",4),r.ALo(9,"translate"),r.ALo(10,"customTranslate"),r.qZA(),r.YNc(11,dt,4,5,"mat-error",5),r.qZA(),r.qZA(),r.TgZ(12,"div",6),r.TgZ(13,"button",7),r.NdJ("click",function(){return e.onCancel()}),r._uU(14),r.ALo(15,"translate"),r.ALo(16,"customTranslate"),r.qZA(),r.TgZ(17,"button",8),r.NdJ("click",function(){return e.onSubmit()}),r._uU(18),r.ALo(19,"translate"),r.ALo(20,"customTranslate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,8,r.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),r.xp6(4),r.Q6J("ngIf",e.pendingMails.length),r.xp6(3),r.s9C("placeholder",r.lcZ(9,12,r.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),r.Q6J("formControl",e.emailControl),r.xp6(3),r.Q6J("ngIf",e.emailControl.invalid),r.xp6(3),r.hij(" ",r.lcZ(15,16,r.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),r.xp6(3),r.Q6J("disabled",!e.emailControl.valid),r.xp6(1),r.hij(" ",r.lcZ(19,20,r.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[n.uh,n.xY,c.O5,h.KE,y.Nt,_.Fj,_.Q7,_.JJ,_.oH,n.H8,u.lW,lt.w,h.TO],pipes:[a.X$,Y.a],styles:[""]}),t})();function gt(t,e){1&t&&r._UZ(0,"mat-spinner",6)}function ft(t,e){1&t&&r._UZ(0,"th",15)}function mt(t,e){if(1&t&&(r.TgZ(0,"td",16),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.hij(" ",t," ")}}function bt(t,e){1&t&&r._UZ(0,"tr",17)}function wt(t,e){1&t&&r._UZ(0,"tr",18)}function _t(t,e){if(1&t&&(r.TgZ(0,"div",7),r.TgZ(1,"p"),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"div",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.TgZ(7,"table",9),r.ynx(8,10),r.YNc(9,ft,1,0,"th",11),r.YNc(10,mt,2,1,"td",12),r.BQk(),r.YNc(11,bt,1,0,"tr",13),r.YNc(12,wt,1,0,"tr",14),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.hij(" ",r.lcZ(3,5,t.data.description)," "),r.xp6(3),r.hij(" ",r.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "),r.xp6(2),r.Q6J("dataSource",t.dataSource),r.xp6(4),r.Q6J("matHeaderRowDef",t.displayedColumns),r.xp6(1),r.Q6J("matRowDefColumns",t.displayedColumns)}}let yt=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new G.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-universal-remove-items-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,gt,1,0,"mat-spinner",1),r.YNc(5,_t,13,9,"div",2),r.TgZ(6,"div",3),r.TgZ(7,"button",4),r.NdJ("click",function(){return e.onCancel()}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.TgZ(10,"button",5),r.NdJ("click",function(){return e.onSubmit()}),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Tol(e.theme),r.xp6(2),r.Oqu(r.lcZ(3,9,e.data.title)),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(3),r.hij(" ",r.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),r.xp6(2),r.Q6J("disabled",e.loading),r.xp6(1),r.hij(" ",r.lcZ(12,13,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," "))},directives:[n.uh,c.O5,n.H8,u.lW,l.$g,n.xY,G.BZ,G.w1,G.fO,G.Dz,G.as,G.nj,G.ge,G.ev,G.XQ,G.Gk],pipes:[a.X$],styles:[""]}),t})();var At=i(71709),vt=i(91010);let Tt=(()=>{class t{transform(t){const e=t.split(":");return e[e.length-1]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"parseGroupName",type:t,pure:!0}),t})();function Ct(t,e){1&t&&r._UZ(0,"mat-spinner",7)}function St(t,e){1&t&&(r.TgZ(0,"app-alert"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function Et(t,e){1&t&&(r.TgZ(0,"span",23),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function kt(t,e){1&t&&(r.TgZ(0,"span",23),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const xt=function(t){return{"min-width":t}};function Rt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-tree-node",16),r.TgZ(1,"li",17),r.TgZ(2,"div",18),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw(3).navigate(e.id,e.include)}),r._UZ(3,"button",19),r.TgZ(4,"div",20),r.TgZ(5,"span"),r._uU(6),r.ALo(7,"parseGroupName"),r.qZA(),r.YNc(8,Et,3,3,"span",21),r.YNc(9,kt,3,3,"span",21),r.qZA(),r.TgZ(10,"span",22),r._uU(11),r.qZA(),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=e.$implicit,i=r.oxw(3);r.xp6(2),r.ekj("cursor-pointer",t.direct||t.include)("act-disabled",!t.direct&&!t.include),r.xp6(2),r.Q6J("ngStyle",r.VKq(11,xt,i.getMinWidth(t.level))),r.xp6(2),r.Oqu(r.lcZ(7,9,t.name)),r.xp6(2),r.Q6J("ngIf",t.direct),r.xp6(1),r.Q6J("ngIf",t.include),r.xp6(2),r.Oqu(t.description)}}function It(t,e){1&t&&(r.TgZ(0,"span",23),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Ot(t,e){1&t&&(r.TgZ(0,"span",23),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Pt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-nested-tree-node"),r.TgZ(1,"li"),r.TgZ(2,"div",17),r.TgZ(3,"button",24),r.TgZ(4,"mat-icon",25),r._uU(5),r.qZA(),r.qZA(),r.TgZ(6,"div",18),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw(3).navigate(e.id,e.include)}),r.TgZ(7,"div",20),r.TgZ(8,"span"),r._uU(9),r.ALo(10,"parseGroupName"),r.qZA(),r.YNc(11,It,3,3,"span",21),r.YNc(12,Ot,3,3,"span",21),r.qZA(),r.TgZ(13,"span",22),r._uU(14),r.qZA(),r.qZA(),r.qZA(),r.TgZ(15,"ul"),r.GkF(16,26),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=e.$implicit,i=r.oxw(3);r.xp6(3),r.uIk("aria-label","Toggle "+t.name),r.xp6(2),r.hij(" ",i.treeControl.isExpanded(t)?"expand_more":"chevron_right"," "),r.xp6(1),r.ekj("cursor-pointer",t.direct||t.include)("act-disabled",!t.direct&&!t.include),r.xp6(1),r.Q6J("ngStyle",r.VKq(15,xt,i.getMinWidth(t.level))),r.xp6(2),r.Oqu(r.lcZ(10,13,t.name)),r.xp6(2),r.Q6J("ngIf",t.direct),r.xp6(1),r.Q6J("ngIf",t.include),r.xp6(2),r.Oqu(t.description),r.xp6(1),r.ekj("example-tree-invisible",!i.treeControl.isExpanded(t))}}function Dt(t,e){if(1&t&&(r.TgZ(0,"mat-tree",13),r.YNc(1,Rt,12,13,"mat-tree-node",14),r.YNc(2,Pt,17,17,"mat-nested-tree-node",15),r.qZA()),2&t){const t=r.oxw(2);r.Q6J("dataSource",t.dataSource)("treeControl",t.treeControl),r.xp6(2),r.Q6J("matTreeNodeDefWhen",t.hasChild)}}function Mt(t,e){if(1&t&&(r.TgZ(0,"div",8),r.TgZ(1,"p"),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"mat-form-field",9),r._UZ(5,"input",10),r.ALo(6,"translate"),r.qZA(),r.YNc(7,St,3,3,"app-alert",11),r.YNc(8,Dt,3,3,"mat-tree",12),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.Oqu(r.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),r.xp6(3),r.s9C("placeholder",r.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),r.Q6J("formControl",t.formControl),r.xp6(2),r.Q6J("ngIf",!t.dataSource.data.length),r.xp6(1),r.Q6J("ngIf",t.dataSource.data.length)}}const Lt=function(t){return{name:t}};let Nt=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.groupsManagerService=i,this.treeControl=new At.VY(t=>t.children),this.dataSource=new vt.WX,this.groupTree=[],this.paths=[],this.formControl=new _.NI(""),this.userName="",this.hasChild=(t,e)=>!!e.children&&e.children.length>0}recursiveSearch(t,e,i){for(let n=0;n{this.groupTree=this.recursiveSearch(this.groupTree,t,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe(t=>{this.paths=t,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe(t=>{const e=t.trim().toLowerCase(),i=this.paths.filter(t=>t.filter(t=>t.name.includes(e)).length);this.createGroupTree(i),this.dataSource.data=this.groupTree}),this.userName=(0,P.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate(t,e=!1){window.open(`/organizations/${this.data.member.voId}/groups/${t}${e?"/settings/relations":""}`,"_blank")}getMinWidth(t){return 400-40*t+"px"}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.ff))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"h1",1),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,Ct,1,0,"mat-spinner",2),r.YNc(5,Mt,9,9,"div",3),r.TgZ(6,"div",4),r.TgZ(7,"div",5),r.TgZ(8,"button",6),r.NdJ("click",function(){return e.onCancel()}),r._uU(9),r.ALo(10,"translate"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(2),r.Oqu(r.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",r.VKq(9,Lt,e.userName))),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(4),r.hij(" ",r.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},directives:[n.uh,c.O5,n.H8,u.lW,l.$g,n.xY,h.KE,y.Nt,_.Fj,_.JJ,_.oH,lt.w,vt.gi,vt.fQ,vt.uo,vt.eu,c.PC,vt.GZ,D.Hw,vt.Ar],pipes:[a.X$,Tt],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] ul[_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:auto!important}"]}),t})();var zt=i(57629);let Ft=(()=>{class t{constructor(t,e){this.dialogRef=t,this.router=e}onClose(){this.router.navigate([]),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(zt.F0))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.TgZ(3,"div",1),r.TgZ(4,"app-alert",2),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.TgZ(7,"div",3),r.TgZ(8,"button",4),r.NdJ("click",function(){return e.onClose()}),r._uU(9),r.ALo(10,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE")),r.xp6(4),r.Oqu(r.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),r.xp6(4),r.hij(" ",r.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[n.uh,n.xY,lt.w,n.H8,u.lW],pipes:[a.X$],styles:[""]}),t})();var Zt=i(54810),Bt=i(15812),qt=i(58506);function Ut(t,e){1&t&&(r.TgZ(0,"mat-radio-button",15),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function Ht(t,e){1&t&&(r.TgZ(0,"mat-radio-button",16),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}let jt=(()=>{class t{constructor(t){this.dialogRef=t,this.canExtendMembership=!1,this.expirationChanged=new r.vpe,this.expirationControl=new _.NI(null)}ngOnInit(){"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}onChange(){this.expirationChanged.emit(this.newExpiration)}onCancel(){this.dialogRef.close(!1)}setExpiration(){this.newExpiration=(0,c.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,c.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-change-expiration-dialog"]],inputs:{currentExpiration:"currentExpiration",newExpiration:"newExpiration",canExtendMembership:"canExtendMembership",minDate:"minDate",maxDate:"maxDate",mode:"mode"},outputs:{expirationChanged:"expirationChanged"},decls:36,vars:36,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"],["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"]],template:function(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"p"),r.TgZ(3,"strong"),r._uU(4),r.ALo(5,"translate"),r.qZA(),r._uU(6),r.ALo(7,"parseDate"),r.qZA(),r.TgZ(8,"p"),r.TgZ(9,"strong"),r._uU(10),r.ALo(11,"translate"),r.qZA(),r._uU(12),r.ALo(13,"parseDate"),r.qZA(),r.TgZ(14,"mat-radio-group",2),r.NdJ("ngModelChange",function(t){return e.newExpiration=t}),r.TgZ(15,"mat-radio-button",3),r.TgZ(16,"mat-form-field",4),r.NdJ("click",function(){return r.CHM(t),r.MAs(23).open()}),r.TgZ(17,"mat-label"),r._uU(18),r.ALo(19,"translate"),r.qZA(),r.TgZ(20,"input",5),r.NdJ("dateChange",function(){return e.setExpiration()}),r.qZA(),r._UZ(21,"mat-datepicker-toggle",6),r._UZ(22,"mat-datepicker",7,8),r.qZA(),r.qZA(),r.YNc(24,Ut,3,3,"mat-radio-button",9),r.YNc(25,Ht,3,3,"mat-radio-button",10),r.TgZ(26,"mat-radio-button",11),r._uU(27),r.ALo(28,"translate"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(29,"div",12),r.TgZ(30,"button",13),r.NdJ("click",function(){return e.onCancel()}),r._uU(31),r.ALo(32,"translate"),r.qZA(),r.TgZ(33,"button",14),r.NdJ("click",function(){return e.onChange()}),r._uU(34),r.ALo(35,"translate"),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.MAs(23);r.xp6(4),r.Oqu(r.lcZ(5,20,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),r.xp6(2),r.hij(" ",r.lcZ(7,22,e.currentExpiration),""),r.xp6(4),r.Oqu(r.lcZ(11,24,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),r.xp6(2),r.hij(" ",e.newExpiration?r.lcZ(13,26,e.newExpiration):"never",""),r.xp6(2),r.Q6J("ngModel",e.newExpiration),r.xp6(1),r.s9C("value",e.expirationControl.value),r.xp6(3),r.Oqu(r.lcZ(19,28,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),r.xp6(2),r.Q6J("min",e.minDate)("max",e.maxDate)("formControl",e.expirationControl)("matDatepicker",t),r.xp6(1),r.Q6J("for",t)("disabled",!1),r.xp6(1),r.Q6J("disabled",!1),r.xp6(2),r.Q6J("ngIf",e.canExtendMembership&&"vo"===e.mode),r.xp6(1),r.Q6J("ngIf",e.canExtendMembership&&"group"===e.mode),r.xp6(2),r.hij(" ",r.lcZ(28,30,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),r.xp6(4),r.hij(" ",r.lcZ(32,32,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),r.xp6(2),r.Q6J("disabled",e.expirationControl.invalid),r.xp6(1),r.hij(" ",r.lcZ(35,34,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},directives:[n.xY,Zt.VQ,_.JJ,_.On,Zt.U0,h.KE,h.hX,y.Nt,_.Fj,Bt.hl,_.oH,Bt.nW,h.R9,Bt.Mq,c.O5,n.H8,u.lW],pipes:[a.X$,qt.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}"]}),t})();function Gt(t,e){1&t&&r._UZ(0,"mat-spinner",4)}function Yt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"perun-web-apps-change-expiration-dialog",5),r.NdJ("expirationChanged",function(e){return r.CHM(t),r.oxw().onExpirationChanged(e)}),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("minDate",t.minDate)("maxDate",t.maxDate)("currentExpiration",t.currentExpiration)("newExpiration",t.newExpiration)("canExtendMembership",t.canExtendMembership)("mode","group")}}let Vt=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.memberManager=n,this.groupManager=s,this.translate=o,this.notificator=r,this.loading=!1,this.expirationAttr=null,this.canExtendMembership=!1,o.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0;const t=new Date;"VALID"!==this.data.status?this.maxDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()):this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr&&this.expirationAttr.value?this.expirationAttr.value:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&(this.newExpiration="VALID"!==this.data.status?(0,c.p6)(this.maxDate,"yyyy-MM-dd","en"):"never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,O.r.GROUP_DEF_EXPIRATION_RULES).subscribe(t=>{null!==t.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(t=>{this.canExtendMembership=!!t,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(t){this.loading=!0,"groupRules"===t?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1):(this.expirationAttr.value="never"===t?null:t,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.H8),r.Y36(s.uq),r.Y36(s.ff),r.Y36(a.sK),r.Y36(o.V6))},t.\u0275cmp=r.Xpm({type:t,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","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","expirationChanged"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"h1",1),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,Gt,1,0,"mat-spinner",2),r.YNc(5,Yt,1,6,"perun-web-apps-change-expiration-dialog",3),r.qZA()),2&t&&(r.xp6(2),r.Oqu(r.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[n.uh,c.O5,l.$g,jt],pipes:[a.X$],styles:[""]}),t})();function Kt(t,e){1&t&&r._UZ(0,"mat-spinner",4)}function Jt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"perun-web-apps-change-expiration-dialog",5),r.NdJ("expirationChanged",function(e){return r.CHM(t),r.oxw().onExpirationChanged(e)}),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("minDate",t.minDate)("maxDate",t.maxDate)("currentExpiration",t.currentExpiration)("newExpiration",t.newExpiration)("canExtendMembership",t.canExtendMembership)("mode","vo")}}let $t=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.memberManager=n,this.translate=s,this.notificator=o,this.loading=!1,this.expirationAttr=null,this.canExtendMembership=!1,s.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0;const t=new Date;"VALID"!==this.data.status?this.maxDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()):this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr&&this.expirationAttr.value?this.expirationAttr.value:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&(this.newExpiration="VALID"!==this.data.status?(0,c.p6)(this.maxDate,"yyyy-MM-dd","en"):"never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,O.r.VO_DEF_EXPIRATION_RULES).subscribe(t=>{null!==t.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe(t=>{this.canExtendMembership=!!t,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(t){this.loading=!0,"voRules"===t?this.memberManager.extendMembership(this.data.memberId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1):(this.expirationAttr.value="never"===t?null:t,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.H8),r.Y36(s.uq),r.Y36(a.sK),r.Y36(o.V6))},t.\u0275cmp=r.Xpm({type:t,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","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","expirationChanged"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"h1",1),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,Kt,1,0,"mat-spinner",2),r.YNc(5,Jt,1,6,"perun-web-apps-change-expiration-dialog",3),r.qZA()),2&t&&(r.xp6(2),r.Oqu(r.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[n.uh,c.O5,l.$g,jt],pipes:[a.X$],styles:[""]}),t})();function Qt(t,e){1&t&&r._UZ(0,"mat-spinner",4)}function Wt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"perun-web-apps-change-expiration-dialog",5),r.NdJ("expirationChanged",function(e){return r.CHM(t),r.oxw().onExpirationChanged(e)}),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("minDate",t.minDate)("currentExpiration",t.currentExpiration)("newExpiration",t.newExpiration)("mode","sponsor")}}let Xt=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.memberManager=n,this.groupManager=s,this.translate=o,this.notificator=r,this.loading=!1,o.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.loading=!1}onExpirationChanged(t){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===t?null:t).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.H8),r.Y36(s.uq),r.Y36(s.ff),r.Y36(a.sK),r.Y36(o.V6))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"h1",1),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,Qt,1,0,"mat-spinner",2),r.YNc(5,Wt,1,4,"perun-web-apps-change-expiration-dialog",3),r.qZA()),2&t&&(r.xp6(2),r.Oqu(r.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[n.uh,c.O5,l.$g,jt],pipes:[a.X$],styles:[""]}),t})()},84534:function(t,e,i){"use strict";i.d(e,{hT:function(){return s},Kd:function(){return r},YH:function(){return a}});var n=i(31572);let s=(()=>{class t{constructor(t){this.elementRef=t}ngOnInit(){this.elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t})();var o=i(88426);let r=(()=>{class t{constructor(t,e){this.el=t,this.router=e}onClick(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(o.xw))},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),t})(),a=(()=>{class t{constructor(){}onClick(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),e=location.search;window.open(t+e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&n.NdJ("mouseup",function(t){return e.onClick(t)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t})()},14732:function(t,e,i){"use strict";i.d(e,{u:function(){return n},m:function(){return s}});var n=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({});class s{constructor(t){this.id=t.id,this.name=t.name,this.parentGroupId=t.parentGroupId,this.voId=t.voId,this.shortName=t.shortName,this.description=t.description,this.attributes=t.attributes,this.beanName=t.beanName}addChild(t){null==this.children?this.children=[t]:this.children.push(t)}}},33642:function(t,e,i){"use strict";i.d(e,{Us:function(){return k},au:function(){return D},H8:function(){return c},Ct:function(){return l},VK:function(){return a},KG:function(){return p},IQ:function(){return g},ff:function(){return m},uq:function(){return b},aC:function(){return w},Hr:function(){return _},tk:function(){return y},xk:function(){return A},KK:function(){return v},Ob:function(){return T},Dy:function(){return P},Fv:function(){return C},FW:function(){return S},YF:function(){return E}});var n=i(29063);class s{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}var o=i(31572);const r=new o.OlP("basePath");class a{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}selectHeaderContentType(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let c=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}convertAttributeToNonunique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}convertAttributeToUnique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attribute",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteAttributeDefinitions(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllAttributeDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttribute(t,e,i,s,o,r,a,c,u,l,h,d="body",p=!1){let g=new n.LE({encoder:this.encoder});null!=t&&(g=g.set("attributeName",t)),null!=e&&(g=g.set("attributeId",e)),null!=i&&(g=g.set("facility",i)),null!=s&&(g=g.set("user",s)),null!=o&&(g=g.set("vo",o)),null!=r&&(g=g.set("resource",r)),null!=a&&(g=g.set("member",a)),null!=c&&(g=g.set("group",c)),null!=u&&(g=g.set("host",u)),null!=l&&(g=g.set("userExtSource",l)),null!=h&&(g=g.set("key",h));let f=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(f=f.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+t)}const m=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==m&&(f=f.set("Accept",m)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{params:g,withCredentials:this.configuration.withCredentials,headers:f,observe:d,reportProgress:p})}getAttributeDefinitionById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeDefinitionByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeDefinitionsByNamespace(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttributeModulesDependenciesForAttributeGraphText(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("format",t)),null!=e&&(o=o.set("attrName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAttributeModulesDependenciesGraphText(t,e="body",i=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("format",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributesDefinitionWithRights(t,e,i,s,o,r,a,c,u="body",l=!1){let h=new n.LE({encoder:this.encoder});null!=t&&(h=h.set("member",t)),null!=e&&(h=h.set("user",e)),null!=i&&(h=h.set("vo",i)),null!=s&&(h=h.set("group",s)),null!=o&&(h=h.set("resource",o)),null!=r&&(h=h.set("facility",r)),null!=a&&(h=h.set("host",a)),null!=c&&(h=h.set("userExtSource",c));let d=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(d=d.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(d=d.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;d=d.set("Authorization","Bearer "+t)}const p=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==p&&(d=d.set("Accept",p)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{params:h,withCredentials:this.configuration.withCredentials,headers:d,observe:u,reportProgress:l})}getEntitylessAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("key",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEntitylessAttributesByKey(t,e="body",i=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("key",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEntitylessAttributesByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attrName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEntitylessAttributesWithKeys(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("attrName",t)),e&&e.forEach(t=>{o=o.append("keys[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEntitylessKeys(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityResourceUserMemberAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=s&&(a=a.set("member",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getFacilityUserAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupResourceAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getGroupResourceAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getGroupResourceAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getHostAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getHostAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getLogins(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberAndUserAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberAndUserAttributesByNames(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberGroupAndUserAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(t=>{a=a.append("attrNames[]",t)}),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getMemberGroupAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberGroupAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberGroupAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberGroupAttributesByNames(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAndUserFacilityAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAndUserFacilityAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(t=>{a=a.append("attrNames[]",t)}),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getMemberResourceAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesFacilityService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesFacilityServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("services[]",t)}),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesGroupResourceService(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("group",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesHostService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("host",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesMemberGroup(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesMemberGroupResourceService(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("service",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=s&&(c=c.set("member",s)),null!=o&&(c=c.set("workWithUserAttributes",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}getRequiredAttributesMemberGroupService(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRequiredAttributesMemberResource(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesMemberResourceService(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("member",i)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRequiredAttributesResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesResourceService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesResourceServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("services[]",t)}),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesUserFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesVoService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourceAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceGroupAndGroupAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithGroupAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResourceGroupAndGroupAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(t=>{a=a.append("attrNames[]",t)}),null!=s&&(a=a.set("workWithGroupAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getResourceGroupAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceGroupMemberAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),s&&s.forEach(t=>{a=a.append("attrNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getUserAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourceAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserFacilityAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserFacilityAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserFacilityAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeAttributesForFacilityResourceGroupUserMember(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let u=new n.LE({encoder:this.encoder});null!=t&&(u=u.set("facility",t)),null!=e&&(u=u.set("resource",e)),null!=i&&(u=u.set("group",i)),null!=s&&(u=u.set("user",s)),null!=o&&(u=u.set("member",o)),r&&r.forEach(t=>{u=u.append("attributes[]",t)});let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(l=l.set("Accept",h)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{params:u,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:c})}removeAttributesForFacilityResourceUserMember(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("user",i)),null!=s&&(c=c.set("member",s)),o&&o.forEach(t=>{c=c.append("attributes[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}removeEntitylessAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("key",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupResourceAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeGroupResourceAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeGroupResourceAttributesWorkWithGroupAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(t=>{a=a.append("attributes[]",t)}),null!=s&&(a=a.set("workWithGroupAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeHostAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeHostAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMemberAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMemberAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMemberAttributesWorkWithUserAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attributes[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberGroupAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberGroupAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberGroupAttributesWorkWithUserAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(t=>{a=a.append("attributes[]",t)}),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeMemberResourceAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberResourceAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeResourceAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUesAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserExtSourceAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserFacilityAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeUserFacilityAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeVoAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setEntitylessAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceGroupUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAndUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupWithGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}auditMessagesManagerLog(t,e="body",i=!1){if(null==t)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("msg",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/AuditMessagesManager/log`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createAuditerConsumer(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("consumerName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/AuditMessagesManager/createAuditerConsumer`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllAuditerConsumers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getAllAuditerConsumers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuditerMessagesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getAuditerMessagesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getLastMessageId(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getLastMessageId`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMessages(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("count",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getMessages`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMessagesByCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("count",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getMessagesByCount`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}pollConsumerMessages(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("consumerName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/pollConsumerMessages`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}setLastProcessedId(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==e)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("consumerName",t)),null!=e&&(o=o.set("lastProcessedId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/AuditMessagesManager/setLastProcessedId`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),l=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getAllPolicies(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRolesManagementRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuthzAdminGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("role",t)),null!=e&&(r=r.set("complementaryObjectId",e)),null!=i&&(r=r.set("complementaryObjectName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAuthzRichAdmins(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let u=new n.LE({encoder:this.encoder});null!=t&&(u=u.set("role",t)),null!=e&&(u=u.set("complementaryObjectId",e)),null!=i&&(u=u.set("complementaryObjectName",i)),s&&s.forEach(t=>{u=u.append("specificAttributes",t)}),null!=o&&(u=u.set("allUserAttributes",o)),null!=r&&(u=u.set("onlyDirectAdmins",r));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(l=l.set("Accept",h)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{params:u,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:c})}getFacilitiesWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("groupId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getLoggedUser(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMembersWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getPerunPrincipal(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPrincipalRoleNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSecurityTeamsWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("userId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}isFacilityAdmin(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isGroupAdmin(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isPerunAdmin(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isVoAdmin(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}keepAlive(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}loadAuthorizationComponents(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}setRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),h=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}createAutorship(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAuthorship was null or undefined when calling createAutorship.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryCat(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory was null or undefined when calling createCategoryCat.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryNR(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory1 was null or undefined when calling createCategoryNR.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublication was null or undefined when calling createPublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateThanks was null or undefined when calling createThanks.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAuthorship(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==e)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("publicationId",t)),null!=e&&(o=o.set("userId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deletePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deletePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findAllAuthors(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}findAuthorsByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findExternalPublications(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==e)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==i)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==s)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("yearSince",e)),null!=i&&(a=a.set("yearTill",i)),null!=s&&(a=a.set("pubSysNamespace",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}findNewAuthors(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findPublicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findPublicationsByFilter(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let r=new n.LE({encoder:this.encoder});null!=e&&(r=r.set("yearSince",e)),null!=i&&(r=r.set("yearTill",i)),null!=t&&(r=r.set("userId",t));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findPublicationsByGUIFilter(t,e,i,s,o,r,a,c,u,l="body",h=!1){let d=new n.LE({encoder:this.encoder});null!=t&&(d=d.set("title",t)),null!=e&&(d=d.set("isbn",e)),null!=i&&(d=d.set("doi",i)),null!=s&&(d=d.set("id",s)),null!=o&&(d=d.set("year",o)),null!=r&&(d=d.set("category",r)),null!=a&&(d=d.set("yearSince",a)),null!=c&&(d=d.set("yearTill",c)),null!=u&&(d=d.set("userId",u));let p=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(p=p.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(p=p.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;p=p.set("Authorization","Bearer "+t)}const g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(p=p.set("Accept",g)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{params:d,withCredentials:this.configuration.withCredentials,headers:p,observe:l,reportProgress:h})}findSimilarPublications(t,e,i,s="body",o=!1){let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("title",t)),null!=e&&(r=r.set("doi",e)),null!=i&&(r=r.set("isbn",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getCategories(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPublicationSystems(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRank(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRank.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichThanksByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}lockPublications(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputLockPublications was null or undefined when calling lockPublications.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateCategory was null or undefined when calling updateCategory.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublication was null or undefined when calling updatePublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),d=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getCurrentDatabaseVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getCurrentDatabaseVersion`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseDriverInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseDriverInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTimeOfQueryPerformance(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getTimeOfQueryPerformance`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),p=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addExtSourceWithGroupSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addExtSourceWithVoSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createExtSourceFromExtSourceObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter extSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createExtSourceWithNameType(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==e)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getExtSourceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getExtSources(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGroupExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}loadExtSourcesDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeExtSourceWithGroupSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeExtSourceWithVoSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),g=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addFacilityAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityAdminGroupByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityAdminUserByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwnerByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwnerByFacilityNameOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwnerByOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHost(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("hostname",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHostByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("hostname",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHosts(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hostnames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHostsByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hostnames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignSecurityTeam(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignSecurityTeamByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributesByDestinationName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributesBySourceDestinationNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributesBySourceName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagersByDestinationName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagersBySourceDestinationNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagersBySourceName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwners(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwnersByDestinationName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwnersBySourceDestinationNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwnersBySourceName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllowedGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedGroupsByFacilityName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedRichGroupsWithAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(t=>{a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=s&&(a=a.set("service",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getAllowedRichGroupsWithAttributesByFacilityName(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(t=>{a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=s&&(a=a.set("service",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getAllowedUsersOfFacility(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedUsersOfFacilityByFacilityName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedVos(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedVosByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesByAssignedServiceForFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedSecurityTeams(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedSecurityTeamsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedUsers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedUsersByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getBansForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facilityId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getBansForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEnrichedFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getEnrichedHosts(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilitiesByAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("attributeName",t)),null!=e&&(o=o.set("attributeValue",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilitiesByDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilitiesByHostName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("hostname",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilitiesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilitiesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAdminUsers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityAdminUsersByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityBan(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityForHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityOwners(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityOwnersByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHosts(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("hostname",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsCountByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getOwnerFacilities(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("owner",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeBanByUserIdFacilityId(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminGroupByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminUserByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeFacilityOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityOwnerByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityOwnerByFacilityNameOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityOwnerByOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeHostByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("hostname",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeHosts(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hosts[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeHostsByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hosts[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSecurityTeam(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSecurityTeamByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),f=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getFacilityAdminGroupsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),m=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addMembers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}canExtendMembershipInGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createGroupUnion(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resultGroup",t)),null!=e&&(o=o.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createGroupWithParentGroupNameDescription(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("parentGroup",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createGroupWithVoNameDescription(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}deleteGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteGroups(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroups.");if(null==e)throw new Error("Required parameter forceDelete was null or undefined when calling deleteGroups.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("forceDelete",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroups`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}extendMembershipInGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}forceAllSubGroupsSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}forceGroupStructureSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}forceGroupSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllRichGroupsWithAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllRichSubGroupsWithGroupAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("name",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupMemberById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupMembersCountsByGroupStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupMembersCountsByVoStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupRichMembersByIds(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("members[]",t)}),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getGroupUnions(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("reverseDirection",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getIndirectMembershipPaths(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberRichGroupsWithAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRichGroupByIdWithAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("groupId",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}isGroupMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}moveGroupWithDestinationGroupMovingGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("destinationGroup",e)),null!=t&&(o=o.set("movingGroup",t));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupUnion(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resultGroup",t)),null!=e&&(o=o.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMembers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setGroupsMemberStatus(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("status",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}updateGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),b=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}canExtendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createMemberForCandidate(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberFromExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSpecificMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembersFromCSV(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}extendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findCompleteRichMembersByAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let r=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("attrsNames[]",t)}),null!=e&&(r=r.set("searchString",e)),i&&i.forEach(t=>{r=r.append("allowedStatuses[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findCompleteRichMembersForGroup(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==s)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let u=new n.LE({encoder:this.encoder});null!=t&&(u=u.set("group",t)),e&&e.forEach(t=>{u=u.append("attrsNames[]",t)}),o&&o.forEach(t=>{u=u.append("allowedStatuses[]",t)}),r&&r.forEach(t=>{u=u.append("allowedGroupStatuses[]",t)}),null!=i&&(u=u.set("searchString",i)),null!=s&&(u=u.set("lookingInParentGroup",s));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(l=l.set("Accept",h)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{params:u,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:c})}findCompleteRichMembersForVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(t=>{a=a.append("attrsNames[]",t)}),s&&s.forEach(t=>{a=a.append("allowedStatuses[]",t)}),null!=i&&(a=a.set("searchString",i));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}findMembersInVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findSponsoredCompleteRichMembersForVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==s)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(t=>{a=a.append("attrsNames[]",t)}),null!=i&&(a=a.set("searchString",i)),null!=s&&(a=a.set("onlySponsored",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getAllNamespacesRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllSponsoredMembersAndTheirSponsors(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getCompleteRichMembersForGroup(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),i&&i.forEach(t=>{c=c.append("allowedStatuses[]",t)}),s&&s.forEach(t=>{c=c.append("allowedGroupStatuses[]",t)}),null!=e&&(c=c.set("lookingInParentGroup",e)),o&&o.forEach(t=>{c=c.append("attrsNames[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}getCompleteRichMembersForGroupResource(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==s)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(t=>{a=a.append("attrsNames[]",t)}),s&&s.forEach(t=>{a=a.append("allowedStatuses[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getCompleteRichMembersForVo(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("allowedStatuses[]",t)}),i&&i.forEach(t=>{r=r.append("attrsNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberByExtSourceNameAndExtLogin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extLogin",e)),null!=i&&(r=r.set("extSourceName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberByUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMembers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMembersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMembersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMembersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getMembersWithStatusCount(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRichMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichMemberWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichMembersByIds(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("ids[]",t)}),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getSponsoredMembersAndTheirSponsors(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsorsByMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsorsByVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),s&&s.forEach(t=>{a=a.append("attrNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}moveMembership(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("sourceUser",e)),null!=i&&(r=r.set("targetUser",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeSponsor(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sendAccountActivationLinkEmail(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==s)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=s&&(a=a.set("language",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sendPasswordResetLinkEmail(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==s)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=s&&(a=a.set("language",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}setSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSponsorshipForMember(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("sponsoredMember",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}setStatus(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sponsorMember(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}updateSponsorshipValidity(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}validateMemberAsync(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),w=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}createOwner(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateOwner was null or undefined when calling createOwner.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("owner",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllOwners(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getOwnerById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getOwnerByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("owner",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}sentMessageToRTWithMemberQueue(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("memberId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=s&&(a=a.set("text",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sentMessageToRTWithQueue(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("queue",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sentMessageToRTWithVo(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("voId",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sentMessageToRTWithVoQueue(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("voId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=s&&(a=a.set("text",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),y=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addApplicationMailForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addApplicationMailForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}approveApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}consolidateIdentityUsingToken(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("token",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}copyFormFromGroupToGroup(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyFormFromGroupToVo(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyFormFromVoToGroup(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyFormFromVoToVo(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromGroupToGroup(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromGroupToVo(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromVoToGroup(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromVoToVo(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createApplicationFormInGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createApplicationFormInVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteApplicationMailForGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteApplicationMailForVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteGroupsFromAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationDataById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationMailsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationMailsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationsForGroup(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),e&&e.forEach(t=>{a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=s&&(a=a.set("dateTo",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getApplicationsForMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getApplicationsForVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(t=>{a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=s&&(a=a.set("dateTo",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getConsolidatorToken(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFormItemsForGroupWithType(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFormItemsForVoWithType(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}rejectApplication(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),null!=e&&(o=o.set("reason",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sendInvitation(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let a=new n.LE({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=s&&(a=a.set("name",s)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sendInvitationForGroup(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let c=new n.LE({encoder:this.encoder});null!=i&&(c=c.set("voId",i)),null!=s&&(c=c.set("groupId",s)),null!=o&&(c=c.set("name",o)),null!=t&&(c=c.set("email",t)),null!=e&&(c=c.set("language",e));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}sendInvitationGroupToExistingUser(t,e,i,s="body",o=!1){let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("userId",t)),null!=e&&(r=r.set("voId",e)),null!=i&&(r=r.set("groupId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendInvitationToExistingUser(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userId",t)),null!=e&&(o=o.set("voId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sendMessage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSendingEnabled(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}submitApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateApplicationMail(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}verifyApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),A=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}activateGroupResourceAssignment(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}addAdminToGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addAdminToUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addResourceSelfServiceGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addResourceSelfServiceUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}allowGroupsToResources(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let r=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("groups[]",t)}),e&&e.forEach(t=>{r=r.append("resources[]",t)}),null!=i&&(r=r.set("async",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}assignGroupToResource(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}assignGroupToResources(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("resources[]",t)}),null!=i&&(r=r.set("async",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}assignGroupsToResource(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let r=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("groups[]",t)}),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}assignResourceTagToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}assignService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResource(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("name",i)),null!=s&&(a=a.set("description",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}createResourceTagWithResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResourceTagWithTagName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("tagName",t)),null!=e&&(o=o.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deactivateGroupResourceAssignment(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteAllResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAdmins(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllResourcesByResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllResourcesTagsForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllResourcesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedUsersOfResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedGroups(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesWithMemberService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedServicesToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getBansForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getBansForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEnrichedResourceById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEnrichedResourcesForFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEnrichedResourcesForVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupAssignments(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAssignments(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceBan(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourceByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("name",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourcesCountForAll(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesCountForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourcesFromVoWhereUserIsAdmin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourcesWhereGroupIsAdmin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("group",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResourcesWhereUserIsAdmin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("user",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRichAdmins(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),e&&e.forEach(t=>{a=a.append("specificAttributes",t)}),null!=i&&(a=a.set("allUserAttributes",i)),null!=s&&(a=a.set("onlyDirectAdmins",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRichResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeAllResourceTagsFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeBanByMemberAndResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupAdminResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupFromResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupFromResources(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupsFromResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeResourceSelfServiceGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceSelfServiceUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceTagFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserAdminResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unallowGroupsFromResources(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),e&&e.forEach(t=>{o=o.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}updateResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),v=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addDestination(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==s)throw new Error("Required parameter type was null or undefined when calling addDestination.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("service",t)),null!=e&&(c=c.set("facility",e)),null!=i&&(c=c.set("destination",i)),null!=s&&(c=c.set("type",s)),null!=o&&(c=c.set("propagationType",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}addDestinationToMultipleServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addDestinationsForAllServicesOnFacility(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==i)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("destination",e)),null!=i&&(a=a.set("type",i)),null!=s&&(a=a.set("propagationType",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}addRequiredAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addRequiredAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addServiceToServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("servicesPackage",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}blockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}blockAllServicesOnDestinationByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("destination",t)),null!=e&&(o=o.set("destinationType",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}blockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}blockServiceOnDestination(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}blockServiceOnDestinationWithNameAndType(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("destinationType",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}blockServiceOnFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createService(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==i)throw new Error("Required parameter script was null or undefined when calling createService.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e)),null!=i&&(r=r.set("script",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createServiceWithService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateService was null or undefined when calling createServiceWithService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackageByNameAndDescription(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling deleteService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}forceServicePropagation(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllDestinations(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRichDestinationsForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllRichDestinationsForService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getDataWithGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getDataWithVos(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getDestinations(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getDestinationsCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAssignedServicesForGUI(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFlatData(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getHashedDataWithGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getHashedHierarchicalData(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getHierarchicalData(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRichDestinations(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getServiceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServiceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServices(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getServicesBlockedOnDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesBlockedOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesByAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesFromServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesPackageById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesPackageByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesPackages(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isServiceBlockedOnDestination(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}isServiceBlockedOnFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}planServicePropagation(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeAllDestinations(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeAllRequiredAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeDestination(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==s)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("destination",i)),null!=s&&(a=a.set("type",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeRequiredAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeRequiredAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeServiceFromServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("servicesPackage",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}unblockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}unblockAllServicesOnDestinationByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("destination",t)),null!=e&&(o=o.set("destinationType",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}unblockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}unblockServiceOnDestinationById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}unblockServiceOnDestinationByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("destinationType",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}unblockServiceOnFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}updateService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateService was null or undefined when calling updateService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),T=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}countTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}deleteTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskIdObject was null or undefined when calling deleteTask.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResultIdObject was null or undefined when calling deleteTaskResultById.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllFacilitiesStates(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllResourcesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("voId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityServicesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTask(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getTask.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getTaskById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("taskResult",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResults(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTaskResultsByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("task",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultsForDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("destinations[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultsForGUIByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("task",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultsForGUIByTaskAndDestination(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("task",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getTaskResultsForGUIByTaskOnlyNewest(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("task",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isThereSuchTask(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}listAllTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}listAllTasksForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}suspendTasksPropagation(t,e="body",i=!1){if(null==t)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("suspend",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),C=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addSpecificUserOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addUserExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}changeNonAuthzPasswordByToken(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("token",t)),null!=e&&(r=r.set("password",e)),null!=i&&(r=r.set("lang",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}changePasswordForLogin(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("login",t)),null!=e&&(c=c.set("namespace",e)),null!=i&&(c=c.set("newPassword",i)),null!=s&&(c=c.set("oldPassword",s)),null!=o&&(c=c.set("checkOldPassword",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}changePasswordForUser(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("namespace",e)),null!=i&&(c=c.set("newPassword",i)),null!=s&&(c=c.set("oldPassword",s)),null!=o&&(c=c.set("checkOldPassword",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}checkPasswordResetRequestByTokenIsValid(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("token",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}checkPasswordStrength(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("password",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createAlternativePassword(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==s)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("description",e)),null!=i&&(a=a.set("loginNamespace",i)),null!=s&&(a=a.set("password",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}createServiceUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAlternativePassword(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("loginNamespace",e)),null!=i&&(r=r.set("passwordId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}deletePasswordForLogin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deletePasswordForUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findRichUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findRichUsersWithAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("searchString",t)),e&&e.forEach(t=>{o=o.append("attrsNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsForFacilityWhereUserIsActive(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsForResourceWhereUserIsActive(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsInVoWhereUserIsAdmin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getPendingPreferredEmailChanges(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUserWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUsersWithAttributesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUsersWithoutVoWithAttributes(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("attrsNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getSpecificUsersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getSponsorsForMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsorsForMemberByVoAndLogin(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),s&&s.forEach(t=>{a=a.append("attrNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getUserByExtSourceNameAndExtLogin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("extLogin",t)),null!=e&&(o=o.set("extSourceName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUsersBySpecificUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("specificUser",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosWhereUserIsMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isLoginAvailable(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("loginNamespace",t)),null!=e&&(o=o.set("login",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}loginExist(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSpecificUserOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserExtSource(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("userExtSource",e)),null!=i&&(r=r.set("force",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}requestPreferredEmailChange(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let u=new n.LE({encoder:this.encoder});null!=t&&(u=u.set("user",t)),null!=e&&(u=u.set("email",e)),null!=i&&(u=u.set("lang",i)),null!=s&&(u=u.set("linkPath",s)),null!=o&&(u=u.set("customUrl",o)),null!=r&&(u=u.set("idpFilter",r));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(l=l.set("Accept",h)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{params:u,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:c})}reservePasswordForLogin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}reservePasswordForUser(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}reserveRandomPassword(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}updateUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}validatePasswordForLogin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}validatePasswordForUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}validatePreferredEmailChangeWithToken(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("token",t)),null!=e&&(o=o.set("u",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),S=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getAppsConfig(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGuiConfiguration(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunRPCVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatistics(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatus(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunSystemTimeInMillis(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),E=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addSponsorRoleToGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addSponsorRoleToUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addVoAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addVoAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createVoWithName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("shortName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createVoWithVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findCandidates(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("id",t)),null!=e&&(r=r.set("searchString",e)),null!=i&&(r=r.set("maxNumOfResults",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findCandidatesForGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getCompleteCandidatesForGroup(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getCompleteCandidatesForVo(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMyVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRichAdminsForVo(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==o)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("vo",t)),null!=e&&(c=c.set("role",e)),i&&i.forEach(t=>{c=c.append("specificAttributes",t)}),null!=s&&(c=c.set("allUserAttributes",s)),null!=o&&(c=c.set("onlyDirectAdmins",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}getVoAdminGroups(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("role",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAdminUsers(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("role",e)),null!=i&&(r=r.set("onlyDirectAdmins",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getVoBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoBansForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoByShortName(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("shortName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoMembersCountsByStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeSponsorRoleFromGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSponsorRoleFromUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}setVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const k={WRITE:"WRITE",WRITEVO:"WRITE_VO",WRITEPUBLIC:"WRITE_PUBLIC",READ:"READ",READVO:"READ_VO",READPUBLIC:"READ_PUBLIC"};var x,R,I,O;!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(x||(x={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(R||(R={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(I||(I={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(O||(O={}));const P={HTMLCOMMENT:"HTML_COMMENT",SUBMITBUTTON:"SUBMIT_BUTTON",AUTOSUBMITBUTTON:"AUTO_SUBMIT_BUTTON",FROMFEDERATIONSHOW:"FROM_FEDERATION_SHOW",FROMFEDERATIONHIDDEN:"FROM_FEDERATION_HIDDEN",PASSWORD:"PASSWORD",VALIDATEDEMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDEDGROUPAPPLICATION:"EMBEDDED_GROUP_APPLICATION"};let D=(()=>{class t{constructor(t,e){if(t)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!e)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:t,providers:[{provide:a,useFactory:e}]}}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(t,12),o.LFG(n.eN,8))},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[c,u,l,h,d,p,g,f,m,b,w,_,y,A,v,T,C,S,E],imports:[[]]}),t})()},22280:function(t,e,i){"use strict";i.d(e,{r5:function(){return a.r},d4:function(){return o},dp:function(){return r.d}});var n=i(61511),s=i(31572);let o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez]]}),t})();var r=i(22196),a=(i(83787),i(95603));i(91322),i(63720),i(1157),i(48853)},83787:function(t,e,i){"use strict";i.d(e,{a:function(){return r}});var n=i(88426),s=i(31572),o=i(48160);let r=(()=>{class t{constructor(t,e){this.translate=t,this.storage=e}transform(t,e="en"){const i=this.storage.get("custom_labels");if(i){const n=Object.keys(i);for(const i of n){const n=this.storage.get("custom_labels",i);if(n.label===t)return n[e]}}return t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.sK,16),s.Y36(n.d6,16))},t.\u0275pipe=s.Yjl({name:"customTranslate",type:t,pure:!0}),t})()},95603:function(t,e,i){"use strict";i.d(e,{r:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t,e){return e?`/organizations/${t.voId}/resources/${t.id}`:`/facilities/${t.facilityId}/resources/${t.id}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"getResourceRoute",type:t,pure:!0}),t})()},51392:function(t,e,i){"use strict";i.d(e,{F:function(){return r}});var n=i(27613),s=i(67004),o=i(31572);let r=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const e=(0,n.IL)(t.attributes,s.r.GROUP_SYNC_ENABLED),i=(0,n.IL)(t.attributes,s.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const o=i.value;if("true"===e.value){const e=(0,n.IL)(t.attributes,s.r.GROUP_LAST_SYNC_STATE),i=(0,n.IL)(t.attributes,s.r.GROUP_LAST_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"red":null!==r&&r.trim().length>0?"green":""}if(o){const e=(0,n.IL)(t.attributes,s.r.GROUP_LAST_STRUCTURE_SYNC_STATE),i=(0,n.IL)(t.attributes,s.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"red":null!==r&&r.trim().length>0?"green":""}return""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncIconColor",type:t,pure:!0}),t})()},52984:function(t,e,i){"use strict";i.d(e,{J:function(){return r}});var n=i(67004),s=i(27613),o=i(31572);let r=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"";const e=(0,s.IL)(t.attributes,n.r.GROUP_SYNC_ENABLED),i=(0,s.IL)(t.attributes,n.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"";const o=i.value;if("true"===e.value){const e=(0,s.IL)(t.attributes,n.r.GROUP_LAST_SYNC_STATE),i=(0,s.IL)(t.attributes,n.r.GROUP_LAST_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"sync_problem":(null!==r&&r.trim(),"sync")}if(o){const e=(0,s.IL)(t.attributes,n.r.GROUP_LAST_STRUCTURE_SYNC_STATE),i=(0,s.IL)(t.attributes,n.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"sync_problem":(null!==r&&r.trim(),"sync")}return"sync_disabled"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncIcon",type:t,pure:!0}),t})()},44385:function(t,e,i){"use strict";i.d(e,{r:function(){return r}});var n=i(27613),s=i(67004),o=i(31572);let r=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const e=(0,n.IL)(t.attributes,s.r.GROUP_SYNC_ENABLED),i=(0,n.IL)(t.attributes,s.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const o=i.value;if("true"===e.value){const e=(0,n.IL)(t.attributes,s.r.GROUP_LAST_SYNC_STATE),i=(0,n.IL)(t.attributes,s.r.GROUP_LAST_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==r&&r.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(o){const e=(0,n.IL)(t.attributes,s.r.GROUP_LAST_STRUCTURE_SYNC_STATE),i=(0,n.IL)(t.attributes,s.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==r&&r.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncToolTip",type:t,pure:!0}),t})()},63720:function(t,e,i){"use strict";i.d(e,{D:function(){return o}});var n=i(27613),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.g$)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"memberEmail",type:t,pure:!0}),t})()},1157:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var n=i(27613),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.lt)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"memberLogins",type:t,pure:!0}),t})()},99197:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var n=i(27613),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.Gw)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"memberOrganization",type:t,pure:!0}),t})()},74842:function(t,e,i){"use strict";i.d(e,{u:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){switch(t){case"VALID":return"green";case"INVALID":return"red";default:return""}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatusIconColor",type:t,pure:!0}),t})()},37043:function(t,e,i){"use strict";i.d(e,{f:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){switch(t){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatusIcon",type:t,pure:!0}),t})()},91322:function(t,e,i){"use strict";i.d(e,{i:function(){return o}});var n=i(27613),s=i(31572);let o=(()=>{class t{transform(t,e){let i=null,s=null;null!==t.memberAttributes&&(i=t.memberAttributes.find(t=>"membershipExpiration"===t.friendlyName),s=t.memberAttributes.find(t=>"groupMembershipExpiration"===t.friendlyName));let o="";return o=e?`\n Group status: ${(0,n.Oe)(t.groupStatus)}, Expiration: ${s&&s.value?s.value:"never"}`:`Status: ${(0,n.Oe)(t.status,t.groupStatus)}\n Vo status: ${(0,n.Oe)(t.status)}, Expiration: ${i&&i.value?i.value:"never"}`,o}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"memberStatusTooltip",type:t,pure:!0}),t})()},58506:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var n=i(61511),s=i(31572);let o=(()=>{class t{transform(t,e){return"voRules"===t?"Vo rules":"groupRules"===t?"Group rules":t&&"never"!==t.toLowerCase()?(0,n.p6)(t.replace(" ","T"),"d.M.yyyy "+(e?"H:mm:ss":""),"en"):"never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"parseDate",type:t,pure:!0}),t})()},48853:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(27613),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.te)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"technicalOwners",type:t,pure:!0}),t})()},22196:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"userFullName",type:t,pure:!0}),t})()},88426:function(t,e,i){"use strict";i.d(e,{yC:function(){return R},F5:function(){return k},sM:function(){return P},e8:function(){return w},EB:function(){return T},ly:function(){return L},xw:function(){return D},x4:function(){return r},v0:function(){return y},Ct:function(){return Z},SZ:function(){return I},V6:function(){return x},d6:function(){return b},UA:function(){return M}});var n=i(33642),s=i(14732),o=i(31572);let r=(()=>{class t{constructor(t){this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(t){this.principal=t,this.initData(t)}setPerunPolicies(t){this.perunPolicies=t}getPerunPolicies(){return this.perunPolicies}isAuthorized(t,e){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(t);let n=[];for(const o of i)n=n.concat(o.perunRoles);const s=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,s)}resolveAuthorization(t,e){for(const i of t){let t=!0;for(const n of Object.keys(i)){const s=i[n];if(null===s)this.principalRoles.has(n)||(t=!1);else if(e[s]){for(const i of e[s])if(!this.principalHasRole(n,s,i)){t=!1;break}}else t=!1;if(!t)break}if(t)return!0}return!1}fetchAllRelatedObjects(t){const e={};for(const i of t){let t=i.beanName;switch(i.beanName.startsWith("Rich")&&(t=i.beanName.substring(4)),e[t]?e[t].push(i.id):e[t]=[i.id],t){case"Member":e.User?e.User.push(i.userId):e.User=[i.userId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Group":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Resource":e.Facility?e.Facility.push(i.facilityId):e.Facility=[i.facilityId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"ResourceTag":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId]}}return e}principalHasRole(t,e,i){let n=e;return e.startsWith("Rich")&&(n=e.substring(4)),!(!this.principal.roles[t]||!this.principal.roles[t][n])&&this.principal.roles[t][n].includes(Number(i.toString()))}fetchPolicyWithAllIncludedPolicies(t){const e=new Map;let i=[];for(i.push(t);0!==i.length;){const n=i.shift();if(e.has(n)){console.log("Policy {} creates a cycle in the included policies of the policy {}",n,t);continue}const s=this.getPerunPolicy(n);if(!s)return[];e.set(n,s),i=i.concat(s.includePolicies)}const n=[];for(const s of e.values())n.push(s);return n}getPerunPolicy(t){for(const e of this.perunPolicies)if(e.policyName===t)return e;return console.log("policy with name"+t+"was not found"),null}canManageFacilities(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.PERUNOBSERVER,s.u.FACILITYADMIN,s.u.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(s.u.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.VOADMIN)}isThisVoAdminOrObserver(t){return this.editableVos.includes(t)||this.observableVos.includes(t)||this.hasAtLeastOne(s.u.PERUNADMIN,s.u.PERUNOBSERVER)}isThisVoAdmin(t){return this.editableVos.includes(t)||this.principalRoles.has(s.u.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(s.u.SPONSOR)}isThisGroupAdmin(t){return this.editableGroups.includes(t)||this.principalRoles.has(s.u.PERUNADMIN)}isGroupAdminInThisVo(t){return this.hasGroupInTheseVos.includes(t)}isFacilityAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.FACILITYADMIN)}isThisFacilityAdmin(t){return this.editableFacilities.includes(t)||this.principalRoles.has(s.u.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(s.u.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.VOOBSERVER,s.u.PERUNOBSERVER)}isThisVoObserver(t){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.PERUNOBSERVER)||this.observableVos.includes(t)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((t,e)=>{this.authzSevice.getAllRolesManagementRules().subscribe(e=>{this.allRolesManagementRules=e,t()},t=>e(t))})}assignAvailableRoles(t,e){this.allRolesManagementRules.forEach(i=>{i.primaryObject===e&&t.push(i.roleName)}),t.sort(),"Vo"===e&&this.voCustomSort(t)}isManagerPagePrivileged(t){const e=[];let i=t.beanName;i.startsWith("Rich")&&(i=i.substr(4)),this.assignAvailableRoles(e,i);const n=new Map;this.getRolesAuthorization(e,t,n);for(const s of n.values())if(s.readAuth||s.manageAuth)return!0;return!1}getRolesAuthorization(t,e,i){for(const n of t){let t=[],s=[],o=[];for(const e of this.allRolesManagementRules)if(e.roleName===n){t=t.concat(e.privilegedRolesToRead),s=s.concat(e.privilegedRolesToManage);for(const t of Object.keys(e.entitiesToManage))o="User"===t?[t].concat(o):o.concat(t);break}const r=this.fetchAllRelatedObjects([e]),a=this.resolveAuthorization(t,r),c=this.resolveAuthorization(s,r);i.set(n,{readAuth:a,manageAuth:c,modes:o})}}voCustomSort(t){for(let e=0;e{class t{constructor(t){this.dialogRef=t}close(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(p.so))},t.\u0275cmp=o.Xpm({type:t,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(t,e){1&t&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.TgZ(3,"div",1),o._uU(4),o.ALo(5,"translate"),o.qZA(),o.TgZ(6,"div",2),o.TgZ(7,"div",3),o.TgZ(8,"button",4),o.NdJ("click",function(){return e.close()}),o._uU(9),o.ALo(10,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),o.xp6(3),o.hij(" ",o.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),o.xp6(5),o.hij(" ",o.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[p.uh,p.xY,p.H8,g.lW],pipes:[f.X$],styles:[""]}),t})(),b=(()=>{class t{constructor(){this.branding=""}setInstanceConfig(t){this.instanceConfig=t}setDefaultConfig(t){this.defaultConfig=t}setPerunPrincipal(t){this.principal=t}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(t){this.initialPageId=t}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(t){this.branding=t}skipOidc(){return this.get("skip_oidc")}get(...t){let e;if(""!==this.branding){const i=this.instanceConfig.brandings[this.branding];for(let n=0;n{class t{constructor(t,e,i,n){this.injector=t,this.store=e,this.dialog=i,this.route=n,this.userSet=new o.vpe,this.user=null,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(h.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(t=>{t.idpFilter&&(this.filterShortname=t.idpFilter)})}getClientSettings(){const t=this.setIdpFilter();return{authority:this.store.get("oidc_client","oauth_authority"),client_id:this.store.get("oidc_client","oauth_client_id"),redirect_uri:this.store.get("oidc_client","oauth_redirect_uri"),post_logout_redirect_uri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),response_type:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),filterProtocolClaims:!0,loadUserInfo:this.store.get("oidc_client","oauth_load_user_info"),automaticSilentRenew:!0,silent_redirect_uri:this.store.get("oidc_client","oauth_silent_redirect_uri"),extraQueryParams:{acr_values:t}}}setIdpFilter(){const t=location.search.substr(1).split("&");this.filterShortname=null;const e=this.store.get("oidc_client","filters");if(!e)return null;let i=null;return t.forEach(t=>{const n=t.split("=");"idpFilter"===n[0]&&e[n[1]]&&(this.filterShortname=n[1],i=e[n[1]])}),e.default&&!i?(this.filterShortname="default",e.default):i}getUserManager(){return this.manager}startIdpFilterKeeper(){this.router.events.pipe((0,u.h)(t=>t instanceof h.m2)).subscribe(()=>{const t={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===t.idpFilter?{}:t,queryParamsHandling:"merge",replaceUrl:!0})})}loadConfigData(){this.manager=new a.UserManager(this.getClientSettings()),this.setUser(),this.manager.events.addUserLoaded(t=>{this.user=t}),this.manager.events.addAccessTokenExpired(()=>{const t=(0,d.kZ)();t.width="450px",this.dialog.open(m,t).afterClosed().subscribe(()=>{this.startAuthentication().then(()=>{})})})}verifyAuth(){const t=location.pathname,e=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(t,e)}logout(){this.manager.signoutRedirect().catch(function(t){console.log(t)})}isLoggedInPromise(){return(0,c.D)(this.manager.getUser()).pipe((0,l.U)(t=>!!t&&!t.expired))}isLoggedIn(){return null!=this.user&&!this.user.expired}getClaims(){return this.user.profile}getAuthorizationHeaderValue(){return this.user?"Bearer "+this.user.access_token:""}startAuthentication(){return this.manager.signinRedirect()}completeAuthentication(){return this.manager.signinRedirectCallback().then(t=>{this.user=t,this.userSet.emit(this.user)})}startSigninMainWindow(){this.manager.signinRedirect({data:this.redirectUrl}).then(function(){console.log("signinRedirect done")}).catch(function(t){console.log(t)})}setUser(){this.manager.getUser().then(t=>{this.user=t})}isPotentiallyValidPath(t){const e=["/home","/organizations","/facilities","/myProfile","/admin","/login"];if("/"===t)return!0;for(const i of e)if(t.startsWith(i))return!0;return!1}verifyAuthentication(t,e){return this.isLoggedInPromise().toPromise().then(i=>!!i||(this.isPotentiallyValidPath(t)?(sessionStorage.setItem("auth:redirect",t),sessionStorage.setItem("auth:queryParams",e),!1):new Promise((t,e)=>e("Invalid path"))))}handleAuthCallback(){return this.completeAuthentication().then(()=>!0)}redirectToOriginDestination(){const t=sessionStorage.getItem("mfa_route");if(t)return this.router.navigate([t],{replaceUrl:!0});let e=sessionStorage.getItem("auth:redirect");const i=sessionStorage.getItem("auth:queryParams");let n=[];i&&(n=i.split("&"));const s={};return n.forEach(t=>{const e=t.split("=");s[e[0]]=e[1]}),e&&"/login"!==e||(e="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),s.idpFilter&&(this.filterShortname=s.idpFilter),this.router.navigate([e],{queryParams:s,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(o.zs3),o.LFG(b),o.LFG(p.uw),o.LFG(h.gz))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_=(()=>{class t{constructor(t){this.dialogRef=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(p.so))},t.\u0275cmp=o.Xpm({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(o.TgZ(0,"h2",0),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE")))},directives:[p.xY],pipes:[f.X$],styles:[""]}),t})(),y=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.storeService=e,this.authResolver=i,this.authzService=n,this.dialog=s,this.router=o,this.loginScreenShown=!1}setLoginScreen(t){this.loginScreenShown=t}isLoginScreenShown(){return this.loginScreenShown}verifyAuth(){return this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(t=>t(!0)):this.authService.verifyAuth()}startAuth(){return this.authService.startAuthentication()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(t=>{if(null===t.user){const t=(0,d.kZ)();this.dialog.open(_,t)}else this.storeService.setPerunPrincipal(t),this.authResolver.init(t)})}handleAuthStart(){return this.storeService.get("auto_auth_redirect")?this.startAuth().then(()=>new Promise(()=>{})):(this.setLoginScreen(!0),this.router.navigate(["login"]).then(()=>null))}redirectToOriginDestination(){return this.authService.redirectToOriginDestination()}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(w),o.LFG(b),o.LFG(r),o.LFG(n.Ct),o.LFG(p.uw),o.LFG(h.F0))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var A=i(43691),v=i(30269);let T=(()=>{class t{constructor(t,e){this.matIconRegistry=t,this.domSanitizer=e,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/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/settings1-blue.svg",name:"settings-blue"},{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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(t=>{this.matIconRegistry.addSvgIcon(t.name,this.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(A.jv),o.LFG(v.H7))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})();var C=i(29063),S=i(31225),E=i(66599);let k=(()=>{class t{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const t=this.handleNextError;return this.handleNextError=!0,t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),x=(()=>{class t{constructor(t){this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new o.vpe}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(t,e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}showError(t,e,i,n,s){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:s,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(f.sK))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),R=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.apiRequestConfiguration=e,this.notificator=i,this.store=n,this.dialog=s,this.initAuthService=o}intercept(t,e){const i=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==t.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()){const t=(0,d.kZ)();t.width="450px",this.dialog.open(m,t).afterClosed().subscribe(()=>{this.authService.startAuthentication().then(()=>{})})}t=t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});const n=this.apiRequestConfiguration.shouldHandleError(),s="POST"===t.method&&!this.store.skipOidc();return e.handle(t).pipe((0,E.b)(t=>{t instanceof C.Zn&&s&&this.initAuthService.loadPrincipal()},e=>{const i=this.formatErrors(e,t);return void 0===i?(0,S._)(e):n?void this.notificator.showRPCError(i):(0,S._)(i)}))}formatErrors(t,e){let i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.call=e.url,i.payload=e.body,i}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(w),o.LFG(k),o.LFG(x),o.LFG(b),o.LFG(p.uw),o.LFG(y))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{constructor(){this.notificationData=[],this.newNotificationsCount=0}storeNotification(t){this.newNotificationsCount++,this.notificationData.push(t)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var O=i(47727);let P=(()=>{class t{constructor(t,e,i,n){this.http=t,this.notificator=e,this.authService=i,this.storeService=n}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}formatErrors(t,e,i,n){const s=t.error;return s.call=e,s.payload=i,n&&this.notificator.showRPCError(t.error),(0,S._)(s)}getHeaders(){let t=new C.WM;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue()),t}get(t,e=new C.LE,i=!0){const n=`${this.getApiUrl()}${t}`;return this.http.get(n,{headers:this.getHeaders()}).pipe((0,O.K)(t=>this.formatErrors(t,n,null,i)))}put(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);return this.http.put(n,s,{headers:this.getHeaders()}).pipe((0,O.K)(t=>this.formatErrors(t,n,s,i)))}post(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(n,s,{headers:o}).pipe((0,O.K)(t=>this.formatErrors(t,n,s,i)))}delete(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe((0,O.K)(t=>this.formatErrors(t,i,null,e)))}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(C.eN),o.LFG(x),o.LFG(w),o.LFG(b))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),D=(()=>{class t{constructor(t){this.router=t,this.lastState="forward",this.history=new Set,t.events.subscribe(t=>{t instanceof h.OD&&("popstate"===t.navigationTrigger?this.history.has(t.restoredState.navigationId)?(this.lastState="back",this.history.delete(t.restoredState.navigationId)):(this.lastState="forward",this.history.add(t.id)):(this.history.add(t.id),this.lastState="forward"))})}forceNavigate(t,e){if(null===t)return;let i="";t.forEach(t=>i+="/"+t),i.length>0&&(i=i.substring(1)),void 0===e&&(e={}),e.queryParams={redirectTo:i},this.router.navigate(["redirect"],e)}getLastState(){return this.lastState}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(h.F0))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),M=(()=>{class t{constructor(){}isAllSelectedWithDisabledCheckbox(t,e,i,n,s,o,r,a){return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=s*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?o.data.length:o.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),o.sortData(o.filteredData,r).forEach(t=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?c(t)&&this.pageStart<=this.pageIterator&&this.pageIterator{class t{constructor(t){this.membersService=t}getMembers(t,e,i,n,s,o,r,a,c,u){return this.membersService.getMembersPage({vo:t,attrNames:e,query:{pageSize:s,offset:n*s,order:i,sortColumn:o,statuses:r,searchString:a,groupId:c,groupStatuses:u}})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.uq))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var N=i(78512),z=i(40878),F=i(11520);class Z{constructor(t,e){this.dynamicPaginatingService=t,this.authzService=e,this.membersSubject=new N.X([]),this.loadingSubject=new N.X(!1),this.loading$=this.loadingSubject.asObservable(),this.allMemberCount=0,this.routeAuth=!0}loadMembers(t,e,i,n,s,o,r,a,c,u){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const l=this.latestQueryTime;this.dynamicPaginatingService.getMembers(t,e,i,n,s,o,r,a,c,u).pipe((0,O.K)(()=>(0,z.of)([])),(0,F.x)(()=>this.loadingSubject.next(!1))).subscribe(e=>{if(this.latestQueryTime<=l){const i=e.data;null!==i&&0!==i.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:t},i[0]])),this.allMemberCount=e.totalCount,this.membersSubject.next(e.data)}})}connect(){return this.membersSubject.asObservable()}disconnect(){this.membersSubject.complete(),this.loadingSubject.complete()}getData(){return this.membersSubject.value}}},67004:function(t,e,i){"use strict";i.d(e,{r:function(){return n}});let n=(()=>{class t{}return t.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",t.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",t.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",t.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",t.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",t.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",t.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",t.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",t.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",t.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",t.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",t.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",t.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",t.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",t.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",t.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",t.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",t.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",t.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",t.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",t.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",t})()},27613:function(t,e,i){"use strict";i.d(e,{Je:function(){return l},f7:function(){return h.f7},l9:function(){return d.l},sF:function(){return h.sF},XI:function(){return h.XI},aC:function(){return h.aC},fx:function(){return h.fx},dv:function(){return h.dv},i5:function(){return h.i5},Sd:function(){return h.Sd},pR:function(){return h.pR},ys:function(){return h.ys},O6:function(){return h.O6},MX:function(){return h.MX},oU:function(){return h.oU},IL:function(){return h.IL},Jc:function(){return h.Jc},Xn:function(){return h.Xn},kZ:function(){return h.kZ},v$:function(){return h.v$},x2:function(){return h.x2},vL:function(){return h.vL},Hm:function(){return h.Hm},Cz:function(){return h.Cz},sG:function(){return h.sG},g$:function(){return h.g$},bD:function(){return h.bD},lt:function(){return h.lt},Oe:function(){return h.Oe},hu:function(){return h.hu},Gw:function(){return h.Gw},te:function(){return h.te},kN:function(){return h.kN},$0:function(){return h.$0},OV:function(){return h.OV}});var n=i(73005),s=i(8055),o=i(43691),r=i(15980),a=i(48160),c=i(61511),u=i(31572);let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({providers:[],imports:[[n.TU,s.Tx,o.Ps,r.ot,a.aw,c.ez]]}),t})();var h=i(38457),d=i(82819)},38457:function(t,e,i){"use strict";i.d(e,{f7:function(){return a},g$:function(){return c},kN:function(){return u},$0:function(){return l},lt:function(){return h},bD:function(){return d},hu:function(){return p},Cz:function(){return g},te:function(){return f},ys:function(){return m},vL:function(){return b},sF:function(){return w},XI:function(){return _},OV:function(){return y},MX:function(){return A},oU:function(){return v},IL:function(){return T},Jc:function(){return C},v$:function(){return S},i5:function(){return E},kZ:function(){return k},dv:function(){return x},Hm:function(){return R},Oe:function(){return I},Gw:function(){return O},x2:function(){return P},sG:function(){return D},pR:function(){return M},Sd:function(){return L},Xn:function(){return N},O6:function(){return z},aC:function(){return F},fx:function(){return Z}});var n=i(64762),s=i(84608),o=i(61511),r=i(82051);const a=[5,10,25,100];function c(t){let e="";return t&&null!==t.userAttributes&&(t.userAttributes.forEach(t=>{"preferredMail"===t.friendlyName&&(e=t.value)}),e&&0===e.length&&null!==t.memberAttributes&&t.memberAttributes.forEach(t=>{"mail"===t.friendlyName&&null!==t.value&&(e=t.value)})),e}function u(t){let e="";return t&&t.userAttributes.forEach(t=>{"preferredMail"===t.friendlyName&&(e=t.value)}),e}function l(t){let e="";return t&&t.userAttributes&&t.userAttributes.filter(t=>"login-namespace"===t.baseFriendlyName).filter(t=>null!==t.value).forEach(t=>{e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function h(t){let e="";return t&&t.userAttributes&&t.userAttributes.filter(t=>"login-namespace"===t.baseFriendlyName).filter(t=>null!==t.value).forEach(t=>{e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function d(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function p(t){let e="";return null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function g(t){let e="";return t.split(/(?=[A-Z])/g).forEach(t=>{e=e.concat(t.toLowerCase()),e=e.concat(" ")}),e=e.charAt(0).toUpperCase()+e.slice(1,e.length-1),e}function f(t){let e="";for(const i of t)"technical"===i.type&&(e+=i.name+", ");return e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function m(t,e){return(0,n.mG)(this,void 0,void 0,function*(){var i;yield(i=t,new Promise(t=>setTimeout(t,i))),e()})}function b(t){return JSON.parse(localStorage.getItem(t))||[]}function w(t,e){if(null===localStorage.getItem(t)){const i=[];i.unshift(e.id),localStorage.setItem(t,JSON.stringify(i))}else{const i=JSON.parse(localStorage.getItem(t)),n=function(t,e){for(let i=0;i0&&i.splice(n,1),0!==n&&i.unshift(e.id),i.length>5&&i.pop(),localStorage.setItem(t,JSON.stringify(i))}}function _(t){if(null===localStorage.getItem("recent")){let e;e="Group"===t.beanName?[{id:t.id,name:t.shortName,type:t.beanName,voId:t.voId}]:[{id:t.id,name:t.name,type:t.beanName,voId:t.voId}],localStorage.setItem("recent",JSON.stringify(e))}else{const e=JSON.parse(localStorage.getItem("recent"));let i;i="Group"===t.beanName?{id:t.id,name:t.shortName,type:t.beanName,voId:t.voId}:{id:t.id,name:t.name,type:t.beanName,voId:t.voId};const n=function(t,e){for(let i=0;i0&&e.splice(n,1),0!==n&&e.unshift(i),e.length>5&&e.pop(),localStorage.setItem("recent",JSON.stringify(e))}}function y(t){let e="";return t&&t.userAttributes.forEach(t=>{"organization"===t.friendlyName&&(e=t.value)}),e}function A(t){return t.filter(t=>!t.namespace.includes("def:core"))}function v(t,e){const i=e.find(e=>e.id===t);return i?i.parentGroupId?v(i.parentGroupId,e).concat(i):[i]:[]}function T(t,e){for(const i of t)if(i.namespace+":"+i.friendlyName===e)return i;return null}function C(t){return null!=t.attributes["urn:perun:member:attribute-def:def:mail"]?t.attributes["urn:perun:member:attribute-def:def:mail"]:null!=t.attributes["urn:perun:user:attribute-def:def:preferredMail"]?t.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function S(t){return t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function(t){if(t.includes("/CN=")){const i=t.split("/");for(const t in i)if(t.startsWith("CN="))return e=t.substring(3),decodeURIComponent(e.replace(/\\x/g,"%"))}var e;return t}(t.userExtSource.extSource.name):t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function(t){switch(t){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":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":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"@mojeid.extidp.cesnet.cz":return"MojeID";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@elixir-europe.org":return"Elixir Europe";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return t}}(t.userExtSource.extSource.name):t.userExtSource.extSource.name}function E(t=["en","cs"]){const e={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{}};return t.forEach(t=>{e.message[t]={locale:t,subject:"",text:""}}),e}function k(){const t=new s.vA;return t.disableClose=!0,t.autoFocus=!1,t}function x(t){const e={applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null};for(const i of t)e.i18n[i]={locale:i,errorMessage:"",help:"",label:"",options:""};return e}function R(t){return"virt"===t.namespace.split(":")[4]}function I(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?t:"ACTIVE"}function O(t){let e="";return t&&null!==t.memberAttributes&&(t.memberAttributes.forEach(t=>{"organization"===t.friendlyName&&null!==t.value&&(e=t.value)}),0===e.length&&null!==t.userAttributes&&t.userAttributes.forEach(t=>{"organization"===t.friendlyName&&(e=t.value)})),e}function P(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName);return e&&e.value?e.value:"Never"}function D(t){return t&&"never"!==t.toLowerCase()?(0,o.p6)(t,"d.M.yyyy","en"):t}function M(t,e,i,n){const s=e.active,o=e.direction;return s&&""!==o?t.sort((t,e)=>{const r=i(t,s,n),a=i(e,s,n);return new Intl.Collator("cs",{numeric:!0}).compare(r,a)*("asc"===o?1:-1)}):t}function L(t,e,i,n,s,o){e=e.toLowerCase();let r="";return i.forEach(e=>{r+=";"+n(t,e,s)}),o&&(r+=";"+n(t,"uuid",s)),-1!==r.toLowerCase().indexOf(e)}function N(t,e,i,n){const s=[],o=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(t=>!o.includes(t)),t.forEach(t=>{const o={};e.forEach(e=>{var s;o[e]=(null!==(s=i(t,e,n))&&void 0!==s?s:"").split('"').join("''").trim()}),s.push(o)}),s}function z(t,e="csv",i="export"){switch(e){case"csv":{const n=(t,e)=>null===e?"":e,s=Object.keys(t[0]),o=t.map(t=>s.map(e=>JSON.stringify(t[e],n)).join(","));o.unshift(s.join(",").split(" ").join("_").split('"').join("''"));const a=o.join("\r\n"),c=new Blob([a],{type:"text/csv"});(0,r.saveAs)(c,`${i}.${e}`)}}}function F(t,e){return t.name.toLowerCase()>e.name.toLowerCase()?1:t.name.toLowerCase()===e.name.toLowerCase()?0:-1}function Z(t,e){var i,n,s,o;let r,a;return t.user?(r=t.user.lastName?t.user.lastName:null!==(i=t.user.firstName)&&void 0!==i?i:"",a=e.user.lastName?e.user.lastName:null!==(n=e.user.firstName)&&void 0!==n?n:""):(r=t.lastName?t.lastName:null!==(s=t.firstName)&&void 0!==s?s:"",a=e.lastName?e.lastName:null!==(o=e.firstName)&&void 0!==o?o:""),r>a?1:r===a?0:-1}},82819:function(t,e,i){"use strict";i.d(e,{l:function(){return g}});var n=i(31572),s=i(73005),o=i(38457),r=i(61511),a=i(15980),c=i(8055),u=i(43691),l=i(48160);let h=(()=>{class t{constructor(){this.exportData=new n.vpe}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"button",1),n.TgZ(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA(),n.qZA(),n.TgZ(4,"mat-menu",null,2),n.TgZ(6,"button",3),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.qZA(),n.TgZ(9,"mat-menu",null,4),n.TgZ(11,"button",5),n.NdJ("click",function(){return e.exportData.emit("csv")}),n._uU(12,"Csv"),n.qZA(),n.qZA(),n.qZA()),2&t){const t=n.MAs(5),e=n.MAs(10);n.xp6(1),n.Q6J("matMenuTriggerFor",t),n.xp6(5),n.Q6J("matMenuTriggerFor",e),n.xp6(1),n.hij(" ",n.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[a.lW,c.p6,u.Hw,c.VK,c.OP],pipes:[l.X$],styles:[""]}),t})();function d(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-table-options",6),n.NdJ("exportData",function(e){return n.CHM(t),n.oxw().exportData.emit(e)}),n.qZA()}}const p=["*"];let g=(()=>{class t{constructor(){this.hideExport=!1,this.page=new n.vpe,this.pageSizeOptions=o.f7,this.pageSize=5,this.dataLength=0,this.exportData=new n.vpe}set matPaginator(t){this.paginator=t}pageChanged(t){this.paginator.pageSize=t.pageSize,this.paginator.pageIndex=t.pageIndex,this.page.emit(t),this.paginator.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(t,e){if(1&t&&n.Gf(s.NW,7),2&t){let t;n.iGM(t=n.CRH())&&(e.matPaginator=t.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",pageSize:"pageSize",dataLength:"dataLength"},outputs:{page:"page",exportData:"exportData"},ngContentSelectors:p,decls:7,vars:8,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.TgZ(2,"mat-paginator",2),n.NdJ("page",function(t){return e.page.emit(t)}),n.qZA(),n.YNc(3,d,1,0,"perun-web-apps-table-options",3),n.qZA(),n.TgZ(4,"div",4),n.Hsn(5),n.qZA(),n.TgZ(6,"mat-paginator",5),n.NdJ("page",function(t){return e.pageChanged(t)}),n.qZA(),n.qZA()),2&t&&(n.xp6(2),n.Q6J("length",e.dataLength)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("ngIf",!e.hideExport),n.xp6(3),n.Q6J("length",e.paginator.length)("pageIndex",e.paginator.pageIndex)("pageSizeOptions",e.paginator.pageSizeOptions)("pageSize",e.paginator.pageSize))},directives:[s.NW,r.O5,h],styles:[""]}),t})()},39571:function(t,e,i){"use strict";i.d(e,{w:function(){return c}});var n=i(31572),s=i(61511),o=i(43691);function r(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," error "),n.qZA())}const a=["*"];let c=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:a,decls:3,vars:7,consts:[[1,"perun-alert","d-flex","align-items-center"],["class","perun-warn-alert-icon",4,"ngIf"],[1,"perun-warn-alert-icon"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.YNc(1,r,2,0,"mat-icon",1),n.Hsn(2),n.qZA()),2&t&&(n.ekj("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("info-alert","info"===e.alert_type),n.xp6(1),n.Q6J("ngIf","error"!==e.alert_type))},directives:[s.O5,o.Hw],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%], .perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-warn-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{color:#000;background-color:#fae2e2;border-left:4px solid;border-color:#d32f2f}"]}),t})()},22727:function(t,e,i){"use strict";i.d(e,{r:function(){return r}});var n=i(43691),s=i(61511),o=i(31572);let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.Ps,s.ez]]}),t})()},10709:function(t,e,i){"use strict";i.d(e,{l3:function(){return o},_j:function(){return n},LC:function(){return s},ZN:function(){return b},jt:function(){return a},pV:function(){return g},ru:function(){return c},F4:function(){return d},IO:function(){return f},vP:function(){return u},SB:function(){return h},oB:function(){return l},eR:function(){return p},X$:function(){return r},ZE:function(){return w},k1:function(){return _}});class n{}class s{}const o="*";function r(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function c(t,e=null){return{type:3,steps:t,options:e}}function u(t,e=null){return{type:2,steps:t,options:e}}function l(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function d(t){return{type:5,steps:t}}function p(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function g(t=null){return{type:9,options:t}}function f(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function m(t){Promise.resolve(null).then(t)}class b{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class w{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?m(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const _="!"},24621:function(t,e,i){"use strict";i.d(e,{rt:function(){return G},s1:function(){return S},$s:function(){return A},Qr:function(){return N},kH:function(){return H},mK:function(){return P},Em:function(){return E},tE:function(){return q},qV:function(){return O},qm:function(){return j},Kd:function(){return L},X6:function(){return z},yG:function(){return F}});var n=i(61511),s=i(31572),o=i(55959),r=i(87570),a=i(40878),c=i(75842),u=i(66599),l=i(47701),h=i(43835),d=i(79996),p=i(90611),g=i(19861),f=i(11353),m=i(36337);function b(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let w=0;const _=new Map;let y=null,A=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=v(e,i);"string"!=typeof e?(T(e),_.set(n,{messageElement:e,referenceCount:0})):_.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=v(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=_.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}y&&0===y.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=_.get(e);!function(t,e,i){const n=b(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute("cdk-describedby-host",""),i.referenceCount++}_removeMessageReference(t,e){const i=_.get(e);i.referenceCount--,function(t,e,i){const n=b(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const i=b(t,"aria-describedby"),n=_.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})();function v(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function T(t){t.id||(t.id="cdk-describedby-message-"+w++)}class C{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new o.xQ,this._typeaheadSubscription=r.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new o.xQ,this.change=new o.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,u.b)(t=>this._pressedLetters.push(t)),(0,l.b)(t),(0,h.h)(()=>this._pressedLetters.length>0),(0,d.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&i){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&i){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||(0,c.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.A&&e<=c.Z||e>=c.xE&&e<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class S extends C{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class E extends C{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let k=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===R(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=R(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||x(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(f.t4))},token:t,providedIn:"root"}),t})();function x(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function R(t){if(!x(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class I{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(t)}}let O=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new I(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(k),s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(k),s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),P=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=(0,g.Ig)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=(0,g.Ig)(t)}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(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,f.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(O),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[s.TTD]}),t})();"undefined"!=typeof Element&∈const D=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),M=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let L=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(L),s.Y36(m.yq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function z(t){return 0===t.buttons}function F(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const Z=new s.OlP("cdk-focus-monitor-default-options"),B=(0,f.i$)({passive:!0,capture:!0});let q=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=z(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{F(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=U(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=U(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=(0,g.fI)(t);if(!this._platform.isBrowser||1!==i.nodeType)return(0,a.of)(null);const n=(0,f.kV)(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new o.xQ,rootNode:n};return this._elementInfo.set(i,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=(0,g.fI)(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=(0,g.fI)(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=U(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===U(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,B),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,B)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,B),t.addEventListener("mousedown",this._documentMousedownListener,B),t.addEventListener("touchstart",this._documentTouchstartListener,B),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,B),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,B),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,B),t.removeEventListener("mousedown",this._documentMousedownListener,B),t.removeEventListener("touchstart",this._documentTouchstartListener,B),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(f.t4),s.LFG(n.K0,8),s.LFG(Z,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(f.t4),s.LFG(n.K0,8),s.LFG(Z,8))},token:t,providedIn:"root"}),t})();function U(t){return t.composedPath?t.composedPath()[0]:t.target}let H=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new s.vpe}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(q))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),j=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f.t4),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(f.t4),s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),G=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(j))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[f.ud,m.Q8]]}),t})()},22526:function(t,e,i){"use strict";i.d(e,{vT:function(){return a},Is:function(){return r}});var n=i(31572),s=i(61511);const o=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,n.f3M)(s.K0)}});let r=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new n.vpe,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(o,8))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(o,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},81391:function(t,e,i){"use strict";i.d(e,{i3:function(){return c},TU:function(){return r},Iq:function(){return u}});var n=i(61511),s=i(31572);class o{constructor(t,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),n=i.style;n.position="fixed",n.top=n.opacity="0",n.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}copy(){const t=this._textarea;let e=!1;try{if(t){const i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(i){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let r=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),i=e.copy();return e.destroy(),i}beginCopy(t){return new o(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})();const a=new s.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let c=(()=>{class t{constructor(t,e,i){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new s.vpe,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}copy(t=this.attempts){if(t>1){let e=t;const i=this._clipboard.beginCopy(this.text);this._pending.add(i);const n=()=>{const t=i.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(i),i.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(n,1))};n()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(r),s.Y36(s.R0b),s.Y36(a,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})()},19861:function(t,e,i){"use strict";i.d(e,{t6:function(){return r},Eq:function(){return a},Ig:function(){return s},HM:function(){return c},fI:function(){return u},su:function(){return o},du:function(){return l}});var n=i(31572);function s(t){return null!=t&&"false"!=`${t}`}function o(t,e=0){return r(t)?Number(t):e}function r(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function c(t){return null==t?"":"string"==typeof t?t:`${t}px`}function u(t){return t instanceof n.SBq?t.nativeElement:t}function l(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}},4230:function(t,e,i){"use strict";i.d(e,{P3:function(){return u},o2:function(){return a},Ov:function(){return d},A8:function(){return p},yy:function(){return l},eX:function(){return h},k:function(){return g},Z9:function(){return c}});var n=i(4710),s=i(40878),o=i(55959),r=i(31572);class a{}function c(t){return t&&"function"==typeof t.connect}class u extends a{constructor(t){super(),this._data=t}connect(){return(0,n.b)(this._data)?this._data:(0,s.of)(this._data)}disconnect(){}}class l{applyChanges(t,e,i,n,s){t.forEachOperation((t,n,o)=>{let r,a;if(null==t.previousIndex){const s=i(t,n,o);r=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==o?(e.remove(n),a=3):(r=e.get(n),e.move(r,o),a=2);s&&s({context:null==r?void 0:r.context,operation:a,record:t})})}detach(){}}class h{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,i,n,s){t.forEachOperation((t,o,r)=>{let a,c;null==t.previousIndex?(a=this._insertView(()=>i(t,o,r),r,e,n(t)),c=a?1:0):null==r?(this._detachAndCacheView(o,e),c=3):(a=this._moveView(o,r,e,n(t)),c=2),s&&s({context:null==a?void 0:a.context,operation:c,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,i,n){const s=this._insertViewFromCache(e,i);if(s)return void(s.context.$implicit=n);const o=t();return i.createEmbeddedView(o.templateRef,o.context,o.index)}_detachAndCacheView(t,e){const i=e.detach(t);this._maybeCacheView(i,e)}_moveView(t,e,i,n){const s=i.get(t);return i.move(s,e),s.context.$implicit=n,s}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let p=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const g=new r.OlP("_ViewRepeater")},88975:function(t,e,i){"use strict";i.d(e,{Zt:function(){return pt},Wj:function(){return ut},_t:function(){return ft},bA:function(){return Y}});var n=i(31572),s=i(61511),o=i(4253),r=i(11353),a=i(19861),c=i(55959),u=i(87570),l=i(38289),h=i(91741),d=i(48318),p=i(31906),g=i(25416),f=i(56238),m=i(79996),b=i(90611),w=i(66599),_=i(44689),y=i(22526);function A(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function v(t,e){const i=e?"":"none";A(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function T(t,e){const i=t.style;i.position=e?"":"fixed",i.top=i.opacity=e?"":"0",i.left=e?"":"-999em"}function C(t,e){return e?t+" "+e:t}function S(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function E(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function k(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function x(t,e,i){const{top:n,bottom:s,left:o,right:r}=t;return i>=n&&i<=s&&e>=o&&e<=r}function R(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function I(t,e,i,n){const{top:s,right:o,bottom:r,left:a,width:c,height:u}=t,l=c*e,h=u*e;return n>s-h&&na-l&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:k(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let o,r;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();o=t.top,r=t.left}else o=e.scrollTop,r=e.scrollLeft;const a=s.top-o,c=s.left-r;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&R(t.clientRect,a,c)}),s.top=o,s.left=r,{top:a,left:c}}}function P(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),i=this._dropContainer;if(!e)return void this._endDragSequence(t);i&&(i.isDragging()||i.isReceiving())||(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),t.preventDefault();const i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new O(i,s),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=(0,a.Ig)(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>v(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>(0,a.fI)(t)),this._handles.forEach(t=>v(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(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=(0,a.fI)(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,F),e.addEventListener("touchstart",this._pointerDown,z)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?(0,a.fI)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&U(this._rootElement),U(this._anchor),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(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),v(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),v(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&U(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&U(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){H(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,n=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();i.insertBefore(s,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),T(t,!1),this._document.body.appendChild(i.replaceChild(n,t)),this._getPreviewInsertionPoint(i,o).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),n=H(e),s=!n&&0!==e.button,o=this._rootElement,r=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||r)return;this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor||"",o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=k(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){T(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(n),o=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s,dropPoint:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s,dropPoint:n}),e.drop(this,i,this._initialIndex,this._initialContainer,o,s,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=j(s,this._document),this._previewRef=s,t.matchSize?G(n,e):n.style.transform=B(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=P(t),G(n,t.getBoundingClientRect()),this._initialTransform&&(n.style.transform=this._initialTransform)}return A(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),v(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=E(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),o=E(e,"transition-duration"),r=E(e,"transition-delay");return S(o[s])+S(r[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=j(this._placeholderRef,this._document)):i=P(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,o=H(e)?e.targetTouches[0]:e,r=this._getViewportScrollPosition();return{x:s.left-i.left+(o.pageX-s.left-r.left),y:s.top-i.top+(o.pageY-s.top-r.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=H(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,s=i.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=n,e.y=s,e.matrixTransform(t.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,o=this._previewRect,r=s.top+e,a=s.bottom-(o.height-e);i=q(i,s.left+t,s.right-(o.width-t)),n=q(n,r,a)}return{x:i,y:n}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-s.x),r=Math.abs(i-s.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),r>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,v(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,F),t.removeEventListener("touchstart",this._pointerDown,z)}_applyRootElementTransform(t,e){const i=B(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=C(i,this._initialTransform)}_applyPreviewTransform(t,e){var i;const n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,s=B(t,e);this._preview.style.transform=C(s,n)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,o=n.right-i.right,r=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),o>0&&(t-=o)):t=0,i.height>n.height?(r>0&&(e+=r),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:H(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&R(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,r.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const t=this._document;return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}return(0,a.fI)(i)}}function B(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function q(t,e,i){return Math.max(e,Math.min(i,t))}function U(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function H(t){return"t"===t.type[0]}function j(t,e){const i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];const n=e.createElement("div");return i.forEach(t=>n.appendChild(t)),n}function G(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=B(e.left,e.top)}function Y(t,e,i){const n=V(e,t.length-1),s=V(i,t.length-1);if(n===s)return;const o=t[n],r=s!0,this.sortPredicate=()=>!0,this.beforeStarted=new c.xQ,this.entered=new c.xQ,this.exited=new c.xQ,this.dropped=new c.xQ,this.sorted=new c.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=u.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new c.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,l.F)(0,h.r).pipe((0,g.R)(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?$(t,-e):2===this._verticalScrollDirection&&$(t,e),1===this._horizontalScrollDirection?Q(t,-e):2===this._horizontalScrollDirection&&Q(t,e)})},this.element=(0,a.fI)(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new O(i,s)}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(t,e,i,n){let s;this._draggingStarted(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const o=this._activeDraggables,r=o.indexOf(t),c=t.getPlaceholderElement();let u=o[s];if(u===t&&(u=o[s+1]),r>-1&&o.splice(r,1),u&&!this._dragDropRegistry.isDragging(u)){const e=u.getRootElement();e.parentElement.insertBefore(c,e),o.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){const e=o[0].getRootElement();e.parentNode.insertBefore(c,e),o.unshift(t)}else(0,a.fI)(this.element).appendChild(c),o.push(t);c.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,o,r){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:s,distance:o,dropPoint:r})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=(0,a.fI)(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?J("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!this._clientRect||!I(this._clientRect,.05,e,i))return;const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===o&&s.length>0)return;const r="horizontal"===this._orientation,a=J(s,e=>e.drag===t),c=s[o],u=c.clientRect,l=a>o?1:-1,h=this._getItemOffsetPx(s[a].clientRect,u,l),d=this._getSiblingOffsetPx(a,s,l),p=s.slice();Y(s,a,o),this.sorted.next({previousIndex:a,currentIndex:o,container:this,item:t}),s.forEach((e,i)=>{if(p[i]===e)return;const n=e.drag===t,s=n?h:d,o=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,r?(o.style.transform=C(`translate3d(${Math.round(e.offset)}px, 0, 0)`,e.initialTransform),R(e.clientRect,0,s)):(o.style.transform=C(`translate3d(0, ${Math.round(e.offset)}px, 0)`,e.initialTransform),R(e.clientRect,s,0))}),this._previousSwap.overlaps=x(u,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=r?n.x:n.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((o,r)=>{r!==this._document&&o.clientRect&&!i&&I(o.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=W(e,n),o=X(e,i);let r=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(r=1):t.scrollHeight-e>t.clientHeight&&(r=2)}if(o){const e=t.scrollLeft;1===o?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[r,a]}(r,o.clientRect,t,e),(n||s)&&(i=r))}),!n&&!s){const{width:o,height:r}=this._viewportRuler.getViewportSize(),a={width:o,height:r,top:0,right:o,bottom:r,left:0};n=W(a,e),s=X(a,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=(0,a.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=(0,a.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:k(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=(0,a.fI)(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{var e;const i=t.getRootElement();if(i){const n=null===(e=this._itemPositions.find(e=>e.drag===t))||void 0===e?void 0:e.initialTransform;i.style.transform=n||""}}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,o=e[t+-1*i];let r=s[n?"width":"height"]*i;if(o){const t=n?"left":"top",e=n?"right":"bottom";-1===i?r-=o.clientRect[t]-s[e]:r+=s[t]-o.clientRect[e]}return r}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation,o=J(this._itemPositions,({drag:o,clientRect:r},a,c)=>{if(o===t)return c.length<2;if(n){const t=s?n.x:n.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(r.left)&&e=Math.floor(r.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!x(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=(0,a.fI)(this.element);return n===s||s.contains(n)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{R(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=(0,r.kV)((0,a.fI)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function J(t,e){for(let i=0;i=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}function X(t,e){const{left:i,right:n,width:s}=t,o=.05*s;return e>=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}const tt=(0,r.i$)({passive:!1,capture:!0});let et=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new c.xQ,this.pointerUp=new c.xQ,this.scroll=new c.xQ,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,tt)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,tt)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:tt}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:tt}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.R0b),n.LFG(s.K0))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(n.R0b),n.LFG(s.K0))},token:t,providedIn:"root"}),t})();const it={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let nt=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=it){return new Z(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new K(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(s.K0),n.LFG(n.R0b),n.LFG(o.rL),n.LFG(et))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(s.K0),n.LFG(n.R0b),n.LFG(o.rL),n.LFG(et))},token:t,providedIn:"root"}),t})();const st=new n.OlP("CDK_DRAG_PARENT"),ot=new n.OlP("CdkDropListGroup"),rt=new n.OlP("CDK_DRAG_CONFIG");let at=0;const ct=new n.OlP("CdkDropList");let ut=(()=>{class t{constructor(e,i,s,o,r,a,u){this.element=e,this._changeDetectorRef=s,this._scrollDispatcher=o,this._dir=r,this._group=a,this._destroyed=new c.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+at++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.sorted=new n.vpe,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,u&&this._assignDefaults(u),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._dropListRef.sortPredicate=(t,e,i)=>this.sortPredicate(t,e.data,i.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),a&&a._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=(0,a.Ig)(t)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._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((0,f.O)(this._dir.value),(0,g.R)(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const i=(0,a.Eq)(this.connectedTo).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);if(this._group&&this._group._items.forEach(t=>{-1===i.indexOf(t)&&i.push(t)}),!this._scrollableParentsResolved){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=(0,a.Ig)(this.sortingDisabled),e.autoScrollDisabled=(0,a.Ig)(this.autoScrollDisabled),e.autoScrollStep=(0,a.su)(this.autoScrollStep,2),e.connectedTo(i.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:i,sortingDisabled:n,listAutoScrollDisabled:s,listOrientation:o}=t;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=s&&s,this.orientation=o||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(nt),n.Y36(n.sBO),n.Y36(o.mF),n.Y36(y.Is,8),n.Y36(ot,12),n.Y36(rt,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(n.uIk("id",e.id),n.ekj("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[n._Bn([{provide:ot,useValue:void 0},{provide:ct,useExisting:t}])]}),t._dropLists=[],t})();const lt=new n.OlP("CdkDragHandle"),ht=new n.OlP("CdkDragPlaceholder"),dt=new n.OlP("CdkDragPreview");let pt=(()=>{class t{constructor(e,i,s,o,r,a,u,l,h,p,g){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=r,this._dir=u,this._changeDetectorRef=h,this._selfHandle=p,this._parentDrag=g,this._destroyed=new c.xQ,this.started=new n.vpe,this.released=new n.vpe,this.ended=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.dropped=new n.vpe,this.moved=new d.y(t=>{const e=this._dragRef.moved.pipe((0,m.U)(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=l.createDrag(e,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),a&&this._assignDefaults(a),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=(0,a.Ig)(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.pipe((0,b.q)(1),(0,g.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe((0,f.O)(this._handles),(0,w.b)(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._selfHandle&&this.rootElementSelector&&e.push(this.element),this._dragRef.withHandles(e)}),(0,_.w)(t=>(0,p.T)(...t.map(t=>t._stateChanges.pipe((0,f.O)(t))))),(0,g.R)(this._destroyed)).subscribe(t=>{const e=this._dragRef,i=t.element.nativeElement;t.disabled?e.disableHandle(i):e.enableHandle(i)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?gt(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?gt(this.element.nativeElement,t):(0,a.fI)(t):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,i=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=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 i&&i?i:(0,a.su)(i),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,b.q)(1)).subscribe(()=>{var i,n;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let s=this.element.nativeElement.parentElement;for(;s;){if(null===(i=s.classList)||void 0===i?void 0:i.contains("cdk-drag")){e.withParent((null===(n=t._dragInstances.find(t=>t.element.nativeElement===s))||void 0===n?void 0:n._dragRef)||null);break}s=s.parentElement}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:i,constrainPosition:n,previewClass:s,boundaryElement:o,draggingDisabled:r,rootElementSelector:a,previewContainer:c}=t;this.disabled=null!=r&&r,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),o&&(this.boundaryElement=o),a&&(this.rootElementSelector=a),c&&(this.previewContainer=c)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(ct,12),n.Y36(s.K0),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(rt,8),n.Y36(y.Is,8),n.Y36(nt),n.Y36(n.sBO),n.Y36(lt,10),n.Y36(st,12))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){if(1&t&&(n.Suo(i,dt,5),n.Suo(i,ht,5),n.Suo(i,lt,5)),2&t){let t;n.iGM(t=n.CRH())&&(e._previewTemplate=t.first),n.iGM(t=n.CRH())&&(e._placeholderTemplate=t.first),n.iGM(t=n.CRH())&&(e._handles=t)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&n.ekj("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[n._Bn([{provide:st,useExisting:t}]),n.TTD]}),t._dragInstances=[],t})();function gt(t,e){let i=t.parentElement;for(;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}let ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[nt],imports:[o.ZD]}),t})()},75842:function(t,e,i){"use strict";i.d(e,{A:function(){return _},ZH:function(){return n},OC:function(){return A},yY:function(){return m},JH:function(){return f},uR:function(){return l},K5:function(){return o},hY:function(){return r},Sd:function(){return h},oh:function(){return d},aO:function(){return w},VM:function(){return u},Ku:function(){return c},SV:function(){return g},L_:function(){return a},Mf:function(){return s},LH:function(){return p},Z:function(){return y},xE:function(){return b},Vb:function(){return v}});const n=8,s=9,o=13,r=27,a=32,c=33,u=34,l=35,h=36,d=37,p=38,g=39,f=40,m=46,b=48,w=57,_=65,y=90,A=188;function v(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},36337:function(t,e,i){"use strict";i.d(e,{wD:function(){return l},yq:function(){return u},Q8:function(){return h}});var n=i(19861),s=i(31572),o=i(48318),r=i(55959),a=i(47701);let c=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=(0,n.fI)(t);return new o.y(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new r.xQ,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(c))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(c))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,n.Ig)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=(0,n.su)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,a.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(u),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[c]}),t})()},2522:function(t,e,i){"use strict";i.d(e,{pI:function(){return J},xu:function(){return K},_G:function(){return z},aV:function(){return G},X_:function(){return k},Xj:function(){return M},U8:function(){return Q}});var n=i(4253),s=i(31572),o=i(11353),r=i(22526),a=i(61511),c=i(19861),u=i(26899),l=i(55959),h=i(87570),d=i(31906),p=i(96673);class g{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new f(t,this.predicate,this.inclusive))}}class f extends p.L{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}var m=i(90611),b=i(25416),w=i(75842);const _=(0,o.Mq)();class y{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=(0,c.HM)(-this._previousScrollPosition.left),t.style.top=(0,c.HM)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),_&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),_&&(e.scrollBehavior=n,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class A{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class v{enable(){}disable(){}attach(){}}function T(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function C(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class S{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();T(t,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let E=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new v,this.close=t=>new A(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new y(this._viewportRuler,this._document),this.reposition=t=>new S(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.mF),s.LFG(n.rL),s.LFG(s.R0b),s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.mF),s.LFG(n.rL),s.LFG(s.R0b),s.LFG(a.K0))},token:t,providedIn:"root"}),t})();class k{constructor(t){if(this.scrollStrategy=new v,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class x{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class R{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let I=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),O=(()=>{class t extends I{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),P=(()=>{class t extends I{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0),s.LFG(o.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0),s.LFG(o.t4))},token:t,providedIn:"root"}),t})();const D="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha;let M=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||D){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new l.xQ,this._outsidePointerEvents=new l.xQ,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=(0,c.HM)(this._config.width),t.height=(0,c.HM)(this._config.height),t.minWidth=(0,c.HM)(this._config.minWidth),t.minHeight=(0,c.HM)(this._config.minHeight),t.maxWidth=(0,c.HM)(this._config.maxWidth),t.maxHeight=(0,c.HM)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;(0,c.Eq)(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,b.R)((0,d.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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const N=/([A-Za-z%]+)$/;class z{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,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 l.xQ,this._resizeSubscription=h.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let o of this._preferredPositions){let r=this._getOriginPoint(t,o),a=this._getOverlayPoint(r,e,o),c=this._getOverlayFit(a,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,r);this._canFitWithFlexibleDimensions(c,a,i)?n.push({position:o,origin:r,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(r,o)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&F(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){const s=B(e);let{x:o,y:r}=t,a=this._getOffset(n,"x"),c=this._getOffset(n,"y");a&&(o+=a),c&&(r+=c);let u=0-r,l=r+s.height-i.height,h=this._subtractOverflows(s.width,0-o,o+s.width-i.width),d=this._subtractOverflows(s.height,u,l),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,o=Z(this._overlayRef.getConfig().minHeight),r=Z(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=r&&r<=s;return(t.fitsInViewportVertically||null!=o&&o<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=B(e),s=this._viewportRect,o=Math.max(t.x+n.width-s.width,0),r=Math.max(t.y+n.height-s.height,0),a=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,l=0;return u=n.width<=s.width?c||-o:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)u=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-n/2)}return{top:o,left:c,bottom:r,right:u,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=(0,c.HM)(i.height),n.top=(0,c.HM)(i.top),n.bottom=(0,c.HM)(i.bottom),n.width=(0,c.HM)(i.width),n.left=(0,c.HM)(i.left),n.right=(0,c.HM)(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=(0,c.HM)(t)),s&&(n.maxWidth=(0,c.HM)(s))}this._lastBoundingBoxSize=i,F(this._boundingBox.style,n)}_resetBoundingBoxStyles(){F(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){F(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();F(i,this._getExactOverlayY(e,t,n)),F(i,this._getExactOverlayX(e,t,n))}else i.position="static";let r="",a=this._getOffset(e,"x"),u=this._getOffset(e,"y");a&&(r+=`translateX(${a}px) `),u&&(r+=`translateY(${u}px)`),i.transform=r.trim(),o.maxHeight&&(n?i.maxHeight=(0,c.HM)(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(n?i.maxWidth=(0,c.HM)(o.maxWidth):s&&(i.maxWidth="")),F(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=(0,c.HM)(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":s.left=(0,c.HM)(o.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:C(t,i),isOriginOutsideView:T(t,i),isOverlayClipped:C(e,i),isOverlayOutsideView:T(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,c.Eq)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function F(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Z(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(N);return i&&"px"!==i?null:parseFloat(e)}return t||null}function B(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class q{constructor(t,e,i,n,s,o,r){this._preferredPositions=[],this._positionStrategy=new z(i,n,s,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new x(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class U{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:o,maxHeight:r}=i,a=!("100%"!==n&&"100vw"!==n||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let H=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new U}connectedTo(t,e,i){return new q(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new z(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.rL),s.LFG(a.K0),s.LFG(o.t4),s.LFG(M))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.rL),s.LFG(a.K0),s.LFG(o.t4),s.LFG(M))},token:t,providedIn:"root"}),t})(),j=0,G=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=o,this._ngZone=r,this._document=a,this._directionality=c,this._location=u,this._outsideClickDispatcher=l}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new k(t);return s.direction=s.direction||this._directionality.value,new L(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+j++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new u.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(E),s.LFG(M),s.LFG(s._Vd),s.LFG(H),s.LFG(O),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(r.Is),s.LFG(a.Ye),s.LFG(P))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Y=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],V=new s.OlP("cdk-connected-overlay-scroll-strategy");let K=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),J=(()=>{class t{constructor(t,e,i,n,o){this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new u.UE(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,c.Ig)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=(0,c.Ig)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=(0,c.Ig)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=(0,c.Ig)(t)}get push(){return this._push}set push(t){this._push=(0,c.Ig)(t)}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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=Y);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==w.hY||this.disableClose||(0,w.Vb)(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new k({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return i=>i.lift(new g(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(G),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(V),s.Y36(r.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.TTD]}),t})();const $={provide:V,deps:[G],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[G,$],imports:[[r.vT,u.eL,n.Cl],n.Cl]}),t})()},11353:function(t,e,i){"use strict";i.d(e,{t4:function(){return a},ud:function(){return c},ht:function(){return _},kV:function(){return w},_i:function(){return b},qK:function(){return l},i$:function(){return f},Mq:function(){return m}});var n=i(31572),s=i(61511);let o;try{o="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(y){o=!1}let r,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,s.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!o)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.Lbi))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(n.Lbi))},token:t,providedIn:"root"}),t})(),c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();const u=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function l(){if(r)return r;if("object"!=typeof document||!document)return r=new Set(u),r;let t=document.createElement("input");return r=new Set(u.filter(e=>(t.setAttribute("type",e),t.type===e))),r}let h,d,p,g;function f(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function m(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function b(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function w(t){if(function(){if(null==g){const t="undefined"!=typeof document?document.head:null;g=!(!t||!t.createShadowRoot&&!t.attachShadow)}return g}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function _(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}},26899:function(t,e,i){"use strict";i.d(e,{en:function(){return u},ig:function(){return d},Pl:function(){return p},C5:function(){return r},F0:function(){return h},u0:function(){return l},eL:function(){return g},UE:function(){return a}});var n=i(31572),s=i(61511);class o{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class r extends o{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class a extends o{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class c extends o{constructor(t){super(),this.element=t instanceof n.SBq?t.nativeElement:t}}class u{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof r?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof c?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class l extends u{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class h extends l{}let d=(()=>{class t extends a{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Rgc),n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.qOj]}),t})(),p=(()=>{class t extends u{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new n.vpe,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36(s.K0))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.qOj]}),t})(),g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},4253:function(t,e,i){"use strict";i.d(e,{xd:function(){return P},PQ:function(){return M},ZD:function(){return B},x0:function(){return Z},N7:function(){return z},mF:function(){return D},Cl:function(){return q},rL:function(){return L}});var n=i(19861),s=i(31572),o=i(55959),r=i(40878),a=i(48318),c=i(87254),u=i(91741),l=i(92709),h=i(87570),d=i(4710),p=i(96673);class g{call(t,e){return e.subscribe(new f(t))}}class f extends p.L{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}var m=i(98720),b=i(30810),w=i(43835),_=i(25416),y=i(56238),A=i(44689),v=i(68303),T=i(11353),C=i(61511),S=i(22526),E=i(4230);const k=["contentWrapper"],x=["*"],R=new s.OlP("VIRTUAL_SCROLL_STRATEGY");class I{constructor(t,e,i){this._scrolledIndexChange=new o.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,m.x)()),this._viewport=null,this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i}attach(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(t,e,i){this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(t,e){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,e)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const t=this._viewport.getRenderedRange(),e={start:t.start,end:t.end},i=this._viewport.getViewportSize(),n=this._viewport.getDataLength();let s=this._viewport.measureScrollOffset(),o=this._itemSize>0?s/this._itemSize:0;if(e.end>n){const t=Math.ceil(i/this._itemSize),r=Math.max(0,Math.min(o,n-t));o!=r&&(o=r,s=r*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(n,e.start+t))}const r=s-e.start*this._itemSize;if(r0&&(e.end=Math.min(n,e.end+i),e.start=Math.max(0,Math.floor(o-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(o))}}function O(t){return t._scrollStrategy}let P=(()=>{class t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new I(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=(0,n.su)(t)}get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=(0,n.su)(t)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=(0,n.su)(t)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[s._Bn([{provide:R,useFactory:O,deps:[(0,s.Gpc)(()=>t)]}]),s.TTD]}),t})(),D=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new o.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new a.y(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe((0,b.e)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,r.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,w.h)(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=(0,n.fI)(e),s=t.getElementRef().nativeElement;do{if(i==s)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,c.R)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(T.t4),s.LFG(C.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(T.t4),s.LFG(C.K0,8))},token:t,providedIn:"root"}),t})(),M=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new o.xQ,this._elementScrolled=new a.y(t=>this.ngZone.runOutsideAngular(()=>(0,c.R)(this.elementRef.nativeElement,"scroll").pipe((0,_.R)(this._destroyed)).subscribe(t)))}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(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=(0,T._i)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==(0,T._i)()?t.left=t.right:1==(0,T._i)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;(0,T.Mq)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==(0,T._i)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==(0,T._i)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(D),s.Y36(s.R0b),s.Y36(S.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),L=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new o.xQ,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe((0,b.e)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(T.t4),s.LFG(s.R0b),s.LFG(C.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(T.t4),s.LFG(s.R0b),s.LFG(C.K0,8))},token:t,providedIn:"root"}),t})();const N="undefined"!=typeof requestAnimationFrame?u.r:l.e;let z=(()=>{class t extends M{constructor(t,e,i,n,s,r,c){super(t,r,i,s),this.elementRef=t,this._changeDetectorRef=e,this._scrollStrategy=n,this._detachedSubject=new o.xQ,this._renderedRangeSubject=new o.xQ,this._orientation="vertical",this.scrolledIndexChange=new a.y(t=>this._scrollStrategy.scrolledIndexChange.subscribe(e=>Promise.resolve().then(()=>this.ngZone.run(()=>t.next(e))))),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=h.w.EMPTY,this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,y.O)(null),(0,b.e)(0,N)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(t){this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe((0,_.R)(this._detachedSubject)).subscribe(t=>{const e=t.length;e!==this._dataLength&&(this._dataLength=e,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(t){var e,i;((e=this._renderedRange).start!=(i=t).start||e.end!=i.end)&&(this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,e="to-start"){const i="horizontal"==this.orientation,n=i?"X":"Y";let s=`translate${n}(${Number((i&&this.dir&&"rtl"==this.dir.value?-1:1)*t)}px)`;this._renderedContentOffset=t,"to-end"===e&&(s+=` translate${n}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=s&&(this._renderedContentTransform=s,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(t,e="auto"){const i={behavior:e};"horizontal"===this.orientation?i.start=t:i.top=t,this.scrollTo(i)}scrollToIndex(t,e="auto"){this._scrollStrategy.scrollToIndex(t,e)}measureScrollOffset(t){return super.measureScrollOffset(t||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const t=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const t=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?t.clientWidth:t.clientHeight}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),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 t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const e of t)e()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(R,8),s.Y36(S.Is,8),s.Y36(D),s.Y36(L))},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(t,e){if(1&t&&s.Gf(k,7),2&t){let t;s.iGM(t=s.CRH())&&(e._contentWrapper=t.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===e.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==e.orientation)},inputs:{orientation:"orientation"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[s._Bn([{provide:M,useExisting:t}]),s.qOj],ngContentSelectors:x,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0,1),s.Hsn(2),s.qZA(),s._UZ(3,"div",2)),2&t&&(s.xp6(3),s.Udp("width",e._totalContentWidth)("height",e._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),t})();function F(t,e,i){if(!i.getBoundingClientRect)return 0;const n=i.getBoundingClientRect();return"horizontal"===t?"start"===e?n.left:n.right:"start"===e?n.top:n.bottom}let Z=(()=>{class t{constructor(t,e,i,n,s,r){this._viewContainerRef=t,this._template=e,this._differs=i,this._viewRepeater=n,this._viewport=s,this.viewChange=new o.xQ,this._dataSourceChanges=new o.xQ,this.dataStream=this._dataSourceChanges.pipe((0,y.O)(null),t=>t.lift(new g),(0,A.w)(([t,e])=>this._changeDataSource(t,e)),(0,v.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new o.xQ,this.dataStream.subscribe(t=>{this._data=t,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,_.R)(this._destroyed)).subscribe(t=>{this._renderedRange=t,r.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,(0,E.Z9)(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new E.P3((0,d.b)(t)?t:Array.from(t||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?(e,i)=>t(e+(this._renderedRange?this._renderedRange.start:0),i):void 0}set cdkVirtualForTemplate(t){t&&(this._needsUpdate=!0,this._template=t)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=(0,n.su)(t)}measureRangeSize(t,e){if(t.start>=t.end)return 0;const i=t.start-this._renderedRange.start,n=t.end-t.start;let s,o;for(let r=0;r-1;r--){const t=this._viewContainerRef.get(r+i);if(t&&t.rootNodes.length){o=t.rootNodes[t.rootNodes.length-1];break}}return s&&o?F(e,"end",o)-F(e,"start",s):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):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((t,e)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(t,e):e)),this._needsUpdate=!0)}_changeDataSource(t,e){return t&&t.disconnect(this),this._needsUpdate=!0,e?e.connect(this):(0,r.of)()}_updateContext(){const t=this._data.length;let e=this._viewContainerRef.length;for(;e--;){const i=this._viewContainerRef.get(e);i.context.index=this._renderedRange.start+e,i.context.count=t,this._updateComputedContextProperties(i.context),i.detectChanges()}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,(t,e,i)=>this._getEmbeddedViewArgs(t,i),t=>t.item),t.forEachIdentityChange(t=>{this._viewContainerRef.get(t.currentIndex).context.$implicit=t.item});const e=this._data.length;let i=this._viewContainerRef.length;for(;i--;){const t=this._viewContainerRef.get(i);t.context.index=this._renderedRange.start+i,t.context.count=e,this._updateComputedContextProperties(t.context)}}_updateComputedContextProperties(t){t.first=0===t.index,t.last=t.index===t.count-1,t.even=t.index%2==0,t.odd=!t.even}_getEmbeddedViewArgs(t,e){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:e}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(E.k),s.Y36(z,4),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[s._Bn([{provide:E.k,useClass:E.eX}])]}),t})(),B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[S.vT,T.ud,B],S.vT,B]}),t})()},10901:function(t,e,i){"use strict";i.d(e,{Lq:function(){return p},IC:function(){return g},Ky:function(){return f}});var n=i(11353),s=i(31572),o=i(19861),r=i(70653),a=i(55959),c=i(87254),u=i(30810),l=i(25416),h=i(61511);const d=(0,n.i$)({passive:!0});let p=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return r.E;const e=(0,o.fI)(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new a.xQ,s="cdk-text-field-autofilled",c=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",c,d),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",c,d)}}),n}stopMonitoring(t){const e=(0,o.fI)(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.t4),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.t4),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),g=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new a.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._document=n,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=(0,o.su)(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=(0,o.su)(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=(0,o.Ig)(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(t){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=t,this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();(0,c.R)(t,"resize").pipe((0,u.e)(16),(0,l.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){this._textareaElement.classList.add(this._measuringClass);const t=this._textareaElement.scrollHeight-4;return this._textareaElement.classList.remove(this._measuringClass),t}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=this._measureScrollHeight(),s=Math.max(n,this._cachedPlaceholderHeight||0);e.style.height=`${s}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,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(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(n.t4),s.Y36(s.R0b),s.Y36(h.K0,8))},t.\u0275dir=s.lG2({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&s.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ud]]}),t})()},71709:function(t,e,i){"use strict";i.d(e,{HI:function(){return b},Xx:function(){return C},_0:function(){return A},nZ:function(){return x},Hs:function(){return v},rO:function(){return y},cu:function(){return w},XJ:function(){return E},Ud:function(){return k},C2:function(){return f},VY:function(){return m}});var n=i(4230),s=i(4710),o=i(55959),r=i(78512),a=i(40878),c=i(90611),u=i(43835),l=i(25416),h=i(31572),d=i(19861),p=i(22526);class g{constructor(){this.expansionModel=new n.Ov(!0)}toggle(t){this.expansionModel.toggle(this._trackByValue(t))}expand(t){this.expansionModel.select(this._trackByValue(t))}collapse(t){this.expansionModel.deselect(this._trackByValue(t))}isExpanded(t){return this.expansionModel.isSelected(this._trackByValue(t))}toggleDescendants(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}collapseAll(){this.expansionModel.clear()}expandDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.select(...e.map(t=>this._trackByValue(t)))}collapseDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.deselect(...e.map(t=>this._trackByValue(t)))}_trackByValue(t){return this.trackBy?this.trackBy(t):t}}class f extends g{constructor(t,e,i){super(),this.getLevel=t,this.isExpandable=e,this.options=i,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(t){const e=[];for(let i=this.dataNodes.indexOf(t)+1;ithis._trackByValue(t)))}}class m extends g{constructor(t,e){super(),this.getChildren=t,this.options=e,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const t=this.dataNodes.reduce((t,e)=>[...t,...this.getDescendants(e),e],[]);this.expansionModel.select(...t.map(t=>this._trackByValue(t)))}getDescendants(t){const e=[];return this._getDescendants(e,t),e.splice(1)}_getDescendants(t,e){t.push(e);const i=this.getChildren(e);Array.isArray(i)?i.forEach(e=>this._getDescendants(t,e)):(0,s.b)(i)&&i.pipe((0,c.q)(1),(0,u.h)(Boolean)).subscribe(e=>{for(const i of e)this._getDescendants(t,i)})}}const b=new h.OlP("CDK_TREE_NODE_OUTLET_NODE");let w=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.s_b),h.Y36(b,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class _{constructor(t){this.$implicit=t}}let y=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.Rgc))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})(),A=(()=>{class t{constructor(t,e){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new o.xQ,this._levels=new Map,this.viewChange=new r.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}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 t=this._nodeDefs.filter(t=>!t.when);this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let t;(0,n.Z9)(this._dataSource)?t=this._dataSource.connect(this):(0,s.b)(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=(0,a.of)(this._dataSource)),t&&(this._dataSubscription=t.pipe((0,l.R)(this._onDestroy)).subscribe(t=>this.renderNodeChanges(t)))}renderNodeChanges(t,e=this._dataDiffer,i=this._nodeOutlet.viewContainer,n){const s=e.diff(t);s&&(s.forEachOperation((e,s,o)=>{if(null==e.previousIndex)this.insertNode(t[o],o,i,n);else if(null==o)i.remove(s),this._levels.delete(e.item);else{const t=i.get(s);i.move(t,o)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,e){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(i=>i.when&&i.when(e,t))||this._defaultNodeDef}insertNode(t,e,i,n){const s=this._getNodeDef(t,e),o=new _(t);o.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==n&&this._levels.has(n)?this._levels.get(n)+1:0,this._levels.set(t,o.level),(i||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,o,e),v.mostRecentTreeNode&&(v.mostRecentTreeNode.data=t)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.ZZ4),h.Y36(h.sBO))},t.\u0275cmp=h.Xpm({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,i){if(1&t&&h.Suo(i,y,5),2&t){let t;h.iGM(t=h.CRH())&&(e._nodeDefs=t)}},viewQuery:function(t,e){if(1&t&&h.Gf(w,7),2&t){let t;h.iGM(t=h.CRH())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&h.GkF(0,0)},directives:[w],encapsulation:2}),t})(),v=(()=>{class t{constructor(e,i){this._elementRef=e,this._tree=i,this._destroyed=new o.xQ,this._dataChanges=new o.xQ,t.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}get role(){return"treeitem"}set role(t){this._elementRef.nativeElement.setAttribute("role",t)}get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}_setExpanded(t){this._isAriaExpanded=t,this._elementRef.nativeElement.setAttribute("aria-expanded",`${t}`)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function(t){let e=t.parentElement;for(;e&&!T(e);)e=e.parentElement;return e?e.classList.contains("cdk-nested-tree-node")?(0,d.su)(e.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngDoCheck(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(A))},t.\u0275dir=h.lG2({type:t,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t})();function T(t){const e=t.classList;return!(!(null==e?void 0:e.contains("cdk-nested-tree-node"))&&!(null==e?void 0:e.contains("cdk-tree")))}let C=(()=>{class t extends v{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this._differs=i,this._elementRef.nativeElement.classList.add("cdk-nested-tree-node")}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const t=this._tree.treeControl.getChildren(this.data);Array.isArray(t)?this.updateChildrenNodes(t):(0,s.b)(t)&&t.pipe((0,l.R)(this._destroyed)).subscribe(t=>this.updateChildrenNodes(t)),this.nodeOutlet.changes.pipe((0,l.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(t){const e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const t=this.nodeOutlet;return t&&t.find(t=>!t._node||t._node===this)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(A),h.Y36(h.ZZ4))},t.\u0275dir=h.lG2({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,i){if(1&t&&h.Suo(i,w,5),2&t){let t;h.iGM(t=h.CRH())&&(e.nodeOutlet=t)}},inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[h._Bn([{provide:v,useExisting:t},{provide:b,useExisting:t}]),h.qOj]}),t})();const S=/([A-Za-z%]+)$/;let E=(()=>{class t{constructor(t,e,i,n){this._treeNode=t,this._tree=e,this._element=i,this._dir=n,this._destroyed=new o.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),n&&n.change.pipe((0,l.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?`${e*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){const e=this._paddingIndent();if(e!==this._currentPadding||t){const t=this._element.nativeElement,i=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",n="paddingLeft"===i?"paddingRight":"paddingLeft";t.style[i]=e||"",t.style[n]="",this._currentPadding=e}}_setLevelInput(t){this._level=(0,d.su)(t,null),this._setPadding()}_setIndentInput(t){let e=t,i="px";if("string"==typeof t){const n=t.split(S);e=n[0],i=n[1]||i}this.indentUnits=i,this._indent=(0,d.su)(e),this._setPadding()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(v),h.Y36(A),h.Y36(h.SBq),h.Y36(p.Is,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t})(),k=(()=>{class t{constructor(t,e){this._tree=t,this._treeNode=e,this._recursive=!1}get recursive(){return this._recursive}set recursive(t){this._recursive=(0,d.Ig)(t)}_toggle(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A),h.Y36(v))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&h.NdJ("click",function(t){return e._toggle(t)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),x=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({}),t})()},61511:function(t,e,i){"use strict";i.d(e,{mr:function(){return y},Ov:function(){return Et},ez:function(){return Rt},K0:function(){return c},uU:function(){return xt},Do:function(){return v},V_:function(){return h},Ye:function(){return T},S$:function(){return w},mk:function(){return ct},sg:function(){return lt},O5:function(){return dt},PC:function(){return _t},RF:function(){return mt},n9:function(){return bt},ED:function(){return wt},tP:function(){return yt},b0:function(){return A},lw:function(){return u},gd:function(){return kt},EM:function(){return Dt},JF:function(){return Nt},p6:function(){return G},NF:function(){return Ot},PM:function(){return Pt},w_:function(){return a},bD:function(){return It},q:function(){return o},Mx:function(){return at},HT:function(){return r}});var n=i(31572);let s=null;function o(){return s}function r(t){s||(s=t)}class a{}const c=new n.OlP("DocumentToken");let u=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:l,token:t,providedIn:"platform"}),t})();function l(){return(0,n.LFG)(d)}const h=new n.OlP("Location Initialized");let d=(()=>{class t extends u{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,i){p()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){p()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(c))},t.\u0275prov=(0,n.Yz7)({factory:g,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function g(){return new d((0,n.LFG)(c))}function f(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function b(t){return t&&"?"!==t[0]?"?"+t:t}let w=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:_,token:t,providedIn:"root"}),t})();function _(t){const e=(0,n.LFG)(c).location;return new A((0,n.LFG)(u),e&&e.origin||"")}const y=new n.OlP("appBaseHref");let A=(()=>{class t extends w{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return f(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+b(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+b(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(y,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),v=(()=>{class t extends w{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=f(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+b(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+b(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(y,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),T=(()=>{class t{constructor(t,e){this._subject=new n.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(S(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+b(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,S(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformStrategy).historyGo)||void 0===i||i.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(w),n.LFG(u))},t.normalizeQueryParams=b,t.joinWithSlash=f,t.stripTrailingSlash=m,t.\u0275prov=(0,n.Yz7)({factory:C,token:t,providedIn:"root"}),t})();function C(){return new T((0,n.LFG)(w),(0,n.LFG)(u))}function S(t){return t.replace(/\/index.html$/,"")}var E=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),k=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),x=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),R=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),I=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function O(t,e){return z((0,n.cg1)(t)[n.wAp.DateFormat],e)}function P(t,e){return z((0,n.cg1)(t)[n.wAp.TimeFormat],e)}function D(t,e){return z((0,n.cg1)(t)[n.wAp.DateTimeFormat],e)}function M(t,e){const i=(0,n.cg1)(t),s=i[n.wAp.NumberSymbols][e];if(void 0===s){if(e===I.CurrencyDecimal)return i[n.wAp.NumberSymbols][I.Decimal];if(e===I.CurrencyGroup)return i[n.wAp.NumberSymbols][I.Group]}return s}const L=n.kL8;function N(t){if(!t[n.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[n.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function z(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function F(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const Z=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,B={},q=/((?:[^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 U=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),H=function(t){return 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}({}),j=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function G(t,e,i,n){let s=function(t){if(st(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,i=1,n=1]=t.split("-").map(t=>+t);return Y(e,i-1,n)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Z))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const r=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,r,a,c,u),e}(i)}const e=new Date(t);if(!st(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=V(i,e)||e;let o,r=[];for(;e;){if(o=q.exec(e),!o){r.push(e);break}{r=r.concat(o.slice(1));const t=r.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();n&&(a=nt(n,a),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(nt(e,n)-n))}(s,n));let c="";return r.forEach(t=>{const e=function(t){if(it[t])return it[t];let e;switch(t){case"G":case"GG":case"GGG":e=Q(j.Eras,x.Abbreviated);break;case"GGGG":e=Q(j.Eras,x.Wide);break;case"GGGGG":e=Q(j.Eras,x.Narrow);break;case"y":e=$(H.FullYear,1,0,!1,!0);break;case"yy":e=$(H.FullYear,2,0,!0,!0);break;case"yyy":e=$(H.FullYear,3,0,!1,!0);break;case"yyyy":e=$(H.FullYear,4,0,!1,!0);break;case"Y":e=et(1);break;case"YY":e=et(2,!0);break;case"YYY":e=et(3);break;case"YYYY":e=et(4);break;case"M":case"L":e=$(H.Month,1,1);break;case"MM":case"LL":e=$(H.Month,2,1);break;case"MMM":e=Q(j.Months,x.Abbreviated);break;case"MMMM":e=Q(j.Months,x.Wide);break;case"MMMMM":e=Q(j.Months,x.Narrow);break;case"LLL":e=Q(j.Months,x.Abbreviated,k.Standalone);break;case"LLLL":e=Q(j.Months,x.Wide,k.Standalone);break;case"LLLLL":e=Q(j.Months,x.Narrow,k.Standalone);break;case"w":e=tt(1);break;case"ww":e=tt(2);break;case"W":e=tt(1,!0);break;case"d":e=$(H.Date,1);break;case"dd":e=$(H.Date,2);break;case"c":case"cc":e=$(H.Day,1);break;case"ccc":e=Q(j.Days,x.Abbreviated,k.Standalone);break;case"cccc":e=Q(j.Days,x.Wide,k.Standalone);break;case"ccccc":e=Q(j.Days,x.Narrow,k.Standalone);break;case"cccccc":e=Q(j.Days,x.Short,k.Standalone);break;case"E":case"EE":case"EEE":e=Q(j.Days,x.Abbreviated);break;case"EEEE":e=Q(j.Days,x.Wide);break;case"EEEEE":e=Q(j.Days,x.Narrow);break;case"EEEEEE":e=Q(j.Days,x.Short);break;case"a":case"aa":case"aaa":e=Q(j.DayPeriods,x.Abbreviated);break;case"aaaa":e=Q(j.DayPeriods,x.Wide);break;case"aaaaa":e=Q(j.DayPeriods,x.Narrow);break;case"b":case"bb":case"bbb":e=Q(j.DayPeriods,x.Abbreviated,k.Standalone,!0);break;case"bbbb":e=Q(j.DayPeriods,x.Wide,k.Standalone,!0);break;case"bbbbb":e=Q(j.DayPeriods,x.Narrow,k.Standalone,!0);break;case"B":case"BB":case"BBB":e=Q(j.DayPeriods,x.Abbreviated,k.Format,!0);break;case"BBBB":e=Q(j.DayPeriods,x.Wide,k.Format,!0);break;case"BBBBB":e=Q(j.DayPeriods,x.Narrow,k.Format,!0);break;case"h":e=$(H.Hours,1,-12);break;case"hh":e=$(H.Hours,2,-12);break;case"H":e=$(H.Hours,1);break;case"HH":e=$(H.Hours,2);break;case"m":e=$(H.Minutes,1);break;case"mm":e=$(H.Minutes,2);break;case"s":e=$(H.Seconds,1);break;case"ss":e=$(H.Seconds,2);break;case"S":e=$(H.FractionalSeconds,1);break;case"SS":e=$(H.FractionalSeconds,2);break;case"SSS":e=$(H.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=W(U.Short);break;case"ZZZZZ":e=W(U.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=W(U.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=W(U.Long);break;default:return null}return it[t]=e,e}(t);c+=e?e(s,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Y(t,e,i){const n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function V(t,e){const i=function(t){return(0,n.cg1)(t)[n.wAp.LocaleId]}(t);if(B[i]=B[i]||{},B[i][e])return B[i][e];let s="";switch(e){case"shortDate":s=O(t,R.Short);break;case"mediumDate":s=O(t,R.Medium);break;case"longDate":s=O(t,R.Long);break;case"fullDate":s=O(t,R.Full);break;case"shortTime":s=P(t,R.Short);break;case"mediumTime":s=P(t,R.Medium);break;case"longTime":s=P(t,R.Long);break;case"fullTime":s=P(t,R.Full);break;case"short":const e=V(t,"shortTime"),i=V(t,"shortDate");s=K(D(t,R.Short),[e,i]);break;case"medium":const n=V(t,"mediumTime"),o=V(t,"mediumDate");s=K(D(t,R.Medium),[n,o]);break;case"long":const r=V(t,"longTime"),a=V(t,"longDate");s=K(D(t,R.Long),[r,a]);break;case"full":const c=V(t,"fullTime"),u=V(t,"fullDate");s=K(D(t,R.Full),[c,u])}return s&&(B[i][e]=s),s}function K(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function J(t,e,i="-",n,s){let o="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,o=i));let r=String(t);for(;r.length0||a>-i)&&(a+=i),t===H.Hours)0===a&&-12===i&&(a=12);else if(t===H.FractionalSeconds)return c=e,J(a,3).substr(0,c);var c;const u=M(r,I.MinusSign);return J(a,e,u,n,s)}}function Q(t,e,i=k.Format,s=!1){return function(o,r){return function(t,e,i,s,o,r){switch(i){case j.Months:return function(t,e,i){const s=(0,n.cg1)(t),o=z([s[n.wAp.MonthsFormat],s[n.wAp.MonthsStandalone]],e);return z(o,i)}(e,o,s)[t.getMonth()];case j.Days:return function(t,e,i){const s=(0,n.cg1)(t),o=z([s[n.wAp.DaysFormat],s[n.wAp.DaysStandalone]],e);return z(o,i)}(e,o,s)[t.getDay()];case j.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(r){const t=function(t){const e=(0,n.cg1)(t);return N(e),(e[n.wAp.ExtraData][2]||[]).map(t=>"string"==typeof t?F(t):[F(t[0]),F(t[1])])}(e),i=function(t,e,i){const s=(0,n.cg1)(t);N(s);const o=z([s[n.wAp.ExtraData][0],s[n.wAp.ExtraData][1]],e)||[];return z(o,i)||[]}(e,o,s),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=a>=e.hours&&c>=e.minutes,s=a0?Math.floor(s/60):Math.ceil(s/60);switch(t){case U.Short:return(s>=0?"+":"")+J(r,2,o)+J(Math.abs(s%60),2,o);case U.ShortGMT:return"GMT"+(s>=0?"+":"")+J(r,1,o);case U.Long:return"GMT"+(s>=0?"+":"")+J(r,2,o)+":"+J(Math.abs(s%60),2,o);case U.Extended:return 0===n?"Z":(s>=0?"+":"")+J(r,2,o)+":"+J(Math.abs(s%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function X(t){return Y(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function tt(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=X(i),e=function(t){const e=Y(t,0,1).getDay();return Y(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}return J(s,t,M(n,I.MinusSign))}}function et(t,e=!1){return function(i,n){return J(X(i).getFullYear(),t,M(n,I.MinusSign),e)}}const it={};function nt(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function st(t){return t instanceof Date&&!isNaN(t.valueOf())}class ot{}let rt=(()=>{class t extends ot{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(L(e||this.locale)(t)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.soG))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();function at(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let ct=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ut{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 lt=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new ut(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new ht(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const o=new ht(t,s);e.push(o)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ht{constructor(t,e){this.record=t,this.view=e}}let dt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new pt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){gt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){gt("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class pt{constructor(){this.$implicit=null,this.ngIf=null}}function gt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,n.AaK)(e)}'.`)}class ft{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let mt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new ft(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(mt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),wt=(()=>{class t{constructor(t,e,i){i._addDefault(new ft(t,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(mt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),_t=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.aQg),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),yt=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.TTD]}),t})();function At(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,n.AaK)(t)}'`)}class vt{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Tt{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Ct=new Tt,St=new vt;let Et=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,n.QGY)(e))return Ct;if((0,n.F4k)(e))return St;throw At(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO,16))},t.\u0275pipe=n.Yjl({name:"async",type:t,pure:!1}),t})(),kt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw At(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"uppercase",type:t,pure:!0}),t})(),xt=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return G(e,i,s||this.locale,n)}catch(o){throw At(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.soG,16))},t.\u0275pipe=n.Yjl({name:"date",type:t,pure:!0}),t})(),Rt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:ot,useClass:rt}]}),t})();const It="browser";function Ot(t){return t===It}function Pt(t){return"server"===t}let Dt=(()=>{class t{}return t.\u0275prov=(0,n.Yz7)({token:t,providedIn:"root",factory:()=>new Mt((0,n.LFG)(c),window)}),t})();class Mt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){const t=n.shadowRoot;if(t){const i=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(i)return i}n=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Lt(this.window.history)||Lt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Lt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Nt{}},29063:function(t,e,i){"use strict";i.d(e,{TP:function(){return I},eN:function(){return x},JF:function(){return q},WM:function(){return d},LE:function(){return m},Zn:function(){return S}});var n=i(61511),s=i(31572),o=i(40878),r=i(48318),a=i(436),c=i(43835),u=i(79996);class l{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return g(t)}encodeValue(t){return g(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function g(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function f(t){return`${t}`}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[s,o]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],r=i.get(s)||[];r.push(o),i.set(s,r)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(f(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(f(t.value));-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class b{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function w(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function _(t){return"undefined"!=typeof Blob&&t instanceof Blob}function y(t){return"undefined"!=typeof FormData&&t instanceof FormData}class A{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new b),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),u)),new A(i,n,o,{params:u,headers:c,context:l,reportProgress:a,responseType:s,withCredentials:r})}}var v=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class T{constructor(t,e=200,i="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class C extends T{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new C({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class S extends T{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new S({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class E extends T{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function k(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let x=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof A)n=t;else{let s,o;s=i.headers instanceof d?i.headers:new d(i.headers),i.params&&(o=i.params instanceof m?i.params:new m({fromObject:i.params})),n=new A(t,e,void 0!==i.body?i.body:null,{headers:s,context:i.context,params:o,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=(0,o.of)(n).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof A||"events"===i.observe)return s;const r=s.pipe((0,c.h)(t=>t instanceof S));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe((0,u.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe((0,u.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe((0,u.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe((0,u.U)(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,k(i,e))}post(t,e,i={}){return this.request("POST",t,k(i,e))}put(t,e,i={}){return this.request("PUT",t,k(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class R{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const I=new s.OlP("HTTP_INTERCEPTORS");let O=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const P=/^\)\]\}',?\n/;let D=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new r.y(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const o=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",o=new d(i.getAllResponseHeaders()),r=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new C({headers:o,status:e,statusText:n,url:r}),s},r=()=>{let{headers:n,status:s,statusText:r,url:a}=o(),c=null;204!==s&&(c=void 0===i.response?i.responseText:i.response),0===s&&(s=c?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(P,"");try{c=""!==c?JSON.parse(c):null}catch(l){c=t,u&&(u=!1,c={error:l,text:c})}}u?(e.next(new S({body:c,headers:n,status:s,statusText:r,url:a||void 0})),e.complete()):e.error(new E({error:c,headers:n,status:s,statusText:r,url:a||void 0}))},a=t=>{const{url:n}=o(),s=new E({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let c=!1;const u=n=>{c||(e.next(o()),c=!0);let s={type:v.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},l=t=>{let i={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",r),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",u),null!==n&&i.upload&&i.upload.addEventListener("progress",l)),i.send(n),e.next({type:v.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",r),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",u),null!==n&&i.upload&&i.upload.removeEventListener("progress",l)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const M=new s.OlP("XSRF_COOKIE_NAME"),L=new s.OlP("XSRF_HEADER_NAME");class N{}let z=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,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,n.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.Lbi),s.LFG(M))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(N),s.LFG(L))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(I,[]);this.chain=t.reduceRight((t,e)=>new R(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:F,useClass:O}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:M,useValue:e.cookieName}:[],e.headerName?{provide:L,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[F,{provide:I,useExisting:F,multi:!0},{provide:N,useClass:z},{provide:M,useValue:"XSRF-TOKEN"},{provide:L,useValue:"X-XSRF-TOKEN"}]}),t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[x,{provide:l,useClass:Z},D,{provide:h,useExisting:D}],imports:[[B.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},31572:function(t,e,i){"use strict";i.d(e,{deG:function(){return ni},tb:function(){return au},AFp:function(){return iu},ip1:function(){return tu},CZH:function(){return eu},hGG:function(){return tl},z2F:function(){return ju},sBO:function(){return Ya},Sil:function(){return wu},_Vd:function(){return ma},EJc:function(){return lu},SBq:function(){return ya},qLn:function(){return Tn},vpe:function(){return Mc},gxx:function(){return po},tBr:function(){return Ti},XFs:function(){return R},OlP:function(){return ii},zs3:function(){return xo},ZZ4:function(){return Za},aQg:function(){return qa},soG:function(){return uu},YKP:function(){return ic},v3s:function(){return Yu},h0i:function(){return ec},PXZ:function(){return Zu},R0b:function(){return Au},FiY:function(){return Ci},Lbi:function(){return ru},g9A:function(){return ou},n_E:function(){return Nc},Qsj:function(){return Ta},FYo:function(){return va},JOm:function(){return Rn},Tiy:function(){return Sa},q3G:function(){return gn},tp0:function(){return Si},EAV:function(){return Ju},Rgc:function(){return Qa},dDg:function(){return xu},DyG:function(){return si},GfV:function(){return Ea},s_b:function(){return sc},ifc:function(){return L},eFA:function(){return Bu},G48:function(){return zu},Gpc:function(){return p},f3M:function(){return yi},X6Q:function(){return Nu},_c5:function(){return Wu},VLi:function(){return Ou},c2e:function(){return cu},zSh:function(){return fo},wAp:function(){return na},vHH:function(){return m},EiD:function(){return dn},mCW:function(){return Ki},qzn:function(){return zi},JVY:function(){return Zi},pB0:function(){return Hi},eBb:function(){return qi},L6k:function(){return Bi},LAX:function(){return Ui},cg1:function(){return ta},Tjo:function(){return Qu},kL8:function(){return ea},yhl:function(){return Fi},dqk:function(){return B},sIi:function(){return Fo},CqO:function(){return cr},QGY:function(){return rr},F4k:function(){return ar},RDi:function(){return Tt},AaK:function(){return l},z3N:function(){return Ni},qOj:function(){return Io},TTD:function(){return bt},_Bn:function(){return pa},xp6:function(){return fs},uIk:function(){return Go},Tol:function(){return Rr},Gre:function(){return Kr},ekj:function(){return xr},Suo:function(){return Kc},Xpm:function(){return Q},lG2:function(){return ot},Yz7:function(){return y},cJS:function(){return A},oAB:function(){return it},Yjl:function(){return rt},Y36:function(){return $o},_UZ:function(){return er},GkF:function(){return sr},BQk:function(){return nr},ynx:function(){return ir},qZA:function(){return tr},TgZ:function(){return Xo},EpF:function(){return or},n5z:function(){return We},Ikx:function(){return Jr},LFG:function(){return _i},$8M:function(){return ti},NdJ:function(){return ur},CRH:function(){return Jc},kcU:function(){return be},O4$:function(){return me},oxw:function(){return gr},ALo:function(){return kc},lcZ:function(){return xc},xi3:function(){return Rc},Dn7:function(){return Ic},Hsn:function(){return br},F$t:function(){return mr},Q6J:function(){return Qo},s9C:function(){return wr},MGl:function(){return _r},hYB:function(){return yr},DdM:function(){return _c},VKq:function(){return yc},WLB:function(){return Ac},kEZ:function(){return vc},iGM:function(){return Yc},MAs:function(){return Jo},pYS:function(){return kn},evT:function(){return En},Jf7:function(){return Sn},CHM:function(){return Ut},oJD:function(){return fn},LSH:function(){return mn},B6R:function(){return W},kYT:function(){return nt},Udp:function(){return kr},WFA:function(){return lr},d8E:function(){return $r},YNc:function(){return Ko},W1O:function(){return Xc},_uU:function(){return qr},Oqu:function(){return Ur},hij:function(){return Hr},AsE:function(){return jr},lnq:function(){return Gr},HOy:function(){return Yr},xDo:function(){return Vr},Gf:function(){return Vc}});var n=i(55959),s=i(87570),o=i(48318),r=i(31906),a=i(1055);function c(t){for(let e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function u(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function l(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(l).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=c({__forward_ref__:c});function p(t){return t.__forward_ref__=p,t.toString=function(){return l(this())},t}function g(t){return f(t)?t():t}function f(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class m extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function b(t){return"string"==typeof t?t:null==t?"":String(t)}function w(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():b(t)}function _(t,e){const i=e?` in ${e}`:"";throw new m("201",`No provider for ${w(t)} found${i}`)}function y(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function A(t){return{providers:t.providers||[],imports:t.imports||[]}}function v(t){return T(t,S)||T(t,k)}function T(t,e){return t.hasOwnProperty(e)?t[e]:null}function C(t){return t&&(t.hasOwnProperty(E)||t.hasOwnProperty(x))?t[E]:null}const S=c({"\u0275prov":c}),E=c({"\u0275inj":c}),k=c({ngInjectableDef:c}),x=c({ngInjectorDef:c});var R=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let I;function O(t){const e=I;return I=t,e}function P(t,e,i){const n=v(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&R.Optional?null:void 0!==e?e:void _(l(t),"Injector")}function D(t){return{toString:t}.toString()}var M=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),L=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const N="undefined"!=typeof globalThis&&globalThis,z="undefined"!=typeof window&&window,F="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Z="undefined"!=typeof global&&global,B=N||Z||z||F,q={},U=[],H=c({"\u0275cmp":c}),j=c({"\u0275dir":c}),G=c({"\u0275pipe":c}),Y=c({"\u0275mod":c}),V=c({"\u0275loc":c}),K=c({"\u0275fac":c}),J=c({__NG_ELEMENT_ID__:c});let $=0;function Q(t){return D(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===M.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||U,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||L.Emulated,id:"c",styles:t.styles||U,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,o=t.pipes;return i.id+=$++,i.inputs=st(t.inputs,e),i.outputs=st(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(X):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(tt):null,i})}function W(t,e,i){const n=t.\u0275cmp;n.directiveDefs=()=>e.map(X),n.pipeDefs=()=>i.map(tt)}function X(t){return at(t)||function(t){return t[j]||null}(t)}function tt(t){return function(t){return t[G]||null}(t)}const et={};function it(t){return D(()=>{const e={type:t.type,bootstrap:t.bootstrap||U,declarations:t.declarations||U,imports:t.imports||U,exports:t.exports||U,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(et[t.id]=t.type),e})}function nt(t,e){return D(()=>{const i=ct(t,!0);i.declarations=e.declarations||U,i.imports=e.imports||U,i.exports=e.exports||U})}function st(t,e){if(null==t)return q;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),i[s]=n,e&&(e[s]=o)}return i}const ot=Q;function rt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function at(t){return t[H]||null}function ct(t,e){const i=t[Y]||null;if(!i&&!0===e)throw new Error(`Type ${l(t)} does not have '\u0275mod' property.`);return i}function ut(t){return Array.isArray(t)&&"object"==typeof t[1]}function lt(t){return Array.isArray(t)&&!0===t[1]}function ht(t){return 0!=(8&t.flags)}function dt(t){return 2==(2&t.flags)}function pt(t){return 1==(1&t.flags)}function gt(t){return null!==t.template}function ft(t,e){return t.hasOwnProperty(K)?t[K]:null}class mt{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function bt(){return wt}function wt(t){return t.type.prototype.ngOnChanges&&(t.setInput=yt),_t}function _t(){const t=At(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===q)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function yt(t,e,i,n){const s=At(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:q,current:null}),o=s.current||(s.current={}),r=s.previous,a=this.declaredInputs[i],c=r[a];o[a]=new mt(c&&c.currentValue,e,r===q),t[n]=e}function At(t){return t.__ngSimpleChanges__||null}let vt;function Tt(t){vt=t}function Ct(){return void 0!==vt?vt:"undefined"!=typeof document?document:void 0}function St(t){return!!t.listen}bt.ngInherit=!0;const Et={createRenderer:(t,e)=>Ct()};function kt(t){for(;Array.isArray(t);)t=t[0];return t}function xt(t,e){return kt(e[t])}function Rt(t,e){return kt(e[t.index])}function It(t,e){return t.data[e]}function Ot(t,e){return t[e]}function Pt(t,e){const i=e[t];return ut(i)?i:i[0]}function Dt(t){return 4==(4&t[2])}function Mt(t){return 128==(128&t[2])}function Lt(t,e){return null==e?null:t[e]}function Nt(t){t[18]=0}function zt(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Ft={lFrame:ue(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Zt(){return Ft.bindingsEnabled}function Bt(){return Ft.lFrame.lView}function qt(){return Ft.lFrame.tView}function Ut(t){return Ft.lFrame.contextLView=t,t[8]}function Ht(){let t=jt();for(;null!==t&&64===t.type;)t=t.parent;return t}function jt(){return Ft.lFrame.currentTNode}function Gt(t,e){const i=Ft.lFrame;i.currentTNode=t,i.isParent=e}function Yt(){return Ft.lFrame.isParent}function Vt(){Ft.lFrame.isParent=!1}function Kt(){return Ft.isInCheckNoChangesMode}function Jt(t){Ft.isInCheckNoChangesMode=t}function $t(){const t=Ft.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Qt(){return Ft.lFrame.bindingIndex}function Wt(){return Ft.lFrame.bindingIndex++}function Xt(t){const e=Ft.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function te(t,e){const i=Ft.lFrame;i.bindingIndex=i.bindingRootIndex=t,ee(e)}function ee(t){Ft.lFrame.currentDirectiveIndex=t}function ie(t){const e=Ft.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ne(){return Ft.lFrame.currentQueryIndex}function se(t){Ft.lFrame.currentQueryIndex=t}function oe(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function re(t,e,i){if(i&R.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&R.Host||(n=oe(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=Ft.lFrame=ce();return n.currentTNode=e,n.lView=t,!0}function ae(t){const e=ce(),i=t[1];Ft.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function ce(){const t=Ft.lFrame,e=null===t?null:t.child;return null===e?ue(t):e}function ue(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function le(){const t=Ft.lFrame;return Ft.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const he=le;function de(){const t=le();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function pe(){return Ft.lFrame.selectedIndex}function ge(t){Ft.lFrame.selectedIndex=t}function fe(){const t=Ft.lFrame;return It(t.tView,t.selectedIndex)}function me(){Ft.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function be(){Ft.lFrame.currentNamespace=null}function we(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(r)}finally{}}}else try{o.call(r)}finally{}}class Ce{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Se(t,e,i){const n=St(t);let s=0;for(;se){r=o-1;break}}}for(;o>16,n=e;for(;i>0;)n=n[15],i--;return n}let De=!0;function Me(t){const e=De;return De=t,e}let Le=0;function Ne(t,e){const i=Fe(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,ze(n.data,t),ze(e,null),ze(n.blueprint,null));const s=Ze(t,e),o=t.injectorIndex;if(Ie(s)){const t=Oe(s),i=Pe(s,e),n=i[1].data;for(let s=0;s<8;s++)e[o+s]=i[t+s]|n[t+s]}return e[o+8]=s,o}function ze(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Fe(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Ze(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return-1;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function Be(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(J)&&(n=i[J]),null==n&&(n=i[J]=Le++);const s=255&n;e.data[t+(s>>5)]|=1<=0?255&e:Ge:e}(i);if("function"==typeof o){if(!re(e,t,n))return n&R.Host?qe(s,i,n):Ue(e,i,n,s);try{const t=o(n);if(null!=t||n&R.Optional)return t;_(i)}finally{he()}}else if("number"==typeof o){let s=null,r=Fe(t,e),a=-1,c=n&R.Host?e[16][6]:null;for((-1===r||n&R.SkipSelf)&&(a=-1===r?Ze(t,e):e[r+8],-1!==a&&$e(n,!1)?(s=e[1],r=Oe(a),e=Pe(a,e)):r=-1);-1!==r;){const t=e[1];if(Je(o,r,t.data)){const t=Ye(r,e,i,s,n,c);if(t!==je)return t}a=e[r+8],-1!==a&&$e(n,e[1].data[r+8]===c)&&Je(o,r,e)?(s=t,r=Oe(a),e=Pe(a,e)):r=-1}}}return Ue(e,i,n,s)}const je={};function Ge(){return new Qe(Ht(),Bt())}function Ye(t,e,i,n,s,o){const r=e[1],a=r.data[t+8],c=Ve(a,r,i,null==n?dt(a)&&De:n!=r&&0!=(3&a.type),s&R.Host&&o===a);return null!==c?Ke(e,r,c,a):je}function Ve(t,e,i,n,s){const o=t.providerIndexes,r=e.data,a=1048575&o,c=t.directiveStart,u=o>>20,l=s?a+u:t.directiveEnd;for(let h=n?a:a+u;h=c&&t.type===i)return h}if(s){const t=r[c];if(t&>(t)&&t.type===i)return c}return null}function Ke(t,e,i,n){let s=t[i];const o=e.data;if(s instanceof Ce){const r=s;r.resolving&&function(t,e){throw new m("200",`Circular dependency in DI detected for ${t}`)}(w(o[i]));const a=Me(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?O(r.injectImpl):null;re(t,n,R.Default);try{s=t[i]=r.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:o}=e.type.prototype;if(n){const n=wt(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),o&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,o),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,o))}(i,o[i],e)}finally{null!==c&&O(c),Me(a),r.resolving=!1,he()}}return s}function Je(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[K]||Xe(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[K]||Xe(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function Xe(t){return f(t)?()=>{const e=Xe(g(t));return e&&e()}:ft(t)}function ti(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class ii{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=y({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ni=new ii("AnalyzeForEntryComponents"),si=Function;function oi(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?ri(t,e):e(t))}function ai(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function ci(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ui(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function hi(t,e){const i=di(t,e);if(i>=0)return t[1|i]}function di(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),o=t[i<<1];if(e===o)return i<<1;o>e?s=i:n=i+1}return~(s<<1)}(t,e)}const pi={},gi=/\n/gm,fi=c({provide:String,useValue:c});let mi;function bi(t){const e=mi;return mi=t,e}function wi(t,e=R.Default){if(void 0===mi)throw new Error("inject() must be called from an injection context");return null===mi?P(t,void 0,e):mi.get(t,e&R.Optional?null:void 0,e)}function _i(t,e=R.Default){return(I||wi)(g(t),e)}const yi=_i;function Ai(t){const e=[];for(let i=0;i({token:t})),-1),Ci=vi(ei("Optional"),8),Si=vi(ei("SkipSelf"),4);let Ei,ki;function xi(t){var e;return(null===(e=function(){if(void 0===Ei&&(Ei=null,B.trustedTypes))try{Ei=B.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Ei}())||void 0===e?void 0:e.createHTML(t))||t}function Ri(t){var e;return(null===(e=function(){if(void 0===ki&&(ki=null,B.trustedTypes))try{ki=B.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return ki}())||void 0===e?void 0:e.createHTML(t))||t}class Ii{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Oi extends Ii{getTypeName(){return"HTML"}}class Pi extends Ii{getTypeName(){return"Style"}}class Di extends Ii{getTypeName(){return"Script"}}class Mi extends Ii{getTypeName(){return"URL"}}class Li extends Ii{getTypeName(){return"ResourceURL"}}function Ni(t){return t instanceof Ii?t.changingThisBreaksApplicationSecurity:t}function zi(t,e){const i=Fi(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Fi(t){return t instanceof Ii&&t.getTypeName()||null}function Zi(t){return new Oi(t)}function Bi(t){return new Pi(t)}function qi(t){return new Di(t)}function Ui(t){return new Mi(t)}function Hi(t){return new Li(t)}class ji{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(xi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Gi{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=xi(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=xi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0Ki(t.trim())).join(", ")),this.buf.push(" ",e,'="',ln(r),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();en.hasOwnProperty(e)&&!Qi.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(ln(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const cn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,un=/([^\#-~ |!])/g;function ln(t){return t.replace(/&/g,"&").replace(cn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(un,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let hn;function dn(t,e){let i=null;try{hn=hn||function(t){const e=new Gi(t);return function(){try{return!!(new window.DOMParser).parseFromString(xi(""),"text/html")}catch(t){return!1}}()?new ji(e):e}(t);let n=e?String(e):"";i=hn.getInertBodyElement(n);let s=5,o=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=o,o=i.innerHTML,i=hn.getInertBodyElement(n)}while(n!==o);return xi((new an).sanitizeChildren(pn(i)||i))}finally{if(i){const t=pn(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function pn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var gn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function fn(t){const e=bn();return e?Ri(e.sanitize(gn.HTML,t)||""):zi(t,"HTML")?Ri(Ni(t)):dn(Ct(),b(t))}function mn(t){const e=bn();return e?e.sanitize(gn.URL,t)||"":zi(t,"URL")?Ni(t):Ki(b(t))}function bn(){const t=Bt();return t&&t[12]}function wn(t,e){t.__ngContext__=e}function _n(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function yn(t){return t.ngDebugContext}function An(t){return t.ngOriginalError}function vn(t,...e){t.error(...e)}class Tn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||vn}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?yn(t)?yn(t):this._findContext(An(t)):null}_findOriginalError(t){let e=An(t);for(;e&&An(e);)e=An(e);return e}}const Cn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B))();function Sn(t){return t.ownerDocument.defaultView}function En(t){return t.ownerDocument}function kn(t){return t.ownerDocument.body}function xn(t){return t instanceof Function?t():t}var Rn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function In(t,e){return(void 0)(t,e)}function On(t){const e=t[3];return lt(e)?e[3]:e}function Pn(t){return Mn(t[13])}function Dn(t){return Mn(t[4])}function Mn(t){for(;null!==t&&!lt(t);)t=t[4];return t}function Ln(t,e,i,n,s){if(null!=n){let o,r=!1;lt(n)?o=n:ut(n)&&(r=!0,n=n[0]);const a=kt(n);0===t&&null!==i?null==s?Hn(e,i,a):Un(e,i,a,s||null,!0):1===t&&null!==i?Un(e,i,a,s||null,!0):2===t?function(t,e,i){const n=Gn(t,e);n&&function(t,e,i,n){St(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,r):3===t&&e.destroyNode(a),null!=o&&function(t,e,i,n,s){const o=i[7];o!==kt(i)&&Ln(e,t,n,o,s);for(let r=10;r0&&(t[i-1][4]=n[4]);const r=ci(t,10+e);Xn(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=r[19];null!==a&&a.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function Zn(t,e){if(!(256&e[2])){const i=e[11];St(i)&&i.destroyNode&&Xn(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return Bn(t[1],t);for(;e;){let i=null;if(ut(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)ut(e)&&Bn(e[1],e),e=e[3];null===e&&(e=t),ut(e)&&Bn(e[1],e),i=e&&e[4]}e=i}}(e)}}function Bn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=c]():n[s=-c].unsubscribe(),o+=2}else{const t=n[s=i[o+1]];i[o].call(t)}if(null!==n){for(let t=s+1;to?"":s[l+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==ns(e,u,0)||2&n&&u!==t){if(cs(n))return!1;r=!0}}}}else{if(!r&&!cs(n)&&!cs(c))return!1;if(r&&cs(c))continue;r=!1,n=c|1&n}}return cs(n)||r}function cs(t){return 0==(1&t)}function us(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+r:4&n&&(s+=" "+r);else""===s||cs(r)||(e+=ds(o,s),s=""),n=r,o=o||!cs(n);i++}return""!==s&&(e+=ds(o,s)),e}const gs={};function fs(t){ms(qt(),Bt(),pe()+t,Kt())}function ms(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&_e(e,n,i)}else{const n=t.preOrderHooks;null!==n&&ye(e,n,0,i)}ge(i)}function bs(t,e){return t<<17|e<<2}function ws(t){return t>>17&32767}function _s(t){return 2|t}function ys(t){return(131068&t)>>2}function As(t,e){return-131069&t|e<<2}function vs(t){return 1|t}function Ts(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;n20&&ms(t,e,20,Kt()),i(n,s)}finally{ge(o)}}function Os(t,e,i){if(ht(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=o&&i.push(o),i.push(n,s,r)}}function qs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Us(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Hs(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&Qs(i)}}function Qs(t){for(let i=Pn(t);null!==i;i=Dn(i))for(let t=10;t0&&Qs(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&Qs(n)}}function Ws(t,e){const i=Pt(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function oo(t){return t[7]||(t[7]=[])}function ro(t){return t.cleanup||(t.cleanup=[])}function ao(t,e,i){return(null===t||gt(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function co(t,e){const i=t[9],n=i?i.get(Tn,null):null;n&&n.handleError(e)}function uo(t,e,i,n,s){for(let o=0;othis.processProvider(i,t,e)),ri([t],t=>this.processInjectorType(t,[],s)),this.records.set(po,Co(void 0,this));const o=this.records.get(fo);this.scope=null!=o?o.value:null,this.source=n||("object"==typeof t?null:l(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=pi,i=R.Default){this.assertNotDestroyed();const n=bi(this);try{if(!(i&R.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof ii)&&v(t);e=i&&this.injectableDefInScope(i)?Co(vo(t),mo):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&R.Self?_o():this.parent).get(t,e=i&R.Optional&&e===pi?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(l(t)),n)throw o;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=l(e);if(Array.isArray(e))s=e.map(l).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):l(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(gi,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{bi(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(l(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=g(t)))return!1;let n=C(t);const s=null==n&&t.ngModule||void 0,o=void 0===s?t:s,r=-1!==i.indexOf(o);if(void 0!==s&&(n=C(s)),null==n)return!1;if(null!=n.imports&&!r){let t;i.push(o);try{ri(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||U))}}this.injectorDefTypes.add(o);const a=ft(o)||(()=>new o);this.records.set(o,Co(a,mo));const c=n.providers;if(null!=c&&!r){const e=t;ri(c,t=>this.processProvider(t,e,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=Eo(t=g(t))?t:g(t&&t.provide);const s=function(t,e,i){return So(t)?Co(void 0,t.useValue):Co(To(t),mo)}(t);if(Eo(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=Co(void 0,mo,!0),e.factory=()=>Ai(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===mo&&(e.value=bo,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=g(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function vo(t){const e=v(t),i=null!==e?e.factory:ft(t);if(null!==i)return i;if(t instanceof ii)throw new Error(`Token ${l(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=ui(e,"?");throw new Error(`Can't resolve all parameters for ${l(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[S]||t[k]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function To(t,e,i){let n;if(Eo(t)){const e=g(t);return ft(e)||vo(e)}if(So(t))n=()=>g(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...Ai(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>_i(g(t.useExisting));else{const e=g(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ft(e)||vo(e);n=()=>new e(...Ai(t.deps))}var s;return n}function Co(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function So(t){return null!==t&&"object"==typeof t&&fi in t}function Eo(t){return"function"==typeof t}const ko=function(t,e,i){return function(t,e=null,i=null,n){const s=yo(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let xo=(()=>{class t{static create(t,e){return Array.isArray(t)?ko(t,e,""):ko(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=pi,t.NULL=new go,t.\u0275prov=y({token:t,providedIn:"any",factory:()=>_i(po)}),t.__NG_ELEMENT_ID__=-1,t})();function Ro(t,e){we(_n(t)[1],Ht())}function Io(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s;if(gt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=Oo(t.inputs),e.declaredInputs=Oo(t.declaredInputs),e.outputs=Oo(t.outputs);const i=s.hostBindings;i&&Mo(t,i);const o=s.viewQuery,r=s.contentQueries;if(o&&Po(t,o),r&&Do(t,r),u(t.inputs,s.inputs),u(t.declaredInputs,s.declaredInputs),u(t.outputs,s.outputs),gt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=xe(s.hostAttrs,i=xe(i,s.hostAttrs))}}(n)}function Oo(t){return t===q?{}:t===U?[]:t}function Po(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Do(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function Mo(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let Lo=null;function No(){if(!Lo){const t=B.Symbol;if(t&&t.iterator)Lo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(kt(t[n.index])):n.index;if(St(i)){let r=null;if(!a&&c&&(r=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let o=0;oi?t[i]:null}"string"==typeof t&&(o+=2)}return null}(t,e,s,n.index)),null!==r)(r.__ngLastListenerFn__||r).__ngNextListenerFn__=o,r.__ngLastListenerFn__=o,h=!1;else{o=pr(n,e,0,o,!1);const t=i.listen(p,s,o);l.push(o,t),u&&u.push(s,f,g,g+1)}}else o=pr(n,e,0,o,!0),p.addEventListener(s,o,r),l.push(o),u&&u.push(s,f,g,r)}else o=pr(n,e,0,o,!1);const d=n.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,Ft.lFrame.contextLView))[8]}(t)}function fr(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Tr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Cr(t){return t.substring(Tr.key,Tr.keyEnd)}function Sr(t,e){const i=Tr.textEnd;return i===e?-1:(e=Tr.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Tr.key=e,i),Er(t,e,i))}function Er(t,e,i){for(;e=0;i=Sr(e,i))li(t,Cr(e),!0)}function Or(t,e,i,n){const s=Bt(),o=qt(),r=Xt(2);o.firstUpdatePass&&Mr(o,t,r,n),e!==gs&&qo(s,r,e)&&zr(o,o.data[pe()],s,s[11],t,s[r+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=l(Ni(t)))),t}(e,i),n,r)}function Pr(t,e,i,n){const s=qt(),o=Xt(2);s.firstUpdatePass&&Mr(s,null,o,n);const r=Bt();if(i!==gs&&qo(r,o,i)){const a=s.data[pe()];if(Br(a,n)&&!Dr(s,o)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=h(t,i||"")),Wo(s,a,r,i,n)}else!function(t,e,i,n,s,o,r,a){s===gs&&(s=U);let c=0,u=0,l=0=t.expandoStartIndex}function Mr(t,e,i,n){const s=t.data;if(null===s[i+1]){const o=s[pe()],r=Dr(t,i);Br(o,n)&&null===e&&!r&&(e=!1),e=function(t,e,i,n){const s=ie(t);let o=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=Nr(i=Lr(null,t,e,i,n),e.attrs,n),o=null);else{const r=e.directiveStylingLast;if(-1===r||t[r]!==s)if(i=Lr(s,t,e,i,n),null===o){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==ys(n))return t[ws(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=Lr(null,t,e,i[1],n),i=Nr(i,e.attrs,n),function(t,e,i,n){t[ws(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else o=function(t,e,i){let n;const s=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(l=!0)}else u=i;if(s)if(0!==c){const e=ws(t[a+1]);t[n+1]=bs(e,a),0!==e&&(t[e+1]=As(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=bs(a,0),0!==a&&(t[a+1]=As(t[a+1],n)),a=n;else t[n+1]=bs(c,0),0===a?a=n:t[c+1]=As(t[c+1],n),c=n;l&&(t[n+1]=_s(t[n+1])),Ar(t,u,n,!0),Ar(t,u,n,!1),function(t,e,i,n,s){const o=s?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&di(o,e)>=0&&(i[n+1]=vs(i[n+1]))}(e,u,t,n,o),r=bs(a,c),o?e.classBindings=r:e.styleBindings=r}(s,o,e,i,r,n)}}function Lr(t,e,i,n,s){let o=null;const r=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],o=Array.isArray(e),c=o?e[1]:e,u=null===c;let l=i[s+1];l===gs&&(l=u?U:void 0);let h=u?hi(l,n):c===n?l:void 0;if(o&&!Zr(h)&&(h=hi(e,n)),Zr(h)&&(a=h,r))return a;const d=t[s+1];s=r?ws(d):ys(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=hi(t,n))}return a}function Zr(t){return void 0!==t}function Br(t,e){return 0!=(t.flags&(e?16:32))}function qr(t,e=""){const i=Bt(),n=qt(),s=t+20,o=n.firstCreatePass?Ss(n,s,1,e,null):n.data[s],r=i[s]=function(t,e){return St(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Kn(n,i,r,o),Gt(o,!1)}function Ur(t){return Hr("",t,""),Ur}function Hr(t,e,i){const n=Bt(),s=Yo(n,t,e,i);return s!==gs&&lo(n,pe(),s),Hr}function jr(t,e,i,n,s){const o=Bt(),r=Vo(o,t,e,i,n,s);return r!==gs&&lo(o,pe(),r),jr}function Gr(t,e,i,n,s,o,r){const a=Bt(),c=function(t,e,i,n,s,o,r,a){const c=Ho(t,Qt(),i,s,r);return Xt(3),c?e+b(i)+n+b(s)+o+b(r)+a:gs}(a,t,e,i,n,s,o,r);return c!==gs&&lo(a,pe(),c),Gr}function Yr(t,e,i,n,s,o,r,a,c){const u=Bt(),l=function(t,e,i,n,s,o,r,a,c,u){const l=jo(t,Qt(),i,s,r,c);return Xt(4),l?e+b(i)+n+b(s)+o+b(r)+a+b(c)+u:gs}(u,t,e,i,n,s,o,r,a,c);return l!==gs&&lo(u,pe(),l),Yr}function Vr(t,e,i,n,s,o,r,a,c,u,l){const h=Bt(),d=function(t,e,i,n,s,o,r,a,c,u,l,h){const d=Qt();let p=jo(t,d,i,s,r,c);return p=qo(t,d+4,l)||p,Xt(5),p?e+b(i)+n+b(s)+o+b(r)+a+b(c)+u+b(l)+h:gs}(h,t,e,i,n,s,o,r,a,c,u,l);return d!==gs&&lo(h,pe(),d),Vr}function Kr(t,e,i){Pr(li,Ir,Yo(Bt(),t,e,i),!0)}function Jr(t,e,i){const n=Bt();return qo(n,Wt(),e)&&Fs(qt(),fe(),n,t,e,n[11],i,!0),Jr}function $r(t,e,i){const n=Bt();if(qo(n,Wt(),e)){const s=qt(),o=fe();Fs(s,o,n,t,e,ao(ie(s.data),o,n),i,!0)}return $r}const Qr=void 0;var Wr=["en",[["a","p"],["AM","PM"],Qr],[["AM","PM"],Qr,Qr],[["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"]],Qr,[["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"]],Qr,[["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}",Qr,"{1} 'at' {0}",Qr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Xr={};function ta(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=ia(e);if(i)return i;const n=e.split("-")[0];if(i=ia(n),i)return i;if("en"===n)return Wr;throw new Error(`Missing locale data for the locale "${t}".`)}function ea(t){return ta(t)[na.PluralCase]}function ia(t){return t in Xr||(Xr[t]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[t]),Xr[t]}var na=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let sa="en-US";function oa(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(sa=t.toLowerCase().replace(/_/g,"-"))}function ra(t,e,i,n,s){if(t=g(t),Array.isArray(t))for(let o=0;o>20;if(Eo(t)||!t.multi){const n=new Ce(c,s,$o),p=ua(a,e,s?l:l+d,h);-1===p?(Be(Ne(u,r),o,a),aa(o,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(n),r.push(n)):(i[p]=n,r[p]=n)}else{const p=ua(a,e,l+d,h),g=ua(a,e,l,l+d),f=p>=0&&i[p],m=g>=0&&i[g];if(s&&!m||!s&&!f){Be(Ne(u,r),o,a);const l=function(t,e,i,n,s){const o=new Ce(t,i,$o);return o.multi=[],o.index=e,o.componentProviders=0,ca(o,s,n&&!i),o}(s?ha:la,i.length,s,n,c);!s&&m&&(i[g].providerFactory=l),aa(o,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(l),r.push(l)}else aa(o,t,p>-1?p:g,ca(i[s?g:p],c,!s&&n));!s&&n&&m&&i[g].componentProviders++}}}function aa(t,e,i,n){const s=Eo(e);if(s||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const r=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=r.indexOf(i);-1===t?r.push(i,[n,o]):r[t+1].push(n,o)}else r.push(i,o)}}}function ca(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function ua(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=qt();if(n.firstCreatePass){const s=gt(t);ra(i,n.data,n.blueprint,s,!0),ra(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class ga{}class fa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${l(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ma=(()=>{class t{}return t.NULL=new fa,t})();function ba(...t){}function wa(t,e){return new ya(Rt(t,e))}const _a=function(){return wa(Ht(),Bt())};let ya=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=_a,t})();function Aa(t){return t instanceof ya?t.nativeElement:t}class va{}let Ta=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ca(),t})();const Ca=function(){const t=Bt(),e=Pt(Ht().index,t);return function(t){return t[11]}(ut(e)?e:t)};let Sa=(()=>{class t{}return t.\u0275prov=y({token:t,providedIn:"root",factory:()=>null}),t})();class Ea{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const ka=new Ea("12.0.5");class xa{constructor(){}supports(t){return Fo(t)}create(t){return new Ia(t)}}const Ra=(t,e)=>e;class Ia{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ra}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(o&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),o=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new Oa(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Da),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Da),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Oa{constructor(t,e){this.item=t,this.trackById=e,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 Pa{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Da{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Pa,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ma(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;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(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new za(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class za{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Fa(){return new Za([new xa])}let Za=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Fa()),deps:[[t,new Si,new Ci]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=y({token:t,providedIn:"root",factory:Fa}),t})();function Ba(){return new qa([new La])}let qa=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Ba()),deps:[[t,new Si,new Ci]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=y({token:t,providedIn:"root",factory:Ba}),t})();function Ua(t,e,i,n,s=!1){for(;null!==i;){const o=e[i.index];if(null!==o&&n.push(kt(o)),lt(o))for(let t=10;t-1&&(Fn(t,i),ci(e,i))}this._attachedToViewContainer=!1}Zn(this._lView[1],this._lView)}onDestroy(t){Ns(this._lView[1],this._lView,null,t)}markForCheck(){to(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){eo(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Jt(!0);try{eo(t,e,i)}finally{Jt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Xn(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class ja extends Ha{constructor(t){super(t),this._view=t}detectChanges(){io(this._view)}checkNoChanges(){!function(t){Jt(!0);try{io(t)}finally{Jt(!1)}}(this._view)}get context(){return null}}const Ga=function(t){return function(t,e,i){if(dt(t)&&!i){const i=Pt(t.index,e);return new Ha(i,i)}return 47&t.type?new Ha(e[16],e):null}(Ht(),Bt(),16==(16&t))};let Ya=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ga,t})();const Va=[new La],Ka=new Za([new xa]),Ja=new qa(Va),$a=function(){return tc(Ht(),Bt())};let Qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=$a,t})();const Wa=Qa,Xa=class extends Wa{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Cs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),ks(e,i,t),new Ha(i)}};function tc(t,e){return 4&t.type?new Xa(e,t,wa(t,e)):null}class ec{}class ic{}const nc=function(){return uc(Ht(),Bt())};let sc=(()=>{class t{}return t.__NG_ELEMENT_ID__=nc,t})();const oc=sc,rc=class extends oc{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return wa(this._hostTNode,this._hostLView)}get injector(){return new Qe(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ze(this._hostTNode,this._hostLView);if(Ie(t)){const e=Pe(t,this._hostLView),i=Oe(t);return new Qe(e[1].data[i+8],e)}return new Qe(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=ac(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const o=i||this.parentInjector;if(!s&&null==t.ngModule&&o){const t=o.get(ec,null);t&&(s=t)}const r=t.create(o,n,void 0,s);return this.insert(r.hostView,e),r}insert(t,e){const i=t._lView,n=i[1];if(lt(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new rc(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(t,e,i,n){const s=10+n,o=i.length;n>0&&(i[s-1][4]=e),nCn});class gc extends ga{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ps).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return dc(this.componentDef.inputs)}get outputs(){return dc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const o=t.get(i,lc,s);return o!==lc||n===lc?o:e.get(i,n,s)}}}(t,n.injector):t,o=s.get(va,Et),r=s.get(Sa,null),a=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function(t,e,i){if(St(t))return t.selectRootElement(e,i===L.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):Nn(o.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,h={components:[],scheduler:Cn,clean:so,playerHandler:null,flags:0},d=Ls(0,null,null,1,0,null,null,null,null,null),p=Cs(null,d,h,l,null,null,o,a,r,s);let g,f;ae(p);try{const t=function(t,e,i,n,s,o){const r=i[1];i[20]=t;const a=Ss(r,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(ho(a,c,!0),null!==t&&(Se(s,t,c),null!==a.classes&&is(s,t,a.classes),null!==a.styles&&es(s,t,a.styles)));const u=n.createRenderer(t,e),l=Cs(i,Ms(e),null,e.onPush?64:16,i[20],a,n,u,null,null);return r.firstCreatePass&&(Be(Ne(a,i),r,e.type),Us(r,a),js(a,i.length,1)),Xs(i,l),i[20]=l}(u,this.componentDef,p,o,a);if(u)if(i)Se(a,u,["ng-version",ka.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&is(a,u,e.join(" "))}if(f=It(d,20),void 0!==e){const t=f.projection=[];for(let i=0;it(r,e)),e.contentQueries){const t=Ht();e.contentQueries(1,r,t.directiveStart)}const a=Ht();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(ge(a.index),Bs(i[1],a,0,a.directiveStart,a.directiveEnd,e),qs(e,r)),r}(t,this.componentDef,p,h,[Ro]),ks(d,p,null)}finally{de()}return new fc(this.componentType,g,wa(f,p),p,f)}}class fc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new ja(n),this.componentType=t}get injector(){return new Qe(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const mc=new Map;class bc extends ec{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new hc(this);const i=ct(t),n=t[V]||null;n&&oa(n),this._bootstrapComponents=xn(i.bootstrap),this._r3Injector=yo(t,e,[{provide:ec,useValue:this},{provide:ma,useValue:this.componentFactoryResolver}],l(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=xo.THROW_IF_NOT_FOUND,i=R.Default){return t===xo||t===ec||t===po?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class wc extends ic{constructor(t){super(),this.moduleType=t,null!==ct(t)&&function(t){const e=new Set;!function t(i){const n=ct(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${l(e)} vs ${l(e.name)}`)}(s,mc.get(s),i),mc.set(s,i));const o=xn(n.imports);for(const r of o)e.has(r)||(e.add(r),t(r))}(t)}(t)}create(t){return new bc(this.moduleType,t)}}function _c(t,e,i){const n=$t()+t,s=Bt();return s[n]===gs?Bo(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function yc(t,e,i,n){return Cc(Bt(),$t(),t,e,i,n)}function Ac(t,e,i,n,s){return Sc(Bt(),$t(),t,e,i,n,s)}function vc(t,e,i,n,s,o){return Ec(Bt(),$t(),t,e,i,n,s,o)}function Tc(t,e){const i=t[e];return i===gs?void 0:i}function Cc(t,e,i,n,s,o){const r=e+i;return qo(t,r,s)?Bo(t,r+1,o?n.call(o,s):n(s)):Tc(t,r+1)}function Sc(t,e,i,n,s,o,r){const a=e+i;return Uo(t,a,s,o)?Bo(t,a+2,r?n.call(r,s,o):n(s,o)):Tc(t,a+2)}function Ec(t,e,i,n,s,o,r,a){const c=e+i;return Ho(t,c,s,o,r)?Bo(t,c+3,a?n.call(a,s,o,r):n(s,o,r)):Tc(t,c+3)}function kc(t,e){const i=qt();let n;const s=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new m("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const o=n.factory||(n.factory=ft(n.type)),r=O($o);try{const t=Me(!1),e=o();return Me(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Bt(),s,e),e}finally{O(r)}}function xc(t,e,i){const n=t+20,s=Bt(),o=Ot(s,n);return Pc(s,Oc(s,n)?Cc(s,$t(),e,o.transform,i,o):o.transform(i))}function Rc(t,e,i,n){const s=t+20,o=Bt(),r=Ot(o,s);return Pc(o,Oc(o,s)?Sc(o,$t(),e,r.transform,i,n,r):r.transform(i,n))}function Ic(t,e,i,n,s){const o=t+20,r=Bt(),a=Ot(r,o);return Pc(r,Oc(r,o)?Ec(r,$t(),e,a.transform,i,n,s,a):a.transform(i,n,s))}function Oc(t,e){return t[1].data[e].pure}function Pc(t,e){return zo.isWrapped(e)&&(e=zo.unwrap(e),t[Qt()]=gs),e}function Dc(t){return e=>{setTimeout(t,void 0,e)}}const Mc=class extends n.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var n,o,r;let a=t,c=e||(()=>null),u=i;if(t&&"object"==typeof t){const e=t;a=null===(n=e.next)||void 0===n?void 0:n.bind(e),c=null===(o=e.error)||void 0===o?void 0:o.bind(e),u=null===(r=e.complete)||void 0===r?void 0:r.bind(e)}this.__isAsync&&(c=Dc(c),a&&(a=Dc(a)),u&&(u=Dc(u)));const l=super.subscribe({next:a,error:c,complete:u});return t instanceof s.w&&t.add(l),l}};function Lc(){return this._results[No()]()}class Nc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=No(),i=Nc.prototype;i[e]||(i[e]=Lc)}get changes(){return this._changes||(this._changes=new Mc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){this.dirty=!1;const i=oi(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(r[t/2]);else{const s=o[t+1],r=e[-i];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=ba,this.reject=ba,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e.subscribe({complete:t,error:i})});t.push(i)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(_i(tu,8))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const iu=new ii("AppId"),nu={provide:iu,useFactory:function(){return`${su()}${su()}${su()}`},deps:[]};function su(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ou=new ii("Platform Initializer"),ru=new ii("Platform ID"),au=new ii("appBootstrapListener");let cu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const uu=new ii("LocaleId"),lu=new ii("DefaultCurrencyCode");class hu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const du=function(t){return new wc(t)},pu=du,gu=function(t){return Promise.resolve(du(t))},fu=function(t){const e=du(t),i=xn(ct(t).declarations).reduce((t,e)=>{const i=at(e);return i&&t.push(new gc(i)),t},[]);return new hu(e,i)},mu=fu,bu=function(t){return Promise.resolve(fu(t))};let wu=(()=>{class t{constructor(){this.compileModuleSync=pu,this.compileModuleAsync=gu,this.compileModuleAndAllComponentsSync=mu,this.compileModuleAndAllComponentsAsync=bu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const _u=(()=>Promise.resolve(0))();function yu(t){"undefined"==typeof Zone?_u.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Au{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Mc(!1),this.onMicrotaskEmpty=new Mc(!1),this.onStable=new Mc(!1),this.onError=new Mc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!i&&e,this.shouldCoalesceRunChangeDetection=i,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=B.requestAnimationFrame,e=B.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(B,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Cu(t),t.isCheckStableRunning=!0,Tu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Cu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,s,o,r,a)=>{try{return Su(t),i.invokeTask(s,o,r,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),Eu(t)}},onInvoke:(i,n,s,o,r,a,c)=>{try{return Su(t),i.invoke(s,o,r,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),Eu(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Cu(t),Tu(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Au.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Au.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+n,t,vu,ba,ba);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const vu={};function Tu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Cu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Su(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Eu(t){t._nesting--,Tu(t)}class ku{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Mc,this.onMicrotaskEmpty=new Mc,this.onStable=new Mc,this.onError=new Mc}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let xu=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Au.assertNotInAngularZone(),yu(()=>{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())yu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!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(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(_i(Au))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})(),Ru=(()=>{class t{constructor(){this._applications=new Map,Du.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Du.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();class Iu{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}function Ou(t){Du=t}let Pu,Du=new Iu,Mu=!0,Lu=!1;function Nu(){return Lu=!0,Mu}function zu(){if(Lu)throw new Error("Cannot enable prod mode after platform setup.");Mu=!1}const Fu=new ii("AllowMultipleToken");class Zu{constructor(t,e){this.name=t,this.token=e}}function Bu(t,e,i=[]){const n=`Platform: ${e}`,s=new ii(n);return(e=[])=>{let o=qu();if(!o||o.injector.get(Fu,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:fo,useValue:"platform"});!function(t){if(Pu&&!Pu.destroyed&&!Pu.injector.get(Fu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Pu=t.get(Uu);const e=t.get(ou,null);e&&e.forEach(t=>t())}(xo.create({providers:t,name:n}))}return function(t){const e=qu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function qu(){return Pu&&!Pu.destroyed?Pu:null}let Uu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new ku:("zone.js"===t?void 0:t)||new Au({enableLongStackTrace:Nu(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:Au,useValue:i}];return i.run(()=>{const e=xo.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),o=s.injector.get(Tn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{o.handleError(t)}});s.onDestroy(()=>{Gu(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return rr(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(o,i,()=>{const t=s.injector.get(eu);return t.runInitializers(),t.donePromise.then(()=>(oa(s.injector.get(uu,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=Hu({},e);return function(t,e,i){const n=new wc(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(ju);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${l(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(_i(xo))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function Hu(t,e){return Array.isArray(e)?e.reduce(Hu,t):Object.assign(Object.assign({},t),e)}let ju=(()=>{class t{constructor(t,e,i,n,s){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new o.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new o.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Au.assertNotInAngularZone(),yu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{Au.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=(0,r.T)(c,u.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof ga?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(ec),s=i.create(xo.NULL,[],e||i.selector,n),o=s.location.nativeElement,r=s.injector.get(xu,null),a=r&&s.injector.get(Ru);return r&&a&&a.registerApplication(o,r),s.onDestroy(()=>{this.detachView(s.hostView),Gu(this.components,s),a&&a.unregisterApplication(o)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Gu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(au,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(_i(Au),_i(xo),_i(Tn),_i(ma),_i(eu))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function Gu(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Yu{}class Vu{}const Ku={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Ju=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Ku}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i(27622)(e).then(t=>t[n]).then(t=>$u(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i(27622)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>$u(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(_i(wu),_i(Vu,8))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function $u(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const Qu=function(t){return null},Wu=Bu(null,"core",[{provide:ru,useValue:"unknown"},{provide:Uu,deps:[xo]},{provide:Ru,deps:[]},{provide:cu,deps:[]}]),Xu=[{provide:ju,useClass:ju,deps:[Au,xo,Tn,ma,eu]},{provide:pc,deps:[Au],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:eu,useClass:eu,deps:[[new Ci,tu]]},{provide:wu,useClass:wu,deps:[]},nu,{provide:Za,useFactory:function(){return Ka},deps:[]},{provide:qa,useFactory:function(){return Ja},deps:[]},{provide:uu,useFactory:function(t){return oa(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new Ti(uu),new Ci,new Si]]},{provide:lu,useValue:"USD"}];let tl=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(_i(ju))},t.\u0275mod=it({type:t}),t.\u0275inj=A({providers:Xu}),t})()},16073:function(t,e,i){"use strict";i.d(e,{Zs:function(){return zt},gN:function(){return z},Fj:function(){return p},qu:function(){return Ht},NI:function(){return rt},oH:function(){return At},u:function(){return St},sg:function(){return Tt},u5:function(){return qt},Cf:function(){return m},JU:function(){return l},a5:function(){return F},JJ:function(){return B},JL:function(){return q},F:function(){return ht},On:function(){return gt},YN:function(){return Rt},wV:function(){return bt},c5:function(){return Zt},UX:function(){return Ut},Q7:function(){return Nt},EJ:function(){return xt},kI:function(){return _},_Y:function(){return ft},Kr:function(){return Dt}});var n=i(31572),s=i(61511),o=i(19764),r=i(3148),a=i(79996);let c=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t}),t})(),u=(()=>{class t extends c{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})();const l=new n.OlP("NgValueAccessor"),h={provide:l,useExisting:(0,n.Gpc)(()=>p),multi:!0},d=new n.OlP("CompositionEventMode");let p=(()=>{class t extends c{constructor(t,e,i){super(t,e),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,s.q)()?(0,s.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(d,8))},t.\u0275dir=n.lG2({type:t,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(t,e){1&t&&n.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[n._Bn([h]),n.qOj]}),t})();function g(t){return null==t||0===t.length}function f(t){return null!=t&&"number"==typeof t.length}const m=new n.OlP("NgValidators"),b=new n.OlP("NgAsyncValidators"),w=/^(?=.{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 _{static min(t){return function(t){return e=>{if(g(e.value)||g(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(g(e.value)||g(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return y(t)}static requiredTrue(t){return A(t)}static email(t){return function(t){return g(t.value)||w.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>g(e.value)||!f(e.value)?null:e.value.lengthf(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return v(t)}static nullValidator(t){return null}static compose(t){return R(t)}static composeAsync(t){return O(t)}}function y(t){return g(t.value)?{required:!0}:null}function A(t){return!0===t.value?null:{required:!0}}function v(t){if(!t)return T;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(g(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}function T(t){return null}function C(t){return null!=t}function S(t){const e=(0,n.QGY)(t)?(0,o.D)(t):t;return(0,n.CqO)(e),e}function E(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function k(t,e){return e.map(e=>e(t))}function x(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function R(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){return E(k(t,e))}}function I(t){return null!=t?R(x(t)):null}function O(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){const i=k(t,e).map(S);return(0,r.D)(i).pipe((0,a.U)(E))}}function P(t){return null!=t?O(x(t)):null}function D(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function M(t){return t._rawValidators}function L(t){return t._rawAsyncValidators}let N=(()=>{class t{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(t){this._rawValidators=t||[],this._composedValidatorFn=I(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=P(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t}),t})(),z=(()=>{class t extends N{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})();class F extends N{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Z{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let B=(()=>{class t extends Z{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(F,2))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t})(),q=(()=>{class t extends Z{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t})();function U(t,e){return[...e.path,t]}function H(t,e){Y(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&K(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&K(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function j(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),V(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function G(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Y(t,e){const i=M(t);null!==e.validator?t.setValidators(D(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const n=L(t);null!==e.asyncValidator?t.setAsyncValidators(D(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const s=()=>t.updateValueAndValidity();G(e._rawValidators,s),G(e._rawAsyncValidators,s)}function V(t,e){let i=!1;if(null!==t){if(null!==e.validator){const n=M(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=L(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}const n=()=>{};return G(e._rawValidators,n),G(e._rawAsyncValidators,n),i}function K(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function J(t,e){Y(t,e)}function $(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function Q(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function W(t,e){if(!e)return null;let i,n,s;return Array.isArray(e),e.forEach(t=>{t.constructor===p?i=t:Object.getPrototypeOf(t.constructor)===u?n=t:s=t}),s||n||i||null}function X(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function tt(t){return(st(t)?t.validators:t)||null}function et(t){return Array.isArray(t)?I(t):t||null}function it(t,e){return(st(e)?e.asyncValidators:t)||null}function nt(t){return Array.isArray(t)?P(t):t||null}function st(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ot{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=et(this._rawValidators),this._composedAsyncValidatorFn=nt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=et(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=nt(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=S(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof at?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof ct&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){st(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class rt extends ot{constructor(t=null,e,i){super(tt(e),it(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){X(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){X(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class at extends ot{constructor(t,e,i){super(tt(e),it(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof rt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class ct extends ot{constructor(t,e,i){super(tt(e),it(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof rt?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const ut={provide:z,useExisting:(0,n.Gpc)(()=>ht)},lt=(()=>Promise.resolve(null))();let ht=(()=>{class t extends z{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new n.vpe,this.form=new at({},I(t),P(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){lt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),H(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){lt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),X(this._directives,t)})}addFormGroup(t){lt.then(()=>{const e=this._findContainer(t.path),i=new at({});J(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){lt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){lt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Q(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(b,10))},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([ut]),n.qOj]}),t})();const dt={provide:F,useExisting:(0,n.Gpc)(()=>gt)},pt=(()=>Promise.resolve(null))();let gt=(()=>{class t extends F{constructor(t,e,i,s){super(),this.control=new rt,this._registered=!1,this.update=new n.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=W(0,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),$(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?U(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){H(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(t){pt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;pt.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,9),n.Y36(m,10),n.Y36(b,10),n.Y36(l,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n._Bn([dt]),n.qOj,n.TTD]}),t})(),ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const mt={provide:l,useExisting:(0,n.Gpc)(()=>bt),multi:!0};let bt=(()=>{class t extends u{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&n.NdJ("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[n._Bn([mt]),n.qOj]}),t})(),wt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();const _t=new n.OlP("NgModelWithFormControlWarning"),yt={provide:F,useExisting:(0,n.Gpc)(()=>At)};let At=(()=>{class t extends F{constructor(t,e,i,s){super(),this._ngModelWarningConfig=s,this.update=new n.vpe,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=W(0,i)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&j(e,this,!1),H(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}$(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&j(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(b,10),n.Y36(l,10),n.Y36(_t,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n._Bn([yt]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t})();const vt={provide:z,useExisting:(0,n.Gpc)(()=>Tt)};let Tt=(()=>{class t extends z{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(V(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return H(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){j(t.control||null,t,!1),X(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,Q(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,i=this.form.get(t.path);e!==i&&(j(e||null,t),i instanceof rt&&(H(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);J(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return V(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Y(this.form,this),this._oldForm&&V(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(b,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([vt]),n.qOj,n.TTD]}),t})();const Ct={provide:F,useExisting:(0,n.Gpc)(()=>St)};let St=(()=>{class t extends F{constructor(t,e,i,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new n.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=W(0,s)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),$(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return U(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,13),n.Y36(m,10),n.Y36(b,10),n.Y36(l,10),n.Y36(_t,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n._Bn([Ct]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t})();const Et={provide:l,useExisting:(0,n.Gpc)(()=>xt),multi:!0};function kt(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let xt=(()=>{class t extends u{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this.setProperty("selectedIndex",-1);const i=kt(e,t);this.setProperty("value",i)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&n.NdJ("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[n._Bn([Et]),n.qOj]}),t})(),Rt=(()=>{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(kt(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(xt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const It={provide:l,useExisting:(0,n.Gpc)(()=>Pt),multi:!0};function Ot(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Pt=(()=>{class t extends u{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Ot(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Ot(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(Pt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Mt={provide:m,useExisting:(0,n.Gpc)(()=>Nt),multi:!0},Lt={provide:m,useExisting:(0,n.Gpc)(()=>zt),multi:!0};let Nt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?y(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[n._Bn([Mt])]}),t})(),zt=(()=>{class t extends Nt{validate(t){return this.required?A(t):null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("required",e.required?"":null)},features:[n._Bn([Lt]),n.qOj]}),t})();const Ft={provide:m,useExisting:(0,n.Gpc)(()=>Zt),multi:!0};let Zt=(()=>{class t{constructor(){this._validator=T}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=v(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[n._Bn([Ft]),n.TTD]}),t})(),Bt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[wt]]}),t})(),qt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[Bt]}),t})(),Ut=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:_t,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[Bt]}),t})(),Ht=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n,s=null,o=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,n=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new at(i,{asyncValidators:o,updateOn:n,validators:s})}control(t,e,i){return new rt(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new ct(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof rt||t instanceof at||t instanceof ct?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:Ut}),t})()},40084:function(t,e,i){"use strict";i.d(e,{XC:function(){return z},Bb:function(){return H},ZL:function(){return U}});var n=i(24621),s=i(19861),o=i(11353),r=i(31572),a=i(71522),c=i(87570),u=i(55959),l=i(31450),h=i(31906),d=i(40878),p=i(87254),g=i(61511),f=i(2522),m=i(4253),b=i(75842),w=i(26899),_=i(16073),y=i(66283),A=i(90611),v=i(44689),T=i(43835),C=i(79996),S=i(66599),E=i(82628),k=i(22526);const x=["panel"];function R(t,e){if(1&t&&(r.TgZ(0,"div",0,1),r.Hsn(2),r.qZA()),2&t){const t=e.id,i=r.oxw();r.Q6J("id",i.id)("ngClass",i._classList),r.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}const I=["*"];let O=0;class P{constructor(t,e){this.source=t,this.option=e}}class D{}const M=(0,a.Kr)(D),L=new r.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let N=(()=>{class t extends M{constructor(t,e,i,n){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=c.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new r.vpe,this.opened=new r.vpe,this.closed=new r.vpe,this.optionActivated=new r.vpe,this._classList={},this.id="mat-autocomplete-"+O++,this.inertGroups=(null==n?void 0:n.SAFARI)||!1,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=(0,s.Ig)(t)}set classList(t){this._classList=t&&t.length?(0,s.du)(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new n.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new P(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(L),r.Y36(o.t4))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&(r.Gf(r.Rgc,7),r.Gf(x,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.template=t.first),r.iGM(t=r.CRH())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[r.qOj]}),t})(),z=(()=>{class t extends N{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,a.K7,5),r.Suo(i,a.ey,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.optionGroups=t),r.iGM(t=r.CRH())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[r._Bn([{provide:a.HF,useExisting:t}]),r.qOj],ngContentSelectors:I,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(r.F$t(),r.YNc(0,R,3,4,"ng-template"))},directives:[g.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t})();const F=new r.OlP("mat-autocomplete-scroll-strategy"),Z={provide:F,deps:[f.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},B={provide:_.JU,useExisting:(0,r.Gpc)(()=>U),multi:!0};let q=(()=>{class t{constructor(t,e,i,n,s,o,r,a,d,p,g){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=r,this._formField=a,this._document=d,this._viewportRuler=p,this._defaults=g,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=c.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new u.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,l.P)(()=>this.autocomplete&&this.autocomplete.options?(0,h.T)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe((0,A.q)(1),(0,v.w)(()=>this.optionSelections))),this._scrollStrategy=o}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=(0,s.Ig)(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,h.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,T.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,T.h)(()=>this._overlayAttached)):(0,d.of)()).pipe((0,C.U)(t=>t instanceof a.rN?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,h.T)((0,p.R)(this._document,"click"),(0,p.R)(this._document,"auxclick"),(0,p.R)(this._document,"touchend")).pipe((0,T.h)(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null,n=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&(!n||!n.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(e!==b.hY||(0,b.Vb)(t)||t.preventDefault(),this.activeOption&&e===b.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const i=this.autocomplete._keyManager.activeItem,n=e===b.LH||e===b.JH;this.panelOpen||e===b.Mf?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const t=this._zone.onStable.pipe((0,A.q)(1)),e=this.autocomplete.options.changes.pipe((0,S.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,E.g)(0));return(0,h.T)(t,e).pipe((0,v.w)(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,A.q)(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){var t;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!(0,o.kV)(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new w.UE(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,e.keydownEvents().subscribe(t=>{(t.keyCode===b.hY&&!(0,b.Vb)(t)||t.keyCode===b.LH&&(0,b.Vb)(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),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 i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new f.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];let s;s="above"===this.position?n:"below"===this.position?e:[...e,...n],t.withPositions(s)}_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 t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,i=(0,a.CB)(t,e.options,e.optionGroups);if(0===t&&1===i)e._setScrollTop(0);else if(e.panel){const i=e.options.toArray()[t];if(i){const t=i._getHostElement(),n=(0,a.jH)(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(n)}}}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(f.aV),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(F),r.Y36(k.Is,8),r.Y36(y.G_,9),r.Y36(g.K0,8),r.Y36(m.rL),r.Y36(L,8))},t.\u0275dir=r.lG2({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[r.TTD]}),t})(),U=(()=>{class t extends q{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275dir=r.lG2({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&r.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&r.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[r._Bn([B]),r.qOj]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[Z],imports:[[f.U8,a.Ng,a.BQ,g.ez],m.ZD,a.Ng,a.BQ]}),t})()},41050:function(t,e,i){"use strict";i.d(e,{k:function(){return h},g:function(){return d}});var n=i(71522),s=i(24621),o=i(19861),r=i(43490),a=i(31572);let c=0;class u{}const l=(0,n.Id)(u);let h=(()=>{class t extends l{constructor(t,e,i,n,s){super(),this._ngZone=t,this._elementRef=e,this._ariaDescriber=i,this._renderer=n,this._animationMode=s,this._hasContent=!1,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=c++}get color(){return this._color}set color(t){this._setColor(t),this._color=t}get overlap(){return this._overlap}set overlap(t){this._overlap=(0,o.Ig)(t)}get description(){return this._description}set description(t){if(t!==this._description){const e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}get hidden(){return this._hidden}set hidden(t){this._hidden=(0,o.Ig)(t)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}ngOnChanges(t){const e=t.content;if(e){const t=e.currentValue;this._hasContent=null!=t&&`${t}`.trim().length>0,this._updateTextContent()}}ngOnDestroy(){const t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}getBadgeElement(){return this._badgeElement}_updateTextContent(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}_createBadgeElement(){const t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id",`mat-badge-content-${this._id}`),t.classList.add("mat-badge-content"),t.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add("mat-badge-active")})}):t.classList.add("mat-badge-active"),t}_updateHostAriaDescription(t,e){const i=this._updateTextContent();e&&this._ariaDescriber.removeDescription(i,e),t&&this._ariaDescriber.describe(i,t)}_setColor(t){if(t!==this._color){const e=this._elementRef.nativeElement.classList;this._color&&e.remove(`mat-badge-${this._color}`),t&&e.add(`mat-badge-${t}`)}}_clearExistingBadges(t){const e=this._elementRef.nativeElement;let i=e.children.length;for(;i--;){const n=e.children[i];n.classList.contains(t)&&e.removeChild(n)}}_stringifyContent(){const t=this.content;return null==t?"":`${t}`}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.R0b),a.Y36(a.SBq),a.Y36(s.$s),a.Y36(a.Qsj),a.Y36(r.Qb,8))},t.\u0275dir=a.lG2({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&a.ekj("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[a.qOj,a.TTD]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[s.rt,n.BQ],n.BQ]}),t})()},15980:function(t,e,i){"use strict";i.d(e,{lW:function(){return d},ot:function(){return p}});var n=i(71522),s=i(43490),o=i(31572),r=i(24621);const a=["mat-button",""],c=["*"],u=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class l{constructor(t){this._elementRef=t}}const h=(0,n.pj)((0,n.Id)((0,n.Kr)(l)));let d=(()=>{class t extends h{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of u)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.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(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(r.tE),o.Y36(s.Qb,8))},t.\u0275cmp=o.Xpm({type:t,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(t,e){if(1&t&&o.Gf(n.wG,5),2&t){let t;o.iGM(t=o.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(o.uIk("disabled",e.disabled||null),o.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[o.qOj],attrs:a,ngContentSelectors:c,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(t,e){1&t&&(o.F$t(),o.TgZ(0,"span",0),o.Hsn(1),o.qZA(),o._UZ(2,"span",1),o._UZ(3,"span",2)),2&t&&(o.xp6(2),o.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),o.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[n.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.si,n.BQ],n.BQ]}),t})()},27439:function(t,e,i){"use strict";i.d(e,{a8:function(){return g},kc:function(){return p},dn:function(){return l},dk:function(){return f},QW:function(){return m},$j:function(){return d},n5:function(){return h}});var n=i(43490),s=i(71522),o=i(31572);const r=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],c=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],u=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t})(),g=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.Qb,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(t,e){1&t&&(o.F$t(r),o.Hsn(0),o.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:u,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(o.F$t(c),o.Hsn(0),o.TgZ(1,"div",0),o.Hsn(2,1),o.qZA(),o.Hsn(3,2))},encapsulation:2,changeDetection:0}),t})(),m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[s.BQ],s.BQ]}),t})()},29236:function(t,e,i){"use strict";i.d(e,{oG:function(){return A},p9:function(){return T}});var n=i(19861),s=i(31572),o=i(16073),r=i(71522),a=i(43490),c=i(36337),u=i(24621);const l=["input"],h=function(t){return{enterDuration:t}},d=["*"],p=new s.OlP("mat-checkbox-default-options",{providedIn:"root",factory:g});function g(){return{color:"accent",clickAction:"check-indeterminate"}}let f=0;const m=g(),b={provide:o.JU,useExisting:(0,s.Gpc)(()=>A),multi:!0};class w{}class _{constructor(t){this._elementRef=t}}const y=(0,r.sb)((0,r.pj)((0,r.Kr)((0,r.Id)(_))));let A=(()=>{class t extends y{constructor(t,e,i,n,o,r,a){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=r,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++f,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.vpe,this.indeterminateChange=new s.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||m,this.color=this.defaultColor=this._options.color||m.color,this.tabIndex=parseInt(o)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=(0,n.Ig)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=(0,n.Ig)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=(0,n.Ig)(t),e&&(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(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new w;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(u.tE),s.Y36(s.R0b),s.$8M("tabindex"),s.Y36(a.Qb,8),s.Y36(p,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(s.Gf(l,5),s.Gf(r.wG,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._inputElement=t.first),s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",null),s.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s._Bn([b]),s.qOj],ngContentSelectors:d,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",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(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"span",2),s.TgZ(3,"input",3,4),s.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(5,"span",5),s._UZ(6,"span",6),s.qZA(),s._UZ(7,"span",7),s.TgZ(8,"span",8),s.O4$(),s.TgZ(9,"svg",9),s._UZ(10,"path",10),s.qZA(),s.kcU(),s._UZ(11,"span",11),s.qZA(),s.qZA(),s.TgZ(12,"span",12,13),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(14,"span",14),s._uU(15,"\xa0"),s.qZA(),s.Hsn(16),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),i=s.MAs(13);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.xp6(1),s.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.VKq(19,h,"NoopAnimations"===e._animationMode?0:150))}},directives:[r.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:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.si,r.BQ,c.Q8,v],r.BQ,v]}),t})()},10033:function(t,e,i){"use strict";i.d(e,{HS:function(){return E},oH:function(){return M},qn:function(){return P},Hi:function(){return N}});var n=i(75842),s=i(31572),o=i(71522),r=i(19861),a=i(61511),c=i(43490),u=i(55959),l=i(31906),h=i(90611),d=i(25416),p=i(56238),g=i(24621),f=i(4230),m=i(66283),b=i(11353),w=i(22526),_=i(16073);const y=["*"],A=new s.OlP("MatChipRemove"),v=new s.OlP("MatChipAvatar"),T=new s.OlP("MatChipTrailingIcon");class C{constructor(t){this._elementRef=t}}const S=(0,o.sb)((0,o.pj)((0,o.Kr)(C),"primary"),-1);let E=(()=>{class t extends S{constructor(t,e,i,n,r,a,c,l){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=r,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new u.xQ,this._onBlur=new u.xQ,this.selectionChange=new s.vpe,this.destroyed=new s.vpe,this.removed=new s.vpe,this._addHostClassName(),this._chipRippleTarget=a.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new o.IR(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===c,this.tabIndex=null!=l&&parseInt(l)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=(0,r.Ig)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=(0,r.Ig)(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t)}get removable(){return this._removable}set removable(t){this._removable=(0,r.Ig)(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):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(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),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(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case n.yY:case n.ZH:this.remove(),t.preventDefault();break;case n.L_:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,h.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(b.t4),s.Y36(o.Y2,8),s.Y36(s.sBO),s.Y36(a.K0),s.Y36(c.Qb,8),s.$8M("tabindex"))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,v,5),s.Suo(i,T,5),s.Suo(i,A,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.avatar=t.first),s.iGM(t=s.CRH())&&(e.trailingIcon=t.first),s.iGM(t=s.CRH())&&(e.removeIcon=t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(s.uIk("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),s.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",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[s.qOj]}),t})();const k=new s.OlP("mat-chips-default-options");class x{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const R=(0,o.FD)(x);let I=0;class O{constructor(t,e){this.source=t,this.value=e}}let P=(()=>{class t extends R{constructor(t,e,i,n,o,r,a){super(r,n,o,a),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=a,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new u.xQ,this._uid="mat-chip-list-"+I++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new s.vpe,this.valueChange=new s.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,r.Ig)(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,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(t){this._disabled=(0,r.Ig)(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=(0,r.Ig)(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return(0,l.T)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return(0,l.T)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return(0,l.T)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return(0,l.T)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new g.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,p.O)(null),(0,d.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 f.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(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new O(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(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.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(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.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(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(w.Is,8),s.Y36(_.F,8),s.Y36(_.sg,8),s.Y36(o.rD),s.Y36(_.a5,10))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,E,5),2&t){let t;s.iGM(t=s.CRH())&&(e.chips=t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.Ikx("id",e._uid),s.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("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),s.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[s._Bn([{provide:m.Eo,useExisting:t}]),s.qOj],ngContentSelectors:y,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})(),D=0,M=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new s.vpe,this.placeholder="",this.id="mat-chip-list-input-"+D++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=(0,r.Ig)(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=(0,r.Ig)(t)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(t){if(t){if(t.keyCode!==n.Mf||(0,n.Vb)(t,"shiftKey")||this._chipList._allowFocusEscape(),t.keyCode===n.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}_keyup(t){!this._focusLastChipOnBackspace&&t.keyCode===n.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this.inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==t||t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this.inputElement.focus(t)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(t){return!(0,n.Vb)(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(k))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&s.NdJ("keydown",function(t){return e._keydown(t)})("keyup",function(t){return e._keyup(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(s.Ikx("id",e.id),s.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:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[s.TTD]}),t})();const L={separatorKeyCodes:[n.K5]};let N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[o.rD,{provide:k,useValue:L}],imports:[[o.BQ]]}),t})()},71522:function(t,e,i){"use strict";i.d(e,{yN:function(){return w},mZ:function(){return _},_A:function(){return I},rD:function(){return U},sG:function(){return O},K7:function(){return ut},HF:function(){return st},Y2:function(){return X},BQ:function(){return v},X2:function(){return H},uc:function(){return Y},XK:function(){return q},ey:function(){return pt},Ng:function(){return mt},rN:function(){return ht},nP:function(){return it},us:function(){return nt},wG:function(){return tt},si:function(){return et},LF:function(){return F},IR:function(){return W},CB:function(){return gt},jH:function(){return ft},pj:function(){return C},Kr:function(){return S},Id:function(){return T},FD:function(){return k},dB:function(){return x},sb:function(){return E},E0:function(){return j}});var n=i(31572),s=i(24621),o=i(22526);const r=new n.GfV("12.0.5");var a=i(61511),c=i(19861),u=i(55959),l=i(48318),h=i(11353),d=i(56238),p=i(43490),g=i(75842);function f(t,e){if(1&t&&n._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=n.oxw();n.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function m(t,e){if(1&t&&(n.TgZ(0,"span",5),n._uU(1),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.hij("(",t.group.label,")")}}const b=["*"];let w=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),_=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const y=new n.GfV("12.0.5"),A=new n.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let v=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return(0,n.X6Q)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&y.full!==r.full&&console.warn("The Angular Material version ("+y.full+") does not match the Angular CDK version ("+r.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(s.qm),n.LFG(A,8),n.LFG(a.K0))},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.vT],o.vT]}),t})();function T(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,c.Ig)(t)}}}function C(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function S(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,c.Ig)(t)}}}function E(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?(0,c.su)(t):this.defaultTabIndex}}}function k(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new u.xQ}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function x(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new l.y(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const R=new n.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,n.f3M)(n.soG)}});class I{constructor(){this._localeChanges=new u.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const O=new n.OlP("mat-date-formats");let P;try{P="undefined"!=typeof Intl}catch(bt){P=!1}const D={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},M=z(31,t=>String(t+1)),L={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},N=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function z(t,e){const i=Array(t);for(let n=0;n{class t extends I{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(P){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return z(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return D[t]}getDateNames(){if(P){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return z(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return M}getDayOfWeekNames(t){if(P){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return z(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return L[t]}getYearName(t){if(P){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(P){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(N.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(R,8),n.LFG(h.t4))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:I,useClass:F}],imports:[[h.ud]]}),t})();const B={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 q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:O,useValue:B}],imports:[[Z]]}),t})(),U=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function j(t,e,i="mat"){t.changes.pipe((0,d.O)(t)).subscribe(({length:t})=>{G(e,`${i}-2-line`,!1),G(e,`${i}-3-line`,!1),G(e,`${i}-multi-line`,!1),2===t||3===t?G(e,`${i}-${t}-line`,!0):t>3&&G(e,`${i}-multi-line`,!0)})}function G(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[v],v]}),t})();class V{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const K={enterDuration:450,exitDuration:400},J=(0,h.i$)({passive:!0}),$=["mousedown","touchstart"],Q=["mouseup","mouseleave","touchend","touchcancel"];class W{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=(0,c.fI)(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},K),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const o=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),r=t-n.left,a=e-n.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=r-o+"px",u.style.top=a-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";const l=new V(this,u,i);return l.state=0,this._activeRipples.add(l),i.persistent||(this._mostRecentTransientRipple=l),this._runTimeoutOutsideZone(()=>{const t=l===this._mostRecentTransientRipple;l.state=1,i.persistent||t&&this._isPointerDown||l.fadeOut()},c),l}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},K),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=(0,c.fI)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents($))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Q),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=(0,s.X6)(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,J)})})}_removeTriggerEvents(){this._triggerElement&&($.forEach(t=>{this._triggerElement.removeEventListener(t,this,J)}),this._pointerUpEventsRegistered&&Q.forEach(t=>{this._triggerElement.removeEventListener(t,this,J)}))}}const X=new n.OlP("mat-ripple-global-options");let tt=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new W(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(h.t4),n.Y36(X,8),n.Y36(p.Qb,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&n.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[v,h.ud],v]}),t})(),it=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(p.Qb,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&n.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),nt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[v]]}),t})();const st=new n.OlP("MAT_OPTION_PARENT_COMPONENT");class ot{}const rt=T(ot);let at=0,ct=(()=>{class t extends rt{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+at++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(st,8))},t.\u0275dir=n.lG2({type:t,inputs:{label:"label"},features:[n.qOj]}),t})();const ut=new n.OlP("MatOptgroup");let lt=0;class ht{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let dt=(()=>{class t{constructor(t,e,i,s){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+lt++,this.onSelectionChange=new n.vpe,this._stateChanges=new u.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=(0,c.Ig)(t)}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(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==g.K5&&t.keyCode!==g.L_||(0,g.Vb)(t)||(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new ht(this,t))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(void 0),n.Y36(ct))},t.\u0275dir=n.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(st,8),n.Y36(ut,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(n.Ikx("id",e.id),n.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),n.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[n.qOj],ngContentSelectors:b,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(t,e){1&t&&(n.F$t(),n.YNc(0,f,1,2,"mat-pseudo-checkbox",0),n.TgZ(1,"span",1),n.Hsn(2),n.qZA(),n.YNc(3,m,2,1,"span",2),n._UZ(4,"div",3)),2&t&&(n.Q6J("ngIf",e.multiple),n.xp6(3),n.Q6J("ngIf",e.group&&e.group._inert),n.xp6(1),n.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.O5,tt,it],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function gt(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),o=0;for(let e=0;ei+n?Math.max(0,t-n+e):i}let mt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[et,a.ez,v,nt]]}),t})()},15812:function(t,e,i){"use strict";i.d(e,{Mq:function(){return bt},hl:function(){return vt},FA:function(){return St},nW:function(){return Ct}});var n=i(24621),s=i(2522),o=i(26899),r=i(61511),a=i(31572),c=i(15980),u=i(4253),l=i(71522),h=i(55959),d=i(87570),p=i(31906),g=i(40878),f=i(75842),m=i(90611),b=i(56238),w=i(43835),_=i(19861),y=i(11353),A=i(10709),v=i(16073),T=i(66283),C=i(80340),S=i(22526);const E=["mat-calendar-body",""];function k(t,e){if(1&t&&(a.TgZ(0,"tr",2),a.TgZ(1,"td",3),a._uU(2),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.uIk("colspan",t.numCols),a.xp6(1),a.hij(" ",t.label," ")}}function x(t,e){if(1&t&&(a.TgZ(0,"td",7),a._uU(1),a.qZA()),2&t){const t=a.oxw(2);a.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.uIk("colspan",t._firstRowOffset),a.xp6(1),a.hij(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function R(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"td",8),a.NdJ("click",function(e){const i=a.CHM(t).$implicit;return a.oxw(2)._cellClicked(i,e)}),a.TgZ(1,"div",9),a._uU(2),a.qZA(),a._UZ(3,"div",10),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw().index,s=a.oxw();a.Udp("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),a.ekj("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",s._isActiveCell(n,i))("mat-calendar-body-range-start",s._isRangeStart(t.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",s._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(t.compareValue,n,i))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(t.compareValue,n,i))("mat-calendar-body-comparison-start",s._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",s._isInPreview(t.compareValue)),a.Q6J("ngClass",t.cssClasses)("tabindex",s._isActiveCell(n,i)?0:-1),a.uIk("data-mat-row",n)("data-mat-col",i)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",s._isSelected(t.compareValue)),a.xp6(1),a.ekj("mat-calendar-body-selected",s._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",s.todayValue===t.compareValue),a.xp6(1),a.hij(" ",t.displayValue," ")}}function I(t,e){if(1&t&&(a.TgZ(0,"tr",4),a.YNc(1,x,2,6,"td",5),a.YNc(2,R,4,46,"td",6),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.xp6(1),a.Q6J("ngIf",0===i&&n._firstRowOffset),a.xp6(1),a.Q6J("ngForOf",t)}}function O(t,e){if(1&t&&(a.TgZ(0,"th",5),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.uIk("aria-label",t.long),a.xp6(1),a.Oqu(t.narrow)}}const P=["*"];function D(t,e){}function M(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-month-view",5),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("_userSelection",function(e){return a.CHM(t),a.oxw()._dateSelected(e)}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function L(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-year-view",6),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("monthSelected",function(e){return a.CHM(t),a.oxw()._monthSelectedInYearView(e)})("selectedChange",function(e){return a.CHM(t),a.oxw()._goToDateInView(e,"month")}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function N(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-multi-year-view",7),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("yearSelected",function(e){return a.CHM(t),a.oxw()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return a.CHM(t),a.oxw()._goToDateInView(e,"year")}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function z(t,e){}const F=["button"];function Z(t,e){1&t&&(a.O4$(),a.TgZ(0,"svg",3),a._UZ(1,"path",4),a.qZA())}const B=[[["","matDatepickerToggleIcon",""]]],q=["[matDatepickerToggleIcon]"];let U=(()=>{class t{constructor(){this.changes=new h.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class H{constructor(t,e,i,n,s={},o=t,r){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=s,this.compareValue=o,this.rawValue=r}}let j=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new a.vpe,this.previewChange=new a.vpe,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&G(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return Y(t,this.startValue,this.endValue)}_isRangeEnd(t){return V(t,this.startValue,this.endValue)}_isInRange(t){return K(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return Y(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let n=this.rows[e][i-1];if(!n){const t=this.rows[e-1];n=t&&t[t.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let n=this.rows[e][i+1];if(!n){const t=this.rows[e+1];n=t&&t[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(t){return V(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return K(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return Y(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return V(t,this.previewStart,this.previewEnd)}_isInPreview(t){return K(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(G(t)?e=t:G(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b))},t.\u0275cmp=a.Xpm({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[a.TTD],attrs:E,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"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(a.YNc(0,k,3,6,"tr",0),a.YNc(1,I,3,2,"tr",1)),2&t&&(a.Q6J("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function G(t){return"TD"===t.nodeName}function Y(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function K(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}class J{constructor(t,e){this.start=t,this.end=e}}let $=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new h.xQ,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){const i=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:i})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(void 0),a.LFG(l._A))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t})(),Q=(()=>{class t extends ${constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(l._A))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t})();const W={provide:$,deps:[[new a.FiY,new a.tp0,$],l._A],useFactory:function(t,e){return t||new Q(e)}},X=new a.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let tt=(()=>{class t{constructor(t,e,i,n,s){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rangeStrategy=s,this._rerenderSubscription=d.w.EMPTY,this.selectedChange=new a.vpe,this._userSelection=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof J?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,b.O)(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,i=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.createDate(i,n,e);let o,r;this._selected instanceof J?(o=this._getDateInCurrentMonth(this._selected.start),r=this._getDateInCurrentMonth(this._selected.end)):o=r=this._getDateInCurrentMonth(this._selected),o===e&&r===e||this.selectedChange.emit(s),this._userSelection.emit({value:s,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case f.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case f.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case f.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case f.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case f.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case f.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case f.Ku:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case f.VM:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case f.K5:case f.L_:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case f.hY:return void(null==this._previewEnd||(0,f.Vb)(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const i=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof J?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.sBO),a.Y36(l.sG,8),a.Y36(l._A,8),a.Y36(S.Is,8),a.Y36(X,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&a.Gf(j,5),2&t){let t;a.iGM(t=a.CRH())&&(e._matCalendarBody=t.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:[a.TTD],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(a.TgZ(0,"table",0),a.TgZ(1,"thead",1),a.TgZ(2,"tr"),a.YNc(3,O,2,2,"th",2),a.qZA(),a.TgZ(4,"tr"),a._UZ(5,"th",3),a.qZA(),a.qZA(),a.TgZ(6,"tbody",4),a.NdJ("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),a.qZA(),a.qZA()),2&t&&(a.xp6(3),a.Q6J("ngForOf",e._weekdays),a.xp6(3),a.Q6J("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[r.sg,j],encapsulation:2,changeDetection:0}),t})(),et=(()=>{class t{constructor(t,e,i){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=d.w.EMPTY,this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),it(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof J?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,b.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,i=[];e<24;e++)i.push(t+e),4==i.length&&(this._years.push(i.map(t=>this._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case f.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case f.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case f.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case f.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case f.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case f.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case f.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case f.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case f.K5:case f.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new H(t,i,i,this._shouldEnableYear(t),n)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,i,n){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=d.w.EMPTY,this.selectedChange=new a.vpe,this.monthSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof J?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,b.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(i);const n=this._dateAdapter.getNumDaysInMonth(i);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case f.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case f.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case f.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case f.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case f.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case f.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case f.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case f.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case f.K5:case f.L_:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),n=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(i,"year"):void 0;return new H(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,i,n,s){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this._buttonDescriptionId="mat-calendar-button-"+rt++,this.calendar.stateChanges.subscribe(()=>s.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)-nt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+24-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}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(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):it(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(U),a.Y36((0,a.Gpc)(()=>ct)),a.Y36(l._A,8),a.Y36(l.sG,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:P,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[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(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"button",2),a.NdJ("click",function(){return e.currentPeriodClicked()}),a.TgZ(3,"span"),a._uU(4),a.qZA(),a._UZ(5,"div",3),a.qZA(),a._UZ(6,"div",4),a.Hsn(7),a.TgZ(8,"button",5),a.NdJ("click",function(){return e.previousClicked()}),a.qZA(),a.TgZ(9,"button",6),a.NdJ("click",function(){return e.nextClicked()}),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(2),a.uIk("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),a.xp6(1),a.uIk("id",e._buttonDescriptionId),a.xp6(1),a.Oqu(e.periodButtonText),a.xp6(1),a.ekj("mat-calendar-invert","month"!==e.calendar.currentView),a.xp6(3),a.Q6J("disabled",!e.previousEnabled()),a.uIk("aria-label",e.prevButtonLabel),a.xp6(1),a.Q6J("disabled",!e.nextEnabled()),a.uIk("aria-label",e.nextButtonLabel))},directives:[c.lW,n.Qr],encapsulation:2,changeDetection:0}),t})(),ct=(()=>{class t{constructor(t,e,i,n){this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this._userSelection=new a.vpe,this.stateChanges=new h.xQ,this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof J?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new o.C5(this.headerComponent||at),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof J||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(U),a.Y36(l._A,8),a.Y36(l.sG,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(a.Gf(tt,5),a.Gf(ot,5),a.Gf(et,5)),2&t){let t;a.iGM(t=a.CRH())&&(e.monthView=t.first),a.iGM(t=a.CRH())&&(e.yearView=t.first),a.iGM(t=a.CRH())&&(e.multiYearView=t.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a._Bn([W]),a.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(t,e){1&t&&(a.YNc(0,D,0,0,"ng-template",0),a.TgZ(1,"div",1),a.YNc(2,M,1,8,"mat-month-view",2),a.YNc(3,L,1,6,"mat-year-view",3),a.YNc(4,N,1,6,"mat-multi-year-view",4),a.qZA()),2&t&&(a.Q6J("cdkPortalOutlet",e._calendarHeaderPortal),a.xp6(1),a.Q6J("ngSwitch",e.currentView),a.xp6(1),a.Q6J("ngSwitchCase","month"),a.xp6(1),a.Q6J("ngSwitchCase","year"),a.xp6(1),a.Q6J("ngSwitchCase","multi-year"))},directives:[o.Pl,n.kH,r.RF,r.n9,tt,ot,et],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(33% / 7 - 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:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;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}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const ut={transformPanel:(0,A.X$)("transformPanel",[(0,A.eR)("void => enter-dropdown",(0,A.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,A.F4)([(0,A.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,A.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,A.eR)("void => enter-dialog",(0,A.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,A.F4)([(0,A.oB)({opacity:0,transform:"scale(0.7)"}),(0,A.oB)({transform:"none",opacity:1})]))),(0,A.eR)("* => void",(0,A.jt)("100ms linear",(0,A.oB)({opacity:0})))]),fadeInCalendar:(0,A.X$)("fadeInCalendar",[(0,A.SB)("void",(0,A.oB)({opacity:0})),(0,A.SB)("enter",(0,A.oB)({opacity:1})),(0,A.eR)("void => *",(0,A.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let lt=0;const ht=new a.OlP("mat-datepicker-scroll-strategy"),dt={provide:ht,deps:[s.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class pt{constructor(t){this._elementRef=t}}const gt=(0,l.pj)(pt);let ft=(()=>{class t extends gt{constructor(t,e,i,n,s,o){super(t),this._changeDetectorRef=e,this._globalModel=i,this._dateAdapter=n,this._rangeSelectionStrategy=s,this._subscriptions=new d.w,this._animationDone=new h.xQ,this._actionsPortal=null,this._closeButtonText=o.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){const e=this._model.selection,i=t.value,n=e instanceof J;if(n&&this._rangeSelectionStrategy){const n=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(n,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36($),a.Y36(l._A),a.Y36(X,8),a.Y36(U))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&a.Gf(ct,5),2&t){let t;a.iGM(t=a.CRH())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&a.WFA("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(a.d8E("@transformPanel",e._animationState),a.ekj("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"mat-calendar",1),a.NdJ("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),a.qZA(),a.YNc(2,z,0,0,"ng-template",2),a.TgZ(3,"button",3),a.NdJ("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),a._uU(4),a.qZA(),a.qZA()),2&t&&(a.ekj("mat-datepicker-content-container-with-actions",e._actionsPortal),a.xp6(1),a.Q6J("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),a.xp6(1),a.Q6J("cdkPortalOutlet",e._actionsPortal),a.xp6(1),a.ekj("cdk-visually-hidden",!e._closeButtonFocused),a.Q6J("color",e.color||"primary"),a.xp6(1),a.Oqu(e._closeButtonText))},directives:[n.mK,ct,r.mk,o.Pl,c.lW],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[ut.transformPanel,ut.fadeInCalendar]},changeDetection:0}),t})(),mt=(()=>{class t{constructor(t,e,i,n,s,o,r,c,u){this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=o,this._dir=r,this._model=u,this._inputStateChanges=d.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this.openedStream=new a.vpe,this.closedStream=new a.vpe,this._opened=!1,this.id="mat-datepicker-"+lt++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new h.xQ,this._scrollStrategy=s}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=(0,_.Ig)(t)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){const e=(0,_.Ig)(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(t){this._restoreFocus=(0,_.Ig)(t)}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=(0,_.du)(t)}get opened(){return this._opened}set opened(t){(0,_.Ig)(t)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(t){const e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){const t=this._overlayRef.getConfig().positionStrategy;t instanceof s._G&&(this._setConnectedPositions(t),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal=t}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,y.ht)(),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,m.q)(1)).subscribe(()=>this._destroyOverlay())}const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_applyPendingSelection(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const t=this.touchUi,e=this.datepickerInput.getOverlayLabelId(),i=new o.C5(ft,this._viewContainerRef),n=this._overlayRef=this._overlay.create(new s.X_({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(t?"dialog":"popup")})),r=n.overlayElement;r.setAttribute("role","dialog"),e&&r.setAttribute("aria-labelledby",e),t&&r.setAttribute("aria-modal","true"),this._getCloseStream(n).subscribe(t=>{t&&t.preventDefault(),this.close()}),this._componentRef=n.attach(i),this._forwardContentValues(this._componentRef.instance),t||this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(()=>n.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",s="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:s,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:s}])}_getCloseStream(t){return(0,p.T)(t.backdropClick(),t.detachments(),t.keydownEvents().pipe((0,w.h)(t=>t.keyCode===f.hY&&!(0,f.Vb)(t)||this.datepickerInput&&(0,f.Vb)(t,"altKey")&&t.keyCode===f.LH)))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(s.aV),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(ht),a.Y36(l._A,8),a.Y36(S.Is,8),a.Y36(r.K0,8),a.Y36($))},t.\u0275dir=a.lG2({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[a.TTD]}),t})(),bt=(()=>{class t extends mt{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=a.n5z(t)))(i||t)}}(),t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a._Bn([W,{provide:mt,useExisting:t}]),a.qOj],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();class wt{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let _t=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this.dateChange=new a.vpe,this.dateInput=new a.vpe,this.stateChanges=new h.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=d.w.EMPTY,this._localeSubscription=d.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMinDate();return!i||!e||this._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMaxDate();return!i||!e||this._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=(0,_.Ig)(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this.dateInput.emit(new wt(this,this._elementRef.nativeElement)),this.dateChange.emit(new wt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const i=Object.keys(t);for(let n of i){const{previousValue:i,currentValue:s}=t[n];if(!e.isDateInstance(i)||!e.isDateInstance(s))return!0;if(!e.sameDate(i,s))return!0}return!1})(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&t.keyCode===f.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._dateAdapter.sameDate(i,this.value)?(t&&!this.value&&this._cvaOnChange(i),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(i),this._cvaOnChange(i),this.dateInput.emit(new wt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new wt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(l._A,8),a.Y36(l.sG,8))},t.\u0275dir=a.lG2({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.TTD]}),t})();const yt={provide:v.JU,useExisting:(0,a.Gpc)(()=>vt),multi:!0},At={provide:v.Cf,useExisting:(0,a.Gpc)(()=>vt),multi:!0};let vt=(()=>{class t extends _t{constructor(t,e,i,n){super(t,e,i),this._formField=n,this._closedSubscription=d.w.EMPTY,this._validator=v.kI.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._min)||(this._min=e,this._validatorOnChange())}get max(){return this._max}set max(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._max)||(this._max=e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&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(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(l._A,8),a.Y36(l.sG,8),a.Y36(T.G_,8))},t.\u0275dir=a.lG2({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&a.NdJ("input",function(t){return e._onInput(t.target.value)})("change",function(){return e._onChange()})("blur",function(){return e._onBlur()})("keydown",function(t){return e._onKeydown(t)}),2&t&&(a.Ikx("disabled",e.disabled),a.uIk("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a._Bn([yt,At,{provide:C.Jk,useExisting:t}]),a.qOj]}),t})(),Tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.lG2({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),Ct=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=d.w.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=(0,_.Ig)(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker.stateChanges:(0,g.of)(),e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,g.of)(),i=this.datepicker?(0,p.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,g.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,p.T)(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(U),a.Y36(a.sBO),a.$8M("tabindex"))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,Tt,5),2&t){let t;a.iGM(t=a.CRH())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&a.Gf(F,5),2&t){let t;a.iGM(t=a.CRH())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&a.NdJ("click",function(t){return e._open(t)}),2&t&&(a.uIk("tabindex",null)("data-mat-calendar",e.datepicker?e.datepicker.id:null),a.ekj("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],ariaLabel:["aria-label","ariaLabel"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.TTD],ngContentSelectors:q,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(t,e){1&t&&(a.F$t(B),a.TgZ(0,"button",0,1),a.YNc(2,Z,2,0,"svg",2),a.Hsn(3),a.qZA()),2&t&&(a.Q6J("disabled",e.disabled)("disableRipple",e.disableRipple),a.uIk("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e.ariaLabel||e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),a.xp6(2),a.Q6J("ngIf",!e._customIcon))},directives:[c.lW,r.O5],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),t})(),St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({providers:[U,dt],imports:[[r.ez,c.ot,s.U8,n.rt,o.eL,l.BQ],u.ZD]}),t})()},84608:function(t,e,i){"use strict";i.d(e,{WI:function(){return k},uw:function(){return P},H8:function(){return N},vA:function(){return y},xY:function(){return L},Is:function(){return z},so:function(){return S},uh:function(){return M}});var n=i(2522),s=i(26899),o=i(31572),r=i(71522),a=i(22526),c=i(61511),u=i(55959),l=i(31450),h=i(40878),d=i(43835),p=i(90611),g=i(56238),f=i(11353),m=i(10709),b=i(75842),w=i(24621);function _(t,e){}class y{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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const A={dialogContainer:(0,m.X$)("dialogContainer",[(0,m.SB)("void, exit",(0,m.oB)({opacity:0,transform:"scale(0.7)"})),(0,m.SB)("enter",(0,m.oB)({transform:"none"})),(0,m.eR)("* => enter",(0,m.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,m.oB)({transform:"none",opacity:1}))),(0,m.eR)("* => void, * => exit",(0,m.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,m.oB)({opacity:0})))])};let v=(()=>{class t extends s.en{constructor(t,e,i,n,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=s,this._focusMonitor=r,this._animationStateChanged=new o.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=(0,f.ht)(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,f.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=(0,f.ht)();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(w.qV),o.Y36(o.sBO),o.Y36(c.K0,8),o.Y36(y),o.Y36(w.tE))},t.\u0275dir=o.lG2({type:t,viewQuery:function(t,e){if(1&t&&o.Gf(s.Pl,7),2&t){let t;o.iGM(t=o.CRH())&&(e._portalOutlet=t.first)}},features:[o.qOj]}),t})(),T=(()=>{class t extends v{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&o.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(o.Ikx("id",e._id),o.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),o.d8E("@dialogContainer",e._state))},features:[o.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&o.YNc(0,_,0,0,"ng-template",0)},directives:[s.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[A.dialogContainer]}}),t})(),C=0;class S{constructor(t,e,i="mat-dialog-"+C++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new u.xQ,this._afterClosed=new u.xQ,this._beforeClosed=new u.xQ,this._state=0,e._id=i,e._animationStateChanged.pipe((0,d.h)(t=>"opened"===t.state),(0,p.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,d.h)(t=>"closed"===t.state),(0,p.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,d.h)(t=>t.keyCode===b.hY&&!this.disableClose&&!(0,b.Vb)(t))).subscribe(t=>{t.preventDefault(),E(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():E(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(t=>"closing"===t.state),(0,p.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function E(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const k=new o.OlP("MatDialogData"),x=new o.OlP("mat-dialog-default-options"),R=new o.OlP("mat-dialog-scroll-strategy"),I={provide:R,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.block()}};let O=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=r,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new u.xQ,this._afterOpenedAtThisLevel=new u.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,l.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,g.O)(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new y)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),n._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new n.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=o.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:y,useValue:e}]}),n=new s.C5(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const r=new this._dialogRefConstructor(i,e,n.id);if(t instanceof o.Rgc)e.attachTemplatePortal(new s.UE(t,null,{$implicit:n.data,dialogRef:r}));else{const i=this._createInjector(n,r,e),o=e.attachComponentPortal(new s.C5(t,n.viewContainerRef,i));r.componentInstance=o.instance}return r.updateSize(n.width,n.height).updatePosition(n.position),r}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(a.Is,null,o.XFs.Optional)||s.push({provide:a.Is,useValue:{value:t.direction,change:(0,h.of)()}}),o.zs3.create({parent:n||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.aV),o.Y36(o.zs3),o.Y36(void 0),o.Y36(void 0),o.Y36(n.Xj),o.Y36(void 0),o.Y36(o.DyG),o.Y36(o.DyG),o.Y36(o.OlP))},t.\u0275dir=o.lG2({type:t}),t})(),P=(()=>{class t extends O{constructor(t,e,i,n,s,o,r){super(t,e,n,o,r,s,S,T,k)}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.aV),o.LFG(o.zs3),o.LFG(c.Ye,8),o.LFG(x,8),o.LFG(R),o.LFG(t,12),o.LFG(n.Xj))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})(),D=0,M=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+D++}ngOnInit(){this._dialogRef||(this._dialogRef=function(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(S,8),o.Y36(o.SBq),o.Y36(P))},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&o.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[P,I],imports:[[n.U8,s.eL,r.BQ],r.BQ]}),t})()},27679:function(t,e,i){"use strict";i.d(e,{d:function(){return r},t:function(){return a}});var n=i(19861),s=i(71522),o=i(31572);let r=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=(0,n.Ig)(t)}get inset(){return this._inset}set inset(t){this._inset=(0,n.Ig)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(o.uIk("aria-orientation",e.vertical?"vertical":"horizontal"),o.ekj("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[s.BQ],s.BQ]}),t})()},45001:function(t,e,i){"use strict";i.d(e,{pp:function(){return H},To:function(){return j},ib:function(){return Z},HS:function(){return N},u4:function(){return q},yz:function(){return B},yK:function(){return U}});var n=i(31572),s=i(19861),o=i(55959),r=i(87570),a=i(4230);let c=0;const u=new n.OlP("CdkAccordion");let l=(()=>{class t{constructor(){this._stateChanges=new o.xQ,this._openCloseAllActions=new o.xQ,this.id="cdk-accordion-"+c++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=(0,s.Ig)(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:u,useExisting:t}]),n.TTD]}),t})(),h=0,d=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=r.w.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-"+h++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=(0,s.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(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(t){this._disabled=(0,s.Ig)(t)}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(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(u,12),n.Y36(n.sBO),n.Y36(a.A8))},t.\u0275dir=n.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:u,useValue:void 0}])]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();var g=i(26899),f=i(61511),m=i(71522),b=i(24621),w=i(98720),_=i(56238),y=i(43835),A=i(90611),v=i(75842),T=i(43490),C=i(70653),S=i(31906),E=i(10709);const k=["body"];function x(t,e){}const R=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],I=["mat-expansion-panel-header","*","mat-action-row"];function O(t,e){if(1&t&&n._UZ(0,"span",2),2&t){const t=n.oxw();n.Q6J("@indicatorRotate",t._getExpandedState())}}const P=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],D=["mat-panel-title","mat-panel-description","*"],M=new n.OlP("MAT_ACCORDION"),L={indicatorRotate:(0,E.X$)("indicatorRotate",[(0,E.SB)("collapsed, void",(0,E.oB)({transform:"rotate(0deg)"})),(0,E.SB)("expanded",(0,E.oB)({transform:"rotate(180deg)"})),(0,E.eR)("expanded <=> collapsed, void => collapsed",(0,E.jt)("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:(0,E.X$)("bodyExpansion",[(0,E.SB)("collapsed, void",(0,E.oB)({height:"0px",visibility:"hidden"})),(0,E.SB)("expanded",(0,E.oB)({height:"*",visibility:"visible"})),(0,E.eR)("expanded <=> collapsed, void => collapsed",(0,E.jt)("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let N=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),z=0;const F=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Z=(()=>{class t extends d{constructor(t,e,i,s,r,a,c){super(t,e,i),this._viewContainerRef=s,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new n.vpe,this.afterCollapse=new n.vpe,this._inputChanges=new o.xQ,this._headerId="mat-expansion-panel-header-"+z++,this._bodyAnimationDone=new o.xQ,this.accordion=t,this._document=r,this._bodyAnimationDone.pipe((0,w.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),c&&(this.hideToggle=c.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=(0,s.Ig)(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,_.O)(null),(0,y.h)(()=>this.expanded&&!this._portal),(0,A.q)(1)).subscribe(()=>{this._portal=new g.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(M,12),n.Y36(n.sBO),n.Y36(a.A8),n.Y36(n.s_b),n.Y36(f.K0),n.Y36(T.Qb,8),n.Y36(F,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,N,5),2&t){let t;n.iGM(t=n.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&n.Gf(k,5),2&t){let t;n.iGM(t=n.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&n.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n._Bn([{provide:M,useValue:void 0}]),n.qOj,n.TTD],ngContentSelectors:I,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(n.F$t(R),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,x,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),n.uIk("aria-labelledby",e._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",e._portal))},directives:[g.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[L.bodyExpansion]},changeDetection:0}),t})(),B=(()=>{class t{constructor(t,e,i,n,s,o){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=o,this._parentChangeSubscription=r.w.EMPTY;const a=t.accordion?t.accordion._stateChanges.pipe((0,y.h)(t=>!(!t.hideToggle&&!t.togglePosition))):C.E;this._parentChangeSubscription=(0,S.T)(t.opened,t.closed,a,t._inputChanges.pipe((0,y.h)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,y.h)(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.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 t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case v.L_:case v.K5:(0,v.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(Z,1),n.Y36(n.SBq),n.Y36(b.tE),n.Y36(n.sBO),n.Y36(F,8),n.Y36(T.Qb,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(n.uIk("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),n.Udp("height",e._getHeaderHeight()),n.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:D,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(n.F$t(P),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,O,1,1,"span",1)),2&t&&(n.xp6(4),n.Q6J("ngIf",e._showToggle()))},directives:[f.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}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[L.indicatorRotate]},changeDetection:0}),t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),H=(()=>{class t extends l{constructor(){super(...arguments),this._ownHeaders=new n.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=(0,s.Ig)(t)}ngAfterContentInit(){this._headers.changes.pipe((0,_.O)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new b.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,B,5),2&t){let t;n.iGM(t=n.CRH())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&n.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[n._Bn([{provide:M,useExisting:t}]),n.qOj]}),t})(),j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[f.ez,m.BQ,p,g.eL]]}),t})()},66283:function(t,e,i){"use strict";i.d(e,{G_:function(){return W},TO:function(){return z},KE:function(){return X},Eo:function(){return Z},lN:function(){return tt},bx:function(){return U},hX:function(){return H},UY:function(){return j},R9:function(){return V}});var n=i(36337),s=i(61511),o=i(31572),r=i(71522),a=i(19861),c=i(55959),u=i(31906),l=i(87254),h=i(56238),d=i(25416),p=i(90611),g=i(10709),f=i(43490),m=i(22526),b=i(11353);const w=["underline"],_=["connectionContainer"],y=["inputContainer"],A=["label"];function v(t,e){1&t&&(o.ynx(0),o.TgZ(1,"div",14),o._UZ(2,"div",15),o._UZ(3,"div",16),o._UZ(4,"div",17),o.qZA(),o.TgZ(5,"div",18),o._UZ(6,"div",15),o._UZ(7,"div",16),o._UZ(8,"div",17),o.qZA(),o.BQk())}function T(t,e){1&t&&(o.TgZ(0,"div",19),o.Hsn(1,1),o.qZA())}function C(t,e){if(1&t&&(o.ynx(0),o.Hsn(1,2),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.BQk()),2&t){const t=o.oxw(2);o.xp6(3),o.Oqu(t._control.placeholder)}}function S(t,e){1&t&&o.Hsn(0,3,["*ngSwitchCase","true"])}function E(t,e){1&t&&(o.TgZ(0,"span",23),o._uU(1," *"),o.qZA())}function k(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"label",20,21),o.NdJ("cdkObserveContent",function(){return o.CHM(t),o.oxw().updateOutlineGap()}),o.YNc(2,C,4,1,"ng-container",12),o.YNc(3,S,1,0,"ng-content",12),o.YNc(4,E,2,0,"span",22),o.qZA()}if(2&t){const t=o.oxw();o.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),o.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),o.uIk("for",t._control.id)("aria-owns",t._control.id),o.xp6(2),o.Q6J("ngSwitchCase",!1),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function x(t,e){1&t&&(o.TgZ(0,"div",24),o.Hsn(1,4),o.qZA())}function R(t,e){if(1&t&&(o.TgZ(0,"div",25,26),o._UZ(2,"span",27),o.qZA()),2&t){const t=o.oxw();o.xp6(2),o.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function I(t,e){if(1&t&&(o.TgZ(0,"div"),o.Hsn(1,5),o.qZA()),2&t){const t=o.oxw();o.Q6J("@transitionMessages",t._subscriptAnimationState)}}function O(t,e){if(1&t&&(o.TgZ(0,"div",31),o._uU(1),o.qZA()),2&t){const t=o.oxw(2);o.Q6J("id",t._hintLabelId),o.xp6(1),o.Oqu(t.hintLabel)}}function P(t,e){if(1&t&&(o.TgZ(0,"div",28),o.YNc(1,O,2,2,"div",29),o.Hsn(2,6),o._UZ(3,"div",30),o.Hsn(4,7),o.qZA()),2&t){const t=o.oxw();o.Q6J("@transitionMessages",t._subscriptAnimationState),o.xp6(1),o.Q6J("ngIf",t.hintLabel)}}const D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],M=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let L=0;const N=new o.OlP("MatError");let z=(()=>{class t{constructor(t,e){this.id="mat-error-"+L++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(o.$8M("aria-live"),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&o.uIk("id",e.id)},inputs:{id:"id"},features:[o._Bn([{provide:N,useExisting:t}])]}),t})();const F={transitionMessages:(0,g.X$)("transitionMessages",[(0,g.SB)("enter",(0,g.oB)({opacity:1,transform:"translateY(0%)"})),(0,g.eR)("void => enter",[(0,g.oB)({opacity:0,transform:"translateY(-5px)"}),(0,g.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t}),t})(),B=0;const q=new o.OlP("MatHint");let U=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+B++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(o.uIk("id",e.id)("align",null),o.ekj("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[o._Bn([{provide:q,useExisting:t}])]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-label"]]}),t})(),j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const G=new o.OlP("MatPrefix"),Y=new o.OlP("MatSuffix");let V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","matSuffix",""]],features:[o._Bn([{provide:Y,useExisting:t}])]}),t})(),K=0;class J{constructor(t){this._elementRef=t}}const $=(0,r.pj)(J,"primary"),Q=new o.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),W=new o.OlP("MatFormField");let X=(()=>{class t extends ${constructor(t,e,i,n,s,o,r,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=o,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new c.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+K++,this._labelId="mat-form-field-label-"+K++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=(0,a.Ig)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe((0,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,u.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,d.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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_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,l.R)(this._label.nativeElement,"transitionend").pipe((0,p.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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),o=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(s),r=t.children,a=this._getStartEnd(r[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let r=0;r{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[s.ez,r.BQ,n.Q8],r.BQ]}),t})()},43691:function(t,e,i){"use strict";i.d(e,{Hw:function(){return D},Ps:function(){return M},jv:function(){return C}});var n=i(31572),s=i(71522),o=i(19861),r=i(61511),a=i(40878),c=i(31225),u=i(3148),l=i(87570),h=i(66599),d=i(79996),p=i(47727),g=i(11520),f=i(1055),m=i(90611),b=i(29063),w=i(30269);const _=["*"];function y(t){return Error(`Unable to find icon with the name "${t}"`)}function A(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function v(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class T{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let C=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new T(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,s){const o=this._sanitizer.sanitize(n.q3G.HTML,i);if(!o)throw v(i);return this._addSvgIconConfig(t,e,new T("",o,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new T(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const s=this._sanitizer.sanitize(n.q3G.HTML,e);if(!s)throw v(e);return this._addSvgIconSetConfig(t,new T("",s,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,t);if(!e)throw A(t);const i=this._cachedIconsByUrl.get(e);return i?(0,a.of)(S(i)):this._loadSvgIconFromConfig(new T(t,null)).pipe((0,h.b)(t=>this._cachedIconsByUrl.set(e,t)),(0,d.U)(t=>S(t)))}getNamedSvgIcon(t,e=""){const i=E(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):(0,c._)(y(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,a.of)(S(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,d.U)(t=>S(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);if(i)return(0,a.of)(i);const s=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe((0,p.K)(e=>{const i=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),(0,a.of)(null)})));return(0,u.D)(s).pipe((0,d.U)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw y(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,h.b)(e=>t.svgText=e),(0,d.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,a.of)(null):this._fetchIcon(t).pipe((0,h.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const o=this._svgElementFromString("");return o.appendChild(s),this._setSvgAttributes(o,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(r)),(0,f.B)());return this._inProgressUrlFetches.set(r,c),c}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(E(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),I=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],O=I.map(t=>`[${t}]`).join(", "),P=/^url\(['"]?#(.*?)['"]?\)$/;let D=(()=>{class t extends x{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=l.w.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=(0,o.Ig)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(O),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],o=s.getAttribute(t),r=o?o.match(P):null;if(r){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:r[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe((0,m.q)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(C),n.$8M("aria-hidden"),n.Y36(R),n.Y36(n.qLn))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(n.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),n.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.qOj],ngContentSelectors:_,decls:1,vars:0,template:function(t,e){1&t&&(n.F$t(),n.Hsn(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.BQ],s.BQ]}),t})()},80340:function(t,e,i){"use strict";i.d(e,{Jk:function(){return d},Nt:function(){return b},c:function(){return w},D7:function(){return h}});var n=i(10901),s=i(31572),o=i(19861),r=i(11353),a=i(71522),c=i(66283),u=i(55959),l=i(16073);let h=(()=>{class t extends n.IC{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[s.qOj]}),t})();const d=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),p=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;class f{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const m=(0,a.FD)(f);let b=(()=>{class t extends m{constructor(t,e,i,n,s,o,a,c,l,h){super(o,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+g++,this.focused=!1,this.stateChanges=new u.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>(0,r.qK)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=a||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=(0,o.Ig)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=(0,o.Ig)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&(0,r.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=(0,o.Ig)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){p.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(r.t4),s.Y36(l.a5,10),s.Y36(l.F,8),s.Y36(l.sg,8),s.Y36(a.rD),s.Y36(d,10),s.Y36(n.Lq),s.Y36(s.R0b),s.Y36(c.G_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:c.Eo,useExisting:t}]),s.qOj,s.TTD]}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[a.rD],imports:[[n.Ky,c.lN,a.BQ],n.Ky,c.lN]}),t})()},85250:function(t,e,i){"use strict";i.d(e,{i$:function(){return _},Tg:function(){return v},ie:function(){return T}});var n=i(61511),s=i(31572),o=i(71522),r=i(19861),a=i(55959),c=i(25416),u=(i(56238),i(24621),i(4230),i(75842),i(16073),i(27679));const l=["*"],h=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],d=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class p{}const g=(0,o.Id)((0,o.Kr)(p));class f{}const m=(0,o.Kr)(f),b=new s.OlP("MatList"),w=new s.OlP("MatNavList");let _=(()=>{class t extends g{constructor(t){super(),this._elementRef=t,this._stateChanges=new a.xQ,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[s._Bn([{provide:b,useExisting:t}]),s.qOj,s.TTD],ngContentSelectors:l,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),v=(()=>{class t extends m{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new a.xQ,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,c.R)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=(0,r.Ig)(t)}ngAfterContentInit(){(0,o.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 t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(w,8),s.Y36(b,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,y,5),s.Suo(i,A,5),s.Suo(i,o.X2,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._avatar=t.first),s.iGM(t=s.CRH())&&(e._icon=t.first),s.iGM(t=s.CRH())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.qOj],ngContentSelectors:d,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(t,e){1&t&&(s.F$t(h),s.TgZ(0,"div",0),s._UZ(1,"div",1),s.Hsn(2),s.TgZ(3,"div",2),s.Hsn(4,1),s.qZA(),s.Hsn(5,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[o.wG],encapsulation:2,changeDetection:0}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o.uc,o.si,o.BQ,o.us,n.ez],o.uc,o.BQ,o.us,u.t]}),t})()},8055:function(t,e,i){"use strict";i.d(e,{VK:function(){return F},OP:function(){return M},Tx:function(){return j},p6:function(){return U}});var n=i(24621),s=i(19861),o=i(75842),r=i(31572),a=i(55959),c=i(87570),u=i(31906),l=i(40878),h=i(92709),d=i(56238),p=i(44689),g=i(90611),f=i(43835),m=i(25416),b=i(82628),w=i(10709),_=i(26899),y=i(61511),A=i(71522),v=i(2522),T=i(11353),C=i(4253),S=i(22526);const E=["mat-menu-item",""],k=["*"];function x(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",0),r.NdJ("keydown",function(e){return r.CHM(t),r.oxw()._handleKeydown(e)})("click",function(){return r.CHM(t),r.oxw().closed.emit("click")})("@transformMenu.start",function(e){return r.CHM(t),r.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return r.CHM(t),r.oxw()._onAnimationDone(e)}),r.TgZ(1,"div",1),r.Hsn(2),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),r.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const R={transformMenu:(0,w.X$)("transformMenu",[(0,w.SB)("void",(0,w.oB)({opacity:0,transform:"scale(0.8)"})),(0,w.eR)("void => enter",(0,w.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({opacity:1,transform:"scale(1)"}))),(0,w.eR)("* => void",(0,w.jt)("100ms 25ms linear",(0,w.oB)({opacity:0})))]),fadeInItems:(0,w.X$)("fadeInItems",[(0,w.SB)("showing",(0,w.oB)({opacity:1})),(0,w.eR)("void => *",[(0,w.oB)({opacity:0}),(0,w.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},I=new r.OlP("MatMenuContent"),O=new r.OlP("MAT_MENU_PANEL");class P{}const D=(0,A.Kr)((0,A.Id)(P));let M=(()=>{class t extends D{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new a.xQ,this._focused=new a.xQ,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new r.n_E,this._tabSubscription=c.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new r.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+N++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=(0,s.Ig)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,s.Ig)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,p.w)(t=>(0,u.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,p.w)(t=>(0,u.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case o.hY:(0,o.Vb)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case o.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case o.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==o.LH&&e!==o.JH||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,d.O)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(L))},t.\u0275dir=r.lG2({type:t,contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,I,5),r.Suo(i,M,5),r.Suo(i,M,4)),2&t){let t;r.iGM(t=r.CRH())&&(e.lazyContent=t.first),r.iGM(t=r.CRH())&&(e._allItems=t),r.iGM(t=r.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&r.Gf(r.Rgc,5),2&t){let t;r.iGM(t=r.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),F=(()=>{class t extends z{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(L))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&r.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[r._Bn([{provide:O,useExisting:t}]),r.qOj],ngContentSelectors:k,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(r.F$t(),r.YNc(0,x,3,6,"ng-template"))},directives:[y.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[R.transformMenu,R.fadeInItems]},changeDetection:0}),t})();const Z=new r.OlP("mat-menu-scroll-strategy"),B={provide:Z,deps:[v.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},q=(0,T.i$)({passive:!0});let U=(()=>{class t{constructor(t,e,i,s,o,a,u,l){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=u,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=c.w.EMPTY,this._hoverSubscription=c.w.EMPTY,this._menuCloseSubscription=c.w.EMPTY,this._handleTouchStart=t=>{(0,n.yG)(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new r.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new r.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=o instanceof z?o:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,q),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,q),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof z&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof z?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,f.h)(t=>"void"===t.toState),(0,g.q)(1),(0,m.R)(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new v.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,r]=[n,s],[a,c]=[e,i],u=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",u="bottom"===n?8:-8):this.menu.overlapTrigger||(o="top"===n?"bottom":"top",r="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:o,overlayX:a,overlayY:n,offsetY:u},{originX:i,originY:o,overlayX:c,overlayY:n,offsetY:u},{originX:e,originY:r,overlayX:a,overlayY:s,offsetY:-u},{originX:i,originY:r,overlayX:c,overlayY:s,offsetY:-u}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,l.of)(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,f.h)(t=>t!==this._menuItemInstance),(0,f.h)(()=>this._menuOpen)):(0,l.of)();return(0,u.T)(t,i,n,e)}_handleMousedown(t){(0,n.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;e!==o.K5&&e!==o.L_||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===o.SV&&"ltr"===this.dir||e===o.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,f.h)(t=>t===this._menuItemInstance&&!t.disabled),(0,b.g)(0,h.e)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof z&&this.menu._isAnimating?this.menu._animationDone.pipe((0,g.q)(1),(0,b.g)(0,h.e),(0,m.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new _.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(v.aV),r.Y36(r.SBq),r.Y36(r.s_b),r.Y36(Z),r.Y36(O,8),r.Y36(M,10),r.Y36(S.Is,8),r.Y36(n.tE))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&r.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[B],imports:[A.BQ]}),t})(),j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[B],imports:[[y.ez,A.BQ,A.si,v.U8,H],C.ZD,A.BQ,H]}),t})()},73005:function(t,e,i){"use strict";i.d(e,{NW:function(){return C},TU:function(){return S}});var n=i(61511),s=i(31572),o=i(71522),r=i(15980),a=i(4786),c=i(36922),u=i(19861),l=i(55959),h=i(66283);function d(t,e){if(1&t&&(s.TgZ(0,"mat-option",19),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t," ")}}function p(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",16),s.TgZ(1,"mat-select",17),s.NdJ("selectionChange",function(e){return s.CHM(t),s.oxw(2)._changePageSize(e.value)}),s.YNc(2,d,2,2,"mat-option",18),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.Q6J("appearance",t._formFieldAppearance)("color",t.color),s.xp6(1),s.Q6J("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),s.xp6(1),s.Q6J("ngForOf",t._displayedPageSizeOptions)}}function g(t,e){if(1&t&&(s.TgZ(0,"div",20),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.pageSize)}}function f(t,e){if(1&t&&(s.TgZ(0,"div",12),s.TgZ(1,"div",13),s._uU(2),s.qZA(),s.YNc(3,p,3,6,"mat-form-field",14),s.YNc(4,g,2,1,"div",15),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",t._intl.itemsPerPageLabel," "),s.xp6(1),s.Q6J("ngIf",t._displayedPageSizeOptions.length>1),s.xp6(1),s.Q6J("ngIf",t._displayedPageSizeOptions.length<=1)}}function m(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){return s.CHM(t),s.oxw().firstPage()}),s.O4$(),s.TgZ(1,"svg",7),s._UZ(2,"path",22),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),s.uIk("aria-label",t._intl.firstPageLabel)}}function b(t,e){if(1&t){const t=s.EpF();s.O4$(),s.kcU(),s.TgZ(0,"button",23),s.NdJ("click",function(){return s.CHM(t),s.oxw().lastPage()}),s.O4$(),s.TgZ(1,"svg",7),s._UZ(2,"path",24),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),s.uIk("aria-label",t._intl.lastPageLabel)}}let w=(()=>{class t{constructor(){this.changes=new l.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const _={provide:w,deps:[[new s.FiY,new s.tp0,w]],useFactory:function(t){return t||new w}},y=new s.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS");class A{}const v=(0,o.Id)((0,o.dB)(A));let T=(()=>{class t extends v{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new s.vpe,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max((0,u.su)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=(0,u.su)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max((0,u.su)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>(0,u.su)(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=(0,u.Ig)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=(0,u.Ig)(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(w),s.Y36(s.sBO),s.Y36(void 0))},t.\u0275dir=s.lG2({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[s.qOj]}),t})(),C=(()=>{class t extends T{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(w),s.Y36(s.sBO),s.Y36(y,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[s.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,f,5,3,"div",2),s.TgZ(3,"div",3),s.TgZ(4,"div",4),s._uU(5),s.qZA(),s.YNc(6,m,3,5,"button",5),s.TgZ(7,"button",6),s.NdJ("click",function(){return e.previousPage()}),s.O4$(),s.TgZ(8,"svg",7),s._UZ(9,"path",8),s.qZA(),s.qZA(),s.kcU(),s.TgZ(10,"button",9),s.NdJ("click",function(){return e.nextPage()}),s.O4$(),s.TgZ(11,"svg",7),s._UZ(12,"path",10),s.qZA(),s.qZA(),s.YNc(13,b,3,5,"button",11),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",!e.hidePageSize),s.xp6(3),s.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),s.xp6(1),s.Q6J("ngIf",e.showFirstLastButtons),s.xp6(1),s.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),s.uIk("aria-label",e._intl.previousPageLabel),s.xp6(3),s.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),s.uIk("aria-label",e._intl.nextPageLabel),s.xp6(3),s.Q6J("ngIf",e.showFirstLastButtons))},directives:[n.O5,r.lW,c.gM,h.KE,a.gD,n.sg,o.ey],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[_],imports:[[n.ez,r.ot,a.LD,c.AV,o.BQ]]}),t})()},45994:function(t,e,i){"use strict";i.d(e,{Cv:function(){return r}});var n=i(31572),s=i(61511),o=i(71522);i(19861),i(43490),i(87570),i(87254),i(43835);let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.ez,o.BQ],o.BQ]}),t})()},67806:function(t,e,i){"use strict";i.d(e,{Cq:function(){return _},$g:function(){return w}});var n=i(31572),s=i(61511),o=i(71522),r=i(19861),a=i(11353),c=i(43490);function u(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function l(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function h(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function d(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}const p=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class g{constructor(t){this._elementRef=t}}const f=(0,o.pj)(g,"primary"),m=new n.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let b=(()=>{class t extends f{constructor(e,i,n,s,o){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(n.head)||r.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=(0,r.su)(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=(0,r.su)(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,(0,r.su)(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=(0,a.kV)(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(a.t4),n.Y36(s.K0,8),n.Y36(c.Qb,8),n.Y36(m))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(n.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[n.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"svg",0),n.YNc(1,u,1,9,"circle",1),n.YNc(2,l,1,7,"circle",2),n.qZA()),2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},directives:[s.RF,s.n9],styles:[p],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),w=(()=>{class t extends b{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(a.t4),n.Y36(s.K0,8),n.Y36(c.Qb,8),n.Y36(m))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[n.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"svg",0),n.YNc(1,h,1,9,"circle",1),n.YNc(2,d,1,7,"circle",2),n.qZA()),2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},directives:[s.RF,s.n9],styles:[p],encapsulation:2,changeDetection:0}),t})(),_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.BQ,s.ez],o.BQ]}),t})()},54810:function(t,e,i){"use strict";i.d(e,{U0:function(){return T},VQ:function(){return _},Fk:function(){return C}});var n=i(31572),s=i(71522),o=i(19861),r=i(16073),a=i(43490),c=i(24621),u=i(4230);const l=["input"],h=function(t){return{enterDuration:t}},d=["*"],p=new n.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let g=0;const f={provide:r.JU,useExisting:(0,n.Gpc)(()=>_),multi:!0};class m{constructor(t,e){this.source=t,this.value=e}}const b=new n.OlP("MatRadioGroup");let w=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+g++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new n.vpe}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,o.Ig)(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=(0,o.Ig)(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._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 m(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO))},t.\u0275dir=n.lG2({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),_=(()=>{class t extends w{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,T,5),2&t){let t;n.iGM(t=n.CRH())&&(e._radios=t)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[n._Bn([f,{provide:b,useExisting:t}]),n.qOj]}),t})();class y{constructor(t){this._elementRef=t}}const A=(0,s.Kr)((0,s.sb)(y));let v=(()=>{class t extends A{constructor(t,e,i,s,r,a,c,u){super(e),this._changeDetector=i,this._focusMonitor=s,this._radioDispatcher=r,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++g,this.id=this._uniqueId,this.change=new n.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._noopAnimations="NoopAnimations"===a,u&&(this.tabIndex=(0,o.su)(u,0)),this._removeUniqueSelectionListener=r.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=(0,o.Ig)(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled((0,o.Ig)(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=(0,o.Ig)(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new m(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(w),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(c.tE),n.Y36(u.A8),n.Y36(String),n.Y36(void 0),n.Y36(String))},t.\u0275dir=n.lG2({type:t,viewQuery:function(t,e){if(1&t&&n.Gf(l,5),2&t){let t;n.iGM(t=n.CRH())&&(e._inputElement=t.first)}},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[n.qOj]}),t})(),T=(()=>{class t extends v{constructor(t,e,i,n,s,o,r,a){super(t,e,i,n,s,o,r,a)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(b,8),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(c.tE),n.Y36(u.A8),n.Y36(a.Qb,8),n.Y36(p,8),n.$8M("tabindex"))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&n.NdJ("focus",function(){return e._inputElement.nativeElement.focus()}),2&t&&(n.uIk("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.ekj("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable",e._noopAnimations)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.qOj],ngContentSelectors:d,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(n.F$t(),n.TgZ(0,"label",0,1),n.TgZ(2,"span",2),n._UZ(3,"span",3),n._UZ(4,"span",4),n.TgZ(5,"input",5,6),n.NdJ("change",function(t){return e._onInputChange(t)})("click",function(t){return e._onInputClick(t)}),n.qZA(),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA(),n.qZA(),n.TgZ(9,"span",9),n.TgZ(10,"span",10),n._uU(11,"\xa0"),n.qZA(),n.Hsn(12),n.qZA(),n.qZA()),2&t){const t=n.MAs(1);n.uIk("for",e.inputId),n.xp6(5),n.Q6J("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),n.uIk("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(18,h,e._noopAnimations?0:150)),n.xp6(2),n.ekj("mat-radio-label-before","before"==e.labelPosition)}},directives:[s.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-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;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.si,s.BQ],s.BQ]}),t})()},4786:function(t,e,i){"use strict";i.d(e,{gD:function(){return Y},LD:function(){return V},$L:function(){return j}});var n=i(2522),s=i(61511),o=i(31572),r=i(71522),a=i(66283),c=i(4253),u=i(24621),l=i(19861),h=i(4230),d=i(75842),p=i(55959),g=i(31450),f=i(31906),m=i(56238),b=i(44689),w=i(90611),_=i(43835),y=i(79996),A=i(98720),v=i(25416),T=i(10709),C=i(22526),S=i(16073);const E=["trigger"],k=["panel"];function x(t,e){if(1&t&&(o.TgZ(0,"span",8),o._uU(1),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Oqu(t.placeholder)}}function R(t,e){if(1&t&&(o.TgZ(0,"span",12),o._uU(1),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Oqu(t.triggerValue)}}function I(t,e){1&t&&o.Hsn(0,0,["*ngSwitchCase","true"])}function O(t,e){if(1&t&&(o.TgZ(0,"span",9),o.YNc(1,R,2,1,"span",10),o.YNc(2,I,1,0,"ng-content",11),o.qZA()),2&t){const t=o.oxw();o.Q6J("ngSwitch",!!t.customTrigger),o.xp6(2),o.Q6J("ngSwitchCase",!0)}}function P(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",13),o.TgZ(1,"div",14,15),o.NdJ("@transformPanel.done",function(e){return o.CHM(t),o.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return o.CHM(t),o.oxw()._handleKeydown(e)}),o.Hsn(3,1),o.qZA(),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("@transformPanelWrap",void 0),o.xp6(1),o.Gre("mat-select-panel ",t._getPanelTheme(),""),o.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),o.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),o.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const D=[[["mat-select-trigger"]],"*"],M=["mat-select-trigger","*"],L={transformPanelWrap:(0,T.X$)("transformPanelWrap",[(0,T.eR)("* => void",(0,T.IO)("@transformPanel",[(0,T.pV)()],{optional:!0}))]),transformPanel:(0,T.X$)("transformPanel",[(0,T.SB)("void",(0,T.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,T.SB)("showing",(0,T.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,T.SB)("showing-multiple",(0,T.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,T.eR)("void => *",(0,T.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,T.eR)("* => void",(0,T.jt)("100ms 25ms linear",(0,T.oB)({opacity:0})))])};let N=0;const z=new o.OlP("mat-select-scroll-strategy"),F=new o.OlP("MAT_SELECT_CONFIG"),Z={provide:z,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class B{constructor(t,e){this.source=t,this.value=e}}class q{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const U=(0,r.Kr)((0,r.sb)((0,r.Id)((0,r.FD)(q)))),H=new o.OlP("MatSelectTrigger");let j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-select-trigger"]],features:[o._Bn([{provide:H,useExisting:t}])]}),t})(),G=(()=>{class t extends U{constructor(t,e,i,n,s,r,a,c,u,l,h,d,A,v){var T,C,S;super(s,n,a,c,l),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=u,this.ngControl=l,this._liveAnnouncer=A,this._defaultOptions=v,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+N++,this._triggerAriaLabelledBy=null,this._destroy=new p.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+N++,this._panelDoneAnimatingStream=new p.xQ,this._overlayPanelClass=(null===(T=this._defaultOptions)||void 0===T?void 0:T.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(S=null===(C=this._defaultOptions)||void 0===C?void 0:C.disableOptionCentering)&&void 0!==S&&S,this.ariaLabel="",this.optionSelectionChanges=(0,g.P)(()=>{const t=this.options;return t?t.changes.pipe((0,m.O)(t),(0,b.w)(()=>(0,f.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,w.q)(1),(0,b.w)(()=>this.optionSelectionChanges))}),this.openedChange=new o.vpe,this._openedStream=this.openedChange.pipe((0,_.h)(t=>t),(0,y.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,_.h)(t=>!t),(0,y.U)(()=>{})),this.selectionChange=new o.vpe,this.valueChange=new o.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==v?void 0:v.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=v.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=(0,l.Ig)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,l.Ig)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=(0,l.Ig)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=(0,l.su)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,A.x)(),(0,v.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,v.R)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe((0,m.O)(null),(0,v.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.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(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,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 t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=e===d.JH||e===d.LH||e===d.oh||e===d.SV,n=e===d.K5||e===d.L_,s=this._keyManager;if(!s.isTyping()&&n&&!(0,d.Vb)(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=i===d.JH||i===d.LH,s=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(s||i!==d.K5&&i!==d.L_||!e.activeItem||(0,d.Vb)(t))if(!s&&this._multiple&&i===d.A&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.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,w.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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new u.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,v.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,v.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 t=(0,f.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,v.R)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,f.T)(...this.options.map(t=>t._stateChanges)).pipe((0,v.R)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(c.rL),o.Y36(o.sBO),o.Y36(o.R0b),o.Y36(r.rD),o.Y36(o.SBq),o.Y36(C.Is,8),o.Y36(S.F,8),o.Y36(S.sg,8),o.Y36(a.G_,8),o.Y36(S.a5,10),o.$8M("tabindex"),o.Y36(z),o.Y36(u.Kd),o.Y36(F,8))},t.\u0275dir=o.lG2({type:t,viewQuery:function(t,e){if(1&t&&(o.Gf(E,5),o.Gf(k,5),o.Gf(n.pI,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.trigger=t.first),o.iGM(t=o.CRH())&&(e.panel=t.first),o.iGM(t=o.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[o.qOj,o.TTD]}),t})(),Y=(()=>{class t extends G{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(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,v.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,w.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=(0,r.CB)(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=(0,r.jH)((t+e)*i,i,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new B(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const o=0-(t.left+s-(i?n:0)),r=t.right+s-e.width+(i?0:n);o>0?s+=o+8:r>0&&(s-=r+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,o=Math.floor(256/n);let r;return this.disableOptionCentering?0:(r=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-o))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*r-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),r=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;r>s?this._adjustPanelUp(r,s):o>n?this._adjustPanelDown(o,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=(0,r.CB)(s,this.options,this.optionGroups);const o=i/2;this._scrollTop=this._calculateOverlayScroll(s,o,n),this._offsetY=this._calculateOverlayOffsetY(s,o,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,H,5),o.Suo(i,r.ey,5),o.Suo(i,r.K7,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.customTrigger=t.first),o.iGM(t=o.CRH())&&(e.options=t),o.iGM(t=o.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&o.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(o.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),o.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[o._Bn([{provide:a.Eo,useExisting:t},{provide:r.HF,useExisting:t}]),o.qOj],ngContentSelectors:M,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(t,e){if(1&t&&(o.F$t(D),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return e.toggle()}),o.TgZ(3,"div",2),o.YNc(4,x,2,1,"span",3),o.YNc(5,O,3,2,"span",4),o.qZA(),o.TgZ(6,"div",5),o._UZ(7,"div",6),o.qZA(),o.qZA(),o.YNc(8,P,4,14,"ng-template",7),o.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=o.MAs(1);o.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),o.xp6(3),o.Q6J("ngSwitch",e.empty),o.uIk("id",e._valueId),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngSwitchCase",!1),o.xp6(3),o.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[n.xu,s.RF,s.n9,n.pI,s.ED,s.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[L.transformPanelWrap,L.transformPanel]},changeDetection:0}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[Z],imports:[[s.ez,n.U8,r.Ng,r.BQ],c.ZD,a.lN,r.Ng,r.BQ]}),t})()},25122:function(t,e,i){"use strict";i.d(e,{JX:function(){return U},TM:function(){return H},Rh:function(){return q},SJ:function(){return j}});var n=i(11353),s=i(4253),o=i(61511),r=i(31572),a=i(71522),c=i(19861),u=i(75842),l=i(55959),h=i(87254),d=i(31906),p=i(43835),g=i(79996),f=i(88414),m=i(25416),b=i(98720),w=i(90611),_=i(56238),y=i(47701),A=i(10709),v=i(43490),T=i(24621),C=i(22526);const S=["*"];function E(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",2),r.NdJ("click",function(){return r.CHM(t),r.oxw()._onBackdropClicked()}),r.qZA()}if(2&t){const t=r.oxw();r.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function k(t,e){1&t&&(r.TgZ(0,"mat-drawer-content"),r.Hsn(1,2),r.qZA())}const x=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],R=["mat-drawer","mat-drawer-content","*"];function I(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",2),r.NdJ("click",function(){return r.CHM(t),r.oxw()._onBackdropClicked()}),r.qZA()}if(2&t){const t=r.oxw();r.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function O(t,e){1&t&&(r.TgZ(0,"mat-sidenav-content",3),r.Hsn(1,2),r.qZA())}const P=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],D=["mat-sidenav","mat-sidenav-content","*"],M=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",L={transformDrawer:(0,A.X$)("transform",[(0,A.SB)("open, open-instant",(0,A.oB)({transform:"none",visibility:"visible"})),(0,A.SB)("void",(0,A.oB)({"box-shadow":"none",visibility:"hidden"})),(0,A.eR)("void => open-instant",(0,A.jt)("0ms")),(0,A.eR)("void <=> open, open-instant => void",(0,A.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},N=new r.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),z=new r.OlP("MAT_DRAWER_CONTAINER");let F=(()=>{class t extends s.PQ{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36((0,r.Gpc)(()=>B)),r.Y36(r.SBq),r.Y36(s.mF),r.Y36(r.R0b))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&r.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[r.qOj],ngContentSelectors:S,decls:1,vars:0,template:function(t,e){1&t&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),Z=(()=>{class t{constructor(t,e,i,n,s,o,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=s,this._doc=o,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new l.xQ,this._animationEnd=new l.xQ,this._animationState="void",this.openedChange=new r.vpe(!0),this._openedStream=this.openedChange.pipe((0,p.h)(t=>t),(0,g.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),(0,f.h)(void 0)),this._closedStream=this.openedChange.pipe((0,p.h)(t=>!t),(0,g.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState&&"void"===t.toState),(0,f.h)(void 0)),this._destroyed=new l.xQ,this.onPositionChanged=new r.vpe,this._modeChanged=new l.xQ,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{(0,h.R)(this._elementRef.nativeElement,"keydown").pipe((0,p.h)(t=>t.keyCode===u.hY&&!this.disableClose&&!(0,u.Vb)(t)),(0,m.R)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe((0,b.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=(0,c.Ig)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=(0,c.Ig)(t)}get opened(){return this._opened}set opened(t){this.toggle((0,c.Ig)(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe((0,w.q)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(T.qV),r.Y36(T.tE),r.Y36(n.t4),r.Y36(r.R0b),r.Y36(o.K0,8),r.Y36(z,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&r.WFA("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(r.uIk("align",null),r.d8E("@transform",e._animationState),r.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:S,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.Hsn(1),r.qZA())},directives:[s.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),t})(),B=(()=>{class t{constructor(t,e,i,n,s,o=!1,a){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=a,this._drawers=new r.n_E,this.backdropClick=new r.vpe,this._destroyed=new l.xQ,this._doCheckSubject=new l.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new l.xQ,t&&t.change.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe((0,m.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=(0,c.Ig)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:(0,c.Ig)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,_.O)(this._allDrawers),(0,m.R)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,_.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,y.b)(10),(0,m.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(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState),(0,m.R)(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"!==t.mode&&t.openedChange.pipe((0,m.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe((0,m.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,w.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe((0,m.R)((0,d.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),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(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(C.Is,8),r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(s.rL),r.Y36(N),r.Y36(v.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,F,5),r.Suo(i,Z,5)),2&t){let t;r.iGM(t=r.CRH())&&(e._content=t.first),r.iGM(t=r.CRH())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&r.Gf(F,5),2&t){let t;r.iGM(t=r.CRH())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[r._Bn([{provide:z,useExisting:t}])],ngContentSelectors:R,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(t,e){1&t&&(r.F$t(x),r.YNc(0,E,1,2,"div",0),r.Hsn(1),r.Hsn(2,1),r.YNc(3,k,2,0,"mat-drawer-content",1)),2&t&&(r.Q6J("ngIf",e.hasBackdrop),r.xp6(3),r.Q6J("ngIf",!e._content))},directives:[o.O5,F],styles:[M],encapsulation:2,changeDetection:0}),t})(),q=(()=>{class t extends F{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36((0,r.Gpc)(()=>H)),r.Y36(r.SBq),r.Y36(s.mF),r.Y36(r.R0b))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&r.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[r.qOj],ngContentSelectors:S,decls:1,vars:0,template:function(t,e){1&t&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),U=(()=>{class t extends Z{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=(0,c.Ig)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=(0,c.su)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=(0,c.su)(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(r.uIk("align",null),r.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),r.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[r.qOj],ngContentSelectors:S,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.Hsn(1),r.qZA())},directives:[s.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),t})(),H=(()=>{class t extends B{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,q,5),r.Suo(i,U,5)),2&t){let t;r.iGM(t=r.CRH())&&(e._content=t.first),r.iGM(t=r.CRH())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[r._Bn([{provide:z,useExisting:t}]),r.qOj],ngContentSelectors:D,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(r.F$t(P),r.YNc(0,I,1,2,"div",0),r.Hsn(1),r.Hsn(2,1),r.YNc(3,O,2,0,"mat-sidenav-content",1)),2&t&&(r.Q6J("ngIf",e.hasBackdrop),r.xp6(3),r.Q6J("ngIf",!e._content))},directives:[o.O5,q,s.PQ],styles:[M],encapsulation:2,changeDetection:0}),t})(),j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[o.ez,a.BQ,n.ud,s.ZD],s.ZD,a.BQ]}),t})()},27521:function(t,e,i){"use strict";i.d(e,{Rr:function(){return A},rP:function(){return T}});var n=i(36337),s=i(31572),o=i(71522),r=i(19861),a=i(16073),c=i(43490),u=i(24621);const l=["thumbContainer"],h=["toggleBar"],d=["input"],p=function(t){return{enterDuration:t}},g=["*"],f=new s.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let m=0;const b={provide:a.JU,useExisting:(0,s.Gpc)(()=>A),multi:!0};class w{constructor(t,e){this.source=t,this.checked=e}}class _{constructor(t){this._elementRef=t}}const y=(0,o.sb)((0,o.pj)((0,o.Kr)((0,o.Id)(_))));let A=(()=>{class t extends y{constructor(t,e,i,n,o,r){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=o,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++m,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new s.vpe,this.toggleChange=new s.vpe,this.tabIndex=parseInt(n)||0,this.color=this.defaultColor=o.color||"accent",this._noopAnimations="NoopAnimations"===r}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t)}get checked(){return this._checked}set checked(t){this._checked=(0,r.Ig)(t),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new w(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(u.tE),s.Y36(s.sBO),s.$8M("tabindex"),s.Y36(f),s.Y36(c.Qb,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){if(1&t&&(s.Gf(l,5),s.Gf(h,5),s.Gf(d,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._thumbEl=t.first),s.iGM(t=s.CRH())&&(e._thumbBarEl=t.first),s.iGM(t=s.CRH())&&(e._inputElement=t.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),s.ekj("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[s._Bn([b]),s.qOj],ngContentSelectors:g,decls:16,vars:19,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"div",2,3),s.TgZ(4,"input",4,5),s.NdJ("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(6,"div",6,7),s._UZ(8,"div",8),s.TgZ(9,"div",9),s._UZ(10,"div",10),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"span",11,12),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(13,"span",13),s._uU(14,"\xa0"),s.qZA(),s.Hsn(15),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),i=s.MAs(12);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),s.xp6(2),s.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),s.uIk("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.xp6(5),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.VKq(17,p,e._noopAnimations?0:150))}},directives:[o.wG,n.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{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%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[v,o.si,o.BQ,n.Q8],v,o.BQ]}),t})()},71403:function(t,e,i){"use strict";i.d(e,{ZX:function(){return u}});var n=i(2522),s=i(26899),o=i(61511),r=i(31572),a=i(71522),c=i(15980);i(55959),i(90611),i(10709),i(11353);let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.U8,s.eL,o.ez,c.ot,a.BQ],a.BQ]}),t})()},58623:function(t,e,i){"use strict";i.d(e,{YE:function(){return w},nU:function(){return S},JX:function(){return E}});var n=i(31572),s=i(19861),o=i(71522),r=i(75842),a=i(55959),c=i(31906),u=i(10709),l=i(61511),h=i(24621);const d=["mat-sort-header",""];function p(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){return n.CHM(t),n.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return n.CHM(t),n.oxw()._disableViewStateAnimation=!1}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6),n._UZ(4,"div",7),n._UZ(5,"div",8),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",t._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",t._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",t._getArrowDirectionState())}}const g=["*"],f=new n.OlP("MAT_SORT_DEFAULT_OPTIONS");class m{}const b=(0,o.dB)((0,o.Id)(m));let w=(()=>{class t extends b{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new a.xQ,this.start="asc",this._direction="",this.sortChange=new n.vpe}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=(0,s.Ig)(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,i,n;if(!t)return"";const s=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let o=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,s),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(f,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.qOj,n.TTD]}),t})();const _=o.mZ.ENTERING+" "+o.yN.STANDARD_CURVE,y={indicator:(0,u.X$)("indicator",[(0,u.SB)("active-asc, asc",(0,u.oB)({transform:"translateY(0px)"})),(0,u.SB)("active-desc, desc",(0,u.oB)({transform:"translateY(10px)"})),(0,u.eR)("active-asc <=> active-desc",(0,u.jt)(_))]),leftPointer:(0,u.X$)("leftPointer",[(0,u.SB)("active-asc, asc",(0,u.oB)({transform:"rotate(-45deg)"})),(0,u.SB)("active-desc, desc",(0,u.oB)({transform:"rotate(45deg)"})),(0,u.eR)("active-asc <=> active-desc",(0,u.jt)(_))]),rightPointer:(0,u.X$)("rightPointer",[(0,u.SB)("active-asc, asc",(0,u.oB)({transform:"rotate(45deg)"})),(0,u.SB)("active-desc, desc",(0,u.oB)({transform:"rotate(-45deg)"})),(0,u.eR)("active-asc <=> active-desc",(0,u.jt)(_))]),arrowOpacity:(0,u.X$)("arrowOpacity",[(0,u.SB)("desc-to-active, asc-to-active, active",(0,u.oB)({opacity:1})),(0,u.SB)("desc-to-hint, asc-to-hint, hint",(0,u.oB)({opacity:.54})),(0,u.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,u.oB)({opacity:0})),(0,u.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,u.jt)("0ms")),(0,u.eR)("* <=> *",(0,u.jt)(_))]),arrowPosition:(0,u.X$)("arrowPosition",[(0,u.eR)("* => desc-to-hint, * => desc-to-active",(0,u.jt)(_,(0,u.F4)([(0,u.oB)({transform:"translateY(-25%)"}),(0,u.oB)({transform:"translateY(0)"})]))),(0,u.eR)("* => hint-to-desc, * => active-to-desc",(0,u.jt)(_,(0,u.F4)([(0,u.oB)({transform:"translateY(0)"}),(0,u.oB)({transform:"translateY(25%)"})]))),(0,u.eR)("* => asc-to-hint, * => asc-to-active",(0,u.jt)(_,(0,u.F4)([(0,u.oB)({transform:"translateY(25%)"}),(0,u.oB)({transform:"translateY(0)"})]))),(0,u.eR)("* => hint-to-asc, * => active-to-asc",(0,u.jt)(_,(0,u.F4)([(0,u.oB)({transform:"translateY(0)"}),(0,u.oB)({transform:"translateY(-25%)"})]))),(0,u.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,u.oB)({transform:"translateY(0)"})),(0,u.SB)("hint-to-desc, active-to-desc, desc",(0,u.oB)({transform:"translateY(-25%)"})),(0,u.SB)("hint-to-asc, active-to-asc, asc",(0,u.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,u.X$)("allowChildren",[(0,u.eR)("* <=> *",[(0,u.IO)("@*",(0,u.pV)(),{optional:!0})])])};let A=(()=>{class t{constructor(){this.changes=new a.xQ}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const v={provide:A,deps:[[new n.FiY,new n.tp0,A]],useFactory:function(t){return t||new A}};class T{}const C=(0,o.Id)(T);let S=(()=>{class t extends C{constructor(t,e,i,n,s,o){super(),this._intl=t,this._changeDetectorRef=e,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=(0,s.Ig)(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.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(t){this._isDisabled()||t.keyCode!==r.L_&&t.keyCode!==r.K5||(t.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 t=this._viewState.fromState;return(t?`${t}-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()}_handleStateChanges(){this._rerenderSubscription=(0,c.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 t.\u0275fac=function(e){return new(e||t)(n.Y36(A),n.Y36(n.sBO),n.Y36(w,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36(h.tE),n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(n.uIk("aria-sort",e._getAriaSortAttribute()),n.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[n.qOj],attrs:d,ngContentSelectors:g,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,p,6,6,"div",2),n.qZA()),2&t&&(n.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),n.uIk("tabindex",e._isDisabled()?null:0),n.xp6(3),n.Q6J("ngIf",e._renderArrow()))},directives:[l.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[y.indicator,y.leftPointer,y.rightPointer,y.arrowOpacity,y.arrowPosition,y.allowChildren]},changeDetection:0}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[v],imports:[[l.ez,o.BQ]]}),t})()},70663:function(t,e,i){"use strict";i.d(e,{C0:function(){return at},VY:function(){return W},Vq:function(){return ht},T5:function(){return gt},Ic:function(){return dt},fd:function(){return pt}});var n=i(26899),s=i(24621),o=i(22526),r=i(19861),a=i(75842),c=i(61511),u=i(31572),l=i(55959),h=i(40878),d=i(56238),p=i(25416);function g(t,e){1&t&&u.Hsn(0)}const f=["*"];let m=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.SBq))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),b=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.Rgc))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),w=0;const _=new u.OlP("STEPPER_GLOBAL_OPTIONS");let y=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this.interactedStream=new u.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=(0,r.Ig)(t)}get optional(){return this._optional}set optional(t){this._optional=(0,r.Ig)(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=(0,r.Ig)(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=(0,r.Ig)(t)}_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))}}return t.\u0275fac=function(e){return new(e||t)(u.Y36((0,u.Gpc)(()=>A)),u.Y36(_,8))},t.\u0275cmp=u.Xpm({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){if(1&t&&u.Suo(i,b,5),2&t){let t;u.iGM(t=u.CRH())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&u.Gf(u.Rgc,7),2&t){let t;u.iGM(t=u.CRH())&&(e.content=t.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[u.TTD],ngContentSelectors:f,decls:1,vars:0,template:function(t,e){1&t&&(u.F$t(),u.YNc(0,g,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),A=(()=>{class t{constructor(t,e,i,n){this._dir=t,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new l.xQ,this.steps=new u.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new u.vpe,this._orientation="horizontal",this._groupId=w++,this._document=n}get linear(){return this._linear}set linear(t){this._linear=(0,r.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var e;const i=(0,r.su)(t);this.steps&&this._steps?(this._isValidIndex(t),null===(e=this.selected)||void 0===e||e._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}get orientation(){return this._orientation}set orientation(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===t)}ngAfterContentInit(){this._steps.changes.pipe((0,d.O)(this._steps),(0,p.R)(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new s.Em(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,h.of)()).pipe((0,d.O)(this._layoutDirection()),(0,p.R)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),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._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(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?"error":!t.completed||e?"number":t.editable?"edit":"done"}_getGuidelineLogic(t,e,i="number"){return t._showError&&t.hasError&&!e?"error":t.completed&&!e?"done":t.completed&&e?i:t.editable&&e?"edit":i}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=(0,a.Vb)(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==a.L_&&i!==a.K5?n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_isValidIndex(t){return t>-1&&(!this.steps||t{class t{constructor(t){this._stepper=t,this.type="submit"}_handleClick(){this._stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(A))},t.\u0275dir=u.lG2({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&u.NdJ("click",function(){return e._handleClick()}),2&t&&u.Ikx("type",e.type)},inputs:{type:"type"}}),t})(),T=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(A))},t.\u0275dir=u.lG2({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&u.NdJ("click",function(){return e._handleClick()}),2&t&&u.Ikx("type",e.type)},inputs:{type:"type"}}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({imports:[[o.vT]]}),t})();var S=i(15980),E=i(71522),k=i(43691),x=i(87570),R=i(44689),I=i(79996),O=i(98720),P=i(10709);function D(t,e){if(1&t&&u.GkF(0,8),2&t){const t=u.oxw();u.Q6J("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function M(t,e){if(1&t&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&t){const t=u.oxw(2);u.xp6(1),u.Oqu(t._getDefaultTextForState(t.state))}}function L(t,e){if(1&t&&(u.TgZ(0,"mat-icon"),u._uU(1),u.qZA()),2&t){const t=u.oxw(2);u.xp6(1),u.Oqu(t._getDefaultTextForState(t.state))}}function N(t,e){if(1&t&&(u.ynx(0,9),u.YNc(1,M,2,1,"span",10),u.YNc(2,L,2,1,"mat-icon",11),u.BQk()),2&t){const t=u.oxw();u.Q6J("ngSwitch",t.state),u.xp6(1),u.Q6J("ngSwitchCase","number")}}function z(t,e){if(1&t&&(u.TgZ(0,"div",12),u.GkF(1,13),u.qZA()),2&t){const t=u.oxw();u.xp6(1),u.Q6J("ngTemplateOutlet",t._templateLabel().template)}}function F(t,e){if(1&t&&(u.TgZ(0,"div",12),u._uU(1),u.qZA()),2&t){const t=u.oxw();u.xp6(1),u.Oqu(t.label)}}function Z(t,e){if(1&t&&(u.TgZ(0,"div",14),u._uU(1),u.qZA()),2&t){const t=u.oxw();u.xp6(1),u.Oqu(t._intl.optionalLabel)}}function B(t,e){if(1&t&&(u.TgZ(0,"div",15),u._uU(1),u.qZA()),2&t){const t=u.oxw();u.xp6(1),u.Oqu(t.errorMessage)}}function q(t,e){}function U(t,e){if(1&t&&(u.Hsn(0),u.YNc(1,q,0,0,"ng-template",0)),2&t){const t=u.oxw();u.xp6(1),u.Q6J("cdkPortalOutlet",t._portal)}}const H=["*"];function j(t,e){1&t&&u._UZ(0,"div",9)}const G=function(t,e){return{step:t,i:e}};function Y(t,e){if(1&t&&(u.ynx(0),u.GkF(1,7),u.YNc(2,j,1,0,"div",8),u.BQk()),2&t){const t=e.$implicit,i=e.index,n=e.last;u.oxw(2);const s=u.MAs(4);u.xp6(1),u.Q6J("ngTemplateOutlet",s)("ngTemplateOutletContext",u.WLB(3,G,t,i)),u.xp6(1),u.Q6J("ngIf",!n)}}function V(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div",10),u.NdJ("@horizontalStepTransition.done",function(e){return u.CHM(t),u.oxw(2)._animationDone.next(e)}),u.GkF(1,11),u.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=u.oxw(2);u.Q6J("@horizontalStepTransition",n._getAnimationDirection(i))("id",n._getStepContentId(i)),u.uIk("aria-labelledby",n._getStepLabelId(i))("aria-expanded",n.selectedIndex===i),u.xp6(1),u.Q6J("ngTemplateOutlet",t.content)}}function K(t,e){if(1&t&&(u.ynx(0),u.TgZ(1,"div",3),u.YNc(2,Y,3,6,"ng-container",4),u.qZA(),u.TgZ(3,"div",5),u.YNc(4,V,2,5,"div",6),u.qZA(),u.BQk()),2&t){const t=u.oxw();u.xp6(2),u.Q6J("ngForOf",t.steps),u.xp6(2),u.Q6J("ngForOf",t.steps)}}function J(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div",13),u.GkF(1,7),u.TgZ(2,"div",14),u.TgZ(3,"div",15),u.NdJ("@verticalStepTransition.done",function(e){return u.CHM(t),u.oxw(2)._animationDone.next(e)}),u.TgZ(4,"div",16),u.GkF(5,11),u.qZA(),u.qZA(),u.qZA(),u.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=e.last,s=u.oxw(2),o=u.MAs(4);u.xp6(1),u.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",u.WLB(9,G,t,i)),u.xp6(1),u.ekj("mat-stepper-vertical-line",!n),u.xp6(1),u.Q6J("@verticalStepTransition",s._getAnimationDirection(i))("id",s._getStepContentId(i)),u.uIk("aria-labelledby",s._getStepLabelId(i))("aria-expanded",s.selectedIndex===i),u.xp6(2),u.Q6J("ngTemplateOutlet",t.content)}}function $(t,e){if(1&t&&(u.ynx(0),u.YNc(1,J,6,12,"div",12),u.BQk()),2&t){const t=u.oxw();u.xp6(1),u.Q6J("ngForOf",t.steps)}}function Q(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"mat-step-header",17),u.NdJ("click",function(){return e.step.select()})("keydown",function(e){return u.CHM(t),u.oxw()._onKeydown(e)}),u.qZA()}if(2&t){const t=e.step,i=e.i,n=u.oxw();u.ekj("mat-horizontal-stepper-header","horizontal"===n.orientation)("mat-vertical-stepper-header","vertical"===n.orientation),u.Q6J("tabIndex",n._getFocusIndex()===i?0:-1)("id",n._getStepLabelId(i))("index",i)("state",n._getIndicatorType(i,t.state))("label",t.stepLabel||t.label)("selected",n.selectedIndex===i)("active",t.completed||n.selectedIndex===i||!n.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple)("color",t.color||n.color),u.uIk("aria-posinset",i+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null)}}let W=(()=>{class t extends b{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u.n5z(t)))(i||t)}}(),t.\u0275dir=u.lG2({type:t,selectors:[["","matStepLabel",""]],features:[u.qOj]}),t})(),X=(()=>{class t{constructor(){this.changes=new l.xQ,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=u.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const tt={provide:X,deps:[[new u.FiY,new u.tp0,X]],useFactory:function(t){return t||new X}};class et extends m{constructor(t){super(t)}}const it=(0,E.pj)(et,"primary");let nt=(()=>{class t extends it{constructor(t,e,i,n){super(i),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>n.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._elementRef,t,e):this._elementRef.nativeElement.focus(e)}_stringLabel(){return this.label instanceof W?null:this.label}_templateLabel(){return this.label instanceof W?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?`${this.index+1}`:"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(X),u.Y36(s.tE),u.Y36(u.SBq),u.Y36(u.sBO))},t.\u0275cmp=u.Xpm({type:t,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:[u.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"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(u._UZ(0,"div",0),u.TgZ(1,"div"),u.TgZ(2,"div",1),u.YNc(3,D,1,2,"ng-container",2),u.YNc(4,N,3,2,"ng-container",3),u.qZA(),u.qZA(),u.TgZ(5,"div",4),u.YNc(6,z,2,1,"div",5),u.YNc(7,F,2,1,"div",5),u.YNc(8,Z,2,1,"div",6),u.YNc(9,B,2,1,"div",7),u.qZA()),2&t&&(u.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),u.xp6(1),u.Gre("mat-step-icon-state-",e.state," mat-step-icon"),u.ekj("mat-step-icon-selected",e.selected),u.xp6(1),u.Q6J("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),u.xp6(1),u.Q6J("ngSwitchCase",!0),u.xp6(2),u.ekj("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),u.xp6(1),u.Q6J("ngIf",e._templateLabel()),u.xp6(1),u.Q6J("ngIf",e._stringLabel()),u.xp6(1),u.Q6J("ngIf",e.optional&&"error"!=e.state),u.xp6(1),u.Q6J("ngIf","error"==e.state))},directives:[E.wG,c.RF,c.n9,c.ED,c.O5,c.tP,k.Hw],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.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,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const st={horizontalStepTransition:(0,P.X$)("horizontalStepTransition",[(0,P.SB)("previous",(0,P.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,P.SB)("current",(0,P.oB)({transform:"none",visibility:"inherit"})),(0,P.SB)("next",(0,P.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,P.eR)("* => *",(0,P.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,P.X$)("verticalStepTransition",[(0,P.SB)("previous",(0,P.oB)({height:"0px",visibility:"hidden"})),(0,P.SB)("next",(0,P.oB)({height:"0px",visibility:"hidden"})),(0,P.SB)("current",(0,P.oB)({height:"*",visibility:"inherit"})),(0,P.eR)("* <=> current",(0,P.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let ot=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.Rgc))},t.\u0275dir=u.lG2({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),rt=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.Rgc))},t.\u0275dir=u.lG2({type:t,selectors:[["ng-template","matStepContent",""]]}),t})(),at=(()=>{class t extends y{constructor(t,e,i,n){super(t,n),this._errorStateMatcher=e,this._viewContainerRef=i,this._isSelected=x.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,R.w)(()=>this._stepper.selectionChange.pipe((0,I.U)(t=>t.selectedStep===this),(0,d.O)(this._stepper.selected===this)))).subscribe(t=>{t&&this._lazyContent&&!this._portal&&(this._portal=new n.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(u.Y36((0,u.Gpc)(()=>ht)),u.Y36(E.rD,4),u.Y36(u.s_b),u.Y36(_,8))},t.\u0275cmp=u.Xpm({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){if(1&t&&(u.Suo(i,W,5),u.Suo(i,rt,5)),2&t){let t;u.iGM(t=u.CRH())&&(e.stepLabel=t.first),u.iGM(t=u.CRH())&&(e._lazyContent=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[u._Bn([{provide:E.rD,useExisting:t},{provide:y,useExisting:t}]),u.qOj],ngContentSelectors:H,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(u.F$t(),u.YNc(0,U,2,1,"ng-template"))},directives:[n.Pl],encapsulation:2,changeDetection:0}),t})(),ct=(()=>{class t extends A{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u.n5z(t)))(i||t)}}(),t.\u0275dir=u.lG2({type:t,features:[u.qOj]}),t})(),ut=(()=>{class t extends ct{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u.n5z(t)))(i||t)}}(),t.\u0275dir=u.lG2({type:t,selectors:[["mat-horizontal-stepper"]],features:[u.qOj]}),t})(),lt=(()=>{class t extends ct{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u.n5z(t)))(i||t)}}(),t.\u0275dir=u.lG2({type:t,selectors:[["mat-vertical-stepper"]],features:[u.qOj]}),t})(),ht=(()=>{class t extends A{constructor(t,e,i,n){super(t,e,i,n),this.steps=new u.n_E,this.animationDone=new u.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new l.xQ;const s=i.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===s?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this.steps.changes.pipe((0,p.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,O.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),(0,p.R)(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(o.Is,8),u.Y36(u.sBO),u.Y36(u.SBq),u.Y36(c.K0))},t.\u0275cmp=u.Xpm({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,e,i){if(1&t&&(u.Suo(i,at,5),u.Suo(i,ot,5)),2&t){let t;u.iGM(t=u.CRH())&&(e._steps=t),u.iGM(t=u.CRH())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&u.Gf(nt,5),2&t){let t;u.iGM(t=u.CRH())&&(e._stepHeader=t)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,e){2&t&&(u.uIk("aria-orientation",e.orientation),u.ekj("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[u._Bn([{provide:A,useExisting:t},{provide:ut,useExisting:t},{provide:lt,useExisting:t}]),u.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(t,e){1&t&&(u.ynx(0,0),u.YNc(1,K,5,2,"ng-container",1),u.YNc(2,$,2,1,"ng-container",1),u.BQk(),u.YNc(3,Q,1,22,"ng-template",null,2,u.W1O)),2&t&&(u.Q6J("ngSwitch",e.orientation),u.xp6(1),u.Q6J("ngSwitchCase","horizontal"),u.xp6(1),u.Q6J("ngSwitchCase","vertical"))},directives:[c.RF,c.n9,c.sg,c.tP,c.O5,nt],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[st.horizontalStepTransition,st.verticalStepTransition]},changeDetection:0}),t})(),dt=(()=>{class t extends v{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u.n5z(t)))(i||t)}}(),t.\u0275dir=u.lG2({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,e){2&t&&u.Ikx("type",e.type)},inputs:{type:"type"},features:[u.qOj]}),t})(),pt=(()=>{class t extends T{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u.n5z(t)))(i||t)}}(),t.\u0275dir=u.lG2({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&u.Ikx("type",e.type)},inputs:{type:"type"},features:[u.qOj]}),t})(),gt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({providers:[tt,E.rD],imports:[[E.BQ,c.ez,n.eL,S.ot,C,k.Ps,E.si],E.BQ]}),t})()},67033:function(t,e,i){"use strict";i.d(e,{ev:function(){return dt},Dz:function(){return ct},w1:function(){return lt},ge:function(){return ht},fO:function(){return ut},XQ:function(){return ft},as:function(){return pt},Gk:function(){return mt},nj:function(){return gt},BZ:function(){return at},by:function(){return _t},p0:function(){return bt}});var n=i(19861),s=i(4230),o=i(31572),r=i(22526),a=i(11353),c=i(4253),u=i(61511),l=i(55959),h=i(19764),d=i(78512),p=i(4710),g=i(40878),f=i(25416),m=i(90611);const b=[[["caption"]],[["colgroup"],["col"]]],w=["caption","colgroup, col"];function _(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=(0,n.Ig)(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const y=new o.OlP("CDK_TABLE");let A=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkCellDef",""]]}),t})(),v=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),T=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class C{}const S=_(C);let E=(()=>{class t extends S{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=(0,n.Ig)(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(y,8))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,A,5),o.Suo(i,v,5),o.Suo(i,T,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.cell=t.first),o.iGM(t=o.CRH())&&(e.headerCell=t.first),o.iGM(t=o.CRH())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[o._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),o.qOj]}),t})();class k{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let x=(()=>{class t extends k{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(E),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[o.qOj]}),t})(),R=(()=>{class t extends k{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(E),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[o.qOj]}),t})();class I{constructor(){this.tasks=[],this.endTasks=[]}}const O=new o.OlP("_COALESCED_STYLE_SCHEDULER");let P=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new l.xQ}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new I,this._getScheduleObservable().pipe((0,f.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new I;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,h.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,m.q)(1))}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(o.R0b))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof N?t.headerCell.template:this instanceof Z?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o.ZZ4))},t.\u0275dir=o.lG2({type:t,features:[o.TTD]}),t})();class M extends D{}const L=_(M);let N=(()=>{class t extends L{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(y,8))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[o.qOj,o.TTD]}),t})();class z extends D{}const F=_(z);let Z=(()=>{class t extends F{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(y,8))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[o.qOj,o.TTD]}),t})(),B=(()=>{class t extends D{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(y,8))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[o.qOj]}),t})(),q=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.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(t,e){1&t&&o.GkF(0,0)},directives:[q],encapsulation:2}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.GkF(0,0)},directives:[q],encapsulation:2}),t})(),j=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const G=["top","bottom","left","right"];class Y{constructor(t,e,i,n,s=!0,o=!0,r){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=s,this._needsPositionStickyOnElement=o,this._positionListener=r,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(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],o=s.children.length,r=this._getCellWidths(s,n),a=this._getStickyStartColumnPositions(r,e),c=this._getStickyEndColumnPositions(r,i),u=e.lastIndexOf(!0),l=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const n="rtl"===this.direction,s=n?"right":"left",h=n?"left":"right";for(const r of t)for(let t=0;te[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===l?[]:r.slice(l).map((t,e)=>i[e+l]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,o=[],r=[],a=[];for(let u=0,l=0;u{var t,e;for(let r=0;r{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);G.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of G)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}const V=new o.OlP("CDK_SPL");let K=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","rowOutlet",""]]}),t})(),J=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),$=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),Q=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),W=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,h){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=r,this._viewRepeater=a,this._coalescedStyleScheduler=c,this._viewportRuler=u,this._stickyPositioningListener=h,this._onDestroy=new l.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new d.X({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=(0,n.Ig)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=(0,n.Ig)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler.change().pipe((0,f.R)(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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,s.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),X(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=X(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=X(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=X(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],(0,s.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;(0,s.Z9)(this.dataSource)?t=this.dataSource.connect(this):(0,p.b)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=(0,g.of)(this.dataSource)),this._renderChangeSubscription=t.pipe((0,f.R)(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const s=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),s}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))q.mostRecentCellOutlet&&q.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Y(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,g.of)()).pipe((0,f.R)(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.ZZ4),o.Y36(o.sBO),o.Y36(o.SBq),o.$8M("role"),o.Y36(r.Is,8),o.Y36(u.K0),o.Y36(a.t4),o.Y36(s.k),o.Y36(O),o.Y36(c.rL),o.Y36(V,12))},t.\u0275cmp=o.Xpm({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,j,5),o.Suo(i,E,5),o.Suo(i,B,5),o.Suo(i,N,5),o.Suo(i,Z,5)),2&t){let t;o.iGM(t=o.CRH())&&(e._noDataRow=t.first),o.iGM(t=o.CRH())&&(e._contentColumnDefs=t),o.iGM(t=o.CRH())&&(e._contentRowDefs=t),o.iGM(t=o.CRH())&&(e._contentHeaderRowDefs=t),o.iGM(t=o.CRH())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(o.Gf(K,7),o.Gf(J,7),o.Gf($,7),o.Gf(Q,7)),2&t){let t;o.iGM(t=o.CRH())&&(e._rowOutlet=t.first),o.iGM(t=o.CRH())&&(e._headerRowOutlet=t.first),o.iGM(t=o.CRH())&&(e._footerRowOutlet=t.first),o.iGM(t=o.CRH())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[o._Bn([{provide:y,useExisting:t},{provide:s.k,useClass:s.yy},{provide:O,useClass:P},{provide:V,useValue:null}])],ngContentSelectors:w,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(o.F$t(b),o.Hsn(0),o.Hsn(1,1),o.GkF(2,0),o.GkF(3,1),o.GkF(4,2),o.GkF(5,3))},directives:[J,K,Q,$],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function X(t,e){return t.concat(Array.from(e))}let tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[c.Cl]]}),t})();var et=i(71522),it=i(31906),nt=i(31305),st=i(79996);const ot=[[["caption"]],[["colgroup"],["col"]]],rt=["caption","colgroup, col"];let at=(()=>{class t extends W{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[o._Bn([{provide:s.k,useClass:s.yy},{provide:W,useExisting:t},{provide:y,useExisting:t},{provide:O,useClass:P},{provide:V,useValue:null}]),o.qOj],ngContentSelectors:rt,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(o.F$t(ot),o.Hsn(0),o.Hsn(1,1),o.GkF(2,0),o.GkF(3,1),o.GkF(4,2),o.GkF(5,3))},directives:[J,K,Q,$],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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),ct=(()=>{class t extends A{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matCellDef",""]],features:[o._Bn([{provide:A,useExisting:t}]),o.qOj]}),t})(),ut=(()=>{class t extends v{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matHeaderCellDef",""]],features:[o._Bn([{provide:v,useExisting:t}]),o.qOj]}),t})(),lt=(()=>{class t extends E{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[o._Bn([{provide:E,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),o.qOj]}),t})(),ht=(()=>{class t extends x{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[o.qOj]}),t})(),dt=(()=>{class t extends R{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[o.qOj]}),t})(),pt=(()=>{class t extends N{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[o._Bn([{provide:N,useExisting:t}]),o.qOj]}),t})(),gt=(()=>{class t extends B{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[o._Bn([{provide:B,useExisting:t}]),o.qOj]}),t})(),ft=(()=>{class t extends U{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[o._Bn([{provide:U,useExisting:t}]),o.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.GkF(0,0)},directives:[q],encapsulation:2}),t})(),mt=(()=>{class t extends H{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[o._Bn([{provide:H,useExisting:t}]),o.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.GkF(0,0)},directives:[q],encapsulation:2}),t})(),bt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[tt,et.BQ],et.BQ]}),t})();class wt extends s.o2{constructor(t=[]){super(),this._renderData=new d.X([]),this._filter=new d.X(""),this._internalPageChanges=new l.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const i=t[e];if((0,n.t6)(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),o=this.sortingDataAccessor(e,i);const r=typeof s,a=typeof o;r!==a&&("number"===r&&(s+=""),"number"===a&&(o+=""));let c=0;return null!=s&&null!=o?s>o?c=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new d.X(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?(0,it.T)(this._sort.sortChange,this._sort.initialized):(0,g.of)(null),i=this._paginator?(0,it.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,g.of)(null),n=(0,nt.aj)([this._data,this._filter]).pipe((0,st.U)(([t])=>this._filterData(t))),s=(0,nt.aj)([n,e]).pipe((0,st.U)(([t])=>this._orderData(t))),o=(0,nt.aj)([s,i]).pipe((0,st.U)(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=o.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}class _t extends wt{}},55109:function(t,e,i){"use strict";i.d(e,{uX:function(){return $},Vc:function(){return j},SP:function(){return at},uD:function(){return Y},Nh:function(){return ft}});var n=i(24621),s=i(36337),o=i(26899),r=i(61511),a=i(31572),c=i(71522),u=i(43490),l=i(55959),h=i(87570),d=i(31906),p=i(87254),g=i(40878),f=i(81110),m=i(10709),b=i(56238),w=i(98720),_=i(25416),y=i(19861),A=i(11353),v=i(75842),T=i(22526),C=i(4253);function S(t,e){1&t&&a.Hsn(0)}const E=["*"];function k(t,e){}const x=function(t){return{animationDuration:t}},R=function(t,e){return{value:t,params:e}},I=["tabBodyWrapper"],O=["tabHeader"];function P(t,e){}function D(t,e){if(1&t&&a.YNc(0,P,0,0,"ng-template",9),2&t){const t=a.oxw().$implicit;a.Q6J("cdkPortalOutlet",t.templateLabel)}}function M(t,e){if(1&t&&a._uU(0),2&t){const t=a.oxw().$implicit;a.Oqu(t.textLabel)}}function L(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){const e=a.CHM(t),i=e.$implicit,n=e.index,s=a.oxw(),o=a.MAs(1);return s._handleClick(i,o,n)})("cdkFocusChange",function(e){const i=a.CHM(t).index;return a.oxw()._tabFocusChanged(e,i)}),a.TgZ(1,"div",7),a.YNc(2,D,1,1,"ng-template",8),a.YNc(3,M,1,1,"ng-template",8),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.ekj("mat-tab-label-active",n.selectedIndex==i),a.Q6J("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),a.uIk("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),a.xp6(2),a.Q6J("ngIf",t.templateLabel),a.xp6(1),a.Q6J("ngIf",!t.templateLabel)}}function N(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-tab-body",10),a.NdJ("_onCentered",function(){return a.CHM(t),a.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return a.CHM(t),a.oxw()._setTabBodyWrapperHeight(e)}),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.ekj("mat-tab-body-active",n.selectedIndex==i),a.Q6J("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),a.uIk("aria-labelledby",n._getTabLabelId(i))}}const z=["tabListContainer"],F=["tabList"],Z=["nextPaginator"],B=["previousPaginator"],q=new a.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let U=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(q),a.Y36(u.Qb,8))},t.\u0275dir=a.lG2({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const H=new a.OlP("MatTabContent");let j=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.Rgc))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabContent",""]],features:[a._Bn([{provide:H,useExisting:t}])]}),t})();const G=new a.OlP("MatTabLabel");let Y=(()=>{class t extends o.ig{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=a.n5z(t)))(i||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a._Bn([{provide:G,useExisting:t}]),a.qOj]}),t})();class V{}const K=(0,c.Id)(V),J=new a.OlP("MAT_TAB_GROUP");let $=(()=>{class t extends K{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new l.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new o.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.s_b),a.Y36(J,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){if(1&t&&(a.Suo(i,G,5),a.Suo(i,H,7,a.Rgc)),2&t){let t;a.iGM(t=a.CRH())&&(e.templateLabel=t.first),a.iGM(t=a.CRH())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&a.Gf(a.Rgc,7),2&t){let t;a.iGM(t=a.CRH())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.qOj,a.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(a.F$t(),a.YNc(0,S,1,0,"ng-template"))},encapsulation:2}),t})();const Q={translateTab:(0,m.X$)("translateTab",[(0,m.SB)("center, void, left-origin-center, right-origin-center",(0,m.oB)({transform:"none"})),(0,m.SB)("left",(0,m.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,m.SB)("right",(0,m.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,m.eR)("* => left, * => right, left => center, right => center",(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,m.eR)("void => left-origin-center",[(0,m.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,m.eR)("void => right-origin-center",[(0,m.oB)({transform:"translate3d(100%, 0, 0)"}),(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let W=(()=>{class t extends o.Pl{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=h.w.EMPTY,this._leavingSub=h.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,b.O)(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36((0,a.Gpc)(()=>tt)),a.Y36(r.K0))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabBodyHost",""]],features:[a.qOj]}),t})(),X=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=h.w.EMPTY,this._translateTabComplete=new l.xQ,this._onCentering=new a.vpe,this._beforeCentering=new a.vpe,this._afterLeavingCenter=new a.vpe,this._onCentered=new a.vpe(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe((0,w.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(T.Is,8),a.Y36(a.sBO))},t.\u0275dir=a.lG2({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),tt=(()=>{class t extends X{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(T.Is,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&a.Gf(o.Pl,5),2&t){let t;a.iGM(t=a.CRH())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(a.TgZ(0,"div",0,1),a.NdJ("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),a.YNc(2,k,0,0,"ng-template",2),a.qZA()),2&t&&a.Q6J("@translateTab",a.WLB(3,R,e._position,a.VKq(1,x,e.animationDuration)))},directives:[W],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Q.translateTab]}}),t})();const et=new a.OlP("MAT_TABS_CONFIG");let it=0;class nt{}class st{constructor(t){this._elementRef=t}}const ot=(0,c.pj)((0,c.Kr)(st),"primary");let rt=(()=>{class t extends ot{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new a.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=h.w.EMPTY,this._tabLabelSubscription=h.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.vpe,this.focusChange=new a.vpe,this.animationDone=new a.vpe,this.selectedTabChange=new a.vpe(!0),this._groupId=it++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,this.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=(0,y.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=(0,y.su)(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));const e=this._tabBodyWrapper.nativeElement;e.style.minHeight=e.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.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()}focusTab(t){const e=this._tabHeader;e&&(e.focusIndex=t)}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new nt;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,d.T)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}_tabFocusChanged(t,e){t&&(this._tabHeader.focusIndex=e)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(et,8),a.Y36(u.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.qOj]}),t})(),at=(()=>{class t extends rt{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(et,8),a.Y36(u.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,$,5),2&t){let t;a.iGM(t=a.CRH())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(I,5),a.Gf(O,5)),2&t){let t;a.iGM(t=a.CRH())&&(e._tabBodyWrapper=t.first),a.iGM(t=a.CRH())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&a.ekj("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a._Bn([{provide:J,useExisting:t}]),a.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","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(a.TgZ(0,"mat-tab-header",0,1),a.NdJ("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),a.YNc(2,L,4,14,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.YNc(5,N,1,8,"mat-tab-body",5),a.qZA()),2&t&&(a.Q6J("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),a.xp6(2),a.Q6J("ngForOf",e._tabs),a.xp6(1),a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.xp6(2),a.Q6J("ngForOf",e._tabs))},directives:function(){return[gt,r.sg,lt,c.wG,n.kH,r.O5,o.Pl,tt]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class ct{}const ut=(0,c.Id)(ct);let lt=(()=>{class t extends ut{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(a.uIk("aria-disabled",!!e.disabled),a.ekj("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[a.qOj]}),t})();const ht=(0,A.i$)({passive:!0});let dt=(()=>{class t{constructor(t,e,i,n,s,o,r){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=s,this._platform=o,this._animationMode=r,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new l.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new l.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.vpe,this.indexFocused=new a.vpe,s.runOutsideAngular(()=>{(0,p.R)(t.nativeElement,"mouseleave").pipe((0,_.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=(0,y.su)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){(0,p.R)(this._previousPaginator.nativeElement,"touchstart",ht).pipe((0,_.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,p.R)(this._nextPaginator.nativeElement,"touchstart",ht).pipe((0,_.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:(0,g.of)("ltr"),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new n.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),(0,d.T)(t,e,this._items.changes).pipe((0,_.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(i)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,_.R)(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}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(t){if(!(0,v.Vb)(t))switch(t.keyCode){case v.K5:case v.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",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(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:s}=e.elementRef.nativeElement;let o,r;"ltr"==this._getLayoutDirection()?(o=n,r=o+s):(r=this._tabList.nativeElement.offsetWidth-n,o=r-s);const a=this.scrollDistance,c=this.scrollDistance+i;oc&&(this.scrollDistance+=r-c+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_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._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),(0,f.H)(650,100).pipe((0,_.R)((0,d.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(C.rL),a.Y36(T.Is,8),a.Y36(a.R0b),a.Y36(A.t4),a.Y36(u.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,i,n,s,o,r){super(t,e,i,n,s,o,r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,y.Ig)(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(C.rL),a.Y36(T.Is,8),a.Y36(a.R0b),a.Y36(A.t4),a.Y36(u.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{disableRipple:"disableRipple"},features:[a.qOj]}),t})(),gt=(()=>{class t extends pt{constructor(t,e,i,n,s,o,r){super(t,e,i,n,s,o,r)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(C.rL),a.Y36(T.Is,8),a.Y36(a.R0b),a.Y36(A.t4),a.Y36(u.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,lt,4),2&t){let t;a.iGM(t=a.CRH())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(U,7),a.Gf(z,7),a.Gf(F,7),a.Gf(Z,5),a.Gf(B,5)),2&t){let t;a.iGM(t=a.CRH())&&(e._inkBar=t.first),a.iGM(t=a.CRH())&&(e._tabListContainer=t.first),a.iGM(t=a.CRH())&&(e._tabList=t.first),a.iGM(t=a.CRH())&&(e._nextPaginator=t.first),a.iGM(t=a.CRH())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&a.ekj("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.qOj],ngContentSelectors:E,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0,1),a.NdJ("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(t){return e._handleKeydown(t)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return e._onContentChanges()}),a.TgZ(7,"div",7),a.Hsn(8),a.qZA(),a._UZ(9,"mat-ink-bar"),a.qZA(),a.qZA(),a.TgZ(10,"div",8,9),a.NdJ("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),a._UZ(12,"div",2),a.qZA()),2&t&&(a.ekj("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.Q6J("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.xp6(5),a.ekj("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.Q6J("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[c.wG,s.wD,U],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.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;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[r.ez,c.BQ,o.eL,c.si,s.Q8,n.rt],c.BQ]}),t})()},36922:function(t,e,i){"use strict";i.d(e,{gM:function(){return Z},AV:function(){return U}});var n=i(2522),s=i(24621),o=i(61511),r=i(31572),a=i(71522),c=i(4253),u=i(19861),l=i(75842),h=i(55959),d=i(31305),p=i(47930),g=i(48318),f=i(90611),m=i(96673);class b{constructor(t){this.total=t}call(t,e){return e.subscribe(new w(t,this.total))}}class w extends m.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}var _=i(47701),y=i(79996),A=i(56238),v=i(25416),T=i(11353);const C=new Set;let S,E=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):k}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!C.has(t))try{S||(S=document.createElement("style"),S.setAttribute("type","text/css"),document.head.appendChild(S)),S.sheet&&(S.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),C.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(T.t4))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(T.t4))},token:t,providedIn:"root"}),t})();function k(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let x=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new h.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return R((0,u.Eq)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=R((0,u.Eq)(t)).map(t=>this._registerQuery(t).observable);let i=(0,d.aj)(e);return i=(0,p.z)(i.pipe((0,f.q)(1)),i.pipe(t=>t.lift(new b(1)),(0,_.b)(0))),i.pipe((0,y.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new g.y(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe((0,A.O)(e),(0,y.U)(({matches:e})=>({query:t,matches:e})),(0,v.R)(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(E),r.LFG(r.R0b))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(E),r.LFG(r.R0b))},token:t,providedIn:"root"}),t})();function R(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var I=i(26899),O=i(10709),P=i(22526);const D={tooltipState:(0,O.X$)("state",[(0,O.SB)("initial, void, hidden",(0,O.oB)({opacity:0,transform:"scale(0)"})),(0,O.SB)("visible",(0,O.oB)({transform:"scale(1)"})),(0,O.eR)("* => visible",(0,O.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,O.F4)([(0,O.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,O.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,O.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,O.eR)("* => hidden",(0,O.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,O.oB)({opacity:0})))])},M=(0,T.i$)({passive:!0}),L=new r.OlP("mat-tooltip-scroll-strategy"),N={provide:L,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},z=new r.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let F=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,d,p){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=o,this._ariaDescriber=r,this._focusMonitor=a,this._dir=u,this._defaultOptions=d,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 h.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===l.hY&&!(0,l.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=p,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),u.change.pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,u.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).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(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,v.R)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,M)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new I.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,v.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe((0,v.R)(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,v.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,f.q)(1),(0,v.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:n}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===n?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_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 t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,M)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.aV),r.Y36(r.SBq),r.Y36(c.mF),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(T.t4),r.Y36(s.$s),r.Y36(s.tE),r.Y36(void 0),r.Y36(P.Is),r.Y36(void 0),r.Y36(o.K0))},t.\u0275dir=r.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),Z=(()=>{class t extends F{constructor(t,e,i,n,s,o,r,a,c,u,l,h){super(t,e,i,n,s,o,r,a,c,u,l,h),this._tooltipComponent=q}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.aV),r.Y36(r.SBq),r.Y36(c.mF),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(T.t4),r.Y36(s.$s),r.Y36(s.tE),r.Y36(L),r.Y36(P.Is,8),r.Y36(z,8),r.Y36(o.K0))},t.\u0275dir=r.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[r.qOj]}),t})(),B=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new h.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO))},t.\u0275dir=r.lG2({type:t}),t})(),q=(()=>{class t extends B{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36(x))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",function(){return e._handleBodyInteraction()},!1,r.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,r.pYS),2&t&&r.Udp("zoom","visible"===e._visibility?1:null)},features:[r.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(r.TgZ(0,"div",0),r.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),r.ALo(1,"async"),r._uU(2),r.qZA()),2&t){let t;r.ekj("mat-tooltip-handset",null==(t=r.lcZ(1,5,e._isHandset))?null:t.matches),r.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),r.xp6(2),r.Oqu(e.message)}},directives:[o.mk],pipes:[o.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[D.tooltipState]},changeDetection:0}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[N],imports:[[s.rt,o.ez,n.U8,a.BQ],a.BQ,c.ZD]}),t})()},91010:function(t,e,i){"use strict";i.d(e,{GZ:function(){return f},gi:function(){return b},kc:function(){return A},JZ:function(){return y},dp:function(){return _},WX:function(){return v},uo:function(){return p},fQ:function(){return g},Ar:function(){return m},eu:function(){return w}});var n=i(71709),s=i(71522),o=i(19861),r=i(4230),a=i(78512),c=i(31906),u=i(90611),l=i(79996),h=i(31572);const d=(0,s.sb)((0,s.Id)(n.Hs));let p=(()=>{class t extends d{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this.tabIndex=Number(i)||0,this._elementRef.nativeElement.classList.add("mat-tree-node")}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(n._0),h.$8M("tabindex"))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[h._Bn([{provide:n.Hs,useExisting:t}]),h.qOj]}),t})(),g=(()=>{class t extends n.rO{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[h._Bn([{provide:n.rO,useExisting:t}]),h.qOj]}),t})(),f=(()=>{class t extends n.Xx{constructor(t,e,i,n){super(t,e,i),this._elementRef=t,this._tree=e,this._differs=i,this._disabled=!1,this.tabIndex=Number(n)||0,this._elementRef.nativeElement.classList.add("mat-nested-tree-node")}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,o.Ig)(t)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:0}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(n._0),h.Y36(h.ZZ4),h.$8M("tabindex"))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-nested-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[h._Bn([{provide:n.Xx,useExisting:t},{provide:n.Hs,useExisting:t},{provide:n.HI,useExisting:t}]),h.qOj]}),t})(),m=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.s_b),h.Y36(n.HI,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[h._Bn([{provide:n.cu,useExisting:t}])]}),t})(),b=(()=>{class t extends n._0{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-tree"]],viewQuery:function(t,e){if(1&t&&h.Gf(m,7),2&t){let t;h.iGM(t=h.CRH())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[h._Bn([{provide:n._0,useExisting:t}]),h.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&h.GkF(0,0)},directives:[m],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),t})(),w=(()=>{class t extends n.Ud{get recursive(){return this._recursive}set recursive(t){this._recursive=(0,o.Ig)(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[h._Bn([{provide:n.Ud,useExisting:t}]),h.qOj]}),t})(),_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[n.nZ,s.BQ],s.BQ]}),t})();class y{constructor(t,e,i,n){this.transformFunction=t,this.getLevel=e,this.isExpandable=i,this.getChildren=n}_flattenNode(t,e,i,n){const s=this.transformFunction(t,e);if(i.push(s),this.isExpandable(s)){const s=this.getChildren(t);s&&(Array.isArray(s)?this._flattenChildren(s,e,i,n):s.pipe((0,u.q)(1)).subscribe(t=>{this._flattenChildren(t,e,i,n)}))}return i}_flattenChildren(t,e,i,n){t.forEach((s,o)=>{let r=n.slice();r.push(o!=t.length-1),this._flattenNode(s,e+1,i,r)})}flattenNodes(t){let e=[];return t.forEach(t=>this._flattenNode(t,0,e,[])),e}expandFlattenedNodes(t,e){let i=[],n=[];return n[0]=!0,t.forEach(t=>{let s=!0;for(let e=0;e<=this.getLevel(t);e++)s=s&&n[e];s&&i.push(t),this.isExpandable(t)&&(n[this.getLevel(t)+1]=e.isExpanded(t))}),i}}class A extends r.o2{constructor(t,e,i){super(),this._treeControl=t,this._treeFlattener=e,this._flattenedData=new a.X([]),this._expandedData=new a.X([]),this._data=new a.X([]),i&&(this.data=i)}get data(){return this._data.value}set data(t){this._data.next(t),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(t){return(0,c.T)(t.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,l.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class v extends r.o2{constructor(){super(...arguments),this._data=new a.X([])}get data(){return this._data.value}set data(t){this._data.next(t)}connect(t){return(0,c.T)(t.viewChange,this._data).pipe((0,l.U)(()=>this.data))}disconnect(){}}},43490:function(t,e,i){"use strict";i.d(e,{Qb:function(){return be},PW:function(){return Ae}});var n=i(31572),s=i(30269),o=i(10709);function r(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function c(t){switch(t.length){case 0:return new o.ZN;case 1:return t[0];default:return new o.ZE(t)}}function u(t,e,i,n,s={},r={}){const a=[],c=[];let u=-1,l=null;if(n.forEach(t=>{const i=t.offset,n=i==u,h=n&&l||{};Object.keys(t).forEach(i=>{let n=i,c=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,a),c){case o.k1:c=s[i];break;case o.l3:c=r[i];break;default:c=e.normalizeStyleValue(i,n,c,a)}h[n]=c}),n||c.push(h),l=h,u=i}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return c}function l(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&h(i,"start",t)));break;case"done":t.onDone(()=>n(i&&h(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&h(i,"destroy",t)))}}function h(t,e,i){const n=i.totalTime,s=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),o=t._data;return null!=o&&(s._data=o),s}function d(t,e,i,n,s="",o=0,r){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:o,disabled:!!r}}function p(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function g(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,m=(t,e)=>!1,b=(t,e,i)=>[];const w=a();(w||"undefined"!=typeof Element)&&(f=r()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),m=(()=>{if(w||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):m}})(),b=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let E=(()=>{class t{validateStyleProperty(t){return A(t)}matchesElement(t,e){return v(t,e)}containsElement(t,e){return T(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,r=[],a){return new o.ZN(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),k=(()=>{class t{}return t.NOOP=new E,t})();function x(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:R(parseFloat(e[1]),e[2])}function R(t,e){switch(e){case"s":return 1e3*t;default:return t}}function I(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,o="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=R(parseFloat(i[1]),i[2]);const r=i[3];null!=r&&(s=R(parseFloat(r),i[4]));const a=i[5];a&&(o=a)}else n=t;if(!i){let i=!1,o=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:o}}(t,e,i)}function O(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function P(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else O(t,i);return i}function D(t,e,i){return i?e+":"+i+";":""}function M(t){let e="";for(let i=0;i{const s=H(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),a()&&M(t))}function N(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=H(e);t.style[i]=""}),a()&&M(t))}function z(t){return Array.isArray(t)?1==t.length?t[0]:(0,o.vP)(t):t}const F=new RegExp("{{\\s*(.+?)\\s*}}","g");function Z(t){let e=[];if("string"==typeof t){let i;for(;i=F.exec(t);)e.push(i[1]);F.lastIndex=0}return e}function B(t,e,i){const n=t.toString(),s=n.replace(F,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function q(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const U=/-+([a-z0-9])/g;function H(t){return t.replace(U,(...t)=>t[1].toUpperCase())}function j(t,e){return 0===t||0===e}function G(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let o=e[0],r=[];if(n.forEach(t=>{o.hasOwnProperty(t)||r.push(t),o[t]=i[t]}),r.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],o=n[2],r=n[3];e.push(Q(s,r)),"<"!=o[0]||"*"==s&&"*"==r||e.push(Q(r,s))}(t,i,e)):i.push(t),i}const J=new Set(["true","1"]),$=new Set(["false","0"]);function Q(t,e){const i=J.has(t)||$.has(t),n=J.has(e)||$.has(e);return(s,o)=>{let r="*"==t||t==s,a="*"==e||e==o;return!r&&i&&"boolean"==typeof s&&(r=s?J.has(t):$.has(t)),!a&&n&&"boolean"==typeof o&&(a=o?J.has(e):$.has(e)),r&&a}}const W=new RegExp("s*:selfs*,?","g");function X(t,e,i){return new tt(t).build(e,i)}class tt{constructor(t){this._driver=t}build(t,e){const i=new et(e);return this._resetContextStyleTimingState(i),Y(this,z(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,o.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=n||{};if(i.styles.forEach(t=>{if(it(t)){const e=t;Object.keys(e).forEach(t=>{Z(e[t]).forEach(t=>{o.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=q(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Y(this,z(t.animation),e);return{type:1,matchers:K(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:nt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Y(this,t,e)),options:nt(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=Y(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:nt(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return st(I(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=st(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||I(n,e),st(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:(0,o.oB)({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};i.easing&&(t.easing=i.easing),s=(0,o.oB)(t)}e.currentTime+=i.duration+i.delay;const a=this.visitStyle(s,e);a.isEmptyStep=r,n=a}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==o.l3?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(it(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],r=o[i];let a=!0;r&&(s!=n&&s>=r.startTime&&n<=r.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=r.startTime),a&&(o[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=Z(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let o=!1,r=!1,a=0;const c=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(it(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(it(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),u=0;return null!=c&&(n++,u=i.offset=c),r=r||u<0||u>1,o=o||u0&&n{const o=l>0?n==h?1:l*n:s[n],r=o*g;e.currentTime=d+p.delay+r,p.duration=r,this._validateStyleAst(t,e),t.offset=o,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:Y(this,z(t.animation),e),options:nt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:nt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:nt(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(W,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,p(e.collectedStyles,e.currentQuerySelector,{});const r=Y(this,z(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:r,originalSelector:t.selector,options:nt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:I(t.timings,e.errors,!0);return{type:12,animation:Y(this,z(t.animation),e),timings:i,options:null}}}class et{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function it(t){return!Array.isArray(t)&&"object"==typeof t}function nt(t){var e;return t?(t=O(t)).params&&(t.params=(e=t.params)?O(e):null):t={},t}function st(t,e,i){return{duration:t,delay:e,easing:i}}function ot(t,e,i,n,s,o,r=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:o,totalTime:s+o,easing:r,subTimeline:a}}class rt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const at=new RegExp(":enter","g"),ct=new RegExp(":leave","g");function ut(t,e,i,n,s,o={},r={},a,c,u=[]){return(new lt).buildKeyframes(t,e,i,n,s,o,r,a,c,u)}class lt{buildKeyframes(t,e,i,n,s,o,r,a,c,u=[]){c=c||new rt;const l=new dt(t,e,c,n,s,u,[]);l.options=a,l.currentTimeline.setStyles([o],null,l.errors,a),Y(this,i,l);const h=l.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(r).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([r],null,l.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[ot(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?x(i.duration):null,o=null!=i.delay?x(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,o);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),Y(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=ht);const t=x(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Y(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?x(t.options.delay):0;t.steps.forEach(o=>{const r=e.createSubContext(t.options);s&&r.delayNextStep(s),Y(this,o,r),n=Math.max(n,r.currentTimeline.currentTime),i.push(r.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return I(e.params?B(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*s),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?x(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ht);let o=i;const r=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=r.length;let a=null;r.forEach((i,n)=>{e.currentQueryIndex=n;const r=e.createSubContext(t.options,i);s&&r.delayNextStep(s),i===e.element&&(a=r.currentTimeline),Y(this,t.animation,r),r.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,r.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),r=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=r-a;break;case"full":a=i.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const u=c.currentTime;Y(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}}const ht={};class dt{constructor(t,e,i,n,s,o,r,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=o,this.timelines=r,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ht,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new pt(this._driver,e,0),r.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=x(i.duration)),null!=i.delay&&(n.delay=x(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=B(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new dt(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=ht,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new gt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,o){let r=[];if(n&&r.push(this.element),t.length>0){t=(t=t.replace(at,"."+this._enterClassName)).replace(ct,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),r.push(...e)}return s||0!=r.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),r}}class pt{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new pt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||o.l3,this._currentKeyframe[t]=o.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},r=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]=o.l3})):P(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=B(r[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:o.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,r)=>{const a=P(s,!0);Object.keys(a).forEach(i=>{const n=a[i];n==o.k1?t.add(i):n==o.l3&&e.add(i)}),i||(a.offset=r/this.duration),n.push(a)});const s=t.size?q(t.values()):[],r=e.size?q(e.values()):[];if(i){const t=n[0],e=O(t);t.offset=0,e.offset=1,n=[t,e]}return ot(this.element,n,s,r,this.duration,this.startTime,this.easing,!1)}}class gt extends pt{constructor(t,e,i,n,s,o,r=!1){super(t,e,o.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=r,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,r=e/o,a=P(t[0],!1);a.offset=0,s.push(a);const c=P(t[0],!1);c.offset=ft(r),s.push(c);const u=t.length-1;for(let n=1;n<=u;n++){let r=P(t[n],!1);r.offset=ft((e+r.offset*i)/o),s.push(r)}i=o,e=0,n="",t=s}return ot(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function ft(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class mt{}class bt extends mt{normalizePropertyName(t,e){return H(t)}normalizeStyleValue(t,e,i,n){let s="";const o=i.toString().trim();if(wt[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return o+s}}const wt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function _t(t,e,i,n,s,o,r,a,c,u,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:o,toState:n,toStyles:r,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}const yt={};class At{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],o=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,n,s,o,r,a,c,u){const l=[],h=this.ast.options&&this.ast.options.params||yt,d=this.buildStyles(i,r&&r.params||yt,l),g=a&&a.params||yt,f=this.buildStyles(n,g,l),m=new Set,b=new Map,w=new Map,_="void"===n,y={params:Object.assign(Object.assign({},h),g)},A=u?[]:ut(t,e,this.ast.animation,s,o,d,f,y,c,l);let v=0;if(A.forEach(t=>{v=Math.max(t.duration+t.delay,v)}),l.length)return _t(e,this._triggerName,i,n,_,d,f,[],[],b,w,v,l);A.forEach(t=>{const i=t.element,n=p(b,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=p(w,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&m.add(i)});const T=q(m.values());return _t(e,this._triggerName,i,n,_,d,f,A,T,b,w,v)}}class vt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=O(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let o=s[t];o.length>1&&(o=B(o,n,e)),i[t]=o})}}),i}}class Tt{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new vt(t.style,t.options&&t.options.params||{})}),Ct(this.states,"true","1"),Ct(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new At(t,e,this.states))}),this.fallbackTransition=new At(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Ct(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const St=new rt;class Et{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=X(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=u(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let r;const a=new Map;if(s?(r=ut(this._driver,e,s,"ng-enter","ng-leave",{},{},i,St,n),r.forEach(t=>{const e=p(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),r=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,o.l3)})});const u=c(r.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=u,u.onDestroy(()=>this.destroy(t)),this.players.push(u),u}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=d(e,"","","");return l(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const kt=[],xt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Rt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class It{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=O(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const Ot=new It("void");class Pt{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Zt(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const o=p(this._elementListeners,t,[]),r={name:e,phase:i,callback:n};o.push(r);const a=p(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Zt(t,"ng-trigger"),Zt(t,"ng-trigger-"+e),a[e]=Ot),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(r);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),o=new Mt(this.id,e,t);let r=this._engine.statesByElement.get(t);r||(Zt(t,"ng-trigger"),Zt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,r={}));let a=r[e];const c=new It(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),r[e]=c,a||(a=Ot),"void"!==c.value&&a.value===c.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{N(t,i),L(t,n)})}return}const u=p(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let l=s.matchTransition(a.value,c.value,t,c.params),h=!1;if(!l){if(!n)return;l=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:l,fromState:a,toState:c,player:o,isFallbackTransition:h}),h||(Zt(t,"ng-animate-queued"),o.onStart(()=>{Bt(t,"ng-animate-queued")})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(o);t>=0&&i.splice(t,1)}}),this.players.push(o),u.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const o=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&o.push(i)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&c(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const o=this._triggers[s].fallbackTransition,r=i[s]||Ot,a=new It("void"),c=new Mt(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:o,fromState:r,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==xt||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Zt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(e=>{if(e.name==i.triggerName){const n=d(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,l(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Dt{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new Pt(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Zt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Bt(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(Lt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return Lt(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return c(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=xt,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?c(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new rt,n=[],s=new Map,r=[],a=new Map,u=new Map,l=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i="ng-enter"+b++;m.set(e,i),t.forEach(t=>Zt(t,i))});const w=[],_=new Set,y=new Set;for(let o=0;o_.add(t)):y.add(t))}const A=new Map,v=Ft(g,Array.from(_));v.forEach((t,e)=>{const i="ng-leave"+b++;A.set(e,i),t.forEach(t=>Zt(t,i))}),t.push(()=>{f.forEach((t,e)=>{const i=m.get(e);t.forEach(t=>Bt(t,i))}),v.forEach((t,e)=>{const i=A.get(e);t.forEach(t=>Bt(t,i))}),w.forEach(t=>{this.processLeaveNode(t)})});const T=[],C=[];for(let o=this._namespaceList.length-1;o>=0;o--)this._namespaceList[o].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(T.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const o=!d||!this.driver.containsElement(d,s),c=A.get(s),h=m.get(s),g=this._buildInstruction(t,i,h,c,o);if(g.errors&&g.errors.length)C.push(g);else{if(o)return e.onStart(()=>N(s,g.fromStyles)),e.onDestroy(()=>L(s,g.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>N(s,g.fromStyles)),e.onDestroy(()=>L(s,g.toStyles)),void n.push(e);g.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,g.timelines),r.push({instruction:g,player:e,element:s}),g.queriedElements.forEach(t=>p(a,t,[]).push(e)),g.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=u.get(e);t||u.set(e,t=new Set),i.forEach(e=>t.add(e))}}),g.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=l.get(e);n||l.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(C.length){const t=[];C.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),T.forEach(t=>t.destroy()),this.reportError(t)}const S=new Map,E=new Map;r.forEach(t=>{const e=t.element;i.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,S))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{p(S,e,[]).push(t),t.destroy()})});const k=w.filter(t=>Ht(t,u,l)),x=new Map;zt(x,this.driver,y,l,o.l3).forEach(t=>{Ht(t,u,l)&&k.push(t)});const R=new Map;f.forEach((t,e)=>{zt(R,this.driver,new Set(t),u,o.k1)}),k.forEach(t=>{const e=x.get(t),i=R.get(t);x.set(t,Object.assign(Object.assign({},e),i))});const I=[],O=[],P={};r.forEach(t=>{const{element:e,player:o,instruction:r}=t;if(i.has(e)){if(h.has(e))return o.onDestroy(()=>L(e,r.toStyles)),o.disabled=!0,o.overrideTotalTime(r.totalTime),void n.push(o);let t=P;if(E.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=E.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>E.set(e,t))}const i=this._buildAnimation(o.namespaceId,r,S,s,R,x);if(o.setRealPlayer(i),t===P)I.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=c(e)),n.push(o)}}else N(e,r.fromStyles),o.onDestroy(()=>L(e,r.toStyles)),O.push(o),h.has(e)&&n.push(o)}),O.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=c(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let o=0;o!t.destroyed);n.length?qt(this,t,n):this.processLeaveNode(t)}return w.length=0,I.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),I}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&o.push(e)})}}return(i||n)&&(o=o.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),o}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const r of e.timelines){const t=r.element,a=t!==n,c=p(i,t,[]);this._getPreviousPlayers(t,a,s,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}N(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,r){const a=e.triggerName,l=e.element,h=[],d=new Set,g=new Set,f=e.timelines.map(e=>{const c=e.element;d.add(c);const p=c.__ng_removed;if(p&&p.removedBeforeQueried)return new o.ZN(e.duration,e.delay);const f=c!==l,m=function(t){const e=[];return Ut(t,e),e}((i.get(c)||kt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===c),b=s.get(c),w=r.get(c),_=u(0,this._normalizer,0,e.keyframes,b,w),y=this._buildPlayer(e,_,m);if(e.subTimeline&&n&&g.add(c),f){const e=new Mt(t,a,c);e.setRealPlayer(y),h.push(e)}return y});h.forEach(t=>{p(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),d.forEach(t=>Zt(t,"ng-animating"));const m=c(f);return m.onDestroy(()=>{d.forEach(t=>Bt(t,"ng-animating")),L(l,e.toStyles)}),g.forEach(t=>{p(n,t,[]).push(m)}),m}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new o.ZN(t.duration,t.delay)}}class Mt{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new o.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>l(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){p(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Lt(t){return t&&1===t.nodeType}function Nt(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function zt(t,e,i,n,s){const o=[];i.forEach(t=>o.push(Nt(t)));const r=[];n.forEach((i,n)=>{const o={};i.forEach(t=>{const i=o[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=Rt,r.push(n))}),t.set(n,o)});let a=0;return i.forEach(t=>Nt(t,o[a++])),r}function Ft(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;function o(t){if(!t)return 1;let e=s.get(t);if(e)return e;const r=t.parentNode;return e=i.has(r)?r:n.has(r)?1:o(r),s.set(t,e),e}return e.forEach(t=>{const e=o(t);1!==e&&i.get(e).push(t)}),i}function Zt(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Bt(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function qt(t,e,i){c(i).onDone(()=>t.processLeaveNode(e))}function Ut(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class jt{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Dt(t,e,i),this._timelineEngine=new Et(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const o=t+"-"+n;let r=this._triggerCache[o];if(!r){const t=[],e=X(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);r=function(t,e){return new Tt(t,e)}(n,e),this._triggerCache[o]=r}this._transitionEngine.registerTrigger(e,n,r)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=g(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=g(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Gt(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Vt(e[0]),e.length>1&&(n=Vt(e[e.length-1]))):e&&(i=Vt(e)),i||n?new Yt(t,i,n):null}let Yt=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&L(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(L(this._element,this._initialStyles),this._endStyles&&(L(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(N(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(N(this._element,this._endStyles),this._endStyles=null),L(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Vt(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=ee(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Xt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=ee(t,"").split(","),n=Wt(i,e);n>=0&&(i.splice(n,1),te(t,"",i.join(",")))}(this._element,this._name))}}function $t(t,e,i){te(t,"PlayState",i,Qt(t,e))}function Qt(t,e){const i=ee(t,"");return i.indexOf(",")>0?Wt(i.split(","),e):Wt([i],e)}function Wt(t,e){for(let i=0;i=0)return i;return-1}function Xt(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function te(t,e,i,n){const s="animation"+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function ee(t,e){return t.style["animation"+e]||""}class ie{constructor(t,e,i,n,s,o,r,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=r,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Jt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:V(this.element,i))})}this.currentSnapshot=t}}class ne extends o.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=S(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class se{constructor(){this._count=0}validateStyleProperty(t){return A(t)}matchesElement(t,e){return v(t,e)}containsElement(t,e){return T(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>S(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const o=document.createElement("style");return o.textContent=n,o}animate(t,e,i,n,s,o=[],r){const a=o.filter(t=>t instanceof ie),c={};j(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=G(t,e,c));if(0==i)return new ne(t,u);const l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);(function(t){var e;const i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(h);const d=Gt(t,e),p=new ie(t,e,l,i,n,s,u,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class oe{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:V(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class re{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ae().toString()),this._cssKeyframesDriver=new se}validateStyleProperty(t){return A(t)}matchesElement(t,e){return v(t,e)}containsElement(t,e){return T(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,o=[],r){if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,o);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const c={},u=o.filter(t=>t instanceof oe);j(i,n)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=Gt(t,e=G(t,e=e.map(t=>P(t,!1)),c));return new oe(t,e,a,l)}}function ae(){return r()&&Element.prototype.animate||{}}var ce=i(61511);let ue=(()=>{class t extends o._j{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?(0,o.vP)(t):t;return de(this._renderer,null,e,"register",[i]),new le(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.FYo),n.LFG(ce.K0))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class le extends o.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new he(this._id,t,e||{},this._renderer)}}class he{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return de(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function de(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let pe=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new ge("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(o),new fe(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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 t.\u0275fac=function(e){return new(e||t)(n.LFG(n.FYo),n.LFG(jt),n.LFG(n.R0b))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class ge{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class fe extends ge{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let me=(()=>{class t extends jt{constructor(t,e,i){super(t.body,e,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(ce.K0),n.LFG(k),n.LFG(mt))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();const be=new n.OlP("AnimationModuleType"),we=[{provide:o._j,useClass:ue},{provide:mt,useFactory:function(){return new bt}},{provide:jt,useClass:me},{provide:n.FYo,useFactory:function(t,e,i){return new pe(t,e,i)},deps:[s.se,jt,n.R0b]}],_e=[{provide:k,useFactory:function(){return"function"==typeof ae()?new re:new se}},{provide:be,useValue:"BrowserAnimations"},...we],ye=[{provide:k,useClass:E},{provide:be,useValue:"NoopAnimations"},...we];let Ae=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?ye:_e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:_e,imports:[s.b2]}),t})()},30269:function(t,e,i){"use strict";i.d(e,{b2:function(){return F},H7:function(){return D},Dx:function(){return B},q6:function(){return N},se:function(){return T}});var n=i(61511),s=i(31572);class o extends n.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class r extends o{static makeCurrent(){(0,n.HT)(new r)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(c=c||document.querySelector("base"),c?c.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,n.Mx)(document.cookie,t)}}let a,c=null;const u=new s.OlP("TRANSITION_ID"),l=[{provide:s.ip1,useFactory:function(t,e,i){return()=>{i.get(s.CZH).donePromise.then(()=>{const i=(0,n.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[u,n.K0,s.zs3],multi:!0}];class h{static init(){(0,s.VLi)(new h)}addToWindow(t){s.dqk.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let i=e.length,n=!1;const o=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(o)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:i?(0,n.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new s.OlP("EventManagerPlugins");let g=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),b=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,i){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,i.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(w),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,i)=>{this._addStylesToHost(t,i,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(w))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function w(t){(0,n.q)().remove(t)}const _={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/"},y=/%COMP%/g;function A(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let T=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new C(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new S(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case s.ifc.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=A(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(g),s.LFG(b),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class C{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(_[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=_[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=_[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,i,n&s.JOm.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(i)):this.eventManager.addEventListener(t,e,v(i))}}class S extends C{constructor(t,e,i,n){super(t),this.component=i;const s=A(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(y,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(y,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class E extends C{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=A(n.id,n.styles,[]);for(let o=0;o{class t extends f{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const x=["alt","control","meta","shift"],R={"\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"},I={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"},O={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let P=(()=>{class t extends f{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const o=t.parseEventName(i),r=t.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.q)().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let o="";if(x.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),o+=t+".")}),o+=s,0!=i.length||0===s.length)return null;const r={};return r.domEventName=n,r.fullKey=o,r}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&I.hasOwnProperty(e)&&(e=I[e]))}return R[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),x.forEach(n=>{n!=i&&(0,O[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(L)},token:t,providedIn:"root"}),t})();function M(t){return new L(t.get(n.K0))}let L=(()=>{class t extends D{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return M((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const N=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:n.bD},{provide:s.g9A,useValue:function(){r.makeCurrent(),h.init()},multi:!0},{provide:n.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),z=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:p,useClass:k,multi:!0,deps:[n.K0,s.R0b,s.Lbi]},{provide:p,useClass:P,multi:!0,deps:[n.K0]},[],{provide:T,useClass:T,deps:[g,b,s.AFp]},{provide:s.FYo,useExisting:T},{provide:m,useExisting:b},{provide:b,useClass:b,deps:[n.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:g,useClass:g,deps:[p,s.R0b]},{provide:n.JF,useClass:d,deps:[]},[]];let F=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.AFp,useValue:e.appId},{provide:u,useExisting:s.AFp},l]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:z,imports:[n.ez,s.hGG]}),t})();function Z(){return new B((0,s.LFG)(n.K0))}let B=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:Z,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},57629:function(t,e,i){"use strict";i.d(e,{gz:function(){return Yt},m2:function(){return U},OD:function(){return q},GZ:function(){return vi},wN:function(){return ni},F0:function(){return fi},rH:function(){return mi},yS:function(){return bi},Bz:function(){return Ri},lC:function(){return _i}});var n=i(61511),s=i(31572),o=i(19764),r=i(40878),a=i(78512),c=i(31305),u=i(48318),l=i(39665),h=i(47930),d=i(31450),p=i(70653),g=i(42875),f=i(55959),m=i(96673);function b(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new w(t,e,i))}}class w{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new _(t,this.accumulator,this.seed,this.hasSeed))}}class _ extends m.L{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}var y=i(43835),A=i(98402);function v(t){return function(e){return 0===t?(0,p.c)():e.lift(new T(t))}}class T{constructor(t){if(this.total=t,this.total<0)throw new A.W}call(t,e){return e.subscribe(new C(t,this.total))}}class C extends m.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;st.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function ut(t){return Array.prototype.concat.apply([],t)}function lt(t){return t.length>0?t[t.length-1]:null}function ht(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function dt(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,r.of)(t)}const pt={exact:function t(e,i,n){if(!vt(e.segments,i.segments))return!1;if(!wt(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const s in i.children){if(!e.children[s])return!1;if(!t(e.children[s],i.children[s],n))return!1}return!0},subset:mt},gt={exact:function(t,e){return at(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>ct(t[i],e[i]))},ignored:()=>!0};function ft(t,e,i){return pt[i.paths](t.root,e.root,i.matrixParams)&>[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function mt(t,e,i){return bt(t,e,e.segments,i)}function bt(t,e,i,n){if(t.segments.length>i.length){const s=t.segments.slice(0,i.length);return!!vt(s,i)&&!e.hasChildren()&&!!wt(s,i,n)}if(t.segments.length===i.length){if(!vt(t.segments,i))return!1;if(!wt(t.segments,i,n))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!mt(t.children[i],e.children[i],n))return!1}return!0}{const s=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!!vt(t.segments,s)&&!!wt(t.segments,s,n)&&!!t.children.primary&&bt(t.children.primary,e,o,n)}}function wt(t,e,i){return e.every((e,n)=>gt[i](t[n].parameters,e.parameters))}class _t{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=st(this.queryParams)),this._queryParamMap}toString(){return St.serialize(this)}}class yt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ht(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Et(this)}}class At{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=st(this.parameters)),this._parameterMap}toString(){return Dt(this)}}function vt(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class Tt{}class Ct{parse(t){const e=new Ft(t);return new _t(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${kt(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Rt(e)}=${Rt(t)}`).join("&"):`${Rt(e)}=${Rt(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const St=new Ct;function Et(t){return t.segments.map(t=>Dt(t)).join("/")}function kt(t,e){if(!t.hasChildren())return Et(t);if(e){const e=t.children.primary?kt(t.children.primary,!1):"",i=[];return ht(t.children,(t,e)=>{"primary"!==e&&i.push(`${e}:${kt(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return ht(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),ht(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>"primary"===i?[kt(t.children.primary,!1)]:[`${i}:${kt(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Et(t)}/${e[0]}`:`${Et(t)}/(${e.join("//")})`}}function xt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rt(t){return xt(t).replace(/%3B/gi,";")}function It(t){return xt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ot(t){return decodeURIComponent(t)}function Pt(t){return Ot(t.replace(/\+/g,"%20"))}function Dt(t){return`${It(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${It(t)}=${It(e[t])}`).join("")}`;var e}const Mt=/^[^\/()?;=#]+/;function Lt(t){const e=t.match(Mt);return e?e[0]:""}const Nt=/^[^=?&#]+/,zt=/^[^?&#]+/;class Ft{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new yt([],{}):new yt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new yt(t,e)),i}parseSegment(){const t=Lt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new At(Ot(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Lt(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Lt(this.remaining);t&&(i=t,this.capture(i))}t[Ot(e)]=Ot(i)}parseQueryParam(t){const e=function(t){const e=t.match(Nt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(zt);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=Pt(e),s=Pt(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Lt(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const o=this.parseChildren();e[s]=1===Object.keys(o).length?o.primary:new yt([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Zt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Bt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Bt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=qt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return qt(t,this._root).map(t=>t.value)}}function Bt(t,e){if(t===e.value)return e;for(const i of e.children){const e=Bt(t,i);if(e)return e}return null}function qt(t,e){if(t===e.value)return[e];for(const i of e.children){const n=qt(t,i);if(n.length)return n.unshift(e),n}return[]}class Ut{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ht(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class jt extends Zt{constructor(t,e){super(t),this.snapshot=e,$t(this,t)}toString(){return this.snapshot.toString()}}function Gt(t,e){const i=function(t,e){const i=new Kt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Jt("",new Ut(i,[]))}(t,e),n=new a.X([new At("",{})]),s=new a.X({}),o=new a.X({}),r=new a.X({}),c=new a.X(""),u=new Yt(n,s,r,c,o,"primary",e,i.root);return u.snapshot=i.root,new jt(new Ut(u,[]),i)}class Yt{constructor(t,e,i,n,s,o,r,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,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,x.U)(t=>st(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,x.U)(t=>st(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Vt(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Kt{constructor(t,e,i,n,s,o,r,a,c,u,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}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=st(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=st(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Jt extends Zt{constructor(t,e){super(e),this.url=t,$t(this,e)}toString(){return Qt(this._root)}}function $t(t,e){e.value._routerState=t,e.children.forEach(e=>$t(t,e))}function Qt(t){const e=t.children.length>0?` { ${t.children.map(Qt).join(", ")} } `:"";return`${t.value}${e}`}function Wt(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,at(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),at(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iat(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Xt(t.parent,e.parent))}function te(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return te(t,e,n);return te(t,e)})}(t,e,i);return new Ut(n,s)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const t=i.route;return ee(e,t),t}}const i=new Yt(new a.X((n=e.value).url),new a.X(n.params),new a.X(n.queryParams),new a.X(n.fragment),new a.X(n.data),n.outlet,n.component,n),s=e.children.map(e=>te(t,e));return new Ut(i,s)}var n}function ee(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new _t(i.root===t?e:oe(i.root,t,e),o,s)}function oe(t,e,i){const n={};return ht(t.children,(t,s)=>{n[s]=t===e?i:oe(t,e,i)}),new yt(t.segments,n)}class re{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&ie(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(ne);if(n&&n!==lt(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ae{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function ce(t,e,i){if(t||(t=new yt([],{})),0===t.segments.length&&t.hasChildren())return ue(t,e,i);const n=function(t,e,i){let n=0,s=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return o;const e=t.segments[s],r=i[n];if(ne(r))break;const a=`${r}`,c=n0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!pe(a,c,e))return o;n+=2}else{if(!pe(a,{},e))return o;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=ce(t.children[n],e,i))}),ht(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new yt(t.segments,s)}}function le(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=le(new yt([],{}),0,t))}),e}function de(t){const e={};return ht(t,(t,i)=>e[i]=`${t}`),e}function pe(t,e,i){return t==i.path&&at(e,i.parameters)}class ge{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Wt(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=Ht(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),ht(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,s=Ht(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const n=Ht(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new et(t.value.snapshot))}),t.children.length&&this.forwardEvent(new X(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(Wt(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),fe(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function fe(t){Wt(t.value),t.children.forEach(fe)}class me{constructor(t,e){this.routes=t,this.module=e}}function be(t){return"function"==typeof t}function we(t){return t instanceof _t}const _e=Symbol("INITIAL_VALUE");function ye(){return(0,R.w)(t=>(0,c.aj)(t.map(t=>t.pipe((0,I.q)(1),(0,O.O)(_e)))).pipe(b((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==_e)return t;if(n===_e&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||we(n))return n}return t},t)},_e),(0,y.h)(t=>t!==_e),(0,x.U)(t=>we(t)?t:!0===t),(0,I.q)(1)))}let Ae=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[_i]},encapsulation:2}),t})();function ve(t,e=""){for(let i=0;iEe(t)===e);return i.push(...t.filter(t=>Ee(t)!==e)),i}const xe={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Re(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},xe):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||rt)(i,t,e);if(!s)return Object.assign({},xe);const o={};ht(s.posParams,(t,e)=>{o[e]=t.path});const r=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:r,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function Ie(t,e,i,n,s="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>Oe(t,e,i)&&"primary"!==Ee(i))}(t,i,n)){const s=new yt(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const o of i)if(""===o.path&&"primary"!==Ee(o)){const i=new yt([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[Ee(o)]=i}return s}(t,e,n,new yt(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>Oe(t,e,i))}(t,i,n)){const o=new yt(t.segments,function(t,e,i,n,s,o){const r={};for(const a of n)if(Oe(t,i,a)&&!s[Ee(a)]){const i=new yt([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===o?t.segments.length:e.length,r[Ee(a)]=i}return Object.assign(Object.assign({},s),r)}(t,e,i,n,t.children,s));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}const o=new yt(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}function Oe(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Pe(t,e,i,n){return!!(Ee(t)===n||"primary"!==n&&Oe(e,i,t))&&("**"===t.path||Re(e,t,i).matched)}function De(t,e,i){return 0===e.length&&!t.children[i]}class Me{constructor(t){this.segmentGroup=t||null}}class Le{constructor(t){this.urlTree=t}}function Ne(t){return new u.y(e=>e.error(new Me(t)))}function ze(t){return new u.y(e=>e.error(new Le(t)))}function Fe(t){return new u.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ze{constructor(t,e,i,n,o){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=Ie(this.urlTree.root,[],[],this.config).segmentGroup,e=new yt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,"primary").pipe((0,x.U)(t=>this.createUrlTree(Be(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,P.K)(t=>{if(t instanceof Le)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Me)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe((0,x.U)(e=>this.createUrlTree(Be(e),t.queryParams,t.fragment))).pipe((0,P.K)(t=>{if(t instanceof Me)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new yt([],{primary:t}):t;return new _t(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe((0,x.U)(t=>new yt([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const s of Object.keys(i.children))"primary"===s?n.unshift(s):n.push(s);return(0,o.D)(n).pipe((0,D.b)(n=>{const s=i.children[n],o=ke(e,n);return this.expandSegmentGroup(t,o,s,n).pipe((0,x.U)(t=>({segment:t,outlet:n})))}),b((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?(0,y.h)((e,i)=>t(e,i,n)):k.y,v(1),i?(0,E.d)(e):(0,S.T)(()=>new l.K))}())}expandSegment(t,e,i,n,s,a){return(0,o.D)(i).pipe((0,D.b)(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,s,a).pipe((0,P.K)(t=>{if(t instanceof Me)return(0,r.of)(null);throw t}))),(0,M.P)(t=>!!t),(0,P.K)((t,i)=>{if(t instanceof l.K||"EmptyError"===t.name){if(De(e,n,s))return(0,r.of)(new yt([],{}));throw new Me(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,s,o,r){return Pe(n,e,s,o)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,o):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o):Ne(e):Ne(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?ze(s):this.lineralizeSegments(i,s).pipe((0,L.zg)(i=>{const s=new yt(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){const{matched:r,consumedSegments:a,lastChild:c,positionalParamSegments:u}=Re(e,n,s);if(!r)return Ne(e);const l=this.applyRedirectCommands(a,n.redirectTo,u);return n.redirectTo.startsWith("/")?ze(l):this.lineralizeSegments(n,l).pipe((0,L.zg)(n=>this.expandSegment(t,e,i,n.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,i,n,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?(0,r.of)(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe((0,x.U)(t=>(i._loadedConfig=t,new yt(n,{})))):(0,r.of)(new yt(n,{}));const{matched:o,consumedSegments:a,lastChild:c}=Re(e,i,n);if(!o)return Ne(e);const u=n.slice(c);return this.getChildConfig(t,i,n).pipe((0,L.zg)(t=>{const n=t.module,o=t.routes,{segmentGroup:c,slicedSegments:l}=Ie(e,a,u,o),h=new yt(c.segments,c.children);if(0===l.length&&h.hasChildren())return this.expandChildren(n,o,h).pipe((0,x.U)(t=>new yt(a,t)));if(0===o.length&&0===l.length)return(0,r.of)(new yt(a,{}));const d=Ee(i)===s;return this.expandSegment(n,h,o,l,d?"primary":s,!0).pipe((0,x.U)(t=>new yt(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?(0,r.of)(new me(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,r.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe((0,L.zg)(i=>i?this.configLoader.load(t.injector,e).pipe((0,x.U)(t=>(e._loadedConfig=t,t))):function(t){return new u.y(e=>e.error(ot(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,r.of)(new me([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;if(!n||0===n.length)return(0,r.of)(!0);const s=n.map(n=>{const s=t.get(n);let o;if(function(t){return t&&be(t.canLoad)}(s))o=s.canLoad(e,i);else{if(!be(s))throw new Error("Invalid CanLoad guard");o=s(e,i)}return dt(o)});return(0,r.of)(s).pipe(ye(),(0,N.b)(t=>{if(!we(t))return;const e=ot(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,x.U)(t=>!0===t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return(0,r.of)(i);if(n.numberOfChildren>1||!n.children.primary)return Fe(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new _t(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return ht(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let o={};return ht(e.children,(e,s)=>{o[s]=this.createSegmentGroup(t,e,i,n)}),new yt(s,o)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function Be(t){const e={};for(const i of Object.keys(t.children)){const n=Be(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new yt(t.segments.concat(e.segments),e.children)}return t}(new yt(t.segments,e))}class qe{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ue{constructor(t,e){this.component=t,this.route=e}}function He(t,e,i){const n=t._root;return Ge(n,e?e._root:null,i,[n.value])}function je(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Ge(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ht(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,r=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!vt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!vt(t.url,e.url)||!at(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xt(t,e)||!at(t.queryParams,e.queryParams);case"paramsChange":default:return!Xt(t,e)}}(r,o,o.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new qe(n)):(o.data=r.data,o._resolvedData=r._resolvedData),Ge(t,e,o.component?a?a.children:null:i,n,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Ue(a.outlet.component,r))}else r&&Ye(e,a,s),s.canActivateChecks.push(new qe(n)),Ge(t,null,o.component?a?a.children:null:i,n,s)}(t,o[t.value.outlet],i,n.concat([t.value]),s),delete o[t.value.outlet]}),ht(o,(t,e)=>Ye(t,i.getContext(e),s)),s}function Ye(t,e,i){const n=Ht(t),s=t.value;ht(n,(t,n)=>{Ye(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Ue(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Ve{}function Ke(t){return new u.y(e=>e.error(t))}class Je{constructor(t,e,i,n,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=Ie(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;const i=new Kt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Ut(i,e),s=new Jt(this.url,n);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=Vt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const n=e.children[s],o=ke(t,s),r=this.processSegmentGroup(o,n,s);if(null===r)return null;i.push(...r)}const n=Qe(i);return n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,i,n);if(null!==t)return t}return De(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!Pe(t,e,i,n))return null;let s,o=[],r=[];if("**"===t.path){const n=i.length>0?lt(i).parameters:{};s=new Kt(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ti(t),Ee(t),t.component,t,We(e),Xe(e)+i.length,ei(t))}else{const n=Re(e,t,i);if(!n.matched)return null;o=n.consumedSegments,r=i.slice(n.lastChild),s=new Kt(o,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ti(t),Ee(t),t.component,t,We(e),Xe(e)+o.length,ei(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=Ie(e,o,r,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new Ut(s,t)]}if(0===a.length&&0===u.length)return[new Ut(s,[])];const l=Ee(t)===n,h=this.processSegment(a,c,u,l?"primary":n);return null===h?null:[new Ut(s,h)]}}function $e(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Qe(t){const e=[],i=new Set;for(const n of t){if(!$e(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),i.add(t)):e.push(n)}for(const n of i){const t=Qe(n.children);e.push(new Ut(n.value,t))}return e.filter(t=>!i.has(t))}function We(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Xe(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function ti(t){return t.data||{}}function ei(t){return t.resolve||{}}function ii(t){return(0,R.w)(e=>{const i=t(e);return i?(0,o.D)(i).pipe((0,x.U)(()=>e)):(0,r.of)(e)})}class ni{}class si extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const oi=new s.OlP("ROUTES");class ri{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe((0,x.U)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new me(ut(n.injector.get(oi,void 0,s.XFs.Self|s.XFs.Optional)).map(Se),n)}),(0,P.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new g.c(i,()=>new f.xQ).pipe((0,z.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):dt(t()).pipe((0,L.zg)(t=>t instanceof s.YKP?(0,r.of)(t):(0,o.D)(this.compiler.compileModuleAsync(t))))}}class ai{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ci,this.attachRef=null}}class ci{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new ai,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class ui{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function li(t){throw t}function hi(t,e,i){return e.parse("/")}function di(t,e){return(0,r.of)(null)}const pi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let fi=(()=>{class t{constructor(t,e,i,n,o,r,c,u){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new f.xQ,this.errorHandler=li,this.malformedUriErrorHandler=hi,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:di,afterPreactivation:di},this.urlHandlingStrategy=new ui,this.routeReuseStrategy=new si,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(s.h0i),this.console=o.get(s.c2e);const l=o.get(s.R0b);this.isNgZoneEnabled=l instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new _t(new yt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ri(r,c,t=>this.triggerEvent(new $(t)),t=>this.triggerEvent(new Q(t))),this.routerState=Gt(this.currentUrlTree,this.rootComponentType),this.transitions=new a.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()}setupNavigations(t){const e=this.events;return t.pipe((0,y.h)(t=>0!==t.id),(0,x.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,R.w)(t=>{let i=!1,n=!1;return(0,r.of)(t).pipe((0,N.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,R.w)(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,r.of)(t).pipe((0,R.w)(t=>{const i=this.transitions.getValue();return e.next(new q(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?p.E:Promise.resolve(t)}),(n=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,a=this.config,(0,R.w)(t=>function(t,e,i,n,s){return new Ze(t,e,i,n,s).apply()}(n,s,o,t.extractedUrl,a).pipe((0,x.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,N.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return(0,L.zg)(o=>function(t,e,i,n,s="emptyOnly",o="legacy"){try{const a=new Je(t,e,i,n,s,o).recognize();return null===a?Ke(new Ve):(0,r.of)(a)}catch(a){return Ke(a)}}(t,e,o.urlAfterRedirects,i(o.urlAfterRedirects),n,s).pipe((0,x.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,N.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const i=new G(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,o,a;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:o,extras:a}=t,c=new q(i,this.serializeUrl(n),s,o);e.next(c);const u=Gt(n,this.rootComponentType).snapshot;return(0,r.of)(Object.assign(Object.assign({},t),{targetSnapshot:u,urlAfterRedirects:n,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.E}),ii(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,N.b)(t=>{const e=new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,x.U)(t=>Object.assign(Object.assign({},t),{guards:He(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,L.zg)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:c}}=i;return 0===c.length&&0===a.length?(0,r.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return(0,o.D)(t).pipe((0,L.zg)(t=>function(t,e,i,n,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,r.of)(!0);const a=o.map(o=>{const r=je(o,e,s);let a;if(function(t){return t&&be(t.canDeactivate)}(r))a=dt(r.canDeactivate(t,e,i,n));else{if(!be(r))throw new Error("Invalid CanDeactivate guard");a=dt(r(t,e,i,n))}return a.pipe((0,M.P)())});return(0,r.of)(a).pipe(ye())}(t.component,t.route,i,e,n)),(0,M.P)(t=>!0!==t,!0))}(c,n,s,t).pipe((0,L.zg)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return(0,o.D)(e).pipe((0,D.b)(e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new W(t)),(0,r.of)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new tt(t)),(0,r.of)(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>(0,d.P)(()=>{const s=e.guards.map(s=>{const o=je(s,e.node,i);let r;if(function(t){return t&&be(t.canActivateChild)}(o))r=dt(o.canActivateChild(n,t));else{if(!be(o))throw new Error("Invalid CanActivateChild guard");r=dt(o(n,t))}return r.pipe((0,M.P)())});return(0,r.of)(s).pipe(ye())}));return(0,r.of)(s).pipe(ye())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return(0,r.of)(!0);const s=n.map(n=>(0,d.P)(()=>{const s=je(n,e,i);let o;if(function(t){return t&&be(t.canActivate)}(s))o=dt(s.canActivate(e,t));else{if(!be(s))throw new Error("Invalid CanActivate guard");o=dt(s(e,t))}return o.pipe((0,M.P)())}));return(0,r.of)(s).pipe(ye())}(t,e.route,i))),(0,M.P)(t=>!0!==t,!0))}(n,a,t,e):(0,r.of)(i)),(0,x.U)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,N.b)(t=>{if(we(t.guardsResult)){const e=ot(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new V(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,y.h)(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),ii(t=>{if(t.guards.canActivateChecks.length)return(0,r.of)(t).pipe((0,N.b)(t=>{const e=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,R.w)(t=>{let e=!1;return(0,r.of)(t).pipe((i=this.paramsInheritanceStrategy,n=this.ngModule.injector,(0,L.zg)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return(0,r.of)(t);let a=0;return(0,o.D)(s).pipe((0,D.b)(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return(0,r.of)({});const a={};return(0,o.D)(s).pipe((0,L.zg)(s=>function(t,e,i,n){const s=je(t,e,n);return dt(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe((0,N.b)(t=>{a[s]=t}))),v(1),(0,L.zg)(()=>Object.keys(a).length===s.length?(0,r.of)(a):p.E))}(t._resolve,t,e,n).pipe((0,x.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Vt(t,i).resolve),null)))}(t.route,e,i,n)),(0,N.b)(()=>a++),v(1),(0,L.zg)(e=>a===s.length?(0,r.of)(t):p.E))})),(0,N.b)({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var i,n}),(0,N.b)(t=>{const e=new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),ii(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,x.U)(t=>{const e=function(t,e,i){const n=te(t,e._root,i?i._root:void 0);return new jt(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,N.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,a=this.routeReuseStrategy,c=t=>this.triggerEvent(t),(0,x.U)(t=>(new ge(a,t.targetRouterState,t.currentRouterState,c).activate(s),t))),(0,N.b)({next(){i=!0},complete(){i=!0}}),(0,F.x)(()=>{i||n||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),(0,P.K)(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=we(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new H(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new j(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(o){t.reject(o)}}var s;return p.E}));var s,a,c}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){ve(t),this.config=t.map(Se),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(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:o,preserveFragment:r}=e,a=i||this.routerState.root,c=r?this.currentUrlTree.fragment:s;let u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=n||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,i,n,s){if(0===i.length)return se(e.root,e.root,e,n,s);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new re(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return ht(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new re(i,e,n)}(i);if(o.toRoot())return se(e.root,new yt([],{}),e,n,s);const r=function(t,e,i){if(t.isAbsolute)return new ae(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new ae(t,t===e.root,0)}const n=ie(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,o=i;for(;o>s;){if(o-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new ae(n,!1,s-o)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(o,e,t),a=r.processChildren?ue(r.segmentGroup,r.index,o.commands):ce(r.segmentGroup,r.index,o.commands);return se(r.segmentGroup,a,e,n,s)}(a,this.currentUrlTree,t,u,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const i=we(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(n,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new U(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){if(this.disposed)return Promise.resolve(!1);const o=this.getTransition(),r="imperative"!==e&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===t.toString();if(r&&a)return Promise.resolve(!0);let c,u,l;s?(c=s.resolve,u=s.reject,l=s.promise):l=new Promise((t,e)=>{c=t,u=e});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const i=this.urlSerializer.serialize(t),n=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(i)||e.extras.replaceUrl?this.location.replaceState(i,"",n):this.location.go(i,"",n)}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const i=new H(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(Tt),s.LFG(ci),s.LFG(n.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),mi=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new f.xQ,null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:wi(this.skipLocationChange),replaceUrl:wi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:wi(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(fi),s.Y36(Yt),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})(),bi=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new f.xQ,this.subscription=t.events.subscribe(t=>{t instanceof U&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:wi(this.skipLocationChange),replaceUrl:wi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:wi(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(fi),s.Y36(Yt),s.Y36(n.S$))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})();function wi(t){return""===t||!!t}let _i=(()=>{class t{constructor(t,e,i,n,o){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new yi(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(ci),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class yi{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Yt?this.route:t===ci?this.childContexts:this.parent.get(t,e)}}class Ai{}class vi{preload(t,e){return(0,r.of)(null)}}let Ti=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new ri(e,i,e=>t.triggerEvent(new $(e)),e=>t.triggerEvent(new Q(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,y.h)(t=>t instanceof U),(0,D.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return(0,o.D)(i).pipe((0,Z.J)(),(0,x.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,r.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,L.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(fi),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(Ai))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Ci=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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(t=>{t instanceof q?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof U&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof it&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new it(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(fi),s.LFG(n.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Si=new s.OlP("ROUTER_CONFIGURATION"),Ei=new s.OlP("ROUTER_FORROOT_GUARD"),ki=[n.Ye,{provide:Tt,useClass:Ct},{provide:fi,useFactory:function(t,e,i,n,s,o,r,a={},c,u){const l=new fi(null,t,e,i,n,s,o,ut(r));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,l),a.enableTracing&&l.events.subscribe(t=>{var e,i;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),l},deps:[Tt,ci,n.Ye,s.zs3,s.v3s,s.Sil,oi,Si,[class{},new s.FiY],[ni,new s.FiY]]},ci,{provide:Yt,useFactory:function(t){return t.routerState.root},deps:[fi]},{provide:s.v3s,useClass:s.EAV},Ti,vi,class{preload(t,e){return e().pipe((0,P.K)(()=>(0,r.of)(null)))}},{provide:Si,useValue:{enableTracing:!1}}];function xi(){return new s.PXZ("Router",fi)}let Ri=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[ki,Di(e),{provide:Ei,useFactory:Pi,deps:[[fi,new s.FiY,new s.tp0]]},{provide:Si,useValue:i||{}},{provide:n.S$,useFactory:Oi,deps:[n.lw,[new s.tBr(n.mr),new s.FiY],Si]},{provide:Ci,useFactory:Ii,deps:[fi,n.EM,Si]},{provide:Ai,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:vi},{provide:s.PXZ,multi:!0,useFactory:xi},[Mi,{provide:s.ip1,multi:!0,useFactory:Li,deps:[Mi]},{provide:zi,useFactory:Ni,deps:[Mi]},{provide:s.tb,multi:!0,useExisting:zi}]]}}static forChild(e){return{ngModule:t,providers:[Di(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ei,8),s.LFG(fi,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function Ii(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Ci(t,e,i)}function Oi(t,e,i={}){return i.useHash?new n.Do(t,e):new n.b0(t,e)}function Pi(t){return"guarded"}function Di(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:oi,multi:!0,useValue:t}]}let Mi=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new f.xQ}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(fi),n=this.injector.get(Si);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?(0,r.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Si),i=this.injector.get(Ti),n=this.injector.get(Ci),o=this.injector.get(fi),r=this.injector.get(s.z2F);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||o.initialNavigation(),i.setUpPreloading(),n.init(),o.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Li(t){return t.appInitializer.bind(t)}function Ni(t){return t.bootstrapListener.bind(t)}const zi=new s.OlP("Router Initializer")},48160:function(t,e,i){"use strict";i.d(e,{Zw:function(){return g},aw:function(){return D},X$:function(){return P},sK:function(){return O}});var n=i(31572),s=i(40878),o=i(4710),r=i(3148),a=i(47930),c=i(31450),u=i(90611),l=i(68303),h=i(79996),d=i(436),p=i(44689);class g{}let f=(()=>{class t extends g{getTranslation(t){return(0,s.of)({})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class m{}let b=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();function w(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,n,s,o=typeof t;if(o==typeof e&&"object"==o){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in s=Object.create(null),t){if(!w(t[n],e[n]))return!1;s[n]=!0}for(n in e)if(!(n in s)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n{y(e[n])?n in t?i[n]=A(t[n],e[n]):Object.assign(i,{[n]:e[n]}):Object.assign(i,{[n]:e[n]})}),i}class v{}let T=(()=>{class t extends v{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let i;return i="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,i}getValue(t,e){let i="string"==typeof e?e.split("."):[e];e="";do{e+=i.shift(),!_(t)||!_(t[e])||"object"!=typeof t[e]&&i.length?i.length?e+=".":t=void 0:(t=t[e],e="")}while(i.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,i)=>{let n=this.getValue(e,i);return _(n)?n:t}):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class C{}let S=(()=>{class t extends C{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class E{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new n.vpe,this.onLangChange=new n.vpe,this.onDefaultLangChange=new n.vpe}}const k=new n.OlP("USE_STORE"),x=new n.OlP("USE_DEFAULT_LANG"),R=new n.OlP("DEFAULT_LANGUAGE"),I=new n.OlP("USE_EXTEND");let O=(()=>{class t{constructor(t,e,i,s,o,r=!0,a=!1,c=!1,u){this.store=t,this.currentLoader=e,this.compiler=i,this.parser=s,this.missingTranslationHandler=o,this.useDefaultLang=r,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new n.vpe,this._onLangChange=new n.vpe,this._onDefaultLangChange=new n.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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe((0,u.q)(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return(0,s.of)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe((0,u.q)(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),(0,s.of)(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe((0,l.d)(1),(0,u.q)(1));return this.loadingTranslations=e.pipe((0,h.U)(e=>this.compiler.compileTranslations(e,t)),(0,l.d)(1),(0,u.q)(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,i=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?A(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,i){let n;if(e instanceof Array){let n={},a=!1;for(let s of e)n[s]=this.getParsedResult(t,s,i),(0,o.b)(n[s])&&(a=!0);if(a){const t=e.map(t=>(0,o.b)(n[t])?n[t]:(0,s.of)(n[t]));return(0,r.D)(t).pipe((0,h.U)(t=>{let i={};return t.forEach((t,n)=>{i[e[n]]=t}),i}))}return n}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){let t={key:e,translateService:this};void 0!==i&&(t.interpolateParams=i),n=this.missingTranslationHandler.handle(t)}return void 0!==n?n:e}get(t,e){if(!_(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,d.b)(i=>(i=this.getParsedResult(i,t,e),(0,o.b)(i)?i:(0,s.of)(i))));{let i=this.getParsedResult(this.translations[this.currentLang],t,e);return(0,o.b)(i)?i:(0,s.of)(i)}}getStreamOnTranslationChange(t,e){if(!_(t)||!t.length)throw new Error('Parameter "key" required');return(0,a.z)((0,c.P)(()=>this.get(t,e)),this.onTranslationChange.pipe((0,p.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return"function"==typeof n.subscribe?n:(0,s.of)(n)})))}stream(t,e){if(!_(t)||!t.length)throw new Error('Parameter "key" required');return(0,a.z)((0,c.P)(()=>this.get(t,e)),this.onLangChange.pipe((0,p.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return(0,o.b)(n)?n:(0,s.of)(n)})))}instant(t,e){if(!_(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,e);if((0,o.b)(i)){if(t instanceof Array){let e={};return t.forEach((i,n)=>{e[t[n]]=t[n]}),e}return t}return i}set(t,e,i=this.currentLang){this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(E),n.LFG(g),n.LFG(C),n.LFG(v),n.LFG(m),n.LFG(x),n.LFG(k),n.LFG(I),n.LFG(R))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),P=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,i){let n=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,e);(0,o.b)(s.subscribe)?s.subscribe(n):n(s)}this.translate.get(t,e).subscribe(n)}transform(t,...e){if(!t||!t.length)return t;if(w(t,this.lastKey)&&w(e,this.lastParams))return this.value;let i;if(_(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(t)}catch(n){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(i=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(O,16),n.Y36(n.sBO,16))},t.\u0275pipe=n.Yjl({name:"translate",type:t,pure:!1}),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:g,useClass:f},e.compiler||{provide:C,useClass:S},e.parser||{provide:v,useClass:T},e.missingTranslationHandler||{provide:m,useClass:b},E,{provide:k,useValue:e.isolate},{provide:x,useValue:e.useDefaultLang},{provide:I,useValue:e.extend},{provide:R,useValue:e.defaultLanguage},O]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:g,useClass:f},e.compiler||{provide:C,useClass:S},e.parser||{provide:v,useClass:T},e.missingTranslationHandler||{provide:m,useClass:b},{provide:k,useValue:e.isolate},{provide:x,useValue:e.useDefaultLang},{provide:I,useValue:e.extend},{provide:R,useValue:e.defaultLanguage},O]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},82051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){r(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,r){var a=s.URL||s.webkitURL,c=document.createElement("a");c.download=o=o||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,o,r):n(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,s,o){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),s);else if(i(t))e(t,s,o);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){n(r)})}}:function(t,i,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&c||o)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},l.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});s.saveAs=r.saveAs=r,t.exports=r})?i.apply(e,[]):i)||(t.exports=n)},30146:function(t,e,i){"use strict";i.d(e,{nu:function(){return H},Co:function(){return j}});var n=i(64762),s=i(31572),o=i(16073),r=i(71522),a=i(4786),c=i(66283),u=i(75842),l=i(78512),h=i(40878),d=i(31305),p=i(55959),g=i(44689),f=i(79996),m=i(56238),b=i(82628),w=i(25416),_=i(90611),y=i(43835),A=i(66599),v=i(15980),T=i(29236),C=i(43691),S=i(67806),E=i(36922),k=i(61511),x=i(4253),R=i(24621);const I=["searchSelectInput"],O=["innerSelectSearch"];function P(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-checkbox",9),s.NdJ("change",function(e){return s.CHM(t),s.oxw()._emitSelectAllBooleanToParent(e.checked)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("color",null==t.matFormField?null:t.matFormField.color)("checked",t.toggleAllCheckboxChecked)("indeterminate",t.toggleAllCheckboxIndeterminate)("matTooltip",t.toggleAllCheckboxTooltipMessage)("matTooltipPosition",t.toogleAllCheckboxTooltipPosition)}}function D(t,e){1&t&&s._UZ(0,"mat-spinner",10)}function M(t,e){1&t&&s.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function L(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1,"close"),s.qZA())}function N(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw()._reset(!0)}),s.YNc(1,M,1,0,"ng-content",12),s.YNc(2,L,2,0,"ng-template",null,13,s.W1O),s.qZA()}if(2&t){const t=s.MAs(3),e=s.oxw();s.xp6(1),s.Q6J("ngIf",e.clearIcon)("ngIfElse",t)}}function z(t,e){if(1&t&&(s.TgZ(0,"div",14),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij(" ",t.noEntriesFoundLabel,"\n")}}const F=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],Z=function(t,e){return{"mat-select-search-inner-multiple":t,"mat-select-search-inner-toggle-all":e}},B=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"];let q=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","ngxMatSelectSearchClear",""]]}),t})();var U;let H=(()=>{let t=U=class{constructor(t,e,i,n=null,r,a=null){this.matSelect=t,this.changeDetectorRef=e,this._viewportRuler=i,this.matOption=n,this.liveAnnouncer=r,this.matFormField=a,this.placeholderLabel="Suche",this.type="text",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new s.vpe,this.onTouched=t=>{},this._options$=new l.X(null),this.optionsList$=this._options$.pipe((0,g.w)(t=>t?t.changes.pipe((0,f.U)(t=>t.toArray()),(0,m.O)(t.toArray())):(0,h.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,f.U)(t=>t?t.length:0)),this._formControl=new o.NI(""),this._showNoEntriesFound$=(0,d.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,f.U)(([t,e])=>this.noEntriesFoundLabel&&t&&e===this.getOptionsLengthOffset())),this._onDestroy=new p.xQ}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(t){this._options$.next(t)}get _options(){return this._options$.getValue()}ngOnInit(){const t="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(t):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,t]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[t]=!0):this.matSelect.panelClass=t,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,b.g)(1),(0,w.R)(this._onDestroy)).subscribe(t=>{t?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,_.q)(1)).pipe((0,w.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,w.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,w.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const e=this._options.toArray(),i=e[this.getOptionsLengthOffset()],n=this.matSelect._keyManager;n&&this.matSelect.panelOpen&&(!!this.matSelect.compareWith(t,i)&&n.activeItem&&e.find(t=>this.matSelect.compareWith(t,n.activeItem))||n.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),t=i})})}),this._showNoEntriesFound$.pipe((0,w.R)(this._onDestroy)).subscribe(t=>{this.matOption&&(t?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,w.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,w.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(t){this.toggleAll.emit(t)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(t){(t.key&&1===t.key.length||t.keyCode>=u.A&&t.keyCode<=u.Z||t.keyCode>=u.xE&&t.keyCode<=u.aO||t.keyCode===u.L_||this.preventHomeEndKeyPropagation&&(t.keyCode===u.Sd||t.keyCode===u.uR))&&t.stopPropagation(),this.matSelect.multiple&&t.key&&t.keyCode===u.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&t.keyCode===u.hY&&this.value&&(this._reset(!0),t.stopPropagation())}_handleKeyup(t){if(t.keyCode===u.LH||t.keyCode===u.JH){const t=this.matSelect._getAriaActiveDescendant(),e=this._options.toArray().findIndex(e=>e.id===t);if(-1!==e){const t=this._options.toArray()[e];this.liveAnnouncer.announce(t.viewValue+" "+this.getAriaIndex(e)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(t){return 0===this.getOptionsLengthOffset()?t+1:t}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(t){this._lastExternalInputValue=t,this._formControl.setValue(t),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(t){this._formControl.valueChanges.pipe((0,y.h)(t=>t!==this._lastExternalInputValue),(0,A.b)(()=>this._lastExternalInputValue=void 0),(0,w.R)(this._onDestroy)).subscribe(t)}registerOnTouched(t){this.onTouched=t}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}_reset(t){this._formControl.setValue(""),t&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,w.R)(this._onDestroy)).subscribe(t=>{let e=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){t&&Array.isArray(t)||(t=[]);const i=this.matSelect.options.map(t=>t.value);this.previousSelectedValues.forEach(n=>{t.some(t=>this.matSelect.compareWith(t,n))||i.some(t=>this.matSelect.compareWith(t,n))||(t.push(n),e=!0)})}this.previousSelectedValues=t,e&&this.matSelect._onChange(t)})):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 t=this.getMatOptionHeight(),e=this.matSelect._keyManager.activeItemIndex||0,i=(0,r.CB)(e,this.matSelect.options,this.matSelect.optionGroups),n=(this.matOption?-1:0)+i+e,s=this.matSelect.panel.nativeElement.scrollTop,o=this.innerSelectSearch.nativeElement.offsetHeight,a=Math.floor((256-o)/t),c=Math.round((s+o)/t)-1;c>=n?this.matSelect.panel.nativeElement.scrollTop=n*t:c+a<=n&&(this.matSelect.panel.nativeElement.scrollTop=(n+1)*t-(256-o))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let t,e=this.innerSelectSearch.nativeElement;for(;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}};return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.gD),s.Y36(s.sBO),s.Y36(x.rL),s.Y36(r.ey,8),s.Y36(R.Kd),s.Y36(c.KE,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,q,5),2&t){let t;s.iGM(t=s.CRH())&&(e.clearIcon=t.first)}},viewQuery:function(t,e){if(1&t&&(s.Gf(I,7,s.SBq),s.Gf(O,7,s.SBq)),2&t){let t;s.iGM(t=s.CRH())&&(e.searchSelectInput=t.first),s.iGM(t=s.CRH())&&(e.innerSelectSearch=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-select-search-inside-mat-option",e.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[s._Bn([{provide:o.JU,useExisting:(0,s.Gpc)(()=>U),multi:!0}])],ngContentSelectors:B,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[1,"mat-select-search-no-entries-found"]],template:function(t,e){1&t&&(s.F$t(F),s._UZ(0,"input",0),s.TgZ(1,"div",1,2),s.YNc(3,P,1,5,"mat-checkbox",3),s.TgZ(4,"input",4,5),s.NdJ("keydown",function(t){return e._handleKeydown(t)})("keyup",function(t){return e._handleKeyup(t)})("blur",function(){return e.onBlur()}),s.qZA(),s.YNc(6,D,1,0,"mat-spinner",6),s.YNc(7,N,4,2,"button",7),s.Hsn(8),s.qZA(),s.YNc(9,z,2,1,"div",8),s.ALo(10,"async")),2&t&&(s.xp6(1),s.Q6J("ngClass",s.WLB(11,Z,e.matSelect.multiple,e._isToggleAllCheckboxVisible())),s.xp6(2),s.Q6J("ngIf",e._isToggleAllCheckboxVisible()),s.xp6(1),s.Q6J("type",e.type)("formControl",e._formControl)("placeholder",e.placeholderLabel),s.uIk("aria-label",e.ariaLabel),s.xp6(2),s.Q6J("ngIf",e.searching),s.xp6(1),s.Q6J("ngIf",!e.hideClearSearchButton&&e.value&&!e.searching),s.xp6(2),s.Q6J("ngIf",s.lcZ(10,9,e._showNoEntriesFound$)))},directives:[k.mk,k.O5,o.Fj,o.JJ,o.oH,T.oG,E.gM,S.$g,v.lW,C.Hw],pipes:[k.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}),t=U=(0,n.gn)([(0,n.fM)(0,(0,s.tBr)(a.gD)),(0,n.fM)(3,(0,s.FiY)()),(0,n.fM)(3,(0,s.tBr)(r.ey)),(0,n.fM)(5,(0,s.FiY)()),(0,n.fM)(5,(0,s.tBr)(c.KE))],t),t})(),j=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[k.ez,o.UX,v.ot,T.p9,C.Ps,S.Cq,E.AV]]}),t})()},59997:function(t){t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,(function(e){return t[e]}).bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=22)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i=4){for(var t=arguments.length,e=Array(t),i=0;i=3){for(var t=arguments.length,e=Array(t),i=0;i=2){for(var t=arguments.length,e=Array(t),i=0;i=1){for(var t=arguments.length,e=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:o.JsonService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=e,this._jsonService=new i(["application/jwk-set+json"])}return t.prototype.getMetadata=function(){var t=this;return this._settings.metadata?(s.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(s.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then(function(e){return s.Log.debug("MetadataService.getMetadata: json received"),t._settings.metadata=e,e})):(s.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},t.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},t.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},t.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},t.prototype.getTokenEndpoint=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",t)},t.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},t.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},t.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},t.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},t.prototype._getMetadataProperty=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s.Log.debug("MetadataService.getMetadataProperty for: "+t),this.getMetadata().then(function(i){if(s.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===i[t]){if(!0===e)return void s.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+t);throw s.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+t),new Error("Metadata does not contain property "+t)}return i[t]})},t.prototype.getSigningKeys=function(){var t=this;return this._settings.signingKeys?(s.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then(function(e){return s.Log.debug("MetadataService.getSigningKeys: jwks_uri received",e),t._jsonService.getJson(e).then(function(e){if(s.Log.debug("MetadataService.getSigningKeys: key set received",e),!e.keys)throw s.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return t._settings.signingKeys=e.keys,t._settings.signingKeys})})},n(t,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration"))),this._metadataUrl}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UrlUtility=void 0;var n=i(0),s=i(1);e.UrlUtility=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.addQueryParam=function(t,e,i){return t.indexOf("?")<0&&(t+="?"),"?"!==t[t.length-1]&&(t+="&"),t+=encodeURIComponent(e),(t+="=")+encodeURIComponent(i)},t.parseUrlFragment=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.Global;"string"!=typeof t&&(t=i.location.href);var o=t.lastIndexOf(e);o>=0&&(t=t.substr(o+1)),"?"===e&&(o=t.indexOf("#"))>=0&&(t=t.substr(0,o));for(var r,a={},c=/([^&=]+)=([^&]*)/g,u=0;r=c.exec(t);)if(a[decodeURIComponent(r[1])]=decodeURIComponent(r[2]),u++>50)return n.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",t),{error:"Response exceeded expected number of parameters"};for(var l in a)return a;return{}},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JoseUtil=void 0;var n=i(25),s=function(t){return t&&t.__esModule?t:{default:t}}(i(32));e.JoseUtil=(0,s.default)({jws:n.jws,KeyUtil:n.KeyUtil,X509:n.X509,crypto:n.crypto,hextob64u:n.hextob64u,b64tohex:n.b64tohex,AllowedSigningAlgs:n.AllowedSigningAlgs})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OidcClientSettings=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.authority,s=e.metadataUrl,o=e.metadata,h=e.signingKeys,d=e.client_id,p=e.client_secret,g=e.response_type,f=void 0===g?u:g,m=e.scope,b=void 0===m?l:m,w=e.redirect_uri,_=e.post_logout_redirect_uri,y=e.prompt,A=e.display,v=e.max_age,T=e.ui_locales,C=e.acr_values,S=e.resource,E=e.response_mode,k=e.filterProtocolClaims,x=void 0===k||k,R=e.loadUserInfo,I=void 0===R||R,O=e.staleStateAge,P=void 0===O?900:O,D=e.clockSkew,M=void 0===D?300:D,L=e.userInfoJwtIssuer,N=void 0===L?"OP":L,z=e.stateStore,F=void 0===z?new r.WebStorageStateStore:z,Z=e.ResponseValidatorCtor,B=void 0===Z?a.ResponseValidator:Z,q=e.MetadataServiceCtor,U=void 0===q?c.MetadataService:q,H=e.extraQueryParams,j=void 0===H?{}:H,G=e.extraTokenParams,Y=void 0===G?{}:G;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._authority=i,this._metadataUrl=s,this._metadata=o,this._signingKeys=h,this._client_id=d,this._client_secret=p,this._response_type=f,this._scope=b,this._redirect_uri=w,this._post_logout_redirect_uri=_,this._prompt=y,this._display=A,this._max_age=v,this._ui_locales=T,this._acr_values=C,this._resource=S,this._response_mode=E,this._filterProtocolClaims=!!x,this._loadUserInfo=!!I,this._staleStateAge=P,this._clockSkew=M,this._userInfoJwtIssuer=N,this._stateStore=F,this._validator=new B(this),this._metadataService=new U(this),this._extraQueryParams="object"===(void 0===j?"undefined":n(j))?j:{},this._extraTokenParams="object"===(void 0===Y?"undefined":n(Y))?Y:{}}return s(t,[{key:"client_id",get:function(){return this._client_id},set:function(t){if(this._client_id)throw o.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=t}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(t){if(this._authority)throw o.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=t}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration")),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(t){this._metadata=t}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(t){this._signingKeys=t}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(t){this._extraQueryParams="object"===(void 0===t?"undefined":n(t))?t:{}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(t){this._extraTokenParams="object"===(void 0===t?"undefined":n(t))?t:{}}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebStorageStateStore=void 0;var n=i(0),s=i(1);e.WebStorageStateStore=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.prefix,n=void 0===i?"oidc.":i,o=e.store,r=void 0===o?s.Global.localStorage:o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._store=r,this._prefix=n}return t.prototype.set=function(t,e){return n.Log.debug("WebStorageStateStore.set",t),this._store.setItem(t=this._prefix+t,e),Promise.resolve()},t.prototype.get=function(t){n.Log.debug("WebStorageStateStore.get",t);var e=this._store.getItem(t=this._prefix+t);return Promise.resolve(e)},t.prototype.remove=function(t){n.Log.debug("WebStorageStateStore.remove",t);var e=this._store.getItem(t=this._prefix+t);return this._store.removeItem(t),Promise.resolve(e)},t.prototype.getAllKeys=function(){n.Log.debug("WebStorageStateStore.getAllKeys");for(var t=[],e=0;e0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Global.XMLHttpRequest,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._contentTypes=e&&Array.isArray(e)?e.slice():[],this._contentTypes.push("application/json"),n&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=i,this._jwtHandler=n}return t.prototype.getJson=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.getJson: No url passed"),new Error("url");return n.Log.debug("JsonService.getJson, url: ",t),new Promise(function(s,o){var r=new i._XMLHttpRequest;r.open("GET",t);var a=i._contentTypes,c=i._jwtHandler;r.onload=function(){if(n.Log.debug("JsonService.getJson: HTTP response received, status",r.status),200===r.status){var e=r.getResponseHeader("Content-Type");if(e){var i=a.find(function(t){if(e.startsWith(t))return!0});if("application/jwt"==i)return void c(r).then(s,o);if(i)try{return void s(JSON.parse(r.responseText))}catch(s){return n.Log.error("JsonService.getJson: Error parsing JSON response",s.message),void o(s)}}o(Error("Invalid response Content-Type: "+e+", from URL: "+t))}else o(Error(r.statusText+" ("+r.status+")"))},r.onerror=function(){n.Log.error("JsonService.getJson: network error"),o(Error("Network Error"))},e&&(n.Log.debug("JsonService.getJson: token passed, setting Authorization header"),r.setRequestHeader("Authorization","Bearer "+e)),r.send()})},t.prototype.postForm=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.postForm: No url passed"),new Error("url");return n.Log.debug("JsonService.postForm, url: ",t),new Promise(function(s,o){var r=new i._XMLHttpRequest;r.open("POST",t);var a=i._contentTypes;r.onload=function(){if(n.Log.debug("JsonService.postForm: HTTP response received, status",r.status),200!==r.status){if(400===r.status&&(i=r.getResponseHeader("Content-Type"))&&a.find(function(t){if(i.startsWith(t))return!0}))try{var e=JSON.parse(r.responseText);if(e&&e.error)return n.Log.error("JsonService.postForm: Error from server: ",e.error),void o(new Error(e.error))}catch(s){return n.Log.error("JsonService.postForm: Error parsing JSON response",s.message),void o(s)}o(Error(r.statusText+" ("+r.status+")"))}else{var i;if((i=r.getResponseHeader("Content-Type"))&&a.find(function(t){if(i.startsWith(t))return!0}))try{return void s(JSON.parse(r.responseText))}catch(s){return n.Log.error("JsonService.postForm: Error parsing JSON response",s.message),void o(s)}o(Error("Invalid response Content-Type: "+i+", from URL: "+t))}},r.onerror=function(){n.Log.error("JsonService.postForm: network error"),o(Error("Network Error"))};var c="";for(var u in e){var l=e[u];l&&(c.length>0&&(c+="&"),c+=encodeURIComponent(u),c+="=",c+=encodeURIComponent(l))}r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.send(c)})},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.State=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.id,n=e.data,s=e.created,r=e.request_type;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._id=i||(0,o.default)(),this._data=n,this._created="number"==typeof s&&s>0?s:parseInt(Date.now()/1e3),this._request_type=r}return t.prototype.toStorageString=function(){return s.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},t.fromStorageString=function(e){return s.Log.debug("State.fromStorageString"),new t(JSON.parse(e))},t.clearStaleState=function(e,i){var n=Date.now()/1e3-i;return e.getAllKeys().then(function(i){s.Log.debug("State.clearStaleState: got keys",i);for(var o=[],r=function(r){var a=i[r];c=e.get(a).then(function(i){var o=!1;if(i)try{var r=t.fromStorageString(i);s.Log.debug("State.clearStaleState: got item from key: ",a,r.created),r.created<=n&&(o=!0)}catch(t){s.Log.error("State.clearStaleState: Error parsing state for key",a,t.message),o=!0}else s.Log.debug("State.clearStaleState: no item in storage for key: ",a),o=!0;if(o)return s.Log.debug("State.clearStaleState: removed item for key: ",a),e.remove(a)}),o.push(c)},a=0;a0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._settings=e instanceof o.OidcClientSettings?e:new o.OidcClientSettings(e)}return t.prototype.createSigninRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.response_type,n=e.scope,o=e.redirect_uri,r=e.data,c=e.state,u=e.prompt,l=e.display,h=e.max_age,d=e.ui_locales,p=e.id_token_hint,g=e.login_hint,f=e.acr_values,m=e.resource,b=e.request,w=e.request_uri,_=e.response_mode,y=e.extraQueryParams,A=e.extraTokenParams,v=e.request_type,T=e.skipUserInfo,C=arguments[1];s.Log.debug("OidcClient.createSigninRequest");var S=this._settings.client_id;n=n||this._settings.scope,o=o||this._settings.redirect_uri,u=u||this._settings.prompt,l=l||this._settings.display,h=h||this._settings.max_age,d=d||this._settings.ui_locales,f=f||this._settings.acr_values,m=m||this._settings.resource,_=_||this._settings.response_mode,y=y||this._settings.extraQueryParams,A=A||this._settings.extraTokenParams;var E=this._settings.authority;return a.SigninRequest.isCode(i=i||this._settings.response_type)&&"code"!==i?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then(function(e){s.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",e);var k=new a.SigninRequest({url:e,client_id:S,redirect_uri:o,response_type:i,scope:n,data:r||c,authority:E,prompt:u,display:l,max_age:h,ui_locales:d,id_token_hint:p,login_hint:g,acr_values:f,resource:m,request:b,request_uri:w,extraQueryParams:y,extraTokenParams:A,request_type:v,response_mode:_,client_secret:t._settings.client_secret,skipUserInfo:T}),x=k.state;return(C=C||t._stateStore).set(x.id,x.toStorageString()).then(function(){return k})})},t.prototype.readSigninResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.Log.debug("OidcClient.readSigninResponseState");var n="query"===this._settings.response_mode||!this._settings.response_mode&&a.SigninRequest.isCode(this._settings.response_type)?"?":"#",o=new c.SigninResponse(t,n);return o.state?(e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(o.state).then(function(t){if(!t)throw s.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:h.SigninState.fromStorageString(t),response:o}})):(s.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},t.prototype.processSigninResponse=function(t,e){var i=this;return s.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return s.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),i._validator.validateSigninResponse(e,n)})},t.prototype.createSignoutRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.id_token_hint,n=e.data,o=e.state,r=e.post_logout_redirect_uri,a=e.extraQueryParams,c=e.request_type,l=arguments[1];return s.Log.debug("OidcClient.createSignoutRequest"),r=r||this._settings.post_logout_redirect_uri,a=a||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then(function(e){if(!e)throw s.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");s.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",e);var h=new u.SignoutRequest({url:e,id_token_hint:i,post_logout_redirect_uri:r,data:n||o,extraQueryParams:a,request_type:c}),d=h.state;return d&&(s.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(l=l||t._stateStore).set(d.id,d.toStorageString())),h})},t.prototype.readSignoutResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.Log.debug("OidcClient.readSignoutResponseState");var n=new l.SignoutResponse(t);if(!n.state)return s.Log.debug("OidcClient.readSignoutResponseState: No state in response"),n.error?(s.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",n.error),Promise.reject(new r.ErrorResponse(n))):Promise.resolve({undefined:void 0,response:n});var o=n.state;return e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(o).then(function(t){if(!t)throw s.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(t),response:n}})},t.prototype.processSignoutResponse=function(t,e){var i=this;return s.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return e?(s.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),i._validator.validateSignoutResponse(e,n)):(s.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),n)})},t.prototype.clearStaleState=function(t){return s.Log.debug("OidcClient.clearStaleState"),d.State.clearStaleState(t=t||this._stateStore,this.settings.staleStateAge)},n(t,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenClient=void 0;var n=i(7),s=i(2),o=i(0);e.TokenClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw o.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i,this._metadataService=new r(this._settings)}return t.prototype.exchangeCode=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"authorization_code",e.client_id=e.client_id||this._settings.client_id,e.redirect_uri=e.redirect_uri||this._settings.redirect_uri,e.code?e.redirect_uri?e.code_verifier?e.client_id?this._metadataService.getTokenEndpoint(!1).then(function(i){return o.Log.debug("TokenClient.exchangeCode: Received token endpoint"),t._jsonService.postForm(i,e).then(function(t){return o.Log.debug("TokenClient.exchangeCode: response received"),t})}):(o.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(o.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(o.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},t.prototype.exchangeRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"refresh_token",e.client_id=e.client_id||this._settings.client_id,e.client_secret=e.client_secret||this._settings.client_secret,e.refresh_token?e.client_id?this._metadataService.getTokenEndpoint(!1).then(function(i){return o.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),t._jsonService.postForm(i,e).then(function(t){return o.Log.debug("TokenClient.exchangeRefreshToken: response received"),t})}):(o.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorResponse=void 0;var n=i(0);e.ErrorResponse=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=i.error,o=i.error_description,r=i.error_uri,a=i.state,c=i.session_state;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),!s)throw n.Log.error("No error passed to ErrorResponse"),new Error("error");var u=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,o||s));return u.name="ErrorResponse",u.error=s,u.error_description=o,u.error_uri=r,u.state=a,u.session_state=c,u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Error)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninRequest=void 0;var n=i(0),s=i(3),o=i(13);e.SigninRequest=function(){function t(e){var i=e.url,r=e.client_id,a=e.redirect_uri,c=e.response_type,u=e.scope,l=e.authority,h=e.data,d=e.prompt,p=e.display,g=e.max_age,f=e.ui_locales,m=e.id_token_hint,b=e.login_hint,w=e.acr_values,_=e.resource,y=e.response_mode,A=e.request,v=e.request_uri,T=e.extraQueryParams,C=e.request_type,S=e.client_secret,E=e.extraTokenParams,k=e.skipUserInfo;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!r)throw n.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!a)throw n.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!c)throw n.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!u)throw n.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!l)throw n.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var x=t.isOidc(c),R=t.isCode(c);y||(y=t.isCode(c)?"query":null),this.state=new o.SigninState({nonce:x,data:h,client_id:r,authority:l,redirect_uri:a,code_verifier:R,request_type:C,response_mode:y,client_secret:S,scope:u,extraTokenParams:E,skipUserInfo:k}),i=s.UrlUtility.addQueryParam(i,"client_id",r),i=s.UrlUtility.addQueryParam(i,"redirect_uri",a),i=s.UrlUtility.addQueryParam(i,"response_type",c),i=s.UrlUtility.addQueryParam(i,"scope",u),i=s.UrlUtility.addQueryParam(i,"state",this.state.id),x&&(i=s.UrlUtility.addQueryParam(i,"nonce",this.state.nonce)),R&&(i=s.UrlUtility.addQueryParam(i,"code_challenge",this.state.code_challenge),i=s.UrlUtility.addQueryParam(i,"code_challenge_method","S256"));var I={prompt:d,display:p,max_age:g,ui_locales:f,id_token_hint:m,login_hint:b,acr_values:w,resource:_,request:A,request_uri:v,response_mode:y};for(var O in I)I[O]&&(i=s.UrlUtility.addQueryParam(i,O,I[O]));for(var P in T)i=s.UrlUtility.addQueryParam(i,P,T[P]);this.url=i}return t.isOidc=function(t){return!!t.split(/\s+/g).filter(function(t){return"id_token"===t})[0]},t.isOAuth=function(t){return!!t.split(/\s+/g).filter(function(t){return"token"===t})[0]},t.isCode=function(t){return!!t.split(/\s+/g).filter(function(t){return"code"===t})[0]},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninState=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.nonce,s=i.authority,o=i.client_id,c=i.redirect_uri,u=i.code_verifier,l=i.response_mode,h=i.client_secret,d=i.scope,p=i.extraTokenParams,g=i.skipUserInfo;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var f=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));if(!0===n?f._nonce=(0,a.default)():n&&(f._nonce=n),!0===u?f._code_verifier=(0,a.default)()+(0,a.default)()+(0,a.default)():u&&(f._code_verifier=u),f.code_verifier){var m=r.JoseUtil.hashString(f.code_verifier,"SHA256");f._code_challenge=r.JoseUtil.hexToBase64Url(m)}return f._redirect_uri=c,f._authority=s,f._client_id=o,f._response_mode=l,f._client_secret=h,f._scope=d,f._extraTokenParams=p,f._skipUserInfo=g,f}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toStorageString=function(){return s.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},e.fromStorageString=function(t){return s.Log.debug("SigninState.fromStorageString"),new e(JSON.parse(t))},n(e,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),e}(o.State)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,n.default)().replace(/-/g,"")};var n=function(t){return t&&t.__esModule?t:{default:t}}(i(33));t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.User=void 0;var n=function(){function t(t,e){for(var i=0;i0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessTokenEvents=void 0;var n=i(0),s=i(48);e.AccessTokenEvents=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.accessTokenExpiringNotificationTime,n=void 0===i?60:i,o=e.accessTokenExpiringTimer,r=void 0===o?new s.Timer("Access token expiring"):o,a=e.accessTokenExpiredTimer,c=void 0===a?new s.Timer("Access token expired"):a;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._accessTokenExpiringNotificationTime=n,this._accessTokenExpiring=r,this._accessTokenExpired=c}return t.prototype.load=function(t){if(t.access_token&&void 0!==t.expires_in){var e=t.expires_in;if(n.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",e),e>0){var i=e-this._accessTokenExpiringNotificationTime;i<=0&&(i=1),n.Log.debug("AccessTokenEvents.load: registering expiring timer in:",i),this._accessTokenExpiring.init(i)}else n.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var s=e+1;n.Log.debug("AccessTokenEvents.load: registering expired timer in:",s),this._accessTokenExpired.init(s)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.unload=function(){n.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.addAccessTokenExpiring=function(t){this._accessTokenExpiring.addHandler(t)},t.prototype.removeAccessTokenExpiring=function(t){this._accessTokenExpiring.removeHandler(t)},t.prototype.addAccessTokenExpired=function(t){this._accessTokenExpired.addHandler(t)},t.prototype.removeAccessTokenExpired=function(t){this._accessTokenExpired.removeHandler(t)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=i(0);e.Event=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e,this._callbacks=[]}return t.prototype.addHandler=function(t){this._callbacks.push(t)},t.prototype.removeHandler=function(t){var e=this._callbacks.findIndex(function(e){return e===t});e>=0&&this._callbacks.splice(e,1)},t.prototype.raise=function(){n.Log.debug("Event: Raising event: "+this._name);for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:o.CheckSessionIFrame,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.Global.timer;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=e,this._CheckSessionIFrameCtor=n,this._timer=a,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),this._userManager.getUser().then(function(t){t?i._start(t):i._settings.monitorAnonymousSession&&i._userManager.querySessionStatus().then(function(t){var e={session_state:t.session_state};t.sub&&t.sid&&(e.profile={sub:t.sub,sid:t.sid}),i._start(e)}).catch(function(t){s.Log.error("SessionMonitor ctor: error from querySessionStatus:",t.message)})}).catch(function(t){s.Log.error("SessionMonitor ctor: error from getUser:",t.message)})}return t.prototype._start=function(t){var e=this,i=t.session_state;i&&(t.profile?(this._sub=t.profile.sub,this._sid=t.profile.sid,s.Log.debug("SessionMonitor._start: session_state:",i,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,s.Log.debug("SessionMonitor._start: session_state:",i,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(i):this._metadataService.getCheckSessionIframe().then(function(t){if(t){s.Log.debug("SessionMonitor._start: Initializing check session iframe");var n=e._client_id,o=e._checkSessionInterval,r=e._stopCheckSessionOnError;e._checkSessionIFrame=new e._CheckSessionIFrameCtor(e._callback.bind(e),n,t,o,r),e._checkSessionIFrame.load().then(function(){e._checkSessionIFrame.start(i)})}else s.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")}).catch(function(t){s.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",t.message)}))},t.prototype._stop=function(){var t=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(s.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var e=this._timer.setInterval(function(){t._timer.clearInterval(e),t._userManager.querySessionStatus().then(function(e){var i={session_state:e.session_state};e.sub&&e.sid&&(i.profile={sub:e.sub,sid:e.sid}),t._start(i)}).catch(function(t){s.Log.error("SessionMonitor: error from querySessionStatus:",t.message)})},1e3)},t.prototype._callback=function(){var t=this;this._userManager.querySessionStatus().then(function(e){var i=!0;e?e.sub===t._sub?(i=!1,t._checkSessionIFrame.start(e.session_state),e.sid===t._sid?s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",e.session_state):(s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",e.session_state),t._userManager.events._raiseUserSessionChanged())):s.Log.debug("SessionMonitor._callback: Different subject signed into OP:",e.sub):s.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),i&&(t._sub?(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),t._userManager.events._raiseUserSignedOut()):(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),t._userManager.events._raiseUserSignedIn()))}).catch(function(e){t._sub&&(s.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",e.message),t._userManager.events._raiseUserSignedOut())})},n(t,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CheckSessionIFrame=void 0;var n=i(0);e.CheckSessionIFrame=function(){function t(e,i,n,s){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._callback=e,this._client_id=i,this._url=n,this._interval=s||2e3,this._stopOnError=o;var r=n.indexOf("/",n.indexOf("//")+2);this._frame_origin=n.substr(0,r),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.style.width=0,this._frame.style.height=0,this._frame.src=n}return t.prototype.load=function(){var t=this;return new Promise(function(e){t._frame.onload=function(){e()},window.document.body.appendChild(t._frame),t._boundMessageEvent=t._message.bind(t),window.addEventListener("message",t._boundMessageEvent,!1)})},t.prototype._message=function(t){t.origin===this._frame_origin&&t.source===this._frame.contentWindow&&("error"===t.data?(n.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===t.data?(n.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):n.Log.debug("CheckSessionIFrame: "+t.data+" message from check session op iframe"))},t.prototype.start=function(t){var e=this;if(this._session_state!==t){n.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=t;var i=function(){e._frame.contentWindow.postMessage(e._client_id+" "+e._session_state,e._frame_origin)};i(),this._timer=window.setInterval(i,this._interval)}},t.prototype.stop=function(){this._session_state=null,this._timer&&(n.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenRevocationClient=void 0;var n=i(0),s=i(2),o=i(1);e.TokenRevocationClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Global.XMLHttpRequest,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw n.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=e,this._XMLHttpRequestCtor=i,this._metadataService=new r(this._settings)}return t.prototype.revoke=function(t,e){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!t)throw n.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==s&&"refresh_token"!=s)throw n.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then(function(o){if(o)return n.Log.debug("TokenRevocationClient.revoke: Revoking "+s),i._revoke(o,i._settings.client_id,i._settings.client_secret,t,s);if(e)throw n.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")})},t.prototype._revoke=function(t,e,i,s,o){var r=this;return new Promise(function(a,c){var u=new r._XMLHttpRequestCtor;u.open("POST",t),u.onload=function(){n.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",u.status),200===u.status?a():c(Error(u.statusText+" ("+u.status+")"))},u.onerror=function(){n.Log.debug("TokenRevocationClient.revoke: Network Error."),c("Network Error")};var l="client_id="+encodeURIComponent(e);i&&(l+="&client_secret="+encodeURIComponent(i)),l+="&token_type_hint="+encodeURIComponent(o),l+="&token="+encodeURIComponent(s),u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.send(l)})},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CordovaPopupWindow=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:o.MetadataService,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.UserInfoService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.JoseUtil,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:a.TokenClient;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=e,this._metadataService=new i(this._settings),this._userInfoService=new n(this._settings),this._joseUtil=c,this._tokenClient=new l(this._settings)}return t.prototype.validateSigninResponse=function(t,e){var i=this;return s.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(t,e).then(function(e){return s.Log.debug("ResponseValidator.validateSigninResponse: state processed"),i._validateTokens(t,e).then(function(e){return s.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),i._processClaims(t,e).then(function(t){return s.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),t})})})},t.prototype.validateSignoutResponse=function(t,e){return t.id!==e.state?(s.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(s.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),e.state=t.data,e.error?(s.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):Promise.resolve(e))},t.prototype._processSigninParams=function(t,e){if(t.id!==e.state)return s.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!t.client_id)return s.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!t.authority)return s.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==t.authority)return s.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=t.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==t.client_id)return s.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=t.client_id;return s.Log.debug("ResponseValidator._processSigninParams: state validated"),e.state=t.data,e.error?(s.Log.warn("ResponseValidator._processSigninParams: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):t.nonce&&!e.id_token?(s.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!t.nonce&&e.id_token?(s.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):t.code_verifier&&!e.code?(s.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!t.code_verifier&&e.code?(s.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(e.scope||(e.scope=t.scope),Promise.resolve(e))},t.prototype._processClaims=function(t,e){var i=this;if(e.isOpenIdConnect){if(s.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),e.profile=this._filterProtocolClaims(e.profile),!0!==t.skipUserInfo&&this._settings.loadUserInfo&&e.access_token)return s.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(e.access_token).then(function(t){return s.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),t.sub!==e.profile.sub?(s.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in access_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"))):(e.profile=i._mergeClaims(e.profile,t),s.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",e.profile),e)});s.Log.debug("ResponseValidator._processClaims: not loading user info")}else s.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(e)},t.prototype._mergeClaims=function(t,e){var i=Object.assign({},t);for(var s in e){var o=e[s];Array.isArray(o)||(o=[o]);for(var r=0;r1)return s.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));c=a[0]}if(!c)return s.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var u=t.client_id,l=i._settings.clockSkew;return s.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",l),i._joseUtil.validateJwt(e.id_token,c,r,u,l).then(function(){return s.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),n.payload.sub?(e.profile=n.payload,e):(s.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))})})})},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return s.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",e),[];i="EC"}return s.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",i),t=t.filter(function(t){return t.kty===i}),s.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",i,t.length),t},t.prototype._validateAccessToken=function(t){if(!t.profile)return s.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!t.profile.at_hash)return s.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!t.id_token)return s.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var e=this._joseUtil.parseJwt(t.id_token);if(!e||!e.header)return s.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",e),Promise.reject(new Error("Failed to parse id_token"));var i=e.header.alg;if(!i||5!==i.length)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i),Promise.reject(new Error("Unsupported alg: "+i));var n=i.substr(2,3);if(!n)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));if(256!==(n=parseInt(n))&&384!==n&&512!==n)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));var o="sha"+n,r=this._joseUtil.hashString(t.access_token,o);if(!r)return s.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",o),Promise.reject(new Error("Failed to validate at_hash"));var a=r.substr(0,r.length/2),c=this._joseUtil.hexToBase64Url(a);return c!==t.profile.at_hash?(s.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",c,t.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(s.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(t))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserInfoService=void 0;var n=i(7),s=i(2),o=i(0),r=i(4);e.UserInfoService=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r.JoseUtil;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw o.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new a(this._settings),this._joseUtil=c}return t.prototype.getClaims=function(t){var e=this;return t?this._metadataService.getUserInfoEndpoint().then(function(i){return o.Log.debug("UserInfoService.getClaims: received userinfo url",i),e._jsonService.getJson(i,t).then(function(t){return o.Log.debug("UserInfoService.getClaims: claims received",t),t})}):(o.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},t.prototype._getClaimsFromJwt=function t(e){var i=this;try{var n=this._joseUtil.parseJwt(e.responseText);if(!n||!n.header||!n.payload)return o.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",n),Promise.reject(new Error("Failed to parse id_token"));var s=n.header.kid,r=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":r=this._metadataService.getIssuer();break;case"ANY":r=Promise.resolve(n.payload.iss);break;default:r=Promise.resolve(this._settings.userInfoJwtIssuer)}return r.then(function(t){return o.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+t),i._metadataService.getSigningKeys().then(function(r){if(!r)return o.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));o.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var a=void 0;if(s)a=r.filter(function(t){return t.kid===s})[0];else{if((r=i._filterByAlg(r,n.header.alg)).length>1)return o.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));a=r[0]}if(!a)return o.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var c=i._settings.client_id,u=i._settings.clockSkew;return o.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",u),i._joseUtil.validateJwt(e.responseText,a,t,c,u,void 0,!0).then(function(){return o.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),n.payload})})})}catch(t){return o.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",t.message),void reject(t)}},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return o.Log.debug("UserInfoService._filterByAlg: alg not supported: ",e),[];i="EC"}return o.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",i),t=t.filter(function(t){return t.kty===i}),o.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",i,t.length),t},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AllowedSigningAlgs=e.b64tohex=e.hextob64u=e.crypto=e.X509=e.KeyUtil=e.jws=void 0;var n=i(26);e.jws=n.jws,e.KeyUtil=n.KEYUTIL,e.X509=n.X509,e.crypto=n.crypto,e.hextob64u=n.hextob64u,e.b64tohex=n.b64tohex,e.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n={userAgent:!1},s={};if(void 0===o)var o={};o.lang={extend:function(e,i,s){if(!i||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var o=function(){};if(o.prototype=i.prototype,e.prototype=new o,e.prototype.constructor=e,e.superclass=i.prototype,i.prototype.constructor==Object.prototype.constructor&&(i.prototype.constructor=i),s){var r;for(r in s)e.prototype[r]=s[r];var a=function(){},c=["toString","valueOf"];try{/MSIE/.test(n.userAgent)&&(a=function(t,e){for(r=0;r>>2]|=(i[o>>>2]>>>24-o%4*8&255)<<24-(n+o)%4*8;else for(o=0;o>>2]=i[o>>>2];return this.sigBytes+=s,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=r.ceil(e/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i>>2]>>>24-s%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new l.init(i,e/2)}},p=h.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],s=0;s>>2]>>>24-s%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new l.init(i,e)}},g=h.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},f=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=g.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,i=e.words,n=e.sigBytes,s=this.blockSize,o=n/(4*s),a=(o=t?r.ceil(o):r.max((0|o)-this._minBufferSize,0))*s,c=r.min(4*a,n);if(a){for(var u=0;u>>2]>>>24-s%4*8&255)<<16|(e[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|e[s+2>>>2]>>>24-(s+2)%4*8&255,r=0;4>r&&s+.75*r>>6*(3-r)&63));if(e=n.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(e){var i=e.length,n=this._map;(s=n.charAt(64))&&-1!=(s=e.indexOf(s))&&(i=s);for(var s=[],o=0,r=0;r>>6-r%4*2;s[o>>>2]|=(a|c)<<24-o%4*8,o++}return t.create(s,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){for(var e=b,i=(s=e.lib).WordArray,n=s.Hasher,s=e.algo,o=[],r=[],a=function(t){return 4294967296*(t-(0|t))|0},c=2,u=0;64>u;){var l;t:{for(var h=t.sqrt(l=c),d=2;d<=h;d++)if(!(l%d)){l=!1;break t}l=!0}l&&(8>u&&(o[u]=a(t.pow(c,.5))),r[u]=a(t.pow(c,1/3)),u++),c++}var p=[];s=s.SHA256=n.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],s=i[1],o=i[2],a=i[3],c=i[4],u=i[5],l=i[6],h=i[7],d=0;64>d;d++){if(16>d)p[d]=0|t[e+d];else{var g=p[d-15],f=p[d-2];p[d]=((g<<25|g>>>7)^(g<<14|g>>>18)^g>>>3)+p[d-7]+((f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10)+p[d-16]}g=h+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&u^~c&l)+r[d]+p[d],f=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&s^n&o^s&o),h=l,l=u,u=c,c=a+g|0,a=o,o=s,s=n,n=g+f|0}i[0]=i[0]+n|0,i[1]=i[1]+s|0,i[2]=i[2]+o|0,i[3]=i[3]+a|0,i[4]=i[4]+c|0,i[5]=i[5]+u|0,i[6]=i[6]+l|0,i[7]=i[7]+h|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,s=8*e.sigBytes;return i[s>>>5]|=128<<24-s%32,i[14+(s+64>>>9<<4)]=t.floor(n/4294967296),i[15+(s+64>>>9<<4)]=n,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),e.SHA256=n._createHelper(s),e.HmacSHA256=n._createHmacHelper(s)}(Math),function(){function t(){return n.create.apply(n,arguments)}for(var e=b,i=e.lib.Hasher,n=(o=e.x64).Word,s=o.WordArray,o=e.algo,r=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],a=[],c=0;80>c;c++)a[c]=t();o=o.SHA512=i.extend({_doReset:function(){this._hash=new s.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var i=(h=this._hash.words)[0],n=h[1],s=h[2],o=h[3],c=h[4],u=h[5],l=h[6],h=h[7],d=i.high,p=i.low,g=n.high,f=n.low,m=s.high,b=s.low,w=o.high,_=o.low,y=c.high,A=c.low,v=u.high,T=u.low,C=l.high,S=l.low,E=h.high,k=h.low,x=d,R=p,I=g,O=f,P=m,D=b,M=w,L=_,N=y,z=A,F=v,Z=T,B=C,q=S,U=E,H=k,j=0;80>j;j++){var G=a[j];if(16>j)var Y=G.high=0|t[e+2*j],V=G.low=0|t[e+2*j+1];else{Y=((V=(Y=a[j-15]).high)>>>1|(K=Y.low)<<31)^(V>>>8|K<<24)^V>>>7;var K=(K>>>1|V<<31)^(K>>>8|V<<24)^(K>>>7|V<<25),J=((V=(J=a[j-2]).high)>>>19|($=J.low)<<13)^(V<<3|$>>>29)^V>>>6,$=($>>>19|V<<13)^($<<3|V>>>29)^($>>>6|V<<26),Q=(V=a[j-7]).high,W=(X=a[j-16]).high,X=X.low;Y=(Y=(Y=Y+Q+((V=K+V.low)>>>0>>0?1:0))+J+((V+=$)>>>0<$>>>0?1:0))+W+((V+=X)>>>0>>0?1:0),G.high=Y,G.low=V}G=x&I^x&P^I&P;var tt=R&O^R&D^O&D,et=(K=(x>>>28|R<<4)^(x<<30|R>>>2)^(x<<25|R>>>7),J=(R>>>28|x<<4)^(R<<30|x>>>2)^(R<<25|x>>>7),($=r[j]).high),it=$.low;W=(W=(W=(W=U+((N>>>14|z<<18)^(N>>>18|z<<14)^(N<<23|z>>>9))+(($=H+((z>>>14|N<<18)^(z>>>18|N<<14)^(z<<23|N>>>9)))>>>0>>0?1:0))+(Q=N&F^~N&B)+(($+=X=z&Z^~z&q)>>>0>>0?1:0))+et+(($+=it)>>>0>>0?1:0))+Y+(($+=V)>>>0>>0?1:0),U=B,H=q,B=F,q=Z,F=N,Z=z,N=M+W+((z=L+$|0)>>>0>>0?1:0)|0,M=P,L=D,P=I,D=O,I=x,O=R,x=W+(G=K+G+((V=J+tt)>>>0>>0?1:0))+((R=$+V|0)>>>0<$>>>0?1:0)|0}p=i.low=p+R,i.high=d+x+(p>>>0>>0?1:0),f=n.low=f+O,n.high=g+I+(f>>>0>>0?1:0),b=s.low=b+D,s.high=m+P+(b>>>0>>0?1:0),_=o.low=_+L,o.high=w+M+(_>>>0>>0?1:0),A=c.low=A+z,c.high=y+N+(A>>>0>>0?1:0),T=u.low=T+Z,u.high=v+F+(T>>>0>>0?1:0),S=l.low=S+q,l.high=C+B+(S>>>0>>0?1:0),k=h.low=k+H,h.high=E+U+(k>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(n+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),e.SHA512=i._createHelper(o),e.HmacSHA512=i._createHmacHelper(o)}(),function(){var t=b,e=(s=t.x64).Word,i=s.WordArray,n=(s=t.algo).SHA512,s=s.SHA384=n.extend({_doReset:function(){this._hash=new i.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=n._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=n._createHelper(s),t.HmacSHA384=n._createHmacHelper(s)}();var w,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function y(t){var e,i,n="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),n+=_.charAt(i>>6)+_.charAt(63&i);for(e+1==t.length?(i=parseInt(t.substring(e,e+1),16),n+=_.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),n+=_.charAt(i>>2)+_.charAt((3&i)<<4));(3&n.length)>0;)n+="=";return n}function A(t){var e,i,n,s="",o=0;for(e=0;e>2),i=3&n,o=1):1==o?(s+=x(i<<2|n>>4),i=15&n,o=2):2==o?(s+=x(i),s+=x(n>>2),i=3&n,o=3):(s+=x(i<<2|n>>4),s+=x(15&n),o=0));return 1==o&&(s+=x(i<<2)),s}function v(t){var e,i=A(t),n=new Array;for(e=0;2*e>15;--o>=0;){var c=32767&this[t],u=this[t++]>>15,l=a*c+u*r;s=((c=r*c+((32767&l)<<15)+i[n]+(1073741823&s))>>>30)+(l>>>15)+a*u+(s>>>30),i[n++]=1073741823&c}return s},w=30):"Netscape"!=n.appName?(T.prototype.am=function(t,e,i,n,s,o){for(;--o>=0;){var r=e*this[t++]+i[n]+s;s=Math.floor(r/67108864),i[n++]=67108863&r}return s},w=26):(T.prototype.am=function(t,e,i,n,s,o){for(var r=16383&e,a=e>>14;--o>=0;){var c=16383&this[t],u=this[t++]>>14,l=a*c+u*r;s=((c=r*c+((16383&l)<<14)+i[n]+s)>>28)+(l>>14)+a*u,i[n++]=268435455&c}return s},w=28),T.prototype.DB=w,T.prototype.DM=(1<>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}function P(t){this.m=t}function D(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function Z(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function B(){}function q(t){return t}function U(t){this.r2=C(),this.q3=C(),T.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}P.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},P.prototype.revert=function(t){return t},P.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},P.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},P.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},D.prototype.convert=function(t){var e=C();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(T.ZERO)>0&&this.m.subTo(e,e),e},D.prototype.revert=function(t){var e=C();return t.copyTo(e),this.reduce(e),e},D.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[i=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},D.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},D.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},T.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},T.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},T.prototype.fromString=function(t,e){var i;if(16==e)i=4;else if(8==e)i=3;else if(256==e)i=8;else if(2==e)i=1;else if(32==e)i=5;else{if(4!=e)return void this.fromRadix(t,e);i=2}this.t=0,this.s=0;for(var n=t.length,s=!1,o=0;--n>=0;){var r=8==i?255&t[n]:R(t,n);r<0?"-"==t.charAt(n)&&(s=!0):(s=!1,0==o?this[this.t++]=r:o+i>this.DB?(this[this.t-1]|=(r&(1<>this.DB-o):this[this.t-1]|=r<=this.DB&&(o-=this.DB))}8==i&&0!=(128&t[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},T.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},T.prototype.drShiftTo=function(t,e){for(var i=t;i=0;--i)e[i+r+1]=this[i]>>s|a,a=(this[i]&o)<=0;--i)e[i]=0;e[r]=a,e.t=this.t+r+1,e.s=this.s,e.clamp()},T.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var n=t%this.DB,s=this.DB-n,o=(1<>n;for(var r=i+1;r>n;n>0&&(e[this.t-i-1]|=(this.s&o)<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[i++]=this.DV+n:n>0&&(e[i++]=n),e.t=i,e.clamp()},T.prototype.multiplyTo=function(t,e){var i=this.abs(),n=t.abs(),s=i.t;for(e.t=s+n.t;--s>=0;)e[s]=0;for(s=0;s=0;)t[i]=0;for(i=0;i=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},T.prototype.divRemTo=function(t,e,i){var n=t.abs();if(!(n.t<=0)){var s=this.abs();if(s.t0?(n.lShiftTo(c,o),s.lShiftTo(c,i)):(n.copyTo(o),s.copyTo(i));var u=o.t,l=o[u-1];if(0!=l){var h=l*(1<1?o[u-2]>>this.F2:0),d=this.FV/h,p=(1<=0&&(i[i.t++]=1,i.subTo(b,i)),T.ONE.dlShiftTo(u,b),b.subTo(o,o);o.t=0;){var w=i[--f]==l?this.DM:Math.floor(i[f]*d+(i[f-1]+g)*p);if((i[f]+=o.am(0,w,i,m,0,u))0&&i.rShiftTo(c,i),r<0&&T.ZERO.subTo(i,i)}}},T.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},T.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},T.prototype.exp=function(t,e){if(t>4294967295||t<1)return T.ONE;var i=C(),n=C(),s=e.convert(this),o=O(t)-1;for(s.copyTo(i);--o>=0;)if(e.sqrTo(i,n),(t&1<0)e.mulTo(n,s,i);else{var r=i;i=n,n=r}return e.revert(i)},T.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,n=(1<0)for(a>a)>0&&(s=!0,o=x(i));r>=0;)a>(a+=this.DB-e)):(i=this[r]>>(a-=e)&n,a<=0&&(a+=this.DB,--r)),i>0&&(s=!0),s&&(o+=x(i));return s?o:"0"},T.prototype.negate=function(){var t=C();return T.ZERO.subTo(this,t),t},T.prototype.abs=function(){return this.s<0?this.negate():this},T.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-t.t))return this.s<0?-e:e;for(;--i>=0;)if(0!=(e=this[i]-t[i]))return e;return 0},T.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+O(this[this.t-1]^this.s&this.DM)},T.prototype.mod=function(t){var e=C();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(T.ZERO)>0&&t.subTo(e,e),e},T.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new P(e):new D(e),this.exp(t,i)},T.ZERO=I(0),T.ONE=I(1),B.prototype.convert=q,B.prototype.revert=q,B.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},B.prototype.sqrTo=function(t,e){t.squareTo(e)},U.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=C();return t.copyTo(e),this.reduce(e),e},U.prototype.revert=function(t){return t},U.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},U.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},U.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var H,j,G,Y=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],V=(1<<26)/Y[Y.length-1];function K(){this.i=0,this.j=0,this.S=new Array}function J(){!function(t){j[G++]^=255&t,j[G++]^=t>>8&255,j[G++]^=t>>16&255,j[G++]^=t>>24&255,G>=256&&(G-=256)}((new Date).getTime())}if(T.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},T.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),n=I(i),s=C(),o=C(),r="";for(this.divRemTo(n,s,o);s.signum()>0;)r=(i+o.intValue()).toString(t).substr(1)+r,s.divRemTo(n,s,o);return o.intValue().toString(t)+r},T.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var i=this.chunkSize(e),n=Math.pow(e,i),s=!1,o=0,r=0,a=0;a=i&&(this.dMultiply(n),this.dAddOffset(r,0),o=0,r=0))}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(r,0)),s&&T.ZERO.subTo(this,this)},T.prototype.fromNumber=function(t,e,i){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(T.ONE.shiftLeft(t-1),L,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(T.ONE.shiftLeft(t-1),this);else{var n=new Array,s=7&t;n.length=1+(t>>3),e.nextBytes(n),s>0?n[0]&=(1<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[i++]=n:n<-1&&(e[i++]=this.DV+n),e.t=i,e.clamp()},T.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},T.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},T.prototype.multiplyLowerTo=function(t,e,i){var n,s=Math.min(this.t+t.t,e);for(i.s=0,i.t=s;s>0;)i[--s]=0;for(n=i.t-this.t;s=0;)i[n]=0;for(n=Math.max(e-this.t,0);n0)if(0==e)i=this[0]%t;else for(var n=this.t-1;n>=0;--n)i=(e*i+this[n])%t;return i},T.prototype.millerRabin=function(t){var e=this.subtract(T.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var n=e.shiftRight(i);(t=t+1>>1)>Y.length&&(t=Y.length);for(var s=C(),o=0;o>24},T.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},T.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},T.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var i,n=this.DB-t*this.DB%8,s=0;if(t-- >0)for(n>n)!=(this.s&this.DM)>>n&&(e[s++]=i|this.s<=0;)n<8?(i=(this[t]&(1<>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==s&&(128&this.s)!=(128&i)&&++s,(s>0||i!=this.s)&&(e[s++]=i);return e},T.prototype.equals=function(t){return 0==this.compareTo(t)},T.prototype.min=function(t){return this.compareTo(t)<0?this:t},T.prototype.max=function(t){return this.compareTo(t)>0?this:t},T.prototype.and=function(t){var e=C();return this.bitwiseTo(t,M,e),e},T.prototype.or=function(t){var e=C();return this.bitwiseTo(t,L,e),e},T.prototype.xor=function(t){var e=C();return this.bitwiseTo(t,N,e),e},T.prototype.andNot=function(t){var e=C();return this.bitwiseTo(t,z,e),e},T.prototype.not=function(){for(var t=C(),e=0;e=this.t?0!=this.s:0!=(this[e]&1<1){var l=C();for(n.sqrTo(r[1],l);a<=u;)r[a]=C(),n.mulTo(l,r[a-2],r[a]),a+=2}var h,d,p=t.t-1,g=!0,f=C();for(s=O(t[p])-1;p>=0;){for(s>=c?h=t[p]>>s-c&u:(h=(t[p]&(1<0&&(h|=t[p-1]>>this.DB+s-c)),a=i;0==(1&h);)h>>=1,--a;if((s-=a)<0&&(s+=this.DB,--p),g)r[h].copyTo(o),g=!1;else{for(;a>1;)n.sqrTo(o,f),n.sqrTo(f,o),a-=2;a>0?n.sqrTo(o,f):(d=o,o=f,f=d),n.mulTo(f,r[h],o)}for(;p>=0&&0==(t[p]&1<=0?(i.subTo(n,i),e&&s.subTo(r,s),o.subTo(a,o)):(n.subTo(i,n),e&&r.subTo(s,r),a.subTo(o,a))}return 0!=n.compareTo(T.ONE)?T.ZERO:a.compareTo(t)>=0?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},T.prototype.pow=function(t){return this.exp(t,new B)},T.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var n=e;e=i,i=n}var s=e.getLowestSetBit(),o=i.getLowestSetBit();if(o<0)return e;for(s0&&(e.rShiftTo(o,e),i.rShiftTo(o,i));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return o>0&&i.lShiftTo(o,i),i},T.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=Y[Y.length-1]){for(e=0;e>>8,j[G++]=255&$;G=0,J()}function tt(){if(null==H){for(J(),(H=new K).init(j),G=0;G>24,(16711680&s)>>16,(65280&s)>>8,255&s]))),s+=1;return n}function st(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function ot(t,e){this.x=e,this.q=t}function rt(t,e,i,n){this.curve=t,this.x=e,this.y=i,this.z=null==n?T.ONE:n,this.zinv=null}function at(t,e,i){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(i),this.infinity=new rt(this,null,null)}et.prototype.nextBytes=function(t){var e;for(e=0;e0&&e.length>0))throw"Invalid RSA public key";this.n=it(t,16),this.e=parseInt(e,16)}},st.prototype.encrypt=function(t){var e=function(t,e){if(e=0&&e>0;){var s=t.charCodeAt(n--);s<128?i[--e]=s:s>127&&s<2048?(i[--e]=63&s|128,i[--e]=s>>6|192):(i[--e]=63&s|128,i[--e]=s>>6&63|128,i[--e]=s>>12|224)}i[--e]=0;for(var o=new et,r=new Array;e>2;){for(r[0]=0;0==r[0];)o.nextBytes(r);i[--e]=r[0]}return i[--e]=2,i[--e]=0,new T(i)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var i=this.doPublic(e);if(null==i)return null;var n=i.toString(16);return 0==(1&n.length)?n:"0"+n},st.prototype.encryptOAEP=function(t,e,i){var n=function(t,e,i,n){var s=ut.crypto.MessageDigest,o=ut.crypto.Util,r=null;if(i||(i="sha1"),"string"==typeof i&&(r=s.getCanonicalAlgName(i),n=s.getHashLength(r),i=function(t){return Tt(o.hashHex(Ct(t),r))}),t.length+2*n+2>e)throw"Message too long for RSA";var a,c="";for(a=0;a>3,e,i);if(null==n)return null;var s=this.doPublic(n);if(null==s)return null;var o=s.toString(16);return 0==(1&o.length)?o:"0"+o},st.prototype.type="RSA",ot.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},ot.prototype.toBigInteger=function(){return this.x},ot.prototype.negate=function(){return new ot(this.q,this.x.negate().mod(this.q))},ot.prototype.add=function(t){return new ot(this.q,this.x.add(t.toBigInteger()).mod(this.q))},ot.prototype.subtract=function(t){return new ot(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},ot.prototype.multiply=function(t){return new ot(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},ot.prototype.square=function(){return new ot(this.q,this.x.square().mod(this.q))},ot.prototype.divide=function(t){return new ot(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},rt.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},rt.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},rt.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(T.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(T.ZERO))},rt.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(T.ZERO)&&!this.y.toBigInteger().equals(T.ZERO)},rt.prototype.negate=function(){return new rt(this.curve,this.x,this.y.negate(),this.z)},rt.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),i=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(T.ZERO.equals(i))return T.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new T("3"),s=this.x.toBigInteger(),o=this.y.toBigInteger(),r=(t.x.toBigInteger(),t.y.toBigInteger(),i.square()),a=r.multiply(i),c=s.multiply(r),u=e.square().multiply(this.z),l=u.subtract(c.shiftLeft(1)).multiply(t.z).subtract(a).multiply(i).mod(this.curve.q),h=c.multiply(n).multiply(e).subtract(o.multiply(a)).subtract(u.multiply(e)).multiply(t.z).add(e.multiply(a)).mod(this.curve.q),d=a.multiply(this.z).multiply(t.z).mod(this.curve.q);return new rt(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(h),d)},rt.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=new T("3"),e=this.x.toBigInteger(),i=this.y.toBigInteger(),n=i.multiply(this.z),s=n.multiply(i).mod(this.curve.q),o=this.curve.a.toBigInteger(),r=e.square().multiply(t);T.ZERO.equals(o)||(r=r.add(this.z.square().multiply(o)));var a=(r=r.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(s)).shiftLeft(1).multiply(n).mod(this.curve.q),c=r.multiply(t).multiply(e).subtract(s.shiftLeft(1)).shiftLeft(2).multiply(s).subtract(r.square().multiply(r)).mod(this.curve.q),u=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new rt(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(c),u)},rt.prototype.multiply=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new T("3")),s=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var r=n.testBit(e);r!=i.testBit(e)&&(o=o.add(r?this:s))}return o},rt.prototype.multiplyTwo=function(t,e,i){var n;n=t.bitLength()>i.bitLength()?t.bitLength()-1:i.bitLength()-1;for(var s=this.curve.getInfinity(),o=this.add(e);n>=0;)s=s.twice(),t.testBit(n)?s=i.testBit(n)?s.add(o):s.add(this):i.testBit(n)&&(s=s.add(e)),--n;return s},at.prototype.getQ=function(){return this.q},at.prototype.getA=function(){return this.a},at.prototype.getB=function(){return this.b},at.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},at.prototype.getInfinity=function(){return this.infinity},at.prototype.fromBigInteger=function(t){return new ot(this.q,t)},at.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,i=t.substr(2,e),n=t.substr(e+2,e);return new rt(this,this.fromBigInteger(new T(i,16)),this.fromBigInteger(new T(n,16)));default:return null}},ot.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},rt.prototype.getEncoded=function(t){var e=function(t,e){var i=t.toByteArrayUnsigned();if(ei.length;)i.unshift(0);return i},i=this.getX().toBigInteger(),n=this.getY().toBigInteger(),s=e(i,32);return t?n.isEven()?s.unshift(2):s.unshift(3):(s.unshift(4),s=s.concat(e(n,32))),s},rt.decodeFrom=function(t,e){var i=e.length-1,n=e.slice(1,1+i/2),s=e.slice(1+i/2,1+i);n.unshift(0),s.unshift(0);var o=new T(n),r=new T(s);return new rt(t,t.fromBigInteger(o),t.fromBigInteger(r))},rt.decodeFromHex=function(t,e){e.substr(0,2);var i=e.length-2,n=e.substr(2,i/2),s=e.substr(2+i/2,i/2),o=new T(n,16),r=new T(s,16);return new rt(t,t.fromBigInteger(o),t.fromBigInteger(r))},rt.prototype.add2D=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;if(this.x.equals(t.x))return this.y.equals(t.y)?this.twice():this.curve.getInfinity();var e=t.x.subtract(this.x),i=t.y.subtract(this.y).divide(e),n=i.square().subtract(this.x).subtract(t.x),s=i.multiply(this.x.subtract(n)).subtract(this.y);return new rt(this.curve,n,s)},rt.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=this.curve.fromBigInteger(T.valueOf(2)),e=this.curve.fromBigInteger(T.valueOf(3)),i=this.x.square().multiply(e).add(this.curve.a).divide(this.y.multiply(t)),n=i.square().subtract(this.x.multiply(t)),s=i.multiply(this.x.subtract(n)).subtract(this.y);return new rt(this.curve,n,s)},rt.prototype.multiply2D=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new T("3")),s=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var r=n.testBit(e);r!=i.testBit(e)&&(o=o.add2D(r?this:s))}return o},rt.prototype.isOnCurve=function(){var t=this.getX().toBigInteger(),e=this.getY().toBigInteger(),i=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),s=this.curve.getQ(),o=e.multiply(e).mod(s),r=t.multiply(t).multiply(t).add(i.multiply(t)).add(n).mod(s);return o.equals(r)},rt.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},rt.prototype.validate=function(){var t=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var e=this.getX().toBigInteger(),i=this.getY().toBigInteger();if(e.compareTo(T.ONE)<0||e.compareTo(t.subtract(T.ONE))>0)throw new Error("x coordinate out of bounds");if(i.compareTo(T.ONE)<0||i.compareTo(t.subtract(T.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(t).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ct=function(){var t=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),e=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),n={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function s(t,e,i){return e?n[e]:String.fromCharCode(parseInt(i,16))}var o=new String(""),r=Object.hasOwnProperty;return function(n,a){var c,u,l=n.match(t),h=l[0],d=!1;"{"===h?c={}:"["===h?c=[]:(c=[],d=!0);for(var p=[c],g=1-d,f=l.length;g=0;)delete s[o[l]]}return a.call(e,n,s)}({"":c},"")),c}}();void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.asn1&&ut.asn1||(ut.asn1={}),ut.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var i=e.substr(1).length;i%2==1?i+=1:e.match(/^[0-7]/)||(i+=2);for(var n="",s=0;s15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+i).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ut.asn1.DERAbstractString=function(t){ut.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=At(this.s).toLowerCase()},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},o.lang.extend(ut.asn1.DERAbstractString,ut.asn1.ASN1Object),ut.asn1.DERAbstractTime=function(t){ut.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,i){var n=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());"utc"==e&&(o=o.substr(2,2));var r=o+n(String(s.getMonth()+1),2)+n(String(s.getDate()),2)+n(String(s.getHours()),2)+n(String(s.getMinutes()),2)+n(String(s.getSeconds()),2);if(!0===i){var a=s.getMilliseconds();if(0!=a){var c=n(String(a),3);r=r+"."+(c=c.replace(/[0]+$/,""))}}return r+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=mt(t)},this.setByDateValue=function(t,e,i,n,s,o){var r=new Date(Date.UTC(t,e-1,i,n,s,o,0));this.setByDate(r)},this.getFreshValueHex=function(){return this.hV}},o.lang.extend(ut.asn1.DERAbstractTime,ut.asn1.ASN1Object),ut.asn1.DERAbstractStructured=function(t){ut.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},o.lang.extend(ut.asn1.DERAbstractStructured,ut.asn1.ASN1Object),ut.asn1.DERBoolean=function(){ut.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},o.lang.extend(ut.asn1.DERBoolean,ut.asn1.ASN1Object),ut.asn1.DERInteger=function(t){ut.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ut.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new T(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},o.lang.extend(ut.asn1.DERInteger,ut.asn1.ASN1Object),ut.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=ut.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}ut.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7s.length&&(s=n[i]);return(t=t.replace(s,"::")).slice(1,-1)}function Nt(t){var e="malformed hex value";if(!t.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw e;if(8!=t.length)return 32==t.length?Lt(t):t;try{return parseInt(t.substr(0,2),16)+"."+parseInt(t.substr(2,2),16)+"."+parseInt(t.substr(4,2),16)+"."+parseInt(t.substr(6,2),16)}catch(t){throw e}}function zt(t){for(var e=encodeURIComponent(t),i="",n=0;n"7"?"00"+t:t}dt.getLblen=function(t,e){if("8"!=t.substr(e+2,1))return 1;var i=parseInt(t.substr(e+3,1));return 0==i?-1:0=2*o)break;if(a>=200)break;n.push(c),r=c,a++}return n},dt.getNthChildIdx=function(t,e,i){return dt.getChildIdx(t,e)[i]},dt.getIdxbyList=function(t,e,i,n){var s,o,r=dt;if(0==i.length){if(void 0!==n&&t.substr(e,2)!==n)throw"checking tag doesn't match: "+t.substr(e,2)+"!="+n;return e}return s=i.shift(),o=r.getChildIdx(t,e),r.getIdxbyList(t,o[s],i,n)},dt.getTLVbyList=function(t,e,i,n){var s=dt,o=s.getIdxbyList(t,e,i);if(void 0===o)throw"can't find nthList object";if(void 0!==n&&t.substr(o,2)!=n)throw"checking tag doesn't match: "+t.substr(o,2)+"!="+n;return s.getTLV(t,o)},dt.getVbyList=function(t,e,i,n,s){var o,r,a=dt;if(void 0===(o=a.getIdxbyList(t,e,i,n)))throw"can't find nthList object";return r=a.getV(t,o),!0===s&&(r=r.substr(2)),r},dt.hextooidstr=function(t){var e=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},i=[],n=t.substr(0,2),s=parseInt(n,16);i[0]=new String(Math.floor(s/40)),i[1]=new String(s%40);for(var o=t.substr(2),r=[],a=0;a0&&(l=l+"."+c.join(".")),l},dt.dump=function(t,e,i,n){var s=dt,o=s.getV,r=s.dump,a=s.getChildIdx,c=t;t instanceof ut.asn1.ASN1Object&&(c=t.getEncodedHex());var u=function(t,e){return t.length<=2*e?t:t.substr(0,e)+"..(total "+t.length/2+"bytes).."+t.substr(t.length-e,e)};void 0===e&&(e={ommit_long_octet:32}),void 0===i&&(i=0),void 0===n&&(n="");var l=e.ommit_long_octet;if("01"==c.substr(i,2))return"00"==(h=o(c,i))?n+"BOOLEAN FALSE\n":n+"BOOLEAN TRUE\n";if("02"==c.substr(i,2))return n+"INTEGER "+u(h=o(c,i),l)+"\n";if("03"==c.substr(i,2))return n+"BITSTRING "+u(h=o(c,i),l)+"\n";if("04"==c.substr(i,2)){var h=o(c,i);return s.isASN1HEX(h)?(v=n+"OCTETSTRING, encapsulates\n")+r(h,e,0,n+" "):n+"OCTETSTRING "+u(h,l)+"\n"}if("05"==c.substr(i,2))return n+"NULL\n";if("06"==c.substr(i,2)){var d=o(c,i),p=ut.asn1.ASN1Util.oidHexToInt(d),g=ut.asn1.x509.OID.oid2name(p),f=p.replace(/\./g," ");return""!=g?n+"ObjectIdentifier "+g+" ("+f+")\n":n+"ObjectIdentifier ("+f+")\n"}if("0c"==c.substr(i,2))return n+"UTF8String '"+vt(o(c,i))+"'\n";if("13"==c.substr(i,2))return n+"PrintableString '"+vt(o(c,i))+"'\n";if("14"==c.substr(i,2))return n+"TeletexString '"+vt(o(c,i))+"'\n";if("16"==c.substr(i,2))return n+"IA5String '"+vt(o(c,i))+"'\n";if("17"==c.substr(i,2))return n+"UTCTime "+vt(o(c,i))+"\n";if("18"==c.substr(i,2))return n+"GeneralizedTime "+vt(o(c,i))+"\n";if("30"==c.substr(i,2)){if("3000"==c.substr(i,4))return n+"SEQUENCE {}\n";v=n+"SEQUENCE\n";var m=e;if((2==(_=a(c,i)).length||3==_.length)&&"06"==c.substr(_[0],2)&&"04"==c.substr(_[_.length-1],2)){g=s.oidname(o(c,_[0]));var b=JSON.parse(JSON.stringify(e));b.x509ExtName=g,m=b}for(var w=0;w<_.length;w++)v+=r(c,m,_[w],n+" ");return v}if("31"==c.substr(i,2)){v=n+"SET\n";var _=a(c,i);for(w=0;w<_.length;w++)v+=r(c,e,_[w],n+" ");return v}var y=parseInt(c.substr(i,2),16);if(0!=(128&y)){var A=31&y;if(0!=(32&y)){var v=n+"["+A+"]\n";for(_=a(c,i),w=0;w<_.length;w++)v+=r(c,e,_[w],n+" ");return v}return"68747470"==(h=o(c,i)).substr(0,8)&&(h=vt(h)),"subjectAltName"===e.x509ExtName&&2==A&&(h=vt(h)),n+"["+A+"] "+h+"\n"}return n+"UNKNOWN("+c.substr(i,2)+") "+o(c,i)+"\n"},dt.isASN1HEX=function(t){var e=dt;if(t.length%2==1)return!1;var i=e.getVblen(t,0),n=t.substr(0,2),s=e.getL(t,0);return t.length-n.length-s.length==2*i},dt.oidname=function(t){var e=ut.asn1;ut.lang.String.isHex(t)&&(t=e.ASN1Util.oidHexToInt(t));var i=e.x509.OID.oid2name(t);return""===i&&(i=t),i},void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.lang&&ut.lang||(ut.lang={}),ut.lang.String=function(){},"function"==typeof t?(e.utf8tob64u=lt=function(e){return bt(new t(e,"utf8").toString("base64"))},e.b64utoutf8=ht=function(e){return new t(wt(e),"base64").toString("utf8")}):(e.utf8tob64u=lt=function(t){return _t(Pt(zt(t)))},e.b64utoutf8=ht=function(t){return decodeURIComponent(Dt(yt(t)))}),ut.lang.String.isInteger=function(t){return!!t.match(/^[0-9]+$/)||!!t.match(/^-[0-9]+$/)},ut.lang.String.isHex=function(t){return!(t.length%2!=0||!t.match(/^[0-9a-f]+$/)&&!t.match(/^[0-9A-F]+$/))},ut.lang.String.isBase64=function(t){return!(!(t=t.replace(/\s+/g,"")).match(/^[0-9A-Za-z+\/]+={0,3}$/)||t.length%4!=0)},ut.lang.String.isBase64URL=function(t){return!t.match(/[+/=]/)&&(t=wt(t),ut.lang.String.isBase64(t))},ut.lang.String.isIntegerArray=function(t){return!!(t=t.replace(/\s+/g,"")).match(/^\[[0-9,]+\]$/)},void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.crypto&&ut.crypto||(ut.crypto={}),ut.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:b.algo.MD5,sha1:b.algo.SHA1,sha224:b.algo.SHA224,sha256:b.algo.SHA256,sha384:b.algo.SHA384,sha512:b.algo.SHA512,ripemd160:b.algo.RIPEMD160},this.getDigestInfoHex=function(t,e){if(void 0===this.DIGESTINFOHEAD[e])throw"alg not supported in Util.DIGESTINFOHEAD: "+e;return this.DIGESTINFOHEAD[e]+t},this.getPaddedDigestInfoHex=function(t,e,i){var n=this.getDigestInfoHex(t,e),s=i/4;if(n.length+22>s)throw"key is too short for SigAlg: keylen="+i+","+e;for(var o="0001",r="00"+n,a="",c=s-o.length-r.length,u=0;u=0)return!1;if(i.compareTo(T.ONE)<0||i.compareTo(s)>=0)return!1;var r=i.modInverse(s),a=t.multiply(r).mod(s),c=e.multiply(r).mod(s);return o.multiply(a).add(n.multiply(c)).getX().toBigInteger().mod(s).equals(e)},this.serializeSig=function(t,e){var i=t.toByteArraySigned(),n=e.toByteArraySigned(),s=[];return s.push(2),s.push(i.length),(s=s.concat(i)).push(2),s.push(n.length),(s=s.concat(n)).unshift(s.length),s.unshift(48),s},this.parseSig=function(t){var e;if(48!=t[0])throw new Error("Signature not a valid DERSequence");if(2!=t[e=2])throw new Error("First element in signature must be a DERInteger");var i=t.slice(e+2,e+2+t[e+1]);if(2!=t[e+=2+t[e+1]])throw new Error("Second element in signature must be a DERInteger");var n=t.slice(e+2,e+2+t[e+1]);return e+=2+t[e+1],{r:T.fromByteArrayUnsigned(i),s:T.fromByteArrayUnsigned(n)}},this.parseSigCompact=function(t){if(65!==t.length)throw"Signature has the wrong length";var e=t[0]-27;if(e<0||e>7)throw"Invalid signature type";var i=this.ecparams.n;return{r:T.fromByteArrayUnsigned(t.slice(1,33)).mod(i),s:T.fromByteArrayUnsigned(t.slice(33,65)).mod(i),i:e}},this.readPKCS5PrvKeyHex=function(t){var e,i,n,s=ut.crypto.ECDSA.getName,o=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=o(t,0,[2,0],"06"),i=o(t,0,[1],"04");try{n=o(t,0,[3,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=s(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(t){var e,i,n,s=ut.crypto.ECDSA.getName,o=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{o(t,0,[1,0],"06"),e=o(t,0,[1,1],"06"),i=o(t,0,[2,0,1],"04");try{n=o(t,0,[2,0,2,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=s(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PubKeyHex=function(t){var e,i,n=ut.crypto.ECDSA.getName,s=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{s(t,0,[0,0],"06"),e=s(t,0,[0,1],"06"),i=s(t,0,[1],"03").substr(2)}catch(t){throw"malformed PKCS#8 ECC public key"}if(this.curveName=n(e),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},this.readCertPubKeyHex=function(t,e){5!==e&&(e=6);var i,n,s=ut.crypto.ECDSA.getName,o=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{i=o(t,0,[0,e,0,1],"06"),n=o(t,0,[0,e,1],"03").substr(2)}catch(t){throw"malformed X.509 certificate ECC public key"}if(this.curveName=s(i),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},void 0!==t&&void 0!==t.curve&&(this.curveName=t.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==t&&(void 0!==t.prv&&this.setPrivateKeyHex(t.prv),void 0!==t.pub&&this.setPublicKeyHex(t.pub))},ut.crypto.ECDSA.parseSigHex=function(t){var e=ut.crypto.ECDSA.parseSigHexInHexRS(t);return{r:new T(e.r,16),s:new T(e.s,16)}},ut.crypto.ECDSA.parseSigHexInHexRS=function(t){var e=dt.getChildIdx,i=dt.getV;if("30"!=t.substr(0,2))throw"signature is not a ASN.1 sequence";var n=e(t,0);if(2!=n.length)throw"number of signature ASN.1 sequence elements seem wrong";var s=n[0],o=n[1];if("02"!=t.substr(s,2))throw"1st item of sequene of signature is not ASN.1 integer";if("02"!=t.substr(o,2))throw"2nd item of sequene of signature is not ASN.1 integer";return{r:i(t,s),s:i(t,o)}},ut.crypto.ECDSA.asn1SigToConcatSig=function(t){var e=ut.crypto.ECDSA.parseSigHexInHexRS(t),i=e.r,n=e.s;if("00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),"00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),i.length%32==30&&(i="00"+i),n.length%32==30&&(n="00"+n),i.length%32!=0)throw"unknown ECDSA sig r length error";if(n.length%32!=0)throw"unknown ECDSA sig s length error";return i+n},ut.crypto.ECDSA.concatSigToASN1Sig=function(t){if(t.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var e=t.substr(0,t.length/2),i=t.substr(t.length/2);return ut.crypto.ECDSA.hexRSSigToASN1Sig(e,i)},ut.crypto.ECDSA.hexRSSigToASN1Sig=function(t,e){var i=new T(t,16),n=new T(e,16);return ut.crypto.ECDSA.biRSSigToASN1Sig(i,n)},ut.crypto.ECDSA.biRSSigToASN1Sig=function(t,e){var i=ut.asn1,n=new i.DERInteger({bigint:t}),s=new i.DERInteger({bigint:e});return new i.DERSequence({array:[n,s]}).getEncodedHex()},ut.crypto.ECDSA.getName=function(t){return"2a8648ce3d030107"===t?"secp256r1":"2b8104000a"===t?"secp256k1":"2b81040022"===t?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(t)?"secp256r1":-1!=="|secp256k1|".indexOf(t)?"secp256k1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(t)?"secp384r1":null},void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.crypto&&ut.crypto||(ut.crypto={}),ut.crypto.ECParameterDB=new function(){var t={},e={};function i(t){return new T(t,16)}this.getByName=function(i){var n=i;if(void 0!==e[n]&&(n=e[i]),void 0!==t[n])return t[n];throw"unregistered EC curve name: "+n},this.regist=function(n,s,o,r,a,c,u,l,h,d,p,g){t[n]={};var f=i(o),m=i(r),b=i(a),w=i(c),_=i(u),y=new at(f,m,b),A=y.decodePointHex("04"+l+h);t[n].name=n,t[n].keylen=s,t[n].curve=y,t[n].G=A,t[n].n=w,t[n].h=_,t[n].oid=p,t[n].info=g;for(var v=0;v=2*a)break}var h={};return h.keyhex=c.substr(0,2*s[t].keylen),h.ivhex=c.substr(2*s[t].keylen,2*s[t].ivlen),h},a=function(t,e,i,n){var o=b.enc.Base64.parse(t),r=b.enc.Hex.stringify(o);return(0,s[e].proc)(r,i,n)};return{version:"1.0.0",parsePKCS5PEM:function(t){return o(t)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(t,e,i){return r(t,e,i)},decryptKeyB64:function(t,e,i,n){return a(t,e,i,n)},getDecryptedKeyHex:function(t,e){var i=o(t),n=i.cipher,s=i.ivsalt,c=i.data,u=r(n,e,s).keyhex;return a(c,n,u,s)},getEncryptedPKCS5PEMFromPrvKeyHex:function(t,e,i,n,o){var a="";if(void 0!==n&&null!=n||(n="AES-256-CBC"),void 0===s[n])throw"KEYUTIL unsupported algorithm: "+n;return void 0!==o&&null!=o||(o=function(t){var e=b.lib.WordArray.random(t);return b.enc.Hex.stringify(e)}(s[n].ivlen).toUpperCase()),a="-----BEGIN "+t+" PRIVATE KEY-----\r\n",a+="Proc-Type: 4,ENCRYPTED\r\n",a+="DEK-Info: "+n+","+o+"\r\n",a+="\r\n",(a+=function(t,e,i,n){return(0,s[e].eproc)(t,i,n)}(e,n,r(n,i,o).keyhex,o).replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+t+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(e){var i=dt.getChildIdx,n=dt.getV,s={},o=i(e,0);if(2!=o.length)throw"malformed format: SEQUENCE(0).items != 2: "+o.length;s.ciphertext=n(e,o[1]);var r=i(e,o[0]);if(2!=r.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+r.length;if("2a864886f70d01050d"!=n(e,r[0]))throw"this only supports pkcs5PBES2";var a=i(e,r[1]);if(2!=r.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+a.length;var c=i(e,a[1]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+c.length;if("2a864886f70d0307"!=n(e,c[0]))throw"this only supports TripleDES";s.encryptionSchemeAlg="TripleDES",s.encryptionSchemeIV=n(e,c[1]);var u=i(e,a[0]);if(2!=u.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+u.length;if("2a864886f70d01050c"!=n(e,u[0]))throw"this only supports pkcs5PBKDF2";var l=i(e,u[1]);if(l.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+l.length;s.pbkdf2Salt=n(e,l[0]);var h=n(e,l[1]);try{s.pbkdf2Iter=parseInt(h,16)}catch(t){throw"malformed format pbkdf2Iter: "+h}return s},getPBKDF2KeyHexFromParam:function(t,e){var i=b.enc.Hex.parse(t.pbkdf2Salt),n=b.PBKDF2(e,i,{keySize:6,iterations:t.pbkdf2Iter});return b.enc.Hex.stringify(n)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(t,e){var i=Rt(t,"ENCRYPTED PRIVATE KEY"),n=this.parseHexOfEncryptedPKCS8(i),s=Zt.getPBKDF2KeyHexFromParam(n,e),o={};o.ciphertext=b.enc.Hex.parse(n.ciphertext);var r=b.enc.Hex.parse(s),a=b.enc.Hex.parse(n.encryptionSchemeIV),c=b.TripleDES.decrypt(o,r,{iv:a});return b.enc.Hex.stringify(c)},getKeyFromEncryptedPKCS8PEM:function(t,e){var i=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(t,e);return this.getKeyFromPlainPrivatePKCS8Hex(i)},parsePlainPrivatePKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,s={algparam:null};if("30"!=t.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var o=i(t,0);if(3!=o.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=t.substr(o[1],2))throw"malformed PKCS8 private key(code:003)";var r=i(t,o[1]);if(2!=r.length)throw"malformed PKCS8 private key(code:004)";if("06"!=t.substr(r[0],2))throw"malformed PKCS8 private key(code:005)";if(s.algoid=n(t,r[0]),"06"==t.substr(r[1],2)&&(s.algparam=n(t,r[1])),"04"!=t.substr(o[2],2))throw"malformed PKCS8 private key(code:006)";return s.keyidx=e.getVidx(t,o[2]),s},getKeyFromPlainPrivatePKCS8PEM:function(t){var e=Rt(t,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(e)},getKeyFromPlainPrivatePKCS8Hex:function(t){var e,i=this.parsePlainPrivatePKCS8Hex(t);if("2a864886f70d010101"==i.algoid)e=new st;else if("2a8648ce380401"==i.algoid)e=new ut.crypto.DSA;else{if("2a8648ce3d0201"!=i.algoid)throw"unsupported private key algorithm";e=new ut.crypto.ECDSA}return e.readPKCS8PrvKeyHex(t),e},_getKeyFromPublicPKCS8Hex:function(t){var e,i=dt.getVbyList(t,0,[0,0],"06");if("2a864886f70d010101"===i)e=new st;else if("2a8648ce380401"===i)e=new ut.crypto.DSA;else{if("2a8648ce3d0201"!==i)throw"unsupported PKCS#8 public key hex";e=new ut.crypto.ECDSA}return e.readPKCS8PubKeyHex(t),e},parsePublicRawRSAKeyHex:function(t){var e=dt.getChildIdx,i=dt.getV,n={};if("30"!=t.substr(0,2))throw"malformed RSA key(code:001)";var s=e(t,0);if(2!=s.length)throw"malformed RSA key(code:002)";if("02"!=t.substr(s[0],2))throw"malformed RSA key(code:003)";if(n.n=i(t,s[0]),"02"!=t.substr(s[1],2))throw"malformed RSA key(code:004)";return n.e=i(t,s[1]),n},parsePublicPKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,s={algparam:null},o=i(t,0);if(2!=o.length)throw"outer DERSequence shall have 2 elements: "+o.length;var r=o[0];if("30"!=t.substr(r,2))throw"malformed PKCS8 public key(code:001)";var a=i(t,r);if(2!=a.length)throw"malformed PKCS8 public key(code:002)";if("06"!=t.substr(a[0],2))throw"malformed PKCS8 public key(code:003)";if(s.algoid=n(t,a[0]),"06"==t.substr(a[1],2)?s.algparam=n(t,a[1]):"30"==t.substr(a[1],2)&&(s.algparam={},s.algparam.p=e.getVbyList(t,a[1],[0],"02"),s.algparam.q=e.getVbyList(t,a[1],[1],"02"),s.algparam.g=e.getVbyList(t,a[1],[2],"02")),"03"!=t.substr(o[1],2))throw"malformed PKCS8 public key(code:004)";return s.key=n(t,o[1]).substr(2),s}}}();Zt.getKey=function(t,e,i){var n,s=(b=dt).getChildIdx,o=b.getVbyList,r=ut.crypto,a=r.ECDSA,c=r.DSA,u=st,l=Rt,h=Zt;if(void 0!==u&&t instanceof u)return t;if(void 0!==a&&t instanceof a)return t;if(void 0!==c&&t instanceof c)return t;if(void 0!==t.curve&&void 0!==t.xy&&void 0===t.d)return new a({pub:t.xy,curve:t.curve});if(void 0!==t.curve&&void 0!==t.d)return new a({prv:t.d,curve:t.curve});if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(R=new u).setPublic(t.n,t.e),R;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.co&&void 0===t.qi)return(R=new u).setPrivateEx(t.n,t.e,t.d,t.p,t.q,t.dp,t.dq,t.co),R;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0===t.p)return(R=new u).setPrivate(t.n,t.e,t.d),R;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0===t.x)return(R=new c).setPublic(t.p,t.q,t.g,t.y),R;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0!==t.x)return(R=new c).setPrivate(t.p,t.q,t.g,t.y,t.x),R;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(R=new u).setPublic(yt(t.n),yt(t.e)),R;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.qi)return(R=new u).setPrivateEx(yt(t.n),yt(t.e),yt(t.d),yt(t.p),yt(t.q),yt(t.dp),yt(t.dq),yt(t.qi)),R;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d)return(R=new u).setPrivate(yt(t.n),yt(t.e),yt(t.d)),R;if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0===t.d){var d=(x=new a({curve:t.crv})).ecparams.keylen/4,p="04"+("0000000000"+yt(t.x)).slice(-d)+("0000000000"+yt(t.y)).slice(-d);return x.setPublicKeyHex(p),x}if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0!==t.d){d=(x=new a({curve:t.crv})).ecparams.keylen/4,p="04"+("0000000000"+yt(t.x)).slice(-d)+("0000000000"+yt(t.y)).slice(-d);var g=("0000000000"+yt(t.d)).slice(-d);return x.setPublicKeyHex(p),x.setPrivateKeyHex(g),x}if("pkcs5prv"===i){var f,m=t,b=dt;if(9===(f=s(m,0)).length)(R=new u).readPKCS5PrvKeyHex(m);else if(6===f.length)(R=new c).readPKCS5PrvKeyHex(m);else{if(!(f.length>2&&"04"===m.substr(f[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(R=new a).readPKCS5PrvKeyHex(m)}return R}if("pkcs8prv"===i)return h.getKeyFromPlainPrivatePKCS8Hex(t);if("pkcs8pub"===i)return h._getKeyFromPublicPKCS8Hex(t);if("x509pub"===i)return jt.getPublicKeyFromCertHex(t);if(-1!=t.indexOf("-END CERTIFICATE-",0)||-1!=t.indexOf("-END X509 CERTIFICATE-",0)||-1!=t.indexOf("-END TRUSTED CERTIFICATE-",0))return jt.getPublicKeyFromCertPEM(t);if(-1!=t.indexOf("-END PUBLIC KEY-")){var w=Rt(t,"PUBLIC KEY");return h._getKeyFromPublicPKCS8Hex(w)}if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var _=l(t,"RSA PRIVATE KEY");return h.getKey(_,null,"pkcs5prv")}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var y=o(n=l(t,"DSA PRIVATE KEY"),0,[1],"02"),A=o(n,0,[2],"02"),v=o(n,0,[3],"02"),C=o(n,0,[4],"02"),S=o(n,0,[5],"02");return(R=new c).setPrivate(new T(y,16),new T(A,16),new T(v,16),new T(C,16),new T(S,16)),R}if(-1!=t.indexOf("-END PRIVATE KEY-"))return h.getKeyFromPlainPrivatePKCS8PEM(t);if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var E=h.getDecryptedKeyHex(t,e),k=new st;return k.readPKCS5PrvKeyHex(E),k}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var x,R=o(n=h.getDecryptedKeyHex(t,e),0,[1],"04"),I=o(n,0,[2,0],"06"),O=o(n,0,[3,0],"03").substr(2);if(void 0===ut.crypto.OID.oidhex2name[I])throw"undefined OID(hex) in KJUR.crypto.OID: "+I;return(x=new a({curve:ut.crypto.OID.oidhex2name[I]})).setPublicKeyHex(O),x.setPrivateKeyHex(R),x.isPublic=!1,x}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED"))return y=o(n=h.getDecryptedKeyHex(t,e),0,[1],"02"),A=o(n,0,[2],"02"),v=o(n,0,[3],"02"),C=o(n,0,[4],"02"),S=o(n,0,[5],"02"),(R=new c).setPrivate(new T(y,16),new T(A,16),new T(v,16),new T(C,16),new T(S,16)),R;if(-1!=t.indexOf("-END ENCRYPTED PRIVATE KEY-"))return h.getKeyFromEncryptedPKCS8PEM(t,e);throw"not supported argument"},Zt.generateKeypair=function(t,e){if("RSA"==t){var i=e;(r=new st).generate(i,"10001"),r.isPrivate=!0,r.isPublic=!0;var n=new st,s=r.n.toString(16),o=r.e.toString(16);return n.setPublic(s,o),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=r,a.pubKeyObj=n,a}if("EC"==t){var r,a,c=e,u=new ut.crypto.ECDSA({curve:c}).generateKeyPairHex();return(r=new ut.crypto.ECDSA({curve:c})).setPublicKeyHex(u.ecpubhex),r.setPrivateKeyHex(u.ecprvhex),r.isPrivate=!0,r.isPublic=!1,(n=new ut.crypto.ECDSA({curve:c})).setPublicKeyHex(u.ecpubhex),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=r,a.pubKeyObj=n,a}throw"unknown algorithm: "+t},Zt.getPEM=function(t,e,i,n,s,o){var r=ut.asn1,a=r.DERObjectIdentifier,c=r.DERInteger,u=r.ASN1Util.newObject,l=ut.crypto,h=l.DSA,d=l.ECDSA,p=st;function g(t){return u({seq:[{int:0},{int:{bigint:t.n}},{int:t.e},{int:{bigint:t.d}},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.dmp1}},{int:{bigint:t.dmq1}},{int:{bigint:t.coeff}}]})}function f(t){return u({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a0",!0,{oid:{name:t.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]})}function m(t){return u({seq:[{int:0},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}},{int:{bigint:t.y}},{int:{bigint:t.x}}]})}if((void 0!==p&&t instanceof p||void 0!==h&&t instanceof h||void 0!==d&&t instanceof d)&&1==t.isPublic&&(void 0===e||"PKCS8PUB"==e))return xt(A=new(0,r.x509.SubjectPublicKeyInfo)(t).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==e&&void 0!==p&&t instanceof p&&(void 0===i||null==i)&&1==t.isPrivate)return xt(A=g(t).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==e&&void 0!==d&&t instanceof d&&(void 0===i||null==i)&&1==t.isPrivate){var w=new a({name:t.curveName}).getEncodedHex(),_=f(t).getEncodedHex(),y="";return(y+=xt(w,"EC PARAMETERS"))+xt(_,"EC PRIVATE KEY")}if("PKCS1PRV"==e&&void 0!==h&&t instanceof h&&(void 0===i||null==i)&&1==t.isPrivate)return xt(A=m(t).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==e&&void 0!==p&&t instanceof p&&void 0!==i&&null!=i&&1==t.isPrivate){var A=g(t).getEncodedHex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",A,i,n,o)}if("PKCS5PRV"==e&&void 0!==d&&t instanceof d&&void 0!==i&&null!=i&&1==t.isPrivate)return A=f(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",A,i,n,o);if("PKCS5PRV"==e&&void 0!==h&&t instanceof h&&void 0!==i&&null!=i&&1==t.isPrivate)return A=m(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",A,i,n,o);var v=function(t,e){var i=T(t,e);return new u({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:i.pbkdf2Salt}},{int:i.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:i.encryptionSchemeIV}}]}]}]},{octstr:{hex:i.ciphertext}}]}).getEncodedHex()},T=function(t,e){var i=b.lib.WordArray.random(8),n=b.lib.WordArray.random(8),s=b.PBKDF2(e,i,{keySize:6,iterations:100}),o=b.enc.Hex.parse(t),r=b.TripleDES.encrypt(o,s,{iv:n})+"",a={};return a.ciphertext=r,a.pbkdf2Salt=b.enc.Hex.stringify(i),a.pbkdf2Iter=100,a.encryptionSchemeAlg="DES-EDE3-CBC",a.encryptionSchemeIV=b.enc.Hex.stringify(n),a};if("PKCS8PRV"==e&&null!=p&&t instanceof p&&1==t.isPrivate){var C=g(t).getEncodedHex();return A=u({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===i||null==i?xt(A,"PRIVATE KEY"):xt(_=v(A,i),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==e&&void 0!==d&&t instanceof d&&1==t.isPrivate)return C=new u({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]}).getEncodedHex(),A=u({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:t.curveName}}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===i||null==i?xt(A,"PRIVATE KEY"):xt(_=v(A,i),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==e&&void 0!==h&&t instanceof h&&1==t.isPrivate)return C=new c({bigint:t.x}).getEncodedHex(),A=u({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}}]}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===i||null==i?xt(A,"PRIVATE KEY"):xt(_=v(A,i),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},Zt.getKeyFromCSRPEM=function(t){var e=Rt(t,"CERTIFICATE REQUEST");return Zt.getKeyFromCSRHex(e)},Zt.getKeyFromCSRHex=function(t){var e=Zt.parseCSRHex(t);return Zt.getKey(e.p8pubkeyhex,null,"pkcs8pub")},Zt.parseCSRHex=function(t){var e=dt.getChildIdx,i=dt.getTLV,n={},s=t;if("30"!=s.substr(0,2))throw"malformed CSR(code:001)";var o=e(s,0);if(o.length<1)throw"malformed CSR(code:002)";if("30"!=s.substr(o[0],2))throw"malformed CSR(code:003)";var r=e(s,o[0]);if(r.length<3)throw"malformed CSR(code:004)";return n.p8pubkeyhex=i(s,r[2]),n},Zt.getJWKFromKey=function(t){var e={};if(t instanceof st&&t.isPrivate)return e.kty="RSA",e.n=_t(t.n.toString(16)),e.e=_t(t.e.toString(16)),e.d=_t(t.d.toString(16)),e.p=_t(t.p.toString(16)),e.q=_t(t.q.toString(16)),e.dp=_t(t.dmp1.toString(16)),e.dq=_t(t.dmq1.toString(16)),e.qi=_t(t.coeff.toString(16)),e;if(t instanceof st&&t.isPublic)return e.kty="RSA",e.n=_t(t.n.toString(16)),e.e=_t(t.e.toString(16)),e;if(t instanceof ut.crypto.ECDSA&&t.isPrivate){if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;var i=t.getPublicKeyXYHex();return e.kty="EC",e.crv=n,e.x=_t(i.x),e.y=_t(i.y),e.d=_t(t.prvKeyHex),e}if(t instanceof ut.crypto.ECDSA&&t.isPublic){var n;if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;return i=t.getPublicKeyXYHex(),e.kty="EC",e.crv=n,e.x=_t(i.x),e.y=_t(i.y),e}throw"not supported key object"},st.getPosArrayOfChildrenFromHex=function(t){return dt.getChildIdx(t,0)},st.getHexValueArrayOfChildrenFromHex=function(t){var e,i=dt.getV,n=i(t,(e=st.getPosArrayOfChildrenFromHex(t))[0]),s=i(t,e[1]),o=i(t,e[2]),r=i(t,e[3]),a=i(t,e[4]),c=i(t,e[5]),u=i(t,e[6]),l=i(t,e[7]),h=i(t,e[8]);return(e=new Array).push(n,s,o,r,a,c,u,l,h),e},st.prototype.readPrivateKeyFromPEMString=function(t){var e=Rt(t),i=st.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8])},st.prototype.readPKCS5PrvKeyHex=function(t){var e=st.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},st.prototype.readPKCS8PrvKeyHex=function(t){var e,i,n,s,o,r,a,c,u=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=u(t,0,[2,0,1],"02"),i=u(t,0,[2,0,2],"02"),n=u(t,0,[2,0,3],"02"),s=u(t,0,[2,0,4],"02"),o=u(t,0,[2,0,5],"02"),r=u(t,0,[2,0,6],"02"),a=u(t,0,[2,0,7],"02"),c=u(t,0,[2,0,8],"02")}catch(t){throw"malformed PKCS#8 plain RSA private key"}this.setPrivateEx(e,i,n,s,o,r,a,c)},st.prototype.readPKCS5PubKeyHex=function(t){var e=dt,i=e.getV;if(!1===e.isASN1HEX(t))throw"keyHex is not ASN.1 hex string";var n=e.getChildIdx(t,0);if(2!==n.length||"02"!==t.substr(n[0],2)||"02"!==t.substr(n[1],2))throw"wrong hex for PKCS#5 public key";var s=i(t,n[0]),o=i(t,n[1]);this.setPublic(s,o)},st.prototype.readPKCS8PubKeyHex=function(t){var e=dt;if(!1===e.isASN1HEX(t))throw"not ASN.1 hex string";if("06092a864886f70d010101"!==e.getTLVbyList(t,0,[0,0]))throw"not PKCS8 RSA public key";var i=e.getTLVbyList(t,0,[1,0]);this.readPKCS5PubKeyHex(i)},st.prototype.readCertPubKeyHex=function(t,e){var i,n;(i=new jt).readCertHex(t),n=i.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)};var Bt=new RegExp("");function qt(t,e){for(var i="",n=e/4-t.length,s=0;s>24,(16711680&s)>>16,(65280&s)>>8,255&s])))),s+=1;return n}function Ht(t){for(var e in ut.crypto.Util.DIGESTINFOHEAD){var i=ut.crypto.Util.DIGESTINFOHEAD[e],n=i.length;if(t.substring(0,n)==i)return[e,t.substring(n)]}return[]}function jt(){var t=dt,e=t.getChildIdx,i=t.getV,n=t.getTLV,s=t.getVbyList,o=t.getTLVbyList,r=t.getIdxbyList,a=t.getVidx,c=t.oidname,u=jt,l=Rt;this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==o(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return s(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){return c(s(this.hex,0,[0,2+this.foffset,0],"06"))},this.getIssuerHex=function(){return o(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return u.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return o(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return u.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var t=s(this.hex,0,[0,4+this.foffset,0]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getNotAfter=function(){var t=s(this.hex,0,[0,4+this.foffset,1]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getPublicKeyHex=function(){return t.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return r(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var t=this.getPublicKeyIdx();return r(this.hex,t,[1,0],"30")},this.getPublicKey=function(){return Zt.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return c(s(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return s(this.hex,0,[2],"03",!0)},this.verifySignature=function(t){var e=this.getSignatureAlgorithmName(),i=this.getSignatureValueHex(),n=o(this.hex,0,[0],"30"),s=new ut.crypto.Signature({alg:e});return s.init(t),s.updateHex(n),s.verify(i)},this.parseExt=function(){if(3!==this.version)return-1;var i=r(this.hex,0,[0,7,0],"30"),n=e(this.hex,i);this.aExtInfo=new Array;for(var o=0;o0&&(u=new Array(i),(new et).nextBytes(u),u=String.fromCharCode.apply(String,u));var l=Tt(c(Ct("\0\0\0\0\0\0\0\0"+s+u))),h=[];for(n=0;n>8*a-r&255),n=0;nthis.n.bitLength())return 0;var n=Ht(this.doPublic(i).toString(16).replace(/^1f+00/,""));if(0==n.length)return!1;var s=n[0];return n[1]==function(t){return ut.crypto.Util.hashString(t,s)}(t)},st.prototype.verifyWithMessageHash=function(t,e){var i=it(e=(e=e.replace(Bt,"")).replace(/[ \n]+/g,""),16);if(i.bitLength()>this.n.bitLength())return 0;var n=Ht(this.doPublic(i).toString(16).replace(/^1f+00/,""));return 0!=n.length&&n[1]==t},st.prototype.verifyPSS=function(t,e,i,n){var s=function(t){return ut.crypto.Util.hashHex(t,i)}(Ct(t));return void 0===n&&(n=-1),this.verifyWithMessageHashPSS(s,e,i,n)},st.prototype.verifyWithMessageHashPSS=function(t,e,i,n){var s=new T(e,16);if(s.bitLength()>this.n.bitLength())return!1;var o,r=function(t){return ut.crypto.Util.hashHex(t,i)},a=Tt(t),c=a.length,u=this.n.bitLength()-1,l=Math.ceil(u/8);if(-1===n||void 0===n)n=c;else if(-2===n)n=l-c-2;else if(n<-2)throw"invalid salt length";if(l>8*l-u&255;if(0!=(d.charCodeAt(0)&g))throw"bits beyond keysize not zero";var f=Ut(p,d.length,r),m=[];for(o=0;o0&&-1==(":"+n.join(":")+":").indexOf(":"+m+":"))throw"algorithm '"+m+"' not accepted in the list";if("none"!=m&&null===e)throw"key shall be specified to verify.";if("string"==typeof e&&-1!=e.indexOf("-----BEGIN ")&&(e=Zt.getKey(e)),!("RS"!=d&&"PS"!=d||e instanceof s))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==d&&!(e instanceof c))throw"key shall be a ECDSA obj for ES* algs";var b=null;if(void 0===o.jwsalg2sigalg[f.alg])throw"unsupported alg name: "+m;if("none"==(b=o.jwsalg2sigalg[m]))throw"not supported";if("Hmac"==b.substr(0,4)){if(void 0===e)throw"hexadecimal key shall be specified for HMAC";var w=new u({alg:b,pass:e});return w.updateString(p),g==w.doFinal()}if(-1!=b.indexOf("withECDSA")){var _,y=null;try{y=c.concatSigToASN1Sig(g)}catch(t){return!1}return(_=new l({alg:b})).init(e),_.updateString(p),_.verify(y)}return(_=new l({alg:b})).init(e),_.updateString(p),_.verify(g)},ut.jws.JWS.parse=function(t){var e,i,n=t.split("."),s={};if(2!=n.length&&3!=n.length)throw"malformed sJWS: wrong number of '.' splitted elements";return e=n[1],3==n.length&&(i=n[2]),s.headerObj=ut.jws.JWS.readSafeJSONString(ht(n[0])),s.payloadObj=ut.jws.JWS.readSafeJSONString(ht(e)),s.headerPP=JSON.stringify(s.headerObj,null," "),s.payloadPP=null==s.payloadObj?ht(e):JSON.stringify(s.payloadObj,null," "),void 0!==i&&(s.sigHex=yt(i)),s},ut.jws.JWS.verifyJWT=function(t,e,n){var s=ut.jws,o=s.JWS,r=o.readSafeJSONString,a=o.inArray,c=o.includedArray,u=t.split("."),l=u[0],h=u[1],d=(yt(u[2]),r(ht(l))),p=r(ht(h));if(void 0===d.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!a(d.alg,n.alg))return!1;if(void 0!==p.iss&&"object"===i(n.iss)&&!a(p.iss,n.iss))return!1;if(void 0!==p.sub&&"object"===i(n.sub)&&!a(p.sub,n.sub))return!1;if(void 0!==p.aud&&"object"===i(n.aud))if("string"==typeof p.aud){if(!a(p.aud,n.aud))return!1}else if("object"==i(p.aud)&&!c(p.aud,n.aud))return!1;var g=s.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(g=n.verifyAt),void 0!==n.gracePeriod&&"number"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==p.exp&&"number"==typeof p.exp&&p.exp+n.gracePeriode.length&&(i=e.length);for(var n=0;n=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function g(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return q(t).length;default:if(n)return B(t).length;e=(""+e).toLowerCase(),n=!0}}function f(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function m(t,e,i,n,s){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=s?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(s)return-1;i=t.length-1}else if(i<0){if(!s)return-1;i=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:b(t,e,i,n,s);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):b(t,[e],i,n,s);throw new TypeError("val must be string, number or Buffer")}function b(t,e,i,n,s){var o,r=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;r=2,a/=2,c/=2,i/=2}function u(t,e){return 1===r?t[e]:t.readUInt16BE(e*r)}if(s){var l=-1;for(o=i;oa&&(i=a-c),o=i;o>=0;o--){for(var h=!0,d=0;ds&&(n=s):n=s;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var r=0;r>8,s.push(i%256),s.push(n);return s}(e,t.length-i),t,i,n)}function C(t,e,i){return n.fromByteArray(0===e&&i===t.length?t:t.slice(e,i))}function S(t,e,i){i=Math.min(t.length,i);for(var n=[],s=e;s239?4:u>223?3:u>191?2:1;if(s+h<=i)switch(h){case 1:u<128&&(l=u);break;case 2:128==(192&(o=t[s+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:r=t[s+2],128==(192&(o=t[s+1]))&&128==(192&r)&&(c=(15&u)<<12|(63&o)<<6|63&r)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:r=t[s+2],a=t[s+3],128==(192&(o=t[s+1]))&&128==(192&r)&&128==(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&r)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(n.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),n.push(l),s+=h}return function(t){var e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);for(var i="",n=0;nthis.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,i);case"utf8":case"utf-8":return S(this,e,i);case"ascii":return k(this,e,i);case"latin1":case"binary":return x(this,e,i);case"base64":return C(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}).apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),""},c.prototype.compare=function(t,e,i,n,s){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),e<0||i>t.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&e>=i)return 0;if(n>=s)return-1;if(e>=i)return 1;if(this===t)return 0;for(var o=(s>>>=0)-(n>>>=0),r=(i>>>=0)-(e>>>=0),a=Math.min(o,r),u=this.slice(n,s),l=t.slice(e,i),h=0;hs)&&(i=s),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,t,e,i);case"utf8":case"utf-8":return _(this,t,e,i);case"ascii":return y(this,t,e,i);case"latin1":case"binary":return A(this,t,e,i);case"base64":return v(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function k(t,e,i){var n="";i=Math.min(t.length,i);for(var s=e;sn)&&(i=n);for(var s="",o=e;oi)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,i,n,s,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||et.length)throw new RangeError("Index out of range")}function D(t,e,i,n){e<0&&(e=65535+e+1);for(var s=0,o=Math.min(t.length-i,2);s>>8*(n?s:1-s)}function M(t,e,i,n){e<0&&(e=4294967295+e+1);for(var s=0,o=Math.min(t.length-i,4);s>>8*(n?s:3-s)&255}function L(t,e,i,n,s,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function N(t,e,i,n,o){return o||L(t,0,i,4),s.write(t,e,i,n,23,4),i+4}function z(t,e,i,n,o){return o||L(t,0,i,8),s.write(t,e,i,n,52,8),i+8}c.prototype.slice=function(t,e){var i,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(s*=256);)n+=this[t+--e]*s;return n},c.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||O(t,e,this.length);for(var n=this[t],s=1,o=0;++o=(s*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||O(t,e,this.length);for(var n=e,s=1,o=this[t+--n];n>0&&(s*=256);)o+=this[t+--n]*s;return o>=(s*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),s.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),s.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),s.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),s.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,i,n){t=+t,e|=0,i|=0,n||P(this,t,e,i,Math.pow(2,8*i)-1,0);var s=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+s]=t/o&255;return e+i},c.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):M(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*i-1);P(this,t,e,i,s-1,-s)}var o=0,r=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+i},c.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*i-1);P(this,t,e,i,s-1,-s)}var o=i-1,r=1,a=0;for(this[e+o]=255&t;--o>=0&&(r*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/r>>0)-a&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):M(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,i){return N(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return N(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return z(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return z(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--s)t[s+e]=this[s+i];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(s=0;s>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&i<57344){if(!s){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(r+1===n){(e-=3)>-1&&o.push(239,191,189);continue}s=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),s=i;continue}i=65536+(s-55296<<10|i-56320)}else s&&(e-=3)>-1&&o.push(239,191,189);if(s=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function q(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,i,n){for(var s=0;s=e.length||s>=t.length);++s)e[s+i]=t[s];return s}}).call(this,i(28))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";e.byteLength=function(t){var e=u(t),i=e[1];return 3*(e[0]+i)/4-i},e.toByteArray=function(t){for(var e,i=u(t),n=i[0],r=i[1],a=new o(function(t,e,i){return 3*(e+i)/4-i}(0,n,r)),c=0,l=r>0?n-4:n,h=0;h>16&255,a[c++]=e>>8&255,a[c++]=255&e;return 2===r&&(e=s[t.charCodeAt(h)]<<2|s[t.charCodeAt(h+1)]>>4,a[c++]=255&e),1===r&&(e=s[t.charCodeAt(h)]<<10|s[t.charCodeAt(h+1)]<<4|s[t.charCodeAt(h+2)]>>2,a[c++]=e>>8&255,a[c++]=255&e),a},e.fromByteArray=function(t){for(var e,i=t.length,s=i%3,o=[],r=0,a=i-s;ra?a:r+16383));return 1===s?o.push(n[(e=t[i-1])>>2]+n[e<<4&63]+"=="):2===s&&o.push(n[(e=(t[i-2]<<8)+t[i-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),o.join("")};for(var n=[],s=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=r.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function l(t,e,i){for(var s,o=[],r=e;r>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return o.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,i,n,s){var o,r,a=8*s-n-1,c=(1<>1,l=-7,h=i?s-1:0,d=i?-1:1,p=t[e+h];for(h+=d,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+h],h+=d,l-=8);for(r=o&(1<<-l)-1,o>>=-l,l+=n;l>0;r=256*r+t[e+h],h+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return r?NaN:1/0*(p?-1:1);r+=Math.pow(2,n),o-=u}return(p?-1:1)*r*Math.pow(2,o-n)},e.write=function(t,e,i,n,s,o){var r,a,c,u=8*o-s-1,l=(1<>1,d=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,g=n?1:-1,f=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,r=l):(r=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-r))<1&&(r--,c*=2),(e+=r+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(r++,c/=2),r+h>=l?(a=0,r=l):r+h>=1?(a=(e*c-1)*Math.pow(2,s),r+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,s),r=0));s>=8;t[i+p]=255&a,p+=g,a/=256,s-=8);for(r=r<0;t[i+p]=255&r,p+=g,r/=256,u-=8);t[i+p-g]|=128*f}},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.jws,i=t.KeyUtil,s=t.X509,o=t.crypto,r=t.hextob64u,a=t.b64tohex,c=t.AllowedSigningAlgs;return function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.parseJwt=function t(i){n.Log.debug("JoseUtil.parseJwt");try{var s=e.JWS.parse(i);return{header:s.headerObj,payload:s.payloadObj}}catch(t){n.Log.error(t)}},t.validateJwt=function(e,o,r,c,u,l,h){n.Log.debug("JoseUtil.validateJwt");try{if("RSA"===o.kty)if(o.e&&o.n)o=i.getKey(o);else{if(!o.x5c||!o.x5c.length)return n.Log.error("JoseUtil.validateJwt: RSA key missing key material",o),Promise.reject(new Error("RSA key missing key material"));var d=a(o.x5c[0]);o=s.getPublicKeyFromCertHex(d)}else{if("EC"!==o.kty)return n.Log.error("JoseUtil.validateJwt: Unsupported key type",o&&o.kty),Promise.reject(new Error(o.kty));if(!(o.crv&&o.x&&o.y))return n.Log.error("JoseUtil.validateJwt: EC key missing key material",o),Promise.reject(new Error("EC key missing key material"));o=i.getKey(o)}return t._validateJwt(e,o,r,c,u,l,h)}catch(t){return n.Log.error(t&&t.message||t),Promise.reject("JWT validation failed")}},t.validateJwtAttributes=function(e,i,s,o,r,a){o||(o=0),r||(r=parseInt(Date.now()/1e3));var c=t.parseJwt(e).payload;if(!c.iss)return n.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(c.iss!==i)return n.Log.error("JoseUtil._validateJwt: Invalid issuer in token",c.iss),Promise.reject(new Error("Invalid issuer in token: "+c.iss));if(!c.aud)return n.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(c.aud===s||Array.isArray(c.aud)&&c.aud.indexOf(s)>=0))return n.Log.error("JoseUtil._validateJwt: Invalid audience in token",c.aud),Promise.reject(new Error("Invalid audience in token: "+c.aud));if(c.azp&&c.azp!==s)return n.Log.error("JoseUtil._validateJwt: Invalid azp in token",c.azp),Promise.reject(new Error("Invalid azp in token: "+c.azp));if(!a){var u=r+o,l=r-o;if(!c.iat)return n.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(u>>((3&e)<<3)&255;return s}}},function(t,e){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninResponse=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"#";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=s.UrlUtility.parseUrlFragment(e,i);this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.code=n.code,this.state=n.state,this.id_token=n.id_token,this.session_state=n.session_state,this.access_token=n.access_token,this.token_type=n.token_type,this.scope=n.scope,this.profile=void 0,this.expires_in=n.expires_in}return n(t,[{key:"expires_in",get:function(){if(this.expires_at){var t=parseInt(Date.now()/1e3);return this.expires_at-t}},set:function(t){var e=parseInt(t);if("number"==typeof e&&e>0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutRequest=void 0;var n=i(0),s=i(3),o=i(8);e.SignoutRequest=function t(e){var i=e.url,r=e.id_token_hint,a=e.post_logout_redirect_uri,c=e.data,u=e.extraQueryParams,l=e.request_type;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var h in r&&(i=s.UrlUtility.addQueryParam(i,"id_token_hint",r)),a&&(i=s.UrlUtility.addQueryParam(i,"post_logout_redirect_uri",a),c&&(this.state=new o.State({data:c,request_type:l}),i=s.UrlUtility.addQueryParam(i,"state",this.state.id))),u)i=s.UrlUtility.addQueryParam(i,h,u[h]);this.url=i}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutResponse=void 0;var n=i(3);e.SignoutResponse=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=n.UrlUtility.parseUrlFragment(e,"?");this.error=i.error,this.error_description=i.error_description,this.error_uri=i.error_uri,this.state=i.state}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryWebStorage=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.SilentRenewService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.SessionMonitor,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.TokenRevocationClient,g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d.TokenClient,f=arguments.length>5&&void 0!==arguments[5]?arguments[5]:p.JoseUtil;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i instanceof r.UserManagerSettings||(i=new r.UserManagerSettings(i));var m=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return m._events=new c.UserManagerEvents(i),m._silentRenewService=new n(m),m.settings.automaticSilentRenew&&(s.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),m.startSilentRenew()),m.settings.monitorSession&&(s.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),m._sessionMonitor=new o(m)),m._tokenRevocationClient=new a(m._settings),m._tokenClient=new g(m._settings),m._joseUtil=f,m}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getUser=function(){var t=this;return this._loadUser().then(function(e){return e?(s.Log.info("UserManager.getUser: user loaded"),t._events.load(e,!1),e):(s.Log.info("UserManager.getUser: user not found in storage"),null)})},e.prototype.removeUser=function(){var t=this;return this.storeUser(null).then(function(){s.Log.info("UserManager.removeUser: user removed from storage"),t._events.unload()})},e.prototype.signinRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:r";var e={useReplaceToNavigate:t.useReplaceToNavigate};return this._signinStart(t,this._redirectNavigator,e).then(function(){s.Log.info("UserManager.signinRedirect: successful")})},e.prototype.signinRedirectCallback=function(t){return this._signinEnd(t||this._redirectNavigator.url).then(function(t){return t.profile&&t.profile.sub?s.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinRedirectCallback: no sub"),t})},e.prototype.signinPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:p";var e=t.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.display="popup",this._signin(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinPopup: no sub")),t})):(s.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},e.prototype.signinPopupCallback=function(t){return this._signinCallback(t,this._popupNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinPopupCallback: no sub")),t}).catch(function(t){s.Log.error(t.message)})},e.prototype.signinSilent=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).request_type="si:s",this._loadUser().then(function(i){return i&&i.refresh_token?(e.refresh_token=i.refresh_token,t._useRefreshToken(e)):(e.id_token_hint=e.id_token_hint||t.settings.includeIdTokenInSilentRenew&&i&&i.id_token,i&&t._settings.validateSubOnSilentRenew&&(s.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",i.profile.sub),e.current_sub=i.profile.sub),t._signinSilentIframe(e))})},e.prototype._useRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(e).then(function(e){return e?e.access_token?t._loadUser().then(function(i){if(i){var n=Promise.resolve();return e.id_token&&(n=t._validateIdTokenFromTokenRefreshToken(i.profile,e.id_token)),n.then(function(){return s.Log.debug("UserManager._useRefreshToken: refresh token response success"),i.id_token=e.id_token,i.access_token=e.access_token,i.refresh_token=e.refresh_token||i.refresh_token,i.expires_in=e.expires_in,t.storeUser(i).then(function(){return t._events.load(i),i})})}return null}):(s.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(s.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))})},e.prototype._validateIdTokenFromTokenRefreshToken=function(t,e){var i=this;return this._metadataService.getIssuer().then(function(n){return i._joseUtil.validateJwtAttributes(e,n,i._settings.client_id,i._settings.clockSkew).then(function(e){return e?e.sub!==t.sub?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):e.auth_time&&e.auth_time!==t.auth_time?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):e.azp&&e.azp!==t.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!e.azp&&t.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))})})},e.prototype._signinSilentIframe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.prompt=t.prompt||"none",this._signin(t,this._iframeNavigator,{startUrl:e,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinSilent: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinSilent: no sub")),t})):(s.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype.signinSilentCallback=function(t){return this._signinCallback(t,this._iframeNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinSilentCallback: no sub")),t})},e.prototype.signinCallback=function(t){var e=this;return this.readSigninResponseState(t).then(function(i){var n=i.state;return"si:r"===n.request_type?e.signinRedirectCallback(t):"si:p"===n.request_type?e.signinPopupCallback(t):"si:s"===n.request_type?e.signinSilentCallback(t):Promise.reject(new Error("invalid response_type in state"))})},e.prototype.signoutCallback=function(t,e){var i=this;return this.readSignoutResponseState(t).then(function(n){var s=n.state,o=n.response;return s?"so:r"===s.request_type?i.signoutRedirectCallback(t):"so:p"===s.request_type?i.signoutPopupCallback(t,e):Promise.reject(new Error("invalid response_type in state")):o})},e.prototype.querySessionStatus=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:s";var i=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return i?(e.redirect_uri=i,e.prompt="none",e.response_type=e.response_type||this.settings.query_status_response_type,e.scope=e.scope||"openid",e.skipUserInfo=!0,this._signinStart(e,this._iframeNavigator,{startUrl:i,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(e){return t.processSigninResponse(e.url).then(function(t){if(s.Log.debug("UserManager.querySessionStatus: got signin response"),t.session_state&&t.profile.sub)return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",t.profile.sub),{session_state:t.session_state,sub:t.profile.sub,sid:t.profile.sid};s.Log.info("querySessionStatus successful, user not authenticated")}).catch(function(e){if(e.session_state&&t.settings.monitorAnonymousSession&&("login_required"==e.message||"consent_required"==e.message||"interaction_required"==e.message||"account_selection_required"==e.message))return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:e.session_state};throw e})})):(s.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype._signin=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(t,e,n).then(function(e){return i._signinEnd(e.url,t)})},e.prototype._signinStart=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.prepare(n).then(function(e){return s.Log.debug("UserManager._signinStart: got navigator window handle"),i.createSigninRequest(t).then(function(t){return s.Log.debug("UserManager._signinStart: got signin request"),n.url=t.url,n.id=t.state.id,e.navigate(n)}).catch(function(t){throw e.close&&(s.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),e.close()),t})})},e.prototype._signinEnd=function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(t).then(function(t){s.Log.debug("UserManager._signinEnd: got signin response");var n=new a.User(t);if(i.current_sub){if(i.current_sub!==n.profile.sub)return s.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",n.profile.sub),Promise.reject(new Error("login_required"));s.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return e.storeUser(n).then(function(){return s.Log.debug("UserManager._signinEnd: user stored"),e._events.load(n),n})})},e.prototype._signinCallback=function(t,e){return s.Log.debug("UserManager._signinCallback"),e.callback(t)},e.prototype.signoutRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:r";var e=t.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;e&&(t.post_logout_redirect_uri=e);var i={useReplaceToNavigate:t.useReplaceToNavigate};return this._signoutStart(t,this._redirectNavigator,i).then(function(){s.Log.info("UserManager.signoutRedirect: successful")})},e.prototype.signoutRedirectCallback=function(t){return this._signoutEnd(t||this._redirectNavigator.url).then(function(t){return s.Log.info("UserManager.signoutRedirectCallback: successful"),t})},e.prototype.signoutPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:p";var e=t.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return t.post_logout_redirect_uri=e,t.display="popup",t.post_logout_redirect_uri&&(t.state=t.state||{}),this._signout(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(){s.Log.info("UserManager.signoutPopup: successful")})},e.prototype.signoutPopupCallback=function(t,e){return void 0===e&&"boolean"==typeof t&&(e=t,t=null),this._popupNavigator.callback(t,e,"?").then(function(){s.Log.info("UserManager.signoutPopupCallback: successful")})},e.prototype._signout=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(t,e,n).then(function(t){return i._signoutEnd(t.url)})},e.prototype._signoutStart=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,i=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.prepare(n).then(function(i){return s.Log.debug("UserManager._signoutStart: got navigator window handle"),e._loadUser().then(function(o){return s.Log.debug("UserManager._signoutStart: loaded current user from storage"),(e._settings.revokeAccessTokenOnSignout?e._revokeInternal(o):Promise.resolve()).then(function(){var r=t.id_token_hint||o&&o.id_token;return r&&(s.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),t.id_token_hint=r),e.removeUser().then(function(){return s.Log.debug("UserManager._signoutStart: user removed, creating signout request"),e.createSignoutRequest(t).then(function(t){return s.Log.debug("UserManager._signoutStart: got signout request"),n.url=t.url,t.state&&(n.id=t.state.id),i.navigate(n)})})})}).catch(function(t){throw i.close&&(s.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),i.close()),t})})},e.prototype._signoutEnd=function(t){return this.processSignoutResponse(t).then(function(t){return s.Log.debug("UserManager._signoutEnd: got signout response"),t})},e.prototype.revokeAccessToken=function(){var t=this;return this._loadUser().then(function(e){return t._revokeInternal(e,!0).then(function(i){if(i)return s.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),e.access_token=null,e.refresh_token=null,e.expires_at=null,e.token_type=null,t.storeUser(e).then(function(){s.Log.debug("UserManager.revokeAccessToken: user stored"),t._events.load(e)})})}).then(function(){s.Log.info("UserManager.revokeAccessToken: access token revoked successfully")})},e.prototype._revokeInternal=function(t,e){var i=this;if(t){var n=t.refresh_token;return this._revokeAccessTokenInternal(t.access_token,e).then(function(t){return i._revokeRefreshTokenInternal(n,e).then(function(e){return t||e||s.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),t||e})})}return Promise.resolve(!1)},e.prototype._revokeAccessTokenInternal=function(t,e){return!t||t.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(t,e).then(function(){return!0})},e.prototype._revokeRefreshTokenInternal=function(t,e){return t?this._tokenRevocationClient.revoke(t,e,"refresh_token").then(function(){return!0}):Promise.resolve(!1)},e.prototype.startSilentRenew=function(){this._silentRenewService.start()},e.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},e.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then(function(t){return t?(s.Log.debug("UserManager._loadUser: user storageString loaded"),a.User.fromStorageString(t)):(s.Log.debug("UserManager._loadUser: no user storageString"),null)})},e.prototype.storeUser=function(t){if(t){s.Log.debug("UserManager.storeUser: storing user");var e=t.toStorageString();return this._userStore.set(this._userStoreKey,e)}return s.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},n(e,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),e}(o.OidcClient)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserManagerSettings=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.popup_redirect_uri,s=i.popup_post_logout_redirect_uri,h=i.popupWindowFeatures,d=i.popupWindowTarget,p=i.silent_redirect_uri,g=i.silentRequestTimeout,f=i.automaticSilentRenew,m=void 0!==f&&f,b=i.validateSubOnSilentRenew,w=void 0!==b&&b,_=i.includeIdTokenInSilentRenew,y=void 0===_||_,A=i.monitorSession,v=void 0===A||A,T=i.monitorAnonymousSession,C=void 0!==T&&T,S=i.checkSessionInterval,E=void 0===S?2e3:S,k=i.stopCheckSessionOnError,x=void 0===k||k,R=i.query_status_response_type,I=i.revokeAccessTokenOnSignout,O=void 0!==I&&I,P=i.accessTokenExpiringNotificationTime,D=void 0===P?60:P,M=i.redirectNavigator,L=void 0===M?new o.RedirectNavigator:M,N=i.popupNavigator,z=void 0===N?new r.PopupNavigator:N,F=i.iframeNavigator,Z=void 0===F?new a.IFrameNavigator:F,B=i.userStore,q=void 0===B?new c.WebStorageStateStore({store:u.Global.sessionStorage}):B;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var U=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));return U._popup_redirect_uri=n,U._popup_post_logout_redirect_uri=s,U._popupWindowFeatures=h,U._popupWindowTarget=d,U._silent_redirect_uri=p,U._silentRequestTimeout=g,U._automaticSilentRenew=m,U._validateSubOnSilentRenew=w,U._includeIdTokenInSilentRenew=y,U._accessTokenExpiringNotificationTime=D,U._monitorSession=v,U._monitorAnonymousSession=C,U._checkSessionInterval=E,U._stopCheckSessionOnError=x,U._query_status_response_type=R||(arguments[0]&&arguments[0].response_type?l.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":"id_token"),U._revokeAccessTokenOnSignout=O,U._redirectNavigator=L,U._popupNavigator=z,U._iframeNavigator=Z,U._userStore=q,U}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),e}(s.OidcClientSettings)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RedirectNavigator=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1])||arguments[1];n.Log.debug("UserManagerEvents.load"),t.prototype.load.call(this,e),i&&this._userLoaded.raise(e)},e.prototype.unload=function(){n.Log.debug("UserManagerEvents.unload"),t.prototype.unload.call(this),this._userUnloaded.raise()},e.prototype.addUserLoaded=function(t){this._userLoaded.addHandler(t)},e.prototype.removeUserLoaded=function(t){this._userLoaded.removeHandler(t)},e.prototype.addUserUnloaded=function(t){this._userUnloaded.addHandler(t)},e.prototype.removeUserUnloaded=function(t){this._userUnloaded.removeHandler(t)},e.prototype.addSilentRenewError=function(t){this._silentRenewError.addHandler(t)},e.prototype.removeSilentRenewError=function(t){this._silentRenewError.removeHandler(t)},e.prototype._raiseSilentRenewError=function(t){n.Log.debug("UserManagerEvents._raiseSilentRenewError",t.message),this._silentRenewError.raise(t)},e.prototype.addUserSignedIn=function(t){this._userSignedIn.addHandler(t)},e.prototype.removeUserSignedIn=function(t){this._userSignedIn.removeHandler(t)},e.prototype._raiseUserSignedIn=function(){n.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},e.prototype.addUserSignedOut=function(t){this._userSignedOut.addHandler(t)},e.prototype.removeUserSignedOut=function(t){this._userSignedOut.removeHandler(t)},e.prototype._raiseUserSignedOut=function(){n.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},e.prototype.addUserSessionChanged=function(t){this._userSessionChanged.addHandler(t)},e.prototype.removeUserSessionChanged=function(t){this._userSessionChanged.removeHandler(t)},e.prototype._raiseUserSessionChanged=function(){n.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},e}(s.AccessTokenEvents)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:o.Global.timer,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return r._timer=n,r._nowFunc=s||function(){return Date.now()/1e3},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.init=function(t){t<=0&&(t=1),t=parseInt(t);var e=this.now+t;if(this.expiration===e&&this._timerHandle)s.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),s.Log.debug("Timer.init timer "+this._name+" for duration:",t),this._expiration=e;var i=5;t0&&c>a&&(c=a);for(var u=0;u=0?(l=g.substr(0,f),h=g.substr(f+1)):(l=g,h=""),d=decodeURIComponent(l),p=decodeURIComponent(h),e(o,d)?Array.isArray(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}return o}},15341:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,s){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(s){var o=encodeURIComponent(e(s))+n;return Array.isArray(t[s])?t[s].map(function(t){return o+encodeURIComponent(e(t))}).join(i):o+encodeURIComponent(e(t[s]))}).join(i):s?encodeURIComponent(e(s))+n+encodeURIComponent(e(t)):""}},96577:function(t,e,i){"use strict";i(40963),e.stringify=i(15341)},78512:function(t,e,i){"use strict";i.d(e,{X:function(){return o}});var n=i(55959),s=i(13895);class o extends n.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(t){super.next(this._value=t)}}},99867:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(96673);class s extends n.L{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},3103:function(t,e,i){"use strict";i.d(e,{P:function(){return r}});var n=i(70653),s=i(40878),o=i(31225);let r=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},48318:function(t,e,i){"use strict";i.d(e,{y:function(){return u}});var n=i(96673),s=i(55331),o=i(57498),r=i(56197),a=i(13392),c=i(51484);let u=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:r}=this,a=function(t,e,i){if(t){if(t instanceof n.L)return t;if(t[s.b])return t[s.b]()}return t||e||i?new n.L(t,e,i):new n.L(o.c)}(t,e,i);if(a.add(r?r.call(a,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:s}=t;if(e||s)return!1;t=i&&i instanceof n.L?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=l(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[r.L](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=l(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function l(t){if(t||(t=c.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},57498:function(t,e,i){"use strict";i.d(e,{c:function(){return o}});var n=i(51484),s=i(14294);const o={closed:!0,next(t){},error(t){if(n.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},59829:function(t,e,i){"use strict";i.d(e,{L:function(){return s}});var n=i(96673);class s extends n.L{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},66994:function(t,e,i){"use strict";i.d(e,{t:function(){return m}});var n=i(55959),s=i(8277);class o extends s.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}var r=i(91098);class a extends r.v{}const c=new a(o);var u=i(87570),l=i(96673),h=i(3103);class d extends l.L{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(d.dispatch,this.delay,new p(t,this.destination)))}_next(t){this.scheduleMessage(h.P.createNext(t))}_error(t){this.scheduleMessage(h.P.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(h.P.createComplete()),this.unsubscribe()}}class p{constructor(t,e){this.notification=t,this.destination=e}}var g=i(13895),f=i(19291);class m extends n.xQ{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new b(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let o;if(this.closed)throw new g.N;if(this.isStopped||this.hasError?o=u.w.EMPTY:(this.observers.push(t),o=new f.W(this,t)),n&&t.add(t=new d(t,n)),e)for(let r=0;re&&(o=Math.max(o,s-e)),o>0&&n.splice(0,o),n}}class b{constructor(t,e){this.time=t,this.value=e}}},55959:function(t,e,i){"use strict";i.d(e,{Yc:function(){return u},xQ:function(){return l}});var n=i(48318),s=i(96673),o=i(87570),r=i(13895),a=i(19291),c=i(55331);class u extends s.L{constructor(t){super(t),this.destination=t}}let l=(()=>{class t extends n.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.b](){return new u(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new r.N;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew h(t,e),t})();class h extends l{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):o.w.EMPTY}}},19291:function(t,e,i){"use strict";i.d(e,{W:function(){return s}});var n=i(87570);class s extends n.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}},96673:function(t,e,i){"use strict";i.d(e,{L:function(){return u}});var n=i(85024),s=i(57498),o=i(87570),r=i(55331),a=i(51484),c=i(14294);class u extends o.w{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof u?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,t,e,i)}}[r.b](){return this}static create(t,e,i){const n=new u(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class l extends u{constructor(t,e,i,o){let r;super(),this._parentSubscriber=t;let a=this;(0,n.m)(e)?r=e:e&&(r=e.next,i=e.error,o=e.complete,e!==s.c&&(a=Object.create(e),(0,n.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=r,this._error=i,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=a.v;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,c.z)(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;(0,c.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw i;(0,c.z)(i)}}__tryOrSetError(t,e,i){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):((0,c.z)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},87570:function(t,e,i){"use strict";i.d(e,{w:function(){return a}});var n=i(98470),s=i(82056),o=i(85024);const r=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:a,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof r?e.errors:e),[])}},51484:function(t,e,i){"use strict";i.d(e,{v:function(){return s}});let n=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},42875:function(t,e,i){"use strict";i.d(e,{c:function(){return a},N:function(){return c}});var n=i(55959),s=i(48318),o=i(87570),r=i(21564);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.w,t.add(this.source.subscribe(new u(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.w.EMPTY)),t}refCount(){return(0,r.x)()(this)}}const c=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class u extends n.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},31305:function(t,e,i){"use strict";i.d(e,{aj:function(){return u}});var n=i(76163),s=i(98470),o=i(59829),r=i(6268),a=i(99342);const c={};function u(...t){let e=null,i=null;return(0,n.K)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,a.n)(t,i).lift(new l(e))}class l{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends o.L{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{let i;try{i=t()}catch(n){return void e.error(n)}return(i?(0,s.D)(i):(0,o.c)()).subscribe(e)})}},70653:function(t,e,i){"use strict";i.d(e,{E:function(){return s},c:function(){return o}});var n=i(48318);const s=new n.y(t=>t.complete());function o(t){return t?function(t){return new n.y(e=>t.schedule(()=>e.complete()))}(t):s}},3148:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var n=i(48318),s=i(98470),o=i(79996),r=i(82056),a=i(19764);function c(...t){if(1===t.length){const e=t[0];if((0,s.k)(e))return u(e,null);if((0,r.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return u(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return u(t=1===t.length&&(0,s.k)(t[0])?t[0]:t,null).pipe((0,o.U)(t=>e(...t)))}return u(t,null)}function u(t,e){return new n.y(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let o=0,r=0;for(let c=0;c{l||(l=!0,r++),s[c]=t},error:t=>i.error(t),complete:()=>{o++,o!==n&&l||(r===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}},19764:function(t,e,i){"use strict";i.d(e,{D:function(){return h}});var n=i(48318),s=i(16015),o=i(87570),r=i(56197),a=i(62570),c=i(25686),u=i(5168),l=i(59653);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[r.L]}(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>{const s=t[r.L]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if((0,u.t)(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if((0,l.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[c.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.y(i=>{const n=new o.w;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[c.hZ](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof n.y?t:new n.y((0,s.s)(t))}},99342:function(t,e,i){"use strict";i.d(e,{n:function(){return r}});var n=i(48318),s=i(30625),o=i(62570);function r(t,e){return e?(0,o.r)(t,e):new n.y((0,s.V)(t))}},87254:function(t,e,i){"use strict";i.d(e,{R:function(){return a}});var n=i(48318),s=i(98470),o=i(85024),r=i(79996);function a(t,e,i,u){return(0,o.m)(i)&&(u=i,i=void 0),u?a(t,e,i).pipe((0,r.U)(t=>(0,s.k)(t)?u(...t):u(t))):new n.y(n=>{c(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function c(t,e,i,n,s){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),o=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),o=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),o=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,r=t.length;o(i.add(e.schedule(a,t,{subscriber:i,counter:0,period:t})),i))}function a(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}},31906:function(t,e,i){"use strict";i.d(e,{T:function(){return a}});var n=i(48318),s=i(76163),o=i(97471),r=i(99342);function a(...t){let e=Number.POSITIVE_INFINITY,i=null,a=t[t.length-1];return(0,s.K)(a)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof n.y?t[0]:(0,o.J)(e)((0,r.n)(t,i))}},40878:function(t,e,i){"use strict";i.d(e,{of:function(){return r}});var n=i(76163),s=i(99342),o=i(62570);function r(...t){let e=t[t.length-1];return(0,n.K)(e)?(t.pop(),(0,o.r)(t,e)):(0,s.n)(t)}},31225:function(t,e,i){"use strict";i.d(e,{_:function(){return s}});var n=i(48318);function s(t,e){return new n.y(e?i=>e.schedule(o,0,{error:t,subscriber:i}):e=>e.error(t))}function o({error:t,subscriber:e}){e.error(t)}},81110:function(t,e,i){"use strict";i.d(e,{H:function(){return a}});var n=i(48318),s=i(48569),o=i(62293),r=i(76163);function a(t=0,e,i){let a=-1;return(0,o.k)(e)?a=Number(e)<1?1:Number(e):(0,r.K)(e)&&(i=e),(0,r.K)(i)||(i=s.P),new n.y(e=>{const n=(0,o.k)(t)?t:+t-i.now();return i.schedule(c,n,{index:0,period:a,subscriber:e})})}function c(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}},30810:function(t,e,i){"use strict";i.d(e,{e:function(){return u}});var n=i(48569),s=i(59829),o=i(6268);class r{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new a(t,this.durationSelector))}}class a extends s.L{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=(0,o.D)(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var c=i(81110);function u(t,e=n.P){return i=()=>(0,c.H)(t,e),function(t){return t.lift(new r(i))};var i}},47727:function(t,e,i){"use strict";i.d(e,{K:function(){return r}});var n=i(59829),s=i(99867),o=i(6268);function r(t){return function(e){const i=new a(t),n=e.lift(i);return i.caught=n}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new c(t,this.selector,this.caught))}}class c extends n.L{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new s.d(this,void 0,void 0);this.add(n);const r=(0,o.D)(this,i,void 0,void 0,n);r!==n&&this.add(r)}}}},436:function(t,e,i){"use strict";i.d(e,{b:function(){return s}});var n=i(73982);function s(t,e){return(0,n.zg)(t,e,1)}},47701:function(t,e,i){"use strict";i.d(e,{b:function(){return o}});var n=i(96673),s=i(48569);function o(t,e=s.P){return i=>i.lift(new r(t,e))}class r{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends n.L{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function c(t){t.debouncedNext()}},7768:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(96673);function s(t=null){return e=>e.lift(new o(t))}class o{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new r(t,this.defaultValue))}}class r extends n.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},82628:function(t,e,i){"use strict";i.d(e,{g:function(){return r}});var n=i(48569),s=i(96673),o=i(3103);function r(t,e=n.P){var i;const s=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new a(s,e))}class a{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))}}class c extends s.L{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(c.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new u(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(o.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(o.P.createComplete()),this.unsubscribe()}}class u{constructor(t,e){this.time=t,this.notification=e}}},98720:function(t,e,i){"use strict";i.d(e,{x:function(){return s}});var n=i(96673);function s(t,e){return i=>i.lift(new o(t,e))}class o{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new r(t,this.compare,this.keySelector))}}class r extends n.L{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}},43835:function(t,e,i){"use strict";i.d(e,{h:function(){return s}});var n=i(96673);function s(t,e){return function(i){return i.lift(new o(t,e))}}class o{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.predicate,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}},11520:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var n=i(96673),s=i(87570);function o(t){return e=>e.lift(new r(t))}class r{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends n.L{constructor(t,e){super(t),this.add(new s.w(e))}}},3530:function(t,e,i){"use strict";i.d(e,{P:function(){return u}});var n=i(39665),s=i(43835),o=i(90611),r=i(7768),a=i(90790),c=i(13392);function u(t,e){const i=arguments.length>=2;return u=>u.pipe(t?(0,s.h)((e,i)=>t(e,i,u)):c.y,(0,o.q)(1),i?(0,r.d)(e):(0,a.T)(()=>new n.K))}},79996:function(t,e,i){"use strict";i.d(e,{U:function(){return s}});var n=i(96673);function s(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.project,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}},88414:function(t,e,i){"use strict";i.d(e,{h:function(){return s}});var n=i(96673);function s(t){return e=>e.lift(new o(t))}class o{constructor(t){this.value=t}call(t,e){return e.subscribe(new r(t,this.value))}}class r extends n.L{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}},97471:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(73982),s=i(13392);function o(t=Number.POSITIVE_INFINITY){return(0,n.zg)(s.y,t)}},73982:function(t,e,i){"use strict";i.d(e,{zg:function(){return c}});var n=i(6268),s=i(59829),o=i(99867),r=i(79996),a=i(19764);function c(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new u(t,i)))}class u{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends s.L{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},21564:function(t,e,i){"use strict";i.d(e,{x:function(){return s}});var n=i(96673);function s(){return function(t){return t.lift(new o(t))}}class o{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new r(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class r extends n.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}},1055:function(t,e,i){"use strict";i.d(e,{B:function(){return a}});var n=i(42875),s=i(21564),o=i(55959);function r(){return new o.xQ}function a(){return t=>{return(0,s.x)()((e=r,function(t){let i;i="function"==typeof e?e:function(){return e};const s=Object.create(t,n.N);return s.source=t,s.subjectFactory=i,s})(t));var e}}},68303:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(66994);function s(t,e,i){let s;return s=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:s}){let o,r,a=0,c=!1,u=!1;return function(l){a++,o&&!c||(c=!1,o=new n.t(t,e,s),r=l.subscribe({next(t){o.next(t)},error(t){c=!0,o.error(t)},complete(){u=!0,r=void 0,o.complete()}}));const h=o.subscribe(this);this.add(()=>{a--,h.unsubscribe(),r&&!u&&i&&0===a&&(r.unsubscribe(),r=void 0,o=void 0)})}}(s))}},56238:function(t,e,i){"use strict";i.d(e,{O:function(){return o}});var n=i(47930),s=i(76163);function o(...t){const e=t[t.length-1];return(0,s.K)(e)?(t.pop(),i=>(0,n.z)(t,i,e)):e=>(0,n.z)(t,e)}},44689:function(t,e,i){"use strict";i.d(e,{w:function(){return c}});var n=i(59829),s=i(99867),o=i(6268),r=i(79996),a=i(19764);function c(t,e){return"function"==typeof e?i=>i.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))))):e=>e.lift(new u(t))}class u{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends n.L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const r=new s.d(this,e,i),a=this.destination;a.add(r),this.innerSubscription=(0,o.D)(this,t,void 0,void 0,r),this.innerSubscription!==r&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}},90611:function(t,e,i){"use strict";i.d(e,{q:function(){return r}});var n=i(96673),s=i(98402),o=i(70653);function r(t){return e=>0===t?(0,o.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends n.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}},25416:function(t,e,i){"use strict";i.d(e,{R:function(){return o}});var n=i(59829),s=i(6268);function o(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const i=new a(t),n=(0,s.D)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class a extends n.L{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}},66599:function(t,e,i){"use strict";i.d(e,{b:function(){return r}});var n=i(96673);function s(){}var o=i(85024);function r(t,e,i){return function(n){return n.lift(new a(t,e,i))}}class a{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends n.L{constructor(t,e,i,n){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=i||s,this._tapComplete=n||s,(0,o.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},90790:function(t,e,i){"use strict";i.d(e,{T:function(){return o}});var n=i(39665),s=i(96673);function o(t=c){return e=>e.lift(new r(t))}class r{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends s.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function c(){return new n.K}},62570:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(48318),s=i(87570);function o(t,e){return new n.y(i=>{const n=new s.w;let o=0;return n.add(e.schedule(function(){o!==t.length?(i.next(t[o++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},8277:function(t,e,i){"use strict";i.d(e,{o:function(){return o}});var n=i(87570);class s extends n.w{constructor(t,e){super()}schedule(t,e=0){return this}}class o extends s{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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,n=!1;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},91098:function(t,e,i){"use strict";i.d(e,{v:function(){return s}});let n=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class s extends n{constructor(t,e=n.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}},91741:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var n=i(8277);class s extends n.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var o=i(91098);class r extends o.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),o={};function r(t){return t in o&&(delete o[t],!0)}const a={setImmediate(t){const e=n++;return o[e]=!0,s.then(()=>r(e)&&t()),e},clearImmediate(t){r(t)}};var c=i(8277);class u extends c.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}}var l=i(91098);class h extends l.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++n"function"==typeof Symbol&&Symbol.observable||"@@observable")()},55331:function(t,e,i){"use strict";i.d(e,{b:function(){return n}});const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},98402:function(t,e,i){"use strict";i.d(e,{W:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},39665:function(t,e,i){"use strict";i.d(e,{K:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},13895:function(t,e,i){"use strict";i.d(e,{N:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},14294:function(t,e,i){"use strict";function n(t){setTimeout(()=>{throw t},0)}i.d(e,{z:function(){return n}})},13392:function(t,e,i){"use strict";function n(t){return t}i.d(e,{y:function(){return n}})},98470:function(t,e,i){"use strict";i.d(e,{k:function(){return n}});const n=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},59653:function(t,e,i){"use strict";i.d(e,{z:function(){return n}});const n=t=>t&&"number"==typeof t.length&&"function"!=typeof t},85024:function(t,e,i){"use strict";function n(t){return"function"==typeof t}i.d(e,{m:function(){return n}})},62293:function(t,e,i){"use strict";i.d(e,{k:function(){return s}});var n=i(98470);function s(t){return!(0,n.k)(t)&&t-parseFloat(t)+1>=0}},82056:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,{K:function(){return n}})},4710:function(t,e,i){"use strict";i.d(e,{b:function(){return s}});var n=i(48318);function s(t){return!!t&&(t instanceof n.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},5168:function(t,e,i){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,{t:function(){return n}})},76163:function(t,e,i){"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,{K:function(){return n}})},16015:function(t,e,i){"use strict";i.d(e,{s:function(){return l}});var n=i(30625),s=i(14294),o=i(25686),r=i(56197),a=i(59653),c=i(5168),u=i(82056);const l=t=>{if(t&&"function"==typeof t[r.L])return l=t,t=>{const e=l[r.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,n.V)(t);if((0,c.t)(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.z),t);if(t&&"function"==typeof t[o.hZ])return e=t,t=>{const i=e[o.hZ]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=(0,u.K)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,l}},30625:function(t,e,i){"use strict";i.d(e,{V:function(){return n}});const n=t=>e=>{for(let i=0,n=t.length;i=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,i,r):s(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r}function s(t,e){return function(i,n){e(i,n,t)}}function o(t,e,i,n){return new(i||(i=Promise))(function(s,o){function r(t){try{c(n.next(t))}catch(e){o(e)}}function a(t){try{c(n.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(r,a)}c((n=n.apply(t,e||[])).next())})}i.d(e,{gn:function(){return n},fM:function(){return s},mG:function(){return o}})},60306:function(t){"use strict";t.exports={i8:"1.1.0"}}},function(t){"use strict";t(t.s=15291)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/main-es2015.af0cb7e3f45c254d3a3f.js b/dist/apps/admin-gui/main-es2015.af0cb7e3f45c254d3a3f.js new file mode 100644 index 000000000..a8b03276d --- /dev/null +++ b/dist/apps/admin-gui/main-es2015.af0cb7e3f45c254d3a3f.js @@ -0,0 +1 @@ +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[179],{27622:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=27622,t.exports=e},71313:function(t,e,i){"use strict";i.d(e,{t:function(){return C}});var n=i(33642),s=i(60611),o=i(67004),r=i(88426),a=i(16073),c=i(31572),u=i(66283),l=i(80340),h=i(15980),d=i(43691),p=i(61511),g=i(67806),f=i(86593),m=i(39571),b=i(48160);function w(t,e){1&t&&c._UZ(0,"mat-spinner",8)}const _=function(){return["user","id","name","email","logins","organization"]};function y(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"app-users-list",11),c.NdJ("page",function(e){return c.CHM(t),c.oxw(2).pageChanged(e)}),c.qZA()}if(2&t){const t=c.oxw(2);c.Q6J("pageSize",t.pageSize)("displayedColumns",c.DdM(3,_))("users",t.users)}}function A(t,e){1&t&&(c.TgZ(0,"app-alert",12),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.Q6J("alert_type","info"),c.xp6(1),c.hij(" ",c.lcZ(2,2,"ADMIN.USERS.SEARCH_INFO")," "))}function v(t,e){1&t&&(c.TgZ(0,"app-alert",12),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.Q6J("alert_type","warn"),c.xp6(1),c.hij(" ",c.lcZ(2,2,"ADMIN.USERS.NO_USERS_FOUND")," "))}function T(t,e){if(1&t&&(c.TgZ(0,"div"),c.YNc(1,y,1,4,"app-users-list",9),c.YNc(2,A,3,4,"app-alert",10),c.YNc(3,v,3,4,"app-alert",10),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.Q6J("ngIf",void 0!==t.users&&t.users.length>0),c.xp6(1),c.Q6J("ngIf",!t.firstSearchDone),c.xp6(1),c.Q6J("ngIf",t.firstSearchDone&&0===t.users.length)}}let C=(()=>{class t{constructor(t,e,i){this.usersService=t,this.storeService=e,this.tableConfigService=i,this.loading=!1,this.firstSearchDone=!1,this.tableId=s.xx,this.attributes=[]}ngOnInit(){this.searchControl=new a.NI("",[a.kI.required,a.kI.pattern(".*[\\S]+.*")]),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.attributes=[o.r.USER_DEF_ORGANIZATION,o.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(){this.searchControl.invalid?this.searchControl.markAllAsTouched():(this.loading=!0,this.firstSearchDone=!0,this.usersService.findRichUsersWithAttributes(this.searchControl.value,this.attributes).subscribe(t=>{this.users=t,this.loading=!1},()=>{this.loading=!1}))}onKeyInput(t){"Enter"===t.key&&this.onSearchByString()}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}findUsersWithoutVO(){this.loading=!0,this.firstSearchDone=!0,this.usersService.getRichUsersWithoutVoWithAttributes(this.attributes).subscribe(t=>{this.users=t,this.loading=!1},()=>this.loading=!1)}}return t.id="AdminUsersComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(n.Fv),c.Y36(r.d6),c.Y36(s.dB))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:18,vars:17,consts:[[3,"keyup"],[1,"page-subtitle"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["mat-flat-button","","color","primary",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","displayedColumns","users","page",4,"ngIf"],[3,"alert_type",4,"ngIf"],[3,"pageSize","displayedColumns","users","page"],[3,"alert_type"]],template:function(t,e){1&t&&(c.TgZ(0,"div",0),c.NdJ("keyup",function(t){return e.onKeyInput(t)}),c.TgZ(1,"h1",1),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"mat-form-field",2),c._UZ(5,"input",3),c.ALo(6,"translate"),c.TgZ(7,"mat-error"),c._uU(8),c.ALo(9,"translate"),c.qZA(),c.qZA(),c.TgZ(10,"button",4),c.NdJ("click",function(){return e.onSearchByString()}),c.TgZ(11,"mat-icon"),c._uU(12,"search"),c.qZA(),c.qZA(),c.TgZ(13,"button",5),c.NdJ("click",function(){return e.findUsersWithoutVO()}),c._uU(14),c.ALo(15,"translate"),c.qZA(),c.YNc(16,w,1,0,"mat-spinner",6),c.YNc(17,T,4,3,"div",7),c.qZA()),2&t&&(c.xp6(2),c.Oqu(c.lcZ(3,9,"ADMIN.USERS.TITLE")),c.xp6(3),c.s9C("placeholder",c.lcZ(6,11,"ADMIN.USERS.SEARCH_PLACEHOLDER")),c.Q6J("formControl",e.searchControl),c.xp6(3),c.hij(" ",c.lcZ(9,13,"ADMIN.USERS.EMPTY_SEARCH")," "),c.xp6(2),c.Q6J("disabled",e.loading),c.xp6(3),c.Q6J("disabled",e.loading),c.xp6(1),c.hij(" ",c.lcZ(15,15,"ADMIN.USERS.USERS_WITHOUT_VO")," "),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[u.KE,l.Nt,a.Fj,a.JJ,a.oH,u.TO,h.lW,d.Hw,p.O5,g.$g,f.C,m.w],pipes:[b.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),t})()},61601:function(t,e,i){"use strict";i.d(e,{y:function(){return T}});var n=i(88426),s=i(38289),o=i(29063),r=i(84140),a=i(31572),c=i(84608),u=i(15980),l=i(48160);let h=(()=>{class t{constructor(t){this.dialogRef=t}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(c.so))},t.\u0275cmp=a.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"div",2),a.TgZ(5,"p"),a._uU(6),a.ALo(7,"translate"),a.qZA(),a.qZA(),a.TgZ(8,"div",3),a.TgZ(9,"button",4),a.NdJ("click",function(){return e.onClose()}),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.TgZ(12,"button",5),a.NdJ("click",function(){return e.onReload()}),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),a.xp6(5),a.hij(" ",a.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),a.xp6(4),a.hij(" ",a.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),a.xp6(3),a.hij(" ",a.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},directives:[c.uh,c.xY,c.H8,u.lW],pipes:[l.X$],styles:[""]}),t})();var d=i(57629),p=i(43835);let g=(()=>{class t{constructor(t,e){this.router=t,this.routeReuseStrategy=e;const i=e;t.events.subscribe(t=>{t instanceof d.OD&&i.setLastNavigationType("popstate"===t.navigationTrigger?"back":"direct")})}init(){}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(d.F0),a.LFG(d.wN))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function f(t,e){if(1&t&&(a.TgZ(0,"div",3),a.TgZ(1,"mat-icon"),a._uU(2,"alert"),a.qZA(),a._uU(3),a.qZA()),2&t){const t=a.oxw();a.xp6(3),a.hij(" ",t.warningMessage,"\n")}}const m=function(t,e){return{top:t,background:e}},b=function(t,e){return{"margin-top":t,"min-height":e}},w=function(t){return{"border-color":t}},_=function(t){return{background:t}},y=function(t,e){return{"min-height":t,"background-color":e}};function A(t,e){if(1&t&&(a._UZ(0,"app-perun-nav-menu",4),a.TgZ(1,"mat-sidenav-container",5),a.TgZ(2,"mat-sidenav",6,7),a.TgZ(4,"perfect-scrollbar",8),a._UZ(5,"app-side-menu",9),a.qZA(),a.qZA(),a.TgZ(6,"mat-sidenav-content",10),a.TgZ(7,"div",11),a._UZ(8,"router-outlet"),a.qZA(),a.TgZ(9,"div",12),a._UZ(10,"perun-web-apps-footer"),a.qZA(),a.qZA(),a.qZA()),2&t){const t=a.MAs(3),e=a.oxw();a.Q6J("ngStyle",a.WLB(13,m,e.getNavMenuTop(),e.navBackgroundColor))("sideNav",t)("principal",e.principal),a.xp6(1),a.Q6J("ngStyle",a.WLB(16,b,e.getSideNavMarginTop(),e.getSideNavMinHeight())),a.xp6(1),a.Q6J("ngStyle",a.VKq(19,w,e.sideBarBorderColor))("mode",e.sidebarMode)("opened",!e.isMobile())("fixedInViewport",!0)("fixedTopGap",e.getTopGap()),a.xp6(2),a.Q6J("ngStyle",a.VKq(21,_,e.sideMenubackgroundColor))("scrollIndicators",!0),a.xp6(1),a.Q6J("sideNav",t),a.xp6(1),a.Q6J("ngStyle",a.WLB(23,y,e.getContentInnerMinHeight(),e.contentBackgroundColor))}}function v(t,e){1&t&&a._UZ(0,"perun-web-apps-login-screen-base",13),2&t&&a.Q6J("application","admin-gui")}let T=(()=>{class t{constructor(t,e,n,s,o,r){this.cache=t,this.store=e,this.http=n,this.dialog=s,this.router=o,this.initAuth=r,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=i(60306).i8,this.cache.init(),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side",this.lastScreenWidth=window.innerWidth}isMobile(){return window.innerWidth<=t.minWidth}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),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,s.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,p.h)(t=>t instanceof d.OD)).subscribe(t=>{this.updateInitAccessedPage(t)})}updateInitAccessedPage(t){t.url===sessionStorage.getItem("initPage")?("imperative"===t.navigationTrigger&&t.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===t.navigationTrigger&&(t.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(t.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const t=new o.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:t}).subscribe(t=>{const e=t.version;if(e)if(this.version&&"SNAPSHOT"!==e&&this.version!==e){const t=(0,r.kZ)();this.dialog.open(h,t)}else this.version=e},()=>{})}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"}getContentInnerMinHeight(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}}return t.minWidth=992,t.\u0275fac=function(e){return new(e||t)(a.Y36(g),a.Y36(n.d6),a.Y36(o.eN),a.Y36(c.uw),a.Y36(d.F0),a.Y36(n.v0))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-root"]],hostBindings:function(t,e){1&t&&a.NdJ("resize",function(t){return e.getScreenSize(t)},!1,a.Jf7)},decls:4,vars:4,consts:[["class","beta-warning",4,"ngIf"],[3,"displayWarning"],[3,"ngIf"],[1,"beta-warning"],["id","nav-menu",1,"mat-elevation-z3",3,"ngStyle","sideNav","principal"],[3,"ngStyle"],[3,"ngStyle","mode","opened","fixedInViewport","fixedTopGap"],["sidenav",""],[3,"ngStyle","scrollIndicators"],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[3,"application"]],template:function(t,e){1&t&&(a.YNc(0,f,4,1,"div",0),a._UZ(1,"perun-web-apps-notificator",1),a.YNc(2,A,11,26,"ng-template",2),a.YNc(3,v,1,1,"ng-template",2)),2&t&&(a.Q6J("ngIf",e.displayWarning),a.xp6(1),a.Q6J("displayWarning",e.displayWarning),a.xp6(1),a.Q6J("ngIf",!e.isLoginScreenShow),a.xp6(1),a.Q6J("ngIf",e.isLoginScreenShow))},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width:768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.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}"]}),t})()},48958:function(t,e,i){"use strict";i.d(e,{D:function(){return s}});var n=i(31572);let s=(()=>{class t{constructor(){this.accessItemsChange=new n.vpe,this.facilityItemsChange=new n.vpe,this.adminItemsChange=new n.vpe,this.userItemsChange=new n.vpe,this.resetChange=new n.vpe,this.homeItemsChange=new n.vpe}setHomeItems(t){this.homeItemsChange.emit(t)}setAccessMenuItems(t){this.accessItemsChange.emit(t)}setFacilityMenuItems(t){this.facilityItemsChange.emit(t)}setAdminItems(t){this.adminItemsChange.emit(t)}setUserItems(t){this.userItemsChange.emit(t)}reset(){this.resetChange.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},39124:function(t,e,i){"use strict";i.d(e,{o:function(){return T}});var n=i(33642),s=i(60611),o=i(88426),r=i(31572),a=i(57629),c=i(59403),u=i(66283),l=i(4786),h=i(71522),d=i(61511),p=i(19139),g=i(67806),f=i(78364),m=i(39571),b=i(48160);function w(t,e){if(1&t&&(r.TgZ(0,"mat-option",9),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t.id),r.xp6(1),r.hij(" ",t.name," ")}}function _(t,e){1&t&&r._UZ(0,"mat-spinner",10)}const y=function(){return["id","vo","name","description"]};function A(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"perun-web-apps-groups-list",11),r.NdJ("page",function(e){return r.CHM(t),r.oxw().pageChanged(e)}),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("pageSize",t.pageSize)("displayedColumns",r.DdM(6,y))("groups",t.groupsToShow)("groupsToDisable",t.groupsWithoutRouteAuth)("filter",t.filterValue)("disableMembers",!1)}}function v(t,e){1&t&&(r.TgZ(0,"app-alert",12),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"FACILITY_DETAIL.ALLOWED_GROUPS.NO_GROUPS_ALERT")," "))}let T=(()=>{class t{constructor(t,e,i,n){this.facilityManager=t,this.route=e,this.tableConfigService=i,this.authResolver=n,this.filterValue="",this.groups=[],this.selected="all",this.groupsToShow=this.groups,this.tableId=s.Aj,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.facilityId=t.facilityId,this.facilityManager.getAllowedVos(this.facilityId).subscribe(t=>{this.vos=t,this.refreshTable()})})}showGroup(){this.groupsToShow="all"!==this.selected?this.groups.filter(t=>t.voId===parseInt(this.selected,10)):this.groups}refreshTable(){this.loading=!0,this.groups=[],this.filterValue="",this.vos.forEach(t=>{this.facilityManager.getAllowedGroups(this.facilityId,t.id).subscribe(e=>{this.groups=this.groups.concat(e),this.groupsToShow=this.groups,this.setAuthRights(t,e),this.loading=!1})}),0===this.vos.length&&(this.loading=!1)}setAuthRights(t,e){e.forEach(e=>{this.authResolver.isAuthorized("getGroupById_int_policy",[t,e])||this.groupsWithoutRouteAuth.add(e.id)})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="FacilityAllowedGroupsComponent",t.\u0275fac=function(e){return new(e||t)(r.Y36(n.IQ),r.Y36(a.gz),r.Y36(s.dB),r.Y36(o.x4))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("router-component",e.true)},inputs:{groups:"groups"},decls:18,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"value","valueChange","selectionChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","displayedColumns","groups","groupsToDisable","filter","disableMembers","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"pageSize","displayedColumns","groups","groupsToDisable","filter","disableMembers","page"],["alert_type","warn"]],template:function(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"perun-web-apps-refresh-button",1),r.NdJ("refresh",function(){return e.refreshTable()}),r.qZA(),r.TgZ(5,"mat-form-field"),r.TgZ(6,"mat-label"),r._uU(7),r.ALo(8,"translate"),r.qZA(),r.TgZ(9,"mat-select",2),r.NdJ("valueChange",function(t){return e.selected=t})("selectionChange",function(){return e.showGroup()}),r.TgZ(10,"mat-option",3),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.YNc(13,w,2,2,"mat-option",4),r.qZA(),r.qZA(),r.TgZ(14,"perun-web-apps-immediate-filter",5),r.NdJ("filter",function(t){return e.applyFilter(t)}),r.qZA(),r.YNc(15,_,1,0,"mat-spinner",6),r.YNc(16,A,1,7,"perun-web-apps-groups-list",7),r.YNc(17,v,3,3,"app-alert",8),r.qZA()),2&t&&(r.xp6(2),r.Oqu(r.lcZ(3,9,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),r.xp6(5),r.Oqu(r.lcZ(8,11,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),r.xp6(2),r.Q6J("value",e.selected),r.xp6(2),r.Oqu(r.lcZ(12,13,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),r.xp6(2),r.Q6J("ngForOf",e.vos),r.xp6(1),r.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),r.xp6(1),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading&&0!==e.groupsToShow.length),r.xp6(1),r.Q6J("ngIf",0===e.groupsToShow.length&&!e.loading))},directives:[c.t,u.KE,u.hX,l.gD,h.ey,d.sg,p.L,d.O5,g.$g,f.W,m.w],pipes:[b.X$],styles:[""]}),t})()},64467:function(t,e,i){"use strict";i.d(e,{f:function(){return I}});var n=i(4230),s=i(95909),o=i(33642),r=i(16073),a=i(84608),c=i(88426),u=i(31572),l=i(48160),h=i(61511),d=i(15980),p=i(67806),g=i(19386),f=i(66283),m=i(80340);function b(t,e){1&t&&u._UZ(0,"mat-spinner",5)}function w(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div",6),u.TgZ(1,"perun-web-apps-vo-search-select",7),u.NdJ("voSelected",function(e){return u.CHM(t),u.oxw().selectedVo=e}),u.qZA(),u.TgZ(2,"mat-form-field"),u._UZ(3,"input",8),u.ALo(4,"translate"),u.TgZ(5,"mat-error"),u._uU(6),u.ALo(7,"translate"),u.qZA(),u.qZA(),u.TgZ(8,"mat-form-field"),u._UZ(9,"input",8),u.ALo(10,"translate"),u.TgZ(11,"mat-error"),u._uU(12),u.ALo(13,"translate"),u.qZA(),u.qZA(),u.qZA()}if(2&t){const t=u.oxw();u.xp6(1),u.Q6J("vos",t.vos),u.xp6(2),u.s9C("placeholder",u.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),u.Q6J("formControl",t.nameCtrl),u.xp6(3),u.hij(" ",u.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),u.xp6(3),u.s9C("placeholder",u.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),u.Q6J("formControl",t.descriptionCtrl),u.xp6(3),u.hij(" ",u.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let _=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.notificator=i,this.voService=n,this.translate=s,this.resourcesManager=o,this.vos=[],this.selectedVo=null,s.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(t=>{this.vos=t,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new r.NI(null,[r.kI.required,r.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new r.NI(null,[r.kI.required,r.kI.pattern(".*[\\S]+.*")])}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 t.\u0275fac=function(e){return new(e||t)(u.Y36(a.so),u.Y36(a.WI),u.Y36(c.V6),u.Y36(o.YF),u.Y36(l.sK),u.Y36(o.xk))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-create-resource-dialog"]],decls:10,vars:12,consts:[["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","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"long-input",3,"vos","voSelected"],["matInput","","required","",3,"placeholder","formControl"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.YNc(1,b,1,0,"mat-spinner",0),u.YNc(2,w,14,15,"div",1),u.TgZ(3,"div",2),u.TgZ(4,"button",3),u.NdJ("click",function(){return e.onCancel()}),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"button",4),u.NdJ("click",function(){return e.onSubmit()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.qZA(),u.qZA()),2&t&&(u.Tol(e.theme),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(3),u.Oqu(u.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")),u.xp6(2),u.Q6J("disabled",e.nameCtrl.invalid||e.descriptionCtrl.invalid||null===e.selectedVo||e.loading),u.xp6(1),u.Oqu(u.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")))},directives:[h.O5,a.H8,d.lW,p.$g,a.xY,g.M,f.KE,m.Nt,r.Fj,r.Q7,r.JJ,r.oH,f.TO],pipes:[l.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),t})();var y=i(60611),A=i(84140),v=i(57629),T=i(59403),C=i(19139),S=i(88884);function E(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",7),u.NdJ("click",function(){return u.CHM(t),u.oxw().createResource()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function k(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",8),u.NdJ("click",function(){return u.CHM(t),u.oxw().removeResource()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&t){const t=u.oxw();u.Q6J("disabled",0===t.selected.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function x(t,e){1&t&&u._UZ(0,"mat-spinner",9)}function R(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-resources-list",10),u.NdJ("page",function(e){return u.CHM(t),u.oxw().pageChanged(e)}),u.qZA()}if(2&t){const t=u.oxw();u.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("resources",t.resources)("selection",t.selected)("disableRouting",!t.routeAuth)("displayedColumns",t.displayedColumns)}}let I=(()=>{class t{constructor(t,e,i,s,o){this.dialog=t,this.facilitiesManager=e,this.tableConfigService=i,this.route=s,this.authResolver=o,this.resources=[],this.selected=new n.Ov(!0,[]),this.filterValue="",this.tableId=y.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.facilitiesManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t,this.refreshTable()})})}removeResource(){const t=(0,A.kZ)();t.width="450px",t.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(s.f,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(t=>{this.resources=t,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(t){this.filterValue=t}createResource(){const t=(0,A.kZ)();t.width="1350px",t.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(_,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="FacilityResourcesComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(a.uw),u.Y36(o.IQ),u.Y36(y.dB),u.Y36(v.gz),u.Y36(c.x4))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.true)},decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",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,"pageSize","filterValue","resources","selection","disableRouting","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","selection","disableRouting","displayedColumns","page"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.YNc(5,E,3,3,"button",2),u.YNc(6,k,3,4,"button",3),u.TgZ(7,"perun-web-apps-immediate-filter",4),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(8,x,1,0,"mat-spinner",5),u.YNc(9,R,1,6,"perun-web-apps-resources-list",6),u.qZA()),2&t&&(u.xp6(2),u.Oqu(u.lcZ(3,6,"FACILITY_DETAIL.RESOURCES.TITLE")),u.xp6(3),u.Q6J("ngIf",!e.loading&&e.addAuth),u.xp6(1),u.Q6J("ngIf",!e.loading&&e.removeAuth),u.xp6(1),u.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[T.t,h.O5,C.L,d.lW,p.$g,S.C],pipes:[l.X$],styles:[""]}),t})()},73916:function(t,e,i){"use strict";i.d(e,{P:function(){return z}});var n=i(33642),s=i(84140),o=i(60611),r=i(4230),a=i(84608),c=i(88426),u=i(16073),l=i(31572),h=i(48160),d=i(61511),p=i(15980),g=i(67806),f=i(66283),m=i(80340),b=i(4786),w=i(71522);function _(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function y(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"mat-option",13),l.NdJ("click",function(){const e=l.CHM(t).$implicit;return l.oxw(2).srcFacility=e}),l._uU(1),l.qZA()}if(2&t){const t=e.$implicit;l.Q6J("value",t),l.xp6(1),l.hij(" ",t.name," ")}}function A(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",7),l.TgZ(1,"mat-form-field"),l._UZ(2,"input",8),l.ALo(3,"translate"),l.TgZ(4,"mat-error"),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.qZA(),l.TgZ(7,"mat-form-field"),l._UZ(8,"input",9),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"mat-form-field"),l.TgZ(11,"mat-select",10),l.ALo(12,"translate"),l.TgZ(13,"mat-option",11),l.NdJ("click",function(){return l.CHM(t),l.oxw().srcFacility=null}),l._uU(14),l.ALo(15,"translate"),l.qZA(),l.YNc(16,y,2,2,"mat-option",12),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(2),l.s9C("placeholder",l.lcZ(3,8,"DIALOGS.CREATE_FACILITY.NAME")),l.Q6J("formControl",t.nameControl),l.xp6(3),l.Oqu(l.lcZ(6,10,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),l.xp6(3),l.s9C("placeholder",l.lcZ(9,12,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),l.Q6J("formControl",t.descControl),l.xp6(3),l.s9C("placeholder",l.lcZ(12,14,"DIALOGS.CREATE_FACILITY.AS_COPY")),l.xp6(3),l.hij(" ",l.lcZ(15,16,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),l.xp6(2),l.Q6J("ngForOf",t.facilities)}}let v=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=n,this.translate=s,this.nameControl=new u.NI("",[u.kI.required]),this.descControl=new u.NI(""),this.srcFacility=null,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(t=>{this.facilities=t,this.loading=!1},()=>this.loading=!1)}copyFacilitySettings(t){this.facilitiesManager.copyAttributes(this.srcFacility.id,t).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,t).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,t).subscribe(()=>{this.handleSuccess()},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}onCreate(){this.loading=!0,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe(t=>{null!==this.srcFacility?this.copyFacilitySettings(t.id):this.handleSuccess()})}handleSuccess(){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(a.so),l.Y36(a.WI),l.Y36(n.IQ),l.Y36(c.V6),l.Y36(h.sK))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-create-facility-dialog"]],decls:13,vars:15,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"],["mat-flat-button","","color","accent",1,"ml2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"],["disableOptionCentering","true",3,"placeholder"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,_,1,0,"mat-spinner",1),l.YNc(5,A,17,18,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onCreate()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,9,"DIALOGS.CREATE_FACILITY.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.Oqu(l.lcZ(9,11,"DIALOGS.CREATE_FACILITY.CANCEL")),l.xp6(2),l.Q6J("disabled",0===e.nameControl.value.trim().length||e.loading),l.xp6(1),l.Oqu(l.lcZ(12,13,"DIALOGS.CREATE_FACILITY.CREATE")))},directives:[d.O5,a.H8,p.lW,g.$g,a.xY,f.KE,m.Nt,u.Fj,u.Q7,u.JJ,u.oH,f.TO,b.gD,w.ey,d.sg],pipes:[h.X$],styles:[""]}),t})();var T=i(30570),C=i(48958),S=i(66297),E=i(43691),k=i(59403),x=i(19139),R=i(60007);function I(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-refresh-button",9),l.NdJ("refresh",function(){return l.CHM(t),l.oxw().refreshTable()}),l.qZA()}}function O(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",10),l.NdJ("click",function(){return l.CHM(t),l.oxw().onCreate()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"FACILITY_MANAGEMENT.CREATE")))}function P(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){return l.CHM(t),l.oxw().onDelete()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("disabled",0===t.selection.selected.length),l.xp6(1),l.Oqu(l.lcZ(2,2,"FACILITY_MANAGEMENT.DELETE"))}}function D(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",12),l.NdJ("filter",function(e){return l.CHM(t),l.oxw().applyFilter(e)}),l.qZA()}2&t&&l.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER")}function M(t,e){1&t&&l._UZ(0,"mat-spinner",13)}function L(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-facilities-list",14),l.NdJ("page",function(e){return l.CHM(t),l.oxw().pageChanged(e)}),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("pageSize",t.pageSize)("selection",t.selection)("filterValue",t.filterValue)("facilities",t.facilities)("recentIds",t.recentIds)}}const N=function(){return{color:"black"}};let z=(()=>{class t{constructor(t,e,i,n){this.facilityManager=t,this.sideMenuService=e,this.tableConfigService=i,this.dialog=n,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=o.xt,this.selection=new r.Ov(!1,[])}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(t=>{this.selection.clear(),this.facilities=t,this.recentIds=(0,s.vL)("facilities"),this.loading=!1})}onCreate(){const t=(0,s.kZ)();t.width="800px",t.data={theme:"facility-theme"},this.dialog.open(v,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.refreshTable())})}onDelete(){const t=(0,s.kZ)();t.width="500px",t.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(T.Y,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="FacilitySelectPageComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(n.IQ),l.Y36(C.D),l.Y36(o.dB),l.Y36(a.uw))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:12,vars:11,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",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","selection","filterValue","facilities","recentIds","page",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","selection","filterValue","facilities","recentIds","page"]],template:function(t,e){1&t&&(l.TgZ(0,"div",0),l._UZ(1,"perun-web-apps-back-button"),l.TgZ(2,"h1",1),l._UZ(3,"mat-icon",2),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.YNc(6,I,1,0,"perun-web-apps-refresh-button",3),l.YNc(7,O,3,3,"button",4),l.YNc(8,P,3,4,"button",5),l.YNc(9,D,1,2,"perun-web-apps-immediate-filter",6),l.YNc(10,M,1,0,"mat-spinner",7),l.YNc(11,L,1,5,"perun-web-apps-facilities-list",8),l.qZA()),2&t&&(l.xp6(3),l.Q6J("ngStyle",l.DdM(10,N)),l.xp6(1),l.hij(" ",l.lcZ(5,8,"FACILITY_MANAGEMENT.TITLE")," "),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[S.W,E.Hw,d.PC,d.O5,k.t,p.lW,x.L,g.$g,R.X],pipes:[h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t})()},92438:function(t,e,i){"use strict";i.d(e,{J:function(){return y}});var n=i(84608),s=i(88426),o=i(33642),r=i(84140),a=i(16073),c=i(31572),u=i(48160),l=i(66283),h=i(80340),d=i(4786),p=i(61511),g=i(15980),f=i(71522);let m=(()=>{class t{constructor(t){this.translateService=t,this.returnData=""}transform(t){switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe(t=>{this.returnData=t});break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.FROM_FEDERATION_HIDDEN").subscribe(t=>{this.returnData=t});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe(t=>{this.returnData=t});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe(t=>{this.returnData=t});break;case"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.FROM_FEDERATION_SHOW").subscribe(t=>{this.returnData=t});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe(t=>{this.returnData=t});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe(t=>{this.returnData=t});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe(t=>{this.returnData=t});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe(t=>{this.returnData=t});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe(t=>{this.returnData=t});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe(t=>{this.returnData=t});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe(t=>{this.returnData=t});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe(t=>{this.returnData=t});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe(t=>{this.returnData=t});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe(t=>{this.returnData=t});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe(t=>{this.returnData=t});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe(t=>{this.returnData=t});break;default:return t}return this.returnData}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(u.sK,16))},t.\u0275pipe=c.Yjl({name:"applicationFormWidgetDescription",type:t,pure:!0}),t})();var b=i(65050);function w(t,e){if(1&t&&(c.TgZ(0,"mat-option",9),c._uU(1),c.ALo(2,"applicationFormItemType"),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t),c.xp6(1),c.hij(" ",c.lcZ(2,2,t)," ")}}function _(t,e){if(1&t&&(c.TgZ(0,"mat-option",9),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t),c.xp6(1),c.hij(" ",t," ")}}let y=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.translateService=i,this.store=n,this.languages=this.store.get("supportedLanguages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","FROM_FEDERATION_HIDDEN","HTML_COMMENT","TEXTFIELD","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION"]}ngOnInit(){this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(t=>{this.nameCtrl=new a.NI("",[a.kI.required,a.kI.pattern(".*[\\S]+.*"),a.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(t);for(const e of this.data.applicationFormItems)this.items.push(e.shortname),e.type===o.Dy.EMBEDDEDGROUPAPPLICATION&&(this.widgets=this.widgets.filter(t=>t!==o.Dy.EMBEDDEDGROUPAPPLICATION));this.selectedItem=t})}cancel(){this.dialogRef.close(!1)}submit(){const t=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,t])}createApplicationItem(){const t=(0,r.dv)(this.languages);t.id=this.data.fakeId,t.shortname=this.nameCtrl.value,t.type=this.selectedWidget;for(let e=0;e{class t{constructor(t){this.guiAuthResolver=t,this.pageSize=10,this.page=new l.vpe,this.displayedColumns=["checkbox","status","fullName","voExtSource","email","logins","alreadyMember","local"],this.pageSizeOptions=c.f7,this.addAuth=!1}set matSort(t){this.sort=t,this.setDataSource()}getDataForColumn(t,e,i){var n,s;switch(e){case"status":return t.member&&null!==(n=t.member.status)&&void 0!==n?n:"";case"fullName":{const e=t.richUser?t.richUser:t.candidate;return e.lastName?e.lastName:null!==(s=e.firstName)&&void 0!==s?s:""}case"voExtSource":return t.richUser?(0,c.OV)(t.richUser):(0,c.v$)(t.candidate);case"email":return t.richUser||t.member?(0,c.kN)(t.richUser):i.getEmail(t);case"logins":return i.getLogins(t);case"alreadyMember":return i.getAlreadyMember(t);case"local":return t.richUser?"Local":"External identity";default:return t[e]}}getExportDataForColumn(t,e,i){var n;switch(e){case"status":return t.member&&null!==(n=t.member.status)&&void 0!==n?n:"";case"fullName":return(0,c.bD)(t.richUser?t.richUser:t.candidate);case"voExtSource":return t.richUser?(0,c.OV)(t.richUser):(0,c.v$)(t.candidate);case"email":return t.richUser||t.member?(0,c.kN)(t.richUser):i.getEmail(t);case"logins":return i.getLogins(t);case"alreadyMember":return i.getAlreadyMember(t);case"local":return t.richUser?"Local":"External identity";default:return t[e]}}exportData(t){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){null!=this.child&&this.child.paginator&&this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,c.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,c.pR)(t,e,this.getDataForColumn,this),this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.dataSource=new d.by(this.members),this.setDataSource()}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t)),this.setAddAuth()}getEmail(t){let e;if(t.richUser){for(const i of t.richUser.userAttributes)if(i.namespace+":"+i.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){e=i;break}return null!=e&&null!=e.value&&"null"!==e.value.toString().toLowerCase()?e.value.toString().replace(","," "):""}return(0,c.Jc)(t.candidate)}getOrganization(t){return(0,c.v$)(t)}getLogins(t){if(t.richUser)return this.getLoginsForRichUser(t.richUser);{let e=this.getLoginsForCandidate(t.candidate);return null!=e&&""!==e||(e=t.candidate.userExtSource.login),e}}getLoginsForRichUser(t){let e="";for(const i of t.userAttributes)i.friendlyName.startsWith("login-namespace")&&null!=i.value&&(e.length>0&&(e+=", "),e+=i.friendlyName.substring(16)+": "+i.value);return e}getLoginsForCandidate(t){let e="";for(const i in t.attributes)Object.prototype.hasOwnProperty.call(t.attributes,i)&&-1!==i.indexOf("urn:perun:user:attribute-def:def:login-namespace:")&&null!=t.attributes[i]&&(e.length>0&&(e+=", "),e+=i.substring(49)+": "+t.attributes[i]);return e}getAlreadyMember(t){if("vo"===this.type){if(null!=t.member)return"Member of VO"}else{if(null!=t.member&&0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType)return"Member of Group";if(null!=t.member&&0!==t.member.sourceGroupId&&"INDIRECT"===t.member.membershipType)return"Indirect member of Group";if(null!=t.member)return"Member of VO"}return""}isCheckboxDisabled(t){return"vo"===this.type?null!=t.member:!!t.member&&0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType}setAddAuth(){void 0!==this.group&&0!==this.selection.selected.length&&(this.addAuth=!!this.selection.selected[0].member||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.group]))}itemSelectionToggle(t){this.selection.toggle(t),this.setAddAuth()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(s.x4))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-members-candidates-list"]],viewQuery:function(t,e){if(1&t&&(l.Gf(h.YE,5),l.Gf(c.l9,7)),2&t){let t;l.iGM(t=l.CRH())&&(e.matSort=t.first),l.iGM(t=l.CRH())&&(e.child=t.first)}},inputs:{members:"members",selection:"selection",type:"type",pageSize:"pageSize",group:"group"},outputs:{page:"page"},features:[l.TTD],decls:29,vars:6,consts:[[1,"card","mt-2"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"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"]],template:function(t,e){1&t&&(l.TgZ(0,"div",0),l.TgZ(1,"perun-web-apps-table-wrapper",1),l.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),l.TgZ(2,"table",2),l.ynx(3,3),l.YNc(4,v,1,0,"th",4),l.YNc(5,T,2,2,"td",5),l.BQk(),l.ynx(6,6),l.YNc(7,C,3,3,"th",7),l.YNc(8,E,2,1,"td",8),l.BQk(),l.ynx(9,9),l.YNc(10,k,3,3,"th",7),l.YNc(11,x,4,5,"td",8),l.BQk(),l.ynx(12,10),l.YNc(13,R,3,3,"th",7),l.YNc(14,I,3,3,"td",8),l.BQk(),l.ynx(15,11),l.YNc(16,O,3,3,"th",7),l.YNc(17,P,2,1,"td",8),l.BQk(),l.ynx(18,12),l.YNc(19,D,3,3,"th",7),l.YNc(20,M,2,1,"td",8),l.BQk(),l.ynx(21,13),l.YNc(22,L,3,3,"th",7),l.YNc(23,N,2,1,"td",8),l.BQk(),l.ynx(24,14),l.YNc(25,z,1,0,"th",7),l.YNc(26,F,2,1,"td",8),l.BQk(),l.YNc(27,Z,1,0,"tr",15),l.YNc(28,B,1,0,"tr",16),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.xp6(1),l.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),l.xp6(1),l.Q6J("dataSource",e.dataSource),l.xp6(25),l.Q6J("matHeaderRowDef",e.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",e.displayedColumns))},directives:[p.l,d.BZ,h.YE,d.w1,d.fO,d.Dz,d.as,d.nj,d.ge,d.ev,g.oG,h.nU,f.O5,m.gM,d.XQ,d.Gk],pipes:[b.X$,w.u,_.f,y.d,A.Z],styles:[""]}),t})();var U=i(16073),H=i(57629),j=i(66283),G=i(80340),Y=i(15980),V=i(67806),K=i(39571),J=i(8055);const $=["list"];function Q(t,e){1&t&&l._UZ(0,"mat-spinner",10)}function W(t,e){1&t&&(l.TgZ(0,"app-alert",14),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NO_USERS_FOUND")," "))}function X(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"app-members-candidates-list",15,16),l.NdJ("page",function(e){return l.CHM(t),l.oxw(3).pageChanged(e)}),l.qZA()}if(2&t){const t=l.oxw(3);l.Q6J("group",t.data.group)("pageSize",t.pageSize)("selection",t.selection)("members",t.members)("type",t.data.type)}}function tt(t,e){if(1&t&&(l.TgZ(0,"div",11),l.YNc(1,W,3,3,"app-alert",12),l.YNc(2,X,2,5,"app-members-candidates-list",13),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Q6J("ngIf",0===t.members.length&&t.firstSearchDone),l.xp6(1),l.Q6J("ngIf",0!==t.members.length)}}function et(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",4),l.TgZ(1,"mat-form-field",5),l.TgZ(2,"label"),l.TgZ(3,"input",6),l.NdJ("keyup.enter",function(){return l.CHM(t),l.oxw().onSearchByString()}),l.ALo(4,"translate"),l.qZA(),l.qZA(),l.TgZ(5,"mat-error"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.qZA(),l.TgZ(8,"button",7),l.NdJ("click",function(){return l.CHM(t),l.oxw().onSearchByString()}),l._uU(9),l.ALo(10,"translate"),l.qZA(),l.TgZ(11,"div",8),l.YNc(12,Q,1,0,"mat-spinner",2),l.qZA(),l.YNc(13,tt,3,2,"div",9),l.qZA()}if(2&t){const t=l.oxw();l.xp6(3),l.s9C("placeholder",l.lcZ(4,7,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),l.Q6J("formControl",t.searchCtrl),l.xp6(3),l.hij(" ",l.lcZ(7,9,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")," "),l.xp6(2),l.Q6J("disabled",t.loading),l.xp6(1),l.hij(" ",l.lcZ(10,11,"DIALOGS.ADD_MEMBERS.SEARCH")," "),l.xp6(3),l.Q6J("ngIf",t.loading),l.xp6(1),l.Q6J("ngIf",!!t.members&&!t.loading)}}function it(t,e){1&t&&l._UZ(0,"mat-spinner",10)}function nt(t,e){if(1&t&&(l.TgZ(0,"button",24),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t){l.oxw();const t=l.MAs(8),e=l.oxw();l.Q6J("disabled",0===e.selection.selected.length||e.loading)("matMenuTriggerFor",t),l.xp6(1),l.hij(" ",l.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function st(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",25),l.NdJ("click",function(){const e=l.CHM(t).$implicit;return l.oxw(2).onInvite(e)}),l._uU(1),l.ALo(2,"translate"),l.ALo(3,"uppercase"),l.qZA()}if(2&t){const t=e.$implicit;l.xp6(1),l.hij(" ",l.lcZ(2,1,l.lcZ(3,3,"SHARED_LIB.LANGUAGES."+t))," ")}}function ot(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",17),l.TgZ(1,"button",18),l.NdJ("click",function(){return l.CHM(t),l.oxw().onCancel()}),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"span",19),l.ALo(5,"translate"),l.YNc(6,nt,3,5,"button",20),l.TgZ(7,"mat-menu",null,21),l.YNc(9,st,4,5,"button",22),l.qZA(),l.qZA(),l.TgZ(10,"button",23),l.NdJ("click",function(){return l.CHM(t),l.oxw().onAdd()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,7,"DIALOGS.ADD_MEMBERS.CANCEL")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(5,9,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),l.Q6J("matTooltipDisabled",0===t.selection.selected.length||"group"!==t.data.type||void 0!==t.list&&t.list.addAuth),l.xp6(2),l.Q6J("ngIf","group"!==t.data.type||"group"===t.data.type&&t.inviteAuth),l.xp6(3),l.Q6J("ngForOf",t.languages),l.xp6(1),l.Q6J("disabled",0===t.selection.selected.length||t.loading||"group"===t.data.type&&void 0!==t.list&&!t.list.addAuth),l.xp6(1),l.hij(" ",l.lcZ(12,11,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}let rt=(()=>{class t{constructor(t,e,i,n,s,r,a,c,l,h,d,p,g){this.dialogRef=t,this.data=e,this.membersManagerService=i,this.groupService=n,this.voService=s,this.registrarManager=r,this.translate=a,this.notificator=c,this.route=l,this.tableConfigService=h,this.router=d,this.guiAuthResolver=p,this.store=g,this.languages=["en"],this.selection=new o.Ov(!1,[]),this.members=[],this.firstSearchDone=!1,this.tableId=u.tY,this.inviteAuth=!1,a.get("DIALOGS.ADD_MEMBERS.TITLE").subscribe(t=>this.title=t)}onCancel(){this.dialogRef.close(!1)}onAdd(){this.processing=!0;const t=this.selection.selected[0];"vo"===this.data.type?t.richUser?this.addUserToVo(t):this.addCandidateToVo(t):"group"===this.data.type&&(t.member?this.addMemberToGroup(t):t.richUser?this.addUserToGroup(t):t.candidate&&this.addCandidateToGroup(t))}onInvite(t){this.processing=!0,this.selection.selected[0].richUser?"vo"===this.data.type?this.registrarManager.sendInvitationToExistingUser(this.selection.selected[0].richUser.id,this.data.entityId).subscribe(()=>{this.onInviteSuccess()},()=>this.onError()):"group"===this.data.type&&this.registrarManager.sendInvitationGroupToExistingUser(this.selection.selected[0].richUser.id,this.data.voId,this.data.group.id).subscribe(()=>{this.onInviteSuccess()},()=>this.onError()):"vo"===this.data.type?this.registrarManager.sendInvitation((0,c.Jc)(this.selection.selected[0].candidate),t,this.data.voId).subscribe(()=>{this.onInviteSuccess()},()=>this.onError()):"group"===this.data.type&&this.registrarManager.sendInvitationForGroup((0,c.Jc)(this.selection.selected[0].candidate),t,this.data.voId,this.data.group.id).subscribe(()=>{this.onInviteSuccess()},()=>this.onError())}onSearchByString(){this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.loading=!0,this.selection.clear(),"vo"===this.data.type?this.voService.getCompleteCandidatesForVo(this.data.entityId,[a.r.USER_DEF_ORGANIZATION,a.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(t=>{this.members=t,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1):this.voService.getCompleteCandidatesForGroup(this.data.entityId,[a.r.USER_DEF_ORGANIZATION,a.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(t=>{this.members=t,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1))}ngOnInit(){this.languages=this.store.get("supportedLanguages"),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,"group"===this.data.type&&(this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group])),this.searchCtrl=new U.NI("",[U.kI.required,U.kI.pattern(".*[\\S]+.*")])}addUserToVo(t){this.membersManagerService.createMemberForUser({vo:this.data.entityId,user:t.richUser.id}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}addCandidateToVo(t){this.membersManagerService.createMemberForCandidate({vo:this.data.entityId,candidate:this.createCandidate(t.candidate)}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}addUserToGroup(t){this.membersManagerService.createMemberForUser({vo:this.data.voId,user:t.richUser.id,groups:[{id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId}]}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}addMemberToGroup(t){this.groupService.addMembers(this.data.entityId,[t.member.id]).subscribe(()=>{this.onAddSuccess()},()=>this.onError())}addCandidateToGroup(t){const e={id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId};this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.createCandidate(t.candidate),groups:[e]}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}onAddSuccess(){this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}onError(){this.selection.clear(),this.processing=!1}onInviteSuccess(){this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}onValidateSuccess(){this.dialogRef.close(!0)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}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}}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(n.so),l.Y36(n.WI),l.Y36(r.uq),l.Y36(r.ff),l.Y36(r.YF),l.Y36(r.tk),l.Y36(b.sK),l.Y36(s.V6),l.Y36(H.gz),l.Y36(u.dB),l.Y36(H.F0),l.Y36(s.x4),l.Y36(s.d6))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-add-member-dialog"]],viewQuery:function(t,e){if(1&t&&l.Gf($,5),2&t){let t;l.iGM(t=l.CRH())&&(e.list=t.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"ml-auto",3,"disabled","click"],[1,"no-bounce-scrollbar"],["class","mt-3",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"group","pageSize","selection","members","type","page",4,"ngIf"],["alert_type","warn"],[3,"group","pageSize","selection","members","type","page"],["list",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["class","ml-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,et,14,13,"div",1),l.YNc(5,it,1,0,"mat-spinner",2),l.YNc(6,ot,13,13,"div",3),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,7,"DIALOGS.ADD_MEMBERS.TITLE")),l.xp6(2),l.Q6J("ngIf",!e.processing),l.xp6(1),l.Q6J("ngIf",e.processing),l.xp6(1),l.Q6J("ngIf",!e.processing))},directives:[n.uh,f.O5,n.xY,j.KE,G.Nt,U.Fj,U.JJ,U.oH,j.TO,Y.lW,V.$g,K.w,q,n.H8,m.gM,J.VK,f.sg,J.p6,J.OP],pipes:[b.X$,f.gd],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}"]}),t})()},68570:function(t,e,i){"use strict";i.d(e,{W:function(){return g}});var n=i(84608),s=i(33642),o=i(88426),r=i(31572),a=i(48160),c=i(61511),u=i(19386),l=i(37665),h=i(15980),d=i(67806);function p(t,e){1&t&&r._UZ(0,"mat-spinner",9)}let g=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.dialogRef=t,this.voService=e,this.groupService=i,this.translateService=n,this.registrarManager=s,this.notificatorService=o,this.apiRequest=r,this.data=a,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=t=>t.name,n.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(t=>this.successMessage=t),n.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(t=>this.privilegeMessage=t),n.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(t=>this.noFormMessage=t)}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(t=>{this.vos=t.sort((t,e)=>t.name>e.name?1:t.namethis.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(t){this.selectedVo=t,this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(t=>{this.groups=t}):this.groups=[],this.selectedGroup=null}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(s.YF),r.Y36(s.ff),r.Y36(a.sK),r.Y36(s.tk),r.Y36(o.V6),r.Y36(o.F5),r.Y36(n.WI))},t.\u0275cmp=r.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,p,1,0,"mat-spinner",1),r.TgZ(5,"div",2),r.TgZ(6,"div",3),r._uU(7),r.ALo(8,"translate"),r.qZA(),r._uU(9),r.ALo(10,"translate"),r.TgZ(11,"perun-web-apps-vo-search-select",4),r.NdJ("voSelected",function(t){return e.voSelected(t)}),r.qZA(),r._uU(12),r.ALo(13,"translate"),r.TgZ(14,"perun-web-apps-group-search-select",5),r.NdJ("groupSelected",function(t){return e.selectedGroup=t}),r.qZA(),r.qZA(),r.TgZ(15,"div",6),r.TgZ(16,"button",7),r.NdJ("click",function(){return e.cancel()}),r._uU(17),r.ALo(18,"translate"),r.qZA(),r.TgZ(19,"button",8),r.NdJ("click",function(){return e.submit()}),r._uU(20),r.ALo(21,"translate"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Tol(e.theme),r.xp6(2),r.Oqu(r.lcZ(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("hidden",e.loading),r.xp6(2),r.Oqu(r.lcZ(8,17,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")),r.xp6(2),r.hij(" ",r.lcZ(10,19,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),r.xp6(2),r.Q6J("vos",e.vos),r.xp6(1),r.hij(" ",r.lcZ(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),r.xp6(2),r.Q6J("groups",e.groups)("disableAutoSelect",!0),r.xp6(3),r.hij(" ",r.lcZ(18,23,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),r.xp6(2),r.Q6J("disabled",!e.selectedVo&&!e.selectedGroup||e.loading),r.xp6(1),r.hij(" ",r.lcZ(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},directives:[n.uh,c.O5,n.xY,u.M,l.h,n.H8,h.lW,d.$g],pipes:[a.X$],styles:[""]}),t})()},88419:function(t,e,i){"use strict";i.d(e,{y:function(){return y}});var n=i(84608),s=i(88426),o=i(33642),r=i(16073),a=i(31572),c=i(48160),u=i(61511),l=i(67806),h=i(66283),d=i(80340),p=i(15980),g=i(29236),f=i(37665);function m(t,e){1&t&&a._UZ(0,"mat-spinner",3)}function b(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-checkbox",13),a.NdJ("click",function(){return a.CHM(t),a.oxw(2).loadVoGroups()})("ngModelChange",function(e){return a.CHM(t),a.oxw(2).asSubgroup=e}),a._uU(1),a.ALo(2,"translate"),a.qZA()}if(2&t){const t=a.oxw(2);a.Q6J("labelPosition","before")("ngModel",t.asSubgroup),a.xp6(1),a.hij(" ",a.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function w(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"perun-web-apps-group-search-select",14),a.NdJ("groupSelected",function(e){return a.CHM(t),a.oxw(2).selectedParent=e}),a.qZA()}if(2&t){const t=a.oxw(2);a.Q6J("disableAutoSelect",!0)("groups",t.voGroups)}}function _(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"div",4),a.TgZ(2,"mat-form-field"),a.TgZ(3,"label",5),a._UZ(4,"input",6),a.ALo(5,"translate"),a.qZA(),a.TgZ(6,"mat-error"),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.qZA(),a.TgZ(9,"mat-form-field",7),a.TgZ(10,"label",5),a._UZ(11,"textarea",6),a.ALo(12,"translate"),a.qZA(),a.TgZ(13,"mat-error"),a._uU(14),a.ALo(15,"translate"),a.qZA(),a.qZA(),a.YNc(16,b,3,5,"mat-checkbox",8),a.YNc(17,w,1,2,"perun-web-apps-group-search-select",9),a.qZA(),a.TgZ(18,"div",10),a.TgZ(19,"button",11),a.NdJ("click",function(){return a.CHM(t),a.oxw().onCancel()}),a._uU(20),a.ALo(21,"translate"),a.qZA(),a.TgZ(22,"button",12),a.NdJ("click",function(){return a.CHM(t),a.oxw().onSubmit()}),a._uU(23),a.ALo(24,"translate"),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(4),a.s9C("placeholder",a.lcZ(5,11,"DIALOGS.CREATE_GROUP.NAME")),a.Q6J("formControl",t.nameControl),a.xp6(3),a.hij(" ",t.invalidNameMessage.length?t.invalidNameMessage:a.lcZ(8,13,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),a.xp6(4),a.s9C("placeholder",a.lcZ(12,15,"DIALOGS.CREATE_GROUP.DESCRIPTION")),a.Q6J("formControl",t.descriptionControl),a.xp6(3),a.hij(" ",a.lcZ(15,17,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),a.xp6(2),a.Q6J("ngIf",t.isNotSubGroup),a.xp6(1),a.Q6J("ngIf",t.asSubgroup),a.xp6(3),a.hij(" ",a.lcZ(21,19,"DIALOGS.CREATE_GROUP.CANCEL")," "),a.xp6(2),a.Q6J("disabled",t.nameControl.invalid||t.descriptionControl.invalid||t.asSubgroup&&null===t.selectedParent||t.loading),a.xp6(1),a.hij(" ",a.lcZ(24,21,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let y=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.groupService=i,this.translate=n,this.notificator=s,this.store=o,this.asSubgroup=!1,this.invalidNameMessage=this.store.get("groupNameErrorMessage"),this.secondaryRegex=this.store.get("groupNameSecondaryRegex"),this.voGroups=[],this.nameFunction=t=>t.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?n.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(t=>this.title=t):n.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(t=>{this.title=t+this.data.parentGroup.name}),n.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(t=>this.successMessage=t),n.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(t=>this.successSubGroupMessage=t)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new r.NI("",[r.kI.required,r.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),r.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new r.NI("",[r.kI.required,r.kI.maxLength(129)]),this.selectedParent=null}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.isNotSubGroup&&!this.asSubgroup?this.groupService.createGroupWithVoNameDescription(this.data.voId,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1):this.groupService.createGroupWithParentGroupNameDescription(this.asSubgroup?this.selectedParent.id:this.data.parentGroup.id,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successSubGroupMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}loadVoGroups(){this.groupService.getAllGroups(this.data.voId).subscribe(t=>{this.voGroups=t.filter(t=>"members"!==t.name)})}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.ff),a.Y36(c.sK),a.Y36(s.V6),a.Y36(s.d6))},t.\u0275cmp=a.Xpm({type:t,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","","required","",3,"formControl","placeholder"],[1,"mt-4"],[3,"labelPosition","ngModel","click","ngModelChange",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",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,"labelPosition","ngModel","click","ngModelChange"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div"),a.YNc(3,m,1,0,"mat-spinner",1),a.YNc(4,_,25,23,"div",2),a.qZA()),2&t&&(a.xp6(1),a.Oqu(e.title),a.xp6(1),a.Tol(e.theme),a.xp6(1),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,u.O5,l.$g,n.xY,h.KE,d.Nt,r.Fj,r.Q7,r.JJ,r.oH,h.TO,n.H8,p.lW,g.oG,r.On,f.h],pipes:[c.X$],styles:[""]}),t})()},20247:function(t,e,i){"use strict";i.d(e,{e:function(){return O}});var n=i(31572),s=i(16073),o=i(67033),r=i(61511),a=i(84608),c=i(15980),u=i(43691),l=i(85250),h=i(39571),d=i(66283),p=i(80340),g=i(48160);function f(t,e){if(1&t&&(n.TgZ(0,"div",14),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"translate"),n.TgZ(4,"span",15),n._uU(5),n.ALo(6,"translate"),n.qZA(),n._uU(7),n.ALo(8,"translate"),n.qZA()),2&t){const t=n.oxw(2);n.xp6(1),n.lnq(" ",n.lcZ(2,6,"DIALOGS.DELETE_ENTITY.BASIC")," ",n.lcZ(3,8,"DIALOGS.DELETE_ENTITY.ONLY")," ",t.entityType," "),n.xp6(4),n.Oqu(n.lcZ(6,10,"DIALOGS.DELETE_ENTITY.OR")),n.xp6(2),n.AsE(" ",t.entityType," ",n.lcZ(8,12,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function m(t,e){if(1&t&&(n.TgZ(0,"div",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t){const t=n.oxw(2);n.xp6(1),n.AsE(" ",n.lcZ(2,2,"DIALOGS.DELETE_ENTITY.BASIC")," ",t.entityType," ? ")}}function b(t,e){1&t&&n._UZ(0,"th",16)}function w(t,e){if(1&t&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",t.name," ")}}function _(t,e){1&t&&n._UZ(0,"tr",18)}function y(t,e){1&t&&n._UZ(0,"tr",19)}function A(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",12),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).force=!0}),n.TgZ(1,"mat-icon"),n._uU(2,"warning"),n.qZA(),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"translate"),n.qZA()}2&t&&(n.xp6(3),n.AsE(" ",n.lcZ(4,2,"DIALOGS.DELETE_ENTITY.DELETE")," ",n.lcZ(5,4,"DIALOGS.DELETE_ENTITY.RELATIONS")," "))}const v=function(){return["name"]};function T(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div"),n.TgZ(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",2),n.YNc(5,f,9,14,"div",3),n.YNc(6,m,3,4,"div",3),n.TgZ(7,"table",4),n.ynx(8,5),n.YNc(9,b,1,0,"th",6),n.YNc(10,w,2,1,"td",7),n.BQk(),n.YNc(11,_,1,0,"tr",8),n.YNc(12,y,1,0,"tr",9),n.qZA(),n.qZA(),n.TgZ(13,"div",10),n.TgZ(14,"button",11),n.NdJ("click",function(){return n.CHM(t),n.oxw().onCancel()}),n._uU(15),n.ALo(16,"translate"),n.qZA(),n.TgZ(17,"button",12),n.NdJ("click",function(){return n.CHM(t),n.oxw().onDelete()}),n._uU(18),n.ALo(19,"translate"),n.qZA(),n.YNc(20,A,6,6,"button",13),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(2),n.AsE("",n.lcZ(3,10,"DIALOGS.DELETE_ENTITY.DELETE")," ",t.entityType,""),n.xp6(3),n.Q6J("ngIf",!t.disableForce),n.xp6(1),n.Q6J("ngIf",t.disableForce),n.xp6(1),n.Q6J("dataSource",t.entityNames),n.xp6(4),n.Q6J("matHeaderRowDef",n.DdM(16,v)),n.xp6(1),n.Q6J("matRowDefColumns",n.DdM(17,v)),n.xp6(3),n.hij(" ",n.lcZ(16,12,"DIALOGS.DELETE_ENTITY.CANCEL")," "),n.xp6(3),n.hij(" ",n.lcZ(19,14,"DIALOGS.DELETE_ENTITY.DELETE")," "),n.xp6(2),n.Q6J("ngIf",!t.disableForce)}}function C(t,e){if(1&t&&(n.TgZ(0,"mat-list-item"),n.TgZ(1,"span"),n.TgZ(2,"mat-icon",24),n._uU(3,"fiber_manual_record"),n.qZA(),n._uU(4),n.qZA(),n.qZA()),2&t){const t=e.$implicit;n.xp6(4),n.hij(" ",t," ")}}function S(t,e){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){const t=n.oxw(2);n.xp6(1),n.hij(" ",t.anotherMessage," ")}}function E(t,e){1&t&&n._UZ(0,"th",16)}function k(t,e){if(1&t&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",t.name," ")}}function x(t,e){1&t&&n._UZ(0,"tr",18)}function R(t,e){1&t&&n._UZ(0,"tr",19)}function I(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div"),n.TgZ(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"div",2),n.TgZ(6,"div",14),n._uU(7),n.ALo(8,"translate"),n.TgZ(9,"mat-list"),n.YNc(10,C,5,1,"mat-list-item",20),n.qZA(),n.YNc(11,S,2,1,"div",0),n.TgZ(12,"app-alert",21),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"table",4),n.ynx(16,5),n.YNc(17,E,1,0,"th",6),n.YNc(18,k,2,1,"td",7),n.BQk(),n.YNc(19,x,1,0,"tr",8),n.YNc(20,R,1,0,"tr",9),n.qZA(),n.qZA(),n.TgZ(21,"mat-form-field"),n._UZ(22,"input",22),n.ALo(23,"translate"),n.qZA(),n.qZA(),n.TgZ(24,"div",10),n.TgZ(25,"button",11),n.NdJ("click",function(){return n.CHM(t),n.oxw().onCancel()}),n._uU(26),n.ALo(27,"translate"),n.qZA(),n.TgZ(28,"button",23),n.NdJ("click",function(){return n.CHM(t),n.oxw().onDelete()}),n.TgZ(29,"mat-icon"),n._uU(30,"warning"),n.qZA(),n._uU(31),n.ALo(32,"translate"),n.ALo(33,"translate"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(2),n.lnq("",n.lcZ(3,17,"DIALOGS.DELETE_ENTITY.DELETE")," ",t.entityType," ",n.lcZ(4,19,"DIALOGS.DELETE_ENTITY.RELATIONS"),""),n.xp6(5),n.hij(" ",n.lcZ(8,21,"DIALOGS.DELETE_ENTITY.WARN"),": "),n.xp6(3),n.Q6J("ngForOf",t.relations),n.xp6(1),n.Q6J("ngIf",t.anotherMessage),n.xp6(2),n.AsE(" ",n.lcZ(14,23,"DIALOGS.DELETE_ENTITY.ASK")," ",t.entityType," ? "),n.xp6(2),n.Q6J("dataSource",t.entityNames),n.xp6(4),n.Q6J("matHeaderRowDef",n.DdM(33,v)),n.xp6(1),n.Q6J("matRowDefColumns",n.DdM(34,v)),n.xp6(2),n.s9C("placeholder",n.lcZ(23,25,"DIALOGS.DELETE_ENTITY.CONTROL")),n.Q6J("formControl",t.deleteControl),n.xp6(4),n.hij(" ",n.lcZ(27,27,"DIALOGS.DELETE_ENTITY.CANCEL")," "),n.xp6(2),n.Q6J("disabled",t.deleteControl.invalid),n.xp6(3),n.AsE(" ",n.lcZ(32,29,"DIALOGS.DELETE_ENTITY.DELETE")," ",n.lcZ(33,31,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}let O=(()=>{class t{constructor(){this.entityNames=new o.by,this.relations=[],this.disableForce=!1,this.deleted=new n.vpe,this.loading=!1,this.force=!1,this.deleteReg=/^DELETE$/,this.deleteControl=new s.NI("",[s.kI.required,s.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-delete-entity-dialog"]],inputs:{title:"title",entityNames:"entityNames",entityType:"entityType",relations:"relations",anotherMessage:"anotherMessage",disableForce:"disableForce"},outputs:{deleted:"deleted"},decls:2,vars:2,consts:[[4,"ngIf"],["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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["class","ml-2","mat-flat-button","","color","warn",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",""],[4,"ngFor","ngForOf"],["alert_type","warn"],["matInput","",3,"formControl","placeholder"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"dot-icon"]],template:function(t,e){1&t&&(n.YNc(0,T,21,18,"div",0),n.YNc(1,I,34,35,"div",0)),2&t&&(n.Q6J("ngIf",!e.force),n.xp6(1),n.Q6J("ngIf",e.force))},directives:[r.O5,a.uh,a.xY,o.BZ,o.w1,o.fO,o.Dz,o.as,o.nj,a.H8,c.lW,o.ge,o.ev,o.XQ,o.Gk,u.Hw,l.i$,r.sg,h.w,d.KE,p.Nt,s.Fj,s.JJ,s.oH,l.Tg],pipes:[g.X$],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),t})()},30570:function(t,e,i){"use strict";i.d(e,{Y:function(){return l}});var n=i(33642),s=i(84608),o=i(88426),r=i(67033),a=i(31572),c=i(48160),u=i(20247);let l=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=n,this.translate=s,this.displayedColumns=["name"],this.loading=!1,this.force=!1,this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.facility=this.data.facility,this.dataSource=new r.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(t){this.force=t.force,t.deleted?this.onConfirm():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(n.IQ),a.Y36(o.V6),a.Y36(c.sK))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-delete-facility-dialog"]],decls:2,vars:6,consts:[[3,"entityNames","entityType","relations","deleted"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"app-delete-entity-dialog",0),a.NdJ("deleted",function(t){return e.onSubmit(t)}),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("entityNames",e.dataSource)("entityType","facilities")("relations",e.relations))},directives:[u.e],styles:[""]}),t})()},43491:function(t,e,i){"use strict";i.d(e,{P:function(){return l}});var n=i(84608),s=i(67033),o=i(88426),r=i(33642),a=i(31572),c=i(48160),u=i(20247);let l=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.groupService=s,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.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,this.groupService.deleteGroups(this.data.groups.map(t=>t.id),this.force).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(t){this.force=t.force,t.deleted?this.onDelete():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.V6),a.Y36(c.sK),a.Y36(r.ff))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-delete-group-dialog"]],decls:2,vars:6,consts:[[3,"entityNames","entityType","relations","deleted"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"app-delete-entity-dialog",0),a.NdJ("deleted",function(t){return e.onSubmit(t)}),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("entityNames",e.dataSource)("entityType","groups")("relations",e.relations))},directives:[u.e],styles:[""]}),t})()},75954:function(t,e,i){"use strict";i.d(e,{_:function(){return it}});var n=i(84608),s=i(33642),o=i(84140),r=i(41939),a=i(88426),c=i(31572),u=i(48160),l=i(61511),h=i(15980),d=i(67806),p=i(55109);const g=["*"];let f=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:g,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(t,e){1&t&&(c.F$t(),c.TgZ(0,"div",0),c.TgZ(1,"span",1),c._uU(2),c.qZA(),c.TgZ(3,"div",2),c.Hsn(4),c.qZA(),c.qZA(),c.TgZ(5,"div",3),c._UZ(6,"span",4),c.TgZ(7,"div",5),c._uU(8),c.qZA(),c.qZA()),2&t&&(c.xp6(2),c.hij("",e.label,":"),c.xp6(6),c.hij(" ",e.description," "))},styles:[""]}),t})();var m=i(66283),b=i(80340),w=i(16073),_=i(29236),y=i(4786),A=i(71522),v=i(30725),T=i(10901),C=i(36922),S=i(43691),E=i(65050);let k=(()=>{class t{constructor(t){this.translateService=t}transform(t){switch(t){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+t);default:return t}}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(u.sK,16))},t.\u0275pipe=c.Yjl({name:"applicationFormItemDisabled",type:t,pure:!0}),t})(),x=(()=>{class t{constructor(t){this.translateService=t}transform(t){switch(t){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+t);default:return t}}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(u.sK,16))},t.\u0275pipe=c.Yjl({name:"applicationFormItemHidden",type:t,pure:!0}),t})();function R(t,e){1&t&&c._UZ(0,"mat-spinner",7)}function I(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"section"),c.TgZ(5,"mat-checkbox",21),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw(3).applicationFormItem.updatable=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(3);c.xp6(1),c.Q6J("label",c.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE"))("description",c.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.applicationFormItem.updatable)}}function O(t,e){if(1&t&&(c.TgZ(0,"mat-option",24),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t.value),c.xp6(1),c.hij(" ",t.displayName," ")}}function P(t,e){if(1&t&&(c.TgZ(0,"mat-option",24),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t.value),c.xp6(1),c.hij(" ",t.displayName," ")}}function D(t,e){if(1&t&&(c.TgZ(0,"mat-option",24),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t.value),c.xp6(1),c.hij(" ",t.displayName," ")}}function M(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",12),c.TgZ(1,"mat-form-field",12),c.TgZ(2,"input",13),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw(3).applicationFormItem.federationAttribute=e}),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(3);c.xp6(2),c.Q6J("ngModel",t.applicationFormItem.federationAttribute)}}function L(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"section"),c.TgZ(5,"mat-checkbox",21),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.required=e}),c.qZA(),c.qZA(),c.qZA(),c.YNc(6,I,6,7,"div",16),c.TgZ(7,"app-edit-application-form-item-line",11),c.ALo(8,"translate"),c.ALo(9,"translate"),c.TgZ(10,"mat-form-field",12),c.TgZ(11,"mat-select",17),c.NdJ("valueChange",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.perunSourceAttribute=e}),c.YNc(12,O,2,2,"mat-option",18),c.qZA(),c.qZA(),c.qZA(),c.TgZ(13,"app-edit-application-form-item-line",11),c.ALo(14,"translate"),c.ALo(15,"translate"),c.TgZ(16,"mat-form-field",12),c.TgZ(17,"mat-select",17),c.NdJ("valueChange",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.perunDestinationAttribute=e}),c.YNc(18,P,2,2,"mat-option",18),c.qZA(),c.qZA(),c.qZA(),c.TgZ(19,"app-edit-application-form-item-line",11),c.ALo(20,"translate"),c.ALo(21,"translate"),c.TgZ(22,"mat-form-field",12),c.TgZ(23,"mat-select",22),c.NdJ("selectionChange",function(){return c.CHM(t),c.oxw(2).federationAttributeschanged()})("valueChange",function(e){return c.CHM(t),c.oxw(2).federationAttribute=e}),c.YNc(24,D,2,2,"mat-option",18),c.qZA(),c.qZA(),c.YNc(25,M,3,1,"div",23),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED"))("description",c.lcZ(3,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.applicationFormItem.required),c.xp6(1),c.Q6J("ngIf",t.typesWithUpdatable.indexOf(t.applicationFormItem.type)>-1),c.xp6(1),c.Q6J("label",c.lcZ(8,21,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE"))("description",c.lcZ(9,23,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("value",t.applicationFormItem.perunSourceAttribute),c.xp6(1),c.Q6J("ngForOf",t.sourceAttributes),c.xp6(1),c.Q6J("label",c.lcZ(14,25,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE"))("description",c.lcZ(15,27,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("value",t.applicationFormItem.perunDestinationAttribute),c.xp6(1),c.Q6J("ngForOf",t.destinationAttributes),c.xp6(1),c.Q6J("label",c.lcZ(20,29,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE"))("description",c.lcZ(21,31,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("value",t.federationAttribute),c.xp6(1),c.Q6J("ngForOf",t.federationAttributes),c.xp6(1),c.Q6J("ngIf","custom"===t.federationAttribute)}}function N(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"input",13),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.regex=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX"))("description",c.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.applicationFormItem.regex)}}function z(t,e){if(1&t&&(c.TgZ(0,"mat-option",24),c._uU(1),c.ALo(2,"applicationFormItemDisabled"),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t),c.xp6(1),c.hij(" ",c.lcZ(2,2,t)," ")}}function F(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"perun-web-apps-app-form-item-search-select",25),c.NdJ("itemSelected",function(e){return c.CHM(t),c.oxw(3).disabledDependencyItem=e}),c.qZA()}if(2&t){const t=c.oxw(3);c.Q6J("item",t.disabledDependencyItem)("items",t.possibleDependencyItems)}}function Z(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"mat-select",17),c.NdJ("valueChange",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.disabled=e}),c.YNc(6,z,3,4,"mat-option",18),c.qZA(),c.qZA(),c.qZA(),c.TgZ(7,"app-edit-application-form-item-line",11),c.ALo(8,"translate"),c.ALo(9,"translate"),c.TgZ(10,"div",12),c.YNc(11,F,1,2,"perun-web-apps-app-form-item-search-select",19),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED"))("description",c.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION")),c.xp6(4),c.Q6J("value",t.applicationFormItem.disabled),c.xp6(1),c.Q6J("ngForOf",t.disabledValues),c.xp6(1),c.Q6J("label",c.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY"))("description",c.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION")),c.xp6(4),c.Q6J("ngIf",null!==t.disabledDependencyItem)}}function B(t,e){if(1&t&&(c.TgZ(0,"mat-option",24),c._uU(1),c.ALo(2,"applicationFormItemHidden"),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t),c.xp6(1),c.hij(" ",c.lcZ(2,2,t)," ")}}function q(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"perun-web-apps-app-form-item-search-select",25),c.NdJ("itemSelected",function(e){return c.CHM(t),c.oxw(2).hiddenDependencyItem=e}),c.qZA()}if(2&t){const t=c.oxw(2);c.Q6J("item",t.hiddenDependencyItem)("items",t.possibleDependencyItems)}}function U(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",26),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].label=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw().$implicit,e=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT"))("description",c.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION")),c.xp6(4),c.Q6J("cdkTextareaAutosize",!0)("ngModel",e.applicationFormItem.i18n[t].label)}}function H(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",13),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].label=e}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(6,"app-edit-application-form-item-line",11),c.ALo(7,"translate"),c.ALo(8,"translate"),c.TgZ(9,"mat-form-field",12),c.TgZ(10,"textarea",13),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].help=e}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(11,"app-edit-application-form-item-line",11),c.ALo(12,"translate"),c.ALo(13,"translate"),c.TgZ(14,"mat-form-field",12),c.TgZ(15,"textarea",13),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].errorMessage=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw().$implicit,e=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",c.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",e.applicationFormItem.i18n[t].label),c.xp6(1),c.Q6J("label",c.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP"))("description",c.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",e.applicationFormItem.i18n[t].help),c.xp6(1),c.Q6J("label",c.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR"))("description",c.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",e.applicationFormItem.i18n[t].errorMessage)}}function j(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",13),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].label=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw().$implicit,e=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",c.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",e.applicationFormItem.i18n[t].label)}}function G(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.TgZ(3,"mat-form-field"),c.TgZ(4,"input",13),c.NdJ("ngModelChange",function(t){return e.$implicit[0]=t}),c.qZA(),c.qZA(),c._uU(5),c.ALo(6,"translate"),c.TgZ(7,"mat-form-field"),c.TgZ(8,"input",13),c.NdJ("ngModelChange",function(t){return e.$implicit[1]=t}),c.qZA(),c.qZA(),c.TgZ(9,"button",35),c.NdJ("click",function(){const e=c.CHM(t).$implicit,i=c.oxw(2).$implicit;return c.oxw(2).removeOption(e,i)}),c.ALo(10,"translate"),c.TgZ(11,"mat-icon"),c._uU(12,"clear"),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=e.$implicit;c.xp6(1),c.hij(" ",c.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),c.xp6(3),c.Q6J("ngModel",t[0]),c.xp6(1),c.hij(" ",c.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),c.xp6(3),c.Q6J("ngModel",t[1]),c.xp6(1),c.s9C("matTooltip",c.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function Y(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"div",27),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",28),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"div",29),c.TgZ(8,"button",30),c.NdJ("click",function(){c.CHM(t);const e=c.oxw().$implicit;return c.oxw(2).sortOptionsAZ(e)}),c.TgZ(9,"i",31),c._uU(10,"arrow_downward"),c.qZA(),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.TgZ(13,"button",32),c.NdJ("click",function(){c.CHM(t);const e=c.oxw().$implicit;return c.oxw(2).sortOptionsZA(e)}),c.TgZ(14,"i",31),c._uU(15,"arrow_upward"),c.qZA(),c._uU(16),c.ALo(17,"translate"),c.qZA(),c.qZA(),c.YNc(18,G,13,11,"div",33),c.TgZ(19,"button",34),c.NdJ("click",function(){c.CHM(t);const e=c.oxw().$implicit;return c.oxw(2).addOption(e)}),c._uU(20),c.ALo(21,"translate"),c.qZA(),c.qZA()}if(2&t){const t=c.oxw().$implicit,e=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",e.options[t]),c.xp6(2),c.hij(" ",c.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const V=function(){return["HEADING","HTML_COMMENT"]},K=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION"]},J=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},$=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function Q(t,e){if(1&t&&(c.TgZ(0,"mat-tab",10),c.ALo(1,"translate"),c.ALo(2,"uppercase"),c.YNc(3,U,6,8,"div",16),c.YNc(4,H,16,21,"div",16),c.YNc(5,j,6,7,"div",16),c.YNc(6,Y,22,16,"div",16),c.qZA()),2&t){const t=e.$implicit,i=c.oxw(2);c.s9C("label",c.lcZ(1,5,c.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+t))),c.xp6(3),c.Q6J("ngIf",i.isApplicationFormItemOfType(c.DdM(9,V))),c.xp6(1),c.Q6J("ngIf",i.isApplicationFormItemOfType(c.DdM(10,K))),c.xp6(1),c.Q6J("ngIf",i.isApplicationFormItemOfType(c.DdM(11,J))),c.xp6(1),c.Q6J("ngIf",i.isApplicationFormItemOfType(c.DdM(12,$)))}}const W=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]},X=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]};function tt(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",8),c.TgZ(1,"mat-tab-group",9),c.TgZ(2,"mat-tab",10),c.ALo(3,"translate"),c.TgZ(4,"app-edit-application-form-item-line",11),c.ALo(5,"translate"),c.ALo(6,"translate"),c.TgZ(7,"mat-form-field",12),c.TgZ(8,"input",13),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw().applicationFormItem.shortname=e}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(9,"app-edit-application-form-item-line",11),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",11),c.ALo(15,"translate"),c.ALo(16,"translate"),c.TgZ(17,"section"),c.TgZ(18,"mat-checkbox",14),c.NdJ("change",function(){return c.CHM(t),c.oxw().onChangingType("INITIAL")}),c._uU(19),c.ALo(20,"translate"),c.qZA(),c.TgZ(21,"mat-checkbox",15),c.NdJ("change",function(){return c.CHM(t),c.oxw().onChangingType("EXTENSION")}),c._uU(22),c.ALo(23,"translate"),c.qZA(),c.qZA(),c.qZA(),c.YNc(24,L,26,33,"div",16),c.YNc(25,N,6,7,"div",16),c.YNc(26,Z,12,15,"div",16),c.TgZ(27,"app-edit-application-form-item-line",11),c.ALo(28,"translate"),c.ALo(29,"translate"),c.TgZ(30,"mat-form-field",12),c.TgZ(31,"mat-select",17),c.NdJ("valueChange",function(e){return c.CHM(t),c.oxw().applicationFormItem.hidden=e}),c.YNc(32,B,3,4,"mat-option",18),c.qZA(),c.qZA(),c.qZA(),c.TgZ(33,"app-edit-application-form-item-line",11),c.ALo(34,"translate"),c.ALo(35,"translate"),c.TgZ(36,"div",12),c.YNc(37,q,1,2,"perun-web-apps-app-form-item-search-select",19),c.qZA(),c.qZA(),c.qZA(),c.YNc(38,Q,7,13,"mat-tab",20),c.qZA(),c.qZA()}if(2&t){const t=c.oxw();c.xp6(2),c.s9C("label",c.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),c.xp6(2),c.Q6J("label",c.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME"))("description",c.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.applicationFormItem.shortname),c.xp6(1),c.Q6J("label",c.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET"))("description",c.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION")),c.xp6(3),c.hij(" ",c.lcZ(13,34,t.applicationFormItem.type)," "),c.xp6(2),c.Q6J("label",c.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION"))("description",c.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.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",t.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",t.isApplicationFormItemOfType(c.DdM(52,W))),c.xp6(1),c.Q6J("ngIf",t.isApplicationFormItemOfType(c.DdM(53,X))),c.xp6(1),c.Q6J("ngIf",t.typesWithDisabled.indexOf(t.applicationFormItem.type)>-1),c.xp6(1),c.Q6J("label",c.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN"))("description",c.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION")),c.xp6(4),c.Q6J("value",t.applicationFormItem.hidden),c.xp6(1),c.Q6J("ngForOf",t.hiddenValues),c.xp6(1),c.Q6J("label",c.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY"))("description",c.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION")),c.xp6(4),c.Q6J("ngIf",null!==t.hiddenDependencyItem),c.xp6(1),c.Q6J("ngForOf",t.languages)}}class et{constructor(t,e){this.value=e,this.displayName=t}}let it=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.attributesManager=i,this.translateService=n,this.store=s,this.federationAttributes=[],this.federationAttribute="",this.sourceAttributes=[],this.destinationAttributes=[],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"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"],this.languages=["en"]}ngOnInit(){this.languages=this.store.get("supportedLanguages"),this.hiddenDependencyItem=this.data.allItems.find(t=>t.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=r.Sx),this.disabledDependencyItem=this.data.allItems.find(t=>t.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=r.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,o.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(t=>{this.attributeDefinitions=t,this.getDestinationAndSourceAttributes(),this.loading=!1},()=>this.loading=!1),this.getFederationAttributes(),this.getFederationAttribute(),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}getPossibleDepItems(){return[r.Sx].concat(this.data.allItems.filter(t=>this.dependencyTypes.indexOf(t.type)>-1).filter(t=>t.id!==this.data.applicationFormItem.id))}cancel(){this.dialogRef.close()}submit(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===r.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===r.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(t){if(this.applicationFormItem.applicationTypes.includes(t)){const e=this.applicationFormItem.applicationTypes.indexOf(t);this.applicationFormItem.applicationTypes.splice(e,1)}else this.applicationFormItem.applicationTypes.push(t)}getDestinationAndSourceAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(t=>{this.sourceAttributes.push(new et(t,"")),this.destinationAttributes.push(new et(t,""))});for(const t of this.attributeDefinitions)"user"===t.entity.toLowerCase()||"member"===t.entity.toLowerCase()?(this.sourceAttributes.push(new et(t.friendlyName+" ("+t.entity+" / "+this.getDefinition(t)+")",t.namespace+":"+t.friendlyName)),this.destinationAttributes.push(new et(t.friendlyName+" ("+t.entity+" / "+this.getDefinition(t)+")",t.namespace+":"+t.friendlyName))):("vo"===t.entity.toLowerCase()||"group"===t.entity.toLowerCase()&&this.data.group)&&this.sourceAttributes.push(new et(t.friendlyName+" ("+t.entity+" / "+this.getDefinition(t)+")",t.namespace+":"+t.friendlyName))}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(t=>{this.federationAttributes.push(new et(t,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(t=>{this.federationAttributes.push(new et(t,"custom")),this.federationAttributes.push(new et("Display name","displayName")),this.federationAttributes.push(new et("Common name","cn")),this.federationAttributes.push(new et("Mail","mail")),this.federationAttributes.push(new et("Organization","o")),this.federationAttributes.push(new et("Level of Assurance (LoA)","loa")),this.federationAttributes.push(new et("First name","givenName")),this.federationAttributes.push(new et("Surname","sn")),this.federationAttributes.push(new et("EPPN","eppn")),this.federationAttributes.push(new et("IdP Category","md_entityCategory")),this.federationAttributes.push(new et("IdP Affiliation","affiliation")),this.federationAttributes.push(new et("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.federationAttributes.push(new et("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.federationAttributes.push(new et("schacHomeOrganization","schacHomeOrganization")),this.federationAttributes.push(new et("Login","uid")),this.federationAttributes.push(new et("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){if(this.applicationFormItem.federationAttribute){for(const t of this.federationAttributes)if(t.value===this.applicationFormItem.federationAttribute)return void(this.federationAttribute=t.value);this.federationAttribute="custom"}}federationAttributeschanged(){this.applicationFormItem.federationAttribute="custom"!==this.federationAttribute?this.federationAttribute:""}getDefinition(t){const e=t.namespace.split(":");return null===e[4]?"null":e[4]}addOption(t){this.options[t].push(["",""])}removeOption(t,e){this.options[e]=this.options[e].filter(e=>!(e[0]===t[0]&&e[1]===t[1]))}updateOption(t){let e="";if(this.options&&this.options[t])for(const i of this.options[t])""!==i[0]&&""!==i[1]&&(e=""===e?i[0]+"#"+i[1]:e+"|"+i[0]+"#"+i[1]);this.applicationFormItem.i18n[t].options=e}updateOptions(){for(const t of this.languages)this.updateOption(t)}copy(t,e){e.applicationTypes=t.applicationTypes,e.federationAttribute=t.federationAttribute,e.forDelete=t.forDelete;for(const i of this.languages)e.i18n[i].errorMessage=t.i18n[i].errorMessage,e.i18n[i].help=t.i18n[i].help,e.i18n[i].label=t.i18n[i].label,e.i18n[i].options=t.i18n[i].options;e.id=t.id,e.ordnum=t.ordnum,e.perunDestinationAttribute=t.perunDestinationAttribute,e.perunSourceAttribute=t.perunSourceAttribute,e.regex=t.regex,e.required=t.required,e.shortname=t.shortname,e.type=t.type,e.updatable=t.updatable,e.disabled=t.disabled,e.hidden=t.hidden,e.disabledDependencyItemId=t.disabledDependencyItemId,e.hiddenDependencyItemId=t.hiddenDependencyItemId}sortOptionsAZ(t){this.options[t]=this.options[t].sort((t,e)=>t[1]>e[1]?1:t[1]t[1]>e[1]?-1:t[1]-1}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(n.so),c.Y36(n.WI),c.Y36(s.H8),c.Y36(u.sK),c.Y36(a.d6))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-edit-application-form-item-dialog"]],decls:14,vars:16,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2","mt-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["color","primary"],[3,"label"],[3,"label","description"],[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"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["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"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-icon-button","","color","warn",3,"matTooltip","click"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"div",0),c.TgZ(2,"h1",1),c._uU(3),c.ALo(4,"translate"),c.qZA(),c.YNc(5,R,1,0,"mat-spinner",2),c.YNc(6,tt,39,54,"div",3),c.TgZ(7,"div",4),c.TgZ(8,"button",5),c.NdJ("click",function(){return e.cancel()}),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.TgZ(11,"button",6),c.NdJ("click",function(){return e.submit()}),c._uU(12),c.ALo(13,"translate"),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&t&&(c.Gre("",e.theme," h-100"),c.xp6(3),c.AsE("",c.lcZ(4,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",e.applicationFormItem.shortname,""),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(3),c.hij(" ",c.lcZ(10,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),c.xp6(2),c.Q6J("disabled",e.loading),c.xp6(1),c.hij(" ",c.lcZ(13,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},directives:[n.uh,l.O5,n.H8,h.lW,d.$g,n.xY,p.SP,p.uX,f,m.KE,b.Nt,w.Fj,w.JJ,w.On,_.oG,y.gD,l.sg,A.ey,v.Y,T.IC,C.gM,S.Hw],pipes:[u.X$,E.c,k,x,l.gd],styles:[""]}),t})()},79592:function(t,e,i){"use strict";i.d(e,{H:function(){return P}});var n=i(33642),s=i(84608),o=i(88426),r=i(67033),a=i(84140),c=i(61189),u=i(61511),l=i(31572),h=i(48160),d=i(15980),p=i(67806),g=i(43691),f=i(36922),m=i(22196);function b(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function w(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")))}function _(t,e){if(1&t&&(l.TgZ(0,"td",18),l._uU(1),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.hij(" ",t.user.id," ")}}function y(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")))}function A(t,e){if(1&t&&(l.TgZ(0,"td",18),l._uU(1),l.ALo(2,"userFullName"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.hij(" ",l.lcZ(2,1,t.user)," ")}}function v(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")))}function T(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",20),l.NdJ("click",function(){l.CHM(t);const e=l.oxw().$implicit;return l.oxw(2).changeExpiration(e)}),l.TgZ(1,"mat-icon"),l._uU(2," today "),l.qZA(),l.qZA()}}function C(t,e){if(1&t&&(l.TgZ(0,"td",18),l.TgZ(1,"span"),l._uU(2),l.qZA(),l.YNc(3,T,3,0,"button",19),l.qZA()),2&t){const t=e.$implicit,i=l.oxw(2);l.xp6(2),l.Oqu(i.parseDate(t.validityTo)),l.xp6(1),l.Q6J("ngIf",i.isExpirationAuthorized(t))}}function S(t,e){1&t&&l._UZ(0,"th",17)}function E(t,e){1&t&&(l.TgZ(0,"mat-icon",25),l._uU(1,"clear"),l.qZA())}function k(t,e){1&t&&(l.TgZ(0,"mat-icon"),l._uU(1,"settings_backup_restore"),l.qZA())}function x(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"td",18),l.TgZ(1,"div",21),l.ALo(2,"translate"),l.TgZ(3,"button",22),l.NdJ("click",function(){const e=l.CHM(t).$implicit;return l.oxw(2).markSponsor(e)}),l.YNc(4,E,2,0,"mat-icon",23),l.YNc(5,k,2,0,"mat-icon",24),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit,i=l.oxw(2);l.xp6(1),l.s9C("matTooltip",l.lcZ(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),l.Q6J("matTooltipPosition","above")("matTooltipDisabled",i.isRemoveAuthorized(t)),l.xp6(2),l.Q6J("disabled",!i.isRemoveAuthorized(t)),l.xp6(1),l.Q6J("ngIf",!i.sponsorsToRemove.has(t.user.id)),l.xp6(1),l.Q6J("ngIf",i.sponsorsToRemove.has(t.user.id))}}function R(t,e){1&t&&l._UZ(0,"tr",26)}function I(t,e){if(1&t&&l._UZ(0,"tr",27),2&t){const t=e.$implicit,i=l.oxw(2);l.ekj("make-red",i.sponsorsToRemove.has(t.user.id))}}function O(t,e){if(1&t&&(l.TgZ(0,"div",7),l.TgZ(1,"table",8),l.ynx(2,9),l.YNc(3,w,3,3,"th",10),l.YNc(4,_,2,1,"td",11),l.BQk(),l.ynx(5,12),l.YNc(6,y,3,3,"th",10),l.YNc(7,A,3,3,"td",11),l.BQk(),l.ynx(8,13),l.YNc(9,v,3,3,"th",10),l.YNc(10,C,4,2,"td",11),l.BQk(),l.ynx(11,14),l.YNc(12,S,1,0,"th",10),l.YNc(13,x,6,8,"td",11),l.BQk(),l.YNc(14,R,1,0,"tr",15),l.YNc(15,I,1,2,"tr",16),l.qZA(),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("dataSource",t.dataSource),l.xp6(13),l.Q6J("matHeaderRowDef",t.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",t.displayedColumns)}}let P=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.dialogRef=t,this.data=e,this.memberService=i,this.userService=n,this.notificator=s,this.authResolver=o,this.translate=r,this.dialog=a,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.expirationChanged=!1,this.sponsorsToRemove=new Set}ngOnInit(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new r.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(t){this.sponsorsToRemove.has(t.user.id)?this.sponsorsToRemove.delete(t.user.id):this.sponsorsToRemove.add(t.user.id)}removeSponsors(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const e=t.pop();this.memberService.removeSponsor(this.data.member.id,e).subscribe(()=>{this.removeSponsors(t)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const t=Array.from(this.sponsorsToRemove);this.removeSponsors(t)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(t){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[t.user])}isExpirationAuthorized(t){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[t.user,this.vo])}parseDate(t){return null===t?"Never expire":(0,u.p6)(t,"d.M.y","en")}changeExpiration(t){const e=(0,a.kZ)();e.width="400px",e.data={memberId:this.data.member.id,sponsor:t},this.dialog.open(c.hd,e).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(t=>{this.sponsors=t,this.dataSource=new r.by(this.sponsors),this.loading=!1}))})}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(s.so),l.Y36(s.WI),l.Y36(n.uq),l.Y36(n.Fv),l.Y36(o.V6),l.Y36(o.x4),l.Y36(h.sK),l.Y36(s.uw))},t.\u0275cmp=l.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["mat-header-row","","class","font-weight-bolder",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"div"),l.YNc(4,b,1,0,"mat-spinner",1),l.YNc(5,O,16,3,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onSubmit()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),l.xp6(2),l.Tol(e.theme),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.hij(" ",l.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL"),""),l.xp6(2),l.Q6J("disabled",e.loading||0===e.sponsorsToRemove.size),l.xp6(1),l.hij(" ",l.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT"),""))},directives:[s.uh,u.O5,s.H8,d.lW,p.$g,s.xY,r.BZ,r.w1,r.fO,r.Dz,r.as,r.nj,r.ge,r.ev,g.Hw,f.gM,r.XQ,r.Gk],pipes:[h.X$,m.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:grey}"]}),t})()},88690:function(t,e,i){"use strict";i.d(e,{R:function(){return T}});var n=i(84608),s=i(16073),o=i(33642),r=i(88426),a=i(31572),c=i(48160),u=i(61511),l=i(15980),h=i(67806),d=i(66283),p=i(80340),g=i(4786),f=i(71522);function m(t,e){1&t&&a._UZ(0,"mat-spinner",6)}function b(t,e){1&t&&(a.TgZ(0,"div",14),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function w(t,e){1&t&&(a.TgZ(0,"div",14),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function _(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function y(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function A(t,e){if(1&t&&(a.TgZ(0,"mat-option",15),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"uppercase"),a.qZA()),2&t){const t=e.$implicit;a.s9C("value",t),a.xp6(1),a.Oqu(a.lcZ(2,2,a.lcZ(3,4,"SHARED_LIB.LANGUAGES."+t)))}}function v(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",7),a.YNc(1,b,3,3,"div",8),a.YNc(2,w,3,3,"div",8),a.TgZ(3,"mat-form-field",9),a._UZ(4,"input",10),a.ALo(5,"translate"),a.YNc(6,_,3,3,"mat-error",11),a.qZA(),a.TgZ(7,"mat-form-field",9),a._UZ(8,"textarea",10),a.ALo(9,"translate"),a.YNc(10,y,3,3,"mat-error",11),a.qZA(),a.TgZ(11,"mat-form-field",9),a.TgZ(12,"mat-label"),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.TgZ(15,"mat-select",12),a.NdJ("valueChange",function(e){return a.CHM(t),a.oxw().currentLanguage=e}),a.YNc(16,A,4,6,"mat-option",13),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngIf",!t.data.groupId),a.xp6(1),a.Q6J("ngIf",t.data.groupId),a.xp6(2),a.s9C("placeholder",a.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),a.Q6J("formControl",t.name),a.xp6(2),a.Q6J("ngIf",t.name.invalid),a.xp6(2),a.s9C("placeholder",a.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),a.Q6J("formControl",t.emailForm),a.xp6(2),a.Q6J("ngIf",t.emailForm.invalid),a.xp6(3),a.Oqu(a.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),a.xp6(2),a.Q6J("value",t.currentLanguage),a.xp6(1),a.Q6J("ngForOf",t.languages)}}let T=(()=>{class t{constructor(t,e,i,n,o,r){this.dialogRef=t,this.data=e,this.registrarManager=i,this.notificator=n,this.translate=o,this.store=r,this.emailForm=new s.NI("",[s.kI.required,s.kI.email]),this.languages=["en"],this.currentLanguage="en",this.name=new s.NI("",s.kI.required),this.loading=!1}ngOnInit(){this.languages=this.store.get("supportedLanguages"),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(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.tk),a.Y36(r.V6),a.Y36(c.sK),a.Y36(r.d6))},t.\u0275cmp=a.Xpm({type:t,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"],["mat-flat-button","","color","accent",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(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,m,1,0,"mat-spinner",1),a.YNc(5,v,17,17,"div",2),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return e.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return e.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),a.xp6(2),a.Q6J("disabled",e.emailForm.invalid||e.name.invalid||e.loading),a.xp6(1),a.hij(" ",a.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},directives:[n.uh,u.O5,n.H8,l.lW,h.$g,n.xY,d.KE,p.Nt,s.Fj,s.Q7,s.JJ,s.oH,d.hX,g.gD,u.sg,d.TO,f.ey],pipes:[c.X$,u.gd],styles:[""]}),t})()},57820:function(t,e,i){"use strict";i.d(e,{c:function(){return x}});var n=i(84608),s=i(16073),o=i(56238),r=i(79996),a=i(17),c=i(88426),u=i(33642),l=i(31572),h=i(48160),d=i(54810),p=i(61511),g=i(15980),f=i(36922),m=i(39571),b=i(66283),w=i(80340),_=i(40084),y=i(71522),A=i(67806);function v(t,e){1&t&&(l.TgZ(0,"mat-radio-button",12),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function T(t,e){1&t&&(l.TgZ(0,"mat-radio-button",13),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function C(t,e){1&t&&(l.TgZ(0,"app-alert",14),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function S(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"mat-option",20),l.NdJ("click",function(){const e=l.CHM(t).$implicit;return l.oxw(2).selectedGroup=e}),l.TgZ(1,"span"),l._uU(2),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit;l.Q6J("value",t),l.xp6(2),l.Oqu(t.name)}}function E(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"mat-form-field",15),l.TgZ(1,"input",16),l.NdJ("change",function(){return l.CHM(t),l.oxw().selectedGroup=null}),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"mat-autocomplete",17,18),l.YNc(5,S,3,2,"mat-option",19),l.ALo(6,"async"),l.qZA(),l.qZA()}if(2&t){const t=l.MAs(4),e=l.oxw();l.Q6J("@openClose","toGroup"===e.moveOption?"open":"closed"),l.xp6(1),l.s9C("placeholder",l.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),l.Q6J("matAutocomplete",t)("formControl",e.otherGroupsCtrl),l.xp6(2),l.Q6J("displayWith",e.displayFn),l.xp6(2),l.Q6J("ngForOf",l.lcZ(6,8,e.filteredGroups))}}function k(t,e){1&t&&l._UZ(0,"mat-spinner",21)}let x=(()=>{class t{constructor(t,e,i,n,o,r,a){this.dialogRef=t,this.data=e,this.groupService=i,this.notificator=n,this.translate=o,this.apiRequest=r,this.authResolver=a,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new s.NI(null,[s.kI.required]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(t=>this.successMessage=t),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(t=>this.errorMessage=t)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(t=>{this.otherGroups=t.filter(t=>t.id!==this.data.group.id&&"members"!==t.name&&this.canMove(t)),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.O)(""),(0,r.U)(t=>t?this._filterGroups(t):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(t){return t?t.name:t}_filterGroups(t){if("object"==typeof t)return[];const e=t.toLowerCase();return t?this.otherGroups.filter(t=>t.name.toLowerCase().indexOf(e)>-1):this.otherGroups}canMove(t){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[t,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,t])}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)},t=>{this.notificator.showRPCError(t,this.errorMessage),this.dialogRef.close(!1)})}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(n.so),l.Y36(n.WI),l.Y36(u.ff),l.Y36(c.V6),l.Y36(h.sK),l.Y36(c.F5),l.Y36(c.x4))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","value","toRoot","class","move-options",4,"ngIf"],["value","toGroup","color","primary",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["value","toGroup","color","primary"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","matAutocomplete","formControl","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",1),l.TgZ(5,"p"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.TgZ(8,"mat-radio-group",2),l.NdJ("ngModelChange",function(t){return e.moveOption=t}),l.YNc(9,v,3,3,"mat-radio-button",3),l.YNc(10,T,3,3,"mat-radio-button",4),l.qZA(),l.YNc(11,C,3,3,"app-alert",5),l.YNc(12,E,7,10,"mat-form-field",6),l.qZA(),l.YNc(13,k,1,0,"mat-spinner",7),l.TgZ(14,"div",8),l.TgZ(15,"button",9),l.NdJ("click",function(){return e.close()}),l._uU(16),l.ALo(17,"translate"),l.qZA(),l.TgZ(18,"span",10),l.ALo(19,"translate"),l.TgZ(20,"button",11),l.NdJ("click",function(){return e.confirm()}),l._uU(21),l.ALo(22,"translate"),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.data.theme),l.xp6(2),l.AsE("",l.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",e.data.group.name,""),l.xp6(4),l.hij(" ",l.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),l.xp6(2),l.Q6J("ngModel",e.moveOption),l.xp6(1),l.Q6J("ngIf",!e.toRootOptionDisabled),l.xp6(1),l.Q6J("ngIf",!e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",e.toRootOptionDisabled&&e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",!e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(3),l.hij(" ",l.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),l.Q6J("matTooltipPosition","above")("matTooltipDisabled",null!==e.selectedGroup||"toRoot"===e.moveOption),l.xp6(2),l.Q6J("disabled",(e.otherGroupsCtrl.invalid||null===e.selectedGroup)&&"toRoot"!==e.moveOption||e.loading),l.xp6(1),l.hij(" ",l.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},directives:[n.uh,n.xY,d.VQ,s.JJ,s.On,p.O5,n.H8,g.lW,f.gM,d.U0,m.w,b.KE,w.Nt,_.ZL,s.Fj,s.Q7,s.oH,_.XC,p.sg,y.ey,A.$g],pipes:[h.X$,p.Ov],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[a.BQ]}}),t})()},95121:function(t,e,i){"use strict";i.d(e,{m:function(){return _}});var n=i(84608),s=i(33642),o=i(88426),r=i(31572),a=i(48160),c=i(61511),u=i(15980),l=i(67806),h=i(66283),d=i(4786),p=i(71522);function g(t,e){1&t&&r._UZ(0,"mat-spinner",7)}function f(t,e){if(1&t&&(r.TgZ(0,"mat-option",13),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.hij(" ",t.friendlyNameParameter," ")}}function m(t,e){if(1&t&&(r.TgZ(0,"mat-option",13),r._uU(1),r.ALo(2,"translate"),r.ALo(3,"uppercase"),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.hij(" ",r.lcZ(2,2,r.lcZ(3,4,"SHARED_LIB.LANGUAGES."+t))," ")}}function b(t,e){if(1&t&&(r.TgZ(0,"mat-option",13),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.hij(" ",t," ")}}function w(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",8),r.TgZ(1,"mat-form-field"),r.TgZ(2,"mat-label"),r._uU(3),r.ALo(4,"translate"),r.qZA(),r.TgZ(5,"mat-select",9),r.NdJ("valueChange",function(e){return r.CHM(t),r.oxw().selectedLogin=e}),r.YNc(6,f,2,2,"mat-option",10),r.qZA(),r.qZA(),r.TgZ(7,"mat-form-field"),r.TgZ(8,"mat-label"),r._uU(9),r.ALo(10,"translate"),r.qZA(),r.TgZ(11,"mat-select",9),r.NdJ("valueChange",function(e){return r.CHM(t),r.oxw().selectedLang=e}),r.YNc(12,m,4,6,"mat-option",10),r.qZA(),r.qZA(),r.TgZ(13,"mat-form-field"),r.TgZ(14,"mat-label"),r._uU(15),r.ALo(16,"translate"),r.qZA(),r.TgZ(17,"mat-select",9),r.NdJ("valueChange",function(e){return r.CHM(t),r.oxw().selectedMail=e}),r.YNc(18,b,2,2,"mat-option",10),r.qZA(),r.qZA(),r.TgZ(19,"div",11),r.TgZ(20,"p",12),r._uU(21),r.ALo(22,"translate"),r.qZA(),r.TgZ(23,"p"),r._uU(24),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.xp6(3),r.Oqu(r.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),r.xp6(2),r.Q6J("value",t.selectedLogin),r.xp6(1),r.Q6J("ngForOf",t.logins),r.xp6(3),r.Oqu(r.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),r.xp6(2),r.Q6J("value",t.selectedLang),r.xp6(1),r.Q6J("ngForOf",t.languages),r.xp6(3),r.Oqu(r.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),r.xp6(2),r.Q6J("value",t.selectedMail),r.xp6(1),r.Q6J("ngForOf",t.mails),r.xp6(3),r.Oqu(r.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),r.xp6(3),r.Oqu(t.selectedLogin.value)}}let _=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.membersManagerService=i,this.attributesManagerService=n,this.store=s,this.translate=o,this.notificator=r,this.languages=this.store.get("supportedLanguages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],o.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}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"}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,this.selectedLogin.friendlyNameParameter,this.pwdMails.get(this.selectedMail),this.selectedLang).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.uq),r.Y36(s.H8),r.Y36(o.d6),r.Y36(a.sK),r.Y36(o.V6))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.TgZ(3,"div",1),r.YNc(4,g,1,0,"mat-spinner",2),r.qZA(),r.YNc(5,w,25,19,"div",3),r.TgZ(6,"div",4),r.TgZ(7,"button",5),r.NdJ("click",function(){return e.onCancel()}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.TgZ(10,"button",6),r.NdJ("click",function(){return e.onSubmit()}),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),r.xp6(3),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(3),r.hij(" ",r.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),r.xp6(2),r.Q6J("disabled",e.loading),r.xp6(1),r.hij(" ",r.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},directives:[n.uh,c.O5,n.H8,u.lW,l.$g,n.xY,h.KE,h.hX,d.gD,c.sg,p.ey],pipes:[a.X$,c.gd],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),t})()},4374:function(t,e,i){"use strict";i.d(e,{X:function(){return v}});var n=i(84608),s=i(67033),o=i(88426),r=i(33642),a=i(31572),c=i(48160),u=i(61511),l=i(67806),h=i(15980),d=i(22196);function p(t,e){1&t&&a._UZ(0,"th",13)}function g(t,e){if(1&t&&(a.TgZ(0,"td",14),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.id," ")}}function f(t,e){1&t&&a._UZ(0,"th",13)}function m(t,e){if(1&t&&(a.TgZ(0,"td",14),a._uU(1),a.ALo(2,"userFullName"),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",a.lcZ(2,1,t.user)," ")}}function b(t,e){1&t&&a._UZ(0,"tr",15)}function w(t,e){1&t&&a._UZ(0,"tr",16)}function _(t,e){if(1&t&&(a.TgZ(0,"div",4),a.TgZ(1,"p"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"div",5),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"table",6),a.ynx(8,7),a.YNc(9,p,1,0,"th",8),a.YNc(10,g,2,1,"td",9),a.BQk(),a.ynx(11,10),a.YNc(12,f,1,0,"th",8),a.YNc(13,m,3,3,"td",9),a.BQk(),a.YNc(14,b,1,0,"tr",11),a.YNc(15,w,1,0,"tr",12),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,5,t.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),a.xp6(3),a.hij(" ",a.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),a.xp6(2),a.Q6J("dataSource",t.dataSource),a.xp6(7),a.Q6J("matHeaderRowDef",t.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",t.displayedColumns)}}function y(t,e){1&t&&a._UZ(0,"mat-spinner",17)}function A(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",18),a.TgZ(1,"button",19),a.NdJ("click",function(){return a.CHM(t),a.oxw().onCancel()}),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"button",20),a.NdJ("click",function(){return a.CHM(t),a.oxw().onSubmit()}),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),a.xp6(3),a.hij(" ",a.lcZ(6,4,t.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let v=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.membersService=i,this.groupService=n,this.notificator=s,this.translate=o,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.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(t=>t.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(t=>t.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const t=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(t),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.uq),a.Y36(r.ff),a.Y36(o.V6),a.Y36(c.sK))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-remove-members-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["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",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,_,16,9,"div",1),a.YNc(5,y,1,0,"mat-spinner",2),a.YNc(6,A,7,6,"div",3),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),a.xp6(2),a.Q6J("ngIf",!e.loading),a.xp6(1),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,u.O5,n.xY,s.BZ,s.w1,s.fO,s.Dz,s.as,s.nj,s.ge,s.ev,s.XQ,s.Gk,l.$g,n.H8,h.lW],pipes:[c.X$,d.d],styles:[""]}),t})()},95909:function(t,e,i){"use strict";i.d(e,{f:function(){return l}});var n=i(84608),s=i(67033),o=i(88426),r=i(33642),a=i(31572),c=i(48160),u=i(20247);let l=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.resourcesManager=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.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(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(t){t.deleted?this.onDelete():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.V6),a.Y36(c.sK),a.Y36(r.xk))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-remove-resource-dialog"]],decls:2,vars:6,consts:[[3,"entityNames","entityType","disableForce","deleted"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"app-delete-entity-dialog",0),a.NdJ("deleted",function(t){return e.onSubmit(t)}),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("entityNames",e.dataSource)("entityType","resources")("disableForce",!0))},directives:[u.e],styles:[""]}),t})()},99608:function(t,e,i){"use strict";i.d(e,{o:function(){return l}});var n=i(84608),s=i(67033),o=i(88426),r=i(33642),a=i(31572),c=i(48160),u=i(20247);let l=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.voService=n,this.translate=s,this.force=!1,this.displayedColumns=["name"],this.relations=[],s.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.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(t){this.force=t.force,t.deleted?this.onDelete():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.V6),a.Y36(r.YF),a.Y36(c.sK))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-remove-vo-dialog"]],decls:2,vars:6,consts:[[3,"entityNames","entityType","relations","deleted"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"app-delete-entity-dialog",0),a.NdJ("deleted",function(t){return e.onSubmit(t)}),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("entityNames",e.dataSource)("entityType","organizations")("relations",e.relations))},directives:[u.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),t})()},24555:function(t,e,i){"use strict";i.d(e,{E:function(){return w}});var n=i(84608),s=i(33642),o=i(31572),r=i(61511),a=i(15980),c=i(67806),u=i(66283),l=i(80340),h=i(16073),d=i(4786),p=i(71522),g=i(48160);function f(t,e){1&t&&o._UZ(0,"mat-spinner",6)}function m(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div"),o._uU(1),o.ALo(2,"translate"),o.TgZ(3,"mat-form-field",9),o.TgZ(4,"mat-select",10),o.NdJ("valueChange",function(e){return o.CHM(t),o.oxw(2).embeddedState=e}),o.TgZ(5,"mat-option",11),o._uU(6),o.ALo(7,"translate"),o.qZA(),o.TgZ(8,"mat-option",12),o._uU(9),o.ALo(10,"translate"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&t){const t=o.oxw(2);o.xp6(1),o.hij(" ",o.lcZ(2,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),": "),o.xp6(3),o.Q6J("value",t.embeddedState),o.xp6(2),o.Oqu(o.lcZ(7,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(10,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function b(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",7),o.TgZ(1,"div"),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-form-field"),o.TgZ(5,"input",8),o.NdJ("ngModelChange",function(e){return o.CHM(t),o.oxw().moduleName=e}),o.qZA(),o.qZA(),o.TgZ(6,"div"),o._uU(7),o.ALo(8,"translate"),o.qZA(),o.TgZ(9,"mat-form-field",9),o.TgZ(10,"mat-select",10),o.NdJ("valueChange",function(e){return o.CHM(t),o.oxw().initialState=e}),o.TgZ(11,"mat-option",11),o._uU(12),o.ALo(13,"translate"),o.qZA(),o.TgZ(14,"mat-option",12),o._uU(15),o.ALo(16,"translate"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(17,"div"),o._uU(18),o.ALo(19,"translate"),o.qZA(),o.TgZ(20,"mat-form-field",9),o.TgZ(21,"mat-select",10),o.NdJ("valueChange",function(e){return o.CHM(t),o.oxw().extensionState=e}),o.TgZ(22,"mat-option",11),o._uU(23),o.ALo(24,"translate"),o.qZA(),o.TgZ(25,"mat-option",12),o._uU(26),o.ALo(27,"translate"),o.qZA(),o.qZA(),o.qZA(),o.YNc(28,m,11,10,"div",13),o.qZA()}if(2&t){const t=o.oxw();o.xp6(2),o.Oqu(o.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),o.xp6(3),o.Q6J("ngModel",t.moduleName),o.xp6(2),o.hij(" ",o.lcZ(8,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),": "),o.xp6(3),o.Q6J("value",t.initialState),o.xp6(2),o.Oqu(o.lcZ(13,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(16,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.xp6(3),o.hij(" ",o.lcZ(19,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),": "),o.xp6(3),o.Q6J("value",t.extensionState),o.xp6(2),o.Oqu(o.lcZ(24,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(27,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.xp6(2),o.Q6J("ngIf","group"===t.entity&&t.autoRegistrationEnabled)}}let w=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.registrarManager=i,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(t=>{this.dialogRef.close(t)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.so),o.Y36(n.WI),o.Y36(s.tk))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["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","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","ngModelChange"],[1,"w-100"],["disableOptionCentering","",3,"value","valueChange"],["value","auto"],["value","manual"],[4,"ngIf"]],template:function(t,e){1&t&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,f,1,0,"mat-spinner",1),o.YNc(5,b,29,25,"div",2),o.TgZ(6,"div",3),o.TgZ(7,"button",4),o.NdJ("click",function(){return e.onCancel()}),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",5),o.NdJ("click",function(){return e.submit()}),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.Tol(e.theme),o.xp6(2),o.Oqu(o.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading),o.xp6(3),o.hij(" ",o.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),o.xp6(2),o.Q6J("disabled",e.loading),o.xp6(1),o.hij(" ",o.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},directives:[n.uh,r.O5,n.H8,a.lW,c.$g,n.xY,u.KE,l.Nt,h.Fj,h.JJ,h.On,d.gD,p.ey],pipes:[g.X$],styles:[""]}),t})()},86593:function(t,e,i){"use strict";i.d(e,{C:function(){return H}});var n=i(31572),s=i(58623),o=i(67033),r=i(4230),a=i(84140),c=i(88426),u=i(82819),l=i(61511),h=i(29236),d=i(43691),p=i(36922),g=i(84534),f=i(39571),m=i(48160),b=i(22196),w=i(35887);let _=(()=>{class t{transform(t){return(0,a.kN)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"userEmail",type:t,pure:!0}),t})(),y=(()=>{class t{transform(t){return(0,a.$0)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"userLogins",type:t,pure:!0}),t})();function A(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",19),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw(2);return e?i.masterToggle():null}),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function v(t,e){if(1&t&&(n.TgZ(0,"th",17),n.YNc(1,A,1,3,"mat-checkbox",18),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",t.selection.isMultipleSelection())}}function T(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",20),n.TgZ(1,"mat-checkbox",21),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function C(t,e){1&t&&n._UZ(0,"th",17)}function S(t,e){1&t&&(n.TgZ(0,"mat-icon",23),n.ALo(1,"translate"),n._uU(2," account_circle "),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function E(t,e){1&t&&(n.TgZ(0,"mat-icon",23),n.ALo(1,"translate"),n._uU(2," traffic "),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"MANAGERS_LIST.SERVICE"))}function k(t,e){if(1&t&&(n.TgZ(0,"td",20),n.YNc(1,S,3,3,"mat-icon",22),n.YNc(2,E,3,3,"mat-icon",22),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",!t.serviceUser),n.xp6(1),n.Q6J("ngIf",t.serviceUser)}}function x(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.ID")))}function R(t,e){if(1&t&&(n.TgZ(0,"td",20),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",t.id," ")}}function I(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.NAME")))}function O(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function P(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function D(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userVo"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function M(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userEmail"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function N(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userLogins"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function F(t,e){1&t&&n._UZ(0,"tr",26)}const Z=function(t){return["/admin/users",t]};function B(t,e){if(1&t&&n._UZ(0,"tr",27),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disableRouting),n.Q6J("perunWebAppsForceRouterLink",i.disableRouting?null:n.VKq(4,Z,t.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.VKq(6,Z,t.id))}}function q(t,e){1&t&&(n.TgZ(0,"app-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}function U(t,e){1&t&&(n.TgZ(0,"app-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let H=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.selection=new r.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.pageSize=10,this.disableRouting=!1,this.filter="",this.page=new n.vpe,this.pageSizeOptions=a.f7}set matSort(t){this.sort=t}getDataForColumn(t,e){var i;switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"true":"false";case"name":return t?t.lastName?t.lastName:null!==(i=t.firstName)&&void 0!==i?i:"":"";case"organization":return(0,a.OV)(t);case"email":return(0,a.kN)(t);case"logins":return(0,a.lt)(t);default:return""}}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"service-user":"user";case"name":return t?(0,a.bD)(t):"";case"organization":return(0,a.OV)(t);case"email":return(0,a.kN)(t);case"logins":return(0,a.lt)(t);default:return""}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getDataForColumn,this)),this.dataSource.filter=this.filter,this.dataSource.data=this.users}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t))}ngOnChanges(){this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filter,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.x4),n.Y36(c.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-users-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(a.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",filter:"filter"},outputs:{page:"page"},features:[n.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","user"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,v,2,1,"th",4),n.YNc(5,T,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,C,1,0,"th",4),n.YNc(8,k,3,2,"td",5),n.BQk(),n.ynx(9,7),n.YNc(10,x,3,3,"th",8),n.YNc(11,R,2,1,"td",5),n.BQk(),n.ynx(12,9),n.YNc(13,I,3,3,"th",8),n.YNc(14,O,3,3,"td",10),n.BQk(),n.ynx(15,11),n.YNc(16,P,3,3,"th",8),n.YNc(17,D,3,3,"td",10),n.BQk(),n.ynx(18,12),n.YNc(19,M,3,3,"th",8),n.YNc(20,L,3,3,"td",10),n.BQk(),n.ynx(21,13),n.YNc(22,N,3,3,"th",8),n.YNc(23,z,3,3,"td",10),n.BQk(),n.YNc(24,F,1,0,"tr",14),n.YNc(25,B,1,8,"tr",15),n.qZA(),n.qZA(),n.qZA(),n.YNc(26,q,3,3,"app-alert",16),n.YNc(27,U,3,3,"app-alert",16)),2&t&&(n.Q6J("hidden",0===e.users.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(22),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.users.length),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.users.length))},directives:[u.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,d.Hw,p.gM,s.nU,o.XQ,o.Gk,g.Kd,g.YH,f.w],pipes:[m.X$,b.d,w.Z,_,y],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},65050:function(t,e,i){"use strict";i.d(e,{c:function(){return o}});var n=i(31572),s=i(48160);let o=(()=>{class t{constructor(t){this.translateService=t,this.returnData=""}transform(t){switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(t=>{this.returnData=t});break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_HIDDEN").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"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_SHOW").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;default:return t}return this.returnData}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.sK,16))},t.\u0275pipe=n.Yjl({name:"applicationFormItemType",type:t,pure:!0}),t})()},84650:function(t,e,i){"use strict";i.d(e,{h:function(){return o}});var n=i(31572),s=i(48160);let o=(()=>{class t{constructor(t){this.translate=t,this.returnData=""}transform(t){switch(t){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=t}return this.returnData}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.sK,16))},t.\u0275pipe=n.Yjl({name:"applicationState",type:t,pure:!1}),t})()},99373:function(t,e,i){"use strict";i.d(e,{A:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){return t.substring(40)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"extSourceType",type:t,pure:!0}),t})()},35887:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.OV)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"userVo",type:t,pure:!0}),t})()},28780:function(t,e,i){"use strict";i.d(e,{m:function(){return Et}});var n=i(61511),s=i(57629),o=i(40084),r=i(15980),a=i(29236),c=i(71522),u=i(15812),l=i(84608),h=i(27679),d=i(45001),p=i(66283),g=i(43691),f=i(80340),m=i(73005),b=i(45994),w=i(67806),_=i(54810),y=i(4786),A=i(25122),v=i(27521),T=i(71403),C=i(58623),S=i(67033),E=i(55109),k=i(36922),x=i(91010),R=i(27439),I=i(41050),O=i(10033),P=i(8055),D=i(70663),M=i(16073),L=i(24081),N=i(17),z=i(88426),F=i(31572),Z=i(84534),B=i(48160);const q=["collapse"],U=function(){return{color:"linkTextColor"}};function H(t,e){1&t&&(F.TgZ(0,"mat-icon",14),F._uU(1,"keyboard_arrow_right"),F.qZA()),2&t&&F.Q6J("ngStyle",F.DdM(1,U))}function j(t,e){1&t&&(F.TgZ(0,"mat-icon",14),F._uU(1,"keyboard_arrow_down"),F.qZA()),2&t&&F.Q6J("ngStyle",F.DdM(1,U))}function G(t,e){if(1&t&&(F.TgZ(0,"span",12),F.YNc(1,H,2,2,"mat-icon",13),F.YNc(2,j,2,2,"mat-icon",13),F.qZA()),2&t){const t=F.oxw().$implicit,e=F.oxw(2);F.xp6(1),F.Q6J("ngIf",!e.isActive(e.currentUrl,t.showChildrenRegex)),F.xp6(1),F.Q6J("ngIf",e.isActive(e.currentUrl,t.showChildrenRegex))}}const Y=function(t,e){return{color:t,"border-color":e}};function V(t,e){if(1&t){const t=F.EpF();F.TgZ(0,"a",17),F.NdJ("click",function(){const e=F.CHM(t).$implicit;return F.oxw(4).navigate(e.url)}),F._uU(1),F.ALo(2,"translate"),F.qZA()}if(2&t){const t=e.$implicit,i=F.oxw(4);F.ekj("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),F.Q6J("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:"")("ngStyle",F.WLB(9,Y,i.linkTextColor,i.linkTextColor)),F.xp6(1),F.hij(" ",F.lcZ(2,7,t.label)," ")}}function K(t,e){if(1&t&&(F.TgZ(0,"div",15),F.YNc(1,V,3,12,"a",16),F.qZA()),2&t){const t=F.oxw().$implicit;F.Q6J("@rollInOut",void 0),F.xp6(1),F.Q6J("ngForOf",null==t?null:t.children)}}function J(t,e){if(1&t){const t=F.EpF();F.TgZ(0,"div"),F.TgZ(1,"a",9),F.NdJ("click",function(){const e=F.CHM(t).$implicit;return F.oxw(2).navigate(e.url)}),F._uU(2),F.ALo(3,"translate"),F.YNc(4,G,3,2,"span",10),F.qZA(),F.YNc(5,K,2,2,"div",11),F.qZA()}if(2&t){const t=e.$implicit,i=F.oxw(2);F.xp6(1),F.ekj("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),F.Q6J("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:"")("ngStyle",F.WLB(11,Y,i.linkTextColor,i.linkTextColor)),F.xp6(1),F.hij(" ",F.lcZ(3,9,t.label)," "),F.xp6(2),F.Q6J("ngIf",t.children),F.xp6(1),F.Q6J("ngIf",i.isActive(i.currentUrl,t.showChildrenRegex))}}function $(t,e){if(1&t&&(F.TgZ(0,"div"),F.YNc(1,J,6,14,"div",8),F.qZA()),2&t){const t=F.oxw();F.Q6J("@rollInOut",void 0),F.xp6(1),F.Q6J("ngForOf",t.item.links)}}const Q=function(t,e){return{background:t,"border-top":e}},W=function(t){return{color:t}},X=function(){return{color:"currentColor"}},tt=function(t){return{background:t}};let et=(()=>{class t{constructor(t,e){this.router=t,this.store=e,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.iconColor=this.store.get("theme","sidemenu_item_icon_color"),this.dividerStyle="1px solid "+this.store.get("theme","sidemenu_divider_color"),this.currentUrl=t.url,t.events.subscribe(t=>{t instanceof s.m2&&(this.currentUrl=t.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(t,e){return new RegExp(e).test(t)}navigate(t){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(t)):this.router.navigate(t)}}return t.\u0275fac=function(e){return new(e||t)(F.Y36(s.F0),F.Y36(z.d6))},t.\u0275cmp=F.Xpm({type:t,selectors:[["app-side-menu-item"]],viewQuery:function(t,e){if(1&t&&F.Gf(q,5),2&t){let t;F.iGM(t=F.CRH())&&(e.collapseDiv=t.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(t,e){1&t&&(F.TgZ(0,"div",0),F.TgZ(1,"div",1),F.NdJ("click",function(){return e.toggle()}),F.TgZ(2,"div",2),F.TgZ(3,"a",3),F.TgZ(4,"div"),F._UZ(5,"mat-icon",4),F.qZA(),F.TgZ(6,"div",5),F._uU(7),F.ALo(8,"translate"),F.qZA(),F.qZA(),F.qZA(),F.qZA(),F.TgZ(9,"div"),F.TgZ(10,"div",6),F.YNc(11,$,2,2,"div",7),F.qZA(),F.qZA(),F.qZA()),2&t&&(F.xp6(1),F.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",F.WLB(18,Q,e.item.backgroundColorCss,e.index?e.dividerStyle:"none")),F.xp6(1),F.Gre("entity-menu-item-link ",e.item.labelClass,""),F.Q6J("perunWebAppsMiddleClickRouterLink",e.item.baseLink),F.xp6(1),F.Q6J("ngStyle",F.VKq(21,W,e.item.textColorCss)),F.xp6(2),F.Q6J("ngStyle",F.DdM(23,X))("svgIcon",e.item.icon),F.xp6(2),F.Oqu(F.lcZ(8,16,e.item.label)),F.xp6(2),F.Q6J("@openClose",e.expanded?"open":"closed"),F.xp6(1),F.Gre("side-entity-menu ",e.item.linksClass,""),F.Q6J("ngStyle",F.VKq(24,tt,e.linkBgColor)),F.xp6(1),F.Q6J("ngIf",e.showLinks))},directives:[c.wG,n.PC,Z.YH,g.Hw,n.O5,n.sg,n.mk],pipes:[B.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:[N.BQ,N.Ly]}}),t})(),it=(()=>{class t{transform(t){if(void 0===t.value)return"";switch(t.type){case"java.lang.String":return t.value;case"java.lang.Integer":return t.value.toString();case"java.util.ArrayList":return this.whenValueIsArray(t.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(t.value);case"java.lang.Boolean":return t.value.toString();default:return t.value}}whenValueIsArray(t){let e="";return t.forEach(function(t){e=e.concat(t+", ")}),e}whenValueIsMap(t){let e="";return t.forEach((t,i)=>{e=e.concat(i+": "+t+", ")}),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=F.Yjl({name:"anyToString",type:t,pure:!0}),t})();const nt=["collapse"],st=function(){return{color:"linkTextColor"}};function ot(t,e){1&t&&(F.TgZ(0,"mat-icon",12),F._uU(1,"keyboard_arrow_right"),F.qZA()),2&t&&F.Q6J("ngStyle",F.DdM(1,st))}function rt(t,e){1&t&&(F.TgZ(0,"mat-icon",12),F._uU(1,"keyboard_arrow_down"),F.qZA()),2&t&&F.Q6J("ngStyle",F.DdM(1,st))}function at(t,e){if(1&t&&(F.TgZ(0,"span",10),F.YNc(1,ot,2,2,"mat-icon",11),F.YNc(2,rt,2,2,"mat-icon",11),F.qZA()),2&t){const t=F.oxw().$implicit,e=F.oxw();F.xp6(1),F.Q6J("ngIf",!e.isActive(e.currentUrl,t.showChildrenRegex)),F.xp6(1),F.Q6J("ngIf",e.isActive(e.currentUrl,t.showChildrenRegex))}}const ct=function(t,e){return{color:t,"border-color":e}};function ut(t,e){if(1&t){const t=F.EpF();F.TgZ(0,"a",14),F.NdJ("click",function(){const e=F.CHM(t).$implicit;return F.oxw(3).navigate(e.url)}),F._uU(1),F.ALo(2,"translate"),F.qZA()}if(2&t){const t=e.$implicit,i=F.oxw(3);F.ekj("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),F.Q6J("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",F.WLB(9,ct,i.linkTextColor,i.linkTextColor))("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:""),F.xp6(1),F.hij(" ",F.lcZ(2,7,t.label)," ")}}function lt(t,e){if(1&t&&(F.TgZ(0,"div"),F.YNc(1,ut,3,12,"a",13),F.qZA()),2&t){const t=F.oxw().$implicit;F.Q6J("@rollInOut",void 0),F.xp6(1),F.Q6J("ngForOf",null==t?null:t.children)}}function ht(t,e){if(1&t){const t=F.EpF();F.TgZ(0,"div"),F.TgZ(1,"a",7),F.NdJ("click",function(){const e=F.CHM(t).$implicit;return F.oxw().navigate(e.url)}),F._uU(2),F.ALo(3,"translate"),F.YNc(4,at,3,2,"span",8),F.qZA(),F.YNc(5,lt,2,2,"div",9),F.qZA()}if(2&t){const t=e.$implicit,i=F.oxw();F.xp6(1),F.ekj("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),F.Q6J("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",F.WLB(11,ct,i.linkTextColor,i.linkTextColor))("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:""),F.xp6(1),F.hij(" ",F.lcZ(3,9,t.label)," "),F.xp6(2),F.Q6J("ngIf",t.children),F.xp6(1),F.Q6J("ngIf",i.isActive(i.currentUrl,t.showChildrenRegex))}}const dt=function(t){return{background:t}},pt=function(t){return{color:t}},gt=function(){return{color:"currentColor"}};let ft=(()=>{class t{constructor(t,e){this.router=t,this.store=e,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.iconColor=this.store.get("theme","sidemenu_item_icon_color"),this.currentUrl=t.url,t.events.subscribe(t=>{t instanceof s.m2&&(this.currentUrl=t.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(t,e){return new RegExp(e).test(t)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(t){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(t)):this.router.navigate(t)}}return t.\u0275fac=function(e){return new(e||t)(F.Y36(s.F0),F.Y36(z.d6))},t.\u0275cmp=F.Xpm({type:t,selectors:[["app-side-menu-root-item"]],viewQuery:function(t,e){if(1&t&&F.Gf(nt,5),2&t){let t;F.iGM(t=F.CRH())&&(e.collapseDiv=t.first)}},inputs:{item:"item",index:"index",showOpen:"showOpen",sideNav:"sideNav"},features:[F.TTD],decls:12,vars:27,consts:[[1,"entity-menu-item"],["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","ngStyle","ngClass","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"],["matRipple","","class","pl-5 clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","activated","ngClass","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","ngClass","click"]],template:function(t,e){1&t&&(F.TgZ(0,"div",0),F.TgZ(1,"div",1),F.NdJ("click",function(){return e.toggle()}),F.TgZ(2,"div"),F.TgZ(3,"a",2),F.TgZ(4,"div"),F._UZ(5,"mat-icon",3),F.qZA(),F.TgZ(6,"div",4),F._uU(7),F.ALo(8,"translate"),F.qZA(),F.qZA(),F.qZA(),F.qZA(),F.TgZ(9,"div"),F.TgZ(10,"div",5),F.YNc(11,ht,6,14,"div",6),F.qZA(),F.qZA(),F.qZA()),2&t&&(F.xp6(1),F.ekj("root-header-activated",e.isActive(e.currentUrl,e.item.baseColorClassRegex)),F.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",F.VKq(20,dt,e.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",e.item.baseLink),F.xp6(1),F.Gre("entity-menu-item-link ",e.item.labelClass,""),F.xp6(1),F.Q6J("ngStyle",F.VKq(22,pt,e.item.textColorCss)),F.xp6(2),F.Q6J("ngStyle",F.DdM(24,gt))("svgIcon",e.item.icon),F.xp6(2),F.Oqu(F.lcZ(8,18,e.item.label)),F.xp6(2),F.Q6J("@openClose",e.expanded?"open":"closed"),F.xp6(1),F.Gre("side-entity-menu ",e.item.linksClass,""),F.Q6J("ngStyle",F.VKq(25,dt,e.linkBgColor)),F.xp6(1),F.Q6J("ngForOf",e.item.links))},directives:[c.wG,n.PC,Z.YH,g.Hw,n.sg,n.mk,n.O5],pipes:[B.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:[N.BQ,N.Ly]}}),t})();var mt=i(88975),bt=i(4253),wt=i(22727),_t=i(99373),yt=i(41939),At=i(7423),vt=i(22280),Tt=i(30146),Ct=i(85250),St=i(84140);let Et=(()=>{class t{constructor(t){this.translate=t,t.addLangs(["en","cs"])}}return t.\u0275fac=function(e){return new(e||t)(F.LFG(B.sK))},t.\u0275mod=F.oAB({type:t}),t.\u0275inj=F.cJS({providers:[it,_t.A],imports:[[n.ez,s.Bz,o.Bb,f.c,p.lN,M.UX,M.u5,g.Ps,A.SJ,d.To,B.aw.forChild({}),r.ot,C.JX,S.p0,E.Nh,x.dp,r.ot,a.p9,l.Is,y.LD,T.ZX,w.Cq,b.Cv,k.AV,v.rP,u.FA,c.XK,_.Fk,h.t,c.si,m.TU,R.QW,D.T5,mt._t,R.QW,O.Hi,P.Tx,bt.Cl,wt.r,I.g,yt.ez,At.r,vt.d4,Tt.Co,Ct.ie,St.Je],Tt.Co,o.Bb,f.c,s.Bz,M.UX,M.u5,g.Ps,A.SJ,B.aw,C.JX,S.p0,E.Nh,x.dp,r.ot,a.p9,l.Is,y.LD,T.ZX,w.Cq,b.Cv,k.AV,v.rP,u.FA,c.XK,_.Fk,h.t,R.QW,D.T5,c.si,m.TU,mt._t,O.Hi,O.Hi,d.To,P.Tx,bt.Cl,bt.Cl,bt.Cl,At.r]}),t})();F.B6R(L.V,[ft,n.sg,et,n.O5],[])},75585:function(t,e,i){"use strict";i.d(e,{V:function(){return l}});var n=i(88426),s=i(33642),o=i(84140),r=i(22280),a=i(67004),c=i(31572),u=i(48160);let l=(()=>{class t{constructor(t,e,i,n,s,o,r){this.translate=t,this.authResolver=e,this.store=i,this.apiRequest=n,this.attributesManager=s,this.notificator=o,this.guiAuthResolver=r,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:"^dont-use$",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.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$"}]}}parseFacility(t){return{label:t.name,baseLink:[`/facilities/${t.id}`],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(t),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(t,e){const i=(new r.r5).transform(t,e);return{label:t.name,baseLink:[i],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(i,e?"/organizations":"/facilities",t),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getResourceLinks(t,e,i){const n=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[t],activatedRegex:`${e}/\\d+/resources/\\d+$`}];return this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[t,"groups"],activatedRegex:`${e}/\\d+/resources/\\d+/groups$`}),this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[t,"services"],activatedRegex:`${e}/\\d+/resources/\\d+/services$`}),this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[t,"members"],activatedRegex:`${e}/\\d+/resources/\\d+/members$`}),this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[t,"tags"],activatedRegex:`${e}/\\d+/resources/\\d+/tags$`}),n.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[t,"attributes"],activatedRegex:`${e}/\\d+/resources/\\d+/attributes$`}),this.authResolver.isManagerPagePrivileged(i)&&n.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[t,"settings"],activatedRegex:`${e}/\\d+/resources/\\d+/settings$`,children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[t,"settings","managers"],activatedRegex:`${e}/\\d+/resources/\\d+/settings/managers$`}],showChildrenRegex:`${e}/\\d+/resources/\\d+/settings`}),n}parseGroup(t){return{label:t.name,baseLink:[`/organizations/${t.voId}/groups/${t.id}`],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(t),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(t){return{label:t.name,baseLink:[`/organizations/${t.id}`],links:this.getVoLinks(t),colorClass:"vo-item",icon:"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}parseMember(t,e){return{label:(0,o.bD)(t.user),baseLink:[`/organizations/${t.voId}/members/${t.id}`],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(t,e),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(t,e,i){return{label:(0,o.bD)(t),baseLink:[e],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(t,e,i),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(t){return{label:t.name,baseLink:[`/admin/services/${t.id}`],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${t.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${t.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${t.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(t){const e=[];if(e.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${t.id}`],activatedRegex:"/organizations/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${t.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${t.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])){const i=[{label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${t.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}];this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${t.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${t.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),e.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${t.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:i,showChildrenRegex:"/organizations/\\d+/resources"})}this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[t])&&e.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${t.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${t.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${t.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),e.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${t.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.guiAuthResolver.isAuthorized("getMembersCount_Vo_Status_policy",[t])&&this.guiAuthResolver.isAuthorized("getMembersCount_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${t.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"});const i=this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[t]),n=this.authResolver.isManagerPagePrivileged(t),s=this.authResolver.isThisVoAdminOrObserver(t.id);if(n||i||s){const o=[];s&&o.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${t.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),n&&o.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${t.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),s&&o.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${t.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),s&&o.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${t.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),i&&o.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${t.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),e.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${t.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:o,showChildrenRegex:"/organizations/\\d+/settings"})}return e}getUserLinks(t,e,i){const n=[];return n.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[e],activatedRegex:`${i}$`}),n.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${e}/organizations`],activatedRegex:`${i}/organizations`}),n.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${e}/groups`],activatedRegex:`${i}/groups`}),n.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${e}/accounts`],activatedRegex:`${i}/accounts`}),n.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${e}/identities`],activatedRegex:`${i}/identities`}),n.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${e}/facilities`],activatedRegex:`${i}/facilities`}),n.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${e}/resources`],activatedRegex:`${i}/resources`}),n.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${e}/attributes`],activatedRegex:`${i}/attributes`}),n.push({label:"MENU_ITEMS.USER.ROLES",url:[`${e}/roles`],activatedRegex:`^${e}/roles`}),n.push({label:"MENU_ITEMS.ADMIN.SETTINGS",url:[`${e}/settings`],activatedRegex:`${i}/settings$`,children:[],showChildrenRegex:`${i}/settings`}),n[n.length-1].children.push(t.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${e}/settings/associated-users`],activatedRegex:`^${e}/settings/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${e}/settings/service-identities`],activatedRegex:`^${e}/settings/service-identities`}),n}getMemberLinks(t,e){const i=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${t.voId}/members/${t.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.authResolver.isAuthorized("getMemberGroups_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`//organizations/${t.voId}/members/${t.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`//organizations/${t.voId}/members/${t.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${t.voId}/members/${t.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),i.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${t.voId}/members/${t.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),i}getFacilityLinks(t){const e=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${t.id}`],activatedRegex:"/facilities/\\d+$"}];this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${t.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${t.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${t.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${t.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${t.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.authResolver.isFacilityAdmin()&&e.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${t.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),e.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",t.id,"attributes"],activatedRegex:"/facilities/\\d+/attributes$"});const i=this.authResolver.isAuthorized("getBansForFacility_int_policy",[t]),n=this.authResolver.isAuthorized("getRichAdmins_Facility_List_boolean_boolean_policy",[t]),s=this.authResolver.isAuthorized("getOwners_Facility_policy",[t]),o=this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[t]);if(i||n||s||o){const r=[];s&&r.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",t.id,"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),n&&r.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",t.id,"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),o&&r.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${t.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),i&&r.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",t.id,"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),e.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",t.id,"settings"],activatedRegex:"/facilities/\\d+/settings$",children:r,showChildrenRegex:"/facilities/\\d+/settings"})}return e}getGroupLinks(t){const e=[],i=[];e.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${t.voId}/groups/${t.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[t])&&e.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${t.voId}/groups/${t.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[t])&&"members"!==t.name&&e.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${t.voId}/groups/${t.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[t])&&e.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${t.voId}/groups/${t.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[t])&&e.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${t.voId}/groups/${t.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),e.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${t.voId}/groups/${t.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"});const n=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[t]),s=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[t]),o=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[t]);return n&&s&&o&&e.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${t.voId}/groups/${t.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(t.id,a.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{i.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${t.voId}/groups/${t.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t)}),this.authResolver.isManagerPagePrivileged(t)&&i.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${t.voId}/groups/${t.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${t.voId}/groups/${t.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${t.voId}/groups/${t.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${t.voId}/groups/${t.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${t.voId}/groups/${t.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==i.length&&e.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${t.voId}/groups/${t.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:i,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),e}}return t.\u0275fac=function(e){return new(e||t)(c.LFG(u.sK),c.LFG(n.x4),c.LFG(n.d6),c.LFG(n.F5),c.LFG(s.H8),c.LFG(n.V6),c.LFG(n.x4))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},24081:function(t,e,i){"use strict";i.d(e,{V:function(){return w}});var n=i(61601),s=i(75585),o=i(88426),r=i(17),a=i(31572),c=i(48958);function u(t,e){if(1&t&&(a.TgZ(0,"div",8),a._UZ(1,"app-side-menu-item",9),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)}}function l(t,e){if(1&t&&(a.TgZ(0,"div",8),a._UZ(1,"app-side-menu-item",10),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)("showLinks",i===n.accessItems.length-1)}}function h(t,e){if(1&t&&a._UZ(0,"app-side-menu-root-item",2),2&t){const t=a.oxw();a.Q6J("sideNav",t.sideNav)("item",t.facilityItem)}}function d(t,e){if(1&t&&(a.TgZ(0,"div",8),a._UZ(1,"app-side-menu-item",10),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw(2);a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)("showLinks",i===n.facilityItems.length-1)}}function p(t,e){if(1&t&&(a.TgZ(0,"div"),a.YNc(1,d,2,5,"div",3),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngForOf",t.facilityItems)}}function g(t,e){if(1&t&&(a.TgZ(0,"div",8),a._UZ(1,"app-side-menu-item",10),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)("showLinks",i===n.userItems.length-1)}}function f(t,e){if(1&t&&a._UZ(0,"app-side-menu-root-item",6),2&t){const t=a.oxw();a.Q6J("sideNav",t.sideNav)("showOpen",t.adminItemOpened)("item",t.adminItem)}}function m(t,e){if(1&t&&(a.TgZ(0,"div",8),a._UZ(1,"app-side-menu-item",10),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw(2);a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)("showLinks",!0)}}function b(t,e){if(1&t&&(a.TgZ(0,"div"),a.YNc(1,m,2,5,"div",3),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngForOf",t.adminItems)}}let w=(()=>{class t{constructor(t,e,i,n){this.sideMenuService=t,this.sideMenuItemService=e,this.authResolver=i,this.store=n,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}ngOnInit(){this.mobileView=window.innerWidth<=n.y.minWidth,this.mobileView?this.sideNav.close():this.sideNav.open(),this.sideMenuService.facilityItemsChange.subscribe(t=>{this.setFacilityItems(t)}),this.sideMenuService.accessItemsChange.subscribe(t=>{this.setAccessItems(t)}),this.sideMenuService.adminItemsChange.subscribe(t=>{this.setAdminItems(t)}),this.sideMenuService.userItemsChange.subscribe(t=>{this.setUserItems(t)}),this.sideMenuService.homeItemsChange.subscribe(t=>{this.setHomeItems(t)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.adminItems,[])}setHomeItems(t){this.resetExceptHome(),this.setNewItems(this.homeItems,t)}setFacilityItems(t){this.resetExceptFacility(),this.setNewItems(this.facilityItems,t)}setAccessItems(t){this.resetExceptAccess(),this.setNewItems(this.accessItems,t)}setUserItems(t){this.userItemOpened=!0,this.resetExceptUser(),this.setNewItems(this.userItems,t)}setAdminItems(t){this.adminItemOpened=0===t.length,this.resetExceptAdmin(),this.setNewItems(this.adminItems,t)}setNewItems(t,e){const i=t.length>e.length?t.length:e.length;for(let n=0;nt.length-1)t.push(e[n]);else{if(n>e.length-1){const e=t.length;for(let i=0;i{class t{constructor(t){this.dialogRef=t}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.so))},t.\u0275cmp=n.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n.TgZ(4,"div",2),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"div"),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"div",3),n._uU(11),n.ALo(12,"translate"),n.qZA(),n.qZA(),n.TgZ(13,"div",4),n.TgZ(14,"button",5),n.NdJ("click",function(){return e.onCancel()}),n._uU(15),n.ALo(16,"translate"),n.qZA(),n.TgZ(17,"button",6),n.NdJ("click",function(){return e.submit()}),n._uU(18),n.ALo(19,"translate"),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),n.xp6(4),n.Oqu(n.lcZ(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")),n.xp6(3),n.Oqu(n.lcZ(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),n.xp6(3),n.Oqu(n.lcZ(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),n.xp6(4),n.hij(" ",n.lcZ(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),n.xp6(3),n.hij(" ",n.lcZ(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},directives:[o.uh,o.xY,o.H8,r.lW],pipes:[a.X$],styles:[""]}),t})();var u=i(88426),l=i(75954),h=i(84140),d=i(57629),p=i(61511),g=i(67806),f=i(67033),m=i(43691),b=i(36922),w=i(16073),_=i(39571),y=i(65050);const A=["table"];function v(t,e){1&t&&n._UZ(0,"mat-spinner",3)}function T(t,e){1&t&&n._UZ(0,"th",24)}function C(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",25),n.TgZ(1,"button",26),n.NdJ("mousedown",function(){return n.CHM(t),n.oxw(2).dragDisabled=!1}),n.TgZ(2,"mat-icon"),n._uU(3,"drag_indicator"),n.qZA(),n.qZA(),n.qZA()}}function S(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")))}function E(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.shortname)}}function k(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")))}function x(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"applicationFormItemType"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t.type))}}function R(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")))}function I(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",30),n._uU(2,"lock"),n.qZA(),n._UZ(3,"br"),n._uU(4),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("matTooltip",e.disabledTooltip(t)),n.xp6(3),n.hij(" ",e.disabledHiddenDependency(t,t.disabled,t.disabledDependencyItemId)," ")}}function O(t,e){if(1&t&&(n.TgZ(0,"td",28),n.YNc(1,I,5,2,"div",29),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","NEVER"!==t.disabled)}}function P(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")))}function D(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",30),n._uU(2,"visibility_off"),n.qZA(),n._UZ(3,"br"),n._uU(4),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("matTooltip",e.hiddenTooltip(t)),n.xp6(3),n.hij(" ",e.disabledHiddenDependency(t,t.hidden,t.hiddenDependencyItemId)," ")}}function M(t,e){if(1&t&&(n.TgZ(0,"td",28),n.YNc(1,D,5,2,"div",29),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","NEVER"!==t.hidden)}}function L(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")))}function N(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",32),n.qZA(),n.qZA())}function z(t,e){1&t&&(n.TgZ(0,"div",33),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_VALUE")," "))}function F(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",34),n.qZA(),n.qZA())}function Z(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",35),n._UZ(3,"br"),n._UZ(4,"input",32),n.qZA(),n.qZA())}function B(t,e){if(1&t&&(n.TgZ(0,"div"),n._UZ(1,"input",38),n._uU(2),n._UZ(3,"br"),n.qZA()),2&t){const t=e.$implicit;n.xp6(2),n.hij(" ",t,"")}}function q(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n.YNc(2,B,4,1,"div",36),n._UZ(3,"input",37),n.ALo(4,"translate"),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Q6J("ngForOf",e.getLocalizedOptions(t)),n.xp6(1),n.s9C("value",n.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function U(t,e){if(1&t&&(n.TgZ(0,"div"),n._UZ(1,"span",39),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("innerHTML",e.getLocalizedLabel(t),n.oJD)}}function H(t,e){if(1&t&&(n.TgZ(0,"option"),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t)}}function j(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"select"),n.YNc(2,H,2,1,"option",36),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Q6J("ngForOf",e.getLocalizedOptions(t))}}function G(t,e){1&t&&(n.TgZ(0,"div"),n._UZ(1,"textarea"),n.qZA())}function Y(t,e){if(1&t&&(n.TgZ(0,"option",43),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t)}}function V(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",32),n.qZA(),n.qZA())}function K(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div"),n.TgZ(1,"select",40),n.NdJ("ngModelChange",function(e){n.CHM(t);const i=n.oxw().$implicit;return n.oxw(2).mapForCombobox[i.id]=e}),n.YNc(2,Y,2,1,"option",41),n.TgZ(3,"option",42),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA(),n.YNc(6,V,3,0,"div",29),n.qZA()}if(2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("ngModel",e.mapForCombobox[t.id]),n.xp6(1),n.Q6J("ngForOf",e.getLocalizedOptions(t)),n.xp6(2),n.Oqu(n.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")),n.xp6(2),n.Q6J("ngIf","true"===e.mapForCombobox[t.id])}}function J(t,e){if(1&t&&(n.TgZ(0,"div"),n._UZ(1,"input",44),n._uU(2),n.qZA()),2&t){const t=e.$implicit;n.xp6(2),n.hij(" ",t," ")}}function $(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n.YNc(2,J,3,1,"div",36),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Q6J("ngForOf",e.getLocalizedOptions(t))}}function Q(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"button",45),n._uU(2),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Oqu(e.getLocalizedLabel(t))}}function W(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"select",46),n.TgZ(2,"option",47),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"option",48),n._uU(6,"(GMT -12:00) Eniwetok, Kwajalein"),n.qZA(),n.TgZ(7,"option",49),n._uU(8,"(GMT -11:00) Midway Island, Samoa"),n.qZA(),n.TgZ(9,"option",50),n._uU(10,"(GMT -10:00) Hawaii"),n.qZA(),n.TgZ(11,"option",51),n._uU(12,"(GMT -9:30) Taiohae"),n.qZA(),n.TgZ(13,"option",52),n._uU(14,"(GMT -9:00) Alaska"),n.qZA(),n.TgZ(15,"option",53),n._uU(16,"(GMT -8:00) Pacific Time (US & Canada)"),n.qZA(),n.TgZ(17,"option",54),n._uU(18,"(GMT -7:00) Mountain Time (US & Canada)"),n.qZA(),n.TgZ(19,"option",55),n._uU(20,"(GMT -6:00) Central Time (US & Canada), Mexico City"),n.qZA(),n.TgZ(21,"option",56),n._uU(22,"(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima"),n.qZA(),n.TgZ(23,"option",57),n._uU(24,"(GMT -4:30) Caracas"),n.qZA(),n.TgZ(25,"option",58),n._uU(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),n.qZA(),n.TgZ(27,"option",59),n._uU(28,"(GMT -3:30) Newfoundland"),n.qZA(),n.TgZ(29,"option",60),n._uU(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),n.qZA(),n.TgZ(31,"option",61),n._uU(32,"(GMT -2:00) Mid-Atlantic"),n.qZA(),n.TgZ(33,"option",62),n._uU(34,"(GMT -1:00) Azores, Cape Verde Islands"),n.qZA(),n.TgZ(35,"option",63),n._uU(36,"(GMT) Western Europe Time, London, Lisbon, Casablanca"),n.qZA(),n.TgZ(37,"option",64),n._uU(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),n.qZA(),n.TgZ(39,"option",65),n._uU(40,"(GMT +2:00) Kaliningrad, South Africa"),n.qZA(),n.TgZ(41,"option",66),n._uU(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),n.qZA(),n.TgZ(43,"option",67),n._uU(44,"(GMT +3:30) Tehran"),n.qZA(),n.TgZ(45,"option",68),n._uU(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),n.qZA(),n.TgZ(47,"option",69),n._uU(48,"(GMT +4:30) Kabul"),n.qZA(),n.TgZ(49,"option",70),n._uU(50,"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent"),n.qZA(),n.TgZ(51,"option",71),n._uU(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),n.qZA(),n.TgZ(53,"option",72),n._uU(54,"(GMT +5:45) Kathmandu, Pokhara"),n.qZA(),n.TgZ(55,"option",73),n._uU(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),n.qZA(),n.TgZ(57,"option",74),n._uU(58,"(GMT +6:30) Yangon, Mandalay"),n.qZA(),n.TgZ(59,"option",75),n._uU(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),n.qZA(),n.TgZ(61,"option",76),n._uU(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),n.qZA(),n.TgZ(63,"option",77),n._uU(64,"(GMT +8:45) Eucla"),n.qZA(),n.TgZ(65,"option",78),n._uU(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),n.qZA(),n.TgZ(67,"option",79),n._uU(68,"(GMT +9:30) Adelaide, Darwin"),n.qZA(),n.TgZ(69,"option",80),n._uU(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),n.qZA(),n.TgZ(71,"option",81),n._uU(72,"(GMT +10:30) Lord Howe Island"),n.qZA(),n.TgZ(73,"option",82),n._uU(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),n.qZA(),n.TgZ(75,"option",83),n._uU(76,"(GMT +11:30) Norfolk Island"),n.qZA(),n.TgZ(77,"option",84),n._uU(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),n.qZA(),n.TgZ(79,"option",85),n._uU(80,"(GMT +12:45) Chatham Islands"),n.qZA(),n.TgZ(81,"option",86),n._uU(82,"(GMT +13:00) Apia, Nukualofa"),n.qZA(),n.TgZ(83,"option",87),n._uU(84,"(GMT +14:00) Line Islands, Tokelau"),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.xp6(3),n.Oqu(n.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")))}function X(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"button",45),n._uU(2),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Oqu(e.getLocalizedLabel(t))}}function tt(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",44),n._uU(3," example group1 "),n._UZ(4,"br"),n._UZ(5,"input",44),n._uU(6," example group2 "),n._UZ(7,"br"),n._UZ(8,"input",44),n._uU(9," example group3 "),n.qZA(),n.qZA())}function et(t,e){if(1&t&&(n.TgZ(0,"td",25),n.YNc(1,N,3,0,"div",29),n.YNc(2,z,3,3,"div",31),n.YNc(3,F,3,0,"div",29),n.YNc(4,Z,5,0,"div",29),n.YNc(5,q,5,4,"div",29),n.YNc(6,U,2,1,"div",29),n.YNc(7,j,3,1,"div",29),n.YNc(8,G,2,0,"div",29),n.YNc(9,K,7,6,"div",29),n.YNc(10,$,3,1,"div",29),n.YNc(11,Q,3,1,"div",29),n.YNc(12,W,85,3,"div",29),n.YNc(13,X,3,1,"div",29),n.YNc(14,tt,10,0,"div",29),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","TEXTFIELD"===t.type||"VALIDATED_EMAIL"===t.type||"USERNAME"===t.type),n.xp6(1),n.Q6J("ngIf","FROM_FEDERATION_HIDDEN"===t.type),n.xp6(1),n.Q6J("ngIf","FROM_FEDERATION_SHOW"===t.type),n.xp6(1),n.Q6J("ngIf","PASSWORD"===t.type),n.xp6(1),n.Q6J("ngIf","RADIO"===t.type),n.xp6(1),n.Q6J("ngIf","HEADING"===t.type||"HTML_COMMENT"===t.type),n.xp6(1),n.Q6J("ngIf","SELECTIONBOX"===t.type),n.xp6(1),n.Q6J("ngIf","TEXTAREA"===t.type),n.xp6(1),n.Q6J("ngIf","COMBOBOX"===t.type),n.xp6(1),n.Q6J("ngIf","CHECKBOX"===t.type),n.xp6(1),n.Q6J("ngIf","SUBMIT_BUTTON"===t.type),n.xp6(1),n.Q6J("ngIf","TIMEZONE"===t.type),n.xp6(1),n.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===t.type),n.xp6(1),n.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===t.type)}}function it(t,e){1&t&&n._UZ(0,"th",24)}function nt(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",89),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).openManagingGroups(e)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"supervised_user_circle"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function st(t,e){if(1&t&&(n.TgZ(0,"td",25),n.YNc(1,nt,4,3,"button",88),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===t.type&&!t.forDelete)}}function ot(t,e){1&t&&n._UZ(0,"th",24)}function rt(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",92),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).edit(e)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"edit"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function at(t,e){1&t&&(n.TgZ(0,"div",93),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function ct(t,e){if(1&t&&(n.TgZ(0,"td",25),n.YNc(1,rt,4,3,"button",90),n.YNc(2,at,3,3,"div",91),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",!t.forDelete),n.xp6(1),n.Q6J("ngIf",t.forDelete)}}function ut(t,e){1&t&&n._UZ(0,"th",24)}function lt(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",95),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).delete(e)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"delete"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}function ht(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",89),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).restore(e)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"settings_backup_restore"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function dt(t,e){if(1&t&&(n.TgZ(0,"td",25),n.YNc(1,lt,4,3,"button",94),n.YNc(2,ht,4,3,"button",88),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",!t.forDelete),n.xp6(1),n.Q6J("ngIf",t.forDelete)}}function pt(t,e){1&t&&n._UZ(0,"tr",96)}function gt(t,e){if(1&t&&n._UZ(0,"tr",97),2&t){const t=e.$implicit,i=n.oxw(2);n.ekj("make-green",t.id<=0)("make-red",t.forDelete)("make-yellow",-1!==i.itemsChanged.indexOf(t.id)&&!t.forDelete&&t.id>0),n.Q6J("cdkDragData",t)}}function ft(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div",4),n.TgZ(1,"div",5),n.TgZ(2,"div",6),n.TgZ(3,"table",7,8),n.NdJ("cdkDropListDropped",function(e){return n.CHM(t),n.oxw().drop(e)}),n.ynx(5,9),n.YNc(6,T,1,0,"th",10),n.YNc(7,C,4,0,"td",11),n.BQk(),n.ynx(8,12),n.YNc(9,S,3,3,"th",10),n.YNc(10,E,2,1,"td",11),n.BQk(),n.ynx(11,13),n.YNc(12,k,3,3,"th",10),n.YNc(13,x,3,3,"td",11),n.BQk(),n.ynx(14,14),n.YNc(15,R,3,3,"th",15),n.YNc(16,O,2,1,"td",16),n.BQk(),n.ynx(17,17),n.YNc(18,P,3,3,"th",15),n.YNc(19,M,2,1,"td",16),n.BQk(),n.ynx(20,18),n.YNc(21,L,3,3,"th",10),n.YNc(22,et,15,14,"td",11),n.BQk(),n.ynx(23,19),n.YNc(24,it,1,0,"th",10),n.YNc(25,st,2,1,"td",11),n.BQk(),n.ynx(26,20),n.YNc(27,ot,1,0,"th",10),n.YNc(28,ct,3,2,"td",11),n.BQk(),n.ynx(29,21),n.YNc(30,ut,1,0,"th",10),n.YNc(31,dt,3,2,"td",11),n.BQk(),n.YNc(32,pt,1,0,"tr",22),n.YNc(33,gt,1,7,"tr",23),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(3),n.Q6J("cdkDropListDisabled",t.dragDisabled)("dataSource",t.dataSource),n.xp6(29),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns)}}function mt(t,e){1&t&&(n.TgZ(0,"app-alert",98),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let bt=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.notificator=e,this.router=i,this.translate=s,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new n.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}disabledHiddenDependency(t,e,i){let n="";if("IF_EMPTY"===e||"IF_PREFILLED"===e){const t=null===i?"":this.applicationFormItems.find(t=>t.id===i).shortname;n="IF_EMPTY"===e?`(${this.ifEmpty} ${t})`:`(${this.ifPrefilled} ${t})`}return n}disabledTooltip(t){let e;switch(t.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return e=null===t.disabledDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${e} ${this.isEmpty}`;case"IF_PREFILLED":return e=null===t.disabledDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${e} ${this.isPrefilled}`}}hiddenTooltip(t){let e;switch(t.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return e=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${e} ${this.isEmpty}`;case"IF_PREFILLED":return e=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${e} ${this.isPrefilled}`}}edit(t){const e=(0,h.kZ)();e.width="600px",e.height="600px",e.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:t,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(l._,e).afterClosed().subscribe(e=>{e&&(this.itemsChanged.push(t.id),this.applicationFormItemsChange.emit())})}delete(t){const e=(0,h.kZ)();e.width="500px",this.dialog.open(c,e).afterClosed().subscribe(e=>{e&&(t.forDelete=!0,0===t.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(t),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(t){this.dragDisabled=!0;const e=this.applicationFormItems.indexOf(t.item.data);(0,s.bA)(this.applicationFormItems,e,t.currentIndex),this.itemsChanged.push(this.applicationFormItems[t.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(t){if(t.i18n[this.translate.getDefaultLang()]){const e=t.i18n[this.translate.getDefaultLang()].options;if(null!==e&&""!==e){const t=[];for(const i of e.split("|"))t.push(i.split("#")[1]);return t}}return[]}getLocalizedLabel(t){return t.i18n[this.translate.getDefaultLang()]?t.i18n[this.translate.getDefaultLang()].label:t.shortname}restore(t){t.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.uw),n.Y36(u.V6),n.Y36(d.F0),n.Y36(a.sK))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-application-form-list"]],viewQuery:function(t,e){if(1&t&&n.Gf(A,5),2&t){let t;n.iGM(t=n.CRH())&&(e.table=t.first)}},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[n.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"],["class","font-italic disabled",4,"ngIf"],["type","text"],[1,"font-italic","disabled"],["disabled",""],["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"],["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(t,e){1&t&&(n.YNc(0,v,1,0,"mat-spinner",0),n.YNc(1,ft,34,4,"div",1),n.YNc(2,mt,3,3,"app-alert",2)),2&t&&(n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",0!==e.applicationFormItems.length&&!e.loading),n.xp6(1),n.Q6J("ngIf",0===e.applicationFormItems.length&&!e.loading))},directives:[p.O5,g.$g,f.BZ,s.Wj,f.w1,f.fO,f.Dz,f.as,f.nj,f.ge,f.ev,r.lW,m.Hw,b.gM,w._Y,w.JL,w.F,p.sg,w.YN,w.Kr,w.EJ,w.JJ,w.On,f.XQ,f.Gk,s.Zt,_.w],pipes:[a.X$,y.c],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%], .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}"]}),t})()},29851:function(t,e,i){"use strict";i.d(e,{w:function(){return et}});var n=i(31572),s=i(33642),o=i(67033),r=i(84140),a=i(88426),c=i(57629),u=i(82819),l=i(61511),h=i(84534),d=i(67806),p=i(39571),g=i(48160),f=i(22196);function m(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function b(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function w(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_ID")))}function _(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.vo.id)}}function y(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_NAME")))}function A(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.vo.name)}}function v(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_ID")))}function T(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.group?t.group.id:"")}}function C(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")))}function S(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.group?t.group.name:"")}}function E(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")))}function k(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.type)}}function x(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")))}function R(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.state)}}function I(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCENAME")))}function O(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.extSourceName)}}function P(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCETYPE")))}function D(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.extSourceType)}}function M(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_USER")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",t.user?n.lcZ(2,1,t.user):"null"," ")}}function N(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_BY")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length)," ")}}function F(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")))}function Z(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.ALo(2,"date"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,t.createdAt,"d.M.y"))}}function B(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")))}function q(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Oqu(i.getFriendlyName(t.modifiedBy))}}function U(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_AT")))}function H(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.ALo(2,"date"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,t.modifiedAt,"d.M.y"))}}function j(t,e){if(1&t&&(n.TgZ(0,"th",26),n._uU(1),n.qZA()),2&t){const t=n.oxw().$implicit;n.xp6(1),n.Oqu(t)}}function G(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit,i=n.oxw().$implicit;n.xp6(1),n.Oqu(t[i])}}function Y(t,e){1&t&&(n.ynx(0,29),n.YNc(1,j,2,1,"th",4),n.YNc(2,G,2,1,"td",11),n.BQk()),2&t&&n.Q6J("matColumnDef",e.$implicit)}function V(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_FEDINFO")))}function K(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.fedInfo)}}function J(t,e){1&t&&n._UZ(0,"tr",30)}function $(t,e){if(1&t&&n._UZ(0,"tr",31),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",i.selectApplication(t))("routerLink",i.selectApplication(t))}}function Q(t,e){1&t&&n._UZ(0,"mat-spinner",32)}function W(t,e){1&t&&(n.TgZ(0,"app-alert",34),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND")," "))}function X(t,e){1&t&&(n.TgZ(0,"app-alert",34),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT")," "))}function tt(t,e){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,W,3,3,"app-alert",33),n.YNc(2,X,3,3,"app-alert",33),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",0===t.dataSource.data.length),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.table.length)}}let et=(()=>{class t{constructor(t,e,i){this.router=t,this.authResolver=e,this.registrarManager=i,this.applications=[],this.pageSize=10,this.disableRouting=!1,this.page=new n.vpe,this.displayedColumns=["id","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","createdAt","modifiedBy","modifiedAt","fedInfo"],this.loading=!1,this.table=[],this.addedColumns=new Set,this.pageSizeOptions=r.f7}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.loading=!0,this.table=[],this.initialize(),this.getApplicationsData(0)}getExportDataForColumn(t,e){var i,n,s,o;switch(e){case"id":return t.id.toString();case"voId":return t.vo.id.toString();case"voName":return t.vo.name;case"groupId":return null!==(n=null===(i=t.group)||void 0===i?void 0:i.id.toString())&&void 0!==n?n:"";case"groupName":return null!==(o=null===(s=t.group)||void 0===s?void 0:s.name)&&void 0!==o?o:"";case"type":return t.type;case"fedInfo":return t.fedInfo;case"state":return t.state;case"extSourceName":return t.extSourceName;case"extSourceType":return t.extSourceType;case"user":return t.user?(0,r.bD)(t.user):"";case"createdBy":return t.createdBy;case"createdAt":return t.createdAt;case"modifiedBy":return t.modifiedBy;case"modifiedAt":return t.modifiedAt;default:return t[e]}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}getApplicationsData(t){if(this.applications.length===t)return void this.initialize();const e=this.applications[t],i={};i.id=e.id,i.vo=e.vo,i.group=e.group,i.type=e.type,i.fedInfo=e.fedInfo,i.state=e.state,i.extSourceName=e.extSourceName,i.extSourceType=e.extSourceType,i.extSourceLoa=e.extSourceLoa,i.user=e.user,i.createdBy=e.createdBy,i.createdAt=e.createdAt,i.modifiedBy=e.modifiedBy,i.modifiedAt=e.modifiedAt,this.registrarManager.getApplicationDataById(e.id).subscribe(e=>{for(const t of e)null!==t.formItem.i18n.en.label&&0!==t.formItem.i18n.en.label.length?(i[t.formItem.i18n.en.label]=t.value,this.addedColumns.add(t.formItem.i18n.en.label)):(i[t.shortname]=t.value,this.addedColumns.add(t.shortname));this.table.push(i),this.getApplicationsData(t+1)})}initialize(){for(const t of this.addedColumns)this.displayedColumns.push(t);this.dataSource=new o.by(this.table),this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage(),this.loading=!1}getFriendlyName(t){const e=t.lastIndexOf("/CN=");if(-1!==e){const i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}selectApplication(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.F0),n.Y36(a.x4),n.Y36(s.tk))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-perun-web-apps-application-list-details"]],viewQuery:function(t,e){if(1&t&&n.Gf(r.l9,7),2&t){let t;n.iGM(t=n.CRH())&&(e.child=t.first)}},inputs:{applications:"applications",group:"group",member:"member",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.TTD],decls:53,vars:12,consts:[[1,"card","mt-2","w-100",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","createdAt"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],[3,"matColumnDef",4,"ngFor","ngForOf"],["matColumnDef","fedInfo"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[1,"ml-auto","mr-auto"],["alert_type","warn",4,"ngIf"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,m,3,3,"th",4),n.YNc(5,b,2,1,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,w,3,3,"th",4),n.YNc(8,_,2,1,"td",5),n.BQk(),n.ynx(9,7),n.YNc(10,y,3,3,"th",4),n.YNc(11,A,2,1,"td",5),n.BQk(),n.ynx(12,8),n.YNc(13,v,3,3,"th",4),n.YNc(14,T,2,1,"td",5),n.BQk(),n.ynx(15,9),n.YNc(16,C,3,3,"th",4),n.YNc(17,S,2,1,"td",5),n.BQk(),n.ynx(18,10),n.YNc(19,E,3,3,"th",4),n.YNc(20,k,2,1,"td",11),n.BQk(),n.ynx(21,12),n.YNc(22,x,3,3,"th",4),n.YNc(23,R,2,1,"td",11),n.BQk(),n.ynx(24,13),n.YNc(25,I,3,3,"th",4),n.YNc(26,O,2,1,"td",11),n.BQk(),n.ynx(27,14),n.YNc(28,P,3,3,"th",4),n.YNc(29,D,2,1,"td",11),n.BQk(),n.ynx(30,15),n.YNc(31,M,3,3,"th",4),n.YNc(32,L,3,3,"td",11),n.BQk(),n.ynx(33,16),n.YNc(34,N,3,3,"th",4),n.YNc(35,z,2,1,"td",11),n.BQk(),n.ynx(36,17),n.YNc(37,F,3,3,"th",4),n.YNc(38,Z,3,4,"td",11),n.BQk(),n.ynx(39,18),n.YNc(40,B,3,3,"th",4),n.YNc(41,q,2,1,"td",11),n.BQk(),n.ynx(42,19),n.YNc(43,U,3,3,"th",4),n.YNc(44,H,3,4,"td",11),n.BQk(),n.YNc(45,Y,3,1,"ng-container",20),n.ynx(46,21),n.YNc(47,V,3,3,"th",4),n.YNc(48,K,2,1,"td",11),n.BQk(),n.YNc(49,J,1,0,"tr",22),n.YNc(50,$,1,4,"tr",23),n.qZA(),n.qZA(),n.qZA(),n.YNc(51,Q,1,0,"mat-spinner",24),n.YNc(52,tt,3,2,"div",25)),2&t&&(n.ekj("hide-table",e.loading),n.Q6J("hidden",0===e.table.length||!!e.dataSource&&0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(43),n.Q6J("ngForOf",e.addedColumns),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",!e.loading))},directives:[u.l,o.BZ,o.w1,o.fO,o.Dz,l.sg,o.as,o.nj,l.O5,o.ge,o.ev,o.XQ,o.Gk,h.YH,c.rH,d.$g,p.w],pipes:[g.X$,f.d,l.uU],styles:[".mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%], mat-cell[_ngcontent-%COMP%], mat-header-cell[_ngcontent-%COMP%]{padding:8px!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},21548:function(t,e,i){"use strict";i.d(e,{M:function(){return H}});var n=i(31572),s=i(58623),o=i(67033),r=i(84140),a=i(88426),c=i(82819),u=i(61511),l=i(43691),h=i(36922),d=i(84534),p=i(57629),g=i(39571),f=i(48160),m=i(84650),b=i(22196);function w(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function _(t,e){if(1&t&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function y(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")))}function A(t,e){if(1&t&&(n.TgZ(0,"td",18),n._uU(1),n.ALo(2,"date"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,t.createdAt,"d.M.y"))}}function v(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")))}function T(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",20),n._uU(2,"arrow_right_alt"),n.qZA(),n.qZA())}function C(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",21),n._uU(2,"restore"),n.qZA(),n.qZA())}function S(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",22),n._uU(2,"nat"),n.qZA(),n.qZA())}function E(t,e){if(1&t&&(n.TgZ(0,"td",18),n.YNc(1,T,3,0,"div",19),n.YNc(2,C,3,0,"div",19),n.YNc(3,S,3,0,"div",19),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","INITIAL"===t.type),n.xp6(1),n.Q6J("ngIf","EXTENSION"===t.type),n.xp6(1),n.Q6J("ngIf","EMBEDDED"===t.type)}}function k(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")))}function x(t,e){if(1&t&&(n.TgZ(0,"td",18),n._UZ(1,"span",23),n.ALo(2,"applicationState"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("outerHTML",n.lcZ(2,1,t.state),n.oJD)}}function R(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_SUBMITTED_BY")))}function I(t,e){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){const t=n.oxw().$implicit;n.xp6(1),n.hij(" ",t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length)," ")}}function O(t,e){if(1&t&&(n._uU(0),n.ALo(1,"userFullName")),2&t){const t=n.oxw().$implicit;n.hij(" ",n.lcZ(1,1,t.user)," ")}}function P(t,e){if(1&t&&(n.TgZ(0,"td",18),n.YNc(1,I,2,1,"div",24),n.YNc(2,O,2,3,"ng-template",null,25,n.W1O),n.qZA()),2&t){const t=e.$implicit,i=n.MAs(3);n.xp6(1),n.Q6J("ngIf",null===t.user)("ngIfElse",i)}}function D(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")))}function M(t,e){1&t&&(n.TgZ(0,"div",28),n._uU(1," - "),n.qZA())}function L(t,e){if(1&t&&n._uU(0),2&t){const t=n.oxw().$implicit;n.hij(" ",t.group.name," ")}}function N(t,e){if(1&t&&(n.TgZ(0,"td",18),n.YNc(1,M,2,0,"div",26),n.YNc(2,L,1,1,"ng-template",null,27,n.W1O),n.qZA()),2&t){const t=e.$implicit,i=n.MAs(3);n.xp6(1),n.Q6J("ngIf",null===t.group)("ngIfElse",i)}}function z(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")))}function F(t,e){if(1&t&&(n.TgZ(0,"td",18),n._uU(1),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Oqu(i.getFriendlyName(t.modifiedBy))}}function Z(t,e){1&t&&n._UZ(0,"tr",29)}function B(t,e){if(1&t&&n._UZ(0,"tr",30),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",i.selectApplication(t))("routerLink",i.selectApplication(t))}}function q(t,e){1&t&&(n.TgZ(0,"app-alert",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}function U(t,e){1&t&&(n.TgZ(0,"app-alert",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let H=(()=>{class t{constructor(t){this.authResolver=t,this.applications=[],this.displayedColumns=[],this.pageSize=10,this.disableRouting=!1,this.page=new n.vpe,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t))}ngOnChanges(){this.setDataSource()}getSortDataForColumn(t,e,i){var n;switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?(0,r.bD)(t.user):t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}parseModifiedBy(t){const e=t.modifiedBy.lastIndexOf("/CN=");if(-1!==e){const i=t.modifiedBy.slice(e+4,t.modifiedBy.length).replace("/unstructuredName="," ").toLowerCase();return-1!==i.lastIndexOf("\\")?t.modifiedBy.slice(t.modifiedBy.lastIndexOf("=")+1,t.modifiedBy.length):i}return t.modifiedBy.toLowerCase()}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getSortDataForColumn,this)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.applications}getFriendlyName(t){const e=t.lastIndexOf("/CN=");if(-1!==e){const i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}selectApplication(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-applications-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(r.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},inputs:{applications:"applications",group:"group",member:"member",displayedColumns:"displayedColumns",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","createdAt","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","createdAt"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","user"],["matColumnDef","group"],["matColumnDef","modifiedBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],["class","font-italic text-muted",4,"ngIf","ngIfElse"],["groupName",""],[1,"font-italic","text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,w,3,3,"th",4),n.YNc(5,_,2,1,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,y,3,3,"th",4),n.YNc(8,A,3,4,"td",7),n.BQk(),n.ynx(9,8),n.YNc(10,v,3,3,"th",4),n.YNc(11,E,4,3,"td",7),n.BQk(),n.ynx(12,9),n.YNc(13,k,3,3,"th",4),n.YNc(14,x,3,3,"td",7),n.BQk(),n.ynx(15,10),n.YNc(16,R,3,3,"th",4),n.YNc(17,P,4,2,"td",7),n.BQk(),n.ynx(18,11),n.YNc(19,D,3,3,"th",4),n.YNc(20,N,4,2,"td",7),n.BQk(),n.ynx(21,12),n.YNc(22,z,3,3,"th",4),n.YNc(23,F,2,1,"td",7),n.BQk(),n.YNc(24,Z,1,0,"tr",13),n.YNc(25,B,1,4,"tr",14),n.qZA(),n.qZA(),n.qZA(),n.YNc(26,q,3,3,"app-alert",15),n.YNc(27,U,3,3,"app-alert",15)),2&t&&(n.Q6J("hidden",0===e.applications.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(22),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.applications.length),n.xp6(1),n.Q6J("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.applications.length))},directives:[c.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,u.O5,o.ge,s.nU,o.ev,l.Hw,h.gM,o.XQ,o.Gk,d.YH,p.rH,g.w],pipes:[f.X$,u.uU,m.h,b.d],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},62284:function(t,e,i){"use strict";i.d(e,{W:function(){return k}});var n=i(33642),s=i(60611),o=i(88426),r=i(16073),a=i(61511),c=i(31572),u=i(57629),l=i(59403),h=i(66283),d=i(4786),p=i(71522),g=i(91058),f=i(51613),m=i(15980),b=i(67806),w=i(21548),_=i(29851),y=i(48160);function A(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",15),c.NdJ("click",function(){return c.CHM(t),c.oxw().showAllDetails=!0}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function v(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",15),c.NdJ("click",function(){return c.CHM(t),c.oxw().showAllDetails=!1}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function T(t,e){1&t&&c._UZ(0,"mat-spinner",16)}function C(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"app-applications-list",19),c.NdJ("page",function(e){return c.CHM(t),c.oxw(2).pageChanged(e)}),c.qZA()}if(2&t){const t=c.oxw(2);c.Q6J("pageSize",t.pageSize)("disableRouting",!t.routeAuth)("filterValue",t.filterValue)("applications",t.applications)("displayedColumns",t.displayedColumns)("group",t.group)}}function S(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"app-perun-web-apps-application-list-details",20),c.NdJ("page",function(e){return c.CHM(t),c.oxw(2).detailPageChanged(e)}),c.qZA()}if(2&t){const t=c.oxw(2);c.Q6J("pageSize",t.detailPageSize)("disableRouting",!t.routeAuth)("filterValue",t.filterValue)("applications",t.applications)("group",t.group)}}function E(t,e){if(1&t&&(c.TgZ(0,"div"),c.YNc(1,C,1,6,"app-applications-list",17),c.YNc(2,S,1,5,"app-perun-web-apps-application-list-details",18),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.Q6J("ngIf",!t.showAllDetails),c.xp6(1),c.Q6J("ngIf",t.showAllDetails)}}let k=(()=>{class t{constructor(t,e,i,n,o,r){this.groupService=t,this.registrarManager=e,this.tableConfigService=i,this.route=n,this.guiAuthResolver=o,this.store=r,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=s.Af,this.tableId=s.gB,this.routeAuth=!1}ngOnInit(){this.detailPageSize=this.tableConfigService.getTablePageSize(this.detailTableId),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(t=>{this.groupService.getGroupById(t.groupId).subscribe(t=>{this.group=t,this.setData(["NEW","VERIFIED"])}),this.startDate=new r.NI((0,a.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new r.NI((0,a.p6)(new Date,"yyyy-MM-dd","en-GB"))})}setAuth(){0!==this.applications.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("group-getApplicationById_int_policy",[this.group]))}setData(t){this.registrarManager.getApplicationsForGroup(this.group.id,t,(0,a.p6)(this.startDate.value,"yyyy-MM-dd","en-GB"),(0,a.p6)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(t=>{this.applications=t,this.setAuth(),this.loading=!1})}select(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}yearAgo(){const t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}applyFilter(t){this.filterValue=t}detailPageChanged(t){this.detailPageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.detailTableId,t.pageSize)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="GroupApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(n.ff),c.Y36(n.tk),c.Y36(s.dB),c.Y36(u.gz),c.Y36(o.x4),c.Y36(o.d6))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:34,vars:32,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",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,"startDate","endDate","datePicker"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","disableRouting","filterValue","applications","displayedColumns","group","page",4,"ngIf"],[3,"pageSize","disableRouting","filterValue","applications","group","page",4,"ngIf"],[3,"pageSize","disableRouting","filterValue","applications","displayedColumns","group","page"],[3,"pageSize","disableRouting","filterValue","applications","group","page"]],template:function(t,e){1&t&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"div"),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.select()}),c.qZA(),c.YNc(5,A,3,3,"button",2),c.YNc(6,v,3,3,"button",2),c.TgZ(7,"mat-form-field",3),c.TgZ(8,"mat-label"),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.TgZ(11,"mat-select",4),c.NdJ("selectionChange",function(){return e.select()})("valueChange",function(t){return e.state=t}),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.qZA(),c.qZA(),c.TgZ(30,"perun-web-apps-debounce-filter",11),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.TgZ(31,"perun-web-apps-date-range",12),c.NdJ("datePicker",function(){return e.select()}),c.qZA(),c.qZA(),c.YNc(32,T,1,0,"mat-spinner",13),c.YNc(33,E,3,2,"div",14)),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,16,"VO_DETAIL.APPLICATION.TITLE")),c.xp6(4),c.Q6J("ngIf",!e.showAllDetails),c.xp6(1),c.Q6J("ngIf",e.showAllDetails),c.xp6(3),c.Oqu(c.lcZ(10,18,"VO_DETAIL.APPLICATION.TABLE_STATE")),c.xp6(2),c.Q6J("value",e.state),c.xp6(2),c.Oqu(c.lcZ(14,20,"VO_DETAIL.APPLICATION.SELECTION_ALL")),c.xp6(3),c.Oqu(c.lcZ(17,22,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),c.xp6(3),c.Oqu(c.lcZ(20,24,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),c.xp6(3),c.Oqu(c.lcZ(23,26,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),c.xp6(3),c.Oqu(c.lcZ(26,28,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),c.xp6(3),c.Oqu(c.lcZ(29,30,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),c.xp6(2),c.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),c.xp6(1),c.Q6J("startDate",e.startDate)("endDate",e.endDate),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[l.t,a.O5,h.KE,h.hX,d.gD,p.ey,g.P,f.S,m.lW,b.$g,w.M,_.w],pipes:[y.X$],styles:[""]}),t})()},11930:function(t,e,i){"use strict";i.d(e,{y:function(){return N}});var n=i(4230),s=i(88426),o=i(67004),r=i(85613),a=i(4374),c=i(33642),u=i(60611),l=i(84140),h=i(88690),d=i(16073),p=i(31572),g=i(57629),f=i(84608),m=i(61511),b=i(59403),w=i(36922),_=i(66283),y=i(4786),A=i(91058),v=i(39571),T=i(15980),C=i(71522),S=i(67806),E=i(91779),k=i(48160);function x(t,e){1&t&&(p.TgZ(0,"app-alert",14),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function R(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",15),p.NdJ("click",function(){return p.CHM(t),p.oxw().onAddMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.synchEnabled||t.blockManualMemberAdding),p.xp6(1),p.hij(" ",p.lcZ(2,2,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function I(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",15),p.NdJ("click",function(){return p.CHM(t),p.oxw().onInviteMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.synchEnabled),p.xp6(1),p.hij(" ",p.lcZ(2,2,"GROUP_DETAIL.MEMBERS.INVITE_MEMBER")," ")}}function O(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",16),p.NdJ("click",function(){return p.CHM(t),p.oxw().onRemoveMembers()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.selection.isEmpty()||t.synchEnabled),p.xp6(1),p.hij(" ",p.lcZ(2,2,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function P(t,e){if(1&t&&(p.TgZ(0,"mat-option",17),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.Oqu(t)}}function D(t,e){if(1&t&&(p.TgZ(0,"mat-option",17),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.Oqu(t)}}function M(t,e){1&t&&p._UZ(0,"mat-spinner",18)}function L(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-members-dynamic-list",19),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("voId",t.group.voId)("groupId",t.group.id)("pageSize",t.pageSize)("selection",t.selection)("displayedColumns",t.displayedColumns)("updateTable",t.updateTable)("searchString",t.searchString)("selectedStatuses",t.selectedStatuses)("selectedGroupStatuses",t.selectedGroupStatuses)("attrNames",t.memberAttrNames)}}let N=(()=>{class t{constructor(t,e,i,n,s,r,a,c,l){this.groupService=t,this.route=e,this.tableConfigService=i,this.dialog=n,this.guiAuthResolver=s,this.storeService=r,this.attributesManager=a,this.apiRequest=c,this.notificator=l,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=u.dI,this.memberAttrNames=[o.r.MEMBER_DEF_ORGANIZATION,o.r.MEMBER_DEF_MAIL,o.r.USER_DEF_ORGANIZATION,o.r.USER_DEF_PREFERRED_MAIL,o.r.MEMBER_DEF_EXPIRATION,o.r.MEMBER_DEF_GROUP_EXPIRATION],this.groupAttrNames=[o.r.GROUP_SYNC_ENABLED,o.r.GROUP_LAST_SYNC_STATE,o.r.GROUP_LAST_SYNC_TIMESTAMP,o.r.GROUP_STRUCTURE_SYNC_ENABLED,o.r.GROUP_LAST_STRUCTURE_SYNC_STATE,o.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new d.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new d.NI,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"]}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.selection=new n.Ov(!0,[]),this.statuses.setValue(this.selectedStatuses),this.groupStatuses.setValue(this.selectedGroupStatuses),this.memberAttrNames=this.memberAttrNames.concat(this.storeService.getLoginAttributeNames()),this.route.parent.params.subscribe(t=>{const e=t.groupId;this.isManualAddingBlocked(t.voId,e).then(()=>this.loadPage(e))})}loadPage(t){this.groupService.getRichGroupByIdWithAttributesByNames(t,this.groupAttrNames).subscribe(t=>{this.group=t,this.synchEnabled=this.isSynchronized(),this.setAuthRights(),this.loading=!1})}isSynchronized(){return this.group.attributes.some(t=>"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString())}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(t){this.searchString=t,this.updateTable=!this.updateTable}onAddMember(){const t=(0,l.kZ)();t.width="1000px",t.data={voId:this.group.voId,group:this.group,entityId:this.group.id,theme:"group-theme",type:"group"},this.dialog.open(r.o,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onRemoveMembers(){const t=(0,l.kZ)();t.width="450px",t.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(a.X,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onInviteMember(){const t=(0,l.kZ)();t.width="650px",t.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(h.R,t)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}displaySelectedStatuses(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?`${this.statuses.value[0]} ${this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked(t,e){return new Promise(i=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(t=>{this.blockManualMemberAdding=null!==t.value,!0!==this.blockManualMemberAdding?(this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(e,"urn:perun:group:attribute-def:def:blockManualMemberAdding").subscribe(t=>{this.blockManualMemberAdding=null!==t.value,i()},t=>{"PrivilegeException"!==t.error.name&&this.notificator.showError(t),i()})):i()},t=>{"PrivilegeException"!==t.error.name&&this.notificator.showError(t),i()})})}changeVoStatuses(){this.selectedStatuses=this.statuses.value}changeGroupStatuses(){this.selectedGroupStatuses=this.groupStatuses.value}}return t.id="GroupMembersComponent",t.\u0275fac=function(e){return new(e||t)(p.Y36(c.ff),p.Y36(g.gz),p.Y36(u.dB),p.Y36(f.uw),p.Y36(s.x4),p.Y36(s.d6),p.Y36(c.H8),p.Y36(s.F5),p.Y36(s.V6))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:36,vars:41,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],[3,"matTooltip","matTooltipDisabled"],["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"],[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,"voId","groupId","pageSize","selection","displayedColumns","updateTable","searchString","selectedStatuses","selectedGroupStatuses","attrNames","page",4,"ngIf"],["alert_type","warn"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"group-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"voId","groupId","pageSize","selection","displayedColumns","updateTable","searchString","selectedStatuses","selectedGroupStatuses","attrNames","page"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.YNc(3,x,3,3,"app-alert",1),p.TgZ(4,"div",2),p.TgZ(5,"perun-web-apps-refresh-button",3),p.NdJ("click",function(){return e.updateTable=!e.updateTable}),p.qZA(),p.TgZ(6,"span",4),p.ALo(7,"translate"),p.TgZ(8,"div",5),p.ALo(9,"translate"),p.YNc(10,R,3,4,"button",6),p.qZA(),p.qZA(),p.TgZ(11,"span",4),p.ALo(12,"translate"),p.YNc(13,I,3,4,"button",6),p.qZA(),p.TgZ(14,"span",4),p.ALo(15,"translate"),p.YNc(16,O,3,4,"button",7),p.qZA(),p.TgZ(17,"mat-form-field",8),p.TgZ(18,"mat-label"),p._uU(19),p.ALo(20,"translate"),p.qZA(),p.TgZ(21,"mat-select",9),p.NdJ("closed",function(){return e.changeVoStatuses()}),p.TgZ(22,"mat-select-trigger"),p._uU(23),p.qZA(),p.YNc(24,P,2,2,"mat-option",10),p.qZA(),p.qZA(),p.TgZ(25,"mat-form-field",8),p.TgZ(26,"mat-label"),p._uU(27),p.ALo(28,"translate"),p.qZA(),p.TgZ(29,"mat-select",9),p.NdJ("closed",function(){return e.changeGroupStatuses()}),p.TgZ(30,"mat-select-trigger"),p._uU(31),p.qZA(),p.YNc(32,D,2,2,"mat-option",10),p.qZA(),p.qZA(),p.TgZ(33,"perun-web-apps-debounce-filter",11),p.NdJ("filter",function(t){return e.onSearchByString(t)}),p.qZA(),p.qZA(),p.YNc(34,M,1,0,"mat-spinner",12),p.YNc(35,L,1,10,"perun-web-apps-members-dynamic-list",13)),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,27,"GROUP_DETAIL.MEMBERS.TITLE")),p.xp6(2),p.Q6J("ngIf",e.synchEnabled),p.xp6(3),p.s9C("matTooltip",p.lcZ(7,29,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),p.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),p.xp6(2),p.s9C("matTooltip",p.lcZ(9,31,"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),p.Q6J("matTooltipDisabled",!e.blockManualMemberAdding),p.xp6(2),p.Q6J("ngIf",e.addAuth),p.xp6(1),p.s9C("matTooltip",p.lcZ(12,33,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),p.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),p.xp6(2),p.Q6J("ngIf",e.inviteAuth),p.xp6(1),p.s9C("matTooltip",p.lcZ(15,35,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),p.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),p.xp6(2),p.Q6J("ngIf",e.removeAuth),p.xp6(3),p.Oqu(p.lcZ(20,37,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),p.xp6(2),p.Q6J("formControl",e.statuses),p.xp6(2),p.hij(" ",e.displaySelectedStatuses()," "),p.xp6(1),p.Q6J("ngForOf",e.statusList),p.xp6(3),p.Oqu(p.lcZ(28,39,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),p.xp6(2),p.Q6J("formControl",e.groupStatuses),p.xp6(2),p.hij(" ",e.displaySelectedGroupStatuses()," "),p.xp6(1),p.Q6J("ngForOf",e.groupStatusList),p.xp6(1),p.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[m.O5,b.t,w.gM,_.KE,_.hX,y.gD,d.JJ,d.oH,y.$L,m.sg,A.P,v.w,T.lW,C.ey,S.$g,E.m],pipes:[k.X$],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}"]}),t})()},7433:function(t,e,i){"use strict";i.d(e,{q:function(){return B}});var n=i(4230),s=i(33642),o=i(60611),r=i(84608),a=i(88426),c=(i(41939),i(31572)),u=i(48160),l=i(19139),h=i(61511),d=i(67806),p=i(88884),g=i(29236),f=i(36922),m=i(16073),b=i(15980);const w=["list"];function _(t,e){1&t&&c._UZ(0,"mat-spinner",4)}const y=function(){return["select","id","name","facility","tags","description"]};function A(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"div",5),c._UZ(2,"perun-web-apps-resources-list",6,7),c.qZA(),c.TgZ(4,"div",8),c.TgZ(5,"mat-checkbox",9),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw().async=e}),c.ALo(6,"translate"),c._uU(7),c.ALo(8,"translate"),c.qZA(),c.TgZ(9,"button",10),c.NdJ("click",function(){return c.CHM(t),c.oxw().onCancel()}),c._uU(10),c.ALo(11,"translate"),c.qZA(),c.TgZ(12,"span",11),c.ALo(13,"translate"),c.TgZ(14,"button",12),c.NdJ("click",function(){return c.CHM(t),c.oxw().onSubmit()}),c._uU(15),c.ALo(16,"translate"),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.MAs(3),e=c.oxw();c.xp6(2),c.Q6J("resources",e.resources)("disableRouting",!0)("selection",e.selection)("groupToResource",e.data.group)("displayedColumns",c.DdM(24,y))("filterValue",e.filterValue),c.xp6(3),c.s9C("matTooltip",c.lcZ(6,14,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT_DESCRIPTION")),c.Q6J("ngModel",e.async),c.xp6(2),c.hij(" ",c.lcZ(8,16,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),c.xp6(3),c.hij(" ",c.lcZ(11,18,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),c.xp6(2),c.s9C("matTooltip",c.lcZ(13,20,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),c.Q6J("matTooltipDisabled",void 0===t||t.addAuth),c.xp6(2),c.Q6J("disabled",0===e.selection.selected.length||e.loading||void 0!==t&&!t.addAuth),c.xp6(1),c.hij(" ",c.lcZ(16,22,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}let v=(()=>{class t{constructor(t,e,i,s,o){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=s,this.resourcesManager=o,this.filterValue="",this.resources=[],this.selection=new n.Ov(!0,[]),this.theme="",this.async=!0}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.resourcesManager.getRichResources(this.data.voId).subscribe(t=>{this.resources=t.filter(t=>!this.data.unwantedResources.includes(t.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const t=this.selection.selected.map(t=>t.id);this.resourcesManager.assignGroupToResources(this.data.group.id,t,this.async).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(r.so),c.Y36(r.WI),c.Y36(a.V6),c.Y36(u.sK),c.Y36(s.xk))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(t,e){if(1&t&&c.Gf(w,5),2&t){let t;c.iGM(t=c.CRH())&&(e.list=t.first)}},decls:8,vars:11,consts:[["mat-dialog-title",""],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[3,"resources","disableRouting","selection","groupToResource","displayedColumns","filterValue"],["list",""],["mat-dialog-actions",""],[3,"matTooltip","ngModel","ngModelChange"],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"perun-web-apps-immediate-filter",1),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.ALo(5,"translate"),c.qZA(),c.YNc(6,_,1,0,"mat-spinner",2),c.YNc(7,A,17,25,"div",3),c.qZA()),2&t&&(c.Tol(e.theme),c.xp6(2),c.Oqu(c.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),c.xp6(2),c.Q6J("placeholder",c.lcZ(5,9,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[r.uh,l.L,h.O5,d.$g,r.xY,p.C,r.H8,g.oG,f.gM,m.JJ,m.On,b.lW],pipes:[u.X$],styles:[""]}),t})();var T=i(67033);function C(t,e){1&t&&c._UZ(0,"mat-spinner",4)}function S(t,e){1&t&&c._UZ(0,"th",13)}function E(t,e){if(1&t&&(c.TgZ(0,"td",14),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.hij(" ",t.name," ")}}function k(t,e){1&t&&c._UZ(0,"tr",15)}function x(t,e){1&t&&c._UZ(0,"tr",16)}function R(t,e){if(1&t&&(c.TgZ(0,"div",5),c.TgZ(1,"p"),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",6),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"table",7),c.ynx(8,8),c.YNc(9,S,1,0,"th",9),c.YNc(10,E,2,1,"td",10),c.BQk(),c.YNc(11,k,1,0,"tr",11),c.YNc(12,x,1,0,"tr",12),c.qZA(),c.qZA()),2&t){const t=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),c.xp6(3),c.hij(" ",c.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),c.xp6(2),c.Q6J("dataSource",t.dataSource),c.xp6(4),c.Q6J("matHeaderRowDef",t.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",t.displayedColumns)}}function I(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",17),c.TgZ(1,"button",18),c.NdJ("click",function(){return c.CHM(t),c.oxw().onCancel()}),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"button",19),c.NdJ("click",function(){return c.CHM(t),c.oxw().onSubmit()}),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.qZA()}if(2&t){const t=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),c.xp6(2),c.Q6J("disabled",t.loading),c.xp6(1),c.hij(" ",c.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let O=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.resourcesManager=s,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new T.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const t=this.data.resources.map(t=>t.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,t).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(r.so),c.Y36(r.WI),c.Y36(a.V6),c.Y36(u.sK),c.Y36(s.xk))},t.\u0275cmp=c.Xpm({type:t,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"],["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(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,C,1,0,"mat-spinner",1),c.YNc(5,R,13,9,"div",2),c.YNc(6,I,7,7,"div",3),c.qZA()),2&t&&(c.Tol(e.data.theme),c.xp6(2),c.Oqu(c.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[r.uh,h.O5,d.$g,r.xY,T.BZ,T.w1,T.fO,T.Dz,T.as,T.nj,T.ge,T.ev,T.XQ,T.Gk,r.H8,b.lW],pipes:[u.X$],styles:[""]}),t})();var P=i(84140),D=i(57629),M=i(59403);const L=["list"];function N(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",function(){return c.CHM(t),c.oxw().addResource()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function z(t,e){1&t&&c._UZ(0,"mat-spinner",9)}const F=function(){return["select","id","name","status","facility","tags","description"]};function Z(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"perun-web-apps-resources-list",10,11),c.NdJ("page",function(e){return c.CHM(t),c.oxw().pageChanged(e)})("refreshTable",function(){return c.CHM(t),c.oxw().refreshTable()}),c.qZA()}if(2&t){const t=c.oxw();c.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("resources",t.resources)("routingVo",!0)("disableRouting",!t.routingAuth)("selection",t.selected)("groupToResource",t.group)("groupId",t.groupId)("displayedColumns",c.DdM(9,F))}}let B=(()=>{class t{constructor(t,e,i,s,r,a){this.resourcesManager=t,this.groupService=e,this.tableConfigService=i,this.route=s,this.dialog=r,this.guiAuthResolver=a,this.resources=null,this.selected=new n.Ov(!0,[]),this.filterValue="",this.tableId=o.v1,this.addAuth=!1}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.groupId=t.groupId,this.voId=t.voId,this.groupService.getGroupById(this.groupId).subscribe(t=>{this.group=t,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(t=>{this.resources=t.map(t=>{const e=t.enrichedResource.resource;return e.facility=t.facility,e.status=t.status,e.resourceTags=t.resourceTags,e.failureCause=t.failureCause,e}),this.selected.clear(),this.setAuthorization(),this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}addResource(){const t=(0,P.kZ)();t.width="1000px",t.data={theme:"group-theme",group:this.group,voId:this.voId,unwantedResources:this.resources.map(t=>t.id)},this.dialog.open(v,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeResource(){const t=(0,P.kZ)();t.width="450px",t.data={theme:"group-theme",resources:this.selected.selected,groupId:this.groupId},this.dialog.open(O,t).afterClosed().subscribe(t=>{t&&(this.selected.clear(),this.refreshTable())})}}return t.id="GroupResourcesComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(s.xk),c.Y36(s.ff),c.Y36(o.dB),c.Y36(D.gz),c.Y36(r.uw),c.Y36(a.x4))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-group-resources"]],viewQuery:function(t,e){if(1&t&&c.Gf(L,5),2&t){let t;c.iGM(t=c.CRH())&&(e.list=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","groupToResource","groupId","displayedColumns","page","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","groupToResource","groupId","displayedColumns","page","refreshTable"],["list",""]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.refreshTable()}),c.qZA(),c.YNc(5,N,3,3,"button",2),c.TgZ(6,"span",3),c.ALo(7,"translate"),c.TgZ(8,"button",4),c.NdJ("click",function(){return e.removeResource()}),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.qZA(),c.TgZ(11,"perun-web-apps-immediate-filter",5),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.YNc(12,z,1,0,"mat-spinner",6),c.YNc(13,Z,2,10,"perun-web-apps-resources-list",7),c.qZA()),2&t&&(c.xp6(2),c.Oqu(c.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),c.xp6(3),c.Q6J("ngIf",e.addAuth),c.xp6(1),c.s9C("matTooltip",c.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),c.Q6J("matTooltipDisabled",0===e.selected.selected.length||void 0!==e.list&&e.list.removeAuth),c.xp6(2),c.Q6J("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),c.xp6(1),c.hij(" ",c.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),c.xp6(2),c.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",e.resources&&!e.loading))},directives:[M.t,h.O5,f.gM,b.lW,l.L,d.$g,p.C],pipes:[u.X$],styles:[""]}),t})()},65423:function(t,e,i){"use strict";i.d(e,{Z:function(){return Z}});var n=i(88426),s=i(92438),o=i(75954),r=i(68570),a=i(24555),c=i(33642),u=i(84140),l=i(31572),h=i(57629),d=i(84608),p=i(48160),g=i(61511),f=i(67806),m=i(43691),b=i(36922),w=i(27679),_=i(59403),y=i(15980),A=i(92846),v=i(27521),T=i(16073),C=i(39571);const S=["autoRegToggle"];function E(t,e){1&t&&l._UZ(0,"mat-spinner",3)}function k(t,e){if(1&t&&(l.TgZ(0,"span"),l._uU(1," , "),l.TgZ(2,"mat-icon",21),l._uU(3,"nat"),l.qZA(),l._uU(4),l.ALo(5,"translate"),l.ALo(6,"translate"),l.qZA()),2&t){const t=l.oxw(2);l.xp6(4),l.hij(" ",t.applicationForm.automaticApprovalEmbedded?l.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function x(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"mat-slide-toggle",22,23),l.NdJ("change",function(){return l.CHM(t),l.oxw(2).updateAutoRegistration()}),l._uU(3),l.ALo(4,"translate"),l.qZA(),l.qZA()}if(2&t){const t=l.oxw(2);l.xp6(1),l.Q6J("disabled",!t.changeAutoRegistration)("ngModel",t.autoRegistrationEnabled),l.xp6(2),l.hij(" ",l.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function R(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",24),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).settings()}),l.TgZ(1,"i",18),l._uU(2,"edit"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function I(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",25),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).add()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function O(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",26),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).save()}),l.TgZ(1,"i",18),l._uU(2,"save"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}if(2&t){const t=l.oxw(2);l.Q6J("disabled",!t.itemsChanged),l.xp6(3),l.hij(" ",l.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function P(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",27),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).copy()}),l.TgZ(1,"i",18),l._uU(2,"file_copy"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function D(t,e){1&t&&(l.TgZ(0,"app-alert",28),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const M=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},L=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function N(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"div",4),l.TgZ(2,"div",5),l.TgZ(3,"div",6),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.TgZ(6,"div"),l.TgZ(7,"span",6),l._uU(8),l.ALo(9,"translate"),l.qZA(),l._uU(10,": "),l.TgZ(11,"mat-icon",7),l._uU(12,"arrow_right_alt"),l.qZA(),l._uU(13),l.ALo(14,"translate"),l.ALo(15,"translate"),l.TgZ(16,"mat-icon",8),l._uU(17,"restore"),l.qZA(),l._uU(18),l.ALo(19,"translate"),l.ALo(20,"translate"),l.YNc(21,k,7,5,"span",2),l.qZA(),l.YNc(22,x,5,5,"div",2),l.qZA(),l.TgZ(23,"div",9),l.YNc(24,R,5,3,"button",10),l.qZA(),l.qZA(),l._UZ(25,"mat-divider",11),l.TgZ(26,"div",12),l.TgZ(27,"perun-web-apps-refresh-button",13),l.NdJ("refresh",function(){return l.CHM(t),l.oxw().updateFormItems()}),l.qZA(),l.YNc(28,I,3,3,"button",14),l.YNc(29,O,5,4,"button",15),l.YNc(30,P,5,3,"button",16),l.TgZ(31,"button",17),l.NdJ("click",function(){return l.CHM(t),l.oxw().preview()}),l.TgZ(32,"i",18),l._uU(33,"search"),l.qZA(),l._uU(34),l.ALo(35,"translate"),l.qZA(),l.qZA(),l.YNc(36,D,3,3,"app-alert",19),l.TgZ(37,"app-application-form-list",20),l.NdJ("applicationFormItemsChange",function(){return l.CHM(t),l.oxw().changeItems()}),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(2),l.Q6J("ngClass",t.autoRegistrationEnabled?"w-75":"w-50"),l.xp6(2),l.AsE("",l.lcZ(5,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",t.applicationForm.moduleClassName," "),l.xp6(4),l.Oqu(l.lcZ(9,21,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),l.xp6(5),l.hij(" ",t.applicationForm.automaticApproval?l.lcZ(14,23,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(15,25,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),l.xp6(5),l.hij(" ",t.applicationForm.automaticApprovalExtension?l.lcZ(19,27,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(20,29,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),l.xp6(3),l.Q6J("ngIf",t.autoRegistrationEnabled),l.xp6(1),l.Q6J("ngIf",t.voHasEmbeddedGroupApplication),l.xp6(2),l.Q6J("ngIf",t.editAuth),l.xp6(4),l.Q6J("ngIf",t.editAuth),l.xp6(1),l.Q6J("ngIf",t.editAuth),l.xp6(1),l.Q6J("ngIf",t.editAuth),l.xp6(4),l.hij(" ",l.lcZ(35,31,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),l.xp6(2),l.Q6J("ngIf",t.editAuth),l.xp6(1),l.Q6J("loading",t.loading)("applicationForm",t.applicationForm)("applicationFormItems",t.applicationFormItems)("theme","group-theme")("displayedColumns",t.editAuth?l.DdM(33,M):l.DdM(34,L))}}function z(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",17),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).createEmptyApplicationForm()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function F(t,e){if(1&t&&(l.TgZ(0,"div"),l.TgZ(1,"app-alert",29),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,z,3,3,"button",30),l.qZA()),2&t){const t=l.oxw();l.xp6(2),l.Oqu(l.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),l.xp6(2),l.Q6J("ngIf",t.createEmptyForm)}}let Z=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u){this.registrarManager=t,this.route=e,this.dialog=i,this.notificator=n,this.translate=s,this.apiRequest=o,this.router=r,this.guiAuthResolver=a,this.groupsManager=c,this.attributesManager=u,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.groupId=t.groupId,this.groupsManager.getGroupById(this.groupId).subscribe(t=>{this.group=t,this.apiRequest.dontHandleErrorForNext(),this.registrarManager.getGroupApplicationForm(this.groupId).subscribe(t=>{this.applicationForm=t,this.registrarManager.getFormItemsForGroup(this.groupId).subscribe(t=>{this.applicationFormItems=t,this.attributesManager.getGroupAttributeByName(this.groupId,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(t=>{this.voHasEmbeddedGroupApplication=null!==t.value,this.autoRegistrationEnabled=!!t.value,this.setAuth(),this.loading=!1})},()=>this.loading=!1)},t=>{"FormNotExistsException"===t.error.name?(this.noApplicationForm=!0,this.setAuth(),this.loading=!1):this.notificator.showRPCError(t.error)})},()=>this.loading=!1)})}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 t=(0,u.kZ)();t.width="500px",t.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(s.J,t).afterClosed().subscribe(e=>{e&&(this.applicationFormItems=Object.assign([],e[0]),t=(0,u.kZ)(),t.width="600px",t.height="600px",t.data={voId:this.voId,groupId:this.groupId,applicationFormItem:e[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(o._,t),this.itemsChanged=!0)})}copy(){const t=(0,u.kZ)();t.width="500px",t.data={voId:this.voId,groupId:this.groupId,theme:"group-theme"},this.dialog.open(r.W,t).afterClosed().subscribe(t=>{t&&this.updateFormItems()})}settings(){const t=(0,u.kZ)();t.width="400px",t.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(a.E,t).afterClosed().subscribe(t=>{t&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.applicationForm=t)})}preview(){this.router.navigate(["/organizations",this.voId,"groups",this.groupId,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.registrarManager.getFormItemsForGroup(this.groupId).subscribe(t=>{this.applicationFormItems=t,this.itemsChanged=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.groupId).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let t=0;for(const e of this.applicationFormItems)e.ordnum=t,e.forDelete||t++;this.registrarManager.updateFormItemsForGroup({group:this.groupId,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),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(t=>{this.notificator.showSuccess(t)}),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(t=>{this.notificator.showSuccess(t)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return t.id="GroupSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(c.tk),l.Y36(h.gz),l.Y36(d.uw),l.Y36(n.V6),l.Y36(p.sK),l.Y36(n.F5),l.Y36(h.F0),l.Y36(n.x4),l.Y36(c.ff),l.Y36(c.H8))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-group-settings-application-form"]],viewQuery:function(t,e){if(1&t&&l.Gf(S,5),2&t){let t;l.iGM(t=l.CRH())&&(e.autoRegToggle=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[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"],["mat-stroked-button","","class","ml-auto",3,"click",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","applicationFormItemsChange"],["matTooltip","Embedded",1,"align-text-bottom"],["color","primary",3,"disabled","ngModel","change"],["autoRegToggle",""],["mat-stroked-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"click"],["alert_type","info"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.YNc(3,E,1,0,"mat-spinner",1),l.YNc(4,N,38,35,"div",2),l.YNc(5,F,5,4,"div",2)),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading&&!e.noApplicationForm),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.noApplicationForm))},directives:[g.O5,f.$g,g.mk,m.Hw,b.gM,w.d,_.t,y.lW,A.b,v.Rr,T.JJ,T.On,C.w],pipes:[p.X$],styles:[""]}),t})()},82044:function(t,e,i){"use strict";i.d(e,{u:function(){return F}});var n=i(88419),s=i(4230),o=i(43491),r=i(84140),a=i(33642),c=i(67004),u=i(60611),l=i(57820),h=i(88426),d=(i(41939),i(31572)),p=i(84608),g=i(57629),f=i(59403),m=i(61511),b=i(91058),w=i(27521),_=i(16073),y=i(15980),A=i(36922),v=i(67806),T=i(11441),C=i(78364),S=i(48160);const E=["tree"],k=["list"],x=["toggle"];function R(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",9),d.NdJ("click",function(){return d.CHM(t),d.oxw().onCreateGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function I(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",12),d.NdJ("click",function(){return d.CHM(t),d.oxw(2).deleteGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("disabled",0===t.selected.selected.length||void 0!==t.tree&&!t.tree.removeAuth||void 0!==t.list&&!t.list.removeAuth),d.xp6(1),d.hij(" ",d.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function O(t,e){if(1&t&&(d.TgZ(0,"span",10),d.ALo(1,"translate"),d.YNc(2,I,3,4,"button",11),d.qZA()),2&t){const t=d.oxw();d.s9C("matTooltip",d.lcZ(1,3,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),d.Q6J("matTooltipDisabled",void 0===t.tree&&void 0===t.list||void 0!==t.tree&&t.tree.removeAuth||void 0!==t.list&&t.list.removeAuth),d.xp6(2),d.Q6J("ngIf",!t.loading&&t.deleteAuth)}}function P(t,e){1&t&&d._UZ(0,"mat-spinner",13)}function D(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"perun-web-apps-groups-tree",17,18),d.NdJ("moveGroup",function(e){return d.CHM(t),d.oxw(2).onMoveGroup(e)})("refreshTable",function(){return d.CHM(t),d.oxw(2).refreshTable()}),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("groups",t.groups)("expandAll",t.filtering)("hideCheckbox",!t.deleteAuth)("selection",t.selected)("filterValue",t.filterValue)("disableRouting",!t.routeAuth)}}const M=function(){return["select","id","name","description","menu"]},L=function(){return["id","name","description","menu"]};function N(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",19,20),d.NdJ("page",function(e){return d.CHM(t),d.oxw(2).pageChanged(e)})("moveGroup",function(e){return d.CHM(t),d.oxw(2).onMoveGroup(e)})("refreshTable",function(){return d.CHM(t),d.oxw(2).refreshTable()}),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("pageSize",t.pageSize)("groups",t.groups)("selection",t.selected)("authType","group-subgroups")("disableMembers",!0)("disableRouting",!t.routeAuth)("displayedColumns",t.deleteAuth?d.DdM(8,M):d.DdM(9,L))("filter",t.filterValue)}}function z(t,e){if(1&t&&(d.TgZ(0,"div",14),d.YNc(1,D,2,6,"perun-web-apps-groups-tree",15),d.YNc(2,N,2,10,"perun-web-apps-groups-list",16),d.qZA()),2&t){const t=d.oxw();d.xp6(1),d.Q6J("ngIf",!t.showGroupList),d.xp6(1),d.Q6J("ngIf",t.showGroupList)}}let F=(()=>{class t{constructor(t,e,i,n,o,r){this.dialog=t,this.groupService=e,this.tableConfigService=i,this.route=n,this.guiAuthResolver=o,this.initAuthService=r,this.groups=[],this.selected=new s.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=u.bf,this.filterValue=""}onCreateGroup(){const t=(0,r.kZ)();t.width="450px",t.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(n.y,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.refreshTable())})}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),"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.route.parent.params.subscribe(t=>{this.groupService.getGroupById(t.groupId).subscribe(t=>{this.group=t,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 t=(0,r.kZ)();t.width="450px",t.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(o.P,t).afterClosed().subscribe(t=>{t&&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(t=>{this.groups=t,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t,this.filtering=""!==t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}onMoveGroup(t){const e=(0,r.kZ)();e.width="550px",e.data={group:t,theme:"group-theme"},this.dialog.open(l.c,e).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.id="GroupSubgroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Y36(p.uw),d.Y36(a.ff),d.Y36(u.dB),d.Y36(g.gz),d.Y36(h.x4),d.Y36(h.v0))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-group-subgroups"]],viewQuery:function(t,e){if(1&t&&(d.Gf(E,5),d.Gf(k,5),d.Gf(x,7)),2&t){let t;d.iGM(t=d.CRH())&&(e.tree=t.first),d.iGM(t=d.CRH())&&(e.list=t.first),d.iGM(t=d.CRH())&&(e.toggle=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("router-component",e.true)},decls:17,vars:16,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled",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","mat-flat-button","",1,"mr-2",3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable",4,"ngIf"],[3,"pageSize","groups","selection","authType","disableMembers","disableRouting","displayedColumns","filter","page","moveGroup","refreshTable",4,"ngIf"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable"],["tree",""],[3,"pageSize","groups","selection","authType","disableMembers","disableRouting","displayedColumns","filter","page","moveGroup","refreshTable"],["list",""]],template:function(t,e){if(1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return e.refreshTable()}),d.qZA(),d.YNc(5,R,3,3,"button",2),d.YNc(6,O,3,5,"span",3),d.TgZ(7,"perun-web-apps-debounce-filter",4),d.NdJ("filter",function(t){return e.applyFilter(t)}),d.qZA(),d.TgZ(8,"mat-slide-toggle",5,6),d.NdJ("change",function(){return e.selected.clear()})("ngModelChange",function(t){return e.showGroupList=t}),d._uU(10),d.ALo(11,"translate"),d.qZA(),d.TgZ(12,"label"),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.YNc(15,P,1,0,"mat-spinner",7),d.YNc(16,z,3,2,"div",8),d.qZA()),2&t){const t=d.MAs(9);d.xp6(2),d.Oqu(d.lcZ(3,10,"GROUP_DETAIL.SUBGROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",!e.loading&&e.createAuth),d.xp6(1),d.Q6J("ngIf",!e.loading),d.xp6(1),d.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),d.xp6(1),d.Q6J("ngModel",e.showGroupList),d.xp6(2),d.Oqu(d.lcZ(11,12,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),d.xp6(2),d.uIk("for",t.inputId),d.xp6(1),d.Oqu(d.lcZ(14,14,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),d.xp6(2),d.Q6J("ngIf",e.loading),d.xp6(1),d.Q6J("ngIf",!e.loading)}},directives:[f.t,m.O5,b.P,w.Rr,_.JJ,_.On,y.lW,A.gM,v.$g,T.I,C.W],pipes:[S.X$],styles:[""]}),t})()},81835:function(t,e,i){"use strict";i.d(e,{j:function(){return H}});var n=i(33642),s=i(60611),o=i(4230),r=i(84140),a=i(84608),c=i(88426),u=i(67004),l=i(31572),h=i(48160),d=i(61511),p=i(67806),g=i(19139),f=i(78364),m=i(15980);function b(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function w(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",7),l.NdJ("filter",function(e){return l.CHM(t),l.oxw().applyFilter(e)}),l.qZA()}2&t&&l.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}const _=function(){return["select","id","name","description"]};function y(t,e){if(1&t&&l._UZ(0,"perun-web-apps-groups-list",8),2&t){const t=l.oxw();l.Q6J("groups",t.groups)("selection",t.selection)("displayedColumns",l.DdM(8,_))("filter",t.filterValue)("groupsToDisable",t.membersGroups)("disableGroups",!0)("disableRouting",!0)("disableMembers",!0)}}function A(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",9),l.TgZ(1,"button",10),l.NdJ("click",function(){return l.CHM(t),l.oxw().onCancel()}),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"button",11),l.NdJ("click",function(){return l.CHM(t),l.oxw().onAdd()}),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),l.xp6(2),l.Q6J("disabled",0===t.selection.selected.length),l.xp6(1),l.hij(" ",l.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let v=(()=>{class t{constructor(t,e,i,n,s,r,a){this.dialogRef=t,this.data=e,this.groupManager=i,this.memberManager=n,this.notificator=s,this.translate=r,this.authResolver=a,this.loading=!1,this.groups=[],this.selection=new o.Ov(!0,[]),this.attrNames=[u.r.GROUP_SYNC_ENABLED,u.r.GROUP_LAST_SYNC_STATE,u.r.GROUP_LAST_SYNC_TIMESTAMP,u.r.GROUP_STRUCTURE_SYNC_ENABLED,u.r.GROUP_LAST_STRUCTURE_SYNC_STATE,u.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(t=>{this.member=t,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(t=>{this.groups=t.filter(t=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[t])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const t=this.selection.selected.map(t=>t.id);this.loading=!0,this.groupManager.addMember(t,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(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(a.so),l.Y36(a.WI),l.Y36(n.ff),l.Y36(n.uq),l.Y36(c.V6),l.Y36(h.sK),l.Y36(c.x4))},t.\u0275cmp=l.Xpm({type:t,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,"groups","selection","displayedColumns","filter","groupsToDisable","disableGroups","disableRouting","disableMembers",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"groups","selection","displayedColumns","filter","groupsToDisable","disableGroups","disableRouting","disableMembers"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,b,1,0,"mat-spinner",1),l.TgZ(5,"div",2),l.YNc(6,w,1,1,"perun-web-apps-immediate-filter",3),l.YNc(7,y,1,9,"perun-web-apps-groups-list",4),l.qZA(),l.YNc(8,A,7,7,"div",5),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[a.uh,d.O5,a.xY,p.$g,g.L,f.W,a.H8,m.lW],pipes:[h.X$],styles:[""]}),t})();var T=i(67033);function C(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function S(t,e){1&t&&l._UZ(0,"th",15)}function E(t,e){if(1&t&&(l.TgZ(0,"td",16),l._uU(1),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.hij(" ",t.name," ")}}function k(t,e){1&t&&l._UZ(0,"tr",17)}function x(t,e){1&t&&l._UZ(0,"tr",18)}function R(t,e){if(1&t&&(l.TgZ(0,"div",7),l.TgZ(1,"p"),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",8),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.TgZ(7,"table",9),l.ynx(8,10),l.YNc(9,S,1,0,"th",11),l.YNc(10,E,2,1,"td",12),l.BQk(),l.YNc(11,k,1,0,"tr",13),l.YNc(12,x,1,0,"tr",14),l.qZA(),l.qZA()),2&t){const t=l.oxw();l.xp6(2),l.Oqu(l.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),l.xp6(3),l.hij(" ",l.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),l.xp6(2),l.Q6J("dataSource",t.dataSource),l.xp6(4),l.Q6J("matHeaderRowDef",t.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",t.displayedColumns)}}let I=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.groupManager=i,this.notificator=n,this.translate=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new T.by(this.data.groups)}onRemove(){this.loading=!0;const t=this.dataSource.data.map(t=>t.id);this.groupManager.removeMember(t,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 t.\u0275fac=function(e){return new(e||t)(l.Y36(a.so),l.Y36(a.WI),l.Y36(n.ff),l.Y36(c.V6),l.Y36(h.sK))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-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,"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"],["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(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,C,1,0,"mat-spinner",1),l.YNc(5,R,13,9,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onRemove()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.hij("",l.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),l.xp6(2),l.Q6J("disabled",e.loading),l.xp6(1),l.hij("",l.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},directives:[a.uh,d.O5,a.H8,m.lW,p.$g,a.xY,T.BZ,T.w1,T.fO,T.Dz,T.as,T.nj,T.ge,T.ev,T.XQ,T.Gk],pipes:[h.X$],styles:[""]}),t})();i(41939);var O=i(57629),P=i(59403),D=i(36922);const M=["list"];function L(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-refresh-button",7),l.NdJ("refresh",function(){return l.CHM(t),l.oxw().refreshTable()}),l.qZA()}}function N(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",8),l.NdJ("click",function(){return l.CHM(t),l.oxw().addGroup()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function z(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).removeGroup()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){const t=l.oxw(2);l.Q6J("disabled",0===t.selection.selected.length||void 0!==t.list&&!t.list.removeAuth),l.xp6(1),l.hij(" ",l.lcZ(2,2,"MEMBER_DETAIL.GROUPS.REMOVE")," ")}}function F(t,e){if(1&t&&(l.TgZ(0,"span",9),l.ALo(1,"translate"),l.YNc(2,z,3,4,"button",10),l.qZA()),2&t){const t=l.oxw();l.s9C("matTooltip",l.lcZ(1,3,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),l.Q6J("matTooltipDisabled",void 0===t.list||void 0!==t.list&&t.list.removeAuth),l.xp6(2),l.Q6J("ngIf",!t.loading)}}function Z(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",12),l.NdJ("filter",function(e){return l.CHM(t),l.oxw().applyFilter(e)}),l.qZA()}2&t&&l.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH")}function B(t,e){1&t&&l._UZ(0,"mat-spinner",13)}const q=function(){return["select","id","vo","name","description","expiration"]};function U(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-groups-list",14,15),l.NdJ("page",function(e){return l.CHM(t),l.oxw().pageChanged(e)})("refreshTable",function(){return l.CHM(t),l.oxw().refreshTable()}),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("pageSize",t.pageSize)("groups",t.groups)("displayedColumns",l.DdM(9,q))("selection",t.selection)("filter",t.filterValue)("memberId",t.memberId)("memberGroupStatus",t.member.groupStatus)("disableRouting",!t.routeAuth)("authType","member-groups")}}let H=(()=>{class t{constructor(t,e,i,n,r,a){this.groupsService=t,this.tableConfigService=e,this.route=i,this.dialog=n,this.authResolver=r,this.memberService=a,this.filterValue="",this.tableId=s.W1,this.selection=new o.Ov(!0,[])}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.memberId=t.memberId,this.memberService.getMemberById(this.memberId).subscribe(t=>{this.member=t,this.groupsService.getAllGroups(this.member.voId).subscribe(t=>{this.allGroups=t,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,["urn:perun:member_group:attribute-def:def:groupMembershipExpiration"]).subscribe(t=>{this.selection.clear(),this.filterValue="",this.groups=t,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const t={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((t,e)=>t||this.authResolver.isAuthorized("addMember_Group_Member_policy",[e]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[t,this.groups[0]]))}addGroup(){const t=(0,r.kZ)();t.width="850px",t.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(t=>t.id)),theme:"member-theme"},this.dialog.open(v,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeGroup(){const t=(0,r.kZ)();t.width="650px",t.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(I,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="MemberGroupsComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(n.ff),l.Y36(s.dB),l.Y36(O.gz),l.Y36(a.uw),l.Y36(c.x4),l.Y36(n.uq))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-member-groups"]],viewQuery:function(t,e){if(1&t&&l.Gf(M,5),2&t){let t;l.iGM(t=l.CRH())&&(e.list=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:9,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"pageSize","groups","displayedColumns","selection","filter","memberId","memberGroupStatus","disableRouting","authType","page","refreshTable",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[3,"pageSize","groups","displayedColumns","selection","filter","memberId","memberGroupStatus","disableRouting","authType","page","refreshTable"],["list",""]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.YNc(3,L,1,0,"perun-web-apps-refresh-button",1),l.YNc(4,N,3,3,"button",2),l.YNc(5,F,3,5,"span",3),l.YNc(6,Z,1,1,"perun-web-apps-immediate-filter",4),l.YNc(7,B,1,0,"mat-spinner",5),l.YNc(8,U,2,10,"perun-web-apps-groups-list",6)),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,7,"MEMBER_DETAIL.GROUPS.TITLE")),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.addAuth),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[d.O5,P.t,m.lW,D.gM,g.L,p.$g,f.W],pipes:[h.X$],styles:[""]}),t})()},40659:function(t,e,i){"use strict";i.d(e,{c:function(){return k}});var n=i(33642),s=i(60611),o=i(16073),r=i(61511),a=i(31572),c=i(57629),u=i(59403),l=i(66283),h=i(4786),d=i(71522),p=i(91058),g=i(51613),f=i(29236),m=i(15980),b=i(67806),w=i(21548),_=i(29851),y=i(48160);function A(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",16),a.NdJ("click",function(){return a.CHM(t),a.oxw().showAllDetails=!0}),a._uU(1),a.ALo(2,"translate"),a.qZA()}2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function v(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",16),a.NdJ("click",function(){return a.CHM(t),a.oxw().showAllDetails=!1}),a._uU(1),a.ALo(2,"translate"),a.qZA()}2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function T(t,e){1&t&&a._UZ(0,"mat-spinner",17)}function C(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"app-applications-list",20),a.NdJ("page",function(e){return a.CHM(t),a.oxw(2).pageChanged(e)}),a.qZA()}if(2&t){const t=a.oxw(2);a.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("applications",t.applications)("displayedColumns",t.displayedColumns)}}function S(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"app-perun-web-apps-application-list-details",21),a.NdJ("page",function(e){return a.CHM(t),a.oxw(2).detailPageChanged(e)}),a.qZA()}if(2&t){const t=a.oxw(2);a.Q6J("pageSize",t.detailPageSize)("filterValue",t.filterValue)("applications",t.applications)}}function E(t,e){if(1&t&&(a.TgZ(0,"div"),a.YNc(1,C,1,4,"app-applications-list",18),a.YNc(2,S,1,3,"app-perun-web-apps-application-list-details",19),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngIf",!t.showAllDetails),a.xp6(1),a.Q6J("ngIf",t.showAllDetails)}}let k=(()=>{class t{constructor(t,e,i,n){this.voService=t,this.registrarManager=e,this.tableConfigService=i,this.route=n,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","group","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=s.Jf,this.tableId=s.Hi,this.checked=!1}ngOnInit(){this.detailPageSize=this.tableConfigService.getTablePageSize(this.detailTableId),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.setData(["NEW","VERIFIED"])}),this.startDate=new o.NI((0,r.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new o.NI((0,r.p6)(new Date,"yyyy-MM-dd","en-GB"))})}setData(t){this.registrarManager.getApplicationsForVo(this.vo.id,t,(0,r.p6)(this.startDate.value,"yyyy-MM-dd","en-GB"),(0,r.p6)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(t=>{this.applications=!1===this.checked?t.filter(t=>null===t.group):t,this.loading=!1})}select(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}yearAgo(){const t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}showGroupApplications(t){this.checked=t.checked,this.select()}applyFilter(t){this.filterValue=t}detailPageChanged(t){this.detailPageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.detailTableId,t.pageSize)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="VoApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(a.Y36(n.YF),a.Y36(n.tk),a.Y36(s.dB),a.Y36(c.gz))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("router-component",e.true)},decls:38,vars:36,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,"startDate","endDate","datePicker"],["color","primary",3,"checked","change"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","applications","displayedColumns","page",4,"ngIf"],[3,"pageSize","filterValue","applications","page",4,"ngIf"],[3,"pageSize","filterValue","applications","displayedColumns","page"],[3,"pageSize","filterValue","applications","page"]],template:function(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div"),a.TgZ(4,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return e.select()}),a.qZA(),a.YNc(5,A,3,3,"button",2),a.YNc(6,v,3,3,"button",2),a.TgZ(7,"mat-form-field",3),a.TgZ(8,"mat-label"),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.TgZ(11,"mat-select",4),a.NdJ("selectionChange",function(){return e.select()})("valueChange",function(t){return e.state=t}),a.TgZ(12,"mat-option",5),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.TgZ(15,"mat-option",6),a._uU(16),a.ALo(17,"translate"),a.qZA(),a.TgZ(18,"mat-option",7),a._uU(19),a.ALo(20,"translate"),a.qZA(),a.TgZ(21,"mat-option",8),a._uU(22),a.ALo(23,"translate"),a.qZA(),a.TgZ(24,"mat-option",9),a._uU(25),a.ALo(26,"translate"),a.qZA(),a.TgZ(27,"mat-option",10),a._uU(28),a.ALo(29,"translate"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(30,"perun-web-apps-debounce-filter",11),a.NdJ("filter",function(t){return e.applyFilter(t)}),a.qZA(),a.TgZ(31,"perun-web-apps-date-range",12),a.NdJ("datePicker",function(){return e.select()}),a.qZA(),a.TgZ(32,"div"),a.TgZ(33,"mat-checkbox",13),a.NdJ("change",function(t){return e.showGroupApplications(t)}),a._uU(34),a.ALo(35,"translate"),a.qZA(),a.qZA(),a.qZA(),a.YNc(36,T,1,0,"mat-spinner",14),a.YNc(37,E,3,2,"div",15)),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,18,"VO_DETAIL.APPLICATION.TITLE")),a.xp6(4),a.Q6J("ngIf",!e.showAllDetails),a.xp6(1),a.Q6J("ngIf",e.showAllDetails),a.xp6(3),a.Oqu(a.lcZ(10,20,"VO_DETAIL.APPLICATION.TABLE_STATE")),a.xp6(2),a.Q6J("value",e.state),a.xp6(2),a.Oqu(a.lcZ(14,22,"VO_DETAIL.APPLICATION.SELECTION_ALL")),a.xp6(3),a.Oqu(a.lcZ(17,24,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),a.xp6(3),a.Oqu(a.lcZ(20,26,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),a.xp6(3),a.Oqu(a.lcZ(23,28,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),a.xp6(3),a.Oqu(a.lcZ(26,30,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),a.xp6(3),a.Oqu(a.lcZ(29,32,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),a.xp6(2),a.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),a.xp6(1),a.Q6J("startDate",e.startDate)("endDate",e.endDate),a.xp6(2),a.Q6J("checked",e.checked),a.xp6(1),a.hij(" ",a.lcZ(35,34,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[u.t,r.O5,l.KE,l.hX,h.gD,d.ey,p.P,g.S,f.oG,m.lW,b.$g,w.M,_.w],pipes:[y.X$],styles:[""]}),t})()},48002:function(t,e,i){"use strict";i.d(e,{G:function(){return B}});var n=i(88419),s=i(43491),o=i(4230),r=i(57820),a=i(84140),c=i(33642),u=i(60611),l=i(67004),h=i(88426),d=(i(41939),i(31572)),p=i(84608),g=i(48958),f=i(57629),m=i(59403),b=i(61511),w=i(91058),_=i(27521),y=i(16073),A=i(15980),v=i(36922),T=i(67806),C=i(11441),S=i(78364),E=i(39571),k=i(48160);const x=["toggle"],R=["tree"],I=["list"];function O(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",10),d.NdJ("click",function(){return d.CHM(t),d.oxw().onCreateGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function P(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",13),d.NdJ("click",function(){return d.CHM(t),d.oxw(2).deleteGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("disabled",0===t.selected.selected.length||t.disableRemove()),d.xp6(1),d.hij(" ",d.lcZ(2,2,"VO_DETAIL.GROUPS.DELETE_GROUP")," ")}}function D(t,e){if(1&t&&(d.TgZ(0,"span",11),d.ALo(1,"translate"),d.YNc(2,P,3,4,"button",12),d.qZA()),2&t){const t=d.oxw();d.s9C("matTooltip",d.lcZ(1,3,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),d.Q6J("matTooltipDisabled",void 0===t.tree&&void 0===t.list||t.disableTooltip()),d.xp6(2),d.Q6J("ngIf",!t.loading)}}function M(t,e){1&t&&d._UZ(0,"mat-spinner",14)}function L(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"perun-web-apps-groups-tree",18,19),d.NdJ("moveGroup",function(e){return d.CHM(t),d.oxw(2).onMoveGroup(e)})("refreshTable",function(){return d.CHM(t),d.oxw(2).loadAllGroups()}),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("groups",t.groups)("expandAll",t.filtering)("vo",t.vo)("selection",t.selected)("disableRouting",!t.routeAuth)("filterValue",t.filterValue)}}const N=function(){return["select","id","name","description","menu"]};function z(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",20,21),d.NdJ("page",function(e){return d.CHM(t),d.oxw(2).pageChanged(e)})("moveGroup",function(e){return d.CHM(t),d.oxw(2).onMoveGroup(e)})("refreshTable",function(){return d.CHM(t),d.oxw(2).loadAllGroups()}),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("pageSize",t.pageSize)("groups",t.groups)("selection",t.selected)("disableMembers",!0)("displayedColumns",d.DdM(8,N))("disableRouting",!t.routeAuth)("authType","vo-groups")("filter",t.filterValue)}}function F(t,e){if(1&t&&(d.TgZ(0,"div",15),d.YNc(1,L,2,6,"perun-web-apps-groups-tree",16),d.YNc(2,z,2,9,"perun-web-apps-groups-list",17),d.qZA()),2&t){const t=d.oxw();d.xp6(1),d.Q6J("ngIf",!t.showGroupList),d.xp6(1),d.Q6J("ngIf",t.showGroupList)}}function Z(t,e){1&t&&(d.TgZ(0,"app-alert",22),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}let B=(()=>{class t{constructor(t,e,i,n,s,r,a,c){this.dialog=t,this.groupService=e,this.sideMenuService=i,this.voService=n,this.route=s,this.tableConfigService=r,this.authResolver=a,this.initAuthService=c,this.groups=[],this.showGroupList=!1,this.selected=new o.Ov(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=u.rc}onCreateGroup(){const t=(0,a.kZ)();t.width="450px",t.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(n.y,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.loadAllGroups())})}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),"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.route.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,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 void 0!==this.tree&&this.tree.removeAuth||void 0!==this.list&&this.list.removeAuth}deleteGroup(){const t=(0,a.kZ)();t.width="450px",t.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(s.P,t).afterClosed().subscribe(t=>{t&&this.loadAllGroups()})}removeAllGroups(){this.selected.clear()}onMoveGroup(t){const e=(0,a.kZ)();e.width="550px",e.data={group:t,theme:"vo-theme"},this.dialog.open(r.c,e).afterClosed().subscribe(t=>{t&&this.loadAllGroups()})}loadAllGroups(){this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[l.r.GROUP_SYNC_ENABLED,l.r.GROUP_LAST_SYNC_STATE,l.r.GROUP_LAST_SYNC_TIMESTAMP,l.r.GROUP_STRUCTURE_SYNC_ENABLED,l.r.GROUP_LAST_STRUCTURE_SYNC_STATE,l.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(t=>{this.groups=t,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t,this.filtering=""!==t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="VoGroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Y36(p.uw),d.Y36(c.ff),d.Y36(g.D),d.Y36(c.YF),d.Y36(f.gz),d.Y36(u.dB),d.Y36(h.x4),d.Y36(h.v0))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-vo-groups"]],viewQuery:function(t,e){if(1&t&&(d.Gf(x,7),d.Gf(R,5),d.Gf(I,5)),2&t){let t;d.iGM(t=d.CRH())&&(e.toggle=t.first),d.iGM(t=d.CRH())&&(e.tree=t.first),d.iGM(t=d.CRH())&&(e.list=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("router-component",e.true)},decls:18,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"pageSize","groups","selection","disableMembers","displayedColumns","disableRouting","authType","filter","page","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable"],["tree",""],["theme","vo-theme",3,"pageSize","groups","selection","disableMembers","displayedColumns","disableRouting","authType","filter","page","moveGroup","refreshTable"],["list",""],["alert_type","warn"]],template:function(t,e){if(1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return e.loadAllGroups()}),d.qZA(),d.YNc(5,O,3,3,"button",2),d.YNc(6,D,3,5,"span",3),d.TgZ(7,"perun-web-apps-debounce-filter",4),d.NdJ("filter",function(t){return e.applyFilter(t)}),d.qZA(),d.TgZ(8,"mat-slide-toggle",5,6),d.NdJ("change",function(){return e.removeAllGroups()})("ngModelChange",function(t){return e.showGroupList=t}),d._uU(10),d.ALo(11,"translate"),d.qZA(),d.TgZ(12,"label"),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.YNc(15,M,1,0,"mat-spinner",7),d.YNc(16,F,3,2,"div",8),d.YNc(17,Z,3,3,"app-alert",9),d.qZA()),2&t){const t=d.MAs(9);d.xp6(2),d.Oqu(d.lcZ(3,11,"VO_DETAIL.GROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",!e.loading&&e.createAuth),d.xp6(1),d.Q6J("ngIf",!e.loading),d.xp6(1),d.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),d.xp6(1),d.Q6J("ngModel",e.showGroupList),d.xp6(2),d.Oqu(d.lcZ(11,13,"VO_DETAIL.GROUPS.TREE_VIEW")),d.xp6(2),d.uIk("for",t.inputId),d.xp6(1),d.Oqu(d.lcZ(14,15,"VO_DETAIL.GROUPS.LIST_VIEW")),d.xp6(2),d.Q6J("ngIf",e.loading),d.xp6(1),d.Q6J("ngIf",!e.loading&&0!==e.groups.length),d.xp6(1),d.Q6J("ngIf",0===e.groups.length&&!e.loading)}},directives:[m.t,b.O5,w.P,_.Rr,y.JJ,y.On,A.lW,v.gM,T.$g,C.I,S.W,E.w],pipes:[k.X$],styles:[""]}),t})()},28940:function(t,e,i){"use strict";i.d(e,{y:function(){return D}});var n=i(4230),s=i(88426),o=i(4374),r=i(85613),a=i(33642),c=i(67004),u=i(16073),l=i(60611),h=i(84140),d=i(88690),p=i(31572),g=i(57629),f=i(84608),m=i(59403),b=i(36922),w=i(61511),_=i(66283),y=i(4786),A=i(91058),v=i(15980),T=i(71522),C=i(67806),S=i(91779),E=i(48160);function k(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",14),p.NdJ("click",function(){return p.CHM(t),p.oxw().onAddMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.blockManualMemberAdding),p.xp6(1),p.hij(" ",p.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function x(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",15),p.NdJ("click",function(){return p.CHM(t),p.oxw().onInviteMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function R(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",16),p.NdJ("click",function(){return p.CHM(t),p.oxw().onRemoveMembers()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.selection.isEmpty()),p.xp6(1),p.hij(" ",p.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function I(t,e){if(1&t&&(p.TgZ(0,"mat-option",17),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.Oqu(t)}}function O(t,e){1&t&&p._UZ(0,"mat-spinner",18)}function P(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-members-dynamic-list",19),p.NdJ("page",function(e){return p.CHM(t),p.oxw().pageChanged(e)}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("voId",t.vo.id)("pageSize",t.pageSize)("selection",t.selection)("displayedColumns",t.displayedColumns)("attrNames",t.attrNames)("searchString",t.searchString)("selectedStatuses",t.selectedStatuses)("updateTable",t.updateTable)}}let D=(()=>{class t{constructor(t,e,i,s,o,r,a,h,d){this.voService=t,this.route=e,this.notificator=i,this.tableConfigService=s,this.dialog=o,this.authzService=r,this.storeService=a,this.attributesManager=h,this.apiRequest=d,this.members=null,this.selection=new n.Ov(!0,[]),this.loading=!1,this.attrNames=[c.r.MEMBER_DEF_ORGANIZATION,c.r.MEMBER_DEF_MAIL,c.r.USER_DEF_ORGANIZATION,c.r.USER_DEF_PREFERRED_MAIL,c.r.MEMBER_DEF_EXPIRATION],this.statuses=new u.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=l.j1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.updateTable=!1}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.statuses.setValue(this.selectedStatuses),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.route.parent.params.subscribe(t=>{const e=t.voId;this.isManualAddingBlocked(e).then(()=>{this.voService.getVoById(e).subscribe(t=>{this.vo=t,this.setAuthRights(),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(t){this.searchString=t,this.updateTable=!this.updateTable}onAddMember(){const t=(0,h.kZ)();t.width="1000px",t.data={entityId:this.vo.id,voId:this.vo.id,theme:"vo-theme",type:"vo"},this.dialog.open(r.o,t).afterClosed().subscribe(t=>{t&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const t=(0,h.kZ)();t.width="450px",t.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(o.X,t).afterClosed().subscribe(t=>{t&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const t=(0,h.kZ)();t.width="650px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(d.R,t)}displaySelectedStatuses(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?`${this.statuses.value[0]} ${this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""}`:""}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}isManualAddingBlocked(t){return new Promise(e=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(t=>{this.blockManualMemberAdding=null!==t.value,e()},t=>{"PrivilegeException"!==t.error.name&&this.notificator.showError(t),e()})})}changeStatuses(){this.selectedStatuses=this.statuses.value}}return t.id="VoMembersComponent",t.\u0275fac=function(e){return new(e||t)(p.Y36(a.YF),p.Y36(g.gz),p.Y36(s.V6),p.Y36(l.dB),p.Y36(f.uw),p.Y36(s.x4),p.Y36(s.d6),p.Y36(a.H8),p.Y36(s.F5))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:22,vars:19,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",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,"voId","pageSize","selection","displayedColumns","attrNames","searchString","selectedStatuses","updateTable","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"voId","pageSize","selection","displayedColumns","attrNames","searchString","selectedStatuses","updateTable","page"]],template:function(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"h1",1),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",2),p.TgZ(5,"perun-web-apps-refresh-button",3),p.NdJ("click",function(){return e.updateTable=!e.updateTable}),p.qZA(),p.TgZ(6,"div",4),p.ALo(7,"translate"),p.YNc(8,k,3,4,"button",5),p.qZA(),p.YNc(9,x,3,3,"button",6),p.YNc(10,R,3,4,"button",7),p.TgZ(11,"mat-form-field",8),p.TgZ(12,"mat-label"),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.TgZ(15,"mat-select",9),p.NdJ("closed",function(){return e.changeStatuses()}),p.TgZ(16,"mat-select-trigger"),p._uU(17),p.qZA(),p.YNc(18,I,2,2,"mat-option",10),p.qZA(),p.qZA(),p.TgZ(19,"perun-web-apps-debounce-filter",11),p.NdJ("filter",function(t){return e.onSearchByString(t)}),p.qZA(),p.qZA(),p.YNc(20,O,1,0,"mat-spinner",12),p.YNc(21,P,1,8,"perun-web-apps-members-dynamic-list",13),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,13,"VO_DETAIL.MEMBERS.TITLE")),p.xp6(4),p.s9C("matTooltip",p.lcZ(7,15,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),p.Q6J("matTooltipDisabled",!e.blockManualMemberAdding),p.xp6(2),p.Q6J("ngIf",e.addAuth),p.xp6(1),p.Q6J("ngIf",e.inviteAuth),p.xp6(1),p.Q6J("ngIf",e.removeAuth),p.xp6(3),p.Oqu(p.lcZ(14,17,"VO_DETAIL.MEMBERS.FILTER_STATUS")),p.xp6(2),p.Q6J("formControl",e.statuses),p.xp6(2),p.hij(" ",e.displaySelectedStatuses()," "),p.xp6(1),p.Q6J("ngForOf",e.statusList),p.xp6(1),p.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[m.t,b.gM,w.O5,_.KE,_.hX,y.gD,u.JJ,u.oH,y.$L,w.sg,A.P,v.lW,T.ey,C.$g,S.m],pipes:[E.X$],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}"]}),t})()},88227:function(t,e,i){"use strict";i.d(e,{z:function(){return v}});var n=i(4230),s=i(33642),o=i(95909),r=i(60611),a=i(84140),c=i(88426),u=i(31572),l=i(57629),h=i(84608),d=i(59403),p=i(61511),g=i(19139),f=i(15980),m=i(67806),b=i(88884),w=i(48160);function _(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",6),u.NdJ("click",function(){return u.CHM(t),u.oxw().deleteSelectedResources()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&t){const t=u.oxw();u.Q6J("disabled",0===t.selected.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function y(t,e){1&t&&u._UZ(0,"mat-spinner",7)}function A(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-resources-list",8),u.NdJ("page",function(e){return u.CHM(t),u.oxw().pageChanged(e)}),u.qZA()}if(2&t){const t=u.oxw();u.Q6J("pageSize",t.pageSize)("filterValue",t.filterValue)("resources",t.resources)("routingVo",!0)("disableRouting",!t.routeAuth)("selection",t.selected)("displayedColumns",t.displayedColumns)}}let v=(()=>{class t{constructor(t,e,i,s,o,a){this.resourcesManager=t,this.voService=e,this.route=i,this.tableConfigService=s,this.dialog=o,this.authResolver=a,this.resources=[],this.selected=new n.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=r.nT,this.routeAuth=!1}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,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(t=>{this.resources=t,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t}deleteSelectedResources(){const t=(0,a.kZ)();t.width="450px",t.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(o.f,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="VoResourcesPreviewComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(s.xk),u.Y36(s.YF),u.Y36(l.gz),u.Y36(r.dB),u.Y36(h.uw),u.Y36(c.x4))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.true)},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","displayedColumns","page"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.YNc(5,_,3,4,"button",2),u.TgZ(6,"perun-web-apps-immediate-filter",3),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(7,y,1,0,"mat-spinner",4),u.YNc(8,A,1,7,"perun-web-apps-resources-list",5),u.qZA()),2&t&&(u.xp6(2),u.Oqu(u.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),u.xp6(3),u.Q6J("ngIf",!e.loading&&e.removeAuth),u.xp6(1),u.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[d.t,p.O5,g.L,f.lW,m.$g,b.C],pipes:[w.X$],styles:[""]}),t})()},97397:function(t,e,i){"use strict";i.d(e,{z:function(){return Q}});var n=i(88426),s=i(33642),o=i(31572),r=i(57629),a=i(61511),c=i(67806),u=i(59403),l=i(55109),h=i(67033),d=i(45001),p=i(27679),g=i(48160);function f(t,e){if(1&t&&(o.TgZ(0,"mat-panel-description"),o.TgZ(1,"div"),o.TgZ(2,"i",7),o._uU(3," error "),o.qZA(),o._uU(4),o.ALo(5,"translate"),o.ALo(6,"translate"),o.qZA(),o.qZA()),2&t){const t=o.oxw().$implicit,e=o.oxw();o.xp6(4),o.HOy(" ",e.getErrorCountStates(t)," ",o.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",t.taskList.length," ",o.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function m(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")))}function b(t,e){if(1&t&&(o.TgZ(0,"td",21),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(t.id)}}function w(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")))}function _(t,e){if(1&t&&(o.TgZ(0,"td",21),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(t.service.name)}}function y(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")))}function A(t,e){if(1&t&&(o.TgZ(0,"td",21),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(t.status)}}function v(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")))}function T(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){const t=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,t.schedule,"d.M.y H:mm:ss")," ")}}function C(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function S(t,e){if(1&t&&(o.TgZ(0,"td",21),o.YNc(1,T,3,4,"div",22),o.YNc(2,C,2,3,"ng-template",23,24,o.W1O),o.qZA()),2&t){const t=e.$implicit,i=o.MAs(3);o.xp6(1),o.Q6J("ngIf",t.schedule)("ngIfElse",i)}}function E(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")))}function k(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){const t=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,t.schedule,"d.M.y H:mm:ss")," ")}}function x(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function R(t,e){if(1&t&&(o.TgZ(0,"td",21),o.YNc(1,k,3,4,"div",22),o.YNc(2,x,2,3,"ng-template",23,24,o.W1O),o.qZA()),2&t){const t=e.$implicit,i=o.MAs(3);o.xp6(1),o.Q6J("ngIf",t.startTime)("ngIfElse",i)}}function I(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")))}function O(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){const t=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,t.schedule,"d.M.y H:mm:ss")," ")}}function P(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function D(t,e){if(1&t&&(o.TgZ(0,"td",21),o.YNc(1,O,3,4,"div",22),o.YNc(2,P,2,3,"ng-template",23,24,o.W1O),o.qZA()),2&t){const t=e.$implicit,i=o.MAs(3);o.xp6(1),o.Q6J("ngIf",t.endTime)("ngIfElse",i)}}function M(t,e){1&t&&o._UZ(0,"tr",25)}const L=function(t,e,i){return{redTableItem:t,greenTableItem:e,yellowTableItem:i}};function N(t,e){if(1&t&&o._UZ(0,"tr",26),2&t){const t=e.$implicit;o.Q6J("ngClass",o.kEZ(1,L,"ERROR"===t.status||"SENDERROR"===t.status||"GENERROR"===t.status,"DONE"===t.status,"WARNING"===t.status))}}function z(t,e){if(1&t&&(o.TgZ(0,"table",9),o.ynx(1,10),o.YNc(2,m,3,3,"th",11),o.YNc(3,b,2,1,"td",12),o.BQk(),o.ynx(4,13),o.YNc(5,w,3,3,"th",11),o.YNc(6,_,2,1,"td",12),o.BQk(),o.ynx(7,14),o.YNc(8,y,3,3,"th",11),o.YNc(9,A,2,1,"td",12),o.BQk(),o.ynx(10,15),o.YNc(11,v,3,3,"th",11),o.YNc(12,S,4,2,"td",12),o.BQk(),o.ynx(13,16),o.YNc(14,E,3,3,"th",11),o.YNc(15,R,4,2,"td",12),o.BQk(),o.ynx(16,17),o.YNc(17,I,3,3,"th",11),o.YNc(18,D,4,2,"td",12),o.BQk(),o.YNc(19,M,1,0,"tr",18),o.YNc(20,N,1,5,"tr",19),o.qZA()),2&t){const t=o.oxw(2).$implicit,e=o.oxw();o.Q6J("dataSource",e.datasources[e.propagation.indexOf(t)]),o.xp6(19),o.Q6J("matHeaderRowDef",e.displayedColumns),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns)}}function F(t,e){1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function Z(t,e){if(1&t&&(o._UZ(0,"mat-divider"),o.YNc(1,z,21,3,"table",8),o.YNc(2,F,3,3,"div",5)),2&t){const t=o.oxw().$implicit;o.xp6(1),o.Q6J("ngIf",0!==t.taskList.length),o.xp6(1),o.Q6J("ngIf",0===t.taskList.length)}}function B(t,e){if(1&t&&(o.TgZ(0,"mat-expansion-panel"),o.TgZ(1,"mat-expansion-panel-header"),o.TgZ(2,"mat-panel-title"),o._UZ(3,"img",3),o.TgZ(4,"div",4),o._uU(5),o.qZA(),o.qZA(),o.YNc(6,f,7,8,"mat-panel-description",5),o.qZA(),o.YNc(7,Z,3,2,"ng-template",6),o.qZA()),2&t){const t=e.$implicit,i=o.oxw();o.xp6(5),o.hij(" ",t.resource.name," "),o.xp6(1),o.Q6J("ngIf",0!==i.getErrorCountStates(t))}}let q=(()=>{class t{constructor(){this.propagation=[],this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}ngOnInit(){this.getDataSource()}getErrorCountStates(t){let e=0;for(const i of t.taskList)"ERROR"!==i.status&&"GENERROR"!==i.status&&"SENDERROR"!==i.status||e++;return e}getDataSource(){for(const t of this.propagation)this.datasources.push(new h.by(t.taskList))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-state-tab"]],inputs:{propagation:"propagation"},decls:3,vars:1,consts:[[1,"p-2"],["multi","true","togglePosition","before",1,"headers-align"],[4,"ngFor","ngForOf"],["src","assets/img/PerunWebImages/resource-black.svg","height","28","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["mat-table","","class","w-100",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(t,e){1&t&&(o.TgZ(0,"div",0),o.TgZ(1,"mat-accordion",1),o.YNc(2,B,8,2,"mat-expansion-panel",2),o.qZA(),o.qZA()),2&t&&(o.xp6(2),o.Q6J("ngForOf",e.propagation))},directives:[d.pp,a.sg,d.ib,d.yz,d.yK,a.O5,d.HS,d.u4,p.d,h.BZ,h.w1,h.fO,h.Dz,h.as,h.nj,h.ge,h.ev,h.XQ,h.Gk,a.mk],pipes:[g.X$,a.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_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}"]}),t})();var U=i(39571);function H(t,e){1&t&&o._UZ(0,"mat-spinner",3)}function j(t,e){if(1&t&&(o._uU(0),o.ALo(1,"translate"),o.TgZ(2,"span",8),o._uU(3),o.qZA()),2&t){const t=o.oxw(2);o.hij(" ",o.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),o.xp6(3),o.Oqu(t.errorPropagation.length)}}function G(t,e){1&t&&(o.TgZ(0,"app-alert",11),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.Q6J("alert_type","warn"),o.xp6(1),o.hij(" ",o.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function Y(t,e){if(1&t&&(o.YNc(0,G,3,4,"app-alert",9),o._UZ(1,"app-state-tab",10)),2&t){const t=o.oxw(2);o.Q6J("ngIf",0===t.errorPropagation.length),o.xp6(1),o.Q6J("propagation",t.errorPropagation)}}function V(t,e){if(1&t&&(o._uU(0),o.ALo(1,"translate"),o.TgZ(2,"span",12),o._uU(3),o.qZA()),2&t){const t=o.oxw(2);o.hij(" ",o.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),o.xp6(3),o.Oqu(t.okPropagation.length)}}function K(t,e){1&t&&(o.TgZ(0,"app-alert",14),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function J(t,e){if(1&t&&(o.YNc(0,K,3,3,"app-alert",13),o._UZ(1,"app-state-tab",10)),2&t){const t=o.oxw(2);o.Q6J("ngIf",0===t.okPropagation.length),o.xp6(1),o.Q6J("propagation",t.okPropagation)}}function $(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"perun-web-apps-refresh-button",4),o.NdJ("refresh",function(){return o.CHM(t),o.oxw().refreshTable()}),o.qZA(),o.TgZ(2,"mat-tab-group",5),o.NdJ("selectedIndexChange",function(e){return o.CHM(t),o.oxw().selectedIndex=e}),o.TgZ(3,"mat-tab"),o.YNc(4,j,4,4,"ng-template",6),o.YNc(5,Y,2,2,"ng-template",7),o.qZA(),o.TgZ(6,"mat-tab"),o.YNc(7,V,4,4,"ng-template",6),o.YNc(8,J,2,2,"ng-template",7),o.qZA(),o.qZA(),o.qZA()}if(2&t){const t=o.oxw();o.xp6(2),o.Q6J("selectedIndex",t.selectedIndex)}}let Q=(()=>{class t{constructor(t,e,i){this.route=t,this.taskService=e,this.customIconService=i,this.loading=!1,this.resourceStates=[],this.selectedIndex=0}ngOnInit(){this.customIconService.registerPerunRefreshIcon(),this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.refreshTable()})}refreshTable(){console.log(this.selectedIndex),this.loading=!0,this.taskService.getAllResourcesState(this.voId).subscribe(t=>{this.resourceStates=t,this.okPropagation=[],this.errorPropagation=[];for(const e of t){let t=!0;for(const i of e.taskList)if("ERROR"===i.status||"GENERROR"===i.status||"SENDERROR"===i.status){t=!1;break}t?this.okPropagation.push(e):this.errorPropagation.push(e)}this.loading=!1})}}return t.id="VoResourcesStatesComponent",t.\u0275fac=function(e){return new(e||t)(o.Y36(r.gz),o.Y36(s.Ob),o.Y36(n.EB))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"refresh"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["matTabContent",""],[1,"badge","badge-danger","ml-1"],[3,"alert_type",4,"ngIf"],[3,"propagation"],[3,"alert_type"],[1,"badge","badge-success","ml-1"],["alert_type","warn",4,"ngIf"],["alert_type","warn"]],template:function(t,e){1&t&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.YNc(3,H,1,0,"mat-spinner",1),o.YNc(4,$,9,1,"div",2)),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,3,"VO_DETAIL.RESOURCES.STATES.TITLE")),o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading))},directives:[a.O5,c.$g,u.t,l.SP,l.uX,l.uD,l.Vc,q,U.w],pipes:[g.X$],styles:[""]}),t})()},14527:function(t,e,i){"use strict";i.d(e,{w:function(){return I}});var n=i(24555),s=i(88426),o=i(68570),r=i(92438),a=i(75954),c=i(33642),u=i(84140),l=i(31572),h=i(57629),d=i(84608),p=i(48160),g=i(61511),f=i(67806),m=i(43691),b=i(36922),w=i(27679),_=i(59403),y=i(15980),A=i(92846),v=i(39571);function T(t,e){1&t&&l._UZ(0,"mat-spinner",3)}function C(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",21),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).settings()}),l.TgZ(1,"i",18),l._uU(2,"edit"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function S(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",22),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).add()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function E(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",23),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).save()}),l.TgZ(1,"i",18),l._uU(2,"save"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}if(2&t){const t=l.oxw(2);l.Q6J("disabled",!t.itemsChanged),l.xp6(3),l.hij(" ",l.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function k(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",24),l.NdJ("click",function(){return l.CHM(t),l.oxw(2).copy()}),l.TgZ(1,"i",18),l._uU(2,"file_copy"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function x(t,e){1&t&&(l.TgZ(0,"app-alert",25),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.Q6J("alert_type","info"),l.xp6(1),l.hij(" ",l.lcZ(2,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}function R(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"div",4),l.TgZ(2,"div",5),l.TgZ(3,"div",6),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.TgZ(6,"div"),l.TgZ(7,"span",6),l._uU(8),l.ALo(9,"translate"),l.qZA(),l._uU(10,": "),l.TgZ(11,"mat-icon",7),l._uU(12,"arrow_right_alt"),l.qZA(),l._uU(13),l.ALo(14,"translate"),l.ALo(15,"translate"),l.TgZ(16,"mat-icon",8),l._uU(17,"restore"),l.qZA(),l._uU(18),l.ALo(19,"translate"),l.ALo(20,"translate"),l.qZA(),l.qZA(),l.TgZ(21,"div",9),l.YNc(22,C,5,3,"button",10),l.qZA(),l.qZA(),l._UZ(23,"mat-divider",11),l.TgZ(24,"div",12),l.TgZ(25,"perun-web-apps-refresh-button",13),l.NdJ("refresh",function(){return l.CHM(t),l.oxw().updateFormItems()}),l.qZA(),l.YNc(26,S,3,3,"button",14),l.YNc(27,E,5,4,"button",15),l.YNc(28,k,5,3,"button",16),l.TgZ(29,"button",17),l.NdJ("click",function(){return l.CHM(t),l.oxw().preview()}),l.TgZ(30,"i",18),l._uU(31,"search"),l.qZA(),l._uU(32),l.ALo(33,"translate"),l.qZA(),l.qZA(),l.YNc(34,x,3,4,"app-alert",19),l.TgZ(35,"app-application-form-list",20),l.NdJ("applicationFormItemsChange",function(){return l.CHM(t),l.oxw().changeItems()}),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(4),l.AsE("",l.lcZ(5,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",t.applicationForm.moduleClassName," "),l.xp6(4),l.Oqu(l.lcZ(9,18,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),l.xp6(5),l.hij(" ",t.applicationForm.automaticApproval?l.lcZ(14,20,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(15,22,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),l.xp6(5),l.hij(" ",t.applicationForm.automaticApprovalExtension?l.lcZ(19,24,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(20,26,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),l.xp6(4),l.Q6J("ngIf",t.editAuth),l.xp6(4),l.Q6J("ngIf",t.editAuth),l.xp6(1),l.Q6J("ngIf",t.editAuth),l.xp6(1),l.Q6J("ngIf",t.editAuth),l.xp6(4),l.hij(" ",l.lcZ(33,28,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),l.xp6(2),l.Q6J("ngIf",t.editAuth),l.xp6(1),l.Q6J("loading",t.loading)("applicationForm",t.applicationForm)("applicationFormItems",t.applicationFormItems)("theme","vo-theme")("displayedColumns",t.displayedColumns)}}let I=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.registrarManager=t,this.route=e,this.dialog=i,this.notificator=n,this.translate=s,this.router=o,this.authResolver=r,this.voService=a,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.idCounter=-1}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{const e=t.voId;this.voId=e,this.registrarManager.getVoApplicationForm(e).subscribe(t=>{this.applicationForm=t,this.registrarManager.getFormItemsForVo(e).subscribe(t=>{this.applicationFormItems=t,this.voService.getVoById(this.voId).subscribe(t=>{this.vo=t,this.setAuthRights(),this.loading=!1})})})})}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"]}add(){let t=(0,u.kZ)();t.width="500px",t.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(r.J,t).afterClosed().subscribe(e=>{e&&(this.applicationFormItems=Object.assign([],e[0]),t=(0,u.kZ)(),t.width="600px",t.height="600px",t.data={voId:this.voId,applicationFormItem:e[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(a._,t),this.itemsChanged=!0)})}copy(){const t=(0,u.kZ)();t.width="500px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(o.W,t).afterClosed().subscribe(t=>{t&&this.updateFormItems()})}settings(){const t=(0,u.kZ)();t.width="400px",t.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(n.E,t).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.applicationForm=t)})}preview(){this.router.navigate(["/organizations",this.voId,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.registrarManager.getFormItemsForVo(this.voId).subscribe(t=>{this.applicationFormItems=t,this.itemsChanged=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let t=0;for(const e of this.applicationFormItems)e.ordnum=t,e.forDelete||t++;this.registrarManager.updateFormItemsForVo({vo:this.voId,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(t=>t.forDelete=!0),this.itemsChanged=!0}}return t.id="VoSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(c.tk),l.Y36(h.gz),l.Y36(d.uw),l.Y36(s.V6),l.Y36(p.sK),l.Y36(h.F0),l.Y36(s.x4),l.Y36(c.YF))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[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"],["mat-stroked-button","","class","ml-auto",3,"click",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],[3,"alert_type",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","applicationFormItemsChange"],["mat-stroked-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"click"],[3,"alert_type"]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.YNc(3,T,1,0,"mat-spinner",1),l.YNc(4,R,36,30,"div",2)),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[g.O5,f.$g,m.Hw,b.gM,w.d,_.t,y.lW,A.b,v.w],pipes:[p.X$],styles:[""]}),t})()},48666:function(t,e,i){"use strict";i.d(e,{T:function(){return pe}});var n=i(33642),s=i(4230),o=i(60611),r=i(84140),a=i(84608),c=i(88426),u=i(16073),l=i(61511),h=i(14732),d=i(81110),p=i(40878),g=i(44689),f=i(79996),m=i(47727),b=i(31572),w=i(48160),_=i(67806),y=i(70663),A=i(66283),v=i(80340),T=i(15980),C=i(4786),S=i(36922),E=i(29236),k=i(54810),x=i(15812);let R=(()=>{class t{constructor(){this.expiration="never",this.expirationControl=new u.NI(null),this.datePicker=new b.vpe}ngOnInit(){const t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationControl.setValue((0,l.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}setExpiration(){this.expiration=(0,l.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,l.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=b.Xpm({type:t,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(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"mat-radio-group",0),b.NdJ("ngModelChange",function(t){return e.expiration=t})("change",function(){return e.emitDate()}),b.TgZ(1,"mat-radio-button",1),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"mat-radio-button",2),b.TgZ(5,"mat-form-field",3),b.NdJ("click",function(){return b.CHM(t),b.MAs(12).open()}),b.TgZ(6,"mat-label"),b._uU(7),b.ALo(8,"translate"),b.qZA(),b.TgZ(9,"input",4),b.NdJ("dateChange",function(){return e.setExpiration()}),b.qZA(),b._UZ(10,"mat-datepicker-toggle",5),b._UZ(11,"mat-datepicker",6,7),b.qZA(),b.qZA(),b.qZA()}if(2&t){const t=b.MAs(12);b.Q6J("ngModel",e.expiration),b.xp6(2),b.hij(" ",b.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),b.xp6(2),b.s9C("value",e.expirationControl.value),b.xp6(3),b.Oqu(b.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),b.xp6(2),b.Q6J("min",e.minDate)("formControl",e.expirationControl)("matDatepicker",t),b.xp6(1),b.Q6J("for",t)("disabled",!1),b.xp6(1),b.Q6J("disabled",!1)}},directives:[k.VQ,u.JJ,u.On,k.U0,A.KE,A.hX,v.Nt,u.Fj,x.hl,u.oH,x.nW,A.R9,x.Mq],pipes:[w.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();var I=i(39571),O=i(71522),P=i(43691),D=i(7927),M=i(22196);function L(t,e){1&t&&(b.TgZ(0,"h1",4),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")))}function N(t,e){1&t&&b._UZ(0,"mat-spinner",5)}function z(t,e){1&t&&(b._uU(0),b.ALo(1,"translate")),2&t&&b.Oqu(b.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function F(t,e){1&t&&(b.TgZ(0,"app-alert",42),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function Z(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function B(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function q(t,e){1&t&&(b._uU(0),b.ALo(1,"translate")),2&t&&b.Oqu(b.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function U(t,e){if(1&t&&(b.TgZ(0,"mat-option",43),b._uU(1),b.qZA()),2&t){const t=e.$implicit;b.Q6J("value",t),b.xp6(1),b.hij(" ",t," ")}}function H(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function j(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function G(t,e){1&t&&b._UZ(0,"mat-spinner",44),2&t&&b.Q6J("diameter",18)}function Y(t,e){1&t&&(b.TgZ(0,"mat-icon",45),b.ALo(1,"translate"),b._uU(2," error "),b.qZA()),2&t&&b.Q6J("matTooltip",b.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACKEND_ERROR_LONG"))}function V(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")))}function K(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACKEND_ERROR")))}function J(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function $(t,e){1&t&&(b._uU(0),b.ALo(1,"translate")),2&t&&b.Oqu(b.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function Q(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"div"),b.TgZ(1,"perun-web-apps-user-search-select",46),b.NdJ("userSelected",function(e){return b.CHM(t),b.oxw(2).selectedSponsor=e}),b.qZA(),b.qZA()}if(2&t){const t=b.oxw(2);b.xp6(1),b.Q6J("users",t.voSponsors)("disableAutoSelect",!0)}}function W(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"div",6),b.TgZ(1,"mat-horizontal-stepper",7),b.TgZ(2,"mat-step",8),b.YNc(3,z,2,3,"ng-template",9),b.YNc(4,F,3,3,"app-alert",10),b.TgZ(5,"form",11),b.TgZ(6,"h5",12),b._uU(7),b.ALo(8,"translate"),b.qZA(),b.TgZ(9,"mat-form-field",13),b._UZ(10,"input",14),b.ALo(11,"translate"),b.YNc(12,Z,3,3,"mat-error",15),b.qZA(),b.TgZ(13,"mat-form-field"),b._UZ(14,"input",16),b.ALo(15,"translate"),b.YNc(16,B,3,3,"mat-error",15),b.qZA(),b.TgZ(17,"mat-form-field"),b._UZ(18,"input",17),b.ALo(19,"translate"),b.qZA(),b.TgZ(20,"mat-form-field"),b._UZ(21,"input",18),b.ALo(22,"translate"),b.qZA(),b.qZA(),b.TgZ(23,"div",19),b.TgZ(24,"button",20),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCancel()}),b._uU(25),b.ALo(26,"translate"),b.qZA(),b.TgZ(27,"button",21),b._uU(28),b.ALo(29,"translate"),b.qZA(),b.qZA(),b.qZA(),b.TgZ(30,"mat-step",8),b.YNc(31,q,2,3,"ng-template",9),b.TgZ(32,"h5",12),b._uU(33),b.ALo(34,"translate"),b.qZA(),b.TgZ(35,"form",22),b.TgZ(36,"mat-form-field"),b.TgZ(37,"mat-select",23),b.NdJ("valueChange",function(e){return b.CHM(t),b.oxw().onNamespaceChanged(e)}),b.ALo(38,"translate"),b.YNc(39,U,2,2,"mat-option",24),b.qZA(),b.YNc(40,H,3,3,"mat-error",15),b.qZA(),b.TgZ(41,"mat-form-field",25),b.ALo(42,"translate"),b._UZ(43,"input",26),b.ALo(44,"translate"),b.YNc(45,j,3,3,"mat-error",15),b.qZA(),b.TgZ(46,"span",25),b.ALo(47,"translate"),b.TgZ(48,"mat-checkbox",27),b.NdJ("change",function(){return b.CHM(t),b.oxw().passwordResetChange()}),b._uU(49),b.ALo(50,"translate"),b.qZA(),b.qZA(),b.TgZ(51,"mat-form-field",25),b._UZ(52,"input",28),b.ALo(53,"translate"),b.YNc(54,G,1,1,"mat-spinner",29),b.YNc(55,Y,3,3,"mat-icon",30),b.YNc(56,V,3,3,"mat-error",15),b.YNc(57,K,3,3,"mat-error",15),b.qZA(),b.TgZ(58,"mat-checkbox",31),b._uU(59),b.ALo(60,"translate"),b.qZA(),b.TgZ(61,"mat-form-field"),b._UZ(62,"input",32),b.ALo(63,"translate"),b.YNc(64,J,3,3,"mat-error",15),b.qZA(),b.TgZ(65,"div",19),b.TgZ(66,"button",20),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCancel()}),b._uU(67),b.ALo(68,"translate"),b.qZA(),b.TgZ(69,"button",33),b._uU(70),b.ALo(71,"translate"),b.qZA(),b.TgZ(72,"button",34),b._uU(73),b.ALo(74,"translate"),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.TgZ(75,"mat-step"),b.YNc(76,$,2,3,"ng-template",9),b.TgZ(77,"div",35),b.TgZ(78,"h5",12),b._uU(79),b.ALo(80,"translate"),b.qZA(),b.TgZ(81,"div",13),b.TgZ(82,"h6"),b._uU(83),b.ALo(84,"translate"),b.qZA(),b.TgZ(85,"mat-radio-group",36),b.NdJ("ngModelChange",function(e){return b.CHM(t),b.oxw().sponsorType=e}),b.TgZ(86,"span",37),b.ALo(87,"translate"),b.TgZ(88,"mat-radio-button",38),b.NdJ("click",function(){return b.CHM(t),b.oxw().selectedSponsor=null}),b._uU(89),b.ALo(90,"translate"),b.qZA(),b.qZA(),b.TgZ(91,"span",37),b.ALo(92,"translate"),b.TgZ(93,"mat-radio-button",39),b._uU(94),b.ALo(95,"translate"),b.qZA(),b.qZA(),b.qZA(),b.YNc(96,Q,2,2,"div",15),b.qZA(),b.TgZ(97,"h6",13),b._uU(98),b.ALo(99,"translate"),b.qZA(),b.TgZ(100,"perun-web-apps-expiration-select",40),b.NdJ("datePicker",function(e){return b.CHM(t),b.oxw().setExpiration(e)}),b.qZA(),b.qZA(),b.TgZ(101,"div",19),b.TgZ(102,"button",20),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCancel()}),b._uU(103),b.ALo(104,"translate"),b.qZA(),b.TgZ(105,"button",33),b._uU(106),b.ALo(107,"translate"),b.qZA(),b.TgZ(108,"button",41),b.NdJ("click",function(){return b.CHM(t),b.oxw().onConfirm()}),b._uU(109),b.ALo(110,"translate"),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.qZA()}if(2&t){const t=b.oxw();b.xp6(1),b.Q6J("linear",!0),b.xp6(1),b.Q6J("stepControl",t.userControl),b.xp6(2),b.Q6J("ngIf",t.functionalityNotSupported),b.xp6(1),b.Q6J("formGroup",t.userControl),b.xp6(2),b.hij(" ",b.lcZ(8,60,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),b.xp6(3),b.s9C("placeholder",b.lcZ(11,62,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),b.xp6(2),b.Q6J("ngIf",t.userControl.hasError("required","firstName")),b.xp6(2),b.s9C("placeholder",b.lcZ(15,64,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),b.xp6(2),b.Q6J("ngIf",t.userControl.hasError("required","lastName")),b.xp6(2),b.s9C("placeholder",b.lcZ(19,66,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),b.xp6(3),b.s9C("placeholder",b.lcZ(22,68,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),b.xp6(4),b.hij(" ",b.lcZ(26,70,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),b.xp6(2),b.Q6J("disabled",t.userControl.invalid),b.xp6(1),b.hij(" ",b.lcZ(29,72,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," "),b.xp6(2),b.Q6J("stepControl",t.namespaceControl),b.xp6(3),b.Oqu(b.lcZ(34,74,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),b.xp6(2),b.Q6J("formGroup",t.namespaceControl),b.xp6(2),b.s9C("placeholder",b.lcZ(38,76,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),b.xp6(2),b.Q6J("ngForOf",t.namespaceOptions),b.xp6(1),b.Q6J("ngIf",t.namespaceControl.hasError("required","namespace")),b.xp6(1),b.s9C("matTooltip",b.lcZ(42,78,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),b.Q6J("matTooltipDisabled",t.namespaceControl.get("login").enabled),b.xp6(2),b.s9C("placeholder",b.lcZ(44,80,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),b.xp6(2),b.Q6J("ngIf",t.namespaceControl.hasError("required","login")),b.xp6(1),b.s9C("matTooltip",b.lcZ(47,82,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),b.Q6J("matTooltipDisabled",t.namespaceControl.get("passwordReset").enabled),b.xp6(3),b.hij("",b.lcZ(50,84,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),b.xp6(2),b.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.namespaceControl.get("password").enabled),b.xp6(1),b.s9C("placeholder",b.lcZ(53,86,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")),b.Q6J("type",t.namespaceControl.get("showPassword").value?"text":"password")("errorStateMatcher",t.passwordStateMatcher),b.xp6(2),b.Q6J("ngIf",t.namespaceControl.get("password").pending),b.xp6(1),b.Q6J("ngIf",t.namespaceControl.get("password").dirty&&null!==t.namespaceControl.get("password").errors),b.xp6(1),b.Q6J("ngIf",t.namespaceControl.get("password").hasError("required")),b.xp6(1),b.Q6J("ngIf",t.namespaceControl.get("password").hasError("backendError")),b.xp6(2),b.hij(" ",b.lcZ(60,88,"DIALOGS.CREATE_SPONSORED_MEMBER.SHOW_PASSWORD")," "),b.xp6(3),b.s9C("placeholder",b.lcZ(63,90,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),b.xp6(2),b.Q6J("ngIf",t.namespaceControl.hasError("required","email")||t.namespaceControl.hasError("pattern","email")),b.xp6(3),b.hij(" ",b.lcZ(68,92,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),b.xp6(3),b.hij(" ",b.lcZ(71,94,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "),b.xp6(2),b.Q6J("disabled",t.namespaceControl.invalid||t.namespaceControl.get("password").pending),b.xp6(1),b.hij(" ",b.lcZ(74,96,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," "),b.xp6(6),b.Oqu(b.lcZ(80,98,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),b.xp6(4),b.Oqu(b.lcZ(84,100,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),b.xp6(2),b.Q6J("ngModel",t.sponsorType),b.xp6(1),b.s9C("matTooltip",b.lcZ(87,102,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),b.Q6J("matTooltipDisabled",t.isSponsor),b.xp6(2),b.Q6J("disabled",!t.isSponsor),b.xp6(1),b.hij(" ",b.lcZ(90,104,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),b.xp6(2),b.s9C("matTooltip",b.lcZ(92,106,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),b.Q6J("matTooltipDisabled",t.isPerunAdmin),b.xp6(2),b.Q6J("disabled",!t.isPerunAdmin),b.xp6(1),b.hij(" ",b.lcZ(95,108,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),b.xp6(2),b.Q6J("ngIf","other"===t.sponsorType),b.xp6(2),b.Oqu(b.lcZ(99,110,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION")),b.xp6(5),b.hij(" ",b.lcZ(104,112,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),b.xp6(3),b.hij(" ",b.lcZ(107,114,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "),b.xp6(2),b.Q6J("disabled",null===t.sponsorType||"other"===t.sponsorType&&null===t.selectedSponsor),b.xp6(1),b.hij(" ",b.lcZ(110,116,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function X(t,e){if(1&t&&(b.TgZ(0,"div",6),b.TgZ(1,"div",47),b.TgZ(2,"mat-icon",48),b._uU(3,"done"),b.qZA(),b._uU(4),b.ALo(5,"translate"),b.TgZ(6,"i"),b._uU(7),b.ALo(8,"userFullName"),b.qZA(),b._uU(9),b.ALo(10,"translate"),b.qZA(),b.TgZ(11,"div"),b._uU(12),b.ALo(13,"translate"),b.qZA(),b.TgZ(14,"div"),b._uU(15),b.ALo(16,"translate"),b.qZA(),b.TgZ(17,"app-alert",49),b._uU(18),b.ALo(19,"translate"),b.qZA(),b.qZA()),2&t){const t=b.oxw();b.xp6(4),b.hij(" ",b.lcZ(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),b.xp6(3),b.Oqu(b.lcZ(8,10,t.createdMember.user)),b.xp6(2),b.hij(" ",b.lcZ(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),b.xp6(3),b.AsE("",b.lcZ(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",t.loginThatWasSet,""),b.xp6(3),b.AsE("",b.lcZ(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",t.namespaceControl.get("password").value," "),b.xp6(3),b.Oqu(b.lcZ(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function tt(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"div",19),b.TgZ(1,"button",50),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCancel()}),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.qZA()}2&t&&(b.xp6(2),b.hij(" ",b.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}class et{isErrorState(t){return!!(t&&t.invalid&&t.dirty)}}const it=(t,e,i,n=500)=>s=>(0,d.H)(n).pipe((0,g.w)(()=>(i.dontHandleErrorForNext(),null===t||"No namespace"===t?(0,p.of)(null):e.checkPasswordStrength(s.value,t))),(0,f.U)(()=>null),(0,m.K)(t=>(0,p.of)({backendError:t.error.message.substr(t.error.message.indexOf(":")+1)})));let nt=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u){this.dialogRef=t,this.data=e,this.membersService=i,this.apiRequestConfiguration=n,this.usersService=s,this.store=o,this.translator=r,this.authzService=a,this.guiAuthResolver=c,this.formBuilder=u,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.namespaceRules=[],this.parsedRules=new Map,this.emailRegx=/^(([^<>+()[\]\\.,;:\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]{2,3}))$/,this.userControl=null,this.namespaceControl=null,this.passwordStateMatcher=new et,this.voSponsors=[],this.selectedSponsor=null,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.expiration="never"}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voSponsors=this.data.sponsors,this.isSponsor=this.guiAuthResolver.principalHasRole(h.u.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.userControl=this.formBuilder.group({firstName:["",u.kI.required],lastName:["",u.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",u.kI.required],login:["",[u.kI.required]],password:["",u.kI.required,[it(null,this.usersService,this.apiRequestConfiguration)]],passwordReset:[!1,[]],showPassword:[!1,[]],email:["",[u.kI.required,u.kI.pattern(this.emailRegx)]]}),this.membersService.getAllNamespacesRules().subscribe(t=>{this.store.get("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(t),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1})}parseNamespaceRules(){for(const t of this.namespaceRules){this.namespaceOptions.push(t.namespaceName);const e={login:"disabled",password:"disabled"};this.parseAttributes(e,t.requiredAttributes,"required"),this.parseAttributes(e,t.optionalAttributes,"optional"),this.parsedRules.set(t.namespaceName,e)}}parseAttributes(t,e,i){for(const n of e)switch(n){case"login":t.login=i;break;case"password":t.password=i}}onConfirm(){this.loading=!0;const t={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},e=this.namespaceControl.get("namespace").value,i=this.parsedRules.get(e);"No namespace"!==e&&(t.userData.namespace=e),"disabled"!==i.login&&(t.userData.login=this.namespaceControl.get("login").value),"disabled"!==i.password&&(t.sendActivationLink=this.namespaceControl.get("passwordReset").value,t.userData.password=this.namespaceControl.get("password").value),"never"!==this.expiration&&(t.validityTo=this.expiration),this.membersService.createSponsoredMember(t).subscribe(t=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=t,t&&t.userAttributes&&t.userAttributes.filter(t=>"login-namespace"===t.baseFriendlyName).filter(t=>t.friendlyNameParameter===e).filter(t=>null!==t.value).forEach(t=>{this.loginThatWasSet=t.value.toString()}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(t){const e=this.parsedRules.get(t),i=this.namespaceControl.get("login"),n=this.namespaceControl.get("password"),s=this.namespaceControl.get("passwordReset"),o=this.namespaceControl.get("showPassword");"disabled"!==e.login?(0,r.mH)(i,"optional"===e.login?[]:[u.kI.required]):(i.disable(),i.setValue("")),"disabled"!==e.password?((0,r.mH)(n,"optional"===e.password?[]:[u.kI.required],[it(t,this.usersService,this.apiRequestConfiguration)]),(0,r.mH)(s,[]),(0,r.mH)(o,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(n.disable(),n.setValue(""),s.disable(),s.setValue(!1),o.disable(),o.setValue(!1))}passwordResetChange(){const t=this.namespaceControl.get("password");this.namespaceControl.get("passwordReset").value?(t.disable(),t.setValue("")):t.enable()}setExpiration(t){this.expiration="never"===t?"never":(0,l.p6)(t,"yyyy-MM-dd","en-GB")}getPasswordDisabledTooltip(){return this.namespaceControl.get("passwordReset").value?this.translator.instant("DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_VIA_EMAIL"):this.translator.instant("DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_DISABLED")}}return t.\u0275fac=function(e){return new(e||t)(b.Y36(a.so),b.Y36(a.WI),b.Y36(n.uq),b.Y36(c.F5),b.Y36(n.Fv),b.Y36(c.d6),b.Y36(w.sK),b.Y36(n.Ct),b.Y36(c.x4),b.Y36(u.qu))},t.\u0275cmp=b.Xpm({type:t,selectors:[["app-create-sponsored-member-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],[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"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-auto",3,"disabled"],[1,"dialog-container","mt-4",3,"formGroup"],["required","","formControlName","namespace",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","login",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],["matInput","","formControlName","password",3,"type","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["color","warn","matSuffix","",3,"matTooltip",4,"ngIf"],["formControlName","showPassword",1,"example-margin"],["matInput","","required","","formControlName","email",3,"placeholder"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-2",3,"disabled"],[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"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-2",3,"disabled","click"],["alert_type","error"],[3,"value"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",3,"matTooltip"],[3,"users","disableAutoSelect","userSelected"],[1,"bigger-font","mb-2"],[1,"mr-2","mb-2"],["alert_type","warn"],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(t,e){1&t&&(b.TgZ(0,"div"),b.YNc(1,L,3,3,"h1",0),b.YNc(2,N,1,0,"mat-spinner",1),b.YNc(3,W,111,118,"div",2),b.YNc(4,X,20,20,"div",2),b.YNc(5,tt,4,3,"div",3),b.qZA()),2&t&&(b.Tol(e.theme),b.xp6(1),b.Q6J("ngIf",!e.successfullyCreated),b.xp6(1),b.Q6J("ngIf",e.loading),b.xp6(1),b.Q6J("ngIf",!e.loading&&!e.successfullyCreated),b.xp6(1),b.Q6J("ngIf",!e.loading&&e.successfullyCreated),b.xp6(1),b.Q6J("ngIf",e.successfullyCreated))},directives:[l.O5,a.uh,_.$g,a.xY,y.Vq,y.C0,y.VY,u._Y,u.JL,u.sg,A.KE,v.Nt,u.Fj,u.JJ,u.u,u.Q7,a.H8,T.lW,y.Ic,C.gD,l.sg,S.gM,E.oG,y.fd,k.VQ,u.On,k.U0,R,I.w,A.TO,O.ey,A.R9,P.Hw,D.S],pipes:[w.X$,M.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}"]}),t})();var st=i(67004),ot=i(43005),rt=i(19139),at=i(78364);function ct(t,e){1&t&&b._UZ(0,"mat-spinner",3)}function ut(t,e){1&t&&(b._uU(0),b.ALo(1,"translate")),2&t&&b.Oqu(b.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function lt(t,e){1&t&&(b.TgZ(0,"app-alert",32),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function ht(t,e){if(1&t&&(b.TgZ(0,"mat-option",33),b._uU(1),b.qZA()),2&t){const t=e.$implicit;b.Q6J("value",t),b.xp6(1),b.hij(" ",t," ")}}function dt(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function pt(t,e){1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function gt(t,e){if(1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t){const t=b.oxw(2);b.xp6(1),b.AsE(" ",b.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",t.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function ft(t,e){if(1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t){const t=b.oxw(2);b.xp6(1),b.AsE(" ",b.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",t.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function mt(t,e){if(1&t&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t){const t=b.oxw(2);b.xp6(1),b.AsE(" ",b.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",t.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function bt(t,e){1&t&&(b._uU(0),b.ALo(1,"translate")),2&t&&b.Oqu(b.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function wt(t,e){1&t&&(b.TgZ(0,"app-alert",34),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function _t(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"mat-radio-group",35),b.NdJ("ngModelChange",function(e){return b.CHM(t),b.oxw(2).passwordReset=e}),b.TgZ(1,"mat-radio-button",36),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"mat-radio-button",37),b._uU(5),b.ALo(6,"translate"),b.qZA(),b.qZA()}if(2&t){const t=b.oxw(2);b.Q6J("ngModel",t.passwordReset),b.xp6(2),b.hij(" ",b.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),b.xp6(3),b.hij(" ",b.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function yt(t,e){1&t&&(b._uU(0),b.ALo(1,"translate")),2&t&&b.Oqu(b.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function At(t,e){1&t&&(b._uU(0),b.ALo(1,"translate")),2&t&&b.Oqu(b.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function vt(t,e){1&t&&(b.TgZ(0,"div"),b.TgZ(1,"app-alert",38),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.qZA()),2&t&&(b.xp6(2),b.Oqu(b.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function Tt(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"div"),b.TgZ(1,"h5",39),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"perun-web-apps-create-group-form",40),b.NdJ("nameChanged",function(e){return b.CHM(t),b.oxw(2).name=e})("descriptionChanged",function(e){return b.CHM(t),b.oxw(2).description=e})("parentGroupChanged",function(e){return b.CHM(t),b.oxw(2).parentGroup=e})("asSubgroupChanged",function(e){return b.CHM(t),b.oxw(2).asSubGroup=e}),b.qZA(),b.qZA()}if(2&t){const t=b.oxw(2);b.xp6(2),b.Oqu(b.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")),b.xp6(2),b.Q6J("voGroups",t.allVoGroups)}}const Ct=function(){return["select","id","name","description"]};function St(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"div"),b.TgZ(1,"h5",39),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"perun-web-apps-immediate-filter",41),b.NdJ("filter",function(e){return b.CHM(t),b.oxw(2).applyFilter(e)}),b.qZA(),b.TgZ(5,"perun-web-apps-groups-list",42),b.NdJ("page",function(e){return b.CHM(t),b.oxw(2).groupTablePageChanged(e)}),b.qZA(),b.qZA()}if(2&t){const t=b.oxw(2);b.xp6(2),b.Oqu(b.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")),b.xp6(2),b.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),b.xp6(1),b.Q6J("groups",t.assignableGroups)("selection",t.selection)("displayedColumns",b.DdM(10,Ct))("disableRouting",!0)("pageSize",t.pageSize)("filter",t.filterValue)}}function Et(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"div",4),b.TgZ(1,"mat-horizontal-stepper",5),b.TgZ(2,"mat-step",6),b.YNc(3,ut,2,3,"ng-template",7),b.YNc(4,lt,3,3,"app-alert",8),b.TgZ(5,"h5",9),b._uU(6),b.ALo(7,"translate"),b.qZA(),b.TgZ(8,"form",10),b.TgZ(9,"mat-form-field"),b.TgZ(10,"mat-select",11),b.ALo(11,"translate"),b.YNc(12,ht,2,2,"mat-option",12),b.qZA(),b.YNc(13,dt,3,3,"mat-error",13),b.qZA(),b.TgZ(14,"div"),b._uU(15),b.ALo(16,"translate"),b.qZA(),b.TgZ(17,"div",14),b._uU(18),b.qZA(),b.TgZ(19,"mat-form-field",15),b.TgZ(20,"mat-label"),b._uU(21),b.ALo(22,"translate"),b.qZA(),b.TgZ(23,"textarea",16),b._uU(24," "),b.qZA(),b.YNc(25,pt,3,3,"mat-error",13),b.YNc(26,gt,3,4,"mat-error",13),b.YNc(27,ft,3,4,"mat-error",13),b.YNc(28,mt,3,4,"mat-error",13),b.qZA(),b.TgZ(29,"div",17),b.TgZ(30,"button",18),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCancel()}),b._uU(31),b.ALo(32,"translate"),b.qZA(),b.TgZ(33,"button",19),b._uU(34),b.ALo(35,"translate"),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.TgZ(36,"mat-step"),b.YNc(37,bt,2,3,"ng-template",7),b.TgZ(38,"div",9),b.TgZ(39,"h5",20),b._uU(40),b.ALo(41,"translate"),b.qZA(),b.YNc(42,wt,3,3,"app-alert",21),b.YNc(43,_t,7,7,"mat-radio-group",22),b.qZA(),b.TgZ(44,"div",17),b.TgZ(45,"button",18),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCancel()}),b._uU(46),b.ALo(47,"translate"),b.qZA(),b.TgZ(48,"button",23),b._uU(49),b.ALo(50,"translate"),b.qZA(),b.TgZ(51,"button",24),b._uU(52),b.ALo(53,"translate"),b.qZA(),b.qZA(),b.qZA(),b.TgZ(54,"mat-step"),b.YNc(55,yt,2,3,"ng-template",7),b.TgZ(56,"div",9),b.TgZ(57,"h5",20),b._uU(58),b.ALo(59,"translate"),b.qZA(),b.TgZ(60,"perun-web-apps-expiration-select",25),b.NdJ("datePicker",function(e){return b.CHM(t),b.oxw().setExpiration(e)}),b.qZA(),b.qZA(),b.TgZ(61,"div",17),b.TgZ(62,"button",18),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCancel()}),b._uU(63),b.ALo(64,"translate"),b.qZA(),b.TgZ(65,"button",23),b._uU(66),b.ALo(67,"translate"),b.qZA(),b.TgZ(68,"button",24),b._uU(69),b.ALo(70,"translate"),b.qZA(),b.qZA(),b.qZA(),b.TgZ(71,"mat-step"),b.YNc(72,At,2,3,"ng-template",7),b.TgZ(73,"div",9),b.TgZ(74,"h5",20),b._uU(75),b.ALo(76,"translate"),b.qZA(),b.TgZ(77,"mat-radio-group",26),b.NdJ("change",function(){return b.CHM(t),b.oxw().groupAssigmentChanged()})("ngModelChange",function(e){return b.CHM(t),b.oxw().groupAssignment=e}),b.TgZ(78,"mat-radio-button",27),b._uU(79),b.ALo(80,"translate"),b.qZA(),b.TgZ(81,"span",28),b.ALo(82,"translate"),b.TgZ(83,"mat-radio-button",29),b._uU(84),b.ALo(85,"translate"),b.qZA(),b.qZA(),b.TgZ(86,"span",28),b.ALo(87,"translate"),b.TgZ(88,"mat-radio-button",30),b._uU(89),b.ALo(90,"translate"),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.YNc(91,vt,4,3,"div",13),b.YNc(92,Tt,5,4,"div",13),b.YNc(93,St,6,11,"div",13),b.TgZ(94,"div",17),b.TgZ(95,"button",18),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCancel()}),b._uU(96),b.ALo(97,"translate"),b.qZA(),b.TgZ(98,"button",23),b._uU(99),b.ALo(100,"translate"),b.qZA(),b.TgZ(101,"button",31),b.NdJ("click",function(){return b.CHM(t),b.oxw().onSubmit()}),b._uU(102),b.ALo(103,"translate"),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.qZA()}if(2&t){const t=b.oxw();b.xp6(1),b.Q6J("linear",!0),b.xp6(1),b.Q6J("stepControl",t.usersInfoFormGroup),b.xp6(2),b.Q6J("ngIf",t.functionalityNotSupported),b.xp6(2),b.Oqu(b.lcZ(7,50,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),b.xp6(2),b.Q6J("formGroup",t.usersInfoFormGroup),b.xp6(2),b.s9C("placeholder",b.lcZ(11,52,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),b.xp6(2),b.Q6J("ngForOf",t.namespaceOptions),b.xp6(1),b.Q6J("ngIf",t.usersInfoFormGroup.hasError("required","namespace")),b.xp6(2),b.Oqu(b.lcZ(16,54,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),b.xp6(3),b.Oqu(t.getSelectedNamespaceRules().csvGenHeaderDescription),b.xp6(3),b.Oqu(b.lcZ(22,56,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),b.xp6(2),b.s9C("placeholder",t.getSelectedNamespaceRules().csvGenPlaceholder),b.xp6(2),b.Q6J("ngIf",t.usersInfoFormGroup.hasError("required","sponsoredMembers")),b.xp6(1),b.Q6J("ngIf",t.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),b.xp6(1),b.Q6J("ngIf",t.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),b.xp6(1),b.Q6J("ngIf",t.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),b.xp6(3),b.hij(" ",b.lcZ(32,58,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),b.xp6(2),b.Q6J("disabled",t.usersInfoFormGroup.invalid),b.xp6(1),b.hij(" ",b.lcZ(35,60,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," "),b.xp6(6),b.Oqu(b.lcZ(41,62,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")),b.xp6(2),b.Q6J("ngIf","No namespace"===t.getSelectedNamespaceRules().namespaceName),b.xp6(1),b.Q6J("ngIf","No namespace"!==t.getSelectedNamespaceRules().namespaceName),b.xp6(3),b.hij(" ",b.lcZ(47,64,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),b.xp6(3),b.hij(" ",b.lcZ(50,66,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "),b.xp6(2),b.Q6J("disabled",null===t.passwordReset),b.xp6(1),b.hij(" ",b.lcZ(53,68,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," "),b.xp6(6),b.Oqu(b.lcZ(59,70,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),b.xp6(2),b.Q6J("expiration",t.expiration),b.xp6(3),b.hij(" ",b.lcZ(64,72,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),b.xp6(3),b.hij(" ",b.lcZ(67,74,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "),b.xp6(2),b.Q6J("disabled",null===t.expiration),b.xp6(1),b.hij("",b.lcZ(70,76,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," "),b.xp6(6),b.Oqu(b.lcZ(76,78,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),b.xp6(2),b.Q6J("ngModel",t.groupAssignment),b.xp6(2),b.hij(" ",b.lcZ(80,80,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),b.xp6(2),b.s9C("matTooltip",b.lcZ(82,82,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),b.Q6J("matTooltipDisabled",!t.manualMemberAddingBlocked&&t.createGroupAuth),b.xp6(2),b.Q6J("disabled",t.manualMemberAddingBlocked||!t.createGroupAuth),b.xp6(1),b.hij(" ",b.lcZ(85,84,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),b.xp6(2),b.s9C("matTooltip",b.lcZ(87,86,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),b.Q6J("matTooltipDisabled",!t.manualMemberAddingBlocked&&0!==t.assignableGroups.length),b.xp6(2),b.Q6J("disabled",t.manualMemberAddingBlocked||0===t.assignableGroups.length),b.xp6(1),b.hij(" ",b.lcZ(90,88,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),b.xp6(2),b.Q6J("ngIf","none"===t.groupAssignment),b.xp6(1),b.Q6J("ngIf","new"===t.groupAssignment),b.xp6(1),b.Q6J("ngIf","existing"===t.groupAssignment),b.xp6(3),b.hij(" ",b.lcZ(97,90,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),b.xp6(3),b.hij(" ",b.lcZ(100,92,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "),b.xp6(2),b.Q6J("disabled",null===t.groupAssignment||"existing"===t.groupAssignment&&0===t.selection.selected.length||"new"===t.groupAssignment&&(0===t.name.length||0===t.description.length)||!0===t.asSubGroup&&null===t.parentGroup),b.xp6(1),b.hij(" ",b.lcZ(103,94,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}let kt=(()=>{class t{constructor(t,e,i,n,r,a,c,u,l,h,d){this.dialogRef=t,this.data=e,this.store=i,this.membersService=n,this.notificator=r,this.translate=a,this.guiAuthResolver=c,this.groupsService=u,this.attributesService=l,this.formBuilder=h,this.tableConfigService=d,this.loading=!1,this.functionalityNotSupported=!1,this.emailRegx=/^(([^<>+()[\]\\.,;:\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]{2,3}))$/,this.namespaceOptions=[],this.namespaceRules=[],this.passwordReset="generate",this.groupAssignment=null,this.expiration="never",this.assignableGroups=[],this.allVoGroups=[],this.selection=new s.Ov(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.submitDisabled=!1,this.filterValue="",this.tableId=o.rc,this.groupAttrNames=[st.r.GROUP_SYNC_ENABLED,st.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}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.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",u.kI.required],sponsoredMembers:["",[u.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(t=>{this.manualMemberAddingBlocked=this.hasAttributeEnabled(t,"blockManualMemberAdding"),!0!==this.manualMemberAddingBlocked?this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(t=>{this.allVoGroups=t.filter(t=>"members"!==t.name),this.assignableGroups=this.filterAssignableGroups(t),this.membersService.getAllNamespacesRules().subscribe(t=>{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(t),this.namespaceRules.forEach(t=>this.namespaceOptions.push(t.namespaceName)),0===this.namespaceOptions.length?this.functionalityNotSupported=!0:this.usersInfoFormGroup.setValue({namespace:this.namespaceOptions[0],sponsoredMembers:""}),this.loading=!1})},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1)}filterAssignableGroups(t){const e=[];for(const i of t)this.hasAttributeEnabled(i.attributes,"synchronizationEnabled")||this.hasAttributeEnabled(i.attributes,"blockManualMemberAdding")||!this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[i])||e.push(i);return e}hasAttributeEnabled(t,e){return t.some(t=>t.friendlyName===e&&null!==t.value&&"true"===t.value.toString())}createOutputObjects(t){let e="",i="",n="",s="";const o=[];for(const r of Object.keys(t)){e=r.replace(";"," ").split(";")[0];for(const e of Object.keys(t[r]))switch(e){case"status":i=t[r][e];break;case"login":n=t[r][e];break;case"password":s=t[r][e]}o.push({name:e,status:i,login:n,password:s})}return o}onGenerate(){this.loading=!0;const t=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),e=this.getSelectedNamespaceRules().csvGenHeader,i=[];for(const s of t){const t=this.parseMemberLine(s);if("format"===t||"email"===t)return void(this.loading=!1);""!==t&&i.push(t)}const n={data:i,header:e,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset};"none"!==this.groupAssignment&&(n.groups=this.groupIds),"never"!==this.expiration&&(n.validityTo=(0,l.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(n.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(n).subscribe(t=>{(0,r.O6)(this.createOutputObjects(t),"csv","member-logins"),this.notificator.showSuccess(this.translate.instant("DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}parseMemberLine(t){const e=t.trim();if(""===e)return"";const i=e.split(";"),n=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(i.length!==n.length)return"format";if("mail"===n[2].slice(n[2].length-4).toLowerCase()&&!i[2].trim().match(this.emailRegx))return"email";if("login"===n[3]&&""===i[3].trim())return"login";let s="";for(const o of i)s+=o.trim()+";";return s.slice(0,-1)}userInputValidator(){return t=>{const e=t.value.split("\n");for(const i of e){const t=this.parseMemberLine(i);if("format"===t)return{invalidFormat:{value:i}};if("email"===t)return{invalidEmail:{value:i}};if("login"===t)return{invalidLogin:{value:i}}}return null}}setExpiration(t){this.expiration="never"===t?"never":(0,l.p6)(t,"yyyy-MM-dd","en-GB")}groupTablePageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}applyFilter(t){this.filterValue=t}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(t=>{this.groupIds.push(t.id),this.onGenerate()},()=>this.loading=!1):this.groupsService.createGroupWithVoNameDescription(this.data.voId,this.name,this.description).subscribe(t=>{this.groupIds.push(t.id),this.onGenerate()},()=>this.loading=!1):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(t=>t.id)),this.onGenerate())}getSelectedNamespaceRules(){return this.namespaceRules.find(t=>t.namespaceName===this.usersInfoFormGroup.get("namespace").value)}}return t.\u0275fac=function(e){return new(e||t)(b.Y36(a.so),b.Y36(a.WI),b.Y36(c.d6),b.Y36(n.uq),b.Y36(c.V6),b.Y36(w.sK),b.Y36(c.x4),b.Y36(n.ff),b.Y36(n.H8),b.Y36(u.qu),b.Y36(o.dB))},t.\u0275cmp=b.Xpm({type:t,selectors:[["app-generate-sponsored-members-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"mt-2"],[1,"flex-container","mt-2",3,"formGroup"],["required","","formControlName","namespace",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"font-weight-bold"],[1,"pt-2"],["id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","rows","8","cols","50","matInput","","formControlName","sponsoredMembers",1,"md-textarea","form-control",3,"placeholder"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-auto",3,"disabled"],[1,"mb-4"],["alert_type","info",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","color","accent","matStepperNext","",3,"disabled"],[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"],["mat-flat-button","","color","accent",3,"disabled","click"],["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","nameChanged","descriptionChanged","parentGroupChanged","asSubgroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","displayedColumns","disableRouting","pageSize","filter","page"]],template:function(t,e){1&t&&(b.TgZ(0,"div"),b.TgZ(1,"h1",0),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.YNc(4,ct,1,0,"mat-spinner",1),b.YNc(5,Et,104,96,"div",2),b.qZA()),2&t&&(b.Tol(e.theme),b.xp6(2),b.Oqu(b.lcZ(3,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),b.xp6(2),b.Q6J("ngIf",e.loading),b.xp6(1),b.Q6J("ngIf",!e.loading))},directives:[a.uh,l.O5,_.$g,a.xY,y.Vq,y.C0,y.VY,u._Y,u.JL,u.sg,A.KE,C.gD,u.Q7,u.JJ,u.u,l.sg,A.hX,v.Nt,u.Fj,a.H8,T.lW,y.Ic,y.fd,R,k.VQ,u.On,k.U0,S.gM,I.w,O.ey,A.TO,ot.r,rt.L,at.W],pipes:[w.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();var xt=i(4252);function Rt(t,e){1&t&&b._UZ(0,"mat-spinner",12)}const It=function(){return["checkbox","id","fullName","status","sponsored","email"]};function Ot(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"perun-web-apps-members-list",13),b.NdJ("page",function(e){return b.CHM(t),b.oxw().pageChanged(e)}),b.qZA()}if(2&t){const t=b.oxw();b.Q6J("pageSize",t.pageSize)("hidden",t.loading)("members",t.members)("selection",t.selection)("displayedColumns",b.DdM(6,It))("disableRouting",!0)}}function Pt(t,e){1&t&&(b.TgZ(0,"app-alert",14),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let Dt=(()=>{class t{constructor(t,e,i,n,r,a,c){this.dialogRef=t,this.data=e,this.store=i,this.membersService=n,this.notificator=r,this.translate=a,this.tableConfigService=c,this.loading=!1,this.tableId=o.US,this.expiration="never",this.searchCtrl=new u.NI("",[u.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new s.Ov(!0,[])}ngOnInit(){this.theme=this.data.theme,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId)}onCancel(){this.dialogRef.close(!1)}sponsor(t){if(this.loading=!0,0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const e=t.pop();e.sponsored?this.membersService.sponsorMember(e.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(t)},()=>this.loading=!1):this.membersService.setSponsorshipForMember(e.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(t)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const t=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(t)}setExpiration(t){this.expiration="never"===t?"never":(0,l.p6)(t,"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,[st.r.MEMBER_DEF_EXPIRATION,st.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(t=>{this.members=t,this.loading=!1},()=>this.loading=!1))}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(b.Y36(a.so),b.Y36(a.WI),b.Y36(c.d6),b.Y36(n.uq),b.Y36(c.V6),b.Y36(w.sK),b.Y36(o.dB))},t.\u0275cmp=b.Xpm({type:t,selectors:[["app-sponsor-existing-member-dialog"]],decls:31,vars:30,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"ml-auto",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","hidden","members","selection","displayedColumns","disableRouting","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","hidden","members","selection","displayedColumns","disableRouting","page"],["alert_type","warn"]],template:function(t,e){1&t&&(b.TgZ(0,"div"),b.TgZ(1,"h1",0),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"div",1),b.TgZ(5,"mat-form-field",2),b.TgZ(6,"label"),b.TgZ(7,"input",3),b.NdJ("keyup.enter",function(){return e.onSearchByString()}),b.ALo(8,"translate"),b.qZA(),b.qZA(),b.TgZ(9,"mat-error"),b._uU(10),b.ALo(11,"translate"),b.qZA(),b.qZA(),b.TgZ(12,"button",4),b.NdJ("click",function(){return e.onSearchByString()}),b._uU(13),b.ALo(14,"translate"),b.qZA(),b.YNc(15,Rt,1,0,"mat-spinner",5),b.YNc(16,Ot,1,7,"perun-web-apps-members-list",6),b.YNc(17,Pt,3,3,"app-alert",7),b.TgZ(18,"div"),b._UZ(19,"br"),b.TgZ(20,"h6"),b._uU(21),b.ALo(22,"translate"),b.qZA(),b.TgZ(23,"perun-web-apps-expiration-select",8),b.NdJ("datePicker",function(t){return e.setExpiration(t)}),b.qZA(),b.qZA(),b.qZA(),b.TgZ(24,"div",9),b.TgZ(25,"button",10),b.NdJ("click",function(){return e.onCancel()}),b._uU(26),b.ALo(27,"translate"),b.qZA(),b.TgZ(28,"button",11),b.NdJ("click",function(){return e.onSubmit()}),b._uU(29),b.ALo(30,"translate"),b.qZA(),b.qZA(),b.qZA()),2&t&&(b.Tol(e.theme),b.xp6(2),b.Oqu(b.lcZ(3,16,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),b.xp6(5),b.s9C("placeholder",b.lcZ(8,18,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),b.Q6J("formControl",e.searchCtrl),b.xp6(3),b.hij(" ",b.lcZ(11,20,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," "),b.xp6(2),b.Q6J("disabled",e.loading),b.xp6(1),b.hij(" ",b.lcZ(14,22,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," "),b.xp6(2),b.Q6J("ngIf",e.loading),b.xp6(1),b.Q6J("ngIf",e.firstSearchDone),b.xp6(1),b.Q6J("ngIf",!e.firstSearchDone),b.xp6(4),b.Oqu(b.lcZ(22,24,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),b.xp6(5),b.hij(" ",b.lcZ(27,26,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),b.xp6(2),b.Q6J("disabled",e.loading||0===e.selection.selected.length),b.xp6(1),b.hij(" ",b.lcZ(30,28,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},directives:[a.uh,a.xY,A.KE,v.Nt,u.Fj,u.JJ,u.oH,A.TO,T.lW,l.O5,R,a.H8,_.$g,xt.O,I.w],pipes:[w.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),t})();var Mt=i(57629),Lt=i(59403),Nt=i(8055),zt=i(58623),Ft=i(67033),Zt=i(79592),Bt=i(95121),qt=i(82819),Ut=i(84534);function Ht(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"th",15),b.TgZ(1,"mat-checkbox",16),b.NdJ("change",function(e){b.CHM(t);const i=b.oxw();return e?i.masterToggle():null}),b.qZA(),b.qZA()}if(2&t){const t=b.oxw();b.xp6(1),b.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function jt(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"td",17),b.TgZ(1,"mat-checkbox",18),b.NdJ("change",function(e){const i=b.CHM(t).$implicit,n=b.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),b.qZA(),b.qZA()}if(2&t){const t=e.$implicit,i=b.oxw();b.xp6(1),b.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function Gt(t,e){1&t&&(b.TgZ(0,"th",19),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")))}function Yt(t,e){if(1&t&&(b.TgZ(0,"td",17),b._uU(1),b.qZA()),2&t){const t=e.$implicit;b.xp6(1),b.Oqu(t.member.id)}}function Vt(t,e){1&t&&(b.TgZ(0,"th",19),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")))}function Kt(t,e){if(1&t&&(b.TgZ(0,"td",20),b._uU(1),b.ALo(2,"userFullName"),b.qZA()),2&t){const t=e.$implicit;b.xp6(1),b.Oqu(b.lcZ(2,1,t.member.user))}}function Jt(t,e){1&t&&(b.TgZ(0,"th",19),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")))}function $t(t,e){if(1&t&&(b.TgZ(0,"span"),b._uU(1),b.ALo(2,"userFullName"),b._UZ(3,"br"),b.qZA()),2&t){const t=e.$implicit;b.xp6(1),b.hij(" ",b.lcZ(2,1,t.user),"")}}function Qt(t,e){if(1&t&&(b.TgZ(0,"td",20),b.YNc(1,$t,4,3,"span",21),b.qZA()),2&t){const t=e.$implicit;b.xp6(1),b.Q6J("ngForOf",t.sponsors)}}function Wt(t,e){1&t&&b._UZ(0,"th",19)}function Xt(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"span",24),b.ALo(1,"translate"),b.TgZ(2,"button",25),b.NdJ("mouseenter",function(){return b.CHM(t),b.oxw(2).disableRouting=!0})("mouseleave",function(){b.CHM(t);const e=b.oxw(2);return e.disableRouting=e.routingStrategy})("click",function(){b.CHM(t);const e=b.oxw().$implicit;return b.oxw().resetPassword(e)}),b.TgZ(3,"mat-icon"),b._uU(4,"vpn_key"),b.qZA(),b.qZA(),b.qZA()}if(2&t){const t=b.oxw(2);b.Q6J("matTooltipPosition","above")("matTooltip",b.lcZ(1,3,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),b.xp6(2),b.Q6J("disabled",t.loading)}}function te(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"td",20),b.TgZ(1,"button",22),b.NdJ("click",function(){const e=b.CHM(t).$implicit;return b.oxw().showSponsors(e)})("mouseenter",function(){return b.CHM(t),b.oxw().disableRouting=!0})("mouseleave",function(){b.CHM(t);const e=b.oxw();return e.disableRouting=e.routingStrategy}),b.TgZ(2,"mat-icon"),b._uU(3,"edit"),b.qZA(),b.qZA(),b.YNc(4,Xt,5,5,"span",23),b.qZA()}if(2&t){const t=e.$implicit,i=b.oxw();b.xp6(4),b.Q6J("ngIf",i.passwdResetAuth(t))}}function ee(t,e){1&t&&b._UZ(0,"tr",26)}const ie=function(t,e){return["/organizations",t,"members",e]};function ne(t,e){if(1&t&&b._UZ(0,"tr",27),2&t){const t=e.$implicit,i=b.oxw();b.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),b.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:b.WLB(6,ie,t.member.voId,t.member.id))("routerLink",i.disableRouting?null:b.WLB(9,ie,t.member.voId,t.member.id))}}function se(t,e){1&t&&(b.TgZ(0,"app-alert",28),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function oe(t,e){1&t&&(b.TgZ(0,"app-alert",28),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}let re=(()=>{class t{constructor(t,e,i,n,s){this.dialog=t,this.authResolver=e,this.storeService=i,this.attributesManager=n,this.tableCheckbox=s,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","sponsors","menu"],this.disableRouting=!1,this.pageSize=10,this.page=new b.vpe,this.refreshTable=new b.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource(),this.routingStrategy=this.disableRouting}getSortDataForColumn(t,e){var i;switch(e){case"id":return t.member.id.toString();case"name":return t.member.user?t.member.user.lastName?t.member.user.lastName:null!==(i=t.member.user.firstName)&&void 0!==i?i:"":"";case"sponsors":return t.sponsors.length.toString();default:return""}}getDataForColumn(t,e){switch(e){case"id":return t.member.id.toString();case"name":return t.member.user?(0,r.bD)(t.member.user):"";case"sponsors":return t.sponsors.map(t=>(0,r.bD)(t.user)).join();default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new Ft.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getSortDataForColumn,this)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(t){const e=(0,r.kZ)();e.width="650px",e.data={sponsors:t.sponsors,member:t.member,theme:"vo-theme"},this.dialog.open(Zt.H,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.member.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}resetPassword(t){this.loading=!0;const e=this.storeService.get("password_namespace_attributes").map(t=>(t=t.split(":"))[t.length-1]);this.attributesManager.getLogins(t.member.userId).subscribe(i=>{const n=i.filter(t=>e.includes(t.friendlyNameParameter)),s=(0,r.kZ)();s.width="400px",s.data={userId:t.member.userId,memberId:t.member.id,logins:n},this.dialog.open(Bt.m,s).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(t){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:t.member.voId,beanName:"Vo"},t.member])}}return t.\u0275fac=function(e){return new(e||t)(b.Y36(a.uw),b.Y36(c.x4),b.Y36(c.d6),b.Y36(n.H8),b.Y36(c.UA))},t.\u0275cmp=b.Xpm({type:t,selectors:[["app-sponsored-members-list"]],viewQuery:function(t,e){if(1&t&&(b.Gf(zt.YE,7),b.Gf(r.l9,7)),2&t){let t;b.iGM(t=b.CRH())&&(e.matSort=t.first),b.iGM(t=b.CRH())&&(e.child=t.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSize:"pageSize"},outputs:{page:"page",refreshTable:"refreshTable"},features:[b.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-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(t,e){1&t&&(b.TgZ(0,"div",0),b.TgZ(1,"perun-web-apps-table-wrapper",1),b.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),b.TgZ(2,"table",2),b.ynx(3,3),b.YNc(4,Ht,2,3,"th",4),b.YNc(5,jt,2,2,"td",5),b.BQk(),b.ynx(6,6),b.YNc(7,Gt,3,3,"th",7),b.YNc(8,Yt,2,1,"td",5),b.BQk(),b.ynx(9,8),b.YNc(10,Vt,3,3,"th",7),b.YNc(11,Kt,3,3,"td",9),b.BQk(),b.ynx(12,10),b.YNc(13,Jt,3,3,"th",7),b.YNc(14,Qt,2,1,"td",9),b.BQk(),b.ynx(15,11),b.YNc(16,Wt,1,0,"th",7),b.YNc(17,te,5,1,"td",9),b.BQk(),b.YNc(18,ee,1,0,"tr",12),b.YNc(19,ne,1,12,"tr",13),b.qZA(),b.qZA(),b.qZA(),b.YNc(20,se,3,3,"app-alert",14),b.YNc(21,oe,3,3,"app-alert",14)),2&t&&(b.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.sponsoredMembers.length),b.xp6(1),b.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),b.xp6(1),b.Q6J("dataSource",e.dataSource),b.xp6(16),b.Q6J("matHeaderRowDef",e.displayedColumns),b.xp6(1),b.Q6J("matRowDefColumns",e.displayedColumns),b.xp6(1),b.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.sponsoredMembers.length),b.xp6(1),b.Q6J("ngIf",0===e.sponsoredMembers.length))},directives:[qt.l,Ft.BZ,zt.YE,Ft.w1,Ft.fO,Ft.Dz,Ft.as,Ft.nj,l.O5,Ft.ge,E.oG,Ft.ev,zt.nU,l.sg,T.lW,P.Hw,S.gM,Ft.XQ,Ft.Gk,Ut.YH,Mt.rH,I.w],pipes:[w.X$,M.d],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function ae(t,e){if(1&t&&(b.TgZ(0,"button",10),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&t){const t=b.oxw(),e=b.MAs(9);b.Q6J("disabled",t.findSponsorsAuth&&0===t.voSponsors.length)("matMenuTriggerFor",e),b.xp6(1),b.hij(" ",b.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function ce(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"button",11),b.NdJ("click",function(){return b.CHM(t),b.oxw().onCreate()}),b._uU(1),b.ALo(2,"translate"),b.qZA()}2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function ue(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"button",11),b.NdJ("click",function(){return b.CHM(t),b.oxw().onGenerate()}),b._uU(1),b.ALo(2,"translate"),b.qZA()}2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function le(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"button",12),b.NdJ("click",function(){return b.CHM(t),b.oxw().onSponsorExistingMember()}),b._uU(1),b.ALo(2,"translate"),b.qZA()}2&t&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function he(t,e){1&t&&b._UZ(0,"mat-spinner",13)}function de(t,e){if(1&t){const t=b.EpF();b.TgZ(0,"app-sponsored-members-list",14),b.NdJ("page",function(e){return b.CHM(t),b.oxw().pageChanged(e)})("refreshTable",function(){return b.CHM(t),b.oxw().refresh()}),b.qZA()}if(2&t){const t=b.oxw();b.Q6J("sponsoredMembers",t.members)("disableRouting",!t.routeAuth)("selection",t.selection)("filterValue",t.searchString)("pageSize",t.pageSize)}}let pe=(()=>{class t{constructor(t,e,i,n,r,a,c){this.membersManager=t,this.route=e,this.dialog=i,this.authResolver=n,this.tableConfigService=r,this.storeService=a,this.authzResolver=c,this.members=[],this.voSponsors=[],this.attrNames=[],this.selection=new s.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=o.Bf}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(t=>{this.voId=t.voId,this.vo={id:this.voId,beanName:"Vo"};const e=["SPONSOR"],i=new Map;this.authResolver.getRolesAuthorization(e,this.vo,i),this.findSponsorsAuth=i.get(e[0]).readAuth,this.findSponsorsAuth?this.authzResolver.getAuthzRichAdmins(h.u.SPONSOR,this.vo.id,"Vo",[st.r.USER_DEF_PREFERRED_MAIL],!1,!1).subscribe(t=>{this.voSponsors=t,this.setAuthRights(),this.refresh()}):(this.setAuthRights(),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 t=(0,r.kZ)();t.width="620px",t.data={entityId:this.voId,voId:this.voId,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(nt,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(t=>{this.storeService.setPerunPrincipal(t),this.refresh()}))})}onGenerate(){const t=(0,r.kZ)();t.width="750px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(kt,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(t=>{this.storeService.setPerunPrincipal(t),this.refresh()}))})}onSponsorExistingMember(){const t=(0,r.kZ)();t.width="650px",t.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(Dt,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(t=>{this.storeService.setPerunPrincipal(t),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.voId,this.attrNames).subscribe(t=>{this.selection.clear(),this.members=t,this.setAuthRights(),this.loading=!1})}applyFilter(t){this.searchString=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="VoSponsoredMembersComponent",t.\u0275fac=function(e){return new(e||t)(b.Y36(n.uq),b.Y36(Mt.gz),b.Y36(a.uw),b.Y36(c.x4),b.Y36(o.dB),b.Y36(c.d6),b.Y36(n.Ct))},t.\u0275cmp=b.Xpm({type:t,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(t,e){2&t&&b.ekj("router-component",e.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2 dropdown-toggle",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"sponsoredMembers","disableRouting","selection","filterValue","pageSize","page","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"sponsoredMembers","disableRouting","selection","filterValue","pageSize","page","refreshTable"]],template:function(t,e){1&t&&(b.TgZ(0,"div"),b.TgZ(1,"h1",0),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"perun-web-apps-refresh-button",1),b.NdJ("refresh",function(){return e.refresh()}),b.qZA(),b.TgZ(5,"span",2),b.ALo(6,"translate"),b.YNc(7,ae,3,5,"button",3),b.qZA(),b.TgZ(8,"mat-menu",null,4),b.YNc(10,ce,3,3,"button",5),b.YNc(11,ue,3,3,"button",5),b.qZA(),b.YNc(12,le,3,3,"button",6),b.TgZ(13,"perun-web-apps-immediate-filter",7),b.NdJ("filter",function(t){return e.applyFilter(t)}),b.qZA(),b.YNc(14,he,1,0,"mat-spinner",8),b.YNc(15,de,1,5,"app-sponsored-members-list",9),b.qZA()),2&t&&(b.xp6(2),b.Oqu(b.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),b.xp6(3),b.s9C("matTooltip",b.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),b.Q6J("matTooltipDisabled",!(e.findSponsorsAuth&&0===e.voSponsors.length)),b.xp6(2),b.Q6J("ngIf",!e.loading&&(e.createAuth||e.generateAuth)),b.xp6(3),b.Q6J("ngIf",e.createAuth),b.xp6(1),b.Q6J("ngIf",e.generateAuth),b.xp6(1),b.Q6J("ngIf",!e.loading&&e.setSponsorshipAuth),b.xp6(1),b.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),b.xp6(1),b.Q6J("ngIf",e.loading),b.xp6(1),b.Q6J("ngIf",!e.loading))},directives:[Lt.t,S.gM,l.O5,Nt.VK,rt.L,T.lW,Nt.p6,Nt.OP,_.$g,re],pipes:[w.X$],styles:[""]}),t})()},17249:function(t,e,i){"use strict";i.d(e,{Y:function(){return N}});var n=i(33642),s=i(84140),o=i(88426),r=i(99608),a=i(4230),c=i(84608),u=i(16073),l=i(31572),h=i(48160),d=i(57629),p=i(61511),g=i(67806),f=i(66283),m=i(80340),b=i(15980),w=i(36922);function _(t,e){1&t&&l._UZ(0,"mat-spinner",3)}function y(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"div",4),l.TgZ(2,"mat-form-field"),l._UZ(3,"input",5),l.ALo(4,"translate"),l.TgZ(5,"mat-error"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.qZA(),l.TgZ(8,"mat-form-field"),l._UZ(9,"input",5),l.ALo(10,"translate"),l.TgZ(11,"mat-error"),l._uU(12),l.ALo(13,"translate"),l.qZA(),l.qZA(),l.qZA(),l.TgZ(14,"div",6),l.TgZ(15,"button",7),l.NdJ("click",function(){return l.CHM(t),l.oxw().onCancel()}),l._uU(16),l.ALo(17,"translate"),l.qZA(),l.TgZ(18,"div",8),l.ALo(19,"translate"),l.TgZ(20,"button",9),l.NdJ("click",function(){return l.CHM(t),l.oxw().onSubmit()}),l._uU(21),l.ALo(22,"translate"),l.qZA(),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(3),l.s9C("placeholder",l.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),l.Q6J("formControl",t.fullNameCtrl),l.xp6(3),l.hij(" ",l.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),l.xp6(3),l.s9C("placeholder",l.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),l.Q6J("formControl",t.shortNameCtrl),l.xp6(3),l.hij(" ",l.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),l.xp6(4),l.hij(" ",l.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),l.Q6J("matTooltipDisabled",t.shortNameCtrl.valid&&t.fullNameCtrl.valid),l.xp6(2),l.Q6J("disabled",t.shortNameCtrl.invalid||t.fullNameCtrl.invalid),l.xp6(1),l.hij(" ",l.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let A=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.notificator=i,this.voService=n,this.translate=s,this.router=o,s.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new u.NI(null,[u.kI.required,u.kI.pattern("^[\\w.-]+$"),u.kI.maxLength(33)]),this.fullNameCtrl=new u.NI(null,[u.kI.required,u.kI.pattern(".*[\\S]+.*"),u.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(t=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0),this.router.navigate(["/organizations",t.id])},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(c.so),l.Y36(c.WI),l.Y36(o.V6),l.Y36(n.YF),l.Y36(h.sK),l.Y36(d.F0))},t.\u0275cmp=l.Xpm({type:t,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","","required","",3,"placeholder","formControl"],["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(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,_,1,0,"mat-spinner",1),l.YNc(5,y,23,25,"div",2),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[c.uh,p.O5,g.$g,c.xY,f.KE,m.Nt,u.Fj,u.Q7,u.JJ,u.oH,f.TO,c.H8,b.lW,w.gM],pipes:[h.X$],styles:[""]}),t})();var v=i(60611),T=i(48958),C=i(66297),S=i(43691),E=i(59403),k=i(19139),x=i(97162);function R(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-refresh-button",9),l.NdJ("refresh",function(){return l.CHM(t),l.oxw().refreshTable()}),l.qZA()}}function I(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",10),l.NdJ("click",function(){return l.CHM(t),l.oxw().onCreateVo()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function O(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){return l.CHM(t),l.oxw().onRemoveVo()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("disabled",0===t.selection.selected.length),l.xp6(1),l.hij(" ",l.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function P(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",12),l.NdJ("filter",function(e){return l.CHM(t),l.oxw().applyFilter(e)}),l.qZA()}2&t&&l.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER")}function D(t,e){1&t&&l._UZ(0,"mat-spinner",13)}function M(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"perun-web-apps-vos-list",14),l.NdJ("page",function(e){return l.CHM(t),l.oxw().pageChanged(e)}),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("pageSize",t.pageSize)("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("recentIds",t.recentIds)("selection",t.selection)("vos",t.vos)}}const L=function(){return{color:"black"}};let N=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.sideMenuService=t,this.voService=e,this.guiAuthResolver=i,this.tableConfigService=n,this.dialog=s,this.notificator=o,this.apiRequest=r,this.initAuthService=a,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=v.tw}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.selection=new a.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","recent","shortName","name"]:["id","recent","shortName","name"],this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setAccessMenuItems([])}refreshTable(){this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyVos().subscribe(t=>{this.vos=t,this.recentIds=(0,s.vL)("vos"),this.loading=!1},t=>{"PrivilegeException"===t.error.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(t)})}applyFilter(t){this.filterValue=t}onCreateVo(){const t=(0,s.kZ)();t.width="600px",t.data={theme:"vo-theme"},this.dialog.open(A,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const t=(0,s.kZ)();t.width="500px",t.data={theme:"vo-theme",vos:[this.selection.selected[0]]},this.dialog.open(r.o,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.id="VoSelectPageComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(T.D),l.Y36(n.YF),l.Y36(o.x4),l.Y36(v.dB),l.Y36(c.uw),l.Y36(o.V6),l.Y36(o.F5),l.Y36(o.v0))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.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",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","displayedColumns","filterValue","recentIds","selection","vos","page",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","displayedColumns","filterValue","recentIds","selection","vos","page"]],template:function(t,e){1&t&&(l.TgZ(0,"div",0),l._UZ(1,"perun-web-apps-back-button"),l.TgZ(2,"h1",1),l._UZ(3,"mat-icon",2),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.YNc(6,R,1,0,"perun-web-apps-refresh-button",3),l.YNc(7,I,3,3,"button",4),l.YNc(8,O,3,4,"button",5),l.YNc(9,P,1,2,"perun-web-apps-immediate-filter",6),l.YNc(10,D,1,0,"mat-spinner",7),l.YNc(11,M,1,6,"perun-web-apps-vos-list",8),l.qZA()),2&t&&(l.xp6(3),l.Q6J("ngStyle",l.DdM(10,L)),l.xp6(1),l.hij(" ",l.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.createAuth),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.deleteAuth),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[C.W,S.Hw,p.PC,p.O5,E.t,b.lW,k.L,g.$g,x.Z],pipes:[h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t})()},15291:function(t,e,i){"use strict";var n=i(30269),s=i(31572),o=i(57629);let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t})();var a=i(33642),c=i(88426),u=i(84140),l=i(61189),h=i(48958),d=i(48160),p=i(84608),g=i(25122),f=i(29236),m=i(16073),b=i(61511),w=i(43691),_=i(15980),y=i(39571),A=i(71522),v=i(36922);function T(t,e){1&t&&(s.TgZ(0,"app-alert",2),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}function C(t,e){if(1&t&&(s.TgZ(0,"div",5),s.TgZ(1,"a",6),s.TgZ(2,"span",7),s._uU(3),s.qZA(),s._UZ(4,"mat-icon",8),s._uU(5),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Gre("",t.style," item-itself"),s.s9C("matTooltip",t.tooltip),s.Q6J("matTooltipDisabled",t.label===t.tooltip)("routerLink",t.url),s.xp6(2),s.Oqu(t.type),s.xp6(1),s.Q6J("svgIcon",t.cssIcon),s.xp6(1),s.hij(" ",t.label," ")}}function S(t,e){if(1&t&&(s.TgZ(0,"div",3),s.YNc(1,C,6,9,"div",4),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.items)}}let E=(()=>{class t{constructor(t,e,i){this.vosManager=t,this.groupsManager=e,this.facilitiesManager=i,this.vosIds=[],this.items=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[]}ngOnInit(){let t=(0,u.vL)("recent");for(const e of t)switch(e.type){case"Vo":this.vosIds.push(e.id);break;case"Group":this.groupsIds.push(e.id);break;case"Facility":this.facilitiesIds.push(e.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.vosManager.getVosByIds(this.vosIds).subscribe(e=>{this.existingRecentIds.push(...e.map(t=>t.id)),this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(e=>{this.existingRecentIds.push(...e.map(t=>t.id)),this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(e=>{this.existingRecentIds.push(...e.map(t=>t.id)),t=t.filter(t=>this.existingRecentIds.indexOf(t.id)>-1),this.addRecentlyViewedToDashboard(t)})})})}addRecentlyViewedToDashboard(t){for(const e of t)switch(e.type){case"Vo":this.items.push({cssIcon:"perun-vo",url:`/organizations/${e.id}`,label:e.name,style:"vo-btn",type:"Organization"});break;case"Group":this.items.push({cssIcon:"perun-group",url:`/organizations/${e.voId}/groups/${e.id}`,label:e.name,tooltip:e.fullName,style:"group-btn",type:"Group"});break;case"Facility":this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${e.id}`,label:e.name,style:"facility-btn",type:"Facility"})}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.YF),s.Y36(a.ff),s.Y36(a.IQ))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-perun-web-apps-dashboard-recently-viewed-button-field"]],decls:2,vars:2,consts:[["alert_type","info",4,"ngIf"],["class","items-container",4,"ngIf"],["alert_type","info"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],["queryParamsHandling","merge",3,"matTooltipDisabled","routerLink","matTooltip"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&(s.YNc(0,T,3,3,"app-alert",0),s.YNc(1,S,2,1,"div",1)),2&t&&(s.Q6J("ngIf",0===e.items.length),s.xp6(1),s.Q6J("ngIf",e.items.length>0))},directives:[b.O5,y.w,b.sg,A.wG,o.yS,v.gM,w.Hw],pipes:[d.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}.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;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}"]}),t})();var k=i(67806),x=i(97162),R=i(78364),I=i(88884),O=i(60007);function P(t,e){1&t&&s._UZ(0,"mat-spinner",7)}const D=function(){return["id","recent","shortName","name"]};function M(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"perun-web-apps-vos-list",8),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("pageSizeOptions",null)("pageSize",5)("displayedColumns",s.DdM(5,D))("recentIds",t.recentIds)("vos",t.objects)}}const L=function(){return["id","recent","vo","name","description"]};function N(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"perun-web-apps-groups-list",9),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("pageSizeOptions",null)("pageSize",5)("groups",t.objects)("recentIds",t.recentIds)("displayedColumns",s.DdM(5,L))}}const z=function(){return["id","recent","name","vo","facility"]};function F(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"perun-web-apps-resources-list",10),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("pageSizeOptions",null)("pageSize",5)("resources",t.objects)("displayedColumns",s.DdM(6,z))("recentIds",t.recentIds)("routingVo",!0)}}const Z=function(){return["id","recent","name","description"]};function B(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"perun-web-apps-facilities-list",11),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("pageSizeOptions",null)("pageSize",5)("facilities",t.objects)("recentIds",t.recentIds)("displayedColumns",s.DdM(5,Z))}}function q(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,M,2,6,"span",6),s.YNc(2,N,2,6,"span",6),s.YNc(3,F,2,7,"span",6),s.YNc(4,B,2,6,"span",6),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf","Vo"===t.primaryObject),s.xp6(1),s.Q6J("ngIf","Group"===t.primaryObject),s.xp6(1),s.Q6J("ngIf","Resource"===t.primaryObject),s.xp6(1),s.Q6J("ngIf","Facility"===t.primaryObject)}}let U=(()=>{class t{constructor(t,e,i){this.authzResolver=t,this.guiAuthResolver=e,this.resourceService=i,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(t=>{this.objects=t,this.recentIds=(0,u.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(t=>{this.objects=t,this.recentIds=(0,u.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(t=>{this.objects=t,this.recentIds=(0,u.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(t=>{this.objects=t.map(t=>({facility:t})),this.recentIds=(0,u.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.Ct),s.Y36(c.x4),s.Y36(a.xk))},t.\u0275cmp=s.Xpm({type:t,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","pageSize","displayedColumns","recentIds","vos"],[3,"pageSizeOptions","pageSize","groups","recentIds","displayedColumns"],[3,"pageSizeOptions","pageSize","resources","displayedColumns","recentIds","routingVo"],[3,"pageSizeOptions","pageSize","facilities","recentIds","displayedColumns"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s._UZ(2,"mat-icon",2),s._uU(3),s.ALo(4,"translate"),s.TgZ(5,"span",3),s.ALo(6,"translate"),s.TgZ(7,"mat-icon",4),s._uU(8,"info_outline"),s.qZA(),s.qZA(),s.qZA(),s.YNc(9,P,1,0,"mat-spinner",5),s.YNc(10,q,5,4,"div",6),s.qZA()),2&t&&(s.xp6(2),s.Q6J("svgIcon",e.svgIcon),s.xp6(1),s.hij(" ",s.lcZ(4,5,e.title)," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(6,7,e.roleTooltipInfo)),s.xp6(4),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[w.Hw,v.gM,b.O5,k.$g,x.Z,R.W,I.C,O.X],pipes:[d.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}"]}),t})();var H=i(22196);function j(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"mat-checkbox",8),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.changeRoleView(i):null}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("checked",i.isRoleShowed(t)),s.xp6(1),s.Oqu(s.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+t))}}function G(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",15),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).rightSettingOpened=!0}),s.TgZ(1,"mat-icon"),s._uU(2,"settings"),s.qZA(),s.qZA()}}function Y(t,e){1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function V(t,e){1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function K(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",23),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).goToUserProfile()}),s.TgZ(1,"mat-icon",24),s._uU(2,"exit_to_app"),s.qZA(),s._uU(3),s.ALo(4,"translate"),s.qZA()}if(2&t){const t=s.oxw(3);s.xp6(3),s.AsE("",s.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",t.userProfileName," ")}}const J=function(){return["/myProfile"]};function $(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"div",16),s.TgZ(2,"div",17),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"div",18),s.YNc(6,Y,3,3,"span",14),s.YNc(7,V,3,3,"span",14),s.qZA(),s.TgZ(8,"div",19),s.TgZ(9,"button",20),s._UZ(10,"mat-icon",21),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.YNc(13,K,5,4,"button",22),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw(2);s.xp6(3),s.hij(" ",s.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),s.xp6(3),s.Q6J("ngIf",!t.userProfileUrl),s.xp6(1),s.Q6J("ngIf",t.userProfileUrl),s.xp6(2),s.Q6J("routerLink",s.DdM(10,J)),s.xp6(2),s.hij(" ",s.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),s.xp6(2),s.Q6J("ngIf",t.userProfileUrl)}}function Q(t,e){1&t&&(s.TgZ(0,"span"),s.TgZ(1,"div",3),s._uU(2),s.ALo(3,"translate"),s.qZA(),s._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),s.qZA()),2&t&&(s.xp6(2),s.hij(" ",s.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function W(t,e){1&t&&(s.TgZ(0,"div",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function X(t,e){if(1&t&&s._UZ(0,"app-perun-web-apps-dashboard-card",30),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("roleName",t)("role",e.roles[t])}}function tt(t,e){if(1&t&&(s.TgZ(0,"div",28),s.YNc(1,X,1,2,"app-perun-web-apps-dashboard-card",29),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",i.isRoleShowed(t))}}function et(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,Q,5,3,"span",14),s.YNc(2,W,3,3,"div",25),s.TgZ(3,"div"),s.YNc(4,tt,2,1,"div",26),s.qZA(),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngIf",t.recentlyViewedShow),s.xp6(1),s.Q6J("ngIf",t.rolesToHide.toString()!==t.roleNames.toString()),s.xp6(2),s.Q6J("ngForOf",t.roleNames)}}function it(t,e){if(1&t&&(s.TgZ(0,"div",9),s.TgZ(1,"h1",10),s._UZ(2,"mat-icon",11),s.TgZ(3,"span",12),s._uU(4),s.ALo(5,"translate"),s.ALo(6,"userFullName"),s.qZA(),s.YNc(7,G,3,0,"button",13),s.qZA(),s.YNc(8,$,14,11,"div",14),s.YNc(9,et,5,3,"div",14),s.qZA()),2&t){const t=s.oxw();s.xp6(4),s.AsE("",s.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",s.lcZ(6,7,t.user),""),s.xp6(3),s.Q6J("ngIf",!t.isOnlySelfRole),s.xp6(1),s.Q6J("ngIf",t.isOnlySelfRole),s.xp6(1),s.Q6J("ngIf",!t.isOnlySelfRole)}}let nt=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u){this.userManager=t,this.storeService=e,this.sideMenuService=i,this.route=n,this.router=s,this.notificator=o,this.translateService=r,this.dialog=a,this.apiRequestConfiguration=c,this.utilsService=u,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"],r.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(t=>this.mailSuccessMessage=t)}ngOnInit(){this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const t=Object.keys(this.roles);this.isOnlySelfRole=t.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(e=>t.includes(e)),this.getDashboardSettings(),this.sideMenuService.setHomeItems([])}validatePreferredMailChange(){const t=this.route.snapshot.queryParamMap,e=t.get("token"),i=t.get("u");e&&i&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(e,Number.parseInt(i,10)).subscribe(()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0})},()=>{const t=(0,u.kZ)();t.width="600px",this.dialog.open(l.qD,t).afterClosed().subscribe(()=>{this.getDashboardSettings()})}))}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}getDashboardSettings(){const t=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===t||t;const e=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===e?[]:e}changeRoleView(t){if(this.isRoleShowed(t)){const e=[];for(const i of this.roleNames)this.isRoleShowed(i)||e.push(i),i===t&&e.push(i);this.rolesToHide=e}else this.rolesToHide=this.rolesToHide.filter(e=>e!==t);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(t){for(const e of this.rolesToHide)if(e===t)return!1;return!0}getUserProfile(){this.utilsService.getAppsConfig().subscribe(t=>{this.userProfileUrl=t.brands[0].newApps.profile?t.brands[0].newApps.profile:null}),this.userProfileName=this.storeService.get("profile_label_en")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.Fv),s.Y36(c.d6),s.Y36(h.D),s.Y36(o.gz),s.Y36(o.F0),s.Y36(c.V6),s.Y36(d.sK),s.Y36(p.uw),s.Y36(c.F5),s.Y36(a.FW))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.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"],[1,"pt-1"],["mat-stroked-button","","class","ml-auto text-bigger",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"],["mat-stroked-button","","class","text-bigger ml-2 mt-2",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(t,e){1&t&&(s.TgZ(0,"mat-sidenav-container",0),s.TgZ(1,"mat-sidenav",1),s.NdJ("openedChange",function(t){return e.rightSettingOpened=t}),s.TgZ(2,"div",2),s.TgZ(3,"div",3),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div"),s.TgZ(7,"mat-checkbox",4),s.NdJ("ngModelChange",function(t){return e.recentlyViewedShow=t})("change",function(t){return t?e.recentlyViewedChanged():null}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA(),s.TgZ(10,"div",5),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.YNc(13,j,4,4,"div",6),s.qZA(),s.qZA(),s.TgZ(14,"mat-sidenav-content"),s.YNc(15,it,10,9,"div",7),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Q6J("opened",e.rightSettingOpened),s.xp6(3),s.Oqu(s.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),s.xp6(3),s.Q6J("ngModel",e.recentlyViewedShow),s.xp6(1),s.Oqu(s.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),s.xp6(3),s.Oqu(s.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),s.xp6(2),s.Q6J("ngForOf",e.roleNames),s.xp6(2),s.Q6J("ngIf",void 0!==e.user))},directives:[g.TM,g.JX,f.oG,m.JJ,m.On,b.sg,g.Rh,b.O5,w.Hw,_.lW,o.rH,E,U],pipes:[d.X$,H.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;grid-column-gap:1rem;-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 - 64px - 200px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),t})();var st=i(66297);let ot=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"perun-web-apps-back-button"),s.TgZ(2,"h1",1),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Oqu(s.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},directives:[st.W],pipes:[d.X$],styles:[""]}),t})();var rt=i(41939);let at=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ez,_.ot,w.Ps,o.Bz,rt.ez,d.aw]]}),t})(),ct=(()=>{class t{constructor(t){this.auth=t}startAuth(){this.auth.startAuthentication()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.e8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con","vo-theme"],[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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h4",3),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.startAuth()}),s._uU(7),s.ALo(8,"translate"),s.TgZ(9,"mat-icon"),s._uU(10," login "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.hij(" ",s.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),s.xp6(3),s.hij(" ",s.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[_.lW,w.Hw],pipes:[d.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),t})();var ut=i(16306);const lt=function(t){return{padding:t}},ht=function(){return{height:"56px"}};function dt(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"div",10),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngStyle",s.VKq(3,lt,t.logoPadding)),s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)("ngStyle",s.DdM(5,ht))}}function pt(t,e){if(1&t&&(s.TgZ(0,"div",11),s._UZ(1,"div",12),s._UZ(2,"mat-icon",13),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}function gt(t,e){if(1&t&&(s.TgZ(0,"div",14),s._UZ(1,"a",15),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}const ft=function(t){return{color:t}};function mt(t,e){if(1&t&&(s.TgZ(0,"p",16),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngStyle",s.VKq(2,ft,t.textColor)),s.xp6(1),s.hij(" ",t.headerTitle," ")}}const bt=function(t,e){return{background:t,color:e}},wt=function(t,e){return{"min-height":t,"background-color":e}};let _t=(()=>{class t{constructor(t,e){this.storeService=t,this.sanitizer=e,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){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"):"",this.logoPadding="admin-gui"===this.application?this.storeService.get("logo_padding"):""}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.d6),s.Y36(n.H7))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],["style"," display: flex; flex-direction: row;",4,"ngIf"],["style","padding-top: 16px",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"],[3,"ngStyle"],[1,"logo-container",3,"innerHTML","ngStyle"],[2,"display","flex","flex-direction","row"],[1,"router-icon-scale",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[2,"padding-top","16px"],[1,"ml-3",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,dt,2,6,"div",1),s.YNc(2,pt,3,1,"div",2),s.YNc(3,gt,2,1,"div",3),s.YNc(4,mt,2,4,"p",4),s.qZA(),s.TgZ(5,"div",5),s.TgZ(6,"div",6),s.TgZ(7,"div",7),s._UZ(8,"router-outlet"),s.qZA(),s.TgZ(9,"div",8),s._UZ(10,"perun-web-apps-footer"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Q6J("ngStyle",s.WLB(6,bt,e.headerBackgroundColor,e.headerTextColor)),s.xp6(1),s.Q6J("ngIf","admin-gui"===e.application),s.xp6(1),s.Q6J("ngIf","publications"===e.application),s.xp6(1),s.Q6J("ngIf","user-profile"===e.application),s.xp6(1),s.Q6J("ngIf",!!e.headerTitle),s.xp6(2),s.Q6J("ngStyle",s.WLB(9,wt,e.getContentInnerMinHeight(),e.contentBackgroundColor)))},directives:[b.PC,b.O5,o.lC,ut.$,w.Hw],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}.router-icon-scale[_ngcontent-%COMP%]{transform:scale(.75);margin-top:.3rem}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}"]}),t})();const yt=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:rt.t$},{path:"api-callback",component:r},{path:"login",component:ct},{path:"organizations",loadChildren:()=>Promise.all([i.e(579),i.e(827),i.e(901),i.e(427)]).then(i.bind(i,67427)).then(t=>t.VosModule)},{path:"admin",loadChildren:()=>Promise.all([i.e(579),i.e(363),i.e(756),i.e(901),i.e(285)]).then(i.bind(i,1285)).then(t=>t.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([i.e(579),i.e(363),i.e(827),i.e(756),i.e(300)]).then(i.bind(i,55300)).then(t=>t.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([i.e(579),i.e(363)]).then(i.bind(i,6363)).then(t=>t.UsersModule)},{path:"home",component:nt},{path:"**",component:ot}];let At=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o.Bz.forRoot(yt,{preloadingStrategy:o.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],o.Bz]}),t})();var vt=i(61601),Tt=i(28780);class Ct{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}var St=i(29063),Et=i(43490);let kt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[c.e8],imports:[[b.ez]]}),t})();var xt=i(28940),Rt=i(48002),It=i(40659),Ot=i(62284),Pt=i(7433),Dt=i(82044),Mt=i(11930),Lt=i(39124),Nt=i(64467),zt=i(81835),Ft=i(88227),Zt=i(97397),Bt=i(71313),qt=i(14527),Ut=i(65423),Ht=i(17249),jt=i(73916),Gt=i(48666);let Yt=(()=>{class t{constructor(){this.allowCachePages=[{type:"vo",components:[xt.y.id,Rt.G.id,It.c.id,Ft.z.id,Zt.z.id,qt.w.id,Gt.T.id]},{type:"group",components:[Mt.y.id,Dt.u.id,Pt.q.id,Ot.W.id,Ut.Z.id]},{type:"facility",components:[Lt.o.id,Nt.f.id]},{type:"member",components:[zt.j.id]},{type:"admin",components:[Bt.t.id]},{type:"entitySelect",components:[Ht.Y.id,jt.P.id]}],this.cacheTimeMs=3e5,this.resets=[{lastValue:null,resetType:"vo",resetPath:":voId",param:"voId"},{lastValue:null,resetType:"group",resetPath:":voId/groups/:groupId",param:"groupId"},{lastValue:null,resetType:"facility",resetPath:":facilityId",param:"facilityId"},{lastValue:null,resetType:"member",resetPath:":voId/members/:memberId",param:"memberId"},{lastValue:null,resetType:"admin",resetPath:"admin/users"}],this.isUserNavigatingBack=!1,this.typeToComponentToHandlers=new Map;for(const t of this.allowCachePages)this.typeToComponentToHandlers.set(t.type,new Map)}setLastNavigationType(t){this.isUserNavigatingBack="back"===t}checkResets(t){const e=this.getPath(t);for(const i of this.resets)if(i.resetPath===e){const e=t.params[i.param];null!==i.lastValue&&i.lastValue!==e&&this.typeToComponentToHandlers.get(i.resetType).clear(),i.lastValue=e}}shouldReuseRoute(t,e){return this.checkResets(e),t.routeConfig===e.routeConfig}retrieve(t){if(t.component){const e=this.getComponentName(t.component);for(const t of this.allowCachePages)if(-1!==t.components.indexOf(e)){const i=this.typeToComponentToHandlers.get(t.type).get(e);return void 0===i?null:i.routeHandle}}return null}shouldAttach(t){if(!this.isUserNavigatingBack)return!1;if(t.component){const e=this.getComponentName(t.component);for(const t of this.allowCachePages){const i=this.typeToComponentToHandlers.get(t.type).get(e);if(void 0!==i&&this.getCurrentTimestamp()-i.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();const i=this.getComponentType(t);this.typeToComponentToHandlers.get(i).set(this.getComponentName(t.component),{routeHandle:e,saveTimeStamp:this.getCurrentTimestamp()})}}getCurrentTimestamp(){return+Date.now()}getComponentName(t){return t.id}getComponentType(t){const e=this.getComponentName(t.component);for(const i of this.allowCachePages)if(-1!==i.components.indexOf(e))return i.type;return null}getPath(t){return null!==t.routeConfig&&null!==t.routeConfig.path?t.routeConfig.path:""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Vt=new s.OlP("perun-api-service");let Kt=(()=>{class t{constructor(t,e){this.http=t,this.storeService=e}initializeColors(t,e){return new Promise(i=>{e.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),this.setEntityTheme(t.entity,e)}),i()})}setEntityTheme(t,e){const i=(n=e,[Jt(tinycolor(n).lighten(52),"50"),Jt(tinycolor(n).lighten(37),"100"),Jt(tinycolor(n).lighten(26),"200"),Jt(tinycolor(n).lighten(12),"300"),Jt(tinycolor(n).lighten(6),"400"),Jt(tinycolor(n),"500"),Jt(tinycolor(n).darken(6),"600"),Jt(tinycolor(n).darken(12),"700"),Jt(tinycolor(n).darken(18),"800"),Jt(tinycolor(n).darken(24),"900"),Jt(tinycolor(n).lighten(50).saturate(30),"A100"),Jt(tinycolor(n).lighten(30).saturate(30),"A200"),Jt(tinycolor(n).lighten(10).saturate(15),"A400"),Jt(tinycolor(n).lighten(5).saturate(5),"A700")]);var n;for(const s of i){const e=`--${t}-theme-primary-contrast-${s.name}`,i=s.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${t}-theme-primary-${s.name}`,`${s.red},${s.green},${s.blue}`),document.documentElement.style.setProperty(e,i)}}loadAppDefaultConfig(){return new Promise(t=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setDefaultConfig(e),t()})})}loadAppInstanceConfig(){return new Promise(t=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setInstanceConfig(e);const i=document.location.hostname;void 0!==e.brandings&&void 0!==e.brandings[i]&&this.storeService.setBanding(i),t()},()=>{console.log("instance config not detected"),t()})})}getNoCacheHeaders(){return new St.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(t=>{const e=document.querySelector("link[rel*='icon']")||document.createElement("link");e.type="image/x-icon",e.rel="shortcut icon",e.href=this.storeService.get("isInstanceFaviconContained")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(e),t()})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(St.eN),s.LFG(c.d6))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Jt(t,e){const i=tinycolor(t),n=i.toRgb();return{name:e,hex:i.toHexString(),darkContrast:i.isLight(),red:n.r,green:n.g,blue:n.b}}let $t=(()=>{class t{constructor(t,e){this.data=t,this.location=e}redirect(){this.location.go("/"),location.reload()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(p.WI),s.Y36(b.Ye))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"h2"),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"p"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div"),s.TgZ(7,"button",0),s.NdJ("click",function(){return e.redirect()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,3,e.data.title),"\n"),s.xp6(3),s.hij(" ",s.lcZ(5,5,e.data.message),"\n"),s.xp6(4),s.hij(" ",s.lcZ(9,7,e.data.action)," "))},pipes:[d.X$],styles:[""]}),t})(),Qt=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}refresh(){location.reload()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(p.so),s.Y36(p.WI))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"h2"),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"p"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div"),s.TgZ(7,"button",0),s.NdJ("click",function(){return e.refresh()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,3,e.data.title),"\n"),s.xp6(3),s.hij(" ",s.lcZ(5,5,e.data.message),"\n"),s.xp6(4),s.hij(" ",s.lcZ(9,7,e.data.action)," "))},pipes:[d.X$],styles:[""]}),t})(),Wt=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u){this.initAuthService=t,this.appConfigService=e,this.store=i,this.authzSevice=n,this.dialog=s,this.location=o,this.translate=r,this.guiAuthResolver=a,this.titleService=c,this.router=u,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.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(t=>{if("Invalid path"!==t)throw console.error(t),this.location.go("/"),location.reload(),t;this.handleErr(t)}).then(t=>t?this.initAuthService.loadPrincipal().catch(t=>this.handleErr(t)).then(()=>this.loadPolicies()).then(()=>this.guiAuthResolver.loadRolesManagementRules()):this.initAuthService.handleAuthStart())}setApiUrl(){return new Promise(t=>{this.authzSevice.configuration.basePath=this.store.get("api_url"),this.titleService.setTitle(this.store.get("document_title")),t()})}handleErr(t){const e=(0,u.kZ)();throw"Invalid path"===t?(e.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open($t,e)):(e.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===t.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":t.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(Qt,e)),console.error(t),t}loadPolicies(){return new Promise((t,e)=>{this.authzSevice.getAllPolicies().subscribe(e=>{this.guiAuthResolver.setPerunPolicies(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(c.v0),s.LFG(Kt),s.LFG(c.d6),s.LFG(a.Ct),s.LFG(p.uw),s.LFG(b.Ye),s.LFG(d.sK),s.LFG(c.x4),s.LFG(n.Dx),s.LFG(o.F0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Xt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ez,p.Is,_.ot,d.aw]]}),t})();var te=i(64762),ee=i(55959),ie=i(87254),ne=i(31906),se=i(30810),oe=i(25416),re=i(98720),ae=i(88414);function ce(t){return getComputedStyle(t)}function ue(t,e){for(var i in e){var n=e[i];"number"==typeof n&&(n+="px"),t.style[i]=n}return t}function le(t){var e=document.createElement("div");return e.className=t,e}var he="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function de(t,e){if(!he)throw new Error("No element matching method supported");return he.call(t,e)}function pe(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function ge(t,e){return Array.prototype.filter.call(t.children,function(t){return de(t,e)})}var fe=function(t){return"ps__thumb-"+t},me=function(t){return"ps__rail-"+t},be=function(t){return"ps--active-"+t},we=function(t){return"ps--scrolling-"+t},_e={x:null,y:null};function ye(t,e){var i=t.element.classList,n=we(e);i.contains(n)?clearTimeout(_e[e]):i.add(n)}function Ae(t,e){_e[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(we(e))},t.settings.scrollingThreshold)}var ve=function(t){this.element=t,this.handlers={}},Te={isEmpty:{configurable:!0}};ve.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},ve.prototype.unbind=function(t,e){var i=this;this.handlers[t]=this.handlers[t].filter(function(n){return!(!e||n===e)||(i.element.removeEventListener(t,n,!1),!1)})},ve.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},Te.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(ve.prototype,Te);var Ce=function(){this.eventElements=[]};function Se(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function Ee(t,e,i,n,s){var o;if(void 0===n&&(n=!0),void 0===s&&(s=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,i,n,s){var o=i[0],r=i[1],a=i[2],c=i[3],u=i[4],l=i[5];void 0===n&&(n=!0),void 0===s&&(s=!1);var h=t.element;t.reach[c]=null,h[a]<1&&(t.reach[c]="start"),h[a]>t[o]-t[r]-1&&(t.reach[c]="end"),e&&(h.dispatchEvent(Se("ps-scroll-"+c)),e<0?h.dispatchEvent(Se("ps-scroll-"+u)):e>0&&h.dispatchEvent(Se("ps-scroll-"+l)),n&&function(t,e){ye(t,e),Ae(t,e)}(t,c)),t.reach[c]&&(e||s)&&h.dispatchEvent(Se("ps-"+c+"-reach-"+t.reach[c]))}(t,i,o,n,s)}function ke(t){return parseInt(t,10)||0}Ce.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new ve(t),this.eventElements.push(e)),e},Ce.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},Ce.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},Ce.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},Ce.prototype.once=function(t,e,i){var n=this.eventElement(t),s=function(t){n.unbind(e,s),i(t)};n.bind(e,s)};var xe={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function Re(t){var e=t.element,i=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.ceil(n.width),t.containerHeight=Math.ceil(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(ge(e,me("x")).forEach(function(t){return pe(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(ge(e,me("y")).forEach(function(t){return pe(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var i={width:e.railXWidth},n=Math.floor(t.scrollTop);i.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-n:i.top=e.scrollbarXTop+n,ue(e.scrollbarXRail,i);var s={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?s.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:s.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,ue(e.scrollbarYRail,s),ue(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),ue(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(be("x")):(e.classList.remove(be("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(be("y")):(e.classList.remove(be("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function Ie(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function Oe(t,e){var i=e[0],n=e[1],s=e[2],o=e[3],r=e[4],a=e[5],c=e[6],u=e[7],l=e[8],h=t.element,d=null,p=null,g=null;function f(e){e.touches&&e.touches[0]&&(e[s]=e.touches[0].pageY),h[c]=d+g*(e[s]-p),ye(t,u),Re(t),e.stopPropagation(),e.preventDefault()}function m(){Ae(t,u),t[l].classList.remove("ps--clicking"),t.event.unbind(t.ownerDocument,"mousemove",f)}function b(e,r){d=h[c],r&&e.touches&&(e[s]=e.touches[0].pageY),p=e[s],g=(t[n]-t[i])/(t[o]-t[a]),r?t.event.bind(t.ownerDocument,"touchmove",f):(t.event.bind(t.ownerDocument,"mousemove",f),t.event.once(t.ownerDocument,"mouseup",m),e.preventDefault()),t[l].classList.add("ps--clicking"),e.stopPropagation()}t.event.bind(t[r],"mousedown",function(t){b(t)}),t.event.bind(t[r],"touchstart",function(t){b(t,!0)})}var Pe={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,Re(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,Re(t),e.stopPropagation()})},"drag-thumb":function(t){Oe(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Oe(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(de(e,":hover")||de(t.scrollbarX,":focus")||de(t.scrollbarY,":focus"))){var n,s=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(s){if("IFRAME"===s.tagName)s=s.contentDocument.activeElement;else for(;s.shadowRoot;)s=s.shadowRoot.activeElement;if(de(n=s,"input,[contenteditable]")||de(n,"select,[contenteditable]")||de(n,"textarea,[contenteditable]")||de(n,"button,[contenteditable]"))return}var o=0,r=0;switch(i.which){case 37:o=i.metaKey?-t.contentWidth:i.altKey?-t.containerWidth:-30;break;case 38:r=i.metaKey?t.contentHeight:i.altKey?t.containerHeight:30;break;case 39:o=i.metaKey?t.contentWidth:i.altKey?t.containerWidth:30;break;case 40:r=i.metaKey?-t.contentHeight:i.altKey?-t.containerHeight:-30;break;case 32:r=i.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:r=t.containerHeight;break;case 34:r=-t.containerHeight;break;case 36:r=t.contentHeight;break;case 35:r=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==o||t.settings.suppressScrollY&&0!==r||(e.scrollTop-=r,e.scrollLeft+=o,Re(t),function(i,n){var s=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===s&&n>0||s>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===o&&i<0||o>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}(o,r)&&i.preventDefault())}})},wheel:function(t){var e=t.element;function i(i){var n=function(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}(i),s=n[0],o=n[1];if(!function(t,i,n){if(!xe.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var s=t;s&&s!==e;){if(s.classList.contains("ps__child--consume"))return!0;var o=ce(s);if(n&&o.overflowY.match(/(scroll|auto)/)){var r=s.scrollHeight-s.clientHeight;if(r>0&&(s.scrollTop>0&&n<0||s.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&i<0||s.scrollLeft0))return!0}s=s.parentNode}return!1}(i.target,s,o)){var r=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(o?e.scrollTop-=o*t.settings.wheelSpeed:e.scrollTop+=s*t.settings.wheelSpeed,r=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(s?e.scrollLeft+=s*t.settings.wheelSpeed:e.scrollLeft-=o*t.settings.wheelSpeed,r=!0):(e.scrollTop-=o*t.settings.wheelSpeed,e.scrollLeft+=s*t.settings.wheelSpeed),Re(t),(r=r||function(i,n){var s=Math.floor(e.scrollTop),o=0===e.scrollTop,r=s+e.offsetHeight===e.scrollHeight,a=0===e.scrollLeft,c=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(n)>Math.abs(i)?o||r:a||c)||!t.settings.wheelPropagation}(s,o))&&!i.ctrlKey&&(i.stopPropagation(),i.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",i):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",i)},touch:function(t){if(xe.supportsTouch||xe.supportsIePointer){var e=t.element,i={},n=0,s={},o=null;xe.supportsTouch?(t.event.bind(e,"touchstart",u),t.event.bind(e,"touchmove",l),t.event.bind(e,"touchend",h)):xe.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",u),t.event.bind(e,"pointermove",l),t.event.bind(e,"pointerup",h)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",u),t.event.bind(e,"MSPointerMove",l),t.event.bind(e,"MSPointerUp",h)))}function r(i,n){e.scrollTop-=n,e.scrollLeft-=i,Re(t)}function a(t){return t.targetTouches?t.targetTouches[0]:t}function c(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function u(t){if(c(t)){var e=a(t);i.pageX=e.pageX,i.pageY=e.pageY,n=(new Date).getTime(),null!==o&&clearInterval(o)}}function l(o){if(c(o)){var u=a(o),l={pageX:u.pageX,pageY:u.pageY},h=l.pageX-i.pageX,d=l.pageY-i.pageY;if(function(t,i,n){if(!e.contains(t))return!1;for(var s=t;s&&s!==e;){if(s.classList.contains("ps__child--consume"))return!0;var o=ce(s);if(n&&o.overflowY.match(/(scroll|auto)/)){var r=s.scrollHeight-s.clientHeight;if(r>0&&(s.scrollTop>0&&n<0||s.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&i<0||s.scrollLeft0))return!0}s=s.parentNode}return!1}(o.target,h,d))return;r(h,d),i=l;var p=(new Date).getTime(),g=p-n;g>0&&(s.x=h/g,s.y=d/g,n=p),function(i,n){var s=Math.floor(e.scrollTop),o=e.scrollLeft,r=Math.abs(i),a=Math.abs(n);if(a>r){if(n<0&&s===t.contentHeight-t.containerHeight||n>0&&0===s)return 0===window.scrollY&&n>0&&xe.isChrome}else if(r>a&&(i<0&&o===t.contentWidth-t.containerWidth||i>0&&0===o))return!0;return!0}(h,d)&&o.preventDefault()}}function h(){t.settings.swipeEasing&&(clearInterval(o),o=setInterval(function(){t.isInitialized?clearInterval(o):s.x||s.y?Math.abs(s.x)<.01&&Math.abs(s.y)<.01?clearInterval(o):(r(30*s.x,30*s.y),s.x*=.8,s.y*=.8):clearInterval(o)},10))}}},De=function(t,e){var i=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var n in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[n]=e[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s,o,r=function(){return t.classList.add("ps--focus")},a=function(){return t.classList.remove("ps--focus")};this.isRtl="rtl"===ce(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,s=t.scrollLeft<0,t.scrollLeft=o,s),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new Ce,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=le(me("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=le(fe("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=ce(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=ke(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=ke(c.borderLeftWidth)+ke(c.borderRightWidth),ue(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=ke(c.marginLeft)+ke(c.marginRight),ue(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=le(me("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=le(fe("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=ce(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=ke(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=ce(t);return ke(e.width)+ke(e.paddingLeft)+ke(e.paddingRight)+ke(e.borderLeftWidth)+ke(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=ke(u.borderTopWidth)+ke(u.borderBottomWidth),ue(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=ke(u.marginTop)+ke(u.marginBottom),ue(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return Pe[t](i)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return i.onScroll(t)}),Re(this)};De.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,ue(this.scrollbarXRail,{display:"block"}),ue(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=ke(ce(this.scrollbarXRail).marginLeft)+ke(ce(this.scrollbarXRail).marginRight),this.railYMarginHeight=ke(ce(this.scrollbarYRail).marginTop)+ke(ce(this.scrollbarYRail).marginBottom),ue(this.scrollbarXRail,{display:"none"}),ue(this.scrollbarYRail,{display:"none"}),Re(this),Ee(this,"top",0,!1,!0),Ee(this,"left",0,!1,!0),ue(this.scrollbarXRail,{display:""}),ue(this.scrollbarYRail,{display:""}))},De.prototype.onScroll=function(t){this.isAlive&&(Re(this),Ee(this,"top",this.element.scrollTop-this.lastScrollTop),Ee(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},De.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),pe(this.scrollbarX),pe(this.scrollbarY),pe(this.scrollbarXRail),pe(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},De.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};var Me=De,Le=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some(function(t,n){return t[0]===e&&(i=n,!0)}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i0},t.prototype.connect_=function(){Ne&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Be?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){Ne&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;Ze.some(function(t){return!!~i.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Ue=function(t,e){for(var i=0,n=Object.keys(e);i0},t}(),We="undefined"!=typeof WeakMap?new WeakMap:new Le,Xe=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=qe.getInstance(),n=new Qe(e,i,this);We.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){Xe.prototype[t]=function(){var e;return(e=We.get(this))[t].apply(e,arguments)}});var ti=void 0!==ze.ResizeObserver?ze.ResizeObserver:Xe;function ei(t,e){if(1&t&&(s.TgZ(0,"div",3),s._UZ(1,"div",4),s._UZ(2,"div",5),s._UZ(3,"div",6),s._UZ(4,"div",7),s.qZA()),2&t){const t=s.oxw();s.ekj("ps-at-top",t.states.top)("ps-at-left",t.states.left)("ps-at-right",t.states.right)("ps-at-bottom",t.states.bottom),s.xp6(1),s.ekj("ps-indicator-show",t.indicatorY&&t.interaction),s.xp6(1),s.ekj("ps-indicator-show",t.indicatorX&&t.interaction),s.xp6(1),s.ekj("ps-indicator-show",t.indicatorX&&t.interaction),s.xp6(1),s.ekj("ps-indicator-show",t.indicatorY&&t.interaction)}}const ii=["*"],ni=new s.OlP("PERFECT_SCROLLBAR_CONFIG");class si{constructor(t,e,i,n){this.x=t,this.y=e,this.w=i,this.h=n}}class oi{constructor(t,e){this.x=t,this.y=e}}const ri=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class ai{constructor(t={}){this.assign(t)}assign(t={}){for(const e in t)this[e]=t[e]}}let ci=(()=>{let t=class{constructor(t,e,i,n,o){this.zone=t,this.differs=e,this.elementRef=i,this.platformId=n,this.defaults=o,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new ee.xQ,this.disabled=!1,this.psScrollY=new s.vpe,this.psScrollX=new s.vpe,this.psScrollUp=new s.vpe,this.psScrollDown=new s.vpe,this.psScrollLeft=new s.vpe,this.psScrollRight=new s.vpe,this.psYReachEnd=new s.vpe,this.psYReachStart=new s.vpe,this.psXReachEnd=new s.vpe,this.psXReachStart=new s.vpe}ngOnInit(){if(!this.disabled&&(0,b.NF)(this.platformId)){const t=new ai(this.defaults);t.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Me(this.elementRef.nativeElement,t)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new ti(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{ri.forEach(t=>{const e=t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`);(0,ie.R)(this.elementRef.nativeElement,e).pipe((0,se.e)(20),(0,oe.R)(this.ngDestroy)).subscribe(e=>{this[t].emit(e)})})})}}ngOnDestroy(){(0,b.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,b.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(t){t.disabled&&!t.disabled.isFirstChange()&&(0,b.NF)(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(t){}},0))}geometry(t="scroll"){return new si(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])}position(t=!1){return!t&&this.instance?new oi(this.instance.reach.x||0,this.instance.reach.y||0):new oi(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(t="any"){const e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)}scrollTo(t,e,i){this.disabled||(null==e&&null==i?this.animateScrolling("scrollTop",t,i):(null!=t&&this.animateScrolling("scrollLeft",t,i),null!=e&&this.animateScrolling("scrollTop",e,i)))}scrollToX(t,e){this.animateScrolling("scrollLeft",t,e)}scrollToY(t,e){this.animateScrolling("scrollTop",t,e)}scrollToTop(t,e){this.animateScrolling("scrollTop",t||0,e)}scrollToLeft(t,e){this.animateScrolling("scrollLeft",t||0,e)}scrollToRight(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)}scrollToBottom(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)}scrollToElement(t,e,i){const n=this.elementRef.nativeElement.querySelector(t);if(n){const t=n.getBoundingClientRect(),s=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",t.left-s.left+this.elementRef.nativeElement.scrollLeft+(e||0),i),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",t.top-s.top+this.elementRef.nativeElement.scrollTop+(e||0),i)}}animateScrolling(t,e,i){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),i&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){let n=0,s=0,o=performance.now(),r=this.elementRef.nativeElement[t];const a=(r-e)/2,c=u=>{s+=Math.PI/(i/(u-o)),n=Math.round(e+a+a*Math.cos(s)),this.elementRef.nativeElement[t]===r&&(s>=Math.PI?this.animateScrolling(t,e,0):(this.elementRef.nativeElement[t]=n,r=this.elementRef.nativeElement[t],o=u,this.animation=window.requestAnimationFrame(c)))};window.requestAnimationFrame(c)}}else this.elementRef.nativeElement[t]=e}};return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.R0b),s.Y36(s.aQg),s.Y36(s.SBq),s.Y36(s.Lbi),s.Y36(ni,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[s.TTD]}),t=(0,te.gn)([(0,te.fM)(3,(0,s.tBr)(s.Lbi)),(0,te.fM)(4,(0,s.FiY)()),(0,te.fM)(4,(0,s.tBr)(ni))],t),t})(),ui=(()=>{let t=class{constructor(t,e,i){this.zone=t,this.cdRef=e,this.platformId=i,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new ee.xQ,this.stateUpdate=new ee.xQ,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new s.vpe,this.psScrollX=new s.vpe,this.psScrollUp=new s.vpe,this.psScrollDown=new s.vpe,this.psScrollLeft=new s.vpe,this.psScrollRight=new s.vpe,this.psYReachEnd=new s.vpe,this.psYReachStart=new s.vpe,this.psXReachEnd=new s.vpe,this.psXReachStart=new s.vpe}ngOnInit(){(0,b.NF)(this.platformId)&&(this.stateUpdate.pipe((0,oe.R)(this.ngDestroy),(0,re.x)((t,e)=>t===e&&!this.stateTimeout)).subscribe(t=>{this.stateTimeout&&"undefined"!=typeof window&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===t||"y"===t?(this.interaction=!1,"x"===t?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===t&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===t||"right"===t?(this.states.left=!1,this.states.right=!1,this.states[t]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):"top"!==t&&"bottom"!==t||(this.states.top=!1,this.states.bottom=!1,this.states[t]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&"undefined"!=typeof window&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const t=this.directiveRef.elementRef.nativeElement;(0,ie.R)(t,"wheel").pipe((0,oe.R)(this.ngDestroy)).subscribe(t=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(t,t.deltaX,t.deltaY)}),(0,ie.R)(t,"touchmove").pipe((0,oe.R)(this.ngDestroy)).subscribe(t=>{if(!this.disabled&&this.autoPropagation){const e=t.touches[0].clientX,i=t.touches[0].clientY;this.checkPropagation(t,e-this.scrollPositionX,i-this.scrollPositionY),this.scrollPositionX=e,this.scrollPositionY=i}}),(0,ne.T)((0,ie.R)(t,"ps-scroll-x").pipe((0,ae.h)("x")),(0,ie.R)(t,"ps-scroll-y").pipe((0,ae.h)("y")),(0,ie.R)(t,"ps-x-reach-end").pipe((0,ae.h)("right")),(0,ie.R)(t,"ps-y-reach-end").pipe((0,ae.h)("bottom")),(0,ie.R)(t,"ps-x-reach-start").pipe((0,ae.h)("left")),(0,ie.R)(t,"ps-y-reach-start").pipe((0,ae.h)("top"))).pipe((0,oe.R)(this.ngDestroy)).subscribe(t=>{this.disabled||!this.autoPropagation&&!this.scrollIndicators||this.stateUpdate.next(t)})}}),window.setTimeout(()=>{ri.forEach(t=>{this.directiveRef&&(this.directiveRef[t]=this[t])})},0))}ngOnDestroy(){(0,b.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&"undefined"!=typeof window&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,b.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const t=this.directiveRef.elementRef.nativeElement;this.usePropagationX=t.classList.contains("ps--active-x"),this.usePropagationY=t.classList.contains("ps--active-y")}}checkPropagation(t,e,i){this.interaction=!0;const n=e<0?-1:1,s=i<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==n)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==s))&&(t.preventDefault(),t.stopPropagation()),e&&(this.scrollDirectionX=n),i&&(this.scrollDirectionY=s),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}};return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perfect-scrollbar"]],viewQuery:function(t,e){if(1&t&&s.Gf(ci,7),2&t){let t;s.iGM(t=s.CRH())&&(e.directiveRef=t.first)}},hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("ps-show-limits",e.autoPropagation)("ps-show-active",e.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:ii,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.YNc(3,ei,5,16,"div",2),s.qZA()),2&t&&(s.ekj("ps",e.usePSClass),s.Q6J("perfectScrollbar",e.config)("disabled",e.disabled),s.xp6(3),s.Q6J("ngIf",e.scrollIndicators))},directives:[ci,b.O5],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:-webkit-box;display:flex;flex-direction:column;height:auto;min-width:0;min-height:0;-webkit-box-direction:column;-webkit-box-orient:column}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:-webkit-box;display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-direction:inherit;-webkit-box-flex:1;-webkit-box-orient:inherit;-webkit-box-pack:inherit},perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important;-webkit-box-direction:row!important;-webkit-box-orient:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important;-webkit-box-direction:column!important;-webkit-box-orient:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{position:absolute;opacity:0;-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;-webkit-transition:width .2s linear,opacity .2s linear,background-color .2s linear;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;-webkit-transition:height .2s linear,opacity .2s linear,background-color .2s linear;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x,perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x,perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:-webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to bottom,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:-webkit-gradient(linear,left bottom,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to top,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to right,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:-webkit-gradient(linear,right top,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to left,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:-webkit-gradient(linear,left top,left bottom,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to bottom,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:-webkit-gradient(linear,left bottom,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to top,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:-webkit-gradient(linear,left top,right top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to right,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:-webkit-gradient(linear,right top,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to left,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show{opacity:1}",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ps{overflow:auto!important}}"],encapsulation:2}),t=(0,te.gn)([(0,te.fM)(2,(0,s.tBr)(s.Lbi))],t),t})(),li=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ez],b.ez]}),t})();var hi=i(17),di=i(11418);function pi(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"perun-web-apps-notification",2),s.NdJ("closeNotification",function(){const e=s.CHM(t).index;return s.oxw().removeNotification(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.Q6J("@flyInOut",void 0),s.xp6(1),s.Q6J("data",t)("newNotification",!0)}}const gi=function(t){return{top:t}};let fi=(()=>{class t{constructor(t,e){this.notificator=t,this.notificationStorageService=e,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(t=>{this.processNotification(t)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}processNotification(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(t){this.notifications.splice(t,1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.V6),s.Y36(c.SZ))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.getScreenSize(t)},!1,s.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,pi,2,3,"div",1),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(2,gi,e.getNotificatorTop())),s.xp6(1),s.Q6J("ngForOf",e.notifications))},directives:[b.PC,b.sg,di.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;bottom:0}}"],data:{animation:[hi.Pd]}}),t})();var mi=i(4253);function bi(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"perun-web-apps-notification",10),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("data",t)("inDialog",!0)}}function wi(t,e){if(1&t&&(s.TgZ(0,"div",6),s.TgZ(1,"cdk-virtual-scroll-viewport",7),s.YNc(2,bi,2,2,"div",8),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Q6J("cdkVirtualForOf",t.notifications)}}function _i(t,e){1&t&&(s.TgZ(0,"app-alert",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}let yi=(()=>{class t{constructor(t,e){this.dialogRef=t,this.notificationStorageService=e}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(p.so),s.Y36(c.SZ))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,wi,3,1,"div",1),s.YNc(4,_i,3,3,"app-alert",2),s.TgZ(5,"div",3),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.onClear()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",5),s.NdJ("click",function(){return e.onCancel()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),s.xp6(2),s.Q6J("ngIf",0!==e.notifications.length),s.xp6(1),s.Q6J("ngIf",0===e.notifications.length),s.xp6(3),s.hij(" ",s.lcZ(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),s.xp6(3),s.hij(" ",s.lcZ(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},directives:[p.uh,b.O5,p.H8,_.lW,mi.N7,mi.xd,mi.x0,di.c,y.w],pipes:[d.X$],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),t})();var Ai=i(41050),vi=i(66438);function Ti(t,e){1&t&&(s.TgZ(0,"div",11),s.TgZ(1,"span",12),s._uU(2," ~ \ud83d\uddf2\xa0 "),s.qZA(),s.TgZ(3,"span",13),s._uU(4," DEVEL "),s.qZA(),s.TgZ(5,"span",12),s._uU(6," \xa0\ud83d\uddf2 ~ "),s.qZA(),s.qZA())}const Ci=function(t){return{color:t}},Si=function(){return["/"]},Ei=function(t){return{padding:t}},ki=function(){return{height:"56px"}};let xi=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u){this.storeService=t,this.authService=e,this.authzResolverService=i,this.dialog=n,this.notificator=s,this.translateService=o,this.store=r,this.sanitizer=a,this.notificationStorageService=c,this.utilsService=u,this.logoutEnabled=!0,this.navTextColor=this.store.get("theme","nav_text_color"),this.iconColor=this.store.get("theme","nav_icon_color"),this.logoPadding=this.storeService.get("logo_padding"),this.isDevel=!1}ngOnInit(){this.isDevel=this.storeService.get("isDevel"),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.utilsService.getAppsConfig().subscribe(t=>{this.profileUrl=t.brands[0].newApps.profile?t.brands[0].newApps.profile:null})}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const t=(0,u.kZ)();t.width="520px",this.dialog.open(yi,t)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.d6),s.Y36(c.e8),s.Y36(a.Ct),s.Y36(p.uw),s.Y36(c.V6),s.Y36(d.sK),s.Y36(c.d6),s.Y36(n.H7),s.Y36(c.SZ),s.Y36(a.FW))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-perun-nav-menu"]],inputs:{sideNav:"sideNav",principal:"principal"},decls:14,vars:33,consts:[["id","nav-menu-icons",3,"ngStyle"],["mat-icon-button","",1,"mr-2","mt-auto","mb-auto",3,"click"],[3,"ngStyle"],["queryParamsHandling","merge",3,"routerLink","ngStyle"],[1,"logo-container",3,"innerHTML","ngStyle"],["logoContainer",""],["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,"url","label","user","logoutEnabled","iconColor","textColor"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"button",1),s.NdJ("click",function(){return e.sideNav.toggle()}),s.TgZ(2,"mat-icon",2),s._uU(3," menu "),s.qZA(),s.qZA(),s.TgZ(4,"a",3),s._UZ(5,"div",4,5),s.qZA(),s.qZA(),s.YNc(7,Ti,7,0,"div",6),s.TgZ(8,"div",7),s.TgZ(9,"button",8),s.NdJ("click",function(){return e.showNotificationHistory()}),s.ALo(10,"translate"),s.TgZ(11,"mat-icon",9),s._uU(12),s.qZA(),s.qZA(),s._UZ(13,"perun-web-apps-header-menu",10),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(21,Ci,e.navTextColor)),s.xp6(2),s.Q6J("ngStyle",s.VKq(23,Ci,e.iconColor)),s.xp6(2),s.Q6J("routerLink",s.DdM(25,Si))("ngStyle",s.VKq(26,Ei,e.logoPadding)),s.xp6(1),s.Q6J("innerHTML",e.logo,s.oJD)("ngStyle",s.DdM(28,ki)),s.xp6(2),s.Q6J("ngIf",e.isDevel),s.xp6(1),s.Q6J("ngStyle",s.VKq(29,Ci,e.navTextColor)),s.xp6(1),s.Q6J("matTooltip",s.lcZ(10,19,"NAV.NOTIFICATIONS_TOOLTIP")),s.xp6(2),s.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),s.Q6J("ngStyle",s.VKq(31,Ci,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),s.xp6(1),s.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," "),s.xp6(1),s.Q6J("url",e.profileUrl)("label",e.profileLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.navTextColor))},directives:[b.PC,_.lW,w.Hw,o.yS,b.O5,v.gM,Ai.k,vi.X],pipes:[d.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%] [_ngcontent-%COMP%]::slotted(svg){height:56px}#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}"]}),t})();var Ri=i(24081);const Ii={provide:St.TP,useExisting:(0,s.Gpc)(()=>c.yC),multi:!0};function Oi(t){return new Ct(t,"./assets/i18n/",".json")}function Pi(t){const e={basePath:t.get("api_url")};return new a.VK(e)}const Di=t=>()=>t.initialize(),Mi={suppressScrollX:!0};let Li=(()=>{class t{constructor(t,e){this.customIconService=t,this.translate=e,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(c.EB),s.LFG(d.sK))},t.\u0275mod=s.oAB({type:t,bootstrap:[vt.y]}),t.\u0275inj=s.cJS({providers:[Wt,{provide:s.ip1,useFactory:Di,multi:!0,deps:[Wt]},{provide:a.VK,useFactory:Pi,deps:[c.d6]},{provide:o.wN,useClass:Yt},c.EB,{provide:Vt,useClass:c.sM},c.yC,Ii,{provide:ni,useValue:Mi}],imports:[[Et.PW,n.b2,St.JF,Tt.m,kt,At,w.Ps,Xt,d.aw.forRoot({loader:{provide:d.Zw,useFactory:Oi,deps:[St.eN]}}),a.au,li,rt.ez,at]]}),t})();s.B6R(vt.y,[b.O5,w.Hw,fi,xi,b.PC,g.TM,g.JX,ui,Ri.V,g.Rh,o.lC,ut.$,_t],[]),(0,s.G48)(),n.q6().bootstrapModule(Li).catch(t=>console.error(t))},7423:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(61511),s=i(31572);let o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez]]}),t})()},13857:function(t,e,i){"use strict";i.d(e,{Rc:function(){return s},pI:function(){return o},Ng:function(){return r}});var n=i(31572);const s="GUI_CONFIG.PREF_PAGE_SIZE",o="GUI_CONFIG.PREF_PAGE_SIZE.";let r=(()=>{class t{constructor(){}getString(t){return localStorage.getItem(t)}getNumber(t){return parseInt(localStorage.getItem(t),10)}setNumber(t,e){localStorage.setItem(t,e.toString())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},60611:function(t,e,i){"use strict";i.d(e,{dB:function(){return o},CP:function(){return r},tw:function(){return a},nT:function(){return c},YF:function(){return u},gc:function(){return l},v1:function(){return h},AA:function(){return d},VR:function(){return p},uM:function(){return g},xx:function(){return f},H2:function(){return m},xt:function(){return b},dI:function(){return w},j1:function(){return _},Wv:function(){return y},qy:function(){return A},BV:function(){return v},qV:function(){return T},tY:function(){return C},Af:function(){return S},O7:function(){return E},gB:function(){return k},Hi:function(){return x},Jf:function(){return R},W1:function(){return I},rF:function(){return O},Aj:function(){return P},Ad:function(){return D},kZ:function(){return M},cL:function(){return L},RS:function(){return N},HC:function(){return z},KE:function(){return F},Sb:function(){return Z},_7:function(){return B},bf:function(){return q},rc:function(){return U},Cf:function(){return H},eq:function(){return j},NG:function(){return G},O9:function(){return Y},d7:function(){return V},vq:function(){return K},NL:function(){return J},kO:function(){return $},aL:function(){return Q},DR:function(){return W},uC:function(){return X},JO:function(){return tt},oK:function(){return et},Iz:function(){return it},It:function(){return nt},z6:function(){return st},iQ:function(){return ot},e5:function(){return rt},Bf:function(){return at},zp:function(){return ct},US:function(){return ut},gG:function(){return lt},$V:function(){return ht},S7:function(){return dt},zW:function(){return pt},CE:function(){return gt},Is:function(){return ft},M8:function(){return mt},g:function(){return bt},_c:function(){return wt}});var n=i(13857),s=i(31572);let o=(()=>{class t{constructor(t){this.guiConfigService=t}getTablePageSize(t){const e=this.guiConfigService.getNumber(n.pI+t);if(!isNaN(e))return e;const i=this.guiConfigService.getNumber(n.Rc);return isNaN(i)?10:i}setTablePageSize(t,e){this.guiConfigService.setNumber(n.pI+t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.Ng))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const r="0",a="1",c="2",u="3",l="4",h="5",d="6",p="7",g="8",f="9",m="10",b="11",w="12",_="13",y="14",A="15",v="16",T="17",C="18",S="19",E="20",k="21",x="22",R="23",I="24",O="25",P="26",D="27",M="28",L="29",N="30",z="31",F="32",Z="33",B="34",q="35",U="36",H="37",j="42",G="43",Y="44",V="45",K="46",J="47",$="48",Q="49",W="50",X="51",tt="52",et="53",it="54",nt="55",st="56",ot="57",rt="58",at="59",ct="62",ut="63",lt="64",ht="65",dt="66",pt="69",gt="71",ft="72",mt="75",bt="76",wt="77"},17:function(t,e,i){"use strict";i.d(e,{Ji:function(){return a},Pd:function(){return o},BQ:function(){return s},Ly:function(){return r},GH:function(){return l},Ls:function(){return h},SG:function(){return u},es:function(){return c}});var n=i(10709);const s=(0,n.X$)("openClose",[(0,n.SB)("open",(0,n.oB)({overflow:"hidden"})),(0,n.SB)("closed",(0,n.oB)({height:"0px",overflow:"hidden"})),(0,n.eR)("open <=> closed",[(0,n.jt)(".3s ease-in")])]),o=(0,n.X$)("flyInOut",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)(".25s")]),(0,n.eR)(":leave",[(0,n.jt)(".5s",(0,n.oB)({transform:"translateX(100%)"}))])]),r=(0,n.X$)("rollInOut",[(0,n.eR)(":enter",[(0,n.oB)({height:"0px"}),(0,n.jt)(".25s")]),(0,n.eR)(":leave",[(0,n.jt)(".25s",(0,n.oB)({height:"0px"}))])]),a=(0,n.X$)("routeAnimations",[(0,n.eR)("* => *",[(0,n.oB)({position:"relative"}),(0,n.IO)(":enter",[(0,n.oB)({width:"100%",opacity:0})],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({position:"absolute",width:"100%",opacity:1}),(0,n.jt)("0.15s",(0,n.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,n.IO)(":enter",[(0,n.oB)({position:"absolute",width:"100%",opacity:0}),(0,n.jt)("0.15s",(0,n.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),c=(0,n.X$)("tagsOpenClose",[(0,n.SB)("open",(0,n.oB)({})),(0,n.SB)("closed",(0,n.oB)({width:"0px",height:"0px"})),(0,n.eR)("open <=> closed",[(0,n.jt)(".3s ease-in")])]),u=(0,n.X$)("switchAnimations",[(0,n.eR)("true => false",[(0,n.IO)(":enter, :leave",(0,n.oB)({})),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(-100%)"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)",position:"absolute"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,n.eR)("false => true",[(0,n.IO)(":enter, :leave",(0,n.oB)({})),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)",position:"absolute"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),l=(0,n.X$)("slideInOutLeft",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(-100%)",position:"relative"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(0%)"}))]),(0,n.eR)(":leave",[(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(-100%)"}))])]),h=(0,n.X$)("slideInOutRight",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(100%)",position:"fixed"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(0%)"}))]),(0,n.eR)(":leave",[(0,n.oB)({transform:"translateX(-100%)",position:"relative"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(100%)"}))])])},41939:function(t,e,i){"use strict";i.d(e,{Mw:function(){return N.M},Sx:function(){return W.S},Nj:function(){return $},ez:function(){return L},t$:function(){return Q}});var n=i(61511),s=i(29236),o=i(67033),r=i(48160),a=i(57629),c=i(58623),u=i(73005),l=i(67806),h=i(22727),d=i(43691),p=i(8055),g=i(15980),f=i(36922),m=i(66283),b=i(16073),w=i(80340),_=i(10033),y=i(88975),A=i(71522),v=i(22280),T=i(81391),C=i(91010),S=i(15812),E=i(54810),k=i(4786),x=i(30146),R=i(4253),I=i(84608),O=i(84140),P=i(31572);let D=(()=>{class t extends A.LF{format(t,e){return"input"===e?`${t.getDate().toString()}.${(t.getMonth()+1).toString()}.${t.getFullYear()}`:t.toDateString()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=P.n5z(t)))(i||t)}}(),t.\u0275prov=P.Yz7({token:t,factory:t.\u0275fac}),t})();const M={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 L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=P.oAB({type:t}),t.\u0275inj=P.cJS({providers:[{provide:A._A,useClass:D},{provide:A.sG,useValue:M}],imports:[[n.ez,s.p9,o.p0,b.u5,_.Hi,y._t,r.aw,a.Bz,c.JX,u.TU,l.Cq,h.r,d.Ps,p.Tx,g.ot,f.AV,m.lN,b.UX,w.c,A.si,v.d4,T.Iq,C.dp,S.FA,E.Fk,A.Ng,k.LD,x.Co,R.Cl,I.Is,O.Je]]}),t})();i(41186);var N=i(51556),z=(i(76021),i(84584),i(22230),i(33596),i(88884),i(11418),i(23888),i(33642)),F=i(88426),Z=i(39571),B=i(83787);function q(t,e){1&t&&(P.TgZ(0,"app-alert"),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function U(t,e){1&t&&(P.TgZ(0,"th",15),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))))}function H(t,e){if(1&t&&(P.TgZ(0,"td",16),P._uU(1),P.qZA()),2&t){const t=e.$implicit;P.xp6(1),P.Oqu(t.friendlyNameParameter)}}function j(t,e){1&t&&(P.TgZ(0,"th",15),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))))}function G(t,e){if(1&t&&(P.TgZ(0,"td",17),P._uU(1),P.qZA()),2&t){const t=e.$implicit;P.xp6(1),P.Oqu(t.value)}}function Y(t,e){1&t&&P._UZ(0,"th",15)}function V(t,e){if(1&t){const t=P.EpF();P.TgZ(0,"td",18),P.TgZ(1,"button",19),P.NdJ("click",function(){const e=P.CHM(t).$implicit;return P.oxw().changePassword(e.friendlyNameParameter)}),P._uU(2),P.ALo(3,"translate"),P.ALo(4,"customTranslate"),P.qZA(),P.qZA()}if(2&t){const t=e.$implicit,i=P.oxw();P.xp6(1),P.Q6J("disabled",!i.logins.includes(t)),P.xp6(1),P.Oqu(P.lcZ(3,2,P.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD")))}}function K(t,e){1&t&&P._UZ(0,"tr",20)}function J(t,e){1&t&&P._UZ(0,"tr",21)}let $=(()=>{class t{constructor(t,e){this.attributesManagerService=t,this.store=e,this.nameSpaces=[],this.logins=[],this.displayedColumns=["namespace","value","change"]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(t=>{const e=this.nameSpaces.map(t=>{const e=t.split(":");return e[e.length-1]});this.logins=t.filter(t=>e.includes(t.friendlyNameParameter)),this.dataSource=new o.by(t)})}changePassword(t){const e=this.store.get("pwd_reset_base_url");location.href=`${e}?login-namespace=${t}`}}return t.\u0275fac=function(e){return new(e||t)(P.Y36(z.H8),P.Y36(F.d6))},t.\u0275cmp=P.Xpm({type:t,selectors:[["perun-web-apps-password-reset"]],decls:20,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","change"],["mat-cell","",4,"matCellDef"],["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"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(t,e){1&t&&(P.TgZ(0,"h1",0),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA(),P.YNc(4,q,4,5,"app-alert",1),P.TgZ(5,"div",2),P.TgZ(6,"div",3),P.TgZ(7,"div",4),P.TgZ(8,"table",5),P.ynx(9,6),P.YNc(10,U,4,5,"th",7),P.YNc(11,H,2,1,"td",8),P.BQk(),P.ynx(12,9),P.YNc(13,j,4,5,"th",7),P.YNc(14,G,2,1,"td",10),P.BQk(),P.ynx(15,11),P.YNc(16,Y,1,0,"th",7),P.YNc(17,V,5,6,"td",12),P.BQk(),P.YNc(18,K,1,0,"tr",13),P.YNc(19,J,1,0,"tr",14),P.qZA(),P.qZA(),P.qZA(),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,5,P.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE"))),P.xp6(3),P.Q6J("ngIf",!e.logins.length),P.xp6(4),P.Q6J("dataSource",e.dataSource),P.xp6(10),P.Q6J("matHeaderRowDef",e.displayedColumns),P.xp6(1),P.Q6J("matRowDefColumns",e.displayedColumns))},directives:[n.O5,o.BZ,c.YE,o.w1,o.fO,o.Dz,o.as,o.nj,Z.w,o.ge,o.ev,g.lW,o.XQ,o.Gk],pipes:[r.X$,B.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}"]}),t})(),Q=(()=>{class t{constructor(t,e,i,n){this.router=t,this.route=e,this.location=i,this.forceRoute=n}ngOnInit(){"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(t=>{this.router.navigate([t.redirectTo])}):this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(P.Y36(a.F0),P.Y36(a.gz),P.Y36(n.Ye),P.Y36(F.xw))},t.\u0275cmp=P.Xpm({type:t,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t})();i(78364),i(11441),i(16306),i(43005);var W=i(30725);i(66438)},30725:function(t,e,i){"use strict";i.d(e,{S:function(){return r},Y:function(){return a}});var n=i(31572),s=(i(33642),i(48160)),o=i(44973);const r={};let a=(()=>{class t{constructor(t){this.translate=t,this.item=null,this.itemSelected=new n.vpe,this.nameFunction=t=>t===r?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):t.shortname,this.secondaryFunction=t=>t===r?"":t.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+t.id,this.searchFunction=t=>t===r?"":t.shortname+t.id}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.sK))},t.\u0275cmp=n.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(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.itemSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.items)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.secondaryFunction)("entity",e.item)("disableAutoSelect",!0)("selectPlaceholder",n.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",n.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[o.i],pipes:[s.X$],styles:[""]}),t})()},76021:function(t,e,i){"use strict";i.d(e,{u:function(){return h}});var n=i(31572),s=i(84140),o=i(61511),r=i(29236),a=i(16073),c=i(66283);function u(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",2),n.NdJ("change",function(){return n.CHM(t),n.oxw()._sendEventToParent()})("ngModelChange",function(e){return n.CHM(t),n.oxw().attribute.value=e}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("ngModel",t.attribute.value)}}function l(t,e){if(1&t&&(n.TgZ(0,"mat-label"),n._uU(1),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Oqu(t.attribute.value)}}let h=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.readonly||(this.readonly=(0,s.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,u,1,1,"mat-checkbox",0),n.YNc(2,l,2,1,"mat-label",1),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",!e.readonly),n.xp6(1),n.Q6J("ngIf",e.readonly))},directives:[o.O5,r.oG,a.JJ,a.On,c.hX],styles:[""]}),t})()},84584:function(t,e,i){"use strict";i.d(e,{H:function(){return C}});var n=i(31572),s=i(75842),o=i(88975),r=i(61189),a=i(84140),c=i(84608),u=i(10033),l=i(61511),h=i(43691),d=i(36922),p=i(15980),g=i(66283),f=i(80340);function m(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",9),n.NdJ("mousedown",function(){return n.CHM(t),n.oxw(2).dragDisabled=!1}),n._uU(1,"drag_indicator"),n.qZA()}}function b(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",10),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().edit(e)}),n._uU(1,"edit"),n.qZA()}}function w(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",11),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().remove(e)}),n._uU(1,"cancel"),n.qZA()}}function _(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-chip",4),n.NdJ("removed",function(){const e=n.CHM(t).$implicit,i=n.oxw();return i.remove(e),i._sendEventToParent()}),n.YNc(1,m,2,0,"mat-icon",5),n.TgZ(2,"div",6),n.NdJ("click",function(){const e=n.CHM(t).$implicit,i=n.oxw();return i.readonly&&void 0!==i.attribute.displayName&&i.showValue(e,i.attribute.displayName)}),n._uU(3),n.qZA(),n.YNc(4,b,2,0,"mat-icon",7),n.YNc(5,w,2,0,"mat-icon",8),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.Q6J("selectable",i.selectable)("cdkDragData",t)("removable",i.removable),n.xp6(1),n.Q6J("ngIf",i.removable),n.xp6(1),n.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),n.xp6(1),n.Oqu(t),n.xp6(1),n.Q6J("ngIf",i.removable),n.xp6(1),n.Q6J("ngIf",i.removable)}}function y(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function A(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function v(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div",12),n.TgZ(1,"span",13),n.TgZ(2,"button",14),n.NdJ("click",function(){return n.CHM(t),n.oxw().onShowChange()}),n.YNc(3,y,2,0,"mat-icon",15),n.YNc(4,A,2,0,"mat-icon",15),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("matTooltip",t.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.xp6(2),n.Q6J("ngIf",!t.showMore),n.xp6(1),n.Q6J("ngIf",t.showMore)}}function T(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-form-field",12),n.TgZ(1,"input",16),n.NdJ("matChipInputTokenEnd",function(e){return n.CHM(t),n.oxw().add(e)})("change",function(){return n.CHM(t),n.oxw()._sendEventToParent()}),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(),e=n.MAs(2);n.xp6(1),n.Q6J("matChipInputFor",e)("matChipInputSeparatorKeyCodes",t.separatorKeysCodes)("matChipInputAddOnBlur",t.addOnBlur)}}let C=(()=>{class t{constructor(t){this.dialog=t,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[s.K5,s.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new n.vpe,this.readonly=!1}ngOnInit(){this.removable=!(0,a.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,a.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(t){const e=t.input,i=t.value;(i||"").trim()&&(this.attribute.value.push(i.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),e&&(e.value=""),this.sendEventToParent.emit()}remove(t){const e=(0,a.kZ)();e.width="400px",e.data={name:t},this.dialog.open(r.Wr,e).afterClosed().subscribe(e=>{if(e){const e=this.attribute.value.indexOf(t);this.attribute.value.splice(e,1),this.values=Object.values(this.attribute.value),this.sendEventToParent.emit()}})}drop(t){this.dragDisabled=!0,(0,o.bA)(this.attribute.value,t.previousIndex,t.currentIndex),this.values=Object.values(this.attribute.value)}edit(t){const e=this.attribute.value.indexOf(t),i=(0,a.kZ)();i.width="600px",i.data={attribute:this.attribute,index:e},this.dialog.open(r.r2,i).afterClosed().subscribe(t=>{t&&(this.values=Object.values(this.attribute.value),this.sendEventToParent.emit())})}showValue(t,e){const i=(0,a.kZ)();i.width="350px",i.data={value:t,title:e},this.dialog.open(r.mk,i)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.uw))},t.\u0275cmp=n.Xpm({type:t,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",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-chip-list",0,1),n.NdJ("cdkDropListDropped",function(t){return e.drop(t),e._sendEventToParent()}),n.YNc(3,_,6,9,"mat-chip",2),n.YNc(4,v,5,4,"div",3),n.YNc(5,T,2,3,"mat-form-field",3),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.Q6J("cdkDropListDisabled",e.dragDisabled),n.xp6(2),n.Q6J("ngForOf",e.values.slice(0,e.itemsShown)),n.xp6(1),n.Q6J("ngIf",e.values.length>e.defaultItemsShown),n.xp6(1),n.Q6J("ngIf",!e.readonly))},directives:[u.qn,o.Wj,l.sg,l.O5,u.HS,o.Zt,h.Hw,d.gM,p.lW,g.KE,f.Nt,u.oH],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})()},22230:function(t,e,i){"use strict";i.d(e,{$:function(){return y}});var n=i(61189),s=i(84140),o=i(31572),r=i(84608),a=i(16073),c=i(61511),u=i(36922),l=i(66283),h=i(80340),d=i(15980),p=i(43691);function g(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",15),o.NdJ("click",function(){o.CHM(t);const e=o.oxw().index;return o.oxw().removeValue(e)}),o.TgZ(1,"mat-icon"),o._uU(2," indeterminate_check_box "),o.qZA(),o.qZA()}}function f(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",9),o.TgZ(1,"mat-form-field",10),o._UZ(2,"label",11),o.TgZ(3,"input",12),o.NdJ("click",function(){const e=o.CHM(t).index,i=o.oxw();return i.readonly&&i.attribute.displayName&&i.showValue(i.keys[e],i.attribute.displayName)})("ngModelChange",function(e){const i=o.CHM(t).index;return o.oxw().keys[i]=e}),o.qZA(),o.qZA(),o.TgZ(4,"mat-form-field",10),o._UZ(5,"label",11),o.TgZ(6,"input",13),o.NdJ("click",function(){const e=o.CHM(t).$implicit,i=o.oxw();return i.readonly&&void 0!==i.attribute.displayName&&i.showValue(e,i.attribute.displayName)})("ngModelChange",function(e){const i=o.CHM(t).index;return o.oxw().values[i]=e}),o.qZA(),o.qZA(),o.YNc(7,g,3,0,"button",14),o.qZA()}if(2&t){const t=e.index,i=o.oxw();o.xp6(1),o.s9C("appearance",i.readonly?"none":"standard"),o.xp6(1),o.hYB("for","",i.attribute.id,"-key-",t,""),o.xp6(1),o.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),o.hYB("id","",i.attribute.id,"-key-",t,""),o.MGl("name","key-",t,""),o.Q6J("ngModel",i.keys[t])("readonly",i.readonly),o.xp6(1),o.s9C("appearance",i.readonly?"none":"standard"),o.xp6(1),o.hYB("for","",i.attribute.id,"-value-",t,""),o.xp6(1),o.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),o.MGl("name","value-",t,""),o.hYB("id","",i.attribute.id,"-value-",t,""),o.Q6J("readonly",i.readonly)("ngModel",i.values[t]),o.xp6(1),o.Q6J("ngIf",!i.readonly)}}function m(t,e){1&t&&(o.TgZ(0,"mat-icon"),o._uU(1,"more_horiz"),o.qZA())}function b(t,e){1&t&&(o.TgZ(0,"mat-icon"),o._uU(1,"keyboard_arrow_up"),o.qZA())}function w(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",16),o.NdJ("click",function(){return o.CHM(t),o.oxw().onShowChange()}),o.YNc(1,m,2,0,"mat-icon",17),o.YNc(2,b,2,0,"mat-icon",17),o.qZA()}if(2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",!t.showMore),o.xp6(1),o.Q6J("ngIf",t.showMore)}}function _(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",18),o.NdJ("click",function(){return o.CHM(t),o.oxw().addValue()}),o.TgZ(1,"mat-icon"),o._uU(2," add_box "),o.qZA(),o.qZA()}}let y=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(void 0!==this.attribute.value){const t=this.attribute.value;for(const[e,i]of Object.entries(t))this.keys.push(e),this.values.push(i)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,s.Hm)(this.attribute))}customTrackBy(t){return t}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(t){this.keys.splice(t,1),this.values.splice(t,1)}updateAttribute(){const t={};for(let e=0;ee.defaultItemsShown),o.xp6(1),o.Q6J("ngIf",!e.readonly))},directives:[a._Y,a.JL,a.F,c.sg,u.gM,c.O5,l.KE,h.Nt,a.Fj,a.Q7,a.JJ,a.On,d.lW,p.Hw],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}"]}),t})()},33596:function(t,e,i){"use strict";i.d(e,{_:function(){return l}});var n=i(31572),s=i(84140),o=i(61189),r=i(84608),a=i(66283),c=i(80340),u=i(16073);let l=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,s.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t,e){const i=(0,s.kZ)();i.width="350px",i.data={value:t,title:e},this.dialog.open(o.mk,i)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.uw))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"input",1),n.NdJ("click",function(){return e.readonly&&void 0!==e.value&&e.showValue(e.value,e.attribute.displayName)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),n.qZA(),n.qZA()),2&t&&(n.s9C("appearance",e.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",e.readonly&&void 0!==e.value),n.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[a.KE,c.Nt,u.Fj,u.JJ,u.On],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})()},51556:function(t,e,i){"use strict";i.d(e,{M:function(){return v}});var n=i(31572),s=i(22230),o=i(61511),r=i(76021),a=i(84584),c=i(33596),u=i(84140),l=i(61189),h=i(84608),d=i(66283),p=i(80340),g=i(16073);let f=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.readonly||(this.readonly=(0,u.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t){const e=(0,u.kZ)();e.width="350px",e.data={value:t.value,title:t.displayName},this.dialog.open(l.mk,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(h.uw))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"input",1),n.NdJ("click",function(){return e.readonly&&void 0!==e.attribute.value&&e.showValue(e.attribute)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),n.qZA(),n.qZA()),2&t&&(n.s9C("appearance",e.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",e.readonly&&void 0!==e.attribute.value),n.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[d.KE,p.Nt,g.wV,g.Fj,g.JJ,g.On],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();const m=["map"];function b(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-boolean",3),n.NdJ("sendEventToParent",function(){return n.CHM(t),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function w(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-list",3),n.NdJ("sendEventToParent",function(){return n.CHM(t),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function _(t,e){if(1&t&&n._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function y(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-string",3),n.NdJ("sendEventToParent",function(){return n.CHM(t),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function A(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-integer",3),n.NdJ("sendEventToParent",function(){return n.CHM(t),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}let v=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent2=new n.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(t,e){if(1&t&&n.Gf(m,5),2&t){let t;n.iGM(t=n.CRH())&&(e.mapComponent=t.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(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,b,1,2,"perun-web-apps-attribute-value-boolean",0),n.YNc(2,w,1,2,"perun-web-apps-attribute-value-list",0),n.TgZ(3,"div",1),n.NdJ("click",function(){return e._sendEventToParent2()}),n.YNc(4,_,2,2,"perun-web-apps-attribute-value-map",2),n.qZA(),n.YNc(5,y,1,2,"perun-web-apps-attribute-value-string",0),n.YNc(6,A,1,2,"perun-web-apps-attribute-value-integer",0),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf","java.lang.Boolean"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.util.ArrayList"===e.attribute.type),n.xp6(2),n.Q6J("ngIf","java.util.LinkedHashMap"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.String"===e.attribute.type||"java.lang.LargeString"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.Integer"===e.attribute.type))},directives:[o.O5,r.u,a.H,s.$,c._,f],styles:[""]}),t})()},41186:function(t,e,i){"use strict";i.d(e,{p:function(){return O}});var n=i(31572),s=i(58623),o=i(67033),r=i(4230),a=i(51556),c=i(84140),u=i(88426),l=i(82819),h=i(61511),d=i(29236),p=i(36922),g=i(39571);let f=(()=>{class t{transform(t){return"virt"===t.namespace.split(":")[4]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"isVirtualAttribute",type:t,pure:!0}),t})();var m=i(48160);function b(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"th",15),n.TgZ(1,"mat-checkbox",16),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw();return e?i.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())("aria-label",t.checkboxLabel())}}function w(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",17),n.TgZ(1,"mat-checkbox",18),n.NdJ("click",function(t){return t.stopPropagation()})("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.selection.toggle(i):null}),n.ALo(2,"isVirtualAttribute"),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("checked",i.selection.isSelected(t))("disabled",n.lcZ(2,3,t)||!t.writable)("aria-label",i.checkboxLabel(t))}}function _(t,e){1&t&&(n.TgZ(0,"th",19),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")))}function y(t,e){if(1&t&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function A(t,e){1&t&&(n.TgZ(0,"th",19),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")))}function v(t,e){if(1&t&&(n.TgZ(0,"td",20),n.TgZ(1,"div",21),n._uU(2),n.qZA(),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.s9C("matTooltip",i.getAttributeFullName(t)),n.xp6(1),n.hij(" ",t.displayName," ")}}function T(t,e){1&t&&(n.TgZ(0,"th",15),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")))}function C(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",20),n.TgZ(1,"perun-web-apps-attribute-value",22),n.NdJ("sendEventToParent2",function(){const e=n.CHM(t).$implicit;return n.oxw().onValueChange(e)}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("attribute",t)("readonly",i.readonly||!t.writable)}}function S(t,e){1&t&&(n.TgZ(0,"th",19),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")))}function E(t,e){if(1&t&&(n.TgZ(0,"td",20),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.description)}}function k(t,e){1&t&&n._UZ(0,"tr",23)}function x(t,e){if(1&t&&(n._UZ(0,"tr",24),n.ALo(1,"translate")),2&t){const t=e.$implicit,i=n.oxw();n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),n.Q6J("matTooltipPosition","before")("matTooltipDisabled",t.writable||i.readonly)}}function R(t,e){1&t&&(n.TgZ(0,"app-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function I(t,e){1&t&&(n.TgZ(0,"app-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY"),"\n"))}let O=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.attributes=[],this.selection=new r.Ov(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.pageSize=10,this.page=new n.vpe,this.readonly=!1,this.hiddenColumns=[],this.pageSizeOptions=c.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new o.by((0,c.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"displayName":return t.displayName;case"description":return t.description;case"value":return JSON.stringify(t.value);default:return""}}exportData(t){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(t=>!this.hiddenColumns.includes(t)),this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,c.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,c.pR)(t,e,this.getDataForColumn,this),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.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.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"}updateMapAttributes(){for(const t of this.items.toArray())"java.util.LinkedHashMap"===t.attribute.type&&t.updateMapAttribute()}onValueChange(t){this.canBeSelected(t)&&this.selection.select(t)}canBeSelected(t){return!(0,c.Hm)(t)&&t.writable}getAttributeFullName(t){return`${t.namespace}:${t.friendlyName}`}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.x4),n.Y36(u.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(c.l9,7),n.Gf(a.M,5)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first),n.iGM(t=n.CRH())&&(e.items=t)}},inputs:{attributes:"attributes",selection:"selection",inDialog:"inDialog",filterValue:"filterValue",pageSize:"pageSize",readonly:"readonly",hiddenColumns:"hiddenColumns"},outputs:{page:"page"},features:[n.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["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",""],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,b,2,3,"th",4),n.YNc(5,w,3,5,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,_,3,3,"th",7),n.YNc(8,y,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,A,3,3,"th",7),n.YNc(11,v,3,2,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,T,3,3,"th",4),n.YNc(14,C,2,2,"td",9),n.BQk(),n.ynx(15,11),n.YNc(16,S,3,3,"th",7),n.YNc(17,E,2,1,"td",9),n.BQk(),n.YNc(18,k,1,0,"tr",12),n.YNc(19,x,2,5,"tr",13),n.qZA(),n.qZA(),n.qZA(),n.YNc(20,R,3,3,"app-alert",14),n.YNc(21,I,3,3,"app-alert",14)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(16),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.dataSource.data.length),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.data.length))},directives:[l.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,d.oG,o.ev,s.nU,p.gM,a.M,o.XQ,o.Gk,g.w],pipes:[f,m.X$],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),t})()},66297:function(t,e,i){"use strict";i.d(e,{W:function(){return h}});var n=i(88426),s=i(31572),o=i(61511),r=i(15980),a=i(36922),c=i(43691),u=i(48160);const l=function(t){return{color:t}};let h=(()=>{class t{constructor(t,e){this.location=t,this.storeService=e}ngOnInit(){this.backButtonColor=this.storeService.get("theme","backButtonColor")}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.Ye),s.Y36(n.d6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"button",0),s.NdJ("click",function(){return e.goBack()}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",1),s._uU(3,"arrow_right_alt"),s.qZA(),s.qZA()),2&t&&(s.s9C("matTooltip",s.lcZ(1,2,"Back")),s.Q6J("ngStyle",s.VKq(4,l,e.backButtonColor)))},directives:[r.lW,o.PC,a.gM,c.Hw],pipes:[u.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),t})()},43005:function(t,e,i){"use strict";i.d(e,{r:function(){return g}});var n=i(31572),s=i(16073),o=i(88426),r=i(66283),a=i(80340),c=i(61511),u=i(29236),l=i(37665),h=i(48160);function d(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",7),n.NdJ("change",function(){return n.CHM(t),n.oxw().emitAsSubGroup()})("ngModelChange",function(e){return n.CHM(t),n.oxw().asSubgroup=e}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("labelPosition","before")("ngModel",t.asSubgroup),n.xp6(1),n.hij(" ",n.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function p(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-group-search-select",8),n.NdJ("groupSelected",function(e){return n.CHM(t),n.oxw().emitParentGroup(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("disableAutoSelect",!0)("groups",t.voGroups)}}let g=(()=>{class t{constructor(t){this.store=t,this.parentGroup=null,this.voGroups=[],this.asSubgroup=!1,this.invalidNameMessage=this.store.get("groupNameErrorMessage"),this.secondaryRegex=this.store.get("groupNameSecondaryRegex"),this.nameChanged=new n.vpe,this.descriptionChanged=new n.vpe,this.parentGroupChanged=new n.vpe,this.asSubgroupChanged=new n.vpe}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new s.NI("",[s.kI.required,s.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),s.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new s.NI("",[s.kI.required,s.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(t=>"members"!==t.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(t){this.selectedParent=t,this.parentGroupChanged.emit(t)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.d6))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"mat-form-field",1),n.NdJ("keyup",function(){return e.emitName()}),n.TgZ(2,"label",2),n._UZ(3,"input",3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"mat-error"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.qZA(),n.TgZ(8,"mat-form-field",4),n.NdJ("keyup",function(){return e.emitDescription()}),n.TgZ(9,"label",2),n._UZ(10,"textarea",3),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"mat-error"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.qZA(),n.YNc(15,d,3,5,"mat-checkbox",5),n.YNc(16,p,1,2,"perun-web-apps-group-search-select",6),n.qZA()),2&t&&(n.xp6(3),n.s9C("placeholder",n.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),n.Q6J("formControl",e.nameControl),n.xp6(3),n.hij(" ",e.invalidNameMessage.length?e.invalidNameMessage:n.lcZ(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),n.xp6(4),n.s9C("placeholder",n.lcZ(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),n.Q6J("formControl",e.descriptionControl),n.xp6(3),n.hij(" ",n.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),n.xp6(2),n.Q6J("ngIf",e.isNotSubGroup),n.xp6(1),n.Q6J("ngIf",e.asSubgroup))},directives:[r.KE,a.Nt,s.Fj,s.Q7,s.JJ,s.oH,r.TO,c.O5,u.oG,s.On,l.h],pipes:[h.X$],styles:[""]}),t})()},51613:function(t,e,i){"use strict";i.d(e,{S:function(){return u}});var n=i(31572),s=i(66283),o=i(80340),r=i(15812),a=i(16073),c=i(48160);let u=(()=>{class t{constructor(){this.datePicker=new n.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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},outputs:{datePicker:"datePicker"},decls:16,vars:16,consts:[["appearance","standard",1,"space-right",3,"click"],["matInput","","readonly","",3,"matDatepicker","min","max","formControl","dateChange"],["matSuffix","",3,"for"],["datePickerStart",""],["appearance","standard",3,"click"],["datePickerEnd",""]],template:function(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-form-field",0),n.NdJ("click",function(){return n.CHM(t),n.MAs(7).open()}),n.TgZ(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"input",1),n.NdJ("dateChange",function(){return e.dateChange()}),n.qZA(),n._UZ(5,"mat-datepicker-toggle",2),n._UZ(6,"mat-datepicker",null,3),n.qZA(),n.TgZ(8,"mat-form-field",4),n.NdJ("click",function(){return n.CHM(t),n.MAs(15).open()}),n.TgZ(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"input",1),n.NdJ("dateChange",function(){return e.dateChange()}),n.qZA(),n._UZ(13,"mat-datepicker-toggle",2),n._UZ(14,"mat-datepicker",null,5),n.qZA()}if(2&t){const t=n.MAs(7),i=n.MAs(15);n.xp6(2),n.Oqu(n.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),n.xp6(2),n.Q6J("matDatepicker",t)("min",e.startMinDate)("max",e.startMaxDate)("formControl",e.startDate),n.xp6(1),n.Q6J("for",t),n.xp6(5),n.Oqu(n.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),n.xp6(2),n.Q6J("matDatepicker",i)("min",e.endMinDate)("max",e.endMaxDate)("formControl",e.endDate),n.xp6(1),n.Q6J("for",i)}},directives:[s.KE,s.hX,o.Nt,r.hl,a.Fj,a.JJ,a.oH,r.nW,s.R9,r.Mq],pipes:[c.X$],styles:[""]}),t})()},91058:function(t,e,i){"use strict";i.d(e,{P:function(){return d}});var n=i(31572),s=i(87254),o=i(79996),r=i(47701),a=i(98720),c=i(66283),u=i(80340),l=i(48160);const h=["groupFilterInput"];let d=(()=>{class t{constructor(){this.filter=new n.vpe}ngOnInit(){(0,s.R)(this.groupFilterInput.nativeElement,"keyup").pipe((0,o.U)(t=>t.target.value),(0,r.b)(500),(0,a.x)()).subscribe(t=>{this.filter.emit(t)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(t,e){if(1&t&&n.Gf(h,7),2&t){let t;n.iGM(t=n.CRH())&&(e.groupFilterInput=t.first)}},inputs:{placeholder:"placeholder"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-3"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n._UZ(1,"input",1,2),n.ALo(3,"translate"),n.qZA()),2&t&&(n.xp6(1),n.s9C("placeholder",n.lcZ(3,1,e.placeholder)))},directives:[c.KE,u.Nt],pipes:[l.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t})()},44973:function(t,e,i){"use strict";i.d(e,{i:function(){return w}});var n=i(31572),s=i(16073),o=i(66994),r=i(55959),a=i(25416),c=i(96577),u=i(66283),l=i(4786),h=i(71522),d=i(30146),p=i(61511),g=i(4253);const f=["scrollViewport"];function m(t,e){if(1&t&&(n.TgZ(0,"mat-option",7),n._uU(1),n.TgZ(2,"span",8),n._uU(3),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.Q6J("value",null==t.entitiesCtrl?null:t.entitiesCtrl.value),n.xp6(1),n.hij(" ",t.mainTextFunction(null==t.entitiesCtrl?null:t.entitiesCtrl.value)," "),n.xp6(2),n.Oqu(t.secondaryTextFunction(null==t.entitiesCtrl?null:t.entitiesCtrl.value))}}function b(t,e){if(1&t&&(n.TgZ(0,"mat-option",9),n._uU(1),n.TgZ(2,"span",8),n._uU(3),n.qZA(),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.Q6J("value",t),n.xp6(1),n.hij(" ",i.mainTextFunction(t)," "),n.xp6(2),n.Oqu(i.secondaryTextFunction(t))}}let w=(()=>{class t{constructor(t){this.cd=t,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.entitySelected=new n.vpe,this.entitiesCtrl=new s.NI,this.entityFilterCtrl=new s.NI,this.filteredEntities=new o.t(1),this.entitiesLen=0,this._onDestroy=new r.xQ,this.mainTextFunction=t=>(0,c.stringify)(t),this.secondaryTextFunction=t=>"#"+t.id}ngOnInit(){this.entitiesCtrl.valueChanges.subscribe(t=>this.entitySelected.emit(t)),this.disableAutoSelect||null!==this.entity||this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(t=>this.entitiesLen=t.length),this.entityFilterCtrl.valueChanges.pipe((0,a.R)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}ngOnChanges(t){t.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}filterEntites(){if(!this.entities)return;let t=this.entityFilterCtrl.value;if(!t)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();t=this.normalize(t),this.filteredEntities.next(this.entities.filter(e=>this.normalize(this.searchFunction(e)).indexOf(t)>=0)),this.cd.detectChanges()}normalize(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}getViewportHeight(){let t=48*this.entitiesLen;return t>192&&(t=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),t}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(t,e){if(1&t&&n.Gf(f,5),2&t){let t;n.iGM(t=n.CRH())&&(e.scrollViewport=t.first)}},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected"},features:[n.TTD],decls:9,vars:14,consts:[[1,"w-100"],[3,"placeholder","formControl","openedChange"],[3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"value",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"selected-options-bottom",3,"value"],[1,"text-muted","muted"],[3,"value"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"mat-select",1),n.NdJ("openedChange",function(){return e.openChange()}),n.TgZ(2,"mat-option"),n._UZ(3,"ngx-mat-select-search",2),n.qZA(),n.YNc(4,m,4,3,"mat-option",3),n.TgZ(5,"cdk-virtual-scroll-viewport",4,5),n.YNc(7,b,4,3,"mat-option",6),n.ALo(8,"async"),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.s9C("placeholder",e.selectPlaceholder),n.Q6J("formControl",e.entitiesCtrl),n.xp6(2),n.s9C("placeholderLabel",e.findPlaceholder),n.s9C("noEntriesFoundLabel",e.noEntriesText),n.Q6J("clearSearchInput",!1)("formControl",e.entityFilterCtrl),n.xp6(1),n.Q6J("ngIf",null==e.entitiesCtrl?null:e.entitiesCtrl.value),n.xp6(1),n.Udp("height",e.getViewportHeight(),"px"),n.Q6J("minBufferPx",240)("maxBufferPx",480),n.xp6(2),n.Q6J("cdkVirtualForOf",n.lcZ(8,12,e.filteredEntities)))},directives:[u.KE,l.gD,s.JJ,s.oH,h.ey,d.nu,p.O5,g.N7,g.xd,g.x0],pipes:[p.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}"]}),t})()},60007:function(t,e,i){"use strict";i.d(e,{X:function(){return J}});var n=i(31572),s=i(58623),o=i(67033),r=i(84140),a=i(88426),c=i(82819),u=i(61511),l=i(29236),h=i(72953),d=i(16073),p=i(36922),g=i(15980),f=i(43691);function m(t,e){if(1&t&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.hij(" ",t[i.paramName]," ")}}function b(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function w(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function _(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){return n.CHM(t),n.oxw().onShowChange()}),n.YNc(1,b,2,0,"mat-icon",8),n.YNc(2,w,2,0,"mat-icon",8),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",!t.showMore),n.xp6(1),n.Q6J("ngIf",t.showMore)}}let y=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[n.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(t,e){1&t&&(n.TgZ(0,"form",0),n.TgZ(1,"div",1),n.TgZ(2,"div",2),n.YNc(3,m,2,1,"div",3),n.qZA(),n.TgZ(4,"div"),n.TgZ(5,"span",4),n.YNc(6,_,3,2,"button",5),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.xp6(3),n.Q6J("ngForOf",e.objects.slice(0,e.itemsShown)),n.xp6(2),n.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.xp6(1),n.Q6J("ngIf",e.objects.length>e.defaultItemsShown))},directives:[d._Y,d.JL,d.F,u.sg,p.gM,u.O5,g.lW,f.Hw],styles:[""]}),t})();var A=i(84534),v=i(57629),T=i(39571),C=i(48160),S=i(48853);let E=(()=>{class t{transform(t,e,i){return t.filter(t=>t[i].includes(e)).filter((t,e,n)=>n.findIndex(e=>e[i]===t[i])===e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"filterUniqueObjects",type:t,pure:!0}),t})();function k(t,e){1&t&&n._UZ(0,"th",18)}function x(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",19),n.TgZ(1,"mat-checkbox",20),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function R(t,e){1&t&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")))}function I(t,e){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.facility.id)}}function O(t,e){1&t&&n._UZ(0,"th",18)}function P(t,e){if(1&t&&(n.TgZ(0,"td",22),n._UZ(1,"perun-web-apps-recently-viewed-icon",23),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("id",t.facility.id)("recentIds",i.recentIds)}}function D(t,e){1&t&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")))}function M(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.facility.name)}}function L(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")))}function N(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.facility.description)}}function z(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")))}function F(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.ALo(2,"technicalOwners"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t.owners))}}function Z(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")))}function B(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",22),n.TgZ(1,"perun-web-apps-object-list-values",24),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw().disableRouting=!0})("mouseleave",function(){return n.CHM(t),n.oxw().disableRouting=!1}),n.ALo(2,"filterUniqueObjects"),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("objects",n.Dn7(2,2,t.destinations,i.filterValue,"destination"))("paramName","destination")}}function q(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")))}function U(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",22),n.TgZ(1,"perun-web-apps-object-list-values",24),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw().disableRouting=!0})("mouseleave",function(){return n.CHM(t),n.oxw().disableRouting=!1}),n.ALo(2,"filterUniqueObjects"),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("objects",n.Dn7(2,2,t.hosts,i.filterValue,"hostname"))("paramName","hostname")}}function H(t,e){1&t&&n._UZ(0,"tr",25)}const j=function(t){return["/facilities",t]},G=function(){return[]};function Y(t,e){if(1&t&&n._UZ(0,"tr",26),2&t){const t=e.$implicit,i=n.oxw();n.Q6J("perunWebAppsMiddleClickRouterLink",n.VKq(2,j,t.facility.id))("routerLink",i.disableRouting?n.DdM(4,G):n.VKq(5,j,t.facility.id))}}function V(t,e){1&t&&(n.TgZ(0,"app-alert",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function K(t,e){1&t&&(n.TgZ(0,"app-alert",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let J=(()=>{class t{constructor(t){this.authResolver=t,this.pageSize=10,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=r.f7,this.page=new n.vpe}set matSort(t){this.sort=t}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource()}getDataForColumn(t,e,i){switch(e){case"id":return t.facility.id.toString();case"name":return t.facility.name;case"description":return t.facility.description;case"technicalOwners":return(0,r.te)(t.owners);case"recent":return i.recentIds&&i.recentIds.indexOf(t.facility.id)>-1?"#".repeat(i.recentIds.indexOf(t.facility.id)):t.name;case"destinations":return t.destinations.map(t=>t.destination).join(" ; ");case"hosts":return t.hosts.map(t=>t.hostname).join(" ; ");default:return t[e]}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this)),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(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.facility.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(r.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[n.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","technicalOwners"],["matColumnDef","destinations"],["matColumnDef","hosts"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,k,1,0,"th",4),n.YNc(5,x,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,R,3,3,"th",7),n.YNc(8,I,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,O,1,0,"th",4),n.YNc(11,P,2,2,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,D,3,3,"th",7),n.YNc(14,M,2,1,"td",9),n.BQk(),n.ynx(15,11),n.YNc(16,L,3,3,"th",4),n.YNc(17,N,2,1,"td",9),n.BQk(),n.ynx(18,12),n.YNc(19,z,3,3,"th",4),n.YNc(20,F,3,3,"td",9),n.BQk(),n.ynx(21,13),n.YNc(22,Z,3,3,"th",4),n.YNc(23,B,3,6,"td",9),n.BQk(),n.ynx(24,14),n.YNc(25,q,3,3,"th",4),n.YNc(26,U,3,6,"td",9),n.BQk(),n.YNc(27,H,1,0,"tr",15),n.YNc(28,Y,1,7,"tr",16),n.qZA(),n.qZA(),n.qZA(),n.YNc(29,V,3,3,"app-alert",17),n.YNc(30,K,3,3,"app-alert",17)),2&t&&(n.Q6J("hidden",!e.dataSource||0===e.dataSource.filteredData.length||0===e.facilities.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(25),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.facilities.length),n.xp6(1),n.Q6J("ngIf",0===e.facilities.length))},directives:[c.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,u.O5,o.ge,o.ev,l.oG,s.nU,h.W,y,o.XQ,o.Gk,A.YH,v.rH,T.w],pipes:[C.X$,S.J,E],styles:["tr[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},54930:function(t,e,i){"use strict";i.d(e,{i:function(){return T}});var n=i(31572),s=i(88426),o=i(61511),r=i(15980),a=i(81391),c=i(36922),u=i(43691),l=i(8055),h=i(48160),d=i(44385),p=i(52984),g=i(51392);function f(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.ALo(2,"groupSyncToolTip"),n.TgZ(3,"button",6),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onSyncDetail()}),n.ALo(4,"groupSyncIcon"),n.TgZ(5,"mat-icon"),n.ALo(6,"groupSyncIconColor"),n._uU(7),n.ALo(8,"groupSyncIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("matTooltipPosition","above")("matTooltip",n.lcZ(1,7,n.lcZ(2,9,t.group))),n.xp6(3),n.Q6J("disabled","sync_disabled"===n.lcZ(4,11,t.group)),n.xp6(2),n.Tol(n.lcZ(6,13,t.group)),n.xp6(2),n.hij(" ",n.lcZ(8,15,t.group)," ")}}function m(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.TgZ(2,"button",6),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onMoveGroup()}),n.TgZ(3,"mat-icon"),n._uU(4,"arrow_right_alt"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),n.Q6J("matTooltipPosition","above"),n.xp6(2),n.Q6J("disabled",t.disabled)}}function b(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.TgZ(2,"button",6),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onChangeNameDescription()}),n.TgZ(3,"mat-icon"),n._uU(4,"text_format"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),n.Q6J("matTooltipPosition","above"),n.xp6(2),n.Q6J("disabled",t.disabled)}}function w(t,e){if(1&t&&(n.TgZ(0,"div",2),n.TgZ(1,"button",3),n.ALo(2,"translate"),n.TgZ(3,"mat-icon"),n._uU(4," file_copy "),n.qZA(),n.qZA(),n.YNc(5,f,9,17,"span",4),n.YNc(6,m,5,5,"span",4),n.YNc(7,b,5,5,"span",4),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.Q6J("cdkCopyToClipboard",t.group.name)("matTooltipPosition","above"),n.xp6(4),n.Q6J("ngIf",t.syncAuth),n.xp6(1),n.Q6J("ngIf",t.moveAuth),n.xp6(1),n.Q6J("ngIf",t.editAuth)}}function _(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onSyncDetail()}),n.ALo(1,"groupSyncIcon"),n.TgZ(2,"mat-icon"),n.ALo(3,"groupSyncIconColor"),n._uU(4),n.ALo(5,"groupSyncIcon"),n.qZA(),n.TgZ(6,"span"),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"groupSyncToolTip"),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("disabled","sync_disabled"===n.lcZ(1,6,t.group)),n.xp6(2),n.Tol(n.lcZ(3,8,t.group)),n.xp6(2),n.hij(" ",n.lcZ(5,10,t.group)," "),n.xp6(3),n.Oqu(n.lcZ(8,12,n.lcZ(9,14,t.group)))}}function y(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onMoveGroup()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_right_alt"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("disabled",t.disabled),n.xp6(4),n.Oqu(n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function A(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onChangeNameDescription()}),n.TgZ(1,"mat-icon"),n._uU(2,"text_format"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("disabled",t.disabled),n.xp6(4),n.Oqu(n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function v(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"button",7),n.TgZ(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA(),n.qZA(),n.TgZ(4,"mat-menu",null,8),n.TgZ(6,"button",9),n.TgZ(7,"mat-icon"),n._uU(8," file_copy "),n.qZA(),n.TgZ(9,"span"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.qZA(),n.YNc(12,_,10,16,"button",10),n.YNc(13,y,6,4,"button",10),n.YNc(14,A,6,4,"button",10),n.qZA(),n.qZA()),2&t){const t=n.MAs(5),e=n.oxw();n.xp6(1),n.Q6J("mat-menu-trigger-for",t),n.xp6(5),n.Q6J("cdkCopyToClipboard",e.group.name),n.xp6(4),n.Oqu(n.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.xp6(2),n.Q6J("ngIf",e.syncAuth),n.xp6(1),n.Q6J("ngIf",e.moveAuth),n.xp6(1),n.Q6J("ngIf",e.editAuth)}}let T=(()=>{class t{constructor(t){this.authResolver=t,this.disabled=!1,this.moveGroup=new n.vpe,this.syncGroup=new n.vpe,this.changeNameDescription=new n.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 t.\u0275fac=function(e){return new(e||t)(n.Y36(s.x4))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.YNc(0,w,8,8,"div",0),n.YNc(1,v,15,8,"div",1)),2&t&&(n.Q6J("ngIf",e.displayButtons),n.xp6(1),n.Q6J("ngIf",!e.displayButtons))},directives:[o.O5,r.lW,a.i3,c.gM,u.Hw,l.p6,l.VK,l.OP],pipes:[h.X$,d.r,p.J,g.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),t})()},46837:function(t,e,i){"use strict";i.d(e,{x:function(){return f}});var n=i(31572),s=i(84140),o=i(61189),r=i(84608),a=i(61511),c=i(36922),u=i(43691),l=i(48160);function h(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){return n.CHM(t),n.oxw().changeStatus()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3,"check_circle_outline"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function d(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){return n.CHM(t),n.oxw().changeStatus()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",5),n._uU(3,"block"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function p(t,e){if(1&t&&(n.TgZ(0,"span",6),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",7),n._uU(3,"report"),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.hYB("matTooltip","",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",t.failureCause,"")}}function g(t,e){1&t&&(n.TgZ(0,"span",6),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",8),n._uU(3,"autorenew"),n.qZA(),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let f=(()=>{class t{constructor(t){this.dialog=t,this.status="",this.statusChange=new n.vpe}changeStatus(){const t=(0,s.kZ)();t.width="500px",t.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(o.Qu,t).afterClosed().subscribe(t=>{t&&this.statusChange.emit()})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.uw))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],["matTooltipPosition","above",3,"matTooltip"],[1,"red"],[1,"black"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.YNc(1,h,4,3,"span",1),n.YNc(2,d,4,3,"span",1),n.YNc(3,p,4,4,"span",2),n.YNc(4,g,4,3,"span",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf","ACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","FAILED"===e.status),n.xp6(1),n.Q6J("ngIf","PROCESSING"===e.status))},directives:[a.O5,c.gM,u.Hw],pipes:[l.X$],styles:[""]}),t})()},37665:function(t,e,i){"use strict";i.d(e,{h:function(){return a}});var n=i(31572),s=i(84140),o=i(44973),r=i(48160);let a=(()=>{class t{constructor(){this.groupSelected=new n.vpe,this.disableAutoSelect=!1,this.nameFunction=t=>t.name}ngOnInit(){this.groups=this.groups.sort(s.aC)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect",firstSelectedGroup:"firstSelectedGroup"},outputs:{groupSelected:"groupSelected"},decls:4,vars:14,consts:[[1,"long-input",3,"entities","entity","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){if(1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.groupSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t){let t;n.Q6J("entities",e.groups)("entity",null!==(t=e.firstSelectedGroup)&&void 0!==t?t:null)("disableAutoSelect",e.disableAutoSelect)("mainTextFunction",e.nameFunction)("searchFunction",e.nameFunction)("selectPlaceholder",n.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",n.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",n.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))}},directives:[o.i],pipes:[r.X$],styles:[""]}),t})()},78364:function(t,e,i){"use strict";i.d(e,{W:function(){return it}});var n=i(31572),s=i(58623),o=i(67033),r=i(4230),a=i(33642),c=i(84140),u=i(61189),l=i(88426),h=i(61511),d=i(84608),p=i(82819),g=i(29236),f=i(36922),m=i(72953),b=i(46837),w=i(15980),_=i(43691),y=i(54930),A=i(84534),v=i(57629),T=i(39571),C=i(48160),S=i(74842),E=i(37043),k=i(58506);let x=(()=>{class t{transform(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName);return e&&e.value?e.value:"Never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"groupExpiration",type:t,pure:!0}),t})();function R(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",23),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw(2);return e?i.masterToggle():null}),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function I(t,e){if(1&t&&(n.TgZ(0,"th",21),n.YNc(1,R,1,3,"mat-checkbox",22),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",!t.disableHeadCheckbox)}}function O(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",24),n.TgZ(1,"span",25),n.ALo(2,"translate"),n.TgZ(3,"mat-checkbox",26),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,i.getCheckboxTooltipMessage(t))),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!i.disableSelect(t)),n.xp6(2),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","members"===t.name&&i.disableMembers||i.disableSelect(t))}}function P(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")))}function D(t,e){if(1&t&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function M(t,e){1&t&&n._UZ(0,"th",21)}function L(t,e){if(1&t&&(n.TgZ(0,"td",28),n._UZ(1,"perun-web-apps-recently-viewed-icon",29),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("recentIds",i.recentIds)("id",t.id)}}function N(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Oqu(i.voNames.get(t.voId))}}function F(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")))}function Z(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.name)}}function B(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")))}function q(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",30),n.TgZ(1,"perun-web-apps-group-resource-status",31),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw();return e.disabledRouting=e.disableRouting})("statusChange",function(){return n.CHM(t),n.oxw().refreshTable.emit()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("theme","resource-theme")("groupId",t.id)("resourceId",i.resourceId)("failureCause",t.failureCause)("status",t.status)}}function U(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")))}function H(t,e){if(1&t&&(n.TgZ(0,"td",28),n.TgZ(1,"i",32),n.ALo(2,"memberStatusIconColor"),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,i.getStatusAttribute(t)),""),n.s9C("matTooltip",i.getStatusAttribute(t)),n.xp6(3),n.hij(" ",n.lcZ(5,7,i.getStatusAttribute(t))," ")}}function j(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")))}function G(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.description)}}function Y(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")))}function V(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",34),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().changeExpiration(e)})("mouseenter",function(){return n.CHM(t),n.oxw(2).disabledRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw(2);return e.disabledRouting=e.disableRouting}),n.TgZ(1,"mat-icon"),n._uU(2,"edit"),n.qZA(),n.qZA()}}function K(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"parseDate"),n.ALo(3,"groupExpiration"),n.YNc(4,V,3,0,"button",33),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,2,n.lcZ(3,4,t))," "),n.xp6(3),n.Q6J("ngIf",i.canManageGroup(t))}}function J(t,e){1&t&&n._UZ(0,"th",21)}function $(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",28),n.TgZ(1,"perun-web-apps-group-menu",35),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw();return e.disabledRouting=e.disableRouting})("moveGroup",function(){const e=n.CHM(t).$implicit;return n.oxw().onMoveGroup(e)})("changeNameDescription",function(){const e=n.CHM(t).$implicit;return n.oxw().onChangeNameDescription(e)})("syncGroup",function(){const e=n.CHM(t).$implicit;return n.oxw().onSyncDetail(e)}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("disabled","members"===t.name)("displayButtons",i.displayButtons)("group",t)}}function Q(t,e){1&t&&n._UZ(0,"tr",36)}const W=function(t,e){return["/organizations",t,"groups",e]};function X(t,e){if(1&t&&n._UZ(0,"tr",37),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disableRouting&&!i.groupsToDisable.has(t.id))("disable-outline",i.disabledRouting||i.groupsToDisable.has(t.id)),n.Q6J("perunWebAppsMiddleClickRouterLink",i.disabledRouting||i.groupsToDisable.has(t.id)?null:n.WLB(6,W,t.voId,t.id))("routerLink",i.disabledRouting||i.groupsToDisable.has(t.id)?null:n.WLB(9,W,t.voId,t.id))}}function tt(t,e){1&t&&(n.TgZ(0,"app-alert",38),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_GROUPS"),"\n"))}function et(t,e){1&t&&(n.TgZ(0,"app-alert",38),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let it=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.authResolver=e,this.voService=i,this.tableCheckbox=s,this.displayButtons=window.innerWidth>800,this.theme="group-theme",this.moveGroup=new n.vpe,this.groups=[],this.selection=new r.Ov(!0,[]),this.hasMembersGroup=!1,this.displayedColumns=["select","id","recent","vo","name","status","groupStatus","description","expiration","menu"],this.groupsToDisable=new Set,this.pageSize=10,this.filter="",this.disableRouting=!1,this.pageSizeOptions=c.f7,this.recentIds=[],this.resourceId=null,this.page=new n.vpe,this.refreshTable=new n.vpe,this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.canBeSelected=t=>!("members"===t.name&&this.disableMembers||this.disableSelect(t))}set matSort(t){this.sort=t}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}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return i.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":{const e=(0,c.x2)(t);return(0,c.sG)(e)}case"recent":return"";case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}getSortDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return i.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":{const e=(0,c.x2)(t);return e&&"never"!==e.toLowerCase()?(0,h.p6)(e,"yyyy.MM.dd","en"):e}case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"status":return t.status;default:return t[e]}}exportData(t){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,c.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this,!0),this.dataSource.sortData=(t,e)=>(0,c.pR)(t,e,this.getSortDataForColumn,this)),this.dataSource.filter=this.filter,this.dataSource.data=this.groups}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.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.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.groupsToDisable.has(t.id)||this.isSynchronized(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))}onMoveGroup(t){this.moveGroup.emit(t)}onSyncDetail(t){const e=(0,c.kZ)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(u.Bp,e)}onChangeNameDescription(t){const e=(0,c.kZ)();e.data={theme:"group-theme",group:t,dialogType:u.Eg.GROUP},this.dialog.open(u.rd,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}setAuth(){return"group-subgroups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[e]),!0):"group-relations"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("removeGroupUnion_Group_Group_policy",[this.parentGroup,e]),!0):"vo-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,e]),!0):"member-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[e]),!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[this.vo,e]),!0):void 0}itemSelectionToggle(t){this.selection.toggle(t),this.removeAuth=this.setAuth()}isSynchronized(t){return!!t.attributes&&t.attributes.some(t=>"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString())}getCheckboxTooltipMessage(t){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":this.isSynchronized(t)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_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(t=>{this.voNames.set(t.id,t.name)})}))}changeExpiration(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName),i=(0,c.kZ)();i.width="400px",i.data={memberId:this.memberId,groupId:t.id,expirationAttr:e,mode:"group",status:this.memberGroupStatus},this.dialog.open(u.u3,i).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}canManageGroup(t){return this.authResolver.isThisGroupAdmin(t.id)||this.authResolver.isThisVoAdmin(t.voId)}getStatusAttribute(t){return t.attributes.find(t=>"groupStatus"===t.baseFriendlyName).value.toString()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(d.uw),n.Y36(l.x4),n.Y36(a.YF),n.Y36(l.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(c.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},hostBindings:function(t,e){1&t&&n.NdJ("resize",function(t){return e.shouldHideButtons(t)},!1,n.Jf7)},inputs:{theme:"theme",groups:"groups",selection:"selection",displayedColumns:"displayedColumns",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisable:"groupsToDisable",pageSize:"pageSize",filter:"filter",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",authType:"authType",memberId:"memberId",memberGroupStatus:"memberGroupStatus",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",resourceId:"resourceId"},outputs:{moveGroup:"moveGroup",page:"page",refreshTable:"refreshTable"},features:[n.TTD],decls:37,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","name"],["matColumnDef","status"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","groupStatus"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","resourceId","failureCause","status","mouseenter","mouseleave","statusChange"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip"],["mat-icon-button","",3,"click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"click","mouseenter","mouseleave"],[3,"disabled","displayButtons","group","mouseenter","mouseleave","moveGroup","changeNameDescription","syncGroup"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,I,2,1,"th",4),n.YNc(5,O,4,8,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,P,3,3,"th",7),n.YNc(8,D,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,M,1,0,"th",4),n.YNc(11,L,2,2,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,N,3,3,"th",7),n.YNc(14,z,2,1,"td",5),n.BQk(),n.ynx(15,11),n.YNc(16,F,3,3,"th",7),n.YNc(17,Z,2,1,"td",9),n.BQk(),n.ynx(18,12),n.YNc(19,B,3,3,"th",7),n.YNc(20,q,2,5,"td",13),n.BQk(),n.ynx(21,14),n.YNc(22,U,3,3,"th",7),n.YNc(23,H,6,9,"td",9),n.BQk(),n.ynx(24,15),n.YNc(25,j,3,3,"th",7),n.YNc(26,G,2,1,"td",13),n.BQk(),n.ynx(27,16),n.YNc(28,Y,3,3,"th",7),n.YNc(29,K,5,6,"td",13),n.BQk(),n.ynx(30,17),n.YNc(31,J,1,0,"th",4),n.YNc(32,$,2,3,"td",9),n.BQk(),n.YNc(33,Q,1,0,"tr",18),n.YNc(34,X,1,12,"tr",19),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,tt,3,3,"app-alert",20),n.YNc(36,et,3,3,"app-alert",20)),2&t&&(n.Q6J("hidden",0===e.groups.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(31),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.groups.length),n.xp6(1),n.Q6J("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.groups.length))},directives:[p.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,g.oG,o.ev,f.gM,s.nU,m.W,b.x,w.lW,_.Hw,y.i,o.XQ,o.Gk,A.YH,v.rH,T.w],pipes:[C.X$,S.u,E.f,k.M,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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})()},11441:function(t,e,i){"use strict";i.d(e,{I:function(){return O}});var n=i(31572),s=i(91010),o=i(71709),r=i(4230),a=i(14732),c=i(84140),u=i(61189),l=i(88426),h=i(84608),d=i(61511),p=i(4253),g=i(57629),f=i(15980),m=i(36922),b=i(54930),w=i(29236),_=i(43691),y=i(39571),A=i(48160);const v=["scrollViewport"];function T(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",19),n.NdJ("change",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).itemSelectionToggle(e)}),n.qZA()}if(2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.Q6J("disabled","members"===t.fullName)("checked",e.selection.isSelected(t))("indeterminate",e.descendantsPartiallySelected(t))}}function C(t,e){if(1&t&&(n.TgZ(0,"mat-icon",20),n._uU(1),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.hij(" ",e.treeControl.isExpanded(t)?"expand_more":"chevron_right"," ")}}function S(t,e){if(1&t&&(n.TgZ(0,"span",21),n._uU(1),n.qZA()),2&t){const t=n.oxw().$implicit;n.xp6(1),n.hij(" #",t.id," ")}}const E=function(t,e){return["/organizations",t,"groups",e]};function k(t,e){if(1&t){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",6),n.YNc(2,T,1,3,"mat-checkbox",7),n.TgZ(3,"a",8),n.TgZ(4,"button",9),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw(2).disableRouting=!0})("mouseleave",function(){return n.CHM(t),n.oxw(2).disableRouting=!1})("click",function(){const e=n.CHM(t).$implicit;return n.oxw(2).treeControl.toggle(e)}),n.YNc(5,C,2,1,"mat-icon",10),n.qZA(),n.TgZ(6,"div",11),n.TgZ(7,"span",12),n._uU(8),n.qZA(),n.YNc(9,S,2,1,"span",13),n.qZA(),n.TgZ(10,"div",14,15),n.TgZ(12,"span",16),n._uU(13),n.qZA(),n.qZA(),n.qZA(),n.TgZ(14,"div",17),n.TgZ(15,"perun-web-apps-group-menu",18),n.NdJ("moveGroup",function(){const e=n.CHM(t).$implicit;return n.oxw(2).onMoveGroup(e)})("syncGroup",function(){const e=n.CHM(t).$implicit;return n.oxw(2).onSyncDetail(e)})("changeNameDescription",function(){const e=n.CHM(t).$implicit;return n.oxw(2).onChangeNameDescription(e)}),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&t){const t=e.$implicit,i=n.oxw(2);n.xp6(1),n.Udp("padding-left",24*t.level+"px"),n.xp6(1),n.Q6J("ngIf",!i.hideCheckbox),n.xp6(1),n.Q6J("routerLink",i.disableRouting?null:n.WLB(14,E,t.voId,t.id)),n.xp6(1),n.Q6J("disabled",!t.expandable),n.uIk("aria-label","toggle "+t.name),n.xp6(1),n.Q6J("ngIf",t.expandable),n.xp6(3),n.hij(" ",t.name," "),n.xp6(1),n.Q6J("ngIf",i.authResolver.isPerunAdminOrObserver()),n.xp6(3),n.s9C("matTooltip",t.description),n.xp6(1),n.hij(" ",t.description," "),n.xp6(2),n.Q6J("disabled","members"===t.fullName)("displayButtons",i.displayButtons)("group",t)}}const x=function(t){return{height:t}};function R(t,e){if(1&t&&(n.TgZ(0,"div",2),n.TgZ(1,"cdk-virtual-scroll-viewport",3,4),n.YNc(3,k,16,17,"ng-container",5),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",n.VKq(4,x,t.getTreeViewHeight())),n.xp6(2),n.Q6J("cdkVirtualForOf",t.dataSource)}}function I(t,e){1&t&&(n.TgZ(0,"app-alert",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let O=(()=>{class t{constructor(t,e,i){this.cd=t,this.dialog=e,this.authResolver=i,this.transformer=(t,e)=>({expandable:!!t.children&&t.children.length>0,name:t.shortName,fullName:t.name,parentGroupId:t.parentGroupId,level:e,id:t.id,voId:t.voId,attributes:t.attributes,beanName:t.beanName,description:t.description}),this.displayButtons=window.innerWidth>600,this.theme="group-theme",this.moveGroup=new n.vpe,this.refreshTable=new n.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new r.Ov(!0,[]),this.hideCheckbox=!1,this.treeControl=new o.C2(t=>t.level,t=>t.expandable),this.treeFlattener=new s.JZ(this.transformer,t=>t.level,t=>t.expandable,t=>t.children),this.dataSource=new s.kc(this.treeControl,this.treeFlattener),this.hasChild=(t,e)=>e.expandable,this.getLevel=t=>t.level}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(t=>{var e,i;return(null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes(this.filterValue.toLowerCase()))||(null===(i=t.description)||void 0===i?void 0:i.toLowerCase().includes(this.filterValue.toLowerCase()))||t.id.toString().includes(this.filterValue.toLowerCase())||t.uuid.toLowerCase().includes(this.filterValue.toLowerCase())});for(const t of this.filteredGroups)t.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,c.oU)(t.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(t){const e=(0,c.kZ)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(u.Bp,e)}onChangeNameDescription(t){const e=(0,c.kZ)();e.data={theme:"group-theme",group:t,dialogType:u.Eg.GROUP},this.dialog.open(u.rd,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}createGroupTrees(t){const e=new Map;for(const s of t)e.set(s.id,new a.m(s));const i=new Set;e.forEach((t,e,n)=>{const s=n.get(t.parentGroupId);void 0!==s&&(s.addChild(t),n.set(t.parentGroupId,s)),null!==t.parentGroupId&&void 0===s&&i.add(t.id)});const n=[];e.forEach(t=>{(null===t.parentGroupId||i.has(t.id))&&n.push(t)}),this.dataSource.data=n,this.cd.detectChanges()}getParentNode(t){const e=this.getLevel(t);if(e<1)return null;for(let i=this.treeControl.dataNodes.indexOf(t)-1;i>=0;i--){const t=this.treeControl.dataNodes[i];if(this.getLevel(t)this.selection.isSelected(t));e&&!i&&this.selection.deselect(t)}checkAllParentsSelection(t){let e=this.getParentNode(t);for(;e;)this.checkRootNodeSelection(e),e=this.getParentNode(e);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(t){return this.treeControl.getDescendants(t).some(t=>this.selection.isSelected(t))&&!this.selection.isSelected(t)}itemSelectionToggle(t){this.selection.toggle(t);const e=this.treeControl.getDescendants(t);this.selection.isSelected(t)?this.selection.select(...e):this.selection.deselect(...e),e.every(t=>this.selection.isSelected(t)),this.checkAllParentsSelection(t)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(t,e)=>t&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,e]):(t,e)=>t&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[e]),!0)}onMoveGroup(t){this.moveGroup.emit(t)}getTreeViewHeight(){let t=0;this.scrollViewport&&(t=this.scrollViewport.getDataLength());let e=48*t;return e>672&&(e=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),e+"px"}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO),n.Y36(h.uw),n.Y36(l.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(t,e){if(1&t&&n.Gf(v,5),2&t){let t;n.iGM(t=n.CRH())&&(e.scrollViewport=t.first)}},hostBindings:function(t,e){1&t&&n.NdJ("resize",function(t){return e.shouldHideButtons(t)},!1,n.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[n.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(t,e){1&t&&(n.YNc(0,R,4,6,"div",0),n.YNc(1,I,3,3,"app-alert",1)),2&t&&(n.Q6J("ngIf",0!==e.filteredGroups.length),n.xp6(1),n.Q6J("ngIf",0===e.filteredGroups.length))},directives:[d.O5,p.N7,p.xd,d.PC,p.x0,g.yS,f.lW,m.gM,b.i,w.oG,_.Hw,y.w],pipes:[A.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.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:rgba(0,0,0,.05)}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),t})()},66438:function(t,e,i){"use strict";i.d(e,{X:function(){return f}});var n=i(33642),s=i(88426),o=i(31572),r=i(48160),a=i(61511),c=i(8055),u=i(15980),l=i(43691),h=i(36922);const d=function(t){return{color:t}};function p(t,e){if(1&t&&(o.TgZ(0,"button",8),o.ALo(1,"translate"),o.TgZ(2,"mat-icon",4),o._uU(3," apps "),o.qZA(),o.qZA()),2&t){const t=o.oxw(),e=o.MAs(2);o.Q6J("matMenuTriggerFor",e)("matTooltip",o.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),o.xp6(2),o.Q6J("ngStyle",o.VKq(5,d,t.iconColor))}}function g(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",2),o.NdJ("click",function(){return o.CHM(t),o.oxw().onLogOut()}),o._uU(1),o.ALo(2,"translate"),o.qZA()}2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"NAV.LOGOUT")))}let f=(()=>{class t{constructor(t,e,i,n){this.authService=t,this.authzResolverService=e,this.notificator=i,this.translateService=n}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(s.e8),o.Y36(n.Ct),o.Y36(s.V6),o.Y36(r.sK))},t.\u0275cmp=o.Xpm({type:t,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(t,e){if(1&t&&(o.YNc(0,p,4,7,"button",0),o.TgZ(1,"mat-menu",null,1),o.TgZ(3,"button",2),o.NdJ("click",function(){return e.redirectToUrl()}),o.TgZ(4,"span"),o._uU(5),o.qZA(),o.qZA(),o.qZA(),o.TgZ(6,"button",3),o.TgZ(7,"mat-icon",4),o._uU(8," person "),o.qZA(),o.TgZ(9,"span",5),o._uU(10),o.qZA(),o.qZA(),o.TgZ(11,"mat-menu",null,6),o.YNc(13,g,3,3,"button",7),o.qZA()),2&t){const t=o.MAs(12);o.Q6J("ngIf",e.url),o.xp6(5),o.Oqu(e.label),o.xp6(1),o.Q6J("matMenuTriggerFor",t),o.xp6(1),o.Q6J("ngStyle",o.VKq(11,d,e.iconColor)),o.xp6(2),o.Q6J("ngStyle",o.VKq(13,d,e.textColor)),o.xp6(1),o.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," "),o.xp6(3),o.Q6J("ngIf",e.logoutEnabled)}},directives:[a.O5,c.VK,c.OP,u.lW,c.p6,l.Hw,a.PC,h.gM],pipes:[r.X$],styles:["@media (max-width:991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),t})()},19139:function(t,e,i){"use strict";i.d(e,{L:function(){return d}});var n=i(31572),s=i(16073),o=i(66283),r=i(61511),a=i(80340),c=i(84534),u=i(48160);function l(t,e){if(1&t&&(n._UZ(0,"input",3),n.ALo(1,"translate")),2&t){const t=n.oxw();n.s9C("placeholder",n.lcZ(1,2,t.placeholder)),n.Q6J("formControl",t.formControl)}}function h(t,e){if(1&t&&(n._UZ(0,"input",4),n.ALo(1,"translate")),2&t){const t=n.oxw();n.s9C("placeholder",n.lcZ(1,2,t.placeholder)),n.Q6J("formControl",t.formControl)}}let d=(()=>{class t{constructor(){this.filter=new n.vpe,this.autoFocus=!1,this.formControl=new s.NI}ngOnInit(){this.formControl.valueChanges.subscribe(t=>{let e=t.trim();e=e.toLowerCase(),this.filter.emit(e)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","ml-2"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.YNc(1,l,2,4,"input",1),n.YNc(2,h,2,4,"input",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",e.autoFocus),n.xp6(1),n.Q6J("ngIf",!e.autoFocus))},directives:[o.KE,r.O5,a.Nt,s.Fj,c.hT,s.JJ,s.oH],pipes:[u.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:auto!important}"]}),t})()},91779:function(t,e,i){"use strict";i.d(e,{m:function(){return X}});var n=i(31572),s=i(58623),o=i(84140),r=i(61189),a=i(88426),c=i(31906),u=i(66599),l=i(84608),h=i(82819),d=i(61511),p=i(67033),g=i(67806),f=i(29236),m=i(43691),b=i(36922),w=i(84534),_=i(57629),y=i(39571),A=i(48160),v=i(22196),T=i(74842),C=i(91322),S=i(37043),E=i(99197),k=i(63720),x=i(1157);function R(t,e){1&t&&(n.TgZ(0,"div",20),n._UZ(1,"mat-spinner",21),n.qZA())}function I(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"th",22),n.TgZ(1,"mat-checkbox",23),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw();return e?i.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function O(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",24),n.TgZ(1,"mat-checkbox",25),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function P(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ID")))}function D(t,e){if(1&t&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function M(t,e){1&t&&n._UZ(0,"th",26)}function L(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",29),n.NdJ("click",function(e){n.CHM(t);const i=n.oxw().$implicit;return n.oxw().viewMemberGroupTree(e,i)}),n.ALo(1,"translate"),n._uU(2,"transfer_within_a_station"),n.qZA()}2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function N(t,e){if(1&t&&(n.TgZ(0,"td",27),n.YNc(1,L,3,3,"mat-icon",28),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","DIRECT"!==t.membershipType)}}function z(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.NAME")))}function F(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t.user))}}function Z(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function B(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"i",30),n.NdJ("click",function(e){const i=n.CHM(t).$implicit;return n.oxw().changeStatus(e,i)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,t.status),""),n.s9C("matTooltip",n.xi3(3,7,t,!1)),n.xp6(4),n.hij(" ",n.lcZ(6,10,t.status)," ")}}function q(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function U(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"i",30),n.NdJ("click",function(e){const i=n.CHM(t).$implicit;return n.oxw().changeStatus(e,i)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,t.groupStatus),""),n.s9C("matTooltip",n.xi3(3,7,t,!0)),n.xp6(4),n.hij(" ",n.lcZ(6,10,t.groupStatus)," ")}}function H(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function j(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberOrganization"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function G(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function Y(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberEmail"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function V(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function K(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberLogins"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function J(t,e){1&t&&n._UZ(0,"tr",31)}const $=function(t,e){return["/organizations",t,"members",e]};function Q(t,e){if(1&t&&n._UZ(0,"tr",32),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",i.dataSource.routeAuth)("italic_font","INDIRECT"===t.membershipType)("disable-outline",!i.dataSource.routeAuth),n.Q6J("perunWebAppsMiddleClickRouterLink",i.dataSource.routeAuth?n.WLB(8,$,t.voId,t.id):null)("routerLink",i.dataSource.routeAuth?n.WLB(11,$,t.voId,t.id):null)}}function W(t,e){1&t&&(n.TgZ(0,"app-alert",33),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.Q6J("alert_type","warn"),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let X=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.authResolver=e,this.tableCheckbox=i,this.dynamicPaginatingService=s,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.pageSize=10,this.selectedGroupStatuses=[],this.page=new n.vpe,this.exporting=!1,this.pageSizeOptions=o.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,c.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,u.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new a.Ct(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.pageSize,"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(t=>this.selection.select(t))}isAllSelected(){return this.selection.selected.length===this.pageSize}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(t,e){if(t.stopPropagation(),"INVALID"===e.status){const t=(0,o.kZ)();t.width="500px",t.data={member:e},this.dialog.open(r.pf,t).afterClosed().subscribe(t=>{t&&this.loadMembersPage()})}}loadMembersPage(){this.dataSource.loadMembers(this.voId,this.attrNames,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.child.paginator.pageIndex,this.child.paginator.pageSize,"fullName"===this.sort.active?"NAME":"ID",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}exportData(t){(0,o.O6)((0,o.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn,this),t)}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"fullName":return t.user?(0,o.bD)(t.user):"";case"status":return t.status;case"groupStatus":return t.groupStatus;case"organization":return(0,o.Gw)(t);case"email":return(0,o.g$)(t);case"logins":return(0,o.lt)(t);default:return""}}viewMemberGroupTree(t,e){t.stopPropagation();const i=(0,o.kZ)();i.width="800px",i.data={member:e,groupId:this.groupId},this.dialog.open(r.jd,i)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(l.uw),n.Y36(a.x4),n.Y36(a.UA),n.Y36(a.ly))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(o.l9,7),n.Gf(s.YE,5)),2&t){let t;n.iGM(t=n.CRH())&&(e.child=t.first),n.iGM(t=n.CRH())&&(e.sort=t.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",updateTable:"updateTable"},outputs:{page:"page"},features:[n.TTD],decls:37,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["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"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"matTooltip","click",4,"ngIf"],[3,"matTooltip","click"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.ALo(1,"async"),n.TgZ(2,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.YNc(3,R,2,0,"div",2),n.ALo(4,"async"),n.TgZ(5,"table",3),n.ynx(6,4),n.YNc(7,I,2,3,"th",5),n.YNc(8,O,2,2,"td",6),n.BQk(),n.ynx(9,7),n.YNc(10,P,3,3,"th",8),n.YNc(11,D,2,1,"td",6),n.BQk(),n.ynx(12,9),n.YNc(13,M,1,0,"th",8),n.YNc(14,N,2,1,"td",10),n.BQk(),n.ynx(15,11),n.YNc(16,z,3,3,"th",8),n.YNc(17,F,3,3,"td",10),n.BQk(),n.ynx(18,12),n.YNc(19,Z,3,3,"th",5),n.YNc(20,B,7,12,"td",10),n.BQk(),n.ynx(21,13),n.YNc(22,q,3,3,"th",5),n.YNc(23,U,7,12,"td",10),n.BQk(),n.ynx(24,14),n.YNc(25,H,3,3,"th",5),n.YNc(26,j,3,3,"td",10),n.BQk(),n.ynx(27,15),n.YNc(28,G,3,3,"th",5),n.YNc(29,Y,3,3,"td",10),n.BQk(),n.ynx(30,16),n.YNc(31,V,3,3,"th",5),n.YNc(32,K,3,3,"td",10),n.BQk(),n.YNc(33,J,1,0,"tr",17),n.YNc(34,Q,1,14,"tr",18),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,W,3,4,"app-alert",19),n.ALo(36,"async")),2&t&&(n.Q6J("hidden",0===e.dataSource.allMemberCount&&!1===n.lcZ(1,9,e.dataSource.loading$)),n.xp6(2),n.Q6J("dataLength",e.dataSource.allMemberCount)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("ngIf",n.lcZ(4,11,e.dataSource.loading$)),n.xp6(2),n.Q6J("dataSource",e.dataSource),n.xp6(28),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.allMemberCount&&!1===n.lcZ(36,13,e.dataSource.loading$)))},directives:[h.l,d.O5,p.BZ,s.YE,p.w1,p.fO,p.Dz,p.as,p.nj,g.$g,p.ge,f.oG,p.ev,s.nU,m.Hw,b.gM,p.XQ,p.Gk,w.YH,_.rH,y.w],pipes:[d.Ov,A.X$,v.d,T.u,C.i,S.f,E.M,k.D,x.p],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.italic_font[_ngcontent-%COMP%]{font-style:italic}"]}),t})()},4252:function(t,e,i){"use strict";i.d(e,{O:function(){return tt}});var n=i(31572),s=i(58623),o=i(67033),r=i(4230),a=i(84140),c=i(61189),u=i(88426),l=i(84608),h=i(57629),d=i(82819),p=i(61511),g=i(29236),f=i(36922),m=i(43691),b=i(84534),w=i(39571),_=i(48160),y=i(22196),A=i(74842),v=i(91322),T=i(37043),C=i(99197),S=i(63720),E=i(1157);function k(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"th",22),n.TgZ(1,"mat-checkbox",23),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw();return e?i.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function x(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",24),n.TgZ(1,"mat-checkbox",25),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),n.ALo(2,"translate"),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","DIRECT"!==t.membershipType)("matTooltip","DIRECT"!==t.membershipType?n.lcZ(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function R(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ID")))}function I(t,e){if(1&t&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function O(t,e){1&t&&n._UZ(0,"th",26)}function P(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",29),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().viewMemberGroupTree(e)})("mouseenter",function(){return n.CHM(t),n.oxw(2).disableRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw(2);return e.disableRouting=e.disabledRouting}),n.ALo(1,"translate"),n._uU(2,"transfer_within_a_station"),n.qZA()}2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function D(t,e){if(1&t&&(n.TgZ(0,"td",27),n.YNc(1,P,3,3,"mat-icon",28),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","DIRECT"!==t.membershipType)}}function M(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.NAME")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t.user))}}function N(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function z(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"i",30),n.NdJ("click",function(e){const i=n.CHM(t).$implicit;return n.oxw().changeStatus(e,i)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,t.status),""),n.s9C("matTooltip",n.xi3(3,7,t,!1)),n.xp6(4),n.hij(" ",n.lcZ(6,10,t.status)," ")}}function F(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function Z(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"i",30),n.NdJ("click",function(e){const i=n.CHM(t).$implicit;return n.oxw().changeStatus(e,i)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,t.groupStatus),""),n.s9C("matTooltip",n.xi3(3,7,t,!0)),n.xp6(4),n.hij(" ",n.lcZ(6,10,t.groupStatus)," ")}}function B(t,e){1&t&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")))}function q(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"check_circle_outline"),n.qZA())}function U(t,e){if(1&t&&(n.TgZ(0,"td",32),n.YNc(1,q,2,0,"mat-icon",33),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",t.sponsored)}}function H(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function j(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberOrganization"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function G(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function Y(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberEmail"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function V(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function K(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberLogins"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function J(t,e){1&t&&n._UZ(0,"tr",34)}const $=function(t,e){return["/organizations",t,"members",e]};function Q(t,e){if(1&t&&n._UZ(0,"tr",35),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disabledRouting)("disable-outline",i.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.WLB(6,$,t.voId,t.id))("routerLink",i.disableRouting?null:n.WLB(9,$,t.voId,t.id))}}function W(t,e){1&t&&(n.TgZ(0,"app-alert",36),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.Q6J("alert_type","warn"),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function X(t,e){1&t&&(n.TgZ(0,"app-alert",36),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.Q6J("alert_type","warn"),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let tt=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.authResolver=e,this.tableCheckbox=i,this.route=s,this.selection=new r.Ov,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.pageSize=10,this.disableRouting=!1,this.filter="",this.page=new n.vpe,this.updateTable=new n.vpe,this.pageSizeOptions=a.f7,this.canBeSelected=t=>"DIRECT"===t.membershipType}set matSort(t){this.sort=t}getSortDataForColumn(t,e,i){var n;switch(e){case"id":return t.id.toString();case"fullName":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return(0,a.Gw)(t);case"email":return(0,a.g$)(t);default:return""}}getFilterDataForColumn(t,e){switch(e){case"fullName":return t.user?(0,a.bD)(t.user):"";case"email":return(0,a.g$)(t);case"logins":return(0,a.lt)(t);default:return""}}getExportDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"fullName":return t.user?(0,a.bD)(t.user):"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return(0,a.Gw)(t);case"email":return(0,a.g$)(t);case"logins":return(0,a.lt)(t);default:return""}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns,this.getFilterDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getSortDataForColumn,this)),this.dataSource.filter=this.filter,this.dataSource.data=this.members}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t))}ngOnChanges(){var t;this.setDataSource(),this.disabledRouting=this.disableRouting,null===(t=this.route.parent)||void 0===t||t.params.subscribe(t=>{t.groupId&&(this.groupId=t.groupId)})}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.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.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,e){if(t.stopPropagation(),"INVALID"===e.status){const t=(0,a.kZ)();t.width="500px",t.data={member:e},this.dialog.open(c.pf,t).afterClosed().subscribe(t=>{t&&this.updateTable.emit(!0)})}}viewMemberGroupTree(t){const e=(0,a.kZ)();e.width="800px",e.data={member:t,groupId:this.groupId},this.dialog.open(c.jd,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(l.uw),n.Y36(u.x4),n.Y36(u.UA),n.Y36(h.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-members-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(a.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",filter:"filter"},outputs:{page:"page",updateTable:"updateTable"},features:[n.TTD],decls:37,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["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-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["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-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,k,2,3,"th",4),n.YNc(5,x,3,6,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,R,3,3,"th",7),n.YNc(8,I,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,O,1,0,"th",7),n.YNc(11,D,2,1,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,M,3,3,"th",7),n.YNc(14,L,3,3,"td",9),n.BQk(),n.ynx(15,11),n.YNc(16,N,3,3,"th",7),n.YNc(17,z,7,12,"td",9),n.BQk(),n.ynx(18,12),n.YNc(19,F,3,3,"th",7),n.YNc(20,Z,7,12,"td",9),n.BQk(),n.ynx(21,13),n.YNc(22,B,3,3,"th",14),n.YNc(23,U,2,1,"td",15),n.BQk(),n.ynx(24,16),n.YNc(25,H,3,3,"th",7),n.YNc(26,j,3,3,"td",9),n.BQk(),n.ynx(27,17),n.YNc(28,G,3,3,"th",7),n.YNc(29,Y,3,3,"td",9),n.BQk(),n.ynx(30,18),n.YNc(31,V,3,3,"th",4),n.YNc(32,K,3,3,"td",9),n.BQk(),n.YNc(33,J,1,0,"tr",19),n.YNc(34,Q,1,12,"tr",20),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,W,3,4,"app-alert",21),n.YNc(36,X,3,4,"app-alert",21)),2&t&&(n.Q6J("hidden",0===e.members.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(31),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",!!e.dataSource&&0!==e.members.length&&0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("ngIf",0===e.members.length))},directives:[d.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,p.O5,o.ge,g.oG,o.ev,f.gM,s.nU,m.Hw,o.XQ,o.Gk,b.YH,h.rH,w.w],pipes:[_.X$,y.d,A.u,v.i,T.f,C.M,S.D,E.p],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_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}"]}),t})()},11418:function(t,e,i){"use strict";i.d(e,{c:function(){return p}});var n=i(31572),s=i(88426),o=i(84140),r=i(61189),a=i(84608),c=i(61511),u=i(43691),l=i(48160);function h(t,e){if(1&t&&(n.TgZ(0,"div",5),n.TgZ(1,"mat-icon"),n._uU(2),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.xp6(2),n.Oqu(t.data.icon)}}function d(t,e){if(1&t&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.hij(" ",t.showTimestamp()," ")}}let p=(()=>{class t{constructor(t,e){this.dialog=t,this.notificationStorageService=e,this.newNotification=!1,this.closeNotification=new n.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const t=(0,o.kZ)();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(r.FM,t).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,o.ys)(this.data.delay,()=>{this.alreadyClosed||this.waiting||this.closeSelf()})}showTimestamp(){const[t,e]=this.data.timeStamp.split(":");return e.length<2?t+":0"+e:this.data.timeStamp}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.uw),n.Y36(s.SZ))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"div",0),n.NdJ("click",function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()}),n.YNc(2,h,3,1,"div",1),n.TgZ(3,"div",2),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,d,2,1,"div",3),n.TgZ(7,"div",4),n.NdJ("click",function(){return e.waiting=!0,e.doAction()}),n._uU(8),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Gre("notification ",e.inDialog?"":"mat-elevation-z7",""),n.ekj("error","error"===e.data.type)("success","success"===e.data.type),n.xp6(2),n.Q6J("ngIf",null!==e.data.icon),n.xp6(2),n.hij(" ",n.lcZ(5,12,e.data.title)," "),n.xp6(2),n.Q6J("ngIf",e.inDialog),n.xp6(1),n.Q6J("hidden",e.alreadyPressed),n.xp6(1),n.hij(" ",e.data.actionText," "))},directives:[c.O5,u.Hw],pipes:[l.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}"]}),t})()},16306:function(t,e,i){"use strict";i.d(e,{$:function(){return x}});var n=i(31572),s=i(88426),o=i(33642),r=i(84608),a=i(48160),c=i(66283),u=i(80340),l=i(16073),h=i(61511),d=i(15980);function p(t,e){1&t&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let g=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.storeService=s,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(t=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)),this.dialogRef.close()})}getFullEmailBody(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(60306).i8}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.so),n.Y36(a.sK),n.Y36(s.V6),n.Y36(o.Hr),n.Y36(s.d6))},t.\u0275cmp=n.Xpm({type:t,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(t,e){if(1&t&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n.TgZ(4,"mat-form-field"),n.TgZ(5,"mat-label"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"input",2,3),n.NdJ("ngModelChange",function(t){return e.subject=t}),n.qZA(),n.YNc(10,p,3,3,"mat-error",4),n.qZA(),n.TgZ(11,"mat-form-field"),n.TgZ(12,"mat-label"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"textarea",5),n.NdJ("ngModelChange",function(t){return e.message=t}),n.ALo(16,"translate"),n._uU(17," "),n.qZA(),n.TgZ(18,"mat-hint"),n._uU(19),n.ALo(20,"translate"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(21,"div",6),n.TgZ(22,"div",7),n.TgZ(23,"button",8),n.NdJ("click",function(){return e.close()}),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.TgZ(26,"button",9),n.NdJ("click",function(){return e.sendBugReport()}),n._uU(27),n.ALo(28,"translate"),n.qZA(),n.qZA(),n.qZA()),2&t){const t=n.MAs(9);n.xp6(1),n.Oqu(n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),n.xp6(5),n.Oqu(n.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),n.xp6(2),n.Q6J("ngModel",e.subject),n.xp6(2),n.Q6J("ngIf",t.invalid),n.xp6(3),n.Oqu(n.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),n.xp6(2),n.s9C("placeholder",n.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),n.Q6J("ngModel",e.message),n.xp6(4),n.Oqu(n.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),n.xp6(5),n.hij(" ",n.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",t.invalid),n.xp6(1),n.hij(" ",n.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[r.uh,r.xY,c.KE,c.hX,u.Nt,l.Fj,l.Q7,l.JJ,l.On,h.O5,c.bx,r.H8,d.lW,c.TO],pipes:[a.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();var f=i(84140);let m=(()=>{class t{transform(t,e,i){return t[`${i}_${e}`]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"localisedText",type:t,pure:!0}),t})(),b=(()=>{class t{transform(t,e){return t["link_"+e]||t.link_en}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"localisedLink",type:t,pure:!0}),t})();const w=function(t){return{color:t}};function _(t,e){if(1&t&&(n.TgZ(0,"i",16),n._uU(1),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(3);n.Q6J("ngStyle",n.VKq(2,w,e.linksTextColor)),n.xp6(1),n.hij(" ",t.icon," ")}}function y(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",17),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(3).openDialog(e.dialog)}),n._uU(1),n.ALo(2,"localisedText"),n.qZA()}if(2&t){const t=n.oxw().$implicit,e=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,w,e.linksTextColor)),n.xp6(1),n.hij("",n.Dn7(2,2,t,e.language,"label")," ")}}function A(t,e){if(1&t&&(n.TgZ(0,"a",18),n.ALo(1,"localisedLink"),n._uU(2),n.ALo(3,"localisedText"),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(3);n.Q6J("href",n.xi3(1,3,t,e.language),n.LSH)("ngStyle",n.VKq(10,w,e.linksTextColor)),n.xp6(2),n.Oqu(n.Dn7(3,6,t,e.language,"label"))}}function v(t,e){if(1&t&&(n.TgZ(0,"span",19),n._uU(1),n.ALo(2,"localisedText"),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,w,e.linksTextColor)),n.xp6(1),n.Oqu(n.Dn7(2,2,t,e.language,"label"))}}function T(t,e){if(1&t&&(n.TgZ(0,"div",11),n.YNc(1,_,2,4,"i",12),n.YNc(2,y,3,8,"span",13),n.YNc(3,A,4,12,"a",14),n.ALo(4,"localisedLink"),n.YNc(5,v,3,8,"span",15),n.ALo(6,"localisedLink"),n.qZA()),2&t){const t=e.$implicit,i=n.oxw(3);n.xp6(1),n.Q6J("ngIf",t.icon),n.xp6(1),n.Q6J("ngIf",t.dialog),n.xp6(1),n.Q6J("ngIf",n.xi3(4,4,t,i.language)&&!t.dialog),n.xp6(2),n.Q6J("ngIf",!n.xi3(6,7,t,i.language)&&!t.dialog)}}function C(t,e){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,T,7,10,"div",10),n.qZA()),2&t){const t=n.oxw().$implicit;n.xp6(1),n.Q6J("ngForOf",t.elements)}}function S(t,e){if(1&t&&(n.TgZ(0,"div",7),n.TgZ(1,"h6",8),n._uU(2),n.ALo(3,"localisedText"),n.qZA(),n.YNc(4,C,2,1,"div",9),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("ngStyle",n.VKq(7,w,i.headersTextColor)),n.xp6(1),n.hij(" ",n.Dn7(3,3,t,i.language,"title")," "),n.xp6(2),n.Q6J("ngIf",t.elements)}}function E(t,e){if(1&t&&(n.TgZ(0,"span"),n.TgZ(1,"a",6),n._uU(2),n.qZA(),n.qZA()),2&t){const t=e.$implicit,i=e.index,s=n.oxw();n.xp6(1),n.Q6J("href",t.url,n.LSH)("ngStyle",n.VKq(3,w,s.copyrightTextColor)),n.xp6(1),n.Oqu(i?", "+t.name:t.name)}}const k=function(t){return{background:t}};let x=(()=>{class t{constructor(t,e,i){this.storeService=t,this.translateService=e,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),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.footerHeight=new n.vpe}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{this.language=t.lang}),this.version=i(60306).i8,this.items=this.storeService.get("footer","columns"),this.copyrightItems=this.storeService.get("footer","copyright_items"),this.getHeight()}openDialog(t){const e=(0,f.kZ)();switch(t){case"reportIssue":e.width="550px",this.dialog.open(g,e)}}getHeight(){let t=1;for(const e of this.items)t=t{class t{constructor(){this.recentIds=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(t,e){1&t&&n.YNc(0,c,3,3,"mat-icon",0),2&t&&n.Q6J("ngIf",e.recentIds.indexOf(e.id)>-1)},directives:[s.O5,o.Hw,r.gM],pipes:[a.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),t})()},59403:function(t,e,i){"use strict";i.d(e,{t:function(){return c}});var n=i(31572),s=i(15980),o=i(36922),r=i(43691),a=i(48160);let c=(()=>{class t{constructor(){this.refresh=new n.vpe}onClickbutton(t){this.refresh.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&(n.TgZ(0,"button",0),n.NdJ("click",function(t){return e.onClickbutton(t)}),n.ALo(1,"translate"),n._UZ(2,"mat-icon",1),n.qZA()),2&t&&(n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),n.Q6J("disabled",e.disabled),n.xp6(2),n.s9C("svgIcon",e.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[s.lW,o.gM,r.Hw],pipes:[a.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}"]}),t})()},88884:function(t,e,i){"use strict";i.d(e,{C:function(){return H}});var n=i(31572),s=i(58623),o=i(67033),r=i(4230),a=i(84140),c=i(88426),u=i(82819),l=i(61511),h=i(29236),d=i(72953),p=i(46837),g=i(84534),f=i(57629),m=i(39571),b=i(48160);let w=(()=>{class t{transform(t){if(null==t)return null;let e="";return t.forEach(function(t){e=e.concat(t.tagName)}),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"resourceTagsToString",type:t,pure:!0}),t})();var _=i(95603);function y(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"th",20),n.TgZ(1,"mat-checkbox",21),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw();return e?i.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function A(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",22),n.TgZ(1,"mat-checkbox",23),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function v(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")))}function T(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function C(t,e){1&t&&n._UZ(0,"th",20)}function S(t,e){if(1&t&&(n.TgZ(0,"td",25),n._UZ(1,"perun-web-apps-recently-viewed-icon",26),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("recentIds",i.recentIds)("id",t.id)}}function E(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")))}function k(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.name)}}function x(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")))}function R(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.vo.name)}}function I(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")))}function O(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",25),n.TgZ(1,"perun-web-apps-group-resource-status",27),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw();return e.disabledRouting=e.disableRouting})("statusChange",function(){return n.CHM(t),n.oxw().refreshTable.emit()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("theme","group-theme")("resourceId",t.id)("groupId",i.groupId)("failureCause",t.failureCause)("status",t.status)}}function P(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")))}function D(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.facility.name)}}function M(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"resourceTagsToString"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t.resourceTags))}}function N(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.description)}}function F(t,e){1&t&&n._UZ(0,"tr",28)}const Z=function(t){return[t]};function B(t,e){if(1&t&&(n._UZ(0,"tr",29),n.ALo(1,"getResourceRoute"),n.ALo(2,"getResourceRoute")),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disabledRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",n.VKq(12,Z,i.disabledRouting?null:n.xi3(1,6,t,i.routingVo)))("routerLink",i.disabledRouting?null:n.xi3(2,9,t,i.routingVo))}}function q(t,e){1&t&&(n.TgZ(0,"app-alert",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function U(t,e){1&t&&(n.TgZ(0,"app-alert",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let H=(()=>{class t{constructor(t,e){this.guiAuthResolver=t,this.tableCheckbox=e,this.resources=[],this.selection=new r.Ov(!0,[]),this.pageSize=10,this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","name","vo","status","facility","tags","description"],this.pageSizeOptions=a.f7,this.groupId=null,this.page=new n.vpe,this.refreshTable=new n.vpe,this.allSelected=new n.vpe,this.removeAuth=!1,this.addAuth=!1}set matSort(t){this.sort=t}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource(),this.setAuth()}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return t.vo.name;case"name":return t.name;case"facility":return t.facility.name;case"description":return t.description;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"tags":{if(!t.resourceTags)return t[e];let i="";return t.resourceTags.forEach(function(t){i=i.concat(t.tagName)}),i}case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this,!0),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getDataForColumn,this)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const t=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource);return this.allSelected.emit(t),t}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1),this.setAuth()}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const t=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((e,i)=>e&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",t.concat([i])),!0),this.addAuth=this.selection.selected.reduce((e,i)=>e&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",t.concat([i])),!0)}itemSelectionToggle(t){this.selection.toggle(t),this.setAuth()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.x4),n.Y36(c.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(a.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId"},outputs:{page:"page",refreshTable:"refreshTable",allSelected:"allSelected"},features:[n.TTD],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","status"],["matColumnDef","facility"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],[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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,y,2,3,"th",4),n.YNc(5,A,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,v,3,3,"th",7),n.YNc(8,T,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,C,1,0,"th",4),n.YNc(11,S,2,2,"td",10),n.BQk(),n.ynx(12,11),n.YNc(13,E,3,3,"th",7),n.YNc(14,k,2,1,"td",10),n.BQk(),n.ynx(15,12),n.YNc(16,x,3,3,"th",7),n.YNc(17,R,2,1,"td",10),n.BQk(),n.ynx(18,13),n.YNc(19,I,3,3,"th",7),n.YNc(20,O,2,5,"td",10),n.BQk(),n.ynx(21,14),n.YNc(22,P,3,3,"th",7),n.YNc(23,D,2,1,"td",10),n.BQk(),n.ynx(24,15),n.YNc(25,M,3,3,"th",7),n.YNc(26,L,3,3,"td",10),n.BQk(),n.ynx(27,16),n.YNc(28,N,3,3,"th",7),n.YNc(29,z,2,1,"td",10),n.BQk(),n.YNc(30,F,1,0,"tr",17),n.YNc(31,B,3,14,"tr",18),n.qZA(),n.qZA(),n.qZA(),n.YNc(32,q,3,3,"app-alert",19),n.YNc(33,U,3,3,"app-alert",19)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.resources.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(28),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.resources.length),n.xp6(1),n.Q6J("ngIf",0===e.resources.length))},directives:[u.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,s.nU,d.W,p.x,o.XQ,o.Gk,g.YH,f.rH,m.w],pipes:[b.X$,w,_.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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})()},23888:function(t,e,i){"use strict";i.d(e,{j:function(){return M}});var n=i(31572),s=i(4230),o=i(58623),r=i(67033),a=i(88426),c=i(84140),u=i(57629),l=i(82819),h=i(61511),d=i(29236),p=i(84534),g=i(39571),f=i(48160),m=i(83787);let b=(()=>{class t{transform(t){const e=t.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"getMailFromAttributes",type:t,pure:!0}),t})();function w(t,e){1&t&&n._UZ(0,"th",17)}function _(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",18),n.TgZ(1,"mat-checkbox",19),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function y(t,e){1&t&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))))}function A(t,e){if(1&t&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.userExtSource.id)}}function v(t,e){1&t&&(n.TgZ(0,"th",17),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))))}function T(t,e){if(1&t&&(n.TgZ(0,"td",21),n._uU(1),n.ALo(2,"getMailFromAttributes"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t.attributes))}}function C(t,e){if(1&t&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,t.extSourceNameHeader?t.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME")))}}function S(t,e){if(1&t&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.userExtSource.extSource.name)}}function E(t,e){if(1&t&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,t.loginHeader?t.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN")))}}function k(t,e){if(1&t&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.userExtSource.login)}}function x(t,e){1&t&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))))}function R(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.ALo(2,"date"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,t.userExtSource.lastAccess,"d.M.y H:mm:ss"))}}function I(t,e){1&t&&n._UZ(0,"tr",23)}const O=function(t,e){return["/admin","users",t,"identities",e]};function P(t,e){if(1&t&&n._UZ(0,"tr",24),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.WLB(6,O,i.userId,t.userExtSource.id))("routerLink",i.disableRouting?null:n.WLB(9,O,i.userId,t.userExtSource.id))}}function D(t,e){1&t&&(n.TgZ(0,"app-alert",25),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let M=(()=>{class t{constructor(t,e){this.route=t,this.authResolver=e,this.selection=new s.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSize=5,this.page=new n.vpe,this.pageSizeOptions=c.f7}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.disableRouting||this.route.parent.params.subscribe(t=>{this.userId=t.userId}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new r.by(this.userExtSources),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.userExtSource.id.toString();case"mail":{const e=t.attributes.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A"}case"extSourceName":return t.userExtSource.extSource.name;case"login":return t.userExtSource.login;case"lastAccess":return t.userExtSource.lastAccess.split(".")[0];default:return""}}exportData(t){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,c.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,c.pR)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(t){return`${this.selection.isSelected(t.userExtSource)?"deselect":"select"} row ${t.userExtSource.id+1}`}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.gz),n.Y36(a.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(c.l9,7),n.Gf(o.YE,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.child=t.first),n.iGM(t=n.CRH())&&(e.matSort=t.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",pageSize:"pageSize",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.TTD],decls:24,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["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",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,w,1,0,"th",4),n.YNc(5,_,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,y,4,5,"th",7),n.YNc(8,A,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,v,4,5,"th",4),n.YNc(11,T,3,3,"td",8),n.BQk(),n.ynx(12,10),n.YNc(13,C,4,5,"th",7),n.YNc(14,S,2,1,"td",8),n.BQk(),n.ynx(15,11),n.YNc(16,E,4,5,"th",7),n.YNc(17,k,2,1,"td",8),n.BQk(),n.ynx(18,12),n.YNc(19,x,4,5,"th",7),n.YNc(20,R,3,4,"td",13),n.BQk(),n.YNc(21,I,1,0,"tr",14),n.YNc(22,P,1,12,"tr",15),n.qZA(),n.qZA(),n.qZA(),n.YNc(23,D,4,5,"app-alert",16)),2&t&&(n.Q6J("hidden",0===e.userExtSources.length||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(19),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.userExtSources.length))},directives:[l.l,r.BZ,o.YE,r.w1,r.fO,r.Dz,r.as,r.nj,h.O5,r.ge,r.ev,d.oG,o.nU,r.XQ,r.Gk,p.YH,u.rH,g.w],pipes:[f.X$,m.a,b,h.uU],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t})()},7927:function(t,e,i){"use strict";i.d(e,{S:function(){return a}});var n=i(31572),s=i(84140),o=i(44973),r=i(48160);let a=(()=>{class t{constructor(){this.disableAutoSelect=!1,this.userSelected=new n.vpe,this.userFullNameFunction=s.bD}ngOnInit(){this.users=this.users.sort(s.fx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-user-search-select"]],inputs:{users:"users",disableAutoSelect:"disableAutoSelect"},outputs:{userSelected:"userSelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.userSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.users)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.userFullNameFunction)("mainTextFunction",e.userFullNameFunction)("selectPlaceholder",n.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",n.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",n.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},directives:[o.i],pipes:[r.X$],styles:[""]}),t})()},19386:function(t,e,i){"use strict";i.d(e,{M:function(){return r}});var n=i(31572),s=i(44973),o=i(48160);let r=(()=>{class t{constructor(){this.voSelected=new n.vpe,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.shortName,this.searchFunction=t=>t.name+t.shortName+t.id}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vos:"vos"},outputs:{voSelected:"voSelected"},decls:4,vars:13,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.voSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.vos)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",n.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",n.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",n.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},directives:[s.i],pipes:[o.X$],styles:[""]}),t})()},97162:function(t,e,i){"use strict";i.d(e,{Z:function(){return O}});var n=i(31572),s=i(58623),o=i(67033),r=i(84140),a=i(88426),c=i(82819),u=i(61511),l=i(29236),h=i(72953),d=i(84534),p=i(57629),g=i(39571),f=i(48160);function m(t,e){1&t&&n._UZ(0,"th",15)}function b(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",16),n.TgZ(1,"mat-checkbox",17),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function w(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")))}function _(t,e){if(1&t&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function y(t,e){1&t&&n._UZ(0,"th",15)}function A(t,e){if(1&t&&(n.TgZ(0,"td",19),n._UZ(1,"perun-web-apps-recently-viewed-icon",20),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("recentIds",i.recentIds)("id",t.id)}}function v(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")))}function T(t,e){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.shortName)}}function C(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")))}function S(t,e){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.name)}}function E(t,e){1&t&&n._UZ(0,"tr",21)}const k=function(t){return["/organizations",t]};function x(t,e){if(1&t&&n._UZ(0,"tr",22),2&t){const t=e.$implicit,i=n.oxw();n.ekj("disable-outline",i.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.VKq(4,k,t.id))("routerLink",i.disableRouting?null:n.VKq(6,k,t.id))}}function R(t,e){1&t&&(n.TgZ(0,"app-alert",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function I(t,e){1&t&&(n.TgZ(0,"app-alert",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let O=(()=>{class t{constructor(t){this.authResolver=t,this.vos=[],this.displayedColumns=[],this.pageSize=10,this.disableRouting=!1,this.pageSizeOptions=r.f7,this.page=new n.vpe}set matSort(t){this.sort=t}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource()}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"shortName":return t.shortName;case"name":return t.name;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;default:return t[e]}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}checkboxLabel(t){return`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(r.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[n.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,m,1,0,"th",4),n.YNc(5,b,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,w,3,3,"th",7),n.YNc(8,_,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,y,1,0,"th",4),n.YNc(11,A,2,2,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,v,3,3,"th",7),n.YNc(14,T,2,1,"td",9),n.BQk(),n.ynx(15,11),n.YNc(16,C,3,3,"th",7),n.YNc(17,S,2,1,"td",9),n.BQk(),n.YNc(18,E,1,0,"tr",12),n.YNc(19,x,1,8,"tr",13),n.qZA(),n.qZA(),n.qZA(),n.YNc(20,R,3,3,"app-alert",14),n.YNc(21,I,3,3,"app-alert",14)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.vos.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(16),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.vos.length),n.xp6(1),n.Q6J("ngIf",0===e.vos.length))},directives:[c.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,u.O5,o.ge,o.ev,l.oG,s.nU,h.W,o.XQ,o.Gk,d.YH,p.rH,g.w],pipes:[f.X$],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}tr[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})()},61189:function(t,e,i){"use strict";i.d(e,{Wr:function(){return ut},r2:function(){return ct},gr:function(){return pt},u3:function(){return Vt},Qu:function(){return ce},pf:function(){return w},hd:function(){return Xt},kZ:function(){return $t},wA:function(){return at},rd:function(){return I},Eg:function(){return R},Bp:function(){return F},qD:function(){return Ft},jd:function(){return Nt},FM:function(){return j},Lc:function(){return X},mk:function(){return it},Tf:function(){return yt}}),i(22280);var n=i(84608),s=i(33642),o=i(88426),r=i(31572),a=i(48160),c=i(61511),u=i(15980),l=i(67806),h=i(66283),d=i(4786),p=i(71522);function g(t,e){1&t&&r._UZ(0,"mat-spinner",6)}function f(t,e){if(1&t&&(r.TgZ(0,"mat-option",16),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.Oqu(t)}}function m(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-form-field",13),r.TgZ(1,"mat-label"),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"mat-select",14),r.NdJ("selectionChange",function(e){return r.CHM(t),r.oxw(2).changeStatus(e)}),r.YNc(5,f,2,2,"mat-option",15),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(2);r.xp6(2),r.Oqu(r.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),r.xp6(3),r.Q6J("ngForOf",t.allStatuses)}}function b(t,e){if(1&t&&(r.TgZ(0,"div",7),r.TgZ(1,"div",8),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"div",9),r._uU(5),r.qZA(),r.TgZ(6,"div",8),r._uU(7),r.ALo(8,"translate"),r.YNc(9,m,6,4,"mat-form-field",10),r.qZA(),r.TgZ(10,"div",11),r._UZ(11,"i",12),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.AsE("",r.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",t.actualStatus,""),r.xp6(3),r.Oqu(t.description),r.xp6(2),r.hij(" ",r.lcZ(8,8,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),r.xp6(2),r.Q6J("ngIf",!t.loading),r.xp6(2),r.Q6J("innerHTML",t.changeMessage,r.oJD)}}let w=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.memberManager=i,this.groupsManager=n,this.notificatorService=s,this.translate=o,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.allStatuses=this.data.groupId?"VALID"===this.actualStatus?["EXPIRED"]:["VALID"]:"INVALID"===this.actualStatus?["VALID","EXPIRED"]:this.allStatuses.filter(t=>t!==this.actualStatus),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.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(t){this.selectedStatus=t.value,this.submitButtonText="VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}changeStatusMessage(t,e){if("VALID"===t)switch(e){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(e){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=""}}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe(t=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(e=>{this.notificatorService.showSuccess(e),this.dialogRef.close(t)})},()=>this.loading=!1):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe(t=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(e=>{this.notificatorService.showSuccess(e),this.dialogRef.close(t)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.uq),r.Y36(s.ff),r.Y36(o.V6),r.Y36(a.sK))},t.\u0275cmp=r.Xpm({type:t,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","mr-2 mt-2",4,"ngIf"],[1,"text-muted","new-line"],[3,"innerHTML"],[1,"mr-2","mt-2"],[3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,g,1,0,"mat-spinner",1),r.YNc(5,b,12,10,"div",2),r.TgZ(6,"div",3),r.TgZ(7,"button",4),r.NdJ("click",function(){return e.cancel()}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.TgZ(10,"button",5),r.NdJ("click",function(){return e.submit()}),r._uU(11),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Tol(e.theme),r.xp6(2),r.Oqu(r.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(3),r.hij(" ",r.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),r.xp6(2),r.Q6J("disabled",e.loading||!e.selectedStatus),r.xp6(1),r.hij(" ",e.submitButtonText," "))},directives:[n.uh,c.O5,n.H8,u.lW,l.$g,n.xY,h.KE,h.hX,d.gD,c.sg,p.ey],pipes:[a.X$],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),t})();var _=i(16073),y=i(80340);function A(t,e){1&t&&(r.TgZ(0,"h1",7),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")))}function v(t,e){1&t&&(r.TgZ(0,"h1",7),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")))}function T(t,e){1&t&&(r.TgZ(0,"h1",7),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")))}function C(t,e){1&t&&(r.TgZ(0,"h1",7),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")))}function S(t,e){1&t&&r._UZ(0,"mat-spinner",8)}function E(t,e){if(1&t&&(r.TgZ(0,"mat-form-field"),r._UZ(1,"input",13),r.ALo(2,"translate"),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.MGl("placeholder","",r.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),r.Q6J("value",t.shortName)}}function k(t,e){if(1&t&&(r.TgZ(0,"mat-form-field",14),r._UZ(1,"textarea",15),r.ALo(2,"translate"),r.TgZ(3,"mat-error"),r._uU(4),r.ALo(5,"translate"),r.qZA(),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.MGl("placeholder","",r.lcZ(2,3,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),r.Q6J("formControl",t.descriptionCtrl),r.xp6(3),r.hij(" ",r.lcZ(5,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_DESCRIPTION")," ")}}function x(t,e){if(1&t&&(r.TgZ(0,"div",9),r.YNc(1,E,3,4,"mat-form-field",10),r.TgZ(2,"mat-form-field"),r._UZ(3,"input",11),r.ALo(4,"translate"),r.TgZ(5,"mat-error"),r._uU(6),r.ALo(7,"translate"),r.qZA(),r.qZA(),r.YNc(8,k,6,7,"mat-form-field",12),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngIf",2===t.dialogType),r.xp6(2),r.MGl("placeholder","",r.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),r.Q6J("formControl",t.nameCtrl),r.xp6(3),r.hij(" ",t.invalidNameMessage.length?t.invalidNameMessage:r.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),r.xp6(2),r.Q6J("ngIf",2!==t.dialogType)}}var R=function(t){return t[t.FACILITY=0]="FACILITY",t[t.RESOURCE=1]="RESOURCE",t[t.VO=2]="VO",t[t.GROUP=3]="GROUP",t}({});let I=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this.dialogRef=t,this.data=e,this.notificator=i,this.translateService=n,this.facilitiesManager=s,this.resourcesManager=o,this.groupsManager=r,this.vosManager=a,this.store=c,this.invalidNameMessage=this.data.dialogType===R.GROUP?this.store.get("groupNameErrorMessage"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===R.GROUP?this.store.get("groupNameSecondaryRegex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case R.FACILITY:this.nameCtrl=new _.NI(this.data.facility.name,[_.kI.required,_.kI.pattern(".*[\\S]+.*"),_.kI.maxLength(129)]),this.descriptionCtrl=new _.NI(this.data.facility.description,[_.kI.required,_.kI.pattern(".*[\\S]+.*"),_.kI.maxLength(129)]);break;case R.RESOURCE:this.nameCtrl=new _.NI(this.data.resource.name,[_.kI.required,_.kI.pattern(".*[\\S]+.*"),_.kI.maxLength(129)]),this.descriptionCtrl=new _.NI(this.data.resource.description,[_.kI.required,_.kI.pattern(".*[\\S]+.*"),_.kI.maxLength(129)]);break;case R.GROUP:{const t=this.data.group.name.split(":");this.nameCtrl=new _.NI(t[t.length-1],[_.kI.required,_.kI.pattern(".*[\\S]+.*"),_.kI.pattern(this.secondaryRegex),_.kI.maxLength(129)]),this.descriptionCtrl=new _.NI(this.data.group.description,[_.kI.required,_.kI.pattern(".*[\\S]+.*"),_.kI.maxLength(129)]);break}case R.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new _.NI(this.data.vo.name,[_.kI.required,_.kI.pattern(".*[\\S]+.*"),_.kI.maxLength(129)]),this.descriptionCtrl=new _.NI}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case R.FACILITY:this.editFacility();break;case R.RESOURCE:this.editResource();break;case R.GROUP:this.editGroup();break;case R.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(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(t=>{const e=t;e.name=this.nameCtrl.value,e.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:e}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(o.V6),r.Y36(a.sK),r.Y36(s.IQ),r.Y36(s.xk),r.Y36(s.ff),r.Y36(s.YF),r.Y36(o.d6))},t.\u0275cmp=r.Xpm({type:t,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","","required","",1,"overflow-hidden",3,"formControl","placeholder"]],template:function(t,e){1&t&&(r.TgZ(0,"div"),r.YNc(1,A,3,3,"h1",0),r.YNc(2,v,3,3,"h1",0),r.YNc(3,T,3,3,"h1",0),r.YNc(4,C,3,3,"h1",0),r.TgZ(5,"div",1),r.YNc(6,S,1,0,"mat-spinner",2),r.YNc(7,x,9,9,"div",3),r.qZA(),r.TgZ(8,"div",4),r.TgZ(9,"button",5),r.NdJ("click",function(){return e.cancel()}),r._uU(10),r.ALo(11,"translate"),r.qZA(),r.TgZ(12,"button",6),r.NdJ("click",function(){return e.submit()}),r._uU(13),r.ALo(14,"translate"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Tol(e.theme),r.xp6(1),r.Q6J("ngIf",0===e.dialogType),r.xp6(1),r.Q6J("ngIf",1===e.dialogType),r.xp6(1),r.Q6J("ngIf",2===e.dialogType),r.xp6(1),r.Q6J("ngIf",3===e.dialogType),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(3),r.hij(" ",r.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),r.xp6(2),r.Q6J("disabled",e.loading||e.nameCtrl.invalid||e.descriptionCtrl.invalid),r.xp6(1),r.hij(" ",r.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},directives:[c.O5,n.xY,n.H8,u.lW,n.uh,l.$g,h.KE,y.Nt,_.Fj,_.Q7,_.JJ,_.oH,h.TO,y.D7],pipes:[a.X$],styles:[""]}),t})();var O=i(67004),P=i(84140),D=i(43691);function M(t,e){1&t&&r._UZ(0,"mat-spinner",8)}function L(t,e){if(1&t&&(r.TgZ(0,"div",9),r.TgZ(1,"span"),r._uU(2),r.ALo(3,"translate"),r.TgZ(4,"b"),r._uU(5),r.qZA(),r.qZA(),r._UZ(6,"br"),r.TgZ(7,"span"),r._uU(8),r.ALo(9,"translate"),r.TgZ(10,"b"),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.qZA(),r._UZ(13,"br"),r.TgZ(14,"span"),r._uU(15),r.ALo(16,"translate"),r.TgZ(17,"b"),r._uU(18),r.ALo(19,"translate"),r.qZA(),r.qZA(),r._UZ(20,"br"),r.TgZ(21,"span"),r._uU(22),r.ALo(23,"translate"),r.TgZ(24,"b"),r._uU(25),r.ALo(26,"translate"),r.qZA(),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.hij(" ",r.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),r.xp6(3),r.Oqu(t.group.name),r.xp6(3),r.hij(" ",r.lcZ(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),r.xp6(3),r.Oqu(r.lcZ(12,12,t.getSynchronizationType())),r.xp6(4),r.hij(" ",r.lcZ(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),r.xp6(3),r.Oqu(r.lcZ(19,16,t.getLastSyncState())),r.xp6(4),r.hij(" ",r.lcZ(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),r.xp6(3),r.Oqu(r.lcZ(26,20,t.getLastSyncTime()))}}function N(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",10),r.NdJ("click",function(){return r.CHM(t),r.oxw().onForceStructure()}),r._uU(1),r.ALo(2,"translate"),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("disabled",t.loading),r.xp6(1),r.hij(" ",r.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function z(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",10),r.NdJ("click",function(){return r.CHM(t),r.oxw().onForce()}),r._uU(1),r.ALo(2,"translate"),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("disabled",t.loading),r.xp6(1),r.hij(" ",r.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let F=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.groupService=i,this.notificator=n,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,[O.r.GROUP_SYNC_ENABLED,O.r.GROUP_LAST_SYNC_STATE,O.r.GROUP_LAST_SYNC_TIMESTAMP,O.r.GROUP_STRUCTURE_SYNC_ENABLED,O.r.GROUP_LAST_STRUCTURE_SYNC_STATE,O.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(t=>{this.group=t,this.syncEnabled=(0,P.IL)(this.group.attributes,O.r.GROUP_SYNC_ENABLED).value,this.lastSyncState=(0,P.IL)(this.group.attributes,O.r.GROUP_LAST_SYNC_STATE).value,this.lastSyncTime=(0,P.IL)(this.group.attributes,O.r.GROUP_LAST_SYNC_TIMESTAMP).value,this.structSyncEnabled=(0,P.IL)(this.group.attributes,O.r.GROUP_STRUCTURE_SYNC_ENABLED).value,this.lastStructSyncState=(0,P.IL)(this.group.attributes,O.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,this.lastStructSyncTime=(0,P.IL)(this.group.attributes,O.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 t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.ff),r.Y36(o.V6))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,M,1,0,"mat-spinner",1),r.YNc(5,L,27,22,"div",2),r.TgZ(6,"div",3),r.TgZ(7,"div",4),r.TgZ(8,"button",5),r.NdJ("click",function(){return e.refresh()}),r.TgZ(9,"mat-icon"),r._uU(10,"refresh"),r.qZA(),r.qZA(),r.YNc(11,N,3,4,"button",6),r.YNc(12,z,3,4,"button",6),r.TgZ(13,"button",7),r.NdJ("click",function(){return e.onCancel()}),r._uU(14),r.ALo(15,"translate"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Tol(e.theme),r.xp6(2),r.Oqu(r.lcZ(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(6),r.Q6J("ngIf",e.isStructured()),r.xp6(1),r.Q6J("ngIf",e.isBasic()||e.isStructured()),r.xp6(2),r.hij(" ",r.lcZ(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},directives:[n.uh,c.O5,n.H8,u.lW,D.Hw,l.$g,n.xY],pipes:[a.X$],styles:[""]}),t})();function Z(t,e){1&t&&r._UZ(0,"mat-spinner",7)}function B(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function q(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function U(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",8),r.TgZ(1,"mat-form-field"),r.TgZ(2,"mat-label"),r._uU(3),r.ALo(4,"translate"),r.qZA(),r.TgZ(5,"input",9,10),r.NdJ("ngModelChange",function(e){return r.CHM(t),r.oxw().subject=e}),r.qZA(),r.YNc(7,B,3,3,"mat-error",11),r.qZA(),r.TgZ(8,"mat-form-field"),r.TgZ(9,"mat-label"),r._uU(10),r.ALo(11,"translate"),r.qZA(),r.TgZ(12,"textarea",12,13),r.NdJ("ngModelChange",function(e){return r.CHM(t),r.oxw().message=e}),r.ALo(14,"translate"),r._uU(15," "),r.qZA(),r.YNc(16,q,3,3,"mat-error",11),r.qZA(),r.qZA()}if(2&t){const t=r.MAs(6),e=r.MAs(13),i=r.oxw();r.xp6(3),r.Oqu(r.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),r.xp6(2),r.Q6J("ngModel",i.subject),r.xp6(2),r.Q6J("ngIf",t.invalid),r.xp6(3),r.Oqu(r.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),r.xp6(2),r.s9C("placeholder",r.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),r.Q6J("ngModel",i.message),r.xp6(4),r.Q6J("ngIf",e.invalid)}}let H=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.data=s,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data.error&&this.data.error.errorId&&(this.subject=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(t=>{this.dialogRef.afterClosed().subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const t=this.storeService.get("config");let e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),e=e.concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.urlWithParams+"\n\n"),this.data.error.payload){const t=/"password":".+?"/;let i=JSON.stringify(this.data.error.payload);i=i.replace(t,'"password":"####"'),e=e.concat("Payload:\n"+i+"\n\n")}return e=e.concat("Sended from new Perun Gui, version: "+i(60306).i8),e.split("\n").join("\n ")}parseMethod(t){return t?this.methodRegexp.exec(t)[1]:t}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(a.sK),r.Y36(o.V6),r.Y36(s.Hr),r.Y36(n.WI),r.Y36(o.d6))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.YNc(3,Z,1,0,"mat-spinner",1),r.YNc(4,U,17,13,"div",2),r.TgZ(5,"div",3),r.TgZ(6,"div",4),r.TgZ(7,"button",5),r.NdJ("click",function(){return e.dialogRef.close()}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.TgZ(10,"button",6),r.NdJ("click",function(){return e.sendBugReport()}),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(4),r.hij(" ",r.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),r.xp6(2),r.Q6J("disabled",""===e.message||""===e.subject||e.loading),r.xp6(1),r.hij(" ",r.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[n.uh,c.O5,n.H8,u.lW,l.$g,n.xY,h.KE,h.hX,y.Nt,_.Fj,_.Q7,_.JJ,_.On,h.TO],pipes:[a.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),j=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.dialog=e,this.data=i}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const t=(0,P.kZ)();t.width="550px",t.data={error:this.data.error},t.autoFocus=!1,this.dialog.open(H,t)}),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.uw),r.Y36(n.WI))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.qZA(),r.TgZ(2,"div",1),r._uU(3),r.qZA(),r.TgZ(4,"div",2),r.TgZ(5,"div",3),r.TgZ(6,"button",4),r.NdJ("click",function(){return e.onBugReportClick()}),r._uU(7),r.ALo(8,"translate"),r.qZA(),r.TgZ(9,"button",5),r.NdJ("click",function(){return e.onCloseClick()}),r._uU(10),r.ALo(11,"translate"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(e.data.title),r.xp6(2),r.hij("\n",e.data.description,"\n"),r.xp6(3),r.Q6J("hidden","error"!==e.data.type),r.xp6(1),r.hij(" ",r.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),r.xp6(3),r.hij(" ",r.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[n.uh,n.xY,n.H8,u.lW],pipes:[a.X$],styles:[""]}),t})();var G=i(67033),Y=i(83787);function V(t,e){1&t&&r._UZ(0,"mat-spinner",3)}function K(t,e){1&t&&r._UZ(0,"th",15)}function J(t,e){if(1&t&&(r.TgZ(0,"td",16),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.hij(" ",t.userExtSource.extSource.name," ")}}function $(t,e){1&t&&r._UZ(0,"tr",17)}function Q(t,e){1&t&&r._UZ(0,"tr",18)}function W(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div"),r.TgZ(1,"div",4),r.TgZ(2,"p"),r._uU(3),r.ALo(4,"translate"),r.ALo(5,"customTranslate"),r.qZA(),r.TgZ(6,"div",5),r._uU(7),r.ALo(8,"translate"),r.ALo(9,"customTranslate"),r.qZA(),r.TgZ(10,"table",6),r.ynx(11,7),r.YNc(12,K,1,0,"th",8),r.YNc(13,J,2,1,"td",9),r.BQk(),r.YNc(14,$,1,0,"tr",10),r.YNc(15,Q,1,0,"tr",11),r.qZA(),r.qZA(),r.TgZ(16,"div",12),r.TgZ(17,"button",13),r.NdJ("click",function(){return r.CHM(t),r.oxw().onCancel()}),r._uU(18),r.ALo(19,"translate"),r.ALo(20,"customTranslate"),r.qZA(),r.TgZ(21,"button",14),r.NdJ("click",function(){return r.CHM(t),r.oxw().onSubmit()}),r._uU(22),r.ALo(23,"translate"),r.ALo(24,"customTranslate"),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.xp6(3),r.hij(" ",r.lcZ(4,7,r.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),r.xp6(4),r.hij(" ",r.lcZ(8,11,r.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),r.xp6(3),r.Q6J("dataSource",t.dataSource),r.xp6(4),r.Q6J("matHeaderRowDef",t.displayedColumns),r.xp6(1),r.Q6J("matRowDefColumns",t.displayedColumns),r.xp6(3),r.hij(" ",r.lcZ(19,15,r.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),r.xp6(4),r.hij(" ",r.lcZ(23,19,r.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let X=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.usersManagerService=i,this.translate=n,this.notificator=s,this.force=!1,this.displayedColumns=["name"],n.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new G.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 t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.Fv),r.Y36(a.sK),r.Y36(o.V6))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.ALo(3,"customTranslate"),r.qZA(),r.TgZ(4,"div"),r.YNc(5,V,1,0,"mat-spinner",1),r.YNc(6,W,25,23,"div",2),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,6,r.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE"))),r.xp6(3),r.Tol(e.theme),r.xp6(1),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[n.uh,c.O5,l.$g,n.xY,G.BZ,G.w1,G.fO,G.Dz,G.as,G.nj,n.H8,u.lW,G.ge,G.ev,G.XQ,G.Gk],pipes:[a.X$,Y.a],styles:[""]}),t})();var tt=i(10901),et=i(81391);let it=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.qZA(),r.TgZ(2,"div",1),r.TgZ(3,"textarea",2),r._uU(4),r.qZA(),r.qZA(),r.TgZ(5,"div",3),r.TgZ(6,"button",4),r.NdJ("click",function(){return e.onCancel()}),r._uU(7),r.ALo(8,"translate"),r.qZA(),r.TgZ(9,"button",5),r._uU(10),r.ALo(11,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(e.title),r.xp6(3),r.Oqu(e.value),r.xp6(3),r.hij(" ",r.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),r.xp6(2),r.Q6J("cdkCopyToClipboard",e.value),r.xp6(1),r.hij(" ",r.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[n.uh,n.xY,tt.IC,y.Nt,n.H8,u.lW,et.i3],pipes:[a.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),t})();function nt(t,e){1&t&&r._UZ(0,"th",12)}function st(t,e){if(1&t&&(r.TgZ(0,"td",13),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.hij(" ",t.displayName," ")}}function ot(t,e){1&t&&r._UZ(0,"tr",14)}function rt(t,e){1&t&&r._UZ(0,"tr",15)}let at=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.attributesManager=s,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new G.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){const t=[];for(const i of this.data.attributes)t.push(i.id);const e={};switch(e[this.data.entity]=this.data.entityId,e.attributes=t,void 0!==this.data.secondEntity&&(e[this.data.secondEntity]=this.data.secondEntityId),this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()})}break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default: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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(o.V6),r.Y36(a.sK),r.Y36(s.H8))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.TgZ(3,"div",1),r.TgZ(4,"div"),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.TgZ(7,"div",2),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.TgZ(10,"table",3),r.ynx(11,4),r.YNc(12,nt,1,0,"th",5),r.YNc(13,st,2,1,"td",6),r.BQk(),r.YNc(14,ot,1,0,"tr",7),r.YNc(15,rt,1,0,"tr",8),r.qZA(),r.qZA(),r.TgZ(16,"div",9),r.TgZ(17,"button",10),r.NdJ("click",function(){return e.onCancel()}),r._uU(18),r.ALo(19,"translate"),r.qZA(),r.TgZ(20,"button",11),r.NdJ("click",function(){return e.onSubmit()}),r._uU(21),r.ALo(22,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),r.xp6(4),r.hij(" ",r.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),r.xp6(3),r.hij(" ",r.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),r.xp6(2),r.Q6J("dataSource",e.dataSource),r.xp6(4),r.Q6J("matHeaderRowDef",e.displayedColumns),r.xp6(1),r.Q6J("matRowDefColumns",e.displayedColumns),r.xp6(3),r.hij(" ",r.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),r.xp6(3),r.hij(" ",r.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},directives:[n.uh,n.xY,G.BZ,G.w1,G.fO,G.Dz,G.as,G.nj,n.H8,u.lW,G.ge,G.ev,G.XQ,G.Gk],pipes:[a.X$],styles:[""]}),t})(),ct=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,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 t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h5",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.TgZ(3,"div",1),r.TgZ(4,"mat-form-field"),r.TgZ(5,"textarea",2),r.NdJ("ngModelChange",function(t){return e.attributeValue=t}),r.qZA(),r.qZA(),r.qZA(),r.TgZ(6,"div",3),r.TgZ(7,"button",4),r.NdJ("click",function(){return e.cancel()}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.TgZ(10,"button",5),r.NdJ("click",function(){return e.submit()}),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE")),r.xp6(4),r.Q6J("ngModel",e.attributeValue),r.xp6(3),r.hij(" ",r.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),r.xp6(3),r.hij(" ",r.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[n.uh,n.xY,h.KE,tt.IC,y.Nt,_.Fj,_.JJ,_.On,n.H8,u.lW],pipes:[a.X$],styles:[""]}),t})(),ut=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h5",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.TgZ(3,"div",1),r.TgZ(4,"div"),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.TgZ(7,"div",2),r._uU(8),r.qZA(),r.qZA(),r.TgZ(9,"div",3),r.TgZ(10,"button",4),r.NdJ("click",function(){return e.cancel()}),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.TgZ(13,"button",5),r.NdJ("click",function(){return e.submit()}),r._uU(14),r.ALo(15,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE")),r.xp6(4),r.hij(" ",r.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),r.xp6(3),r.hij(" ",e.data.name," "),r.xp6(3),r.hij(" ",r.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),r.xp6(3),r.hij(" ",r.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[n.uh,n.xY,n.H8,u.lW],pipes:[a.X$],styles:[""]}),t})();var lt=i(39571);function ht(t,e){if(1&t&&(r.TgZ(0,"app-alert",9),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.pendingEmailsMessage)}}function dt(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.ALo(2,"translate"),r.ALo(3,"customTranslate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,r.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let pt=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=n,this.usersManagerService=s,this.authService=o,this.pendingMails=[],i.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(t=>this.successMessage=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(t=>this.pendingEmailsMessageStart=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(t=>this.pendingEmailsMessageEnd=t)}ngOnInit(){this.emailControl=new _.NI(null,[_.kI.required,_.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(t=>{this.pendingMails=t.filter((t,e,i)=>e===i.indexOf(t));let e="";this.pendingMails.forEach(t=>e+=`${t===this.pendingMails[0]?"":", "}${t}`),console.log(e),this.pendingEmailsMessage=this.pendingEmailsMessageStart+e+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 t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(a.sK),r.Y36(o.V6),r.Y36(s.Fv),r.Y36(o.e8))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.ALo(3,"customTranslate"),r.qZA(),r.TgZ(4,"div",1),r.YNc(5,ht,2,1,"app-alert",2),r.TgZ(6,"mat-form-field",3),r.TgZ(7,"label",3),r._UZ(8,"input",4),r.ALo(9,"translate"),r.ALo(10,"customTranslate"),r.qZA(),r.YNc(11,dt,4,5,"mat-error",5),r.qZA(),r.qZA(),r.TgZ(12,"div",6),r.TgZ(13,"button",7),r.NdJ("click",function(){return e.onCancel()}),r._uU(14),r.ALo(15,"translate"),r.ALo(16,"customTranslate"),r.qZA(),r.TgZ(17,"button",8),r.NdJ("click",function(){return e.onSubmit()}),r._uU(18),r.ALo(19,"translate"),r.ALo(20,"customTranslate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,8,r.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),r.xp6(4),r.Q6J("ngIf",e.pendingMails.length),r.xp6(3),r.s9C("placeholder",r.lcZ(9,12,r.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),r.Q6J("formControl",e.emailControl),r.xp6(3),r.Q6J("ngIf",e.emailControl.invalid),r.xp6(3),r.hij(" ",r.lcZ(15,16,r.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),r.xp6(3),r.Q6J("disabled",!e.emailControl.valid),r.xp6(1),r.hij(" ",r.lcZ(19,20,r.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[n.uh,n.xY,c.O5,h.KE,y.Nt,_.Fj,_.Q7,_.JJ,_.oH,n.H8,u.lW,lt.w,h.TO],pipes:[a.X$,Y.a],styles:[""]}),t})();function gt(t,e){1&t&&r._UZ(0,"mat-spinner",6)}function ft(t,e){1&t&&r._UZ(0,"th",15)}function mt(t,e){if(1&t&&(r.TgZ(0,"td",16),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.hij(" ",t," ")}}function bt(t,e){1&t&&r._UZ(0,"tr",17)}function wt(t,e){1&t&&r._UZ(0,"tr",18)}function _t(t,e){if(1&t&&(r.TgZ(0,"div",7),r.TgZ(1,"p"),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"div",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.TgZ(7,"table",9),r.ynx(8,10),r.YNc(9,ft,1,0,"th",11),r.YNc(10,mt,2,1,"td",12),r.BQk(),r.YNc(11,bt,1,0,"tr",13),r.YNc(12,wt,1,0,"tr",14),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.hij(" ",r.lcZ(3,5,t.data.description)," "),r.xp6(3),r.hij(" ",r.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "),r.xp6(2),r.Q6J("dataSource",t.dataSource),r.xp6(4),r.Q6J("matHeaderRowDef",t.displayedColumns),r.xp6(1),r.Q6J("matRowDefColumns",t.displayedColumns)}}let yt=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new G.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-universal-remove-items-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,gt,1,0,"mat-spinner",1),r.YNc(5,_t,13,9,"div",2),r.TgZ(6,"div",3),r.TgZ(7,"button",4),r.NdJ("click",function(){return e.onCancel()}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.TgZ(10,"button",5),r.NdJ("click",function(){return e.onSubmit()}),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Tol(e.theme),r.xp6(2),r.Oqu(r.lcZ(3,9,e.data.title)),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(3),r.hij(" ",r.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),r.xp6(2),r.Q6J("disabled",e.loading),r.xp6(1),r.hij(" ",r.lcZ(12,13,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," "))},directives:[n.uh,c.O5,n.H8,u.lW,l.$g,n.xY,G.BZ,G.w1,G.fO,G.Dz,G.as,G.nj,G.ge,G.ev,G.XQ,G.Gk],pipes:[a.X$],styles:[""]}),t})();var At=i(71709),vt=i(91010);let Tt=(()=>{class t{transform(t){const e=t.split(":");return e[e.length-1]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"parseGroupName",type:t,pure:!0}),t})();function Ct(t,e){1&t&&r._UZ(0,"mat-spinner",7)}function St(t,e){1&t&&(r.TgZ(0,"app-alert"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function Et(t,e){1&t&&(r.TgZ(0,"span",23),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function kt(t,e){1&t&&(r.TgZ(0,"span",23),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const xt=function(t){return{"min-width":t}};function Rt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-tree-node",16),r.TgZ(1,"li",17),r.TgZ(2,"div",18),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw(3).navigate(e.id,e.include)}),r._UZ(3,"button",19),r.TgZ(4,"div",20),r.TgZ(5,"span"),r._uU(6),r.ALo(7,"parseGroupName"),r.qZA(),r.YNc(8,Et,3,3,"span",21),r.YNc(9,kt,3,3,"span",21),r.qZA(),r.TgZ(10,"span",22),r._uU(11),r.qZA(),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=e.$implicit,i=r.oxw(3);r.xp6(2),r.ekj("cursor-pointer",t.direct||t.include)("act-disabled",!t.direct&&!t.include),r.xp6(2),r.Q6J("ngStyle",r.VKq(11,xt,i.getMinWidth(t.level))),r.xp6(2),r.Oqu(r.lcZ(7,9,t.name)),r.xp6(2),r.Q6J("ngIf",t.direct),r.xp6(1),r.Q6J("ngIf",t.include),r.xp6(2),r.Oqu(t.description)}}function It(t,e){1&t&&(r.TgZ(0,"span",23),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Ot(t,e){1&t&&(r.TgZ(0,"span",23),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Pt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-nested-tree-node"),r.TgZ(1,"li"),r.TgZ(2,"div",17),r.TgZ(3,"button",24),r.TgZ(4,"mat-icon",25),r._uU(5),r.qZA(),r.qZA(),r.TgZ(6,"div",18),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw(3).navigate(e.id,e.include)}),r.TgZ(7,"div",20),r.TgZ(8,"span"),r._uU(9),r.ALo(10,"parseGroupName"),r.qZA(),r.YNc(11,It,3,3,"span",21),r.YNc(12,Ot,3,3,"span",21),r.qZA(),r.TgZ(13,"span",22),r._uU(14),r.qZA(),r.qZA(),r.qZA(),r.TgZ(15,"ul"),r.GkF(16,26),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=e.$implicit,i=r.oxw(3);r.xp6(3),r.uIk("aria-label","Toggle "+t.name),r.xp6(2),r.hij(" ",i.treeControl.isExpanded(t)?"expand_more":"chevron_right"," "),r.xp6(1),r.ekj("cursor-pointer",t.direct||t.include)("act-disabled",!t.direct&&!t.include),r.xp6(1),r.Q6J("ngStyle",r.VKq(15,xt,i.getMinWidth(t.level))),r.xp6(2),r.Oqu(r.lcZ(10,13,t.name)),r.xp6(2),r.Q6J("ngIf",t.direct),r.xp6(1),r.Q6J("ngIf",t.include),r.xp6(2),r.Oqu(t.description),r.xp6(1),r.ekj("example-tree-invisible",!i.treeControl.isExpanded(t))}}function Dt(t,e){if(1&t&&(r.TgZ(0,"mat-tree",13),r.YNc(1,Rt,12,13,"mat-tree-node",14),r.YNc(2,Pt,17,17,"mat-nested-tree-node",15),r.qZA()),2&t){const t=r.oxw(2);r.Q6J("dataSource",t.dataSource)("treeControl",t.treeControl),r.xp6(2),r.Q6J("matTreeNodeDefWhen",t.hasChild)}}function Mt(t,e){if(1&t&&(r.TgZ(0,"div",8),r.TgZ(1,"p"),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"mat-form-field",9),r._UZ(5,"input",10),r.ALo(6,"translate"),r.qZA(),r.YNc(7,St,3,3,"app-alert",11),r.YNc(8,Dt,3,3,"mat-tree",12),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.Oqu(r.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),r.xp6(3),r.s9C("placeholder",r.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),r.Q6J("formControl",t.formControl),r.xp6(2),r.Q6J("ngIf",!t.dataSource.data.length),r.xp6(1),r.Q6J("ngIf",t.dataSource.data.length)}}const Lt=function(t){return{name:t}};let Nt=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.groupsManagerService=i,this.treeControl=new At.VY(t=>t.children),this.dataSource=new vt.WX,this.groupTree=[],this.paths=[],this.formControl=new _.NI(""),this.userName="",this.hasChild=(t,e)=>!!e.children&&e.children.length>0}recursiveSearch(t,e,i){for(let n=0;n{this.groupTree=this.recursiveSearch(this.groupTree,t,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe(t=>{this.paths=t,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe(t=>{const e=t.trim().toLowerCase(),i=this.paths.filter(t=>t.filter(t=>t.name.includes(e)).length);this.createGroupTree(i),this.dataSource.data=this.groupTree}),this.userName=(0,P.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate(t,e=!1){window.open(`/organizations/${this.data.member.voId}/groups/${t}${e?"/settings/relations":""}`,"_blank")}getMinWidth(t){return 400-40*t+"px"}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.ff))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"h1",1),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,Ct,1,0,"mat-spinner",2),r.YNc(5,Mt,9,9,"div",3),r.TgZ(6,"div",4),r.TgZ(7,"div",5),r.TgZ(8,"button",6),r.NdJ("click",function(){return e.onCancel()}),r._uU(9),r.ALo(10,"translate"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(2),r.Oqu(r.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",r.VKq(9,Lt,e.userName))),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(4),r.hij(" ",r.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},directives:[n.uh,c.O5,n.H8,u.lW,l.$g,n.xY,h.KE,y.Nt,_.Fj,_.JJ,_.oH,lt.w,vt.gi,vt.fQ,vt.uo,vt.eu,c.PC,vt.GZ,D.Hw,vt.Ar],pipes:[a.X$,Tt],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] ul[_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:auto!important}"]}),t})();var zt=i(57629);let Ft=(()=>{class t{constructor(t,e){this.dialogRef=t,this.router=e}onClose(){this.router.navigate([]),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(zt.F0))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.TgZ(3,"div",1),r.TgZ(4,"app-alert",2),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.TgZ(7,"div",3),r.TgZ(8,"button",4),r.NdJ("click",function(){return e.onClose()}),r._uU(9),r.ALo(10,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE")),r.xp6(4),r.Oqu(r.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),r.xp6(4),r.hij(" ",r.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[n.uh,n.xY,lt.w,n.H8,u.lW],pipes:[a.X$],styles:[""]}),t})();var Zt=i(54810),Bt=i(15812),qt=i(58506);function Ut(t,e){1&t&&(r.TgZ(0,"mat-radio-button",15),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function Ht(t,e){1&t&&(r.TgZ(0,"mat-radio-button",16),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}let jt=(()=>{class t{constructor(t){this.dialogRef=t,this.canExtendMembership=!1,this.expirationChanged=new r.vpe,this.expirationControl=new _.NI(null)}ngOnInit(){"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}onChange(){this.expirationChanged.emit(this.newExpiration)}onCancel(){this.dialogRef.close(!1)}setExpiration(){this.newExpiration=(0,c.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,c.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-change-expiration-dialog"]],inputs:{currentExpiration:"currentExpiration",newExpiration:"newExpiration",canExtendMembership:"canExtendMembership",minDate:"minDate",maxDate:"maxDate",mode:"mode"},outputs:{expirationChanged:"expirationChanged"},decls:36,vars:36,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"],["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"]],template:function(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"p"),r.TgZ(3,"strong"),r._uU(4),r.ALo(5,"translate"),r.qZA(),r._uU(6),r.ALo(7,"parseDate"),r.qZA(),r.TgZ(8,"p"),r.TgZ(9,"strong"),r._uU(10),r.ALo(11,"translate"),r.qZA(),r._uU(12),r.ALo(13,"parseDate"),r.qZA(),r.TgZ(14,"mat-radio-group",2),r.NdJ("ngModelChange",function(t){return e.newExpiration=t}),r.TgZ(15,"mat-radio-button",3),r.TgZ(16,"mat-form-field",4),r.NdJ("click",function(){return r.CHM(t),r.MAs(23).open()}),r.TgZ(17,"mat-label"),r._uU(18),r.ALo(19,"translate"),r.qZA(),r.TgZ(20,"input",5),r.NdJ("dateChange",function(){return e.setExpiration()}),r.qZA(),r._UZ(21,"mat-datepicker-toggle",6),r._UZ(22,"mat-datepicker",7,8),r.qZA(),r.qZA(),r.YNc(24,Ut,3,3,"mat-radio-button",9),r.YNc(25,Ht,3,3,"mat-radio-button",10),r.TgZ(26,"mat-radio-button",11),r._uU(27),r.ALo(28,"translate"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(29,"div",12),r.TgZ(30,"button",13),r.NdJ("click",function(){return e.onCancel()}),r._uU(31),r.ALo(32,"translate"),r.qZA(),r.TgZ(33,"button",14),r.NdJ("click",function(){return e.onChange()}),r._uU(34),r.ALo(35,"translate"),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.MAs(23);r.xp6(4),r.Oqu(r.lcZ(5,20,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),r.xp6(2),r.hij(" ",r.lcZ(7,22,e.currentExpiration),""),r.xp6(4),r.Oqu(r.lcZ(11,24,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),r.xp6(2),r.hij(" ",e.newExpiration?r.lcZ(13,26,e.newExpiration):"never",""),r.xp6(2),r.Q6J("ngModel",e.newExpiration),r.xp6(1),r.s9C("value",e.expirationControl.value),r.xp6(3),r.Oqu(r.lcZ(19,28,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),r.xp6(2),r.Q6J("min",e.minDate)("max",e.maxDate)("formControl",e.expirationControl)("matDatepicker",t),r.xp6(1),r.Q6J("for",t)("disabled",!1),r.xp6(1),r.Q6J("disabled",!1),r.xp6(2),r.Q6J("ngIf",e.canExtendMembership&&"vo"===e.mode),r.xp6(1),r.Q6J("ngIf",e.canExtendMembership&&"group"===e.mode),r.xp6(2),r.hij(" ",r.lcZ(28,30,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),r.xp6(4),r.hij(" ",r.lcZ(32,32,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),r.xp6(2),r.Q6J("disabled",e.expirationControl.invalid),r.xp6(1),r.hij(" ",r.lcZ(35,34,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},directives:[n.xY,Zt.VQ,_.JJ,_.On,Zt.U0,h.KE,h.hX,y.Nt,_.Fj,Bt.hl,_.oH,Bt.nW,h.R9,Bt.Mq,c.O5,n.H8,u.lW],pipes:[a.X$,qt.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}"]}),t})();function Gt(t,e){1&t&&r._UZ(0,"mat-spinner",4)}function Yt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"perun-web-apps-change-expiration-dialog",5),r.NdJ("expirationChanged",function(e){return r.CHM(t),r.oxw().onExpirationChanged(e)}),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("minDate",t.minDate)("maxDate",t.maxDate)("currentExpiration",t.currentExpiration)("newExpiration",t.newExpiration)("canExtendMembership",t.canExtendMembership)("mode","group")}}let Vt=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.memberManager=n,this.groupManager=s,this.translate=o,this.notificator=r,this.loading=!1,this.expirationAttr=null,this.canExtendMembership=!1,o.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0;const t=new Date;"VALID"!==this.data.status?this.maxDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()):this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr&&this.expirationAttr.value?this.expirationAttr.value:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&(this.newExpiration="VALID"!==this.data.status?(0,c.p6)(this.maxDate,"yyyy-MM-dd","en"):"never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,O.r.GROUP_DEF_EXPIRATION_RULES).subscribe(t=>{null!==t.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(t=>{this.canExtendMembership=!!t,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(t){this.loading=!0,"groupRules"===t?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1):(this.expirationAttr.value="never"===t?null:t,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.H8),r.Y36(s.uq),r.Y36(s.ff),r.Y36(a.sK),r.Y36(o.V6))},t.\u0275cmp=r.Xpm({type:t,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","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","expirationChanged"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"h1",1),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,Gt,1,0,"mat-spinner",2),r.YNc(5,Yt,1,6,"perun-web-apps-change-expiration-dialog",3),r.qZA()),2&t&&(r.xp6(2),r.Oqu(r.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[n.uh,c.O5,l.$g,jt],pipes:[a.X$],styles:[""]}),t})();function Kt(t,e){1&t&&r._UZ(0,"mat-spinner",4)}function Jt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"perun-web-apps-change-expiration-dialog",5),r.NdJ("expirationChanged",function(e){return r.CHM(t),r.oxw().onExpirationChanged(e)}),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("minDate",t.minDate)("maxDate",t.maxDate)("currentExpiration",t.currentExpiration)("newExpiration",t.newExpiration)("canExtendMembership",t.canExtendMembership)("mode","vo")}}let $t=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.memberManager=n,this.translate=s,this.notificator=o,this.loading=!1,this.expirationAttr=null,this.canExtendMembership=!1,s.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0;const t=new Date;"VALID"!==this.data.status?this.maxDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()):this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr&&this.expirationAttr.value?this.expirationAttr.value:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&(this.newExpiration="VALID"!==this.data.status?(0,c.p6)(this.maxDate,"yyyy-MM-dd","en"):"never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,O.r.VO_DEF_EXPIRATION_RULES).subscribe(t=>{null!==t.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe(t=>{this.canExtendMembership=!!t,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(t){this.loading=!0,"voRules"===t?this.memberManager.extendMembership(this.data.memberId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1):(this.expirationAttr.value="never"===t?null:t,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.H8),r.Y36(s.uq),r.Y36(a.sK),r.Y36(o.V6))},t.\u0275cmp=r.Xpm({type:t,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","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","expirationChanged"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"h1",1),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,Kt,1,0,"mat-spinner",2),r.YNc(5,Jt,1,6,"perun-web-apps-change-expiration-dialog",3),r.qZA()),2&t&&(r.xp6(2),r.Oqu(r.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[n.uh,c.O5,l.$g,jt],pipes:[a.X$],styles:[""]}),t})();function Qt(t,e){1&t&&r._UZ(0,"mat-spinner",4)}function Wt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"perun-web-apps-change-expiration-dialog",5),r.NdJ("expirationChanged",function(e){return r.CHM(t),r.oxw().onExpirationChanged(e)}),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("minDate",t.minDate)("currentExpiration",t.currentExpiration)("newExpiration",t.newExpiration)("mode","sponsor")}}let Xt=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.memberManager=n,this.groupManager=s,this.translate=o,this.notificator=r,this.loading=!1,o.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.loading=!1}onExpirationChanged(t){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===t?null:t).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.H8),r.Y36(s.uq),r.Y36(s.ff),r.Y36(a.sK),r.Y36(o.V6))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"h1",1),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,Qt,1,0,"mat-spinner",2),r.YNc(5,Wt,1,4,"perun-web-apps-change-expiration-dialog",3),r.qZA()),2&t&&(r.xp6(2),r.Oqu(r.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[n.uh,c.O5,l.$g,jt],pipes:[a.X$],styles:[""]}),t})();function te(t,e){1&t&&r._UZ(0,"mat-spinner",4)}function ee(t,e){1&t&&(r.TgZ(0,"span",11),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function ie(t,e){1&t&&(r.TgZ(0,"span",11),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function ne(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"mat-radio-group",12),r.NdJ("ngModelChange",function(e){return r.CHM(t),r.oxw(2).asyncValidation=e}),r.TgZ(1,"span",13),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"mat-radio-button",14),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.TgZ(7,"mat-radio-button",14),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(2);r.Q6J("ngModel",t.asyncValidation),r.xp6(2),r.hij(" ",r.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE"),": "),r.xp6(2),r.Q6J("value",!1),r.xp6(1),r.hij(" ",r.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),r.xp6(2),r.Q6J("value",!0),r.xp6(1),r.hij(" ",r.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function se(t,e){1&t&&(r.TgZ(0,"span",11),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function oe(t,e){1&t&&(r.TgZ(0,"span",11),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function re(t,e){if(1&t&&(r.TgZ(0,"div",5),r.TgZ(1,"p",6),r._uU(2),r.TgZ(3,"span",7),r._uU(4),r.qZA(),r._uU(5),r.TgZ(6,"span",7),r._uU(7),r.qZA(),r.qZA(),r.TgZ(8,"p"),r.TgZ(9,"strong",8),r._uU(10),r.ALo(11,"translate"),r.qZA(),r._uU(12),r.qZA(),r.TgZ(13,"p"),r.TgZ(14,"strong",8),r._uU(15),r.ALo(16,"translate"),r.qZA(),r._uU(17),r.qZA(),r.YNc(18,ee,3,3,"span",9),r.YNc(19,ie,3,3,"span",9),r.YNc(20,ne,10,12,"mat-radio-group",10),r.YNc(21,se,3,3,"span",9),r.YNc(22,oe,3,3,"span",9),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.hij(" ",t.group.name," "),r.xp6(2),r.hij("#",t.group.id,""),r.xp6(1),r.hij(" - ",t.resource.name," "),r.xp6(2),r.hij("#",t.resource.id,""),r.xp6(3),r.hij("",r.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT"),":"),r.xp6(2),r.hij(" ",t.status," "),r.xp6(3),r.hij("",r.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW"),":"),r.xp6(2),r.hij(" ",t.getReversedStatus()," "),r.xp6(1),r.Q6J("ngIf","INACTIVE"===t.status),r.xp6(1),r.Q6J("ngIf","ACTIVE"===t.status),r.xp6(1),r.Q6J("ngIf","INACTIVE"===t.status),r.xp6(1),r.Q6J("ngIf","INACTIVE"===t.status&&!1===t.asyncValidation),r.xp6(1),r.Q6J("ngIf","INACTIVE"===t.status&&!0===t.asyncValidation)}}function ae(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",15),r.TgZ(1,"button",16),r.NdJ("click",function(){return r.CHM(t),r.oxw().onCancel()}),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"button",17),r.NdJ("click",function(){return r.CHM(t),r.oxw().onSubmit()}),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.xp6(2),r.hij(" ",r.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),r.xp6(2),r.Q6J("disabled",t.loading),r.xp6(1),r.hij(" ",r.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SUBMIT")," ")}}let ce=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.resourceService=i,this.groupService=n,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(t=>{this.resource=t,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 t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.xk),r.Y36(s.ff))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,te,1,0,"mat-spinner",1),r.YNc(5,re,23,17,"div",2),r.YNc(6,ae,7,7,"div",3),r.qZA()),2&t&&(r.Tol(e.theme),r.xp6(2),r.Oqu(r.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[n.uh,c.O5,l.$g,n.xY,Zt.VQ,_.JJ,_.On,Zt.U0,n.H8,u.lW],pipes:[a.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),t})()},84534:function(t,e,i){"use strict";i.d(e,{hT:function(){return s},Kd:function(){return r},YH:function(){return a}});var n=i(31572);let s=(()=>{class t{constructor(t){this.elementRef=t}ngOnInit(){this.elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t})();var o=i(88426);let r=(()=>{class t{constructor(t,e){this.el=t,this.router=e}onClick(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(o.xw))},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),t})(),a=(()=>{class t{constructor(){}onClick(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),e=location.search;window.open(t+e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&n.NdJ("mouseup",function(t){return e.onClick(t)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t})()},14732:function(t,e,i){"use strict";i.d(e,{u:function(){return n},m:function(){return s}});var n=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({});class s{constructor(t){this.id=t.id,this.name=t.name,this.parentGroupId=t.parentGroupId,this.voId=t.voId,this.shortName=t.shortName,this.description=t.description,this.attributes=t.attributes,this.beanName=t.beanName}addChild(t){null==this.children?this.children=[t]:this.children.push(t)}}},33642:function(t,e,i){"use strict";i.d(e,{Us:function(){return k},au:function(){return D},H8:function(){return c},Ct:function(){return l},VK:function(){return a},KG:function(){return p},IQ:function(){return g},ff:function(){return m},uq:function(){return b},aC:function(){return w},Hr:function(){return _},tk:function(){return y},xk:function(){return A},KK:function(){return v},Ob:function(){return T},Dy:function(){return P},Fv:function(){return C},FW:function(){return S},YF:function(){return E}});var n=i(29063);class s{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}var o=i(31572);const r=new o.OlP("basePath");class a{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}selectHeaderContentType(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let c=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}convertAttributeToNonunique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}convertAttributeToUnique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attribute",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteAttributeDefinitions(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllAttributeDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttribute(t,e,i,s,o,r,a,c,u,l,h,d="body",p=!1){let g=new n.LE({encoder:this.encoder});null!=t&&(g=g.set("attributeName",t)),null!=e&&(g=g.set("attributeId",e)),null!=i&&(g=g.set("facility",i)),null!=s&&(g=g.set("user",s)),null!=o&&(g=g.set("vo",o)),null!=r&&(g=g.set("resource",r)),null!=a&&(g=g.set("member",a)),null!=c&&(g=g.set("group",c)),null!=u&&(g=g.set("host",u)),null!=l&&(g=g.set("userExtSource",l)),null!=h&&(g=g.set("key",h));let f=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(f=f.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+t)}const m=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==m&&(f=f.set("Accept",m)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{params:g,withCredentials:this.configuration.withCredentials,headers:f,observe:d,reportProgress:p})}getAttributeDefinitionById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeDefinitionByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeDefinitionsByNamespace(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttributeModulesDependenciesForAttributeGraphText(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("format",t)),null!=e&&(o=o.set("attrName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAttributeModulesDependenciesGraphText(t,e="body",i=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("format",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributesDefinitionWithRights(t,e,i,s,o,r,a,c,u="body",l=!1){let h=new n.LE({encoder:this.encoder});null!=t&&(h=h.set("member",t)),null!=e&&(h=h.set("user",e)),null!=i&&(h=h.set("vo",i)),null!=s&&(h=h.set("group",s)),null!=o&&(h=h.set("resource",o)),null!=r&&(h=h.set("facility",r)),null!=a&&(h=h.set("host",a)),null!=c&&(h=h.set("userExtSource",c));let d=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(d=d.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(d=d.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;d=d.set("Authorization","Bearer "+t)}const p=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==p&&(d=d.set("Accept",p)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{params:h,withCredentials:this.configuration.withCredentials,headers:d,observe:u,reportProgress:l})}getEntitylessAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("key",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEntitylessAttributesByKey(t,e="body",i=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("key",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEntitylessAttributesByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attrName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEntitylessAttributesWithKeys(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("attrName",t)),e&&e.forEach(t=>{o=o.append("keys[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEntitylessKeys(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityResourceUserMemberAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=s&&(a=a.set("member",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getFacilityUserAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupResourceAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getGroupResourceAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getGroupResourceAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getHostAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getHostAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getLogins(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberAndUserAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberAndUserAttributesByNames(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberGroupAndUserAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(t=>{a=a.append("attrNames[]",t)}),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getMemberGroupAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberGroupAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberGroupAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberGroupAttributesByNames(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAndUserFacilityAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAndUserFacilityAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(t=>{a=a.append("attrNames[]",t)}),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getMemberResourceAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesFacilityService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesFacilityServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("services[]",t)}),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesGroupResourceService(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("group",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesHostService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("host",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesMemberGroup(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesMemberGroupResourceService(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("service",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=s&&(c=c.set("member",s)),null!=o&&(c=c.set("workWithUserAttributes",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}getRequiredAttributesMemberGroupService(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRequiredAttributesMemberResource(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesMemberResourceService(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("member",i)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRequiredAttributesResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesResourceService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesResourceServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("services[]",t)}),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesUserFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesVoService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourceAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceGroupAndGroupAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithGroupAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResourceGroupAndGroupAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(t=>{a=a.append("attrNames[]",t)}),null!=s&&(a=a.set("workWithGroupAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getResourceGroupAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceGroupMemberAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),s&&s.forEach(t=>{a=a.append("attrNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getUserAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourceAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserFacilityAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserFacilityAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserFacilityAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeAttributesForFacilityResourceGroupUserMember(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let u=new n.LE({encoder:this.encoder});null!=t&&(u=u.set("facility",t)),null!=e&&(u=u.set("resource",e)),null!=i&&(u=u.set("group",i)),null!=s&&(u=u.set("user",s)),null!=o&&(u=u.set("member",o)),r&&r.forEach(t=>{u=u.append("attributes[]",t)});let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(l=l.set("Accept",h)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{params:u,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:c})}removeAttributesForFacilityResourceUserMember(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("user",i)),null!=s&&(c=c.set("member",s)),o&&o.forEach(t=>{c=c.append("attributes[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}removeEntitylessAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("key",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupResourceAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeGroupResourceAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeGroupResourceAttributesWorkWithGroupAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(t=>{a=a.append("attributes[]",t)}),null!=s&&(a=a.set("workWithGroupAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeHostAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeHostAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMemberAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMemberAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMemberAttributesWorkWithUserAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attributes[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberGroupAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberGroupAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberGroupAttributesWorkWithUserAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(t=>{a=a.append("attributes[]",t)}),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeMemberResourceAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberResourceAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeResourceAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUesAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserExtSourceAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserFacilityAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeUserFacilityAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeVoAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setEntitylessAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceGroupUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAndUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupWithGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}auditMessagesManagerLog(t,e="body",i=!1){if(null==t)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("msg",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/AuditMessagesManager/log`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createAuditerConsumer(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("consumerName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/AuditMessagesManager/createAuditerConsumer`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllAuditerConsumers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getAllAuditerConsumers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuditerMessagesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getAuditerMessagesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getLastMessageId(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getLastMessageId`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMessages(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("count",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getMessages`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMessagesByCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("count",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getMessagesByCount`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}pollConsumerMessages(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("consumerName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/pollConsumerMessages`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}setLastProcessedId(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==e)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("consumerName",t)),null!=e&&(o=o.set("lastProcessedId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/AuditMessagesManager/setLastProcessedId`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),l=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getAllPolicies(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRolesManagementRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuthzAdminGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("role",t)),null!=e&&(r=r.set("complementaryObjectId",e)),null!=i&&(r=r.set("complementaryObjectName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAuthzRichAdmins(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let u=new n.LE({encoder:this.encoder});null!=t&&(u=u.set("role",t)),null!=e&&(u=u.set("complementaryObjectId",e)),null!=i&&(u=u.set("complementaryObjectName",i)),s&&s.forEach(t=>{u=u.append("specificAttributes",t)}),null!=o&&(u=u.set("allUserAttributes",o)),null!=r&&(u=u.set("onlyDirectAdmins",r));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(l=l.set("Accept",h)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{params:u,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:c})}getFacilitiesWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("groupId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getLoggedUser(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMembersWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getPerunPrincipal(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPrincipalRoleNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSecurityTeamsWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("userId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}isFacilityAdmin(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isGroupAdmin(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isPerunAdmin(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isVoAdmin(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}keepAlive(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}loadAuthorizationComponents(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}setRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),h=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}createAutorship(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAuthorship was null or undefined when calling createAutorship.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryCat(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory was null or undefined when calling createCategoryCat.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryNR(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory1 was null or undefined when calling createCategoryNR.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublication was null or undefined when calling createPublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateThanks was null or undefined when calling createThanks.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAuthorship(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==e)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("publicationId",t)),null!=e&&(o=o.set("userId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deletePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deletePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findAllAuthors(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}findAuthorsByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findExternalPublications(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==e)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==i)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==s)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("yearSince",e)),null!=i&&(a=a.set("yearTill",i)),null!=s&&(a=a.set("pubSysNamespace",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}findNewAuthors(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findPublicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findPublicationsByFilter(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let r=new n.LE({encoder:this.encoder});null!=e&&(r=r.set("yearSince",e)),null!=i&&(r=r.set("yearTill",i)),null!=t&&(r=r.set("userId",t));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findPublicationsByGUIFilter(t,e,i,s,o,r,a,c,u,l="body",h=!1){let d=new n.LE({encoder:this.encoder});null!=t&&(d=d.set("title",t)),null!=e&&(d=d.set("isbn",e)),null!=i&&(d=d.set("doi",i)),null!=s&&(d=d.set("id",s)),null!=o&&(d=d.set("year",o)),null!=r&&(d=d.set("category",r)),null!=a&&(d=d.set("yearSince",a)),null!=c&&(d=d.set("yearTill",c)),null!=u&&(d=d.set("userId",u));let p=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(p=p.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(p=p.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;p=p.set("Authorization","Bearer "+t)}const g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(p=p.set("Accept",g)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{params:d,withCredentials:this.configuration.withCredentials,headers:p,observe:l,reportProgress:h})}findSimilarPublications(t,e,i,s="body",o=!1){let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("title",t)),null!=e&&(r=r.set("doi",e)),null!=i&&(r=r.set("isbn",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getCategories(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPublicationSystems(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRank(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRank.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichThanksByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}lockPublications(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputLockPublications was null or undefined when calling lockPublications.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateCategory was null or undefined when calling updateCategory.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublication was null or undefined when calling updatePublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),d=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getCurrentDatabaseVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getCurrentDatabaseVersion`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseDriverInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseDriverInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTimeOfQueryPerformance(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getTimeOfQueryPerformance`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),p=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addExtSourceWithGroupSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addExtSourceWithVoSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createExtSourceFromExtSourceObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter extSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createExtSourceWithNameType(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==e)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getExtSourceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getExtSources(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGroupExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}loadExtSourcesDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeExtSourceWithGroupSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeExtSourceWithVoSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),g=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addFacilityAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityAdminGroupByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityAdminUserByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwnerByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwnerByFacilityNameOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwnerByOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHost(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("hostname",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHostByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("hostname",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHosts(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hostnames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHostsByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hostnames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignSecurityTeam(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignSecurityTeamByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributesByDestinationName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributesBySourceDestinationNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributesBySourceName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagersByDestinationName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagersBySourceDestinationNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagersBySourceName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwners(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwnersByDestinationName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwnersBySourceDestinationNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwnersBySourceName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllowedGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedGroupsByFacilityName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedRichGroupsWithAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(t=>{a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=s&&(a=a.set("service",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getAllowedRichGroupsWithAttributesByFacilityName(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(t=>{a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=s&&(a=a.set("service",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getAllowedUsersOfFacility(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedUsersOfFacilityByFacilityName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedVos(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedVosByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesByAssignedServiceForFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedSecurityTeams(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedSecurityTeamsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedUsers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedUsersByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getBansForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facilityId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getBansForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEnrichedFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getEnrichedHosts(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilitiesByAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("attributeName",t)),null!=e&&(o=o.set("attributeValue",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilitiesByDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilitiesByHostName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("hostname",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilitiesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilitiesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAdminUsers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityAdminUsersByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityBan(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityForHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityOwners(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityOwnersByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHosts(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("hostname",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsCountByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getOwnerFacilities(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("owner",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeBanByUserIdFacilityId(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminGroupByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminUserByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeFacilityOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityOwnerByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityOwnerByFacilityNameOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityOwnerByOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeHostByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("hostname",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeHosts(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hosts[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeHostsByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hosts[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSecurityTeam(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSecurityTeamByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),f=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getFacilityAdminGroupsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),m=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addMembers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}canExtendMembershipInGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createGroupUnion(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resultGroup",t)),null!=e&&(o=o.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createGroupWithParentGroupNameDescription(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("parentGroup",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createGroupWithVoNameDescription(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}deleteGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteGroups(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroups.");if(null==e)throw new Error("Required parameter forceDelete was null or undefined when calling deleteGroups.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("forceDelete",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroups`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}extendMembershipInGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}forceAllSubGroupsSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}forceGroupStructureSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}forceGroupSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllRichGroupsWithAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllRichSubGroupsWithGroupAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("name",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupMemberById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupMembersCountsByGroupStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupMembersCountsByVoStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupRichMembersByIds(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("members[]",t)}),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getGroupUnions(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("reverseDirection",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getIndirectMembershipPaths(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberRichGroupsWithAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRichGroupByIdWithAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("groupId",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}isGroupMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}moveGroupWithDestinationGroupMovingGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("destinationGroup",e)),null!=t&&(o=o.set("movingGroup",t));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupUnion(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resultGroup",t)),null!=e&&(o=o.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMembers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setGroupsMemberStatus(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("status",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}updateGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),b=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}canExtendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createMemberForCandidate(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberFromExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSpecificMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembersFromCSV(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}extendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findCompleteRichMembersByAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let r=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("attrsNames[]",t)}),null!=e&&(r=r.set("searchString",e)),i&&i.forEach(t=>{r=r.append("allowedStatuses[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findCompleteRichMembersForGroup(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==s)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let u=new n.LE({encoder:this.encoder});null!=t&&(u=u.set("group",t)),e&&e.forEach(t=>{u=u.append("attrsNames[]",t)}),o&&o.forEach(t=>{u=u.append("allowedStatuses[]",t)}),r&&r.forEach(t=>{u=u.append("allowedGroupStatuses[]",t)}),null!=i&&(u=u.set("searchString",i)),null!=s&&(u=u.set("lookingInParentGroup",s));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(l=l.set("Accept",h)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{params:u,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:c})}findCompleteRichMembersForVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(t=>{a=a.append("attrsNames[]",t)}),s&&s.forEach(t=>{a=a.append("allowedStatuses[]",t)}),null!=i&&(a=a.set("searchString",i));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}findMembersInVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findSponsoredCompleteRichMembersForVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==s)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(t=>{a=a.append("attrsNames[]",t)}),null!=i&&(a=a.set("searchString",i)),null!=s&&(a=a.set("onlySponsored",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getAllNamespacesRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllSponsoredMembersAndTheirSponsors(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getCompleteRichMembersForGroup(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),i&&i.forEach(t=>{c=c.append("allowedStatuses[]",t)}),s&&s.forEach(t=>{c=c.append("allowedGroupStatuses[]",t)}),null!=e&&(c=c.set("lookingInParentGroup",e)),o&&o.forEach(t=>{c=c.append("attrsNames[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}getCompleteRichMembersForGroupResource(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==s)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(t=>{a=a.append("attrsNames[]",t)}),s&&s.forEach(t=>{a=a.append("allowedStatuses[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getCompleteRichMembersForVo(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("allowedStatuses[]",t)}),i&&i.forEach(t=>{r=r.append("attrsNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberByExtSourceNameAndExtLogin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extLogin",e)),null!=i&&(r=r.set("extSourceName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberByUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMembers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMembersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMembersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMembersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getMembersWithStatusCount(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRichMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichMemberWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichMembersByIds(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("ids[]",t)}),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getSponsoredMembersAndTheirSponsors(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsorsByMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsorsByVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),s&&s.forEach(t=>{a=a.append("attrNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}moveMembership(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("sourceUser",e)),null!=i&&(r=r.set("targetUser",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeSponsor(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sendAccountActivationLinkEmail(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==s)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=s&&(a=a.set("language",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sendPasswordResetLinkEmail(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==s)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=s&&(a=a.set("language",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}setSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSponsorshipForMember(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("sponsoredMember",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}setStatus(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sponsorMember(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}updateSponsorshipValidity(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}validateMemberAsync(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),w=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}createOwner(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateOwner was null or undefined when calling createOwner.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("owner",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllOwners(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getOwnerById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getOwnerByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("owner",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}sentMessageToRTWithMemberQueue(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("memberId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=s&&(a=a.set("text",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sentMessageToRTWithQueue(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("queue",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sentMessageToRTWithVo(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("voId",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sentMessageToRTWithVoQueue(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("voId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=s&&(a=a.set("text",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),y=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addApplicationMailForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addApplicationMailForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}approveApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}consolidateIdentityUsingToken(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("token",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}copyFormFromGroupToGroup(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyFormFromGroupToVo(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyFormFromVoToGroup(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyFormFromVoToVo(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromGroupToGroup(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromGroupToVo(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromVoToGroup(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromVoToVo(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createApplicationFormInGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createApplicationFormInVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteApplicationMailForGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteApplicationMailForVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteGroupsFromAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationDataById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationMailsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationMailsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationsForGroup(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),e&&e.forEach(t=>{a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=s&&(a=a.set("dateTo",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getApplicationsForMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getApplicationsForVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(t=>{a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=s&&(a=a.set("dateTo",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getConsolidatorToken(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFormItemsForGroupWithType(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFormItemsForVoWithType(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}rejectApplication(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),null!=e&&(o=o.set("reason",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sendInvitation(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let a=new n.LE({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=s&&(a=a.set("name",s)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sendInvitationForGroup(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let c=new n.LE({encoder:this.encoder});null!=i&&(c=c.set("voId",i)),null!=s&&(c=c.set("groupId",s)),null!=o&&(c=c.set("name",o)),null!=t&&(c=c.set("email",t)),null!=e&&(c=c.set("language",e));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}sendInvitationGroupToExistingUser(t,e,i,s="body",o=!1){let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("userId",t)),null!=e&&(r=r.set("voId",e)),null!=i&&(r=r.set("groupId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendInvitationToExistingUser(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userId",t)),null!=e&&(o=o.set("voId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sendMessage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSendingEnabled(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}submitApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateApplicationMail(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}verifyApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),A=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}activateGroupResourceAssignment(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}addAdminToGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addAdminToUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addResourceSelfServiceGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addResourceSelfServiceUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}allowGroupsToResources(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let r=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("groups[]",t)}),e&&e.forEach(t=>{r=r.append("resources[]",t)}),null!=i&&(r=r.set("async",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}assignGroupToResource(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}assignGroupToResources(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("resources[]",t)}),null!=i&&(r=r.set("async",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}assignGroupsToResource(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let r=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("groups[]",t)}),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}assignResourceTagToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}assignService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResource(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("name",i)),null!=s&&(a=a.set("description",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}createResourceTagWithResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResourceTagWithTagName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("tagName",t)),null!=e&&(o=o.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deactivateGroupResourceAssignment(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteAllResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAdmins(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllResourcesByResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllResourcesTagsForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllResourcesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedUsersOfResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedGroups(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesWithMemberService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedServicesToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getBansForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getBansForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEnrichedResourceById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEnrichedResourcesForFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEnrichedResourcesForVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupAssignments(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAssignments(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceBan(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourceByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("name",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourcesCountForAll(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesCountForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourcesFromVoWhereUserIsAdmin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourcesWhereGroupIsAdmin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("group",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResourcesWhereUserIsAdmin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("user",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRichAdmins(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),e&&e.forEach(t=>{a=a.append("specificAttributes",t)}),null!=i&&(a=a.set("allUserAttributes",i)),null!=s&&(a=a.set("onlyDirectAdmins",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRichResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeAllResourceTagsFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeBanByMemberAndResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupAdminResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupFromResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupFromResources(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupsFromResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeResourceSelfServiceGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceSelfServiceUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceTagFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserAdminResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unallowGroupsFromResources(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),e&&e.forEach(t=>{o=o.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}updateResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),v=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addDestination(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==s)throw new Error("Required parameter type was null or undefined when calling addDestination.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("service",t)),null!=e&&(c=c.set("facility",e)),null!=i&&(c=c.set("destination",i)),null!=s&&(c=c.set("type",s)),null!=o&&(c=c.set("propagationType",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}addDestinationToMultipleServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addDestinationsForAllServicesOnFacility(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==i)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("destination",e)),null!=i&&(a=a.set("type",i)),null!=s&&(a=a.set("propagationType",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}addRequiredAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addRequiredAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addServiceToServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("servicesPackage",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}blockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}blockAllServicesOnDestinationByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("destination",t)),null!=e&&(o=o.set("destinationType",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}blockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}blockServiceOnDestination(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}blockServiceOnDestinationWithNameAndType(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("destinationType",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}blockServiceOnFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createService(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==i)throw new Error("Required parameter script was null or undefined when calling createService.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e)),null!=i&&(r=r.set("script",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createServiceWithService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateService was null or undefined when calling createServiceWithService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackageByNameAndDescription(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling deleteService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}forceServicePropagation(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllDestinations(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRichDestinationsForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllRichDestinationsForService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getDataWithGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getDataWithVos(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getDestinations(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getDestinationsCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAssignedServicesForGUI(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFlatData(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getHashedDataWithGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getHashedHierarchicalData(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getHierarchicalData(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRichDestinations(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getServiceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServiceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServices(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getServicesBlockedOnDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesBlockedOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesByAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesFromServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesPackageById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesPackageByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesPackages(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isServiceBlockedOnDestination(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}isServiceBlockedOnFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}planServicePropagation(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeAllDestinations(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeAllRequiredAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeDestination(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==s)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("destination",i)),null!=s&&(a=a.set("type",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeRequiredAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeRequiredAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeServiceFromServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("servicesPackage",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}unblockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}unblockAllServicesOnDestinationByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("destination",t)),null!=e&&(o=o.set("destinationType",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}unblockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}unblockServiceOnDestinationById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}unblockServiceOnDestinationByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("destinationType",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}unblockServiceOnFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}updateService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateService was null or undefined when calling updateService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),T=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}countTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}deleteTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskIdObject was null or undefined when calling deleteTask.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResultIdObject was null or undefined when calling deleteTaskResultById.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllFacilitiesStates(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllResourcesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("voId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityServicesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTask(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getTask.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getTaskById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("taskResult",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResults(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTaskResultsByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("task",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultsForDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("destinations[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultsForGUIByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("task",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultsForGUIByTaskAndDestination(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("task",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getTaskResultsForGUIByTaskOnlyNewest(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("task",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isThereSuchTask(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}listAllTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}listAllTasksForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}suspendTasksPropagation(t,e="body",i=!1){if(null==t)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("suspend",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),C=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addSpecificUserOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addUserExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}changeNonAuthzPasswordByToken(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("token",t)),null!=e&&(r=r.set("password",e)),null!=i&&(r=r.set("lang",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}changePasswordForLogin(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("login",t)),null!=e&&(c=c.set("namespace",e)),null!=i&&(c=c.set("newPassword",i)),null!=s&&(c=c.set("oldPassword",s)),null!=o&&(c=c.set("checkOldPassword",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}changePasswordForUser(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("namespace",e)),null!=i&&(c=c.set("newPassword",i)),null!=s&&(c=c.set("oldPassword",s)),null!=o&&(c=c.set("checkOldPassword",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}checkPasswordResetRequestByTokenIsValid(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("token",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}checkPasswordStrength(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("password",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createAlternativePassword(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==s)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("description",e)),null!=i&&(a=a.set("loginNamespace",i)),null!=s&&(a=a.set("password",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}createServiceUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAlternativePassword(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("loginNamespace",e)),null!=i&&(r=r.set("passwordId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}deletePasswordForLogin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deletePasswordForUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findRichUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findRichUsersWithAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("searchString",t)),e&&e.forEach(t=>{o=o.append("attrsNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsForFacilityWhereUserIsActive(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsForResourceWhereUserIsActive(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsInVoWhereUserIsAdmin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getPendingPreferredEmailChanges(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUserWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUsersWithAttributesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUsersWithoutVoWithAttributes(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("attrsNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getSpecificUsersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getSponsorsForMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsorsForMemberByVoAndLogin(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),s&&s.forEach(t=>{a=a.append("attrNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getUserByExtSourceNameAndExtLogin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("extLogin",t)),null!=e&&(o=o.set("extSourceName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUsersBySpecificUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("specificUser",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosWhereUserIsMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isLoginAvailable(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("loginNamespace",t)),null!=e&&(o=o.set("login",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}loginExist(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSpecificUserOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserExtSource(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("userExtSource",e)),null!=i&&(r=r.set("force",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}requestPreferredEmailChange(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let u=new n.LE({encoder:this.encoder});null!=t&&(u=u.set("user",t)),null!=e&&(u=u.set("email",e)),null!=i&&(u=u.set("lang",i)),null!=s&&(u=u.set("linkPath",s)),null!=o&&(u=u.set("customUrl",o)),null!=r&&(u=u.set("idpFilter",r));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(l=l.set("Accept",h)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{params:u,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:c})}reservePasswordForLogin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}reservePasswordForUser(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}reserveRandomPassword(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}updateUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}validatePasswordForLogin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}validatePasswordForUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}validatePreferredEmailChangeWithToken(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("token",t)),null!=e&&(o=o.set("u",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),S=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getAppsConfig(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGuiConfiguration(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunRPCVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatistics(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatus(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunSystemTimeInMillis(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),E=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addSponsorRoleToGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addSponsorRoleToUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addVoAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addVoAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createVoWithName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("shortName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createVoWithVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findCandidates(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("id",t)),null!=e&&(r=r.set("searchString",e)),null!=i&&(r=r.set("maxNumOfResults",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findCandidatesForGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getCompleteCandidatesForGroup(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getCompleteCandidatesForVo(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMyVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRichAdminsForVo(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==o)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("vo",t)),null!=e&&(c=c.set("role",e)),i&&i.forEach(t=>{c=c.append("specificAttributes",t)}),null!=s&&(c=c.set("allUserAttributes",s)),null!=o&&(c=c.set("onlyDirectAdmins",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}getVoAdminGroups(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("role",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAdminUsers(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("role",e)),null!=i&&(r=r.set("onlyDirectAdmins",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getVoBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoBansForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoByShortName(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("shortName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoMembersCountsByStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeSponsorRoleFromGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSponsorRoleFromUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}setVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const k={WRITE:"WRITE",WRITEVO:"WRITE_VO",WRITEPUBLIC:"WRITE_PUBLIC",READ:"READ",READVO:"READ_VO",READPUBLIC:"READ_PUBLIC"};var x,R,I,O;!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(x||(x={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(R||(R={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(I||(I={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(O||(O={}));const P={HTMLCOMMENT:"HTML_COMMENT",SUBMITBUTTON:"SUBMIT_BUTTON",AUTOSUBMITBUTTON:"AUTO_SUBMIT_BUTTON",FROMFEDERATIONSHOW:"FROM_FEDERATION_SHOW",FROMFEDERATIONHIDDEN:"FROM_FEDERATION_HIDDEN",PASSWORD:"PASSWORD",VALIDATEDEMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDEDGROUPAPPLICATION:"EMBEDDED_GROUP_APPLICATION"};let D=(()=>{class t{constructor(t,e){if(t)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!e)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:t,providers:[{provide:a,useFactory:e}]}}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(t,12),o.LFG(n.eN,8))},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[c,u,l,h,d,p,g,f,m,b,w,_,y,A,v,T,C,S,E],imports:[[]]}),t})()},22280:function(t,e,i){"use strict";i.d(e,{r5:function(){return a.r},d4:function(){return o},dp:function(){return r.d}});var n=i(61511),s=i(31572);let o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez]]}),t})();var r=i(22196),a=(i(83787),i(95603));i(91322),i(63720),i(1157),i(48853)},83787:function(t,e,i){"use strict";i.d(e,{a:function(){return r}});var n=i(88426),s=i(31572),o=i(48160);let r=(()=>{class t{constructor(t,e){this.translate=t,this.storage=e}transform(t,e="en"){const i=this.storage.get("custom_labels");if(i){const n=Object.keys(i);for(const i of n){const n=this.storage.get("custom_labels",i);if(n.label===t)return n[e]}}return t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.sK,16),s.Y36(n.d6,16))},t.\u0275pipe=s.Yjl({name:"customTranslate",type:t,pure:!0}),t})()},95603:function(t,e,i){"use strict";i.d(e,{r:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t,e){return e?`/organizations/${t.voId}/resources/${t.id}`:`/facilities/${t.facilityId}/resources/${t.id}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"getResourceRoute",type:t,pure:!0}),t})()},51392:function(t,e,i){"use strict";i.d(e,{F:function(){return r}});var n=i(84140),s=i(67004),o=i(31572);let r=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const e=(0,n.IL)(t.attributes,s.r.GROUP_SYNC_ENABLED),i=(0,n.IL)(t.attributes,s.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const o=i.value;if("true"===e.value){const e=(0,n.IL)(t.attributes,s.r.GROUP_LAST_SYNC_STATE),i=(0,n.IL)(t.attributes,s.r.GROUP_LAST_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"red":null!==r&&r.trim().length>0?"green":""}if(o){const e=(0,n.IL)(t.attributes,s.r.GROUP_LAST_STRUCTURE_SYNC_STATE),i=(0,n.IL)(t.attributes,s.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"red":null!==r&&r.trim().length>0?"green":""}return""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncIconColor",type:t,pure:!0}),t})()},52984:function(t,e,i){"use strict";i.d(e,{J:function(){return r}});var n=i(67004),s=i(84140),o=i(31572);let r=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"";const e=(0,s.IL)(t.attributes,n.r.GROUP_SYNC_ENABLED),i=(0,s.IL)(t.attributes,n.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"";const o=i.value;if("true"===e.value){const e=(0,s.IL)(t.attributes,n.r.GROUP_LAST_SYNC_STATE),i=(0,s.IL)(t.attributes,n.r.GROUP_LAST_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"sync_problem":(null!==r&&r.trim(),"sync")}if(o){const e=(0,s.IL)(t.attributes,n.r.GROUP_LAST_STRUCTURE_SYNC_STATE),i=(0,s.IL)(t.attributes,n.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"sync_problem":(null!==r&&r.trim(),"sync")}return"sync_disabled"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncIcon",type:t,pure:!0}),t})()},44385:function(t,e,i){"use strict";i.d(e,{r:function(){return r}});var n=i(84140),s=i(67004),o=i(31572);let r=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const e=(0,n.IL)(t.attributes,s.r.GROUP_SYNC_ENABLED),i=(0,n.IL)(t.attributes,s.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const o=i.value;if("true"===e.value){const e=(0,n.IL)(t.attributes,s.r.GROUP_LAST_SYNC_STATE),i=(0,n.IL)(t.attributes,s.r.GROUP_LAST_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==r&&r.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(o){const e=(0,n.IL)(t.attributes,s.r.GROUP_LAST_STRUCTURE_SYNC_STATE),i=(0,n.IL)(t.attributes,s.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==r&&r.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncToolTip",type:t,pure:!0}),t})()},63720:function(t,e,i){"use strict";i.d(e,{D:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.g$)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"memberEmail",type:t,pure:!0}),t})()},1157:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.lt)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"memberLogins",type:t,pure:!0}),t})()},99197:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.Gw)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"memberOrganization",type:t,pure:!0}),t})()},74842:function(t,e,i){"use strict";i.d(e,{u:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){switch(t){case"VALID":return"green";case"INVALID":return"red";default:return""}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatusIconColor",type:t,pure:!0}),t})()},37043:function(t,e,i){"use strict";i.d(e,{f:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){switch(t){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatusIcon",type:t,pure:!0}),t})()},91322:function(t,e,i){"use strict";i.d(e,{i:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t,e){let i=null,s=null;null!==t.memberAttributes&&(i=t.memberAttributes.find(t=>"membershipExpiration"===t.friendlyName),s=t.memberAttributes.find(t=>"groupMembershipExpiration"===t.friendlyName));let o="";return o=e?`\n Group status: ${(0,n.Oe)(t.groupStatus)}, Expiration: ${s&&s.value?s.value:"never"}`:`Status: ${(0,n.Oe)(t.status,t.groupStatus)}\n Vo status: ${(0,n.Oe)(t.status)}, Expiration: ${i&&i.value?i.value:"never"}`,o}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"memberStatusTooltip",type:t,pure:!0}),t})()},58506:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var n=i(61511),s=i(31572);let o=(()=>{class t{transform(t,e){return"voRules"===t?"Vo rules":"groupRules"===t?"Group rules":t&&"never"!==t.toLowerCase()?(0,n.p6)(t.replace(" ","T"),"d.M.yyyy "+(e?"H:mm:ss":""),"en"):"never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"parseDate",type:t,pure:!0}),t})()},48853:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.te)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"technicalOwners",type:t,pure:!0}),t})()},22196:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"userFullName",type:t,pure:!0}),t})()},88426:function(t,e,i){"use strict";i.d(e,{yC:function(){return R},F5:function(){return k},sM:function(){return P},e8:function(){return w},EB:function(){return T},ly:function(){return L},xw:function(){return D},x4:function(){return r},v0:function(){return y},Ct:function(){return Z},SZ:function(){return I},V6:function(){return x},d6:function(){return b},UA:function(){return M}});var n=i(33642),s=i(14732),o=i(31572);let r=(()=>{class t{constructor(t){this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(t){this.principal=t,this.initData(t)}setPerunPolicies(t){this.perunPolicies=t}getPerunPolicies(){return this.perunPolicies}isAuthorized(t,e){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(t);let n=[];for(const o of i)n=n.concat(o.perunRoles);const s=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,s)}resolveAuthorization(t,e){for(const i of t){let t=!0;for(const n of Object.keys(i)){const s=i[n];if(null===s)this.principalRoles.has(n)||(t=!1);else if(e[s]){for(const i of e[s])if(!this.principalHasRole(n,s,i)){t=!1;break}}else t=!1;if(!t)break}if(t)return!0}return!1}fetchAllRelatedObjects(t){const e={};for(const i of t){let t=i.beanName;switch(i.beanName.startsWith("Rich")&&(t=i.beanName.substring(4)),e[t]?e[t].push(i.id):e[t]=[i.id],t){case"Member":e.User?e.User.push(i.userId):e.User=[i.userId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Group":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Resource":e.Facility?e.Facility.push(i.facilityId):e.Facility=[i.facilityId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"ResourceTag":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId]}}return e}principalHasRole(t,e,i){let n=e;return e.startsWith("Rich")&&(n=e.substring(4)),!(!this.principal.roles[t]||!this.principal.roles[t][n])&&this.principal.roles[t][n].includes(Number(i.toString()))}fetchPolicyWithAllIncludedPolicies(t){const e=new Map;let i=[];for(i.push(t);0!==i.length;){const n=i.shift();if(e.has(n)){console.log("Policy {} creates a cycle in the included policies of the policy {}",n,t);continue}const s=this.getPerunPolicy(n);if(!s)return[];e.set(n,s),i=i.concat(s.includePolicies)}const n=[];for(const s of e.values())n.push(s);return n}getPerunPolicy(t){for(const e of this.perunPolicies)if(e.policyName===t)return e;return console.log("policy with name"+t+"was not found"),null}canManageFacilities(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.PERUNOBSERVER,s.u.FACILITYADMIN,s.u.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(s.u.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.VOADMIN)}isThisVoAdminOrObserver(t){return this.editableVos.includes(t)||this.observableVos.includes(t)||this.hasAtLeastOne(s.u.PERUNADMIN,s.u.PERUNOBSERVER)}isThisVoAdmin(t){return this.editableVos.includes(t)||this.principalRoles.has(s.u.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(s.u.SPONSOR)}isThisGroupAdmin(t){return this.editableGroups.includes(t)||this.principalRoles.has(s.u.PERUNADMIN)}isGroupAdminInThisVo(t){return this.hasGroupInTheseVos.includes(t)}isFacilityAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.FACILITYADMIN)}isThisFacilityAdmin(t){return this.editableFacilities.includes(t)||this.principalRoles.has(s.u.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(s.u.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.VOOBSERVER,s.u.PERUNOBSERVER)}isThisVoObserver(t){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.PERUNOBSERVER)||this.observableVos.includes(t)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((t,e)=>{this.authzSevice.getAllRolesManagementRules().subscribe(e=>{this.allRolesManagementRules=e,t()},t=>e(t))})}assignAvailableRoles(t,e){this.allRolesManagementRules.forEach(i=>{i.primaryObject===e&&t.push(i.roleName)}),t.sort(),"Vo"===e&&this.voCustomSort(t)}isManagerPagePrivileged(t){const e=[];let i=t.beanName;i.startsWith("Rich")&&(i=i.substr(4)),this.assignAvailableRoles(e,i);const n=new Map;this.getRolesAuthorization(e,t,n);for(const s of n.values())if(s.readAuth||s.manageAuth)return!0;return!1}getRolesAuthorization(t,e,i){for(const n of t){let t=[],s=[],o=[];for(const e of this.allRolesManagementRules)if(e.roleName===n){t=t.concat(e.privilegedRolesToRead),s=s.concat(e.privilegedRolesToManage);for(const t of Object.keys(e.entitiesToManage))o="User"===t?[t].concat(o):o.concat(t);break}const r=this.fetchAllRelatedObjects([e]),a=this.resolveAuthorization(t,r),c=this.resolveAuthorization(s,r);i.set(n,{readAuth:a,manageAuth:c,modes:o})}}voCustomSort(t){for(let e=0;e{class t{constructor(t){this.dialogRef=t}close(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(p.so))},t.\u0275cmp=o.Xpm({type:t,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(t,e){1&t&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.TgZ(3,"div",1),o._uU(4),o.ALo(5,"translate"),o.qZA(),o.TgZ(6,"div",2),o.TgZ(7,"div",3),o.TgZ(8,"button",4),o.NdJ("click",function(){return e.close()}),o._uU(9),o.ALo(10,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),o.xp6(3),o.hij(" ",o.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),o.xp6(5),o.hij(" ",o.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[p.uh,p.xY,p.H8,g.lW],pipes:[f.X$],styles:[""]}),t})(),b=(()=>{class t{constructor(){this.branding=""}setInstanceConfig(t){this.instanceConfig=t}setDefaultConfig(t){this.defaultConfig=t}setPerunPrincipal(t){this.principal=t}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(t){this.initialPageId=t}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(t){this.branding=t}skipOidc(){return this.get("skip_oidc")}get(...t){let e;if(""!==this.branding){const i=this.instanceConfig.brandings[this.branding];for(let n=0;n{class t{constructor(t,e,i,n){this.injector=t,this.store=e,this.dialog=i,this.route=n,this.userSet=new o.vpe,this.user=null,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(h.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(t=>{t.idpFilter&&(this.filterShortname=t.idpFilter)})}getClientSettings(){const t=this.setIdpFilter(),e={authority:this.store.get("oidc_client","oauth_authority"),client_id:this.store.get("oidc_client","oauth_client_id"),redirect_uri:this.store.get("oidc_client","oauth_redirect_uri"),post_logout_redirect_uri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),response_type:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),filterProtocolClaims:!0,loadUserInfo:this.store.get("oidc_client","oauth_load_user_info"),automaticSilentRenew:!0,silent_redirect_uri:this.store.get("oidc_client","oauth_silent_redirect_uri")};return t&&(e.extraQueryParams={acr_values:t}),e}setIdpFilter(){const t=location.search.substr(1).split("&");this.filterShortname=null;const e=this.store.get("oidc_client","filters");if(!e)return null;let i=null;return t.forEach(t=>{const n=t.split("=");"idpFilter"===n[0]&&e[n[1]]&&(this.filterShortname=n[1],i=e[n[1]])}),e.default&&!i?(this.filterShortname="default",e.default):i}getUserManager(){return this.manager}startIdpFilterKeeper(){this.router.events.pipe((0,u.h)(t=>t instanceof h.m2)).subscribe(()=>{const t={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===t.idpFilter?{}:t,queryParamsHandling:"merge",replaceUrl:!0})})}loadConfigData(){this.manager=new a.UserManager(this.getClientSettings()),this.setUser(),this.manager.events.addUserLoaded(t=>{this.user=t}),this.manager.events.addAccessTokenExpired(()=>{const t=(0,d.kZ)();t.width="450px",this.dialog.open(m,t).afterClosed().subscribe(()=>{this.startAuthentication().then(()=>{})})})}verifyAuth(){const t=location.pathname,e=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(t,e)}logout(){this.manager.signoutRedirect().catch(function(t){console.log(t)})}isLoggedInPromise(){return(0,c.D)(this.manager.getUser()).pipe((0,l.U)(t=>!!t&&!t.expired))}isLoggedIn(){return null!=this.user&&!this.user.expired}getClaims(){return this.user.profile}getAuthorizationHeaderValue(){return this.user?"Bearer "+this.user.access_token:""}startAuthentication(){return this.manager.signinRedirect()}completeAuthentication(){return this.manager.signinRedirectCallback().then(t=>{this.user=t,this.userSet.emit(this.user)})}startSigninMainWindow(){this.manager.signinRedirect({data:this.redirectUrl}).then(function(){console.log("signinRedirect done")}).catch(function(t){console.log(t)})}setUser(){this.manager.getUser().then(t=>{this.user=t})}isPotentiallyValidPath(t){const e=["/home","/organizations","/facilities","/myProfile","/admin","/login"];if("/"===t)return!0;for(const i of e)if(t.startsWith(i))return!0;return!1}verifyAuthentication(t,e){return this.isLoggedInPromise().toPromise().then(i=>!!i||(this.isPotentiallyValidPath(t)?(sessionStorage.setItem("auth:redirect",t),sessionStorage.setItem("auth:queryParams",e),!1):new Promise((t,e)=>e("Invalid path"))))}handleAuthCallback(){return this.completeAuthentication().then(()=>!0)}redirectToOriginDestination(){const t=sessionStorage.getItem("mfa_route");if(t)return this.router.navigate([t],{replaceUrl:!0});let e=sessionStorage.getItem("auth:redirect");const i=sessionStorage.getItem("auth:queryParams");let n=[];i&&(n=i.split("&"));const s={};return n.forEach(t=>{const e=t.split("=");s[e[0]]=e[1]}),e&&"/login"!==e||(e="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),s.idpFilter&&(this.filterShortname=s.idpFilter),this.router.navigate([e],{queryParams:s,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(o.zs3),o.LFG(b),o.LFG(p.uw),o.LFG(h.gz))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_=(()=>{class t{constructor(t){this.dialogRef=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(p.so))},t.\u0275cmp=o.Xpm({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(o.TgZ(0,"h2",0),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE")))},directives:[p.xY],pipes:[f.X$],styles:[""]}),t})(),y=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.storeService=e,this.authResolver=i,this.authzService=n,this.dialog=s,this.router=o,this.loginScreenShown=!1}setLoginScreen(t){this.loginScreenShown=t}isLoginScreenShown(){return this.loginScreenShown}verifyAuth(){return this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(t=>t(!0)):this.authService.verifyAuth()}startAuth(){return this.authService.startAuthentication()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(t=>{if(null===t.user){const t=(0,d.kZ)();this.dialog.open(_,t)}else this.storeService.setPerunPrincipal(t),this.authResolver.init(t)})}handleAuthStart(){return this.storeService.get("auto_auth_redirect")?this.startAuth().then(()=>new Promise(()=>{})):(this.setLoginScreen(!0),this.router.navigate(["login"]).then(()=>null))}redirectToOriginDestination(){return this.authService.redirectToOriginDestination()}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(w),o.LFG(b),o.LFG(r),o.LFG(n.Ct),o.LFG(p.uw),o.LFG(h.F0))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var A=i(43691),v=i(30269);let T=(()=>{class t{constructor(t,e){this.matIconRegistry=t,this.domSanitizer=e,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/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/settings1-blue.svg",name:"settings-blue"},{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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(t=>{this.matIconRegistry.addSvgIcon(t.name,this.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(A.jv),o.LFG(v.H7))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})();var C=i(29063),S=i(31225),E=i(66599);let k=(()=>{class t{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const t=this.handleNextError;return this.handleNextError=!0,t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),x=(()=>{class t{constructor(t){this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new o.vpe}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(t,e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}showError(t,e,i,n,s){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:s,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(f.sK))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),R=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.apiRequestConfiguration=e,this.notificator=i,this.store=n,this.dialog=s,this.initAuthService=o}intercept(t,e){const i=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==t.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()){const t=(0,d.kZ)();t.width="450px",this.dialog.open(m,t).afterClosed().subscribe(()=>{this.authService.startAuthentication().then(()=>{})})}t=t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});const n=this.apiRequestConfiguration.shouldHandleError(),s="POST"===t.method&&!this.store.skipOidc();return e.handle(t).pipe((0,E.b)(t=>{t instanceof C.Zn&&s&&this.initAuthService.loadPrincipal()},e=>{const i=this.formatErrors(e,t);return void 0===i?(0,S._)(e):n?void this.notificator.showRPCError(i):(0,S._)(i)}))}formatErrors(t,e){let i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.urlWithParams=e.urlWithParams,i.call=e.url,i.payload=e.body,i}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(w),o.LFG(k),o.LFG(x),o.LFG(b),o.LFG(p.uw),o.LFG(y))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{constructor(){this.notificationData=[],this.newNotificationsCount=0}storeNotification(t){this.newNotificationsCount++,this.notificationData.push(t)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var O=i(47727);let P=(()=>{class t{constructor(t,e,i,n){this.http=t,this.notificator=e,this.authService=i,this.storeService=n}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}formatErrors(t,e,i,n){const s=t.error;return s.call=e,s.payload=i,n&&this.notificator.showRPCError(t.error),(0,S._)(s)}getHeaders(){let t=new C.WM;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue()),t}get(t,e=new C.LE,i=!0){const n=`${this.getApiUrl()}${t}`;return this.http.get(n,{headers:this.getHeaders()}).pipe((0,O.K)(t=>this.formatErrors(t,n,null,i)))}put(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);return this.http.put(n,s,{headers:this.getHeaders()}).pipe((0,O.K)(t=>this.formatErrors(t,n,s,i)))}post(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(n,s,{headers:o}).pipe((0,O.K)(t=>this.formatErrors(t,n,s,i)))}delete(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe((0,O.K)(t=>this.formatErrors(t,i,null,e)))}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(C.eN),o.LFG(x),o.LFG(w),o.LFG(b))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),D=(()=>{class t{constructor(t){this.router=t,this.lastState="forward",this.history=new Set,t.events.subscribe(t=>{t instanceof h.OD&&("popstate"===t.navigationTrigger?this.history.has(t.restoredState.navigationId)?(this.lastState="back",this.history.delete(t.restoredState.navigationId)):(this.lastState="forward",this.history.add(t.id)):(this.history.add(t.id),this.lastState="forward"))})}forceNavigate(t,e){if(null===t)return;let i="";t.forEach(t=>i+="/"+t),i.length>0&&(i=i.substring(1)),void 0===e&&(e={}),e.queryParams={redirectTo:i},this.router.navigate(["redirect"],e)}getLastState(){return this.lastState}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(h.F0))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),M=(()=>{class t{constructor(){}isAllSelectedWithDisabledCheckbox(t,e,i,n,s,o,r,a){return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=s*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?o.data.length:o.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),o.sortData(o.filteredData,r).forEach(t=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?c(t)&&this.pageStart<=this.pageIterator&&this.pageIterator{class t{constructor(t){this.membersService=t}getMembers(t,e,i,n,s,o,r,a,c,u){return this.membersService.getMembersPage({vo:t,attrNames:e,query:{pageSize:s,offset:n*s,order:i,sortColumn:o,statuses:r,searchString:a,groupId:c,groupStatuses:u}})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.uq))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var N=i(78512),z=i(40878),F=i(11520);class Z{constructor(t,e){this.dynamicPaginatingService=t,this.authzService=e,this.membersSubject=new N.X([]),this.loadingSubject=new N.X(!1),this.loading$=this.loadingSubject.asObservable(),this.allMemberCount=0,this.routeAuth=!0}loadMembers(t,e,i,n,s,o,r,a,c,u){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const l=this.latestQueryTime;this.dynamicPaginatingService.getMembers(t,e,i,n,s,o,r,a,c,u).pipe((0,O.K)(()=>(0,z.of)([])),(0,F.x)(()=>this.loadingSubject.next(!1))).subscribe(e=>{if(this.latestQueryTime<=l){const i=e.data;null!==i&&0!==i.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:t},i[0]])),this.allMemberCount=e.totalCount,this.membersSubject.next(e.data)}})}connect(){return this.membersSubject.asObservable()}disconnect(){this.membersSubject.complete(),this.loadingSubject.complete()}getData(){return this.membersSubject.value}}},67004:function(t,e,i){"use strict";i.d(e,{r:function(){return n}});let n=(()=>{class t{}return t.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",t.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",t.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",t.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",t.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",t.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",t.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",t.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",t.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",t.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",t.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",t.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",t.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",t.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",t.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",t.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",t.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",t.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",t.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",t.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",t.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",t})()},84140:function(t,e,i){"use strict";i.d(e,{dN:function(){return p},Je:function(){return l},f7:function(){return h.f7},l9:function(){return d.l},sF:function(){return h.sF},XI:function(){return h.XI},aC:function(){return h.aC},fx:function(){return h.fx},dv:function(){return h.dv},i5:function(){return h.i5},Sd:function(){return h.Sd},pR:function(){return h.pR},ys:function(){return h.ys},O6:function(){return h.O6},mH:function(){return h.mH},MX:function(){return h.MX},oU:function(){return h.oU},IL:function(){return h.IL},Jc:function(){return h.Jc},Xn:function(){return h.Xn},kZ:function(){return h.kZ},v$:function(){return h.v$},x2:function(){return h.x2},vL:function(){return h.vL},Hm:function(){return h.Hm},Cz:function(){return h.Cz},sG:function(){return h.sG},g$:function(){return h.g$},bD:function(){return h.bD},lt:function(){return h.lt},Oe:function(){return h.Oe},hu:function(){return h.hu},Gw:function(){return h.Gw},te:function(){return h.te},kN:function(){return h.kN},$0:function(){return h.$0},OV:function(){return h.OV}});var n=i(73005),s=i(8055),o=i(43691),r=i(15980),a=i(48160),c=i(61511),u=i(31572);let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({providers:[],imports:[[n.TU,s.Tx,o.Ps,r.ot,a.aw,c.ez]]}),t})();var h=i(38457),d=i(82819);class p{static passwordMatchValidator(t){t.get("passwordCtrl").value!==t.get("passwordAgainCtrl").value&&t.get("passwordAgainCtrl").setErrors({noPasswordMatch:!0})}static patternValidator(t){return e=>{if(!e.value)return null;let i=0;for(const n of t)i+=n.test(e.value)?1:0;return i>=3?null:{isWeak:!0}}}}},38457:function(t,e,i){"use strict";i.d(e,{f7:function(){return a},g$:function(){return c},kN:function(){return u},$0:function(){return l},lt:function(){return h},bD:function(){return d},hu:function(){return p},Cz:function(){return g},te:function(){return f},ys:function(){return m},vL:function(){return b},sF:function(){return w},XI:function(){return _},OV:function(){return y},MX:function(){return A},oU:function(){return v},IL:function(){return T},Jc:function(){return C},v$:function(){return S},i5:function(){return E},kZ:function(){return k},dv:function(){return x},Hm:function(){return R},Oe:function(){return I},Gw:function(){return O},x2:function(){return P},sG:function(){return D},pR:function(){return L},Sd:function(){return N},Xn:function(){return z},O6:function(){return F},aC:function(){return Z},fx:function(){return B},mH:function(){return q}});var n=i(64762),s=i(84608),o=i(61511),r=i(82051);const a=[5,10,25,100];function c(t){let e="";return t&&null!==t.userAttributes&&(t.userAttributes.forEach(t=>{"preferredMail"===t.friendlyName&&(e=t.value)}),e&&0===e.length&&null!==t.memberAttributes&&t.memberAttributes.forEach(t=>{"mail"===t.friendlyName&&null!==t.value&&(e=t.value)})),e}function u(t){let e="";return t&&t.userAttributes.forEach(t=>{"preferredMail"===t.friendlyName&&(e=t.value)}),e}function l(t){let e="";return t&&t.userAttributes&&t.userAttributes.filter(t=>"login-namespace"===t.baseFriendlyName).filter(t=>null!==t.value).forEach(t=>{e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function h(t){let e="";return t&&t.userAttributes&&t.userAttributes.filter(t=>"login-namespace"===t.baseFriendlyName).filter(t=>null!==t.value).forEach(t=>{e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function d(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function p(t){let e="";return null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function g(t){let e="";return t.split(/(?=[A-Z])/g).forEach(t=>{e=e.concat(t.toLowerCase()),e=e.concat(" ")}),e=e.charAt(0).toUpperCase()+e.slice(1,e.length-1),e}function f(t){let e="";for(const i of t)"technical"===i.type&&(e+=i.name+", ");return e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function m(t,e){return(0,n.mG)(this,void 0,void 0,function*(){var i;yield(i=t,new Promise(t=>setTimeout(t,i))),e()})}function b(t){return JSON.parse(localStorage.getItem(t))||[]}function w(t,e){if(null===localStorage.getItem(t)){const i=[];i.unshift(e.id),localStorage.setItem(t,JSON.stringify(i))}else{const i=JSON.parse(localStorage.getItem(t)),n=function(t,e){for(let i=0;i0&&i.splice(n,1),0!==n&&i.unshift(e.id),i.length>5&&i.pop(),localStorage.setItem(t,JSON.stringify(i))}}function _(t){if(null===localStorage.getItem("recent")){let e;e="Group"===t.beanName?[{id:t.id,name:t.shortName,type:t.beanName,voId:t.voId}]:[{id:t.id,name:t.name,type:t.beanName,voId:t.voId}],localStorage.setItem("recent",JSON.stringify(e))}else{const e=JSON.parse(localStorage.getItem("recent"));let i;i="Group"===t.beanName?{id:t.id,name:t.shortName,fullName:t.name,type:t.beanName,voId:t.voId}:{id:t.id,name:t.name,type:t.beanName,voId:t.voId};const n=function(t,e){for(let i=0;i0&&e.splice(n,1),0!==n&&e.unshift(i),e.length>5&&e.pop(),localStorage.setItem("recent",JSON.stringify(e))}}function y(t){let e="";return t&&t.userAttributes.forEach(t=>{"organization"===t.friendlyName&&(e=t.value)}),e}function A(t){return t.filter(t=>!t.namespace.includes("def:core"))}function v(t,e){const i=e.find(e=>e.id===t);return i?i.parentGroupId?v(i.parentGroupId,e).concat(i):[i]:[]}function T(t,e){for(const i of t)if(i.namespace+":"+i.friendlyName===e)return i;return null}function C(t){return null!=t.attributes["urn:perun:member:attribute-def:def:mail"]?t.attributes["urn:perun:member:attribute-def:def:mail"]:null!=t.attributes["urn:perun:user:attribute-def:def:preferredMail"]?t.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function S(t){return t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function(t){if(t.includes("/CN=")){const i=t.split("/");for(const t in i)if(t.startsWith("CN="))return e=t.substring(3),decodeURIComponent(e.replace(/\\x/g,"%"))}var e;return t}(t.userExtSource.extSource.name):t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function(t){switch(t){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":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":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"@mojeid.extidp.cesnet.cz":return"MojeID";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@elixir-europe.org":return"Elixir Europe";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return t}}(t.userExtSource.extSource.name):t.userExtSource.extSource.name}function E(t=["en","cs"]){const e={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{}};return t.forEach(t=>{e.message[t]={locale:t,subject:"",text:""}}),e}function k(){const t=new s.vA;return t.disableClose=!0,t.autoFocus=!1,t}function x(t){const e={applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null};for(const i of t)e.i18n[i]={locale:i,errorMessage:"",help:"",label:"",options:""};return e}function R(t){return"virt"===t.namespace.split(":")[4]}function I(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?t:"ACTIVE"}function O(t){let e="";return t&&null!==t.memberAttributes&&(t.memberAttributes.forEach(t=>{"organization"===t.friendlyName&&null!==t.value&&(e=t.value)}),0===e.length&&null!==t.userAttributes&&t.userAttributes.forEach(t=>{"organization"===t.friendlyName&&(e=t.value)})),e}function P(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName);return e&&e.value?e.value:"Never"}function D(t){return t&&"never"!==t.toLowerCase()?(0,o.p6)(t,"d.M.yyyy","en"):t}const M=new Intl.Collator("cs",{numeric:!0});function L(t,e,i,n){const s=e.active,o=e.direction;return s&&""!==o?t.sort((t,e)=>{const r=i(t,s,n),a=i(e,s,n);return M.compare(r,a)*("asc"===o?1:-1)}):t}function N(t,e,i,n,s,o){e=e.toLowerCase();let r="";return i.forEach(e=>{r+=";"+n(t,e,s)}),o&&(r+=";"+n(t,"uuid",s)),-1!==r.toLowerCase().indexOf(e)}function z(t,e,i,n){const s=[],o=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(t=>!o.includes(t)),t.forEach(t=>{const o={};e.forEach(e=>{var s;o[e]=(null!==(s=i(t,e,n))&&void 0!==s?s:"").split('"').join("''").trim()}),s.push(o)}),s}function F(t,e="csv",i="export"){switch(e){case"csv":{const n=(t,e)=>null===e?"":e,s=Object.keys(t[0]),o=t.map(t=>s.map(e=>JSON.stringify(t[e],n)).join(","));o.unshift(s.join(",").split(" ").join("_").split('"').join("''"));const a=o.join("\r\n"),c=new Blob([a],{type:"text/csv"});(0,r.saveAs)(c,`${i}.${e}`)}}}function Z(t,e){return t.name.toLowerCase()>e.name.toLowerCase()?1:t.name.toLowerCase()===e.name.toLowerCase()?0:-1}function B(t,e){var i,n,s,o;let r,a;return t.user?(r=t.user.lastName?t.user.lastName:null!==(i=t.user.firstName)&&void 0!==i?i:"",a=e.user.lastName?e.user.lastName:null!==(n=e.user.firstName)&&void 0!==n?n:""):(r=t.lastName?t.lastName:null!==(s=t.firstName)&&void 0!==s?s:"",a=e.lastName?e.lastName:null!==(o=e.firstName)&&void 0!==o?o:""),r>a?1:r===a?0:-1}function q(t,e,i=[]){t.enable(),t.clearValidators(),t.clearAsyncValidators(),t.setValidators(e),t.setAsyncValidators(i),t.updateValueAndValidity()}},82819:function(t,e,i){"use strict";i.d(e,{l:function(){return g}});var n=i(31572),s=i(73005),o=i(38457),r=i(61511),a=i(15980),c=i(8055),u=i(43691),l=i(48160);let h=(()=>{class t{constructor(){this.exportData=new n.vpe}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"button",1),n.TgZ(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA(),n.qZA(),n.TgZ(4,"mat-menu",null,2),n.TgZ(6,"button",3),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.qZA(),n.TgZ(9,"mat-menu",null,4),n.TgZ(11,"button",5),n.NdJ("click",function(){return e.exportData.emit("csv")}),n._uU(12,"Csv"),n.qZA(),n.qZA(),n.qZA()),2&t){const t=n.MAs(5),e=n.MAs(10);n.xp6(1),n.Q6J("matMenuTriggerFor",t),n.xp6(5),n.Q6J("matMenuTriggerFor",e),n.xp6(1),n.hij(" ",n.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[a.lW,c.p6,u.Hw,c.VK,c.OP],pipes:[l.X$],styles:[""]}),t})();function d(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-table-options",6),n.NdJ("exportData",function(e){return n.CHM(t),n.oxw().exportData.emit(e)}),n.qZA()}}const p=["*"];let g=(()=>{class t{constructor(){this.hideExport=!1,this.page=new n.vpe,this.pageSizeOptions=o.f7,this.pageSize=5,this.dataLength=0,this.exportData=new n.vpe}set matPaginator(t){this.paginator=t}pageChanged(t){this.paginator.pageSize=t.pageSize,this.paginator.pageIndex=t.pageIndex,this.page.emit(t),this.paginator.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(t,e){if(1&t&&n.Gf(s.NW,7),2&t){let t;n.iGM(t=n.CRH())&&(e.matPaginator=t.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",pageSize:"pageSize",dataLength:"dataLength"},outputs:{page:"page",exportData:"exportData"},ngContentSelectors:p,decls:7,vars:8,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.TgZ(2,"mat-paginator",2),n.NdJ("page",function(t){return e.page.emit(t)}),n.qZA(),n.YNc(3,d,1,0,"perun-web-apps-table-options",3),n.qZA(),n.TgZ(4,"div",4),n.Hsn(5),n.qZA(),n.TgZ(6,"mat-paginator",5),n.NdJ("page",function(t){return e.pageChanged(t)}),n.qZA(),n.qZA()),2&t&&(n.xp6(2),n.Q6J("length",e.dataLength)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("ngIf",!e.hideExport),n.xp6(3),n.Q6J("length",e.paginator.length)("pageIndex",e.paginator.pageIndex)("pageSizeOptions",e.paginator.pageSizeOptions)("pageSize",e.paginator.pageSize))},directives:[s.NW,r.O5,h],styles:[""]}),t})()},39571:function(t,e,i){"use strict";i.d(e,{w:function(){return c}});var n=i(31572),s=i(61511),o=i(43691);function r(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," error "),n.qZA())}const a=["*"];let c=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:a,decls:3,vars:7,consts:[[1,"perun-alert","d-flex","align-items-center"],["class","perun-warn-alert-icon",4,"ngIf"],[1,"perun-warn-alert-icon"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.YNc(1,r,2,0,"mat-icon",1),n.Hsn(2),n.qZA()),2&t&&(n.ekj("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("info-alert","info"===e.alert_type),n.xp6(1),n.Q6J("ngIf","error"!==e.alert_type))},directives:[s.O5,o.Hw],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%], .perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-warn-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{color:#000;background-color:#fae2e2;border-left:4px solid;border-color:#d32f2f}"]}),t})()},22727:function(t,e,i){"use strict";i.d(e,{r:function(){return r}});var n=i(43691),s=i(61511),o=i(31572);let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.Ps,s.ez]]}),t})()},10709:function(t,e,i){"use strict";i.d(e,{l3:function(){return o},_j:function(){return n},LC:function(){return s},ZN:function(){return b},jt:function(){return a},pV:function(){return g},ru:function(){return c},F4:function(){return d},IO:function(){return f},vP:function(){return u},SB:function(){return h},oB:function(){return l},eR:function(){return p},X$:function(){return r},ZE:function(){return w},k1:function(){return _}});class n{}class s{}const o="*";function r(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function c(t,e=null){return{type:3,steps:t,options:e}}function u(t,e=null){return{type:2,steps:t,options:e}}function l(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function d(t){return{type:5,steps:t}}function p(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function g(t=null){return{type:9,options:t}}function f(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function m(t){Promise.resolve(null).then(t)}class b{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class w{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?m(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const _="!"},24621:function(t,e,i){"use strict";i.d(e,{rt:function(){return G},s1:function(){return S},$s:function(){return A},Qr:function(){return N},kH:function(){return H},mK:function(){return P},Em:function(){return E},tE:function(){return q},qV:function(){return O},qm:function(){return j},Kd:function(){return L},X6:function(){return z},yG:function(){return F}});var n=i(61511),s=i(31572),o=i(55959),r=i(87570),a=i(40878),c=i(75842),u=i(66599),l=i(47701),h=i(43835),d=i(79996),p=i(90611),g=i(19861),f=i(11353),m=i(36337);function b(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let w=0;const _=new Map;let y=null,A=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=v(e,i);"string"!=typeof e?(T(e),_.set(n,{messageElement:e,referenceCount:0})):_.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=v(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=_.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}y&&0===y.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=_.get(e);!function(t,e,i){const n=b(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute("cdk-describedby-host",""),i.referenceCount++}_removeMessageReference(t,e){const i=_.get(e);i.referenceCount--,function(t,e,i){const n=b(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const i=b(t,"aria-describedby"),n=_.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})();function v(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function T(t){t.id||(t.id="cdk-describedby-message-"+w++)}class C{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new o.xQ,this._typeaheadSubscription=r.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new o.xQ,this.change=new o.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,u.b)(t=>this._pressedLetters.push(t)),(0,l.b)(t),(0,h.h)(()=>this._pressedLetters.length>0),(0,d.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&i){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&i){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||(0,c.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.A&&e<=c.Z||e>=c.xE&&e<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class S extends C{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class E extends C{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let k=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===R(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=R(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||x(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(f.t4))},token:t,providedIn:"root"}),t})();function x(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function R(t){if(!x(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class I{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(t)}}let O=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new I(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(k),s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(k),s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),P=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=(0,g.Ig)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=(0,g.Ig)(t)}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(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,f.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(O),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[s.TTD]}),t})();"undefined"!=typeof Element&∈const D=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),M=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let L=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(L),s.Y36(m.yq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function z(t){return 0===t.buttons}function F(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const Z=new s.OlP("cdk-focus-monitor-default-options"),B=(0,f.i$)({passive:!0,capture:!0});let q=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=z(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{F(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=U(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=U(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=(0,g.fI)(t);if(!this._platform.isBrowser||1!==i.nodeType)return(0,a.of)(null);const n=(0,f.kV)(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new o.xQ,rootNode:n};return this._elementInfo.set(i,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=(0,g.fI)(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=(0,g.fI)(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=U(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===U(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,B),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,B)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,B),t.addEventListener("mousedown",this._documentMousedownListener,B),t.addEventListener("touchstart",this._documentTouchstartListener,B),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,B),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,B),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,B),t.removeEventListener("mousedown",this._documentMousedownListener,B),t.removeEventListener("touchstart",this._documentTouchstartListener,B),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(f.t4),s.LFG(n.K0,8),s.LFG(Z,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(f.t4),s.LFG(n.K0,8),s.LFG(Z,8))},token:t,providedIn:"root"}),t})();function U(t){return t.composedPath?t.composedPath()[0]:t.target}let H=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new s.vpe}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(q))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),j=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f.t4),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(f.t4),s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),G=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(j))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[f.ud,m.Q8]]}),t})()},22526:function(t,e,i){"use strict";i.d(e,{vT:function(){return a},Is:function(){return r}});var n=i(31572),s=i(61511);const o=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,n.f3M)(s.K0)}});let r=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new n.vpe,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(o,8))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(o,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},81391:function(t,e,i){"use strict";i.d(e,{i3:function(){return c},TU:function(){return r},Iq:function(){return u}});var n=i(61511),s=i(31572);class o{constructor(t,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),n=i.style;n.position="fixed",n.top=n.opacity="0",n.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}copy(){const t=this._textarea;let e=!1;try{if(t){const i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(i){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let r=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),i=e.copy();return e.destroy(),i}beginCopy(t){return new o(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})();const a=new s.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let c=(()=>{class t{constructor(t,e,i){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new s.vpe,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}copy(t=this.attempts){if(t>1){let e=t;const i=this._clipboard.beginCopy(this.text);this._pending.add(i);const n=()=>{const t=i.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(i),i.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(n,1))};n()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(r),s.Y36(s.R0b),s.Y36(a,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})()},19861:function(t,e,i){"use strict";i.d(e,{t6:function(){return r},Eq:function(){return a},Ig:function(){return s},HM:function(){return c},fI:function(){return u},su:function(){return o},du:function(){return l}});var n=i(31572);function s(t){return null!=t&&"false"!=`${t}`}function o(t,e=0){return r(t)?Number(t):e}function r(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function c(t){return null==t?"":"string"==typeof t?t:`${t}px`}function u(t){return t instanceof n.SBq?t.nativeElement:t}function l(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}},4230:function(t,e,i){"use strict";i.d(e,{P3:function(){return u},o2:function(){return a},Ov:function(){return d},A8:function(){return p},yy:function(){return l},eX:function(){return h},k:function(){return g},Z9:function(){return c}});var n=i(4710),s=i(40878),o=i(55959),r=i(31572);class a{}function c(t){return t&&"function"==typeof t.connect}class u extends a{constructor(t){super(),this._data=t}connect(){return(0,n.b)(this._data)?this._data:(0,s.of)(this._data)}disconnect(){}}class l{applyChanges(t,e,i,n,s){t.forEachOperation((t,n,o)=>{let r,a;if(null==t.previousIndex){const s=i(t,n,o);r=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==o?(e.remove(n),a=3):(r=e.get(n),e.move(r,o),a=2);s&&s({context:null==r?void 0:r.context,operation:a,record:t})})}detach(){}}class h{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,i,n,s){t.forEachOperation((t,o,r)=>{let a,c;null==t.previousIndex?(a=this._insertView(()=>i(t,o,r),r,e,n(t)),c=a?1:0):null==r?(this._detachAndCacheView(o,e),c=3):(a=this._moveView(o,r,e,n(t)),c=2),s&&s({context:null==a?void 0:a.context,operation:c,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,i,n){const s=this._insertViewFromCache(e,i);if(s)return void(s.context.$implicit=n);const o=t();return i.createEmbeddedView(o.templateRef,o.context,o.index)}_detachAndCacheView(t,e){const i=e.detach(t);this._maybeCacheView(i,e)}_moveView(t,e,i,n){const s=i.get(t);return i.move(s,e),s.context.$implicit=n,s}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let p=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const g=new r.OlP("_ViewRepeater")},88975:function(t,e,i){"use strict";i.d(e,{Zt:function(){return pt},Wj:function(){return ut},_t:function(){return ft},bA:function(){return Y}});var n=i(31572),s=i(61511),o=i(4253),r=i(11353),a=i(19861),c=i(55959),u=i(87570),l=i(38289),h=i(91741),d=i(48318),p=i(31906),g=i(25416),f=i(56238),m=i(79996),b=i(90611),w=i(66599),_=i(44689),y=i(22526);function A(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function v(t,e){const i=e?"":"none";A(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function T(t,e){const i=t.style;i.position=e?"":"fixed",i.top=i.opacity=e?"":"0",i.left=e?"":"-999em"}function C(t,e){return e?t+" "+e:t}function S(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function E(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function k(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function x(t,e,i){const{top:n,bottom:s,left:o,right:r}=t;return i>=n&&i<=s&&e>=o&&e<=r}function R(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function I(t,e,i,n){const{top:s,right:o,bottom:r,left:a,width:c,height:u}=t,l=c*e,h=u*e;return n>s-h&&na-l&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:k(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let o,r;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();o=t.top,r=t.left}else o=e.scrollTop,r=e.scrollLeft;const a=s.top-o,c=s.left-r;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&R(t.clientRect,a,c)}),s.top=o,s.left=r,{top:a,left:c}}}function P(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),i=this._dropContainer;if(!e)return void this._endDragSequence(t);i&&(i.isDragging()||i.isReceiving())||(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),t.preventDefault();const i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new O(i,s),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=(0,a.Ig)(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>v(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>(0,a.fI)(t)),this._handles.forEach(t=>v(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(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=(0,a.fI)(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,F),e.addEventListener("touchstart",this._pointerDown,z)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?(0,a.fI)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&U(this._rootElement),U(this._anchor),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(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),v(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),v(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&U(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&U(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){H(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,n=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();i.insertBefore(s,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),T(t,!1),this._document.body.appendChild(i.replaceChild(n,t)),this._getPreviewInsertionPoint(i,o).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),n=H(e),s=!n&&0!==e.button,o=this._rootElement,r=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||r)return;this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor||"",o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=k(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){T(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(n),o=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s,dropPoint:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s,dropPoint:n}),e.drop(this,i,this._initialIndex,this._initialContainer,o,s,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=j(s,this._document),this._previewRef=s,t.matchSize?G(n,e):n.style.transform=B(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=P(t),G(n,t.getBoundingClientRect()),this._initialTransform&&(n.style.transform=this._initialTransform)}return A(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),v(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=E(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),o=E(e,"transition-duration"),r=E(e,"transition-delay");return S(o[s])+S(r[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=j(this._placeholderRef,this._document)):i=P(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,o=H(e)?e.targetTouches[0]:e,r=this._getViewportScrollPosition();return{x:s.left-i.left+(o.pageX-s.left-r.left),y:s.top-i.top+(o.pageY-s.top-r.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=H(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,s=i.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=n,e.y=s,e.matrixTransform(t.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,o=this._previewRect,r=s.top+e,a=s.bottom-(o.height-e);i=q(i,s.left+t,s.right-(o.width-t)),n=q(n,r,a)}return{x:i,y:n}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-s.x),r=Math.abs(i-s.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),r>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,v(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,F),t.removeEventListener("touchstart",this._pointerDown,z)}_applyRootElementTransform(t,e){const i=B(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=C(i,this._initialTransform)}_applyPreviewTransform(t,e){var i;const n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,s=B(t,e);this._preview.style.transform=C(s,n)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,o=n.right-i.right,r=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),o>0&&(t-=o)):t=0,i.height>n.height?(r>0&&(e+=r),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:H(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&R(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,r.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const t=this._document;return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}return(0,a.fI)(i)}}function B(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function q(t,e,i){return Math.max(e,Math.min(i,t))}function U(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function H(t){return"t"===t.type[0]}function j(t,e){const i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];const n=e.createElement("div");return i.forEach(t=>n.appendChild(t)),n}function G(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=B(e.left,e.top)}function Y(t,e,i){const n=V(e,t.length-1),s=V(i,t.length-1);if(n===s)return;const o=t[n],r=s!0,this.sortPredicate=()=>!0,this.beforeStarted=new c.xQ,this.entered=new c.xQ,this.exited=new c.xQ,this.dropped=new c.xQ,this.sorted=new c.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=u.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new c.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,l.F)(0,h.r).pipe((0,g.R)(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?$(t,-e):2===this._verticalScrollDirection&&$(t,e),1===this._horizontalScrollDirection?Q(t,-e):2===this._horizontalScrollDirection&&Q(t,e)})},this.element=(0,a.fI)(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new O(i,s)}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(t,e,i,n){let s;this._draggingStarted(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const o=this._activeDraggables,r=o.indexOf(t),c=t.getPlaceholderElement();let u=o[s];if(u===t&&(u=o[s+1]),r>-1&&o.splice(r,1),u&&!this._dragDropRegistry.isDragging(u)){const e=u.getRootElement();e.parentElement.insertBefore(c,e),o.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){const e=o[0].getRootElement();e.parentNode.insertBefore(c,e),o.unshift(t)}else(0,a.fI)(this.element).appendChild(c),o.push(t);c.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,o,r){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:s,distance:o,dropPoint:r})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=(0,a.fI)(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?J("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!this._clientRect||!I(this._clientRect,.05,e,i))return;const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===o&&s.length>0)return;const r="horizontal"===this._orientation,a=J(s,e=>e.drag===t),c=s[o],u=c.clientRect,l=a>o?1:-1,h=this._getItemOffsetPx(s[a].clientRect,u,l),d=this._getSiblingOffsetPx(a,s,l),p=s.slice();Y(s,a,o),this.sorted.next({previousIndex:a,currentIndex:o,container:this,item:t}),s.forEach((e,i)=>{if(p[i]===e)return;const n=e.drag===t,s=n?h:d,o=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,r?(o.style.transform=C(`translate3d(${Math.round(e.offset)}px, 0, 0)`,e.initialTransform),R(e.clientRect,0,s)):(o.style.transform=C(`translate3d(0, ${Math.round(e.offset)}px, 0)`,e.initialTransform),R(e.clientRect,s,0))}),this._previousSwap.overlaps=x(u,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=r?n.x:n.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((o,r)=>{r!==this._document&&o.clientRect&&!i&&I(o.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=W(e,n),o=X(e,i);let r=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(r=1):t.scrollHeight-e>t.clientHeight&&(r=2)}if(o){const e=t.scrollLeft;1===o?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[r,a]}(r,o.clientRect,t,e),(n||s)&&(i=r))}),!n&&!s){const{width:o,height:r}=this._viewportRuler.getViewportSize(),a={width:o,height:r,top:0,right:o,bottom:r,left:0};n=W(a,e),s=X(a,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=(0,a.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=(0,a.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:k(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=(0,a.fI)(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{var e;const i=t.getRootElement();if(i){const n=null===(e=this._itemPositions.find(e=>e.drag===t))||void 0===e?void 0:e.initialTransform;i.style.transform=n||""}}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,o=e[t+-1*i];let r=s[n?"width":"height"]*i;if(o){const t=n?"left":"top",e=n?"right":"bottom";-1===i?r-=o.clientRect[t]-s[e]:r+=s[t]-o.clientRect[e]}return r}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation,o=J(this._itemPositions,({drag:o,clientRect:r},a,c)=>{if(o===t)return c.length<2;if(n){const t=s?n.x:n.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(r.left)&&e=Math.floor(r.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!x(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=(0,a.fI)(this.element);return n===s||s.contains(n)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{R(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=(0,r.kV)((0,a.fI)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function J(t,e){for(let i=0;i=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}function X(t,e){const{left:i,right:n,width:s}=t,o=.05*s;return e>=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}const tt=(0,r.i$)({passive:!1,capture:!0});let et=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new c.xQ,this.pointerUp=new c.xQ,this.scroll=new c.xQ,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,tt)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,tt)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:tt}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:tt}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.R0b),n.LFG(s.K0))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(n.R0b),n.LFG(s.K0))},token:t,providedIn:"root"}),t})();const it={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let nt=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=it){return new Z(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new K(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(s.K0),n.LFG(n.R0b),n.LFG(o.rL),n.LFG(et))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(s.K0),n.LFG(n.R0b),n.LFG(o.rL),n.LFG(et))},token:t,providedIn:"root"}),t})();const st=new n.OlP("CDK_DRAG_PARENT"),ot=new n.OlP("CdkDropListGroup"),rt=new n.OlP("CDK_DRAG_CONFIG");let at=0;const ct=new n.OlP("CdkDropList");let ut=(()=>{class t{constructor(e,i,s,o,r,a,u){this.element=e,this._changeDetectorRef=s,this._scrollDispatcher=o,this._dir=r,this._group=a,this._destroyed=new c.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+at++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.sorted=new n.vpe,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,u&&this._assignDefaults(u),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._dropListRef.sortPredicate=(t,e,i)=>this.sortPredicate(t,e.data,i.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),a&&a._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=(0,a.Ig)(t)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._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((0,f.O)(this._dir.value),(0,g.R)(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const i=(0,a.Eq)(this.connectedTo).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);if(this._group&&this._group._items.forEach(t=>{-1===i.indexOf(t)&&i.push(t)}),!this._scrollableParentsResolved){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=(0,a.Ig)(this.sortingDisabled),e.autoScrollDisabled=(0,a.Ig)(this.autoScrollDisabled),e.autoScrollStep=(0,a.su)(this.autoScrollStep,2),e.connectedTo(i.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:i,sortingDisabled:n,listAutoScrollDisabled:s,listOrientation:o}=t;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=s&&s,this.orientation=o||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(nt),n.Y36(n.sBO),n.Y36(o.mF),n.Y36(y.Is,8),n.Y36(ot,12),n.Y36(rt,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(n.uIk("id",e.id),n.ekj("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[n._Bn([{provide:ot,useValue:void 0},{provide:ct,useExisting:t}])]}),t._dropLists=[],t})();const lt=new n.OlP("CdkDragHandle"),ht=new n.OlP("CdkDragPlaceholder"),dt=new n.OlP("CdkDragPreview");let pt=(()=>{class t{constructor(e,i,s,o,r,a,u,l,h,p,g){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=r,this._dir=u,this._changeDetectorRef=h,this._selfHandle=p,this._parentDrag=g,this._destroyed=new c.xQ,this.started=new n.vpe,this.released=new n.vpe,this.ended=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.dropped=new n.vpe,this.moved=new d.y(t=>{const e=this._dragRef.moved.pipe((0,m.U)(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=l.createDrag(e,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),a&&this._assignDefaults(a),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=(0,a.Ig)(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.pipe((0,b.q)(1),(0,g.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe((0,f.O)(this._handles),(0,w.b)(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._selfHandle&&this.rootElementSelector&&e.push(this.element),this._dragRef.withHandles(e)}),(0,_.w)(t=>(0,p.T)(...t.map(t=>t._stateChanges.pipe((0,f.O)(t))))),(0,g.R)(this._destroyed)).subscribe(t=>{const e=this._dragRef,i=t.element.nativeElement;t.disabled?e.disableHandle(i):e.enableHandle(i)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?gt(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?gt(this.element.nativeElement,t):(0,a.fI)(t):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,i=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=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 i&&i?i:(0,a.su)(i),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,b.q)(1)).subscribe(()=>{var i,n;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let s=this.element.nativeElement.parentElement;for(;s;){if(null===(i=s.classList)||void 0===i?void 0:i.contains("cdk-drag")){e.withParent((null===(n=t._dragInstances.find(t=>t.element.nativeElement===s))||void 0===n?void 0:n._dragRef)||null);break}s=s.parentElement}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:i,constrainPosition:n,previewClass:s,boundaryElement:o,draggingDisabled:r,rootElementSelector:a,previewContainer:c}=t;this.disabled=null!=r&&r,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),o&&(this.boundaryElement=o),a&&(this.rootElementSelector=a),c&&(this.previewContainer=c)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(ct,12),n.Y36(s.K0),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(rt,8),n.Y36(y.Is,8),n.Y36(nt),n.Y36(n.sBO),n.Y36(lt,10),n.Y36(st,12))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){if(1&t&&(n.Suo(i,dt,5),n.Suo(i,ht,5),n.Suo(i,lt,5)),2&t){let t;n.iGM(t=n.CRH())&&(e._previewTemplate=t.first),n.iGM(t=n.CRH())&&(e._placeholderTemplate=t.first),n.iGM(t=n.CRH())&&(e._handles=t)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&n.ekj("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[n._Bn([{provide:st,useExisting:t}]),n.TTD]}),t._dragInstances=[],t})();function gt(t,e){let i=t.parentElement;for(;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}let ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[nt],imports:[o.ZD]}),t})()},75842:function(t,e,i){"use strict";i.d(e,{A:function(){return _},ZH:function(){return n},OC:function(){return A},yY:function(){return m},JH:function(){return f},uR:function(){return l},K5:function(){return o},hY:function(){return r},Sd:function(){return h},oh:function(){return d},aO:function(){return w},VM:function(){return u},Ku:function(){return c},SV:function(){return g},L_:function(){return a},Mf:function(){return s},LH:function(){return p},Z:function(){return y},xE:function(){return b},Vb:function(){return v}});const n=8,s=9,o=13,r=27,a=32,c=33,u=34,l=35,h=36,d=37,p=38,g=39,f=40,m=46,b=48,w=57,_=65,y=90,A=188;function v(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},36337:function(t,e,i){"use strict";i.d(e,{wD:function(){return l},yq:function(){return u},Q8:function(){return h}});var n=i(19861),s=i(31572),o=i(48318),r=i(55959),a=i(47701);let c=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=(0,n.fI)(t);return new o.y(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new r.xQ,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(c))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(c))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,n.Ig)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=(0,n.su)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,a.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(u),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[c]}),t})()},2522:function(t,e,i){"use strict";i.d(e,{pI:function(){return J},xu:function(){return K},_G:function(){return z},aV:function(){return G},X_:function(){return k},Xj:function(){return M},U8:function(){return Q}});var n=i(4253),s=i(31572),o=i(11353),r=i(22526),a=i(61511),c=i(19861),u=i(26899),l=i(55959),h=i(87570),d=i(31906),p=i(96673);class g{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new f(t,this.predicate,this.inclusive))}}class f extends p.L{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}var m=i(90611),b=i(25416),w=i(75842);const _=(0,o.Mq)();class y{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=(0,c.HM)(-this._previousScrollPosition.left),t.style.top=(0,c.HM)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),_&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),_&&(e.scrollBehavior=n,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class A{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class v{enable(){}disable(){}attach(){}}function T(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function C(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class S{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();T(t,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let E=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new v,this.close=t=>new A(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new y(this._viewportRuler,this._document),this.reposition=t=>new S(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.mF),s.LFG(n.rL),s.LFG(s.R0b),s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.mF),s.LFG(n.rL),s.LFG(s.R0b),s.LFG(a.K0))},token:t,providedIn:"root"}),t})();class k{constructor(t){if(this.scrollStrategy=new v,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class x{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class R{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let I=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),O=(()=>{class t extends I{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),P=(()=>{class t extends I{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0),s.LFG(o.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0),s.LFG(o.t4))},token:t,providedIn:"root"}),t})();const D="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha;let M=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||D){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new l.xQ,this._outsidePointerEvents=new l.xQ,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=(0,c.HM)(this._config.width),t.height=(0,c.HM)(this._config.height),t.minWidth=(0,c.HM)(this._config.minWidth),t.minHeight=(0,c.HM)(this._config.minHeight),t.maxWidth=(0,c.HM)(this._config.maxWidth),t.maxHeight=(0,c.HM)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;(0,c.Eq)(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,b.R)((0,d.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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const N=/([A-Za-z%]+)$/;class z{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,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 l.xQ,this._resizeSubscription=h.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let o of this._preferredPositions){let r=this._getOriginPoint(t,o),a=this._getOverlayPoint(r,e,o),c=this._getOverlayFit(a,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,r);this._canFitWithFlexibleDimensions(c,a,i)?n.push({position:o,origin:r,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(r,o)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&F(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){const s=B(e);let{x:o,y:r}=t,a=this._getOffset(n,"x"),c=this._getOffset(n,"y");a&&(o+=a),c&&(r+=c);let u=0-r,l=r+s.height-i.height,h=this._subtractOverflows(s.width,0-o,o+s.width-i.width),d=this._subtractOverflows(s.height,u,l),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,o=Z(this._overlayRef.getConfig().minHeight),r=Z(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=r&&r<=s;return(t.fitsInViewportVertically||null!=o&&o<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=B(e),s=this._viewportRect,o=Math.max(t.x+n.width-s.width,0),r=Math.max(t.y+n.height-s.height,0),a=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,l=0;return u=n.width<=s.width?c||-o:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)u=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-n/2)}return{top:o,left:c,bottom:r,right:u,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=(0,c.HM)(i.height),n.top=(0,c.HM)(i.top),n.bottom=(0,c.HM)(i.bottom),n.width=(0,c.HM)(i.width),n.left=(0,c.HM)(i.left),n.right=(0,c.HM)(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=(0,c.HM)(t)),s&&(n.maxWidth=(0,c.HM)(s))}this._lastBoundingBoxSize=i,F(this._boundingBox.style,n)}_resetBoundingBoxStyles(){F(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){F(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();F(i,this._getExactOverlayY(e,t,n)),F(i,this._getExactOverlayX(e,t,n))}else i.position="static";let r="",a=this._getOffset(e,"x"),u=this._getOffset(e,"y");a&&(r+=`translateX(${a}px) `),u&&(r+=`translateY(${u}px)`),i.transform=r.trim(),o.maxHeight&&(n?i.maxHeight=(0,c.HM)(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(n?i.maxWidth=(0,c.HM)(o.maxWidth):s&&(i.maxWidth="")),F(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=(0,c.HM)(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":s.left=(0,c.HM)(o.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:C(t,i),isOriginOutsideView:T(t,i),isOverlayClipped:C(e,i),isOverlayOutsideView:T(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,c.Eq)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function F(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Z(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(N);return i&&"px"!==i?null:parseFloat(e)}return t||null}function B(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class q{constructor(t,e,i,n,s,o,r){this._preferredPositions=[],this._positionStrategy=new z(i,n,s,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new x(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class U{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:o,maxHeight:r}=i,a=!("100%"!==n&&"100vw"!==n||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let H=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new U}connectedTo(t,e,i){return new q(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new z(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.rL),s.LFG(a.K0),s.LFG(o.t4),s.LFG(M))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.rL),s.LFG(a.K0),s.LFG(o.t4),s.LFG(M))},token:t,providedIn:"root"}),t})(),j=0,G=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=o,this._ngZone=r,this._document=a,this._directionality=c,this._location=u,this._outsideClickDispatcher=l}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new k(t);return s.direction=s.direction||this._directionality.value,new L(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+j++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new u.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(E),s.LFG(M),s.LFG(s._Vd),s.LFG(H),s.LFG(O),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(r.Is),s.LFG(a.Ye),s.LFG(P))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Y=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],V=new s.OlP("cdk-connected-overlay-scroll-strategy");let K=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),J=(()=>{class t{constructor(t,e,i,n,o){this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new u.UE(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,c.Ig)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=(0,c.Ig)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=(0,c.Ig)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=(0,c.Ig)(t)}get push(){return this._push}set push(t){this._push=(0,c.Ig)(t)}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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=Y);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==w.hY||this.disableClose||(0,w.Vb)(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new k({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return i=>i.lift(new g(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(G),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(V),s.Y36(r.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.TTD]}),t})();const $={provide:V,deps:[G],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[G,$],imports:[[r.vT,u.eL,n.Cl],n.Cl]}),t})()},11353:function(t,e,i){"use strict";i.d(e,{t4:function(){return a},ud:function(){return c},ht:function(){return _},kV:function(){return w},_i:function(){return b},qK:function(){return l},i$:function(){return f},Mq:function(){return m}});var n=i(31572),s=i(61511);let o;try{o="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(y){o=!1}let r,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,s.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!o)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.Lbi))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(n.Lbi))},token:t,providedIn:"root"}),t})(),c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();const u=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function l(){if(r)return r;if("object"!=typeof document||!document)return r=new Set(u),r;let t=document.createElement("input");return r=new Set(u.filter(e=>(t.setAttribute("type",e),t.type===e))),r}let h,d,p,g;function f(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function m(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function b(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function w(t){if(function(){if(null==g){const t="undefined"!=typeof document?document.head:null;g=!(!t||!t.createShadowRoot&&!t.attachShadow)}return g}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function _(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}},26899:function(t,e,i){"use strict";i.d(e,{en:function(){return u},ig:function(){return d},Pl:function(){return p},C5:function(){return r},F0:function(){return h},u0:function(){return l},eL:function(){return g},UE:function(){return a}});var n=i(31572),s=i(61511);class o{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class r extends o{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class a extends o{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class c extends o{constructor(t){super(),this.element=t instanceof n.SBq?t.nativeElement:t}}class u{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof r?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof c?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class l extends u{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class h extends l{}let d=(()=>{class t extends a{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Rgc),n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.qOj]}),t})(),p=(()=>{class t extends u{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new n.vpe,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36(s.K0))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.qOj]}),t})(),g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},4253:function(t,e,i){"use strict";i.d(e,{xd:function(){return P},PQ:function(){return M},ZD:function(){return B},x0:function(){return Z},N7:function(){return z},mF:function(){return D},Cl:function(){return q},rL:function(){return L}});var n=i(19861),s=i(31572),o=i(55959),r=i(40878),a=i(48318),c=i(87254),u=i(91741),l=i(92709),h=i(87570),d=i(4710),p=i(96673);class g{call(t,e){return e.subscribe(new f(t))}}class f extends p.L{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}var m=i(98720),b=i(30810),w=i(43835),_=i(25416),y=i(56238),A=i(44689),v=i(68303),T=i(11353),C=i(61511),S=i(22526),E=i(4230);const k=["contentWrapper"],x=["*"],R=new s.OlP("VIRTUAL_SCROLL_STRATEGY");class I{constructor(t,e,i){this._scrolledIndexChange=new o.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,m.x)()),this._viewport=null,this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i}attach(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(t,e,i){this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(t,e){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,e)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const t=this._viewport.getRenderedRange(),e={start:t.start,end:t.end},i=this._viewport.getViewportSize(),n=this._viewport.getDataLength();let s=this._viewport.measureScrollOffset(),o=this._itemSize>0?s/this._itemSize:0;if(e.end>n){const t=Math.ceil(i/this._itemSize),r=Math.max(0,Math.min(o,n-t));o!=r&&(o=r,s=r*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(n,e.start+t))}const r=s-e.start*this._itemSize;if(r0&&(e.end=Math.min(n,e.end+i),e.start=Math.max(0,Math.floor(o-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(o))}}function O(t){return t._scrollStrategy}let P=(()=>{class t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new I(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=(0,n.su)(t)}get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=(0,n.su)(t)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=(0,n.su)(t)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[s._Bn([{provide:R,useFactory:O,deps:[(0,s.Gpc)(()=>t)]}]),s.TTD]}),t})(),D=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new o.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new a.y(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe((0,b.e)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,r.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,w.h)(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=(0,n.fI)(e),s=t.getElementRef().nativeElement;do{if(i==s)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,c.R)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(T.t4),s.LFG(C.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(T.t4),s.LFG(C.K0,8))},token:t,providedIn:"root"}),t})(),M=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new o.xQ,this._elementScrolled=new a.y(t=>this.ngZone.runOutsideAngular(()=>(0,c.R)(this.elementRef.nativeElement,"scroll").pipe((0,_.R)(this._destroyed)).subscribe(t)))}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(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=(0,T._i)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==(0,T._i)()?t.left=t.right:1==(0,T._i)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;(0,T.Mq)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==(0,T._i)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==(0,T._i)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(D),s.Y36(s.R0b),s.Y36(S.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),L=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new o.xQ,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe((0,b.e)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(T.t4),s.LFG(s.R0b),s.LFG(C.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(T.t4),s.LFG(s.R0b),s.LFG(C.K0,8))},token:t,providedIn:"root"}),t})();const N="undefined"!=typeof requestAnimationFrame?u.r:l.e;let z=(()=>{class t extends M{constructor(t,e,i,n,s,r,c){super(t,r,i,s),this.elementRef=t,this._changeDetectorRef=e,this._scrollStrategy=n,this._detachedSubject=new o.xQ,this._renderedRangeSubject=new o.xQ,this._orientation="vertical",this.scrolledIndexChange=new a.y(t=>this._scrollStrategy.scrolledIndexChange.subscribe(e=>Promise.resolve().then(()=>this.ngZone.run(()=>t.next(e))))),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=h.w.EMPTY,this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,y.O)(null),(0,b.e)(0,N)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(t){this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe((0,_.R)(this._detachedSubject)).subscribe(t=>{const e=t.length;e!==this._dataLength&&(this._dataLength=e,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(t){var e,i;((e=this._renderedRange).start!=(i=t).start||e.end!=i.end)&&(this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,e="to-start"){const i="horizontal"==this.orientation,n=i?"X":"Y";let s=`translate${n}(${Number((i&&this.dir&&"rtl"==this.dir.value?-1:1)*t)}px)`;this._renderedContentOffset=t,"to-end"===e&&(s+=` translate${n}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=s&&(this._renderedContentTransform=s,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(t,e="auto"){const i={behavior:e};"horizontal"===this.orientation?i.start=t:i.top=t,this.scrollTo(i)}scrollToIndex(t,e="auto"){this._scrollStrategy.scrollToIndex(t,e)}measureScrollOffset(t){return super.measureScrollOffset(t||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const t=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const t=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?t.clientWidth:t.clientHeight}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),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 t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const e of t)e()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(R,8),s.Y36(S.Is,8),s.Y36(D),s.Y36(L))},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(t,e){if(1&t&&s.Gf(k,7),2&t){let t;s.iGM(t=s.CRH())&&(e._contentWrapper=t.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===e.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==e.orientation)},inputs:{orientation:"orientation"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[s._Bn([{provide:M,useExisting:t}]),s.qOj],ngContentSelectors:x,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0,1),s.Hsn(2),s.qZA(),s._UZ(3,"div",2)),2&t&&(s.xp6(3),s.Udp("width",e._totalContentWidth)("height",e._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),t})();function F(t,e,i){if(!i.getBoundingClientRect)return 0;const n=i.getBoundingClientRect();return"horizontal"===t?"start"===e?n.left:n.right:"start"===e?n.top:n.bottom}let Z=(()=>{class t{constructor(t,e,i,n,s,r){this._viewContainerRef=t,this._template=e,this._differs=i,this._viewRepeater=n,this._viewport=s,this.viewChange=new o.xQ,this._dataSourceChanges=new o.xQ,this.dataStream=this._dataSourceChanges.pipe((0,y.O)(null),t=>t.lift(new g),(0,A.w)(([t,e])=>this._changeDataSource(t,e)),(0,v.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new o.xQ,this.dataStream.subscribe(t=>{this._data=t,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,_.R)(this._destroyed)).subscribe(t=>{this._renderedRange=t,r.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,(0,E.Z9)(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new E.P3((0,d.b)(t)?t:Array.from(t||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?(e,i)=>t(e+(this._renderedRange?this._renderedRange.start:0),i):void 0}set cdkVirtualForTemplate(t){t&&(this._needsUpdate=!0,this._template=t)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=(0,n.su)(t)}measureRangeSize(t,e){if(t.start>=t.end)return 0;const i=t.start-this._renderedRange.start,n=t.end-t.start;let s,o;for(let r=0;r-1;r--){const t=this._viewContainerRef.get(r+i);if(t&&t.rootNodes.length){o=t.rootNodes[t.rootNodes.length-1];break}}return s&&o?F(e,"end",o)-F(e,"start",s):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):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((t,e)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(t,e):e)),this._needsUpdate=!0)}_changeDataSource(t,e){return t&&t.disconnect(this),this._needsUpdate=!0,e?e.connect(this):(0,r.of)()}_updateContext(){const t=this._data.length;let e=this._viewContainerRef.length;for(;e--;){const i=this._viewContainerRef.get(e);i.context.index=this._renderedRange.start+e,i.context.count=t,this._updateComputedContextProperties(i.context),i.detectChanges()}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,(t,e,i)=>this._getEmbeddedViewArgs(t,i),t=>t.item),t.forEachIdentityChange(t=>{this._viewContainerRef.get(t.currentIndex).context.$implicit=t.item});const e=this._data.length;let i=this._viewContainerRef.length;for(;i--;){const t=this._viewContainerRef.get(i);t.context.index=this._renderedRange.start+i,t.context.count=e,this._updateComputedContextProperties(t.context)}}_updateComputedContextProperties(t){t.first=0===t.index,t.last=t.index===t.count-1,t.even=t.index%2==0,t.odd=!t.even}_getEmbeddedViewArgs(t,e){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:e}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(E.k),s.Y36(z,4),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[s._Bn([{provide:E.k,useClass:E.eX}])]}),t})(),B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[S.vT,T.ud,B],S.vT,B]}),t})()},10901:function(t,e,i){"use strict";i.d(e,{Lq:function(){return p},IC:function(){return g},Ky:function(){return f}});var n=i(11353),s=i(31572),o=i(19861),r=i(70653),a=i(55959),c=i(87254),u=i(30810),l=i(25416),h=i(61511);const d=(0,n.i$)({passive:!0});let p=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return r.E;const e=(0,o.fI)(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new a.xQ,s="cdk-text-field-autofilled",c=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",c,d),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",c,d)}}),n}stopMonitoring(t){const e=(0,o.fI)(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.t4),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.t4),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),g=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new a.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._document=n,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=(0,o.su)(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=(0,o.su)(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=(0,o.Ig)(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(t){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=t,this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();(0,c.R)(t,"resize").pipe((0,u.e)(16),(0,l.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){this._textareaElement.classList.add(this._measuringClass);const t=this._textareaElement.scrollHeight-4;return this._textareaElement.classList.remove(this._measuringClass),t}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=this._measureScrollHeight(),s=Math.max(n,this._cachedPlaceholderHeight||0);e.style.height=`${s}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,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(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(n.t4),s.Y36(s.R0b),s.Y36(h.K0,8))},t.\u0275dir=s.lG2({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&s.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ud]]}),t})()},71709:function(t,e,i){"use strict";i.d(e,{HI:function(){return b},Xx:function(){return C},_0:function(){return A},nZ:function(){return x},Hs:function(){return v},rO:function(){return y},cu:function(){return w},XJ:function(){return E},Ud:function(){return k},C2:function(){return f},VY:function(){return m}});var n=i(4230),s=i(4710),o=i(55959),r=i(78512),a=i(40878),c=i(90611),u=i(43835),l=i(25416),h=i(31572),d=i(19861),p=i(22526);class g{constructor(){this.expansionModel=new n.Ov(!0)}toggle(t){this.expansionModel.toggle(this._trackByValue(t))}expand(t){this.expansionModel.select(this._trackByValue(t))}collapse(t){this.expansionModel.deselect(this._trackByValue(t))}isExpanded(t){return this.expansionModel.isSelected(this._trackByValue(t))}toggleDescendants(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}collapseAll(){this.expansionModel.clear()}expandDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.select(...e.map(t=>this._trackByValue(t)))}collapseDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.deselect(...e.map(t=>this._trackByValue(t)))}_trackByValue(t){return this.trackBy?this.trackBy(t):t}}class f extends g{constructor(t,e,i){super(),this.getLevel=t,this.isExpandable=e,this.options=i,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(t){const e=[];for(let i=this.dataNodes.indexOf(t)+1;ithis._trackByValue(t)))}}class m extends g{constructor(t,e){super(),this.getChildren=t,this.options=e,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const t=this.dataNodes.reduce((t,e)=>[...t,...this.getDescendants(e),e],[]);this.expansionModel.select(...t.map(t=>this._trackByValue(t)))}getDescendants(t){const e=[];return this._getDescendants(e,t),e.splice(1)}_getDescendants(t,e){t.push(e);const i=this.getChildren(e);Array.isArray(i)?i.forEach(e=>this._getDescendants(t,e)):(0,s.b)(i)&&i.pipe((0,c.q)(1),(0,u.h)(Boolean)).subscribe(e=>{for(const i of e)this._getDescendants(t,i)})}}const b=new h.OlP("CDK_TREE_NODE_OUTLET_NODE");let w=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.s_b),h.Y36(b,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class _{constructor(t){this.$implicit=t}}let y=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.Rgc))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})(),A=(()=>{class t{constructor(t,e){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new o.xQ,this._levels=new Map,this.viewChange=new r.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}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 t=this._nodeDefs.filter(t=>!t.when);this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let t;(0,n.Z9)(this._dataSource)?t=this._dataSource.connect(this):(0,s.b)(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=(0,a.of)(this._dataSource)),t&&(this._dataSubscription=t.pipe((0,l.R)(this._onDestroy)).subscribe(t=>this.renderNodeChanges(t)))}renderNodeChanges(t,e=this._dataDiffer,i=this._nodeOutlet.viewContainer,n){const s=e.diff(t);s&&(s.forEachOperation((e,s,o)=>{if(null==e.previousIndex)this.insertNode(t[o],o,i,n);else if(null==o)i.remove(s),this._levels.delete(e.item);else{const t=i.get(s);i.move(t,o)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,e){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(i=>i.when&&i.when(e,t))||this._defaultNodeDef}insertNode(t,e,i,n){const s=this._getNodeDef(t,e),o=new _(t);o.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==n&&this._levels.has(n)?this._levels.get(n)+1:0,this._levels.set(t,o.level),(i||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,o,e),v.mostRecentTreeNode&&(v.mostRecentTreeNode.data=t)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.ZZ4),h.Y36(h.sBO))},t.\u0275cmp=h.Xpm({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,i){if(1&t&&h.Suo(i,y,5),2&t){let t;h.iGM(t=h.CRH())&&(e._nodeDefs=t)}},viewQuery:function(t,e){if(1&t&&h.Gf(w,7),2&t){let t;h.iGM(t=h.CRH())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&h.GkF(0,0)},directives:[w],encapsulation:2}),t})(),v=(()=>{class t{constructor(e,i){this._elementRef=e,this._tree=i,this._destroyed=new o.xQ,this._dataChanges=new o.xQ,t.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}get role(){return"treeitem"}set role(t){this._elementRef.nativeElement.setAttribute("role",t)}get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}_setExpanded(t){this._isAriaExpanded=t,this._elementRef.nativeElement.setAttribute("aria-expanded",`${t}`)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function(t){let e=t.parentElement;for(;e&&!T(e);)e=e.parentElement;return e?e.classList.contains("cdk-nested-tree-node")?(0,d.su)(e.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngDoCheck(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(A))},t.\u0275dir=h.lG2({type:t,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t})();function T(t){const e=t.classList;return!(!(null==e?void 0:e.contains("cdk-nested-tree-node"))&&!(null==e?void 0:e.contains("cdk-tree")))}let C=(()=>{class t extends v{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this._differs=i,this._elementRef.nativeElement.classList.add("cdk-nested-tree-node")}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const t=this._tree.treeControl.getChildren(this.data);Array.isArray(t)?this.updateChildrenNodes(t):(0,s.b)(t)&&t.pipe((0,l.R)(this._destroyed)).subscribe(t=>this.updateChildrenNodes(t)),this.nodeOutlet.changes.pipe((0,l.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(t){const e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const t=this.nodeOutlet;return t&&t.find(t=>!t._node||t._node===this)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(A),h.Y36(h.ZZ4))},t.\u0275dir=h.lG2({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,i){if(1&t&&h.Suo(i,w,5),2&t){let t;h.iGM(t=h.CRH())&&(e.nodeOutlet=t)}},inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[h._Bn([{provide:v,useExisting:t},{provide:b,useExisting:t}]),h.qOj]}),t})();const S=/([A-Za-z%]+)$/;let E=(()=>{class t{constructor(t,e,i,n){this._treeNode=t,this._tree=e,this._element=i,this._dir=n,this._destroyed=new o.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),n&&n.change.pipe((0,l.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?`${e*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){const e=this._paddingIndent();if(e!==this._currentPadding||t){const t=this._element.nativeElement,i=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",n="paddingLeft"===i?"paddingRight":"paddingLeft";t.style[i]=e||"",t.style[n]="",this._currentPadding=e}}_setLevelInput(t){this._level=(0,d.su)(t,null),this._setPadding()}_setIndentInput(t){let e=t,i="px";if("string"==typeof t){const n=t.split(S);e=n[0],i=n[1]||i}this.indentUnits=i,this._indent=(0,d.su)(e),this._setPadding()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(v),h.Y36(A),h.Y36(h.SBq),h.Y36(p.Is,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t})(),k=(()=>{class t{constructor(t,e){this._tree=t,this._treeNode=e,this._recursive=!1}get recursive(){return this._recursive}set recursive(t){this._recursive=(0,d.Ig)(t)}_toggle(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A),h.Y36(v))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&h.NdJ("click",function(t){return e._toggle(t)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),x=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({}),t})()},61511:function(t,e,i){"use strict";i.d(e,{mr:function(){return y},Ov:function(){return Et},ez:function(){return Rt},K0:function(){return c},uU:function(){return xt},Do:function(){return v},V_:function(){return h},Ye:function(){return T},S$:function(){return w},mk:function(){return ct},sg:function(){return lt},O5:function(){return dt},PC:function(){return _t},RF:function(){return mt},n9:function(){return bt},ED:function(){return wt},tP:function(){return yt},b0:function(){return A},lw:function(){return u},gd:function(){return kt},EM:function(){return Dt},JF:function(){return Nt},p6:function(){return G},NF:function(){return Ot},PM:function(){return Pt},w_:function(){return a},bD:function(){return It},q:function(){return o},Mx:function(){return at},HT:function(){return r}});var n=i(31572);let s=null;function o(){return s}function r(t){s||(s=t)}class a{}const c=new n.OlP("DocumentToken");let u=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:l,token:t,providedIn:"platform"}),t})();function l(){return(0,n.LFG)(d)}const h=new n.OlP("Location Initialized");let d=(()=>{class t extends u{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,i){p()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){p()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(c))},t.\u0275prov=(0,n.Yz7)({factory:g,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function g(){return new d((0,n.LFG)(c))}function f(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function b(t){return t&&"?"!==t[0]?"?"+t:t}let w=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:_,token:t,providedIn:"root"}),t})();function _(t){const e=(0,n.LFG)(c).location;return new A((0,n.LFG)(u),e&&e.origin||"")}const y=new n.OlP("appBaseHref");let A=(()=>{class t extends w{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return f(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+b(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+b(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(y,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),v=(()=>{class t extends w{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=f(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+b(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+b(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(y,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),T=(()=>{class t{constructor(t,e){this._subject=new n.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(S(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+b(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,S(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformStrategy).historyGo)||void 0===i||i.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(w),n.LFG(u))},t.normalizeQueryParams=b,t.joinWithSlash=f,t.stripTrailingSlash=m,t.\u0275prov=(0,n.Yz7)({factory:C,token:t,providedIn:"root"}),t})();function C(){return new T((0,n.LFG)(w),(0,n.LFG)(u))}function S(t){return t.replace(/\/index.html$/,"")}var E=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),k=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),x=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),R=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),I=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function O(t,e){return z((0,n.cg1)(t)[n.wAp.DateFormat],e)}function P(t,e){return z((0,n.cg1)(t)[n.wAp.TimeFormat],e)}function D(t,e){return z((0,n.cg1)(t)[n.wAp.DateTimeFormat],e)}function M(t,e){const i=(0,n.cg1)(t),s=i[n.wAp.NumberSymbols][e];if(void 0===s){if(e===I.CurrencyDecimal)return i[n.wAp.NumberSymbols][I.Decimal];if(e===I.CurrencyGroup)return i[n.wAp.NumberSymbols][I.Group]}return s}const L=n.kL8;function N(t){if(!t[n.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[n.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function z(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function F(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const Z=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,B={},q=/((?:[^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 U=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),H=function(t){return 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}({}),j=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function G(t,e,i,n){let s=function(t){if(st(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,i=1,n=1]=t.split("-").map(t=>+t);return Y(e,i-1,n)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Z))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const r=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,r,a,c,u),e}(i)}const e=new Date(t);if(!st(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=V(i,e)||e;let o,r=[];for(;e;){if(o=q.exec(e),!o){r.push(e);break}{r=r.concat(o.slice(1));const t=r.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();n&&(a=nt(n,a),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(nt(e,n)-n))}(s,n));let c="";return r.forEach(t=>{const e=function(t){if(it[t])return it[t];let e;switch(t){case"G":case"GG":case"GGG":e=Q(j.Eras,x.Abbreviated);break;case"GGGG":e=Q(j.Eras,x.Wide);break;case"GGGGG":e=Q(j.Eras,x.Narrow);break;case"y":e=$(H.FullYear,1,0,!1,!0);break;case"yy":e=$(H.FullYear,2,0,!0,!0);break;case"yyy":e=$(H.FullYear,3,0,!1,!0);break;case"yyyy":e=$(H.FullYear,4,0,!1,!0);break;case"Y":e=et(1);break;case"YY":e=et(2,!0);break;case"YYY":e=et(3);break;case"YYYY":e=et(4);break;case"M":case"L":e=$(H.Month,1,1);break;case"MM":case"LL":e=$(H.Month,2,1);break;case"MMM":e=Q(j.Months,x.Abbreviated);break;case"MMMM":e=Q(j.Months,x.Wide);break;case"MMMMM":e=Q(j.Months,x.Narrow);break;case"LLL":e=Q(j.Months,x.Abbreviated,k.Standalone);break;case"LLLL":e=Q(j.Months,x.Wide,k.Standalone);break;case"LLLLL":e=Q(j.Months,x.Narrow,k.Standalone);break;case"w":e=tt(1);break;case"ww":e=tt(2);break;case"W":e=tt(1,!0);break;case"d":e=$(H.Date,1);break;case"dd":e=$(H.Date,2);break;case"c":case"cc":e=$(H.Day,1);break;case"ccc":e=Q(j.Days,x.Abbreviated,k.Standalone);break;case"cccc":e=Q(j.Days,x.Wide,k.Standalone);break;case"ccccc":e=Q(j.Days,x.Narrow,k.Standalone);break;case"cccccc":e=Q(j.Days,x.Short,k.Standalone);break;case"E":case"EE":case"EEE":e=Q(j.Days,x.Abbreviated);break;case"EEEE":e=Q(j.Days,x.Wide);break;case"EEEEE":e=Q(j.Days,x.Narrow);break;case"EEEEEE":e=Q(j.Days,x.Short);break;case"a":case"aa":case"aaa":e=Q(j.DayPeriods,x.Abbreviated);break;case"aaaa":e=Q(j.DayPeriods,x.Wide);break;case"aaaaa":e=Q(j.DayPeriods,x.Narrow);break;case"b":case"bb":case"bbb":e=Q(j.DayPeriods,x.Abbreviated,k.Standalone,!0);break;case"bbbb":e=Q(j.DayPeriods,x.Wide,k.Standalone,!0);break;case"bbbbb":e=Q(j.DayPeriods,x.Narrow,k.Standalone,!0);break;case"B":case"BB":case"BBB":e=Q(j.DayPeriods,x.Abbreviated,k.Format,!0);break;case"BBBB":e=Q(j.DayPeriods,x.Wide,k.Format,!0);break;case"BBBBB":e=Q(j.DayPeriods,x.Narrow,k.Format,!0);break;case"h":e=$(H.Hours,1,-12);break;case"hh":e=$(H.Hours,2,-12);break;case"H":e=$(H.Hours,1);break;case"HH":e=$(H.Hours,2);break;case"m":e=$(H.Minutes,1);break;case"mm":e=$(H.Minutes,2);break;case"s":e=$(H.Seconds,1);break;case"ss":e=$(H.Seconds,2);break;case"S":e=$(H.FractionalSeconds,1);break;case"SS":e=$(H.FractionalSeconds,2);break;case"SSS":e=$(H.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=W(U.Short);break;case"ZZZZZ":e=W(U.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=W(U.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=W(U.Long);break;default:return null}return it[t]=e,e}(t);c+=e?e(s,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Y(t,e,i){const n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function V(t,e){const i=function(t){return(0,n.cg1)(t)[n.wAp.LocaleId]}(t);if(B[i]=B[i]||{},B[i][e])return B[i][e];let s="";switch(e){case"shortDate":s=O(t,R.Short);break;case"mediumDate":s=O(t,R.Medium);break;case"longDate":s=O(t,R.Long);break;case"fullDate":s=O(t,R.Full);break;case"shortTime":s=P(t,R.Short);break;case"mediumTime":s=P(t,R.Medium);break;case"longTime":s=P(t,R.Long);break;case"fullTime":s=P(t,R.Full);break;case"short":const e=V(t,"shortTime"),i=V(t,"shortDate");s=K(D(t,R.Short),[e,i]);break;case"medium":const n=V(t,"mediumTime"),o=V(t,"mediumDate");s=K(D(t,R.Medium),[n,o]);break;case"long":const r=V(t,"longTime"),a=V(t,"longDate");s=K(D(t,R.Long),[r,a]);break;case"full":const c=V(t,"fullTime"),u=V(t,"fullDate");s=K(D(t,R.Full),[c,u])}return s&&(B[i][e]=s),s}function K(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function J(t,e,i="-",n,s){let o="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,o=i));let r=String(t);for(;r.length0||a>-i)&&(a+=i),t===H.Hours)0===a&&-12===i&&(a=12);else if(t===H.FractionalSeconds)return c=e,J(a,3).substr(0,c);var c;const u=M(r,I.MinusSign);return J(a,e,u,n,s)}}function Q(t,e,i=k.Format,s=!1){return function(o,r){return function(t,e,i,s,o,r){switch(i){case j.Months:return function(t,e,i){const s=(0,n.cg1)(t),o=z([s[n.wAp.MonthsFormat],s[n.wAp.MonthsStandalone]],e);return z(o,i)}(e,o,s)[t.getMonth()];case j.Days:return function(t,e,i){const s=(0,n.cg1)(t),o=z([s[n.wAp.DaysFormat],s[n.wAp.DaysStandalone]],e);return z(o,i)}(e,o,s)[t.getDay()];case j.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(r){const t=function(t){const e=(0,n.cg1)(t);return N(e),(e[n.wAp.ExtraData][2]||[]).map(t=>"string"==typeof t?F(t):[F(t[0]),F(t[1])])}(e),i=function(t,e,i){const s=(0,n.cg1)(t);N(s);const o=z([s[n.wAp.ExtraData][0],s[n.wAp.ExtraData][1]],e)||[];return z(o,i)||[]}(e,o,s),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=a>=e.hours&&c>=e.minutes,s=a0?Math.floor(s/60):Math.ceil(s/60);switch(t){case U.Short:return(s>=0?"+":"")+J(r,2,o)+J(Math.abs(s%60),2,o);case U.ShortGMT:return"GMT"+(s>=0?"+":"")+J(r,1,o);case U.Long:return"GMT"+(s>=0?"+":"")+J(r,2,o)+":"+J(Math.abs(s%60),2,o);case U.Extended:return 0===n?"Z":(s>=0?"+":"")+J(r,2,o)+":"+J(Math.abs(s%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function X(t){return Y(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function tt(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=X(i),e=function(t){const e=Y(t,0,1).getDay();return Y(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}return J(s,t,M(n,I.MinusSign))}}function et(t,e=!1){return function(i,n){return J(X(i).getFullYear(),t,M(n,I.MinusSign),e)}}const it={};function nt(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function st(t){return t instanceof Date&&!isNaN(t.valueOf())}class ot{}let rt=(()=>{class t extends ot{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(L(e||this.locale)(t)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.soG))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();function at(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let ct=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ut{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 lt=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new ut(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new ht(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const o=new ht(t,s);e.push(o)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ht{constructor(t,e){this.record=t,this.view=e}}let dt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new pt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){gt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){gt("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class pt{constructor(){this.$implicit=null,this.ngIf=null}}function gt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,n.AaK)(e)}'.`)}class ft{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let mt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new ft(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(mt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),wt=(()=>{class t{constructor(t,e,i){i._addDefault(new ft(t,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(mt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),_t=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.aQg),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),yt=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.TTD]}),t})();function At(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,n.AaK)(t)}'`)}class vt{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Tt{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Ct=new Tt,St=new vt;let Et=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,n.QGY)(e))return Ct;if((0,n.F4k)(e))return St;throw At(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO,16))},t.\u0275pipe=n.Yjl({name:"async",type:t,pure:!1}),t})(),kt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw At(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"uppercase",type:t,pure:!0}),t})(),xt=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return G(e,i,s||this.locale,n)}catch(o){throw At(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.soG,16))},t.\u0275pipe=n.Yjl({name:"date",type:t,pure:!0}),t})(),Rt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:ot,useClass:rt}]}),t})();const It="browser";function Ot(t){return t===It}function Pt(t){return"server"===t}let Dt=(()=>{class t{}return t.\u0275prov=(0,n.Yz7)({token:t,providedIn:"root",factory:()=>new Mt((0,n.LFG)(c),window)}),t})();class Mt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){const t=n.shadowRoot;if(t){const i=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(i)return i}n=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Lt(this.window.history)||Lt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Lt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Nt{}},29063:function(t,e,i){"use strict";i.d(e,{TP:function(){return I},eN:function(){return x},JF:function(){return q},WM:function(){return d},LE:function(){return m},Zn:function(){return S}});var n=i(61511),s=i(31572),o=i(40878),r=i(48318),a=i(436),c=i(43835),u=i(79996);class l{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return g(t)}encodeValue(t){return g(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function g(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function f(t){return`${t}`}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[s,o]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],r=i.get(s)||[];r.push(o),i.set(s,r)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(f(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(f(t.value));-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class b{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function w(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function _(t){return"undefined"!=typeof Blob&&t instanceof Blob}function y(t){return"undefined"!=typeof FormData&&t instanceof FormData}class A{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new b),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),u)),new A(i,n,o,{params:u,headers:c,context:l,reportProgress:a,responseType:s,withCredentials:r})}}var v=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class T{constructor(t,e=200,i="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class C extends T{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new C({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class S extends T{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new S({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class E extends T{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function k(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let x=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof A)n=t;else{let s,o;s=i.headers instanceof d?i.headers:new d(i.headers),i.params&&(o=i.params instanceof m?i.params:new m({fromObject:i.params})),n=new A(t,e,void 0!==i.body?i.body:null,{headers:s,context:i.context,params:o,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=(0,o.of)(n).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof A||"events"===i.observe)return s;const r=s.pipe((0,c.h)(t=>t instanceof S));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe((0,u.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe((0,u.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe((0,u.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe((0,u.U)(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,k(i,e))}post(t,e,i={}){return this.request("POST",t,k(i,e))}put(t,e,i={}){return this.request("PUT",t,k(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class R{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const I=new s.OlP("HTTP_INTERCEPTORS");let O=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const P=/^\)\]\}',?\n/;let D=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new r.y(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const o=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",o=new d(i.getAllResponseHeaders()),r=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new C({headers:o,status:e,statusText:n,url:r}),s},r=()=>{let{headers:n,status:s,statusText:r,url:a}=o(),c=null;204!==s&&(c=void 0===i.response?i.responseText:i.response),0===s&&(s=c?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(P,"");try{c=""!==c?JSON.parse(c):null}catch(l){c=t,u&&(u=!1,c={error:l,text:c})}}u?(e.next(new S({body:c,headers:n,status:s,statusText:r,url:a||void 0})),e.complete()):e.error(new E({error:c,headers:n,status:s,statusText:r,url:a||void 0}))},a=t=>{const{url:n}=o(),s=new E({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let c=!1;const u=n=>{c||(e.next(o()),c=!0);let s={type:v.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},l=t=>{let i={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",r),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",u),null!==n&&i.upload&&i.upload.addEventListener("progress",l)),i.send(n),e.next({type:v.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",r),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",u),null!==n&&i.upload&&i.upload.removeEventListener("progress",l)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const M=new s.OlP("XSRF_COOKIE_NAME"),L=new s.OlP("XSRF_HEADER_NAME");class N{}let z=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,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,n.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.Lbi),s.LFG(M))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(N),s.LFG(L))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(I,[]);this.chain=t.reduceRight((t,e)=>new R(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:F,useClass:O}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:M,useValue:e.cookieName}:[],e.headerName?{provide:L,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[F,{provide:I,useExisting:F,multi:!0},{provide:N,useClass:z},{provide:M,useValue:"XSRF-TOKEN"},{provide:L,useValue:"X-XSRF-TOKEN"}]}),t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[x,{provide:l,useClass:Z},D,{provide:h,useExisting:D}],imports:[[B.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},31572:function(t,e,i){"use strict";i.d(e,{deG:function(){return ni},tb:function(){return au},AFp:function(){return iu},ip1:function(){return tu},CZH:function(){return eu},hGG:function(){return tl},z2F:function(){return ju},sBO:function(){return Ya},Sil:function(){return wu},_Vd:function(){return ma},EJc:function(){return lu},SBq:function(){return ya},qLn:function(){return Tn},vpe:function(){return Mc},gxx:function(){return po},tBr:function(){return Ti},XFs:function(){return R},OlP:function(){return ii},zs3:function(){return xo},ZZ4:function(){return Za},aQg:function(){return qa},soG:function(){return uu},YKP:function(){return ic},v3s:function(){return Yu},h0i:function(){return ec},PXZ:function(){return Zu},R0b:function(){return Au},FiY:function(){return Ci},Lbi:function(){return ru},g9A:function(){return ou},n_E:function(){return Nc},Qsj:function(){return Ta},FYo:function(){return va},JOm:function(){return Rn},Tiy:function(){return Sa},q3G:function(){return gn},tp0:function(){return Si},EAV:function(){return Ju},Rgc:function(){return Qa},dDg:function(){return xu},DyG:function(){return si},GfV:function(){return Ea},s_b:function(){return sc},ifc:function(){return L},eFA:function(){return Bu},G48:function(){return zu},Gpc:function(){return p},f3M:function(){return yi},X6Q:function(){return Nu},_c5:function(){return Wu},VLi:function(){return Ou},c2e:function(){return cu},zSh:function(){return fo},wAp:function(){return na},vHH:function(){return m},EiD:function(){return dn},mCW:function(){return Ki},qzn:function(){return zi},JVY:function(){return Zi},pB0:function(){return Hi},eBb:function(){return qi},L6k:function(){return Bi},LAX:function(){return Ui},cg1:function(){return ta},Tjo:function(){return Qu},kL8:function(){return ea},yhl:function(){return Fi},dqk:function(){return B},sIi:function(){return Fo},CqO:function(){return cr},QGY:function(){return rr},F4k:function(){return ar},RDi:function(){return Tt},AaK:function(){return l},z3N:function(){return Ni},qOj:function(){return Io},TTD:function(){return bt},_Bn:function(){return pa},xp6:function(){return fs},uIk:function(){return Go},Tol:function(){return Rr},Gre:function(){return Kr},ekj:function(){return xr},Suo:function(){return Kc},Xpm:function(){return Q},lG2:function(){return ot},Yz7:function(){return y},cJS:function(){return A},oAB:function(){return it},Yjl:function(){return rt},Y36:function(){return $o},_UZ:function(){return er},GkF:function(){return sr},BQk:function(){return nr},ynx:function(){return ir},qZA:function(){return tr},TgZ:function(){return Xo},EpF:function(){return or},n5z:function(){return We},Ikx:function(){return Jr},LFG:function(){return _i},$8M:function(){return ti},NdJ:function(){return ur},CRH:function(){return Jc},kcU:function(){return be},O4$:function(){return me},oxw:function(){return gr},ALo:function(){return kc},lcZ:function(){return xc},xi3:function(){return Rc},Dn7:function(){return Ic},Hsn:function(){return br},F$t:function(){return mr},Q6J:function(){return Qo},s9C:function(){return wr},MGl:function(){return _r},hYB:function(){return yr},DdM:function(){return _c},VKq:function(){return yc},WLB:function(){return Ac},kEZ:function(){return vc},iGM:function(){return Yc},MAs:function(){return Jo},pYS:function(){return kn},evT:function(){return En},Jf7:function(){return Sn},CHM:function(){return Ut},oJD:function(){return fn},LSH:function(){return mn},B6R:function(){return W},kYT:function(){return nt},Udp:function(){return kr},WFA:function(){return lr},d8E:function(){return $r},YNc:function(){return Ko},W1O:function(){return Xc},_uU:function(){return qr},Oqu:function(){return Ur},hij:function(){return Hr},AsE:function(){return jr},lnq:function(){return Gr},HOy:function(){return Yr},xDo:function(){return Vr},Gf:function(){return Vc}});var n=i(55959),s=i(87570),o=i(48318),r=i(31906),a=i(1055);function c(t){for(let e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function u(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function l(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(l).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=c({__forward_ref__:c});function p(t){return t.__forward_ref__=p,t.toString=function(){return l(this())},t}function g(t){return f(t)?t():t}function f(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class m extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function b(t){return"string"==typeof t?t:null==t?"":String(t)}function w(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():b(t)}function _(t,e){const i=e?` in ${e}`:"";throw new m("201",`No provider for ${w(t)} found${i}`)}function y(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function A(t){return{providers:t.providers||[],imports:t.imports||[]}}function v(t){return T(t,S)||T(t,k)}function T(t,e){return t.hasOwnProperty(e)?t[e]:null}function C(t){return t&&(t.hasOwnProperty(E)||t.hasOwnProperty(x))?t[E]:null}const S=c({"\u0275prov":c}),E=c({"\u0275inj":c}),k=c({ngInjectableDef:c}),x=c({ngInjectorDef:c});var R=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let I;function O(t){const e=I;return I=t,e}function P(t,e,i){const n=v(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&R.Optional?null:void 0!==e?e:void _(l(t),"Injector")}function D(t){return{toString:t}.toString()}var M=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),L=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const N="undefined"!=typeof globalThis&&globalThis,z="undefined"!=typeof window&&window,F="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Z="undefined"!=typeof global&&global,B=N||Z||z||F,q={},U=[],H=c({"\u0275cmp":c}),j=c({"\u0275dir":c}),G=c({"\u0275pipe":c}),Y=c({"\u0275mod":c}),V=c({"\u0275loc":c}),K=c({"\u0275fac":c}),J=c({__NG_ELEMENT_ID__:c});let $=0;function Q(t){return D(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===M.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||U,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||L.Emulated,id:"c",styles:t.styles||U,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,o=t.pipes;return i.id+=$++,i.inputs=st(t.inputs,e),i.outputs=st(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(X):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(tt):null,i})}function W(t,e,i){const n=t.\u0275cmp;n.directiveDefs=()=>e.map(X),n.pipeDefs=()=>i.map(tt)}function X(t){return at(t)||function(t){return t[j]||null}(t)}function tt(t){return function(t){return t[G]||null}(t)}const et={};function it(t){return D(()=>{const e={type:t.type,bootstrap:t.bootstrap||U,declarations:t.declarations||U,imports:t.imports||U,exports:t.exports||U,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(et[t.id]=t.type),e})}function nt(t,e){return D(()=>{const i=ct(t,!0);i.declarations=e.declarations||U,i.imports=e.imports||U,i.exports=e.exports||U})}function st(t,e){if(null==t)return q;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),i[s]=n,e&&(e[s]=o)}return i}const ot=Q;function rt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function at(t){return t[H]||null}function ct(t,e){const i=t[Y]||null;if(!i&&!0===e)throw new Error(`Type ${l(t)} does not have '\u0275mod' property.`);return i}function ut(t){return Array.isArray(t)&&"object"==typeof t[1]}function lt(t){return Array.isArray(t)&&!0===t[1]}function ht(t){return 0!=(8&t.flags)}function dt(t){return 2==(2&t.flags)}function pt(t){return 1==(1&t.flags)}function gt(t){return null!==t.template}function ft(t,e){return t.hasOwnProperty(K)?t[K]:null}class mt{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function bt(){return wt}function wt(t){return t.type.prototype.ngOnChanges&&(t.setInput=yt),_t}function _t(){const t=At(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===q)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function yt(t,e,i,n){const s=At(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:q,current:null}),o=s.current||(s.current={}),r=s.previous,a=this.declaredInputs[i],c=r[a];o[a]=new mt(c&&c.currentValue,e,r===q),t[n]=e}function At(t){return t.__ngSimpleChanges__||null}let vt;function Tt(t){vt=t}function Ct(){return void 0!==vt?vt:"undefined"!=typeof document?document:void 0}function St(t){return!!t.listen}bt.ngInherit=!0;const Et={createRenderer:(t,e)=>Ct()};function kt(t){for(;Array.isArray(t);)t=t[0];return t}function xt(t,e){return kt(e[t])}function Rt(t,e){return kt(e[t.index])}function It(t,e){return t.data[e]}function Ot(t,e){return t[e]}function Pt(t,e){const i=e[t];return ut(i)?i:i[0]}function Dt(t){return 4==(4&t[2])}function Mt(t){return 128==(128&t[2])}function Lt(t,e){return null==e?null:t[e]}function Nt(t){t[18]=0}function zt(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Ft={lFrame:ue(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Zt(){return Ft.bindingsEnabled}function Bt(){return Ft.lFrame.lView}function qt(){return Ft.lFrame.tView}function Ut(t){return Ft.lFrame.contextLView=t,t[8]}function Ht(){let t=jt();for(;null!==t&&64===t.type;)t=t.parent;return t}function jt(){return Ft.lFrame.currentTNode}function Gt(t,e){const i=Ft.lFrame;i.currentTNode=t,i.isParent=e}function Yt(){return Ft.lFrame.isParent}function Vt(){Ft.lFrame.isParent=!1}function Kt(){return Ft.isInCheckNoChangesMode}function Jt(t){Ft.isInCheckNoChangesMode=t}function $t(){const t=Ft.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Qt(){return Ft.lFrame.bindingIndex}function Wt(){return Ft.lFrame.bindingIndex++}function Xt(t){const e=Ft.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function te(t,e){const i=Ft.lFrame;i.bindingIndex=i.bindingRootIndex=t,ee(e)}function ee(t){Ft.lFrame.currentDirectiveIndex=t}function ie(t){const e=Ft.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ne(){return Ft.lFrame.currentQueryIndex}function se(t){Ft.lFrame.currentQueryIndex=t}function oe(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function re(t,e,i){if(i&R.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&R.Host||(n=oe(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=Ft.lFrame=ce();return n.currentTNode=e,n.lView=t,!0}function ae(t){const e=ce(),i=t[1];Ft.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function ce(){const t=Ft.lFrame,e=null===t?null:t.child;return null===e?ue(t):e}function ue(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function le(){const t=Ft.lFrame;return Ft.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const he=le;function de(){const t=le();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function pe(){return Ft.lFrame.selectedIndex}function ge(t){Ft.lFrame.selectedIndex=t}function fe(){const t=Ft.lFrame;return It(t.tView,t.selectedIndex)}function me(){Ft.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function be(){Ft.lFrame.currentNamespace=null}function we(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(r)}finally{}}}else try{o.call(r)}finally{}}class Ce{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Se(t,e,i){const n=St(t);let s=0;for(;se){r=o-1;break}}}for(;o>16,n=e;for(;i>0;)n=n[15],i--;return n}let De=!0;function Me(t){const e=De;return De=t,e}let Le=0;function Ne(t,e){const i=Fe(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,ze(n.data,t),ze(e,null),ze(n.blueprint,null));const s=Ze(t,e),o=t.injectorIndex;if(Ie(s)){const t=Oe(s),i=Pe(s,e),n=i[1].data;for(let s=0;s<8;s++)e[o+s]=i[t+s]|n[t+s]}return e[o+8]=s,o}function ze(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Fe(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Ze(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return-1;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function Be(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(J)&&(n=i[J]),null==n&&(n=i[J]=Le++);const s=255&n;e.data[t+(s>>5)]|=1<=0?255&e:Ge:e}(i);if("function"==typeof o){if(!re(e,t,n))return n&R.Host?qe(s,i,n):Ue(e,i,n,s);try{const t=o(n);if(null!=t||n&R.Optional)return t;_(i)}finally{he()}}else if("number"==typeof o){let s=null,r=Fe(t,e),a=-1,c=n&R.Host?e[16][6]:null;for((-1===r||n&R.SkipSelf)&&(a=-1===r?Ze(t,e):e[r+8],-1!==a&&$e(n,!1)?(s=e[1],r=Oe(a),e=Pe(a,e)):r=-1);-1!==r;){const t=e[1];if(Je(o,r,t.data)){const t=Ye(r,e,i,s,n,c);if(t!==je)return t}a=e[r+8],-1!==a&&$e(n,e[1].data[r+8]===c)&&Je(o,r,e)?(s=t,r=Oe(a),e=Pe(a,e)):r=-1}}}return Ue(e,i,n,s)}const je={};function Ge(){return new Qe(Ht(),Bt())}function Ye(t,e,i,n,s,o){const r=e[1],a=r.data[t+8],c=Ve(a,r,i,null==n?dt(a)&&De:n!=r&&0!=(3&a.type),s&R.Host&&o===a);return null!==c?Ke(e,r,c,a):je}function Ve(t,e,i,n,s){const o=t.providerIndexes,r=e.data,a=1048575&o,c=t.directiveStart,u=o>>20,l=s?a+u:t.directiveEnd;for(let h=n?a:a+u;h=c&&t.type===i)return h}if(s){const t=r[c];if(t&>(t)&&t.type===i)return c}return null}function Ke(t,e,i,n){let s=t[i];const o=e.data;if(s instanceof Ce){const r=s;r.resolving&&function(t,e){throw new m("200",`Circular dependency in DI detected for ${t}`)}(w(o[i]));const a=Me(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?O(r.injectImpl):null;re(t,n,R.Default);try{s=t[i]=r.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:o}=e.type.prototype;if(n){const n=wt(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),o&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,o),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,o))}(i,o[i],e)}finally{null!==c&&O(c),Me(a),r.resolving=!1,he()}}return s}function Je(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[K]||Xe(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[K]||Xe(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function Xe(t){return f(t)?()=>{const e=Xe(g(t));return e&&e()}:ft(t)}function ti(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class ii{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=y({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ni=new ii("AnalyzeForEntryComponents"),si=Function;function oi(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?ri(t,e):e(t))}function ai(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function ci(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ui(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function hi(t,e){const i=di(t,e);if(i>=0)return t[1|i]}function di(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),o=t[i<<1];if(e===o)return i<<1;o>e?s=i:n=i+1}return~(s<<1)}(t,e)}const pi={},gi=/\n/gm,fi=c({provide:String,useValue:c});let mi;function bi(t){const e=mi;return mi=t,e}function wi(t,e=R.Default){if(void 0===mi)throw new Error("inject() must be called from an injection context");return null===mi?P(t,void 0,e):mi.get(t,e&R.Optional?null:void 0,e)}function _i(t,e=R.Default){return(I||wi)(g(t),e)}const yi=_i;function Ai(t){const e=[];for(let i=0;i({token:t})),-1),Ci=vi(ei("Optional"),8),Si=vi(ei("SkipSelf"),4);let Ei,ki;function xi(t){var e;return(null===(e=function(){if(void 0===Ei&&(Ei=null,B.trustedTypes))try{Ei=B.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Ei}())||void 0===e?void 0:e.createHTML(t))||t}function Ri(t){var e;return(null===(e=function(){if(void 0===ki&&(ki=null,B.trustedTypes))try{ki=B.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return ki}())||void 0===e?void 0:e.createHTML(t))||t}class Ii{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Oi extends Ii{getTypeName(){return"HTML"}}class Pi extends Ii{getTypeName(){return"Style"}}class Di extends Ii{getTypeName(){return"Script"}}class Mi extends Ii{getTypeName(){return"URL"}}class Li extends Ii{getTypeName(){return"ResourceURL"}}function Ni(t){return t instanceof Ii?t.changingThisBreaksApplicationSecurity:t}function zi(t,e){const i=Fi(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Fi(t){return t instanceof Ii&&t.getTypeName()||null}function Zi(t){return new Oi(t)}function Bi(t){return new Pi(t)}function qi(t){return new Di(t)}function Ui(t){return new Mi(t)}function Hi(t){return new Li(t)}class ji{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(xi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Gi{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=xi(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=xi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0Ki(t.trim())).join(", ")),this.buf.push(" ",e,'="',ln(r),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();en.hasOwnProperty(e)&&!Qi.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(ln(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const cn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,un=/([^\#-~ |!])/g;function ln(t){return t.replace(/&/g,"&").replace(cn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(un,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let hn;function dn(t,e){let i=null;try{hn=hn||function(t){const e=new Gi(t);return function(){try{return!!(new window.DOMParser).parseFromString(xi(""),"text/html")}catch(t){return!1}}()?new ji(e):e}(t);let n=e?String(e):"";i=hn.getInertBodyElement(n);let s=5,o=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=o,o=i.innerHTML,i=hn.getInertBodyElement(n)}while(n!==o);return xi((new an).sanitizeChildren(pn(i)||i))}finally{if(i){const t=pn(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function pn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var gn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function fn(t){const e=bn();return e?Ri(e.sanitize(gn.HTML,t)||""):zi(t,"HTML")?Ri(Ni(t)):dn(Ct(),b(t))}function mn(t){const e=bn();return e?e.sanitize(gn.URL,t)||"":zi(t,"URL")?Ni(t):Ki(b(t))}function bn(){const t=Bt();return t&&t[12]}function wn(t,e){t.__ngContext__=e}function _n(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function yn(t){return t.ngDebugContext}function An(t){return t.ngOriginalError}function vn(t,...e){t.error(...e)}class Tn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||vn}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?yn(t)?yn(t):this._findContext(An(t)):null}_findOriginalError(t){let e=An(t);for(;e&&An(e);)e=An(e);return e}}const Cn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B))();function Sn(t){return t.ownerDocument.defaultView}function En(t){return t.ownerDocument}function kn(t){return t.ownerDocument.body}function xn(t){return t instanceof Function?t():t}var Rn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function In(t,e){return(void 0)(t,e)}function On(t){const e=t[3];return lt(e)?e[3]:e}function Pn(t){return Mn(t[13])}function Dn(t){return Mn(t[4])}function Mn(t){for(;null!==t&&!lt(t);)t=t[4];return t}function Ln(t,e,i,n,s){if(null!=n){let o,r=!1;lt(n)?o=n:ut(n)&&(r=!0,n=n[0]);const a=kt(n);0===t&&null!==i?null==s?Hn(e,i,a):Un(e,i,a,s||null,!0):1===t&&null!==i?Un(e,i,a,s||null,!0):2===t?function(t,e,i){const n=Gn(t,e);n&&function(t,e,i,n){St(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,r):3===t&&e.destroyNode(a),null!=o&&function(t,e,i,n,s){const o=i[7];o!==kt(i)&&Ln(e,t,n,o,s);for(let r=10;r0&&(t[i-1][4]=n[4]);const r=ci(t,10+e);Xn(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=r[19];null!==a&&a.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function Zn(t,e){if(!(256&e[2])){const i=e[11];St(i)&&i.destroyNode&&Xn(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return Bn(t[1],t);for(;e;){let i=null;if(ut(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)ut(e)&&Bn(e[1],e),e=e[3];null===e&&(e=t),ut(e)&&Bn(e[1],e),i=e&&e[4]}e=i}}(e)}}function Bn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=c]():n[s=-c].unsubscribe(),o+=2}else{const t=n[s=i[o+1]];i[o].call(t)}if(null!==n){for(let t=s+1;to?"":s[l+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==ns(e,u,0)||2&n&&u!==t){if(cs(n))return!1;r=!0}}}}else{if(!r&&!cs(n)&&!cs(c))return!1;if(r&&cs(c))continue;r=!1,n=c|1&n}}return cs(n)||r}function cs(t){return 0==(1&t)}function us(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+r:4&n&&(s+=" "+r);else""===s||cs(r)||(e+=ds(o,s),s=""),n=r,o=o||!cs(n);i++}return""!==s&&(e+=ds(o,s)),e}const gs={};function fs(t){ms(qt(),Bt(),pe()+t,Kt())}function ms(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&_e(e,n,i)}else{const n=t.preOrderHooks;null!==n&&ye(e,n,0,i)}ge(i)}function bs(t,e){return t<<17|e<<2}function ws(t){return t>>17&32767}function _s(t){return 2|t}function ys(t){return(131068&t)>>2}function As(t,e){return-131069&t|e<<2}function vs(t){return 1|t}function Ts(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;n20&&ms(t,e,20,Kt()),i(n,s)}finally{ge(o)}}function Os(t,e,i){if(ht(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=o&&i.push(o),i.push(n,s,r)}}function qs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Us(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Hs(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&Qs(i)}}function Qs(t){for(let i=Pn(t);null!==i;i=Dn(i))for(let t=10;t0&&Qs(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&Qs(n)}}function Ws(t,e){const i=Pt(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function oo(t){return t[7]||(t[7]=[])}function ro(t){return t.cleanup||(t.cleanup=[])}function ao(t,e,i){return(null===t||gt(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function co(t,e){const i=t[9],n=i?i.get(Tn,null):null;n&&n.handleError(e)}function uo(t,e,i,n,s){for(let o=0;othis.processProvider(i,t,e)),ri([t],t=>this.processInjectorType(t,[],s)),this.records.set(po,Co(void 0,this));const o=this.records.get(fo);this.scope=null!=o?o.value:null,this.source=n||("object"==typeof t?null:l(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=pi,i=R.Default){this.assertNotDestroyed();const n=bi(this);try{if(!(i&R.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof ii)&&v(t);e=i&&this.injectableDefInScope(i)?Co(vo(t),mo):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&R.Self?_o():this.parent).get(t,e=i&R.Optional&&e===pi?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(l(t)),n)throw o;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=l(e);if(Array.isArray(e))s=e.map(l).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):l(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(gi,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{bi(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(l(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=g(t)))return!1;let n=C(t);const s=null==n&&t.ngModule||void 0,o=void 0===s?t:s,r=-1!==i.indexOf(o);if(void 0!==s&&(n=C(s)),null==n)return!1;if(null!=n.imports&&!r){let t;i.push(o);try{ri(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||U))}}this.injectorDefTypes.add(o);const a=ft(o)||(()=>new o);this.records.set(o,Co(a,mo));const c=n.providers;if(null!=c&&!r){const e=t;ri(c,t=>this.processProvider(t,e,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=Eo(t=g(t))?t:g(t&&t.provide);const s=function(t,e,i){return So(t)?Co(void 0,t.useValue):Co(To(t),mo)}(t);if(Eo(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=Co(void 0,mo,!0),e.factory=()=>Ai(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===mo&&(e.value=bo,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=g(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function vo(t){const e=v(t),i=null!==e?e.factory:ft(t);if(null!==i)return i;if(t instanceof ii)throw new Error(`Token ${l(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=ui(e,"?");throw new Error(`Can't resolve all parameters for ${l(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[S]||t[k]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function To(t,e,i){let n;if(Eo(t)){const e=g(t);return ft(e)||vo(e)}if(So(t))n=()=>g(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...Ai(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>_i(g(t.useExisting));else{const e=g(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ft(e)||vo(e);n=()=>new e(...Ai(t.deps))}var s;return n}function Co(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function So(t){return null!==t&&"object"==typeof t&&fi in t}function Eo(t){return"function"==typeof t}const ko=function(t,e,i){return function(t,e=null,i=null,n){const s=yo(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let xo=(()=>{class t{static create(t,e){return Array.isArray(t)?ko(t,e,""):ko(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=pi,t.NULL=new go,t.\u0275prov=y({token:t,providedIn:"any",factory:()=>_i(po)}),t.__NG_ELEMENT_ID__=-1,t})();function Ro(t,e){we(_n(t)[1],Ht())}function Io(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s;if(gt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=Oo(t.inputs),e.declaredInputs=Oo(t.declaredInputs),e.outputs=Oo(t.outputs);const i=s.hostBindings;i&&Mo(t,i);const o=s.viewQuery,r=s.contentQueries;if(o&&Po(t,o),r&&Do(t,r),u(t.inputs,s.inputs),u(t.declaredInputs,s.declaredInputs),u(t.outputs,s.outputs),gt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=xe(s.hostAttrs,i=xe(i,s.hostAttrs))}}(n)}function Oo(t){return t===q?{}:t===U?[]:t}function Po(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Do(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function Mo(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let Lo=null;function No(){if(!Lo){const t=B.Symbol;if(t&&t.iterator)Lo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(kt(t[n.index])):n.index;if(St(i)){let r=null;if(!a&&c&&(r=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let o=0;oi?t[i]:null}"string"==typeof t&&(o+=2)}return null}(t,e,s,n.index)),null!==r)(r.__ngLastListenerFn__||r).__ngNextListenerFn__=o,r.__ngLastListenerFn__=o,h=!1;else{o=pr(n,e,0,o,!1);const t=i.listen(p,s,o);l.push(o,t),u&&u.push(s,f,g,g+1)}}else o=pr(n,e,0,o,!0),p.addEventListener(s,o,r),l.push(o),u&&u.push(s,f,g,r)}else o=pr(n,e,0,o,!1);const d=n.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,Ft.lFrame.contextLView))[8]}(t)}function fr(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Tr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Cr(t){return t.substring(Tr.key,Tr.keyEnd)}function Sr(t,e){const i=Tr.textEnd;return i===e?-1:(e=Tr.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Tr.key=e,i),Er(t,e,i))}function Er(t,e,i){for(;e=0;i=Sr(e,i))li(t,Cr(e),!0)}function Or(t,e,i,n){const s=Bt(),o=qt(),r=Xt(2);o.firstUpdatePass&&Mr(o,t,r,n),e!==gs&&qo(s,r,e)&&zr(o,o.data[pe()],s,s[11],t,s[r+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=l(Ni(t)))),t}(e,i),n,r)}function Pr(t,e,i,n){const s=qt(),o=Xt(2);s.firstUpdatePass&&Mr(s,null,o,n);const r=Bt();if(i!==gs&&qo(r,o,i)){const a=s.data[pe()];if(Br(a,n)&&!Dr(s,o)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=h(t,i||"")),Wo(s,a,r,i,n)}else!function(t,e,i,n,s,o,r,a){s===gs&&(s=U);let c=0,u=0,l=0=t.expandoStartIndex}function Mr(t,e,i,n){const s=t.data;if(null===s[i+1]){const o=s[pe()],r=Dr(t,i);Br(o,n)&&null===e&&!r&&(e=!1),e=function(t,e,i,n){const s=ie(t);let o=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=Nr(i=Lr(null,t,e,i,n),e.attrs,n),o=null);else{const r=e.directiveStylingLast;if(-1===r||t[r]!==s)if(i=Lr(s,t,e,i,n),null===o){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==ys(n))return t[ws(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=Lr(null,t,e,i[1],n),i=Nr(i,e.attrs,n),function(t,e,i,n){t[ws(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else o=function(t,e,i){let n;const s=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(l=!0)}else u=i;if(s)if(0!==c){const e=ws(t[a+1]);t[n+1]=bs(e,a),0!==e&&(t[e+1]=As(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=bs(a,0),0!==a&&(t[a+1]=As(t[a+1],n)),a=n;else t[n+1]=bs(c,0),0===a?a=n:t[c+1]=As(t[c+1],n),c=n;l&&(t[n+1]=_s(t[n+1])),Ar(t,u,n,!0),Ar(t,u,n,!1),function(t,e,i,n,s){const o=s?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&di(o,e)>=0&&(i[n+1]=vs(i[n+1]))}(e,u,t,n,o),r=bs(a,c),o?e.classBindings=r:e.styleBindings=r}(s,o,e,i,r,n)}}function Lr(t,e,i,n,s){let o=null;const r=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],o=Array.isArray(e),c=o?e[1]:e,u=null===c;let l=i[s+1];l===gs&&(l=u?U:void 0);let h=u?hi(l,n):c===n?l:void 0;if(o&&!Zr(h)&&(h=hi(e,n)),Zr(h)&&(a=h,r))return a;const d=t[s+1];s=r?ws(d):ys(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=hi(t,n))}return a}function Zr(t){return void 0!==t}function Br(t,e){return 0!=(t.flags&(e?16:32))}function qr(t,e=""){const i=Bt(),n=qt(),s=t+20,o=n.firstCreatePass?Ss(n,s,1,e,null):n.data[s],r=i[s]=function(t,e){return St(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Kn(n,i,r,o),Gt(o,!1)}function Ur(t){return Hr("",t,""),Ur}function Hr(t,e,i){const n=Bt(),s=Yo(n,t,e,i);return s!==gs&&lo(n,pe(),s),Hr}function jr(t,e,i,n,s){const o=Bt(),r=Vo(o,t,e,i,n,s);return r!==gs&&lo(o,pe(),r),jr}function Gr(t,e,i,n,s,o,r){const a=Bt(),c=function(t,e,i,n,s,o,r,a){const c=Ho(t,Qt(),i,s,r);return Xt(3),c?e+b(i)+n+b(s)+o+b(r)+a:gs}(a,t,e,i,n,s,o,r);return c!==gs&&lo(a,pe(),c),Gr}function Yr(t,e,i,n,s,o,r,a,c){const u=Bt(),l=function(t,e,i,n,s,o,r,a,c,u){const l=jo(t,Qt(),i,s,r,c);return Xt(4),l?e+b(i)+n+b(s)+o+b(r)+a+b(c)+u:gs}(u,t,e,i,n,s,o,r,a,c);return l!==gs&&lo(u,pe(),l),Yr}function Vr(t,e,i,n,s,o,r,a,c,u,l){const h=Bt(),d=function(t,e,i,n,s,o,r,a,c,u,l,h){const d=Qt();let p=jo(t,d,i,s,r,c);return p=qo(t,d+4,l)||p,Xt(5),p?e+b(i)+n+b(s)+o+b(r)+a+b(c)+u+b(l)+h:gs}(h,t,e,i,n,s,o,r,a,c,u,l);return d!==gs&&lo(h,pe(),d),Vr}function Kr(t,e,i){Pr(li,Ir,Yo(Bt(),t,e,i),!0)}function Jr(t,e,i){const n=Bt();return qo(n,Wt(),e)&&Fs(qt(),fe(),n,t,e,n[11],i,!0),Jr}function $r(t,e,i){const n=Bt();if(qo(n,Wt(),e)){const s=qt(),o=fe();Fs(s,o,n,t,e,ao(ie(s.data),o,n),i,!0)}return $r}const Qr=void 0;var Wr=["en",[["a","p"],["AM","PM"],Qr],[["AM","PM"],Qr,Qr],[["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"]],Qr,[["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"]],Qr,[["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}",Qr,"{1} 'at' {0}",Qr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Xr={};function ta(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=ia(e);if(i)return i;const n=e.split("-")[0];if(i=ia(n),i)return i;if("en"===n)return Wr;throw new Error(`Missing locale data for the locale "${t}".`)}function ea(t){return ta(t)[na.PluralCase]}function ia(t){return t in Xr||(Xr[t]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[t]),Xr[t]}var na=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let sa="en-US";function oa(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(sa=t.toLowerCase().replace(/_/g,"-"))}function ra(t,e,i,n,s){if(t=g(t),Array.isArray(t))for(let o=0;o>20;if(Eo(t)||!t.multi){const n=new Ce(c,s,$o),p=ua(a,e,s?l:l+d,h);-1===p?(Be(Ne(u,r),o,a),aa(o,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(n),r.push(n)):(i[p]=n,r[p]=n)}else{const p=ua(a,e,l+d,h),g=ua(a,e,l,l+d),f=p>=0&&i[p],m=g>=0&&i[g];if(s&&!m||!s&&!f){Be(Ne(u,r),o,a);const l=function(t,e,i,n,s){const o=new Ce(t,i,$o);return o.multi=[],o.index=e,o.componentProviders=0,ca(o,s,n&&!i),o}(s?ha:la,i.length,s,n,c);!s&&m&&(i[g].providerFactory=l),aa(o,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(l),r.push(l)}else aa(o,t,p>-1?p:g,ca(i[s?g:p],c,!s&&n));!s&&n&&m&&i[g].componentProviders++}}}function aa(t,e,i,n){const s=Eo(e);if(s||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const r=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=r.indexOf(i);-1===t?r.push(i,[n,o]):r[t+1].push(n,o)}else r.push(i,o)}}}function ca(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function ua(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=qt();if(n.firstCreatePass){const s=gt(t);ra(i,n.data,n.blueprint,s,!0),ra(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class ga{}class fa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${l(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ma=(()=>{class t{}return t.NULL=new fa,t})();function ba(...t){}function wa(t,e){return new ya(Rt(t,e))}const _a=function(){return wa(Ht(),Bt())};let ya=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=_a,t})();function Aa(t){return t instanceof ya?t.nativeElement:t}class va{}let Ta=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ca(),t})();const Ca=function(){const t=Bt(),e=Pt(Ht().index,t);return function(t){return t[11]}(ut(e)?e:t)};let Sa=(()=>{class t{}return t.\u0275prov=y({token:t,providedIn:"root",factory:()=>null}),t})();class Ea{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const ka=new Ea("12.0.5");class xa{constructor(){}supports(t){return Fo(t)}create(t){return new Ia(t)}}const Ra=(t,e)=>e;class Ia{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ra}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(o&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),o=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new Oa(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Da),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Da),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Oa{constructor(t,e){this.item=t,this.trackById=e,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 Pa{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Da{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Pa,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ma(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;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(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new za(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class za{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Fa(){return new Za([new xa])}let Za=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Fa()),deps:[[t,new Si,new Ci]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=y({token:t,providedIn:"root",factory:Fa}),t})();function Ba(){return new qa([new La])}let qa=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Ba()),deps:[[t,new Si,new Ci]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=y({token:t,providedIn:"root",factory:Ba}),t})();function Ua(t,e,i,n,s=!1){for(;null!==i;){const o=e[i.index];if(null!==o&&n.push(kt(o)),lt(o))for(let t=10;t-1&&(Fn(t,i),ci(e,i))}this._attachedToViewContainer=!1}Zn(this._lView[1],this._lView)}onDestroy(t){Ns(this._lView[1],this._lView,null,t)}markForCheck(){to(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){eo(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Jt(!0);try{eo(t,e,i)}finally{Jt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Xn(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class ja extends Ha{constructor(t){super(t),this._view=t}detectChanges(){io(this._view)}checkNoChanges(){!function(t){Jt(!0);try{io(t)}finally{Jt(!1)}}(this._view)}get context(){return null}}const Ga=function(t){return function(t,e,i){if(dt(t)&&!i){const i=Pt(t.index,e);return new Ha(i,i)}return 47&t.type?new Ha(e[16],e):null}(Ht(),Bt(),16==(16&t))};let Ya=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ga,t})();const Va=[new La],Ka=new Za([new xa]),Ja=new qa(Va),$a=function(){return tc(Ht(),Bt())};let Qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=$a,t})();const Wa=Qa,Xa=class extends Wa{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Cs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),ks(e,i,t),new Ha(i)}};function tc(t,e){return 4&t.type?new Xa(e,t,wa(t,e)):null}class ec{}class ic{}const nc=function(){return uc(Ht(),Bt())};let sc=(()=>{class t{}return t.__NG_ELEMENT_ID__=nc,t})();const oc=sc,rc=class extends oc{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return wa(this._hostTNode,this._hostLView)}get injector(){return new Qe(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ze(this._hostTNode,this._hostLView);if(Ie(t)){const e=Pe(t,this._hostLView),i=Oe(t);return new Qe(e[1].data[i+8],e)}return new Qe(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=ac(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const o=i||this.parentInjector;if(!s&&null==t.ngModule&&o){const t=o.get(ec,null);t&&(s=t)}const r=t.create(o,n,void 0,s);return this.insert(r.hostView,e),r}insert(t,e){const i=t._lView,n=i[1];if(lt(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new rc(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(t,e,i,n){const s=10+n,o=i.length;n>0&&(i[s-1][4]=e),nCn});class gc extends ga{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ps).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return dc(this.componentDef.inputs)}get outputs(){return dc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const o=t.get(i,lc,s);return o!==lc||n===lc?o:e.get(i,n,s)}}}(t,n.injector):t,o=s.get(va,Et),r=s.get(Sa,null),a=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function(t,e,i){if(St(t))return t.selectRootElement(e,i===L.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):Nn(o.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,h={components:[],scheduler:Cn,clean:so,playerHandler:null,flags:0},d=Ls(0,null,null,1,0,null,null,null,null,null),p=Cs(null,d,h,l,null,null,o,a,r,s);let g,f;ae(p);try{const t=function(t,e,i,n,s,o){const r=i[1];i[20]=t;const a=Ss(r,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(ho(a,c,!0),null!==t&&(Se(s,t,c),null!==a.classes&&is(s,t,a.classes),null!==a.styles&&es(s,t,a.styles)));const u=n.createRenderer(t,e),l=Cs(i,Ms(e),null,e.onPush?64:16,i[20],a,n,u,null,null);return r.firstCreatePass&&(Be(Ne(a,i),r,e.type),Us(r,a),js(a,i.length,1)),Xs(i,l),i[20]=l}(u,this.componentDef,p,o,a);if(u)if(i)Se(a,u,["ng-version",ka.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&is(a,u,e.join(" "))}if(f=It(d,20),void 0!==e){const t=f.projection=[];for(let i=0;it(r,e)),e.contentQueries){const t=Ht();e.contentQueries(1,r,t.directiveStart)}const a=Ht();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(ge(a.index),Bs(i[1],a,0,a.directiveStart,a.directiveEnd,e),qs(e,r)),r}(t,this.componentDef,p,h,[Ro]),ks(d,p,null)}finally{de()}return new fc(this.componentType,g,wa(f,p),p,f)}}class fc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new ja(n),this.componentType=t}get injector(){return new Qe(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const mc=new Map;class bc extends ec{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new hc(this);const i=ct(t),n=t[V]||null;n&&oa(n),this._bootstrapComponents=xn(i.bootstrap),this._r3Injector=yo(t,e,[{provide:ec,useValue:this},{provide:ma,useValue:this.componentFactoryResolver}],l(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=xo.THROW_IF_NOT_FOUND,i=R.Default){return t===xo||t===ec||t===po?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class wc extends ic{constructor(t){super(),this.moduleType=t,null!==ct(t)&&function(t){const e=new Set;!function t(i){const n=ct(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${l(e)} vs ${l(e.name)}`)}(s,mc.get(s),i),mc.set(s,i));const o=xn(n.imports);for(const r of o)e.has(r)||(e.add(r),t(r))}(t)}(t)}create(t){return new bc(this.moduleType,t)}}function _c(t,e,i){const n=$t()+t,s=Bt();return s[n]===gs?Bo(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function yc(t,e,i,n){return Cc(Bt(),$t(),t,e,i,n)}function Ac(t,e,i,n,s){return Sc(Bt(),$t(),t,e,i,n,s)}function vc(t,e,i,n,s,o){return Ec(Bt(),$t(),t,e,i,n,s,o)}function Tc(t,e){const i=t[e];return i===gs?void 0:i}function Cc(t,e,i,n,s,o){const r=e+i;return qo(t,r,s)?Bo(t,r+1,o?n.call(o,s):n(s)):Tc(t,r+1)}function Sc(t,e,i,n,s,o,r){const a=e+i;return Uo(t,a,s,o)?Bo(t,a+2,r?n.call(r,s,o):n(s,o)):Tc(t,a+2)}function Ec(t,e,i,n,s,o,r,a){const c=e+i;return Ho(t,c,s,o,r)?Bo(t,c+3,a?n.call(a,s,o,r):n(s,o,r)):Tc(t,c+3)}function kc(t,e){const i=qt();let n;const s=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new m("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const o=n.factory||(n.factory=ft(n.type)),r=O($o);try{const t=Me(!1),e=o();return Me(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Bt(),s,e),e}finally{O(r)}}function xc(t,e,i){const n=t+20,s=Bt(),o=Ot(s,n);return Pc(s,Oc(s,n)?Cc(s,$t(),e,o.transform,i,o):o.transform(i))}function Rc(t,e,i,n){const s=t+20,o=Bt(),r=Ot(o,s);return Pc(o,Oc(o,s)?Sc(o,$t(),e,r.transform,i,n,r):r.transform(i,n))}function Ic(t,e,i,n,s){const o=t+20,r=Bt(),a=Ot(r,o);return Pc(r,Oc(r,o)?Ec(r,$t(),e,a.transform,i,n,s,a):a.transform(i,n,s))}function Oc(t,e){return t[1].data[e].pure}function Pc(t,e){return zo.isWrapped(e)&&(e=zo.unwrap(e),t[Qt()]=gs),e}function Dc(t){return e=>{setTimeout(t,void 0,e)}}const Mc=class extends n.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var n,o,r;let a=t,c=e||(()=>null),u=i;if(t&&"object"==typeof t){const e=t;a=null===(n=e.next)||void 0===n?void 0:n.bind(e),c=null===(o=e.error)||void 0===o?void 0:o.bind(e),u=null===(r=e.complete)||void 0===r?void 0:r.bind(e)}this.__isAsync&&(c=Dc(c),a&&(a=Dc(a)),u&&(u=Dc(u)));const l=super.subscribe({next:a,error:c,complete:u});return t instanceof s.w&&t.add(l),l}};function Lc(){return this._results[No()]()}class Nc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=No(),i=Nc.prototype;i[e]||(i[e]=Lc)}get changes(){return this._changes||(this._changes=new Mc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){this.dirty=!1;const i=oi(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(r[t/2]);else{const s=o[t+1],r=e[-i];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=ba,this.reject=ba,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e.subscribe({complete:t,error:i})});t.push(i)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(_i(tu,8))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const iu=new ii("AppId"),nu={provide:iu,useFactory:function(){return`${su()}${su()}${su()}`},deps:[]};function su(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ou=new ii("Platform Initializer"),ru=new ii("Platform ID"),au=new ii("appBootstrapListener");let cu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const uu=new ii("LocaleId"),lu=new ii("DefaultCurrencyCode");class hu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const du=function(t){return new wc(t)},pu=du,gu=function(t){return Promise.resolve(du(t))},fu=function(t){const e=du(t),i=xn(ct(t).declarations).reduce((t,e)=>{const i=at(e);return i&&t.push(new gc(i)),t},[]);return new hu(e,i)},mu=fu,bu=function(t){return Promise.resolve(fu(t))};let wu=(()=>{class t{constructor(){this.compileModuleSync=pu,this.compileModuleAsync=gu,this.compileModuleAndAllComponentsSync=mu,this.compileModuleAndAllComponentsAsync=bu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const _u=(()=>Promise.resolve(0))();function yu(t){"undefined"==typeof Zone?_u.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Au{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Mc(!1),this.onMicrotaskEmpty=new Mc(!1),this.onStable=new Mc(!1),this.onError=new Mc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!i&&e,this.shouldCoalesceRunChangeDetection=i,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=B.requestAnimationFrame,e=B.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(B,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Cu(t),t.isCheckStableRunning=!0,Tu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Cu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,s,o,r,a)=>{try{return Su(t),i.invokeTask(s,o,r,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),Eu(t)}},onInvoke:(i,n,s,o,r,a,c)=>{try{return Su(t),i.invoke(s,o,r,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),Eu(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Cu(t),Tu(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Au.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Au.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+n,t,vu,ba,ba);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const vu={};function Tu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Cu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Su(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Eu(t){t._nesting--,Tu(t)}class ku{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Mc,this.onMicrotaskEmpty=new Mc,this.onStable=new Mc,this.onError=new Mc}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let xu=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Au.assertNotInAngularZone(),yu(()=>{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())yu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!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(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(_i(Au))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})(),Ru=(()=>{class t{constructor(){this._applications=new Map,Du.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Du.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();class Iu{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}function Ou(t){Du=t}let Pu,Du=new Iu,Mu=!0,Lu=!1;function Nu(){return Lu=!0,Mu}function zu(){if(Lu)throw new Error("Cannot enable prod mode after platform setup.");Mu=!1}const Fu=new ii("AllowMultipleToken");class Zu{constructor(t,e){this.name=t,this.token=e}}function Bu(t,e,i=[]){const n=`Platform: ${e}`,s=new ii(n);return(e=[])=>{let o=qu();if(!o||o.injector.get(Fu,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:fo,useValue:"platform"});!function(t){if(Pu&&!Pu.destroyed&&!Pu.injector.get(Fu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Pu=t.get(Uu);const e=t.get(ou,null);e&&e.forEach(t=>t())}(xo.create({providers:t,name:n}))}return function(t){const e=qu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function qu(){return Pu&&!Pu.destroyed?Pu:null}let Uu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new ku:("zone.js"===t?void 0:t)||new Au({enableLongStackTrace:Nu(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:Au,useValue:i}];return i.run(()=>{const e=xo.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),o=s.injector.get(Tn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{o.handleError(t)}});s.onDestroy(()=>{Gu(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return rr(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(o,i,()=>{const t=s.injector.get(eu);return t.runInitializers(),t.donePromise.then(()=>(oa(s.injector.get(uu,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=Hu({},e);return function(t,e,i){const n=new wc(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(ju);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${l(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(_i(xo))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function Hu(t,e){return Array.isArray(e)?e.reduce(Hu,t):Object.assign(Object.assign({},t),e)}let ju=(()=>{class t{constructor(t,e,i,n,s){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new o.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new o.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Au.assertNotInAngularZone(),yu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{Au.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=(0,r.T)(c,u.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof ga?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(ec),s=i.create(xo.NULL,[],e||i.selector,n),o=s.location.nativeElement,r=s.injector.get(xu,null),a=r&&s.injector.get(Ru);return r&&a&&a.registerApplication(o,r),s.onDestroy(()=>{this.detachView(s.hostView),Gu(this.components,s),a&&a.unregisterApplication(o)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Gu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(au,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(_i(Au),_i(xo),_i(Tn),_i(ma),_i(eu))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function Gu(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Yu{}class Vu{}const Ku={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Ju=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Ku}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i(27622)(e).then(t=>t[n]).then(t=>$u(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i(27622)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>$u(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(_i(wu),_i(Vu,8))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function $u(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const Qu=function(t){return null},Wu=Bu(null,"core",[{provide:ru,useValue:"unknown"},{provide:Uu,deps:[xo]},{provide:Ru,deps:[]},{provide:cu,deps:[]}]),Xu=[{provide:ju,useClass:ju,deps:[Au,xo,Tn,ma,eu]},{provide:pc,deps:[Au],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:eu,useClass:eu,deps:[[new Ci,tu]]},{provide:wu,useClass:wu,deps:[]},nu,{provide:Za,useFactory:function(){return Ka},deps:[]},{provide:qa,useFactory:function(){return Ja},deps:[]},{provide:uu,useFactory:function(t){return oa(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new Ti(uu),new Ci,new Si]]},{provide:lu,useValue:"USD"}];let tl=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(_i(ju))},t.\u0275mod=it({type:t}),t.\u0275inj=A({providers:Xu}),t})()},16073:function(t,e,i){"use strict";i.d(e,{Zs:function(){return zt},gN:function(){return z},Fj:function(){return p},qu:function(){return Ht},NI:function(){return rt},oH:function(){return At},u:function(){return St},sg:function(){return Tt},u5:function(){return qt},Cf:function(){return m},JU:function(){return l},a5:function(){return F},JJ:function(){return B},JL:function(){return q},F:function(){return ht},On:function(){return gt},YN:function(){return Rt},wV:function(){return bt},c5:function(){return Zt},UX:function(){return Ut},Q7:function(){return Nt},EJ:function(){return xt},kI:function(){return _},_Y:function(){return ft},Kr:function(){return Dt}});var n=i(31572),s=i(61511),o=i(19764),r=i(3148),a=i(79996);let c=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t}),t})(),u=(()=>{class t extends c{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})();const l=new n.OlP("NgValueAccessor"),h={provide:l,useExisting:(0,n.Gpc)(()=>p),multi:!0},d=new n.OlP("CompositionEventMode");let p=(()=>{class t extends c{constructor(t,e,i){super(t,e),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,s.q)()?(0,s.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(d,8))},t.\u0275dir=n.lG2({type:t,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(t,e){1&t&&n.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[n._Bn([h]),n.qOj]}),t})();function g(t){return null==t||0===t.length}function f(t){return null!=t&&"number"==typeof t.length}const m=new n.OlP("NgValidators"),b=new n.OlP("NgAsyncValidators"),w=/^(?=.{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 _{static min(t){return function(t){return e=>{if(g(e.value)||g(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(g(e.value)||g(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return y(t)}static requiredTrue(t){return A(t)}static email(t){return function(t){return g(t.value)||w.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>g(e.value)||!f(e.value)?null:e.value.lengthf(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return v(t)}static nullValidator(t){return null}static compose(t){return R(t)}static composeAsync(t){return O(t)}}function y(t){return g(t.value)?{required:!0}:null}function A(t){return!0===t.value?null:{required:!0}}function v(t){if(!t)return T;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(g(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}function T(t){return null}function C(t){return null!=t}function S(t){const e=(0,n.QGY)(t)?(0,o.D)(t):t;return(0,n.CqO)(e),e}function E(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function k(t,e){return e.map(e=>e(t))}function x(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function R(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){return E(k(t,e))}}function I(t){return null!=t?R(x(t)):null}function O(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){const i=k(t,e).map(S);return(0,r.D)(i).pipe((0,a.U)(E))}}function P(t){return null!=t?O(x(t)):null}function D(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function M(t){return t._rawValidators}function L(t){return t._rawAsyncValidators}let N=(()=>{class t{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(t){this._rawValidators=t||[],this._composedValidatorFn=I(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=P(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t}),t})(),z=(()=>{class t extends N{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})();class F extends N{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Z{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let B=(()=>{class t extends Z{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(F,2))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t})(),q=(()=>{class t extends Z{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t})();function U(t,e){return[...e.path,t]}function H(t,e){Y(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&K(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&K(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function j(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),V(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function G(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Y(t,e){const i=M(t);null!==e.validator?t.setValidators(D(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const n=L(t);null!==e.asyncValidator?t.setAsyncValidators(D(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const s=()=>t.updateValueAndValidity();G(e._rawValidators,s),G(e._rawAsyncValidators,s)}function V(t,e){let i=!1;if(null!==t){if(null!==e.validator){const n=M(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=L(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}const n=()=>{};return G(e._rawValidators,n),G(e._rawAsyncValidators,n),i}function K(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function J(t,e){Y(t,e)}function $(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function Q(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function W(t,e){if(!e)return null;let i,n,s;return Array.isArray(e),e.forEach(t=>{t.constructor===p?i=t:Object.getPrototypeOf(t.constructor)===u?n=t:s=t}),s||n||i||null}function X(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function tt(t){return(st(t)?t.validators:t)||null}function et(t){return Array.isArray(t)?I(t):t||null}function it(t,e){return(st(e)?e.asyncValidators:t)||null}function nt(t){return Array.isArray(t)?P(t):t||null}function st(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ot{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=et(this._rawValidators),this._composedAsyncValidatorFn=nt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=et(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=nt(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=S(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof at?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof ct&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){st(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class rt extends ot{constructor(t=null,e,i){super(tt(e),it(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){X(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){X(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class at extends ot{constructor(t,e,i){super(tt(e),it(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof rt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class ct extends ot{constructor(t,e,i){super(tt(e),it(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof rt?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const ut={provide:z,useExisting:(0,n.Gpc)(()=>ht)},lt=(()=>Promise.resolve(null))();let ht=(()=>{class t extends z{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new n.vpe,this.form=new at({},I(t),P(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){lt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),H(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){lt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),X(this._directives,t)})}addFormGroup(t){lt.then(()=>{const e=this._findContainer(t.path),i=new at({});J(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){lt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){lt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Q(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(b,10))},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([ut]),n.qOj]}),t})();const dt={provide:F,useExisting:(0,n.Gpc)(()=>gt)},pt=(()=>Promise.resolve(null))();let gt=(()=>{class t extends F{constructor(t,e,i,s){super(),this.control=new rt,this._registered=!1,this.update=new n.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=W(0,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),$(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?U(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){H(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(t){pt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;pt.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,9),n.Y36(m,10),n.Y36(b,10),n.Y36(l,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n._Bn([dt]),n.qOj,n.TTD]}),t})(),ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const mt={provide:l,useExisting:(0,n.Gpc)(()=>bt),multi:!0};let bt=(()=>{class t extends u{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&n.NdJ("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[n._Bn([mt]),n.qOj]}),t})(),wt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();const _t=new n.OlP("NgModelWithFormControlWarning"),yt={provide:F,useExisting:(0,n.Gpc)(()=>At)};let At=(()=>{class t extends F{constructor(t,e,i,s){super(),this._ngModelWarningConfig=s,this.update=new n.vpe,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=W(0,i)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&j(e,this,!1),H(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}$(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&j(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(b,10),n.Y36(l,10),n.Y36(_t,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n._Bn([yt]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t})();const vt={provide:z,useExisting:(0,n.Gpc)(()=>Tt)};let Tt=(()=>{class t extends z{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(V(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return H(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){j(t.control||null,t,!1),X(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,Q(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,i=this.form.get(t.path);e!==i&&(j(e||null,t),i instanceof rt&&(H(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);J(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return V(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Y(this.form,this),this._oldForm&&V(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(b,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([vt]),n.qOj,n.TTD]}),t})();const Ct={provide:F,useExisting:(0,n.Gpc)(()=>St)};let St=(()=>{class t extends F{constructor(t,e,i,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new n.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=W(0,s)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),$(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return U(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,13),n.Y36(m,10),n.Y36(b,10),n.Y36(l,10),n.Y36(_t,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n._Bn([Ct]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t})();const Et={provide:l,useExisting:(0,n.Gpc)(()=>xt),multi:!0};function kt(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let xt=(()=>{class t extends u{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this.setProperty("selectedIndex",-1);const i=kt(e,t);this.setProperty("value",i)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&n.NdJ("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[n._Bn([Et]),n.qOj]}),t})(),Rt=(()=>{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(kt(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(xt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const It={provide:l,useExisting:(0,n.Gpc)(()=>Pt),multi:!0};function Ot(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Pt=(()=>{class t extends u{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Ot(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Ot(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(Pt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Mt={provide:m,useExisting:(0,n.Gpc)(()=>Nt),multi:!0},Lt={provide:m,useExisting:(0,n.Gpc)(()=>zt),multi:!0};let Nt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?y(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[n._Bn([Mt])]}),t})(),zt=(()=>{class t extends Nt{validate(t){return this.required?A(t):null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("required",e.required?"":null)},features:[n._Bn([Lt]),n.qOj]}),t})();const Ft={provide:m,useExisting:(0,n.Gpc)(()=>Zt),multi:!0};let Zt=(()=>{class t{constructor(){this._validator=T}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=v(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[n._Bn([Ft]),n.TTD]}),t})(),Bt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[wt]]}),t})(),qt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[Bt]}),t})(),Ut=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:_t,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[Bt]}),t})(),Ht=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n,s=null,o=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,n=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new at(i,{asyncValidators:o,updateOn:n,validators:s})}control(t,e,i){return new rt(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new ct(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof rt||t instanceof at||t instanceof ct?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:Ut}),t})()},40084:function(t,e,i){"use strict";i.d(e,{XC:function(){return z},Bb:function(){return H},ZL:function(){return U}});var n=i(24621),s=i(19861),o=i(11353),r=i(31572),a=i(71522),c=i(87570),u=i(55959),l=i(31450),h=i(31906),d=i(40878),p=i(87254),g=i(61511),f=i(2522),m=i(4253),b=i(75842),w=i(26899),_=i(16073),y=i(66283),A=i(90611),v=i(44689),T=i(43835),C=i(79996),S=i(66599),E=i(82628),k=i(22526);const x=["panel"];function R(t,e){if(1&t&&(r.TgZ(0,"div",0,1),r.Hsn(2),r.qZA()),2&t){const t=e.id,i=r.oxw();r.Q6J("id",i.id)("ngClass",i._classList),r.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}const I=["*"];let O=0;class P{constructor(t,e){this.source=t,this.option=e}}class D{}const M=(0,a.Kr)(D),L=new r.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let N=(()=>{class t extends M{constructor(t,e,i,n){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=c.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new r.vpe,this.opened=new r.vpe,this.closed=new r.vpe,this.optionActivated=new r.vpe,this._classList={},this.id="mat-autocomplete-"+O++,this.inertGroups=(null==n?void 0:n.SAFARI)||!1,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=(0,s.Ig)(t)}set classList(t){this._classList=t&&t.length?(0,s.du)(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new n.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new P(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(L),r.Y36(o.t4))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&(r.Gf(r.Rgc,7),r.Gf(x,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.template=t.first),r.iGM(t=r.CRH())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[r.qOj]}),t})(),z=(()=>{class t extends N{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,a.K7,5),r.Suo(i,a.ey,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.optionGroups=t),r.iGM(t=r.CRH())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[r._Bn([{provide:a.HF,useExisting:t}]),r.qOj],ngContentSelectors:I,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(r.F$t(),r.YNc(0,R,3,4,"ng-template"))},directives:[g.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t})();const F=new r.OlP("mat-autocomplete-scroll-strategy"),Z={provide:F,deps:[f.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},B={provide:_.JU,useExisting:(0,r.Gpc)(()=>U),multi:!0};let q=(()=>{class t{constructor(t,e,i,n,s,o,r,a,d,p,g){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=r,this._formField=a,this._document=d,this._viewportRuler=p,this._defaults=g,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=c.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new u.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,l.P)(()=>this.autocomplete&&this.autocomplete.options?(0,h.T)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe((0,A.q)(1),(0,v.w)(()=>this.optionSelections))),this._scrollStrategy=o}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=(0,s.Ig)(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,h.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,T.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,T.h)(()=>this._overlayAttached)):(0,d.of)()).pipe((0,C.U)(t=>t instanceof a.rN?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,h.T)((0,p.R)(this._document,"click"),(0,p.R)(this._document,"auxclick"),(0,p.R)(this._document,"touchend")).pipe((0,T.h)(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null,n=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&(!n||!n.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(e!==b.hY||(0,b.Vb)(t)||t.preventDefault(),this.activeOption&&e===b.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const i=this.autocomplete._keyManager.activeItem,n=e===b.LH||e===b.JH;this.panelOpen||e===b.Mf?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const t=this._zone.onStable.pipe((0,A.q)(1)),e=this.autocomplete.options.changes.pipe((0,S.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,E.g)(0));return(0,h.T)(t,e).pipe((0,v.w)(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,A.q)(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){var t;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!(0,o.kV)(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new w.UE(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,e.keydownEvents().subscribe(t=>{(t.keyCode===b.hY&&!(0,b.Vb)(t)||t.keyCode===b.LH&&(0,b.Vb)(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),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 i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new f.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];let s;s="above"===this.position?n:"below"===this.position?e:[...e,...n],t.withPositions(s)}_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 t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,i=(0,a.CB)(t,e.options,e.optionGroups);if(0===t&&1===i)e._setScrollTop(0);else if(e.panel){const i=e.options.toArray()[t];if(i){const t=i._getHostElement(),n=(0,a.jH)(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(n)}}}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(f.aV),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(F),r.Y36(k.Is,8),r.Y36(y.G_,9),r.Y36(g.K0,8),r.Y36(m.rL),r.Y36(L,8))},t.\u0275dir=r.lG2({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[r.TTD]}),t})(),U=(()=>{class t extends q{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275dir=r.lG2({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&r.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&r.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[r._Bn([B]),r.qOj]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[Z],imports:[[f.U8,a.Ng,a.BQ,g.ez],m.ZD,a.Ng,a.BQ]}),t})()},41050:function(t,e,i){"use strict";i.d(e,{k:function(){return h},g:function(){return d}});var n=i(71522),s=i(24621),o=i(19861),r=i(43490),a=i(31572);let c=0;class u{}const l=(0,n.Id)(u);let h=(()=>{class t extends l{constructor(t,e,i,n,s){super(),this._ngZone=t,this._elementRef=e,this._ariaDescriber=i,this._renderer=n,this._animationMode=s,this._hasContent=!1,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=c++}get color(){return this._color}set color(t){this._setColor(t),this._color=t}get overlap(){return this._overlap}set overlap(t){this._overlap=(0,o.Ig)(t)}get description(){return this._description}set description(t){if(t!==this._description){const e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}get hidden(){return this._hidden}set hidden(t){this._hidden=(0,o.Ig)(t)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}ngOnChanges(t){const e=t.content;if(e){const t=e.currentValue;this._hasContent=null!=t&&`${t}`.trim().length>0,this._updateTextContent()}}ngOnDestroy(){const t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}getBadgeElement(){return this._badgeElement}_updateTextContent(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}_createBadgeElement(){const t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id",`mat-badge-content-${this._id}`),t.classList.add("mat-badge-content"),t.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add("mat-badge-active")})}):t.classList.add("mat-badge-active"),t}_updateHostAriaDescription(t,e){const i=this._updateTextContent();e&&this._ariaDescriber.removeDescription(i,e),t&&this._ariaDescriber.describe(i,t)}_setColor(t){if(t!==this._color){const e=this._elementRef.nativeElement.classList;this._color&&e.remove(`mat-badge-${this._color}`),t&&e.add(`mat-badge-${t}`)}}_clearExistingBadges(t){const e=this._elementRef.nativeElement;let i=e.children.length;for(;i--;){const n=e.children[i];n.classList.contains(t)&&e.removeChild(n)}}_stringifyContent(){const t=this.content;return null==t?"":`${t}`}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.R0b),a.Y36(a.SBq),a.Y36(s.$s),a.Y36(a.Qsj),a.Y36(r.Qb,8))},t.\u0275dir=a.lG2({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&a.ekj("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[a.qOj,a.TTD]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[s.rt,n.BQ],n.BQ]}),t})()},15980:function(t,e,i){"use strict";i.d(e,{lW:function(){return d},ot:function(){return p}});var n=i(71522),s=i(43490),o=i(31572),r=i(24621);const a=["mat-button",""],c=["*"],u=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class l{constructor(t){this._elementRef=t}}const h=(0,n.pj)((0,n.Id)((0,n.Kr)(l)));let d=(()=>{class t extends h{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of u)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.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(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(r.tE),o.Y36(s.Qb,8))},t.\u0275cmp=o.Xpm({type:t,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(t,e){if(1&t&&o.Gf(n.wG,5),2&t){let t;o.iGM(t=o.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(o.uIk("disabled",e.disabled||null),o.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[o.qOj],attrs:a,ngContentSelectors:c,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(t,e){1&t&&(o.F$t(),o.TgZ(0,"span",0),o.Hsn(1),o.qZA(),o._UZ(2,"span",1),o._UZ(3,"span",2)),2&t&&(o.xp6(2),o.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),o.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[n.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.si,n.BQ],n.BQ]}),t})()},27439:function(t,e,i){"use strict";i.d(e,{a8:function(){return g},kc:function(){return p},dn:function(){return l},dk:function(){return f},QW:function(){return m},$j:function(){return d},n5:function(){return h}});var n=i(43490),s=i(71522),o=i(31572);const r=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],c=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],u=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t})(),g=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.Qb,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(t,e){1&t&&(o.F$t(r),o.Hsn(0),o.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:u,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(o.F$t(c),o.Hsn(0),o.TgZ(1,"div",0),o.Hsn(2,1),o.qZA(),o.Hsn(3,2))},encapsulation:2,changeDetection:0}),t})(),m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[s.BQ],s.BQ]}),t})()},29236:function(t,e,i){"use strict";i.d(e,{oG:function(){return A},p9:function(){return T}});var n=i(19861),s=i(31572),o=i(16073),r=i(71522),a=i(43490),c=i(36337),u=i(24621);const l=["input"],h=function(t){return{enterDuration:t}},d=["*"],p=new s.OlP("mat-checkbox-default-options",{providedIn:"root",factory:g});function g(){return{color:"accent",clickAction:"check-indeterminate"}}let f=0;const m=g(),b={provide:o.JU,useExisting:(0,s.Gpc)(()=>A),multi:!0};class w{}class _{constructor(t){this._elementRef=t}}const y=(0,r.sb)((0,r.pj)((0,r.Kr)((0,r.Id)(_))));let A=(()=>{class t extends y{constructor(t,e,i,n,o,r,a){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=r,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++f,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.vpe,this.indeterminateChange=new s.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||m,this.color=this.defaultColor=this._options.color||m.color,this.tabIndex=parseInt(o)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=(0,n.Ig)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=(0,n.Ig)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=(0,n.Ig)(t),e&&(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(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new w;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(u.tE),s.Y36(s.R0b),s.$8M("tabindex"),s.Y36(a.Qb,8),s.Y36(p,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(s.Gf(l,5),s.Gf(r.wG,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._inputElement=t.first),s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",null),s.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s._Bn([b]),s.qOj],ngContentSelectors:d,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",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(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"span",2),s.TgZ(3,"input",3,4),s.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(5,"span",5),s._UZ(6,"span",6),s.qZA(),s._UZ(7,"span",7),s.TgZ(8,"span",8),s.O4$(),s.TgZ(9,"svg",9),s._UZ(10,"path",10),s.qZA(),s.kcU(),s._UZ(11,"span",11),s.qZA(),s.qZA(),s.TgZ(12,"span",12,13),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(14,"span",14),s._uU(15,"\xa0"),s.qZA(),s.Hsn(16),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),i=s.MAs(13);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.xp6(1),s.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.VKq(19,h,"NoopAnimations"===e._animationMode?0:150))}},directives:[r.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:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.si,r.BQ,c.Q8,v],r.BQ,v]}),t})()},10033:function(t,e,i){"use strict";i.d(e,{HS:function(){return E},oH:function(){return M},qn:function(){return P},Hi:function(){return N}});var n=i(75842),s=i(31572),o=i(71522),r=i(19861),a=i(61511),c=i(43490),u=i(55959),l=i(31906),h=i(90611),d=i(25416),p=i(56238),g=i(24621),f=i(4230),m=i(66283),b=i(11353),w=i(22526),_=i(16073);const y=["*"],A=new s.OlP("MatChipRemove"),v=new s.OlP("MatChipAvatar"),T=new s.OlP("MatChipTrailingIcon");class C{constructor(t){this._elementRef=t}}const S=(0,o.sb)((0,o.pj)((0,o.Kr)(C),"primary"),-1);let E=(()=>{class t extends S{constructor(t,e,i,n,r,a,c,l){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=r,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new u.xQ,this._onBlur=new u.xQ,this.selectionChange=new s.vpe,this.destroyed=new s.vpe,this.removed=new s.vpe,this._addHostClassName(),this._chipRippleTarget=a.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new o.IR(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===c,this.tabIndex=null!=l&&parseInt(l)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=(0,r.Ig)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=(0,r.Ig)(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t)}get removable(){return this._removable}set removable(t){this._removable=(0,r.Ig)(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):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(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),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(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case n.yY:case n.ZH:this.remove(),t.preventDefault();break;case n.L_:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,h.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(b.t4),s.Y36(o.Y2,8),s.Y36(s.sBO),s.Y36(a.K0),s.Y36(c.Qb,8),s.$8M("tabindex"))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,v,5),s.Suo(i,T,5),s.Suo(i,A,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.avatar=t.first),s.iGM(t=s.CRH())&&(e.trailingIcon=t.first),s.iGM(t=s.CRH())&&(e.removeIcon=t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(s.uIk("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),s.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",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[s.qOj]}),t})();const k=new s.OlP("mat-chips-default-options");class x{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const R=(0,o.FD)(x);let I=0;class O{constructor(t,e){this.source=t,this.value=e}}let P=(()=>{class t extends R{constructor(t,e,i,n,o,r,a){super(r,n,o,a),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=a,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new u.xQ,this._uid="mat-chip-list-"+I++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new s.vpe,this.valueChange=new s.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,r.Ig)(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,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(t){this._disabled=(0,r.Ig)(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=(0,r.Ig)(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return(0,l.T)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return(0,l.T)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return(0,l.T)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return(0,l.T)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new g.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,p.O)(null),(0,d.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 f.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(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new O(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(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.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(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.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(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(w.Is,8),s.Y36(_.F,8),s.Y36(_.sg,8),s.Y36(o.rD),s.Y36(_.a5,10))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,E,5),2&t){let t;s.iGM(t=s.CRH())&&(e.chips=t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.Ikx("id",e._uid),s.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("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),s.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[s._Bn([{provide:m.Eo,useExisting:t}]),s.qOj],ngContentSelectors:y,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})(),D=0,M=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new s.vpe,this.placeholder="",this.id="mat-chip-list-input-"+D++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=(0,r.Ig)(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=(0,r.Ig)(t)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(t){if(t){if(t.keyCode!==n.Mf||(0,n.Vb)(t,"shiftKey")||this._chipList._allowFocusEscape(),t.keyCode===n.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}_keyup(t){!this._focusLastChipOnBackspace&&t.keyCode===n.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this.inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==t||t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this.inputElement.focus(t)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(t){return!(0,n.Vb)(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(k))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&s.NdJ("keydown",function(t){return e._keydown(t)})("keyup",function(t){return e._keyup(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(s.Ikx("id",e.id),s.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:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[s.TTD]}),t})();const L={separatorKeyCodes:[n.K5]};let N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[o.rD,{provide:k,useValue:L}],imports:[[o.BQ]]}),t})()},71522:function(t,e,i){"use strict";i.d(e,{yN:function(){return w},mZ:function(){return _},_A:function(){return I},rD:function(){return U},sG:function(){return O},K7:function(){return ut},HF:function(){return st},Y2:function(){return X},BQ:function(){return v},X2:function(){return H},uc:function(){return Y},XK:function(){return q},ey:function(){return pt},Ng:function(){return mt},rN:function(){return ht},nP:function(){return it},us:function(){return nt},wG:function(){return tt},si:function(){return et},LF:function(){return F},IR:function(){return W},CB:function(){return gt},jH:function(){return ft},pj:function(){return C},Kr:function(){return S},Id:function(){return T},FD:function(){return k},dB:function(){return x},sb:function(){return E},E0:function(){return j}});var n=i(31572),s=i(24621),o=i(22526);const r=new n.GfV("12.0.5");var a=i(61511),c=i(19861),u=i(55959),l=i(48318),h=i(11353),d=i(56238),p=i(43490),g=i(75842);function f(t,e){if(1&t&&n._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=n.oxw();n.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function m(t,e){if(1&t&&(n.TgZ(0,"span",5),n._uU(1),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.hij("(",t.group.label,")")}}const b=["*"];let w=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),_=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const y=new n.GfV("12.0.5"),A=new n.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let v=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return(0,n.X6Q)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&y.full!==r.full&&console.warn("The Angular Material version ("+y.full+") does not match the Angular CDK version ("+r.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(s.qm),n.LFG(A,8),n.LFG(a.K0))},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.vT],o.vT]}),t})();function T(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,c.Ig)(t)}}}function C(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function S(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,c.Ig)(t)}}}function E(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?(0,c.su)(t):this.defaultTabIndex}}}function k(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new u.xQ}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function x(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new l.y(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const R=new n.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,n.f3M)(n.soG)}});class I{constructor(){this._localeChanges=new u.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const O=new n.OlP("mat-date-formats");let P;try{P="undefined"!=typeof Intl}catch(bt){P=!1}const D={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},M=z(31,t=>String(t+1)),L={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},N=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function z(t,e){const i=Array(t);for(let n=0;n{class t extends I{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(P){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return z(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return D[t]}getDateNames(){if(P){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return z(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return M}getDayOfWeekNames(t){if(P){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return z(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return L[t]}getYearName(t){if(P){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(P){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(N.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(R,8),n.LFG(h.t4))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:I,useClass:F}],imports:[[h.ud]]}),t})();const B={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 q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:O,useValue:B}],imports:[[Z]]}),t})(),U=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function j(t,e,i="mat"){t.changes.pipe((0,d.O)(t)).subscribe(({length:t})=>{G(e,`${i}-2-line`,!1),G(e,`${i}-3-line`,!1),G(e,`${i}-multi-line`,!1),2===t||3===t?G(e,`${i}-${t}-line`,!0):t>3&&G(e,`${i}-multi-line`,!0)})}function G(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[v],v]}),t})();class V{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const K={enterDuration:450,exitDuration:400},J=(0,h.i$)({passive:!0}),$=["mousedown","touchstart"],Q=["mouseup","mouseleave","touchend","touchcancel"];class W{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=(0,c.fI)(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},K),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const o=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),r=t-n.left,a=e-n.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=r-o+"px",u.style.top=a-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";const l=new V(this,u,i);return l.state=0,this._activeRipples.add(l),i.persistent||(this._mostRecentTransientRipple=l),this._runTimeoutOutsideZone(()=>{const t=l===this._mostRecentTransientRipple;l.state=1,i.persistent||t&&this._isPointerDown||l.fadeOut()},c),l}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},K),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=(0,c.fI)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents($))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Q),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=(0,s.X6)(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,J)})})}_removeTriggerEvents(){this._triggerElement&&($.forEach(t=>{this._triggerElement.removeEventListener(t,this,J)}),this._pointerUpEventsRegistered&&Q.forEach(t=>{this._triggerElement.removeEventListener(t,this,J)}))}}const X=new n.OlP("mat-ripple-global-options");let tt=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new W(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(h.t4),n.Y36(X,8),n.Y36(p.Qb,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&n.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[v,h.ud],v]}),t})(),it=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(p.Qb,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&n.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),nt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[v]]}),t})();const st=new n.OlP("MAT_OPTION_PARENT_COMPONENT");class ot{}const rt=T(ot);let at=0,ct=(()=>{class t extends rt{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+at++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(st,8))},t.\u0275dir=n.lG2({type:t,inputs:{label:"label"},features:[n.qOj]}),t})();const ut=new n.OlP("MatOptgroup");let lt=0;class ht{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let dt=(()=>{class t{constructor(t,e,i,s){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+lt++,this.onSelectionChange=new n.vpe,this._stateChanges=new u.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=(0,c.Ig)(t)}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(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==g.K5&&t.keyCode!==g.L_||(0,g.Vb)(t)||(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new ht(this,t))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(void 0),n.Y36(ct))},t.\u0275dir=n.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(st,8),n.Y36(ut,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(n.Ikx("id",e.id),n.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),n.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[n.qOj],ngContentSelectors:b,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(t,e){1&t&&(n.F$t(),n.YNc(0,f,1,2,"mat-pseudo-checkbox",0),n.TgZ(1,"span",1),n.Hsn(2),n.qZA(),n.YNc(3,m,2,1,"span",2),n._UZ(4,"div",3)),2&t&&(n.Q6J("ngIf",e.multiple),n.xp6(3),n.Q6J("ngIf",e.group&&e.group._inert),n.xp6(1),n.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.O5,tt,it],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function gt(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),o=0;for(let e=0;ei+n?Math.max(0,t-n+e):i}let mt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[et,a.ez,v,nt]]}),t})()},15812:function(t,e,i){"use strict";i.d(e,{Mq:function(){return bt},hl:function(){return vt},FA:function(){return St},nW:function(){return Ct}});var n=i(24621),s=i(2522),o=i(26899),r=i(61511),a=i(31572),c=i(15980),u=i(4253),l=i(71522),h=i(55959),d=i(87570),p=i(31906),g=i(40878),f=i(75842),m=i(90611),b=i(56238),w=i(43835),_=i(19861),y=i(11353),A=i(10709),v=i(16073),T=i(66283),C=i(80340),S=i(22526);const E=["mat-calendar-body",""];function k(t,e){if(1&t&&(a.TgZ(0,"tr",2),a.TgZ(1,"td",3),a._uU(2),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.uIk("colspan",t.numCols),a.xp6(1),a.hij(" ",t.label," ")}}function x(t,e){if(1&t&&(a.TgZ(0,"td",7),a._uU(1),a.qZA()),2&t){const t=a.oxw(2);a.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.uIk("colspan",t._firstRowOffset),a.xp6(1),a.hij(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function R(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"td",8),a.NdJ("click",function(e){const i=a.CHM(t).$implicit;return a.oxw(2)._cellClicked(i,e)}),a.TgZ(1,"div",9),a._uU(2),a.qZA(),a._UZ(3,"div",10),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw().index,s=a.oxw();a.Udp("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),a.ekj("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",s._isActiveCell(n,i))("mat-calendar-body-range-start",s._isRangeStart(t.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",s._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(t.compareValue,n,i))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(t.compareValue,n,i))("mat-calendar-body-comparison-start",s._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",s._isInPreview(t.compareValue)),a.Q6J("ngClass",t.cssClasses)("tabindex",s._isActiveCell(n,i)?0:-1),a.uIk("data-mat-row",n)("data-mat-col",i)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",s._isSelected(t.compareValue)),a.xp6(1),a.ekj("mat-calendar-body-selected",s._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",s.todayValue===t.compareValue),a.xp6(1),a.hij(" ",t.displayValue," ")}}function I(t,e){if(1&t&&(a.TgZ(0,"tr",4),a.YNc(1,x,2,6,"td",5),a.YNc(2,R,4,46,"td",6),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.xp6(1),a.Q6J("ngIf",0===i&&n._firstRowOffset),a.xp6(1),a.Q6J("ngForOf",t)}}function O(t,e){if(1&t&&(a.TgZ(0,"th",5),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.uIk("aria-label",t.long),a.xp6(1),a.Oqu(t.narrow)}}const P=["*"];function D(t,e){}function M(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-month-view",5),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("_userSelection",function(e){return a.CHM(t),a.oxw()._dateSelected(e)}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function L(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-year-view",6),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("monthSelected",function(e){return a.CHM(t),a.oxw()._monthSelectedInYearView(e)})("selectedChange",function(e){return a.CHM(t),a.oxw()._goToDateInView(e,"month")}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function N(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-multi-year-view",7),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("yearSelected",function(e){return a.CHM(t),a.oxw()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return a.CHM(t),a.oxw()._goToDateInView(e,"year")}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function z(t,e){}const F=["button"];function Z(t,e){1&t&&(a.O4$(),a.TgZ(0,"svg",3),a._UZ(1,"path",4),a.qZA())}const B=[[["","matDatepickerToggleIcon",""]]],q=["[matDatepickerToggleIcon]"];let U=(()=>{class t{constructor(){this.changes=new h.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class H{constructor(t,e,i,n,s={},o=t,r){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=s,this.compareValue=o,this.rawValue=r}}let j=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new a.vpe,this.previewChange=new a.vpe,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&G(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return Y(t,this.startValue,this.endValue)}_isRangeEnd(t){return V(t,this.startValue,this.endValue)}_isInRange(t){return K(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return Y(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let n=this.rows[e][i-1];if(!n){const t=this.rows[e-1];n=t&&t[t.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let n=this.rows[e][i+1];if(!n){const t=this.rows[e+1];n=t&&t[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(t){return V(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return K(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return Y(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return V(t,this.previewStart,this.previewEnd)}_isInPreview(t){return K(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(G(t)?e=t:G(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b))},t.\u0275cmp=a.Xpm({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[a.TTD],attrs:E,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"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(a.YNc(0,k,3,6,"tr",0),a.YNc(1,I,3,2,"tr",1)),2&t&&(a.Q6J("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function G(t){return"TD"===t.nodeName}function Y(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function K(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}class J{constructor(t,e){this.start=t,this.end=e}}let $=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new h.xQ,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){const i=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:i})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(void 0),a.LFG(l._A))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t})(),Q=(()=>{class t extends ${constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(l._A))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t})();const W={provide:$,deps:[[new a.FiY,new a.tp0,$],l._A],useFactory:function(t,e){return t||new Q(e)}},X=new a.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let tt=(()=>{class t{constructor(t,e,i,n,s){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rangeStrategy=s,this._rerenderSubscription=d.w.EMPTY,this.selectedChange=new a.vpe,this._userSelection=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof J?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,b.O)(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,i=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.createDate(i,n,e);let o,r;this._selected instanceof J?(o=this._getDateInCurrentMonth(this._selected.start),r=this._getDateInCurrentMonth(this._selected.end)):o=r=this._getDateInCurrentMonth(this._selected),o===e&&r===e||this.selectedChange.emit(s),this._userSelection.emit({value:s,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case f.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case f.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case f.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case f.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case f.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case f.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case f.Ku:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case f.VM:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case f.K5:case f.L_:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case f.hY:return void(null==this._previewEnd||(0,f.Vb)(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const i=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof J?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.sBO),a.Y36(l.sG,8),a.Y36(l._A,8),a.Y36(S.Is,8),a.Y36(X,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&a.Gf(j,5),2&t){let t;a.iGM(t=a.CRH())&&(e._matCalendarBody=t.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:[a.TTD],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(a.TgZ(0,"table",0),a.TgZ(1,"thead",1),a.TgZ(2,"tr"),a.YNc(3,O,2,2,"th",2),a.qZA(),a.TgZ(4,"tr"),a._UZ(5,"th",3),a.qZA(),a.qZA(),a.TgZ(6,"tbody",4),a.NdJ("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),a.qZA(),a.qZA()),2&t&&(a.xp6(3),a.Q6J("ngForOf",e._weekdays),a.xp6(3),a.Q6J("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[r.sg,j],encapsulation:2,changeDetection:0}),t})(),et=(()=>{class t{constructor(t,e,i){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=d.w.EMPTY,this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),it(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof J?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,b.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,i=[];e<24;e++)i.push(t+e),4==i.length&&(this._years.push(i.map(t=>this._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case f.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case f.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case f.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case f.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case f.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case f.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case f.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case f.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case f.K5:case f.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new H(t,i,i,this._shouldEnableYear(t),n)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,i,n){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=d.w.EMPTY,this.selectedChange=new a.vpe,this.monthSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof J?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,b.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(i);const n=this._dateAdapter.getNumDaysInMonth(i);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case f.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case f.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case f.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case f.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case f.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case f.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case f.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case f.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case f.K5:case f.L_:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),n=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(i,"year"):void 0;return new H(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,i,n,s){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this._buttonDescriptionId="mat-calendar-button-"+rt++,this.calendar.stateChanges.subscribe(()=>s.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)-nt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+24-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}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(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):it(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(U),a.Y36((0,a.Gpc)(()=>ct)),a.Y36(l._A,8),a.Y36(l.sG,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:P,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[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(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"button",2),a.NdJ("click",function(){return e.currentPeriodClicked()}),a.TgZ(3,"span"),a._uU(4),a.qZA(),a._UZ(5,"div",3),a.qZA(),a._UZ(6,"div",4),a.Hsn(7),a.TgZ(8,"button",5),a.NdJ("click",function(){return e.previousClicked()}),a.qZA(),a.TgZ(9,"button",6),a.NdJ("click",function(){return e.nextClicked()}),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(2),a.uIk("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),a.xp6(1),a.uIk("id",e._buttonDescriptionId),a.xp6(1),a.Oqu(e.periodButtonText),a.xp6(1),a.ekj("mat-calendar-invert","month"!==e.calendar.currentView),a.xp6(3),a.Q6J("disabled",!e.previousEnabled()),a.uIk("aria-label",e.prevButtonLabel),a.xp6(1),a.Q6J("disabled",!e.nextEnabled()),a.uIk("aria-label",e.nextButtonLabel))},directives:[c.lW,n.Qr],encapsulation:2,changeDetection:0}),t})(),ct=(()=>{class t{constructor(t,e,i,n){this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this._userSelection=new a.vpe,this.stateChanges=new h.xQ,this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof J?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new o.C5(this.headerComponent||at),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof J||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(U),a.Y36(l._A,8),a.Y36(l.sG,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(a.Gf(tt,5),a.Gf(ot,5),a.Gf(et,5)),2&t){let t;a.iGM(t=a.CRH())&&(e.monthView=t.first),a.iGM(t=a.CRH())&&(e.yearView=t.first),a.iGM(t=a.CRH())&&(e.multiYearView=t.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a._Bn([W]),a.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(t,e){1&t&&(a.YNc(0,D,0,0,"ng-template",0),a.TgZ(1,"div",1),a.YNc(2,M,1,8,"mat-month-view",2),a.YNc(3,L,1,6,"mat-year-view",3),a.YNc(4,N,1,6,"mat-multi-year-view",4),a.qZA()),2&t&&(a.Q6J("cdkPortalOutlet",e._calendarHeaderPortal),a.xp6(1),a.Q6J("ngSwitch",e.currentView),a.xp6(1),a.Q6J("ngSwitchCase","month"),a.xp6(1),a.Q6J("ngSwitchCase","year"),a.xp6(1),a.Q6J("ngSwitchCase","multi-year"))},directives:[o.Pl,n.kH,r.RF,r.n9,tt,ot,et],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(33% / 7 - 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:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;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}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const ut={transformPanel:(0,A.X$)("transformPanel",[(0,A.eR)("void => enter-dropdown",(0,A.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,A.F4)([(0,A.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,A.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,A.eR)("void => enter-dialog",(0,A.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,A.F4)([(0,A.oB)({opacity:0,transform:"scale(0.7)"}),(0,A.oB)({transform:"none",opacity:1})]))),(0,A.eR)("* => void",(0,A.jt)("100ms linear",(0,A.oB)({opacity:0})))]),fadeInCalendar:(0,A.X$)("fadeInCalendar",[(0,A.SB)("void",(0,A.oB)({opacity:0})),(0,A.SB)("enter",(0,A.oB)({opacity:1})),(0,A.eR)("void => *",(0,A.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let lt=0;const ht=new a.OlP("mat-datepicker-scroll-strategy"),dt={provide:ht,deps:[s.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class pt{constructor(t){this._elementRef=t}}const gt=(0,l.pj)(pt);let ft=(()=>{class t extends gt{constructor(t,e,i,n,s,o){super(t),this._changeDetectorRef=e,this._globalModel=i,this._dateAdapter=n,this._rangeSelectionStrategy=s,this._subscriptions=new d.w,this._animationDone=new h.xQ,this._actionsPortal=null,this._closeButtonText=o.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){const e=this._model.selection,i=t.value,n=e instanceof J;if(n&&this._rangeSelectionStrategy){const n=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(n,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36($),a.Y36(l._A),a.Y36(X,8),a.Y36(U))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&a.Gf(ct,5),2&t){let t;a.iGM(t=a.CRH())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&a.WFA("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(a.d8E("@transformPanel",e._animationState),a.ekj("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"mat-calendar",1),a.NdJ("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),a.qZA(),a.YNc(2,z,0,0,"ng-template",2),a.TgZ(3,"button",3),a.NdJ("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),a._uU(4),a.qZA(),a.qZA()),2&t&&(a.ekj("mat-datepicker-content-container-with-actions",e._actionsPortal),a.xp6(1),a.Q6J("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),a.xp6(1),a.Q6J("cdkPortalOutlet",e._actionsPortal),a.xp6(1),a.ekj("cdk-visually-hidden",!e._closeButtonFocused),a.Q6J("color",e.color||"primary"),a.xp6(1),a.Oqu(e._closeButtonText))},directives:[n.mK,ct,r.mk,o.Pl,c.lW],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[ut.transformPanel,ut.fadeInCalendar]},changeDetection:0}),t})(),mt=(()=>{class t{constructor(t,e,i,n,s,o,r,c,u){this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=o,this._dir=r,this._model=u,this._inputStateChanges=d.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this.openedStream=new a.vpe,this.closedStream=new a.vpe,this._opened=!1,this.id="mat-datepicker-"+lt++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new h.xQ,this._scrollStrategy=s}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=(0,_.Ig)(t)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){const e=(0,_.Ig)(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(t){this._restoreFocus=(0,_.Ig)(t)}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=(0,_.du)(t)}get opened(){return this._opened}set opened(t){(0,_.Ig)(t)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(t){const e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){const t=this._overlayRef.getConfig().positionStrategy;t instanceof s._G&&(this._setConnectedPositions(t),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal=t}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,y.ht)(),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,m.q)(1)).subscribe(()=>this._destroyOverlay())}const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_applyPendingSelection(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const t=this.touchUi,e=this.datepickerInput.getOverlayLabelId(),i=new o.C5(ft,this._viewContainerRef),n=this._overlayRef=this._overlay.create(new s.X_({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(t?"dialog":"popup")})),r=n.overlayElement;r.setAttribute("role","dialog"),e&&r.setAttribute("aria-labelledby",e),t&&r.setAttribute("aria-modal","true"),this._getCloseStream(n).subscribe(t=>{t&&t.preventDefault(),this.close()}),this._componentRef=n.attach(i),this._forwardContentValues(this._componentRef.instance),t||this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(()=>n.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",s="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:s,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:s}])}_getCloseStream(t){return(0,p.T)(t.backdropClick(),t.detachments(),t.keydownEvents().pipe((0,w.h)(t=>t.keyCode===f.hY&&!(0,f.Vb)(t)||this.datepickerInput&&(0,f.Vb)(t,"altKey")&&t.keyCode===f.LH)))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(s.aV),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(ht),a.Y36(l._A,8),a.Y36(S.Is,8),a.Y36(r.K0,8),a.Y36($))},t.\u0275dir=a.lG2({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[a.TTD]}),t})(),bt=(()=>{class t extends mt{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=a.n5z(t)))(i||t)}}(),t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a._Bn([W,{provide:mt,useExisting:t}]),a.qOj],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();class wt{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let _t=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this.dateChange=new a.vpe,this.dateInput=new a.vpe,this.stateChanges=new h.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=d.w.EMPTY,this._localeSubscription=d.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMinDate();return!i||!e||this._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMaxDate();return!i||!e||this._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=(0,_.Ig)(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this.dateInput.emit(new wt(this,this._elementRef.nativeElement)),this.dateChange.emit(new wt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const i=Object.keys(t);for(let n of i){const{previousValue:i,currentValue:s}=t[n];if(!e.isDateInstance(i)||!e.isDateInstance(s))return!0;if(!e.sameDate(i,s))return!0}return!1})(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&t.keyCode===f.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._dateAdapter.sameDate(i,this.value)?(t&&!this.value&&this._cvaOnChange(i),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(i),this._cvaOnChange(i),this.dateInput.emit(new wt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new wt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(l._A,8),a.Y36(l.sG,8))},t.\u0275dir=a.lG2({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.TTD]}),t})();const yt={provide:v.JU,useExisting:(0,a.Gpc)(()=>vt),multi:!0},At={provide:v.Cf,useExisting:(0,a.Gpc)(()=>vt),multi:!0};let vt=(()=>{class t extends _t{constructor(t,e,i,n){super(t,e,i),this._formField=n,this._closedSubscription=d.w.EMPTY,this._validator=v.kI.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._min)||(this._min=e,this._validatorOnChange())}get max(){return this._max}set max(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._max)||(this._max=e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&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(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(l._A,8),a.Y36(l.sG,8),a.Y36(T.G_,8))},t.\u0275dir=a.lG2({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&a.NdJ("input",function(t){return e._onInput(t.target.value)})("change",function(){return e._onChange()})("blur",function(){return e._onBlur()})("keydown",function(t){return e._onKeydown(t)}),2&t&&(a.Ikx("disabled",e.disabled),a.uIk("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a._Bn([yt,At,{provide:C.Jk,useExisting:t}]),a.qOj]}),t})(),Tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.lG2({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),Ct=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=d.w.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=(0,_.Ig)(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker.stateChanges:(0,g.of)(),e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,g.of)(),i=this.datepicker?(0,p.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,g.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,p.T)(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(U),a.Y36(a.sBO),a.$8M("tabindex"))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,Tt,5),2&t){let t;a.iGM(t=a.CRH())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&a.Gf(F,5),2&t){let t;a.iGM(t=a.CRH())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&a.NdJ("click",function(t){return e._open(t)}),2&t&&(a.uIk("tabindex",null)("data-mat-calendar",e.datepicker?e.datepicker.id:null),a.ekj("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],ariaLabel:["aria-label","ariaLabel"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.TTD],ngContentSelectors:q,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(t,e){1&t&&(a.F$t(B),a.TgZ(0,"button",0,1),a.YNc(2,Z,2,0,"svg",2),a.Hsn(3),a.qZA()),2&t&&(a.Q6J("disabled",e.disabled)("disableRipple",e.disableRipple),a.uIk("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e.ariaLabel||e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),a.xp6(2),a.Q6J("ngIf",!e._customIcon))},directives:[c.lW,r.O5],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),t})(),St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({providers:[U,dt],imports:[[r.ez,c.ot,s.U8,n.rt,o.eL,l.BQ],u.ZD]}),t})()},84608:function(t,e,i){"use strict";i.d(e,{WI:function(){return k},uw:function(){return P},H8:function(){return N},vA:function(){return y},xY:function(){return L},Is:function(){return z},so:function(){return S},uh:function(){return M}});var n=i(2522),s=i(26899),o=i(31572),r=i(71522),a=i(22526),c=i(61511),u=i(55959),l=i(31450),h=i(40878),d=i(43835),p=i(90611),g=i(56238),f=i(11353),m=i(10709),b=i(75842),w=i(24621);function _(t,e){}class y{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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const A={dialogContainer:(0,m.X$)("dialogContainer",[(0,m.SB)("void, exit",(0,m.oB)({opacity:0,transform:"scale(0.7)"})),(0,m.SB)("enter",(0,m.oB)({transform:"none"})),(0,m.eR)("* => enter",(0,m.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,m.oB)({transform:"none",opacity:1}))),(0,m.eR)("* => void, * => exit",(0,m.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,m.oB)({opacity:0})))])};let v=(()=>{class t extends s.en{constructor(t,e,i,n,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=s,this._focusMonitor=r,this._animationStateChanged=new o.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=(0,f.ht)(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,f.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=(0,f.ht)();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(w.qV),o.Y36(o.sBO),o.Y36(c.K0,8),o.Y36(y),o.Y36(w.tE))},t.\u0275dir=o.lG2({type:t,viewQuery:function(t,e){if(1&t&&o.Gf(s.Pl,7),2&t){let t;o.iGM(t=o.CRH())&&(e._portalOutlet=t.first)}},features:[o.qOj]}),t})(),T=(()=>{class t extends v{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&o.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(o.Ikx("id",e._id),o.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),o.d8E("@dialogContainer",e._state))},features:[o.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&o.YNc(0,_,0,0,"ng-template",0)},directives:[s.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[A.dialogContainer]}}),t})(),C=0;class S{constructor(t,e,i="mat-dialog-"+C++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new u.xQ,this._afterClosed=new u.xQ,this._beforeClosed=new u.xQ,this._state=0,e._id=i,e._animationStateChanged.pipe((0,d.h)(t=>"opened"===t.state),(0,p.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,d.h)(t=>"closed"===t.state),(0,p.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,d.h)(t=>t.keyCode===b.hY&&!this.disableClose&&!(0,b.Vb)(t))).subscribe(t=>{t.preventDefault(),E(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():E(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(t=>"closing"===t.state),(0,p.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function E(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const k=new o.OlP("MatDialogData"),x=new o.OlP("mat-dialog-default-options"),R=new o.OlP("mat-dialog-scroll-strategy"),I={provide:R,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.block()}};let O=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=r,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new u.xQ,this._afterOpenedAtThisLevel=new u.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,l.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,g.O)(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new y)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),n._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new n.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=o.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:y,useValue:e}]}),n=new s.C5(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const r=new this._dialogRefConstructor(i,e,n.id);if(t instanceof o.Rgc)e.attachTemplatePortal(new s.UE(t,null,{$implicit:n.data,dialogRef:r}));else{const i=this._createInjector(n,r,e),o=e.attachComponentPortal(new s.C5(t,n.viewContainerRef,i));r.componentInstance=o.instance}return r.updateSize(n.width,n.height).updatePosition(n.position),r}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(a.Is,null,o.XFs.Optional)||s.push({provide:a.Is,useValue:{value:t.direction,change:(0,h.of)()}}),o.zs3.create({parent:n||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.aV),o.Y36(o.zs3),o.Y36(void 0),o.Y36(void 0),o.Y36(n.Xj),o.Y36(void 0),o.Y36(o.DyG),o.Y36(o.DyG),o.Y36(o.OlP))},t.\u0275dir=o.lG2({type:t}),t})(),P=(()=>{class t extends O{constructor(t,e,i,n,s,o,r){super(t,e,n,o,r,s,S,T,k)}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.aV),o.LFG(o.zs3),o.LFG(c.Ye,8),o.LFG(x,8),o.LFG(R),o.LFG(t,12),o.LFG(n.Xj))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})(),D=0,M=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+D++}ngOnInit(){this._dialogRef||(this._dialogRef=function(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(S,8),o.Y36(o.SBq),o.Y36(P))},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&o.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[P,I],imports:[[n.U8,s.eL,r.BQ],r.BQ]}),t})()},27679:function(t,e,i){"use strict";i.d(e,{d:function(){return r},t:function(){return a}});var n=i(19861),s=i(71522),o=i(31572);let r=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=(0,n.Ig)(t)}get inset(){return this._inset}set inset(t){this._inset=(0,n.Ig)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(o.uIk("aria-orientation",e.vertical?"vertical":"horizontal"),o.ekj("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[s.BQ],s.BQ]}),t})()},45001:function(t,e,i){"use strict";i.d(e,{pp:function(){return H},To:function(){return j},ib:function(){return Z},HS:function(){return N},u4:function(){return q},yz:function(){return B},yK:function(){return U}});var n=i(31572),s=i(19861),o=i(55959),r=i(87570),a=i(4230);let c=0;const u=new n.OlP("CdkAccordion");let l=(()=>{class t{constructor(){this._stateChanges=new o.xQ,this._openCloseAllActions=new o.xQ,this.id="cdk-accordion-"+c++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=(0,s.Ig)(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:u,useExisting:t}]),n.TTD]}),t})(),h=0,d=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=r.w.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-"+h++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=(0,s.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(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(t){this._disabled=(0,s.Ig)(t)}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(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(u,12),n.Y36(n.sBO),n.Y36(a.A8))},t.\u0275dir=n.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:u,useValue:void 0}])]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();var g=i(26899),f=i(61511),m=i(71522),b=i(24621),w=i(98720),_=i(56238),y=i(43835),A=i(90611),v=i(75842),T=i(43490),C=i(70653),S=i(31906),E=i(10709);const k=["body"];function x(t,e){}const R=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],I=["mat-expansion-panel-header","*","mat-action-row"];function O(t,e){if(1&t&&n._UZ(0,"span",2),2&t){const t=n.oxw();n.Q6J("@indicatorRotate",t._getExpandedState())}}const P=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],D=["mat-panel-title","mat-panel-description","*"],M=new n.OlP("MAT_ACCORDION"),L={indicatorRotate:(0,E.X$)("indicatorRotate",[(0,E.SB)("collapsed, void",(0,E.oB)({transform:"rotate(0deg)"})),(0,E.SB)("expanded",(0,E.oB)({transform:"rotate(180deg)"})),(0,E.eR)("expanded <=> collapsed, void => collapsed",(0,E.jt)("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:(0,E.X$)("bodyExpansion",[(0,E.SB)("collapsed, void",(0,E.oB)({height:"0px",visibility:"hidden"})),(0,E.SB)("expanded",(0,E.oB)({height:"*",visibility:"visible"})),(0,E.eR)("expanded <=> collapsed, void => collapsed",(0,E.jt)("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let N=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),z=0;const F=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Z=(()=>{class t extends d{constructor(t,e,i,s,r,a,c){super(t,e,i),this._viewContainerRef=s,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new n.vpe,this.afterCollapse=new n.vpe,this._inputChanges=new o.xQ,this._headerId="mat-expansion-panel-header-"+z++,this._bodyAnimationDone=new o.xQ,this.accordion=t,this._document=r,this._bodyAnimationDone.pipe((0,w.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),c&&(this.hideToggle=c.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=(0,s.Ig)(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,_.O)(null),(0,y.h)(()=>this.expanded&&!this._portal),(0,A.q)(1)).subscribe(()=>{this._portal=new g.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(M,12),n.Y36(n.sBO),n.Y36(a.A8),n.Y36(n.s_b),n.Y36(f.K0),n.Y36(T.Qb,8),n.Y36(F,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,N,5),2&t){let t;n.iGM(t=n.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&n.Gf(k,5),2&t){let t;n.iGM(t=n.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&n.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n._Bn([{provide:M,useValue:void 0}]),n.qOj,n.TTD],ngContentSelectors:I,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(n.F$t(R),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,x,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),n.uIk("aria-labelledby",e._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",e._portal))},directives:[g.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[L.bodyExpansion]},changeDetection:0}),t})(),B=(()=>{class t{constructor(t,e,i,n,s,o){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=o,this._parentChangeSubscription=r.w.EMPTY;const a=t.accordion?t.accordion._stateChanges.pipe((0,y.h)(t=>!(!t.hideToggle&&!t.togglePosition))):C.E;this._parentChangeSubscription=(0,S.T)(t.opened,t.closed,a,t._inputChanges.pipe((0,y.h)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,y.h)(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.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 t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case v.L_:case v.K5:(0,v.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(Z,1),n.Y36(n.SBq),n.Y36(b.tE),n.Y36(n.sBO),n.Y36(F,8),n.Y36(T.Qb,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(n.uIk("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),n.Udp("height",e._getHeaderHeight()),n.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:D,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(n.F$t(P),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,O,1,1,"span",1)),2&t&&(n.xp6(4),n.Q6J("ngIf",e._showToggle()))},directives:[f.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}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[L.indicatorRotate]},changeDetection:0}),t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),H=(()=>{class t extends l{constructor(){super(...arguments),this._ownHeaders=new n.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=(0,s.Ig)(t)}ngAfterContentInit(){this._headers.changes.pipe((0,_.O)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new b.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,B,5),2&t){let t;n.iGM(t=n.CRH())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&n.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[n._Bn([{provide:M,useExisting:t}]),n.qOj]}),t})(),j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[f.ez,m.BQ,p,g.eL]]}),t})()},66283:function(t,e,i){"use strict";i.d(e,{G_:function(){return W},TO:function(){return z},KE:function(){return X},Eo:function(){return Z},lN:function(){return tt},bx:function(){return U},hX:function(){return H},UY:function(){return j},R9:function(){return V}});var n=i(36337),s=i(61511),o=i(31572),r=i(71522),a=i(19861),c=i(55959),u=i(31906),l=i(87254),h=i(56238),d=i(25416),p=i(90611),g=i(10709),f=i(43490),m=i(22526),b=i(11353);const w=["underline"],_=["connectionContainer"],y=["inputContainer"],A=["label"];function v(t,e){1&t&&(o.ynx(0),o.TgZ(1,"div",14),o._UZ(2,"div",15),o._UZ(3,"div",16),o._UZ(4,"div",17),o.qZA(),o.TgZ(5,"div",18),o._UZ(6,"div",15),o._UZ(7,"div",16),o._UZ(8,"div",17),o.qZA(),o.BQk())}function T(t,e){1&t&&(o.TgZ(0,"div",19),o.Hsn(1,1),o.qZA())}function C(t,e){if(1&t&&(o.ynx(0),o.Hsn(1,2),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.BQk()),2&t){const t=o.oxw(2);o.xp6(3),o.Oqu(t._control.placeholder)}}function S(t,e){1&t&&o.Hsn(0,3,["*ngSwitchCase","true"])}function E(t,e){1&t&&(o.TgZ(0,"span",23),o._uU(1," *"),o.qZA())}function k(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"label",20,21),o.NdJ("cdkObserveContent",function(){return o.CHM(t),o.oxw().updateOutlineGap()}),o.YNc(2,C,4,1,"ng-container",12),o.YNc(3,S,1,0,"ng-content",12),o.YNc(4,E,2,0,"span",22),o.qZA()}if(2&t){const t=o.oxw();o.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),o.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),o.uIk("for",t._control.id)("aria-owns",t._control.id),o.xp6(2),o.Q6J("ngSwitchCase",!1),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function x(t,e){1&t&&(o.TgZ(0,"div",24),o.Hsn(1,4),o.qZA())}function R(t,e){if(1&t&&(o.TgZ(0,"div",25,26),o._UZ(2,"span",27),o.qZA()),2&t){const t=o.oxw();o.xp6(2),o.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function I(t,e){if(1&t&&(o.TgZ(0,"div"),o.Hsn(1,5),o.qZA()),2&t){const t=o.oxw();o.Q6J("@transitionMessages",t._subscriptAnimationState)}}function O(t,e){if(1&t&&(o.TgZ(0,"div",31),o._uU(1),o.qZA()),2&t){const t=o.oxw(2);o.Q6J("id",t._hintLabelId),o.xp6(1),o.Oqu(t.hintLabel)}}function P(t,e){if(1&t&&(o.TgZ(0,"div",28),o.YNc(1,O,2,2,"div",29),o.Hsn(2,6),o._UZ(3,"div",30),o.Hsn(4,7),o.qZA()),2&t){const t=o.oxw();o.Q6J("@transitionMessages",t._subscriptAnimationState),o.xp6(1),o.Q6J("ngIf",t.hintLabel)}}const D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],M=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let L=0;const N=new o.OlP("MatError");let z=(()=>{class t{constructor(t,e){this.id="mat-error-"+L++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(o.$8M("aria-live"),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&o.uIk("id",e.id)},inputs:{id:"id"},features:[o._Bn([{provide:N,useExisting:t}])]}),t})();const F={transitionMessages:(0,g.X$)("transitionMessages",[(0,g.SB)("enter",(0,g.oB)({opacity:1,transform:"translateY(0%)"})),(0,g.eR)("void => enter",[(0,g.oB)({opacity:0,transform:"translateY(-5px)"}),(0,g.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t}),t})(),B=0;const q=new o.OlP("MatHint");let U=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+B++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(o.uIk("id",e.id)("align",null),o.ekj("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[o._Bn([{provide:q,useExisting:t}])]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-label"]]}),t})(),j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const G=new o.OlP("MatPrefix"),Y=new o.OlP("MatSuffix");let V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","matSuffix",""]],features:[o._Bn([{provide:Y,useExisting:t}])]}),t})(),K=0;class J{constructor(t){this._elementRef=t}}const $=(0,r.pj)(J,"primary"),Q=new o.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),W=new o.OlP("MatFormField");let X=(()=>{class t extends ${constructor(t,e,i,n,s,o,r,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=o,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new c.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+K++,this._labelId="mat-form-field-label-"+K++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=(0,a.Ig)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe((0,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,u.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,d.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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_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,l.R)(this._label.nativeElement,"transitionend").pipe((0,p.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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),o=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(s),r=t.children,a=this._getStartEnd(r[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let r=0;r{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[s.ez,r.BQ,n.Q8],r.BQ]}),t})()},43691:function(t,e,i){"use strict";i.d(e,{Hw:function(){return D},Ps:function(){return M},jv:function(){return C}});var n=i(31572),s=i(71522),o=i(19861),r=i(61511),a=i(40878),c=i(31225),u=i(3148),l=i(87570),h=i(66599),d=i(79996),p=i(47727),g=i(11520),f=i(1055),m=i(90611),b=i(29063),w=i(30269);const _=["*"];function y(t){return Error(`Unable to find icon with the name "${t}"`)}function A(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function v(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class T{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let C=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new T(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,s){const o=this._sanitizer.sanitize(n.q3G.HTML,i);if(!o)throw v(i);return this._addSvgIconConfig(t,e,new T("",o,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new T(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const s=this._sanitizer.sanitize(n.q3G.HTML,e);if(!s)throw v(e);return this._addSvgIconSetConfig(t,new T("",s,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,t);if(!e)throw A(t);const i=this._cachedIconsByUrl.get(e);return i?(0,a.of)(S(i)):this._loadSvgIconFromConfig(new T(t,null)).pipe((0,h.b)(t=>this._cachedIconsByUrl.set(e,t)),(0,d.U)(t=>S(t)))}getNamedSvgIcon(t,e=""){const i=E(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):(0,c._)(y(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,a.of)(S(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,d.U)(t=>S(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);if(i)return(0,a.of)(i);const s=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe((0,p.K)(e=>{const i=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),(0,a.of)(null)})));return(0,u.D)(s).pipe((0,d.U)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw y(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,h.b)(e=>t.svgText=e),(0,d.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,a.of)(null):this._fetchIcon(t).pipe((0,h.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const o=this._svgElementFromString("");return o.appendChild(s),this._setSvgAttributes(o,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(r)),(0,f.B)());return this._inProgressUrlFetches.set(r,c),c}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(E(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),I=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],O=I.map(t=>`[${t}]`).join(", "),P=/^url\(['"]?#(.*?)['"]?\)$/;let D=(()=>{class t extends x{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=l.w.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=(0,o.Ig)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(O),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],o=s.getAttribute(t),r=o?o.match(P):null;if(r){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:r[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe((0,m.q)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(C),n.$8M("aria-hidden"),n.Y36(R),n.Y36(n.qLn))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(n.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),n.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.qOj],ngContentSelectors:_,decls:1,vars:0,template:function(t,e){1&t&&(n.F$t(),n.Hsn(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.BQ],s.BQ]}),t})()},80340:function(t,e,i){"use strict";i.d(e,{Jk:function(){return d},Nt:function(){return b},c:function(){return w},D7:function(){return h}});var n=i(10901),s=i(31572),o=i(19861),r=i(11353),a=i(71522),c=i(66283),u=i(55959),l=i(16073);let h=(()=>{class t extends n.IC{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[s.qOj]}),t})();const d=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),p=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;class f{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const m=(0,a.FD)(f);let b=(()=>{class t extends m{constructor(t,e,i,n,s,o,a,c,l,h){super(o,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+g++,this.focused=!1,this.stateChanges=new u.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>(0,r.qK)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=a||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=(0,o.Ig)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=(0,o.Ig)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&(0,r.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=(0,o.Ig)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){p.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(r.t4),s.Y36(l.a5,10),s.Y36(l.F,8),s.Y36(l.sg,8),s.Y36(a.rD),s.Y36(d,10),s.Y36(n.Lq),s.Y36(s.R0b),s.Y36(c.G_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:c.Eo,useExisting:t}]),s.qOj,s.TTD]}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[a.rD],imports:[[n.Ky,c.lN,a.BQ],n.Ky,c.lN]}),t})()},85250:function(t,e,i){"use strict";i.d(e,{i$:function(){return _},Tg:function(){return v},ie:function(){return T}});var n=i(61511),s=i(31572),o=i(71522),r=i(19861),a=i(55959),c=i(25416),u=(i(56238),i(24621),i(4230),i(75842),i(16073),i(27679));const l=["*"],h=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],d=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class p{}const g=(0,o.Id)((0,o.Kr)(p));class f{}const m=(0,o.Kr)(f),b=new s.OlP("MatList"),w=new s.OlP("MatNavList");let _=(()=>{class t extends g{constructor(t){super(),this._elementRef=t,this._stateChanges=new a.xQ,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[s._Bn([{provide:b,useExisting:t}]),s.qOj,s.TTD],ngContentSelectors:l,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),v=(()=>{class t extends m{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new a.xQ,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,c.R)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=(0,r.Ig)(t)}ngAfterContentInit(){(0,o.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 t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(w,8),s.Y36(b,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,y,5),s.Suo(i,A,5),s.Suo(i,o.X2,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._avatar=t.first),s.iGM(t=s.CRH())&&(e._icon=t.first),s.iGM(t=s.CRH())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.qOj],ngContentSelectors:d,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(t,e){1&t&&(s.F$t(h),s.TgZ(0,"div",0),s._UZ(1,"div",1),s.Hsn(2),s.TgZ(3,"div",2),s.Hsn(4,1),s.qZA(),s.Hsn(5,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[o.wG],encapsulation:2,changeDetection:0}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o.uc,o.si,o.BQ,o.us,n.ez],o.uc,o.BQ,o.us,u.t]}),t})()},8055:function(t,e,i){"use strict";i.d(e,{VK:function(){return F},OP:function(){return M},Tx:function(){return j},p6:function(){return U}});var n=i(24621),s=i(19861),o=i(75842),r=i(31572),a=i(55959),c=i(87570),u=i(31906),l=i(40878),h=i(92709),d=i(56238),p=i(44689),g=i(90611),f=i(43835),m=i(25416),b=i(82628),w=i(10709),_=i(26899),y=i(61511),A=i(71522),v=i(2522),T=i(11353),C=i(4253),S=i(22526);const E=["mat-menu-item",""],k=["*"];function x(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",0),r.NdJ("keydown",function(e){return r.CHM(t),r.oxw()._handleKeydown(e)})("click",function(){return r.CHM(t),r.oxw().closed.emit("click")})("@transformMenu.start",function(e){return r.CHM(t),r.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return r.CHM(t),r.oxw()._onAnimationDone(e)}),r.TgZ(1,"div",1),r.Hsn(2),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),r.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const R={transformMenu:(0,w.X$)("transformMenu",[(0,w.SB)("void",(0,w.oB)({opacity:0,transform:"scale(0.8)"})),(0,w.eR)("void => enter",(0,w.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({opacity:1,transform:"scale(1)"}))),(0,w.eR)("* => void",(0,w.jt)("100ms 25ms linear",(0,w.oB)({opacity:0})))]),fadeInItems:(0,w.X$)("fadeInItems",[(0,w.SB)("showing",(0,w.oB)({opacity:1})),(0,w.eR)("void => *",[(0,w.oB)({opacity:0}),(0,w.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},I=new r.OlP("MatMenuContent"),O=new r.OlP("MAT_MENU_PANEL");class P{}const D=(0,A.Kr)((0,A.Id)(P));let M=(()=>{class t extends D{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new a.xQ,this._focused=new a.xQ,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new r.n_E,this._tabSubscription=c.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new r.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+N++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=(0,s.Ig)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,s.Ig)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,p.w)(t=>(0,u.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,p.w)(t=>(0,u.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case o.hY:(0,o.Vb)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case o.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case o.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==o.LH&&e!==o.JH||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,d.O)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(L))},t.\u0275dir=r.lG2({type:t,contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,I,5),r.Suo(i,M,5),r.Suo(i,M,4)),2&t){let t;r.iGM(t=r.CRH())&&(e.lazyContent=t.first),r.iGM(t=r.CRH())&&(e._allItems=t),r.iGM(t=r.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&r.Gf(r.Rgc,5),2&t){let t;r.iGM(t=r.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),F=(()=>{class t extends z{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(L))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&r.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[r._Bn([{provide:O,useExisting:t}]),r.qOj],ngContentSelectors:k,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(r.F$t(),r.YNc(0,x,3,6,"ng-template"))},directives:[y.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[R.transformMenu,R.fadeInItems]},changeDetection:0}),t})();const Z=new r.OlP("mat-menu-scroll-strategy"),B={provide:Z,deps:[v.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},q=(0,T.i$)({passive:!0});let U=(()=>{class t{constructor(t,e,i,s,o,a,u,l){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=u,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=c.w.EMPTY,this._hoverSubscription=c.w.EMPTY,this._menuCloseSubscription=c.w.EMPTY,this._handleTouchStart=t=>{(0,n.yG)(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new r.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new r.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=o instanceof z?o:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,q),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,q),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof z&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof z?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,f.h)(t=>"void"===t.toState),(0,g.q)(1),(0,m.R)(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new v.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,r]=[n,s],[a,c]=[e,i],u=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",u="bottom"===n?8:-8):this.menu.overlapTrigger||(o="top"===n?"bottom":"top",r="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:o,overlayX:a,overlayY:n,offsetY:u},{originX:i,originY:o,overlayX:c,overlayY:n,offsetY:u},{originX:e,originY:r,overlayX:a,overlayY:s,offsetY:-u},{originX:i,originY:r,overlayX:c,overlayY:s,offsetY:-u}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,l.of)(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,f.h)(t=>t!==this._menuItemInstance),(0,f.h)(()=>this._menuOpen)):(0,l.of)();return(0,u.T)(t,i,n,e)}_handleMousedown(t){(0,n.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;e!==o.K5&&e!==o.L_||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===o.SV&&"ltr"===this.dir||e===o.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,f.h)(t=>t===this._menuItemInstance&&!t.disabled),(0,b.g)(0,h.e)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof z&&this.menu._isAnimating?this.menu._animationDone.pipe((0,g.q)(1),(0,b.g)(0,h.e),(0,m.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new _.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(v.aV),r.Y36(r.SBq),r.Y36(r.s_b),r.Y36(Z),r.Y36(O,8),r.Y36(M,10),r.Y36(S.Is,8),r.Y36(n.tE))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&r.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[B],imports:[A.BQ]}),t})(),j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[B],imports:[[y.ez,A.BQ,A.si,v.U8,H],C.ZD,A.BQ,H]}),t})()},73005:function(t,e,i){"use strict";i.d(e,{NW:function(){return C},TU:function(){return S}});var n=i(61511),s=i(31572),o=i(71522),r=i(15980),a=i(4786),c=i(36922),u=i(19861),l=i(55959),h=i(66283);function d(t,e){if(1&t&&(s.TgZ(0,"mat-option",19),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t," ")}}function p(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",16),s.TgZ(1,"mat-select",17),s.NdJ("selectionChange",function(e){return s.CHM(t),s.oxw(2)._changePageSize(e.value)}),s.YNc(2,d,2,2,"mat-option",18),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.Q6J("appearance",t._formFieldAppearance)("color",t.color),s.xp6(1),s.Q6J("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),s.xp6(1),s.Q6J("ngForOf",t._displayedPageSizeOptions)}}function g(t,e){if(1&t&&(s.TgZ(0,"div",20),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.pageSize)}}function f(t,e){if(1&t&&(s.TgZ(0,"div",12),s.TgZ(1,"div",13),s._uU(2),s.qZA(),s.YNc(3,p,3,6,"mat-form-field",14),s.YNc(4,g,2,1,"div",15),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",t._intl.itemsPerPageLabel," "),s.xp6(1),s.Q6J("ngIf",t._displayedPageSizeOptions.length>1),s.xp6(1),s.Q6J("ngIf",t._displayedPageSizeOptions.length<=1)}}function m(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){return s.CHM(t),s.oxw().firstPage()}),s.O4$(),s.TgZ(1,"svg",7),s._UZ(2,"path",22),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),s.uIk("aria-label",t._intl.firstPageLabel)}}function b(t,e){if(1&t){const t=s.EpF();s.O4$(),s.kcU(),s.TgZ(0,"button",23),s.NdJ("click",function(){return s.CHM(t),s.oxw().lastPage()}),s.O4$(),s.TgZ(1,"svg",7),s._UZ(2,"path",24),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),s.uIk("aria-label",t._intl.lastPageLabel)}}let w=(()=>{class t{constructor(){this.changes=new l.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const _={provide:w,deps:[[new s.FiY,new s.tp0,w]],useFactory:function(t){return t||new w}},y=new s.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS");class A{}const v=(0,o.Id)((0,o.dB)(A));let T=(()=>{class t extends v{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new s.vpe,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max((0,u.su)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=(0,u.su)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max((0,u.su)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>(0,u.su)(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=(0,u.Ig)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=(0,u.Ig)(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(w),s.Y36(s.sBO),s.Y36(void 0))},t.\u0275dir=s.lG2({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[s.qOj]}),t})(),C=(()=>{class t extends T{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(w),s.Y36(s.sBO),s.Y36(y,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[s.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,f,5,3,"div",2),s.TgZ(3,"div",3),s.TgZ(4,"div",4),s._uU(5),s.qZA(),s.YNc(6,m,3,5,"button",5),s.TgZ(7,"button",6),s.NdJ("click",function(){return e.previousPage()}),s.O4$(),s.TgZ(8,"svg",7),s._UZ(9,"path",8),s.qZA(),s.qZA(),s.kcU(),s.TgZ(10,"button",9),s.NdJ("click",function(){return e.nextPage()}),s.O4$(),s.TgZ(11,"svg",7),s._UZ(12,"path",10),s.qZA(),s.qZA(),s.YNc(13,b,3,5,"button",11),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",!e.hidePageSize),s.xp6(3),s.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),s.xp6(1),s.Q6J("ngIf",e.showFirstLastButtons),s.xp6(1),s.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),s.uIk("aria-label",e._intl.previousPageLabel),s.xp6(3),s.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),s.uIk("aria-label",e._intl.nextPageLabel),s.xp6(3),s.Q6J("ngIf",e.showFirstLastButtons))},directives:[n.O5,r.lW,c.gM,h.KE,a.gD,n.sg,o.ey],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[_],imports:[[n.ez,r.ot,a.LD,c.AV,o.BQ]]}),t})()},45994:function(t,e,i){"use strict";i.d(e,{Cv:function(){return r}});var n=i(31572),s=i(61511),o=i(71522);i(19861),i(43490),i(87570),i(87254),i(43835);let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.ez,o.BQ],o.BQ]}),t})()},67806:function(t,e,i){"use strict";i.d(e,{Cq:function(){return _},$g:function(){return w}});var n=i(31572),s=i(61511),o=i(71522),r=i(19861),a=i(11353),c=i(43490);function u(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function l(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function h(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function d(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}const p=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class g{constructor(t){this._elementRef=t}}const f=(0,o.pj)(g,"primary"),m=new n.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let b=(()=>{class t extends f{constructor(e,i,n,s,o){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(n.head)||r.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=(0,r.su)(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=(0,r.su)(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,(0,r.su)(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=(0,a.kV)(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(a.t4),n.Y36(s.K0,8),n.Y36(c.Qb,8),n.Y36(m))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(n.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[n.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"svg",0),n.YNc(1,u,1,9,"circle",1),n.YNc(2,l,1,7,"circle",2),n.qZA()),2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},directives:[s.RF,s.n9],styles:[p],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),w=(()=>{class t extends b{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(a.t4),n.Y36(s.K0,8),n.Y36(c.Qb,8),n.Y36(m))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[n.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"svg",0),n.YNc(1,h,1,9,"circle",1),n.YNc(2,d,1,7,"circle",2),n.qZA()),2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},directives:[s.RF,s.n9],styles:[p],encapsulation:2,changeDetection:0}),t})(),_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.BQ,s.ez],o.BQ]}),t})()},54810:function(t,e,i){"use strict";i.d(e,{U0:function(){return T},VQ:function(){return _},Fk:function(){return C}});var n=i(31572),s=i(71522),o=i(19861),r=i(16073),a=i(43490),c=i(24621),u=i(4230);const l=["input"],h=function(t){return{enterDuration:t}},d=["*"],p=new n.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let g=0;const f={provide:r.JU,useExisting:(0,n.Gpc)(()=>_),multi:!0};class m{constructor(t,e){this.source=t,this.value=e}}const b=new n.OlP("MatRadioGroup");let w=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+g++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new n.vpe}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,o.Ig)(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=(0,o.Ig)(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._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 m(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO))},t.\u0275dir=n.lG2({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),_=(()=>{class t extends w{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,T,5),2&t){let t;n.iGM(t=n.CRH())&&(e._radios=t)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[n._Bn([f,{provide:b,useExisting:t}]),n.qOj]}),t})();class y{constructor(t){this._elementRef=t}}const A=(0,s.Kr)((0,s.sb)(y));let v=(()=>{class t extends A{constructor(t,e,i,s,r,a,c,u){super(e),this._changeDetector=i,this._focusMonitor=s,this._radioDispatcher=r,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++g,this.id=this._uniqueId,this.change=new n.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._noopAnimations="NoopAnimations"===a,u&&(this.tabIndex=(0,o.su)(u,0)),this._removeUniqueSelectionListener=r.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=(0,o.Ig)(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled((0,o.Ig)(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=(0,o.Ig)(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new m(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(w),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(c.tE),n.Y36(u.A8),n.Y36(String),n.Y36(void 0),n.Y36(String))},t.\u0275dir=n.lG2({type:t,viewQuery:function(t,e){if(1&t&&n.Gf(l,5),2&t){let t;n.iGM(t=n.CRH())&&(e._inputElement=t.first)}},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[n.qOj]}),t})(),T=(()=>{class t extends v{constructor(t,e,i,n,s,o,r,a){super(t,e,i,n,s,o,r,a)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(b,8),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(c.tE),n.Y36(u.A8),n.Y36(a.Qb,8),n.Y36(p,8),n.$8M("tabindex"))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&n.NdJ("focus",function(){return e._inputElement.nativeElement.focus()}),2&t&&(n.uIk("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.ekj("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable",e._noopAnimations)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.qOj],ngContentSelectors:d,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(n.F$t(),n.TgZ(0,"label",0,1),n.TgZ(2,"span",2),n._UZ(3,"span",3),n._UZ(4,"span",4),n.TgZ(5,"input",5,6),n.NdJ("change",function(t){return e._onInputChange(t)})("click",function(t){return e._onInputClick(t)}),n.qZA(),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA(),n.qZA(),n.TgZ(9,"span",9),n.TgZ(10,"span",10),n._uU(11,"\xa0"),n.qZA(),n.Hsn(12),n.qZA(),n.qZA()),2&t){const t=n.MAs(1);n.uIk("for",e.inputId),n.xp6(5),n.Q6J("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),n.uIk("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(18,h,e._noopAnimations?0:150)),n.xp6(2),n.ekj("mat-radio-label-before","before"==e.labelPosition)}},directives:[s.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-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;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.si,s.BQ],s.BQ]}),t})()},4786:function(t,e,i){"use strict";i.d(e,{gD:function(){return Y},LD:function(){return V},$L:function(){return j}});var n=i(2522),s=i(61511),o=i(31572),r=i(71522),a=i(66283),c=i(4253),u=i(24621),l=i(19861),h=i(4230),d=i(75842),p=i(55959),g=i(31450),f=i(31906),m=i(56238),b=i(44689),w=i(90611),_=i(43835),y=i(79996),A=i(98720),v=i(25416),T=i(10709),C=i(22526),S=i(16073);const E=["trigger"],k=["panel"];function x(t,e){if(1&t&&(o.TgZ(0,"span",8),o._uU(1),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Oqu(t.placeholder)}}function R(t,e){if(1&t&&(o.TgZ(0,"span",12),o._uU(1),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Oqu(t.triggerValue)}}function I(t,e){1&t&&o.Hsn(0,0,["*ngSwitchCase","true"])}function O(t,e){if(1&t&&(o.TgZ(0,"span",9),o.YNc(1,R,2,1,"span",10),o.YNc(2,I,1,0,"ng-content",11),o.qZA()),2&t){const t=o.oxw();o.Q6J("ngSwitch",!!t.customTrigger),o.xp6(2),o.Q6J("ngSwitchCase",!0)}}function P(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",13),o.TgZ(1,"div",14,15),o.NdJ("@transformPanel.done",function(e){return o.CHM(t),o.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return o.CHM(t),o.oxw()._handleKeydown(e)}),o.Hsn(3,1),o.qZA(),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("@transformPanelWrap",void 0),o.xp6(1),o.Gre("mat-select-panel ",t._getPanelTheme(),""),o.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),o.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),o.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const D=[[["mat-select-trigger"]],"*"],M=["mat-select-trigger","*"],L={transformPanelWrap:(0,T.X$)("transformPanelWrap",[(0,T.eR)("* => void",(0,T.IO)("@transformPanel",[(0,T.pV)()],{optional:!0}))]),transformPanel:(0,T.X$)("transformPanel",[(0,T.SB)("void",(0,T.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,T.SB)("showing",(0,T.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,T.SB)("showing-multiple",(0,T.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,T.eR)("void => *",(0,T.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,T.eR)("* => void",(0,T.jt)("100ms 25ms linear",(0,T.oB)({opacity:0})))])};let N=0;const z=new o.OlP("mat-select-scroll-strategy"),F=new o.OlP("MAT_SELECT_CONFIG"),Z={provide:z,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class B{constructor(t,e){this.source=t,this.value=e}}class q{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const U=(0,r.Kr)((0,r.sb)((0,r.Id)((0,r.FD)(q)))),H=new o.OlP("MatSelectTrigger");let j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-select-trigger"]],features:[o._Bn([{provide:H,useExisting:t}])]}),t})(),G=(()=>{class t extends U{constructor(t,e,i,n,s,r,a,c,u,l,h,d,A,v){var T,C,S;super(s,n,a,c,l),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=u,this.ngControl=l,this._liveAnnouncer=A,this._defaultOptions=v,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+N++,this._triggerAriaLabelledBy=null,this._destroy=new p.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+N++,this._panelDoneAnimatingStream=new p.xQ,this._overlayPanelClass=(null===(T=this._defaultOptions)||void 0===T?void 0:T.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(S=null===(C=this._defaultOptions)||void 0===C?void 0:C.disableOptionCentering)&&void 0!==S&&S,this.ariaLabel="",this.optionSelectionChanges=(0,g.P)(()=>{const t=this.options;return t?t.changes.pipe((0,m.O)(t),(0,b.w)(()=>(0,f.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,w.q)(1),(0,b.w)(()=>this.optionSelectionChanges))}),this.openedChange=new o.vpe,this._openedStream=this.openedChange.pipe((0,_.h)(t=>t),(0,y.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,_.h)(t=>!t),(0,y.U)(()=>{})),this.selectionChange=new o.vpe,this.valueChange=new o.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==v?void 0:v.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=v.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=(0,l.Ig)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,l.Ig)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=(0,l.Ig)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=(0,l.su)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,A.x)(),(0,v.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,v.R)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe((0,m.O)(null),(0,v.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.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(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,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 t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=e===d.JH||e===d.LH||e===d.oh||e===d.SV,n=e===d.K5||e===d.L_,s=this._keyManager;if(!s.isTyping()&&n&&!(0,d.Vb)(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=i===d.JH||i===d.LH,s=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(s||i!==d.K5&&i!==d.L_||!e.activeItem||(0,d.Vb)(t))if(!s&&this._multiple&&i===d.A&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.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,w.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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new u.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,v.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,v.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 t=(0,f.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,v.R)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,f.T)(...this.options.map(t=>t._stateChanges)).pipe((0,v.R)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(c.rL),o.Y36(o.sBO),o.Y36(o.R0b),o.Y36(r.rD),o.Y36(o.SBq),o.Y36(C.Is,8),o.Y36(S.F,8),o.Y36(S.sg,8),o.Y36(a.G_,8),o.Y36(S.a5,10),o.$8M("tabindex"),o.Y36(z),o.Y36(u.Kd),o.Y36(F,8))},t.\u0275dir=o.lG2({type:t,viewQuery:function(t,e){if(1&t&&(o.Gf(E,5),o.Gf(k,5),o.Gf(n.pI,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.trigger=t.first),o.iGM(t=o.CRH())&&(e.panel=t.first),o.iGM(t=o.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[o.qOj,o.TTD]}),t})(),Y=(()=>{class t extends G{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(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,v.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,w.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=(0,r.CB)(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=(0,r.jH)((t+e)*i,i,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new B(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const o=0-(t.left+s-(i?n:0)),r=t.right+s-e.width+(i?0:n);o>0?s+=o+8:r>0&&(s-=r+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,o=Math.floor(256/n);let r;return this.disableOptionCentering?0:(r=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-o))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*r-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),r=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;r>s?this._adjustPanelUp(r,s):o>n?this._adjustPanelDown(o,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=(0,r.CB)(s,this.options,this.optionGroups);const o=i/2;this._scrollTop=this._calculateOverlayScroll(s,o,n),this._offsetY=this._calculateOverlayOffsetY(s,o,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,H,5),o.Suo(i,r.ey,5),o.Suo(i,r.K7,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.customTrigger=t.first),o.iGM(t=o.CRH())&&(e.options=t),o.iGM(t=o.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&o.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(o.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),o.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[o._Bn([{provide:a.Eo,useExisting:t},{provide:r.HF,useExisting:t}]),o.qOj],ngContentSelectors:M,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(t,e){if(1&t&&(o.F$t(D),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return e.toggle()}),o.TgZ(3,"div",2),o.YNc(4,x,2,1,"span",3),o.YNc(5,O,3,2,"span",4),o.qZA(),o.TgZ(6,"div",5),o._UZ(7,"div",6),o.qZA(),o.qZA(),o.YNc(8,P,4,14,"ng-template",7),o.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=o.MAs(1);o.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),o.xp6(3),o.Q6J("ngSwitch",e.empty),o.uIk("id",e._valueId),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngSwitchCase",!1),o.xp6(3),o.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[n.xu,s.RF,s.n9,n.pI,s.ED,s.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[L.transformPanelWrap,L.transformPanel]},changeDetection:0}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[Z],imports:[[s.ez,n.U8,r.Ng,r.BQ],c.ZD,a.lN,r.Ng,r.BQ]}),t})()},25122:function(t,e,i){"use strict";i.d(e,{JX:function(){return U},TM:function(){return H},Rh:function(){return q},SJ:function(){return j}});var n=i(11353),s=i(4253),o=i(61511),r=i(31572),a=i(71522),c=i(19861),u=i(75842),l=i(55959),h=i(87254),d=i(31906),p=i(43835),g=i(79996),f=i(88414),m=i(25416),b=i(98720),w=i(90611),_=i(56238),y=i(47701),A=i(10709),v=i(43490),T=i(24621),C=i(22526);const S=["*"];function E(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",2),r.NdJ("click",function(){return r.CHM(t),r.oxw()._onBackdropClicked()}),r.qZA()}if(2&t){const t=r.oxw();r.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function k(t,e){1&t&&(r.TgZ(0,"mat-drawer-content"),r.Hsn(1,2),r.qZA())}const x=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],R=["mat-drawer","mat-drawer-content","*"];function I(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",2),r.NdJ("click",function(){return r.CHM(t),r.oxw()._onBackdropClicked()}),r.qZA()}if(2&t){const t=r.oxw();r.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function O(t,e){1&t&&(r.TgZ(0,"mat-sidenav-content",3),r.Hsn(1,2),r.qZA())}const P=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],D=["mat-sidenav","mat-sidenav-content","*"],M=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",L={transformDrawer:(0,A.X$)("transform",[(0,A.SB)("open, open-instant",(0,A.oB)({transform:"none",visibility:"visible"})),(0,A.SB)("void",(0,A.oB)({"box-shadow":"none",visibility:"hidden"})),(0,A.eR)("void => open-instant",(0,A.jt)("0ms")),(0,A.eR)("void <=> open, open-instant => void",(0,A.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},N=new r.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),z=new r.OlP("MAT_DRAWER_CONTAINER");let F=(()=>{class t extends s.PQ{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36((0,r.Gpc)(()=>B)),r.Y36(r.SBq),r.Y36(s.mF),r.Y36(r.R0b))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&r.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[r.qOj],ngContentSelectors:S,decls:1,vars:0,template:function(t,e){1&t&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),Z=(()=>{class t{constructor(t,e,i,n,s,o,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=s,this._doc=o,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new l.xQ,this._animationEnd=new l.xQ,this._animationState="void",this.openedChange=new r.vpe(!0),this._openedStream=this.openedChange.pipe((0,p.h)(t=>t),(0,g.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),(0,f.h)(void 0)),this._closedStream=this.openedChange.pipe((0,p.h)(t=>!t),(0,g.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState&&"void"===t.toState),(0,f.h)(void 0)),this._destroyed=new l.xQ,this.onPositionChanged=new r.vpe,this._modeChanged=new l.xQ,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{(0,h.R)(this._elementRef.nativeElement,"keydown").pipe((0,p.h)(t=>t.keyCode===u.hY&&!this.disableClose&&!(0,u.Vb)(t)),(0,m.R)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe((0,b.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=(0,c.Ig)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=(0,c.Ig)(t)}get opened(){return this._opened}set opened(t){this.toggle((0,c.Ig)(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe((0,w.q)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(T.qV),r.Y36(T.tE),r.Y36(n.t4),r.Y36(r.R0b),r.Y36(o.K0,8),r.Y36(z,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&r.WFA("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(r.uIk("align",null),r.d8E("@transform",e._animationState),r.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:S,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.Hsn(1),r.qZA())},directives:[s.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),t})(),B=(()=>{class t{constructor(t,e,i,n,s,o=!1,a){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=a,this._drawers=new r.n_E,this.backdropClick=new r.vpe,this._destroyed=new l.xQ,this._doCheckSubject=new l.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new l.xQ,t&&t.change.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe((0,m.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=(0,c.Ig)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:(0,c.Ig)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,_.O)(this._allDrawers),(0,m.R)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,_.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,y.b)(10),(0,m.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(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState),(0,m.R)(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"!==t.mode&&t.openedChange.pipe((0,m.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe((0,m.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,w.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe((0,m.R)((0,d.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),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(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(C.Is,8),r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(s.rL),r.Y36(N),r.Y36(v.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,F,5),r.Suo(i,Z,5)),2&t){let t;r.iGM(t=r.CRH())&&(e._content=t.first),r.iGM(t=r.CRH())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&r.Gf(F,5),2&t){let t;r.iGM(t=r.CRH())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[r._Bn([{provide:z,useExisting:t}])],ngContentSelectors:R,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(t,e){1&t&&(r.F$t(x),r.YNc(0,E,1,2,"div",0),r.Hsn(1),r.Hsn(2,1),r.YNc(3,k,2,0,"mat-drawer-content",1)),2&t&&(r.Q6J("ngIf",e.hasBackdrop),r.xp6(3),r.Q6J("ngIf",!e._content))},directives:[o.O5,F],styles:[M],encapsulation:2,changeDetection:0}),t})(),q=(()=>{class t extends F{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36((0,r.Gpc)(()=>H)),r.Y36(r.SBq),r.Y36(s.mF),r.Y36(r.R0b))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&r.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[r.qOj],ngContentSelectors:S,decls:1,vars:0,template:function(t,e){1&t&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),U=(()=>{class t extends Z{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=(0,c.Ig)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=(0,c.su)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=(0,c.su)(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(r.uIk("align",null),r.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),r.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[r.qOj],ngContentSelectors:S,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.Hsn(1),r.qZA())},directives:[s.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),t})(),H=(()=>{class t extends B{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,q,5),r.Suo(i,U,5)),2&t){let t;r.iGM(t=r.CRH())&&(e._content=t.first),r.iGM(t=r.CRH())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[r._Bn([{provide:z,useExisting:t}]),r.qOj],ngContentSelectors:D,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(r.F$t(P),r.YNc(0,I,1,2,"div",0),r.Hsn(1),r.Hsn(2,1),r.YNc(3,O,2,0,"mat-sidenav-content",1)),2&t&&(r.Q6J("ngIf",e.hasBackdrop),r.xp6(3),r.Q6J("ngIf",!e._content))},directives:[o.O5,q,s.PQ],styles:[M],encapsulation:2,changeDetection:0}),t})(),j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[o.ez,a.BQ,n.ud,s.ZD],s.ZD,a.BQ]}),t})()},27521:function(t,e,i){"use strict";i.d(e,{Rr:function(){return A},rP:function(){return T}});var n=i(36337),s=i(31572),o=i(71522),r=i(19861),a=i(16073),c=i(43490),u=i(24621);const l=["thumbContainer"],h=["toggleBar"],d=["input"],p=function(t){return{enterDuration:t}},g=["*"],f=new s.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let m=0;const b={provide:a.JU,useExisting:(0,s.Gpc)(()=>A),multi:!0};class w{constructor(t,e){this.source=t,this.checked=e}}class _{constructor(t){this._elementRef=t}}const y=(0,o.sb)((0,o.pj)((0,o.Kr)((0,o.Id)(_))));let A=(()=>{class t extends y{constructor(t,e,i,n,o,r){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=o,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++m,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new s.vpe,this.toggleChange=new s.vpe,this.tabIndex=parseInt(n)||0,this.color=this.defaultColor=o.color||"accent",this._noopAnimations="NoopAnimations"===r}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t)}get checked(){return this._checked}set checked(t){this._checked=(0,r.Ig)(t),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new w(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(u.tE),s.Y36(s.sBO),s.$8M("tabindex"),s.Y36(f),s.Y36(c.Qb,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){if(1&t&&(s.Gf(l,5),s.Gf(h,5),s.Gf(d,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._thumbEl=t.first),s.iGM(t=s.CRH())&&(e._thumbBarEl=t.first),s.iGM(t=s.CRH())&&(e._inputElement=t.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),s.ekj("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[s._Bn([b]),s.qOj],ngContentSelectors:g,decls:16,vars:19,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"div",2,3),s.TgZ(4,"input",4,5),s.NdJ("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(6,"div",6,7),s._UZ(8,"div",8),s.TgZ(9,"div",9),s._UZ(10,"div",10),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"span",11,12),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(13,"span",13),s._uU(14,"\xa0"),s.qZA(),s.Hsn(15),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),i=s.MAs(12);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),s.xp6(2),s.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),s.uIk("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.xp6(5),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.VKq(17,p,e._noopAnimations?0:150))}},directives:[o.wG,n.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{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%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[v,o.si,o.BQ,n.Q8],v,o.BQ]}),t})()},71403:function(t,e,i){"use strict";i.d(e,{ZX:function(){return u}});var n=i(2522),s=i(26899),o=i(61511),r=i(31572),a=i(71522),c=i(15980);i(55959),i(90611),i(10709),i(11353);let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.U8,s.eL,o.ez,c.ot,a.BQ],a.BQ]}),t})()},58623:function(t,e,i){"use strict";i.d(e,{YE:function(){return w},nU:function(){return S},JX:function(){return E}});var n=i(31572),s=i(19861),o=i(71522),r=i(75842),a=i(55959),c=i(31906),u=i(10709),l=i(61511),h=i(24621);const d=["mat-sort-header",""];function p(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){return n.CHM(t),n.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return n.CHM(t),n.oxw()._disableViewStateAnimation=!1}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6),n._UZ(4,"div",7),n._UZ(5,"div",8),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",t._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",t._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",t._getArrowDirectionState())}}const g=["*"],f=new n.OlP("MAT_SORT_DEFAULT_OPTIONS");class m{}const b=(0,o.dB)((0,o.Id)(m));let w=(()=>{class t extends b{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new a.xQ,this.start="asc",this._direction="",this.sortChange=new n.vpe}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=(0,s.Ig)(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,i,n;if(!t)return"";const s=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let o=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,s),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(f,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.qOj,n.TTD]}),t})();const _=o.mZ.ENTERING+" "+o.yN.STANDARD_CURVE,y={indicator:(0,u.X$)("indicator",[(0,u.SB)("active-asc, asc",(0,u.oB)({transform:"translateY(0px)"})),(0,u.SB)("active-desc, desc",(0,u.oB)({transform:"translateY(10px)"})),(0,u.eR)("active-asc <=> active-desc",(0,u.jt)(_))]),leftPointer:(0,u.X$)("leftPointer",[(0,u.SB)("active-asc, asc",(0,u.oB)({transform:"rotate(-45deg)"})),(0,u.SB)("active-desc, desc",(0,u.oB)({transform:"rotate(45deg)"})),(0,u.eR)("active-asc <=> active-desc",(0,u.jt)(_))]),rightPointer:(0,u.X$)("rightPointer",[(0,u.SB)("active-asc, asc",(0,u.oB)({transform:"rotate(45deg)"})),(0,u.SB)("active-desc, desc",(0,u.oB)({transform:"rotate(-45deg)"})),(0,u.eR)("active-asc <=> active-desc",(0,u.jt)(_))]),arrowOpacity:(0,u.X$)("arrowOpacity",[(0,u.SB)("desc-to-active, asc-to-active, active",(0,u.oB)({opacity:1})),(0,u.SB)("desc-to-hint, asc-to-hint, hint",(0,u.oB)({opacity:.54})),(0,u.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,u.oB)({opacity:0})),(0,u.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,u.jt)("0ms")),(0,u.eR)("* <=> *",(0,u.jt)(_))]),arrowPosition:(0,u.X$)("arrowPosition",[(0,u.eR)("* => desc-to-hint, * => desc-to-active",(0,u.jt)(_,(0,u.F4)([(0,u.oB)({transform:"translateY(-25%)"}),(0,u.oB)({transform:"translateY(0)"})]))),(0,u.eR)("* => hint-to-desc, * => active-to-desc",(0,u.jt)(_,(0,u.F4)([(0,u.oB)({transform:"translateY(0)"}),(0,u.oB)({transform:"translateY(25%)"})]))),(0,u.eR)("* => asc-to-hint, * => asc-to-active",(0,u.jt)(_,(0,u.F4)([(0,u.oB)({transform:"translateY(25%)"}),(0,u.oB)({transform:"translateY(0)"})]))),(0,u.eR)("* => hint-to-asc, * => active-to-asc",(0,u.jt)(_,(0,u.F4)([(0,u.oB)({transform:"translateY(0)"}),(0,u.oB)({transform:"translateY(-25%)"})]))),(0,u.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,u.oB)({transform:"translateY(0)"})),(0,u.SB)("hint-to-desc, active-to-desc, desc",(0,u.oB)({transform:"translateY(-25%)"})),(0,u.SB)("hint-to-asc, active-to-asc, asc",(0,u.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,u.X$)("allowChildren",[(0,u.eR)("* <=> *",[(0,u.IO)("@*",(0,u.pV)(),{optional:!0})])])};let A=(()=>{class t{constructor(){this.changes=new a.xQ}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const v={provide:A,deps:[[new n.FiY,new n.tp0,A]],useFactory:function(t){return t||new A}};class T{}const C=(0,o.Id)(T);let S=(()=>{class t extends C{constructor(t,e,i,n,s,o){super(),this._intl=t,this._changeDetectorRef=e,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=(0,s.Ig)(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.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(t){this._isDisabled()||t.keyCode!==r.L_&&t.keyCode!==r.K5||(t.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 t=this._viewState.fromState;return(t?`${t}-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()}_handleStateChanges(){this._rerenderSubscription=(0,c.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 t.\u0275fac=function(e){return new(e||t)(n.Y36(A),n.Y36(n.sBO),n.Y36(w,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36(h.tE),n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(n.uIk("aria-sort",e._getAriaSortAttribute()),n.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[n.qOj],attrs:d,ngContentSelectors:g,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,p,6,6,"div",2),n.qZA()),2&t&&(n.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),n.uIk("tabindex",e._isDisabled()?null:0),n.xp6(3),n.Q6J("ngIf",e._renderArrow()))},directives:[l.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[y.indicator,y.leftPointer,y.rightPointer,y.arrowOpacity,y.arrowPosition,y.allowChildren]},changeDetection:0}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[v],imports:[[l.ez,o.BQ]]}),t})()},70663:function(t,e,i){"use strict";i.d(e,{C0:function(){return at},VY:function(){return W},Vq:function(){return ht},T5:function(){return gt},Ic:function(){return dt},fd:function(){return pt}});var n=i(26899),s=i(24621),o=i(22526),r=i(19861),a=i(75842),c=i(61511),u=i(31572),l=i(55959),h=i(40878),d=i(56238),p=i(25416);function g(t,e){1&t&&u.Hsn(0)}const f=["*"];let m=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.SBq))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),b=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.Rgc))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),w=0;const _=new u.OlP("STEPPER_GLOBAL_OPTIONS");let y=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this.interactedStream=new u.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=(0,r.Ig)(t)}get optional(){return this._optional}set optional(t){this._optional=(0,r.Ig)(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=(0,r.Ig)(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=(0,r.Ig)(t)}_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))}}return t.\u0275fac=function(e){return new(e||t)(u.Y36((0,u.Gpc)(()=>A)),u.Y36(_,8))},t.\u0275cmp=u.Xpm({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){if(1&t&&u.Suo(i,b,5),2&t){let t;u.iGM(t=u.CRH())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&u.Gf(u.Rgc,7),2&t){let t;u.iGM(t=u.CRH())&&(e.content=t.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[u.TTD],ngContentSelectors:f,decls:1,vars:0,template:function(t,e){1&t&&(u.F$t(),u.YNc(0,g,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),A=(()=>{class t{constructor(t,e,i,n){this._dir=t,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new l.xQ,this.steps=new u.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new u.vpe,this._orientation="horizontal",this._groupId=w++,this._document=n}get linear(){return this._linear}set linear(t){this._linear=(0,r.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var e;const i=(0,r.su)(t);this.steps&&this._steps?(this._isValidIndex(t),null===(e=this.selected)||void 0===e||e._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}get orientation(){return this._orientation}set orientation(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===t)}ngAfterContentInit(){this._steps.changes.pipe((0,d.O)(this._steps),(0,p.R)(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new s.Em(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,h.of)()).pipe((0,d.O)(this._layoutDirection()),(0,p.R)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),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._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(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?"error":!t.completed||e?"number":t.editable?"edit":"done"}_getGuidelineLogic(t,e,i="number"){return t._showError&&t.hasError&&!e?"error":t.completed&&!e?"done":t.completed&&e?i:t.editable&&e?"edit":i}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=(0,a.Vb)(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==a.L_&&i!==a.K5?n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_isValidIndex(t){return t>-1&&(!this.steps||t{class t{constructor(t){this._stepper=t,this.type="submit"}_handleClick(){this._stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(A))},t.\u0275dir=u.lG2({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&u.NdJ("click",function(){return e._handleClick()}),2&t&&u.Ikx("type",e.type)},inputs:{type:"type"}}),t})(),T=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(A))},t.\u0275dir=u.lG2({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&u.NdJ("click",function(){return e._handleClick()}),2&t&&u.Ikx("type",e.type)},inputs:{type:"type"}}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({imports:[[o.vT]]}),t})();var S=i(15980),E=i(71522),k=i(43691),x=i(87570),R=i(44689),I=i(79996),O=i(98720),P=i(10709);function D(t,e){if(1&t&&u.GkF(0,8),2&t){const t=u.oxw();u.Q6J("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function M(t,e){if(1&t&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&t){const t=u.oxw(2);u.xp6(1),u.Oqu(t._getDefaultTextForState(t.state))}}function L(t,e){if(1&t&&(u.TgZ(0,"mat-icon"),u._uU(1),u.qZA()),2&t){const t=u.oxw(2);u.xp6(1),u.Oqu(t._getDefaultTextForState(t.state))}}function N(t,e){if(1&t&&(u.ynx(0,9),u.YNc(1,M,2,1,"span",10),u.YNc(2,L,2,1,"mat-icon",11),u.BQk()),2&t){const t=u.oxw();u.Q6J("ngSwitch",t.state),u.xp6(1),u.Q6J("ngSwitchCase","number")}}function z(t,e){if(1&t&&(u.TgZ(0,"div",12),u.GkF(1,13),u.qZA()),2&t){const t=u.oxw();u.xp6(1),u.Q6J("ngTemplateOutlet",t._templateLabel().template)}}function F(t,e){if(1&t&&(u.TgZ(0,"div",12),u._uU(1),u.qZA()),2&t){const t=u.oxw();u.xp6(1),u.Oqu(t.label)}}function Z(t,e){if(1&t&&(u.TgZ(0,"div",14),u._uU(1),u.qZA()),2&t){const t=u.oxw();u.xp6(1),u.Oqu(t._intl.optionalLabel)}}function B(t,e){if(1&t&&(u.TgZ(0,"div",15),u._uU(1),u.qZA()),2&t){const t=u.oxw();u.xp6(1),u.Oqu(t.errorMessage)}}function q(t,e){}function U(t,e){if(1&t&&(u.Hsn(0),u.YNc(1,q,0,0,"ng-template",0)),2&t){const t=u.oxw();u.xp6(1),u.Q6J("cdkPortalOutlet",t._portal)}}const H=["*"];function j(t,e){1&t&&u._UZ(0,"div",9)}const G=function(t,e){return{step:t,i:e}};function Y(t,e){if(1&t&&(u.ynx(0),u.GkF(1,7),u.YNc(2,j,1,0,"div",8),u.BQk()),2&t){const t=e.$implicit,i=e.index,n=e.last;u.oxw(2);const s=u.MAs(4);u.xp6(1),u.Q6J("ngTemplateOutlet",s)("ngTemplateOutletContext",u.WLB(3,G,t,i)),u.xp6(1),u.Q6J("ngIf",!n)}}function V(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div",10),u.NdJ("@horizontalStepTransition.done",function(e){return u.CHM(t),u.oxw(2)._animationDone.next(e)}),u.GkF(1,11),u.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=u.oxw(2);u.Q6J("@horizontalStepTransition",n._getAnimationDirection(i))("id",n._getStepContentId(i)),u.uIk("aria-labelledby",n._getStepLabelId(i))("aria-expanded",n.selectedIndex===i),u.xp6(1),u.Q6J("ngTemplateOutlet",t.content)}}function K(t,e){if(1&t&&(u.ynx(0),u.TgZ(1,"div",3),u.YNc(2,Y,3,6,"ng-container",4),u.qZA(),u.TgZ(3,"div",5),u.YNc(4,V,2,5,"div",6),u.qZA(),u.BQk()),2&t){const t=u.oxw();u.xp6(2),u.Q6J("ngForOf",t.steps),u.xp6(2),u.Q6J("ngForOf",t.steps)}}function J(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div",13),u.GkF(1,7),u.TgZ(2,"div",14),u.TgZ(3,"div",15),u.NdJ("@verticalStepTransition.done",function(e){return u.CHM(t),u.oxw(2)._animationDone.next(e)}),u.TgZ(4,"div",16),u.GkF(5,11),u.qZA(),u.qZA(),u.qZA(),u.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=e.last,s=u.oxw(2),o=u.MAs(4);u.xp6(1),u.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",u.WLB(9,G,t,i)),u.xp6(1),u.ekj("mat-stepper-vertical-line",!n),u.xp6(1),u.Q6J("@verticalStepTransition",s._getAnimationDirection(i))("id",s._getStepContentId(i)),u.uIk("aria-labelledby",s._getStepLabelId(i))("aria-expanded",s.selectedIndex===i),u.xp6(2),u.Q6J("ngTemplateOutlet",t.content)}}function $(t,e){if(1&t&&(u.ynx(0),u.YNc(1,J,6,12,"div",12),u.BQk()),2&t){const t=u.oxw();u.xp6(1),u.Q6J("ngForOf",t.steps)}}function Q(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"mat-step-header",17),u.NdJ("click",function(){return e.step.select()})("keydown",function(e){return u.CHM(t),u.oxw()._onKeydown(e)}),u.qZA()}if(2&t){const t=e.step,i=e.i,n=u.oxw();u.ekj("mat-horizontal-stepper-header","horizontal"===n.orientation)("mat-vertical-stepper-header","vertical"===n.orientation),u.Q6J("tabIndex",n._getFocusIndex()===i?0:-1)("id",n._getStepLabelId(i))("index",i)("state",n._getIndicatorType(i,t.state))("label",t.stepLabel||t.label)("selected",n.selectedIndex===i)("active",t.completed||n.selectedIndex===i||!n.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple)("color",t.color||n.color),u.uIk("aria-posinset",i+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null)}}let W=(()=>{class t extends b{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u.n5z(t)))(i||t)}}(),t.\u0275dir=u.lG2({type:t,selectors:[["","matStepLabel",""]],features:[u.qOj]}),t})(),X=(()=>{class t{constructor(){this.changes=new l.xQ,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=u.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const tt={provide:X,deps:[[new u.FiY,new u.tp0,X]],useFactory:function(t){return t||new X}};class et extends m{constructor(t){super(t)}}const it=(0,E.pj)(et,"primary");let nt=(()=>{class t extends it{constructor(t,e,i,n){super(i),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>n.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._elementRef,t,e):this._elementRef.nativeElement.focus(e)}_stringLabel(){return this.label instanceof W?null:this.label}_templateLabel(){return this.label instanceof W?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?`${this.index+1}`:"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(X),u.Y36(s.tE),u.Y36(u.SBq),u.Y36(u.sBO))},t.\u0275cmp=u.Xpm({type:t,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:[u.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"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(u._UZ(0,"div",0),u.TgZ(1,"div"),u.TgZ(2,"div",1),u.YNc(3,D,1,2,"ng-container",2),u.YNc(4,N,3,2,"ng-container",3),u.qZA(),u.qZA(),u.TgZ(5,"div",4),u.YNc(6,z,2,1,"div",5),u.YNc(7,F,2,1,"div",5),u.YNc(8,Z,2,1,"div",6),u.YNc(9,B,2,1,"div",7),u.qZA()),2&t&&(u.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),u.xp6(1),u.Gre("mat-step-icon-state-",e.state," mat-step-icon"),u.ekj("mat-step-icon-selected",e.selected),u.xp6(1),u.Q6J("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),u.xp6(1),u.Q6J("ngSwitchCase",!0),u.xp6(2),u.ekj("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),u.xp6(1),u.Q6J("ngIf",e._templateLabel()),u.xp6(1),u.Q6J("ngIf",e._stringLabel()),u.xp6(1),u.Q6J("ngIf",e.optional&&"error"!=e.state),u.xp6(1),u.Q6J("ngIf","error"==e.state))},directives:[E.wG,c.RF,c.n9,c.ED,c.O5,c.tP,k.Hw],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.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,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const st={horizontalStepTransition:(0,P.X$)("horizontalStepTransition",[(0,P.SB)("previous",(0,P.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,P.SB)("current",(0,P.oB)({transform:"none",visibility:"inherit"})),(0,P.SB)("next",(0,P.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,P.eR)("* => *",(0,P.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,P.X$)("verticalStepTransition",[(0,P.SB)("previous",(0,P.oB)({height:"0px",visibility:"hidden"})),(0,P.SB)("next",(0,P.oB)({height:"0px",visibility:"hidden"})),(0,P.SB)("current",(0,P.oB)({height:"*",visibility:"inherit"})),(0,P.eR)("* <=> current",(0,P.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let ot=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.Rgc))},t.\u0275dir=u.lG2({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),rt=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.Rgc))},t.\u0275dir=u.lG2({type:t,selectors:[["ng-template","matStepContent",""]]}),t})(),at=(()=>{class t extends y{constructor(t,e,i,n){super(t,n),this._errorStateMatcher=e,this._viewContainerRef=i,this._isSelected=x.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,R.w)(()=>this._stepper.selectionChange.pipe((0,I.U)(t=>t.selectedStep===this),(0,d.O)(this._stepper.selected===this)))).subscribe(t=>{t&&this._lazyContent&&!this._portal&&(this._portal=new n.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(u.Y36((0,u.Gpc)(()=>ht)),u.Y36(E.rD,4),u.Y36(u.s_b),u.Y36(_,8))},t.\u0275cmp=u.Xpm({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){if(1&t&&(u.Suo(i,W,5),u.Suo(i,rt,5)),2&t){let t;u.iGM(t=u.CRH())&&(e.stepLabel=t.first),u.iGM(t=u.CRH())&&(e._lazyContent=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[u._Bn([{provide:E.rD,useExisting:t},{provide:y,useExisting:t}]),u.qOj],ngContentSelectors:H,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(u.F$t(),u.YNc(0,U,2,1,"ng-template"))},directives:[n.Pl],encapsulation:2,changeDetection:0}),t})(),ct=(()=>{class t extends A{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u.n5z(t)))(i||t)}}(),t.\u0275dir=u.lG2({type:t,features:[u.qOj]}),t})(),ut=(()=>{class t extends ct{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u.n5z(t)))(i||t)}}(),t.\u0275dir=u.lG2({type:t,selectors:[["mat-horizontal-stepper"]],features:[u.qOj]}),t})(),lt=(()=>{class t extends ct{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u.n5z(t)))(i||t)}}(),t.\u0275dir=u.lG2({type:t,selectors:[["mat-vertical-stepper"]],features:[u.qOj]}),t})(),ht=(()=>{class t extends A{constructor(t,e,i,n){super(t,e,i,n),this.steps=new u.n_E,this.animationDone=new u.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new l.xQ;const s=i.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===s?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this.steps.changes.pipe((0,p.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,O.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),(0,p.R)(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(o.Is,8),u.Y36(u.sBO),u.Y36(u.SBq),u.Y36(c.K0))},t.\u0275cmp=u.Xpm({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,e,i){if(1&t&&(u.Suo(i,at,5),u.Suo(i,ot,5)),2&t){let t;u.iGM(t=u.CRH())&&(e._steps=t),u.iGM(t=u.CRH())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&u.Gf(nt,5),2&t){let t;u.iGM(t=u.CRH())&&(e._stepHeader=t)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,e){2&t&&(u.uIk("aria-orientation",e.orientation),u.ekj("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[u._Bn([{provide:A,useExisting:t},{provide:ut,useExisting:t},{provide:lt,useExisting:t}]),u.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(t,e){1&t&&(u.ynx(0,0),u.YNc(1,K,5,2,"ng-container",1),u.YNc(2,$,2,1,"ng-container",1),u.BQk(),u.YNc(3,Q,1,22,"ng-template",null,2,u.W1O)),2&t&&(u.Q6J("ngSwitch",e.orientation),u.xp6(1),u.Q6J("ngSwitchCase","horizontal"),u.xp6(1),u.Q6J("ngSwitchCase","vertical"))},directives:[c.RF,c.n9,c.sg,c.tP,c.O5,nt],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[st.horizontalStepTransition,st.verticalStepTransition]},changeDetection:0}),t})(),dt=(()=>{class t extends v{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u.n5z(t)))(i||t)}}(),t.\u0275dir=u.lG2({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,e){2&t&&u.Ikx("type",e.type)},inputs:{type:"type"},features:[u.qOj]}),t})(),pt=(()=>{class t extends T{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u.n5z(t)))(i||t)}}(),t.\u0275dir=u.lG2({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&u.Ikx("type",e.type)},inputs:{type:"type"},features:[u.qOj]}),t})(),gt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({providers:[tt,E.rD],imports:[[E.BQ,c.ez,n.eL,S.ot,C,k.Ps,E.si],E.BQ]}),t})()},67033:function(t,e,i){"use strict";i.d(e,{ev:function(){return dt},Dz:function(){return ct},w1:function(){return lt},ge:function(){return ht},fO:function(){return ut},XQ:function(){return ft},as:function(){return pt},Gk:function(){return mt},nj:function(){return gt},BZ:function(){return at},by:function(){return _t},p0:function(){return bt}});var n=i(19861),s=i(4230),o=i(31572),r=i(22526),a=i(11353),c=i(4253),u=i(61511),l=i(55959),h=i(19764),d=i(78512),p=i(4710),g=i(40878),f=i(25416),m=i(90611);const b=[[["caption"]],[["colgroup"],["col"]]],w=["caption","colgroup, col"];function _(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=(0,n.Ig)(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const y=new o.OlP("CDK_TABLE");let A=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkCellDef",""]]}),t})(),v=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),T=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class C{}const S=_(C);let E=(()=>{class t extends S{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=(0,n.Ig)(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(y,8))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,A,5),o.Suo(i,v,5),o.Suo(i,T,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.cell=t.first),o.iGM(t=o.CRH())&&(e.headerCell=t.first),o.iGM(t=o.CRH())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[o._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),o.qOj]}),t})();class k{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let x=(()=>{class t extends k{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(E),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[o.qOj]}),t})(),R=(()=>{class t extends k{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(E),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[o.qOj]}),t})();class I{constructor(){this.tasks=[],this.endTasks=[]}}const O=new o.OlP("_COALESCED_STYLE_SCHEDULER");let P=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new l.xQ}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new I,this._getScheduleObservable().pipe((0,f.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new I;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,h.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,m.q)(1))}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(o.R0b))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof N?t.headerCell.template:this instanceof Z?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o.ZZ4))},t.\u0275dir=o.lG2({type:t,features:[o.TTD]}),t})();class M extends D{}const L=_(M);let N=(()=>{class t extends L{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(y,8))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[o.qOj,o.TTD]}),t})();class z extends D{}const F=_(z);let Z=(()=>{class t extends F{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(y,8))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[o.qOj,o.TTD]}),t})(),B=(()=>{class t extends D{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(y,8))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[o.qOj]}),t})(),q=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.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(t,e){1&t&&o.GkF(0,0)},directives:[q],encapsulation:2}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.GkF(0,0)},directives:[q],encapsulation:2}),t})(),j=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const G=["top","bottom","left","right"];class Y{constructor(t,e,i,n,s=!0,o=!0,r){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=s,this._needsPositionStickyOnElement=o,this._positionListener=r,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(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],o=s.children.length,r=this._getCellWidths(s,n),a=this._getStickyStartColumnPositions(r,e),c=this._getStickyEndColumnPositions(r,i),u=e.lastIndexOf(!0),l=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const n="rtl"===this.direction,s=n?"right":"left",h=n?"left":"right";for(const r of t)for(let t=0;te[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===l?[]:r.slice(l).map((t,e)=>i[e+l]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,o=[],r=[],a=[];for(let u=0,l=0;u{var t,e;for(let r=0;r{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);G.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of G)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}const V=new o.OlP("CDK_SPL");let K=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","rowOutlet",""]]}),t})(),J=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),$=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),Q=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),W=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,h){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=r,this._viewRepeater=a,this._coalescedStyleScheduler=c,this._viewportRuler=u,this._stickyPositioningListener=h,this._onDestroy=new l.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new d.X({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=(0,n.Ig)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=(0,n.Ig)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler.change().pipe((0,f.R)(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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,s.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),X(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=X(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=X(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=X(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],(0,s.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;(0,s.Z9)(this.dataSource)?t=this.dataSource.connect(this):(0,p.b)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=(0,g.of)(this.dataSource)),this._renderChangeSubscription=t.pipe((0,f.R)(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const s=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),s}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))q.mostRecentCellOutlet&&q.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Y(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,g.of)()).pipe((0,f.R)(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.ZZ4),o.Y36(o.sBO),o.Y36(o.SBq),o.$8M("role"),o.Y36(r.Is,8),o.Y36(u.K0),o.Y36(a.t4),o.Y36(s.k),o.Y36(O),o.Y36(c.rL),o.Y36(V,12))},t.\u0275cmp=o.Xpm({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,j,5),o.Suo(i,E,5),o.Suo(i,B,5),o.Suo(i,N,5),o.Suo(i,Z,5)),2&t){let t;o.iGM(t=o.CRH())&&(e._noDataRow=t.first),o.iGM(t=o.CRH())&&(e._contentColumnDefs=t),o.iGM(t=o.CRH())&&(e._contentRowDefs=t),o.iGM(t=o.CRH())&&(e._contentHeaderRowDefs=t),o.iGM(t=o.CRH())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(o.Gf(K,7),o.Gf(J,7),o.Gf($,7),o.Gf(Q,7)),2&t){let t;o.iGM(t=o.CRH())&&(e._rowOutlet=t.first),o.iGM(t=o.CRH())&&(e._headerRowOutlet=t.first),o.iGM(t=o.CRH())&&(e._footerRowOutlet=t.first),o.iGM(t=o.CRH())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[o._Bn([{provide:y,useExisting:t},{provide:s.k,useClass:s.yy},{provide:O,useClass:P},{provide:V,useValue:null}])],ngContentSelectors:w,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(o.F$t(b),o.Hsn(0),o.Hsn(1,1),o.GkF(2,0),o.GkF(3,1),o.GkF(4,2),o.GkF(5,3))},directives:[J,K,Q,$],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function X(t,e){return t.concat(Array.from(e))}let tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[c.Cl]]}),t})();var et=i(71522),it=i(31906),nt=i(31305),st=i(79996);const ot=[[["caption"]],[["colgroup"],["col"]]],rt=["caption","colgroup, col"];let at=(()=>{class t extends W{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[o._Bn([{provide:s.k,useClass:s.yy},{provide:W,useExisting:t},{provide:y,useExisting:t},{provide:O,useClass:P},{provide:V,useValue:null}]),o.qOj],ngContentSelectors:rt,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(o.F$t(ot),o.Hsn(0),o.Hsn(1,1),o.GkF(2,0),o.GkF(3,1),o.GkF(4,2),o.GkF(5,3))},directives:[J,K,Q,$],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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),ct=(()=>{class t extends A{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matCellDef",""]],features:[o._Bn([{provide:A,useExisting:t}]),o.qOj]}),t})(),ut=(()=>{class t extends v{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matHeaderCellDef",""]],features:[o._Bn([{provide:v,useExisting:t}]),o.qOj]}),t})(),lt=(()=>{class t extends E{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[o._Bn([{provide:E,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),o.qOj]}),t})(),ht=(()=>{class t extends x{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[o.qOj]}),t})(),dt=(()=>{class t extends R{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[o.qOj]}),t})(),pt=(()=>{class t extends N{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[o._Bn([{provide:N,useExisting:t}]),o.qOj]}),t})(),gt=(()=>{class t extends B{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[o._Bn([{provide:B,useExisting:t}]),o.qOj]}),t})(),ft=(()=>{class t extends U{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[o._Bn([{provide:U,useExisting:t}]),o.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.GkF(0,0)},directives:[q],encapsulation:2}),t})(),mt=(()=>{class t extends H{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[o._Bn([{provide:H,useExisting:t}]),o.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.GkF(0,0)},directives:[q],encapsulation:2}),t})(),bt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[tt,et.BQ],et.BQ]}),t})();class wt extends s.o2{constructor(t=[]){super(),this._renderData=new d.X([]),this._filter=new d.X(""),this._internalPageChanges=new l.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const i=t[e];if((0,n.t6)(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),o=this.sortingDataAccessor(e,i);const r=typeof s,a=typeof o;r!==a&&("number"===r&&(s+=""),"number"===a&&(o+=""));let c=0;return null!=s&&null!=o?s>o?c=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new d.X(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?(0,it.T)(this._sort.sortChange,this._sort.initialized):(0,g.of)(null),i=this._paginator?(0,it.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,g.of)(null),n=(0,nt.aj)([this._data,this._filter]).pipe((0,st.U)(([t])=>this._filterData(t))),s=(0,nt.aj)([n,e]).pipe((0,st.U)(([t])=>this._orderData(t))),o=(0,nt.aj)([s,i]).pipe((0,st.U)(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=o.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}class _t extends wt{}},55109:function(t,e,i){"use strict";i.d(e,{uX:function(){return $},Vc:function(){return j},SP:function(){return at},uD:function(){return Y},Nh:function(){return ft}});var n=i(24621),s=i(36337),o=i(26899),r=i(61511),a=i(31572),c=i(71522),u=i(43490),l=i(55959),h=i(87570),d=i(31906),p=i(87254),g=i(40878),f=i(81110),m=i(10709),b=i(56238),w=i(98720),_=i(25416),y=i(19861),A=i(11353),v=i(75842),T=i(22526),C=i(4253);function S(t,e){1&t&&a.Hsn(0)}const E=["*"];function k(t,e){}const x=function(t){return{animationDuration:t}},R=function(t,e){return{value:t,params:e}},I=["tabBodyWrapper"],O=["tabHeader"];function P(t,e){}function D(t,e){if(1&t&&a.YNc(0,P,0,0,"ng-template",9),2&t){const t=a.oxw().$implicit;a.Q6J("cdkPortalOutlet",t.templateLabel)}}function M(t,e){if(1&t&&a._uU(0),2&t){const t=a.oxw().$implicit;a.Oqu(t.textLabel)}}function L(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){const e=a.CHM(t),i=e.$implicit,n=e.index,s=a.oxw(),o=a.MAs(1);return s._handleClick(i,o,n)})("cdkFocusChange",function(e){const i=a.CHM(t).index;return a.oxw()._tabFocusChanged(e,i)}),a.TgZ(1,"div",7),a.YNc(2,D,1,1,"ng-template",8),a.YNc(3,M,1,1,"ng-template",8),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.ekj("mat-tab-label-active",n.selectedIndex==i),a.Q6J("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),a.uIk("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),a.xp6(2),a.Q6J("ngIf",t.templateLabel),a.xp6(1),a.Q6J("ngIf",!t.templateLabel)}}function N(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-tab-body",10),a.NdJ("_onCentered",function(){return a.CHM(t),a.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return a.CHM(t),a.oxw()._setTabBodyWrapperHeight(e)}),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.ekj("mat-tab-body-active",n.selectedIndex==i),a.Q6J("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),a.uIk("aria-labelledby",n._getTabLabelId(i))}}const z=["tabListContainer"],F=["tabList"],Z=["nextPaginator"],B=["previousPaginator"],q=new a.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let U=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(q),a.Y36(u.Qb,8))},t.\u0275dir=a.lG2({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const H=new a.OlP("MatTabContent");let j=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.Rgc))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabContent",""]],features:[a._Bn([{provide:H,useExisting:t}])]}),t})();const G=new a.OlP("MatTabLabel");let Y=(()=>{class t extends o.ig{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=a.n5z(t)))(i||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a._Bn([{provide:G,useExisting:t}]),a.qOj]}),t})();class V{}const K=(0,c.Id)(V),J=new a.OlP("MAT_TAB_GROUP");let $=(()=>{class t extends K{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new l.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new o.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.s_b),a.Y36(J,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){if(1&t&&(a.Suo(i,G,5),a.Suo(i,H,7,a.Rgc)),2&t){let t;a.iGM(t=a.CRH())&&(e.templateLabel=t.first),a.iGM(t=a.CRH())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&a.Gf(a.Rgc,7),2&t){let t;a.iGM(t=a.CRH())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.qOj,a.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(a.F$t(),a.YNc(0,S,1,0,"ng-template"))},encapsulation:2}),t})();const Q={translateTab:(0,m.X$)("translateTab",[(0,m.SB)("center, void, left-origin-center, right-origin-center",(0,m.oB)({transform:"none"})),(0,m.SB)("left",(0,m.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,m.SB)("right",(0,m.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,m.eR)("* => left, * => right, left => center, right => center",(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,m.eR)("void => left-origin-center",[(0,m.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,m.eR)("void => right-origin-center",[(0,m.oB)({transform:"translate3d(100%, 0, 0)"}),(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let W=(()=>{class t extends o.Pl{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=h.w.EMPTY,this._leavingSub=h.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,b.O)(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36((0,a.Gpc)(()=>tt)),a.Y36(r.K0))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabBodyHost",""]],features:[a.qOj]}),t})(),X=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=h.w.EMPTY,this._translateTabComplete=new l.xQ,this._onCentering=new a.vpe,this._beforeCentering=new a.vpe,this._afterLeavingCenter=new a.vpe,this._onCentered=new a.vpe(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe((0,w.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(T.Is,8),a.Y36(a.sBO))},t.\u0275dir=a.lG2({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),tt=(()=>{class t extends X{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(T.Is,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&a.Gf(o.Pl,5),2&t){let t;a.iGM(t=a.CRH())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(a.TgZ(0,"div",0,1),a.NdJ("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),a.YNc(2,k,0,0,"ng-template",2),a.qZA()),2&t&&a.Q6J("@translateTab",a.WLB(3,R,e._position,a.VKq(1,x,e.animationDuration)))},directives:[W],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Q.translateTab]}}),t})();const et=new a.OlP("MAT_TABS_CONFIG");let it=0;class nt{}class st{constructor(t){this._elementRef=t}}const ot=(0,c.pj)((0,c.Kr)(st),"primary");let rt=(()=>{class t extends ot{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new a.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=h.w.EMPTY,this._tabLabelSubscription=h.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.vpe,this.focusChange=new a.vpe,this.animationDone=new a.vpe,this.selectedTabChange=new a.vpe(!0),this._groupId=it++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,this.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=(0,y.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=(0,y.su)(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));const e=this._tabBodyWrapper.nativeElement;e.style.minHeight=e.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.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()}focusTab(t){const e=this._tabHeader;e&&(e.focusIndex=t)}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new nt;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,d.T)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}_tabFocusChanged(t,e){t&&(this._tabHeader.focusIndex=e)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(et,8),a.Y36(u.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.qOj]}),t})(),at=(()=>{class t extends rt{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(et,8),a.Y36(u.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,$,5),2&t){let t;a.iGM(t=a.CRH())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(I,5),a.Gf(O,5)),2&t){let t;a.iGM(t=a.CRH())&&(e._tabBodyWrapper=t.first),a.iGM(t=a.CRH())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&a.ekj("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a._Bn([{provide:J,useExisting:t}]),a.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","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(a.TgZ(0,"mat-tab-header",0,1),a.NdJ("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),a.YNc(2,L,4,14,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.YNc(5,N,1,8,"mat-tab-body",5),a.qZA()),2&t&&(a.Q6J("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),a.xp6(2),a.Q6J("ngForOf",e._tabs),a.xp6(1),a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.xp6(2),a.Q6J("ngForOf",e._tabs))},directives:function(){return[gt,r.sg,lt,c.wG,n.kH,r.O5,o.Pl,tt]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class ct{}const ut=(0,c.Id)(ct);let lt=(()=>{class t extends ut{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(a.uIk("aria-disabled",!!e.disabled),a.ekj("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[a.qOj]}),t})();const ht=(0,A.i$)({passive:!0});let dt=(()=>{class t{constructor(t,e,i,n,s,o,r){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=s,this._platform=o,this._animationMode=r,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new l.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new l.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.vpe,this.indexFocused=new a.vpe,s.runOutsideAngular(()=>{(0,p.R)(t.nativeElement,"mouseleave").pipe((0,_.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=(0,y.su)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){(0,p.R)(this._previousPaginator.nativeElement,"touchstart",ht).pipe((0,_.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,p.R)(this._nextPaginator.nativeElement,"touchstart",ht).pipe((0,_.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:(0,g.of)("ltr"),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new n.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),(0,d.T)(t,e,this._items.changes).pipe((0,_.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(i)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,_.R)(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}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(t){if(!(0,v.Vb)(t))switch(t.keyCode){case v.K5:case v.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",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(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:s}=e.elementRef.nativeElement;let o,r;"ltr"==this._getLayoutDirection()?(o=n,r=o+s):(r=this._tabList.nativeElement.offsetWidth-n,o=r-s);const a=this.scrollDistance,c=this.scrollDistance+i;oc&&(this.scrollDistance+=r-c+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_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._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),(0,f.H)(650,100).pipe((0,_.R)((0,d.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(C.rL),a.Y36(T.Is,8),a.Y36(a.R0b),a.Y36(A.t4),a.Y36(u.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,i,n,s,o,r){super(t,e,i,n,s,o,r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,y.Ig)(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(C.rL),a.Y36(T.Is,8),a.Y36(a.R0b),a.Y36(A.t4),a.Y36(u.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{disableRipple:"disableRipple"},features:[a.qOj]}),t})(),gt=(()=>{class t extends pt{constructor(t,e,i,n,s,o,r){super(t,e,i,n,s,o,r)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(C.rL),a.Y36(T.Is,8),a.Y36(a.R0b),a.Y36(A.t4),a.Y36(u.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,lt,4),2&t){let t;a.iGM(t=a.CRH())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(U,7),a.Gf(z,7),a.Gf(F,7),a.Gf(Z,5),a.Gf(B,5)),2&t){let t;a.iGM(t=a.CRH())&&(e._inkBar=t.first),a.iGM(t=a.CRH())&&(e._tabListContainer=t.first),a.iGM(t=a.CRH())&&(e._tabList=t.first),a.iGM(t=a.CRH())&&(e._nextPaginator=t.first),a.iGM(t=a.CRH())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&a.ekj("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.qOj],ngContentSelectors:E,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0,1),a.NdJ("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(t){return e._handleKeydown(t)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return e._onContentChanges()}),a.TgZ(7,"div",7),a.Hsn(8),a.qZA(),a._UZ(9,"mat-ink-bar"),a.qZA(),a.qZA(),a.TgZ(10,"div",8,9),a.NdJ("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),a._UZ(12,"div",2),a.qZA()),2&t&&(a.ekj("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.Q6J("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.xp6(5),a.ekj("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.Q6J("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[c.wG,s.wD,U],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.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;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[r.ez,c.BQ,o.eL,c.si,s.Q8,n.rt],c.BQ]}),t})()},36922:function(t,e,i){"use strict";i.d(e,{gM:function(){return Z},AV:function(){return U}});var n=i(2522),s=i(24621),o=i(61511),r=i(31572),a=i(71522),c=i(4253),u=i(19861),l=i(75842),h=i(55959),d=i(31305),p=i(47930),g=i(48318),f=i(90611),m=i(96673);class b{constructor(t){this.total=t}call(t,e){return e.subscribe(new w(t,this.total))}}class w extends m.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}var _=i(47701),y=i(79996),A=i(56238),v=i(25416),T=i(11353);const C=new Set;let S,E=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):k}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!C.has(t))try{S||(S=document.createElement("style"),S.setAttribute("type","text/css"),document.head.appendChild(S)),S.sheet&&(S.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),C.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(T.t4))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(T.t4))},token:t,providedIn:"root"}),t})();function k(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let x=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new h.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return R((0,u.Eq)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=R((0,u.Eq)(t)).map(t=>this._registerQuery(t).observable);let i=(0,d.aj)(e);return i=(0,p.z)(i.pipe((0,f.q)(1)),i.pipe(t=>t.lift(new b(1)),(0,_.b)(0))),i.pipe((0,y.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new g.y(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe((0,A.O)(e),(0,y.U)(({matches:e})=>({query:t,matches:e})),(0,v.R)(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(E),r.LFG(r.R0b))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(E),r.LFG(r.R0b))},token:t,providedIn:"root"}),t})();function R(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var I=i(26899),O=i(10709),P=i(22526);const D={tooltipState:(0,O.X$)("state",[(0,O.SB)("initial, void, hidden",(0,O.oB)({opacity:0,transform:"scale(0)"})),(0,O.SB)("visible",(0,O.oB)({transform:"scale(1)"})),(0,O.eR)("* => visible",(0,O.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,O.F4)([(0,O.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,O.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,O.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,O.eR)("* => hidden",(0,O.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,O.oB)({opacity:0})))])},M=(0,T.i$)({passive:!0}),L=new r.OlP("mat-tooltip-scroll-strategy"),N={provide:L,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},z=new r.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let F=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,d,p){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=o,this._ariaDescriber=r,this._focusMonitor=a,this._dir=u,this._defaultOptions=d,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 h.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===l.hY&&!(0,l.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=p,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),u.change.pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,u.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).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(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,v.R)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,M)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new I.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,v.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe((0,v.R)(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,v.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,f.q)(1),(0,v.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:n}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===n?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_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 t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,M)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.aV),r.Y36(r.SBq),r.Y36(c.mF),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(T.t4),r.Y36(s.$s),r.Y36(s.tE),r.Y36(void 0),r.Y36(P.Is),r.Y36(void 0),r.Y36(o.K0))},t.\u0275dir=r.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),Z=(()=>{class t extends F{constructor(t,e,i,n,s,o,r,a,c,u,l,h){super(t,e,i,n,s,o,r,a,c,u,l,h),this._tooltipComponent=q}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.aV),r.Y36(r.SBq),r.Y36(c.mF),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(T.t4),r.Y36(s.$s),r.Y36(s.tE),r.Y36(L),r.Y36(P.Is,8),r.Y36(z,8),r.Y36(o.K0))},t.\u0275dir=r.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[r.qOj]}),t})(),B=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new h.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO))},t.\u0275dir=r.lG2({type:t}),t})(),q=(()=>{class t extends B{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36(x))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",function(){return e._handleBodyInteraction()},!1,r.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,r.pYS),2&t&&r.Udp("zoom","visible"===e._visibility?1:null)},features:[r.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(r.TgZ(0,"div",0),r.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),r.ALo(1,"async"),r._uU(2),r.qZA()),2&t){let t;r.ekj("mat-tooltip-handset",null==(t=r.lcZ(1,5,e._isHandset))?null:t.matches),r.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),r.xp6(2),r.Oqu(e.message)}},directives:[o.mk],pipes:[o.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[D.tooltipState]},changeDetection:0}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[N],imports:[[s.rt,o.ez,n.U8,a.BQ],a.BQ,c.ZD]}),t})()},91010:function(t,e,i){"use strict";i.d(e,{GZ:function(){return f},gi:function(){return b},kc:function(){return A},JZ:function(){return y},dp:function(){return _},WX:function(){return v},uo:function(){return p},fQ:function(){return g},Ar:function(){return m},eu:function(){return w}});var n=i(71709),s=i(71522),o=i(19861),r=i(4230),a=i(78512),c=i(31906),u=i(90611),l=i(79996),h=i(31572);const d=(0,s.sb)((0,s.Id)(n.Hs));let p=(()=>{class t extends d{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this.tabIndex=Number(i)||0,this._elementRef.nativeElement.classList.add("mat-tree-node")}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(n._0),h.$8M("tabindex"))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[h._Bn([{provide:n.Hs,useExisting:t}]),h.qOj]}),t})(),g=(()=>{class t extends n.rO{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[h._Bn([{provide:n.rO,useExisting:t}]),h.qOj]}),t})(),f=(()=>{class t extends n.Xx{constructor(t,e,i,n){super(t,e,i),this._elementRef=t,this._tree=e,this._differs=i,this._disabled=!1,this.tabIndex=Number(n)||0,this._elementRef.nativeElement.classList.add("mat-nested-tree-node")}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,o.Ig)(t)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:0}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(n._0),h.Y36(h.ZZ4),h.$8M("tabindex"))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-nested-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[h._Bn([{provide:n.Xx,useExisting:t},{provide:n.Hs,useExisting:t},{provide:n.HI,useExisting:t}]),h.qOj]}),t})(),m=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.s_b),h.Y36(n.HI,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[h._Bn([{provide:n.cu,useExisting:t}])]}),t})(),b=(()=>{class t extends n._0{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-tree"]],viewQuery:function(t,e){if(1&t&&h.Gf(m,7),2&t){let t;h.iGM(t=h.CRH())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[h._Bn([{provide:n._0,useExisting:t}]),h.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&h.GkF(0,0)},directives:[m],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),t})(),w=(()=>{class t extends n.Ud{get recursive(){return this._recursive}set recursive(t){this._recursive=(0,o.Ig)(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[h._Bn([{provide:n.Ud,useExisting:t}]),h.qOj]}),t})(),_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[n.nZ,s.BQ],s.BQ]}),t})();class y{constructor(t,e,i,n){this.transformFunction=t,this.getLevel=e,this.isExpandable=i,this.getChildren=n}_flattenNode(t,e,i,n){const s=this.transformFunction(t,e);if(i.push(s),this.isExpandable(s)){const s=this.getChildren(t);s&&(Array.isArray(s)?this._flattenChildren(s,e,i,n):s.pipe((0,u.q)(1)).subscribe(t=>{this._flattenChildren(t,e,i,n)}))}return i}_flattenChildren(t,e,i,n){t.forEach((s,o)=>{let r=n.slice();r.push(o!=t.length-1),this._flattenNode(s,e+1,i,r)})}flattenNodes(t){let e=[];return t.forEach(t=>this._flattenNode(t,0,e,[])),e}expandFlattenedNodes(t,e){let i=[],n=[];return n[0]=!0,t.forEach(t=>{let s=!0;for(let e=0;e<=this.getLevel(t);e++)s=s&&n[e];s&&i.push(t),this.isExpandable(t)&&(n[this.getLevel(t)+1]=e.isExpanded(t))}),i}}class A extends r.o2{constructor(t,e,i){super(),this._treeControl=t,this._treeFlattener=e,this._flattenedData=new a.X([]),this._expandedData=new a.X([]),this._data=new a.X([]),i&&(this.data=i)}get data(){return this._data.value}set data(t){this._data.next(t),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(t){return(0,c.T)(t.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,l.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class v extends r.o2{constructor(){super(...arguments),this._data=new a.X([])}get data(){return this._data.value}set data(t){this._data.next(t)}connect(t){return(0,c.T)(t.viewChange,this._data).pipe((0,l.U)(()=>this.data))}disconnect(){}}},43490:function(t,e,i){"use strict";i.d(e,{Qb:function(){return be},PW:function(){return Ae}});var n=i(31572),s=i(30269),o=i(10709);function r(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function c(t){switch(t.length){case 0:return new o.ZN;case 1:return t[0];default:return new o.ZE(t)}}function u(t,e,i,n,s={},r={}){const a=[],c=[];let u=-1,l=null;if(n.forEach(t=>{const i=t.offset,n=i==u,h=n&&l||{};Object.keys(t).forEach(i=>{let n=i,c=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,a),c){case o.k1:c=s[i];break;case o.l3:c=r[i];break;default:c=e.normalizeStyleValue(i,n,c,a)}h[n]=c}),n||c.push(h),l=h,u=i}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return c}function l(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&h(i,"start",t)));break;case"done":t.onDone(()=>n(i&&h(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&h(i,"destroy",t)))}}function h(t,e,i){const n=i.totalTime,s=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),o=t._data;return null!=o&&(s._data=o),s}function d(t,e,i,n,s="",o=0,r){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:o,disabled:!!r}}function p(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function g(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,m=(t,e)=>!1,b=(t,e,i)=>[];const w=a();(w||"undefined"!=typeof Element)&&(f=r()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),m=(()=>{if(w||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):m}})(),b=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let E=(()=>{class t{validateStyleProperty(t){return A(t)}matchesElement(t,e){return v(t,e)}containsElement(t,e){return T(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,r=[],a){return new o.ZN(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),k=(()=>{class t{}return t.NOOP=new E,t})();function x(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:R(parseFloat(e[1]),e[2])}function R(t,e){switch(e){case"s":return 1e3*t;default:return t}}function I(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,o="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=R(parseFloat(i[1]),i[2]);const r=i[3];null!=r&&(s=R(parseFloat(r),i[4]));const a=i[5];a&&(o=a)}else n=t;if(!i){let i=!1,o=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:o}}(t,e,i)}function O(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function P(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else O(t,i);return i}function D(t,e,i){return i?e+":"+i+";":""}function M(t){let e="";for(let i=0;i{const s=H(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),a()&&M(t))}function N(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=H(e);t.style[i]=""}),a()&&M(t))}function z(t){return Array.isArray(t)?1==t.length?t[0]:(0,o.vP)(t):t}const F=new RegExp("{{\\s*(.+?)\\s*}}","g");function Z(t){let e=[];if("string"==typeof t){let i;for(;i=F.exec(t);)e.push(i[1]);F.lastIndex=0}return e}function B(t,e,i){const n=t.toString(),s=n.replace(F,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function q(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const U=/-+([a-z0-9])/g;function H(t){return t.replace(U,(...t)=>t[1].toUpperCase())}function j(t,e){return 0===t||0===e}function G(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let o=e[0],r=[];if(n.forEach(t=>{o.hasOwnProperty(t)||r.push(t),o[t]=i[t]}),r.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],o=n[2],r=n[3];e.push(Q(s,r)),"<"!=o[0]||"*"==s&&"*"==r||e.push(Q(r,s))}(t,i,e)):i.push(t),i}const J=new Set(["true","1"]),$=new Set(["false","0"]);function Q(t,e){const i=J.has(t)||$.has(t),n=J.has(e)||$.has(e);return(s,o)=>{let r="*"==t||t==s,a="*"==e||e==o;return!r&&i&&"boolean"==typeof s&&(r=s?J.has(t):$.has(t)),!a&&n&&"boolean"==typeof o&&(a=o?J.has(e):$.has(e)),r&&a}}const W=new RegExp("s*:selfs*,?","g");function X(t,e,i){return new tt(t).build(e,i)}class tt{constructor(t){this._driver=t}build(t,e){const i=new et(e);return this._resetContextStyleTimingState(i),Y(this,z(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,o.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=n||{};if(i.styles.forEach(t=>{if(it(t)){const e=t;Object.keys(e).forEach(t=>{Z(e[t]).forEach(t=>{o.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=q(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Y(this,z(t.animation),e);return{type:1,matchers:K(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:nt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Y(this,t,e)),options:nt(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=Y(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:nt(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return st(I(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=st(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||I(n,e),st(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:(0,o.oB)({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};i.easing&&(t.easing=i.easing),s=(0,o.oB)(t)}e.currentTime+=i.duration+i.delay;const a=this.visitStyle(s,e);a.isEmptyStep=r,n=a}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==o.l3?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(it(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],r=o[i];let a=!0;r&&(s!=n&&s>=r.startTime&&n<=r.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=r.startTime),a&&(o[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=Z(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let o=!1,r=!1,a=0;const c=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(it(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(it(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),u=0;return null!=c&&(n++,u=i.offset=c),r=r||u<0||u>1,o=o||u0&&n{const o=l>0?n==h?1:l*n:s[n],r=o*g;e.currentTime=d+p.delay+r,p.duration=r,this._validateStyleAst(t,e),t.offset=o,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:Y(this,z(t.animation),e),options:nt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:nt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:nt(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(W,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,p(e.collectedStyles,e.currentQuerySelector,{});const r=Y(this,z(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:r,originalSelector:t.selector,options:nt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:I(t.timings,e.errors,!0);return{type:12,animation:Y(this,z(t.animation),e),timings:i,options:null}}}class et{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function it(t){return!Array.isArray(t)&&"object"==typeof t}function nt(t){var e;return t?(t=O(t)).params&&(t.params=(e=t.params)?O(e):null):t={},t}function st(t,e,i){return{duration:t,delay:e,easing:i}}function ot(t,e,i,n,s,o,r=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:o,totalTime:s+o,easing:r,subTimeline:a}}class rt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const at=new RegExp(":enter","g"),ct=new RegExp(":leave","g");function ut(t,e,i,n,s,o={},r={},a,c,u=[]){return(new lt).buildKeyframes(t,e,i,n,s,o,r,a,c,u)}class lt{buildKeyframes(t,e,i,n,s,o,r,a,c,u=[]){c=c||new rt;const l=new dt(t,e,c,n,s,u,[]);l.options=a,l.currentTimeline.setStyles([o],null,l.errors,a),Y(this,i,l);const h=l.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(r).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([r],null,l.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[ot(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?x(i.duration):null,o=null!=i.delay?x(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,o);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),Y(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=ht);const t=x(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Y(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?x(t.options.delay):0;t.steps.forEach(o=>{const r=e.createSubContext(t.options);s&&r.delayNextStep(s),Y(this,o,r),n=Math.max(n,r.currentTimeline.currentTime),i.push(r.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return I(e.params?B(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*s),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?x(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ht);let o=i;const r=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=r.length;let a=null;r.forEach((i,n)=>{e.currentQueryIndex=n;const r=e.createSubContext(t.options,i);s&&r.delayNextStep(s),i===e.element&&(a=r.currentTimeline),Y(this,t.animation,r),r.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,r.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),r=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=r-a;break;case"full":a=i.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const u=c.currentTime;Y(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}}const ht={};class dt{constructor(t,e,i,n,s,o,r,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=o,this.timelines=r,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ht,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new pt(this._driver,e,0),r.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=x(i.duration)),null!=i.delay&&(n.delay=x(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=B(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new dt(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=ht,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new gt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,o){let r=[];if(n&&r.push(this.element),t.length>0){t=(t=t.replace(at,"."+this._enterClassName)).replace(ct,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),r.push(...e)}return s||0!=r.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),r}}class pt{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new pt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||o.l3,this._currentKeyframe[t]=o.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},r=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]=o.l3})):P(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=B(r[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:o.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,r)=>{const a=P(s,!0);Object.keys(a).forEach(i=>{const n=a[i];n==o.k1?t.add(i):n==o.l3&&e.add(i)}),i||(a.offset=r/this.duration),n.push(a)});const s=t.size?q(t.values()):[],r=e.size?q(e.values()):[];if(i){const t=n[0],e=O(t);t.offset=0,e.offset=1,n=[t,e]}return ot(this.element,n,s,r,this.duration,this.startTime,this.easing,!1)}}class gt extends pt{constructor(t,e,i,n,s,o,r=!1){super(t,e,o.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=r,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,r=e/o,a=P(t[0],!1);a.offset=0,s.push(a);const c=P(t[0],!1);c.offset=ft(r),s.push(c);const u=t.length-1;for(let n=1;n<=u;n++){let r=P(t[n],!1);r.offset=ft((e+r.offset*i)/o),s.push(r)}i=o,e=0,n="",t=s}return ot(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function ft(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class mt{}class bt extends mt{normalizePropertyName(t,e){return H(t)}normalizeStyleValue(t,e,i,n){let s="";const o=i.toString().trim();if(wt[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return o+s}}const wt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function _t(t,e,i,n,s,o,r,a,c,u,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:o,toState:n,toStyles:r,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}const yt={};class At{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],o=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,n,s,o,r,a,c,u){const l=[],h=this.ast.options&&this.ast.options.params||yt,d=this.buildStyles(i,r&&r.params||yt,l),g=a&&a.params||yt,f=this.buildStyles(n,g,l),m=new Set,b=new Map,w=new Map,_="void"===n,y={params:Object.assign(Object.assign({},h),g)},A=u?[]:ut(t,e,this.ast.animation,s,o,d,f,y,c,l);let v=0;if(A.forEach(t=>{v=Math.max(t.duration+t.delay,v)}),l.length)return _t(e,this._triggerName,i,n,_,d,f,[],[],b,w,v,l);A.forEach(t=>{const i=t.element,n=p(b,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=p(w,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&m.add(i)});const T=q(m.values());return _t(e,this._triggerName,i,n,_,d,f,A,T,b,w,v)}}class vt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=O(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let o=s[t];o.length>1&&(o=B(o,n,e)),i[t]=o})}}),i}}class Tt{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new vt(t.style,t.options&&t.options.params||{})}),Ct(this.states,"true","1"),Ct(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new At(t,e,this.states))}),this.fallbackTransition=new At(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Ct(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const St=new rt;class Et{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=X(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=u(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let r;const a=new Map;if(s?(r=ut(this._driver,e,s,"ng-enter","ng-leave",{},{},i,St,n),r.forEach(t=>{const e=p(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),r=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,o.l3)})});const u=c(r.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=u,u.onDestroy(()=>this.destroy(t)),this.players.push(u),u}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=d(e,"","","");return l(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const kt=[],xt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Rt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class It{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=O(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const Ot=new It("void");class Pt{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Zt(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const o=p(this._elementListeners,t,[]),r={name:e,phase:i,callback:n};o.push(r);const a=p(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Zt(t,"ng-trigger"),Zt(t,"ng-trigger-"+e),a[e]=Ot),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(r);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),o=new Mt(this.id,e,t);let r=this._engine.statesByElement.get(t);r||(Zt(t,"ng-trigger"),Zt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,r={}));let a=r[e];const c=new It(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),r[e]=c,a||(a=Ot),"void"!==c.value&&a.value===c.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{N(t,i),L(t,n)})}return}const u=p(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let l=s.matchTransition(a.value,c.value,t,c.params),h=!1;if(!l){if(!n)return;l=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:l,fromState:a,toState:c,player:o,isFallbackTransition:h}),h||(Zt(t,"ng-animate-queued"),o.onStart(()=>{Bt(t,"ng-animate-queued")})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(o);t>=0&&i.splice(t,1)}}),this.players.push(o),u.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const o=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&o.push(i)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&c(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const o=this._triggers[s].fallbackTransition,r=i[s]||Ot,a=new It("void"),c=new Mt(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:o,fromState:r,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==xt||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Zt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(e=>{if(e.name==i.triggerName){const n=d(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,l(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Dt{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new Pt(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Zt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Bt(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(Lt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return Lt(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return c(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=xt,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?c(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new rt,n=[],s=new Map,r=[],a=new Map,u=new Map,l=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i="ng-enter"+b++;m.set(e,i),t.forEach(t=>Zt(t,i))});const w=[],_=new Set,y=new Set;for(let o=0;o_.add(t)):y.add(t))}const A=new Map,v=Ft(g,Array.from(_));v.forEach((t,e)=>{const i="ng-leave"+b++;A.set(e,i),t.forEach(t=>Zt(t,i))}),t.push(()=>{f.forEach((t,e)=>{const i=m.get(e);t.forEach(t=>Bt(t,i))}),v.forEach((t,e)=>{const i=A.get(e);t.forEach(t=>Bt(t,i))}),w.forEach(t=>{this.processLeaveNode(t)})});const T=[],C=[];for(let o=this._namespaceList.length-1;o>=0;o--)this._namespaceList[o].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(T.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const o=!d||!this.driver.containsElement(d,s),c=A.get(s),h=m.get(s),g=this._buildInstruction(t,i,h,c,o);if(g.errors&&g.errors.length)C.push(g);else{if(o)return e.onStart(()=>N(s,g.fromStyles)),e.onDestroy(()=>L(s,g.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>N(s,g.fromStyles)),e.onDestroy(()=>L(s,g.toStyles)),void n.push(e);g.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,g.timelines),r.push({instruction:g,player:e,element:s}),g.queriedElements.forEach(t=>p(a,t,[]).push(e)),g.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=u.get(e);t||u.set(e,t=new Set),i.forEach(e=>t.add(e))}}),g.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=l.get(e);n||l.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(C.length){const t=[];C.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),T.forEach(t=>t.destroy()),this.reportError(t)}const S=new Map,E=new Map;r.forEach(t=>{const e=t.element;i.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,S))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{p(S,e,[]).push(t),t.destroy()})});const k=w.filter(t=>Ht(t,u,l)),x=new Map;zt(x,this.driver,y,l,o.l3).forEach(t=>{Ht(t,u,l)&&k.push(t)});const R=new Map;f.forEach((t,e)=>{zt(R,this.driver,new Set(t),u,o.k1)}),k.forEach(t=>{const e=x.get(t),i=R.get(t);x.set(t,Object.assign(Object.assign({},e),i))});const I=[],O=[],P={};r.forEach(t=>{const{element:e,player:o,instruction:r}=t;if(i.has(e)){if(h.has(e))return o.onDestroy(()=>L(e,r.toStyles)),o.disabled=!0,o.overrideTotalTime(r.totalTime),void n.push(o);let t=P;if(E.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=E.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>E.set(e,t))}const i=this._buildAnimation(o.namespaceId,r,S,s,R,x);if(o.setRealPlayer(i),t===P)I.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=c(e)),n.push(o)}}else N(e,r.fromStyles),o.onDestroy(()=>L(e,r.toStyles)),O.push(o),h.has(e)&&n.push(o)}),O.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=c(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let o=0;o!t.destroyed);n.length?qt(this,t,n):this.processLeaveNode(t)}return w.length=0,I.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),I}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&o.push(e)})}}return(i||n)&&(o=o.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),o}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const r of e.timelines){const t=r.element,a=t!==n,c=p(i,t,[]);this._getPreviousPlayers(t,a,s,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}N(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,r){const a=e.triggerName,l=e.element,h=[],d=new Set,g=new Set,f=e.timelines.map(e=>{const c=e.element;d.add(c);const p=c.__ng_removed;if(p&&p.removedBeforeQueried)return new o.ZN(e.duration,e.delay);const f=c!==l,m=function(t){const e=[];return Ut(t,e),e}((i.get(c)||kt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===c),b=s.get(c),w=r.get(c),_=u(0,this._normalizer,0,e.keyframes,b,w),y=this._buildPlayer(e,_,m);if(e.subTimeline&&n&&g.add(c),f){const e=new Mt(t,a,c);e.setRealPlayer(y),h.push(e)}return y});h.forEach(t=>{p(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),d.forEach(t=>Zt(t,"ng-animating"));const m=c(f);return m.onDestroy(()=>{d.forEach(t=>Bt(t,"ng-animating")),L(l,e.toStyles)}),g.forEach(t=>{p(n,t,[]).push(m)}),m}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new o.ZN(t.duration,t.delay)}}class Mt{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new o.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>l(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){p(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Lt(t){return t&&1===t.nodeType}function Nt(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function zt(t,e,i,n,s){const o=[];i.forEach(t=>o.push(Nt(t)));const r=[];n.forEach((i,n)=>{const o={};i.forEach(t=>{const i=o[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=Rt,r.push(n))}),t.set(n,o)});let a=0;return i.forEach(t=>Nt(t,o[a++])),r}function Ft(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;function o(t){if(!t)return 1;let e=s.get(t);if(e)return e;const r=t.parentNode;return e=i.has(r)?r:n.has(r)?1:o(r),s.set(t,e),e}return e.forEach(t=>{const e=o(t);1!==e&&i.get(e).push(t)}),i}function Zt(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Bt(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function qt(t,e,i){c(i).onDone(()=>t.processLeaveNode(e))}function Ut(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class jt{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Dt(t,e,i),this._timelineEngine=new Et(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const o=t+"-"+n;let r=this._triggerCache[o];if(!r){const t=[],e=X(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);r=function(t,e){return new Tt(t,e)}(n,e),this._triggerCache[o]=r}this._transitionEngine.registerTrigger(e,n,r)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=g(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=g(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Gt(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Vt(e[0]),e.length>1&&(n=Vt(e[e.length-1]))):e&&(i=Vt(e)),i||n?new Yt(t,i,n):null}let Yt=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&L(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(L(this._element,this._initialStyles),this._endStyles&&(L(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(N(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(N(this._element,this._endStyles),this._endStyles=null),L(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Vt(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=ee(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Xt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=ee(t,"").split(","),n=Wt(i,e);n>=0&&(i.splice(n,1),te(t,"",i.join(",")))}(this._element,this._name))}}function $t(t,e,i){te(t,"PlayState",i,Qt(t,e))}function Qt(t,e){const i=ee(t,"");return i.indexOf(",")>0?Wt(i.split(","),e):Wt([i],e)}function Wt(t,e){for(let i=0;i=0)return i;return-1}function Xt(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function te(t,e,i,n){const s="animation"+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function ee(t,e){return t.style["animation"+e]||""}class ie{constructor(t,e,i,n,s,o,r,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=r,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Jt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:V(this.element,i))})}this.currentSnapshot=t}}class ne extends o.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=S(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class se{constructor(){this._count=0}validateStyleProperty(t){return A(t)}matchesElement(t,e){return v(t,e)}containsElement(t,e){return T(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>S(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const o=document.createElement("style");return o.textContent=n,o}animate(t,e,i,n,s,o=[],r){const a=o.filter(t=>t instanceof ie),c={};j(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=G(t,e,c));if(0==i)return new ne(t,u);const l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);(function(t){var e;const i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(h);const d=Gt(t,e),p=new ie(t,e,l,i,n,s,u,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class oe{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:V(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class re{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ae().toString()),this._cssKeyframesDriver=new se}validateStyleProperty(t){return A(t)}matchesElement(t,e){return v(t,e)}containsElement(t,e){return T(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,o=[],r){if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,o);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const c={},u=o.filter(t=>t instanceof oe);j(i,n)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=Gt(t,e=G(t,e=e.map(t=>P(t,!1)),c));return new oe(t,e,a,l)}}function ae(){return r()&&Element.prototype.animate||{}}var ce=i(61511);let ue=(()=>{class t extends o._j{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?(0,o.vP)(t):t;return de(this._renderer,null,e,"register",[i]),new le(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.FYo),n.LFG(ce.K0))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class le extends o.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new he(this._id,t,e||{},this._renderer)}}class he{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return de(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function de(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let pe=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new ge("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(o),new fe(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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 t.\u0275fac=function(e){return new(e||t)(n.LFG(n.FYo),n.LFG(jt),n.LFG(n.R0b))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class ge{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class fe extends ge{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let me=(()=>{class t extends jt{constructor(t,e,i){super(t.body,e,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(ce.K0),n.LFG(k),n.LFG(mt))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();const be=new n.OlP("AnimationModuleType"),we=[{provide:o._j,useClass:ue},{provide:mt,useFactory:function(){return new bt}},{provide:jt,useClass:me},{provide:n.FYo,useFactory:function(t,e,i){return new pe(t,e,i)},deps:[s.se,jt,n.R0b]}],_e=[{provide:k,useFactory:function(){return"function"==typeof ae()?new re:new se}},{provide:be,useValue:"BrowserAnimations"},...we],ye=[{provide:k,useClass:E},{provide:be,useValue:"NoopAnimations"},...we];let Ae=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?ye:_e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:_e,imports:[s.b2]}),t})()},30269:function(t,e,i){"use strict";i.d(e,{b2:function(){return F},H7:function(){return D},Dx:function(){return B},q6:function(){return N},se:function(){return T}});var n=i(61511),s=i(31572);class o extends n.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class r extends o{static makeCurrent(){(0,n.HT)(new r)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(c=c||document.querySelector("base"),c?c.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,n.Mx)(document.cookie,t)}}let a,c=null;const u=new s.OlP("TRANSITION_ID"),l=[{provide:s.ip1,useFactory:function(t,e,i){return()=>{i.get(s.CZH).donePromise.then(()=>{const i=(0,n.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[u,n.K0,s.zs3],multi:!0}];class h{static init(){(0,s.VLi)(new h)}addToWindow(t){s.dqk.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let i=e.length,n=!1;const o=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(o)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:i?(0,n.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new s.OlP("EventManagerPlugins");let g=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),b=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,i){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,i.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(w),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,i)=>{this._addStylesToHost(t,i,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(w))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function w(t){(0,n.q)().remove(t)}const _={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/"},y=/%COMP%/g;function A(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let T=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new C(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new S(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case s.ifc.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=A(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(g),s.LFG(b),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class C{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(_[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=_[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=_[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,i,n&s.JOm.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(i)):this.eventManager.addEventListener(t,e,v(i))}}class S extends C{constructor(t,e,i,n){super(t),this.component=i;const s=A(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(y,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(y,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class E extends C{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=A(n.id,n.styles,[]);for(let o=0;o{class t extends f{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const x=["alt","control","meta","shift"],R={"\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"},I={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"},O={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let P=(()=>{class t extends f{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const o=t.parseEventName(i),r=t.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.q)().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let o="";if(x.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),o+=t+".")}),o+=s,0!=i.length||0===s.length)return null;const r={};return r.domEventName=n,r.fullKey=o,r}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&I.hasOwnProperty(e)&&(e=I[e]))}return R[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),x.forEach(n=>{n!=i&&(0,O[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(L)},token:t,providedIn:"root"}),t})();function M(t){return new L(t.get(n.K0))}let L=(()=>{class t extends D{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return M((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const N=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:n.bD},{provide:s.g9A,useValue:function(){r.makeCurrent(),h.init()},multi:!0},{provide:n.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),z=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:p,useClass:k,multi:!0,deps:[n.K0,s.R0b,s.Lbi]},{provide:p,useClass:P,multi:!0,deps:[n.K0]},[],{provide:T,useClass:T,deps:[g,b,s.AFp]},{provide:s.FYo,useExisting:T},{provide:m,useExisting:b},{provide:b,useClass:b,deps:[n.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:g,useClass:g,deps:[p,s.R0b]},{provide:n.JF,useClass:d,deps:[]},[]];let F=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.AFp,useValue:e.appId},{provide:u,useExisting:s.AFp},l]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:z,imports:[n.ez,s.hGG]}),t})();function Z(){return new B((0,s.LFG)(n.K0))}let B=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:Z,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},57629:function(t,e,i){"use strict";i.d(e,{gz:function(){return Yt},m2:function(){return U},OD:function(){return q},GZ:function(){return vi},wN:function(){return ni},F0:function(){return fi},rH:function(){return mi},yS:function(){return bi},Bz:function(){return Ri},lC:function(){return _i}});var n=i(61511),s=i(31572),o=i(19764),r=i(40878),a=i(78512),c=i(31305),u=i(48318),l=i(39665),h=i(47930),d=i(31450),p=i(70653),g=i(42875),f=i(55959),m=i(96673);function b(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new w(t,e,i))}}class w{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new _(t,this.accumulator,this.seed,this.hasSeed))}}class _ extends m.L{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}var y=i(43835),A=i(98402);function v(t){return function(e){return 0===t?(0,p.c)():e.lift(new T(t))}}class T{constructor(t){if(this.total=t,this.total<0)throw new A.W}call(t,e){return e.subscribe(new C(t,this.total))}}class C extends m.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;st.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function ut(t){return Array.prototype.concat.apply([],t)}function lt(t){return t.length>0?t[t.length-1]:null}function ht(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function dt(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,r.of)(t)}const pt={exact:function t(e,i,n){if(!vt(e.segments,i.segments))return!1;if(!wt(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const s in i.children){if(!e.children[s])return!1;if(!t(e.children[s],i.children[s],n))return!1}return!0},subset:mt},gt={exact:function(t,e){return at(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>ct(t[i],e[i]))},ignored:()=>!0};function ft(t,e,i){return pt[i.paths](t.root,e.root,i.matrixParams)&>[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function mt(t,e,i){return bt(t,e,e.segments,i)}function bt(t,e,i,n){if(t.segments.length>i.length){const s=t.segments.slice(0,i.length);return!!vt(s,i)&&!e.hasChildren()&&!!wt(s,i,n)}if(t.segments.length===i.length){if(!vt(t.segments,i))return!1;if(!wt(t.segments,i,n))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!mt(t.children[i],e.children[i],n))return!1}return!0}{const s=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!!vt(t.segments,s)&&!!wt(t.segments,s,n)&&!!t.children.primary&&bt(t.children.primary,e,o,n)}}function wt(t,e,i){return e.every((e,n)=>gt[i](t[n].parameters,e.parameters))}class _t{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=st(this.queryParams)),this._queryParamMap}toString(){return St.serialize(this)}}class yt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ht(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Et(this)}}class At{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=st(this.parameters)),this._parameterMap}toString(){return Dt(this)}}function vt(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class Tt{}class Ct{parse(t){const e=new Ft(t);return new _t(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${kt(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Rt(e)}=${Rt(t)}`).join("&"):`${Rt(e)}=${Rt(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const St=new Ct;function Et(t){return t.segments.map(t=>Dt(t)).join("/")}function kt(t,e){if(!t.hasChildren())return Et(t);if(e){const e=t.children.primary?kt(t.children.primary,!1):"",i=[];return ht(t.children,(t,e)=>{"primary"!==e&&i.push(`${e}:${kt(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return ht(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),ht(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>"primary"===i?[kt(t.children.primary,!1)]:[`${i}:${kt(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Et(t)}/${e[0]}`:`${Et(t)}/(${e.join("//")})`}}function xt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rt(t){return xt(t).replace(/%3B/gi,";")}function It(t){return xt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ot(t){return decodeURIComponent(t)}function Pt(t){return Ot(t.replace(/\+/g,"%20"))}function Dt(t){return`${It(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${It(t)}=${It(e[t])}`).join("")}`;var e}const Mt=/^[^\/()?;=#]+/;function Lt(t){const e=t.match(Mt);return e?e[0]:""}const Nt=/^[^=?&#]+/,zt=/^[^?&#]+/;class Ft{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new yt([],{}):new yt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new yt(t,e)),i}parseSegment(){const t=Lt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new At(Ot(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Lt(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Lt(this.remaining);t&&(i=t,this.capture(i))}t[Ot(e)]=Ot(i)}parseQueryParam(t){const e=function(t){const e=t.match(Nt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(zt);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=Pt(e),s=Pt(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Lt(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const o=this.parseChildren();e[s]=1===Object.keys(o).length?o.primary:new yt([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Zt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Bt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Bt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=qt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return qt(t,this._root).map(t=>t.value)}}function Bt(t,e){if(t===e.value)return e;for(const i of e.children){const e=Bt(t,i);if(e)return e}return null}function qt(t,e){if(t===e.value)return[e];for(const i of e.children){const n=qt(t,i);if(n.length)return n.unshift(e),n}return[]}class Ut{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ht(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class jt extends Zt{constructor(t,e){super(t),this.snapshot=e,$t(this,t)}toString(){return this.snapshot.toString()}}function Gt(t,e){const i=function(t,e){const i=new Kt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Jt("",new Ut(i,[]))}(t,e),n=new a.X([new At("",{})]),s=new a.X({}),o=new a.X({}),r=new a.X({}),c=new a.X(""),u=new Yt(n,s,r,c,o,"primary",e,i.root);return u.snapshot=i.root,new jt(new Ut(u,[]),i)}class Yt{constructor(t,e,i,n,s,o,r,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,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,x.U)(t=>st(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,x.U)(t=>st(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Vt(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Kt{constructor(t,e,i,n,s,o,r,a,c,u,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}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=st(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=st(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Jt extends Zt{constructor(t,e){super(e),this.url=t,$t(this,e)}toString(){return Qt(this._root)}}function $t(t,e){e.value._routerState=t,e.children.forEach(e=>$t(t,e))}function Qt(t){const e=t.children.length>0?` { ${t.children.map(Qt).join(", ")} } `:"";return`${t.value}${e}`}function Wt(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,at(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),at(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iat(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Xt(t.parent,e.parent))}function te(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return te(t,e,n);return te(t,e)})}(t,e,i);return new Ut(n,s)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const t=i.route;return ee(e,t),t}}const i=new Yt(new a.X((n=e.value).url),new a.X(n.params),new a.X(n.queryParams),new a.X(n.fragment),new a.X(n.data),n.outlet,n.component,n),s=e.children.map(e=>te(t,e));return new Ut(i,s)}var n}function ee(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new _t(i.root===t?e:oe(i.root,t,e),o,s)}function oe(t,e,i){const n={};return ht(t.children,(t,s)=>{n[s]=t===e?i:oe(t,e,i)}),new yt(t.segments,n)}class re{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&ie(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(ne);if(n&&n!==lt(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ae{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function ce(t,e,i){if(t||(t=new yt([],{})),0===t.segments.length&&t.hasChildren())return ue(t,e,i);const n=function(t,e,i){let n=0,s=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return o;const e=t.segments[s],r=i[n];if(ne(r))break;const a=`${r}`,c=n0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!pe(a,c,e))return o;n+=2}else{if(!pe(a,{},e))return o;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=ce(t.children[n],e,i))}),ht(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new yt(t.segments,s)}}function le(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=le(new yt([],{}),0,t))}),e}function de(t){const e={};return ht(t,(t,i)=>e[i]=`${t}`),e}function pe(t,e,i){return t==i.path&&at(e,i.parameters)}class ge{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Wt(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=Ht(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),ht(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,s=Ht(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const n=Ht(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new et(t.value.snapshot))}),t.children.length&&this.forwardEvent(new X(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(Wt(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),fe(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function fe(t){Wt(t.value),t.children.forEach(fe)}class me{constructor(t,e){this.routes=t,this.module=e}}function be(t){return"function"==typeof t}function we(t){return t instanceof _t}const _e=Symbol("INITIAL_VALUE");function ye(){return(0,R.w)(t=>(0,c.aj)(t.map(t=>t.pipe((0,I.q)(1),(0,O.O)(_e)))).pipe(b((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==_e)return t;if(n===_e&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||we(n))return n}return t},t)},_e),(0,y.h)(t=>t!==_e),(0,x.U)(t=>we(t)?t:!0===t),(0,I.q)(1)))}let Ae=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[_i]},encapsulation:2}),t})();function ve(t,e=""){for(let i=0;iEe(t)===e);return i.push(...t.filter(t=>Ee(t)!==e)),i}const xe={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Re(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},xe):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||rt)(i,t,e);if(!s)return Object.assign({},xe);const o={};ht(s.posParams,(t,e)=>{o[e]=t.path});const r=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:r,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function Ie(t,e,i,n,s="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>Oe(t,e,i)&&"primary"!==Ee(i))}(t,i,n)){const s=new yt(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const o of i)if(""===o.path&&"primary"!==Ee(o)){const i=new yt([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[Ee(o)]=i}return s}(t,e,n,new yt(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>Oe(t,e,i))}(t,i,n)){const o=new yt(t.segments,function(t,e,i,n,s,o){const r={};for(const a of n)if(Oe(t,i,a)&&!s[Ee(a)]){const i=new yt([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===o?t.segments.length:e.length,r[Ee(a)]=i}return Object.assign(Object.assign({},s),r)}(t,e,i,n,t.children,s));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}const o=new yt(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}function Oe(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Pe(t,e,i,n){return!!(Ee(t)===n||"primary"!==n&&Oe(e,i,t))&&("**"===t.path||Re(e,t,i).matched)}function De(t,e,i){return 0===e.length&&!t.children[i]}class Me{constructor(t){this.segmentGroup=t||null}}class Le{constructor(t){this.urlTree=t}}function Ne(t){return new u.y(e=>e.error(new Me(t)))}function ze(t){return new u.y(e=>e.error(new Le(t)))}function Fe(t){return new u.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ze{constructor(t,e,i,n,o){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=Ie(this.urlTree.root,[],[],this.config).segmentGroup,e=new yt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,"primary").pipe((0,x.U)(t=>this.createUrlTree(Be(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,P.K)(t=>{if(t instanceof Le)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Me)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe((0,x.U)(e=>this.createUrlTree(Be(e),t.queryParams,t.fragment))).pipe((0,P.K)(t=>{if(t instanceof Me)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new yt([],{primary:t}):t;return new _t(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe((0,x.U)(t=>new yt([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const s of Object.keys(i.children))"primary"===s?n.unshift(s):n.push(s);return(0,o.D)(n).pipe((0,D.b)(n=>{const s=i.children[n],o=ke(e,n);return this.expandSegmentGroup(t,o,s,n).pipe((0,x.U)(t=>({segment:t,outlet:n})))}),b((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?(0,y.h)((e,i)=>t(e,i,n)):k.y,v(1),i?(0,E.d)(e):(0,S.T)(()=>new l.K))}())}expandSegment(t,e,i,n,s,a){return(0,o.D)(i).pipe((0,D.b)(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,s,a).pipe((0,P.K)(t=>{if(t instanceof Me)return(0,r.of)(null);throw t}))),(0,M.P)(t=>!!t),(0,P.K)((t,i)=>{if(t instanceof l.K||"EmptyError"===t.name){if(De(e,n,s))return(0,r.of)(new yt([],{}));throw new Me(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,s,o,r){return Pe(n,e,s,o)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,o):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o):Ne(e):Ne(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?ze(s):this.lineralizeSegments(i,s).pipe((0,L.zg)(i=>{const s=new yt(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){const{matched:r,consumedSegments:a,lastChild:c,positionalParamSegments:u}=Re(e,n,s);if(!r)return Ne(e);const l=this.applyRedirectCommands(a,n.redirectTo,u);return n.redirectTo.startsWith("/")?ze(l):this.lineralizeSegments(n,l).pipe((0,L.zg)(n=>this.expandSegment(t,e,i,n.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,i,n,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?(0,r.of)(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe((0,x.U)(t=>(i._loadedConfig=t,new yt(n,{})))):(0,r.of)(new yt(n,{}));const{matched:o,consumedSegments:a,lastChild:c}=Re(e,i,n);if(!o)return Ne(e);const u=n.slice(c);return this.getChildConfig(t,i,n).pipe((0,L.zg)(t=>{const n=t.module,o=t.routes,{segmentGroup:c,slicedSegments:l}=Ie(e,a,u,o),h=new yt(c.segments,c.children);if(0===l.length&&h.hasChildren())return this.expandChildren(n,o,h).pipe((0,x.U)(t=>new yt(a,t)));if(0===o.length&&0===l.length)return(0,r.of)(new yt(a,{}));const d=Ee(i)===s;return this.expandSegment(n,h,o,l,d?"primary":s,!0).pipe((0,x.U)(t=>new yt(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?(0,r.of)(new me(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,r.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe((0,L.zg)(i=>i?this.configLoader.load(t.injector,e).pipe((0,x.U)(t=>(e._loadedConfig=t,t))):function(t){return new u.y(e=>e.error(ot(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,r.of)(new me([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;if(!n||0===n.length)return(0,r.of)(!0);const s=n.map(n=>{const s=t.get(n);let o;if(function(t){return t&&be(t.canLoad)}(s))o=s.canLoad(e,i);else{if(!be(s))throw new Error("Invalid CanLoad guard");o=s(e,i)}return dt(o)});return(0,r.of)(s).pipe(ye(),(0,N.b)(t=>{if(!we(t))return;const e=ot(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,x.U)(t=>!0===t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return(0,r.of)(i);if(n.numberOfChildren>1||!n.children.primary)return Fe(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new _t(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return ht(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let o={};return ht(e.children,(e,s)=>{o[s]=this.createSegmentGroup(t,e,i,n)}),new yt(s,o)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function Be(t){const e={};for(const i of Object.keys(t.children)){const n=Be(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new yt(t.segments.concat(e.segments),e.children)}return t}(new yt(t.segments,e))}class qe{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ue{constructor(t,e){this.component=t,this.route=e}}function He(t,e,i){const n=t._root;return Ge(n,e?e._root:null,i,[n.value])}function je(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Ge(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ht(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,r=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!vt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!vt(t.url,e.url)||!at(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xt(t,e)||!at(t.queryParams,e.queryParams);case"paramsChange":default:return!Xt(t,e)}}(r,o,o.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new qe(n)):(o.data=r.data,o._resolvedData=r._resolvedData),Ge(t,e,o.component?a?a.children:null:i,n,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Ue(a.outlet.component,r))}else r&&Ye(e,a,s),s.canActivateChecks.push(new qe(n)),Ge(t,null,o.component?a?a.children:null:i,n,s)}(t,o[t.value.outlet],i,n.concat([t.value]),s),delete o[t.value.outlet]}),ht(o,(t,e)=>Ye(t,i.getContext(e),s)),s}function Ye(t,e,i){const n=Ht(t),s=t.value;ht(n,(t,n)=>{Ye(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Ue(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Ve{}function Ke(t){return new u.y(e=>e.error(t))}class Je{constructor(t,e,i,n,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=Ie(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;const i=new Kt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Ut(i,e),s=new Jt(this.url,n);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=Vt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const n=e.children[s],o=ke(t,s),r=this.processSegmentGroup(o,n,s);if(null===r)return null;i.push(...r)}const n=Qe(i);return n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,i,n);if(null!==t)return t}return De(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!Pe(t,e,i,n))return null;let s,o=[],r=[];if("**"===t.path){const n=i.length>0?lt(i).parameters:{};s=new Kt(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ti(t),Ee(t),t.component,t,We(e),Xe(e)+i.length,ei(t))}else{const n=Re(e,t,i);if(!n.matched)return null;o=n.consumedSegments,r=i.slice(n.lastChild),s=new Kt(o,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ti(t),Ee(t),t.component,t,We(e),Xe(e)+o.length,ei(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=Ie(e,o,r,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new Ut(s,t)]}if(0===a.length&&0===u.length)return[new Ut(s,[])];const l=Ee(t)===n,h=this.processSegment(a,c,u,l?"primary":n);return null===h?null:[new Ut(s,h)]}}function $e(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Qe(t){const e=[],i=new Set;for(const n of t){if(!$e(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),i.add(t)):e.push(n)}for(const n of i){const t=Qe(n.children);e.push(new Ut(n.value,t))}return e.filter(t=>!i.has(t))}function We(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Xe(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function ti(t){return t.data||{}}function ei(t){return t.resolve||{}}function ii(t){return(0,R.w)(e=>{const i=t(e);return i?(0,o.D)(i).pipe((0,x.U)(()=>e)):(0,r.of)(e)})}class ni{}class si extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const oi=new s.OlP("ROUTES");class ri{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe((0,x.U)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new me(ut(n.injector.get(oi,void 0,s.XFs.Self|s.XFs.Optional)).map(Se),n)}),(0,P.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new g.c(i,()=>new f.xQ).pipe((0,z.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):dt(t()).pipe((0,L.zg)(t=>t instanceof s.YKP?(0,r.of)(t):(0,o.D)(this.compiler.compileModuleAsync(t))))}}class ai{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ci,this.attachRef=null}}class ci{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new ai,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class ui{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function li(t){throw t}function hi(t,e,i){return e.parse("/")}function di(t,e){return(0,r.of)(null)}const pi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let fi=(()=>{class t{constructor(t,e,i,n,o,r,c,u){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new f.xQ,this.errorHandler=li,this.malformedUriErrorHandler=hi,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:di,afterPreactivation:di},this.urlHandlingStrategy=new ui,this.routeReuseStrategy=new si,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(s.h0i),this.console=o.get(s.c2e);const l=o.get(s.R0b);this.isNgZoneEnabled=l instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new _t(new yt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ri(r,c,t=>this.triggerEvent(new $(t)),t=>this.triggerEvent(new Q(t))),this.routerState=Gt(this.currentUrlTree,this.rootComponentType),this.transitions=new a.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()}setupNavigations(t){const e=this.events;return t.pipe((0,y.h)(t=>0!==t.id),(0,x.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,R.w)(t=>{let i=!1,n=!1;return(0,r.of)(t).pipe((0,N.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,R.w)(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,r.of)(t).pipe((0,R.w)(t=>{const i=this.transitions.getValue();return e.next(new q(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?p.E:Promise.resolve(t)}),(n=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,a=this.config,(0,R.w)(t=>function(t,e,i,n,s){return new Ze(t,e,i,n,s).apply()}(n,s,o,t.extractedUrl,a).pipe((0,x.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,N.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return(0,L.zg)(o=>function(t,e,i,n,s="emptyOnly",o="legacy"){try{const a=new Je(t,e,i,n,s,o).recognize();return null===a?Ke(new Ve):(0,r.of)(a)}catch(a){return Ke(a)}}(t,e,o.urlAfterRedirects,i(o.urlAfterRedirects),n,s).pipe((0,x.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,N.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const i=new G(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,o,a;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:o,extras:a}=t,c=new q(i,this.serializeUrl(n),s,o);e.next(c);const u=Gt(n,this.rootComponentType).snapshot;return(0,r.of)(Object.assign(Object.assign({},t),{targetSnapshot:u,urlAfterRedirects:n,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.E}),ii(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,N.b)(t=>{const e=new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,x.U)(t=>Object.assign(Object.assign({},t),{guards:He(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,L.zg)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:c}}=i;return 0===c.length&&0===a.length?(0,r.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return(0,o.D)(t).pipe((0,L.zg)(t=>function(t,e,i,n,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,r.of)(!0);const a=o.map(o=>{const r=je(o,e,s);let a;if(function(t){return t&&be(t.canDeactivate)}(r))a=dt(r.canDeactivate(t,e,i,n));else{if(!be(r))throw new Error("Invalid CanDeactivate guard");a=dt(r(t,e,i,n))}return a.pipe((0,M.P)())});return(0,r.of)(a).pipe(ye())}(t.component,t.route,i,e,n)),(0,M.P)(t=>!0!==t,!0))}(c,n,s,t).pipe((0,L.zg)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return(0,o.D)(e).pipe((0,D.b)(e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new W(t)),(0,r.of)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new tt(t)),(0,r.of)(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>(0,d.P)(()=>{const s=e.guards.map(s=>{const o=je(s,e.node,i);let r;if(function(t){return t&&be(t.canActivateChild)}(o))r=dt(o.canActivateChild(n,t));else{if(!be(o))throw new Error("Invalid CanActivateChild guard");r=dt(o(n,t))}return r.pipe((0,M.P)())});return(0,r.of)(s).pipe(ye())}));return(0,r.of)(s).pipe(ye())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return(0,r.of)(!0);const s=n.map(n=>(0,d.P)(()=>{const s=je(n,e,i);let o;if(function(t){return t&&be(t.canActivate)}(s))o=dt(s.canActivate(e,t));else{if(!be(s))throw new Error("Invalid CanActivate guard");o=dt(s(e,t))}return o.pipe((0,M.P)())}));return(0,r.of)(s).pipe(ye())}(t,e.route,i))),(0,M.P)(t=>!0!==t,!0))}(n,a,t,e):(0,r.of)(i)),(0,x.U)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,N.b)(t=>{if(we(t.guardsResult)){const e=ot(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new V(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,y.h)(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),ii(t=>{if(t.guards.canActivateChecks.length)return(0,r.of)(t).pipe((0,N.b)(t=>{const e=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,R.w)(t=>{let e=!1;return(0,r.of)(t).pipe((i=this.paramsInheritanceStrategy,n=this.ngModule.injector,(0,L.zg)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return(0,r.of)(t);let a=0;return(0,o.D)(s).pipe((0,D.b)(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return(0,r.of)({});const a={};return(0,o.D)(s).pipe((0,L.zg)(s=>function(t,e,i,n){const s=je(t,e,n);return dt(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe((0,N.b)(t=>{a[s]=t}))),v(1),(0,L.zg)(()=>Object.keys(a).length===s.length?(0,r.of)(a):p.E))}(t._resolve,t,e,n).pipe((0,x.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Vt(t,i).resolve),null)))}(t.route,e,i,n)),(0,N.b)(()=>a++),v(1),(0,L.zg)(e=>a===s.length?(0,r.of)(t):p.E))})),(0,N.b)({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var i,n}),(0,N.b)(t=>{const e=new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),ii(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,x.U)(t=>{const e=function(t,e,i){const n=te(t,e._root,i?i._root:void 0);return new jt(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,N.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,a=this.routeReuseStrategy,c=t=>this.triggerEvent(t),(0,x.U)(t=>(new ge(a,t.targetRouterState,t.currentRouterState,c).activate(s),t))),(0,N.b)({next(){i=!0},complete(){i=!0}}),(0,F.x)(()=>{i||n||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),(0,P.K)(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=we(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new H(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new j(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(o){t.reject(o)}}var s;return p.E}));var s,a,c}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){ve(t),this.config=t.map(Se),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(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:o,preserveFragment:r}=e,a=i||this.routerState.root,c=r?this.currentUrlTree.fragment:s;let u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=n||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,i,n,s){if(0===i.length)return se(e.root,e.root,e,n,s);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new re(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return ht(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new re(i,e,n)}(i);if(o.toRoot())return se(e.root,new yt([],{}),e,n,s);const r=function(t,e,i){if(t.isAbsolute)return new ae(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new ae(t,t===e.root,0)}const n=ie(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,o=i;for(;o>s;){if(o-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new ae(n,!1,s-o)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(o,e,t),a=r.processChildren?ue(r.segmentGroup,r.index,o.commands):ce(r.segmentGroup,r.index,o.commands);return se(r.segmentGroup,a,e,n,s)}(a,this.currentUrlTree,t,u,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const i=we(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(n,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new U(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){if(this.disposed)return Promise.resolve(!1);const o=this.getTransition(),r="imperative"!==e&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===t.toString();if(r&&a)return Promise.resolve(!0);let c,u,l;s?(c=s.resolve,u=s.reject,l=s.promise):l=new Promise((t,e)=>{c=t,u=e});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const i=this.urlSerializer.serialize(t),n=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(i)||e.extras.replaceUrl?this.location.replaceState(i,"",n):this.location.go(i,"",n)}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const i=new H(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(Tt),s.LFG(ci),s.LFG(n.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),mi=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new f.xQ,null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:wi(this.skipLocationChange),replaceUrl:wi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:wi(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(fi),s.Y36(Yt),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})(),bi=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new f.xQ,this.subscription=t.events.subscribe(t=>{t instanceof U&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:wi(this.skipLocationChange),replaceUrl:wi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:wi(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(fi),s.Y36(Yt),s.Y36(n.S$))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})();function wi(t){return""===t||!!t}let _i=(()=>{class t{constructor(t,e,i,n,o){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new yi(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(ci),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class yi{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Yt?this.route:t===ci?this.childContexts:this.parent.get(t,e)}}class Ai{}class vi{preload(t,e){return(0,r.of)(null)}}let Ti=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new ri(e,i,e=>t.triggerEvent(new $(e)),e=>t.triggerEvent(new Q(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,y.h)(t=>t instanceof U),(0,D.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return(0,o.D)(i).pipe((0,Z.J)(),(0,x.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,r.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,L.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(fi),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(Ai))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Ci=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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(t=>{t instanceof q?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof U&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof it&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new it(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(fi),s.LFG(n.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Si=new s.OlP("ROUTER_CONFIGURATION"),Ei=new s.OlP("ROUTER_FORROOT_GUARD"),ki=[n.Ye,{provide:Tt,useClass:Ct},{provide:fi,useFactory:function(t,e,i,n,s,o,r,a={},c,u){const l=new fi(null,t,e,i,n,s,o,ut(r));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,l),a.enableTracing&&l.events.subscribe(t=>{var e,i;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),l},deps:[Tt,ci,n.Ye,s.zs3,s.v3s,s.Sil,oi,Si,[class{},new s.FiY],[ni,new s.FiY]]},ci,{provide:Yt,useFactory:function(t){return t.routerState.root},deps:[fi]},{provide:s.v3s,useClass:s.EAV},Ti,vi,class{preload(t,e){return e().pipe((0,P.K)(()=>(0,r.of)(null)))}},{provide:Si,useValue:{enableTracing:!1}}];function xi(){return new s.PXZ("Router",fi)}let Ri=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[ki,Di(e),{provide:Ei,useFactory:Pi,deps:[[fi,new s.FiY,new s.tp0]]},{provide:Si,useValue:i||{}},{provide:n.S$,useFactory:Oi,deps:[n.lw,[new s.tBr(n.mr),new s.FiY],Si]},{provide:Ci,useFactory:Ii,deps:[fi,n.EM,Si]},{provide:Ai,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:vi},{provide:s.PXZ,multi:!0,useFactory:xi},[Mi,{provide:s.ip1,multi:!0,useFactory:Li,deps:[Mi]},{provide:zi,useFactory:Ni,deps:[Mi]},{provide:s.tb,multi:!0,useExisting:zi}]]}}static forChild(e){return{ngModule:t,providers:[Di(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ei,8),s.LFG(fi,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function Ii(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Ci(t,e,i)}function Oi(t,e,i={}){return i.useHash?new n.Do(t,e):new n.b0(t,e)}function Pi(t){return"guarded"}function Di(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:oi,multi:!0,useValue:t}]}let Mi=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new f.xQ}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(fi),n=this.injector.get(Si);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?(0,r.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Si),i=this.injector.get(Ti),n=this.injector.get(Ci),o=this.injector.get(fi),r=this.injector.get(s.z2F);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||o.initialNavigation(),i.setUpPreloading(),n.init(),o.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Li(t){return t.appInitializer.bind(t)}function Ni(t){return t.bootstrapListener.bind(t)}const zi=new s.OlP("Router Initializer")},48160:function(t,e,i){"use strict";i.d(e,{Zw:function(){return g},aw:function(){return D},X$:function(){return P},sK:function(){return O}});var n=i(31572),s=i(40878),o=i(4710),r=i(3148),a=i(47930),c=i(31450),u=i(90611),l=i(68303),h=i(79996),d=i(436),p=i(44689);class g{}let f=(()=>{class t extends g{getTranslation(t){return(0,s.of)({})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class m{}let b=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();function w(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,n,s,o=typeof t;if(o==typeof e&&"object"==o){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in s=Object.create(null),t){if(!w(t[n],e[n]))return!1;s[n]=!0}for(n in e)if(!(n in s)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n{y(e[n])?n in t?i[n]=A(t[n],e[n]):Object.assign(i,{[n]:e[n]}):Object.assign(i,{[n]:e[n]})}),i}class v{}let T=(()=>{class t extends v{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let i;return i="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,i}getValue(t,e){let i="string"==typeof e?e.split("."):[e];e="";do{e+=i.shift(),!_(t)||!_(t[e])||"object"!=typeof t[e]&&i.length?i.length?e+=".":t=void 0:(t=t[e],e="")}while(i.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,i)=>{let n=this.getValue(e,i);return _(n)?n:t}):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class C{}let S=(()=>{class t extends C{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class E{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new n.vpe,this.onLangChange=new n.vpe,this.onDefaultLangChange=new n.vpe}}const k=new n.OlP("USE_STORE"),x=new n.OlP("USE_DEFAULT_LANG"),R=new n.OlP("DEFAULT_LANGUAGE"),I=new n.OlP("USE_EXTEND");let O=(()=>{class t{constructor(t,e,i,s,o,r=!0,a=!1,c=!1,u){this.store=t,this.currentLoader=e,this.compiler=i,this.parser=s,this.missingTranslationHandler=o,this.useDefaultLang=r,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new n.vpe,this._onLangChange=new n.vpe,this._onDefaultLangChange=new n.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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe((0,u.q)(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return(0,s.of)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe((0,u.q)(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),(0,s.of)(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe((0,l.d)(1),(0,u.q)(1));return this.loadingTranslations=e.pipe((0,h.U)(e=>this.compiler.compileTranslations(e,t)),(0,l.d)(1),(0,u.q)(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,i=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?A(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,i){let n;if(e instanceof Array){let n={},a=!1;for(let s of e)n[s]=this.getParsedResult(t,s,i),(0,o.b)(n[s])&&(a=!0);if(a){const t=e.map(t=>(0,o.b)(n[t])?n[t]:(0,s.of)(n[t]));return(0,r.D)(t).pipe((0,h.U)(t=>{let i={};return t.forEach((t,n)=>{i[e[n]]=t}),i}))}return n}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){let t={key:e,translateService:this};void 0!==i&&(t.interpolateParams=i),n=this.missingTranslationHandler.handle(t)}return void 0!==n?n:e}get(t,e){if(!_(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,d.b)(i=>(i=this.getParsedResult(i,t,e),(0,o.b)(i)?i:(0,s.of)(i))));{let i=this.getParsedResult(this.translations[this.currentLang],t,e);return(0,o.b)(i)?i:(0,s.of)(i)}}getStreamOnTranslationChange(t,e){if(!_(t)||!t.length)throw new Error('Parameter "key" required');return(0,a.z)((0,c.P)(()=>this.get(t,e)),this.onTranslationChange.pipe((0,p.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return"function"==typeof n.subscribe?n:(0,s.of)(n)})))}stream(t,e){if(!_(t)||!t.length)throw new Error('Parameter "key" required');return(0,a.z)((0,c.P)(()=>this.get(t,e)),this.onLangChange.pipe((0,p.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return(0,o.b)(n)?n:(0,s.of)(n)})))}instant(t,e){if(!_(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,e);if((0,o.b)(i)){if(t instanceof Array){let e={};return t.forEach((i,n)=>{e[t[n]]=t[n]}),e}return t}return i}set(t,e,i=this.currentLang){this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(E),n.LFG(g),n.LFG(C),n.LFG(v),n.LFG(m),n.LFG(x),n.LFG(k),n.LFG(I),n.LFG(R))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),P=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,i){let n=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,e);(0,o.b)(s.subscribe)?s.subscribe(n):n(s)}this.translate.get(t,e).subscribe(n)}transform(t,...e){if(!t||!t.length)return t;if(w(t,this.lastKey)&&w(e,this.lastParams))return this.value;let i;if(_(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(t)}catch(n){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(i=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(O,16),n.Y36(n.sBO,16))},t.\u0275pipe=n.Yjl({name:"translate",type:t,pure:!1}),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:g,useClass:f},e.compiler||{provide:C,useClass:S},e.parser||{provide:v,useClass:T},e.missingTranslationHandler||{provide:m,useClass:b},E,{provide:k,useValue:e.isolate},{provide:x,useValue:e.useDefaultLang},{provide:I,useValue:e.extend},{provide:R,useValue:e.defaultLanguage},O]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:g,useClass:f},e.compiler||{provide:C,useClass:S},e.parser||{provide:v,useClass:T},e.missingTranslationHandler||{provide:m,useClass:b},{provide:k,useValue:e.isolate},{provide:x,useValue:e.useDefaultLang},{provide:I,useValue:e.extend},{provide:R,useValue:e.defaultLanguage},O]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},82051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){r(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,r){var a=s.URL||s.webkitURL,c=document.createElement("a");c.download=o=o||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,o,r):n(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,s,o){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),s);else if(i(t))e(t,s,o);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){n(r)})}}:function(t,i,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&c||o)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},l.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});s.saveAs=r.saveAs=r,t.exports=r})?i.apply(e,[]):i)||(t.exports=n)},30146:function(t,e,i){"use strict";i.d(e,{nu:function(){return H},Co:function(){return j}});var n=i(64762),s=i(31572),o=i(16073),r=i(71522),a=i(4786),c=i(66283),u=i(75842),l=i(78512),h=i(40878),d=i(31305),p=i(55959),g=i(44689),f=i(79996),m=i(56238),b=i(82628),w=i(25416),_=i(90611),y=i(43835),A=i(66599),v=i(15980),T=i(29236),C=i(43691),S=i(67806),E=i(36922),k=i(61511),x=i(4253),R=i(24621);const I=["searchSelectInput"],O=["innerSelectSearch"];function P(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-checkbox",9),s.NdJ("change",function(e){return s.CHM(t),s.oxw()._emitSelectAllBooleanToParent(e.checked)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("color",null==t.matFormField?null:t.matFormField.color)("checked",t.toggleAllCheckboxChecked)("indeterminate",t.toggleAllCheckboxIndeterminate)("matTooltip",t.toggleAllCheckboxTooltipMessage)("matTooltipPosition",t.toogleAllCheckboxTooltipPosition)}}function D(t,e){1&t&&s._UZ(0,"mat-spinner",10)}function M(t,e){1&t&&s.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function L(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1,"close"),s.qZA())}function N(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw()._reset(!0)}),s.YNc(1,M,1,0,"ng-content",12),s.YNc(2,L,2,0,"ng-template",null,13,s.W1O),s.qZA()}if(2&t){const t=s.MAs(3),e=s.oxw();s.xp6(1),s.Q6J("ngIf",e.clearIcon)("ngIfElse",t)}}function z(t,e){if(1&t&&(s.TgZ(0,"div",14),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij(" ",t.noEntriesFoundLabel,"\n")}}const F=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],Z=function(t,e){return{"mat-select-search-inner-multiple":t,"mat-select-search-inner-toggle-all":e}},B=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"];let q=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","ngxMatSelectSearchClear",""]]}),t})();var U;let H=(()=>{let t=U=class{constructor(t,e,i,n=null,r,a=null){this.matSelect=t,this.changeDetectorRef=e,this._viewportRuler=i,this.matOption=n,this.liveAnnouncer=r,this.matFormField=a,this.placeholderLabel="Suche",this.type="text",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new s.vpe,this.onTouched=t=>{},this._options$=new l.X(null),this.optionsList$=this._options$.pipe((0,g.w)(t=>t?t.changes.pipe((0,f.U)(t=>t.toArray()),(0,m.O)(t.toArray())):(0,h.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,f.U)(t=>t?t.length:0)),this._formControl=new o.NI(""),this._showNoEntriesFound$=(0,d.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,f.U)(([t,e])=>this.noEntriesFoundLabel&&t&&e===this.getOptionsLengthOffset())),this._onDestroy=new p.xQ}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(t){this._options$.next(t)}get _options(){return this._options$.getValue()}ngOnInit(){const t="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(t):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,t]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[t]=!0):this.matSelect.panelClass=t,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,b.g)(1),(0,w.R)(this._onDestroy)).subscribe(t=>{t?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,_.q)(1)).pipe((0,w.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,w.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,w.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const e=this._options.toArray(),i=e[this.getOptionsLengthOffset()],n=this.matSelect._keyManager;n&&this.matSelect.panelOpen&&(!!this.matSelect.compareWith(t,i)&&n.activeItem&&e.find(t=>this.matSelect.compareWith(t,n.activeItem))||n.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),t=i})})}),this._showNoEntriesFound$.pipe((0,w.R)(this._onDestroy)).subscribe(t=>{this.matOption&&(t?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,w.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,w.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(t){this.toggleAll.emit(t)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(t){(t.key&&1===t.key.length||t.keyCode>=u.A&&t.keyCode<=u.Z||t.keyCode>=u.xE&&t.keyCode<=u.aO||t.keyCode===u.L_||this.preventHomeEndKeyPropagation&&(t.keyCode===u.Sd||t.keyCode===u.uR))&&t.stopPropagation(),this.matSelect.multiple&&t.key&&t.keyCode===u.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&t.keyCode===u.hY&&this.value&&(this._reset(!0),t.stopPropagation())}_handleKeyup(t){if(t.keyCode===u.LH||t.keyCode===u.JH){const t=this.matSelect._getAriaActiveDescendant(),e=this._options.toArray().findIndex(e=>e.id===t);if(-1!==e){const t=this._options.toArray()[e];this.liveAnnouncer.announce(t.viewValue+" "+this.getAriaIndex(e)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(t){return 0===this.getOptionsLengthOffset()?t+1:t}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(t){this._lastExternalInputValue=t,this._formControl.setValue(t),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(t){this._formControl.valueChanges.pipe((0,y.h)(t=>t!==this._lastExternalInputValue),(0,A.b)(()=>this._lastExternalInputValue=void 0),(0,w.R)(this._onDestroy)).subscribe(t)}registerOnTouched(t){this.onTouched=t}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}_reset(t){this._formControl.setValue(""),t&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,w.R)(this._onDestroy)).subscribe(t=>{let e=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){t&&Array.isArray(t)||(t=[]);const i=this.matSelect.options.map(t=>t.value);this.previousSelectedValues.forEach(n=>{t.some(t=>this.matSelect.compareWith(t,n))||i.some(t=>this.matSelect.compareWith(t,n))||(t.push(n),e=!0)})}this.previousSelectedValues=t,e&&this.matSelect._onChange(t)})):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 t=this.getMatOptionHeight(),e=this.matSelect._keyManager.activeItemIndex||0,i=(0,r.CB)(e,this.matSelect.options,this.matSelect.optionGroups),n=(this.matOption?-1:0)+i+e,s=this.matSelect.panel.nativeElement.scrollTop,o=this.innerSelectSearch.nativeElement.offsetHeight,a=Math.floor((256-o)/t),c=Math.round((s+o)/t)-1;c>=n?this.matSelect.panel.nativeElement.scrollTop=n*t:c+a<=n&&(this.matSelect.panel.nativeElement.scrollTop=(n+1)*t-(256-o))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let t,e=this.innerSelectSearch.nativeElement;for(;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}};return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.gD),s.Y36(s.sBO),s.Y36(x.rL),s.Y36(r.ey,8),s.Y36(R.Kd),s.Y36(c.KE,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,q,5),2&t){let t;s.iGM(t=s.CRH())&&(e.clearIcon=t.first)}},viewQuery:function(t,e){if(1&t&&(s.Gf(I,7,s.SBq),s.Gf(O,7,s.SBq)),2&t){let t;s.iGM(t=s.CRH())&&(e.searchSelectInput=t.first),s.iGM(t=s.CRH())&&(e.innerSelectSearch=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-select-search-inside-mat-option",e.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[s._Bn([{provide:o.JU,useExisting:(0,s.Gpc)(()=>U),multi:!0}])],ngContentSelectors:B,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[1,"mat-select-search-no-entries-found"]],template:function(t,e){1&t&&(s.F$t(F),s._UZ(0,"input",0),s.TgZ(1,"div",1,2),s.YNc(3,P,1,5,"mat-checkbox",3),s.TgZ(4,"input",4,5),s.NdJ("keydown",function(t){return e._handleKeydown(t)})("keyup",function(t){return e._handleKeyup(t)})("blur",function(){return e.onBlur()}),s.qZA(),s.YNc(6,D,1,0,"mat-spinner",6),s.YNc(7,N,4,2,"button",7),s.Hsn(8),s.qZA(),s.YNc(9,z,2,1,"div",8),s.ALo(10,"async")),2&t&&(s.xp6(1),s.Q6J("ngClass",s.WLB(11,Z,e.matSelect.multiple,e._isToggleAllCheckboxVisible())),s.xp6(2),s.Q6J("ngIf",e._isToggleAllCheckboxVisible()),s.xp6(1),s.Q6J("type",e.type)("formControl",e._formControl)("placeholder",e.placeholderLabel),s.uIk("aria-label",e.ariaLabel),s.xp6(2),s.Q6J("ngIf",e.searching),s.xp6(1),s.Q6J("ngIf",!e.hideClearSearchButton&&e.value&&!e.searching),s.xp6(2),s.Q6J("ngIf",s.lcZ(10,9,e._showNoEntriesFound$)))},directives:[k.mk,k.O5,o.Fj,o.JJ,o.oH,T.oG,E.gM,S.$g,v.lW,C.Hw],pipes:[k.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}),t=U=(0,n.gn)([(0,n.fM)(0,(0,s.tBr)(a.gD)),(0,n.fM)(3,(0,s.FiY)()),(0,n.fM)(3,(0,s.tBr)(r.ey)),(0,n.fM)(5,(0,s.FiY)()),(0,n.fM)(5,(0,s.tBr)(c.KE))],t),t})(),j=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[k.ez,o.UX,v.ot,T.p9,C.Ps,S.Cq,E.AV]]}),t})()},59997:function(t){t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,(function(e){return t[e]}).bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=22)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i=4){for(var t=arguments.length,e=Array(t),i=0;i=3){for(var t=arguments.length,e=Array(t),i=0;i=2){for(var t=arguments.length,e=Array(t),i=0;i=1){for(var t=arguments.length,e=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:o.JsonService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=e,this._jsonService=new i(["application/jwk-set+json"])}return t.prototype.getMetadata=function(){var t=this;return this._settings.metadata?(s.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(s.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then(function(e){return s.Log.debug("MetadataService.getMetadata: json received"),t._settings.metadata=e,e})):(s.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},t.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},t.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},t.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},t.prototype.getTokenEndpoint=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",t)},t.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},t.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},t.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},t.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},t.prototype._getMetadataProperty=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s.Log.debug("MetadataService.getMetadataProperty for: "+t),this.getMetadata().then(function(i){if(s.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===i[t]){if(!0===e)return void s.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+t);throw s.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+t),new Error("Metadata does not contain property "+t)}return i[t]})},t.prototype.getSigningKeys=function(){var t=this;return this._settings.signingKeys?(s.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then(function(e){return s.Log.debug("MetadataService.getSigningKeys: jwks_uri received",e),t._jsonService.getJson(e).then(function(e){if(s.Log.debug("MetadataService.getSigningKeys: key set received",e),!e.keys)throw s.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return t._settings.signingKeys=e.keys,t._settings.signingKeys})})},n(t,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration"))),this._metadataUrl}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UrlUtility=void 0;var n=i(0),s=i(1);e.UrlUtility=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.addQueryParam=function(t,e,i){return t.indexOf("?")<0&&(t+="?"),"?"!==t[t.length-1]&&(t+="&"),t+=encodeURIComponent(e),(t+="=")+encodeURIComponent(i)},t.parseUrlFragment=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.Global;"string"!=typeof t&&(t=i.location.href);var o=t.lastIndexOf(e);o>=0&&(t=t.substr(o+1)),"?"===e&&(o=t.indexOf("#"))>=0&&(t=t.substr(0,o));for(var r,a={},c=/([^&=]+)=([^&]*)/g,u=0;r=c.exec(t);)if(a[decodeURIComponent(r[1])]=decodeURIComponent(r[2]),u++>50)return n.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",t),{error:"Response exceeded expected number of parameters"};for(var l in a)return a;return{}},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JoseUtil=void 0;var n=i(25),s=function(t){return t&&t.__esModule?t:{default:t}}(i(32));e.JoseUtil=(0,s.default)({jws:n.jws,KeyUtil:n.KeyUtil,X509:n.X509,crypto:n.crypto,hextob64u:n.hextob64u,b64tohex:n.b64tohex,AllowedSigningAlgs:n.AllowedSigningAlgs})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OidcClientSettings=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.authority,s=e.metadataUrl,o=e.metadata,h=e.signingKeys,d=e.client_id,p=e.client_secret,g=e.response_type,f=void 0===g?u:g,m=e.scope,b=void 0===m?l:m,w=e.redirect_uri,_=e.post_logout_redirect_uri,y=e.prompt,A=e.display,v=e.max_age,T=e.ui_locales,C=e.acr_values,S=e.resource,E=e.response_mode,k=e.filterProtocolClaims,x=void 0===k||k,R=e.loadUserInfo,I=void 0===R||R,O=e.staleStateAge,P=void 0===O?900:O,D=e.clockSkew,M=void 0===D?300:D,L=e.userInfoJwtIssuer,N=void 0===L?"OP":L,z=e.stateStore,F=void 0===z?new r.WebStorageStateStore:z,Z=e.ResponseValidatorCtor,B=void 0===Z?a.ResponseValidator:Z,q=e.MetadataServiceCtor,U=void 0===q?c.MetadataService:q,H=e.extraQueryParams,j=void 0===H?{}:H,G=e.extraTokenParams,Y=void 0===G?{}:G;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._authority=i,this._metadataUrl=s,this._metadata=o,this._signingKeys=h,this._client_id=d,this._client_secret=p,this._response_type=f,this._scope=b,this._redirect_uri=w,this._post_logout_redirect_uri=_,this._prompt=y,this._display=A,this._max_age=v,this._ui_locales=T,this._acr_values=C,this._resource=S,this._response_mode=E,this._filterProtocolClaims=!!x,this._loadUserInfo=!!I,this._staleStateAge=P,this._clockSkew=M,this._userInfoJwtIssuer=N,this._stateStore=F,this._validator=new B(this),this._metadataService=new U(this),this._extraQueryParams="object"===(void 0===j?"undefined":n(j))?j:{},this._extraTokenParams="object"===(void 0===Y?"undefined":n(Y))?Y:{}}return s(t,[{key:"client_id",get:function(){return this._client_id},set:function(t){if(this._client_id)throw o.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=t}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(t){if(this._authority)throw o.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=t}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration")),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(t){this._metadata=t}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(t){this._signingKeys=t}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(t){this._extraQueryParams="object"===(void 0===t?"undefined":n(t))?t:{}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(t){this._extraTokenParams="object"===(void 0===t?"undefined":n(t))?t:{}}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebStorageStateStore=void 0;var n=i(0),s=i(1);e.WebStorageStateStore=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.prefix,n=void 0===i?"oidc.":i,o=e.store,r=void 0===o?s.Global.localStorage:o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._store=r,this._prefix=n}return t.prototype.set=function(t,e){return n.Log.debug("WebStorageStateStore.set",t),this._store.setItem(t=this._prefix+t,e),Promise.resolve()},t.prototype.get=function(t){n.Log.debug("WebStorageStateStore.get",t);var e=this._store.getItem(t=this._prefix+t);return Promise.resolve(e)},t.prototype.remove=function(t){n.Log.debug("WebStorageStateStore.remove",t);var e=this._store.getItem(t=this._prefix+t);return this._store.removeItem(t),Promise.resolve(e)},t.prototype.getAllKeys=function(){n.Log.debug("WebStorageStateStore.getAllKeys");for(var t=[],e=0;e0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Global.XMLHttpRequest,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._contentTypes=e&&Array.isArray(e)?e.slice():[],this._contentTypes.push("application/json"),n&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=i,this._jwtHandler=n}return t.prototype.getJson=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.getJson: No url passed"),new Error("url");return n.Log.debug("JsonService.getJson, url: ",t),new Promise(function(s,o){var r=new i._XMLHttpRequest;r.open("GET",t);var a=i._contentTypes,c=i._jwtHandler;r.onload=function(){if(n.Log.debug("JsonService.getJson: HTTP response received, status",r.status),200===r.status){var e=r.getResponseHeader("Content-Type");if(e){var i=a.find(function(t){if(e.startsWith(t))return!0});if("application/jwt"==i)return void c(r).then(s,o);if(i)try{return void s(JSON.parse(r.responseText))}catch(s){return n.Log.error("JsonService.getJson: Error parsing JSON response",s.message),void o(s)}}o(Error("Invalid response Content-Type: "+e+", from URL: "+t))}else o(Error(r.statusText+" ("+r.status+")"))},r.onerror=function(){n.Log.error("JsonService.getJson: network error"),o(Error("Network Error"))},e&&(n.Log.debug("JsonService.getJson: token passed, setting Authorization header"),r.setRequestHeader("Authorization","Bearer "+e)),r.send()})},t.prototype.postForm=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.postForm: No url passed"),new Error("url");return n.Log.debug("JsonService.postForm, url: ",t),new Promise(function(s,o){var r=new i._XMLHttpRequest;r.open("POST",t);var a=i._contentTypes;r.onload=function(){if(n.Log.debug("JsonService.postForm: HTTP response received, status",r.status),200!==r.status){if(400===r.status&&(i=r.getResponseHeader("Content-Type"))&&a.find(function(t){if(i.startsWith(t))return!0}))try{var e=JSON.parse(r.responseText);if(e&&e.error)return n.Log.error("JsonService.postForm: Error from server: ",e.error),void o(new Error(e.error))}catch(s){return n.Log.error("JsonService.postForm: Error parsing JSON response",s.message),void o(s)}o(Error(r.statusText+" ("+r.status+")"))}else{var i;if((i=r.getResponseHeader("Content-Type"))&&a.find(function(t){if(i.startsWith(t))return!0}))try{return void s(JSON.parse(r.responseText))}catch(s){return n.Log.error("JsonService.postForm: Error parsing JSON response",s.message),void o(s)}o(Error("Invalid response Content-Type: "+i+", from URL: "+t))}},r.onerror=function(){n.Log.error("JsonService.postForm: network error"),o(Error("Network Error"))};var c="";for(var u in e){var l=e[u];l&&(c.length>0&&(c+="&"),c+=encodeURIComponent(u),c+="=",c+=encodeURIComponent(l))}r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.send(c)})},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.State=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.id,n=e.data,s=e.created,r=e.request_type;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._id=i||(0,o.default)(),this._data=n,this._created="number"==typeof s&&s>0?s:parseInt(Date.now()/1e3),this._request_type=r}return t.prototype.toStorageString=function(){return s.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},t.fromStorageString=function(e){return s.Log.debug("State.fromStorageString"),new t(JSON.parse(e))},t.clearStaleState=function(e,i){var n=Date.now()/1e3-i;return e.getAllKeys().then(function(i){s.Log.debug("State.clearStaleState: got keys",i);for(var o=[],r=function(r){var a=i[r];c=e.get(a).then(function(i){var o=!1;if(i)try{var r=t.fromStorageString(i);s.Log.debug("State.clearStaleState: got item from key: ",a,r.created),r.created<=n&&(o=!0)}catch(t){s.Log.error("State.clearStaleState: Error parsing state for key",a,t.message),o=!0}else s.Log.debug("State.clearStaleState: no item in storage for key: ",a),o=!0;if(o)return s.Log.debug("State.clearStaleState: removed item for key: ",a),e.remove(a)}),o.push(c)},a=0;a0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._settings=e instanceof o.OidcClientSettings?e:new o.OidcClientSettings(e)}return t.prototype.createSigninRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.response_type,n=e.scope,o=e.redirect_uri,r=e.data,c=e.state,u=e.prompt,l=e.display,h=e.max_age,d=e.ui_locales,p=e.id_token_hint,g=e.login_hint,f=e.acr_values,m=e.resource,b=e.request,w=e.request_uri,_=e.response_mode,y=e.extraQueryParams,A=e.extraTokenParams,v=e.request_type,T=e.skipUserInfo,C=arguments[1];s.Log.debug("OidcClient.createSigninRequest");var S=this._settings.client_id;n=n||this._settings.scope,o=o||this._settings.redirect_uri,u=u||this._settings.prompt,l=l||this._settings.display,h=h||this._settings.max_age,d=d||this._settings.ui_locales,f=f||this._settings.acr_values,m=m||this._settings.resource,_=_||this._settings.response_mode,y=y||this._settings.extraQueryParams,A=A||this._settings.extraTokenParams;var E=this._settings.authority;return a.SigninRequest.isCode(i=i||this._settings.response_type)&&"code"!==i?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then(function(e){s.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",e);var k=new a.SigninRequest({url:e,client_id:S,redirect_uri:o,response_type:i,scope:n,data:r||c,authority:E,prompt:u,display:l,max_age:h,ui_locales:d,id_token_hint:p,login_hint:g,acr_values:f,resource:m,request:b,request_uri:w,extraQueryParams:y,extraTokenParams:A,request_type:v,response_mode:_,client_secret:t._settings.client_secret,skipUserInfo:T}),x=k.state;return(C=C||t._stateStore).set(x.id,x.toStorageString()).then(function(){return k})})},t.prototype.readSigninResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.Log.debug("OidcClient.readSigninResponseState");var n="query"===this._settings.response_mode||!this._settings.response_mode&&a.SigninRequest.isCode(this._settings.response_type)?"?":"#",o=new c.SigninResponse(t,n);return o.state?(e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(o.state).then(function(t){if(!t)throw s.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:h.SigninState.fromStorageString(t),response:o}})):(s.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},t.prototype.processSigninResponse=function(t,e){var i=this;return s.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return s.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),i._validator.validateSigninResponse(e,n)})},t.prototype.createSignoutRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.id_token_hint,n=e.data,o=e.state,r=e.post_logout_redirect_uri,a=e.extraQueryParams,c=e.request_type,l=arguments[1];return s.Log.debug("OidcClient.createSignoutRequest"),r=r||this._settings.post_logout_redirect_uri,a=a||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then(function(e){if(!e)throw s.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");s.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",e);var h=new u.SignoutRequest({url:e,id_token_hint:i,post_logout_redirect_uri:r,data:n||o,extraQueryParams:a,request_type:c}),d=h.state;return d&&(s.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(l=l||t._stateStore).set(d.id,d.toStorageString())),h})},t.prototype.readSignoutResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.Log.debug("OidcClient.readSignoutResponseState");var n=new l.SignoutResponse(t);if(!n.state)return s.Log.debug("OidcClient.readSignoutResponseState: No state in response"),n.error?(s.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",n.error),Promise.reject(new r.ErrorResponse(n))):Promise.resolve({undefined:void 0,response:n});var o=n.state;return e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(o).then(function(t){if(!t)throw s.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(t),response:n}})},t.prototype.processSignoutResponse=function(t,e){var i=this;return s.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return e?(s.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),i._validator.validateSignoutResponse(e,n)):(s.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),n)})},t.prototype.clearStaleState=function(t){return s.Log.debug("OidcClient.clearStaleState"),d.State.clearStaleState(t=t||this._stateStore,this.settings.staleStateAge)},n(t,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenClient=void 0;var n=i(7),s=i(2),o=i(0);e.TokenClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw o.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i,this._metadataService=new r(this._settings)}return t.prototype.exchangeCode=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"authorization_code",e.client_id=e.client_id||this._settings.client_id,e.redirect_uri=e.redirect_uri||this._settings.redirect_uri,e.code?e.redirect_uri?e.code_verifier?e.client_id?this._metadataService.getTokenEndpoint(!1).then(function(i){return o.Log.debug("TokenClient.exchangeCode: Received token endpoint"),t._jsonService.postForm(i,e).then(function(t){return o.Log.debug("TokenClient.exchangeCode: response received"),t})}):(o.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(o.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(o.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},t.prototype.exchangeRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"refresh_token",e.client_id=e.client_id||this._settings.client_id,e.client_secret=e.client_secret||this._settings.client_secret,e.refresh_token?e.client_id?this._metadataService.getTokenEndpoint(!1).then(function(i){return o.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),t._jsonService.postForm(i,e).then(function(t){return o.Log.debug("TokenClient.exchangeRefreshToken: response received"),t})}):(o.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorResponse=void 0;var n=i(0);e.ErrorResponse=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=i.error,o=i.error_description,r=i.error_uri,a=i.state,c=i.session_state;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),!s)throw n.Log.error("No error passed to ErrorResponse"),new Error("error");var u=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,o||s));return u.name="ErrorResponse",u.error=s,u.error_description=o,u.error_uri=r,u.state=a,u.session_state=c,u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Error)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninRequest=void 0;var n=i(0),s=i(3),o=i(13);e.SigninRequest=function(){function t(e){var i=e.url,r=e.client_id,a=e.redirect_uri,c=e.response_type,u=e.scope,l=e.authority,h=e.data,d=e.prompt,p=e.display,g=e.max_age,f=e.ui_locales,m=e.id_token_hint,b=e.login_hint,w=e.acr_values,_=e.resource,y=e.response_mode,A=e.request,v=e.request_uri,T=e.extraQueryParams,C=e.request_type,S=e.client_secret,E=e.extraTokenParams,k=e.skipUserInfo;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!r)throw n.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!a)throw n.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!c)throw n.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!u)throw n.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!l)throw n.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var x=t.isOidc(c),R=t.isCode(c);y||(y=t.isCode(c)?"query":null),this.state=new o.SigninState({nonce:x,data:h,client_id:r,authority:l,redirect_uri:a,code_verifier:R,request_type:C,response_mode:y,client_secret:S,scope:u,extraTokenParams:E,skipUserInfo:k}),i=s.UrlUtility.addQueryParam(i,"client_id",r),i=s.UrlUtility.addQueryParam(i,"redirect_uri",a),i=s.UrlUtility.addQueryParam(i,"response_type",c),i=s.UrlUtility.addQueryParam(i,"scope",u),i=s.UrlUtility.addQueryParam(i,"state",this.state.id),x&&(i=s.UrlUtility.addQueryParam(i,"nonce",this.state.nonce)),R&&(i=s.UrlUtility.addQueryParam(i,"code_challenge",this.state.code_challenge),i=s.UrlUtility.addQueryParam(i,"code_challenge_method","S256"));var I={prompt:d,display:p,max_age:g,ui_locales:f,id_token_hint:m,login_hint:b,acr_values:w,resource:_,request:A,request_uri:v,response_mode:y};for(var O in I)I[O]&&(i=s.UrlUtility.addQueryParam(i,O,I[O]));for(var P in T)i=s.UrlUtility.addQueryParam(i,P,T[P]);this.url=i}return t.isOidc=function(t){return!!t.split(/\s+/g).filter(function(t){return"id_token"===t})[0]},t.isOAuth=function(t){return!!t.split(/\s+/g).filter(function(t){return"token"===t})[0]},t.isCode=function(t){return!!t.split(/\s+/g).filter(function(t){return"code"===t})[0]},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninState=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.nonce,s=i.authority,o=i.client_id,c=i.redirect_uri,u=i.code_verifier,l=i.response_mode,h=i.client_secret,d=i.scope,p=i.extraTokenParams,g=i.skipUserInfo;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var f=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));if(!0===n?f._nonce=(0,a.default)():n&&(f._nonce=n),!0===u?f._code_verifier=(0,a.default)()+(0,a.default)()+(0,a.default)():u&&(f._code_verifier=u),f.code_verifier){var m=r.JoseUtil.hashString(f.code_verifier,"SHA256");f._code_challenge=r.JoseUtil.hexToBase64Url(m)}return f._redirect_uri=c,f._authority=s,f._client_id=o,f._response_mode=l,f._client_secret=h,f._scope=d,f._extraTokenParams=p,f._skipUserInfo=g,f}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toStorageString=function(){return s.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},e.fromStorageString=function(t){return s.Log.debug("SigninState.fromStorageString"),new e(JSON.parse(t))},n(e,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),e}(o.State)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,n.default)().replace(/-/g,"")};var n=function(t){return t&&t.__esModule?t:{default:t}}(i(33));t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.User=void 0;var n=function(){function t(t,e){for(var i=0;i0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessTokenEvents=void 0;var n=i(0),s=i(48);e.AccessTokenEvents=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.accessTokenExpiringNotificationTime,n=void 0===i?60:i,o=e.accessTokenExpiringTimer,r=void 0===o?new s.Timer("Access token expiring"):o,a=e.accessTokenExpiredTimer,c=void 0===a?new s.Timer("Access token expired"):a;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._accessTokenExpiringNotificationTime=n,this._accessTokenExpiring=r,this._accessTokenExpired=c}return t.prototype.load=function(t){if(t.access_token&&void 0!==t.expires_in){var e=t.expires_in;if(n.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",e),e>0){var i=e-this._accessTokenExpiringNotificationTime;i<=0&&(i=1),n.Log.debug("AccessTokenEvents.load: registering expiring timer in:",i),this._accessTokenExpiring.init(i)}else n.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var s=e+1;n.Log.debug("AccessTokenEvents.load: registering expired timer in:",s),this._accessTokenExpired.init(s)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.unload=function(){n.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.addAccessTokenExpiring=function(t){this._accessTokenExpiring.addHandler(t)},t.prototype.removeAccessTokenExpiring=function(t){this._accessTokenExpiring.removeHandler(t)},t.prototype.addAccessTokenExpired=function(t){this._accessTokenExpired.addHandler(t)},t.prototype.removeAccessTokenExpired=function(t){this._accessTokenExpired.removeHandler(t)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=i(0);e.Event=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e,this._callbacks=[]}return t.prototype.addHandler=function(t){this._callbacks.push(t)},t.prototype.removeHandler=function(t){var e=this._callbacks.findIndex(function(e){return e===t});e>=0&&this._callbacks.splice(e,1)},t.prototype.raise=function(){n.Log.debug("Event: Raising event: "+this._name);for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:o.CheckSessionIFrame,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.Global.timer;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=e,this._CheckSessionIFrameCtor=n,this._timer=a,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),this._userManager.getUser().then(function(t){t?i._start(t):i._settings.monitorAnonymousSession&&i._userManager.querySessionStatus().then(function(t){var e={session_state:t.session_state};t.sub&&t.sid&&(e.profile={sub:t.sub,sid:t.sid}),i._start(e)}).catch(function(t){s.Log.error("SessionMonitor ctor: error from querySessionStatus:",t.message)})}).catch(function(t){s.Log.error("SessionMonitor ctor: error from getUser:",t.message)})}return t.prototype._start=function(t){var e=this,i=t.session_state;i&&(t.profile?(this._sub=t.profile.sub,this._sid=t.profile.sid,s.Log.debug("SessionMonitor._start: session_state:",i,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,s.Log.debug("SessionMonitor._start: session_state:",i,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(i):this._metadataService.getCheckSessionIframe().then(function(t){if(t){s.Log.debug("SessionMonitor._start: Initializing check session iframe");var n=e._client_id,o=e._checkSessionInterval,r=e._stopCheckSessionOnError;e._checkSessionIFrame=new e._CheckSessionIFrameCtor(e._callback.bind(e),n,t,o,r),e._checkSessionIFrame.load().then(function(){e._checkSessionIFrame.start(i)})}else s.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")}).catch(function(t){s.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",t.message)}))},t.prototype._stop=function(){var t=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(s.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var e=this._timer.setInterval(function(){t._timer.clearInterval(e),t._userManager.querySessionStatus().then(function(e){var i={session_state:e.session_state};e.sub&&e.sid&&(i.profile={sub:e.sub,sid:e.sid}),t._start(i)}).catch(function(t){s.Log.error("SessionMonitor: error from querySessionStatus:",t.message)})},1e3)},t.prototype._callback=function(){var t=this;this._userManager.querySessionStatus().then(function(e){var i=!0;e?e.sub===t._sub?(i=!1,t._checkSessionIFrame.start(e.session_state),e.sid===t._sid?s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",e.session_state):(s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",e.session_state),t._userManager.events._raiseUserSessionChanged())):s.Log.debug("SessionMonitor._callback: Different subject signed into OP:",e.sub):s.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),i&&(t._sub?(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),t._userManager.events._raiseUserSignedOut()):(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),t._userManager.events._raiseUserSignedIn()))}).catch(function(e){t._sub&&(s.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",e.message),t._userManager.events._raiseUserSignedOut())})},n(t,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CheckSessionIFrame=void 0;var n=i(0);e.CheckSessionIFrame=function(){function t(e,i,n,s){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._callback=e,this._client_id=i,this._url=n,this._interval=s||2e3,this._stopOnError=o;var r=n.indexOf("/",n.indexOf("//")+2);this._frame_origin=n.substr(0,r),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.style.width=0,this._frame.style.height=0,this._frame.src=n}return t.prototype.load=function(){var t=this;return new Promise(function(e){t._frame.onload=function(){e()},window.document.body.appendChild(t._frame),t._boundMessageEvent=t._message.bind(t),window.addEventListener("message",t._boundMessageEvent,!1)})},t.prototype._message=function(t){t.origin===this._frame_origin&&t.source===this._frame.contentWindow&&("error"===t.data?(n.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===t.data?(n.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):n.Log.debug("CheckSessionIFrame: "+t.data+" message from check session op iframe"))},t.prototype.start=function(t){var e=this;if(this._session_state!==t){n.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=t;var i=function(){e._frame.contentWindow.postMessage(e._client_id+" "+e._session_state,e._frame_origin)};i(),this._timer=window.setInterval(i,this._interval)}},t.prototype.stop=function(){this._session_state=null,this._timer&&(n.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenRevocationClient=void 0;var n=i(0),s=i(2),o=i(1);e.TokenRevocationClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Global.XMLHttpRequest,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw n.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=e,this._XMLHttpRequestCtor=i,this._metadataService=new r(this._settings)}return t.prototype.revoke=function(t,e){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!t)throw n.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==s&&"refresh_token"!=s)throw n.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then(function(o){if(o)return n.Log.debug("TokenRevocationClient.revoke: Revoking "+s),i._revoke(o,i._settings.client_id,i._settings.client_secret,t,s);if(e)throw n.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")})},t.prototype._revoke=function(t,e,i,s,o){var r=this;return new Promise(function(a,c){var u=new r._XMLHttpRequestCtor;u.open("POST",t),u.onload=function(){n.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",u.status),200===u.status?a():c(Error(u.statusText+" ("+u.status+")"))},u.onerror=function(){n.Log.debug("TokenRevocationClient.revoke: Network Error."),c("Network Error")};var l="client_id="+encodeURIComponent(e);i&&(l+="&client_secret="+encodeURIComponent(i)),l+="&token_type_hint="+encodeURIComponent(o),l+="&token="+encodeURIComponent(s),u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.send(l)})},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CordovaPopupWindow=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:o.MetadataService,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.UserInfoService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.JoseUtil,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:a.TokenClient;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=e,this._metadataService=new i(this._settings),this._userInfoService=new n(this._settings),this._joseUtil=c,this._tokenClient=new l(this._settings)}return t.prototype.validateSigninResponse=function(t,e){var i=this;return s.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(t,e).then(function(e){return s.Log.debug("ResponseValidator.validateSigninResponse: state processed"),i._validateTokens(t,e).then(function(e){return s.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),i._processClaims(t,e).then(function(t){return s.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),t})})})},t.prototype.validateSignoutResponse=function(t,e){return t.id!==e.state?(s.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(s.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),e.state=t.data,e.error?(s.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):Promise.resolve(e))},t.prototype._processSigninParams=function(t,e){if(t.id!==e.state)return s.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!t.client_id)return s.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!t.authority)return s.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==t.authority)return s.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=t.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==t.client_id)return s.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=t.client_id;return s.Log.debug("ResponseValidator._processSigninParams: state validated"),e.state=t.data,e.error?(s.Log.warn("ResponseValidator._processSigninParams: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):t.nonce&&!e.id_token?(s.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!t.nonce&&e.id_token?(s.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):t.code_verifier&&!e.code?(s.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!t.code_verifier&&e.code?(s.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(e.scope||(e.scope=t.scope),Promise.resolve(e))},t.prototype._processClaims=function(t,e){var i=this;if(e.isOpenIdConnect){if(s.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),e.profile=this._filterProtocolClaims(e.profile),!0!==t.skipUserInfo&&this._settings.loadUserInfo&&e.access_token)return s.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(e.access_token).then(function(t){return s.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),t.sub!==e.profile.sub?(s.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in access_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"))):(e.profile=i._mergeClaims(e.profile,t),s.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",e.profile),e)});s.Log.debug("ResponseValidator._processClaims: not loading user info")}else s.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(e)},t.prototype._mergeClaims=function(t,e){var i=Object.assign({},t);for(var s in e){var o=e[s];Array.isArray(o)||(o=[o]);for(var r=0;r1)return s.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));c=a[0]}if(!c)return s.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var u=t.client_id,l=i._settings.clockSkew;return s.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",l),i._joseUtil.validateJwt(e.id_token,c,r,u,l).then(function(){return s.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),n.payload.sub?(e.profile=n.payload,e):(s.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))})})})},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return s.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",e),[];i="EC"}return s.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",i),t=t.filter(function(t){return t.kty===i}),s.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",i,t.length),t},t.prototype._validateAccessToken=function(t){if(!t.profile)return s.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!t.profile.at_hash)return s.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!t.id_token)return s.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var e=this._joseUtil.parseJwt(t.id_token);if(!e||!e.header)return s.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",e),Promise.reject(new Error("Failed to parse id_token"));var i=e.header.alg;if(!i||5!==i.length)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i),Promise.reject(new Error("Unsupported alg: "+i));var n=i.substr(2,3);if(!n)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));if(256!==(n=parseInt(n))&&384!==n&&512!==n)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));var o="sha"+n,r=this._joseUtil.hashString(t.access_token,o);if(!r)return s.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",o),Promise.reject(new Error("Failed to validate at_hash"));var a=r.substr(0,r.length/2),c=this._joseUtil.hexToBase64Url(a);return c!==t.profile.at_hash?(s.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",c,t.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(s.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(t))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserInfoService=void 0;var n=i(7),s=i(2),o=i(0),r=i(4);e.UserInfoService=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r.JoseUtil;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw o.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new a(this._settings),this._joseUtil=c}return t.prototype.getClaims=function(t){var e=this;return t?this._metadataService.getUserInfoEndpoint().then(function(i){return o.Log.debug("UserInfoService.getClaims: received userinfo url",i),e._jsonService.getJson(i,t).then(function(t){return o.Log.debug("UserInfoService.getClaims: claims received",t),t})}):(o.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},t.prototype._getClaimsFromJwt=function t(e){var i=this;try{var n=this._joseUtil.parseJwt(e.responseText);if(!n||!n.header||!n.payload)return o.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",n),Promise.reject(new Error("Failed to parse id_token"));var s=n.header.kid,r=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":r=this._metadataService.getIssuer();break;case"ANY":r=Promise.resolve(n.payload.iss);break;default:r=Promise.resolve(this._settings.userInfoJwtIssuer)}return r.then(function(t){return o.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+t),i._metadataService.getSigningKeys().then(function(r){if(!r)return o.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));o.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var a=void 0;if(s)a=r.filter(function(t){return t.kid===s})[0];else{if((r=i._filterByAlg(r,n.header.alg)).length>1)return o.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));a=r[0]}if(!a)return o.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var c=i._settings.client_id,u=i._settings.clockSkew;return o.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",u),i._joseUtil.validateJwt(e.responseText,a,t,c,u,void 0,!0).then(function(){return o.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),n.payload})})})}catch(t){return o.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",t.message),void reject(t)}},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return o.Log.debug("UserInfoService._filterByAlg: alg not supported: ",e),[];i="EC"}return o.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",i),t=t.filter(function(t){return t.kty===i}),o.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",i,t.length),t},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AllowedSigningAlgs=e.b64tohex=e.hextob64u=e.crypto=e.X509=e.KeyUtil=e.jws=void 0;var n=i(26);e.jws=n.jws,e.KeyUtil=n.KEYUTIL,e.X509=n.X509,e.crypto=n.crypto,e.hextob64u=n.hextob64u,e.b64tohex=n.b64tohex,e.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n={userAgent:!1},s={};if(void 0===o)var o={};o.lang={extend:function(e,i,s){if(!i||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var o=function(){};if(o.prototype=i.prototype,e.prototype=new o,e.prototype.constructor=e,e.superclass=i.prototype,i.prototype.constructor==Object.prototype.constructor&&(i.prototype.constructor=i),s){var r;for(r in s)e.prototype[r]=s[r];var a=function(){},c=["toString","valueOf"];try{/MSIE/.test(n.userAgent)&&(a=function(t,e){for(r=0;r>>2]|=(i[o>>>2]>>>24-o%4*8&255)<<24-(n+o)%4*8;else for(o=0;o>>2]=i[o>>>2];return this.sigBytes+=s,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=r.ceil(e/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i>>2]>>>24-s%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new l.init(i,e/2)}},p=h.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],s=0;s>>2]>>>24-s%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new l.init(i,e)}},g=h.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},f=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=g.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,i=e.words,n=e.sigBytes,s=this.blockSize,o=n/(4*s),a=(o=t?r.ceil(o):r.max((0|o)-this._minBufferSize,0))*s,c=r.min(4*a,n);if(a){for(var u=0;u>>2]>>>24-s%4*8&255)<<16|(e[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|e[s+2>>>2]>>>24-(s+2)%4*8&255,r=0;4>r&&s+.75*r>>6*(3-r)&63));if(e=n.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(e){var i=e.length,n=this._map;(s=n.charAt(64))&&-1!=(s=e.indexOf(s))&&(i=s);for(var s=[],o=0,r=0;r>>6-r%4*2;s[o>>>2]|=(a|c)<<24-o%4*8,o++}return t.create(s,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){for(var e=b,i=(s=e.lib).WordArray,n=s.Hasher,s=e.algo,o=[],r=[],a=function(t){return 4294967296*(t-(0|t))|0},c=2,u=0;64>u;){var l;t:{for(var h=t.sqrt(l=c),d=2;d<=h;d++)if(!(l%d)){l=!1;break t}l=!0}l&&(8>u&&(o[u]=a(t.pow(c,.5))),r[u]=a(t.pow(c,1/3)),u++),c++}var p=[];s=s.SHA256=n.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],s=i[1],o=i[2],a=i[3],c=i[4],u=i[5],l=i[6],h=i[7],d=0;64>d;d++){if(16>d)p[d]=0|t[e+d];else{var g=p[d-15],f=p[d-2];p[d]=((g<<25|g>>>7)^(g<<14|g>>>18)^g>>>3)+p[d-7]+((f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10)+p[d-16]}g=h+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&u^~c&l)+r[d]+p[d],f=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&s^n&o^s&o),h=l,l=u,u=c,c=a+g|0,a=o,o=s,s=n,n=g+f|0}i[0]=i[0]+n|0,i[1]=i[1]+s|0,i[2]=i[2]+o|0,i[3]=i[3]+a|0,i[4]=i[4]+c|0,i[5]=i[5]+u|0,i[6]=i[6]+l|0,i[7]=i[7]+h|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,s=8*e.sigBytes;return i[s>>>5]|=128<<24-s%32,i[14+(s+64>>>9<<4)]=t.floor(n/4294967296),i[15+(s+64>>>9<<4)]=n,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),e.SHA256=n._createHelper(s),e.HmacSHA256=n._createHmacHelper(s)}(Math),function(){function t(){return n.create.apply(n,arguments)}for(var e=b,i=e.lib.Hasher,n=(o=e.x64).Word,s=o.WordArray,o=e.algo,r=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],a=[],c=0;80>c;c++)a[c]=t();o=o.SHA512=i.extend({_doReset:function(){this._hash=new s.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var i=(h=this._hash.words)[0],n=h[1],s=h[2],o=h[3],c=h[4],u=h[5],l=h[6],h=h[7],d=i.high,p=i.low,g=n.high,f=n.low,m=s.high,b=s.low,w=o.high,_=o.low,y=c.high,A=c.low,v=u.high,T=u.low,C=l.high,S=l.low,E=h.high,k=h.low,x=d,R=p,I=g,O=f,P=m,D=b,M=w,L=_,N=y,z=A,F=v,Z=T,B=C,q=S,U=E,H=k,j=0;80>j;j++){var G=a[j];if(16>j)var Y=G.high=0|t[e+2*j],V=G.low=0|t[e+2*j+1];else{Y=((V=(Y=a[j-15]).high)>>>1|(K=Y.low)<<31)^(V>>>8|K<<24)^V>>>7;var K=(K>>>1|V<<31)^(K>>>8|V<<24)^(K>>>7|V<<25),J=((V=(J=a[j-2]).high)>>>19|($=J.low)<<13)^(V<<3|$>>>29)^V>>>6,$=($>>>19|V<<13)^($<<3|V>>>29)^($>>>6|V<<26),Q=(V=a[j-7]).high,W=(X=a[j-16]).high,X=X.low;Y=(Y=(Y=Y+Q+((V=K+V.low)>>>0>>0?1:0))+J+((V+=$)>>>0<$>>>0?1:0))+W+((V+=X)>>>0>>0?1:0),G.high=Y,G.low=V}G=x&I^x&P^I&P;var tt=R&O^R&D^O&D,et=(K=(x>>>28|R<<4)^(x<<30|R>>>2)^(x<<25|R>>>7),J=(R>>>28|x<<4)^(R<<30|x>>>2)^(R<<25|x>>>7),($=r[j]).high),it=$.low;W=(W=(W=(W=U+((N>>>14|z<<18)^(N>>>18|z<<14)^(N<<23|z>>>9))+(($=H+((z>>>14|N<<18)^(z>>>18|N<<14)^(z<<23|N>>>9)))>>>0>>0?1:0))+(Q=N&F^~N&B)+(($+=X=z&Z^~z&q)>>>0>>0?1:0))+et+(($+=it)>>>0>>0?1:0))+Y+(($+=V)>>>0>>0?1:0),U=B,H=q,B=F,q=Z,F=N,Z=z,N=M+W+((z=L+$|0)>>>0>>0?1:0)|0,M=P,L=D,P=I,D=O,I=x,O=R,x=W+(G=K+G+((V=J+tt)>>>0>>0?1:0))+((R=$+V|0)>>>0<$>>>0?1:0)|0}p=i.low=p+R,i.high=d+x+(p>>>0>>0?1:0),f=n.low=f+O,n.high=g+I+(f>>>0>>0?1:0),b=s.low=b+D,s.high=m+P+(b>>>0>>0?1:0),_=o.low=_+L,o.high=w+M+(_>>>0>>0?1:0),A=c.low=A+z,c.high=y+N+(A>>>0>>0?1:0),T=u.low=T+Z,u.high=v+F+(T>>>0>>0?1:0),S=l.low=S+q,l.high=C+B+(S>>>0>>0?1:0),k=h.low=k+H,h.high=E+U+(k>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(n+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),e.SHA512=i._createHelper(o),e.HmacSHA512=i._createHmacHelper(o)}(),function(){var t=b,e=(s=t.x64).Word,i=s.WordArray,n=(s=t.algo).SHA512,s=s.SHA384=n.extend({_doReset:function(){this._hash=new i.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=n._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=n._createHelper(s),t.HmacSHA384=n._createHmacHelper(s)}();var w,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function y(t){var e,i,n="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),n+=_.charAt(i>>6)+_.charAt(63&i);for(e+1==t.length?(i=parseInt(t.substring(e,e+1),16),n+=_.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),n+=_.charAt(i>>2)+_.charAt((3&i)<<4));(3&n.length)>0;)n+="=";return n}function A(t){var e,i,n,s="",o=0;for(e=0;e>2),i=3&n,o=1):1==o?(s+=x(i<<2|n>>4),i=15&n,o=2):2==o?(s+=x(i),s+=x(n>>2),i=3&n,o=3):(s+=x(i<<2|n>>4),s+=x(15&n),o=0));return 1==o&&(s+=x(i<<2)),s}function v(t){var e,i=A(t),n=new Array;for(e=0;2*e>15;--o>=0;){var c=32767&this[t],u=this[t++]>>15,l=a*c+u*r;s=((c=r*c+((32767&l)<<15)+i[n]+(1073741823&s))>>>30)+(l>>>15)+a*u+(s>>>30),i[n++]=1073741823&c}return s},w=30):"Netscape"!=n.appName?(T.prototype.am=function(t,e,i,n,s,o){for(;--o>=0;){var r=e*this[t++]+i[n]+s;s=Math.floor(r/67108864),i[n++]=67108863&r}return s},w=26):(T.prototype.am=function(t,e,i,n,s,o){for(var r=16383&e,a=e>>14;--o>=0;){var c=16383&this[t],u=this[t++]>>14,l=a*c+u*r;s=((c=r*c+((16383&l)<<14)+i[n]+s)>>28)+(l>>14)+a*u,i[n++]=268435455&c}return s},w=28),T.prototype.DB=w,T.prototype.DM=(1<>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}function P(t){this.m=t}function D(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function Z(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function B(){}function q(t){return t}function U(t){this.r2=C(),this.q3=C(),T.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}P.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},P.prototype.revert=function(t){return t},P.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},P.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},P.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},D.prototype.convert=function(t){var e=C();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(T.ZERO)>0&&this.m.subTo(e,e),e},D.prototype.revert=function(t){var e=C();return t.copyTo(e),this.reduce(e),e},D.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[i=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},D.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},D.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},T.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},T.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},T.prototype.fromString=function(t,e){var i;if(16==e)i=4;else if(8==e)i=3;else if(256==e)i=8;else if(2==e)i=1;else if(32==e)i=5;else{if(4!=e)return void this.fromRadix(t,e);i=2}this.t=0,this.s=0;for(var n=t.length,s=!1,o=0;--n>=0;){var r=8==i?255&t[n]:R(t,n);r<0?"-"==t.charAt(n)&&(s=!0):(s=!1,0==o?this[this.t++]=r:o+i>this.DB?(this[this.t-1]|=(r&(1<>this.DB-o):this[this.t-1]|=r<=this.DB&&(o-=this.DB))}8==i&&0!=(128&t[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},T.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},T.prototype.drShiftTo=function(t,e){for(var i=t;i=0;--i)e[i+r+1]=this[i]>>s|a,a=(this[i]&o)<=0;--i)e[i]=0;e[r]=a,e.t=this.t+r+1,e.s=this.s,e.clamp()},T.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var n=t%this.DB,s=this.DB-n,o=(1<>n;for(var r=i+1;r>n;n>0&&(e[this.t-i-1]|=(this.s&o)<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[i++]=this.DV+n:n>0&&(e[i++]=n),e.t=i,e.clamp()},T.prototype.multiplyTo=function(t,e){var i=this.abs(),n=t.abs(),s=i.t;for(e.t=s+n.t;--s>=0;)e[s]=0;for(s=0;s=0;)t[i]=0;for(i=0;i=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},T.prototype.divRemTo=function(t,e,i){var n=t.abs();if(!(n.t<=0)){var s=this.abs();if(s.t0?(n.lShiftTo(c,o),s.lShiftTo(c,i)):(n.copyTo(o),s.copyTo(i));var u=o.t,l=o[u-1];if(0!=l){var h=l*(1<1?o[u-2]>>this.F2:0),d=this.FV/h,p=(1<=0&&(i[i.t++]=1,i.subTo(b,i)),T.ONE.dlShiftTo(u,b),b.subTo(o,o);o.t=0;){var w=i[--f]==l?this.DM:Math.floor(i[f]*d+(i[f-1]+g)*p);if((i[f]+=o.am(0,w,i,m,0,u))0&&i.rShiftTo(c,i),r<0&&T.ZERO.subTo(i,i)}}},T.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},T.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},T.prototype.exp=function(t,e){if(t>4294967295||t<1)return T.ONE;var i=C(),n=C(),s=e.convert(this),o=O(t)-1;for(s.copyTo(i);--o>=0;)if(e.sqrTo(i,n),(t&1<0)e.mulTo(n,s,i);else{var r=i;i=n,n=r}return e.revert(i)},T.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,n=(1<0)for(a>a)>0&&(s=!0,o=x(i));r>=0;)a>(a+=this.DB-e)):(i=this[r]>>(a-=e)&n,a<=0&&(a+=this.DB,--r)),i>0&&(s=!0),s&&(o+=x(i));return s?o:"0"},T.prototype.negate=function(){var t=C();return T.ZERO.subTo(this,t),t},T.prototype.abs=function(){return this.s<0?this.negate():this},T.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-t.t))return this.s<0?-e:e;for(;--i>=0;)if(0!=(e=this[i]-t[i]))return e;return 0},T.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+O(this[this.t-1]^this.s&this.DM)},T.prototype.mod=function(t){var e=C();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(T.ZERO)>0&&t.subTo(e,e),e},T.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new P(e):new D(e),this.exp(t,i)},T.ZERO=I(0),T.ONE=I(1),B.prototype.convert=q,B.prototype.revert=q,B.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},B.prototype.sqrTo=function(t,e){t.squareTo(e)},U.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=C();return t.copyTo(e),this.reduce(e),e},U.prototype.revert=function(t){return t},U.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},U.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},U.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var H,j,G,Y=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],V=(1<<26)/Y[Y.length-1];function K(){this.i=0,this.j=0,this.S=new Array}function J(){!function(t){j[G++]^=255&t,j[G++]^=t>>8&255,j[G++]^=t>>16&255,j[G++]^=t>>24&255,G>=256&&(G-=256)}((new Date).getTime())}if(T.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},T.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),n=I(i),s=C(),o=C(),r="";for(this.divRemTo(n,s,o);s.signum()>0;)r=(i+o.intValue()).toString(t).substr(1)+r,s.divRemTo(n,s,o);return o.intValue().toString(t)+r},T.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var i=this.chunkSize(e),n=Math.pow(e,i),s=!1,o=0,r=0,a=0;a=i&&(this.dMultiply(n),this.dAddOffset(r,0),o=0,r=0))}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(r,0)),s&&T.ZERO.subTo(this,this)},T.prototype.fromNumber=function(t,e,i){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(T.ONE.shiftLeft(t-1),L,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(T.ONE.shiftLeft(t-1),this);else{var n=new Array,s=7&t;n.length=1+(t>>3),e.nextBytes(n),s>0?n[0]&=(1<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[i++]=n:n<-1&&(e[i++]=this.DV+n),e.t=i,e.clamp()},T.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},T.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},T.prototype.multiplyLowerTo=function(t,e,i){var n,s=Math.min(this.t+t.t,e);for(i.s=0,i.t=s;s>0;)i[--s]=0;for(n=i.t-this.t;s=0;)i[n]=0;for(n=Math.max(e-this.t,0);n0)if(0==e)i=this[0]%t;else for(var n=this.t-1;n>=0;--n)i=(e*i+this[n])%t;return i},T.prototype.millerRabin=function(t){var e=this.subtract(T.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var n=e.shiftRight(i);(t=t+1>>1)>Y.length&&(t=Y.length);for(var s=C(),o=0;o>24},T.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},T.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},T.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var i,n=this.DB-t*this.DB%8,s=0;if(t-- >0)for(n>n)!=(this.s&this.DM)>>n&&(e[s++]=i|this.s<=0;)n<8?(i=(this[t]&(1<>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==s&&(128&this.s)!=(128&i)&&++s,(s>0||i!=this.s)&&(e[s++]=i);return e},T.prototype.equals=function(t){return 0==this.compareTo(t)},T.prototype.min=function(t){return this.compareTo(t)<0?this:t},T.prototype.max=function(t){return this.compareTo(t)>0?this:t},T.prototype.and=function(t){var e=C();return this.bitwiseTo(t,M,e),e},T.prototype.or=function(t){var e=C();return this.bitwiseTo(t,L,e),e},T.prototype.xor=function(t){var e=C();return this.bitwiseTo(t,N,e),e},T.prototype.andNot=function(t){var e=C();return this.bitwiseTo(t,z,e),e},T.prototype.not=function(){for(var t=C(),e=0;e=this.t?0!=this.s:0!=(this[e]&1<1){var l=C();for(n.sqrTo(r[1],l);a<=u;)r[a]=C(),n.mulTo(l,r[a-2],r[a]),a+=2}var h,d,p=t.t-1,g=!0,f=C();for(s=O(t[p])-1;p>=0;){for(s>=c?h=t[p]>>s-c&u:(h=(t[p]&(1<0&&(h|=t[p-1]>>this.DB+s-c)),a=i;0==(1&h);)h>>=1,--a;if((s-=a)<0&&(s+=this.DB,--p),g)r[h].copyTo(o),g=!1;else{for(;a>1;)n.sqrTo(o,f),n.sqrTo(f,o),a-=2;a>0?n.sqrTo(o,f):(d=o,o=f,f=d),n.mulTo(f,r[h],o)}for(;p>=0&&0==(t[p]&1<=0?(i.subTo(n,i),e&&s.subTo(r,s),o.subTo(a,o)):(n.subTo(i,n),e&&r.subTo(s,r),a.subTo(o,a))}return 0!=n.compareTo(T.ONE)?T.ZERO:a.compareTo(t)>=0?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},T.prototype.pow=function(t){return this.exp(t,new B)},T.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var n=e;e=i,i=n}var s=e.getLowestSetBit(),o=i.getLowestSetBit();if(o<0)return e;for(s0&&(e.rShiftTo(o,e),i.rShiftTo(o,i));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return o>0&&i.lShiftTo(o,i),i},T.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=Y[Y.length-1]){for(e=0;e>>8,j[G++]=255&$;G=0,J()}function tt(){if(null==H){for(J(),(H=new K).init(j),G=0;G>24,(16711680&s)>>16,(65280&s)>>8,255&s]))),s+=1;return n}function st(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function ot(t,e){this.x=e,this.q=t}function rt(t,e,i,n){this.curve=t,this.x=e,this.y=i,this.z=null==n?T.ONE:n,this.zinv=null}function at(t,e,i){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(i),this.infinity=new rt(this,null,null)}et.prototype.nextBytes=function(t){var e;for(e=0;e0&&e.length>0))throw"Invalid RSA public key";this.n=it(t,16),this.e=parseInt(e,16)}},st.prototype.encrypt=function(t){var e=function(t,e){if(e=0&&e>0;){var s=t.charCodeAt(n--);s<128?i[--e]=s:s>127&&s<2048?(i[--e]=63&s|128,i[--e]=s>>6|192):(i[--e]=63&s|128,i[--e]=s>>6&63|128,i[--e]=s>>12|224)}i[--e]=0;for(var o=new et,r=new Array;e>2;){for(r[0]=0;0==r[0];)o.nextBytes(r);i[--e]=r[0]}return i[--e]=2,i[--e]=0,new T(i)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var i=this.doPublic(e);if(null==i)return null;var n=i.toString(16);return 0==(1&n.length)?n:"0"+n},st.prototype.encryptOAEP=function(t,e,i){var n=function(t,e,i,n){var s=ut.crypto.MessageDigest,o=ut.crypto.Util,r=null;if(i||(i="sha1"),"string"==typeof i&&(r=s.getCanonicalAlgName(i),n=s.getHashLength(r),i=function(t){return Tt(o.hashHex(Ct(t),r))}),t.length+2*n+2>e)throw"Message too long for RSA";var a,c="";for(a=0;a>3,e,i);if(null==n)return null;var s=this.doPublic(n);if(null==s)return null;var o=s.toString(16);return 0==(1&o.length)?o:"0"+o},st.prototype.type="RSA",ot.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},ot.prototype.toBigInteger=function(){return this.x},ot.prototype.negate=function(){return new ot(this.q,this.x.negate().mod(this.q))},ot.prototype.add=function(t){return new ot(this.q,this.x.add(t.toBigInteger()).mod(this.q))},ot.prototype.subtract=function(t){return new ot(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},ot.prototype.multiply=function(t){return new ot(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},ot.prototype.square=function(){return new ot(this.q,this.x.square().mod(this.q))},ot.prototype.divide=function(t){return new ot(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},rt.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},rt.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},rt.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(T.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(T.ZERO))},rt.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(T.ZERO)&&!this.y.toBigInteger().equals(T.ZERO)},rt.prototype.negate=function(){return new rt(this.curve,this.x,this.y.negate(),this.z)},rt.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),i=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(T.ZERO.equals(i))return T.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new T("3"),s=this.x.toBigInteger(),o=this.y.toBigInteger(),r=(t.x.toBigInteger(),t.y.toBigInteger(),i.square()),a=r.multiply(i),c=s.multiply(r),u=e.square().multiply(this.z),l=u.subtract(c.shiftLeft(1)).multiply(t.z).subtract(a).multiply(i).mod(this.curve.q),h=c.multiply(n).multiply(e).subtract(o.multiply(a)).subtract(u.multiply(e)).multiply(t.z).add(e.multiply(a)).mod(this.curve.q),d=a.multiply(this.z).multiply(t.z).mod(this.curve.q);return new rt(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(h),d)},rt.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=new T("3"),e=this.x.toBigInteger(),i=this.y.toBigInteger(),n=i.multiply(this.z),s=n.multiply(i).mod(this.curve.q),o=this.curve.a.toBigInteger(),r=e.square().multiply(t);T.ZERO.equals(o)||(r=r.add(this.z.square().multiply(o)));var a=(r=r.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(s)).shiftLeft(1).multiply(n).mod(this.curve.q),c=r.multiply(t).multiply(e).subtract(s.shiftLeft(1)).shiftLeft(2).multiply(s).subtract(r.square().multiply(r)).mod(this.curve.q),u=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new rt(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(c),u)},rt.prototype.multiply=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new T("3")),s=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var r=n.testBit(e);r!=i.testBit(e)&&(o=o.add(r?this:s))}return o},rt.prototype.multiplyTwo=function(t,e,i){var n;n=t.bitLength()>i.bitLength()?t.bitLength()-1:i.bitLength()-1;for(var s=this.curve.getInfinity(),o=this.add(e);n>=0;)s=s.twice(),t.testBit(n)?s=i.testBit(n)?s.add(o):s.add(this):i.testBit(n)&&(s=s.add(e)),--n;return s},at.prototype.getQ=function(){return this.q},at.prototype.getA=function(){return this.a},at.prototype.getB=function(){return this.b},at.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},at.prototype.getInfinity=function(){return this.infinity},at.prototype.fromBigInteger=function(t){return new ot(this.q,t)},at.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,i=t.substr(2,e),n=t.substr(e+2,e);return new rt(this,this.fromBigInteger(new T(i,16)),this.fromBigInteger(new T(n,16)));default:return null}},ot.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},rt.prototype.getEncoded=function(t){var e=function(t,e){var i=t.toByteArrayUnsigned();if(ei.length;)i.unshift(0);return i},i=this.getX().toBigInteger(),n=this.getY().toBigInteger(),s=e(i,32);return t?n.isEven()?s.unshift(2):s.unshift(3):(s.unshift(4),s=s.concat(e(n,32))),s},rt.decodeFrom=function(t,e){var i=e.length-1,n=e.slice(1,1+i/2),s=e.slice(1+i/2,1+i);n.unshift(0),s.unshift(0);var o=new T(n),r=new T(s);return new rt(t,t.fromBigInteger(o),t.fromBigInteger(r))},rt.decodeFromHex=function(t,e){e.substr(0,2);var i=e.length-2,n=e.substr(2,i/2),s=e.substr(2+i/2,i/2),o=new T(n,16),r=new T(s,16);return new rt(t,t.fromBigInteger(o),t.fromBigInteger(r))},rt.prototype.add2D=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;if(this.x.equals(t.x))return this.y.equals(t.y)?this.twice():this.curve.getInfinity();var e=t.x.subtract(this.x),i=t.y.subtract(this.y).divide(e),n=i.square().subtract(this.x).subtract(t.x),s=i.multiply(this.x.subtract(n)).subtract(this.y);return new rt(this.curve,n,s)},rt.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=this.curve.fromBigInteger(T.valueOf(2)),e=this.curve.fromBigInteger(T.valueOf(3)),i=this.x.square().multiply(e).add(this.curve.a).divide(this.y.multiply(t)),n=i.square().subtract(this.x.multiply(t)),s=i.multiply(this.x.subtract(n)).subtract(this.y);return new rt(this.curve,n,s)},rt.prototype.multiply2D=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new T("3")),s=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var r=n.testBit(e);r!=i.testBit(e)&&(o=o.add2D(r?this:s))}return o},rt.prototype.isOnCurve=function(){var t=this.getX().toBigInteger(),e=this.getY().toBigInteger(),i=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),s=this.curve.getQ(),o=e.multiply(e).mod(s),r=t.multiply(t).multiply(t).add(i.multiply(t)).add(n).mod(s);return o.equals(r)},rt.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},rt.prototype.validate=function(){var t=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var e=this.getX().toBigInteger(),i=this.getY().toBigInteger();if(e.compareTo(T.ONE)<0||e.compareTo(t.subtract(T.ONE))>0)throw new Error("x coordinate out of bounds");if(i.compareTo(T.ONE)<0||i.compareTo(t.subtract(T.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(t).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ct=function(){var t=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),e=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),n={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function s(t,e,i){return e?n[e]:String.fromCharCode(parseInt(i,16))}var o=new String(""),r=Object.hasOwnProperty;return function(n,a){var c,u,l=n.match(t),h=l[0],d=!1;"{"===h?c={}:"["===h?c=[]:(c=[],d=!0);for(var p=[c],g=1-d,f=l.length;g=0;)delete s[o[l]]}return a.call(e,n,s)}({"":c},"")),c}}();void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.asn1&&ut.asn1||(ut.asn1={}),ut.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var i=e.substr(1).length;i%2==1?i+=1:e.match(/^[0-7]/)||(i+=2);for(var n="",s=0;s15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+i).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ut.asn1.DERAbstractString=function(t){ut.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=At(this.s).toLowerCase()},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},o.lang.extend(ut.asn1.DERAbstractString,ut.asn1.ASN1Object),ut.asn1.DERAbstractTime=function(t){ut.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,i){var n=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());"utc"==e&&(o=o.substr(2,2));var r=o+n(String(s.getMonth()+1),2)+n(String(s.getDate()),2)+n(String(s.getHours()),2)+n(String(s.getMinutes()),2)+n(String(s.getSeconds()),2);if(!0===i){var a=s.getMilliseconds();if(0!=a){var c=n(String(a),3);r=r+"."+(c=c.replace(/[0]+$/,""))}}return r+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=mt(t)},this.setByDateValue=function(t,e,i,n,s,o){var r=new Date(Date.UTC(t,e-1,i,n,s,o,0));this.setByDate(r)},this.getFreshValueHex=function(){return this.hV}},o.lang.extend(ut.asn1.DERAbstractTime,ut.asn1.ASN1Object),ut.asn1.DERAbstractStructured=function(t){ut.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},o.lang.extend(ut.asn1.DERAbstractStructured,ut.asn1.ASN1Object),ut.asn1.DERBoolean=function(){ut.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},o.lang.extend(ut.asn1.DERBoolean,ut.asn1.ASN1Object),ut.asn1.DERInteger=function(t){ut.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ut.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new T(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},o.lang.extend(ut.asn1.DERInteger,ut.asn1.ASN1Object),ut.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=ut.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}ut.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7s.length&&(s=n[i]);return(t=t.replace(s,"::")).slice(1,-1)}function Nt(t){var e="malformed hex value";if(!t.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw e;if(8!=t.length)return 32==t.length?Lt(t):t;try{return parseInt(t.substr(0,2),16)+"."+parseInt(t.substr(2,2),16)+"."+parseInt(t.substr(4,2),16)+"."+parseInt(t.substr(6,2),16)}catch(t){throw e}}function zt(t){for(var e=encodeURIComponent(t),i="",n=0;n"7"?"00"+t:t}dt.getLblen=function(t,e){if("8"!=t.substr(e+2,1))return 1;var i=parseInt(t.substr(e+3,1));return 0==i?-1:0=2*o)break;if(a>=200)break;n.push(c),r=c,a++}return n},dt.getNthChildIdx=function(t,e,i){return dt.getChildIdx(t,e)[i]},dt.getIdxbyList=function(t,e,i,n){var s,o,r=dt;if(0==i.length){if(void 0!==n&&t.substr(e,2)!==n)throw"checking tag doesn't match: "+t.substr(e,2)+"!="+n;return e}return s=i.shift(),o=r.getChildIdx(t,e),r.getIdxbyList(t,o[s],i,n)},dt.getTLVbyList=function(t,e,i,n){var s=dt,o=s.getIdxbyList(t,e,i);if(void 0===o)throw"can't find nthList object";if(void 0!==n&&t.substr(o,2)!=n)throw"checking tag doesn't match: "+t.substr(o,2)+"!="+n;return s.getTLV(t,o)},dt.getVbyList=function(t,e,i,n,s){var o,r,a=dt;if(void 0===(o=a.getIdxbyList(t,e,i,n)))throw"can't find nthList object";return r=a.getV(t,o),!0===s&&(r=r.substr(2)),r},dt.hextooidstr=function(t){var e=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},i=[],n=t.substr(0,2),s=parseInt(n,16);i[0]=new String(Math.floor(s/40)),i[1]=new String(s%40);for(var o=t.substr(2),r=[],a=0;a0&&(l=l+"."+c.join(".")),l},dt.dump=function(t,e,i,n){var s=dt,o=s.getV,r=s.dump,a=s.getChildIdx,c=t;t instanceof ut.asn1.ASN1Object&&(c=t.getEncodedHex());var u=function(t,e){return t.length<=2*e?t:t.substr(0,e)+"..(total "+t.length/2+"bytes).."+t.substr(t.length-e,e)};void 0===e&&(e={ommit_long_octet:32}),void 0===i&&(i=0),void 0===n&&(n="");var l=e.ommit_long_octet;if("01"==c.substr(i,2))return"00"==(h=o(c,i))?n+"BOOLEAN FALSE\n":n+"BOOLEAN TRUE\n";if("02"==c.substr(i,2))return n+"INTEGER "+u(h=o(c,i),l)+"\n";if("03"==c.substr(i,2))return n+"BITSTRING "+u(h=o(c,i),l)+"\n";if("04"==c.substr(i,2)){var h=o(c,i);return s.isASN1HEX(h)?(v=n+"OCTETSTRING, encapsulates\n")+r(h,e,0,n+" "):n+"OCTETSTRING "+u(h,l)+"\n"}if("05"==c.substr(i,2))return n+"NULL\n";if("06"==c.substr(i,2)){var d=o(c,i),p=ut.asn1.ASN1Util.oidHexToInt(d),g=ut.asn1.x509.OID.oid2name(p),f=p.replace(/\./g," ");return""!=g?n+"ObjectIdentifier "+g+" ("+f+")\n":n+"ObjectIdentifier ("+f+")\n"}if("0c"==c.substr(i,2))return n+"UTF8String '"+vt(o(c,i))+"'\n";if("13"==c.substr(i,2))return n+"PrintableString '"+vt(o(c,i))+"'\n";if("14"==c.substr(i,2))return n+"TeletexString '"+vt(o(c,i))+"'\n";if("16"==c.substr(i,2))return n+"IA5String '"+vt(o(c,i))+"'\n";if("17"==c.substr(i,2))return n+"UTCTime "+vt(o(c,i))+"\n";if("18"==c.substr(i,2))return n+"GeneralizedTime "+vt(o(c,i))+"\n";if("30"==c.substr(i,2)){if("3000"==c.substr(i,4))return n+"SEQUENCE {}\n";v=n+"SEQUENCE\n";var m=e;if((2==(_=a(c,i)).length||3==_.length)&&"06"==c.substr(_[0],2)&&"04"==c.substr(_[_.length-1],2)){g=s.oidname(o(c,_[0]));var b=JSON.parse(JSON.stringify(e));b.x509ExtName=g,m=b}for(var w=0;w<_.length;w++)v+=r(c,m,_[w],n+" ");return v}if("31"==c.substr(i,2)){v=n+"SET\n";var _=a(c,i);for(w=0;w<_.length;w++)v+=r(c,e,_[w],n+" ");return v}var y=parseInt(c.substr(i,2),16);if(0!=(128&y)){var A=31&y;if(0!=(32&y)){var v=n+"["+A+"]\n";for(_=a(c,i),w=0;w<_.length;w++)v+=r(c,e,_[w],n+" ");return v}return"68747470"==(h=o(c,i)).substr(0,8)&&(h=vt(h)),"subjectAltName"===e.x509ExtName&&2==A&&(h=vt(h)),n+"["+A+"] "+h+"\n"}return n+"UNKNOWN("+c.substr(i,2)+") "+o(c,i)+"\n"},dt.isASN1HEX=function(t){var e=dt;if(t.length%2==1)return!1;var i=e.getVblen(t,0),n=t.substr(0,2),s=e.getL(t,0);return t.length-n.length-s.length==2*i},dt.oidname=function(t){var e=ut.asn1;ut.lang.String.isHex(t)&&(t=e.ASN1Util.oidHexToInt(t));var i=e.x509.OID.oid2name(t);return""===i&&(i=t),i},void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.lang&&ut.lang||(ut.lang={}),ut.lang.String=function(){},"function"==typeof t?(e.utf8tob64u=lt=function(e){return bt(new t(e,"utf8").toString("base64"))},e.b64utoutf8=ht=function(e){return new t(wt(e),"base64").toString("utf8")}):(e.utf8tob64u=lt=function(t){return _t(Pt(zt(t)))},e.b64utoutf8=ht=function(t){return decodeURIComponent(Dt(yt(t)))}),ut.lang.String.isInteger=function(t){return!!t.match(/^[0-9]+$/)||!!t.match(/^-[0-9]+$/)},ut.lang.String.isHex=function(t){return!(t.length%2!=0||!t.match(/^[0-9a-f]+$/)&&!t.match(/^[0-9A-F]+$/))},ut.lang.String.isBase64=function(t){return!(!(t=t.replace(/\s+/g,"")).match(/^[0-9A-Za-z+\/]+={0,3}$/)||t.length%4!=0)},ut.lang.String.isBase64URL=function(t){return!t.match(/[+/=]/)&&(t=wt(t),ut.lang.String.isBase64(t))},ut.lang.String.isIntegerArray=function(t){return!!(t=t.replace(/\s+/g,"")).match(/^\[[0-9,]+\]$/)},void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.crypto&&ut.crypto||(ut.crypto={}),ut.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:b.algo.MD5,sha1:b.algo.SHA1,sha224:b.algo.SHA224,sha256:b.algo.SHA256,sha384:b.algo.SHA384,sha512:b.algo.SHA512,ripemd160:b.algo.RIPEMD160},this.getDigestInfoHex=function(t,e){if(void 0===this.DIGESTINFOHEAD[e])throw"alg not supported in Util.DIGESTINFOHEAD: "+e;return this.DIGESTINFOHEAD[e]+t},this.getPaddedDigestInfoHex=function(t,e,i){var n=this.getDigestInfoHex(t,e),s=i/4;if(n.length+22>s)throw"key is too short for SigAlg: keylen="+i+","+e;for(var o="0001",r="00"+n,a="",c=s-o.length-r.length,u=0;u=0)return!1;if(i.compareTo(T.ONE)<0||i.compareTo(s)>=0)return!1;var r=i.modInverse(s),a=t.multiply(r).mod(s),c=e.multiply(r).mod(s);return o.multiply(a).add(n.multiply(c)).getX().toBigInteger().mod(s).equals(e)},this.serializeSig=function(t,e){var i=t.toByteArraySigned(),n=e.toByteArraySigned(),s=[];return s.push(2),s.push(i.length),(s=s.concat(i)).push(2),s.push(n.length),(s=s.concat(n)).unshift(s.length),s.unshift(48),s},this.parseSig=function(t){var e;if(48!=t[0])throw new Error("Signature not a valid DERSequence");if(2!=t[e=2])throw new Error("First element in signature must be a DERInteger");var i=t.slice(e+2,e+2+t[e+1]);if(2!=t[e+=2+t[e+1]])throw new Error("Second element in signature must be a DERInteger");var n=t.slice(e+2,e+2+t[e+1]);return e+=2+t[e+1],{r:T.fromByteArrayUnsigned(i),s:T.fromByteArrayUnsigned(n)}},this.parseSigCompact=function(t){if(65!==t.length)throw"Signature has the wrong length";var e=t[0]-27;if(e<0||e>7)throw"Invalid signature type";var i=this.ecparams.n;return{r:T.fromByteArrayUnsigned(t.slice(1,33)).mod(i),s:T.fromByteArrayUnsigned(t.slice(33,65)).mod(i),i:e}},this.readPKCS5PrvKeyHex=function(t){var e,i,n,s=ut.crypto.ECDSA.getName,o=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=o(t,0,[2,0],"06"),i=o(t,0,[1],"04");try{n=o(t,0,[3,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=s(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(t){var e,i,n,s=ut.crypto.ECDSA.getName,o=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{o(t,0,[1,0],"06"),e=o(t,0,[1,1],"06"),i=o(t,0,[2,0,1],"04");try{n=o(t,0,[2,0,2,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=s(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PubKeyHex=function(t){var e,i,n=ut.crypto.ECDSA.getName,s=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{s(t,0,[0,0],"06"),e=s(t,0,[0,1],"06"),i=s(t,0,[1],"03").substr(2)}catch(t){throw"malformed PKCS#8 ECC public key"}if(this.curveName=n(e),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},this.readCertPubKeyHex=function(t,e){5!==e&&(e=6);var i,n,s=ut.crypto.ECDSA.getName,o=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{i=o(t,0,[0,e,0,1],"06"),n=o(t,0,[0,e,1],"03").substr(2)}catch(t){throw"malformed X.509 certificate ECC public key"}if(this.curveName=s(i),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},void 0!==t&&void 0!==t.curve&&(this.curveName=t.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==t&&(void 0!==t.prv&&this.setPrivateKeyHex(t.prv),void 0!==t.pub&&this.setPublicKeyHex(t.pub))},ut.crypto.ECDSA.parseSigHex=function(t){var e=ut.crypto.ECDSA.parseSigHexInHexRS(t);return{r:new T(e.r,16),s:new T(e.s,16)}},ut.crypto.ECDSA.parseSigHexInHexRS=function(t){var e=dt.getChildIdx,i=dt.getV;if("30"!=t.substr(0,2))throw"signature is not a ASN.1 sequence";var n=e(t,0);if(2!=n.length)throw"number of signature ASN.1 sequence elements seem wrong";var s=n[0],o=n[1];if("02"!=t.substr(s,2))throw"1st item of sequene of signature is not ASN.1 integer";if("02"!=t.substr(o,2))throw"2nd item of sequene of signature is not ASN.1 integer";return{r:i(t,s),s:i(t,o)}},ut.crypto.ECDSA.asn1SigToConcatSig=function(t){var e=ut.crypto.ECDSA.parseSigHexInHexRS(t),i=e.r,n=e.s;if("00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),"00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),i.length%32==30&&(i="00"+i),n.length%32==30&&(n="00"+n),i.length%32!=0)throw"unknown ECDSA sig r length error";if(n.length%32!=0)throw"unknown ECDSA sig s length error";return i+n},ut.crypto.ECDSA.concatSigToASN1Sig=function(t){if(t.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var e=t.substr(0,t.length/2),i=t.substr(t.length/2);return ut.crypto.ECDSA.hexRSSigToASN1Sig(e,i)},ut.crypto.ECDSA.hexRSSigToASN1Sig=function(t,e){var i=new T(t,16),n=new T(e,16);return ut.crypto.ECDSA.biRSSigToASN1Sig(i,n)},ut.crypto.ECDSA.biRSSigToASN1Sig=function(t,e){var i=ut.asn1,n=new i.DERInteger({bigint:t}),s=new i.DERInteger({bigint:e});return new i.DERSequence({array:[n,s]}).getEncodedHex()},ut.crypto.ECDSA.getName=function(t){return"2a8648ce3d030107"===t?"secp256r1":"2b8104000a"===t?"secp256k1":"2b81040022"===t?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(t)?"secp256r1":-1!=="|secp256k1|".indexOf(t)?"secp256k1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(t)?"secp384r1":null},void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.crypto&&ut.crypto||(ut.crypto={}),ut.crypto.ECParameterDB=new function(){var t={},e={};function i(t){return new T(t,16)}this.getByName=function(i){var n=i;if(void 0!==e[n]&&(n=e[i]),void 0!==t[n])return t[n];throw"unregistered EC curve name: "+n},this.regist=function(n,s,o,r,a,c,u,l,h,d,p,g){t[n]={};var f=i(o),m=i(r),b=i(a),w=i(c),_=i(u),y=new at(f,m,b),A=y.decodePointHex("04"+l+h);t[n].name=n,t[n].keylen=s,t[n].curve=y,t[n].G=A,t[n].n=w,t[n].h=_,t[n].oid=p,t[n].info=g;for(var v=0;v=2*a)break}var h={};return h.keyhex=c.substr(0,2*s[t].keylen),h.ivhex=c.substr(2*s[t].keylen,2*s[t].ivlen),h},a=function(t,e,i,n){var o=b.enc.Base64.parse(t),r=b.enc.Hex.stringify(o);return(0,s[e].proc)(r,i,n)};return{version:"1.0.0",parsePKCS5PEM:function(t){return o(t)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(t,e,i){return r(t,e,i)},decryptKeyB64:function(t,e,i,n){return a(t,e,i,n)},getDecryptedKeyHex:function(t,e){var i=o(t),n=i.cipher,s=i.ivsalt,c=i.data,u=r(n,e,s).keyhex;return a(c,n,u,s)},getEncryptedPKCS5PEMFromPrvKeyHex:function(t,e,i,n,o){var a="";if(void 0!==n&&null!=n||(n="AES-256-CBC"),void 0===s[n])throw"KEYUTIL unsupported algorithm: "+n;return void 0!==o&&null!=o||(o=function(t){var e=b.lib.WordArray.random(t);return b.enc.Hex.stringify(e)}(s[n].ivlen).toUpperCase()),a="-----BEGIN "+t+" PRIVATE KEY-----\r\n",a+="Proc-Type: 4,ENCRYPTED\r\n",a+="DEK-Info: "+n+","+o+"\r\n",a+="\r\n",(a+=function(t,e,i,n){return(0,s[e].eproc)(t,i,n)}(e,n,r(n,i,o).keyhex,o).replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+t+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(e){var i=dt.getChildIdx,n=dt.getV,s={},o=i(e,0);if(2!=o.length)throw"malformed format: SEQUENCE(0).items != 2: "+o.length;s.ciphertext=n(e,o[1]);var r=i(e,o[0]);if(2!=r.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+r.length;if("2a864886f70d01050d"!=n(e,r[0]))throw"this only supports pkcs5PBES2";var a=i(e,r[1]);if(2!=r.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+a.length;var c=i(e,a[1]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+c.length;if("2a864886f70d0307"!=n(e,c[0]))throw"this only supports TripleDES";s.encryptionSchemeAlg="TripleDES",s.encryptionSchemeIV=n(e,c[1]);var u=i(e,a[0]);if(2!=u.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+u.length;if("2a864886f70d01050c"!=n(e,u[0]))throw"this only supports pkcs5PBKDF2";var l=i(e,u[1]);if(l.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+l.length;s.pbkdf2Salt=n(e,l[0]);var h=n(e,l[1]);try{s.pbkdf2Iter=parseInt(h,16)}catch(t){throw"malformed format pbkdf2Iter: "+h}return s},getPBKDF2KeyHexFromParam:function(t,e){var i=b.enc.Hex.parse(t.pbkdf2Salt),n=b.PBKDF2(e,i,{keySize:6,iterations:t.pbkdf2Iter});return b.enc.Hex.stringify(n)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(t,e){var i=Rt(t,"ENCRYPTED PRIVATE KEY"),n=this.parseHexOfEncryptedPKCS8(i),s=Zt.getPBKDF2KeyHexFromParam(n,e),o={};o.ciphertext=b.enc.Hex.parse(n.ciphertext);var r=b.enc.Hex.parse(s),a=b.enc.Hex.parse(n.encryptionSchemeIV),c=b.TripleDES.decrypt(o,r,{iv:a});return b.enc.Hex.stringify(c)},getKeyFromEncryptedPKCS8PEM:function(t,e){var i=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(t,e);return this.getKeyFromPlainPrivatePKCS8Hex(i)},parsePlainPrivatePKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,s={algparam:null};if("30"!=t.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var o=i(t,0);if(3!=o.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=t.substr(o[1],2))throw"malformed PKCS8 private key(code:003)";var r=i(t,o[1]);if(2!=r.length)throw"malformed PKCS8 private key(code:004)";if("06"!=t.substr(r[0],2))throw"malformed PKCS8 private key(code:005)";if(s.algoid=n(t,r[0]),"06"==t.substr(r[1],2)&&(s.algparam=n(t,r[1])),"04"!=t.substr(o[2],2))throw"malformed PKCS8 private key(code:006)";return s.keyidx=e.getVidx(t,o[2]),s},getKeyFromPlainPrivatePKCS8PEM:function(t){var e=Rt(t,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(e)},getKeyFromPlainPrivatePKCS8Hex:function(t){var e,i=this.parsePlainPrivatePKCS8Hex(t);if("2a864886f70d010101"==i.algoid)e=new st;else if("2a8648ce380401"==i.algoid)e=new ut.crypto.DSA;else{if("2a8648ce3d0201"!=i.algoid)throw"unsupported private key algorithm";e=new ut.crypto.ECDSA}return e.readPKCS8PrvKeyHex(t),e},_getKeyFromPublicPKCS8Hex:function(t){var e,i=dt.getVbyList(t,0,[0,0],"06");if("2a864886f70d010101"===i)e=new st;else if("2a8648ce380401"===i)e=new ut.crypto.DSA;else{if("2a8648ce3d0201"!==i)throw"unsupported PKCS#8 public key hex";e=new ut.crypto.ECDSA}return e.readPKCS8PubKeyHex(t),e},parsePublicRawRSAKeyHex:function(t){var e=dt.getChildIdx,i=dt.getV,n={};if("30"!=t.substr(0,2))throw"malformed RSA key(code:001)";var s=e(t,0);if(2!=s.length)throw"malformed RSA key(code:002)";if("02"!=t.substr(s[0],2))throw"malformed RSA key(code:003)";if(n.n=i(t,s[0]),"02"!=t.substr(s[1],2))throw"malformed RSA key(code:004)";return n.e=i(t,s[1]),n},parsePublicPKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,s={algparam:null},o=i(t,0);if(2!=o.length)throw"outer DERSequence shall have 2 elements: "+o.length;var r=o[0];if("30"!=t.substr(r,2))throw"malformed PKCS8 public key(code:001)";var a=i(t,r);if(2!=a.length)throw"malformed PKCS8 public key(code:002)";if("06"!=t.substr(a[0],2))throw"malformed PKCS8 public key(code:003)";if(s.algoid=n(t,a[0]),"06"==t.substr(a[1],2)?s.algparam=n(t,a[1]):"30"==t.substr(a[1],2)&&(s.algparam={},s.algparam.p=e.getVbyList(t,a[1],[0],"02"),s.algparam.q=e.getVbyList(t,a[1],[1],"02"),s.algparam.g=e.getVbyList(t,a[1],[2],"02")),"03"!=t.substr(o[1],2))throw"malformed PKCS8 public key(code:004)";return s.key=n(t,o[1]).substr(2),s}}}();Zt.getKey=function(t,e,i){var n,s=(b=dt).getChildIdx,o=b.getVbyList,r=ut.crypto,a=r.ECDSA,c=r.DSA,u=st,l=Rt,h=Zt;if(void 0!==u&&t instanceof u)return t;if(void 0!==a&&t instanceof a)return t;if(void 0!==c&&t instanceof c)return t;if(void 0!==t.curve&&void 0!==t.xy&&void 0===t.d)return new a({pub:t.xy,curve:t.curve});if(void 0!==t.curve&&void 0!==t.d)return new a({prv:t.d,curve:t.curve});if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(R=new u).setPublic(t.n,t.e),R;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.co&&void 0===t.qi)return(R=new u).setPrivateEx(t.n,t.e,t.d,t.p,t.q,t.dp,t.dq,t.co),R;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0===t.p)return(R=new u).setPrivate(t.n,t.e,t.d),R;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0===t.x)return(R=new c).setPublic(t.p,t.q,t.g,t.y),R;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0!==t.x)return(R=new c).setPrivate(t.p,t.q,t.g,t.y,t.x),R;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(R=new u).setPublic(yt(t.n),yt(t.e)),R;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.qi)return(R=new u).setPrivateEx(yt(t.n),yt(t.e),yt(t.d),yt(t.p),yt(t.q),yt(t.dp),yt(t.dq),yt(t.qi)),R;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d)return(R=new u).setPrivate(yt(t.n),yt(t.e),yt(t.d)),R;if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0===t.d){var d=(x=new a({curve:t.crv})).ecparams.keylen/4,p="04"+("0000000000"+yt(t.x)).slice(-d)+("0000000000"+yt(t.y)).slice(-d);return x.setPublicKeyHex(p),x}if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0!==t.d){d=(x=new a({curve:t.crv})).ecparams.keylen/4,p="04"+("0000000000"+yt(t.x)).slice(-d)+("0000000000"+yt(t.y)).slice(-d);var g=("0000000000"+yt(t.d)).slice(-d);return x.setPublicKeyHex(p),x.setPrivateKeyHex(g),x}if("pkcs5prv"===i){var f,m=t,b=dt;if(9===(f=s(m,0)).length)(R=new u).readPKCS5PrvKeyHex(m);else if(6===f.length)(R=new c).readPKCS5PrvKeyHex(m);else{if(!(f.length>2&&"04"===m.substr(f[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(R=new a).readPKCS5PrvKeyHex(m)}return R}if("pkcs8prv"===i)return h.getKeyFromPlainPrivatePKCS8Hex(t);if("pkcs8pub"===i)return h._getKeyFromPublicPKCS8Hex(t);if("x509pub"===i)return jt.getPublicKeyFromCertHex(t);if(-1!=t.indexOf("-END CERTIFICATE-",0)||-1!=t.indexOf("-END X509 CERTIFICATE-",0)||-1!=t.indexOf("-END TRUSTED CERTIFICATE-",0))return jt.getPublicKeyFromCertPEM(t);if(-1!=t.indexOf("-END PUBLIC KEY-")){var w=Rt(t,"PUBLIC KEY");return h._getKeyFromPublicPKCS8Hex(w)}if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var _=l(t,"RSA PRIVATE KEY");return h.getKey(_,null,"pkcs5prv")}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var y=o(n=l(t,"DSA PRIVATE KEY"),0,[1],"02"),A=o(n,0,[2],"02"),v=o(n,0,[3],"02"),C=o(n,0,[4],"02"),S=o(n,0,[5],"02");return(R=new c).setPrivate(new T(y,16),new T(A,16),new T(v,16),new T(C,16),new T(S,16)),R}if(-1!=t.indexOf("-END PRIVATE KEY-"))return h.getKeyFromPlainPrivatePKCS8PEM(t);if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var E=h.getDecryptedKeyHex(t,e),k=new st;return k.readPKCS5PrvKeyHex(E),k}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var x,R=o(n=h.getDecryptedKeyHex(t,e),0,[1],"04"),I=o(n,0,[2,0],"06"),O=o(n,0,[3,0],"03").substr(2);if(void 0===ut.crypto.OID.oidhex2name[I])throw"undefined OID(hex) in KJUR.crypto.OID: "+I;return(x=new a({curve:ut.crypto.OID.oidhex2name[I]})).setPublicKeyHex(O),x.setPrivateKeyHex(R),x.isPublic=!1,x}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED"))return y=o(n=h.getDecryptedKeyHex(t,e),0,[1],"02"),A=o(n,0,[2],"02"),v=o(n,0,[3],"02"),C=o(n,0,[4],"02"),S=o(n,0,[5],"02"),(R=new c).setPrivate(new T(y,16),new T(A,16),new T(v,16),new T(C,16),new T(S,16)),R;if(-1!=t.indexOf("-END ENCRYPTED PRIVATE KEY-"))return h.getKeyFromEncryptedPKCS8PEM(t,e);throw"not supported argument"},Zt.generateKeypair=function(t,e){if("RSA"==t){var i=e;(r=new st).generate(i,"10001"),r.isPrivate=!0,r.isPublic=!0;var n=new st,s=r.n.toString(16),o=r.e.toString(16);return n.setPublic(s,o),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=r,a.pubKeyObj=n,a}if("EC"==t){var r,a,c=e,u=new ut.crypto.ECDSA({curve:c}).generateKeyPairHex();return(r=new ut.crypto.ECDSA({curve:c})).setPublicKeyHex(u.ecpubhex),r.setPrivateKeyHex(u.ecprvhex),r.isPrivate=!0,r.isPublic=!1,(n=new ut.crypto.ECDSA({curve:c})).setPublicKeyHex(u.ecpubhex),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=r,a.pubKeyObj=n,a}throw"unknown algorithm: "+t},Zt.getPEM=function(t,e,i,n,s,o){var r=ut.asn1,a=r.DERObjectIdentifier,c=r.DERInteger,u=r.ASN1Util.newObject,l=ut.crypto,h=l.DSA,d=l.ECDSA,p=st;function g(t){return u({seq:[{int:0},{int:{bigint:t.n}},{int:t.e},{int:{bigint:t.d}},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.dmp1}},{int:{bigint:t.dmq1}},{int:{bigint:t.coeff}}]})}function f(t){return u({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a0",!0,{oid:{name:t.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]})}function m(t){return u({seq:[{int:0},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}},{int:{bigint:t.y}},{int:{bigint:t.x}}]})}if((void 0!==p&&t instanceof p||void 0!==h&&t instanceof h||void 0!==d&&t instanceof d)&&1==t.isPublic&&(void 0===e||"PKCS8PUB"==e))return xt(A=new(0,r.x509.SubjectPublicKeyInfo)(t).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==e&&void 0!==p&&t instanceof p&&(void 0===i||null==i)&&1==t.isPrivate)return xt(A=g(t).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==e&&void 0!==d&&t instanceof d&&(void 0===i||null==i)&&1==t.isPrivate){var w=new a({name:t.curveName}).getEncodedHex(),_=f(t).getEncodedHex(),y="";return(y+=xt(w,"EC PARAMETERS"))+xt(_,"EC PRIVATE KEY")}if("PKCS1PRV"==e&&void 0!==h&&t instanceof h&&(void 0===i||null==i)&&1==t.isPrivate)return xt(A=m(t).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==e&&void 0!==p&&t instanceof p&&void 0!==i&&null!=i&&1==t.isPrivate){var A=g(t).getEncodedHex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",A,i,n,o)}if("PKCS5PRV"==e&&void 0!==d&&t instanceof d&&void 0!==i&&null!=i&&1==t.isPrivate)return A=f(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",A,i,n,o);if("PKCS5PRV"==e&&void 0!==h&&t instanceof h&&void 0!==i&&null!=i&&1==t.isPrivate)return A=m(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",A,i,n,o);var v=function(t,e){var i=T(t,e);return new u({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:i.pbkdf2Salt}},{int:i.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:i.encryptionSchemeIV}}]}]}]},{octstr:{hex:i.ciphertext}}]}).getEncodedHex()},T=function(t,e){var i=b.lib.WordArray.random(8),n=b.lib.WordArray.random(8),s=b.PBKDF2(e,i,{keySize:6,iterations:100}),o=b.enc.Hex.parse(t),r=b.TripleDES.encrypt(o,s,{iv:n})+"",a={};return a.ciphertext=r,a.pbkdf2Salt=b.enc.Hex.stringify(i),a.pbkdf2Iter=100,a.encryptionSchemeAlg="DES-EDE3-CBC",a.encryptionSchemeIV=b.enc.Hex.stringify(n),a};if("PKCS8PRV"==e&&null!=p&&t instanceof p&&1==t.isPrivate){var C=g(t).getEncodedHex();return A=u({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===i||null==i?xt(A,"PRIVATE KEY"):xt(_=v(A,i),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==e&&void 0!==d&&t instanceof d&&1==t.isPrivate)return C=new u({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]}).getEncodedHex(),A=u({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:t.curveName}}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===i||null==i?xt(A,"PRIVATE KEY"):xt(_=v(A,i),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==e&&void 0!==h&&t instanceof h&&1==t.isPrivate)return C=new c({bigint:t.x}).getEncodedHex(),A=u({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}}]}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===i||null==i?xt(A,"PRIVATE KEY"):xt(_=v(A,i),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},Zt.getKeyFromCSRPEM=function(t){var e=Rt(t,"CERTIFICATE REQUEST");return Zt.getKeyFromCSRHex(e)},Zt.getKeyFromCSRHex=function(t){var e=Zt.parseCSRHex(t);return Zt.getKey(e.p8pubkeyhex,null,"pkcs8pub")},Zt.parseCSRHex=function(t){var e=dt.getChildIdx,i=dt.getTLV,n={},s=t;if("30"!=s.substr(0,2))throw"malformed CSR(code:001)";var o=e(s,0);if(o.length<1)throw"malformed CSR(code:002)";if("30"!=s.substr(o[0],2))throw"malformed CSR(code:003)";var r=e(s,o[0]);if(r.length<3)throw"malformed CSR(code:004)";return n.p8pubkeyhex=i(s,r[2]),n},Zt.getJWKFromKey=function(t){var e={};if(t instanceof st&&t.isPrivate)return e.kty="RSA",e.n=_t(t.n.toString(16)),e.e=_t(t.e.toString(16)),e.d=_t(t.d.toString(16)),e.p=_t(t.p.toString(16)),e.q=_t(t.q.toString(16)),e.dp=_t(t.dmp1.toString(16)),e.dq=_t(t.dmq1.toString(16)),e.qi=_t(t.coeff.toString(16)),e;if(t instanceof st&&t.isPublic)return e.kty="RSA",e.n=_t(t.n.toString(16)),e.e=_t(t.e.toString(16)),e;if(t instanceof ut.crypto.ECDSA&&t.isPrivate){if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;var i=t.getPublicKeyXYHex();return e.kty="EC",e.crv=n,e.x=_t(i.x),e.y=_t(i.y),e.d=_t(t.prvKeyHex),e}if(t instanceof ut.crypto.ECDSA&&t.isPublic){var n;if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;return i=t.getPublicKeyXYHex(),e.kty="EC",e.crv=n,e.x=_t(i.x),e.y=_t(i.y),e}throw"not supported key object"},st.getPosArrayOfChildrenFromHex=function(t){return dt.getChildIdx(t,0)},st.getHexValueArrayOfChildrenFromHex=function(t){var e,i=dt.getV,n=i(t,(e=st.getPosArrayOfChildrenFromHex(t))[0]),s=i(t,e[1]),o=i(t,e[2]),r=i(t,e[3]),a=i(t,e[4]),c=i(t,e[5]),u=i(t,e[6]),l=i(t,e[7]),h=i(t,e[8]);return(e=new Array).push(n,s,o,r,a,c,u,l,h),e},st.prototype.readPrivateKeyFromPEMString=function(t){var e=Rt(t),i=st.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8])},st.prototype.readPKCS5PrvKeyHex=function(t){var e=st.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},st.prototype.readPKCS8PrvKeyHex=function(t){var e,i,n,s,o,r,a,c,u=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=u(t,0,[2,0,1],"02"),i=u(t,0,[2,0,2],"02"),n=u(t,0,[2,0,3],"02"),s=u(t,0,[2,0,4],"02"),o=u(t,0,[2,0,5],"02"),r=u(t,0,[2,0,6],"02"),a=u(t,0,[2,0,7],"02"),c=u(t,0,[2,0,8],"02")}catch(t){throw"malformed PKCS#8 plain RSA private key"}this.setPrivateEx(e,i,n,s,o,r,a,c)},st.prototype.readPKCS5PubKeyHex=function(t){var e=dt,i=e.getV;if(!1===e.isASN1HEX(t))throw"keyHex is not ASN.1 hex string";var n=e.getChildIdx(t,0);if(2!==n.length||"02"!==t.substr(n[0],2)||"02"!==t.substr(n[1],2))throw"wrong hex for PKCS#5 public key";var s=i(t,n[0]),o=i(t,n[1]);this.setPublic(s,o)},st.prototype.readPKCS8PubKeyHex=function(t){var e=dt;if(!1===e.isASN1HEX(t))throw"not ASN.1 hex string";if("06092a864886f70d010101"!==e.getTLVbyList(t,0,[0,0]))throw"not PKCS8 RSA public key";var i=e.getTLVbyList(t,0,[1,0]);this.readPKCS5PubKeyHex(i)},st.prototype.readCertPubKeyHex=function(t,e){var i,n;(i=new jt).readCertHex(t),n=i.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)};var Bt=new RegExp("");function qt(t,e){for(var i="",n=e/4-t.length,s=0;s>24,(16711680&s)>>16,(65280&s)>>8,255&s])))),s+=1;return n}function Ht(t){for(var e in ut.crypto.Util.DIGESTINFOHEAD){var i=ut.crypto.Util.DIGESTINFOHEAD[e],n=i.length;if(t.substring(0,n)==i)return[e,t.substring(n)]}return[]}function jt(){var t=dt,e=t.getChildIdx,i=t.getV,n=t.getTLV,s=t.getVbyList,o=t.getTLVbyList,r=t.getIdxbyList,a=t.getVidx,c=t.oidname,u=jt,l=Rt;this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==o(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return s(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){return c(s(this.hex,0,[0,2+this.foffset,0],"06"))},this.getIssuerHex=function(){return o(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return u.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return o(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return u.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var t=s(this.hex,0,[0,4+this.foffset,0]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getNotAfter=function(){var t=s(this.hex,0,[0,4+this.foffset,1]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getPublicKeyHex=function(){return t.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return r(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var t=this.getPublicKeyIdx();return r(this.hex,t,[1,0],"30")},this.getPublicKey=function(){return Zt.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return c(s(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return s(this.hex,0,[2],"03",!0)},this.verifySignature=function(t){var e=this.getSignatureAlgorithmName(),i=this.getSignatureValueHex(),n=o(this.hex,0,[0],"30"),s=new ut.crypto.Signature({alg:e});return s.init(t),s.updateHex(n),s.verify(i)},this.parseExt=function(){if(3!==this.version)return-1;var i=r(this.hex,0,[0,7,0],"30"),n=e(this.hex,i);this.aExtInfo=new Array;for(var o=0;o0&&(u=new Array(i),(new et).nextBytes(u),u=String.fromCharCode.apply(String,u));var l=Tt(c(Ct("\0\0\0\0\0\0\0\0"+s+u))),h=[];for(n=0;n>8*a-r&255),n=0;nthis.n.bitLength())return 0;var n=Ht(this.doPublic(i).toString(16).replace(/^1f+00/,""));if(0==n.length)return!1;var s=n[0];return n[1]==function(t){return ut.crypto.Util.hashString(t,s)}(t)},st.prototype.verifyWithMessageHash=function(t,e){var i=it(e=(e=e.replace(Bt,"")).replace(/[ \n]+/g,""),16);if(i.bitLength()>this.n.bitLength())return 0;var n=Ht(this.doPublic(i).toString(16).replace(/^1f+00/,""));return 0!=n.length&&n[1]==t},st.prototype.verifyPSS=function(t,e,i,n){var s=function(t){return ut.crypto.Util.hashHex(t,i)}(Ct(t));return void 0===n&&(n=-1),this.verifyWithMessageHashPSS(s,e,i,n)},st.prototype.verifyWithMessageHashPSS=function(t,e,i,n){var s=new T(e,16);if(s.bitLength()>this.n.bitLength())return!1;var o,r=function(t){return ut.crypto.Util.hashHex(t,i)},a=Tt(t),c=a.length,u=this.n.bitLength()-1,l=Math.ceil(u/8);if(-1===n||void 0===n)n=c;else if(-2===n)n=l-c-2;else if(n<-2)throw"invalid salt length";if(l>8*l-u&255;if(0!=(d.charCodeAt(0)&g))throw"bits beyond keysize not zero";var f=Ut(p,d.length,r),m=[];for(o=0;o0&&-1==(":"+n.join(":")+":").indexOf(":"+m+":"))throw"algorithm '"+m+"' not accepted in the list";if("none"!=m&&null===e)throw"key shall be specified to verify.";if("string"==typeof e&&-1!=e.indexOf("-----BEGIN ")&&(e=Zt.getKey(e)),!("RS"!=d&&"PS"!=d||e instanceof s))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==d&&!(e instanceof c))throw"key shall be a ECDSA obj for ES* algs";var b=null;if(void 0===o.jwsalg2sigalg[f.alg])throw"unsupported alg name: "+m;if("none"==(b=o.jwsalg2sigalg[m]))throw"not supported";if("Hmac"==b.substr(0,4)){if(void 0===e)throw"hexadecimal key shall be specified for HMAC";var w=new u({alg:b,pass:e});return w.updateString(p),g==w.doFinal()}if(-1!=b.indexOf("withECDSA")){var _,y=null;try{y=c.concatSigToASN1Sig(g)}catch(t){return!1}return(_=new l({alg:b})).init(e),_.updateString(p),_.verify(y)}return(_=new l({alg:b})).init(e),_.updateString(p),_.verify(g)},ut.jws.JWS.parse=function(t){var e,i,n=t.split("."),s={};if(2!=n.length&&3!=n.length)throw"malformed sJWS: wrong number of '.' splitted elements";return e=n[1],3==n.length&&(i=n[2]),s.headerObj=ut.jws.JWS.readSafeJSONString(ht(n[0])),s.payloadObj=ut.jws.JWS.readSafeJSONString(ht(e)),s.headerPP=JSON.stringify(s.headerObj,null," "),s.payloadPP=null==s.payloadObj?ht(e):JSON.stringify(s.payloadObj,null," "),void 0!==i&&(s.sigHex=yt(i)),s},ut.jws.JWS.verifyJWT=function(t,e,n){var s=ut.jws,o=s.JWS,r=o.readSafeJSONString,a=o.inArray,c=o.includedArray,u=t.split("."),l=u[0],h=u[1],d=(yt(u[2]),r(ht(l))),p=r(ht(h));if(void 0===d.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!a(d.alg,n.alg))return!1;if(void 0!==p.iss&&"object"===i(n.iss)&&!a(p.iss,n.iss))return!1;if(void 0!==p.sub&&"object"===i(n.sub)&&!a(p.sub,n.sub))return!1;if(void 0!==p.aud&&"object"===i(n.aud))if("string"==typeof p.aud){if(!a(p.aud,n.aud))return!1}else if("object"==i(p.aud)&&!c(p.aud,n.aud))return!1;var g=s.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(g=n.verifyAt),void 0!==n.gracePeriod&&"number"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==p.exp&&"number"==typeof p.exp&&p.exp+n.gracePeriode.length&&(i=e.length);for(var n=0;n=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function g(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return q(t).length;default:if(n)return B(t).length;e=(""+e).toLowerCase(),n=!0}}function f(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function m(t,e,i,n,s){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=s?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(s)return-1;i=t.length-1}else if(i<0){if(!s)return-1;i=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:b(t,e,i,n,s);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):b(t,[e],i,n,s);throw new TypeError("val must be string, number or Buffer")}function b(t,e,i,n,s){var o,r=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;r=2,a/=2,c/=2,i/=2}function u(t,e){return 1===r?t[e]:t.readUInt16BE(e*r)}if(s){var l=-1;for(o=i;oa&&(i=a-c),o=i;o>=0;o--){for(var h=!0,d=0;ds&&(n=s):n=s;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var r=0;r>8,s.push(i%256),s.push(n);return s}(e,t.length-i),t,i,n)}function C(t,e,i){return n.fromByteArray(0===e&&i===t.length?t:t.slice(e,i))}function S(t,e,i){i=Math.min(t.length,i);for(var n=[],s=e;s239?4:u>223?3:u>191?2:1;if(s+h<=i)switch(h){case 1:u<128&&(l=u);break;case 2:128==(192&(o=t[s+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:r=t[s+2],128==(192&(o=t[s+1]))&&128==(192&r)&&(c=(15&u)<<12|(63&o)<<6|63&r)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:r=t[s+2],a=t[s+3],128==(192&(o=t[s+1]))&&128==(192&r)&&128==(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&r)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(n.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),n.push(l),s+=h}return function(t){var e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);for(var i="",n=0;nthis.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,i);case"utf8":case"utf-8":return S(this,e,i);case"ascii":return k(this,e,i);case"latin1":case"binary":return x(this,e,i);case"base64":return C(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}).apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),""},c.prototype.compare=function(t,e,i,n,s){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),e<0||i>t.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&e>=i)return 0;if(n>=s)return-1;if(e>=i)return 1;if(this===t)return 0;for(var o=(s>>>=0)-(n>>>=0),r=(i>>>=0)-(e>>>=0),a=Math.min(o,r),u=this.slice(n,s),l=t.slice(e,i),h=0;hs)&&(i=s),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,t,e,i);case"utf8":case"utf-8":return _(this,t,e,i);case"ascii":return y(this,t,e,i);case"latin1":case"binary":return A(this,t,e,i);case"base64":return v(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function k(t,e,i){var n="";i=Math.min(t.length,i);for(var s=e;sn)&&(i=n);for(var s="",o=e;oi)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,i,n,s,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||et.length)throw new RangeError("Index out of range")}function D(t,e,i,n){e<0&&(e=65535+e+1);for(var s=0,o=Math.min(t.length-i,2);s>>8*(n?s:1-s)}function M(t,e,i,n){e<0&&(e=4294967295+e+1);for(var s=0,o=Math.min(t.length-i,4);s>>8*(n?s:3-s)&255}function L(t,e,i,n,s,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function N(t,e,i,n,o){return o||L(t,0,i,4),s.write(t,e,i,n,23,4),i+4}function z(t,e,i,n,o){return o||L(t,0,i,8),s.write(t,e,i,n,52,8),i+8}c.prototype.slice=function(t,e){var i,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(s*=256);)n+=this[t+--e]*s;return n},c.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||O(t,e,this.length);for(var n=this[t],s=1,o=0;++o=(s*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||O(t,e,this.length);for(var n=e,s=1,o=this[t+--n];n>0&&(s*=256);)o+=this[t+--n]*s;return o>=(s*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),s.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),s.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),s.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),s.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,i,n){t=+t,e|=0,i|=0,n||P(this,t,e,i,Math.pow(2,8*i)-1,0);var s=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+s]=t/o&255;return e+i},c.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):M(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*i-1);P(this,t,e,i,s-1,-s)}var o=0,r=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+i},c.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*i-1);P(this,t,e,i,s-1,-s)}var o=i-1,r=1,a=0;for(this[e+o]=255&t;--o>=0&&(r*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/r>>0)-a&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):M(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,i){return N(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return N(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return z(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return z(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--s)t[s+e]=this[s+i];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(s=0;s>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&i<57344){if(!s){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(r+1===n){(e-=3)>-1&&o.push(239,191,189);continue}s=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),s=i;continue}i=65536+(s-55296<<10|i-56320)}else s&&(e-=3)>-1&&o.push(239,191,189);if(s=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function q(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,i,n){for(var s=0;s=e.length||s>=t.length);++s)e[s+i]=t[s];return s}}).call(this,i(28))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";e.byteLength=function(t){var e=u(t),i=e[1];return 3*(e[0]+i)/4-i},e.toByteArray=function(t){for(var e,i=u(t),n=i[0],r=i[1],a=new o(function(t,e,i){return 3*(e+i)/4-i}(0,n,r)),c=0,l=r>0?n-4:n,h=0;h>16&255,a[c++]=e>>8&255,a[c++]=255&e;return 2===r&&(e=s[t.charCodeAt(h)]<<2|s[t.charCodeAt(h+1)]>>4,a[c++]=255&e),1===r&&(e=s[t.charCodeAt(h)]<<10|s[t.charCodeAt(h+1)]<<4|s[t.charCodeAt(h+2)]>>2,a[c++]=e>>8&255,a[c++]=255&e),a},e.fromByteArray=function(t){for(var e,i=t.length,s=i%3,o=[],r=0,a=i-s;ra?a:r+16383));return 1===s?o.push(n[(e=t[i-1])>>2]+n[e<<4&63]+"=="):2===s&&o.push(n[(e=(t[i-2]<<8)+t[i-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),o.join("")};for(var n=[],s=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=r.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function l(t,e,i){for(var s,o=[],r=e;r>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return o.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,i,n,s){var o,r,a=8*s-n-1,c=(1<>1,l=-7,h=i?s-1:0,d=i?-1:1,p=t[e+h];for(h+=d,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+h],h+=d,l-=8);for(r=o&(1<<-l)-1,o>>=-l,l+=n;l>0;r=256*r+t[e+h],h+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return r?NaN:1/0*(p?-1:1);r+=Math.pow(2,n),o-=u}return(p?-1:1)*r*Math.pow(2,o-n)},e.write=function(t,e,i,n,s,o){var r,a,c,u=8*o-s-1,l=(1<>1,d=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,g=n?1:-1,f=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,r=l):(r=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-r))<1&&(r--,c*=2),(e+=r+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(r++,c/=2),r+h>=l?(a=0,r=l):r+h>=1?(a=(e*c-1)*Math.pow(2,s),r+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,s),r=0));s>=8;t[i+p]=255&a,p+=g,a/=256,s-=8);for(r=r<0;t[i+p]=255&r,p+=g,r/=256,u-=8);t[i+p-g]|=128*f}},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.jws,i=t.KeyUtil,s=t.X509,o=t.crypto,r=t.hextob64u,a=t.b64tohex,c=t.AllowedSigningAlgs;return function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.parseJwt=function t(i){n.Log.debug("JoseUtil.parseJwt");try{var s=e.JWS.parse(i);return{header:s.headerObj,payload:s.payloadObj}}catch(t){n.Log.error(t)}},t.validateJwt=function(e,o,r,c,u,l,h){n.Log.debug("JoseUtil.validateJwt");try{if("RSA"===o.kty)if(o.e&&o.n)o=i.getKey(o);else{if(!o.x5c||!o.x5c.length)return n.Log.error("JoseUtil.validateJwt: RSA key missing key material",o),Promise.reject(new Error("RSA key missing key material"));var d=a(o.x5c[0]);o=s.getPublicKeyFromCertHex(d)}else{if("EC"!==o.kty)return n.Log.error("JoseUtil.validateJwt: Unsupported key type",o&&o.kty),Promise.reject(new Error(o.kty));if(!(o.crv&&o.x&&o.y))return n.Log.error("JoseUtil.validateJwt: EC key missing key material",o),Promise.reject(new Error("EC key missing key material"));o=i.getKey(o)}return t._validateJwt(e,o,r,c,u,l,h)}catch(t){return n.Log.error(t&&t.message||t),Promise.reject("JWT validation failed")}},t.validateJwtAttributes=function(e,i,s,o,r,a){o||(o=0),r||(r=parseInt(Date.now()/1e3));var c=t.parseJwt(e).payload;if(!c.iss)return n.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(c.iss!==i)return n.Log.error("JoseUtil._validateJwt: Invalid issuer in token",c.iss),Promise.reject(new Error("Invalid issuer in token: "+c.iss));if(!c.aud)return n.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(c.aud===s||Array.isArray(c.aud)&&c.aud.indexOf(s)>=0))return n.Log.error("JoseUtil._validateJwt: Invalid audience in token",c.aud),Promise.reject(new Error("Invalid audience in token: "+c.aud));if(c.azp&&c.azp!==s)return n.Log.error("JoseUtil._validateJwt: Invalid azp in token",c.azp),Promise.reject(new Error("Invalid azp in token: "+c.azp));if(!a){var u=r+o,l=r-o;if(!c.iat)return n.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(u>>((3&e)<<3)&255;return s}}},function(t,e){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninResponse=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"#";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=s.UrlUtility.parseUrlFragment(e,i);this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.code=n.code,this.state=n.state,this.id_token=n.id_token,this.session_state=n.session_state,this.access_token=n.access_token,this.token_type=n.token_type,this.scope=n.scope,this.profile=void 0,this.expires_in=n.expires_in}return n(t,[{key:"expires_in",get:function(){if(this.expires_at){var t=parseInt(Date.now()/1e3);return this.expires_at-t}},set:function(t){var e=parseInt(t);if("number"==typeof e&&e>0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutRequest=void 0;var n=i(0),s=i(3),o=i(8);e.SignoutRequest=function t(e){var i=e.url,r=e.id_token_hint,a=e.post_logout_redirect_uri,c=e.data,u=e.extraQueryParams,l=e.request_type;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var h in r&&(i=s.UrlUtility.addQueryParam(i,"id_token_hint",r)),a&&(i=s.UrlUtility.addQueryParam(i,"post_logout_redirect_uri",a),c&&(this.state=new o.State({data:c,request_type:l}),i=s.UrlUtility.addQueryParam(i,"state",this.state.id))),u)i=s.UrlUtility.addQueryParam(i,h,u[h]);this.url=i}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutResponse=void 0;var n=i(3);e.SignoutResponse=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=n.UrlUtility.parseUrlFragment(e,"?");this.error=i.error,this.error_description=i.error_description,this.error_uri=i.error_uri,this.state=i.state}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryWebStorage=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.SilentRenewService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.SessionMonitor,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.TokenRevocationClient,g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d.TokenClient,f=arguments.length>5&&void 0!==arguments[5]?arguments[5]:p.JoseUtil;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i instanceof r.UserManagerSettings||(i=new r.UserManagerSettings(i));var m=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return m._events=new c.UserManagerEvents(i),m._silentRenewService=new n(m),m.settings.automaticSilentRenew&&(s.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),m.startSilentRenew()),m.settings.monitorSession&&(s.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),m._sessionMonitor=new o(m)),m._tokenRevocationClient=new a(m._settings),m._tokenClient=new g(m._settings),m._joseUtil=f,m}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getUser=function(){var t=this;return this._loadUser().then(function(e){return e?(s.Log.info("UserManager.getUser: user loaded"),t._events.load(e,!1),e):(s.Log.info("UserManager.getUser: user not found in storage"),null)})},e.prototype.removeUser=function(){var t=this;return this.storeUser(null).then(function(){s.Log.info("UserManager.removeUser: user removed from storage"),t._events.unload()})},e.prototype.signinRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:r";var e={useReplaceToNavigate:t.useReplaceToNavigate};return this._signinStart(t,this._redirectNavigator,e).then(function(){s.Log.info("UserManager.signinRedirect: successful")})},e.prototype.signinRedirectCallback=function(t){return this._signinEnd(t||this._redirectNavigator.url).then(function(t){return t.profile&&t.profile.sub?s.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinRedirectCallback: no sub"),t})},e.prototype.signinPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:p";var e=t.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.display="popup",this._signin(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinPopup: no sub")),t})):(s.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},e.prototype.signinPopupCallback=function(t){return this._signinCallback(t,this._popupNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinPopupCallback: no sub")),t}).catch(function(t){s.Log.error(t.message)})},e.prototype.signinSilent=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).request_type="si:s",this._loadUser().then(function(i){return i&&i.refresh_token?(e.refresh_token=i.refresh_token,t._useRefreshToken(e)):(e.id_token_hint=e.id_token_hint||t.settings.includeIdTokenInSilentRenew&&i&&i.id_token,i&&t._settings.validateSubOnSilentRenew&&(s.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",i.profile.sub),e.current_sub=i.profile.sub),t._signinSilentIframe(e))})},e.prototype._useRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(e).then(function(e){return e?e.access_token?t._loadUser().then(function(i){if(i){var n=Promise.resolve();return e.id_token&&(n=t._validateIdTokenFromTokenRefreshToken(i.profile,e.id_token)),n.then(function(){return s.Log.debug("UserManager._useRefreshToken: refresh token response success"),i.id_token=e.id_token,i.access_token=e.access_token,i.refresh_token=e.refresh_token||i.refresh_token,i.expires_in=e.expires_in,t.storeUser(i).then(function(){return t._events.load(i),i})})}return null}):(s.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(s.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))})},e.prototype._validateIdTokenFromTokenRefreshToken=function(t,e){var i=this;return this._metadataService.getIssuer().then(function(n){return i._joseUtil.validateJwtAttributes(e,n,i._settings.client_id,i._settings.clockSkew).then(function(e){return e?e.sub!==t.sub?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):e.auth_time&&e.auth_time!==t.auth_time?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):e.azp&&e.azp!==t.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!e.azp&&t.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))})})},e.prototype._signinSilentIframe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.prompt=t.prompt||"none",this._signin(t,this._iframeNavigator,{startUrl:e,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinSilent: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinSilent: no sub")),t})):(s.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype.signinSilentCallback=function(t){return this._signinCallback(t,this._iframeNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinSilentCallback: no sub")),t})},e.prototype.signinCallback=function(t){var e=this;return this.readSigninResponseState(t).then(function(i){var n=i.state;return"si:r"===n.request_type?e.signinRedirectCallback(t):"si:p"===n.request_type?e.signinPopupCallback(t):"si:s"===n.request_type?e.signinSilentCallback(t):Promise.reject(new Error("invalid response_type in state"))})},e.prototype.signoutCallback=function(t,e){var i=this;return this.readSignoutResponseState(t).then(function(n){var s=n.state,o=n.response;return s?"so:r"===s.request_type?i.signoutRedirectCallback(t):"so:p"===s.request_type?i.signoutPopupCallback(t,e):Promise.reject(new Error("invalid response_type in state")):o})},e.prototype.querySessionStatus=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:s";var i=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return i?(e.redirect_uri=i,e.prompt="none",e.response_type=e.response_type||this.settings.query_status_response_type,e.scope=e.scope||"openid",e.skipUserInfo=!0,this._signinStart(e,this._iframeNavigator,{startUrl:i,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(e){return t.processSigninResponse(e.url).then(function(t){if(s.Log.debug("UserManager.querySessionStatus: got signin response"),t.session_state&&t.profile.sub)return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",t.profile.sub),{session_state:t.session_state,sub:t.profile.sub,sid:t.profile.sid};s.Log.info("querySessionStatus successful, user not authenticated")}).catch(function(e){if(e.session_state&&t.settings.monitorAnonymousSession&&("login_required"==e.message||"consent_required"==e.message||"interaction_required"==e.message||"account_selection_required"==e.message))return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:e.session_state};throw e})})):(s.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype._signin=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(t,e,n).then(function(e){return i._signinEnd(e.url,t)})},e.prototype._signinStart=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.prepare(n).then(function(e){return s.Log.debug("UserManager._signinStart: got navigator window handle"),i.createSigninRequest(t).then(function(t){return s.Log.debug("UserManager._signinStart: got signin request"),n.url=t.url,n.id=t.state.id,e.navigate(n)}).catch(function(t){throw e.close&&(s.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),e.close()),t})})},e.prototype._signinEnd=function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(t).then(function(t){s.Log.debug("UserManager._signinEnd: got signin response");var n=new a.User(t);if(i.current_sub){if(i.current_sub!==n.profile.sub)return s.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",n.profile.sub),Promise.reject(new Error("login_required"));s.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return e.storeUser(n).then(function(){return s.Log.debug("UserManager._signinEnd: user stored"),e._events.load(n),n})})},e.prototype._signinCallback=function(t,e){return s.Log.debug("UserManager._signinCallback"),e.callback(t)},e.prototype.signoutRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:r";var e=t.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;e&&(t.post_logout_redirect_uri=e);var i={useReplaceToNavigate:t.useReplaceToNavigate};return this._signoutStart(t,this._redirectNavigator,i).then(function(){s.Log.info("UserManager.signoutRedirect: successful")})},e.prototype.signoutRedirectCallback=function(t){return this._signoutEnd(t||this._redirectNavigator.url).then(function(t){return s.Log.info("UserManager.signoutRedirectCallback: successful"),t})},e.prototype.signoutPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:p";var e=t.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return t.post_logout_redirect_uri=e,t.display="popup",t.post_logout_redirect_uri&&(t.state=t.state||{}),this._signout(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(){s.Log.info("UserManager.signoutPopup: successful")})},e.prototype.signoutPopupCallback=function(t,e){return void 0===e&&"boolean"==typeof t&&(e=t,t=null),this._popupNavigator.callback(t,e,"?").then(function(){s.Log.info("UserManager.signoutPopupCallback: successful")})},e.prototype._signout=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(t,e,n).then(function(t){return i._signoutEnd(t.url)})},e.prototype._signoutStart=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,i=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.prepare(n).then(function(i){return s.Log.debug("UserManager._signoutStart: got navigator window handle"),e._loadUser().then(function(o){return s.Log.debug("UserManager._signoutStart: loaded current user from storage"),(e._settings.revokeAccessTokenOnSignout?e._revokeInternal(o):Promise.resolve()).then(function(){var r=t.id_token_hint||o&&o.id_token;return r&&(s.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),t.id_token_hint=r),e.removeUser().then(function(){return s.Log.debug("UserManager._signoutStart: user removed, creating signout request"),e.createSignoutRequest(t).then(function(t){return s.Log.debug("UserManager._signoutStart: got signout request"),n.url=t.url,t.state&&(n.id=t.state.id),i.navigate(n)})})})}).catch(function(t){throw i.close&&(s.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),i.close()),t})})},e.prototype._signoutEnd=function(t){return this.processSignoutResponse(t).then(function(t){return s.Log.debug("UserManager._signoutEnd: got signout response"),t})},e.prototype.revokeAccessToken=function(){var t=this;return this._loadUser().then(function(e){return t._revokeInternal(e,!0).then(function(i){if(i)return s.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),e.access_token=null,e.refresh_token=null,e.expires_at=null,e.token_type=null,t.storeUser(e).then(function(){s.Log.debug("UserManager.revokeAccessToken: user stored"),t._events.load(e)})})}).then(function(){s.Log.info("UserManager.revokeAccessToken: access token revoked successfully")})},e.prototype._revokeInternal=function(t,e){var i=this;if(t){var n=t.refresh_token;return this._revokeAccessTokenInternal(t.access_token,e).then(function(t){return i._revokeRefreshTokenInternal(n,e).then(function(e){return t||e||s.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),t||e})})}return Promise.resolve(!1)},e.prototype._revokeAccessTokenInternal=function(t,e){return!t||t.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(t,e).then(function(){return!0})},e.prototype._revokeRefreshTokenInternal=function(t,e){return t?this._tokenRevocationClient.revoke(t,e,"refresh_token").then(function(){return!0}):Promise.resolve(!1)},e.prototype.startSilentRenew=function(){this._silentRenewService.start()},e.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},e.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then(function(t){return t?(s.Log.debug("UserManager._loadUser: user storageString loaded"),a.User.fromStorageString(t)):(s.Log.debug("UserManager._loadUser: no user storageString"),null)})},e.prototype.storeUser=function(t){if(t){s.Log.debug("UserManager.storeUser: storing user");var e=t.toStorageString();return this._userStore.set(this._userStoreKey,e)}return s.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},n(e,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),e}(o.OidcClient)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserManagerSettings=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.popup_redirect_uri,s=i.popup_post_logout_redirect_uri,h=i.popupWindowFeatures,d=i.popupWindowTarget,p=i.silent_redirect_uri,g=i.silentRequestTimeout,f=i.automaticSilentRenew,m=void 0!==f&&f,b=i.validateSubOnSilentRenew,w=void 0!==b&&b,_=i.includeIdTokenInSilentRenew,y=void 0===_||_,A=i.monitorSession,v=void 0===A||A,T=i.monitorAnonymousSession,C=void 0!==T&&T,S=i.checkSessionInterval,E=void 0===S?2e3:S,k=i.stopCheckSessionOnError,x=void 0===k||k,R=i.query_status_response_type,I=i.revokeAccessTokenOnSignout,O=void 0!==I&&I,P=i.accessTokenExpiringNotificationTime,D=void 0===P?60:P,M=i.redirectNavigator,L=void 0===M?new o.RedirectNavigator:M,N=i.popupNavigator,z=void 0===N?new r.PopupNavigator:N,F=i.iframeNavigator,Z=void 0===F?new a.IFrameNavigator:F,B=i.userStore,q=void 0===B?new c.WebStorageStateStore({store:u.Global.sessionStorage}):B;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var U=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));return U._popup_redirect_uri=n,U._popup_post_logout_redirect_uri=s,U._popupWindowFeatures=h,U._popupWindowTarget=d,U._silent_redirect_uri=p,U._silentRequestTimeout=g,U._automaticSilentRenew=m,U._validateSubOnSilentRenew=w,U._includeIdTokenInSilentRenew=y,U._accessTokenExpiringNotificationTime=D,U._monitorSession=v,U._monitorAnonymousSession=C,U._checkSessionInterval=E,U._stopCheckSessionOnError=x,U._query_status_response_type=R||(arguments[0]&&arguments[0].response_type?l.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":"id_token"),U._revokeAccessTokenOnSignout=O,U._redirectNavigator=L,U._popupNavigator=z,U._iframeNavigator=Z,U._userStore=q,U}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),e}(s.OidcClientSettings)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RedirectNavigator=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1])||arguments[1];n.Log.debug("UserManagerEvents.load"),t.prototype.load.call(this,e),i&&this._userLoaded.raise(e)},e.prototype.unload=function(){n.Log.debug("UserManagerEvents.unload"),t.prototype.unload.call(this),this._userUnloaded.raise()},e.prototype.addUserLoaded=function(t){this._userLoaded.addHandler(t)},e.prototype.removeUserLoaded=function(t){this._userLoaded.removeHandler(t)},e.prototype.addUserUnloaded=function(t){this._userUnloaded.addHandler(t)},e.prototype.removeUserUnloaded=function(t){this._userUnloaded.removeHandler(t)},e.prototype.addSilentRenewError=function(t){this._silentRenewError.addHandler(t)},e.prototype.removeSilentRenewError=function(t){this._silentRenewError.removeHandler(t)},e.prototype._raiseSilentRenewError=function(t){n.Log.debug("UserManagerEvents._raiseSilentRenewError",t.message),this._silentRenewError.raise(t)},e.prototype.addUserSignedIn=function(t){this._userSignedIn.addHandler(t)},e.prototype.removeUserSignedIn=function(t){this._userSignedIn.removeHandler(t)},e.prototype._raiseUserSignedIn=function(){n.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},e.prototype.addUserSignedOut=function(t){this._userSignedOut.addHandler(t)},e.prototype.removeUserSignedOut=function(t){this._userSignedOut.removeHandler(t)},e.prototype._raiseUserSignedOut=function(){n.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},e.prototype.addUserSessionChanged=function(t){this._userSessionChanged.addHandler(t)},e.prototype.removeUserSessionChanged=function(t){this._userSessionChanged.removeHandler(t)},e.prototype._raiseUserSessionChanged=function(){n.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},e}(s.AccessTokenEvents)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:o.Global.timer,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return r._timer=n,r._nowFunc=s||function(){return Date.now()/1e3},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.init=function(t){t<=0&&(t=1),t=parseInt(t);var e=this.now+t;if(this.expiration===e&&this._timerHandle)s.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),s.Log.debug("Timer.init timer "+this._name+" for duration:",t),this._expiration=e;var i=5;t0&&c>a&&(c=a);for(var u=0;u=0?(l=g.substr(0,f),h=g.substr(f+1)):(l=g,h=""),d=decodeURIComponent(l),p=decodeURIComponent(h),e(o,d)?Array.isArray(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}return o}},15341:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,s){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(s){var o=encodeURIComponent(e(s))+n;return Array.isArray(t[s])?t[s].map(function(t){return o+encodeURIComponent(e(t))}).join(i):o+encodeURIComponent(e(t[s]))}).join(i):s?encodeURIComponent(e(s))+n+encodeURIComponent(e(t)):""}},96577:function(t,e,i){"use strict";i(40963),e.stringify=i(15341)},78512:function(t,e,i){"use strict";i.d(e,{X:function(){return o}});var n=i(55959),s=i(13895);class o extends n.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(t){super.next(this._value=t)}}},99867:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(96673);class s extends n.L{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},3103:function(t,e,i){"use strict";i.d(e,{P:function(){return r}});var n=i(70653),s=i(40878),o=i(31225);let r=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},48318:function(t,e,i){"use strict";i.d(e,{y:function(){return u}});var n=i(96673),s=i(55331),o=i(57498),r=i(56197),a=i(13392),c=i(51484);let u=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:r}=this,a=function(t,e,i){if(t){if(t instanceof n.L)return t;if(t[s.b])return t[s.b]()}return t||e||i?new n.L(t,e,i):new n.L(o.c)}(t,e,i);if(a.add(r?r.call(a,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:s}=t;if(e||s)return!1;t=i&&i instanceof n.L?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=l(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[r.L](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=l(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function l(t){if(t||(t=c.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},57498:function(t,e,i){"use strict";i.d(e,{c:function(){return o}});var n=i(51484),s=i(14294);const o={closed:!0,next(t){},error(t){if(n.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},59829:function(t,e,i){"use strict";i.d(e,{L:function(){return s}});var n=i(96673);class s extends n.L{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},66994:function(t,e,i){"use strict";i.d(e,{t:function(){return m}});var n=i(55959),s=i(8277);class o extends s.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}var r=i(91098);class a extends r.v{}const c=new a(o);var u=i(87570),l=i(96673),h=i(3103);class d extends l.L{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(d.dispatch,this.delay,new p(t,this.destination)))}_next(t){this.scheduleMessage(h.P.createNext(t))}_error(t){this.scheduleMessage(h.P.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(h.P.createComplete()),this.unsubscribe()}}class p{constructor(t,e){this.notification=t,this.destination=e}}var g=i(13895),f=i(19291);class m extends n.xQ{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new b(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let o;if(this.closed)throw new g.N;if(this.isStopped||this.hasError?o=u.w.EMPTY:(this.observers.push(t),o=new f.W(this,t)),n&&t.add(t=new d(t,n)),e)for(let r=0;re&&(o=Math.max(o,s-e)),o>0&&n.splice(0,o),n}}class b{constructor(t,e){this.time=t,this.value=e}}},55959:function(t,e,i){"use strict";i.d(e,{Yc:function(){return u},xQ:function(){return l}});var n=i(48318),s=i(96673),o=i(87570),r=i(13895),a=i(19291),c=i(55331);class u extends s.L{constructor(t){super(t),this.destination=t}}let l=(()=>{class t extends n.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.b](){return new u(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new r.N;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew h(t,e),t})();class h extends l{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):o.w.EMPTY}}},19291:function(t,e,i){"use strict";i.d(e,{W:function(){return s}});var n=i(87570);class s extends n.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}},96673:function(t,e,i){"use strict";i.d(e,{L:function(){return u}});var n=i(85024),s=i(57498),o=i(87570),r=i(55331),a=i(51484),c=i(14294);class u extends o.w{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof u?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,t,e,i)}}[r.b](){return this}static create(t,e,i){const n=new u(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class l extends u{constructor(t,e,i,o){let r;super(),this._parentSubscriber=t;let a=this;(0,n.m)(e)?r=e:e&&(r=e.next,i=e.error,o=e.complete,e!==s.c&&(a=Object.create(e),(0,n.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=r,this._error=i,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=a.v;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,c.z)(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;(0,c.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw i;(0,c.z)(i)}}__tryOrSetError(t,e,i){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):((0,c.z)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},87570:function(t,e,i){"use strict";i.d(e,{w:function(){return a}});var n=i(98470),s=i(82056),o=i(85024);const r=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:a,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof r?e.errors:e),[])}},51484:function(t,e,i){"use strict";i.d(e,{v:function(){return s}});let n=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},42875:function(t,e,i){"use strict";i.d(e,{c:function(){return a},N:function(){return c}});var n=i(55959),s=i(48318),o=i(87570),r=i(21564);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.w,t.add(this.source.subscribe(new u(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.w.EMPTY)),t}refCount(){return(0,r.x)()(this)}}const c=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class u extends n.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},31305:function(t,e,i){"use strict";i.d(e,{aj:function(){return u}});var n=i(76163),s=i(98470),o=i(59829),r=i(6268),a=i(99342);const c={};function u(...t){let e=null,i=null;return(0,n.K)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,a.n)(t,i).lift(new l(e))}class l{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends o.L{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{let i;try{i=t()}catch(n){return void e.error(n)}return(i?(0,s.D)(i):(0,o.c)()).subscribe(e)})}},70653:function(t,e,i){"use strict";i.d(e,{E:function(){return s},c:function(){return o}});var n=i(48318);const s=new n.y(t=>t.complete());function o(t){return t?function(t){return new n.y(e=>t.schedule(()=>e.complete()))}(t):s}},3148:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var n=i(48318),s=i(98470),o=i(79996),r=i(82056),a=i(19764);function c(...t){if(1===t.length){const e=t[0];if((0,s.k)(e))return u(e,null);if((0,r.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return u(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return u(t=1===t.length&&(0,s.k)(t[0])?t[0]:t,null).pipe((0,o.U)(t=>e(...t)))}return u(t,null)}function u(t,e){return new n.y(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let o=0,r=0;for(let c=0;c{l||(l=!0,r++),s[c]=t},error:t=>i.error(t),complete:()=>{o++,o!==n&&l||(r===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}},19764:function(t,e,i){"use strict";i.d(e,{D:function(){return h}});var n=i(48318),s=i(16015),o=i(87570),r=i(56197),a=i(62570),c=i(25686),u=i(5168),l=i(59653);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[r.L]}(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>{const s=t[r.L]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if((0,u.t)(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if((0,l.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[c.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.y(i=>{const n=new o.w;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[c.hZ](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof n.y?t:new n.y((0,s.s)(t))}},99342:function(t,e,i){"use strict";i.d(e,{n:function(){return r}});var n=i(48318),s=i(30625),o=i(62570);function r(t,e){return e?(0,o.r)(t,e):new n.y((0,s.V)(t))}},87254:function(t,e,i){"use strict";i.d(e,{R:function(){return a}});var n=i(48318),s=i(98470),o=i(85024),r=i(79996);function a(t,e,i,u){return(0,o.m)(i)&&(u=i,i=void 0),u?a(t,e,i).pipe((0,r.U)(t=>(0,s.k)(t)?u(...t):u(t))):new n.y(n=>{c(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function c(t,e,i,n,s){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),o=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),o=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),o=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,r=t.length;o(i.add(e.schedule(a,t,{subscriber:i,counter:0,period:t})),i))}function a(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}},31906:function(t,e,i){"use strict";i.d(e,{T:function(){return a}});var n=i(48318),s=i(76163),o=i(97471),r=i(99342);function a(...t){let e=Number.POSITIVE_INFINITY,i=null,a=t[t.length-1];return(0,s.K)(a)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof n.y?t[0]:(0,o.J)(e)((0,r.n)(t,i))}},40878:function(t,e,i){"use strict";i.d(e,{of:function(){return r}});var n=i(76163),s=i(99342),o=i(62570);function r(...t){let e=t[t.length-1];return(0,n.K)(e)?(t.pop(),(0,o.r)(t,e)):(0,s.n)(t)}},31225:function(t,e,i){"use strict";i.d(e,{_:function(){return s}});var n=i(48318);function s(t,e){return new n.y(e?i=>e.schedule(o,0,{error:t,subscriber:i}):e=>e.error(t))}function o({error:t,subscriber:e}){e.error(t)}},81110:function(t,e,i){"use strict";i.d(e,{H:function(){return a}});var n=i(48318),s=i(48569),o=i(62293),r=i(76163);function a(t=0,e,i){let a=-1;return(0,o.k)(e)?a=Number(e)<1?1:Number(e):(0,r.K)(e)&&(i=e),(0,r.K)(i)||(i=s.P),new n.y(e=>{const n=(0,o.k)(t)?t:+t-i.now();return i.schedule(c,n,{index:0,period:a,subscriber:e})})}function c(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}},30810:function(t,e,i){"use strict";i.d(e,{e:function(){return u}});var n=i(48569),s=i(59829),o=i(6268);class r{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new a(t,this.durationSelector))}}class a extends s.L{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=(0,o.D)(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var c=i(81110);function u(t,e=n.P){return i=()=>(0,c.H)(t,e),function(t){return t.lift(new r(i))};var i}},47727:function(t,e,i){"use strict";i.d(e,{K:function(){return r}});var n=i(59829),s=i(99867),o=i(6268);function r(t){return function(e){const i=new a(t),n=e.lift(i);return i.caught=n}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new c(t,this.selector,this.caught))}}class c extends n.L{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new s.d(this,void 0,void 0);this.add(n);const r=(0,o.D)(this,i,void 0,void 0,n);r!==n&&this.add(r)}}}},436:function(t,e,i){"use strict";i.d(e,{b:function(){return s}});var n=i(73982);function s(t,e){return(0,n.zg)(t,e,1)}},47701:function(t,e,i){"use strict";i.d(e,{b:function(){return o}});var n=i(96673),s=i(48569);function o(t,e=s.P){return i=>i.lift(new r(t,e))}class r{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends n.L{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function c(t){t.debouncedNext()}},7768:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(96673);function s(t=null){return e=>e.lift(new o(t))}class o{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new r(t,this.defaultValue))}}class r extends n.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},82628:function(t,e,i){"use strict";i.d(e,{g:function(){return r}});var n=i(48569),s=i(96673),o=i(3103);function r(t,e=n.P){var i;const s=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new a(s,e))}class a{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))}}class c extends s.L{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(c.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new u(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(o.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(o.P.createComplete()),this.unsubscribe()}}class u{constructor(t,e){this.time=t,this.notification=e}}},98720:function(t,e,i){"use strict";i.d(e,{x:function(){return s}});var n=i(96673);function s(t,e){return i=>i.lift(new o(t,e))}class o{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new r(t,this.compare,this.keySelector))}}class r extends n.L{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}},43835:function(t,e,i){"use strict";i.d(e,{h:function(){return s}});var n=i(96673);function s(t,e){return function(i){return i.lift(new o(t,e))}}class o{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.predicate,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}},11520:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var n=i(96673),s=i(87570);function o(t){return e=>e.lift(new r(t))}class r{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends n.L{constructor(t,e){super(t),this.add(new s.w(e))}}},3530:function(t,e,i){"use strict";i.d(e,{P:function(){return u}});var n=i(39665),s=i(43835),o=i(90611),r=i(7768),a=i(90790),c=i(13392);function u(t,e){const i=arguments.length>=2;return u=>u.pipe(t?(0,s.h)((e,i)=>t(e,i,u)):c.y,(0,o.q)(1),i?(0,r.d)(e):(0,a.T)(()=>new n.K))}},79996:function(t,e,i){"use strict";i.d(e,{U:function(){return s}});var n=i(96673);function s(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.project,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}},88414:function(t,e,i){"use strict";i.d(e,{h:function(){return s}});var n=i(96673);function s(t){return e=>e.lift(new o(t))}class o{constructor(t){this.value=t}call(t,e){return e.subscribe(new r(t,this.value))}}class r extends n.L{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}},97471:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(73982),s=i(13392);function o(t=Number.POSITIVE_INFINITY){return(0,n.zg)(s.y,t)}},73982:function(t,e,i){"use strict";i.d(e,{zg:function(){return c}});var n=i(6268),s=i(59829),o=i(99867),r=i(79996),a=i(19764);function c(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new u(t,i)))}class u{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends s.L{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},21564:function(t,e,i){"use strict";i.d(e,{x:function(){return s}});var n=i(96673);function s(){return function(t){return t.lift(new o(t))}}class o{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new r(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class r extends n.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}},1055:function(t,e,i){"use strict";i.d(e,{B:function(){return a}});var n=i(42875),s=i(21564),o=i(55959);function r(){return new o.xQ}function a(){return t=>{return(0,s.x)()((e=r,function(t){let i;i="function"==typeof e?e:function(){return e};const s=Object.create(t,n.N);return s.source=t,s.subjectFactory=i,s})(t));var e}}},68303:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(66994);function s(t,e,i){let s;return s=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:s}){let o,r,a=0,c=!1,u=!1;return function(l){a++,o&&!c||(c=!1,o=new n.t(t,e,s),r=l.subscribe({next(t){o.next(t)},error(t){c=!0,o.error(t)},complete(){u=!0,r=void 0,o.complete()}}));const h=o.subscribe(this);this.add(()=>{a--,h.unsubscribe(),r&&!u&&i&&0===a&&(r.unsubscribe(),r=void 0,o=void 0)})}}(s))}},56238:function(t,e,i){"use strict";i.d(e,{O:function(){return o}});var n=i(47930),s=i(76163);function o(...t){const e=t[t.length-1];return(0,s.K)(e)?(t.pop(),i=>(0,n.z)(t,i,e)):e=>(0,n.z)(t,e)}},44689:function(t,e,i){"use strict";i.d(e,{w:function(){return c}});var n=i(59829),s=i(99867),o=i(6268),r=i(79996),a=i(19764);function c(t,e){return"function"==typeof e?i=>i.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))))):e=>e.lift(new u(t))}class u{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends n.L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const r=new s.d(this,e,i),a=this.destination;a.add(r),this.innerSubscription=(0,o.D)(this,t,void 0,void 0,r),this.innerSubscription!==r&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}},90611:function(t,e,i){"use strict";i.d(e,{q:function(){return r}});var n=i(96673),s=i(98402),o=i(70653);function r(t){return e=>0===t?(0,o.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends n.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}},25416:function(t,e,i){"use strict";i.d(e,{R:function(){return o}});var n=i(59829),s=i(6268);function o(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const i=new a(t),n=(0,s.D)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class a extends n.L{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}},66599:function(t,e,i){"use strict";i.d(e,{b:function(){return r}});var n=i(96673);function s(){}var o=i(85024);function r(t,e,i){return function(n){return n.lift(new a(t,e,i))}}class a{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends n.L{constructor(t,e,i,n){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=i||s,this._tapComplete=n||s,(0,o.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},90790:function(t,e,i){"use strict";i.d(e,{T:function(){return o}});var n=i(39665),s=i(96673);function o(t=c){return e=>e.lift(new r(t))}class r{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends s.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function c(){return new n.K}},62570:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(48318),s=i(87570);function o(t,e){return new n.y(i=>{const n=new s.w;let o=0;return n.add(e.schedule(function(){o!==t.length?(i.next(t[o++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},8277:function(t,e,i){"use strict";i.d(e,{o:function(){return o}});var n=i(87570);class s extends n.w{constructor(t,e){super()}schedule(t,e=0){return this}}class o extends s{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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,n=!1;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},91098:function(t,e,i){"use strict";i.d(e,{v:function(){return s}});let n=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class s extends n{constructor(t,e=n.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}},91741:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var n=i(8277);class s extends n.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var o=i(91098);class r extends o.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),o={};function r(t){return t in o&&(delete o[t],!0)}const a={setImmediate(t){const e=n++;return o[e]=!0,s.then(()=>r(e)&&t()),e},clearImmediate(t){r(t)}};var c=i(8277);class u extends c.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}}var l=i(91098);class h extends l.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++n"function"==typeof Symbol&&Symbol.observable||"@@observable")()},55331:function(t,e,i){"use strict";i.d(e,{b:function(){return n}});const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},98402:function(t,e,i){"use strict";i.d(e,{W:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},39665:function(t,e,i){"use strict";i.d(e,{K:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},13895:function(t,e,i){"use strict";i.d(e,{N:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},14294:function(t,e,i){"use strict";function n(t){setTimeout(()=>{throw t},0)}i.d(e,{z:function(){return n}})},13392:function(t,e,i){"use strict";function n(t){return t}i.d(e,{y:function(){return n}})},98470:function(t,e,i){"use strict";i.d(e,{k:function(){return n}});const n=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},59653:function(t,e,i){"use strict";i.d(e,{z:function(){return n}});const n=t=>t&&"number"==typeof t.length&&"function"!=typeof t},85024:function(t,e,i){"use strict";function n(t){return"function"==typeof t}i.d(e,{m:function(){return n}})},62293:function(t,e,i){"use strict";i.d(e,{k:function(){return s}});var n=i(98470);function s(t){return!(0,n.k)(t)&&t-parseFloat(t)+1>=0}},82056:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,{K:function(){return n}})},4710:function(t,e,i){"use strict";i.d(e,{b:function(){return s}});var n=i(48318);function s(t){return!!t&&(t instanceof n.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},5168:function(t,e,i){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,{t:function(){return n}})},76163:function(t,e,i){"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,{K:function(){return n}})},16015:function(t,e,i){"use strict";i.d(e,{s:function(){return l}});var n=i(30625),s=i(14294),o=i(25686),r=i(56197),a=i(59653),c=i(5168),u=i(82056);const l=t=>{if(t&&"function"==typeof t[r.L])return l=t,t=>{const e=l[r.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,n.V)(t);if((0,c.t)(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.z),t);if(t&&"function"==typeof t[o.hZ])return e=t,t=>{const i=e[o.hZ]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=(0,u.K)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,l}},30625:function(t,e,i){"use strict";i.d(e,{V:function(){return n}});const n=t=>e=>{for(let i=0,n=t.length;i=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,i,r):s(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r}function s(t,e){return function(i,n){e(i,n,t)}}function o(t,e,i,n){return new(i||(i=Promise))(function(s,o){function r(t){try{c(n.next(t))}catch(e){o(e)}}function a(t){try{c(n.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(r,a)}c((n=n.apply(t,e||[])).next())})}i.d(e,{gn:function(){return n},fM:function(){return s},mG:function(){return o}})},60306:function(t){"use strict";t.exports={i8:"2.0.0"}}},function(t){"use strict";t(t.s=15291)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/main-es5.7cd331bb3a27f4d3095d.js b/dist/apps/admin-gui/main-es5.7cd331bb3a27f4d3095d.js deleted file mode 100644 index 4e8e3103f..000000000 --- a/dist/apps/admin-gui/main-es5.7cd331bb3a27f4d3095d.js +++ /dev/null @@ -1 +0,0 @@ -!function(){function t(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function e(t){var n="function"==typeof Map?new Map:void 0;return(e=function(t){if(null===t||(e=t,-1===Function.toString.call(e).indexOf("[native code]")))return t;var e;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return i(t,arguments,d(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,t)})(t)}function i(t,e,n){return(i=h()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&s(r,i.prototype),r}).apply(null,arguments)}function n(t,e,i){return(n="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function r(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){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 o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],a=!0,s=!1;try{for(i=i.call(t);!(a=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(u){s=!0,r=u}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=h();return function(){var i,n=d(t);if(e){var r=d(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return c(this,i)}}function c(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?l(t):e}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=p(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function p(t,e){if(t){if("string"==typeof t)return g(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0),u.xp6(1),u.Q6J("ngIf",!i.firstSearchDone),u.xp6(1),u.Q6J("ngIf",i.firstSearchDone&&0===i.users.length)}}var S=function(){var t=function(){function t(e,i,n){v(this,t),this.usersService=e,this.storeService=i,this.tableConfigService=n,this.loading=!1,this.firstSearchDone=!1,this.tableId=r.xx,this.attributes=[]}return y(t,[{key:"ngOnInit",value:function(){this.searchControl=new s.NI("",[s.kI.required,s.kI.pattern(".*[\\S]+.*")]),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.attributes=[o.r.USER_DEF_ORGANIZATION,o.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}},{key:"onSearchByString",value:function(){var t=this;this.searchControl.invalid?this.searchControl.markAllAsTouched():(this.loading=!0,this.firstSearchDone=!0,this.usersService.findRichUsersWithAttributes(this.searchControl.value,this.attributes).subscribe(function(e){t.users=e,t.loading=!1},function(){t.loading=!1}))}},{key:"onKeyInput",value:function(t){"Enter"===t.key&&this.onSearchByString()}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"findUsersWithoutVO",value:function(){var t=this;this.loading=!0,this.firstSearchDone=!0,this.usersService.getRichUsersWithoutVoWithAttributes(this.attributes).subscribe(function(e){t.users=e,t.loading=!1},function(){return t.loading=!1})}}]),t}();return t.id="AdminUsersComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(n.Fv),u.Y36(a.d6),u.Y36(r.dB))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.true)},decls:18,vars:17,consts:[[3,"keyup"],[1,"page-subtitle"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["mat-flat-button","","color","primary",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","displayedColumns","users","page",4,"ngIf"],[3,"alert_type",4,"ngIf"],[3,"pageSize","displayedColumns","users","page"],[3,"alert_type"]],template:function(t,e){1&t&&(u.TgZ(0,"div",0),u.NdJ("keyup",function(t){return e.onKeyInput(t)}),u.TgZ(1,"h1",1),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"mat-form-field",2),u._UZ(5,"input",3),u.ALo(6,"translate"),u.TgZ(7,"mat-error"),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.qZA(),u.TgZ(10,"button",4),u.NdJ("click",function(){return e.onSearchByString()}),u.TgZ(11,"mat-icon"),u._uU(12,"search"),u.qZA(),u.qZA(),u.TgZ(13,"button",5),u.NdJ("click",function(){return e.findUsersWithoutVO()}),u._uU(14),u.ALo(15,"translate"),u.qZA(),u.YNc(16,w,1,0,"mat-spinner",6),u.YNc(17,C,4,3,"div",7),u.qZA()),2&t&&(u.xp6(2),u.Oqu(u.lcZ(3,9,"ADMIN.USERS.TITLE")),u.xp6(3),u.s9C("placeholder",u.lcZ(6,11,"ADMIN.USERS.SEARCH_PLACEHOLDER")),u.Q6J("formControl",e.searchControl),u.xp6(3),u.hij(" ",u.lcZ(9,13,"ADMIN.USERS.EMPTY_SEARCH")," "),u.xp6(2),u.Q6J("disabled",e.loading),u.xp6(3),u.Q6J("disabled",e.loading),u.xp6(1),u.hij(" ",u.lcZ(15,15,"ADMIN.USERS.USERS_WITHOUT_VO")," "),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[c.KE,l.Nt,s.Fj,s.JJ,s.oH,c.TO,h.lW,d.Hw,f.O5,p.$g,g.C,m.w],pipes:[b.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),t}()},61601:function(t,e,i){"use strict";i.d(e,{y:function(){return C}});var n=i(88426),r=i(38289),o=i(29063),a=i(27613),s=i(31572),u=i(84608),c=i(15980),l=i(48160),h=function(){var t=function(){function t(e){v(this,t),this.dialogRef=e}return y(t,[{key:"onReload",value:function(){location.reload()}},{key:"onClose",value:function(){this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(u.so))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"div",2),s.TgZ(5,"p"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.qZA(),s.TgZ(8,"div",3),s.TgZ(9,"button",4),s.NdJ("click",function(){return e.onClose()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"button",5),s.NdJ("click",function(){return e.onReload()}),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),s.xp6(5),s.hij(" ",s.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),s.xp6(4),s.hij(" ",s.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),s.xp6(3),s.hij(" ",s.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},directives:[u.uh,u.xY,u.H8,c.lW],pipes:[l.X$],styles:[""]}),t}(),d=i(57629),f=i(43835),p=function(){var t=function(){function t(e,i){v(this,t),this.router=e,this.routeReuseStrategy=i;var n=i;e.events.subscribe(function(t){t instanceof d.OD&&n.setLastNavigationType("popstate"===t.navigationTrigger?"back":"direct")})}return y(t,[{key:"init",value:function(){}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(d.F0),s.LFG(d.wN))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}();function g(t,e){if(1&t&&(s.TgZ(0,"div",3),s.TgZ(1,"mat-icon"),s._uU(2,"alert"),s.qZA(),s._uU(3),s.qZA()),2&t){var i=s.oxw();s.xp6(3),s.hij(" ",i.warningMessage,"\n")}}var m=function(t,e){return{top:t,background:e}},b=function(t,e){return{"margin-top":t,"min-height":e}},w=function(t){return{"border-color":t}},_=function(t){return{background:t}},A=function(t,e){return{"min-height":t,"background-color":e}};function k(t,e){if(1&t&&(s._UZ(0,"app-perun-nav-menu",4),s.TgZ(1,"mat-sidenav-container",5),s.TgZ(2,"mat-sidenav",6,7),s.TgZ(4,"perfect-scrollbar",8),s._UZ(5,"app-side-menu",9),s.qZA(),s.qZA(),s.TgZ(6,"mat-sidenav-content",10),s.TgZ(7,"div",11),s._UZ(8,"router-outlet"),s.qZA(),s.TgZ(9,"div",12),s._UZ(10,"perun-web-apps-footer"),s.qZA(),s.qZA(),s.qZA()),2&t){var i=s.MAs(3),n=s.oxw();s.Q6J("ngStyle",s.WLB(13,m,n.getNavMenuTop(),n.navBackgroundColor))("sideNav",i)("principal",n.principal),s.xp6(1),s.Q6J("ngStyle",s.WLB(16,b,n.getSideNavMarginTop(),n.getSideNavMinHeight())),s.xp6(1),s.Q6J("ngStyle",s.VKq(19,w,n.sideBarBorderColor))("mode",n.sidebarMode)("opened",!n.isMobile())("fixedInViewport",!0)("fixedTopGap",n.getTopGap()),s.xp6(2),s.Q6J("ngStyle",s.VKq(21,_,n.sideMenubackgroundColor))("scrollIndicators",!0),s.xp6(1),s.Q6J("sideNav",i),s.xp6(1),s.Q6J("ngStyle",s.WLB(23,A,n.getContentInnerMinHeight(),n.contentBackgroundColor))}}function T(t,e){1&t&&s._UZ(0,"perun-web-apps-login-screen-base",13),2&t&&s.Q6J("application","admin-gui")}var C=function(){var t=function(){function t(e,n,r,o,a,s){v(this,t),this.cache=e,this.store=n,this.http=r,this.dialog=o,this.router=a,this.initAuth=s,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=i(60306).i8,this.cache.init(),this.getScreenSize()}return y(t,[{key:"getScreenSize",value:function(){this.sidebarMode=this.isMobile()?"over":"side",this.lastScreenWidth=window.innerWidth}},{key:"isMobile",value:function(){return window.innerWidth<=t.minWidth}},{key:"ngOnInit",value:function(){var t=this;this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),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,r.F)(3e4).subscribe(function(){t.loadAppVersion()}),this.router.events.pipe((0,f.h)(function(t){return t instanceof d.OD})).subscribe(function(e){t.updateInitAccessedPage(e)})}},{key:"updateInitAccessedPage",value:function(t){t.url===sessionStorage.getItem("initPage")?("imperative"===t.navigationTrigger&&t.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===t.navigationTrigger&&(t.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(t.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}},{key:"loadAppVersion",value:function(){var t=this,e=new o.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:e}).subscribe(function(e){var i=e.version;if(i)if(t.version&&"SNAPSHOT"!==i&&t.version!==i){var n=(0,a.kZ)();t.dialog.open(h,n)}else t.version=i},function(){})}},{key:"getTopGap",value:function(){return this.displayWarning?112:64}},{key:"getSideNavMarginTop",value:function(){return this.displayWarning?"112px":"64px"}},{key:"getSideNavMinHeight",value:function(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}},{key:"getNavMenuTop",value:function(){return this.displayWarning?"48px":"0"}},{key:"getContentInnerMinHeight",value:function(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}}]),t}();return t.minWidth=992,t.\u0275fac=function(e){return new(e||t)(s.Y36(p),s.Y36(n.d6),s.Y36(o.eN),s.Y36(u.uw),s.Y36(d.F0),s.Y36(n.v0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-root"]],hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.getScreenSize(t)},!1,s.Jf7)},decls:4,vars:4,consts:[["class","beta-warning",4,"ngIf"],[3,"displayWarning"],[3,"ngIf"],[1,"beta-warning"],["id","nav-menu",1,"mat-elevation-z3",3,"ngStyle","sideNav","principal"],[3,"ngStyle"],[3,"ngStyle","mode","opened","fixedInViewport","fixedTopGap"],["sidenav",""],[3,"ngStyle","scrollIndicators"],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[3,"application"]],template:function(t,e){1&t&&(s.YNc(0,g,4,1,"div",0),s._UZ(1,"perun-web-apps-notificator",1),s.YNc(2,k,11,26,"ng-template",2),s.YNc(3,T,1,1,"ng-template",2)),2&t&&(s.Q6J("ngIf",e.displayWarning),s.xp6(1),s.Q6J("displayWarning",e.displayWarning),s.xp6(1),s.Q6J("ngIf",!e.isLoginScreenShow),s.xp6(1),s.Q6J("ngIf",e.isLoginScreenShow))},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width:768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.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}"]}),t}()},48958:function(t,e,i){"use strict";i.d(e,{D:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){v(this,t),this.accessItemsChange=new n.vpe,this.facilityItemsChange=new n.vpe,this.adminItemsChange=new n.vpe,this.userItemsChange=new n.vpe,this.resetChange=new n.vpe,this.homeItemsChange=new n.vpe}return y(t,[{key:"setHomeItems",value:function(t){this.homeItemsChange.emit(t)}},{key:"setAccessMenuItems",value:function(t){this.accessItemsChange.emit(t)}},{key:"setFacilityMenuItems",value:function(t){this.facilityItemsChange.emit(t)}},{key:"setAdminItems",value:function(t){this.adminItemsChange.emit(t)}},{key:"setUserItems",value:function(t){this.userItemsChange.emit(t)}},{key:"reset",value:function(){this.resetChange.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},39124:function(t,e,i){"use strict";i.d(e,{o:function(){return C}});var n=i(33642),r=i(60611),o=i(88426),a=i(31572),s=i(57629),u=i(59403),c=i(66283),l=i(4786),h=i(71522),d=i(61511),f=i(19139),p=i(67806),g=i(78364),m=i(39571),b=i(48160);function w(t,e){if(1&t&&(a.TgZ(0,"mat-option",9),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.Q6J("value",i.id),a.xp6(1),a.hij(" ",i.name," ")}}function _(t,e){1&t&&a._UZ(0,"mat-spinner",10)}var A=function(){return["id","vo","name","description"]};function k(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"perun-web-apps-groups-list",11),a.NdJ("page",function(t){return a.CHM(i),a.oxw().pageChanged(t)}),a.qZA()}if(2&t){var n=a.oxw();a.Q6J("pageSize",n.pageSize)("displayedColumns",a.DdM(6,A))("groups",n.groupsToShow)("groupsToDisable",n.groupsWithoutRouteAuth)("filter",n.filterValue)("disableMembers",!1)}}function T(t,e){1&t&&(a.TgZ(0,"app-alert",12),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"FACILITY_DETAIL.ALLOWED_GROUPS.NO_GROUPS_ALERT")," "))}var C=function(){var t=function(){function t(e,i,n,o){v(this,t),this.facilityManager=e,this.route=i,this.tableConfigService=n,this.authResolver=o,this.filterValue="",this.groups=[],this.selected="all",this.groupsToShow=this.groups,this.tableId=r.Aj,this.groupsWithoutRouteAuth=new Set}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.facilityId=e.facilityId,t.facilityManager.getAllowedVos(t.facilityId).subscribe(function(e){t.vos=e,t.refreshTable()})})}},{key:"showGroup",value:function(){var t=this;this.groupsToShow="all"!==this.selected?this.groups.filter(function(e){return e.voId===parseInt(t.selected,10)}):this.groups}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.groups=[],this.filterValue="",this.vos.forEach(function(e){t.facilityManager.getAllowedGroups(t.facilityId,e.id).subscribe(function(i){t.groups=t.groups.concat(i),t.groupsToShow=t.groups,t.setAuthRights(e,i),t.loading=!1})}),0===this.vos.length&&(this.loading=!1)}},{key:"setAuthRights",value:function(t,e){var i=this;e.forEach(function(e){i.authResolver.isAuthorized("getGroupById_int_policy",[t,e])||i.groupsWithoutRouteAuth.add(e.id)})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="FacilityAllowedGroupsComponent",t.\u0275fac=function(e){return new(e||t)(a.Y36(n.IQ),a.Y36(s.gz),a.Y36(r.dB),a.Y36(o.x4))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("router-component",e.true)},inputs:{groups:"groups"},decls:18,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"value","valueChange","selectionChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","displayedColumns","groups","groupsToDisable","filter","disableMembers","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"pageSize","displayedColumns","groups","groupsToDisable","filter","disableMembers","page"],["alert_type","warn"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(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 e.refreshTable()}),a.qZA(),a.TgZ(5,"mat-form-field"),a.TgZ(6,"mat-label"),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.TgZ(9,"mat-select",2),a.NdJ("valueChange",function(t){return e.selected=t})("selectionChange",function(){return e.showGroup()}),a.TgZ(10,"mat-option",3),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.YNc(13,w,2,2,"mat-option",4),a.qZA(),a.qZA(),a.TgZ(14,"perun-web-apps-immediate-filter",5),a.NdJ("filter",function(t){return e.applyFilter(t)}),a.qZA(),a.YNc(15,_,1,0,"mat-spinner",6),a.YNc(16,k,1,7,"perun-web-apps-groups-list",7),a.YNc(17,T,3,3,"app-alert",8),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.lcZ(3,9,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),a.xp6(5),a.Oqu(a.lcZ(8,11,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),a.xp6(2),a.Q6J("value",e.selected),a.xp6(2),a.Oqu(a.lcZ(12,13,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),a.xp6(2),a.Q6J("ngForOf",e.vos),a.xp6(1),a.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),a.xp6(1),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading&&0!==e.groupsToShow.length),a.xp6(1),a.Q6J("ngIf",0===e.groupsToShow.length&&!e.loading))},directives:[u.t,c.KE,c.hX,l.gD,h.ey,d.sg,f.L,d.O5,p.$g,g.W,m.w],pipes:[b.X$],styles:[""]}),t}()},64467:function(t,e,i){"use strict";i.d(e,{f:function(){return P}});var n=i(4230),r=i(95909),o=i(33642),a=i(16073),s=i(84608),u=i(88426),c=i(31572),l=i(48160),h=i(61511),d=i(15980),f=i(67806),p=i(19386),g=i(66283),m=i(80340);function b(t,e){1&t&&c._UZ(0,"mat-spinner",5)}function w(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div",6),c.TgZ(1,"perun-web-apps-vo-search-select",7),c.NdJ("voSelected",function(t){return c.CHM(i),c.oxw().selectedVo=t}),c.qZA(),c.TgZ(2,"mat-form-field"),c._UZ(3,"input",8),c.ALo(4,"translate"),c.TgZ(5,"mat-error"),c._uU(6),c.ALo(7,"translate"),c.qZA(),c.qZA(),c.TgZ(8,"mat-form-field"),c._UZ(9,"input",8),c.ALo(10,"translate"),c.TgZ(11,"mat-error"),c._uU(12),c.ALo(13,"translate"),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=c.oxw();c.xp6(1),c.Q6J("vos",n.vos),c.xp6(2),c.s9C("placeholder",c.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),c.Q6J("formControl",n.nameCtrl),c.xp6(3),c.hij(" ",c.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),c.xp6(3),c.s9C("placeholder",c.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),c.Q6J("formControl",n.descriptionCtrl),c.xp6(3),c.hij(" ",c.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}var _=function(){var t=function(){function t(e,i,n,r,o,a){var s=this;v(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.voService=r,this.translate=o,this.resourcesManager=a,this.vos=[],this.selectedVo=null,o.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(function(t){return s.successMessage=t})}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(function(e){t.vos=e,t.loading=!1},function(){return t.loading=!1}),this.nameCtrl=new a.NI(null,[a.kI.required,a.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new a.NI(null,[a.kI.required,a.kI.pattern(".*[\\S]+.*")])}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.resourcesManager.createResource(this.selectedVo.id,this.data.facilityId,this.nameCtrl.value,this.descriptionCtrl.value).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Y36(s.so),c.Y36(s.WI),c.Y36(u.V6),c.Y36(o.YF),c.Y36(l.sK),c.Y36(o.xk))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-create-resource-dialog"]],decls:10,vars:12,consts:[["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","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"long-input",3,"vos","voSelected"],["matInput","","required","",3,"placeholder","formControl"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.YNc(1,b,1,0,"mat-spinner",0),c.YNc(2,w,14,15,"div",1),c.TgZ(3,"div",2),c.TgZ(4,"button",3),c.NdJ("click",function(){return e.onCancel()}),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"button",4),c.NdJ("click",function(){return e.onSubmit()}),c._uU(8),c.ALo(9,"translate"),c.qZA(),c.qZA(),c.qZA()),2&t&&(c.Tol(e.theme),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(3),c.Oqu(c.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")),c.xp6(2),c.Q6J("disabled",e.nameCtrl.invalid||e.descriptionCtrl.invalid||null===e.selectedVo||e.loading),c.xp6(1),c.Oqu(c.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")))},directives:[h.O5,s.H8,d.lW,f.$g,s.xY,p.M,g.KE,m.Nt,a.Fj,a.Q7,a.JJ,a.oH,g.TO],pipes:[l.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),t}(),A=i(60611),k=i(27613),T=i(57629),C=i(59403),S=i(19139),E=i(88884);function x(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",7),c.NdJ("click",function(){return c.CHM(i),c.oxw().createResource()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function R(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",function(){return c.CHM(i),c.oxw().removeResource()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&t){var n=c.oxw();c.Q6J("disabled",0===n.selected.selected.length),c.xp6(1),c.hij(" ",c.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function I(t,e){1&t&&c._UZ(0,"mat-spinner",9)}function O(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"perun-web-apps-resources-list",10),c.NdJ("page",function(t){return c.CHM(i),c.oxw().pageChanged(t)}),c.qZA()}if(2&t){var n=c.oxw();c.Q6J("pageSize",n.pageSize)("filterValue",n.filterValue)("resources",n.resources)("selection",n.selected)("disableRouting",!n.routeAuth)("displayedColumns",n.displayedColumns)}}var P=function(){var t=function(){function t(e,i,r,o,a){v(this,t),this.dialog=e,this.facilitiesManager=i,this.tableConfigService=r,this.route=o,this.authResolver=a,this.resources=[],this.selected=new n.Ov(!0,[]),this.filterValue="",this.tableId=A.CP,this.displayedColumns=["id","vo","facility","description"]}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.facilitiesManager.getFacilityById(e.facilityId).subscribe(function(e){t.facility=e,t.refreshTable()})})}},{key:"removeResource",value:function(){var t=this,e=(0,k.kZ)();e.width="450px",e.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(r.f,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(function(e){t.resources=e,t.selected.clear(),t.setAuthRights(),t.loading=!1})}},{key:"setAuthRights",value:function(){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]]))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"createResource",value:function(){var t=this,e=(0,k.kZ)();e.width="1350px",e.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(_,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="FacilityResourcesComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(s.uw),c.Y36(o.IQ),c.Y36(A.dB),c.Y36(T.gz),c.Y36(u.x4))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",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,"pageSize","filterValue","resources","selection","disableRouting","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","selection","disableRouting","displayedColumns","page"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.refreshTable()}),c.qZA(),c.YNc(5,x,3,3,"button",2),c.YNc(6,R,3,4,"button",3),c.TgZ(7,"perun-web-apps-immediate-filter",4),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.YNc(8,I,1,0,"mat-spinner",5),c.YNc(9,O,1,6,"perun-web-apps-resources-list",6),c.qZA()),2&t&&(c.xp6(2),c.Oqu(c.lcZ(3,6,"FACILITY_DETAIL.RESOURCES.TITLE")),c.xp6(3),c.Q6J("ngIf",!e.loading&&e.addAuth),c.xp6(1),c.Q6J("ngIf",!e.loading&&e.removeAuth),c.xp6(1),c.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[C.t,h.O5,S.L,d.lW,f.$g,E.C],pipes:[l.X$],styles:[""]}),t}()},73916:function(t,e,i){"use strict";i.d(e,{P:function(){return Z}});var n=i(33642),r=i(27613),o=i(60611),a=i(4230),s=i(84608),u=i(88426),c=i(16073),l=i(31572),h=i(48160),d=i(61511),f=i(15980),p=i(67806),g=i(66283),m=i(80340),b=i(4786),w=i(71522);function _(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function A(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"mat-option",13),l.NdJ("click",function(){var t=l.CHM(i).$implicit;return l.oxw(2).srcFacility=t}),l._uU(1),l.qZA()}if(2&t){var n=e.$implicit;l.Q6J("value",n),l.xp6(1),l.hij(" ",n.name," ")}}function k(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div",7),l.TgZ(1,"mat-form-field"),l._UZ(2,"input",8),l.ALo(3,"translate"),l.TgZ(4,"mat-error"),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.qZA(),l.TgZ(7,"mat-form-field"),l._UZ(8,"input",9),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"mat-form-field"),l.TgZ(11,"mat-select",10),l.ALo(12,"translate"),l.TgZ(13,"mat-option",11),l.NdJ("click",function(){return l.CHM(i),l.oxw().srcFacility=null}),l._uU(14),l.ALo(15,"translate"),l.qZA(),l.YNc(16,A,2,2,"mat-option",12),l.qZA(),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(2),l.s9C("placeholder",l.lcZ(3,8,"DIALOGS.CREATE_FACILITY.NAME")),l.Q6J("formControl",n.nameControl),l.xp6(3),l.Oqu(l.lcZ(6,10,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),l.xp6(3),l.s9C("placeholder",l.lcZ(9,12,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),l.Q6J("formControl",n.descControl),l.xp6(3),l.s9C("placeholder",l.lcZ(12,14,"DIALOGS.CREATE_FACILITY.AS_COPY")),l.xp6(3),l.hij(" ",l.lcZ(15,16,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),l.xp6(2),l.Q6J("ngForOf",n.facilities)}}var T=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this.dialogRef=e,this.data=i,this.facilitiesManager=n,this.notificator=r,this.translate=o,this.nameControl=new c.NI("",[c.kI.required]),this.descControl=new c.NI(""),this.srcFacility=null,this.loading=!1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(function(e){t.facilities=e,t.loading=!1},function(){return t.loading=!1})}},{key:"copyFacilitySettings",value:function(t){var e=this;this.facilitiesManager.copyAttributes(this.srcFacility.id,t).subscribe(function(){e.facilitiesManager.copyManagers(e.srcFacility.id,t).subscribe(function(){e.facilitiesManager.copyOwners(e.srcFacility.id,t).subscribe(function(){e.handleSuccess()},function(){return e.loading=!1})},function(){return e.loading=!1})},function(){return e.loading=!1})}},{key:"onCreate",value:function(){var t=this;this.loading=!0,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe(function(e){null!==t.srcFacility?t.copyFacilitySettings(e.id):t.handleSuccess()})}},{key:"handleSuccess",value:function(){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.dialogRef.close(!0)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(s.so),l.Y36(s.WI),l.Y36(n.IQ),l.Y36(u.V6),l.Y36(h.sK))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-create-facility-dialog"]],decls:13,vars:15,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"],["mat-flat-button","","color","accent",1,"ml2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"],["disableOptionCentering","true",3,"placeholder"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,_,1,0,"mat-spinner",1),l.YNc(5,k,17,18,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onCreate()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,9,"DIALOGS.CREATE_FACILITY.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.Oqu(l.lcZ(9,11,"DIALOGS.CREATE_FACILITY.CANCEL")),l.xp6(2),l.Q6J("disabled",0===e.nameControl.value.trim().length||e.loading),l.xp6(1),l.Oqu(l.lcZ(12,13,"DIALOGS.CREATE_FACILITY.CREATE")))},directives:[d.O5,s.H8,f.lW,p.$g,s.xY,g.KE,m.Nt,c.Fj,c.Q7,c.JJ,c.oH,g.TO,b.gD,w.ey,d.sg],pipes:[h.X$],styles:[""]}),t}(),C=i(30570),S=i(48958),E=i(66297),x=i(43691),R=i(59403),I=i(19139),O=i(60007);function P(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-refresh-button",9),l.NdJ("refresh",function(){return l.CHM(i),l.oxw().refreshTable()}),l.qZA()}}function D(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",10),l.NdJ("click",function(){return l.CHM(i),l.oxw().onCreate()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"FACILITY_MANAGEMENT.CREATE")))}function M(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){return l.CHM(i),l.oxw().onDelete()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("disabled",0===n.selection.selected.length),l.xp6(1),l.Oqu(l.lcZ(2,2,"FACILITY_MANAGEMENT.DELETE"))}}function L(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",12),l.NdJ("filter",function(t){return l.CHM(i),l.oxw().applyFilter(t)}),l.qZA()}2&t&&l.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER")}function N(t,e){1&t&&l._UZ(0,"mat-spinner",13)}function z(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-facilities-list",14),l.NdJ("page",function(t){return l.CHM(i),l.oxw().pageChanged(t)}),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("pageSize",n.pageSize)("selection",n.selection)("filterValue",n.filterValue)("facilities",n.facilities)("recentIds",n.recentIds)}}var F=function(){return{color:"black"}},Z=function(){var t=function(){function t(e,i,n,r){v(this,t),this.facilityManager=e,this.sideMenuService=i,this.tableConfigService=n,this.dialog=r,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=o.xt,this.selection=new a.Ov(!1,[])}return y(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}},{key:"ngAfterViewChecked",value:function(){this.sideMenuService.setFacilityMenuItems([])}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(function(e){t.selection.clear(),t.facilities=e,t.recentIds=(0,r.vL)("facilities"),t.loading=!1})}},{key:"onCreate",value:function(){var t=this,e=(0,r.kZ)();e.width="800px",e.data={theme:"facility-theme"},this.dialog.open(T,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.refreshTable())})}},{key:"onDelete",value:function(){var t=this,e=(0,r.kZ)();e.width="500px",e.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(C.Y,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="FacilitySelectPageComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(n.IQ),l.Y36(S.D),l.Y36(o.dB),l.Y36(s.uw))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:12,vars:11,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",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","selection","filterValue","facilities","recentIds","page",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","selection","filterValue","facilities","recentIds","page"]],template:function(t,e){1&t&&(l.TgZ(0,"div",0),l._UZ(1,"perun-web-apps-back-button"),l.TgZ(2,"h1",1),l._UZ(3,"mat-icon",2),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.YNc(6,P,1,0,"perun-web-apps-refresh-button",3),l.YNc(7,D,3,3,"button",4),l.YNc(8,M,3,4,"button",5),l.YNc(9,L,1,2,"perun-web-apps-immediate-filter",6),l.YNc(10,N,1,0,"mat-spinner",7),l.YNc(11,z,1,5,"perun-web-apps-facilities-list",8),l.qZA()),2&t&&(l.xp6(3),l.Q6J("ngStyle",l.DdM(10,F)),l.xp6(1),l.hij(" ",l.lcZ(5,8,"FACILITY_MANAGEMENT.TITLE")," "),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[E.W,x.Hw,d.PC,d.O5,R.t,f.lW,I.L,p.$g,O.X],pipes:[h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t}()},92438:function(t,e,i){"use strict";i.d(e,{J:function(){return k}});var n=i(84608),r=i(88426),o=i(33642),a=i(27613),s=i(16073),u=i(31572),c=i(48160),l=i(66283),h=i(80340),d=i(4786),p=i(61511),g=i(15980),m=i(71522),b=function(){var t=function(){function t(e){v(this,t),this.translateService=e,this.returnData=""}return y(t,[{key:"transform",value:function(t){var e=this;switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe(function(t){e.returnData=t});break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.FROM_FEDERATION_HIDDEN").subscribe(function(t){e.returnData=t});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe(function(t){e.returnData=t});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe(function(t){e.returnData=t});break;case"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.FROM_FEDERATION_SHOW").subscribe(function(t){e.returnData=t});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe(function(t){e.returnData=t});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe(function(t){e.returnData=t});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe(function(t){e.returnData=t});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe(function(t){e.returnData=t});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe(function(t){e.returnData=t});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe(function(t){e.returnData=t});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe(function(t){e.returnData=t});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe(function(t){e.returnData=t});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe(function(t){e.returnData=t});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe(function(t){e.returnData=t});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe(function(t){e.returnData=t});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe(function(t){e.returnData=t});break;default:return t}return this.returnData}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(c.sK,16))},t.\u0275pipe=u.Yjl({name:"applicationFormWidgetDescription",type:t,pure:!0}),t}(),w=i(65050);function _(t,e){if(1&t&&(u.TgZ(0,"mat-option",9),u._uU(1),u.ALo(2,"applicationFormItemType"),u.qZA()),2&t){var i=e.$implicit;u.Q6J("value",i),u.xp6(1),u.hij(" ",u.lcZ(2,2,i)," ")}}function A(t,e){if(1&t&&(u.TgZ(0,"mat-option",9),u._uU(1),u.qZA()),2&t){var i=e.$implicit;u.Q6J("value",i),u.xp6(1),u.hij(" ",i," ")}}var k=function(){var t=function(){function t(e,i,n,r){v(this,t),this.dialogRef=e,this.data=i,this.translateService=n,this.store=r,this.languages=this.store.get("supportedLanguages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","FROM_FEDERATION_HIDDEN","HTML_COMMENT","TEXTFIELD","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION"]}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(function(e){t.nameCtrl=new s.NI("",[s.kI.required,s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),t.nameCtrl.markAllAsTouched(),t.items.push(e);var i,n=f(t.data.applicationFormItems);try{for(n.s();!(i=n.n()).done;){var r=i.value;t.items.push(r.shortname),r.type===o.Dy.EMBEDDEDGROUPAPPLICATION&&(t.widgets=t.widgets.filter(function(t){return t!==o.Dy.EMBEDDEDGROUPAPPLICATION}))}}catch(a){n.e(a)}finally{n.f()}t.selectedItem=e})}},{key:"cancel",value:function(){this.dialogRef.close(!1)}},{key:"submit",value:function(){var t=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,t])}},{key:"createApplicationItem",value:function(){var t=(0,a.dv)(this.languages);t.id=this.data.fakeId,t.shortname=this.nameCtrl.value,t.type=this.selectedWidget;for(var e=0;e0&&(i+=", "),i+=r.friendlyName.substring(16)+": "+r.value)}}catch(o){n.e(o)}finally{n.f()}return i}},{key:"getLoginsForCandidate",value:function(t){var e="";for(var i in t.attributes)Object.prototype.hasOwnProperty.call(t.attributes,i)&&-1!==i.indexOf("urn:perun:user:attribute-def:def:login-namespace:")&&null!=t.attributes[i]&&(e.length>0&&(e+=", "),e+=i.substring(49)+": "+t.attributes[i]);return e}},{key:"getAlreadyMember",value:function(t){if("vo"===this.type){if(null!=t.member)return"Member of VO"}else{if(null!=t.member&&0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType)return"Member of Group";if(null!=t.member&&0!==t.member.sourceGroupId&&"INDIRECT"===t.member.membershipType)return"Indirect member of Group";if(null!=t.member)return"Member of VO"}return""}},{key:"isCheckboxDisabled",value:function(t){return"vo"===this.type?null!=t.member:!!t.member&&0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType}},{key:"setAddAuth",value:function(){void 0!==this.group&&0!==this.selection.selected.length&&(this.addAuth=!!this.selection.selected[0].member||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.group]))}},{key:"itemSelectionToggle",value:function(t){this.selection.toggle(t),this.setAddAuth()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(r.x4))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-members-candidates-list"]],viewQuery:function(t,e){var i;(1&t&&(l.Gf(h.YE,5),l.Gf(u.l9,7)),2&t)&&(l.iGM(i=l.CRH())&&(e.matSort=i.first),l.iGM(i=l.CRH())&&(e.child=i.first))},inputs:{members:"members",selection:"selection",type:"type",pageSize:"pageSize",group:"group"},outputs:{page:"page"},features:[l.TTD],decls:29,vars:6,consts:[[1,"card","mt-2"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"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"]],template:function(t,e){1&t&&(l.TgZ(0,"div",0),l.TgZ(1,"perun-web-apps-table-wrapper",1),l.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),l.TgZ(2,"table",2),l.ynx(3,3),l.YNc(4,C,1,0,"th",4),l.YNc(5,S,2,2,"td",5),l.BQk(),l.ynx(6,6),l.YNc(7,E,3,3,"th",7),l.YNc(8,R,2,1,"td",8),l.BQk(),l.ynx(9,9),l.YNc(10,I,3,3,"th",7),l.YNc(11,O,4,5,"td",8),l.BQk(),l.ynx(12,10),l.YNc(13,P,3,3,"th",7),l.YNc(14,D,3,3,"td",8),l.BQk(),l.ynx(15,11),l.YNc(16,M,3,3,"th",7),l.YNc(17,L,2,1,"td",8),l.BQk(),l.ynx(18,12),l.YNc(19,N,3,3,"th",7),l.YNc(20,z,2,1,"td",8),l.BQk(),l.ynx(21,13),l.YNc(22,F,3,3,"th",7),l.YNc(23,Z,2,1,"td",8),l.BQk(),l.ynx(24,14),l.YNc(25,B,1,0,"th",7),l.YNc(26,q,2,1,"td",8),l.BQk(),l.YNc(27,U,1,0,"tr",15),l.YNc(28,H,1,0,"tr",16),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.xp6(1),l.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),l.xp6(1),l.Q6J("dataSource",e.dataSource),l.xp6(25),l.Q6J("matHeaderRowDef",e.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",e.displayedColumns))},directives:[p.l,d.BZ,h.YE,d.w1,d.fO,d.Dz,d.as,d.nj,d.ge,d.ev,g.oG,h.nU,m.O5,b.gM,d.XQ,d.Gk],pipes:[w.X$,_.u,A.f,k.d,T.Z],styles:[""]}),t}(),G=i(16073),Y=i(57629),V=i(66283),K=i(80340),J=i(15980),Q=i(67806),W=i(39571),X=i(8055),$=["list"];function tt(t,e){1&t&&l._UZ(0,"mat-spinner",10)}function et(t,e){1&t&&(l.TgZ(0,"app-alert",14),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NO_USERS_FOUND")," "))}function it(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"app-members-candidates-list",15,16),l.NdJ("page",function(t){return l.CHM(i),l.oxw(3).pageChanged(t)}),l.qZA()}if(2&t){var n=l.oxw(3);l.Q6J("group",n.data.group)("pageSize",n.pageSize)("selection",n.selection)("members",n.members)("type",n.data.type)}}function nt(t,e){if(1&t&&(l.TgZ(0,"div",11),l.YNc(1,et,3,3,"app-alert",12),l.YNc(2,it,2,5,"app-members-candidates-list",13),l.qZA()),2&t){var i=l.oxw(2);l.xp6(1),l.Q6J("ngIf",0===i.members.length&&i.firstSearchDone),l.xp6(1),l.Q6J("ngIf",0!==i.members.length)}}function rt(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div",4),l.TgZ(1,"mat-form-field",5),l.TgZ(2,"label"),l.TgZ(3,"input",6),l.NdJ("keyup.enter",function(){return l.CHM(i),l.oxw().onSearchByString()}),l.ALo(4,"translate"),l.qZA(),l.qZA(),l.TgZ(5,"mat-error"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.qZA(),l.TgZ(8,"button",7),l.NdJ("click",function(){return l.CHM(i),l.oxw().onSearchByString()}),l._uU(9),l.ALo(10,"translate"),l.qZA(),l.TgZ(11,"div",8),l.YNc(12,tt,1,0,"mat-spinner",2),l.qZA(),l.YNc(13,nt,3,2,"div",9),l.qZA()}if(2&t){var n=l.oxw();l.xp6(3),l.s9C("placeholder",l.lcZ(4,7,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),l.Q6J("formControl",n.searchCtrl),l.xp6(3),l.hij(" ",l.lcZ(7,9,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")," "),l.xp6(2),l.Q6J("disabled",n.loading),l.xp6(1),l.hij(" ",l.lcZ(10,11,"DIALOGS.ADD_MEMBERS.SEARCH")," "),l.xp6(3),l.Q6J("ngIf",n.loading),l.xp6(1),l.Q6J("ngIf",!!n.members&&!n.loading)}}function ot(t,e){1&t&&l._UZ(0,"mat-spinner",10)}function at(t,e){if(1&t&&(l.TgZ(0,"button",24),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t){l.oxw();var i=l.MAs(8),n=l.oxw();l.Q6J("disabled",0===n.selection.selected.length||n.loading)("matMenuTriggerFor",i),l.xp6(1),l.hij(" ",l.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function st(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",25),l.NdJ("click",function(){var t=l.CHM(i).$implicit;return l.oxw(2).onInvite(t)}),l._uU(1),l.ALo(2,"translate"),l.ALo(3,"uppercase"),l.qZA()}if(2&t){var n=e.$implicit;l.xp6(1),l.hij(" ",l.lcZ(2,1,l.lcZ(3,3,"SHARED_LIB.LANGUAGES."+n))," ")}}function ut(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div",17),l.TgZ(1,"button",18),l.NdJ("click",function(){return l.CHM(i),l.oxw().onCancel()}),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"span",19),l.ALo(5,"translate"),l.YNc(6,at,3,5,"button",20),l.TgZ(7,"mat-menu",null,21),l.YNc(9,st,4,5,"button",22),l.qZA(),l.qZA(),l.TgZ(10,"button",23),l.NdJ("click",function(){return l.CHM(i),l.oxw().onAdd()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,7,"DIALOGS.ADD_MEMBERS.CANCEL")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(5,9,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),l.Q6J("matTooltipDisabled",0===n.selection.selected.length||"group"!==n.data.type||void 0!==n.list&&n.list.addAuth),l.xp6(2),l.Q6J("ngIf","group"!==n.data.type||"group"===n.data.type&&n.inviteAuth),l.xp6(3),l.Q6J("ngForOf",n.languages),l.xp6(1),l.Q6J("disabled",0===n.selection.selected.length||n.loading||"group"===n.data.type&&void 0!==n.list&&!n.list.addAuth),l.xp6(1),l.hij(" ",l.lcZ(12,11,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}var ct=function(){var t=function(){function t(e,i,n,r,a,s,u,l,h,d,f,p,g){var m=this;v(this,t),this.dialogRef=e,this.data=i,this.membersManagerService=n,this.groupService=r,this.voService=a,this.registrarManager=s,this.translate=u,this.notificator=l,this.route=h,this.tableConfigService=d,this.router=f,this.guiAuthResolver=p,this.store=g,this.languages=["en"],this.selection=new o.Ov(!1,[]),this.members=[],this.firstSearchDone=!1,this.tableId=c.tY,this.inviteAuth=!1,u.get("DIALOGS.ADD_MEMBERS.TITLE").subscribe(function(t){return m.title=t})}return y(t,[{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onAdd",value:function(){this.processing=!0;var t=this.selection.selected[0];"vo"===this.data.type?t.richUser?this.addUserToVo(t):this.addCandidateToVo(t):"group"===this.data.type&&(t.member?this.addMemberToGroup(t):t.richUser?this.addUserToGroup(t):t.candidate&&this.addCandidateToGroup(t))}},{key:"onInvite",value:function(t){var e=this;this.processing=!0,this.selection.selected[0].richUser?"vo"===this.data.type?this.registrarManager.sendInvitationToExistingUser(this.selection.selected[0].richUser.id,this.data.entityId).subscribe(function(){e.onInviteSuccess()},function(){return e.onError()}):"group"===this.data.type&&this.registrarManager.sendInvitationGroupToExistingUser(this.selection.selected[0].richUser.id,this.data.voId,this.data.group.id).subscribe(function(){e.onInviteSuccess()},function(){return e.onError()}):"vo"===this.data.type?this.registrarManager.sendInvitation((0,u.Jc)(this.selection.selected[0].candidate),t,this.data.voId).subscribe(function(){e.onInviteSuccess()},function(){return e.onError()}):"group"===this.data.type&&this.registrarManager.sendInvitationForGroup((0,u.Jc)(this.selection.selected[0].candidate),t,this.data.voId,this.data.group.id).subscribe(function(){e.onInviteSuccess()},function(){return e.onError()})}},{key:"onSearchByString",value:function(){var t=this;this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.loading=!0,this.selection.clear(),"vo"===this.data.type?this.voService.getCompleteCandidatesForVo(this.data.entityId,[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(function(e){t.members=e,t.loading=!1,t.firstSearchDone=!0},function(){return t.loading=!1}):this.voService.getCompleteCandidatesForGroup(this.data.entityId,[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(function(e){t.members=e,t.loading=!1,t.firstSearchDone=!0},function(){return t.loading=!1}))}},{key:"ngOnInit",value:function(){this.languages=this.store.get("supportedLanguages"),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,"group"===this.data.type&&(this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group])),this.searchCtrl=new G.NI("",[G.kI.required,G.kI.pattern(".*[\\S]+.*")])}},{key:"addUserToVo",value:function(t){var e=this;this.membersManagerService.createMemberForUser({vo:this.data.entityId,user:t.richUser.id}).subscribe(function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe(function(){e.onValidateSuccess()},function(){return e.onCancel()})},function(){return e.onError()})}},{key:"addCandidateToVo",value:function(t){var e=this;this.membersManagerService.createMemberForCandidate({vo:this.data.entityId,candidate:this.createCandidate(t.candidate)}).subscribe(function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe(function(){e.onValidateSuccess()},function(){return e.onCancel()})},function(){return e.onError()})}},{key:"addUserToGroup",value:function(t){var e=this;this.membersManagerService.createMemberForUser({vo:this.data.voId,user:t.richUser.id,groups:[{id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId}]}).subscribe(function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe(function(){e.onValidateSuccess()},function(){return e.onCancel()})},function(){return e.onError()})}},{key:"addMemberToGroup",value:function(t){var e=this;this.groupService.addMembers(this.data.entityId,[t.member.id]).subscribe(function(){e.onAddSuccess()},function(){return e.onError()})}},{key:"addCandidateToGroup",value:function(t){var e=this,i={id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId};this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.createCandidate(t.candidate),groups:[i]}).subscribe(function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe(function(){e.onValidateSuccess()},function(){return e.onCancel()})},function(){return e.onError()})}},{key:"onAddSuccess",value:function(){var t=this;this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})}},{key:"onError",value:function(){this.selection.clear(),this.processing=!1}},{key:"onInviteSuccess",value:function(){var t=this;this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})}},{key:"onValidateSuccess",value:function(){this.dialogRef.close(!0)}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"createCandidate",value:function(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}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(n.so),l.Y36(n.WI),l.Y36(a.uq),l.Y36(a.ff),l.Y36(a.YF),l.Y36(a.tk),l.Y36(w.sK),l.Y36(r.V6),l.Y36(Y.gz),l.Y36(c.dB),l.Y36(Y.F0),l.Y36(r.x4),l.Y36(r.d6))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-add-member-dialog"]],viewQuery:function(t,e){var i;(1&t&&l.Gf($,5),2&t)&&(l.iGM(i=l.CRH())&&(e.list=i.first))},decls:7,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"ml-auto",3,"disabled","click"],[1,"no-bounce-scrollbar"],["class","mt-3",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"group","pageSize","selection","members","type","page",4,"ngIf"],["alert_type","warn"],[3,"group","pageSize","selection","members","type","page"],["list",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["class","ml-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,rt,14,13,"div",1),l.YNc(5,ot,1,0,"mat-spinner",2),l.YNc(6,ut,13,13,"div",3),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,7,"DIALOGS.ADD_MEMBERS.TITLE")),l.xp6(2),l.Q6J("ngIf",!e.processing),l.xp6(1),l.Q6J("ngIf",e.processing),l.xp6(1),l.Q6J("ngIf",!e.processing))},directives:[n.uh,m.O5,n.xY,V.KE,K.Nt,G.Fj,G.JJ,G.oH,V.TO,J.lW,Q.$g,W.w,j,n.H8,b.gM,X.VK,m.sg,X.p6,X.OP],pipes:[w.X$,m.gd],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}"]}),t}()},68570:function(t,e,i){"use strict";i.d(e,{W:function(){return p}});var n=i(84608),r=i(33642),o=i(88426),a=i(31572),s=i(48160),u=i(61511),c=i(19386),l=i(37665),h=i(15980),d=i(67806);function f(t,e){1&t&&a._UZ(0,"mat-spinner",9)}var p=function(){var t=function(){function t(e,i,n,r,o,a,s,u){var c=this;v(this,t),this.dialogRef=e,this.voService=i,this.groupService=n,this.translateService=r,this.registrarManager=o,this.notificatorService=a,this.apiRequest=s,this.data=u,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=function(t){return t.name},r.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(function(t){return c.successMessage=t}),r.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(function(t){return c.privilegeMessage=t}),r.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(function(t){return c.noFormMessage=t})}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.translateService.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_GROUP_SELECTED").subscribe(function(){t.voService.getMyVos().subscribe(function(e){t.vos=e.sort(function(t,e){return t.name>e.name?1:t.name-1),u.xp6(1),u.Q6J("label",u.lcZ(8,21,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE"))("description",u.lcZ(9,23,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION")),u.xp6(4),u.Q6J("value",n.applicationFormItem.perunSourceAttribute),u.xp6(1),u.Q6J("ngForOf",n.sourceAttributes),u.xp6(1),u.Q6J("label",u.lcZ(14,25,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE"))("description",u.lcZ(15,27,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION")),u.xp6(4),u.Q6J("value",n.applicationFormItem.perunDestinationAttribute),u.xp6(1),u.Q6J("ngForOf",n.destinationAttributes),u.xp6(1),u.Q6J("label",u.lcZ(20,29,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE"))("description",u.lcZ(21,31,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION")),u.xp6(4),u.Q6J("value",n.federationAttribute),u.xp6(1),u.Q6J("ngForOf",n.federationAttributes),u.xp6(1),u.Q6J("ngIf","custom"===n.federationAttribute)}}function Z(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"app-edit-application-form-item-line",11),u.ALo(2,"translate"),u.ALo(3,"translate"),u.TgZ(4,"mat-form-field",12),u.TgZ(5,"input",13),u.NdJ("ngModelChange",function(t){return u.CHM(i),u.oxw(2).applicationFormItem.regex=t}),u.qZA(),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=u.oxw(2);u.xp6(1),u.Q6J("label",u.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX"))("description",u.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION")),u.xp6(4),u.Q6J("ngModel",n.applicationFormItem.regex)}}function B(t,e){if(1&t&&(u.TgZ(0,"mat-option",24),u._uU(1),u.ALo(2,"applicationFormItemDisabled"),u.qZA()),2&t){var i=e.$implicit;u.Q6J("value",i),u.xp6(1),u.hij(" ",u.lcZ(2,2,i)," ")}}function q(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"perun-web-apps-app-form-item-search-select",25),u.NdJ("itemSelected",function(t){return u.CHM(i),u.oxw(3).disabledDependencyItem=t}),u.qZA()}if(2&t){var n=u.oxw(3);u.Q6J("item",n.disabledDependencyItem)("items",n.possibleDependencyItems)}}function U(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"app-edit-application-form-item-line",11),u.ALo(2,"translate"),u.ALo(3,"translate"),u.TgZ(4,"mat-form-field",12),u.TgZ(5,"mat-select",17),u.NdJ("valueChange",function(t){return u.CHM(i),u.oxw(2).applicationFormItem.disabled=t}),u.YNc(6,B,3,4,"mat-option",18),u.qZA(),u.qZA(),u.qZA(),u.TgZ(7,"app-edit-application-form-item-line",11),u.ALo(8,"translate"),u.ALo(9,"translate"),u.TgZ(10,"div",12),u.YNc(11,q,1,2,"perun-web-apps-app-form-item-search-select",19),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=u.oxw(2);u.xp6(1),u.Q6J("label",u.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED"))("description",u.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION")),u.xp6(4),u.Q6J("value",n.applicationFormItem.disabled),u.xp6(1),u.Q6J("ngForOf",n.disabledValues),u.xp6(1),u.Q6J("label",u.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY"))("description",u.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION")),u.xp6(4),u.Q6J("ngIf",null!==n.disabledDependencyItem)}}function H(t,e){if(1&t&&(u.TgZ(0,"mat-option",24),u._uU(1),u.ALo(2,"applicationFormItemHidden"),u.qZA()),2&t){var i=e.$implicit;u.Q6J("value",i),u.xp6(1),u.hij(" ",u.lcZ(2,2,i)," ")}}function j(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"perun-web-apps-app-form-item-search-select",25),u.NdJ("itemSelected",function(t){return u.CHM(i),u.oxw(2).hiddenDependencyItem=t}),u.qZA()}if(2&t){var n=u.oxw(2);u.Q6J("item",n.hiddenDependencyItem)("items",n.possibleDependencyItems)}}function G(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"app-edit-application-form-item-line",11),u.ALo(2,"translate"),u.ALo(3,"translate"),u.TgZ(4,"mat-form-field",12),u.TgZ(5,"textarea",26),u.NdJ("ngModelChange",function(t){u.CHM(i);var e=u.oxw().$implicit;return u.oxw(2).applicationFormItem.i18n[e].label=t}),u.qZA(),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=u.oxw().$implicit,r=u.oxw(2);u.xp6(1),u.Q6J("label",u.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT"))("description",u.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION")),u.xp6(4),u.Q6J("cdkTextareaAutosize",!0)("ngModel",r.applicationFormItem.i18n[n].label)}}function Y(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"app-edit-application-form-item-line",11),u.ALo(2,"translate"),u.ALo(3,"translate"),u.TgZ(4,"mat-form-field",12),u.TgZ(5,"textarea",13),u.NdJ("ngModelChange",function(t){u.CHM(i);var e=u.oxw().$implicit;return u.oxw(2).applicationFormItem.i18n[e].label=t}),u.qZA(),u.qZA(),u.qZA(),u.TgZ(6,"app-edit-application-form-item-line",11),u.ALo(7,"translate"),u.ALo(8,"translate"),u.TgZ(9,"mat-form-field",12),u.TgZ(10,"textarea",13),u.NdJ("ngModelChange",function(t){u.CHM(i);var e=u.oxw().$implicit;return u.oxw(2).applicationFormItem.i18n[e].help=t}),u.qZA(),u.qZA(),u.qZA(),u.TgZ(11,"app-edit-application-form-item-line",11),u.ALo(12,"translate"),u.ALo(13,"translate"),u.TgZ(14,"mat-form-field",12),u.TgZ(15,"textarea",13),u.NdJ("ngModelChange",function(t){u.CHM(i);var e=u.oxw().$implicit;return u.oxw(2).applicationFormItem.i18n[e].errorMessage=t}),u.qZA(),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=u.oxw().$implicit,r=u.oxw(2);u.xp6(1),u.Q6J("label",u.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",u.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION")),u.xp6(4),u.Q6J("ngModel",r.applicationFormItem.i18n[n].label),u.xp6(1),u.Q6J("label",u.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP"))("description",u.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION")),u.xp6(4),u.Q6J("ngModel",r.applicationFormItem.i18n[n].help),u.xp6(1),u.Q6J("label",u.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR"))("description",u.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION")),u.xp6(4),u.Q6J("ngModel",r.applicationFormItem.i18n[n].errorMessage)}}function V(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"app-edit-application-form-item-line",11),u.ALo(2,"translate"),u.ALo(3,"translate"),u.TgZ(4,"mat-form-field",12),u.TgZ(5,"textarea",13),u.NdJ("ngModelChange",function(t){u.CHM(i);var e=u.oxw().$implicit;return u.oxw(2).applicationFormItem.i18n[e].label=t}),u.qZA(),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=u.oxw().$implicit,r=u.oxw(2);u.xp6(1),u.Q6J("label",u.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",u.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION")),u.xp6(4),u.Q6J("ngModel",r.applicationFormItem.i18n[n].label)}}function K(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.TgZ(3,"mat-form-field"),u.TgZ(4,"input",13),u.NdJ("ngModelChange",function(t){return e.$implicit[0]=t}),u.qZA(),u.qZA(),u._uU(5),u.ALo(6,"translate"),u.TgZ(7,"mat-form-field"),u.TgZ(8,"input",13),u.NdJ("ngModelChange",function(t){return e.$implicit[1]=t}),u.qZA(),u.qZA(),u.TgZ(9,"button",35),u.NdJ("click",function(){var t=u.CHM(i).$implicit,e=u.oxw(2).$implicit;return u.oxw(2).removeOption(t,e)}),u.ALo(10,"translate"),u.TgZ(11,"mat-icon"),u._uU(12,"clear"),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=e.$implicit;u.xp6(1),u.hij(" ",u.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),u.xp6(3),u.Q6J("ngModel",n[0]),u.xp6(1),u.hij(" ",u.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),u.xp6(3),u.Q6J("ngModel",n[1]),u.xp6(1),u.s9C("matTooltip",u.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function J(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"div",27),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",28),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"div",29),u.TgZ(8,"button",30),u.NdJ("click",function(){u.CHM(i);var t=u.oxw().$implicit;return u.oxw(2).sortOptionsAZ(t)}),u.TgZ(9,"i",31),u._uU(10,"arrow_downward"),u.qZA(),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.TgZ(13,"button",32),u.NdJ("click",function(){u.CHM(i);var t=u.oxw().$implicit;return u.oxw(2).sortOptionsZA(t)}),u.TgZ(14,"i",31),u._uU(15,"arrow_upward"),u.qZA(),u._uU(16),u.ALo(17,"translate"),u.qZA(),u.qZA(),u.YNc(18,K,13,11,"div",33),u.TgZ(19,"button",34),u.NdJ("click",function(){u.CHM(i);var t=u.oxw().$implicit;return u.oxw(2).addOption(t)}),u._uU(20),u.ALo(21,"translate"),u.qZA(),u.qZA()}if(2&t){var n=u.oxw().$implicit,r=u.oxw(2);u.xp6(2),u.hij("",u.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),":"),u.xp6(3),u.hij(" ",u.lcZ(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),u.xp6(6),u.hij(" ",u.lcZ(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),u.xp6(5),u.hij(" ",u.lcZ(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),u.xp6(2),u.Q6J("ngForOf",r.options[n]),u.xp6(2),u.hij(" ",u.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}var Q=function(){return["HEADING","HTML_COMMENT"]},W=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION"]},X=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},$=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function tt(t,e){if(1&t&&(u.TgZ(0,"mat-tab",10),u.ALo(1,"translate"),u.ALo(2,"uppercase"),u.YNc(3,G,6,8,"div",16),u.YNc(4,Y,16,21,"div",16),u.YNc(5,V,6,7,"div",16),u.YNc(6,J,22,16,"div",16),u.qZA()),2&t){var i=e.$implicit,n=u.oxw(2);u.s9C("label",u.lcZ(1,5,u.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+i))),u.xp6(3),u.Q6J("ngIf",n.isApplicationFormItemOfType(u.DdM(9,Q))),u.xp6(1),u.Q6J("ngIf",n.isApplicationFormItemOfType(u.DdM(10,W))),u.xp6(1),u.Q6J("ngIf",n.isApplicationFormItemOfType(u.DdM(11,X))),u.xp6(1),u.Q6J("ngIf",n.isApplicationFormItemOfType(u.DdM(12,$)))}}var et=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]},it=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]};function nt(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div",8),u.TgZ(1,"mat-tab-group",9),u.TgZ(2,"mat-tab",10),u.ALo(3,"translate"),u.TgZ(4,"app-edit-application-form-item-line",11),u.ALo(5,"translate"),u.ALo(6,"translate"),u.TgZ(7,"mat-form-field",12),u.TgZ(8,"input",13),u.NdJ("ngModelChange",function(t){return u.CHM(i),u.oxw().applicationFormItem.shortname=t}),u.qZA(),u.qZA(),u.qZA(),u.TgZ(9,"app-edit-application-form-item-line",11),u.ALo(10,"translate"),u.ALo(11,"translate"),u._uU(12),u.ALo(13,"applicationFormItemType"),u.qZA(),u.TgZ(14,"app-edit-application-form-item-line",11),u.ALo(15,"translate"),u.ALo(16,"translate"),u.TgZ(17,"section"),u.TgZ(18,"mat-checkbox",14),u.NdJ("change",function(){return u.CHM(i),u.oxw().onChangingType("INITIAL")}),u._uU(19),u.ALo(20,"translate"),u.qZA(),u.TgZ(21,"mat-checkbox",15),u.NdJ("change",function(){return u.CHM(i),u.oxw().onChangingType("EXTENSION")}),u._uU(22),u.ALo(23,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(24,F,26,33,"div",16),u.YNc(25,Z,6,7,"div",16),u.YNc(26,U,12,15,"div",16),u.TgZ(27,"app-edit-application-form-item-line",11),u.ALo(28,"translate"),u.ALo(29,"translate"),u.TgZ(30,"mat-form-field",12),u.TgZ(31,"mat-select",17),u.NdJ("valueChange",function(t){return u.CHM(i),u.oxw().applicationFormItem.hidden=t}),u.YNc(32,H,3,4,"mat-option",18),u.qZA(),u.qZA(),u.qZA(),u.TgZ(33,"app-edit-application-form-item-line",11),u.ALo(34,"translate"),u.ALo(35,"translate"),u.TgZ(36,"div",12),u.YNc(37,j,1,2,"perun-web-apps-app-form-item-search-select",19),u.qZA(),u.qZA(),u.qZA(),u.YNc(38,tt,7,13,"mat-tab",20),u.qZA(),u.qZA()}if(2&t){var n=u.oxw();u.xp6(2),u.s9C("label",u.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),u.xp6(2),u.Q6J("label",u.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME"))("description",u.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION")),u.xp6(4),u.Q6J("ngModel",n.applicationFormItem.shortname),u.xp6(1),u.Q6J("label",u.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET"))("description",u.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION")),u.xp6(3),u.hij(" ",u.lcZ(13,34,n.applicationFormItem.type)," "),u.xp6(2),u.Q6J("label",u.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION"))("description",u.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION")),u.xp6(4),u.Q6J("ngModel",n.applicationFormItem.applicationTypes.includes("INITIAL")),u.xp6(1),u.hij(" ",u.lcZ(20,40,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),u.xp6(2),u.Q6J("ngModel",n.applicationFormItem.applicationTypes.includes("EXTENSION")),u.xp6(1),u.hij(" ",u.lcZ(23,42,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),u.xp6(2),u.Q6J("ngIf",n.isApplicationFormItemOfType(u.DdM(52,et))),u.xp6(1),u.Q6J("ngIf",n.isApplicationFormItemOfType(u.DdM(53,it))),u.xp6(1),u.Q6J("ngIf",n.typesWithDisabled.indexOf(n.applicationFormItem.type)>-1),u.xp6(1),u.Q6J("label",u.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN"))("description",u.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION")),u.xp6(4),u.Q6J("value",n.applicationFormItem.hidden),u.xp6(1),u.Q6J("ngForOf",n.hiddenValues),u.xp6(1),u.Q6J("label",u.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY"))("description",u.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION")),u.xp6(4),u.Q6J("ngIf",null!==n.hiddenDependencyItem),u.xp6(1),u.Q6J("ngForOf",n.languages)}}var rt=function t(e,i){v(this,t),this.value=i,this.displayName=e},ot=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this.dialogRef=e,this.data=i,this.attributesManager=n,this.translateService=r,this.store=o,this.federationAttributes=[],this.federationAttribute="",this.sourceAttributes=[],this.destinationAttributes=[],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"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"],this.languages=["en"]}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.languages=this.store.get("supportedLanguages"),this.hiddenDependencyItem=this.data.allItems.find(function(e){return e.id===t.data.applicationFormItem.hiddenDependencyItemId}),this.hiddenDependencyItem||(this.hiddenDependencyItem=a.Sx),this.disabledDependencyItem=this.data.allItems.find(function(e){return e.id===t.data.applicationFormItem.disabledDependencyItemId}),this.disabledDependencyItem||(this.disabledDependencyItem=a.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,o.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(function(e){t.attributeDefinitions=e,t.getDestinationAndSourceAttributes(),t.loading=!1},function(){return t.loading=!1}),this.getFederationAttributes(),this.getFederationAttribute(),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}},{key:"getPossibleDepItems",value:function(){var t=this;return[a.Sx].concat(this.data.allItems.filter(function(e){return t.dependencyTypes.indexOf(e.type)>-1}).filter(function(e){return e.id!==t.data.applicationFormItem.id}))}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===a.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===a.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}},{key:"onChangingType",value:function(t){if(this.applicationFormItem.applicationTypes.includes(t)){var e=this.applicationFormItem.applicationTypes.indexOf(t);this.applicationFormItem.applicationTypes.splice(e,1)}else this.applicationFormItem.applicationTypes.push(t)}},{key:"getDestinationAndSourceAttributes",value:function(){var t=this;this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(function(e){t.sourceAttributes.push(new rt(e,"")),t.destinationAttributes.push(new rt(e,""))});var e,i=f(this.attributeDefinitions);try{for(i.s();!(e=i.n()).done;){var n=e.value;"user"===n.entity.toLowerCase()||"member"===n.entity.toLowerCase()?(this.sourceAttributes.push(new rt(n.friendlyName+" ("+n.entity+" / "+this.getDefinition(n)+")",n.namespace+":"+n.friendlyName)),this.destinationAttributes.push(new rt(n.friendlyName+" ("+n.entity+" / "+this.getDefinition(n)+")",n.namespace+":"+n.friendlyName))):("vo"===n.entity.toLowerCase()||"group"===n.entity.toLowerCase()&&this.data.group)&&this.sourceAttributes.push(new rt(n.friendlyName+" ("+n.entity+" / "+this.getDefinition(n)+")",n.namespace+":"+n.friendlyName))}}catch(r){i.e(r)}finally{i.f()}}},{key:"getFederationAttributes",value:function(){var t=this;this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(function(e){t.federationAttributes.push(new rt(e,"")),t.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(function(e){t.federationAttributes.push(new rt(e,"custom")),t.federationAttributes.push(new rt("Display name","displayName")),t.federationAttributes.push(new rt("Common name","cn")),t.federationAttributes.push(new rt("Mail","mail")),t.federationAttributes.push(new rt("Organization","o")),t.federationAttributes.push(new rt("Level of Assurance (LoA)","loa")),t.federationAttributes.push(new rt("First name","givenName")),t.federationAttributes.push(new rt("Surname","sn")),t.federationAttributes.push(new rt("EPPN","eppn")),t.federationAttributes.push(new rt("IdP Category","md_entityCategory")),t.federationAttributes.push(new rt("IdP Affiliation","affiliation")),t.federationAttributes.push(new rt("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),t.federationAttributes.push(new rt("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),t.federationAttributes.push(new rt("schacHomeOrganization","schacHomeOrganization")),t.federationAttributes.push(new rt("Login","uid")),t.federationAttributes.push(new rt("Alternative login name","alternativeLoginName"))})})}},{key:"getFederationAttribute",value:function(){if(this.applicationFormItem.federationAttribute){var t,e=f(this.federationAttributes);try{for(e.s();!(t=e.n()).done;){var i=t.value;if(i.value===this.applicationFormItem.federationAttribute)return void(this.federationAttribute=i.value)}}catch(n){e.e(n)}finally{e.f()}this.federationAttribute="custom"}}},{key:"federationAttributeschanged",value:function(){this.applicationFormItem.federationAttribute="custom"!==this.federationAttribute?this.federationAttribute:""}},{key:"getDefinition",value:function(t){var e=t.namespace.split(":");return null===e[4]?"null":e[4]}},{key:"addOption",value:function(t){this.options[t].push(["",""])}},{key:"removeOption",value:function(t,e){this.options[e]=this.options[e].filter(function(e){return!(e[0]===t[0]&&e[1]===t[1])})}},{key:"updateOption",value:function(t){var e="";if(this.options&&this.options[t]){var i,n=f(this.options[t]);try{for(n.s();!(i=n.n()).done;){var r=i.value;""!==r[0]&&""!==r[1]&&(e=""===e?r[0]+"#"+r[1]:e+"|"+r[0]+"#"+r[1])}}catch(o){n.e(o)}finally{n.f()}}this.applicationFormItem.i18n[t].options=e}},{key:"updateOptions",value:function(){var t,e=f(this.languages);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.updateOption(i)}}catch(n){e.e(n)}finally{e.f()}}},{key:"copy",value:function(t,e){e.applicationTypes=t.applicationTypes,e.federationAttribute=t.federationAttribute,e.forDelete=t.forDelete;var i,n=f(this.languages);try{for(n.s();!(i=n.n()).done;){var r=i.value;e.i18n[r].errorMessage=t.i18n[r].errorMessage,e.i18n[r].help=t.i18n[r].help,e.i18n[r].label=t.i18n[r].label,e.i18n[r].options=t.i18n[r].options}}catch(o){n.e(o)}finally{n.f()}e.id=t.id,e.ordnum=t.ordnum,e.perunDestinationAttribute=t.perunDestinationAttribute,e.perunSourceAttribute=t.perunSourceAttribute,e.regex=t.regex,e.required=t.required,e.shortname=t.shortname,e.type=t.type,e.updatable=t.updatable,e.disabled=t.disabled,e.hidden=t.hidden,e.disabledDependencyItemId=t.disabledDependencyItemId,e.hiddenDependencyItemId=t.hiddenDependencyItemId}},{key:"sortOptionsAZ",value:function(t){this.options[t]=this.options[t].sort(function(t,e){return t[1]>e[1]?1:t[1]e[1]?-1:t[1]-1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(n.so),u.Y36(n.WI),u.Y36(r.H8),u.Y36(c.sK),u.Y36(s.d6))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-edit-application-form-item-dialog"]],decls:14,vars:16,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2","mt-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["color","primary"],[3,"label"],[3,"label","description"],[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"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["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"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-icon-button","","color","warn",3,"matTooltip","click"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"div",0),u.TgZ(2,"h1",1),u._uU(3),u.ALo(4,"translate"),u.qZA(),u.YNc(5,P,1,0,"mat-spinner",2),u.YNc(6,nt,39,54,"div",3),u.TgZ(7,"div",4),u.TgZ(8,"button",5),u.NdJ("click",function(){return e.cancel()}),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.TgZ(11,"button",6),u.NdJ("click",function(){return e.submit()}),u._uU(12),u.ALo(13,"translate"),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&t&&(u.Gre("",e.theme," h-100"),u.xp6(3),u.AsE("",u.lcZ(4,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",e.applicationFormItem.shortname,""),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(3),u.hij(" ",u.lcZ(10,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),u.xp6(2),u.Q6J("disabled",e.loading),u.xp6(1),u.hij(" ",u.lcZ(13,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},directives:[n.uh,l.O5,n.H8,h.lW,d.$g,n.xY,p.SP,p.uX,m,b.KE,w.Nt,_.Fj,_.JJ,_.On,A.oG,k.gD,l.sg,T.ey,C.Y,S.IC,E.gM,x.Hw],pipes:[c.X$,R.c,I,O,l.gd],styles:[""]}),t}()},79592:function(t,e,i){"use strict";i.d(e,{H:function(){return M}});var n=i(33642),r=i(84608),o=i(88426),a=i(67033),s=i(27613),u=i(81954),c=i(61511),l=i(31572),h=i(48160),d=i(15980),f=i(67806),p=i(43691),g=i(36922),m=i(22196);function b(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function w(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")))}function _(t,e){if(1&t&&(l.TgZ(0,"td",18),l._uU(1),l.qZA()),2&t){var i=e.$implicit;l.xp6(1),l.hij(" ",i.user.id," ")}}function A(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")))}function k(t,e){if(1&t&&(l.TgZ(0,"td",18),l._uU(1),l.ALo(2,"userFullName"),l.qZA()),2&t){var i=e.$implicit;l.xp6(1),l.hij(" ",l.lcZ(2,1,i.user)," ")}}function T(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")))}function C(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",20),l.NdJ("click",function(){l.CHM(i);var t=l.oxw().$implicit;return l.oxw(2).changeExpiration(t)}),l.TgZ(1,"mat-icon"),l._uU(2," today "),l.qZA(),l.qZA()}}function S(t,e){if(1&t&&(l.TgZ(0,"td",18),l.TgZ(1,"span"),l._uU(2),l.qZA(),l.YNc(3,C,3,0,"button",19),l.qZA()),2&t){var i=e.$implicit,n=l.oxw(2);l.xp6(2),l.Oqu(n.parseDate(i.validityTo)),l.xp6(1),l.Q6J("ngIf",n.isExpirationAuthorized(i))}}function E(t,e){1&t&&l._UZ(0,"th",17)}function x(t,e){1&t&&(l.TgZ(0,"mat-icon",25),l._uU(1,"clear"),l.qZA())}function R(t,e){1&t&&(l.TgZ(0,"mat-icon"),l._uU(1,"settings_backup_restore"),l.qZA())}function I(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"td",18),l.TgZ(1,"div",21),l.ALo(2,"translate"),l.TgZ(3,"button",22),l.NdJ("click",function(){var t=l.CHM(i).$implicit;return l.oxw(2).markSponsor(t)}),l.YNc(4,x,2,0,"mat-icon",23),l.YNc(5,R,2,0,"mat-icon",24),l.qZA(),l.qZA(),l.qZA()}if(2&t){var n=e.$implicit,r=l.oxw(2);l.xp6(1),l.s9C("matTooltip",l.lcZ(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),l.Q6J("matTooltipPosition","above")("matTooltipDisabled",r.isRemoveAuthorized(n)),l.xp6(2),l.Q6J("disabled",!r.isRemoveAuthorized(n)),l.xp6(1),l.Q6J("ngIf",!r.sponsorsToRemove.has(n.user.id)),l.xp6(1),l.Q6J("ngIf",r.sponsorsToRemove.has(n.user.id))}}function O(t,e){1&t&&l._UZ(0,"tr",26)}function P(t,e){if(1&t&&l._UZ(0,"tr",27),2&t){var i=e.$implicit,n=l.oxw(2);l.ekj("make-red",n.sponsorsToRemove.has(i.user.id))}}function D(t,e){if(1&t&&(l.TgZ(0,"div",7),l.TgZ(1,"table",8),l.ynx(2,9),l.YNc(3,w,3,3,"th",10),l.YNc(4,_,2,1,"td",11),l.BQk(),l.ynx(5,12),l.YNc(6,A,3,3,"th",10),l.YNc(7,k,3,3,"td",11),l.BQk(),l.ynx(8,13),l.YNc(9,T,3,3,"th",10),l.YNc(10,S,4,2,"td",11),l.BQk(),l.ynx(11,14),l.YNc(12,E,1,0,"th",10),l.YNc(13,I,6,8,"td",11),l.BQk(),l.YNc(14,O,1,0,"tr",15),l.YNc(15,P,1,2,"tr",16),l.qZA(),l.qZA()),2&t){var i=l.oxw();l.xp6(1),l.Q6J("dataSource",i.dataSource),l.xp6(13),l.Q6J("matHeaderRowDef",i.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",i.displayedColumns)}}var M=function(){var t=function(){function t(e,i,n,r,o,a,s,u){v(this,t),this.dialogRef=e,this.data=i,this.memberService=n,this.userService=r,this.notificator=o,this.authResolver=a,this.translate=s,this.dialog=u,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.expirationChanged=!1,this.sponsorsToRemove=new Set}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new a.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}},{key:"markSponsor",value:function(t){this.sponsorsToRemove.has(t.user.id)?this.sponsorsToRemove.delete(t.user.id):this.sponsorsToRemove.add(t.user.id)}},{key:"removeSponsors",value:function(t){var e=this;if(0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);var i=t.pop();this.memberService.removeSponsor(this.data.member.id,i).subscribe(function(){e.removeSponsors(t)},function(){return e.loading=!1})}},{key:"onSubmit",value:function(){this.loading=!0;var t=Array.from(this.sponsorsToRemove);this.removeSponsors(t)}},{key:"onCancel",value:function(){this.dialogRef.close(this.expirationChanged)}},{key:"isRemoveAuthorized",value:function(t){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[t.user])}},{key:"isExpirationAuthorized",value:function(t){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[t.user,this.vo])}},{key:"parseDate",value:function(t){return null===t?"Never expire":(0,c.p6)(t,"d.M.y","en")}},{key:"changeExpiration",value:function(t){var e=this,i=(0,s.kZ)();i.width="400px",i.data={memberId:this.data.member.id,sponsor:t},this.dialog.open(u.hd,i).afterClosed().subscribe(function(t){t&&(e.loading=!0,e.expirationChanged=!0,e.userService.getSponsorsForMember(e.data.member.id,[]).subscribe(function(t){e.sponsors=t,e.dataSource=new a.by(e.sponsors),e.loading=!1}))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(r.so),l.Y36(r.WI),l.Y36(n.uq),l.Y36(n.Fv),l.Y36(o.V6),l.Y36(o.x4),l.Y36(h.sK),l.Y36(r.uw))},t.\u0275cmp=l.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["mat-header-row","","class","font-weight-bolder",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"div"),l.YNc(4,b,1,0,"mat-spinner",1),l.YNc(5,D,16,3,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onSubmit()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),l.xp6(2),l.Tol(e.theme),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.hij(" ",l.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL"),""),l.xp6(2),l.Q6J("disabled",e.loading||0===e.sponsorsToRemove.size),l.xp6(1),l.hij(" ",l.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT"),""))},directives:[r.uh,c.O5,r.H8,d.lW,f.$g,r.xY,a.BZ,a.w1,a.fO,a.Dz,a.as,a.nj,a.ge,a.ev,p.Hw,g.gM,a.XQ,a.Gk],pipes:[h.X$,m.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:grey}"]}),t}()},88690:function(t,e,i){"use strict";i.d(e,{R:function(){return C}});var n=i(84608),r=i(16073),o=i(33642),a=i(88426),s=i(31572),u=i(48160),c=i(61511),l=i(15980),h=i(67806),d=i(66283),f=i(80340),p=i(4786),g=i(71522);function m(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function b(t,e){1&t&&(s.TgZ(0,"div",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function w(t,e){1&t&&(s.TgZ(0,"div",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function _(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function A(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function k(t,e){if(1&t&&(s.TgZ(0,"mat-option",15),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"uppercase"),s.qZA()),2&t){var i=e.$implicit;s.s9C("value",i),s.xp6(1),s.Oqu(s.lcZ(2,2,s.lcZ(3,4,"SHARED_LIB.LANGUAGES."+i)))}}function T(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",7),s.YNc(1,b,3,3,"div",8),s.YNc(2,w,3,3,"div",8),s.TgZ(3,"mat-form-field",9),s._UZ(4,"input",10),s.ALo(5,"translate"),s.YNc(6,_,3,3,"mat-error",11),s.qZA(),s.TgZ(7,"mat-form-field",9),s._UZ(8,"textarea",10),s.ALo(9,"translate"),s.YNc(10,A,3,3,"mat-error",11),s.qZA(),s.TgZ(11,"mat-form-field",9),s.TgZ(12,"mat-label"),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"mat-select",12),s.NdJ("valueChange",function(t){return s.CHM(i),s.oxw().currentLanguage=t}),s.YNc(16,k,4,6,"mat-option",13),s.qZA(),s.qZA(),s.qZA()}if(2&t){var n=s.oxw();s.xp6(1),s.Q6J("ngIf",!n.data.groupId),s.xp6(1),s.Q6J("ngIf",n.data.groupId),s.xp6(2),s.s9C("placeholder",s.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),s.Q6J("formControl",n.name),s.xp6(2),s.Q6J("ngIf",n.name.invalid),s.xp6(2),s.s9C("placeholder",s.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),s.Q6J("formControl",n.emailForm),s.xp6(2),s.Q6J("ngIf",n.emailForm.invalid),s.xp6(3),s.Oqu(s.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),s.xp6(2),s.Q6J("value",n.currentLanguage),s.xp6(1),s.Q6J("ngForOf",n.languages)}}var C=function(){var t=function(){function t(e,i,n,o,a,s){v(this,t),this.dialogRef=e,this.data=i,this.registrarManager=n,this.notificator=o,this.translate=a,this.store=s,this.emailForm=new r.NI("",[r.kI.required,r.kI.email]),this.languages=["en"],this.currentLanguage="en",this.name=new r.NI("",r.kI.required),this.loading=!1}return y(t,[{key:"ngOnInit",value:function(){this.languages=this.store.get("supportedLanguages"),this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;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(function(){t.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})):(this.loading=!0,this.registrarManager.sendInvitationForGroup(this.emailForm.value,this.currentLanguage,this.data.voId,this.data.groupId).subscribe(function(){t.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.so),s.Y36(n.WI),s.Y36(o.tk),s.Y36(a.V6),s.Y36(u.sK),s.Y36(a.d6))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","accent",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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,m,1,0,"mat-spinner",1),s.YNc(5,T,17,17,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.emailForm.invalid||e.name.invalid||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},directives:[n.uh,c.O5,n.H8,l.lW,h.$g,n.xY,d.KE,f.Nt,r.Fj,r.Q7,r.JJ,r.oH,d.hX,p.gD,c.sg,d.TO,g.ey],pipes:[u.X$,c.gd],styles:[""]}),t}()},57820:function(t,e,i){"use strict";i.d(e,{c:function(){return I}});var n=i(84608),r=i(16073),o=i(56238),a=i(79996),s=i(17),u=i(88426),c=i(33642),l=i(31572),h=i(48160),d=i(54810),f=i(61511),p=i(15980),g=i(36922),m=i(39571),b=i(66283),w=i(80340),_=i(40084),A=i(71522),k=i(67806);function T(t,e){1&t&&(l.TgZ(0,"mat-radio-button",12),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function C(t,e){1&t&&(l.TgZ(0,"mat-radio-button",13),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function S(t,e){1&t&&(l.TgZ(0,"app-alert",14),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function E(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"mat-option",20),l.NdJ("click",function(){var t=l.CHM(i).$implicit;return l.oxw(2).selectedGroup=t}),l.TgZ(1,"span"),l._uU(2),l.qZA(),l.qZA()}if(2&t){var n=e.$implicit;l.Q6J("value",n),l.xp6(2),l.Oqu(n.name)}}function x(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"mat-form-field",15),l.TgZ(1,"input",16),l.NdJ("change",function(){return l.CHM(i),l.oxw().selectedGroup=null}),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"mat-autocomplete",17,18),l.YNc(5,E,3,2,"mat-option",19),l.ALo(6,"async"),l.qZA(),l.qZA()}if(2&t){var n=l.MAs(4),r=l.oxw();l.Q6J("@openClose","toGroup"===r.moveOption?"open":"closed"),l.xp6(1),l.s9C("placeholder",l.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),l.Q6J("matAutocomplete",n)("formControl",r.otherGroupsCtrl),l.xp6(2),l.Q6J("displayWith",r.displayFn),l.xp6(2),l.Q6J("ngForOf",l.lcZ(6,8,r.filteredGroups))}}function R(t,e){1&t&&l._UZ(0,"mat-spinner",21)}var I=function(){var t=function(){function t(e,i,n,o,a,s,u){var c=this;v(this,t),this.dialogRef=e,this.data=i,this.groupService=n,this.notificator=o,this.translate=a,this.apiRequest=s,this.authResolver=u,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new r.NI(null,[r.kI.required]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(function(t){return c.successMessage=t}),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(function(t){return c.errorMessage=t})}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(function(e){t.otherGroups=e.filter(function(e){return e.id!==t.data.group.id&&"members"!==e.name&&t.canMove(e)}),0===t.otherGroups.length&&(t.toGroupOptionDisabled=!0),null!==t.data.group.parentGroupId&&t.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[t.data.group])||(t.toRootOptionDisabled=!0,t.moveOption="toGroup"),t.filteredGroups=t.otherGroupsCtrl.valueChanges.pipe((0,o.O)(""),(0,a.U)(function(e){return e?t._filterGroups(e):t.otherGroups.slice()})),t.loading=!1},function(){return t.loading=!1})}},{key:"displayFn",value:function(t){return t?t.name:t}},{key:"_filterGroups",value:function(t){if("object"==typeof t)return[];var e=t.toLowerCase();return t?this.otherGroups.filter(function(t){return t.name.toLowerCase().indexOf(e)>-1}):this.otherGroups}},{key:"canMove",value:function(t){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[t,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,t])}},{key:"close",value:function(){this.dialogRef.close()}},{key:"confirm",value:function(){var t=this;this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.groupService.moveGroupWithDestinationGroupMovingGroup(this.data.group.id,this.otherGroupsCtrl.value?this.otherGroupsCtrl.value.id:void 0).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.dialogRef.close(!0)},function(e){t.notificator.showRPCError(e,t.errorMessage),t.dialogRef.close(!1)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(n.so),l.Y36(n.WI),l.Y36(c.ff),l.Y36(u.V6),l.Y36(h.sK),l.Y36(u.F5),l.Y36(u.x4))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","value","toRoot","class","move-options",4,"ngIf"],["value","toGroup","color","primary",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["value","toGroup","color","primary"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","matAutocomplete","formControl","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",1),l.TgZ(5,"p"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.TgZ(8,"mat-radio-group",2),l.NdJ("ngModelChange",function(t){return e.moveOption=t}),l.YNc(9,T,3,3,"mat-radio-button",3),l.YNc(10,C,3,3,"mat-radio-button",4),l.qZA(),l.YNc(11,S,3,3,"app-alert",5),l.YNc(12,x,7,10,"mat-form-field",6),l.qZA(),l.YNc(13,R,1,0,"mat-spinner",7),l.TgZ(14,"div",8),l.TgZ(15,"button",9),l.NdJ("click",function(){return e.close()}),l._uU(16),l.ALo(17,"translate"),l.qZA(),l.TgZ(18,"span",10),l.ALo(19,"translate"),l.TgZ(20,"button",11),l.NdJ("click",function(){return e.confirm()}),l._uU(21),l.ALo(22,"translate"),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.data.theme),l.xp6(2),l.AsE("",l.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",e.data.group.name,""),l.xp6(4),l.hij(" ",l.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),l.xp6(2),l.Q6J("ngModel",e.moveOption),l.xp6(1),l.Q6J("ngIf",!e.toRootOptionDisabled),l.xp6(1),l.Q6J("ngIf",!e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",e.toRootOptionDisabled&&e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",!e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(3),l.hij(" ",l.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),l.Q6J("matTooltipPosition","above")("matTooltipDisabled",null!==e.selectedGroup||"toRoot"===e.moveOption),l.xp6(2),l.Q6J("disabled",(e.otherGroupsCtrl.invalid||null===e.selectedGroup)&&"toRoot"!==e.moveOption||e.loading),l.xp6(1),l.hij(" ",l.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},directives:[n.uh,n.xY,d.VQ,r.JJ,r.On,f.O5,n.H8,p.lW,g.gM,d.U0,m.w,b.KE,w.Nt,_.ZL,r.Fj,r.Q7,r.oH,_.XC,f.sg,A.ey,k.$g],pipes:[h.X$,f.Ov],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[s.BQ]}}),t}()},95121:function(t,e,i){"use strict";i.d(e,{m:function(){return _}});var n=i(84608),r=i(33642),o=i(88426),a=i(31572),s=i(48160),u=i(61511),c=i(15980),l=i(67806),h=i(66283),d=i(4786),f=i(71522);function p(t,e){1&t&&a._UZ(0,"mat-spinner",7)}function g(t,e){if(1&t&&(a.TgZ(0,"mat-option",13),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.Q6J("value",i),a.xp6(1),a.hij(" ",i.friendlyNameParameter," ")}}function m(t,e){if(1&t&&(a.TgZ(0,"mat-option",13),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"uppercase"),a.qZA()),2&t){var i=e.$implicit;a.Q6J("value",i),a.xp6(1),a.hij(" ",a.lcZ(2,2,a.lcZ(3,4,"SHARED_LIB.LANGUAGES."+i))," ")}}function b(t,e){if(1&t&&(a.TgZ(0,"mat-option",13),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.Q6J("value",i),a.xp6(1),a.hij(" ",i," ")}}function w(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",8),a.TgZ(1,"mat-form-field"),a.TgZ(2,"mat-label"),a._uU(3),a.ALo(4,"translate"),a.qZA(),a.TgZ(5,"mat-select",9),a.NdJ("valueChange",function(t){return a.CHM(i),a.oxw().selectedLogin=t}),a.YNc(6,g,2,2,"mat-option",10),a.qZA(),a.qZA(),a.TgZ(7,"mat-form-field"),a.TgZ(8,"mat-label"),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.TgZ(11,"mat-select",9),a.NdJ("valueChange",function(t){return a.CHM(i),a.oxw().selectedLang=t}),a.YNc(12,m,4,6,"mat-option",10),a.qZA(),a.qZA(),a.TgZ(13,"mat-form-field"),a.TgZ(14,"mat-label"),a._uU(15),a.ALo(16,"translate"),a.qZA(),a.TgZ(17,"mat-select",9),a.NdJ("valueChange",function(t){return a.CHM(i),a.oxw().selectedMail=t}),a.YNc(18,b,2,2,"mat-option",10),a.qZA(),a.qZA(),a.TgZ(19,"div",11),a.TgZ(20,"p",12),a._uU(21),a.ALo(22,"translate"),a.qZA(),a.TgZ(23,"p"),a._uU(24),a.qZA(),a.qZA(),a.qZA()}if(2&t){var n=a.oxw();a.xp6(3),a.Oqu(a.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),a.xp6(2),a.Q6J("value",n.selectedLogin),a.xp6(1),a.Q6J("ngForOf",n.logins),a.xp6(3),a.Oqu(a.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),a.xp6(2),a.Q6J("value",n.selectedLang),a.xp6(1),a.Q6J("ngForOf",n.languages),a.xp6(3),a.Oqu(a.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),a.xp6(2),a.Q6J("value",n.selectedMail),a.xp6(1),a.Q6J("ngForOf",n.mails),a.xp6(3),a.Oqu(a.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),a.xp6(3),a.Oqu(n.selectedLogin.value)}}var _=function(){var t=function(){function t(e,i,n,r,o,a,s){var u=this;v(this,t),this.dialogRef=e,this.data=i,this.membersManagerService=n,this.attributesManagerService=r,this.store=o,this.translate=a,this.notificator=s,this.languages=this.store.get("supportedLanguages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],a.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(function(t){return u.successMessage=t})}return y(t,[{key:"ngOnInit",value:function(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}},{key:"getMailAttributes",value:function(){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"}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,this.selectedLogin.friendlyNameParameter,this.pwdMails.get(this.selectedMail),this.selectedLang).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close()},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.uq),a.Y36(r.H8),a.Y36(o.d6),a.Y36(s.sK),a.Y36(o.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.YNc(4,p,1,0,"mat-spinner",2),a.qZA(),a.YNc(5,w,25,19,"div",3),a.TgZ(6,"div",4),a.TgZ(7,"button",5),a.NdJ("click",function(){return e.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",6),a.NdJ("click",function(){return e.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),a.xp6(3),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),a.xp6(2),a.Q6J("disabled",e.loading),a.xp6(1),a.hij(" ",a.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},directives:[n.uh,u.O5,n.H8,c.lW,l.$g,n.xY,h.KE,h.hX,d.gD,u.sg,f.ey],pipes:[s.X$,u.gd],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),t}()},4374:function(t,e,i){"use strict";i.d(e,{X:function(){return T}});var n=i(84608),r=i(67033),o=i(88426),a=i(33642),s=i(31572),u=i(48160),c=i(61511),l=i(67806),h=i(15980),d=i(22196);function f(t,e){1&t&&s._UZ(0,"th",13)}function p(t,e){if(1&t&&(s.TgZ(0,"td",14),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.id," ")}}function g(t,e){1&t&&s._UZ(0,"th",13)}function m(t,e){if(1&t&&(s.TgZ(0,"td",14),s._uU(1),s.ALo(2,"userFullName"),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",s.lcZ(2,1,i.user)," ")}}function b(t,e){1&t&&s._UZ(0,"tr",15)}function w(t,e){1&t&&s._UZ(0,"tr",16)}function _(t,e){if(1&t&&(s.TgZ(0,"div",4),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",5),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",6),s.ynx(8,7),s.YNc(9,f,1,0,"th",8),s.YNc(10,p,2,1,"td",9),s.BQk(),s.ynx(11,10),s.YNc(12,g,1,0,"th",8),s.YNc(13,m,3,3,"td",9),s.BQk(),s.YNc(14,b,1,0,"tr",11),s.YNc(15,w,1,0,"tr",12),s.qZA(),s.qZA()),2&t){var i=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,i.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),s.xp6(2),s.Q6J("dataSource",i.dataSource),s.xp6(7),s.Q6J("matHeaderRowDef",i.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",i.displayedColumns)}}function A(t,e){1&t&&s._UZ(0,"mat-spinner",17)}function k(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",18),s.TgZ(1,"button",19),s.NdJ("click",function(){return s.CHM(i),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",20),s.NdJ("click",function(){return s.CHM(i),s.oxw().onSubmit()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){var n=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),s.xp6(3),s.hij(" ",s.lcZ(6,4,n.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}var T=function(){var t=function(){function t(e,i,n,r,o,a){v(this,t),this.dialogRef=e,this.data=i,this.membersService=n,this.groupService=r,this.notificator=o,this.translate=a,this.displayedColumns=["id","name"]}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.by(this.data.members)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.data.groupId?this.groupService.removeMembers(this.data.groupId,this.data.members.map(function(t){return t.id})).subscribe(function(){return t.onSuccess()},function(){return t.onError()}):this.membersService.deleteMembers(this.data.members.map(function(t){return t.id})).subscribe(function(){return t.onSuccess()},function(){return t.onError()})}},{key:"onSuccess",value:function(){var t=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(t),this.dialogRef.close(!0),this.loading=!1}},{key:"onError",value:function(){this.loading=!1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.so),s.Y36(n.WI),s.Y36(a.uq),s.Y36(a.ff),s.Y36(o.V6),s.Y36(u.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-remove-members-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["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",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,_,16,9,"div",1),s.YNc(5,A,1,0,"mat-spinner",2),s.YNc(6,k,7,6,"div",3),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),s.xp6(2),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[n.uh,c.O5,n.xY,r.BZ,r.w1,r.fO,r.Dz,r.as,r.nj,r.ge,r.ev,r.XQ,r.Gk,l.$g,n.H8,h.lW],pipes:[u.X$,d.d],styles:[""]}),t}()},95909:function(t,e,i){"use strict";i.d(e,{f:function(){return l}});var n=i(84608),r=i(67033),o=i(88426),a=i(33642),s=i(31572),u=i(48160),c=i(20247),l=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.resourcesManager=o,this.displayedColumns=["name"],this.loading=!1}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.by(this.data.resources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onDelete",value:function(){var t=this;this.loading=!0,0===this.data.resources.length?this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(function(e){t.loading=!1,t.notificator.showSuccess(e),t.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(function(){t.data.resources.shift(),t.onDelete()},function(){t.dialogRef.close(!0)})}},{key:"onSubmit",value:function(t){t.deleted?this.onDelete():this.onCancel()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.so),s.Y36(n.WI),s.Y36(o.V6),s.Y36(u.sK),s.Y36(a.xk))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-remove-resource-dialog"]],decls:2,vars:6,consts:[[3,"entityNames","entityType","disableForce","deleted"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"app-delete-entity-dialog",0),s.NdJ("deleted",function(t){return e.onSubmit(t)}),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(1),s.Q6J("entityNames",e.dataSource)("entityType","resources")("disableForce",!0))},directives:[c.e],styles:[""]}),t}()},99608:function(t,e,i){"use strict";i.d(e,{o:function(){return l}});var n=i(84608),r=i(67033),o=i(88426),a=i(33642),s=i(31572),u=i(48160),c=i(20247),l=function(){var t=function(){function t(e,i,n,r,o){var a=this;v(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.voService=r,this.translate=o,this.force=!1,this.displayedColumns=["name"],this.relations=[],o.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(function(t){return a.successMessage=t})}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.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"))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onDelete",value:function(){var t=this;this.loading=!0,this.voService.deleteVo(this.data.vos[0].id,this.force).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"onSubmit",value:function(t){this.force=t.force,t.deleted?this.onDelete():this.onCancel()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.so),s.Y36(n.WI),s.Y36(o.V6),s.Y36(a.YF),s.Y36(u.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-remove-vo-dialog"]],decls:2,vars:6,consts:[[3,"entityNames","entityType","relations","deleted"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"app-delete-entity-dialog",0),s.NdJ("deleted",function(t){return e.onSubmit(t)}),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(1),s.Q6J("entityNames",e.dataSource)("entityType","organizations")("relations",e.relations))},directives:[c.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),t}()},24555:function(t,e,i){"use strict";i.d(e,{E:function(){return w}});var n=i(84608),r=i(33642),o=i(31572),a=i(61511),s=i(15980),u=i(67806),c=i(66283),l=i(80340),h=i(16073),d=i(4786),f=i(71522),p=i(48160);function g(t,e){1&t&&o._UZ(0,"mat-spinner",6)}function m(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"div"),o._uU(1),o.ALo(2,"translate"),o.TgZ(3,"mat-form-field",9),o.TgZ(4,"mat-select",10),o.NdJ("valueChange",function(t){return o.CHM(i),o.oxw(2).embeddedState=t}),o.TgZ(5,"mat-option",11),o._uU(6),o.ALo(7,"translate"),o.qZA(),o.TgZ(8,"mat-option",12),o._uU(9),o.ALo(10,"translate"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&t){var n=o.oxw(2);o.xp6(1),o.hij(" ",o.lcZ(2,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),": "),o.xp6(3),o.Q6J("value",n.embeddedState),o.xp6(2),o.Oqu(o.lcZ(7,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(10,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function b(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"div",7),o.TgZ(1,"div"),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-form-field"),o.TgZ(5,"input",8),o.NdJ("ngModelChange",function(t){return o.CHM(i),o.oxw().moduleName=t}),o.qZA(),o.qZA(),o.TgZ(6,"div"),o._uU(7),o.ALo(8,"translate"),o.qZA(),o.TgZ(9,"mat-form-field",9),o.TgZ(10,"mat-select",10),o.NdJ("valueChange",function(t){return o.CHM(i),o.oxw().initialState=t}),o.TgZ(11,"mat-option",11),o._uU(12),o.ALo(13,"translate"),o.qZA(),o.TgZ(14,"mat-option",12),o._uU(15),o.ALo(16,"translate"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(17,"div"),o._uU(18),o.ALo(19,"translate"),o.qZA(),o.TgZ(20,"mat-form-field",9),o.TgZ(21,"mat-select",10),o.NdJ("valueChange",function(t){return o.CHM(i),o.oxw().extensionState=t}),o.TgZ(22,"mat-option",11),o._uU(23),o.ALo(24,"translate"),o.qZA(),o.TgZ(25,"mat-option",12),o._uU(26),o.ALo(27,"translate"),o.qZA(),o.qZA(),o.qZA(),o.YNc(28,m,11,10,"div",13),o.qZA()}if(2&t){var n=o.oxw();o.xp6(2),o.Oqu(o.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),o.xp6(3),o.Q6J("ngModel",n.moduleName),o.xp6(2),o.hij(" ",o.lcZ(8,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),": "),o.xp6(3),o.Q6J("value",n.initialState),o.xp6(2),o.Oqu(o.lcZ(13,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(16,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.xp6(3),o.hij(" ",o.lcZ(19,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),": "),o.xp6(3),o.Q6J("value",n.extensionState),o.xp6(2),o.Oqu(o.lcZ(24,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(27,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.xp6(2),o.Q6J("ngIf","group"===n.entity&&n.autoRegistrationEnabled)}}var w=function(){var t=function(){function t(e,i,n){v(this,t),this.dialogRef=e,this.data=i,this.registrarManager=n,this.loading=!1}return y(t,[{key:"ngOnInit",value:function(){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}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){var t=this;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(function(e){t.dialogRef.close(e)},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.so),o.Y36(n.WI),o.Y36(r.tk))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["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","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","ngModelChange"],[1,"w-100"],["disableOptionCentering","",3,"value","valueChange"],["value","auto"],["value","manual"],[4,"ngIf"]],template:function(t,e){1&t&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,g,1,0,"mat-spinner",1),o.YNc(5,b,29,25,"div",2),o.TgZ(6,"div",3),o.TgZ(7,"button",4),o.NdJ("click",function(){return e.onCancel()}),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",5),o.NdJ("click",function(){return e.submit()}),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.Tol(e.theme),o.xp6(2),o.Oqu(o.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading),o.xp6(3),o.hij(" ",o.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),o.xp6(2),o.Q6J("disabled",e.loading),o.xp6(1),o.hij(" ",o.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},directives:[n.uh,a.O5,n.H8,s.lW,u.$g,n.xY,c.KE,l.Nt,h.Fj,h.JJ,h.On,d.gD,f.ey],pipes:[p.X$],styles:[""]}),t}()},86593:function(t,e,i){"use strict";i.d(e,{C:function(){return G}});var n=i(31572),r=i(58623),o=i(67033),a=i(4230),s=i(27613),u=i(88426),c=i(82819),l=i(61511),h=i(29236),d=i(43691),f=i(36922),p=i(84534),g=i(39571),m=i(48160),b=i(22196),w=i(35887),_=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return(0,s.kN)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"userEmail",type:t,pure:!0}),t}(),A=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return(0,s.$0)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"userLogins",type:t,pure:!0}),t}();function k(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",19),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw(2);return t?e.masterToggle():null}),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function T(t,e){if(1&t&&(n.TgZ(0,"th",17),n.YNc(1,k,1,3,"mat-checkbox",18),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Q6J("ngIf",i.selection.isMultipleSelection())}}function C(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",20),n.TgZ(1,"mat-checkbox",21),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))}}function S(t,e){1&t&&n._UZ(0,"th",17)}function E(t,e){1&t&&(n.TgZ(0,"mat-icon",23),n.ALo(1,"translate"),n._uU(2," account_circle "),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function x(t,e){1&t&&(n.TgZ(0,"mat-icon",23),n.ALo(1,"translate"),n._uU(2," traffic "),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"MANAGERS_LIST.SERVICE"))}function R(t,e){if(1&t&&(n.TgZ(0,"td",20),n.YNc(1,E,3,3,"mat-icon",22),n.YNc(2,x,3,3,"mat-icon",22),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf",!i.serviceUser),n.xp6(1),n.Q6J("ngIf",i.serviceUser)}}function I(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.ID")))}function O(t,e){if(1&t&&(n.TgZ(0,"td",20),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.hij(" ",i.id," ")}}function P(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.NAME")))}function D(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function M(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userVo"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function N(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userEmail"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function F(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function Z(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userLogins"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function B(t,e){1&t&&n._UZ(0,"tr",26)}var q=function(t){return["/admin/users",t]};function U(t,e){if(1&t&&n._UZ(0,"tr",27),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disableRouting),n.Q6J("perunWebAppsForceRouterLink",r.disableRouting?null:n.VKq(4,q,i.id))("perunWebAppsMiddleClickRouterLink",r.disableRouting?null:n.VKq(6,q,i.id))}}function H(t,e){1&t&&(n.TgZ(0,"app-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}function j(t,e){1&t&&(n.TgZ(0,"app-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var G=function(){var t=function(){function t(e,i){v(this,t),this.authResolver=e,this.tableCheckbox=i,this.selection=new a.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.pageSize=10,this.disableRouting=!1,this.filter="",this.page=new n.vpe,this.pageSizeOptions=s.f7}return y(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"getDataForColumn",value:function(t,e){var i;switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"true":"false";case"name":return t?t.lastName?t.lastName:null!==(i=t.firstName)&&void 0!==i?i:"":"";case"organization":return(0,s.OV)(t);case"email":return(0,s.kN)(t);case"logins":return(0,s.lt)(t);default:return""}}},{key:"getExportDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"service-user":"user";case"name":return t?(0,s.bD)(t):"";case"organization":return(0,s.OV)(t);case"email":return(0,s.kN)(t);case"logins":return(0,s.lt)(t);default:return""}}},{key:"exportData",value:function(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filter=this.filter,this.dataSource.filterPredicate=function(e,i){return(0,s.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,s.pR)(e,i,t.getDataForColumn,t)})}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new o.by(this.users),this.dataSource.paginator=this.child.paginator,this.setDataSource()}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filter,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.x4),n.Y36(u.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-users-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(s.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",filter:"filter"},outputs:{page:"page"},features:[n.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","user"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,T,2,1,"th",4),n.YNc(5,C,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,S,1,0,"th",4),n.YNc(8,R,3,2,"td",5),n.BQk(),n.ynx(9,7),n.YNc(10,I,3,3,"th",8),n.YNc(11,O,2,1,"td",5),n.BQk(),n.ynx(12,9),n.YNc(13,P,3,3,"th",8),n.YNc(14,D,3,3,"td",10),n.BQk(),n.ynx(15,11),n.YNc(16,M,3,3,"th",8),n.YNc(17,L,3,3,"td",10),n.BQk(),n.ynx(18,12),n.YNc(19,N,3,3,"th",8),n.YNc(20,z,3,3,"td",10),n.BQk(),n.ynx(21,13),n.YNc(22,F,3,3,"th",8),n.YNc(23,Z,3,3,"td",10),n.BQk(),n.YNc(24,B,1,0,"tr",14),n.YNc(25,U,1,8,"tr",15),n.qZA(),n.qZA(),n.qZA(),n.YNc(26,H,3,3,"app-alert",16),n.YNc(27,j,3,3,"app-alert",16)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(22),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.users.length),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.users.length))},directives:[c.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,d.Hw,f.gM,r.nU,o.XQ,o.Gk,p.Kd,p.YH,g.w],pipes:[m.X$,b.d,w.Z,_,A],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},65050:function(t,e,i){"use strict";i.d(e,{c:function(){return o}});var n=i(31572),r=i(48160),o=function(){var t=function(){function t(e){v(this,t),this.translateService=e,this.returnData=""}return y(t,[{key:"transform",value:function(t){var e=this;switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(function(t){e.returnData=t});break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_HIDDEN").subscribe(function(t){e.returnData=t});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HTML_COMMENT").subscribe(function(t){e.returnData=t});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTFIELD").subscribe(function(t){e.returnData=t});break;case"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_SHOW").subscribe(function(t){e.returnData=t});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.VALIDATED_EMAIL").subscribe(function(t){e.returnData=t});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.USERNAME").subscribe(function(t){e.returnData=t});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.PASSWORD").subscribe(function(t){e.returnData=t});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SELECTIONBOX").subscribe(function(t){e.returnData=t});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTAREA").subscribe(function(t){e.returnData=t});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.COMBOBOX").subscribe(function(t){e.returnData=t});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.CHECKBOX").subscribe(function(t){e.returnData=t});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SUBMIT_BUTTON").subscribe(function(t){e.returnData=t});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.RADIO").subscribe(function(t){e.returnData=t});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TIMEZONE").subscribe(function(t){e.returnData=t});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.AUTO_SUBMIT_BUTTON").subscribe(function(t){e.returnData=t});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.EMBEDDED_GROUP_APPLICATION").subscribe(function(t){e.returnData=t});break;default:return t}return this.returnData}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.sK,16))},t.\u0275pipe=n.Yjl({name:"applicationFormItemType",type:t,pure:!0}),t}()},84650:function(t,e,i){"use strict";i.d(e,{h:function(){return o}});var n=i(31572),r=i(48160),o=function(){var t=function(){function t(e){v(this,t),this.translate=e,this.returnData=""}return y(t,[{key:"transform",value:function(t){var e=this;switch(t){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(function(t){e.returnData='done'.concat(t)});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(function(t){e.returnData='clear'.concat(t)});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(function(t){e.returnData='contact_mail '.concat(t)});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(function(t){e.returnData='gavel'.concat(t)});break;default:this.returnData=t}return this.returnData}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.sK,16))},t.\u0275pipe=n.Yjl({name:"applicationState",type:t,pure:!1}),t}()},99373:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return t.substring(40)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"extSourceType",type:t,pure:!0}),t}()},35887:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var n=i(27613),r=i(31572),o=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return(0,n.OV)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"userVo",type:t,pure:!0}),t}()},28780:function(t,e,i){"use strict";i.d(e,{m:function(){return xt}});var n=i(61511),r=i(57629),o=i(40084),a=i(15980),s=i(29236),u=i(71522),c=i(15812),l=i(84608),h=i(27679),d=i(45001),f=i(66283),p=i(43691),g=i(80340),m=i(73005),b=i(45994),w=i(67806),_=i(54810),A=i(4786),k=i(25122),T=i(27521),C=i(71403),S=i(58623),E=i(67033),x=i(55109),R=i(36922),I=i(91010),O=i(27439),P=i(41050),D=i(10033),M=i(8055),L=i(70663),N=i(16073),z=i(24081),F=i(17),Z=i(88426),B=i(31572),q=i(84534),U=i(48160),H=["collapse"],j=function(){return{color:"linkTextColor"}};function G(t,e){1&t&&(B.TgZ(0,"mat-icon",14),B._uU(1,"keyboard_arrow_right"),B.qZA()),2&t&&B.Q6J("ngStyle",B.DdM(1,j))}function Y(t,e){1&t&&(B.TgZ(0,"mat-icon",14),B._uU(1,"keyboard_arrow_down"),B.qZA()),2&t&&B.Q6J("ngStyle",B.DdM(1,j))}function V(t,e){if(1&t&&(B.TgZ(0,"span",12),B.YNc(1,G,2,2,"mat-icon",13),B.YNc(2,Y,2,2,"mat-icon",13),B.qZA()),2&t){var i=B.oxw().$implicit,n=B.oxw(2);B.xp6(1),B.Q6J("ngIf",!n.isActive(n.currentUrl,i.showChildrenRegex)),B.xp6(1),B.Q6J("ngIf",n.isActive(n.currentUrl,i.showChildrenRegex))}}var K=function(t,e){return{color:t,"border-color":e}};function J(t,e){if(1&t){var i=B.EpF();B.TgZ(0,"a",17),B.NdJ("click",function(){var t=B.CHM(i).$implicit;return B.oxw(4).navigate(t.url)}),B._uU(1),B.ALo(2,"translate"),B.qZA()}if(2&t){var n=e.$implicit,r=B.oxw(4);B.ekj("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),B.Q6J("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:"")("ngStyle",B.WLB(9,K,r.linkTextColor,r.linkTextColor)),B.xp6(1),B.hij(" ",B.lcZ(2,7,n.label)," ")}}function Q(t,e){if(1&t&&(B.TgZ(0,"div",15),B.YNc(1,J,3,12,"a",16),B.qZA()),2&t){var i=B.oxw().$implicit;B.Q6J("@rollInOut",void 0),B.xp6(1),B.Q6J("ngForOf",null==i?null:i.children)}}function W(t,e){if(1&t){var i=B.EpF();B.TgZ(0,"div"),B.TgZ(1,"a",9),B.NdJ("click",function(){var t=B.CHM(i).$implicit;return B.oxw(2).navigate(t.url)}),B._uU(2),B.ALo(3,"translate"),B.YNc(4,V,3,2,"span",10),B.qZA(),B.YNc(5,Q,2,2,"div",11),B.qZA()}if(2&t){var n=e.$implicit,r=B.oxw(2);B.xp6(1),B.ekj("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),B.Q6J("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:"")("ngStyle",B.WLB(11,K,r.linkTextColor,r.linkTextColor)),B.xp6(1),B.hij(" ",B.lcZ(3,9,n.label)," "),B.xp6(2),B.Q6J("ngIf",n.children),B.xp6(1),B.Q6J("ngIf",r.isActive(r.currentUrl,n.showChildrenRegex))}}function X(t,e){if(1&t&&(B.TgZ(0,"div"),B.YNc(1,W,6,14,"div",8),B.qZA()),2&t){var i=B.oxw();B.Q6J("@rollInOut",void 0),B.xp6(1),B.Q6J("ngForOf",i.item.links)}}var $=function(t,e){return{background:t,"border-top":e}},tt=function(t){return{color:t}},et=function(){return{color:"currentColor"}},it=function(t){return{background:t}},nt=function(){var t=function(){function t(e,i){var n=this;v(this,t),this.router=e,this.store=i,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.iconColor=this.store.get("theme","sidemenu_item_icon_color"),this.dividerStyle="1px solid "+this.store.get("theme","sidemenu_divider_color"),this.currentUrl=e.url,e.events.subscribe(function(t){t instanceof r.m2&&(n.currentUrl=t.url)})}return y(t,[{key:"toggle",value:function(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}},{key:"isActive",value:function(t,e){return new RegExp(e).test(t)}},{key:"navigate",value:function(t){var e=this;"over"===this.sideNav.mode?this.sideNav.close().then(function(){return e.router.navigate(t)}):this.router.navigate(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(B.Y36(r.F0),B.Y36(Z.d6))},t.\u0275cmp=B.Xpm({type:t,selectors:[["app-side-menu-item"]],viewQuery:function(t,e){var i;(1&t&&B.Gf(H,5),2&t)&&(B.iGM(i=B.CRH())&&(e.collapseDiv=i.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(t,e){1&t&&(B.TgZ(0,"div",0),B.TgZ(1,"div",1),B.NdJ("click",function(){return e.toggle()}),B.TgZ(2,"div",2),B.TgZ(3,"a",3),B.TgZ(4,"div"),B._UZ(5,"mat-icon",4),B.qZA(),B.TgZ(6,"div",5),B._uU(7),B.ALo(8,"translate"),B.qZA(),B.qZA(),B.qZA(),B.qZA(),B.TgZ(9,"div"),B.TgZ(10,"div",6),B.YNc(11,X,2,2,"div",7),B.qZA(),B.qZA(),B.qZA()),2&t&&(B.xp6(1),B.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",B.WLB(18,$,e.item.backgroundColorCss,e.index?e.dividerStyle:"none")),B.xp6(1),B.Gre("entity-menu-item-link ",e.item.labelClass,""),B.Q6J("perunWebAppsMiddleClickRouterLink",e.item.baseLink),B.xp6(1),B.Q6J("ngStyle",B.VKq(21,tt,e.item.textColorCss)),B.xp6(2),B.Q6J("ngStyle",B.DdM(23,et))("svgIcon",e.item.icon),B.xp6(2),B.Oqu(B.lcZ(8,16,e.item.label)),B.xp6(2),B.Q6J("@openClose",e.expanded?"open":"closed"),B.xp6(1),B.Gre("side-entity-menu ",e.item.linksClass,""),B.Q6J("ngStyle",B.VKq(24,it,e.linkBgColor)),B.xp6(1),B.Q6J("ngIf",e.showLinks))},directives:[u.wG,n.PC,q.YH,p.Hw,n.O5,n.sg,n.mk],pipes:[U.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:[F.BQ,F.Ly]}}),t}(),rt=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){if(void 0===t.value)return"";switch(t.type){case"java.lang.String":return t.value;case"java.lang.Integer":return t.value.toString();case"java.util.ArrayList":return this.whenValueIsArray(t.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(t.value);case"java.lang.Boolean":return t.value.toString();default:return t.value}}},{key:"whenValueIsArray",value:function(t){var e="";return t.forEach(function(t){e=e.concat(t+", ")}),e}},{key:"whenValueIsMap",value:function(t){var e="";return t.forEach(function(t,i){e=e.concat(i+": "+t+", ")}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=B.Yjl({name:"anyToString",type:t,pure:!0}),t}(),ot=["collapse"],at=function(){return{color:"linkTextColor"}};function st(t,e){1&t&&(B.TgZ(0,"mat-icon",12),B._uU(1,"keyboard_arrow_right"),B.qZA()),2&t&&B.Q6J("ngStyle",B.DdM(1,at))}function ut(t,e){1&t&&(B.TgZ(0,"mat-icon",12),B._uU(1,"keyboard_arrow_down"),B.qZA()),2&t&&B.Q6J("ngStyle",B.DdM(1,at))}function ct(t,e){if(1&t&&(B.TgZ(0,"span",10),B.YNc(1,st,2,2,"mat-icon",11),B.YNc(2,ut,2,2,"mat-icon",11),B.qZA()),2&t){var i=B.oxw().$implicit,n=B.oxw();B.xp6(1),B.Q6J("ngIf",!n.isActive(n.currentUrl,i.showChildrenRegex)),B.xp6(1),B.Q6J("ngIf",n.isActive(n.currentUrl,i.showChildrenRegex))}}var lt=function(t,e){return{color:t,"border-color":e}};function ht(t,e){if(1&t){var i=B.EpF();B.TgZ(0,"a",14),B.NdJ("click",function(){var t=B.CHM(i).$implicit;return B.oxw(3).navigate(t.url)}),B._uU(1),B.ALo(2,"translate"),B.qZA()}if(2&t){var n=e.$implicit,r=B.oxw(3);B.ekj("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),B.Q6J("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",B.WLB(9,lt,r.linkTextColor,r.linkTextColor))("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:""),B.xp6(1),B.hij(" ",B.lcZ(2,7,n.label)," ")}}function dt(t,e){if(1&t&&(B.TgZ(0,"div"),B.YNc(1,ht,3,12,"a",13),B.qZA()),2&t){var i=B.oxw().$implicit;B.Q6J("@rollInOut",void 0),B.xp6(1),B.Q6J("ngForOf",null==i?null:i.children)}}function ft(t,e){if(1&t){var i=B.EpF();B.TgZ(0,"div"),B.TgZ(1,"a",7),B.NdJ("click",function(){var t=B.CHM(i).$implicit;return B.oxw().navigate(t.url)}),B._uU(2),B.ALo(3,"translate"),B.YNc(4,ct,3,2,"span",8),B.qZA(),B.YNc(5,dt,2,2,"div",9),B.qZA()}if(2&t){var n=e.$implicit,r=B.oxw();B.xp6(1),B.ekj("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),B.Q6J("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",B.WLB(11,lt,r.linkTextColor,r.linkTextColor))("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:""),B.xp6(1),B.hij(" ",B.lcZ(3,9,n.label)," "),B.xp6(2),B.Q6J("ngIf",n.children),B.xp6(1),B.Q6J("ngIf",r.isActive(r.currentUrl,n.showChildrenRegex))}}var pt=function(t){return{background:t}},gt=function(t){return{color:t}},vt=function(){return{color:"currentColor"}},mt=function(){var t=function(){function t(e,i){var n=this;v(this,t),this.router=e,this.store=i,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.iconColor=this.store.get("theme","sidemenu_item_icon_color"),this.currentUrl=e.url,e.events.subscribe(function(t){t instanceof r.m2&&(n.currentUrl=t.url)})}return y(t,[{key:"ngOnInit",value:function(){this.expanded=this.showOpen}},{key:"ngOnChanges",value:function(){this.expanded=this.showOpen}},{key:"toggle",value:function(){void 0!==this.item.baseLink?this.navigate(this.item.baseLink):this.expanded=!this.expanded}},{key:"isActive",value:function(t,e){return new RegExp(e).test(t)}},{key:"getBgClass",value:function(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}},{key:"navigate",value:function(t){var e=this;"over"===this.sideNav.mode?this.sideNav.close().then(function(){return e.router.navigate(t)}):this.router.navigate(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(B.Y36(r.F0),B.Y36(Z.d6))},t.\u0275cmp=B.Xpm({type:t,selectors:[["app-side-menu-root-item"]],viewQuery:function(t,e){var i;(1&t&&B.Gf(ot,5),2&t)&&(B.iGM(i=B.CRH())&&(e.collapseDiv=i.first))},inputs:{item:"item",index:"index",showOpen:"showOpen",sideNav:"sideNav"},features:[B.TTD],decls:12,vars:27,consts:[[1,"entity-menu-item"],["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","ngStyle","ngClass","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"],["matRipple","","class","pl-5 clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","activated","ngClass","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","ngClass","click"]],template:function(t,e){1&t&&(B.TgZ(0,"div",0),B.TgZ(1,"div",1),B.NdJ("click",function(){return e.toggle()}),B.TgZ(2,"div"),B.TgZ(3,"a",2),B.TgZ(4,"div"),B._UZ(5,"mat-icon",3),B.qZA(),B.TgZ(6,"div",4),B._uU(7),B.ALo(8,"translate"),B.qZA(),B.qZA(),B.qZA(),B.qZA(),B.TgZ(9,"div"),B.TgZ(10,"div",5),B.YNc(11,ft,6,14,"div",6),B.qZA(),B.qZA(),B.qZA()),2&t&&(B.xp6(1),B.ekj("root-header-activated",e.isActive(e.currentUrl,e.item.baseColorClassRegex)),B.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",B.VKq(20,pt,e.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",e.item.baseLink),B.xp6(1),B.Gre("entity-menu-item-link ",e.item.labelClass,""),B.xp6(1),B.Q6J("ngStyle",B.VKq(22,gt,e.item.textColorCss)),B.xp6(2),B.Q6J("ngStyle",B.DdM(24,vt))("svgIcon",e.item.icon),B.xp6(2),B.Oqu(B.lcZ(8,18,e.item.label)),B.xp6(2),B.Q6J("@openClose",e.expanded?"open":"closed"),B.xp6(1),B.Gre("side-entity-menu ",e.item.linksClass,""),B.Q6J("ngStyle",B.VKq(25,pt,e.linkBgColor)),B.xp6(1),B.Q6J("ngForOf",e.item.links))},directives:[u.wG,n.PC,q.YH,p.Hw,n.sg,n.mk,n.O5],pipes:[U.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:[F.BQ,F.Ly]}}),t}(),yt=i(88975),bt=i(4253),wt=i(22727),_t=i(99373),At=i(41939),kt=i(7423),Tt=i(22280),Ct=i(30146),St=i(85250),Et=i(27613),xt=function(){var t=function t(e){v(this,t),this.translate=e,e.addLangs(["en","cs"])};return t.\u0275fac=function(e){return new(e||t)(B.LFG(U.sK))},t.\u0275mod=B.oAB({type:t}),t.\u0275inj=B.cJS({providers:[rt,_t.A],imports:[[n.ez,r.Bz,o.Bb,g.c,f.lN,N.UX,N.u5,p.Ps,k.SJ,d.To,U.aw.forChild({}),a.ot,S.JX,E.p0,x.Nh,I.dp,a.ot,s.p9,l.Is,A.LD,C.ZX,w.Cq,b.Cv,R.AV,T.rP,c.FA,u.XK,_.Fk,h.t,u.si,m.TU,O.QW,L.T5,yt._t,O.QW,D.Hi,M.Tx,bt.Cl,wt.r,P.g,At.ez,kt.r,Tt.d4,Ct.Co,St.ie,Et.Je],Ct.Co,o.Bb,g.c,r.Bz,N.UX,N.u5,p.Ps,k.SJ,U.aw,S.JX,E.p0,x.Nh,I.dp,a.ot,s.p9,l.Is,A.LD,C.ZX,w.Cq,b.Cv,R.AV,T.rP,c.FA,u.XK,_.Fk,h.t,O.QW,L.T5,u.si,m.TU,yt._t,D.Hi,D.Hi,d.To,M.Tx,bt.Cl,bt.Cl,bt.Cl,kt.r]}),t}();B.B6R(z.V,[mt,n.sg,nt,n.O5],[])},75585:function(t,e,i){"use strict";i.d(e,{V:function(){return l}});var n=i(88426),r=i(33642),o=i(27613),a=i(22280),s=i(67004),u=i(31572),c=i(48160),l=function(){var t=function(){function t(e,i,n,r,o,a,s){v(this,t),this.translate=e,this.authResolver=i,this.store=n,this.apiRequest=r,this.attributesManager=o,this.notificator=a,this.guiAuthResolver=s,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")}return y(t,[{key:"getFacilitiesManagementItem",value:function(){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}}},{key:"getAccessManagementItem",value:function(){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}}},{key:"getHomeItem",value:function(){return{baseLink:["/home"],label:"MAIN_MENU.HOME",colorClass:"base-item-color-activated",icon:"perun-home-white",baseColorClass:"base-item-color",baseColorClassRegex:"^dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor,links:[]}}},{key:"getUserItem",value:function(){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.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"}]}}},{key:"getAdminItem",value:function(){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$"}]}}},{key:"parseFacility",value:function(t){return{label:t.name,baseLink:["/facilities/".concat(t.id)],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(t),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseResource",value:function(t,e){var i=(new a.r5).transform(t,e);return{label:t.name,baseLink:[i],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(i,e?"/organizations":"/facilities",t),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"getResourceLinks",value:function(t,e,i){var n=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[t],activatedRegex:"".concat(e,"/\\d+/resources/\\d+$")}];return this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[t,"groups"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/groups$")}),this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[t,"services"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/services$")}),this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[t,"members"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/members$")}),this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[t,"tags"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/tags$")}),n.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[t,"attributes"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/attributes$")}),this.authResolver.isManagerPagePrivileged(i)&&n.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[t,"settings"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/settings$"),children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[t,"settings","managers"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/settings/managers$")}],showChildrenRegex:"".concat(e,"/\\d+/resources/\\d+/settings")}),n}},{key:"parseGroup",value:function(t){return{label:t.name,baseLink:["/organizations/".concat(t.voId,"/groups/").concat(t.id)],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(t),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseVo",value:function(t){return{label:t.name,baseLink:["/organizations/".concat(t.id)],links:this.getVoLinks(t),colorClass:"vo-item",icon:"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}},{key:"parseMember",value:function(t,e){return{label:(0,o.bD)(t.user),baseLink:["/organizations/".concat(t.voId,"/members/").concat(t.id)],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(t,e),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseUser",value:function(t,e,i){return{label:(0,o.bD)(t),baseLink:[e],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(t,e,i),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseService",value:function(t){return{label:t.name,baseLink:["/admin/services/".concat(t.id)],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:["/admin/services/".concat(t.id)],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:["/admin/services/".concat(t.id,"/required-attributes")],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:["/admin/services/".concat(t.id,"/destinations")],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"getVoLinks",value:function(t){var e=[];if(e.push({label:"MENU_ITEMS.VO.OVERVIEW",url:["/organizations/".concat(t.id)],activatedRegex:"/organizations/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.MEMBERS",url:["/organizations/".concat(t.id,"/members")],activatedRegex:"/organizations/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.GROUPS",url:["/organizations/".concat(t.id,"/groups")],activatedRegex:"/organizations/\\d+/groups$"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])){var i=[{label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:["/organizations/".concat(t.id,"/resources/preview")],activatedRegex:"/organizations/\\d+/resources/preview$"}];this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:["/organizations/".concat(t.id,"/resources/tags")],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:["/organizations/".concat(t.id,"/resources/states")],activatedRegex:"/organizations/\\d+/resources/states$"}),e.push({label:"MENU_ITEMS.VO.RESOURCES",url:["/organizations/".concat(t.id,"/resources")],activatedRegex:"/organizations/\\d+/resources$",children:i,showChildrenRegex:"/organizations/\\d+/resources"})}this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[t])&&e.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:["/organizations/".concat(t.id,"/applications")],activatedRegex:"/organizations/\\d+/applications"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:["/organizations/".concat(t.id,"/sponsoredMembers")],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),e.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:["/organizations/".concat(t.id,"/attributes")],activatedRegex:"/organizations/\\d+/attributes$"}),this.guiAuthResolver.isAuthorized("getMembersCount_Vo_Status_policy",[t])&&this.guiAuthResolver.isAuthorized("getMembersCount_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.STATISTICS",url:["/organizations/".concat(t.id,"/statistics")],activatedRegex:"/organizations/\\d+/statistics"});var n=this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[t]),r=this.authResolver.isManagerPagePrivileged(t),o=this.authResolver.isThisVoAdminOrObserver(t.id);if(r||n||o){var a=[];o&&a.push({label:"MENU_ITEMS.VO.EXPIRATION",url:["/organizations/".concat(t.id,"/settings/expiration")],activatedRegex:"/organizations/\\d+/settings/expiration$"}),r&&a.push({label:"MENU_ITEMS.VO.MANAGERS",url:["/organizations/".concat(t.id,"/settings/managers")],activatedRegex:"/organizations/\\d+/settings/managers$"}),o&&a.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:["/organizations/".concat(t.id,"/settings/applicationForm")],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),o&&a.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:["/organizations/".concat(t.id,"/settings/notifications")],activatedRegex:"/organizations/\\d+/settings/notifications$"}),n&&a.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:["/organizations/".concat(t.id,"/settings/extsources")],activatedRegex:"/organizations/\\d+/settings/extsources$"}),e.push({label:"MENU_ITEMS.VO.SETTINGS",url:["/organizations/".concat(t.id,"/settings")],activatedRegex:"/organizations/\\d+/settings$",children:a,showChildrenRegex:"/organizations/\\d+/settings"})}return e}},{key:"getUserLinks",value:function(t,e,i){var n=[];return n.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[e],activatedRegex:"".concat(i,"$")}),n.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:["".concat(e,"/organizations")],activatedRegex:"".concat(i,"/organizations")}),n.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:["".concat(e,"/groups")],activatedRegex:"".concat(i,"/groups")}),n.push({label:"MENU_ITEMS.USER.IDENTITIES",url:["".concat(e,"/identities")],activatedRegex:"".concat(i,"/identities")}),n.push({label:"MENU_ITEMS.USER.FACILITIES",url:["".concat(e,"/facilities")],activatedRegex:"".concat(i,"/facilities")}),n.push({label:"MENU_ITEMS.USER.RESOURCES",url:["".concat(e,"/resources")],activatedRegex:"".concat(i,"/resources")}),n.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:["".concat(e,"/attributes")],activatedRegex:"".concat(i,"/attributes")}),n.push({label:"MENU_ITEMS.USER.ROLES",url:["".concat(e,"/roles")],activatedRegex:"^".concat(e,"/roles")}),n.push({label:"MENU_ITEMS.ADMIN.SETTINGS",url:["".concat(e,"/settings")],activatedRegex:"".concat(i,"/settings$"),children:[],showChildrenRegex:"".concat(i,"/settings")}),n[n.length-1].children.push(t.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:["".concat(e,"/settings/associated-users")],activatedRegex:"^".concat(e,"/settings/associated-users")}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:["".concat(e,"/settings/service-identities")],activatedRegex:"^".concat(e,"/settings/service-identities")}),n}},{key:"getMemberLinks",value:function(t,e){var i=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:["/organizations/".concat(t.voId,"/members/").concat(t.id)],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.authResolver.isAuthorized("getMemberGroups_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:["//organizations/".concat(t.voId,"/members/").concat(t.id,"/groups")],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:["//organizations/".concat(t.voId,"/members/").concat(t.id,"/applications")],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:["/organizations/".concat(t.voId,"/members/").concat(t.id,"/resources")],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),i.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:["/organizations/".concat(t.voId,"/members/").concat(t.id,"/attributes")],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),i}},{key:"getFacilityLinks",value:function(t){var e=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:["/facilities/".concat(t.id)],activatedRegex:"/facilities/\\d+$"}];this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:["/facilities/".concat(t.id,"/resources")],activatedRegex:"/facilities/\\d+/resources$"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:["/facilities/".concat(t.id,"/allowed-users")],activatedRegex:"/facilities/\\d+/allowed-users"}),this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:["/facilities/".concat(t.id,"/allowed-groups")],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:["/facilities/".concat(t.id,"/services-status")],activatedRegex:"/facilities/\\d+/services-status"}),this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:["/facilities/".concat(t.id,"/services-destinations")],activatedRegex:"facilities/\\d+/services-destinations"}),this.authResolver.isFacilityAdmin()&&e.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:["/facilities/".concat(t.id,"/hosts")],activatedRegex:"facilities/\\d+/hosts"}),e.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",t.id,"attributes"],activatedRegex:"/facilities/\\d+/attributes$"});var i=this.authResolver.isAuthorized("getBansForFacility_int_policy",[t]),n=this.authResolver.isAuthorized("getRichAdmins_Facility_List_boolean_boolean_policy",[t]),r=this.authResolver.isAuthorized("getOwners_Facility_policy",[t]),o=this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[t]);if(i||n||r||o){var a=[];r&&a.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",t.id,"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),n&&a.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",t.id,"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),o&&a.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:["/facilities/".concat(t.id,"/settings/security-teams")],activatedRegex:"facilities/\\d+/settings/security-teams"}),i&&a.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",t.id,"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),e.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",t.id,"settings"],activatedRegex:"/facilities/\\d+/settings$",children:a,showChildrenRegex:"/facilities/\\d+/settings"})}return e}},{key:"getGroupLinks",value:function(t){var e=this,i=[],n=[];i.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id)],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/members")],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[t])&&"members"!==t.name&&i.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/subgroups")],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/resources")],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/applications")],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),i.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/attributes")],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"});var r=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[t]),o=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[t]),a=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[t]);return r&&o&&a&&i.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/statistics")],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(t.id,s.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(){n.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/expiration")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},function(t){"HttpErrorResponse"!==t.name&&e.notificator.showRPCError(t)}),this.authResolver.isManagerPagePrivileged(t)&&n.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/managers")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/applicationForm")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/notifications")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/relations")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/extsources")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==n.length&&i.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:n,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),i}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(c.sK),u.LFG(n.x4),u.LFG(n.d6),u.LFG(n.F5),u.LFG(r.H8),u.LFG(n.V6),u.LFG(n.x4))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},24081:function(t,e,i){"use strict";i.d(e,{V:function(){return w}});var n=i(61601),r=i(75585),o=i(88426),a=i(17),s=i(31572),u=i(48958);function c(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"app-side-menu-item",9),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw();s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)}}function l(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"app-side-menu-item",10),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw();s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)("showLinks",n===r.accessItems.length-1)}}function h(t,e){if(1&t&&s._UZ(0,"app-side-menu-root-item",2),2&t){var i=s.oxw();s.Q6J("sideNav",i.sideNav)("item",i.facilityItem)}}function d(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"app-side-menu-item",10),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw(2);s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)("showLinks",n===r.facilityItems.length-1)}}function f(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,d,2,5,"div",3),s.qZA()),2&t){var i=s.oxw();s.xp6(1),s.Q6J("ngForOf",i.facilityItems)}}function p(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"app-side-menu-item",10),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw();s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)("showLinks",n===r.userItems.length-1)}}function g(t,e){if(1&t&&s._UZ(0,"app-side-menu-root-item",6),2&t){var i=s.oxw();s.Q6J("sideNav",i.sideNav)("showOpen",i.adminItemOpened)("item",i.adminItem)}}function m(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"app-side-menu-item",10),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw(2);s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)("showLinks",!0)}}function b(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,m,2,5,"div",3),s.qZA()),2&t){var i=s.oxw();s.xp6(1),s.Q6J("ngForOf",i.adminItems)}}var w=function(){var t=function(){function t(e,i,n,r){v(this,t),this.sideMenuService=e,this.sideMenuItemService=i,this.authResolver=n,this.store=r,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}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.mobileView=window.innerWidth<=n.y.minWidth,this.mobileView?this.sideNav.close():this.sideNav.open(),this.sideMenuService.facilityItemsChange.subscribe(function(e){t.setFacilityItems(e)}),this.sideMenuService.accessItemsChange.subscribe(function(e){t.setAccessItems(e)}),this.sideMenuService.adminItemsChange.subscribe(function(e){t.setAdminItems(e)}),this.sideMenuService.userItemsChange.subscribe(function(e){t.setUserItems(e)}),this.sideMenuService.homeItemsChange.subscribe(function(e){t.setHomeItems(e)}),this.sideMenuService.resetChange.subscribe(function(){t.reset()})}},{key:"reset",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptHome",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptFacility",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptAccess",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptAdmin",value:function(){this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptUser",value:function(){this.adminItemOpened=!1,this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.adminItems,[])}},{key:"setHomeItems",value:function(t){this.resetExceptHome(),this.setNewItems(this.homeItems,t)}},{key:"setFacilityItems",value:function(t){this.resetExceptFacility(),this.setNewItems(this.facilityItems,t)}},{key:"setAccessItems",value:function(t){this.resetExceptAccess(),this.setNewItems(this.accessItems,t)}},{key:"setUserItems",value:function(t){this.userItemOpened=!0,this.resetExceptUser(),this.setNewItems(this.userItems,t)}},{key:"setAdminItems",value:function(t){this.adminItemOpened=0===t.length,this.resetExceptAdmin(),this.setNewItems(this.adminItems,t)}},{key:"setNewItems",value:function(t,e){for(var i=t.length>e.length?t.length:e.length,n=0;nt.length-1)t.push(e[n]);else{if(n>e.length-1){for(var r=t.length,o=0;o0),n.Q6J("cdkDragData",i)}}function yt(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"div",4),n.TgZ(1,"div",5),n.TgZ(2,"div",6),n.TgZ(3,"table",7,8),n.NdJ("cdkDropListDropped",function(t){return n.CHM(i),n.oxw().drop(t)}),n.ynx(5,9),n.YNc(6,S,1,0,"th",10),n.YNc(7,E,4,0,"td",11),n.BQk(),n.ynx(8,12),n.YNc(9,x,3,3,"th",10),n.YNc(10,R,2,1,"td",11),n.BQk(),n.ynx(11,13),n.YNc(12,I,3,3,"th",10),n.YNc(13,O,3,3,"td",11),n.BQk(),n.ynx(14,14),n.YNc(15,P,3,3,"th",15),n.YNc(16,M,2,1,"td",16),n.BQk(),n.ynx(17,17),n.YNc(18,L,3,3,"th",15),n.YNc(19,z,2,1,"td",16),n.BQk(),n.ynx(20,18),n.YNc(21,F,3,3,"th",10),n.YNc(22,rt,15,14,"td",11),n.BQk(),n.ynx(23,19),n.YNc(24,ot,1,0,"th",10),n.YNc(25,st,2,1,"td",11),n.BQk(),n.ynx(26,20),n.YNc(27,ut,1,0,"th",10),n.YNc(28,ht,3,2,"td",11),n.BQk(),n.ynx(29,21),n.YNc(30,dt,1,0,"th",10),n.YNc(31,gt,3,2,"td",11),n.BQk(),n.YNc(32,vt,1,0,"tr",22),n.YNc(33,mt,1,7,"tr",23),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(3),n.Q6J("cdkDropListDisabled",r.dragDisabled)("dataSource",r.dataSource),n.xp6(29),n.Q6J("matHeaderRowDef",r.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",r.displayedColumns)}}function bt(t,e){1&t&&(n.TgZ(0,"app-alert",98),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}var wt=function(){var t=function(){function t(e,i,r,o){v(this,t),this.dialog=e,this.notificator=i,this.router=r,this.translate=o,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new n.vpe,this.itemsChanged=[],this.dataSource=this.applicationFormItems,this.mapForCombobox=new Map,this.dragDisabled=!0}return y(t,[{key:"ngOnInit",value:function(){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")}},{key:"ngOnChanges",value:function(){this.dataSource=this.applicationFormItems}},{key:"disabledHiddenDependency",value:function(t,e,i){var n="";if("IF_EMPTY"===e||"IF_PREFILLED"===e){var r=null===i?"":this.applicationFormItems.find(function(t){return t.id===i}).shortname;n="IF_EMPTY"===e?"(".concat(this.ifEmpty," ").concat(r,")"):"(".concat(this.ifPrefilled," ").concat(r,")")}return n}},{key:"disabledTooltip",value:function(t){var e;switch(t.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return e=null===t.disabledDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.disabledDependencyItemId}).shortname,"".concat(this.isDisabledIf," ").concat(e," ").concat(this.isEmpty);case"IF_PREFILLED":return e=null===t.disabledDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.disabledDependencyItemId}).shortname,"".concat(this.isDisabledIf," ").concat(e," ").concat(this.isPrefilled)}}},{key:"hiddenTooltip",value:function(t){var e;switch(t.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return e=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.hiddenDependencyItemId}).shortname,"".concat(this.isHiddenIf," ").concat(e," ").concat(this.isEmpty);case"IF_PREFILLED":return e=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.hiddenDependencyItemId}).shortname,"".concat(this.isHiddenIf," ").concat(e," ").concat(this.isPrefilled)}}},{key:"edit",value:function(t){var e=this,i=(0,h.kZ)();i.width="600px",i.height="600px",i.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:t,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(l._,i).afterClosed().subscribe(function(i){i&&(e.itemsChanged.push(t.id),e.applicationFormItemsChange.emit())})}},{key:"delete",value:function(t){var e=this,i=(0,h.kZ)();i.width="500px",this.dialog.open(u,i).afterClosed().subscribe(function(i){i&&(t.forDelete=!0,0===t.id&&(e.applicationFormItems.splice(e.applicationFormItems.indexOf(t),1),e.table.renderRows()),e.applicationFormItemsChange.emit())})}},{key:"drop",value:function(t){this.dragDisabled=!0;var e=this.applicationFormItems.indexOf(t.item.data);(0,r.bA)(this.applicationFormItems,e,t.currentIndex),this.itemsChanged.push(this.applicationFormItems[t.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}},{key:"getLocalizedOptions",value:function(t){if(t.i18n[this.translate.getDefaultLang()]){var e=t.i18n[this.translate.getDefaultLang()].options;if(null!==e&&""!==e){var i,n=[],r=f(e.split("|"));try{for(r.s();!(i=r.n()).done;){var o=i.value;n.push(o.split("#")[1])}}catch(a){r.e(a)}finally{r.f()}return n}}return[]}},{key:"getLocalizedLabel",value:function(t){return t.i18n[this.translate.getDefaultLang()]?t.i18n[this.translate.getDefaultLang()].label:t.shortname}},{key:"restore",value:function(t){t.forDelete=!1}},{key:"openManagingGroups",value:function(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.uw),n.Y36(c.V6),n.Y36(d.F0),n.Y36(s.sK))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-application-form-list"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(T,5),2&t)&&(n.iGM(i=n.CRH())&&(e.table=i.first))},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[n.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"],["class","font-italic disabled",4,"ngIf"],["type","text"],[1,"font-italic","disabled"],["disabled",""],["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"],["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(t,e){1&t&&(n.YNc(0,C,1,0,"mat-spinner",0),n.YNc(1,yt,34,4,"div",1),n.YNc(2,bt,3,3,"app-alert",2)),2&t&&(n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",0!==e.applicationFormItems.length&&!e.loading),n.xp6(1),n.Q6J("ngIf",0===e.applicationFormItems.length&&!e.loading))},directives:[p.O5,g.$g,m.BZ,r.Wj,m.w1,m.fO,m.Dz,m.as,m.nj,m.ge,m.ev,a.lW,b.Hw,w.gM,_._Y,_.JL,_.F,p.sg,_.YN,_.Kr,_.EJ,_.JJ,_.On,m.XQ,m.Gk,r.Zt,A.w],pipes:[s.X$,k.c],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%], .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}"]}),t}()},29851:function(t,e,i){"use strict";i.d(e,{w:function(){return rt}});var n=i(31572),r=i(33642),o=i(67033),a=i(27613),s=i(88426),u=i(57629),c=i(82819),l=i(61511),h=i(84534),d=i(67806),p=i(39571),g=i(48160),m=i(22196);function b(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function w(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function _(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_ID")))}function A(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.vo.id)}}function k(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_NAME")))}function T(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.vo.name)}}function C(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_ID")))}function S(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.group?i.group.id:"")}}function E(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")))}function x(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.group?i.group.name:"")}}function R(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")))}function I(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.type)}}function O(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")))}function P(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.state)}}function D(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCENAME")))}function M(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.extSourceName)}}function L(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCETYPE")))}function N(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.extSourceType)}}function z(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_USER")))}function F(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.hij(" ",i.user?n.lcZ(2,1,i.user):"null"," ")}}function Z(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_BY")))}function B(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.hij(" ",i.createdBy.slice(i.createdBy.lastIndexOf("=")+1,i.createdBy.length)," ")}}function q(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")))}function U(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.ALo(2,"date"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,i.createdAt,"d.M.y"))}}function H(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")))}function j(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Oqu(r.getFriendlyName(i.modifiedBy))}}function G(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_AT")))}function Y(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.ALo(2,"date"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,i.modifiedAt,"d.M.y"))}}function V(t,e){if(1&t&&(n.TgZ(0,"th",26),n._uU(1),n.qZA()),2&t){var i=n.oxw().$implicit;n.xp6(1),n.Oqu(i)}}function K(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit,r=n.oxw().$implicit;n.xp6(1),n.Oqu(i[r])}}function J(t,e){1&t&&(n.ynx(0,29),n.YNc(1,V,2,1,"th",4),n.YNc(2,K,2,1,"td",11),n.BQk()),2&t&&n.Q6J("matColumnDef",e.$implicit)}function Q(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_FEDINFO")))}function W(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.fedInfo)}}function X(t,e){1&t&&n._UZ(0,"tr",30)}function $(t,e){if(1&t&&n._UZ(0,"tr",31),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",r.selectApplication(i))("routerLink",r.selectApplication(i))}}function tt(t,e){1&t&&n._UZ(0,"mat-spinner",32)}function et(t,e){1&t&&(n.TgZ(0,"app-alert",34),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND")," "))}function it(t,e){1&t&&(n.TgZ(0,"app-alert",34),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT")," "))}function nt(t,e){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,et,3,3,"app-alert",33),n.YNc(2,it,3,3,"app-alert",33),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Q6J("ngIf",0===i.dataSource.data.length),n.xp6(1),n.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.table.length)}}var rt=function(){var t=function(){function t(e,i,r){v(this,t),this.router=e,this.authResolver=i,this.registrarManager=r,this.applications=[],this.pageSize=10,this.disableRouting=!1,this.page=new n.vpe,this.displayedColumns=["id","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","createdAt","modifiedBy","modifiedAt","fedInfo"],this.loading=!1,this.table=[],this.addedColumns=new Set,this.pageSizeOptions=a.f7}return y(t,[{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.loading=!0,this.table=[],this.initialize(),this.getApplicationsData(0)}},{key:"getExportDataForColumn",value:function(t,e){var i,n,r,o;switch(e){case"id":return t.id.toString();case"voId":return t.vo.id.toString();case"voName":return t.vo.name;case"groupId":return null!==(n=null===(i=t.group)||void 0===i?void 0:i.id.toString())&&void 0!==n?n:"";case"groupName":return null!==(o=null===(r=t.group)||void 0===r?void 0:r.name)&&void 0!==o?o:"";case"type":return t.type;case"fedInfo":return t.fedInfo;case"state":return t.state;case"extSourceName":return t.extSourceName;case"extSourceType":return t.extSourceType;case"user":return t.user?(0,a.bD)(t.user):"";case"createdBy":return t.createdBy;case"createdAt":return t.createdAt;case"modifiedBy":return t.modifiedBy;case"modifiedAt":return t.modifiedAt;default:return t[e]}}},{key:"exportData",value:function(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"getApplicationsData",value:function(t){var e=this;if(this.applications.length!==t){var i=this.applications[t],n={};n.id=i.id,n.vo=i.vo,n.group=i.group,n.type=i.type,n.fedInfo=i.fedInfo,n.state=i.state,n.extSourceName=i.extSourceName,n.extSourceType=i.extSourceType,n.extSourceLoa=i.extSourceLoa,n.user=i.user,n.createdBy=i.createdBy,n.createdAt=i.createdAt,n.modifiedBy=i.modifiedBy,n.modifiedAt=i.modifiedAt,this.registrarManager.getApplicationDataById(i.id).subscribe(function(i){var r,o=f(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;null!==a.formItem.i18n.en.label&&0!==a.formItem.i18n.en.label.length?(n[a.formItem.i18n.en.label]=a.value,e.addedColumns.add(a.formItem.i18n.en.label)):(n[a.shortname]=a.value,e.addedColumns.add(a.shortname))}}catch(s){o.e(s)}finally{o.f()}e.table.push(n),e.getApplicationsData(t+1)})}else this.initialize()}},{key:"initialize",value:function(){var t,e=f(this.addedColumns);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.displayedColumns.push(i)}}catch(n){e.e(n)}finally{e.f()}this.dataSource=new o.by(this.table),this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage(),this.loading=!1}},{key:"getFriendlyName",value:function(t){var e=t.lastIndexOf("/CN=");if(-1!==e){var i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}},{key:"selectApplication",value:function(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.F0),n.Y36(s.x4),n.Y36(r.tk))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-perun-web-apps-application-list-details"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(a.l9,7),2&t)&&(n.iGM(i=n.CRH())&&(e.child=i.first))},inputs:{applications:"applications",group:"group",member:"member",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.TTD],decls:53,vars:12,consts:[[1,"card","mt-2","w-100",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","createdAt"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],[3,"matColumnDef",4,"ngFor","ngForOf"],["matColumnDef","fedInfo"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[1,"ml-auto","mr-auto"],["alert_type","warn",4,"ngIf"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,b,3,3,"th",4),n.YNc(5,w,2,1,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,_,3,3,"th",4),n.YNc(8,A,2,1,"td",5),n.BQk(),n.ynx(9,7),n.YNc(10,k,3,3,"th",4),n.YNc(11,T,2,1,"td",5),n.BQk(),n.ynx(12,8),n.YNc(13,C,3,3,"th",4),n.YNc(14,S,2,1,"td",5),n.BQk(),n.ynx(15,9),n.YNc(16,E,3,3,"th",4),n.YNc(17,x,2,1,"td",5),n.BQk(),n.ynx(18,10),n.YNc(19,R,3,3,"th",4),n.YNc(20,I,2,1,"td",11),n.BQk(),n.ynx(21,12),n.YNc(22,O,3,3,"th",4),n.YNc(23,P,2,1,"td",11),n.BQk(),n.ynx(24,13),n.YNc(25,D,3,3,"th",4),n.YNc(26,M,2,1,"td",11),n.BQk(),n.ynx(27,14),n.YNc(28,L,3,3,"th",4),n.YNc(29,N,2,1,"td",11),n.BQk(),n.ynx(30,15),n.YNc(31,z,3,3,"th",4),n.YNc(32,F,3,3,"td",11),n.BQk(),n.ynx(33,16),n.YNc(34,Z,3,3,"th",4),n.YNc(35,B,2,1,"td",11),n.BQk(),n.ynx(36,17),n.YNc(37,q,3,3,"th",4),n.YNc(38,U,3,4,"td",11),n.BQk(),n.ynx(39,18),n.YNc(40,H,3,3,"th",4),n.YNc(41,j,2,1,"td",11),n.BQk(),n.ynx(42,19),n.YNc(43,G,3,3,"th",4),n.YNc(44,Y,3,4,"td",11),n.BQk(),n.YNc(45,J,3,1,"ng-container",20),n.ynx(46,21),n.YNc(47,Q,3,3,"th",4),n.YNc(48,W,2,1,"td",11),n.BQk(),n.YNc(49,X,1,0,"tr",22),n.YNc(50,$,1,4,"tr",23),n.qZA(),n.qZA(),n.qZA(),n.YNc(51,tt,1,0,"mat-spinner",24),n.YNc(52,nt,3,2,"div",25)),2&t&&(n.ekj("hide-table",e.loading),n.Q6J("hidden",0===e.table.length||!!e.dataSource&&0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(43),n.Q6J("ngForOf",e.addedColumns),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",!e.loading))},directives:[c.l,o.BZ,o.w1,o.fO,o.Dz,l.sg,o.as,o.nj,l.O5,o.ge,o.ev,o.XQ,o.Gk,h.YH,u.rH,d.$g,p.w],pipes:[g.X$,m.d,l.uU],styles:[".mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%], mat-cell[_ngcontent-%COMP%], mat-header-cell[_ngcontent-%COMP%]{padding:8px!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},21548:function(t,e,i){"use strict";i.d(e,{M:function(){return G}});var n=i(31572),r=i(58623),o=i(67033),a=i(27613),s=i(88426),u=i(82819),c=i(61511),l=i(43691),h=i(36922),d=i(84534),f=i(57629),p=i(39571),g=i(48160),m=i(84650),b=i(22196);function w(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function _(t,e){if(1&t&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function A(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")))}function k(t,e){if(1&t&&(n.TgZ(0,"td",18),n._uU(1),n.ALo(2,"date"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,i.createdAt,"d.M.y"))}}function T(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")))}function C(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",20),n._uU(2,"arrow_right_alt"),n.qZA(),n.qZA())}function S(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",21),n._uU(2,"restore"),n.qZA(),n.qZA())}function E(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",22),n._uU(2,"nat"),n.qZA(),n.qZA())}function x(t,e){if(1&t&&(n.TgZ(0,"td",18),n.YNc(1,C,3,0,"div",19),n.YNc(2,S,3,0,"div",19),n.YNc(3,E,3,0,"div",19),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf","INITIAL"===i.type),n.xp6(1),n.Q6J("ngIf","EXTENSION"===i.type),n.xp6(1),n.Q6J("ngIf","EMBEDDED"===i.type)}}function R(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")))}function I(t,e){if(1&t&&(n.TgZ(0,"td",18),n._UZ(1,"span",23),n.ALo(2,"applicationState"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("outerHTML",n.lcZ(2,1,i.state),n.oJD)}}function O(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_SUBMITTED_BY")))}function P(t,e){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){var i=n.oxw().$implicit;n.xp6(1),n.hij(" ",i.createdBy.slice(i.createdBy.lastIndexOf("=")+1,i.createdBy.length)," ")}}function D(t,e){if(1&t&&(n._uU(0),n.ALo(1,"userFullName")),2&t){var i=n.oxw().$implicit;n.hij(" ",n.lcZ(1,1,i.user)," ")}}function M(t,e){if(1&t&&(n.TgZ(0,"td",18),n.YNc(1,P,2,1,"div",24),n.YNc(2,D,2,3,"ng-template",null,25,n.W1O),n.qZA()),2&t){var i=e.$implicit,r=n.MAs(3);n.xp6(1),n.Q6J("ngIf",null===i.user)("ngIfElse",r)}}function L(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")))}function N(t,e){1&t&&(n.TgZ(0,"div",28),n._uU(1," - "),n.qZA())}function z(t,e){if(1&t&&n._uU(0),2&t){var i=n.oxw().$implicit;n.hij(" ",i.group.name," ")}}function F(t,e){if(1&t&&(n.TgZ(0,"td",18),n.YNc(1,N,2,0,"div",26),n.YNc(2,z,1,1,"ng-template",null,27,n.W1O),n.qZA()),2&t){var i=e.$implicit,r=n.MAs(3);n.xp6(1),n.Q6J("ngIf",null===i.group)("ngIfElse",r)}}function Z(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")))}function B(t,e){if(1&t&&(n.TgZ(0,"td",18),n._uU(1),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Oqu(r.getFriendlyName(i.modifiedBy))}}function q(t,e){1&t&&n._UZ(0,"tr",29)}function U(t,e){if(1&t&&n._UZ(0,"tr",30),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",r.selectApplication(i))("routerLink",r.selectApplication(i))}}function H(t,e){1&t&&(n.TgZ(0,"app-alert",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}function j(t,e){1&t&&(n.TgZ(0,"app-alert",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var G=function(){var t=function(){function t(e,i){v(this,t),this.authResolver=e,this.changeDetector=i,this.applications=[],this.displayedColumns=[],this.pageSize=10,this.disableRouting=!1,this.page=new n.vpe,this.pageSizeOptions=a.f7}return y(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"ngAfterViewInit",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.setDataSource(),this.changeDetector.detectChanges()}},{key:"ngOnChanges",value:function(){this.dataSource=new o.by(this.applications),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e,i){var n;switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}},{key:"getExportDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?(0,a.bD)(t.user):t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}},{key:"parseModifiedBy",value:function(t){var e=t.modifiedBy.lastIndexOf("/CN=");if(-1!==e){var i=t.modifiedBy.slice(e+4,t.modifiedBy.length).replace("/unstructuredName="," ").toLowerCase();return-1!==i.lastIndexOf("\\")?t.modifiedBy.slice(t.modifiedBy.lastIndexOf("=")+1,t.modifiedBy.length):i}return t.modifiedBy.toLowerCase()}},{key:"exportData",value:function(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.child.paginator&&(this.dataSource&&(this.dataSource.paginator=this.child.paginator,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=function(e,i){return(0,a.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,a.pR)(e,i,t.getDataForColumn,t)}),this.dataSource.filter=this.filterValue)}},{key:"getFriendlyName",value:function(t){var e=t.lastIndexOf("/CN=");if(-1!==e){var i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}},{key:"selectApplication",value:function(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.x4),n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-applications-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,5),n.Gf(a.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},inputs:{applications:"applications",group:"group",member:"member",displayedColumns:"displayedColumns",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","createdAt","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","createdAt"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","user"],["matColumnDef","group"],["matColumnDef","modifiedBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],["class","font-italic text-muted",4,"ngIf","ngIfElse"],["groupName",""],[1,"font-italic","text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,w,3,3,"th",4),n.YNc(5,_,2,1,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,A,3,3,"th",4),n.YNc(8,k,3,4,"td",7),n.BQk(),n.ynx(9,8),n.YNc(10,T,3,3,"th",4),n.YNc(11,x,4,3,"td",7),n.BQk(),n.ynx(12,9),n.YNc(13,R,3,3,"th",4),n.YNc(14,I,3,3,"td",7),n.BQk(),n.ynx(15,10),n.YNc(16,O,3,3,"th",4),n.YNc(17,M,4,2,"td",7),n.BQk(),n.ynx(18,11),n.YNc(19,L,3,3,"th",4),n.YNc(20,F,4,2,"td",7),n.BQk(),n.ynx(21,12),n.YNc(22,Z,3,3,"th",4),n.YNc(23,B,2,1,"td",7),n.BQk(),n.YNc(24,q,1,0,"tr",13),n.YNc(25,U,1,4,"tr",14),n.qZA(),n.qZA(),n.qZA(),n.YNc(26,H,3,3,"app-alert",15),n.YNc(27,j,3,3,"app-alert",15)),2&t&&(n.Q6J("hidden",0===e.applications.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(22),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.applications.length),n.xp6(1),n.Q6J("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.applications.length))},directives:[u.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,c.O5,o.ge,r.nU,o.ev,l.Hw,h.gM,o.XQ,o.Gk,d.YH,f.rH,p.w],pipes:[g.X$,c.uU,m.h,b.d],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},62284:function(t,e,i){"use strict";i.d(e,{W:function(){return R}});var n=i(33642),r=i(60611),o=i(88426),a=i(16073),s=i(61511),u=i(31572),c=i(57629),l=i(59403),h=i(66283),d=i(4786),f=i(71522),p=i(91058),g=i(51613),m=i(15980),b=i(67806),w=i(21548),_=i(29851),A=i(48160);function k(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"button",15),u.NdJ("click",function(){return u.CHM(i),u.oxw().showAllDetails=!0}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function T(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"button",15),u.NdJ("click",function(){return u.CHM(i),u.oxw().showAllDetails=!1}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function C(t,e){1&t&&u._UZ(0,"mat-spinner",16)}function S(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"app-applications-list",19),u.NdJ("page",function(t){return u.CHM(i),u.oxw(2).pageChanged(t)}),u.qZA()}if(2&t){var n=u.oxw(2);u.Q6J("pageSize",n.pageSize)("disableRouting",!n.routeAuth)("filterValue",n.filterValue)("applications",n.applications)("displayedColumns",n.displayedColumns)("group",n.group)}}function E(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"app-perun-web-apps-application-list-details",20),u.NdJ("page",function(t){return u.CHM(i),u.oxw(2).detailPageChanged(t)}),u.qZA()}if(2&t){var n=u.oxw(2);u.Q6J("pageSize",n.detailPageSize)("disableRouting",!n.routeAuth)("filterValue",n.filterValue)("applications",n.applications)("group",n.group)}}function x(t,e){if(1&t&&(u.TgZ(0,"div"),u.YNc(1,S,1,6,"app-applications-list",17),u.YNc(2,E,1,5,"app-perun-web-apps-application-list-details",18),u.qZA()),2&t){var i=u.oxw();u.xp6(1),u.Q6J("ngIf",!i.showAllDetails),u.xp6(1),u.Q6J("ngIf",i.showAllDetails)}}var R=function(){var t=function(){function t(e,i,n,o,a,s){v(this,t),this.groupService=e,this.registrarManager=i,this.tableConfigService=n,this.route=o,this.guiAuthResolver=a,this.store=s,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=r.Af,this.tableId=r.gB,this.routeAuth=!1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.detailPageSize=this.tableConfigService.getTablePageSize(this.detailTableId),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(function(e){t.groupService.getGroupById(e.groupId).subscribe(function(e){t.group=e,t.setData(["NEW","VERIFIED"])}),t.startDate=new a.NI((0,s.p6)(t.yearAgo(),"yyyy-MM-dd","en-GB")),t.endDate=new a.NI((0,s.p6)(new Date,"yyyy-MM-dd","en-GB"))})}},{key:"setAuth",value:function(){0!==this.applications.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("group-getApplicationById_int_policy",[this.group]))}},{key:"setData",value:function(t){var e=this;this.registrarManager.getApplicationsForGroup(this.group.id,t,(0,s.p6)(this.startDate.value,"yyyy-MM-dd","en-GB"),(0,s.p6)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(function(t){e.applications=t,e.setAuth(),e.loading=!1})}},{key:"select",value:function(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}},{key:"yearAgo",value:function(){var t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"detailPageChanged",value:function(t){this.detailPageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.detailTableId,t.pageSize)}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="GroupApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(n.ff),u.Y36(n.tk),u.Y36(r.dB),u.Y36(c.gz),u.Y36(o.x4),u.Y36(o.d6))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.true)},decls:34,vars:32,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",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,"startDate","endDate","datePicker"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","disableRouting","filterValue","applications","displayedColumns","group","page",4,"ngIf"],[3,"pageSize","disableRouting","filterValue","applications","group","page",4,"ngIf"],[3,"pageSize","disableRouting","filterValue","applications","displayedColumns","group","page"],[3,"pageSize","disableRouting","filterValue","applications","group","page"]],template:function(t,e){1&t&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div"),u.TgZ(4,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return e.select()}),u.qZA(),u.YNc(5,k,3,3,"button",2),u.YNc(6,T,3,3,"button",2),u.TgZ(7,"mat-form-field",3),u.TgZ(8,"mat-label"),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.TgZ(11,"mat-select",4),u.NdJ("selectionChange",function(){return e.select()})("valueChange",function(t){return e.state=t}),u.TgZ(12,"mat-option",5),u._uU(13),u.ALo(14,"translate"),u.qZA(),u.TgZ(15,"mat-option",6),u._uU(16),u.ALo(17,"translate"),u.qZA(),u.TgZ(18,"mat-option",7),u._uU(19),u.ALo(20,"translate"),u.qZA(),u.TgZ(21,"mat-option",8),u._uU(22),u.ALo(23,"translate"),u.qZA(),u.TgZ(24,"mat-option",9),u._uU(25),u.ALo(26,"translate"),u.qZA(),u.TgZ(27,"mat-option",10),u._uU(28),u.ALo(29,"translate"),u.qZA(),u.qZA(),u.qZA(),u.TgZ(30,"perun-web-apps-debounce-filter",11),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.TgZ(31,"perun-web-apps-date-range",12),u.NdJ("datePicker",function(){return e.select()}),u.qZA(),u.qZA(),u.YNc(32,C,1,0,"mat-spinner",13),u.YNc(33,x,3,2,"div",14)),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,16,"VO_DETAIL.APPLICATION.TITLE")),u.xp6(4),u.Q6J("ngIf",!e.showAllDetails),u.xp6(1),u.Q6J("ngIf",e.showAllDetails),u.xp6(3),u.Oqu(u.lcZ(10,18,"VO_DETAIL.APPLICATION.TABLE_STATE")),u.xp6(2),u.Q6J("value",e.state),u.xp6(2),u.Oqu(u.lcZ(14,20,"VO_DETAIL.APPLICATION.SELECTION_ALL")),u.xp6(3),u.Oqu(u.lcZ(17,22,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),u.xp6(3),u.Oqu(u.lcZ(20,24,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),u.xp6(3),u.Oqu(u.lcZ(23,26,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),u.xp6(3),u.Oqu(u.lcZ(26,28,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),u.xp6(3),u.Oqu(u.lcZ(29,30,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),u.xp6(2),u.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),u.xp6(1),u.Q6J("startDate",e.startDate)("endDate",e.endDate),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[l.t,s.O5,h.KE,h.hX,d.gD,f.ey,p.P,g.S,m.lW,b.$g,w.M,_.w],pipes:[A.X$],styles:[""]}),t}()},11930:function(t,e,i){"use strict";i.d(e,{y:function(){return F}});var n=i(4230),r=i(88426),o=i(67004),a=i(85613),s=i(4374),u=i(33642),c=i(60611),l=i(27613),h=i(88690),d=i(16073),f=i(31572),p=i(57629),g=i(84608),m=i(61511),b=i(59403),w=i(36922),_=i(66283),A=i(4786),k=i(91058),T=i(39571),C=i(15980),S=i(71522),E=i(67806),x=i(91779),R=i(48160);function I(t,e){1&t&&(f.TgZ(0,"app-alert",14),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function O(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",15),f.NdJ("click",function(){return f.CHM(i),f.oxw().onAddMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.synchEnabled||n.blockManualMemberAdding),f.xp6(1),f.hij(" ",f.lcZ(2,2,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function P(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",15),f.NdJ("click",function(){return f.CHM(i),f.oxw().onInviteMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.synchEnabled),f.xp6(1),f.hij(" ",f.lcZ(2,2,"GROUP_DETAIL.MEMBERS.INVITE_MEMBER")," ")}}function D(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",16),f.NdJ("click",function(){return f.CHM(i),f.oxw().onRemoveMembers()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.selection.isEmpty()||n.synchEnabled),f.xp6(1),f.hij(" ",f.lcZ(2,2,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function M(t,e){if(1&t&&(f.TgZ(0,"mat-option",17),f._uU(1),f.qZA()),2&t){var i=e.$implicit;f.Q6J("value",i),f.xp6(1),f.Oqu(i)}}function L(t,e){if(1&t&&(f.TgZ(0,"mat-option",17),f._uU(1),f.qZA()),2&t){var i=e.$implicit;f.Q6J("value",i),f.xp6(1),f.Oqu(i)}}function N(t,e){1&t&&f._UZ(0,"mat-spinner",18)}function z(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"perun-web-apps-members-dynamic-list",19),f.NdJ("page",function(t){return f.CHM(i),f.oxw().pageChanged(t)}),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("voId",n.group.voId)("groupId",n.group.id)("pageSize",n.pageSize)("selection",n.selection)("displayedColumns",n.displayedColumns)("updateTable",n.updateTable)("searchString",n.searchString)("selectedStatuses",n.selectedStatuses)("selectedGroupStatuses",n.selectedGroupStatuses)("attrNames",n.memberAttrNames)}}var F=function(){var t=function(){function t(e,i,n,r,a,s,u,l,h){v(this,t),this.groupService=e,this.route=i,this.tableConfigService=n,this.dialog=r,this.guiAuthResolver=a,this.storeService=s,this.attributesManager=u,this.apiRequest=l,this.notificator=h,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=c.dI,this.memberAttrNames=[o.r.MEMBER_DEF_ORGANIZATION,o.r.MEMBER_DEF_MAIL,o.r.USER_DEF_ORGANIZATION,o.r.USER_DEF_PREFERRED_MAIL,o.r.MEMBER_DEF_EXPIRATION,o.r.MEMBER_DEF_GROUP_EXPIRATION],this.groupAttrNames=[o.r.GROUP_SYNC_ENABLED,o.r.GROUP_LAST_SYNC_STATE,o.r.GROUP_LAST_SYNC_TIMESTAMP,o.r.GROUP_STRUCTURE_SYNC_ENABLED,o.r.GROUP_LAST_STRUCTURE_SYNC_STATE,o.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new d.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new d.NI,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"]}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.selection=new n.Ov(!0,[]),this.statuses.setValue(this.selectedStatuses),this.groupStatuses.setValue(this.selectedGroupStatuses),this.memberAttrNames=this.memberAttrNames.concat(this.storeService.getLoginAttributeNames()),this.route.parent.params.subscribe(function(e){var i=e.groupId;t.isManualAddingBlocked(e.voId,i).then(function(){return t.loadPage(i)})})}},{key:"loadPage",value:function(t){var e=this;this.groupService.getRichGroupByIdWithAttributesByNames(t,this.groupAttrNames).subscribe(function(t){e.group=t,e.synchEnabled=e.isSynchronized(),e.setAuthRights(),e.loading=!1})}},{key:"isSynchronized",value:function(){return this.group.attributes.some(function(t){return"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString()})}},{key:"setAuthRights",value:function(){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])}},{key:"onSearchByString",value:function(t){this.searchString=t,this.updateTable=!this.updateTable}},{key:"onAddMember",value:function(){var t=this,e=(0,l.kZ)();e.width="1000px",e.data={voId:this.group.voId,group:this.group,entityId:this.group.id,theme:"group-theme",type:"group"},this.dialog.open(a.o,e).afterClosed().subscribe(function(e){e&&(t.selection.clear(),t.updateTable=!t.updateTable)})}},{key:"onRemoveMembers",value:function(){var t=this,e=(0,l.kZ)();e.width="450px",e.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(s.X,e).afterClosed().subscribe(function(e){e&&(t.selection.clear(),t.updateTable=!t.updateTable)})}},{key:"onInviteMember",value:function(){var t=(0,l.kZ)();t.width="650px",t.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(h.R,t)}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"displaySelectedStatuses",value:function(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?"".concat(this.statuses.value[0]," ").concat(this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""):""}},{key:"displaySelectedGroupStatuses",value:function(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":"".concat(this.groupStatuses.value[0])}},{key:"isManualAddingBlocked",value:function(t,e){var i=this;return new Promise(function(n){i.apiRequest.dontHandleErrorForNext(),i.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(function(t){i.blockManualMemberAdding=null!==t.value,!0!==i.blockManualMemberAdding?(i.apiRequest.dontHandleErrorForNext(),i.attributesManager.getGroupAttributeByName(e,"urn:perun:group:attribute-def:def:blockManualMemberAdding").subscribe(function(t){i.blockManualMemberAdding=null!==t.value,n()},function(t){"PrivilegeException"!==t.error.name&&i.notificator.showError(t),n()})):n()},function(t){"PrivilegeException"!==t.error.name&&i.notificator.showError(t),n()})})}},{key:"changeVoStatuses",value:function(){this.selectedStatuses=this.statuses.value}},{key:"changeGroupStatuses",value:function(){this.selectedGroupStatuses=this.groupStatuses.value}}]),t}();return t.id="GroupMembersComponent",t.\u0275fac=function(e){return new(e||t)(f.Y36(u.ff),f.Y36(p.gz),f.Y36(c.dB),f.Y36(g.uw),f.Y36(r.x4),f.Y36(r.d6),f.Y36(u.H8),f.Y36(r.F5),f.Y36(r.V6))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(t,e){2&t&&f.ekj("router-component",e.true)},decls:36,vars:41,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],[3,"matTooltip","matTooltipDisabled"],["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"],[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,"voId","groupId","pageSize","selection","displayedColumns","updateTable","searchString","selectedStatuses","selectedGroupStatuses","attrNames","page",4,"ngIf"],["alert_type","warn"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"group-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"voId","groupId","pageSize","selection","displayedColumns","updateTable","searchString","selectedStatuses","selectedGroupStatuses","attrNames","page"]],template:function(t,e){1&t&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.YNc(3,I,3,3,"app-alert",1),f.TgZ(4,"div",2),f.TgZ(5,"perun-web-apps-refresh-button",3),f.NdJ("click",function(){return e.updateTable=!e.updateTable}),f.qZA(),f.TgZ(6,"span",4),f.ALo(7,"translate"),f.TgZ(8,"div",5),f.ALo(9,"translate"),f.YNc(10,O,3,4,"button",6),f.qZA(),f.qZA(),f.TgZ(11,"span",4),f.ALo(12,"translate"),f.YNc(13,P,3,4,"button",6),f.qZA(),f.TgZ(14,"span",4),f.ALo(15,"translate"),f.YNc(16,D,3,4,"button",7),f.qZA(),f.TgZ(17,"mat-form-field",8),f.TgZ(18,"mat-label"),f._uU(19),f.ALo(20,"translate"),f.qZA(),f.TgZ(21,"mat-select",9),f.NdJ("closed",function(){return e.changeVoStatuses()}),f.TgZ(22,"mat-select-trigger"),f._uU(23),f.qZA(),f.YNc(24,M,2,2,"mat-option",10),f.qZA(),f.qZA(),f.TgZ(25,"mat-form-field",8),f.TgZ(26,"mat-label"),f._uU(27),f.ALo(28,"translate"),f.qZA(),f.TgZ(29,"mat-select",9),f.NdJ("closed",function(){return e.changeGroupStatuses()}),f.TgZ(30,"mat-select-trigger"),f._uU(31),f.qZA(),f.YNc(32,L,2,2,"mat-option",10),f.qZA(),f.qZA(),f.TgZ(33,"perun-web-apps-debounce-filter",11),f.NdJ("filter",function(t){return e.onSearchByString(t)}),f.qZA(),f.qZA(),f.YNc(34,N,1,0,"mat-spinner",12),f.YNc(35,z,1,10,"perun-web-apps-members-dynamic-list",13)),2&t&&(f.xp6(1),f.Oqu(f.lcZ(2,27,"GROUP_DETAIL.MEMBERS.TITLE")),f.xp6(2),f.Q6J("ngIf",e.synchEnabled),f.xp6(3),f.s9C("matTooltip",f.lcZ(7,29,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),f.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),f.xp6(2),f.s9C("matTooltip",f.lcZ(9,31,"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),f.Q6J("matTooltipDisabled",!e.blockManualMemberAdding),f.xp6(2),f.Q6J("ngIf",e.addAuth),f.xp6(1),f.s9C("matTooltip",f.lcZ(12,33,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),f.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),f.xp6(2),f.Q6J("ngIf",e.inviteAuth),f.xp6(1),f.s9C("matTooltip",f.lcZ(15,35,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),f.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),f.xp6(2),f.Q6J("ngIf",e.removeAuth),f.xp6(3),f.Oqu(f.lcZ(20,37,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),f.xp6(2),f.Q6J("formControl",e.statuses),f.xp6(2),f.hij(" ",e.displaySelectedStatuses()," "),f.xp6(1),f.Q6J("ngForOf",e.statusList),f.xp6(3),f.Oqu(f.lcZ(28,39,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),f.xp6(2),f.Q6J("formControl",e.groupStatuses),f.xp6(2),f.hij(" ",e.displaySelectedGroupStatuses()," "),f.xp6(1),f.Q6J("ngForOf",e.groupStatusList),f.xp6(1),f.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),f.xp6(1),f.Q6J("ngIf",e.loading),f.xp6(1),f.Q6J("ngIf",!e.loading))},directives:[m.O5,b.t,w.gM,_.KE,_.hX,A.gD,d.JJ,d.oH,A.$L,m.sg,k.P,T.w,C.lW,S.ey,E.$g,x.m],pipes:[R.X$],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}"]}),t}()},7433:function(t,e,i){"use strict";i.d(e,{q:function(){return U}});var n=i(4230),r=i(33642),o=i(60611),a=i(84608),s=i(88426),u=(i(41939),i(31572)),c=i(48160),l=i(19139),h=i(61511),d=i(67806),f=i(88884),p=i(29236),g=i(36922),m=i(16073),b=i(15980),w=["list"];function _(t,e){1&t&&u._UZ(0,"mat-spinner",4)}var A=function(){return["select","id","name","facility","tags","description"]};function k(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"div",5),u._UZ(2,"perun-web-apps-resources-list",6,7),u.qZA(),u.TgZ(4,"div",8),u.TgZ(5,"mat-checkbox",9),u.NdJ("ngModelChange",function(t){return u.CHM(i),u.oxw().async=t}),u.ALo(6,"translate"),u._uU(7),u.ALo(8,"translate"),u.qZA(),u.TgZ(9,"button",10),u.NdJ("click",function(){return u.CHM(i),u.oxw().onCancel()}),u._uU(10),u.ALo(11,"translate"),u.qZA(),u.TgZ(12,"span",11),u.ALo(13,"translate"),u.TgZ(14,"button",12),u.NdJ("click",function(){return u.CHM(i),u.oxw().onSubmit()}),u._uU(15),u.ALo(16,"translate"),u.qZA(),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=u.MAs(3),r=u.oxw();u.xp6(2),u.Q6J("resources",r.resources)("disableRouting",!0)("selection",r.selection)("groupToResource",r.data.group)("displayedColumns",u.DdM(24,A))("filterValue",r.filterValue),u.xp6(3),u.s9C("matTooltip",u.lcZ(6,14,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT_DESCRIPTION")),u.Q6J("ngModel",r.async),u.xp6(2),u.hij(" ",u.lcZ(8,16,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),u.xp6(3),u.hij(" ",u.lcZ(11,18,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),u.xp6(2),u.s9C("matTooltip",u.lcZ(13,20,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),u.Q6J("matTooltipDisabled",void 0===n||n.addAuth),u.xp6(2),u.Q6J("disabled",0===r.selection.selected.length||r.loading||void 0!==n&&!n.addAuth),u.xp6(1),u.hij(" ",u.lcZ(16,22,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}var T=function(){var t=function(){function t(e,i,r,o,a){v(this,t),this.dialogRef=e,this.data=i,this.notificator=r,this.translate=o,this.resourcesManager=a,this.filterValue="",this.resources=[],this.selection=new n.Ov(!0,[]),this.theme="",this.async=!0}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.theme=this.data.theme,this.loading=!0,this.resourcesManager.getRichResources(this.data.voId).subscribe(function(e){t.resources=e.filter(function(e){return!t.data.unwantedResources.includes(e.id)}),t.loading=!1},function(){return t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var e=this.selection.selected.map(function(t){return t.id});this.resourcesManager.assignGroupToResources(this.data.group.id,e,this.async).subscribe(function(){t.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(function(e){t.loading=!1,t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(a.so),u.Y36(a.WI),u.Y36(s.V6),u.Y36(c.sK),u.Y36(r.xk))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(t,e){var i;(1&t&&u.Gf(w,5),2&t)&&(u.iGM(i=u.CRH())&&(e.list=i.first))},decls:8,vars:11,consts:[["mat-dialog-title",""],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[3,"resources","disableRouting","selection","groupToResource","displayedColumns","filterValue"],["list",""],["mat-dialog-actions",""],[3,"matTooltip","ngModel","ngModelChange"],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"perun-web-apps-immediate-filter",1),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.ALo(5,"translate"),u.qZA(),u.YNc(6,_,1,0,"mat-spinner",2),u.YNc(7,k,17,25,"div",3),u.qZA()),2&t&&(u.Tol(e.theme),u.xp6(2),u.Oqu(u.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),u.xp6(2),u.Q6J("placeholder",u.lcZ(5,9,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[a.uh,l.L,h.O5,d.$g,a.xY,f.C,a.H8,p.oG,g.gM,m.JJ,m.On,b.lW],pipes:[c.X$],styles:[""]}),t}(),C=i(67033);function S(t,e){1&t&&u._UZ(0,"mat-spinner",4)}function E(t,e){1&t&&u._UZ(0,"th",13)}function x(t,e){if(1&t&&(u.TgZ(0,"td",14),u._uU(1),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.hij(" ",i.name," ")}}function R(t,e){1&t&&u._UZ(0,"tr",15)}function I(t,e){1&t&&u._UZ(0,"tr",16)}function O(t,e){if(1&t&&(u.TgZ(0,"div",5),u.TgZ(1,"p"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",6),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"table",7),u.ynx(8,8),u.YNc(9,E,1,0,"th",9),u.YNc(10,x,2,1,"td",10),u.BQk(),u.YNc(11,R,1,0,"tr",11),u.YNc(12,I,1,0,"tr",12),u.qZA(),u.qZA()),2&t){var i=u.oxw();u.xp6(2),u.hij(" ",u.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),u.xp6(3),u.hij(" ",u.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),u.xp6(2),u.Q6J("dataSource",i.dataSource),u.xp6(4),u.Q6J("matHeaderRowDef",i.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",i.displayedColumns)}}function P(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div",17),u.TgZ(1,"button",18),u.NdJ("click",function(){return u.CHM(i),u.oxw().onCancel()}),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"button",19),u.NdJ("click",function(){return u.CHM(i),u.oxw().onSubmit()}),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA()}if(2&t){var n=u.oxw();u.xp6(2),u.hij(" ",u.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),u.xp6(2),u.Q6J("disabled",n.loading),u.xp6(1),u.hij(" ",u.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}var D=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.resourcesManager=o,this.displayedColumns=["name"]}return y(t,[{key:"ngOnInit",value:function(){this.dataSource=new C.by(this.data.resources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var e=this.data.resources.map(function(t){return t.id});this.resourcesManager.removeGroupFromResources(this.data.groupId,e).subscribe(function(){t.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(function(e){t.loading=!1,t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(a.so),u.Y36(a.WI),u.Y36(s.V6),u.Y36(c.sK),u.Y36(r.xk))},t.\u0275cmp=u.Xpm({type:t,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"],["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(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,S,1,0,"mat-spinner",1),u.YNc(5,O,13,9,"div",2),u.YNc(6,P,7,7,"div",3),u.qZA()),2&t&&(u.Tol(e.data.theme),u.xp6(2),u.Oqu(u.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[a.uh,h.O5,d.$g,a.xY,C.BZ,C.w1,C.fO,C.Dz,C.as,C.nj,C.ge,C.ev,C.XQ,C.Gk,a.H8,b.lW],pipes:[c.X$],styles:[""]}),t}(),M=i(27613),L=i(57629),N=i(59403),z=["list"];function F(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"button",8),u.NdJ("click",function(){return u.CHM(i),u.oxw().addResource()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function Z(t,e){1&t&&u._UZ(0,"mat-spinner",9)}var B=function(){return["select","id","name","status","facility","tags","description"]};function q(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"perun-web-apps-resources-list",10,11),u.NdJ("page",function(t){return u.CHM(i),u.oxw().pageChanged(t)})("refreshTable",function(){return u.CHM(i),u.oxw().refreshTable()}),u.qZA()}if(2&t){var n=u.oxw();u.Q6J("pageSize",n.pageSize)("filterValue",n.filterValue)("resources",n.resources)("routingVo",!0)("disableRouting",!n.routingAuth)("selection",n.selected)("groupToResource",n.group)("groupId",n.groupId)("displayedColumns",u.DdM(9,B))}}var U=function(){var t=function(){function t(e,i,r,a,s,u){v(this,t),this.resourcesManager=e,this.groupService=i,this.tableConfigService=r,this.route=a,this.dialog=s,this.guiAuthResolver=u,this.resources=null,this.selected=new n.Ov(!0,[]),this.filterValue="",this.tableId=o.v1,this.addAuth=!1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.groupId=e.groupId,t.voId=e.voId,t.groupService.getGroupById(t.groupId).subscribe(function(e){t.group=e,t.refreshTable()})})}},{key:"setAuthorization",value:function(){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])}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.resourcesManager.getResourceAssignments(this.group.id).subscribe(function(e){t.resources=e.map(function(t){var e=t.enrichedResource.resource;return e.facility=t.facility,e.status=t.status,e.resourceTags=t.resourceTags,e.failureCause=t.failureCause,e}),t.selected.clear(),t.setAuthorization(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"addResource",value:function(){var t=this,e=(0,M.kZ)();e.width="1000px",e.data={theme:"group-theme",group:this.group,voId:this.voId,unwantedResources:this.resources.map(function(t){return t.id})},this.dialog.open(T,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"removeResource",value:function(){var t=this,e=(0,M.kZ)();e.width="450px",e.data={theme:"group-theme",resources:this.selected.selected,groupId:this.groupId},this.dialog.open(D,e).afterClosed().subscribe(function(e){e&&(t.selected.clear(),t.refreshTable())})}}]),t}();return t.id="GroupResourcesComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(r.xk),u.Y36(r.ff),u.Y36(o.dB),u.Y36(L.gz),u.Y36(a.uw),u.Y36(s.x4))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-group-resources"]],viewQuery:function(t,e){var i;(1&t&&u.Gf(z,5),2&t)&&(u.iGM(i=u.CRH())&&(e.list=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.true)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","groupToResource","groupId","displayedColumns","page","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","groupToResource","groupId","displayedColumns","page","refreshTable"],["list",""]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.YNc(5,F,3,3,"button",2),u.TgZ(6,"span",3),u.ALo(7,"translate"),u.TgZ(8,"button",4),u.NdJ("click",function(){return e.removeResource()}),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.qZA(),u.TgZ(11,"perun-web-apps-immediate-filter",5),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(12,Z,1,0,"mat-spinner",6),u.YNc(13,q,2,10,"perun-web-apps-resources-list",7),u.qZA()),2&t&&(u.xp6(2),u.Oqu(u.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),u.xp6(3),u.Q6J("ngIf",e.addAuth),u.xp6(1),u.s9C("matTooltip",u.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),u.Q6J("matTooltipDisabled",0===e.selected.selected.length||void 0!==e.list&&e.list.removeAuth),u.xp6(2),u.Q6J("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),u.xp6(1),u.hij(" ",u.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),u.xp6(2),u.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",e.resources&&!e.loading))},directives:[N.t,h.O5,g.gM,b.lW,l.L,d.$g,f.C],pipes:[c.X$],styles:[""]}),t}()},65423:function(t,e,i){"use strict";i.d(e,{Z:function(){return U}});var n=i(88426),r=i(92438),o=i(75954),a=i(68570),s=i(24555),u=i(33642),c=i(27613),l=i(31572),h=i(57629),d=i(84608),p=i(48160),g=i(61511),m=i(67806),b=i(43691),w=i(36922),_=i(27679),A=i(59403),k=i(15980),T=i(92846),C=i(27521),S=i(16073),E=i(39571),x=["autoRegToggle"];function R(t,e){1&t&&l._UZ(0,"mat-spinner",3)}function I(t,e){if(1&t&&(l.TgZ(0,"span"),l._uU(1," , "),l.TgZ(2,"mat-icon",21),l._uU(3,"nat"),l.qZA(),l._uU(4),l.ALo(5,"translate"),l.ALo(6,"translate"),l.qZA()),2&t){var i=l.oxw(2);l.xp6(4),l.hij(" ",i.applicationForm.automaticApprovalEmbedded?l.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function O(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"mat-slide-toggle",22,23),l.NdJ("change",function(){return l.CHM(i),l.oxw(2).updateAutoRegistration()}),l._uU(3),l.ALo(4,"translate"),l.qZA(),l.qZA()}if(2&t){var n=l.oxw(2);l.xp6(1),l.Q6J("disabled",!n.changeAutoRegistration)("ngModel",n.autoRegistrationEnabled),l.xp6(2),l.hij(" ",l.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function P(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",24),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).settings()}),l.TgZ(1,"i",18),l._uU(2,"edit"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function D(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",25),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).add()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function M(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",26),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).save()}),l.TgZ(1,"i",18),l._uU(2,"save"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}if(2&t){var n=l.oxw(2);l.Q6J("disabled",!n.itemsChanged),l.xp6(3),l.hij(" ",l.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function L(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",27),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).copy()}),l.TgZ(1,"i",18),l._uU(2,"file_copy"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function N(t,e){1&t&&(l.TgZ(0,"app-alert",28),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}var z=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},F=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function Z(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"div",4),l.TgZ(2,"div",5),l.TgZ(3,"div",6),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.TgZ(6,"div"),l.TgZ(7,"span",6),l._uU(8),l.ALo(9,"translate"),l.qZA(),l._uU(10,": "),l.TgZ(11,"mat-icon",7),l._uU(12,"arrow_right_alt"),l.qZA(),l._uU(13),l.ALo(14,"translate"),l.ALo(15,"translate"),l.TgZ(16,"mat-icon",8),l._uU(17,"restore"),l.qZA(),l._uU(18),l.ALo(19,"translate"),l.ALo(20,"translate"),l.YNc(21,I,7,5,"span",2),l.qZA(),l.YNc(22,O,5,5,"div",2),l.qZA(),l.TgZ(23,"div",9),l.YNc(24,P,5,3,"button",10),l.qZA(),l.qZA(),l._UZ(25,"mat-divider",11),l.TgZ(26,"div",12),l.TgZ(27,"perun-web-apps-refresh-button",13),l.NdJ("refresh",function(){return l.CHM(i),l.oxw().updateFormItems()}),l.qZA(),l.YNc(28,D,3,3,"button",14),l.YNc(29,M,5,4,"button",15),l.YNc(30,L,5,3,"button",16),l.TgZ(31,"button",17),l.NdJ("click",function(){return l.CHM(i),l.oxw().preview()}),l.TgZ(32,"i",18),l._uU(33,"search"),l.qZA(),l._uU(34),l.ALo(35,"translate"),l.qZA(),l.qZA(),l.YNc(36,N,3,3,"app-alert",19),l.TgZ(37,"app-application-form-list",20),l.NdJ("applicationFormItemsChange",function(){return l.CHM(i),l.oxw().changeItems()}),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(2),l.Q6J("ngClass",n.autoRegistrationEnabled?"w-75":"w-50"),l.xp6(2),l.AsE("",l.lcZ(5,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",n.applicationForm.moduleClassName," "),l.xp6(4),l.Oqu(l.lcZ(9,21,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),l.xp6(5),l.hij(" ",n.applicationForm.automaticApproval?l.lcZ(14,23,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(15,25,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),l.xp6(5),l.hij(" ",n.applicationForm.automaticApprovalExtension?l.lcZ(19,27,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(20,29,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),l.xp6(3),l.Q6J("ngIf",n.autoRegistrationEnabled),l.xp6(1),l.Q6J("ngIf",n.voHasEmbeddedGroupApplication),l.xp6(2),l.Q6J("ngIf",n.editAuth),l.xp6(4),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("ngIf",n.editAuth),l.xp6(4),l.hij(" ",l.lcZ(35,31,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),l.xp6(2),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("loading",n.loading)("applicationForm",n.applicationForm)("applicationFormItems",n.applicationFormItems)("theme","group-theme")("displayedColumns",n.editAuth?l.DdM(33,z):l.DdM(34,F))}}function B(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",17),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).createEmptyApplicationForm()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function q(t,e){if(1&t&&(l.TgZ(0,"div"),l.TgZ(1,"app-alert",29),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,B,3,3,"button",30),l.qZA()),2&t){var i=l.oxw();l.xp6(2),l.Oqu(l.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),l.xp6(2),l.Q6J("ngIf",i.createEmptyForm)}}var U=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c,l){v(this,t),this.registrarManager=e,this.route=i,this.dialog=n,this.notificator=r,this.translate=o,this.apiRequest=a,this.router=s,this.guiAuthResolver=u,this.groupsManager=c,this.attributesManager=l,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.idCounter=-1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.parent.params.subscribe(function(e){t.voId=e.voId,t.groupId=e.groupId,t.groupsManager.getGroupById(t.groupId).subscribe(function(e){t.group=e,t.apiRequest.dontHandleErrorForNext(),t.registrarManager.getGroupApplicationForm(t.groupId).subscribe(function(e){t.applicationForm=e,t.registrarManager.getFormItemsForGroup(t.groupId).subscribe(function(e){t.applicationFormItems=e,t.attributesManager.getGroupAttributeByName(t.groupId,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(function(e){t.voHasEmbeddedGroupApplication=null!==e.value,t.autoRegistrationEnabled=!!e.value,t.setAuth(),t.loading=!1})},function(){return t.loading=!1})},function(e){"FormNotExistsException"===e.error.name?(t.noApplicationForm=!0,t.setAuth(),t.loading=!1):t.notificator.showRPCError(e.error)})},function(){return t.loading=!1})})}},{key:"setAuth",value:function(){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])}},{key:"add",value:function(){var t=this,e=(0,c.kZ)();e.width="500px",e.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(r.J,e).afterClosed().subscribe(function(i){i&&(t.applicationFormItems=Object.assign([],i[0]),(e=(0,c.kZ)()).width="600px",e.height="600px",e.data={voId:t.voId,groupId:t.groupId,applicationFormItem:i[1],theme:"group-theme",allItems:t.applicationFormItems},t.dialog.open(o._,e),t.itemsChanged=!0)})}},{key:"copy",value:function(){var t=this,e=(0,c.kZ)();e.width="500px",e.data={voId:this.voId,groupId:this.groupId,theme:"group-theme"},this.dialog.open(a.W,e).afterClosed().subscribe(function(e){e&&t.updateFormItems()})}},{key:"settings",value:function(){var t=this,e=(0,c.kZ)();e.width="400px",e.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(s.E,e).afterClosed().subscribe(function(e){e&&(t.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.applicationForm=e)})}},{key:"preview",value:function(){this.router.navigate(["/organizations",this.voId,"groups",this.groupId,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}},{key:"updateFormItems",value:function(){var t=this;this.loading=!0,this.registrarManager.getFormItemsForGroup(this.groupId).subscribe(function(e){t.applicationFormItems=e,t.itemsChanged=!1,t.loading=!1})}},{key:"changeItems",value:function(){this.itemsChanged=!0}},{key:"createEmptyApplicationForm",value:function(){var t=this;this.registrarManager.createApplicationFormInGroup(this.groupId).subscribe(function(){t.noApplicationForm=!1,t.ngOnInit()})}},{key:"save",value:function(){var t,e=this,i=0,n=f(this.applicationFormItems);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.ordnum=i,r.forDelete||i++}}catch(o){n.e(o)}finally{n.f()}this.registrarManager.updateFormItemsForGroup({group:this.groupId,items:this.applicationFormItems}).subscribe(function(){e.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(function(t){e.notificator.showSuccess(t)}),e.updateFormItems()})}},{key:"clear",value:function(){this.applicationFormItems=[],this.itemsChanged=!0}},{key:"updateAutoRegistration",value:function(){var t=this;this.autoRegToggle.setDisabledState(!0),this.autoRegistrationEnabled?this.registrarManager.deleteGroupsFromAutoRegistration([this.group.id]).subscribe(function(){t.autoRegistrationEnabled=!t.autoRegistrationEnabled,t.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.autoRegToggle.setDisabledState(!1)},function(){return t.autoRegToggle.setDisabledState(!1)}):this.registrarManager.addGroupsToAutoRegistration([this.group.id]).subscribe(function(){t.autoRegistrationEnabled=!t.autoRegistrationEnabled,t.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.autoRegToggle.setDisabledState(!1)},function(){return t.autoRegToggle.setDisabledState(!1)})}}]),t}();return t.id="GroupSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(u.tk),l.Y36(h.gz),l.Y36(d.uw),l.Y36(n.V6),l.Y36(p.sK),l.Y36(n.F5),l.Y36(h.F0),l.Y36(n.x4),l.Y36(u.ff),l.Y36(u.H8))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-group-settings-application-form"]],viewQuery:function(t,e){var i;(1&t&&l.Gf(x,5),2&t)&&(l.iGM(i=l.CRH())&&(e.autoRegToggle=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[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"],["mat-stroked-button","","class","ml-auto",3,"click",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","applicationFormItemsChange"],["matTooltip","Embedded",1,"align-text-bottom"],["color","primary",3,"disabled","ngModel","change"],["autoRegToggle",""],["mat-stroked-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"click"],["alert_type","info"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.YNc(3,R,1,0,"mat-spinner",1),l.YNc(4,Z,38,35,"div",2),l.YNc(5,q,5,4,"div",2)),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading&&!e.noApplicationForm),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.noApplicationForm))},directives:[g.O5,m.$g,g.mk,b.Hw,w.gM,_.d,A.t,k.lW,T.b,C.Rr,S.JJ,S.On,E.w],pipes:[p.X$],styles:[""]}),t}()},82044:function(t,e,i){"use strict";i.d(e,{u:function(){return B}});var n=i(88419),r=i(4230),o=i(43491),a=i(27613),s=i(33642),u=i(67004),c=i(60611),l=i(57820),h=i(88426),d=(i(41939),i(31572)),f=i(84608),p=i(57629),g=i(59403),m=i(61511),b=i(91058),w=i(27521),_=i(16073),A=i(15980),k=i(36922),T=i(67806),C=i(11441),S=i(78364),E=i(48160),x=["tree"],R=["list"],I=["toggle"];function O(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"button",9),d.NdJ("click",function(){return d.CHM(i),d.oxw().onCreateGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function P(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"button",12),d.NdJ("click",function(){return d.CHM(i),d.oxw(2).deleteGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("disabled",0===n.selected.selected.length||void 0!==n.tree&&!n.tree.removeAuth||void 0!==n.list&&!n.list.removeAuth),d.xp6(1),d.hij(" ",d.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function D(t,e){if(1&t&&(d.TgZ(0,"span",10),d.ALo(1,"translate"),d.YNc(2,P,3,4,"button",11),d.qZA()),2&t){var i=d.oxw();d.s9C("matTooltip",d.lcZ(1,3,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),d.Q6J("matTooltipDisabled",void 0===i.tree&&void 0===i.list||void 0!==i.tree&&i.tree.removeAuth||void 0!==i.list&&i.list.removeAuth),d.xp6(2),d.Q6J("ngIf",!i.loading&&i.deleteAuth)}}function M(t,e){1&t&&d._UZ(0,"mat-spinner",13)}function L(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-tree",17,18),d.NdJ("moveGroup",function(t){return d.CHM(i),d.oxw(2).onMoveGroup(t)})("refreshTable",function(){return d.CHM(i),d.oxw(2).refreshTable()}),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("groups",n.groups)("expandAll",n.filtering)("hideCheckbox",!n.deleteAuth)("selection",n.selected)("filterValue",n.filterValue)("disableRouting",!n.routeAuth)}}var N=function(){return["select","id","name","description","menu"]},z=function(){return["id","name","description","menu"]};function F(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",19,20),d.NdJ("page",function(t){return d.CHM(i),d.oxw(2).pageChanged(t)})("moveGroup",function(t){return d.CHM(i),d.oxw(2).onMoveGroup(t)})("refreshTable",function(){return d.CHM(i),d.oxw(2).refreshTable()}),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("pageSize",n.pageSize)("groups",n.groups)("selection",n.selected)("authType","group-subgroups")("disableMembers",!0)("disableRouting",!n.routeAuth)("displayedColumns",n.deleteAuth?d.DdM(8,N):d.DdM(9,z))("filter",n.filterValue)}}function Z(t,e){if(1&t&&(d.TgZ(0,"div",14),d.YNc(1,L,2,6,"perun-web-apps-groups-tree",15),d.YNc(2,F,2,10,"perun-web-apps-groups-list",16),d.qZA()),2&t){var i=d.oxw();d.xp6(1),d.Q6J("ngIf",!i.showGroupList),d.xp6(1),d.Q6J("ngIf",i.showGroupList)}}var B=function(){var t=function(){function t(e,i,n,o,a,s){v(this,t),this.dialog=e,this.groupService=i,this.tableConfigService=n,this.route=o,this.guiAuthResolver=a,this.initAuthService=s,this.groups=[],this.selected=new r.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=c.bf,this.filterValue=""}return y(t,[{key:"onCreateGroup",value:function(){var t=this,e=(0,a.kZ)();e.width="450px",e.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(n.y,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.refreshTable())})}},{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(function(){localStorage.setItem("preferedValue",t.toggle.checked?"list":"tree")}),this.route.parent.params.subscribe(function(e){t.groupService.getGroupById(e.groupId).subscribe(function(e){t.group=e,t.refreshTable()})})}},{key:"setAuthRights",value:function(){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]]))}},{key:"deleteGroup",value:function(){var t=this,e=(0,a.kZ)();e.width="450px",e.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(o.P,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[u.r.GROUP_DEF_MAIL_FOOTER,u.r.GROUP_SYNC_ENABLED,u.r.GROUP_LAST_SYNC_STATE,u.r.GROUP_LAST_SYNC_TIMESTAMP,u.r.GROUP_STRUCTURE_SYNC_ENABLED,u.r.GROUP_LAST_STRUCTURE_SYNC_STATE,u.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(function(e){t.groups=e,t.selected.clear(),t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t,this.filtering=""!==t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"onMoveGroup",value:function(t){var e=this,i=(0,a.kZ)();i.width="550px",i.data={group:t,theme:"group-theme"},this.dialog.open(l.c,i).afterClosed().subscribe(function(t){t&&e.refreshTable()})}}]),t}();return t.id="GroupSubgroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Y36(f.uw),d.Y36(s.ff),d.Y36(c.dB),d.Y36(p.gz),d.Y36(h.x4),d.Y36(h.v0))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-group-subgroups"]],viewQuery:function(t,e){var i;(1&t&&(d.Gf(x,5),d.Gf(R,5),d.Gf(I,7)),2&t)&&(d.iGM(i=d.CRH())&&(e.tree=i.first),d.iGM(i=d.CRH())&&(e.list=i.first),d.iGM(i=d.CRH())&&(e.toggle=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("router-component",e.true)},decls:17,vars:16,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled",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","mat-flat-button","",1,"mr-2",3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable",4,"ngIf"],[3,"pageSize","groups","selection","authType","disableMembers","disableRouting","displayedColumns","filter","page","moveGroup","refreshTable",4,"ngIf"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable"],["tree",""],[3,"pageSize","groups","selection","authType","disableMembers","disableRouting","displayedColumns","filter","page","moveGroup","refreshTable"],["list",""]],template:function(t,e){if(1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return e.refreshTable()}),d.qZA(),d.YNc(5,O,3,3,"button",2),d.YNc(6,D,3,5,"span",3),d.TgZ(7,"perun-web-apps-debounce-filter",4),d.NdJ("filter",function(t){return e.applyFilter(t)}),d.qZA(),d.TgZ(8,"mat-slide-toggle",5,6),d.NdJ("change",function(){return e.selected.clear()})("ngModelChange",function(t){return e.showGroupList=t}),d._uU(10),d.ALo(11,"translate"),d.qZA(),d.TgZ(12,"label"),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.YNc(15,M,1,0,"mat-spinner",7),d.YNc(16,Z,3,2,"div",8),d.qZA()),2&t){var i=d.MAs(9);d.xp6(2),d.Oqu(d.lcZ(3,10,"GROUP_DETAIL.SUBGROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",!e.loading&&e.createAuth),d.xp6(1),d.Q6J("ngIf",!e.loading),d.xp6(1),d.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),d.xp6(1),d.Q6J("ngModel",e.showGroupList),d.xp6(2),d.Oqu(d.lcZ(11,12,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),d.xp6(2),d.uIk("for",i.inputId),d.xp6(1),d.Oqu(d.lcZ(14,14,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),d.xp6(2),d.Q6J("ngIf",e.loading),d.xp6(1),d.Q6J("ngIf",!e.loading)}},directives:[g.t,m.O5,b.P,w.Rr,_.JJ,_.On,A.lW,k.gM,T.$g,C.I,S.W],pipes:[E.X$],styles:[""]}),t}()},81835:function(t,e,i){"use strict";i.d(e,{j:function(){return G}});var n=i(33642),r=i(60611),o=i(4230),a=i(27613),s=i(84608),u=i(88426),c=i(67004),l=i(31572),h=i(48160),d=i(61511),f=i(67806),p=i(19139),g=i(78364),m=i(15980);function b(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function w(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",7),l.NdJ("filter",function(t){return l.CHM(i),l.oxw().applyFilter(t)}),l.qZA()}2&t&&l.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}var _=function(){return["select","id","name","description"]};function A(t,e){if(1&t&&l._UZ(0,"perun-web-apps-groups-list",8),2&t){var i=l.oxw();l.Q6J("groups",i.groups)("selection",i.selection)("displayedColumns",l.DdM(8,_))("filter",i.filterValue)("groupsToDisable",i.membersGroups)("disableGroups",!0)("disableRouting",!0)("disableMembers",!0)}}function k(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div",9),l.TgZ(1,"button",10),l.NdJ("click",function(){return l.CHM(i),l.oxw().onCancel()}),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"button",11),l.NdJ("click",function(){return l.CHM(i),l.oxw().onAdd()}),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),l.xp6(2),l.Q6J("disabled",0===n.selection.selected.length),l.xp6(1),l.hij(" ",l.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}var T=function(){var t=function(){function t(e,i,n,r,a,s,u){v(this,t),this.dialogRef=e,this.data=i,this.groupManager=n,this.memberManager=r,this.notificator=a,this.translate=s,this.authResolver=u,this.loading=!1,this.groups=[],this.selection=new o.Ov(!0,[]),this.attrNames=[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],this.filterValue=""}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.theme=this.data.theme,this.membersGroups=this.data.membersGroups,this.loading=!0,this.memberManager.getMemberById(this.data.memberId).subscribe(function(e){t.member=e,t.groupManager.getAllRichGroupsWithAttributesByNames(t.member.voId,t.attrNames).subscribe(function(e){t.groups=e.filter(function(e){return t.authResolver.isAuthorized("addMember_Group_Member_policy",[e])}),t.loading=!1},function(){return t.loading=!1})})}},{key:"onAdd",value:function(){var t=this,e=this.selection.selected.map(function(t){return t.id});this.loading=!0,this.groupManager.addMember(e,this.member.id).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.ADD_MEMBER_GROUP.SUCCESS")),t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(s.so),l.Y36(s.WI),l.Y36(n.ff),l.Y36(n.uq),l.Y36(u.V6),l.Y36(h.sK),l.Y36(u.x4))},t.\u0275cmp=l.Xpm({type:t,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,"groups","selection","displayedColumns","filter","groupsToDisable","disableGroups","disableRouting","disableMembers",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"groups","selection","displayedColumns","filter","groupsToDisable","disableGroups","disableRouting","disableMembers"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,b,1,0,"mat-spinner",1),l.TgZ(5,"div",2),l.YNc(6,w,1,1,"perun-web-apps-immediate-filter",3),l.YNc(7,A,1,9,"perun-web-apps-groups-list",4),l.qZA(),l.YNc(8,k,7,7,"div",5),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[s.uh,d.O5,s.xY,f.$g,p.L,g.W,s.H8,m.lW],pipes:[h.X$],styles:[""]}),t}(),C=i(67033);function S(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function E(t,e){1&t&&l._UZ(0,"th",15)}function x(t,e){if(1&t&&(l.TgZ(0,"td",16),l._uU(1),l.qZA()),2&t){var i=e.$implicit;l.xp6(1),l.hij(" ",i.name," ")}}function R(t,e){1&t&&l._UZ(0,"tr",17)}function I(t,e){1&t&&l._UZ(0,"tr",18)}function O(t,e){if(1&t&&(l.TgZ(0,"div",7),l.TgZ(1,"p"),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",8),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.TgZ(7,"table",9),l.ynx(8,10),l.YNc(9,E,1,0,"th",11),l.YNc(10,x,2,1,"td",12),l.BQk(),l.YNc(11,R,1,0,"tr",13),l.YNc(12,I,1,0,"tr",14),l.qZA(),l.qZA()),2&t){var i=l.oxw();l.xp6(2),l.Oqu(l.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),l.xp6(3),l.hij(" ",l.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),l.xp6(2),l.Q6J("dataSource",i.dataSource),l.xp6(4),l.Q6J("matHeaderRowDef",i.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",i.displayedColumns)}}var P=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this.dialogRef=e,this.data=i,this.groupManager=n,this.notificator=r,this.translate=o,this.displayedColumns=["name"],this.loading=!1}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new C.by(this.data.groups)}},{key:"onRemove",value:function(){var t=this;this.loading=!0;var e=this.dataSource.data.map(function(t){return t.id});this.groupManager.removeMember(e,this.data.memberId).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.REMOVE_MEMBER_GROUP.SUCCESS")),t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(s.so),l.Y36(s.WI),l.Y36(n.ff),l.Y36(u.V6),l.Y36(h.sK))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-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,"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"],["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(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,S,1,0,"mat-spinner",1),l.YNc(5,O,13,9,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onRemove()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.hij("",l.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),l.xp6(2),l.Q6J("disabled",e.loading),l.xp6(1),l.hij("",l.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},directives:[s.uh,d.O5,s.H8,m.lW,f.$g,s.xY,C.BZ,C.w1,C.fO,C.Dz,C.as,C.nj,C.ge,C.ev,C.XQ,C.Gk],pipes:[h.X$],styles:[""]}),t}();i(41939);var D=i(57629),M=i(59403),L=i(36922),N=["list"];function z(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-refresh-button",7),l.NdJ("refresh",function(){return l.CHM(i),l.oxw().refreshTable()}),l.qZA()}}function F(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",8),l.NdJ("click",function(){return l.CHM(i),l.oxw().addGroup()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function Z(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).removeGroup()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){var n=l.oxw(2);l.Q6J("disabled",0===n.selection.selected.length||void 0!==n.list&&!n.list.removeAuth),l.xp6(1),l.hij(" ",l.lcZ(2,2,"MEMBER_DETAIL.GROUPS.REMOVE")," ")}}function B(t,e){if(1&t&&(l.TgZ(0,"span",9),l.ALo(1,"translate"),l.YNc(2,Z,3,4,"button",10),l.qZA()),2&t){var i=l.oxw();l.s9C("matTooltip",l.lcZ(1,3,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),l.Q6J("matTooltipDisabled",void 0===i.list||void 0!==i.list&&i.list.removeAuth),l.xp6(2),l.Q6J("ngIf",!i.loading)}}function q(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",12),l.NdJ("filter",function(t){return l.CHM(i),l.oxw().applyFilter(t)}),l.qZA()}2&t&&l.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH")}function U(t,e){1&t&&l._UZ(0,"mat-spinner",13)}var H=function(){return["select","id","vo","name","description","expiration"]};function j(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-groups-list",14,15),l.NdJ("page",function(t){return l.CHM(i),l.oxw().pageChanged(t)})("refreshTable",function(){return l.CHM(i),l.oxw().refreshTable()}),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("pageSize",n.pageSize)("groups",n.groups)("displayedColumns",l.DdM(9,H))("selection",n.selection)("filter",n.filterValue)("memberId",n.memberId)("memberGroupStatus",n.member.groupStatus)("disableRouting",!n.routeAuth)("authType","member-groups")}}var G=function(){var t=function(){function t(e,i,n,a,s,u){v(this,t),this.groupsService=e,this.tableConfigService=i,this.route=n,this.dialog=a,this.authResolver=s,this.memberService=u,this.filterValue="",this.tableId=r.W1,this.selection=new o.Ov(!0,[])}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.memberId=e.memberId,t.memberService.getMemberById(t.memberId).subscribe(function(e){t.member=e,t.groupsService.getAllGroups(t.member.voId).subscribe(function(e){t.allGroups=e,t.refreshTable()})})})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,["urn:perun:member_group:attribute-def:def:groupMembershipExpiration"]).subscribe(function(e){t.selection.clear(),t.filterValue="",t.groups=e,t.setAuthRights(),t.loading=!1},function(){return t.loading=!1})}},{key:"setAuthRights",value:function(){var t=this,e={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce(function(e,i){return e||t.authResolver.isAuthorized("addMember_Group_Member_policy",[i])},!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[e,this.groups[0]]))}},{key:"addGroup",value:function(){var t=this,e=(0,a.kZ)();e.width="850px",e.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(function(t){return t.id})),theme:"member-theme"},this.dialog.open(T,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"removeGroup",value:function(){var t=this,e=(0,a.kZ)();e.width="650px",e.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(P,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="MemberGroupsComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(n.ff),l.Y36(r.dB),l.Y36(D.gz),l.Y36(s.uw),l.Y36(u.x4),l.Y36(n.uq))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-member-groups"]],viewQuery:function(t,e){var i;(1&t&&l.Gf(N,5),2&t)&&(l.iGM(i=l.CRH())&&(e.list=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:9,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"pageSize","groups","displayedColumns","selection","filter","memberId","memberGroupStatus","disableRouting","authType","page","refreshTable",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[3,"pageSize","groups","displayedColumns","selection","filter","memberId","memberGroupStatus","disableRouting","authType","page","refreshTable"],["list",""]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.YNc(3,z,1,0,"perun-web-apps-refresh-button",1),l.YNc(4,F,3,3,"button",2),l.YNc(5,B,3,5,"span",3),l.YNc(6,q,1,1,"perun-web-apps-immediate-filter",4),l.YNc(7,U,1,0,"mat-spinner",5),l.YNc(8,j,2,10,"perun-web-apps-groups-list",6)),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,7,"MEMBER_DETAIL.GROUPS.TITLE")),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.addAuth),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[d.O5,M.t,m.lW,L.gM,p.L,f.$g,g.W],pipes:[h.X$],styles:[""]}),t}()},40659:function(t,e,i){"use strict";i.d(e,{c:function(){return R}});var n=i(33642),r=i(60611),o=i(16073),a=i(61511),s=i(31572),u=i(57629),c=i(59403),l=i(66283),h=i(4786),d=i(71522),f=i(91058),p=i(51613),g=i(29236),m=i(15980),b=i(67806),w=i(21548),_=i(29851),A=i(48160);function k(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"button",16),s.NdJ("click",function(){return s.CHM(i),s.oxw().showAllDetails=!0}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function T(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"button",16),s.NdJ("click",function(){return s.CHM(i),s.oxw().showAllDetails=!1}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function C(t,e){1&t&&s._UZ(0,"mat-spinner",17)}function S(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"app-applications-list",20),s.NdJ("page",function(t){return s.CHM(i),s.oxw(2).pageChanged(t)}),s.qZA()}if(2&t){var n=s.oxw(2);s.Q6J("pageSize",n.pageSize)("filterValue",n.filterValue)("applications",n.applications)("displayedColumns",n.displayedColumns)}}function E(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"app-perun-web-apps-application-list-details",21),s.NdJ("page",function(t){return s.CHM(i),s.oxw(2).detailPageChanged(t)}),s.qZA()}if(2&t){var n=s.oxw(2);s.Q6J("pageSize",n.detailPageSize)("filterValue",n.filterValue)("applications",n.applications)}}function x(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,S,1,4,"app-applications-list",18),s.YNc(2,E,1,3,"app-perun-web-apps-application-list-details",19),s.qZA()),2&t){var i=s.oxw();s.xp6(1),s.Q6J("ngIf",!i.showAllDetails),s.xp6(1),s.Q6J("ngIf",i.showAllDetails)}}var R=function(){var t=function(){function t(e,i,n,o){v(this,t),this.voService=e,this.registrarManager=i,this.tableConfigService=n,this.route=o,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","group","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=r.Jf,this.tableId=r.Hi,this.checked=!1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.detailPageSize=this.tableConfigService.getTablePageSize(this.detailTableId),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e,t.setData(["NEW","VERIFIED"])}),t.startDate=new o.NI((0,a.p6)(t.yearAgo(),"yyyy-MM-dd","en-GB")),t.endDate=new o.NI((0,a.p6)(new Date,"yyyy-MM-dd","en-GB"))})}},{key:"setData",value:function(t){var e=this;this.registrarManager.getApplicationsForVo(this.vo.id,t,(0,a.p6)(this.startDate.value,"yyyy-MM-dd","en-GB"),(0,a.p6)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(function(t){e.applications=!1===e.checked?t.filter(function(t){return null===t.group}):t,e.loading=!1})}},{key:"select",value:function(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}},{key:"yearAgo",value:function(){var t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}},{key:"showGroupApplications",value:function(t){this.checked=t.checked,this.select()}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"detailPageChanged",value:function(t){this.detailPageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.detailTableId,t.pageSize)}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="VoApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(s.Y36(n.YF),s.Y36(n.tk),s.Y36(r.dB),s.Y36(u.gz))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:38,vars:36,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,"startDate","endDate","datePicker"],["color","primary",3,"checked","change"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","applications","displayedColumns","page",4,"ngIf"],[3,"pageSize","filterValue","applications","page",4,"ngIf"],[3,"pageSize","filterValue","applications","displayedColumns","page"],[3,"pageSize","filterValue","applications","page"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div"),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.select()}),s.qZA(),s.YNc(5,k,3,3,"button",2),s.YNc(6,T,3,3,"button",2),s.TgZ(7,"mat-form-field",3),s.TgZ(8,"mat-label"),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.TgZ(11,"mat-select",4),s.NdJ("selectionChange",function(){return e.select()})("valueChange",function(t){return e.state=t}),s.TgZ(12,"mat-option",5),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"mat-option",6),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"mat-option",7),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.TgZ(21,"mat-option",8),s._uU(22),s.ALo(23,"translate"),s.qZA(),s.TgZ(24,"mat-option",9),s._uU(25),s.ALo(26,"translate"),s.qZA(),s.TgZ(27,"mat-option",10),s._uU(28),s.ALo(29,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(30,"perun-web-apps-debounce-filter",11),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.TgZ(31,"perun-web-apps-date-range",12),s.NdJ("datePicker",function(){return e.select()}),s.qZA(),s.TgZ(32,"div"),s.TgZ(33,"mat-checkbox",13),s.NdJ("change",function(t){return e.showGroupApplications(t)}),s._uU(34),s.ALo(35,"translate"),s.qZA(),s.qZA(),s.qZA(),s.YNc(36,C,1,0,"mat-spinner",14),s.YNc(37,x,3,2,"div",15)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,18,"VO_DETAIL.APPLICATION.TITLE")),s.xp6(4),s.Q6J("ngIf",!e.showAllDetails),s.xp6(1),s.Q6J("ngIf",e.showAllDetails),s.xp6(3),s.Oqu(s.lcZ(10,20,"VO_DETAIL.APPLICATION.TABLE_STATE")),s.xp6(2),s.Q6J("value",e.state),s.xp6(2),s.Oqu(s.lcZ(14,22,"VO_DETAIL.APPLICATION.SELECTION_ALL")),s.xp6(3),s.Oqu(s.lcZ(17,24,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),s.xp6(3),s.Oqu(s.lcZ(20,26,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),s.xp6(3),s.Oqu(s.lcZ(23,28,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),s.xp6(3),s.Oqu(s.lcZ(26,30,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),s.xp6(3),s.Oqu(s.lcZ(29,32,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),s.xp6(2),s.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),s.xp6(1),s.Q6J("startDate",e.startDate)("endDate",e.endDate),s.xp6(2),s.Q6J("checked",e.checked),s.xp6(1),s.hij(" ",s.lcZ(35,34,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[c.t,a.O5,l.KE,l.hX,h.gD,d.ey,f.P,p.S,g.oG,m.lW,b.$g,w.M,_.w],pipes:[A.X$],styles:[""]}),t}()},48002:function(t,e,i){"use strict";i.d(e,{G:function(){return U}});var n=i(88419),r=i(43491),o=i(4230),a=i(57820),s=i(27613),u=i(33642),c=i(60611),l=i(67004),h=i(88426),d=(i(41939),i(31572)),f=i(84608),p=i(48958),g=i(57629),m=i(59403),b=i(61511),w=i(91058),_=i(27521),A=i(16073),k=i(15980),T=i(36922),C=i(67806),S=i(11441),E=i(78364),x=i(39571),R=i(48160),I=["toggle"],O=["tree"],P=["list"];function D(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"button",10),d.NdJ("click",function(){return d.CHM(i),d.oxw().onCreateGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function M(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"button",13),d.NdJ("click",function(){return d.CHM(i),d.oxw(2).deleteGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("disabled",0===n.selected.selected.length||n.disableRemove()),d.xp6(1),d.hij(" ",d.lcZ(2,2,"VO_DETAIL.GROUPS.DELETE_GROUP")," ")}}function L(t,e){if(1&t&&(d.TgZ(0,"span",11),d.ALo(1,"translate"),d.YNc(2,M,3,4,"button",12),d.qZA()),2&t){var i=d.oxw();d.s9C("matTooltip",d.lcZ(1,3,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),d.Q6J("matTooltipDisabled",void 0===i.tree&&void 0===i.list||i.disableTooltip()),d.xp6(2),d.Q6J("ngIf",!i.loading)}}function N(t,e){1&t&&d._UZ(0,"mat-spinner",14)}function z(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-tree",18,19),d.NdJ("moveGroup",function(t){return d.CHM(i),d.oxw(2).onMoveGroup(t)})("refreshTable",function(){return d.CHM(i),d.oxw(2).loadAllGroups()}),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("groups",n.groups)("expandAll",n.filtering)("vo",n.vo)("selection",n.selected)("disableRouting",!n.routeAuth)("filterValue",n.filterValue)}}var F=function(){return["select","id","name","description","menu"]};function Z(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",20,21),d.NdJ("page",function(t){return d.CHM(i),d.oxw(2).pageChanged(t)})("moveGroup",function(t){return d.CHM(i),d.oxw(2).onMoveGroup(t)})("refreshTable",function(){return d.CHM(i),d.oxw(2).loadAllGroups()}),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("pageSize",n.pageSize)("groups",n.groups)("selection",n.selected)("disableMembers",!0)("displayedColumns",d.DdM(8,F))("disableRouting",!n.routeAuth)("authType","vo-groups")("filter",n.filterValue)}}function B(t,e){if(1&t&&(d.TgZ(0,"div",15),d.YNc(1,z,2,6,"perun-web-apps-groups-tree",16),d.YNc(2,Z,2,9,"perun-web-apps-groups-list",17),d.qZA()),2&t){var i=d.oxw();d.xp6(1),d.Q6J("ngIf",!i.showGroupList),d.xp6(1),d.Q6J("ngIf",i.showGroupList)}}function q(t,e){1&t&&(d.TgZ(0,"app-alert",22),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}var U=function(){var t=function(){function t(e,i,n,r,a,s,u,l){v(this,t),this.dialog=e,this.groupService=i,this.sideMenuService=n,this.voService=r,this.route=a,this.tableConfigService=s,this.authResolver=u,this.initAuthService=l,this.groups=[],this.showGroupList=!1,this.selected=new o.Ov(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=c.rc}return y(t,[{key:"onCreateGroup",value:function(){var t=this,e=(0,s.kZ)();e.width="450px",e.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(n.y,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.loadAllGroups())})}},{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(function(){localStorage.setItem("preferedValue",t.toggle.checked?"list":"tree"),t.loadAllGroups()}),this.route.parent.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e,t.loadAllGroups()})})}},{key:"setAuthRights",value:function(){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]]))}},{key:"disableRemove",value:function(){return void 0!==this.tree&&!this.tree.removeAuth||void 0!==this.list&&!this.list.removeAuth}},{key:"disableTooltip",value:function(){return void 0!==this.tree&&this.tree.removeAuth||void 0!==this.list&&this.list.removeAuth}},{key:"deleteGroup",value:function(){var t=this,e=(0,s.kZ)();e.width="450px",e.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(r.P,e).afterClosed().subscribe(function(e){e&&t.loadAllGroups()})}},{key:"removeAllGroups",value:function(){this.selected.clear()}},{key:"onMoveGroup",value:function(t){var e=this,i=(0,s.kZ)();i.width="550px",i.data={group:t,theme:"vo-theme"},this.dialog.open(a.c,i).afterClosed().subscribe(function(t){t&&e.loadAllGroups()})}},{key:"loadAllGroups",value:function(){var t=this;this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[l.r.GROUP_SYNC_ENABLED,l.r.GROUP_LAST_SYNC_STATE,l.r.GROUP_LAST_SYNC_TIMESTAMP,l.r.GROUP_STRUCTURE_SYNC_ENABLED,l.r.GROUP_LAST_STRUCTURE_SYNC_STATE,l.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(function(e){t.groups=e,t.selected.clear(),t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t,this.filtering=""!==t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="VoGroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Y36(f.uw),d.Y36(u.ff),d.Y36(p.D),d.Y36(u.YF),d.Y36(g.gz),d.Y36(c.dB),d.Y36(h.x4),d.Y36(h.v0))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-vo-groups"]],viewQuery:function(t,e){var i;(1&t&&(d.Gf(I,7),d.Gf(O,5),d.Gf(P,5)),2&t)&&(d.iGM(i=d.CRH())&&(e.toggle=i.first),d.iGM(i=d.CRH())&&(e.tree=i.first),d.iGM(i=d.CRH())&&(e.list=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("router-component",e.true)},decls:18,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"pageSize","groups","selection","disableMembers","displayedColumns","disableRouting","authType","filter","page","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable"],["tree",""],["theme","vo-theme",3,"pageSize","groups","selection","disableMembers","displayedColumns","disableRouting","authType","filter","page","moveGroup","refreshTable"],["list",""],["alert_type","warn"]],template:function(t,e){if(1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return e.loadAllGroups()}),d.qZA(),d.YNc(5,D,3,3,"button",2),d.YNc(6,L,3,5,"span",3),d.TgZ(7,"perun-web-apps-debounce-filter",4),d.NdJ("filter",function(t){return e.applyFilter(t)}),d.qZA(),d.TgZ(8,"mat-slide-toggle",5,6),d.NdJ("change",function(){return e.removeAllGroups()})("ngModelChange",function(t){return e.showGroupList=t}),d._uU(10),d.ALo(11,"translate"),d.qZA(),d.TgZ(12,"label"),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.YNc(15,N,1,0,"mat-spinner",7),d.YNc(16,B,3,2,"div",8),d.YNc(17,q,3,3,"app-alert",9),d.qZA()),2&t){var i=d.MAs(9);d.xp6(2),d.Oqu(d.lcZ(3,11,"VO_DETAIL.GROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",!e.loading&&e.createAuth),d.xp6(1),d.Q6J("ngIf",!e.loading),d.xp6(1),d.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),d.xp6(1),d.Q6J("ngModel",e.showGroupList),d.xp6(2),d.Oqu(d.lcZ(11,13,"VO_DETAIL.GROUPS.TREE_VIEW")),d.xp6(2),d.uIk("for",i.inputId),d.xp6(1),d.Oqu(d.lcZ(14,15,"VO_DETAIL.GROUPS.LIST_VIEW")),d.xp6(2),d.Q6J("ngIf",e.loading),d.xp6(1),d.Q6J("ngIf",!e.loading&&0!==e.groups.length),d.xp6(1),d.Q6J("ngIf",0===e.groups.length&&!e.loading)}},directives:[m.t,b.O5,w.P,_.Rr,A.JJ,A.On,k.lW,T.gM,C.$g,S.I,E.W,x.w],pipes:[R.X$],styles:[""]}),t}()},28940:function(t,e,i){"use strict";i.d(e,{y:function(){return L}});var n=i(4230),r=i(88426),o=i(4374),a=i(85613),s=i(33642),u=i(67004),c=i(16073),l=i(60611),h=i(27613),d=i(88690),f=i(31572),p=i(57629),g=i(84608),m=i(59403),b=i(36922),w=i(61511),_=i(66283),A=i(4786),k=i(91058),T=i(15980),C=i(71522),S=i(67806),E=i(91779),x=i(48160);function R(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",14),f.NdJ("click",function(){return f.CHM(i),f.oxw().onAddMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.blockManualMemberAdding),f.xp6(1),f.hij(" ",f.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function I(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",15),f.NdJ("click",function(){return f.CHM(i),f.oxw().onInviteMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function O(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",16),f.NdJ("click",function(){return f.CHM(i),f.oxw().onRemoveMembers()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.selection.isEmpty()),f.xp6(1),f.hij(" ",f.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function P(t,e){if(1&t&&(f.TgZ(0,"mat-option",17),f._uU(1),f.qZA()),2&t){var i=e.$implicit;f.Q6J("value",i),f.xp6(1),f.Oqu(i)}}function D(t,e){1&t&&f._UZ(0,"mat-spinner",18)}function M(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"perun-web-apps-members-dynamic-list",19),f.NdJ("page",function(t){return f.CHM(i),f.oxw().pageChanged(t)}),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("voId",n.vo.id)("pageSize",n.pageSize)("selection",n.selection)("displayedColumns",n.displayedColumns)("attrNames",n.attrNames)("searchString",n.searchString)("selectedStatuses",n.selectedStatuses)("updateTable",n.updateTable)}}var L=function(){var t=function(){function t(e,i,r,o,a,s,h,d,f){v(this,t),this.voService=e,this.route=i,this.notificator=r,this.tableConfigService=o,this.dialog=a,this.authzService=s,this.storeService=h,this.attributesManager=d,this.apiRequest=f,this.members=null,this.selection=new n.Ov(!0,[]),this.loading=!1,this.attrNames=[u.r.MEMBER_DEF_ORGANIZATION,u.r.MEMBER_DEF_MAIL,u.r.USER_DEF_ORGANIZATION,u.r.USER_DEF_PREFERRED_MAIL,u.r.MEMBER_DEF_EXPIRATION],this.statuses=new c.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=l.j1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.updateTable=!1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.statuses.setValue(this.selectedStatuses),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.route.parent.params.subscribe(function(e){var i=e.voId;t.isManualAddingBlocked(i).then(function(){t.voService.getVoById(i).subscribe(function(e){t.vo=e,t.setAuthRights(),t.loading=!1})})})}},{key:"setAuthRights",value:function(){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])}},{key:"onSearchByString",value:function(t){this.searchString=t,this.updateTable=!this.updateTable}},{key:"onAddMember",value:function(){var t=this,e=(0,h.kZ)();e.width="1000px",e.data={entityId:this.vo.id,voId:this.vo.id,theme:"vo-theme",type:"vo"},this.dialog.open(a.o,e).afterClosed().subscribe(function(e){e&&(t.updateTable=!t.updateTable,t.selection.clear())})}},{key:"onRemoveMembers",value:function(){var t=this,e=(0,h.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(o.X,e).afterClosed().subscribe(function(e){e&&(t.updateTable=!t.updateTable,t.selection.clear())})}},{key:"onInviteMember",value:function(){var t=(0,h.kZ)();t.width="650px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(d.R,t)}},{key:"displaySelectedStatuses",value:function(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?"".concat(this.statuses.value[0]," ").concat(this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""):""}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"isManualAddingBlocked",value:function(t){var e=this;return new Promise(function(i){e.apiRequest.dontHandleErrorForNext(),e.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(function(t){e.blockManualMemberAdding=null!==t.value,i()},function(t){"PrivilegeException"!==t.error.name&&e.notificator.showError(t),i()})})}},{key:"changeStatuses",value:function(){this.selectedStatuses=this.statuses.value}}]),t}();return t.id="VoMembersComponent",t.\u0275fac=function(e){return new(e||t)(f.Y36(s.YF),f.Y36(p.gz),f.Y36(r.V6),f.Y36(l.dB),f.Y36(g.uw),f.Y36(r.x4),f.Y36(r.d6),f.Y36(s.H8),f.Y36(r.F5))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(t,e){2&t&&f.ekj("router-component",e.true)},decls:22,vars:19,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",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,"voId","pageSize","selection","displayedColumns","attrNames","searchString","selectedStatuses","updateTable","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"voId","pageSize","selection","displayedColumns","attrNames","searchString","selectedStatuses","updateTable","page"]],template:function(t,e){1&t&&(f.TgZ(0,"div",0),f.TgZ(1,"h1",1),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"div",2),f.TgZ(5,"perun-web-apps-refresh-button",3),f.NdJ("click",function(){return e.updateTable=!e.updateTable}),f.qZA(),f.TgZ(6,"div",4),f.ALo(7,"translate"),f.YNc(8,R,3,4,"button",5),f.qZA(),f.YNc(9,I,3,3,"button",6),f.YNc(10,O,3,4,"button",7),f.TgZ(11,"mat-form-field",8),f.TgZ(12,"mat-label"),f._uU(13),f.ALo(14,"translate"),f.qZA(),f.TgZ(15,"mat-select",9),f.NdJ("closed",function(){return e.changeStatuses()}),f.TgZ(16,"mat-select-trigger"),f._uU(17),f.qZA(),f.YNc(18,P,2,2,"mat-option",10),f.qZA(),f.qZA(),f.TgZ(19,"perun-web-apps-debounce-filter",11),f.NdJ("filter",function(t){return e.onSearchByString(t)}),f.qZA(),f.qZA(),f.YNc(20,D,1,0,"mat-spinner",12),f.YNc(21,M,1,8,"perun-web-apps-members-dynamic-list",13),f.qZA()),2&t&&(f.xp6(2),f.Oqu(f.lcZ(3,13,"VO_DETAIL.MEMBERS.TITLE")),f.xp6(4),f.s9C("matTooltip",f.lcZ(7,15,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),f.Q6J("matTooltipDisabled",!e.blockManualMemberAdding),f.xp6(2),f.Q6J("ngIf",e.addAuth),f.xp6(1),f.Q6J("ngIf",e.inviteAuth),f.xp6(1),f.Q6J("ngIf",e.removeAuth),f.xp6(3),f.Oqu(f.lcZ(14,17,"VO_DETAIL.MEMBERS.FILTER_STATUS")),f.xp6(2),f.Q6J("formControl",e.statuses),f.xp6(2),f.hij(" ",e.displaySelectedStatuses()," "),f.xp6(1),f.Q6J("ngForOf",e.statusList),f.xp6(1),f.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),f.xp6(1),f.Q6J("ngIf",e.loading),f.xp6(1),f.Q6J("ngIf",!e.loading))},directives:[m.t,b.gM,w.O5,_.KE,_.hX,A.gD,c.JJ,c.oH,A.$L,w.sg,k.P,T.lW,C.ey,S.$g,E.m],pipes:[x.X$],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}"]}),t}()},88227:function(t,e,i){"use strict";i.d(e,{z:function(){return T}});var n=i(4230),r=i(33642),o=i(95909),a=i(60611),s=i(27613),u=i(88426),c=i(31572),l=i(57629),h=i(84608),d=i(59403),f=i(61511),p=i(19139),g=i(15980),m=i(67806),b=i(88884),w=i(48160);function _(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",6),c.NdJ("click",function(){return c.CHM(i),c.oxw().deleteSelectedResources()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&t){var n=c.oxw();c.Q6J("disabled",0===n.selected.selected.length),c.xp6(1),c.hij(" ",c.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function A(t,e){1&t&&c._UZ(0,"mat-spinner",7)}function k(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"perun-web-apps-resources-list",8),c.NdJ("page",function(t){return c.CHM(i),c.oxw().pageChanged(t)}),c.qZA()}if(2&t){var n=c.oxw();c.Q6J("pageSize",n.pageSize)("filterValue",n.filterValue)("resources",n.resources)("routingVo",!0)("disableRouting",!n.routeAuth)("selection",n.selected)("displayedColumns",n.displayedColumns)}}var T=function(){var t=function(){function t(e,i,r,o,s,u){v(this,t),this.resourcesManager=e,this.voService=i,this.route=r,this.tableConfigService=o,this.dialog=s,this.authResolver=u,this.resources=[],this.selected=new n.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=a.nT,this.routeAuth=!1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e,t.refreshTable()})})}},{key:"setAuthRights",value:function(){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"]}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.resourcesManager.getRichResources(this.vo.id).subscribe(function(e){t.resources=e,t.selected.clear(),t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"deleteSelectedResources",value:function(){var t=this,e=(0,s.kZ)();e.width="450px",e.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(o.f,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="VoResourcesPreviewComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(r.xk),c.Y36(r.YF),c.Y36(l.gz),c.Y36(a.dB),c.Y36(h.uw),c.Y36(u.x4))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","displayedColumns","page"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.refreshTable()}),c.qZA(),c.YNc(5,_,3,4,"button",2),c.TgZ(6,"perun-web-apps-immediate-filter",3),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.YNc(7,A,1,0,"mat-spinner",4),c.YNc(8,k,1,7,"perun-web-apps-resources-list",5),c.qZA()),2&t&&(c.xp6(2),c.Oqu(c.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),c.xp6(3),c.Q6J("ngIf",!e.loading&&e.removeAuth),c.xp6(1),c.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[d.t,f.O5,p.L,g.lW,m.$g,b.C],pipes:[w.X$],styles:[""]}),t}()},97397:function(t,e,i){"use strict";i.d(e,{z:function(){return tt}});var n=i(88426),r=i(33642),o=i(31572),a=i(57629),s=i(61511),u=i(67806),c=i(59403),l=i(55109),h=i(67033),d=i(45001),p=i(27679),g=i(48160);function m(t,e){if(1&t&&(o.TgZ(0,"mat-panel-description"),o.TgZ(1,"div"),o.TgZ(2,"i",7),o._uU(3," error "),o.qZA(),o._uU(4),o.ALo(5,"translate"),o.ALo(6,"translate"),o.qZA(),o.qZA()),2&t){var i=o.oxw().$implicit,n=o.oxw();o.xp6(4),o.HOy(" ",n.getErrorCountStates(i)," ",o.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",i.taskList.length," ",o.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function b(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")))}function w(t,e){if(1&t&&(o.TgZ(0,"td",21),o._uU(1),o.qZA()),2&t){var i=e.$implicit;o.xp6(1),o.Oqu(i.id)}}function _(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")))}function A(t,e){if(1&t&&(o.TgZ(0,"td",21),o._uU(1),o.qZA()),2&t){var i=e.$implicit;o.xp6(1),o.Oqu(i.service.name)}}function k(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")))}function T(t,e){if(1&t&&(o.TgZ(0,"td",21),o._uU(1),o.qZA()),2&t){var i=e.$implicit;o.xp6(1),o.Oqu(i.status)}}function C(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")))}function S(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){var i=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,i.schedule,"d.M.y H:mm:ss")," ")}}function E(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function x(t,e){if(1&t&&(o.TgZ(0,"td",21),o.YNc(1,S,3,4,"div",22),o.YNc(2,E,2,3,"ng-template",23,24,o.W1O),o.qZA()),2&t){var i=e.$implicit,n=o.MAs(3);o.xp6(1),o.Q6J("ngIf",i.schedule)("ngIfElse",n)}}function R(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")))}function I(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){var i=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,i.schedule,"d.M.y H:mm:ss")," ")}}function O(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function P(t,e){if(1&t&&(o.TgZ(0,"td",21),o.YNc(1,I,3,4,"div",22),o.YNc(2,O,2,3,"ng-template",23,24,o.W1O),o.qZA()),2&t){var i=e.$implicit,n=o.MAs(3);o.xp6(1),o.Q6J("ngIf",i.startTime)("ngIfElse",n)}}function D(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")))}function M(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){var i=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,i.schedule,"d.M.y H:mm:ss")," ")}}function L(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function N(t,e){if(1&t&&(o.TgZ(0,"td",21),o.YNc(1,M,3,4,"div",22),o.YNc(2,L,2,3,"ng-template",23,24,o.W1O),o.qZA()),2&t){var i=e.$implicit,n=o.MAs(3);o.xp6(1),o.Q6J("ngIf",i.endTime)("ngIfElse",n)}}function z(t,e){1&t&&o._UZ(0,"tr",25)}var F=function(t,e,i){return{redTableItem:t,greenTableItem:e,yellowTableItem:i}};function Z(t,e){if(1&t&&o._UZ(0,"tr",26),2&t){var i=e.$implicit;o.Q6J("ngClass",o.kEZ(1,F,"ERROR"===i.status||"SENDERROR"===i.status||"GENERROR"===i.status,"DONE"===i.status,"WARNING"===i.status))}}function B(t,e){if(1&t&&(o.TgZ(0,"table",9),o.ynx(1,10),o.YNc(2,b,3,3,"th",11),o.YNc(3,w,2,1,"td",12),o.BQk(),o.ynx(4,13),o.YNc(5,_,3,3,"th",11),o.YNc(6,A,2,1,"td",12),o.BQk(),o.ynx(7,14),o.YNc(8,k,3,3,"th",11),o.YNc(9,T,2,1,"td",12),o.BQk(),o.ynx(10,15),o.YNc(11,C,3,3,"th",11),o.YNc(12,x,4,2,"td",12),o.BQk(),o.ynx(13,16),o.YNc(14,R,3,3,"th",11),o.YNc(15,P,4,2,"td",12),o.BQk(),o.ynx(16,17),o.YNc(17,D,3,3,"th",11),o.YNc(18,N,4,2,"td",12),o.BQk(),o.YNc(19,z,1,0,"tr",18),o.YNc(20,Z,1,5,"tr",19),o.qZA()),2&t){var i=o.oxw(2).$implicit,n=o.oxw();o.Q6J("dataSource",n.datasources[n.propagation.indexOf(i)]),o.xp6(19),o.Q6J("matHeaderRowDef",n.displayedColumns),o.xp6(1),o.Q6J("matRowDefColumns",n.displayedColumns)}}function q(t,e){1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function U(t,e){if(1&t&&(o._UZ(0,"mat-divider"),o.YNc(1,B,21,3,"table",8),o.YNc(2,q,3,3,"div",5)),2&t){var i=o.oxw().$implicit;o.xp6(1),o.Q6J("ngIf",0!==i.taskList.length),o.xp6(1),o.Q6J("ngIf",0===i.taskList.length)}}function H(t,e){if(1&t&&(o.TgZ(0,"mat-expansion-panel"),o.TgZ(1,"mat-expansion-panel-header"),o.TgZ(2,"mat-panel-title"),o._UZ(3,"img",3),o.TgZ(4,"div",4),o._uU(5),o.qZA(),o.qZA(),o.YNc(6,m,7,8,"mat-panel-description",5),o.qZA(),o.YNc(7,U,3,2,"ng-template",6),o.qZA()),2&t){var i=e.$implicit,n=o.oxw();o.xp6(5),o.hij(" ",i.resource.name," "),o.xp6(1),o.Q6J("ngIf",0!==n.getErrorCountStates(i))}}var j=function(){var t=function(){function t(){v(this,t),this.propagation=[],this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}return y(t,[{key:"ngOnInit",value:function(){this.getDataSource()}},{key:"getErrorCountStates",value:function(t){var e,i=0,n=f(t.taskList);try{for(n.s();!(e=n.n()).done;){var r=e.value;"ERROR"!==r.status&&"GENERROR"!==r.status&&"SENDERROR"!==r.status||i++}}catch(o){n.e(o)}finally{n.f()}return i}},{key:"getDataSource",value:function(){var t,e=f(this.propagation);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.datasources.push(new h.by(i.taskList))}}catch(n){e.e(n)}finally{e.f()}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-state-tab"]],inputs:{propagation:"propagation"},decls:3,vars:1,consts:[[1,"p-2"],["multi","true","togglePosition","before",1,"headers-align"],[4,"ngFor","ngForOf"],["src","assets/img/PerunWebImages/resource-black.svg","height","28","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["mat-table","","class","w-100",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(t,e){1&t&&(o.TgZ(0,"div",0),o.TgZ(1,"mat-accordion",1),o.YNc(2,H,8,2,"mat-expansion-panel",2),o.qZA(),o.qZA()),2&t&&(o.xp6(2),o.Q6J("ngForOf",e.propagation))},directives:[d.pp,s.sg,d.ib,d.yz,d.yK,s.O5,d.HS,d.u4,p.d,h.BZ,h.w1,h.fO,h.Dz,h.as,h.nj,h.ge,h.ev,h.XQ,h.Gk,s.mk],pipes:[g.X$,s.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_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}"]}),t}(),G=i(39571);function Y(t,e){1&t&&o._UZ(0,"mat-spinner",3)}function V(t,e){if(1&t&&(o._uU(0),o.ALo(1,"translate"),o.TgZ(2,"span",8),o._uU(3),o.qZA()),2&t){var i=o.oxw(2);o.hij(" ",o.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),o.xp6(3),o.Oqu(i.errorPropagation.length)}}function K(t,e){1&t&&(o.TgZ(0,"app-alert",11),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.Q6J("alert_type","warn"),o.xp6(1),o.hij(" ",o.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function J(t,e){if(1&t&&(o.YNc(0,K,3,4,"app-alert",9),o._UZ(1,"app-state-tab",10)),2&t){var i=o.oxw(2);o.Q6J("ngIf",0===i.errorPropagation.length),o.xp6(1),o.Q6J("propagation",i.errorPropagation)}}function Q(t,e){if(1&t&&(o._uU(0),o.ALo(1,"translate"),o.TgZ(2,"span",12),o._uU(3),o.qZA()),2&t){var i=o.oxw(2);o.hij(" ",o.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),o.xp6(3),o.Oqu(i.okPropagation.length)}}function W(t,e){1&t&&(o.TgZ(0,"app-alert",14),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function X(t,e){if(1&t&&(o.YNc(0,W,3,3,"app-alert",13),o._UZ(1,"app-state-tab",10)),2&t){var i=o.oxw(2);o.Q6J("ngIf",0===i.okPropagation.length),o.xp6(1),o.Q6J("propagation",i.okPropagation)}}function $(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"perun-web-apps-refresh-button",4),o.NdJ("refresh",function(){return o.CHM(i),o.oxw().refreshTable()}),o.qZA(),o.TgZ(2,"mat-tab-group",5),o.NdJ("selectedIndexChange",function(t){return o.CHM(i),o.oxw().selectedIndex=t}),o.TgZ(3,"mat-tab"),o.YNc(4,V,4,4,"ng-template",6),o.YNc(5,J,2,2,"ng-template",7),o.qZA(),o.TgZ(6,"mat-tab"),o.YNc(7,Q,4,4,"ng-template",6),o.YNc(8,X,2,2,"ng-template",7),o.qZA(),o.qZA(),o.qZA()}if(2&t){var n=o.oxw();o.xp6(2),o.Q6J("selectedIndex",n.selectedIndex)}}var tt=function(){var t=function(){function t(e,i,n){v(this,t),this.route=e,this.taskService=i,this.customIconService=n,this.loading=!1,this.resourceStates=[],this.selectedIndex=0}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.customIconService.registerPerunRefreshIcon(),this.loading=!0,this.route.parent.parent.params.subscribe(function(e){t.voId=e.voId,t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;console.log(this.selectedIndex),this.loading=!0,this.taskService.getAllResourcesState(this.voId).subscribe(function(e){t.resourceStates=e,t.okPropagation=[],t.errorPropagation=[];var i,n=f(e);try{for(n.s();!(i=n.n()).done;){var r,o=i.value,a=!0,s=f(o.taskList);try{for(s.s();!(r=s.n()).done;){var u=r.value;if("ERROR"===u.status||"GENERROR"===u.status||"SENDERROR"===u.status){a=!1;break}}}catch(c){s.e(c)}finally{s.f()}a?t.okPropagation.push(o):t.errorPropagation.push(o)}}catch(c){n.e(c)}finally{n.f()}t.loading=!1})}}]),t}();return t.id="VoResourcesStatesComponent",t.\u0275fac=function(e){return new(e||t)(o.Y36(a.gz),o.Y36(r.Ob),o.Y36(n.EB))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"refresh"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["matTabContent",""],[1,"badge","badge-danger","ml-1"],[3,"alert_type",4,"ngIf"],[3,"propagation"],[3,"alert_type"],[1,"badge","badge-success","ml-1"],["alert_type","warn",4,"ngIf"],["alert_type","warn"]],template:function(t,e){1&t&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.YNc(3,Y,1,0,"mat-spinner",1),o.YNc(4,$,9,1,"div",2)),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,3,"VO_DETAIL.RESOURCES.STATES.TITLE")),o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading))},directives:[s.O5,u.$g,c.t,l.SP,l.uX,l.uD,l.Vc,j,G.w],pipes:[g.X$],styles:[""]}),t}()},14527:function(t,e,i){"use strict";i.d(e,{w:function(){return D}});var n=i(24555),r=i(88426),o=i(68570),a=i(92438),s=i(75954),u=i(33642),c=i(27613),l=i(31572),h=i(57629),d=i(84608),p=i(48160),g=i(61511),m=i(67806),b=i(43691),w=i(36922),_=i(27679),A=i(59403),k=i(15980),T=i(92846),C=i(39571);function S(t,e){1&t&&l._UZ(0,"mat-spinner",3)}function E(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",21),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).settings()}),l.TgZ(1,"i",18),l._uU(2,"edit"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function x(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",22),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).add()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function R(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",23),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).save()}),l.TgZ(1,"i",18),l._uU(2,"save"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}if(2&t){var n=l.oxw(2);l.Q6J("disabled",!n.itemsChanged),l.xp6(3),l.hij(" ",l.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function I(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",24),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).copy()}),l.TgZ(1,"i",18),l._uU(2,"file_copy"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function O(t,e){1&t&&(l.TgZ(0,"app-alert",25),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.Q6J("alert_type","info"),l.xp6(1),l.hij(" ",l.lcZ(2,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}function P(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"div",4),l.TgZ(2,"div",5),l.TgZ(3,"div",6),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.TgZ(6,"div"),l.TgZ(7,"span",6),l._uU(8),l.ALo(9,"translate"),l.qZA(),l._uU(10,": "),l.TgZ(11,"mat-icon",7),l._uU(12,"arrow_right_alt"),l.qZA(),l._uU(13),l.ALo(14,"translate"),l.ALo(15,"translate"),l.TgZ(16,"mat-icon",8),l._uU(17,"restore"),l.qZA(),l._uU(18),l.ALo(19,"translate"),l.ALo(20,"translate"),l.qZA(),l.qZA(),l.TgZ(21,"div",9),l.YNc(22,E,5,3,"button",10),l.qZA(),l.qZA(),l._UZ(23,"mat-divider",11),l.TgZ(24,"div",12),l.TgZ(25,"perun-web-apps-refresh-button",13),l.NdJ("refresh",function(){return l.CHM(i),l.oxw().updateFormItems()}),l.qZA(),l.YNc(26,x,3,3,"button",14),l.YNc(27,R,5,4,"button",15),l.YNc(28,I,5,3,"button",16),l.TgZ(29,"button",17),l.NdJ("click",function(){return l.CHM(i),l.oxw().preview()}),l.TgZ(30,"i",18),l._uU(31,"search"),l.qZA(),l._uU(32),l.ALo(33,"translate"),l.qZA(),l.qZA(),l.YNc(34,O,3,4,"app-alert",19),l.TgZ(35,"app-application-form-list",20),l.NdJ("applicationFormItemsChange",function(){return l.CHM(i),l.oxw().changeItems()}),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(4),l.AsE("",l.lcZ(5,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",n.applicationForm.moduleClassName," "),l.xp6(4),l.Oqu(l.lcZ(9,18,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),l.xp6(5),l.hij(" ",n.applicationForm.automaticApproval?l.lcZ(14,20,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(15,22,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),l.xp6(5),l.hij(" ",n.applicationForm.automaticApprovalExtension?l.lcZ(19,24,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(20,26,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),l.xp6(4),l.Q6J("ngIf",n.editAuth),l.xp6(4),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("ngIf",n.editAuth),l.xp6(4),l.hij(" ",l.lcZ(33,28,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),l.xp6(2),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("loading",n.loading)("applicationForm",n.applicationForm)("applicationFormItems",n.applicationFormItems)("theme","vo-theme")("displayedColumns",n.displayedColumns)}}var D=function(){var t=function(){function t(e,i,n,r,o,a,s,u){v(this,t),this.registrarManager=e,this.route=i,this.dialog=n,this.notificator=r,this.translate=o,this.router=a,this.authResolver=s,this.voService=u,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.idCounter=-1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.parent.params.subscribe(function(e){var i=e.voId;t.voId=i,t.registrarManager.getVoApplicationForm(i).subscribe(function(e){t.applicationForm=e,t.registrarManager.getFormItemsForVo(i).subscribe(function(e){t.applicationFormItems=e,t.voService.getVoById(t.voId).subscribe(function(e){t.vo=e,t.setAuthRights(),t.loading=!1})})})})}},{key:"setAuthRights",value:function(){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"]}},{key:"add",value:function(){var t=this,e=(0,c.kZ)();e.width="500px",e.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(a.J,e).afterClosed().subscribe(function(i){i&&(t.applicationFormItems=Object.assign([],i[0]),(e=(0,c.kZ)()).width="600px",e.height="600px",e.data={voId:t.voId,applicationFormItem:i[1],theme:"vo-theme",allItems:t.applicationFormItems},t.dialog.open(s._,e),t.itemsChanged=!0)})}},{key:"copy",value:function(){var t=this,e=(0,c.kZ)();e.width="500px",e.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(o.W,e).afterClosed().subscribe(function(e){e&&t.updateFormItems()})}},{key:"settings",value:function(){var t=this,e=(0,c.kZ)();e.width="400px",e.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(n.E,e).afterClosed().subscribe(function(e){e&&(t.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.applicationForm=e)})}},{key:"preview",value:function(){this.router.navigate(["/organizations",this.voId,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}},{key:"updateFormItems",value:function(){var t=this;this.loading=!0,this.registrarManager.getFormItemsForVo(this.voId).subscribe(function(e){t.applicationFormItems=e,t.itemsChanged=!1,t.loading=!1})}},{key:"changeItems",value:function(){this.itemsChanged=!0}},{key:"save",value:function(){var t,e=this,i=0,n=f(this.applicationFormItems);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.ordnum=i,r.forDelete||i++}}catch(o){n.e(o)}finally{n.f()}this.registrarManager.updateFormItemsForVo({vo:this.voId,items:this.applicationFormItems}).subscribe(function(){e.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(function(t){e.notificator.showSuccess(t)}),e.updateFormItems()})}},{key:"clear",value:function(){this.applicationFormItems.forEach(function(t){return t.forDelete=!0}),this.itemsChanged=!0}}]),t}();return t.id="VoSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(u.tk),l.Y36(h.gz),l.Y36(d.uw),l.Y36(r.V6),l.Y36(p.sK),l.Y36(h.F0),l.Y36(r.x4),l.Y36(u.YF))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[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"],["mat-stroked-button","","class","ml-auto",3,"click",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],[3,"alert_type",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","applicationFormItemsChange"],["mat-stroked-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"click"],[3,"alert_type"]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.YNc(3,S,1,0,"mat-spinner",1),l.YNc(4,P,36,30,"div",2)),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[g.O5,m.$g,b.Hw,w.gM,_.d,A.t,k.lW,T.b,C.w],pipes:[p.X$],styles:[""]}),t}()},48666:function(t,e,i){"use strict";i.d(e,{T:function(){return ve}});var n=i(33642),r=i(4230),o=i(60611),a=i(27613),s=i(84608),u=i(88426),c=i(16073),l=i(61511),h=i(14732),d=i(81110),p=i(40878),g=i(44689),m=i(79996),b=i(47727),w=i(31572),_=i(48160),A=i(67806),k=i(70663),T=i(66283),C=i(80340),S=i(15980),E=i(4786),x=i(36922),R=i(29236),I=i(54810),O=i(15812),P=function(){var t=function(){function t(){v(this,t),this.expiration="never",this.expirationControl=new c.NI(null),this.datePicker=new w.vpe}return y(t,[{key:"ngOnInit",value:function(){var t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationControl.setValue((0,l.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}},{key:"setExpiration",value:function(){this.expiration=(0,l.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,l.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}},{key:"emitDate",value:function(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=w.Xpm({type:t,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(t,e){if(1&t){var i=w.EpF();w.TgZ(0,"mat-radio-group",0),w.NdJ("ngModelChange",function(t){return e.expiration=t})("change",function(){return e.emitDate()}),w.TgZ(1,"mat-radio-button",1),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"mat-radio-button",2),w.TgZ(5,"mat-form-field",3),w.NdJ("click",function(){return w.CHM(i),w.MAs(12).open()}),w.TgZ(6,"mat-label"),w._uU(7),w.ALo(8,"translate"),w.qZA(),w.TgZ(9,"input",4),w.NdJ("dateChange",function(){return e.setExpiration()}),w.qZA(),w._UZ(10,"mat-datepicker-toggle",5),w._UZ(11,"mat-datepicker",6,7),w.qZA(),w.qZA(),w.qZA()}if(2&t){var n=w.MAs(12);w.Q6J("ngModel",e.expiration),w.xp6(2),w.hij(" ",w.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),w.xp6(2),w.s9C("value",e.expirationControl.value),w.xp6(3),w.Oqu(w.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),w.xp6(2),w.Q6J("min",e.minDate)("formControl",e.expirationControl)("matDatepicker",n),w.xp6(1),w.Q6J("for",n)("disabled",!1),w.xp6(1),w.Q6J("disabled",!1)}},directives:[I.VQ,c.JJ,c.On,I.U0,T.KE,T.hX,C.Nt,c.Fj,O.hl,c.oH,O.nW,T.R9,O.Mq],pipes:[_.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),D=i(39571),M=i(71522),L=i(43691),N=i(7927),z=i(22196);function F(t,e){1&t&&(w.TgZ(0,"h1",4),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")))}function Z(t,e){1&t&&w._UZ(0,"mat-spinner",5)}function B(t,e){1&t&&(w._uU(0),w.ALo(1,"translate")),2&t&&w.Oqu(w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function q(t,e){1&t&&(w.TgZ(0,"app-alert",42),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function U(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function H(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function j(t,e){1&t&&(w._uU(0),w.ALo(1,"translate")),2&t&&w.Oqu(w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function G(t,e){if(1&t&&(w.TgZ(0,"mat-option",43),w._uU(1),w.qZA()),2&t){var i=e.$implicit;w.Q6J("value",i),w.xp6(1),w.hij(" ",i," ")}}function Y(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function V(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function K(t,e){1&t&&w._UZ(0,"mat-spinner",44),2&t&&w.Q6J("diameter",18)}function J(t,e){1&t&&(w.TgZ(0,"mat-icon",45),w.ALo(1,"translate"),w._uU(2," error "),w.qZA()),2&t&&w.Q6J("matTooltip",w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACKEND_ERROR_LONG"))}function Q(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")))}function W(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACKEND_ERROR")))}function X(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function $(t,e){1&t&&(w._uU(0),w.ALo(1,"translate")),2&t&&w.Oqu(w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function tt(t,e){if(1&t){var i=w.EpF();w.TgZ(0,"div"),w.TgZ(1,"perun-web-apps-user-search-select",46),w.NdJ("userSelected",function(t){return w.CHM(i),w.oxw(2).selectedSponsor=t}),w.qZA(),w.qZA()}if(2&t){var n=w.oxw(2);w.xp6(1),w.Q6J("users",n.voSponsors)("disableAutoSelect",!0)}}function et(t,e){if(1&t){var i=w.EpF();w.TgZ(0,"div",6),w.TgZ(1,"mat-horizontal-stepper",7),w.TgZ(2,"mat-step",8),w.YNc(3,B,2,3,"ng-template",9),w.YNc(4,q,3,3,"app-alert",10),w.TgZ(5,"form",11),w.TgZ(6,"h5",12),w._uU(7),w.ALo(8,"translate"),w.qZA(),w.TgZ(9,"mat-form-field",13),w._UZ(10,"input",14),w.ALo(11,"translate"),w.YNc(12,U,3,3,"mat-error",15),w.qZA(),w.TgZ(13,"mat-form-field"),w._UZ(14,"input",16),w.ALo(15,"translate"),w.YNc(16,H,3,3,"mat-error",15),w.qZA(),w.TgZ(17,"mat-form-field"),w._UZ(18,"input",17),w.ALo(19,"translate"),w.qZA(),w.TgZ(20,"mat-form-field"),w._UZ(21,"input",18),w.ALo(22,"translate"),w.qZA(),w.qZA(),w.TgZ(23,"div",19),w.TgZ(24,"button",20),w.NdJ("click",function(){return w.CHM(i),w.oxw().onCancel()}),w._uU(25),w.ALo(26,"translate"),w.qZA(),w.TgZ(27,"button",21),w._uU(28),w.ALo(29,"translate"),w.qZA(),w.qZA(),w.qZA(),w.TgZ(30,"mat-step",8),w.YNc(31,j,2,3,"ng-template",9),w.TgZ(32,"h5",12),w._uU(33),w.ALo(34,"translate"),w.qZA(),w.TgZ(35,"form",22),w.TgZ(36,"mat-form-field"),w.TgZ(37,"mat-select",23),w.NdJ("valueChange",function(t){return w.CHM(i),w.oxw().onNamespaceChanged(t)}),w.ALo(38,"translate"),w.YNc(39,G,2,2,"mat-option",24),w.qZA(),w.YNc(40,Y,3,3,"mat-error",15),w.qZA(),w.TgZ(41,"mat-form-field",25),w.ALo(42,"translate"),w._UZ(43,"input",26),w.ALo(44,"translate"),w.YNc(45,V,3,3,"mat-error",15),w.qZA(),w.TgZ(46,"span",25),w.ALo(47,"translate"),w.TgZ(48,"mat-checkbox",27),w.NdJ("change",function(){return w.CHM(i),w.oxw().passwordResetChange()}),w._uU(49),w.ALo(50,"translate"),w.qZA(),w.qZA(),w.TgZ(51,"mat-form-field",25),w._UZ(52,"input",28),w.ALo(53,"translate"),w.YNc(54,K,1,1,"mat-spinner",29),w.YNc(55,J,3,3,"mat-icon",30),w.YNc(56,Q,3,3,"mat-error",15),w.YNc(57,W,3,3,"mat-error",15),w.qZA(),w.TgZ(58,"mat-checkbox",31),w._uU(59),w.ALo(60,"translate"),w.qZA(),w.TgZ(61,"mat-form-field"),w._UZ(62,"input",32),w.ALo(63,"translate"),w.YNc(64,X,3,3,"mat-error",15),w.qZA(),w.TgZ(65,"div",19),w.TgZ(66,"button",20),w.NdJ("click",function(){return w.CHM(i),w.oxw().onCancel()}),w._uU(67),w.ALo(68,"translate"),w.qZA(),w.TgZ(69,"button",33),w._uU(70),w.ALo(71,"translate"),w.qZA(),w.TgZ(72,"button",34),w._uU(73),w.ALo(74,"translate"),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.TgZ(75,"mat-step"),w.YNc(76,$,2,3,"ng-template",9),w.TgZ(77,"div",35),w.TgZ(78,"h5",12),w._uU(79),w.ALo(80,"translate"),w.qZA(),w.TgZ(81,"div",13),w.TgZ(82,"h6"),w._uU(83),w.ALo(84,"translate"),w.qZA(),w.TgZ(85,"mat-radio-group",36),w.NdJ("ngModelChange",function(t){return w.CHM(i),w.oxw().sponsorType=t}),w.TgZ(86,"span",37),w.ALo(87,"translate"),w.TgZ(88,"mat-radio-button",38),w.NdJ("click",function(){return w.CHM(i),w.oxw().selectedSponsor=null}),w._uU(89),w.ALo(90,"translate"),w.qZA(),w.qZA(),w.TgZ(91,"span",37),w.ALo(92,"translate"),w.TgZ(93,"mat-radio-button",39),w._uU(94),w.ALo(95,"translate"),w.qZA(),w.qZA(),w.qZA(),w.YNc(96,tt,2,2,"div",15),w.qZA(),w.TgZ(97,"h6",13),w._uU(98),w.ALo(99,"translate"),w.qZA(),w.TgZ(100,"perun-web-apps-expiration-select",40),w.NdJ("datePicker",function(t){return w.CHM(i),w.oxw().setExpiration(t)}),w.qZA(),w.qZA(),w.TgZ(101,"div",19),w.TgZ(102,"button",20),w.NdJ("click",function(){return w.CHM(i),w.oxw().onCancel()}),w._uU(103),w.ALo(104,"translate"),w.qZA(),w.TgZ(105,"button",33),w._uU(106),w.ALo(107,"translate"),w.qZA(),w.TgZ(108,"button",41),w.NdJ("click",function(){return w.CHM(i),w.oxw().onConfirm()}),w._uU(109),w.ALo(110,"translate"),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA()}if(2&t){var n=w.oxw();w.xp6(1),w.Q6J("linear",!0),w.xp6(1),w.Q6J("stepControl",n.userControl),w.xp6(2),w.Q6J("ngIf",n.functionalityNotSupported),w.xp6(1),w.Q6J("formGroup",n.userControl),w.xp6(2),w.hij(" ",w.lcZ(8,60,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),w.xp6(3),w.s9C("placeholder",w.lcZ(11,62,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),w.xp6(2),w.Q6J("ngIf",n.userControl.hasError("required","firstName")),w.xp6(2),w.s9C("placeholder",w.lcZ(15,64,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),w.xp6(2),w.Q6J("ngIf",n.userControl.hasError("required","lastName")),w.xp6(2),w.s9C("placeholder",w.lcZ(19,66,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),w.xp6(3),w.s9C("placeholder",w.lcZ(22,68,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),w.xp6(4),w.hij(" ",w.lcZ(26,70,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),w.xp6(2),w.Q6J("disabled",n.userControl.invalid),w.xp6(1),w.hij(" ",w.lcZ(29,72,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," "),w.xp6(2),w.Q6J("stepControl",n.namespaceControl),w.xp6(3),w.Oqu(w.lcZ(34,74,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),w.xp6(2),w.Q6J("formGroup",n.namespaceControl),w.xp6(2),w.s9C("placeholder",w.lcZ(38,76,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),w.xp6(2),w.Q6J("ngForOf",n.namespaceOptions),w.xp6(1),w.Q6J("ngIf",n.namespaceControl.hasError("required","namespace")),w.xp6(1),w.s9C("matTooltip",w.lcZ(42,78,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),w.Q6J("matTooltipDisabled",n.namespaceControl.get("login").enabled),w.xp6(2),w.s9C("placeholder",w.lcZ(44,80,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),w.xp6(2),w.Q6J("ngIf",n.namespaceControl.hasError("required","login")),w.xp6(1),w.s9C("matTooltip",w.lcZ(47,82,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),w.Q6J("matTooltipDisabled",n.namespaceControl.get("passwordReset").enabled),w.xp6(3),w.hij("",w.lcZ(50,84,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),w.xp6(2),w.Q6J("matTooltip",n.getPasswordDisabledTooltip())("matTooltipDisabled",n.namespaceControl.get("password").enabled),w.xp6(1),w.s9C("placeholder",w.lcZ(53,86,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")),w.Q6J("type",n.namespaceControl.get("showPassword").value?"text":"password")("errorStateMatcher",n.passwordStateMatcher),w.xp6(2),w.Q6J("ngIf",n.namespaceControl.get("password").pending),w.xp6(1),w.Q6J("ngIf",n.namespaceControl.get("password").dirty&&null!==n.namespaceControl.get("password").errors),w.xp6(1),w.Q6J("ngIf",n.namespaceControl.get("password").hasError("required")),w.xp6(1),w.Q6J("ngIf",n.namespaceControl.get("password").hasError("backendError")),w.xp6(2),w.hij(" ",w.lcZ(60,88,"DIALOGS.CREATE_SPONSORED_MEMBER.SHOW_PASSWORD")," "),w.xp6(3),w.s9C("placeholder",w.lcZ(63,90,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),w.xp6(2),w.Q6J("ngIf",n.namespaceControl.hasError("required","email")||n.namespaceControl.hasError("pattern","email")),w.xp6(3),w.hij(" ",w.lcZ(68,92,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),w.xp6(3),w.hij(" ",w.lcZ(71,94,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "),w.xp6(2),w.Q6J("disabled",n.namespaceControl.invalid||n.namespaceControl.get("password").pending),w.xp6(1),w.hij(" ",w.lcZ(74,96,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," "),w.xp6(6),w.Oqu(w.lcZ(80,98,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),w.xp6(4),w.Oqu(w.lcZ(84,100,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),w.xp6(2),w.Q6J("ngModel",n.sponsorType),w.xp6(1),w.s9C("matTooltip",w.lcZ(87,102,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),w.Q6J("matTooltipDisabled",n.isSponsor),w.xp6(2),w.Q6J("disabled",!n.isSponsor),w.xp6(1),w.hij(" ",w.lcZ(90,104,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),w.xp6(2),w.s9C("matTooltip",w.lcZ(92,106,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),w.Q6J("matTooltipDisabled",n.isPerunAdmin),w.xp6(2),w.Q6J("disabled",!n.isPerunAdmin),w.xp6(1),w.hij(" ",w.lcZ(95,108,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),w.xp6(2),w.Q6J("ngIf","other"===n.sponsorType),w.xp6(2),w.Oqu(w.lcZ(99,110,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION")),w.xp6(5),w.hij(" ",w.lcZ(104,112,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),w.xp6(3),w.hij(" ",w.lcZ(107,114,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "),w.xp6(2),w.Q6J("disabled",null===n.sponsorType||"other"===n.sponsorType&&null===n.selectedSponsor),w.xp6(1),w.hij(" ",w.lcZ(110,116,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function it(t,e){if(1&t&&(w.TgZ(0,"div",6),w.TgZ(1,"div",47),w.TgZ(2,"mat-icon",48),w._uU(3,"done"),w.qZA(),w._uU(4),w.ALo(5,"translate"),w.TgZ(6,"i"),w._uU(7),w.ALo(8,"userFullName"),w.qZA(),w._uU(9),w.ALo(10,"translate"),w.qZA(),w.TgZ(11,"div"),w._uU(12),w.ALo(13,"translate"),w.qZA(),w.TgZ(14,"div"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"app-alert",49),w._uU(18),w.ALo(19,"translate"),w.qZA(),w.qZA()),2&t){var i=w.oxw();w.xp6(4),w.hij(" ",w.lcZ(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),w.xp6(3),w.Oqu(w.lcZ(8,10,i.createdMember.user)),w.xp6(2),w.hij(" ",w.lcZ(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),w.xp6(3),w.AsE("",w.lcZ(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",i.loginThatWasSet,""),w.xp6(3),w.AsE("",w.lcZ(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",i.namespaceControl.get("password").value," "),w.xp6(3),w.Oqu(w.lcZ(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function nt(t,e){if(1&t){var i=w.EpF();w.TgZ(0,"div",19),w.TgZ(1,"button",50),w.NdJ("click",function(){return w.CHM(i),w.oxw().onCancel()}),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.qZA()}2&t&&(w.xp6(2),w.hij(" ",w.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}var rt=function(){function t(){v(this,t)}return y(t,[{key:"isErrorState",value:function(t){return!!(t&&t.invalid&&t.dirty)}}]),t}(),ot=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500;return function(r){return(0,d.H)(n).pipe((0,g.w)(function(){return i.dontHandleErrorForNext(),null===t||"No namespace"===t?(0,p.of)(null):e.checkPasswordStrength(r.value,t)}),(0,m.U)(function(){return null}),(0,b.K)(function(t){return(0,p.of)({backendError:t.error.message.substr(t.error.message.indexOf(":")+1)})}))}},at=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c,l){v(this,t),this.dialogRef=e,this.data=i,this.membersService=n,this.apiRequestConfiguration=r,this.usersService=o,this.store=a,this.translator=s,this.authzService=u,this.guiAuthResolver=c,this.formBuilder=l,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.namespaceRules=[],this.parsedRules=new Map,this.emailRegx=/^(([^<>+()[\]\\.,;:\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]{2,3}))$/,this.userControl=null,this.namespaceControl=null,this.passwordStateMatcher=new rt,this.voSponsors=[],this.selectedSponsor=null,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.expiration="never"}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.voSponsors=this.data.sponsors,this.isSponsor=this.guiAuthResolver.principalHasRole(h.u.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.userControl=this.formBuilder.group({firstName:["",c.kI.required],lastName:["",c.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",c.kI.required],login:["",[c.kI.required]],password:["",c.kI.required,[ot(null,this.usersService,this.apiRequestConfiguration)]],passwordReset:[!1,[]],showPassword:[!1,[]],email:["",[c.kI.required,c.kI.pattern(this.emailRegx)]]}),this.membersService.getAllNamespacesRules().subscribe(function(e){t.store.get("allow_empty_sponsor_namespace")&&t.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),t.namespaceRules=t.namespaceRules.concat(e),t.parseNamespaceRules(),0===t.namespaceOptions.length&&(t.functionalityNotSupported=!0),t.loading=!1})}},{key:"parseNamespaceRules",value:function(){var t,e=f(this.namespaceRules);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.namespaceOptions.push(i.namespaceName);var n={login:"disabled",password:"disabled"};this.parseAttributes(n,i.requiredAttributes,"required"),this.parseAttributes(n,i.optionalAttributes,"optional"),this.parsedRules.set(i.namespaceName,n)}}catch(r){e.e(r)}finally{e.f()}}},{key:"parseAttributes",value:function(t,e,i){var n,r=f(e);try{for(r.s();!(n=r.n()).done;){switch(n.value){case"login":t.login=i;break;case"password":t.password=i}}}catch(o){r.e(o)}finally{r.f()}}},{key:"onConfirm",value:function(){var t=this;this.loading=!0;var e={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},i=this.namespaceControl.get("namespace").value,n=this.parsedRules.get(i);"No namespace"!==i&&(e.userData.namespace=i),"disabled"!==n.login&&(e.userData.login=this.namespaceControl.get("login").value),"disabled"!==n.password&&(e.sendActivationLink=this.namespaceControl.get("passwordReset").value,e.userData.password=this.namespaceControl.get("password").value),"never"!==this.expiration&&(e.validityTo=this.expiration),this.membersService.createSponsoredMember(e).subscribe(function(e){t.successfullyCreated=!0,t.dialogRef.updateSize("600px"),t.createdMember=e,e&&e.userAttributes&&e.userAttributes.filter(function(t){return"login-namespace"===t.baseFriendlyName}).filter(function(t){return t.friendlyNameParameter===i}).filter(function(t){return null!==t.value}).forEach(function(e){t.loginThatWasSet=e.value.toString()}),t.loading=!1},function(){t.loading=!1})}},{key:"onCancel",value:function(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}},{key:"enableFormControl",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t.enable(),t.clearValidators(),t.clearAsyncValidators(),t.setValidators(e),t.setAsyncValidators(i),t.updateValueAndValidity()}},{key:"onNamespaceChanged",value:function(t){var e=this.parsedRules.get(t),i=this.namespaceControl.get("login"),n=this.namespaceControl.get("password"),r=this.namespaceControl.get("passwordReset"),o=this.namespaceControl.get("showPassword");"disabled"!==e.login?this.enableFormControl(i,"optional"===e.login?[]:[c.kI.required]):(i.disable(),i.setValue("")),"disabled"!==e.password?(this.enableFormControl(n,"optional"===e.password?[]:[c.kI.required],[ot(t,this.usersService,this.apiRequestConfiguration)]),this.enableFormControl(r,[]),this.enableFormControl(o,[])):(n.disable(),n.setValue(""),r.disable(),r.setValue(!1),o.disable(),o.setValue(!1))}},{key:"passwordResetChange",value:function(){var t=this.namespaceControl.get("password");this.namespaceControl.get("passwordReset").value?(t.disable(),t.setValue("")):t.enable()}},{key:"setExpiration",value:function(t){this.expiration="never"===t?"never":(0,l.p6)(t,"yyyy-MM-dd","en-GB")}},{key:"getPasswordDisabledTooltip",value:function(){return this.namespaceControl.get("passwordReset").value?this.translator.instant("DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_VIA_EMAIL"):this.translator.instant("DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_DISABLED")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(w.Y36(s.so),w.Y36(s.WI),w.Y36(n.uq),w.Y36(u.F5),w.Y36(n.Fv),w.Y36(u.d6),w.Y36(_.sK),w.Y36(n.Ct),w.Y36(u.x4),w.Y36(c.qu))},t.\u0275cmp=w.Xpm({type:t,selectors:[["app-create-sponsored-member-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],[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"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-auto",3,"disabled"],[1,"dialog-container","mt-4",3,"formGroup"],["required","","formControlName","namespace",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","login",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],["matInput","","formControlName","password",3,"type","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["color","warn","matSuffix","",3,"matTooltip",4,"ngIf"],["formControlName","showPassword",1,"example-margin"],["matInput","","required","","formControlName","email",3,"placeholder"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-2",3,"disabled"],[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"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-2",3,"disabled","click"],["alert_type","error"],[3,"value"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",3,"matTooltip"],[3,"users","disableAutoSelect","userSelected"],[1,"bigger-font","mb-2"],[1,"mr-2","mb-2"],["alert_type","warn"],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(t,e){1&t&&(w.TgZ(0,"div"),w.YNc(1,F,3,3,"h1",0),w.YNc(2,Z,1,0,"mat-spinner",1),w.YNc(3,et,111,118,"div",2),w.YNc(4,it,20,20,"div",2),w.YNc(5,nt,4,3,"div",3),w.qZA()),2&t&&(w.Tol(e.theme),w.xp6(1),w.Q6J("ngIf",!e.successfullyCreated),w.xp6(1),w.Q6J("ngIf",e.loading),w.xp6(1),w.Q6J("ngIf",!e.loading&&!e.successfullyCreated),w.xp6(1),w.Q6J("ngIf",!e.loading&&e.successfullyCreated),w.xp6(1),w.Q6J("ngIf",e.successfullyCreated))},directives:[l.O5,s.uh,A.$g,s.xY,k.Vq,k.C0,k.VY,c._Y,c.JL,c.sg,T.KE,C.Nt,c.Fj,c.JJ,c.u,c.Q7,s.H8,S.lW,k.Ic,E.gD,l.sg,x.gM,R.oG,k.fd,I.VQ,c.On,I.U0,P,D.w,T.TO,M.ey,T.R9,L.Hw,N.S],pipes:[_.X$,z.d],styles:[".bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:8px}mat-icon[_ngcontent-%COMP%]{color:#28a745;font-size:36px;vertical-align:bottom}"]}),t}(),st=i(67004),ut=i(43005),ct=i(19139),lt=i(78364);function ht(t,e){1&t&&w._UZ(0,"mat-spinner",3)}function dt(t,e){1&t&&(w._uU(0),w.ALo(1,"translate")),2&t&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function ft(t,e){1&t&&(w.TgZ(0,"app-alert",32),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function pt(t,e){if(1&t&&(w.TgZ(0,"mat-option",33),w._uU(1),w.qZA()),2&t){var i=e.$implicit;w.Q6J("value",i),w.xp6(1),w.hij(" ",i," ")}}function gt(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function vt(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function mt(t,e){if(1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t){var i=w.oxw(2);w.xp6(1),w.AsE(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",i.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function yt(t,e){if(1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t){var i=w.oxw(2);w.xp6(1),w.AsE(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",i.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function bt(t,e){if(1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t){var i=w.oxw(2);w.xp6(1),w.AsE(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",i.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function wt(t,e){1&t&&(w._uU(0),w.ALo(1,"translate")),2&t&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function _t(t,e){1&t&&(w.TgZ(0,"app-alert",34),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function At(t,e){if(1&t){var i=w.EpF();w.TgZ(0,"mat-radio-group",35),w.NdJ("ngModelChange",function(t){return w.CHM(i),w.oxw(2).passwordReset=t}),w.TgZ(1,"mat-radio-button",36),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"mat-radio-button",37),w._uU(5),w.ALo(6,"translate"),w.qZA(),w.qZA()}if(2&t){var n=w.oxw(2);w.Q6J("ngModel",n.passwordReset),w.xp6(2),w.hij(" ",w.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),w.xp6(3),w.hij(" ",w.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function kt(t,e){1&t&&(w._uU(0),w.ALo(1,"translate")),2&t&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function Tt(t,e){1&t&&(w._uU(0),w.ALo(1,"translate")),2&t&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function Ct(t,e){1&t&&(w.TgZ(0,"div"),w.TgZ(1,"app-alert",38),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.qZA()),2&t&&(w.xp6(2),w.Oqu(w.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function St(t,e){if(1&t){var i=w.EpF();w.TgZ(0,"div"),w.TgZ(1,"h5",39),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-create-group-form",40),w.NdJ("nameChanged",function(t){return w.CHM(i),w.oxw(2).name=t})("descriptionChanged",function(t){return w.CHM(i),w.oxw(2).description=t})("parentGroupChanged",function(t){return w.CHM(i),w.oxw(2).parentGroup=t})("asSubgroupChanged",function(t){return w.CHM(i),w.oxw(2).asSubGroup=t}),w.qZA(),w.qZA()}if(2&t){var n=w.oxw(2);w.xp6(2),w.Oqu(w.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")),w.xp6(2),w.Q6J("voGroups",n.allVoGroups)}}var Et=function(){return["select","id","name","description"]};function xt(t,e){if(1&t){var i=w.EpF();w.TgZ(0,"div"),w.TgZ(1,"h5",39),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-immediate-filter",41),w.NdJ("filter",function(t){return w.CHM(i),w.oxw(2).applyFilter(t)}),w.qZA(),w.TgZ(5,"perun-web-apps-groups-list",42),w.NdJ("page",function(t){return w.CHM(i),w.oxw(2).groupTablePageChanged(t)}),w.qZA(),w.qZA()}if(2&t){var n=w.oxw(2);w.xp6(2),w.Oqu(w.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")),w.xp6(2),w.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),w.xp6(1),w.Q6J("groups",n.assignableGroups)("selection",n.selection)("displayedColumns",w.DdM(10,Et))("disableRouting",!0)("pageSize",n.pageSize)("filter",n.filterValue)}}function Rt(t,e){if(1&t){var i=w.EpF();w.TgZ(0,"div",4),w.TgZ(1,"mat-horizontal-stepper",5),w.TgZ(2,"mat-step",6),w.YNc(3,dt,2,3,"ng-template",7),w.YNc(4,ft,3,3,"app-alert",8),w.TgZ(5,"h5",9),w._uU(6),w.ALo(7,"translate"),w.qZA(),w.TgZ(8,"form",10),w.TgZ(9,"mat-form-field"),w.TgZ(10,"mat-select",11),w.ALo(11,"translate"),w.YNc(12,pt,2,2,"mat-option",12),w.qZA(),w.YNc(13,gt,3,3,"mat-error",13),w.qZA(),w.TgZ(14,"div"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"div",14),w._uU(18),w.qZA(),w.TgZ(19,"mat-form-field",15),w.TgZ(20,"mat-label"),w._uU(21),w.ALo(22,"translate"),w.qZA(),w.TgZ(23,"textarea",16),w._uU(24," "),w.qZA(),w.YNc(25,vt,3,3,"mat-error",13),w.YNc(26,mt,3,4,"mat-error",13),w.YNc(27,yt,3,4,"mat-error",13),w.YNc(28,bt,3,4,"mat-error",13),w.qZA(),w.TgZ(29,"div",17),w.TgZ(30,"button",18),w.NdJ("click",function(){return w.CHM(i),w.oxw().onCancel()}),w._uU(31),w.ALo(32,"translate"),w.qZA(),w.TgZ(33,"button",19),w._uU(34),w.ALo(35,"translate"),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.TgZ(36,"mat-step"),w.YNc(37,wt,2,3,"ng-template",7),w.TgZ(38,"div",9),w.TgZ(39,"h5",20),w._uU(40),w.ALo(41,"translate"),w.qZA(),w.YNc(42,_t,3,3,"app-alert",21),w.YNc(43,At,7,7,"mat-radio-group",22),w.qZA(),w.TgZ(44,"div",17),w.TgZ(45,"button",18),w.NdJ("click",function(){return w.CHM(i),w.oxw().onCancel()}),w._uU(46),w.ALo(47,"translate"),w.qZA(),w.TgZ(48,"button",23),w._uU(49),w.ALo(50,"translate"),w.qZA(),w.TgZ(51,"button",24),w._uU(52),w.ALo(53,"translate"),w.qZA(),w.qZA(),w.qZA(),w.TgZ(54,"mat-step"),w.YNc(55,kt,2,3,"ng-template",7),w.TgZ(56,"div",9),w.TgZ(57,"h5",20),w._uU(58),w.ALo(59,"translate"),w.qZA(),w.TgZ(60,"perun-web-apps-expiration-select",25),w.NdJ("datePicker",function(t){return w.CHM(i),w.oxw().setExpiration(t)}),w.qZA(),w.qZA(),w.TgZ(61,"div",17),w.TgZ(62,"button",18),w.NdJ("click",function(){return w.CHM(i),w.oxw().onCancel()}),w._uU(63),w.ALo(64,"translate"),w.qZA(),w.TgZ(65,"button",23),w._uU(66),w.ALo(67,"translate"),w.qZA(),w.TgZ(68,"button",24),w._uU(69),w.ALo(70,"translate"),w.qZA(),w.qZA(),w.qZA(),w.TgZ(71,"mat-step"),w.YNc(72,Tt,2,3,"ng-template",7),w.TgZ(73,"div",9),w.TgZ(74,"h5",20),w._uU(75),w.ALo(76,"translate"),w.qZA(),w.TgZ(77,"mat-radio-group",26),w.NdJ("change",function(){return w.CHM(i),w.oxw().groupAssigmentChanged()})("ngModelChange",function(t){return w.CHM(i),w.oxw().groupAssignment=t}),w.TgZ(78,"mat-radio-button",27),w._uU(79),w.ALo(80,"translate"),w.qZA(),w.TgZ(81,"span",28),w.ALo(82,"translate"),w.TgZ(83,"mat-radio-button",29),w._uU(84),w.ALo(85,"translate"),w.qZA(),w.qZA(),w.TgZ(86,"span",28),w.ALo(87,"translate"),w.TgZ(88,"mat-radio-button",30),w._uU(89),w.ALo(90,"translate"),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.YNc(91,Ct,4,3,"div",13),w.YNc(92,St,5,4,"div",13),w.YNc(93,xt,6,11,"div",13),w.TgZ(94,"div",17),w.TgZ(95,"button",18),w.NdJ("click",function(){return w.CHM(i),w.oxw().onCancel()}),w._uU(96),w.ALo(97,"translate"),w.qZA(),w.TgZ(98,"button",23),w._uU(99),w.ALo(100,"translate"),w.qZA(),w.TgZ(101,"button",31),w.NdJ("click",function(){return w.CHM(i),w.oxw().onSubmit()}),w._uU(102),w.ALo(103,"translate"),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA()}if(2&t){var n=w.oxw();w.xp6(1),w.Q6J("linear",!0),w.xp6(1),w.Q6J("stepControl",n.usersInfoFormGroup),w.xp6(2),w.Q6J("ngIf",n.functionalityNotSupported),w.xp6(2),w.Oqu(w.lcZ(7,50,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),w.xp6(2),w.Q6J("formGroup",n.usersInfoFormGroup),w.xp6(2),w.s9C("placeholder",w.lcZ(11,52,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),w.xp6(2),w.Q6J("ngForOf",n.namespaceOptions),w.xp6(1),w.Q6J("ngIf",n.usersInfoFormGroup.hasError("required","namespace")),w.xp6(2),w.Oqu(w.lcZ(16,54,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),w.xp6(3),w.Oqu(n.getSelectedNamespaceRules().csvGenHeaderDescription),w.xp6(3),w.Oqu(w.lcZ(22,56,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),w.xp6(2),w.s9C("placeholder",n.getSelectedNamespaceRules().csvGenPlaceholder),w.xp6(2),w.Q6J("ngIf",n.usersInfoFormGroup.hasError("required","sponsoredMembers")),w.xp6(1),w.Q6J("ngIf",n.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),w.xp6(1),w.Q6J("ngIf",n.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),w.xp6(1),w.Q6J("ngIf",n.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),w.xp6(3),w.hij(" ",w.lcZ(32,58,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),w.xp6(2),w.Q6J("disabled",n.usersInfoFormGroup.invalid),w.xp6(1),w.hij(" ",w.lcZ(35,60,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," "),w.xp6(6),w.Oqu(w.lcZ(41,62,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")),w.xp6(2),w.Q6J("ngIf","No namespace"===n.getSelectedNamespaceRules().namespaceName),w.xp6(1),w.Q6J("ngIf","No namespace"!==n.getSelectedNamespaceRules().namespaceName),w.xp6(3),w.hij(" ",w.lcZ(47,64,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),w.xp6(3),w.hij(" ",w.lcZ(50,66,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "),w.xp6(2),w.Q6J("disabled",null===n.passwordReset),w.xp6(1),w.hij(" ",w.lcZ(53,68,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," "),w.xp6(6),w.Oqu(w.lcZ(59,70,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),w.xp6(2),w.Q6J("expiration",n.expiration),w.xp6(3),w.hij(" ",w.lcZ(64,72,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),w.xp6(3),w.hij(" ",w.lcZ(67,74,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "),w.xp6(2),w.Q6J("disabled",null===n.expiration),w.xp6(1),w.hij("",w.lcZ(70,76,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," "),w.xp6(6),w.Oqu(w.lcZ(76,78,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),w.xp6(2),w.Q6J("ngModel",n.groupAssignment),w.xp6(2),w.hij(" ",w.lcZ(80,80,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),w.xp6(2),w.s9C("matTooltip",w.lcZ(82,82,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),w.Q6J("matTooltipDisabled",!n.manualMemberAddingBlocked&&n.createGroupAuth),w.xp6(2),w.Q6J("disabled",n.manualMemberAddingBlocked||!n.createGroupAuth),w.xp6(1),w.hij(" ",w.lcZ(85,84,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),w.xp6(2),w.s9C("matTooltip",w.lcZ(87,86,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),w.Q6J("matTooltipDisabled",!n.manualMemberAddingBlocked&&0!==n.assignableGroups.length),w.xp6(2),w.Q6J("disabled",n.manualMemberAddingBlocked||0===n.assignableGroups.length),w.xp6(1),w.hij(" ",w.lcZ(90,88,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),w.xp6(2),w.Q6J("ngIf","none"===n.groupAssignment),w.xp6(1),w.Q6J("ngIf","new"===n.groupAssignment),w.xp6(1),w.Q6J("ngIf","existing"===n.groupAssignment),w.xp6(3),w.hij(" ",w.lcZ(97,90,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),w.xp6(3),w.hij(" ",w.lcZ(100,92,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "),w.xp6(2),w.Q6J("disabled",null===n.groupAssignment||"existing"===n.groupAssignment&&0===n.selection.selected.length||"new"===n.groupAssignment&&(0===n.name.length||0===n.description.length)||!0===n.asSubGroup&&null===n.parentGroup),w.xp6(1),w.hij(" ",w.lcZ(103,94,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}var It=function(){var t=function(){function t(e,i,n,a,s,u,c,l,h,d,f){v(this,t),this.dialogRef=e,this.data=i,this.store=n,this.membersService=a,this.notificator=s,this.translate=u,this.guiAuthResolver=c,this.groupsService=l,this.attributesService=h,this.formBuilder=d,this.tableConfigService=f,this.loading=!1,this.functionalityNotSupported=!1,this.emailRegx=/^(([^<>+()[\]\\.,;:\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]{2,3}))$/,this.namespaceOptions=[],this.namespaceRules=[],this.passwordReset="generate",this.groupAssignment=null,this.expiration="never",this.assignableGroups=[],this.allVoGroups=[],this.selection=new r.Ov(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.submitDisabled=!1,this.filterValue="",this.tableId=o.rc,this.groupAttrNames=[st.r.GROUP_SYNC_ENABLED,st.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.createGroupAuth=this.guiAuthResolver.isAuthorized("createGroup_Vo_Group_policy",[{id:this.data.voId,beanName:"Vo"}]),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",c.kI.required],sponsoredMembers:["",[c.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:function(){t.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(function(e){t.manualMemberAddingBlocked=t.hasAttributeEnabled(e,"blockManualMemberAdding"),!0!==t.manualMemberAddingBlocked?t.groupsService.getAllRichGroupsWithAttributesByNames(t.data.voId,t.groupAttrNames).subscribe(function(e){t.allVoGroups=e.filter(function(t){return"members"!==t.name}),t.assignableGroups=t.filterAssignableGroups(e),t.membersService.getAllNamespacesRules().subscribe(function(e){t.store.get("allow_empty_sponsor_namespace")&&t.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"}),t.namespaceRules=t.namespaceRules.concat(e),t.namespaceRules.forEach(function(e){return t.namespaceOptions.push(e.namespaceName)}),0===t.namespaceOptions.length?t.functionalityNotSupported=!0:t.usersInfoFormGroup.setValue({namespace:t.namespaceOptions[0],sponsoredMembers:""}),t.loading=!1})},function(){return t.loading=!1}):t.loading=!1},function(){return t.loading=!1})}},{key:"filterAssignableGroups",value:function(t){var e,i=[],n=f(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.hasAttributeEnabled(r.attributes,"synchronizationEnabled")||this.hasAttributeEnabled(r.attributes,"blockManualMemberAdding")||!this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[r])||i.push(r)}}catch(o){n.e(o)}finally{n.f()}return i}},{key:"hasAttributeEnabled",value:function(t,e){return t.some(function(t){return t.friendlyName===e&&null!==t.value&&"true"===t.value.toString()})}},{key:"createOutputObjects",value:function(t){for(var e="",i="",n="",r="",o=[],a=0,s=Object.keys(t);a_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]))}},{key:"onCreate",value:function(){var t=this,e=(0,a.kZ)();e.width="620px",e.data={entityId:this.voId,voId:this.voId,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(at,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.authzResolver.getPerunPrincipal().subscribe(function(e){t.storeService.setPerunPrincipal(e),t.refresh()}))})}},{key:"onGenerate",value:function(){var t=this,e=(0,a.kZ)();e.width="750px",e.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(It,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.authzResolver.getPerunPrincipal().subscribe(function(e){t.storeService.setPerunPrincipal(e),t.refresh()}))})}},{key:"onSponsorExistingMember",value:function(){var t=this,e=(0,a.kZ)();e.width="650px",e.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(Nt,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.authzResolver.getPerunPrincipal().subscribe(function(e){t.storeService.setPerunPrincipal(e),t.refresh()}))})}},{key:"refresh",value:function(){var t=this;this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.voId,this.attrNames).subscribe(function(e){t.selection.clear(),t.members=e,t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.searchString=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="VoSponsoredMembersComponent",t.\u0275fac=function(e){return new(e||t)(w.Y36(n.uq),w.Y36(zt.gz),w.Y36(s.uw),w.Y36(u.x4),w.Y36(o.dB),w.Y36(u.d6),w.Y36(n.Ct))},t.\u0275cmp=w.Xpm({type:t,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(t,e){2&t&&w.ekj("router-component",e.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2 dropdown-toggle",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"sponsoredMembers","disableRouting","selection","filterValue","pageSize","page","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"sponsoredMembers","disableRouting","selection","filterValue","pageSize","page","refreshTable"]],template:function(t,e){1&t&&(w.TgZ(0,"div"),w.TgZ(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-refresh-button",1),w.NdJ("refresh",function(){return e.refresh()}),w.qZA(),w.TgZ(5,"span",2),w.ALo(6,"translate"),w.YNc(7,le,3,5,"button",3),w.qZA(),w.TgZ(8,"mat-menu",null,4),w.YNc(10,he,3,3,"button",5),w.YNc(11,de,3,3,"button",5),w.qZA(),w.YNc(12,fe,3,3,"button",6),w.TgZ(13,"perun-web-apps-immediate-filter",7),w.NdJ("filter",function(t){return e.applyFilter(t)}),w.qZA(),w.YNc(14,pe,1,0,"mat-spinner",8),w.YNc(15,ge,1,5,"app-sponsored-members-list",9),w.qZA()),2&t&&(w.xp6(2),w.Oqu(w.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),w.xp6(3),w.s9C("matTooltip",w.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),w.Q6J("matTooltipDisabled",!(e.findSponsorsAuth&&0===e.voSponsors.length)),w.xp6(2),w.Q6J("ngIf",!e.loading&&(e.createAuth||e.generateAuth)),w.xp6(3),w.Q6J("ngIf",e.createAuth),w.xp6(1),w.Q6J("ngIf",e.generateAuth),w.xp6(1),w.Q6J("ngIf",!e.loading&&e.setSponsorshipAuth),w.xp6(1),w.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),w.xp6(1),w.Q6J("ngIf",e.loading),w.xp6(1),w.Q6J("ngIf",!e.loading))},directives:[Ft.t,x.gM,l.O5,Zt.VK,ct.L,S.lW,Zt.p6,Zt.OP,A.$g,ce],pipes:[_.X$],styles:[""]}),t}()},17249:function(t,e,i){"use strict";i.d(e,{Y:function(){return F}});var n=i(33642),r=i(27613),o=i(88426),a=i(99608),s=i(4230),u=i(84608),c=i(16073),l=i(31572),h=i(48160),d=i(57629),f=i(61511),p=i(67806),g=i(66283),m=i(80340),b=i(15980),w=i(36922);function _(t,e){1&t&&l._UZ(0,"mat-spinner",3)}function A(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"div",4),l.TgZ(2,"mat-form-field"),l._UZ(3,"input",5),l.ALo(4,"translate"),l.TgZ(5,"mat-error"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.qZA(),l.TgZ(8,"mat-form-field"),l._UZ(9,"input",5),l.ALo(10,"translate"),l.TgZ(11,"mat-error"),l._uU(12),l.ALo(13,"translate"),l.qZA(),l.qZA(),l.qZA(),l.TgZ(14,"div",6),l.TgZ(15,"button",7),l.NdJ("click",function(){return l.CHM(i),l.oxw().onCancel()}),l._uU(16),l.ALo(17,"translate"),l.qZA(),l.TgZ(18,"div",8),l.ALo(19,"translate"),l.TgZ(20,"button",9),l.NdJ("click",function(){return l.CHM(i),l.oxw().onSubmit()}),l._uU(21),l.ALo(22,"translate"),l.qZA(),l.qZA(),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(3),l.s9C("placeholder",l.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),l.Q6J("formControl",n.fullNameCtrl),l.xp6(3),l.hij(" ",l.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),l.xp6(3),l.s9C("placeholder",l.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),l.Q6J("formControl",n.shortNameCtrl),l.xp6(3),l.hij(" ",l.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),l.xp6(4),l.hij(" ",l.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),l.Q6J("matTooltipDisabled",n.shortNameCtrl.valid&&n.fullNameCtrl.valid),l.xp6(2),l.Q6J("disabled",n.shortNameCtrl.invalid||n.fullNameCtrl.invalid),l.xp6(1),l.hij(" ",l.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}var k=function(){var t=function(){function t(e,i,n,r,o,a){var s=this;v(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.voService=r,this.translate=o,this.router=a,o.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(function(t){return s.successMessage=t})}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.shortNameCtrl=new c.NI(null,[c.kI.required,c.kI.pattern("^[\\w.-]+$"),c.kI.maxLength(33)]),this.fullNameCtrl=new c.NI(null,[c.kI.required,c.kI.pattern(".*[\\S]+.*"),c.kI.maxLength(129)])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(function(e){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0),t.router.navigate(["/organizations",e.id])},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(u.so),l.Y36(u.WI),l.Y36(o.V6),l.Y36(n.YF),l.Y36(h.sK),l.Y36(d.F0))},t.\u0275cmp=l.Xpm({type:t,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","","required","",3,"placeholder","formControl"],["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(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,_,1,0,"mat-spinner",1),l.YNc(5,A,23,25,"div",2),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[u.uh,f.O5,p.$g,u.xY,g.KE,m.Nt,c.Fj,c.Q7,c.JJ,c.oH,g.TO,u.H8,b.lW,w.gM],pipes:[h.X$],styles:[""]}),t}(),T=i(60611),C=i(48958),S=i(66297),E=i(43691),x=i(59403),R=i(19139),I=i(97162);function O(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-refresh-button",9),l.NdJ("refresh",function(){return l.CHM(i),l.oxw().refreshTable()}),l.qZA()}}function P(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",10),l.NdJ("click",function(){return l.CHM(i),l.oxw().onCreateVo()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function D(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){return l.CHM(i),l.oxw().onRemoveVo()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("disabled",0===n.selection.selected.length),l.xp6(1),l.hij(" ",l.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function M(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",12),l.NdJ("filter",function(t){return l.CHM(i),l.oxw().applyFilter(t)}),l.qZA()}2&t&&l.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER")}function L(t,e){1&t&&l._UZ(0,"mat-spinner",13)}function N(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-vos-list",14),l.NdJ("page",function(t){return l.CHM(i),l.oxw().pageChanged(t)}),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("pageSize",n.pageSize)("displayedColumns",n.displayedColumns)("filterValue",n.filterValue)("recentIds",n.recentIds)("selection",n.selection)("vos",n.vos)}}var z=function(){return{color:"black"}},F=function(){var t=function(){function t(e,i,n,r,o,a,s,u){v(this,t),this.sideMenuService=e,this.voService=i,this.guiAuthResolver=n,this.tableConfigService=r,this.dialog=o,this.notificator=a,this.apiRequest=s,this.initAuthService=u,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=T.tw}return y(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.selection=new s.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","recent","shortName","name"]:["id","recent","shortName","name"],this.refreshTable()}},{key:"ngAfterViewChecked",value:function(){this.sideMenuService.setAccessMenuItems([])}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyVos().subscribe(function(e){t.vos=e,t.recentIds=(0,r.vL)("vos"),t.loading=!1},function(e){"PrivilegeException"===e.error.name?(t.vos=[],t.loading=!1):t.notificator.showRPCError(e)})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"onCreateVo",value:function(){var t=this,e=(0,r.kZ)();e.width="600px",e.data={theme:"vo-theme"},this.dialog.open(k,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.refreshTable())})}},{key:"onRemoveVo",value:function(){var t=this,e=(0,r.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.selection.selected[0]]},this.dialog.open(a.o,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="VoSelectPageComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(C.D),l.Y36(n.YF),l.Y36(o.x4),l.Y36(T.dB),l.Y36(u.uw),l.Y36(o.V6),l.Y36(o.F5),l.Y36(o.v0))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.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",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","displayedColumns","filterValue","recentIds","selection","vos","page",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","displayedColumns","filterValue","recentIds","selection","vos","page"]],template:function(t,e){1&t&&(l.TgZ(0,"div",0),l._UZ(1,"perun-web-apps-back-button"),l.TgZ(2,"h1",1),l._UZ(3,"mat-icon",2),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.YNc(6,O,1,0,"perun-web-apps-refresh-button",3),l.YNc(7,P,3,3,"button",4),l.YNc(8,D,3,4,"button",5),l.YNc(9,M,1,2,"perun-web-apps-immediate-filter",6),l.YNc(10,L,1,0,"mat-spinner",7),l.YNc(11,N,1,6,"perun-web-apps-vos-list",8),l.qZA()),2&t&&(l.xp6(3),l.Q6J("ngStyle",l.DdM(10,z)),l.xp6(1),l.hij(" ",l.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.createAuth),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.deleteAuth),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[S.W,E.Hw,f.PC,f.O5,x.t,b.lW,R.L,p.$g,I.Z],pipes:[h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t}()},15291:function(t,e,i){"use strict";var n=i(30269),r=i(31572),o=i(57629),a=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t}(),s=i(33642),u=i(88426),c=i(27613),l=i(81954),h=i(48958),d=i(48160),p=i(84608),g=i(25122),m=i(29236),b=i(16073),w=i(61511),_=i(43691),A=i(15980),k=i(39571),T=i(71522);function C(t,e){1&t&&(r.TgZ(0,"app-alert",2),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}function S(t,e){if(1&t&&(r.TgZ(0,"div",5),r.TgZ(1,"a",6),r.TgZ(2,"span",7),r._uU(3),r.qZA(),r._UZ(4,"mat-icon",8),r._uU(5),r.qZA(),r.qZA()),2&t){var i=e.$implicit;r.xp6(1),r.Gre("",i.style," item-itself"),r.Q6J("routerLink",i.url),r.xp6(2),r.Oqu(i.type),r.xp6(1),r.Q6J("svgIcon",i.cssIcon),r.xp6(1),r.hij(" ",i.label," ")}}function E(t,e){if(1&t&&(r.TgZ(0,"div",3),r.YNc(1,S,6,7,"div",4),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("ngForOf",i.items)}}var x=function(){var t=function(){function t(){v(this,t),this.items=[]}return y(t,[{key:"ngOnInit",value:function(){var t,e=f((0,c.vL)("recent"));try{for(e.s();!(t=e.n()).done;){var i=t.value;switch(i.type){case"Vo":this.items.push({cssIcon:"perun-vo",url:"/organizations/".concat(i.id),label:i.name,style:"vo-btn",type:"Organization"});break;case"Group":this.items.push({cssIcon:"perun-group",url:"/organizations/".concat(i.voId,"/groups/").concat(i.id),label:i.name,style:"group-btn",type:"Group"});break;case"Facility":this.items.push({cssIcon:"perun-facility-white",url:"/facilities/".concat(i.id),label:i.name,style:"facility-btn",type:"Facility"})}}}catch(n){e.e(n)}finally{e.f()}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-perun-web-apps-dashboard-recently-viewed-button-field"]],decls:2,vars:2,consts:[["alert_type","info",4,"ngIf"],["class","items-container",4,"ngIf"],["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"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&(r.YNc(0,C,3,3,"app-alert",0),r.YNc(1,E,2,1,"div",1)),2&t&&(r.Q6J("ngIf",0===e.items.length),r.xp6(1),r.Q6J("ngIf",e.items.length>0))},directives:[w.O5,k.w,w.sg,T.wG,o.yS,_.Hw],pipes:[d.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}.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;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}"]}),t}(),R=i(36922),I=i(67806),O=i(97162),P=i(78364),D=i(88884),M=i(60007);function L(t,e){1&t&&r._UZ(0,"mat-spinner",7)}var N=function(){return["id","recent","shortName","name"]};function z(t,e){if(1&t&&(r.TgZ(0,"span"),r._UZ(1,"perun-web-apps-vos-list",8),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("pageSizeOptions",null)("pageSize",5)("displayedColumns",r.DdM(5,N))("recentIds",i.recentIds)("vos",i.objects)}}var F=function(){return["id","recent","vo","name","description"]};function Z(t,e){if(1&t&&(r.TgZ(0,"span"),r._UZ(1,"perun-web-apps-groups-list",9),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("pageSizeOptions",null)("pageSize",5)("groups",i.objects)("recentIds",i.recentIds)("displayedColumns",r.DdM(5,F))}}var B=function(){return["id","recent","name","vo","facility"]};function q(t,e){if(1&t&&(r.TgZ(0,"span"),r._UZ(1,"perun-web-apps-resources-list",10),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("pageSizeOptions",null)("pageSize",5)("resources",i.objects)("displayedColumns",r.DdM(6,B))("recentIds",i.recentIds)("routingVo",!0)}}var U=function(){return["id","recent","name","description"]};function H(t,e){if(1&t&&(r.TgZ(0,"span"),r._UZ(1,"perun-web-apps-facilities-list",11),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("pageSizeOptions",null)("pageSize",5)("facilities",i.objects)("recentIds",i.recentIds)("displayedColumns",r.DdM(5,U))}}function j(t,e){if(1&t&&(r.TgZ(0,"div"),r.YNc(1,z,2,6,"span",6),r.YNc(2,Z,2,6,"span",6),r.YNc(3,q,2,7,"span",6),r.YNc(4,H,2,6,"span",6),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("ngIf","Vo"===i.primaryObject),r.xp6(1),r.Q6J("ngIf","Group"===i.primaryObject),r.xp6(1),r.Q6J("ngIf","Resource"===i.primaryObject),r.xp6(1),r.Q6J("ngIf","Facility"===i.primaryObject)}}var G=function(){var t=function(){function t(e,i,n){v(this,t),this.authzResolver=e,this.guiAuthResolver=i,this.resourceService=n,this.loading=!1,this.recentIds=[]}return y(t,[{key:"ngOnInit",value:function(){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()}},{key:"getObjects",value:function(){var t=this;switch(this.primaryObject){case"Vo":this.authzResolver.getVosWhereUserIsInRoles([this.roleName]).subscribe(function(e){t.objects=e,t.recentIds=(0,c.vL)("vos"),t.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(function(e){t.objects=e,t.recentIds=(0,c.vL)("groups"),t.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(function(e){t.objects=e,t.recentIds=(0,c.vL)("resources"),t.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(function(e){t.objects=e.map(function(t){return{facility:t}}),t.recentIds=(0,c.vL)("facilities"),t.loading=!1});break;default:this.objects=[],this.loading=!1}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(s.Ct),r.Y36(u.x4),r.Y36(s.xk))},t.\u0275cmp=r.Xpm({type:t,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","pageSize","displayedColumns","recentIds","vos"],[3,"pageSizeOptions","pageSize","groups","recentIds","displayedColumns"],[3,"pageSizeOptions","pageSize","resources","displayedColumns","recentIds","routingVo"],[3,"pageSizeOptions","pageSize","facilities","recentIds","displayedColumns"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r._UZ(2,"mat-icon",2),r._uU(3),r.ALo(4,"translate"),r.TgZ(5,"span",3),r.ALo(6,"translate"),r.TgZ(7,"mat-icon",4),r._uU(8,"info_outline"),r.qZA(),r.qZA(),r.qZA(),r.YNc(9,L,1,0,"mat-spinner",5),r.YNc(10,j,5,4,"div",6),r.qZA()),2&t&&(r.xp6(2),r.Q6J("svgIcon",e.svgIcon),r.xp6(1),r.hij(" ",r.lcZ(4,5,e.title)," "),r.xp6(2),r.s9C("matTooltip",r.lcZ(6,7,e.roleTooltipInfo)),r.xp6(4),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[_.Hw,R.gM,w.O5,I.$g,O.Z,P.W,D.C,M.X],pipes:[d.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}"]}),t}(),Y=i(22196);function V(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"div"),r.TgZ(1,"mat-checkbox",8),r.NdJ("change",function(t){var e=r.CHM(i).$implicit,n=r.oxw();return t?n.changeRoleView(e):null}),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.qZA()}if(2&t){var n=e.$implicit,o=r.oxw();r.xp6(1),r.Q6J("checked",o.isRoleShowed(n)),r.xp6(1),r.Oqu(r.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+n))}}function K(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"button",15),r.NdJ("click",function(){return r.CHM(i),r.oxw(2).rightSettingOpened=!0}),r.TgZ(1,"mat-icon"),r._uU(2,"settings"),r.qZA(),r.qZA()}}function J(t,e){1&t&&(r.TgZ(0,"span"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function Q(t,e){1&t&&(r.TgZ(0,"span"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function W(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"button",23),r.NdJ("click",function(){return r.CHM(i),r.oxw(3).goToUserProfile()}),r.TgZ(1,"mat-icon",24),r._uU(2,"exit_to_app"),r.qZA(),r._uU(3),r.ALo(4,"translate"),r.qZA()}2&t&&(r.xp6(3),r.hij("",r.lcZ(4,1,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," "))}var X=function(){return["/myProfile"]};function $(t,e){if(1&t&&(r.TgZ(0,"div"),r.TgZ(1,"div",16),r.TgZ(2,"div",17),r._uU(3),r.ALo(4,"translate"),r.qZA(),r.TgZ(5,"div",18),r.YNc(6,J,3,3,"span",14),r.YNc(7,Q,3,3,"span",14),r.qZA(),r.TgZ(8,"div",19),r.TgZ(9,"button",20),r._UZ(10,"mat-icon",21),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.YNc(13,W,5,3,"button",22),r.qZA(),r.qZA(),r.qZA()),2&t){var i=r.oxw(2);r.xp6(3),r.hij(" ",r.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),r.xp6(3),r.Q6J("ngIf",!i.userProfileUrl),r.xp6(1),r.Q6J("ngIf",i.userProfileUrl),r.xp6(2),r.Q6J("routerLink",r.DdM(10,X)),r.xp6(2),r.hij(" ",r.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),r.xp6(2),r.Q6J("ngIf",i.userProfileUrl)}}function tt(t,e){1&t&&(r.TgZ(0,"span"),r.TgZ(1,"div",3),r._uU(2),r.ALo(3,"translate"),r.qZA(),r._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),r.qZA()),2&t&&(r.xp6(2),r.hij(" ",r.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function et(t,e){1&t&&(r.TgZ(0,"div",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function it(t,e){if(1&t&&r._UZ(0,"app-perun-web-apps-dashboard-card",30),2&t){var i=r.oxw().$implicit,n=r.oxw(3);r.Q6J("roleName",i)("role",n.roles[i])}}function nt(t,e){if(1&t&&(r.TgZ(0,"div",28),r.YNc(1,it,1,2,"app-perun-web-apps-dashboard-card",29),r.qZA()),2&t){var i=e.$implicit,n=r.oxw(3);r.xp6(1),r.Q6J("ngIf",n.isRoleShowed(i))}}function rt(t,e){if(1&t&&(r.TgZ(0,"div"),r.YNc(1,tt,5,3,"span",14),r.YNc(2,et,3,3,"div",25),r.TgZ(3,"div"),r.YNc(4,nt,2,1,"div",26),r.qZA(),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("ngIf",i.recentlyViewedShow),r.xp6(1),r.Q6J("ngIf",i.rolesToHide.toString()!==i.roleNames.toString()),r.xp6(2),r.Q6J("ngForOf",i.roleNames)}}function ot(t,e){if(1&t&&(r.TgZ(0,"div",9),r.TgZ(1,"h1",10),r._UZ(2,"mat-icon",11),r.TgZ(3,"span",12),r._uU(4),r.ALo(5,"translate"),r.ALo(6,"userFullName"),r.qZA(),r.YNc(7,K,3,0,"button",13),r.qZA(),r.YNc(8,$,14,11,"div",14),r.YNc(9,rt,5,3,"div",14),r.qZA()),2&t){var i=r.oxw();r.xp6(4),r.AsE("",r.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",r.lcZ(6,7,i.user),""),r.xp6(3),r.Q6J("ngIf",!i.isOnlySelfRole),r.xp6(1),r.Q6J("ngIf",i.isOnlySelfRole),r.xp6(1),r.Q6J("ngIf",!i.isOnlySelfRole)}}var at=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c,l,h,d){var f=this;v(this,t),this.userManager=e,this.storeService=i,this.guiAuthResolver=n,this.facilitiesService=r,this.resourcesService=o,this.sideMenuService=a,this.route=s,this.router=u,this.notificator=c,this.translateService=l,this.dialog=h,this.apiRequestConfiguration=d,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"],l.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(function(t){return f.mailSuccessMessage=t})}return y(t,[{key:"ngOnInit",value:function(){this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.userProfileUrl=this.storeService.get("user_profile_url");var t=Object.keys(this.roles);this.isOnlySelfRole=t.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(function(e){return t.includes(e)}),this.getDashboardSettings(),this.sideMenuService.setHomeItems([])}},{key:"validatePreferredMailChange",value:function(){var t=this,e=this.route.snapshot.queryParamMap,i=e.get("token"),n=e.get("u");i&&n&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(i,Number.parseInt(n,10)).subscribe(function(){t.notificator.showSuccess(t.mailSuccessMessage),t.router.navigate([],{replaceUrl:!0})},function(){var e=(0,c.kZ)();e.width="600px",t.dialog.open(l.qD,e).afterClosed().subscribe(function(){t.getDashboardSettings()})}))}},{key:"goToUserProfile",value:function(){window.open(this.userProfileUrl)}},{key:"recentlyViewedChanged",value:function(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}},{key:"getDashboardSettings",value:function(){var t=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===t||t;var e=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===e?[]:e}},{key:"changeRoleView",value:function(t){if(this.isRoleShowed(t)){var e,i=[],n=f(this.roleNames);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.isRoleShowed(r)||i.push(r),r===t&&i.push(r)}}catch(o){n.e(o)}finally{n.f()}this.rolesToHide=i}else this.rolesToHide=this.rolesToHide.filter(function(e){return e!==t});localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}},{key:"isRoleShowed",value:function(t){var e,i=f(this.rolesToHide);try{for(i.s();!(e=i.n()).done;){if(e.value===t)return!1}}catch(n){i.e(n)}finally{i.f()}return!0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(s.Fv),r.Y36(u.d6),r.Y36(u.x4),r.Y36(s.IQ),r.Y36(s.xk),r.Y36(h.D),r.Y36(o.gz),r.Y36(o.F0),r.Y36(u.V6),r.Y36(d.sK),r.Y36(p.uw),r.Y36(u.F5))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("router-component",e.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"],[1,"pt-1"],["mat-stroked-button","","class","ml-auto text-bigger",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,"d-flex","pt-3"],["mat-stroked-button","",1,"ml-auto","mr-auto","text-bigger",3,"routerLink"],["svgIcon","perun-user-dark",1,"mr-1","user-icon"],["mat-stroked-button","","class","ml-auto mr-auto text-bigger",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ml-auto","mr-auto","text-bigger",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(t,e){1&t&&(r.TgZ(0,"mat-sidenav-container",0),r.TgZ(1,"mat-sidenav",1),r.NdJ("openedChange",function(t){return e.rightSettingOpened=t}),r.TgZ(2,"div",2),r.TgZ(3,"div",3),r._uU(4),r.ALo(5,"translate"),r.qZA(),r.TgZ(6,"div"),r.TgZ(7,"mat-checkbox",4),r.NdJ("ngModelChange",function(t){return e.recentlyViewedShow=t})("change",function(t){return t?e.recentlyViewedChanged():null}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.qZA(),r.TgZ(10,"div",5),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.YNc(13,V,4,4,"div",6),r.qZA(),r.qZA(),r.TgZ(14,"mat-sidenav-content"),r.YNc(15,ot,10,9,"div",7),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("opened",e.rightSettingOpened),r.xp6(3),r.Oqu(r.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),r.xp6(3),r.Q6J("ngModel",e.recentlyViewedShow),r.xp6(1),r.Oqu(r.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),r.xp6(3),r.Oqu(r.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),r.xp6(2),r.Q6J("ngForOf",e.roleNames),r.xp6(2),r.Q6J("ngIf",void 0!==e.user))},directives:[g.TM,g.JX,m.oG,b.JJ,b.On,w.sg,g.Rh,w.O5,_.Hw,A.lW,o.rH,x,G],pipes:[d.X$,Y.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;grid-column-gap:1rem;-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 - 64px - 200px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),t}(),st=i(66297),ut=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"perun-web-apps-back-button"),r.TgZ(2,"h1",1),r._uU(3),r.ALo(4,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(3),r.Oqu(r.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},directives:[st.W],pipes:[d.X$],styles:[""]}),t}(),ct=i(41939),lt=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[w.ez,A.ot,_.Ps,o.Bz,ct.ez,d.aw]]}),t}(),ht=function(){var t=function(){function t(e){v(this,t),this.auth=e}return y(t,[{key:"startAuth",value:function(){this.auth.startAuthentication()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(u.e8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con","vo-theme"],[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(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"div",2),r.TgZ(3,"h4",3),r._uU(4),r.ALo(5,"translate"),r.qZA(),r.TgZ(6,"button",4),r.NdJ("click",function(){return e.startAuth()}),r._uU(7),r.ALo(8,"translate"),r.TgZ(9,"mat-icon"),r._uU(10," login "),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(4),r.hij(" ",r.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),r.xp6(3),r.hij(" ",r.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[A.lW,_.Hw],pipes:[d.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),t}(),dt=i(76198),ft=function(t){return{padding:t}},pt=function(){return{height:"56px"}};function gt(t,e){if(1&t&&(r.TgZ(0,"div",9),r._UZ(1,"div",10),r.qZA()),2&t){var i=r.oxw();r.Q6J("ngStyle",r.VKq(3,ft,i.logoPadding)),r.xp6(1),r.Q6J("innerHTML",i.logo,r.oJD)("ngStyle",r.DdM(5,pt))}}function vt(t,e){if(1&t&&(r.TgZ(0,"div",11),r._UZ(1,"div",12),r._UZ(2,"mat-icon",13),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("innerHTML",i.logo,r.oJD)}}function mt(t,e){if(1&t&&(r.TgZ(0,"div",14),r._UZ(1,"a",15),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("innerHTML",i.logo,r.oJD)}}var yt=function(t){return{color:t}};function bt(t,e){if(1&t&&(r.TgZ(0,"p",16),r._uU(1),r.qZA()),2&t){var i=r.oxw();r.Q6J("ngStyle",r.VKq(2,yt,i.textColor)),r.xp6(1),r.hij(" ",i.headerTitle," ")}}var wt=function(t,e){return{background:t,color:e}},_t=function(t,e){return{"min-height":t,"background-color":e}},At=function(){var t=function(){function t(e,i){v(this,t),this.storeService=e,this.sanitizer=i,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}return y(t,[{key:"ngOnInit",value:function(){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"):"",this.logoPadding="admin-gui"===this.application?this.storeService.get("logo_padding"):""}},{key:"getContentInnerMinHeight",value:function(){return"calc((100vh - 64px) + 0px)"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(u.d6),r.Y36(n.H7))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],["style"," display: flex; flex-direction: row;",4,"ngIf"],["style","padding-top: 16px",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"],[3,"ngStyle"],[1,"logo-container",3,"innerHTML","ngStyle"],[2,"display","flex","flex-direction","row"],[1,"router-icon-scale",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[2,"padding-top","16px"],[1,"ml-3",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.YNc(1,gt,2,6,"div",1),r.YNc(2,vt,3,1,"div",2),r.YNc(3,mt,2,1,"div",3),r.YNc(4,bt,2,4,"p",4),r.qZA(),r.TgZ(5,"div",5),r.TgZ(6,"div",6),r.TgZ(7,"div",7),r._UZ(8,"router-outlet"),r.qZA(),r.TgZ(9,"div",8),r._UZ(10,"perun-web-apps-footer"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Q6J("ngStyle",r.WLB(6,wt,e.headerBackgroundColor,e.headerTextColor)),r.xp6(1),r.Q6J("ngIf","admin-gui"===e.application),r.xp6(1),r.Q6J("ngIf","publications"===e.application),r.xp6(1),r.Q6J("ngIf","user-profile"===e.application),r.xp6(1),r.Q6J("ngIf",!!e.headerTitle),r.xp6(2),r.Q6J("ngStyle",r.WLB(9,_t,e.getContentInnerMinHeight(),e.contentBackgroundColor)))},directives:[w.PC,w.O5,o.lC,dt.$,_.Hw],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}.router-icon-scale[_ngcontent-%COMP%]{transform:scale(.75);margin-top:.3rem}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}"]}),t}(),kt=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:ct.t$},{path:"api-callback",component:a},{path:"login",component:ht},{path:"organizations",loadChildren:function(){return Promise.all([i.e(579),i.e(827),i.e(592),i.e(512)]).then(i.bind(i,72512)).then(function(t){return t.VosModule})}},{path:"admin",loadChildren:function(){return Promise.all([i.e(579),i.e(363),i.e(756),i.e(592),i.e(147)]).then(i.bind(i,48147)).then(function(t){return t.AdminModule})}},{path:"facilities",loadChildren:function(){return Promise.all([i.e(579),i.e(363),i.e(827),i.e(756),i.e(300)]).then(i.bind(i,55300)).then(function(t){return t.FacilitiesModule})}},{path:"myProfile",loadChildren:function(){return Promise.all([i.e(579),i.e(363)]).then(i.bind(i,6363)).then(function(t){return t.UsersModule})}},{path:"home",component:at},{path:"**",component:ut}],Tt=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[o.Bz.forRoot(kt,{preloadingStrategy:o.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],o.Bz]}),t}(),Ct=i(61601),St=i(28780),Et=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";v(this,t),this.http=e,this.prefix=i,this.suffix=n}return y(t,[{key:"getTranslation",value:function(t){return this.http.get("".concat(this.prefix).concat(t).concat(this.suffix))}}]),t}(),xt=i(29063),Rt=i(43490),It=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[u.e8],imports:[[w.ez]]}),t}(),Ot=i(28940),Pt=i(48002),Dt=i(40659),Mt=i(62284),Lt=i(7433),Nt=i(82044),zt=i(11930),Ft=i(39124),Zt=i(64467),Bt=i(81835),qt=i(88227),Ut=i(97397),Ht=i(71313),jt=i(14527),Gt=i(65423),Yt=i(17249),Vt=i(73916),Kt=i(48666),Jt=function(){var t=function(){function t(){v(this,t),this.allowCachePages=[{type:"vo",components:[Ot.y.id,Pt.G.id,Dt.c.id,qt.z.id,Ut.z.id,jt.w.id,Kt.T.id]},{type:"group",components:[zt.y.id,Nt.u.id,Lt.q.id,Mt.W.id,Gt.Z.id]},{type:"facility",components:[Ft.o.id,Zt.f.id]},{type:"member",components:[Bt.j.id]},{type:"admin",components:[Ht.t.id]},{type:"entitySelect",components:[Yt.Y.id,Vt.P.id]}],this.cacheTimeMs=3e5,this.resets=[{lastValue:null,resetType:"vo",resetPath:":voId",param:"voId"},{lastValue:null,resetType:"group",resetPath:":voId/groups/:groupId",param:"groupId"},{lastValue:null,resetType:"facility",resetPath:":facilityId",param:"facilityId"},{lastValue:null,resetType:"member",resetPath:":voId/members/:memberId",param:"memberId"},{lastValue:null,resetType:"admin",resetPath:"admin/users"}],this.isUserNavigatingBack=!1,this.typeToComponentToHandlers=new Map;var e,i=f(this.allowCachePages);try{for(i.s();!(e=i.n()).done;){var n=e.value;this.typeToComponentToHandlers.set(n.type,new Map)}}catch(r){i.e(r)}finally{i.f()}}return y(t,[{key:"setLastNavigationType",value:function(t){this.isUserNavigatingBack="back"===t}},{key:"checkResets",value:function(t){var e,i=this.getPath(t),n=f(this.resets);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.resetPath===i){var o=t.params[r.param];null!==r.lastValue&&r.lastValue!==o&&this.typeToComponentToHandlers.get(r.resetType).clear(),r.lastValue=o}}}catch(a){n.e(a)}finally{n.f()}}},{key:"shouldReuseRoute",value:function(t,e){return this.checkResets(e),t.routeConfig===e.routeConfig}},{key:"retrieve",value:function(t){if(t.component){var e,i=this.getComponentName(t.component),n=f(this.allowCachePages);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(-1!==r.components.indexOf(i)){var o=this.typeToComponentToHandlers.get(r.type).get(i);return void 0===o?null:o.routeHandle}}}catch(a){n.e(a)}finally{n.f()}}return null}},{key:"shouldAttach",value:function(t){if(!this.isUserNavigatingBack)return!1;if(t.component){var e,i=this.getComponentName(t.component),n=f(this.allowCachePages);try{for(n.s();!(e=n.n()).done;){var r=e.value,o=this.typeToComponentToHandlers.get(r.type).get(i);if(void 0!==o&&this.getCurrentTimestamp()-o.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();var i=this.getComponentType(t);this.typeToComponentToHandlers.get(i).set(this.getComponentName(t.component),{routeHandle:e,saveTimeStamp:this.getCurrentTimestamp()})}}},{key:"getCurrentTimestamp",value:function(){return+Date.now()}},{key:"getComponentName",value:function(t){return t.id}},{key:"getComponentType",value:function(t){var e,i=this.getComponentName(t.component),n=f(this.allowCachePages);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(-1!==r.components.indexOf(i))return r.type}}catch(o){n.e(o)}finally{n.f()}return null}},{key:"getPath",value:function(t){return null!==t.routeConfig&&null!==t.routeConfig.path?t.routeConfig.path:""}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),Qt=new r.OlP("perun-api-service"),Wt=function(){var t=function(){function t(e,i){v(this,t),this.http=e,this.storeService=i}return y(t,[{key:"initializeColors",value:function(t,e){var i=this;return new Promise(function(n){e.forEach(function(t){var e=i.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(function(t){var e=i.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),i.setEntityTheme(t.entity,e)}),n()})}},{key:"setEntityTheme",value:function(t,e){for(var i,n=0,r=(i=e,[Xt(tinycolor(i).lighten(52),"50"),Xt(tinycolor(i).lighten(37),"100"),Xt(tinycolor(i).lighten(26),"200"),Xt(tinycolor(i).lighten(12),"300"),Xt(tinycolor(i).lighten(6),"400"),Xt(tinycolor(i),"500"),Xt(tinycolor(i).darken(6),"600"),Xt(tinycolor(i).darken(12),"700"),Xt(tinycolor(i).darken(18),"800"),Xt(tinycolor(i).darken(24),"900"),Xt(tinycolor(i).lighten(50).saturate(30),"A100"),Xt(tinycolor(i).lighten(30).saturate(30),"A200"),Xt(tinycolor(i).lighten(10).saturate(15),"A400"),Xt(tinycolor(i).lighten(5).saturate(5),"A700")]);nt[o]-t[a]-1&&(t.reach[u]="end"),e&&(h.dispatchEvent(xe("ps-scroll-"+u)),e<0?h.dispatchEvent(xe("ps-scroll-"+c)):e>0&&h.dispatchEvent(xe("ps-scroll-"+l)),n&&function(t,e){ke(t,e),Te(t,e)}(t,u)),t.reach[u]&&(e||r)&&h.dispatchEvent(xe("ps-"+u+"-reach-"+t.reach[u]))}(t,i,o,n,r)}function Ie(t){return parseInt(t,10)||0}Ee.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new Ce(t),this.eventElements.push(e)),e},Ee.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},Ee.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},Ee.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},Ee.prototype.once=function(t,e,i){var n=this.eventElement(t);n.bind(e,function t(r){n.unbind(e,t),i(r)})};var Oe={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function Pe(t){var e=t.element,i=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.ceil(n.width),t.containerHeight=Math.ceil(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(me(e,be("x")).forEach(function(t){return ve(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(me(e,be("y")).forEach(function(t){return ve(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var i={width:e.railXWidth},n=Math.floor(t.scrollTop);i.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-n:i.top=e.scrollbarXTop+n,de(e.scrollbarXRail,i);var r={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?r.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:r.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,de(e.scrollbarYRail,r),de(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),de(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(we("x")):(e.classList.remove(we("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(we("y")):(e.classList.remove(we("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function De(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function Me(t,e){var i=e[0],n=e[1],r=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],h=t.element,d=null,f=null,p=null;function g(e){e.touches&&e.touches[0]&&(e[r]=e.touches[0].pageY),h[u]=d+p*(e[r]-f),ke(t,c),Pe(t),e.stopPropagation(),e.preventDefault()}function v(){Te(t,c),t[l].classList.remove("ps--clicking"),t.event.unbind(t.ownerDocument,"mousemove",g)}function m(e,a){d=h[u],a&&e.touches&&(e[r]=e.touches[0].pageY),f=e[r],p=(t[n]-t[i])/(t[o]-t[s]),a?t.event.bind(t.ownerDocument,"touchmove",g):(t.event.bind(t.ownerDocument,"mousemove",g),t.event.once(t.ownerDocument,"mouseup",v),e.preventDefault()),t[l].classList.add("ps--clicking"),e.stopPropagation()}t.event.bind(t[a],"mousedown",function(t){m(t)}),t.event.bind(t[a],"touchstart",function(t){m(t,!0)})}var Le={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,Pe(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,Pe(t),e.stopPropagation()})},"drag-thumb":function(t){Me(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Me(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(ge(e,":hover")||ge(t.scrollbarX,":focus")||ge(t.scrollbarY,":focus"))){var n,r=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(r){if("IFRAME"===r.tagName)r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(ge(n=r,"input,[contenteditable]")||ge(n,"select,[contenteditable]")||ge(n,"textarea,[contenteditable]")||ge(n,"button,[contenteditable]"))return}var o=0,a=0;switch(i.which){case 37:o=i.metaKey?-t.contentWidth:i.altKey?-t.containerWidth:-30;break;case 38:a=i.metaKey?t.contentHeight:i.altKey?t.containerHeight:30;break;case 39:o=i.metaKey?t.contentWidth:i.altKey?t.containerWidth:30;break;case 40:a=i.metaKey?-t.contentHeight:i.altKey?-t.containerHeight:-30;break;case 32:a=i.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:a=t.containerHeight;break;case 34:a=-t.containerHeight;break;case 36:a=t.contentHeight;break;case 35:a=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==o||t.settings.suppressScrollY&&0!==a||(e.scrollTop-=a,e.scrollLeft+=o,Pe(t),function(i,n){var r=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===r&&n>0||r>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===o&&i<0||o>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}(o,a)&&i.preventDefault())}})},wheel:function(t){var e=t.element;function i(i){var n=function(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}(i),r=n[0],o=n[1];if(!function(t,i,n){if(!Oe.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains("ps__child--consume"))return!0;var o=he(r);if(n&&o.overflowY.match(/(scroll|auto)/)){var a=r.scrollHeight-r.clientHeight;if(a>0&&(r.scrollTop>0&&n<0||r.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var s=r.scrollWidth-r.clientWidth;if(s>0&&(r.scrollLeft>0&&i<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(i.target,r,o)){var a=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(o?e.scrollTop-=o*t.settings.wheelSpeed:e.scrollTop+=r*t.settings.wheelSpeed,a=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(r?e.scrollLeft+=r*t.settings.wheelSpeed:e.scrollLeft-=o*t.settings.wheelSpeed,a=!0):(e.scrollTop-=o*t.settings.wheelSpeed,e.scrollLeft+=r*t.settings.wheelSpeed),Pe(t),(a=a||function(i,n){var r=Math.floor(e.scrollTop),o=0===e.scrollTop,a=r+e.offsetHeight===e.scrollHeight,s=0===e.scrollLeft,u=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(n)>Math.abs(i)?o||a:s||u)||!t.settings.wheelPropagation}(r,o))&&!i.ctrlKey&&(i.stopPropagation(),i.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",i):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",i)},touch:function(t){if(Oe.supportsTouch||Oe.supportsIePointer){var e=t.element,i={},n=0,r={},o=null;Oe.supportsTouch?(t.event.bind(e,"touchstart",c),t.event.bind(e,"touchmove",l),t.event.bind(e,"touchend",h)):Oe.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",c),t.event.bind(e,"pointermove",l),t.event.bind(e,"pointerup",h)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",c),t.event.bind(e,"MSPointerMove",l),t.event.bind(e,"MSPointerUp",h)))}function a(i,n){e.scrollTop-=n,e.scrollLeft-=i,Pe(t)}function s(t){return t.targetTouches?t.targetTouches[0]:t}function u(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function c(t){if(u(t)){var e=s(t);i.pageX=e.pageX,i.pageY=e.pageY,n=(new Date).getTime(),null!==o&&clearInterval(o)}}function l(o){if(u(o)){var c=s(o),l={pageX:c.pageX,pageY:c.pageY},h=l.pageX-i.pageX,d=l.pageY-i.pageY;if(function(t,i,n){if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains("ps__child--consume"))return!0;var o=he(r);if(n&&o.overflowY.match(/(scroll|auto)/)){var a=r.scrollHeight-r.clientHeight;if(a>0&&(r.scrollTop>0&&n<0||r.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var s=r.scrollWidth-r.clientWidth;if(s>0&&(r.scrollLeft>0&&i<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(o.target,h,d))return;a(h,d),i=l;var f=(new Date).getTime(),p=f-n;p>0&&(r.x=h/p,r.y=d/p,n=f),function(i,n){var r=Math.floor(e.scrollTop),o=e.scrollLeft,a=Math.abs(i),s=Math.abs(n);if(s>a){if(n<0&&r===t.contentHeight-t.containerHeight||n>0&&0===r)return 0===window.scrollY&&n>0&&Oe.isChrome}else if(a>s&&(i<0&&o===t.contentWidth-t.containerWidth||i>0&&0===o))return!0;return!0}(h,d)&&o.preventDefault()}}function h(){t.settings.swipeEasing&&(clearInterval(o),o=setInterval(function(){t.isInitialized?clearInterval(o):r.x||r.y?Math.abs(r.x)<.01&&Math.abs(r.y)<.01?clearInterval(o):(a(30*r.x,30*r.y),r.x*=.8,r.y*=.8):clearInterval(o)},10))}}},Ne=function(t,e){var i=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var n in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[n]=e[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r,o,a=function(){return t.classList.add("ps--focus")},s=function(){return t.classList.remove("ps--focus")};this.isRtl="rtl"===he(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,r=t.scrollLeft<0,t.scrollLeft=o,r),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new Ee,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=fe(be("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=fe(ye("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var u=he(this.scrollbarXRail);this.scrollbarXBottom=parseInt(u.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Ie(u.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Ie(u.borderLeftWidth)+Ie(u.borderRightWidth),de(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Ie(u.marginLeft)+Ie(u.marginRight),de(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=fe(be("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=fe(ye("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var c=he(this.scrollbarYRail);this.scrollbarYRight=parseInt(c.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Ie(c.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=he(t);return Ie(e.width)+Ie(e.paddingLeft)+Ie(e.paddingRight)+Ie(e.borderLeftWidth)+Ie(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Ie(c.borderTopWidth)+Ie(c.borderBottomWidth),de(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Ie(c.marginTop)+Ie(c.marginBottom),de(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return Le[t](i)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return i.onScroll(t)}),Pe(this)};Ne.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,de(this.scrollbarXRail,{display:"block"}),de(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Ie(he(this.scrollbarXRail).marginLeft)+Ie(he(this.scrollbarXRail).marginRight),this.railYMarginHeight=Ie(he(this.scrollbarYRail).marginTop)+Ie(he(this.scrollbarYRail).marginBottom),de(this.scrollbarXRail,{display:"none"}),de(this.scrollbarYRail,{display:"none"}),Pe(this),Re(this,"top",0,!1,!0),Re(this,"left",0,!1,!0),de(this.scrollbarXRail,{display:""}),de(this.scrollbarYRail,{display:""}))},Ne.prototype.onScroll=function(t){this.isAlive&&(Pe(this),Re(this,"top",this.element.scrollTop-this.lastScrollTop),Re(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Ne.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),ve(this.scrollbarX),ve(this.scrollbarY),ve(this.scrollbarXRail),ve(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Ne.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};var ze=Ne,Fe=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some(function(t,n){return t[0]===e&&(i=n,!0)}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i0},t.prototype.connect_=function(){Ze&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),He?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){Ze&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;Ue.some(function(t){return!!~i.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Ge=function(t,e){for(var i=0,n=Object.keys(e);i0},t}(),ei="undefined"!=typeof WeakMap?new WeakMap:new Fe,ii=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=je.getInstance(),n=new ti(e,i,this);ei.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){ii.prototype[t]=function(){var e;return(e=ei.get(this))[t].apply(e,arguments)}});var ni=void 0!==Be.ResizeObserver?Be.ResizeObserver:ii;function ri(t,e){if(1&t&&(r.TgZ(0,"div",3),r._UZ(1,"div",4),r._UZ(2,"div",5),r._UZ(3,"div",6),r._UZ(4,"div",7),r.qZA()),2&t){var i=r.oxw();r.ekj("ps-at-top",i.states.top)("ps-at-left",i.states.left)("ps-at-right",i.states.right)("ps-at-bottom",i.states.bottom),r.xp6(1),r.ekj("ps-indicator-show",i.indicatorY&&i.interaction),r.xp6(1),r.ekj("ps-indicator-show",i.indicatorX&&i.interaction),r.xp6(1),r.ekj("ps-indicator-show",i.indicatorX&&i.interaction),r.xp6(1),r.ekj("ps-indicator-show",i.indicatorY&&i.interaction)}}var oi=["*"],ai=new r.OlP("PERFECT_SCROLLBAR_CONFIG"),si=function t(e,i,n,r){v(this,t),this.x=e,this.y=i,this.w=n,this.h=r},ui=function t(e,i){v(this,t),this.x=e,this.y=i},ci=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"],li=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v(this,t),this.assign(e)}return y(t,[{key:"assign",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var e in t)this[e]=t[e]}}]),t}(),hi=function(){var t=function(){function t(e,i,n,o,a){v(this,t),this.zone=e,this.differs=i,this.elementRef=n,this.platformId=o,this.defaults=a,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new re.xQ,this.disabled=!1,this.psScrollY=new r.vpe,this.psScrollX=new r.vpe,this.psScrollUp=new r.vpe,this.psScrollDown=new r.vpe,this.psScrollLeft=new r.vpe,this.psScrollRight=new r.vpe,this.psYReachEnd=new r.vpe,this.psYReachStart=new r.vpe,this.psXReachEnd=new r.vpe,this.psXReachStart=new r.vpe}return y(t,[{key:"ngOnInit",value:function(){var t=this;if(!this.disabled&&(0,w.NF)(this.platformId)){var e=new li(this.defaults);e.assign(this.config),this.zone.runOutsideAngular(function(){t.instance=new ze(t.elementRef.nativeElement,e)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(function(){t.ro=new ni(function(){t.update()}),t.elementRef.nativeElement.children[0]&&t.ro.observe(t.elementRef.nativeElement.children[0]),t.ro.observe(t.elementRef.nativeElement)}),this.zone.runOutsideAngular(function(){ci.forEach(function(e){var i=e.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())});(0,oe.R)(t.elementRef.nativeElement,i).pipe((0,se.e)(20),(0,ue.R)(t.ngDestroy)).subscribe(function(i){t[e].emit(i)})})})}}},{key:"ngOnDestroy",value:function(){var t=this;(0,w.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(function(){t.instance&&t.instance.destroy()}),this.instance=null)}},{key:"ngDoCheck",value:function(){!this.disabled&&this.configDiff&&(0,w.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}},{key:"ngOnChanges",value:function(t){t.disabled&&!t.disabled.isFirstChange()&&(0,w.NF)(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())}},{key:"ps",value:function(){return this.instance}},{key:"update",value:function(){var t=this;"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){if(!t.disabled&&t.configDiff)try{t.zone.runOutsideAngular(function(){t.instance&&t.instance.update()})}catch(e){}},0))}},{key:"geometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll";return new si(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])}},{key:"position",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!t&&this.instance?new ui(this.instance.reach.x||0,this.instance.reach.y||0):new ui(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}},{key:"scrollable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any",e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)}},{key:"scrollTo",value:function(t,e,i){this.disabled||(null==e&&null==i?this.animateScrolling("scrollTop",t,i):(null!=t&&this.animateScrolling("scrollLeft",t,i),null!=e&&this.animateScrolling("scrollTop",e,i)))}},{key:"scrollToX",value:function(t,e){this.animateScrolling("scrollLeft",t,e)}},{key:"scrollToY",value:function(t,e){this.animateScrolling("scrollTop",t,e)}},{key:"scrollToTop",value:function(t,e){this.animateScrolling("scrollTop",t||0,e)}},{key:"scrollToLeft",value:function(t,e){this.animateScrolling("scrollLeft",t||0,e)}},{key:"scrollToRight",value:function(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)}},{key:"scrollToBottom",value:function(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)}},{key:"scrollToElement",value:function(t,e,i){var n=this.elementRef.nativeElement.querySelector(t);if(n){var r=n.getBoundingClientRect(),o=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",r.left-o.left+this.elementRef.nativeElement.scrollLeft+(e||0),i),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",r.top-o.top+this.elementRef.nativeElement.scrollTop+(e||0),i)}}},{key:"animateScrolling",value:function(t,e,i){var n=this;if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),i&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){var r=0,o=0,a=performance.now(),s=this.elementRef.nativeElement[t],u=(s-e)/2;window.requestAnimationFrame(function c(l){o+=Math.PI/(i/(l-a)),r=Math.round(e+u+u*Math.cos(o)),n.elementRef.nativeElement[t]===s&&(o>=Math.PI?n.animateScrolling(t,e,0):(n.elementRef.nativeElement[t]=r,s=n.elementRef.nativeElement[t],a=l,n.animation=window.requestAnimationFrame(c)))})}}else this.elementRef.nativeElement[t]=e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.R0b),r.Y36(r.aQg),r.Y36(r.SBq),r.Y36(r.Lbi),r.Y36(ai,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[r.TTD]}),t=(0,ne.gn)([(0,ne.fM)(3,(0,r.tBr)(r.Lbi)),(0,ne.fM)(4,(0,r.FiY)()),(0,ne.fM)(4,(0,r.tBr)(ai))],t)}(),di=function(){var t=function(){function t(e,i,n){v(this,t),this.zone=e,this.cdRef=i,this.platformId=n,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new re.xQ,this.stateUpdate=new re.xQ,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new r.vpe,this.psScrollX=new r.vpe,this.psScrollUp=new r.vpe,this.psScrollDown=new r.vpe,this.psScrollLeft=new r.vpe,this.psScrollRight=new r.vpe,this.psYReachEnd=new r.vpe,this.psYReachStart=new r.vpe,this.psXReachEnd=new r.vpe,this.psXReachStart=new r.vpe}return y(t,[{key:"ngOnInit",value:function(){var t=this;(0,w.NF)(this.platformId)&&(this.stateUpdate.pipe((0,ue.R)(this.ngDestroy),(0,ce.x)(function(e,i){return e===i&&!t.stateTimeout})).subscribe(function(e){t.stateTimeout&&"undefined"!=typeof window&&(window.clearTimeout(t.stateTimeout),t.stateTimeout=null),"x"===e||"y"===e?(t.interaction=!1,"x"===e?(t.indicatorX=!1,t.states.left=!1,t.states.right=!1,t.autoPropagation&&t.usePropagationX&&(t.allowPropagationX=!1)):"y"===e&&(t.indicatorY=!1,t.states.top=!1,t.states.bottom=!1,t.autoPropagation&&t.usePropagationY&&(t.allowPropagationY=!1))):("left"===e||"right"===e?(t.states.left=!1,t.states.right=!1,t.states[e]=!0,t.autoPropagation&&t.usePropagationX&&(t.indicatorX=!0)):"top"!==e&&"bottom"!==e||(t.states.top=!1,t.states.bottom=!1,t.states[e]=!0,t.autoPropagation&&t.usePropagationY&&(t.indicatorY=!0)),t.autoPropagation&&"undefined"!=typeof window&&(t.stateTimeout=window.setTimeout(function(){t.indicatorX=!1,t.indicatorY=!1,t.stateTimeout=null,t.interaction&&(t.states.left||t.states.right)&&(t.allowPropagationX=!0),t.interaction&&(t.states.top||t.states.bottom)&&(t.allowPropagationY=!0),t.cdRef.markForCheck()},500))),t.cdRef.markForCheck(),t.cdRef.detectChanges()}),this.zone.runOutsideAngular(function(){if(t.directiveRef){var e=t.directiveRef.elementRef.nativeElement;(0,oe.R)(e,"wheel").pipe((0,ue.R)(t.ngDestroy)).subscribe(function(e){!t.disabled&&t.autoPropagation&&t.checkPropagation(e,e.deltaX,e.deltaY)}),(0,oe.R)(e,"touchmove").pipe((0,ue.R)(t.ngDestroy)).subscribe(function(e){if(!t.disabled&&t.autoPropagation){var i=e.touches[0].clientX,n=e.touches[0].clientY;t.checkPropagation(e,i-t.scrollPositionX,n-t.scrollPositionY),t.scrollPositionX=i,t.scrollPositionY=n}}),(0,ae.T)((0,oe.R)(e,"ps-scroll-x").pipe((0,le.h)("x")),(0,oe.R)(e,"ps-scroll-y").pipe((0,le.h)("y")),(0,oe.R)(e,"ps-x-reach-end").pipe((0,le.h)("right")),(0,oe.R)(e,"ps-y-reach-end").pipe((0,le.h)("bottom")),(0,oe.R)(e,"ps-x-reach-start").pipe((0,le.h)("left")),(0,oe.R)(e,"ps-y-reach-start").pipe((0,le.h)("top"))).pipe((0,ue.R)(t.ngDestroy)).subscribe(function(e){t.disabled||!t.autoPropagation&&!t.scrollIndicators||t.stateUpdate.next(e)})}}),window.setTimeout(function(){ci.forEach(function(e){t.directiveRef&&(t.directiveRef[e]=t[e])})},0))}},{key:"ngOnDestroy",value:function(){(0,w.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&"undefined"!=typeof window&&window.clearTimeout(this.stateTimeout))}},{key:"ngDoCheck",value:function(){if((0,w.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){var t=this.directiveRef.elementRef.nativeElement;this.usePropagationX=t.classList.contains("ps--active-x"),this.usePropagationY=t.classList.contains("ps--active-y")}}},{key:"checkPropagation",value:function(t,e,i){this.interaction=!0;var n=e<0?-1:1,r=i<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==n)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==r))&&(t.preventDefault(),t.stopPropagation()),e&&(this.scrollDirectionX=n),i&&(this.scrollDirectionY=r),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(r.Lbi))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perfect-scrollbar"]],viewQuery:function(t,e){var i;(1&t&&r.Gf(hi,7),2&t)&&(r.iGM(i=r.CRH())&&(e.directiveRef=i.first))},hostVars:4,hostBindings:function(t,e){2&t&&r.ekj("ps-show-limits",e.autoPropagation)("ps-show-active",e.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:oi,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.Hsn(2),r.qZA(),r.YNc(3,ri,5,16,"div",2),r.qZA()),2&t&&(r.ekj("ps",e.usePSClass),r.Q6J("perfectScrollbar",e.config)("disabled",e.disabled),r.xp6(3),r.Q6J("ngIf",e.scrollIndicators))},directives:[hi,w.O5],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:-webkit-box;display:flex;flex-direction:column;height:auto;min-width:0;min-height:0;-webkit-box-direction:column;-webkit-box-orient:column}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:-webkit-box;display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-direction:inherit;-webkit-box-flex:1;-webkit-box-orient:inherit;-webkit-box-pack:inherit},perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important;-webkit-box-direction:row!important;-webkit-box-orient:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important;-webkit-box-direction:column!important;-webkit-box-orient:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{position:absolute;opacity:0;-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;-webkit-transition:width .2s linear,opacity .2s linear,background-color .2s linear;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;-webkit-transition:height .2s linear,opacity .2s linear,background-color .2s linear;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x,perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x,perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:-webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to bottom,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:-webkit-gradient(linear,left bottom,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to top,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to right,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:-webkit-gradient(linear,right top,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to left,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:-webkit-gradient(linear,left top,left bottom,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to bottom,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:-webkit-gradient(linear,left bottom,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to top,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:-webkit-gradient(linear,left top,right top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to right,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:-webkit-gradient(linear,right top,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to left,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show{opacity:1}",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ps{overflow:auto!important}}"],encapsulation:2}),t=(0,ne.gn)([(0,ne.fM)(2,(0,r.tBr)(r.Lbi))],t)}(),fi=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[w.ez],w.ez]}),t}(),pi=i(17),gi=i(11418);function vi(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"div"),r.TgZ(1,"perun-web-apps-notification",2),r.NdJ("closeNotification",function(){var t=r.CHM(i).index;return r.oxw().removeNotification(t)}),r.qZA(),r.qZA()}if(2&t){var n=e.$implicit;r.Q6J("@flyInOut",void 0),r.xp6(1),r.Q6J("data",n)("newNotification",!0)}}var mi=function(t){return{top:t}},yi=function(){var t=function(){function t(e,i){var n=this;v(this,t),this.notificator=e,this.notificationStorageService=i,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(function(t){n.processNotification(t)}),this.getScreenSize()}return y(t,[{key:"getScreenSize",value:function(){this.mobileView=window.innerWidth<=this.minWidth}},{key:"processNotification",value:function(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}},{key:"getNotificatorTop",value:function(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}},{key:"removeNotification",value:function(t){this.notifications.splice(t,1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(u.V6),r.Y36(u.SZ))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&r.NdJ("resize",function(t){return e.getScreenSize(t)},!1,r.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.YNc(1,vi,2,3,"div",1),r.qZA()),2&t&&(r.Q6J("ngStyle",r.VKq(2,mi,e.getNotificatorTop())),r.xp6(1),r.Q6J("ngForOf",e.notifications))},directives:[w.PC,w.sg,gi.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;bottom:0}}"],data:{animation:[pi.Pd]}}),t}(),bi=i(4253);function wi(t,e){if(1&t&&(r.TgZ(0,"div",9),r._UZ(1,"perun-web-apps-notification",10),r.qZA()),2&t){var i=e.$implicit;r.xp6(1),r.Q6J("data",i)("inDialog",!0)}}function _i(t,e){if(1&t&&(r.TgZ(0,"div",6),r.TgZ(1,"cdk-virtual-scroll-viewport",7),r.YNc(2,wi,2,2,"div",8),r.qZA(),r.qZA()),2&t){var i=r.oxw();r.xp6(2),r.Q6J("cdkVirtualForOf",i.notifications)}}function Ai(t,e){1&t&&(r.TgZ(0,"app-alert",11),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}var ki=function(){var t=function(){function t(e,i){v(this,t),this.dialogRef=e,this.notificationStorageService=i}return y(t,[{key:"ngOnInit",value:function(){this.notifications=this.notificationStorageService.getNotifications()}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onClear",value:function(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(p.so),r.Y36(u.SZ))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.YNc(3,_i,3,1,"div",1),r.YNc(4,Ai,3,3,"app-alert",2),r.TgZ(5,"div",3),r.TgZ(6,"button",4),r.NdJ("click",function(){return e.onClear()}),r._uU(7),r.ALo(8,"translate"),r.qZA(),r.TgZ(9,"button",5),r.NdJ("click",function(){return e.onCancel()}),r._uU(10),r.ALo(11,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),r.xp6(2),r.Q6J("ngIf",0!==e.notifications.length),r.xp6(1),r.Q6J("ngIf",0===e.notifications.length),r.xp6(3),r.hij(" ",r.lcZ(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),r.xp6(3),r.hij(" ",r.lcZ(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},directives:[p.uh,w.O5,p.H8,A.lW,bi.N7,bi.xd,bi.x0,gi.c,k.w],pipes:[d.X$],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),t}(),Ti=i(41050),Ci=i(66438);function Si(t,e){1&t&&(r.TgZ(0,"div",11),r.TgZ(1,"span",12),r._uU(2," ~ \ud83d\uddf2\xa0 "),r.qZA(),r.TgZ(3,"span",13),r._uU(4," DEVEL "),r.qZA(),r.TgZ(5,"span",12),r._uU(6," \xa0\ud83d\uddf2 ~ "),r.qZA(),r.qZA())}var Ei=function(t){return{color:t}},xi=function(){return["/"]},Ri=function(t){return{padding:t}},Ii=function(){return{height:"56px"}},Oi=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c,l){v(this,t),this.storeService=e,this.authService=i,this.authzResolverService=n,this.dialog=r,this.notificator=o,this.translateService=a,this.store=s,this.sanitizer=u,this.notificationStorageService=c,this.utilsService=l,this.logoutEnabled=!0,this.navTextColor=this.store.get("theme","nav_text_color"),this.iconColor=this.store.get("theme","nav_icon_color"),this.logoPadding=this.storeService.get("logo_padding"),this.isDevel=!1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.isDevel=this.storeService.get("isDevel"),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.utilsService.getAppsConfig().subscribe(function(e){t.profileUrl=e.brands[0].newApps.profile?e.brands[0].newApps.profile:null})}},{key:"showNotificationHistory",value:function(){this.notificationStorageService.newNotificationsCount=0;var t=(0,c.kZ)();t.width="520px",this.dialog.open(ki,t)}},{key:"getNewNotificationsCount",value:function(){return this.notificationStorageService.newNotificationsCount}},{key:"reloadRoles",value:function(){var t=this;this.authzResolverService.loadAuthorizationComponents().subscribe(function(){return t.notificator.showSuccess(t.translateService.instant("NAV.RELOAD_ROLES_SUCCESS"))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(u.d6),r.Y36(u.e8),r.Y36(s.Ct),r.Y36(p.uw),r.Y36(u.V6),r.Y36(d.sK),r.Y36(u.d6),r.Y36(n.H7),r.Y36(u.SZ),r.Y36(s.FW))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-perun-nav-menu"]],inputs:{sideNav:"sideNav",principal:"principal"},decls:14,vars:34,consts:[["id","nav-menu-icons",3,"ngStyle"],["mat-icon-button","",1,"mr-2","mt-auto","mb-auto",3,"click"],[3,"ngStyle"],["queryParamsHandling","merge",3,"routerLink","ngStyle"],[1,"logo-container",3,"innerHTML","ngStyle"],["logoContainer",""],["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,"url","label","user","showReloadRoles","logoutEnabled","iconColor","textColor"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"button",1),r.NdJ("click",function(){return e.sideNav.toggle()}),r.TgZ(2,"mat-icon",2),r._uU(3," menu "),r.qZA(),r.qZA(),r.TgZ(4,"a",3),r._UZ(5,"div",4,5),r.qZA(),r.qZA(),r.YNc(7,Si,7,0,"div",6),r.TgZ(8,"div",7),r.TgZ(9,"button",8),r.NdJ("click",function(){return e.showNotificationHistory()}),r.ALo(10,"translate"),r.TgZ(11,"mat-icon",9),r._uU(12),r.qZA(),r.qZA(),r._UZ(13,"perun-web-apps-header-menu",10),r.qZA()),2&t&&(r.Q6J("ngStyle",r.VKq(22,Ei,e.navTextColor)),r.xp6(2),r.Q6J("ngStyle",r.VKq(24,Ei,e.iconColor)),r.xp6(2),r.Q6J("routerLink",r.DdM(26,xi))("ngStyle",r.VKq(27,Ri,e.logoPadding)),r.xp6(1),r.Q6J("innerHTML",e.logo,r.oJD)("ngStyle",r.DdM(29,Ii)),r.xp6(2),r.Q6J("ngIf",e.isDevel),r.xp6(1),r.Q6J("ngStyle",r.VKq(30,Ei,e.navTextColor)),r.xp6(1),r.Q6J("matTooltip",r.lcZ(10,20,"NAV.NOTIFICATIONS_TOOLTIP")),r.xp6(2),r.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),r.Q6J("ngStyle",r.VKq(32,Ei,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),r.xp6(1),r.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," "),r.xp6(1),r.Q6J("url",e.profileUrl)("label",e.profileLabel)("user",e.principal.user)("showReloadRoles",e.authzResolverService.isPerunAdmin())("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.navTextColor))},directives:[w.PC,A.lW,_.Hw,o.yS,w.O5,R.gM,Ti.k,Ci.X],pipes:[d.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%] [_ngcontent-%COMP%]::slotted(svg){height:56px}#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}"]}),t}(),Pi=i(24081),Di={provide:xt.TP,useExisting:(0,r.Gpc)(function(){return u.yC}),multi:!0};function Mi(t){return new Et(t,"./assets/i18n/",".json")}function Li(t){var e={basePath:t.get("api_url")};return new s.VK(e)}var Ni=function(t){return function(){return t.initialize()}},zi={suppressScrollX:!0},Fi=function(){var t=function t(e,i){v(this,t),this.customIconService=e,this.translate=i,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()};return t.\u0275fac=function(e){return new(e||t)(r.LFG(u.EB),r.LFG(d.sK))},t.\u0275mod=r.oAB({type:t,bootstrap:[Ct.y]}),t.\u0275inj=r.cJS({providers:[ee,{provide:r.ip1,useFactory:Ni,multi:!0,deps:[ee]},{provide:s.VK,useFactory:Li,deps:[u.d6]},{provide:o.wN,useClass:Jt},u.EB,{provide:Qt,useClass:u.sM},u.yC,Di,{provide:ai,useValue:zi}],imports:[[Rt.PW,n.b2,xt.JF,St.m,It,Tt,_.Ps,ie,d.aw.forRoot({loader:{provide:d.Zw,useFactory:Mi,deps:[xt.eN]}}),s.au,fi,ct.ez,lt]]}),t}();r.B6R(Ct.y,[w.O5,_.Hw,yi,Oi,w.PC,g.TM,g.JX,di,Pi.V,g.Rh,o.lC,dt.$,At],[]),(0,r.G48)(),n.q6().bootstrapModule(Fi).catch(function(t){return console.error(t)})},7423:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(61511),r=i(31572),o=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.ez]]}),t}()},13857:function(t,e,i){"use strict";i.d(e,{Rc:function(){return r},pI:function(){return o},Ng:function(){return a}});var n=i(31572),r="GUI_CONFIG.PREF_PAGE_SIZE",o="GUI_CONFIG.PREF_PAGE_SIZE.",a=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"getString",value:function(t){return localStorage.getItem(t)}},{key:"getNumber",value:function(t){return parseInt(localStorage.getItem(t),10)}},{key:"setNumber",value:function(t,e){localStorage.setItem(t,e.toString())}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},60611:function(t,e,i){"use strict";i.d(e,{dB:function(){return o},CP:function(){return a},tw:function(){return s},nT:function(){return u},YF:function(){return c},gc:function(){return l},v1:function(){return h},AA:function(){return d},VR:function(){return f},uM:function(){return p},xx:function(){return g},H2:function(){return m},xt:function(){return b},dI:function(){return w},j1:function(){return _},Wv:function(){return A},qy:function(){return k},BV:function(){return T},qV:function(){return C},tY:function(){return S},Af:function(){return E},O7:function(){return x},gB:function(){return R},Hi:function(){return I},Jf:function(){return O},W1:function(){return P},rF:function(){return D},Aj:function(){return M},Ad:function(){return L},kZ:function(){return N},cL:function(){return z},RS:function(){return F},HC:function(){return Z},KE:function(){return B},Sb:function(){return q},_7:function(){return U},bf:function(){return H},rc:function(){return j},Cf:function(){return G},eq:function(){return Y},NG:function(){return V},O9:function(){return K},d7:function(){return J},vq:function(){return Q},NL:function(){return W},kO:function(){return X},aL:function(){return $},DR:function(){return tt},uC:function(){return et},JO:function(){return it},oK:function(){return nt},Iz:function(){return rt},It:function(){return ot},z6:function(){return at},iQ:function(){return st},e5:function(){return ut},Bf:function(){return ct},zp:function(){return lt},US:function(){return ht},gG:function(){return dt},$V:function(){return ft},S7:function(){return pt},zW:function(){return gt},CE:function(){return vt},Is:function(){return mt},M8:function(){return yt},g:function(){return bt}});var n=i(13857),r=i(31572),o=function(){var t=function(){function t(e){v(this,t),this.guiConfigService=e}return y(t,[{key:"getTablePageSize",value:function(t){var e=this.guiConfigService.getNumber(n.pI+t);if(!isNaN(e))return e;var i=this.guiConfigService.getNumber(n.Rc);return isNaN(i)?10:i}},{key:"setTablePageSize",value:function(t,e){this.guiConfigService.setNumber(n.pI+t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.Ng))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),a="0",s="1",u="2",c="3",l="4",h="5",d="6",f="7",p="8",g="9",m="10",b="11",w="12",_="13",A="14",k="15",T="16",C="17",S="18",E="19",x="20",R="21",I="22",O="23",P="24",D="25",M="26",L="27",N="28",z="29",F="30",Z="31",B="32",q="33",U="34",H="35",j="36",G="37",Y="42",V="43",K="44",J="45",Q="46",W="47",X="48",$="49",tt="50",et="51",it="52",nt="53",rt="54",ot="55",at="56",st="57",ut="58",ct="59",lt="62",ht="63",dt="64",ft="65",pt="66",gt="69",vt="71",mt="72",yt="75",bt="76"},17:function(t,e,i){"use strict";i.d(e,{Ji:function(){return s},Pd:function(){return o},BQ:function(){return r},Ly:function(){return a},GH:function(){return l},Ls:function(){return h},SG:function(){return c},es:function(){return u}});var n=i(10709),r=(0,n.X$)("openClose",[(0,n.SB)("open",(0,n.oB)({overflow:"hidden"})),(0,n.SB)("closed",(0,n.oB)({height:"0px",overflow:"hidden"})),(0,n.eR)("open <=> closed",[(0,n.jt)(".3s ease-in")])]),o=(0,n.X$)("flyInOut",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)(".25s")]),(0,n.eR)(":leave",[(0,n.jt)(".5s",(0,n.oB)({transform:"translateX(100%)"}))])]),a=(0,n.X$)("rollInOut",[(0,n.eR)(":enter",[(0,n.oB)({height:"0px"}),(0,n.jt)(".25s")]),(0,n.eR)(":leave",[(0,n.jt)(".25s",(0,n.oB)({height:"0px"}))])]),s=(0,n.X$)("routeAnimations",[(0,n.eR)("* => *",[(0,n.oB)({position:"relative"}),(0,n.IO)(":enter",[(0,n.oB)({width:"100%",opacity:0})],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({position:"absolute",width:"100%",opacity:1}),(0,n.jt)("0.15s",(0,n.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,n.IO)(":enter",[(0,n.oB)({position:"absolute",width:"100%",opacity:0}),(0,n.jt)("0.15s",(0,n.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),u=(0,n.X$)("tagsOpenClose",[(0,n.SB)("open",(0,n.oB)({})),(0,n.SB)("closed",(0,n.oB)({width:"0px",height:"0px"})),(0,n.eR)("open <=> closed",[(0,n.jt)(".3s ease-in")])]),c=(0,n.X$)("switchAnimations",[(0,n.eR)("true => false",[(0,n.IO)(":enter, :leave",(0,n.oB)({})),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(-100%)"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)",position:"absolute"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,n.eR)("false => true",[(0,n.IO)(":enter, :leave",(0,n.oB)({})),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)",position:"absolute"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),l=(0,n.X$)("slideInOutLeft",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(-100%)",position:"relative"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(0%)"}))]),(0,n.eR)(":leave",[(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(-100%)"}))])]),h=(0,n.X$)("slideInOutRight",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(100%)",position:"fixed"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(0%)"}))]),(0,n.eR)(":leave",[(0,n.oB)({transform:"translateX(-100%)",position:"relative"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(100%)"}))])])},41939:function(t,e,i){"use strict";i.d(e,{Mw:function(){return B.M},Sx:function(){return it.S},Nj:function(){return tt},ez:function(){return Z},t$:function(){return et}});var n=i(61511),r=i(29236),o=i(67033),s=i(48160),c=i(57629),l=i(58623),h=i(73005),d=i(67806),f=i(22727),p=i(43691),g=i(8055),m=i(15980),b=i(36922),w=i(66283),_=i(16073),A=i(80340),k=i(10033),T=i(88975),C=i(71522),S=i(22280),E=i(81391),x=i(91010),R=i(15812),I=i(54810),O=i(4786),P=i(30146),D=i(4253),M=i(84608),L=i(27613),N=i(31572),z=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"format",value:function(t,e){return"input"===e?"".concat(t.getDate().toString(),".").concat((t.getMonth()+1).toString(),".").concat(t.getFullYear()):t.toDateString()}}]),i}(C.LF);return e.\u0275fac=function(i){return(t||(t=N.n5z(e)))(i||e)},e.\u0275prov=N.Yz7({token:e,factory:e.\u0275fac}),e}(),F={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"}}},Z=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=N.oAB({type:t}),t.\u0275inj=N.cJS({providers:[{provide:C._A,useClass:z},{provide:C.sG,useValue:F}],imports:[[n.ez,r.p9,o.p0,_.u5,k.Hi,T._t,s.aw,c.Bz,l.JX,h.TU,d.Cq,f.r,p.Ps,g.Tx,m.ot,b.AV,w.lN,_.UX,A.c,C.si,S.d4,E.Iq,x.dp,R.FA,I.Fk,C.Ng,O.LD,P.Co,D.Cl,M.Is,L.Je]]}),t}();i(41186);var B=i(51556),q=(i(76021),i(84584),i(22230),i(33596),i(88884),i(11418),i(23888),i(33642)),U=i(88426),H=i(39571),j=i(83787);function G(t,e){1&t&&(N.TgZ(0,"app-alert"),N._uU(1),N.ALo(2,"translate"),N.ALo(3,"customTranslate"),N.qZA()),2&t&&(N.xp6(1),N.Oqu(N.lcZ(2,1,N.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function Y(t,e){1&t&&(N.TgZ(0,"th",15),N._uU(1),N.ALo(2,"translate"),N.ALo(3,"customTranslate"),N.qZA()),2&t&&(N.xp6(1),N.Oqu(N.lcZ(2,1,N.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))))}function V(t,e){if(1&t&&(N.TgZ(0,"td",16),N._uU(1),N.qZA()),2&t){var i=e.$implicit;N.xp6(1),N.Oqu(i.friendlyNameParameter)}}function K(t,e){1&t&&(N.TgZ(0,"th",15),N._uU(1),N.ALo(2,"translate"),N.ALo(3,"customTranslate"),N.qZA()),2&t&&(N.xp6(1),N.Oqu(N.lcZ(2,1,N.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))))}function J(t,e){if(1&t&&(N.TgZ(0,"td",17),N._uU(1),N.qZA()),2&t){var i=e.$implicit;N.xp6(1),N.Oqu(i.value)}}function Q(t,e){1&t&&N._UZ(0,"th",15)}function W(t,e){if(1&t){var i=N.EpF();N.TgZ(0,"td",18),N.TgZ(1,"button",19),N.NdJ("click",function(){var t=N.CHM(i).$implicit;return N.oxw().changePassword(t.friendlyNameParameter)}),N._uU(2),N.ALo(3,"translate"),N.ALo(4,"customTranslate"),N.qZA(),N.qZA()}if(2&t){var n=e.$implicit,r=N.oxw();N.xp6(1),N.Q6J("disabled",!r.logins.includes(n)),N.xp6(1),N.Oqu(N.lcZ(3,2,N.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD")))}}function X(t,e){1&t&&N._UZ(0,"tr",20)}function $(t,e){1&t&&N._UZ(0,"tr",21)}var tt=function(){var t=function(){function t(e,i){v(this,t),this.attributesManagerService=e,this.store=i,this.nameSpaces=[],this.logins=[],this.displayedColumns=["namespace","value","change"]}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(function(e){var i=t.nameSpaces.map(function(t){var e=t.split(":");return e[e.length-1]});t.logins=e.filter(function(t){return i.includes(t.friendlyNameParameter)}),t.dataSource=new o.by(e)})}},{key:"changePassword",value:function(t){var e=this.store.get("pwd_reset_base_url");location.href="".concat(e,"?login-namespace=").concat(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(N.Y36(q.H8),N.Y36(U.d6))},t.\u0275cmp=N.Xpm({type:t,selectors:[["perun-web-apps-password-reset"]],decls:20,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","change"],["mat-cell","",4,"matCellDef"],["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"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(t,e){1&t&&(N.TgZ(0,"h1",0),N._uU(1),N.ALo(2,"translate"),N.ALo(3,"customTranslate"),N.qZA(),N.YNc(4,G,4,5,"app-alert",1),N.TgZ(5,"div",2),N.TgZ(6,"div",3),N.TgZ(7,"div",4),N.TgZ(8,"table",5),N.ynx(9,6),N.YNc(10,Y,4,5,"th",7),N.YNc(11,V,2,1,"td",8),N.BQk(),N.ynx(12,9),N.YNc(13,K,4,5,"th",7),N.YNc(14,J,2,1,"td",10),N.BQk(),N.ynx(15,11),N.YNc(16,Q,1,0,"th",7),N.YNc(17,W,5,6,"td",12),N.BQk(),N.YNc(18,X,1,0,"tr",13),N.YNc(19,$,1,0,"tr",14),N.qZA(),N.qZA(),N.qZA(),N.qZA()),2&t&&(N.xp6(1),N.Oqu(N.lcZ(2,5,N.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE"))),N.xp6(3),N.Q6J("ngIf",!e.logins.length),N.xp6(4),N.Q6J("dataSource",e.dataSource),N.xp6(10),N.Q6J("matHeaderRowDef",e.displayedColumns),N.xp6(1),N.Q6J("matRowDefColumns",e.displayedColumns))},directives:[n.O5,o.BZ,l.YE,o.w1,o.fO,o.Dz,o.as,o.nj,H.w,o.ge,o.ev,m.lW,o.XQ,o.Gk],pipes:[s.X$,j.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}"]}),t}(),et=function(){var t=function(){function t(e,i,n,r){v(this,t),this.router=e,this.route=i,this.location=n,this.forceRoute=r}return y(t,[{key:"ngOnInit",value:function(){var t=this;"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(function(e){t.router.navigate([e.redirectTo])}):this.location.back()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(N.Y36(c.F0),N.Y36(c.gz),N.Y36(n.Ye),N.Y36(U.xw))},t.\u0275cmp=N.Xpm({type:t,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t}();i(78364),i(11441),i(76198),i(43005);var it=i(30725);i(66438)},30725:function(t,e,i){"use strict";i.d(e,{S:function(){return a},Y:function(){return s}});var n=i(31572),r=(i(33642),i(48160)),o=i(44973),a={},s=function(){var t=function t(e){var i=this;v(this,t),this.translate=e,this.item=null,this.itemSelected=new n.vpe,this.nameFunction=function(t){return t===a?i.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):t.shortname},this.secondaryFunction=function(t){return t===a?"":t.id<0?i.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+t.id},this.searchFunction=function(t){return t===a?"":t.shortname+t.id}};return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.sK))},t.\u0275cmp=n.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(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.itemSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.items)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.secondaryFunction)("entity",e.item)("disableAutoSelect",!0)("selectPlaceholder",n.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",n.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[o.i],pipes:[r.X$],styles:[""]}),t}()},76021:function(t,e,i){"use strict";i.d(e,{u:function(){return h}});var n=i(31572),r=i(27613),o=i(61511),a=i(29236),s=i(16073),u=i(66283);function c(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",2),n.NdJ("change",function(){return n.CHM(i),n.oxw()._sendEventToParent()})("ngModelChange",function(t){return n.CHM(i),n.oxw().attribute.value=t}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("ngModel",r.attribute.value)}}function l(t,e){if(1&t&&(n.TgZ(0,"mat-label"),n._uU(1),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Oqu(i.attribute.value)}}var h=function(){var t=function(){function t(){v(this,t),this.readonly=!1,this.sendEventToParent=new n.vpe}return y(t,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=(0,r.Hm)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,c,1,1,"mat-checkbox",0),n.YNc(2,l,2,1,"mat-label",1),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",!e.readonly),n.xp6(1),n.Q6J("ngIf",e.readonly))},directives:[o.O5,a.oG,s.JJ,s.On,u.hX],styles:[""]}),t}()},84584:function(t,e,i){"use strict";i.d(e,{H:function(){return S}});var n=i(31572),r=i(75842),o=i(88975),a=i(81954),s=i(27613),u=i(84608),c=i(10033),l=i(61511),h=i(43691),d=i(36922),f=i(15980),p=i(66283),g=i(80340);function m(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",9),n.NdJ("mousedown",function(){return n.CHM(i),n.oxw(2).dragDisabled=!1}),n._uU(1,"drag_indicator"),n.qZA()}}function b(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",10),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw().edit(t)}),n._uU(1,"edit"),n.qZA()}}function w(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",11),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw().remove(t)}),n._uU(1,"cancel"),n.qZA()}}function _(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-chip",4),n.NdJ("removed",function(){var t=n.CHM(i).$implicit,e=n.oxw();return e.remove(t),e._sendEventToParent()}),n.YNc(1,m,2,0,"mat-icon",5),n.TgZ(2,"div",6),n.NdJ("click",function(){var t=n.CHM(i).$implicit,e=n.oxw();return e.readonly&&void 0!==e.attribute.displayName&&e.showValue(t,e.attribute.displayName)}),n._uU(3),n.qZA(),n.YNc(4,b,2,0,"mat-icon",7),n.YNc(5,w,2,0,"mat-icon",8),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.Q6J("selectable",o.selectable)("cdkDragData",r)("removable",o.removable),n.xp6(1),n.Q6J("ngIf",o.removable),n.xp6(1),n.ekj("cursor-pointer",o.readonly&&void 0!==o.attribute.displayName),n.xp6(1),n.Oqu(r),n.xp6(1),n.Q6J("ngIf",o.removable),n.xp6(1),n.Q6J("ngIf",o.removable)}}function A(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function k(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function T(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"div",12),n.TgZ(1,"span",13),n.TgZ(2,"button",14),n.NdJ("click",function(){return n.CHM(i),n.oxw().onShowChange()}),n.YNc(3,A,2,0,"mat-icon",15),n.YNc(4,k,2,0,"mat-icon",15),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("matTooltip",r.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.xp6(2),n.Q6J("ngIf",!r.showMore),n.xp6(1),n.Q6J("ngIf",r.showMore)}}function C(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-form-field",12),n.TgZ(1,"input",16),n.NdJ("matChipInputTokenEnd",function(t){return n.CHM(i),n.oxw().add(t)})("change",function(){return n.CHM(i),n.oxw()._sendEventToParent()}),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(),o=n.MAs(2);n.xp6(1),n.Q6J("matChipInputFor",o)("matChipInputSeparatorKeyCodes",r.separatorKeysCodes)("matChipInputAddOnBlur",r.addOnBlur)}}var S=function(){var t=function(){function t(e){v(this,t),this.dialog=e,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[r.K5,r.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new n.vpe,this.readonly=!1}return y(t,[{key:"ngOnInit",value:function(){this.removable=!(0,s.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,s.Hm)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"add",value:function(t){var e=t.input,i=t.value;(i||"").trim()&&(this.attribute.value.push(i.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),e&&(e.value=""),this.sendEventToParent.emit()}},{key:"remove",value:function(t){var e=this,i=(0,s.kZ)();i.width="400px",i.data={name:t},this.dialog.open(a.Wr,i).afterClosed().subscribe(function(i){if(i){var n=e.attribute.value.indexOf(t);e.attribute.value.splice(n,1),e.values=Object.values(e.attribute.value),e.sendEventToParent.emit()}})}},{key:"drop",value:function(t){this.dragDisabled=!0,(0,o.bA)(this.attribute.value,t.previousIndex,t.currentIndex),this.values=Object.values(this.attribute.value)}},{key:"edit",value:function(t){var e=this,i=this.attribute.value.indexOf(t),n=(0,s.kZ)();n.width="600px",n.data={attribute:this.attribute,index:i},this.dialog.open(a.r2,n).afterClosed().subscribe(function(t){t&&(e.values=Object.values(e.attribute.value),e.sendEventToParent.emit())})}},{key:"showValue",value:function(t,e){var i=(0,s.kZ)();i.width="350px",i.data={value:t,title:e},this.dialog.open(a.mk,i)}},{key:"setItemsShown",value:function(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}},{key:"onShowChange",value:function(){this.showMore=!this.showMore,this.setItemsShown()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.uw))},t.\u0275cmp=n.Xpm({type:t,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",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-chip-list",0,1),n.NdJ("cdkDropListDropped",function(t){return e.drop(t),e._sendEventToParent()}),n.YNc(3,_,6,9,"mat-chip",2),n.YNc(4,T,5,4,"div",3),n.YNc(5,C,2,3,"mat-form-field",3),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.Q6J("cdkDropListDisabled",e.dragDisabled),n.xp6(2),n.Q6J("ngForOf",e.values.slice(0,e.itemsShown)),n.xp6(1),n.Q6J("ngIf",e.values.length>e.defaultItemsShown),n.xp6(1),n.Q6J("ngIf",!e.readonly))},directives:[c.qn,o.Wj,l.sg,l.O5,c.HS,o.Zt,h.Hw,d.gM,f.lW,p.KE,g.Nt,c.oH],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t}()},22230:function(t,e,i){"use strict";i.d(e,{$:function(){return k}});var n=i(81954),r=i(27613),a=i(31572),s=i(84608),u=i(16073),c=i(61511),l=i(36922),h=i(66283),d=i(80340),f=i(15980),p=i(43691);function g(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"button",15),a.NdJ("click",function(){a.CHM(i);var t=a.oxw().index;return a.oxw().removeValue(t)}),a.TgZ(1,"mat-icon"),a._uU(2," indeterminate_check_box "),a.qZA(),a.qZA()}}function m(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",9),a.TgZ(1,"mat-form-field",10),a._UZ(2,"label",11),a.TgZ(3,"input",12),a.NdJ("click",function(){var t=a.CHM(i).index,e=a.oxw();return e.readonly&&e.attribute.displayName&&e.showValue(e.keys[t],e.attribute.displayName)})("ngModelChange",function(t){var e=a.CHM(i).index;return a.oxw().keys[e]=t}),a.qZA(),a.qZA(),a.TgZ(4,"mat-form-field",10),a._UZ(5,"label",11),a.TgZ(6,"input",13),a.NdJ("click",function(){var t=a.CHM(i).$implicit,e=a.oxw();return e.readonly&&void 0!==e.attribute.displayName&&e.showValue(t,e.attribute.displayName)})("ngModelChange",function(t){var e=a.CHM(i).index;return a.oxw().values[e]=t}),a.qZA(),a.qZA(),a.YNc(7,g,3,0,"button",14),a.qZA()}if(2&t){var n=e.index,r=a.oxw();a.xp6(1),a.s9C("appearance",r.readonly?"none":"standard"),a.xp6(1),a.hYB("for","",r.attribute.id,"-key-",n,""),a.xp6(1),a.ekj("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),a.hYB("id","",r.attribute.id,"-key-",n,""),a.MGl("name","key-",n,""),a.Q6J("ngModel",r.keys[n])("readonly",r.readonly),a.xp6(1),a.s9C("appearance",r.readonly?"none":"standard"),a.xp6(1),a.hYB("for","",r.attribute.id,"-value-",n,""),a.xp6(1),a.ekj("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),a.MGl("name","value-",n,""),a.hYB("id","",r.attribute.id,"-value-",n,""),a.Q6J("readonly",r.readonly)("ngModel",r.values[n]),a.xp6(1),a.Q6J("ngIf",!r.readonly)}}function b(t,e){1&t&&(a.TgZ(0,"mat-icon"),a._uU(1,"more_horiz"),a.qZA())}function w(t,e){1&t&&(a.TgZ(0,"mat-icon"),a._uU(1,"keyboard_arrow_up"),a.qZA())}function _(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"button",16),a.NdJ("click",function(){return a.CHM(i),a.oxw().onShowChange()}),a.YNc(1,b,2,0,"mat-icon",17),a.YNc(2,w,2,0,"mat-icon",17),a.qZA()}if(2&t){var n=a.oxw();a.xp6(1),a.Q6J("ngIf",!n.showMore),a.xp6(1),a.Q6J("ngIf",n.showMore)}}function A(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"button",18),a.NdJ("click",function(){return a.CHM(i),a.oxw().addValue()}),a.TgZ(1,"mat-icon"),a._uU(2," add_box "),a.qZA(),a.qZA()}}var k=function(){var t=function(){function t(e){v(this,t),this.dialog=e,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}return y(t,[{key:"ngOnInit",value:function(){if(void 0!==this.attribute.value)for(var t=this.attribute.value,e=0,i=Object.entries(t);ethis.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}},{key:"removeValue",value:function(t){this.keys.splice(t,1),this.values.splice(t,1)}},{key:"updateAttribute",value:function(){for(var t={},e=0;ee.defaultItemsShown),a.xp6(1),a.Q6J("ngIf",!e.readonly))},directives:[u._Y,u.JL,u.F,c.sg,l.gM,c.O5,h.KE,d.Nt,u.Fj,u.Q7,u.JJ,u.On,f.lW,p.Hw],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}"]}),t}()},33596:function(t,e,i){"use strict";i.d(e,{_:function(){return l}});var n=i(31572),r=i(27613),o=i(81954),a=i(84608),s=i(66283),u=i(80340),c=i(16073),l=function(){var t=function(){function t(e){v(this,t),this.dialog=e,this.readonly=!1,this.sendEventToParent=new n.vpe}return y(t,[{key:"ngOnInit",value:function(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,r.Hm)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(t,e){var i=(0,r.kZ)();i.width="350px",i.data={value:t,title:e},this.dialog.open(o.mk,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.uw))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"input",1),n.NdJ("click",function(){return e.readonly&&void 0!==e.value&&e.showValue(e.value,e.attribute.displayName)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),n.qZA(),n.qZA()),2&t&&(n.s9C("appearance",e.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",e.readonly&&void 0!==e.value),n.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[s.KE,u.Nt,c.Fj,c.JJ,c.On],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t}()},51556:function(t,e,i){"use strict";i.d(e,{M:function(){return T}});var n=i(31572),r=i(22230),o=i(61511),a=i(76021),s=i(84584),u=i(33596),c=i(27613),l=i(81954),h=i(84608),d=i(66283),f=i(80340),p=i(16073),g=function(){var t=function(){function t(e){v(this,t),this.dialog=e,this.readonly=!1,this.sendEventToParent=new n.vpe}return y(t,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=(0,c.Hm)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(t){var e=(0,c.kZ)();e.width="350px",e.data={value:t.value,title:t.displayName},this.dialog.open(l.mk,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(h.uw))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"input",1),n.NdJ("click",function(){return e.readonly&&void 0!==e.attribute.value&&e.showValue(e.attribute)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),n.qZA(),n.qZA()),2&t&&(n.s9C("appearance",e.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",e.readonly&&void 0!==e.attribute.value),n.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[d.KE,f.Nt,p.wV,p.Fj,p.JJ,p.On],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),m=["map"];function b(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-boolean",3),n.NdJ("sendEventToParent",function(){return n.CHM(i),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("attribute",r.attribute)("readonly",r.readonly)}}function w(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-list",3),n.NdJ("sendEventToParent",function(){return n.CHM(i),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("attribute",r.attribute)("readonly",r.readonly)}}function _(t,e){if(1&t&&n._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&t){var i=n.oxw();n.Q6J("attribute",i.attribute)("readonly",i.readonly)}}function A(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-string",3),n.NdJ("sendEventToParent",function(){return n.CHM(i),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("attribute",r.attribute)("readonly",r.readonly)}}function k(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-integer",3),n.NdJ("sendEventToParent",function(){return n.CHM(i),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("attribute",r.attribute)("readonly",r.readonly)}}var T=function(){var t=function(){function t(){v(this,t),this.readonly=!1,this.sendEventToParent2=new n.vpe}return y(t,[{key:"updateMapAttribute",value:function(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}},{key:"_sendEventToParent2",value:function(){this.sendEventToParent2.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(m,5),2&t)&&(n.iGM(i=n.CRH())&&(e.mapComponent=i.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(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,b,1,2,"perun-web-apps-attribute-value-boolean",0),n.YNc(2,w,1,2,"perun-web-apps-attribute-value-list",0),n.TgZ(3,"div",1),n.NdJ("click",function(){return e._sendEventToParent2()}),n.YNc(4,_,2,2,"perun-web-apps-attribute-value-map",2),n.qZA(),n.YNc(5,A,1,2,"perun-web-apps-attribute-value-string",0),n.YNc(6,k,1,2,"perun-web-apps-attribute-value-integer",0),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf","java.lang.Boolean"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.util.ArrayList"===e.attribute.type),n.xp6(2),n.Q6J("ngIf","java.util.LinkedHashMap"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.String"===e.attribute.type||"java.lang.LargeString"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.Integer"===e.attribute.type))},directives:[o.O5,a.u,s.H,r.$,u._,g],styles:[""]}),t}()},41186:function(t,e,i){"use strict";i.d(e,{p:function(){return M}});var n=i(31572),r=i(58623),o=i(67033),a=i(4230),s=i(51556),u=i(27613),c=i(88426),l=i(82819),h=i(61511),d=i(29236),p=i(36922),g=i(39571),m=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return"virt"===t.namespace.split(":")[4]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"isVirtualAttribute",type:t,pure:!0}),t}(),b=i(48160);function w(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"th",15),n.TgZ(1,"mat-checkbox",16),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw();return t?e.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())("aria-label",r.checkboxLabel())}}function _(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",17),n.TgZ(1,"mat-checkbox",18),n.NdJ("click",function(t){return t.stopPropagation()})("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.selection.toggle(e):null}),n.ALo(2,"isVirtualAttribute"),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("checked",o.selection.isSelected(r))("disabled",n.lcZ(2,3,r)||!r.writable)("aria-label",o.checkboxLabel(r))}}function A(t,e){1&t&&(n.TgZ(0,"th",19),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")))}function k(t,e){if(1&t&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function T(t,e){1&t&&(n.TgZ(0,"th",19),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")))}function C(t,e){if(1&t&&(n.TgZ(0,"td",20),n.TgZ(1,"div",21),n._uU(2),n.qZA(),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.s9C("matTooltip",r.getAttributeFullName(i)),n.xp6(1),n.hij(" ",i.displayName," ")}}function S(t,e){1&t&&(n.TgZ(0,"th",15),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")))}function E(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",20),n.TgZ(1,"perun-web-apps-attribute-value",22),n.NdJ("sendEventToParent2",function(){var t=n.CHM(i).$implicit;return n.oxw().onValueChange(t)}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("attribute",r)("readonly",o.readonly||!r.writable)}}function x(t,e){1&t&&(n.TgZ(0,"th",19),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")))}function R(t,e){if(1&t&&(n.TgZ(0,"td",20),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.description)}}function I(t,e){1&t&&n._UZ(0,"tr",23)}function O(t,e){if(1&t&&(n._UZ(0,"tr",24),n.ALo(1,"translate")),2&t){var i=e.$implicit,r=n.oxw();n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),n.Q6J("matTooltipPosition","before")("matTooltipDisabled",i.writable||r.readonly)}}function P(t,e){1&t&&(n.TgZ(0,"app-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function D(t,e){1&t&&(n.TgZ(0,"app-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY"),"\n"))}var M=function(){var t=function(){function t(e,i){v(this,t),this.authResolver=e,this.tableCheckbox=i,this.attributes=[],this.selection=new a.Ov(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.pageSize=10,this.page=new n.vpe,this.readonly=!1,this.hiddenColumns=[],this.pageSizeOptions=u.f7}return y(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new o.by((0,u.MX)(this.attributes)),this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"displayName":return t.displayName;case"description":return t.description;case"value":return JSON.stringify(t.value);default:return""}}},{key:"exportData",value:function(t){(0,u.O6)((0,u.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.displayedColumns=this.displayedColumns.filter(function(e){return!t.hiddenColumns.includes(e)}),this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return(0,u.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,u.pR)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"updateMapAttributes",value:function(){var t,e=f(this.items.toArray());try{for(e.s();!(t=e.n()).done;){var i=t.value;"java.util.LinkedHashMap"===i.attribute.type&&i.updateMapAttribute()}}catch(n){e.e(n)}finally{e.f()}}},{key:"onValueChange",value:function(t){this.canBeSelected(t)&&this.selection.select(t)}},{key:"canBeSelected",value:function(t){return!(0,u.Hm)(t)&&t.writable}},{key:"getAttributeFullName",value:function(t){return"".concat(t.namespace,":").concat(t.friendlyName)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.x4),n.Y36(c.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(u.l9,7),n.Gf(s.M,5)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first),n.iGM(i=n.CRH())&&(e.items=i))},inputs:{attributes:"attributes",selection:"selection",inDialog:"inDialog",filterValue:"filterValue",pageSize:"pageSize",readonly:"readonly",hiddenColumns:"hiddenColumns"},outputs:{page:"page"},features:[n.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["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",""],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,w,2,3,"th",4),n.YNc(5,_,3,5,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,A,3,3,"th",7),n.YNc(8,k,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,T,3,3,"th",7),n.YNc(11,C,3,2,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,S,3,3,"th",4),n.YNc(14,E,2,2,"td",9),n.BQk(),n.ynx(15,11),n.YNc(16,x,3,3,"th",7),n.YNc(17,R,2,1,"td",9),n.BQk(),n.YNc(18,I,1,0,"tr",12),n.YNc(19,O,2,5,"tr",13),n.qZA(),n.qZA(),n.qZA(),n.YNc(20,P,3,3,"app-alert",14),n.YNc(21,D,3,3,"app-alert",14)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(16),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.dataSource.data.length),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.data.length))},directives:[l.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,d.oG,o.ev,r.nU,p.gM,s.M,o.XQ,o.Gk,g.w],pipes:[m,b.X$],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),t}()},66297:function(t,e,i){"use strict";i.d(e,{W:function(){return h}});var n=i(88426),r=i(31572),o=i(61511),a=i(15980),s=i(36922),u=i(43691),c=i(48160),l=function(t){return{color:t}},h=function(){var t=function(){function t(e,i){v(this,t),this.location=e,this.storeService=i}return y(t,[{key:"ngOnInit",value:function(){this.backButtonColor=this.storeService.get("theme","backButtonColor")}},{key:"goBack",value:function(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(o.Ye),r.Y36(n.d6))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"button",0),r.NdJ("click",function(){return e.goBack()}),r.ALo(1,"translate"),r.TgZ(2,"mat-icon",1),r._uU(3,"arrow_right_alt"),r.qZA(),r.qZA()),2&t&&(r.s9C("matTooltip",r.lcZ(1,2,"Back")),r.Q6J("ngStyle",r.VKq(4,l,e.backButtonColor)))},directives:[a.lW,o.PC,s.gM,u.Hw],pipes:[c.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),t}()},43005:function(t,e,i){"use strict";i.d(e,{r:function(){return p}});var n=i(31572),r=i(16073),o=i(88426),a=i(66283),s=i(80340),u=i(61511),c=i(29236),l=i(37665),h=i(48160);function d(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",7),n.NdJ("change",function(){return n.CHM(i),n.oxw().emitAsSubGroup()})("ngModelChange",function(t){return n.CHM(i),n.oxw().asSubgroup=t}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("labelPosition","before")("ngModel",r.asSubgroup),n.xp6(1),n.hij(" ",n.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function f(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-group-search-select",8),n.NdJ("groupSelected",function(t){return n.CHM(i),n.oxw().emitParentGroup(t)}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("disableAutoSelect",!0)("groups",r.voGroups)}}var p=function(){var t=function(){function t(e){v(this,t),this.store=e,this.parentGroup=null,this.voGroups=[],this.asSubgroup=!1,this.invalidNameMessage=this.store.get("groupNameErrorMessage"),this.secondaryRegex=this.store.get("groupNameSecondaryRegex"),this.nameChanged=new n.vpe,this.descriptionChanged=new n.vpe,this.parentGroupChanged=new n.vpe,this.asSubgroupChanged=new n.vpe}return y(t,[{key:"ngOnInit",value:function(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new r.NI("",[r.kI.required,r.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),r.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new r.NI("",[r.kI.required,r.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(function(t){return"members"!==t.name})}},{key:"emitName",value:function(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}},{key:"emitDescription",value:function(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}},{key:"emitParentGroup",value:function(t){this.selectedParent=t,this.parentGroupChanged.emit(t)}},{key:"emitAsSubGroup",value:function(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.d6))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"mat-form-field",1),n.NdJ("keyup",function(){return e.emitName()}),n.TgZ(2,"label",2),n._UZ(3,"input",3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"mat-error"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.qZA(),n.TgZ(8,"mat-form-field",4),n.NdJ("keyup",function(){return e.emitDescription()}),n.TgZ(9,"label",2),n._UZ(10,"textarea",3),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"mat-error"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.qZA(),n.YNc(15,d,3,5,"mat-checkbox",5),n.YNc(16,f,1,2,"perun-web-apps-group-search-select",6),n.qZA()),2&t&&(n.xp6(3),n.s9C("placeholder",n.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),n.Q6J("formControl",e.nameControl),n.xp6(3),n.hij(" ",e.invalidNameMessage.length?e.invalidNameMessage:n.lcZ(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),n.xp6(4),n.s9C("placeholder",n.lcZ(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),n.Q6J("formControl",e.descriptionControl),n.xp6(3),n.hij(" ",n.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),n.xp6(2),n.Q6J("ngIf",e.isNotSubGroup),n.xp6(1),n.Q6J("ngIf",e.asSubgroup))},directives:[a.KE,s.Nt,r.Fj,r.Q7,r.JJ,r.oH,a.TO,u.O5,c.oG,r.On,l.h],pipes:[h.X$],styles:[""]}),t}()},51613:function(t,e,i){"use strict";i.d(e,{S:function(){return c}});var n=i(31572),r=i(66283),o=i(80340),a=i(15812),s=i(16073),u=i(48160),c=function(){var t=function(){function t(){v(this,t),this.datePicker=new n.vpe}return y(t,[{key:"ngOnInit",value:function(){this.startMinDate=new Date(2e3,0,1),this.endMaxDate=new Date,this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}},{key:"dateChange",value:function(){this.datePicker.emit(),this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},outputs:{datePicker:"datePicker"},decls:16,vars:16,consts:[["appearance","standard",1,"space-right",3,"click"],["matInput","","readonly","",3,"matDatepicker","min","max","formControl","dateChange"],["matSuffix","",3,"for"],["datePickerStart",""],["appearance","standard",3,"click"],["datePickerEnd",""]],template:function(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-form-field",0),n.NdJ("click",function(){return n.CHM(i),n.MAs(7).open()}),n.TgZ(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"input",1),n.NdJ("dateChange",function(){return e.dateChange()}),n.qZA(),n._UZ(5,"mat-datepicker-toggle",2),n._UZ(6,"mat-datepicker",null,3),n.qZA(),n.TgZ(8,"mat-form-field",4),n.NdJ("click",function(){return n.CHM(i),n.MAs(15).open()}),n.TgZ(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"input",1),n.NdJ("dateChange",function(){return e.dateChange()}),n.qZA(),n._UZ(13,"mat-datepicker-toggle",2),n._UZ(14,"mat-datepicker",null,5),n.qZA()}if(2&t){var r=n.MAs(7),o=n.MAs(15);n.xp6(2),n.Oqu(n.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),n.xp6(2),n.Q6J("matDatepicker",r)("min",e.startMinDate)("max",e.startMaxDate)("formControl",e.startDate),n.xp6(1),n.Q6J("for",r),n.xp6(5),n.Oqu(n.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),n.xp6(2),n.Q6J("matDatepicker",o)("min",e.endMinDate)("max",e.endMaxDate)("formControl",e.endDate),n.xp6(1),n.Q6J("for",o)}},directives:[r.KE,r.hX,o.Nt,a.hl,s.Fj,s.JJ,s.oH,a.nW,r.R9,a.Mq],pipes:[u.X$],styles:[""]}),t}()},91058:function(t,e,i){"use strict";i.d(e,{P:function(){return d}});var n=i(31572),r=i(87254),o=i(79996),a=i(47701),s=i(98720),u=i(66283),c=i(80340),l=i(48160),h=["groupFilterInput"],d=function(){var t=function(){function t(){v(this,t),this.filter=new n.vpe}return y(t,[{key:"ngOnInit",value:function(){var t=this;(0,r.R)(this.groupFilterInput.nativeElement,"keyup").pipe((0,o.U)(function(t){return t.target.value}),(0,a.b)(500),(0,s.x)()).subscribe(function(e){t.filter.emit(e)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(h,7),2&t)&&(n.iGM(i=n.CRH())&&(e.groupFilterInput=i.first))},inputs:{placeholder:"placeholder"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-3"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n._UZ(1,"input",1,2),n.ALo(3,"translate"),n.qZA()),2&t&&(n.xp6(1),n.s9C("placeholder",n.lcZ(3,1,e.placeholder)))},directives:[u.KE,c.Nt],pipes:[l.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t}()},44973:function(t,e,i){"use strict";i.d(e,{i:function(){return w}});var n=i(31572),r=i(16073),o=i(66994),a=i(55959),s=i(25416),u=i(96577),c=i(66283),l=i(4786),h=i(71522),d=i(30146),f=i(61511),p=i(4253),g=["scrollViewport"];function m(t,e){if(1&t&&(n.TgZ(0,"mat-option",7),n._uU(1),n.TgZ(2,"span",8),n._uU(3),n.qZA(),n.qZA()),2&t){var i=n.oxw();n.Q6J("value",null==i.entitiesCtrl?null:i.entitiesCtrl.value),n.xp6(1),n.hij(" ",i.mainTextFunction(null==i.entitiesCtrl?null:i.entitiesCtrl.value)," "),n.xp6(2),n.Oqu(i.secondaryTextFunction(null==i.entitiesCtrl?null:i.entitiesCtrl.value))}}function b(t,e){if(1&t&&(n.TgZ(0,"mat-option",9),n._uU(1),n.TgZ(2,"span",8),n._uU(3),n.qZA(),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.Q6J("value",i),n.xp6(1),n.hij(" ",r.mainTextFunction(i)," "),n.xp6(2),n.Oqu(r.secondaryTextFunction(i))}}var w=function(){var t=function(){function t(e){v(this,t),this.cd=e,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.entitySelected=new n.vpe,this.entitiesCtrl=new r.NI,this.entityFilterCtrl=new r.NI,this.filteredEntities=new o.t(1),this.entitiesLen=0,this._onDestroy=new a.xQ,this.mainTextFunction=function(t){return(0,u.stringify)(t)},this.secondaryTextFunction=function(t){return"#"+t.id}}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.entitiesCtrl.valueChanges.subscribe(function(e){return t.entitySelected.emit(e)}),this.disableAutoSelect||null!==this.entity||this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(function(e){return t.entitiesLen=e.length}),this.entityFilterCtrl.valueChanges.pipe((0,s.R)(this._onDestroy)).subscribe(function(){t.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}},{key:"ngOnChanges",value:function(t){t.entities&&this.filteredEntities.next(this.entities.slice())}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"filterEntites",value:function(){var t=this;if(this.entities){var e=this.entityFilterCtrl.value;if(!e)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();e=this.normalize(e),this.filteredEntities.next(this.entities.filter(function(i){return t.normalize(t.searchFunction(i)).indexOf(e)>=0})),this.cd.detectChanges()}}},{key:"normalize",value:function(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}},{key:"openChange",value:function(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}},{key:"getViewportHeight",value:function(){var t=48*this.entitiesLen;return t>192&&(t=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(g,5),2&t)&&(n.iGM(i=n.CRH())&&(e.scrollViewport=i.first))},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected"},features:[n.TTD],decls:9,vars:14,consts:[[1,"w-100"],[3,"placeholder","formControl","openedChange"],[3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"value",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"selected-options-bottom",3,"value"],[1,"text-muted","muted"],[3,"value"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"mat-select",1),n.NdJ("openedChange",function(){return e.openChange()}),n.TgZ(2,"mat-option"),n._UZ(3,"ngx-mat-select-search",2),n.qZA(),n.YNc(4,m,4,3,"mat-option",3),n.TgZ(5,"cdk-virtual-scroll-viewport",4,5),n.YNc(7,b,4,3,"mat-option",6),n.ALo(8,"async"),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.s9C("placeholder",e.selectPlaceholder),n.Q6J("formControl",e.entitiesCtrl),n.xp6(2),n.s9C("placeholderLabel",e.findPlaceholder),n.s9C("noEntriesFoundLabel",e.noEntriesText),n.Q6J("clearSearchInput",!1)("formControl",e.entityFilterCtrl),n.xp6(1),n.Q6J("ngIf",null==e.entitiesCtrl?null:e.entitiesCtrl.value),n.xp6(1),n.Udp("height",e.getViewportHeight(),"px"),n.Q6J("minBufferPx",240)("maxBufferPx",480),n.xp6(2),n.Q6J("cdkVirtualForOf",n.lcZ(8,12,e.filteredEntities)))},directives:[c.KE,l.gD,r.JJ,r.oH,h.ey,d.nu,f.O5,p.N7,p.xd,p.x0],pipes:[f.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}"]}),t}()},60007:function(t,e,i){"use strict";i.d(e,{X:function(){return W}});var n=i(31572),r=i(58623),o=i(67033),a=i(27613),s=i(88426),u=i(82819),c=i(61511),l=i(29236),h=i(72953),d=i(16073),f=i(36922),p=i(15980),g=i(43691);function m(t,e){if(1&t&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.hij(" ",i[r.paramName]," ")}}function b(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function w(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function _(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){return n.CHM(i),n.oxw().onShowChange()}),n.YNc(1,b,2,0,"mat-icon",8),n.YNc(2,w,2,0,"mat-icon",8),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("ngIf",!r.showMore),n.xp6(1),n.Q6J("ngIf",r.showMore)}}var A=function(){var t=function(){function t(){v(this,t),this.objects=[],this.filterValue="",this.paramName="",this.showMore=!1,this.defaultItemsShown=3}return y(t,[{key:"ngOnInit",value:function(){this.itemsShown=this.defaultItemsShown}},{key:"ngOnChanges",value:function(){this.itemsShown=this.defaultItemsShown,this.showMore=!1}},{key:"onShowChange",value:function(){this.showMore=!this.showMore,this.itemsShown=this.showMore?this.objects.length:this.defaultItemsShown}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[n.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(t,e){1&t&&(n.TgZ(0,"form",0),n.TgZ(1,"div",1),n.TgZ(2,"div",2),n.YNc(3,m,2,1,"div",3),n.qZA(),n.TgZ(4,"div"),n.TgZ(5,"span",4),n.YNc(6,_,3,2,"button",5),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.xp6(3),n.Q6J("ngForOf",e.objects.slice(0,e.itemsShown)),n.xp6(2),n.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.xp6(1),n.Q6J("ngIf",e.objects.length>e.defaultItemsShown))},directives:[d._Y,d.JL,d.F,c.sg,f.gM,c.O5,p.lW,g.Hw],styles:[""]}),t}(),k=i(84534),T=i(57629),C=i(39571),S=i(48160),E=i(48853),x=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t,e,i){return t.filter(function(t){return t[i].includes(e)}).filter(function(t,e,n){return n.findIndex(function(e){return e[i]===t[i]})===e})}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"filterUniqueObjects",type:t,pure:!0}),t}();function R(t,e){1&t&&n._UZ(0,"th",18)}function I(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",19),n.TgZ(1,"mat-checkbox",20),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))}}function O(t,e){1&t&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")))}function P(t,e){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.facility.id)}}function D(t,e){1&t&&n._UZ(0,"th",18)}function M(t,e){if(1&t&&(n.TgZ(0,"td",22),n._UZ(1,"perun-web-apps-recently-viewed-icon",23),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Q6J("id",i.facility.id)("recentIds",r.recentIds)}}function L(t,e){1&t&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")))}function N(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.facility.name)}}function z(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")))}function F(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.facility.description)}}function Z(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")))}function B(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.ALo(2,"technicalOwners"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i.owners))}}function q(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")))}function U(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",22),n.TgZ(1,"perun-web-apps-object-list-values",24),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw().disableRouting=!0})("mouseleave",function(){return n.CHM(i),n.oxw().disableRouting=!1}),n.ALo(2,"filterUniqueObjects"),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("objects",n.Dn7(2,2,r.destinations,o.filterValue,"destination"))("paramName","destination")}}function H(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")))}function j(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",22),n.TgZ(1,"perun-web-apps-object-list-values",24),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw().disableRouting=!0})("mouseleave",function(){return n.CHM(i),n.oxw().disableRouting=!1}),n.ALo(2,"filterUniqueObjects"),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("objects",n.Dn7(2,2,r.hosts,o.filterValue,"hostname"))("paramName","hostname")}}function G(t,e){1&t&&n._UZ(0,"tr",25)}var Y=function(t){return["/facilities",t]},V=function(){return[]};function K(t,e){if(1&t&&n._UZ(0,"tr",26),2&t){var i=e.$implicit,r=n.oxw();n.Q6J("perunWebAppsMiddleClickRouterLink",n.VKq(2,Y,i.facility.id))("routerLink",r.disableRouting?n.DdM(4,V):n.VKq(5,Y,i.facility.id))}}function J(t,e){1&t&&(n.TgZ(0,"app-alert",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Q(t,e){1&t&&(n.TgZ(0,"app-alert",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}var W=function(){var t=function(){function t(e){v(this,t),this.authResolver=e,this.pageSize=10,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=a.f7,this.page=new n.vpe}return y(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.facility.id.toString();case"name":return t.facility.name;case"description":return t.facility.description;case"technicalOwners":return(0,a.te)(t.owners);case"recent":return i.recentIds&&i.recentIds.indexOf(t.facility.id)>-1?"#".repeat(i.recentIds.indexOf(t.facility.id)):t.name;case"destinations":return t.destinations.map(function(t){return t.destination}).join(" ; ");case"hosts":return t.hosts.map(function(t){return t.hostname}).join(" ; ");default:return t[e]}}},{key:"exportData",value:function(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;null!=this.child&&this.child.paginator&&(this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,a.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,a.pR)(e,i,t.getDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.facilities)}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.dataSource.data.length}},{key:"masterToggle",value:function(){var t=this;this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(function(e){return t.selection.select(e)})}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.facility.id+1):(this.isAllSelected()?"select":"deselect")+" all"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(a.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[n.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","technicalOwners"],["matColumnDef","destinations"],["matColumnDef","hosts"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,R,1,0,"th",4),n.YNc(5,I,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,O,3,3,"th",7),n.YNc(8,P,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,D,1,0,"th",4),n.YNc(11,M,2,2,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,L,3,3,"th",7),n.YNc(14,N,2,1,"td",9),n.BQk(),n.ynx(15,11),n.YNc(16,z,3,3,"th",4),n.YNc(17,F,2,1,"td",9),n.BQk(),n.ynx(18,12),n.YNc(19,Z,3,3,"th",4),n.YNc(20,B,3,3,"td",9),n.BQk(),n.ynx(21,13),n.YNc(22,q,3,3,"th",4),n.YNc(23,U,3,6,"td",9),n.BQk(),n.ynx(24,14),n.YNc(25,H,3,3,"th",4),n.YNc(26,j,3,6,"td",9),n.BQk(),n.YNc(27,G,1,0,"tr",15),n.YNc(28,K,1,7,"tr",16),n.qZA(),n.qZA(),n.qZA(),n.YNc(29,J,3,3,"app-alert",17),n.YNc(30,Q,3,3,"app-alert",17)),2&t&&(n.Q6J("hidden",!e.dataSource||0===e.dataSource.filteredData.length||0===e.facilities.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(25),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.facilities.length),n.xp6(1),n.Q6J("ngIf",0===e.facilities.length))},directives:[u.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,c.O5,o.ge,o.ev,l.oG,r.nU,h.W,A,o.XQ,o.Gk,k.YH,T.rH,C.w],pipes:[S.X$,E.J,x],styles:["tr[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},54930:function(t,e,i){"use strict";i.d(e,{i:function(){return C}});var n=i(31572),r=i(88426),o=i(61511),a=i(15980),s=i(81391),u=i(36922),c=i(43691),l=i(8055),h=i(48160),d=i(44385),f=i(52984),p=i(51392);function g(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.ALo(2,"groupSyncToolTip"),n.TgZ(3,"button",6),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onSyncDetail()}),n.ALo(4,"groupSyncIcon"),n.TgZ(5,"mat-icon"),n.ALo(6,"groupSyncIconColor"),n._uU(7),n.ALo(8,"groupSyncIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("matTooltipPosition","above")("matTooltip",n.lcZ(1,7,n.lcZ(2,9,r.group))),n.xp6(3),n.Q6J("disabled","sync_disabled"===n.lcZ(4,11,r.group)),n.xp6(2),n.Tol(n.lcZ(6,13,r.group)),n.xp6(2),n.hij(" ",n.lcZ(8,15,r.group)," ")}}function m(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.TgZ(2,"button",6),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onMoveGroup()}),n.TgZ(3,"mat-icon"),n._uU(4,"arrow_right_alt"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),n.Q6J("matTooltipPosition","above"),n.xp6(2),n.Q6J("disabled",r.disabled)}}function b(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.TgZ(2,"button",6),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onChangeNameDescription()}),n.TgZ(3,"mat-icon"),n._uU(4,"text_format"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),n.Q6J("matTooltipPosition","above"),n.xp6(2),n.Q6J("disabled",r.disabled)}}function w(t,e){if(1&t&&(n.TgZ(0,"div",2),n.TgZ(1,"button",3),n.ALo(2,"translate"),n.TgZ(3,"mat-icon"),n._uU(4," file_copy "),n.qZA(),n.qZA(),n.YNc(5,g,9,17,"span",4),n.YNc(6,m,5,5,"span",4),n.YNc(7,b,5,5,"span",4),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.Q6J("cdkCopyToClipboard",i.group.name)("matTooltipPosition","above"),n.xp6(4),n.Q6J("ngIf",i.syncAuth),n.xp6(1),n.Q6J("ngIf",i.moveAuth),n.xp6(1),n.Q6J("ngIf",i.editAuth)}}function _(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onSyncDetail()}),n.ALo(1,"groupSyncIcon"),n.TgZ(2,"mat-icon"),n.ALo(3,"groupSyncIconColor"),n._uU(4),n.ALo(5,"groupSyncIcon"),n.qZA(),n.TgZ(6,"span"),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"groupSyncToolTip"),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("disabled","sync_disabled"===n.lcZ(1,6,r.group)),n.xp6(2),n.Tol(n.lcZ(3,8,r.group)),n.xp6(2),n.hij(" ",n.lcZ(5,10,r.group)," "),n.xp6(3),n.Oqu(n.lcZ(8,12,n.lcZ(9,14,r.group)))}}function A(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onMoveGroup()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_right_alt"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("disabled",r.disabled),n.xp6(4),n.Oqu(n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function k(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onChangeNameDescription()}),n.TgZ(1,"mat-icon"),n._uU(2,"text_format"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("disabled",r.disabled),n.xp6(4),n.Oqu(n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function T(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"button",7),n.TgZ(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA(),n.qZA(),n.TgZ(4,"mat-menu",null,8),n.TgZ(6,"button",9),n.TgZ(7,"mat-icon"),n._uU(8," file_copy "),n.qZA(),n.TgZ(9,"span"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.qZA(),n.YNc(12,_,10,16,"button",10),n.YNc(13,A,6,4,"button",10),n.YNc(14,k,6,4,"button",10),n.qZA(),n.qZA()),2&t){var i=n.MAs(5),r=n.oxw();n.xp6(1),n.Q6J("mat-menu-trigger-for",i),n.xp6(5),n.Q6J("cdkCopyToClipboard",r.group.name),n.xp6(4),n.Oqu(n.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.xp6(2),n.Q6J("ngIf",r.syncAuth),n.xp6(1),n.Q6J("ngIf",r.moveAuth),n.xp6(1),n.Q6J("ngIf",r.editAuth)}}var C=function(){var t=function(){function t(e){v(this,t),this.authResolver=e,this.disabled=!1,this.moveGroup=new n.vpe,this.syncGroup=new n.vpe,this.changeNameDescription=new n.vpe}return y(t,[{key:"ngOnInit",value:function(){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])}},{key:"onMoveGroup",value:function(){this.moveGroup.emit()}},{key:"onSyncDetail",value:function(){this.syncGroup.emit()}},{key:"onChangeNameDescription",value:function(){this.changeNameDescription.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.x4))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.YNc(0,w,8,8,"div",0),n.YNc(1,T,15,8,"div",1)),2&t&&(n.Q6J("ngIf",e.displayButtons),n.xp6(1),n.Q6J("ngIf",!e.displayButtons))},directives:[o.O5,a.lW,s.i3,u.gM,c.Hw,l.p6,l.VK,l.OP],pipes:[h.X$,d.r,f.J,p.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),t}()},68529:function(t,e,i){"use strict";i.d(e,{x:function(){return I}});var n=i(31572),r=i(27613),o=i(84608),a=i(33642),s=i(61511),u=i(67806),c=i(54810),l=i(16073),h=i(15980),d=i(48160);function f(t,e){1&t&&n._UZ(0,"mat-spinner",4)}function p(t,e){1&t&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function g(t,e){1&t&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function m(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-radio-group",12),n.NdJ("ngModelChange",function(t){return n.CHM(i),n.oxw(2).asyncValidation=t}),n.TgZ(1,"span",13),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-radio-button",14),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"mat-radio-button",14),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("ngModel",r.asyncValidation),n.xp6(2),n.hij(" ",n.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE"),": "),n.xp6(2),n.Q6J("value",!1),n.xp6(1),n.hij(" ",n.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),n.xp6(2),n.Q6J("value",!0),n.xp6(1),n.hij(" ",n.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function b(t,e){1&t&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function w(t,e){1&t&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function _(t,e){if(1&t&&(n.TgZ(0,"div",5),n.TgZ(1,"p",6),n._uU(2),n.TgZ(3,"span",7),n._uU(4),n.qZA(),n._uU(5),n.TgZ(6,"span",7),n._uU(7),n.qZA(),n.qZA(),n.TgZ(8,"p"),n.TgZ(9,"strong",8),n._uU(10),n.ALo(11,"translate"),n.qZA(),n._uU(12),n.qZA(),n.TgZ(13,"p"),n.TgZ(14,"strong",8),n._uU(15),n.ALo(16,"translate"),n.qZA(),n._uU(17),n.qZA(),n.YNc(18,p,3,3,"span",9),n.YNc(19,g,3,3,"span",9),n.YNc(20,m,10,12,"mat-radio-group",10),n.YNc(21,b,3,3,"span",9),n.YNc(22,w,3,3,"span",9),n.qZA()),2&t){var i=n.oxw();n.xp6(2),n.hij(" ",i.group.name," "),n.xp6(2),n.hij("#",i.group.id,""),n.xp6(1),n.hij(" - ",i.resource.name," "),n.xp6(2),n.hij("#",i.resource.id,""),n.xp6(3),n.hij("",n.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT"),":"),n.xp6(2),n.hij(" ",i.status," "),n.xp6(3),n.hij("",n.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW"),":"),n.xp6(2),n.hij(" ",i.getReversedStatus()," "),n.xp6(1),n.Q6J("ngIf","INACTIVE"===i.status),n.xp6(1),n.Q6J("ngIf","ACTIVE"===i.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===i.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===i.status&&!1===i.asyncValidation),n.xp6(1),n.Q6J("ngIf","INACTIVE"===i.status&&!0===i.asyncValidation)}}function A(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"div",15),n.TgZ(1,"button",16),n.NdJ("click",function(){return n.CHM(i),n.oxw().onCancel()}),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"button",17),n.NdJ("click",function(){return n.CHM(i),n.oxw().onSubmit()}),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),n.xp6(2),n.Q6J("disabled",r.loading),n.xp6(1),n.hij(" ",n.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SUBMIT")," ")}}var k=function(){var t=function(){function t(e,i,n,r){v(this,t),this.dialogRef=e,this.data=i,this.resourceService=n,this.groupService=r,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(function(e){t.resource=e,t.groupService.getGroupById(t.data.groupId).subscribe(function(e){t.group=e,t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(function(){t.dialogRef.close(!0),t.loading=!1},function(){return t.loading=!1}):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(function(){t.dialogRef.close(!0),t.loading=!1},function(){return t.loading=!1})}},{key:"getReversedStatus",value:function(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.so),n.Y36(o.WI),n.Y36(a.xk),n.Y36(a.ff))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,f,1,0,"mat-spinner",1),n.YNc(5,_,23,17,"div",2),n.YNc(6,A,7,7,"div",3),n.qZA()),2&t&&(n.Tol(e.theme),n.xp6(2),n.Oqu(n.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")),n.xp6(2),n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",!e.loading),n.xp6(1),n.Q6J("ngIf",!e.loading))},directives:[o.uh,s.O5,u.$g,o.xY,c.VQ,l.JJ,l.On,c.U0,o.H8,h.lW],pipes:[d.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),t}(),T=i(36922),C=i(43691);function S(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){return n.CHM(i),n.oxw().changeStatus()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3,"check_circle_outline"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function E(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){return n.CHM(i),n.oxw().changeStatus()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",5),n._uU(3,"block"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function x(t,e){if(1&t&&(n.TgZ(0,"span",6),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",7),n._uU(3,"report"),n.qZA(),n.qZA()),2&t){var i=n.oxw();n.hYB("matTooltip","",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",i.failureCause,"")}}function R(t,e){1&t&&(n.TgZ(0,"span",6),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",8),n._uU(3,"autorenew"),n.qZA(),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}var I=function(){var t=function(){function t(e){v(this,t),this.dialog=e,this.status="",this.statusChange=new n.vpe}return y(t,[{key:"changeStatus",value:function(){var t=this,e=(0,r.kZ)();e.width="500px",e.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(k,e).afterClosed().subscribe(function(e){e&&t.statusChange.emit()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.uw))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],["matTooltipPosition","above",3,"matTooltip"],[1,"red"],[1,"black"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.YNc(1,S,4,3,"span",1),n.YNc(2,E,4,3,"span",1),n.YNc(3,x,4,4,"span",2),n.YNc(4,R,4,3,"span",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf","ACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","FAILED"===e.status),n.xp6(1),n.Q6J("ngIf","PROCESSING"===e.status))},directives:[s.O5,T.gM,C.Hw],pipes:[d.X$],styles:[""]}),t}()},37665:function(t,e,i){"use strict";i.d(e,{h:function(){return s}});var n=i(31572),r=i(27613),o=i(44973),a=i(48160),s=function(){var t=function(){function t(){v(this,t),this.groupSelected=new n.vpe,this.disableAutoSelect=!1,this.nameFunction=function(t){return t.name}}return y(t,[{key:"ngOnInit",value:function(){this.groups=this.groups.sort(r.aC)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect",firstSelectedGroup:"firstSelectedGroup"},outputs:{groupSelected:"groupSelected"},decls:4,vars:14,consts:[[1,"long-input",3,"entities","entity","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){var i;(1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.groupSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t)&&n.Q6J("entities",e.groups)("entity",null!==(i=e.firstSelectedGroup)&&void 0!==i?i:null)("disableAutoSelect",e.disableAutoSelect)("mainTextFunction",e.nameFunction)("searchFunction",e.nameFunction)("selectPlaceholder",n.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",n.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",n.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))},directives:[o.i],pipes:[a.X$],styles:[""]}),t}()},78364:function(t,e,i){"use strict";i.d(e,{W:function(){return it}});var n=i(31572),o=i(58623),a=i(67033),s=i(4230),u=i(33642),c=i(27613),l=i(81954),h=i(88426),d=i(61511),p=i(84608),g=i(82819),m=i(29236),b=i(36922),w=i(72953),_=i(68529),A=i(15980),k=i(43691),T=i(54930),C=i(84534),S=i(57629),E=i(39571),x=i(48160),R=i(58506),I=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){var e=t.attributes.find(function(t){return"groupMembershipExpiration"===t.baseFriendlyName});return e&&e.value?e.value:"Never"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"groupExpiration",type:t,pure:!0}),t}();function O(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",22),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw(2);return t?e.masterToggle():null}),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function P(t,e){if(1&t&&(n.TgZ(0,"th",20),n.YNc(1,O,1,3,"mat-checkbox",21),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Q6J("ngIf",!i.disableHeadCheckbox)}}function D(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",23),n.TgZ(1,"span",24),n.ALo(2,"translate"),n.TgZ(3,"mat-checkbox",25),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.itemSelectionToggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,o.getCheckboxTooltipMessage(r))),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!o.disableSelect(r)),n.xp6(2),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))("disabled","members"===r.name&&o.disableMembers||o.disableSelect(r))}}function M(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function N(t,e){1&t&&n._UZ(0,"th",20)}function z(t,e){if(1&t&&(n.TgZ(0,"td",27),n._UZ(1,"perun-web-apps-recently-viewed-icon",28),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Q6J("recentIds",r.recentIds)("id",i.id)}}function F(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")))}function Z(t,e){if(1&t&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Oqu(r.voNames.get(i.voId))}}function B(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")))}function q(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.name)}}function U(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")))}function H(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",29),n.TgZ(1,"perun-web-apps-group-resource-status",30),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw();return t.disabledRouting=t.disableRouting})("statusChange",function(){return n.CHM(i),n.oxw().refreshTable.emit()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("theme","resource-theme")("groupId",r.id)("resourceId",o.resourceId)("failureCause",r.failureCause)("status",r.status)}}function j(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")))}function G(t,e){if(1&t&&(n.TgZ(0,"td",29),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.description)}}function Y(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")))}function V(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",32),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw().changeExpiration(t)})("mouseenter",function(){return n.CHM(i),n.oxw(2).disabledRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw(2);return t.disabledRouting=t.disableRouting}),n.TgZ(1,"mat-icon"),n._uU(2,"edit"),n.qZA(),n.qZA()}}function K(t,e){if(1&t&&(n.TgZ(0,"td",29),n._uU(1),n.ALo(2,"parseDate"),n.ALo(3,"groupExpiration"),n.YNc(4,V,3,0,"button",31),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,2,n.lcZ(3,4,i))," "),n.xp6(3),n.Q6J("ngIf",r.canManageGroup(i))}}function J(t,e){1&t&&n._UZ(0,"th",20)}function Q(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"perun-web-apps-group-menu",33),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw();return t.disabledRouting=t.disableRouting})("moveGroup",function(){var t=n.CHM(i).$implicit;return n.oxw().onMoveGroup(t)})("changeNameDescription",function(){var t=n.CHM(i).$implicit;return n.oxw().onChangeNameDescription(t)})("syncGroup",function(){var t=n.CHM(i).$implicit;return n.oxw().onSyncDetail(t)}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("disabled","members"===r.name)("displayButtons",o.displayButtons)("group",r)}}function W(t,e){1&t&&n._UZ(0,"tr",34)}var X=function(t,e){return["/organizations",t,"groups",e]};function $(t,e){if(1&t&&n._UZ(0,"tr",35),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disableRouting&&!r.groupsToDisable.has(i.id))("disable-outline",r.disabledRouting||r.groupsToDisable.has(i.id)),n.Q6J("perunWebAppsMiddleClickRouterLink",r.disabledRouting||r.groupsToDisable.has(i.id)?null:n.WLB(6,X,i.voId,i.id))("routerLink",r.disabledRouting||r.groupsToDisable.has(i.id)?null:n.WLB(9,X,i.voId,i.id))}}function tt(t,e){1&t&&(n.TgZ(0,"app-alert",36),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_GROUPS"),"\n"))}function et(t,e){1&t&&(n.TgZ(0,"app-alert",36),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var it=function(){var t=function(){function t(e,i,r,o){var a=this;v(this,t),this.dialog=e,this.authResolver=i,this.voService=r,this.tableCheckbox=o,this.displayButtons=window.innerWidth>800,this.theme="group-theme",this.moveGroup=new n.vpe,this.groups=[],this.selection=new s.Ov(!0,[]),this.hasMembersGroup=!1,this.displayedColumns=["select","id","recent","vo","name","status","description","expiration","menu"],this.groupsToDisable=new Set,this.pageSize=10,this.filter="",this.disableRouting=!1,this.pageSizeOptions=c.f7,this.recentIds=[],this.resourceId=null,this.page=new n.vpe,this.refreshTable=new n.vpe,this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.canBeSelected=function(t){return!("members"===t.name&&a.disableMembers||a.disableSelect(t))}}return y(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"shouldHideButtons",value:function(){this.displayButtons=window.innerWidth>800}},{key:"ngOnInit",value:function(){this.shouldHideButtons()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.disabledRouting=this.disableRouting,this.hasMembersGroup=this.checkIfHasMembersGroup(),this.updateVoNames(),this.dataSource=new a.by(this.groups),this.setDataSource(),this.authType&&(this.removeAuth=this.setAuth())}},{key:"checkIfHasMembersGroup",value:function(){var t,e=f(this.groups);try{for(e.s();!(t=e.n()).done;){if("members"===t.value.name)return!0}}catch(i){e.e(i)}finally{e.f()}return!1}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return i.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":var n=(0,c.x2)(t);return(0,c.sG)(n);case"recent":return"";case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}},{key:"getSortDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return i.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":var n=(0,c.x2)(t);return n&&"never"!==n.toLowerCase()?(0,d.p6)(n,"yyyy.MM.dd","en"):n;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"status":return t.status;default:return t[e]}}},{key:"exportData",value:function(t){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return(0,c.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t,!0)},this.dataSource.sortData=function(e,i){return(0,c.pR)(e,i,t.getSortDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.filter=this.filter,this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.authType&&(this.removeAuth=this.setAuth())}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"disableSelect",value:function(t){return this.disableGroups&&(this.groupsToDisable.has(t.id)||this.isSynchronized(t))}},{key:"ngAfterViewInit",value:function(){void 0===this.vo&&0!==this.groups.length&&(this.vo={id:this.groups[0].voId,beanName:"Vo"}),this.dataSource.paginator=this.child.paginator}},{key:"onMoveGroup",value:function(t){this.moveGroup.emit(t)}},{key:"onSyncDetail",value:function(t){var e=(0,c.kZ)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(l.Bp,e)}},{key:"onChangeNameDescription",value:function(t){var e=this,i=(0,c.kZ)();i.data={theme:"group-theme",group:t,dialogType:l.Eg.GROUP},this.dialog.open(l.rd,i).afterClosed().subscribe(function(t){t&&e.refreshTable.emit()})}},{key:"setAuth",value:function(){var t=this;return"group-subgroups"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[i])},!0):"group-relations"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("removeGroupUnion_Group_Group_policy",[t.parentGroup,i])},!0):"vo-groups"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[t.vo,i])},!0):"member-groups"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("removeMember_Member_List_policy",[i])},!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[t.vo,i])},!0):void 0}},{key:"itemSelectionToggle",value:function(t){this.selection.toggle(t),this.removeAuth=this.setAuth()}},{key:"isSynchronized",value:function(t){return!!t.attributes&&t.attributes.some(function(t){return"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString()})}},{key:"getCheckboxTooltipMessage",value:function(t){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":this.isSynchronized(t)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP"}},{key:"updateVoNames",value:function(){var t=this;this.displayedColumns.includes("vo")&&(this.groups.forEach(function(e){t.voIds.has(e.voId)||t.voIds.add(e.voId)}),this.voIds.size>0&&this.voService.getVosByIds(r(this.voIds)).subscribe(function(e){e.forEach(function(e){t.voNames.set(e.id,e.name)})}))}},{key:"changeExpiration",value:function(t){var e=this,i=t.attributes.find(function(t){return"groupMembershipExpiration"===t.baseFriendlyName}),n=(0,c.kZ)();n.width="400px",n.data={memberId:this.memberId,groupId:t.id,expirationAttr:i,mode:"group",status:this.memberGroupStatus},this.dialog.open(l.u3,n).afterClosed().subscribe(function(t){t&&e.refreshTable.emit()})}},{key:"canManageGroup",value:function(t){return this.authResolver.isThisGroupAdmin(t.id)||this.authResolver.isThisVoAdmin(t.voId)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(p.uw),n.Y36(h.x4),n.Y36(u.YF),n.Y36(h.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(o.YE,7),n.Gf(c.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},hostBindings:function(t,e){1&t&&n.NdJ("resize",function(t){return e.shouldHideButtons(t)},!1,n.Jf7)},inputs:{theme:"theme",groups:"groups",selection:"selection",displayedColumns:"displayedColumns",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisable:"groupsToDisable",pageSize:"pageSize",filter:"filter",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",authType:"authType",memberId:"memberId",memberGroupStatus:"memberGroupStatus",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",resourceId:"resourceId"},outputs:{moveGroup:"moveGroup",page:"page",refreshTable:"refreshTable"},features:[n.TTD],decls:34,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","name"],["matColumnDef","status"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","resourceId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-icon-button","",3,"click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"click","mouseenter","mouseleave"],[3,"disabled","displayButtons","group","mouseenter","mouseleave","moveGroup","changeNameDescription","syncGroup"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,P,2,1,"th",4),n.YNc(5,D,4,8,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,M,3,3,"th",7),n.YNc(8,L,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,N,1,0,"th",4),n.YNc(11,z,2,2,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,F,3,3,"th",7),n.YNc(14,Z,2,1,"td",5),n.BQk(),n.ynx(15,11),n.YNc(16,B,3,3,"th",7),n.YNc(17,q,2,1,"td",9),n.BQk(),n.ynx(18,12),n.YNc(19,U,3,3,"th",7),n.YNc(20,H,2,5,"td",13),n.BQk(),n.ynx(21,14),n.YNc(22,j,3,3,"th",7),n.YNc(23,G,2,1,"td",13),n.BQk(),n.ynx(24,15),n.YNc(25,Y,3,3,"th",7),n.YNc(26,K,5,6,"td",13),n.BQk(),n.ynx(27,16),n.YNc(28,J,1,0,"th",4),n.YNc(29,Q,2,3,"td",9),n.BQk(),n.YNc(30,W,1,0,"tr",17),n.YNc(31,$,1,12,"tr",18),n.qZA(),n.qZA(),n.qZA(),n.YNc(32,tt,3,3,"app-alert",19),n.YNc(33,et,3,3,"app-alert",19)),2&t&&(n.Q6J("hidden",0===e.groups.length||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(28),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.groups.length),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.groups.length))},directives:[g.l,a.BZ,o.YE,a.w1,a.fO,a.Dz,a.as,a.nj,d.O5,a.ge,m.oG,a.ev,b.gM,o.nU,w.W,_.x,A.lW,k.Hw,T.i,a.XQ,a.Gk,C.YH,S.rH,E.w],pipes:[x.X$,R.M,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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t}()},11441:function(t,e,i){"use strict";i.d(e,{I:function(){return L}});var n=i(31572),o=i(91010),a=i(71709),s=i(4230),u=i(14732),c=i(27613),l=i(81954),h=i(88426),d=i(84608),p=i(61511),g=i(4253),m=i(57629),b=i(15980),w=i(36922),_=i(54930),A=i(29236),k=i(43691),T=i(39571),C=i(48160),S=["scrollViewport"];function E(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",19),n.NdJ("change",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw(2).itemSelectionToggle(t)}),n.qZA()}if(2&t){var r=n.oxw().$implicit,o=n.oxw(2);n.Q6J("disabled","members"===r.fullName)("checked",o.selection.isSelected(r))("indeterminate",o.descendantsPartiallySelected(r))}}function x(t,e){if(1&t&&(n.TgZ(0,"mat-icon",20),n._uU(1),n.qZA()),2&t){var i=n.oxw().$implicit,r=n.oxw(2);n.xp6(1),n.hij(" ",r.treeControl.isExpanded(i)?"expand_more":"chevron_right"," ")}}function R(t,e){if(1&t&&(n.TgZ(0,"span",21),n._uU(1),n.qZA()),2&t){var i=n.oxw().$implicit;n.xp6(1),n.hij(" #",i.id," ")}}var I=function(t,e){return["/organizations",t,"groups",e]};function O(t,e){if(1&t){var i=n.EpF();n.ynx(0),n.TgZ(1,"div",6),n.YNc(2,E,1,3,"mat-checkbox",7),n.TgZ(3,"a",8),n.TgZ(4,"button",9),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw(2).disableRouting=!0})("mouseleave",function(){return n.CHM(i),n.oxw(2).disableRouting=!1})("click",function(){var t=n.CHM(i).$implicit;return n.oxw(2).treeControl.toggle(t)}),n.YNc(5,x,2,1,"mat-icon",10),n.qZA(),n.TgZ(6,"div",11),n.TgZ(7,"span",12),n._uU(8),n.qZA(),n.YNc(9,R,2,1,"span",13),n.qZA(),n.TgZ(10,"div",14,15),n.TgZ(12,"span",16),n._uU(13),n.qZA(),n.qZA(),n.qZA(),n.TgZ(14,"div",17),n.TgZ(15,"perun-web-apps-group-menu",18),n.NdJ("moveGroup",function(){var t=n.CHM(i).$implicit;return n.oxw(2).onMoveGroup(t)})("syncGroup",function(){var t=n.CHM(i).$implicit;return n.oxw(2).onSyncDetail(t)})("changeNameDescription",function(){var t=n.CHM(i).$implicit;return n.oxw(2).onChangeNameDescription(t)}),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&t){var r=e.$implicit,o=n.oxw(2);n.xp6(1),n.Udp("padding-left",24*r.level+"px"),n.xp6(1),n.Q6J("ngIf",!o.hideCheckbox),n.xp6(1),n.Q6J("routerLink",o.disableRouting?null:n.WLB(14,I,r.voId,r.id)),n.xp6(1),n.Q6J("disabled",!r.expandable),n.uIk("aria-label","toggle "+r.name),n.xp6(1),n.Q6J("ngIf",r.expandable),n.xp6(3),n.hij(" ",r.name," "),n.xp6(1),n.Q6J("ngIf",o.authResolver.isPerunAdminOrObserver()),n.xp6(3),n.s9C("matTooltip",r.description),n.xp6(1),n.hij(" ",r.description," "),n.xp6(2),n.Q6J("disabled","members"===r.fullName)("displayButtons",o.displayButtons)("group",r)}}var P=function(t){return{height:t}};function D(t,e){if(1&t&&(n.TgZ(0,"div",2),n.TgZ(1,"cdk-virtual-scroll-viewport",3,4),n.YNc(3,O,16,17,"ng-container",5),n.qZA(),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",n.VKq(4,P,i.getTreeViewHeight())),n.xp6(2),n.Q6J("cdkVirtualForOf",i.dataSource)}}function M(t,e){1&t&&(n.TgZ(0,"app-alert",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var L=function(){var t=function(){function t(e,i,r){v(this,t),this.cd=e,this.dialog=i,this.authResolver=r,this.transformer=function(t,e){return{expandable:!!t.children&&t.children.length>0,name:t.shortName,fullName:t.name,parentGroupId:t.parentGroupId,level:e,id:t.id,voId:t.voId,attributes:t.attributes,beanName:t.beanName,description:t.description}},this.displayButtons=window.innerWidth>600,this.theme="group-theme",this.moveGroup=new n.vpe,this.refreshTable=new n.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new s.Ov(!0,[]),this.hideCheckbox=!1,this.treeControl=new a.C2(function(t){return t.level},function(t){return t.expandable}),this.treeFlattener=new o.JZ(this.transformer,function(t){return t.level},function(t){return t.expandable},function(t){return t.children}),this.dataSource=new o.kc(this.treeControl,this.treeFlattener),this.hasChild=function(t,e){return e.expandable},this.getLevel=function(t){return t.level}}return y(t,[{key:"shouldHideButtons",value:function(){this.displayButtons=window.innerWidth>600}},{key:"ngOnChanges",value:function(){var t=this;if(this.expandAll){this.filteredGroups=this.groups.filter(function(e){var i,n;return(null===(i=e.name)||void 0===i?void 0:i.toLowerCase().includes(t.filterValue.toLowerCase()))||(null===(n=e.description)||void 0===n?void 0:n.toLowerCase().includes(t.filterValue.toLowerCase()))||e.id.toString().includes(t.filterValue.toLowerCase())||e.uuid.toLowerCase().includes(t.filterValue.toLowerCase())});var e,i=f(this.filteredGroups);try{for(i.s();!(e=i.n()).done;){var n=e.value;n.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,c.oU)(n.parentGroupId,this.groups)))}}catch(r){i.e(r)}finally{i.f()}}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}},{key:"onSyncDetail",value:function(t){var e=(0,c.kZ)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(l.Bp,e)}},{key:"onChangeNameDescription",value:function(t){var e=this,i=(0,c.kZ)();i.data={theme:"group-theme",group:t,dialogType:l.Eg.GROUP},this.dialog.open(l.rd,i).afterClosed().subscribe(function(t){t&&e.refreshTable.emit()})}},{key:"createGroupTrees",value:function(t){var e,i=new Map,n=f(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;i.set(r.id,new u.m(r))}}catch(s){n.e(s)}finally{n.f()}var o=new Set;i.forEach(function(t,e,i){var n=i.get(t.parentGroupId);void 0!==n&&(n.addChild(t),i.set(t.parentGroupId,n)),null!==t.parentGroupId&&void 0===n&&o.add(t.id)});var a=[];i.forEach(function(t){(null===t.parentGroupId||o.has(t.id))&&a.push(t)}),this.dataSource.data=a,this.cd.detectChanges()}},{key:"getParentNode",value:function(t){var e=this.getLevel(t);if(e<1)return null;for(var i=this.treeControl.dataNodes.indexOf(t)-1;i>=0;i--){var n=this.treeControl.dataNodes[i];if(this.getLevel(n)_boolean_policy",[t.vo,i])}:function(e,i){return e&&t.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[i])},!0)}},{key:"onMoveGroup",value:function(t){this.moveGroup.emit(t)}},{key:"getTreeViewHeight",value:function(){var t=0;this.scrollViewport&&(t=this.scrollViewport.getDataLength());var e=48*t;return e>672&&(e=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),e+"px"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO),n.Y36(d.uw),n.Y36(h.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(S,5),2&t)&&(n.iGM(i=n.CRH())&&(e.scrollViewport=i.first))},hostBindings:function(t,e){1&t&&n.NdJ("resize",function(t){return e.shouldHideButtons(t)},!1,n.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[n.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(t,e){1&t&&(n.YNc(0,D,4,6,"div",0),n.YNc(1,M,3,3,"app-alert",1)),2&t&&(n.Q6J("ngIf",0!==e.filteredGroups.length),n.xp6(1),n.Q6J("ngIf",0===e.filteredGroups.length))},directives:[p.O5,g.N7,g.xd,p.PC,g.x0,m.yS,b.lW,w.gM,_.i,A.oG,k.Hw,T.w],pipes:[C.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.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:rgba(0,0,0,.05)}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),t}()},66438:function(t,e,i){"use strict";i.d(e,{X:function(){return m}});var n=i(33642),r=i(88426),o=i(31572),a=i(48160),s=i(61511),u=i(8055),c=i(15980),l=i(43691),h=i(36922),d=function(t){return{color:t}};function f(t,e){if(1&t&&(o.TgZ(0,"button",8),o.ALo(1,"translate"),o.TgZ(2,"mat-icon",4),o._uU(3," apps "),o.qZA(),o.qZA()),2&t){var i=o.oxw(),n=o.MAs(2);o.Q6J("matMenuTriggerFor",n)("matTooltip",o.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),o.xp6(2),o.Q6J("ngStyle",o.VKq(5,d,i.iconColor))}}function p(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"button",2),o.NdJ("click",function(){return o.CHM(i),o.oxw().reloadRoles()}),o._uU(1),o.ALo(2,"translate"),o.qZA()}2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"NAV.RELOAD_ROLES")," "))}function g(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"button",2),o.NdJ("click",function(){return o.CHM(i),o.oxw().onLogOut()}),o._uU(1),o.ALo(2,"translate"),o.qZA()}2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"NAV.LOGOUT")))}var m=function(){var t=function(){function t(e,i,n,r){v(this,t),this.authService=e,this.authzResolverService=i,this.notificator=n,this.translateService=r,this.showReloadRoles=!1}return y(t,[{key:"ngOnInit",value:function(){}},{key:"redirectToUrl",value:function(){window.open(this.url,"_blank")}},{key:"reloadRoles",value:function(){var t=this;this.authzResolverService.loadAuthorizationComponents().subscribe(function(){return t.notificator.showSuccess(t.translateService.instant("NAV.RELOAD_ROLES_SUCCESS"))})}},{key:"onLogOut",value:function(){this.authService.logout()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(r.e8),o.Y36(n.Ct),o.Y36(r.V6),o.Y36(a.sK))},t.\u0275cmp=o.Xpm({type:t,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",showReloadRoles:"showReloadRoles",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:15,vars:16,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(t,e){if(1&t&&(o.YNc(0,f,4,7,"button",0),o.TgZ(1,"mat-menu",null,1),o.TgZ(3,"button",2),o.NdJ("click",function(){return e.redirectToUrl()}),o.TgZ(4,"span"),o._uU(5),o.qZA(),o.qZA(),o.qZA(),o.TgZ(6,"button",3),o.TgZ(7,"mat-icon",4),o._uU(8," person "),o.qZA(),o.TgZ(9,"span",5),o._uU(10),o.qZA(),o.qZA(),o.TgZ(11,"mat-menu",null,6),o.YNc(13,p,3,3,"button",7),o.YNc(14,g,3,3,"button",7),o.qZA()),2&t){var i=o.MAs(12);o.Q6J("ngIf",e.url),o.xp6(5),o.Oqu(e.label),o.xp6(1),o.Q6J("matMenuTriggerFor",i),o.xp6(1),o.Q6J("ngStyle",o.VKq(12,d,e.iconColor)),o.xp6(2),o.Q6J("ngStyle",o.VKq(14,d,e.textColor)),o.xp6(1),o.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," "),o.xp6(3),o.Q6J("ngIf",e.showReloadRoles),o.xp6(1),o.Q6J("ngIf",e.logoutEnabled)}},directives:[s.O5,u.VK,u.OP,c.lW,u.p6,l.Hw,s.PC,h.gM],pipes:[a.X$],styles:["@media (max-width:991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),t}()},19139:function(t,e,i){"use strict";i.d(e,{L:function(){return d}});var n=i(31572),r=i(16073),o=i(66283),a=i(61511),s=i(80340),u=i(84534),c=i(48160);function l(t,e){if(1&t&&(n._UZ(0,"input",3),n.ALo(1,"translate")),2&t){var i=n.oxw();n.s9C("placeholder",n.lcZ(1,2,i.placeholder)),n.Q6J("formControl",i.formControl)}}function h(t,e){if(1&t&&(n._UZ(0,"input",4),n.ALo(1,"translate")),2&t){var i=n.oxw();n.s9C("placeholder",n.lcZ(1,2,i.placeholder)),n.Q6J("formControl",i.formControl)}}var d=function(){var t=function(){function t(){v(this,t),this.filter=new n.vpe,this.autoFocus=!1,this.formControl=new r.NI}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.formControl.valueChanges.subscribe(function(e){var i=e.trim();i=i.toLowerCase(),t.filter.emit(i)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","ml-2"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.YNc(1,l,2,4,"input",1),n.YNc(2,h,2,4,"input",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",e.autoFocus),n.xp6(1),n.Q6J("ngIf",!e.autoFocus))},directives:[o.KE,a.O5,s.Nt,r.Fj,u.hT,r.JJ,r.oH],pipes:[c.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:auto!important}"]}),t}()},91779:function(t,e,i){"use strict";i.d(e,{m:function(){return et}});var n=i(31572),r=i(58623),o=i(27613),a=i(81954),s=i(88426),u=i(31906),c=i(66599),l=i(84608),h=i(82819),d=i(61511),f=i(67033),p=i(67806),g=i(29236),m=i(43691),b=i(36922),w=i(84534),_=i(57629),A=i(39571),k=i(48160),T=i(22196),C=i(74842),S=i(91322),E=i(37043),x=i(99197),R=i(63720),I=i(1157);function O(t,e){1&t&&(n.TgZ(0,"div",20),n._UZ(1,"mat-spinner",21),n.qZA())}function P(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"th",22),n.TgZ(1,"mat-checkbox",23),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw();return t?e.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function D(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",24),n.TgZ(1,"mat-checkbox",25),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))}}function M(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ID")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function N(t,e){1&t&&n._UZ(0,"th",26)}function z(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",29),n.NdJ("click",function(t){n.CHM(i);var e=n.oxw().$implicit;return n.oxw().viewMemberGroupTree(t,e)}),n.ALo(1,"translate"),n._uU(2,"transfer_within_a_station"),n.qZA()}2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function F(t,e){if(1&t&&(n.TgZ(0,"td",27),n.YNc(1,z,3,3,"mat-icon",28),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf","DIRECT"!==i.membershipType)}}function Z(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.NAME")))}function B(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i.user))}}function q(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function U(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"i",30),n.NdJ("click",function(t){var e=n.CHM(i).$implicit;return n.oxw().changeStatus(t,e)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,r.status),""),n.s9C("matTooltip",n.xi3(3,7,r,!1)),n.xp6(4),n.hij(" ",n.lcZ(6,10,r.status)," ")}}function H(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function j(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"i",30),n.NdJ("click",function(t){var e=n.CHM(i).$implicit;return n.oxw().changeStatus(t,e)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,r.groupStatus),""),n.s9C("matTooltip",n.xi3(3,7,r,!0)),n.xp6(4),n.hij(" ",n.lcZ(6,10,r.groupStatus)," ")}}function G(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function Y(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberOrganization"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function V(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function K(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberEmail"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function J(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function Q(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberLogins"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function W(t,e){1&t&&n._UZ(0,"tr",31)}var X=function(t,e){return["/organizations",t,"members",e]};function $(t,e){if(1&t&&n._UZ(0,"tr",32),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",r.dataSource.routeAuth)("disable-outline",!r.dataSource.routeAuth),n.Q6J("perunWebAppsMiddleClickRouterLink",r.dataSource.routeAuth?n.WLB(6,X,i.voId,i.id):null)("routerLink",r.dataSource.routeAuth?n.WLB(9,X,i.voId,i.id):null)}}function tt(t,e){1&t&&(n.TgZ(0,"app-alert",33),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.Q6J("alert_type","warn"),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}var et=function(){var t=function(){function t(e,i,r,a){v(this,t),this.dialog=e,this.authResolver=i,this.tableCheckbox=r,this.dynamicPaginatingService=a,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.pageSize=10,this.selectedGroupStatuses=[],this.page=new n.vpe,this.exporting=!1,this.pageSizeOptions=o.f7}return y(t,[{key:"ngAfterViewInit",value:function(){var t=this;this.sort.sortChange.subscribe(function(){return t.child.paginator.pageIndex=0}),(0,u.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,c.b)(function(){return t.loadMembersPage()})).subscribe()}},{key:"ngOnInit",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new s.Ct(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.pageSize,"NAME",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}},{key:"ngOnChanges",value:function(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadMembersPage())}},{key:"masterToggle",value:function(){var t=this;this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(function(e){return t.selection.select(e)})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.pageSize}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"changeStatus",value:function(t,e){var i=this;if(t.stopPropagation(),"INVALID"===e.status){var n=(0,o.kZ)();n.width="500px",n.data={member:e},this.dialog.open(a.pf,n).afterClosed().subscribe(function(t){t&&i.loadMembersPage()})}}},{key:"loadMembersPage",value:function(){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)}},{key:"exportData",value:function(t){(0,o.O6)((0,o.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"getExportDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"fullName":return t.user?(0,o.bD)(t.user):"";case"status":return t.status;case"groupStatus":return t.groupStatus;case"organization":return(0,o.Gw)(t);case"email":return(0,o.g$)(t);case"logins":return(0,o.lt)(t);default:return""}}},{key:"viewMemberGroupTree",value:function(t,e){t.stopPropagation();var i=(0,o.kZ)();i.width="800px",i.data={member:e,groupId:this.groupId},this.dialog.open(a.jd,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(l.uw),n.Y36(s.x4),n.Y36(s.UA),n.Y36(s.ly))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(o.l9,7),n.Gf(r.YE,5)),2&t)&&(n.iGM(i=n.CRH())&&(e.child=i.first),n.iGM(i=n.CRH())&&(e.sort=i.first))},inputs:{selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",updateTable:"updateTable"},outputs:{page:"page"},features:[n.TTD],decls:37,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"matTooltip","click",4,"ngIf"],[3,"matTooltip","click"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.ALo(1,"async"),n.TgZ(2,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.YNc(3,O,2,0,"div",2),n.ALo(4,"async"),n.TgZ(5,"table",3),n.ynx(6,4),n.YNc(7,P,2,3,"th",5),n.YNc(8,D,2,2,"td",6),n.BQk(),n.ynx(9,7),n.YNc(10,M,3,3,"th",8),n.YNc(11,L,2,1,"td",6),n.BQk(),n.ynx(12,9),n.YNc(13,N,1,0,"th",8),n.YNc(14,F,2,1,"td",10),n.BQk(),n.ynx(15,11),n.YNc(16,Z,3,3,"th",8),n.YNc(17,B,3,3,"td",10),n.BQk(),n.ynx(18,12),n.YNc(19,q,3,3,"th",5),n.YNc(20,U,7,12,"td",10),n.BQk(),n.ynx(21,13),n.YNc(22,H,3,3,"th",5),n.YNc(23,j,7,12,"td",10),n.BQk(),n.ynx(24,14),n.YNc(25,G,3,3,"th",5),n.YNc(26,Y,3,3,"td",10),n.BQk(),n.ynx(27,15),n.YNc(28,V,3,3,"th",5),n.YNc(29,K,3,3,"td",10),n.BQk(),n.ynx(30,16),n.YNc(31,J,3,3,"th",5),n.YNc(32,Q,3,3,"td",10),n.BQk(),n.YNc(33,W,1,0,"tr",17),n.YNc(34,$,1,12,"tr",18),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,tt,3,4,"app-alert",19),n.ALo(36,"async")),2&t&&(n.Q6J("hidden",0===e.dataSource.allMemberCount&&!1===n.lcZ(1,9,e.dataSource.loading$)),n.xp6(2),n.Q6J("dataLength",e.dataSource.allMemberCount)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("ngIf",n.lcZ(4,11,e.dataSource.loading$)),n.xp6(2),n.Q6J("dataSource",e.dataSource),n.xp6(28),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.allMemberCount&&!1===n.lcZ(36,13,e.dataSource.loading$)))},directives:[h.l,d.O5,f.BZ,r.YE,f.w1,f.fO,f.Dz,f.as,f.nj,p.$g,f.ge,g.oG,f.ev,r.nU,m.Hw,b.gM,f.XQ,f.Gk,w.YH,_.rH,A.w],pipes:[d.Ov,k.X$,T.d,C.u,S.i,E.f,x.M,R.D,I.p],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}"]}),t}()},4252:function(t,e,i){"use strict";i.d(e,{O:function(){return it}});var n=i(31572),r=i(58623),o=i(67033),a=i(4230),s=i(27613),u=i(81954),c=i(88426),l=i(84608),h=i(57629),d=i(82819),f=i(61511),p=i(29236),g=i(36922),m=i(43691),b=i(84534),w=i(39571),_=i(48160),A=i(22196),k=i(74842),T=i(91322),C=i(37043),S=i(99197),E=i(63720),x=i(1157);function R(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"th",22),n.TgZ(1,"mat-checkbox",23),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw();return t?e.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function I(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",24),n.TgZ(1,"mat-checkbox",25),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),n.ALo(2,"translate"),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))("disabled","DIRECT"!==r.membershipType)("matTooltip","DIRECT"!==r.membershipType?n.lcZ(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function O(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ID")))}function P(t,e){if(1&t&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function D(t,e){1&t&&n._UZ(0,"th",26)}function M(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",29),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw().viewMemberGroupTree(t)})("mouseenter",function(){return n.CHM(i),n.oxw(2).disableRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw(2);return t.disableRouting=t.disabledRouting}),n.ALo(1,"translate"),n._uU(2,"transfer_within_a_station"),n.qZA()}2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function L(t,e){if(1&t&&(n.TgZ(0,"td",27),n.YNc(1,M,3,3,"mat-icon",28),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf","DIRECT"!==i.membershipType)}}function N(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.NAME")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i.user))}}function F(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function Z(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"i",30),n.NdJ("click",function(t){var e=n.CHM(i).$implicit;return n.oxw().changeStatus(t,e)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,r.status),""),n.s9C("matTooltip",n.xi3(3,7,r,!1)),n.xp6(4),n.hij(" ",n.lcZ(6,10,r.status)," ")}}function B(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function q(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"i",30),n.NdJ("click",function(t){var e=n.CHM(i).$implicit;return n.oxw().changeStatus(t,e)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,r.groupStatus),""),n.s9C("matTooltip",n.xi3(3,7,r,!0)),n.xp6(4),n.hij(" ",n.lcZ(6,10,r.groupStatus)," ")}}function U(t,e){1&t&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")))}function H(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"check_circle_outline"),n.qZA())}function j(t,e){if(1&t&&(n.TgZ(0,"td",32),n.YNc(1,H,2,0,"mat-icon",33),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf",i.sponsored)}}function G(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function Y(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberOrganization"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function V(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function K(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberEmail"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function J(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function Q(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberLogins"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function W(t,e){1&t&&n._UZ(0,"tr",34)}var X=function(t,e){return["/organizations",t,"members",e]};function $(t,e){if(1&t&&n._UZ(0,"tr",35),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disabledRouting)("disable-outline",r.disableRouting)("italic_font","DIRECT"!==i.membershipType),n.Q6J("perunWebAppsMiddleClickRouterLink",r.disableRouting?null:n.WLB(8,X,i.voId,i.id))("routerLink",r.disableRouting?null:n.WLB(11,X,i.voId,i.id))}}function tt(t,e){1&t&&(n.TgZ(0,"app-alert",36),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.Q6J("alert_type","warn"),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function et(t,e){1&t&&(n.TgZ(0,"app-alert",36),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.Q6J("alert_type","warn"),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}var it=function(){var t=function(){function t(e,i,r,o){v(this,t),this.dialog=e,this.authResolver=i,this.tableCheckbox=r,this.route=o,this.selection=new a.Ov,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.pageSize=10,this.disableRouting=!1,this.filter="",this.page=new n.vpe,this.updateTable=new n.vpe,this.pageSizeOptions=s.f7,this.canBeSelected=function(t){return"DIRECT"===t.membershipType}}return y(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"getSortDataForColumn",value:function(t,e,i){var n;switch(e){case"id":return t.id.toString();case"fullName":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return(0,s.Gw)(t);case"email":return(0,s.g$)(t);default:return""}}},{key:"getFilterDataForColumn",value:function(t,e){switch(e){case"fullName":return t.user?(0,s.bD)(t.user):"";case"email":return(0,s.g$)(t);case"logins":return(0,s.lt)(t);default:return""}}},{key:"getExportDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"fullName":return t.user?(0,s.bD)(t.user):"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return(0,s.Gw)(t);case"email":return(0,s.g$)(t);case"logins":return(0,s.lt)(t);default:return""}}},{key:"exportData",value:function(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return(0,s.Sd)(e,i,t.displayedColumns,t.getFilterDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,s.pR)(e,i,t.getSortDataForColumn,t)},this.dataSource.filter=this.filter,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}},{key:"ngOnChanges",value:function(){var t=this;this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new o.by(this.members),this.setDataSource(),this.disabledRouting=this.disableRouting,this.route.parent.params.subscribe(function(e){e.groupId&&(t.groupId=e.groupId)})}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"changeStatus",value:function(t,e){var i=this;if(t.stopPropagation(),"INVALID"===e.status){var n=(0,s.kZ)();n.width="500px",n.data={member:e},this.dialog.open(u.pf,n).afterClosed().subscribe(function(t){t&&i.updateTable.emit(!0)})}}},{key:"viewMemberGroupTree",value:function(t){var e=(0,s.kZ)();e.width="800px",e.data={member:t,groupId:this.groupId},this.dialog.open(u.jd,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(l.uw),n.Y36(c.x4),n.Y36(c.UA),n.Y36(h.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-members-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(s.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",filter:"filter"},outputs:{page:"page",updateTable:"updateTable"},features:[n.TTD],decls:37,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["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-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","italic_font","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["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-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,R,2,3,"th",4),n.YNc(5,I,3,6,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,O,3,3,"th",7),n.YNc(8,P,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,D,1,0,"th",7),n.YNc(11,L,2,1,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,N,3,3,"th",7),n.YNc(14,z,3,3,"td",9),n.BQk(),n.ynx(15,11),n.YNc(16,F,3,3,"th",7),n.YNc(17,Z,7,12,"td",9),n.BQk(),n.ynx(18,12),n.YNc(19,B,3,3,"th",7),n.YNc(20,q,7,12,"td",9),n.BQk(),n.ynx(21,13),n.YNc(22,U,3,3,"th",14),n.YNc(23,j,2,1,"td",15),n.BQk(),n.ynx(24,16),n.YNc(25,G,3,3,"th",7),n.YNc(26,Y,3,3,"td",9),n.BQk(),n.ynx(27,17),n.YNc(28,V,3,3,"th",7),n.YNc(29,K,3,3,"td",9),n.BQk(),n.ynx(30,18),n.YNc(31,J,3,3,"th",4),n.YNc(32,Q,3,3,"td",9),n.BQk(),n.YNc(33,W,1,0,"tr",19),n.YNc(34,$,1,14,"tr",20),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,tt,3,4,"app-alert",21),n.YNc(36,et,3,4,"app-alert",21)),2&t&&(n.Q6J("hidden",0===e.members.length||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(31),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0!==e.members.length&&0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("ngIf",0===e.members.length))},directives:[d.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,f.O5,o.ge,p.oG,o.ev,g.gM,r.nU,m.Hw,o.XQ,o.Gk,b.YH,h.rH,w.w],pipes:[_.X$,A.d,k.u,T.i,C.f,S.M,E.D,x.p],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_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}.italic_font[_ngcontent-%COMP%]{font-style:italic}"]}),t}()},11418:function(t,e,i){"use strict";i.d(e,{c:function(){return p}});var n=i(31572),r=i(88426),a=i(27613),s=i(81954),u=i(84608),c=i(61511),l=i(43691),h=i(48160);function d(t,e){if(1&t&&(n.TgZ(0,"div",5),n.TgZ(1,"mat-icon"),n._uU(2),n.qZA(),n.qZA()),2&t){var i=n.oxw();n.xp6(2),n.Oqu(i.data.icon)}}function f(t,e){if(1&t&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.hij(" ",i.showTimestamp()," ")}}var p=function(){var t=function(){function t(e,i){v(this,t),this.dialog=e,this.notificationStorageService=i,this.newNotification=!1,this.closeNotification=new n.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}return y(t,[{key:"doAction",value:function(){var t=this;if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{var e=(0,a.kZ)();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(s.FM,e).afterClosed().subscribe(function(){t.closeSelf()})}}},{key:"closeSelf",value:function(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}},{key:"ngOnInit",value:function(){var t=this;(0,a.ys)(this.data.delay,function(){t.alreadyClosed||t.waiting||t.closeSelf()})}},{key:"showTimestamp",value:function(){var t=o(this.data.timeStamp.split(":"),2),e=t[0],i=t[1];return i.length<2?e+":0"+i:this.data.timeStamp}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.uw),n.Y36(r.SZ))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"div",0),n.NdJ("click",function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()}),n.YNc(2,d,3,1,"div",1),n.TgZ(3,"div",2),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,f,2,1,"div",3),n.TgZ(7,"div",4),n.NdJ("click",function(){return e.waiting=!0,e.doAction()}),n._uU(8),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Gre("notification ",e.inDialog?"":"mat-elevation-z7",""),n.ekj("error","error"===e.data.type)("success","success"===e.data.type),n.xp6(2),n.Q6J("ngIf",null!==e.data.icon),n.xp6(2),n.hij(" ",n.lcZ(5,12,e.data.title)," "),n.xp6(2),n.Q6J("ngIf",e.inDialog),n.xp6(1),n.Q6J("hidden",e.alreadyPressed),n.xp6(1),n.hij(" ",e.data.actionText," "))},directives:[c.O5,l.Hw],pipes:[h.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}"]}),t}()},76198:function(t,e,i){"use strict";i.d(e,{$:function(){return I}});var n=i(31572),r=i(88426),o=i(33642),a=i(84608),s=i(48160),u=i(66283),c=i(80340),l=i(16073),h=i(61511),d=i(15980);function p(t,e){1&t&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}var g=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this.dialogRef=e,this.translate=i,this.notificator=n,this.rtMessages=r,this.storeService=o,this.message="",this.subject="",this.instanceName=""}return y(t,[{key:"ngOnInit",value:function(){this.instanceName=this.storeService.get("config")}},{key:"sendBugReport",value:function(){var t=this;this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(function(e){t.dialogRef.afterClosed().subscribe(function(){return t.notificator.showSuccess(t.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+e.ticketNumber)}),t.dialogRef.close()})}},{key:"getFullEmailBody",value:function(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(60306).i8}},{key:"close",value:function(){this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.so),n.Y36(s.sK),n.Y36(r.V6),n.Y36(o.Hr),n.Y36(r.d6))},t.\u0275cmp=n.Xpm({type:t,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(t,e){if(1&t&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n.TgZ(4,"mat-form-field"),n.TgZ(5,"mat-label"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"input",2,3),n.NdJ("ngModelChange",function(t){return e.subject=t}),n.qZA(),n.YNc(10,p,3,3,"mat-error",4),n.qZA(),n.TgZ(11,"mat-form-field"),n.TgZ(12,"mat-label"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"textarea",5),n.NdJ("ngModelChange",function(t){return e.message=t}),n.ALo(16,"translate"),n._uU(17," "),n.qZA(),n.TgZ(18,"mat-hint"),n._uU(19),n.ALo(20,"translate"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(21,"div",6),n.TgZ(22,"div",7),n.TgZ(23,"button",8),n.NdJ("click",function(){return e.close()}),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.TgZ(26,"button",9),n.NdJ("click",function(){return e.sendBugReport()}),n._uU(27),n.ALo(28,"translate"),n.qZA(),n.qZA(),n.qZA()),2&t){var i=n.MAs(9);n.xp6(1),n.Oqu(n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),n.xp6(5),n.Oqu(n.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),n.xp6(2),n.Q6J("ngModel",e.subject),n.xp6(2),n.Q6J("ngIf",i.invalid),n.xp6(3),n.Oqu(n.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),n.xp6(2),n.s9C("placeholder",n.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),n.Q6J("ngModel",e.message),n.xp6(4),n.Oqu(n.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),n.xp6(5),n.hij(" ",n.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",i.invalid),n.xp6(1),n.hij(" ",n.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[a.uh,a.xY,u.KE,u.hX,c.Nt,l.Fj,l.Q7,l.JJ,l.On,h.O5,u.bx,a.H8,d.lW,u.TO],pipes:[s.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t}(),m=i(27613),b=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t,e,i){return t["".concat(i,"_").concat(e)]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"localisedText",type:t,pure:!0}),t}(),w=function(t){return{color:t}};function _(t,e){if(1&t&&(n.TgZ(0,"i",16),n._uU(1),n.qZA()),2&t){var i=n.oxw().$implicit,r=n.oxw(3);n.Q6J("ngStyle",n.VKq(2,w,r.linksTextColor)),n.xp6(1),n.hij(" ",i.icon," ")}}function A(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",17),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw(3).openDialog(t.dialog)}),n._uU(1),n.ALo(2,"localisedText"),n.qZA()}if(2&t){var r=n.oxw().$implicit,o=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,w,o.linksTextColor)),n.xp6(1),n.hij("",n.Dn7(2,2,r,o.language,"label")," ")}}function k(t,e){if(1&t&&(n.TgZ(0,"a",18),n._uU(1),n.ALo(2,"localisedText"),n.qZA()),2&t){var i=n.oxw().$implicit,r=n.oxw(3);n.Q6J("href",i.link,n.LSH)("ngStyle",n.VKq(7,w,r.linksTextColor)),n.xp6(1),n.Oqu(n.Dn7(2,3,i,r.language,"label"))}}function T(t,e){if(1&t&&(n.TgZ(0,"span",19),n._uU(1),n.ALo(2,"localisedText"),n.qZA()),2&t){var i=n.oxw().$implicit,r=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,w,r.linksTextColor)),n.xp6(1),n.Oqu(n.Dn7(2,2,i,r.language,"label"))}}function C(t,e){if(1&t&&(n.TgZ(0,"div",11),n.YNc(1,_,2,4,"i",12),n.YNc(2,A,3,8,"span",13),n.YNc(3,k,3,9,"a",14),n.YNc(4,T,3,8,"span",15),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf",i.icon),n.xp6(1),n.Q6J("ngIf",i.dialog),n.xp6(1),n.Q6J("ngIf",i.link&&!i.dialog),n.xp6(1),n.Q6J("ngIf",!i.link&&!i.dialog)}}function S(t,e){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,C,5,4,"div",10),n.qZA()),2&t){var i=n.oxw().$implicit;n.xp6(1),n.Q6J("ngForOf",i.elements)}}function E(t,e){if(1&t&&(n.TgZ(0,"div",7),n.TgZ(1,"h6",8),n._uU(2),n.ALo(3,"localisedText"),n.qZA(),n.YNc(4,S,2,1,"div",9),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Q6J("ngStyle",n.VKq(7,w,r.headersTextColor)),n.xp6(1),n.hij(" ",n.Dn7(3,3,i,r.language,"title")," "),n.xp6(2),n.Q6J("ngIf",i.elements)}}function x(t,e){if(1&t&&(n.TgZ(0,"span"),n.TgZ(1,"a",6),n._uU(2),n.qZA(),n.qZA()),2&t){var i=e.$implicit,r=e.index,o=n.oxw();n.xp6(1),n.Q6J("href",i.url,n.LSH)("ngStyle",n.VKq(3,w,o.copyrightTextColor)),n.xp6(1),n.Oqu(r?", "+i.name:i.name)}}var R=function(t){return{background:t}},I=function(){var t=function(){function t(e,i,r){v(this,t),this.storeService=e,this.translateService=i,this.dialog=r,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),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.footerHeight=new n.vpe}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.translateService.onLangChange.subscribe(function(e){t.language=e.lang}),this.version=i(60306).i8,this.items=this.storeService.get("footer","columns"),this.copyrightItems=this.storeService.get("footer","copyright_items"),this.getHeight()}},{key:"openDialog",value:function(t){var e=(0,m.kZ)();switch(t){case"reportIssue":e.width="550px",this.dialog.open(g,e)}}},{key:"getHeight",value:function(){var t,e=1,i=f(this.items);try{for(i.s();!(t=i.n()).done;){var n=t.value;e=e-1)},directives:[r.O5,o.Hw,a.gM],pipes:[s.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),t}()},59403:function(t,e,i){"use strict";i.d(e,{t:function(){return u}});var n=i(31572),r=i(15980),o=i(36922),a=i(43691),s=i(48160),u=function(){var t=function(){function t(){v(this,t),this.refresh=new n.vpe}return y(t,[{key:"onClickbutton",value:function(t){this.refresh.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&(n.TgZ(0,"button",0),n.NdJ("click",function(t){return e.onClickbutton(t)}),n.ALo(1,"translate"),n._UZ(2,"mat-icon",1),n.qZA()),2&t&&(n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),n.Q6J("disabled",e.disabled),n.xp6(2),n.s9C("svgIcon",e.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[r.lW,o.gM,a.Hw],pipes:[s.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}"]}),t}()},88884:function(t,e,i){"use strict";i.d(e,{C:function(){return G}});var n=i(31572),r=i(58623),o=i(67033),a=i(4230),s=i(27613),u=i(88426),c=i(82819),l=i(61511),h=i(29236),d=i(72953),f=i(68529),p=i(84534),g=i(57629),m=i(39571),b=i(48160),w=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){if(null==t)return null;var e="";return t.forEach(function(t){e=e.concat(t.tagName)}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"resourceTagsToString",type:t,pure:!0}),t}(),_=i(95603);function A(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"th",20),n.TgZ(1,"mat-checkbox",21),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw();return t?e.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function k(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",22),n.TgZ(1,"mat-checkbox",23),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.itemSelectionToggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))}}function T(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")))}function C(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function S(t,e){1&t&&n._UZ(0,"th",20)}function E(t,e){if(1&t&&(n.TgZ(0,"td",25),n._UZ(1,"perun-web-apps-recently-viewed-icon",26),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Q6J("recentIds",r.recentIds)("id",i.id)}}function x(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")))}function R(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.name)}}function I(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")))}function O(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.vo.name)}}function P(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")))}function D(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",25),n.TgZ(1,"perun-web-apps-group-resource-status",27),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw();return t.disabledRouting=t.disableRouting})("statusChange",function(){return n.CHM(i),n.oxw().refreshTable.emit()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("theme","group-theme")("resourceId",r.id)("groupId",o.groupId)("failureCause",r.failureCause)("status",r.status)}}function M(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.facility.name)}}function N(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"resourceTagsToString"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i.resourceTags))}}function F(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")))}function Z(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.description)}}function B(t,e){1&t&&n._UZ(0,"tr",28)}var q=function(t){return[t]};function U(t,e){if(1&t&&(n._UZ(0,"tr",29),n.ALo(1,"getResourceRoute"),n.ALo(2,"getResourceRoute")),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disableRouting)("disable-outline",r.disabledRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",n.VKq(12,q,r.disabledRouting?null:n.xi3(1,6,i,r.routingVo)))("routerLink",r.disabledRouting?null:n.xi3(2,9,i,r.routingVo))}}function H(t,e){1&t&&(n.TgZ(0,"app-alert",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function j(t,e){1&t&&(n.TgZ(0,"app-alert",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}var G=function(){var t=function(){function t(e,i){v(this,t),this.guiAuthResolver=e,this.tableCheckbox=i,this.resources=[],this.selection=new a.Ov(!0,[]),this.pageSize=10,this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","name","vo","status","facility","tags","description"],this.pageSizeOptions=s.f7,this.groupId=null,this.page=new n.vpe,this.refreshTable=new n.vpe,this.allSelected=new n.vpe,this.removeAuth=!1,this.addAuth=!1}return y(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngOnInit",value:function(){this.disabledRouting=this.disableRouting}},{key:"ngOnChanges",value:function(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new o.by(this.resources),this.setDataSource(),this.dataSource.filter=this.filterValue,this.setAuth()}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return t.vo.name;case"name":return t.name;case"facility":return t.facility.name;case"description":return t.description;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"tags":if(!t.resourceTags)return t[e];var n="";return t.resourceTags.forEach(function(t){n=n.concat(t.tagName)}),n;case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}},{key:"exportData",value:function(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return(0,s.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t,!0)},this.dataSource.sortData=function(e,i){return(0,s.pR)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){var t=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource);return this.allSelected.emit(t),t}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1),this.setAuth()}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}},{key:"setAuth",value:function(){var t=this,e=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce(function(i,n){return i&&t.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",e.concat([n]))},!0),this.addAuth=this.selection.selected.reduce(function(i,n){return i&&t.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",e.concat([n]))},!0)}},{key:"itemSelectionToggle",value:function(t){this.selection.toggle(t),this.setAuth()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.x4),n.Y36(u.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(s.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId"},outputs:{page:"page",refreshTable:"refreshTable",allSelected:"allSelected"},features:[n.TTD],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","status"],["matColumnDef","facility"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],[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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,A,2,3,"th",4),n.YNc(5,k,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,T,3,3,"th",7),n.YNc(8,C,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,S,1,0,"th",4),n.YNc(11,E,2,2,"td",10),n.BQk(),n.ynx(12,11),n.YNc(13,x,3,3,"th",7),n.YNc(14,R,2,1,"td",10),n.BQk(),n.ynx(15,12),n.YNc(16,I,3,3,"th",7),n.YNc(17,O,2,1,"td",10),n.BQk(),n.ynx(18,13),n.YNc(19,P,3,3,"th",7),n.YNc(20,D,2,5,"td",10),n.BQk(),n.ynx(21,14),n.YNc(22,M,3,3,"th",7),n.YNc(23,L,2,1,"td",10),n.BQk(),n.ynx(24,15),n.YNc(25,N,3,3,"th",7),n.YNc(26,z,3,3,"td",10),n.BQk(),n.ynx(27,16),n.YNc(28,F,3,3,"th",7),n.YNc(29,Z,2,1,"td",10),n.BQk(),n.YNc(30,B,1,0,"tr",17),n.YNc(31,U,3,14,"tr",18),n.qZA(),n.qZA(),n.qZA(),n.YNc(32,H,3,3,"app-alert",19),n.YNc(33,j,3,3,"app-alert",19)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.resources.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(28),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.resources.length),n.xp6(1),n.Q6J("ngIf",0===e.resources.length))},directives:[c.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,r.nU,d.W,f.x,o.XQ,o.Gk,p.YH,g.rH,m.w],pipes:[b.X$,w,_.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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t}()},23888:function(t,e,i){"use strict";i.d(e,{j:function(){return N}});var n=i(31572),r=i(4230),o=i(58623),a=i(67033),s=i(88426),u=i(27613),c=i(57629),l=i(82819),h=i(61511),d=i(29236),f=i(84534),p=i(39571),g=i(48160),m=i(83787),b=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){var e=t.find(function(t){return"mail"===t.friendlyName});return e?e.value.toString():"N/A"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"getMailFromAttributes",type:t,pure:!0}),t}();function w(t,e){1&t&&n._UZ(0,"th",17)}function _(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",18),n.TgZ(1,"mat-checkbox",19),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))}}function A(t,e){1&t&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))))}function k(t,e){if(1&t&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.userExtSource.id)}}function T(t,e){1&t&&(n.TgZ(0,"th",17),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))))}function C(t,e){if(1&t&&(n.TgZ(0,"td",21),n._uU(1),n.ALo(2,"getMailFromAttributes"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i.attributes))}}function S(t,e){if(1&t&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,i.extSourceNameHeader?i.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME")))}}function E(t,e){if(1&t&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.userExtSource.extSource.name)}}function x(t,e){if(1&t&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,i.loginHeader?i.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN")))}}function R(t,e){if(1&t&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.userExtSource.login)}}function I(t,e){1&t&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))))}function O(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.ALo(2,"date"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,i.userExtSource.lastAccess,"d.M.y H:mm:ss"))}}function P(t,e){1&t&&n._UZ(0,"tr",23)}var D=function(t,e){return["/admin","users",t,"identities",e]};function M(t,e){if(1&t&&n._UZ(0,"tr",24),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disableRouting)("disable-outline",r.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",r.disableRouting?null:n.WLB(6,D,r.userId,i.userExtSource.id))("routerLink",r.disableRouting?null:n.WLB(9,D,r.userId,i.userExtSource.id))}}function L(t,e){1&t&&(n.TgZ(0,"app-alert",25),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}var N=function(){var t=function(){function t(e,i){v(this,t),this.route=e,this.authResolver=i,this.selection=new r.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSize=5,this.page=new n.vpe,this.pageSizeOptions=u.f7}return y(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngAfterViewInit",value:function(){var t=this;this.disableRouting||this.route.parent.params.subscribe(function(e){t.userId=e.userId}),this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new a.by(this.userExtSources),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.userExtSource.id.toString();case"mail":var i=t.attributes.find(function(t){return"mail"===t.friendlyName});return i?i.value.toString():"N/A";case"extSourceName":return t.userExtSource.extSource.name;case"login":return t.userExtSource.login;case"lastAccess":return t.userExtSource.lastAccess.split(".")[0];default:return""}}},{key:"exportData",value:function(t){(0,u.O6)((0,u.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return(0,u.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,u.pR)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"checkboxLabel",value:function(t){return"".concat(this.selection.isSelected(t.userExtSource)?"deselect":"select"," row ").concat(t.userExtSource.id+1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.gz),n.Y36(s.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(u.l9,7),n.Gf(o.YE,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.child=i.first),n.iGM(i=n.CRH())&&(e.matSort=i.first))},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",pageSize:"pageSize",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.TTD],decls:24,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["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",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,w,1,0,"th",4),n.YNc(5,_,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,A,4,5,"th",7),n.YNc(8,k,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,T,4,5,"th",4),n.YNc(11,C,3,3,"td",8),n.BQk(),n.ynx(12,10),n.YNc(13,S,4,5,"th",7),n.YNc(14,E,2,1,"td",8),n.BQk(),n.ynx(15,11),n.YNc(16,x,4,5,"th",7),n.YNc(17,R,2,1,"td",8),n.BQk(),n.ynx(18,12),n.YNc(19,I,4,5,"th",7),n.YNc(20,O,3,4,"td",13),n.BQk(),n.YNc(21,P,1,0,"tr",14),n.YNc(22,M,1,12,"tr",15),n.qZA(),n.qZA(),n.qZA(),n.YNc(23,L,4,5,"app-alert",16)),2&t&&(n.Q6J("hidden",0===e.userExtSources.length||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(19),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.userExtSources.length))},directives:[l.l,a.BZ,o.YE,a.w1,a.fO,a.Dz,a.as,a.nj,h.O5,a.ge,a.ev,d.oG,o.nU,a.XQ,a.Gk,f.YH,c.rH,p.w],pipes:[g.X$,m.a,b,h.uU],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t}()},7927:function(t,e,i){"use strict";i.d(e,{S:function(){return s}});var n=i(31572),r=i(27613),o=i(44973),a=i(48160),s=function(){var t=function(){function t(){v(this,t),this.disableAutoSelect=!1,this.userSelected=new n.vpe,this.userFullNameFunction=r.bD}return y(t,[{key:"ngOnInit",value:function(){this.users=this.users.sort(r.fx)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-user-search-select"]],inputs:{users:"users",disableAutoSelect:"disableAutoSelect"},outputs:{userSelected:"userSelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.userSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.users)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.userFullNameFunction)("mainTextFunction",e.userFullNameFunction)("selectPlaceholder",n.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",n.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",n.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},directives:[o.i],pipes:[a.X$],styles:[""]}),t}()},19386:function(t,e,i){"use strict";i.d(e,{M:function(){return a}});var n=i(31572),r=i(44973),o=i(48160),a=function(){var t=function t(){v(this,t),this.voSelected=new n.vpe,this.nameFunction=function(t){return t.name},this.shortNameFunction=function(t){return t.shortName},this.searchFunction=function(t){return t.name+t.shortName+t.id}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vos:"vos"},outputs:{voSelected:"voSelected"},decls:4,vars:13,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.voSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.vos)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",n.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",n.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",n.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},directives:[r.i],pipes:[o.X$],styles:[""]}),t}()},97162:function(t,e,i){"use strict";i.d(e,{Z:function(){return D}});var n=i(31572),r=i(58623),o=i(67033),a=i(27613),s=i(88426),u=i(82819),c=i(61511),l=i(29236),h=i(72953),d=i(84534),f=i(57629),p=i(39571),g=i(48160);function m(t,e){1&t&&n._UZ(0,"th",15)}function b(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",16),n.TgZ(1,"mat-checkbox",17),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))}}function w(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")))}function _(t,e){if(1&t&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function A(t,e){1&t&&n._UZ(0,"th",15)}function k(t,e){if(1&t&&(n.TgZ(0,"td",19),n._UZ(1,"perun-web-apps-recently-viewed-icon",20),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Q6J("recentIds",r.recentIds)("id",i.id)}}function T(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")))}function C(t,e){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.shortName)}}function S(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")))}function E(t,e){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.name)}}function x(t,e){1&t&&n._UZ(0,"tr",21)}var R=function(t){return["/organizations",t]};function I(t,e){if(1&t&&n._UZ(0,"tr",22),2&t){var i=e.$implicit,r=n.oxw();n.ekj("disable-outline",r.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",r.disableRouting?null:n.VKq(4,R,i.id))("routerLink",r.disableRouting?null:n.VKq(6,R,i.id))}}function O(t,e){1&t&&(n.TgZ(0,"app-alert",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function P(t,e){1&t&&(n.TgZ(0,"app-alert",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}var D=function(){var t=function(){function t(e){v(this,t),this.authResolver=e,this.vos=[],this.displayedColumns=[],this.pageSize=10,this.disableRouting=!1,this.pageSizeOptions=a.f7,this.page=new n.vpe}return y(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new o.by(this.vos),this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"shortName":return t.shortName;case"name":return t.name;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;default:return t[e]}}},{key:"exportData",value:function(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return(0,a.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,a.pR)(e,i,t.getDataForColumn,t)},this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"checkboxLabel",value:function(t){return"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(a.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[n.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,m,1,0,"th",4),n.YNc(5,b,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,w,3,3,"th",7),n.YNc(8,_,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,A,1,0,"th",4),n.YNc(11,k,2,2,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,T,3,3,"th",7),n.YNc(14,C,2,1,"td",9),n.BQk(),n.ynx(15,11),n.YNc(16,S,3,3,"th",7),n.YNc(17,E,2,1,"td",9),n.BQk(),n.YNc(18,x,1,0,"tr",12),n.YNc(19,I,1,8,"tr",13),n.qZA(),n.qZA(),n.qZA(),n.YNc(20,O,3,3,"app-alert",14),n.YNc(21,P,3,3,"app-alert",14)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.vos.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(16),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.vos.length),n.xp6(1),n.Q6J("ngIf",0===e.vos.length))},directives:[u.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,c.O5,o.ge,o.ev,l.oG,r.nU,h.W,o.XQ,o.Gk,d.YH,f.rH,p.w],pipes:[g.X$],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}tr[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t}()},81954:function(t,e,i){"use strict";i.d(e,{Wr:function(){return dt},r2:function(){return ht},gr:function(){return vt},u3:function(){return Qt},pf:function(){return _},hd:function(){return ie},kZ:function(){return $t},wA:function(){return lt},rd:function(){return D},Eg:function(){return P},Bp:function(){return q},qD:function(){return qt},jd:function(){return Zt},FM:function(){return V},Lc:function(){return it},mk:function(){return ot},Tf:function(){return kt}}),i(22280);var n=i(84608),r=i(33642),o=i(88426),a=i(31572),s=i(48160),u=i(61511),c=i(15980),l=i(67806),h=i(66283),d=i(4786),p=i(71522);function g(t,e){1&t&&a._UZ(0,"mat-spinner",6)}function m(t,e){if(1&t&&(a.TgZ(0,"mat-option",16),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.Q6J("value",i),a.xp6(1),a.Oqu(i)}}function b(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"mat-form-field",13),a.TgZ(1,"mat-label"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"mat-select",14),a.NdJ("selectionChange",function(t){return a.CHM(i),a.oxw(2).changeStatus(t)}),a.YNc(5,m,2,2,"mat-option",15),a.qZA(),a.qZA()}if(2&t){var n=a.oxw(2);a.xp6(2),a.Oqu(a.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),a.xp6(3),a.Q6J("ngForOf",n.allStatuses)}}function w(t,e){if(1&t&&(a.TgZ(0,"div",7),a.TgZ(1,"div",8),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"div",9),a._uU(5),a.qZA(),a.TgZ(6,"div",8),a._uU(7),a.ALo(8,"translate"),a.YNc(9,b,6,4,"mat-form-field",10),a.qZA(),a.TgZ(10,"div",11),a._UZ(11,"i",12),a.qZA(),a.qZA()),2&t){var i=a.oxw();a.xp6(2),a.AsE("",a.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",i.actualStatus,""),a.xp6(3),a.Oqu(i.description),a.xp6(2),a.hij(" ",a.lcZ(8,8,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),a.xp6(2),a.Q6J("ngIf",!i.loading),a.xp6(2),a.Q6J("innerHTML",i.changeMessage,a.oJD)}}var _=function(){var t=function(){function t(e,i,n,r,o,a){v(this,t),this.dialogRef=e,this.data=i,this.memberManager=n,this.groupsManager=r,this.notificatorService=o,this.translate=a,this.loading=!1,this.allStatuses=["VALID","INVALID","EXPIRED","DISABLED"]}return y(t,[{key:"ngOnInit",value:function(){var t=this;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.allStatuses=this.data.groupId?"VALID"===this.actualStatus?["EXPIRED"]:["VALID"]:"INVALID"===this.actualStatus?["VALID","EXPIRED"]:this.allStatuses.filter(function(e){return e!==t.actualStatus}),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.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=""}}},{key:"changeStatus",value:function(t){this.selectedStatus=t.value,this.submitButtonText="VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}},{key:"changeStatusMessage",value:function(t,e){if("VALID"===t)switch(e){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(e){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=""}}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){var t=this;this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe(function(e){t.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(function(i){t.notificatorService.showSuccess(i),t.dialogRef.close(e)})},function(){return t.loading=!1}):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe(function(e){t.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(function(i){t.notificatorService.showSuccess(i),t.dialogRef.close(e)})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.uq),a.Y36(r.ff),a.Y36(o.V6),a.Y36(s.sK))},t.\u0275cmp=a.Xpm({type:t,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","mr-2 mt-2",4,"ngIf"],[1,"text-muted","new-line"],[3,"innerHTML"],[1,"mr-2","mt-2"],[3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,g,1,0,"mat-spinner",1),a.YNc(5,w,12,10,"div",2),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return e.cancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return e.submit()}),a._uU(11),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),a.xp6(2),a.Q6J("disabled",e.loading||!e.selectedStatus),a.xp6(1),a.hij(" ",e.submitButtonText," "))},directives:[n.uh,u.O5,n.H8,c.lW,l.$g,n.xY,h.KE,h.hX,d.gD,u.sg,p.ey],pipes:[s.X$],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),t}(),A=i(16073),k=i(80340);function T(t,e){1&t&&(a.TgZ(0,"h1",7),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")))}function C(t,e){1&t&&(a.TgZ(0,"h1",7),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")))}function S(t,e){1&t&&(a.TgZ(0,"h1",7),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")))}function E(t,e){1&t&&(a.TgZ(0,"h1",7),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")))}function x(t,e){1&t&&a._UZ(0,"mat-spinner",8)}function R(t,e){if(1&t&&(a.TgZ(0,"mat-form-field"),a._UZ(1,"input",13),a.ALo(2,"translate"),a.qZA()),2&t){var i=a.oxw(2);a.xp6(1),a.MGl("placeholder","",a.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),a.Q6J("value",i.shortName)}}function I(t,e){if(1&t&&(a.TgZ(0,"mat-form-field",14),a._UZ(1,"textarea",15),a.ALo(2,"translate"),a.TgZ(3,"mat-error"),a._uU(4),a.ALo(5,"translate"),a.qZA(),a.qZA()),2&t){var i=a.oxw(2);a.xp6(1),a.MGl("placeholder","",a.lcZ(2,3,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),a.Q6J("formControl",i.descriptionCtrl),a.xp6(3),a.hij(" ",a.lcZ(5,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_DESCRIPTION")," ")}}function O(t,e){if(1&t&&(a.TgZ(0,"div",9),a.YNc(1,R,3,4,"mat-form-field",10),a.TgZ(2,"mat-form-field"),a._UZ(3,"input",11),a.ALo(4,"translate"),a.TgZ(5,"mat-error"),a._uU(6),a.ALo(7,"translate"),a.qZA(),a.qZA(),a.YNc(8,I,6,7,"mat-form-field",12),a.qZA()),2&t){var i=a.oxw();a.xp6(1),a.Q6J("ngIf",2===i.dialogType),a.xp6(2),a.MGl("placeholder","",a.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),a.Q6J("formControl",i.nameCtrl),a.xp6(3),a.hij(" ",i.invalidNameMessage.length?i.invalidNameMessage:a.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),a.xp6(2),a.Q6J("ngIf",2!==i.dialogType)}}var P=function(t){return t[t.FACILITY=0]="FACILITY",t[t.RESOURCE=1]="RESOURCE",t[t.VO=2]="VO",t[t.GROUP=3]="GROUP",t}({}),D=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c){v(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translateService=r,this.facilitiesManager=o,this.resourcesManager=a,this.groupsManager=s,this.vosManager=u,this.store=c,this.invalidNameMessage=this.data.dialogType===P.GROUP?this.store.get("groupNameErrorMessage"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===P.GROUP?this.store.get("groupNameSecondaryRegex"):""}return y(t,[{key:"ngOnInit",value:function(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case P.FACILITY:this.nameCtrl=new A.NI(this.data.facility.name,[A.kI.required,A.kI.pattern(".*[\\S]+.*"),A.kI.maxLength(129)]),this.descriptionCtrl=new A.NI(this.data.facility.description,[A.kI.required,A.kI.pattern(".*[\\S]+.*"),A.kI.maxLength(129)]);break;case P.RESOURCE:this.nameCtrl=new A.NI(this.data.resource.name,[A.kI.required,A.kI.pattern(".*[\\S]+.*"),A.kI.maxLength(129)]),this.descriptionCtrl=new A.NI(this.data.resource.description,[A.kI.required,A.kI.pattern(".*[\\S]+.*"),A.kI.maxLength(129)]);break;case P.GROUP:var t=this.data.group.name.split(":");this.nameCtrl=new A.NI(t[t.length-1],[A.kI.required,A.kI.pattern(".*[\\S]+.*"),A.kI.pattern(this.secondaryRegex),A.kI.maxLength(129)]),this.descriptionCtrl=new A.NI(this.data.group.description,[A.kI.required,A.kI.pattern(".*[\\S]+.*"),A.kI.maxLength(129)]);break;case P.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new A.NI(this.data.vo.name,[A.kI.required,A.kI.pattern(".*[\\S]+.*"),A.kI.maxLength(129)]),this.descriptionCtrl=new A.NI}}},{key:"cancel",value:function(){this.dialogRef.close(!1)}},{key:"submit",value:function(){switch(this.loading=!0,this.dialogType){case P.FACILITY:this.editFacility();break;case P.RESOURCE:this.editResource();break;case P.GROUP:this.editGroup();break;case P.VO:this.editVo()}}},{key:"editResource",value:function(){var t=this;this.data.resource.name=this.nameCtrl.value,this.data.resource.description=this.descriptionCtrl.value,this.resourcesManager.updateResource({resource:this.data.resource}).subscribe(function(){t.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.RESOURCE_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}},{key:"editFacility",value:function(){var t=this;this.data.facility.name=this.nameCtrl.value,this.data.facility.description=this.descriptionCtrl.value,this.facilitiesManager.updateFacility({facility:this.data.facility}).subscribe(function(){t.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FACILITY_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}},{key:"editGroup",value:function(){var t=this;this.groupsManager.getGroupById(this.data.group.id).subscribe(function(e){var i=e;i.name=t.nameCtrl.value,i.description=t.descriptionCtrl.value,t.groupsManager.updateGroup({group:i}).subscribe(function(){t.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"editVo",value:function(){var t=this;this.data.vo.name=this.nameCtrl.value,this.vosManager.updateVo({vo:this.data.vo}).subscribe(function(){t.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.VO_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.V6),a.Y36(s.sK),a.Y36(r.IQ),a.Y36(r.xk),a.Y36(r.ff),a.Y36(r.YF),a.Y36(o.d6))},t.\u0275cmp=a.Xpm({type:t,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","","required","",1,"overflow-hidden",3,"formControl","placeholder"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.YNc(1,T,3,3,"h1",0),a.YNc(2,C,3,3,"h1",0),a.YNc(3,S,3,3,"h1",0),a.YNc(4,E,3,3,"h1",0),a.TgZ(5,"div",1),a.YNc(6,x,1,0,"mat-spinner",2),a.YNc(7,O,9,9,"div",3),a.qZA(),a.TgZ(8,"div",4),a.TgZ(9,"button",5),a.NdJ("click",function(){return e.cancel()}),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.TgZ(12,"button",6),a.NdJ("click",function(){return e.submit()}),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("ngIf",0===e.dialogType),a.xp6(1),a.Q6J("ngIf",1===e.dialogType),a.xp6(1),a.Q6J("ngIf",2===e.dialogType),a.xp6(1),a.Q6J("ngIf",3===e.dialogType),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),a.xp6(2),a.Q6J("disabled",e.loading||e.nameCtrl.invalid||e.descriptionCtrl.invalid),a.xp6(1),a.hij(" ",a.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},directives:[u.O5,n.xY,n.H8,c.lW,n.uh,l.$g,h.KE,k.Nt,A.Fj,A.Q7,A.JJ,A.oH,h.TO,k.D7],pipes:[s.X$],styles:[""]}),t}(),M=i(67004),L=i(27613),N=i(43691);function z(t,e){1&t&&a._UZ(0,"mat-spinner",8)}function F(t,e){if(1&t&&(a.TgZ(0,"div",9),a.TgZ(1,"span"),a._uU(2),a.ALo(3,"translate"),a.TgZ(4,"b"),a._uU(5),a.qZA(),a.qZA(),a._UZ(6,"br"),a.TgZ(7,"span"),a._uU(8),a.ALo(9,"translate"),a.TgZ(10,"b"),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a._UZ(13,"br"),a.TgZ(14,"span"),a._uU(15),a.ALo(16,"translate"),a.TgZ(17,"b"),a._uU(18),a.ALo(19,"translate"),a.qZA(),a.qZA(),a._UZ(20,"br"),a.TgZ(21,"span"),a._uU(22),a.ALo(23,"translate"),a.TgZ(24,"b"),a._uU(25),a.ALo(26,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t){var i=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),a.xp6(3),a.Oqu(i.group.name),a.xp6(3),a.hij(" ",a.lcZ(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),a.xp6(3),a.Oqu(a.lcZ(12,12,i.getSynchronizationType())),a.xp6(4),a.hij(" ",a.lcZ(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),a.xp6(3),a.Oqu(a.lcZ(19,16,i.getLastSyncState())),a.xp6(4),a.hij(" ",a.lcZ(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),a.xp6(3),a.Oqu(a.lcZ(26,20,i.getLastSyncTime()))}}function Z(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"button",10),a.NdJ("click",function(){return a.CHM(i),a.oxw().onForceStructure()}),a._uU(1),a.ALo(2,"translate"),a.qZA()}if(2&t){var n=a.oxw();a.Q6J("disabled",n.loading),a.xp6(1),a.hij(" ",a.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function B(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"button",10),a.NdJ("click",function(){return a.CHM(i),a.oxw().onForce()}),a._uU(1),a.ALo(2,"translate"),a.qZA()}if(2&t){var n=a.oxw();a.Q6J("disabled",n.loading),a.xp6(1),a.hij(" ",a.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}var q=function(){var t=function(){function t(e,i,n,r){v(this,t),this.dialogRef=e,this.data=i,this.groupService=n,this.notificator=r,this.loading=!0}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.loadGroup()}},{key:"onForceStructure",value:function(){var t=this;this.loading=!0,this.groupService.forceGroupStructureSynchronization(this.data.groupId).subscribe(function(){t.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.STRUCT_FORCE_SUCCESS"),t.loading=!1},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(null)}},{key:"onForce",value:function(){var t=this;this.loading=!0,this.isBasic()&&this.groupService.forceGroupSynchronization(this.group.id).subscribe(function(){t.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),t.refresh()},function(){return t.loading=!1}),this.isStructured()&&this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe(function(){t.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),t.refresh()},function(){return t.loading=!1})}},{key:"getSynchronizationType",value:function(){return this.isBasic()?"DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC":this.isStructured()?"DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC":"N/A"}},{key:"isBasic",value:function(){return"BASIC"===this.type}},{key:"isStructured",value:function(){return"STRUCTURED"===this.type}},{key:"getLastSyncState",value:function(){return this.isBasic()?""!==this.lastSyncState?this.lastSyncState:"OK":this.isStructured()?""!==this.lastStructSyncState?this.lastStructSyncState:"OK":"N/A"}},{key:"getLastSyncTime",value:function(){return this.isBasic()?this.lastSyncTime:this.isStructured()?this.lastStructSyncTime:"N/A"}},{key:"refresh",value:function(){this.loadGroup()}},{key:"loadGroup",value:function(){var t=this;this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[M.r.GROUP_SYNC_ENABLED,M.r.GROUP_LAST_SYNC_STATE,M.r.GROUP_LAST_SYNC_TIMESTAMP,M.r.GROUP_STRUCTURE_SYNC_ENABLED,M.r.GROUP_LAST_STRUCTURE_SYNC_STATE,M.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(function(e){t.group=e,t.syncEnabled=(0,L.IL)(t.group.attributes,M.r.GROUP_SYNC_ENABLED).value,t.lastSyncState=(0,L.IL)(t.group.attributes,M.r.GROUP_LAST_SYNC_STATE).value,t.lastSyncTime=(0,L.IL)(t.group.attributes,M.r.GROUP_LAST_SYNC_TIMESTAMP).value,t.structSyncEnabled=(0,L.IL)(t.group.attributes,M.r.GROUP_STRUCTURE_SYNC_ENABLED).value,t.lastStructSyncState=(0,L.IL)(t.group.attributes,M.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,t.lastStructSyncTime=(0,L.IL)(t.group.attributes,M.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,null!==t.syncEnabled&&"true"===t.syncEnabled&&(t.type="BASIC"),null!==t.structSyncEnabled&&t.structSyncEnabled&&(t.type="STRUCTURED"),t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.ff),a.Y36(o.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,z,1,0,"mat-spinner",1),a.YNc(5,F,27,22,"div",2),a.TgZ(6,"div",3),a.TgZ(7,"div",4),a.TgZ(8,"button",5),a.NdJ("click",function(){return e.refresh()}),a.TgZ(9,"mat-icon"),a._uU(10,"refresh"),a.qZA(),a.qZA(),a.YNc(11,Z,3,4,"button",6),a.YNc(12,B,3,4,"button",6),a.TgZ(13,"button",7),a.NdJ("click",function(){return e.onCancel()}),a._uU(14),a.ALo(15,"translate"),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(6),a.Q6J("ngIf",e.isStructured()),a.xp6(1),a.Q6J("ngIf",e.isBasic()||e.isStructured()),a.xp6(2),a.hij(" ",a.lcZ(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},directives:[n.uh,u.O5,n.H8,c.lW,N.Hw,l.$g,n.xY],pipes:[s.X$],styles:[""]}),t}();function U(t,e){1&t&&a._UZ(0,"mat-spinner",7)}function H(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function j(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function G(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",8),a.TgZ(1,"mat-form-field"),a.TgZ(2,"mat-label"),a._uU(3),a.ALo(4,"translate"),a.qZA(),a.TgZ(5,"input",9,10),a.NdJ("ngModelChange",function(t){return a.CHM(i),a.oxw().subject=t}),a.qZA(),a.YNc(7,H,3,3,"mat-error",11),a.qZA(),a.TgZ(8,"mat-form-field"),a.TgZ(9,"mat-label"),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.TgZ(12,"textarea",12,13),a.NdJ("ngModelChange",function(t){return a.CHM(i),a.oxw().message=t}),a.ALo(14,"translate"),a._uU(15," "),a.qZA(),a.YNc(16,j,3,3,"mat-error",11),a.qZA(),a.qZA()}if(2&t){var n=a.MAs(6),r=a.MAs(13),o=a.oxw();a.xp6(3),a.Oqu(a.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),a.xp6(2),a.Q6J("ngModel",o.subject),a.xp6(2),a.Q6J("ngIf",n.invalid),a.xp6(3),a.Oqu(a.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),a.xp6(2),a.s9C("placeholder",a.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),a.Q6J("ngModel",o.message),a.xp6(4),a.Q6J("ngIf",r.invalid)}}var Y=function(){var t=function(){function t(e,i,n,r,o,a){v(this,t),this.dialogRef=e,this.translate=i,this.notificator=n,this.rtMessages=r,this.data=o,this.storeService=a,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}return y(t,[{key:"ngOnInit",value:function(){this.data.error&&this.data.error.errorId&&(this.subject=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE")+this.parseMethod(this.data.error.call)+" ("+this.data.error.errorId+")")}},{key:"sendBugReport",value:function(){var t=this;this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(function(e){t.dialogRef.afterClosed().subscribe(function(){t.notificator.showSuccess(t.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+e.ticketNumber+t.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),t.dialogRef.close()},function(){t.loading=!1,t.dialogRef.afterClosed().subscribe(function(){})})}},{key:"getFullEmailBody",value:function(){var t=this.storeService.get("config"),e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;return e=(e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n")).concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.call+"\n\n"),this.data.error.payload&&(e=e.concat("Payload:\n"+this.data.error.payload+"\n\n")),(e=e.concat("Sended from new Perun Gui, version: "+i(60306).i8)).split("\n").join("\n ")}},{key:"parseMethod",value:function(t){return t?this.methodRegexp.exec(t)[1]:t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(s.sK),a.Y36(o.V6),a.Y36(r.Hr),a.Y36(n.WI),a.Y36(o.d6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.YNc(3,U,1,0,"mat-spinner",1),a.YNc(4,G,17,13,"div",2),a.TgZ(5,"div",3),a.TgZ(6,"div",4),a.TgZ(7,"button",5),a.NdJ("click",function(){return e.dialogRef.close()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",6),a.NdJ("click",function(){return e.sendBugReport()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(4),a.hij(" ",a.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),a.xp6(2),a.Q6J("disabled",""===e.message||""===e.subject||e.loading),a.xp6(1),a.hij(" ",a.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[n.uh,u.O5,n.H8,c.lW,l.$g,n.xY,h.KE,h.hX,k.Nt,A.Fj,A.Q7,A.JJ,A.On,h.TO],pipes:[s.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t}(),V=function(){var t=function(){function t(e,i,n){v(this,t),this.dialogRef=e,this.dialog=i,this.data=n}return y(t,[{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"onBugReportClick",value:function(){var t=this;this.dialogRef.afterClosed().subscribe(function(){var e=(0,L.kZ)();e.width="550px",e.data={error:t.data.error},e.autoFocus=!1,t.dialog.open(Y,e)}),this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.uw),a.Y36(n.WI))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a._uU(3),a.qZA(),a.TgZ(4,"div",2),a.TgZ(5,"div",3),a.TgZ(6,"button",4),a.NdJ("click",function(){return e.onBugReportClick()}),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.TgZ(9,"button",5),a.NdJ("click",function(){return e.onCloseClick()}),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(e.data.title),a.xp6(2),a.hij("\n",e.data.description,"\n"),a.xp6(3),a.Q6J("hidden","error"!==e.data.type),a.xp6(1),a.hij(" ",a.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),a.xp6(3),a.hij(" ",a.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[n.uh,n.xY,n.H8,c.lW],pipes:[s.X$],styles:[""]}),t}(),K=i(67033),J=i(83787);function Q(t,e){1&t&&a._UZ(0,"mat-spinner",3)}function W(t,e){1&t&&a._UZ(0,"th",15)}function X(t,e){if(1&t&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.xp6(1),a.hij(" ",i.userExtSource.extSource.name," ")}}function $(t,e){1&t&&a._UZ(0,"tr",17)}function tt(t,e){1&t&&a._UZ(0,"tr",18)}function et(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"div",4),a.TgZ(2,"p"),a._uU(3),a.ALo(4,"translate"),a.ALo(5,"customTranslate"),a.qZA(),a.TgZ(6,"div",5),a._uU(7),a.ALo(8,"translate"),a.ALo(9,"customTranslate"),a.qZA(),a.TgZ(10,"table",6),a.ynx(11,7),a.YNc(12,W,1,0,"th",8),a.YNc(13,X,2,1,"td",9),a.BQk(),a.YNc(14,$,1,0,"tr",10),a.YNc(15,tt,1,0,"tr",11),a.qZA(),a.qZA(),a.TgZ(16,"div",12),a.TgZ(17,"button",13),a.NdJ("click",function(){return a.CHM(i),a.oxw().onCancel()}),a._uU(18),a.ALo(19,"translate"),a.ALo(20,"customTranslate"),a.qZA(),a.TgZ(21,"button",14),a.NdJ("click",function(){return a.CHM(i),a.oxw().onSubmit()}),a._uU(22),a.ALo(23,"translate"),a.ALo(24,"customTranslate"),a.qZA(),a.qZA(),a.qZA()}if(2&t){var n=a.oxw();a.xp6(3),a.hij(" ",a.lcZ(4,7,a.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),a.xp6(4),a.hij(" ",a.lcZ(8,11,a.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),a.xp6(3),a.Q6J("dataSource",n.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",n.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",n.displayedColumns),a.xp6(3),a.hij(" ",a.lcZ(19,15,a.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),a.xp6(4),a.hij(" ",a.lcZ(23,19,a.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}var it=function(){var t=function(){function t(e,i,n,r,o){var a=this;v(this,t),this.dialogRef=e,this.data=i,this.usersManagerService=n,this.translate=r,this.notificator=o,this.force=!1,this.displayedColumns=["name"],r.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(function(t){return a.successMessage=t})}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new K.by(this.data.extSources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(function(){t.onSubmit()},function(){return t.loading=!1}):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.Fv),a.Y36(s.sK),a.Y36(o.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div"),a.YNc(5,Q,1,0,"mat-spinner",1),a.YNc(6,et,25,23,"div",2),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,6,a.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE"))),a.xp6(3),a.Tol(e.theme),a.xp6(1),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,u.O5,l.$g,n.xY,K.BZ,K.w1,K.fO,K.Dz,K.as,K.nj,n.H8,c.lW,K.ge,K.ev,K.XQ,K.Gk],pipes:[s.X$,J.a],styles:[""]}),t}(),nt=i(10901),rt=i(81391),ot=function(){var t=function(){function t(e,i){v(this,t),this.dialogRef=e,this.data=i}return y(t,[{key:"ngOnInit",value:function(){this.value=this.data.value,this.title=this.data.title}},{key:"onCancel",value:function(){this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a.TgZ(3,"textarea",2),a._uU(4),a.qZA(),a.qZA(),a.TgZ(5,"div",3),a.TgZ(6,"button",4),a.NdJ("click",function(){return e.onCancel()}),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.TgZ(9,"button",5),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(e.title),a.xp6(3),a.Oqu(e.value),a.xp6(3),a.hij(" ",a.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),a.xp6(2),a.Q6J("cdkCopyToClipboard",e.value),a.xp6(1),a.hij(" ",a.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[n.uh,n.xY,nt.IC,k.Nt,n.H8,c.lW,rt.i3],pipes:[s.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),t}();function at(t,e){1&t&&a._UZ(0,"th",12)}function st(t,e){if(1&t&&(a.TgZ(0,"td",13),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.xp6(1),a.hij(" ",i.displayName," ")}}function ut(t,e){1&t&&a._UZ(0,"tr",14)}function ct(t,e){1&t&&a._UZ(0,"tr",15)}var lt=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.attributesManager=o,this.displayedColumns=["name"]}return y(t,[{key:"ngOnInit",value:function(){this.dataSource=new K.by(this.data.attributes)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t,e=this,i=[],n=f(this.data.attributes);try{for(n.s();!(t=n.n()).done;){var r=t.value;i.push(r.id)}}catch(a){n.e(a)}finally{n.f()}var o={};switch(o[this.data.entity]=this.data.entityId,o.attributes=i,void 0!==this.data.secondEntity&&(o[this.data.secondEntity]=this.data.secondEntityId),this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()});break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(function(){return e.onSuccess()});break;default:this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()})}break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(function(){return e.onSuccess()});break;default:this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.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(function(){return e.onSuccess()});break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(function(){return e.onSuccess()});break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()})}break;case"facility":this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()});break;case"resource":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){return e.onSuccess()})}}},{key:"onSuccess",value:function(){var t=this;this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.V6),a.Y36(s.sK),a.Y36(r.H8))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"div"),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"div",2),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"table",3),a.ynx(11,4),a.YNc(12,at,1,0,"th",5),a.YNc(13,st,2,1,"td",6),a.BQk(),a.YNc(14,ut,1,0,"tr",7),a.YNc(15,ct,1,0,"tr",8),a.qZA(),a.qZA(),a.TgZ(16,"div",9),a.TgZ(17,"button",10),a.NdJ("click",function(){return e.onCancel()}),a._uU(18),a.ALo(19,"translate"),a.qZA(),a.TgZ(20,"button",11),a.NdJ("click",function(){return e.onSubmit()}),a._uU(21),a.ALo(22,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),a.xp6(4),a.hij(" ",a.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),a.xp6(3),a.hij(" ",a.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),a.xp6(2),a.Q6J("dataSource",e.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",e.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",e.displayedColumns),a.xp6(3),a.hij(" ",a.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),a.xp6(3),a.hij(" ",a.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},directives:[n.uh,n.xY,K.BZ,K.w1,K.fO,K.Dz,K.as,K.nj,n.H8,c.lW,K.ge,K.ev,K.XQ,K.Gk],pipes:[s.X$],styles:[""]}),t}(),ht=function(){var t=function(){function t(e,i){v(this,t),this.dialogRef=e,this.data=i,this.attributeValue=""}return y(t,[{key:"ngOnInit",value:function(){this.attributeValue=this.data.attribute.value[this.data.index]}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h5",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"mat-form-field"),a.TgZ(5,"textarea",2),a.NdJ("ngModelChange",function(t){return e.attributeValue=t}),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return e.cancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return e.submit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE")),a.xp6(4),a.Q6J("ngModel",e.attributeValue),a.xp6(3),a.hij(" ",a.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),a.xp6(3),a.hij(" ",a.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[n.uh,n.xY,h.KE,nt.IC,k.Nt,A.Fj,A.JJ,A.On,n.H8,c.lW],pipes:[s.X$],styles:[""]}),t}(),dt=function(){var t=function(){function t(e,i){v(this,t),this.dialogRef=e,this.data=i}return y(t,[{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.dialogRef.close(!0)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h5",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"div"),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"div",2),a._uU(8),a.qZA(),a.qZA(),a.TgZ(9,"div",3),a.TgZ(10,"button",4),a.NdJ("click",function(){return e.cancel()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.TgZ(13,"button",5),a.NdJ("click",function(){return e.submit()}),a._uU(14),a.ALo(15,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE")),a.xp6(4),a.hij(" ",a.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),a.xp6(3),a.hij(" ",e.data.name," "),a.xp6(3),a.hij(" ",a.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),a.xp6(3),a.hij(" ",a.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[n.uh,n.xY,n.H8,c.lW],pipes:[s.X$],styles:[""]}),t}(),ft=i(39571);function pt(t,e){if(1&t&&(a.TgZ(0,"app-alert",9),a._uU(1),a.qZA()),2&t){var i=a.oxw();a.xp6(1),a.Oqu(i.pendingEmailsMessage)}}function gt(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}var vt=function(){var t=function(){function t(e,i,n,r,o,a){var s=this;v(this,t),this.dialogRef=e,this.data=i,this.translate=n,this.notificator=r,this.usersManagerService=o,this.authService=a,this.pendingMails=[],n.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(function(t){return s.successMessage=t}),n.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(function(t){return s.pendingEmailsMessageStart=t}),n.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(function(t){return s.pendingEmailsMessageEnd=t})}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.emailControl=new A.NI(null,[A.kI.required,A.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(function(e){t.pendingMails=e.filter(function(t,e,i){return e===i.indexOf(t)});var i="";t.pendingMails.forEach(function(e){return i+="".concat(e===t.pendingMails[0]?"":", ").concat(e)}),console.log(i),t.pendingEmailsMessage=t.pendingEmailsMessageStart+i+t.pendingEmailsMessageEnd})}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this,e=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",e[0]+"//"+e[2],this.authService.getIdpFilter()).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.dialogRef.close()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(s.sK),a.Y36(o.V6),a.Y36(r.Fv),a.Y36(o.e8))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.YNc(5,pt,2,1,"app-alert",2),a.TgZ(6,"mat-form-field",3),a.TgZ(7,"label",3),a._UZ(8,"input",4),a.ALo(9,"translate"),a.ALo(10,"customTranslate"),a.qZA(),a.YNc(11,gt,4,5,"mat-error",5),a.qZA(),a.qZA(),a.TgZ(12,"div",6),a.TgZ(13,"button",7),a.NdJ("click",function(){return e.onCancel()}),a._uU(14),a.ALo(15,"translate"),a.ALo(16,"customTranslate"),a.qZA(),a.TgZ(17,"button",8),a.NdJ("click",function(){return e.onSubmit()}),a._uU(18),a.ALo(19,"translate"),a.ALo(20,"customTranslate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,8,a.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),a.xp6(4),a.Q6J("ngIf",e.pendingMails.length),a.xp6(3),a.s9C("placeholder",a.lcZ(9,12,a.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),a.Q6J("formControl",e.emailControl),a.xp6(3),a.Q6J("ngIf",e.emailControl.invalid),a.xp6(3),a.hij(" ",a.lcZ(15,16,a.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),a.xp6(3),a.Q6J("disabled",!e.emailControl.valid),a.xp6(1),a.hij(" ",a.lcZ(19,20,a.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[n.uh,n.xY,u.O5,h.KE,k.Nt,A.Fj,A.Q7,A.JJ,A.oH,n.H8,c.lW,ft.w,h.TO],pipes:[s.X$,J.a],styles:[""]}),t}();function mt(t,e){1&t&&a._UZ(0,"mat-spinner",6)}function yt(t,e){1&t&&a._UZ(0,"th",15)}function bt(t,e){if(1&t&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.xp6(1),a.hij(" ",i," ")}}function wt(t,e){1&t&&a._UZ(0,"tr",17)}function _t(t,e){1&t&&a._UZ(0,"tr",18)}function At(t,e){if(1&t&&(a.TgZ(0,"div",7),a.TgZ(1,"p"),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,yt,1,0,"th",11),a.YNc(10,bt,2,1,"td",12),a.BQk(),a.YNc(11,wt,1,0,"tr",13),a.YNc(12,_t,1,0,"tr",14),a.qZA(),a.qZA()),2&t){var i=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,5,i.data.description)," "),a.xp6(3),a.hij(" ",a.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "),a.xp6(2),a.Q6J("dataSource",i.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",i.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",i.displayedColumns)}}var kt=function(){var t=function(){function t(e,i){v(this,t),this.dialogRef=e,this.data=i,this.displayedColumns=["name"],this.loading=!1}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new K.by(this.data.items)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){this.dialogRef.close(!0)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI))},t.\u0275cmp=a.Xpm({type:t,selectors:[["perun-web-apps-universal-remove-items-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,mt,1,0,"mat-spinner",1),a.YNc(5,At,13,9,"div",2),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return e.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return e.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,e.data.title)),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),a.xp6(2),a.Q6J("disabled",e.loading),a.xp6(1),a.hij(" ",a.lcZ(12,13,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," "))},directives:[n.uh,u.O5,n.H8,c.lW,l.$g,n.xY,K.BZ,K.w1,K.fO,K.Dz,K.as,K.nj,K.ge,K.ev,K.XQ,K.Gk],pipes:[s.X$],styles:[""]}),t}(),Tt=i(71709),Ct=i(91010),St=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){var e=t.split(":");return e[e.length-1]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=a.Yjl({name:"parseGroupName",type:t,pure:!0}),t}();function Et(t,e){1&t&&a._UZ(0,"mat-spinner",7)}function xt(t,e){1&t&&(a.TgZ(0,"app-alert"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function Rt(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function It(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}var Ot=function(t){return{"min-width":t}};function Pt(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"mat-tree-node",16),a.TgZ(1,"li",17),a.TgZ(2,"div",18),a.NdJ("click",function(){var t=a.CHM(i).$implicit;return a.oxw(3).navigate(t.id,t.include)}),a._UZ(3,"button",19),a.TgZ(4,"div",20),a.TgZ(5,"span"),a._uU(6),a.ALo(7,"parseGroupName"),a.qZA(),a.YNc(8,Rt,3,3,"span",21),a.YNc(9,It,3,3,"span",21),a.qZA(),a.TgZ(10,"span",22),a._uU(11),a.qZA(),a.qZA(),a.qZA(),a.qZA()}if(2&t){var n=e.$implicit,r=a.oxw(3);a.xp6(2),a.ekj("cursor-pointer",n.direct||n.include)("act-disabled",!n.direct&&!n.include),a.xp6(2),a.Q6J("ngStyle",a.VKq(11,Ot,r.getMinWidth(n.level))),a.xp6(2),a.Oqu(a.lcZ(7,9,n.name)),a.xp6(2),a.Q6J("ngIf",n.direct),a.xp6(1),a.Q6J("ngIf",n.include),a.xp6(2),a.Oqu(n.description)}}function Dt(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Mt(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Lt(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"mat-nested-tree-node"),a.TgZ(1,"li"),a.TgZ(2,"div",17),a.TgZ(3,"button",24),a.TgZ(4,"mat-icon",25),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"div",18),a.NdJ("click",function(){var t=a.CHM(i).$implicit;return a.oxw(3).navigate(t.id,t.include)}),a.TgZ(7,"div",20),a.TgZ(8,"span"),a._uU(9),a.ALo(10,"parseGroupName"),a.qZA(),a.YNc(11,Dt,3,3,"span",21),a.YNc(12,Mt,3,3,"span",21),a.qZA(),a.TgZ(13,"span",22),a._uU(14),a.qZA(),a.qZA(),a.qZA(),a.TgZ(15,"ul"),a.GkF(16,26),a.qZA(),a.qZA(),a.qZA()}if(2&t){var n=e.$implicit,r=a.oxw(3);a.xp6(3),a.uIk("aria-label","Toggle "+n.name),a.xp6(2),a.hij(" ",r.treeControl.isExpanded(n)?"expand_more":"chevron_right"," "),a.xp6(1),a.ekj("cursor-pointer",n.direct||n.include)("act-disabled",!n.direct&&!n.include),a.xp6(1),a.Q6J("ngStyle",a.VKq(15,Ot,r.getMinWidth(n.level))),a.xp6(2),a.Oqu(a.lcZ(10,13,n.name)),a.xp6(2),a.Q6J("ngIf",n.direct),a.xp6(1),a.Q6J("ngIf",n.include),a.xp6(2),a.Oqu(n.description),a.xp6(1),a.ekj("example-tree-invisible",!r.treeControl.isExpanded(n))}}function Nt(t,e){if(1&t&&(a.TgZ(0,"mat-tree",13),a.YNc(1,Pt,12,13,"mat-tree-node",14),a.YNc(2,Lt,17,17,"mat-nested-tree-node",15),a.qZA()),2&t){var i=a.oxw(2);a.Q6J("dataSource",i.dataSource)("treeControl",i.treeControl),a.xp6(2),a.Q6J("matTreeNodeDefWhen",i.hasChild)}}function zt(t,e){if(1&t&&(a.TgZ(0,"div",8),a.TgZ(1,"p"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"mat-form-field",9),a._UZ(5,"input",10),a.ALo(6,"translate"),a.qZA(),a.YNc(7,xt,3,3,"app-alert",11),a.YNc(8,Nt,3,3,"mat-tree",12),a.qZA()),2&t){var i=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),a.xp6(3),a.s9C("placeholder",a.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),a.Q6J("formControl",i.formControl),a.xp6(2),a.Q6J("ngIf",!i.dataSource.data.length),a.xp6(1),a.Q6J("ngIf",i.dataSource.data.length)}}var Ft=function(t){return{name:t}},Zt=function(){var t=function(){function t(e,i,n){v(this,t),this.dialogRef=e,this.data=i,this.groupsManagerService=n,this.treeControl=new Tt.VY(function(t){return t.children}),this.dataSource=new Ct.WX,this.groupTree=[],this.paths=[],this.formControl=new A.NI(""),this.userName="",this.hasChild=function(t,e){return!!e.children&&e.children.length>0}}return y(t,[{key:"recursiveSearch",value:function(t,e,i){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];window.open("/organizations/".concat(this.data.member.voId,"/groups/").concat(t).concat(e?"/settings/relations":""),"_blank")}},{key:"getMinWidth",value:function(t){return 400-40*t+"px"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.ff))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,Et,1,0,"mat-spinner",2),a.YNc(5,zt,9,9,"div",3),a.TgZ(6,"div",4),a.TgZ(7,"div",5),a.TgZ(8,"button",6),a.NdJ("click",function(){return e.onCancel()}),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",a.VKq(9,Ft,e.userName))),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(4),a.hij(" ",a.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},directives:[n.uh,u.O5,n.H8,c.lW,l.$g,n.xY,h.KE,k.Nt,A.Fj,A.JJ,A.oH,ft.w,Ct.gi,Ct.fQ,Ct.uo,Ct.eu,u.PC,Ct.GZ,N.Hw,Ct.Ar],pipes:[s.X$,St],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] ul[_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:auto!important}"]}),t}(),Bt=i(57629),qt=function(){var t=function(){function t(e,i){v(this,t),this.dialogRef=e,this.router=i}return y(t,[{key:"onClose",value:function(){this.router.navigate([]),this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(Bt.F0))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"app-alert",2),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.qZA(),a.TgZ(7,"div",3),a.TgZ(8,"button",4),a.NdJ("click",function(){return e.onClose()}),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE")),a.xp6(4),a.Oqu(a.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),a.xp6(4),a.hij(" ",a.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[n.uh,n.xY,ft.w,n.H8,c.lW],pipes:[s.X$],styles:[""]}),t}(),Ut=i(54810),Ht=i(15812),jt=i(58506);function Gt(t,e){1&t&&(a.TgZ(0,"mat-radio-button",15),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function Yt(t,e){1&t&&(a.TgZ(0,"mat-radio-button",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}var Vt=function(){var t=function(){function t(e){v(this,t),this.dialogRef=e,this.canExtendMembership=!1,this.expirationChanged=new a.vpe,this.expirationControl=new A.NI(null)}return y(t,[{key:"ngOnInit",value:function(){"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}},{key:"onChange",value:function(){this.expirationChanged.emit(this.newExpiration)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"setExpiration",value:function(){this.newExpiration=(0,u.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,u.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so))},t.\u0275cmp=a.Xpm({type:t,selectors:[["perun-web-apps-change-expiration-dialog"]],inputs:{currentExpiration:"currentExpiration",newExpiration:"newExpiration",canExtendMembership:"canExtendMembership",minDate:"minDate",maxDate:"maxDate",mode:"mode"},outputs:{expirationChanged:"expirationChanged"},decls:36,vars:36,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"],["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"]],template:function(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"p"),a.TgZ(3,"strong"),a._uU(4),a.ALo(5,"translate"),a.qZA(),a._uU(6),a.ALo(7,"parseDate"),a.qZA(),a.TgZ(8,"p"),a.TgZ(9,"strong"),a._uU(10),a.ALo(11,"translate"),a.qZA(),a._uU(12),a.ALo(13,"parseDate"),a.qZA(),a.TgZ(14,"mat-radio-group",2),a.NdJ("ngModelChange",function(t){return e.newExpiration=t}),a.TgZ(15,"mat-radio-button",3),a.TgZ(16,"mat-form-field",4),a.NdJ("click",function(){return a.CHM(i),a.MAs(23).open()}),a.TgZ(17,"mat-label"),a._uU(18),a.ALo(19,"translate"),a.qZA(),a.TgZ(20,"input",5),a.NdJ("dateChange",function(){return e.setExpiration()}),a.qZA(),a._UZ(21,"mat-datepicker-toggle",6),a._UZ(22,"mat-datepicker",7,8),a.qZA(),a.qZA(),a.YNc(24,Gt,3,3,"mat-radio-button",9),a.YNc(25,Yt,3,3,"mat-radio-button",10),a.TgZ(26,"mat-radio-button",11),a._uU(27),a.ALo(28,"translate"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(29,"div",12),a.TgZ(30,"button",13),a.NdJ("click",function(){return e.onCancel()}),a._uU(31),a.ALo(32,"translate"),a.qZA(),a.TgZ(33,"button",14),a.NdJ("click",function(){return e.onChange()}),a._uU(34),a.ALo(35,"translate"),a.qZA(),a.qZA(),a.qZA()}if(2&t){var n=a.MAs(23);a.xp6(4),a.Oqu(a.lcZ(5,20,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),a.xp6(2),a.hij(" ",a.lcZ(7,22,e.currentExpiration),""),a.xp6(4),a.Oqu(a.lcZ(11,24,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),a.xp6(2),a.hij(" ",e.newExpiration?a.lcZ(13,26,e.newExpiration):"never",""),a.xp6(2),a.Q6J("ngModel",e.newExpiration),a.xp6(1),a.s9C("value",e.expirationControl.value),a.xp6(3),a.Oqu(a.lcZ(19,28,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),a.xp6(2),a.Q6J("min",e.minDate)("max",e.maxDate)("formControl",e.expirationControl)("matDatepicker",n),a.xp6(1),a.Q6J("for",n)("disabled",!1),a.xp6(1),a.Q6J("disabled",!1),a.xp6(2),a.Q6J("ngIf",e.canExtendMembership&&"vo"===e.mode),a.xp6(1),a.Q6J("ngIf",e.canExtendMembership&&"group"===e.mode),a.xp6(2),a.hij(" ",a.lcZ(28,30,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),a.xp6(4),a.hij(" ",a.lcZ(32,32,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),a.xp6(2),a.Q6J("disabled",e.expirationControl.invalid),a.xp6(1),a.hij(" ",a.lcZ(35,34,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},directives:[n.xY,Ut.VQ,A.JJ,A.On,Ut.U0,h.KE,h.hX,k.Nt,A.Fj,Ht.hl,A.oH,Ht.nW,h.R9,Ht.Mq,u.O5,n.H8,c.lW],pipes:[s.X$,jt.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}"]}),t}();function Kt(t,e){1&t&&a._UZ(0,"mat-spinner",4)}function Jt(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"perun-web-apps-change-expiration-dialog",5),a.NdJ("expirationChanged",function(t){return a.CHM(i),a.oxw().onExpirationChanged(t)}),a.qZA()}if(2&t){var n=a.oxw();a.Q6J("minDate",n.minDate)("maxDate",n.maxDate)("currentExpiration",n.currentExpiration)("newExpiration",n.newExpiration)("canExtendMembership",n.canExtendMembership)("mode","group")}}var Qt=function(){var t=function(){function t(e,i,n,r,o,a,s){var u=this;v(this,t),this.dialogRef=e,this.data=i,this.attributesManagerService=n,this.memberManager=r,this.groupManager=o,this.translate=a,this.notificator=s,this.loading=!1,this.expirationAttr=null,this.canExtendMembership=!1,a.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(function(t){return u.successMessage=t})}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0;var e=new Date;"VALID"!==this.data.status?this.maxDate=new Date(e.getFullYear(),e.getMonth(),e.getDate()):this.minDate=new Date(e.getFullYear(),e.getMonth(),e.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr&&this.expirationAttr.value?this.expirationAttr.value:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&(this.newExpiration="VALID"!==this.data.status?(0,u.p6)(this.maxDate,"yyyy-MM-dd","en"):"never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,M.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(e){null!==e.value?t.groupManager.canExtendMembershipInGroup(t.data.memberId,t.data.groupId).subscribe(function(e){t.canExtendMembership=!!e,t.loading=!1},function(){return t.loading=!1}):t.loading=!1},function(){return t.loading=!1}):this.loading=!1}},{key:"onExpirationChanged",value:function(t){var e=this;this.loading=!0,"groupRules"===t?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(function(){e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close(!0)},function(){return e.loading=!1}):(this.expirationAttr.value="never"===t?null:t,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe(function(){e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close(!0)},function(){return e.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.H8),a.Y36(r.uq),a.Y36(r.ff),a.Y36(s.sK),a.Y36(o.V6))},t.\u0275cmp=a.Xpm({type:t,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","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","expirationChanged"]],template:function(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,Kt,1,0,"mat-spinner",2),a.YNc(5,Jt,1,6,"perun-web-apps-change-expiration-dialog",3),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,u.O5,l.$g,Vt],pipes:[s.X$],styles:[""]}),t}();function Wt(t,e){1&t&&a._UZ(0,"mat-spinner",4)}function Xt(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"perun-web-apps-change-expiration-dialog",5),a.NdJ("expirationChanged",function(t){return a.CHM(i),a.oxw().onExpirationChanged(t)}),a.qZA()}if(2&t){var n=a.oxw();a.Q6J("minDate",n.minDate)("maxDate",n.maxDate)("currentExpiration",n.currentExpiration)("newExpiration",n.newExpiration)("canExtendMembership",n.canExtendMembership)("mode","vo")}}var $t=function(){var t=function(){function t(e,i,n,r,o,a){var s=this;v(this,t),this.dialogRef=e,this.data=i,this.attributesManagerService=n,this.memberManager=r,this.translate=o,this.notificator=a,this.loading=!1,this.expirationAttr=null,this.canExtendMembership=!1,o.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(function(t){return s.successMessage=t})}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0;var e=new Date;"VALID"!==this.data.status?this.maxDate=new Date(e.getFullYear(),e.getMonth(),e.getDate()):this.minDate=new Date(e.getFullYear(),e.getMonth(),e.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr&&this.expirationAttr.value?this.expirationAttr.value:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&(this.newExpiration="VALID"!==this.data.status?(0,u.p6)(this.maxDate,"yyyy-MM-dd","en"):"never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,M.r.VO_DEF_EXPIRATION_RULES).subscribe(function(e){null!==e.value?t.memberManager.canExtendMembership(t.data.memberId).subscribe(function(e){t.canExtendMembership=!!e,t.loading=!1},function(){return t.loading=!1}):t.loading=!1},function(){return t.loading=!1}):this.loading=!1}},{key:"onExpirationChanged",value:function(t){var e=this;this.loading=!0,"voRules"===t?this.memberManager.extendMembership(this.data.memberId).subscribe(function(){e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close(!0)},function(){return e.loading=!1}):(this.expirationAttr.value="never"===t?null:t,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(function(){e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close(!0)},function(){return e.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.H8),a.Y36(r.uq),a.Y36(s.sK),a.Y36(o.V6))},t.\u0275cmp=a.Xpm({type:t,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","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","expirationChanged"]],template:function(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,Wt,1,0,"mat-spinner",2),a.YNc(5,Xt,1,6,"perun-web-apps-change-expiration-dialog",3),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,u.O5,l.$g,Vt],pipes:[s.X$],styles:[""]}),t}();function te(t,e){1&t&&a._UZ(0,"mat-spinner",4)}function ee(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"perun-web-apps-change-expiration-dialog",5),a.NdJ("expirationChanged",function(t){return a.CHM(i),a.oxw().onExpirationChanged(t)}),a.qZA()}if(2&t){var n=a.oxw();a.Q6J("minDate",n.minDate)("currentExpiration",n.currentExpiration)("newExpiration",n.newExpiration)("mode","sponsor")}}var ie=function(){var t=function(){function t(e,i,n,r,o,a,s){var u=this;v(this,t),this.dialogRef=e,this.data=i,this.attributesManagerService=n,this.memberManager=r,this.groupManager=o,this.translate=a,this.notificator=s,this.loading=!1,a.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(function(t){return u.successMessage=t})}return y(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;var t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.loading=!1}},{key:"onExpirationChanged",value:function(t){var e=this;this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===t?null:t).subscribe(function(){e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close(!0)},function(){return e.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.H8),a.Y36(r.uq),a.Y36(r.ff),a.Y36(s.sK),a.Y36(o.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,te,1,0,"mat-spinner",2),a.YNc(5,ee,1,4,"perun-web-apps-change-expiration-dialog",3),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,u.O5,l.$g,Vt],pipes:[s.X$],styles:[""]}),t}()},84534:function(t,e,i){"use strict";i.d(e,{hT:function(){return r},Kd:function(){return a},YH:function(){return s}});var n=i(31572),r=function(){var t=function(){function t(e){v(this,t),this.elementRef=e}return y(t,[{key:"ngOnInit",value:function(){this.elementRef.nativeElement.focus()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t}(),o=i(88426),a=function(){var t=function(){function t(e,i){v(this,t),this.el=e,this.router=i}return y(t,[{key:"onClick",value:function(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(o.xw))},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),t}(),s=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"onClick",value:function(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){var e=this.perunWebAppsMiddleClickRouterLink.join("/"),i=location.search;window.open(e+i)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&n.NdJ("mouseup",function(t){return e.onClick(t)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t}()},14732:function(t,e,i){"use strict";i.d(e,{u:function(){return n},m:function(){return r}});var n=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({}),r=function(){function t(e){v(this,t),this.id=e.id,this.name=e.name,this.parentGroupId=e.parentGroupId,this.voId=e.voId,this.shortName=e.shortName,this.description=e.description,this.attributes=e.attributes,this.beanName=e.beanName}return y(t,[{key:"addChild",value:function(t){null==this.children?this.children=[t]:this.children.push(t)}}]),t}()},33642:function(t,e,i){"use strict";i.d(e,{Us:function(){return D},au:function(){return L},H8:function(){return d},Ct:function(){return p},VK:function(){return h},KG:function(){return b},IQ:function(){return w},ff:function(){return A},uq:function(){return k},aC:function(){return T},Hr:function(){return C},tk:function(){return S},xk:function(){return E},KK:function(){return x},Ob:function(){return R},Dy:function(){return M},Fv:function(){return I},FW:function(){return O},YF:function(){return P}});var n,r,o,a,s=i(29063),u=function(){function t(){v(this,t)}return y(t,[{key:"encodeKey",value:function(t){return encodeURIComponent(t)}},{key:"encodeValue",value:function(t){return encodeURIComponent(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}(),c=i(31572),l=new c.OlP("basePath"),h=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v(this,t),this.apiKeys=e.apiKeys,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.withCredentials=e.withCredentials,this.encoder=e.encoder}return y(t,[{key:"selectHeaderContentType",value:function(t){var e=this;if(0!==t.length){var i=t.find(function(t){return e.isJsonMime(t)});return void 0===i?t[0]:i}}},{key:"selectHeaderAccept",value:function(t){var e=this;if(0!==t.length){var i=t.find(function(t){return e.isJsonMime(t)});return void 0===i?t[0]:i}}},{key:"isJsonMime",value:function(t){var e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}]),t}(),d=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"convertAttributeToNonunique",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/convertAttributeToNonunique"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"convertAttributeToUnique",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/convertAttributeToUnique"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/createAttribute"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attribute",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/deleteAttribute"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteAttributeDefinitions",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("attributes[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/deleteAttributes"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllAttributeDefinitions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributesDefinition"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAttribute",value:function(t,e,i,n,r,o,a,u,c,l,h){var d=arguments.length>11&&void 0!==arguments[11]?arguments[11]:"body",f=arguments.length>12&&void 0!==arguments[12]&&arguments[12],p=new s.LE({encoder:this.encoder});null!=t&&(p=p.set("attributeName",t)),null!=e&&(p=p.set("attributeId",e)),null!=i&&(p=p.set("facility",i)),null!=n&&(p=p.set("user",n)),null!=r&&(p=p.set("vo",r)),null!=o&&(p=p.set("resource",o)),null!=a&&(p=p.set("member",a)),null!=u&&(p=p.set("group",u)),null!=c&&(p=p.set("host",c)),null!=l&&(p=p.set("userExtSource",l)),null!=h&&(p=p.set("key",h));var g=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(g=g.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(g=g.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var v="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;g=g.set("Authorization","Bearer "+v)}var m=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==m&&(g=g.set("Accept",m)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/any"),{params:p,withCredentials:this.configuration.withCredentials,headers:g,observe:d,reportProgress:f})}},{key:"getAttributeDefinitionById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeDefinitionById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeDefinitionByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeDefinition"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeDefinitionsByNamespace",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributesDefinitionByNamespace"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAttributeModulesDependenciesForAttributeGraphText",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("format",t)),null!=e&&(r=r.set("attrName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAttributeModulesDependenciesGraphText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("format",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeModulesDependenciesGraphText"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeRights",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeRights"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributesDefinitionWithRights",value:function(t,e,i,n,r,o,a,u){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"body",l=arguments.length>9&&void 0!==arguments[9]&&arguments[9],h=new s.LE({encoder:this.encoder});null!=t&&(h=h.set("member",t)),null!=e&&(h=h.set("user",e)),null!=i&&(h=h.set("vo",i)),null!=n&&(h=h.set("group",n)),null!=r&&(h=h.set("resource",r)),null!=o&&(h=h.set("facility",o)),null!=a&&(h=h.set("host",a)),null!=u&&(h=h.set("userExtSource",u));var d=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(d=d.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(d=d.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var f="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;d=d.set("Authorization","Bearer "+f)}var p=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==p&&(d=d.set("Accept",p)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/getAttributesDefinitionWithRights"),{params:h,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:l})}},{key:"getEntitylessAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("key",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-entityless"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEntitylessAttributesByKey",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("key",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/key"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEntitylessAttributesByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attrName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEntitylessAttributesWithKeys",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("attrName",t)),e&&e.forEach(function(t){r=r.append("keys[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessAttributesWithKeys"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEntitylessKeys",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessKeys"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityResourceUserMemberAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=n&&(a=a.set("member",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-r-u-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getFacilityUserAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-u"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-group"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-group"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/g"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/g-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupResourceAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-group-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getGroupResourceAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-group-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getGroupResourceAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/group-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getHostAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-host"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getHostAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-host"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getHostAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/h"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/h-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getLogins",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getLogins"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberAndUserAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("workWithUserAttributes",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-wu"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberAndUserAttributesByNames",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(function(t){o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-names-wu"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberGroupAndUserAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(function(t){a=a.append("attrNames[]",t)}),null!=n&&(a=a.set("workWithUserAttributes",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g-names-wu"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getMemberGroupAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member-group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberGroupAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member-group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberGroupAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberGroupAttributesByNames",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(function(t){o=o.append("attrNames[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g-names"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r-wu"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(function(t){a=a.append("attrNames[]",t)}),null!=n&&(a=a.set("workWithUserAttributes",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r-names-wu"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getMemberResourceAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributesDefinition"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/f"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesFacilityService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesFacilityServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("services[]",t)}),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/ss-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesGroupResourceService",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("group",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-g"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRequiredAttributesHostService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("host",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-h"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("workWithUserAttributes",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesMemberGroup",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m-g"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRequiredAttributesMemberGroupResourceService",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("service",t)),null!=e&&(u=u.set("resource",e)),null!=i&&(u=u.set("group",i)),null!=n&&(u=u.set("member",n)),null!=r&&(u=u.set("workWithUserAttributes",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-g-m"),{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}},{key:"getRequiredAttributesMemberGroupService",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),null!=n&&(a=a.set("workWithUserAttributes",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-g-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getRequiredAttributesMemberResource",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m-r"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRequiredAttributesMemberResourceService",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("member",i)),null!=n&&(a=a.set("workWithUserAttributes",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getRequiredAttributesResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/r"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesResourceService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesResourceServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("services[]",t)}),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/ss-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/u"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesUserFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/u-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesVoService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("vo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-v"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourceAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceGroupAndGroupAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithGroupAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-wg"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getResourceGroupAndGroupAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(function(t){a=a.append("attrNames[]",t)}),null!=n&&(a=a.set("workWithGroupAttributes",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-names-wg"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getResourceGroupAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceGroupMemberAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),n&&n.forEach(function(t){a=a.append("attrNames[]",t)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-m-names"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getUserAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-user"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-user"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/u"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/u-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-ues"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-ues"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/ues"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourceAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/ues-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserFacilityAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-user_facility"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getUserFacilityAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-user_facility"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getUserFacilityAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/user-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-vo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-vo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/vo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/vo-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeAttributesForFacilityResourceGroupUserMember",value:function(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",u=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=n&&(c=c.set("user",n)),null!=r&&(c=c.set("member",r)),o&&o.forEach(function(t){c=c.append("attributes[]",t)});var l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var h="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+h)}var d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:u})}},{key:"removeAttributesForFacilityResourceUserMember",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("facility",t)),null!=e&&(u=u.set("resource",e)),null!=i&&(u=u.set("user",i)),null!=n&&(u=u.set("member",n)),r&&r.forEach(function(t){u=u.append("attributes[]",t)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f-r-u-m"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}},{key:"removeEntitylessAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("key",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/e"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupResourceAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/g-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeGroupResourceAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(function(t){o=o.append("attributes[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeGroupResourceAttributesWorkWithGroupAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(function(t){a=a.append("attributes[]",t)}),null!=n&&(a=a.set("workWithGroupAttributes",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"removeHostAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/h"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeHostAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/h"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMemberAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMemberAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMemberAttributesWorkWithUserAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(function(t){o=o.append("attributes[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(function(t){o=o.append("attributes[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttributesWorkWithUserAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(function(t){a=a.append("attributes[]",t)}),null!=n&&(a=a.set("workWithUserAttributes",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"removeMemberResourceAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberResourceAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(function(t){o=o.append("attributes[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeResourceAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/r"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/r"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUesAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/ues"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserExtSourceAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/ues"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserFacilityAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/u-f"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeUserFacilityAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),i&&i.forEach(function(t){o=o.append("attributes[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/u-f"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeVoAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setAttributeRights",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributeRights"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setEntitylessAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/entityless"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/facility"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityResourceGroupUserMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-r-g-u-m"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityResourceUserMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-r-u-m"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-u"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/group"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/g"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupResourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/group-resource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/group-resource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setHostAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/host"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setHostAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/h"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberGroupAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member-group"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-g"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberGroupWithUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-g-wu"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberResourceAndUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-r-wu"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberResourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member-resource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-r"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberWithUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-wu"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/resource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r-g"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceGroupWithGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r-g-wg"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/user"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/u"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserExtSourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/userExtSource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserExtSourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/ues"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserFacilityAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/facility-user"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserFacilityAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/facility-user"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setVoAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/vo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setVoAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/vo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/updateAttributeDefinition"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),f=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"auditMessagesManagerLog",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("msg",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/AuditMessagesManager/log"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createAuditerConsumer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/AuditMessagesManager/createAuditerConsumer"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllAuditerConsumers",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/AuditMessagesManager/getAllAuditerConsumers"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAuditerMessagesCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/AuditMessagesManager/getAuditerMessagesCount"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getLastMessageId",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/AuditMessagesManager/getLastMessageId"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getMessages",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("count",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/AuditMessagesManager/getMessages"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMessagesByCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("count",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/AuditMessagesManager/getMessagesByCount"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"pollConsumerMessages",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/AuditMessagesManager/pollConsumerMessages"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"setLastProcessedId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==e)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("consumerName",t)),null!=e&&(r=r.set("lastProcessedId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/AuditMessagesManager/setLastProcessedId"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),p=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"getAllPolicies",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAllPolicies"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllRolesManagementRules",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAllRolesManagementRules"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAuthzAdminGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("role",t)),null!=e&&(o=o.set("complementaryObjectId",e)),null!=i&&(o=o.set("complementaryObjectName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAdminGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAuthzRichAdmins",value:function(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",u=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("role",t)),null!=e&&(c=c.set("complementaryObjectId",e)),null!=i&&(c=c.set("complementaryObjectName",i)),n&&n.forEach(function(t){c=c.append("specificAttributes",t)}),null!=r&&(c=c.set("allUserAttributes",r)),null!=o&&(c=c.set("onlyDirectAdmins",o));var l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var h="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+h)}var d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getRichAdmins"),{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:u})}},{key:"getFacilitiesWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getFacilitiesWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupRoleNames",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getGroupRoleNames"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupRoles",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("groupId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/getGroupRoles"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getGroupsWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getLoggedUser",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getLoggedUser"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getMembersWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getMembersWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getPerunPrincipal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getPerunPrincipal"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPrincipalRoleNames",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getPrincipalRoleNames"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getResourcesWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getResourcesWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSecurityTeamsWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getSecurityTeamsWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserRoleNames",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getUserRoleNames"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserRoles",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("userId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getUserRoles"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getVosWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"isFacilityAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isFacilityAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isGroupAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isGroupAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isPerunAdmin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/isPerunAdmin"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"isVoAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isVoAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"keepAlive",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/keepAlive"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"loadAuthorizationComponents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/loadAuthorizationComponents"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"setRoleWithGroupComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/setRole/g-co"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setRoleWithUserComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/setRole/u-co"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"unsetRoleWithGroupComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/unsetRole/g-co"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"unsetRoleWithUserComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/unsetRole/u-co"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),g=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"createAutorship",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateAuthorship was null or undefined when calling createAutorship.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createAuthorship"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createCategoryCat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateCategory was null or undefined when calling createCategoryCat.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createCategory/cat"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createCategoryNR",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateCategory1 was null or undefined when calling createCategoryNR.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createCategory/n-r"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createPublication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreatePublication was null or undefined when calling createPublication.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createPublication"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createPublicationSystem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createPublicationSystem"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createThanks",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateThanks was null or undefined when calling createThanks.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createThanks"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteAuthorship",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==e)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("publicationId",t)),null!=e&&(r=r.set("userId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deleteAuthorship"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteCategory",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deleteCategory"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deletePublication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublication.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deletePublication"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deletePublicationSystem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deletePublicationSystem"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteThanks",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deleteThanks"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findAllAuthors",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findAllAuthors"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"findAuthorsByPublicationId",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findAuthorsByPublicationId"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findExternalPublications",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==e)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==i)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==n)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("yearSince",e)),null!=i&&(a=a.set("yearTill",i)),null!=n&&(a=a.set("pubSysNamespace",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findExternalPublications"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"findNewAuthors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findNewAuthors"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findPublicationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findPublicationById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findPublicationsByFilter",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");var o=new s.LE({encoder:this.encoder});null!=e&&(o=o.set("yearSince",e)),null!=i&&(o=o.set("yearTill",i)),null!=t&&(o=o.set("userId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findPublicationsByFilter"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"findPublicationsByGUIFilter",value:function(t,e,i,n,r,o,a,u,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"body",h=arguments.length>10&&void 0!==arguments[10]&&arguments[10],d=new s.LE({encoder:this.encoder});null!=t&&(d=d.set("title",t)),null!=e&&(d=d.set("isbn",e)),null!=i&&(d=d.set("doi",i)),null!=n&&(d=d.set("id",n)),null!=r&&(d=d.set("year",r)),null!=o&&(d=d.set("category",o)),null!=a&&(d=d.set("yearSince",a)),null!=u&&(d=d.set("yearTill",u)),null!=c&&(d=d.set("userId",c));var f=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(f=f.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var p="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+p)}var g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(f=f.set("Accept",g)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findPublicationsByGUIFilter"),{params:d,withCredentials:this.configuration.withCredentials,headers:f,observe:l,reportProgress:h})}},{key:"findSimilarPublications",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("title",t)),null!=e&&(o=o.set("doi",e)),null!=i&&(o=o.set("isbn",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findSimilarPublications"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getCategories",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/getCategories"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPublicationSystems",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/getPublicationSystems"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getRank",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRank.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/getRank"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichThanksByPublicationId",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/getRichThanksByPublicationId"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"lockPublications",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputLockPublications was null or undefined when calling lockPublications.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/lockPublications"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateCategory",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateCategory was null or undefined when calling updateCategory.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/updateCategory"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updatePublication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdatePublication was null or undefined when calling updatePublication.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/updatePublication"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updatePublicationSystem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/updatePublicationSystem"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),m=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"getCurrentDatabaseVersion",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/databaseManager/getCurrentDatabaseVersion"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getDatabaseDriverInformation",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/databaseManager/getDatabaseDriverInformation"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getDatabaseInformation",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/databaseManager/getDatabaseInformation"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getTimeOfQueryPerformance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/databaseManager/getTimeOfQueryPerformance"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),b=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"addExtSourceWithGroupSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("source",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/addExtSource/g-s"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addExtSourceWithVoSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("source",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/addExtSource/v-s"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createExtSourceFromExtSourceObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter extSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/extSourcesManager/createExtSource/es"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createExtSourceWithNameType",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==e)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("type",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/createExtSource/n-t"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteExtSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/deleteExtSource"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getExtSourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getExtSourceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getExtSourceByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getExtSourceByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getExtSources",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getExtSources"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getGroupExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getGroupExtSources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getVoExtSources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"loadExtSourcesDefinitions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/loadExtSourcesDefinitions"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"removeExtSourceWithGroupSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("source",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/removeExtSource/g-s"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeExtSourceWithVoSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("source",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/removeExtSource/v-s"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),w=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"addFacilityAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityAdminGroupByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addAdmin/group/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityAdminUserByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addAdmin/user/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addOwner/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByFacilityNameOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addOwner/f-o-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addOwner/o-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHost",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("hostname",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addHost"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHostByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("hostname",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addHost/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHosts",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("hostnames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addHosts"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHostsByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("hostnames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addHosts/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignSecurityTeam",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/assignSecurityTeam"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignSecurityTeamByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyAttributes"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributesByDestinationName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyAttributes/dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributesBySourceDestinationNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributesBySourceName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyAttributes/src-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyManagers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagersByDestinationName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyManagers/dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagersBySourceDestinationNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyManagers/src-dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagersBySourceName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyManagers/src-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwners",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyOwners"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwnersByDestinationName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyOwners/dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwnersBySourceDestinationNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyOwners/src-dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwnersBySourceName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyOwners/src-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/createFacility"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/deleteFacility"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteFacilityByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/deleteFacility/f-name"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllFacilities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilities"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllowedGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedGroupsByFacilityName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedGroups/f-name"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedRichGroupsWithAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(function(t){a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=n&&(a=a.set("service",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedRichGroupsWithAttributes"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getAllowedRichGroupsWithAttributesByFacilityName",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(function(t){a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=n&&(a=a.set("service",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getAllowedUsersOfFacility",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedUsers/v-f-s"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedUsersOfFacilityByFacilityName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedUsers/v-f-s/f-name"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedVos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/getAllowedVos"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedVosByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/getAllowedVos/f-name"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedFacilities/group"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedFacilities/member"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedFacilities/service"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedFacilities/user"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesByAssignedServiceForFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedResourcesByAssignedService"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedResourcesForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesForFacilityByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedResources/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedRichResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesForFacilityByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedRichResources/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedSecurityTeams",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedSecurityTeams"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedSecurityTeamsByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedSecurityTeams/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedUsers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedUsers"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedUsersByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedUsers/f-name"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getBansForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facilityId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getBansForFacility"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getBansForUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getBansForUser"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEnrichedFacilities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getEnrichedFacilities"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getEnrichedHosts",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getEnrichedHosts"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilitiesByAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("attributeName",t)),null!=e&&(r=r.set("attributeValue",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesByAttribute"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilitiesByDestination",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesByDestination"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilitiesByHostName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesByHostName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilitiesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilitiesCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesCount"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getFacilitiesWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesWhereUserIsAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAdminGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAdminGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAdminUsers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("onlyDirectAdmins",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAdmins"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityAdminUsersByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("onlyDirectAdmins",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAdmins/f-name"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityBan",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getBan"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getBanById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilityById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilityByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityForHost",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilityForHost"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityOwners",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getOwners"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityOwnersByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getOwners/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHostById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHosts",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHosts"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHosts/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsByHostname",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHostsByHostname"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHostsCount"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsCountByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHostsCount/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getOwnerFacilities",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("owner",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getOwnerFacilities"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichFacilities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getRichFacilities"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"removeBanByUserIdFacilityId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminGroupByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeAdmin/group/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminUserByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeAdmin/user/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeBan/byId"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeFacilityOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeOwner/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByFacilityNameOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeOwner/f-o-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeOwner/o-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeHost",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeHost"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeHostByHostname",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeHostByHostname"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeHosts",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("hosts[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeHosts"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeHostsByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("hosts[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeHosts/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSecurityTeam",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeSecurityTeam"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSecurityTeamByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setFacilityBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/facilitiesManager/setBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/facilitiesManager/updateFacility"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFacilityBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/facilitiesManager/updateBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),_=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"getFacilityAdminGroupsByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAdminGroups/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),A=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"addMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),null!=e&&(r=r.set("member",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/addMember"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addMembers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("members[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/addMembers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"canExtendMembershipInGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/canExtendMembershipInGroup"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createGroupUnion",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resultGroup",t)),null!=e&&(r=r.set("operandGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroupUnion"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createGroupWithParentGroupNameDescription",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("parentGroup",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroup/pg-n-d"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"createGroupWithVoNameDescription",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroup/v-n-d"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"deleteGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/deleteGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteGroups",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroups.");if(null==e)throw new Error("Required parameter forceDelete was null or undefined when calling deleteGroups.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),null!=e&&(r=r.set("forceDelete",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/deleteGroups"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"extendMembershipInGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/extendMembershipInGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"forceAllSubGroupsSynchronization",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"forceGroupStructureSynchronization",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceGroupStructureSynchronization"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"forceGroupSynchronization",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceGroupSynchronization"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllMemberGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllMemberGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllRichGroupsWithAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllRichSubGroupsWithGroupAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichSubGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("name",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupByName"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupMemberById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("member",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMemberById"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupMembersCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCount"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupMembersCountsByGroupStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCountsByGroupStatus"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupMembersCountsByVoStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCountsByVoStatus"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupRichMembersByIds",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(function(t){o=o.append("members[]",t)}),i&&i.forEach(function(t){o=o.append("attrNames[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupRichMembersByIds"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getGroupUnions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("reverseDirection",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupUnions"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupsByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getIndirectMembershipPaths",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getIndirectMembershipPaths"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getMemberGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberRichGroupsWithAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getMemberRichGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRichGroupByIdWithAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getRichGroupByIdWithAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("groupId",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getRichGroupByIdWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"isGroupMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/isGroupMember"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"moveGroupWithDestinationGroupMovingGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("destinationGroup",e)),null!=t&&(r=r.set("movingGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/moveGroup/dg-mg"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupUnion",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resultGroup",t)),null!=e&&(r=r.set("operandGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeGroupUnion"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),null!=e&&(r=r.set("member",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeMember"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMembers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("members[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeMembers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setGroupsMemberStatus",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("status",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/setGroupsMemberStatus"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"updateGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/updateGroup"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),k=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"canExtendMembership",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/canExtendMembership"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createMemberForCandidate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/c"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createMemberForUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/u"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createMemberFromExtSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/extSource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSpecificMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSpecificMember"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSponsoredMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMember/withFullName"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSponsoredMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMembers"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSponsoredMembersFromCSV",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMembersFromCSV"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/deleteMember"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("members[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/deleteMembers"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"extendMembership",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/extendMembership"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findCompleteRichMembersByAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");var o=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){o=o.append("attrsNames[]",t)}),null!=e&&(o=o.set("searchString",e)),i&&i.forEach(function(t){o=o.append("allowedStatuses[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/attrs"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"findCompleteRichMembersForGroup",value:function(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",u=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(function(t){c=c.append("attrsNames[]",t)}),r&&r.forEach(function(t){c=c.append("allowedStatuses[]",t)}),o&&o.forEach(function(t){c=c.append("allowedGroupStatuses[]",t)}),null!=i&&(c=c.set("searchString",i)),null!=n&&(c=c.set("lookingInParentGroup",n));var l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var h="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+h)}var d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/g"),{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:u})}},{key:"findCompleteRichMembersForVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(function(t){a=a.append("attrsNames[]",t)}),n&&n.forEach(function(t){a=a.append("allowedStatuses[]",t)}),null!=i&&(a=a.set("searchString",i));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/v"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"findMembersInVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("searchString",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findMembersInVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findSponsoredCompleteRichMembersForVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(function(t){a=a.append("attrsNames[]",t)}),null!=i&&(a=a.set("searchString",i)),null!=n&&(a=a.set("onlySponsored",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/v-sponsored"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getAllNamespacesRules",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllNamespacesRules"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllSponsoredMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllSponsoredMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllSponsoredMembersAndTheirSponsors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllSponsoredMembersAndTheirSponsors"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getCompleteRichMembersForGroup",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("group",t)),i&&i.forEach(function(t){u=u.append("allowedStatuses[]",t)}),n&&n.forEach(function(t){u=u.append("allowedGroupStatuses[]",t)}),null!=e&&(u=u.set("lookingInParentGroup",e)),r&&r.forEach(function(t){u=u.append("attrsNames[]",t)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/g"),{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}},{key:"getCompleteRichMembersForGroupResource",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(function(t){a=a.append("attrsNames[]",t)}),n&&n.forEach(function(t){a=a.append("allowedStatuses[]",t)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/g-r"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getCompleteRichMembersForVo",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(function(t){o=o.append("allowedStatuses[]",t)}),i&&i.forEach(function(t){o=o.append("attrsNames[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/v"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberByExtSourceNameAndExtLogin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extLogin",e)),null!=i&&(o=o.set("extSourceName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberByExtSourceNameAndExtLogin"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberByUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberByUser"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMembers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("status",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembers"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMembersByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMembersByUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersByUser"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMembersCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersCount"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMembersPage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/getMembersPage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getMembersWithStatusCount",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("status",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersCount/status"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRichMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMember"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichMemberWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMemberWithAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichMembersByIds",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("ids[]",t)}),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMembersByIds"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsoredMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsoredMembers/v"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getSponsoredMembersAndTheirSponsors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsoredMembersAndTheirSponsors"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsorsByMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsors/member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsorsByVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),n&&n.forEach(function(t){a=a.append("attrNames[]",t)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsors/vo"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"moveMembership",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("sourceUser",e)),null!=i&&(o=o.set("targetUser",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/moveMembership"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeSponsor",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/removeSponsor"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sendAccountActivationLinkEmail",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=n&&(a=a.set("language",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sendAccountActivationLinkEmail"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"sendPasswordResetLinkEmail",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=n&&(a=a.set("language",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sendPasswordResetLinkEmail"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"setSponsoredMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/setSponsoredMember"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setSponsorshipForMember",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("sponsoredMember",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/setSponsorshipForMember"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"setStatus",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("status",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/setStatus"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sponsorMember",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sponsorMember"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"updateSponsorshipValidity",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/updateSponsorshipValidity"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"validateMemberAsync",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/validateMemberAsync"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),T=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"createOwner",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateOwner was null or undefined when calling createOwner.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/ownersManager/createOwner"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("owner",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/ownersManager/deleteOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllOwners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/ownersManager/getOwners"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getOwnerById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/ownersManager/getOwnerById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getOwnerByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("owner",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/ownersManager/getOwnerByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),C=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"sentMessageToRTWithMemberQueue",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("memberId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=n&&(a=a.set("text",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"sentMessageToRTWithQueue",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("queue",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/q"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"sentMessageToRTWithVo",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("voId",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/v"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"sentMessageToRTWithVoQueue",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("voId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=n&&(a=a.set("text",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),S=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"addApplicationMailForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/addApplicationMail/g"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addApplicationMailForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/addApplicationMail/v"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addGroupsToAutoRegistration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("groups[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/addGroupsToAutoRegistration"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"approveApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/approveApplication"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"consolidateIdentityUsingToken",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/consolidateIdentityUsingToken"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"copyFormFromGroupToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/groupToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyFormFromGroupToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toVo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/groupToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyFormFromVoToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/voToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyFormFromVoToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toVo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/voToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromGroupToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/groupToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromGroupToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toVo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/groupToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromVoToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/voToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromVoToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toVo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/voToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createApplicationFormInGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/createApplicationForm/group"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createApplicationFormInVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/createApplicationForm/vo"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplication"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteApplicationMailForGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("id",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplicationMail/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteApplicationMailForVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("id",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplicationMail/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteGroupsFromAutoRegistration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("groups[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationDataById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationDataById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationMailsForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationMails/g"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationMailsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationMails/v"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationsForGroup",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),e&&e.forEach(function(t){a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=n&&(a=a.set("dateTo",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForGroup"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getApplicationsForMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForMember"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getApplicationsForVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(function(t){a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=n&&(a=a.set("dateTo",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForVo"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getConsolidatorToken",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getConsolidatorToken"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getFormItemsForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/group"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFormItemsForGroupWithType",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("type",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/group-type"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFormItemsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/vo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFormItemsForVoWithType",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("type",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/vo-type"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupApplicationForm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationForm/group"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsToAutoRegistration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getGroupsToAutoRegistration"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoApplicationForm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationForm/vo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"rejectApplication",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("id",t)),null!=e&&(r=r.set("reason",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/rejectApplication"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sendInvitation",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");var a=new s.LE({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=n&&(a=a.set("name",n)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"sendInvitationForGroup",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");var u=new s.LE({encoder:this.encoder});null!=i&&(u=u.set("voId",i)),null!=n&&(u=u.set("groupId",n)),null!=r&&(u=u.set("name",r)),null!=t&&(u=u.set("email",t)),null!=e&&(u=u.set("language",e));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/g"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}},{key:"sendInvitationGroupToExistingUser",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("userId",t)),null!=e&&(o=o.set("voId",e)),null!=i&&(o=o.set("groupId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/u-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"sendInvitationToExistingUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userId",t)),null!=e&&(r=r.set("voId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sendMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/sendMessage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setSendingEnabled",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/setSendingEnabled"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"submitApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/submitApplication"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateApplicationMail",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateApplicationMail"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateForm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateForm"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItemData"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemsData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItemsData"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemsForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItems/group"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItems/vo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"verifyApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/verifyApplication"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),E=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"activateGroupResourceAssignment",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("async",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/activateGroupResourceAssignment"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"addAdminToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addAdmin/r-g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addAdminToUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addAdmin/r-u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addResourceSelfServiceGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addResourceSelfServiceGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addResourceSelfServiceUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addResourceSelfServiceUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"allowGroupsToResources",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");var o=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){o=o.append("groups[]",t)}),e&&e.forEach(function(t){o=o.append("resources[]",t)}),null!=i&&(o=o.set("async",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/allowGroupsToResources"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"assignGroupToResource",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("async",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupToResource"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"assignGroupToResources",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(function(t){o=o.append("resources[]",t)}),null!=i&&(o=o.set("async",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupToResources"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"assignGroupsToResource",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");var o=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){o=o.append("groups[]",t)}),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("async",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupsToResource"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"assignResourceTagToResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/assignResourceTagToResource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"assignService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("services[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignServices"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("servicesPackage",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/copyResource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createResource",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("name",i)),null!=n&&(a=a.set("description",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/createResource"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"createResourceTagWithResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/createResourceTag/resourceTag"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createResourceTagWithTagName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("tagName",t)),null!=e&&(r=r.set("vo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/createResourceTag/tagName"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deactivateGroupResourceAssignment",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteAllResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteAllResources"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteAllResourcesTagsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteResource"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/deleteResourceTag"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getAdminGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAdminGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAdmins",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("onlyDirectAdmins",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAdmins"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllResourcesByResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesByResourceTag"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getAllResourcesTagsForResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesTagsForResource"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllResourcesTagsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesTagsForVo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllResourcesWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/all"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedUsersOfResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedUsers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedGroups",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("member",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedGroups"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesWithGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResources/g"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesWithMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResources/m"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesWithGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/g"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesWithMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/m"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesWithMemberService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/s-m"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedServicesToResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedServices"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getBansForMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBansForMember"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getBansForResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBansForResource"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEnrichedResourceById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("id",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourceById"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEnrichedResourcesForFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourcesForFacility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEnrichedResourcesForVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourcesForVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getFacility"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupAssignments",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getGroupAssignments"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAssignments",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceAssignments"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceBan",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBan"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBanById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourceByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("name",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceByName"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourcesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourcesCountForAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesCount/all"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getResourcesCountForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesCount/vo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourcesFromVoWhereUserIsAdmin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourcesWhereGroupIsAdmin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("group",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getResourcesWhereUserIsAdmin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("user",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRichAdmins",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),e&&e.forEach(function(t){a=a.append("specificAttributes",t)}),null!=i&&(a=a.set("allUserAttributes",i)),null!=n&&(a=a.set("onlyDirectAdmins",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichAdmins"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getRichResourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResourceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichResourcesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResourcesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getVo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeAllResourceTagsFromResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeBanByMemberAndResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeBan/member-resource-id"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupAdminResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAdmin/r-g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupFromResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupFromResource"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupFromResources",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("resources[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupFromResources"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupsFromResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupsFromResource"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeBan/id"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeResourceSelfServiceGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceSelfServiceUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeResourceSelfServiceUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceTagFromResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/removeResourceTagFromResource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"removeService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("services[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeServices"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("servicesPackage",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserAdminResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAdmin/r-u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setResourceBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/setBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"unallowGroupsFromResources",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),e&&e.forEach(function(t){r=r.append("resources[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/unallowGroupsFromResources"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"updateResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateResource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateResourceBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateResourceTag"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),x=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"addDestination",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling addDestination.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("service",t)),null!=e&&(u=u.set("facility",e)),null!=i&&(u=u.set("destination",i)),null!=n&&(u=u.set("type",n)),null!=r&&(u=u.set("propagationType",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addDestination"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}},{key:"addDestinationToMultipleServices",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/addDestination"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addDestinationsDefinedByHostsOnFacilityWithFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addDestinationsForAllServicesOnFacility",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==i)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("destination",e)),null!=i&&(a=a.set("type",i)),null!=n&&(a=a.set("propagationType",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"addRequiredAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addRequiredAttribute"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addRequiredAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addRequiredAttributes"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addServiceToServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("servicesPackage",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addServiceToServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"blockAllServicesOnDestinationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockAllServicesOnDestination/d"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"blockAllServicesOnDestinationByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("destination",t)),null!=e&&(r=r.set("destinationType",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"blockAllServicesOnFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockAllServicesOnFacility"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"blockServiceOnDestination",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockServiceOnDestination/s-d"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"blockServiceOnDestinationWithNameAndType",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("destinationType",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"blockServiceOnFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockServiceOnFacility"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createService",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==i)throw new Error("Required parameter script was null or undefined when calling createService.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e)),null!=i&&(o=o.set("script",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/createService"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"createServiceWithService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateService was null or undefined when calling createServiceWithService.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/createService"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateServicesPackage was null or undefined when calling createServicesPackage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/createServicesPackage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createServicesPackageByNameAndDescription",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/createServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling deleteService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/deleteService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/deleteServicesPackage"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"forceServicePropagation",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/forceServicePropagation"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllDestinations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDestinations/all"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllRichDestinationsForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getAllRichDestinations/f"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllRichDestinationsForService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getAllRichDestinations/s"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getAssignedResourcesForService"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedServices",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getAssignedServices"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getDataWithGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDataWithGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getDataWithVos",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDataWithVos"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getDestinationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDestinationById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getDestinations",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDestinations/s-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getDestinationsCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDestinationsCount"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getFacilitiesDestinations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getFacilitiesDestinations"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAssignedServicesForGUI",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getFacilityAssignedServicesForGUI"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFlatData",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getFlatData"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getHashedDataWithGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getHashedDataWithGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getHashedHierarchicalData",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getHashedHierarchicalData"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getHierarchicalData",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getHierarchicalData"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRichDestinations",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getRichDestinations"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getServiceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getServiceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServiceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServiceByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServiceByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServices",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServices"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getServicesBlockedOnDestination",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesBlockedOnDestination"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesBlockedOnFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesBlockedOnFacility"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesByAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesByAttributeDefinition"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesFromServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesFromServicesPackage"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesPackageById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesPackageById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesPackageByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesPackageByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesPackages",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesPackages"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"isServiceBlockedOnDestination",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/isServiceBlockedOnDestination"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"isServiceBlockedOnFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/isServiceBlockedOnFacility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"planServicePropagation",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/planServicePropagation"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeAllDestinations",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeAllDestinations"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeAllRequiredAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeAllRequiredAttributes"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeDestination",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling removeDestination.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("destination",i)),null!=n&&(a=a.set("type",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeDestination"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"removeRequiredAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeRequiredAttribute"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeRequiredAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeRequiredAttributes"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeServiceFromServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("servicesPackage",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeServiceFromServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"unblockAllServicesOnDestinationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"unblockAllServicesOnDestinationByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("destination",t)),null!=e&&(r=r.set("destinationType",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"unblockAllServicesOnFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockAllServicesOnFacility"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"unblockServiceOnDestinationById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"unblockServiceOnDestinationByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("destinationType",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"unblockServiceOnFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockServiceOnFacility"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"updateService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateService was null or undefined when calling updateService.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/updateService"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/updateServicesPackage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),R=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"countTasks",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/countTasks"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"deleteTask",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskIdObject was null or undefined when calling deleteTask.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/deleteTask"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteTaskResultById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskResultIdObject was null or undefined when calling deleteTaskResultById.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/deleteTaskResultById"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteTaskResultsIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/deleteTaskResults/id"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteTaskResultsNames",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/deleteTaskResults/name"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getAllFacilitiesStates",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getAllFacilitiesStates"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllResourcesState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("voId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getAllResourcesState"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityServicesState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getFacilityServicesState"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getFacilityState"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTask",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getTask.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTask"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getTaskById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getTaskById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("taskResult",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResults",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResults"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getTaskResultsByTask",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsByTask"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultsForDestinations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("destinations[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsForDestinations"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultsForGUIByTask",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsForGUIByTask"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultsForGUIByTaskAndDestination",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("task",t)),null!=e&&(r=r.set("destination",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsForGUIByTaskAndDestination"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getTaskResultsForGUIByTaskOnlyNewest",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isThereSuchTask",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/isThereSuchTask"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"listAllTasks",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/listAllTasks"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"listAllTasksForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/listAllTasksForFacility"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"suspendTasksPropagation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("suspend",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/suspendTasksPropagation"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),I=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"addSpecificUserOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("specificUser",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/addSpecificUserOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addUserExtSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/addUserExtSource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"changeNonAuthzPasswordByToken",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("token",t)),null!=e&&(o=o.set("password",e)),null!=i&&(o=o.set("lang",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changeNonAuthzPassword/token"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"changePasswordForLogin",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("login",t)),null!=e&&(u=u.set("namespace",e)),null!=i&&(u=u.set("newPassword",i)),null!=n&&(u=u.set("oldPassword",n)),null!=r&&(u=u.set("checkOldPassword",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changePassword/login"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}},{key:"changePasswordForUser",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("user",t)),null!=e&&(u=u.set("namespace",e)),null!=i&&(u=u.set("newPassword",i)),null!=n&&(u=u.set("oldPassword",n)),null!=r&&(u=u.set("checkOldPassword",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changePassword/user"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}},{key:"checkPasswordResetRequestByTokenIsValid",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/checkPasswordResetRequestIsValid/token"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"checkPasswordStrength",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("password",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/checkPasswordStrength"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createAlternativePassword",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("description",e)),null!=i&&(a=a.set("loginNamespace",i)),null!=n&&(a=a.set("password",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/createAlternativePassword"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"createServiceUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/createServiceUser"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteAlternativePassword",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("loginNamespace",e)),null!=i&&(o=o.set("passwordId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deleteAlternativePassword"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"deletePasswordForLogin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deletePassword/login"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deletePasswordForUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deletePassword/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deleteUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findRichUsers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findRichUsers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findRichUsersWithAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("searchString",t)),e&&e.forEach(function(t){r=r.append("attrsNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findRichUsersWithAttributes"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findUsers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findUsers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesForUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getAssignedRichResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsForFacilityWhereUserIsActive",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsActive/facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsForResourceWhereUserIsActive",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsActive/resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsInVoWhereUserIsAdmin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("vo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsAdmin/u-v"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsAdmin/u"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getPendingPreferredEmailChanges",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getPendingPreferredEmailChanges"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUserExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUserExtSources/u"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUserWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUserWithAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUsersByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUsersWithAttributesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersWithAttributesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUsersWithoutVoWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("attrsNames[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersWithoutVoWithAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getSpecificUsersByUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSpecificUsersByUser"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getSponsorsForMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSponsorsForMember/member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsorsForMemberByVoAndLogin",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),n&&n.forEach(function(t){a=a.append("attrNames[]",t)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSponsorsForMember/vo"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getUserByExtSourceNameAndExtLogin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("extLogin",t)),null!=e&&(r=r.set("extSourceName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserByExtSourceNameAndExtLogin"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourcesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourcesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUsersByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsersByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUsersBySpecificUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("specificUser",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsersBySpecificUser"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getVosWhereUserIsAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosWhereUserIsMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getVosWhereUserIsMember"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isLoginAvailable",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("loginNamespace",t)),null!=e&&(r=r.set("login",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/isLoginAvailable"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"loginExist",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/loginExist"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSpecificUserOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("specificUser",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/removeSpecificUserOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserExtSource",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("userExtSource",e)),null!=i&&(o=o.set("force",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/removeUserExtSource"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"requestPreferredEmailChange",value:function(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",u=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("email",e)),null!=i&&(c=c.set("lang",i)),null!=n&&(c=c.set("linkPath",n)),null!=r&&(c=c.set("customUrl",r)),null!=o&&(c=c.set("idpFilter",o));var l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var h="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+h)}var d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/requestPreferredEmailChange"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:u})}},{key:"reservePasswordForLogin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reservePassword/login"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"reservePasswordForUser",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reservePassword/user"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"reserveRandomPassword",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reserveRandomPassword"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"updateUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/updateUser"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"validatePasswordForLogin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePassword/login"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"validatePasswordForUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePassword/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"validatePreferredEmailChangeWithToken",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("token",t)),null!=e&&(r=r.set("u",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePreferredEmailChange"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),O=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"getAppsConfig",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getAppsConfig"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getGuiConfiguration",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getGuiConfiguration"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunRPCVersion",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunStatistics",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunStatistics"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunStatus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunStatus"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunSystemTimeInMillis",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunSystemTimeInMillis"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),P=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"addSponsorRoleToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addSponsorRole/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addSponsorRoleToUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addSponsorRole/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addVoAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addVoAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createVoWithName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("shortName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/createVo/withName"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createVoWithVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/createVo/withVo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/deleteVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findCandidates",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),null!=e&&(o=o.set("searchString",e)),null!=i&&(o=o.set("maxNumOfResults",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/findCandidates"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"findCandidatesForGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("searchString",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/findCandidates/forGroup"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllVos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAllVos"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getCompleteCandidatesForGroup",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(function(t){o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getCompleteCandidates/forGroup"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getCompleteCandidatesForVo",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(function(t){o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getCompleteCandidates/forVo"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMyVos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVos"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getRichAdminsForVo",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("vo",t)),null!=e&&(u=u.set("role",e)),i&&i.forEach(function(t){u=u.append("specificAttributes",t)}),null!=n&&(u=u.set("allUserAttributes",n)),null!=r&&(u=u.set("onlyDirectAdmins",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getRichAdmins"),{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}},{key:"getVoAdminGroups",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("role",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAdminGroups"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAdminUsers",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("role",e)),null!=i&&(o=o.set("onlyDirectAdmins",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAdmins"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getVoBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBanById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoBanForMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBanForMember"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoBansForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBansForVo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoByShortName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("shortName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoByShortName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoMembersCountsByStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoMembersCountsByStatus"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVosByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVosCount"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"removeSponsorRoleFromGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeSponsorRole/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSponsorRoleFromUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeSponsorRole/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeBan"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeVoBanForMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeBanForMember"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"setVoBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/setBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/updateVo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),D={WRITE:"WRITE",WRITEVO:"WRITE_VO",WRITEPUBLIC:"WRITE_PUBLIC",READ:"READ",READVO:"READ_VO",READPUBLIC:"READ_PUBLIC"};!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(n||(n={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(r||(r={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(o||(o={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(a||(a={}));var M={HTMLCOMMENT:"HTML_COMMENT",SUBMITBUTTON:"SUBMIT_BUTTON",AUTOSUBMITBUTTON:"AUTO_SUBMIT_BUTTON",FROMFEDERATIONSHOW:"FROM_FEDERATION_SHOW",FROMFEDERATIONHIDDEN:"FROM_FEDERATION_HIDDEN",PASSWORD:"PASSWORD",VALIDATEDEMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDEDGROUPAPPLICATION:"EMBEDDED_GROUP_APPLICATION"},L=function(){var t=function(){function t(e,i){if(v(this,t),e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!i)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}return y(t,null,[{key:"forRoot",value:function(e){return{ngModule:t,providers:[{provide:h,useFactory:e}]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(t,12),c.LFG(s.eN,8))},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({providers:[d,f,p,g,m,b,w,_,A,k,T,C,S,E,x,R,I,O,P],imports:[[]]}),t}()},22280:function(t,e,i){"use strict";i.d(e,{r5:function(){return s.r},d4:function(){return o},dp:function(){return a.d}});var n=i(61511),r=i(31572),o=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.ez]]}),t}(),a=i(22196),s=(i(83787),i(95603));i(91322),i(63720),i(1157),i(48853)},83787:function(t,e,i){"use strict";i.d(e,{a:function(){return a}});var n=i(88426),r=i(31572),o=i(48160),a=function(){var t=function(){function t(e,i){v(this,t),this.translate=e,this.storage=i}return y(t,[{key:"transform",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",i=this.storage.get("custom_labels");if(i)for(var n=Object.keys(i),r=0,o=n;r0?"red":null!==c&&c.trim().length>0?"green":""}if(o){var l=(0,n.IL)(t.attributes,r.r.GROUP_LAST_STRUCTURE_SYNC_STATE),h=(0,n.IL)(t.attributes,r.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),d=l.value,f=h.value;return null!=d&&d.trim().length>0?"red":null!==f&&f.trim().length>0?"green":""}return""}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncIconColor",type:t,pure:!0}),t}()},52984:function(t,e,i){"use strict";i.d(e,{J:function(){return a}});var n=i(67004),r=i(27613),o=i(31572),a=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){if(null==t||null==t.attributes)return"";var e=(0,r.IL)(t.attributes,n.r.GROUP_SYNC_ENABLED),i=(0,r.IL)(t.attributes,n.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"";var o=i.value;if("true"===e.value){var a=(0,r.IL)(t.attributes,n.r.GROUP_LAST_SYNC_STATE),s=(0,r.IL)(t.attributes,n.r.GROUP_LAST_SYNC_TIMESTAMP),u=a.value,c=s.value;return null!=u&&u.trim().length>0?"sync_problem":(null!==c&&c.trim(),"sync")}if(o){var l=(0,r.IL)(t.attributes,n.r.GROUP_LAST_STRUCTURE_SYNC_STATE),h=(0,r.IL)(t.attributes,n.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),d=l.value,f=h.value;return null!=d&&d.trim().length>0?"sync_problem":(null!==f&&f.trim(),"sync")}return"sync_disabled"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncIcon",type:t,pure:!0}),t}()},44385:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var n=i(27613),r=i(67004),o=i(31572),a=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";var e=(0,n.IL)(t.attributes,r.r.GROUP_SYNC_ENABLED),i=(0,n.IL)(t.attributes,r.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";var o=i.value;if("true"===e.value){var a=(0,n.IL)(t.attributes,r.r.GROUP_LAST_SYNC_STATE),s=(0,n.IL)(t.attributes,r.r.GROUP_LAST_SYNC_TIMESTAMP),u=a.value,c=s.value;return null!=u&&u.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==c&&c.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(o){var l=(0,n.IL)(t.attributes,r.r.GROUP_LAST_STRUCTURE_SYNC_STATE),h=(0,n.IL)(t.attributes,r.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),d=l.value,f=h.value;return null!=d&&d.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==f&&f.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncToolTip",type:t,pure:!0}),t}()},63720:function(t,e,i){"use strict";i.d(e,{D:function(){return o}});var n=i(27613),r=i(31572),o=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return(0,n.g$)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"memberEmail",type:t,pure:!0}),t}()},1157:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var n=i(27613),r=i(31572),o=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return(0,n.lt)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"memberLogins",type:t,pure:!0}),t}()},99197:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var n=i(27613),r=i(31572),o=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return(0,n.Gw)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"memberOrganization",type:t,pure:!0}),t}()},74842:function(t,e,i){"use strict";i.d(e,{u:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){switch(t){case"VALID":return"green";case"INVALID":return"red";default:return""}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatusIconColor",type:t,pure:!0}),t}()},37043:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){switch(t){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return t}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatusIcon",type:t,pure:!0}),t}()},91322:function(t,e,i){"use strict";i.d(e,{i:function(){return o}});var n=i(27613),r=i(31572),o=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t,e){var i=null,r=null;null!==t.memberAttributes&&(i=t.memberAttributes.find(function(t){return"membershipExpiration"===t.friendlyName}),r=t.memberAttributes.find(function(t){return"groupMembershipExpiration"===t.friendlyName}));return e?"\n Group status: ".concat((0,n.Oe)(t.groupStatus),", Expiration: ").concat(r&&r.value?r.value:"never"):"Status: ".concat((0,n.Oe)(t.status,t.groupStatus),"\n Vo status: ").concat((0,n.Oe)(t.status),", Expiration: ").concat(i&&i.value?i.value:"never")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"memberStatusTooltip",type:t,pure:!0}),t}()},58506:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var n=i(61511),r=i(31572),o=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t,e){return"voRules"===t?"Vo rules":"groupRules"===t?"Group rules":t&&"never"!==t.toLowerCase()?(0,n.p6)(t.replace(" ","T"),"d.M.yyyy "+(e?"H:mm:ss":""),"en"):"never"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"parseDate",type:t,pure:!0}),t}()},48853:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(27613),r=i(31572),o=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return(0,n.te)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"technicalOwners",type:t,pure:!0}),t}()},22196:function(t,e,i){"use strict";i.d(e,{d:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){var e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"userFullName",type:t,pure:!0}),t}()},88426:function(t,e,i){"use strict";i.d(e,{yC:function(){return D},F5:function(){return O},sM:function(){return N},e8:function(){return A},EB:function(){return E},ly:function(){return Z},xw:function(){return z},x4:function(){return s},v0:function(){return T},Ct:function(){return H},SZ:function(){return M},V6:function(){return P},d6:function(){return _},UA:function(){return F}});var n=i(33642),r=i(14732),a=i(31572),s=function(){var t=function(){function t(e){v(this,t),this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}return y(t,[{key:"init",value:function(t){this.principal=t,this.initData(t)}},{key:"setPerunPolicies",value:function(t){this.perunPolicies=t}},{key:"getPerunPolicies",value:function(){return this.perunPolicies}},{key:"isAuthorized",value:function(t,e){if(null===this.principal.roles)return!1;var i,n=[],r=f(this.fetchPolicyWithAllIncludedPolicies(t));try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n.concat(o.perunRoles)}}catch(s){r.e(s)}finally{r.f()}var a=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,a)}},{key:"resolveAuthorization",value:function(t,e){var i,n=f(t);try{for(n.s();!(i=n.n()).done;){for(var r=i.value,o=!0,a=0,s=Object.keys(r);a1&&void 0!==arguments[1]?arguments[1]:this.getDefaultRpcMessage();this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}},{key:"showError",value:function(t,e,i,n,r){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:r,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}},{key:"showSuccess",value:function(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.LFG(b.sK))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),D=function(){var t=function(){function t(e,i,n,r,o,a){v(this,t),this.authService=e,this.apiRequestConfiguration=i,this.notificator=n,this.store=r,this.dialog=o,this.initAuthService=a}return y(t,[{key:"intercept",value:function(t,e){var i=this,n=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==n&&-1!==t.url.toString().indexOf(n)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()){var r=(0,p.kZ)();r.width="450px",this.dialog.open(w,r).afterClosed().subscribe(function(){i.authService.startAuthentication().then(function(){})})}t=t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});var o=this.apiRequestConfiguration.shouldHandleError(),a="POST"===t.method&&!this.store.skipOidc();return e.handle(t).pipe((0,I.b)(function(t){t instanceof x.Zn&&a&&i.initAuthService.loadPrincipal()},function(e){var n=i.formatErrors(e,t);return void 0===n?(0,R._)(e):o?void i.notificator.showRPCError(n):(0,R._)(n)}))}},{key:"formatErrors",value:function(t,e){var i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.call=e.url,i.payload=e.body,i}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.LFG(A),a.LFG(O),a.LFG(P),a.LFG(_),a.LFG(g.uw),a.LFG(T))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t}(),M=function(){var t=function(){function t(){v(this,t),this.notificationData=[],this.newNotificationsCount=0}return y(t,[{key:"storeNotification",value:function(t){this.newNotificationsCount++,this.notificationData.push(t)}},{key:"getNotifications",value:function(){return this.notificationData.reverse()}},{key:"clearNotifications",value:function(){this.notificationData=[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),L=i(47727),N=function(){var t=function(){function t(e,i,n,r){v(this,t),this.http=e,this.notificator=i,this.authService=n,this.storeService=r}return y(t,[{key:"getApiUrl",value:function(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}},{key:"formatErrors",value:function(t,e,i,n){var r=t.error;return r.call=e,r.payload=i,n&&this.notificator.showRPCError(t.error),(0,R._)(r)}},{key:"getHeaders",value:function(){var t=new x.WM;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue())}},{key:"get",value:function(t){var e=this,i=(arguments.length>1&&void 0!==arguments[1]||new x.LE,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]),n="".concat(this.getApiUrl()).concat(t);return this.http.get(n,{headers:this.getHeaders()}).pipe((0,L.K)(function(t){return e.formatErrors(t,n,null,i)}))}},{key:"put",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(t),o=JSON.stringify(i);return this.http.put(r,o,{headers:this.getHeaders()}).pipe((0,L.K)(function(t){return e.formatErrors(t,r,o,n)}))}},{key:"post",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(t),o=JSON.stringify(i),a=this.getHeaders();return a=a.set("Content-Type","application/json; charset=utf-8"),this.http.post(r,o,{headers:a}).pipe((0,L.K)(function(t){return e.formatErrors(t,r,o,n)}))}},{key:"delete",value:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="".concat(this.getApiUrl()).concat(t);return this.http.delete(n,{headers:this.getHeaders()}).pipe((0,L.K)(function(t){return e.formatErrors(t,n,null,i)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.LFG(x.eN),a.LFG(P),a.LFG(A),a.LFG(_))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),z=function(){var t=function(){function t(e){var i=this;v(this,t),this.router=e,this.lastState="forward",this.history=new Set,e.events.subscribe(function(t){t instanceof d.OD&&("popstate"===t.navigationTrigger?i.history.has(t.restoredState.navigationId)?(i.lastState="back",i.history.delete(t.restoredState.navigationId)):(i.lastState="forward",i.history.add(t.id)):(i.history.add(t.id),i.lastState="forward"))})}return y(t,[{key:"forceNavigate",value:function(t,e){if(null!==t){var i="";t.forEach(function(t){return i+="/"+t}),i.length>0&&(i=i.substring(1)),void 0===e&&(e={}),e.queryParams={redirectTo:i},this.router.navigate(["redirect"],e)}}},{key:"getLastState",value:function(){return this.lastState}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.LFG(d.F0))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),F=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"isAllSelectedWithDisabledCheckbox",value:function(t,e,i,n,r,o,a,s){var u=this;return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=r*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?o.data.length:o.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),o.sortData(o.filteredData,a).forEach(function(t){u.pageStart<=u.pageIterator&&u.pageIterator0&&n.splice(r,1),0!==r&&n.unshift(e.id),n.length>5&&n.pop(),localStorage.setItem(t,JSON.stringify(n))}}function w(t){if(null===localStorage.getItem("recent")){var e;e="Group"===t.beanName?[{id:t.id,name:t.shortName,type:t.beanName,voId:t.voId}]:[{id:t.id,name:t.name,type:t.beanName,voId:t.voId}],localStorage.setItem("recent",JSON.stringify(e))}else{var i,n=JSON.parse(localStorage.getItem("recent")),r=function(t,e){for(var i=0;i0&&n.splice(r,1),0!==r&&n.unshift(i),n.length>5&&n.pop(),localStorage.setItem("recent",JSON.stringify(n))}}function _(t){var e="";return t&&t.userAttributes.forEach(function(t){"organization"===t.friendlyName&&(e=t.value)}),e}function A(t){return t.filter(function(t){return!t.namespace.includes("def:core")})}function k(t,e){var i=e.find(function(e){return e.id===t});return i?i.parentGroupId?k(i.parentGroupId,e).concat(i):[i]:[]}function T(t,e){var i,n=f(t);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r.namespace+":"+r.friendlyName===e)return r}}catch(o){n.e(o)}finally{n.f()}return null}function C(t){return null!=t.attributes["urn:perun:member:attribute-def:def:mail"]?t.attributes["urn:perun:member:attribute-def:def:mail"]:null!=t.attributes["urn:perun:user:attribute-def:def:preferredMail"]?t.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function S(t){return t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function(t){if(t.includes("/CN=")){var e=t.split("/");for(var i in e)if(i.startsWith("CN="))return n=i.substring(3),decodeURIComponent(n.replace(/\\x/g,"%"))}var n;return t}(t.userExtSource.extSource.name):t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function(t){switch(t){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":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":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"@mojeid.extidp.cesnet.cz":return"MojeID";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@elixir-europe.org":return"Elixir Europe";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return t}}(t.userExtSource.extSource.name):t.userExtSource.extSource.name}function E(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["en","cs"],e={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{}};return t.forEach(function(t){e.message[t]={locale:t,subject:"",text:""}}),e}function x(){var t=new r.vA;return t.disableClose=!0,t.autoFocus=!1,t}function R(t){var e,i={applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null},n=f(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;i.i18n[r]={locale:r,errorMessage:"",help:"",label:"",options:""}}}catch(o){n.e(o)}finally{n.f()}return i}function I(t){return"virt"===t.namespace.split(":")[4]}function O(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?t:"ACTIVE"}function P(t){var e="";return t&&null!==t.memberAttributes&&(t.memberAttributes.forEach(function(t){"organization"===t.friendlyName&&null!==t.value&&(e=t.value)}),0===e.length&&null!==t.userAttributes&&t.userAttributes.forEach(function(t){"organization"===t.friendlyName&&(e=t.value)})),e}function D(t){var e=t.attributes.find(function(t){return"groupMembershipExpiration"===t.baseFriendlyName});return e&&e.value?e.value:"Never"}function M(t){return t&&"never"!==t.toLowerCase()?(0,o.p6)(t,"d.M.yyyy","en"):t}function L(t,e,i,n){var r=e.active,o=e.direction;return r&&""!==o?t.sort(function(t,e){var a=i(t,r,n),s=i(e,r,n);return new Intl.Collator("cs",{numeric:!0}).compare(a,s)*("asc"===o?1:-1)}):t}function N(t,e,i,n,r,o){e=e.toLowerCase();var a="";return i.forEach(function(e){a+=";"+n(t,e,r)}),o&&(a+=";"+n(t,"uuid",r)),-1!==a.toLowerCase().indexOf(e)}function z(t,e,i,n){var r=[],o=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(function(t){return!o.includes(t)}),t.forEach(function(t){var o={};e.forEach(function(e){var r;o[e]=(null!==(r=i(t,e,n))&&void 0!==r?r:"").split('"').join("''").trim()}),r.push(o)}),r}function F(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"csv",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"export";switch(e){case"csv":var n=function(t,e){return null===e?"":e},r=Object.keys(t[0]),o=t.map(function(t){return r.map(function(e){return JSON.stringify(t[e],n)}).join(",")});o.unshift(r.join(",").split(" ").join("_").split('"').join("''"));var s=o.join("\r\n"),u=new Blob([s],{type:"text/csv"});(0,a.saveAs)(u,"".concat(i,".").concat(e))}}function Z(t,e){return t.name.toLowerCase()>e.name.toLowerCase()?1:t.name.toLowerCase()===e.name.toLowerCase()?0:-1}function B(t,e){var i,n,r,o,a,s;return t.user?(a=t.user.lastName?t.user.lastName:null!==(i=t.user.firstName)&&void 0!==i?i:"",s=e.user.lastName?e.user.lastName:null!==(n=e.user.firstName)&&void 0!==n?n:""):(a=t.lastName?t.lastName:null!==(r=t.firstName)&&void 0!==r?r:"",s=e.lastName?e.lastName:null!==(o=e.firstName)&&void 0!==o?o:""),a>s?1:a===s?0:-1}},82819:function(t,e,i){"use strict";i.d(e,{l:function(){return p}});var n=i(31572),r=i(73005),o=i(38457),a=i(61511),s=i(15980),u=i(8055),c=i(43691),l=i(48160),h=function(){var t=function t(){v(this,t),this.exportData=new n.vpe};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"button",1),n.TgZ(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA(),n.qZA(),n.TgZ(4,"mat-menu",null,2),n.TgZ(6,"button",3),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.qZA(),n.TgZ(9,"mat-menu",null,4),n.TgZ(11,"button",5),n.NdJ("click",function(){return e.exportData.emit("csv")}),n._uU(12,"Csv"),n.qZA(),n.qZA(),n.qZA()),2&t){var i=n.MAs(5),r=n.MAs(10);n.xp6(1),n.Q6J("matMenuTriggerFor",i),n.xp6(5),n.Q6J("matMenuTriggerFor",r),n.xp6(1),n.hij(" ",n.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[s.lW,u.p6,c.Hw,u.VK,u.OP],pipes:[l.X$],styles:[""]}),t}();function d(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-table-options",6),n.NdJ("exportData",function(t){return n.CHM(i),n.oxw().exportData.emit(t)}),n.qZA()}}var f=["*"],p=function(){var t=function(){function t(){v(this,t),this.hideExport=!1,this.page=new n.vpe,this.pageSizeOptions=o.f7,this.pageSize=5,this.dataLength=0,this.exportData=new n.vpe}return y(t,[{key:"matPaginator",set:function(t){this.paginator=t}},{key:"pageChanged",value:function(t){this.paginator.pageSize=t.pageSize,this.paginator.pageIndex=t.pageIndex,this.page.emit(t),this.paginator.page.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(r.NW,7),2&t)&&(n.iGM(i=n.CRH())&&(e.matPaginator=i.first))},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",pageSize:"pageSize",dataLength:"dataLength"},outputs:{page:"page",exportData:"exportData"},ngContentSelectors:f,decls:7,vars:8,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.TgZ(2,"mat-paginator",2),n.NdJ("page",function(t){return e.page.emit(t)}),n.qZA(),n.YNc(3,d,1,0,"perun-web-apps-table-options",3),n.qZA(),n.TgZ(4,"div",4),n.Hsn(5),n.qZA(),n.TgZ(6,"mat-paginator",5),n.NdJ("page",function(t){return e.pageChanged(t)}),n.qZA(),n.qZA()),2&t&&(n.xp6(2),n.Q6J("length",e.dataLength)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("ngIf",!e.hideExport),n.xp6(3),n.Q6J("length",e.paginator.length)("pageIndex",e.paginator.pageIndex)("pageSizeOptions",e.paginator.pageSizeOptions)("pageSize",e.paginator.pageSize))},directives:[r.NW,a.O5,h],styles:[""]}),t}()},39571:function(t,e,i){"use strict";i.d(e,{w:function(){return u}});var n=i(31572),r=i(61511),o=i(43691);function a(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," error "),n.qZA())}var s=["*"],u=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:s,decls:3,vars:7,consts:[[1,"perun-alert","d-flex","align-items-center"],["class","perun-warn-alert-icon",4,"ngIf"],[1,"perun-warn-alert-icon"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.YNc(1,a,2,0,"mat-icon",1),n.Hsn(2),n.qZA()),2&t&&(n.ekj("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("info-alert","info"===e.alert_type),n.xp6(1),n.Q6J("ngIf","error"!==e.alert_type))},directives:[r.O5,o.Hw],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%], .perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-warn-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{color:#000;background-color:#fae2e2;border-left:4px solid;border-color:#d32f2f}"]}),t}()},22727:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var n=i(43691),r=i(61511),o=i(31572),a=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.Ps,r.ez]]}),t}()},10709:function(t,e,i){"use strict";i.d(e,{l3:function(){return o},_j:function(){return n},LC:function(){return r},ZN:function(){return b},jt:function(){return s},pV:function(){return p},ru:function(){return u},F4:function(){return d},IO:function(){return g},vP:function(){return c},SB:function(){return h},oB:function(){return l},eR:function(){return f},X$:function(){return a},ZE:function(){return w},k1:function(){return _}});var n=function t(){v(this,t)},r=function t(){v(this,t)},o="*";function a(t,e){return{type:7,name:t,definitions:e,options:{}}}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:t,options:e}}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function l(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function d(t){return{type:5,steps:t}}function f(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:i}}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function g(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:i}}function m(t){Promise.resolve(null).then(t)}var b=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;v(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+i}return y(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;m(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),w=function(){function t(e){var i=this;v(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,r=0,o=0,a=this.players.length;0==a?m(function(){return i._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==a&&i._onFinish()}),t.onDestroy(function(){++r==a&&i._onDestroy()}),t.onStart(function(){++o==a&&i._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return y(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(t){var i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(t,e){return null===t||e.totalTime>t.totalTime?e:t},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),_="!"},24621:function(t,e,i){"use strict";i.d(e,{rt:function(){return X},s1:function(){return P},$s:function(){return x},Qr:function(){return H},kH:function(){return Q},mK:function(){return Z},Em:function(){return D},tE:function(){return K},qV:function(){return F},qm:function(){return W},Kd:function(){return U},X6:function(){return j},yG:function(){return G}});var r=i(61511),s=i(31572),c=i(55959),l=i(87570),h=i(40878),f=i(75842),p=i(66599),g=i(47701),m=i(43835),b=i(79996),w=i(90611),_=i(19861),A=i(11353),k=i(36337);function T(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var C=0,S=new Map,E=null,x=function(){var t=function(){function t(e){v(this,t),this._document=e}return y(t,[{key:"describe",value:function(t,e,i){if(this._canBeDescribed(t,e)){var n=R(e,i);"string"!=typeof e?(I(e),S.set(n,{messageElement:e,referenceCount:0})):S.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}}},{key:"removeDescription",value:function(t,e,i){if(e&&this._isElementNode(t)){var n=R(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){var r=S.get(n);r&&0===r.referenceCount&&this._deleteMessageElement(n)}E&&0===E.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e-1&&e!==i._activeItemIndex&&(i._activeItemIndex=e)}})}return y(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,p.b)(function(e){return t._pressedLetters.push(e)}),(0,g.b)(e),(0,m.h)(function(){return t._pressedLetters.length>0}),(0,b.U)(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var i=t._getItemsArray(),n=1;n0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,i=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(function(i){return!t[i]||e._allowedModifierKeys.indexOf(i)>-1});switch(i){case f.Mf:return void this.tabOut.next();case f.JH:if(this._vertical&&n){this.setNextItemActive();break}return;case f.LH:if(this._vertical&&n){this.setPreviousItemActive();break}return;case f.SV:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case f.oh:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case f.Sd:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case f.uR:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||(0,f.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(i>=f.A&&i<=f.Z||i>=f.xE&&i<=f.aO)&&this._letterKeyStream.next(String.fromCharCode(i))))}this._pressedLetters=[],t.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),i=1;i<=e.length;i++){var n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof s.n_E?this._items.toArray():this._items}}]),t}(),P=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),n(d(i.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),i}(O),D=function(t){a(i,t);var e=u(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._origin="program",t}return y(i,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){n(d(i.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),i}(O),M=function(){var t=function(){function t(e){v(this,t),this._platform=e}return y(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,i=function(t){try{return t.frameElement}catch(e){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(i){if(-1===N(i))return!1;if(!this.isVisible(i))return!1}var n=t.nodeName.toLowerCase(),r=N(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==r:"video"===n?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}},{key:"isFocusable",value:function(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||L(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(A.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(A.t4))},token:t,providedIn:"root"}),t}();function L(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function N(t){if(!L(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var z=function(){function t(e,i,n,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];v(this,t),this._element=e,this._checker=i,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return y(t,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.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)}},{key:"focusInitialElementWhenReady",value:function(t){var e=this;return new Promise(function(i){e._executeOnStable(function(){return i(e.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var e=this;return new Promise(function(i){e._executeOnStable(function(){return i(e.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var e=this;return new Promise(function(i){e._executeOnStable(function(){return i(e.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], [cdkFocusRegion").concat(t,"], [cdk-focus-").concat(t,"]")),i=0;i=0;i--){var n=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(n)return n}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(t)}}]),t}(),F=function(){var t=function(){function t(e,i,n){v(this,t),this._checker=e,this._ngZone=i,this._document=n}return y(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new z(t,this._checker,this._ngZone,this._document,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(M),s.LFG(s.R0b),s.LFG(r.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(M),s.LFG(s.R0b),s.LFG(r.K0))},token:t,providedIn:"root"}),t}(),Z=function(){var t=function(){function t(e,i,n){v(this,t),this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return y(t,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=(0,_.Ig)(t)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(t){this._autoCapture=(0,_.Ig)(t)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(t){var e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=(0,A.ht)(),this.focusTrap.focusInitialElementWhenReady()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(F),s.Y36(r.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[s.TTD]}),t}();"undefined"!=typeof Element&∈var B=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),q=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),U=function(){var t=function(){function t(e,i,n,r){v(this,t),this._ngZone=i,this._defaultOptions=r,this._document=n,this._liveElement=e||this._createLiveElement()}return y(t,[{key:"announce",value:function(t){for(var e,i,n,r=this,a=this._defaultOptions,s=arguments.length,u=new Array(s>1?s-1:0),c=1;c1&&void 0!==arguments[1]&&arguments[1],i=(0,_.fI)(t);if(!this._platform.isBrowser||1!==i.nodeType)return(0,h.of)(null);var n=(0,A.kV)(i)||this._getDocument(),r=this._elementInfo.get(i);if(r)return e&&(r.checkChildren=!0),r.subject;var o={checkChildren:e,subject:new c.xQ,rootNode:n};return this._elementInfo.set(i,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(t){var e=(0,_.fI)(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}},{key:"focusVia",value:function(t,e,i){var n=this,r=(0,_.fI)(t);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(t){var i=o(t,2),r=i[0],a=i[1];return n._originChanged(r,e,a)}):(this._setOriginForCurrentEventQueue(e),"function"==typeof r.focus&&r.focus(i))}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach(function(e,i){return t.stopMonitoring(i)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,i){i?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout(function(){return e._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(t){var e=J(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var i=this._elementInfo.get(e);i&&(i.checkChildren||e===J(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}},{key:"_onBlur",value:function(t,e){var i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run(function(){return t.next(e)})}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var i=t.rootNode,n=this._rootNodeFocusListenerCount.get(i)||0;n||this._ngZone.runOutsideAngular(function(){i.addEventListener("focus",e._rootNodeFocusAndBlurListener,V),i.addEventListener("blur",e._rootNodeFocusAndBlurListener,V)}),this._rootNodeFocusListenerCount.set(i,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var t=e._getDocument(),i=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,V),t.addEventListener("mousedown",e._documentMousedownListener,V),t.addEventListener("touchstart",e._documentTouchstartListener,V),i.addEventListener("focus",e._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var i=this._rootNodeFocusListenerCount.get(e);i>1?this._rootNodeFocusListenerCount.set(e,i-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,V),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,V),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var n=this._getDocument(),r=this._getWindow();n.removeEventListener("keydown",this._documentKeydownListener,V),n.removeEventListener("mousedown",this._documentMousedownListener,V),n.removeEventListener("touchstart",this._documentTouchstartListener,V),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}},{key:"_getClosestElementsInfo",value:function(t){var e=[];return this._elementInfo.forEach(function(i,n){(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(A.t4),s.LFG(r.K0,8),s.LFG(Y,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(A.t4),s.LFG(r.K0,8),s.LFG(Y,8))},token:t,providedIn:"root"}),t}();function J(t){return t.composedPath?t.composedPath()[0]:t.target}var Q=function(){var t=function(){function t(e,i){v(this,t),this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new s.vpe}return y(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(e){return t.cdkFocusChange.emit(e)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(K))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),W=function(){var t=function(){function t(e,i){v(this,t),this._platform=e,this._document=i}return y(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(A.t4),s.LFG(r.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(A.t4),s.LFG(r.K0))},token:t,providedIn:"root"}),t}(),X=function(){var t=function t(e){v(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275fac=function(e){return new(e||t)(s.LFG(W))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[A.ud,k.Q8]]}),t}()},22526:function(t,e,i){"use strict";i.d(e,{vT:function(){return s},Is:function(){return a}});var n=i(31572),r=i(61511),o=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,n.f3M)(r.K0)}}),a=function(){var t=function(){function t(e){if(v(this,t),this.value="ltr",this.change=new n.vpe,e){var i=e.documentElement?e.documentElement.dir:null,r=(e.body?e.body.dir:null)||i;this.value="ltr"===r||"rtl"===r?r:"ltr"}}return y(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(o,8))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(o,8))},token:t,providedIn:"root"}),t}(),s=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t}()},81391:function(t,e,i){"use strict";i.d(e,{i3:function(){return u},TU:function(){return a},Iq:function(){return c}});var n=i(61511),r=i(31572),o=function(){function t(e,i){v(this,t),this._document=i;var n=this._textarea=this._document.createElement("textarea"),r=n.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",n.setAttribute("aria-hidden","true"),n.value=e,this._document.body.appendChild(n)}return y(t,[{key:"copy",value:function(){var t=this._textarea,e=!1;try{if(t){var i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(n){}return e}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),t}(),a=function(){var t=function(){function t(e){v(this,t),this._document=e}return y(t,[{key:"copy",value:function(t){var e=this.beginCopy(t),i=e.copy();return e.destroy(),i}},{key:"beginCopy",value:function(t){return new o(t,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.K0))},token:t,providedIn:"root"}),t}(),s=new r.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG"),u=function(){var t=function(){function t(e,i,n){v(this,t),this._clipboard=e,this._ngZone=i,this.text="",this.attempts=1,this.copied=new r.vpe,this._pending=new Set,n&&null!=n.attempts&&(this.attempts=n.attempts)}return y(t,[{key:"copy",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(e>1){var i=e,n=this._clipboard.beginCopy(this.text);this._pending.add(n);var r=function e(){var r=n.copy();r||!--i||t._destroyed?(t._currentTimeout=null,t._pending.delete(n),n.destroy(),t.copied.emit(r)):t._currentTimeout=t._ngZone.runOutsideAngular(function(){return setTimeout(e,1)})};r()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(function(t){return t.destroy()}),this._pending.clear(),this._destroyed=!0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(a),r.Y36(r.R0b),r.Y36(s,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&r.NdJ("click",function(){return e.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t}(),c=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}()},19861:function(t,e,i){"use strict";i.d(e,{t6:function(){return a},Eq:function(){return s},Ig:function(){return r},HM:function(){return u},fI:function(){return c},su:function(){return o},du:function(){return l}});var n=i(31572);function r(t){return null!=t&&"false"!="".concat(t)}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return a(t)?Number(t):e}function a(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function s(t){return Array.isArray(t)?t:[t]}function u(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function c(t){return t instanceof n.SBq?t.nativeElement:t}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,i=[];if(null!=t){var n,r=Array.isArray(t)?t:"".concat(t).split(e),o=f(r);try{for(o.s();!(n=o.n()).done;){var a=n.value,s="".concat(a).trim();s&&i.push(s)}}catch(u){o.e(u)}finally{o.f()}}return i}},4230:function(t,e,i){"use strict";i.d(e,{P3:function(){return h},o2:function(){return c},Ov:function(){return g},A8:function(){return m},yy:function(){return d},eX:function(){return p},k:function(){return b},Z9:function(){return l}});var n=i(4710),r=i(40878),o=i(55959),s=i(31572),c=function t(){v(this,t)};function l(t){return t&&"function"==typeof t.connect}var h=function(t){a(i,t);var e=u(i);function i(t){var n;return v(this,i),(n=e.call(this))._data=t,n}return y(i,[{key:"connect",value:function(){return(0,n.b)(this._data)?this._data:(0,r.of)(this._data)}},{key:"disconnect",value:function(){}}]),i}(c),d=function(){function t(){v(this,t)}return y(t,[{key:"applyChanges",value:function(t,e,i,n,r){t.forEachOperation(function(t,n,o){var a,s;if(null==t.previousIndex){var u=i(t,n,o);a=e.createEmbeddedView(u.templateRef,u.context,u.index),s=1}else null==o?(e.remove(n),s=3):(a=e.get(n),e.move(a,o),s=2);r&&r({context:null==a?void 0:a.context,operation:s,record:t})})}},{key:"detach",value:function(){}}]),t}(),p=function(){function t(){v(this,t),this.viewCacheSize=20,this._viewCache=[]}return y(t,[{key:"applyChanges",value:function(t,e,i,n,r){var o=this;t.forEachOperation(function(t,a,s){var u,c;null==t.previousIndex?c=(u=o._insertView(function(){return i(t,a,s)},s,e,n(t)))?1:0:null==s?(o._detachAndCacheView(a,e),c=3):(u=o._moveView(a,s,e,n(t)),c=2),r&&r({context:null==u?void 0:u.context,operation:c,record:t})})}},{key:"detach",value:function(){var t,e=f(this._viewCache);try{for(e.s();!(t=e.n()).done;){t.value.destroy()}}catch(i){e.e(i)}finally{e.f()}this._viewCache=[]}},{key:"_insertView",value:function(t,e,i,n){var r=this._insertViewFromCache(e,i);if(!r){var o=t();return i.createEmbeddedView(o.templateRef,o.context,o.index)}r.context.$implicit=n}},{key:"_detachAndCacheView",value:function(t,e){var i=e.detach(t);this._maybeCacheView(i,e)}},{key:"_moveView",value:function(t,e,i,n){var r=i.get(t);return i.move(r,e),r.context.$implicit=n,r}},{key:"_maybeCacheView",value:function(t,e){if(this._viewCache.length0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];v(this,t),this._multiple=i,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.xQ,n&&n.length&&(i?n.forEach(function(t){return e._markSelected(t)}):this._markSelected(n[0]),this._selectedToEmit.length=0)}return y(t,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n-1?1:1e3;return parseFloat(t)*e}function I(t,e){return t.getPropertyValue(e).split(",").map(function(t){return t.trim()})}function O(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function P(t,e,i){var n=t.top,r=t.bottom,o=t.left,a=t.right;return i>=n&&i<=r&&e>=o&&e<=a}function D(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function M(t,e,i,n){var r=t.top,o=t.right,a=t.bottom,s=t.left,u=t.width*e,c=t.height*e;return n>r-c&&ns-u&&i=s._config.dragStartThreshold){var r=Date.now()>=s._dragStartTime+s._getDragStartDelay(t),o=s._dropContainer;if(!r)return void s._endDragSequence(t);o&&(o.isDragging()||o.isReceiving())||(t.preventDefault(),s._hasStartedDragging=!0,s._ngZone.run(function(){return s._startDragSequence(t)}))}},this._pointerUp=function(t){s._endDragSequence(t)},this.withRootElement(e).withParent(i.parentDragRef||null),this._parentPositions=new L(n,o),a.registerDragItem(this)}return y(t,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var e=(0,c.Ig)(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(function(t){return S(t,e)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(t){var e=this;this._handles=t.map(function(t){return(0,c.fI)(t)}),this._handles.forEach(function(t){return S(t,e.disabled)}),this._toggleNativeDragInteractions();var i=new Set;return this._disabledHandles.forEach(function(t){e._handles.indexOf(t)>-1&&i.add(t)}),this._disabledHandles=i,this}},{key:"withPreviewTemplate",value:function(t){return this._previewTemplate=t,this}},{key:"withPlaceholderTemplate",value:function(t){return this._placeholderTemplate=t,this}},{key:"withRootElement",value:function(t){var e=this,i=(0,c.fI)(t);return i!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){i.addEventListener("mousedown",e._pointerDown,U),i.addEventListener("touchstart",e._pointerDown,q)}),this._initialTransform=void 0,this._rootElement=i),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(t){var e=this;return this._boundaryElement=t?(0,c.fI)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return e._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(t){return this._parentDragRef=t,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&Y(this._rootElement),Y(this._anchor),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}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),S(t,!0))}},{key:"enableHandle",value:function(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),S(t,this.disabled))}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"_withDropContainer",value:function(t){this._dropContainer=t}},{key:"getFreeDragPosition",value:function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}},{key:"setFreeDragPosition",value:function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}},{key:"withPreviewContainer",value:function(t){return this._previewContainer=t,this}},{key:"_sortFromLastPointerPosition",value:function(){var t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&Y(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&Y(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(t){var e=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){e._cleanupDragArtifacts(t),e._cleanupCachedDimensions(),e._dragDropRegistry.stopDragging(e)});else{this._passiveTransform.x=this._activeTransform.x;var i=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){e.ended.next({source:e,distance:e._getDragDistance(i),dropPoint:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(t){V(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var e=this._dropContainer;if(e){var i=this._rootElement,n=i.parentNode,r=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();n.insertBefore(o,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),E(i,!1),this._document.body.appendChild(n.replaceChild(r,i)),this._getPreviewInsertionPoint(n,a).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(t,e){var i=this;this._parentDragRef&&e.stopPropagation();var n=this.isDragging(),r=V(e),o=!r&&0!==e.button,a=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),!(n||o||s)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor||"",a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(function(t){i._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=O(this._boundaryElement));var u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);var c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}}},{key:"_cleanupDragArtifacts",value:function(t){var e=this;E(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var i=e._dropContainer,n=i.getItemIndex(e),r=e._getPointerPositionOnPage(t),o=e._getDragDistance(r),a=i._isOverContainer(r.x,r.y);e.ended.next({source:e,distance:o,dropPoint:r}),e.dropped.next({item:e,currentIndex:n,previousIndex:e._initialIndex,container:i,previousContainer:e._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r}),i.drop(e,n,e._initialIndex,e._initialContainer,a,o,r),e._dropContainer=e._initialContainer})}},{key:"_updateActiveDropContainer",value:function(t,e){var i=this,n=t.x,r=t.y,o=e.x,a=e.y,s=this._initialContainer._getSiblingContainerFromPosition(this,n,r);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,r)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(function(){i.exited.next({item:i,container:i._dropContainer}),i._dropContainer.exit(i),i._dropContainer=s,i._dropContainer.enter(i,n,r,s===i._initialContainer&&s.sortingDisabled?i._initialIndex:void 0),i.entered.next({item:i,container:s,currentIndex:s.getItemIndex(i)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(o,a),this._dropContainer._sortItem(this,n,r,this._pointerDirectionDelta),this._applyPreviewTransform(n-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var t,e=this._previewTemplate,i=this.previewClass,n=e?e.template:null;if(n&&e){var r=e.matchSize?this._rootElement.getBoundingClientRect():null,o=e.viewContainer.createEmbeddedView(n,e.context);o.detectChanges(),t=K(o,this._document),this._previewRef=o,e.matchSize?J(t,r):t.style.transform=j(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;J(t=N(a),a.getBoundingClientRect()),this._initialTransform&&(t.style.transform=this._initialTransform)}return C(t.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"".concat(this._config.zIndex||1e3)}),S(t,!1),t.classList.add("cdk-drag-preview"),t.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(function(e){return t.classList.add(e)}):t.classList.add(i)),t}},{key:"_animatePreviewToPlaceholder",value:function(){var t=this;if(!this._hasMoved)return Promise.resolve();var e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);var i=function(t){var e=getComputedStyle(t),i=I(e,"transition-property"),n=i.find(function(t){return"transform"===t||"all"===t});if(!n)return 0;var r=i.indexOf(n),o=I(e,"transition-duration"),a=I(e,"transition-delay");return R(o[r])+R(a[r])}(this._preview);return 0===i?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(e){var n=function i(n){(!n||n.target===t._preview&&"transform"===n.propertyName)&&(t._preview.removeEventListener("transitionend",i),e(),clearTimeout(r))},r=setTimeout(n,1.5*i);t._preview.addEventListener("transitionend",n)})})}},{key:"_createPlaceholderElement",value:function(){var t,e=this._placeholderTemplate,i=e?e.template:null;return i?(this._placeholderRef=e.viewContainer.createEmbeddedView(i,e.context),this._placeholderRef.detectChanges(),t=K(this._placeholderRef,this._document)):t=N(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}},{key:"_getPointerPositionInElement",value:function(t,e){var i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,r=n?n.getBoundingClientRect():i,o=V(e)?e.targetTouches[0]:e,a=this._getViewportScrollPosition();return{x:r.left-i.left+(o.pageX-r.left-a.left),y:r.top-i.top+(o.pageY-r.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(t){var e=this._getViewportScrollPosition(),i=V(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,r=i.pageY-e.top;if(this._ownerSVGElement){var o=this._ownerSVGElement.getScreenCTM();if(o){var a=this._ownerSVGElement.createSVGPoint();return a.x=n,a.y=r,a.matrixTransform(o.inverse())}}return{x:n,y:r}}},{key:"_getConstrainedPointerPosition",value:function(t){var e=this._dropContainer?this._dropContainer.lockAxis:null,i=this.constrainPosition?this.constrainPosition(t,this):t,n=i.x,r=i.y;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(n=this._pickupPositionOnPage.x),this._boundaryRect){var o=this._pickupPositionInElement,a=o.x,s=o.y,u=this._boundaryRect,c=this._previewRect,l=u.top+s,h=u.bottom-(c.height-s);n=G(n,u.left+a,u.right-(c.width-a)),r=G(r,l,h)}return{x:n,y:r}}},{key:"_updatePointerDirectionDelta",value:function(t){var e=t.x,i=t.y,n=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-r.x),a=Math.abs(i-r.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=e>r.x?1:-1,r.x=e),a>this._config.pointerDirectionChangeThreshold&&(n.y=i>r.y?1:-1,r.y=i),n}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,S(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,U),t.removeEventListener("touchstart",this._pointerDown,q)}},{key:"_applyRootElementTransform",value:function(t,e){var i=j(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=x(i,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(t,e){var i,n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,r=j(t,e);this._preview.style.transform=x(r,n)}},{key:"_getDragDistance",value:function(t){var e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var t=this._passiveTransform,e=t.x,i=t.y;if(!(0===e&&0===i||this.isDragging())&&this._boundaryElement){var n=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===n.width&&0===n.height||0===r.width&&0===r.height)){var o=n.left-r.left,a=r.right-n.right,s=n.top-r.top,u=r.bottom-n.bottom;n.width>r.width?(o>0&&(e+=o),a>0&&(e-=a)):e=0,n.height>r.height?(s>0&&(i+=s),u>0&&(i-=u)):i=0,e===this._passiveTransform.x&&i===this._passiveTransform.y||this.setFreeDragPosition({y:i,x:e})}}}},{key:"_getDragStartDelay",value:function(t){var e=this.dragStartDelay;return"number"==typeof e?e:V(t)?e.touch:e?e.mouse:0}},{key:"_updateOnScroll",value:function(t){var e=this._parentPositions.handleScroll(t);if(e){var i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&D(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))}}},{key:"_getViewportScrollPosition",value:function(){var t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,u.kV)(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(t,e){var i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){var n=this._document;return e||n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.body}return(0,c.fI)(i)}}]),t}();function j(t,e){return"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(e),"px, 0)")}function G(t,e,i){return Math.max(e,Math.min(i,t))}function Y(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function V(t){return"t"===t.type[0]}function K(t,e){var i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];var n=e.createElement("div");return i.forEach(function(t){return n.appendChild(t)}),n}function J(t,e){t.style.width="".concat(e.width,"px"),t.style.height="".concat(e.height,"px"),t.style.transform=j(e.left,e.top)}function Q(t,e,i){var n=W(e,t.length-1),r=W(i,t.length-1);if(n!==r){for(var o=t[n],a=r-1&&o.splice(a,1),u&&!this._dragDropRegistry.isDragging(u)){var l=u.getRootElement();l.parentElement.insertBefore(s,l),o.splice(r,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){var h=o[0].getRootElement();h.parentNode.insertBefore(s,h),o.unshift(t)}else(0,c.fI)(this.element).appendChild(s),o.push(t);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}},{key:"exit",value:function(t){this._reset(),this.exited.next({item:t,container:this})}},{key:"drop",value:function(t,e,i,n,r,o,a){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:r,distance:o,dropPoint:a})}},{key:"withItems",value:function(t){var e=this,i=this._draggables;return this._draggables=t,t.forEach(function(t){return t._withDropContainer(e)}),this.isDragging()&&(i.filter(function(t){return t.isDragging()}).every(function(e){return-1===t.indexOf(e)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"connectedTo",value:function(t){return this._siblings=t.slice(),this}},{key:"withOrientation",value:function(t){return this._orientation=t,this}},{key:"withScrollableParents",value:function(t){var e=(0,c.fI)(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e].concat(r(t)):t.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(t){return this._isDragging?$("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(e){return e.drag===t}):this._draggables.indexOf(t)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(t,e,i,n){if(!this.sortingDisabled&&this._clientRect&&M(this._clientRect,.05,e,i)){var r=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,n);if(!(-1===o&&r.length>0)){var a="horizontal"===this._orientation,s=$(r,function(e){return e.drag===t}),u=r[o],c=u.clientRect,l=s>o?1:-1,h=this._getItemOffsetPx(r[s].clientRect,c,l),d=this._getSiblingOffsetPx(s,r,l),f=r.slice();Q(r,s,o),this.sorted.next({previousIndex:s,currentIndex:o,container:this,item:t}),r.forEach(function(e,i){if(f[i]!==e){var n=e.drag===t,r=n?h:d,o=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=r,a?(o.style.transform=x("translate3d(".concat(Math.round(e.offset),"px, 0, 0)"),e.initialTransform),D(e.clientRect,0,r)):(o.style.transform=x("translate3d(0, ".concat(Math.round(e.offset),"px, 0)"),e.initialTransform),D(e.clientRect,r,0))}}),this._previousSwap.overlaps=P(c,e,i),this._previousSwap.drag=u.drag,this._previousSwap.delta=a?n.x:n.y}}}},{key:"_startScrollingIfNecessary",value:function(t,e){var i=this;if(!this.autoScrollDisabled){var n,r=0,a=0;if(this._parentPositions.positions.forEach(function(s,u){var c;u!==i._document&&s.clientRect&&!n&&M(s.clientRect,.05,t,e)&&(c=o(function(t,e,i,n){var r=it(e,n),o=nt(e,i),a=0,s=0;if(r){var u=t.scrollTop;1===r?u>0&&(a=1):t.scrollHeight-u>t.clientHeight&&(a=2)}if(o){var c=t.scrollLeft;1===o?c>0&&(s=1):t.scrollWidth-c>t.clientWidth&&(s=2)}return[a,s]}(u,s.clientRect,t,e),2),r=c[0],a=c[1],(r||a)&&(n=u))}),!r&&!a){var s=this._viewportRuler.getViewportSize(),u=s.width,c=s.height,l={width:u,height:c,top:0,right:u,bottom:c,left:0};r=it(l,e),a=nt(l,t),n=window}!n||r===this._verticalScrollDirection&&a===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=r,this._horizontalScrollDirection=a,this._scrollNode=n,(r||a)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var t=(0,c.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var t=(0,c.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}},{key:"_cacheItemPositions",value:function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(t){var e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:O(e)}}).sort(function(e,i){return t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top})}},{key:"_reset",value:function(){var t=this;this._isDragging=!1;var e=(0,c.fI)(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(e){var i,n=e.getRootElement();if(n){var r=null===(i=t._itemPositions.find(function(t){return t.drag===e}))||void 0===i?void 0:i.initialTransform;n.style.transform=r||""}}),this._siblings.forEach(function(e){return e._stopReceiving(t)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(t,e,i){var n="horizontal"===this._orientation,r=e[t].clientRect,o=e[t+-1*i],a=r[n?"width":"height"]*i;if(o){var s=n?"left":"top",u=n?"right":"bottom";-1===i?a-=o.clientRect[s]-r[u]:a+=r[s]-o.clientRect[u]}return a}},{key:"_getItemOffsetPx",value:function(t,e,i){var n="horizontal"===this._orientation,r=n?e.left-t.left:e.top-t.top;return-1===i&&(r+=n?e.width-t.width:e.height-t.height),r}},{key:"_shouldEnterAsFirstChild",value:function(t,e){if(!this._activeDraggables.length)return!1;var i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){var r=i[i.length-1].clientRect;return n?t>=r.right:e>=r.bottom}var o=i[0].clientRect;return n?t<=o.left:e<=o.top}},{key:"_getItemIndexFromPointerPosition",value:function(t,e,i,n){var r=this,o="horizontal"===this._orientation,a=$(this._itemPositions,function(a,s,u){var c=a.drag,l=a.clientRect;if(c===t)return u.length<2;if(n){var h=o?n.x:n.y;if(c===r._previousSwap.drag&&r._previousSwap.overlaps&&h===r._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&i-1})&&(n.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(function(e){if(t.isDragging()){var i=t._parentPositions.handleScroll(e);i&&(t._itemPositions.forEach(function(t){D(t.clientRect,i.top,i.left)}),t._itemPositions.forEach(function(e){var i=e.drag;t._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()}))}else t.isReceiving()&&t._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var t=(0,u.kV)((0,c.fI)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var t=this,e=this._activeDraggables.filter(function(t){return t.isDragging()});this._siblings.forEach(function(i){return i._startReceiving(t,e)})}}]),t}();function $(t,e){for(var i=0;i=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}function nt(t,e){var i=t.left,n=t.right,r=.05*t.width;return e>=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}var rt=(0,u.i$)({passive:!1,capture:!0}),ot=function(){var t=function(){function t(e,i){var n=this;v(this,t),this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(t){return t.isDragging()},this.pointerMove=new l.xQ,this.pointerUp=new l.xQ,this.scroll=new l.xQ,this._preventDefaultWhileDragging=function(t){n._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=function(t){n._activeDragInstances.length>0&&(n._activeDragInstances.some(n._draggingPredicate)&&t.preventDefault(),n.pointerMove.next(t))},this._document=i}return y(t,[{key:"registerDropContainer",value:function(t){this._dropInstances.has(t)||this._dropInstances.add(t)}},{key:"registerDragItem",value:function(t){var e=this;this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){e._document.addEventListener("touchmove",e._persistentTouchmoveListener,rt)})}},{key:"removeDropContainer",value:function(t){this._dropInstances.delete(t)}},{key:"removeDragItem",value:function(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,rt)}},{key:"startDragging",value:function(t,e){var i=this;if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){var n=e.type.startsWith("touch");this._globalListeners.set(n?"touchend":"mouseup",{handler:function(t){return i.pointerUp.next(t)},options:!0}).set("scroll",{handler:function(t){return i.scroll.next(t)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:rt}),n||this._globalListeners.set("mousemove",{handler:function(t){return i.pointerMove.next(t)},options:rt}),this._ngZone.runOutsideAngular(function(){i._globalListeners.forEach(function(t,e){i._document.addEventListener(e,t.handler,t.options)})})}}},{key:"stopDragging",value:function(t){var e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(t){return this._activeDragInstances.indexOf(t)>-1}},{key:"ngOnDestroy",value:function(){var t=this;this._dragInstances.forEach(function(e){return t.removeDragItem(e)}),this._dropInstances.forEach(function(e){return t.removeDropContainer(e)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var t=this;this._globalListeners.forEach(function(e,i){t._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.R0b),n.LFG(a.K0))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(n.R0b),n.LFG(a.K0))},token:t,providedIn:"root"}),t}(),at={dragStartThreshold:5,pointerDirectionChangeThreshold:5},st=function(){var t=function(){function t(e,i,n,r){v(this,t),this._document=e,this._ngZone=i,this._viewportRuler=n,this._dragDropRegistry=r}return y(t,[{key:"createDrag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:at;return new H(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(t){return new X(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(a.K0),n.LFG(n.R0b),n.LFG(s.rL),n.LFG(ot))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(a.K0),n.LFG(n.R0b),n.LFG(s.rL),n.LFG(ot))},token:t,providedIn:"root"}),t}(),ut=new n.OlP("CDK_DRAG_PARENT"),ct=new n.OlP("CdkDropListGroup"),lt=new n.OlP("CDK_DRAG_CONFIG"),ht=0,dt=new n.OlP("CdkDropList"),ft=function(){var t=function(){function t(e,i,r,o,a,s,u){var c=this;v(this,t),this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new l.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+ht++,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.sorted=new n.vpe,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,u&&this._assignDefaults(u),this._dropListRef.enterPredicate=function(t,e){return c.enterPredicate(t.data,e.data)},this._dropListRef.sortPredicate=function(t,e,i){return c.sortPredicate(t,e.data,i.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),s&&s._items.add(this)}return y(t,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(t){this._dropListRef.disabled=this._disabled=(0,c.Ig)(t)}},{key:"addItem",value:function(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort(function(t,e){return t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})}},{key:"ngOnDestroy",value:function(){var e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"_setupInputSyncSubscription",value:function(e){var i=this;this._dir&&this._dir.change.pipe((0,b.O)(this._dir.value),(0,m.R)(this._destroyed)).subscribe(function(t){return e.withDirection(t)}),e.beforeStarted.subscribe(function(){var n=(0,c.Eq)(i.connectedTo).map(function(e){return"string"==typeof e?t._dropLists.find(function(t){return t.id===e}):e});if(i._group&&i._group._items.forEach(function(t){-1===n.indexOf(t)&&n.push(t)}),!i._scrollableParentsResolved){var r=i._scrollDispatcher.getAncestorScrollContainers(i.element).map(function(t){return t.getElementRef().nativeElement});i._dropListRef.withScrollableParents(r),i._scrollableParentsResolved=!0}e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.sortingDisabled=(0,c.Ig)(i.sortingDisabled),e.autoScrollDisabled=(0,c.Ig)(i.autoScrollDisabled),e.autoScrollStep=(0,c.su)(i.autoScrollStep,2),e.connectedTo(n.filter(function(t){return t&&t!==i}).map(function(t){return t._dropListRef})).withOrientation(i.orientation)})}},{key:"_handleEvents",value:function(t){var e=this;t.beforeStarted.subscribe(function(){e._syncItemsWithRef(),e._changeDetectorRef.markForCheck()}),t.entered.subscribe(function(t){e.entered.emit({container:e,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(function(t){e.exited.emit({container:e,item:t.item.data}),e._changeDetectorRef.markForCheck()}),t.sorted.subscribe(function(t){e.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:e,item:t.item.data})}),t.dropped.subscribe(function(t){e.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}),e._changeDetectorRef.markForCheck()})}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,i=t.draggingDisabled,n=t.sortingDisabled,r=t.listAutoScrollDisabled,o=t.listOrientation;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=r&&r,this.orientation=o||"vertical",e&&(this.lockAxis=e)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map(function(t){return t._dragRef}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(st),n.Y36(n.sBO),n.Y36(s.mF),n.Y36(T.Is,8),n.Y36(ct,12),n.Y36(lt,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(n.uIk("id",e.id),n.ekj("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[n._Bn([{provide:ct,useValue:void 0},{provide:dt,useExisting:t}])]}),t._dropLists=[],t}(),pt=new n.OlP("CdkDragHandle"),gt=new n.OlP("CdkDragPlaceholder"),vt=new n.OlP("CdkDragPreview"),mt=function(){var t=function(){function t(e,i,r,o,a,s,u,c,h,d,f){var g=this;v(this,t),this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=a,this._dir=u,this._changeDetectorRef=h,this._selfHandle=d,this._parentDrag=f,this._destroyed=new l.xQ,this.started=new n.vpe,this.released=new n.vpe,this.ended=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.dropped=new n.vpe,this.moved=new p.y(function(t){var e=g._dragRef.moved.pipe((0,w.U)(function(t){return{source:g,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}})).subscribe(t);return function(){e.unsubscribe()}}),this._dragRef=c.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:null==s?void 0:s.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),s&&this._assignDefaults(s),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return y(t,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(t){this._disabled=(0,c.Ig)(t),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var t=this;this._ngZone.onStable.pipe((0,_.q)(1),(0,m.R)(this._destroyed)).subscribe(function(){t._updateRootElement(),t._handles.changes.pipe((0,b.O)(t._handles),(0,A.b)(function(e){var i=e.filter(function(e){return e._parentDrag===t}).map(function(t){return t.element});t._selfHandle&&t.rootElementSelector&&i.push(t.element),t._dragRef.withHandles(i)}),(0,k.w)(function(t){return g.T.apply(void 0,r(t.map(function(t){return t._stateChanges.pipe((0,b.O)(t))})))}),(0,m.R)(t._destroyed)).subscribe(function(e){var i=t._dragRef,n=e.element.nativeElement;e.disabled?i.disableHandle(n):i.enableHandle(n)}),t.freeDragPosition&&t._dragRef.setFreeDragPosition(t.freeDragPosition)})}},{key:"ngOnChanges",value:function(t){var e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this);var e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var t=this.element.nativeElement,e=this.rootElementSelector?yt(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}},{key:"_getBoundaryElement",value:function(){var t=this.boundaryElement;return t?"string"==typeof t?yt(this.element.nativeElement,t):(0,c.fI)(t):null}},{key:"_syncInputs",value:function(e){var i=this;e.beforeStarted.subscribe(function(){if(!e.isDragging()){var t=i._dir,n=i.dragStartDelay,r=i._placeholderTemplate?{template:i._placeholderTemplate.templateRef,context:i._placeholderTemplate.data,viewContainer:i._viewContainerRef}:null,o=i._previewTemplate?{template:i._previewTemplate.templateRef,context:i._previewTemplate.data,matchSize:i._previewTemplate.matchSize,viewContainer:i._viewContainerRef}:null;e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.dragStartDelay="object"==typeof n&&n?n:(0,c.su)(n),e.constrainPosition=i.constrainPosition,e.previewClass=i.previewClass,e.withBoundaryElement(i._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(o).withPreviewContainer(i.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,_.q)(1)).subscribe(function(){var n,r;if(i._parentDrag)e.withParent(i._parentDrag._dragRef);else for(var o=i.element.nativeElement.parentElement;o;){if(null===(n=o.classList)||void 0===n?void 0:n.contains("cdk-drag")){e.withParent((null===(r=t._dragInstances.find(function(t){return t.element.nativeElement===o}))||void 0===r?void 0:r._dragRef)||null);break}o=o.parentElement}})}},{key:"_handleEvents",value:function(t){var e=this;t.started.subscribe(function(){e.started.emit({source:e}),e._changeDetectorRef.markForCheck()}),t.released.subscribe(function(){e.released.emit({source:e})}),t.ended.subscribe(function(t){e.ended.emit({source:e,distance:t.distance,dropPoint:t.dropPoint}),e._changeDetectorRef.markForCheck()}),t.entered.subscribe(function(t){e.entered.emit({container:t.container.data,item:e,currentIndex:t.currentIndex})}),t.exited.subscribe(function(t){e.exited.emit({container:t.container.data,item:e})}),t.dropped.subscribe(function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:e,distance:t.distance,dropPoint:t.dropPoint})})}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,i=t.dragStartDelay,n=t.constrainPosition,r=t.previewClass,o=t.boundaryElement,a=t.draggingDisabled,s=t.rootElementSelector,u=t.previewContainer;this.disabled=null!=a&&a,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),r&&(this.previewClass=r),o&&(this.boundaryElement=o),s&&(this.rootElementSelector=s),u&&(this.previewContainer=u)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(dt,12),n.Y36(a.K0),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(lt,8),n.Y36(T.Is,8),n.Y36(st),n.Y36(n.sBO),n.Y36(pt,10),n.Y36(ut,12))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){var r;(1&t&&(n.Suo(i,vt,5),n.Suo(i,gt,5),n.Suo(i,pt,5)),2&t)&&(n.iGM(r=n.CRH())&&(e._previewTemplate=r.first),n.iGM(r=n.CRH())&&(e._placeholderTemplate=r.first),n.iGM(r=n.CRH())&&(e._handles=r))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&n.ekj("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[n._Bn([{provide:ut,useExisting:t}]),n.TTD]}),t._dragInstances=[],t}();function yt(t,e){for(var i=t.parentElement;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}var bt=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[st],imports:[s.ZD]}),t}()},75842:function(t,e,i){"use strict";i.d(e,{A:function(){return b},ZH:function(){return n},OC:function(){return _},yY:function(){return v},JH:function(){return g},uR:function(){return l},K5:function(){return o},hY:function(){return a},Sd:function(){return h},oh:function(){return d},aO:function(){return y},VM:function(){return c},Ku:function(){return u},SV:function(){return p},L_:function(){return s},Mf:function(){return r},LH:function(){return f},Z:function(){return w},xE:function(){return m},Vb:function(){return A}});var n=8,r=9,o=13,a=27,s=32,u=33,c=34,l=35,h=36,d=37,f=38,p=39,g=40,v=46,m=48,y=57,b=65,w=90,_=188;function A(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;ne.height||t.scrollWidth>e.width}}]),t}(),R=function(){function t(e,i,n,r){var o=this;v(this,t),this._scrollDispatcher=e,this._ngZone=i,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return y(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),I=function(){function t(){v(this,t)}return y(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function O(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function P(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var D=function(){function t(e,i,n,r){v(this,t),this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this._config=r,this._scrollSubscription=null}return y(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),i=t._viewportRuler.getViewportSize(),n=i.width,r=i.height;O(e,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),M=function(){var t=function t(e,i,n,r){var o=this;v(this,t),this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this.noop=function(){return new I},this.close=function(t){return new R(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new x(o._viewportRuler,o._document)},this.reposition=function(t){return new D(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=r};return t.\u0275fac=function(e){return new(e||t)(s.LFG(r.mF),s.LFG(r.rL),s.LFG(s.R0b),s.LFG(h.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(r.mF),s.LFG(r.rL),s.LFG(s.R0b),s.LFG(h.K0))},token:t,providedIn:"root"}),t}(),L=function t(e){if(v(this,t),this.scrollStrategy=new I,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var i=0,n=Object.keys(e);i-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(h.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(h.K0))},token:t,providedIn:"root"}),t}(),Z=function(){var t=function(t){a(i,t);var e=u(i);function i(t){var n;return v(this,i),(n=e.call(this,t))._keydownListener=function(t){for(var e=n._attachedOverlays,i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}},n}return y(i,[{key:"add",value:function(t){n(d(i.prototype),"add",this).call(this,t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),i}(F);return t.\u0275fac=function(e){return new(e||t)(s.LFG(h.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(h.K0))},token:t,providedIn:"root"}),t}(),B=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t))._platform=n,r._cursorStyleIsSet=!1,r._clickListener=function(t){for(var e=t.composedPath?t.composedPath()[0]:t.target,i=r._attachedOverlays.slice(),n=i.length-1;n>-1;n--){var o=i[n];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(e))break;o._outsidePointerEvents.next(t)}}},r}return y(i,[{key:"add",value:function(t){if(n(d(i.prototype),"add",this).call(this,t),!this._isAttached){var e=this._document.body;e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),i}(F);return t.\u0275fac=function(e){return new(e||t)(s.LFG(h.K0),s.LFG(c.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(h.K0),s.LFG(c.t4))},token:t,providedIn:"root"}),t}(),q="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha,U=function(){var t=function(){function t(e,i){v(this,t),this._platform=i,this._document=e}return y(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||q)for(var t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),e=0;ep&&(p=m,d=v)}}catch(y){g.e(y)}finally{g.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Y(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var i;if("center"==e.originX)i=t.left+t.width/2;else{var n=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;i="start"==e.originX?n:r}return{x:i,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,i){var n,r;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+r}}},{key:"_getOverlayFit",value:function(t,e,i,n){var r=K(e),o=t.x,a=t.y,s=this._getOffset(n,"x"),u=this._getOffset(n,"y");s&&(o+=s),u&&(a+=u);var c=0-a,l=a+r.height-i.height,h=this._subtractOverflows(r.width,0-o,o+r.width-i.width),d=this._subtractOverflows(r.height,c,l),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,i){if(this._hasFlexibleDimensions){var n=i.bottom-e.y,r=i.right-e.x,o=V(this._overlayRef.getConfig().minHeight),a=V(this._overlayRef.getConfig().minWidth),s=t.fitsInViewportHorizontally||null!=a&&a<=r;return(t.fitsInViewportVertically||null!=o&&o<=n)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var n,r,o=K(e),a=this._viewportRect,s=Math.max(t.x+o.width-a.width,0),u=Math.max(t.y+o.height-a.height,0),c=Math.max(a.top-i.top-t.y,0),l=Math.max(a.left-i.left-t.x,0);return n=o.width<=a.width?l||-s:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(n=t.y-h/2)}if("end"===e.overlayX&&!c||"start"===e.overlayX&&c)s=u.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!c||"end"===e.overlayX&&c)a=t.x,o=u.right-t.x;else{var d=Math.min(u.right-t.x+u.left,t.x),f=this._lastBoundingBoxSize.width;o=2*d,a=t.x-d,o>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-f/2)}return{top:n,left:a,bottom:r,right:s,width:o,height:i}}},{key:"_setBoundingBoxStyles",value:function(t,e){var i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;n.height=(0,p.HM)(i.height),n.top=(0,p.HM)(i.top),n.bottom=(0,p.HM)(i.bottom),n.width=(0,p.HM)(i.width),n.left=(0,p.HM)(i.left),n.right=(0,p.HM)(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(n.maxHeight=(0,p.HM)(r)),o&&(n.maxWidth=(0,p.HM)(o))}this._lastBoundingBoxSize=i,Y(this._boundingBox.style,n)}},{key:"_resetBoundingBoxStyles",value:function(){Y(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Y(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var i={},n=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(n){var a=this._viewportRuler.getViewportScrollPosition();Y(i,this._getExactOverlayY(e,t,a)),Y(i,this._getExactOverlayX(e,t,a))}else i.position="static";var s="",u=this._getOffset(e,"x"),c=this._getOffset(e,"y");u&&(s+="translateX(".concat(u,"px) ")),c&&(s+="translateY(".concat(c,"px)")),i.transform=s.trim(),o.maxHeight&&(n?i.maxHeight=(0,p.HM)(o.maxHeight):r&&(i.maxHeight="")),o.maxWidth&&(n?i.maxWidth=(0,p.HM)(o.maxWidth):r&&(i.maxWidth="")),Y(this._pane.style,i)}},{key:"_getExactOverlayY",value:function(t,e,i){var n={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":n.top=(0,p.HM)(r.y),n}},{key:"_getExactOverlayX",value:function(t,e,i){var n={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"right"===(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?n.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":n.left=(0,p.HM)(r.x),n}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:P(t,i),isOriginOutsideView:O(t,i),isOverlayClipped:P(e,i),isOverlayOutsideView:O(e,i)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),n=i.width,r=i.height,o=i.maxWidth,a=i.maxHeight,s=!("100%"!==n&&"100vw"!==n||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=u?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),W=function(){var t=function(){function t(e,i,n,r){v(this,t),this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=r}return y(t,[{key:"global",value:function(){return new Q}},{key:"connectedTo",value:function(t,e,i){return new J(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new G(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(r.rL),s.LFG(h.K0),s.LFG(c.t4),s.LFG(U))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(r.rL),s.LFG(h.K0),s.LFG(c.t4),s.LFG(U))},token:t,providedIn:"root"}),t}(),X=0,$=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c,l,h){v(this,t),this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=c,this._location=l,this._outsideClickDispatcher=h}return y(t,[{key:"create",value:function(t){var e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),r=new L(t);return r.direction=r.direction||this._directionality.value,new H(n,e,i,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-"+X++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new g.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(M),s.LFG(U),s.LFG(s._Vd),s.LFG(W),s.LFG(Z),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(h.K0),s.LFG(l.Is),s.LFG(h.Ye),s.LFG(B))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),tt=[{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"}],et=new s.OlP("cdk-connected-overlay-scroll-strategy"),it=function(){var t=function t(e){v(this,t),this.elementRef=e};return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),nt=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=b.w.EMPTY,this._attachSubscription=b.w.EMPTY,this._detachSubscription=b.w.EMPTY,this._positionSubscription=b.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new g.UE(i,n),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return y(t,[{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=(0,p.Ig)(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=(0,p.Ig)(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=(0,p.Ig)(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=(0,p.Ig)(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=(0,p.Ig)(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var t=this;this.positions&&this.positions.length||(this.positions=tt);var e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(function(){return t.attach.emit()}),this._detachSubscription=e.detachments().subscribe(function(){return t.detach.emit()}),e.keydownEvents().subscribe(function(e){t.overlayKeydown.next(e),e.keyCode!==S.hY||t.disableClose||(0,S.Vb)(e)||(e.preventDefault(),t._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(e){t.overlayOutsideClick.next(e)})}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new L({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}},{key:"_updatePositionStrategy",value:function(t){var e=this,i=this.positions.map(function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}});return t.setOrigin(this.origin.elementRef).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}},{key:"_attachOverlay",value:function(){var t=this;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(function(e){t.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i){return i.lift(new A(t,e))}}(function(){return t.positionChange.observers.length>0})).subscribe(function(e){t.positionChange.emit(e),0===t.positionChange.observers.length&&t._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36($),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(et),s.Y36(l.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.TTD]}),t}(),rt={provide:et,deps:[$],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},ot=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[$,rt],imports:[[l.vT,g.eL,r.Cl],r.Cl]}),t}()},11353:function(t,e,i){"use strict";i.d(e,{t4:function(){return h},ud:function(){return d},ht:function(){return w},kV:function(){return b},_i:function(){return y},qK:function(){return p},i$:function(){return g},Mq:function(){return m}});var n,r=i(31572),o=i(61511);try{n="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(_){n=!1}var a,s,u,c,l,h=function(){var t=function t(e){v(this,t),this._platformId=e,this.isBrowser=this._platformId?(0,o.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!n)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.Lbi))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(r.Lbi))},token:t,providedIn:"root"}),t}(),d=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}(),f=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function p(){if(a)return a;if("object"!=typeof document||!document)return a=new Set(f);var t=document.createElement("input");return a=new Set(f.filter(function(e){return t.setAttribute("type",e),t.type===e}))}function g(t){return function(){if(null==s&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return s=!0}}))}finally{s=s||!1}return s}()?t:!!t.capture}function m(){if(null==c){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return c=!1;if("scrollBehavior"in document.documentElement.style)c=!0;else{var t=Element.prototype.scrollTo;c=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return c}function y(){if("object"!=typeof document||!document)return 0;if(null==u){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),u=0,0===t.scrollLeft&&(t.scrollLeft=1,u=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return u}function b(t){if(function(){if(null==l){var t="undefined"!=typeof document?document.head:null;l=!(!t||!t.createShadowRoot&&!t.attachShadow)}return l}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function w(){for(var t="undefined"!=typeof document&&document?document.activeElement:null;t&&t.shadowRoot;){var e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}},26899:function(t,e,i){"use strict";i.d(e,{en:function(){return p},ig:function(){return b},Pl:function(){return w},C5:function(){return c},F0:function(){return m},u0:function(){return g},eL:function(){return _},UE:function(){return h}});var r=i(31572),o=i(61511),s=function(){function t(){v(this,t)}return y(t,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),t}(),c=function(t){a(i,t);var e=u(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this)).component=t,a.viewContainerRef=n,a.injector=r,a.componentFactoryResolver=o,a}return i}(s),h=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this)).templateRef=t,o.viewContainerRef=n,o.context=r,o}return y(i,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,n(d(i.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,n(d(i.prototype),"detach",this).call(this)}}]),i}(s),f=function(t){a(i,t);var e=u(i);function i(t){var n;return v(this,i),(n=e.call(this)).element=t instanceof r.SBq?t.nativeElement:t,n}return i}(s),p=function(){function t(){v(this,t),this._isDisposed=!1,this.attachDomPortal=null}return y(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof c?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof h?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof f?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),g=function(t){a(i,t);var e=u(i);function i(t,r,o,a,s){var u,c;return v(this,i),(c=e.call(this)).outletElement=t,c._componentFactoryResolver=r,c._appRef=o,c._defaultInjector=a,c.attachDomPortal=function(t){var e=t.element,r=c._document.createComment("dom-portal");e.parentNode.insertBefore(r,e),c.outletElement.appendChild(e),c._attachedPortal=t,n((u=l(c),d(i.prototype)),"setDisposeFn",u).call(u,function(){r.parentNode&&r.parentNode.replaceChild(e,r)})},c._document=s,c}return y(i,[{key:"attachComponentPortal",value:function(t){var e,i=this,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(function(){return e.destroy()})):(e=n.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){i._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=t,e}},{key:"attachTemplatePortal",value:function(t){var e=this,i=t.viewContainerRef,n=i.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),n.detectChanges(),this.setDisposeFn(function(){var t=i.indexOf(n);-1!==t&&i.remove(t)}),this._attachedPortal=t,n}},{key:"dispose",value:function(){n(d(i.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),i}(p),m=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(g),b=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n){return v(this,i),e.call(this,t,n)}return i}(h);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.Rgc),r.Y36(r.s_b))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[r.qOj]}),t}(),w=function(){var t=function(t){a(i,t);var e=u(i);function i(t,o,a){var s,u;return v(this,i),(u=e.call(this))._componentFactoryResolver=t,u._viewContainerRef=o,u._isInitialized=!1,u.attached=new r.vpe,u.attachDomPortal=function(t){var e=t.element,r=u._document.createComment("dom-portal");t.setAttachedHost(l(u)),e.parentNode.insertBefore(r,e),u._getRootNode().appendChild(e),u._attachedPortal=t,n((s=l(u),d(i.prototype)),"setDisposeFn",s).call(s,function(){r.parentNode&&r.parentNode.replaceChild(e,r)})},u._document=a,u}return y(i,[{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&n(d(i.prototype),"detach",this).call(this),t&&n(d(i.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){n(d(i.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,r=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),o=e.createComponent(r,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),n(d(i.prototype),"setDisposeFn",this).call(this,function(){return o.destroy()}),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return n(d(i.prototype),"setDisposeFn",this).call(this,function(){return e._viewContainerRef.clear()}),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}]),i}(p);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(o.K0))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),t}(),_=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}()},4253:function(t,e,i){"use strict";i.d(e,{xd:function(){return B},PQ:function(){return U},ZD:function(){return K},x0:function(){return V},N7:function(){return G},mF:function(){return q},Cl:function(){return J},rL:function(){return H}});var r=i(19861),s=i(31572),c=i(55959),l=i(40878),h=i(48318),p=i(87254),g=i(91741),m=i(92709),b=i(87570),w=i(4710),_=i(96673),A=function(){function t(){v(this,t)}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new k(t))}}]),t}(),k=function(t){a(i,t);var e=u(i);function i(t){var n;return v(this,i),(n=e.call(this,t)).hasPrev=!1,n}return y(i,[{key:"_next",value:function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}]),i}(_.L),T=i(98720),C=i(30810),S=i(43835),E=i(25416),x=i(56238),R=i(44689),I=i(68303),O=i(11353),P=i(61511),D=i(22526),M=i(4230),L=["contentWrapper"],N=["*"],z=new s.OlP("VIRTUAL_SCROLL_STRATEGY"),F=function(){function t(e,i,n){v(this,t),this._scrolledIndexChange=new c.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,T.x)()),this._viewport=null,this._itemSize=e,this._minBufferPx=i,this._maxBufferPx=n}return y(t,[{key:"attach",value:function(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"detach",value:function(){this._scrolledIndexChange.complete(),this._viewport=null}},{key:"updateItemAndBufferSize",value:function(t,e,i){this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"onContentScrolled",value:function(){this._updateRenderedRange()}},{key:"onDataLengthChanged",value:function(){this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"onContentRendered",value:function(){}},{key:"onRenderedOffsetChanged",value:function(){}},{key:"scrollToIndex",value:function(t,e){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,e)}},{key:"_updateTotalContentSize",value:function(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}},{key:"_updateRenderedRange",value:function(){if(this._viewport){var t=this._viewport.getRenderedRange(),e={start:t.start,end:t.end},i=this._viewport.getViewportSize(),n=this._viewport.getDataLength(),r=this._viewport.measureScrollOffset(),o=this._itemSize>0?r/this._itemSize:0;if(e.end>n){var a=Math.ceil(i/this._itemSize),s=Math.max(0,Math.min(o,n-a));o!=s&&(o=s,r=s*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(n,e.start+a))}var u=r-e.start*this._itemSize;if(u0&&(e.end=Math.min(n,e.end+h),e.start=Math.max(0,Math.floor(o-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(o))}}}]),t}();function Z(t){return t._scrollStrategy}var B=function(){var t=function(){function t(){v(this,t),this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new F(this.itemSize,this.minBufferPx,this.maxBufferPx)}return y(t,[{key:"itemSize",get:function(){return this._itemSize},set:function(t){this._itemSize=(0,r.su)(t)}},{key:"minBufferPx",get:function(){return this._minBufferPx},set:function(t){this._minBufferPx=(0,r.su)(t)}},{key:"maxBufferPx",get:function(){return this._maxBufferPx},set:function(t){this._maxBufferPx=(0,r.su)(t)}},{key:"ngOnChanges",value:function(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[s._Bn([{provide:z,useFactory:Z,deps:[(0,s.Gpc)(function(){return t})]}]),s.TTD]}),t}(),q=function(){var t=function(){function t(e,i,n){v(this,t),this._ngZone=e,this._platform=i,this._scrolled=new c.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}return y(t,[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(function(){return e._scrolled.next(t)}))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new h.y(function(i){t._globalSubscription||t._addGlobalListener();var n=e>0?t._scrolled.pipe((0,C.e)(e)).subscribe(i):t._scrolled.subscribe(i);return t._scrolledCount++,function(){n.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):(0,l.of)()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,i){return t.deregister(i)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,S.h)(function(t){return!t||i.indexOf(t)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,i=[];return this.scrollContainers.forEach(function(n,r){e._scrollableContainsElement(r,t)&&i.push(r)}),i}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var i=(0,r.fI)(e),n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var e=t._getWindow();return(0,p.R)(e.document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(O.t4),s.LFG(P.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(O.t4),s.LFG(P.K0,8))},token:t,providedIn:"root"}),t}(),U=function(){var t=function(){function t(e,i,n,r){var o=this;v(this,t),this.elementRef=e,this.scrollDispatcher=i,this.ngZone=n,this.dir=r,this._destroyed=new c.xQ,this._elementScrolled=new h.y(function(t){return o.ngZone.runOutsideAngular(function(){return(0,p.R)(o.elementRef.nativeElement,"scroll").pipe((0,E.R)(o._destroyed)).subscribe(t)})})}return y(t,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(t){var e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=(0,O._i)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==(0,O._i)()?t.left=t.right:1==(0,O._i)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}},{key:"_applyScrollToOptions",value:function(t){var e=this.elementRef.nativeElement;(0,O.Mq)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}},{key:"measureScrollOffset",value:function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==(0,O._i)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==(0,O._i)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(q),s.Y36(s.R0b),s.Y36(D.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t}(),H=function(){var t=function(){function t(e,i,n){var r=this;v(this,t),this._platform=e,this._change=new c.xQ,this._changeListener=function(t){r._change.next(t)},this._document=n,i.runOutsideAngular(function(){if(e.isBrowser){var t=r._getWindow();t.addEventListener("resize",r._changeListener),t.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return y(t,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),i=e.width,n=e.height;return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+i,height:n,width:i}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe((0,C.e)(t)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(O.t4),s.LFG(s.R0b),s.LFG(P.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(O.t4),s.LFG(s.R0b),s.LFG(P.K0,8))},token:t,providedIn:"root"}),t}(),j="undefined"!=typeof requestAnimationFrame?g.r:m.e,G=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o,a,s,u){var l;return v(this,i),(l=e.call(this,t,s,r,a)).elementRef=t,l._changeDetectorRef=n,l._scrollStrategy=o,l._detachedSubject=new c.xQ,l._renderedRangeSubject=new c.xQ,l._orientation="vertical",l.scrolledIndexChange=new h.y(function(t){return l._scrollStrategy.scrolledIndexChange.subscribe(function(e){return Promise.resolve().then(function(){return l.ngZone.run(function(){return t.next(e)})})})}),l.renderedRangeStream=l._renderedRangeSubject,l._totalContentSize=0,l._totalContentWidth="",l._totalContentHeight="",l._renderedRange={start:0,end:0},l._dataLength=0,l._viewportSize=0,l._renderedContentOffset=0,l._renderedContentOffsetNeedsRewrite=!1,l._isChangeDetectionPending=!1,l._runAfterChangeDetection=[],l._viewportChanges=b.w.EMPTY,l._viewportChanges=u.change().subscribe(function(){l.checkViewportSize()}),l}return y(i,[{key:"orientation",get:function(){return this._orientation},set:function(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}},{key:"ngOnInit",value:function(){var t=this;n(d(i.prototype),"ngOnInit",this).call(this),this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){t._measureViewportSize(),t._scrollStrategy.attach(t),t.elementScrolled().pipe((0,x.O)(null),(0,C.e)(0,j)).subscribe(function(){return t._scrollStrategy.onContentScrolled()}),t._markChangeDetectionNeeded()})})}},{key:"ngOnDestroy",value:function(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),n(d(i.prototype),"ngOnDestroy",this).call(this)}},{key:"attach",value:function(t){var e=this;this.ngZone.runOutsideAngular(function(){e._forOf=t,e._forOf.dataStream.pipe((0,E.R)(e._detachedSubject)).subscribe(function(t){var i=t.length;i!==e._dataLength&&(e._dataLength=i,e._scrollStrategy.onDataLengthChanged()),e._doChangeDetection()})})}},{key:"detach",value:function(){this._forOf=null,this._detachedSubject.next()}},{key:"getDataLength",value:function(){return this._dataLength}},{key:"getViewportSize",value:function(){return this._viewportSize}},{key:"getRenderedRange",value:function(){return this._renderedRange}},{key:"setTotalContentSize",value:function(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}},{key:"setRenderedRange",value:function(t){var e,i,n=this;((e=this._renderedRange).start!=(i=t).start||e.end!=i.end)&&(this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(function(){return n._scrollStrategy.onContentRendered()}))}},{key:"getOffsetToRenderedContentStart",value:function(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}},{key:"setRenderedContentOffset",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"to-start",n="horizontal"==this.orientation,r=n?"X":"Y",o="translate".concat(r,"(").concat(Number((n&&this.dir&&"rtl"==this.dir.value?-1:1)*t),"px)");this._renderedContentOffset=t,"to-end"===i&&(o+=" translate".concat(r,"(-100%)"),this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=o&&(this._renderedContentTransform=o,this._markChangeDetectionNeeded(function(){e._renderedContentOffsetNeedsRewrite?(e._renderedContentOffset-=e.measureRenderedContentSize(),e._renderedContentOffsetNeedsRewrite=!1,e.setRenderedContentOffset(e._renderedContentOffset)):e._scrollStrategy.onRenderedOffsetChanged()}))}},{key:"scrollToOffset",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",i={behavior:e};"horizontal"===this.orientation?i.start=t:i.top=t,this.scrollTo(i)}},{key:"scrollToIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";this._scrollStrategy.scrollToIndex(t,e)}},{key:"measureScrollOffset",value:function(t){return n(d(i.prototype),"measureScrollOffset",this).call(this,t||("horizontal"===this.orientation?"start":"top"))}},{key:"measureRenderedContentSize",value:function(){var t=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?t.offsetWidth:t.offsetHeight}},{key:"measureRangeSize",value:function(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}},{key:"checkViewportSize",value:function(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}},{key:"_measureViewportSize",value:function(){var t=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?t.clientWidth:t.clientHeight}},{key:"_markChangeDetectionNeeded",value:function(t){var e=this;t&&this._runAfterChangeDetection.push(t),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){e._doChangeDetection()})}))}},{key:"_doChangeDetection",value:function(){var t=this;this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(function(){return t._changeDetectorRef.markForCheck()});var e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];var i,n=f(e);try{for(n.s();!(i=n.n()).done;){(0,i.value)()}}catch(r){n.e(r)}finally{n.f()}}},{key:"_calculateSpacerSize",value:function(){this._totalContentHeight="horizontal"===this.orientation?"":"".concat(this._totalContentSize,"px"),this._totalContentWidth="horizontal"===this.orientation?"".concat(this._totalContentSize,"px"):""}}]),i}(U);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(z,8),s.Y36(D.Is,8),s.Y36(q),s.Y36(H))},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(t,e){var i;(1&t&&s.Gf(L,7),2&t)&&(s.iGM(i=s.CRH())&&(e._contentWrapper=i.first))},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===e.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==e.orientation)},inputs:{orientation:"orientation"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[s._Bn([{provide:U,useExisting:t}]),s.qOj],ngContentSelectors:N,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0,1),s.Hsn(2),s.qZA(),s._UZ(3,"div",2)),2&t&&(s.xp6(3),s.Udp("width",e._totalContentWidth)("height",e._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),t}();function Y(t,e,i){if(!i.getBoundingClientRect)return 0;var n=i.getBoundingClientRect();return"horizontal"===t?"start"===e?n.left:n.right:"start"===e?n.top:n.bottom}var V=function(){var t=function(){function t(e,i,n,r,a,s){var u=this;v(this,t),this._viewContainerRef=e,this._template=i,this._differs=n,this._viewRepeater=r,this._viewport=a,this.viewChange=new c.xQ,this._dataSourceChanges=new c.xQ,this.dataStream=this._dataSourceChanges.pipe((0,x.O)(null),function(t){return t.lift(new A)},(0,R.w)(function(t){var e=o(t,2),i=e[0],n=e[1];return u._changeDataSource(i,n)}),(0,I.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new c.xQ,this.dataStream.subscribe(function(t){u._data=t,u._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,E.R)(this._destroyed)).subscribe(function(t){u._renderedRange=t,s.run(function(){return u.viewChange.next(u._renderedRange)}),u._onRenderedDataChange()}),this._viewport.attach(this)}return y(t,[{key:"cdkVirtualForOf",get:function(){return this._cdkVirtualForOf},set:function(t){this._cdkVirtualForOf=t,(0,M.Z9)(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new M.P3((0,w.b)(t)?t:Array.from(t||[])))}},{key:"cdkVirtualForTrackBy",get:function(){return this._cdkVirtualForTrackBy},set:function(t){var e=this;this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?function(i,n){return t(i+(e._renderedRange?e._renderedRange.start:0),n)}:void 0}},{key:"cdkVirtualForTemplate",set:function(t){t&&(this._needsUpdate=!0,this._template=t)}},{key:"cdkVirtualForTemplateCacheSize",get:function(){return this._viewRepeater.viewCacheSize},set:function(t){this._viewRepeater.viewCacheSize=(0,r.su)(t)}},{key:"measureRangeSize",value:function(t,e){if(t.start>=t.end)return 0;for(var i,n,r=t.start-this._renderedRange.start,o=t.end-t.start,a=0;a-1;u--){var c=this._viewContainerRef.get(u+r);if(c&&c.rootNodes.length){n=c.rootNodes[c.rootNodes.length-1];break}}return i&&n?Y(e,"end",n)-Y(e,"start",i):0}},{key:"ngDoCheck",value:function(){if(this._differ&&this._needsUpdate){var t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}},{key:"ngOnDestroy",value:function(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}},{key:"_onRenderedDataChange",value:function(){var t=this;this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(function(e,i){return t.cdkVirtualForTrackBy?t.cdkVirtualForTrackBy(e,i):i})),this._needsUpdate=!0)}},{key:"_changeDataSource",value:function(t,e){return t&&t.disconnect(this),this._needsUpdate=!0,e?e.connect(this):(0,l.of)()}},{key:"_updateContext",value:function(){for(var t=this._data.length,e=this._viewContainerRef.length;e--;){var i=this._viewContainerRef.get(e);i.context.index=this._renderedRange.start+e,i.context.count=t,this._updateComputedContextProperties(i.context),i.detectChanges()}}},{key:"_applyChanges",value:function(t){var e=this;this._viewRepeater.applyChanges(t,this._viewContainerRef,function(t,i,n){return e._getEmbeddedViewArgs(t,n)},function(t){return t.item}),t.forEachIdentityChange(function(t){e._viewContainerRef.get(t.currentIndex).context.$implicit=t.item});for(var i=this._data.length,n=this._viewContainerRef.length;n--;){var r=this._viewContainerRef.get(n);r.context.index=this._renderedRange.start+n,r.context.count=i,this._updateComputedContextProperties(r.context)}}},{key:"_updateComputedContextProperties",value:function(t){t.first=0===t.index,t.last=t.index===t.count-1,t.even=t.index%2==0,t.odd=!t.even}},{key:"_getEmbeddedViewArgs",value:function(t,e){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:e}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(M.k),s.Y36(G,4),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[s._Bn([{provide:M.k,useClass:M.eX}])]}),t}(),K=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t}(),J=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[D.vT,O.ud,K],D.vT,K]}),t}()},10901:function(t,e,i){"use strict";i.d(e,{Lq:function(){return f},IC:function(){return p},Ky:function(){return g}});var n=i(11353),r=i(31572),o=i(19861),a=i(70653),s=i(55959),u=i(87254),c=i(30810),l=i(25416),h=i(61511),d=(0,n.i$)({passive:!0}),f=function(){var t=function(){function t(e,i){v(this,t),this._platform=e,this._ngZone=i,this._monitoredElements=new Map}return y(t,[{key:"monitor",value:function(t){var e=this;if(!this._platform.isBrowser)return a.E;var i=(0,o.fI)(t),n=this._monitoredElements.get(i);if(n)return n.subject;var r=new s.xQ,u="cdk-text-field-autofilled",c=function(t){"cdk-text-field-autofill-start"!==t.animationName||i.classList.contains(u)?"cdk-text-field-autofill-end"===t.animationName&&i.classList.contains(u)&&(i.classList.remove(u),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!1})})):(i.classList.add(u),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){i.addEventListener("animationstart",c,d),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:function(){i.removeEventListener("animationstart",c,d)}}),r}},{key:"stopMonitoring",value:function(t){var e=(0,o.fI)(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}},{key:"ngOnDestroy",value:function(){var t=this;this._monitoredElements.forEach(function(e,i){return t.stopMonitoring(i)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.t4),r.LFG(r.R0b))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.t4),r.LFG(r.R0b))},token:t,providedIn:"root"}),t}(),p=function(){var t=function(){function t(e,i,n,r){v(this,t),this._elementRef=e,this._platform=i,this._ngZone=n,this._destroyed=new s.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._document=r,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=i.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}return y(t,[{key:"minRows",get:function(){return this._minRows},set:function(t){this._minRows=(0,o.su)(t),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(t){this._maxRows=(0,o.su)(t),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(t){t=(0,o.Ig)(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}},{key:"placeholder",get:function(){return this._textareaElement.placeholder},set:function(t){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=t,this._cacheTextareaPlaceholderHeight()}},{key:"_setMinHeight",value:function(){var t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}},{key:"_setMaxHeight",value:function(){var t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(function(){var e=t._getWindow();(0,u.R)(e,"resize").pipe((0,c.e)(16),(0,l.R)(t._destroyed)).subscribe(function(){return t.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}}},{key:"_measureScrollHeight",value:function(){this._textareaElement.classList.add(this._measuringClass);var t=this._textareaElement.scrollHeight-4;return this._textareaElement.classList.remove(this._measuringClass),t}},{key:"_cacheTextareaPlaceholderHeight",value:function(){if(this._isViewInited&&null==this._cachedPlaceholderHeight)if(this.placeholder){var t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}else this._cachedPlaceholderHeight=0}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),this._cachedLineHeight)){var i=this._elementRef.nativeElement,n=i.value;if(e||this._minRows!==this._previousMinRows||n!==this._previousValue){var r=this._measureScrollHeight(),o=Math.max(r,this._cachedPlaceholderHeight||0);i.style.height="".concat(o,"px"),this._ngZone.runOutsideAngular(function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(function(){return t._scrollToCaretPosition(i)}):setTimeout(function(){return t._scrollToCaretPosition(i)})}),this._previousValue=n,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(t){var e=t.selectionStart,i=t.selectionEnd,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(n.t4),r.Y36(r.R0b),r.Y36(h.K0,8))},t.\u0275dir=r.lG2({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&r.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),t}(),g=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.ud]]}),t}()},71709:function(t,e,i){"use strict";i.d(e,{HI:function(){return C},Xx:function(){return O},_0:function(){return R},nZ:function(){return L},Hs:function(){return I},rO:function(){return x},cu:function(){return S},XJ:function(){return D},Ud:function(){return M},C2:function(){return k},VY:function(){return T}});var o=i(4230),s=i(4710),c=i(55959),l=i(78512),h=i(40878),p=i(90611),g=i(43835),m=i(25416),b=i(31572),w=i(19861),_=i(22526),A=function(){function t(){v(this,t),this.expansionModel=new o.Ov(!0)}return y(t,[{key:"toggle",value:function(t){this.expansionModel.toggle(this._trackByValue(t))}},{key:"expand",value:function(t){this.expansionModel.select(this._trackByValue(t))}},{key:"collapse",value:function(t){this.expansionModel.deselect(this._trackByValue(t))}},{key:"isExpanded",value:function(t){return this.expansionModel.isSelected(this._trackByValue(t))}},{key:"toggleDescendants",value:function(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}},{key:"collapseAll",value:function(){this.expansionModel.clear()}},{key:"expandDescendants",value:function(t){var e,i=this,n=[t];n.push.apply(n,r(this.getDescendants(t))),(e=this.expansionModel).select.apply(e,r(n.map(function(t){return i._trackByValue(t)})))}},{key:"collapseDescendants",value:function(t){var e,i=this,n=[t];n.push.apply(n,r(this.getDescendants(t))),(e=this.expansionModel).deselect.apply(e,r(n.map(function(t){return i._trackByValue(t)})))}},{key:"_trackByValue",value:function(t){return this.trackBy?this.trackBy(t):t}}]),t}(),k=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this)).getLevel=t,o.isExpandable=n,o.options=r,o.options&&(o.trackBy=o.options.trackBy),o}return y(i,[{key:"getDescendants",value:function(t){for(var e=[],i=this.dataNodes.indexOf(t)+1;i1&&void 0!==arguments[1]?arguments[1]:this._dataDiffer,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._nodeOutlet.viewContainer,r=arguments.length>3?arguments[3]:void 0,o=i.diff(t);o&&(o.forEachOperation(function(i,o,a){if(null==i.previousIndex)e.insertNode(t[a],a,n,r);else if(null==a)n.remove(o),e._levels.delete(i.item);else{var s=n.get(o);n.move(s,a)}}),this._changeDetectorRef.detectChanges())}},{key:"_getNodeDef",value:function(t,e){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(function(i){return i.when&&i.when(e,t)})||this._defaultNodeDef}},{key:"insertNode",value:function(t,e,i,n){var r=this._getNodeDef(t,e),o=new E(t);o.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==n&&this._levels.has(n)?this._levels.get(n)+1:0,this._levels.set(t,o.level),(i||this._nodeOutlet.viewContainer).createEmbeddedView(r.template,o,e),I.mostRecentTreeNode&&(I.mostRecentTreeNode.data=t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(b.Y36(b.ZZ4),b.Y36(b.sBO))},t.\u0275cmp=b.Xpm({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,i){var n;(1&t&&b.Suo(i,x,5),2&t)&&(b.iGM(n=b.CRH())&&(e._nodeDefs=n))},viewQuery:function(t,e){var i;(1&t&&b.Gf(S,7),2&t)&&(b.iGM(i=b.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&b.GkF(0,0)},directives:[S],encapsulation:2}),t}(),I=function(){var t=function(){function t(e,i){v(this,t),this._elementRef=e,this._tree=i,this._destroyed=new c.xQ,this._dataChanges=new c.xQ,t.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}return y(t,[{key:"role",get:function(){return"treeitem"},set:function(t){this._elementRef.nativeElement.setAttribute("role",t)}},{key:"data",get:function(){return this._data},set:function(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}},{key:"isExpanded",get:function(){return this._tree.treeControl.isExpanded(this._data)}},{key:"_setExpanded",value:function(t){this._isAriaExpanded=t,this._elementRef.nativeElement.setAttribute("aria-expanded","".concat(t))}},{key:"level",get:function(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}},{key:"ngOnInit",value:function(){this._parentNodeAriaLevel=function(t){for(var e,i=t.parentElement;i&&(e=void 0,!(null==(e=i.classList)?void 0:e.contains("cdk-nested-tree-node"))&&!(null==e?void 0:e.contains("cdk-tree")));)i=i.parentElement;return i?i.classList.contains("cdk-nested-tree-node")?(0,w.su)(i.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level","".concat(this.level+1))}},{key:"ngDoCheck",value:function(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}},{key:"ngOnDestroy",value:function(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"focus",value:function(){this._elementRef.nativeElement.focus()}},{key:"_setRoleFromData",value:function(){this.role="treeitem"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(b.Y36(b.SBq),b.Y36(R))},t.\u0275dir=b.lG2({type:t,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t}();var O=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t,n))._elementRef=t,o._tree=n,o._differs=r,o._elementRef.nativeElement.classList.add("cdk-nested-tree-node"),o}return y(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);var e=this._tree.treeControl.getChildren(this.data);Array.isArray(e)?this.updateChildrenNodes(e):(0,s.b)(e)&&e.pipe((0,m.R)(this._destroyed)).subscribe(function(e){return t.updateChildrenNodes(e)}),this.nodeOutlet.changes.pipe((0,m.R)(this._destroyed)).subscribe(function(){return t.updateChildrenNodes()})}},{key:"ngOnInit",value:function(){n(d(i.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){n(d(i.prototype),"ngDoCheck",this).call(this)}},{key:"ngOnDestroy",value:function(){this._clear(),n(d(i.prototype),"ngOnDestroy",this).call(this)}},{key:"updateChildrenNodes",value:function(t){var e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])}},{key:"_clear",value:function(){var t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))}},{key:"_getNodeOutlet",value:function(){var t=this,e=this.nodeOutlet;return e&&e.find(function(e){return!e._node||e._node===t})}}]),i}(I);return t.\u0275fac=function(e){return new(e||t)(b.Y36(b.SBq),b.Y36(R),b.Y36(b.ZZ4))},t.\u0275dir=b.lG2({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,i){var n;(1&t&&b.Suo(i,S,5),2&t)&&(b.iGM(n=b.CRH())&&(e.nodeOutlet=n))},inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[b._Bn([{provide:I,useExisting:t},{provide:C,useExisting:t}]),b.qOj]}),t}(),P=/([A-Za-z%]+)$/,D=function(){var t=function(){function t(e,i,n,r){var o=this;v(this,t),this._treeNode=e,this._tree=i,this._element=n,this._dir=r,this._destroyed=new c.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),r&&r.change.pipe((0,m.R)(this._destroyed)).subscribe(function(){return o._setPadding(!0)}),e._dataChanges.subscribe(function(){return o._setPadding()})}return y(t,[{key:"level",get:function(){return this._level},set:function(t){this._setLevelInput(t)}},{key:"indent",get:function(){return this._indent},set:function(t){this._setIndentInput(t)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_paddingIndent",value:function(){var t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?"".concat(e*this._indent).concat(this.indentUnits):null}},{key:"_setPadding",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._paddingIndent();if(e!==this._currentPadding||t){var i=this._element.nativeElement,n=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",r="paddingLeft"===n?"paddingRight":"paddingLeft";i.style[n]=e||"",i.style[r]="",this._currentPadding=e}}},{key:"_setLevelInput",value:function(t){this._level=(0,w.su)(t,null),this._setPadding()}},{key:"_setIndentInput",value:function(t){var e=t,i="px";if("string"==typeof t){var n=t.split(P);e=n[0],i=n[1]||i}this.indentUnits=i,this._indent=(0,w.su)(e),this._setPadding()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(b.Y36(I),b.Y36(R),b.Y36(b.SBq),b.Y36(_.Is,8))},t.\u0275dir=b.lG2({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t}(),M=function(){var t=function(){function t(e,i){v(this,t),this._tree=e,this._treeNode=i,this._recursive=!1}return y(t,[{key:"recursive",get:function(){return this._recursive},set:function(t){this._recursive=(0,w.Ig)(t)}},{key:"_toggle",value:function(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(b.Y36(R),b.Y36(I))},t.\u0275dir=b.lG2({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&b.NdJ("click",function(t){return e._toggle(t)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t}(),L=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b.oAB({type:t}),t.\u0275inj=b.cJS({}),t}()},61511:function(t,e,i){"use strict";i.d(e,{mr:function(){return E},Ov:function(){return Pt},ez:function(){return Lt},K0:function(){return d},uU:function(){return Mt},Do:function(){return R},V_:function(){return m},Ye:function(){return I},S$:function(){return C},mk:function(){return gt},sg:function(){return mt},O5:function(){return bt},PC:function(){return St},RF:function(){return kt},n9:function(){return Tt},ED:function(){return Ct},tP:function(){return Et},b0:function(){return x},lw:function(){return p},gd:function(){return Dt},EM:function(){return Zt},JF:function(){return Ut},p6:function(){return X},NF:function(){return zt},PM:function(){return Ft},w_:function(){return h},bD:function(){return Nt},q:function(){return s},Mx:function(){return pt},HT:function(){return l}});var n=i(31572),r=null;function s(){return r}function l(t){r||(r=t)}var h=function t(){v(this,t)},d=new n.OlP("DocumentToken"),p=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:g,token:t,providedIn:"platform"}),t}();function g(){return(0,n.LFG)(b)}var m=new n.OlP("Location Initialized"),b=function(){var t=function(t){a(i,t);var e=u(i);function i(t){var n;return v(this,i),(n=e.call(this))._doc=t,n._init(),n}return y(i,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return s().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){var e=s().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),function(){return e.removeEventListener("popstate",t)}}},{key:"onHashChange",value:function(t){var e=s().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),function(){return e.removeEventListener("hashchange",t)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(t,e,i){w()?this._history.pushState(t,e,i):this.location.hash=i}},{key:"replaceState",value:function(t,e,i){w()?this._history.replaceState(t,e,i):this.location.hash=i}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(t)}},{key:"getState",value:function(){return this._history.state}}]),i}(p);return t.\u0275fac=function(e){return new(e||t)(n.LFG(d))},t.\u0275prov=(0,n.Yz7)({factory:_,token:t,providedIn:"platform"}),t}();function w(){return!!window.history.pushState}function _(){return new b((0,n.LFG)(d))}function A(t,e){if(0==t.length)return e;if(0==e.length)return t;var i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function k(t){var e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function T(t){return t&&"?"!==t[0]?"?"+t:t}var C=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:S,token:t,providedIn:"root"}),t}();function S(t){var e=(0,n.LFG)(d).location;return new x((0,n.LFG)(p),e&&e.origin||"")}var E=new n.OlP("appBaseHref"),x=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n){var r;if(v(this,i),(r=e.call(this))._platformLocation=t,r._removeListenerFns=[],null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,c(r)}return y(i,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return A(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+T(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?"".concat(e).concat(i):e}},{key:"pushState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+T(n));this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+T(n));this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,i)}}]),i}(C);return t.\u0275fac=function(e){return new(e||t)(n.LFG(p),n.LFG(E,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}(),R=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this))._platformLocation=t,r._baseHref="",r._removeListenerFns=[],null!=n&&(r._baseHref=n),r}return y(i,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=A(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+T(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+T(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,i)}}]),i}(C);return t.\u0275fac=function(e){return new(e||t)(n.LFG(p),n.LFG(E,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}(),I=function(){var t=function(){function t(e,i){var r=this;v(this,t),this._subject=new n.vpe,this._urlChangeListeners=[],this._platformStrategy=e;var o=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=k(P(o)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.path(!0),pop:!0,state:t.state,type:t.type})})}return y(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+T(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,P(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+T(e)),i)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+T(e)),i)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformStrategy).historyGo)||void 0===e||e.call(t,i)}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(i){return i(t,e)})}},{key:"subscribe",value:function(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(C),n.LFG(p))},t.normalizeQueryParams=T,t.joinWithSlash=A,t.stripTrailingSlash=k,t.\u0275prov=(0,n.Yz7)({factory:O,token:t,providedIn:"root"}),t}();function O(){return new I((0,n.LFG)(C),(0,n.LFG)(p))}function P(t){return t.replace(/\/index.html$/,"")}var D=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),M=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),L=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),N=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),z=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function F(t,e){return j((0,n.cg1)(t)[n.wAp.DateFormat],e)}function Z(t,e){return j((0,n.cg1)(t)[n.wAp.TimeFormat],e)}function B(t,e){return j((0,n.cg1)(t)[n.wAp.DateTimeFormat],e)}function q(t,e){var i=(0,n.cg1)(t),r=i[n.wAp.NumberSymbols][e];if(void 0===r){if(e===z.CurrencyDecimal)return i[n.wAp.NumberSymbols][z.Decimal];if(e===z.CurrencyGroup)return i[n.wAp.NumberSymbols][z.Group]}return r}var U=n.kL8;function H(t){if(!t[n.wAp.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(t[n.wAp.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function j(t,e){for(var i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function G(t){var e=o(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}var Y=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,V={},K=/((?:[^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]*)/,J=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Q=function(t){return 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}({}),W=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function X(t,e,i,n){var r=function(t){if(ht(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){var e=o(t.split("-").map(function(t){return+t}),3),i=e[0],n=e[1],r=void 0===n?1:n,a=e[2];return $(i,r-1,void 0===a?1:a)}var s,u=parseFloat(t);if(!isNaN(t-u))return new Date(u);if(s=t.match(Y))return function(t){var e=new Date(0),i=0,n=0,r=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var a=Number(t[4]||0)-i,s=Number(t[5]||0)-n,u=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,a,s,u,c),e}(s)}var c=new Date(t);if(!ht(c))throw new Error('Unable to convert "'.concat(t,'" into a date'));return c}(t);e=tt(i,e)||e;for(var a,s=[];e;){if(!(a=K.exec(e))){s.push(e);break}var u=(s=s.concat(a.slice(1))).pop();if(!u)break;e=u}var c=r.getTimezoneOffset();n&&(c=lt(n,c),r=function(t,e,i){var n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(lt(e,n)-n))}(r,n));var l="";return s.forEach(function(t){var e=function(t){if(ct[t])return ct[t];var e;switch(t){case"G":case"GG":case"GGG":e=rt(W.Eras,L.Abbreviated);break;case"GGGG":e=rt(W.Eras,L.Wide);break;case"GGGGG":e=rt(W.Eras,L.Narrow);break;case"y":e=nt(Q.FullYear,1,0,!1,!0);break;case"yy":e=nt(Q.FullYear,2,0,!0,!0);break;case"yyy":e=nt(Q.FullYear,3,0,!1,!0);break;case"yyyy":e=nt(Q.FullYear,4,0,!1,!0);break;case"Y":e=ut(1);break;case"YY":e=ut(2,!0);break;case"YYY":e=ut(3);break;case"YYYY":e=ut(4);break;case"M":case"L":e=nt(Q.Month,1,1);break;case"MM":case"LL":e=nt(Q.Month,2,1);break;case"MMM":e=rt(W.Months,L.Abbreviated);break;case"MMMM":e=rt(W.Months,L.Wide);break;case"MMMMM":e=rt(W.Months,L.Narrow);break;case"LLL":e=rt(W.Months,L.Abbreviated,M.Standalone);break;case"LLLL":e=rt(W.Months,L.Wide,M.Standalone);break;case"LLLLL":e=rt(W.Months,L.Narrow,M.Standalone);break;case"w":e=st(1);break;case"ww":e=st(2);break;case"W":e=st(1,!0);break;case"d":e=nt(Q.Date,1);break;case"dd":e=nt(Q.Date,2);break;case"c":case"cc":e=nt(Q.Day,1);break;case"ccc":e=rt(W.Days,L.Abbreviated,M.Standalone);break;case"cccc":e=rt(W.Days,L.Wide,M.Standalone);break;case"ccccc":e=rt(W.Days,L.Narrow,M.Standalone);break;case"cccccc":e=rt(W.Days,L.Short,M.Standalone);break;case"E":case"EE":case"EEE":e=rt(W.Days,L.Abbreviated);break;case"EEEE":e=rt(W.Days,L.Wide);break;case"EEEEE":e=rt(W.Days,L.Narrow);break;case"EEEEEE":e=rt(W.Days,L.Short);break;case"a":case"aa":case"aaa":e=rt(W.DayPeriods,L.Abbreviated);break;case"aaaa":e=rt(W.DayPeriods,L.Wide);break;case"aaaaa":e=rt(W.DayPeriods,L.Narrow);break;case"b":case"bb":case"bbb":e=rt(W.DayPeriods,L.Abbreviated,M.Standalone,!0);break;case"bbbb":e=rt(W.DayPeriods,L.Wide,M.Standalone,!0);break;case"bbbbb":e=rt(W.DayPeriods,L.Narrow,M.Standalone,!0);break;case"B":case"BB":case"BBB":e=rt(W.DayPeriods,L.Abbreviated,M.Format,!0);break;case"BBBB":e=rt(W.DayPeriods,L.Wide,M.Format,!0);break;case"BBBBB":e=rt(W.DayPeriods,L.Narrow,M.Format,!0);break;case"h":e=nt(Q.Hours,1,-12);break;case"hh":e=nt(Q.Hours,2,-12);break;case"H":e=nt(Q.Hours,1);break;case"HH":e=nt(Q.Hours,2);break;case"m":e=nt(Q.Minutes,1);break;case"mm":e=nt(Q.Minutes,2);break;case"s":e=nt(Q.Seconds,1);break;case"ss":e=nt(Q.Seconds,2);break;case"S":e=nt(Q.FractionalSeconds,1);break;case"SS":e=nt(Q.FractionalSeconds,2);break;case"SSS":e=nt(Q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=ot(J.Short);break;case"ZZZZZ":e=ot(J.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=ot(J.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=ot(J.Long);break;default:return null}return ct[t]=e,e}(t);l+=e?e(r,i,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function $(t,e,i){var n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function tt(t,e){var i=function(t){return(0,n.cg1)(t)[n.wAp.LocaleId]}(t);if(V[i]=V[i]||{},V[i][e])return V[i][e];var r="";switch(e){case"shortDate":r=F(t,N.Short);break;case"mediumDate":r=F(t,N.Medium);break;case"longDate":r=F(t,N.Long);break;case"fullDate":r=F(t,N.Full);break;case"shortTime":r=Z(t,N.Short);break;case"mediumTime":r=Z(t,N.Medium);break;case"longTime":r=Z(t,N.Long);break;case"fullTime":r=Z(t,N.Full);break;case"short":var o=tt(t,"shortTime"),a=tt(t,"shortDate");r=et(B(t,N.Short),[o,a]);break;case"medium":var s=tt(t,"mediumTime"),u=tt(t,"mediumDate");r=et(B(t,N.Medium),[s,u]);break;case"long":var c=tt(t,"longTime"),l=tt(t,"longDate");r=et(B(t,N.Long),[c,l]);break;case"full":var h=tt(t,"fullTime"),d=tt(t,"fullDate");r=et(B(t,N.Full),[h,d])}return r&&(V[i][e]=r),r}function et(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function it(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=i));for(var a=String(t);a.length2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s,u=function(t,e){switch(t){case Q.FullYear:return e.getFullYear();case Q.Month:return e.getMonth();case Q.Date:return e.getDate();case Q.Hours:return e.getHours();case Q.Minutes:return e.getMinutes();case Q.Seconds:return e.getSeconds();case Q.FractionalSeconds:return e.getMilliseconds();case Q.Day:return e.getDay();default:throw new Error('Unknown DateType value "'.concat(t,'".'))}}(t,o);if((i>0||u>-i)&&(u+=i),t===Q.Hours)0===u&&-12===i&&(u=12);else if(t===Q.FractionalSeconds)return s=e,it(u,3).substr(0,s);var c=q(a,z.MinusSign);return it(u,e,c,n,r)}}function rt(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M.Format,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(a,s){return function(t,e,i,r,a,s){switch(i){case W.Months:return function(t,e,i){var r=(0,n.cg1)(t),o=j([r[n.wAp.MonthsFormat],r[n.wAp.MonthsStandalone]],e);return j(o,i)}(e,a,r)[t.getMonth()];case W.Days:return function(t,e,i){var r=(0,n.cg1)(t),o=j([r[n.wAp.DaysFormat],r[n.wAp.DaysStandalone]],e);return j(o,i)}(e,a,r)[t.getDay()];case W.DayPeriods:var u=t.getHours(),c=t.getMinutes();if(s){var l=function(t){var e=(0,n.cg1)(t);return H(e),(e[n.wAp.ExtraData][2]||[]).map(function(t){return"string"==typeof t?G(t):[G(t[0]),G(t[1])]})}(e),h=function(t,e,i){var r=(0,n.cg1)(t);H(r);var o=j([r[n.wAp.ExtraData][0],r[n.wAp.ExtraData][1]],e)||[];return j(o,i)||[]}(e,a,r),d=l.findIndex(function(t){if(Array.isArray(t)){var e=o(t,2),i=e[0],n=e[1],r=u>=i.hours&&c>=i.minutes,a=u0?Math.floor(r/60):Math.ceil(r/60);switch(t){case J.Short:return(r>=0?"+":"")+it(a,2,o)+it(Math.abs(r%60),2,o);case J.ShortGMT:return"GMT"+(r>=0?"+":"")+it(a,1,o);case J.Long:return"GMT"+(r>=0?"+":"")+it(a,2,o)+":"+it(Math.abs(r%60),2,o);case J.Extended:return 0===n?"Z":(r>=0?"+":"")+it(a,2,o)+":"+it(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'.concat(t,'"'))}}}function at(t){return $(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function st(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,n){var r,o,a;if(e){var s=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,u=i.getDate();r=1+Math.floor((u+s)/7)}else{var c=at(i),l=(o=c.getFullYear(),a=$(o,0,1).getDay(),$(o,0,1+(a<=4?4:11)-a)),h=c.getTime()-l.getTime();r=1+Math.round(h/6048e5)}return it(r,t,q(n,z.MinusSign))}}function ut(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,n){return it(at(i).getFullYear(),t,q(n,z.MinusSign),e)}}var ct={};function lt(t,e){t=t.replace(/:/g,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function ht(t){return t instanceof Date&&!isNaN(t.valueOf())}var dt=function t(){v(this,t)},ft=function(){var t=function(t){a(i,t);var e=u(i);function i(t){var n;return v(this,i),(n=e.call(this)).locale=t,n}return y(i,[{key:"getPluralCategory",value:function(t,e){switch(U(e||this.locale)(t)){case D.Zero:return"zero";case D.One:return"one";case D.Two:return"two";case D.Few:return"few";case D.Many:return"many";default:return"other"}}}]),i}(dt);return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.soG))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}();function pt(t,e){e=encodeURIComponent(e);var i,n=f(t.split(";"));try{for(n.s();!(i=n.n()).done;){var r=i.value,a=r.indexOf("="),s=o(-1==a?[r,""]:[r.slice(0,a),r.slice(a+1)],2),u=s[0],c=s[1];if(u.trim()===e)return decodeURIComponent(c)}}catch(l){n.e(l)}finally{n.f()}return null}var gt=function(){var t=function(){function t(e,i,n,r){v(this,t),this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return y(t,[{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,n.AaK)(t.item)));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(i){return e._toggleClass(i,!!t[i])}))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))}},{key:"_toggleClass",value:function(t,e){var i=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?i._renderer.addClass(i._ngEl.nativeElement,t):i._renderer.removeClass(i._ngEl.nativeElement,t)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),vt=function(){function t(e,i,n,r){v(this,t),this.$implicit=e,this.ngForOf=i,this.index=n,this.count=r}return y(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),mt=function(){var t=function(){function t(e,i,n){v(this,t),this._viewContainer=e,this._template=i,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return y(t,[{key:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"ngForTemplate",set:function(t){t&&(this._template=t)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}},{key:"_applyChanges",value:function(t){var e=this,i=[];t.forEachOperation(function(t,n,r){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new vt(null,e._ngForOf,-1,-1),null===r?void 0:r),a=new yt(t,o);i.push(a)}else if(null==r)e._viewContainer.remove(null===n?void 0:n);else if(null!==n){var s=e._viewContainer.get(n);e._viewContainer.move(s,r);var u=new yt(t,s);i.push(u)}});for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"mediumDate",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return X(e,i,r||this.locale,n)}catch(o){throw xt(t,o.message)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.soG,16))},t.\u0275pipe=n.Yjl({name:"date",type:t,pure:!0}),t}(),Lt=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:dt,useClass:ft}]}),t}(),Nt="browser";function zt(t){return t===Nt}function Ft(t){return"server"===t}var Zt=function(){var t=function t(){v(this,t)};return t.\u0275prov=(0,n.Yz7)({token:t,providedIn:"root",factory:function(){return new Bt((0,n.LFG)(d),window)}}),t}(),Bt=function(){function t(e,i){v(this,t),this.document=e,this.window=i,this.offset=function(){return[0,0]}}return y(t,[{key:"setOffset",value:function(t){this.offset=Array.isArray(t)?function(){return t}:t}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value:function(t){if(this.supportsScrolling()){var e=function(t,e){var i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow))for(var n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;r;){var o=r.shadowRoot;if(o){var a=o.getElementById(e)||o.querySelector('[name="'.concat(e,'"]'));if(a)return a}r=n.nextNode()}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],n-r[1])}},{key:"attemptFocus",value:function(t){return t.focus(),this.document.activeElement===t}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var t=qt(this.window.history)||qt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(e){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}]),t}();function qt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}var Ut=function t(){v(this,t)}},29063:function(t,e,i){"use strict";i.d(e,{TP:function(){return N},eN:function(){return M},JF:function(){return V},WM:function(){return m},LE:function(){return A},Zn:function(){return O}});var n=i(61511),s=i(31572),c=i(40878),l=i(48318),h=i(436),d=i(43835),f=i(79996),p=function t(){v(this,t)},g=function t(){v(this,t)},m=function(){function t(e){var i=this;v(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){i.headers=new Map,e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var n=t.slice(0,e),r=n.toLowerCase(),o=t.slice(e+1).trim();i.maybeSetNormalizedName(n,r),i.headers.has(r)?i.headers.get(r).push(o):i.headers.set(r,[o])}})}:function(){i.headers=new Map,Object.keys(e).forEach(function(t){var n=e[t],r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(i.headers.set(r,n),i.maybeSetNormalizedName(t,r))})}:this.headers=new Map}return y(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(i){e.headers.set(i,t.headers.get(i)),e.normalizedNames.set(i,t.normalizedNames.get(i))})}},{key:"clone",value:function(e){var i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);var n=("a"===t.op?this.headers.get(e):void 0)||[];n.push.apply(n,r(i)),this.headers.set(e,n);break;case"d":var o=t.value;if(o){var a=this.headers.get(e);if(!a)return;0===(a=a.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(i){return t(e.normalizedNames.get(i),e.headers.get(i))})}}]),t}(),b=function(){function t(){v(this,t)}return y(t,[{key:"encodeKey",value:function(t){return w(t)}},{key:"encodeValue",value:function(t){return w(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function w(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function _(t){return"".concat(t)}var A=function(){function t(){var e,i,n,r=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(v(this,t),this.updates=null,this.cloneFrom=null,this.encoder=a.encoder||new b,a.fromString){if(a.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=a.fromString,i=this.encoder,n=new Map,e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(t){var e=t.indexOf("="),r=o(-1==e?[i.decodeKey(t),""]:[i.decodeKey(t.slice(0,e)),i.decodeValue(t.slice(e+1))],2),a=r[0],s=r[1],u=n.get(a)||[];u.push(s),n.set(a,u)}),n)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach(function(t){var e=a.fromObject[t];r.map.set(t,Array.isArray(e)?e:[e])})):this.map=null}return y(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(i){var n=t[i];Array.isArray(n)?n.forEach(function(t){e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var i=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return i+"="+t.encoder.encodeValue(e)}).join("&")}).filter(function(t){return""!==t}).join("&")}},{key:"clone",value:function(e){var i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var i=("a"===e.op?t.map.get(e.param):void 0)||[];i.push(_(e.value)),t.map.set(e.param,i);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var n=t.map.get(e.param)||[],r=n.indexOf(_(e.value));-1!==r&&n.splice(r,1),n.length>0?t.map.set(e.param,n):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),t}(),k=function(){function t(){v(this,t),this.map=new Map}return y(t,[{key:"set",value:function(t,e){return this.map.set(t,e),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}]),t}();function T(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function C(t){return"undefined"!=typeof Blob&&t instanceof Blob}function S(t){return"undefined"!=typeof FormData&&t instanceof FormData}var E=function(){function t(e,i,n,r){var o;if(v(this,t),this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new m),this.context||(this.context=new k),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=i;else{var s=i.indexOf("?");this.urlWithParams=i+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=i.method||this.method,r=i.url||this.url,o=i.responseType||this.responseType,a=void 0!==i.body?i.body:this.body,s=void 0!==i.withCredentials?i.withCredentials:this.withCredentials,u=void 0!==i.reportProgress?i.reportProgress:this.reportProgress,c=i.headers||this.headers,l=i.params||this.params,h=null!==(e=i.context)&&void 0!==e?e:this.context;return void 0!==i.setHeaders&&(c=Object.keys(i.setHeaders).reduce(function(t,e){return t.set(e,i.setHeaders[e])},c)),i.setParams&&(l=Object.keys(i.setParams).reduce(function(t,e){return t.set(e,i.setParams[e])},l)),new t(n,r,a,{params:l,headers:c,context:h,reportProgress:u,responseType:o,withCredentials:s})}}]),t}(),x=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),R=function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";v(this,t),this.headers=e.headers||new m,this.status=void 0!==e.status?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},I=function(t){a(i,t);var e=u(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(this,i),(t=e.call(this,n)).type=x.ResponseHeader,t}return y(i,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),i}(R),O=function(t){a(i,t);var e=u(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(this,i),(t=e.call(this,n)).type=x.Response,t.body=void 0!==n.body?n.body:null,t}return y(i,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),i}(R),P=function(t){a(i,t);var e=u(i);function i(t){var n;return v(this,i),(n=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),n.error=t.error||null,n}return i}(R);function D(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var M=function(){var t=function(){function t(e){v(this,t),this.handler=e}return y(t,[{key:"request",value:function(t,e){var i,n,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t instanceof E?i=t:(n=a.headers instanceof m?a.headers:new m(a.headers),a.params&&(r=a.params instanceof A?a.params:new A({fromObject:a.params})),i=new E(t,e,void 0!==a.body?a.body:null,{headers:n,context:a.context,params:r,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials}));var s=(0,c.of)(i).pipe((0,h.b)(function(t){return o.handler.handle(t)}));if(t instanceof E||"events"===a.observe)return s;var u=s.pipe((0,d.h)(function(t){return t instanceof O}));switch(a.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return u.pipe((0,f.U)(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return u.pipe((0,f.U)(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return u.pipe((0,f.U)(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return u.pipe((0,f.U)(function(t){return t.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new A).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,D(i,e))}},{key:"post",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,D(i,e))}},{key:"put",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,D(i,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(p))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),L=function(){function t(e,i){v(this,t),this.next=e,this.interceptor=i}return y(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),N=new s.OlP("HTTP_INTERCEPTORS"),z=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),F=/^\)\]\}',?\n/,Z=function(){var t=function(){function t(e){v(this,t),this.xhrFactory=e}return y(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new l.y(function(i){var n=e.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach(function(t,e){return n.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&n.setRequestHeader("Content-Type",r)}if(t.responseType){var o=t.responseType.toLowerCase();n.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new m(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new I({headers:r,status:e,statusText:i,url:o})},c=function(){var e=u(),r=e.headers,o=e.status,a=e.statusText,s=e.url,c=null;204!==o&&(c=void 0===n.response?n.responseText:n.response),0===o&&(o=c?200:0);var l=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof c){var h=c;c=c.replace(F,"");try{c=""!==c?JSON.parse(c):null}catch(d){c=h,l&&(l=!1,c={error:d,text:c})}}l?(i.next(new O({body:c,headers:r,status:o,statusText:a,url:s||void 0})),i.complete()):i.error(new P({error:c,headers:r,status:o,statusText:a,url:s||void 0}))},l=function(t){var e=u().url,r=new P({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:e||void 0});i.error(r)},h=!1,d=function(e){h||(i.next(u()),h=!0);var r={type:x.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),i.next(r)},f=function(t){var e={type:x.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),i.next(e)};return n.addEventListener("load",c),n.addEventListener("error",l),n.addEventListener("timeout",l),n.addEventListener("abort",l),t.reportProgress&&(n.addEventListener("progress",d),null!==a&&n.upload&&n.upload.addEventListener("progress",f)),n.send(a),i.next({type:x.Sent}),function(){n.removeEventListener("error",l),n.removeEventListener("abort",l),n.removeEventListener("load",c),n.removeEventListener("timeout",l),t.reportProgress&&(n.removeEventListener("progress",d),null!==a&&n.upload&&n.upload.removeEventListener("progress",f)),n.readyState!==n.DONE&&n.abort()}})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),B=new s.OlP("XSRF_COOKIE_NAME"),q=new s.OlP("XSRF_HEADER_NAME"),U=function t(){v(this,t)},H=function(){var t=function(){function t(e,i,n){v(this,t),this.doc=e,this.platform=i,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return y(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,n.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.Lbi),s.LFG(B))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),j=function(){var t=function(){function t(e,i){v(this,t),this.tokenService=e,this.headerName=i}return y(t,[{key:"intercept",value:function(t,e){var i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);var n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(U),s.LFG(q))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),G=function(){var t=function(){function t(e,i){v(this,t),this.backend=e,this.injector=i,this.chain=null}return y(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(N,[]);this.chain=e.reduceRight(function(t,e){return new L(t,e)},this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(g),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),Y=function(){var t=function(){function t(){v(this,t)}return y(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:j,useClass:z}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:B,useValue:e.cookieName}:[],e.headerName?{provide:q,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[j,{provide:N,useExisting:j,multi:!0},{provide:U,useClass:H},{provide:B,useValue:"XSRF-TOKEN"},{provide:q,useValue:"X-XSRF-TOKEN"}]}),t}(),V=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[M,{provide:p,useClass:G},Z,{provide:g,useExisting:Z}],imports:[[Y.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}()},31572:function(t,s,c){"use strict";c.d(s,{deG:function(){return pi},tb:function(){return gc},AFp:function(){return lc},ip1:function(){return uc},CZH:function(){return cc},hGG:function(){return sl},z2F:function(){return Wc},sBO:function(){return iu},Sil:function(){return Sc},_Vd:function(){return Ss},EJc:function(){return yc},SBq:function(){return Is},qLn:function(){return Mn},vpe:function(){return Uu},gxx:function(){return Co},tBr:function(){return Ni},XFs:function(){return U},OlP:function(){return fi},zs3:function(){return Zo},ZZ4:function(){return Js},aQg:function(){return Ws},soG:function(){return mc},YKP:function(){return hu},v3s:function(){return $c},h0i:function(){return lu},PXZ:function(){return Yc},R0b:function(){return Rc},FiY:function(){return zi},Lbi:function(){return pc},g9A:function(){return fc},n_E:function(){return ju},Qsj:function(){return Ds},FYo:function(){return Ps},JOm:function(){return Bn},Tiy:function(){return Ls},q3G:function(){return Cn},tp0:function(){return Fi},EAV:function(){return il},Rgc:function(){return su},dDg:function(){return Nc},DyG:function(){return gi},GfV:function(){return Ns},s_b:function(){return fu},ifc:function(){return V},eFA:function(){return Vc},G48:function(){return jc},Gpc:function(){return C},f3M:function(){return Oi},X6Q:function(){return Hc},_c5:function(){return ol},VLi:function(){return Fc},c2e:function(){return vc},zSh:function(){return Eo},wAp:function(){return ps},vHH:function(){return x},EiD:function(){return kn},mCW:function(){return an},qzn:function(){return Ki},JVY:function(){return Qi},pB0:function(){return tn},eBb:function(){return Xi},L6k:function(){return Wi},LAX:function(){return $i},cg1:function(){return hs},Tjo:function(){return rl},kL8:function(){return ds},yhl:function(){return Ji},dqk:function(){return X},sIi:function(){return Jo},CqO:function(){return ba},QGY:function(){return ma},F4k:function(){return ya},RDi:function(){return Lt},AaK:function(){return A},z3N:function(){return Vi},qOj:function(){return qo},TTD:function(){return It},_Bn:function(){return ks},xp6:function(){return Sr},uIk:function(){return ia},Tol:function(){return Ba},Gre:function(){return os},ekj:function(){return Za},Suo:function(){return ic},Xpm:function(){return ct},lG2:function(){return mt},Yz7:function(){return P},cJS:function(){return D},oAB:function(){return pt},Yjl:function(){return yt},Y36:function(){return sa},_UZ:function(){return da},GkF:function(){return ga},BQk:function(){return pa},ynx:function(){return fa},qZA:function(){return ha},TgZ:function(){return la},EpF:function(){return va},n5z:function(){return ci},Ikx:function(){return as},LFG:function(){return Ii},$8M:function(){return hi},NdJ:function(){return wa},CRH:function(){return nc},kcU:function(){return xe},O4$:function(){return Ee},oxw:function(){return Ca},ALo:function(){return Lu},lcZ:function(){return Nu},xi3:function(){return zu},Dn7:function(){return Fu},Hsn:function(){return xa},F$t:function(){return Ea},Q6J:function(){return ua},s9C:function(){return Ra},MGl:function(){return Ia},hYB:function(){return Oa},DdM:function(){return Eu},VKq:function(){return xu},WLB:function(){return Ru},kEZ:function(){return Iu},iGM:function(){return tc},MAs:function(){return aa},pYS:function(){return Fn},evT:function(){return zn},Jf7:function(){return Nn},CHM:function(){return te},oJD:function(){return Sn},LSH:function(){return En},B6R:function(){return lt},kYT:function(){return gt},Udp:function(){return Fa},WFA:function(){return _a},d8E:function(){return ss},YNc:function(){return oa},W1O:function(){return sc},_uU:function(){return Xa},Oqu:function(){return $a},hij:function(){return ts},AsE:function(){return es},lnq:function(){return is},HOy:function(){return ns},xDo:function(){return rs},Gf:function(){return ec}});var h=c(55959),p=c(87570),g=c(48318),m=c(31906),b=c(1055);function w(t){for(var e in t)if(t[e]===w)return e;throw Error("Could not find renamed property on target object.")}function _(t,e){for(var i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function A(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(A).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var e=t.toString();if(null==e)return""+e;var i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function k(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var T=w({__forward_ref__:w});function C(t){return t.__forward_ref__=C,t.toString=function(){return A(this())},t}function S(t){return E(t)?t():t}function E(t){return"function"==typeof t&&t.hasOwnProperty(T)&&t.__forward_ref__===C}var x=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this,function(t,e){return"".concat(t?"NG0".concat(t,": "):"").concat(e)}(t,n))).code=t,r}return i}(e(Error));function R(t){return"string"==typeof t?t:null==t?"":String(t)}function I(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():R(t)}function O(t,e){var i=e?" in ".concat(e):"";throw new x("201","No provider for ".concat(I(t)," found").concat(i))}function P(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function D(t){return{providers:t.providers||[],imports:t.imports||[]}}function M(t){return L(t,F)||L(t,B)}function L(t,e){return t.hasOwnProperty(e)?t[e]:null}function N(t){return t&&(t.hasOwnProperty(Z)||t.hasOwnProperty(q))?t[Z]:null}var z,F=w({"\u0275prov":w}),Z=w({"\u0275inj":w}),B=w({ngInjectableDef:w}),q=w({ngInjectorDef:w}),U=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function H(t){var e=z;return z=t,e}function j(t,e,i){var n=M(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&U.Optional?null:void 0!==e?e:void O(A(t),"Injector")}function G(t){return{toString:t}.toString()}var Y=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),V=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),K="undefined"!=typeof globalThis&&globalThis,J="undefined"!=typeof window&&window,Q="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,W="undefined"!=typeof global&&global,X=K||W||J||Q,$={},tt=[],et=w({"\u0275cmp":w}),it=w({"\u0275dir":w}),nt=w({"\u0275pipe":w}),rt=w({"\u0275mod":w}),ot=w({"\u0275loc":w}),at=w({"\u0275fac":w}),st=w({__NG_ELEMENT_ID__:w}),ut=0;function ct(t){return G(function(){var e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Y.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||tt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||V.Emulated,id:"c",styles:t.styles||tt,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,r=t.features,o=t.pipes;return i.id+=ut++,i.inputs=vt(t.inputs,e),i.outputs=vt(t.outputs),r&&r.forEach(function(t){return t(i)}),i.directiveDefs=n?function(){return("function"==typeof n?n():n).map(ht)}:null,i.pipeDefs=o?function(){return("function"==typeof o?o():o).map(dt)}:null,i})}function lt(t,e,i){var n=t.\u0275cmp;n.directiveDefs=function(){return e.map(ht)},n.pipeDefs=function(){return i.map(dt)}}function ht(t){return bt(t)||function(t){return t[it]||null}(t)}function dt(t){return function(t){return t[nt]||null}(t)}var ft={};function pt(t){return G(function(){var e={type:t.type,bootstrap:t.bootstrap||tt,declarations:t.declarations||tt,imports:t.imports||tt,exports:t.exports||tt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(ft[t.id]=t.type),e})}function gt(t,e){return G(function(){var i=wt(t,!0);i.declarations=e.declarations||tt,i.imports=e.imports||tt,i.exports=e.exports||tt})}function vt(t,e){if(null==t)return $;var i={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),i[r]=n,e&&(e[r]=o)}return i}var mt=ct;function yt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function bt(t){return t[et]||null}function wt(t,e){var i=t[rt]||null;if(!i&&!0===e)throw new Error("Type ".concat(A(t)," does not have '\u0275mod' property."));return i}function _t(t){return Array.isArray(t)&&"object"==typeof t[1]}function At(t){return Array.isArray(t)&&!0===t[1]}function kt(t){return 0!=(8&t.flags)}function Tt(t){return 2==(2&t.flags)}function Ct(t){return 1==(1&t.flags)}function St(t){return null!==t.template}function Et(t,e){return t.hasOwnProperty(at)?t[at]:null}var xt,Rt=function(){function t(e,i,n){v(this,t),this.previousValue=e,this.currentValue=i,this.firstChange=n}return y(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function It(){return Ot}function Ot(t){return t.type.prototype.ngOnChanges&&(t.setInput=Dt),Pt}function Pt(){var t=Mt(this),e=null==t?void 0:t.current;if(e){var i=t.previous;if(i===$)t.previous=e;else for(var n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function Dt(t,e,i,n){var r=Mt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:$,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[i],u=a[s];o[s]=new Rt(u&&u.currentValue,e,a===$),t[n]=e}function Mt(t){return t.__ngSimpleChanges__||null}function Lt(t){xt=t}function Nt(){return void 0!==xt?xt:"undefined"!=typeof document?document:void 0}function zt(t){return!!t.listen}It.ngInherit=!0;var Ft={createRenderer:function(t,e){return Nt()}};function Zt(t){for(;Array.isArray(t);)t=t[0];return t}function Bt(t,e){return Zt(e[t])}function qt(t,e){return Zt(e[t.index])}function Ut(t,e){return t.data[e]}function Ht(t,e){return t[e]}function jt(t,e){var i=e[t];return _t(i)?i:i[0]}function Gt(t){return 4==(4&t[2])}function Yt(t){return 128==(128&t[2])}function Vt(t,e){return null==e?null:t[e]}function Kt(t){t[18]=0}function Jt(t,e){t[5]+=e;for(var i=t,n=t[3];null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}var Qt={lFrame:we(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Wt(){return Qt.bindingsEnabled}function Xt(){return Qt.lFrame.lView}function $t(){return Qt.lFrame.tView}function te(t){return Qt.lFrame.contextLView=t,t[8]}function ee(){for(var t=ie();null!==t&&64===t.type;)t=t.parent;return t}function ie(){return Qt.lFrame.currentTNode}function ne(t,e){var i=Qt.lFrame;i.currentTNode=t,i.isParent=e}function re(){return Qt.lFrame.isParent}function oe(){Qt.lFrame.isParent=!1}function ae(){return Qt.isInCheckNoChangesMode}function se(t){Qt.isInCheckNoChangesMode=t}function ue(){var t=Qt.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ce(){return Qt.lFrame.bindingIndex}function le(){return Qt.lFrame.bindingIndex++}function he(t){var e=Qt.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function de(t){Qt.lFrame.currentDirectiveIndex=t}function fe(t){var e=Qt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function pe(){return Qt.lFrame.currentQueryIndex}function ge(t){Qt.lFrame.currentQueryIndex=t}function ve(t){var e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function me(t,e,i){if(i&U.SkipSelf){for(var n=e,r=t;!(null!==(n=n.parent)||i&U.Host||(n=ve(r),null===n)||(r=r[15],10&n.type)););if(null===n)return!1;e=n,t=r}var o=Qt.lFrame=be();return o.currentTNode=e,o.lView=t,!0}function ye(t){var e=be(),i=t[1];Qt.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function be(){var t=Qt.lFrame,e=null===t?null:t.child;return null===e?we(t):e}function we(t){var e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function _e(){var t=Qt.lFrame;return Qt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ae=_e;function ke(){var t=_e();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Te(){return Qt.lFrame.selectedIndex}function Ce(t){Qt.lFrame.selectedIndex=t}function Se(){var t=Qt.lFrame;return Ut(t.tView,t.selectedIndex)}function Ee(){Qt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function xe(){Qt.lFrame.currentNamespace=null}function Re(t,e){for(var i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[s]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var Le=function t(e,i,n){v(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n};function Ne(t,e,i){for(var n=zt(t),r=0;re){a=o-1;break}}}for(;o>16,n=e;i>0;)n=n[15],i--;return n}var je=!0;function Ge(t){var e=je;return je=t,e}var Ye=0;function Ve(t,e){var i=Je(t,e);if(-1!==i)return i;var n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Ke(n.data,t),Ke(e,null),Ke(n.blueprint,null));var r=Qe(t,e),o=t.injectorIndex;if(qe(r))for(var a=Ue(r),s=He(r,e),u=s[1].data,c=0;c<8;c++)e[o+c]=s[a+c]|u[a+c];return e[o+8]=r,o}function Ke(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Je(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Qe(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var i=0,n=null,r=e;null!==r;){var o=r[1],a=o.type;if(null===(n=2===a?o.declTNode:1===a?r[6]:null))return-1;if(i++,r=r[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function We(t,e,i){!function(t,e,i){var n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(st)&&(n=i[st]),null==n&&(n=i[st]=Ye++);var r=255&n;e.data[t+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:U.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(st)?t[st]:void 0;return"number"==typeof e?e>=0?255&e:ii:e}(i);if("function"==typeof o){if(!me(e,t,n))return n&U.Host?Xe(r,i,n):$e(e,i,n,r);try{var a=o(n);if(null!=a||n&U.Optional)return a;O(i)}finally{Ae()}}else if("number"==typeof o){var s=null,u=Je(t,e),c=-1,l=n&U.Host?e[16][6]:null;for((-1===u||n&U.SkipSelf)&&(-1!==(c=-1===u?Qe(t,e):e[u+8])&&si(n,!1)?(s=e[1],u=Ue(c),e=He(c,e)):u=-1);-1!==u;){var h=e[1];if(ai(o,u,h.data)){var d=ni(u,e,i,s,n,l);if(d!==ei)return d}-1!==(c=e[u+8])&&si(n,e[1].data[u+8]===l)&&ai(o,u,e)?(s=h,u=Ue(c),e=He(c,e)):u=-1}}}return $e(e,i,n,r)}var ei={};function ii(){return new ui(ee(),Xt())}function ni(t,e,i,n,r,o){var a=e[1],s=a.data[t+8],u=ri(s,a,i,null==n?Tt(s)&&je:n!=a&&0!=(3&s.type),r&U.Host&&o===s);return null!==u?oi(e,a,u,s):ei}function ri(t,e,i,n,r){for(var o=t.providerIndexes,a=e.data,s=1048575&o,u=t.directiveStart,c=o>>20,l=r?s+c:t.directiveEnd,h=n?s:s+c;h=u&&d.type===i)return h}if(r){var f=a[u];if(f&&St(f)&&f.type===i)return u}return null}function oi(t,e,i,n){var r=t[i],o=e.data;if(r instanceof Le){var a=r;a.resolving&&function(t,e){throw new x("200","Circular dependency in DI detected for ".concat(t))}(I(o[i]));var s=Ge(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?H(a.injectImpl):null;me(t,n,U.Default);try{r=t[i]=a.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){var n=e.type.prototype,r=n.ngOnChanges,o=n.ngOnInit,a=n.ngDoCheck;if(r){var s=Ot(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,s),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,s)}o&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,o),a&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,a),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,a))}(i,o[i],e)}finally{null!==u&&H(u),Ge(s),a.resolving=!1,Ae()}}return r}function ai(t,e,i){return!!(i[e+(t>>5)]&1<=t.length?t.push(i):t.splice(e,0,i)}function bi(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function wi(t,e){for(var i=[],n=0;n=0?t[1|n]=i:function(t,e,i,n){var r=t.length;if(r==e)t.push(i,n);else if(1===r)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=i,t[e+1]=n}}(t,n=~n,e,i),n}function Ai(t,e){var i=ki(t,e);if(i>=0)return t[1|i]}function ki(t,e){return function(t,e,i){for(var n=0,r=t.length>>1;r!==n;){var o=n+(r-n>>1),a=t[o<<1];if(e===a)return o<<1;a>e?r=o:n=o+1}return~(r<<1)}(t,e)}var Ti,Ci={},Si=/\n/gm,Ei=w({provide:String,useValue:w});function xi(t){var e=Ti;return Ti=t,e}function Ri(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.Default;if(void 0===Ti)throw new Error("inject() must be called from an injection context");return null===Ti?j(t,void 0,e):Ti.get(t,e&U.Optional?null:void 0,e)}function Ii(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.Default;return(z||Ri)(S(t),e)}var Oi=Ii;function Pi(t){for(var e=[],i=0;i"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();pn.hasOwnProperty(e)&&!ln.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(An(t))}},{key:"checkClobberedElement",value:function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return e}}]),t}(),wn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_n=/([^\#-~ |!])/g;function An(t){return t.replace(/&/g,"&").replace(wn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(_n,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function kn(t,e){var i=null;try{cn=cn||function(t){var e=new nn(t);return function(){try{return!!(new window.DOMParser).parseFromString(Zi(""),"text/html")}catch(t){return!1}}()?new en(e):e}(t);var n=e?String(e):"";i=cn.getInertBodyElement(n);var r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=i.innerHTML,i=cn.getInertBodyElement(n)}while(n!==o);return Zi((new bn).sanitizeChildren(Tn(i)||i))}finally{if(i)for(var a=Tn(i)||i;a.firstChild;)a.removeChild(a.firstChild)}}function Tn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Cn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Sn(t){var e=xn();return e?Bi(e.sanitize(Cn.HTML,t)||""):Ki(t,"HTML")?Bi(Vi(t)):kn(Nt(),R(t))}function En(t){var e=xn();return e?e.sanitize(Cn.URL,t)||"":Ki(t,"URL")?Vi(t):an(R(t))}function xn(){var t=Xt();return t&&t[12]}function Rn(t,e){t.__ngContext__=e}function In(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function On(t){return t.ngDebugContext}function Pn(t){return t.ngOriginalError}function Dn(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n0&&(t[n-1][4]=r[4]);var a=bi(t,10+e);lr(r[1],i=r,i[11],2,null,null),i[0]=null,i[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Qn(t,e){if(!(256&e[2])){var i=e[11];zt(i)&&i.destroyNode&&lr(t,e,i,3,null,null),function(t){var e=t[13];if(!e)return Wn(t[1],t);for(;e;){var i=null;if(_t(e))i=e[13];else{var n=e[10];n&&(i=n)}if(!i){for(;e&&!e[4]&&e!==t;)_t(e)&&Wn(e[1],e),e=e[3];null===e&&(e=t),_t(e)&&Wn(e[1],e),i=e&&e[4]}e=i}}(e)}}function Wn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var i;if(null!=t&&null!=(i=t.destroyHooks))for(var n=0;n=0?n[r=c]():n[r=-c].unsubscribe(),o+=2}else{var l=n[r=i[o+1]];i[o].call(l)}if(null!==n){for(var h=r+1;ho?"":r[l+1].toLowerCase();var d=8&n?h:null;if(d&&-1!==pr(d,c,0)||2&n&&c!==h){if(br(n))return!1;a=!0}}}}else{if(!a&&!br(n)&&!br(u))return!1;if(a&&br(u))continue;a=!1,n=u|1&n}}return br(n)||a}function br(t){return 0==(1&t)}function wr(t,e,i,n){if(null===e)return-1;var r=0;if(n||!i){for(var o=!1;r-1)for(i++;i2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+s+'"':"")+"]"}else 8&n?r+="."+a:4&n&&(r+=" "+a);else""===r||br(a)||(e+=kr(o,r),r=""),n=a,o=o||!br(n);i++}return""!==r&&(e+=kr(o,r)),e}var Cr={};function Sr(t){Er($t(),Xt(),Te()+t,ae())}function Er(t,e,i,n){if(!n)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&Ie(e,r,i)}else{var o=t.preOrderHooks;null!==o&&Oe(e,o,0,i)}Ce(i)}function xr(t,e){return t<<17|e<<2}function Rr(t){return t>>17&32767}function Ir(t){return 2|t}function Or(t){return(131068&t)>>2}function Pr(t,e){return-131069&t|e<<2}function Dr(t){return 1|t}function Mr(t,e){var i=t.contentQueries;if(null!==i)for(var n=0;n20&&Er(t,e,20,ae()),i(n,r)}finally{Ce(o)}}function Ur(t,e,i){if(kt(e))for(var n=e.directiveEnd,r=e.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:qt,n=e.localNames;if(null!==n)for(var r=e.index+1,o=0;o0;){var i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(s)!=u&&s.push(u),s.push(n,r,a)}}function Xr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function $r(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function to(t,e,i){if(i){if(e.exportAs)for(var n=0;n0&&uo(i)}}function uo(t){for(var e=Hn(t);null!==e;e=jn(e))for(var i=10;i0&&uo(n)}var o=t[1].components;if(null!==o)for(var a=0;a0&&uo(s)}}function co(t,e){var i=jt(e,t),n=i[1];!function(t,e){for(var i=e.length;i1&&void 0!==arguments[1]?arguments[1]:Ci;if(e===Ci){var i=new Error("NullInjectorError: No provider for ".concat(A(t),"!"));throw i.name="NullInjectorError",i}return e}}]),t}(),Eo=new fi("Set Injector scope."),xo={},Ro={};function Io(){return void 0===To&&(To=new So),To}function Oo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new Po(t,i,e||Io(),n)}var Po=function(){function t(e,i,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;v(this,t),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];i&&mi(i,function(t){return r.processProvider(t,e,i)}),mi([e],function(t){return r.processInjectorType(t,[],a)}),this.records.set(Co,Lo(void 0,this));var s=this.records.get(Eo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:A(e))}return y(t,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ci,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U.Default;this.assertNotDestroyed();var n,r=xi(this);try{if(!(i&U.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(n=t)||"object"==typeof n&&n instanceof fi)&&M(t);o=a&&this.injectableDefInScope(a)?Lo(Do(t),xo):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}return(i&U.Self?Io():this.parent).get(t,e=i&U.Optional&&e===Ci?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(A(t)),r)throw s;return function(t,e,i,n){var r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var r=A(e);if(Array.isArray(e))r=e.map(A).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):A(s)))}r="{".concat(o.join(", "),"}")}return"".concat(i).concat(n?"("+n+")":"","[").concat(r,"]: ").concat(t.replace(Si,"\n "))}("\n"+t.message,r,"R3InjectorError",n),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,0,this.source)}throw s}finally{xi(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(e,i){return t.push(A(i))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,i){var n=this;if(!(t=S(t)))return!1;var r=N(t),o=null==r&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==i.indexOf(a);if(void 0!==o&&(r=N(o)),null==r)return!1;if(null!=r.imports&&!s){var u;i.push(a);try{mi(r.imports,function(t){n.processInjectorType(t,e,i)&&(void 0===u&&(u=[]),u.push(t))})}finally{}if(void 0!==u)for(var c=function(t){var e=u[t],i=e.ngModule,r=e.providers;mi(r,function(t){return n.processProvider(t,i,r||tt)})},l=0;l0){var i=wi(e,"?");throw new Error("Can't resolve all parameters for ".concat(A(t),": (").concat(i.join(", "),")."))}var n=function(t){var e=t&&(t[F]||t[B]);if(e){var i=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(i,'" 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 "').concat(i,'" class.')),e}return null}(t);return null!==n?function(){return n.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function Mo(t,e,n){var o,a;if(zo(t)){var s=S(t);return Et(s)||Do(s)}if(No(t))o=function(){return S(t.useValue)};else if((a=t)&&a.useFactory)o=function(){return t.useFactory.apply(t,r(Pi(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))o=function(){return Ii(S(t.useExisting))};else{var u=S(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Et(u)||Do(u);o=function(){return i(u,r(Pi(t.deps)))}}return o}function Lo(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:i?[]:void 0}}function No(t){return null!==t&&"object"==typeof t&&Ei in t}function zo(t){return"function"==typeof t}var Fo=function(t,e,i){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,r=Oo(t,e,i,n);return r._resolveInjectorDefTypes(),r}({name:i},e,t,i)},Zo=function(){var t=function(){function t(){v(this,t)}return y(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?Fo(t,e,""):Fo(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=Ci,t.NULL=new So,t.\u0275prov=P({token:t,providedIn:"any",factory:function(){return Ii(Co)}}),t.__NG_ELEMENT_ID__=-1,t}();function Bo(t,e){Re(In(t)[1],ee())}function qo(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0,n=[t];e;){var r=void 0;if(St(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(i){n.push(r);var o=t;o.inputs=Uo(t.inputs),o.declaredInputs=Uo(t.declaredInputs),o.outputs=Uo(t.outputs);var a=r.hostBindings;a&&Go(t,a);var s=r.viewQuery,u=r.contentQueries;if(s&&Ho(t,s),u&&jo(t,u),_(t.inputs,r.inputs),_(t.declaredInputs,r.declaredInputs),_(t.outputs,r.outputs),St(r)&&r.data.animation){var c=t.data;c.animation=(c.animation||[]).concat(r.data.animation)}}var l=r.features;if(l)for(var h=0;h=0;n--){var r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=Ze(r.hostAttrs,i=Ze(i,r.hostAttrs))}}(n)}function Uo(t){return t===$?{}:t===tt?[]:t}function Ho(t,e){var i=t.viewQuery;t.viewQuery=i?function(t,n){e(t,n),i(t,n)}:e}function jo(t,e){var i=t.contentQueries;t.contentQueries=i?function(t,n,r){e(t,n,r),i(t,n,r)}:e}function Go(t,e){var i=t.hostBindings;t.hostBindings=i?function(t,n){e(t,n),i(t,n)}:e}var Yo=null;function Vo(){if(!Yo){var t=X.Symbol;if(t&&t.iterator)Yo=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),i=0;i1&&void 0!==arguments[1]?arguments[1]:U.Default,i=Xt();return null===i?Ii(t,e):ti(ee(),i,S(t),e)}function ua(t,e,i){var n=Xt();return Xo(n,le(),e)&&Jr($t(),Se(),n,t,e,n[11],i,!1),ua}function ca(t,e,i,n,r){var o=r?"class":"style";_o(t,i,e.inputs[o],o,n)}function la(t,e,i,n){var r=Xt(),o=$t(),a=20+t,s=r[11],u=r[a]=Vn(s,e,Qt.lFrame.currentNamespace),c=o.firstCreatePass?function(t,e,i,n,r,o,a){var s=e.consts,u=Nr(e,t,2,r,Vt(s,o));return Qr(e,i,u,Vt(s,a)),null!==u.attrs&&ko(u,u.attrs,!1),null!==u.mergedAttrs&&ko(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}(a,o,r,0,e,i,n):o.data[a];ne(c,!0);var l=c.mergedAttrs;null!==l&&Ne(s,u,l);var h=c.classes;null!==h&&fr(s,u,h);var d=c.styles;null!==d&&dr(s,u,d),64!=(64&c.flags)&&or(o,r,u,c),0===Qt.lFrame.elementDepthCount&&Rn(u,r),Qt.lFrame.elementDepthCount++,Ct(c)&&(Hr(o,r,c),Ur(o,c,r)),null!==n&&jr(r,c)}function ha(){var t=ee();re()?oe():ne(t=t.parent,!1);var e=t;Qt.lFrame.elementDepthCount--;var i=$t();i.firstCreatePass&&(Re(i,t),kt(t)&&i.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&ca(i,e,Xt(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&ca(i,e,Xt(),e.stylesWithoutHost,!1)}function da(t,e,i,n){la(t,e,i,n),ha()}function fa(t,e,i){var n=Xt(),r=$t(),o=t+20,a=r.firstCreatePass?function(t,e,i,n,r){var o=e.consts,a=Vt(o,n),s=Nr(e,t,8,"ng-container",a);return null!==a&&ko(s,a,!0),Qr(e,i,s,Vt(o,r)),null!==e.queries&&e.queries.elementStart(e,s),s}(o,r,n,e,i):r.data[o];ne(a,!0);var s=n[o]=n[11].createComment("");or(r,n,s,a),Rn(s,n),Ct(a)&&(Hr(r,n,a),Ur(r,a,n)),null!=i&&jr(n,a)}function pa(){var t=ee(),e=$t();re()?oe():ne(t=t.parent,!1),e.firstCreatePass&&(Re(e,t),kt(t)&&e.queries.elementEnd(t))}function ga(t,e,i){fa(t,e,i),pa()}function va(){return Xt()}function ma(t){return!!t&&"function"==typeof t.then}function ya(t){return!!t&&"function"==typeof t.subscribe}var ba=ya;function wa(t,e,i,n){var r=Xt(),o=$t(),a=ee();return Aa(o,r,r[11],a,t,e,!!i,n),wa}function _a(t,e){var i=ee(),n=Xt(),r=$t();return Aa(r,n,bo(fe(r.data),i,n),i,t,e,!1),_a}function Aa(t,e,i,n,r,o,a,s){var u=Ct(n),c=t.firstCreatePass&&yo(t),l=mo(e),h=!0;if(3&n.type||s){var d=qt(n,e),f=s?s(d):d,p=l.length,g=s?function(t){return s(Zt(t[n.index]))}:n.index;if(zt(i)){var v=null;if(!s&&u&&(v=function(t,e,i,n){var r=t.cleanup;if(null!=r)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(t,e,r,n.index)),null!==v)(v.__ngLastListenerFn__||v).__ngNextListenerFn__=o,v.__ngLastListenerFn__=o,h=!1;else{o=Ta(n,e,0,o,!1);var m=i.listen(f,r,o);l.push(o,m),c&&c.push(r,g,p,p+1)}}else o=Ta(n,e,0,o,!0),f.addEventListener(r,o,a),l.push(o),c&&c.push(r,g,p,a)}else o=Ta(n,e,0,o,!1);var y,b=n.outputs;if(h&&null!==b&&(y=b[r])){var w=y.length;if(w)for(var _=0;_0&&void 0!==arguments[0]?arguments[0]:1;return function(t){return(Qt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Qt.lFrame.contextLView))[8]}(t)}function Sa(t,e){for(var i=null,n=function(t){var e=t.attrs;if(null!=e){var i=e.indexOf(5);if(0==(1&i))return e[i+1]}return null}(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,n=Xt(),r=$t(),o=Nr(r,20+t,16,null,i||null);null===o.projection&&(o.projection=e),oe(),64!=(64&o.flags)&&function(t,e,i){hr(e[11],0,e,i,Xn(t,i,e),nr(i.parent||e[6],i,e))}(r,n,o)}function Ra(t,e,i){return Ia(t,"",e,"",i),Ra}function Ia(t,e,i,n,r){var o=Xt(),a=na(o,e,i,n);return a!==Cr&&Jr($t(),Se(),o,t,a,o[11],r,!1),Ia}function Oa(t,e,i,n,r,o,a){var s=Xt(),u=ra(s,e,i,n,r,o);return u!==Cr&&Jr($t(),Se(),s,t,u,s[11],a,!1),Oa}function Pa(t,e,i,n,r){for(var o=t[i+1],a=null===e,s=n?Rr(o):Or(o),u=!1;0!==s&&(!1===u||a);){var c=t[s+1];Da(t[s],e)&&(u=!0,t[s+1]=n?Dr(c):Ir(c)),s=n?Rr(c):Or(c)}u&&(t[i+1]=n?Ir(o):Dr(o))}function Da(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ki(t,e)>=0}var Ma={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function La(t){return t.substring(Ma.key,Ma.keyEnd)}function Na(t,e){var i=Ma.textEnd;return i===e?-1:(e=Ma.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Ma.key=e,i),za(t,e,i))}function za(t,e,i){for(;e=0;i=Na(e,i))_i(t,La(e),!0)}function Ua(t,e,i,n){var r=Xt(),o=$t(),a=he(2);o.firstUpdatePass&&Ga(o,t,a,n),e!==Cr&&Xo(r,a,e)&&Ka(o,o.data[Te()],r,r[11],t,r[a+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=A(Vi(t)))),t}(e,i),n,a)}function Ha(t,e,i,n){var r=$t(),o=he(2);r.firstUpdatePass&&Ga(r,null,o,n);var a=Xt();if(i!==Cr&&Xo(a,o,i)){var s=r.data[Te()];if(Wa(s,n)&&!ja(r,o)){var u=n?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(i=k(u,i||"")),ca(r,s,a,i,n)}else!function(t,e,i,n,r,o,a,s){r===Cr&&(r=tt);for(var u=0,c=0,l=0=t.expandoStartIndex}function Ga(t,e,i,n){var r=t.data;if(null===r[i+1]){var o=r[Te()],a=ja(t,i);Wa(o,n)&&null===e&&!a&&(e=!1),e=function(t,e,i,n){var r=fe(t),o=n?e.residualClasses:e.residualStyles;if(null===r)0===(n?e.classBindings:e.styleBindings)&&(i=Va(i=Ya(null,t,e,i,n),e.attrs,n),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==r)if(i=Ya(r,t,e,i,n),null===o){var s=function(t,e,i){var n=i?e.classBindings:e.styleBindings;if(0!==Or(n))return t[Rr(n)]}(t,e,n);void 0!==s&&Array.isArray(s)&&function(t,e,i,n){t[Rr(i?e.classBindings:e.styleBindings)]=n}(t,e,n,s=Va(s=Ya(null,t,e,s[1],n),e.attrs,n))}else o=function(t,e,i){for(var n,r=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(l=!0)}else c=i;if(r)if(0!==u){var d=Rr(t[s+1]);t[n+1]=xr(d,s),0!==d&&(t[d+1]=Pr(t[d+1],n)),t[s+1]=131071&t[s+1]|n<<17}else t[n+1]=xr(s,0),0!==s&&(t[s+1]=Pr(t[s+1],n)),s=n;else t[n+1]=xr(u,0),0===s?s=n:t[u+1]=Pr(t[u+1],n),u=n;l&&(t[n+1]=Ir(t[n+1])),Pa(t,c,n,!0),Pa(t,c,n,!1),function(t,e,i,n,r){var o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&ki(o,e)>=0&&(i[n+1]=Dr(i[n+1]))}(e,c,t,n,o),a=xr(s,u),o?e.classBindings=a:e.styleBindings=a}(r,o,e,i,a,n)}}function Ya(t,e,i,n,r){var o=null,a=i.directiveEnd,s=i.directiveStylingLast;for(-1===s?s=i.directiveStart:s++;s0;){var u=t[r],c=Array.isArray(u),l=c?u[1]:u,h=null===l,d=i[r+1];d===Cr&&(d=h?tt:void 0);var f=h?Ai(d,n):l===n?d:void 0;if(c&&!Qa(f)&&(f=Ai(u,n)),Qa(f)&&(a=f,s))return a;var p=t[r+1];r=s?Rr(p):Or(p)}if(null!==e){var g=o?e.residualClasses:e.residualStyles;null!=g&&(a=Ai(g,n))}return a}function Qa(t){return void 0!==t}function Wa(t,e){return 0!=(t.flags&(e?16:32))}function Xa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=Xt(),n=$t(),r=t+20,o=n.firstCreatePass?Nr(n,r,1,e,null):n.data[r],a=i[r]=function(t,e){return zt(t)?t.createText(e):t.createTextNode(e)}(i[11],e);or(n,i,a,o),ne(o,!1)}function $a(t){return ts("",t,""),$a}function ts(t,e,i){var n=Xt(),r=na(n,t,e,i);return r!==Cr&&Ao(n,Te(),r),ts}function es(t,e,i,n,r){var o=Xt(),a=ra(o,t,e,i,n,r);return a!==Cr&&Ao(o,Te(),a),es}function is(t,e,i,n,r,o,a){var s=Xt(),u=function(t,e,i,n,r,o,a,s){var u=ta(t,ce(),i,r,a);return he(3),u?e+R(i)+n+R(r)+o+R(a)+s:Cr}(s,t,e,i,n,r,o,a);return u!==Cr&&Ao(s,Te(),u),is}function ns(t,e,i,n,r,o,a,s,u){var c=Xt(),l=function(t,e,i,n,r,o,a,s,u,c){var l=ea(t,ce(),i,r,a,u);return he(4),l?e+R(i)+n+R(r)+o+R(a)+s+R(u)+c:Cr}(c,t,e,i,n,r,o,a,s,u);return l!==Cr&&Ao(c,Te(),l),ns}function rs(t,e,i,n,r,o,a,s,u,c,l){var h=Xt(),d=function(t,e,i,n,r,o,a,s,u,c,l,h){var d=ce(),f=ea(t,d,i,r,a,u);return f=Xo(t,d+4,l)||f,he(5),f?e+R(i)+n+R(r)+o+R(a)+s+R(u)+c+R(l)+h:Cr}(h,t,e,i,n,r,o,a,s,u,c,l);return d!==Cr&&Ao(h,Te(),d),rs}function os(t,e,i){Ha(_i,qa,na(Xt(),t,e,i),!0)}function as(t,e,i){var n=Xt();return Xo(n,le(),e)&&Jr($t(),Se(),n,t,e,n[11],i,!0),as}function ss(t,e,i){var n=Xt();if(Xo(n,le(),e)){var r=$t(),o=Se();Jr(r,o,n,t,e,bo(fe(r.data),o,n),i,!0)}return ss}var us=void 0,cs=["en",[["a","p"],["AM","PM"],us],[["AM","PM"],us,us],[["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"]],us,[["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"]],us,[["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}",us,"{1} 'at' {0}",us],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}],ls={};function hs(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),i=fs(e);if(i)return i;var n=e.split("-")[0];if(i=fs(n))return i;if("en"===n)return cs;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}function ds(t){return hs(t)[ps.PluralCase]}function fs(t){return t in ls||(ls[t]=X.ng&&X.ng.common&&X.ng.common.locales&&X.ng.common.locales[t]),ls[t]}var ps=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});function gs(t){var e;null==(e=t)&&function(t,e,i,n){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined"," [Expected=> null != ").concat(e," <=Actual]"))}(0,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function vs(t,e,i,n,r){if(t=S(t),Array.isArray(t))for(var o=0;o>20;if(zo(t)||!t.multi){var p=new Le(c,r,sa),g=bs(u,e,r?h:h+f,d);-1===g?(We(Ve(l,s),a,u),ms(a,t,e.length),e.push(u),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(p),s.push(p)):(i[g]=p,s[g]=p)}else{var v=bs(u,e,h+f,d),m=bs(u,e,h,h+f),y=v>=0&&i[v],b=m>=0&&i[m];if(r&&!b||!r&&!y){We(Ve(l,s),a,u);var w=function(t,e,i,n,r){var o=new Le(t,i,sa);return o.multi=[],o.index=e,o.componentProviders=0,ys(o,r,n&&!i),o}(r?_s:ws,i.length,r,n,c);!r&&b&&(i[m].providerFactory=w),ms(a,t,e.length,0),e.push(u),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(w),s.push(w)}else ms(a,t,v>-1?v:m,ys(i[r?m:v],c,!r&&n));!r&&n&&b&&i[m].componentProviders++}}}function ms(t,e,i,n){var r=zo(e);if(r||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){var s=a.indexOf(i);-1===s?a.push(i,[n,o]):a[s+1].push(n,o)}else a.push(i,o)}}}function ys(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function bs(t,e,i,n){for(var r=i;r1&&void 0!==arguments[1]?arguments[1]:[];return function(i){i.providersResolver=function(i,n){return function(t,e,i){var n=$t();if(n.firstCreatePass){var r=St(t);vs(i,n.data,n.blueprint,r,!0),vs(e,n.data,n.blueprint,r,!1)}}(i,n?n(t):t,e)}}}var Ts=function t(){v(this,t)},Cs=function(){function t(){v(this,t)}return y(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(A(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),Ss=function(){var t=function t(){v(this,t)};return t.NULL=new Cs,t}();function Es(){}function xs(t,e){return new Is(qt(t,e))}var Rs=function(){return xs(ee(),Xt())},Is=function(){var t=function t(e){v(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=Rs,t}();function Os(t){return t instanceof Is?t.nativeElement:t}var Ps=function t(){v(this,t)},Ds=function(){var t=function t(){v(this,t)};return t.__NG_ELEMENT_ID__=function(){return Ms()},t}(),Ms=function(){var t=Xt(),e=jt(ee().index,t);return function(t){return t[11]}(_t(e)?e:t)},Ls=function(){var t=function t(){v(this,t)};return t.\u0275prov=P({token:t,providedIn:"root",factory:function(){return null}}),t}(),Ns=function t(e){v(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},zs=new Ns("12.0.5"),Fs=function(){function t(){v(this,t)}return y(t,[{key:"supports",value:function(t){return Jo(t)}},{key:"create",value:function(t){return new Bs(t)}}]),t}(),Zs=function(t,e){return e},Bs=function(){function t(e){v(this,t),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Zs}return y(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,i=this._removalsHead,n=0,r=null;e||i;){var o=!i||e&&e.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==i;){var a=e[i.index];if(null!==a&&n.push(Zt(a)),At(a))for(var s=10;s-1&&(Jn(t,i),bi(e,i))}this._attachedToViewContainer=!1}Qn(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){Vr(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){ho(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){fo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,i){se(!0);try{fo(t,e,i)}finally{se(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,lr(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),t}(),tu=function(t){a(i,t);var e=u(i);function i(t){var n;return v(this,i),(n=e.call(this,t))._view=t,n}return y(i,[{key:"detectChanges",value:function(){po(this._view)}},{key:"checkNoChanges",value:function(){!function(t){se(!0);try{po(t)}finally{se(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),i}($s),eu=function(t){return function(t,e,i){if(Tt(t)&&!i){var n=jt(t.index,e);return new $s(n,n)}return 47&t.type?new $s(e[16],e):null}(ee(),Xt(),16==(16&t))},iu=function(){var t=function t(){v(this,t)};return t.__NG_ELEMENT_ID__=eu,t}(),nu=[new Gs],ru=new Js([new Fs]),ou=new Ws(nu),au=function(){return cu(ee(),Xt())},su=function(){var t=function t(){v(this,t)};return t.__NG_ELEMENT_ID__=au,t}(),uu=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this))._declarationLView=t,o._declarationTContainer=n,o.elementRef=r,o}return y(i,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,i=Lr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];var n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),Fr(e,i,t),new $s(i)}}]),i}(su);function cu(t,e){return 4&t.type?new uu(e,t,xs(t,e)):null}var lu=function t(){v(this,t)},hu=function t(){v(this,t)},du=function(){return mu(ee(),Xt())},fu=function(){var t=function t(){v(this,t)};return t.__NG_ELEMENT_ID__=du,t}(),pu=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this))._lContainer=t,o._hostTNode=n,o._hostLView=r,o}return y(i,[{key:"element",get:function(){return xs(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new ui(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var t=Qe(this._hostTNode,this._hostLView);if(qe(t)){var e=He(t,this._hostLView),i=Ue(t);return new ui(e[1].data[i+8],e)}return new ui(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){var e=gu(this._lContainer);return null!==e&&e[t]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(t,e,i){var n=t.createEmbeddedView(e||{});return this.insert(n,i),n}},{key:"createComponent",value:function(t,e,i,n,r){var o=i||this.parentInjector;if(!r&&null==t.ngModule&&o){var a=o.get(lu,null);a&&(r=a)}var s=t.create(o,n,void 0,r);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,r=n[1];if(At(n[3])){var o=this.indexOf(t);if(-1!==o)this.detach(o);else{var a=n[3],s=new i(a,a[6],a[3]);s.detach(s.indexOf(t))}}var u=this._adjustIndex(e),c=this._lContainer;!function(t,e,i,n){var r=10+n,o=i.length;n>0&&(i[r-1][4]=e),n1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}}]),i}(fu);function gu(t){return t[8]}function vu(t){return t[8]||(t[8]=[])}function mu(t,e){var i,n=e[t.index];if(At(n))i=n;else{var r;if(8&t.type)r=Zt(n);else{var o=e[11];r=o.createComment("");var a=qt(t,e);$n(o,ir(o,a),r,function(t,e){return zt(t)?t.nextSibling(e):e.nextSibling}(o,a),!1)}e[t.index]=i=ao(n,e,r,t),lo(e,i)}return new pu(i,t,e)}var yu={},bu=function(t){a(i,t);var e=u(i);function i(t){var n;return v(this,i),(n=e.call(this)).ngModule=t,n}return y(i,[{key:"resolveComponentFactory",value:function(t){var e=bt(t);return new Au(e,this.ngModule)}}]),i}(Ss);function wu(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push({propName:t[i],templateName:i});return e}var _u=new fi("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Ln}}),Au=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this)).componentDef=t,r.ngModule=n,r.componentType=t.type,r.selector=t.selectors.map(Tr).join(","),r.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],r.isBoundToModule=!!n,r}return y(i,[{key:"inputs",get:function(){return wu(this.componentDef.inputs)}},{key:"outputs",get:function(){return wu(this.componentDef.outputs)}},{key:"create",value:function(t,e,i,n){var r,o,a=(n=n||this.ngModule)?function(t,e){return{get:function(i,n,r){var o=t.get(i,yu,r);return o!==yu||n===yu?o:e.get(i,n,r)}}}(t,n.injector):t,s=a.get(Ps,Ft),u=a.get(Ls,null),c=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=i?function(t,e,i){if(zt(t))return t.selectRootElement(e,i===V.ShadowDom);var n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(c,i,this.componentDef.encapsulation):Vn(s.createRenderer(null,this.componentDef),l,function(t){var e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:Ln,clean:vo,playerHandler:null,flags:0},p=Yr(0,null,null,1,0,null,null,null,null,null),g=Lr(null,p,f,d,null,null,s,c,u,a);ye(g);try{var v=function(t,e,i,n,r,o){var a=i[1];i[20]=t;var s=Nr(a,20,2,"#host",null),u=s.mergedAttrs=e.hostAttrs;null!==u&&(ko(s,u,!0),null!==t&&(Ne(r,t,u),null!==s.classes&&fr(r,t,s.classes),null!==s.styles&&dr(r,t,s.styles)));var c=n.createRenderer(t,e),l=Lr(i,Gr(e),null,e.onPush?64:16,i[20],s,n,c,null,null);return a.firstCreatePass&&(We(Ve(s,i),a,e.type),$r(a,s),eo(s,i.length,1)),lo(i,l),i[20]=l}(h,this.componentDef,g,s,c);if(h)if(i)Ne(c,h,["ng-version",zs.full]);else{var m=function(t){for(var e=[],i=[],n=1,r=2;n0&&fr(c,h,b.join(" "))}if(o=Ut(p,20),void 0!==e)for(var w=o.projection=[],_=0;_1&&void 0!==arguments[1]?arguments[1]:Zo.THROW_IF_NOT_FOUND,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U.Default;return t===Zo||t===lu||t===Co?this:this._r3Injector.get(t,e,i)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),i}(lu),Su=function(t){a(i,t);var e=u(i);function i(t){var n,r,o;return v(this,i),(n=e.call(this)).moduleType=t,null!==wt(t)&&(r=t,o=new Set,function t(e){var i=wt(e,!0),n=i.id;null!==n&&(function(t,e,i){if(e&&e!==i)throw new Error("Duplicate module registered for ".concat(t," - ").concat(A(e)," vs ").concat(A(e.name)))}(n,Tu.get(n),e),Tu.set(n,e));var r,a=f(Zn(i.imports));try{for(a.s();!(r=a.n()).done;){var s=r.value;o.has(s)||(o.add(s),t(s))}}catch(u){a.e(u)}finally{a.f()}}(r)),n}return y(i,[{key:"create",value:function(t){return new Cu(this.moduleType,t)}}]),i}(hu);function Eu(t,e,i){var n=ue()+t,r=Xt();return r[n]===Cr?Wo(r,n,i?e.call(i):e()):function(t,e){return t[e]}(r,n)}function xu(t,e,i,n){return Pu(Xt(),ue(),t,e,i,n)}function Ru(t,e,i,n,r){return Du(Xt(),ue(),t,e,i,n,r)}function Iu(t,e,i,n,r,o){return Mu(Xt(),ue(),t,e,i,n,r,o)}function Ou(t,e){var i=t[e];return i===Cr?void 0:i}function Pu(t,e,i,n,r,o){var a=e+i;return Xo(t,a,r)?Wo(t,a+1,o?n.call(o,r):n(r)):Ou(t,a+1)}function Du(t,e,i,n,r,o,a){var s=e+i;return $o(t,s,r,o)?Wo(t,s+2,a?n.call(a,r,o):n(r,o)):Ou(t,s+2)}function Mu(t,e,i,n,r,o,a,s){var u=e+i;return ta(t,u,r,o,a)?Wo(t,u+3,s?n.call(s,r,o,a):n(r,o,a)):Ou(t,u+3)}function Lu(t,e){var i,n=$t(),r=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(var i=e.length-1;i>=0;i--){var n=e[i];if(t===n.name)return n}throw new x("302","The pipe '".concat(t,"' could not be found!"))}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];var o=i.factory||(i.factory=Et(i.type)),a=H(sa);try{var s=Ge(!1),u=o();return Ge(s),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(n,Xt(),r,u),u}finally{H(a)}}function Nu(t,e,i){var n=t+20,r=Xt(),o=Ht(r,n);return Bu(r,Zu(r,n)?Pu(r,ue(),e,o.transform,i,o):o.transform(i))}function zu(t,e,i,n){var r=t+20,o=Xt(),a=Ht(o,r);return Bu(o,Zu(o,r)?Du(o,ue(),e,a.transform,i,n,a):a.transform(i,n))}function Fu(t,e,i,n,r){var o=t+20,a=Xt(),s=Ht(a,o);return Bu(a,Zu(a,o)?Mu(a,ue(),e,s.transform,i,n,r,s):s.transform(i,n,r))}function Zu(t,e){return t[1].data[e].pure}function Bu(t,e){return Ko.isWrapped(e)&&(e=Ko.unwrap(e),t[ce()]=Cr),e}function qu(t){return function(e){setTimeout(t,void 0,e)}}var Uu=function(t){a(i,t);var e=u(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v(this,i),(t=e.call(this)).__isAsync=n,t}return y(i,[{key:"emit",value:function(t){n(d(i.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,r){var o,a,s,u=t,c=e||function(){return null},l=r;if(t&&"object"==typeof t){var h=t;u=null===(o=h.next)||void 0===o?void 0:o.bind(h),c=null===(a=h.error)||void 0===a?void 0:a.bind(h),l=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(c=qu(c),u&&(u=qu(u)),l&&(l=qu(l)));var f=n(d(i.prototype),"subscribe",this).call(this,{next:u,error:c,complete:l});return t instanceof p.w&&t.add(f),f}}]),i}(h.xQ);function Hu(){return this._results[Vo()]()}var ju=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];v(this,t),this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var i=Vo(),n=t.prototype;n[i]||(n[i]=Hu)}return y(t,[{key:"changes",get:function(){return this._changes||(this._changes=new Uu)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,e){this.dirty=!1;var i=vi(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];v(this,t),this.queries=e}return y(t,[{key:"createEmbeddedView",value:function(e){var i=e.queries;if(null!==i){for(var n=null!==e.contentQueries?e.contentQueries[0]:i.length,r=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;v(this,t),this.predicate=e,this.flags=i,this.read=n},Ku=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v(this,t),this.queries=e}return y(t,[{key:"elementStart",value:function(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:-1;v(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}return y(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,i){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,i),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var e=this._declarationNodeIndex,i=t.parent;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var i=this.metadata.predicate;if(Array.isArray(i))for(var n=0;n0)n.push(a[s/2]);else{for(var c=o[s+1],l=e[-u],h=10;h0&&(r=setTimeout(function(){n._callbacks=n._callbacks.filter(function(t){return t.timeoutId!==r}),t(n._didWork,n.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:i})}},{key:"whenStable",value:function(t,e,i){if(i&&!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(t,e,i),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,i){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ii(Rc))},t.\u0275prov=P({token:t,factory:t.\u0275fac}),t}(),zc=function(){var t=function(){function t(){v(this,t),this._applications=new Map,Bc.addToWindow(this)}return y(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Bc.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=P({token:t,factory:t.\u0275fac}),t}();function Fc(t){Bc=t}var Zc,Bc=new(function(){function t(){v(this,t)}return y(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,i){return null}}]),t}()),qc=!0,Uc=!1;function Hc(){return Uc=!0,qc}function jc(){if(Uc)throw new Error("Cannot enable prod mode after platform setup.");qc=!1}var Gc=new fi("AllowMultipleToken"),Yc=function t(e,i){v(this,t),this.name=e,this.token=i};function Vc(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(e),r=new fi(n);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Kc();if(!o||o.injector.get(Gc,!1))if(t)t(i.concat(e).concat({provide:r,useValue:!0}));else{var a=i.concat(e).concat({provide:r,useValue:!0},{provide:Eo,useValue:"platform"});!function(t){if(Zc&&!Zc.destroyed&&!Zc.injector.get(Gc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Zc=t.get(Jc);var e=t.get(fc,null);e&&e.forEach(function(t){return t()})}(Zo.create({providers:a,name:n}))}return function(t){var e=Kc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Kc(){return Zc&&!Zc.destroyed?Zc:null}var Jc=function(){var t=function(){function t(e){v(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return y(t,[{key:"bootstrapModuleFactory",value:function(t,e){var i,n,r=this,o=(i=e?e.ngZone:void 0,n={ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1},"noop"===i?new Lc:("zone.js"===i?void 0:i)||new Rc({enableLongStackTrace:Hc(),shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)})),a=[{provide:Rc,useValue:o}];return o.run(function(){var e=Zo.create({providers:a,parent:r.injector,name:t.moduleType.name}),i=t.create(e),n=i.injector.get(Mn,null);if(!n)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var t=o.onError.subscribe({next:function(t){n.handleError(t)}});i.onDestroy(function(){Xc(r._modules,i),t.unsubscribe()})}),function(t,e,n){try{var o=((a=i.injector.get(cc)).runInitializers(),a.donePromise.then(function(){return gs(i.injector.get(mc,"en-US")||"en-US"),r._moduleDoBootstrap(i),i}));return ma(o)?o.catch(function(i){throw e.runOutsideAngular(function(){return t.handleError(i)}),i}):o}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(n,o)})}},{key:"bootstrapModule",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Qc({},i);return function(t,e,i){var n=new Su(i);return Promise.resolve(n)}(0,0,t).then(function(t){return e.bootstrapModuleFactory(t,n)})}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(Wc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(A(t.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));t.instance.ngDoBootstrap(e)}this._modules.push(t)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ii(Zo))},t.\u0275prov=P({token:t,factory:t.\u0275fac}),t}();function Qc(t,e){return Array.isArray(e)?e.reduce(Qc,t):Object.assign(Object.assign({},t),e)}var Wc=function(){var t=function(){function t(e,i,n,r,o){var a=this;v(this,t),this._zone=e,this._injector=i,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var s=new g.y(function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){t.next(a._stable),t.complete()})}),u=new g.y(function(t){var e;a._zone.runOutsideAngular(function(){e=a._zone.onStable.subscribe(function(){Rc.assertNotInAngularZone(),xc(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))})})});var i=a._zone.onUnstable.subscribe(function(){Rc.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),i.unsubscribe()}});this.isStable=(0,m.T)(s,u.pipe((0,b.B)()))}return y(t,[{key:"bootstrap",value:function(t,e){var i,n=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");i=t instanceof Ts?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);var r=i.isBoundToModule?void 0:this._injector.get(lu),o=i.create(Zo.NULL,[],e||i.selector,r),a=o.location.nativeElement,s=o.injector.get(Nc,null),u=s&&o.injector.get(zc);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){n.detachView(o.hostView),Xc(n.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,i=f(this._views);try{for(i.s();!(e=i.n()).done;){e.value.detectChanges()}}catch(n){i.e(n)}finally{i.f()}}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Xc(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(gc,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(t){return t.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ii(Rc),Ii(Zo),Ii(Mn),Ii(Ss),Ii(cc))},t.\u0275prov=P({token:t,factory:t.\u0275fac}),t}();function Xc(t,e){var i=t.indexOf(e);i>-1&&t.splice(i,1)}var $c=function t(){v(this,t)},tl=function t(){v(this,t)},el={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},il=function(){var t=function(){function t(e,i){v(this,t),this._compiler=e,this._config=i||el}return y(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,i=o(t.split("#"),2),n=i[0],r=i[1];return void 0===r&&(r="default"),c(27622)(n).then(function(t){return t[r]}).then(function(t){return nl(t,n,r)}).then(function(t){return e._compiler.compileModuleAsync(t)})}},{key:"loadFactory",value:function(t){var e=o(t.split("#"),2),i=e[0],n=e[1],r="NgFactory";return void 0===n&&(n="default",r=""),c(27622)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(t){return t[n+r]}).then(function(t){return nl(t,i,n)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ii(Sc),Ii(tl,8))},t.\u0275prov=P({token:t,factory:t.\u0275fac}),t}();function nl(t,e,i){if(!t)throw new Error("Cannot find '".concat(i,"' in '").concat(e,"'"));return t}var rl=function(t){return null},ol=Vc(null,"core",[{provide:pc,useValue:"unknown"},{provide:Jc,deps:[Zo]},{provide:zc,deps:[]},{provide:vc,deps:[]}]),al=[{provide:Wc,useClass:Wc,deps:[Rc,Zo,Mn,Ss,cc]},{provide:_u,deps:[Rc],useFactory:function(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:cc,useClass:cc,deps:[[new zi,uc]]},{provide:Sc,useClass:Sc,deps:[]},hc,{provide:Js,useFactory:function(){return ru},deps:[]},{provide:Ws,useFactory:function(){return ou},deps:[]},{provide:mc,useFactory:function(t){return gs(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new Ni(mc),new zi,new Fi]]},{provide:yc,useValue:"USD"}],sl=function(){var t=function t(e){v(this,t)};return t.\u0275fac=function(e){return new(e||t)(Ii(Wc))},t.\u0275mod=pt({type:t}),t.\u0275inj=D({providers:al}),t}()},16073:function(t,e,i){"use strict";i.d(e,{Zs:function(){return Ht},gN:function(){return H},Fj:function(){return b},qu:function(){return Jt},NI:function(){return dt},oH:function(){return Et},u:function(){return Ot},sg:function(){return Rt},u5:function(){return Vt},Cf:function(){return A},JU:function(){return p},a5:function(){return j},JJ:function(){return Y},JL:function(){return V},F:function(){return mt},On:function(){return wt},YN:function(){return Lt},wV:function(){return kt},c5:function(){return Gt},UX:function(){return Kt},Q7:function(){return Ut},EJ:function(){return Mt},kI:function(){return C},_Y:function(){return _t},Kr:function(){return Zt}});var n=i(31572),o=i(61511),s=i(19764),c=i(3148),l=i(79996),h=function(){var t=function(){function t(e,i){v(this,t),this._renderer=e,this._elementRef=i,this.onChange=function(t){},this.onTouched=function(){}}return y(t,[{key:"setProperty",value:function(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"setDisabledState",value:function(t){this.setProperty("disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t}),t}(),d=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(h);return e.\u0275fac=function(i){return(t||(t=n.n5z(e)))(i||e)},e.\u0275dir=n.lG2({type:e,features:[n.qOj]}),e}(),p=new n.OlP("NgValueAccessor"),g={provide:p,useExisting:(0,n.Gpc)(function(){return b}),multi:!0},m=new n.OlP("CompositionEventMode"),b=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r){var a,s;return v(this,i),(a=e.call(this,t,n))._compositionMode=r,a._composing=!1,null==a._compositionMode&&(a._compositionMode=(s=(0,o.q)()?(0,o.q)().getUserAgent():"",!/android (\d+)/.test(s.toLowerCase()))),a}return y(i,[{key:"writeValue",value:function(t){this.setProperty("value",null==t?"":t)}},{key:"_handleInput",value:function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}]),i}(h);return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(m,8))},t.\u0275dir=n.lG2({type:t,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(t,e){1&t&&n.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[n._Bn([g]),n.qOj]}),t}();function w(t){return null==t||0===t.length}function _(t){return null!=t&&"number"==typeof t.length}var A=new n.OlP("NgValidators"),k=new n.OlP("NgAsyncValidators"),T=/^(?=.{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])?)*$/,C=function(){function t(){v(this,t)}return y(t,null,[{key:"min",value:function(t){return function(t){return function(e){if(w(e.value)||w(t))return null;var i=parseFloat(e.value);return!isNaN(i)&&it?{max:{max:t,actual:e.value}}:null}}(t)}},{key:"required",value:function(t){return S(t)}},{key:"requiredTrue",value:function(t){return E(t)}},{key:"email",value:function(t){return function(t){return w(t.value)||T.test(t.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return function(t){return function(e){return w(e.value)||!_(e.value)?null:e.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}(t)}},{key:"pattern",value:function(t){return x(t)}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){return L(t)}},{key:"composeAsync",value:function(t){return z(t)}}]),t}();function S(t){return w(t.value)?{required:!0}:null}function E(t){return!0===t.value?null:{required:!0}}function x(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),function(t){if(w(t.value))return null;var n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}):R;var e,i}function R(t){return null}function I(t){return null!=t}function O(t){var e=(0,n.QGY)(t)?(0,s.D)(t):t;return(0,n.CqO)(e),e}function P(t){var e={};return t.forEach(function(t){e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function D(t,e){return e.map(function(e){return e(t)})}function M(t){return t.map(function(t){return function(t){return!t.validate}(t)?t:function(e){return t.validate(e)}})}function L(t){if(!t)return null;var e=t.filter(I);return 0==e.length?null:function(t){return P(D(t,e))}}function N(t){return null!=t?L(M(t)):null}function z(t){if(!t)return null;var e=t.filter(I);return 0==e.length?null:function(t){var i=D(t,e).map(O);return(0,c.D)(i).pipe((0,l.U)(P))}}function F(t){return null!=t?z(M(t)):null}function Z(t,e){return null===t?[e]:Array.isArray(t)?[].concat(r(t),[e]):[t,e]}function B(t){return t._rawValidators}function q(t){return t._rawAsyncValidators}var U=function(){var t=function(){function t(){v(this,t),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return y(t,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=N(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=F(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(t){this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t}),t}(),H=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),i}(U);return e.\u0275fac=function(i){return(t||(t=n.n5z(e)))(i||e)},e.\u0275dir=n.lG2({type:e,features:[n.qOj]}),e}(),j=function(t){a(i,t);var e=u(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t}return i}(U),G=function(){function t(e){v(this,t),this._cd=e}return y(t,[{key:"is",value:function(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}]),t}(),Y=function(){var t=function(t){a(i,t);var e=u(i);function i(t){return v(this,i),e.call(this,t)}return i}(G);return t.\u0275fac=function(e){return new(e||t)(n.Y36(j,2))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t}(),V=function(){var t=function(t){a(i,t);var e=u(i);function i(t){return v(this,i),e.call(this,t)}return i}(G);return t.\u0275fac=function(e){return new(e||t)(n.Y36(H,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t}();function K(t,e){return[].concat(r(e.path),[t])}function J(t,e){X(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(i){t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&tt(t,e)})}(t,e),function(t,e){var i=function(t,i){e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(function(){t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&tt(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){var i=function(t){e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(function(){t._unregisterOnDisabledChange(i)})}}(t,e)}function Q(t,e){var i=function(){};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),$(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(function(){}))}function W(t,e){t.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function X(t,e){var i=B(t);null!==e.validator?t.setValidators(Z(i,e.validator)):"function"==typeof i&&t.setValidators([i]);var n=q(t);null!==e.asyncValidator?t.setAsyncValidators(Z(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);var r=function(){return t.updateValueAndValidity()};W(e._rawValidators,r),W(e._rawAsyncValidators,r)}function $(t,e){var i=!1;if(null!==t){if(null!==e.validator){var n=B(t);if(Array.isArray(n)&&n.length>0){var r=n.filter(function(t){return t!==e.validator});r.length!==n.length&&(i=!0,t.setValidators(r))}}if(null!==e.asyncValidator){var o=q(t);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(t){return t!==e.asyncValidator});a.length!==o.length&&(i=!0,t.setAsyncValidators(a))}}}var s=function(){};return W(e._rawValidators,s),W(e._rawAsyncValidators,s),i}function tt(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function et(t,e){X(t,e)}function it(t,e){if(!t.hasOwnProperty("model"))return!1;var i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function nt(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function rt(t,e){return e?(Array.isArray(e),e.forEach(function(t){t.constructor===b?i=t:Object.getPrototypeOf(t.constructor)===d?n=t:r=t}),r||n||i||null):null;var i,n,r}function ot(t,e){var i=t.indexOf(e);i>-1&&t.splice(i,1)}function at(t){return(lt(t)?t.validators:t)||null}function st(t){return Array.isArray(t)?N(t):t||null}function ut(t,e){return(lt(e)?e.asyncValidators:t)||null}function ct(t){return Array.isArray(t)?F(t):t||null}function lt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var ht=function(){function t(e,i){v(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=i,this._composedValidatorFn=st(this._rawValidators),this._composedAsyncValidatorFn=ct(this._rawAsyncValidators)}return y(t,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=st(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ct(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var i=O(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(function(i){e._hasOwnPendingAsyncValidator=!1,e.setErrors(i,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var n=t;return e.forEach(function(t){n=n instanceof ft?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof pt&&n.at(t)||null}),n}(this,t)}},{key:"getError",value:function(t,e){var i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){lt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),t}(),dt=function(t){a(i,t);var e=u(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return v(this,i),(t=e.call(this,at(r),ut(o,r)))._onChange=[],t._applyFormState(n),t._setUpdateStrategy(r),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!t.asyncValidator}),t}return y(i,[{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==i.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==i.emitViewToModelChange)}),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){ot(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){ot(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),i}(ht),ft=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,at(n),ut(r,n))).controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return y(i,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(n){e._throwIfControlMissing(n),e.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(Object.keys(t).forEach(function(n){e.controls[n]&&e.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(i,n){i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,i){return t[i]=e instanceof dt?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(i){var n=e.controls[i];n&&t(n,i)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,i=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,i){if(void 0===t[i])throw new Error("Must supply a value for form control with name: '".concat(i,"'."))})}}]),i}(ht),pt=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,at(n),ut(r,n))).controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return y(i,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}},{key:"removeAt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}},{key:"setControl",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,n){e._throwIfControlMissing(n),e.at(n).setValue(t,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(t.forEach(function(t,n){e.at(n)&&e.at(n).patchValue(t,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(i,n){i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof dt?t.value:t.getRawValue()})}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,i){t(e,i)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,i){if(void 0===t[i])throw new Error("Must supply a value for form control at index: ".concat(i,"."))})}},{key:"_allControlsDisabled",value:function(){var t,e=f(this.controls);try{for(e.s();!(t=e.n()).done;){if(t.value.enabled)return!1}}catch(i){e.e(i)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}]),i}(ht),gt={provide:H,useExisting:(0,n.Gpc)(function(){return mt})},vt=Promise.resolve(null),mt=function(){var t=function(t){a(i,t);var e=u(i);function i(t,r){var o;return v(this,i),(o=e.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new n.vpe,o.form=new ft({},N(t),F(r)),o}return y(i,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(t){var e=this;vt.then(function(){var i=e._findContainer(t.path);t.control=i.registerControl(t.name,t.control),J(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;vt.then(function(){var i=e._findContainer(t.path);i&&i.removeControl(t.name),ot(e._directives,t)})}},{key:"addFormGroup",value:function(t){var e=this;vt.then(function(){var i=e._findContainer(t.path),n=new ft({});et(n,t),i.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(t){var e=this;vt.then(function(){var i=e._findContainer(t.path);i&&i.removeControl(t.name)})}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var i=this;vt.then(function(){i.form.get(t.path).setValue(e)})}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,nt(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}}]),i}(H);return t.\u0275fac=function(e){return new(e||t)(n.Y36(A,10),n.Y36(k,10))},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([gt]),n.qOj]}),t}(),yt={provide:j,useExisting:(0,n.Gpc)(function(){return wt})},bt=Promise.resolve(null),wt=function(){var t=function(t){a(i,t);var e=u(i);function i(t,r,o,a){var s;return v(this,i),(s=e.call(this)).control=new dt,s._registered=!1,s.update=new n.vpe,s._parent=t,s._setValidators(r),s._setAsyncValidators(o),s.valueAccessor=rt(0,a),s}return y(i,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),it(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?K(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){J(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(t){var e=this;bt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(t){var e=this,i=t.isDisabled.currentValue,n=""===i||i&&"false"!==i;bt.then(function(){n&&!e.control.disabled?e.control.disable():!n&&e.control.disabled&&e.control.enable()})}}]),i}(j);return t.\u0275fac=function(e){return new(e||t)(n.Y36(H,9),n.Y36(A,10),n.Y36(k,10),n.Y36(p,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n._Bn([yt]),n.qOj,n.TTD]}),t}(),_t=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),At={provide:p,useExisting:(0,n.Gpc)(function(){return kt}),multi:!0},kt=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"writeValue",value:function(t){this.setProperty("value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}}]),i}(d);return e.\u0275fac=function(i){return(t||(t=n.n5z(e)))(i||e)},e.\u0275dir=n.lG2({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&n.NdJ("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[n._Bn([At]),n.qOj]}),e}(),Tt=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t}(),Ct=new n.OlP("NgModelWithFormControlWarning"),St={provide:j,useExisting:(0,n.Gpc)(function(){return Et})},Et=function(){var t=function(t){a(i,t);var e=u(i);function i(t,r,o,a){var s;return v(this,i),(s=e.call(this))._ngModelWarningConfig=a,s.update=new n.vpe,s._ngModelWarningSent=!1,s._setValidators(t),s._setAsyncValidators(r),s.valueAccessor=rt(0,o),s}return y(i,[{key:"isDisabled",set:function(t){}},{key:"ngOnChanges",value:function(t){if(this._isControlChanged(t)){var e=t.form.previousValue;e&&Q(e,this,!1),J(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}it(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&Q(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_isControlChanged",value:function(t){return t.hasOwnProperty("form")}}]),i}(j);return t.\u0275fac=function(e){return new(e||t)(n.Y36(A,10),n.Y36(k,10),n.Y36(p,10),n.Y36(Ct,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n._Bn([St]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t}(),xt={provide:H,useExisting:(0,n.Gpc)(function(){return Rt})},Rt=function(){var t=function(t){a(i,t);var e=u(i);function i(t,r){var o;return v(this,i),(o=e.call(this)).validators=t,o.asyncValidators=r,o.submitted=!1,o._onCollectionChange=function(){return o._updateDomValue()},o.directives=[],o.form=null,o.ngSubmit=new n.vpe,o._setValidators(t),o._setAsyncValidators(r),o}return y(i,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&($(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return J(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){Q(t.control||null,t,!1),ot(this.directives,t)}},{key:"addFormGroup",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormGroup",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormArray",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,nt(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach(function(e){var i=e.control,n=t.form.get(e.path);i!==n&&(Q(i||null,e),n instanceof dt&&(J(n,e),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(t){var e=this.form.get(t.path);et(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(t){if(this.form){var e=this.form.get(t.path);e&&function(t,e){return $(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){X(this.form,this),this._oldForm&&$(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),i}(H);return t.\u0275fac=function(e){return new(e||t)(n.Y36(A,10),n.Y36(k,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([xt]),n.qOj,n.TTD]}),t}(),It={provide:j,useExisting:(0,n.Gpc)(function(){return Ot})},Ot=function(){var t=function(t){a(i,t);var e=u(i);function i(t,r,o,a,s){var u;return v(this,i),(u=e.call(this))._ngModelWarningConfig=s,u._added=!1,u.update=new n.vpe,u._ngModelWarningSent=!1,u._parent=t,u._setValidators(r),u._setAsyncValidators(o),u.valueAccessor=rt(0,a),u}return y(i,[{key:"isDisabled",set:function(t){}},{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),it(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"path",get:function(){return K(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),i}(j);return t.\u0275fac=function(e){return new(e||t)(n.Y36(H,13),n.Y36(A,10),n.Y36(k,10),n.Y36(p,10),n.Y36(Ct,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n._Bn([It]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t}(),Pt={provide:p,useExisting:(0,n.Gpc)(function(){return Mt}),multi:!0};function Dt(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var Mt=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._optionMap=new Map,t._idCounter=0,t._compareWith=Object.is,t}return y(i,[{key:"compareWith",set:function(t){this._compareWith=t}},{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this.setProperty("selectedIndex",-1);var i=Dt(e,t);this.setProperty("value",i)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(i){e.value=e._getOptionValue(i),t(e.value)}}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,i=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(i){var n=[];if(void 0!==i.selectedOptions)for(var r=i.selectedOptions,o=0;o1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),r=null,o=null;return null!=i&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(i)?(r=null!=i.validators?i.validators:null,o=null!=i.asyncValidators?i.asyncValidators:null,e=null!=i.updateOn?i.updateOn:void 0):(r=null!=i.validator?i.validator:null,o=null!=i.asyncValidator?i.asyncValidator:null)),new ft(n,{asyncValidators:o,updateOn:e,validators:r})}},{key:"control",value:function(t,e,i){return new dt(t,e,i)}},{key:"array",value:function(t,e,i){var n=this,r=t.map(function(t){return n._createControl(t)});return new pt(r,e,i)}},{key:"_reduceControls",value:function(t){var e=this,i={};return Object.keys(t).forEach(function(n){i[n]=e._createControl(t[n])}),i}},{key:"_createControl",value:function(t){return t instanceof dt||t instanceof ft||t instanceof pt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:Kt}),t}()},40084:function(t,e,i){"use strict";i.d(e,{XC:function(){return q},Bb:function(){return V},ZL:function(){return Y}});var n=i(24621),o=i(19861),s=i(11353),c=i(31572),l=i(71522),h=i(87570),d=i(55959),f=i(31450),p=i(31906),g=i(40878),m=i(87254),b=i(61511),w=i(2522),_=i(4253),A=i(75842),k=i(26899),T=i(16073),C=i(66283),S=i(90611),E=i(44689),x=i(43835),R=i(79996),I=i(66599),O=i(82628),P=i(22526),D=["panel"];function M(t,e){if(1&t&&(c.TgZ(0,"div",0,1),c.Hsn(2),c.qZA()),2&t){var i=e.id,n=c.oxw();c.Q6J("id",n.id)("ngClass",n._classList),c.uIk("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(i))}}var L=["*"],N=0,z=function t(e,i){v(this,t),this.source=e,this.option=i},F=(0,l.Kr)(function t(){v(this,t)}),Z=new c.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),B=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this))._changeDetectorRef=t,a._elementRef=n,a._activeOptionChanges=h.w.EMPTY,a.showPanel=!1,a._isOpen=!1,a.displayWith=null,a.optionSelected=new c.vpe,a.opened=new c.vpe,a.closed=new c.vpe,a.optionActivated=new c.vpe,a._classList={},a.id="mat-autocomplete-"+N++,a.inertGroups=(null==o?void 0:o.SAFARI)||!1,a._autoActiveFirstOption=!!r.autoActiveFirstOption,a}return y(i,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=(0,o.Ig)(t)}},{key:"classList",set:function(t){this._classList=t&&t.length?(0,o.du)(t).reduce(function(t,e){return t[e]=!0,t},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new n.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(e){t.optionActivated.emit({source:t,option:t.options.toArray()[e]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(t){var e=new z(this,t);this.optionSelected.emit(e)}},{key:"_getPanelAriaLabelledby",value:function(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_setVisibilityClasses",value:function(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}]),i}(F);return t.\u0275fac=function(e){return new(e||t)(c.Y36(c.sBO),c.Y36(c.SBq),c.Y36(Z),c.Y36(s.t4))},t.\u0275dir=c.lG2({type:t,viewQuery:function(t,e){var i;(1&t&&(c.Gf(c.Rgc,7),c.Gf(D,5)),2&t)&&(c.iGM(i=c.CRH())&&(e.template=i.first),c.iGM(i=c.CRH())&&(e.panel=i.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[c.qOj]}),t}(),q=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._visibleClass="mat-autocomplete-visible",t._hiddenClass="mat-autocomplete-hidden",t}return i}(B);return e.\u0275fac=function(i){return(t||(t=c.n5z(e)))(i||e)},e.\u0275cmp=c.Xpm({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var n;(1&t&&(c.Suo(i,l.K7,5),c.Suo(i,l.ey,5)),2&t)&&(c.iGM(n=c.CRH())&&(e.optionGroups=n),c.iGM(n=c.CRH())&&(e.options=n))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[c._Bn([{provide:l.HF,useExisting:e}]),c.qOj],ngContentSelectors:L,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(c.F$t(),c.YNc(0,M,3,4,"ng-template"))},directives:[b.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),e}(),U=new c.OlP("mat-autocomplete-scroll-strategy"),H={provide:U,deps:[w.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},j={provide:T.JU,useExisting:(0,c.Gpc)(function(){return Y}),multi:!0},G=function(){var t=function(){function t(e,i,n,o,a,s,u,c,l,g,m){var y=this;v(this,t),this._element=e,this._overlay=i,this._viewContainerRef=n,this._zone=o,this._changeDetectorRef=a,this._dir=u,this._formField=c,this._document=l,this._viewportRuler=g,this._defaults=m,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=h.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new d.xQ,this._windowBlurHandler=function(){y._canOpenOnNextFocus=y._document.activeElement!==y._element.nativeElement||y.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,f.P)(function(){return y.autocomplete&&y.autocomplete.options?p.T.apply(void 0,r(y.autocomplete.options.map(function(t){return t.onSelectionChange}))):y._zone.onStable.pipe((0,S.q)(1),(0,E.w)(function(){return y.optionSelections}))}),this._scrollStrategy=s}return y(t,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=(0,o.Ig)(t)}},{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(function(){return e.addEventListener("blur",t._windowBlurHandler)})}},{key:"ngOnChanges",value:function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var t=this;return(0,p.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,x.h)(function(){return t._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,x.h)(function(){return t._overlayAttached})):(0,g.of)()).pipe((0,R.U)(function(t){return t instanceof l.rN?t:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var t=this;return(0,p.T)((0,m.R)(this._document,"click"),(0,m.R)(this._document,"auxclick"),(0,m.R)(this._document,"touchend")).pipe((0,x.h)(function(e){var i=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,n=t._formField?t._formField._elementRef.nativeElement:null,r=t.connectedTo?t.connectedTo.elementRef.nativeElement:null;return t._overlayAttached&&i!==t._element.nativeElement&&(!n||!n.contains(i))&&(!r||!r.contains(i))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(i)}))}},{key:"writeValue",value:function(t){var e=this;Promise.resolve(null).then(function(){return e._setTriggerValue(t)})}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this._element.nativeElement.disabled=t}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;if(e!==A.hY||(0,A.Vb)(t)||t.preventDefault(),this.activeOption&&e===A.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var i=this.autocomplete._keyManager.activeItem,n=e===A.LH||e===A.JH;this.panelOpen||e===A.Mf?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(t){var e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var t=this,e=this._zone.onStable.pipe((0,S.q)(1)),i=this.autocomplete.options.changes.pipe((0,I.b)(function(){return t._positionStrategy.reapplyLastPosition()}),(0,O.g)(0));return(0,p.T)(e,i).pipe((0,E.w)(function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions}),(0,S.q)(1)).subscribe(function(e){return t._setValueAndClose(e)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}},{key:"_setValueAndClose",value:function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(t){this.autocomplete.options.forEach(function(e){e!==t&&e.selected&&e.deselect()})}},{key:"_attachOverlay",value:function(){var t,e=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!(0,s.kV)(this._element.nativeElement));var i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new k.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,i.keydownEvents().subscribe(function(t){(t.keyCode===A.hY&&!(0,A.Vb)(t)||t.keyCode===A.LH&&(0,A.Vb)(t,"altKey"))&&(e._resetActiveItem(),e._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){e.panelOpen&&i&&i.updateSize({width:e._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var t;return new w.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}},{key:"_setStrategyPositions",value:function(t){var e,i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],n=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:n},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:n}];e="above"===this.position?r:"below"===this.position?i:[].concat(i,r),t.withPositions(e)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}},{key:"_scrollToOption",value:function(t){var e=this.autocomplete,i=(0,l.CB)(t,e.options,e.optionGroups);if(0===t&&1===i)e._setScrollTop(0);else if(e.panel){var n=e.options.toArray()[t];if(n){var r=n._getHostElement(),o=(0,l.jH)(r.offsetTop,r.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(o)}}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Y36(c.SBq),c.Y36(w.aV),c.Y36(c.s_b),c.Y36(c.R0b),c.Y36(c.sBO),c.Y36(U),c.Y36(P.Is,8),c.Y36(C.G_,9),c.Y36(b.K0,8),c.Y36(_.rL),c.Y36(Z,8))},t.\u0275dir=c.lG2({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[c.TTD]}),t}(),Y=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",t}return i}(G);return e.\u0275fac=function(i){return(t||(t=c.n5z(e)))(i||e)},e.\u0275dir=c.lG2({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&c.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&c.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[c._Bn([j]),c.qOj]}),e}(),V=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({providers:[H],imports:[[w.U8,l.Ng,l.BQ,b.ez],_.ZD,l.Ng,l.BQ]}),t}()},41050:function(t,e,i){"use strict";i.d(e,{k:function(){return d},g:function(){return f}});var n=i(71522),r=i(24621),o=i(19861),s=i(43490),c=i(31572),l=0,h=(0,n.Id)(function t(){v(this,t)}),d=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o,a){var s;return v(this,i),(s=e.call(this))._ngZone=t,s._elementRef=n,s._ariaDescriber=r,s._renderer=o,s._animationMode=a,s._hasContent=!1,s._color="primary",s._overlap=!0,s.position="above after",s.size="medium",s._id=l++,s}return y(i,[{key:"color",get:function(){return this._color},set:function(t){this._setColor(t),this._color=t}},{key:"overlap",get:function(){return this._overlap},set:function(t){this._overlap=(0,o.Ig)(t)}},{key:"description",get:function(){return this._description},set:function(t){if(t!==this._description){var e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}},{key:"hidden",get:function(){return this._hidden},set:function(t){this._hidden=(0,o.Ig)(t)}},{key:"isAbove",value:function(){return-1===this.position.indexOf("below")}},{key:"isAfter",value:function(){return-1===this.position.indexOf("before")}},{key:"ngOnChanges",value:function(t){var e=t.content;if(e){var i=e.currentValue;this._hasContent=null!=i&&"".concat(i).trim().length>0,this._updateTextContent()}}},{key:"ngOnDestroy",value:function(){var t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}},{key:"getBadgeElement",value:function(){return this._badgeElement}},{key:"_updateTextContent",value:function(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}},{key:"_createBadgeElement",value:function(){var t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id","mat-badge-content-".concat(this._id)),t.classList.add("mat-badge-content"),t.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){t.classList.add("mat-badge-active")})}):t.classList.add("mat-badge-active"),t}},{key:"_updateHostAriaDescription",value:function(t,e){var i=this._updateTextContent();e&&this._ariaDescriber.removeDescription(i,e),t&&this._ariaDescriber.describe(i,t)}},{key:"_setColor",value:function(t){if(t!==this._color){var e=this._elementRef.nativeElement.classList;this._color&&e.remove("mat-badge-".concat(this._color)),t&&e.add("mat-badge-".concat(t))}}},{key:"_clearExistingBadges",value:function(t){for(var e=this._elementRef.nativeElement,i=e.children.length;i--;){var n=e.children[i];n.classList.contains(t)&&e.removeChild(n)}}},{key:"_stringifyContent",value:function(){var t=this.content;return null==t?"":"".concat(t)}}]),i}(h);return t.\u0275fac=function(e){return new(e||t)(c.Y36(c.R0b),c.Y36(c.SBq),c.Y36(r.$s),c.Y36(c.Qsj),c.Y36(s.Qb,8))},t.\u0275dir=c.lG2({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&c.ekj("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[c.qOj,c.TTD]}),t}(),f=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[r.rt,n.BQ],n.BQ]}),t}()},15980:function(t,e,i){"use strict";i.d(e,{lW:function(){return p},ot:function(){return g}});var n=i(71522),r=i(43490),o=i(31572),s=i(24621),c=["mat-button",""],l=["*"],h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],d=(0,n.pj)((0,n.Id)((0,n.Kr)(function t(e){v(this,t),this._elementRef=e}))),p=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;v(this,i),(o=e.call(this,t))._focusMonitor=n,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=f(h);try{for(s.s();!(a=s.n()).done;){var u=a.value;o._hasHostAttributes(u)&&o._getHostElement().classList.add(u)}}catch(c){s.e(c)}finally{s.f()}return t.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return y(i,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t}(),g=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.si,n.BQ],n.BQ]}),t}()},27439:function(t,e,i){"use strict";i.d(e,{a8:function(){return p},kc:function(){return f},dn:function(){return l},dk:function(){return g},QW:function(){return m},$j:function(){return d},n5:function(){return h}});var n=i(43490),r=i(71522),o=i(31572),a=["*",[["mat-card-footer"]]],s=["*","mat-card-footer"],u=[[["","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]","*"],l=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t}(),h=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t}(),d=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t}(),f=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t}(),p=function(){var t=function t(e){v(this,t),this._animationMode=e};return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.Qb,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:s,decls:2,vars:0,template:function(t,e){1&t&&(o.F$t(a),o.Hsn(0),o.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t}(),g=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:c,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(o.F$t(u),o.Hsn(0),o.TgZ(1,"div",0),o.Hsn(2,1),o.qZA(),o.Hsn(3,2))},encapsulation:2,changeDetection:0}),t}(),m=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[r.BQ],r.BQ]}),t}()},29236:function(t,e,i){"use strict";i.d(e,{oG:function(){return T},p9:function(){return S}});var n=i(19861),r=i(31572),o=i(16073),s=i(71522),c=i(43490),l=i(36337),h=i(24621),d=["input"],f=function(t){return{enterDuration:t}},p=["*"],g=new r.OlP("mat-checkbox-default-options",{providedIn:"root",factory:m});function m(){return{color:"accent",clickAction:"check-indeterminate"}}var b=0,w={color:"accent",clickAction:"check-indeterminate"},_={provide:o.JU,useExisting:(0,r.Gpc)(function(){return T}),multi:!0},A=function t(){v(this,t)},k=(0,s.sb)((0,s.pj)((0,s.Kr)((0,s.Id)(function t(e){v(this,t),this._elementRef=e})))),T=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,o,a,s,u,c){var l;return v(this,i),(l=e.call(this,t))._changeDetectorRef=n,l._focusMonitor=o,l._ngZone=a,l._animationMode=u,l._options=c,l.ariaLabel="",l.ariaLabelledby=null,l._uniqueId="mat-checkbox-"+ ++b,l.id=l._uniqueId,l.labelPosition="after",l.name=null,l.change=new r.vpe,l.indeterminateChange=new r.vpe,l._onTouched=function(){},l._currentAnimationClass="",l._currentCheckState=0,l._controlValueAccessorChangeFn=function(){},l._checked=!1,l._disabled=!1,l._indeterminate=!1,l._options=l._options||w,l.color=l.defaultColor=l._options.color||w.color,l.tabIndex=parseInt(s)||0,l}return y(i,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(t){this._required=(0,n.Ig)(t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){e||Promise.resolve().then(function(){t._onTouched(),t._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){var e=(0,n.Ig)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=(0,n.Ig)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(t){var e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);var n=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){i.classList.remove(n)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var t=new A;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(t){var e,i=this,n=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===n?this.disabled||"noop"!==n||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==n&&Promise.resolve().then(function(){i._indeterminate=!1,i.indeterminateChange.emit(i._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}},{key:"_onInteractionEvent",value:function(t){t.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(t,e){if("NoopAnimations"===this._animationMode)return"";var i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(i)}},{key:"_syncIndeterminate",value:function(t){var e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}]),i}(k);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(h.tE),r.Y36(r.R0b),r.$8M("tabindex"),r.Y36(c.Qb,8),r.Y36(g,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;(1&t&&(r.Gf(d,5),r.Gf(s.wG,5)),2&t)&&(r.iGM(i=r.CRH())&&(e._inputElement=i.first),r.iGM(i=r.CRH())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Ikx("id",e.id),r.uIk("tabindex",null),r.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[r._Bn([_]),r.qOj],ngContentSelectors:p,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",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(t,e){if(1&t&&(r.F$t(),r.TgZ(0,"label",0,1),r.TgZ(2,"span",2),r.TgZ(3,"input",3,4),r.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),r.qZA(),r.TgZ(5,"span",5),r._UZ(6,"span",6),r.qZA(),r._UZ(7,"span",7),r.TgZ(8,"span",8),r.O4$(),r.TgZ(9,"svg",9),r._UZ(10,"path",10),r.qZA(),r.kcU(),r._UZ(11,"span",11),r.qZA(),r.qZA(),r.TgZ(12,"span",12,13),r.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),r.TgZ(14,"span",14),r._uU(15,"\xa0"),r.qZA(),r.Hsn(16),r.qZA(),r.qZA()),2&t){var i=r.MAs(1),n=r.MAs(13);r.uIk("for",e.inputId),r.xp6(2),r.ekj("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),r.xp6(1),r.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),r.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),r.xp6(2),r.Q6J("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",r.VKq(19,f,"NoopAnimations"===e._animationMode?0:150))}},directives:[s.wG,l.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t}(),C=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}(),S=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[s.si,s.BQ,l.Q8,C],s.BQ,C]}),t}()},10033:function(t,e,i){"use strict";i.d(e,{HS:function(){return O},oH:function(){return F},qn:function(){return N},Hi:function(){return B}});var n=i(75842),o=i(31572),s=i(71522),c=i(19861),h=i(61511),d=i(43490),f=i(55959),p=i(31906),g=i(90611),m=i(25416),b=i(56238),w=i(24621),_=i(4230),A=i(66283),k=i(11353),T=i(22526),C=i(16073),S=["*"],E=new o.OlP("MatChipRemove"),x=new o.OlP("MatChipAvatar"),R=new o.OlP("MatChipTrailingIcon"),I=(0,s.sb)((0,s.pj)((0,s.Kr)(function t(e){v(this,t),this._elementRef=e}),"primary"),-1),O=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,a,u,c,h,d){var p;return v(this,i),(p=e.call(this,t))._elementRef=t,p._ngZone=n,p._changeDetectorRef=u,p._hasFocus=!1,p.chipListSelectable=!0,p._chipListMultiple=!1,p._chipListDisabled=!1,p._selected=!1,p._selectable=!0,p._disabled=!1,p._removable=!0,p._onFocus=new f.xQ,p._onBlur=new f.xQ,p.selectionChange=new o.vpe,p.destroyed=new o.vpe,p.removed=new o.vpe,p._addHostClassName(),p._chipRippleTarget=c.createElement("div"),p._chipRippleTarget.classList.add("mat-chip-ripple"),p._elementRef.nativeElement.appendChild(p._chipRippleTarget),p._chipRipple=new s.IR(l(p),n,p._chipRippleTarget,r),p._chipRipple.setupTriggerEvents(t),p.rippleConfig=a||{},p._animationsDisabled="NoopAnimations"===h,p.tabIndex=null!=d&&parseInt(d)||-1,p}return y(i,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(t){var e=(0,c.Ig)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=(0,c.Ig)(t)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(t){this._disabled=(0,c.Ig)(t)}},{key:"removable",get:function(){return this._removable},set:function(t){this._removable=(0,c.Ig)(t)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(t){this.disabled?t.preventDefault():t.stopPropagation()}},{key:"_handleKeydown",value:function(t){if(!this.disabled)switch(t.keyCode){case n.yY:case n.ZH:this.remove(),t.preventDefault();break;case n.L_:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}},{key:"_blur",value:function(){var t=this;this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(function(){t._ngZone.run(function(){t._hasFocus=!1,t._onBlur.next({chip:t})})})}},{key:"_dispatchSelectionChange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}]),i}(I);return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(k.t4),o.Y36(s.Y2,8),o.Y36(o.sBO),o.Y36(h.K0),o.Y36(d.Qb,8),o.$8M("tabindex"))},t.\u0275dir=o.lG2({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){var n;(1&t&&(o.Suo(i,x,5),o.Suo(i,R,5),o.Suo(i,E,5)),2&t)&&(o.iGM(n=o.CRH())&&(e.avatar=n.first),o.iGM(n=o.CRH())&&(e.trailingIcon=n.first),o.iGM(n=o.CRH())&&(e.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&o.NdJ("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(o.uIk("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),o.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",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[o.qOj]}),t}(),P=new o.OlP("mat-chips-default-options"),D=(0,s.FD)(function t(e,i,n,r){v(this,t),this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=r}),M=0,L=function t(e,i){v(this,t),this.source=e,this.value=i},N=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,a,s,u,c){var h;return v(this,i),(h=e.call(this,u,a,s,c))._elementRef=t,h._changeDetectorRef=n,h._dir=r,h.ngControl=c,h.controlType="mat-chip-list",h._lastDestroyedChipIndex=null,h._destroyed=new f.xQ,h._uid="mat-chip-list-"+M++,h._tabIndex=0,h._userTabIndex=null,h._onTouched=function(){},h._onChange=function(){},h._multiple=!1,h._compareWith=function(t,e){return t===e},h._required=!1,h._disabled=!1,h.ariaOrientation="horizontal",h._selectable=!0,h.change=new o.vpe,h.valueChange=new o.vpe,h.ngControl&&(h.ngControl.valueAccessor=l(h)),h}return y(i,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=(0,c.Ig)(t),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=(0,c.Ig)(t),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=(0,c.Ig)(t),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(t){var e=this;this._selectable=(0,c.Ig)(t),this.chips&&this.chips.forEach(function(t){return t.chipListSelectable=e._selectable})}},{key:"tabIndex",set:function(t){this._userTabIndex=t,this._tabIndex=t}},{key:"chipSelectionChanges",get:function(){return p.T.apply(void 0,r(this.chips.map(function(t){return t.selectionChange})))}},{key:"chipFocusChanges",get:function(){return p.T.apply(void 0,r(this.chips.map(function(t){return t._onFocus})))}},{key:"chipBlurChanges",get:function(){return p.T.apply(void 0,r(this.chips.map(function(t){return t._onBlur})))}},{key:"chipRemoveChanges",get:function(){return p.T.apply(void 0,r(this.chips.map(function(t){return t.destroyed})))}},{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new w.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,m.R)(this._destroyed)).subscribe(function(e){return t._keyManager.withHorizontalOrientation(e)}),this._keyManager.tabOut.pipe((0,m.R)(this._destroyed)).subscribe(function(){t._allowFocusEscape()}),this.chips.changes.pipe((0,b.O)(null),(0,m.R)(this._destroyed)).subscribe(function(){t.disabled&&Promise.resolve().then(function(){t._syncChipsState()}),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new _.Ov(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"writeValue",value:function(t){this.chips&&this._setSelectionByValue(t,!1)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this.stateChanges.next()}},{key:"onContainerClick",value:function(t){this._originatesFromChip(t)||this.focus()}},{key:"focus",value:function(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}},{key:"_focusInput",value:function(t){this._chipInput&&this._chipInput.focus(t)}},{key:"_keydown",value:function(t){var e=t.target;e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(t){return t>=0&&t1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(t){return t.deselect()}),Array.isArray(t))t.forEach(function(t){return e._selectValue(t,i)}),this._sortValues();else{var n=this._selectValue(t,i);n&&i&&this._keyManager.setActiveItem(n)}}},{key:"_selectValue",value:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.chips.find(function(i){return null!=i.value&&e._compareWith(i.value,t)});return n&&(i?n.selectViaInteraction():n.select(),this._selectionModel.select(n)),n}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())})}},{key:"_clearSelection",value:function(t){this._selectionModel.clear(),this.chips.forEach(function(e){e!==t&&e.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(e){e.selected&&t._selectionModel.select(e)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(t){var e;e=Array.isArray(this.selected)?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.change.emit(new L(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var t=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){t.focused||t._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var t=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){t._tabIndex=t._userTabIndex||0,t._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){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)}},{key:"_listenToChipsSelection",value:function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach(function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()}),e.isUserInput&&t._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(e){var i=t.chips.toArray().indexOf(e.chip);t._isValidIndex(i)&&t._keyManager.updateActiveItem(i),t.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){t._blur(),t.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(e){var i=e.chip,n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&i._hasFocus&&(t._lastDestroyedChipIndex=n)})}},{key:"_originatesFromChip",value:function(t){for(var e=t.target;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(t){return t._hasFocus})}},{key:"_syncChipsState",value:function(){var t=this;this.chips&&this.chips.forEach(function(e){e._chipListDisabled=t._disabled,e._chipListMultiple=t.multiple})}}]),i}(D);return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(T.Is,8),o.Y36(C.F,8),o.Y36(C.sg,8),o.Y36(s.rD),o.Y36(C.a5,10))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){var n;(1&t&&o.Suo(i,O,5),2&t)&&(o.iGM(n=o.CRH())&&(e.chips=n))},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&o.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(o.Ikx("id",e._uid),o.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("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),o.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[o._Bn([{provide:A.Eo,useExisting:t}]),o.qOj],ngContentSelectors:S,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t}(),z=0,F=function(){var t=function(){function t(e,i){v(this,t),this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new o.vpe,this.placeholder="",this.id="mat-chip-list-input-"+z++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return y(t,[{key:"chipList",set:function(t){t&&(this._chipList=t,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(t){this._addOnBlur=(0,c.Ig)(t)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(t){this._disabled=(0,c.Ig)(t)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(t){if(t){if(t.keyCode!==n.Mf||(0,n.Vb)(t,"shiftKey")||this._chipList._allowFocusEscape(),t.keyCode===n.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}},{key:"_keyup",value:function(t){!this._focusLastChipOnBackspace&&t.keyCode===n.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(t){!this.inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==t||t.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(t){this.inputElement.focus(t)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(t){return!(0,n.Vb)(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(P))},t.\u0275dir=o.lG2({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&o.NdJ("keydown",function(t){return e._keydown(t)})("keyup",function(t){return e._keyup(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(o.Ikx("id",e.id),o.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:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[o.TTD]}),t}(),Z={separatorKeyCodes:[n.K5]},B=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[s.rD,{provide:P,useValue:Z}],imports:[[s.BQ]]}),t}()},71522:function(t,e,i){"use strict";i.d(e,{yN:function(){return C},mZ:function(){return S},_A:function(){return F},rD:function(){return J},sG:function(){return Z},K7:function(){return gt},HF:function(){return ht},Y2:function(){return at},BQ:function(){return R},X2:function(){return Q},uc:function(){return $},XK:function(){return K},ey:function(){return bt},Ng:function(){return At},rN:function(){return mt},nP:function(){return ct},us:function(){return lt},wG:function(){return st},si:function(){return ut},LF:function(){return G},IR:function(){return ot},CB:function(){return wt},jH:function(){return _t},pj:function(){return O},Kr:function(){return P},Id:function(){return I},FD:function(){return M},dB:function(){return L},sb:function(){return D},E0:function(){return W}});var r=i(31572),o=i(24621),s=i(22526),c=new r.GfV("12.0.5"),h=i(61511),f=i(19861),p=i(55959),g=i(48318),m=i(11353),b=i(56238),w=i(43490),_=i(75842);function A(t,e){if(1&t&&r._UZ(0,"mat-pseudo-checkbox",4),2&t){var i=r.oxw();r.Q6J("state",i.selected?"checked":"unchecked")("disabled",i.disabled)}}function k(t,e){if(1&t&&(r.TgZ(0,"span",5),r._uU(1),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.hij("(",i.group.label,")")}}var T=["*"],C=function(){var t=function t(){v(this,t)};return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t}(),S=function(){var t=function t(){v(this,t)};return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t}(),E=new r.GfV("12.0.5"),x=new r.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),R=function(){var t=function(){function t(e,i,n){v(this,t),this._hasDoneGlobalChecks=!1,this._document=n,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return y(t,[{key:"_getWindow",value:function(){var t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return(0,r.X6Q)()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&E.full!==c.full&&console.warn("The Angular Material version ("+E.full+") does not match the Angular CDK version ("+c.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(o.qm),r.LFG(x,8),r.LFG(h.K0))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[s.vT],s.vT]}),t}();function I(t){return function(t){a(i,t);var e=u(i);function i(){var t;v(this,i);for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:0;return function(t){a(n,t);var i=u(n);function n(){var t;v(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0?i:t}}]),t}(),Z=new r.OlP("mat-date-formats");try{N="undefined"!=typeof Intl}catch(kt){N=!1}var B={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},q=j(31,function(t){return String(t+1)}),U={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},H=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function j(t,e){for(var i=Array(t),n=0;n9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});var i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}},{key:"addCalendarYears",value:function(t,e){return this.addCalendarMonths(t,12*e)}},{key:"addCalendarMonths",value:function(t,e){var i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}},{key:"addCalendarDays",value:function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}},{key:"toIso8601",value:function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}},{key:"deserialize",value:function(t){if("string"==typeof t){if(!t)return null;if(H.test(t)){var e=new Date(t);if(this.isValid(e))return e}}return n(d(i.prototype),"deserialize",this).call(this,t)}},{key:"isDateInstance",value:function(t){return t instanceof Date}},{key:"isValid",value:function(t){return!isNaN(t.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(t,e,i){var n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}},{key:"_2digit",value:function(t){return("00"+t).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(t){return t.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(t,e){var i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}]),i}(F);return t.\u0275fac=function(e){return new(e||t)(r.LFG(z,8),r.LFG(m.t4))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),Y=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[{provide:F,useClass:G}],imports:[[m.ud]]}),t}(),V={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"}}},K=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[{provide:Z,useValue:V}],imports:[[Y]]}),t}(),J=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Q=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t}();function W(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";t.changes.pipe((0,b.O)(t)).subscribe(function(t){var n=t.length;X(e,"".concat(i,"-2-line"),!1),X(e,"".concat(i,"-3-line"),!1),X(e,"".concat(i,"-multi-line"),!1),2===n||3===n?X(e,"".concat(i,"-").concat(n,"-line"),!0):n>3&&X(e,"".concat(i,"-multi-line"),!0)})}function X(t,e,i){var n=t.nativeElement.classList;i?n.add(e):n.remove(e)}var $=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[R],R]}),t}(),tt=function(){function t(e,i,n){v(this,t),this._renderer=e,this.element=i,this.config=n,this.state=3}return y(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),et={enterDuration:450,exitDuration:400},it=(0,m.i$)({passive:!0}),nt=["mousedown","touchstart"],rt=["mouseup","mouseleave","touchend","touchcancel"],ot=function(){function t(e,i,n,r){v(this,t),this._target=e,this._ngZone=i,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=(0,f.fI)(n))}return y(t,[{key:"fadeInRipple",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},et),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var a=n.radius||function(t,e,i){var n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}(t,e,r),s=t-r.left,u=e-r.top,c=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-a+"px",l.style.top=u-a+"px",l.style.height=2*a+"px",l.style.width=2*a+"px",null!=n.color&&(l.style.backgroundColor=n.color),l.style.transitionDuration="".concat(c,"ms"),this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";var h=new tt(this,l,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var t=h===i._mostRecentTransientRipple;h.state=1,n.persistent||t&&i._isPointerDown||h.fadeOut()},c),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var i=t.element,n=Object.assign(Object.assign({},et),t.config.animation);i.style.transitionDuration="".concat(n.exitDuration,"ms"),i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var e=(0,f.fI)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(nt))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(rt),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=(0,o.X6)(t),i=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(t){e._triggerElement.addEventListener(t,e,it)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(nt.forEach(function(e){t._triggerElement.removeEventListener(e,t,it)}),this._pointerUpEventsRegistered&&rt.forEach(function(e){t._triggerElement.removeEventListener(e,t,it)}))}}]),t}(),at=new r.OlP("mat-ripple-global-options"),st=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new ot(this,i,e,n)}return y(t,[{key:"disabled",get:function(){return this._disabled},set:function(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(m.t4),r.Y36(at,8),r.Y36(w.Qb,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t}(),ut=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[R,m.ud],R]}),t}(),ct=function(){var t=function t(e){v(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1};return t.\u0275fac=function(e){return new(e||t)(r.Y36(w.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&r.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t}(),lt=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[R]]}),t}(),ht=new r.OlP("MAT_OPTION_PARENT_COMPONENT"),dt=I(function t(){v(this,t)}),ft=0,pt=function(){var t=function(t){a(i,t);var e=u(i);function i(t){var n,r;return v(this,i),(n=e.call(this))._labelId="mat-optgroup-label-"+ft++,n._inert=null!==(r=null==t?void 0:t.inertGroups)&&void 0!==r&&r,n}return i}(dt);return t.\u0275fac=function(e){return new(e||t)(r.Y36(ht,8))},t.\u0275dir=r.lG2({type:t,inputs:{label:"label"},features:[r.qOj]}),t}(),gt=new r.OlP("MatOptgroup"),vt=0,mt=function t(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];v(this,t),this.source=e,this.isUserInput=i},yt=function(){var t=function(){function t(e,i,n,o){v(this,t),this._element=e,this._changeDetectorRef=i,this._parent=n,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+vt++,this.onSelectionChange=new r.vpe,this._stateChanges=new p.xQ}return y(t,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=(0,f.Ig)(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){t.keyCode!==_.K5&&t.keyCode!==_.L_||(0,_.Vb)(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new mt(this,t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(void 0),r.Y36(pt))},t.\u0275dir=r.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t}(),bt=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o){return v(this,i),e.call(this,t,n,r,o)}return i}(yt);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(ht,8),r.Y36(gt,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&r.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(r.Ikx("id",e.id),r.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),r.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[r.qOj],ngContentSelectors:T,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(t,e){1&t&&(r.F$t(),r.YNc(0,A,1,2,"mat-pseudo-checkbox",0),r.TgZ(1,"span",1),r.Hsn(2),r.qZA(),r.YNc(3,k,2,1,"span",2),r._UZ(4,"div",3)),2&t&&(r.Q6J("ngIf",e.multiple),r.xp6(3),r.Q6J("ngIf",e.group&&e.group._inert),r.xp6(1),r.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[h.O5,st,ct],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t}();function wt(t,e,i){if(i.length){for(var n=e.toArray(),r=i.toArray(),o=0,a=0;ai+n?Math.max(0,t-n+e):i}var At=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[ut,h.ez,R,lt]]}),t}()},15812:function(t,e,i){"use strict";i.d(e,{Mq:function(){return kt},hl:function(){return xt},FA:function(){return Ot},nW:function(){return It}});var r=i(24621),o=i(2522),s=i(26899),c=i(61511),h=i(31572),f=i(15980),p=i(4253),g=i(71522),m=i(55959),b=i(87570),w=i(31906),_=i(40878),A=i(75842),k=i(90611),T=i(56238),C=i(43835),S=i(19861),E=i(11353),x=i(10709),R=i(16073),I=i(66283),O=i(80340),P=i(22526),D=["mat-calendar-body",""];function M(t,e){if(1&t&&(h.TgZ(0,"tr",2),h.TgZ(1,"td",3),h._uU(2),h.qZA(),h.qZA()),2&t){var i=h.oxw();h.xp6(1),h.Udp("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),h.uIk("colspan",i.numCols),h.xp6(1),h.hij(" ",i.label," ")}}function L(t,e){if(1&t&&(h.TgZ(0,"td",7),h._uU(1),h.qZA()),2&t){var i=h.oxw(2);h.Udp("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),h.uIk("colspan",i._firstRowOffset),h.xp6(1),h.hij(" ",i._firstRowOffset>=i.labelMinRequiredCells?i.label:""," ")}}function N(t,e){if(1&t){var i=h.EpF();h.TgZ(0,"td",8),h.NdJ("click",function(t){var e=h.CHM(i).$implicit;return h.oxw(2)._cellClicked(e,t)}),h.TgZ(1,"div",9),h._uU(2),h.qZA(),h._UZ(3,"div",10),h.qZA()}if(2&t){var n=e.$implicit,r=e.index,o=h.oxw().index,a=h.oxw();h.Udp("width",a._cellWidth)("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),h.ekj("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",a._isActiveCell(o,r))("mat-calendar-body-range-start",a._isRangeStart(n.compareValue))("mat-calendar-body-range-end",a._isRangeEnd(n.compareValue))("mat-calendar-body-in-range",a._isInRange(n.compareValue))("mat-calendar-body-comparison-bridge-start",a._isComparisonBridgeStart(n.compareValue,o,r))("mat-calendar-body-comparison-bridge-end",a._isComparisonBridgeEnd(n.compareValue,o,r))("mat-calendar-body-comparison-start",a._isComparisonStart(n.compareValue))("mat-calendar-body-comparison-end",a._isComparisonEnd(n.compareValue))("mat-calendar-body-in-comparison-range",a._isInComparisonRange(n.compareValue))("mat-calendar-body-preview-start",a._isPreviewStart(n.compareValue))("mat-calendar-body-preview-end",a._isPreviewEnd(n.compareValue))("mat-calendar-body-in-preview",a._isInPreview(n.compareValue)),h.Q6J("ngClass",n.cssClasses)("tabindex",a._isActiveCell(o,r)?0:-1),h.uIk("data-mat-row",o)("data-mat-col",r)("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-selected",a._isSelected(n.compareValue)),h.xp6(1),h.ekj("mat-calendar-body-selected",a._isSelected(n.compareValue))("mat-calendar-body-comparison-identical",a._isComparisonIdentical(n.compareValue))("mat-calendar-body-today",a.todayValue===n.compareValue),h.xp6(1),h.hij(" ",n.displayValue," ")}}function z(t,e){if(1&t&&(h.TgZ(0,"tr",4),h.YNc(1,L,2,6,"td",5),h.YNc(2,N,4,46,"td",6),h.qZA()),2&t){var i=e.$implicit,n=e.index,r=h.oxw();h.xp6(1),h.Q6J("ngIf",0===n&&r._firstRowOffset),h.xp6(1),h.Q6J("ngForOf",i)}}function F(t,e){if(1&t&&(h.TgZ(0,"th",5),h._uU(1),h.qZA()),2&t){var i=e.$implicit;h.uIk("aria-label",i.long),h.xp6(1),h.Oqu(i.narrow)}}var Z=["*"];function B(t,e){}function q(t,e){if(1&t){var i=h.EpF();h.TgZ(0,"mat-month-view",5),h.NdJ("activeDateChange",function(t){return h.CHM(i),h.oxw().activeDate=t})("_userSelection",function(t){return h.CHM(i),h.oxw()._dateSelected(t)}),h.qZA()}if(2&t){var n=h.oxw();h.Q6J("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)}}function U(t,e){if(1&t){var i=h.EpF();h.TgZ(0,"mat-year-view",6),h.NdJ("activeDateChange",function(t){return h.CHM(i),h.oxw().activeDate=t})("monthSelected",function(t){return h.CHM(i),h.oxw()._monthSelectedInYearView(t)})("selectedChange",function(t){return h.CHM(i),h.oxw()._goToDateInView(t,"month")}),h.qZA()}if(2&t){var n=h.oxw();h.Q6J("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function H(t,e){if(1&t){var i=h.EpF();h.TgZ(0,"mat-multi-year-view",7),h.NdJ("activeDateChange",function(t){return h.CHM(i),h.oxw().activeDate=t})("yearSelected",function(t){return h.CHM(i),h.oxw()._yearSelectedInMultiYearView(t)})("selectedChange",function(t){return h.CHM(i),h.oxw()._goToDateInView(t,"year")}),h.qZA()}if(2&t){var n=h.oxw();h.Q6J("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function j(t,e){}var G=["button"];function Y(t,e){1&t&&(h.O4$(),h.TgZ(0,"svg",3),h._UZ(1,"path",4),h.qZA())}var V=[[["","matDatepickerToggleIcon",""]]],K=["[matDatepickerToggleIcon]"],J=function(){var t=function(){function t(){v(this,t),this.changes=new m.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return y(t,[{key:"formatYearRange",value:function(t,e){return"".concat(t," \u2013 ").concat(e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=h.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Q=function t(e,i,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6?arguments[6]:void 0;v(this,t),this.value=e,this.displayValue=i,this.ariaLabel=n,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s},W=function(){var t=function(){function t(e,i){var n=this;v(this,t),this._elementRef=e,this._ngZone=i,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new h.vpe,this.previewChange=new h.vpe,this._enterHandler=function(t){if(n._skipNextFocus&&"focus"===t.type)n._skipNextFocus=!1;else if(t.target&&n.isRange){var e=n._getCellFromElement(t.target);e&&n._ngZone.run(function(){return n.previewChange.emit({value:e.enabled?e:null,event:t})})}},this._leaveHandler=function(t){null!==n.previewEnd&&n.isRange&&t.target&&X(t.target)&&n._ngZone.run(function(){return n.previewChange.emit({value:null,event:t})})},i.runOutsideAngular(function(){var t=e.nativeElement;t.addEventListener("mouseenter",n._enterHandler,!0),t.addEventListener("focus",n._enterHandler,!0),t.addEventListener("mouseleave",n._leaveHandler,!0),t.addEventListener("blur",n._leaveHandler,!0)})}return y(t,[{key:"_cellClicked",value:function(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}},{key:"_isSelected",value:function(t){return this.startValue===t||this.endValue===t}},{key:"ngOnChanges",value:function(t){var e=t.numCols,i=this.rows,n=this.numCols;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(t,e){var i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}},{key:"_focusActiveCell",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe((0,k.q)(1)).subscribe(function(){var i=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(t._skipNextFocus=!0),i.focus())})})}},{key:"_isRangeStart",value:function(t){return $(t,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(t){return tt(t,this.startValue,this.endValue)}},{key:"_isInRange",value:function(t){return et(t,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(t){return $(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;var n=this.rows[e][i-1];if(!n){var r=this.rows[e-1];n=r&&r[r.length-1]}return n&&!this._isRangeEnd(n.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;var n=this.rows[e][i+1];if(!n){var r=this.rows[e+1];n=r&&r[0]}return n&&!this._isRangeStart(n.compareValue)}},{key:"_isComparisonEnd",value:function(t){return tt(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(t){return et(t,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}},{key:"_isPreviewStart",value:function(t){return $(t,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(t){return tt(t,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(t){return et(t,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(t){var e;if(X(t)?e=t:X(t.parentNode)&&(e=t.parentNode),e){var i=e.getAttribute("data-mat-row"),n=e.getAttribute("data-mat-col");if(i&&n)return this.rows[parseInt(i)][parseInt(n)]}return null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(h.R0b))},t.\u0275cmp=h.Xpm({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[h.TTD],attrs:D,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"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(h.YNc(0,M,3,6,"tr",0),h.YNc(1,z,3,2,"tr",1)),2&t&&(h.Q6J("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t}();function X(t){return"TD"===t.nodeName}function $(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function et(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}var it=function t(e,i){v(this,t),this.start=e,this.end=i},nt=function(){var t=function(){function t(e,i){v(this,t),this.selection=e,this._adapter=i,this._selectionChanged=new m.xQ,this.selectionChanged=this._selectionChanged,this.selection=e}return y(t,[{key:"updateSelection",value:function(t,e){var i=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:i})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.LFG(void 0),h.LFG(g._A))},t.\u0275prov=h.Yz7({token:t,factory:t.\u0275fac}),t}(),rt=function(){var t=function(t){a(i,t);var e=u(i);function i(t){return v(this,i),e.call(this,null,t)}return y(i,[{key:"add",value:function(t){n(d(i.prototype),"updateSelection",this).call(this,t,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}},{key:"clone",value:function(){var t=new i(this._adapter);return t.updateSelection(this.selection,this),t}}]),i}(nt);return t.\u0275fac=function(e){return new(e||t)(h.LFG(g._A))},t.\u0275prov=h.Yz7({token:t,factory:t.\u0275fac}),t}(),ot={provide:nt,deps:[[new h.FiY,new h.tp0,nt],g._A],useFactory:function(t,e){return t||new rt(e)}},at=new h.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY"),st=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=n,this._dir=r,this._rangeStrategy=o,this._rerenderSubscription=b.w.EMPTY,this.selectedChange=new h.vpe,this._userSelection=new h.vpe,this.activeDateChange=new h.vpe,this._activeDate=this._dateAdapter.today()}return y(t,[{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof it?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,T.O)(null)).subscribe(function(){return t._init()})}},{key:"ngOnChanges",value:function(t){var e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(t){var e,i,n=t.value,r=this._dateAdapter.getYear(this.activeDate),o=this._dateAdapter.getMonth(this.activeDate),a=this._dateAdapter.createDate(r,o,n);this._selected instanceof it?(e=this._getDateInCurrentMonth(this._selected.start),i=this._getDateInCurrentMonth(this._selected.end)):e=i=this._getDateInCurrentMonth(this._selected),e===n&&i===n||this.selectedChange.emit(a),this._userSelection.emit({value:a,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,i=this._isRtl();switch(t.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case A.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case A.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case A.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case A.Ku:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case A.VM:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case A.K5:case A.L_:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case A.hY:return void(null==this._previewEnd||(0,A.Vb)(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_init",value:function(){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();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(t){this._matCalendarBody._focusActiveCell(t)}},{key:"_previewChanged",value:function(t){var e=t.event,i=t.value;if(this._rangeStrategy){var n=this._rangeStrategy.createPreview(i?i.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow"),i=this._dateAdapter.getDayOfWeekNames("long").map(function(t,i){return{long:t,narrow:e[i]}});this._weekdays=i.slice(t).concat(i.slice(0,t))}},{key:"_createWeekCells",value:function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}},{key:"_getDateInCurrentMonth",value:function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}},{key:"_hasSameMonthAndYear",value:function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}},{key:"_getCellCompareValue",value:function(t){if(t){var e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(t){t instanceof it?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.sBO),h.Y36(g.sG,8),h.Y36(g._A,8),h.Y36(P.Is,8),h.Y36(at,8))},t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var i;(1&t&&h.Gf(W,5),2&t)&&(h.iGM(i=h.CRH())&&(e._matCalendarBody=i.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:[h.TTD],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(h.TgZ(0,"table",0),h.TgZ(1,"thead",1),h.TgZ(2,"tr"),h.YNc(3,F,2,2,"th",2),h.qZA(),h.TgZ(4,"tr"),h._UZ(5,"th",3),h.qZA(),h.qZA(),h.TgZ(6,"tbody",4),h.NdJ("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),h.qZA(),h.qZA()),2&t&&(h.xp6(3),h.Q6J("ngForOf",e._weekdays),h.xp6(3),h.Q6J("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[c.sg,W],encapsulation:2,changeDetection:0}),t}(),ut=function(){var t=function(){function t(e,i,n){v(this,t),this._changeDetectorRef=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=b.w.EMPTY,this.selectedChange=new h.vpe,this.yearSelected=new h.vpe,this.activeDateChange=new h.vpe,this._activeDate=this._dateAdapter.today()}return y(t,[{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),ct(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof it?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,T.O)(null)).subscribe(function(){return t._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate)-lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var i=0,n=[];i<24;i++)n.push(e+i),4==n.length&&(this._years.push(n.map(function(e){return t._createCellForYear(e)})),n=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(t){var e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));var i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,i=this._isRtl();switch(t.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case A.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case A.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case A.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case A.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case A.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case A.K5:case A.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_getActiveCell",value:function(){return lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(t){var e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new Q(t,i,i,this._shouldEnableYear(t),n)}},{key:"_shouldEnableYear",value:function(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&ti||t===i&&e>n}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(t,e){if(this.minDate){var i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t enter-dropdown",(0,x.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,x.F4)([(0,x.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,x.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,x.eR)("void => enter-dialog",(0,x.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,x.F4)([(0,x.oB)({opacity:0,transform:"scale(0.7)"}),(0,x.oB)({transform:"none",opacity:1})]))),(0,x.eR)("* => void",(0,x.jt)("100ms linear",(0,x.oB)({opacity:0})))]),fadeInCalendar:(0,x.X$)("fadeInCalendar",[(0,x.SB)("void",(0,x.oB)({opacity:0})),(0,x.SB)("enter",(0,x.oB)({opacity:1})),(0,x.eR)("void => *",(0,x.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},mt=0,yt=new h.OlP("mat-datepicker-scroll-strategy"),bt={provide:yt,deps:[o.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},wt=(0,g.pj)(function t(e){v(this,t),this._elementRef=e}),_t=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o,a,s){var u;return v(this,i),(u=e.call(this,t))._changeDetectorRef=n,u._globalModel=r,u._dateAdapter=o,u._rangeSelectionStrategy=a,u._subscriptions=new b.w,u._animationDone=new m.xQ,u._actionsPortal=null,u._closeButtonText=s.closeCalendarLabel,u}return y(i,[{key:"ngOnInit",value:function(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}},{key:"ngAfterViewInit",value:function(){var t=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(t){var e=this._model.selection,i=t.value,n=e instanceof it;if(n&&this._rangeSelectionStrategy){var r=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(r,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model.selection}},{key:"_applyPendingSelection",value:function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}]),i}(wt);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(h.sBO),h.Y36(nt),h.Y36(g._A),h.Y36(at,8),h.Y36(J))},t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var i;(1&t&&h.Gf(gt,5),2&t)&&(h.iGM(i=h.CRH())&&(e._calendar=i.first))},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&h.WFA("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(h.d8E("@transformPanel",e._animationState),h.ekj("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[h.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",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(t,e){1&t&&(h.TgZ(0,"div",0),h.TgZ(1,"mat-calendar",1),h.NdJ("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),h.qZA(),h.YNc(2,j,0,0,"ng-template",2),h.TgZ(3,"button",3),h.NdJ("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),h._uU(4),h.qZA(),h.qZA()),2&t&&(h.ekj("mat-datepicker-content-container-with-actions",e._actionsPortal),h.xp6(1),h.Q6J("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),h.xp6(1),h.Q6J("cdkPortalOutlet",e._actionsPortal),h.xp6(1),h.ekj("cdk-visually-hidden",!e._closeButtonFocused),h.Q6J("color",e.color||"primary"),h.xp6(1),h.Oqu(e._closeButtonText))},directives:[r.mK,gt,c.mk,s.Pl,f.lW],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[vt.transformPanel,vt.fadeInCalendar]},changeDetection:0}),t}(),At=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c){v(this,t),this._overlay=i,this._ngZone=n,this._viewContainerRef=r,this._dateAdapter=a,this._dir=s,this._model=c,this._inputStateChanges=b.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new h.vpe,this.monthSelected=new h.vpe,this.viewChanged=new h.vpe(!0),this.openedStream=new h.vpe,this.closedStream=new h.vpe,this._opened=!1,this.id="mat-datepicker-"+mt++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new m.xQ,this._scrollStrategy=o}return y(t,[{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(t){this._color=t}},{key:"touchUi",get:function(){return this._touchUi},set:function(t){this._touchUi=(0,S.Ig)(t)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(t){var e=(0,S.Ig)(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(t){this._restoreFocus=(0,S.Ig)(t)}},{key:"panelClass",get:function(){return this._panelClass},set:function(t){this._panelClass=(0,S.du)(t)}},{key:"opened",get:function(){return this._opened},set:function(t){(0,S.Ig)(t)?this.open():this.close()}},{key:"_getMinDate",value:function(){return this.datepickerInput&&this.datepickerInput.min}},{key:"_getMaxDate",value:function(){return this.datepickerInput&&this.datepickerInput.max}},{key:"_getDateFilter",value:function(){return this.datepickerInput&&this.datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(t){var e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){var i=this._overlayRef.getConfig().positionStrategy;i instanceof o._G&&(this._setConnectedPositions(i),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}},{key:"select",value:function(t){this._model.add(t)}},{key:"_selectYear",value:function(t){this.yearSelected.emit(t)}},{key:"_selectMonth",value:function(t){this.monthSelected.emit(t)}},{key:"_viewChanged",value:function(t){this.viewChanged.emit(t)}},{key:"registerInput",value:function(t){var e=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(function(){return e.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(t){this._actionsPortal=t}},{key:"removeActions",value:function(t){t===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,E.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var t=this;if(this._opened){if(this._componentRef){var e=this._componentRef.instance;e._startExitAnimation(),e._animationDone.pipe((0,k.q)(1)).subscribe(function(){return t._destroyOverlay()})}var i=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(i)):i()}}},{key:"_applyPendingSelection",value:function(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}},{key:"_forwardContentValues",value:function(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}},{key:"_openOverlay",value:function(){var t=this;this._destroyOverlay();var e=this.touchUi,i=this.datepickerInput.getOverlayLabelId(),n=new s.C5(_t,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new o.X_({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")})),a=r.overlayElement;a.setAttribute("role","dialog"),i&&a.setAttribute("aria-labelledby",i),e&&a.setAttribute("aria-modal","true"),this._getCloseStream(r).subscribe(function(e){e&&e.preventDefault(),t.close()}),this._componentRef=r.attach(n),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(function(){return r.updatePosition()})}},{key:"_destroyOverlay",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}},{key:"_getDialogStrategy",value:function(){return this._overlay.position().global().centerHorizontally().centerVertically()}},{key:"_getDropdownStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}},{key:"_setConnectedPositions",value:function(t){var e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",r="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:r},{originX:i,originY:r,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:r}])}},{key:"_getCloseStream",value:function(t){var e=this;return(0,w.T)(t.backdropClick(),t.detachments(),t.keydownEvents().pipe((0,C.h)(function(t){return t.keyCode===A.hY&&!(0,A.Vb)(t)||e.datepickerInput&&(0,A.Vb)(t,"altKey")&&t.keyCode===A.LH})))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(o.aV),h.Y36(h.R0b),h.Y36(h.s_b),h.Y36(yt),h.Y36(g._A,8),h.Y36(P.Is,8),h.Y36(c.K0,8),h.Y36(nt))},t.\u0275dir=h.lG2({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[h.TTD]}),t}(),kt=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(At);return e.\u0275fac=function(i){return(t||(t=h.n5z(e)))(i||e)},e.\u0275cmp=h.Xpm({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[h._Bn([ot,{provide:At,useExisting:e}]),h.qOj],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),e}(),Tt=function t(e,i){v(this,t),this.target=e,this.targetElement=i,this.value=this.target.value},Ct=function(){var t=function(){function t(e,i,n){var r=this;v(this,t),this._elementRef=e,this._dateAdapter=i,this._dateFormats=n,this.dateChange=new h.vpe,this.dateInput=new h.vpe,this.stateChanges=new m.xQ,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=b.w.EMPTY,this._localeSubscription=b.w.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._filterValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value));return!e||r._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),i=r._getMinDate();return!i||!e||r._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),i=r._getMaxDate();return!i||!e||r._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(function(){r._assignValueProgrammatically(r.value)})}return y(t,[{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(t){this._assignValueProgrammatically(t)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(t){var e=(0,S.Ig)(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}},{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(t){var e=this;this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(t){if(e._shouldHandleChangeEvent(t)){var i=e._getValueFromModel(t.selection);e._lastValueValid=e._isValidValue(i),e._cvaOnChange(i),e._onTouched(),e._formatValue(i),e.dateInput.emit(new Tt(e,e._elementRef.nativeElement)),e.dateChange.emit(new Tt(e,e._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(t){(function(t,e){for(var i=0,n=Object.keys(t);i enter",(0,w.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({transform:"none",opacity:1}))),(0,w.eR)("* => void, * => exit",(0,w.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,w.oB)({opacity:0})))])},S=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,a,s,u){var c;return v(this,i),(c=e.call(this))._elementRef=t,c._focusTrapFactory=n,c._changeDetectorRef=r,c._config=s,c._focusMonitor=u,c._animationStateChanged=new o.vpe,c._elementFocusedBeforeDialogWasOpened=null,c._closeInteractionType=null,c.attachDomPortal=function(t){return c._portalOutlet.hasAttached(),c._portalOutlet.attachDomPortal(t)},c._ariaLabelledBy=s.ariaLabelledBy||null,c._document=a,c}return y(i,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=(0,b.ht)(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,b.ht)())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=(0,b.ht)();return t===e||t.contains(e)}}]),i}(r.en);return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(A.qV),o.Y36(o.sBO),o.Y36(l.K0,8),o.Y36(T),o.Y36(A.tE))},t.\u0275dir=o.lG2({type:t,viewQuery:function(t,e){var i;(1&t&&o.Gf(r.Pl,7),2&t)&&(o.iGM(i=o.CRH())&&(e._portalOutlet=i.first))},features:[o.qOj]}),t}(),E=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._state="enter",t}return y(i,[{key:"_onAnimationDone",value:function(t){var e=t.toState,i=t.totalTime;"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:i}))}},{key:"_onAnimationStart",value:function(t){var e=t.toState,i=t.totalTime;"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:i})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),i}(S);return e.\u0275fac=function(i){return(t||(t=o.n5z(e)))(i||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&o.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(o.Ikx("id",e._id),o.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),o.d8E("@dialogContainer",e._state))},features:[o.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&o.YNc(0,k,0,0,"ng-template",0)},directives:[r.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[C.dialogContainer]}}),e}(),x=0,R=function(){function t(e,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+x++;v(this,t),this._overlayRef=e,this._containerInstance=i,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new h.xQ,this._afterClosed=new h.xQ,this._beforeClosed=new h.xQ,this._state=0,i._id=r,i._animationStateChanged.pipe((0,p.h)(function(t){return"opened"===t.state}),(0,g.q)(1)).subscribe(function(){n._afterOpened.next(),n._afterOpened.complete()}),i._animationStateChanged.pipe((0,p.h)(function(t){return"closed"===t.state}),(0,g.q)(1)).subscribe(function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()}),e.detachments().subscribe(function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()}),e.keydownEvents().pipe((0,p.h)(function(t){return t.keyCode===_.hY&&!n.disableClose&&!(0,_.Vb)(t)})).subscribe(function(t){t.preventDefault(),I(n,"keyboard")}),e.backdropClick().subscribe(function(){n.disableClose?n._containerInstance._recaptureFocus():I(n,"mouse")})}return y(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe((0,p.h)(function(t){return"closing"===t.state}),(0,g.q)(1)).subscribe(function(i){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout(function(){return e._finishDialogClose()},i.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}();function I(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}var O=new o.OlP("MatDialogData"),P=new o.OlP("mat-dialog-default-options"),D=new o.OlP("mat-dialog-scroll-strategy"),M={provide:D,deps:[n.aV],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},L=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c){var l=this;v(this,t),this._overlay=e,this._injector=i,this._defaultOptions=n,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=u,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new h.xQ,this._afterOpenedAtThisLevel=new h.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,d.P)(function(){return l.openDialogs.length?l._getAfterAllClosed():l._getAfterAllClosed().pipe((0,m.O)(void 0))}),this._scrollStrategy=a}return y(t,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(t,e){var i=this;(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new T)).id&&this.getDialogById(e.id);var n=this._createOverlay(e),r=this._attachDialogContainer(n,e),o=this._attachDialogContent(t,r,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return i._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find(function(e){return e.id===t})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new n.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}},{key:"_attachDialogContainer",value:function(t,e){var i=o.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:T,useValue:e}]}),n=new r.C5(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}},{key:"_attachDialogContent",value:function(t,e,i,n){var a=new this._dialogRefConstructor(i,e,n.id);if(t instanceof o.Rgc)e.attachTemplatePortal(new r.UE(t,null,{$implicit:n.data,dialogRef:a}));else{var s=this._createInjector(n,a,e),u=e.attachComponentPortal(new r.C5(t,n.viewContainerRef,s));a.componentInstance=u.instance}return a.updateSize(n.width,n.height).updatePosition(n.position),a}},{key:"_createInjector",value:function(t,e,i){var n=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(c.Is,null,o.XFs.Optional)||r.push({provide:c.Is,useValue:{value:t.direction,change:(0,f.of)()}}),o.zs3.create({parent:n||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,i=e.length-1;i>-1;i--){var n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.aV),o.Y36(o.zs3),o.Y36(void 0),o.Y36(void 0),o.Y36(n.Xj),o.Y36(void 0),o.Y36(o.DyG),o.Y36(o.DyG),o.Y36(o.OlP))},t.\u0275dir=o.lG2({type:t}),t}(),N=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o,a,s,u){return v(this,i),e.call(this,t,n,o,s,u,a,R,E,O)}return i}(L);return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.aV),o.LFG(o.zs3),o.LFG(l.Ye,8),o.LFG(P,8),o.LFG(D),o.LFG(t,12),o.LFG(n.Xj))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t}(),z=0,F=function(){var t=function(){function t(e,i,n){v(this,t),this._dialogRef=e,this._elementRef=i,this._dialog=n,this.id="mat-dialog-title-"+z++}return y(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=function(t,e){for(var i=t.nativeElement.parentElement;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(function(t){return t.id===i.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(R,8),o.Y36(o.SBq),o.Y36(N))},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&o.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),Z=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t}(),B=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t}(),q=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[N,M],imports:[[n.U8,r.eL,s.BQ],s.BQ]}),t}()},27679:function(t,e,i){"use strict";i.d(e,{d:function(){return a},t:function(){return s}});var n=i(19861),r=i(71522),o=i(31572),a=function(){var t=function(){function t(){v(this,t),this._vertical=!1,this._inset=!1}return y(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=(0,n.Ig)(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=(0,n.Ig)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(o.uIk("aria-orientation",e.vertical?"vertical":"horizontal"),o.ekj("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t}(),s=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[r.BQ],r.BQ]}),t}()},45001:function(t,e,i){"use strict";i.d(e,{pp:function(){return J},To:function(){return Q},ib:function(){return G},HS:function(){return U},u4:function(){return V},yz:function(){return Y},yK:function(){return K}});var r=i(31572),o=i(19861),s=i(55959),c=i(87570),l=i(4230),h=0,f=new r.OlP("CdkAccordion"),p=function(){var t=function(){function t(){v(this,t),this._stateChanges=new s.xQ,this._openCloseAllActions=new s.xQ,this.id="cdk-accordion-"+h++,this._multi=!1}return y(t,[{key:"multi",get:function(){return this._multi},set:function(t){this._multi=(0,o.Ig)(t)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(t){this._stateChanges.next(t)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[r._Bn([{provide:f,useExisting:t}]),r.TTD]}),t}(),g=0,m=function(){var t=function(){function t(e,i,n){var o=this;v(this,t),this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=n,this._openCloseAllSubscription=c.w.EMPTY,this.closed=new r.vpe,this.opened=new r.vpe,this.destroyed=new r.vpe,this.expandedChange=new r.vpe,this.id="cdk-accordion-child-"+g++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=n.listen(function(t,e){o.accordion&&!o.accordion.multi&&o.accordion.id===e&&o.id!==t&&(o.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return y(t,[{key:"expanded",get:function(){return this._expanded},set:function(t){t=(0,o.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=(0,o.Ig)(t)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var t=this;return this.accordion._openCloseAllActions.subscribe(function(e){t.disabled||(t.expanded=e)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(f,12),r.Y36(r.sBO),r.Y36(l.A8))},t.\u0275dir=r.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[r._Bn([{provide:f,useValue:void 0}])]}),t}(),b=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}(),w=i(26899),_=i(61511),A=i(71522),k=i(24621),T=i(98720),C=i(56238),S=i(43835),E=i(90611),x=i(75842),R=i(43490),I=i(70653),O=i(31906),P=i(10709),D=["body"];function M(t,e){}var L=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],N=["mat-expansion-panel-header","*","mat-action-row"];function z(t,e){if(1&t&&r._UZ(0,"span",2),2&t){var i=r.oxw();r.Q6J("@indicatorRotate",i._getExpandedState())}}var F=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Z=["mat-panel-title","mat-panel-description","*"],B=new r.OlP("MAT_ACCORDION"),q={indicatorRotate:(0,P.X$)("indicatorRotate",[(0,P.SB)("collapsed, void",(0,P.oB)({transform:"rotate(0deg)"})),(0,P.SB)("expanded",(0,P.oB)({transform:"rotate(180deg)"})),(0,P.eR)("expanded <=> collapsed, void => collapsed",(0,P.jt)("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:(0,P.X$)("bodyExpansion",[(0,P.SB)("collapsed, void",(0,P.oB)({height:"0px",visibility:"hidden"})),(0,P.SB)("expanded",(0,P.oB)({height:"*",visibility:"visible"})),(0,P.eR)("expanded <=> collapsed, void => collapsed",(0,P.jt)("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},U=function(){var t=function t(e){v(this,t),this._template=e};return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.Rgc))},t.\u0275dir=r.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t}(),H=0,j=new r.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),G=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,o,a,u,c,l){var h;return v(this,i),(h=e.call(this,t,n,o))._viewContainerRef=a,h._animationMode=c,h._hideToggle=!1,h.afterExpand=new r.vpe,h.afterCollapse=new r.vpe,h._inputChanges=new s.xQ,h._headerId="mat-expansion-panel-header-"+H++,h._bodyAnimationDone=new s.xQ,h.accordion=t,h._document=u,h._bodyAnimationDone.pipe((0,T.x)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){"void"!==t.fromState&&("expanded"===t.toState?h.afterExpand.emit():"collapsed"===t.toState&&h.afterCollapse.emit())}),l&&(h.hideToggle=l.hideToggle),h}return y(i,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(t){this._hideToggle=(0,o.Ig)(t)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var t=this;this._lazyContent&&this.opened.pipe((0,C.O)(null),(0,S.h)(function(){return t.expanded&&!t._portal}),(0,E.q)(1)).subscribe(function(){t._portal=new w.UE(t._lazyContent._template,t._viewContainerRef)})}},{key:"ngOnChanges",value:function(t){this._inputChanges.next(t)}},{key:"ngOnDestroy",value:function(){n(d(i.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}]),i}(m);return t.\u0275fac=function(e){return new(e||t)(r.Y36(B,12),r.Y36(r.sBO),r.Y36(l.A8),r.Y36(r.s_b),r.Y36(_.K0),r.Y36(R.Qb,8),r.Y36(j,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){var n;(1&t&&r.Suo(i,U,5),2&t)&&(r.iGM(n=r.CRH())&&(e._lazyContent=n.first))},viewQuery:function(t,e){var i;(1&t&&r.Gf(D,5),2&t)&&(r.iGM(i=r.CRH())&&(e._body=i.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&r.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[r._Bn([{provide:B,useValue:void 0}]),r.qOj,r.TTD],ngContentSelectors:N,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(r.F$t(L),r.Hsn(0),r.TgZ(1,"div",0,1),r.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),r.TgZ(3,"div",2),r.Hsn(4,1),r.YNc(5,M,0,0,"ng-template",3),r.qZA(),r.Hsn(6,2),r.qZA()),2&t&&(r.xp6(1),r.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),r.uIk("aria-labelledby",e._headerId),r.xp6(4),r.Q6J("cdkPortalOutlet",e._portal))},directives:[w.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[q.bodyExpansion]},changeDetection:0}),t}(),Y=function(){var t=function(){function t(e,i,n,r,o,a){var s=this;v(this,t),this.panel=e,this._element=i,this._focusMonitor=n,this._changeDetectorRef=r,this._animationMode=a,this._parentChangeSubscription=c.w.EMPTY;var u=e.accordion?e.accordion._stateChanges.pipe((0,S.h)(function(t){return!(!t.hideToggle&&!t.togglePosition)})):I.E;this._parentChangeSubscription=(0,O.T)(e.opened,e.closed,u,e._inputChanges.pipe((0,S.h)(function(t){return!!(t.hideToggle||t.disabled||t.togglePosition)}))).subscribe(function(){return s._changeDetectorRef.markForCheck()}),e.closed.pipe((0,S.h)(function(){return e._containsFocus()})).subscribe(function(){return n.focusVia(i,"program")}),o&&(this.expandedHeight=o.expandedHeight,this.collapsedHeight=o.collapsedHeight)}return y(t,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(t){switch(t.keyCode){case x.L_:case x.K5:(0,x.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._element).subscribe(function(e){e&&t.panel.accordion&&t.panel.accordion._handleHeaderFocus(t)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(G,1),r.Y36(r.SBq),r.Y36(k.tE),r.Y36(r.sBO),r.Y36(j,8),r.Y36(R.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&r.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(r.uIk("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),r.Udp("height",e._getHeaderHeight()),r.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:Z,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(r.F$t(F),r.TgZ(0,"span",0),r.Hsn(1),r.Hsn(2,1),r.Hsn(3,2),r.qZA(),r.YNc(4,z,1,1,"span",1)),2&t&&(r.xp6(4),r.Q6J("ngIf",e._showToggle()))},directives:[_.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}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[q.indicatorRotate]},changeDetection:0}),t}(),V=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t}(),K=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t}(),J=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._ownHeaders=new r.n_E,t._hideToggle=!1,t.displayMode="default",t.togglePosition="after",t}return y(i,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(t){this._hideToggle=(0,o.Ig)(t)}},{key:"ngAfterContentInit",value:function(){var t=this;this._headers.changes.pipe((0,C.O)(this._headers)).subscribe(function(e){t._ownHeaders.reset(e.filter(function(e){return e.panel.accordion===t})),t._ownHeaders.notifyOnChanges()}),this._keyManager=new k.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(t){this._keyManager.onKeydown(t)}},{key:"_handleHeaderFocus",value:function(t){this._keyManager.updateActiveItem(t)}},{key:"ngOnDestroy",value:function(){n(d(i.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),i}(p);return e.\u0275fac=function(i){return(t||(t=r.n5z(e)))(i||e)},e.\u0275dir=r.lG2({type:e,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){var n;(1&t&&r.Suo(i,Y,5),2&t)&&(r.iGM(n=r.CRH())&&(e._headers=n))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[r._Bn([{provide:B,useExisting:e}]),r.qOj]}),e}(),Q=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[_.ez,A.BQ,b,w.eL]]}),t}()},66283:function(t,e,i){"use strict";i.d(e,{G_:function(){return it},TO:function(){return U},KE:function(){return nt},Eo:function(){return j},lN:function(){return rt},bx:function(){return V},hX:function(){return K},UY:function(){return J},R9:function(){return X}});var n=i(36337),o=i(61511),s=i(31572),c=i(71522),l=i(19861),h=i(55959),d=i(31906),f=i(87254),p=i(56238),g=i(25416),m=i(90611),b=i(10709),w=i(43490),_=i(22526),A=i(11353),k=["underline"],T=["connectionContainer"],C=["inputContainer"],S=["label"];function E(t,e){1&t&&(s.ynx(0),s.TgZ(1,"div",14),s._UZ(2,"div",15),s._UZ(3,"div",16),s._UZ(4,"div",17),s.qZA(),s.TgZ(5,"div",18),s._UZ(6,"div",15),s._UZ(7,"div",16),s._UZ(8,"div",17),s.qZA(),s.BQk())}function x(t,e){1&t&&(s.TgZ(0,"div",19),s.Hsn(1,1),s.qZA())}function R(t,e){if(1&t&&(s.ynx(0),s.Hsn(1,2),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.BQk()),2&t){var i=s.oxw(2);s.xp6(3),s.Oqu(i._control.placeholder)}}function I(t,e){1&t&&s.Hsn(0,3,["*ngSwitchCase","true"])}function O(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1," *"),s.qZA())}function P(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"label",20,21),s.NdJ("cdkObserveContent",function(){return s.CHM(i),s.oxw().updateOutlineGap()}),s.YNc(2,R,4,1,"ng-container",12),s.YNc(3,I,1,0,"ng-content",12),s.YNc(4,O,2,0,"span",22),s.qZA()}if(2&t){var n=s.oxw();s.ekj("mat-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),s.Q6J("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),s.uIk("for",n._control.id)("aria-owns",n._control.id),s.xp6(2),s.Q6J("ngSwitchCase",!1),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function D(t,e){1&t&&(s.TgZ(0,"div",24),s.Hsn(1,4),s.qZA())}function M(t,e){if(1&t&&(s.TgZ(0,"div",25,26),s._UZ(2,"span",27),s.qZA()),2&t){var i=s.oxw();s.xp6(2),s.ekj("mat-accent","accent"==i.color)("mat-warn","warn"==i.color)}}function L(t,e){if(1&t&&(s.TgZ(0,"div"),s.Hsn(1,5),s.qZA()),2&t){var i=s.oxw();s.Q6J("@transitionMessages",i._subscriptAnimationState)}}function N(t,e){if(1&t&&(s.TgZ(0,"div",31),s._uU(1),s.qZA()),2&t){var i=s.oxw(2);s.Q6J("id",i._hintLabelId),s.xp6(1),s.Oqu(i.hintLabel)}}function z(t,e){if(1&t&&(s.TgZ(0,"div",28),s.YNc(1,N,2,2,"div",29),s.Hsn(2,6),s._UZ(3,"div",30),s.Hsn(4,7),s.qZA()),2&t){var i=s.oxw();s.Q6J("@transitionMessages",i._subscriptAnimationState),s.xp6(1),s.Q6J("ngIf",i.hintLabel)}}var F=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Z=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],B=0,q=new s.OlP("MatError"),U=function(){var t=function t(e,i){v(this,t),this.id="mat-error-"+B++,e||i.nativeElement.setAttribute("aria-live","polite")};return t.\u0275fac=function(e){return new(e||t)(s.$8M("aria-live"),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("id",e.id)},inputs:{id:"id"},features:[s._Bn([{provide:q,useExisting:t}])]}),t}(),H={transitionMessages:(0,b.X$)("transitionMessages",[(0,b.SB)("enter",(0,b.oB)({opacity:1,transform:"translateY(0%)"})),(0,b.eR)("void => enter",[(0,b.oB)({opacity:0,transform:"translateY(-5px)"}),(0,b.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},j=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t}(),G=0,Y=new s.OlP("MatHint"),V=function(){var t=function t(){v(this,t),this.align="start",this.id="mat-hint-"+G++};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.uIk("id",e.id)("align",null),s.ekj("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[s._Bn([{provide:Y,useExisting:t}])]}),t}(),K=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-label"]]}),t}(),J=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-placeholder"]]}),t}(),Q=new s.OlP("MatPrefix"),W=new s.OlP("MatSuffix"),X=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","matSuffix",""]],features:[s._Bn([{provide:W,useExisting:t}])]}),t}(),$=0,tt=(0,c.pj)(function t(e){v(this,t),this._elementRef=e},"primary"),et=new s.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),it=new s.OlP("MatFormField"),nt=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o,a,s,u,c){var l;return v(this,i),(l=e.call(this,t))._elementRef=t,l._changeDetectorRef=n,l._dir=o,l._defaults=a,l._platform=s,l._ngZone=u,l._outlineGapCalculationNeededImmediately=!1,l._outlineGapCalculationNeededOnStable=!1,l._destroyed=new h.xQ,l._showAlwaysAnimate=!1,l._subscriptAnimationState="",l._hintLabel="",l._hintLabelId="mat-hint-"+$++,l._labelId="mat-form-field-label-"+$++,l.floatLabel=l._getDefaultFloatLabelState(),l._animationsEnabled="NoopAnimations"!==c,l.appearance=a&&a.appearance?a.appearance:"legacy",l._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,l}return y(i,[{key:"appearance",get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=(0,l.Ig)(t)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe((0,p.O)(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe((0,g.R)(this._destroyed)).subscribe(function(){return t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe((0,g.R)(t._destroyed)).subscribe(function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()})}),(0,d.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,p.O)(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,p.O)(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,g.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t.updateOutlineGap()})}):t.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,f.R)(this._label.nativeElement,"transitionend").pipe((0,m.q)(1)).subscribe(function(){t._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push.apply(t,r(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,i=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push.apply(t,r(this._errorChildren.map(function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,i=0,n=this._connectionContainerRef.nativeElement,r=n.querySelectorAll(".mat-form-field-outline-start"),o=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=n.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=t.children,c=this._getStartEnd(u[0].getBoundingClientRect()),l=0,h=0;h0?.75*l+10:0}for(var d=0;d1&&void 0!==arguments[1]?arguments[1]:t;return this._fontCssClassesByAlias.set(t,e),this}},{key:"classNameForFontAlias",value:function(t){return this._fontCssClassesByAlias.get(t)||t}},{key:"setDefaultFontSetClass",value:function(t){return this._defaultFontSetClass=t,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(t){var e=this,i=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,t);if(!i)throw S(t);var r=this._cachedIconsByUrl.get(i);return r?(0,l.of)(I(r)):this._loadSvgIconFromConfig(new x(t,null)).pipe((0,p.b)(function(t){return e._cachedIconsByUrl.set(i,t)}),(0,g.U)(function(t){return I(t)}))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=O(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t))return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);var r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):(0,h._)(C(i))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgText?(0,l.of)(I(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,g.U)(function(t){return I(t)}))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var i=this,r=this._extractIconWithNameFromAnySet(t,e);if(r)return(0,l.of)(r);var o=e.filter(function(t){return!t.svgText}).map(function(t){return i._loadSvgIconSetFromConfig(t).pipe((0,m.K)(function(e){var r=i._sanitizer.sanitize(n.q3G.RESOURCE_URL,t.url);return i._errorHandler.handleError(new Error("Loading icon set URL: ".concat(r," failed: ").concat(e.message))),(0,l.of)(null)}))});return(0,d.D)(o).pipe((0,g.U)(function(){var n=i._extractIconWithNameFromAnySet(t,e);if(!n)throw C(t);return n}))}},{key:"_extractIconWithNameFromAnySet",value:function(t,e){for(var i=e.length-1;i>=0;i--){var n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){var r=this._svgElementFromConfig(n),o=this._extractSvgIconFromSet(r,t,n.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(t){var e=this;return this._fetchIcon(t).pipe((0,p.b)(function(e){return t.svgText=e}),(0,g.U)(function(){return e._svgElementFromConfig(t)}))}},{key:"_loadSvgIconSetFromConfig",value:function(t){return t.svgText?(0,l.of)(null):this._fetchIcon(t).pipe((0,p.b)(function(e){return t.svgText=e}))}},{key:"_extractSvgIconFromSet",value:function(t,e,i){var n=t.querySelector('[id="'.concat(e,'"]'));if(!n)return null;var r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,i);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),i);var o=this._svgElementFromString("");return o.appendChild(r),this._setSvgAttributes(o,i)}},{key:"_svgElementFromString",value:function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}},{key:"_toSvgElement",value:function(t){for(var e=this._svgElementFromString(""),i=t.attributes,n=0;n-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),i}(b);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(s.t4),r.Y36(d.a5,10),r.Y36(d.F,8),r.Y36(d.sg,8),r.Y36(c.rD),r.Y36(p,10),r.Y36(n.Lq),r.Y36(r.R0b),r.Y36(l.G_,8))},t.\u0275dir=r.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&r.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(r.Ikx("disabled",e.disabled)("required",e.required),r.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),r.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[r._Bn([{provide:l.Eo,useExisting:t}]),r.qOj,r.TTD]}),t}(),_=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[c.rD],imports:[[n.Ky,l.lN,c.BQ],n.Ky,l.lN]}),t}()},85250:function(t,e,i){"use strict";i.d(e,{i$:function(){return _},Tg:function(){return T},ie:function(){return C}});var n=i(61511),r=i(31572),o=i(71522),s=i(19861),c=i(55959),l=i(25416),h=(i(56238),i(24621),i(4230),i(75842),i(16073),i(27679)),d=["*"],f=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],p=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],g=(0,o.Id)((0,o.Kr)(function t(){v(this,t)})),m=(0,o.Kr)(function t(){v(this,t)}),b=new r.OlP("MatList"),w=new r.OlP("MatNavList"),_=function(){var t=function(t){a(i,t);var e=u(i);function i(t){var n;return v(this,i),(n=e.call(this))._elementRef=t,n._stateChanges=new c.xQ,"action-list"===n._getListType()&&t.nativeElement.classList.add("mat-action-list"),n}return y(i,[{key:"_getListType",value:function(){var t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(g);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[r._Bn([{provide:b,useExisting:t}]),r.qOj,r.TTD],ngContentSelectors:d,decls:1,vars:0,template:function(t,e){1&t&&(r.F$t(),r.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t}(),A=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t}(),k=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t}(),T=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o){var a;v(this,i),(a=e.call(this))._element=t,a._isInteractiveList=!1,a._destroyed=new c.xQ,a._disabled=!1,a._isInteractiveList=!!(r||o&&"action-list"===o._getListType()),a._list=r||o;var s=a._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),a._list&&a._list._stateChanges.pipe((0,l.R)(a._destroyed)).subscribe(function(){n.markForCheck()}),a}return y(i,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(t){this._disabled=(0,s.Ig)(t)}},{key:"ngAfterContentInit",value:function(){(0,o.E0)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}]),i}(m);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(w,8),r.Y36(b,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){var n;(1&t&&(r.Suo(i,A,5),r.Suo(i,k,5),r.Suo(i,o.X2,5)),2&t)&&(r.iGM(n=r.CRH())&&(e._avatar=n.first),r.iGM(n=r.CRH())&&(e._icon=n.first),r.iGM(n=r.CRH())&&(e._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&r.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[r.qOj],ngContentSelectors:p,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(t,e){1&t&&(r.F$t(f),r.TgZ(0,"div",0),r._UZ(1,"div",1),r.Hsn(2),r.TgZ(3,"div",2),r.Hsn(4,1),r.qZA(),r.Hsn(5,2),r.qZA()),2&t&&(r.xp6(1),r.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[o.wG],encapsulation:2,changeDetection:0}),t}(),C=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[o.uc,o.si,o.BQ,o.us,n.ez],o.uc,o.BQ,o.us,h.t]}),t}()},8055:function(t,e,i){"use strict";i.d(e,{VK:function(){return j},OP:function(){return B},Tx:function(){return Q},p6:function(){return K}});var n=i(24621),s=i(19861),c=i(75842),h=i(31572),d=i(55959),f=i(87570),p=i(31906),g=i(40878),m=i(92709),b=i(56238),w=i(44689),_=i(90611),A=i(43835),k=i(25416),T=i(82628),C=i(10709),S=i(26899),E=i(61511),x=i(71522),R=i(2522),I=i(11353),O=i(4253),P=i(22526),D=["mat-menu-item",""],M=["*"];function L(t,e){if(1&t){var i=h.EpF();h.TgZ(0,"div",0),h.NdJ("keydown",function(t){return h.CHM(i),h.oxw()._handleKeydown(t)})("click",function(){return h.CHM(i),h.oxw().closed.emit("click")})("@transformMenu.start",function(t){return h.CHM(i),h.oxw()._onAnimationStart(t)})("@transformMenu.done",function(t){return h.CHM(i),h.oxw()._onAnimationDone(t)}),h.TgZ(1,"div",1),h.Hsn(2),h.qZA(),h.qZA()}if(2&t){var n=h.oxw();h.Q6J("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),h.uIk("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var N={transformMenu:(0,C.X$)("transformMenu",[(0,C.SB)("void",(0,C.oB)({opacity:0,transform:"scale(0.8)"})),(0,C.eR)("void => enter",(0,C.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,C.oB)({opacity:1,transform:"scale(1)"}))),(0,C.eR)("* => void",(0,C.jt)("100ms 25ms linear",(0,C.oB)({opacity:0})))]),fadeInItems:(0,C.X$)("fadeInItems",[(0,C.SB)("showing",(0,C.oB)({opacity:1})),(0,C.eR)("void => *",[(0,C.oB)({opacity:0}),(0,C.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},z=new h.OlP("MatMenuContent"),F=new h.OlP("MAT_MENU_PANEL"),Z=(0,x.Kr)((0,x.Id)(function t(){v(this,t)})),B=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this))._elementRef=t,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new d.xQ,a._focused=new d.xQ,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(l(a)),a}return y(i,[{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var t,e,i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe((0,_.q)(1)).subscribe(function(){return t._focusFirstItem(e)}):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var i=this._directDescendantItems.first._getHostElement().parentElement;i;){if("menu"===i.getAttribute("role")){i.focus();break}i=i.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e="mat-elevation-z".concat(Math.min(4+t,24)),i=Object.keys(this._classList).find(function(t){return t.startsWith("mat-elevation-z")});i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe((0,b.O)(this._allItems)).subscribe(function(e){t._directDescendantItems.reset(e.filter(function(e){return e._parentMenu===t})),t._directDescendantItems.notifyOnChanges()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(q))},t.\u0275dir=h.lG2({type:t,contentQueries:function(t,e,i){var n;(1&t&&(h.Suo(i,z,5),h.Suo(i,B,5),h.Suo(i,B,4)),2&t)&&(h.iGM(n=h.CRH())&&(e.lazyContent=n.first),h.iGM(n=h.CRH())&&(e._allItems=n),h.iGM(n=h.CRH())&&(e.items=n))},viewQuery:function(t,e){var i;(1&t&&h.Gf(h.Rgc,5),2&t)&&(h.iGM(i=h.CRH())&&(e.templateRef=i.first))},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t}(),j=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r){return v(this,i),e.call(this,t,n,r)}return i}(H);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(q))},t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&h.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[h._Bn([{provide:F,useExisting:t}]),h.qOj],ngContentSelectors:M,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(h.F$t(),h.YNc(0,L,3,6,"ng-template"))},directives:[E.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[N.transformMenu,N.fadeInItems]},changeDetection:0}),t}(),G=new h.OlP("mat-menu-scroll-strategy"),Y={provide:G,deps:[R.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},V=(0,I.i$)({passive:!0}),K=function(){var t=function(){function t(e,i,r,o,a,s,u,c){var l=this;v(this,t),this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=u,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=f.w.EMPTY,this._hoverSubscription=f.w.EMPTY,this._menuCloseSubscription=f.w.EMPTY,this._handleTouchStart=function(t){(0,n.yG)(t)||(l._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=o,this._parentMaterialMenu=a instanceof H?a:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,V),s&&(s._triggersSubmenu=this.triggersSubmenu())}return y(t,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"menu",get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(function(t){e._destroyMenu(t),"click"!==t&&"tab"!==t||!e._parentMaterialMenu||e._parentMaterialMenu.closed.emit(t)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,V),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),i=e.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return t.closeMenu()}),this._initMenu(),this.menu instanceof H&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"updatePosition",value:function(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}},{key:"_destroyMenu",value:function(t){var e=this;if(this._overlayRef&&this.menuOpen){var i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,i instanceof H?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe((0,A.h)(function(t){return"void"===t.toState}),(0,_.q)(1),(0,k.R)(i.lazyContent._attached)).subscribe({next:function(){return i.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new R.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe(function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(t){var e=o("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=e[0],n=e[1],r=o("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=r[0],s=r[1],u=a,c=s,l=i,h=n,d=0;this.triggersSubmenu()?(h=i="before"===this.menu.xPosition?"start":"end",n=l="end"===i?"start":"end",d="bottom"===a?8:-8):this.menu.overlapTrigger||(u="top"===a?"bottom":"top",c="top"===s?"bottom":"top"),t.withPositions([{originX:i,originY:u,overlayX:l,overlayY:a,offsetY:d},{originX:n,originY:u,overlayX:h,overlayY:a,offsetY:d},{originX:i,originY:c,overlayX:l,overlayY:s,offsetY:-d},{originX:n,originY:c,overlayX:h,overlayY:s,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,g.of)(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,A.h)(function(e){return e!==t._menuItemInstance}),(0,A.h)(function(){return t._menuOpen})):(0,g.of)();return(0,p.T)(e,n,r,i)}},{key:"_handleMousedown",value:function(t){(0,n.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;e!==c.K5&&e!==c.L_||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===c.SV&&"ltr"===this.dir||e===c.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,A.h)(function(e){return e===t._menuItemInstance&&!e.disabled}),(0,T.g)(0,m.e)).subscribe(function(){t._openedBy="mouse",t.menu instanceof H&&t.menu._isAnimating?t.menu._animationDone.pipe((0,_.q)(1),(0,T.g)(0,m.e),(0,k.R)(t._parentMaterialMenu._hovered())).subscribe(function(){return t.openMenu()}):t.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new S.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(R.aV),h.Y36(h.SBq),h.Y36(h.s_b),h.Y36(G),h.Y36(F,8),h.Y36(B,10),h.Y36(P.Is,8),h.Y36(n.tE))},t.\u0275dir=h.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&h.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&h.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t}(),J=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({providers:[Y],imports:[x.BQ]}),t}(),Q=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({providers:[Y],imports:[[E.ez,x.BQ,x.si,R.U8,J],O.ZD,x.BQ,J]}),t}()},73005:function(t,e,i){"use strict";i.d(e,{NW:function(){return x},TU:function(){return R}});var n=i(61511),r=i(31572),o=i(71522),s=i(15980),l=i(4786),h=i(36922),d=i(19861),f=i(55959),p=i(66283);function g(t,e){if(1&t&&(r.TgZ(0,"mat-option",19),r._uU(1),r.qZA()),2&t){var i=e.$implicit;r.Q6J("value",i),r.xp6(1),r.hij(" ",i," ")}}function m(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"mat-form-field",16),r.TgZ(1,"mat-select",17),r.NdJ("selectionChange",function(t){return r.CHM(i),r.oxw(2)._changePageSize(t.value)}),r.YNc(2,g,2,2,"mat-option",18),r.qZA(),r.qZA()}if(2&t){var n=r.oxw(2);r.Q6J("appearance",n._formFieldAppearance)("color",n.color),r.xp6(1),r.Q6J("value",n.pageSize)("disabled",n.disabled)("aria-label",n._intl.itemsPerPageLabel),r.xp6(1),r.Q6J("ngForOf",n._displayedPageSizeOptions)}}function b(t,e){if(1&t&&(r.TgZ(0,"div",20),r._uU(1),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Oqu(i.pageSize)}}function w(t,e){if(1&t&&(r.TgZ(0,"div",12),r.TgZ(1,"div",13),r._uU(2),r.qZA(),r.YNc(3,m,3,6,"mat-form-field",14),r.YNc(4,b,2,1,"div",15),r.qZA()),2&t){var i=r.oxw();r.xp6(2),r.hij(" ",i._intl.itemsPerPageLabel," "),r.xp6(1),r.Q6J("ngIf",i._displayedPageSizeOptions.length>1),r.xp6(1),r.Q6J("ngIf",i._displayedPageSizeOptions.length<=1)}}function _(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"button",21),r.NdJ("click",function(){return r.CHM(i),r.oxw().firstPage()}),r.O4$(),r.TgZ(1,"svg",7),r._UZ(2,"path",22),r.qZA(),r.qZA()}if(2&t){var n=r.oxw();r.Q6J("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),r.uIk("aria-label",n._intl.firstPageLabel)}}function A(t,e){if(1&t){var i=r.EpF();r.O4$(),r.kcU(),r.TgZ(0,"button",23),r.NdJ("click",function(){return r.CHM(i),r.oxw().lastPage()}),r.O4$(),r.TgZ(1,"svg",7),r._UZ(2,"path",24),r.qZA(),r.qZA()}if(2&t){var n=r.oxw();r.Q6J("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),r.uIk("aria-label",n._intl.lastPageLabel)}}var k=function(){var t=function t(){v(this,t),this.changes=new f.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,e,i){if(0==i||0==e)return"0 of ".concat(i);var n=t*e;return"".concat(n+1," \u2013 ").concat(n<(i=Math.max(i,0))?Math.min(n+e,i):n+e," of ").concat(i)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),T={provide:k,deps:[[new r.FiY,new r.tp0,k]],useFactory:function(t){return t||new k}},C=new r.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),S=(0,o.Id)((0,o.dB)(function t(){v(this,t)})),E=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,o){var a;if(v(this,i),(a=e.call(this))._intl=t,a._changeDetectorRef=n,a._pageIndex=0,a._length=0,a._pageSizeOptions=[],a._hidePageSize=!1,a._showFirstLastButtons=!1,a.page=new r.vpe,a._intlChanges=t.changes.subscribe(function(){return a._changeDetectorRef.markForCheck()}),o){var s=o.pageSize,u=o.pageSizeOptions,l=o.hidePageSize,h=o.showFirstLastButtons;null!=s&&(a._pageSize=s),null!=u&&(a._pageSizeOptions=u),null!=l&&(a._hidePageSize=l),null!=h&&(a._showFirstLastButtons=h)}return c(a)}return y(i,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(t){this._pageIndex=Math.max((0,d.su)(t),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(t){this._length=(0,d.su)(t),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(t){this._pageSize=Math.max((0,d.su)(t),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(t){this._pageSizeOptions=(t||[]).map(function(t){return(0,d.su)(t)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(t){this._hidePageSize=(0,d.Ig)(t)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(t){this._showFirstLastButtons=(0,d.Ig)(t)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var t=this.getNumberOfPages()-1;return this.pageIndex void",(0,O.IO)("@transformPanel",[(0,O.pV)()],{optional:!0}))]),transformPanel:(0,O.X$)("transformPanel",[(0,O.SB)("void",(0,O.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,O.SB)("showing",(0,O.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,O.SB)("showing-multiple",(0,O.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,O.eR)("void => *",(0,O.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,O.eR)("* => void",(0,O.jt)("100ms 25ms linear",(0,O.oB)({opacity:0})))])},j=0,G=new c.OlP("mat-select-scroll-strategy"),Y=new c.OlP("MAT_SELECT_CONFIG"),V={provide:G,deps:[o.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},K=function t(e,i){v(this,t),this.source=e,this.value=i},J=(0,h.Kr)((0,h.sb)((0,h.Id)((0,h.FD)(function t(e,i,n,r,o){v(this,t),this._elementRef=e,this._defaultErrorStateMatcher=i,this._parentForm=n,this._parentFormGroup=r,this.ngControl=o})))),Q=new c.OlP("MatSelectTrigger"),W=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=c.lG2({type:t,selectors:[["mat-select-trigger"]],features:[c._Bn([{provide:Q,useExisting:t}])]}),t}(),X=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,o,a,s,u,h,d,f,p,g,m,y,b){var w,R,I,O;return v(this,i),(w=e.call(this,s,a,h,d,p))._viewportRuler=t,w._changeDetectorRef=n,w._ngZone=o,w._dir=u,w._parentFormField=f,w.ngControl=p,w._liveAnnouncer=y,w._defaultOptions=b,w._panelOpen=!1,w._compareWith=function(t,e){return t===e},w._uid="mat-select-"+j++,w._triggerAriaLabelledBy=null,w._destroy=new _.xQ,w._onChange=function(){},w._onTouched=function(){},w._valueId="mat-select-value-"+j++,w._panelDoneAnimatingStream=new _.xQ,w._overlayPanelClass=(null===(R=w._defaultOptions)||void 0===R?void 0:R.overlayPanelClass)||"",w._focused=!1,w.controlType="mat-select",w._required=!1,w._multiple=!1,w._disableOptionCentering=null!==(O=null===(I=w._defaultOptions)||void 0===I?void 0:I.disableOptionCentering)&&void 0!==O&&O,w.ariaLabel="",w.optionSelectionChanges=(0,A.P)(function(){var t=w.options;return t?t.changes.pipe((0,T.O)(t),(0,C.w)(function(){return k.T.apply(void 0,r(t.map(function(t){return t.onSelectionChange})))})):w._ngZone.onStable.pipe((0,S.q)(1),(0,C.w)(function(){return w.optionSelectionChanges}))}),w.openedChange=new c.vpe,w._openedStream=w.openedChange.pipe((0,E.h)(function(t){return t}),(0,x.U)(function(){})),w._closedStream=w.openedChange.pipe((0,E.h)(function(t){return!t}),(0,x.U)(function(){})),w.selectionChange=new c.vpe,w.valueChange=new c.vpe,w.ngControl&&(w.ngControl.valueAccessor=l(w)),null!=(null==b?void 0:b.typeaheadDebounceInterval)&&(w._typeaheadDebounceInterval=b.typeaheadDebounceInterval),w._scrollStrategyFactory=m,w._scrollStrategy=w._scrollStrategyFactory(),w.tabIndex=parseInt(g)||0,w.id=w.id,w}return y(i,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(t){this._required=(0,m.Ig)(t),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=(0,m.Ig)(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=(0,m.Ig)(t)}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=(0,m.su)(t)}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new b.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,R.x)(),(0,I.R)(this._destroy)).subscribe(function(){return t._panelDoneAnimating(t.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,I.R)(this._destroy)).subscribe(function(t){t.added.forEach(function(t){return t.select()}),t.removed.forEach(function(t){return t.deselect()})}),this.options.changes.pipe((0,T.O)(null),(0,I.R)(this._destroy)).subscribe(function(){t._resetOptions(),t._initializeSelection()})}},{key:"ngDoCheck",value:function(){var t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){var e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(t){this.value=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map(function(t){return t.viewValue});return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}},{key:"_handleClosedKeydown",value:function(t){var e=t.keyCode,i=e===w.JH||e===w.LH||e===w.oh||e===w.SV,n=e===w.K5||e===w.L_,r=this._keyManager;if(!r.isTyping()&&n&&!(0,w.Vb)(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(t);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,i=t.keyCode,n=i===w.JH||i===w.LH,r=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(r||i!==w.K5&&i!==w.L_||!e.activeItem||(0,w.Vb)(t))if(!r&&this._multiple&&i===w.A&&t.ctrlKey){t.preventDefault();var o=this.options.some(function(t){return!t.disabled&&!t.selected});this.options.forEach(function(t){t.disabled||(o?t.select():t.deselect())})}else{var a=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==a&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var t=this;this._overlayDir.positionChange.pipe((0,S.q)(1)).subscribe(function(){t._changeDetectorRef.detectChanges(),t._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this._selectionModel.selected.forEach(function(t){return t.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(function(t){return e._selectValue(t)}),this._sortValues();else{var i=this._selectValue(t);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,i=this.options.find(function(i){if(e._selectionModel.isSelected(i))return!1;try{return null!=i.value&&e._compareWith(i.value,t)}catch(n){return!1}});return i&&this._selectionModel.select(i),i}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new g.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,I.R)(this._destroy)).subscribe(function(){t.panelOpen&&(!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close())}),this._keyManager.change.pipe((0,I.R)(this._destroy)).subscribe(function(){t._panelOpen&&t.panel?t._scrollOptionIntoView(t._keyManager.activeItemIndex||0):t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var t=this,e=(0,k.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,I.R)(e)).subscribe(function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())}),k.T.apply(void 0,r(this.options.map(function(t){return t._stateChanges}))).pipe((0,I.R)(e)).subscribe(function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})}},{key:"_onSelect",value:function(t,e){var i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort(function(i,n){return t.sortComparator?t.sortComparator(i,n,e):e.indexOf(i)-e.indexOf(n)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(t){var e;e=this.multiple?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_getPanelAriaLabelledby",value:function(){var t;if(this.ariaLabel)return null;var e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var t;if(this.ariaLabel)return null;var e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId(),i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}},{key:"_panelDoneAnimating",value:function(t){this.openedChange.emit(t)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),i}(J);return t.\u0275fac=function(e){return new(e||t)(c.Y36(p.rL),c.Y36(c.sBO),c.Y36(c.R0b),c.Y36(h.rD),c.Y36(c.SBq),c.Y36(P.Is,8),c.Y36(D.F,8),c.Y36(D.sg,8),c.Y36(f.G_,8),c.Y36(D.a5,10),c.$8M("tabindex"),c.Y36(G),c.Y36(g.Kd),c.Y36(Y,8))},t.\u0275dir=c.lG2({type:t,viewQuery:function(t,e){var i;(1&t&&(c.Gf(M,5),c.Gf(L,5),c.Gf(o.pI,5)),2&t)&&(c.iGM(i=c.CRH())&&(e.trigger=i.first),c.iGM(i=c.CRH())&&(e.panel=i.first),c.iGM(i=c.CRH())&&(e._overlayDir=i.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[c.qOj,c.TTD]}),t}(),$=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._scrollTop=0,t._triggerFontSize=0,t._transformOrigin="top",t._offsetY=0,t._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],t}return y(i,[{key:"_calculateOverlayScroll",value:function(t,e,i){var n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}},{key:"ngOnInit",value:function(){var t=this;n(d(i.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,I.R)(this._destroy)).subscribe(function(){t.panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var t=this;n(d(i.prototype),"_canOpen",this).call(this)&&(n(d(i.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(function(){t._triggerFontSize&&t._overlayDir.overlayRef&&t._overlayDir.overlayRef.overlayElement&&(t._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(t._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(t){var e=(0,h.CB)(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=(0,h.jH)((t+e)*i,i,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),n(d(i.prototype),"_panelDoneAnimating",this).call(this,t)}},{key:"_getChangeEvent",value:function(t){return new K(this,t)}},{key:"_calculateOverlayOffsetX",value:function(){var t,e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),n=this._isRtl(),r=this.multiple?56:32;if(this.multiple)t=40;else if(this.disableOptionCentering)t=16;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}n||(t*=-1);var a=0-(e.left+t-(n?r:0)),s=e.right+t-i.width+(n?0:r);a>0?t+=a+8:s>0&&(t-=s+8),this._overlayDir.offsetX=Math.round(t),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(t,e,i){var n,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(n=0===this._scrollTop?t*r:this._scrollTop===i?(t-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):e-r/2,Math.round(-1*n-o))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,r=i.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>n?this._adjustPanelDown(o,n,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(t,e){var i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(t,e,i){var n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var t,e=this._getItemHeight(),i=this._getItemCount(),n=Math.min(i*e,256),r=i*e-n;t=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),t+=(0,h.CB)(t,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(t,o,r),this._offsetY=this._calculateOverlayOffsetY(t,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-e+t/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),i}(X);return e.\u0275fac=function(i){return(t||(t=c.n5z(e)))(i||e)},e.\u0275cmp=c.Xpm({type:e,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;(1&t&&(c.Suo(i,Q,5),c.Suo(i,h.ey,5),c.Suo(i,h.K7,5)),2&t)&&(c.iGM(n=c.CRH())&&(e.customTrigger=n.first),c.iGM(n=c.CRH())&&(e.options=n),c.iGM(n=c.CRH())&&(e.optionGroups=n))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&c.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(c.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),c.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[c._Bn([{provide:f.Eo,useExisting:e},{provide:h.HF,useExisting:e}]),c.qOj],ngContentSelectors:U,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(t,e){if(1&t&&(c.F$t(q),c.TgZ(0,"div",0,1),c.NdJ("click",function(){return e.toggle()}),c.TgZ(3,"div",2),c.YNc(4,N,2,1,"span",3),c.YNc(5,Z,3,2,"span",4),c.qZA(),c.TgZ(6,"div",5),c._UZ(7,"div",6),c.qZA(),c.qZA(),c.YNc(8,B,4,14,"ng-template",7),c.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){var i=c.MAs(1);c.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),c.xp6(3),c.Q6J("ngSwitch",e.empty),c.uIk("id",e._valueId),c.xp6(1),c.Q6J("ngSwitchCase",!0),c.xp6(1),c.Q6J("ngSwitchCase",!1),c.xp6(3),c.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[o.xu,s.RF,s.n9,o.pI,s.ED,s.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[H.transformPanelWrap,H.transformPanel]},changeDetection:0}),e}(),tt=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({providers:[V],imports:[[s.ez,o.U8,h.Ng,h.BQ],p.ZD,f.lN,h.Ng,h.BQ]}),t}()},25122:function(t,e,i){"use strict";i.d(e,{JX:function(){return Y},TM:function(){return V},Rh:function(){return G},SJ:function(){return K}});var n=i(11353),r=i(4253),o=i(61511),s=i(31572),c=i(71522),l=i(19861),h=i(75842),d=i(55959),f=i(87254),p=i(31906),g=i(43835),m=i(79996),b=i(88414),w=i(25416),_=i(98720),A=i(90611),k=i(56238),T=i(47701),C=i(10709),S=i(43490),E=i(24621),x=i(22526),R=["*"];function I(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){return s.CHM(i),s.oxw()._onBackdropClicked()}),s.qZA()}if(2&t){var n=s.oxw();s.ekj("mat-drawer-shown",n._isShowingBackdrop())}}function O(t,e){1&t&&(s.TgZ(0,"mat-drawer-content"),s.Hsn(1,2),s.qZA())}var P=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],D=["mat-drawer","mat-drawer-content","*"];function M(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){return s.CHM(i),s.oxw()._onBackdropClicked()}),s.qZA()}if(2&t){var n=s.oxw();s.ekj("mat-drawer-shown",n._isShowingBackdrop())}}function L(t,e){1&t&&(s.TgZ(0,"mat-sidenav-content",3),s.Hsn(1,2),s.qZA())}var N=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],z=["mat-sidenav","mat-sidenav-content","*"],F=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",Z={transformDrawer:(0,C.X$)("transform",[(0,C.SB)("open, open-instant",(0,C.oB)({transform:"none",visibility:"visible"})),(0,C.SB)("void",(0,C.oB)({"box-shadow":"none",visibility:"hidden"})),(0,C.eR)("void => open-instant",(0,C.jt)("0ms")),(0,C.eR)("void <=> open, open-instant => void",(0,C.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},B=new s.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),q=new s.OlP("MAT_DRAWER_CONTAINER"),U=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o,a){var s;return v(this,i),(s=e.call(this,r,o,a))._changeDetectorRef=t,s._container=n,s}return y(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._container._contentMarginChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})}}]),i}(r.PQ);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36((0,s.Gpc)(function(){return j})),s.Y36(s.SBq),s.Y36(r.mF),s.Y36(s.R0b))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.qOj],ngContentSelectors:R,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),t}(),H=function(){var t=function(){function t(e,i,n,r,o,a,u){var c=this;v(this,t),this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=n,this._platform=r,this._ngZone=o,this._doc=a,this._container=u,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new d.xQ,this._animationEnd=new d.xQ,this._animationState="void",this.openedChange=new s.vpe(!0),this._openedStream=this.openedChange.pipe((0,g.h)(function(t){return t}),(0,m.U)(function(){})),this.openedStart=this._animationStarted.pipe((0,g.h)(function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")}),(0,b.h)(void 0)),this._closedStream=this.openedChange.pipe((0,g.h)(function(t){return!t}),(0,m.U)(function(){})),this.closedStart=this._animationStarted.pipe((0,g.h)(function(t){return t.fromState!==t.toState&&"void"===t.toState}),(0,b.h)(void 0)),this._destroyed=new d.xQ,this.onPositionChanged=new s.vpe,this._modeChanged=new d.xQ,this.openedChange.subscribe(function(t){t?(c._doc&&(c._elementFocusedBeforeDrawerWasOpened=c._doc.activeElement),c._takeFocus()):c._isFocusWithinDrawer()&&c._restoreFocus()}),this._ngZone.runOutsideAngular(function(){(0,f.R)(c._elementRef.nativeElement,"keydown").pipe((0,g.h)(function(t){return t.keyCode===h.hY&&!c.disableClose&&!(0,h.Vb)(t)}),(0,w.R)(c._destroyed)).subscribe(function(t){return c._ngZone.run(function(){c.close(),t.stopPropagation(),t.preventDefault()})})}),this._animationEnd.pipe((0,_.x)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){var e=t.fromState,i=t.toState;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&c.openedChange.emit(c._opened)})}return y(t,[{key:"position",get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(t){this._disableClose=(0,l.Ig)(t)}},{key:"autoFocus",get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=(0,l.Ig)(t)}},{key:"opened",get:function(){return this._opened},set:function(t){this.toggle((0,l.Ig)(t))}},{key:"_takeFocus",value:function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()})}},{key:"_restoreFocus",value:function(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}},{key:"_isFocusWithinDrawer",value:function(){var t,e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(t){return this.toggle(!0,t)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0)}},{key:"toggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,e=arguments.length>1?arguments[1]:void 0;return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}},{key:"_setOpen",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"program";return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(function(t){i.openedChange.pipe((0,A.q)(1)).subscribe(function(e){return t(e?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(t){this._animationStarted.next(t)}},{key:"_animationDoneListener",value:function(t){this._animationEnd.next(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(E.qV),s.Y36(E.tE),s.Y36(n.t4),s.Y36(s.R0b),s.Y36(o.K0,8),s.Y36(q,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&s.WFA("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(s.uIk("align",null),s.d8E("@transform",e._animationState),s.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:R,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},directives:[r.PQ],encapsulation:2,data:{animation:[Z.transformDrawer]},changeDetection:0}),t}(),j=function(){var t=function(){function t(e,i,n,r,o){var a=this,u=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6?arguments[6]:void 0;v(this,t),this._dir=e,this._element=i,this._ngZone=n,this._changeDetectorRef=r,this._animationMode=c,this._drawers=new s.n_E,this.backdropClick=new s.vpe,this._destroyed=new d.xQ,this._doCheckSubject=new d.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new d.xQ,e&&e.change.pipe((0,w.R)(this._destroyed)).subscribe(function(){a._validateDrawers(),a.updateContentMargins()}),o.change().pipe((0,w.R)(this._destroyed)).subscribe(function(){return a.updateContentMargins()}),this._autosize=u}return y(t,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(t){this._autosize=(0,l.Ig)(t)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:(0,l.Ig)(t)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var t=this;this._allDrawers.changes.pipe((0,k.O)(this._allDrawers),(0,w.R)(this._destroyed)).subscribe(function(e){t._drawers.reset(e.filter(function(e){return!e._container||e._container===t})),t._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,k.O)(null)).subscribe(function(){t._validateDrawers(),t._drawers.forEach(function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)}),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._doCheckSubject.pipe((0,T.b)(10),(0,w.R)(t._destroyed)).subscribe(function(){return t.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(t){return t.open()})}},{key:"close",value:function(){this._drawers.forEach(function(t){return t.close()})}},{key:"updateContentMargins",value:function(){var t=this,e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){var n=this._left._getWidth();e+=n,i-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){var r=this._right._getWidth();i+=r,e-=r}i=i||null,(e=e||null)===this._contentMargins.left&&i===this._contentMargins.right||(this._contentMargins={left:e,right:i},this._ngZone.run(function(){return t._contentMarginChanges.next(t._contentMargins)}))}},{key:"ngDoCheck",value:function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return t._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(t){var e=this;t._animationStarted.pipe((0,g.h)(function(t){return t.fromState!==t.toState}),(0,w.R)(this._drawers.changes)).subscribe(function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe((0,w.R)(this._drawers.changes)).subscribe(function(){return e._setContainerClass(t.opened)})}},{key:"_watchDrawerPosition",value:function(t){var e=this;t&&t.onPositionChanged.pipe((0,w.R)(this._drawers.changes)).subscribe(function(){e._ngZone.onMicrotaskEmpty.pipe((0,A.q)(1)).subscribe(function(){e._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(t){var e=this;t&&t._modeChanged.pipe((0,w.R)((0,p.T)(this._drawers.changes,this._destroyed))).subscribe(function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(t){var e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}},{key:"_validateDrawers",value:function(){var t=this;this._start=this._end=null,this._drawers.forEach(function(e){"end"==e.position?t._end=e:t._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)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var t=this;[this._start,this._end].filter(function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)}).forEach(function(t){return t._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(t){return"side"!==t.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(t){return null!=t&&t.opened}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(x.Is,8),s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(r.rL),s.Y36(B),s.Y36(S.Qb,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){var n;(1&t&&(s.Suo(i,U,5),s.Suo(i,H,5)),2&t)&&(s.iGM(n=s.CRH())&&(e._content=n.first),s.iGM(n=s.CRH())&&(e._allDrawers=n))},viewQuery:function(t,e){var i;(1&t&&s.Gf(U,5),2&t)&&(s.iGM(i=s.CRH())&&(e._userContent=i.first))},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[s._Bn([{provide:q,useExisting:t}])],ngContentSelectors:D,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(t,e){1&t&&(s.F$t(P),s.YNc(0,I,1,2,"div",0),s.Hsn(1),s.Hsn(2,1),s.YNc(3,O,2,0,"mat-drawer-content",1)),2&t&&(s.Q6J("ngIf",e.hasBackdrop),s.xp6(3),s.Q6J("ngIf",!e._content))},directives:[o.O5,U],styles:[F],encapsulation:2,changeDetection:0}),t}(),G=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o,a){return v(this,i),e.call(this,t,n,r,o,a)}return i}(U);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36((0,s.Gpc)(function(){return V})),s.Y36(s.SBq),s.Y36(r.mF),s.Y36(s.R0b))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.qOj],ngContentSelectors:R,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),t}(),Y=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return y(i,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=(0,l.Ig)(t)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=(0,l.su)(t)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=(0,l.su)(t)}}]),i}(H);return e.\u0275fac=function(i){return(t||(t=s.n5z(e)))(i||e)},e.\u0275cmp=s.Xpm({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(s.uIk("align",null),s.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),s.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[s.qOj],ngContentSelectors:R,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},directives:[r.PQ],encapsulation:2,data:{animation:[Z.transformDrawer]},changeDetection:0}),e}(),V=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(j);return e.\u0275fac=function(i){return(t||(t=s.n5z(e)))(i||e)},e.\u0275cmp=s.Xpm({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){var n;(1&t&&(s.Suo(i,G,5),s.Suo(i,Y,5)),2&t)&&(s.iGM(n=s.CRH())&&(e._content=n.first),s.iGM(n=s.CRH())&&(e._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[s._Bn([{provide:q,useExisting:e}]),s.qOj],ngContentSelectors:z,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(s.F$t(N),s.YNc(0,M,1,2,"div",0),s.Hsn(1),s.Hsn(2,1),s.YNc(3,L,2,0,"mat-sidenav-content",1)),2&t&&(s.Q6J("ngIf",e.hasBackdrop),s.xp6(3),s.Q6J("ngIf",!e._content))},directives:[o.O5,G,r.PQ],styles:[F],encapsulation:2,changeDetection:0}),e}(),K=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o.ez,c.BQ,n.ud,r.ZD],r.ZD,c.BQ]}),t}()},27521:function(t,e,i){"use strict";i.d(e,{Rr:function(){return T},rP:function(){return S}});var n=i(36337),r=i(31572),o=i(71522),s=i(19861),c=i(16073),l=i(43490),h=i(24621),d=["thumbContainer"],f=["toggleBar"],p=["input"],g=function(t){return{enterDuration:t}},m=["*"],b=new r.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),w=0,_={provide:c.JU,useExisting:(0,r.Gpc)(function(){return T}),multi:!0},A=function t(e,i){v(this,t),this.source=e,this.checked=i},k=(0,o.sb)((0,o.pj)((0,o.Kr)((0,o.Id)(function t(e){v(this,t),this._elementRef=e})))),T=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,o,a,s,u){var c;return v(this,i),(c=e.call(this,t))._focusMonitor=n,c._changeDetectorRef=o,c.defaults=s,c._onChange=function(t){},c._onTouched=function(){},c._uniqueId="mat-slide-toggle-"+ ++w,c._required=!1,c._checked=!1,c.name=null,c.id=c._uniqueId,c.labelPosition="after",c.ariaLabel=null,c.ariaLabelledby=null,c.change=new r.vpe,c.toggleChange=new r.vpe,c.tabIndex=parseInt(a)||0,c.color=c.defaultColor=s.color||"accent",c._noopAnimations="NoopAnimations"===u,c}return y(i,[{key:"required",get:function(){return this._required},set:function(t){this._required=(0,s.Ig)(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=(0,s.Ig)(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){"keyboard"===e||"program"===e?t._inputElement.nativeElement.focus():e||Promise.resolve().then(function(){return t._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new A(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),i}(k);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(h.tE),r.Y36(r.sBO),r.$8M("tabindex"),r.Y36(b),r.Y36(l.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var i;(1&t&&(r.Gf(d,5),r.Gf(f,5),r.Gf(p,5)),2&t)&&(r.iGM(i=r.CRH())&&(e._thumbEl=i.first),r.iGM(i=r.CRH())&&(e._thumbBarEl=i.first),r.iGM(i=r.CRH())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Ikx("id",e.id),r.uIk("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),r.ekj("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[r._Bn([_]),r.qOj],ngContentSelectors:m,decls:16,vars:19,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(r.F$t(),r.TgZ(0,"label",0,1),r.TgZ(2,"div",2,3),r.TgZ(4,"input",4,5),r.NdJ("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),r.qZA(),r.TgZ(6,"div",6,7),r._UZ(8,"div",8),r.TgZ(9,"div",9),r._UZ(10,"div",10),r.qZA(),r.qZA(),r.qZA(),r.TgZ(11,"span",11,12),r.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),r.TgZ(13,"span",13),r._uU(14,"\xa0"),r.qZA(),r.Hsn(15),r.qZA(),r.qZA()),2&t){var i=r.MAs(1),n=r.MAs(12);r.uIk("for",e.inputId),r.xp6(2),r.ekj("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),r.xp6(2),r.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),r.uIk("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),r.xp6(5),r.Q6J("matRippleTrigger",i)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r.VKq(17,g,e._noopAnimations?0:150))}},directives:[o.wG,n.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{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%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t}(),C=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}(),S=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[C,o.si,o.BQ,n.Q8],C,o.BQ]}),t}()},71403:function(t,e,i){"use strict";i.d(e,{ZX:function(){return c}});var n=i(2522),r=i(26899),o=i(61511),a=i(31572),s=i(71522),u=i(15980);i(55959),i(90611),i(10709),i(11353);var c=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[n.U8,r.eL,o.ez,u.ot,s.BQ],s.BQ]}),t}()},58623:function(t,e,i){"use strict";i.d(e,{YE:function(){return _},nU:function(){return E},JX:function(){return x}});var n=i(31572),r=i(19861),o=i(71522),s=i(75842),c=i(55959),l=i(31906),h=i(10709),d=i(61511),f=i(24621),p=["mat-sort-header",""];function g(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){return n.CHM(i),n.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return n.CHM(i),n.oxw()._disableViewStateAnimation=!1}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6),n._UZ(4,"div",7),n._UZ(5,"div",8),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",r._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",r._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",r._getArrowDirectionState())}}var m=["*"],b=new n.OlP("MAT_SORT_DEFAULT_OPTIONS"),w=(0,o.dB)((0,o.Id)(function t(){v(this,t)})),_=function(){var t=function(t){a(i,t);var e=u(i);function i(t){var r;return v(this,i),(r=e.call(this))._defaultOptions=t,r.sortables=new Map,r._stateChanges=new c.xQ,r.start="asc",r._direction="",r.sortChange=new n.vpe,r}return y(i,[{key:"direction",get:function(){return this._direction},set:function(t){this._direction=t}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=(0,r.Ig)(t)}},{key:"register",value:function(t){this.sortables.set(t.id,t)}},{key:"deregister",value:function(t){this.sortables.delete(t.id)}},{key:"sort",value:function(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(t){var e,i,n;if(!t)return"";var r=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear),o=function(t,e){var i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,r),a=o.indexOf(this.direction)+1;return a>=o.length&&(a=0),o[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(w);return t.\u0275fac=function(e){return new(e||t)(n.Y36(b,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.qOj,n.TTD]}),t}(),A=o.mZ.ENTERING+" "+o.yN.STANDARD_CURVE,k={indicator:(0,h.X$)("indicator",[(0,h.SB)("active-asc, asc",(0,h.oB)({transform:"translateY(0px)"})),(0,h.SB)("active-desc, desc",(0,h.oB)({transform:"translateY(10px)"})),(0,h.eR)("active-asc <=> active-desc",(0,h.jt)(A))]),leftPointer:(0,h.X$)("leftPointer",[(0,h.SB)("active-asc, asc",(0,h.oB)({transform:"rotate(-45deg)"})),(0,h.SB)("active-desc, desc",(0,h.oB)({transform:"rotate(45deg)"})),(0,h.eR)("active-asc <=> active-desc",(0,h.jt)(A))]),rightPointer:(0,h.X$)("rightPointer",[(0,h.SB)("active-asc, asc",(0,h.oB)({transform:"rotate(45deg)"})),(0,h.SB)("active-desc, desc",(0,h.oB)({transform:"rotate(-45deg)"})),(0,h.eR)("active-asc <=> active-desc",(0,h.jt)(A))]),arrowOpacity:(0,h.X$)("arrowOpacity",[(0,h.SB)("desc-to-active, asc-to-active, active",(0,h.oB)({opacity:1})),(0,h.SB)("desc-to-hint, asc-to-hint, hint",(0,h.oB)({opacity:.54})),(0,h.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,h.oB)({opacity:0})),(0,h.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,h.jt)("0ms")),(0,h.eR)("* <=> *",(0,h.jt)(A))]),arrowPosition:(0,h.X$)("arrowPosition",[(0,h.eR)("* => desc-to-hint, * => desc-to-active",(0,h.jt)(A,(0,h.F4)([(0,h.oB)({transform:"translateY(-25%)"}),(0,h.oB)({transform:"translateY(0)"})]))),(0,h.eR)("* => hint-to-desc, * => active-to-desc",(0,h.jt)(A,(0,h.F4)([(0,h.oB)({transform:"translateY(0)"}),(0,h.oB)({transform:"translateY(25%)"})]))),(0,h.eR)("* => asc-to-hint, * => asc-to-active",(0,h.jt)(A,(0,h.F4)([(0,h.oB)({transform:"translateY(25%)"}),(0,h.oB)({transform:"translateY(0)"})]))),(0,h.eR)("* => hint-to-asc, * => active-to-asc",(0,h.jt)(A,(0,h.F4)([(0,h.oB)({transform:"translateY(0)"}),(0,h.oB)({transform:"translateY(-25%)"})]))),(0,h.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,h.oB)({transform:"translateY(0)"})),(0,h.SB)("hint-to-desc, active-to-desc, desc",(0,h.oB)({transform:"translateY(-25%)"})),(0,h.SB)("hint-to-asc, active-to-asc, asc",(0,h.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,h.X$)("allowChildren",[(0,h.eR)("* <=> *",[(0,h.IO)("@*",(0,h.pV)(),{optional:!0})])])},T=function(){var t=function t(){v(this,t),this.changes=new c.xQ};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),C={provide:T,deps:[[new n.FiY,new n.tp0,T]],useFactory:function(t){return t||new T}},S=(0,o.Id)(function t(){v(this,t)}),E=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o,a,s){var u;return v(this,i),(u=e.call(this))._intl=t,u._changeDetectorRef=n,u._sort=r,u._columnDef=o,u._focusMonitor=a,u._elementRef=s,u._showIndicatorHint=!1,u._viewState={},u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",u._handleStateChanges(),u}return y(i,[{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=(0,r.Ig)(t)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){var i=!!e;i!==t._showIndicatorHint&&(t._setIndicatorHintVisible(i),t._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(t){this._isDisabled()||t.keyCode!==s.L_&&t.keyCode!==s.K5||(t.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var t=this._viewState.fromState;return(t?"".concat(t,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var t=this;this._rerenderSubscription=(0,l.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){t._isSorted()&&(t._updateArrowDirection(),"hint"!==t._viewState.toState&&"active"!==t._viewState.toState||(t._disableViewStateAnimation=!0),t._setAnimationTransitionState({fromState:t._arrowDirection,toState:"active"}),t._showIndicatorHint=!1),!t._isSorted()&&t._viewState&&"active"===t._viewState.toState&&(t._disableViewStateAnimation=!1,t._setAnimationTransitionState({fromState:"active",toState:t._arrowDirection})),t._changeDetectorRef.markForCheck()})}}]),i}(S);return t.\u0275fac=function(e){return new(e||t)(n.Y36(T),n.Y36(n.sBO),n.Y36(_,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36(f.tE),n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(n.uIk("aria-sort",e._getAriaSortAttribute()),n.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[n.qOj],attrs:p,ngContentSelectors:m,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,g,6,6,"div",2),n.qZA()),2&t&&(n.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),n.uIk("tabindex",e._isDisabled()?null:0),n.xp6(3),n.Q6J("ngIf",e._renderArrow()))},directives:[d.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[k.indicator,k.leftPointer,k.rightPointer,k.arrowOpacity,k.arrowPosition,k.allowChildren]},changeDetection:0}),t}(),x=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[C],imports:[[d.ez,o.BQ]]}),t}()},70663:function(t,e,i){"use strict";i.d(e,{C0:function(){return ft},VY:function(){return rt},Vq:function(){return mt},T5:function(){return wt},Ic:function(){return yt},fd:function(){return bt}});var r=i(26899),o=i(24621),s=i(22526),c=i(19861),l=i(75842),h=i(61511),f=i(31572),p=i(55959),g=i(40878),m=i(56238),b=i(25416);function w(t,e){1&t&&f.Hsn(0)}var _=["*"],A=function(){var t=function(){function t(e){v(this,t),this._elementRef=e}return y(t,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Y36(f.SBq))},t.\u0275dir=f.lG2({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t}(),k=function(){var t=function t(e){v(this,t),this.template=e};return t.\u0275fac=function(e){return new(e||t)(f.Y36(f.Rgc))},t.\u0275dir=f.lG2({type:t,selectors:[["","cdkStepLabel",""]]}),t}(),T=0,C=new f.OlP("STEPPER_GLOBAL_OPTIONS"),S=function(){var t=function(){function t(e,i){v(this,t),this._stepper=e,this.interacted=!1,this.interactedStream=new f.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}return y(t,[{key:"editable",get:function(){return this._editable},set:function(t){this._editable=(0,c.Ig)(t)}},{key:"optional",get:function(){return this._optional},set:function(t){this._optional=(0,c.Ig)(t)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(t){this._completedOverride=(0,c.Ig)(t)}},{key:"_getDefaultCompleted",value:function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}},{key:"hasError",get:function(){return null==this._customError?this._getDefaultError():this._customError},set:function(t){this._customError=(0,c.Ig)(t)}},{key:"_getDefaultError",value:function(){return this.stepControl&&this.stepControl.invalid&&this.interacted}},{key:"select",value:function(){this._stepper.selected=this}},{key:"reset",value:function(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}},{key:"ngOnChanges",value:function(){this._stepper._stateChanged()}},{key:"_markAsInteracted",value:function(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Y36((0,f.Gpc)(function(){return E})),f.Y36(C,8))},t.\u0275cmp=f.Xpm({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){var n;(1&t&&f.Suo(i,k,5),2&t)&&(f.iGM(n=f.CRH())&&(e.stepLabel=n.first))},viewQuery:function(t,e){var i;(1&t&&f.Gf(f.Rgc,7),2&t)&&(f.iGM(i=f.CRH())&&(e.content=i.first))},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[f.TTD],ngContentSelectors:_,decls:1,vars:0,template:function(t,e){1&t&&(f.F$t(),f.YNc(0,w,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t}(),E=function(){var t=function(){function t(e,i,n,r){v(this,t),this._dir=e,this._changeDetectorRef=i,this._elementRef=n,this._destroyed=new p.xQ,this.steps=new f.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new f.vpe,this._orientation="horizontal",this._groupId=T++,this._document=r}return y(t,[{key:"linear",get:function(){return this._linear},set:function(t){this._linear=(0,c.Ig)(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){var e,i=(0,c.su)(t);this.steps&&this._steps?(this._isValidIndex(t),null===(e=this.selected)||void 0===e||e._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=i}},{key:"selected",get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0},set:function(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}},{key:"orientation",get:function(){return this._orientation},set:function(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===t)}},{key:"ngAfterContentInit",value:function(){var t=this;this._steps.changes.pipe((0,m.O)(this._steps),(0,b.R)(this._destroyed)).subscribe(function(e){t.steps.reset(e.filter(function(e){return e._stepper===t})),t.steps.notifyOnChanges()})}},{key:"ngAfterViewInit",value:function(){var t=this;this._keyManager=new o.Em(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,g.of)()).pipe((0,m.O)(this._layoutDirection()),(0,b.R)(this._destroyed)).subscribe(function(e){return t._keyManager.withHorizontalOrientation(e)}),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(function(){t.selected||(t._selectedIndex=Math.max(t._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}},{key:"ngOnDestroy",value:function(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"next",value:function(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}},{key:"previous",value:function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}},{key:"reset",value:function(){this._updateSelectedItemIndex(0),this.steps.forEach(function(t){return t.reset()}),this._stateChanged()}},{key:"_getStepLabelId",value:function(t){return"cdk-step-label-".concat(this._groupId,"-").concat(t)}},{key:"_getStepContentId",value:function(t){return"cdk-step-content-".concat(this._groupId,"-").concat(t)}},{key:"_stateChanged",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_getAnimationDirection",value:function(t){var e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}},{key:"_getIndicatorType",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}},{key:"_getDefaultIndicatorLogic",value:function(t,e){return t._showError&&t.hasError&&!e?"error":!t.completed||e?"number":t.editable?"edit":"done"}},{key:"_getGuidelineLogic",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number";return t._showError&&t.hasError&&!e?"error":t.completed&&!e?"done":t.completed&&e?i:t.editable&&e?"edit":i}},{key:"_isCurrentStep",value:function(t){return this._selectedIndex===t}},{key:"_getFocusIndex",value:function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}},{key:"_updateSelectedItemIndex",value:function(t){var e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}},{key:"_onKeydown",value:function(t){var e=(0,l.Vb)(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==l.L_&&i!==l.K5?n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}},{key:"_anyControlsInvalidOrPending",value:function(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(function(t){var e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}},{key:"_layoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}},{key:"_isValidIndex",value:function(t){return t>-1&&(!this.steps||t *",(0,F.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,F.X$)("verticalStepTransition",[(0,F.SB)("previous",(0,F.oB)({height:"0px",visibility:"hidden"})),(0,F.SB)("next",(0,F.oB)({height:"0px",visibility:"hidden"})),(0,F.SB)("current",(0,F.oB)({height:"*",visibility:"inherit"})),(0,F.eR)("* <=> current",(0,F.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},ht=function(){var t=function t(e){v(this,t),this.templateRef=e};return t.\u0275fac=function(e){return new(e||t)(f.Y36(f.Rgc))},t.\u0275dir=f.lG2({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t}(),dt=function(){var t=function t(e){v(this,t),this._template=e};return t.\u0275fac=function(e){return new(e||t)(f.Y36(f.Rgc))},t.\u0275dir=f.lG2({type:t,selectors:[["ng-template","matStepContent",""]]}),t}(),ft=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t,o))._errorStateMatcher=n,a._viewContainerRef=r,a._isSelected=M.w.EMPTY,a}return y(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._isSelected=this._stepper.steps.changes.pipe((0,L.w)(function(){return t._stepper.selectionChange.pipe((0,N.U)(function(e){return e.selectedStep===t}),(0,m.O)(t._stepper.selected===t))})).subscribe(function(e){e&&t._lazyContent&&!t._portal&&(t._portal=new r.UE(t._lazyContent._template,t._viewContainerRef))})}},{key:"ngOnDestroy",value:function(){this._isSelected.unsubscribe()}},{key:"isErrorState",value:function(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}]),i}(S);return t.\u0275fac=function(e){return new(e||t)(f.Y36((0,f.Gpc)(function(){return mt})),f.Y36(P.rD,4),f.Y36(f.s_b),f.Y36(C,8))},t.\u0275cmp=f.Xpm({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){var n;(1&t&&(f.Suo(i,rt,5),f.Suo(i,dt,5)),2&t)&&(f.iGM(n=f.CRH())&&(e.stepLabel=n.first),f.iGM(n=f.CRH())&&(e._lazyContent=n.first))},inputs:{color:"color"},exportAs:["matStep"],features:[f._Bn([{provide:P.rD,useExisting:t},{provide:S,useExisting:t}]),f.qOj],ngContentSelectors:J,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(f.F$t(),f.YNc(0,K,2,1,"ng-template"))},directives:[r.Pl],encapsulation:2,changeDetection:0}),t}(),pt=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(E);return e.\u0275fac=function(i){return(t||(t=f.n5z(e)))(i||e)},e.\u0275dir=f.lG2({type:e,features:[f.qOj]}),e}(),gt=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(pt);return e.\u0275fac=function(i){return(t||(t=f.n5z(e)))(i||e)},e.\u0275dir=f.lG2({type:e,selectors:[["mat-horizontal-stepper"]],features:[f.qOj]}),e}(),vt=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(pt);return e.\u0275fac=function(i){return(t||(t=f.n5z(e)))(i||e)},e.\u0275dir=f.lG2({type:e,selectors:[["mat-vertical-stepper"]],features:[f.qOj]}),e}(),mt=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o){var a;v(this,i),(a=e.call(this,t,n,r,o)).steps=new f.n_E,a.animationDone=new f.vpe,a.labelPosition="end",a._iconOverrides={},a._animationDone=new p.xQ;var s=r.nativeElement.nodeName.toLowerCase();return a.orientation="mat-vertical-stepper"===s?"vertical":"horizontal",a}return y(i,[{key:"ngAfterContentInit",value:function(){var t=this;n(d(i.prototype),"ngAfterContentInit",this).call(this),this._icons.forEach(function(e){var i=e.name,n=e.templateRef;return t._iconOverrides[i]=n}),this.steps.changes.pipe((0,b.R)(this._destroyed)).subscribe(function(){t._stateChanged()}),this._animationDone.pipe((0,z.x)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}),(0,b.R)(this._destroyed)).subscribe(function(e){"current"===e.toState&&t.animationDone.emit()})}}]),i}(E);return t.\u0275fac=function(e){return new(e||t)(f.Y36(s.Is,8),f.Y36(f.sBO),f.Y36(f.SBq),f.Y36(h.K0))},t.\u0275cmp=f.Xpm({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,e,i){var n;(1&t&&(f.Suo(i,ft,5),f.Suo(i,ht,5)),2&t)&&(f.iGM(n=f.CRH())&&(e._steps=n),f.iGM(n=f.CRH())&&(e._icons=n))},viewQuery:function(t,e){var i;(1&t&&f.Gf(ct,5),2&t)&&(f.iGM(i=f.CRH())&&(e._stepHeader=i))},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,e){2&t&&(f.uIk("aria-orientation",e.orientation),f.ekj("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[f._Bn([{provide:E,useExisting:t},{provide:gt,useExisting:t},{provide:vt,useExisting:t}]),f.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(t,e){1&t&&(f.ynx(0,0),f.YNc(1,tt,5,2,"ng-container",1),f.YNc(2,it,2,1,"ng-container",1),f.BQk(),f.YNc(3,nt,1,22,"ng-template",null,2,f.W1O)),2&t&&(f.Q6J("ngSwitch",e.orientation),f.xp6(1),f.Q6J("ngSwitchCase","horizontal"),f.xp6(1),f.Q6J("ngSwitchCase","vertical"))},directives:[h.RF,h.n9,h.sg,h.tP,h.O5,ct],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[lt.horizontalStepTransition,lt.verticalStepTransition]},changeDetection:0}),t}(),yt=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(x);return e.\u0275fac=function(i){return(t||(t=f.n5z(e)))(i||e)},e.\u0275dir=f.lG2({type:e,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,e){2&t&&f.Ikx("type",e.type)},inputs:{type:"type"},features:[f.qOj]}),e}(),bt=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(R);return e.\u0275fac=function(i){return(t||(t=f.n5z(e)))(i||e)},e.\u0275dir=f.lG2({type:e,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&f.Ikx("type",e.type)},inputs:{type:"type"},features:[f.qOj]}),e}(),wt=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=f.oAB({type:t}),t.\u0275inj=f.cJS({providers:[at,P.rD],imports:[[P.BQ,h.ez,r.eL,O.ot,I,D.Ps,P.si],P.BQ]}),t}()},67033:function(t,e,i){"use strict";i.d(e,{ev:function(){return yt},Dz:function(){return pt},w1:function(){return vt},ge:function(){return mt},fO:function(){return gt},XQ:function(){return _t},as:function(){return bt},Gk:function(){return At},nj:function(){return wt},BZ:function(){return ft},by:function(){return Tt},p0:function(){return kt}});var s=i(19861),c=i(4230),l=i(31572),h=i(22526),p=i(11353),g=i(4253),m=i(61511),b=i(55959),w=i(19764),_=i(78512),A=i(4710),k=i(40878),T=i(25416),C=i(90611),S=[[["caption"]],[["colgroup"],["col"]]],E=["caption","colgroup, col"];function x(t){return function(t){a(i,t);var e=u(i);function i(){var t;v(this,i);for(var n=arguments.length,r=new Array(n),o=0;o4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6?arguments[6]:void 0;v(this,t),this._isNativeHtmlTable=e,this._stickCellCss=i,this.direction=n,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(i,"-border-elem-top"),bottom:"".concat(i,"-border-elem-bottom"),left:"".concat(i,"-border-elem-left"),right:"".concat(i,"-border-elem-right")}}return y(t,[{key:"clearStickyPositioning",value:function(t,e){var i,n=this,r=[],o=f(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(a.nodeType===a.ELEMENT_NODE){r.push(a);for(var s=0;s3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(e.some(function(t){return t})||i.some(function(t){return t}))){var o=t[0],a=o.children.length,s=this._getCellWidths(o,r),u=this._getStickyStartColumnPositions(s,e),c=this._getStickyEndColumnPositions(s,i),l=e.lastIndexOf(!0),h=i.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var r,o="rtl"===n.direction,d=o?"right":"left",p=o?"left":"right",g=f(t);try{for(g.s();!(r=g.n()).done;)for(var v=r.value,m=0;m1&&void 0!==arguments[1])||arguments[1];if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var i=[],n=t.children,r=0;r0;r--)e[r]&&(i[r]=n,n+=t[r]);return i}}]),t}(),$=new l.OlP("CDK_SPL"),tt=function(){var t=function t(e,i){v(this,t),this.viewContainer=e,this.elementRef=i};return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.s_b),l.Y36(l.SBq))},t.\u0275dir=l.lG2({type:t,selectors:[["","rowOutlet",""]]}),t}(),et=function(){var t=function t(e,i){v(this,t),this.viewContainer=e,this.elementRef=i};return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.s_b),l.Y36(l.SBq))},t.\u0275dir=l.lG2({type:t,selectors:[["","headerRowOutlet",""]]}),t}(),it=function(){var t=function t(e,i){v(this,t),this.viewContainer=e,this.elementRef=i};return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.s_b),l.Y36(l.SBq))},t.\u0275dir=l.lG2({type:t,selectors:[["","footerRowOutlet",""]]}),t}(),nt=function(){var t=function t(e,i){v(this,t),this.viewContainer=e,this.elementRef=i};return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.s_b),l.Y36(l.SBq))},t.\u0275dir=l.lG2({type:t,selectors:[["","noDataRowOutlet",""]]}),t}(),rt=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c,l,h){v(this,t),this._differs=e,this._changeDetectorRef=i,this._elementRef=n,this._dir=o,this._platform=s,this._viewRepeater=u,this._coalescedStyleScheduler=c,this._viewportRuler=l,this._stickyPositioningListener=h,this._onDestroy=new b.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new _.X({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return y(t,[{key:"trackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"dataSource",get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(t){this._multiTemplateDataRows=(0,s.Ig)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(t){this._fixedLayout=(0,s.Ig)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(e,i){return t.trackBy?t.trackBy(i.dataIndex,i.data):i}),this._viewportRuler.change().pipe((0,T.R)(this._onDestroy)).subscribe(function(){t._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var 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()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,c.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,function(e,i,n){return t._getEmbeddedViewArgs(e.item,n)},function(t){return t.item.data},function(e){1===e.operation&&e.context&&t._renderCellTemplateForItem(e.record.item.rowDef,e.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(function(t){i.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(t){this._customColumnDefs.add(t)}},{key:"removeColumnDef",value:function(t){this._customColumnDefs.delete(t)}},{key:"addRowDef",value:function(t){this._customRowDefs.add(t)}},{key:"removeRowDef",value:function(t){this._customRowDefs.delete(t)}},{key:"addHeaderRowDef",value:function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(t){this._customNoDataRow=t}},{key:"updateStickyHeaderRowStyles",value:function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var i=this._headerRowDefs.map(function(t){return t.sticky});this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(function(t){return t.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var i=this._footerRowDefs.map(function(t){return t.sticky});this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(function(t){return t.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(r(e),r(i),r(n)),["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach(function(e,i){t._addStickyColumnStyles([e],t._headerRowDefs[i])}),this._rowDefs.forEach(function(e){for(var n=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(e,i){return t._renderRow(t._headerRowOutlet,e,i)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(e,i){return t._renderRow(t._footerRowOutlet,e,i)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(t,e){var i=this,n=Array.from(e.columns||[]).map(function(t){return i._columnDefsByName.get(t)}),r=n.map(function(t){return t.sticky}),o=n.map(function(t){return t.stickyEnd});this._stickyStyler.updateStickyColumns(t,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(t){for(var e=[],i=0;i3&&void 0!==arguments[3]?arguments[3]:{},r=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),r}},{key:"_renderCellTemplateForItem",value:function(t,e){var i,n=f(this._getCellTemplates(t));try{for(n.s();!(i=n.n()).done;){var r=i.value;V.mostRecentCellOutlet&&V.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,e)}}catch(o){n.e(o)}finally{n.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var t=this._rowOutlet.viewContainer,e=0,i=t.length;e0&&void 0!==arguments[0]?arguments[0]:[];return v(this,i),(t=e.call(this))._renderData=new _.X([]),t._filter=new _.X(""),t._internalPageChanges=new b.xQ,t._renderChangesSubscription=null,t.sortingDataAccessor=function(t,e){var i=t[e];if((0,s.t6)(i)){var n=Number(i);return n<9007199254740991?n:i}return i},t.sortData=function(e,i){var n=i.active,r=i.direction;return n&&""!=r?e.sort(function(e,i){var o=t.sortingDataAccessor(e,n),a=t.sortingDataAccessor(i,n),s=typeof o,u=typeof a;s!==u&&("number"===s&&(o+=""),"number"===u&&(a+=""));var c=0;return null!=o&&null!=a?o>a?c=1:o0)){var n=Math.ceil(i.length/i.pageSize)-1||0,r=Math.min(i.pageIndex,n);r!==i.pageIndex&&(i.pageIndex=r,e._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}]),i}(c.o2))},55109:function(t,e,i){"use strict";i.d(e,{uX:function(){return it},Vc:function(){return W},SP:function(){return dt},uD:function(){return $},Nh:function(){return bt}});var o=i(24621),s=i(36337),c=i(26899),l=i(61511),h=i(31572),f=i(71522),p=i(43490),g=i(55959),m=i(87570),b=i(31906),w=i(87254),_=i(40878),A=i(81110),k=i(10709),T=i(56238),C=i(98720),S=i(25416),E=i(19861),x=i(11353),R=i(75842),I=i(22526),O=i(4253);function P(t,e){1&t&&h.Hsn(0)}var D=["*"];function M(t,e){}var L=function(t){return{animationDuration:t}},N=function(t,e){return{value:t,params:e}},z=["tabBodyWrapper"],F=["tabHeader"];function Z(t,e){}function B(t,e){if(1&t&&h.YNc(0,Z,0,0,"ng-template",9),2&t){var i=h.oxw().$implicit;h.Q6J("cdkPortalOutlet",i.templateLabel)}}function q(t,e){if(1&t&&h._uU(0),2&t){var i=h.oxw().$implicit;h.Oqu(i.textLabel)}}function U(t,e){if(1&t){var i=h.EpF();h.TgZ(0,"div",6),h.NdJ("click",function(){var t=h.CHM(i),e=t.$implicit,n=t.index,r=h.oxw(),o=h.MAs(1);return r._handleClick(e,o,n)})("cdkFocusChange",function(t){var e=h.CHM(i).index;return h.oxw()._tabFocusChanged(t,e)}),h.TgZ(1,"div",7),h.YNc(2,B,1,1,"ng-template",8),h.YNc(3,q,1,1,"ng-template",8),h.qZA(),h.qZA()}if(2&t){var n=e.$implicit,r=e.index,o=h.oxw();h.ekj("mat-tab-label-active",o.selectedIndex==r),h.Q6J("id",o._getTabLabelId(r))("disabled",n.disabled)("matRippleDisabled",n.disabled||o.disableRipple),h.uIk("tabIndex",o._getTabIndex(n,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),h.xp6(2),h.Q6J("ngIf",n.templateLabel),h.xp6(1),h.Q6J("ngIf",!n.templateLabel)}}function H(t,e){if(1&t){var i=h.EpF();h.TgZ(0,"mat-tab-body",10),h.NdJ("_onCentered",function(){return h.CHM(i),h.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(t){return h.CHM(i),h.oxw()._setTabBodyWrapperHeight(t)}),h.qZA()}if(2&t){var n=e.$implicit,r=e.index,o=h.oxw();h.ekj("mat-tab-body-active",o.selectedIndex==r),h.Q6J("id",o._getTabContentId(r))("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",o.animationDuration),h.uIk("aria-labelledby",o._getTabLabelId(r))}}var j=["tabListContainer"],G=["tabList"],Y=["nextPaginator"],V=["previousPaginator"],K=new h.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),J=function(){var t=function(){function t(e,i,n,r){v(this,t),this._elementRef=e,this._ngZone=i,this._inkBarPositioner=n,this._animationMode=r}return y(t,[{key:"alignToElement",value:function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e._setStyles(t)})}):this._setStyles(t)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(t){var e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(K),h.Y36(p.Qb,8))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),Q=new h.OlP("MatTabContent"),W=function(){var t=function t(e){v(this,t),this.template=e};return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.Rgc))},t.\u0275dir=h.lG2({type:t,selectors:[["","matTabContent",""]],features:[h._Bn([{provide:Q,useExisting:t}])]}),t}(),X=new h.OlP("MatTabLabel"),$=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(c.ig);return e.\u0275fac=function(i){return(t||(t=h.n5z(e)))(i||e)},e.\u0275dir=h.lG2({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[h._Bn([{provide:X,useExisting:e}]),h.qOj]}),e}(),tt=(0,f.Id)(function t(){v(this,t)}),et=new h.OlP("MAT_TAB_GROUP"),it=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this))._viewContainerRef=t,r._closestTabGroup=n,r.textLabel="",r._contentPortal=null,r._stateChanges=new g.xQ,r.position=null,r.origin=null,r.isActive=!1,r}return y(i,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){this._setTemplateLabelInput(t)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new c.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(t){t&&(this._templateLabel=t)}}]),i}(tt);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.s_b),h.Y36(et,8))},t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){var n;(1&t&&(h.Suo(i,X,5),h.Suo(i,Q,7,h.Rgc)),2&t)&&(h.iGM(n=h.CRH())&&(e.templateLabel=n.first),h.iGM(n=h.CRH())&&(e._explicitContent=n.first))},viewQuery:function(t,e){var i;(1&t&&h.Gf(h.Rgc,7),2&t)&&(h.iGM(i=h.CRH())&&(e._implicitContent=i.first))},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[h.qOj,h.TTD],ngContentSelectors:D,decls:1,vars:0,template:function(t,e){1&t&&(h.F$t(),h.YNc(0,P,1,0,"ng-template"))},encapsulation:2}),t}(),nt={translateTab:(0,k.X$)("translateTab",[(0,k.SB)("center, void, left-origin-center, right-origin-center",(0,k.oB)({transform:"none"})),(0,k.SB)("left",(0,k.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,k.SB)("right",(0,k.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,k.eR)("* => left, * => right, left => center, right => center",(0,k.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,k.eR)("void => left-origin-center",[(0,k.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,k.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,k.eR)("void => right-origin-center",[(0,k.oB)({transform:"translate3d(100%, 0, 0)"}),(0,k.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},rt=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t,n,o))._host=r,a._centeringSub=m.w.EMPTY,a._leavingSub=m.w.EMPTY,a}return y(i,[{key:"ngOnInit",value:function(){var t=this;n(d(i.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,T.O)(this._host._isCenterPosition(this._host._position))).subscribe(function(e){e&&!t.hasAttached()&&t.attach(t._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){t.detach()})}},{key:"ngOnDestroy",value:function(){n(d(i.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),i}(c.Pl);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h._Vd),h.Y36(h.s_b),h.Y36((0,h.Gpc)(function(){return at})),h.Y36(l.K0))},t.\u0275dir=h.lG2({type:t,selectors:[["","matTabBodyHost",""]],features:[h.qOj]}),t}(),ot=function(){var t=function(){function t(e,i,n){var r=this;v(this,t),this._elementRef=e,this._dir=i,this._dirChangeSubscription=m.w.EMPTY,this._translateTabComplete=new g.xQ,this._onCentering=new h.vpe,this._beforeCentering=new h.vpe,this._afterLeavingCenter=new h.vpe,this._onCentered=new h.vpe(!0),this.animationDuration="500ms",i&&(this._dirChangeSubscription=i.change.subscribe(function(t){r._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe((0,C.x)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){r._isCenterPosition(t.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(t.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return y(t,[{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}},{key:"_computePositionAnimationState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(I.Is,8),h.Y36(h.sBO))},t.\u0275dir=h.lG2({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}(),at=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r){return v(this,i),e.call(this,t,n,r)}return i}(ot);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(I.Is,8),h.Y36(h.sBO))},t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var i;(1&t&&h.Gf(c.Pl,5),2&t)&&(h.iGM(i=h.CRH())&&(e._portalHost=i.first))},hostAttrs:[1,"mat-tab-body"],features:[h.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(h.TgZ(0,"div",0,1),h.NdJ("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),h.YNc(2,M,0,0,"ng-template",2),h.qZA()),2&t&&h.Q6J("@translateTab",h.WLB(3,N,e._position,h.VKq(1,L,e.animationDuration)))},directives:[rt],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[nt.translateTab]}}),t}(),st=new h.OlP("MAT_TABS_CONFIG"),ut=0,ct=function t(){v(this,t)},lt=(0,f.pj)((0,f.Kr)(function t(e){v(this,t),this._elementRef=e}),"primary"),ht=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t))._changeDetectorRef=n,a._animationMode=o,a._tabs=new h.n_E,a._indexToSelect=0,a._tabBodyWrapperHeight=0,a._tabsSubscription=m.w.EMPTY,a._tabLabelSubscription=m.w.EMPTY,a._selectedIndex=null,a.headerPosition="above",a.selectedIndexChange=new h.vpe,a.focusChange=new h.vpe,a.animationDone=new h.vpe,a.selectedTabChange=new h.vpe(!0),a._groupId=ut++,a.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",a.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,a.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,a}return y(i,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=(0,E.Ig)(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=(0,E.su)(t,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-".concat(this.backgroundColor)),t&&e.classList.add("mat-background-".concat(t)),this._backgroundColor=t}},{key:"ngAfterContentChecked",value:function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));var n=this._tabBodyWrapper.nativeElement;n.style.minHeight=n.clientHeight+"px"}Promise.resolve().then(function(){t._tabs.forEach(function(t,i){return t.isActive=i===e}),i||(t.selectedIndexChange.emit(e),t._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(i,n){i.position=n-e,null==t._selectedIndex||0!=i.position||i.origin||(i.origin=e-t._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),i=0;i.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t}(),ft=(0,f.Id)(function t(){v(this,t)}),pt=function(){var t=function(t){a(i,t);var e=u(i);function i(t){var n;return v(this,i),(n=e.call(this)).elementRef=t,n}return y(i,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),i}(ft);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq))},t.\u0275dir=h.lG2({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(h.uIk("aria-disabled",!!e.disabled),h.ekj("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[h.qOj]}),t}(),gt=(0,x.i$)({passive:!0}),vt=function(){var t=function(){function t(e,i,n,r,o,a,s){var u=this;v(this,t),this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=n,this._dir=r,this._ngZone=o,this._platform=a,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new g.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new g.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new h.vpe,this.indexFocused=new h.vpe,o.runOutsideAngular(function(){(0,w.R)(e.nativeElement,"mouseleave").pipe((0,S.R)(u._destroyed)).subscribe(function(){u._stopInterval()})})}return y(t,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=(0,E.su)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"ngAfterViewInit",value:function(){var t=this;(0,w.R)(this._previousPaginator.nativeElement,"touchstart",gt).pipe((0,S.R)(this._destroyed)).subscribe(function(){t._handlePaginatorPress("before")}),(0,w.R)(this._nextPaginator.nativeElement,"touchstart",gt).pipe((0,S.R)(this._destroyed)).subscribe(function(){t._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:(0,_.of)("ltr"),i=this._viewportRuler.change(150),n=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new o.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),(0,b.T)(e,i,this._items.changes).pipe((0,S.R)(this._destroyed)).subscribe(function(){t._ngZone.run(function(){return Promise.resolve().then(n)}),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())}),this._keyManager.change.pipe((0,S.R)(this._destroyed)).subscribe(function(e){t.indexFocused.emit(e),t._setTabFocus(e)})}},{key:"ngAfterContentChecked",value:function(){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())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(t){if(!(0,R.Vb)(t))switch(t.keyCode){case R.K5:case R.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}},{key:"_onContentChanges",value:function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}},{key:"_isValidIndex",value:function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"_setTabFocus",value:function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(e),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}},{key:"_scrollHeader",value:function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(t){this._stopInterval(),this._scrollHeader(t)}},{key:"_scrollToLabel",value:function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var i,n,r=this._tabListContainer.nativeElement.offsetWidth,o=e.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?n=(i=a)+s:i=(n=this._tabList.nativeElement.offsetWidth-a)-s;var u=this.scrollDistance,c=this.scrollDistance+r;ic&&(this.scrollDistance+=n-c+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(t,e){var i=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),(0,A.H)(650,100).pipe((0,S.R)((0,b.T)(this._stopScrolling,this._destroyed))).subscribe(function(){var e=i._scrollHeader(t),n=e.maxScrollDistance,r=e.distance;(0===r||r>=n)&&i._stopInterval()}))}},{key:"_scrollTo",value:function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(h.sBO),h.Y36(O.rL),h.Y36(I.Is,8),h.Y36(h.R0b),h.Y36(x.t4),h.Y36(p.Qb,8))},t.\u0275dir=h.lG2({type:t,inputs:{disablePagination:"disablePagination"}}),t}(),mt=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o,a,s,u){var c;return v(this,i),(c=e.call(this,t,n,r,o,a,s,u))._disableRipple=!1,c}return y(i,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=(0,E.Ig)(t)}},{key:"_itemSelected",value:function(t){t.preventDefault()}}]),i}(vt);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(h.sBO),h.Y36(O.rL),h.Y36(I.Is,8),h.Y36(h.R0b),h.Y36(x.t4),h.Y36(p.Qb,8))},t.\u0275dir=h.lG2({type:t,inputs:{disableRipple:"disableRipple"},features:[h.qOj]}),t}(),yt=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o,a,s,u){return v(this,i),e.call(this,t,n,r,o,a,s,u)}return i}(mt);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(h.sBO),h.Y36(O.rL),h.Y36(I.Is,8),h.Y36(h.R0b),h.Y36(x.t4),h.Y36(p.Qb,8))},t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){var n;(1&t&&h.Suo(i,pt,4),2&t)&&(h.iGM(n=h.CRH())&&(e._items=n))},viewQuery:function(t,e){var i;(1&t&&(h.Gf(J,7),h.Gf(j,7),h.Gf(G,7),h.Gf(Y,5),h.Gf(V,5)),2&t)&&(h.iGM(i=h.CRH())&&(e._inkBar=i.first),h.iGM(i=h.CRH())&&(e._tabListContainer=i.first),h.iGM(i=h.CRH())&&(e._tabList=i.first),h.iGM(i=h.CRH())&&(e._nextPaginator=i.first),h.iGM(i=h.CRH())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&h.ekj("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[h.qOj],ngContentSelectors:D,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(h.F$t(),h.TgZ(0,"div",0,1),h.NdJ("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),h._UZ(2,"div",2),h.qZA(),h.TgZ(3,"div",3,4),h.NdJ("keydown",function(t){return e._handleKeydown(t)}),h.TgZ(5,"div",5,6),h.NdJ("cdkObserveContent",function(){return e._onContentChanges()}),h.TgZ(7,"div",7),h.Hsn(8),h.qZA(),h._UZ(9,"mat-ink-bar"),h.qZA(),h.qZA(),h.TgZ(10,"div",8,9),h.NdJ("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),h._UZ(12,"div",2),h.qZA()),2&t&&(h.ekj("mat-tab-header-pagination-disabled",e._disableScrollBefore),h.Q6J("matRippleDisabled",e._disableScrollBefore||e.disableRipple),h.xp6(5),h.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),h.xp6(5),h.ekj("mat-tab-header-pagination-disabled",e._disableScrollAfter),h.Q6J("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[f.wG,s.wD,J],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.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;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t}(),bt=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[l.ez,f.BQ,c.eL,f.si,s.Q8,o.rt],f.BQ]}),t}()},36922:function(t,e,i){"use strict";i.d(e,{gM:function(){return j},AV:function(){return V}});var n,r=i(2522),s=i(24621),c=i(61511),l=i(31572),h=i(71522),d=i(4253),f=i(19861),p=i(75842),g=i(55959),m=i(31305),b=i(47930),w=i(48318),_=i(90611),A=i(96673),k=function(){function t(e){v(this,t),this.total=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new T(t,this.total))}}]),t}(),T=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t)).total=n,r.count=0,r}return y(i,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}]),i}(A.L),C=i(47701),S=i(79996),E=i(56238),x=i(25416),R=i(11353),I=new Set,O=function(){var t=function(){function t(e){v(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):P}return y(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!I.has(t))try{n||((n=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(n)),n.sheet&&(n.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),I.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.LFG(R.t4))},t.\u0275prov=l.Yz7({factory:function(){return new t(l.LFG(R.t4))},token:t,providedIn:"root"}),t}();function P(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var D=function(){var t=function(){function t(e,i){v(this,t),this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new g.xQ}return y(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return M((0,f.Eq)(t)).some(function(t){return e._registerQuery(t).mql.matches})}},{key:"observe",value:function(t){var e=this,i=M((0,f.Eq)(t)).map(function(t){return e._registerQuery(t).observable}),n=(0,m.aj)(i);return(n=(0,b.z)(n.pipe((0,_.q)(1)),n.pipe(function(t){return t.lift(new k(1))},(0,C.b)(0)))).pipe((0,S.U)(function(t){var e={matches:!1,breakpoints:{}};return t.forEach(function(t){var i=t.matches,n=t.query;e.matches=e.matches||i,e.breakpoints[n]=i}),e}))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var i=this._mediaMatcher.matchMedia(t),n={observable:new w.y(function(t){var n=function(i){return e._zone.run(function(){return t.next(i)})};return i.addListener(n),function(){i.removeListener(n)}}).pipe((0,E.O)(i),(0,S.U)(function(e){var i=e.matches;return{query:t,matches:i}}),(0,x.R)(this._destroySubject)),mql:i};return this._queries.set(t,n),n}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.LFG(O),l.LFG(l.R0b))},t.\u0275prov=l.Yz7({factory:function(){return new t(l.LFG(O),l.LFG(l.R0b))},token:t,providedIn:"root"}),t}();function M(t){return t.map(function(t){return t.split(",")}).reduce(function(t,e){return t.concat(e)}).map(function(t){return t.trim()})}var L=i(26899),N=i(10709),z=i(22526),F={tooltipState:(0,N.X$)("state",[(0,N.SB)("initial, void, hidden",(0,N.oB)({opacity:0,transform:"scale(0)"})),(0,N.SB)("visible",(0,N.oB)({transform:"scale(1)"})),(0,N.eR)("* => visible",(0,N.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,N.F4)([(0,N.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,N.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,N.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,N.eR)("* => hidden",(0,N.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,N.oB)({opacity:0})))])},Z=(0,R.i$)({passive:!0}),B=new l.OlP("mat-tooltip-scroll-strategy"),q={provide:B,deps:[r.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},U=new l.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),H=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c,l,h,d){var f=this;v(this,t),this._overlay=e,this._elementRef=i,this._scrollDispatcher=n,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=u,this._dir=l,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new g.xQ,this._handleKeydown=function(t){f._isTooltipVisible()&&t.keyCode===p.hY&&!(0,p.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=c,this._document=d,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),l.change.pipe((0,x.R)(this._destroyed)).subscribe(function(){f._overlayRef&&f._updatePosition(f._overlayRef)}),o.runOutsideAngular(function(){i.nativeElement.addEventListener("keydown",f._handleKeydown)})}return y(t,[{key:"position",get:function(){return this._position},set:function(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=(0,f.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var t=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,x.R)(this._destroyed)).subscribe(function(e){e?"keyboard"===e&&t._ngZone.run(function(){return t.show()}):t._ngZone.run(function(){return t.hide(0)})})}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(e){var i=o(e,2),n=i[0],r=i[1];t.removeEventListener(n,r,Z)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var i=this._createOverlay();this._detach(),this._portal=this._portal||new L.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,x.R)(this._destroyed)).subscribe(function(){return t._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe((0,x.R)(this._destroyed)).subscribe(function(e){t._updateCurrentPositionClass(e.connectionPair),t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run(function(){return t.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:"".concat(this._cssClassPrefix,"-tooltip-panel"),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,x.R)(this._destroyed)).subscribe(function(){return t._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(t){var e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}},{key:"_addOffset",value:function(t){return t}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i||"below"==i?t={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?t={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(t={originX:"end",originY:"center"});var n=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:n.x,originY:n.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i?t={overlayX:"center",overlayY:"bottom"}:"below"==i?t={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?t={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(t={overlayX:"start",overlayY:"center"});var n=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:n.x,overlayY:n.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,_.q)(1),(0,x.R)(this._destroyed)).subscribe(function(){t._tooltipInstance&&t._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}},{key:"_updateCurrentPositionClass",value:function(t){var e,i=t.overlayY,n=t.originX,r=t.originY;if((e="center"===i?this._dir&&"rtl"===this._dir.value?"end"===n?"left":"right":"start"===n?"left":"right":"bottom"===i&&"top"===r?"above":"below")!==this._currentPosition){var o=this._overlayRef;if(o){var a="".concat(this._cssClassPrefix,"-tooltip-panel-");o.removePanelClass(a+this._currentPosition),o.addPanelClass(a+e)}this._currentPosition=e}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var t=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){t._setupPointerExitEventsIfNeeded(),t.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){t._setupPointerExitEventsIfNeeded(),clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout(function(){return t.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var t,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var i=[];if(this._platformSupportsMouseEvents())i.push(["mouseleave",function(){return e.hide()}],["wheel",function(t){return e._wheelListener(t)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var n=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};i.push(["touchend",n],["touchcancel",n])}this._addListeners(i),(t=this._passiveListeners).push.apply(t,i)}}},{key:"_addListeners",value:function(t){var e=this;t.forEach(function(t){var i=o(t,2),n=i[0],r=i[1];e._elementRef.nativeElement.addEventListener(n,r,Z)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(t){if(this._isTooltipVisible()){var e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this.touchGestures;if("off"!==t){var e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(r.aV),l.Y36(l.SBq),l.Y36(d.mF),l.Y36(l.s_b),l.Y36(l.R0b),l.Y36(R.t4),l.Y36(s.$s),l.Y36(s.tE),l.Y36(void 0),l.Y36(z.Is),l.Y36(void 0),l.Y36(c.K0))},t.\u0275dir=l.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t}(),j=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o,a,s,u,c,l,h,d,f){var p;return v(this,i),(p=e.call(this,t,n,r,o,a,s,u,c,l,h,d,f))._tooltipComponent=Y,p}return i}(H);return t.\u0275fac=function(e){return new(e||t)(l.Y36(r.aV),l.Y36(l.SBq),l.Y36(d.mF),l.Y36(l.s_b),l.Y36(l.R0b),l.Y36(R.t4),l.Y36(s.$s),l.Y36(s.tE),l.Y36(B),l.Y36(z.Is,8),l.Y36(U,8),l.Y36(c.K0))},t.\u0275dir=l.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[l.qOj]}),t}(),G=function(){var t=function(){function t(e){v(this,t),this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new g.xQ}return y(t,[{key:"show",value:function(t){var e=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){e._visibility="visible",e._showTimeoutId=void 0,e._markForCheck()},t)}},{key:"hide",value:function(t){var e=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){e._visibility="hidden",e._hideTimeoutId=void 0,e._markForCheck()},t)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.sBO))},t.\u0275dir=l.lG2({type:t}),t}(),Y=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t))._breakpointObserver=n,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return i}(G);return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.sBO),l.Y36(D))},t.\u0275cmp=l.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&l.NdJ("click",function(){return e._handleBodyInteraction()},!1,l.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,l.pYS),2&t&&l.Udp("zoom","visible"===e._visibility?1:null)},features:[l.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var i;(1&t&&(l.TgZ(0,"div",0),l.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),l.ALo(1,"async"),l._uU(2),l.qZA()),2&t)&&(l.ekj("mat-tooltip-handset",null==(i=l.lcZ(1,5,e._isHandset))?null:i.matches),l.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),l.xp6(2),l.Oqu(e.message))},directives:[c.mk],pipes:[c.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[F.tooltipState]},changeDetection:0}),t}(),V=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({providers:[q],imports:[[s.rt,c.ez,r.U8,h.BQ],h.BQ,d.ZD]}),t}()},91010:function(t,e,i){"use strict";i.d(e,{GZ:function(){return _},gi:function(){return k},kc:function(){return E},JZ:function(){return S},dp:function(){return C},WX:function(){return x},uo:function(){return b},fQ:function(){return w},Ar:function(){return A},eu:function(){return T}});var r=i(71709),o=i(71522),s=i(19861),c=i(4230),l=i(78512),h=i(31906),f=i(90611),p=i(79996),g=i(31572),m=(0,o.sb)((0,o.Id)(r.Hs)),b=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t,n))._elementRef=t,o._tree=n,o.tabIndex=Number(r)||0,o._elementRef.nativeElement.classList.add("mat-tree-node"),o}return y(i,[{key:"ngOnInit",value:function(){n(d(i.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){n(d(i.prototype),"ngDoCheck",this).call(this)}},{key:"ngOnDestroy",value:function(){n(d(i.prototype),"ngOnDestroy",this).call(this)}}]),i}(m);return t.\u0275fac=function(e){return new(e||t)(g.Y36(g.SBq),g.Y36(r._0),g.$8M("tabindex"))},t.\u0275dir=g.lG2({type:t,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[g._Bn([{provide:r.Hs,useExisting:t}]),g.qOj]}),t}(),w=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(r.rO);return e.\u0275fac=function(i){return(t||(t=g.n5z(e)))(i||e)},e.\u0275dir=g.lG2({type:e,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[g._Bn([{provide:r.rO,useExisting:e}]),g.qOj]}),e}(),_=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t,n,r))._elementRef=t,a._tree=n,a._differs=r,a._disabled=!1,a.tabIndex=Number(o)||0,a._elementRef.nativeElement.classList.add("mat-nested-tree-node"),a}return y(i,[{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=(0,s.Ig)(t)}},{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?t:0}},{key:"ngOnInit",value:function(){n(d(i.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){n(d(i.prototype),"ngDoCheck",this).call(this)}},{key:"ngAfterContentInit",value:function(){n(d(i.prototype),"ngAfterContentInit",this).call(this)}},{key:"ngOnDestroy",value:function(){n(d(i.prototype),"ngOnDestroy",this).call(this)}}]),i}(r.Xx);return t.\u0275fac=function(e){return new(e||t)(g.Y36(g.SBq),g.Y36(r._0),g.Y36(g.ZZ4),g.$8M("tabindex"))},t.\u0275dir=g.lG2({type:t,selectors:[["mat-nested-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[g._Bn([{provide:r.Xx,useExisting:t},{provide:r.Hs,useExisting:t},{provide:r.HI,useExisting:t}]),g.qOj]}),t}(),A=function(){var t=function t(e,i){v(this,t),this.viewContainer=e,this._node=i};return t.\u0275fac=function(e){return new(e||t)(g.Y36(g.s_b),g.Y36(r.HI,8))},t.\u0275dir=g.lG2({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[g._Bn([{provide:r.cu,useExisting:t}])]}),t}(),k=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(r._0);return e.\u0275fac=function(i){return(t||(t=g.n5z(e)))(i||e)},e.\u0275cmp=g.Xpm({type:e,selectors:[["mat-tree"]],viewQuery:function(t,e){var i;(1&t&&g.Gf(A,7),2&t)&&(g.iGM(i=g.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[g._Bn([{provide:r._0,useExisting:e}]),g.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&g.GkF(0,0)},directives:[A],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),e}(),T=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"recursive",get:function(){return this._recursive},set:function(t){this._recursive=(0,s.Ig)(t)}}]),i}(r.Ud);return e.\u0275fac=function(i){return(t||(t=g.n5z(e)))(i||e)},e.\u0275dir=g.lG2({type:e,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[g._Bn([{provide:r.Ud,useExisting:e}]),g.qOj]}),e}(),C=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=g.oAB({type:t}),t.\u0275inj=g.cJS({imports:[[r.nZ,o.BQ],o.BQ]}),t}(),S=function(){function t(e,i,n,r){v(this,t),this.transformFunction=e,this.getLevel=i,this.isExpandable=n,this.getChildren=r}return y(t,[{key:"_flattenNode",value:function(t,e,i,n){var r=this,o=this.transformFunction(t,e);if(i.push(o),this.isExpandable(o)){var a=this.getChildren(t);a&&(Array.isArray(a)?this._flattenChildren(a,e,i,n):a.pipe((0,f.q)(1)).subscribe(function(t){r._flattenChildren(t,e,i,n)}))}return i}},{key:"_flattenChildren",value:function(t,e,i,n){var r=this;t.forEach(function(o,a){var s=n.slice();s.push(a!=t.length-1),r._flattenNode(o,e+1,i,s)})}},{key:"flattenNodes",value:function(t){var e=this,i=[];return t.forEach(function(t){return e._flattenNode(t,0,i,[])}),i}},{key:"expandFlattenedNodes",value:function(t,e){var i=this,n=[],r=[];return r[0]=!0,t.forEach(function(t){for(var o=!0,a=0;a<=i.getLevel(t);a++)o=o&&r[a];o&&n.push(t),i.isExpandable(t)&&(r[i.getLevel(t)+1]=e.isExpanded(t))}),n}}]),t}(),E=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this))._treeControl=t,o._treeFlattener=n,o._flattenedData=new l.X([]),o._expandedData=new l.X([]),o._data=new l.X([]),r&&(o.data=r),o}return y(i,[{key:"data",get:function(){return this._data.value},set:function(t){this._data.next(t),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}},{key:"connect",value:function(t){var e=this;return(0,h.T)(t.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,p.U)(function(){return e._expandedData.next(e._treeFlattener.expandFlattenedNodes(e._flattenedData.value,e._treeControl)),e._expandedData.value}))}},{key:"disconnect",value:function(){}}]),i}(c.o2),x=function(t){a(i,t);var e=u(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._data=new l.X([]),t}return y(i,[{key:"data",get:function(){return this._data.value},set:function(t){this._data.next(t)}},{key:"connect",value:function(t){var e=this;return(0,h.T)(t.viewChange,this._data).pipe((0,p.U)(function(){return e.data}))}},{key:"disconnect",value:function(){}}]),i}(c.o2)},43490:function(t,e,i){"use strict";i.d(e,{Qb:function(){return Ee},PW:function(){return Oe}});var s=i(31572),c=i(30269),l=i(10709);function h(){return"undefined"!=typeof window&&void 0!==window.document}function p(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function g(t){switch(t.length){case 0:return new l.ZN;case 1:return t[0];default:return new l.ZE(t)}}function m(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,c=null;if(n.forEach(function(t){var i=t.offset,n=i==u,h=n&&c||{};Object.keys(t).forEach(function(i){var n=i,s=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,a),s){case l.k1:s=r[i];break;case l.l3:s=o[i];break;default:s=e.normalizeStyleValue(i,n,s,a)}h[n]=s}),n||s.push(h),c=h,u=i}),a.length){var h="\n - ";throw new Error("Unable to animate due to the following errors:".concat(h).concat(a.join(h)))}return s}function b(t,e,i,n){switch(e){case"start":t.onStart(function(){return n(i&&w(i,"start",t))});break;case"done":t.onDone(function(){return n(i&&w(i,"done",t))});break;case"destroy":t.onDestroy(function(){return n(i&&w(i,"destroy",t))})}}function w(t,e,i){var n=i.totalTime,r=_(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),o=t._data;return null!=o&&(r._data=o),r}function _(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:o,disabled:!!a}}function A(t,e,i){var n;return t instanceof Map?(n=t.get(e))||t.set(e,n=i):(n=t[e])||(n=t[e]=i),n}function k(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var T=function(t,e){return!1},C=function(t,e){return!1},S=function(t,e,i){return[]},E=p();(E||"undefined"!=typeof Element)&&(T=h()?function(t,e){for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:function(t,e){return t.contains(e)},C=function(){if(E||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,i){return e.apply(t,[i])}:C}(),S=function(t,e,i){var n=[];if(i)for(var r=t.querySelectorAll(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(function(i){e[i]=t[i]}),e}function q(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var n in t)i[n]=t[n];else B(t,i);return i}function U(t,e,i){return i?e+":"+i+";":""}function H(t){for(var e="",i=0;i *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return i.push('The provided transition expression "'.concat(t,'" is not supported')),e;var o=r[1],a=r[2],s=r[3];e.push(ot(o,s)),"<"!=a[0]||"*"==o&&"*"==s||e.push(ot(s,o))}(t,r,n)}):r.push(i),r),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:ht(t.options)}}},{key:"visitSequence",value:function(t,e){var i=this;return{type:2,steps:t.steps.map(function(t){return et(i,t,e)}),options:ht(t.options)}}},{key:"visitGroup",value:function(t,e){var i=this,n=e.currentTime,r=0,o=t.steps.map(function(t){e.currentTime=n;var o=et(i,t,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:3,steps:o,options:ht(t.options)}}},{key:"visitAnimate",value:function(t,e){var i,n=function(t,e){var i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return dt(Z(t,e).duration,0,"");var n=t;if(n.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var r=dt(0,0,"");return r.dynamic=!0,r.strValue=n,r}return dt((i=i||Z(n,e)).duration,i.delay,i.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;var r=t.styles?t.styles:(0,l.oB)({});if(5==r.type)i=this.visitKeyframes(r,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};n.easing&&(s.easing=n.easing),o=(0,l.oB)(s)}e.currentTime+=n.duration+n.delay;var u=this.visitStyle(o,e);u.isEmptyStep=a,i=u}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(t,e){var i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}},{key:"_makeStyleAst",value:function(t,e){var i=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==l.l3?i.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):i.push(t)}):i.push(t.styles);var n=!1,r=null;return i.forEach(function(t){if(lt(t)){var e=t,i=e.easing;if(i&&(r=i,delete e.easing),!n)for(var o in e)if(e[o].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:r,offset:t.offset,containsDynamicStyles:n,options:null}}},{key:"_validateStyleAst",value:function(t,e){var i=this,n=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(n){if(i._driver.validateStyleProperty(n)){var a,s,u,c,l,h=e.collectedStyles[e.currentQuerySelector],d=h[n],f=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(e.errors.push('The CSS property "'.concat(n,'" that exists between the times of "').concat(d.startTime,'ms" and "').concat(d.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),f=!1),o=d.startTime),f&&(h[n]={startTime:o,endTime:r}),e.options&&(a=t[n],s=e.options,u=e.errors,c=s.params||{},(l=K(a)).length&&l.forEach(function(t){c.hasOwnProperty(t)||u.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))}))}else e.errors.push('The provided animation property "'.concat(n,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(t,e){var i=this,n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;var r=0,o=[],a=!1,s=!1,u=0,c=t.steps.map(function(t){var n=i._makeStyleAst(t,e),c=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(lt(t)&&t.hasOwnProperty("offset")){var i=t;e=parseFloat(i.offset),delete i.offset}});else if(lt(t)&&t.hasOwnProperty("offset")){var i=t;e=parseFloat(i.offset),delete i.offset}return e}(n.styles),l=0;return null!=c&&(r++,l=n.offset=c),s=s||l<0||l>1,a=a||l0&&r0?r==d?1:h*r:o[r],s=a*g;e.currentTime=f+p.delay+s,p.duration=s,i._validateStyleAst(t,e),t.offset=a,n.styles.push(t)}),n}},{key:"visitReference",value:function(t,e){return{type:8,animation:et(this,Y(t.animation),e),options:ht(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:ht(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ht(t.options)}}},{key:"visitQuery",value:function(t,e){var i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;var r=o(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(at,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),a=r[0],s=r[1];e.currentQuerySelector=i.length?i+" "+a:a,A(e.collectedStyles,e.currentQuerySelector,{});var u=et(this,Y(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:a,limit:n.limit||0,optional:!!n.optional,includeSelf:s,animation:u,originalSelector:t.selector,options:ht(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Z(t.timings,e.errors,!0);return{type:12,animation:et(this,Y(t.animation),e),timings:i,options:null}}}]),t}(),ct=function t(e){v(this,t),this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function lt(t){return!Array.isArray(t)&&"object"==typeof t}function ht(t){var e;return t?(t=B(t)).params&&(t.params=(e=t.params)?B(e):null):t={},t}function dt(t,e,i){return{duration:t,delay:e,easing:i}}function ft(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var pt=function(){function t(){v(this,t),this._map=new Map}return y(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var i,n=this._map.get(t);n||this._map.set(t,n=[]),(i=n).push.apply(i,r(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),gt=new RegExp(":enter","g"),vt=new RegExp(":leave","g");function mt(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new yt).buildKeyframes(t,e,i,n,r,o,a,s,u,c)}var yt=function(){function t(){v(this,t)}return y(t,[{key:"buildKeyframes",value:function(t,e,i,n,r,o,a,s,u){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new pt;var l=new wt(t,e,u,n,r,c,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),et(this,i,l);var h=l.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,l.errors,s)}return h.length?h.map(function(t){return t.buildKeyframes()}):[ft(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var i=e.subInstructions.consume(e.element);if(i){var n=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,i){var n=e.currentTimeline.currentTime,r=null!=i.duration?z(i.duration):null,o=null!=i.delay?z(i.delay):null;return 0!==r&&t.forEach(function(t){var i=e.appendInstructionToTimeline(t,r,o);n=Math.max(n,i.duration+i.delay)}),n}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),et(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var i=this,n=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&((r=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=bt);var a=z(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return et(i,t,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var i=this,n=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?z(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),et(i,a,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(r),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var i=t.strValue;return Z(e.params?J(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();var r=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(r):i.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var i=e.currentAnimateTimings,n=e.currentTimeline.duration,r=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(n+r),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var i=this,n=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?z(r.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bt);var a=n,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var u=null;s.forEach(function(n,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,n);o&&s.delayNextStep(o),n===e.element&&(u=s.currentTimeline),et(i,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var i=e.parentContext,n=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=i.currentStaggerTime}var u=e.currentTimeline;s&&u.delayNextStep(s);var c=u.currentTime;et(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}}]),t}(),bt={},wt=function(){function t(e,i,n,r,o,a,s,u){v(this,t),this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new _t(this._driver,i,0),s.push(this.currentTimeline)}return y(t,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,e){var i=this;if(t){var n=t,r=this.options;null!=n.duration&&(r.duration=z(n.duration)),null!=n.delay&&(r.delay=z(n.delay));var o=n.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=J(o[t],a,i.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var i=t.params={};Object.keys(e).forEach(function(t){i[t]=e[t]})}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=i||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=bt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,i){var n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},r=new At(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(r),n}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,i,n,o,a){var s=[];if(n&&s.push(this.element),t.length>0){t=(t=t.replace(gt,"."+this._enterClassName)).replace(vt,"."+this._leaveClassName);var u=this._driver.query(this.element,t,1!=i);0!==i&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),s.push.apply(s,r(u))}return o||0!=s.length||a.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),s}}]),t}(),_t=function(){function t(e,i,n,r){v(this,t),this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}return y(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||l.l3,e._currentKeyframe[t]=l.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,i,n){var r=this;e&&(this._previousKeyframe.easing=e);var o=n&&n.params||{},a=function(t,e){var i,n={};return t.forEach(function(t){"*"===t?(i=i||Object.keys(e)).forEach(function(t){n[t]=l.l3}):q(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=J(a[t],o,i);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:l.l3),r._updateStyle(t,e)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,i=Object.keys(e);0!=i.length&&(this._pendingStyles={},i.forEach(function(i){t._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var i=t._localTimelineStyles[e];t._pendingStyles[e]=i,t._updateStyle(e,i)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach(function(i){var n=e._styleSummary[i],r=t._styleSummary[i];(!n||r.time>n.time)&&e._updateStyle(i,r.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,i=new Set,n=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=q(o,!0);Object.keys(s).forEach(function(t){var n=s[t];n==l.k1?e.add(t):n==l.l3&&i.add(t)}),n||(s.offset=a/t.duration),r.push(s)});var o=e.size?Q(e.values()):[],a=i.size?Q(i.values()):[];if(n){var s=r[0],u=B(s);s.offset=0,u.offset=1,r=[s,u]}return ft(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}]),t}(),At=function(t){a(i,t);var e=u(i);function i(t,n,r,o,a,s){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return v(this,i),(u=e.call(this,t,n,s.delay)).element=n,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=c,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return y(i,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,i=e.delay,n=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&i){var o=[],a=n+i,s=i/a,u=q(t[0],!1);u.offset=0,o.push(u);var c=q(t[0],!1);c.offset=kt(s),o.push(c);for(var l=t.length-1,h=1;h<=l;h++){var d=q(t[h],!1);d.offset=kt((i+d.offset*n)/a),o.push(d)}n=a,i=0,r="",t=o}return ft(this.element,t,this.preStyleProps,this.postStyleProps,n,i,r,!0)}}]),i}(_t);function kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=Math.pow(10,e-1);return Math.round(t*i)/i}var Tt,Ct,St=function t(){v(this,t)},Et=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"normalizePropertyName",value:function(t,e){return X(t)}},{key:"normalizeStyleValue",value:function(t,e,i,n){var r="",o=i.toString().trim();if(xt[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{var a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&n.push("Please provide a CSS unit value for ".concat(t,":").concat(i))}return o+r}}]),i}(St),xt=(Tt="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),Ct={},Tt.forEach(function(t){return Ct[t]=!0}),Ct);function Rt(t,e,i,n,r,o,a,s,u,c,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:o,toState:n,toStyles:a,timelines:s,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:h,errors:d}}var It={},Ot=function(){function t(e,i,n){v(this,t),this._triggerName=e,this.ast=i,this._stateStyles=n}return y(t,[{key:"match",value:function(t,e,i,n){return function(t,e,i,n,r){return t.some(function(t){return t(e,i,n,r)})}(this.ast.matchers,t,e,i,n)}},{key:"buildStyles",value:function(t,e,i){var n=this._stateStyles["*"],r=this._stateStyles[t],o=n?n.buildStyles(e,i):{};return r?r.buildStyles(e,i):o}},{key:"build",value:function(t,e,i,n,r,o,a,s,u,c){var l=[],h=this.ast.options&&this.ast.options.params||It,d=this.buildStyles(i,a&&a.params||It,l),f=s&&s.params||It,p=this.buildStyles(n,f,l),g=new Set,v=new Map,m=new Map,y="void"===n,b={params:Object.assign(Object.assign({},h),f)},w=c?[]:mt(t,e,this.ast.animation,r,o,d,p,b,u,l),_=0;if(w.forEach(function(t){_=Math.max(t.duration+t.delay,_)}),l.length)return Rt(e,this._triggerName,i,n,y,d,p,[],[],v,m,_,l);w.forEach(function(t){var i=t.element,n=A(v,i,{});t.preStyleProps.forEach(function(t){return n[t]=!0});var r=A(m,i,{});t.postStyleProps.forEach(function(t){return r[t]=!0}),i!==e&&g.add(i)});var k=Q(g.values());return Rt(e,this._triggerName,i,n,y,d,p,w,k,v,m,_)}}]),t}(),Pt=function(){function t(e,i){v(this,t),this.styles=e,this.defaultParams=i}return y(t,[{key:"buildStyles",value:function(t,e){var i={},n=B(this.defaultParams);return Object.keys(t).forEach(function(e){var i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach(function(t){var o=r[t];o.length>1&&(o=J(o,n,e)),i[t]=o})}}),i}}]),t}(),Dt=function(){function t(e,i){var n=this;v(this,t),this.name=e,this.ast=i,this.transitionFactories=[],this.states={},i.states.forEach(function(t){n.states[t.name]=new Pt(t.style,t.options&&t.options.params||{})}),Mt(this.states,"true","1"),Mt(this.states,"false","0"),i.transitions.forEach(function(t){n.transitionFactories.push(new Ot(e,t,n.states))}),this.fallbackTransition=new Ot(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return y(t,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,e,i,n){return this.transitionFactories.find(function(r){return r.match(t,e,i,n)})||null}},{key:"matchStyles",value:function(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}]),t}();function Mt(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}var Lt=new pt,Nt=function(){function t(e,i,n){v(this,t),this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return y(t,[{key:"register",value:function(t,e){var i=[],n=st(this._driver,e,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: ".concat(i.join("\n")));this._animations[t]=n}},{key:"_buildPlayer",value:function(t,e,i){var n=t.element,r=m(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,r,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var i,n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[t],s=new Map;if(a?(i=mt(this._driver,e,a,"ng-enter","ng-leave",{},{},r,Lt,o)).forEach(function(t){var e=A(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach(function(t,e){Object.keys(t).forEach(function(i){t[i]=n._driver.computeStyle(e,i,l.l3)})});var u=g(i.map(function(t){var e=s.get(t.element);return n._buildPlayer(t,{},e)}));return this._playersById[t]=u,u.onDestroy(function(){return n.destroy(t)}),this.players.push(u),u}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,i,n){var r=_(e,"","","");return b(this._getPlayer(t),i,r,n),function(){}}},{key:"command",value:function(t,e,i,n){if("register"!=i)if("create"!=i){var r=this._getPlayer(t);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,n[0]||{});else this.register(t,n[0])}}]),t}(),zt=[],Ft={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Zt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Bt=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";v(this,t),this.namespaceId=i;var n,r=e&&e.hasOwnProperty("value");if(this.value=null!=(n=r?e.value:e)?n:null,r){var o=B(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return y(t,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var e=t.params;if(e){var i=this.options.params;Object.keys(e).forEach(function(t){null==i[t]&&(i[t]=e[t])})}}}]),t}(),qt=new Bt("void"),Ut=function(){function t(e,i,n){v(this,t),this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Jt(i,this._hostClassName)}return y(t,[{key:"listen",value:function(t,e,i,n){var r,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(i,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==i||0==i.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(r=i)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(i,'" for the animation trigger "').concat(e,'" is not supported!'));var a=A(this._elementListeners,t,[]),s={name:e,phase:i,callback:n};a.push(s);var u=A(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(Jt(t,"ng-trigger"),Jt(t,"ng-trigger-"+e),u[e]=qt),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete u[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,i){var n=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(e),a=new jt(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Jt(t,"ng-trigger"),Jt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var u=s[e],c=new Bt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&u&&c.absorbOptions(u.options),s[e]=c,u||(u=qt),"void"===c.value||u.value!==c.value){var l=A(this._engine.playersByElement,t,[]);l.forEach(function(t){t.namespaceId==n.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(u.value,c.value,t,c.params),d=!1;if(!h){if(!r)return;h=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:u,toState:c,player:a,isFallbackTransition:d}),d||(Jt(t,"ng-animate-queued"),a.onStart(function(){Qt(t,"ng-animate-queued")})),a.onDone(function(){var e=n.players.indexOf(a);e>=0&&n.players.splice(e,1);var i=n._engine.playersByElement.get(t);if(i){var r=i.indexOf(a);r>=0&&i.splice(r,1)}}),this.players.push(a),l.push(a),a}if(!function(t,e){var i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(var r=0;r=0){for(var n=!1,r=i;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}},{key:"register",value:function(t,e){var i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}},{key:"registerTrigger",value:function(t,e,i){var n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var i=this;if(t){var n=this._fetchNamespace(t);this.afterFlush(function(){i.namespacesByHostElement.delete(n.hostElement),delete i._namespaceLookup[t];var e=i._namespaceList.indexOf(n);e>=0&&i._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return n.destroy(e)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,i=this.statesByElement.get(t);if(i)for(var n=Object.keys(i),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,i)}n&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Qt(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,i,n){if(Gt(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,n)}}else this._onRemovalComplete(e,n)}},{key:"markElementAsRemoved",value:function(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,i,n,r){return Gt(e)?this._fetchNamespace(t).listen(e,i,n,r):function(){}}},{key:"_buildInstruction",value:function(t,e,i,n,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,r)}},{key:"destroyInnerAnimations",value:function(t){var e=this,i=this.driver.query(t,".ng-trigger",!0);i.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(i=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return g(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var e=this,i=t.__ng_removed;if(i&&i.setForRemoval){if(t.__ng_removed=Ft,i.namespaceId){this.destroyInnerAnimations(t);var n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(t){e.markElementAsDisabled(t,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,i){return t._balanceNamespaceList(e,i)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var n=0;n=0;I--)this._namespaceList[I].drainQueuedTransitions(e).forEach(function(t){var e=t.player,r=t.element;if(x.push(e),i.collectedEnterElements.length){var a=r.__ng_removed;if(a&&a.setForMove)return void e.destroy()}var l=!f||!i.driver.containsElement(f,r),d=S.get(r),p=m.get(r),g=i._buildInstruction(t,n,p,d,l);if(g.errors&&g.errors.length)R.push(g);else{if(l)return e.onStart(function(){return G(r,g.fromStyles)}),e.onDestroy(function(){return j(r,g.toStyles)}),void o.push(e);if(t.isFallbackTransition)return e.onStart(function(){return G(r,g.fromStyles)}),e.onDestroy(function(){return j(r,g.toStyles)}),void o.push(e);g.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),n.append(r,g.timelines),s.push({instruction:g,player:e,element:r}),g.queriedElements.forEach(function(t){return A(u,t,[]).push(e)}),g.preStyleProps.forEach(function(t,e){var i=Object.keys(t);if(i.length){var n=c.get(e);n||c.set(e,n=new Set),i.forEach(function(t){return n.add(t)})}}),g.postStyleProps.forEach(function(t,e){var i=Object.keys(t),n=h.get(e);n||h.set(e,n=new Set),i.forEach(function(t){return n.add(t)})})}});if(R.length){var O=[];R.forEach(function(t){O.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach(function(t){return O.push("- ".concat(t,"\n"))})}),x.forEach(function(t){return t.destroy()}),this.reportError(O)}var P=new Map,D=new Map;s.forEach(function(t){var e=t.element;n.has(e)&&(D.set(e,e),i._beforeAnimationBuild(t.player.namespaceId,t.instruction,P))}),o.forEach(function(t){var e=t.element;i._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){A(P,e,[]).push(t),t.destroy()})});var M=b.filter(function(t){return $t(t,c,h)}),L=new Map;Vt(L,this.driver,_,h,l.l3).forEach(function(t){$t(t,c,h)&&M.push(t)});var N=new Map;v.forEach(function(t,e){Vt(N,i.driver,new Set(t),c,l.k1)}),M.forEach(function(t){var e=L.get(t),i=N.get(t);L.set(t,Object.assign(Object.assign({},e),i))});var z=[],F=[],Z={};s.forEach(function(t){var e=t.element,r=t.player,s=t.instruction;if(n.has(e)){if(d.has(e))return r.onDestroy(function(){return j(e,s.toStyles)}),r.disabled=!0,r.overrideTotalTime(s.totalTime),void o.push(r);var u=Z;if(D.size>1){for(var c=e,l=[];c=c.parentNode;){var h=D.get(c);if(h){u=h;break}l.push(c)}l.forEach(function(t){return D.set(t,u)})}var f=i._buildAnimation(r.namespaceId,s,P,a,N,L);if(r.setRealPlayer(f),u===Z)z.push(r);else{var p=i.playersByElement.get(u);p&&p.length&&(r.parentPlayer=g(p)),o.push(r)}}else G(e,s.fromStyles),r.onDestroy(function(){return j(e,s.toStyles)}),F.push(r),d.has(e)&&o.push(r)}),F.forEach(function(t){var e=a.get(t.element);if(e&&e.length){var i=g(e);t.setRealPlayer(i)}}),o.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var B=0;B0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new l.ZN(t.duration,t.delay)}}]),t}(),jt=function(){function t(e,i,n){v(this,t),this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new l.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return y(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(i){e._queuedCallbacks[i].forEach(function(e){return b(t,i,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,i=this._player;i.triggerCallback&&t.onStart(function(){return i.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})}},{key:"_queueEvent",value:function(t,e){A(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function Gt(t){return t&&1===t.nodeType}function Yt(t,e){var i=t.style.display;return t.style.display=null!=e?e:"none",i}function Vt(t,e,i,n,r){var o=[];i.forEach(function(t){return o.push(Yt(t))});var a=[];n.forEach(function(i,n){var o={};i.forEach(function(t){var i=o[t]=e.computeStyle(n,t,r);i&&0!=i.length||(n.__ng_removed=Zt,a.push(n))}),t.set(n,o)});var s=0;return i.forEach(function(t){return Yt(t,o[s++])}),a}function Kt(t,e){var i=new Map;if(t.forEach(function(t){return i.set(t,[])}),0==e.length)return i;var n=new Set(e),r=new Map;function o(t){if(!t)return 1;var e=r.get(t);if(e)return e;var a=t.parentNode;return e=i.has(a)?a:n.has(a)?1:o(a),r.set(t,e),e}return e.forEach(function(t){var e=o(t);1!==e&&i.get(e).push(t)}),i}function Jt(t,e){if(t.classList)t.classList.add(e);else{var i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Qt(t,e){if(t.classList)t.classList.remove(e);else{var i=t.$$classes;i&&delete i[e]}}function Wt(t,e,i){g(i).onDone(function(){return t.processLeaveNode(e)})}function Xt(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),t}();function ee(t,e){var i=null,n=null;return Array.isArray(e)&&e.length?(i=ne(e[0]),e.length>1&&(n=ne(e[e.length-1]))):e&&(i=ne(e)),i||n?new ie(t,i,n):null}var ie=function(){var t=function(){function t(e,i,n){v(this,t),this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return y(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&j(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(j(this._element,this._initialStyles),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(G(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(G(this._element,this._endStyles),this._endStyles=null),j(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function ne(t){for(var e=null,i=Object.keys(t),n=0;n=this._delay&&i>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),ce(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,i,n;this._destroyed||(this._destroyed=!0,this.finish(),t=this._element,e=this._name,i=he(t,"").split(","),(n=ue(i,e))>=0&&(i.splice(n,1),le(t,"",i.join(","))))}}]),t}();function ae(t,e,i){le(t,"PlayState",i,se(t,e))}function se(t,e){var i=he(t,"");return i.indexOf(",")>0?ue(i.split(","),e):ue([i],e)}function ue(t,e){for(var i=0;i=0)return i;return-1}function ce(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function le(t,e,i,n){var r="animation"+e;if(null!=n){var o=t.style[r];if(o.length){var a=o.split(",");a[n]=i,i=a.join(",")}}t.style[r]=i}function he(t,e){return t.style["animation"+e]||""}var de=function(){function t(e,i,n,r,o,a,s,u){v(this,t),this.element=e,this.keyframes=i,this.animationName=n,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return y(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new oe(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var i=this._state>=3;Object.keys(this._finalStyles).forEach(function(n){"offset"!=n&&(e[n]=i?t._finalStyles[n]:it(t.element,n))})}this.currentSnapshot=e}}]),t}(),fe=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this)).element=t,r._startingStyles={},r.__initialized=!1,r._styles=M(n),r}return y(i,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),n(d(i.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),n(d(i.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var i=t._startingStyles[e];i?t.element.style.setProperty(e,i):t.element.style.removeProperty(e)}),this._startingStyles=null,n(d(i.prototype),"destroy",this).call(this))}}]),i}(l.ZN),pe=function(){function t(){v(this,t),this._count=0}return y(t,[{key:"validateStyleProperty",value:function(t){return I(t)}},{key:"matchesElement",value:function(t,e){return O(t,e)}},{key:"containsElement",value:function(t,e){return P(t,e)}},{key:"query",value:function(t,e,i){return D(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,i){i=i.map(function(t){return M(t)});var n="@keyframes ".concat(e," {\n"),r="";i.forEach(function(t){r=" ";var e=parseFloat(t.offset);n+="".concat(r).concat(100*e,"% {\n"),r+=" ",Object.keys(t).forEach(function(e){var i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+="".concat(r,"animation-timing-function: ").concat(i,";\n")));default:return void(n+="".concat(r).concat(e,": ").concat(i,";\n"))}}),n+="".concat(r,"}\n")}),n+="}\n";var o=document.createElement("style");return o.textContent=n,o}},{key:"animate",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(t){return t instanceof de}),s={};$(i,n)&&a.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return s[t]=e[t]})});var u=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(i){"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=tt(t,e,s));if(0==i)return new fe(t,u);var c="gen_css_kf_"+this._count++,l=this.buildKeyframeElement(t,c,e);(function(t){var e,i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(l);var h=ee(t,e),d=new de(t,e,c,i,n,r,u,h);return d.onDestroy(function(){var t;(t=l).parentNode.removeChild(t)}),d}}]),t}(),ge=function(){function t(e,i,n,r){v(this,t),this.element=e,this.keyframes=i,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return y(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,i){return t.animate(e,i)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(i){"offset"!=i&&(e[i]=t._finished?t._finalKeyframe[i]:it(t.element,i))}),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),ve=function(){function t(){v(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(me().toString()),this._cssKeyframesDriver=new pe}return y(t,[{key:"validateStyleProperty",value:function(t){return I(t)}},{key:"matchesElement",value:function(t,e){return O(t,e)}},{key:"containsElement",value:function(t,e){return P(t,e)}},{key:"query",value:function(t,e,i){return D(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,r,o);var s={duration:i,delay:n,fill:0==n?"both":"forwards"};r&&(s.easing=r);var u={},c=o.filter(function(t){return t instanceof ge});$(i,n)&&c.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})});var l=ee(t,e=tt(t,e=e.map(function(t){return q(t,!1)}),u));return new ge(t,e,s,l)}}]),t}();function me(){return h()&&Element.prototype.animate||{}}var ye=i(61511),be=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this))._nextAnimationId=0,r._renderer=t.createRenderer(n.body,{id:"0",encapsulation:s.ifc.None,styles:[],data:{animation:[]}}),r}return y(i,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var i=Array.isArray(t)?(0,l.vP)(t):t;return Ae(this._renderer,null,e,"register",[i]),new we(e,this._renderer)}}]),i}(l._j);return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.FYo),s.LFG(ye.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),we=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this))._id=t,r._renderer=n,r}return y(i,[{key:"create",value:function(t,e){return new _e(this._id,t,e||{},this._renderer)}}]),i}(l.LC),_e=function(){function t(e,i,n,r){v(this,t),this.id=e,this.element=i,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return y(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}},{key:"removeChild",value:function(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}},{key:"removeAttribute",value:function(t,e,i){this.delegate.removeAttribute(t,e,i)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,i,n){this.delegate.setStyle(t,e,i,n)}},{key:"removeStyle",value:function(t,e,i){this.delegate.removeStyle(t,e,i)}},{key:"setProperty",value:function(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,i){return this.delegate.listen(t,e,i)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}}]),t}(),Ce=function(t){a(i,t);var e=u(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,n,r,o)).factory=t,a.namespaceId=n,a}return y(i,[{key:"setProperty",value:function(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}},{key:"listen",value:function(t,e,i){var n,r,a=this;if("@"==e.charAt(0)){var s,u=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),c=e.substr(1),l="";return"@"!=c.charAt(0)&&(r=(n=c).indexOf("."),c=(s=o([n.substring(0,r),n.substr(r+1)],2))[0],l=s[1]),this.engine.listen(this.namespaceId,u,c,l,function(t){a.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}]),i}(Te),Se=function(){var t=function(t){a(i,t);var e=u(i);function i(t,n,r){return v(this,i),e.call(this,t.body,n,r)}return y(i,[{key:"ngOnDestroy",value:function(){this.flush()}}]),i}(te);return t.\u0275fac=function(e){return new(e||t)(s.LFG(ye.K0),s.LFG(N),s.LFG(St))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),Ee=new s.OlP("AnimationModuleType"),xe=[{provide:l._j,useClass:be},{provide:St,useFactory:function(){return new Et}},{provide:te,useClass:Se},{provide:s.FYo,useFactory:function(t,e,i){return new ke(t,e,i)},deps:[c.se,te,s.R0b]}],Re=[{provide:N,useFactory:function(){return"function"==typeof me()?new ve:new pe}},{provide:Ee,useValue:"BrowserAnimations"}].concat(xe),Ie=[{provide:N,useClass:L},{provide:Ee,useValue:"NoopAnimations"}].concat(xe),Oe=function(){var t=function(){function t(){v(this,t)}return y(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:e.disableAnimations?Ie:Re}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:Re,imports:[c.b2]}),t}()},30269:function(t,e,i){"use strict";i.d(e,{b2:function(){return H},H7:function(){return F},Dx:function(){return G},q6:function(){return q},se:function(){return x}});var r,o=i(61511),s=i(31572),c=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"onAndCancel",value:function(t,e,i){return t.addEventListener(e,i,!1),function(){t.removeEventListener(e,i,!1)}}},{key:"dispatchEvent",value:function(t,e){t.dispatchEvent(e)}},{key:"remove",value:function(t){t.parentNode&&t.parentNode.removeChild(t)}},{key:"createElement",value:function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(t){return t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}},{key:"getBaseHref",value:function(t){var e=(l=l||document.querySelector("base"))?l.getAttribute("href"):null;return null==e?null:function(t){(r=r||document.createElement("a")).setAttribute("href",t);var e=r.pathname;return"/"===e.charAt(0)?e:"/".concat(e)}(e)}},{key:"resetBaseElement",value:function(){l=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(t){return(0,o.Mx)(document.cookie,t)}}],[{key:"makeCurrent",value:function(){(0,o.HT)(new i)}}]),i}(function(t){a(i,t);var e=u(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments)).supportsDOMEvents=!0,t}return i}(o.w_)),l=null,h=new s.OlP("TRANSITION_ID"),f=[{provide:s.ip1,useFactory:function(t,e,i){return function(){i.get(s.CZH).donePromise.then(function(){var i=(0,o.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(function(e){return e.getAttribute("ng-transition")===t}).forEach(function(t){return i.remove(t)})})}},deps:[h,o.K0,s.zs3],multi:!0}],p=function(){function t(){v(this,t)}return y(t,[{key:"addToWindow",value:function(t){s.dqk.getAngularTestability=function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},s.dqk.getAllAngularTestabilities=function(){return t.getAllTestabilities()},s.dqk.getAllAngularRootElements=function(){return t.getAllRootElements()},s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(function(t){var e=s.dqk.getAllAngularTestabilities(),i=e.length,n=!1,r=function(e){n=n||e,0==--i&&t(n)};e.forEach(function(t){t.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(t,e,i){if(null==e)return null;var n=t.getTestability(e);return null!=n?n:i?(0,o.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){(0,s.VLi)(new t)}}]),t}(),g=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),m=new s.OlP("EventManagerPlugins"),b=function(){var t=function(){function t(e,i){var n=this;v(this,t),this._zone=i,this._eventNameToPlugin=new Map,e.forEach(function(t){return t.manager=n}),this._plugins=e.slice().reverse()}return y(t,[{key:"addEventListener",value:function(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}},{key:"addGlobalEventListener",value:function(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var i=this._plugins,n=0;n-1&&(e.splice(i,1),o+=t+".")}),o+=r,0!=e.length||0===r.length)return null;var a={};return a.domEventName=n,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",i=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&L.hasOwnProperty(e)&&(e=L[e]))}return M[e]||e}(t);return" "===(i=i.toLowerCase())?i="space":"."===i&&(i="dot"),D.forEach(function(n){n!=i&&(0,N[n])(t)&&(e+=n+".")}),e+=i}},{key:"eventCallback",value:function(t,e,n){return function(r){i.getEventFullKey(r)===t&&n.runGuarded(function(){return e(r)})}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),i}(w);return t.\u0275fac=function(e){return new(e||t)(s.LFG(o.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),F=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(B)},token:t,providedIn:"root"}),t}();function Z(t){return new B(t.get(o.K0))}var B=function(){var t=function(t){a(i,t);var e=u(i);function i(t){var n;return v(this,i),(n=e.call(this))._doc=t,n}return y(i,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return(0,s.JVY)(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return(0,s.L6k)(t)}},{key:"bypassSecurityTrustScript",value:function(t){return(0,s.eBb)(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return(0,s.LAX)(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return(0,s.pB0)(t)}}]),i}(F);return t.\u0275fac=function(e){return new(e||t)(s.LFG(o.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return Z((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t}(),q=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:o.bD},{provide:s.g9A,useValue:function(){c.makeCurrent(),p.init()},multi:!0},{provide:o.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),U=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:m,useClass:P,multi:!0,deps:[o.K0,s.R0b,s.Lbi]},{provide:m,useClass:z,multi:!0,deps:[o.K0]},[],{provide:x,useClass:x,deps:[b,A,s.AFp]},{provide:s.FYo,useExisting:x},{provide:_,useExisting:A},{provide:A,useClass:A,deps:[o.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:b,useClass:b,deps:[m,s.R0b]},{provide:o.JF,useClass:g,deps:[]},[]],H=function(){var t=function(){function t(e){if(v(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return y(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:s.AFp,useValue:e.appId},{provide:h,useExisting:s.AFp},f]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:U,imports:[o.ez,s.hGG]}),t}();function j(){return new G((0,s.LFG)(o.K0))}var G=function(){var t=function(){function t(e){v(this,t),this._doc=e}return y(t,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(t){this._doc.title=t||""}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(o.K0))},t.\u0275prov=(0,s.Yz7)({factory:j,token:t,providedIn:"root"}),t}();"undefined"!=typeof window&&window},57629:function(t,e,i){"use strict";i.d(e,{gz:function(){return $t},m2:function(){return J},OD:function(){return K},GZ:function(){return xi},wN:function(){return ci},F0:function(){return _i},rH:function(){return Ai},yS:function(){return ki},Bz:function(){return Li},lC:function(){return Ci}});var n=i(61511),o=i(31572),s=i(19764),c=i(40878),h=i(78512),d=i(31305),p=i(48318),g=i(39665),m=i(47930),b=i(31450),w=i(70653),_=i(42875),A=i(55959),k=i(96673);function T(t,e){var i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new C(t,e,i))}}var C=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];v(this,t),this.accumulator=e,this.seed=i,this.hasSeed=n}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new S(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),S=function(t){a(i,t);var e=u(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t)).accumulator=n,a._seed=r,a.hasSeed=o,a.index=0,a}return y(i,[{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}},{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,i=this.index++;try{e=this.accumulator(this.seed,t,i)}catch(n){this.destination.error(n)}this.seed=e,this.destination.next(e)}}]),i}(k.L),E=i(43835),x=i(98402);function R(t){return function(e){return 0===t?(0,w.c)():e.lift(new I(t))}}var I=function(){function t(e){if(v(this,t),this.total=e,this.total<0)throw new x.W}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new O(t,this.total))}}]),t}(),O=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t)).total=n,r.ring=new Array,r.count=0,r}return y(i,[{key:"_next",value:function(t){var e=this.ring,i=this.total,n=this.count++;e.length0)for(var i=this.count>=this.total?this.total:this.count,n=this.ring,r=0;r2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return v(this,i),(r=e.call(this,t,n)).navigationTrigger=o,r.restoredState=a,r}return y(i,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(V),J=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t,n)).urlAfterRedirects=r,o}return y(i,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),i}(V),Q=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t,n)).reason=r,o}return y(i,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(V),W=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t,n)).error=r,o}return y(i,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),i}(V),X=function(t){a(i,t);var e=u(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return y(i,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(V),$=function(t){a(i,t);var e=u(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return y(i,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(V),tt=function(t){a(i,t);var e=u(i);function i(t,n,r,o,a){var s;return v(this,i),(s=e.call(this,t,n)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return y(i,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),i}(V),et=function(t){a(i,t);var e=u(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return y(i,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(V),it=function(t){a(i,t);var e=u(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return y(i,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(V),nt=function(){function t(e){v(this,t),this.route=e}return y(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),rt=function(){function t(e){v(this,t),this.route=e}return y(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),ot=function(){function t(e){v(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),at=function(){function t(e){v(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),st=function(){function t(e){v(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),ut=function(){function t(e){v(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),ct=function(){function t(e,i,n){v(this,t),this.routerEvent=e,this.position=i,this.anchor=n}return y(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),lt=function(){function t(e){v(this,t),this.params=e||{}}return y(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function ht(t){return new lt(t)}function dt(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function ft(t,e,i){var n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.length0?t[t.length-1]:null}function yt(t,e){for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)}function bt(t){return(0,o.CqO)(t)?t:(0,o.QGY)(t)?(0,s.D)(Promise.resolve(t)):(0,c.of)(t)}var wt={exact:function t(e,i,n){if(!Rt(e.segments,i.segments))return!1;if(!Ct(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(var r in i.children){if(!e.children[r])return!1;if(!t(e.children[r],i.children[r],n))return!1}return!0},subset:kt},_t={exact:function(t,e){return pt(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(i){return gt(t[i],e[i])})},ignored:function(){return!0}};function At(t,e,i){return wt[i.paths](t.root,e.root,i.matrixParams)&&_t[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function kt(t,e,i){return Tt(t,e,e.segments,i)}function Tt(t,e,i,n){if(t.segments.length>i.length){var r=t.segments.slice(0,i.length);return!!Rt(r,i)&&!e.hasChildren()&&!!Ct(r,i,n)}if(t.segments.length===i.length){if(!Rt(t.segments,i))return!1;if(!Ct(t.segments,i,n))return!1;for(var o in e.children){if(!t.children[o])return!1;if(!kt(t.children[o],e.children[o],n))return!1}return!0}var a=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!!Rt(t.segments,a)&&!!Ct(t.segments,a,n)&&!!t.children.primary&&Tt(t.children.primary,e,s,n)}function Ct(t,e,i){return e.every(function(e,n){return _t[i](t[n].parameters,e.parameters)})}var St=function(){function t(e,i,n){v(this,t),this.root=e,this.queryParams=i,this.fragment=n}return y(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ht(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Pt.serialize(this)}}]),t}(),Et=function(){function t(e,i){var n=this;v(this,t),this.segments=e,this.children=i,this.parent=null,yt(i,function(t,e){return t.parent=n})}return y(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Dt(this)}}]),t}(),xt=function(){function t(e,i){v(this,t),this.path=e,this.parameters=i}return y(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=ht(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return Bt(this)}}]),t}();function Rt(t,e){return t.length===e.length&&t.every(function(t,i){return t.path===e[i].path})}var It=function t(){v(this,t)},Ot=function(){function t(){v(this,t)}return y(t,[{key:"parse",value:function(t){var e=new Gt(t);return new St(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,i,n;return"/".concat(Mt(t.root,!0)).concat((i=t.queryParams,n=Object.keys(i).map(function(t){var e=i[t];return Array.isArray(e)?e.map(function(e){return"".concat(Nt(t),"=").concat(Nt(e))}).join("&"):"".concat(Nt(t),"=").concat(Nt(e))}).filter(function(t){return!!t}),n.length?"?".concat(n.join("&")):"")).concat("string"==typeof t.fragment?"#".concat((e=t.fragment,encodeURI(e))):"")}}]),t}(),Pt=new Ot;function Dt(t){return t.segments.map(function(t){return Bt(t)}).join("/")}function Mt(t,e){if(!t.hasChildren())return Dt(t);if(e){var i=t.children.primary?Mt(t.children.primary,!1):"",n=[];return yt(t.children,function(t,e){"primary"!==e&&n.push("".concat(e,":").concat(Mt(t,!1)))}),n.length>0?"".concat(i,"(").concat(n.join("//"),")"):i}var r=function(t,e){var i=[];return yt(t.children,function(t,n){"primary"===n&&(i=i.concat(e(t,n)))}),yt(t.children,function(t,n){"primary"!==n&&(i=i.concat(e(t,n)))}),i}(t,function(e,i){return"primary"===i?[Mt(t.children.primary,!1)]:["".concat(i,":").concat(Mt(e,!1))]});return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(Dt(t),"/").concat(r[0]):"".concat(Dt(t),"/(").concat(r.join("//"),")")}function Lt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Nt(t){return Lt(t).replace(/%3B/gi,";")}function zt(t){return Lt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ft(t){return decodeURIComponent(t)}function Zt(t){return Ft(t.replace(/\+/g,"%20"))}function Bt(t){return"".concat(zt(t.path)).concat((e=t.parameters,Object.keys(e).map(function(t){return";".concat(zt(t),"=").concat(zt(e[t]))}).join("")));var e}var qt=/^[^\/()?;=#]+/;function Ut(t){var e=t.match(qt);return e?e[0]:""}var Ht=/^[^=?&#]+/,jt=/^[^?&#]+/,Gt=function(){function t(e){v(this,t),this.url=e,this.remaining=e}return y(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Et([],{}):new Et([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new Et(t,e)),i}},{key:"parseSegment",value:function(){var t=Ut(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new xt(Ft(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=Ut(this.remaining);if(e){this.capture(e);var i="";if(this.consumeOptional("=")){var n=Ut(this.remaining);n&&(i=n,this.capture(i))}t[Ft(e)]=Ft(i)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(Ht);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var i="";if(this.consumeOptional("=")){var n=function(t){var e=t.match(jt);return e?e[0]:""}(this.remaining);n&&(i=n,this.capture(i))}var r=Zt(e),o=Zt(i);if(t.hasOwnProperty(r)){var a=t[r];Array.isArray(a)||(a=[a],t[r]=a),a.push(o)}else t[r]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var i=Ut(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");var o=this.parseChildren();e[r]=1===Object.keys(o).length?o.primary:new Et([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),Yt=function(){function t(e){v(this,t),this._root=e}return y(t,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=Vt(t,this._root);return e?e.children.map(function(t){return t.value}):[]}},{key:"firstChild",value:function(t){var e=Vt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Kt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})}},{key:"pathFromRoot",value:function(t){return Kt(t,this._root).map(function(t){return t.value})}}]),t}();function Vt(t,e){if(t===e.value)return e;var i,n=f(e.children);try{for(n.s();!(i=n.n()).done;){var r=Vt(t,i.value);if(r)return r}}catch(o){n.e(o)}finally{n.f()}return null}function Kt(t,e){if(t===e.value)return[e];var i,n=f(e.children);try{for(n.s();!(i=n.n()).done;){var r=Kt(t,i.value);if(r.length)return r.unshift(e),r}}catch(o){n.e(o)}finally{n.f()}return[]}var Jt=function(){function t(e,i){v(this,t),this.value=e,this.children=i}return y(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function Qt(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Wt=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t)).snapshot=n,ne(l(r),t),r}return y(i,[{key:"toString",value:function(){return this.snapshot.toString()}}]),i}(Yt);function Xt(t,e){var i=function(t,e){var i=new ee([],{},{},"",{},"primary",e,null,t.root,-1,{});return new ie("",new Jt(i,[]))}(t,e),n=new h.X([new xt("",{})]),r=new h.X({}),o=new h.X({}),a=new h.X({}),s=new h.X(""),u=new $t(n,r,a,s,o,"primary",e,i.root);return u.snapshot=i.root,new Wt(new Jt(u,[]),i)}var $t=function(){function t(e,i,n,r,o,a,s,u){v(this,t),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return y(t,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,L.U)(function(t){return ht(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,L.U)(function(t){return ht(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function te(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",i=t.pathFromRoot,n=0;if("always"!==e)for(n=i.length-1;n>=1;){var r=i[n],o=i[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function(t){return t.reduce(function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}},{params:{},data:{},resolve:{}})}(i.slice(n))}var ee=function(){function t(e,i,n,r,o,a,s,u,c,l,h){v(this,t),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=l,this._resolve=h}return y(t,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=ht(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ht(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(t){return t.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),t}(),ie=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this,n)).url=t,ne(l(r),n),r}return y(i,[{key:"toString",value:function(){return re(this._root)}}]),i}(Yt);function ne(t,e){e.value._routerState=t,e.children.forEach(function(e){return ne(t,e)})}function re(t){var e=t.children.length>0?" { ".concat(t.children.map(re).join(", ")," } "):"";return"".concat(t.value).concat(e)}function oe(t){if(t.snapshot){var e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,pt(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),pt(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(var i=0;i0&&ce(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(le);if(r&&r!==mt(n))throw new Error("{outlets:{}} has to be the last command")}return y(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),pe=function t(e,i,n){v(this,t),this.segmentGroup=e,this.processChildren=i,this.index=n};function ge(t,e,i){if(t||(t=new Et([],{})),0===t.segments.length&&t.hasChildren())return ve(t,e,i);var n=function(t,e,i){for(var n=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};r=i.length)return o;var a=t.segments[r],s=i[n];if(le(s))break;var u="".concat(s),c=n0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!we(u,c,a))return o;n+=2}else{if(!we(u,{},a))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",i=0;i0)?Object.assign({},Le):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(e.matcher||ft)(i,t,e);if(!r)return Object.assign({},Le);var o={};yt(r.posParams,function(t,e){o[e]=t.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(n=r.posParams)&&void 0!==n?n:{}}}function ze(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(i.length>0&&function(t,e,i){return i.some(function(i){return Fe(t,e,i)&&"primary"!==De(i)})}(t,i,n)){var o=new Et(e,function(t,e,i,n){var r={};r.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;var o,a=f(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&"primary"!==De(s)){var u=new Et([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,r[De(s)]=u}}}catch(c){a.e(c)}finally{a.f()}return r}(t,e,n,new Et(i,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(function(i){return Fe(t,e,i)})}(t,i,n)){var a=new Et(t.segments,function(t,e,i,n,r,o){var a,s={},u=f(n);try{for(u.s();!(a=u.n()).done;){var c=a.value;if(Fe(t,i,c)&&!r[De(c)]){var l=new Et([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[De(c)]=l}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},r),s)}(t,e,i,n,t.children,r));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}var s=new Et(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:i}}function Fe(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Ze(t,e,i,n){return!!(De(t)===n||"primary"!==n&&Fe(e,i,t))&&("**"===t.path||Ne(e,t,i).matched)}function Be(t,e,i){return 0===e.length&&!t.children[i]}var qe=function t(e){v(this,t),this.segmentGroup=e||null},Ue=function t(e){v(this,t),this.urlTree=e};function He(t){return new p.y(function(e){return e.error(new qe(t))})}function je(t){return new p.y(function(e){return e.error(new Ue(t))})}function Ge(t){return new p.y(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))})}var Ye=function(){function t(e,i,n,r,a){v(this,t),this.configLoader=i,this.urlSerializer=n,this.urlTree=r,this.config=a,this.allowRedirects=!0,this.ngModule=e.get(o.h0i)}return y(t,[{key:"apply",value:function(){var t=this,e=ze(this.urlTree.root,[],[],this.config).segmentGroup,i=new Et(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,i,"primary").pipe((0,L.U)(function(e){return t.createUrlTree(Ve(e),t.urlTree.queryParams,t.urlTree.fragment)})).pipe((0,Z.K)(function(e){if(e instanceof Ue)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof qe)throw t.noMatchError(e);throw e}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe((0,L.U)(function(i){return e.createUrlTree(Ve(i),t.queryParams,t.fragment)})).pipe((0,Z.K)(function(t){if(t instanceof qe)throw e.noMatchError(t);throw t}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,i){var n=t.segments.length>0?new Et([],{primary:t}):t;return new St(n,e,i)}},{key:"expandSegmentGroup",value:function(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe((0,L.U)(function(t){return new Et([],t)})):this.expandSegment(t,i,e,i.segments,n,!0)}},{key:"expandChildren",value:function(t,e,i){for(var n=this,r=[],o=0,a=Object.keys(i.children);o=2;return function(n){return n.pipe(t?(0,E.h)(function(e,i){return t(e,i,n)}):M.y,R(1),i?(0,D.d)(e):(0,P.T)(function(){return new g.K}))}}())}},{key:"expandSegment",value:function(t,e,i,n,r,o){var a=this;return(0,s.D)(i).pipe((0,B.b)(function(s){return a.expandSegmentAgainstRoute(t,e,i,s,n,r,o).pipe((0,Z.K)(function(t){if(t instanceof qe)return(0,c.of)(null);throw t}))}),(0,q.P)(function(t){return!!t}),(0,Z.K)(function(t,i){if(t instanceof g.K||"EmptyError"===t.name){if(Be(e,n,r))return(0,c.of)(new Et([],{}));throw new qe(e)}throw t}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,i,n,r,o,a){return Ze(n,e,r,o)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,r,o):He(e):He(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,i,n,r,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,i,n){var r=this,o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?je(o):this.lineralizeSegments(i,o).pipe((0,U.zg)(function(i){var o=new Et(i,{});return r.expandSegment(t,o,e,i,n,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,i,n,r,o){var a=this,s=Ne(e,n,r),u=s.matched,c=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!u)return He(e);var d=this.applyRedirectCommands(c,n.redirectTo,h);return n.redirectTo.startsWith("/")?je(d):this.lineralizeSegments(n,d).pipe((0,U.zg)(function(n){return a.expandSegment(t,e,i,n.concat(r.slice(l)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,i,n,r){var o=this;if("**"===i.path)return i.loadChildren?(i._loadedConfig?(0,c.of)(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe((0,L.U)(function(t){return i._loadedConfig=t,new Et(n,{})})):(0,c.of)(new Et(n,{}));var a=Ne(e,i,n),s=a.matched,u=a.consumedSegments,l=a.lastChild;if(!s)return He(e);var h=n.slice(l);return this.getChildConfig(t,i,n).pipe((0,U.zg)(function(t){var n=t.module,a=t.routes,s=ze(e,u,h,a),l=s.segmentGroup,d=s.slicedSegments,f=new Et(l.segments,l.children);if(0===d.length&&f.hasChildren())return o.expandChildren(n,a,f).pipe((0,L.U)(function(t){return new Et(u,t)}));if(0===a.length&&0===d.length)return(0,c.of)(new Et(u,{}));var p=De(i)===r;return o.expandSegment(n,f,a,d,p?"primary":r,!0).pipe((0,L.U)(function(t){return new Et(u.concat(t.segments),t.children)}))}))}},{key:"getChildConfig",value:function(t,e,i){var n=this;return e.children?(0,c.of)(new ke(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,c.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe((0,U.zg)(function(i){return i?n.configLoader.load(t.injector,e).pipe((0,L.U)(function(t){return e._loadedConfig=t,t})):function(t){return new p.y(function(e){return e.error(dt("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))})}(e)})):(0,c.of)(new ke([],t))}},{key:"runCanLoadGuards",value:function(t,e,i){var n=this,r=e.canLoad;if(!r||0===r.length)return(0,c.of)(!0);var o=r.map(function(n){var r,o=t.get(n);if(function(t){return t&&Te(t.canLoad)}(o))r=o.canLoad(e,i);else{if(!Te(o))throw new Error("Invalid CanLoad guard");r=o(e,i)}return bt(r)});return(0,c.of)(o).pipe(Ee(),(0,H.b)(function(t){if(Ce(t)){var e=dt('Redirecting to "'.concat(n.urlSerializer.serialize(t),'"'));throw e.url=t,e}}),(0,L.U)(function(t){return!0===t}))}},{key:"lineralizeSegments",value:function(t,e){for(var i=[],n=e.root;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return(0,c.of)(i);if(n.numberOfChildren>1||!n.children.primary)return Ge(t.redirectTo);n=n.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,i,n){var r=this.createSegmentGroup(t,e.root,i,n);return new St(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var i={};return yt(t,function(t,n){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);i[n]=e[r]}else i[n]=t}),i}},{key:"createSegmentGroup",value:function(t,e,i,n){var r=this,o=this.createSegments(t,e.segments,i,n),a={};return yt(e.children,function(e,o){a[o]=r.createSegmentGroup(t,e,i,n)}),new Et(o,a)}},{key:"createSegments",value:function(t,e,i,n){var r=this;return e.map(function(e){return e.path.startsWith(":")?r.findPosParam(t,e,n):r.findOrReturn(e,i)})}},{key:"findPosParam",value:function(t,e,i){var n=i[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return n}},{key:"findOrReturn",value:function(t,e){var i,n=0,r=f(e);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.path===t.path)return e.splice(n),o;n++}}catch(a){r.e(a)}finally{r.f()}return t}}]),t}();function Ve(t){for(var e={},i=0,n=Object.keys(t.children);i0||o.hasChildren())&&(e[r]=o)}return function(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Et(t.segments.concat(e.segments),e.children)}return t}(new Et(t.segments,e))}var Ke=function t(e){v(this,t),this.path=e,this.route=this.path[this.path.length-1]},Je=function t(e,i){v(this,t),this.component=e,this.route=i};function Qe(t,e,i){var n=t._root;return Xe(n,e?e._root:null,i,[n.value])}function We(t,e,i){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var i=e.routeConfig;if(i&&i._loadedConfig)return i._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Xe(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=Qt(e);return t.children.forEach(function(t){!function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,a=e?e.value:null,s=i?i.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!Rt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Rt(t.url,e.url)||!pt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ae(t,e)||!pt(t.queryParams,e.queryParams);case"paramsChange":default:return!ae(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new Ke(n)):(o.data=a.data,o._resolvedData=a._resolvedData),Xe(t,e,o.component?s?s.children:null:i,n,r),u&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Je(s.outlet.component,a))}else a&&$e(e,s,r),r.canActivateChecks.push(new Ke(n)),Xe(t,null,o.component?s?s.children:null:i,n,r)}(t,o[t.value.outlet],i,n.concat([t.value]),r),delete o[t.value.outlet]}),yt(o,function(t,e){return $e(t,i.getContext(e),r)}),r}function $e(t,e,i){var n=Qt(t),r=t.value;yt(n,function(t,n){$e(t,r.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Je(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var ti=function t(){v(this,t)};function ei(t){return new p.y(function(e){return e.error(t)})}var ii=function(){function t(e,i,n,r,o,a){v(this,t),this.rootComponentType=e,this.config=i,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return y(t,[{key:"recognize",value:function(){var t=ze(this.urlTree.root,[],[],this.config.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;var i=new ee([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Jt(i,e),r=new ie(this.url,n);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(t){var e=this,i=t.value,n=te(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})}},{key:"processSegmentGroup",value:function(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}},{key:"processChildren",value:function(t,e){for(var i=[],n=0,o=Object.keys(e.children);n0?mt(i).parameters:{};r=new ee(i,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ai(t),De(t),t.component,t,ri(e),oi(e)+i.length,si(t))}else{var u=Ne(e,t,i);if(!u.matched)return null;o=u.consumedSegments,a=i.slice(u.lastChild),r=new ee(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ai(t),De(t),t.component,t,ri(e),oi(e)+o.length,si(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),l=ze(e,o,a,c.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution),h=l.segmentGroup,d=l.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(c,h);return null===f?null:[new Jt(r,f)]}if(0===c.length&&0===d.length)return[new Jt(r,[])];var p=De(t)===n,g=this.processSegment(c,h,d,p?"primary":n);return null===g?null:[new Jt(r,g)]}}]),t}();function ni(t){var e,i=[],n=new Set,o=f(t);try{var a=function(){var t,o=e.value;if(!function(t){var e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}(o))return i.push(o),"continue";var a=i.find(function(t){return o.value.routeConfig===t.value.routeConfig});void 0!==a?((t=a.children).push.apply(t,r(o.children)),n.add(a)):i.push(o)};for(o.s();!(e=o.n()).done;)a()}catch(h){o.e(h)}finally{o.f()}var s,u=f(n);try{for(u.s();!(s=u.n()).done;){var c=s.value,l=ni(c.children);i.push(new Jt(c.value,l))}}catch(h){u.e(h)}finally{u.f()}return i.filter(function(t){return!n.has(t)})}function ri(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function oi(t){for(var e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)i+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return i-1}function ai(t){return t.data||{}}function si(t){return t.resolve||{}}function ui(t){return(0,N.w)(function(e){var i=t(e);return i?(0,s.D)(i).pipe((0,L.U)(function(){return e})):(0,c.of)(e)})}var ci=function t(){v(this,t)},li=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(function(){function t(){v(this,t)}return y(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),hi=new o.OlP("ROUTES"),di=function(){function t(e,i,n,r){v(this,t),this.loader=e,this.compiler=i,this.onLoadStartListener=n,this.onLoadEndListener=r}return y(t,[{key:"load",value:function(t,e){var i=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var n=this.loadModuleFactory(e.loadChildren).pipe((0,L.U)(function(n){i.onLoadEndListener&&i.onLoadEndListener(e);var r=n.create(t);return new ke(vt(r.injector.get(hi,void 0,o.XFs.Self|o.XFs.Optional)).map(Pe),r)}),(0,Z.K)(function(t){throw e._loader$=void 0,t}));return e._loader$=new _.c(n,function(){return new A.xQ}).pipe((0,j.x)()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?(0,s.D)(this.loader.load(t)):bt(t()).pipe((0,U.zg)(function(t){return t instanceof o.YKP?(0,c.of)(t):(0,s.D)(e.compiler.compileModuleAsync(t))}))}}]),t}(),fi=function t(){v(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new pi,this.attachRef=null},pi=function(){function t(){v(this,t),this.contexts=new Map}return y(t,[{key:"onChildOutletCreated",value:function(t,e){var i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new fi,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),gi=function(){function t(){v(this,t)}return y(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function vi(t){throw t}function mi(t,e,i){return e.parse("/")}function yi(t,e){return(0,c.of)(null)}var bi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},_i=function(){var t=function(){function t(e,i,n,r,a,s,u,c){var l=this;v(this,t),this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=n,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new A.xQ,this.errorHandler=vi,this.malformedUriErrorHandler=mi,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:yi,afterPreactivation:yi},this.urlHandlingStrategy=new gi,this.routeReuseStrategy=new li,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=a.get(o.h0i),this.console=a.get(o.c2e);var d=a.get(o.R0b);this.isNgZoneEnabled=d instanceof o.R0b&&o.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new St(new Et([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new di(s,u,function(t){return l.triggerEvent(new nt(t))},function(t){return l.triggerEvent(new rt(t))}),this.routerState=Xt(this.currentUrlTree,this.rootComponentType),this.transitions=new h.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()}return y(t,[{key:"setupNavigations",value:function(t){var e=this,i=this.events;return t.pipe((0,E.h)(function(t){return 0!==t.id}),(0,L.U)(function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),(0,N.w)(function(t){var n,r,o,a=!1,u=!1;return(0,c.of)(t).pipe((0,H.b)(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,N.w)(function(t){var n,r,o,a,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,c.of)(t).pipe((0,N.w)(function(t){var n=e.transitions.getValue();return i.next(new K(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==e.transitions.getValue()?w.E:Promise.resolve(t)}),(n=e.ngModule.injector,r=e.configLoader,o=e.urlSerializer,a=e.config,(0,N.w)(function(t){return function(t,e,i,n,r){return new Ye(t,e,i,n,r).apply()}(n,r,o,t.extractedUrl,a).pipe((0,L.U)(function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})}))})),(0,H.b)(function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,i,n,r,o){return(0,U.zg)(function(n){return function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new ii(t,e,i,n,r,o).recognize();return null===a?ei(new ti):(0,c.of)(a)}catch(s){return ei(s)}}(t,i,n.urlAfterRedirects,(a=n.urlAfterRedirects,e.serializeUrl(a)),r,o).pipe((0,L.U)(function(t){return Object.assign(Object.assign({},n),{targetSnapshot:t})}));var a})}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),(0,H.b)(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,t),e.browserUrlTree=t.urlAfterRedirects);var n=new X(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);i.next(n)}));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.id,l=t.extractedUrl,h=t.source,d=t.restoredState,f=t.extras,p=new K(u,e.serializeUrl(l),h,d);i.next(p);var g=Xt(l,e.rootComponentType).snapshot;return(0,c.of)(Object.assign(Object.assign({},t),{targetSnapshot:g,urlAfterRedirects:l,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),w.E}),ui(function(t){var i=t.targetSnapshot,n=t.id,r=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,u=a.replaceUrl;return e.hooks.beforePreactivation(i,{navigationId:n,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),(0,H.b)(function(t){var i=new $(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)}),(0,L.U)(function(t){return Object.assign(Object.assign({},t),{guards:Qe(t.targetSnapshot,t.currentSnapshot,e.rootContexts)})}),function(t,e){return(0,U.zg)(function(i){var n=i.targetSnapshot,r=i.currentSnapshot,o=i.guards,a=o.canActivateChecks,u=o.canDeactivateChecks;return 0===u.length&&0===a.length?(0,c.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return(0,s.D)(t).pipe((0,U.zg)(function(t){return function(t,e,i,n,r){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,c.of)(!0);var a=o.map(function(o){var a,s=We(o,e,r);if(function(t){return t&&Te(t.canDeactivate)}(s))a=bt(s.canDeactivate(t,e,i,n));else{if(!Te(s))throw new Error("Invalid CanDeactivate guard");a=bt(s(t,e,i,n))}return a.pipe((0,q.P)())});return(0,c.of)(a).pipe(Ee())}(t.component,t.route,i,e,n)}),(0,q.P)(function(t){return!0!==t},!0))}(u,n,r,t).pipe((0,U.zg)(function(i){return i&&"boolean"==typeof i?function(t,e,i,n){return(0,s.D)(e).pipe((0,B.b)(function(e){return(0,m.z)(function(t,e){return null!==t&&e&&e(new ot(t)),(0,c.of)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new st(t)),(0,c.of)(!0)}(e.route,n),function(t,e,i){var n=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return(0,b.P)(function(){var r=e.guards.map(function(r){var o,a=We(r,e.node,i);if(function(t){return t&&Te(t.canActivateChild)}(a))o=bt(a.canActivateChild(n,t));else{if(!Te(a))throw new Error("Invalid CanActivateChild guard");o=bt(a(n,t))}return o.pipe((0,q.P)())});return(0,c.of)(r).pipe(Ee())})});return(0,c.of)(r).pipe(Ee())}(t,e.path,i),function(t,e,i){var n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return(0,c.of)(!0);var r=n.map(function(n){return(0,b.P)(function(){var r,o=We(n,e,i);if(function(t){return t&&Te(t.canActivate)}(o))r=bt(o.canActivate(e,t));else{if(!Te(o))throw new Error("Invalid CanActivate guard");r=bt(o(e,t))}return r.pipe((0,q.P)())})});return(0,c.of)(r).pipe(Ee())}(t,e.route,i))}),(0,q.P)(function(t){return!0!==t},!0))}(n,a,t,e):(0,c.of)(i)}),(0,L.U)(function(t){return Object.assign(Object.assign({},i),{guardsResult:t})}))})}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),(0,H.b)(function(t){if(Ce(t.guardsResult)){var i=dt('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw i.url=t.guardsResult,i}var n=new tt(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),(0,E.h)(function(t){return!!t.guardsResult||(e.cancelNavigationTransition(t,""),!1)}),ui(function(t){if(t.guards.canActivateChecks.length)return(0,c.of)(t).pipe((0,H.b)(function(t){var i=new et(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)}),(0,N.w)(function(t){var i,n,r=!1;return(0,c.of)(t).pipe((i=e.paramsInheritanceStrategy,n=e.ngModule.injector,(0,U.zg)(function(t){var e=t.targetSnapshot,r=t.guards.canActivateChecks;if(!r.length)return(0,c.of)(t);var o=0;return(0,s.D)(r).pipe((0,B.b)(function(t){return function(t,e,i,n){return function(t,e,i,n){var r=Object.keys(t);if(0===r.length)return(0,c.of)({});var o={};return(0,s.D)(r).pipe((0,U.zg)(function(r){return function(t,e,i,n){var r=We(t,e,n);return bt(r.resolve?r.resolve(e,i):r(e,i))}(t[r],e,i,n).pipe((0,H.b)(function(t){o[r]=t}))}),R(1),(0,U.zg)(function(){return Object.keys(o).length===r.length?(0,c.of)(o):w.E}))}(t._resolve,t,e,n).pipe((0,L.U)(function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),te(t,i).resolve),null}))}(t.route,e,i,n)}),(0,H.b)(function(){return o++}),R(1),(0,U.zg)(function(e){return o===r.length?(0,c.of)(t):w.E}))})),(0,H.b)({next:function(){return r=!0},complete:function(){r||e.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}))}),(0,H.b)(function(t){var i=new it(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)}))}),ui(function(t){var i=t.targetSnapshot,n=t.id,r=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,u=a.replaceUrl;return e.hooks.afterPreactivation(i,{navigationId:n,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),(0,L.U)(function(t){var i=function(t,e,i){var n=se(t,e._root,i?i._root:void 0);return new Wt(n,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:i})}),(0,H.b)(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,t),e.browserUrlTree=t.urlAfterRedirects)}),(n=e.rootContexts,r=e.routeReuseStrategy,o=function(t){return e.triggerEvent(t)},(0,L.U)(function(t){return new _e(r,t.targetRouterState,t.currentRouterState,o).activate(n),t})),(0,H.b)({next:function(){a=!0},complete:function(){a=!0}}),(0,G.x)(function(){a||u||e.cancelNavigationTransition(t,"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId)),e.currentNavigation=null}),(0,Z.K)(function(n){if(u=!0,(s=n)&&s.ngNavigationCancelingError){var r=Ce(n.url);r||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new Q(t.id,e.serializeUrl(t.extractedUrl),n.message);i.next(o),r?setTimeout(function(){var i=e.urlHandlingStrategy.merge(n.url,e.rawUrlTree);e.scheduleNavigation(i,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new W(t.id,e.serializeUrl(t.extractedUrl),n);i.next(a);try{t.resolve(e.errorHandler(n))}catch(c){t.reject(c)}}var s;return w.E}))}))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var i=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,i)&&setTimeout(function(){var e=i.source,n=i.state,r=i.urlTree,o={replaceUrl:!0};if(n){var a=Object.assign({},n);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}t.scheduleNavigation(r,e,n,o)},0),t.lastLocationChangeInfo=i}))}},{key:"extractLocationChangeInfoFromEvent",value:function(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){Re(t),this.config=t.map(Pe),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.relativeTo,n=e.queryParams,o=e.fragment,a=e.queryParamsHandling,s=e.preserveFragment,u=i||this.routerState.root,c=s?this.currentUrlTree.fragment:o,l=null;switch(a){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=n||null}return null!==l&&(l=this.removeEmptyProps(l)),function(t,e,i,n,o){if(0===i.length)return he(e.root,e.root,e,n,o);var a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new fe(!0,0,t);var e=0,i=!1,n=t.reduce(function(t,n,o){if("object"==typeof n&&null!=n){if(n.outlets){var a={};return yt(n.outlets,function(t,e){a[e]="string"==typeof t?t.split("/"):t}),[].concat(r(t),[{outlets:a}])}if(n.segmentPath)return[].concat(r(t),[n.segmentPath])}return"string"!=typeof n?[].concat(r(t),[n]):0===o?(n.split("/").forEach(function(n,r){0==r&&"."===n||(0==r&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[].concat(r(t),[n])},[]);return new fe(i,e,n)}(i);if(a.toRoot())return he(e.root,new Et([],{}),e,n,o);var s=function(t,e,i){if(t.isAbsolute)return new pe(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){var n=i.snapshot._urlSegment;return new pe(n,n===e.root,0)}var r=ce(t.commands[0])?0:1;return function(t,e,i){for(var n=t,r=e,o=i;o>r;){if(o-=r,!(n=n.parent))throw new Error("Invalid number of '../'");r=n.segments.length}return new pe(n,!1,r-o)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(a,e,t),u=s.processChildren?ve(s.segmentGroup,s.index,a.commands):ge(s.segmentGroup,s.index,a.commands);return he(s.segmentGroup,u,e,n,o)}(u,this.currentUrlTree,t,l,null!=c?c:null)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},i=Ce(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree),r=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(r=this.location.getState()),this.scheduleNavigation(n,"imperative",r,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};v(this,t),this.router=e,this.viewportScroller=i,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return y(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof K?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof J&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof ct&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new ct(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.LFG(_i),o.LFG(n.EM),o.LFG(void 0))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t}(),Oi=new o.OlP("ROUTER_CONFIGURATION"),Pi=new o.OlP("ROUTER_FORROOT_GUARD"),Di=[n.Ye,{provide:It,useClass:Ot},{provide:_i,useFactory:function(t,e,i,n,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,l=new _i(null,t,e,i,n,r,o,vt(a));return u&&(l.urlHandlingStrategy=u),c&&(l.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(s,l),s.enableTracing&&l.events.subscribe(function(t){var e,i;null===(e=console.group)||void 0===e||e.call(console,"Router Event: ".concat(t.constructor.name)),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),l},deps:[It,pi,n.Ye,o.zs3,o.v3s,o.Sil,hi,Oi,[function(){return function t(){v(this,t)}}(),new o.FiY],[ci,new o.FiY]]},pi,{provide:$t,useFactory:function(t){return t.routerState.root},deps:[_i]},{provide:o.v3s,useClass:o.EAV},Ri,xi,function(){function t(){v(this,t)}return y(t,[{key:"preload",value:function(t,e){return e().pipe((0,Z.K)(function(){return(0,c.of)(null)}))}}]),t}(),{provide:Oi,useValue:{enableTracing:!1}}];function Mi(){return new o.PXZ("Router",_i)}var Li=function(){var t=function(){function t(e,i){v(this,t)}return y(t,null,[{key:"forRoot",value:function(e,i){return{ngModule:t,providers:[Di,Zi(e),{provide:Pi,useFactory:Fi,deps:[[_i,new o.FiY,new o.tp0]]},{provide:Oi,useValue:i||{}},{provide:n.S$,useFactory:zi,deps:[n.lw,[new o.tBr(n.mr),new o.FiY],Oi]},{provide:Ii,useFactory:Ni,deps:[_i,n.EM,Oi]},{provide:Ei,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:xi},{provide:o.PXZ,multi:!0,useFactory:Mi},[Bi,{provide:o.ip1,multi:!0,useFactory:qi,deps:[Bi]},{provide:Hi,useFactory:Ui,deps:[Bi]},{provide:o.tb,multi:!0,useExisting:Hi}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Zi(e)]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.LFG(Pi,8),o.LFG(_i,8))},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({}),t}();function Ni(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Ii(t,e,i)}function zi(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.useHash?new n.Do(t,e):new n.b0(t,e)}function Fi(t){return"guarded"}function Zi(t){return[{provide:o.deG,multi:!0,useValue:t},{provide:hi,multi:!0,useValue:t}]}var Bi=function(){var t=function(){function t(e){v(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new A.xQ}return y(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(n.V_,Promise.resolve(null)).then(function(){var e=null,i=new Promise(function(t){return e=t}),n=t.injector.get(_i),r=t.injector.get(Oi);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=function(){return t.initNavigation?(0,c.of)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},n.initialNavigation()):e(!0),i})}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Oi),i=this.injector.get(Ri),n=this.injector.get(Ii),r=this.injector.get(_i),a=this.injector.get(o.z2F);t===a.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),i.setUpPreloading(),n.init(),r.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.LFG(o.zs3))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t}();function qi(t){return t.appInitializer.bind(t)}function Ui(t){return t.bootstrapListener.bind(t)}var Hi=new o.OlP("Router Initializer")},48160:function(e,i,n){"use strict";n.d(i,{Zw:function(){return w},aw:function(){return Z},X$:function(){return F},sK:function(){return z}});var r=n(31572),o=n(40878),s=n(4710),c=n(3148),l=n(47930),h=n(31450),d=n(90611),p=n(68303),g=n(79996),m=n(436),b=n(44689),w=function t(){v(this,t)},_=function(){var t,e=function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"getTranslation",value:function(t){return(0,o.of)({})}}]),i}(w);return e.\u0275fac=function(i){return(t||(t=r.n5z(e)))(i||e)},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),A=function t(){v(this,t)},k=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"handle",value:function(t){return t.key}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}();function T(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;var i,n,r,o=typeof t;if(o==typeof e&&"object"==o){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in r=Object.create(null),t){if(!T(t[n],e[n]))return!1;r[n]=!0}for(n in e)if(!(n in r)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n5&&void 0!==arguments[5])||arguments[5],u=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l=arguments.length>8?arguments[8]:void 0;v(this,t),this.store=e,this.currentLoader=i,this.compiler=n,this.parser=o,this.missingTranslationHandler=a,this.useDefaultLang=s,this.isolate=u,this.extend=c,this.pending=!1,this._onTranslationChange=new r.vpe,this._onLangChange=new r.vpe,this._onDefaultLangChange=new r.vpe,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}return y(t,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(t){this.isolate?this._currentLang=t:this.store.currentLang=t}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(t){this.isolate?this._langs=t:this.store.langs=t}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(t){this.isolate?this._translations=t:this.store.translations=t}},{key:"setDefaultLang",value:function(t){var e=this;if(t!==this.defaultLang){var i=this.retrieveTranslations(t);void 0!==i?(null==this.defaultLang&&(this.defaultLang=t),i.pipe((0,d.q)(1)).subscribe(function(i){e.changeDefaultLang(t)})):this.changeDefaultLang(t)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(t){var e=this;if(t===this.currentLang)return(0,o.of)(this.translations[t]);var i=this.retrieveTranslations(t);return void 0!==i?(this.currentLang||(this.currentLang=t),i.pipe((0,d.q)(1)).subscribe(function(i){e.changeLang(t)}),i):(this.changeLang(t),(0,o.of)(this.translations[t]))}},{key:"retrieveTranslations",value:function(t){var e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}},{key:"getTranslation",value:function(t){var e=this;this.pending=!0;var i=this.currentLoader.getTranslation(t).pipe((0,p.d)(1),(0,d.q)(1));return this.loadingTranslations=i.pipe((0,g.U)(function(i){return e.compiler.compileTranslations(i,t)}),(0,p.d)(1),(0,d.q)(1)),this.loadingTranslations.subscribe({next:function(i){e.translations[t]=e.extend&&e.translations[t]?Object.assign(Object.assign({},i),e.translations[t]):i,e.updateLangs(),e.pending=!1},error:function(t){e.pending=!1}}),i}},{key:"setTranslation",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?E(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(t){var e=this;t.forEach(function(t){-1===e.langs.indexOf(t)&&e.langs.push(t)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(t,e,i){var n;if(e instanceof Array){var r,a={},u=!1,l=f(e);try{for(l.s();!(r=l.n()).done;){var h=r.value;a[h]=this.getParsedResult(t,h,i),(0,s.b)(a[h])&&(u=!0)}}catch(v){l.e(v)}finally{l.f()}if(u){var d=e.map(function(t){return(0,s.b)(a[t])?a[t]:(0,o.of)(a[t])});return(0,c.D)(d).pipe((0,g.U)(function(t){var i={};return t.forEach(function(t,n){i[e[n]]=t}),i}))}return a}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){var p={key:e,translateService:this};void 0!==i&&(p.interpolateParams=i),n=this.missingTranslationHandler.handle(p)}return void 0!==n?n:e}},{key:"get",value:function(t,e){var i=this;if(!C(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,m.b)(function(n){return n=i.getParsedResult(n,t,e),(0,s.b)(n)?n:(0,o.of)(n)}));var n=this.getParsedResult(this.translations[this.currentLang],t,e);return(0,s.b)(n)?n:(0,o.of)(n)}},{key:"getStreamOnTranslationChange",value:function(t,e){var i=this;if(!C(t)||!t.length)throw new Error('Parameter "key" required');return(0,l.z)((0,h.P)(function(){return i.get(t,e)}),this.onTranslationChange.pipe((0,b.w)(function(n){var r=i.getParsedResult(n.translations,t,e);return"function"==typeof r.subscribe?r:(0,o.of)(r)})))}},{key:"stream",value:function(t,e){var i=this;if(!C(t)||!t.length)throw new Error('Parameter "key" required');return(0,l.z)((0,h.P)(function(){return i.get(t,e)}),this.onLangChange.pipe((0,b.w)(function(n){var r=i.getParsedResult(n.translations,t,e);return(0,s.b)(r)?r:(0,o.of)(r)})))}},{key:"instant",value:function(t,e){if(!C(t)||!t.length)throw new Error('Parameter "key" required');var i=this.getParsedResult(this.translations[this.currentLang],t,e);if((0,s.b)(i)){if(t instanceof Array){var n={};return t.forEach(function(e,i){n[t[i]]=t[i]}),n}return t}return i}},{key:"set",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}},{key:"changeLang",value:function(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}},{key:"changeDefaultLang",value:function(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}},{key:"reloadLang",value:function(t){return this.resetLang(t),this.getTranslation(t)}},{key:"resetLang",value:function(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var t=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(P),r.LFG(w),r.LFG(I),r.LFG(x),r.LFG(A),r.LFG(M),r.LFG(D),r.LFG(N),r.LFG(L))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),F=function(){var t=function(){function t(e,i){v(this,t),this.translate=e,this._ref=i,this.value=""}return y(t,[{key:"updateValue",value:function(t,e,i){var n=this,r=function(e){n.value=void 0!==e?e:t,n.lastKey=t,n._ref.markForCheck()};if(i){var o=this.translate.getParsedResult(i,t,e);(0,s.b)(o.subscribe)?o.subscribe(r):r(o)}this.translate.get(t,e).subscribe(r)}},{key:"transform",value:function(t){var e,i=this;if(!t||!t.length)return t;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.loader||{provide:w,useClass:_},e.compiler||{provide:I,useClass:O},e.parser||{provide:x,useClass:R},e.missingTranslationHandler||{provide:A,useClass:k},P,{provide:D,useValue:e.isolate},{provide:M,useValue:e.useDefaultLang},{provide:N,useValue:e.extend},{provide:L,useValue:e.defaultLanguage},z]}}},{key:"forChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.loader||{provide:w,useClass:_},e.compiler||{provide:I,useClass:O},e.parser||{provide:x,useClass:R},e.missingTranslationHandler||{provide:A,useClass:k},{provide:D,useValue:e.isolate},{provide:M,useValue:e.useDefaultLang},{provide:N,useValue:e.extend},{provide:L,useValue:e.defaultLanguage},z]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}()},82051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){a(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}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,o=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,a){var s=r.URL||r.webkitURL,u=document.createElement("a");u.download=o=o||t.name||"download",u.rel="noopener","string"==typeof t?(u.href=t,u.origin===location.origin?n(u):i(u.href)?e(t,o,a):n(u,u.target="_blank")):(u.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(u.href)},4e4),setTimeout(function(){n(u)},0))}:"msSaveOrOpenBlob"in navigator?function(t,r,o){if(r=r||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),r);else if(i(t))e(t,r,o);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){n(a)})}}:function(t,i,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var s="application/octet-stream"===t.type,u=/constructor/i.test(r.HTMLElement)||r.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&u||o)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},l.readAsDataURL(t)}else{var h=r.URL||r.webkitURL,d=h.createObjectURL(t);a?a.location=d:location.href=d,a=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});r.saveAs=a.saveAs=a,t.exports=a})?i.apply(e,[]):i)||(t.exports=n)},30146:function(t,e,i){"use strict";i.d(e,{nu:function(){return Y},Co:function(){return V}});var n=i(64762),r=i(31572),a=i(16073),s=i(71522),u=i(4786),c=i(66283),l=i(75842),h=i(78512),d=i(40878),f=i(31305),p=i(55959),g=i(44689),m=i(79996),b=i(56238),w=i(82628),_=i(25416),A=i(90611),k=i(43835),T=i(66599),C=i(15980),S=i(29236),E=i(43691),x=i(67806),R=i(36922),I=i(61511),O=i(4253),P=i(24621),D=["searchSelectInput"],M=["innerSelectSearch"];function L(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"mat-checkbox",9),r.NdJ("change",function(t){return r.CHM(i),r.oxw()._emitSelectAllBooleanToParent(t.checked)}),r.qZA()}if(2&t){var n=r.oxw();r.Q6J("color",null==n.matFormField?null:n.matFormField.color)("checked",n.toggleAllCheckboxChecked)("indeterminate",n.toggleAllCheckboxIndeterminate)("matTooltip",n.toggleAllCheckboxTooltipMessage)("matTooltipPosition",n.toogleAllCheckboxTooltipPosition)}}function N(t,e){1&t&&r._UZ(0,"mat-spinner",10)}function z(t,e){1&t&&r.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function F(t,e){1&t&&(r.TgZ(0,"mat-icon"),r._uU(1,"close"),r.qZA())}function Z(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"button",11),r.NdJ("click",function(){return r.CHM(i),r.oxw()._reset(!0)}),r.YNc(1,z,1,0,"ng-content",12),r.YNc(2,F,2,0,"ng-template",null,13,r.W1O),r.qZA()}if(2&t){var n=r.MAs(3),o=r.oxw();r.xp6(1),r.Q6J("ngIf",o.clearIcon)("ngIfElse",n)}}function B(t,e){if(1&t&&(r.TgZ(0,"div",14),r._uU(1),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.hij(" ",i.noEntriesFoundLabel,"\n")}}var q,U=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],H=function(t,e){return{"mat-select-search-inner-multiple":t,"mat-select-search-inner-toggle-all":e}},j=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"],G=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","ngxMatSelectSearchClear",""]]}),t}(),Y=function(){var t=q=function(){function t(e,i,n){var s=this,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,c=arguments.length>4?arguments[4]:void 0,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;v(this,t),this.matSelect=e,this.changeDetectorRef=i,this._viewportRuler=n,this.matOption=u,this.liveAnnouncer=c,this.matFormField=l,this.placeholderLabel="Suche",this.type="text",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new r.vpe,this.onTouched=function(t){},this._options$=new h.X(null),this.optionsList$=this._options$.pipe((0,g.w)(function(t){return t?t.changes.pipe((0,m.U)(function(t){return t.toArray()}),(0,b.O)(t.toArray())):(0,d.of)(null)})),this.optionsLength$=this.optionsList$.pipe((0,m.U)(function(t){return t?t.length:0})),this._formControl=new a.NI(""),this._showNoEntriesFound$=(0,f.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,m.U)(function(t){var e=o(t,2),i=e[0],n=e[1];return s.noEntriesFoundLabel&&i&&n===s.getOptionsLengthOffset()})),this._onDestroy=new p.xQ}return y(t,[{key:"isInsideMatOption",get:function(){return!!this.matOption}},{key:"value",get:function(){return this._formControl.value}},{key:"_options",get:function(){return this._options$.getValue()},set:function(t){this._options$.next(t)}},{key:"ngOnInit",value:function(){var t=this,e="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(e):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,e]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[e]=!0):this.matSelect.panelClass=e,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,w.g)(1),(0,_.R)(this._onDestroy)).subscribe(function(e){e?(t.updateInputWidth(),t.disableInitialFocus||t._focus()):t.clearSearchInput&&t._reset()}),this.matSelect.openedChange.pipe((0,A.q)(1)).pipe((0,_.R)(this._onDestroy)).subscribe(function(){t.matSelect._keyManager?t.matSelect._keyManager.change.pipe((0,_.R)(t._onDestroy)).subscribe(function(){return t.adjustScrollTopToFitActiveOptionIntoView()}):console.log("_keyManager was not initialized."),t._options=t.matSelect.options;var e=t._options.toArray()[t.getOptionsLengthOffset()];t._options.changes.pipe((0,_.R)(t._onDestroy)).subscribe(function(){setTimeout(function(){var i=t._options.toArray(),n=i[t.getOptionsLengthOffset()],r=t.matSelect._keyManager;r&&t.matSelect.panelOpen&&(!!t.matSelect.compareWith(e,n)&&r.activeItem&&i.find(function(e){return t.matSelect.compareWith(e,r.activeItem)})||r.setFirstItemActive(),setTimeout(function(){t.updateInputWidth()}),t.disableScrollToActiveOnOptionsChanged||t.adjustScrollTopToFitActiveOptionIntoView()),e=n})})}),this._showNoEntriesFound$.pipe((0,_.R)(this._onDestroy)).subscribe(function(e){t.matOption&&(e?t.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):t.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,_.R)(this._onDestroy)).subscribe(function(){t.matSelect.panelOpen&&t.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,_.R)(this._onDestroy)).subscribe(function(){t.changeDetectorRef.markForCheck()})}},{key:"_emitSelectAllBooleanToParent",value:function(t){this.toggleAll.emit(t)}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"_isToggleAllCheckboxVisible",value:function(){return this.matSelect.multiple&&this.showToggleAllCheckbox}},{key:"_handleKeydown",value:function(t){var e=this;(t.key&&1===t.key.length||t.keyCode>=l.A&&t.keyCode<=l.Z||t.keyCode>=l.xE&&t.keyCode<=l.aO||t.keyCode===l.L_||this.preventHomeEndKeyPropagation&&(t.keyCode===l.Sd||t.keyCode===l.uR))&&t.stopPropagation(),this.matSelect.multiple&&t.key&&t.keyCode===l.K5&&setTimeout(function(){return e._focus()}),!0===this.enableClearOnEscapePressed&&t.keyCode===l.hY&&this.value&&(this._reset(!0),t.stopPropagation())}},{key:"_handleKeyup",value:function(t){if(t.keyCode===l.LH||t.keyCode===l.JH){var e=this.matSelect._getAriaActiveDescendant(),i=this._options.toArray().findIndex(function(t){return t.id===e});if(-1!==i){var n=this._options.toArray()[i];this.liveAnnouncer.announce(n.viewValue+" "+this.getAriaIndex(i)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}},{key:"getAriaIndex",value:function(t){return 0===this.getOptionsLengthOffset()?t+1:t}},{key:"getAriaLength",value:function(){return this._options.toArray().length-this.getOptionsLengthOffset()}},{key:"writeValue",value:function(t){this._lastExternalInputValue=t,this._formControl.setValue(t),this.changeDetectorRef.markForCheck()}},{key:"onBlur",value:function(){this.onTouched()}},{key:"registerOnChange",value:function(t){var e=this;this._formControl.valueChanges.pipe((0,k.h)(function(t){return t!==e._lastExternalInputValue}),(0,T.b)(function(){return e._lastExternalInputValue=void 0}),(0,_.R)(this._onDestroy)).subscribe(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"_focus",value:function(){if(this.searchSelectInput&&this.matSelect.panel){var t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}}},{key:"_reset",value:function(t){this._formControl.setValue(""),t&&this._focus()}},{key:"initMultipleHandling",value:function(){var t=this;this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,_.R)(this._onDestroy)).subscribe(function(e){var i=!1;if(t.matSelect.multiple&&(t.alwaysRestoreSelectedOptionsMulti||t._formControl.value&&t._formControl.value.length)&&t.previousSelectedValues&&Array.isArray(t.previousSelectedValues)){e&&Array.isArray(e)||(e=[]);var n=t.matSelect.options.map(function(t){return t.value});t.previousSelectedValues.forEach(function(r){e.some(function(e){return t.matSelect.compareWith(e,r)})||n.some(function(e){return t.matSelect.compareWith(e,r)})||(e.push(r),i=!0)})}t.previousSelectedValues=e,i&&t.matSelect._onChange(e)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}},{key:"adjustScrollTopToFitActiveOptionIntoView",value:function(){if(this.matSelect.panel&&this.matSelect.options.length>0){var t=this.getMatOptionHeight(),e=this.matSelect._keyManager.activeItemIndex||0,i=(0,s.CB)(e,this.matSelect.options,this.matSelect.optionGroups),n=(this.matOption?-1:0)+i+e,r=this.matSelect.panel.nativeElement.scrollTop,o=this.innerSelectSearch.nativeElement.offsetHeight,a=Math.floor((256-o)/t),u=Math.round((r+o)/t)-1;u>=n?this.matSelect.panel.nativeElement.scrollTop=n*t:u+a<=n&&(this.matSelect.panel.nativeElement.scrollTop=(n+1)*t-(256-o))}}},{key:"updateInputWidth",value:function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,e=this.innerSelectSearch.nativeElement;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}}},{key:"getMatOptionHeight",value:function(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}},{key:"getOptionsLengthOffset",value:function(){return this.matOption?1:0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(u.gD),r.Y36(r.sBO),r.Y36(O.rL),r.Y36(s.ey,8),r.Y36(P.Kd),r.Y36(c.KE,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(t,e,i){var n;(1&t&&r.Suo(i,G,5),2&t)&&(r.iGM(n=r.CRH())&&(e.clearIcon=n.first))},viewQuery:function(t,e){var i;(1&t&&(r.Gf(D,7,r.SBq),r.Gf(M,7,r.SBq)),2&t)&&(r.iGM(i=r.CRH())&&(e.searchSelectInput=i.first),r.iGM(i=r.CRH())&&(e.innerSelectSearch=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("mat-select-search-inside-mat-option",e.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[r._Bn([{provide:a.JU,useExisting:(0,r.Gpc)(function(){return q}),multi:!0}])],ngContentSelectors:j,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[1,"mat-select-search-no-entries-found"]],template:function(t,e){1&t&&(r.F$t(U),r._UZ(0,"input",0),r.TgZ(1,"div",1,2),r.YNc(3,L,1,5,"mat-checkbox",3),r.TgZ(4,"input",4,5),r.NdJ("keydown",function(t){return e._handleKeydown(t)})("keyup",function(t){return e._handleKeyup(t)})("blur",function(){return e.onBlur()}),r.qZA(),r.YNc(6,N,1,0,"mat-spinner",6),r.YNc(7,Z,4,2,"button",7),r.Hsn(8),r.qZA(),r.YNc(9,B,2,1,"div",8),r.ALo(10,"async")),2&t&&(r.xp6(1),r.Q6J("ngClass",r.WLB(11,H,e.matSelect.multiple,e._isToggleAllCheckboxVisible())),r.xp6(2),r.Q6J("ngIf",e._isToggleAllCheckboxVisible()),r.xp6(1),r.Q6J("type",e.type)("formControl",e._formControl)("placeholder",e.placeholderLabel),r.uIk("aria-label",e.ariaLabel),r.xp6(2),r.Q6J("ngIf",e.searching),r.xp6(1),r.Q6J("ngIf",!e.hideClearSearchButton&&e.value&&!e.searching),r.xp6(2),r.Q6J("ngIf",r.lcZ(10,9,e._showNoEntriesFound$)))},directives:[I.mk,I.O5,a.Fj,a.JJ,a.oH,S.oG,R.gM,x.$g,C.lW,E.Hw],pipes:[I.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}),t=q=(0,n.gn)([(0,n.fM)(0,(0,r.tBr)(u.gD)),(0,n.fM)(3,(0,r.FiY)()),(0,n.fM)(3,(0,r.tBr)(s.ey)),(0,n.fM)(5,(0,r.FiY)()),(0,n.fM)(5,(0,r.tBr)(c.KE))],t)}(),V=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[I.ez,a.UX,C.ot,S.p9,E.Ps,x.Cq,R.AV]]}),t}()},59997:function(t){t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,(function(e){return t[e]}).bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=22)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i=4){for(var t=arguments.length,e=Array(t),i=0;i=3){for(var t=arguments.length,e=Array(t),i=0;i=2){for(var t=arguments.length,e=Array(t),i=0;i=1){for(var t=arguments.length,e=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:o.JsonService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=e,this._jsonService=new i(["application/jwk-set+json"])}return t.prototype.getMetadata=function(){var t=this;return this._settings.metadata?(r.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(r.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then(function(e){return r.Log.debug("MetadataService.getMetadata: json received"),t._settings.metadata=e,e})):(r.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},t.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},t.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},t.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},t.prototype.getTokenEndpoint=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",t)},t.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},t.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},t.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},t.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},t.prototype._getMetadataProperty=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.Log.debug("MetadataService.getMetadataProperty for: "+t),this.getMetadata().then(function(i){if(r.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===i[t]){if(!0===e)return void r.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+t);throw r.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+t),new Error("Metadata does not contain property "+t)}return i[t]})},t.prototype.getSigningKeys=function(){var t=this;return this._settings.signingKeys?(r.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then(function(e){return r.Log.debug("MetadataService.getSigningKeys: jwks_uri received",e),t._jsonService.getJson(e).then(function(e){if(r.Log.debug("MetadataService.getSigningKeys: key set received",e),!e.keys)throw r.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return t._settings.signingKeys=e.keys,t._settings.signingKeys})})},n(t,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration"))),this._metadataUrl}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UrlUtility=void 0;var n=i(0),r=i(1);e.UrlUtility=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.addQueryParam=function(t,e,i){return t.indexOf("?")<0&&(t+="?"),"?"!==t[t.length-1]&&(t+="&"),t+=encodeURIComponent(e),(t+="=")+encodeURIComponent(i)},t.parseUrlFragment=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.Global;"string"!=typeof t&&(t=i.location.href);var o=t.lastIndexOf(e);o>=0&&(t=t.substr(o+1)),"?"===e&&(o=t.indexOf("#"))>=0&&(t=t.substr(0,o));for(var a,s={},u=/([^&=]+)=([^&]*)/g,c=0;a=u.exec(t);)if(s[decodeURIComponent(a[1])]=decodeURIComponent(a[2]),c++>50)return n.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",t),{error:"Response exceeded expected number of parameters"};for(var l in s)return s;return{}},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JoseUtil=void 0;var n=i(25),r=function(t){return t&&t.__esModule?t:{default:t}}(i(32));e.JoseUtil=(0,r.default)({jws:n.jws,KeyUtil:n.KeyUtil,X509:n.X509,crypto:n.crypto,hextob64u:n.hextob64u,b64tohex:n.b64tohex,AllowedSigningAlgs:n.AllowedSigningAlgs})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OidcClientSettings=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.authority,r=e.metadataUrl,o=e.metadata,h=e.signingKeys,d=e.client_id,f=e.client_secret,p=e.response_type,g=void 0===p?c:p,v=e.scope,m=void 0===v?l:v,y=e.redirect_uri,b=e.post_logout_redirect_uri,w=e.prompt,_=e.display,A=e.max_age,k=e.ui_locales,T=e.acr_values,C=e.resource,S=e.response_mode,E=e.filterProtocolClaims,x=void 0===E||E,R=e.loadUserInfo,I=void 0===R||R,O=e.staleStateAge,P=void 0===O?900:O,D=e.clockSkew,M=void 0===D?300:D,L=e.userInfoJwtIssuer,N=void 0===L?"OP":L,z=e.stateStore,F=void 0===z?new a.WebStorageStateStore:z,Z=e.ResponseValidatorCtor,B=void 0===Z?s.ResponseValidator:Z,q=e.MetadataServiceCtor,U=void 0===q?u.MetadataService:q,H=e.extraQueryParams,j=void 0===H?{}:H,G=e.extraTokenParams,Y=void 0===G?{}:G;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._authority=i,this._metadataUrl=r,this._metadata=o,this._signingKeys=h,this._client_id=d,this._client_secret=f,this._response_type=g,this._scope=m,this._redirect_uri=y,this._post_logout_redirect_uri=b,this._prompt=w,this._display=_,this._max_age=A,this._ui_locales=k,this._acr_values=T,this._resource=C,this._response_mode=S,this._filterProtocolClaims=!!x,this._loadUserInfo=!!I,this._staleStateAge=P,this._clockSkew=M,this._userInfoJwtIssuer=N,this._stateStore=F,this._validator=new B(this),this._metadataService=new U(this),this._extraQueryParams="object"===(void 0===j?"undefined":n(j))?j:{},this._extraTokenParams="object"===(void 0===Y?"undefined":n(Y))?Y:{}}return r(t,[{key:"client_id",get:function(){return this._client_id},set:function(t){if(this._client_id)throw o.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=t}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(t){if(this._authority)throw o.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=t}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration")),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(t){this._metadata=t}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(t){this._signingKeys=t}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(t){this._extraQueryParams="object"===(void 0===t?"undefined":n(t))?t:{}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(t){this._extraTokenParams="object"===(void 0===t?"undefined":n(t))?t:{}}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebStorageStateStore=void 0;var n=i(0),r=i(1);e.WebStorageStateStore=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.prefix,n=void 0===i?"oidc.":i,o=e.store,a=void 0===o?r.Global.localStorage:o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._store=a,this._prefix=n}return t.prototype.set=function(t,e){return n.Log.debug("WebStorageStateStore.set",t),this._store.setItem(t=this._prefix+t,e),Promise.resolve()},t.prototype.get=function(t){n.Log.debug("WebStorageStateStore.get",t);var e=this._store.getItem(t=this._prefix+t);return Promise.resolve(e)},t.prototype.remove=function(t){n.Log.debug("WebStorageStateStore.remove",t);var e=this._store.getItem(t=this._prefix+t);return this._store.removeItem(t),Promise.resolve(e)},t.prototype.getAllKeys=function(){n.Log.debug("WebStorageStateStore.getAllKeys");for(var t=[],e=0;e0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.Global.XMLHttpRequest,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._contentTypes=e&&Array.isArray(e)?e.slice():[],this._contentTypes.push("application/json"),n&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=i,this._jwtHandler=n}return t.prototype.getJson=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.getJson: No url passed"),new Error("url");return n.Log.debug("JsonService.getJson, url: ",t),new Promise(function(r,o){var a=new i._XMLHttpRequest;a.open("GET",t);var s=i._contentTypes,u=i._jwtHandler;a.onload=function(){if(n.Log.debug("JsonService.getJson: HTTP response received, status",a.status),200===a.status){var e=a.getResponseHeader("Content-Type");if(e){var i=s.find(function(t){if(e.startsWith(t))return!0});if("application/jwt"==i)return void u(a).then(r,o);if(i)try{return void r(JSON.parse(a.responseText))}catch(r){return n.Log.error("JsonService.getJson: Error parsing JSON response",r.message),void o(r)}}o(Error("Invalid response Content-Type: "+e+", from URL: "+t))}else o(Error(a.statusText+" ("+a.status+")"))},a.onerror=function(){n.Log.error("JsonService.getJson: network error"),o(Error("Network Error"))},e&&(n.Log.debug("JsonService.getJson: token passed, setting Authorization header"),a.setRequestHeader("Authorization","Bearer "+e)),a.send()})},t.prototype.postForm=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.postForm: No url passed"),new Error("url");return n.Log.debug("JsonService.postForm, url: ",t),new Promise(function(r,o){var a=new i._XMLHttpRequest;a.open("POST",t);var s=i._contentTypes;a.onload=function(){if(n.Log.debug("JsonService.postForm: HTTP response received, status",a.status),200!==a.status){if(400===a.status&&(i=a.getResponseHeader("Content-Type"))&&s.find(function(t){if(i.startsWith(t))return!0}))try{var e=JSON.parse(a.responseText);if(e&&e.error)return n.Log.error("JsonService.postForm: Error from server: ",e.error),void o(new Error(e.error))}catch(r){return n.Log.error("JsonService.postForm: Error parsing JSON response",r.message),void o(r)}o(Error(a.statusText+" ("+a.status+")"))}else{var i;if((i=a.getResponseHeader("Content-Type"))&&s.find(function(t){if(i.startsWith(t))return!0}))try{return void r(JSON.parse(a.responseText))}catch(r){return n.Log.error("JsonService.postForm: Error parsing JSON response",r.message),void o(r)}o(Error("Invalid response Content-Type: "+i+", from URL: "+t))}},a.onerror=function(){n.Log.error("JsonService.postForm: network error"),o(Error("Network Error"))};var u="";for(var c in e){var l=e[c];l&&(u.length>0&&(u+="&"),u+=encodeURIComponent(c),u+="=",u+=encodeURIComponent(l))}a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.send(u)})},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.State=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.id,n=e.data,r=e.created,a=e.request_type;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._id=i||(0,o.default)(),this._data=n,this._created="number"==typeof r&&r>0?r:parseInt(Date.now()/1e3),this._request_type=a}return t.prototype.toStorageString=function(){return r.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},t.fromStorageString=function(e){return r.Log.debug("State.fromStorageString"),new t(JSON.parse(e))},t.clearStaleState=function(e,i){var n=Date.now()/1e3-i;return e.getAllKeys().then(function(i){r.Log.debug("State.clearStaleState: got keys",i);for(var o=[],a=function(a){var s=i[a];u=e.get(s).then(function(i){var o=!1;if(i)try{var a=t.fromStorageString(i);r.Log.debug("State.clearStaleState: got item from key: ",s,a.created),a.created<=n&&(o=!0)}catch(t){r.Log.error("State.clearStaleState: Error parsing state for key",s,t.message),o=!0}else r.Log.debug("State.clearStaleState: no item in storage for key: ",s),o=!0;if(o)return r.Log.debug("State.clearStaleState: removed item for key: ",s),e.remove(s)}),o.push(u)},s=0;s0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._settings=e instanceof o.OidcClientSettings?e:new o.OidcClientSettings(e)}return t.prototype.createSigninRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.response_type,n=e.scope,o=e.redirect_uri,a=e.data,u=e.state,c=e.prompt,l=e.display,h=e.max_age,d=e.ui_locales,f=e.id_token_hint,p=e.login_hint,g=e.acr_values,v=e.resource,m=e.request,y=e.request_uri,b=e.response_mode,w=e.extraQueryParams,_=e.extraTokenParams,A=e.request_type,k=e.skipUserInfo,T=arguments[1];r.Log.debug("OidcClient.createSigninRequest");var C=this._settings.client_id;n=n||this._settings.scope,o=o||this._settings.redirect_uri,c=c||this._settings.prompt,l=l||this._settings.display,h=h||this._settings.max_age,d=d||this._settings.ui_locales,g=g||this._settings.acr_values,v=v||this._settings.resource,b=b||this._settings.response_mode,w=w||this._settings.extraQueryParams,_=_||this._settings.extraTokenParams;var S=this._settings.authority;return s.SigninRequest.isCode(i=i||this._settings.response_type)&&"code"!==i?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then(function(e){r.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",e);var E=new s.SigninRequest({url:e,client_id:C,redirect_uri:o,response_type:i,scope:n,data:a||u,authority:S,prompt:c,display:l,max_age:h,ui_locales:d,id_token_hint:f,login_hint:p,acr_values:g,resource:v,request:m,request_uri:y,extraQueryParams:w,extraTokenParams:_,request_type:A,response_mode:b,client_secret:t._settings.client_secret,skipUserInfo:k}),x=E.state;return(T=T||t._stateStore).set(x.id,x.toStorageString()).then(function(){return E})})},t.prototype.readSigninResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.Log.debug("OidcClient.readSigninResponseState");var n="query"===this._settings.response_mode||!this._settings.response_mode&&s.SigninRequest.isCode(this._settings.response_type)?"?":"#",o=new u.SigninResponse(t,n);return o.state?(e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(o.state).then(function(t){if(!t)throw r.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:h.SigninState.fromStorageString(t),response:o}})):(r.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},t.prototype.processSigninResponse=function(t,e){var i=this;return r.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return r.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),i._validator.validateSigninResponse(e,n)})},t.prototype.createSignoutRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.id_token_hint,n=e.data,o=e.state,a=e.post_logout_redirect_uri,s=e.extraQueryParams,u=e.request_type,l=arguments[1];return r.Log.debug("OidcClient.createSignoutRequest"),a=a||this._settings.post_logout_redirect_uri,s=s||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then(function(e){if(!e)throw r.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");r.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",e);var h=new c.SignoutRequest({url:e,id_token_hint:i,post_logout_redirect_uri:a,data:n||o,extraQueryParams:s,request_type:u}),d=h.state;return d&&(r.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(l=l||t._stateStore).set(d.id,d.toStorageString())),h})},t.prototype.readSignoutResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.Log.debug("OidcClient.readSignoutResponseState");var n=new l.SignoutResponse(t);if(!n.state)return r.Log.debug("OidcClient.readSignoutResponseState: No state in response"),n.error?(r.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",n.error),Promise.reject(new a.ErrorResponse(n))):Promise.resolve({undefined:void 0,response:n});var o=n.state;return e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(o).then(function(t){if(!t)throw r.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(t),response:n}})},t.prototype.processSignoutResponse=function(t,e){var i=this;return r.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return e?(r.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),i._validator.validateSignoutResponse(e,n)):(r.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),n)})},t.prototype.clearStaleState=function(t){return r.Log.debug("OidcClient.clearStaleState"),d.State.clearStaleState(t=t||this._stateStore,this.settings.staleStateAge)},n(t,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenClient=void 0;var n=i(7),r=i(2),o=i(0);e.TokenClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw o.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i,this._metadataService=new a(this._settings)}return t.prototype.exchangeCode=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"authorization_code",e.client_id=e.client_id||this._settings.client_id,e.redirect_uri=e.redirect_uri||this._settings.redirect_uri,e.code?e.redirect_uri?e.code_verifier?e.client_id?this._metadataService.getTokenEndpoint(!1).then(function(i){return o.Log.debug("TokenClient.exchangeCode: Received token endpoint"),t._jsonService.postForm(i,e).then(function(t){return o.Log.debug("TokenClient.exchangeCode: response received"),t})}):(o.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(o.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(o.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},t.prototype.exchangeRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"refresh_token",e.client_id=e.client_id||this._settings.client_id,e.client_secret=e.client_secret||this._settings.client_secret,e.refresh_token?e.client_id?this._metadataService.getTokenEndpoint(!1).then(function(i){return o.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),t._jsonService.postForm(i,e).then(function(t){return o.Log.debug("TokenClient.exchangeRefreshToken: response received"),t})}):(o.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorResponse=void 0;var n=i(0);e.ErrorResponse=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.error,o=i.error_description,a=i.error_uri,s=i.state,u=i.session_state;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),!r)throw n.Log.error("No error passed to ErrorResponse"),new Error("error");var c=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,o||r));return c.name="ErrorResponse",c.error=r,c.error_description=o,c.error_uri=a,c.state=s,c.session_state=u,c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Error)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninRequest=void 0;var n=i(0),r=i(3),o=i(13);e.SigninRequest=function(){function t(e){var i=e.url,a=e.client_id,s=e.redirect_uri,u=e.response_type,c=e.scope,l=e.authority,h=e.data,d=e.prompt,f=e.display,p=e.max_age,g=e.ui_locales,v=e.id_token_hint,m=e.login_hint,y=e.acr_values,b=e.resource,w=e.response_mode,_=e.request,A=e.request_uri,k=e.extraQueryParams,T=e.request_type,C=e.client_secret,S=e.extraTokenParams,E=e.skipUserInfo;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!a)throw n.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!s)throw n.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!u)throw n.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!c)throw n.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!l)throw n.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var x=t.isOidc(u),R=t.isCode(u);w||(w=t.isCode(u)?"query":null),this.state=new o.SigninState({nonce:x,data:h,client_id:a,authority:l,redirect_uri:s,code_verifier:R,request_type:T,response_mode:w,client_secret:C,scope:c,extraTokenParams:S,skipUserInfo:E}),i=r.UrlUtility.addQueryParam(i,"client_id",a),i=r.UrlUtility.addQueryParam(i,"redirect_uri",s),i=r.UrlUtility.addQueryParam(i,"response_type",u),i=r.UrlUtility.addQueryParam(i,"scope",c),i=r.UrlUtility.addQueryParam(i,"state",this.state.id),x&&(i=r.UrlUtility.addQueryParam(i,"nonce",this.state.nonce)),R&&(i=r.UrlUtility.addQueryParam(i,"code_challenge",this.state.code_challenge),i=r.UrlUtility.addQueryParam(i,"code_challenge_method","S256"));var I={prompt:d,display:f,max_age:p,ui_locales:g,id_token_hint:v,login_hint:m,acr_values:y,resource:b,request:_,request_uri:A,response_mode:w};for(var O in I)I[O]&&(i=r.UrlUtility.addQueryParam(i,O,I[O]));for(var P in k)i=r.UrlUtility.addQueryParam(i,P,k[P]);this.url=i}return t.isOidc=function(t){return!!t.split(/\s+/g).filter(function(t){return"id_token"===t})[0]},t.isOAuth=function(t){return!!t.split(/\s+/g).filter(function(t){return"token"===t})[0]},t.isCode=function(t){return!!t.split(/\s+/g).filter(function(t){return"code"===t})[0]},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninState=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.nonce,r=i.authority,o=i.client_id,u=i.redirect_uri,c=i.code_verifier,l=i.response_mode,h=i.client_secret,d=i.scope,f=i.extraTokenParams,p=i.skipUserInfo;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var g=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));if(!0===n?g._nonce=(0,s.default)():n&&(g._nonce=n),!0===c?g._code_verifier=(0,s.default)()+(0,s.default)()+(0,s.default)():c&&(g._code_verifier=c),g.code_verifier){var v=a.JoseUtil.hashString(g.code_verifier,"SHA256");g._code_challenge=a.JoseUtil.hexToBase64Url(v)}return g._redirect_uri=u,g._authority=r,g._client_id=o,g._response_mode=l,g._client_secret=h,g._scope=d,g._extraTokenParams=f,g._skipUserInfo=p,g}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toStorageString=function(){return r.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},e.fromStorageString=function(t){return r.Log.debug("SigninState.fromStorageString"),new e(JSON.parse(t))},n(e,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),e}(o.State)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,n.default)().replace(/-/g,"")};var n=function(t){return t&&t.__esModule?t:{default:t}}(i(33));t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.User=void 0;var n=function(){function t(t,e){for(var i=0;i0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessTokenEvents=void 0;var n=i(0),r=i(48);e.AccessTokenEvents=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.accessTokenExpiringNotificationTime,n=void 0===i?60:i,o=e.accessTokenExpiringTimer,a=void 0===o?new r.Timer("Access token expiring"):o,s=e.accessTokenExpiredTimer,u=void 0===s?new r.Timer("Access token expired"):s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._accessTokenExpiringNotificationTime=n,this._accessTokenExpiring=a,this._accessTokenExpired=u}return t.prototype.load=function(t){if(t.access_token&&void 0!==t.expires_in){var e=t.expires_in;if(n.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",e),e>0){var i=e-this._accessTokenExpiringNotificationTime;i<=0&&(i=1),n.Log.debug("AccessTokenEvents.load: registering expiring timer in:",i),this._accessTokenExpiring.init(i)}else n.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var r=e+1;n.Log.debug("AccessTokenEvents.load: registering expired timer in:",r),this._accessTokenExpired.init(r)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.unload=function(){n.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.addAccessTokenExpiring=function(t){this._accessTokenExpiring.addHandler(t)},t.prototype.removeAccessTokenExpiring=function(t){this._accessTokenExpiring.removeHandler(t)},t.prototype.addAccessTokenExpired=function(t){this._accessTokenExpired.addHandler(t)},t.prototype.removeAccessTokenExpired=function(t){this._accessTokenExpired.removeHandler(t)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=i(0);e.Event=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e,this._callbacks=[]}return t.prototype.addHandler=function(t){this._callbacks.push(t)},t.prototype.removeHandler=function(t){var e=this._callbacks.findIndex(function(e){return e===t});e>=0&&this._callbacks.splice(e,1)},t.prototype.raise=function(){n.Log.debug("Event: Raising event: "+this._name);for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:o.CheckSessionIFrame,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.Global.timer;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=e,this._CheckSessionIFrameCtor=n,this._timer=s,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),this._userManager.getUser().then(function(t){t?i._start(t):i._settings.monitorAnonymousSession&&i._userManager.querySessionStatus().then(function(t){var e={session_state:t.session_state};t.sub&&t.sid&&(e.profile={sub:t.sub,sid:t.sid}),i._start(e)}).catch(function(t){r.Log.error("SessionMonitor ctor: error from querySessionStatus:",t.message)})}).catch(function(t){r.Log.error("SessionMonitor ctor: error from getUser:",t.message)})}return t.prototype._start=function(t){var e=this,i=t.session_state;i&&(t.profile?(this._sub=t.profile.sub,this._sid=t.profile.sid,r.Log.debug("SessionMonitor._start: session_state:",i,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,r.Log.debug("SessionMonitor._start: session_state:",i,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(i):this._metadataService.getCheckSessionIframe().then(function(t){if(t){r.Log.debug("SessionMonitor._start: Initializing check session iframe");var n=e._client_id,o=e._checkSessionInterval,a=e._stopCheckSessionOnError;e._checkSessionIFrame=new e._CheckSessionIFrameCtor(e._callback.bind(e),n,t,o,a),e._checkSessionIFrame.load().then(function(){e._checkSessionIFrame.start(i)})}else r.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")}).catch(function(t){r.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",t.message)}))},t.prototype._stop=function(){var t=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(r.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var e=this._timer.setInterval(function(){t._timer.clearInterval(e),t._userManager.querySessionStatus().then(function(e){var i={session_state:e.session_state};e.sub&&e.sid&&(i.profile={sub:e.sub,sid:e.sid}),t._start(i)}).catch(function(t){r.Log.error("SessionMonitor: error from querySessionStatus:",t.message)})},1e3)},t.prototype._callback=function(){var t=this;this._userManager.querySessionStatus().then(function(e){var i=!0;e?e.sub===t._sub?(i=!1,t._checkSessionIFrame.start(e.session_state),e.sid===t._sid?r.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",e.session_state):(r.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",e.session_state),t._userManager.events._raiseUserSessionChanged())):r.Log.debug("SessionMonitor._callback: Different subject signed into OP:",e.sub):r.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),i&&(t._sub?(r.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),t._userManager.events._raiseUserSignedOut()):(r.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),t._userManager.events._raiseUserSignedIn()))}).catch(function(e){t._sub&&(r.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",e.message),t._userManager.events._raiseUserSignedOut())})},n(t,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CheckSessionIFrame=void 0;var n=i(0);e.CheckSessionIFrame=function(){function t(e,i,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._callback=e,this._client_id=i,this._url=n,this._interval=r||2e3,this._stopOnError=o;var a=n.indexOf("/",n.indexOf("//")+2);this._frame_origin=n.substr(0,a),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.style.width=0,this._frame.style.height=0,this._frame.src=n}return t.prototype.load=function(){var t=this;return new Promise(function(e){t._frame.onload=function(){e()},window.document.body.appendChild(t._frame),t._boundMessageEvent=t._message.bind(t),window.addEventListener("message",t._boundMessageEvent,!1)})},t.prototype._message=function(t){t.origin===this._frame_origin&&t.source===this._frame.contentWindow&&("error"===t.data?(n.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===t.data?(n.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):n.Log.debug("CheckSessionIFrame: "+t.data+" message from check session op iframe"))},t.prototype.start=function(t){var e=this;if(this._session_state!==t){n.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=t;var i=function(){e._frame.contentWindow.postMessage(e._client_id+" "+e._session_state,e._frame_origin)};i(),this._timer=window.setInterval(i,this._interval)}},t.prototype.stop=function(){this._session_state=null,this._timer&&(n.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenRevocationClient=void 0;var n=i(0),r=i(2),o=i(1);e.TokenRevocationClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Global.XMLHttpRequest,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw n.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=e,this._XMLHttpRequestCtor=i,this._metadataService=new a(this._settings)}return t.prototype.revoke=function(t,e){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!t)throw n.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==r&&"refresh_token"!=r)throw n.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then(function(o){if(o)return n.Log.debug("TokenRevocationClient.revoke: Revoking "+r),i._revoke(o,i._settings.client_id,i._settings.client_secret,t,r);if(e)throw n.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")})},t.prototype._revoke=function(t,e,i,r,o){var a=this;return new Promise(function(s,u){var c=new a._XMLHttpRequestCtor;c.open("POST",t),c.onload=function(){n.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",c.status),200===c.status?s():u(Error(c.statusText+" ("+c.status+")"))},c.onerror=function(){n.Log.debug("TokenRevocationClient.revoke: Network Error."),u("Network Error")};var l="client_id="+encodeURIComponent(e);i&&(l+="&client_secret="+encodeURIComponent(i)),l+="&token_type_hint="+encodeURIComponent(o),l+="&token="+encodeURIComponent(r),c.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),c.send(l)})},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CordovaPopupWindow=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:o.MetadataService,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.UserInfoService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c.JoseUtil,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.TokenClient;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=e,this._metadataService=new i(this._settings),this._userInfoService=new n(this._settings),this._joseUtil=u,this._tokenClient=new l(this._settings)}return t.prototype.validateSigninResponse=function(t,e){var i=this;return r.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(t,e).then(function(e){return r.Log.debug("ResponseValidator.validateSigninResponse: state processed"),i._validateTokens(t,e).then(function(e){return r.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),i._processClaims(t,e).then(function(t){return r.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),t})})})},t.prototype.validateSignoutResponse=function(t,e){return t.id!==e.state?(r.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(r.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),e.state=t.data,e.error?(r.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",e.error),Promise.reject(new u.ErrorResponse(e))):Promise.resolve(e))},t.prototype._processSigninParams=function(t,e){if(t.id!==e.state)return r.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!t.client_id)return r.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!t.authority)return r.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==t.authority)return r.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=t.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==t.client_id)return r.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=t.client_id;return r.Log.debug("ResponseValidator._processSigninParams: state validated"),e.state=t.data,e.error?(r.Log.warn("ResponseValidator._processSigninParams: Response was error",e.error),Promise.reject(new u.ErrorResponse(e))):t.nonce&&!e.id_token?(r.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!t.nonce&&e.id_token?(r.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):t.code_verifier&&!e.code?(r.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!t.code_verifier&&e.code?(r.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(e.scope||(e.scope=t.scope),Promise.resolve(e))},t.prototype._processClaims=function(t,e){var i=this;if(e.isOpenIdConnect){if(r.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),e.profile=this._filterProtocolClaims(e.profile),!0!==t.skipUserInfo&&this._settings.loadUserInfo&&e.access_token)return r.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(e.access_token).then(function(t){return r.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),t.sub!==e.profile.sub?(r.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in access_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"))):(e.profile=i._mergeClaims(e.profile,t),r.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",e.profile),e)});r.Log.debug("ResponseValidator._processClaims: not loading user info")}else r.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(e)},t.prototype._mergeClaims=function(t,e){var i=Object.assign({},t);for(var r in e){var o=e[r];Array.isArray(o)||(o=[o]);for(var a=0;a1)return r.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));u=s[0]}if(!u)return r.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var c=t.client_id,l=i._settings.clockSkew;return r.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",l),i._joseUtil.validateJwt(e.id_token,u,a,c,l).then(function(){return r.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),n.payload.sub?(e.profile=n.payload,e):(r.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))})})})},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return r.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",e),[];i="EC"}return r.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",i),t=t.filter(function(t){return t.kty===i}),r.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",i,t.length),t},t.prototype._validateAccessToken=function(t){if(!t.profile)return r.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!t.profile.at_hash)return r.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!t.id_token)return r.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var e=this._joseUtil.parseJwt(t.id_token);if(!e||!e.header)return r.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",e),Promise.reject(new Error("Failed to parse id_token"));var i=e.header.alg;if(!i||5!==i.length)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i),Promise.reject(new Error("Unsupported alg: "+i));var n=i.substr(2,3);if(!n)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));if(256!==(n=parseInt(n))&&384!==n&&512!==n)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));var o="sha"+n,a=this._joseUtil.hashString(t.access_token,o);if(!a)return r.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",o),Promise.reject(new Error("Failed to validate at_hash"));var s=a.substr(0,a.length/2),u=this._joseUtil.hexToBase64Url(s);return u!==t.profile.at_hash?(r.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",u,t.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(r.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(t))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserInfoService=void 0;var n=i(7),r=i(2),o=i(0),a=i(4);e.UserInfoService=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.JoseUtil;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw o.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new s(this._settings),this._joseUtil=u}return t.prototype.getClaims=function(t){var e=this;return t?this._metadataService.getUserInfoEndpoint().then(function(i){return o.Log.debug("UserInfoService.getClaims: received userinfo url",i),e._jsonService.getJson(i,t).then(function(t){return o.Log.debug("UserInfoService.getClaims: claims received",t),t})}):(o.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},t.prototype._getClaimsFromJwt=function t(e){var i=this;try{var n=this._joseUtil.parseJwt(e.responseText);if(!n||!n.header||!n.payload)return o.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",n),Promise.reject(new Error("Failed to parse id_token"));var r=n.header.kid,a=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":a=this._metadataService.getIssuer();break;case"ANY":a=Promise.resolve(n.payload.iss);break;default:a=Promise.resolve(this._settings.userInfoJwtIssuer)}return a.then(function(t){return o.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+t),i._metadataService.getSigningKeys().then(function(a){if(!a)return o.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));o.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var s=void 0;if(r)s=a.filter(function(t){return t.kid===r})[0];else{if((a=i._filterByAlg(a,n.header.alg)).length>1)return o.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));s=a[0]}if(!s)return o.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var u=i._settings.client_id,c=i._settings.clockSkew;return o.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",c),i._joseUtil.validateJwt(e.responseText,s,t,u,c,void 0,!0).then(function(){return o.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),n.payload})})})}catch(t){return o.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",t.message),void reject(t)}},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return o.Log.debug("UserInfoService._filterByAlg: alg not supported: ",e),[];i="EC"}return o.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",i),t=t.filter(function(t){return t.kty===i}),o.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",i,t.length),t},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AllowedSigningAlgs=e.b64tohex=e.hextob64u=e.crypto=e.X509=e.KeyUtil=e.jws=void 0;var n=i(26);e.jws=n.jws,e.KeyUtil=n.KEYUTIL,e.X509=n.X509,e.crypto=n.crypto,e.hextob64u=n.hextob64u,e.b64tohex=n.b64tohex,e.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n={userAgent:!1},r={};if(void 0===o)var o={};o.lang={extend:function(e,i,r){if(!i||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var o=function(){};if(o.prototype=i.prototype,e.prototype=new o,e.prototype.constructor=e,e.superclass=i.prototype,i.prototype.constructor==Object.prototype.constructor&&(i.prototype.constructor=i),r){var a;for(a in r)e.prototype[a]=r[a];var s=function(){},u=["toString","valueOf"];try{/MSIE/.test(n.userAgent)&&(s=function(t,e){for(a=0;a>>2]|=(i[o>>>2]>>>24-o%4*8&255)<<24-(n+o)%4*8;else for(o=0;o>>2]=i[o>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=a.ceil(e/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i>>2]>>>24-r%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new l.init(i,e/2)}},f=h.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new l.init(i,e)}},p=h.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},g=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,i=e.words,n=e.sigBytes,r=this.blockSize,o=n/(4*r),s=(o=t?a.ceil(o):a.max((0|o)-this._minBufferSize,0))*r,u=a.min(4*s,n);if(s){for(var c=0;c>>2]>>>24-r%4*8&255)<<16|(e[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|e[r+2>>>2]>>>24-(r+2)%4*8&255,a=0;4>a&&r+.75*a>>6*(3-a)&63));if(e=n.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(e){var i=e.length,n=this._map;(r=n.charAt(64))&&-1!=(r=e.indexOf(r))&&(i=r);for(var r=[],o=0,a=0;a>>6-a%4*2;r[o>>>2]|=(s|u)<<24-o%4*8,o++}return t.create(r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){for(var e=m,i=(r=e.lib).WordArray,n=r.Hasher,r=e.algo,o=[],a=[],s=function(t){return 4294967296*(t-(0|t))|0},u=2,c=0;64>c;){var l;t:{for(var h=t.sqrt(l=u),d=2;d<=h;d++)if(!(l%d)){l=!1;break t}l=!0}l&&(8>c&&(o[c]=s(t.pow(u,.5))),a[c]=s(t.pow(u,1/3)),c++),u++}var f=[];r=r.SHA256=n.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],r=i[1],o=i[2],s=i[3],u=i[4],c=i[5],l=i[6],h=i[7],d=0;64>d;d++){if(16>d)f[d]=0|t[e+d];else{var p=f[d-15],g=f[d-2];f[d]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+f[d-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+f[d-16]}p=h+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&c^~u&l)+a[d]+f[d],g=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&r^n&o^r&o),h=l,l=c,c=u,u=s+p|0,s=o,o=r,r=n,n=p+g|0}i[0]=i[0]+n|0,i[1]=i[1]+r|0,i[2]=i[2]+o|0,i[3]=i[3]+s|0,i[4]=i[4]+u|0,i[5]=i[5]+c|0,i[6]=i[6]+l|0,i[7]=i[7]+h|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return i[r>>>5]|=128<<24-r%32,i[14+(r+64>>>9<<4)]=t.floor(n/4294967296),i[15+(r+64>>>9<<4)]=n,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),e.SHA256=n._createHelper(r),e.HmacSHA256=n._createHmacHelper(r)}(Math),function(){function t(){return n.create.apply(n,arguments)}for(var e=m,i=e.lib.Hasher,n=(o=e.x64).Word,r=o.WordArray,o=e.algo,a=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],s=[],u=0;80>u;u++)s[u]=t();o=o.SHA512=i.extend({_doReset:function(){this._hash=new r.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var i=(h=this._hash.words)[0],n=h[1],r=h[2],o=h[3],u=h[4],c=h[5],l=h[6],h=h[7],d=i.high,f=i.low,p=n.high,g=n.low,v=r.high,m=r.low,y=o.high,b=o.low,w=u.high,_=u.low,A=c.high,k=c.low,T=l.high,C=l.low,S=h.high,E=h.low,x=d,R=f,I=p,O=g,P=v,D=m,M=y,L=b,N=w,z=_,F=A,Z=k,B=T,q=C,U=S,H=E,j=0;80>j;j++){var G=s[j];if(16>j)var Y=G.high=0|t[e+2*j],V=G.low=0|t[e+2*j+1];else{Y=((V=(Y=s[j-15]).high)>>>1|(K=Y.low)<<31)^(V>>>8|K<<24)^V>>>7;var K=(K>>>1|V<<31)^(K>>>8|V<<24)^(K>>>7|V<<25),J=((V=(J=s[j-2]).high)>>>19|(Q=J.low)<<13)^(V<<3|Q>>>29)^V>>>6,Q=(Q>>>19|V<<13)^(Q<<3|V>>>29)^(Q>>>6|V<<26),W=(V=s[j-7]).high,X=($=s[j-16]).high,$=$.low;Y=(Y=(Y=Y+W+((V=K+V.low)>>>0>>0?1:0))+J+((V+=Q)>>>0>>0?1:0))+X+((V+=$)>>>0<$>>>0?1:0),G.high=Y,G.low=V}G=x&I^x&P^I&P;var tt=R&O^R&D^O&D,et=(K=(x>>>28|R<<4)^(x<<30|R>>>2)^(x<<25|R>>>7),J=(R>>>28|x<<4)^(R<<30|x>>>2)^(R<<25|x>>>7),(Q=a[j]).high),it=Q.low;X=(X=(X=(X=U+((N>>>14|z<<18)^(N>>>18|z<<14)^(N<<23|z>>>9))+((Q=H+((z>>>14|N<<18)^(z>>>18|N<<14)^(z<<23|N>>>9)))>>>0>>0?1:0))+(W=N&F^~N&B)+((Q+=$=z&Z^~z&q)>>>0<$>>>0?1:0))+et+((Q+=it)>>>0>>0?1:0))+Y+((Q+=V)>>>0>>0?1:0),U=B,H=q,B=F,q=Z,F=N,Z=z,N=M+X+((z=L+Q|0)>>>0>>0?1:0)|0,M=P,L=D,P=I,D=O,I=x,O=R,x=X+(G=K+G+((V=J+tt)>>>0>>0?1:0))+((R=Q+V|0)>>>0>>0?1:0)|0}f=i.low=f+R,i.high=d+x+(f>>>0>>0?1:0),g=n.low=g+O,n.high=p+I+(g>>>0>>0?1:0),m=r.low=m+D,r.high=v+P+(m>>>0>>0?1:0),b=o.low=b+L,o.high=y+M+(b>>>0>>0?1:0),_=u.low=_+z,u.high=w+N+(_>>>0>>0?1:0),k=c.low=k+Z,c.high=A+F+(k>>>0>>0?1:0),C=l.low=C+q,l.high=T+B+(C>>>0>>0?1:0),E=h.low=E+H,h.high=S+U+(E>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(n+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),e.SHA512=i._createHelper(o),e.HmacSHA512=i._createHmacHelper(o)}(),function(){var t=m,e=(r=t.x64).Word,i=r.WordArray,n=(r=t.algo).SHA512,r=r.SHA384=n.extend({_doReset:function(){this._hash=new i.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=n._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=n._createHelper(r),t.HmacSHA384=n._createHmacHelper(r)}();var y,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function w(t){var e,i,n="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),n+=b.charAt(i>>6)+b.charAt(63&i);for(e+1==t.length?(i=parseInt(t.substring(e,e+1),16),n+=b.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),n+=b.charAt(i>>2)+b.charAt((3&i)<<4));(3&n.length)>0;)n+="=";return n}function _(t){var e,i,n,r="",o=0;for(e=0;e>2),i=3&n,o=1):1==o?(r+=x(i<<2|n>>4),i=15&n,o=2):2==o?(r+=x(i),r+=x(n>>2),i=3&n,o=3):(r+=x(i<<2|n>>4),r+=x(15&n),o=0));return 1==o&&(r+=x(i<<2)),r}function A(t){var e,i=_(t),n=new Array;for(e=0;2*e>15;--o>=0;){var u=32767&this[t],c=this[t++]>>15,l=s*u+c*a;r=((u=a*u+((32767&l)<<15)+i[n]+(1073741823&r))>>>30)+(l>>>15)+s*c+(r>>>30),i[n++]=1073741823&u}return r},y=30):"Netscape"!=n.appName?(k.prototype.am=function(t,e,i,n,r,o){for(;--o>=0;){var a=e*this[t++]+i[n]+r;r=Math.floor(a/67108864),i[n++]=67108863&a}return r},y=26):(k.prototype.am=function(t,e,i,n,r,o){for(var a=16383&e,s=e>>14;--o>=0;){var u=16383&this[t],c=this[t++]>>14,l=s*u+c*a;r=((u=a*u+((16383&l)<<14)+i[n]+r)>>28)+(l>>14)+s*c,i[n++]=268435455&u}return r},y=28),k.prototype.DB=y,k.prototype.DM=(1<>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}function P(t){this.m=t}function D(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function Z(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function B(){}function q(t){return t}function U(t){this.r2=T(),this.q3=T(),k.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}P.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},P.prototype.revert=function(t){return t},P.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},P.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},P.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},D.prototype.convert=function(t){var e=T();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(k.ZERO)>0&&this.m.subTo(e,e),e},D.prototype.revert=function(t){var e=T();return t.copyTo(e),this.reduce(e),e},D.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[i=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},D.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},D.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},k.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},k.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},k.prototype.fromString=function(t,e){var i;if(16==e)i=4;else if(8==e)i=3;else if(256==e)i=8;else if(2==e)i=1;else if(32==e)i=5;else{if(4!=e)return void this.fromRadix(t,e);i=2}this.t=0,this.s=0;for(var n=t.length,r=!1,o=0;--n>=0;){var a=8==i?255&t[n]:R(t,n);a<0?"-"==t.charAt(n)&&(r=!0):(r=!1,0==o?this[this.t++]=a:o+i>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}8==i&&0!=(128&t[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},k.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},k.prototype.drShiftTo=function(t,e){for(var i=t;i=0;--i)e[i+a+1]=this[i]>>r|s,s=(this[i]&o)<=0;--i)e[i]=0;e[a]=s,e.t=this.t+a+1,e.s=this.s,e.clamp()},k.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var n=t%this.DB,r=this.DB-n,o=(1<>n;for(var a=i+1;a>n;n>0&&(e[this.t-i-1]|=(this.s&o)<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[i++]=this.DV+n:n>0&&(e[i++]=n),e.t=i,e.clamp()},k.prototype.multiplyTo=function(t,e){var i=this.abs(),n=t.abs(),r=i.t;for(e.t=r+n.t;--r>=0;)e[r]=0;for(r=0;r=0;)t[i]=0;for(i=0;i=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},k.prototype.divRemTo=function(t,e,i){var n=t.abs();if(!(n.t<=0)){var r=this.abs();if(r.t0?(n.lShiftTo(u,o),r.lShiftTo(u,i)):(n.copyTo(o),r.copyTo(i));var c=o.t,l=o[c-1];if(0!=l){var h=l*(1<1?o[c-2]>>this.F2:0),d=this.FV/h,f=(1<=0&&(i[i.t++]=1,i.subTo(m,i)),k.ONE.dlShiftTo(c,m),m.subTo(o,o);o.t=0;){var y=i[--g]==l?this.DM:Math.floor(i[g]*d+(i[g-1]+p)*f);if((i[g]+=o.am(0,y,i,v,0,c))0&&i.rShiftTo(u,i),a<0&&k.ZERO.subTo(i,i)}}},k.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},k.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},k.prototype.exp=function(t,e){if(t>4294967295||t<1)return k.ONE;var i=T(),n=T(),r=e.convert(this),o=O(t)-1;for(r.copyTo(i);--o>=0;)if(e.sqrTo(i,n),(t&1<0)e.mulTo(n,r,i);else{var a=i;i=n,n=a}return e.revert(i)},k.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,n=(1<0)for(s>s)>0&&(r=!0,o=x(i));a>=0;)s>(s+=this.DB-e)):(i=this[a]>>(s-=e)&n,s<=0&&(s+=this.DB,--a)),i>0&&(r=!0),r&&(o+=x(i));return r?o:"0"},k.prototype.negate=function(){var t=T();return k.ZERO.subTo(this,t),t},k.prototype.abs=function(){return this.s<0?this.negate():this},k.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-t.t))return this.s<0?-e:e;for(;--i>=0;)if(0!=(e=this[i]-t[i]))return e;return 0},k.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+O(this[this.t-1]^this.s&this.DM)},k.prototype.mod=function(t){var e=T();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(k.ZERO)>0&&t.subTo(e,e),e},k.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new P(e):new D(e),this.exp(t,i)},k.ZERO=I(0),k.ONE=I(1),B.prototype.convert=q,B.prototype.revert=q,B.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},B.prototype.sqrTo=function(t,e){t.squareTo(e)},U.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=T();return t.copyTo(e),this.reduce(e),e},U.prototype.revert=function(t){return t},U.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},U.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},U.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var H,j,G,Y=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],V=(1<<26)/Y[Y.length-1];function K(){this.i=0,this.j=0,this.S=new Array}function J(){!function(t){j[G++]^=255&t,j[G++]^=t>>8&255,j[G++]^=t>>16&255,j[G++]^=t>>24&255,G>=256&&(G-=256)}((new Date).getTime())}if(k.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},k.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),n=I(i),r=T(),o=T(),a="";for(this.divRemTo(n,r,o);r.signum()>0;)a=(i+o.intValue()).toString(t).substr(1)+a,r.divRemTo(n,r,o);return o.intValue().toString(t)+a},k.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var i=this.chunkSize(e),n=Math.pow(e,i),r=!1,o=0,a=0,s=0;s=i&&(this.dMultiply(n),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(a,0)),r&&k.ZERO.subTo(this,this)},k.prototype.fromNumber=function(t,e,i){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(k.ONE.shiftLeft(t-1),L,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(k.ONE.shiftLeft(t-1),this);else{var n=new Array,r=7&t;n.length=1+(t>>3),e.nextBytes(n),r>0?n[0]&=(1<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[i++]=n:n<-1&&(e[i++]=this.DV+n),e.t=i,e.clamp()},k.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},k.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},k.prototype.multiplyLowerTo=function(t,e,i){var n,r=Math.min(this.t+t.t,e);for(i.s=0,i.t=r;r>0;)i[--r]=0;for(n=i.t-this.t;r=0;)i[n]=0;for(n=Math.max(e-this.t,0);n0)if(0==e)i=this[0]%t;else for(var n=this.t-1;n>=0;--n)i=(e*i+this[n])%t;return i},k.prototype.millerRabin=function(t){var e=this.subtract(k.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var n=e.shiftRight(i);(t=t+1>>1)>Y.length&&(t=Y.length);for(var r=T(),o=0;o>24},k.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},k.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},k.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var i,n=this.DB-t*this.DB%8,r=0;if(t-- >0)for(n>n)!=(this.s&this.DM)>>n&&(e[r++]=i|this.s<=0;)n<8?(i=(this[t]&(1<>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==r&&(128&this.s)!=(128&i)&&++r,(r>0||i!=this.s)&&(e[r++]=i);return e},k.prototype.equals=function(t){return 0==this.compareTo(t)},k.prototype.min=function(t){return this.compareTo(t)<0?this:t},k.prototype.max=function(t){return this.compareTo(t)>0?this:t},k.prototype.and=function(t){var e=T();return this.bitwiseTo(t,M,e),e},k.prototype.or=function(t){var e=T();return this.bitwiseTo(t,L,e),e},k.prototype.xor=function(t){var e=T();return this.bitwiseTo(t,N,e),e},k.prototype.andNot=function(t){var e=T();return this.bitwiseTo(t,z,e),e},k.prototype.not=function(){for(var t=T(),e=0;e=this.t?0!=this.s:0!=(this[e]&1<1){var l=T();for(n.sqrTo(a[1],l);s<=c;)a[s]=T(),n.mulTo(l,a[s-2],a[s]),s+=2}var h,d,f=t.t-1,p=!0,g=T();for(r=O(t[f])-1;f>=0;){for(r>=u?h=t[f]>>r-u&c:(h=(t[f]&(1<0&&(h|=t[f-1]>>this.DB+r-u)),s=i;0==(1&h);)h>>=1,--s;if((r-=s)<0&&(r+=this.DB,--f),p)a[h].copyTo(o),p=!1;else{for(;s>1;)n.sqrTo(o,g),n.sqrTo(g,o),s-=2;s>0?n.sqrTo(o,g):(d=o,o=g,g=d),n.mulTo(g,a[h],o)}for(;f>=0&&0==(t[f]&1<=0?(i.subTo(n,i),e&&r.subTo(a,r),o.subTo(s,o)):(n.subTo(i,n),e&&a.subTo(r,a),s.subTo(o,s))}return 0!=n.compareTo(k.ONE)?k.ZERO:s.compareTo(t)>=0?s.subtract(t):s.signum()<0?(s.addTo(t,s),s.signum()<0?s.add(t):s):s},k.prototype.pow=function(t){return this.exp(t,new B)},k.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var n=e;e=i,i=n}var r=e.getLowestSetBit(),o=i.getLowestSetBit();if(o<0)return e;for(r0&&(e.rShiftTo(o,e),i.rShiftTo(o,i));e.signum()>0;)(r=e.getLowestSetBit())>0&&e.rShiftTo(r,e),(r=i.getLowestSetBit())>0&&i.rShiftTo(r,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return o>0&&i.lShiftTo(o,i),i},k.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=Y[Y.length-1]){for(e=0;e>>8,j[G++]=255&Q;G=0,J()}function tt(){if(null==H){for(J(),(H=new K).init(j),G=0;G>24,(16711680&r)>>16,(65280&r)>>8,255&r]))),r+=1;return n}function rt(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function ot(t,e){this.x=e,this.q=t}function at(t,e,i,n){this.curve=t,this.x=e,this.y=i,this.z=null==n?k.ONE:n,this.zinv=null}function st(t,e,i){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(i),this.infinity=new at(this,null,null)}et.prototype.nextBytes=function(t){var e;for(e=0;e0&&e.length>0))throw"Invalid RSA public key";this.n=it(t,16),this.e=parseInt(e,16)}},rt.prototype.encrypt=function(t){var e=function(t,e){if(e=0&&e>0;){var r=t.charCodeAt(n--);r<128?i[--e]=r:r>127&&r<2048?(i[--e]=63&r|128,i[--e]=r>>6|192):(i[--e]=63&r|128,i[--e]=r>>6&63|128,i[--e]=r>>12|224)}i[--e]=0;for(var o=new et,a=new Array;e>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);i[--e]=a[0]}return i[--e]=2,i[--e]=0,new k(i)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var i=this.doPublic(e);if(null==i)return null;var n=i.toString(16);return 0==(1&n.length)?n:"0"+n},rt.prototype.encryptOAEP=function(t,e,i){var n=function(t,e,i,n){var r=ct.crypto.MessageDigest,o=ct.crypto.Util,a=null;if(i||(i="sha1"),"string"==typeof i&&(a=r.getCanonicalAlgName(i),n=r.getHashLength(a),i=function(t){return kt(o.hashHex(Tt(t),a))}),t.length+2*n+2>e)throw"Message too long for RSA";var s,u="";for(s=0;s>3,e,i);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;var o=r.toString(16);return 0==(1&o.length)?o:"0"+o},rt.prototype.type="RSA",ot.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},ot.prototype.toBigInteger=function(){return this.x},ot.prototype.negate=function(){return new ot(this.q,this.x.negate().mod(this.q))},ot.prototype.add=function(t){return new ot(this.q,this.x.add(t.toBigInteger()).mod(this.q))},ot.prototype.subtract=function(t){return new ot(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},ot.prototype.multiply=function(t){return new ot(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},ot.prototype.square=function(){return new ot(this.q,this.x.square().mod(this.q))},ot.prototype.divide=function(t){return new ot(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},at.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},at.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},at.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(k.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(k.ZERO))},at.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(k.ZERO)&&!this.y.toBigInteger().equals(k.ZERO)},at.prototype.negate=function(){return new at(this.curve,this.x,this.y.negate(),this.z)},at.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),i=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(k.ZERO.equals(i))return k.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new k("3"),r=this.x.toBigInteger(),o=this.y.toBigInteger(),a=(t.x.toBigInteger(),t.y.toBigInteger(),i.square()),s=a.multiply(i),u=r.multiply(a),c=e.square().multiply(this.z),l=c.subtract(u.shiftLeft(1)).multiply(t.z).subtract(s).multiply(i).mod(this.curve.q),h=u.multiply(n).multiply(e).subtract(o.multiply(s)).subtract(c.multiply(e)).multiply(t.z).add(e.multiply(s)).mod(this.curve.q),d=s.multiply(this.z).multiply(t.z).mod(this.curve.q);return new at(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(h),d)},at.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=new k("3"),e=this.x.toBigInteger(),i=this.y.toBigInteger(),n=i.multiply(this.z),r=n.multiply(i).mod(this.curve.q),o=this.curve.a.toBigInteger(),a=e.square().multiply(t);k.ZERO.equals(o)||(a=a.add(this.z.square().multiply(o)));var s=(a=a.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(r)).shiftLeft(1).multiply(n).mod(this.curve.q),u=a.multiply(t).multiply(e).subtract(r.shiftLeft(1)).shiftLeft(2).multiply(r).subtract(a.square().multiply(a)).mod(this.curve.q),c=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new at(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(u),c)},at.prototype.multiply=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new k("3")),r=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var a=n.testBit(e);a!=i.testBit(e)&&(o=o.add(a?this:r))}return o},at.prototype.multiplyTwo=function(t,e,i){var n;n=t.bitLength()>i.bitLength()?t.bitLength()-1:i.bitLength()-1;for(var r=this.curve.getInfinity(),o=this.add(e);n>=0;)r=r.twice(),t.testBit(n)?r=i.testBit(n)?r.add(o):r.add(this):i.testBit(n)&&(r=r.add(e)),--n;return r},st.prototype.getQ=function(){return this.q},st.prototype.getA=function(){return this.a},st.prototype.getB=function(){return this.b},st.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},st.prototype.getInfinity=function(){return this.infinity},st.prototype.fromBigInteger=function(t){return new ot(this.q,t)},st.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,i=t.substr(2,e),n=t.substr(e+2,e);return new at(this,this.fromBigInteger(new k(i,16)),this.fromBigInteger(new k(n,16)));default:return null}},ot.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},at.prototype.getEncoded=function(t){var e=function(t,e){var i=t.toByteArrayUnsigned();if(ei.length;)i.unshift(0);return i},i=this.getX().toBigInteger(),n=this.getY().toBigInteger(),r=e(i,32);return t?n.isEven()?r.unshift(2):r.unshift(3):(r.unshift(4),r=r.concat(e(n,32))),r},at.decodeFrom=function(t,e){var i=e.length-1,n=e.slice(1,1+i/2),r=e.slice(1+i/2,1+i);n.unshift(0),r.unshift(0);var o=new k(n),a=new k(r);return new at(t,t.fromBigInteger(o),t.fromBigInteger(a))},at.decodeFromHex=function(t,e){e.substr(0,2);var i=e.length-2,n=e.substr(2,i/2),r=e.substr(2+i/2,i/2),o=new k(n,16),a=new k(r,16);return new at(t,t.fromBigInteger(o),t.fromBigInteger(a))},at.prototype.add2D=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;if(this.x.equals(t.x))return this.y.equals(t.y)?this.twice():this.curve.getInfinity();var e=t.x.subtract(this.x),i=t.y.subtract(this.y).divide(e),n=i.square().subtract(this.x).subtract(t.x),r=i.multiply(this.x.subtract(n)).subtract(this.y);return new at(this.curve,n,r)},at.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=this.curve.fromBigInteger(k.valueOf(2)),e=this.curve.fromBigInteger(k.valueOf(3)),i=this.x.square().multiply(e).add(this.curve.a).divide(this.y.multiply(t)),n=i.square().subtract(this.x.multiply(t)),r=i.multiply(this.x.subtract(n)).subtract(this.y);return new at(this.curve,n,r)},at.prototype.multiply2D=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new k("3")),r=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var a=n.testBit(e);a!=i.testBit(e)&&(o=o.add2D(a?this:r))}return o},at.prototype.isOnCurve=function(){var t=this.getX().toBigInteger(),e=this.getY().toBigInteger(),i=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),r=this.curve.getQ(),o=e.multiply(e).mod(r),a=t.multiply(t).multiply(t).add(i.multiply(t)).add(n).mod(r);return o.equals(a)},at.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},at.prototype.validate=function(){var t=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var e=this.getX().toBigInteger(),i=this.getY().toBigInteger();if(e.compareTo(k.ONE)<0||e.compareTo(t.subtract(k.ONE))>0)throw new Error("x coordinate out of bounds");if(i.compareTo(k.ONE)<0||i.compareTo(t.subtract(k.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(t).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ut=function(){var t=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),e=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),n={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function r(t,e,i){return e?n[e]:String.fromCharCode(parseInt(i,16))}var o=new String(""),a=Object.hasOwnProperty;return function(n,s){var u,c,l=n.match(t),h=l[0],d=!1;"{"===h?u={}:"["===h?u=[]:(u=[],d=!0);for(var f=[u],p=1-d,g=l.length;p=0;)delete r[o[l]]}return s.call(e,n,r)}({"":u},"")),u}}();void 0!==ct&&ct||(e.KJUR=ct={}),void 0!==ct.asn1&&ct.asn1||(ct.asn1={}),ct.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var i=e.substr(1).length;i%2==1?i+=1:e.match(/^[0-7]/)||(i+=2);for(var n="",r=0;r15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+i).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ct.asn1.DERAbstractString=function(t){ct.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=_t(this.s).toLowerCase()},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},o.lang.extend(ct.asn1.DERAbstractString,ct.asn1.ASN1Object),ct.asn1.DERAbstractTime=function(t){ct.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,i){var n=this.zeroPadding,r=this.localDateToUTC(t),o=String(r.getFullYear());"utc"==e&&(o=o.substr(2,2));var a=o+n(String(r.getMonth()+1),2)+n(String(r.getDate()),2)+n(String(r.getHours()),2)+n(String(r.getMinutes()),2)+n(String(r.getSeconds()),2);if(!0===i){var s=r.getMilliseconds();if(0!=s){var u=n(String(s),3);a=a+"."+(u=u.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=vt(t)},this.setByDateValue=function(t,e,i,n,r,o){var a=new Date(Date.UTC(t,e-1,i,n,r,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},o.lang.extend(ct.asn1.DERAbstractTime,ct.asn1.ASN1Object),ct.asn1.DERAbstractStructured=function(t){ct.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},o.lang.extend(ct.asn1.DERAbstractStructured,ct.asn1.ASN1Object),ct.asn1.DERBoolean=function(){ct.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},o.lang.extend(ct.asn1.DERBoolean,ct.asn1.ASN1Object),ct.asn1.DERInteger=function(t){ct.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ct.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new k(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},o.lang.extend(ct.asn1.DERInteger,ct.asn1.ASN1Object),ct.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=ct.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}ct.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7r.length&&(r=n[i]);return(t=t.replace(r,"::")).slice(1,-1)}function Nt(t){var e="malformed hex value";if(!t.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw e;if(8!=t.length)return 32==t.length?Lt(t):t;try{return parseInt(t.substr(0,2),16)+"."+parseInt(t.substr(2,2),16)+"."+parseInt(t.substr(4,2),16)+"."+parseInt(t.substr(6,2),16)}catch(t){throw e}}function zt(t){for(var e=encodeURIComponent(t),i="",n=0;n"7"?"00"+t:t}dt.getLblen=function(t,e){if("8"!=t.substr(e+2,1))return 1;var i=parseInt(t.substr(e+3,1));return 0==i?-1:0=2*o)break;if(s>=200)break;n.push(u),a=u,s++}return n},dt.getNthChildIdx=function(t,e,i){return dt.getChildIdx(t,e)[i]},dt.getIdxbyList=function(t,e,i,n){var r,o,a=dt;if(0==i.length){if(void 0!==n&&t.substr(e,2)!==n)throw"checking tag doesn't match: "+t.substr(e,2)+"!="+n;return e}return r=i.shift(),o=a.getChildIdx(t,e),a.getIdxbyList(t,o[r],i,n)},dt.getTLVbyList=function(t,e,i,n){var r=dt,o=r.getIdxbyList(t,e,i);if(void 0===o)throw"can't find nthList object";if(void 0!==n&&t.substr(o,2)!=n)throw"checking tag doesn't match: "+t.substr(o,2)+"!="+n;return r.getTLV(t,o)},dt.getVbyList=function(t,e,i,n,r){var o,a,s=dt;if(void 0===(o=s.getIdxbyList(t,e,i,n)))throw"can't find nthList object";return a=s.getV(t,o),!0===r&&(a=a.substr(2)),a},dt.hextooidstr=function(t){var e=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},i=[],n=t.substr(0,2),r=parseInt(n,16);i[0]=new String(Math.floor(r/40)),i[1]=new String(r%40);for(var o=t.substr(2),a=[],s=0;s0&&(l=l+"."+u.join(".")),l},dt.dump=function(t,e,i,n){var r=dt,o=r.getV,a=r.dump,s=r.getChildIdx,u=t;t instanceof ct.asn1.ASN1Object&&(u=t.getEncodedHex());var c=function(t,e){return t.length<=2*e?t:t.substr(0,e)+"..(total "+t.length/2+"bytes).."+t.substr(t.length-e,e)};void 0===e&&(e={ommit_long_octet:32}),void 0===i&&(i=0),void 0===n&&(n="");var l=e.ommit_long_octet;if("01"==u.substr(i,2))return"00"==(h=o(u,i))?n+"BOOLEAN FALSE\n":n+"BOOLEAN TRUE\n";if("02"==u.substr(i,2))return n+"INTEGER "+c(h=o(u,i),l)+"\n";if("03"==u.substr(i,2))return n+"BITSTRING "+c(h=o(u,i),l)+"\n";if("04"==u.substr(i,2)){var h=o(u,i);return r.isASN1HEX(h)?(A=n+"OCTETSTRING, encapsulates\n")+a(h,e,0,n+" "):n+"OCTETSTRING "+c(h,l)+"\n"}if("05"==u.substr(i,2))return n+"NULL\n";if("06"==u.substr(i,2)){var d=o(u,i),f=ct.asn1.ASN1Util.oidHexToInt(d),p=ct.asn1.x509.OID.oid2name(f),g=f.replace(/\./g," ");return""!=p?n+"ObjectIdentifier "+p+" ("+g+")\n":n+"ObjectIdentifier ("+g+")\n"}if("0c"==u.substr(i,2))return n+"UTF8String '"+At(o(u,i))+"'\n";if("13"==u.substr(i,2))return n+"PrintableString '"+At(o(u,i))+"'\n";if("14"==u.substr(i,2))return n+"TeletexString '"+At(o(u,i))+"'\n";if("16"==u.substr(i,2))return n+"IA5String '"+At(o(u,i))+"'\n";if("17"==u.substr(i,2))return n+"UTCTime "+At(o(u,i))+"\n";if("18"==u.substr(i,2))return n+"GeneralizedTime "+At(o(u,i))+"\n";if("30"==u.substr(i,2)){if("3000"==u.substr(i,4))return n+"SEQUENCE {}\n";A=n+"SEQUENCE\n";var v=e;if((2==(b=s(u,i)).length||3==b.length)&&"06"==u.substr(b[0],2)&&"04"==u.substr(b[b.length-1],2)){p=r.oidname(o(u,b[0]));var m=JSON.parse(JSON.stringify(e));m.x509ExtName=p,v=m}for(var y=0;yr)throw"key is too short for SigAlg: keylen="+i+","+e;for(var o="0001",a="00"+n,s="",u=r-o.length-a.length,c=0;c=0)return!1;if(i.compareTo(k.ONE)<0||i.compareTo(r)>=0)return!1;var a=i.modInverse(r),s=t.multiply(a).mod(r),u=e.multiply(a).mod(r);return o.multiply(s).add(n.multiply(u)).getX().toBigInteger().mod(r).equals(e)},this.serializeSig=function(t,e){var i=t.toByteArraySigned(),n=e.toByteArraySigned(),r=[];return r.push(2),r.push(i.length),(r=r.concat(i)).push(2),r.push(n.length),(r=r.concat(n)).unshift(r.length),r.unshift(48),r},this.parseSig=function(t){var e;if(48!=t[0])throw new Error("Signature not a valid DERSequence");if(2!=t[e=2])throw new Error("First element in signature must be a DERInteger");var i=t.slice(e+2,e+2+t[e+1]);if(2!=t[e+=2+t[e+1]])throw new Error("Second element in signature must be a DERInteger");var n=t.slice(e+2,e+2+t[e+1]);return e+=2+t[e+1],{r:k.fromByteArrayUnsigned(i),s:k.fromByteArrayUnsigned(n)}},this.parseSigCompact=function(t){if(65!==t.length)throw"Signature has the wrong length";var e=t[0]-27;if(e<0||e>7)throw"Invalid signature type";var i=this.ecparams.n;return{r:k.fromByteArrayUnsigned(t.slice(1,33)).mod(i),s:k.fromByteArrayUnsigned(t.slice(33,65)).mod(i),i:e}},this.readPKCS5PrvKeyHex=function(t){var e,i,n,r=ct.crypto.ECDSA.getName,o=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=o(t,0,[2,0],"06"),i=o(t,0,[1],"04");try{n=o(t,0,[3,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=r(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(t){var e,i,n,r=ct.crypto.ECDSA.getName,o=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{o(t,0,[1,0],"06"),e=o(t,0,[1,1],"06"),i=o(t,0,[2,0,1],"04");try{n=o(t,0,[2,0,2,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=r(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PubKeyHex=function(t){var e,i,n=ct.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{r(t,0,[0,0],"06"),e=r(t,0,[0,1],"06"),i=r(t,0,[1],"03").substr(2)}catch(t){throw"malformed PKCS#8 ECC public key"}if(this.curveName=n(e),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},this.readCertPubKeyHex=function(t,e){5!==e&&(e=6);var i,n,r=ct.crypto.ECDSA.getName,o=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{i=o(t,0,[0,e,0,1],"06"),n=o(t,0,[0,e,1],"03").substr(2)}catch(t){throw"malformed X.509 certificate ECC public key"}if(this.curveName=r(i),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},void 0!==t&&void 0!==t.curve&&(this.curveName=t.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==t&&(void 0!==t.prv&&this.setPrivateKeyHex(t.prv),void 0!==t.pub&&this.setPublicKeyHex(t.pub))},ct.crypto.ECDSA.parseSigHex=function(t){var e=ct.crypto.ECDSA.parseSigHexInHexRS(t);return{r:new k(e.r,16),s:new k(e.s,16)}},ct.crypto.ECDSA.parseSigHexInHexRS=function(t){var e=dt.getChildIdx,i=dt.getV;if("30"!=t.substr(0,2))throw"signature is not a ASN.1 sequence";var n=e(t,0);if(2!=n.length)throw"number of signature ASN.1 sequence elements seem wrong";var r=n[0],o=n[1];if("02"!=t.substr(r,2))throw"1st item of sequene of signature is not ASN.1 integer";if("02"!=t.substr(o,2))throw"2nd item of sequene of signature is not ASN.1 integer";return{r:i(t,r),s:i(t,o)}},ct.crypto.ECDSA.asn1SigToConcatSig=function(t){var e=ct.crypto.ECDSA.parseSigHexInHexRS(t),i=e.r,n=e.s;if("00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),"00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),i.length%32==30&&(i="00"+i),n.length%32==30&&(n="00"+n),i.length%32!=0)throw"unknown ECDSA sig r length error";if(n.length%32!=0)throw"unknown ECDSA sig s length error";return i+n},ct.crypto.ECDSA.concatSigToASN1Sig=function(t){if(t.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var e=t.substr(0,t.length/2),i=t.substr(t.length/2);return ct.crypto.ECDSA.hexRSSigToASN1Sig(e,i)},ct.crypto.ECDSA.hexRSSigToASN1Sig=function(t,e){var i=new k(t,16),n=new k(e,16);return ct.crypto.ECDSA.biRSSigToASN1Sig(i,n)},ct.crypto.ECDSA.biRSSigToASN1Sig=function(t,e){var i=ct.asn1,n=new i.DERInteger({bigint:t}),r=new i.DERInteger({bigint:e});return new i.DERSequence({array:[n,r]}).getEncodedHex()},ct.crypto.ECDSA.getName=function(t){return"2a8648ce3d030107"===t?"secp256r1":"2b8104000a"===t?"secp256k1":"2b81040022"===t?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(t)?"secp256r1":-1!=="|secp256k1|".indexOf(t)?"secp256k1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(t)?"secp384r1":null},void 0!==ct&&ct||(e.KJUR=ct={}),void 0!==ct.crypto&&ct.crypto||(ct.crypto={}),ct.crypto.ECParameterDB=new function(){var t={},e={};function i(t){return new k(t,16)}this.getByName=function(i){var n=i;if(void 0!==e[n]&&(n=e[i]),void 0!==t[n])return t[n];throw"unregistered EC curve name: "+n},this.regist=function(n,r,o,a,s,u,c,l,h,d,f,p){t[n]={};var g=i(o),v=i(a),m=i(s),y=i(u),b=i(c),w=new st(g,v,m),_=w.decodePointHex("04"+l+h);t[n].name=n,t[n].keylen=r,t[n].curve=w,t[n].G=_,t[n].n=y,t[n].h=b,t[n].oid=f,t[n].info=p;for(var A=0;A=2*s)break}var h={};return h.keyhex=u.substr(0,2*r[t].keylen),h.ivhex=u.substr(2*r[t].keylen,2*r[t].ivlen),h},s=function(t,e,i,n){var o=m.enc.Base64.parse(t),a=m.enc.Hex.stringify(o);return(0,r[e].proc)(a,i,n)};return{version:"1.0.0",parsePKCS5PEM:function(t){return o(t)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(t,e,i){return a(t,e,i)},decryptKeyB64:function(t,e,i,n){return s(t,e,i,n)},getDecryptedKeyHex:function(t,e){var i=o(t),n=i.cipher,r=i.ivsalt,u=i.data,c=a(n,e,r).keyhex;return s(u,n,c,r)},getEncryptedPKCS5PEMFromPrvKeyHex:function(t,e,i,n,o){var s="";if(void 0!==n&&null!=n||(n="AES-256-CBC"),void 0===r[n])throw"KEYUTIL unsupported algorithm: "+n;return void 0!==o&&null!=o||(o=function(t){var e=m.lib.WordArray.random(t);return m.enc.Hex.stringify(e)}(r[n].ivlen).toUpperCase()),s="-----BEGIN "+t+" PRIVATE KEY-----\r\n",s+="Proc-Type: 4,ENCRYPTED\r\n",s+="DEK-Info: "+n+","+o+"\r\n",s+="\r\n",(s+=function(t,e,i,n){return(0,r[e].eproc)(t,i,n)}(e,n,a(n,i,o).keyhex,o).replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+t+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(e){var i=dt.getChildIdx,n=dt.getV,r={},o=i(e,0);if(2!=o.length)throw"malformed format: SEQUENCE(0).items != 2: "+o.length;r.ciphertext=n(e,o[1]);var a=i(e,o[0]);if(2!=a.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+a.length;if("2a864886f70d01050d"!=n(e,a[0]))throw"this only supports pkcs5PBES2";var s=i(e,a[1]);if(2!=a.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+s.length;var u=i(e,s[1]);if(2!=u.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+u.length;if("2a864886f70d0307"!=n(e,u[0]))throw"this only supports TripleDES";r.encryptionSchemeAlg="TripleDES",r.encryptionSchemeIV=n(e,u[1]);var c=i(e,s[0]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+c.length;if("2a864886f70d01050c"!=n(e,c[0]))throw"this only supports pkcs5PBKDF2";var l=i(e,c[1]);if(l.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+l.length;r.pbkdf2Salt=n(e,l[0]);var h=n(e,l[1]);try{r.pbkdf2Iter=parseInt(h,16)}catch(t){throw"malformed format pbkdf2Iter: "+h}return r},getPBKDF2KeyHexFromParam:function(t,e){var i=m.enc.Hex.parse(t.pbkdf2Salt),n=m.PBKDF2(e,i,{keySize:6,iterations:t.pbkdf2Iter});return m.enc.Hex.stringify(n)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(t,e){var i=Rt(t,"ENCRYPTED PRIVATE KEY"),n=this.parseHexOfEncryptedPKCS8(i),r=Zt.getPBKDF2KeyHexFromParam(n,e),o={};o.ciphertext=m.enc.Hex.parse(n.ciphertext);var a=m.enc.Hex.parse(r),s=m.enc.Hex.parse(n.encryptionSchemeIV),u=m.TripleDES.decrypt(o,a,{iv:s});return m.enc.Hex.stringify(u)},getKeyFromEncryptedPKCS8PEM:function(t,e){var i=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(t,e);return this.getKeyFromPlainPrivatePKCS8Hex(i)},parsePlainPrivatePKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,r={algparam:null};if("30"!=t.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var o=i(t,0);if(3!=o.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=t.substr(o[1],2))throw"malformed PKCS8 private key(code:003)";var a=i(t,o[1]);if(2!=a.length)throw"malformed PKCS8 private key(code:004)";if("06"!=t.substr(a[0],2))throw"malformed PKCS8 private key(code:005)";if(r.algoid=n(t,a[0]),"06"==t.substr(a[1],2)&&(r.algparam=n(t,a[1])),"04"!=t.substr(o[2],2))throw"malformed PKCS8 private key(code:006)";return r.keyidx=e.getVidx(t,o[2]),r},getKeyFromPlainPrivatePKCS8PEM:function(t){var e=Rt(t,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(e)},getKeyFromPlainPrivatePKCS8Hex:function(t){var e,i=this.parsePlainPrivatePKCS8Hex(t);if("2a864886f70d010101"==i.algoid)e=new rt;else if("2a8648ce380401"==i.algoid)e=new ct.crypto.DSA;else{if("2a8648ce3d0201"!=i.algoid)throw"unsupported private key algorithm";e=new ct.crypto.ECDSA}return e.readPKCS8PrvKeyHex(t),e},_getKeyFromPublicPKCS8Hex:function(t){var e,i=dt.getVbyList(t,0,[0,0],"06");if("2a864886f70d010101"===i)e=new rt;else if("2a8648ce380401"===i)e=new ct.crypto.DSA;else{if("2a8648ce3d0201"!==i)throw"unsupported PKCS#8 public key hex";e=new ct.crypto.ECDSA}return e.readPKCS8PubKeyHex(t),e},parsePublicRawRSAKeyHex:function(t){var e=dt.getChildIdx,i=dt.getV,n={};if("30"!=t.substr(0,2))throw"malformed RSA key(code:001)";var r=e(t,0);if(2!=r.length)throw"malformed RSA key(code:002)";if("02"!=t.substr(r[0],2))throw"malformed RSA key(code:003)";if(n.n=i(t,r[0]),"02"!=t.substr(r[1],2))throw"malformed RSA key(code:004)";return n.e=i(t,r[1]),n},parsePublicPKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,r={algparam:null},o=i(t,0);if(2!=o.length)throw"outer DERSequence shall have 2 elements: "+o.length;var a=o[0];if("30"!=t.substr(a,2))throw"malformed PKCS8 public key(code:001)";var s=i(t,a);if(2!=s.length)throw"malformed PKCS8 public key(code:002)";if("06"!=t.substr(s[0],2))throw"malformed PKCS8 public key(code:003)";if(r.algoid=n(t,s[0]),"06"==t.substr(s[1],2)?r.algparam=n(t,s[1]):"30"==t.substr(s[1],2)&&(r.algparam={},r.algparam.p=e.getVbyList(t,s[1],[0],"02"),r.algparam.q=e.getVbyList(t,s[1],[1],"02"),r.algparam.g=e.getVbyList(t,s[1],[2],"02")),"03"!=t.substr(o[1],2))throw"malformed PKCS8 public key(code:004)";return r.key=n(t,o[1]).substr(2),r}}}();Zt.getKey=function(t,e,i){var n,r=(m=dt).getChildIdx,o=m.getVbyList,a=ct.crypto,s=a.ECDSA,u=a.DSA,c=rt,l=Rt,h=Zt;if(void 0!==c&&t instanceof c)return t;if(void 0!==s&&t instanceof s)return t;if(void 0!==u&&t instanceof u)return t;if(void 0!==t.curve&&void 0!==t.xy&&void 0===t.d)return new s({pub:t.xy,curve:t.curve});if(void 0!==t.curve&&void 0!==t.d)return new s({prv:t.d,curve:t.curve});if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(R=new c).setPublic(t.n,t.e),R;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.co&&void 0===t.qi)return(R=new c).setPrivateEx(t.n,t.e,t.d,t.p,t.q,t.dp,t.dq,t.co),R;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0===t.p)return(R=new c).setPrivate(t.n,t.e,t.d),R;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0===t.x)return(R=new u).setPublic(t.p,t.q,t.g,t.y),R;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0!==t.x)return(R=new u).setPrivate(t.p,t.q,t.g,t.y,t.x),R;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(R=new c).setPublic(wt(t.n),wt(t.e)),R;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.qi)return(R=new c).setPrivateEx(wt(t.n),wt(t.e),wt(t.d),wt(t.p),wt(t.q),wt(t.dp),wt(t.dq),wt(t.qi)),R;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d)return(R=new c).setPrivate(wt(t.n),wt(t.e),wt(t.d)),R;if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0===t.d){var d=(x=new s({curve:t.crv})).ecparams.keylen/4,f="04"+("0000000000"+wt(t.x)).slice(-d)+("0000000000"+wt(t.y)).slice(-d);return x.setPublicKeyHex(f),x}if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0!==t.d){d=(x=new s({curve:t.crv})).ecparams.keylen/4,f="04"+("0000000000"+wt(t.x)).slice(-d)+("0000000000"+wt(t.y)).slice(-d);var p=("0000000000"+wt(t.d)).slice(-d);return x.setPublicKeyHex(f),x.setPrivateKeyHex(p),x}if("pkcs5prv"===i){var g,v=t,m=dt;if(9===(g=r(v,0)).length)(R=new c).readPKCS5PrvKeyHex(v);else if(6===g.length)(R=new u).readPKCS5PrvKeyHex(v);else{if(!(g.length>2&&"04"===v.substr(g[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(R=new s).readPKCS5PrvKeyHex(v)}return R}if("pkcs8prv"===i)return h.getKeyFromPlainPrivatePKCS8Hex(t);if("pkcs8pub"===i)return h._getKeyFromPublicPKCS8Hex(t);if("x509pub"===i)return jt.getPublicKeyFromCertHex(t);if(-1!=t.indexOf("-END CERTIFICATE-",0)||-1!=t.indexOf("-END X509 CERTIFICATE-",0)||-1!=t.indexOf("-END TRUSTED CERTIFICATE-",0))return jt.getPublicKeyFromCertPEM(t);if(-1!=t.indexOf("-END PUBLIC KEY-")){var y=Rt(t,"PUBLIC KEY");return h._getKeyFromPublicPKCS8Hex(y)}if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var b=l(t,"RSA PRIVATE KEY");return h.getKey(b,null,"pkcs5prv")}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var w=o(n=l(t,"DSA PRIVATE KEY"),0,[1],"02"),_=o(n,0,[2],"02"),A=o(n,0,[3],"02"),T=o(n,0,[4],"02"),C=o(n,0,[5],"02");return(R=new u).setPrivate(new k(w,16),new k(_,16),new k(A,16),new k(T,16),new k(C,16)),R}if(-1!=t.indexOf("-END PRIVATE KEY-"))return h.getKeyFromPlainPrivatePKCS8PEM(t);if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var S=h.getDecryptedKeyHex(t,e),E=new rt;return E.readPKCS5PrvKeyHex(S),E}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var x,R=o(n=h.getDecryptedKeyHex(t,e),0,[1],"04"),I=o(n,0,[2,0],"06"),O=o(n,0,[3,0],"03").substr(2);if(void 0===ct.crypto.OID.oidhex2name[I])throw"undefined OID(hex) in KJUR.crypto.OID: "+I;return(x=new s({curve:ct.crypto.OID.oidhex2name[I]})).setPublicKeyHex(O),x.setPrivateKeyHex(R),x.isPublic=!1,x}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED"))return w=o(n=h.getDecryptedKeyHex(t,e),0,[1],"02"),_=o(n,0,[2],"02"),A=o(n,0,[3],"02"),T=o(n,0,[4],"02"),C=o(n,0,[5],"02"),(R=new u).setPrivate(new k(w,16),new k(_,16),new k(A,16),new k(T,16),new k(C,16)),R;if(-1!=t.indexOf("-END ENCRYPTED PRIVATE KEY-"))return h.getKeyFromEncryptedPKCS8PEM(t,e);throw"not supported argument"},Zt.generateKeypair=function(t,e){if("RSA"==t){var i=e;(a=new rt).generate(i,"10001"),a.isPrivate=!0,a.isPublic=!0;var n=new rt,r=a.n.toString(16),o=a.e.toString(16);return n.setPublic(r,o),n.isPrivate=!1,n.isPublic=!0,(s={}).prvKeyObj=a,s.pubKeyObj=n,s}if("EC"==t){var a,s,u=e,c=new ct.crypto.ECDSA({curve:u}).generateKeyPairHex();return(a=new ct.crypto.ECDSA({curve:u})).setPublicKeyHex(c.ecpubhex),a.setPrivateKeyHex(c.ecprvhex),a.isPrivate=!0,a.isPublic=!1,(n=new ct.crypto.ECDSA({curve:u})).setPublicKeyHex(c.ecpubhex),n.isPrivate=!1,n.isPublic=!0,(s={}).prvKeyObj=a,s.pubKeyObj=n,s}throw"unknown algorithm: "+t},Zt.getPEM=function(t,e,i,n,r,o){var a=ct.asn1,s=a.DERObjectIdentifier,u=a.DERInteger,c=a.ASN1Util.newObject,l=ct.crypto,h=l.DSA,d=l.ECDSA,f=rt;function p(t){return c({seq:[{int:0},{int:{bigint:t.n}},{int:t.e},{int:{bigint:t.d}},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.dmp1}},{int:{bigint:t.dmq1}},{int:{bigint:t.coeff}}]})}function g(t){return c({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a0",!0,{oid:{name:t.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]})}function v(t){return c({seq:[{int:0},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}},{int:{bigint:t.y}},{int:{bigint:t.x}}]})}if((void 0!==f&&t instanceof f||void 0!==h&&t instanceof h||void 0!==d&&t instanceof d)&&1==t.isPublic&&(void 0===e||"PKCS8PUB"==e))return xt(_=new(0,a.x509.SubjectPublicKeyInfo)(t).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==e&&void 0!==f&&t instanceof f&&(void 0===i||null==i)&&1==t.isPrivate)return xt(_=p(t).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==e&&void 0!==d&&t instanceof d&&(void 0===i||null==i)&&1==t.isPrivate){var y=new s({name:t.curveName}).getEncodedHex(),b=g(t).getEncodedHex(),w="";return(w+=xt(y,"EC PARAMETERS"))+xt(b,"EC PRIVATE KEY")}if("PKCS1PRV"==e&&void 0!==h&&t instanceof h&&(void 0===i||null==i)&&1==t.isPrivate)return xt(_=v(t).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==e&&void 0!==f&&t instanceof f&&void 0!==i&&null!=i&&1==t.isPrivate){var _=p(t).getEncodedHex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",_,i,n,o)}if("PKCS5PRV"==e&&void 0!==d&&t instanceof d&&void 0!==i&&null!=i&&1==t.isPrivate)return _=g(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",_,i,n,o);if("PKCS5PRV"==e&&void 0!==h&&t instanceof h&&void 0!==i&&null!=i&&1==t.isPrivate)return _=v(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",_,i,n,o);var A=function(t,e){var i=k(t,e);return new c({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:i.pbkdf2Salt}},{int:i.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:i.encryptionSchemeIV}}]}]}]},{octstr:{hex:i.ciphertext}}]}).getEncodedHex()},k=function(t,e){var i=m.lib.WordArray.random(8),n=m.lib.WordArray.random(8),r=m.PBKDF2(e,i,{keySize:6,iterations:100}),o=m.enc.Hex.parse(t),a=m.TripleDES.encrypt(o,r,{iv:n})+"",s={};return s.ciphertext=a,s.pbkdf2Salt=m.enc.Hex.stringify(i),s.pbkdf2Iter=100,s.encryptionSchemeAlg="DES-EDE3-CBC",s.encryptionSchemeIV=m.enc.Hex.stringify(n),s};if("PKCS8PRV"==e&&null!=f&&t instanceof f&&1==t.isPrivate){var T=p(t).getEncodedHex();return _=c({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?xt(_,"PRIVATE KEY"):xt(b=A(_,i),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==e&&void 0!==d&&t instanceof d&&1==t.isPrivate)return T=new c({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]}).getEncodedHex(),_=c({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:t.curveName}}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?xt(_,"PRIVATE KEY"):xt(b=A(_,i),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==e&&void 0!==h&&t instanceof h&&1==t.isPrivate)return T=new u({bigint:t.x}).getEncodedHex(),_=c({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}}]}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?xt(_,"PRIVATE KEY"):xt(b=A(_,i),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},Zt.getKeyFromCSRPEM=function(t){var e=Rt(t,"CERTIFICATE REQUEST");return Zt.getKeyFromCSRHex(e)},Zt.getKeyFromCSRHex=function(t){var e=Zt.parseCSRHex(t);return Zt.getKey(e.p8pubkeyhex,null,"pkcs8pub")},Zt.parseCSRHex=function(t){var e=dt.getChildIdx,i=dt.getTLV,n={},r=t;if("30"!=r.substr(0,2))throw"malformed CSR(code:001)";var o=e(r,0);if(o.length<1)throw"malformed CSR(code:002)";if("30"!=r.substr(o[0],2))throw"malformed CSR(code:003)";var a=e(r,o[0]);if(a.length<3)throw"malformed CSR(code:004)";return n.p8pubkeyhex=i(r,a[2]),n},Zt.getJWKFromKey=function(t){var e={};if(t instanceof rt&&t.isPrivate)return e.kty="RSA",e.n=bt(t.n.toString(16)),e.e=bt(t.e.toString(16)),e.d=bt(t.d.toString(16)),e.p=bt(t.p.toString(16)),e.q=bt(t.q.toString(16)),e.dp=bt(t.dmp1.toString(16)),e.dq=bt(t.dmq1.toString(16)),e.qi=bt(t.coeff.toString(16)),e;if(t instanceof rt&&t.isPublic)return e.kty="RSA",e.n=bt(t.n.toString(16)),e.e=bt(t.e.toString(16)),e;if(t instanceof ct.crypto.ECDSA&&t.isPrivate){if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;var i=t.getPublicKeyXYHex();return e.kty="EC",e.crv=n,e.x=bt(i.x),e.y=bt(i.y),e.d=bt(t.prvKeyHex),e}if(t instanceof ct.crypto.ECDSA&&t.isPublic){var n;if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;return i=t.getPublicKeyXYHex(),e.kty="EC",e.crv=n,e.x=bt(i.x),e.y=bt(i.y),e}throw"not supported key object"},rt.getPosArrayOfChildrenFromHex=function(t){return dt.getChildIdx(t,0)},rt.getHexValueArrayOfChildrenFromHex=function(t){var e,i=dt.getV,n=i(t,(e=rt.getPosArrayOfChildrenFromHex(t))[0]),r=i(t,e[1]),o=i(t,e[2]),a=i(t,e[3]),s=i(t,e[4]),u=i(t,e[5]),c=i(t,e[6]),l=i(t,e[7]),h=i(t,e[8]);return(e=new Array).push(n,r,o,a,s,u,c,l,h),e},rt.prototype.readPrivateKeyFromPEMString=function(t){var e=Rt(t),i=rt.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8])},rt.prototype.readPKCS5PrvKeyHex=function(t){var e=rt.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},rt.prototype.readPKCS8PrvKeyHex=function(t){var e,i,n,r,o,a,s,u,c=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=c(t,0,[2,0,1],"02"),i=c(t,0,[2,0,2],"02"),n=c(t,0,[2,0,3],"02"),r=c(t,0,[2,0,4],"02"),o=c(t,0,[2,0,5],"02"),a=c(t,0,[2,0,6],"02"),s=c(t,0,[2,0,7],"02"),u=c(t,0,[2,0,8],"02")}catch(t){throw"malformed PKCS#8 plain RSA private key"}this.setPrivateEx(e,i,n,r,o,a,s,u)},rt.prototype.readPKCS5PubKeyHex=function(t){var e=dt,i=e.getV;if(!1===e.isASN1HEX(t))throw"keyHex is not ASN.1 hex string";var n=e.getChildIdx(t,0);if(2!==n.length||"02"!==t.substr(n[0],2)||"02"!==t.substr(n[1],2))throw"wrong hex for PKCS#5 public key";var r=i(t,n[0]),o=i(t,n[1]);this.setPublic(r,o)},rt.prototype.readPKCS8PubKeyHex=function(t){var e=dt;if(!1===e.isASN1HEX(t))throw"not ASN.1 hex string";if("06092a864886f70d010101"!==e.getTLVbyList(t,0,[0,0]))throw"not PKCS8 RSA public key";var i=e.getTLVbyList(t,0,[1,0]);this.readPKCS5PubKeyHex(i)},rt.prototype.readCertPubKeyHex=function(t,e){var i,n;(i=new jt).readCertHex(t),n=i.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)};var Bt=new RegExp("");function qt(t,e){for(var i="",n=e/4-t.length,r=0;r>24,(16711680&r)>>16,(65280&r)>>8,255&r])))),r+=1;return n}function Ht(t){for(var e in ct.crypto.Util.DIGESTINFOHEAD){var i=ct.crypto.Util.DIGESTINFOHEAD[e],n=i.length;if(t.substring(0,n)==i)return[e,t.substring(n)]}return[]}function jt(){var t=dt,e=t.getChildIdx,i=t.getV,n=t.getTLV,r=t.getVbyList,o=t.getTLVbyList,a=t.getIdxbyList,s=t.getVidx,u=t.oidname,c=jt,l=Rt;this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==o(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return r(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){return u(r(this.hex,0,[0,2+this.foffset,0],"06"))},this.getIssuerHex=function(){return o(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return c.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return o(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return c.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var t=r(this.hex,0,[0,4+this.foffset,0]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getNotAfter=function(){var t=r(this.hex,0,[0,4+this.foffset,1]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getPublicKeyHex=function(){return t.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return a(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var t=this.getPublicKeyIdx();return a(this.hex,t,[1,0],"30")},this.getPublicKey=function(){return Zt.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return u(r(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return r(this.hex,0,[2],"03",!0)},this.verifySignature=function(t){var e=this.getSignatureAlgorithmName(),i=this.getSignatureValueHex(),n=o(this.hex,0,[0],"30"),r=new ct.crypto.Signature({alg:e});return r.init(t),r.updateHex(n),r.verify(i)},this.parseExt=function(){if(3!==this.version)return-1;var i=a(this.hex,0,[0,7,0],"30"),n=e(this.hex,i);this.aExtInfo=new Array;for(var o=0;o0&&(c=new Array(i),(new et).nextBytes(c),c=String.fromCharCode.apply(String,c));var l=kt(u(Tt("\0\0\0\0\0\0\0\0"+r+c))),h=[];for(n=0;n>8*s-a&255),n=0;nthis.n.bitLength())return 0;var n=Ht(this.doPublic(i).toString(16).replace(/^1f+00/,""));if(0==n.length)return!1;var r=n[0];return n[1]==function(t){return ct.crypto.Util.hashString(t,r)}(t)},rt.prototype.verifyWithMessageHash=function(t,e){var i=it(e=(e=e.replace(Bt,"")).replace(/[ \n]+/g,""),16);if(i.bitLength()>this.n.bitLength())return 0;var n=Ht(this.doPublic(i).toString(16).replace(/^1f+00/,""));return 0!=n.length&&n[1]==t},rt.prototype.verifyPSS=function(t,e,i,n){var r=function(t){return ct.crypto.Util.hashHex(t,i)}(Tt(t));return void 0===n&&(n=-1),this.verifyWithMessageHashPSS(r,e,i,n)},rt.prototype.verifyWithMessageHashPSS=function(t,e,i,n){var r=new k(e,16);if(r.bitLength()>this.n.bitLength())return!1;var o,a=function(t){return ct.crypto.Util.hashHex(t,i)},s=kt(t),u=s.length,c=this.n.bitLength()-1,l=Math.ceil(c/8);if(-1===n||void 0===n)n=u;else if(-2===n)n=l-u-2;else if(n<-2)throw"invalid salt length";if(l>8*l-c&255;if(0!=(d.charCodeAt(0)&p))throw"bits beyond keysize not zero";var g=Ut(f,d.length,a),v=[];for(o=0;o0&&-1==(":"+n.join(":")+":").indexOf(":"+v+":"))throw"algorithm '"+v+"' not accepted in the list";if("none"!=v&&null===e)throw"key shall be specified to verify.";if("string"==typeof e&&-1!=e.indexOf("-----BEGIN ")&&(e=Zt.getKey(e)),!("RS"!=d&&"PS"!=d||e instanceof r))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==d&&!(e instanceof u))throw"key shall be a ECDSA obj for ES* algs";var m=null;if(void 0===o.jwsalg2sigalg[g.alg])throw"unsupported alg name: "+v;if("none"==(m=o.jwsalg2sigalg[v]))throw"not supported";if("Hmac"==m.substr(0,4)){if(void 0===e)throw"hexadecimal key shall be specified for HMAC";var y=new c({alg:m,pass:e});return y.updateString(f),p==y.doFinal()}if(-1!=m.indexOf("withECDSA")){var b,w=null;try{w=u.concatSigToASN1Sig(p)}catch(t){return!1}return(b=new l({alg:m})).init(e),b.updateString(f),b.verify(w)}return(b=new l({alg:m})).init(e),b.updateString(f),b.verify(p)},ct.jws.JWS.parse=function(t){var e,i,n=t.split("."),r={};if(2!=n.length&&3!=n.length)throw"malformed sJWS: wrong number of '.' splitted elements";return e=n[1],3==n.length&&(i=n[2]),r.headerObj=ct.jws.JWS.readSafeJSONString(ht(n[0])),r.payloadObj=ct.jws.JWS.readSafeJSONString(ht(e)),r.headerPP=JSON.stringify(r.headerObj,null," "),r.payloadPP=null==r.payloadObj?ht(e):JSON.stringify(r.payloadObj,null," "),void 0!==i&&(r.sigHex=wt(i)),r},ct.jws.JWS.verifyJWT=function(t,e,n){var r=ct.jws,o=r.JWS,a=o.readSafeJSONString,s=o.inArray,u=o.includedArray,c=t.split("."),l=c[0],h=c[1],d=(wt(c[2]),a(ht(l))),f=a(ht(h));if(void 0===d.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!s(d.alg,n.alg))return!1;if(void 0!==f.iss&&"object"===i(n.iss)&&!s(f.iss,n.iss))return!1;if(void 0!==f.sub&&"object"===i(n.sub)&&!s(f.sub,n.sub))return!1;if(void 0!==f.aud&&"object"===i(n.aud))if("string"==typeof f.aud){if(!s(f.aud,n.aud))return!1}else if("object"==i(f.aud)&&!u(f.aud,n.aud))return!1;var p=r.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(p=n.verifyAt),void 0!==n.gracePeriod&&"number"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==f.exp&&"number"==typeof f.exp&&f.exp+n.gracePeriode.length&&(i=e.length);for(var n=0;n=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return q(t).length;default:if(n)return B(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function v(t,e,i,n,r){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:m(t,e,i,n,r);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):m(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function m(t,e,i,n,r){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,i/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var l=-1;for(o=i;os&&(i=s-u),o=i;o>=0;o--){for(var h=!0,d=0;dr&&(n=r):n=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,r.push(i%256),r.push(n);return r}(e,t.length-i),t,i,n)}function T(t,e,i){return n.fromByteArray(0===e&&i===t.length?t:t.slice(e,i))}function C(t,e,i){i=Math.min(t.length,i);for(var n=[],r=e;r239?4:c>223?3:c>191?2:1;if(r+h<=i)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[r+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:a=t[r+2],128==(192&(o=t[r+1]))&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:a=t[r+2],s=t[r+3],128==(192&(o=t[r+1]))&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(n.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),n.push(l),r+=h}return function(t){var e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);for(var i="",n=0;nthis.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,i);case"utf8":case"utf-8":return C(this,e,i);case"ascii":return E(this,e,i);case"latin1":case"binary":return x(this,e,i);case"base64":return T(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}).apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),""},u.prototype.compare=function(t,e,i,n,r){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(n>>>=0),a=(i>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(n,r),l=t.slice(e,i),h=0;hr)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return y(this,t,e,i);case"utf8":case"utf-8":return b(this,t,e,i);case"ascii":return w(this,t,e,i);case"latin1":case"binary":return _(this,t,e,i);case"base64":return A(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function E(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;rn)&&(i=n);for(var r="",o=e;oi)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,i,n,r,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function D(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-i,2);r>>8*(n?r:1-r)}function M(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r>>8*(n?r:3-r)&255}function L(t,e,i,n,r,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function N(t,e,i,n,o){return o||L(t,0,i,4),r.write(t,e,i,n,23,4),i+4}function z(t,e,i,n,o){return o||L(t,0,i,8),r.write(t,e,i,n,52,8),i+8}u.prototype.slice=function(t,e){var i,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(r*=256);)n+=this[t+--e]*r;return n},u.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||O(t,e,this.length);for(var n=this[t],r=1,o=0;++o=(r*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||O(t,e,this.length);for(var n=e,r=1,o=this[t+--n];n>0&&(r*=256);)o+=this[t+--n]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},u.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},u.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),r.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),r.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),r.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),r.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,i,n){t=+t,e|=0,i|=0,n||P(this,t,e,i,Math.pow(2,8*i)-1,0);var r=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+r]=t/o&255;return e+i},u.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):M(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);P(this,t,e,i,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+i},u.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);P(this,t,e,i,r-1,-r)}var o=i-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},u.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):M(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,i){return N(this,t,e,!0,i)},u.prototype.writeFloatBE=function(t,e,i){return N(this,t,e,!1,i)},u.prototype.writeDoubleLE=function(t,e,i){return z(this,t,e,!0,i)},u.prototype.writeDoubleBE=function(t,e,i){return z(this,t,e,!1,i)},u.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--r)t[r+e]=this[r+i];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function q(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,i,n){for(var r=0;r=e.length||r>=t.length);++r)e[r+i]=t[r];return r}}).call(this,i(28))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";e.byteLength=function(t){var e=c(t),i=e[1];return 3*(e[0]+i)/4-i},e.toByteArray=function(t){for(var e,i=c(t),n=i[0],a=i[1],s=new o(function(t,e,i){return 3*(e+i)/4-i}(0,n,a)),u=0,l=a>0?n-4:n,h=0;h>16&255,s[u++]=e>>8&255,s[u++]=255&e;return 2===a&&(e=r[t.charCodeAt(h)]<<2|r[t.charCodeAt(h+1)]>>4,s[u++]=255&e),1===a&&(e=r[t.charCodeAt(h)]<<10|r[t.charCodeAt(h+1)]<<4|r[t.charCodeAt(h+2)]>>2,s[u++]=e>>8&255,s[u++]=255&e),s},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,o=[],a=0,s=i-r;as?s:a+16383));return 1===r?o.push(n[(e=t[i-1])>>2]+n[e<<4&63]+"=="):2===r&&o.push(n[(e=(t[i-2]<<8)+t[i-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),o.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function l(t,e,i){for(var r,o=[],a=e;a>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,i,n,r){var o,a,s=8*r-n-1,u=(1<>1,l=-7,h=i?r-1:0,d=i?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+t[e+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=c}return(f?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var a,s,u,c=8*o-r-1,l=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-1)*Math.pow(2,r),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;t[i+f]=255&s,f+=p,s/=256,r-=8);for(a=a<0;t[i+f]=255&a,f+=p,a/=256,c-=8);t[i+f-p]|=128*g}},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.jws,i=t.KeyUtil,r=t.X509,o=t.crypto,a=t.hextob64u,s=t.b64tohex,u=t.AllowedSigningAlgs;return function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.parseJwt=function t(i){n.Log.debug("JoseUtil.parseJwt");try{var r=e.JWS.parse(i);return{header:r.headerObj,payload:r.payloadObj}}catch(t){n.Log.error(t)}},t.validateJwt=function(e,o,a,u,c,l,h){n.Log.debug("JoseUtil.validateJwt");try{if("RSA"===o.kty)if(o.e&&o.n)o=i.getKey(o);else{if(!o.x5c||!o.x5c.length)return n.Log.error("JoseUtil.validateJwt: RSA key missing key material",o),Promise.reject(new Error("RSA key missing key material"));var d=s(o.x5c[0]);o=r.getPublicKeyFromCertHex(d)}else{if("EC"!==o.kty)return n.Log.error("JoseUtil.validateJwt: Unsupported key type",o&&o.kty),Promise.reject(new Error(o.kty));if(!(o.crv&&o.x&&o.y))return n.Log.error("JoseUtil.validateJwt: EC key missing key material",o),Promise.reject(new Error("EC key missing key material"));o=i.getKey(o)}return t._validateJwt(e,o,a,u,c,l,h)}catch(t){return n.Log.error(t&&t.message||t),Promise.reject("JWT validation failed")}},t.validateJwtAttributes=function(e,i,r,o,a,s){o||(o=0),a||(a=parseInt(Date.now()/1e3));var u=t.parseJwt(e).payload;if(!u.iss)return n.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(u.iss!==i)return n.Log.error("JoseUtil._validateJwt: Invalid issuer in token",u.iss),Promise.reject(new Error("Invalid issuer in token: "+u.iss));if(!u.aud)return n.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(u.aud===r||Array.isArray(u.aud)&&u.aud.indexOf(r)>=0))return n.Log.error("JoseUtil._validateJwt: Invalid audience in token",u.aud),Promise.reject(new Error("Invalid audience in token: "+u.aud));if(u.azp&&u.azp!==r)return n.Log.error("JoseUtil._validateJwt: Invalid azp in token",u.azp),Promise.reject(new Error("Invalid azp in token: "+u.azp));if(!s){var c=a+o,l=a-o;if(!u.iat)return n.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(c>>((3&e)<<3)&255;return r}}},function(t,e){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninResponse=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"#";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=r.UrlUtility.parseUrlFragment(e,i);this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.code=n.code,this.state=n.state,this.id_token=n.id_token,this.session_state=n.session_state,this.access_token=n.access_token,this.token_type=n.token_type,this.scope=n.scope,this.profile=void 0,this.expires_in=n.expires_in}return n(t,[{key:"expires_in",get:function(){if(this.expires_at){var t=parseInt(Date.now()/1e3);return this.expires_at-t}},set:function(t){var e=parseInt(t);if("number"==typeof e&&e>0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutRequest=void 0;var n=i(0),r=i(3),o=i(8);e.SignoutRequest=function t(e){var i=e.url,a=e.id_token_hint,s=e.post_logout_redirect_uri,u=e.data,c=e.extraQueryParams,l=e.request_type;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var h in a&&(i=r.UrlUtility.addQueryParam(i,"id_token_hint",a)),s&&(i=r.UrlUtility.addQueryParam(i,"post_logout_redirect_uri",s),u&&(this.state=new o.State({data:u,request_type:l}),i=r.UrlUtility.addQueryParam(i,"state",this.state.id))),c)i=r.UrlUtility.addQueryParam(i,h,c[h]);this.url=i}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutResponse=void 0;var n=i(3);e.SignoutResponse=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=n.UrlUtility.parseUrlFragment(e,"?");this.error=i.error,this.error_description=i.error_description,this.error_uri=i.error_uri,this.state=i.state}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryWebStorage=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.SilentRenewService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.SessionMonitor,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.TokenRevocationClient,p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d.TokenClient,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:f.JoseUtil;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i instanceof a.UserManagerSettings||(i=new a.UserManagerSettings(i));var v=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return v._events=new u.UserManagerEvents(i),v._silentRenewService=new n(v),v.settings.automaticSilentRenew&&(r.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),v.startSilentRenew()),v.settings.monitorSession&&(r.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),v._sessionMonitor=new o(v)),v._tokenRevocationClient=new s(v._settings),v._tokenClient=new p(v._settings),v._joseUtil=g,v}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getUser=function(){var t=this;return this._loadUser().then(function(e){return e?(r.Log.info("UserManager.getUser: user loaded"),t._events.load(e,!1),e):(r.Log.info("UserManager.getUser: user not found in storage"),null)})},e.prototype.removeUser=function(){var t=this;return this.storeUser(null).then(function(){r.Log.info("UserManager.removeUser: user removed from storage"),t._events.unload()})},e.prototype.signinRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:r";var e={useReplaceToNavigate:t.useReplaceToNavigate};return this._signinStart(t,this._redirectNavigator,e).then(function(){r.Log.info("UserManager.signinRedirect: successful")})},e.prototype.signinRedirectCallback=function(t){return this._signinEnd(t||this._redirectNavigator.url).then(function(t){return t.profile&&t.profile.sub?r.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",t.profile.sub):r.Log.info("UserManager.signinRedirectCallback: no sub"),t})},e.prototype.signinPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:p";var e=t.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.display="popup",this._signin(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(t){return t&&(t.profile&&t.profile.sub?r.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",t.profile.sub):r.Log.info("UserManager.signinPopup: no sub")),t})):(r.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},e.prototype.signinPopupCallback=function(t){return this._signinCallback(t,this._popupNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?r.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",t.profile.sub):r.Log.info("UserManager.signinPopupCallback: no sub")),t}).catch(function(t){r.Log.error(t.message)})},e.prototype.signinSilent=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).request_type="si:s",this._loadUser().then(function(i){return i&&i.refresh_token?(e.refresh_token=i.refresh_token,t._useRefreshToken(e)):(e.id_token_hint=e.id_token_hint||t.settings.includeIdTokenInSilentRenew&&i&&i.id_token,i&&t._settings.validateSubOnSilentRenew&&(r.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",i.profile.sub),e.current_sub=i.profile.sub),t._signinSilentIframe(e))})},e.prototype._useRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(e).then(function(e){return e?e.access_token?t._loadUser().then(function(i){if(i){var n=Promise.resolve();return e.id_token&&(n=t._validateIdTokenFromTokenRefreshToken(i.profile,e.id_token)),n.then(function(){return r.Log.debug("UserManager._useRefreshToken: refresh token response success"),i.id_token=e.id_token,i.access_token=e.access_token,i.refresh_token=e.refresh_token||i.refresh_token,i.expires_in=e.expires_in,t.storeUser(i).then(function(){return t._events.load(i),i})})}return null}):(r.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(r.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))})},e.prototype._validateIdTokenFromTokenRefreshToken=function(t,e){var i=this;return this._metadataService.getIssuer().then(function(n){return i._joseUtil.validateJwtAttributes(e,n,i._settings.client_id,i._settings.clockSkew).then(function(e){return e?e.sub!==t.sub?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):e.auth_time&&e.auth_time!==t.auth_time?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):e.azp&&e.azp!==t.azp?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!e.azp&&t.azp?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))})})},e.prototype._signinSilentIframe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.prompt=t.prompt||"none",this._signin(t,this._iframeNavigator,{startUrl:e,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(t){return t&&(t.profile&&t.profile.sub?r.Log.info("UserManager.signinSilent: successful, signed in sub: ",t.profile.sub):r.Log.info("UserManager.signinSilent: no sub")),t})):(r.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype.signinSilentCallback=function(t){return this._signinCallback(t,this._iframeNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?r.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",t.profile.sub):r.Log.info("UserManager.signinSilentCallback: no sub")),t})},e.prototype.signinCallback=function(t){var e=this;return this.readSigninResponseState(t).then(function(i){var n=i.state;return"si:r"===n.request_type?e.signinRedirectCallback(t):"si:p"===n.request_type?e.signinPopupCallback(t):"si:s"===n.request_type?e.signinSilentCallback(t):Promise.reject(new Error("invalid response_type in state"))})},e.prototype.signoutCallback=function(t,e){var i=this;return this.readSignoutResponseState(t).then(function(n){var r=n.state,o=n.response;return r?"so:r"===r.request_type?i.signoutRedirectCallback(t):"so:p"===r.request_type?i.signoutPopupCallback(t,e):Promise.reject(new Error("invalid response_type in state")):o})},e.prototype.querySessionStatus=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:s";var i=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return i?(e.redirect_uri=i,e.prompt="none",e.response_type=e.response_type||this.settings.query_status_response_type,e.scope=e.scope||"openid",e.skipUserInfo=!0,this._signinStart(e,this._iframeNavigator,{startUrl:i,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(e){return t.processSigninResponse(e.url).then(function(t){if(r.Log.debug("UserManager.querySessionStatus: got signin response"),t.session_state&&t.profile.sub)return r.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",t.profile.sub),{session_state:t.session_state,sub:t.profile.sub,sid:t.profile.sid};r.Log.info("querySessionStatus successful, user not authenticated")}).catch(function(e){if(e.session_state&&t.settings.monitorAnonymousSession&&("login_required"==e.message||"consent_required"==e.message||"interaction_required"==e.message||"account_selection_required"==e.message))return r.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:e.session_state};throw e})})):(r.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype._signin=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(t,e,n).then(function(e){return i._signinEnd(e.url,t)})},e.prototype._signinStart=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.prepare(n).then(function(e){return r.Log.debug("UserManager._signinStart: got navigator window handle"),i.createSigninRequest(t).then(function(t){return r.Log.debug("UserManager._signinStart: got signin request"),n.url=t.url,n.id=t.state.id,e.navigate(n)}).catch(function(t){throw e.close&&(r.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),e.close()),t})})},e.prototype._signinEnd=function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(t).then(function(t){r.Log.debug("UserManager._signinEnd: got signin response");var n=new s.User(t);if(i.current_sub){if(i.current_sub!==n.profile.sub)return r.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",n.profile.sub),Promise.reject(new Error("login_required"));r.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return e.storeUser(n).then(function(){return r.Log.debug("UserManager._signinEnd: user stored"),e._events.load(n),n})})},e.prototype._signinCallback=function(t,e){return r.Log.debug("UserManager._signinCallback"),e.callback(t)},e.prototype.signoutRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:r";var e=t.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;e&&(t.post_logout_redirect_uri=e);var i={useReplaceToNavigate:t.useReplaceToNavigate};return this._signoutStart(t,this._redirectNavigator,i).then(function(){r.Log.info("UserManager.signoutRedirect: successful")})},e.prototype.signoutRedirectCallback=function(t){return this._signoutEnd(t||this._redirectNavigator.url).then(function(t){return r.Log.info("UserManager.signoutRedirectCallback: successful"),t})},e.prototype.signoutPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:p";var e=t.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return t.post_logout_redirect_uri=e,t.display="popup",t.post_logout_redirect_uri&&(t.state=t.state||{}),this._signout(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(){r.Log.info("UserManager.signoutPopup: successful")})},e.prototype.signoutPopupCallback=function(t,e){return void 0===e&&"boolean"==typeof t&&(e=t,t=null),this._popupNavigator.callback(t,e,"?").then(function(){r.Log.info("UserManager.signoutPopupCallback: successful")})},e.prototype._signout=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(t,e,n).then(function(t){return i._signoutEnd(t.url)})},e.prototype._signoutStart=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,i=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.prepare(n).then(function(i){return r.Log.debug("UserManager._signoutStart: got navigator window handle"),e._loadUser().then(function(o){return r.Log.debug("UserManager._signoutStart: loaded current user from storage"),(e._settings.revokeAccessTokenOnSignout?e._revokeInternal(o):Promise.resolve()).then(function(){var a=t.id_token_hint||o&&o.id_token;return a&&(r.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),t.id_token_hint=a),e.removeUser().then(function(){return r.Log.debug("UserManager._signoutStart: user removed, creating signout request"),e.createSignoutRequest(t).then(function(t){return r.Log.debug("UserManager._signoutStart: got signout request"),n.url=t.url,t.state&&(n.id=t.state.id),i.navigate(n)})})})}).catch(function(t){throw i.close&&(r.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),i.close()),t})})},e.prototype._signoutEnd=function(t){return this.processSignoutResponse(t).then(function(t){return r.Log.debug("UserManager._signoutEnd: got signout response"),t})},e.prototype.revokeAccessToken=function(){var t=this;return this._loadUser().then(function(e){return t._revokeInternal(e,!0).then(function(i){if(i)return r.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),e.access_token=null,e.refresh_token=null,e.expires_at=null,e.token_type=null,t.storeUser(e).then(function(){r.Log.debug("UserManager.revokeAccessToken: user stored"),t._events.load(e)})})}).then(function(){r.Log.info("UserManager.revokeAccessToken: access token revoked successfully")})},e.prototype._revokeInternal=function(t,e){var i=this;if(t){var n=t.refresh_token;return this._revokeAccessTokenInternal(t.access_token,e).then(function(t){return i._revokeRefreshTokenInternal(n,e).then(function(e){return t||e||r.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),t||e})})}return Promise.resolve(!1)},e.prototype._revokeAccessTokenInternal=function(t,e){return!t||t.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(t,e).then(function(){return!0})},e.prototype._revokeRefreshTokenInternal=function(t,e){return t?this._tokenRevocationClient.revoke(t,e,"refresh_token").then(function(){return!0}):Promise.resolve(!1)},e.prototype.startSilentRenew=function(){this._silentRenewService.start()},e.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},e.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then(function(t){return t?(r.Log.debug("UserManager._loadUser: user storageString loaded"),s.User.fromStorageString(t)):(r.Log.debug("UserManager._loadUser: no user storageString"),null)})},e.prototype.storeUser=function(t){if(t){r.Log.debug("UserManager.storeUser: storing user");var e=t.toStorageString();return this._userStore.set(this._userStoreKey,e)}return r.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},n(e,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),e}(o.OidcClient)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserManagerSettings=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.popup_redirect_uri,r=i.popup_post_logout_redirect_uri,h=i.popupWindowFeatures,d=i.popupWindowTarget,f=i.silent_redirect_uri,p=i.silentRequestTimeout,g=i.automaticSilentRenew,v=void 0!==g&&g,m=i.validateSubOnSilentRenew,y=void 0!==m&&m,b=i.includeIdTokenInSilentRenew,w=void 0===b||b,_=i.monitorSession,A=void 0===_||_,k=i.monitorAnonymousSession,T=void 0!==k&&k,C=i.checkSessionInterval,S=void 0===C?2e3:C,E=i.stopCheckSessionOnError,x=void 0===E||E,R=i.query_status_response_type,I=i.revokeAccessTokenOnSignout,O=void 0!==I&&I,P=i.accessTokenExpiringNotificationTime,D=void 0===P?60:P,M=i.redirectNavigator,L=void 0===M?new o.RedirectNavigator:M,N=i.popupNavigator,z=void 0===N?new a.PopupNavigator:N,F=i.iframeNavigator,Z=void 0===F?new s.IFrameNavigator:F,B=i.userStore,q=void 0===B?new u.WebStorageStateStore({store:c.Global.sessionStorage}):B;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var U=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));return U._popup_redirect_uri=n,U._popup_post_logout_redirect_uri=r,U._popupWindowFeatures=h,U._popupWindowTarget=d,U._silent_redirect_uri=f,U._silentRequestTimeout=p,U._automaticSilentRenew=v,U._validateSubOnSilentRenew=y,U._includeIdTokenInSilentRenew=w,U._accessTokenExpiringNotificationTime=D,U._monitorSession=A,U._monitorAnonymousSession=T,U._checkSessionInterval=S,U._stopCheckSessionOnError=x,U._query_status_response_type=R||(arguments[0]&&arguments[0].response_type?l.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":"id_token"),U._revokeAccessTokenOnSignout=O,U._redirectNavigator=L,U._popupNavigator=z,U._iframeNavigator=Z,U._userStore=q,U}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),e}(r.OidcClientSettings)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RedirectNavigator=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1])||arguments[1];n.Log.debug("UserManagerEvents.load"),t.prototype.load.call(this,e),i&&this._userLoaded.raise(e)},e.prototype.unload=function(){n.Log.debug("UserManagerEvents.unload"),t.prototype.unload.call(this),this._userUnloaded.raise()},e.prototype.addUserLoaded=function(t){this._userLoaded.addHandler(t)},e.prototype.removeUserLoaded=function(t){this._userLoaded.removeHandler(t)},e.prototype.addUserUnloaded=function(t){this._userUnloaded.addHandler(t)},e.prototype.removeUserUnloaded=function(t){this._userUnloaded.removeHandler(t)},e.prototype.addSilentRenewError=function(t){this._silentRenewError.addHandler(t)},e.prototype.removeSilentRenewError=function(t){this._silentRenewError.removeHandler(t)},e.prototype._raiseSilentRenewError=function(t){n.Log.debug("UserManagerEvents._raiseSilentRenewError",t.message),this._silentRenewError.raise(t)},e.prototype.addUserSignedIn=function(t){this._userSignedIn.addHandler(t)},e.prototype.removeUserSignedIn=function(t){this._userSignedIn.removeHandler(t)},e.prototype._raiseUserSignedIn=function(){n.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},e.prototype.addUserSignedOut=function(t){this._userSignedOut.addHandler(t)},e.prototype.removeUserSignedOut=function(t){this._userSignedOut.removeHandler(t)},e.prototype._raiseUserSignedOut=function(){n.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},e.prototype.addUserSessionChanged=function(t){this._userSessionChanged.addHandler(t)},e.prototype.removeUserSessionChanged=function(t){this._userSessionChanged.removeHandler(t)},e.prototype._raiseUserSessionChanged=function(){n.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},e}(r.AccessTokenEvents)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:o.Global.timer,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return a._timer=n,a._nowFunc=r||function(){return Date.now()/1e3},a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.init=function(t){t<=0&&(t=1),t=parseInt(t);var e=this.now+t;if(this.expiration===e&&this._timerHandle)r.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),r.Log.debug("Timer.init timer "+this._name+" for duration:",t),this._expiration=e;var i=5;t0&&u>s&&(u=s);for(var c=0;c=0?(l=p.substr(0,g),h=p.substr(g+1)):(l=p,h=""),d=decodeURIComponent(l),f=decodeURIComponent(h),e(o,d)?Array.isArray(o[d])?o[d].push(f):o[d]=[o[d],f]:o[d]=f}return o}},15341:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,r){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(r){var o=encodeURIComponent(e(r))+n;return Array.isArray(t[r])?t[r].map(function(t){return o+encodeURIComponent(e(t))}).join(i):o+encodeURIComponent(e(t[r]))}).join(i):r?encodeURIComponent(e(r))+n+encodeURIComponent(e(t)):""}},96577:function(t,e,i){"use strict";i(40963),e.stringify=i(15341)},78512:function(t,e,i){"use strict";i.d(e,{X:function(){return s}});var r=i(55959),o=i(13895),s=function(t){a(i,t);var e=u(i);function i(t){var n;return v(this,i),(n=e.call(this))._value=t,n}return y(i,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(t){var e=n(d(i.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.N;return this._value}},{key:"next",value:function(t){n(d(i.prototype),"next",this).call(this,this._value=t)}}]),i}(r.xQ)},99867:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var n=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this)).parent=t,o.outerValue=n,o.outerIndex=r,o.index=0,o}return y(i,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),i}(i(96673).L)},3103:function(t,e,i){"use strict";i.d(e,{P:function(){return a}});var n=i(70653),r=i(40878),o=i(31225),a=function(){var t=function(){function t(e,i,n){v(this,t),this.kind=e,this.value=i,this.error=n,this.hasValue="N"===e}return y(t,[{key:"observe",value:function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}},{key:"do",value:function(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}},{key:"accept",value:function(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}();return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},48318:function(t,e,i){"use strict";i.d(e,{y:function(){return c}});var n=i(96673),r=i(55331),o=i(57498),a=i(56197),s=i(13392),u=i(51484),c=function(){var t=function(){function t(e){v(this,t),this._isScalar=!1,e&&(this._subscribe=e)}return y(t,[{key:"lift",value:function(e){var i=new t;return i.source=this,i.operator=e,i}},{key:"subscribe",value:function(t,e,i){var a=this.operator,s=function(t,e,i){if(t){if(t instanceof n.L)return t;if(t[r.b])return t[r.b]()}return t||e||i?new n.L(t,e,i):new n.L(o.c)}(t,e,i);if(s.add(a?a.call(s,this.source):this.source||u.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),u.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(t){try{return this._subscribe(t)}catch(e){u.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,i=e.closed,r=e.destination,o=e.isStopped;if(i||o)return!1;t=r&&r instanceof n.L?r:null}return!0}(t)?t.error(e):console.warn(e)}}},{key:"forEach",value:function(t,e){var i=this;return new(e=l(e))(function(e,n){var r;r=i.subscribe(function(e){try{t(e)}catch(i){n(i),r&&r.unsubscribe()}},n,e)})}},{key:"_subscribe",value:function(t){var e=this.source;return e&&e.subscribe(t)}},{key:a.L,value:function(){return this}},{key:"pipe",value:function(){for(var t=arguments.length,e=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return e>0?n(d(i.prototype),"schedule",this).call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,e){return e>0||this.closed?n(d(i.prototype),"execute",this).call(this,t,e):this._execute(t,e)}},{key:"requestAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?n(d(i.prototype),"requestAsyncId",this).call(this,t,e,r):t.flush(this)}}]),i}(i(8277).o),s=new(function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(i(91098).v))(o),c=i(87570),l=i(96673),h=i(3103),f=function(t){a(i,t);var e=u(i);function i(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return v(this,i),(r=e.call(this,t)).scheduler=n,r.delay=o,r}return y(i,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(i.dispatch,this.delay,new p(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(h.P.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(h.P.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(h.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,i=t.destination;e.observe(i),this.unsubscribe()}}]),i}(l.L),p=function t(e,i){v(this,t),this.notification=e,this.destination=i},g=i(13895),m=i(19291),b=function(t){a(i,t);var e=u(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return v(this,i),(t=e.call(this)).scheduler=o,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=n<1?1:n,t._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return y(i,[{key:"nextInfiniteTimeWindow",value:function(t){var e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),n(d(i.prototype),"next",this).call(this,t)}},{key:"nextTimeWindow",value:function(t){this._events.push(new w(this._getNow(),t)),this._trimBufferThenGetEvents(),n(d(i.prototype),"next",this).call(this,t)}},{key:"_subscribe",value:function(t){var e,i=this._infiniteTimeWindow,n=i?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=n.length;if(this.closed)throw new g.N;if(this.isStopped||this.hasError?e=c.w.EMPTY:(this.observers.push(t),e=new m.W(this,t)),r&&t.add(t=new f(t,r)),i)for(var a=0;ae&&(o=Math.max(o,r-e)),o>0&&n.splice(0,o),n}}]),i}(r.xQ),w=function t(e,i){v(this,t),this.time=e,this.value=i}},55959:function(t,e,i){"use strict";i.d(e,{Yc:function(){return f},xQ:function(){return p}});var r=i(48318),o=i(96673),s=i(87570),c=i(13895),l=i(19291),h=i(55331),f=function(t){a(i,t);var e=u(i);function i(t){var n;return v(this,i),(n=e.call(this,t)).destination=t,n}return i}(o.L),p=function(){var t=function(t){a(i,t);var e=u(i);function i(){var t;return v(this,i),(t=e.call(this)).observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return y(i,[{key:h.b,value:function(){return new f(this)}},{key:"lift",value:function(t){var e=new g(this,this);return e.operator=t,e}},{key:"next",value:function(t){if(this.closed)throw new c.N;if(!this.isStopped)for(var e=this.observers,i=e.length,n=e.slice(),r=0;r1?Array.prototype.slice.call(arguments):t)},n,i)})}function c(t,e,i,n,r){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var a=t;t.addEventListener(e,i,r),o=function(){return a.removeEventListener(e,i,r)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var s=t;t.on(e,i),o=function(){return s.off(e,i)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var u=t;t.addListener(e,i),o=function(){return u.removeListener(e,i)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,h=t.length;l0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return(!(0,o.k)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=r.P),new n.y(function(i){return i.add(e.schedule(s,t,{subscriber:i,counter:0,period:t})),i})}function s(t){var e=t.subscriber,i=t.counter,n=t.period;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}},31906:function(t,e,i){"use strict";i.d(e,{T:function(){return s}});var n=i(48318),r=i(76163),o=i(97471),a=i(99342);function s(){for(var t=arguments.length,e=new Array(t),i=0;i1&&"number"==typeof e[e.length-1]&&(s=e.pop())):"number"==typeof c&&(s=e.pop()),null===u&&1===e.length&&e[0]instanceof n.y?e[0]:(0,o.J)(s)((0,a.n)(e,u))}},40878:function(t,e,i){"use strict";i.d(e,{of:function(){return a}});var n=i(76163),r=i(99342),o=i(62570);function a(){for(var t=arguments.length,e=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,s=-1;return(0,o.k)(e)?s=Number(e)<1?1:Number(e):(0,a.K)(e)&&(i=e),(0,a.K)(i)||(i=r.P),new n.y(function(e){var n=(0,o.k)(t)?t:+t-i.now();return i.schedule(u,n,{index:0,period:s,subscriber:e})})}function u(t){var e=t.index,i=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}},30810:function(t,e,i){"use strict";i.d(e,{e:function(){return h}});var n=i(48569),r=i(59829),o=i(6268),s=function(){function t(e){v(this,t),this.durationSelector=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.durationSelector))}}]),t}(),c=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t)).durationSelector=n,r.hasValue=!1,r}return y(i,[{key:"_next",value:function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e;try{e=(0,this.durationSelector)(t)}catch(n){return this.destination.error(n)}var i=(0,o.D)(this,e);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}},{key:"clearThrottle",value:function(){var t=this.value,e=this.hasValue,i=this.throttled;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}},{key:"notifyNext",value:function(t,e,i,n){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),i}(r.L),l=i(81110);function h(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.P;return e=function(){return(0,l.H)(t,i)},function(t){return t.lift(new s(e))}}},47727:function(t,e,i){"use strict";i.d(e,{K:function(){return c}});var r=i(59829),o=i(99867),s=i(6268);function c(t){return function(e){var i=new l(t),n=e.lift(i);return i.caught=n}}var l=function(){function t(e){v(this,t),this.selector=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new h(t,this.selector,this.caught))}}]),t}(),h=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t)).selector=n,o.caught=r,o}return y(i,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(u){return void n(d(i.prototype),"error",this).call(this,u)}this._unsubscribeAndRecycle();var r=new o.d(this,void 0,void 0);this.add(r);var a=(0,s.D)(this,e,void 0,void 0,r);a!==r&&this.add(a)}}}]),i}(r.L)},436:function(t,e,i){"use strict";i.d(e,{b:function(){return r}});var n=i(73982);function r(t,e){return(0,n.zg)(t,e,1)}},47701:function(t,e,i){"use strict";i.d(e,{b:function(){return o}});var n=i(96673),r=i(48569);function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return function(i){return i.lift(new s(t,e))}}var s=function(){function t(e,i){v(this,t),this.dueTime=e,this.scheduler=i}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.dueTime,this.scheduler))}}]),t}(),c=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t)).dueTime=n,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return y(i,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),i}(n.L);function l(t){t.debouncedNext()}},7768:function(t,e,i){"use strict";i.d(e,{d:function(){return r}});var n=i(96673);function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new o(t))}}var o=function(){function t(e){v(this,t),this.defaultValue=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.defaultValue))}}]),t}(),s=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t)).defaultValue=n,r.isEmpty=!0,r}return y(i,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),i}(n.L)},82628:function(t,e,i){"use strict";i.d(e,{g:function(){return s}});var n=i(48569),r=i(96673),o=i(3103);function s(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.P,r=(e=t)instanceof Date&&!isNaN(+e)?+t-i.now():Math.abs(t);return function(t){return t.lift(new c(r,i))}}var c=function(){function t(e,i){v(this,t),this.delay=e,this.scheduler=i}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}]),t}(),l=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t)).delay=n,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return y(i,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(i.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,i=new h(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(o.P.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(o.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,i=e.queue,n=t.scheduler,r=t.destination;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(r);if(i.length>0){var o=Math.max(0,i[0].time-n.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}}]),i}(r.L),h=function t(e,i){v(this,t),this.time=e,this.notification=i}},98720:function(t,e,i){"use strict";i.d(e,{x:function(){return r}});var n=i(96673);function r(t,e){return function(i){return i.lift(new o(t,e))}}var o=function(){function t(e,i){v(this,t),this.compare=e,this.keySelector=i}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.compare,this.keySelector))}}]),t}(),s=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t)).keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return y(i,[{key:"compare",value:function(t,e){return t===e}},{key:"_next",value:function(t){var e;try{var i=this.keySelector;e=i?i(t):t}catch(r){return this.destination.error(r)}var n=!1;if(this.hasKey)try{n=(0,this.compare)(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}]),i}(n.L)},43835:function(t,e,i){"use strict";i.d(e,{h:function(){return r}});var n=i(96673);function r(t,e){return function(i){return i.lift(new o(t,e))}}var o=function(){function t(e,i){v(this,t),this.predicate=e,this.thisArg=i}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))}}]),t}(),s=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t)).predicate=n,o.thisArg=r,o.count=0,o}return y(i,[{key:"_next",value:function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}]),i}(n.L)},11520:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var n=i(96673),r=i(87570);function o(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(e){v(this,t),this.callback=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.callback))}}]),t}(),c=function(t){a(i,t);var e=u(i);function i(t,n){var o;return v(this,i),(o=e.call(this,t)).add(new r.w(n)),o}return i}(n.L)},3530:function(t,e,i){"use strict";i.d(e,{P:function(){return c}});var n=i(39665),r=i(43835),o=i(90611),a=i(7768),s=i(90790),u=i(13392);function c(t,e){var i=arguments.length>=2;return function(c){return c.pipe(t?(0,r.h)(function(e,i){return t(e,i,c)}):u.y,(0,o.q)(1),i?(0,a.d)(e):(0,s.T)(function(){return new n.K}))}}},79996:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var n=i(96673);function r(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new o(t,e))}}var o=function(){function t(e,i){v(this,t),this.project=e,this.thisArg=i}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))}}]),t}(),s=function(t){a(i,t);var e=u(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t)).project=n,o.count=0,o.thisArg=r||l(o),o}return y(i,[{key:"_next",value:function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}]),i}(n.L)},88414:function(t,e,i){"use strict";i.d(e,{h:function(){return r}});var n=i(96673);function r(t){return function(e){return e.lift(new o(t))}}var o=function(){function t(e){v(this,t),this.value=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.value))}}]),t}(),s=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t)).value=n,r}return y(i,[{key:"_next",value:function(t){this.destination.next(this.value)}}]),i}(n.L)},97471:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(73982),r=i(13392);function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,n.zg)(r.y,t)}},73982:function(t,e,i){"use strict";i.d(e,{zg:function(){return l}});var n=i(6268),r=i(59829),o=i(99867),s=i(79996),c=i(19764);function l(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(n){return n.pipe(l(function(i,n){return(0,c.D)(t(i,n)).pipe((0,s.U)(function(t,r){return e(i,t,n,r)}))},i))}:("number"==typeof e&&(i=e),function(e){return e.lift(new h(t,i))})}var h=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;v(this,t),this.project=e,this.concurrent=i}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new d(t,this.project,this.concurrent))}}]),t}(),d=function(t){a(i,t);var e=u(i);function i(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return v(this,i),(r=e.call(this,t)).project=n,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return y(i,[{key:"_next",value:function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),i}(r.L)},21564:function(t,e,i){"use strict";i.d(e,{x:function(){return r}});var n=i(96673);function r(){return function(t){return t.lift(new o(t))}}var o=function(){function t(e){v(this,t),this.connectable=e}return y(t,[{key:"call",value:function(t,e){var i=this.connectable;i._refCount++;var n=new s(t,i),r=e.subscribe(n);return n.closed||(n.connection=i.connect()),r}}]),t}(),s=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t)).connectable=n,r}return y(i,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var i=this.connection,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}else this.connection=null}}]),i}(n.L)},1055:function(t,e,i){"use strict";i.d(e,{B:function(){return s}});var n=i(42875),r=i(21564),o=i(55959);function a(){return new o.xQ}function s(){return function(t){return(0,r.x)()((e=a,function(t){var i;i="function"==typeof e?e:function(){return e};var r=Object.create(t,n.N);return r.source=t,r.subjectFactory=i,r})(t));var e}}},68303:function(t,e,i){"use strict";i.d(e,{d:function(){return r}});var n=i(66994);function r(t,e,i){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},function(t){return t.lift(function(t){var e,i,r=t.bufferSize,o=void 0===r?Number.POSITIVE_INFINITY:r,a=t.windowTime,s=void 0===a?Number.POSITIVE_INFINITY:a,u=t.refCount,c=t.scheduler,l=0,h=!1,d=!1;return function(t){l++,e&&!h||(h=!1,e=new n.t(o,s,c),i=t.subscribe({next:function(t){e.next(t)},error:function(t){h=!0,e.error(t)},complete:function(){d=!0,i=void 0,e.complete()}}));var r=e.subscribe(this);this.add(function(){l--,r.unsubscribe(),i&&!d&&u&&0===l&&(i.unsubscribe(),i=void 0,e=void 0)})}}(r))}}},56238:function(t,e,i){"use strict";i.d(e,{O:function(){return o}});var n=i(47930),r=i(76163);function o(){for(var t=arguments.length,e=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:l;return function(e){return e.lift(new s(t))}}var s=function(){function t(e){v(this,t),this.errorFactory=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.errorFactory))}}]),t}(),c=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t)).errorFactory=n,r.hasValue=!1,r}return y(i,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),i}(r.L);function l(){return new n.K}},62570:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(48318),r=i(87570);function o(t,e){return new n.y(function(i){var n=new r.w,o=0;return n.add(e.schedule(function(){o!==t.length?(i.next(t[o++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},8277:function(t,e,i){"use strict";i.d(e,{o:function(){return n}});var n=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t,n)).scheduler=t,r.work=n,r.pending=!1,r}return y(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),i)}},{key:"recycleAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var i,n=!1;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),i}(function(t){a(i,t);var e=u(i);function i(t,n){return v(this,i),e.call(this)}return y(i,[{key:"schedule",value:function(t){return this}}]),i}(i(87570).w))},91098:function(t,e,i){"use strict";i.d(e,{v:function(){return o}});var r=function(){var t=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;v(this,t),this.SchedulerAction=e,this.now=i}return y(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(i,e)}}]),t}();return t.now=function(){return Date.now()},t}(),o=function(t){a(i,t);var e=u(i);function i(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.now;return v(this,i),(n=e.call(this,t,function(){return i.delegate&&i.delegate!==l(n)?i.delegate.now():o()})).actions=[],n.active=!1,n.scheduled=void 0,n}return y(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return i.delegate&&i.delegate!==this?i.delegate.schedule(t,e,r):n(d(i.prototype),"schedule",this).call(this,t,e,r)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}}]),i}(r)},91741:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var r=function(t){a(i,t);var e=u(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t,n)).scheduler=t,r.work=n,r}return y(i,[{key:"requestAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?n(d(i.prototype),"requestAsyncId",this).call(this,t,e,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))}},{key:"recycleAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return n(d(i.prototype),"recycleAsyncId",this).call(this,t,e,r);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}]),i}(i(8277).o),o=new(function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,i=this.actions,n=-1,r=i.length;t=t||i.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?n(d(i.prototype),"requestAsyncId",this).call(this,t,e,r):(t.actions.push(this),t.scheduled||(t.scheduled=l(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return n(d(i.prototype),"recycleAsyncId",this).call(this,t,e,r);0===t.actions.length&&(h(e),t.scheduled=void 0)}}]),i}(i(8277).o),p=new(function(t){a(i,t);var e=u(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,i=this.actions,n=-1,r=i.length;t=t||i.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n=0}},82056:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,{K:function(){return n}})},4710:function(t,e,i){"use strict";i.d(e,{b:function(){return r}});var n=i(48318);function r(t){return!!t&&(t instanceof n.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},5168:function(t,e,i){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,{t:function(){return n}})},76163:function(t,e,i){"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,{K:function(){return n}})},16015:function(t,e,i){"use strict";i.d(e,{s:function(){return l}});var n=i(30625),r=i(14294),o=i(25686),a=i(56197),s=i(59653),u=i(5168),c=i(82056),l=function(t){if(t&&"function"==typeof t[a.L])return l=t,function(t){var e=l[a.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,s.z)(t))return(0,n.V)(t);if((0,u.t)(t))return i=t,function(t){return i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,r.z),t};if(t&&"function"==typeof t[o.hZ])return e=t,function(t){for(var i=e[o.hZ]();;){var n=i.next();if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof i.return&&t.add(function(){i.return&&i.return()}),t};var e,i,l,h=(0,c.K)(t)?"an invalid object":"'".concat(t,"'");throw new TypeError("You provided ".concat(h," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}},30625:function(t,e,i){"use strict";i.d(e,{V:function(){return n}});var n=function(t){return function(e){for(var i=0,n=t.length;i4&&void 0!==arguments[4]?arguments[4]:new n.d(t,i,a);if(!s.closed)return e instanceof o.y?e.subscribe(s):(0,r.s)(e)(s)}},64762:function(t,e,i){"use strict";function n(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a}function r(t,e){return function(i,n){e(i,n,t)}}function o(t,e,i,n){return new(i||(i=Promise))(function(r,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})}i.d(e,{gn:function(){return n},fM:function(){return r},mG:function(){return o}})},60306:function(t){"use strict";t.exports={i8:"1.1.0"}}},function(t){"use strict";t(t.s=15291)}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/main-es5.af0cb7e3f45c254d3a3f.js b/dist/apps/admin-gui/main-es5.af0cb7e3f45c254d3a3f.js new file mode 100644 index 000000000..9185b8185 --- /dev/null +++ b/dist/apps/admin-gui/main-es5.af0cb7e3f45c254d3a3f.js @@ -0,0 +1 @@ +!function(){function t(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function e(t){var n="function"==typeof Map?new Map:void 0;return(e=function(t){if(null===t||(e=t,-1===Function.toString.call(e).indexOf("[native code]")))return t;var e;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return i(t,arguments,h(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,t)})(t)}function i(t,e,n){return(i=l()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&a(r,i.prototype),r}).apply(null,arguments)}function n(t,e,i){return(n="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],a=!0,s=!1;try{for(i=i.call(t);!(a=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(u){s=!0,r=u}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=l();return function(){var i,n=h(t);if(e){var r=h(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return u(this,i)}}function u(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){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(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=p(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function p(t,e){if(t){if("string"==typeof t)return g(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0),u.xp6(1),u.Q6J("ngIf",!i.firstSearchDone),u.xp6(1),u.Q6J("ngIf",i.firstSearchDone&&0===i.users.length)}}var S=function(){var t=function(){function t(e,i,n){v(this,t),this.usersService=e,this.storeService=i,this.tableConfigService=n,this.loading=!1,this.firstSearchDone=!1,this.tableId=r.xx,this.attributes=[]}return y(t,[{key:"ngOnInit",value:function(){this.searchControl=new s.NI("",[s.kI.required,s.kI.pattern(".*[\\S]+.*")]),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.attributes=[o.r.USER_DEF_ORGANIZATION,o.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}},{key:"onSearchByString",value:function(){var t=this;this.searchControl.invalid?this.searchControl.markAllAsTouched():(this.loading=!0,this.firstSearchDone=!0,this.usersService.findRichUsersWithAttributes(this.searchControl.value,this.attributes).subscribe(function(e){t.users=e,t.loading=!1},function(){t.loading=!1}))}},{key:"onKeyInput",value:function(t){"Enter"===t.key&&this.onSearchByString()}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"findUsersWithoutVO",value:function(){var t=this;this.loading=!0,this.firstSearchDone=!0,this.usersService.getRichUsersWithoutVoWithAttributes(this.attributes).subscribe(function(e){t.users=e,t.loading=!1},function(){return t.loading=!1})}}]),t}();return t.id="AdminUsersComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(n.Fv),u.Y36(a.d6),u.Y36(r.dB))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.true)},decls:18,vars:17,consts:[[3,"keyup"],[1,"page-subtitle"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["mat-flat-button","","color","primary",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSize","displayedColumns","users","page",4,"ngIf"],[3,"alert_type",4,"ngIf"],[3,"pageSize","displayedColumns","users","page"],[3,"alert_type"]],template:function(t,e){1&t&&(u.TgZ(0,"div",0),u.NdJ("keyup",function(t){return e.onKeyInput(t)}),u.TgZ(1,"h1",1),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"mat-form-field",2),u._UZ(5,"input",3),u.ALo(6,"translate"),u.TgZ(7,"mat-error"),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.qZA(),u.TgZ(10,"button",4),u.NdJ("click",function(){return e.onSearchByString()}),u.TgZ(11,"mat-icon"),u._uU(12,"search"),u.qZA(),u.qZA(),u.TgZ(13,"button",5),u.NdJ("click",function(){return e.findUsersWithoutVO()}),u._uU(14),u.ALo(15,"translate"),u.qZA(),u.YNc(16,w,1,0,"mat-spinner",6),u.YNc(17,C,4,3,"div",7),u.qZA()),2&t&&(u.xp6(2),u.Oqu(u.lcZ(3,9,"ADMIN.USERS.TITLE")),u.xp6(3),u.s9C("placeholder",u.lcZ(6,11,"ADMIN.USERS.SEARCH_PLACEHOLDER")),u.Q6J("formControl",e.searchControl),u.xp6(3),u.hij(" ",u.lcZ(9,13,"ADMIN.USERS.EMPTY_SEARCH")," "),u.xp6(2),u.Q6J("disabled",e.loading),u.xp6(3),u.Q6J("disabled",e.loading),u.xp6(1),u.hij(" ",u.lcZ(15,15,"ADMIN.USERS.USERS_WITHOUT_VO")," "),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[c.KE,l.Nt,s.Fj,s.JJ,s.oH,c.TO,h.lW,d.Hw,f.O5,p.$g,g.C,m.w],pipes:[b.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),t}()},61601:function(t,e,i){"use strict";i.d(e,{y:function(){return C}});var n=i(88426),r=i(38289),o=i(29063),a=i(84140),s=i(31572),u=i(84608),c=i(15980),l=i(48160),h=function(){var t=function(){function t(e){v(this,t),this.dialogRef=e}return y(t,[{key:"onReload",value:function(){location.reload()}},{key:"onClose",value:function(){this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(u.so))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"div",2),s.TgZ(5,"p"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.qZA(),s.TgZ(8,"div",3),s.TgZ(9,"button",4),s.NdJ("click",function(){return e.onClose()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"button",5),s.NdJ("click",function(){return e.onReload()}),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),s.xp6(5),s.hij(" ",s.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),s.xp6(4),s.hij(" ",s.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),s.xp6(3),s.hij(" ",s.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},directives:[u.uh,u.xY,u.H8,c.lW],pipes:[l.X$],styles:[""]}),t}(),d=i(57629),f=i(43835),p=function(){var t=function(){function t(e,i){v(this,t),this.router=e,this.routeReuseStrategy=i;var n=i;e.events.subscribe(function(t){t instanceof d.OD&&n.setLastNavigationType("popstate"===t.navigationTrigger?"back":"direct")})}return y(t,[{key:"init",value:function(){}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(d.F0),s.LFG(d.wN))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}();function g(t,e){if(1&t&&(s.TgZ(0,"div",3),s.TgZ(1,"mat-icon"),s._uU(2,"alert"),s.qZA(),s._uU(3),s.qZA()),2&t){var i=s.oxw();s.xp6(3),s.hij(" ",i.warningMessage,"\n")}}var m=function(t,e){return{top:t,background:e}},b=function(t,e){return{"margin-top":t,"min-height":e}},w=function(t){return{"border-color":t}},_=function(t){return{background:t}},A=function(t,e){return{"min-height":t,"background-color":e}};function k(t,e){if(1&t&&(s._UZ(0,"app-perun-nav-menu",4),s.TgZ(1,"mat-sidenav-container",5),s.TgZ(2,"mat-sidenav",6,7),s.TgZ(4,"perfect-scrollbar",8),s._UZ(5,"app-side-menu",9),s.qZA(),s.qZA(),s.TgZ(6,"mat-sidenav-content",10),s.TgZ(7,"div",11),s._UZ(8,"router-outlet"),s.qZA(),s.TgZ(9,"div",12),s._UZ(10,"perun-web-apps-footer"),s.qZA(),s.qZA(),s.qZA()),2&t){var i=s.MAs(3),n=s.oxw();s.Q6J("ngStyle",s.WLB(13,m,n.getNavMenuTop(),n.navBackgroundColor))("sideNav",i)("principal",n.principal),s.xp6(1),s.Q6J("ngStyle",s.WLB(16,b,n.getSideNavMarginTop(),n.getSideNavMinHeight())),s.xp6(1),s.Q6J("ngStyle",s.VKq(19,w,n.sideBarBorderColor))("mode",n.sidebarMode)("opened",!n.isMobile())("fixedInViewport",!0)("fixedTopGap",n.getTopGap()),s.xp6(2),s.Q6J("ngStyle",s.VKq(21,_,n.sideMenubackgroundColor))("scrollIndicators",!0),s.xp6(1),s.Q6J("sideNav",i),s.xp6(1),s.Q6J("ngStyle",s.WLB(23,A,n.getContentInnerMinHeight(),n.contentBackgroundColor))}}function T(t,e){1&t&&s._UZ(0,"perun-web-apps-login-screen-base",13),2&t&&s.Q6J("application","admin-gui")}var C=function(){var t=function(){function t(e,n,r,o,a,s){v(this,t),this.cache=e,this.store=n,this.http=r,this.dialog=o,this.router=a,this.initAuth=s,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=i(60306).i8,this.cache.init(),this.getScreenSize()}return y(t,[{key:"getScreenSize",value:function(){this.sidebarMode=this.isMobile()?"over":"side",this.lastScreenWidth=window.innerWidth}},{key:"isMobile",value:function(){return window.innerWidth<=t.minWidth}},{key:"ngOnInit",value:function(){var t=this;this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),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,r.F)(3e4).subscribe(function(){t.loadAppVersion()}),this.router.events.pipe((0,f.h)(function(t){return t instanceof d.OD})).subscribe(function(e){t.updateInitAccessedPage(e)})}},{key:"updateInitAccessedPage",value:function(t){t.url===sessionStorage.getItem("initPage")?("imperative"===t.navigationTrigger&&t.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===t.navigationTrigger&&(t.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(t.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}},{key:"loadAppVersion",value:function(){var t=this,e=new o.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:e}).subscribe(function(e){var i=e.version;if(i)if(t.version&&"SNAPSHOT"!==i&&t.version!==i){var n=(0,a.kZ)();t.dialog.open(h,n)}else t.version=i},function(){})}},{key:"getTopGap",value:function(){return this.displayWarning?112:64}},{key:"getSideNavMarginTop",value:function(){return this.displayWarning?"112px":"64px"}},{key:"getSideNavMinHeight",value:function(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}},{key:"getNavMenuTop",value:function(){return this.displayWarning?"48px":"0"}},{key:"getContentInnerMinHeight",value:function(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}}]),t}();return t.minWidth=992,t.\u0275fac=function(e){return new(e||t)(s.Y36(p),s.Y36(n.d6),s.Y36(o.eN),s.Y36(u.uw),s.Y36(d.F0),s.Y36(n.v0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-root"]],hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.getScreenSize(t)},!1,s.Jf7)},decls:4,vars:4,consts:[["class","beta-warning",4,"ngIf"],[3,"displayWarning"],[3,"ngIf"],[1,"beta-warning"],["id","nav-menu",1,"mat-elevation-z3",3,"ngStyle","sideNav","principal"],[3,"ngStyle"],[3,"ngStyle","mode","opened","fixedInViewport","fixedTopGap"],["sidenav",""],[3,"ngStyle","scrollIndicators"],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[3,"application"]],template:function(t,e){1&t&&(s.YNc(0,g,4,1,"div",0),s._UZ(1,"perun-web-apps-notificator",1),s.YNc(2,k,11,26,"ng-template",2),s.YNc(3,T,1,1,"ng-template",2)),2&t&&(s.Q6J("ngIf",e.displayWarning),s.xp6(1),s.Q6J("displayWarning",e.displayWarning),s.xp6(1),s.Q6J("ngIf",!e.isLoginScreenShow),s.xp6(1),s.Q6J("ngIf",e.isLoginScreenShow))},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width:768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.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}"]}),t}()},48958:function(t,e,i){"use strict";i.d(e,{D:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){v(this,t),this.accessItemsChange=new n.vpe,this.facilityItemsChange=new n.vpe,this.adminItemsChange=new n.vpe,this.userItemsChange=new n.vpe,this.resetChange=new n.vpe,this.homeItemsChange=new n.vpe}return y(t,[{key:"setHomeItems",value:function(t){this.homeItemsChange.emit(t)}},{key:"setAccessMenuItems",value:function(t){this.accessItemsChange.emit(t)}},{key:"setFacilityMenuItems",value:function(t){this.facilityItemsChange.emit(t)}},{key:"setAdminItems",value:function(t){this.adminItemsChange.emit(t)}},{key:"setUserItems",value:function(t){this.userItemsChange.emit(t)}},{key:"reset",value:function(){this.resetChange.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},39124:function(t,e,i){"use strict";i.d(e,{o:function(){return C}});var n=i(33642),r=i(60611),o=i(88426),a=i(31572),s=i(57629),u=i(59403),c=i(66283),l=i(4786),h=i(71522),d=i(61511),f=i(19139),p=i(67806),g=i(78364),m=i(39571),b=i(48160);function w(t,e){if(1&t&&(a.TgZ(0,"mat-option",9),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.Q6J("value",i.id),a.xp6(1),a.hij(" ",i.name," ")}}function _(t,e){1&t&&a._UZ(0,"mat-spinner",10)}var A=function(){return["id","vo","name","description"]};function k(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"perun-web-apps-groups-list",11),a.NdJ("page",function(t){return a.CHM(i),a.oxw().pageChanged(t)}),a.qZA()}if(2&t){var n=a.oxw();a.Q6J("pageSize",n.pageSize)("displayedColumns",a.DdM(6,A))("groups",n.groupsToShow)("groupsToDisable",n.groupsWithoutRouteAuth)("filter",n.filterValue)("disableMembers",!1)}}function T(t,e){1&t&&(a.TgZ(0,"app-alert",12),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"FACILITY_DETAIL.ALLOWED_GROUPS.NO_GROUPS_ALERT")," "))}var C=function(){var t=function(){function t(e,i,n,o){v(this,t),this.facilityManager=e,this.route=i,this.tableConfigService=n,this.authResolver=o,this.filterValue="",this.groups=[],this.selected="all",this.groupsToShow=this.groups,this.tableId=r.Aj,this.groupsWithoutRouteAuth=new Set}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.facilityId=e.facilityId,t.facilityManager.getAllowedVos(t.facilityId).subscribe(function(e){t.vos=e,t.refreshTable()})})}},{key:"showGroup",value:function(){var t=this;this.groupsToShow="all"!==this.selected?this.groups.filter(function(e){return e.voId===parseInt(t.selected,10)}):this.groups}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.groups=[],this.filterValue="",this.vos.forEach(function(e){t.facilityManager.getAllowedGroups(t.facilityId,e.id).subscribe(function(i){t.groups=t.groups.concat(i),t.groupsToShow=t.groups,t.setAuthRights(e,i),t.loading=!1})}),0===this.vos.length&&(this.loading=!1)}},{key:"setAuthRights",value:function(t,e){var i=this;e.forEach(function(e){i.authResolver.isAuthorized("getGroupById_int_policy",[t,e])||i.groupsWithoutRouteAuth.add(e.id)})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="FacilityAllowedGroupsComponent",t.\u0275fac=function(e){return new(e||t)(a.Y36(n.IQ),a.Y36(s.gz),a.Y36(r.dB),a.Y36(o.x4))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("router-component",e.true)},inputs:{groups:"groups"},decls:18,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"value","valueChange","selectionChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","displayedColumns","groups","groupsToDisable","filter","disableMembers","page",4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"pageSize","displayedColumns","groups","groupsToDisable","filter","disableMembers","page"],["alert_type","warn"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(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 e.refreshTable()}),a.qZA(),a.TgZ(5,"mat-form-field"),a.TgZ(6,"mat-label"),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.TgZ(9,"mat-select",2),a.NdJ("valueChange",function(t){return e.selected=t})("selectionChange",function(){return e.showGroup()}),a.TgZ(10,"mat-option",3),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.YNc(13,w,2,2,"mat-option",4),a.qZA(),a.qZA(),a.TgZ(14,"perun-web-apps-immediate-filter",5),a.NdJ("filter",function(t){return e.applyFilter(t)}),a.qZA(),a.YNc(15,_,1,0,"mat-spinner",6),a.YNc(16,k,1,7,"perun-web-apps-groups-list",7),a.YNc(17,T,3,3,"app-alert",8),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.lcZ(3,9,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),a.xp6(5),a.Oqu(a.lcZ(8,11,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),a.xp6(2),a.Q6J("value",e.selected),a.xp6(2),a.Oqu(a.lcZ(12,13,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),a.xp6(2),a.Q6J("ngForOf",e.vos),a.xp6(1),a.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),a.xp6(1),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading&&0!==e.groupsToShow.length),a.xp6(1),a.Q6J("ngIf",0===e.groupsToShow.length&&!e.loading))},directives:[u.t,c.KE,c.hX,l.gD,h.ey,d.sg,f.L,d.O5,p.$g,g.W,m.w],pipes:[b.X$],styles:[""]}),t}()},64467:function(t,e,i){"use strict";i.d(e,{f:function(){return P}});var n=i(4230),r=i(95909),o=i(33642),a=i(16073),s=i(84608),u=i(88426),c=i(31572),l=i(48160),h=i(61511),d=i(15980),f=i(67806),p=i(19386),g=i(66283),m=i(80340);function b(t,e){1&t&&c._UZ(0,"mat-spinner",5)}function w(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div",6),c.TgZ(1,"perun-web-apps-vo-search-select",7),c.NdJ("voSelected",function(t){return c.CHM(i),c.oxw().selectedVo=t}),c.qZA(),c.TgZ(2,"mat-form-field"),c._UZ(3,"input",8),c.ALo(4,"translate"),c.TgZ(5,"mat-error"),c._uU(6),c.ALo(7,"translate"),c.qZA(),c.qZA(),c.TgZ(8,"mat-form-field"),c._UZ(9,"input",8),c.ALo(10,"translate"),c.TgZ(11,"mat-error"),c._uU(12),c.ALo(13,"translate"),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=c.oxw();c.xp6(1),c.Q6J("vos",n.vos),c.xp6(2),c.s9C("placeholder",c.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),c.Q6J("formControl",n.nameCtrl),c.xp6(3),c.hij(" ",c.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),c.xp6(3),c.s9C("placeholder",c.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),c.Q6J("formControl",n.descriptionCtrl),c.xp6(3),c.hij(" ",c.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}var _=function(){var t=function(){function t(e,i,n,r,o,a){var s=this;v(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.voService=r,this.translate=o,this.resourcesManager=a,this.vos=[],this.selectedVo=null,o.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(function(t){return s.successMessage=t})}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(function(e){t.vos=e,t.loading=!1},function(){return t.loading=!1}),this.nameCtrl=new a.NI(null,[a.kI.required,a.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new a.NI(null,[a.kI.required,a.kI.pattern(".*[\\S]+.*")])}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.resourcesManager.createResource(this.selectedVo.id,this.data.facilityId,this.nameCtrl.value,this.descriptionCtrl.value).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Y36(s.so),c.Y36(s.WI),c.Y36(u.V6),c.Y36(o.YF),c.Y36(l.sK),c.Y36(o.xk))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-create-resource-dialog"]],decls:10,vars:12,consts:[["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","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"long-input",3,"vos","voSelected"],["matInput","","required","",3,"placeholder","formControl"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.YNc(1,b,1,0,"mat-spinner",0),c.YNc(2,w,14,15,"div",1),c.TgZ(3,"div",2),c.TgZ(4,"button",3),c.NdJ("click",function(){return e.onCancel()}),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"button",4),c.NdJ("click",function(){return e.onSubmit()}),c._uU(8),c.ALo(9,"translate"),c.qZA(),c.qZA(),c.qZA()),2&t&&(c.Tol(e.theme),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(3),c.Oqu(c.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")),c.xp6(2),c.Q6J("disabled",e.nameCtrl.invalid||e.descriptionCtrl.invalid||null===e.selectedVo||e.loading),c.xp6(1),c.Oqu(c.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")))},directives:[h.O5,s.H8,d.lW,f.$g,s.xY,p.M,g.KE,m.Nt,a.Fj,a.Q7,a.JJ,a.oH,g.TO],pipes:[l.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),t}(),A=i(60611),k=i(84140),T=i(57629),C=i(59403),S=i(19139),E=i(88884);function x(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",7),c.NdJ("click",function(){return c.CHM(i),c.oxw().createResource()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function R(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",function(){return c.CHM(i),c.oxw().removeResource()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&t){var n=c.oxw();c.Q6J("disabled",0===n.selected.selected.length),c.xp6(1),c.hij(" ",c.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function I(t,e){1&t&&c._UZ(0,"mat-spinner",9)}function O(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"perun-web-apps-resources-list",10),c.NdJ("page",function(t){return c.CHM(i),c.oxw().pageChanged(t)}),c.qZA()}if(2&t){var n=c.oxw();c.Q6J("pageSize",n.pageSize)("filterValue",n.filterValue)("resources",n.resources)("selection",n.selected)("disableRouting",!n.routeAuth)("displayedColumns",n.displayedColumns)}}var P=function(){var t=function(){function t(e,i,r,o,a){v(this,t),this.dialog=e,this.facilitiesManager=i,this.tableConfigService=r,this.route=o,this.authResolver=a,this.resources=[],this.selected=new n.Ov(!0,[]),this.filterValue="",this.tableId=A.CP,this.displayedColumns=["id","vo","facility","description"]}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.facilitiesManager.getFacilityById(e.facilityId).subscribe(function(e){t.facility=e,t.refreshTable()})})}},{key:"removeResource",value:function(){var t=this,e=(0,k.kZ)();e.width="450px",e.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(r.f,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(function(e){t.resources=e,t.selected.clear(),t.setAuthRights(),t.loading=!1})}},{key:"setAuthRights",value:function(){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]]))}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"createResource",value:function(){var t=this,e=(0,k.kZ)();e.width="1350px",e.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(_,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="FacilityResourcesComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(s.uw),c.Y36(o.IQ),c.Y36(A.dB),c.Y36(T.gz),c.Y36(u.x4))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",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,"pageSize","filterValue","resources","selection","disableRouting","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","selection","disableRouting","displayedColumns","page"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.refreshTable()}),c.qZA(),c.YNc(5,x,3,3,"button",2),c.YNc(6,R,3,4,"button",3),c.TgZ(7,"perun-web-apps-immediate-filter",4),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.YNc(8,I,1,0,"mat-spinner",5),c.YNc(9,O,1,6,"perun-web-apps-resources-list",6),c.qZA()),2&t&&(c.xp6(2),c.Oqu(c.lcZ(3,6,"FACILITY_DETAIL.RESOURCES.TITLE")),c.xp6(3),c.Q6J("ngIf",!e.loading&&e.addAuth),c.xp6(1),c.Q6J("ngIf",!e.loading&&e.removeAuth),c.xp6(1),c.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[C.t,h.O5,S.L,d.lW,f.$g,E.C],pipes:[l.X$],styles:[""]}),t}()},73916:function(t,e,i){"use strict";i.d(e,{P:function(){return Z}});var n=i(33642),r=i(84140),o=i(60611),a=i(4230),s=i(84608),u=i(88426),c=i(16073),l=i(31572),h=i(48160),d=i(61511),f=i(15980),p=i(67806),g=i(66283),m=i(80340),b=i(4786),w=i(71522);function _(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function A(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"mat-option",13),l.NdJ("click",function(){var t=l.CHM(i).$implicit;return l.oxw(2).srcFacility=t}),l._uU(1),l.qZA()}if(2&t){var n=e.$implicit;l.Q6J("value",n),l.xp6(1),l.hij(" ",n.name," ")}}function k(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div",7),l.TgZ(1,"mat-form-field"),l._UZ(2,"input",8),l.ALo(3,"translate"),l.TgZ(4,"mat-error"),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.qZA(),l.TgZ(7,"mat-form-field"),l._UZ(8,"input",9),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"mat-form-field"),l.TgZ(11,"mat-select",10),l.ALo(12,"translate"),l.TgZ(13,"mat-option",11),l.NdJ("click",function(){return l.CHM(i),l.oxw().srcFacility=null}),l._uU(14),l.ALo(15,"translate"),l.qZA(),l.YNc(16,A,2,2,"mat-option",12),l.qZA(),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(2),l.s9C("placeholder",l.lcZ(3,8,"DIALOGS.CREATE_FACILITY.NAME")),l.Q6J("formControl",n.nameControl),l.xp6(3),l.Oqu(l.lcZ(6,10,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),l.xp6(3),l.s9C("placeholder",l.lcZ(9,12,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),l.Q6J("formControl",n.descControl),l.xp6(3),l.s9C("placeholder",l.lcZ(12,14,"DIALOGS.CREATE_FACILITY.AS_COPY")),l.xp6(3),l.hij(" ",l.lcZ(15,16,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),l.xp6(2),l.Q6J("ngForOf",n.facilities)}}var T=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this.dialogRef=e,this.data=i,this.facilitiesManager=n,this.notificator=r,this.translate=o,this.nameControl=new c.NI("",[c.kI.required]),this.descControl=new c.NI(""),this.srcFacility=null,this.loading=!1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(function(e){t.facilities=e,t.loading=!1},function(){return t.loading=!1})}},{key:"copyFacilitySettings",value:function(t){var e=this;this.facilitiesManager.copyAttributes(this.srcFacility.id,t).subscribe(function(){e.facilitiesManager.copyManagers(e.srcFacility.id,t).subscribe(function(){e.facilitiesManager.copyOwners(e.srcFacility.id,t).subscribe(function(){e.handleSuccess()},function(){return e.loading=!1})},function(){return e.loading=!1})},function(){return e.loading=!1})}},{key:"onCreate",value:function(){var t=this;this.loading=!0,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe(function(e){null!==t.srcFacility?t.copyFacilitySettings(e.id):t.handleSuccess()})}},{key:"handleSuccess",value:function(){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.dialogRef.close(!0)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(s.so),l.Y36(s.WI),l.Y36(n.IQ),l.Y36(u.V6),l.Y36(h.sK))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-create-facility-dialog"]],decls:13,vars:15,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"],["mat-flat-button","","color","accent",1,"ml2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"],["disableOptionCentering","true",3,"placeholder"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,_,1,0,"mat-spinner",1),l.YNc(5,k,17,18,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onCreate()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,9,"DIALOGS.CREATE_FACILITY.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.Oqu(l.lcZ(9,11,"DIALOGS.CREATE_FACILITY.CANCEL")),l.xp6(2),l.Q6J("disabled",0===e.nameControl.value.trim().length||e.loading),l.xp6(1),l.Oqu(l.lcZ(12,13,"DIALOGS.CREATE_FACILITY.CREATE")))},directives:[d.O5,s.H8,f.lW,p.$g,s.xY,g.KE,m.Nt,c.Fj,c.Q7,c.JJ,c.oH,g.TO,b.gD,w.ey,d.sg],pipes:[h.X$],styles:[""]}),t}(),C=i(30570),S=i(48958),E=i(66297),x=i(43691),R=i(59403),I=i(19139),O=i(60007);function P(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-refresh-button",9),l.NdJ("refresh",function(){return l.CHM(i),l.oxw().refreshTable()}),l.qZA()}}function D(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",10),l.NdJ("click",function(){return l.CHM(i),l.oxw().onCreate()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"FACILITY_MANAGEMENT.CREATE")))}function M(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){return l.CHM(i),l.oxw().onDelete()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("disabled",0===n.selection.selected.length),l.xp6(1),l.Oqu(l.lcZ(2,2,"FACILITY_MANAGEMENT.DELETE"))}}function L(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",12),l.NdJ("filter",function(t){return l.CHM(i),l.oxw().applyFilter(t)}),l.qZA()}2&t&&l.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER")}function N(t,e){1&t&&l._UZ(0,"mat-spinner",13)}function z(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-facilities-list",14),l.NdJ("page",function(t){return l.CHM(i),l.oxw().pageChanged(t)}),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("pageSize",n.pageSize)("selection",n.selection)("filterValue",n.filterValue)("facilities",n.facilities)("recentIds",n.recentIds)}}var F=function(){return{color:"black"}},Z=function(){var t=function(){function t(e,i,n,r){v(this,t),this.facilityManager=e,this.sideMenuService=i,this.tableConfigService=n,this.dialog=r,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=o.xt,this.selection=new a.Ov(!1,[])}return y(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}},{key:"ngAfterViewChecked",value:function(){this.sideMenuService.setFacilityMenuItems([])}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(function(e){t.selection.clear(),t.facilities=e,t.recentIds=(0,r.vL)("facilities"),t.loading=!1})}},{key:"onCreate",value:function(){var t=this,e=(0,r.kZ)();e.width="800px",e.data={theme:"facility-theme"},this.dialog.open(T,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.refreshTable())})}},{key:"onDelete",value:function(){var t=this,e=(0,r.kZ)();e.width="500px",e.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(C.Y,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="FacilitySelectPageComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(n.IQ),l.Y36(S.D),l.Y36(o.dB),l.Y36(s.uw))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:12,vars:11,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",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","selection","filterValue","facilities","recentIds","page",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","selection","filterValue","facilities","recentIds","page"]],template:function(t,e){1&t&&(l.TgZ(0,"div",0),l._UZ(1,"perun-web-apps-back-button"),l.TgZ(2,"h1",1),l._UZ(3,"mat-icon",2),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.YNc(6,P,1,0,"perun-web-apps-refresh-button",3),l.YNc(7,D,3,3,"button",4),l.YNc(8,M,3,4,"button",5),l.YNc(9,L,1,2,"perun-web-apps-immediate-filter",6),l.YNc(10,N,1,0,"mat-spinner",7),l.YNc(11,z,1,5,"perun-web-apps-facilities-list",8),l.qZA()),2&t&&(l.xp6(3),l.Q6J("ngStyle",l.DdM(10,F)),l.xp6(1),l.hij(" ",l.lcZ(5,8,"FACILITY_MANAGEMENT.TITLE")," "),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[E.W,x.Hw,d.PC,d.O5,R.t,f.lW,I.L,p.$g,O.X],pipes:[h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t}()},92438:function(t,e,i){"use strict";i.d(e,{J:function(){return k}});var n=i(84608),r=i(88426),o=i(33642),a=i(84140),s=i(16073),u=i(31572),c=i(48160),l=i(66283),h=i(80340),d=i(4786),p=i(61511),g=i(15980),m=i(71522),b=function(){var t=function(){function t(e){v(this,t),this.translateService=e,this.returnData=""}return y(t,[{key:"transform",value:function(t){var e=this;switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe(function(t){e.returnData=t});break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.FROM_FEDERATION_HIDDEN").subscribe(function(t){e.returnData=t});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe(function(t){e.returnData=t});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe(function(t){e.returnData=t});break;case"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.FROM_FEDERATION_SHOW").subscribe(function(t){e.returnData=t});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe(function(t){e.returnData=t});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe(function(t){e.returnData=t});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe(function(t){e.returnData=t});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe(function(t){e.returnData=t});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe(function(t){e.returnData=t});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe(function(t){e.returnData=t});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe(function(t){e.returnData=t});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe(function(t){e.returnData=t});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe(function(t){e.returnData=t});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe(function(t){e.returnData=t});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe(function(t){e.returnData=t});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe(function(t){e.returnData=t});break;default:return t}return this.returnData}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(c.sK,16))},t.\u0275pipe=u.Yjl({name:"applicationFormWidgetDescription",type:t,pure:!0}),t}(),w=i(65050);function _(t,e){if(1&t&&(u.TgZ(0,"mat-option",9),u._uU(1),u.ALo(2,"applicationFormItemType"),u.qZA()),2&t){var i=e.$implicit;u.Q6J("value",i),u.xp6(1),u.hij(" ",u.lcZ(2,2,i)," ")}}function A(t,e){if(1&t&&(u.TgZ(0,"mat-option",9),u._uU(1),u.qZA()),2&t){var i=e.$implicit;u.Q6J("value",i),u.xp6(1),u.hij(" ",i," ")}}var k=function(){var t=function(){function t(e,i,n,r){v(this,t),this.dialogRef=e,this.data=i,this.translateService=n,this.store=r,this.languages=this.store.get("supportedLanguages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","FROM_FEDERATION_HIDDEN","HTML_COMMENT","TEXTFIELD","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION"]}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(function(e){t.nameCtrl=new s.NI("",[s.kI.required,s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),t.nameCtrl.markAllAsTouched(),t.items.push(e);var i,n=f(t.data.applicationFormItems);try{for(n.s();!(i=n.n()).done;){var r=i.value;t.items.push(r.shortname),r.type===o.Dy.EMBEDDEDGROUPAPPLICATION&&(t.widgets=t.widgets.filter(function(t){return t!==o.Dy.EMBEDDEDGROUPAPPLICATION}))}}catch(a){n.e(a)}finally{n.f()}t.selectedItem=e})}},{key:"cancel",value:function(){this.dialogRef.close(!1)}},{key:"submit",value:function(){var t=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,t])}},{key:"createApplicationItem",value:function(){var t=(0,a.dv)(this.languages);t.id=this.data.fakeId,t.shortname=this.nameCtrl.value,t.type=this.selectedWidget;for(var e=0;e0&&(i+=", "),i+=r.friendlyName.substring(16)+": "+r.value)}}catch(o){n.e(o)}finally{n.f()}return i}},{key:"getLoginsForCandidate",value:function(t){var e="";for(var i in t.attributes)Object.prototype.hasOwnProperty.call(t.attributes,i)&&-1!==i.indexOf("urn:perun:user:attribute-def:def:login-namespace:")&&null!=t.attributes[i]&&(e.length>0&&(e+=", "),e+=i.substring(49)+": "+t.attributes[i]);return e}},{key:"getAlreadyMember",value:function(t){if("vo"===this.type){if(null!=t.member)return"Member of VO"}else{if(null!=t.member&&0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType)return"Member of Group";if(null!=t.member&&0!==t.member.sourceGroupId&&"INDIRECT"===t.member.membershipType)return"Indirect member of Group";if(null!=t.member)return"Member of VO"}return""}},{key:"isCheckboxDisabled",value:function(t){return"vo"===this.type?null!=t.member:!!t.member&&0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType}},{key:"setAddAuth",value:function(){void 0!==this.group&&0!==this.selection.selected.length&&(this.addAuth=!!this.selection.selected[0].member||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.group]))}},{key:"itemSelectionToggle",value:function(t){this.selection.toggle(t),this.setAddAuth()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(r.x4))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-members-candidates-list"]],viewQuery:function(t,e){var i;(1&t&&(l.Gf(h.YE,5),l.Gf(u.l9,7)),2&t)&&(l.iGM(i=l.CRH())&&(e.matSort=i.first),l.iGM(i=l.CRH())&&(e.child=i.first))},inputs:{members:"members",selection:"selection",type:"type",pageSize:"pageSize",group:"group"},outputs:{page:"page"},features:[l.TTD],decls:29,vars:6,consts:[[1,"card","mt-2"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"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"]],template:function(t,e){1&t&&(l.TgZ(0,"div",0),l.TgZ(1,"perun-web-apps-table-wrapper",1),l.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),l.TgZ(2,"table",2),l.ynx(3,3),l.YNc(4,C,1,0,"th",4),l.YNc(5,S,2,2,"td",5),l.BQk(),l.ynx(6,6),l.YNc(7,E,3,3,"th",7),l.YNc(8,R,2,1,"td",8),l.BQk(),l.ynx(9,9),l.YNc(10,I,3,3,"th",7),l.YNc(11,O,4,5,"td",8),l.BQk(),l.ynx(12,10),l.YNc(13,P,3,3,"th",7),l.YNc(14,D,3,3,"td",8),l.BQk(),l.ynx(15,11),l.YNc(16,M,3,3,"th",7),l.YNc(17,L,2,1,"td",8),l.BQk(),l.ynx(18,12),l.YNc(19,N,3,3,"th",7),l.YNc(20,z,2,1,"td",8),l.BQk(),l.ynx(21,13),l.YNc(22,F,3,3,"th",7),l.YNc(23,Z,2,1,"td",8),l.BQk(),l.ynx(24,14),l.YNc(25,B,1,0,"th",7),l.YNc(26,q,2,1,"td",8),l.BQk(),l.YNc(27,U,1,0,"tr",15),l.YNc(28,H,1,0,"tr",16),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.xp6(1),l.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),l.xp6(1),l.Q6J("dataSource",e.dataSource),l.xp6(25),l.Q6J("matHeaderRowDef",e.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",e.displayedColumns))},directives:[p.l,d.BZ,h.YE,d.w1,d.fO,d.Dz,d.as,d.nj,d.ge,d.ev,g.oG,h.nU,m.O5,b.gM,d.XQ,d.Gk],pipes:[w.X$,_.u,A.f,k.d,T.Z],styles:[""]}),t}(),G=i(16073),Y=i(57629),V=i(66283),K=i(80340),J=i(15980),Q=i(67806),W=i(39571),X=i(8055),$=["list"];function tt(t,e){1&t&&l._UZ(0,"mat-spinner",10)}function et(t,e){1&t&&(l.TgZ(0,"app-alert",14),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NO_USERS_FOUND")," "))}function it(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"app-members-candidates-list",15,16),l.NdJ("page",function(t){return l.CHM(i),l.oxw(3).pageChanged(t)}),l.qZA()}if(2&t){var n=l.oxw(3);l.Q6J("group",n.data.group)("pageSize",n.pageSize)("selection",n.selection)("members",n.members)("type",n.data.type)}}function nt(t,e){if(1&t&&(l.TgZ(0,"div",11),l.YNc(1,et,3,3,"app-alert",12),l.YNc(2,it,2,5,"app-members-candidates-list",13),l.qZA()),2&t){var i=l.oxw(2);l.xp6(1),l.Q6J("ngIf",0===i.members.length&&i.firstSearchDone),l.xp6(1),l.Q6J("ngIf",0!==i.members.length)}}function rt(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div",4),l.TgZ(1,"mat-form-field",5),l.TgZ(2,"label"),l.TgZ(3,"input",6),l.NdJ("keyup.enter",function(){return l.CHM(i),l.oxw().onSearchByString()}),l.ALo(4,"translate"),l.qZA(),l.qZA(),l.TgZ(5,"mat-error"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.qZA(),l.TgZ(8,"button",7),l.NdJ("click",function(){return l.CHM(i),l.oxw().onSearchByString()}),l._uU(9),l.ALo(10,"translate"),l.qZA(),l.TgZ(11,"div",8),l.YNc(12,tt,1,0,"mat-spinner",2),l.qZA(),l.YNc(13,nt,3,2,"div",9),l.qZA()}if(2&t){var n=l.oxw();l.xp6(3),l.s9C("placeholder",l.lcZ(4,7,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),l.Q6J("formControl",n.searchCtrl),l.xp6(3),l.hij(" ",l.lcZ(7,9,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")," "),l.xp6(2),l.Q6J("disabled",n.loading),l.xp6(1),l.hij(" ",l.lcZ(10,11,"DIALOGS.ADD_MEMBERS.SEARCH")," "),l.xp6(3),l.Q6J("ngIf",n.loading),l.xp6(1),l.Q6J("ngIf",!!n.members&&!n.loading)}}function ot(t,e){1&t&&l._UZ(0,"mat-spinner",10)}function at(t,e){if(1&t&&(l.TgZ(0,"button",24),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t){l.oxw();var i=l.MAs(8),n=l.oxw();l.Q6J("disabled",0===n.selection.selected.length||n.loading)("matMenuTriggerFor",i),l.xp6(1),l.hij(" ",l.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function st(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",25),l.NdJ("click",function(){var t=l.CHM(i).$implicit;return l.oxw(2).onInvite(t)}),l._uU(1),l.ALo(2,"translate"),l.ALo(3,"uppercase"),l.qZA()}if(2&t){var n=e.$implicit;l.xp6(1),l.hij(" ",l.lcZ(2,1,l.lcZ(3,3,"SHARED_LIB.LANGUAGES."+n))," ")}}function ut(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div",17),l.TgZ(1,"button",18),l.NdJ("click",function(){return l.CHM(i),l.oxw().onCancel()}),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"span",19),l.ALo(5,"translate"),l.YNc(6,at,3,5,"button",20),l.TgZ(7,"mat-menu",null,21),l.YNc(9,st,4,5,"button",22),l.qZA(),l.qZA(),l.TgZ(10,"button",23),l.NdJ("click",function(){return l.CHM(i),l.oxw().onAdd()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,7,"DIALOGS.ADD_MEMBERS.CANCEL")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(5,9,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),l.Q6J("matTooltipDisabled",0===n.selection.selected.length||"group"!==n.data.type||void 0!==n.list&&n.list.addAuth),l.xp6(2),l.Q6J("ngIf","group"!==n.data.type||"group"===n.data.type&&n.inviteAuth),l.xp6(3),l.Q6J("ngForOf",n.languages),l.xp6(1),l.Q6J("disabled",0===n.selection.selected.length||n.loading||"group"===n.data.type&&void 0!==n.list&&!n.list.addAuth),l.xp6(1),l.hij(" ",l.lcZ(12,11,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}var ct=function(){var t=function(){function t(e,i,n,r,a,s,u,l,h,d,f,p,g){var m=this;v(this,t),this.dialogRef=e,this.data=i,this.membersManagerService=n,this.groupService=r,this.voService=a,this.registrarManager=s,this.translate=u,this.notificator=l,this.route=h,this.tableConfigService=d,this.router=f,this.guiAuthResolver=p,this.store=g,this.languages=["en"],this.selection=new o.Ov(!1,[]),this.members=[],this.firstSearchDone=!1,this.tableId=c.tY,this.inviteAuth=!1,u.get("DIALOGS.ADD_MEMBERS.TITLE").subscribe(function(t){return m.title=t})}return y(t,[{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onAdd",value:function(){this.processing=!0;var t=this.selection.selected[0];"vo"===this.data.type?t.richUser?this.addUserToVo(t):this.addCandidateToVo(t):"group"===this.data.type&&(t.member?this.addMemberToGroup(t):t.richUser?this.addUserToGroup(t):t.candidate&&this.addCandidateToGroup(t))}},{key:"onInvite",value:function(t){var e=this;this.processing=!0,this.selection.selected[0].richUser?"vo"===this.data.type?this.registrarManager.sendInvitationToExistingUser(this.selection.selected[0].richUser.id,this.data.entityId).subscribe(function(){e.onInviteSuccess()},function(){return e.onError()}):"group"===this.data.type&&this.registrarManager.sendInvitationGroupToExistingUser(this.selection.selected[0].richUser.id,this.data.voId,this.data.group.id).subscribe(function(){e.onInviteSuccess()},function(){return e.onError()}):"vo"===this.data.type?this.registrarManager.sendInvitation((0,u.Jc)(this.selection.selected[0].candidate),t,this.data.voId).subscribe(function(){e.onInviteSuccess()},function(){return e.onError()}):"group"===this.data.type&&this.registrarManager.sendInvitationForGroup((0,u.Jc)(this.selection.selected[0].candidate),t,this.data.voId,this.data.group.id).subscribe(function(){e.onInviteSuccess()},function(){return e.onError()})}},{key:"onSearchByString",value:function(){var t=this;this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.loading=!0,this.selection.clear(),"vo"===this.data.type?this.voService.getCompleteCandidatesForVo(this.data.entityId,[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(function(e){t.members=e,t.loading=!1,t.firstSearchDone=!0},function(){return t.loading=!1}):this.voService.getCompleteCandidatesForGroup(this.data.entityId,[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(function(e){t.members=e,t.loading=!1,t.firstSearchDone=!0},function(){return t.loading=!1}))}},{key:"ngOnInit",value:function(){this.languages=this.store.get("supportedLanguages"),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.theme=this.data.theme,"group"===this.data.type&&(this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group])),this.searchCtrl=new G.NI("",[G.kI.required,G.kI.pattern(".*[\\S]+.*")])}},{key:"addUserToVo",value:function(t){var e=this;this.membersManagerService.createMemberForUser({vo:this.data.entityId,user:t.richUser.id}).subscribe(function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe(function(){e.onValidateSuccess()},function(){return e.onCancel()})},function(){return e.onError()})}},{key:"addCandidateToVo",value:function(t){var e=this;this.membersManagerService.createMemberForCandidate({vo:this.data.entityId,candidate:this.createCandidate(t.candidate)}).subscribe(function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe(function(){e.onValidateSuccess()},function(){return e.onCancel()})},function(){return e.onError()})}},{key:"addUserToGroup",value:function(t){var e=this;this.membersManagerService.createMemberForUser({vo:this.data.voId,user:t.richUser.id,groups:[{id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId}]}).subscribe(function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe(function(){e.onValidateSuccess()},function(){return e.onCancel()})},function(){return e.onError()})}},{key:"addMemberToGroup",value:function(t){var e=this;this.groupService.addMembers(this.data.entityId,[t.member.id]).subscribe(function(){e.onAddSuccess()},function(){return e.onError()})}},{key:"addCandidateToGroup",value:function(t){var e=this,i={id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId};this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.createCandidate(t.candidate),groups:[i]}).subscribe(function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe(function(){e.onValidateSuccess()},function(){return e.onCancel()})},function(){return e.onError()})}},{key:"onAddSuccess",value:function(){var t=this;this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})}},{key:"onError",value:function(){this.selection.clear(),this.processing=!1}},{key:"onInviteSuccess",value:function(){var t=this;this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})}},{key:"onValidateSuccess",value:function(){this.dialogRef.close(!0)}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"createCandidate",value:function(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}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(n.so),l.Y36(n.WI),l.Y36(a.uq),l.Y36(a.ff),l.Y36(a.YF),l.Y36(a.tk),l.Y36(w.sK),l.Y36(r.V6),l.Y36(Y.gz),l.Y36(c.dB),l.Y36(Y.F0),l.Y36(r.x4),l.Y36(r.d6))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-add-member-dialog"]],viewQuery:function(t,e){var i;(1&t&&l.Gf($,5),2&t)&&(l.iGM(i=l.CRH())&&(e.list=i.first))},decls:7,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"ml-auto",3,"disabled","click"],[1,"no-bounce-scrollbar"],["class","mt-3",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"group","pageSize","selection","members","type","page",4,"ngIf"],["alert_type","warn"],[3,"group","pageSize","selection","members","type","page"],["list",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["class","ml-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,rt,14,13,"div",1),l.YNc(5,ot,1,0,"mat-spinner",2),l.YNc(6,ut,13,13,"div",3),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,7,"DIALOGS.ADD_MEMBERS.TITLE")),l.xp6(2),l.Q6J("ngIf",!e.processing),l.xp6(1),l.Q6J("ngIf",e.processing),l.xp6(1),l.Q6J("ngIf",!e.processing))},directives:[n.uh,m.O5,n.xY,V.KE,K.Nt,G.Fj,G.JJ,G.oH,V.TO,J.lW,Q.$g,W.w,j,n.H8,b.gM,X.VK,m.sg,X.p6,X.OP],pipes:[w.X$,m.gd],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}"]}),t}()},68570:function(t,e,i){"use strict";i.d(e,{W:function(){return p}});var n=i(84608),r=i(33642),o=i(88426),a=i(31572),s=i(48160),u=i(61511),c=i(19386),l=i(37665),h=i(15980),d=i(67806);function f(t,e){1&t&&a._UZ(0,"mat-spinner",9)}var p=function(){var t=function(){function t(e,i,n,r,o,a,s,u){var c=this;v(this,t),this.dialogRef=e,this.voService=i,this.groupService=n,this.translateService=r,this.registrarManager=o,this.notificatorService=a,this.apiRequest=s,this.data=u,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=function(t){return t.name},r.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(function(t){return c.successMessage=t}),r.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(function(t){return c.privilegeMessage=t}),r.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(function(t){return c.noFormMessage=t})}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.translateService.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_GROUP_SELECTED").subscribe(function(){t.voService.getMyVos().subscribe(function(e){t.vos=e.sort(function(t,e){return t.name>e.name?1:t.name-1),u.xp6(1),u.Q6J("label",u.lcZ(8,21,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE"))("description",u.lcZ(9,23,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION")),u.xp6(4),u.Q6J("value",n.applicationFormItem.perunSourceAttribute),u.xp6(1),u.Q6J("ngForOf",n.sourceAttributes),u.xp6(1),u.Q6J("label",u.lcZ(14,25,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE"))("description",u.lcZ(15,27,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION")),u.xp6(4),u.Q6J("value",n.applicationFormItem.perunDestinationAttribute),u.xp6(1),u.Q6J("ngForOf",n.destinationAttributes),u.xp6(1),u.Q6J("label",u.lcZ(20,29,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE"))("description",u.lcZ(21,31,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION")),u.xp6(4),u.Q6J("value",n.federationAttribute),u.xp6(1),u.Q6J("ngForOf",n.federationAttributes),u.xp6(1),u.Q6J("ngIf","custom"===n.federationAttribute)}}function Z(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"app-edit-application-form-item-line",11),u.ALo(2,"translate"),u.ALo(3,"translate"),u.TgZ(4,"mat-form-field",12),u.TgZ(5,"input",13),u.NdJ("ngModelChange",function(t){return u.CHM(i),u.oxw(2).applicationFormItem.regex=t}),u.qZA(),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=u.oxw(2);u.xp6(1),u.Q6J("label",u.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX"))("description",u.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION")),u.xp6(4),u.Q6J("ngModel",n.applicationFormItem.regex)}}function B(t,e){if(1&t&&(u.TgZ(0,"mat-option",24),u._uU(1),u.ALo(2,"applicationFormItemDisabled"),u.qZA()),2&t){var i=e.$implicit;u.Q6J("value",i),u.xp6(1),u.hij(" ",u.lcZ(2,2,i)," ")}}function q(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"perun-web-apps-app-form-item-search-select",25),u.NdJ("itemSelected",function(t){return u.CHM(i),u.oxw(3).disabledDependencyItem=t}),u.qZA()}if(2&t){var n=u.oxw(3);u.Q6J("item",n.disabledDependencyItem)("items",n.possibleDependencyItems)}}function U(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"app-edit-application-form-item-line",11),u.ALo(2,"translate"),u.ALo(3,"translate"),u.TgZ(4,"mat-form-field",12),u.TgZ(5,"mat-select",17),u.NdJ("valueChange",function(t){return u.CHM(i),u.oxw(2).applicationFormItem.disabled=t}),u.YNc(6,B,3,4,"mat-option",18),u.qZA(),u.qZA(),u.qZA(),u.TgZ(7,"app-edit-application-form-item-line",11),u.ALo(8,"translate"),u.ALo(9,"translate"),u.TgZ(10,"div",12),u.YNc(11,q,1,2,"perun-web-apps-app-form-item-search-select",19),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=u.oxw(2);u.xp6(1),u.Q6J("label",u.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED"))("description",u.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION")),u.xp6(4),u.Q6J("value",n.applicationFormItem.disabled),u.xp6(1),u.Q6J("ngForOf",n.disabledValues),u.xp6(1),u.Q6J("label",u.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY"))("description",u.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION")),u.xp6(4),u.Q6J("ngIf",null!==n.disabledDependencyItem)}}function H(t,e){if(1&t&&(u.TgZ(0,"mat-option",24),u._uU(1),u.ALo(2,"applicationFormItemHidden"),u.qZA()),2&t){var i=e.$implicit;u.Q6J("value",i),u.xp6(1),u.hij(" ",u.lcZ(2,2,i)," ")}}function j(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"perun-web-apps-app-form-item-search-select",25),u.NdJ("itemSelected",function(t){return u.CHM(i),u.oxw(2).hiddenDependencyItem=t}),u.qZA()}if(2&t){var n=u.oxw(2);u.Q6J("item",n.hiddenDependencyItem)("items",n.possibleDependencyItems)}}function G(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"app-edit-application-form-item-line",11),u.ALo(2,"translate"),u.ALo(3,"translate"),u.TgZ(4,"mat-form-field",12),u.TgZ(5,"textarea",26),u.NdJ("ngModelChange",function(t){u.CHM(i);var e=u.oxw().$implicit;return u.oxw(2).applicationFormItem.i18n[e].label=t}),u.qZA(),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=u.oxw().$implicit,r=u.oxw(2);u.xp6(1),u.Q6J("label",u.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT"))("description",u.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION")),u.xp6(4),u.Q6J("cdkTextareaAutosize",!0)("ngModel",r.applicationFormItem.i18n[n].label)}}function Y(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"app-edit-application-form-item-line",11),u.ALo(2,"translate"),u.ALo(3,"translate"),u.TgZ(4,"mat-form-field",12),u.TgZ(5,"textarea",13),u.NdJ("ngModelChange",function(t){u.CHM(i);var e=u.oxw().$implicit;return u.oxw(2).applicationFormItem.i18n[e].label=t}),u.qZA(),u.qZA(),u.qZA(),u.TgZ(6,"app-edit-application-form-item-line",11),u.ALo(7,"translate"),u.ALo(8,"translate"),u.TgZ(9,"mat-form-field",12),u.TgZ(10,"textarea",13),u.NdJ("ngModelChange",function(t){u.CHM(i);var e=u.oxw().$implicit;return u.oxw(2).applicationFormItem.i18n[e].help=t}),u.qZA(),u.qZA(),u.qZA(),u.TgZ(11,"app-edit-application-form-item-line",11),u.ALo(12,"translate"),u.ALo(13,"translate"),u.TgZ(14,"mat-form-field",12),u.TgZ(15,"textarea",13),u.NdJ("ngModelChange",function(t){u.CHM(i);var e=u.oxw().$implicit;return u.oxw(2).applicationFormItem.i18n[e].errorMessage=t}),u.qZA(),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=u.oxw().$implicit,r=u.oxw(2);u.xp6(1),u.Q6J("label",u.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",u.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION")),u.xp6(4),u.Q6J("ngModel",r.applicationFormItem.i18n[n].label),u.xp6(1),u.Q6J("label",u.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP"))("description",u.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION")),u.xp6(4),u.Q6J("ngModel",r.applicationFormItem.i18n[n].help),u.xp6(1),u.Q6J("label",u.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR"))("description",u.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION")),u.xp6(4),u.Q6J("ngModel",r.applicationFormItem.i18n[n].errorMessage)}}function V(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"app-edit-application-form-item-line",11),u.ALo(2,"translate"),u.ALo(3,"translate"),u.TgZ(4,"mat-form-field",12),u.TgZ(5,"textarea",13),u.NdJ("ngModelChange",function(t){u.CHM(i);var e=u.oxw().$implicit;return u.oxw(2).applicationFormItem.i18n[e].label=t}),u.qZA(),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=u.oxw().$implicit,r=u.oxw(2);u.xp6(1),u.Q6J("label",u.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",u.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION")),u.xp6(4),u.Q6J("ngModel",r.applicationFormItem.i18n[n].label)}}function K(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.TgZ(3,"mat-form-field"),u.TgZ(4,"input",13),u.NdJ("ngModelChange",function(t){return e.$implicit[0]=t}),u.qZA(),u.qZA(),u._uU(5),u.ALo(6,"translate"),u.TgZ(7,"mat-form-field"),u.TgZ(8,"input",13),u.NdJ("ngModelChange",function(t){return e.$implicit[1]=t}),u.qZA(),u.qZA(),u.TgZ(9,"button",35),u.NdJ("click",function(){var t=u.CHM(i).$implicit,e=u.oxw(2).$implicit;return u.oxw(2).removeOption(t,e)}),u.ALo(10,"translate"),u.TgZ(11,"mat-icon"),u._uU(12,"clear"),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=e.$implicit;u.xp6(1),u.hij(" ",u.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),u.xp6(3),u.Q6J("ngModel",n[0]),u.xp6(1),u.hij(" ",u.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),u.xp6(3),u.Q6J("ngModel",n[1]),u.xp6(1),u.s9C("matTooltip",u.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function J(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"div",27),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",28),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"div",29),u.TgZ(8,"button",30),u.NdJ("click",function(){u.CHM(i);var t=u.oxw().$implicit;return u.oxw(2).sortOptionsAZ(t)}),u.TgZ(9,"i",31),u._uU(10,"arrow_downward"),u.qZA(),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.TgZ(13,"button",32),u.NdJ("click",function(){u.CHM(i);var t=u.oxw().$implicit;return u.oxw(2).sortOptionsZA(t)}),u.TgZ(14,"i",31),u._uU(15,"arrow_upward"),u.qZA(),u._uU(16),u.ALo(17,"translate"),u.qZA(),u.qZA(),u.YNc(18,K,13,11,"div",33),u.TgZ(19,"button",34),u.NdJ("click",function(){u.CHM(i);var t=u.oxw().$implicit;return u.oxw(2).addOption(t)}),u._uU(20),u.ALo(21,"translate"),u.qZA(),u.qZA()}if(2&t){var n=u.oxw().$implicit,r=u.oxw(2);u.xp6(2),u.hij("",u.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),":"),u.xp6(3),u.hij(" ",u.lcZ(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),u.xp6(6),u.hij(" ",u.lcZ(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),u.xp6(5),u.hij(" ",u.lcZ(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),u.xp6(2),u.Q6J("ngForOf",r.options[n]),u.xp6(2),u.hij(" ",u.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}var Q=function(){return["HEADING","HTML_COMMENT"]},W=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION"]},X=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},$=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function tt(t,e){if(1&t&&(u.TgZ(0,"mat-tab",10),u.ALo(1,"translate"),u.ALo(2,"uppercase"),u.YNc(3,G,6,8,"div",16),u.YNc(4,Y,16,21,"div",16),u.YNc(5,V,6,7,"div",16),u.YNc(6,J,22,16,"div",16),u.qZA()),2&t){var i=e.$implicit,n=u.oxw(2);u.s9C("label",u.lcZ(1,5,u.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+i))),u.xp6(3),u.Q6J("ngIf",n.isApplicationFormItemOfType(u.DdM(9,Q))),u.xp6(1),u.Q6J("ngIf",n.isApplicationFormItemOfType(u.DdM(10,W))),u.xp6(1),u.Q6J("ngIf",n.isApplicationFormItemOfType(u.DdM(11,X))),u.xp6(1),u.Q6J("ngIf",n.isApplicationFormItemOfType(u.DdM(12,$)))}}var et=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]},it=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]};function nt(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div",8),u.TgZ(1,"mat-tab-group",9),u.TgZ(2,"mat-tab",10),u.ALo(3,"translate"),u.TgZ(4,"app-edit-application-form-item-line",11),u.ALo(5,"translate"),u.ALo(6,"translate"),u.TgZ(7,"mat-form-field",12),u.TgZ(8,"input",13),u.NdJ("ngModelChange",function(t){return u.CHM(i),u.oxw().applicationFormItem.shortname=t}),u.qZA(),u.qZA(),u.qZA(),u.TgZ(9,"app-edit-application-form-item-line",11),u.ALo(10,"translate"),u.ALo(11,"translate"),u._uU(12),u.ALo(13,"applicationFormItemType"),u.qZA(),u.TgZ(14,"app-edit-application-form-item-line",11),u.ALo(15,"translate"),u.ALo(16,"translate"),u.TgZ(17,"section"),u.TgZ(18,"mat-checkbox",14),u.NdJ("change",function(){return u.CHM(i),u.oxw().onChangingType("INITIAL")}),u._uU(19),u.ALo(20,"translate"),u.qZA(),u.TgZ(21,"mat-checkbox",15),u.NdJ("change",function(){return u.CHM(i),u.oxw().onChangingType("EXTENSION")}),u._uU(22),u.ALo(23,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(24,F,26,33,"div",16),u.YNc(25,Z,6,7,"div",16),u.YNc(26,U,12,15,"div",16),u.TgZ(27,"app-edit-application-form-item-line",11),u.ALo(28,"translate"),u.ALo(29,"translate"),u.TgZ(30,"mat-form-field",12),u.TgZ(31,"mat-select",17),u.NdJ("valueChange",function(t){return u.CHM(i),u.oxw().applicationFormItem.hidden=t}),u.YNc(32,H,3,4,"mat-option",18),u.qZA(),u.qZA(),u.qZA(),u.TgZ(33,"app-edit-application-form-item-line",11),u.ALo(34,"translate"),u.ALo(35,"translate"),u.TgZ(36,"div",12),u.YNc(37,j,1,2,"perun-web-apps-app-form-item-search-select",19),u.qZA(),u.qZA(),u.qZA(),u.YNc(38,tt,7,13,"mat-tab",20),u.qZA(),u.qZA()}if(2&t){var n=u.oxw();u.xp6(2),u.s9C("label",u.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),u.xp6(2),u.Q6J("label",u.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME"))("description",u.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION")),u.xp6(4),u.Q6J("ngModel",n.applicationFormItem.shortname),u.xp6(1),u.Q6J("label",u.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET"))("description",u.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION")),u.xp6(3),u.hij(" ",u.lcZ(13,34,n.applicationFormItem.type)," "),u.xp6(2),u.Q6J("label",u.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION"))("description",u.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION")),u.xp6(4),u.Q6J("ngModel",n.applicationFormItem.applicationTypes.includes("INITIAL")),u.xp6(1),u.hij(" ",u.lcZ(20,40,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),u.xp6(2),u.Q6J("ngModel",n.applicationFormItem.applicationTypes.includes("EXTENSION")),u.xp6(1),u.hij(" ",u.lcZ(23,42,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),u.xp6(2),u.Q6J("ngIf",n.isApplicationFormItemOfType(u.DdM(52,et))),u.xp6(1),u.Q6J("ngIf",n.isApplicationFormItemOfType(u.DdM(53,it))),u.xp6(1),u.Q6J("ngIf",n.typesWithDisabled.indexOf(n.applicationFormItem.type)>-1),u.xp6(1),u.Q6J("label",u.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN"))("description",u.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION")),u.xp6(4),u.Q6J("value",n.applicationFormItem.hidden),u.xp6(1),u.Q6J("ngForOf",n.hiddenValues),u.xp6(1),u.Q6J("label",u.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY"))("description",u.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION")),u.xp6(4),u.Q6J("ngIf",null!==n.hiddenDependencyItem),u.xp6(1),u.Q6J("ngForOf",n.languages)}}var rt=function t(e,i){v(this,t),this.value=i,this.displayName=e},ot=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this.dialogRef=e,this.data=i,this.attributesManager=n,this.translateService=r,this.store=o,this.federationAttributes=[],this.federationAttribute="",this.sourceAttributes=[],this.destinationAttributes=[],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"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"],this.languages=["en"]}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.languages=this.store.get("supportedLanguages"),this.hiddenDependencyItem=this.data.allItems.find(function(e){return e.id===t.data.applicationFormItem.hiddenDependencyItemId}),this.hiddenDependencyItem||(this.hiddenDependencyItem=a.Sx),this.disabledDependencyItem=this.data.allItems.find(function(e){return e.id===t.data.applicationFormItem.disabledDependencyItemId}),this.disabledDependencyItem||(this.disabledDependencyItem=a.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,o.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(function(e){t.attributeDefinitions=e,t.getDestinationAndSourceAttributes(),t.loading=!1},function(){return t.loading=!1}),this.getFederationAttributes(),this.getFederationAttribute(),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}},{key:"getPossibleDepItems",value:function(){var t=this;return[a.Sx].concat(this.data.allItems.filter(function(e){return t.dependencyTypes.indexOf(e.type)>-1}).filter(function(e){return e.id!==t.data.applicationFormItem.id}))}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===a.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===a.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}},{key:"onChangingType",value:function(t){if(this.applicationFormItem.applicationTypes.includes(t)){var e=this.applicationFormItem.applicationTypes.indexOf(t);this.applicationFormItem.applicationTypes.splice(e,1)}else this.applicationFormItem.applicationTypes.push(t)}},{key:"getDestinationAndSourceAttributes",value:function(){var t=this;this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(function(e){t.sourceAttributes.push(new rt(e,"")),t.destinationAttributes.push(new rt(e,""))});var e,i=f(this.attributeDefinitions);try{for(i.s();!(e=i.n()).done;){var n=e.value;"user"===n.entity.toLowerCase()||"member"===n.entity.toLowerCase()?(this.sourceAttributes.push(new rt(n.friendlyName+" ("+n.entity+" / "+this.getDefinition(n)+")",n.namespace+":"+n.friendlyName)),this.destinationAttributes.push(new rt(n.friendlyName+" ("+n.entity+" / "+this.getDefinition(n)+")",n.namespace+":"+n.friendlyName))):("vo"===n.entity.toLowerCase()||"group"===n.entity.toLowerCase()&&this.data.group)&&this.sourceAttributes.push(new rt(n.friendlyName+" ("+n.entity+" / "+this.getDefinition(n)+")",n.namespace+":"+n.friendlyName))}}catch(r){i.e(r)}finally{i.f()}}},{key:"getFederationAttributes",value:function(){var t=this;this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(function(e){t.federationAttributes.push(new rt(e,"")),t.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(function(e){t.federationAttributes.push(new rt(e,"custom")),t.federationAttributes.push(new rt("Display name","displayName")),t.federationAttributes.push(new rt("Common name","cn")),t.federationAttributes.push(new rt("Mail","mail")),t.federationAttributes.push(new rt("Organization","o")),t.federationAttributes.push(new rt("Level of Assurance (LoA)","loa")),t.federationAttributes.push(new rt("First name","givenName")),t.federationAttributes.push(new rt("Surname","sn")),t.federationAttributes.push(new rt("EPPN","eppn")),t.federationAttributes.push(new rt("IdP Category","md_entityCategory")),t.federationAttributes.push(new rt("IdP Affiliation","affiliation")),t.federationAttributes.push(new rt("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),t.federationAttributes.push(new rt("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),t.federationAttributes.push(new rt("schacHomeOrganization","schacHomeOrganization")),t.federationAttributes.push(new rt("Login","uid")),t.federationAttributes.push(new rt("Alternative login name","alternativeLoginName"))})})}},{key:"getFederationAttribute",value:function(){if(this.applicationFormItem.federationAttribute){var t,e=f(this.federationAttributes);try{for(e.s();!(t=e.n()).done;){var i=t.value;if(i.value===this.applicationFormItem.federationAttribute)return void(this.federationAttribute=i.value)}}catch(n){e.e(n)}finally{e.f()}this.federationAttribute="custom"}}},{key:"federationAttributeschanged",value:function(){this.applicationFormItem.federationAttribute="custom"!==this.federationAttribute?this.federationAttribute:""}},{key:"getDefinition",value:function(t){var e=t.namespace.split(":");return null===e[4]?"null":e[4]}},{key:"addOption",value:function(t){this.options[t].push(["",""])}},{key:"removeOption",value:function(t,e){this.options[e]=this.options[e].filter(function(e){return!(e[0]===t[0]&&e[1]===t[1])})}},{key:"updateOption",value:function(t){var e="";if(this.options&&this.options[t]){var i,n=f(this.options[t]);try{for(n.s();!(i=n.n()).done;){var r=i.value;""!==r[0]&&""!==r[1]&&(e=""===e?r[0]+"#"+r[1]:e+"|"+r[0]+"#"+r[1])}}catch(o){n.e(o)}finally{n.f()}}this.applicationFormItem.i18n[t].options=e}},{key:"updateOptions",value:function(){var t,e=f(this.languages);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.updateOption(i)}}catch(n){e.e(n)}finally{e.f()}}},{key:"copy",value:function(t,e){e.applicationTypes=t.applicationTypes,e.federationAttribute=t.federationAttribute,e.forDelete=t.forDelete;var i,n=f(this.languages);try{for(n.s();!(i=n.n()).done;){var r=i.value;e.i18n[r].errorMessage=t.i18n[r].errorMessage,e.i18n[r].help=t.i18n[r].help,e.i18n[r].label=t.i18n[r].label,e.i18n[r].options=t.i18n[r].options}}catch(o){n.e(o)}finally{n.f()}e.id=t.id,e.ordnum=t.ordnum,e.perunDestinationAttribute=t.perunDestinationAttribute,e.perunSourceAttribute=t.perunSourceAttribute,e.regex=t.regex,e.required=t.required,e.shortname=t.shortname,e.type=t.type,e.updatable=t.updatable,e.disabled=t.disabled,e.hidden=t.hidden,e.disabledDependencyItemId=t.disabledDependencyItemId,e.hiddenDependencyItemId=t.hiddenDependencyItemId}},{key:"sortOptionsAZ",value:function(t){this.options[t]=this.options[t].sort(function(t,e){return t[1]>e[1]?1:t[1]e[1]?-1:t[1]-1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(n.so),u.Y36(n.WI),u.Y36(r.H8),u.Y36(c.sK),u.Y36(s.d6))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-edit-application-form-item-dialog"]],decls:14,vars:16,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2","mt-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["color","primary"],[3,"label"],[3,"label","description"],[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"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["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"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-icon-button","","color","warn",3,"matTooltip","click"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"div",0),u.TgZ(2,"h1",1),u._uU(3),u.ALo(4,"translate"),u.qZA(),u.YNc(5,P,1,0,"mat-spinner",2),u.YNc(6,nt,39,54,"div",3),u.TgZ(7,"div",4),u.TgZ(8,"button",5),u.NdJ("click",function(){return e.cancel()}),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.TgZ(11,"button",6),u.NdJ("click",function(){return e.submit()}),u._uU(12),u.ALo(13,"translate"),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&t&&(u.Gre("",e.theme," h-100"),u.xp6(3),u.AsE("",u.lcZ(4,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",e.applicationFormItem.shortname,""),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(3),u.hij(" ",u.lcZ(10,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),u.xp6(2),u.Q6J("disabled",e.loading),u.xp6(1),u.hij(" ",u.lcZ(13,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},directives:[n.uh,l.O5,n.H8,h.lW,d.$g,n.xY,p.SP,p.uX,m,b.KE,w.Nt,_.Fj,_.JJ,_.On,A.oG,k.gD,l.sg,T.ey,C.Y,S.IC,E.gM,x.Hw],pipes:[c.X$,R.c,I,O,l.gd],styles:[""]}),t}()},79592:function(t,e,i){"use strict";i.d(e,{H:function(){return M}});var n=i(33642),r=i(84608),o=i(88426),a=i(67033),s=i(84140),u=i(61189),c=i(61511),l=i(31572),h=i(48160),d=i(15980),f=i(67806),p=i(43691),g=i(36922),m=i(22196);function b(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function w(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")))}function _(t,e){if(1&t&&(l.TgZ(0,"td",18),l._uU(1),l.qZA()),2&t){var i=e.$implicit;l.xp6(1),l.hij(" ",i.user.id," ")}}function A(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")))}function k(t,e){if(1&t&&(l.TgZ(0,"td",18),l._uU(1),l.ALo(2,"userFullName"),l.qZA()),2&t){var i=e.$implicit;l.xp6(1),l.hij(" ",l.lcZ(2,1,i.user)," ")}}function T(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")))}function C(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",20),l.NdJ("click",function(){l.CHM(i);var t=l.oxw().$implicit;return l.oxw(2).changeExpiration(t)}),l.TgZ(1,"mat-icon"),l._uU(2," today "),l.qZA(),l.qZA()}}function S(t,e){if(1&t&&(l.TgZ(0,"td",18),l.TgZ(1,"span"),l._uU(2),l.qZA(),l.YNc(3,C,3,0,"button",19),l.qZA()),2&t){var i=e.$implicit,n=l.oxw(2);l.xp6(2),l.Oqu(n.parseDate(i.validityTo)),l.xp6(1),l.Q6J("ngIf",n.isExpirationAuthorized(i))}}function E(t,e){1&t&&l._UZ(0,"th",17)}function x(t,e){1&t&&(l.TgZ(0,"mat-icon",25),l._uU(1,"clear"),l.qZA())}function R(t,e){1&t&&(l.TgZ(0,"mat-icon"),l._uU(1,"settings_backup_restore"),l.qZA())}function I(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"td",18),l.TgZ(1,"div",21),l.ALo(2,"translate"),l.TgZ(3,"button",22),l.NdJ("click",function(){var t=l.CHM(i).$implicit;return l.oxw(2).markSponsor(t)}),l.YNc(4,x,2,0,"mat-icon",23),l.YNc(5,R,2,0,"mat-icon",24),l.qZA(),l.qZA(),l.qZA()}if(2&t){var n=e.$implicit,r=l.oxw(2);l.xp6(1),l.s9C("matTooltip",l.lcZ(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),l.Q6J("matTooltipPosition","above")("matTooltipDisabled",r.isRemoveAuthorized(n)),l.xp6(2),l.Q6J("disabled",!r.isRemoveAuthorized(n)),l.xp6(1),l.Q6J("ngIf",!r.sponsorsToRemove.has(n.user.id)),l.xp6(1),l.Q6J("ngIf",r.sponsorsToRemove.has(n.user.id))}}function O(t,e){1&t&&l._UZ(0,"tr",26)}function P(t,e){if(1&t&&l._UZ(0,"tr",27),2&t){var i=e.$implicit,n=l.oxw(2);l.ekj("make-red",n.sponsorsToRemove.has(i.user.id))}}function D(t,e){if(1&t&&(l.TgZ(0,"div",7),l.TgZ(1,"table",8),l.ynx(2,9),l.YNc(3,w,3,3,"th",10),l.YNc(4,_,2,1,"td",11),l.BQk(),l.ynx(5,12),l.YNc(6,A,3,3,"th",10),l.YNc(7,k,3,3,"td",11),l.BQk(),l.ynx(8,13),l.YNc(9,T,3,3,"th",10),l.YNc(10,S,4,2,"td",11),l.BQk(),l.ynx(11,14),l.YNc(12,E,1,0,"th",10),l.YNc(13,I,6,8,"td",11),l.BQk(),l.YNc(14,O,1,0,"tr",15),l.YNc(15,P,1,2,"tr",16),l.qZA(),l.qZA()),2&t){var i=l.oxw();l.xp6(1),l.Q6J("dataSource",i.dataSource),l.xp6(13),l.Q6J("matHeaderRowDef",i.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",i.displayedColumns)}}var M=function(){var t=function(){function t(e,i,n,r,o,a,s,u){v(this,t),this.dialogRef=e,this.data=i,this.memberService=n,this.userService=r,this.notificator=o,this.authResolver=a,this.translate=s,this.dialog=u,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.expirationChanged=!1,this.sponsorsToRemove=new Set}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new a.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}},{key:"markSponsor",value:function(t){this.sponsorsToRemove.has(t.user.id)?this.sponsorsToRemove.delete(t.user.id):this.sponsorsToRemove.add(t.user.id)}},{key:"removeSponsors",value:function(t){var e=this;if(0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);var i=t.pop();this.memberService.removeSponsor(this.data.member.id,i).subscribe(function(){e.removeSponsors(t)},function(){return e.loading=!1})}},{key:"onSubmit",value:function(){this.loading=!0;var t=Array.from(this.sponsorsToRemove);this.removeSponsors(t)}},{key:"onCancel",value:function(){this.dialogRef.close(this.expirationChanged)}},{key:"isRemoveAuthorized",value:function(t){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[t.user])}},{key:"isExpirationAuthorized",value:function(t){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[t.user,this.vo])}},{key:"parseDate",value:function(t){return null===t?"Never expire":(0,c.p6)(t,"d.M.y","en")}},{key:"changeExpiration",value:function(t){var e=this,i=(0,s.kZ)();i.width="400px",i.data={memberId:this.data.member.id,sponsor:t},this.dialog.open(u.hd,i).afterClosed().subscribe(function(t){t&&(e.loading=!0,e.expirationChanged=!0,e.userService.getSponsorsForMember(e.data.member.id,[]).subscribe(function(t){e.sponsors=t,e.dataSource=new a.by(e.sponsors),e.loading=!1}))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(r.so),l.Y36(r.WI),l.Y36(n.uq),l.Y36(n.Fv),l.Y36(o.V6),l.Y36(o.x4),l.Y36(h.sK),l.Y36(r.uw))},t.\u0275cmp=l.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["mat-header-row","","class","font-weight-bolder",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"div"),l.YNc(4,b,1,0,"mat-spinner",1),l.YNc(5,D,16,3,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onSubmit()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),l.xp6(2),l.Tol(e.theme),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.hij(" ",l.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL"),""),l.xp6(2),l.Q6J("disabled",e.loading||0===e.sponsorsToRemove.size),l.xp6(1),l.hij(" ",l.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT"),""))},directives:[r.uh,c.O5,r.H8,d.lW,f.$g,r.xY,a.BZ,a.w1,a.fO,a.Dz,a.as,a.nj,a.ge,a.ev,p.Hw,g.gM,a.XQ,a.Gk],pipes:[h.X$,m.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:grey}"]}),t}()},88690:function(t,e,i){"use strict";i.d(e,{R:function(){return C}});var n=i(84608),r=i(16073),o=i(33642),a=i(88426),s=i(31572),u=i(48160),c=i(61511),l=i(15980),h=i(67806),d=i(66283),f=i(80340),p=i(4786),g=i(71522);function m(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function b(t,e){1&t&&(s.TgZ(0,"div",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function w(t,e){1&t&&(s.TgZ(0,"div",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function _(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function A(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function k(t,e){if(1&t&&(s.TgZ(0,"mat-option",15),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"uppercase"),s.qZA()),2&t){var i=e.$implicit;s.s9C("value",i),s.xp6(1),s.Oqu(s.lcZ(2,2,s.lcZ(3,4,"SHARED_LIB.LANGUAGES."+i)))}}function T(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",7),s.YNc(1,b,3,3,"div",8),s.YNc(2,w,3,3,"div",8),s.TgZ(3,"mat-form-field",9),s._UZ(4,"input",10),s.ALo(5,"translate"),s.YNc(6,_,3,3,"mat-error",11),s.qZA(),s.TgZ(7,"mat-form-field",9),s._UZ(8,"textarea",10),s.ALo(9,"translate"),s.YNc(10,A,3,3,"mat-error",11),s.qZA(),s.TgZ(11,"mat-form-field",9),s.TgZ(12,"mat-label"),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"mat-select",12),s.NdJ("valueChange",function(t){return s.CHM(i),s.oxw().currentLanguage=t}),s.YNc(16,k,4,6,"mat-option",13),s.qZA(),s.qZA(),s.qZA()}if(2&t){var n=s.oxw();s.xp6(1),s.Q6J("ngIf",!n.data.groupId),s.xp6(1),s.Q6J("ngIf",n.data.groupId),s.xp6(2),s.s9C("placeholder",s.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),s.Q6J("formControl",n.name),s.xp6(2),s.Q6J("ngIf",n.name.invalid),s.xp6(2),s.s9C("placeholder",s.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),s.Q6J("formControl",n.emailForm),s.xp6(2),s.Q6J("ngIf",n.emailForm.invalid),s.xp6(3),s.Oqu(s.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),s.xp6(2),s.Q6J("value",n.currentLanguage),s.xp6(1),s.Q6J("ngForOf",n.languages)}}var C=function(){var t=function(){function t(e,i,n,o,a,s){v(this,t),this.dialogRef=e,this.data=i,this.registrarManager=n,this.notificator=o,this.translate=a,this.store=s,this.emailForm=new r.NI("",[r.kI.required,r.kI.email]),this.languages=["en"],this.currentLanguage="en",this.name=new r.NI("",r.kI.required),this.loading=!1}return y(t,[{key:"ngOnInit",value:function(){this.languages=this.store.get("supportedLanguages"),this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;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(function(){t.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})):(this.loading=!0,this.registrarManager.sendInvitationForGroup(this.emailForm.value,this.currentLanguage,this.data.voId,this.data.groupId).subscribe(function(){t.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.so),s.Y36(n.WI),s.Y36(o.tk),s.Y36(a.V6),s.Y36(u.sK),s.Y36(a.d6))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","accent",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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,m,1,0,"mat-spinner",1),s.YNc(5,T,17,17,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.emailForm.invalid||e.name.invalid||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},directives:[n.uh,c.O5,n.H8,l.lW,h.$g,n.xY,d.KE,f.Nt,r.Fj,r.Q7,r.JJ,r.oH,d.hX,p.gD,c.sg,d.TO,g.ey],pipes:[u.X$,c.gd],styles:[""]}),t}()},57820:function(t,e,i){"use strict";i.d(e,{c:function(){return I}});var n=i(84608),r=i(16073),o=i(56238),a=i(79996),s=i(17),u=i(88426),c=i(33642),l=i(31572),h=i(48160),d=i(54810),f=i(61511),p=i(15980),g=i(36922),m=i(39571),b=i(66283),w=i(80340),_=i(40084),A=i(71522),k=i(67806);function T(t,e){1&t&&(l.TgZ(0,"mat-radio-button",12),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function C(t,e){1&t&&(l.TgZ(0,"mat-radio-button",13),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function S(t,e){1&t&&(l.TgZ(0,"app-alert",14),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function E(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"mat-option",20),l.NdJ("click",function(){var t=l.CHM(i).$implicit;return l.oxw(2).selectedGroup=t}),l.TgZ(1,"span"),l._uU(2),l.qZA(),l.qZA()}if(2&t){var n=e.$implicit;l.Q6J("value",n),l.xp6(2),l.Oqu(n.name)}}function x(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"mat-form-field",15),l.TgZ(1,"input",16),l.NdJ("change",function(){return l.CHM(i),l.oxw().selectedGroup=null}),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"mat-autocomplete",17,18),l.YNc(5,E,3,2,"mat-option",19),l.ALo(6,"async"),l.qZA(),l.qZA()}if(2&t){var n=l.MAs(4),r=l.oxw();l.Q6J("@openClose","toGroup"===r.moveOption?"open":"closed"),l.xp6(1),l.s9C("placeholder",l.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),l.Q6J("matAutocomplete",n)("formControl",r.otherGroupsCtrl),l.xp6(2),l.Q6J("displayWith",r.displayFn),l.xp6(2),l.Q6J("ngForOf",l.lcZ(6,8,r.filteredGroups))}}function R(t,e){1&t&&l._UZ(0,"mat-spinner",21)}var I=function(){var t=function(){function t(e,i,n,o,a,s,u){var c=this;v(this,t),this.dialogRef=e,this.data=i,this.groupService=n,this.notificator=o,this.translate=a,this.apiRequest=s,this.authResolver=u,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new r.NI(null,[r.kI.required]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(function(t){return c.successMessage=t}),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(function(t){return c.errorMessage=t})}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(function(e){t.otherGroups=e.filter(function(e){return e.id!==t.data.group.id&&"members"!==e.name&&t.canMove(e)}),0===t.otherGroups.length&&(t.toGroupOptionDisabled=!0),null!==t.data.group.parentGroupId&&t.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[t.data.group])||(t.toRootOptionDisabled=!0,t.moveOption="toGroup"),t.filteredGroups=t.otherGroupsCtrl.valueChanges.pipe((0,o.O)(""),(0,a.U)(function(e){return e?t._filterGroups(e):t.otherGroups.slice()})),t.loading=!1},function(){return t.loading=!1})}},{key:"displayFn",value:function(t){return t?t.name:t}},{key:"_filterGroups",value:function(t){if("object"==typeof t)return[];var e=t.toLowerCase();return t?this.otherGroups.filter(function(t){return t.name.toLowerCase().indexOf(e)>-1}):this.otherGroups}},{key:"canMove",value:function(t){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[t,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,t])}},{key:"close",value:function(){this.dialogRef.close()}},{key:"confirm",value:function(){var t=this;this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.groupService.moveGroupWithDestinationGroupMovingGroup(this.data.group.id,this.otherGroupsCtrl.value?this.otherGroupsCtrl.value.id:void 0).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.dialogRef.close(!0)},function(e){t.notificator.showRPCError(e,t.errorMessage),t.dialogRef.close(!1)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(n.so),l.Y36(n.WI),l.Y36(c.ff),l.Y36(u.V6),l.Y36(h.sK),l.Y36(u.F5),l.Y36(u.x4))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","value","toRoot","class","move-options",4,"ngIf"],["value","toGroup","color","primary",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["value","toGroup","color","primary"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","matAutocomplete","formControl","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",1),l.TgZ(5,"p"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.TgZ(8,"mat-radio-group",2),l.NdJ("ngModelChange",function(t){return e.moveOption=t}),l.YNc(9,T,3,3,"mat-radio-button",3),l.YNc(10,C,3,3,"mat-radio-button",4),l.qZA(),l.YNc(11,S,3,3,"app-alert",5),l.YNc(12,x,7,10,"mat-form-field",6),l.qZA(),l.YNc(13,R,1,0,"mat-spinner",7),l.TgZ(14,"div",8),l.TgZ(15,"button",9),l.NdJ("click",function(){return e.close()}),l._uU(16),l.ALo(17,"translate"),l.qZA(),l.TgZ(18,"span",10),l.ALo(19,"translate"),l.TgZ(20,"button",11),l.NdJ("click",function(){return e.confirm()}),l._uU(21),l.ALo(22,"translate"),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.data.theme),l.xp6(2),l.AsE("",l.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",e.data.group.name,""),l.xp6(4),l.hij(" ",l.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),l.xp6(2),l.Q6J("ngModel",e.moveOption),l.xp6(1),l.Q6J("ngIf",!e.toRootOptionDisabled),l.xp6(1),l.Q6J("ngIf",!e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",e.toRootOptionDisabled&&e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",!e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(3),l.hij(" ",l.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),l.Q6J("matTooltipPosition","above")("matTooltipDisabled",null!==e.selectedGroup||"toRoot"===e.moveOption),l.xp6(2),l.Q6J("disabled",(e.otherGroupsCtrl.invalid||null===e.selectedGroup)&&"toRoot"!==e.moveOption||e.loading),l.xp6(1),l.hij(" ",l.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},directives:[n.uh,n.xY,d.VQ,r.JJ,r.On,f.O5,n.H8,p.lW,g.gM,d.U0,m.w,b.KE,w.Nt,_.ZL,r.Fj,r.Q7,r.oH,_.XC,f.sg,A.ey,k.$g],pipes:[h.X$,f.Ov],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[s.BQ]}}),t}()},95121:function(t,e,i){"use strict";i.d(e,{m:function(){return _}});var n=i(84608),r=i(33642),o=i(88426),a=i(31572),s=i(48160),u=i(61511),c=i(15980),l=i(67806),h=i(66283),d=i(4786),f=i(71522);function p(t,e){1&t&&a._UZ(0,"mat-spinner",7)}function g(t,e){if(1&t&&(a.TgZ(0,"mat-option",13),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.Q6J("value",i),a.xp6(1),a.hij(" ",i.friendlyNameParameter," ")}}function m(t,e){if(1&t&&(a.TgZ(0,"mat-option",13),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"uppercase"),a.qZA()),2&t){var i=e.$implicit;a.Q6J("value",i),a.xp6(1),a.hij(" ",a.lcZ(2,2,a.lcZ(3,4,"SHARED_LIB.LANGUAGES."+i))," ")}}function b(t,e){if(1&t&&(a.TgZ(0,"mat-option",13),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.Q6J("value",i),a.xp6(1),a.hij(" ",i," ")}}function w(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",8),a.TgZ(1,"mat-form-field"),a.TgZ(2,"mat-label"),a._uU(3),a.ALo(4,"translate"),a.qZA(),a.TgZ(5,"mat-select",9),a.NdJ("valueChange",function(t){return a.CHM(i),a.oxw().selectedLogin=t}),a.YNc(6,g,2,2,"mat-option",10),a.qZA(),a.qZA(),a.TgZ(7,"mat-form-field"),a.TgZ(8,"mat-label"),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.TgZ(11,"mat-select",9),a.NdJ("valueChange",function(t){return a.CHM(i),a.oxw().selectedLang=t}),a.YNc(12,m,4,6,"mat-option",10),a.qZA(),a.qZA(),a.TgZ(13,"mat-form-field"),a.TgZ(14,"mat-label"),a._uU(15),a.ALo(16,"translate"),a.qZA(),a.TgZ(17,"mat-select",9),a.NdJ("valueChange",function(t){return a.CHM(i),a.oxw().selectedMail=t}),a.YNc(18,b,2,2,"mat-option",10),a.qZA(),a.qZA(),a.TgZ(19,"div",11),a.TgZ(20,"p",12),a._uU(21),a.ALo(22,"translate"),a.qZA(),a.TgZ(23,"p"),a._uU(24),a.qZA(),a.qZA(),a.qZA()}if(2&t){var n=a.oxw();a.xp6(3),a.Oqu(a.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),a.xp6(2),a.Q6J("value",n.selectedLogin),a.xp6(1),a.Q6J("ngForOf",n.logins),a.xp6(3),a.Oqu(a.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),a.xp6(2),a.Q6J("value",n.selectedLang),a.xp6(1),a.Q6J("ngForOf",n.languages),a.xp6(3),a.Oqu(a.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),a.xp6(2),a.Q6J("value",n.selectedMail),a.xp6(1),a.Q6J("ngForOf",n.mails),a.xp6(3),a.Oqu(a.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),a.xp6(3),a.Oqu(n.selectedLogin.value)}}var _=function(){var t=function(){function t(e,i,n,r,o,a,s){var u=this;v(this,t),this.dialogRef=e,this.data=i,this.membersManagerService=n,this.attributesManagerService=r,this.store=o,this.translate=a,this.notificator=s,this.languages=this.store.get("supportedLanguages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],a.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(function(t){return u.successMessage=t})}return y(t,[{key:"ngOnInit",value:function(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}},{key:"getMailAttributes",value:function(){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"}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,this.selectedLogin.friendlyNameParameter,this.pwdMails.get(this.selectedMail),this.selectedLang).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close()},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.uq),a.Y36(r.H8),a.Y36(o.d6),a.Y36(s.sK),a.Y36(o.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.YNc(4,p,1,0,"mat-spinner",2),a.qZA(),a.YNc(5,w,25,19,"div",3),a.TgZ(6,"div",4),a.TgZ(7,"button",5),a.NdJ("click",function(){return e.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",6),a.NdJ("click",function(){return e.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),a.xp6(3),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),a.xp6(2),a.Q6J("disabled",e.loading),a.xp6(1),a.hij(" ",a.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},directives:[n.uh,u.O5,n.H8,c.lW,l.$g,n.xY,h.KE,h.hX,d.gD,u.sg,f.ey],pipes:[s.X$,u.gd],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),t}()},4374:function(t,e,i){"use strict";i.d(e,{X:function(){return T}});var n=i(84608),r=i(67033),o=i(88426),a=i(33642),s=i(31572),u=i(48160),c=i(61511),l=i(67806),h=i(15980),d=i(22196);function f(t,e){1&t&&s._UZ(0,"th",13)}function p(t,e){if(1&t&&(s.TgZ(0,"td",14),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.id," ")}}function g(t,e){1&t&&s._UZ(0,"th",13)}function m(t,e){if(1&t&&(s.TgZ(0,"td",14),s._uU(1),s.ALo(2,"userFullName"),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",s.lcZ(2,1,i.user)," ")}}function b(t,e){1&t&&s._UZ(0,"tr",15)}function w(t,e){1&t&&s._UZ(0,"tr",16)}function _(t,e){if(1&t&&(s.TgZ(0,"div",4),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",5),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",6),s.ynx(8,7),s.YNc(9,f,1,0,"th",8),s.YNc(10,p,2,1,"td",9),s.BQk(),s.ynx(11,10),s.YNc(12,g,1,0,"th",8),s.YNc(13,m,3,3,"td",9),s.BQk(),s.YNc(14,b,1,0,"tr",11),s.YNc(15,w,1,0,"tr",12),s.qZA(),s.qZA()),2&t){var i=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,i.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),s.xp6(2),s.Q6J("dataSource",i.dataSource),s.xp6(7),s.Q6J("matHeaderRowDef",i.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",i.displayedColumns)}}function A(t,e){1&t&&s._UZ(0,"mat-spinner",17)}function k(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",18),s.TgZ(1,"button",19),s.NdJ("click",function(){return s.CHM(i),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",20),s.NdJ("click",function(){return s.CHM(i),s.oxw().onSubmit()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){var n=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),s.xp6(3),s.hij(" ",s.lcZ(6,4,n.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}var T=function(){var t=function(){function t(e,i,n,r,o,a){v(this,t),this.dialogRef=e,this.data=i,this.membersService=n,this.groupService=r,this.notificator=o,this.translate=a,this.displayedColumns=["id","name"]}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.by(this.data.members)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.data.groupId?this.groupService.removeMembers(this.data.groupId,this.data.members.map(function(t){return t.id})).subscribe(function(){return t.onSuccess()},function(){return t.onError()}):this.membersService.deleteMembers(this.data.members.map(function(t){return t.id})).subscribe(function(){return t.onSuccess()},function(){return t.onError()})}},{key:"onSuccess",value:function(){var t=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(t),this.dialogRef.close(!0),this.loading=!1}},{key:"onError",value:function(){this.loading=!1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.so),s.Y36(n.WI),s.Y36(a.uq),s.Y36(a.ff),s.Y36(o.V6),s.Y36(u.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-remove-members-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["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",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,_,16,9,"div",1),s.YNc(5,A,1,0,"mat-spinner",2),s.YNc(6,k,7,6,"div",3),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),s.xp6(2),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[n.uh,c.O5,n.xY,r.BZ,r.w1,r.fO,r.Dz,r.as,r.nj,r.ge,r.ev,r.XQ,r.Gk,l.$g,n.H8,h.lW],pipes:[u.X$,d.d],styles:[""]}),t}()},95909:function(t,e,i){"use strict";i.d(e,{f:function(){return l}});var n=i(84608),r=i(67033),o=i(88426),a=i(33642),s=i(31572),u=i(48160),c=i(20247),l=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.resourcesManager=o,this.displayedColumns=["name"],this.loading=!1}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.by(this.data.resources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onDelete",value:function(){var t=this;this.loading=!0,0===this.data.resources.length?this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(function(e){t.loading=!1,t.notificator.showSuccess(e),t.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(function(){t.data.resources.shift(),t.onDelete()},function(){t.dialogRef.close(!0)})}},{key:"onSubmit",value:function(t){t.deleted?this.onDelete():this.onCancel()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.so),s.Y36(n.WI),s.Y36(o.V6),s.Y36(u.sK),s.Y36(a.xk))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-remove-resource-dialog"]],decls:2,vars:6,consts:[[3,"entityNames","entityType","disableForce","deleted"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"app-delete-entity-dialog",0),s.NdJ("deleted",function(t){return e.onSubmit(t)}),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(1),s.Q6J("entityNames",e.dataSource)("entityType","resources")("disableForce",!0))},directives:[c.e],styles:[""]}),t}()},99608:function(t,e,i){"use strict";i.d(e,{o:function(){return l}});var n=i(84608),r=i(67033),o=i(88426),a=i(33642),s=i(31572),u=i(48160),c=i(20247),l=function(){var t=function(){function t(e,i,n,r,o){var a=this;v(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.voService=r,this.translate=o,this.force=!1,this.displayedColumns=["name"],this.relations=[],o.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(function(t){return a.successMessage=t})}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.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"))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onDelete",value:function(){var t=this;this.loading=!0,this.voService.deleteVo(this.data.vos[0].id,this.force).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"onSubmit",value:function(t){this.force=t.force,t.deleted?this.onDelete():this.onCancel()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.so),s.Y36(n.WI),s.Y36(o.V6),s.Y36(a.YF),s.Y36(u.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-remove-vo-dialog"]],decls:2,vars:6,consts:[[3,"entityNames","entityType","relations","deleted"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"app-delete-entity-dialog",0),s.NdJ("deleted",function(t){return e.onSubmit(t)}),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(1),s.Q6J("entityNames",e.dataSource)("entityType","organizations")("relations",e.relations))},directives:[c.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),t}()},24555:function(t,e,i){"use strict";i.d(e,{E:function(){return w}});var n=i(84608),r=i(33642),o=i(31572),a=i(61511),s=i(15980),u=i(67806),c=i(66283),l=i(80340),h=i(16073),d=i(4786),f=i(71522),p=i(48160);function g(t,e){1&t&&o._UZ(0,"mat-spinner",6)}function m(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"div"),o._uU(1),o.ALo(2,"translate"),o.TgZ(3,"mat-form-field",9),o.TgZ(4,"mat-select",10),o.NdJ("valueChange",function(t){return o.CHM(i),o.oxw(2).embeddedState=t}),o.TgZ(5,"mat-option",11),o._uU(6),o.ALo(7,"translate"),o.qZA(),o.TgZ(8,"mat-option",12),o._uU(9),o.ALo(10,"translate"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&t){var n=o.oxw(2);o.xp6(1),o.hij(" ",o.lcZ(2,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),": "),o.xp6(3),o.Q6J("value",n.embeddedState),o.xp6(2),o.Oqu(o.lcZ(7,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(10,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function b(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"div",7),o.TgZ(1,"div"),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-form-field"),o.TgZ(5,"input",8),o.NdJ("ngModelChange",function(t){return o.CHM(i),o.oxw().moduleName=t}),o.qZA(),o.qZA(),o.TgZ(6,"div"),o._uU(7),o.ALo(8,"translate"),o.qZA(),o.TgZ(9,"mat-form-field",9),o.TgZ(10,"mat-select",10),o.NdJ("valueChange",function(t){return o.CHM(i),o.oxw().initialState=t}),o.TgZ(11,"mat-option",11),o._uU(12),o.ALo(13,"translate"),o.qZA(),o.TgZ(14,"mat-option",12),o._uU(15),o.ALo(16,"translate"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(17,"div"),o._uU(18),o.ALo(19,"translate"),o.qZA(),o.TgZ(20,"mat-form-field",9),o.TgZ(21,"mat-select",10),o.NdJ("valueChange",function(t){return o.CHM(i),o.oxw().extensionState=t}),o.TgZ(22,"mat-option",11),o._uU(23),o.ALo(24,"translate"),o.qZA(),o.TgZ(25,"mat-option",12),o._uU(26),o.ALo(27,"translate"),o.qZA(),o.qZA(),o.qZA(),o.YNc(28,m,11,10,"div",13),o.qZA()}if(2&t){var n=o.oxw();o.xp6(2),o.Oqu(o.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),o.xp6(3),o.Q6J("ngModel",n.moduleName),o.xp6(2),o.hij(" ",o.lcZ(8,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),": "),o.xp6(3),o.Q6J("value",n.initialState),o.xp6(2),o.Oqu(o.lcZ(13,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(16,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.xp6(3),o.hij(" ",o.lcZ(19,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),": "),o.xp6(3),o.Q6J("value",n.extensionState),o.xp6(2),o.Oqu(o.lcZ(24,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(27,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.xp6(2),o.Q6J("ngIf","group"===n.entity&&n.autoRegistrationEnabled)}}var w=function(){var t=function(){function t(e,i,n){v(this,t),this.dialogRef=e,this.data=i,this.registrarManager=n,this.loading=!1}return y(t,[{key:"ngOnInit",value:function(){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}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){var t=this;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(function(e){t.dialogRef.close(e)},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.so),o.Y36(n.WI),o.Y36(r.tk))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["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","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","ngModelChange"],[1,"w-100"],["disableOptionCentering","",3,"value","valueChange"],["value","auto"],["value","manual"],[4,"ngIf"]],template:function(t,e){1&t&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,g,1,0,"mat-spinner",1),o.YNc(5,b,29,25,"div",2),o.TgZ(6,"div",3),o.TgZ(7,"button",4),o.NdJ("click",function(){return e.onCancel()}),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",5),o.NdJ("click",function(){return e.submit()}),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.Tol(e.theme),o.xp6(2),o.Oqu(o.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading),o.xp6(3),o.hij(" ",o.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),o.xp6(2),o.Q6J("disabled",e.loading),o.xp6(1),o.hij(" ",o.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},directives:[n.uh,a.O5,n.H8,s.lW,u.$g,n.xY,c.KE,l.Nt,h.Fj,h.JJ,h.On,d.gD,f.ey],pipes:[p.X$],styles:[""]}),t}()},86593:function(t,e,i){"use strict";i.d(e,{C:function(){return G}});var n=i(31572),r=i(58623),o=i(67033),a=i(4230),s=i(84140),u=i(88426),c=i(82819),l=i(61511),h=i(29236),d=i(43691),f=i(36922),p=i(84534),g=i(39571),m=i(48160),b=i(22196),w=i(35887),_=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return(0,s.kN)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"userEmail",type:t,pure:!0}),t}(),A=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return(0,s.$0)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"userLogins",type:t,pure:!0}),t}();function k(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",19),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw(2);return t?e.masterToggle():null}),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function T(t,e){if(1&t&&(n.TgZ(0,"th",17),n.YNc(1,k,1,3,"mat-checkbox",18),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Q6J("ngIf",i.selection.isMultipleSelection())}}function C(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",20),n.TgZ(1,"mat-checkbox",21),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))}}function S(t,e){1&t&&n._UZ(0,"th",17)}function E(t,e){1&t&&(n.TgZ(0,"mat-icon",23),n.ALo(1,"translate"),n._uU(2," account_circle "),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function x(t,e){1&t&&(n.TgZ(0,"mat-icon",23),n.ALo(1,"translate"),n._uU(2," traffic "),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"MANAGERS_LIST.SERVICE"))}function R(t,e){if(1&t&&(n.TgZ(0,"td",20),n.YNc(1,E,3,3,"mat-icon",22),n.YNc(2,x,3,3,"mat-icon",22),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf",!i.serviceUser),n.xp6(1),n.Q6J("ngIf",i.serviceUser)}}function I(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.ID")))}function O(t,e){if(1&t&&(n.TgZ(0,"td",20),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.hij(" ",i.id," ")}}function P(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.NAME")))}function D(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function M(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userVo"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function N(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userEmail"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function F(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function Z(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userLogins"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function B(t,e){1&t&&n._UZ(0,"tr",26)}var q=function(t){return["/admin/users",t]};function U(t,e){if(1&t&&n._UZ(0,"tr",27),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disableRouting),n.Q6J("perunWebAppsForceRouterLink",r.disableRouting?null:n.VKq(4,q,i.id))("perunWebAppsMiddleClickRouterLink",r.disableRouting?null:n.VKq(6,q,i.id))}}function H(t,e){1&t&&(n.TgZ(0,"app-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}function j(t,e){1&t&&(n.TgZ(0,"app-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var G=function(){var t=function(){function t(e,i){v(this,t),this.authResolver=e,this.tableCheckbox=i,this.selection=new a.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.pageSize=10,this.disableRouting=!1,this.filter="",this.page=new n.vpe,this.pageSizeOptions=s.f7}return y(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"getDataForColumn",value:function(t,e){var i;switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"true":"false";case"name":return t?t.lastName?t.lastName:null!==(i=t.firstName)&&void 0!==i?i:"":"";case"organization":return(0,s.OV)(t);case"email":return(0,s.kN)(t);case"logins":return(0,s.lt)(t);default:return""}}},{key:"getExportDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"service-user":"user";case"name":return t?(0,s.bD)(t):"";case"organization":return(0,s.OV)(t);case"email":return(0,s.kN)(t);case"logins":return(0,s.lt)(t);default:return""}}},{key:"exportData",value:function(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,s.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,s.pR)(e,i,t.getDataForColumn,t)}),this.dataSource.filter=this.filter,this.dataSource.data=this.users}},{key:"ngAfterViewInit",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t}))}},{key:"ngOnChanges",value:function(){this.setDataSource()}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filter,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.x4),n.Y36(u.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-users-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(s.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",filter:"filter"},outputs:{page:"page"},features:[n.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","user"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,T,2,1,"th",4),n.YNc(5,C,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,S,1,0,"th",4),n.YNc(8,R,3,2,"td",5),n.BQk(),n.ynx(9,7),n.YNc(10,I,3,3,"th",8),n.YNc(11,O,2,1,"td",5),n.BQk(),n.ynx(12,9),n.YNc(13,P,3,3,"th",8),n.YNc(14,D,3,3,"td",10),n.BQk(),n.ynx(15,11),n.YNc(16,M,3,3,"th",8),n.YNc(17,L,3,3,"td",10),n.BQk(),n.ynx(18,12),n.YNc(19,N,3,3,"th",8),n.YNc(20,z,3,3,"td",10),n.BQk(),n.ynx(21,13),n.YNc(22,F,3,3,"th",8),n.YNc(23,Z,3,3,"td",10),n.BQk(),n.YNc(24,B,1,0,"tr",14),n.YNc(25,U,1,8,"tr",15),n.qZA(),n.qZA(),n.qZA(),n.YNc(26,H,3,3,"app-alert",16),n.YNc(27,j,3,3,"app-alert",16)),2&t&&(n.Q6J("hidden",0===e.users.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(22),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.users.length),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.users.length))},directives:[c.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,d.Hw,f.gM,r.nU,o.XQ,o.Gk,p.Kd,p.YH,g.w],pipes:[m.X$,b.d,w.Z,_,A],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},65050:function(t,e,i){"use strict";i.d(e,{c:function(){return o}});var n=i(31572),r=i(48160),o=function(){var t=function(){function t(e){v(this,t),this.translateService=e,this.returnData=""}return y(t,[{key:"transform",value:function(t){var e=this;switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(function(t){e.returnData=t});break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_HIDDEN").subscribe(function(t){e.returnData=t});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HTML_COMMENT").subscribe(function(t){e.returnData=t});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTFIELD").subscribe(function(t){e.returnData=t});break;case"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_SHOW").subscribe(function(t){e.returnData=t});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.VALIDATED_EMAIL").subscribe(function(t){e.returnData=t});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.USERNAME").subscribe(function(t){e.returnData=t});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.PASSWORD").subscribe(function(t){e.returnData=t});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SELECTIONBOX").subscribe(function(t){e.returnData=t});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTAREA").subscribe(function(t){e.returnData=t});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.COMBOBOX").subscribe(function(t){e.returnData=t});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.CHECKBOX").subscribe(function(t){e.returnData=t});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SUBMIT_BUTTON").subscribe(function(t){e.returnData=t});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.RADIO").subscribe(function(t){e.returnData=t});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TIMEZONE").subscribe(function(t){e.returnData=t});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.AUTO_SUBMIT_BUTTON").subscribe(function(t){e.returnData=t});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.EMBEDDED_GROUP_APPLICATION").subscribe(function(t){e.returnData=t});break;default:return t}return this.returnData}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.sK,16))},t.\u0275pipe=n.Yjl({name:"applicationFormItemType",type:t,pure:!0}),t}()},84650:function(t,e,i){"use strict";i.d(e,{h:function(){return o}});var n=i(31572),r=i(48160),o=function(){var t=function(){function t(e){v(this,t),this.translate=e,this.returnData=""}return y(t,[{key:"transform",value:function(t){var e=this;switch(t){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(function(t){e.returnData='done'.concat(t)});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(function(t){e.returnData='clear'.concat(t)});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(function(t){e.returnData='contact_mail '.concat(t)});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(function(t){e.returnData='gavel'.concat(t)});break;default:this.returnData=t}return this.returnData}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.sK,16))},t.\u0275pipe=n.Yjl({name:"applicationState",type:t,pure:!1}),t}()},99373:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return t.substring(40)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"extSourceType",type:t,pure:!0}),t}()},35887:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return(0,n.OV)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"userVo",type:t,pure:!0}),t}()},28780:function(t,e,i){"use strict";i.d(e,{m:function(){return xt}});var n=i(61511),r=i(57629),o=i(40084),a=i(15980),s=i(29236),u=i(71522),c=i(15812),l=i(84608),h=i(27679),d=i(45001),f=i(66283),p=i(43691),g=i(80340),m=i(73005),b=i(45994),w=i(67806),_=i(54810),A=i(4786),k=i(25122),T=i(27521),C=i(71403),S=i(58623),E=i(67033),x=i(55109),R=i(36922),I=i(91010),O=i(27439),P=i(41050),D=i(10033),M=i(8055),L=i(70663),N=i(16073),z=i(24081),F=i(17),Z=i(88426),B=i(31572),q=i(84534),U=i(48160),H=["collapse"],j=function(){return{color:"linkTextColor"}};function G(t,e){1&t&&(B.TgZ(0,"mat-icon",14),B._uU(1,"keyboard_arrow_right"),B.qZA()),2&t&&B.Q6J("ngStyle",B.DdM(1,j))}function Y(t,e){1&t&&(B.TgZ(0,"mat-icon",14),B._uU(1,"keyboard_arrow_down"),B.qZA()),2&t&&B.Q6J("ngStyle",B.DdM(1,j))}function V(t,e){if(1&t&&(B.TgZ(0,"span",12),B.YNc(1,G,2,2,"mat-icon",13),B.YNc(2,Y,2,2,"mat-icon",13),B.qZA()),2&t){var i=B.oxw().$implicit,n=B.oxw(2);B.xp6(1),B.Q6J("ngIf",!n.isActive(n.currentUrl,i.showChildrenRegex)),B.xp6(1),B.Q6J("ngIf",n.isActive(n.currentUrl,i.showChildrenRegex))}}var K=function(t,e){return{color:t,"border-color":e}};function J(t,e){if(1&t){var i=B.EpF();B.TgZ(0,"a",17),B.NdJ("click",function(){var t=B.CHM(i).$implicit;return B.oxw(4).navigate(t.url)}),B._uU(1),B.ALo(2,"translate"),B.qZA()}if(2&t){var n=e.$implicit,r=B.oxw(4);B.ekj("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),B.Q6J("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:"")("ngStyle",B.WLB(9,K,r.linkTextColor,r.linkTextColor)),B.xp6(1),B.hij(" ",B.lcZ(2,7,n.label)," ")}}function Q(t,e){if(1&t&&(B.TgZ(0,"div",15),B.YNc(1,J,3,12,"a",16),B.qZA()),2&t){var i=B.oxw().$implicit;B.Q6J("@rollInOut",void 0),B.xp6(1),B.Q6J("ngForOf",null==i?null:i.children)}}function W(t,e){if(1&t){var i=B.EpF();B.TgZ(0,"div"),B.TgZ(1,"a",9),B.NdJ("click",function(){var t=B.CHM(i).$implicit;return B.oxw(2).navigate(t.url)}),B._uU(2),B.ALo(3,"translate"),B.YNc(4,V,3,2,"span",10),B.qZA(),B.YNc(5,Q,2,2,"div",11),B.qZA()}if(2&t){var n=e.$implicit,r=B.oxw(2);B.xp6(1),B.ekj("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),B.Q6J("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:"")("ngStyle",B.WLB(11,K,r.linkTextColor,r.linkTextColor)),B.xp6(1),B.hij(" ",B.lcZ(3,9,n.label)," "),B.xp6(2),B.Q6J("ngIf",n.children),B.xp6(1),B.Q6J("ngIf",r.isActive(r.currentUrl,n.showChildrenRegex))}}function X(t,e){if(1&t&&(B.TgZ(0,"div"),B.YNc(1,W,6,14,"div",8),B.qZA()),2&t){var i=B.oxw();B.Q6J("@rollInOut",void 0),B.xp6(1),B.Q6J("ngForOf",i.item.links)}}var $=function(t,e){return{background:t,"border-top":e}},tt=function(t){return{color:t}},et=function(){return{color:"currentColor"}},it=function(t){return{background:t}},nt=function(){var t=function(){function t(e,i){var n=this;v(this,t),this.router=e,this.store=i,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.iconColor=this.store.get("theme","sidemenu_item_icon_color"),this.dividerStyle="1px solid "+this.store.get("theme","sidemenu_divider_color"),this.currentUrl=e.url,e.events.subscribe(function(t){t instanceof r.m2&&(n.currentUrl=t.url)})}return y(t,[{key:"toggle",value:function(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}},{key:"isActive",value:function(t,e){return new RegExp(e).test(t)}},{key:"navigate",value:function(t){var e=this;"over"===this.sideNav.mode?this.sideNav.close().then(function(){return e.router.navigate(t)}):this.router.navigate(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(B.Y36(r.F0),B.Y36(Z.d6))},t.\u0275cmp=B.Xpm({type:t,selectors:[["app-side-menu-item"]],viewQuery:function(t,e){var i;(1&t&&B.Gf(H,5),2&t)&&(B.iGM(i=B.CRH())&&(e.collapseDiv=i.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(t,e){1&t&&(B.TgZ(0,"div",0),B.TgZ(1,"div",1),B.NdJ("click",function(){return e.toggle()}),B.TgZ(2,"div",2),B.TgZ(3,"a",3),B.TgZ(4,"div"),B._UZ(5,"mat-icon",4),B.qZA(),B.TgZ(6,"div",5),B._uU(7),B.ALo(8,"translate"),B.qZA(),B.qZA(),B.qZA(),B.qZA(),B.TgZ(9,"div"),B.TgZ(10,"div",6),B.YNc(11,X,2,2,"div",7),B.qZA(),B.qZA(),B.qZA()),2&t&&(B.xp6(1),B.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",B.WLB(18,$,e.item.backgroundColorCss,e.index?e.dividerStyle:"none")),B.xp6(1),B.Gre("entity-menu-item-link ",e.item.labelClass,""),B.Q6J("perunWebAppsMiddleClickRouterLink",e.item.baseLink),B.xp6(1),B.Q6J("ngStyle",B.VKq(21,tt,e.item.textColorCss)),B.xp6(2),B.Q6J("ngStyle",B.DdM(23,et))("svgIcon",e.item.icon),B.xp6(2),B.Oqu(B.lcZ(8,16,e.item.label)),B.xp6(2),B.Q6J("@openClose",e.expanded?"open":"closed"),B.xp6(1),B.Gre("side-entity-menu ",e.item.linksClass,""),B.Q6J("ngStyle",B.VKq(24,it,e.linkBgColor)),B.xp6(1),B.Q6J("ngIf",e.showLinks))},directives:[u.wG,n.PC,q.YH,p.Hw,n.O5,n.sg,n.mk],pipes:[U.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:[F.BQ,F.Ly]}}),t}(),rt=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){if(void 0===t.value)return"";switch(t.type){case"java.lang.String":return t.value;case"java.lang.Integer":return t.value.toString();case"java.util.ArrayList":return this.whenValueIsArray(t.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(t.value);case"java.lang.Boolean":return t.value.toString();default:return t.value}}},{key:"whenValueIsArray",value:function(t){var e="";return t.forEach(function(t){e=e.concat(t+", ")}),e}},{key:"whenValueIsMap",value:function(t){var e="";return t.forEach(function(t,i){e=e.concat(i+": "+t+", ")}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=B.Yjl({name:"anyToString",type:t,pure:!0}),t}(),ot=["collapse"],at=function(){return{color:"linkTextColor"}};function st(t,e){1&t&&(B.TgZ(0,"mat-icon",12),B._uU(1,"keyboard_arrow_right"),B.qZA()),2&t&&B.Q6J("ngStyle",B.DdM(1,at))}function ut(t,e){1&t&&(B.TgZ(0,"mat-icon",12),B._uU(1,"keyboard_arrow_down"),B.qZA()),2&t&&B.Q6J("ngStyle",B.DdM(1,at))}function ct(t,e){if(1&t&&(B.TgZ(0,"span",10),B.YNc(1,st,2,2,"mat-icon",11),B.YNc(2,ut,2,2,"mat-icon",11),B.qZA()),2&t){var i=B.oxw().$implicit,n=B.oxw();B.xp6(1),B.Q6J("ngIf",!n.isActive(n.currentUrl,i.showChildrenRegex)),B.xp6(1),B.Q6J("ngIf",n.isActive(n.currentUrl,i.showChildrenRegex))}}var lt=function(t,e){return{color:t,"border-color":e}};function ht(t,e){if(1&t){var i=B.EpF();B.TgZ(0,"a",14),B.NdJ("click",function(){var t=B.CHM(i).$implicit;return B.oxw(3).navigate(t.url)}),B._uU(1),B.ALo(2,"translate"),B.qZA()}if(2&t){var n=e.$implicit,r=B.oxw(3);B.ekj("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),B.Q6J("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",B.WLB(9,lt,r.linkTextColor,r.linkTextColor))("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:""),B.xp6(1),B.hij(" ",B.lcZ(2,7,n.label)," ")}}function dt(t,e){if(1&t&&(B.TgZ(0,"div"),B.YNc(1,ht,3,12,"a",13),B.qZA()),2&t){var i=B.oxw().$implicit;B.Q6J("@rollInOut",void 0),B.xp6(1),B.Q6J("ngForOf",null==i?null:i.children)}}function ft(t,e){if(1&t){var i=B.EpF();B.TgZ(0,"div"),B.TgZ(1,"a",7),B.NdJ("click",function(){var t=B.CHM(i).$implicit;return B.oxw().navigate(t.url)}),B._uU(2),B.ALo(3,"translate"),B.YNc(4,ct,3,2,"span",8),B.qZA(),B.YNc(5,dt,2,2,"div",9),B.qZA()}if(2&t){var n=e.$implicit,r=B.oxw();B.xp6(1),B.ekj("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),B.Q6J("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",B.WLB(11,lt,r.linkTextColor,r.linkTextColor))("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:""),B.xp6(1),B.hij(" ",B.lcZ(3,9,n.label)," "),B.xp6(2),B.Q6J("ngIf",n.children),B.xp6(1),B.Q6J("ngIf",r.isActive(r.currentUrl,n.showChildrenRegex))}}var pt=function(t){return{background:t}},gt=function(t){return{color:t}},vt=function(){return{color:"currentColor"}},mt=function(){var t=function(){function t(e,i){var n=this;v(this,t),this.router=e,this.store=i,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.iconColor=this.store.get("theme","sidemenu_item_icon_color"),this.currentUrl=e.url,e.events.subscribe(function(t){t instanceof r.m2&&(n.currentUrl=t.url)})}return y(t,[{key:"ngOnInit",value:function(){this.expanded=this.showOpen}},{key:"ngOnChanges",value:function(){this.expanded=this.showOpen}},{key:"toggle",value:function(){void 0!==this.item.baseLink?this.navigate(this.item.baseLink):this.expanded=!this.expanded}},{key:"isActive",value:function(t,e){return new RegExp(e).test(t)}},{key:"getBgClass",value:function(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}},{key:"navigate",value:function(t){var e=this;"over"===this.sideNav.mode?this.sideNav.close().then(function(){return e.router.navigate(t)}):this.router.navigate(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(B.Y36(r.F0),B.Y36(Z.d6))},t.\u0275cmp=B.Xpm({type:t,selectors:[["app-side-menu-root-item"]],viewQuery:function(t,e){var i;(1&t&&B.Gf(ot,5),2&t)&&(B.iGM(i=B.CRH())&&(e.collapseDiv=i.first))},inputs:{item:"item",index:"index",showOpen:"showOpen",sideNav:"sideNav"},features:[B.TTD],decls:12,vars:27,consts:[[1,"entity-menu-item"],["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","ngStyle","ngClass","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"],["matRipple","","class","pl-5 clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","activated","ngClass","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","ngClass","click"]],template:function(t,e){1&t&&(B.TgZ(0,"div",0),B.TgZ(1,"div",1),B.NdJ("click",function(){return e.toggle()}),B.TgZ(2,"div"),B.TgZ(3,"a",2),B.TgZ(4,"div"),B._UZ(5,"mat-icon",3),B.qZA(),B.TgZ(6,"div",4),B._uU(7),B.ALo(8,"translate"),B.qZA(),B.qZA(),B.qZA(),B.qZA(),B.TgZ(9,"div"),B.TgZ(10,"div",5),B.YNc(11,ft,6,14,"div",6),B.qZA(),B.qZA(),B.qZA()),2&t&&(B.xp6(1),B.ekj("root-header-activated",e.isActive(e.currentUrl,e.item.baseColorClassRegex)),B.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",B.VKq(20,pt,e.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",e.item.baseLink),B.xp6(1),B.Gre("entity-menu-item-link ",e.item.labelClass,""),B.xp6(1),B.Q6J("ngStyle",B.VKq(22,gt,e.item.textColorCss)),B.xp6(2),B.Q6J("ngStyle",B.DdM(24,vt))("svgIcon",e.item.icon),B.xp6(2),B.Oqu(B.lcZ(8,18,e.item.label)),B.xp6(2),B.Q6J("@openClose",e.expanded?"open":"closed"),B.xp6(1),B.Gre("side-entity-menu ",e.item.linksClass,""),B.Q6J("ngStyle",B.VKq(25,pt,e.linkBgColor)),B.xp6(1),B.Q6J("ngForOf",e.item.links))},directives:[u.wG,n.PC,q.YH,p.Hw,n.sg,n.mk,n.O5],pipes:[U.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:[F.BQ,F.Ly]}}),t}(),yt=i(88975),bt=i(4253),wt=i(22727),_t=i(99373),At=i(41939),kt=i(7423),Tt=i(22280),Ct=i(30146),St=i(85250),Et=i(84140),xt=function(){var t=function t(e){v(this,t),this.translate=e,e.addLangs(["en","cs"])};return t.\u0275fac=function(e){return new(e||t)(B.LFG(U.sK))},t.\u0275mod=B.oAB({type:t}),t.\u0275inj=B.cJS({providers:[rt,_t.A],imports:[[n.ez,r.Bz,o.Bb,g.c,f.lN,N.UX,N.u5,p.Ps,k.SJ,d.To,U.aw.forChild({}),a.ot,S.JX,E.p0,x.Nh,I.dp,a.ot,s.p9,l.Is,A.LD,C.ZX,w.Cq,b.Cv,R.AV,T.rP,c.FA,u.XK,_.Fk,h.t,u.si,m.TU,O.QW,L.T5,yt._t,O.QW,D.Hi,M.Tx,bt.Cl,wt.r,P.g,At.ez,kt.r,Tt.d4,Ct.Co,St.ie,Et.Je],Ct.Co,o.Bb,g.c,r.Bz,N.UX,N.u5,p.Ps,k.SJ,U.aw,S.JX,E.p0,x.Nh,I.dp,a.ot,s.p9,l.Is,A.LD,C.ZX,w.Cq,b.Cv,R.AV,T.rP,c.FA,u.XK,_.Fk,h.t,O.QW,L.T5,u.si,m.TU,yt._t,D.Hi,D.Hi,d.To,M.Tx,bt.Cl,bt.Cl,bt.Cl,kt.r]}),t}();B.B6R(z.V,[mt,n.sg,nt,n.O5],[])},75585:function(t,e,i){"use strict";i.d(e,{V:function(){return l}});var n=i(88426),r=i(33642),o=i(84140),a=i(22280),s=i(67004),u=i(31572),c=i(48160),l=function(){var t=function(){function t(e,i,n,r,o,a,s){v(this,t),this.translate=e,this.authResolver=i,this.store=n,this.apiRequest=r,this.attributesManager=o,this.notificator=a,this.guiAuthResolver=s,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")}return y(t,[{key:"getFacilitiesManagementItem",value:function(){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}}},{key:"getAccessManagementItem",value:function(){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}}},{key:"getHomeItem",value:function(){return{baseLink:["/home"],label:"MAIN_MENU.HOME",colorClass:"base-item-color-activated",icon:"perun-home-white",baseColorClass:"base-item-color",baseColorClassRegex:"^dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor,links:[]}}},{key:"getUserItem",value:function(){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.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"}]}}},{key:"getAdminItem",value:function(){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$"}]}}},{key:"parseFacility",value:function(t){return{label:t.name,baseLink:["/facilities/".concat(t.id)],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(t),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseResource",value:function(t,e){var i=(new a.r5).transform(t,e);return{label:t.name,baseLink:[i],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(i,e?"/organizations":"/facilities",t),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"getResourceLinks",value:function(t,e,i){var n=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[t],activatedRegex:"".concat(e,"/\\d+/resources/\\d+$")}];return this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[t,"groups"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/groups$")}),this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[t,"services"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/services$")}),this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[t,"members"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/members$")}),this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[t,"tags"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/tags$")}),n.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[t,"attributes"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/attributes$")}),this.authResolver.isManagerPagePrivileged(i)&&n.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[t,"settings"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/settings$"),children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[t,"settings","managers"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/settings/managers$")}],showChildrenRegex:"".concat(e,"/\\d+/resources/\\d+/settings")}),n}},{key:"parseGroup",value:function(t){return{label:t.name,baseLink:["/organizations/".concat(t.voId,"/groups/").concat(t.id)],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(t),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseVo",value:function(t){return{label:t.name,baseLink:["/organizations/".concat(t.id)],links:this.getVoLinks(t),colorClass:"vo-item",icon:"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}},{key:"parseMember",value:function(t,e){return{label:(0,o.bD)(t.user),baseLink:["/organizations/".concat(t.voId,"/members/").concat(t.id)],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(t,e),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseUser",value:function(t,e,i){return{label:(0,o.bD)(t),baseLink:[e],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(t,e,i),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseService",value:function(t){return{label:t.name,baseLink:["/admin/services/".concat(t.id)],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:["/admin/services/".concat(t.id)],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:["/admin/services/".concat(t.id,"/required-attributes")],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:["/admin/services/".concat(t.id,"/destinations")],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"getVoLinks",value:function(t){var e=[];if(e.push({label:"MENU_ITEMS.VO.OVERVIEW",url:["/organizations/".concat(t.id)],activatedRegex:"/organizations/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.MEMBERS",url:["/organizations/".concat(t.id,"/members")],activatedRegex:"/organizations/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.GROUPS",url:["/organizations/".concat(t.id,"/groups")],activatedRegex:"/organizations/\\d+/groups$"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])){var i=[{label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:["/organizations/".concat(t.id,"/resources/preview")],activatedRegex:"/organizations/\\d+/resources/preview$"}];this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:["/organizations/".concat(t.id,"/resources/tags")],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:["/organizations/".concat(t.id,"/resources/states")],activatedRegex:"/organizations/\\d+/resources/states$"}),e.push({label:"MENU_ITEMS.VO.RESOURCES",url:["/organizations/".concat(t.id,"/resources")],activatedRegex:"/organizations/\\d+/resources$",children:i,showChildrenRegex:"/organizations/\\d+/resources"})}this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[t])&&e.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:["/organizations/".concat(t.id,"/applications")],activatedRegex:"/organizations/\\d+/applications"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:["/organizations/".concat(t.id,"/sponsoredMembers")],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:["/organizations/".concat(t.id,"/serviceAccounts")],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),e.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:["/organizations/".concat(t.id,"/attributes")],activatedRegex:"/organizations/\\d+/attributes$"}),this.guiAuthResolver.isAuthorized("getMembersCount_Vo_Status_policy",[t])&&this.guiAuthResolver.isAuthorized("getMembersCount_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.STATISTICS",url:["/organizations/".concat(t.id,"/statistics")],activatedRegex:"/organizations/\\d+/statistics"});var n=this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[t]),r=this.authResolver.isManagerPagePrivileged(t),o=this.authResolver.isThisVoAdminOrObserver(t.id);if(r||n||o){var a=[];o&&a.push({label:"MENU_ITEMS.VO.EXPIRATION",url:["/organizations/".concat(t.id,"/settings/expiration")],activatedRegex:"/organizations/\\d+/settings/expiration$"}),r&&a.push({label:"MENU_ITEMS.VO.MANAGERS",url:["/organizations/".concat(t.id,"/settings/managers")],activatedRegex:"/organizations/\\d+/settings/managers$"}),o&&a.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:["/organizations/".concat(t.id,"/settings/applicationForm")],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),o&&a.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:["/organizations/".concat(t.id,"/settings/notifications")],activatedRegex:"/organizations/\\d+/settings/notifications$"}),n&&a.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:["/organizations/".concat(t.id,"/settings/extsources")],activatedRegex:"/organizations/\\d+/settings/extsources$"}),e.push({label:"MENU_ITEMS.VO.SETTINGS",url:["/organizations/".concat(t.id,"/settings")],activatedRegex:"/organizations/\\d+/settings$",children:a,showChildrenRegex:"/organizations/\\d+/settings"})}return e}},{key:"getUserLinks",value:function(t,e,i){var n=[];return n.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[e],activatedRegex:"".concat(i,"$")}),n.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:["".concat(e,"/organizations")],activatedRegex:"".concat(i,"/organizations")}),n.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:["".concat(e,"/groups")],activatedRegex:"".concat(i,"/groups")}),n.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:["".concat(e,"/accounts")],activatedRegex:"".concat(i,"/accounts")}),n.push({label:"MENU_ITEMS.USER.IDENTITIES",url:["".concat(e,"/identities")],activatedRegex:"".concat(i,"/identities")}),n.push({label:"MENU_ITEMS.USER.FACILITIES",url:["".concat(e,"/facilities")],activatedRegex:"".concat(i,"/facilities")}),n.push({label:"MENU_ITEMS.USER.RESOURCES",url:["".concat(e,"/resources")],activatedRegex:"".concat(i,"/resources")}),n.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:["".concat(e,"/attributes")],activatedRegex:"".concat(i,"/attributes")}),n.push({label:"MENU_ITEMS.USER.ROLES",url:["".concat(e,"/roles")],activatedRegex:"^".concat(e,"/roles")}),n.push({label:"MENU_ITEMS.ADMIN.SETTINGS",url:["".concat(e,"/settings")],activatedRegex:"".concat(i,"/settings$"),children:[],showChildrenRegex:"".concat(i,"/settings")}),n[n.length-1].children.push(t.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:["".concat(e,"/settings/associated-users")],activatedRegex:"^".concat(e,"/settings/associated-users")}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:["".concat(e,"/settings/service-identities")],activatedRegex:"^".concat(e,"/settings/service-identities")}),n}},{key:"getMemberLinks",value:function(t,e){var i=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:["/organizations/".concat(t.voId,"/members/").concat(t.id)],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.authResolver.isAuthorized("getMemberGroups_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:["//organizations/".concat(t.voId,"/members/").concat(t.id,"/groups")],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:["//organizations/".concat(t.voId,"/members/").concat(t.id,"/applications")],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:["/organizations/".concat(t.voId,"/members/").concat(t.id,"/resources")],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),i.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:["/organizations/".concat(t.voId,"/members/").concat(t.id,"/attributes")],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),i}},{key:"getFacilityLinks",value:function(t){var e=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:["/facilities/".concat(t.id)],activatedRegex:"/facilities/\\d+$"}];this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:["/facilities/".concat(t.id,"/resources")],activatedRegex:"/facilities/\\d+/resources$"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:["/facilities/".concat(t.id,"/allowed-users")],activatedRegex:"/facilities/\\d+/allowed-users"}),this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:["/facilities/".concat(t.id,"/allowed-groups")],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:["/facilities/".concat(t.id,"/services-status")],activatedRegex:"/facilities/\\d+/services-status"}),this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:["/facilities/".concat(t.id,"/services-destinations")],activatedRegex:"facilities/\\d+/services-destinations"}),this.authResolver.isFacilityAdmin()&&e.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:["/facilities/".concat(t.id,"/hosts")],activatedRegex:"facilities/\\d+/hosts"}),e.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",t.id,"attributes"],activatedRegex:"/facilities/\\d+/attributes$"});var i=this.authResolver.isAuthorized("getBansForFacility_int_policy",[t]),n=this.authResolver.isAuthorized("getRichAdmins_Facility_List_boolean_boolean_policy",[t]),r=this.authResolver.isAuthorized("getOwners_Facility_policy",[t]),o=this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[t]);if(i||n||r||o){var a=[];r&&a.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",t.id,"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),n&&a.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",t.id,"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),o&&a.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:["/facilities/".concat(t.id,"/settings/security-teams")],activatedRegex:"facilities/\\d+/settings/security-teams"}),i&&a.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",t.id,"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),e.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",t.id,"settings"],activatedRegex:"/facilities/\\d+/settings$",children:a,showChildrenRegex:"/facilities/\\d+/settings"})}return e}},{key:"getGroupLinks",value:function(t){var e=this,i=[],n=[];i.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id)],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/members")],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[t])&&"members"!==t.name&&i.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/subgroups")],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/resources")],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/applications")],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),i.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/attributes")],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"});var r=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[t]),o=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[t]),a=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[t]);return r&&o&&a&&i.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/statistics")],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(t.id,s.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(){n.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/expiration")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},function(t){"HttpErrorResponse"!==t.name&&e.notificator.showRPCError(t)}),this.authResolver.isManagerPagePrivileged(t)&&n.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/managers")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/applicationForm")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/notifications")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/relations")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/extsources")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==n.length&&i.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:n,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),i}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(c.sK),u.LFG(n.x4),u.LFG(n.d6),u.LFG(n.F5),u.LFG(r.H8),u.LFG(n.V6),u.LFG(n.x4))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},24081:function(t,e,i){"use strict";i.d(e,{V:function(){return w}});var n=i(61601),r=i(75585),o=i(88426),a=i(17),s=i(31572),u=i(48958);function c(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"app-side-menu-item",9),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw();s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)}}function l(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"app-side-menu-item",10),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw();s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)("showLinks",n===r.accessItems.length-1)}}function h(t,e){if(1&t&&s._UZ(0,"app-side-menu-root-item",2),2&t){var i=s.oxw();s.Q6J("sideNav",i.sideNav)("item",i.facilityItem)}}function d(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"app-side-menu-item",10),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw(2);s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)("showLinks",n===r.facilityItems.length-1)}}function f(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,d,2,5,"div",3),s.qZA()),2&t){var i=s.oxw();s.xp6(1),s.Q6J("ngForOf",i.facilityItems)}}function p(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"app-side-menu-item",10),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw();s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)("showLinks",n===r.userItems.length-1)}}function g(t,e){if(1&t&&s._UZ(0,"app-side-menu-root-item",6),2&t){var i=s.oxw();s.Q6J("sideNav",i.sideNav)("showOpen",i.adminItemOpened)("item",i.adminItem)}}function m(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"app-side-menu-item",10),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw(2);s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)("showLinks",!0)}}function b(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,m,2,5,"div",3),s.qZA()),2&t){var i=s.oxw();s.xp6(1),s.Q6J("ngForOf",i.adminItems)}}var w=function(){var t=function(){function t(e,i,n,r){v(this,t),this.sideMenuService=e,this.sideMenuItemService=i,this.authResolver=n,this.store=r,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}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.mobileView=window.innerWidth<=n.y.minWidth,this.mobileView?this.sideNav.close():this.sideNav.open(),this.sideMenuService.facilityItemsChange.subscribe(function(e){t.setFacilityItems(e)}),this.sideMenuService.accessItemsChange.subscribe(function(e){t.setAccessItems(e)}),this.sideMenuService.adminItemsChange.subscribe(function(e){t.setAdminItems(e)}),this.sideMenuService.userItemsChange.subscribe(function(e){t.setUserItems(e)}),this.sideMenuService.homeItemsChange.subscribe(function(e){t.setHomeItems(e)}),this.sideMenuService.resetChange.subscribe(function(){t.reset()})}},{key:"reset",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptHome",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptFacility",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptAccess",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptAdmin",value:function(){this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptUser",value:function(){this.adminItemOpened=!1,this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.adminItems,[])}},{key:"setHomeItems",value:function(t){this.resetExceptHome(),this.setNewItems(this.homeItems,t)}},{key:"setFacilityItems",value:function(t){this.resetExceptFacility(),this.setNewItems(this.facilityItems,t)}},{key:"setAccessItems",value:function(t){this.resetExceptAccess(),this.setNewItems(this.accessItems,t)}},{key:"setUserItems",value:function(t){this.userItemOpened=!0,this.resetExceptUser(),this.setNewItems(this.userItems,t)}},{key:"setAdminItems",value:function(t){this.adminItemOpened=0===t.length,this.resetExceptAdmin(),this.setNewItems(this.adminItems,t)}},{key:"setNewItems",value:function(t,e){for(var i=t.length>e.length?t.length:e.length,n=0;nt.length-1)t.push(e[n]);else{if(n>e.length-1){for(var r=t.length,o=0;o0),n.Q6J("cdkDragData",i)}}function yt(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"div",4),n.TgZ(1,"div",5),n.TgZ(2,"div",6),n.TgZ(3,"table",7,8),n.NdJ("cdkDropListDropped",function(t){return n.CHM(i),n.oxw().drop(t)}),n.ynx(5,9),n.YNc(6,S,1,0,"th",10),n.YNc(7,E,4,0,"td",11),n.BQk(),n.ynx(8,12),n.YNc(9,x,3,3,"th",10),n.YNc(10,R,2,1,"td",11),n.BQk(),n.ynx(11,13),n.YNc(12,I,3,3,"th",10),n.YNc(13,O,3,3,"td",11),n.BQk(),n.ynx(14,14),n.YNc(15,P,3,3,"th",15),n.YNc(16,M,2,1,"td",16),n.BQk(),n.ynx(17,17),n.YNc(18,L,3,3,"th",15),n.YNc(19,z,2,1,"td",16),n.BQk(),n.ynx(20,18),n.YNc(21,F,3,3,"th",10),n.YNc(22,rt,15,14,"td",11),n.BQk(),n.ynx(23,19),n.YNc(24,ot,1,0,"th",10),n.YNc(25,st,2,1,"td",11),n.BQk(),n.ynx(26,20),n.YNc(27,ut,1,0,"th",10),n.YNc(28,ht,3,2,"td",11),n.BQk(),n.ynx(29,21),n.YNc(30,dt,1,0,"th",10),n.YNc(31,gt,3,2,"td",11),n.BQk(),n.YNc(32,vt,1,0,"tr",22),n.YNc(33,mt,1,7,"tr",23),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(3),n.Q6J("cdkDropListDisabled",r.dragDisabled)("dataSource",r.dataSource),n.xp6(29),n.Q6J("matHeaderRowDef",r.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",r.displayedColumns)}}function bt(t,e){1&t&&(n.TgZ(0,"app-alert",98),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}var wt=function(){var t=function(){function t(e,i,r,o){v(this,t),this.dialog=e,this.notificator=i,this.router=r,this.translate=o,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new n.vpe,this.itemsChanged=[],this.dataSource=this.applicationFormItems,this.mapForCombobox=new Map,this.dragDisabled=!0}return y(t,[{key:"ngOnInit",value:function(){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")}},{key:"ngOnChanges",value:function(){this.dataSource=this.applicationFormItems}},{key:"disabledHiddenDependency",value:function(t,e,i){var n="";if("IF_EMPTY"===e||"IF_PREFILLED"===e){var r=null===i?"":this.applicationFormItems.find(function(t){return t.id===i}).shortname;n="IF_EMPTY"===e?"(".concat(this.ifEmpty," ").concat(r,")"):"(".concat(this.ifPrefilled," ").concat(r,")")}return n}},{key:"disabledTooltip",value:function(t){var e;switch(t.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return e=null===t.disabledDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.disabledDependencyItemId}).shortname,"".concat(this.isDisabledIf," ").concat(e," ").concat(this.isEmpty);case"IF_PREFILLED":return e=null===t.disabledDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.disabledDependencyItemId}).shortname,"".concat(this.isDisabledIf," ").concat(e," ").concat(this.isPrefilled)}}},{key:"hiddenTooltip",value:function(t){var e;switch(t.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return e=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.hiddenDependencyItemId}).shortname,"".concat(this.isHiddenIf," ").concat(e," ").concat(this.isEmpty);case"IF_PREFILLED":return e=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.hiddenDependencyItemId}).shortname,"".concat(this.isHiddenIf," ").concat(e," ").concat(this.isPrefilled)}}},{key:"edit",value:function(t){var e=this,i=(0,h.kZ)();i.width="600px",i.height="600px",i.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:t,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(l._,i).afterClosed().subscribe(function(i){i&&(e.itemsChanged.push(t.id),e.applicationFormItemsChange.emit())})}},{key:"delete",value:function(t){var e=this,i=(0,h.kZ)();i.width="500px",this.dialog.open(u,i).afterClosed().subscribe(function(i){i&&(t.forDelete=!0,0===t.id&&(e.applicationFormItems.splice(e.applicationFormItems.indexOf(t),1),e.table.renderRows()),e.applicationFormItemsChange.emit())})}},{key:"drop",value:function(t){this.dragDisabled=!0;var e=this.applicationFormItems.indexOf(t.item.data);(0,r.bA)(this.applicationFormItems,e,t.currentIndex),this.itemsChanged.push(this.applicationFormItems[t.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}},{key:"getLocalizedOptions",value:function(t){if(t.i18n[this.translate.getDefaultLang()]){var e=t.i18n[this.translate.getDefaultLang()].options;if(null!==e&&""!==e){var i,n=[],r=f(e.split("|"));try{for(r.s();!(i=r.n()).done;){var o=i.value;n.push(o.split("#")[1])}}catch(a){r.e(a)}finally{r.f()}return n}}return[]}},{key:"getLocalizedLabel",value:function(t){return t.i18n[this.translate.getDefaultLang()]?t.i18n[this.translate.getDefaultLang()].label:t.shortname}},{key:"restore",value:function(t){t.forDelete=!1}},{key:"openManagingGroups",value:function(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.uw),n.Y36(c.V6),n.Y36(d.F0),n.Y36(s.sK))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-application-form-list"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(T,5),2&t)&&(n.iGM(i=n.CRH())&&(e.table=i.first))},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[n.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"],["class","font-italic disabled",4,"ngIf"],["type","text"],[1,"font-italic","disabled"],["disabled",""],["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"],["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(t,e){1&t&&(n.YNc(0,C,1,0,"mat-spinner",0),n.YNc(1,yt,34,4,"div",1),n.YNc(2,bt,3,3,"app-alert",2)),2&t&&(n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",0!==e.applicationFormItems.length&&!e.loading),n.xp6(1),n.Q6J("ngIf",0===e.applicationFormItems.length&&!e.loading))},directives:[p.O5,g.$g,m.BZ,r.Wj,m.w1,m.fO,m.Dz,m.as,m.nj,m.ge,m.ev,a.lW,b.Hw,w.gM,_._Y,_.JL,_.F,p.sg,_.YN,_.Kr,_.EJ,_.JJ,_.On,m.XQ,m.Gk,r.Zt,A.w],pipes:[s.X$,k.c],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%], .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}"]}),t}()},29851:function(t,e,i){"use strict";i.d(e,{w:function(){return rt}});var n=i(31572),r=i(33642),o=i(67033),a=i(84140),s=i(88426),u=i(57629),c=i(82819),l=i(61511),h=i(84534),d=i(67806),p=i(39571),g=i(48160),m=i(22196);function b(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function w(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function _(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_ID")))}function A(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.vo.id)}}function k(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_NAME")))}function T(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.vo.name)}}function C(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_ID")))}function S(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.group?i.group.id:"")}}function E(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")))}function x(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.group?i.group.name:"")}}function R(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")))}function I(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.type)}}function O(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")))}function P(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.state)}}function D(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCENAME")))}function M(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.extSourceName)}}function L(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCETYPE")))}function N(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.extSourceType)}}function z(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_USER")))}function F(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.hij(" ",i.user?n.lcZ(2,1,i.user):"null"," ")}}function Z(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_BY")))}function B(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.hij(" ",i.createdBy.slice(i.createdBy.lastIndexOf("=")+1,i.createdBy.length)," ")}}function q(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")))}function U(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.ALo(2,"date"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,i.createdAt,"d.M.y"))}}function H(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")))}function j(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Oqu(r.getFriendlyName(i.modifiedBy))}}function G(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_AT")))}function Y(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.ALo(2,"date"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,i.modifiedAt,"d.M.y"))}}function V(t,e){if(1&t&&(n.TgZ(0,"th",26),n._uU(1),n.qZA()),2&t){var i=n.oxw().$implicit;n.xp6(1),n.Oqu(i)}}function K(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit,r=n.oxw().$implicit;n.xp6(1),n.Oqu(i[r])}}function J(t,e){1&t&&(n.ynx(0,29),n.YNc(1,V,2,1,"th",4),n.YNc(2,K,2,1,"td",11),n.BQk()),2&t&&n.Q6J("matColumnDef",e.$implicit)}function Q(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_FEDINFO")))}function W(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.fedInfo)}}function X(t,e){1&t&&n._UZ(0,"tr",30)}function $(t,e){if(1&t&&n._UZ(0,"tr",31),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",r.selectApplication(i))("routerLink",r.selectApplication(i))}}function tt(t,e){1&t&&n._UZ(0,"mat-spinner",32)}function et(t,e){1&t&&(n.TgZ(0,"app-alert",34),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND")," "))}function it(t,e){1&t&&(n.TgZ(0,"app-alert",34),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT")," "))}function nt(t,e){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,et,3,3,"app-alert",33),n.YNc(2,it,3,3,"app-alert",33),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Q6J("ngIf",0===i.dataSource.data.length),n.xp6(1),n.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.table.length)}}var rt=function(){var t=function(){function t(e,i,r){v(this,t),this.router=e,this.authResolver=i,this.registrarManager=r,this.applications=[],this.pageSize=10,this.disableRouting=!1,this.page=new n.vpe,this.displayedColumns=["id","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","createdAt","modifiedBy","modifiedAt","fedInfo"],this.loading=!1,this.table=[],this.addedColumns=new Set,this.pageSizeOptions=a.f7}return y(t,[{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.loading=!0,this.table=[],this.initialize(),this.getApplicationsData(0)}},{key:"getExportDataForColumn",value:function(t,e){var i,n,r,o;switch(e){case"id":return t.id.toString();case"voId":return t.vo.id.toString();case"voName":return t.vo.name;case"groupId":return null!==(n=null===(i=t.group)||void 0===i?void 0:i.id.toString())&&void 0!==n?n:"";case"groupName":return null!==(o=null===(r=t.group)||void 0===r?void 0:r.name)&&void 0!==o?o:"";case"type":return t.type;case"fedInfo":return t.fedInfo;case"state":return t.state;case"extSourceName":return t.extSourceName;case"extSourceType":return t.extSourceType;case"user":return t.user?(0,a.bD)(t.user):"";case"createdBy":return t.createdBy;case"createdAt":return t.createdAt;case"modifiedBy":return t.modifiedBy;case"modifiedAt":return t.modifiedAt;default:return t[e]}}},{key:"exportData",value:function(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"getApplicationsData",value:function(t){var e=this;if(this.applications.length!==t){var i=this.applications[t],n={};n.id=i.id,n.vo=i.vo,n.group=i.group,n.type=i.type,n.fedInfo=i.fedInfo,n.state=i.state,n.extSourceName=i.extSourceName,n.extSourceType=i.extSourceType,n.extSourceLoa=i.extSourceLoa,n.user=i.user,n.createdBy=i.createdBy,n.createdAt=i.createdAt,n.modifiedBy=i.modifiedBy,n.modifiedAt=i.modifiedAt,this.registrarManager.getApplicationDataById(i.id).subscribe(function(i){var r,o=f(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;null!==a.formItem.i18n.en.label&&0!==a.formItem.i18n.en.label.length?(n[a.formItem.i18n.en.label]=a.value,e.addedColumns.add(a.formItem.i18n.en.label)):(n[a.shortname]=a.value,e.addedColumns.add(a.shortname))}}catch(s){o.e(s)}finally{o.f()}e.table.push(n),e.getApplicationsData(t+1)})}else this.initialize()}},{key:"initialize",value:function(){var t,e=f(this.addedColumns);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.displayedColumns.push(i)}}catch(n){e.e(n)}finally{e.f()}this.dataSource=new o.by(this.table),this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage(),this.loading=!1}},{key:"getFriendlyName",value:function(t){var e=t.lastIndexOf("/CN=");if(-1!==e){var i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}},{key:"selectApplication",value:function(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.F0),n.Y36(s.x4),n.Y36(r.tk))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-perun-web-apps-application-list-details"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(a.l9,7),2&t)&&(n.iGM(i=n.CRH())&&(e.child=i.first))},inputs:{applications:"applications",group:"group",member:"member",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.TTD],decls:53,vars:12,consts:[[1,"card","mt-2","w-100",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","createdAt"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],[3,"matColumnDef",4,"ngFor","ngForOf"],["matColumnDef","fedInfo"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[1,"ml-auto","mr-auto"],["alert_type","warn",4,"ngIf"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,b,3,3,"th",4),n.YNc(5,w,2,1,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,_,3,3,"th",4),n.YNc(8,A,2,1,"td",5),n.BQk(),n.ynx(9,7),n.YNc(10,k,3,3,"th",4),n.YNc(11,T,2,1,"td",5),n.BQk(),n.ynx(12,8),n.YNc(13,C,3,3,"th",4),n.YNc(14,S,2,1,"td",5),n.BQk(),n.ynx(15,9),n.YNc(16,E,3,3,"th",4),n.YNc(17,x,2,1,"td",5),n.BQk(),n.ynx(18,10),n.YNc(19,R,3,3,"th",4),n.YNc(20,I,2,1,"td",11),n.BQk(),n.ynx(21,12),n.YNc(22,O,3,3,"th",4),n.YNc(23,P,2,1,"td",11),n.BQk(),n.ynx(24,13),n.YNc(25,D,3,3,"th",4),n.YNc(26,M,2,1,"td",11),n.BQk(),n.ynx(27,14),n.YNc(28,L,3,3,"th",4),n.YNc(29,N,2,1,"td",11),n.BQk(),n.ynx(30,15),n.YNc(31,z,3,3,"th",4),n.YNc(32,F,3,3,"td",11),n.BQk(),n.ynx(33,16),n.YNc(34,Z,3,3,"th",4),n.YNc(35,B,2,1,"td",11),n.BQk(),n.ynx(36,17),n.YNc(37,q,3,3,"th",4),n.YNc(38,U,3,4,"td",11),n.BQk(),n.ynx(39,18),n.YNc(40,H,3,3,"th",4),n.YNc(41,j,2,1,"td",11),n.BQk(),n.ynx(42,19),n.YNc(43,G,3,3,"th",4),n.YNc(44,Y,3,4,"td",11),n.BQk(),n.YNc(45,J,3,1,"ng-container",20),n.ynx(46,21),n.YNc(47,Q,3,3,"th",4),n.YNc(48,W,2,1,"td",11),n.BQk(),n.YNc(49,X,1,0,"tr",22),n.YNc(50,$,1,4,"tr",23),n.qZA(),n.qZA(),n.qZA(),n.YNc(51,tt,1,0,"mat-spinner",24),n.YNc(52,nt,3,2,"div",25)),2&t&&(n.ekj("hide-table",e.loading),n.Q6J("hidden",0===e.table.length||!!e.dataSource&&0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(43),n.Q6J("ngForOf",e.addedColumns),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",!e.loading))},directives:[c.l,o.BZ,o.w1,o.fO,o.Dz,l.sg,o.as,o.nj,l.O5,o.ge,o.ev,o.XQ,o.Gk,h.YH,u.rH,d.$g,p.w],pipes:[g.X$,m.d,l.uU],styles:[".mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%], mat-cell[_ngcontent-%COMP%], mat-header-cell[_ngcontent-%COMP%]{padding:8px!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},21548:function(t,e,i){"use strict";i.d(e,{M:function(){return G}});var n=i(31572),r=i(58623),o=i(67033),a=i(84140),s=i(88426),u=i(82819),c=i(61511),l=i(43691),h=i(36922),d=i(84534),f=i(57629),p=i(39571),g=i(48160),m=i(84650),b=i(22196);function w(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function _(t,e){if(1&t&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function A(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")))}function k(t,e){if(1&t&&(n.TgZ(0,"td",18),n._uU(1),n.ALo(2,"date"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,i.createdAt,"d.M.y"))}}function T(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")))}function C(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",20),n._uU(2,"arrow_right_alt"),n.qZA(),n.qZA())}function S(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",21),n._uU(2,"restore"),n.qZA(),n.qZA())}function E(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",22),n._uU(2,"nat"),n.qZA(),n.qZA())}function x(t,e){if(1&t&&(n.TgZ(0,"td",18),n.YNc(1,C,3,0,"div",19),n.YNc(2,S,3,0,"div",19),n.YNc(3,E,3,0,"div",19),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf","INITIAL"===i.type),n.xp6(1),n.Q6J("ngIf","EXTENSION"===i.type),n.xp6(1),n.Q6J("ngIf","EMBEDDED"===i.type)}}function R(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")))}function I(t,e){if(1&t&&(n.TgZ(0,"td",18),n._UZ(1,"span",23),n.ALo(2,"applicationState"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("outerHTML",n.lcZ(2,1,i.state),n.oJD)}}function O(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_SUBMITTED_BY")))}function P(t,e){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){var i=n.oxw().$implicit;n.xp6(1),n.hij(" ",i.createdBy.slice(i.createdBy.lastIndexOf("=")+1,i.createdBy.length)," ")}}function D(t,e){if(1&t&&(n._uU(0),n.ALo(1,"userFullName")),2&t){var i=n.oxw().$implicit;n.hij(" ",n.lcZ(1,1,i.user)," ")}}function M(t,e){if(1&t&&(n.TgZ(0,"td",18),n.YNc(1,P,2,1,"div",24),n.YNc(2,D,2,3,"ng-template",null,25,n.W1O),n.qZA()),2&t){var i=e.$implicit,r=n.MAs(3);n.xp6(1),n.Q6J("ngIf",null===i.user)("ngIfElse",r)}}function L(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")))}function N(t,e){1&t&&(n.TgZ(0,"div",28),n._uU(1," - "),n.qZA())}function z(t,e){if(1&t&&n._uU(0),2&t){var i=n.oxw().$implicit;n.hij(" ",i.group.name," ")}}function F(t,e){if(1&t&&(n.TgZ(0,"td",18),n.YNc(1,N,2,0,"div",26),n.YNc(2,z,1,1,"ng-template",null,27,n.W1O),n.qZA()),2&t){var i=e.$implicit,r=n.MAs(3);n.xp6(1),n.Q6J("ngIf",null===i.group)("ngIfElse",r)}}function Z(t,e){1&t&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")))}function B(t,e){if(1&t&&(n.TgZ(0,"td",18),n._uU(1),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Oqu(r.getFriendlyName(i.modifiedBy))}}function q(t,e){1&t&&n._UZ(0,"tr",29)}function U(t,e){if(1&t&&n._UZ(0,"tr",30),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",r.selectApplication(i))("routerLink",r.selectApplication(i))}}function H(t,e){1&t&&(n.TgZ(0,"app-alert",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}function j(t,e){1&t&&(n.TgZ(0,"app-alert",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var G=function(){var t=function(){function t(e){v(this,t),this.authResolver=e,this.applications=[],this.displayedColumns=[],this.pageSize=10,this.disableRouting=!1,this.page=new n.vpe,this.pageSizeOptions=a.f7}return y(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"ngAfterViewInit",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t}))}},{key:"ngOnChanges",value:function(){this.setDataSource()}},{key:"getSortDataForColumn",value:function(t,e,i){var n;switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?(0,a.bD)(t.user):t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}},{key:"parseModifiedBy",value:function(t){var e=t.modifiedBy.lastIndexOf("/CN=");if(-1!==e){var i=t.modifiedBy.slice(e+4,t.modifiedBy.length).replace("/unstructuredName="," ").toLowerCase();return-1!==i.lastIndexOf("\\")?t.modifiedBy.slice(t.modifiedBy.lastIndexOf("=")+1,t.modifiedBy.length):i}return t.modifiedBy.toLowerCase()}},{key:"exportData",value:function(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,a.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,a.pR)(e,i,t.getSortDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.applications}},{key:"getFriendlyName",value:function(t){var e=t.lastIndexOf("/CN=");if(-1!==e){var i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}},{key:"selectApplication",value:function(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-applications-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(a.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},inputs:{applications:"applications",group:"group",member:"member",displayedColumns:"displayedColumns",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","createdAt","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","createdAt"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","user"],["matColumnDef","group"],["matColumnDef","modifiedBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],["class","font-italic text-muted",4,"ngIf","ngIfElse"],["groupName",""],[1,"font-italic","text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,w,3,3,"th",4),n.YNc(5,_,2,1,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,A,3,3,"th",4),n.YNc(8,k,3,4,"td",7),n.BQk(),n.ynx(9,8),n.YNc(10,T,3,3,"th",4),n.YNc(11,x,4,3,"td",7),n.BQk(),n.ynx(12,9),n.YNc(13,R,3,3,"th",4),n.YNc(14,I,3,3,"td",7),n.BQk(),n.ynx(15,10),n.YNc(16,O,3,3,"th",4),n.YNc(17,M,4,2,"td",7),n.BQk(),n.ynx(18,11),n.YNc(19,L,3,3,"th",4),n.YNc(20,F,4,2,"td",7),n.BQk(),n.ynx(21,12),n.YNc(22,Z,3,3,"th",4),n.YNc(23,B,2,1,"td",7),n.BQk(),n.YNc(24,q,1,0,"tr",13),n.YNc(25,U,1,4,"tr",14),n.qZA(),n.qZA(),n.qZA(),n.YNc(26,H,3,3,"app-alert",15),n.YNc(27,j,3,3,"app-alert",15)),2&t&&(n.Q6J("hidden",0===e.applications.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(22),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.applications.length),n.xp6(1),n.Q6J("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.applications.length))},directives:[u.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,c.O5,o.ge,r.nU,o.ev,l.Hw,h.gM,o.XQ,o.Gk,d.YH,f.rH,p.w],pipes:[g.X$,c.uU,m.h,b.d],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},62284:function(t,e,i){"use strict";i.d(e,{W:function(){return R}});var n=i(33642),r=i(60611),o=i(88426),a=i(16073),s=i(61511),u=i(31572),c=i(57629),l=i(59403),h=i(66283),d=i(4786),f=i(71522),p=i(91058),g=i(51613),m=i(15980),b=i(67806),w=i(21548),_=i(29851),A=i(48160);function k(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"button",15),u.NdJ("click",function(){return u.CHM(i),u.oxw().showAllDetails=!0}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function T(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"button",15),u.NdJ("click",function(){return u.CHM(i),u.oxw().showAllDetails=!1}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function C(t,e){1&t&&u._UZ(0,"mat-spinner",16)}function S(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"app-applications-list",19),u.NdJ("page",function(t){return u.CHM(i),u.oxw(2).pageChanged(t)}),u.qZA()}if(2&t){var n=u.oxw(2);u.Q6J("pageSize",n.pageSize)("disableRouting",!n.routeAuth)("filterValue",n.filterValue)("applications",n.applications)("displayedColumns",n.displayedColumns)("group",n.group)}}function E(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"app-perun-web-apps-application-list-details",20),u.NdJ("page",function(t){return u.CHM(i),u.oxw(2).detailPageChanged(t)}),u.qZA()}if(2&t){var n=u.oxw(2);u.Q6J("pageSize",n.detailPageSize)("disableRouting",!n.routeAuth)("filterValue",n.filterValue)("applications",n.applications)("group",n.group)}}function x(t,e){if(1&t&&(u.TgZ(0,"div"),u.YNc(1,S,1,6,"app-applications-list",17),u.YNc(2,E,1,5,"app-perun-web-apps-application-list-details",18),u.qZA()),2&t){var i=u.oxw();u.xp6(1),u.Q6J("ngIf",!i.showAllDetails),u.xp6(1),u.Q6J("ngIf",i.showAllDetails)}}var R=function(){var t=function(){function t(e,i,n,o,a,s){v(this,t),this.groupService=e,this.registrarManager=i,this.tableConfigService=n,this.route=o,this.guiAuthResolver=a,this.store=s,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=r.Af,this.tableId=r.gB,this.routeAuth=!1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.detailPageSize=this.tableConfigService.getTablePageSize(this.detailTableId),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(function(e){t.groupService.getGroupById(e.groupId).subscribe(function(e){t.group=e,t.setData(["NEW","VERIFIED"])}),t.startDate=new a.NI((0,s.p6)(t.yearAgo(),"yyyy-MM-dd","en-GB")),t.endDate=new a.NI((0,s.p6)(new Date,"yyyy-MM-dd","en-GB"))})}},{key:"setAuth",value:function(){0!==this.applications.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("group-getApplicationById_int_policy",[this.group]))}},{key:"setData",value:function(t){var e=this;this.registrarManager.getApplicationsForGroup(this.group.id,t,(0,s.p6)(this.startDate.value,"yyyy-MM-dd","en-GB"),(0,s.p6)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(function(t){e.applications=t,e.setAuth(),e.loading=!1})}},{key:"select",value:function(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}},{key:"yearAgo",value:function(){var t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"detailPageChanged",value:function(t){this.detailPageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.detailTableId,t.pageSize)}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="GroupApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(n.ff),u.Y36(n.tk),u.Y36(r.dB),u.Y36(c.gz),u.Y36(o.x4),u.Y36(o.d6))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.true)},decls:34,vars:32,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",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,"startDate","endDate","datePicker"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","disableRouting","filterValue","applications","displayedColumns","group","page",4,"ngIf"],[3,"pageSize","disableRouting","filterValue","applications","group","page",4,"ngIf"],[3,"pageSize","disableRouting","filterValue","applications","displayedColumns","group","page"],[3,"pageSize","disableRouting","filterValue","applications","group","page"]],template:function(t,e){1&t&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div"),u.TgZ(4,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return e.select()}),u.qZA(),u.YNc(5,k,3,3,"button",2),u.YNc(6,T,3,3,"button",2),u.TgZ(7,"mat-form-field",3),u.TgZ(8,"mat-label"),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.TgZ(11,"mat-select",4),u.NdJ("selectionChange",function(){return e.select()})("valueChange",function(t){return e.state=t}),u.TgZ(12,"mat-option",5),u._uU(13),u.ALo(14,"translate"),u.qZA(),u.TgZ(15,"mat-option",6),u._uU(16),u.ALo(17,"translate"),u.qZA(),u.TgZ(18,"mat-option",7),u._uU(19),u.ALo(20,"translate"),u.qZA(),u.TgZ(21,"mat-option",8),u._uU(22),u.ALo(23,"translate"),u.qZA(),u.TgZ(24,"mat-option",9),u._uU(25),u.ALo(26,"translate"),u.qZA(),u.TgZ(27,"mat-option",10),u._uU(28),u.ALo(29,"translate"),u.qZA(),u.qZA(),u.qZA(),u.TgZ(30,"perun-web-apps-debounce-filter",11),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.TgZ(31,"perun-web-apps-date-range",12),u.NdJ("datePicker",function(){return e.select()}),u.qZA(),u.qZA(),u.YNc(32,C,1,0,"mat-spinner",13),u.YNc(33,x,3,2,"div",14)),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,16,"VO_DETAIL.APPLICATION.TITLE")),u.xp6(4),u.Q6J("ngIf",!e.showAllDetails),u.xp6(1),u.Q6J("ngIf",e.showAllDetails),u.xp6(3),u.Oqu(u.lcZ(10,18,"VO_DETAIL.APPLICATION.TABLE_STATE")),u.xp6(2),u.Q6J("value",e.state),u.xp6(2),u.Oqu(u.lcZ(14,20,"VO_DETAIL.APPLICATION.SELECTION_ALL")),u.xp6(3),u.Oqu(u.lcZ(17,22,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),u.xp6(3),u.Oqu(u.lcZ(20,24,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),u.xp6(3),u.Oqu(u.lcZ(23,26,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),u.xp6(3),u.Oqu(u.lcZ(26,28,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),u.xp6(3),u.Oqu(u.lcZ(29,30,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),u.xp6(2),u.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),u.xp6(1),u.Q6J("startDate",e.startDate)("endDate",e.endDate),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[l.t,s.O5,h.KE,h.hX,d.gD,f.ey,p.P,g.S,m.lW,b.$g,w.M,_.w],pipes:[A.X$],styles:[""]}),t}()},11930:function(t,e,i){"use strict";i.d(e,{y:function(){return F}});var n=i(4230),r=i(88426),o=i(67004),a=i(85613),s=i(4374),u=i(33642),c=i(60611),l=i(84140),h=i(88690),d=i(16073),f=i(31572),p=i(57629),g=i(84608),m=i(61511),b=i(59403),w=i(36922),_=i(66283),A=i(4786),k=i(91058),T=i(39571),C=i(15980),S=i(71522),E=i(67806),x=i(91779),R=i(48160);function I(t,e){1&t&&(f.TgZ(0,"app-alert",14),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function O(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",15),f.NdJ("click",function(){return f.CHM(i),f.oxw().onAddMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.synchEnabled||n.blockManualMemberAdding),f.xp6(1),f.hij(" ",f.lcZ(2,2,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function P(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",15),f.NdJ("click",function(){return f.CHM(i),f.oxw().onInviteMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.synchEnabled),f.xp6(1),f.hij(" ",f.lcZ(2,2,"GROUP_DETAIL.MEMBERS.INVITE_MEMBER")," ")}}function D(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",16),f.NdJ("click",function(){return f.CHM(i),f.oxw().onRemoveMembers()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.selection.isEmpty()||n.synchEnabled),f.xp6(1),f.hij(" ",f.lcZ(2,2,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function M(t,e){if(1&t&&(f.TgZ(0,"mat-option",17),f._uU(1),f.qZA()),2&t){var i=e.$implicit;f.Q6J("value",i),f.xp6(1),f.Oqu(i)}}function L(t,e){if(1&t&&(f.TgZ(0,"mat-option",17),f._uU(1),f.qZA()),2&t){var i=e.$implicit;f.Q6J("value",i),f.xp6(1),f.Oqu(i)}}function N(t,e){1&t&&f._UZ(0,"mat-spinner",18)}function z(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"perun-web-apps-members-dynamic-list",19),f.NdJ("page",function(t){return f.CHM(i),f.oxw().pageChanged(t)}),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("voId",n.group.voId)("groupId",n.group.id)("pageSize",n.pageSize)("selection",n.selection)("displayedColumns",n.displayedColumns)("updateTable",n.updateTable)("searchString",n.searchString)("selectedStatuses",n.selectedStatuses)("selectedGroupStatuses",n.selectedGroupStatuses)("attrNames",n.memberAttrNames)}}var F=function(){var t=function(){function t(e,i,n,r,a,s,u,l,h){v(this,t),this.groupService=e,this.route=i,this.tableConfigService=n,this.dialog=r,this.guiAuthResolver=a,this.storeService=s,this.attributesManager=u,this.apiRequest=l,this.notificator=h,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=c.dI,this.memberAttrNames=[o.r.MEMBER_DEF_ORGANIZATION,o.r.MEMBER_DEF_MAIL,o.r.USER_DEF_ORGANIZATION,o.r.USER_DEF_PREFERRED_MAIL,o.r.MEMBER_DEF_EXPIRATION,o.r.MEMBER_DEF_GROUP_EXPIRATION],this.groupAttrNames=[o.r.GROUP_SYNC_ENABLED,o.r.GROUP_LAST_SYNC_STATE,o.r.GROUP_LAST_SYNC_TIMESTAMP,o.r.GROUP_STRUCTURE_SYNC_ENABLED,o.r.GROUP_LAST_STRUCTURE_SYNC_STATE,o.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new d.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new d.NI,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"]}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.selection=new n.Ov(!0,[]),this.statuses.setValue(this.selectedStatuses),this.groupStatuses.setValue(this.selectedGroupStatuses),this.memberAttrNames=this.memberAttrNames.concat(this.storeService.getLoginAttributeNames()),this.route.parent.params.subscribe(function(e){var i=e.groupId;t.isManualAddingBlocked(e.voId,i).then(function(){return t.loadPage(i)})})}},{key:"loadPage",value:function(t){var e=this;this.groupService.getRichGroupByIdWithAttributesByNames(t,this.groupAttrNames).subscribe(function(t){e.group=t,e.synchEnabled=e.isSynchronized(),e.setAuthRights(),e.loading=!1})}},{key:"isSynchronized",value:function(){return this.group.attributes.some(function(t){return"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString()})}},{key:"setAuthRights",value:function(){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])}},{key:"onSearchByString",value:function(t){this.searchString=t,this.updateTable=!this.updateTable}},{key:"onAddMember",value:function(){var t=this,e=(0,l.kZ)();e.width="1000px",e.data={voId:this.group.voId,group:this.group,entityId:this.group.id,theme:"group-theme",type:"group"},this.dialog.open(a.o,e).afterClosed().subscribe(function(e){e&&(t.selection.clear(),t.updateTable=!t.updateTable)})}},{key:"onRemoveMembers",value:function(){var t=this,e=(0,l.kZ)();e.width="450px",e.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(s.X,e).afterClosed().subscribe(function(e){e&&(t.selection.clear(),t.updateTable=!t.updateTable)})}},{key:"onInviteMember",value:function(){var t=(0,l.kZ)();t.width="650px",t.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(h.R,t)}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"displaySelectedStatuses",value:function(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?"".concat(this.statuses.value[0]," ").concat(this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""):""}},{key:"displaySelectedGroupStatuses",value:function(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":"".concat(this.groupStatuses.value[0])}},{key:"isManualAddingBlocked",value:function(t,e){var i=this;return new Promise(function(n){i.apiRequest.dontHandleErrorForNext(),i.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(function(t){i.blockManualMemberAdding=null!==t.value,!0!==i.blockManualMemberAdding?(i.apiRequest.dontHandleErrorForNext(),i.attributesManager.getGroupAttributeByName(e,"urn:perun:group:attribute-def:def:blockManualMemberAdding").subscribe(function(t){i.blockManualMemberAdding=null!==t.value,n()},function(t){"PrivilegeException"!==t.error.name&&i.notificator.showError(t),n()})):n()},function(t){"PrivilegeException"!==t.error.name&&i.notificator.showError(t),n()})})}},{key:"changeVoStatuses",value:function(){this.selectedStatuses=this.statuses.value}},{key:"changeGroupStatuses",value:function(){this.selectedGroupStatuses=this.groupStatuses.value}}]),t}();return t.id="GroupMembersComponent",t.\u0275fac=function(e){return new(e||t)(f.Y36(u.ff),f.Y36(p.gz),f.Y36(c.dB),f.Y36(g.uw),f.Y36(r.x4),f.Y36(r.d6),f.Y36(u.H8),f.Y36(r.F5),f.Y36(r.V6))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(t,e){2&t&&f.ekj("router-component",e.true)},decls:36,vars:41,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],[3,"matTooltip","matTooltipDisabled"],["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"],[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,"voId","groupId","pageSize","selection","displayedColumns","updateTable","searchString","selectedStatuses","selectedGroupStatuses","attrNames","page",4,"ngIf"],["alert_type","warn"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"group-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"voId","groupId","pageSize","selection","displayedColumns","updateTable","searchString","selectedStatuses","selectedGroupStatuses","attrNames","page"]],template:function(t,e){1&t&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.YNc(3,I,3,3,"app-alert",1),f.TgZ(4,"div",2),f.TgZ(5,"perun-web-apps-refresh-button",3),f.NdJ("click",function(){return e.updateTable=!e.updateTable}),f.qZA(),f.TgZ(6,"span",4),f.ALo(7,"translate"),f.TgZ(8,"div",5),f.ALo(9,"translate"),f.YNc(10,O,3,4,"button",6),f.qZA(),f.qZA(),f.TgZ(11,"span",4),f.ALo(12,"translate"),f.YNc(13,P,3,4,"button",6),f.qZA(),f.TgZ(14,"span",4),f.ALo(15,"translate"),f.YNc(16,D,3,4,"button",7),f.qZA(),f.TgZ(17,"mat-form-field",8),f.TgZ(18,"mat-label"),f._uU(19),f.ALo(20,"translate"),f.qZA(),f.TgZ(21,"mat-select",9),f.NdJ("closed",function(){return e.changeVoStatuses()}),f.TgZ(22,"mat-select-trigger"),f._uU(23),f.qZA(),f.YNc(24,M,2,2,"mat-option",10),f.qZA(),f.qZA(),f.TgZ(25,"mat-form-field",8),f.TgZ(26,"mat-label"),f._uU(27),f.ALo(28,"translate"),f.qZA(),f.TgZ(29,"mat-select",9),f.NdJ("closed",function(){return e.changeGroupStatuses()}),f.TgZ(30,"mat-select-trigger"),f._uU(31),f.qZA(),f.YNc(32,L,2,2,"mat-option",10),f.qZA(),f.qZA(),f.TgZ(33,"perun-web-apps-debounce-filter",11),f.NdJ("filter",function(t){return e.onSearchByString(t)}),f.qZA(),f.qZA(),f.YNc(34,N,1,0,"mat-spinner",12),f.YNc(35,z,1,10,"perun-web-apps-members-dynamic-list",13)),2&t&&(f.xp6(1),f.Oqu(f.lcZ(2,27,"GROUP_DETAIL.MEMBERS.TITLE")),f.xp6(2),f.Q6J("ngIf",e.synchEnabled),f.xp6(3),f.s9C("matTooltip",f.lcZ(7,29,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),f.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),f.xp6(2),f.s9C("matTooltip",f.lcZ(9,31,"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),f.Q6J("matTooltipDisabled",!e.blockManualMemberAdding),f.xp6(2),f.Q6J("ngIf",e.addAuth),f.xp6(1),f.s9C("matTooltip",f.lcZ(12,33,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),f.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),f.xp6(2),f.Q6J("ngIf",e.inviteAuth),f.xp6(1),f.s9C("matTooltip",f.lcZ(15,35,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),f.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),f.xp6(2),f.Q6J("ngIf",e.removeAuth),f.xp6(3),f.Oqu(f.lcZ(20,37,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),f.xp6(2),f.Q6J("formControl",e.statuses),f.xp6(2),f.hij(" ",e.displaySelectedStatuses()," "),f.xp6(1),f.Q6J("ngForOf",e.statusList),f.xp6(3),f.Oqu(f.lcZ(28,39,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),f.xp6(2),f.Q6J("formControl",e.groupStatuses),f.xp6(2),f.hij(" ",e.displaySelectedGroupStatuses()," "),f.xp6(1),f.Q6J("ngForOf",e.groupStatusList),f.xp6(1),f.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),f.xp6(1),f.Q6J("ngIf",e.loading),f.xp6(1),f.Q6J("ngIf",!e.loading))},directives:[m.O5,b.t,w.gM,_.KE,_.hX,A.gD,d.JJ,d.oH,A.$L,m.sg,k.P,T.w,C.lW,S.ey,E.$g,x.m],pipes:[R.X$],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}"]}),t}()},7433:function(t,e,i){"use strict";i.d(e,{q:function(){return U}});var n=i(4230),r=i(33642),o=i(60611),a=i(84608),s=i(88426),u=(i(41939),i(31572)),c=i(48160),l=i(19139),h=i(61511),d=i(67806),f=i(88884),p=i(29236),g=i(36922),m=i(16073),b=i(15980),w=["list"];function _(t,e){1&t&&u._UZ(0,"mat-spinner",4)}var A=function(){return["select","id","name","facility","tags","description"]};function k(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"div",5),u._UZ(2,"perun-web-apps-resources-list",6,7),u.qZA(),u.TgZ(4,"div",8),u.TgZ(5,"mat-checkbox",9),u.NdJ("ngModelChange",function(t){return u.CHM(i),u.oxw().async=t}),u.ALo(6,"translate"),u._uU(7),u.ALo(8,"translate"),u.qZA(),u.TgZ(9,"button",10),u.NdJ("click",function(){return u.CHM(i),u.oxw().onCancel()}),u._uU(10),u.ALo(11,"translate"),u.qZA(),u.TgZ(12,"span",11),u.ALo(13,"translate"),u.TgZ(14,"button",12),u.NdJ("click",function(){return u.CHM(i),u.oxw().onSubmit()}),u._uU(15),u.ALo(16,"translate"),u.qZA(),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=u.MAs(3),r=u.oxw();u.xp6(2),u.Q6J("resources",r.resources)("disableRouting",!0)("selection",r.selection)("groupToResource",r.data.group)("displayedColumns",u.DdM(24,A))("filterValue",r.filterValue),u.xp6(3),u.s9C("matTooltip",u.lcZ(6,14,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT_DESCRIPTION")),u.Q6J("ngModel",r.async),u.xp6(2),u.hij(" ",u.lcZ(8,16,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),u.xp6(3),u.hij(" ",u.lcZ(11,18,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),u.xp6(2),u.s9C("matTooltip",u.lcZ(13,20,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),u.Q6J("matTooltipDisabled",void 0===n||n.addAuth),u.xp6(2),u.Q6J("disabled",0===r.selection.selected.length||r.loading||void 0!==n&&!n.addAuth),u.xp6(1),u.hij(" ",u.lcZ(16,22,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}var T=function(){var t=function(){function t(e,i,r,o,a){v(this,t),this.dialogRef=e,this.data=i,this.notificator=r,this.translate=o,this.resourcesManager=a,this.filterValue="",this.resources=[],this.selection=new n.Ov(!0,[]),this.theme="",this.async=!0}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.theme=this.data.theme,this.loading=!0,this.resourcesManager.getRichResources(this.data.voId).subscribe(function(e){t.resources=e.filter(function(e){return!t.data.unwantedResources.includes(e.id)}),t.loading=!1},function(){return t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var e=this.selection.selected.map(function(t){return t.id});this.resourcesManager.assignGroupToResources(this.data.group.id,e,this.async).subscribe(function(){t.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(function(e){t.loading=!1,t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(a.so),u.Y36(a.WI),u.Y36(s.V6),u.Y36(c.sK),u.Y36(r.xk))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(t,e){var i;(1&t&&u.Gf(w,5),2&t)&&(u.iGM(i=u.CRH())&&(e.list=i.first))},decls:8,vars:11,consts:[["mat-dialog-title",""],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[3,"resources","disableRouting","selection","groupToResource","displayedColumns","filterValue"],["list",""],["mat-dialog-actions",""],[3,"matTooltip","ngModel","ngModelChange"],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"perun-web-apps-immediate-filter",1),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.ALo(5,"translate"),u.qZA(),u.YNc(6,_,1,0,"mat-spinner",2),u.YNc(7,k,17,25,"div",3),u.qZA()),2&t&&(u.Tol(e.theme),u.xp6(2),u.Oqu(u.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),u.xp6(2),u.Q6J("placeholder",u.lcZ(5,9,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[a.uh,l.L,h.O5,d.$g,a.xY,f.C,a.H8,p.oG,g.gM,m.JJ,m.On,b.lW],pipes:[c.X$],styles:[""]}),t}(),C=i(67033);function S(t,e){1&t&&u._UZ(0,"mat-spinner",4)}function E(t,e){1&t&&u._UZ(0,"th",13)}function x(t,e){if(1&t&&(u.TgZ(0,"td",14),u._uU(1),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.hij(" ",i.name," ")}}function R(t,e){1&t&&u._UZ(0,"tr",15)}function I(t,e){1&t&&u._UZ(0,"tr",16)}function O(t,e){if(1&t&&(u.TgZ(0,"div",5),u.TgZ(1,"p"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",6),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"table",7),u.ynx(8,8),u.YNc(9,E,1,0,"th",9),u.YNc(10,x,2,1,"td",10),u.BQk(),u.YNc(11,R,1,0,"tr",11),u.YNc(12,I,1,0,"tr",12),u.qZA(),u.qZA()),2&t){var i=u.oxw();u.xp6(2),u.hij(" ",u.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),u.xp6(3),u.hij(" ",u.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),u.xp6(2),u.Q6J("dataSource",i.dataSource),u.xp6(4),u.Q6J("matHeaderRowDef",i.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",i.displayedColumns)}}function P(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div",17),u.TgZ(1,"button",18),u.NdJ("click",function(){return u.CHM(i),u.oxw().onCancel()}),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"button",19),u.NdJ("click",function(){return u.CHM(i),u.oxw().onSubmit()}),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA()}if(2&t){var n=u.oxw();u.xp6(2),u.hij(" ",u.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),u.xp6(2),u.Q6J("disabled",n.loading),u.xp6(1),u.hij(" ",u.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}var D=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.resourcesManager=o,this.displayedColumns=["name"]}return y(t,[{key:"ngOnInit",value:function(){this.dataSource=new C.by(this.data.resources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var e=this.data.resources.map(function(t){return t.id});this.resourcesManager.removeGroupFromResources(this.data.groupId,e).subscribe(function(){t.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(function(e){t.loading=!1,t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(a.so),u.Y36(a.WI),u.Y36(s.V6),u.Y36(c.sK),u.Y36(r.xk))},t.\u0275cmp=u.Xpm({type:t,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"],["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(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,S,1,0,"mat-spinner",1),u.YNc(5,O,13,9,"div",2),u.YNc(6,P,7,7,"div",3),u.qZA()),2&t&&(u.Tol(e.data.theme),u.xp6(2),u.Oqu(u.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[a.uh,h.O5,d.$g,a.xY,C.BZ,C.w1,C.fO,C.Dz,C.as,C.nj,C.ge,C.ev,C.XQ,C.Gk,a.H8,b.lW],pipes:[c.X$],styles:[""]}),t}(),M=i(84140),L=i(57629),N=i(59403),z=["list"];function F(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"button",8),u.NdJ("click",function(){return u.CHM(i),u.oxw().addResource()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function Z(t,e){1&t&&u._UZ(0,"mat-spinner",9)}var B=function(){return["select","id","name","status","facility","tags","description"]};function q(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"perun-web-apps-resources-list",10,11),u.NdJ("page",function(t){return u.CHM(i),u.oxw().pageChanged(t)})("refreshTable",function(){return u.CHM(i),u.oxw().refreshTable()}),u.qZA()}if(2&t){var n=u.oxw();u.Q6J("pageSize",n.pageSize)("filterValue",n.filterValue)("resources",n.resources)("routingVo",!0)("disableRouting",!n.routingAuth)("selection",n.selected)("groupToResource",n.group)("groupId",n.groupId)("displayedColumns",u.DdM(9,B))}}var U=function(){var t=function(){function t(e,i,r,a,s,u){v(this,t),this.resourcesManager=e,this.groupService=i,this.tableConfigService=r,this.route=a,this.dialog=s,this.guiAuthResolver=u,this.resources=null,this.selected=new n.Ov(!0,[]),this.filterValue="",this.tableId=o.v1,this.addAuth=!1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.groupId=e.groupId,t.voId=e.voId,t.groupService.getGroupById(t.groupId).subscribe(function(e){t.group=e,t.refreshTable()})})}},{key:"setAuthorization",value:function(){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])}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.resourcesManager.getResourceAssignments(this.group.id).subscribe(function(e){t.resources=e.map(function(t){var e=t.enrichedResource.resource;return e.facility=t.facility,e.status=t.status,e.resourceTags=t.resourceTags,e.failureCause=t.failureCause,e}),t.selected.clear(),t.setAuthorization(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"addResource",value:function(){var t=this,e=(0,M.kZ)();e.width="1000px",e.data={theme:"group-theme",group:this.group,voId:this.voId,unwantedResources:this.resources.map(function(t){return t.id})},this.dialog.open(T,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"removeResource",value:function(){var t=this,e=(0,M.kZ)();e.width="450px",e.data={theme:"group-theme",resources:this.selected.selected,groupId:this.groupId},this.dialog.open(D,e).afterClosed().subscribe(function(e){e&&(t.selected.clear(),t.refreshTable())})}}]),t}();return t.id="GroupResourcesComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(r.xk),u.Y36(r.ff),u.Y36(o.dB),u.Y36(L.gz),u.Y36(a.uw),u.Y36(s.x4))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-group-resources"]],viewQuery:function(t,e){var i;(1&t&&u.Gf(z,5),2&t)&&(u.iGM(i=u.CRH())&&(e.list=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.true)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","groupToResource","groupId","displayedColumns","page","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","groupToResource","groupId","displayedColumns","page","refreshTable"],["list",""]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.YNc(5,F,3,3,"button",2),u.TgZ(6,"span",3),u.ALo(7,"translate"),u.TgZ(8,"button",4),u.NdJ("click",function(){return e.removeResource()}),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.qZA(),u.TgZ(11,"perun-web-apps-immediate-filter",5),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(12,Z,1,0,"mat-spinner",6),u.YNc(13,q,2,10,"perun-web-apps-resources-list",7),u.qZA()),2&t&&(u.xp6(2),u.Oqu(u.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),u.xp6(3),u.Q6J("ngIf",e.addAuth),u.xp6(1),u.s9C("matTooltip",u.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),u.Q6J("matTooltipDisabled",0===e.selected.selected.length||void 0!==e.list&&e.list.removeAuth),u.xp6(2),u.Q6J("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),u.xp6(1),u.hij(" ",u.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),u.xp6(2),u.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",e.resources&&!e.loading))},directives:[N.t,h.O5,g.gM,b.lW,l.L,d.$g,f.C],pipes:[c.X$],styles:[""]}),t}()},65423:function(t,e,i){"use strict";i.d(e,{Z:function(){return U}});var n=i(88426),r=i(92438),o=i(75954),a=i(68570),s=i(24555),u=i(33642),c=i(84140),l=i(31572),h=i(57629),d=i(84608),p=i(48160),g=i(61511),m=i(67806),b=i(43691),w=i(36922),_=i(27679),A=i(59403),k=i(15980),T=i(92846),C=i(27521),S=i(16073),E=i(39571),x=["autoRegToggle"];function R(t,e){1&t&&l._UZ(0,"mat-spinner",3)}function I(t,e){if(1&t&&(l.TgZ(0,"span"),l._uU(1," , "),l.TgZ(2,"mat-icon",21),l._uU(3,"nat"),l.qZA(),l._uU(4),l.ALo(5,"translate"),l.ALo(6,"translate"),l.qZA()),2&t){var i=l.oxw(2);l.xp6(4),l.hij(" ",i.applicationForm.automaticApprovalEmbedded?l.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function O(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"mat-slide-toggle",22,23),l.NdJ("change",function(){return l.CHM(i),l.oxw(2).updateAutoRegistration()}),l._uU(3),l.ALo(4,"translate"),l.qZA(),l.qZA()}if(2&t){var n=l.oxw(2);l.xp6(1),l.Q6J("disabled",!n.changeAutoRegistration)("ngModel",n.autoRegistrationEnabled),l.xp6(2),l.hij(" ",l.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function P(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",24),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).settings()}),l.TgZ(1,"i",18),l._uU(2,"edit"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function D(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",25),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).add()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function M(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",26),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).save()}),l.TgZ(1,"i",18),l._uU(2,"save"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}if(2&t){var n=l.oxw(2);l.Q6J("disabled",!n.itemsChanged),l.xp6(3),l.hij(" ",l.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function L(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",27),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).copy()}),l.TgZ(1,"i",18),l._uU(2,"file_copy"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function N(t,e){1&t&&(l.TgZ(0,"app-alert",28),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}var z=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},F=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function Z(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"div",4),l.TgZ(2,"div",5),l.TgZ(3,"div",6),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.TgZ(6,"div"),l.TgZ(7,"span",6),l._uU(8),l.ALo(9,"translate"),l.qZA(),l._uU(10,": "),l.TgZ(11,"mat-icon",7),l._uU(12,"arrow_right_alt"),l.qZA(),l._uU(13),l.ALo(14,"translate"),l.ALo(15,"translate"),l.TgZ(16,"mat-icon",8),l._uU(17,"restore"),l.qZA(),l._uU(18),l.ALo(19,"translate"),l.ALo(20,"translate"),l.YNc(21,I,7,5,"span",2),l.qZA(),l.YNc(22,O,5,5,"div",2),l.qZA(),l.TgZ(23,"div",9),l.YNc(24,P,5,3,"button",10),l.qZA(),l.qZA(),l._UZ(25,"mat-divider",11),l.TgZ(26,"div",12),l.TgZ(27,"perun-web-apps-refresh-button",13),l.NdJ("refresh",function(){return l.CHM(i),l.oxw().updateFormItems()}),l.qZA(),l.YNc(28,D,3,3,"button",14),l.YNc(29,M,5,4,"button",15),l.YNc(30,L,5,3,"button",16),l.TgZ(31,"button",17),l.NdJ("click",function(){return l.CHM(i),l.oxw().preview()}),l.TgZ(32,"i",18),l._uU(33,"search"),l.qZA(),l._uU(34),l.ALo(35,"translate"),l.qZA(),l.qZA(),l.YNc(36,N,3,3,"app-alert",19),l.TgZ(37,"app-application-form-list",20),l.NdJ("applicationFormItemsChange",function(){return l.CHM(i),l.oxw().changeItems()}),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(2),l.Q6J("ngClass",n.autoRegistrationEnabled?"w-75":"w-50"),l.xp6(2),l.AsE("",l.lcZ(5,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",n.applicationForm.moduleClassName," "),l.xp6(4),l.Oqu(l.lcZ(9,21,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),l.xp6(5),l.hij(" ",n.applicationForm.automaticApproval?l.lcZ(14,23,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(15,25,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),l.xp6(5),l.hij(" ",n.applicationForm.automaticApprovalExtension?l.lcZ(19,27,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(20,29,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),l.xp6(3),l.Q6J("ngIf",n.autoRegistrationEnabled),l.xp6(1),l.Q6J("ngIf",n.voHasEmbeddedGroupApplication),l.xp6(2),l.Q6J("ngIf",n.editAuth),l.xp6(4),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("ngIf",n.editAuth),l.xp6(4),l.hij(" ",l.lcZ(35,31,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),l.xp6(2),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("loading",n.loading)("applicationForm",n.applicationForm)("applicationFormItems",n.applicationFormItems)("theme","group-theme")("displayedColumns",n.editAuth?l.DdM(33,z):l.DdM(34,F))}}function B(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",17),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).createEmptyApplicationForm()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function q(t,e){if(1&t&&(l.TgZ(0,"div"),l.TgZ(1,"app-alert",29),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,B,3,3,"button",30),l.qZA()),2&t){var i=l.oxw();l.xp6(2),l.Oqu(l.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),l.xp6(2),l.Q6J("ngIf",i.createEmptyForm)}}var U=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c,l){v(this,t),this.registrarManager=e,this.route=i,this.dialog=n,this.notificator=r,this.translate=o,this.apiRequest=a,this.router=s,this.guiAuthResolver=u,this.groupsManager=c,this.attributesManager=l,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.idCounter=-1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.parent.params.subscribe(function(e){t.voId=e.voId,t.groupId=e.groupId,t.groupsManager.getGroupById(t.groupId).subscribe(function(e){t.group=e,t.apiRequest.dontHandleErrorForNext(),t.registrarManager.getGroupApplicationForm(t.groupId).subscribe(function(e){t.applicationForm=e,t.registrarManager.getFormItemsForGroup(t.groupId).subscribe(function(e){t.applicationFormItems=e,t.attributesManager.getGroupAttributeByName(t.groupId,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(function(e){t.voHasEmbeddedGroupApplication=null!==e.value,t.autoRegistrationEnabled=!!e.value,t.setAuth(),t.loading=!1})},function(){return t.loading=!1})},function(e){"FormNotExistsException"===e.error.name?(t.noApplicationForm=!0,t.setAuth(),t.loading=!1):t.notificator.showRPCError(e.error)})},function(){return t.loading=!1})})}},{key:"setAuth",value:function(){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])}},{key:"add",value:function(){var t=this,e=(0,c.kZ)();e.width="500px",e.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(r.J,e).afterClosed().subscribe(function(i){i&&(t.applicationFormItems=Object.assign([],i[0]),(e=(0,c.kZ)()).width="600px",e.height="600px",e.data={voId:t.voId,groupId:t.groupId,applicationFormItem:i[1],theme:"group-theme",allItems:t.applicationFormItems},t.dialog.open(o._,e),t.itemsChanged=!0)})}},{key:"copy",value:function(){var t=this,e=(0,c.kZ)();e.width="500px",e.data={voId:this.voId,groupId:this.groupId,theme:"group-theme"},this.dialog.open(a.W,e).afterClosed().subscribe(function(e){e&&t.updateFormItems()})}},{key:"settings",value:function(){var t=this,e=(0,c.kZ)();e.width="400px",e.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(s.E,e).afterClosed().subscribe(function(e){e&&(t.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.applicationForm=e)})}},{key:"preview",value:function(){this.router.navigate(["/organizations",this.voId,"groups",this.groupId,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}},{key:"updateFormItems",value:function(){var t=this;this.loading=!0,this.registrarManager.getFormItemsForGroup(this.groupId).subscribe(function(e){t.applicationFormItems=e,t.itemsChanged=!1,t.loading=!1})}},{key:"changeItems",value:function(){this.itemsChanged=!0}},{key:"createEmptyApplicationForm",value:function(){var t=this;this.registrarManager.createApplicationFormInGroup(this.groupId).subscribe(function(){t.noApplicationForm=!1,t.ngOnInit()})}},{key:"save",value:function(){var t,e=this,i=0,n=f(this.applicationFormItems);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.ordnum=i,r.forDelete||i++}}catch(o){n.e(o)}finally{n.f()}this.registrarManager.updateFormItemsForGroup({group:this.groupId,items:this.applicationFormItems}).subscribe(function(){e.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(function(t){e.notificator.showSuccess(t)}),e.updateFormItems()})}},{key:"clear",value:function(){this.applicationFormItems=[],this.itemsChanged=!0}},{key:"updateAutoRegistration",value:function(){var t=this;this.autoRegToggle.setDisabledState(!0),this.autoRegistrationEnabled?this.registrarManager.deleteGroupsFromAutoRegistration([this.group.id]).subscribe(function(){t.autoRegistrationEnabled=!t.autoRegistrationEnabled,t.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.autoRegToggle.setDisabledState(!1)},function(){return t.autoRegToggle.setDisabledState(!1)}):this.registrarManager.addGroupsToAutoRegistration([this.group.id]).subscribe(function(){t.autoRegistrationEnabled=!t.autoRegistrationEnabled,t.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.autoRegToggle.setDisabledState(!1)},function(){return t.autoRegToggle.setDisabledState(!1)})}}]),t}();return t.id="GroupSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(u.tk),l.Y36(h.gz),l.Y36(d.uw),l.Y36(n.V6),l.Y36(p.sK),l.Y36(n.F5),l.Y36(h.F0),l.Y36(n.x4),l.Y36(u.ff),l.Y36(u.H8))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-group-settings-application-form"]],viewQuery:function(t,e){var i;(1&t&&l.Gf(x,5),2&t)&&(l.iGM(i=l.CRH())&&(e.autoRegToggle=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[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"],["mat-stroked-button","","class","ml-auto",3,"click",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","applicationFormItemsChange"],["matTooltip","Embedded",1,"align-text-bottom"],["color","primary",3,"disabled","ngModel","change"],["autoRegToggle",""],["mat-stroked-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"click"],["alert_type","info"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.YNc(3,R,1,0,"mat-spinner",1),l.YNc(4,Z,38,35,"div",2),l.YNc(5,q,5,4,"div",2)),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading&&!e.noApplicationForm),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.noApplicationForm))},directives:[g.O5,m.$g,g.mk,b.Hw,w.gM,_.d,A.t,k.lW,T.b,C.Rr,S.JJ,S.On,E.w],pipes:[p.X$],styles:[""]}),t}()},82044:function(t,e,i){"use strict";i.d(e,{u:function(){return B}});var n=i(88419),r=i(4230),o=i(43491),a=i(84140),s=i(33642),u=i(67004),c=i(60611),l=i(57820),h=i(88426),d=(i(41939),i(31572)),f=i(84608),p=i(57629),g=i(59403),m=i(61511),b=i(91058),w=i(27521),_=i(16073),A=i(15980),k=i(36922),T=i(67806),C=i(11441),S=i(78364),E=i(48160),x=["tree"],R=["list"],I=["toggle"];function O(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"button",9),d.NdJ("click",function(){return d.CHM(i),d.oxw().onCreateGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function P(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"button",12),d.NdJ("click",function(){return d.CHM(i),d.oxw(2).deleteGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("disabled",0===n.selected.selected.length||void 0!==n.tree&&!n.tree.removeAuth||void 0!==n.list&&!n.list.removeAuth),d.xp6(1),d.hij(" ",d.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function D(t,e){if(1&t&&(d.TgZ(0,"span",10),d.ALo(1,"translate"),d.YNc(2,P,3,4,"button",11),d.qZA()),2&t){var i=d.oxw();d.s9C("matTooltip",d.lcZ(1,3,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),d.Q6J("matTooltipDisabled",void 0===i.tree&&void 0===i.list||void 0!==i.tree&&i.tree.removeAuth||void 0!==i.list&&i.list.removeAuth),d.xp6(2),d.Q6J("ngIf",!i.loading&&i.deleteAuth)}}function M(t,e){1&t&&d._UZ(0,"mat-spinner",13)}function L(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-tree",17,18),d.NdJ("moveGroup",function(t){return d.CHM(i),d.oxw(2).onMoveGroup(t)})("refreshTable",function(){return d.CHM(i),d.oxw(2).refreshTable()}),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("groups",n.groups)("expandAll",n.filtering)("hideCheckbox",!n.deleteAuth)("selection",n.selected)("filterValue",n.filterValue)("disableRouting",!n.routeAuth)}}var N=function(){return["select","id","name","description","menu"]},z=function(){return["id","name","description","menu"]};function F(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",19,20),d.NdJ("page",function(t){return d.CHM(i),d.oxw(2).pageChanged(t)})("moveGroup",function(t){return d.CHM(i),d.oxw(2).onMoveGroup(t)})("refreshTable",function(){return d.CHM(i),d.oxw(2).refreshTable()}),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("pageSize",n.pageSize)("groups",n.groups)("selection",n.selected)("authType","group-subgroups")("disableMembers",!0)("disableRouting",!n.routeAuth)("displayedColumns",n.deleteAuth?d.DdM(8,N):d.DdM(9,z))("filter",n.filterValue)}}function Z(t,e){if(1&t&&(d.TgZ(0,"div",14),d.YNc(1,L,2,6,"perun-web-apps-groups-tree",15),d.YNc(2,F,2,10,"perun-web-apps-groups-list",16),d.qZA()),2&t){var i=d.oxw();d.xp6(1),d.Q6J("ngIf",!i.showGroupList),d.xp6(1),d.Q6J("ngIf",i.showGroupList)}}var B=function(){var t=function(){function t(e,i,n,o,a,s){v(this,t),this.dialog=e,this.groupService=i,this.tableConfigService=n,this.route=o,this.guiAuthResolver=a,this.initAuthService=s,this.groups=[],this.selected=new r.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=c.bf,this.filterValue=""}return y(t,[{key:"onCreateGroup",value:function(){var t=this,e=(0,a.kZ)();e.width="450px",e.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(n.y,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.refreshTable())})}},{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(function(){localStorage.setItem("preferedValue",t.toggle.checked?"list":"tree")}),this.route.parent.params.subscribe(function(e){t.groupService.getGroupById(e.groupId).subscribe(function(e){t.group=e,t.refreshTable()})})}},{key:"setAuthRights",value:function(){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]]))}},{key:"deleteGroup",value:function(){var t=this,e=(0,a.kZ)();e.width="450px",e.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(o.P,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[u.r.GROUP_DEF_MAIL_FOOTER,u.r.GROUP_SYNC_ENABLED,u.r.GROUP_LAST_SYNC_STATE,u.r.GROUP_LAST_SYNC_TIMESTAMP,u.r.GROUP_STRUCTURE_SYNC_ENABLED,u.r.GROUP_LAST_STRUCTURE_SYNC_STATE,u.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(function(e){t.groups=e,t.selected.clear(),t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t,this.filtering=""!==t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"onMoveGroup",value:function(t){var e=this,i=(0,a.kZ)();i.width="550px",i.data={group:t,theme:"group-theme"},this.dialog.open(l.c,i).afterClosed().subscribe(function(t){t&&e.refreshTable()})}}]),t}();return t.id="GroupSubgroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Y36(f.uw),d.Y36(s.ff),d.Y36(c.dB),d.Y36(p.gz),d.Y36(h.x4),d.Y36(h.v0))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-group-subgroups"]],viewQuery:function(t,e){var i;(1&t&&(d.Gf(x,5),d.Gf(R,5),d.Gf(I,7)),2&t)&&(d.iGM(i=d.CRH())&&(e.tree=i.first),d.iGM(i=d.CRH())&&(e.list=i.first),d.iGM(i=d.CRH())&&(e.toggle=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("router-component",e.true)},decls:17,vars:16,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled",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","mat-flat-button","",1,"mr-2",3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable",4,"ngIf"],[3,"pageSize","groups","selection","authType","disableMembers","disableRouting","displayedColumns","filter","page","moveGroup","refreshTable",4,"ngIf"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable"],["tree",""],[3,"pageSize","groups","selection","authType","disableMembers","disableRouting","displayedColumns","filter","page","moveGroup","refreshTable"],["list",""]],template:function(t,e){if(1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return e.refreshTable()}),d.qZA(),d.YNc(5,O,3,3,"button",2),d.YNc(6,D,3,5,"span",3),d.TgZ(7,"perun-web-apps-debounce-filter",4),d.NdJ("filter",function(t){return e.applyFilter(t)}),d.qZA(),d.TgZ(8,"mat-slide-toggle",5,6),d.NdJ("change",function(){return e.selected.clear()})("ngModelChange",function(t){return e.showGroupList=t}),d._uU(10),d.ALo(11,"translate"),d.qZA(),d.TgZ(12,"label"),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.YNc(15,M,1,0,"mat-spinner",7),d.YNc(16,Z,3,2,"div",8),d.qZA()),2&t){var i=d.MAs(9);d.xp6(2),d.Oqu(d.lcZ(3,10,"GROUP_DETAIL.SUBGROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",!e.loading&&e.createAuth),d.xp6(1),d.Q6J("ngIf",!e.loading),d.xp6(1),d.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),d.xp6(1),d.Q6J("ngModel",e.showGroupList),d.xp6(2),d.Oqu(d.lcZ(11,12,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),d.xp6(2),d.uIk("for",i.inputId),d.xp6(1),d.Oqu(d.lcZ(14,14,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),d.xp6(2),d.Q6J("ngIf",e.loading),d.xp6(1),d.Q6J("ngIf",!e.loading)}},directives:[g.t,m.O5,b.P,w.Rr,_.JJ,_.On,A.lW,k.gM,T.$g,C.I,S.W],pipes:[E.X$],styles:[""]}),t}()},81835:function(t,e,i){"use strict";i.d(e,{j:function(){return G}});var n=i(33642),r=i(60611),o=i(4230),a=i(84140),s=i(84608),u=i(88426),c=i(67004),l=i(31572),h=i(48160),d=i(61511),f=i(67806),p=i(19139),g=i(78364),m=i(15980);function b(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function w(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",7),l.NdJ("filter",function(t){return l.CHM(i),l.oxw().applyFilter(t)}),l.qZA()}2&t&&l.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}var _=function(){return["select","id","name","description"]};function A(t,e){if(1&t&&l._UZ(0,"perun-web-apps-groups-list",8),2&t){var i=l.oxw();l.Q6J("groups",i.groups)("selection",i.selection)("displayedColumns",l.DdM(8,_))("filter",i.filterValue)("groupsToDisable",i.membersGroups)("disableGroups",!0)("disableRouting",!0)("disableMembers",!0)}}function k(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div",9),l.TgZ(1,"button",10),l.NdJ("click",function(){return l.CHM(i),l.oxw().onCancel()}),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"button",11),l.NdJ("click",function(){return l.CHM(i),l.oxw().onAdd()}),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),l.xp6(2),l.Q6J("disabled",0===n.selection.selected.length),l.xp6(1),l.hij(" ",l.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}var T=function(){var t=function(){function t(e,i,n,r,a,s,u){v(this,t),this.dialogRef=e,this.data=i,this.groupManager=n,this.memberManager=r,this.notificator=a,this.translate=s,this.authResolver=u,this.loading=!1,this.groups=[],this.selection=new o.Ov(!0,[]),this.attrNames=[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],this.filterValue=""}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.theme=this.data.theme,this.membersGroups=this.data.membersGroups,this.loading=!0,this.memberManager.getMemberById(this.data.memberId).subscribe(function(e){t.member=e,t.groupManager.getAllRichGroupsWithAttributesByNames(t.member.voId,t.attrNames).subscribe(function(e){t.groups=e.filter(function(e){return t.authResolver.isAuthorized("addMember_Group_Member_policy",[e])}),t.loading=!1},function(){return t.loading=!1})})}},{key:"onAdd",value:function(){var t=this,e=this.selection.selected.map(function(t){return t.id});this.loading=!0,this.groupManager.addMember(e,this.member.id).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.ADD_MEMBER_GROUP.SUCCESS")),t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(s.so),l.Y36(s.WI),l.Y36(n.ff),l.Y36(n.uq),l.Y36(u.V6),l.Y36(h.sK),l.Y36(u.x4))},t.\u0275cmp=l.Xpm({type:t,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,"groups","selection","displayedColumns","filter","groupsToDisable","disableGroups","disableRouting","disableMembers",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"groups","selection","displayedColumns","filter","groupsToDisable","disableGroups","disableRouting","disableMembers"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,b,1,0,"mat-spinner",1),l.TgZ(5,"div",2),l.YNc(6,w,1,1,"perun-web-apps-immediate-filter",3),l.YNc(7,A,1,9,"perun-web-apps-groups-list",4),l.qZA(),l.YNc(8,k,7,7,"div",5),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[s.uh,d.O5,s.xY,f.$g,p.L,g.W,s.H8,m.lW],pipes:[h.X$],styles:[""]}),t}(),C=i(67033);function S(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function E(t,e){1&t&&l._UZ(0,"th",15)}function x(t,e){if(1&t&&(l.TgZ(0,"td",16),l._uU(1),l.qZA()),2&t){var i=e.$implicit;l.xp6(1),l.hij(" ",i.name," ")}}function R(t,e){1&t&&l._UZ(0,"tr",17)}function I(t,e){1&t&&l._UZ(0,"tr",18)}function O(t,e){if(1&t&&(l.TgZ(0,"div",7),l.TgZ(1,"p"),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",8),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.TgZ(7,"table",9),l.ynx(8,10),l.YNc(9,E,1,0,"th",11),l.YNc(10,x,2,1,"td",12),l.BQk(),l.YNc(11,R,1,0,"tr",13),l.YNc(12,I,1,0,"tr",14),l.qZA(),l.qZA()),2&t){var i=l.oxw();l.xp6(2),l.Oqu(l.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),l.xp6(3),l.hij(" ",l.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),l.xp6(2),l.Q6J("dataSource",i.dataSource),l.xp6(4),l.Q6J("matHeaderRowDef",i.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",i.displayedColumns)}}var P=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this.dialogRef=e,this.data=i,this.groupManager=n,this.notificator=r,this.translate=o,this.displayedColumns=["name"],this.loading=!1}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new C.by(this.data.groups)}},{key:"onRemove",value:function(){var t=this;this.loading=!0;var e=this.dataSource.data.map(function(t){return t.id});this.groupManager.removeMember(e,this.data.memberId).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.REMOVE_MEMBER_GROUP.SUCCESS")),t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(s.so),l.Y36(s.WI),l.Y36(n.ff),l.Y36(u.V6),l.Y36(h.sK))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-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,"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"],["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(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,S,1,0,"mat-spinner",1),l.YNc(5,O,13,9,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onRemove()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.hij("",l.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),l.xp6(2),l.Q6J("disabled",e.loading),l.xp6(1),l.hij("",l.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},directives:[s.uh,d.O5,s.H8,m.lW,f.$g,s.xY,C.BZ,C.w1,C.fO,C.Dz,C.as,C.nj,C.ge,C.ev,C.XQ,C.Gk],pipes:[h.X$],styles:[""]}),t}();i(41939);var D=i(57629),M=i(59403),L=i(36922),N=["list"];function z(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-refresh-button",7),l.NdJ("refresh",function(){return l.CHM(i),l.oxw().refreshTable()}),l.qZA()}}function F(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",8),l.NdJ("click",function(){return l.CHM(i),l.oxw().addGroup()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function Z(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).removeGroup()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){var n=l.oxw(2);l.Q6J("disabled",0===n.selection.selected.length||void 0!==n.list&&!n.list.removeAuth),l.xp6(1),l.hij(" ",l.lcZ(2,2,"MEMBER_DETAIL.GROUPS.REMOVE")," ")}}function B(t,e){if(1&t&&(l.TgZ(0,"span",9),l.ALo(1,"translate"),l.YNc(2,Z,3,4,"button",10),l.qZA()),2&t){var i=l.oxw();l.s9C("matTooltip",l.lcZ(1,3,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),l.Q6J("matTooltipDisabled",void 0===i.list||void 0!==i.list&&i.list.removeAuth),l.xp6(2),l.Q6J("ngIf",!i.loading)}}function q(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",12),l.NdJ("filter",function(t){return l.CHM(i),l.oxw().applyFilter(t)}),l.qZA()}2&t&&l.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH")}function U(t,e){1&t&&l._UZ(0,"mat-spinner",13)}var H=function(){return["select","id","vo","name","description","expiration"]};function j(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-groups-list",14,15),l.NdJ("page",function(t){return l.CHM(i),l.oxw().pageChanged(t)})("refreshTable",function(){return l.CHM(i),l.oxw().refreshTable()}),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("pageSize",n.pageSize)("groups",n.groups)("displayedColumns",l.DdM(9,H))("selection",n.selection)("filter",n.filterValue)("memberId",n.memberId)("memberGroupStatus",n.member.groupStatus)("disableRouting",!n.routeAuth)("authType","member-groups")}}var G=function(){var t=function(){function t(e,i,n,a,s,u){v(this,t),this.groupsService=e,this.tableConfigService=i,this.route=n,this.dialog=a,this.authResolver=s,this.memberService=u,this.filterValue="",this.tableId=r.W1,this.selection=new o.Ov(!0,[])}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.params.subscribe(function(e){t.memberId=e.memberId,t.memberService.getMemberById(t.memberId).subscribe(function(e){t.member=e,t.groupsService.getAllGroups(t.member.voId).subscribe(function(e){t.allGroups=e,t.refreshTable()})})})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,["urn:perun:member_group:attribute-def:def:groupMembershipExpiration"]).subscribe(function(e){t.selection.clear(),t.filterValue="",t.groups=e,t.setAuthRights(),t.loading=!1},function(){return t.loading=!1})}},{key:"setAuthRights",value:function(){var t=this,e={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce(function(e,i){return e||t.authResolver.isAuthorized("addMember_Group_Member_policy",[i])},!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[e,this.groups[0]]))}},{key:"addGroup",value:function(){var t=this,e=(0,a.kZ)();e.width="850px",e.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(function(t){return t.id})),theme:"member-theme"},this.dialog.open(T,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"removeGroup",value:function(){var t=this,e=(0,a.kZ)();e.width="650px",e.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(P,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="MemberGroupsComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(n.ff),l.Y36(r.dB),l.Y36(D.gz),l.Y36(s.uw),l.Y36(u.x4),l.Y36(n.uq))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-member-groups"]],viewQuery:function(t,e){var i;(1&t&&l.Gf(N,5),2&t)&&(l.iGM(i=l.CRH())&&(e.list=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:9,vars:9,consts:[[1,"page-subtitle"],[3,"refresh",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"pageSize","groups","displayedColumns","selection","filter","memberId","memberGroupStatus","disableRouting","authType","page","refreshTable",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[3,"pageSize","groups","displayedColumns","selection","filter","memberId","memberGroupStatus","disableRouting","authType","page","refreshTable"],["list",""]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.YNc(3,z,1,0,"perun-web-apps-refresh-button",1),l.YNc(4,F,3,3,"button",2),l.YNc(5,B,3,5,"span",3),l.YNc(6,q,1,1,"perun-web-apps-immediate-filter",4),l.YNc(7,U,1,0,"mat-spinner",5),l.YNc(8,j,2,10,"perun-web-apps-groups-list",6)),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,7,"MEMBER_DETAIL.GROUPS.TITLE")),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.addAuth),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[d.O5,M.t,m.lW,L.gM,p.L,f.$g,g.W],pipes:[h.X$],styles:[""]}),t}()},40659:function(t,e,i){"use strict";i.d(e,{c:function(){return R}});var n=i(33642),r=i(60611),o=i(16073),a=i(61511),s=i(31572),u=i(57629),c=i(59403),l=i(66283),h=i(4786),d=i(71522),f=i(91058),p=i(51613),g=i(29236),m=i(15980),b=i(67806),w=i(21548),_=i(29851),A=i(48160);function k(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"button",16),s.NdJ("click",function(){return s.CHM(i),s.oxw().showAllDetails=!0}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function T(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"button",16),s.NdJ("click",function(){return s.CHM(i),s.oxw().showAllDetails=!1}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function C(t,e){1&t&&s._UZ(0,"mat-spinner",17)}function S(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"app-applications-list",20),s.NdJ("page",function(t){return s.CHM(i),s.oxw(2).pageChanged(t)}),s.qZA()}if(2&t){var n=s.oxw(2);s.Q6J("pageSize",n.pageSize)("filterValue",n.filterValue)("applications",n.applications)("displayedColumns",n.displayedColumns)}}function E(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"app-perun-web-apps-application-list-details",21),s.NdJ("page",function(t){return s.CHM(i),s.oxw(2).detailPageChanged(t)}),s.qZA()}if(2&t){var n=s.oxw(2);s.Q6J("pageSize",n.detailPageSize)("filterValue",n.filterValue)("applications",n.applications)}}function x(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,S,1,4,"app-applications-list",18),s.YNc(2,E,1,3,"app-perun-web-apps-application-list-details",19),s.qZA()),2&t){var i=s.oxw();s.xp6(1),s.Q6J("ngIf",!i.showAllDetails),s.xp6(1),s.Q6J("ngIf",i.showAllDetails)}}var R=function(){var t=function(){function t(e,i,n,o){v(this,t),this.voService=e,this.registrarManager=i,this.tableConfigService=n,this.route=o,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","group","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=r.Jf,this.tableId=r.Hi,this.checked=!1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.detailPageSize=this.tableConfigService.getTablePageSize(this.detailTableId),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.loading=!0,this.route.parent.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e,t.setData(["NEW","VERIFIED"])}),t.startDate=new o.NI((0,a.p6)(t.yearAgo(),"yyyy-MM-dd","en-GB")),t.endDate=new o.NI((0,a.p6)(new Date,"yyyy-MM-dd","en-GB"))})}},{key:"setData",value:function(t){var e=this;this.registrarManager.getApplicationsForVo(this.vo.id,t,(0,a.p6)(this.startDate.value,"yyyy-MM-dd","en-GB"),(0,a.p6)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(function(t){e.applications=!1===e.checked?t.filter(function(t){return null===t.group}):t,e.loading=!1})}},{key:"select",value:function(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}},{key:"yearAgo",value:function(){var t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}},{key:"showGroupApplications",value:function(t){this.checked=t.checked,this.select()}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"detailPageChanged",value:function(t){this.detailPageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.detailTableId,t.pageSize)}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="VoApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(s.Y36(n.YF),s.Y36(n.tk),s.Y36(r.dB),s.Y36(u.gz))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:38,vars:36,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,"startDate","endDate","datePicker"],["color","primary",3,"checked","change"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","applications","displayedColumns","page",4,"ngIf"],[3,"pageSize","filterValue","applications","page",4,"ngIf"],[3,"pageSize","filterValue","applications","displayedColumns","page"],[3,"pageSize","filterValue","applications","page"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div"),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.select()}),s.qZA(),s.YNc(5,k,3,3,"button",2),s.YNc(6,T,3,3,"button",2),s.TgZ(7,"mat-form-field",3),s.TgZ(8,"mat-label"),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.TgZ(11,"mat-select",4),s.NdJ("selectionChange",function(){return e.select()})("valueChange",function(t){return e.state=t}),s.TgZ(12,"mat-option",5),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"mat-option",6),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"mat-option",7),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.TgZ(21,"mat-option",8),s._uU(22),s.ALo(23,"translate"),s.qZA(),s.TgZ(24,"mat-option",9),s._uU(25),s.ALo(26,"translate"),s.qZA(),s.TgZ(27,"mat-option",10),s._uU(28),s.ALo(29,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(30,"perun-web-apps-debounce-filter",11),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.TgZ(31,"perun-web-apps-date-range",12),s.NdJ("datePicker",function(){return e.select()}),s.qZA(),s.TgZ(32,"div"),s.TgZ(33,"mat-checkbox",13),s.NdJ("change",function(t){return e.showGroupApplications(t)}),s._uU(34),s.ALo(35,"translate"),s.qZA(),s.qZA(),s.qZA(),s.YNc(36,C,1,0,"mat-spinner",14),s.YNc(37,x,3,2,"div",15)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,18,"VO_DETAIL.APPLICATION.TITLE")),s.xp6(4),s.Q6J("ngIf",!e.showAllDetails),s.xp6(1),s.Q6J("ngIf",e.showAllDetails),s.xp6(3),s.Oqu(s.lcZ(10,20,"VO_DETAIL.APPLICATION.TABLE_STATE")),s.xp6(2),s.Q6J("value",e.state),s.xp6(2),s.Oqu(s.lcZ(14,22,"VO_DETAIL.APPLICATION.SELECTION_ALL")),s.xp6(3),s.Oqu(s.lcZ(17,24,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),s.xp6(3),s.Oqu(s.lcZ(20,26,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),s.xp6(3),s.Oqu(s.lcZ(23,28,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),s.xp6(3),s.Oqu(s.lcZ(26,30,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),s.xp6(3),s.Oqu(s.lcZ(29,32,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),s.xp6(2),s.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),s.xp6(1),s.Q6J("startDate",e.startDate)("endDate",e.endDate),s.xp6(2),s.Q6J("checked",e.checked),s.xp6(1),s.hij(" ",s.lcZ(35,34,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[c.t,a.O5,l.KE,l.hX,h.gD,d.ey,f.P,p.S,g.oG,m.lW,b.$g,w.M,_.w],pipes:[A.X$],styles:[""]}),t}()},48002:function(t,e,i){"use strict";i.d(e,{G:function(){return U}});var n=i(88419),r=i(43491),o=i(4230),a=i(57820),s=i(84140),u=i(33642),c=i(60611),l=i(67004),h=i(88426),d=(i(41939),i(31572)),f=i(84608),p=i(48958),g=i(57629),m=i(59403),b=i(61511),w=i(91058),_=i(27521),A=i(16073),k=i(15980),T=i(36922),C=i(67806),S=i(11441),E=i(78364),x=i(39571),R=i(48160),I=["toggle"],O=["tree"],P=["list"];function D(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"button",10),d.NdJ("click",function(){return d.CHM(i),d.oxw().onCreateGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function M(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"button",13),d.NdJ("click",function(){return d.CHM(i),d.oxw(2).deleteGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("disabled",0===n.selected.selected.length||n.disableRemove()),d.xp6(1),d.hij(" ",d.lcZ(2,2,"VO_DETAIL.GROUPS.DELETE_GROUP")," ")}}function L(t,e){if(1&t&&(d.TgZ(0,"span",11),d.ALo(1,"translate"),d.YNc(2,M,3,4,"button",12),d.qZA()),2&t){var i=d.oxw();d.s9C("matTooltip",d.lcZ(1,3,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),d.Q6J("matTooltipDisabled",void 0===i.tree&&void 0===i.list||i.disableTooltip()),d.xp6(2),d.Q6J("ngIf",!i.loading)}}function N(t,e){1&t&&d._UZ(0,"mat-spinner",14)}function z(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-tree",18,19),d.NdJ("moveGroup",function(t){return d.CHM(i),d.oxw(2).onMoveGroup(t)})("refreshTable",function(){return d.CHM(i),d.oxw(2).loadAllGroups()}),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("groups",n.groups)("expandAll",n.filtering)("vo",n.vo)("selection",n.selected)("disableRouting",!n.routeAuth)("filterValue",n.filterValue)}}var F=function(){return["select","id","name","description","menu"]};function Z(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",20,21),d.NdJ("page",function(t){return d.CHM(i),d.oxw(2).pageChanged(t)})("moveGroup",function(t){return d.CHM(i),d.oxw(2).onMoveGroup(t)})("refreshTable",function(){return d.CHM(i),d.oxw(2).loadAllGroups()}),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("pageSize",n.pageSize)("groups",n.groups)("selection",n.selected)("disableMembers",!0)("displayedColumns",d.DdM(8,F))("disableRouting",!n.routeAuth)("authType","vo-groups")("filter",n.filterValue)}}function B(t,e){if(1&t&&(d.TgZ(0,"div",15),d.YNc(1,z,2,6,"perun-web-apps-groups-tree",16),d.YNc(2,Z,2,9,"perun-web-apps-groups-list",17),d.qZA()),2&t){var i=d.oxw();d.xp6(1),d.Q6J("ngIf",!i.showGroupList),d.xp6(1),d.Q6J("ngIf",i.showGroupList)}}function q(t,e){1&t&&(d.TgZ(0,"app-alert",22),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}var U=function(){var t=function(){function t(e,i,n,r,a,s,u,l){v(this,t),this.dialog=e,this.groupService=i,this.sideMenuService=n,this.voService=r,this.route=a,this.tableConfigService=s,this.authResolver=u,this.initAuthService=l,this.groups=[],this.showGroupList=!1,this.selected=new o.Ov(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=c.rc}return y(t,[{key:"onCreateGroup",value:function(){var t=this,e=(0,s.kZ)();e.width="450px",e.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(n.y,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.loadAllGroups())})}},{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(function(){localStorage.setItem("preferedValue",t.toggle.checked?"list":"tree"),t.loadAllGroups()}),this.route.parent.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e,t.loadAllGroups()})})}},{key:"setAuthRights",value:function(){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]]))}},{key:"disableRemove",value:function(){return void 0!==this.tree&&!this.tree.removeAuth||void 0!==this.list&&!this.list.removeAuth}},{key:"disableTooltip",value:function(){return void 0!==this.tree&&this.tree.removeAuth||void 0!==this.list&&this.list.removeAuth}},{key:"deleteGroup",value:function(){var t=this,e=(0,s.kZ)();e.width="450px",e.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(r.P,e).afterClosed().subscribe(function(e){e&&t.loadAllGroups()})}},{key:"removeAllGroups",value:function(){this.selected.clear()}},{key:"onMoveGroup",value:function(t){var e=this,i=(0,s.kZ)();i.width="550px",i.data={group:t,theme:"vo-theme"},this.dialog.open(a.c,i).afterClosed().subscribe(function(t){t&&e.loadAllGroups()})}},{key:"loadAllGroups",value:function(){var t=this;this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[l.r.GROUP_SYNC_ENABLED,l.r.GROUP_LAST_SYNC_STATE,l.r.GROUP_LAST_SYNC_TIMESTAMP,l.r.GROUP_STRUCTURE_SYNC_ENABLED,l.r.GROUP_LAST_STRUCTURE_SYNC_STATE,l.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(function(e){t.groups=e,t.selected.clear(),t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t,this.filtering=""!==t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="VoGroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Y36(f.uw),d.Y36(u.ff),d.Y36(p.D),d.Y36(u.YF),d.Y36(g.gz),d.Y36(c.dB),d.Y36(h.x4),d.Y36(h.v0))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-vo-groups"]],viewQuery:function(t,e){var i;(1&t&&(d.Gf(I,7),d.Gf(O,5),d.Gf(P,5)),2&t)&&(d.iGM(i=d.CRH())&&(e.toggle=i.first),d.iGM(i=d.CRH())&&(e.tree=i.first),d.iGM(i=d.CRH())&&(e.list=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("router-component",e.true)},decls:18,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"pageSize","groups","selection","disableMembers","displayedColumns","disableRouting","authType","filter","page","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable"],["tree",""],["theme","vo-theme",3,"pageSize","groups","selection","disableMembers","displayedColumns","disableRouting","authType","filter","page","moveGroup","refreshTable"],["list",""],["alert_type","warn"]],template:function(t,e){if(1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return e.loadAllGroups()}),d.qZA(),d.YNc(5,D,3,3,"button",2),d.YNc(6,L,3,5,"span",3),d.TgZ(7,"perun-web-apps-debounce-filter",4),d.NdJ("filter",function(t){return e.applyFilter(t)}),d.qZA(),d.TgZ(8,"mat-slide-toggle",5,6),d.NdJ("change",function(){return e.removeAllGroups()})("ngModelChange",function(t){return e.showGroupList=t}),d._uU(10),d.ALo(11,"translate"),d.qZA(),d.TgZ(12,"label"),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.YNc(15,N,1,0,"mat-spinner",7),d.YNc(16,B,3,2,"div",8),d.YNc(17,q,3,3,"app-alert",9),d.qZA()),2&t){var i=d.MAs(9);d.xp6(2),d.Oqu(d.lcZ(3,11,"VO_DETAIL.GROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",!e.loading&&e.createAuth),d.xp6(1),d.Q6J("ngIf",!e.loading),d.xp6(1),d.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),d.xp6(1),d.Q6J("ngModel",e.showGroupList),d.xp6(2),d.Oqu(d.lcZ(11,13,"VO_DETAIL.GROUPS.TREE_VIEW")),d.xp6(2),d.uIk("for",i.inputId),d.xp6(1),d.Oqu(d.lcZ(14,15,"VO_DETAIL.GROUPS.LIST_VIEW")),d.xp6(2),d.Q6J("ngIf",e.loading),d.xp6(1),d.Q6J("ngIf",!e.loading&&0!==e.groups.length),d.xp6(1),d.Q6J("ngIf",0===e.groups.length&&!e.loading)}},directives:[m.t,b.O5,w.P,_.Rr,A.JJ,A.On,k.lW,T.gM,C.$g,S.I,E.W,x.w],pipes:[R.X$],styles:[""]}),t}()},28940:function(t,e,i){"use strict";i.d(e,{y:function(){return L}});var n=i(4230),r=i(88426),o=i(4374),a=i(85613),s=i(33642),u=i(67004),c=i(16073),l=i(60611),h=i(84140),d=i(88690),f=i(31572),p=i(57629),g=i(84608),m=i(59403),b=i(36922),w=i(61511),_=i(66283),A=i(4786),k=i(91058),T=i(15980),C=i(71522),S=i(67806),E=i(91779),x=i(48160);function R(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",14),f.NdJ("click",function(){return f.CHM(i),f.oxw().onAddMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.blockManualMemberAdding),f.xp6(1),f.hij(" ",f.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function I(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",15),f.NdJ("click",function(){return f.CHM(i),f.oxw().onInviteMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function O(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",16),f.NdJ("click",function(){return f.CHM(i),f.oxw().onRemoveMembers()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.selection.isEmpty()),f.xp6(1),f.hij(" ",f.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function P(t,e){if(1&t&&(f.TgZ(0,"mat-option",17),f._uU(1),f.qZA()),2&t){var i=e.$implicit;f.Q6J("value",i),f.xp6(1),f.Oqu(i)}}function D(t,e){1&t&&f._UZ(0,"mat-spinner",18)}function M(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"perun-web-apps-members-dynamic-list",19),f.NdJ("page",function(t){return f.CHM(i),f.oxw().pageChanged(t)}),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("voId",n.vo.id)("pageSize",n.pageSize)("selection",n.selection)("displayedColumns",n.displayedColumns)("attrNames",n.attrNames)("searchString",n.searchString)("selectedStatuses",n.selectedStatuses)("updateTable",n.updateTable)}}var L=function(){var t=function(){function t(e,i,r,o,a,s,h,d,f){v(this,t),this.voService=e,this.route=i,this.notificator=r,this.tableConfigService=o,this.dialog=a,this.authzService=s,this.storeService=h,this.attributesManager=d,this.apiRequest=f,this.members=null,this.selection=new n.Ov(!0,[]),this.loading=!1,this.attrNames=[u.r.MEMBER_DEF_ORGANIZATION,u.r.MEMBER_DEF_MAIL,u.r.USER_DEF_ORGANIZATION,u.r.USER_DEF_PREFERRED_MAIL,u.r.MEMBER_DEF_EXPIRATION],this.statuses=new c.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=l.j1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.updateTable=!1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.statuses.setValue(this.selectedStatuses),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.route.parent.params.subscribe(function(e){var i=e.voId;t.isManualAddingBlocked(i).then(function(){t.voService.getVoById(i).subscribe(function(e){t.vo=e,t.setAuthRights(),t.loading=!1})})})}},{key:"setAuthRights",value:function(){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])}},{key:"onSearchByString",value:function(t){this.searchString=t,this.updateTable=!this.updateTable}},{key:"onAddMember",value:function(){var t=this,e=(0,h.kZ)();e.width="1000px",e.data={entityId:this.vo.id,voId:this.vo.id,theme:"vo-theme",type:"vo"},this.dialog.open(a.o,e).afterClosed().subscribe(function(e){e&&(t.updateTable=!t.updateTable,t.selection.clear())})}},{key:"onRemoveMembers",value:function(){var t=this,e=(0,h.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(o.X,e).afterClosed().subscribe(function(e){e&&(t.updateTable=!t.updateTable,t.selection.clear())})}},{key:"onInviteMember",value:function(){var t=(0,h.kZ)();t.width="650px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(d.R,t)}},{key:"displaySelectedStatuses",value:function(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?"".concat(this.statuses.value[0]," ").concat(this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""):""}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"isManualAddingBlocked",value:function(t){var e=this;return new Promise(function(i){e.apiRequest.dontHandleErrorForNext(),e.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(function(t){e.blockManualMemberAdding=null!==t.value,i()},function(t){"PrivilegeException"!==t.error.name&&e.notificator.showError(t),i()})})}},{key:"changeStatuses",value:function(){this.selectedStatuses=this.statuses.value}}]),t}();return t.id="VoMembersComponent",t.\u0275fac=function(e){return new(e||t)(f.Y36(s.YF),f.Y36(p.gz),f.Y36(r.V6),f.Y36(l.dB),f.Y36(g.uw),f.Y36(r.x4),f.Y36(r.d6),f.Y36(s.H8),f.Y36(r.F5))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(t,e){2&t&&f.ekj("router-component",e.true)},decls:22,vars:19,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",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,"voId","pageSize","selection","displayedColumns","attrNames","searchString","selectedStatuses","updateTable","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"voId","pageSize","selection","displayedColumns","attrNames","searchString","selectedStatuses","updateTable","page"]],template:function(t,e){1&t&&(f.TgZ(0,"div",0),f.TgZ(1,"h1",1),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"div",2),f.TgZ(5,"perun-web-apps-refresh-button",3),f.NdJ("click",function(){return e.updateTable=!e.updateTable}),f.qZA(),f.TgZ(6,"div",4),f.ALo(7,"translate"),f.YNc(8,R,3,4,"button",5),f.qZA(),f.YNc(9,I,3,3,"button",6),f.YNc(10,O,3,4,"button",7),f.TgZ(11,"mat-form-field",8),f.TgZ(12,"mat-label"),f._uU(13),f.ALo(14,"translate"),f.qZA(),f.TgZ(15,"mat-select",9),f.NdJ("closed",function(){return e.changeStatuses()}),f.TgZ(16,"mat-select-trigger"),f._uU(17),f.qZA(),f.YNc(18,P,2,2,"mat-option",10),f.qZA(),f.qZA(),f.TgZ(19,"perun-web-apps-debounce-filter",11),f.NdJ("filter",function(t){return e.onSearchByString(t)}),f.qZA(),f.qZA(),f.YNc(20,D,1,0,"mat-spinner",12),f.YNc(21,M,1,8,"perun-web-apps-members-dynamic-list",13),f.qZA()),2&t&&(f.xp6(2),f.Oqu(f.lcZ(3,13,"VO_DETAIL.MEMBERS.TITLE")),f.xp6(4),f.s9C("matTooltip",f.lcZ(7,15,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),f.Q6J("matTooltipDisabled",!e.blockManualMemberAdding),f.xp6(2),f.Q6J("ngIf",e.addAuth),f.xp6(1),f.Q6J("ngIf",e.inviteAuth),f.xp6(1),f.Q6J("ngIf",e.removeAuth),f.xp6(3),f.Oqu(f.lcZ(14,17,"VO_DETAIL.MEMBERS.FILTER_STATUS")),f.xp6(2),f.Q6J("formControl",e.statuses),f.xp6(2),f.hij(" ",e.displaySelectedStatuses()," "),f.xp6(1),f.Q6J("ngForOf",e.statusList),f.xp6(1),f.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),f.xp6(1),f.Q6J("ngIf",e.loading),f.xp6(1),f.Q6J("ngIf",!e.loading))},directives:[m.t,b.gM,w.O5,_.KE,_.hX,A.gD,c.JJ,c.oH,A.$L,w.sg,k.P,T.lW,C.ey,S.$g,E.m],pipes:[x.X$],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}"]}),t}()},88227:function(t,e,i){"use strict";i.d(e,{z:function(){return T}});var n=i(4230),r=i(33642),o=i(95909),a=i(60611),s=i(84140),u=i(88426),c=i(31572),l=i(57629),h=i(84608),d=i(59403),f=i(61511),p=i(19139),g=i(15980),m=i(67806),b=i(88884),w=i(48160);function _(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",6),c.NdJ("click",function(){return c.CHM(i),c.oxw().deleteSelectedResources()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&t){var n=c.oxw();c.Q6J("disabled",0===n.selected.selected.length),c.xp6(1),c.hij(" ",c.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function A(t,e){1&t&&c._UZ(0,"mat-spinner",7)}function k(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"perun-web-apps-resources-list",8),c.NdJ("page",function(t){return c.CHM(i),c.oxw().pageChanged(t)}),c.qZA()}if(2&t){var n=c.oxw();c.Q6J("pageSize",n.pageSize)("filterValue",n.filterValue)("resources",n.resources)("routingVo",!0)("disableRouting",!n.routeAuth)("selection",n.selected)("displayedColumns",n.displayedColumns)}}var T=function(){var t=function(){function t(e,i,r,o,s,u){v(this,t),this.resourcesManager=e,this.voService=i,this.route=r,this.tableConfigService=o,this.dialog=s,this.authResolver=u,this.resources=[],this.selected=new n.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=a.nT,this.routeAuth=!1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.parent.parent.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e,t.refreshTable()})})}},{key:"setAuthRights",value:function(){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"]}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.resourcesManager.getRichResources(this.vo.id).subscribe(function(e){t.resources=e,t.selected.clear(),t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"deleteSelectedResources",value:function(){var t=this,e=(0,s.kZ)();e.width="450px",e.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(o.f,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="VoResourcesPreviewComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(r.xk),c.Y36(r.YF),c.Y36(l.gz),c.Y36(a.dB),c.Y36(h.uw),c.Y36(u.x4))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"pageSize","filterValue","resources","routingVo","disableRouting","selection","displayedColumns","page"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.refreshTable()}),c.qZA(),c.YNc(5,_,3,4,"button",2),c.TgZ(6,"perun-web-apps-immediate-filter",3),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.YNc(7,A,1,0,"mat-spinner",4),c.YNc(8,k,1,7,"perun-web-apps-resources-list",5),c.qZA()),2&t&&(c.xp6(2),c.Oqu(c.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),c.xp6(3),c.Q6J("ngIf",!e.loading&&e.removeAuth),c.xp6(1),c.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[d.t,f.O5,p.L,g.lW,m.$g,b.C],pipes:[w.X$],styles:[""]}),t}()},97397:function(t,e,i){"use strict";i.d(e,{z:function(){return tt}});var n=i(88426),r=i(33642),o=i(31572),a=i(57629),s=i(61511),u=i(67806),c=i(59403),l=i(55109),h=i(67033),d=i(45001),p=i(27679),g=i(48160);function m(t,e){if(1&t&&(o.TgZ(0,"mat-panel-description"),o.TgZ(1,"div"),o.TgZ(2,"i",7),o._uU(3," error "),o.qZA(),o._uU(4),o.ALo(5,"translate"),o.ALo(6,"translate"),o.qZA(),o.qZA()),2&t){var i=o.oxw().$implicit,n=o.oxw();o.xp6(4),o.HOy(" ",n.getErrorCountStates(i)," ",o.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",i.taskList.length," ",o.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function b(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")))}function w(t,e){if(1&t&&(o.TgZ(0,"td",21),o._uU(1),o.qZA()),2&t){var i=e.$implicit;o.xp6(1),o.Oqu(i.id)}}function _(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")))}function A(t,e){if(1&t&&(o.TgZ(0,"td",21),o._uU(1),o.qZA()),2&t){var i=e.$implicit;o.xp6(1),o.Oqu(i.service.name)}}function k(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")))}function T(t,e){if(1&t&&(o.TgZ(0,"td",21),o._uU(1),o.qZA()),2&t){var i=e.$implicit;o.xp6(1),o.Oqu(i.status)}}function C(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")))}function S(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){var i=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,i.schedule,"d.M.y H:mm:ss")," ")}}function E(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function x(t,e){if(1&t&&(o.TgZ(0,"td",21),o.YNc(1,S,3,4,"div",22),o.YNc(2,E,2,3,"ng-template",23,24,o.W1O),o.qZA()),2&t){var i=e.$implicit,n=o.MAs(3);o.xp6(1),o.Q6J("ngIf",i.schedule)("ngIfElse",n)}}function R(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")))}function I(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){var i=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,i.schedule,"d.M.y H:mm:ss")," ")}}function O(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function P(t,e){if(1&t&&(o.TgZ(0,"td",21),o.YNc(1,I,3,4,"div",22),o.YNc(2,O,2,3,"ng-template",23,24,o.W1O),o.qZA()),2&t){var i=e.$implicit,n=o.MAs(3);o.xp6(1),o.Q6J("ngIf",i.startTime)("ngIfElse",n)}}function D(t,e){1&t&&(o.TgZ(0,"th",20),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")))}function M(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){var i=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,i.schedule,"d.M.y H:mm:ss")," ")}}function L(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function N(t,e){if(1&t&&(o.TgZ(0,"td",21),o.YNc(1,M,3,4,"div",22),o.YNc(2,L,2,3,"ng-template",23,24,o.W1O),o.qZA()),2&t){var i=e.$implicit,n=o.MAs(3);o.xp6(1),o.Q6J("ngIf",i.endTime)("ngIfElse",n)}}function z(t,e){1&t&&o._UZ(0,"tr",25)}var F=function(t,e,i){return{redTableItem:t,greenTableItem:e,yellowTableItem:i}};function Z(t,e){if(1&t&&o._UZ(0,"tr",26),2&t){var i=e.$implicit;o.Q6J("ngClass",o.kEZ(1,F,"ERROR"===i.status||"SENDERROR"===i.status||"GENERROR"===i.status,"DONE"===i.status,"WARNING"===i.status))}}function B(t,e){if(1&t&&(o.TgZ(0,"table",9),o.ynx(1,10),o.YNc(2,b,3,3,"th",11),o.YNc(3,w,2,1,"td",12),o.BQk(),o.ynx(4,13),o.YNc(5,_,3,3,"th",11),o.YNc(6,A,2,1,"td",12),o.BQk(),o.ynx(7,14),o.YNc(8,k,3,3,"th",11),o.YNc(9,T,2,1,"td",12),o.BQk(),o.ynx(10,15),o.YNc(11,C,3,3,"th",11),o.YNc(12,x,4,2,"td",12),o.BQk(),o.ynx(13,16),o.YNc(14,R,3,3,"th",11),o.YNc(15,P,4,2,"td",12),o.BQk(),o.ynx(16,17),o.YNc(17,D,3,3,"th",11),o.YNc(18,N,4,2,"td",12),o.BQk(),o.YNc(19,z,1,0,"tr",18),o.YNc(20,Z,1,5,"tr",19),o.qZA()),2&t){var i=o.oxw(2).$implicit,n=o.oxw();o.Q6J("dataSource",n.datasources[n.propagation.indexOf(i)]),o.xp6(19),o.Q6J("matHeaderRowDef",n.displayedColumns),o.xp6(1),o.Q6J("matRowDefColumns",n.displayedColumns)}}function q(t,e){1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function U(t,e){if(1&t&&(o._UZ(0,"mat-divider"),o.YNc(1,B,21,3,"table",8),o.YNc(2,q,3,3,"div",5)),2&t){var i=o.oxw().$implicit;o.xp6(1),o.Q6J("ngIf",0!==i.taskList.length),o.xp6(1),o.Q6J("ngIf",0===i.taskList.length)}}function H(t,e){if(1&t&&(o.TgZ(0,"mat-expansion-panel"),o.TgZ(1,"mat-expansion-panel-header"),o.TgZ(2,"mat-panel-title"),o._UZ(3,"img",3),o.TgZ(4,"div",4),o._uU(5),o.qZA(),o.qZA(),o.YNc(6,m,7,8,"mat-panel-description",5),o.qZA(),o.YNc(7,U,3,2,"ng-template",6),o.qZA()),2&t){var i=e.$implicit,n=o.oxw();o.xp6(5),o.hij(" ",i.resource.name," "),o.xp6(1),o.Q6J("ngIf",0!==n.getErrorCountStates(i))}}var j=function(){var t=function(){function t(){v(this,t),this.propagation=[],this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}return y(t,[{key:"ngOnInit",value:function(){this.getDataSource()}},{key:"getErrorCountStates",value:function(t){var e,i=0,n=f(t.taskList);try{for(n.s();!(e=n.n()).done;){var r=e.value;"ERROR"!==r.status&&"GENERROR"!==r.status&&"SENDERROR"!==r.status||i++}}catch(o){n.e(o)}finally{n.f()}return i}},{key:"getDataSource",value:function(){var t,e=f(this.propagation);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.datasources.push(new h.by(i.taskList))}}catch(n){e.e(n)}finally{e.f()}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-state-tab"]],inputs:{propagation:"propagation"},decls:3,vars:1,consts:[[1,"p-2"],["multi","true","togglePosition","before",1,"headers-align"],[4,"ngFor","ngForOf"],["src","assets/img/PerunWebImages/resource-black.svg","height","28","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["mat-table","","class","w-100",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(t,e){1&t&&(o.TgZ(0,"div",0),o.TgZ(1,"mat-accordion",1),o.YNc(2,H,8,2,"mat-expansion-panel",2),o.qZA(),o.qZA()),2&t&&(o.xp6(2),o.Q6J("ngForOf",e.propagation))},directives:[d.pp,s.sg,d.ib,d.yz,d.yK,s.O5,d.HS,d.u4,p.d,h.BZ,h.w1,h.fO,h.Dz,h.as,h.nj,h.ge,h.ev,h.XQ,h.Gk,s.mk],pipes:[g.X$,s.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_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}"]}),t}(),G=i(39571);function Y(t,e){1&t&&o._UZ(0,"mat-spinner",3)}function V(t,e){if(1&t&&(o._uU(0),o.ALo(1,"translate"),o.TgZ(2,"span",8),o._uU(3),o.qZA()),2&t){var i=o.oxw(2);o.hij(" ",o.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),o.xp6(3),o.Oqu(i.errorPropagation.length)}}function K(t,e){1&t&&(o.TgZ(0,"app-alert",11),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.Q6J("alert_type","warn"),o.xp6(1),o.hij(" ",o.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function J(t,e){if(1&t&&(o.YNc(0,K,3,4,"app-alert",9),o._UZ(1,"app-state-tab",10)),2&t){var i=o.oxw(2);o.Q6J("ngIf",0===i.errorPropagation.length),o.xp6(1),o.Q6J("propagation",i.errorPropagation)}}function Q(t,e){if(1&t&&(o._uU(0),o.ALo(1,"translate"),o.TgZ(2,"span",12),o._uU(3),o.qZA()),2&t){var i=o.oxw(2);o.hij(" ",o.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),o.xp6(3),o.Oqu(i.okPropagation.length)}}function W(t,e){1&t&&(o.TgZ(0,"app-alert",14),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function X(t,e){if(1&t&&(o.YNc(0,W,3,3,"app-alert",13),o._UZ(1,"app-state-tab",10)),2&t){var i=o.oxw(2);o.Q6J("ngIf",0===i.okPropagation.length),o.xp6(1),o.Q6J("propagation",i.okPropagation)}}function $(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"perun-web-apps-refresh-button",4),o.NdJ("refresh",function(){return o.CHM(i),o.oxw().refreshTable()}),o.qZA(),o.TgZ(2,"mat-tab-group",5),o.NdJ("selectedIndexChange",function(t){return o.CHM(i),o.oxw().selectedIndex=t}),o.TgZ(3,"mat-tab"),o.YNc(4,V,4,4,"ng-template",6),o.YNc(5,J,2,2,"ng-template",7),o.qZA(),o.TgZ(6,"mat-tab"),o.YNc(7,Q,4,4,"ng-template",6),o.YNc(8,X,2,2,"ng-template",7),o.qZA(),o.qZA(),o.qZA()}if(2&t){var n=o.oxw();o.xp6(2),o.Q6J("selectedIndex",n.selectedIndex)}}var tt=function(){var t=function(){function t(e,i,n){v(this,t),this.route=e,this.taskService=i,this.customIconService=n,this.loading=!1,this.resourceStates=[],this.selectedIndex=0}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.customIconService.registerPerunRefreshIcon(),this.loading=!0,this.route.parent.parent.params.subscribe(function(e){t.voId=e.voId,t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;console.log(this.selectedIndex),this.loading=!0,this.taskService.getAllResourcesState(this.voId).subscribe(function(e){t.resourceStates=e,t.okPropagation=[],t.errorPropagation=[];var i,n=f(e);try{for(n.s();!(i=n.n()).done;){var r,o=i.value,a=!0,s=f(o.taskList);try{for(s.s();!(r=s.n()).done;){var u=r.value;if("ERROR"===u.status||"GENERROR"===u.status||"SENDERROR"===u.status){a=!1;break}}}catch(c){s.e(c)}finally{s.f()}a?t.okPropagation.push(o):t.errorPropagation.push(o)}}catch(c){n.e(c)}finally{n.f()}t.loading=!1})}}]),t}();return t.id="VoResourcesStatesComponent",t.\u0275fac=function(e){return new(e||t)(o.Y36(a.gz),o.Y36(r.Ob),o.Y36(n.EB))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"refresh"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["matTabContent",""],[1,"badge","badge-danger","ml-1"],[3,"alert_type",4,"ngIf"],[3,"propagation"],[3,"alert_type"],[1,"badge","badge-success","ml-1"],["alert_type","warn",4,"ngIf"],["alert_type","warn"]],template:function(t,e){1&t&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.YNc(3,Y,1,0,"mat-spinner",1),o.YNc(4,$,9,1,"div",2)),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,3,"VO_DETAIL.RESOURCES.STATES.TITLE")),o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading))},directives:[s.O5,u.$g,c.t,l.SP,l.uX,l.uD,l.Vc,j,G.w],pipes:[g.X$],styles:[""]}),t}()},14527:function(t,e,i){"use strict";i.d(e,{w:function(){return D}});var n=i(24555),r=i(88426),o=i(68570),a=i(92438),s=i(75954),u=i(33642),c=i(84140),l=i(31572),h=i(57629),d=i(84608),p=i(48160),g=i(61511),m=i(67806),b=i(43691),w=i(36922),_=i(27679),A=i(59403),k=i(15980),T=i(92846),C=i(39571);function S(t,e){1&t&&l._UZ(0,"mat-spinner",3)}function E(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",21),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).settings()}),l.TgZ(1,"i",18),l._uU(2,"edit"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function x(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",22),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).add()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function R(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",23),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).save()}),l.TgZ(1,"i",18),l._uU(2,"save"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}if(2&t){var n=l.oxw(2);l.Q6J("disabled",!n.itemsChanged),l.xp6(3),l.hij(" ",l.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function I(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",24),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).copy()}),l.TgZ(1,"i",18),l._uU(2,"file_copy"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function O(t,e){1&t&&(l.TgZ(0,"app-alert",25),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.Q6J("alert_type","info"),l.xp6(1),l.hij(" ",l.lcZ(2,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}function P(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"div",4),l.TgZ(2,"div",5),l.TgZ(3,"div",6),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.TgZ(6,"div"),l.TgZ(7,"span",6),l._uU(8),l.ALo(9,"translate"),l.qZA(),l._uU(10,": "),l.TgZ(11,"mat-icon",7),l._uU(12,"arrow_right_alt"),l.qZA(),l._uU(13),l.ALo(14,"translate"),l.ALo(15,"translate"),l.TgZ(16,"mat-icon",8),l._uU(17,"restore"),l.qZA(),l._uU(18),l.ALo(19,"translate"),l.ALo(20,"translate"),l.qZA(),l.qZA(),l.TgZ(21,"div",9),l.YNc(22,E,5,3,"button",10),l.qZA(),l.qZA(),l._UZ(23,"mat-divider",11),l.TgZ(24,"div",12),l.TgZ(25,"perun-web-apps-refresh-button",13),l.NdJ("refresh",function(){return l.CHM(i),l.oxw().updateFormItems()}),l.qZA(),l.YNc(26,x,3,3,"button",14),l.YNc(27,R,5,4,"button",15),l.YNc(28,I,5,3,"button",16),l.TgZ(29,"button",17),l.NdJ("click",function(){return l.CHM(i),l.oxw().preview()}),l.TgZ(30,"i",18),l._uU(31,"search"),l.qZA(),l._uU(32),l.ALo(33,"translate"),l.qZA(),l.qZA(),l.YNc(34,O,3,4,"app-alert",19),l.TgZ(35,"app-application-form-list",20),l.NdJ("applicationFormItemsChange",function(){return l.CHM(i),l.oxw().changeItems()}),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(4),l.AsE("",l.lcZ(5,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",n.applicationForm.moduleClassName," "),l.xp6(4),l.Oqu(l.lcZ(9,18,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),l.xp6(5),l.hij(" ",n.applicationForm.automaticApproval?l.lcZ(14,20,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(15,22,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),l.xp6(5),l.hij(" ",n.applicationForm.automaticApprovalExtension?l.lcZ(19,24,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(20,26,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),l.xp6(4),l.Q6J("ngIf",n.editAuth),l.xp6(4),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("ngIf",n.editAuth),l.xp6(4),l.hij(" ",l.lcZ(33,28,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),l.xp6(2),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("loading",n.loading)("applicationForm",n.applicationForm)("applicationFormItems",n.applicationFormItems)("theme","vo-theme")("displayedColumns",n.displayedColumns)}}var D=function(){var t=function(){function t(e,i,n,r,o,a,s,u){v(this,t),this.registrarManager=e,this.route=i,this.dialog=n,this.notificator=r,this.translate=o,this.router=a,this.authResolver=s,this.voService=u,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.idCounter=-1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.parent.params.subscribe(function(e){var i=e.voId;t.voId=i,t.registrarManager.getVoApplicationForm(i).subscribe(function(e){t.applicationForm=e,t.registrarManager.getFormItemsForVo(i).subscribe(function(e){t.applicationFormItems=e,t.voService.getVoById(t.voId).subscribe(function(e){t.vo=e,t.setAuthRights(),t.loading=!1})})})})}},{key:"setAuthRights",value:function(){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"]}},{key:"add",value:function(){var t=this,e=(0,c.kZ)();e.width="500px",e.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(a.J,e).afterClosed().subscribe(function(i){i&&(t.applicationFormItems=Object.assign([],i[0]),(e=(0,c.kZ)()).width="600px",e.height="600px",e.data={voId:t.voId,applicationFormItem:i[1],theme:"vo-theme",allItems:t.applicationFormItems},t.dialog.open(s._,e),t.itemsChanged=!0)})}},{key:"copy",value:function(){var t=this,e=(0,c.kZ)();e.width="500px",e.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(o.W,e).afterClosed().subscribe(function(e){e&&t.updateFormItems()})}},{key:"settings",value:function(){var t=this,e=(0,c.kZ)();e.width="400px",e.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(n.E,e).afterClosed().subscribe(function(e){e&&(t.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.applicationForm=e)})}},{key:"preview",value:function(){this.router.navigate(["/organizations",this.voId,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}},{key:"updateFormItems",value:function(){var t=this;this.loading=!0,this.registrarManager.getFormItemsForVo(this.voId).subscribe(function(e){t.applicationFormItems=e,t.itemsChanged=!1,t.loading=!1})}},{key:"changeItems",value:function(){this.itemsChanged=!0}},{key:"save",value:function(){var t,e=this,i=0,n=f(this.applicationFormItems);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.ordnum=i,r.forDelete||i++}}catch(o){n.e(o)}finally{n.f()}this.registrarManager.updateFormItemsForVo({vo:this.voId,items:this.applicationFormItems}).subscribe(function(){e.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(function(t){e.notificator.showSuccess(t)}),e.updateFormItems()})}},{key:"clear",value:function(){this.applicationFormItems.forEach(function(t){return t.forDelete=!0}),this.itemsChanged=!0}}]),t}();return t.id="VoSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(u.tk),l.Y36(h.gz),l.Y36(d.uw),l.Y36(r.V6),l.Y36(p.sK),l.Y36(h.F0),l.Y36(r.x4),l.Y36(u.YF))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[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"],["mat-stroked-button","","class","ml-auto",3,"click",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],[3,"alert_type",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","applicationFormItemsChange"],["mat-stroked-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"click"],[3,"alert_type"]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.YNc(3,S,1,0,"mat-spinner",1),l.YNc(4,P,36,30,"div",2)),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[g.O5,m.$g,b.Hw,w.gM,_.d,A.t,k.lW,T.b,C.w],pipes:[p.X$],styles:[""]}),t}()},48666:function(t,e,i){"use strict";i.d(e,{T:function(){return ve}});var n=i(33642),r=i(4230),o=i(60611),a=i(84140),s=i(84608),u=i(88426),c=i(16073),l=i(61511),h=i(14732),d=i(81110),p=i(40878),g=i(44689),m=i(79996),b=i(47727),w=i(31572),_=i(48160),A=i(67806),k=i(70663),T=i(66283),C=i(80340),S=i(15980),E=i(4786),x=i(36922),R=i(29236),I=i(54810),O=i(15812),P=function(){var t=function(){function t(){v(this,t),this.expiration="never",this.expirationControl=new c.NI(null),this.datePicker=new w.vpe}return y(t,[{key:"ngOnInit",value:function(){var t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationControl.setValue((0,l.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}},{key:"setExpiration",value:function(){this.expiration=(0,l.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,l.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}},{key:"emitDate",value:function(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=w.Xpm({type:t,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(t,e){if(1&t){var i=w.EpF();w.TgZ(0,"mat-radio-group",0),w.NdJ("ngModelChange",function(t){return e.expiration=t})("change",function(){return e.emitDate()}),w.TgZ(1,"mat-radio-button",1),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"mat-radio-button",2),w.TgZ(5,"mat-form-field",3),w.NdJ("click",function(){return w.CHM(i),w.MAs(12).open()}),w.TgZ(6,"mat-label"),w._uU(7),w.ALo(8,"translate"),w.qZA(),w.TgZ(9,"input",4),w.NdJ("dateChange",function(){return e.setExpiration()}),w.qZA(),w._UZ(10,"mat-datepicker-toggle",5),w._UZ(11,"mat-datepicker",6,7),w.qZA(),w.qZA(),w.qZA()}if(2&t){var n=w.MAs(12);w.Q6J("ngModel",e.expiration),w.xp6(2),w.hij(" ",w.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),w.xp6(2),w.s9C("value",e.expirationControl.value),w.xp6(3),w.Oqu(w.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),w.xp6(2),w.Q6J("min",e.minDate)("formControl",e.expirationControl)("matDatepicker",n),w.xp6(1),w.Q6J("for",n)("disabled",!1),w.xp6(1),w.Q6J("disabled",!1)}},directives:[I.VQ,c.JJ,c.On,I.U0,T.KE,T.hX,C.Nt,c.Fj,O.hl,c.oH,O.nW,T.R9,O.Mq],pipes:[_.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),D=i(39571),M=i(71522),L=i(43691),N=i(7927),z=i(22196);function F(t,e){1&t&&(w.TgZ(0,"h1",4),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")))}function Z(t,e){1&t&&w._UZ(0,"mat-spinner",5)}function B(t,e){1&t&&(w._uU(0),w.ALo(1,"translate")),2&t&&w.Oqu(w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function q(t,e){1&t&&(w.TgZ(0,"app-alert",42),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function U(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function H(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function j(t,e){1&t&&(w._uU(0),w.ALo(1,"translate")),2&t&&w.Oqu(w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function G(t,e){if(1&t&&(w.TgZ(0,"mat-option",43),w._uU(1),w.qZA()),2&t){var i=e.$implicit;w.Q6J("value",i),w.xp6(1),w.hij(" ",i," ")}}function Y(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function V(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function K(t,e){1&t&&w._UZ(0,"mat-spinner",44),2&t&&w.Q6J("diameter",18)}function J(t,e){1&t&&(w.TgZ(0,"mat-icon",45),w.ALo(1,"translate"),w._uU(2," error "),w.qZA()),2&t&&w.Q6J("matTooltip",w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACKEND_ERROR_LONG"))}function Q(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")))}function W(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACKEND_ERROR")))}function X(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function $(t,e){1&t&&(w._uU(0),w.ALo(1,"translate")),2&t&&w.Oqu(w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function tt(t,e){if(1&t){var i=w.EpF();w.TgZ(0,"div"),w.TgZ(1,"perun-web-apps-user-search-select",46),w.NdJ("userSelected",function(t){return w.CHM(i),w.oxw(2).selectedSponsor=t}),w.qZA(),w.qZA()}if(2&t){var n=w.oxw(2);w.xp6(1),w.Q6J("users",n.voSponsors)("disableAutoSelect",!0)}}function et(t,e){if(1&t){var i=w.EpF();w.TgZ(0,"div",6),w.TgZ(1,"mat-horizontal-stepper",7),w.TgZ(2,"mat-step",8),w.YNc(3,B,2,3,"ng-template",9),w.YNc(4,q,3,3,"app-alert",10),w.TgZ(5,"form",11),w.TgZ(6,"h5",12),w._uU(7),w.ALo(8,"translate"),w.qZA(),w.TgZ(9,"mat-form-field",13),w._UZ(10,"input",14),w.ALo(11,"translate"),w.YNc(12,U,3,3,"mat-error",15),w.qZA(),w.TgZ(13,"mat-form-field"),w._UZ(14,"input",16),w.ALo(15,"translate"),w.YNc(16,H,3,3,"mat-error",15),w.qZA(),w.TgZ(17,"mat-form-field"),w._UZ(18,"input",17),w.ALo(19,"translate"),w.qZA(),w.TgZ(20,"mat-form-field"),w._UZ(21,"input",18),w.ALo(22,"translate"),w.qZA(),w.qZA(),w.TgZ(23,"div",19),w.TgZ(24,"button",20),w.NdJ("click",function(){return w.CHM(i),w.oxw().onCancel()}),w._uU(25),w.ALo(26,"translate"),w.qZA(),w.TgZ(27,"button",21),w._uU(28),w.ALo(29,"translate"),w.qZA(),w.qZA(),w.qZA(),w.TgZ(30,"mat-step",8),w.YNc(31,j,2,3,"ng-template",9),w.TgZ(32,"h5",12),w._uU(33),w.ALo(34,"translate"),w.qZA(),w.TgZ(35,"form",22),w.TgZ(36,"mat-form-field"),w.TgZ(37,"mat-select",23),w.NdJ("valueChange",function(t){return w.CHM(i),w.oxw().onNamespaceChanged(t)}),w.ALo(38,"translate"),w.YNc(39,G,2,2,"mat-option",24),w.qZA(),w.YNc(40,Y,3,3,"mat-error",15),w.qZA(),w.TgZ(41,"mat-form-field",25),w.ALo(42,"translate"),w._UZ(43,"input",26),w.ALo(44,"translate"),w.YNc(45,V,3,3,"mat-error",15),w.qZA(),w.TgZ(46,"span",25),w.ALo(47,"translate"),w.TgZ(48,"mat-checkbox",27),w.NdJ("change",function(){return w.CHM(i),w.oxw().passwordResetChange()}),w._uU(49),w.ALo(50,"translate"),w.qZA(),w.qZA(),w.TgZ(51,"mat-form-field",25),w._UZ(52,"input",28),w.ALo(53,"translate"),w.YNc(54,K,1,1,"mat-spinner",29),w.YNc(55,J,3,3,"mat-icon",30),w.YNc(56,Q,3,3,"mat-error",15),w.YNc(57,W,3,3,"mat-error",15),w.qZA(),w.TgZ(58,"mat-checkbox",31),w._uU(59),w.ALo(60,"translate"),w.qZA(),w.TgZ(61,"mat-form-field"),w._UZ(62,"input",32),w.ALo(63,"translate"),w.YNc(64,X,3,3,"mat-error",15),w.qZA(),w.TgZ(65,"div",19),w.TgZ(66,"button",20),w.NdJ("click",function(){return w.CHM(i),w.oxw().onCancel()}),w._uU(67),w.ALo(68,"translate"),w.qZA(),w.TgZ(69,"button",33),w._uU(70),w.ALo(71,"translate"),w.qZA(),w.TgZ(72,"button",34),w._uU(73),w.ALo(74,"translate"),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.TgZ(75,"mat-step"),w.YNc(76,$,2,3,"ng-template",9),w.TgZ(77,"div",35),w.TgZ(78,"h5",12),w._uU(79),w.ALo(80,"translate"),w.qZA(),w.TgZ(81,"div",13),w.TgZ(82,"h6"),w._uU(83),w.ALo(84,"translate"),w.qZA(),w.TgZ(85,"mat-radio-group",36),w.NdJ("ngModelChange",function(t){return w.CHM(i),w.oxw().sponsorType=t}),w.TgZ(86,"span",37),w.ALo(87,"translate"),w.TgZ(88,"mat-radio-button",38),w.NdJ("click",function(){return w.CHM(i),w.oxw().selectedSponsor=null}),w._uU(89),w.ALo(90,"translate"),w.qZA(),w.qZA(),w.TgZ(91,"span",37),w.ALo(92,"translate"),w.TgZ(93,"mat-radio-button",39),w._uU(94),w.ALo(95,"translate"),w.qZA(),w.qZA(),w.qZA(),w.YNc(96,tt,2,2,"div",15),w.qZA(),w.TgZ(97,"h6",13),w._uU(98),w.ALo(99,"translate"),w.qZA(),w.TgZ(100,"perun-web-apps-expiration-select",40),w.NdJ("datePicker",function(t){return w.CHM(i),w.oxw().setExpiration(t)}),w.qZA(),w.qZA(),w.TgZ(101,"div",19),w.TgZ(102,"button",20),w.NdJ("click",function(){return w.CHM(i),w.oxw().onCancel()}),w._uU(103),w.ALo(104,"translate"),w.qZA(),w.TgZ(105,"button",33),w._uU(106),w.ALo(107,"translate"),w.qZA(),w.TgZ(108,"button",41),w.NdJ("click",function(){return w.CHM(i),w.oxw().onConfirm()}),w._uU(109),w.ALo(110,"translate"),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA()}if(2&t){var n=w.oxw();w.xp6(1),w.Q6J("linear",!0),w.xp6(1),w.Q6J("stepControl",n.userControl),w.xp6(2),w.Q6J("ngIf",n.functionalityNotSupported),w.xp6(1),w.Q6J("formGroup",n.userControl),w.xp6(2),w.hij(" ",w.lcZ(8,60,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),w.xp6(3),w.s9C("placeholder",w.lcZ(11,62,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),w.xp6(2),w.Q6J("ngIf",n.userControl.hasError("required","firstName")),w.xp6(2),w.s9C("placeholder",w.lcZ(15,64,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),w.xp6(2),w.Q6J("ngIf",n.userControl.hasError("required","lastName")),w.xp6(2),w.s9C("placeholder",w.lcZ(19,66,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),w.xp6(3),w.s9C("placeholder",w.lcZ(22,68,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),w.xp6(4),w.hij(" ",w.lcZ(26,70,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),w.xp6(2),w.Q6J("disabled",n.userControl.invalid),w.xp6(1),w.hij(" ",w.lcZ(29,72,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," "),w.xp6(2),w.Q6J("stepControl",n.namespaceControl),w.xp6(3),w.Oqu(w.lcZ(34,74,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),w.xp6(2),w.Q6J("formGroup",n.namespaceControl),w.xp6(2),w.s9C("placeholder",w.lcZ(38,76,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),w.xp6(2),w.Q6J("ngForOf",n.namespaceOptions),w.xp6(1),w.Q6J("ngIf",n.namespaceControl.hasError("required","namespace")),w.xp6(1),w.s9C("matTooltip",w.lcZ(42,78,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),w.Q6J("matTooltipDisabled",n.namespaceControl.get("login").enabled),w.xp6(2),w.s9C("placeholder",w.lcZ(44,80,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),w.xp6(2),w.Q6J("ngIf",n.namespaceControl.hasError("required","login")),w.xp6(1),w.s9C("matTooltip",w.lcZ(47,82,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),w.Q6J("matTooltipDisabled",n.namespaceControl.get("passwordReset").enabled),w.xp6(3),w.hij("",w.lcZ(50,84,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),w.xp6(2),w.Q6J("matTooltip",n.getPasswordDisabledTooltip())("matTooltipDisabled",n.namespaceControl.get("password").enabled),w.xp6(1),w.s9C("placeholder",w.lcZ(53,86,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")),w.Q6J("type",n.namespaceControl.get("showPassword").value?"text":"password")("errorStateMatcher",n.passwordStateMatcher),w.xp6(2),w.Q6J("ngIf",n.namespaceControl.get("password").pending),w.xp6(1),w.Q6J("ngIf",n.namespaceControl.get("password").dirty&&null!==n.namespaceControl.get("password").errors),w.xp6(1),w.Q6J("ngIf",n.namespaceControl.get("password").hasError("required")),w.xp6(1),w.Q6J("ngIf",n.namespaceControl.get("password").hasError("backendError")),w.xp6(2),w.hij(" ",w.lcZ(60,88,"DIALOGS.CREATE_SPONSORED_MEMBER.SHOW_PASSWORD")," "),w.xp6(3),w.s9C("placeholder",w.lcZ(63,90,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),w.xp6(2),w.Q6J("ngIf",n.namespaceControl.hasError("required","email")||n.namespaceControl.hasError("pattern","email")),w.xp6(3),w.hij(" ",w.lcZ(68,92,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),w.xp6(3),w.hij(" ",w.lcZ(71,94,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "),w.xp6(2),w.Q6J("disabled",n.namespaceControl.invalid||n.namespaceControl.get("password").pending),w.xp6(1),w.hij(" ",w.lcZ(74,96,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," "),w.xp6(6),w.Oqu(w.lcZ(80,98,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),w.xp6(4),w.Oqu(w.lcZ(84,100,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),w.xp6(2),w.Q6J("ngModel",n.sponsorType),w.xp6(1),w.s9C("matTooltip",w.lcZ(87,102,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),w.Q6J("matTooltipDisabled",n.isSponsor),w.xp6(2),w.Q6J("disabled",!n.isSponsor),w.xp6(1),w.hij(" ",w.lcZ(90,104,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),w.xp6(2),w.s9C("matTooltip",w.lcZ(92,106,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),w.Q6J("matTooltipDisabled",n.isPerunAdmin),w.xp6(2),w.Q6J("disabled",!n.isPerunAdmin),w.xp6(1),w.hij(" ",w.lcZ(95,108,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),w.xp6(2),w.Q6J("ngIf","other"===n.sponsorType),w.xp6(2),w.Oqu(w.lcZ(99,110,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION")),w.xp6(5),w.hij(" ",w.lcZ(104,112,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),w.xp6(3),w.hij(" ",w.lcZ(107,114,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "),w.xp6(2),w.Q6J("disabled",null===n.sponsorType||"other"===n.sponsorType&&null===n.selectedSponsor),w.xp6(1),w.hij(" ",w.lcZ(110,116,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function it(t,e){if(1&t&&(w.TgZ(0,"div",6),w.TgZ(1,"div",47),w.TgZ(2,"mat-icon",48),w._uU(3,"done"),w.qZA(),w._uU(4),w.ALo(5,"translate"),w.TgZ(6,"i"),w._uU(7),w.ALo(8,"userFullName"),w.qZA(),w._uU(9),w.ALo(10,"translate"),w.qZA(),w.TgZ(11,"div"),w._uU(12),w.ALo(13,"translate"),w.qZA(),w.TgZ(14,"div"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"app-alert",49),w._uU(18),w.ALo(19,"translate"),w.qZA(),w.qZA()),2&t){var i=w.oxw();w.xp6(4),w.hij(" ",w.lcZ(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),w.xp6(3),w.Oqu(w.lcZ(8,10,i.createdMember.user)),w.xp6(2),w.hij(" ",w.lcZ(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),w.xp6(3),w.AsE("",w.lcZ(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",i.loginThatWasSet,""),w.xp6(3),w.AsE("",w.lcZ(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",i.namespaceControl.get("password").value," "),w.xp6(3),w.Oqu(w.lcZ(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function nt(t,e){if(1&t){var i=w.EpF();w.TgZ(0,"div",19),w.TgZ(1,"button",50),w.NdJ("click",function(){return w.CHM(i),w.oxw().onCancel()}),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.qZA()}2&t&&(w.xp6(2),w.hij(" ",w.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}var rt=function(){function t(){v(this,t)}return y(t,[{key:"isErrorState",value:function(t){return!!(t&&t.invalid&&t.dirty)}}]),t}(),ot=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500;return function(r){return(0,d.H)(n).pipe((0,g.w)(function(){return i.dontHandleErrorForNext(),null===t||"No namespace"===t?(0,p.of)(null):e.checkPasswordStrength(r.value,t)}),(0,m.U)(function(){return null}),(0,b.K)(function(t){return(0,p.of)({backendError:t.error.message.substr(t.error.message.indexOf(":")+1)})}))}},at=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c,l){v(this,t),this.dialogRef=e,this.data=i,this.membersService=n,this.apiRequestConfiguration=r,this.usersService=o,this.store=a,this.translator=s,this.authzService=u,this.guiAuthResolver=c,this.formBuilder=l,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.namespaceRules=[],this.parsedRules=new Map,this.emailRegx=/^(([^<>+()[\]\\.,;:\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]{2,3}))$/,this.userControl=null,this.namespaceControl=null,this.passwordStateMatcher=new rt,this.voSponsors=[],this.selectedSponsor=null,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.expiration="never"}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.voSponsors=this.data.sponsors,this.isSponsor=this.guiAuthResolver.principalHasRole(h.u.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.userControl=this.formBuilder.group({firstName:["",c.kI.required],lastName:["",c.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",c.kI.required],login:["",[c.kI.required]],password:["",c.kI.required,[ot(null,this.usersService,this.apiRequestConfiguration)]],passwordReset:[!1,[]],showPassword:[!1,[]],email:["",[c.kI.required,c.kI.pattern(this.emailRegx)]]}),this.membersService.getAllNamespacesRules().subscribe(function(e){t.store.get("allow_empty_sponsor_namespace")&&t.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),t.namespaceRules=t.namespaceRules.concat(e),t.parseNamespaceRules(),0===t.namespaceOptions.length&&(t.functionalityNotSupported=!0),t.loading=!1})}},{key:"parseNamespaceRules",value:function(){var t,e=f(this.namespaceRules);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.namespaceOptions.push(i.namespaceName);var n={login:"disabled",password:"disabled"};this.parseAttributes(n,i.requiredAttributes,"required"),this.parseAttributes(n,i.optionalAttributes,"optional"),this.parsedRules.set(i.namespaceName,n)}}catch(r){e.e(r)}finally{e.f()}}},{key:"parseAttributes",value:function(t,e,i){var n,r=f(e);try{for(r.s();!(n=r.n()).done;){switch(n.value){case"login":t.login=i;break;case"password":t.password=i}}}catch(o){r.e(o)}finally{r.f()}}},{key:"onConfirm",value:function(){var t=this;this.loading=!0;var e={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},i=this.namespaceControl.get("namespace").value,n=this.parsedRules.get(i);"No namespace"!==i&&(e.userData.namespace=i),"disabled"!==n.login&&(e.userData.login=this.namespaceControl.get("login").value),"disabled"!==n.password&&(e.sendActivationLink=this.namespaceControl.get("passwordReset").value,e.userData.password=this.namespaceControl.get("password").value),"never"!==this.expiration&&(e.validityTo=this.expiration),this.membersService.createSponsoredMember(e).subscribe(function(e){t.successfullyCreated=!0,t.dialogRef.updateSize("600px"),t.createdMember=e,e&&e.userAttributes&&e.userAttributes.filter(function(t){return"login-namespace"===t.baseFriendlyName}).filter(function(t){return t.friendlyNameParameter===i}).filter(function(t){return null!==t.value}).forEach(function(e){t.loginThatWasSet=e.value.toString()}),t.loading=!1},function(){t.loading=!1})}},{key:"onCancel",value:function(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}},{key:"onNamespaceChanged",value:function(t){var e=this.parsedRules.get(t),i=this.namespaceControl.get("login"),n=this.namespaceControl.get("password"),r=this.namespaceControl.get("passwordReset"),o=this.namespaceControl.get("showPassword");"disabled"!==e.login?(0,a.mH)(i,"optional"===e.login?[]:[c.kI.required]):(i.disable(),i.setValue("")),"disabled"!==e.password?((0,a.mH)(n,"optional"===e.password?[]:[c.kI.required],[ot(t,this.usersService,this.apiRequestConfiguration)]),(0,a.mH)(r,[]),(0,a.mH)(o,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(n.disable(),n.setValue(""),r.disable(),r.setValue(!1),o.disable(),o.setValue(!1))}},{key:"passwordResetChange",value:function(){var t=this.namespaceControl.get("password");this.namespaceControl.get("passwordReset").value?(t.disable(),t.setValue("")):t.enable()}},{key:"setExpiration",value:function(t){this.expiration="never"===t?"never":(0,l.p6)(t,"yyyy-MM-dd","en-GB")}},{key:"getPasswordDisabledTooltip",value:function(){return this.namespaceControl.get("passwordReset").value?this.translator.instant("DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_VIA_EMAIL"):this.translator.instant("DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_DISABLED")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(w.Y36(s.so),w.Y36(s.WI),w.Y36(n.uq),w.Y36(u.F5),w.Y36(n.Fv),w.Y36(u.d6),w.Y36(_.sK),w.Y36(n.Ct),w.Y36(u.x4),w.Y36(c.qu))},t.\u0275cmp=w.Xpm({type:t,selectors:[["app-create-sponsored-member-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],[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"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-auto",3,"disabled"],[1,"dialog-container","mt-4",3,"formGroup"],["required","","formControlName","namespace",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","login",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],["matInput","","formControlName","password",3,"type","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["color","warn","matSuffix","",3,"matTooltip",4,"ngIf"],["formControlName","showPassword",1,"example-margin"],["matInput","","required","","formControlName","email",3,"placeholder"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-2",3,"disabled"],[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"],["mat-flat-button","","type","button","color","accent","matStepperNext","",1,"ml-2",3,"disabled","click"],["alert_type","error"],[3,"value"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",3,"matTooltip"],[3,"users","disableAutoSelect","userSelected"],[1,"bigger-font","mb-2"],[1,"mr-2","mb-2"],["alert_type","warn"],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(t,e){1&t&&(w.TgZ(0,"div"),w.YNc(1,F,3,3,"h1",0),w.YNc(2,Z,1,0,"mat-spinner",1),w.YNc(3,et,111,118,"div",2),w.YNc(4,it,20,20,"div",2),w.YNc(5,nt,4,3,"div",3),w.qZA()),2&t&&(w.Tol(e.theme),w.xp6(1),w.Q6J("ngIf",!e.successfullyCreated),w.xp6(1),w.Q6J("ngIf",e.loading),w.xp6(1),w.Q6J("ngIf",!e.loading&&!e.successfullyCreated),w.xp6(1),w.Q6J("ngIf",!e.loading&&e.successfullyCreated),w.xp6(1),w.Q6J("ngIf",e.successfullyCreated))},directives:[l.O5,s.uh,A.$g,s.xY,k.Vq,k.C0,k.VY,c._Y,c.JL,c.sg,T.KE,C.Nt,c.Fj,c.JJ,c.u,c.Q7,s.H8,S.lW,k.Ic,E.gD,l.sg,x.gM,R.oG,k.fd,I.VQ,c.On,I.U0,P,D.w,T.TO,M.ey,T.R9,L.Hw,N.S],pipes:[_.X$,z.d],styles:[".bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:8px}mat-icon[_ngcontent-%COMP%]{color:#28a745;font-size:36px;vertical-align:bottom}"]}),t}(),st=i(67004),ut=i(43005),ct=i(19139),lt=i(78364);function ht(t,e){1&t&&w._UZ(0,"mat-spinner",3)}function dt(t,e){1&t&&(w._uU(0),w.ALo(1,"translate")),2&t&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function ft(t,e){1&t&&(w.TgZ(0,"app-alert",32),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function pt(t,e){if(1&t&&(w.TgZ(0,"mat-option",33),w._uU(1),w.qZA()),2&t){var i=e.$implicit;w.Q6J("value",i),w.xp6(1),w.hij(" ",i," ")}}function gt(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function vt(t,e){1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function mt(t,e){if(1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t){var i=w.oxw(2);w.xp6(1),w.AsE(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",i.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function yt(t,e){if(1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t){var i=w.oxw(2);w.xp6(1),w.AsE(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",i.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function bt(t,e){if(1&t&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t){var i=w.oxw(2);w.xp6(1),w.AsE(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",i.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function wt(t,e){1&t&&(w._uU(0),w.ALo(1,"translate")),2&t&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function _t(t,e){1&t&&(w.TgZ(0,"app-alert",34),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&t&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function At(t,e){if(1&t){var i=w.EpF();w.TgZ(0,"mat-radio-group",35),w.NdJ("ngModelChange",function(t){return w.CHM(i),w.oxw(2).passwordReset=t}),w.TgZ(1,"mat-radio-button",36),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"mat-radio-button",37),w._uU(5),w.ALo(6,"translate"),w.qZA(),w.qZA()}if(2&t){var n=w.oxw(2);w.Q6J("ngModel",n.passwordReset),w.xp6(2),w.hij(" ",w.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),w.xp6(3),w.hij(" ",w.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function kt(t,e){1&t&&(w._uU(0),w.ALo(1,"translate")),2&t&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function Tt(t,e){1&t&&(w._uU(0),w.ALo(1,"translate")),2&t&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function Ct(t,e){1&t&&(w.TgZ(0,"div"),w.TgZ(1,"app-alert",38),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.qZA()),2&t&&(w.xp6(2),w.Oqu(w.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function St(t,e){if(1&t){var i=w.EpF();w.TgZ(0,"div"),w.TgZ(1,"h5",39),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-create-group-form",40),w.NdJ("nameChanged",function(t){return w.CHM(i),w.oxw(2).name=t})("descriptionChanged",function(t){return w.CHM(i),w.oxw(2).description=t})("parentGroupChanged",function(t){return w.CHM(i),w.oxw(2).parentGroup=t})("asSubgroupChanged",function(t){return w.CHM(i),w.oxw(2).asSubGroup=t}),w.qZA(),w.qZA()}if(2&t){var n=w.oxw(2);w.xp6(2),w.Oqu(w.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")),w.xp6(2),w.Q6J("voGroups",n.allVoGroups)}}var Et=function(){return["select","id","name","description"]};function xt(t,e){if(1&t){var i=w.EpF();w.TgZ(0,"div"),w.TgZ(1,"h5",39),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-immediate-filter",41),w.NdJ("filter",function(t){return w.CHM(i),w.oxw(2).applyFilter(t)}),w.qZA(),w.TgZ(5,"perun-web-apps-groups-list",42),w.NdJ("page",function(t){return w.CHM(i),w.oxw(2).groupTablePageChanged(t)}),w.qZA(),w.qZA()}if(2&t){var n=w.oxw(2);w.xp6(2),w.Oqu(w.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")),w.xp6(2),w.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),w.xp6(1),w.Q6J("groups",n.assignableGroups)("selection",n.selection)("displayedColumns",w.DdM(10,Et))("disableRouting",!0)("pageSize",n.pageSize)("filter",n.filterValue)}}function Rt(t,e){if(1&t){var i=w.EpF();w.TgZ(0,"div",4),w.TgZ(1,"mat-horizontal-stepper",5),w.TgZ(2,"mat-step",6),w.YNc(3,dt,2,3,"ng-template",7),w.YNc(4,ft,3,3,"app-alert",8),w.TgZ(5,"h5",9),w._uU(6),w.ALo(7,"translate"),w.qZA(),w.TgZ(8,"form",10),w.TgZ(9,"mat-form-field"),w.TgZ(10,"mat-select",11),w.ALo(11,"translate"),w.YNc(12,pt,2,2,"mat-option",12),w.qZA(),w.YNc(13,gt,3,3,"mat-error",13),w.qZA(),w.TgZ(14,"div"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"div",14),w._uU(18),w.qZA(),w.TgZ(19,"mat-form-field",15),w.TgZ(20,"mat-label"),w._uU(21),w.ALo(22,"translate"),w.qZA(),w.TgZ(23,"textarea",16),w._uU(24," "),w.qZA(),w.YNc(25,vt,3,3,"mat-error",13),w.YNc(26,mt,3,4,"mat-error",13),w.YNc(27,yt,3,4,"mat-error",13),w.YNc(28,bt,3,4,"mat-error",13),w.qZA(),w.TgZ(29,"div",17),w.TgZ(30,"button",18),w.NdJ("click",function(){return w.CHM(i),w.oxw().onCancel()}),w._uU(31),w.ALo(32,"translate"),w.qZA(),w.TgZ(33,"button",19),w._uU(34),w.ALo(35,"translate"),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.TgZ(36,"mat-step"),w.YNc(37,wt,2,3,"ng-template",7),w.TgZ(38,"div",9),w.TgZ(39,"h5",20),w._uU(40),w.ALo(41,"translate"),w.qZA(),w.YNc(42,_t,3,3,"app-alert",21),w.YNc(43,At,7,7,"mat-radio-group",22),w.qZA(),w.TgZ(44,"div",17),w.TgZ(45,"button",18),w.NdJ("click",function(){return w.CHM(i),w.oxw().onCancel()}),w._uU(46),w.ALo(47,"translate"),w.qZA(),w.TgZ(48,"button",23),w._uU(49),w.ALo(50,"translate"),w.qZA(),w.TgZ(51,"button",24),w._uU(52),w.ALo(53,"translate"),w.qZA(),w.qZA(),w.qZA(),w.TgZ(54,"mat-step"),w.YNc(55,kt,2,3,"ng-template",7),w.TgZ(56,"div",9),w.TgZ(57,"h5",20),w._uU(58),w.ALo(59,"translate"),w.qZA(),w.TgZ(60,"perun-web-apps-expiration-select",25),w.NdJ("datePicker",function(t){return w.CHM(i),w.oxw().setExpiration(t)}),w.qZA(),w.qZA(),w.TgZ(61,"div",17),w.TgZ(62,"button",18),w.NdJ("click",function(){return w.CHM(i),w.oxw().onCancel()}),w._uU(63),w.ALo(64,"translate"),w.qZA(),w.TgZ(65,"button",23),w._uU(66),w.ALo(67,"translate"),w.qZA(),w.TgZ(68,"button",24),w._uU(69),w.ALo(70,"translate"),w.qZA(),w.qZA(),w.qZA(),w.TgZ(71,"mat-step"),w.YNc(72,Tt,2,3,"ng-template",7),w.TgZ(73,"div",9),w.TgZ(74,"h5",20),w._uU(75),w.ALo(76,"translate"),w.qZA(),w.TgZ(77,"mat-radio-group",26),w.NdJ("change",function(){return w.CHM(i),w.oxw().groupAssigmentChanged()})("ngModelChange",function(t){return w.CHM(i),w.oxw().groupAssignment=t}),w.TgZ(78,"mat-radio-button",27),w._uU(79),w.ALo(80,"translate"),w.qZA(),w.TgZ(81,"span",28),w.ALo(82,"translate"),w.TgZ(83,"mat-radio-button",29),w._uU(84),w.ALo(85,"translate"),w.qZA(),w.qZA(),w.TgZ(86,"span",28),w.ALo(87,"translate"),w.TgZ(88,"mat-radio-button",30),w._uU(89),w.ALo(90,"translate"),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.YNc(91,Ct,4,3,"div",13),w.YNc(92,St,5,4,"div",13),w.YNc(93,xt,6,11,"div",13),w.TgZ(94,"div",17),w.TgZ(95,"button",18),w.NdJ("click",function(){return w.CHM(i),w.oxw().onCancel()}),w._uU(96),w.ALo(97,"translate"),w.qZA(),w.TgZ(98,"button",23),w._uU(99),w.ALo(100,"translate"),w.qZA(),w.TgZ(101,"button",31),w.NdJ("click",function(){return w.CHM(i),w.oxw().onSubmit()}),w._uU(102),w.ALo(103,"translate"),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA()}if(2&t){var n=w.oxw();w.xp6(1),w.Q6J("linear",!0),w.xp6(1),w.Q6J("stepControl",n.usersInfoFormGroup),w.xp6(2),w.Q6J("ngIf",n.functionalityNotSupported),w.xp6(2),w.Oqu(w.lcZ(7,50,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),w.xp6(2),w.Q6J("formGroup",n.usersInfoFormGroup),w.xp6(2),w.s9C("placeholder",w.lcZ(11,52,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),w.xp6(2),w.Q6J("ngForOf",n.namespaceOptions),w.xp6(1),w.Q6J("ngIf",n.usersInfoFormGroup.hasError("required","namespace")),w.xp6(2),w.Oqu(w.lcZ(16,54,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),w.xp6(3),w.Oqu(n.getSelectedNamespaceRules().csvGenHeaderDescription),w.xp6(3),w.Oqu(w.lcZ(22,56,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),w.xp6(2),w.s9C("placeholder",n.getSelectedNamespaceRules().csvGenPlaceholder),w.xp6(2),w.Q6J("ngIf",n.usersInfoFormGroup.hasError("required","sponsoredMembers")),w.xp6(1),w.Q6J("ngIf",n.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),w.xp6(1),w.Q6J("ngIf",n.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),w.xp6(1),w.Q6J("ngIf",n.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),w.xp6(3),w.hij(" ",w.lcZ(32,58,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),w.xp6(2),w.Q6J("disabled",n.usersInfoFormGroup.invalid),w.xp6(1),w.hij(" ",w.lcZ(35,60,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," "),w.xp6(6),w.Oqu(w.lcZ(41,62,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")),w.xp6(2),w.Q6J("ngIf","No namespace"===n.getSelectedNamespaceRules().namespaceName),w.xp6(1),w.Q6J("ngIf","No namespace"!==n.getSelectedNamespaceRules().namespaceName),w.xp6(3),w.hij(" ",w.lcZ(47,64,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),w.xp6(3),w.hij(" ",w.lcZ(50,66,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "),w.xp6(2),w.Q6J("disabled",null===n.passwordReset),w.xp6(1),w.hij(" ",w.lcZ(53,68,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," "),w.xp6(6),w.Oqu(w.lcZ(59,70,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),w.xp6(2),w.Q6J("expiration",n.expiration),w.xp6(3),w.hij(" ",w.lcZ(64,72,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),w.xp6(3),w.hij(" ",w.lcZ(67,74,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "),w.xp6(2),w.Q6J("disabled",null===n.expiration),w.xp6(1),w.hij("",w.lcZ(70,76,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," "),w.xp6(6),w.Oqu(w.lcZ(76,78,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),w.xp6(2),w.Q6J("ngModel",n.groupAssignment),w.xp6(2),w.hij(" ",w.lcZ(80,80,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),w.xp6(2),w.s9C("matTooltip",w.lcZ(82,82,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),w.Q6J("matTooltipDisabled",!n.manualMemberAddingBlocked&&n.createGroupAuth),w.xp6(2),w.Q6J("disabled",n.manualMemberAddingBlocked||!n.createGroupAuth),w.xp6(1),w.hij(" ",w.lcZ(85,84,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),w.xp6(2),w.s9C("matTooltip",w.lcZ(87,86,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),w.Q6J("matTooltipDisabled",!n.manualMemberAddingBlocked&&0!==n.assignableGroups.length),w.xp6(2),w.Q6J("disabled",n.manualMemberAddingBlocked||0===n.assignableGroups.length),w.xp6(1),w.hij(" ",w.lcZ(90,88,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),w.xp6(2),w.Q6J("ngIf","none"===n.groupAssignment),w.xp6(1),w.Q6J("ngIf","new"===n.groupAssignment),w.xp6(1),w.Q6J("ngIf","existing"===n.groupAssignment),w.xp6(3),w.hij(" ",w.lcZ(97,90,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),w.xp6(3),w.hij(" ",w.lcZ(100,92,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "),w.xp6(2),w.Q6J("disabled",null===n.groupAssignment||"existing"===n.groupAssignment&&0===n.selection.selected.length||"new"===n.groupAssignment&&(0===n.name.length||0===n.description.length)||!0===n.asSubGroup&&null===n.parentGroup),w.xp6(1),w.hij(" ",w.lcZ(103,94,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}var It=function(){var t=function(){function t(e,i,n,a,s,u,c,l,h,d,f){v(this,t),this.dialogRef=e,this.data=i,this.store=n,this.membersService=a,this.notificator=s,this.translate=u,this.guiAuthResolver=c,this.groupsService=l,this.attributesService=h,this.formBuilder=d,this.tableConfigService=f,this.loading=!1,this.functionalityNotSupported=!1,this.emailRegx=/^(([^<>+()[\]\\.,;:\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]{2,3}))$/,this.namespaceOptions=[],this.namespaceRules=[],this.passwordReset="generate",this.groupAssignment=null,this.expiration="never",this.assignableGroups=[],this.allVoGroups=[],this.selection=new r.Ov(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.submitDisabled=!1,this.filterValue="",this.tableId=o.rc,this.groupAttrNames=[st.r.GROUP_SYNC_ENABLED,st.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.createGroupAuth=this.guiAuthResolver.isAuthorized("createGroup_Vo_Group_policy",[{id:this.data.voId,beanName:"Vo"}]),this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",c.kI.required],sponsoredMembers:["",[c.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:function(){t.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(function(e){t.manualMemberAddingBlocked=t.hasAttributeEnabled(e,"blockManualMemberAdding"),!0!==t.manualMemberAddingBlocked?t.groupsService.getAllRichGroupsWithAttributesByNames(t.data.voId,t.groupAttrNames).subscribe(function(e){t.allVoGroups=e.filter(function(t){return"members"!==t.name}),t.assignableGroups=t.filterAssignableGroups(e),t.membersService.getAllNamespacesRules().subscribe(function(e){t.store.get("allow_empty_sponsor_namespace")&&t.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"}),t.namespaceRules=t.namespaceRules.concat(e),t.namespaceRules.forEach(function(e){return t.namespaceOptions.push(e.namespaceName)}),0===t.namespaceOptions.length?t.functionalityNotSupported=!0:t.usersInfoFormGroup.setValue({namespace:t.namespaceOptions[0],sponsoredMembers:""}),t.loading=!1})},function(){return t.loading=!1}):t.loading=!1},function(){return t.loading=!1})}},{key:"filterAssignableGroups",value:function(t){var e,i=[],n=f(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.hasAttributeEnabled(r.attributes,"synchronizationEnabled")||this.hasAttributeEnabled(r.attributes,"blockManualMemberAdding")||!this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[r])||i.push(r)}}catch(o){n.e(o)}finally{n.f()}return i}},{key:"hasAttributeEnabled",value:function(t,e){return t.some(function(t){return t.friendlyName===e&&null!==t.value&&"true"===t.value.toString()})}},{key:"createOutputObjects",value:function(t){for(var e="",i="",n="",r="",o=[],a=0,s=Object.keys(t);a_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]))}},{key:"onCreate",value:function(){var t=this,e=(0,a.kZ)();e.width="620px",e.data={entityId:this.voId,voId:this.voId,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(at,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.authzResolver.getPerunPrincipal().subscribe(function(e){t.storeService.setPerunPrincipal(e),t.refresh()}))})}},{key:"onGenerate",value:function(){var t=this,e=(0,a.kZ)();e.width="750px",e.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(It,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.authzResolver.getPerunPrincipal().subscribe(function(e){t.storeService.setPerunPrincipal(e),t.refresh()}))})}},{key:"onSponsorExistingMember",value:function(){var t=this,e=(0,a.kZ)();e.width="650px",e.data={voId:this.voId,theme:"vo-theme"},this.dialog.open(Nt,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.authzResolver.getPerunPrincipal().subscribe(function(e){t.storeService.setPerunPrincipal(e),t.refresh()}))})}},{key:"refresh",value:function(){var t=this;this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.voId,this.attrNames).subscribe(function(e){t.selection.clear(),t.members=e,t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.searchString=t}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="VoSponsoredMembersComponent",t.\u0275fac=function(e){return new(e||t)(w.Y36(n.uq),w.Y36(zt.gz),w.Y36(s.uw),w.Y36(u.x4),w.Y36(o.dB),w.Y36(u.d6),w.Y36(n.Ct))},t.\u0275cmp=w.Xpm({type:t,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(t,e){2&t&&w.ekj("router-component",e.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2 dropdown-toggle",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"sponsoredMembers","disableRouting","selection","filterValue","pageSize","page","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"sponsoredMembers","disableRouting","selection","filterValue","pageSize","page","refreshTable"]],template:function(t,e){1&t&&(w.TgZ(0,"div"),w.TgZ(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-refresh-button",1),w.NdJ("refresh",function(){return e.refresh()}),w.qZA(),w.TgZ(5,"span",2),w.ALo(6,"translate"),w.YNc(7,le,3,5,"button",3),w.qZA(),w.TgZ(8,"mat-menu",null,4),w.YNc(10,he,3,3,"button",5),w.YNc(11,de,3,3,"button",5),w.qZA(),w.YNc(12,fe,3,3,"button",6),w.TgZ(13,"perun-web-apps-immediate-filter",7),w.NdJ("filter",function(t){return e.applyFilter(t)}),w.qZA(),w.YNc(14,pe,1,0,"mat-spinner",8),w.YNc(15,ge,1,5,"app-sponsored-members-list",9),w.qZA()),2&t&&(w.xp6(2),w.Oqu(w.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),w.xp6(3),w.s9C("matTooltip",w.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),w.Q6J("matTooltipDisabled",!(e.findSponsorsAuth&&0===e.voSponsors.length)),w.xp6(2),w.Q6J("ngIf",!e.loading&&(e.createAuth||e.generateAuth)),w.xp6(3),w.Q6J("ngIf",e.createAuth),w.xp6(1),w.Q6J("ngIf",e.generateAuth),w.xp6(1),w.Q6J("ngIf",!e.loading&&e.setSponsorshipAuth),w.xp6(1),w.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),w.xp6(1),w.Q6J("ngIf",e.loading),w.xp6(1),w.Q6J("ngIf",!e.loading))},directives:[Ft.t,x.gM,l.O5,Zt.VK,ct.L,S.lW,Zt.p6,Zt.OP,A.$g,ce],pipes:[_.X$],styles:[""]}),t}()},17249:function(t,e,i){"use strict";i.d(e,{Y:function(){return F}});var n=i(33642),r=i(84140),o=i(88426),a=i(99608),s=i(4230),u=i(84608),c=i(16073),l=i(31572),h=i(48160),d=i(57629),f=i(61511),p=i(67806),g=i(66283),m=i(80340),b=i(15980),w=i(36922);function _(t,e){1&t&&l._UZ(0,"mat-spinner",3)}function A(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"div",4),l.TgZ(2,"mat-form-field"),l._UZ(3,"input",5),l.ALo(4,"translate"),l.TgZ(5,"mat-error"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.qZA(),l.TgZ(8,"mat-form-field"),l._UZ(9,"input",5),l.ALo(10,"translate"),l.TgZ(11,"mat-error"),l._uU(12),l.ALo(13,"translate"),l.qZA(),l.qZA(),l.qZA(),l.TgZ(14,"div",6),l.TgZ(15,"button",7),l.NdJ("click",function(){return l.CHM(i),l.oxw().onCancel()}),l._uU(16),l.ALo(17,"translate"),l.qZA(),l.TgZ(18,"div",8),l.ALo(19,"translate"),l.TgZ(20,"button",9),l.NdJ("click",function(){return l.CHM(i),l.oxw().onSubmit()}),l._uU(21),l.ALo(22,"translate"),l.qZA(),l.qZA(),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(3),l.s9C("placeholder",l.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),l.Q6J("formControl",n.fullNameCtrl),l.xp6(3),l.hij(" ",l.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),l.xp6(3),l.s9C("placeholder",l.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),l.Q6J("formControl",n.shortNameCtrl),l.xp6(3),l.hij(" ",l.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),l.xp6(4),l.hij(" ",l.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),l.Q6J("matTooltipDisabled",n.shortNameCtrl.valid&&n.fullNameCtrl.valid),l.xp6(2),l.Q6J("disabled",n.shortNameCtrl.invalid||n.fullNameCtrl.invalid),l.xp6(1),l.hij(" ",l.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}var k=function(){var t=function(){function t(e,i,n,r,o,a){var s=this;v(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.voService=r,this.translate=o,this.router=a,o.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(function(t){return s.successMessage=t})}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.shortNameCtrl=new c.NI(null,[c.kI.required,c.kI.pattern("^[\\w.-]+$"),c.kI.maxLength(33)]),this.fullNameCtrl=new c.NI(null,[c.kI.required,c.kI.pattern(".*[\\S]+.*"),c.kI.maxLength(129)])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(function(e){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0),t.router.navigate(["/organizations",e.id])},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(u.so),l.Y36(u.WI),l.Y36(o.V6),l.Y36(n.YF),l.Y36(h.sK),l.Y36(d.F0))},t.\u0275cmp=l.Xpm({type:t,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","","required","",3,"placeholder","formControl"],["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(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,_,1,0,"mat-spinner",1),l.YNc(5,A,23,25,"div",2),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[u.uh,f.O5,p.$g,u.xY,g.KE,m.Nt,c.Fj,c.Q7,c.JJ,c.oH,g.TO,u.H8,b.lW,w.gM],pipes:[h.X$],styles:[""]}),t}(),T=i(60611),C=i(48958),S=i(66297),E=i(43691),x=i(59403),R=i(19139),I=i(97162);function O(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-refresh-button",9),l.NdJ("refresh",function(){return l.CHM(i),l.oxw().refreshTable()}),l.qZA()}}function P(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",10),l.NdJ("click",function(){return l.CHM(i),l.oxw().onCreateVo()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function D(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){return l.CHM(i),l.oxw().onRemoveVo()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("disabled",0===n.selection.selected.length),l.xp6(1),l.hij(" ",l.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function M(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",12),l.NdJ("filter",function(t){return l.CHM(i),l.oxw().applyFilter(t)}),l.qZA()}2&t&&l.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER")}function L(t,e){1&t&&l._UZ(0,"mat-spinner",13)}function N(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-vos-list",14),l.NdJ("page",function(t){return l.CHM(i),l.oxw().pageChanged(t)}),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("pageSize",n.pageSize)("displayedColumns",n.displayedColumns)("filterValue",n.filterValue)("recentIds",n.recentIds)("selection",n.selection)("vos",n.vos)}}var z=function(){return{color:"black"}},F=function(){var t=function(){function t(e,i,n,r,o,a,s,u){v(this,t),this.sideMenuService=e,this.voService=i,this.guiAuthResolver=n,this.tableConfigService=r,this.dialog=o,this.notificator=a,this.apiRequest=s,this.initAuthService=u,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=T.tw}return y(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.selection=new s.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","recent","shortName","name"]:["id","recent","shortName","name"],this.refreshTable()}},{key:"ngAfterViewChecked",value:function(){this.sideMenuService.setAccessMenuItems([])}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyVos().subscribe(function(e){t.vos=e,t.recentIds=(0,r.vL)("vos"),t.loading=!1},function(e){"PrivilegeException"===e.error.name?(t.vos=[],t.loading=!1):t.notificator.showRPCError(e)})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"onCreateVo",value:function(){var t=this,e=(0,r.kZ)();e.width="600px",e.data={theme:"vo-theme"},this.dialog.open(k,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.refreshTable())})}},{key:"onRemoveVo",value:function(){var t=this,e=(0,r.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.selection.selected[0]]},this.dialog.open(a.o,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"pageChanged",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.id="VoSelectPageComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(C.D),l.Y36(n.YF),l.Y36(o.x4),l.Y36(T.dB),l.Y36(u.uw),l.Y36(o.V6),l.Y36(o.F5),l.Y36(o.v0))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.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",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"pageSize","displayedColumns","filterValue","recentIds","selection","vos","page",4,"ngIf"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],[1,"ml-auto","mr-auto"],[3,"pageSize","displayedColumns","filterValue","recentIds","selection","vos","page"]],template:function(t,e){1&t&&(l.TgZ(0,"div",0),l._UZ(1,"perun-web-apps-back-button"),l.TgZ(2,"h1",1),l._UZ(3,"mat-icon",2),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.YNc(6,O,1,0,"perun-web-apps-refresh-button",3),l.YNc(7,P,3,3,"button",4),l.YNc(8,D,3,4,"button",5),l.YNc(9,M,1,2,"perun-web-apps-immediate-filter",6),l.YNc(10,L,1,0,"mat-spinner",7),l.YNc(11,N,1,6,"perun-web-apps-vos-list",8),l.qZA()),2&t&&(l.xp6(3),l.Q6J("ngStyle",l.DdM(10,z)),l.xp6(1),l.hij(" ",l.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.createAuth),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.deleteAuth),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[S.W,E.Hw,f.PC,f.O5,x.t,b.lW,R.L,p.$g,I.Z],pipes:[h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t}()},15291:function(t,e,i){"use strict";var n=i(30269),r=i(31572),o=i(57629),a=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t}(),s=i(33642),u=i(88426),c=i(84140),l=i(61189),h=i(48958),p=i(48160),g=i(84608),m=i(25122),b=i(29236),w=i(16073),_=i(61511),A=i(43691),k=i(15980),T=i(39571),C=i(71522),S=i(36922);function E(t,e){1&t&&(r.TgZ(0,"app-alert",2),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}function x(t,e){if(1&t&&(r.TgZ(0,"div",5),r.TgZ(1,"a",6),r.TgZ(2,"span",7),r._uU(3),r.qZA(),r._UZ(4,"mat-icon",8),r._uU(5),r.qZA(),r.qZA()),2&t){var i=e.$implicit;r.xp6(1),r.Gre("",i.style," item-itself"),r.s9C("matTooltip",i.tooltip),r.Q6J("matTooltipDisabled",i.label===i.tooltip)("routerLink",i.url),r.xp6(2),r.Oqu(i.type),r.xp6(1),r.Q6J("svgIcon",i.cssIcon),r.xp6(1),r.hij(" ",i.label," ")}}function R(t,e){if(1&t&&(r.TgZ(0,"div",3),r.YNc(1,x,6,9,"div",4),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("ngForOf",i.items)}}var I=function(){var t=function(){function t(e,i,n){v(this,t),this.vosManager=e,this.groupsManager=i,this.facilitiesManager=n,this.vosIds=[],this.items=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[]}return y(t,[{key:"ngOnInit",value:function(){var t,e=this,i=(0,c.vL)("recent"),n=f(i);try{for(n.s();!(t=n.n()).done;){var r=t.value;switch(r.type){case"Vo":this.vosIds.push(r.id);break;case"Group":this.groupsIds.push(r.id);break;case"Facility":this.facilitiesIds.push(r.id)}}}catch(o){n.e(o)}finally{n.f()}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.vosManager.getVosByIds(this.vosIds).subscribe(function(t){var n;(n=e.existingRecentIds).push.apply(n,d(t.map(function(t){return t.id}))),e.groupsManager.getGroupsByIds(e.groupsIds).subscribe(function(t){var n;(n=e.existingRecentIds).push.apply(n,d(t.map(function(t){return t.id}))),e.facilitiesManager.getFacilitiesByIds(e.facilitiesIds).subscribe(function(t){var n;(n=e.existingRecentIds).push.apply(n,d(t.map(function(t){return t.id}))),i=i.filter(function(t){return e.existingRecentIds.indexOf(t.id)>-1}),e.addRecentlyViewedToDashboard(i)})})})}},{key:"addRecentlyViewedToDashboard",value:function(t){var e,i=f(t);try{for(i.s();!(e=i.n()).done;){var n=e.value;switch(n.type){case"Vo":this.items.push({cssIcon:"perun-vo",url:"/organizations/".concat(n.id),label:n.name,style:"vo-btn",type:"Organization"});break;case"Group":this.items.push({cssIcon:"perun-group",url:"/organizations/".concat(n.voId,"/groups/").concat(n.id),label:n.name,tooltip:n.fullName,style:"group-btn",type:"Group"});break;case"Facility":this.items.push({cssIcon:"perun-facility-white",url:"/facilities/".concat(n.id),label:n.name,style:"facility-btn",type:"Facility"})}}}catch(r){i.e(r)}finally{i.f()}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(s.YF),r.Y36(s.ff),r.Y36(s.IQ))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-perun-web-apps-dashboard-recently-viewed-button-field"]],decls:2,vars:2,consts:[["alert_type","info",4,"ngIf"],["class","items-container",4,"ngIf"],["alert_type","info"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],["queryParamsHandling","merge",3,"matTooltipDisabled","routerLink","matTooltip"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&(r.YNc(0,E,3,3,"app-alert",0),r.YNc(1,R,2,1,"div",1)),2&t&&(r.Q6J("ngIf",0===e.items.length),r.xp6(1),r.Q6J("ngIf",e.items.length>0))},directives:[_.O5,T.w,_.sg,C.wG,o.yS,S.gM,A.Hw],pipes:[p.X$],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width:768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px}.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;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}"]}),t}(),O=i(67806),P=i(97162),D=i(78364),M=i(88884),L=i(60007);function N(t,e){1&t&&r._UZ(0,"mat-spinner",7)}var z=function(){return["id","recent","shortName","name"]};function F(t,e){if(1&t&&(r.TgZ(0,"span"),r._UZ(1,"perun-web-apps-vos-list",8),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("pageSizeOptions",null)("pageSize",5)("displayedColumns",r.DdM(5,z))("recentIds",i.recentIds)("vos",i.objects)}}var Z=function(){return["id","recent","vo","name","description"]};function B(t,e){if(1&t&&(r.TgZ(0,"span"),r._UZ(1,"perun-web-apps-groups-list",9),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("pageSizeOptions",null)("pageSize",5)("groups",i.objects)("recentIds",i.recentIds)("displayedColumns",r.DdM(5,Z))}}var q=function(){return["id","recent","name","vo","facility"]};function U(t,e){if(1&t&&(r.TgZ(0,"span"),r._UZ(1,"perun-web-apps-resources-list",10),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("pageSizeOptions",null)("pageSize",5)("resources",i.objects)("displayedColumns",r.DdM(6,q))("recentIds",i.recentIds)("routingVo",!0)}}var H=function(){return["id","recent","name","description"]};function j(t,e){if(1&t&&(r.TgZ(0,"span"),r._UZ(1,"perun-web-apps-facilities-list",11),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("pageSizeOptions",null)("pageSize",5)("facilities",i.objects)("recentIds",i.recentIds)("displayedColumns",r.DdM(5,H))}}function G(t,e){if(1&t&&(r.TgZ(0,"div"),r.YNc(1,F,2,6,"span",6),r.YNc(2,B,2,6,"span",6),r.YNc(3,U,2,7,"span",6),r.YNc(4,j,2,6,"span",6),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("ngIf","Vo"===i.primaryObject),r.xp6(1),r.Q6J("ngIf","Group"===i.primaryObject),r.xp6(1),r.Q6J("ngIf","Resource"===i.primaryObject),r.xp6(1),r.Q6J("ngIf","Facility"===i.primaryObject)}}var Y=function(){var t=function(){function t(e,i,n){v(this,t),this.authzResolver=e,this.guiAuthResolver=i,this.resourceService=n,this.loading=!1,this.recentIds=[]}return y(t,[{key:"ngOnInit",value:function(){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()}},{key:"getObjects",value:function(){var t=this;switch(this.primaryObject){case"Vo":this.authzResolver.getVosWhereUserIsInRoles([this.roleName]).subscribe(function(e){t.objects=e,t.recentIds=(0,c.vL)("vos"),t.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(function(e){t.objects=e,t.recentIds=(0,c.vL)("groups"),t.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(function(e){t.objects=e,t.recentIds=(0,c.vL)("resources"),t.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(function(e){t.objects=e.map(function(t){return{facility:t}}),t.recentIds=(0,c.vL)("facilities"),t.loading=!1});break;default:this.objects=[],this.loading=!1}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(s.Ct),r.Y36(u.x4),r.Y36(s.xk))},t.\u0275cmp=r.Xpm({type:t,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","pageSize","displayedColumns","recentIds","vos"],[3,"pageSizeOptions","pageSize","groups","recentIds","displayedColumns"],[3,"pageSizeOptions","pageSize","resources","displayedColumns","recentIds","routingVo"],[3,"pageSizeOptions","pageSize","facilities","recentIds","displayedColumns"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r._UZ(2,"mat-icon",2),r._uU(3),r.ALo(4,"translate"),r.TgZ(5,"span",3),r.ALo(6,"translate"),r.TgZ(7,"mat-icon",4),r._uU(8,"info_outline"),r.qZA(),r.qZA(),r.qZA(),r.YNc(9,N,1,0,"mat-spinner",5),r.YNc(10,G,5,4,"div",6),r.qZA()),2&t&&(r.xp6(2),r.Q6J("svgIcon",e.svgIcon),r.xp6(1),r.hij(" ",r.lcZ(4,5,e.title)," "),r.xp6(2),r.s9C("matTooltip",r.lcZ(6,7,e.roleTooltipInfo)),r.xp6(4),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[A.Hw,S.gM,_.O5,O.$g,P.Z,D.W,M.C,L.X],pipes:[p.X$],styles:[".dashboard-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}.card-title[_ngcontent-%COMP%]{font-size:1.4rem;flex-wrap:wrap}.cover-image[_ngcontent-%COMP%]{transform:scale(1.8);margin-left:.9rem;margin-right:.7rem}"]}),t}(),V=i(22196);function K(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"div"),r.TgZ(1,"mat-checkbox",8),r.NdJ("change",function(t){var e=r.CHM(i).$implicit,n=r.oxw();return t?n.changeRoleView(e):null}),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.qZA()}if(2&t){var n=e.$implicit,o=r.oxw();r.xp6(1),r.Q6J("checked",o.isRoleShowed(n)),r.xp6(1),r.Oqu(r.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+n))}}function J(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"button",15),r.NdJ("click",function(){return r.CHM(i),r.oxw(2).rightSettingOpened=!0}),r.TgZ(1,"mat-icon"),r._uU(2,"settings"),r.qZA(),r.qZA()}}function Q(t,e){1&t&&(r.TgZ(0,"span"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function W(t,e){1&t&&(r.TgZ(0,"span"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function X(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"button",23),r.NdJ("click",function(){return r.CHM(i),r.oxw(3).goToUserProfile()}),r.TgZ(1,"mat-icon",24),r._uU(2,"exit_to_app"),r.qZA(),r._uU(3),r.ALo(4,"translate"),r.qZA()}if(2&t){var n=r.oxw(3);r.xp6(3),r.AsE("",r.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",n.userProfileName," ")}}var $=function(){return["/myProfile"]};function tt(t,e){if(1&t&&(r.TgZ(0,"div"),r.TgZ(1,"div",16),r.TgZ(2,"div",17),r._uU(3),r.ALo(4,"translate"),r.qZA(),r.TgZ(5,"div",18),r.YNc(6,Q,3,3,"span",14),r.YNc(7,W,3,3,"span",14),r.qZA(),r.TgZ(8,"div",19),r.TgZ(9,"button",20),r._UZ(10,"mat-icon",21),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.YNc(13,X,5,4,"button",22),r.qZA(),r.qZA(),r.qZA()),2&t){var i=r.oxw(2);r.xp6(3),r.hij(" ",r.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),r.xp6(3),r.Q6J("ngIf",!i.userProfileUrl),r.xp6(1),r.Q6J("ngIf",i.userProfileUrl),r.xp6(2),r.Q6J("routerLink",r.DdM(10,$)),r.xp6(2),r.hij(" ",r.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),r.xp6(2),r.Q6J("ngIf",i.userProfileUrl)}}function et(t,e){1&t&&(r.TgZ(0,"span"),r.TgZ(1,"div",3),r._uU(2),r.ALo(3,"translate"),r.qZA(),r._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),r.qZA()),2&t&&(r.xp6(2),r.hij(" ",r.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function it(t,e){1&t&&(r.TgZ(0,"div",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function nt(t,e){if(1&t&&r._UZ(0,"app-perun-web-apps-dashboard-card",30),2&t){var i=r.oxw().$implicit,n=r.oxw(3);r.Q6J("roleName",i)("role",n.roles[i])}}function rt(t,e){if(1&t&&(r.TgZ(0,"div",28),r.YNc(1,nt,1,2,"app-perun-web-apps-dashboard-card",29),r.qZA()),2&t){var i=e.$implicit,n=r.oxw(3);r.xp6(1),r.Q6J("ngIf",n.isRoleShowed(i))}}function ot(t,e){if(1&t&&(r.TgZ(0,"div"),r.YNc(1,et,5,3,"span",14),r.YNc(2,it,3,3,"div",25),r.TgZ(3,"div"),r.YNc(4,rt,2,1,"div",26),r.qZA(),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("ngIf",i.recentlyViewedShow),r.xp6(1),r.Q6J("ngIf",i.rolesToHide.toString()!==i.roleNames.toString()),r.xp6(2),r.Q6J("ngForOf",i.roleNames)}}function at(t,e){if(1&t&&(r.TgZ(0,"div",9),r.TgZ(1,"h1",10),r._UZ(2,"mat-icon",11),r.TgZ(3,"span",12),r._uU(4),r.ALo(5,"translate"),r.ALo(6,"userFullName"),r.qZA(),r.YNc(7,J,3,0,"button",13),r.qZA(),r.YNc(8,tt,14,11,"div",14),r.YNc(9,ot,5,3,"div",14),r.qZA()),2&t){var i=r.oxw();r.xp6(4),r.AsE("",r.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",r.lcZ(6,7,i.user),""),r.xp6(3),r.Q6J("ngIf",!i.isOnlySelfRole),r.xp6(1),r.Q6J("ngIf",i.isOnlySelfRole),r.xp6(1),r.Q6J("ngIf",!i.isOnlySelfRole)}}var st=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c,l){var h=this;v(this,t),this.userManager=e,this.storeService=i,this.sideMenuService=n,this.route=r,this.router=o,this.notificator=a,this.translateService=s,this.dialog=u,this.apiRequestConfiguration=c,this.utilsService=l,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"],s.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(function(t){return h.mailSuccessMessage=t})}return y(t,[{key:"ngOnInit",value:function(){this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();var t=Object.keys(this.roles);this.isOnlySelfRole=t.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(function(e){return t.includes(e)}),this.getDashboardSettings(),this.sideMenuService.setHomeItems([])}},{key:"validatePreferredMailChange",value:function(){var t=this,e=this.route.snapshot.queryParamMap,i=e.get("token"),n=e.get("u");i&&n&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(i,Number.parseInt(n,10)).subscribe(function(){t.notificator.showSuccess(t.mailSuccessMessage),t.router.navigate([],{replaceUrl:!0})},function(){var e=(0,c.kZ)();e.width="600px",t.dialog.open(l.qD,e).afterClosed().subscribe(function(){t.getDashboardSettings()})}))}},{key:"goToUserProfile",value:function(){window.open(this.userProfileUrl)}},{key:"recentlyViewedChanged",value:function(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}},{key:"getDashboardSettings",value:function(){var t=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===t||t;var e=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===e?[]:e}},{key:"changeRoleView",value:function(t){if(this.isRoleShowed(t)){var e,i=[],n=f(this.roleNames);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.isRoleShowed(r)||i.push(r),r===t&&i.push(r)}}catch(o){n.e(o)}finally{n.f()}this.rolesToHide=i}else this.rolesToHide=this.rolesToHide.filter(function(e){return e!==t});localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}},{key:"isRoleShowed",value:function(t){var e,i=f(this.rolesToHide);try{for(i.s();!(e=i.n()).done;){if(e.value===t)return!1}}catch(n){i.e(n)}finally{i.f()}return!0}},{key:"getUserProfile",value:function(){var t=this;this.utilsService.getAppsConfig().subscribe(function(e){t.userProfileUrl=e.brands[0].newApps.profile?e.brands[0].newApps.profile:null}),this.userProfileName=this.storeService.get("profile_label_en")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(s.Fv),r.Y36(u.d6),r.Y36(h.D),r.Y36(o.gz),r.Y36(o.F0),r.Y36(u.V6),r.Y36(p.sK),r.Y36(g.uw),r.Y36(u.F5),r.Y36(s.FW))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("router-component",e.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"],[1,"pt-1"],["mat-stroked-button","","class","ml-auto text-bigger",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"],["mat-stroked-button","","class","text-bigger ml-2 mt-2",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(t,e){1&t&&(r.TgZ(0,"mat-sidenav-container",0),r.TgZ(1,"mat-sidenav",1),r.NdJ("openedChange",function(t){return e.rightSettingOpened=t}),r.TgZ(2,"div",2),r.TgZ(3,"div",3),r._uU(4),r.ALo(5,"translate"),r.qZA(),r.TgZ(6,"div"),r.TgZ(7,"mat-checkbox",4),r.NdJ("ngModelChange",function(t){return e.recentlyViewedShow=t})("change",function(t){return t?e.recentlyViewedChanged():null}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.qZA(),r.TgZ(10,"div",5),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.YNc(13,K,4,4,"div",6),r.qZA(),r.qZA(),r.TgZ(14,"mat-sidenav-content"),r.YNc(15,at,10,9,"div",7),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("opened",e.rightSettingOpened),r.xp6(3),r.Oqu(r.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),r.xp6(3),r.Q6J("ngModel",e.recentlyViewedShow),r.xp6(1),r.Oqu(r.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),r.xp6(3),r.Oqu(r.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),r.xp6(2),r.Q6J("ngForOf",e.roleNames),r.xp6(2),r.Q6J("ngIf",void 0!==e.user))},directives:[m.TM,m.JX,b.oG,w.JJ,w.On,_.sg,m.Rh,_.O5,A.Hw,k.lW,o.rH,I,Y],pipes:[p.X$,V.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;grid-column-gap:1rem;-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 - 64px - 200px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),t}(),ut=i(66297),ct=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"perun-web-apps-back-button"),r.TgZ(2,"h1",1),r._uU(3),r.ALo(4,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(3),r.Oqu(r.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},directives:[ut.W],pipes:[p.X$],styles:[""]}),t}(),lt=i(41939),ht=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[_.ez,k.ot,A.Ps,o.Bz,lt.ez,p.aw]]}),t}(),dt=function(){var t=function(){function t(e){v(this,t),this.auth=e}return y(t,[{key:"startAuth",value:function(){this.auth.startAuthentication()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(u.e8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con","vo-theme"],[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(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"div",2),r.TgZ(3,"h4",3),r._uU(4),r.ALo(5,"translate"),r.qZA(),r.TgZ(6,"button",4),r.NdJ("click",function(){return e.startAuth()}),r._uU(7),r.ALo(8,"translate"),r.TgZ(9,"mat-icon"),r._uU(10," login "),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(4),r.hij(" ",r.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),r.xp6(3),r.hij(" ",r.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[k.lW,A.Hw],pipes:[p.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),t}(),ft=i(16306),pt=function(t){return{padding:t}},gt=function(){return{height:"56px"}};function vt(t,e){if(1&t&&(r.TgZ(0,"div",9),r._UZ(1,"div",10),r.qZA()),2&t){var i=r.oxw();r.Q6J("ngStyle",r.VKq(3,pt,i.logoPadding)),r.xp6(1),r.Q6J("innerHTML",i.logo,r.oJD)("ngStyle",r.DdM(5,gt))}}function mt(t,e){if(1&t&&(r.TgZ(0,"div",11),r._UZ(1,"div",12),r._UZ(2,"mat-icon",13),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("innerHTML",i.logo,r.oJD)}}function yt(t,e){if(1&t&&(r.TgZ(0,"div",14),r._UZ(1,"a",15),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("innerHTML",i.logo,r.oJD)}}var bt=function(t){return{color:t}};function wt(t,e){if(1&t&&(r.TgZ(0,"p",16),r._uU(1),r.qZA()),2&t){var i=r.oxw();r.Q6J("ngStyle",r.VKq(2,bt,i.textColor)),r.xp6(1),r.hij(" ",i.headerTitle," ")}}var _t=function(t,e){return{background:t,color:e}},At=function(t,e){return{"min-height":t,"background-color":e}},kt=function(){var t=function(){function t(e,i){v(this,t),this.storeService=e,this.sanitizer=i,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}return y(t,[{key:"ngOnInit",value:function(){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"):"",this.logoPadding="admin-gui"===this.application?this.storeService.get("logo_padding"):""}},{key:"getContentInnerMinHeight",value:function(){return"calc((100vh - 64px) + 0px)"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(u.d6),r.Y36(n.H7))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],["style"," display: flex; flex-direction: row;",4,"ngIf"],["style","padding-top: 16px",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"],[3,"ngStyle"],[1,"logo-container",3,"innerHTML","ngStyle"],[2,"display","flex","flex-direction","row"],[1,"router-icon-scale",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[2,"padding-top","16px"],[1,"ml-3",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.YNc(1,vt,2,6,"div",1),r.YNc(2,mt,3,1,"div",2),r.YNc(3,yt,2,1,"div",3),r.YNc(4,wt,2,4,"p",4),r.qZA(),r.TgZ(5,"div",5),r.TgZ(6,"div",6),r.TgZ(7,"div",7),r._UZ(8,"router-outlet"),r.qZA(),r.TgZ(9,"div",8),r._UZ(10,"perun-web-apps-footer"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Q6J("ngStyle",r.WLB(6,_t,e.headerBackgroundColor,e.headerTextColor)),r.xp6(1),r.Q6J("ngIf","admin-gui"===e.application),r.xp6(1),r.Q6J("ngIf","publications"===e.application),r.xp6(1),r.Q6J("ngIf","user-profile"===e.application),r.xp6(1),r.Q6J("ngIf",!!e.headerTitle),r.xp6(2),r.Q6J("ngStyle",r.WLB(9,At,e.getContentInnerMinHeight(),e.contentBackgroundColor)))},directives:[_.PC,_.O5,o.lC,ft.$,A.Hw],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}.router-icon-scale[_ngcontent-%COMP%]{transform:scale(.75);margin-top:.3rem}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}"]}),t}(),Tt=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:lt.t$},{path:"api-callback",component:a},{path:"login",component:dt},{path:"organizations",loadChildren:function(){return Promise.all([i.e(579),i.e(827),i.e(901),i.e(427)]).then(i.bind(i,67427)).then(function(t){return t.VosModule})}},{path:"admin",loadChildren:function(){return Promise.all([i.e(579),i.e(363),i.e(756),i.e(901),i.e(285)]).then(i.bind(i,1285)).then(function(t){return t.AdminModule})}},{path:"facilities",loadChildren:function(){return Promise.all([i.e(579),i.e(363),i.e(827),i.e(756),i.e(300)]).then(i.bind(i,55300)).then(function(t){return t.FacilitiesModule})}},{path:"myProfile",loadChildren:function(){return Promise.all([i.e(579),i.e(363)]).then(i.bind(i,6363)).then(function(t){return t.UsersModule})}},{path:"home",component:st},{path:"**",component:ct}],Ct=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[o.Bz.forRoot(Tt,{preloadingStrategy:o.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],o.Bz]}),t}(),St=i(61601),Et=i(28780),xt=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";v(this,t),this.http=e,this.prefix=i,this.suffix=n}return y(t,[{key:"getTranslation",value:function(t){return this.http.get("".concat(this.prefix).concat(t).concat(this.suffix))}}]),t}(),Rt=i(29063),It=i(43490),Ot=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[u.e8],imports:[[_.ez]]}),t}(),Pt=i(28940),Dt=i(48002),Mt=i(40659),Lt=i(62284),Nt=i(7433),zt=i(82044),Ft=i(11930),Zt=i(39124),Bt=i(64467),qt=i(81835),Ut=i(88227),Ht=i(97397),jt=i(71313),Gt=i(14527),Yt=i(65423),Vt=i(17249),Kt=i(73916),Jt=i(48666),Qt=function(){var t=function(){function t(){v(this,t),this.allowCachePages=[{type:"vo",components:[Pt.y.id,Dt.G.id,Mt.c.id,Ut.z.id,Ht.z.id,Gt.w.id,Jt.T.id]},{type:"group",components:[Ft.y.id,zt.u.id,Nt.q.id,Lt.W.id,Yt.Z.id]},{type:"facility",components:[Zt.o.id,Bt.f.id]},{type:"member",components:[qt.j.id]},{type:"admin",components:[jt.t.id]},{type:"entitySelect",components:[Vt.Y.id,Kt.P.id]}],this.cacheTimeMs=3e5,this.resets=[{lastValue:null,resetType:"vo",resetPath:":voId",param:"voId"},{lastValue:null,resetType:"group",resetPath:":voId/groups/:groupId",param:"groupId"},{lastValue:null,resetType:"facility",resetPath:":facilityId",param:"facilityId"},{lastValue:null,resetType:"member",resetPath:":voId/members/:memberId",param:"memberId"},{lastValue:null,resetType:"admin",resetPath:"admin/users"}],this.isUserNavigatingBack=!1,this.typeToComponentToHandlers=new Map;var e,i=f(this.allowCachePages);try{for(i.s();!(e=i.n()).done;){var n=e.value;this.typeToComponentToHandlers.set(n.type,new Map)}}catch(r){i.e(r)}finally{i.f()}}return y(t,[{key:"setLastNavigationType",value:function(t){this.isUserNavigatingBack="back"===t}},{key:"checkResets",value:function(t){var e,i=this.getPath(t),n=f(this.resets);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.resetPath===i){var o=t.params[r.param];null!==r.lastValue&&r.lastValue!==o&&this.typeToComponentToHandlers.get(r.resetType).clear(),r.lastValue=o}}}catch(a){n.e(a)}finally{n.f()}}},{key:"shouldReuseRoute",value:function(t,e){return this.checkResets(e),t.routeConfig===e.routeConfig}},{key:"retrieve",value:function(t){if(t.component){var e,i=this.getComponentName(t.component),n=f(this.allowCachePages);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(-1!==r.components.indexOf(i)){var o=this.typeToComponentToHandlers.get(r.type).get(i);return void 0===o?null:o.routeHandle}}}catch(a){n.e(a)}finally{n.f()}}return null}},{key:"shouldAttach",value:function(t){if(!this.isUserNavigatingBack)return!1;if(t.component){var e,i=this.getComponentName(t.component),n=f(this.allowCachePages);try{for(n.s();!(e=n.n()).done;){var r=e.value,o=this.typeToComponentToHandlers.get(r.type).get(i);if(void 0!==o&&this.getCurrentTimestamp()-o.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();var i=this.getComponentType(t);this.typeToComponentToHandlers.get(i).set(this.getComponentName(t.component),{routeHandle:e,saveTimeStamp:this.getCurrentTimestamp()})}}},{key:"getCurrentTimestamp",value:function(){return+Date.now()}},{key:"getComponentName",value:function(t){return t.id}},{key:"getComponentType",value:function(t){var e,i=this.getComponentName(t.component),n=f(this.allowCachePages);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(-1!==r.components.indexOf(i))return r.type}}catch(o){n.e(o)}finally{n.f()}return null}},{key:"getPath",value:function(t){return null!==t.routeConfig&&null!==t.routeConfig.path?t.routeConfig.path:""}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),Wt=new r.OlP("perun-api-service"),Xt=function(){var t=function(){function t(e,i){v(this,t),this.http=e,this.storeService=i}return y(t,[{key:"initializeColors",value:function(t,e){var i=this;return new Promise(function(n){e.forEach(function(t){var e=i.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(function(t){var e=i.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),i.setEntityTheme(t.entity,e)}),n()})}},{key:"setEntityTheme",value:function(t,e){for(var i,n=0,r=(i=e,[$t(tinycolor(i).lighten(52),"50"),$t(tinycolor(i).lighten(37),"100"),$t(tinycolor(i).lighten(26),"200"),$t(tinycolor(i).lighten(12),"300"),$t(tinycolor(i).lighten(6),"400"),$t(tinycolor(i),"500"),$t(tinycolor(i).darken(6),"600"),$t(tinycolor(i).darken(12),"700"),$t(tinycolor(i).darken(18),"800"),$t(tinycolor(i).darken(24),"900"),$t(tinycolor(i).lighten(50).saturate(30),"A100"),$t(tinycolor(i).lighten(30).saturate(30),"A200"),$t(tinycolor(i).lighten(10).saturate(15),"A400"),$t(tinycolor(i).lighten(5).saturate(5),"A700")]);nt[o]-t[a]-1&&(t.reach[u]="end"),e&&(h.dispatchEvent(Re("ps-scroll-"+u)),e<0?h.dispatchEvent(Re("ps-scroll-"+c)):e>0&&h.dispatchEvent(Re("ps-scroll-"+l)),n&&function(t,e){Te(t,e),Ce(t,e)}(t,u)),t.reach[u]&&(e||r)&&h.dispatchEvent(Re("ps-"+u+"-reach-"+t.reach[u]))}(t,i,o,n,r)}function Oe(t){return parseInt(t,10)||0}xe.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new Se(t),this.eventElements.push(e)),e},xe.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},xe.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},xe.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},xe.prototype.once=function(t,e,i){var n=this.eventElement(t);n.bind(e,function t(r){n.unbind(e,t),i(r)})};var Pe={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function De(t){var e=t.element,i=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.ceil(n.width),t.containerHeight=Math.ceil(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(ye(e,we("x")).forEach(function(t){return me(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(ye(e,we("y")).forEach(function(t){return me(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var i={width:e.railXWidth},n=Math.floor(t.scrollTop);i.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-n:i.top=e.scrollbarXTop+n,fe(e.scrollbarXRail,i);var r={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?r.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:r.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,fe(e.scrollbarYRail,r),fe(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),fe(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(_e("x")):(e.classList.remove(_e("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(_e("y")):(e.classList.remove(_e("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function Me(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function Le(t,e){var i=e[0],n=e[1],r=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],h=t.element,d=null,f=null,p=null;function g(e){e.touches&&e.touches[0]&&(e[r]=e.touches[0].pageY),h[u]=d+p*(e[r]-f),Te(t,c),De(t),e.stopPropagation(),e.preventDefault()}function v(){Ce(t,c),t[l].classList.remove("ps--clicking"),t.event.unbind(t.ownerDocument,"mousemove",g)}function m(e,a){d=h[u],a&&e.touches&&(e[r]=e.touches[0].pageY),f=e[r],p=(t[n]-t[i])/(t[o]-t[s]),a?t.event.bind(t.ownerDocument,"touchmove",g):(t.event.bind(t.ownerDocument,"mousemove",g),t.event.once(t.ownerDocument,"mouseup",v),e.preventDefault()),t[l].classList.add("ps--clicking"),e.stopPropagation()}t.event.bind(t[a],"mousedown",function(t){m(t)}),t.event.bind(t[a],"touchstart",function(t){m(t,!0)})}var Ne={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,De(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,De(t),e.stopPropagation()})},"drag-thumb":function(t){Le(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Le(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(ve(e,":hover")||ve(t.scrollbarX,":focus")||ve(t.scrollbarY,":focus"))){var n,r=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(r){if("IFRAME"===r.tagName)r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(ve(n=r,"input,[contenteditable]")||ve(n,"select,[contenteditable]")||ve(n,"textarea,[contenteditable]")||ve(n,"button,[contenteditable]"))return}var o=0,a=0;switch(i.which){case 37:o=i.metaKey?-t.contentWidth:i.altKey?-t.containerWidth:-30;break;case 38:a=i.metaKey?t.contentHeight:i.altKey?t.containerHeight:30;break;case 39:o=i.metaKey?t.contentWidth:i.altKey?t.containerWidth:30;break;case 40:a=i.metaKey?-t.contentHeight:i.altKey?-t.containerHeight:-30;break;case 32:a=i.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:a=t.containerHeight;break;case 34:a=-t.containerHeight;break;case 36:a=t.contentHeight;break;case 35:a=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==o||t.settings.suppressScrollY&&0!==a||(e.scrollTop-=a,e.scrollLeft+=o,De(t),function(i,n){var r=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===r&&n>0||r>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===o&&i<0||o>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}(o,a)&&i.preventDefault())}})},wheel:function(t){var e=t.element;function i(i){var n=function(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}(i),r=n[0],o=n[1];if(!function(t,i,n){if(!Pe.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains("ps__child--consume"))return!0;var o=de(r);if(n&&o.overflowY.match(/(scroll|auto)/)){var a=r.scrollHeight-r.clientHeight;if(a>0&&(r.scrollTop>0&&n<0||r.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var s=r.scrollWidth-r.clientWidth;if(s>0&&(r.scrollLeft>0&&i<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(i.target,r,o)){var a=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(o?e.scrollTop-=o*t.settings.wheelSpeed:e.scrollTop+=r*t.settings.wheelSpeed,a=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(r?e.scrollLeft+=r*t.settings.wheelSpeed:e.scrollLeft-=o*t.settings.wheelSpeed,a=!0):(e.scrollTop-=o*t.settings.wheelSpeed,e.scrollLeft+=r*t.settings.wheelSpeed),De(t),(a=a||function(i,n){var r=Math.floor(e.scrollTop),o=0===e.scrollTop,a=r+e.offsetHeight===e.scrollHeight,s=0===e.scrollLeft,u=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(n)>Math.abs(i)?o||a:s||u)||!t.settings.wheelPropagation}(r,o))&&!i.ctrlKey&&(i.stopPropagation(),i.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",i):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",i)},touch:function(t){if(Pe.supportsTouch||Pe.supportsIePointer){var e=t.element,i={},n=0,r={},o=null;Pe.supportsTouch?(t.event.bind(e,"touchstart",c),t.event.bind(e,"touchmove",l),t.event.bind(e,"touchend",h)):Pe.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",c),t.event.bind(e,"pointermove",l),t.event.bind(e,"pointerup",h)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",c),t.event.bind(e,"MSPointerMove",l),t.event.bind(e,"MSPointerUp",h)))}function a(i,n){e.scrollTop-=n,e.scrollLeft-=i,De(t)}function s(t){return t.targetTouches?t.targetTouches[0]:t}function u(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function c(t){if(u(t)){var e=s(t);i.pageX=e.pageX,i.pageY=e.pageY,n=(new Date).getTime(),null!==o&&clearInterval(o)}}function l(o){if(u(o)){var c=s(o),l={pageX:c.pageX,pageY:c.pageY},h=l.pageX-i.pageX,d=l.pageY-i.pageY;if(function(t,i,n){if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains("ps__child--consume"))return!0;var o=de(r);if(n&&o.overflowY.match(/(scroll|auto)/)){var a=r.scrollHeight-r.clientHeight;if(a>0&&(r.scrollTop>0&&n<0||r.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var s=r.scrollWidth-r.clientWidth;if(s>0&&(r.scrollLeft>0&&i<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(o.target,h,d))return;a(h,d),i=l;var f=(new Date).getTime(),p=f-n;p>0&&(r.x=h/p,r.y=d/p,n=f),function(i,n){var r=Math.floor(e.scrollTop),o=e.scrollLeft,a=Math.abs(i),s=Math.abs(n);if(s>a){if(n<0&&r===t.contentHeight-t.containerHeight||n>0&&0===r)return 0===window.scrollY&&n>0&&Pe.isChrome}else if(a>s&&(i<0&&o===t.contentWidth-t.containerWidth||i>0&&0===o))return!0;return!0}(h,d)&&o.preventDefault()}}function h(){t.settings.swipeEasing&&(clearInterval(o),o=setInterval(function(){t.isInitialized?clearInterval(o):r.x||r.y?Math.abs(r.x)<.01&&Math.abs(r.y)<.01?clearInterval(o):(a(30*r.x,30*r.y),r.x*=.8,r.y*=.8):clearInterval(o)},10))}}},ze=function(t,e){var i=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var n in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[n]=e[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r,o,a=function(){return t.classList.add("ps--focus")},s=function(){return t.classList.remove("ps--focus")};this.isRtl="rtl"===de(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,r=t.scrollLeft<0,t.scrollLeft=o,r),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new xe,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=pe(we("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=pe(be("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var u=de(this.scrollbarXRail);this.scrollbarXBottom=parseInt(u.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Oe(u.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Oe(u.borderLeftWidth)+Oe(u.borderRightWidth),fe(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Oe(u.marginLeft)+Oe(u.marginRight),fe(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=pe(we("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=pe(be("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var c=de(this.scrollbarYRail);this.scrollbarYRight=parseInt(c.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Oe(c.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=de(t);return Oe(e.width)+Oe(e.paddingLeft)+Oe(e.paddingRight)+Oe(e.borderLeftWidth)+Oe(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Oe(c.borderTopWidth)+Oe(c.borderBottomWidth),fe(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Oe(c.marginTop)+Oe(c.marginBottom),fe(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return Ne[t](i)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return i.onScroll(t)}),De(this)};ze.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,fe(this.scrollbarXRail,{display:"block"}),fe(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Oe(de(this.scrollbarXRail).marginLeft)+Oe(de(this.scrollbarXRail).marginRight),this.railYMarginHeight=Oe(de(this.scrollbarYRail).marginTop)+Oe(de(this.scrollbarYRail).marginBottom),fe(this.scrollbarXRail,{display:"none"}),fe(this.scrollbarYRail,{display:"none"}),De(this),Ie(this,"top",0,!1,!0),Ie(this,"left",0,!1,!0),fe(this.scrollbarXRail,{display:""}),fe(this.scrollbarYRail,{display:""}))},ze.prototype.onScroll=function(t){this.isAlive&&(De(this),Ie(this,"top",this.element.scrollTop-this.lastScrollTop),Ie(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},ze.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),me(this.scrollbarX),me(this.scrollbarY),me(this.scrollbarXRail),me(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},ze.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};var Fe=ze,Ze=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some(function(t,n){return t[0]===e&&(i=n,!0)}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i0},t.prototype.connect_=function(){Be&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),je?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){Be&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;He.some(function(t){return!!~i.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Ye=function(t,e){for(var i=0,n=Object.keys(e);i0},t}(),ii="undefined"!=typeof WeakMap?new WeakMap:new Ze,ni=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Ge.getInstance(),n=new ei(e,i,this);ii.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){ni.prototype[t]=function(){var e;return(e=ii.get(this))[t].apply(e,arguments)}});var ri=void 0!==qe.ResizeObserver?qe.ResizeObserver:ni;function oi(t,e){if(1&t&&(r.TgZ(0,"div",3),r._UZ(1,"div",4),r._UZ(2,"div",5),r._UZ(3,"div",6),r._UZ(4,"div",7),r.qZA()),2&t){var i=r.oxw();r.ekj("ps-at-top",i.states.top)("ps-at-left",i.states.left)("ps-at-right",i.states.right)("ps-at-bottom",i.states.bottom),r.xp6(1),r.ekj("ps-indicator-show",i.indicatorY&&i.interaction),r.xp6(1),r.ekj("ps-indicator-show",i.indicatorX&&i.interaction),r.xp6(1),r.ekj("ps-indicator-show",i.indicatorX&&i.interaction),r.xp6(1),r.ekj("ps-indicator-show",i.indicatorY&&i.interaction)}}var ai=["*"],si=new r.OlP("PERFECT_SCROLLBAR_CONFIG"),ui=function t(e,i,n,r){v(this,t),this.x=e,this.y=i,this.w=n,this.h=r},ci=function t(e,i){v(this,t),this.x=e,this.y=i},li=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"],hi=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v(this,t),this.assign(e)}return y(t,[{key:"assign",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var e in t)this[e]=t[e]}}]),t}(),di=function(){var t=function(){function t(e,i,n,o,a){v(this,t),this.zone=e,this.differs=i,this.elementRef=n,this.platformId=o,this.defaults=a,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new oe.xQ,this.disabled=!1,this.psScrollY=new r.vpe,this.psScrollX=new r.vpe,this.psScrollUp=new r.vpe,this.psScrollDown=new r.vpe,this.psScrollLeft=new r.vpe,this.psScrollRight=new r.vpe,this.psYReachEnd=new r.vpe,this.psYReachStart=new r.vpe,this.psXReachEnd=new r.vpe,this.psXReachStart=new r.vpe}return y(t,[{key:"ngOnInit",value:function(){var t=this;if(!this.disabled&&(0,_.NF)(this.platformId)){var e=new hi(this.defaults);e.assign(this.config),this.zone.runOutsideAngular(function(){t.instance=new Fe(t.elementRef.nativeElement,e)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(function(){t.ro=new ri(function(){t.update()}),t.elementRef.nativeElement.children[0]&&t.ro.observe(t.elementRef.nativeElement.children[0]),t.ro.observe(t.elementRef.nativeElement)}),this.zone.runOutsideAngular(function(){li.forEach(function(e){var i=e.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())});(0,ae.R)(t.elementRef.nativeElement,i).pipe((0,ue.e)(20),(0,ce.R)(t.ngDestroy)).subscribe(function(i){t[e].emit(i)})})})}}},{key:"ngOnDestroy",value:function(){var t=this;(0,_.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(function(){t.instance&&t.instance.destroy()}),this.instance=null)}},{key:"ngDoCheck",value:function(){!this.disabled&&this.configDiff&&(0,_.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}},{key:"ngOnChanges",value:function(t){t.disabled&&!t.disabled.isFirstChange()&&(0,_.NF)(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())}},{key:"ps",value:function(){return this.instance}},{key:"update",value:function(){var t=this;"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){if(!t.disabled&&t.configDiff)try{t.zone.runOutsideAngular(function(){t.instance&&t.instance.update()})}catch(e){}},0))}},{key:"geometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll";return new ui(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])}},{key:"position",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!t&&this.instance?new ci(this.instance.reach.x||0,this.instance.reach.y||0):new ci(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}},{key:"scrollable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any",e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)}},{key:"scrollTo",value:function(t,e,i){this.disabled||(null==e&&null==i?this.animateScrolling("scrollTop",t,i):(null!=t&&this.animateScrolling("scrollLeft",t,i),null!=e&&this.animateScrolling("scrollTop",e,i)))}},{key:"scrollToX",value:function(t,e){this.animateScrolling("scrollLeft",t,e)}},{key:"scrollToY",value:function(t,e){this.animateScrolling("scrollTop",t,e)}},{key:"scrollToTop",value:function(t,e){this.animateScrolling("scrollTop",t||0,e)}},{key:"scrollToLeft",value:function(t,e){this.animateScrolling("scrollLeft",t||0,e)}},{key:"scrollToRight",value:function(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)}},{key:"scrollToBottom",value:function(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)}},{key:"scrollToElement",value:function(t,e,i){var n=this.elementRef.nativeElement.querySelector(t);if(n){var r=n.getBoundingClientRect(),o=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",r.left-o.left+this.elementRef.nativeElement.scrollLeft+(e||0),i),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",r.top-o.top+this.elementRef.nativeElement.scrollTop+(e||0),i)}}},{key:"animateScrolling",value:function(t,e,i){var n=this;if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),i&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){var r=0,o=0,a=performance.now(),s=this.elementRef.nativeElement[t],u=(s-e)/2;window.requestAnimationFrame(function c(l){o+=Math.PI/(i/(l-a)),r=Math.round(e+u+u*Math.cos(o)),n.elementRef.nativeElement[t]===s&&(o>=Math.PI?n.animateScrolling(t,e,0):(n.elementRef.nativeElement[t]=r,s=n.elementRef.nativeElement[t],a=l,n.animation=window.requestAnimationFrame(c)))})}}else this.elementRef.nativeElement[t]=e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.R0b),r.Y36(r.aQg),r.Y36(r.SBq),r.Y36(r.Lbi),r.Y36(si,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[r.TTD]}),t=(0,re.gn)([(0,re.fM)(3,(0,r.tBr)(r.Lbi)),(0,re.fM)(4,(0,r.FiY)()),(0,re.fM)(4,(0,r.tBr)(si))],t)}(),fi=function(){var t=function(){function t(e,i,n){v(this,t),this.zone=e,this.cdRef=i,this.platformId=n,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new oe.xQ,this.stateUpdate=new oe.xQ,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new r.vpe,this.psScrollX=new r.vpe,this.psScrollUp=new r.vpe,this.psScrollDown=new r.vpe,this.psScrollLeft=new r.vpe,this.psScrollRight=new r.vpe,this.psYReachEnd=new r.vpe,this.psYReachStart=new r.vpe,this.psXReachEnd=new r.vpe,this.psXReachStart=new r.vpe}return y(t,[{key:"ngOnInit",value:function(){var t=this;(0,_.NF)(this.platformId)&&(this.stateUpdate.pipe((0,ce.R)(this.ngDestroy),(0,le.x)(function(e,i){return e===i&&!t.stateTimeout})).subscribe(function(e){t.stateTimeout&&"undefined"!=typeof window&&(window.clearTimeout(t.stateTimeout),t.stateTimeout=null),"x"===e||"y"===e?(t.interaction=!1,"x"===e?(t.indicatorX=!1,t.states.left=!1,t.states.right=!1,t.autoPropagation&&t.usePropagationX&&(t.allowPropagationX=!1)):"y"===e&&(t.indicatorY=!1,t.states.top=!1,t.states.bottom=!1,t.autoPropagation&&t.usePropagationY&&(t.allowPropagationY=!1))):("left"===e||"right"===e?(t.states.left=!1,t.states.right=!1,t.states[e]=!0,t.autoPropagation&&t.usePropagationX&&(t.indicatorX=!0)):"top"!==e&&"bottom"!==e||(t.states.top=!1,t.states.bottom=!1,t.states[e]=!0,t.autoPropagation&&t.usePropagationY&&(t.indicatorY=!0)),t.autoPropagation&&"undefined"!=typeof window&&(t.stateTimeout=window.setTimeout(function(){t.indicatorX=!1,t.indicatorY=!1,t.stateTimeout=null,t.interaction&&(t.states.left||t.states.right)&&(t.allowPropagationX=!0),t.interaction&&(t.states.top||t.states.bottom)&&(t.allowPropagationY=!0),t.cdRef.markForCheck()},500))),t.cdRef.markForCheck(),t.cdRef.detectChanges()}),this.zone.runOutsideAngular(function(){if(t.directiveRef){var e=t.directiveRef.elementRef.nativeElement;(0,ae.R)(e,"wheel").pipe((0,ce.R)(t.ngDestroy)).subscribe(function(e){!t.disabled&&t.autoPropagation&&t.checkPropagation(e,e.deltaX,e.deltaY)}),(0,ae.R)(e,"touchmove").pipe((0,ce.R)(t.ngDestroy)).subscribe(function(e){if(!t.disabled&&t.autoPropagation){var i=e.touches[0].clientX,n=e.touches[0].clientY;t.checkPropagation(e,i-t.scrollPositionX,n-t.scrollPositionY),t.scrollPositionX=i,t.scrollPositionY=n}}),(0,se.T)((0,ae.R)(e,"ps-scroll-x").pipe((0,he.h)("x")),(0,ae.R)(e,"ps-scroll-y").pipe((0,he.h)("y")),(0,ae.R)(e,"ps-x-reach-end").pipe((0,he.h)("right")),(0,ae.R)(e,"ps-y-reach-end").pipe((0,he.h)("bottom")),(0,ae.R)(e,"ps-x-reach-start").pipe((0,he.h)("left")),(0,ae.R)(e,"ps-y-reach-start").pipe((0,he.h)("top"))).pipe((0,ce.R)(t.ngDestroy)).subscribe(function(e){t.disabled||!t.autoPropagation&&!t.scrollIndicators||t.stateUpdate.next(e)})}}),window.setTimeout(function(){li.forEach(function(e){t.directiveRef&&(t.directiveRef[e]=t[e])})},0))}},{key:"ngOnDestroy",value:function(){(0,_.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&"undefined"!=typeof window&&window.clearTimeout(this.stateTimeout))}},{key:"ngDoCheck",value:function(){if((0,_.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){var t=this.directiveRef.elementRef.nativeElement;this.usePropagationX=t.classList.contains("ps--active-x"),this.usePropagationY=t.classList.contains("ps--active-y")}}},{key:"checkPropagation",value:function(t,e,i){this.interaction=!0;var n=e<0?-1:1,r=i<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==n)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==r))&&(t.preventDefault(),t.stopPropagation()),e&&(this.scrollDirectionX=n),i&&(this.scrollDirectionY=r),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(r.Lbi))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perfect-scrollbar"]],viewQuery:function(t,e){var i;(1&t&&r.Gf(di,7),2&t)&&(r.iGM(i=r.CRH())&&(e.directiveRef=i.first))},hostVars:4,hostBindings:function(t,e){2&t&&r.ekj("ps-show-limits",e.autoPropagation)("ps-show-active",e.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:ai,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.Hsn(2),r.qZA(),r.YNc(3,oi,5,16,"div",2),r.qZA()),2&t&&(r.ekj("ps",e.usePSClass),r.Q6J("perfectScrollbar",e.config)("disabled",e.disabled),r.xp6(3),r.Q6J("ngIf",e.scrollIndicators))},directives:[di,_.O5],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:-webkit-box;display:flex;flex-direction:column;height:auto;min-width:0;min-height:0;-webkit-box-direction:column;-webkit-box-orient:column}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:-webkit-box;display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-direction:inherit;-webkit-box-flex:1;-webkit-box-orient:inherit;-webkit-box-pack:inherit},perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important;-webkit-box-direction:row!important;-webkit-box-orient:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important;-webkit-box-direction:column!important;-webkit-box-orient:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{position:absolute;opacity:0;-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;-webkit-transition:width .2s linear,opacity .2s linear,background-color .2s linear;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;-webkit-transition:height .2s linear,opacity .2s linear,background-color .2s linear;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x,perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x,perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:-webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to bottom,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:-webkit-gradient(linear,left bottom,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to top,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to right,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:-webkit-gradient(linear,right top,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to left,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:-webkit-gradient(linear,left top,left bottom,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to bottom,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:-webkit-gradient(linear,left bottom,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to top,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:-webkit-gradient(linear,left top,right top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to right,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:-webkit-gradient(linear,right top,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to left,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show{opacity:1}",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ps{overflow:auto!important}}"],encapsulation:2}),t=(0,re.gn)([(0,re.fM)(2,(0,r.tBr)(r.Lbi))],t)}(),pi=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[_.ez],_.ez]}),t}(),gi=i(17),vi=i(11418);function mi(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"div"),r.TgZ(1,"perun-web-apps-notification",2),r.NdJ("closeNotification",function(){var t=r.CHM(i).index;return r.oxw().removeNotification(t)}),r.qZA(),r.qZA()}if(2&t){var n=e.$implicit;r.Q6J("@flyInOut",void 0),r.xp6(1),r.Q6J("data",n)("newNotification",!0)}}var yi=function(t){return{top:t}},bi=function(){var t=function(){function t(e,i){var n=this;v(this,t),this.notificator=e,this.notificationStorageService=i,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(function(t){n.processNotification(t)}),this.getScreenSize()}return y(t,[{key:"getScreenSize",value:function(){this.mobileView=window.innerWidth<=this.minWidth}},{key:"processNotification",value:function(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}},{key:"getNotificatorTop",value:function(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}},{key:"removeNotification",value:function(t){this.notifications.splice(t,1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(u.V6),r.Y36(u.SZ))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&r.NdJ("resize",function(t){return e.getScreenSize(t)},!1,r.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.YNc(1,mi,2,3,"div",1),r.qZA()),2&t&&(r.Q6J("ngStyle",r.VKq(2,yi,e.getNotificatorTop())),r.xp6(1),r.Q6J("ngForOf",e.notifications))},directives:[_.PC,_.sg,vi.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;bottom:0}}"],data:{animation:[gi.Pd]}}),t}(),wi=i(4253);function _i(t,e){if(1&t&&(r.TgZ(0,"div",9),r._UZ(1,"perun-web-apps-notification",10),r.qZA()),2&t){var i=e.$implicit;r.xp6(1),r.Q6J("data",i)("inDialog",!0)}}function Ai(t,e){if(1&t&&(r.TgZ(0,"div",6),r.TgZ(1,"cdk-virtual-scroll-viewport",7),r.YNc(2,_i,2,2,"div",8),r.qZA(),r.qZA()),2&t){var i=r.oxw();r.xp6(2),r.Q6J("cdkVirtualForOf",i.notifications)}}function ki(t,e){1&t&&(r.TgZ(0,"app-alert",11),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}var Ti=function(){var t=function(){function t(e,i){v(this,t),this.dialogRef=e,this.notificationStorageService=i}return y(t,[{key:"ngOnInit",value:function(){this.notifications=this.notificationStorageService.getNotifications()}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onClear",value:function(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(g.so),r.Y36(u.SZ))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.YNc(3,Ai,3,1,"div",1),r.YNc(4,ki,3,3,"app-alert",2),r.TgZ(5,"div",3),r.TgZ(6,"button",4),r.NdJ("click",function(){return e.onClear()}),r._uU(7),r.ALo(8,"translate"),r.qZA(),r.TgZ(9,"button",5),r.NdJ("click",function(){return e.onCancel()}),r._uU(10),r.ALo(11,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),r.xp6(2),r.Q6J("ngIf",0!==e.notifications.length),r.xp6(1),r.Q6J("ngIf",0===e.notifications.length),r.xp6(3),r.hij(" ",r.lcZ(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),r.xp6(3),r.hij(" ",r.lcZ(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},directives:[g.uh,_.O5,g.H8,k.lW,wi.N7,wi.xd,wi.x0,vi.c,T.w],pipes:[p.X$],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),t}(),Ci=i(41050),Si=i(66438);function Ei(t,e){1&t&&(r.TgZ(0,"div",11),r.TgZ(1,"span",12),r._uU(2," ~ \ud83d\uddf2\xa0 "),r.qZA(),r.TgZ(3,"span",13),r._uU(4," DEVEL "),r.qZA(),r.TgZ(5,"span",12),r._uU(6," \xa0\ud83d\uddf2 ~ "),r.qZA(),r.qZA())}var xi=function(t){return{color:t}},Ri=function(){return["/"]},Ii=function(t){return{padding:t}},Oi=function(){return{height:"56px"}},Pi=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c,l){v(this,t),this.storeService=e,this.authService=i,this.authzResolverService=n,this.dialog=r,this.notificator=o,this.translateService=a,this.store=s,this.sanitizer=u,this.notificationStorageService=c,this.utilsService=l,this.logoutEnabled=!0,this.navTextColor=this.store.get("theme","nav_text_color"),this.iconColor=this.store.get("theme","nav_icon_color"),this.logoPadding=this.storeService.get("logo_padding"),this.isDevel=!1}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.isDevel=this.storeService.get("isDevel"),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.utilsService.getAppsConfig().subscribe(function(e){t.profileUrl=e.brands[0].newApps.profile?e.brands[0].newApps.profile:null})}},{key:"showNotificationHistory",value:function(){this.notificationStorageService.newNotificationsCount=0;var t=(0,c.kZ)();t.width="520px",this.dialog.open(Ti,t)}},{key:"getNewNotificationsCount",value:function(){return this.notificationStorageService.newNotificationsCount}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(u.d6),r.Y36(u.e8),r.Y36(s.Ct),r.Y36(g.uw),r.Y36(u.V6),r.Y36(p.sK),r.Y36(u.d6),r.Y36(n.H7),r.Y36(u.SZ),r.Y36(s.FW))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-perun-nav-menu"]],inputs:{sideNav:"sideNav",principal:"principal"},decls:14,vars:33,consts:[["id","nav-menu-icons",3,"ngStyle"],["mat-icon-button","",1,"mr-2","mt-auto","mb-auto",3,"click"],[3,"ngStyle"],["queryParamsHandling","merge",3,"routerLink","ngStyle"],[1,"logo-container",3,"innerHTML","ngStyle"],["logoContainer",""],["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,"url","label","user","logoutEnabled","iconColor","textColor"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"button",1),r.NdJ("click",function(){return e.sideNav.toggle()}),r.TgZ(2,"mat-icon",2),r._uU(3," menu "),r.qZA(),r.qZA(),r.TgZ(4,"a",3),r._UZ(5,"div",4,5),r.qZA(),r.qZA(),r.YNc(7,Ei,7,0,"div",6),r.TgZ(8,"div",7),r.TgZ(9,"button",8),r.NdJ("click",function(){return e.showNotificationHistory()}),r.ALo(10,"translate"),r.TgZ(11,"mat-icon",9),r._uU(12),r.qZA(),r.qZA(),r._UZ(13,"perun-web-apps-header-menu",10),r.qZA()),2&t&&(r.Q6J("ngStyle",r.VKq(21,xi,e.navTextColor)),r.xp6(2),r.Q6J("ngStyle",r.VKq(23,xi,e.iconColor)),r.xp6(2),r.Q6J("routerLink",r.DdM(25,Ri))("ngStyle",r.VKq(26,Ii,e.logoPadding)),r.xp6(1),r.Q6J("innerHTML",e.logo,r.oJD)("ngStyle",r.DdM(28,Oi)),r.xp6(2),r.Q6J("ngIf",e.isDevel),r.xp6(1),r.Q6J("ngStyle",r.VKq(29,xi,e.navTextColor)),r.xp6(1),r.Q6J("matTooltip",r.lcZ(10,19,"NAV.NOTIFICATIONS_TOOLTIP")),r.xp6(2),r.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),r.Q6J("ngStyle",r.VKq(31,xi,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),r.xp6(1),r.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," "),r.xp6(1),r.Q6J("url",e.profileUrl)("label",e.profileLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.navTextColor))},directives:[_.PC,k.lW,A.Hw,o.yS,_.O5,S.gM,Ci.k,Si.X],pipes:[p.X$],styles:["#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{margin-left:8px;display:flex;flex-direction:row;width:200px}.logo-container[_ngcontent-%COMP%] [_ngcontent-%COMP%]::slotted(svg){height:56px}#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}"]}),t}(),Di=i(24081),Mi={provide:Rt.TP,useExisting:(0,r.Gpc)(function(){return u.yC}),multi:!0};function Li(t){return new xt(t,"./assets/i18n/",".json")}function Ni(t){var e={basePath:t.get("api_url")};return new s.VK(e)}var zi=function(t){return function(){return t.initialize()}},Fi={suppressScrollX:!0},Zi=function(){var t=function t(e,i){v(this,t),this.customIconService=e,this.translate=i,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()};return t.\u0275fac=function(e){return new(e||t)(r.LFG(u.EB),r.LFG(p.sK))},t.\u0275mod=r.oAB({type:t,bootstrap:[St.y]}),t.\u0275inj=r.cJS({providers:[ie,{provide:r.ip1,useFactory:zi,multi:!0,deps:[ie]},{provide:s.VK,useFactory:Ni,deps:[u.d6]},{provide:o.wN,useClass:Qt},u.EB,{provide:Wt,useClass:u.sM},u.yC,Mi,{provide:si,useValue:Fi}],imports:[[It.PW,n.b2,Rt.JF,Et.m,Ot,Ct,A.Ps,ne,p.aw.forRoot({loader:{provide:p.Zw,useFactory:Li,deps:[Rt.eN]}}),s.au,pi,lt.ez,ht]]}),t}();r.B6R(St.y,[_.O5,A.Hw,bi,Pi,_.PC,m.TM,m.JX,fi,Di.V,m.Rh,o.lC,ft.$,kt],[]),(0,r.G48)(),n.q6().bootstrapModule(Zi).catch(function(t){return console.error(t)})},7423:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(61511),r=i(31572),o=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.ez]]}),t}()},13857:function(t,e,i){"use strict";i.d(e,{Rc:function(){return r},pI:function(){return o},Ng:function(){return a}});var n=i(31572),r="GUI_CONFIG.PREF_PAGE_SIZE",o="GUI_CONFIG.PREF_PAGE_SIZE.",a=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"getString",value:function(t){return localStorage.getItem(t)}},{key:"getNumber",value:function(t){return parseInt(localStorage.getItem(t),10)}},{key:"setNumber",value:function(t,e){localStorage.setItem(t,e.toString())}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},60611:function(t,e,i){"use strict";i.d(e,{dB:function(){return o},CP:function(){return a},tw:function(){return s},nT:function(){return u},YF:function(){return c},gc:function(){return l},v1:function(){return h},AA:function(){return d},VR:function(){return f},uM:function(){return p},xx:function(){return g},H2:function(){return m},xt:function(){return b},dI:function(){return w},j1:function(){return _},Wv:function(){return A},qy:function(){return k},BV:function(){return T},qV:function(){return C},tY:function(){return S},Af:function(){return E},O7:function(){return x},gB:function(){return R},Hi:function(){return I},Jf:function(){return O},W1:function(){return P},rF:function(){return D},Aj:function(){return M},Ad:function(){return L},kZ:function(){return N},cL:function(){return z},RS:function(){return F},HC:function(){return Z},KE:function(){return B},Sb:function(){return q},_7:function(){return U},bf:function(){return H},rc:function(){return j},Cf:function(){return G},eq:function(){return Y},NG:function(){return V},O9:function(){return K},d7:function(){return J},vq:function(){return Q},NL:function(){return W},kO:function(){return X},aL:function(){return $},DR:function(){return tt},uC:function(){return et},JO:function(){return it},oK:function(){return nt},Iz:function(){return rt},It:function(){return ot},z6:function(){return at},iQ:function(){return st},e5:function(){return ut},Bf:function(){return ct},zp:function(){return lt},US:function(){return ht},gG:function(){return dt},$V:function(){return ft},S7:function(){return pt},zW:function(){return gt},CE:function(){return vt},Is:function(){return mt},M8:function(){return yt},g:function(){return bt},_c:function(){return wt}});var n=i(13857),r=i(31572),o=function(){var t=function(){function t(e){v(this,t),this.guiConfigService=e}return y(t,[{key:"getTablePageSize",value:function(t){var e=this.guiConfigService.getNumber(n.pI+t);if(!isNaN(e))return e;var i=this.guiConfigService.getNumber(n.Rc);return isNaN(i)?10:i}},{key:"setTablePageSize",value:function(t,e){this.guiConfigService.setNumber(n.pI+t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.Ng))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),a="0",s="1",u="2",c="3",l="4",h="5",d="6",f="7",p="8",g="9",m="10",b="11",w="12",_="13",A="14",k="15",T="16",C="17",S="18",E="19",x="20",R="21",I="22",O="23",P="24",D="25",M="26",L="27",N="28",z="29",F="30",Z="31",B="32",q="33",U="34",H="35",j="36",G="37",Y="42",V="43",K="44",J="45",Q="46",W="47",X="48",$="49",tt="50",et="51",it="52",nt="53",rt="54",ot="55",at="56",st="57",ut="58",ct="59",lt="62",ht="63",dt="64",ft="65",pt="66",gt="69",vt="71",mt="72",yt="75",bt="76",wt="77"},17:function(t,e,i){"use strict";i.d(e,{Ji:function(){return s},Pd:function(){return o},BQ:function(){return r},Ly:function(){return a},GH:function(){return l},Ls:function(){return h},SG:function(){return c},es:function(){return u}});var n=i(10709),r=(0,n.X$)("openClose",[(0,n.SB)("open",(0,n.oB)({overflow:"hidden"})),(0,n.SB)("closed",(0,n.oB)({height:"0px",overflow:"hidden"})),(0,n.eR)("open <=> closed",[(0,n.jt)(".3s ease-in")])]),o=(0,n.X$)("flyInOut",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)(".25s")]),(0,n.eR)(":leave",[(0,n.jt)(".5s",(0,n.oB)({transform:"translateX(100%)"}))])]),a=(0,n.X$)("rollInOut",[(0,n.eR)(":enter",[(0,n.oB)({height:"0px"}),(0,n.jt)(".25s")]),(0,n.eR)(":leave",[(0,n.jt)(".25s",(0,n.oB)({height:"0px"}))])]),s=(0,n.X$)("routeAnimations",[(0,n.eR)("* => *",[(0,n.oB)({position:"relative"}),(0,n.IO)(":enter",[(0,n.oB)({width:"100%",opacity:0})],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({position:"absolute",width:"100%",opacity:1}),(0,n.jt)("0.15s",(0,n.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,n.IO)(":enter",[(0,n.oB)({position:"absolute",width:"100%",opacity:0}),(0,n.jt)("0.15s",(0,n.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),u=(0,n.X$)("tagsOpenClose",[(0,n.SB)("open",(0,n.oB)({})),(0,n.SB)("closed",(0,n.oB)({width:"0px",height:"0px"})),(0,n.eR)("open <=> closed",[(0,n.jt)(".3s ease-in")])]),c=(0,n.X$)("switchAnimations",[(0,n.eR)("true => false",[(0,n.IO)(":enter, :leave",(0,n.oB)({})),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(-100%)"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)",position:"absolute"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,n.eR)("false => true",[(0,n.IO)(":enter, :leave",(0,n.oB)({})),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)",position:"absolute"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),l=(0,n.X$)("slideInOutLeft",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(-100%)",position:"relative"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(0%)"}))]),(0,n.eR)(":leave",[(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(-100%)"}))])]),h=(0,n.X$)("slideInOutRight",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(100%)",position:"fixed"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(0%)"}))]),(0,n.eR)(":leave",[(0,n.oB)({transform:"translateX(-100%)",position:"relative"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(100%)"}))])])},41939:function(t,e,i){"use strict";i.d(e,{Mw:function(){return B.M},Sx:function(){return it.S},Nj:function(){return tt},ez:function(){return Z},t$:function(){return et}});var n=i(61511),r=i(29236),a=i(67033),u=i(48160),c=i(57629),l=i(58623),h=i(73005),d=i(67806),f=i(22727),p=i(43691),g=i(8055),m=i(15980),b=i(36922),w=i(66283),_=i(16073),A=i(80340),k=i(10033),T=i(88975),C=i(71522),S=i(22280),E=i(81391),x=i(91010),R=i(15812),I=i(54810),O=i(4786),P=i(30146),D=i(4253),M=i(84608),L=i(84140),N=i(31572),z=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"format",value:function(t,e){return"input"===e?"".concat(t.getDate().toString(),".").concat((t.getMonth()+1).toString(),".").concat(t.getFullYear()):t.toDateString()}}]),i}(C.LF);return e.\u0275fac=function(i){return(t||(t=N.n5z(e)))(i||e)},e.\u0275prov=N.Yz7({token:e,factory:e.\u0275fac}),e}(),F={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"}}},Z=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=N.oAB({type:t}),t.\u0275inj=N.cJS({providers:[{provide:C._A,useClass:z},{provide:C.sG,useValue:F}],imports:[[n.ez,r.p9,a.p0,_.u5,k.Hi,T._t,u.aw,c.Bz,l.JX,h.TU,d.Cq,f.r,p.Ps,g.Tx,m.ot,b.AV,w.lN,_.UX,A.c,C.si,S.d4,E.Iq,x.dp,R.FA,I.Fk,C.Ng,O.LD,P.Co,D.Cl,M.Is,L.Je]]}),t}();i(41186);var B=i(51556),q=(i(76021),i(84584),i(22230),i(33596),i(88884),i(11418),i(23888),i(33642)),U=i(88426),H=i(39571),j=i(83787);function G(t,e){1&t&&(N.TgZ(0,"app-alert"),N._uU(1),N.ALo(2,"translate"),N.ALo(3,"customTranslate"),N.qZA()),2&t&&(N.xp6(1),N.Oqu(N.lcZ(2,1,N.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function Y(t,e){1&t&&(N.TgZ(0,"th",15),N._uU(1),N.ALo(2,"translate"),N.ALo(3,"customTranslate"),N.qZA()),2&t&&(N.xp6(1),N.Oqu(N.lcZ(2,1,N.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))))}function V(t,e){if(1&t&&(N.TgZ(0,"td",16),N._uU(1),N.qZA()),2&t){var i=e.$implicit;N.xp6(1),N.Oqu(i.friendlyNameParameter)}}function K(t,e){1&t&&(N.TgZ(0,"th",15),N._uU(1),N.ALo(2,"translate"),N.ALo(3,"customTranslate"),N.qZA()),2&t&&(N.xp6(1),N.Oqu(N.lcZ(2,1,N.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))))}function J(t,e){if(1&t&&(N.TgZ(0,"td",17),N._uU(1),N.qZA()),2&t){var i=e.$implicit;N.xp6(1),N.Oqu(i.value)}}function Q(t,e){1&t&&N._UZ(0,"th",15)}function W(t,e){if(1&t){var i=N.EpF();N.TgZ(0,"td",18),N.TgZ(1,"button",19),N.NdJ("click",function(){var t=N.CHM(i).$implicit;return N.oxw().changePassword(t.friendlyNameParameter)}),N._uU(2),N.ALo(3,"translate"),N.ALo(4,"customTranslate"),N.qZA(),N.qZA()}if(2&t){var n=e.$implicit,r=N.oxw();N.xp6(1),N.Q6J("disabled",!r.logins.includes(n)),N.xp6(1),N.Oqu(N.lcZ(3,2,N.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD")))}}function X(t,e){1&t&&N._UZ(0,"tr",20)}function $(t,e){1&t&&N._UZ(0,"tr",21)}var tt=function(){var t=function(){function t(e,i){v(this,t),this.attributesManagerService=e,this.store=i,this.nameSpaces=[],this.logins=[],this.displayedColumns=["namespace","value","change"]}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(function(e){var i=t.nameSpaces.map(function(t){var e=t.split(":");return e[e.length-1]});t.logins=e.filter(function(t){return i.includes(t.friendlyNameParameter)}),t.dataSource=new a.by(e)})}},{key:"changePassword",value:function(t){var e=this.store.get("pwd_reset_base_url");location.href="".concat(e,"?login-namespace=").concat(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(N.Y36(q.H8),N.Y36(U.d6))},t.\u0275cmp=N.Xpm({type:t,selectors:[["perun-web-apps-password-reset"]],decls:20,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","change"],["mat-cell","",4,"matCellDef"],["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"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(t,e){1&t&&(N.TgZ(0,"h1",0),N._uU(1),N.ALo(2,"translate"),N.ALo(3,"customTranslate"),N.qZA(),N.YNc(4,G,4,5,"app-alert",1),N.TgZ(5,"div",2),N.TgZ(6,"div",3),N.TgZ(7,"div",4),N.TgZ(8,"table",5),N.ynx(9,6),N.YNc(10,Y,4,5,"th",7),N.YNc(11,V,2,1,"td",8),N.BQk(),N.ynx(12,9),N.YNc(13,K,4,5,"th",7),N.YNc(14,J,2,1,"td",10),N.BQk(),N.ynx(15,11),N.YNc(16,Q,1,0,"th",7),N.YNc(17,W,5,6,"td",12),N.BQk(),N.YNc(18,X,1,0,"tr",13),N.YNc(19,$,1,0,"tr",14),N.qZA(),N.qZA(),N.qZA(),N.qZA()),2&t&&(N.xp6(1),N.Oqu(N.lcZ(2,5,N.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE"))),N.xp6(3),N.Q6J("ngIf",!e.logins.length),N.xp6(4),N.Q6J("dataSource",e.dataSource),N.xp6(10),N.Q6J("matHeaderRowDef",e.displayedColumns),N.xp6(1),N.Q6J("matRowDefColumns",e.displayedColumns))},directives:[n.O5,a.BZ,l.YE,a.w1,a.fO,a.Dz,a.as,a.nj,H.w,a.ge,a.ev,m.lW,a.XQ,a.Gk],pipes:[u.X$,j.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}"]}),t}(),et=function(){var t=function(){function t(e,i,n,r){v(this,t),this.router=e,this.route=i,this.location=n,this.forceRoute=r}return y(t,[{key:"ngOnInit",value:function(){var t=this;"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(function(e){t.router.navigate([e.redirectTo])}):this.location.back()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(N.Y36(c.F0),N.Y36(c.gz),N.Y36(n.Ye),N.Y36(U.xw))},t.\u0275cmp=N.Xpm({type:t,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t}();i(78364),i(11441),i(16306),i(43005);var it=i(30725);i(66438)},30725:function(t,e,i){"use strict";i.d(e,{S:function(){return a},Y:function(){return s}});var n=i(31572),r=(i(33642),i(48160)),o=i(44973),a={},s=function(){var t=function t(e){var i=this;v(this,t),this.translate=e,this.item=null,this.itemSelected=new n.vpe,this.nameFunction=function(t){return t===a?i.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):t.shortname},this.secondaryFunction=function(t){return t===a?"":t.id<0?i.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+t.id},this.searchFunction=function(t){return t===a?"":t.shortname+t.id}};return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.sK))},t.\u0275cmp=n.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(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.itemSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.items)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.secondaryFunction)("entity",e.item)("disableAutoSelect",!0)("selectPlaceholder",n.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",n.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[o.i],pipes:[r.X$],styles:[""]}),t}()},76021:function(t,e,i){"use strict";i.d(e,{u:function(){return h}});var n=i(31572),r=i(84140),o=i(61511),a=i(29236),s=i(16073),u=i(66283);function c(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",2),n.NdJ("change",function(){return n.CHM(i),n.oxw()._sendEventToParent()})("ngModelChange",function(t){return n.CHM(i),n.oxw().attribute.value=t}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("ngModel",r.attribute.value)}}function l(t,e){if(1&t&&(n.TgZ(0,"mat-label"),n._uU(1),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Oqu(i.attribute.value)}}var h=function(){var t=function(){function t(){v(this,t),this.readonly=!1,this.sendEventToParent=new n.vpe}return y(t,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=(0,r.Hm)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,c,1,1,"mat-checkbox",0),n.YNc(2,l,2,1,"mat-label",1),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",!e.readonly),n.xp6(1),n.Q6J("ngIf",e.readonly))},directives:[o.O5,a.oG,s.JJ,s.On,u.hX],styles:[""]}),t}()},84584:function(t,e,i){"use strict";i.d(e,{H:function(){return S}});var n=i(31572),r=i(75842),o=i(88975),a=i(61189),s=i(84140),u=i(84608),c=i(10033),l=i(61511),h=i(43691),d=i(36922),f=i(15980),p=i(66283),g=i(80340);function m(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",9),n.NdJ("mousedown",function(){return n.CHM(i),n.oxw(2).dragDisabled=!1}),n._uU(1,"drag_indicator"),n.qZA()}}function b(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",10),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw().edit(t)}),n._uU(1,"edit"),n.qZA()}}function w(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",11),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw().remove(t)}),n._uU(1,"cancel"),n.qZA()}}function _(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-chip",4),n.NdJ("removed",function(){var t=n.CHM(i).$implicit,e=n.oxw();return e.remove(t),e._sendEventToParent()}),n.YNc(1,m,2,0,"mat-icon",5),n.TgZ(2,"div",6),n.NdJ("click",function(){var t=n.CHM(i).$implicit,e=n.oxw();return e.readonly&&void 0!==e.attribute.displayName&&e.showValue(t,e.attribute.displayName)}),n._uU(3),n.qZA(),n.YNc(4,b,2,0,"mat-icon",7),n.YNc(5,w,2,0,"mat-icon",8),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.Q6J("selectable",o.selectable)("cdkDragData",r)("removable",o.removable),n.xp6(1),n.Q6J("ngIf",o.removable),n.xp6(1),n.ekj("cursor-pointer",o.readonly&&void 0!==o.attribute.displayName),n.xp6(1),n.Oqu(r),n.xp6(1),n.Q6J("ngIf",o.removable),n.xp6(1),n.Q6J("ngIf",o.removable)}}function A(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function k(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function T(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"div",12),n.TgZ(1,"span",13),n.TgZ(2,"button",14),n.NdJ("click",function(){return n.CHM(i),n.oxw().onShowChange()}),n.YNc(3,A,2,0,"mat-icon",15),n.YNc(4,k,2,0,"mat-icon",15),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("matTooltip",r.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.xp6(2),n.Q6J("ngIf",!r.showMore),n.xp6(1),n.Q6J("ngIf",r.showMore)}}function C(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-form-field",12),n.TgZ(1,"input",16),n.NdJ("matChipInputTokenEnd",function(t){return n.CHM(i),n.oxw().add(t)})("change",function(){return n.CHM(i),n.oxw()._sendEventToParent()}),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(),o=n.MAs(2);n.xp6(1),n.Q6J("matChipInputFor",o)("matChipInputSeparatorKeyCodes",r.separatorKeysCodes)("matChipInputAddOnBlur",r.addOnBlur)}}var S=function(){var t=function(){function t(e){v(this,t),this.dialog=e,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[r.K5,r.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new n.vpe,this.readonly=!1}return y(t,[{key:"ngOnInit",value:function(){this.removable=!(0,s.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,s.Hm)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"add",value:function(t){var e=t.input,i=t.value;(i||"").trim()&&(this.attribute.value.push(i.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),e&&(e.value=""),this.sendEventToParent.emit()}},{key:"remove",value:function(t){var e=this,i=(0,s.kZ)();i.width="400px",i.data={name:t},this.dialog.open(a.Wr,i).afterClosed().subscribe(function(i){if(i){var n=e.attribute.value.indexOf(t);e.attribute.value.splice(n,1),e.values=Object.values(e.attribute.value),e.sendEventToParent.emit()}})}},{key:"drop",value:function(t){this.dragDisabled=!0,(0,o.bA)(this.attribute.value,t.previousIndex,t.currentIndex),this.values=Object.values(this.attribute.value)}},{key:"edit",value:function(t){var e=this,i=this.attribute.value.indexOf(t),n=(0,s.kZ)();n.width="600px",n.data={attribute:this.attribute,index:i},this.dialog.open(a.r2,n).afterClosed().subscribe(function(t){t&&(e.values=Object.values(e.attribute.value),e.sendEventToParent.emit())})}},{key:"showValue",value:function(t,e){var i=(0,s.kZ)();i.width="350px",i.data={value:t,title:e},this.dialog.open(a.mk,i)}},{key:"setItemsShown",value:function(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}},{key:"onShowChange",value:function(){this.showMore=!this.showMore,this.setItemsShown()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.uw))},t.\u0275cmp=n.Xpm({type:t,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",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-chip-list",0,1),n.NdJ("cdkDropListDropped",function(t){return e.drop(t),e._sendEventToParent()}),n.YNc(3,_,6,9,"mat-chip",2),n.YNc(4,T,5,4,"div",3),n.YNc(5,C,2,3,"mat-form-field",3),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.Q6J("cdkDropListDisabled",e.dragDisabled),n.xp6(2),n.Q6J("ngForOf",e.values.slice(0,e.itemsShown)),n.xp6(1),n.Q6J("ngIf",e.values.length>e.defaultItemsShown),n.xp6(1),n.Q6J("ngIf",!e.readonly))},directives:[c.qn,o.Wj,l.sg,l.O5,c.HS,o.Zt,h.Hw,d.gM,f.lW,p.KE,g.Nt,c.oH],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t}()},22230:function(t,e,i){"use strict";i.d(e,{$:function(){return k}});var n=i(61189),o=i(84140),a=i(31572),s=i(84608),u=i(16073),c=i(61511),l=i(36922),h=i(66283),d=i(80340),f=i(15980),p=i(43691);function g(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"button",15),a.NdJ("click",function(){a.CHM(i);var t=a.oxw().index;return a.oxw().removeValue(t)}),a.TgZ(1,"mat-icon"),a._uU(2," indeterminate_check_box "),a.qZA(),a.qZA()}}function m(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",9),a.TgZ(1,"mat-form-field",10),a._UZ(2,"label",11),a.TgZ(3,"input",12),a.NdJ("click",function(){var t=a.CHM(i).index,e=a.oxw();return e.readonly&&e.attribute.displayName&&e.showValue(e.keys[t],e.attribute.displayName)})("ngModelChange",function(t){var e=a.CHM(i).index;return a.oxw().keys[e]=t}),a.qZA(),a.qZA(),a.TgZ(4,"mat-form-field",10),a._UZ(5,"label",11),a.TgZ(6,"input",13),a.NdJ("click",function(){var t=a.CHM(i).$implicit,e=a.oxw();return e.readonly&&void 0!==e.attribute.displayName&&e.showValue(t,e.attribute.displayName)})("ngModelChange",function(t){var e=a.CHM(i).index;return a.oxw().values[e]=t}),a.qZA(),a.qZA(),a.YNc(7,g,3,0,"button",14),a.qZA()}if(2&t){var n=e.index,r=a.oxw();a.xp6(1),a.s9C("appearance",r.readonly?"none":"standard"),a.xp6(1),a.hYB("for","",r.attribute.id,"-key-",n,""),a.xp6(1),a.ekj("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),a.hYB("id","",r.attribute.id,"-key-",n,""),a.MGl("name","key-",n,""),a.Q6J("ngModel",r.keys[n])("readonly",r.readonly),a.xp6(1),a.s9C("appearance",r.readonly?"none":"standard"),a.xp6(1),a.hYB("for","",r.attribute.id,"-value-",n,""),a.xp6(1),a.ekj("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),a.MGl("name","value-",n,""),a.hYB("id","",r.attribute.id,"-value-",n,""),a.Q6J("readonly",r.readonly)("ngModel",r.values[n]),a.xp6(1),a.Q6J("ngIf",!r.readonly)}}function b(t,e){1&t&&(a.TgZ(0,"mat-icon"),a._uU(1,"more_horiz"),a.qZA())}function w(t,e){1&t&&(a.TgZ(0,"mat-icon"),a._uU(1,"keyboard_arrow_up"),a.qZA())}function _(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"button",16),a.NdJ("click",function(){return a.CHM(i),a.oxw().onShowChange()}),a.YNc(1,b,2,0,"mat-icon",17),a.YNc(2,w,2,0,"mat-icon",17),a.qZA()}if(2&t){var n=a.oxw();a.xp6(1),a.Q6J("ngIf",!n.showMore),a.xp6(1),a.Q6J("ngIf",n.showMore)}}function A(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"button",18),a.NdJ("click",function(){return a.CHM(i),a.oxw().addValue()}),a.TgZ(1,"mat-icon"),a._uU(2," add_box "),a.qZA(),a.qZA()}}var k=function(){var t=function(){function t(e){v(this,t),this.dialog=e,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}return y(t,[{key:"ngOnInit",value:function(){if(void 0!==this.attribute.value)for(var t=this.attribute.value,e=0,i=Object.entries(t);ethis.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}},{key:"removeValue",value:function(t){this.keys.splice(t,1),this.values.splice(t,1)}},{key:"updateAttribute",value:function(){for(var t={},e=0;ee.defaultItemsShown),a.xp6(1),a.Q6J("ngIf",!e.readonly))},directives:[u._Y,u.JL,u.F,c.sg,l.gM,c.O5,h.KE,d.Nt,u.Fj,u.Q7,u.JJ,u.On,f.lW,p.Hw],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}"]}),t}()},33596:function(t,e,i){"use strict";i.d(e,{_:function(){return l}});var n=i(31572),r=i(84140),o=i(61189),a=i(84608),s=i(66283),u=i(80340),c=i(16073),l=function(){var t=function(){function t(e){v(this,t),this.dialog=e,this.readonly=!1,this.sendEventToParent=new n.vpe}return y(t,[{key:"ngOnInit",value:function(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,r.Hm)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(t,e){var i=(0,r.kZ)();i.width="350px",i.data={value:t,title:e},this.dialog.open(o.mk,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.uw))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"input",1),n.NdJ("click",function(){return e.readonly&&void 0!==e.value&&e.showValue(e.value,e.attribute.displayName)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),n.qZA(),n.qZA()),2&t&&(n.s9C("appearance",e.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",e.readonly&&void 0!==e.value),n.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[s.KE,u.Nt,c.Fj,c.JJ,c.On],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t}()},51556:function(t,e,i){"use strict";i.d(e,{M:function(){return T}});var n=i(31572),r=i(22230),o=i(61511),a=i(76021),s=i(84584),u=i(33596),c=i(84140),l=i(61189),h=i(84608),d=i(66283),f=i(80340),p=i(16073),g=function(){var t=function(){function t(e){v(this,t),this.dialog=e,this.readonly=!1,this.sendEventToParent=new n.vpe}return y(t,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=(0,c.Hm)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(t){var e=(0,c.kZ)();e.width="350px",e.data={value:t.value,title:t.displayName},this.dialog.open(l.mk,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(h.uw))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"input",1),n.NdJ("click",function(){return e.readonly&&void 0!==e.attribute.value&&e.showValue(e.attribute)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),n.qZA(),n.qZA()),2&t&&(n.s9C("appearance",e.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",e.readonly&&void 0!==e.attribute.value),n.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[d.KE,f.Nt,p.wV,p.Fj,p.JJ,p.On],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),m=["map"];function b(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-boolean",3),n.NdJ("sendEventToParent",function(){return n.CHM(i),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("attribute",r.attribute)("readonly",r.readonly)}}function w(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-list",3),n.NdJ("sendEventToParent",function(){return n.CHM(i),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("attribute",r.attribute)("readonly",r.readonly)}}function _(t,e){if(1&t&&n._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&t){var i=n.oxw();n.Q6J("attribute",i.attribute)("readonly",i.readonly)}}function A(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-string",3),n.NdJ("sendEventToParent",function(){return n.CHM(i),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("attribute",r.attribute)("readonly",r.readonly)}}function k(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-integer",3),n.NdJ("sendEventToParent",function(){return n.CHM(i),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("attribute",r.attribute)("readonly",r.readonly)}}var T=function(){var t=function(){function t(){v(this,t),this.readonly=!1,this.sendEventToParent2=new n.vpe}return y(t,[{key:"updateMapAttribute",value:function(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}},{key:"_sendEventToParent2",value:function(){this.sendEventToParent2.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(m,5),2&t)&&(n.iGM(i=n.CRH())&&(e.mapComponent=i.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(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,b,1,2,"perun-web-apps-attribute-value-boolean",0),n.YNc(2,w,1,2,"perun-web-apps-attribute-value-list",0),n.TgZ(3,"div",1),n.NdJ("click",function(){return e._sendEventToParent2()}),n.YNc(4,_,2,2,"perun-web-apps-attribute-value-map",2),n.qZA(),n.YNc(5,A,1,2,"perun-web-apps-attribute-value-string",0),n.YNc(6,k,1,2,"perun-web-apps-attribute-value-integer",0),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf","java.lang.Boolean"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.util.ArrayList"===e.attribute.type),n.xp6(2),n.Q6J("ngIf","java.util.LinkedHashMap"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.String"===e.attribute.type||"java.lang.LargeString"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.Integer"===e.attribute.type))},directives:[o.O5,a.u,s.H,r.$,u._,g],styles:[""]}),t}()},41186:function(t,e,i){"use strict";i.d(e,{p:function(){return M}});var n=i(31572),r=i(58623),o=i(67033),a=i(4230),s=i(51556),u=i(84140),c=i(88426),l=i(82819),h=i(61511),d=i(29236),p=i(36922),g=i(39571),m=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return"virt"===t.namespace.split(":")[4]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"isVirtualAttribute",type:t,pure:!0}),t}(),b=i(48160);function w(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"th",15),n.TgZ(1,"mat-checkbox",16),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw();return t?e.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())("aria-label",r.checkboxLabel())}}function _(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",17),n.TgZ(1,"mat-checkbox",18),n.NdJ("click",function(t){return t.stopPropagation()})("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.selection.toggle(e):null}),n.ALo(2,"isVirtualAttribute"),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("checked",o.selection.isSelected(r))("disabled",n.lcZ(2,3,r)||!r.writable)("aria-label",o.checkboxLabel(r))}}function A(t,e){1&t&&(n.TgZ(0,"th",19),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")))}function k(t,e){if(1&t&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function T(t,e){1&t&&(n.TgZ(0,"th",19),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")))}function C(t,e){if(1&t&&(n.TgZ(0,"td",20),n.TgZ(1,"div",21),n._uU(2),n.qZA(),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.s9C("matTooltip",r.getAttributeFullName(i)),n.xp6(1),n.hij(" ",i.displayName," ")}}function S(t,e){1&t&&(n.TgZ(0,"th",15),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")))}function E(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",20),n.TgZ(1,"perun-web-apps-attribute-value",22),n.NdJ("sendEventToParent2",function(){var t=n.CHM(i).$implicit;return n.oxw().onValueChange(t)}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("attribute",r)("readonly",o.readonly||!r.writable)}}function x(t,e){1&t&&(n.TgZ(0,"th",19),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")))}function R(t,e){if(1&t&&(n.TgZ(0,"td",20),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.description)}}function I(t,e){1&t&&n._UZ(0,"tr",23)}function O(t,e){if(1&t&&(n._UZ(0,"tr",24),n.ALo(1,"translate")),2&t){var i=e.$implicit,r=n.oxw();n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),n.Q6J("matTooltipPosition","before")("matTooltipDisabled",i.writable||r.readonly)}}function P(t,e){1&t&&(n.TgZ(0,"app-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function D(t,e){1&t&&(n.TgZ(0,"app-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY"),"\n"))}var M=function(){var t=function(){function t(e,i){v(this,t),this.authResolver=e,this.tableCheckbox=i,this.attributes=[],this.selection=new a.Ov(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.pageSize=10,this.page=new n.vpe,this.readonly=!1,this.hiddenColumns=[],this.pageSizeOptions=u.f7}return y(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new o.by((0,u.MX)(this.attributes)),this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"displayName":return t.displayName;case"description":return t.description;case"value":return JSON.stringify(t.value);default:return""}}},{key:"exportData",value:function(t){(0,u.O6)((0,u.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.displayedColumns=this.displayedColumns.filter(function(e){return!t.hiddenColumns.includes(e)}),this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return(0,u.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,u.pR)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"updateMapAttributes",value:function(){var t,e=f(this.items.toArray());try{for(e.s();!(t=e.n()).done;){var i=t.value;"java.util.LinkedHashMap"===i.attribute.type&&i.updateMapAttribute()}}catch(n){e.e(n)}finally{e.f()}}},{key:"onValueChange",value:function(t){this.canBeSelected(t)&&this.selection.select(t)}},{key:"canBeSelected",value:function(t){return!(0,u.Hm)(t)&&t.writable}},{key:"getAttributeFullName",value:function(t){return"".concat(t.namespace,":").concat(t.friendlyName)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.x4),n.Y36(c.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(u.l9,7),n.Gf(s.M,5)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first),n.iGM(i=n.CRH())&&(e.items=i))},inputs:{attributes:"attributes",selection:"selection",inDialog:"inDialog",filterValue:"filterValue",pageSize:"pageSize",readonly:"readonly",hiddenColumns:"hiddenColumns"},outputs:{page:"page"},features:[n.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["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",""],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,w,2,3,"th",4),n.YNc(5,_,3,5,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,A,3,3,"th",7),n.YNc(8,k,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,T,3,3,"th",7),n.YNc(11,C,3,2,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,S,3,3,"th",4),n.YNc(14,E,2,2,"td",9),n.BQk(),n.ynx(15,11),n.YNc(16,x,3,3,"th",7),n.YNc(17,R,2,1,"td",9),n.BQk(),n.YNc(18,I,1,0,"tr",12),n.YNc(19,O,2,5,"tr",13),n.qZA(),n.qZA(),n.qZA(),n.YNc(20,P,3,3,"app-alert",14),n.YNc(21,D,3,3,"app-alert",14)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(16),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.dataSource.data.length),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.data.length))},directives:[l.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,d.oG,o.ev,r.nU,p.gM,s.M,o.XQ,o.Gk,g.w],pipes:[m,b.X$],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),t}()},66297:function(t,e,i){"use strict";i.d(e,{W:function(){return h}});var n=i(88426),r=i(31572),o=i(61511),a=i(15980),s=i(36922),u=i(43691),c=i(48160),l=function(t){return{color:t}},h=function(){var t=function(){function t(e,i){v(this,t),this.location=e,this.storeService=i}return y(t,[{key:"ngOnInit",value:function(){this.backButtonColor=this.storeService.get("theme","backButtonColor")}},{key:"goBack",value:function(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(o.Ye),r.Y36(n.d6))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"button",0),r.NdJ("click",function(){return e.goBack()}),r.ALo(1,"translate"),r.TgZ(2,"mat-icon",1),r._uU(3,"arrow_right_alt"),r.qZA(),r.qZA()),2&t&&(r.s9C("matTooltip",r.lcZ(1,2,"Back")),r.Q6J("ngStyle",r.VKq(4,l,e.backButtonColor)))},directives:[a.lW,o.PC,s.gM,u.Hw],pipes:[c.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),t}()},43005:function(t,e,i){"use strict";i.d(e,{r:function(){return p}});var n=i(31572),r=i(16073),o=i(88426),a=i(66283),s=i(80340),u=i(61511),c=i(29236),l=i(37665),h=i(48160);function d(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",7),n.NdJ("change",function(){return n.CHM(i),n.oxw().emitAsSubGroup()})("ngModelChange",function(t){return n.CHM(i),n.oxw().asSubgroup=t}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("labelPosition","before")("ngModel",r.asSubgroup),n.xp6(1),n.hij(" ",n.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function f(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-group-search-select",8),n.NdJ("groupSelected",function(t){return n.CHM(i),n.oxw().emitParentGroup(t)}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("disableAutoSelect",!0)("groups",r.voGroups)}}var p=function(){var t=function(){function t(e){v(this,t),this.store=e,this.parentGroup=null,this.voGroups=[],this.asSubgroup=!1,this.invalidNameMessage=this.store.get("groupNameErrorMessage"),this.secondaryRegex=this.store.get("groupNameSecondaryRegex"),this.nameChanged=new n.vpe,this.descriptionChanged=new n.vpe,this.parentGroupChanged=new n.vpe,this.asSubgroupChanged=new n.vpe}return y(t,[{key:"ngOnInit",value:function(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new r.NI("",[r.kI.required,r.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),r.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new r.NI("",[r.kI.required,r.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(function(t){return"members"!==t.name})}},{key:"emitName",value:function(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}},{key:"emitDescription",value:function(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}},{key:"emitParentGroup",value:function(t){this.selectedParent=t,this.parentGroupChanged.emit(t)}},{key:"emitAsSubGroup",value:function(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.d6))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"mat-form-field",1),n.NdJ("keyup",function(){return e.emitName()}),n.TgZ(2,"label",2),n._UZ(3,"input",3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"mat-error"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.qZA(),n.TgZ(8,"mat-form-field",4),n.NdJ("keyup",function(){return e.emitDescription()}),n.TgZ(9,"label",2),n._UZ(10,"textarea",3),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"mat-error"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.qZA(),n.YNc(15,d,3,5,"mat-checkbox",5),n.YNc(16,f,1,2,"perun-web-apps-group-search-select",6),n.qZA()),2&t&&(n.xp6(3),n.s9C("placeholder",n.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),n.Q6J("formControl",e.nameControl),n.xp6(3),n.hij(" ",e.invalidNameMessage.length?e.invalidNameMessage:n.lcZ(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),n.xp6(4),n.s9C("placeholder",n.lcZ(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),n.Q6J("formControl",e.descriptionControl),n.xp6(3),n.hij(" ",n.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),n.xp6(2),n.Q6J("ngIf",e.isNotSubGroup),n.xp6(1),n.Q6J("ngIf",e.asSubgroup))},directives:[a.KE,s.Nt,r.Fj,r.Q7,r.JJ,r.oH,a.TO,u.O5,c.oG,r.On,l.h],pipes:[h.X$],styles:[""]}),t}()},51613:function(t,e,i){"use strict";i.d(e,{S:function(){return c}});var n=i(31572),r=i(66283),o=i(80340),a=i(15812),s=i(16073),u=i(48160),c=function(){var t=function(){function t(){v(this,t),this.datePicker=new n.vpe}return y(t,[{key:"ngOnInit",value:function(){this.startMinDate=new Date(2e3,0,1),this.endMaxDate=new Date,this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}},{key:"dateChange",value:function(){this.datePicker.emit(),this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},outputs:{datePicker:"datePicker"},decls:16,vars:16,consts:[["appearance","standard",1,"space-right",3,"click"],["matInput","","readonly","",3,"matDatepicker","min","max","formControl","dateChange"],["matSuffix","",3,"for"],["datePickerStart",""],["appearance","standard",3,"click"],["datePickerEnd",""]],template:function(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-form-field",0),n.NdJ("click",function(){return n.CHM(i),n.MAs(7).open()}),n.TgZ(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"input",1),n.NdJ("dateChange",function(){return e.dateChange()}),n.qZA(),n._UZ(5,"mat-datepicker-toggle",2),n._UZ(6,"mat-datepicker",null,3),n.qZA(),n.TgZ(8,"mat-form-field",4),n.NdJ("click",function(){return n.CHM(i),n.MAs(15).open()}),n.TgZ(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"input",1),n.NdJ("dateChange",function(){return e.dateChange()}),n.qZA(),n._UZ(13,"mat-datepicker-toggle",2),n._UZ(14,"mat-datepicker",null,5),n.qZA()}if(2&t){var r=n.MAs(7),o=n.MAs(15);n.xp6(2),n.Oqu(n.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),n.xp6(2),n.Q6J("matDatepicker",r)("min",e.startMinDate)("max",e.startMaxDate)("formControl",e.startDate),n.xp6(1),n.Q6J("for",r),n.xp6(5),n.Oqu(n.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),n.xp6(2),n.Q6J("matDatepicker",o)("min",e.endMinDate)("max",e.endMaxDate)("formControl",e.endDate),n.xp6(1),n.Q6J("for",o)}},directives:[r.KE,r.hX,o.Nt,a.hl,s.Fj,s.JJ,s.oH,a.nW,r.R9,a.Mq],pipes:[u.X$],styles:[""]}),t}()},91058:function(t,e,i){"use strict";i.d(e,{P:function(){return d}});var n=i(31572),r=i(87254),o=i(79996),a=i(47701),s=i(98720),u=i(66283),c=i(80340),l=i(48160),h=["groupFilterInput"],d=function(){var t=function(){function t(){v(this,t),this.filter=new n.vpe}return y(t,[{key:"ngOnInit",value:function(){var t=this;(0,r.R)(this.groupFilterInput.nativeElement,"keyup").pipe((0,o.U)(function(t){return t.target.value}),(0,a.b)(500),(0,s.x)()).subscribe(function(e){t.filter.emit(e)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(h,7),2&t)&&(n.iGM(i=n.CRH())&&(e.groupFilterInput=i.first))},inputs:{placeholder:"placeholder"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-3"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n._UZ(1,"input",1,2),n.ALo(3,"translate"),n.qZA()),2&t&&(n.xp6(1),n.s9C("placeholder",n.lcZ(3,1,e.placeholder)))},directives:[u.KE,c.Nt],pipes:[l.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t}()},44973:function(t,e,i){"use strict";i.d(e,{i:function(){return w}});var n=i(31572),r=i(16073),o=i(66994),a=i(55959),s=i(25416),u=i(96577),c=i(66283),l=i(4786),h=i(71522),d=i(30146),f=i(61511),p=i(4253),g=["scrollViewport"];function m(t,e){if(1&t&&(n.TgZ(0,"mat-option",7),n._uU(1),n.TgZ(2,"span",8),n._uU(3),n.qZA(),n.qZA()),2&t){var i=n.oxw();n.Q6J("value",null==i.entitiesCtrl?null:i.entitiesCtrl.value),n.xp6(1),n.hij(" ",i.mainTextFunction(null==i.entitiesCtrl?null:i.entitiesCtrl.value)," "),n.xp6(2),n.Oqu(i.secondaryTextFunction(null==i.entitiesCtrl?null:i.entitiesCtrl.value))}}function b(t,e){if(1&t&&(n.TgZ(0,"mat-option",9),n._uU(1),n.TgZ(2,"span",8),n._uU(3),n.qZA(),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.Q6J("value",i),n.xp6(1),n.hij(" ",r.mainTextFunction(i)," "),n.xp6(2),n.Oqu(r.secondaryTextFunction(i))}}var w=function(){var t=function(){function t(e){v(this,t),this.cd=e,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.entitySelected=new n.vpe,this.entitiesCtrl=new r.NI,this.entityFilterCtrl=new r.NI,this.filteredEntities=new o.t(1),this.entitiesLen=0,this._onDestroy=new a.xQ,this.mainTextFunction=function(t){return(0,u.stringify)(t)},this.secondaryTextFunction=function(t){return"#"+t.id}}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.entitiesCtrl.valueChanges.subscribe(function(e){return t.entitySelected.emit(e)}),this.disableAutoSelect||null!==this.entity||this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(function(e){return t.entitiesLen=e.length}),this.entityFilterCtrl.valueChanges.pipe((0,s.R)(this._onDestroy)).subscribe(function(){t.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}},{key:"ngOnChanges",value:function(t){t.entities&&this.filteredEntities.next(this.entities.slice())}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"filterEntites",value:function(){var t=this;if(this.entities){var e=this.entityFilterCtrl.value;if(!e)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();e=this.normalize(e),this.filteredEntities.next(this.entities.filter(function(i){return t.normalize(t.searchFunction(i)).indexOf(e)>=0})),this.cd.detectChanges()}}},{key:"normalize",value:function(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}},{key:"openChange",value:function(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}},{key:"getViewportHeight",value:function(){var t=48*this.entitiesLen;return t>192&&(t=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(g,5),2&t)&&(n.iGM(i=n.CRH())&&(e.scrollViewport=i.first))},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected"},features:[n.TTD],decls:9,vars:14,consts:[[1,"w-100"],[3,"placeholder","formControl","openedChange"],[3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"value",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"selected-options-bottom",3,"value"],[1,"text-muted","muted"],[3,"value"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"mat-select",1),n.NdJ("openedChange",function(){return e.openChange()}),n.TgZ(2,"mat-option"),n._UZ(3,"ngx-mat-select-search",2),n.qZA(),n.YNc(4,m,4,3,"mat-option",3),n.TgZ(5,"cdk-virtual-scroll-viewport",4,5),n.YNc(7,b,4,3,"mat-option",6),n.ALo(8,"async"),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.s9C("placeholder",e.selectPlaceholder),n.Q6J("formControl",e.entitiesCtrl),n.xp6(2),n.s9C("placeholderLabel",e.findPlaceholder),n.s9C("noEntriesFoundLabel",e.noEntriesText),n.Q6J("clearSearchInput",!1)("formControl",e.entityFilterCtrl),n.xp6(1),n.Q6J("ngIf",null==e.entitiesCtrl?null:e.entitiesCtrl.value),n.xp6(1),n.Udp("height",e.getViewportHeight(),"px"),n.Q6J("minBufferPx",240)("maxBufferPx",480),n.xp6(2),n.Q6J("cdkVirtualForOf",n.lcZ(8,12,e.filteredEntities)))},directives:[c.KE,l.gD,r.JJ,r.oH,h.ey,d.nu,f.O5,p.N7,p.xd,p.x0],pipes:[f.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}"]}),t}()},60007:function(t,e,i){"use strict";i.d(e,{X:function(){return W}});var n=i(31572),r=i(58623),o=i(67033),a=i(84140),s=i(88426),u=i(82819),c=i(61511),l=i(29236),h=i(72953),d=i(16073),f=i(36922),p=i(15980),g=i(43691);function m(t,e){if(1&t&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.hij(" ",i[r.paramName]," ")}}function b(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function w(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function _(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){return n.CHM(i),n.oxw().onShowChange()}),n.YNc(1,b,2,0,"mat-icon",8),n.YNc(2,w,2,0,"mat-icon",8),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("ngIf",!r.showMore),n.xp6(1),n.Q6J("ngIf",r.showMore)}}var A=function(){var t=function(){function t(){v(this,t),this.objects=[],this.filterValue="",this.paramName="",this.showMore=!1,this.defaultItemsShown=3}return y(t,[{key:"ngOnInit",value:function(){this.itemsShown=this.defaultItemsShown}},{key:"ngOnChanges",value:function(){this.itemsShown=this.defaultItemsShown,this.showMore=!1}},{key:"onShowChange",value:function(){this.showMore=!this.showMore,this.itemsShown=this.showMore?this.objects.length:this.defaultItemsShown}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[n.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(t,e){1&t&&(n.TgZ(0,"form",0),n.TgZ(1,"div",1),n.TgZ(2,"div",2),n.YNc(3,m,2,1,"div",3),n.qZA(),n.TgZ(4,"div"),n.TgZ(5,"span",4),n.YNc(6,_,3,2,"button",5),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.xp6(3),n.Q6J("ngForOf",e.objects.slice(0,e.itemsShown)),n.xp6(2),n.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.xp6(1),n.Q6J("ngIf",e.objects.length>e.defaultItemsShown))},directives:[d._Y,d.JL,d.F,c.sg,f.gM,c.O5,p.lW,g.Hw],styles:[""]}),t}(),k=i(84534),T=i(57629),C=i(39571),S=i(48160),E=i(48853),x=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t,e,i){return t.filter(function(t){return t[i].includes(e)}).filter(function(t,e,n){return n.findIndex(function(e){return e[i]===t[i]})===e})}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"filterUniqueObjects",type:t,pure:!0}),t}();function R(t,e){1&t&&n._UZ(0,"th",18)}function I(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",19),n.TgZ(1,"mat-checkbox",20),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))}}function O(t,e){1&t&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")))}function P(t,e){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.facility.id)}}function D(t,e){1&t&&n._UZ(0,"th",18)}function M(t,e){if(1&t&&(n.TgZ(0,"td",22),n._UZ(1,"perun-web-apps-recently-viewed-icon",23),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Q6J("id",i.facility.id)("recentIds",r.recentIds)}}function L(t,e){1&t&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")))}function N(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.facility.name)}}function z(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")))}function F(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.facility.description)}}function Z(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")))}function B(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.ALo(2,"technicalOwners"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i.owners))}}function q(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")))}function U(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",22),n.TgZ(1,"perun-web-apps-object-list-values",24),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw().disableRouting=!0})("mouseleave",function(){return n.CHM(i),n.oxw().disableRouting=!1}),n.ALo(2,"filterUniqueObjects"),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("objects",n.Dn7(2,2,r.destinations,o.filterValue,"destination"))("paramName","destination")}}function H(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")))}function j(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",22),n.TgZ(1,"perun-web-apps-object-list-values",24),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw().disableRouting=!0})("mouseleave",function(){return n.CHM(i),n.oxw().disableRouting=!1}),n.ALo(2,"filterUniqueObjects"),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("objects",n.Dn7(2,2,r.hosts,o.filterValue,"hostname"))("paramName","hostname")}}function G(t,e){1&t&&n._UZ(0,"tr",25)}var Y=function(t){return["/facilities",t]},V=function(){return[]};function K(t,e){if(1&t&&n._UZ(0,"tr",26),2&t){var i=e.$implicit,r=n.oxw();n.Q6J("perunWebAppsMiddleClickRouterLink",n.VKq(2,Y,i.facility.id))("routerLink",r.disableRouting?n.DdM(4,V):n.VKq(5,Y,i.facility.id))}}function J(t,e){1&t&&(n.TgZ(0,"app-alert",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Q(t,e){1&t&&(n.TgZ(0,"app-alert",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}var W=function(){var t=function(){function t(e){v(this,t),this.authResolver=e,this.pageSize=10,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=a.f7,this.page=new n.vpe}return y(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.facility.id.toString();case"name":return t.facility.name;case"description":return t.facility.description;case"technicalOwners":return(0,a.te)(t.owners);case"recent":return i.recentIds&&i.recentIds.indexOf(t.facility.id)>-1?"#".repeat(i.recentIds.indexOf(t.facility.id)):t.name;case"destinations":return t.destinations.map(function(t){return t.destination}).join(" ; ");case"hosts":return t.hosts.map(function(t){return t.hostname}).join(" ; ");default:return t[e]}}},{key:"exportData",value:function(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,a.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,a.pR)(e,i,t.getDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.facilities}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.dataSource.data.length}},{key:"masterToggle",value:function(){var t=this;this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(function(e){return t.selection.select(e)})}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.facility.id+1):(this.isAllSelected()?"select":"deselect")+" all"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(a.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[n.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","technicalOwners"],["matColumnDef","destinations"],["matColumnDef","hosts"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,R,1,0,"th",4),n.YNc(5,I,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,O,3,3,"th",7),n.YNc(8,P,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,D,1,0,"th",4),n.YNc(11,M,2,2,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,L,3,3,"th",7),n.YNc(14,N,2,1,"td",9),n.BQk(),n.ynx(15,11),n.YNc(16,z,3,3,"th",4),n.YNc(17,F,2,1,"td",9),n.BQk(),n.ynx(18,12),n.YNc(19,Z,3,3,"th",4),n.YNc(20,B,3,3,"td",9),n.BQk(),n.ynx(21,13),n.YNc(22,q,3,3,"th",4),n.YNc(23,U,3,6,"td",9),n.BQk(),n.ynx(24,14),n.YNc(25,H,3,3,"th",4),n.YNc(26,j,3,6,"td",9),n.BQk(),n.YNc(27,G,1,0,"tr",15),n.YNc(28,K,1,7,"tr",16),n.qZA(),n.qZA(),n.qZA(),n.YNc(29,J,3,3,"app-alert",17),n.YNc(30,Q,3,3,"app-alert",17)),2&t&&(n.Q6J("hidden",!e.dataSource||0===e.dataSource.filteredData.length||0===e.facilities.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(25),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.facilities.length),n.xp6(1),n.Q6J("ngIf",0===e.facilities.length))},directives:[u.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,c.O5,o.ge,o.ev,l.oG,r.nU,h.W,A,o.XQ,o.Gk,k.YH,T.rH,C.w],pipes:[S.X$,E.J,x],styles:["tr[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},54930:function(t,e,i){"use strict";i.d(e,{i:function(){return C}});var n=i(31572),r=i(88426),o=i(61511),a=i(15980),s=i(81391),u=i(36922),c=i(43691),l=i(8055),h=i(48160),d=i(44385),f=i(52984),p=i(51392);function g(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.ALo(2,"groupSyncToolTip"),n.TgZ(3,"button",6),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onSyncDetail()}),n.ALo(4,"groupSyncIcon"),n.TgZ(5,"mat-icon"),n.ALo(6,"groupSyncIconColor"),n._uU(7),n.ALo(8,"groupSyncIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("matTooltipPosition","above")("matTooltip",n.lcZ(1,7,n.lcZ(2,9,r.group))),n.xp6(3),n.Q6J("disabled","sync_disabled"===n.lcZ(4,11,r.group)),n.xp6(2),n.Tol(n.lcZ(6,13,r.group)),n.xp6(2),n.hij(" ",n.lcZ(8,15,r.group)," ")}}function m(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.TgZ(2,"button",6),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onMoveGroup()}),n.TgZ(3,"mat-icon"),n._uU(4,"arrow_right_alt"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),n.Q6J("matTooltipPosition","above"),n.xp6(2),n.Q6J("disabled",r.disabled)}}function b(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.TgZ(2,"button",6),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onChangeNameDescription()}),n.TgZ(3,"mat-icon"),n._uU(4,"text_format"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),n.Q6J("matTooltipPosition","above"),n.xp6(2),n.Q6J("disabled",r.disabled)}}function w(t,e){if(1&t&&(n.TgZ(0,"div",2),n.TgZ(1,"button",3),n.ALo(2,"translate"),n.TgZ(3,"mat-icon"),n._uU(4," file_copy "),n.qZA(),n.qZA(),n.YNc(5,g,9,17,"span",4),n.YNc(6,m,5,5,"span",4),n.YNc(7,b,5,5,"span",4),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.Q6J("cdkCopyToClipboard",i.group.name)("matTooltipPosition","above"),n.xp6(4),n.Q6J("ngIf",i.syncAuth),n.xp6(1),n.Q6J("ngIf",i.moveAuth),n.xp6(1),n.Q6J("ngIf",i.editAuth)}}function _(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onSyncDetail()}),n.ALo(1,"groupSyncIcon"),n.TgZ(2,"mat-icon"),n.ALo(3,"groupSyncIconColor"),n._uU(4),n.ALo(5,"groupSyncIcon"),n.qZA(),n.TgZ(6,"span"),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"groupSyncToolTip"),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("disabled","sync_disabled"===n.lcZ(1,6,r.group)),n.xp6(2),n.Tol(n.lcZ(3,8,r.group)),n.xp6(2),n.hij(" ",n.lcZ(5,10,r.group)," "),n.xp6(3),n.Oqu(n.lcZ(8,12,n.lcZ(9,14,r.group)))}}function A(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onMoveGroup()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_right_alt"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("disabled",r.disabled),n.xp6(4),n.Oqu(n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function k(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onChangeNameDescription()}),n.TgZ(1,"mat-icon"),n._uU(2,"text_format"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("disabled",r.disabled),n.xp6(4),n.Oqu(n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function T(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"button",7),n.TgZ(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA(),n.qZA(),n.TgZ(4,"mat-menu",null,8),n.TgZ(6,"button",9),n.TgZ(7,"mat-icon"),n._uU(8," file_copy "),n.qZA(),n.TgZ(9,"span"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.qZA(),n.YNc(12,_,10,16,"button",10),n.YNc(13,A,6,4,"button",10),n.YNc(14,k,6,4,"button",10),n.qZA(),n.qZA()),2&t){var i=n.MAs(5),r=n.oxw();n.xp6(1),n.Q6J("mat-menu-trigger-for",i),n.xp6(5),n.Q6J("cdkCopyToClipboard",r.group.name),n.xp6(4),n.Oqu(n.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.xp6(2),n.Q6J("ngIf",r.syncAuth),n.xp6(1),n.Q6J("ngIf",r.moveAuth),n.xp6(1),n.Q6J("ngIf",r.editAuth)}}var C=function(){var t=function(){function t(e){v(this,t),this.authResolver=e,this.disabled=!1,this.moveGroup=new n.vpe,this.syncGroup=new n.vpe,this.changeNameDescription=new n.vpe}return y(t,[{key:"ngOnInit",value:function(){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])}},{key:"onMoveGroup",value:function(){this.moveGroup.emit()}},{key:"onSyncDetail",value:function(){this.syncGroup.emit()}},{key:"onChangeNameDescription",value:function(){this.changeNameDescription.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.x4))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.YNc(0,w,8,8,"div",0),n.YNc(1,T,15,8,"div",1)),2&t&&(n.Q6J("ngIf",e.displayButtons),n.xp6(1),n.Q6J("ngIf",!e.displayButtons))},directives:[o.O5,a.lW,s.i3,u.gM,c.Hw,l.p6,l.VK,l.OP],pipes:[h.X$,d.r,f.J,p.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),t}()},46837:function(t,e,i){"use strict";i.d(e,{x:function(){return g}});var n=i(31572),r=i(84140),o=i(61189),a=i(84608),s=i(61511),u=i(36922),c=i(43691),l=i(48160);function h(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){return n.CHM(i),n.oxw().changeStatus()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3,"check_circle_outline"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function d(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){return n.CHM(i),n.oxw().changeStatus()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",5),n._uU(3,"block"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function f(t,e){if(1&t&&(n.TgZ(0,"span",6),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",7),n._uU(3,"report"),n.qZA(),n.qZA()),2&t){var i=n.oxw();n.hYB("matTooltip","",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",i.failureCause,"")}}function p(t,e){1&t&&(n.TgZ(0,"span",6),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",8),n._uU(3,"autorenew"),n.qZA(),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}var g=function(){var t=function(){function t(e){v(this,t),this.dialog=e,this.status="",this.statusChange=new n.vpe}return y(t,[{key:"changeStatus",value:function(){var t=this,e=(0,r.kZ)();e.width="500px",e.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(o.Qu,e).afterClosed().subscribe(function(e){e&&t.statusChange.emit()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.uw))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],["matTooltipPosition","above",3,"matTooltip"],[1,"red"],[1,"black"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.YNc(1,h,4,3,"span",1),n.YNc(2,d,4,3,"span",1),n.YNc(3,f,4,4,"span",2),n.YNc(4,p,4,3,"span",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf","ACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","FAILED"===e.status),n.xp6(1),n.Q6J("ngIf","PROCESSING"===e.status))},directives:[s.O5,u.gM,c.Hw],pipes:[l.X$],styles:[""]}),t}()},37665:function(t,e,i){"use strict";i.d(e,{h:function(){return s}});var n=i(31572),r=i(84140),o=i(44973),a=i(48160),s=function(){var t=function(){function t(){v(this,t),this.groupSelected=new n.vpe,this.disableAutoSelect=!1,this.nameFunction=function(t){return t.name}}return y(t,[{key:"ngOnInit",value:function(){this.groups=this.groups.sort(r.aC)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect",firstSelectedGroup:"firstSelectedGroup"},outputs:{groupSelected:"groupSelected"},decls:4,vars:14,consts:[[1,"long-input",3,"entities","entity","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){var i;(1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.groupSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t)&&n.Q6J("entities",e.groups)("entity",null!==(i=e.firstSelectedGroup)&&void 0!==i?i:null)("disableAutoSelect",e.disableAutoSelect)("mainTextFunction",e.nameFunction)("searchFunction",e.nameFunction)("selectPlaceholder",n.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",n.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",n.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))},directives:[o.i],pipes:[a.X$],styles:[""]}),t}()},78364:function(t,e,i){"use strict";i.d(e,{W:function(){return at}});var n=i(31572),r=i(58623),o=i(67033),a=i(4230),s=i(33642),u=i(84140),c=i(61189),l=i(88426),h=i(61511),p=i(84608),g=i(82819),m=i(29236),b=i(36922),w=i(72953),_=i(46837),A=i(15980),k=i(43691),T=i(54930),C=i(84534),S=i(57629),E=i(39571),x=i(48160),R=i(74842),I=i(37043),O=i(58506),P=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){var e=t.attributes.find(function(t){return"groupMembershipExpiration"===t.baseFriendlyName});return e&&e.value?e.value:"Never"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"groupExpiration",type:t,pure:!0}),t}();function D(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",23),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw(2);return t?e.masterToggle():null}),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function M(t,e){if(1&t&&(n.TgZ(0,"th",21),n.YNc(1,D,1,3,"mat-checkbox",22),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Q6J("ngIf",!i.disableHeadCheckbox)}}function L(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",24),n.TgZ(1,"span",25),n.ALo(2,"translate"),n.TgZ(3,"mat-checkbox",26),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.itemSelectionToggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,o.getCheckboxTooltipMessage(r))),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!o.disableSelect(r)),n.xp6(2),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))("disabled","members"===r.name&&o.disableMembers||o.disableSelect(r))}}function N(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function F(t,e){1&t&&n._UZ(0,"th",21)}function Z(t,e){if(1&t&&(n.TgZ(0,"td",28),n._UZ(1,"perun-web-apps-recently-viewed-icon",29),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Q6J("recentIds",r.recentIds)("id",i.id)}}function B(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")))}function q(t,e){if(1&t&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Oqu(r.voNames.get(i.voId))}}function U(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")))}function H(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.name)}}function j(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")))}function G(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",30),n.TgZ(1,"perun-web-apps-group-resource-status",31),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw();return t.disabledRouting=t.disableRouting})("statusChange",function(){return n.CHM(i),n.oxw().refreshTable.emit()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("theme","resource-theme")("groupId",r.id)("resourceId",o.resourceId)("failureCause",r.failureCause)("status",r.status)}}function Y(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")))}function V(t,e){if(1&t&&(n.TgZ(0,"td",28),n.TgZ(1,"i",32),n.ALo(2,"memberStatusIconColor"),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,r.getStatusAttribute(i)),""),n.s9C("matTooltip",r.getStatusAttribute(i)),n.xp6(3),n.hij(" ",n.lcZ(5,7,r.getStatusAttribute(i))," ")}}function K(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")))}function J(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.description)}}function Q(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")))}function W(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",34),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw().changeExpiration(t)})("mouseenter",function(){return n.CHM(i),n.oxw(2).disabledRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw(2);return t.disabledRouting=t.disableRouting}),n.TgZ(1,"mat-icon"),n._uU(2,"edit"),n.qZA(),n.qZA()}}function X(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"parseDate"),n.ALo(3,"groupExpiration"),n.YNc(4,W,3,0,"button",33),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,2,n.lcZ(3,4,i))," "),n.xp6(3),n.Q6J("ngIf",r.canManageGroup(i))}}function $(t,e){1&t&&n._UZ(0,"th",21)}function tt(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",28),n.TgZ(1,"perun-web-apps-group-menu",35),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw();return t.disabledRouting=t.disableRouting})("moveGroup",function(){var t=n.CHM(i).$implicit;return n.oxw().onMoveGroup(t)})("changeNameDescription",function(){var t=n.CHM(i).$implicit;return n.oxw().onChangeNameDescription(t)})("syncGroup",function(){var t=n.CHM(i).$implicit;return n.oxw().onSyncDetail(t)}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("disabled","members"===r.name)("displayButtons",o.displayButtons)("group",r)}}function et(t,e){1&t&&n._UZ(0,"tr",36)}var it=function(t,e){return["/organizations",t,"groups",e]};function nt(t,e){if(1&t&&n._UZ(0,"tr",37),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disableRouting&&!r.groupsToDisable.has(i.id))("disable-outline",r.disabledRouting||r.groupsToDisable.has(i.id)),n.Q6J("perunWebAppsMiddleClickRouterLink",r.disabledRouting||r.groupsToDisable.has(i.id)?null:n.WLB(6,it,i.voId,i.id))("routerLink",r.disabledRouting||r.groupsToDisable.has(i.id)?null:n.WLB(9,it,i.voId,i.id))}}function rt(t,e){1&t&&(n.TgZ(0,"app-alert",38),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_GROUPS"),"\n"))}function ot(t,e){1&t&&(n.TgZ(0,"app-alert",38),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var at=function(){var t=function(){function t(e,i,r,o){var s=this;v(this,t),this.dialog=e,this.authResolver=i,this.voService=r,this.tableCheckbox=o,this.displayButtons=window.innerWidth>800,this.theme="group-theme",this.moveGroup=new n.vpe,this.groups=[],this.selection=new a.Ov(!0,[]),this.hasMembersGroup=!1,this.displayedColumns=["select","id","recent","vo","name","status","groupStatus","description","expiration","menu"],this.groupsToDisable=new Set,this.pageSize=10,this.filter="",this.disableRouting=!1,this.pageSizeOptions=u.f7,this.recentIds=[],this.resourceId=null,this.page=new n.vpe,this.refreshTable=new n.vpe,this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.canBeSelected=function(t){return!("members"===t.name&&s.disableMembers||s.disableSelect(t))}}return y(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"shouldHideButtons",value:function(){this.displayButtons=window.innerWidth>800}},{key:"ngOnChanges",value:function(){this.disabledRouting=this.disableRouting,this.hasMembersGroup=this.checkIfHasMembersGroup(),this.updateVoNames(),this.setDataSource(),this.authType&&(this.removeAuth=this.setAuth())}},{key:"checkIfHasMembersGroup",value:function(){var t,e=f(this.groups);try{for(e.s();!(t=e.n()).done;){if("members"===t.value.name)return!0}}catch(i){e.e(i)}finally{e.f()}return!1}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return i.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":var n=(0,u.x2)(t);return(0,u.sG)(n);case"recent":return"";case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}},{key:"getSortDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return i.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":var n=(0,u.x2)(t);return n&&"never"!==n.toLowerCase()?(0,h.p6)(n,"yyyy.MM.dd","en"):n;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"status":return t.status;default:return t[e]}}},{key:"exportData",value:function(t){(0,u.O6)((0,u.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,u.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t,!0)},this.dataSource.sortData=function(e,i){return(0,u.pR)(e,i,t.getSortDataForColumn,t)}),this.dataSource.filter=this.filter,this.dataSource.data=this.groups}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.authType&&(this.removeAuth=this.setAuth())}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"disableSelect",value:function(t){return this.disableGroups&&(this.groupsToDisable.has(t.id)||this.isSynchronized(t))}},{key:"ngAfterViewInit",value:function(){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(function(t){return"id"!==t}))}},{key:"onMoveGroup",value:function(t){this.moveGroup.emit(t)}},{key:"onSyncDetail",value:function(t){var e=(0,u.kZ)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(c.Bp,e)}},{key:"onChangeNameDescription",value:function(t){var e=this,i=(0,u.kZ)();i.data={theme:"group-theme",group:t,dialogType:c.Eg.GROUP},this.dialog.open(c.rd,i).afterClosed().subscribe(function(t){t&&e.refreshTable.emit()})}},{key:"setAuth",value:function(){var t=this;return"group-subgroups"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[i])},!0):"group-relations"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("removeGroupUnion_Group_Group_policy",[t.parentGroup,i])},!0):"vo-groups"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[t.vo,i])},!0):"member-groups"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("removeMember_Member_List_policy",[i])},!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[t.vo,i])},!0):void 0}},{key:"itemSelectionToggle",value:function(t){this.selection.toggle(t),this.removeAuth=this.setAuth()}},{key:"isSynchronized",value:function(t){return!!t.attributes&&t.attributes.some(function(t){return"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString()})}},{key:"getCheckboxTooltipMessage",value:function(t){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":this.isSynchronized(t)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP"}},{key:"updateVoNames",value:function(){var t=this;this.displayedColumns.includes("vo")&&(this.groups.forEach(function(e){t.voIds.has(e.voId)||t.voIds.add(e.voId)}),this.voIds.size>0&&this.voService.getVosByIds(d(this.voIds)).subscribe(function(e){e.forEach(function(e){t.voNames.set(e.id,e.name)})}))}},{key:"changeExpiration",value:function(t){var e=this,i=t.attributes.find(function(t){return"groupMembershipExpiration"===t.baseFriendlyName}),n=(0,u.kZ)();n.width="400px",n.data={memberId:this.memberId,groupId:t.id,expirationAttr:i,mode:"group",status:this.memberGroupStatus},this.dialog.open(c.u3,n).afterClosed().subscribe(function(t){t&&e.refreshTable.emit()})}},{key:"canManageGroup",value:function(t){return this.authResolver.isThisGroupAdmin(t.id)||this.authResolver.isThisVoAdmin(t.voId)}},{key:"getStatusAttribute",value:function(t){return t.attributes.find(function(t){return"groupStatus"===t.baseFriendlyName}).value.toString()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(p.uw),n.Y36(l.x4),n.Y36(s.YF),n.Y36(l.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(u.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},hostBindings:function(t,e){1&t&&n.NdJ("resize",function(t){return e.shouldHideButtons(t)},!1,n.Jf7)},inputs:{theme:"theme",groups:"groups",selection:"selection",displayedColumns:"displayedColumns",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisable:"groupsToDisable",pageSize:"pageSize",filter:"filter",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",authType:"authType",memberId:"memberId",memberGroupStatus:"memberGroupStatus",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",resourceId:"resourceId"},outputs:{moveGroup:"moveGroup",page:"page",refreshTable:"refreshTable"},features:[n.TTD],decls:37,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","name"],["matColumnDef","status"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","groupStatus"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","resourceId","failureCause","status","mouseenter","mouseleave","statusChange"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip"],["mat-icon-button","",3,"click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"click","mouseenter","mouseleave"],[3,"disabled","displayButtons","group","mouseenter","mouseleave","moveGroup","changeNameDescription","syncGroup"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,M,2,1,"th",4),n.YNc(5,L,4,8,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,N,3,3,"th",7),n.YNc(8,z,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,F,1,0,"th",4),n.YNc(11,Z,2,2,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,B,3,3,"th",7),n.YNc(14,q,2,1,"td",5),n.BQk(),n.ynx(15,11),n.YNc(16,U,3,3,"th",7),n.YNc(17,H,2,1,"td",9),n.BQk(),n.ynx(18,12),n.YNc(19,j,3,3,"th",7),n.YNc(20,G,2,5,"td",13),n.BQk(),n.ynx(21,14),n.YNc(22,Y,3,3,"th",7),n.YNc(23,V,6,9,"td",9),n.BQk(),n.ynx(24,15),n.YNc(25,K,3,3,"th",7),n.YNc(26,J,2,1,"td",13),n.BQk(),n.ynx(27,16),n.YNc(28,Q,3,3,"th",7),n.YNc(29,X,5,6,"td",13),n.BQk(),n.ynx(30,17),n.YNc(31,$,1,0,"th",4),n.YNc(32,tt,2,3,"td",9),n.BQk(),n.YNc(33,et,1,0,"tr",18),n.YNc(34,nt,1,12,"tr",19),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,rt,3,3,"app-alert",20),n.YNc(36,ot,3,3,"app-alert",20)),2&t&&(n.Q6J("hidden",0===e.groups.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(31),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.groups.length),n.xp6(1),n.Q6J("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.groups.length))},directives:[g.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,m.oG,o.ev,b.gM,r.nU,w.W,_.x,A.lW,k.Hw,T.i,o.XQ,o.Gk,C.YH,S.rH,E.w],pipes:[x.X$,R.u,I.f,O.M,P],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t}()},11441:function(t,e,i){"use strict";i.d(e,{I:function(){return L}});var n=i(31572),r=i(91010),o=i(71709),a=i(4230),s=i(14732),u=i(84140),c=i(61189),l=i(88426),h=i(84608),p=i(61511),g=i(4253),m=i(57629),b=i(15980),w=i(36922),_=i(54930),A=i(29236),k=i(43691),T=i(39571),C=i(48160),S=["scrollViewport"];function E(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",19),n.NdJ("change",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw(2).itemSelectionToggle(t)}),n.qZA()}if(2&t){var r=n.oxw().$implicit,o=n.oxw(2);n.Q6J("disabled","members"===r.fullName)("checked",o.selection.isSelected(r))("indeterminate",o.descendantsPartiallySelected(r))}}function x(t,e){if(1&t&&(n.TgZ(0,"mat-icon",20),n._uU(1),n.qZA()),2&t){var i=n.oxw().$implicit,r=n.oxw(2);n.xp6(1),n.hij(" ",r.treeControl.isExpanded(i)?"expand_more":"chevron_right"," ")}}function R(t,e){if(1&t&&(n.TgZ(0,"span",21),n._uU(1),n.qZA()),2&t){var i=n.oxw().$implicit;n.xp6(1),n.hij(" #",i.id," ")}}var I=function(t,e){return["/organizations",t,"groups",e]};function O(t,e){if(1&t){var i=n.EpF();n.ynx(0),n.TgZ(1,"div",6),n.YNc(2,E,1,3,"mat-checkbox",7),n.TgZ(3,"a",8),n.TgZ(4,"button",9),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw(2).disableRouting=!0})("mouseleave",function(){return n.CHM(i),n.oxw(2).disableRouting=!1})("click",function(){var t=n.CHM(i).$implicit;return n.oxw(2).treeControl.toggle(t)}),n.YNc(5,x,2,1,"mat-icon",10),n.qZA(),n.TgZ(6,"div",11),n.TgZ(7,"span",12),n._uU(8),n.qZA(),n.YNc(9,R,2,1,"span",13),n.qZA(),n.TgZ(10,"div",14,15),n.TgZ(12,"span",16),n._uU(13),n.qZA(),n.qZA(),n.qZA(),n.TgZ(14,"div",17),n.TgZ(15,"perun-web-apps-group-menu",18),n.NdJ("moveGroup",function(){var t=n.CHM(i).$implicit;return n.oxw(2).onMoveGroup(t)})("syncGroup",function(){var t=n.CHM(i).$implicit;return n.oxw(2).onSyncDetail(t)})("changeNameDescription",function(){var t=n.CHM(i).$implicit;return n.oxw(2).onChangeNameDescription(t)}),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&t){var r=e.$implicit,o=n.oxw(2);n.xp6(1),n.Udp("padding-left",24*r.level+"px"),n.xp6(1),n.Q6J("ngIf",!o.hideCheckbox),n.xp6(1),n.Q6J("routerLink",o.disableRouting?null:n.WLB(14,I,r.voId,r.id)),n.xp6(1),n.Q6J("disabled",!r.expandable),n.uIk("aria-label","toggle "+r.name),n.xp6(1),n.Q6J("ngIf",r.expandable),n.xp6(3),n.hij(" ",r.name," "),n.xp6(1),n.Q6J("ngIf",o.authResolver.isPerunAdminOrObserver()),n.xp6(3),n.s9C("matTooltip",r.description),n.xp6(1),n.hij(" ",r.description," "),n.xp6(2),n.Q6J("disabled","members"===r.fullName)("displayButtons",o.displayButtons)("group",r)}}var P=function(t){return{height:t}};function D(t,e){if(1&t&&(n.TgZ(0,"div",2),n.TgZ(1,"cdk-virtual-scroll-viewport",3,4),n.YNc(3,O,16,17,"ng-container",5),n.qZA(),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",n.VKq(4,P,i.getTreeViewHeight())),n.xp6(2),n.Q6J("cdkVirtualForOf",i.dataSource)}}function M(t,e){1&t&&(n.TgZ(0,"app-alert",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var L=function(){var t=function(){function t(e,i,s){v(this,t),this.cd=e,this.dialog=i,this.authResolver=s,this.transformer=function(t,e){return{expandable:!!t.children&&t.children.length>0,name:t.shortName,fullName:t.name,parentGroupId:t.parentGroupId,level:e,id:t.id,voId:t.voId,attributes:t.attributes,beanName:t.beanName,description:t.description}},this.displayButtons=window.innerWidth>600,this.theme="group-theme",this.moveGroup=new n.vpe,this.refreshTable=new n.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new a.Ov(!0,[]),this.hideCheckbox=!1,this.treeControl=new o.C2(function(t){return t.level},function(t){return t.expandable}),this.treeFlattener=new r.JZ(this.transformer,function(t){return t.level},function(t){return t.expandable},function(t){return t.children}),this.dataSource=new r.kc(this.treeControl,this.treeFlattener),this.hasChild=function(t,e){return e.expandable},this.getLevel=function(t){return t.level}}return y(t,[{key:"shouldHideButtons",value:function(){this.displayButtons=window.innerWidth>600}},{key:"ngOnChanges",value:function(){var t=this;if(this.expandAll){this.filteredGroups=this.groups.filter(function(e){var i,n;return(null===(i=e.name)||void 0===i?void 0:i.toLowerCase().includes(t.filterValue.toLowerCase()))||(null===(n=e.description)||void 0===n?void 0:n.toLowerCase().includes(t.filterValue.toLowerCase()))||e.id.toString().includes(t.filterValue.toLowerCase())||e.uuid.toLowerCase().includes(t.filterValue.toLowerCase())});var e,i=f(this.filteredGroups);try{for(i.s();!(e=i.n()).done;){var n=e.value;n.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,u.oU)(n.parentGroupId,this.groups)))}}catch(r){i.e(r)}finally{i.f()}}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}},{key:"onSyncDetail",value:function(t){var e=(0,u.kZ)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(c.Bp,e)}},{key:"onChangeNameDescription",value:function(t){var e=this,i=(0,u.kZ)();i.data={theme:"group-theme",group:t,dialogType:c.Eg.GROUP},this.dialog.open(c.rd,i).afterClosed().subscribe(function(t){t&&e.refreshTable.emit()})}},{key:"createGroupTrees",value:function(t){var e,i=new Map,n=f(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;i.set(r.id,new s.m(r))}}catch(u){n.e(u)}finally{n.f()}var o=new Set;i.forEach(function(t,e,i){var n=i.get(t.parentGroupId);void 0!==n&&(n.addChild(t),i.set(t.parentGroupId,n)),null!==t.parentGroupId&&void 0===n&&o.add(t.id)});var a=[];i.forEach(function(t){(null===t.parentGroupId||o.has(t.id))&&a.push(t)}),this.dataSource.data=a,this.cd.detectChanges()}},{key:"getParentNode",value:function(t){var e=this.getLevel(t);if(e<1)return null;for(var i=this.treeControl.dataNodes.indexOf(t)-1;i>=0;i--){var n=this.treeControl.dataNodes[i];if(this.getLevel(n)_boolean_policy",[t.vo,i])}:function(e,i){return e&&t.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[i])},!0)}},{key:"onMoveGroup",value:function(t){this.moveGroup.emit(t)}},{key:"getTreeViewHeight",value:function(){var t=0;this.scrollViewport&&(t=this.scrollViewport.getDataLength());var e=48*t;return e>672&&(e=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),e+"px"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO),n.Y36(h.uw),n.Y36(l.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(S,5),2&t)&&(n.iGM(i=n.CRH())&&(e.scrollViewport=i.first))},hostBindings:function(t,e){1&t&&n.NdJ("resize",function(t){return e.shouldHideButtons(t)},!1,n.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[n.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(t,e){1&t&&(n.YNc(0,D,4,6,"div",0),n.YNc(1,M,3,3,"app-alert",1)),2&t&&(n.Q6J("ngIf",0!==e.filteredGroups.length),n.xp6(1),n.Q6J("ngIf",0===e.filteredGroups.length))},directives:[p.O5,g.N7,g.xd,p.PC,g.x0,m.yS,b.lW,w.gM,_.i,A.oG,k.Hw,T.w],pipes:[C.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.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:rgba(0,0,0,.05)}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),t}()},66438:function(t,e,i){"use strict";i.d(e,{X:function(){return g}});var n=i(33642),r=i(88426),o=i(31572),a=i(48160),s=i(61511),u=i(8055),c=i(15980),l=i(43691),h=i(36922),d=function(t){return{color:t}};function f(t,e){if(1&t&&(o.TgZ(0,"button",8),o.ALo(1,"translate"),o.TgZ(2,"mat-icon",4),o._uU(3," apps "),o.qZA(),o.qZA()),2&t){var i=o.oxw(),n=o.MAs(2);o.Q6J("matMenuTriggerFor",n)("matTooltip",o.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),o.xp6(2),o.Q6J("ngStyle",o.VKq(5,d,i.iconColor))}}function p(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"button",2),o.NdJ("click",function(){return o.CHM(i),o.oxw().onLogOut()}),o._uU(1),o.ALo(2,"translate"),o.qZA()}2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"NAV.LOGOUT")))}var g=function(){var t=function(){function t(e,i,n,r){v(this,t),this.authService=e,this.authzResolverService=i,this.notificator=n,this.translateService=r}return y(t,[{key:"redirectToUrl",value:function(){window.open(this.url,"_blank")}},{key:"onLogOut",value:function(){this.authService.logout()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(r.e8),o.Y36(n.Ct),o.Y36(r.V6),o.Y36(a.sK))},t.\u0275cmp=o.Xpm({type:t,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(t,e){if(1&t&&(o.YNc(0,f,4,7,"button",0),o.TgZ(1,"mat-menu",null,1),o.TgZ(3,"button",2),o.NdJ("click",function(){return e.redirectToUrl()}),o.TgZ(4,"span"),o._uU(5),o.qZA(),o.qZA(),o.qZA(),o.TgZ(6,"button",3),o.TgZ(7,"mat-icon",4),o._uU(8," person "),o.qZA(),o.TgZ(9,"span",5),o._uU(10),o.qZA(),o.qZA(),o.TgZ(11,"mat-menu",null,6),o.YNc(13,p,3,3,"button",7),o.qZA()),2&t){var i=o.MAs(12);o.Q6J("ngIf",e.url),o.xp6(5),o.Oqu(e.label),o.xp6(1),o.Q6J("matMenuTriggerFor",i),o.xp6(1),o.Q6J("ngStyle",o.VKq(11,d,e.iconColor)),o.xp6(2),o.Q6J("ngStyle",o.VKq(13,d,e.textColor)),o.xp6(1),o.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," "),o.xp6(3),o.Q6J("ngIf",e.logoutEnabled)}},directives:[s.O5,u.VK,u.OP,c.lW,u.p6,l.Hw,s.PC,h.gM],pipes:[a.X$],styles:["@media (max-width:991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),t}()},19139:function(t,e,i){"use strict";i.d(e,{L:function(){return d}});var n=i(31572),r=i(16073),o=i(66283),a=i(61511),s=i(80340),u=i(84534),c=i(48160);function l(t,e){if(1&t&&(n._UZ(0,"input",3),n.ALo(1,"translate")),2&t){var i=n.oxw();n.s9C("placeholder",n.lcZ(1,2,i.placeholder)),n.Q6J("formControl",i.formControl)}}function h(t,e){if(1&t&&(n._UZ(0,"input",4),n.ALo(1,"translate")),2&t){var i=n.oxw();n.s9C("placeholder",n.lcZ(1,2,i.placeholder)),n.Q6J("formControl",i.formControl)}}var d=function(){var t=function(){function t(){v(this,t),this.filter=new n.vpe,this.autoFocus=!1,this.formControl=new r.NI}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.formControl.valueChanges.subscribe(function(e){var i=e.trim();i=i.toLowerCase(),t.filter.emit(i)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","ml-2"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.YNc(1,l,2,4,"input",1),n.YNc(2,h,2,4,"input",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",e.autoFocus),n.xp6(1),n.Q6J("ngIf",!e.autoFocus))},directives:[o.KE,a.O5,s.Nt,r.Fj,u.hT,r.JJ,r.oH],pipes:[c.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:auto!important}"]}),t}()},91779:function(t,e,i){"use strict";i.d(e,{m:function(){return et}});var n=i(31572),r=i(58623),o=i(84140),a=i(61189),s=i(88426),u=i(31906),c=i(66599),l=i(84608),h=i(82819),d=i(61511),f=i(67033),p=i(67806),g=i(29236),m=i(43691),b=i(36922),w=i(84534),_=i(57629),A=i(39571),k=i(48160),T=i(22196),C=i(74842),S=i(91322),E=i(37043),x=i(99197),R=i(63720),I=i(1157);function O(t,e){1&t&&(n.TgZ(0,"div",20),n._UZ(1,"mat-spinner",21),n.qZA())}function P(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"th",22),n.TgZ(1,"mat-checkbox",23),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw();return t?e.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function D(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",24),n.TgZ(1,"mat-checkbox",25),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))}}function M(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ID")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function N(t,e){1&t&&n._UZ(0,"th",26)}function z(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",29),n.NdJ("click",function(t){n.CHM(i);var e=n.oxw().$implicit;return n.oxw().viewMemberGroupTree(t,e)}),n.ALo(1,"translate"),n._uU(2,"transfer_within_a_station"),n.qZA()}2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function F(t,e){if(1&t&&(n.TgZ(0,"td",27),n.YNc(1,z,3,3,"mat-icon",28),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf","DIRECT"!==i.membershipType)}}function Z(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.NAME")))}function B(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i.user))}}function q(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function U(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"i",30),n.NdJ("click",function(t){var e=n.CHM(i).$implicit;return n.oxw().changeStatus(t,e)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,r.status),""),n.s9C("matTooltip",n.xi3(3,7,r,!1)),n.xp6(4),n.hij(" ",n.lcZ(6,10,r.status)," ")}}function H(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function j(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"i",30),n.NdJ("click",function(t){var e=n.CHM(i).$implicit;return n.oxw().changeStatus(t,e)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,r.groupStatus),""),n.s9C("matTooltip",n.xi3(3,7,r,!0)),n.xp6(4),n.hij(" ",n.lcZ(6,10,r.groupStatus)," ")}}function G(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function Y(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberOrganization"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function V(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function K(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberEmail"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function J(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function Q(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberLogins"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function W(t,e){1&t&&n._UZ(0,"tr",31)}var X=function(t,e){return["/organizations",t,"members",e]};function $(t,e){if(1&t&&n._UZ(0,"tr",32),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",r.dataSource.routeAuth)("italic_font","INDIRECT"===i.membershipType)("disable-outline",!r.dataSource.routeAuth),n.Q6J("perunWebAppsMiddleClickRouterLink",r.dataSource.routeAuth?n.WLB(8,X,i.voId,i.id):null)("routerLink",r.dataSource.routeAuth?n.WLB(11,X,i.voId,i.id):null)}}function tt(t,e){1&t&&(n.TgZ(0,"app-alert",33),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.Q6J("alert_type","warn"),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}var et=function(){var t=function(){function t(e,i,r,a){v(this,t),this.dialog=e,this.authResolver=i,this.tableCheckbox=r,this.dynamicPaginatingService=a,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.pageSize=10,this.selectedGroupStatuses=[],this.page=new n.vpe,this.exporting=!1,this.pageSizeOptions=o.f7}return y(t,[{key:"ngAfterViewInit",value:function(){var t=this;this.sort.sortChange.subscribe(function(){return t.child.paginator.pageIndex=0}),(0,u.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,c.b)(function(){return t.loadMembersPage()})).subscribe()}},{key:"ngOnInit",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new s.Ct(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.pageSize,"NAME",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}},{key:"ngOnChanges",value:function(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadMembersPage())}},{key:"masterToggle",value:function(){var t=this;this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(function(e){return t.selection.select(e)})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.pageSize}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"changeStatus",value:function(t,e){var i=this;if(t.stopPropagation(),"INVALID"===e.status){var n=(0,o.kZ)();n.width="500px",n.data={member:e},this.dialog.open(a.pf,n).afterClosed().subscribe(function(t){t&&i.loadMembersPage()})}}},{key:"loadMembersPage",value:function(){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)}},{key:"exportData",value:function(t){(0,o.O6)((0,o.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"getExportDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"fullName":return t.user?(0,o.bD)(t.user):"";case"status":return t.status;case"groupStatus":return t.groupStatus;case"organization":return(0,o.Gw)(t);case"email":return(0,o.g$)(t);case"logins":return(0,o.lt)(t);default:return""}}},{key:"viewMemberGroupTree",value:function(t,e){t.stopPropagation();var i=(0,o.kZ)();i.width="800px",i.data={member:e,groupId:this.groupId},this.dialog.open(a.jd,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(l.uw),n.Y36(s.x4),n.Y36(s.UA),n.Y36(s.ly))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(o.l9,7),n.Gf(r.YE,5)),2&t)&&(n.iGM(i=n.CRH())&&(e.child=i.first),n.iGM(i=n.CRH())&&(e.sort=i.first))},inputs:{selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",updateTable:"updateTable"},outputs:{page:"page"},features:[n.TTD],decls:37,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["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"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"matTooltip","click",4,"ngIf"],[3,"matTooltip","click"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.ALo(1,"async"),n.TgZ(2,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.YNc(3,O,2,0,"div",2),n.ALo(4,"async"),n.TgZ(5,"table",3),n.ynx(6,4),n.YNc(7,P,2,3,"th",5),n.YNc(8,D,2,2,"td",6),n.BQk(),n.ynx(9,7),n.YNc(10,M,3,3,"th",8),n.YNc(11,L,2,1,"td",6),n.BQk(),n.ynx(12,9),n.YNc(13,N,1,0,"th",8),n.YNc(14,F,2,1,"td",10),n.BQk(),n.ynx(15,11),n.YNc(16,Z,3,3,"th",8),n.YNc(17,B,3,3,"td",10),n.BQk(),n.ynx(18,12),n.YNc(19,q,3,3,"th",5),n.YNc(20,U,7,12,"td",10),n.BQk(),n.ynx(21,13),n.YNc(22,H,3,3,"th",5),n.YNc(23,j,7,12,"td",10),n.BQk(),n.ynx(24,14),n.YNc(25,G,3,3,"th",5),n.YNc(26,Y,3,3,"td",10),n.BQk(),n.ynx(27,15),n.YNc(28,V,3,3,"th",5),n.YNc(29,K,3,3,"td",10),n.BQk(),n.ynx(30,16),n.YNc(31,J,3,3,"th",5),n.YNc(32,Q,3,3,"td",10),n.BQk(),n.YNc(33,W,1,0,"tr",17),n.YNc(34,$,1,14,"tr",18),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,tt,3,4,"app-alert",19),n.ALo(36,"async")),2&t&&(n.Q6J("hidden",0===e.dataSource.allMemberCount&&!1===n.lcZ(1,9,e.dataSource.loading$)),n.xp6(2),n.Q6J("dataLength",e.dataSource.allMemberCount)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("ngIf",n.lcZ(4,11,e.dataSource.loading$)),n.xp6(2),n.Q6J("dataSource",e.dataSource),n.xp6(28),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.allMemberCount&&!1===n.lcZ(36,13,e.dataSource.loading$)))},directives:[h.l,d.O5,f.BZ,r.YE,f.w1,f.fO,f.Dz,f.as,f.nj,p.$g,f.ge,g.oG,f.ev,r.nU,m.Hw,b.gM,f.XQ,f.Gk,w.YH,_.rH,A.w],pipes:[d.Ov,k.X$,T.d,C.u,S.i,E.f,x.M,R.D,I.p],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.italic_font[_ngcontent-%COMP%]{font-style:italic}"]}),t}()},4252:function(t,e,i){"use strict";i.d(e,{O:function(){return it}});var n=i(31572),r=i(58623),o=i(67033),a=i(4230),s=i(84140),u=i(61189),c=i(88426),l=i(84608),h=i(57629),d=i(82819),f=i(61511),p=i(29236),g=i(36922),m=i(43691),b=i(84534),w=i(39571),_=i(48160),A=i(22196),k=i(74842),T=i(91322),C=i(37043),S=i(99197),E=i(63720),x=i(1157);function R(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"th",22),n.TgZ(1,"mat-checkbox",23),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw();return t?e.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function I(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",24),n.TgZ(1,"mat-checkbox",25),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),n.ALo(2,"translate"),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))("disabled","DIRECT"!==r.membershipType)("matTooltip","DIRECT"!==r.membershipType?n.lcZ(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function O(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ID")))}function P(t,e){if(1&t&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function D(t,e){1&t&&n._UZ(0,"th",26)}function M(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",29),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw().viewMemberGroupTree(t)})("mouseenter",function(){return n.CHM(i),n.oxw(2).disableRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw(2);return t.disableRouting=t.disabledRouting}),n.ALo(1,"translate"),n._uU(2,"transfer_within_a_station"),n.qZA()}2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function L(t,e){if(1&t&&(n.TgZ(0,"td",27),n.YNc(1,M,3,3,"mat-icon",28),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf","DIRECT"!==i.membershipType)}}function N(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.NAME")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i.user))}}function F(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function Z(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"i",30),n.NdJ("click",function(t){var e=n.CHM(i).$implicit;return n.oxw().changeStatus(t,e)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,r.status),""),n.s9C("matTooltip",n.xi3(3,7,r,!1)),n.xp6(4),n.hij(" ",n.lcZ(6,10,r.status)," ")}}function B(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function q(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"i",30),n.NdJ("click",function(t){var e=n.CHM(i).$implicit;return n.oxw().changeStatus(t,e)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,r.groupStatus),""),n.s9C("matTooltip",n.xi3(3,7,r,!0)),n.xp6(4),n.hij(" ",n.lcZ(6,10,r.groupStatus)," ")}}function U(t,e){1&t&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")))}function H(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"check_circle_outline"),n.qZA())}function j(t,e){if(1&t&&(n.TgZ(0,"td",32),n.YNc(1,H,2,0,"mat-icon",33),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf",i.sponsored)}}function G(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function Y(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberOrganization"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function V(t,e){1&t&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function K(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberEmail"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function J(t,e){1&t&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function Q(t,e){if(1&t&&(n.TgZ(0,"td",27),n._uU(1),n.ALo(2,"memberLogins"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function W(t,e){1&t&&n._UZ(0,"tr",34)}var X=function(t,e){return["/organizations",t,"members",e]};function $(t,e){if(1&t&&n._UZ(0,"tr",35),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disabledRouting)("disable-outline",r.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",r.disableRouting?null:n.WLB(6,X,i.voId,i.id))("routerLink",r.disableRouting?null:n.WLB(9,X,i.voId,i.id))}}function tt(t,e){1&t&&(n.TgZ(0,"app-alert",36),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.Q6J("alert_type","warn"),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function et(t,e){1&t&&(n.TgZ(0,"app-alert",36),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.Q6J("alert_type","warn"),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}var it=function(){var t=function(){function t(e,i,r,o){v(this,t),this.dialog=e,this.authResolver=i,this.tableCheckbox=r,this.route=o,this.selection=new a.Ov,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.pageSize=10,this.disableRouting=!1,this.filter="",this.page=new n.vpe,this.updateTable=new n.vpe,this.pageSizeOptions=s.f7,this.canBeSelected=function(t){return"DIRECT"===t.membershipType}}return y(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"getSortDataForColumn",value:function(t,e,i){var n;switch(e){case"id":return t.id.toString();case"fullName":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return(0,s.Gw)(t);case"email":return(0,s.g$)(t);default:return""}}},{key:"getFilterDataForColumn",value:function(t,e){switch(e){case"fullName":return t.user?(0,s.bD)(t.user):"";case"email":return(0,s.g$)(t);case"logins":return(0,s.lt)(t);default:return""}}},{key:"getExportDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"fullName":return t.user?(0,s.bD)(t.user):"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return(0,s.Gw)(t);case"email":return(0,s.g$)(t);case"logins":return(0,s.lt)(t);default:return""}}},{key:"exportData",value:function(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,s.Sd)(e,i,t.displayedColumns,t.getFilterDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,s.pR)(e,i,t.getSortDataForColumn,t)}),this.dataSource.filter=this.filter,this.dataSource.data=this.members}},{key:"ngAfterViewInit",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t}))}},{key:"ngOnChanges",value:function(){var t,e=this;this.setDataSource(),this.disabledRouting=this.disableRouting,null===(t=this.route.parent)||void 0===t||t.params.subscribe(function(t){t.groupId&&(e.groupId=t.groupId)})}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"changeStatus",value:function(t,e){var i=this;if(t.stopPropagation(),"INVALID"===e.status){var n=(0,s.kZ)();n.width="500px",n.data={member:e},this.dialog.open(u.pf,n).afterClosed().subscribe(function(t){t&&i.updateTable.emit(!0)})}}},{key:"viewMemberGroupTree",value:function(t){var e=(0,s.kZ)();e.width="800px",e.data={member:t,groupId:this.groupId},this.dialog.open(u.jd,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(l.uw),n.Y36(c.x4),n.Y36(c.UA),n.Y36(h.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-members-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(s.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",filter:"filter"},outputs:{page:"page",updateTable:"updateTable"},features:[n.TTD],decls:37,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["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-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["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-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,R,2,3,"th",4),n.YNc(5,I,3,6,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,O,3,3,"th",7),n.YNc(8,P,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,D,1,0,"th",7),n.YNc(11,L,2,1,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,N,3,3,"th",7),n.YNc(14,z,3,3,"td",9),n.BQk(),n.ynx(15,11),n.YNc(16,F,3,3,"th",7),n.YNc(17,Z,7,12,"td",9),n.BQk(),n.ynx(18,12),n.YNc(19,B,3,3,"th",7),n.YNc(20,q,7,12,"td",9),n.BQk(),n.ynx(21,13),n.YNc(22,U,3,3,"th",14),n.YNc(23,j,2,1,"td",15),n.BQk(),n.ynx(24,16),n.YNc(25,G,3,3,"th",7),n.YNc(26,Y,3,3,"td",9),n.BQk(),n.ynx(27,17),n.YNc(28,V,3,3,"th",7),n.YNc(29,K,3,3,"td",9),n.BQk(),n.ynx(30,18),n.YNc(31,J,3,3,"th",4),n.YNc(32,Q,3,3,"td",9),n.BQk(),n.YNc(33,W,1,0,"tr",19),n.YNc(34,$,1,12,"tr",20),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,tt,3,4,"app-alert",21),n.YNc(36,et,3,4,"app-alert",21)),2&t&&(n.Q6J("hidden",0===e.members.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(31),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",!!e.dataSource&&0!==e.members.length&&0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("ngIf",0===e.members.length))},directives:[d.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,f.O5,o.ge,p.oG,o.ev,g.gM,r.nU,m.Hw,o.XQ,o.Gk,b.YH,h.rH,w.w],pipes:[_.X$,A.d,k.u,T.i,C.f,S.M,E.D,x.p],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_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}"]}),t}()},11418:function(t,e,i){"use strict";i.d(e,{c:function(){return p}});var n=i(31572),o=i(88426),a=i(84140),s=i(61189),u=i(84608),c=i(61511),l=i(43691),h=i(48160);function d(t,e){if(1&t&&(n.TgZ(0,"div",5),n.TgZ(1,"mat-icon"),n._uU(2),n.qZA(),n.qZA()),2&t){var i=n.oxw();n.xp6(2),n.Oqu(i.data.icon)}}function f(t,e){if(1&t&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.hij(" ",i.showTimestamp()," ")}}var p=function(){var t=function(){function t(e,i){v(this,t),this.dialog=e,this.notificationStorageService=i,this.newNotification=!1,this.closeNotification=new n.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}return y(t,[{key:"doAction",value:function(){var t=this;if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{var e=(0,a.kZ)();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(s.FM,e).afterClosed().subscribe(function(){t.closeSelf()})}}},{key:"closeSelf",value:function(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}},{key:"ngOnInit",value:function(){var t=this;(0,a.ys)(this.data.delay,function(){t.alreadyClosed||t.waiting||t.closeSelf()})}},{key:"showTimestamp",value:function(){var t=r(this.data.timeStamp.split(":"),2),e=t[0],i=t[1];return i.length<2?e+":0"+i:this.data.timeStamp}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.uw),n.Y36(o.SZ))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"div",0),n.NdJ("click",function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()}),n.YNc(2,d,3,1,"div",1),n.TgZ(3,"div",2),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,f,2,1,"div",3),n.TgZ(7,"div",4),n.NdJ("click",function(){return e.waiting=!0,e.doAction()}),n._uU(8),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Gre("notification ",e.inDialog?"":"mat-elevation-z7",""),n.ekj("error","error"===e.data.type)("success","success"===e.data.type),n.xp6(2),n.Q6J("ngIf",null!==e.data.icon),n.xp6(2),n.hij(" ",n.lcZ(5,12,e.data.title)," "),n.xp6(2),n.Q6J("ngIf",e.inDialog),n.xp6(1),n.Q6J("hidden",e.alreadyPressed),n.xp6(1),n.hij(" ",e.data.actionText," "))},directives:[c.O5,l.Hw],pipes:[h.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}"]}),t}()},16306:function(t,e,i){"use strict";i.d(e,{$:function(){return O}});var n=i(31572),r=i(88426),o=i(33642),a=i(84608),s=i(48160),u=i(66283),c=i(80340),l=i(16073),h=i(61511),d=i(15980);function p(t,e){1&t&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}var g=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this.dialogRef=e,this.translate=i,this.notificator=n,this.rtMessages=r,this.storeService=o,this.message="",this.subject="",this.instanceName=""}return y(t,[{key:"ngOnInit",value:function(){this.instanceName=this.storeService.get("config")}},{key:"sendBugReport",value:function(){var t=this;this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(function(e){t.dialogRef.afterClosed().subscribe(function(){return t.notificator.showSuccess(t.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+e.ticketNumber)}),t.dialogRef.close()})}},{key:"getFullEmailBody",value:function(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(60306).i8}},{key:"close",value:function(){this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.so),n.Y36(s.sK),n.Y36(r.V6),n.Y36(o.Hr),n.Y36(r.d6))},t.\u0275cmp=n.Xpm({type:t,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(t,e){if(1&t&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n.TgZ(4,"mat-form-field"),n.TgZ(5,"mat-label"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"input",2,3),n.NdJ("ngModelChange",function(t){return e.subject=t}),n.qZA(),n.YNc(10,p,3,3,"mat-error",4),n.qZA(),n.TgZ(11,"mat-form-field"),n.TgZ(12,"mat-label"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"textarea",5),n.NdJ("ngModelChange",function(t){return e.message=t}),n.ALo(16,"translate"),n._uU(17," "),n.qZA(),n.TgZ(18,"mat-hint"),n._uU(19),n.ALo(20,"translate"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(21,"div",6),n.TgZ(22,"div",7),n.TgZ(23,"button",8),n.NdJ("click",function(){return e.close()}),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.TgZ(26,"button",9),n.NdJ("click",function(){return e.sendBugReport()}),n._uU(27),n.ALo(28,"translate"),n.qZA(),n.qZA(),n.qZA()),2&t){var i=n.MAs(9);n.xp6(1),n.Oqu(n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),n.xp6(5),n.Oqu(n.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),n.xp6(2),n.Q6J("ngModel",e.subject),n.xp6(2),n.Q6J("ngIf",i.invalid),n.xp6(3),n.Oqu(n.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),n.xp6(2),n.s9C("placeholder",n.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),n.Q6J("ngModel",e.message),n.xp6(4),n.Oqu(n.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),n.xp6(5),n.hij(" ",n.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",i.invalid),n.xp6(1),n.hij(" ",n.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[a.uh,a.xY,u.KE,u.hX,c.Nt,l.Fj,l.Q7,l.JJ,l.On,h.O5,u.bx,a.H8,d.lW,u.TO],pipes:[s.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t}(),m=i(84140),b=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t,e,i){return t["".concat(i,"_").concat(e)]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"localisedText",type:t,pure:!0}),t}(),w=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t,e){return t["link_"+e]||t.link_en}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"localisedLink",type:t,pure:!0}),t}(),_=function(t){return{color:t}};function A(t,e){if(1&t&&(n.TgZ(0,"i",16),n._uU(1),n.qZA()),2&t){var i=n.oxw().$implicit,r=n.oxw(3);n.Q6J("ngStyle",n.VKq(2,_,r.linksTextColor)),n.xp6(1),n.hij(" ",i.icon," ")}}function k(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",17),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw(3).openDialog(t.dialog)}),n._uU(1),n.ALo(2,"localisedText"),n.qZA()}if(2&t){var r=n.oxw().$implicit,o=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,_,o.linksTextColor)),n.xp6(1),n.hij("",n.Dn7(2,2,r,o.language,"label")," ")}}function T(t,e){if(1&t&&(n.TgZ(0,"a",18),n.ALo(1,"localisedLink"),n._uU(2),n.ALo(3,"localisedText"),n.qZA()),2&t){var i=n.oxw().$implicit,r=n.oxw(3);n.Q6J("href",n.xi3(1,3,i,r.language),n.LSH)("ngStyle",n.VKq(10,_,r.linksTextColor)),n.xp6(2),n.Oqu(n.Dn7(3,6,i,r.language,"label"))}}function C(t,e){if(1&t&&(n.TgZ(0,"span",19),n._uU(1),n.ALo(2,"localisedText"),n.qZA()),2&t){var i=n.oxw().$implicit,r=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,_,r.linksTextColor)),n.xp6(1),n.Oqu(n.Dn7(2,2,i,r.language,"label"))}}function S(t,e){if(1&t&&(n.TgZ(0,"div",11),n.YNc(1,A,2,4,"i",12),n.YNc(2,k,3,8,"span",13),n.YNc(3,T,4,12,"a",14),n.ALo(4,"localisedLink"),n.YNc(5,C,3,8,"span",15),n.ALo(6,"localisedLink"),n.qZA()),2&t){var i=e.$implicit,r=n.oxw(3);n.xp6(1),n.Q6J("ngIf",i.icon),n.xp6(1),n.Q6J("ngIf",i.dialog),n.xp6(1),n.Q6J("ngIf",n.xi3(4,4,i,r.language)&&!i.dialog),n.xp6(2),n.Q6J("ngIf",!n.xi3(6,7,i,r.language)&&!i.dialog)}}function E(t,e){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,S,7,10,"div",10),n.qZA()),2&t){var i=n.oxw().$implicit;n.xp6(1),n.Q6J("ngForOf",i.elements)}}function x(t,e){if(1&t&&(n.TgZ(0,"div",7),n.TgZ(1,"h6",8),n._uU(2),n.ALo(3,"localisedText"),n.qZA(),n.YNc(4,E,2,1,"div",9),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Q6J("ngStyle",n.VKq(7,_,r.headersTextColor)),n.xp6(1),n.hij(" ",n.Dn7(3,3,i,r.language,"title")," "),n.xp6(2),n.Q6J("ngIf",i.elements)}}function R(t,e){if(1&t&&(n.TgZ(0,"span"),n.TgZ(1,"a",6),n._uU(2),n.qZA(),n.qZA()),2&t){var i=e.$implicit,r=e.index,o=n.oxw();n.xp6(1),n.Q6J("href",i.url,n.LSH)("ngStyle",n.VKq(3,_,o.copyrightTextColor)),n.xp6(1),n.Oqu(r?", "+i.name:i.name)}}var I=function(t){return{background:t}},O=function(){var t=function(){function t(e,i,r){v(this,t),this.storeService=e,this.translateService=i,this.dialog=r,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),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.footerHeight=new n.vpe}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.translateService.onLangChange.subscribe(function(e){t.language=e.lang}),this.version=i(60306).i8,this.items=this.storeService.get("footer","columns"),this.copyrightItems=this.storeService.get("footer","copyright_items"),this.getHeight()}},{key:"openDialog",value:function(t){var e=(0,m.kZ)();switch(t){case"reportIssue":e.width="550px",this.dialog.open(g,e)}}},{key:"getHeight",value:function(){var t,e=1,i=f(this.items);try{for(i.s();!(t=i.n()).done;){var n=t.value;e=e-1)},directives:[r.O5,o.Hw,a.gM],pipes:[s.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),t}()},59403:function(t,e,i){"use strict";i.d(e,{t:function(){return u}});var n=i(31572),r=i(15980),o=i(36922),a=i(43691),s=i(48160),u=function(){var t=function(){function t(){v(this,t),this.refresh=new n.vpe}return y(t,[{key:"onClickbutton",value:function(t){this.refresh.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&(n.TgZ(0,"button",0),n.NdJ("click",function(t){return e.onClickbutton(t)}),n.ALo(1,"translate"),n._UZ(2,"mat-icon",1),n.qZA()),2&t&&(n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),n.Q6J("disabled",e.disabled),n.xp6(2),n.s9C("svgIcon",e.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[r.lW,o.gM,a.Hw],pipes:[s.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}"]}),t}()},88884:function(t,e,i){"use strict";i.d(e,{C:function(){return G}});var n=i(31572),r=i(58623),o=i(67033),a=i(4230),s=i(84140),u=i(88426),c=i(82819),l=i(61511),h=i(29236),d=i(72953),f=i(46837),p=i(84534),g=i(57629),m=i(39571),b=i(48160),w=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){if(null==t)return null;var e="";return t.forEach(function(t){e=e.concat(t.tagName)}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"resourceTagsToString",type:t,pure:!0}),t}(),_=i(95603);function A(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"th",20),n.TgZ(1,"mat-checkbox",21),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw();return t?e.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function k(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",22),n.TgZ(1,"mat-checkbox",23),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.itemSelectionToggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))}}function T(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")))}function C(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function S(t,e){1&t&&n._UZ(0,"th",20)}function E(t,e){if(1&t&&(n.TgZ(0,"td",25),n._UZ(1,"perun-web-apps-recently-viewed-icon",26),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Q6J("recentIds",r.recentIds)("id",i.id)}}function x(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")))}function R(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.name)}}function I(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")))}function O(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.vo.name)}}function P(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")))}function D(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",25),n.TgZ(1,"perun-web-apps-group-resource-status",27),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw();return t.disabledRouting=t.disableRouting})("statusChange",function(){return n.CHM(i),n.oxw().refreshTable.emit()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("theme","group-theme")("resourceId",r.id)("groupId",o.groupId)("failureCause",r.failureCause)("status",r.status)}}function M(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.facility.name)}}function N(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"resourceTagsToString"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i.resourceTags))}}function F(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")))}function Z(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.description)}}function B(t,e){1&t&&n._UZ(0,"tr",28)}var q=function(t){return[t]};function U(t,e){if(1&t&&(n._UZ(0,"tr",29),n.ALo(1,"getResourceRoute"),n.ALo(2,"getResourceRoute")),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disableRouting)("disable-outline",r.disabledRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",n.VKq(12,q,r.disabledRouting?null:n.xi3(1,6,i,r.routingVo)))("routerLink",r.disabledRouting?null:n.xi3(2,9,i,r.routingVo))}}function H(t,e){1&t&&(n.TgZ(0,"app-alert",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function j(t,e){1&t&&(n.TgZ(0,"app-alert",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}var G=function(){var t=function(){function t(e,i){v(this,t),this.guiAuthResolver=e,this.tableCheckbox=i,this.resources=[],this.selection=new a.Ov(!0,[]),this.pageSize=10,this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","name","vo","status","facility","tags","description"],this.pageSizeOptions=s.f7,this.groupId=null,this.page=new n.vpe,this.refreshTable=new n.vpe,this.allSelected=new n.vpe,this.removeAuth=!1,this.addAuth=!1}return y(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"ngOnInit",value:function(){this.disabledRouting=this.disableRouting}},{key:"ngOnChanges",value:function(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.setDataSource(),this.setAuth()}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return t.vo.name;case"name":return t.name;case"facility":return t.facility.name;case"description":return t.description;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"tags":if(!t.resourceTags)return t[e];var n="";return t.resourceTags.forEach(function(t){n=n.concat(t.tagName)}),n;case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}},{key:"exportData",value:function(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,s.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t,!0)},this.dataSource.sortData=function(e,i){return(0,s.pR)(e,i,t.getDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}},{key:"isAllSelected",value:function(){var t=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource);return this.allSelected.emit(t),t}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1),this.setAuth()}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"setAuth",value:function(){var t=this,e=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce(function(i,n){return i&&t.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",e.concat([n]))},!0),this.addAuth=this.selection.selected.reduce(function(i,n){return i&&t.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",e.concat([n]))},!0)}},{key:"itemSelectionToggle",value:function(t){this.selection.toggle(t),this.setAuth()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.x4),n.Y36(u.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(s.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId"},outputs:{page:"page",refreshTable:"refreshTable",allSelected:"allSelected"},features:[n.TTD],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","status"],["matColumnDef","facility"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],[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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,A,2,3,"th",4),n.YNc(5,k,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,T,3,3,"th",7),n.YNc(8,C,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,S,1,0,"th",4),n.YNc(11,E,2,2,"td",10),n.BQk(),n.ynx(12,11),n.YNc(13,x,3,3,"th",7),n.YNc(14,R,2,1,"td",10),n.BQk(),n.ynx(15,12),n.YNc(16,I,3,3,"th",7),n.YNc(17,O,2,1,"td",10),n.BQk(),n.ynx(18,13),n.YNc(19,P,3,3,"th",7),n.YNc(20,D,2,5,"td",10),n.BQk(),n.ynx(21,14),n.YNc(22,M,3,3,"th",7),n.YNc(23,L,2,1,"td",10),n.BQk(),n.ynx(24,15),n.YNc(25,N,3,3,"th",7),n.YNc(26,z,3,3,"td",10),n.BQk(),n.ynx(27,16),n.YNc(28,F,3,3,"th",7),n.YNc(29,Z,2,1,"td",10),n.BQk(),n.YNc(30,B,1,0,"tr",17),n.YNc(31,U,3,14,"tr",18),n.qZA(),n.qZA(),n.qZA(),n.YNc(32,H,3,3,"app-alert",19),n.YNc(33,j,3,3,"app-alert",19)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.resources.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(28),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.resources.length),n.xp6(1),n.Q6J("ngIf",0===e.resources.length))},directives:[c.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,r.nU,d.W,f.x,o.XQ,o.Gk,p.YH,g.rH,m.w],pipes:[b.X$,w,_.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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t}()},23888:function(t,e,i){"use strict";i.d(e,{j:function(){return N}});var n=i(31572),r=i(4230),o=i(58623),a=i(67033),s=i(88426),u=i(84140),c=i(57629),l=i(82819),h=i(61511),d=i(29236),f=i(84534),p=i(39571),g=i(48160),m=i(83787),b=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){var e=t.find(function(t){return"mail"===t.friendlyName});return e?e.value.toString():"N/A"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"getMailFromAttributes",type:t,pure:!0}),t}();function w(t,e){1&t&&n._UZ(0,"th",17)}function _(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",18),n.TgZ(1,"mat-checkbox",19),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))}}function A(t,e){1&t&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))))}function k(t,e){if(1&t&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.userExtSource.id)}}function T(t,e){1&t&&(n.TgZ(0,"th",17),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))))}function C(t,e){if(1&t&&(n.TgZ(0,"td",21),n._uU(1),n.ALo(2,"getMailFromAttributes"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i.attributes))}}function S(t,e){if(1&t&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,i.extSourceNameHeader?i.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME")))}}function E(t,e){if(1&t&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.userExtSource.extSource.name)}}function x(t,e){if(1&t&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,i.loginHeader?i.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN")))}}function R(t,e){if(1&t&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.userExtSource.login)}}function I(t,e){1&t&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))))}function O(t,e){if(1&t&&(n.TgZ(0,"td",22),n._uU(1),n.ALo(2,"date"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,i.userExtSource.lastAccess,"d.M.y H:mm:ss"))}}function P(t,e){1&t&&n._UZ(0,"tr",23)}var D=function(t,e){return["/admin","users",t,"identities",e]};function M(t,e){if(1&t&&n._UZ(0,"tr",24),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disableRouting)("disable-outline",r.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",r.disableRouting?null:n.WLB(6,D,r.userId,i.userExtSource.id))("routerLink",r.disableRouting?null:n.WLB(9,D,r.userId,i.userExtSource.id))}}function L(t,e){1&t&&(n.TgZ(0,"app-alert",25),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}var N=function(){var t=function(){function t(e,i){v(this,t),this.route=e,this.authResolver=i,this.selection=new r.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSize=5,this.page=new n.vpe,this.pageSizeOptions=u.f7}return y(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngAfterViewInit",value:function(){var t=this;this.disableRouting||this.route.parent.params.subscribe(function(e){t.userId=e.userId}),this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new a.by(this.userExtSources),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.userExtSource.id.toString();case"mail":var i=t.attributes.find(function(t){return"mail"===t.friendlyName});return i?i.value.toString():"N/A";case"extSourceName":return t.userExtSource.extSource.name;case"login":return t.userExtSource.login;case"lastAccess":return t.userExtSource.lastAccess.split(".")[0];default:return""}}},{key:"exportData",value:function(t){(0,u.O6)((0,u.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return(0,u.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,u.pR)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"checkboxLabel",value:function(t){return"".concat(this.selection.isSelected(t.userExtSource)?"deselect":"select"," row ").concat(t.userExtSource.id+1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.gz),n.Y36(s.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(u.l9,7),n.Gf(o.YE,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.child=i.first),n.iGM(i=n.CRH())&&(e.matSort=i.first))},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",pageSize:"pageSize",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},outputs:{page:"page"},features:[n.TTD],decls:24,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["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",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,w,1,0,"th",4),n.YNc(5,_,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,A,4,5,"th",7),n.YNc(8,k,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,T,4,5,"th",4),n.YNc(11,C,3,3,"td",8),n.BQk(),n.ynx(12,10),n.YNc(13,S,4,5,"th",7),n.YNc(14,E,2,1,"td",8),n.BQk(),n.ynx(15,11),n.YNc(16,x,4,5,"th",7),n.YNc(17,R,2,1,"td",8),n.BQk(),n.ynx(18,12),n.YNc(19,I,4,5,"th",7),n.YNc(20,O,3,4,"td",13),n.BQk(),n.YNc(21,P,1,0,"tr",14),n.YNc(22,M,1,12,"tr",15),n.qZA(),n.qZA(),n.qZA(),n.YNc(23,L,4,5,"app-alert",16)),2&t&&(n.Q6J("hidden",0===e.userExtSources.length||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(19),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.userExtSources.length))},directives:[l.l,a.BZ,o.YE,a.w1,a.fO,a.Dz,a.as,a.nj,h.O5,a.ge,a.ev,d.oG,o.nU,a.XQ,a.Gk,f.YH,c.rH,p.w],pipes:[g.X$,m.a,b,h.uU],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t}()},7927:function(t,e,i){"use strict";i.d(e,{S:function(){return s}});var n=i(31572),r=i(84140),o=i(44973),a=i(48160),s=function(){var t=function(){function t(){v(this,t),this.disableAutoSelect=!1,this.userSelected=new n.vpe,this.userFullNameFunction=r.bD}return y(t,[{key:"ngOnInit",value:function(){this.users=this.users.sort(r.fx)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-user-search-select"]],inputs:{users:"users",disableAutoSelect:"disableAutoSelect"},outputs:{userSelected:"userSelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.userSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.users)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.userFullNameFunction)("mainTextFunction",e.userFullNameFunction)("selectPlaceholder",n.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",n.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",n.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},directives:[o.i],pipes:[a.X$],styles:[""]}),t}()},19386:function(t,e,i){"use strict";i.d(e,{M:function(){return a}});var n=i(31572),r=i(44973),o=i(48160),a=function(){var t=function t(){v(this,t),this.voSelected=new n.vpe,this.nameFunction=function(t){return t.name},this.shortNameFunction=function(t){return t.shortName},this.searchFunction=function(t){return t.name+t.shortName+t.id}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vos:"vos"},outputs:{voSelected:"voSelected"},decls:4,vars:13,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.voSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.vos)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",n.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",n.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",n.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},directives:[r.i],pipes:[o.X$],styles:[""]}),t}()},97162:function(t,e,i){"use strict";i.d(e,{Z:function(){return D}});var n=i(31572),r=i(58623),o=i(67033),a=i(84140),s=i(88426),u=i(82819),c=i(61511),l=i(29236),h=i(72953),d=i(84534),f=i(57629),p=i(39571),g=i(48160);function m(t,e){1&t&&n._UZ(0,"th",15)}function b(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",16),n.TgZ(1,"mat-checkbox",17),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))}}function w(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")))}function _(t,e){if(1&t&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function A(t,e){1&t&&n._UZ(0,"th",15)}function k(t,e){if(1&t&&(n.TgZ(0,"td",19),n._UZ(1,"perun-web-apps-recently-viewed-icon",20),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Q6J("recentIds",r.recentIds)("id",i.id)}}function T(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")))}function C(t,e){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.shortName)}}function S(t,e){1&t&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")))}function E(t,e){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.name)}}function x(t,e){1&t&&n._UZ(0,"tr",21)}var R=function(t){return["/organizations",t]};function I(t,e){if(1&t&&n._UZ(0,"tr",22),2&t){var i=e.$implicit,r=n.oxw();n.ekj("disable-outline",r.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",r.disableRouting?null:n.VKq(4,R,i.id))("routerLink",r.disableRouting?null:n.VKq(6,R,i.id))}}function O(t,e){1&t&&(n.TgZ(0,"app-alert",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function P(t,e){1&t&&(n.TgZ(0,"app-alert",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}var D=function(){var t=function(){function t(e){v(this,t),this.authResolver=e,this.vos=[],this.displayedColumns=[],this.pageSize=10,this.disableRouting=!1,this.pageSizeOptions=a.f7,this.page=new n.vpe}return y(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"shortName":return t.shortName;case"name":return t.name;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;default:return t[e]}}},{key:"exportData",value:function(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,a.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,a.pR)(e,i,t.getDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}},{key:"checkboxLabel",value:function(t){return"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(a.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[n.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","recent"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,m,1,0,"th",4),n.YNc(5,b,2,2,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,w,3,3,"th",7),n.YNc(8,_,2,1,"td",5),n.BQk(),n.ynx(9,8),n.YNc(10,A,1,0,"th",4),n.YNc(11,k,2,2,"td",9),n.BQk(),n.ynx(12,10),n.YNc(13,T,3,3,"th",7),n.YNc(14,C,2,1,"td",9),n.BQk(),n.ynx(15,11),n.YNc(16,S,3,3,"th",7),n.YNc(17,E,2,1,"td",9),n.BQk(),n.YNc(18,x,1,0,"tr",12),n.YNc(19,I,1,8,"tr",13),n.qZA(),n.qZA(),n.qZA(),n.YNc(20,O,3,3,"app-alert",14),n.YNc(21,P,3,3,"app-alert",14)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.vos.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(16),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.vos.length),n.xp6(1),n.Q6J("ngIf",0===e.vos.length))},directives:[u.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,c.O5,o.ge,o.ev,l.oG,r.nU,h.W,o.XQ,o.Gk,d.YH,f.rH,p.w],pipes:[g.X$],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}tr[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t}()},61189:function(t,e,i){"use strict";i.d(e,{Wr:function(){return dt},r2:function(){return ht},gr:function(){return vt},u3:function(){return Qt},Qu:function(){return he},pf:function(){return _},hd:function(){return ie},kZ:function(){return $t},wA:function(){return lt},rd:function(){return D},Eg:function(){return P},Bp:function(){return q},qD:function(){return qt},jd:function(){return Zt},FM:function(){return V},Lc:function(){return it},mk:function(){return ot},Tf:function(){return kt}}),i(22280);var n=i(84608),r=i(33642),o=i(88426),a=i(31572),s=i(48160),u=i(61511),c=i(15980),l=i(67806),h=i(66283),d=i(4786),p=i(71522);function g(t,e){1&t&&a._UZ(0,"mat-spinner",6)}function m(t,e){if(1&t&&(a.TgZ(0,"mat-option",16),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.Q6J("value",i),a.xp6(1),a.Oqu(i)}}function b(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"mat-form-field",13),a.TgZ(1,"mat-label"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"mat-select",14),a.NdJ("selectionChange",function(t){return a.CHM(i),a.oxw(2).changeStatus(t)}),a.YNc(5,m,2,2,"mat-option",15),a.qZA(),a.qZA()}if(2&t){var n=a.oxw(2);a.xp6(2),a.Oqu(a.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),a.xp6(3),a.Q6J("ngForOf",n.allStatuses)}}function w(t,e){if(1&t&&(a.TgZ(0,"div",7),a.TgZ(1,"div",8),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"div",9),a._uU(5),a.qZA(),a.TgZ(6,"div",8),a._uU(7),a.ALo(8,"translate"),a.YNc(9,b,6,4,"mat-form-field",10),a.qZA(),a.TgZ(10,"div",11),a._UZ(11,"i",12),a.qZA(),a.qZA()),2&t){var i=a.oxw();a.xp6(2),a.AsE("",a.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",i.actualStatus,""),a.xp6(3),a.Oqu(i.description),a.xp6(2),a.hij(" ",a.lcZ(8,8,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),a.xp6(2),a.Q6J("ngIf",!i.loading),a.xp6(2),a.Q6J("innerHTML",i.changeMessage,a.oJD)}}var _=function(){var t=function(){function t(e,i,n,r,o,a){v(this,t),this.dialogRef=e,this.data=i,this.memberManager=n,this.groupsManager=r,this.notificatorService=o,this.translate=a,this.loading=!1,this.allStatuses=["VALID","INVALID","EXPIRED","DISABLED"]}return y(t,[{key:"ngOnInit",value:function(){var t=this;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.allStatuses=this.data.groupId?"VALID"===this.actualStatus?["EXPIRED"]:["VALID"]:"INVALID"===this.actualStatus?["VALID","EXPIRED"]:this.allStatuses.filter(function(e){return e!==t.actualStatus}),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.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=""}}},{key:"changeStatus",value:function(t){this.selectedStatus=t.value,this.submitButtonText="VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}},{key:"changeStatusMessage",value:function(t,e){if("VALID"===t)switch(e){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(e){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=""}}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){var t=this;this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe(function(e){t.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(function(i){t.notificatorService.showSuccess(i),t.dialogRef.close(e)})},function(){return t.loading=!1}):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe(function(e){t.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(function(i){t.notificatorService.showSuccess(i),t.dialogRef.close(e)})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.uq),a.Y36(r.ff),a.Y36(o.V6),a.Y36(s.sK))},t.\u0275cmp=a.Xpm({type:t,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","mr-2 mt-2",4,"ngIf"],[1,"text-muted","new-line"],[3,"innerHTML"],[1,"mr-2","mt-2"],[3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,g,1,0,"mat-spinner",1),a.YNc(5,w,12,10,"div",2),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return e.cancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return e.submit()}),a._uU(11),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),a.xp6(2),a.Q6J("disabled",e.loading||!e.selectedStatus),a.xp6(1),a.hij(" ",e.submitButtonText," "))},directives:[n.uh,u.O5,n.H8,c.lW,l.$g,n.xY,h.KE,h.hX,d.gD,u.sg,p.ey],pipes:[s.X$],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),t}(),A=i(16073),k=i(80340);function T(t,e){1&t&&(a.TgZ(0,"h1",7),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")))}function C(t,e){1&t&&(a.TgZ(0,"h1",7),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")))}function S(t,e){1&t&&(a.TgZ(0,"h1",7),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")))}function E(t,e){1&t&&(a.TgZ(0,"h1",7),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")))}function x(t,e){1&t&&a._UZ(0,"mat-spinner",8)}function R(t,e){if(1&t&&(a.TgZ(0,"mat-form-field"),a._UZ(1,"input",13),a.ALo(2,"translate"),a.qZA()),2&t){var i=a.oxw(2);a.xp6(1),a.MGl("placeholder","",a.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),a.Q6J("value",i.shortName)}}function I(t,e){if(1&t&&(a.TgZ(0,"mat-form-field",14),a._UZ(1,"textarea",15),a.ALo(2,"translate"),a.TgZ(3,"mat-error"),a._uU(4),a.ALo(5,"translate"),a.qZA(),a.qZA()),2&t){var i=a.oxw(2);a.xp6(1),a.MGl("placeholder","",a.lcZ(2,3,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),a.Q6J("formControl",i.descriptionCtrl),a.xp6(3),a.hij(" ",a.lcZ(5,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_DESCRIPTION")," ")}}function O(t,e){if(1&t&&(a.TgZ(0,"div",9),a.YNc(1,R,3,4,"mat-form-field",10),a.TgZ(2,"mat-form-field"),a._UZ(3,"input",11),a.ALo(4,"translate"),a.TgZ(5,"mat-error"),a._uU(6),a.ALo(7,"translate"),a.qZA(),a.qZA(),a.YNc(8,I,6,7,"mat-form-field",12),a.qZA()),2&t){var i=a.oxw();a.xp6(1),a.Q6J("ngIf",2===i.dialogType),a.xp6(2),a.MGl("placeholder","",a.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),a.Q6J("formControl",i.nameCtrl),a.xp6(3),a.hij(" ",i.invalidNameMessage.length?i.invalidNameMessage:a.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),a.xp6(2),a.Q6J("ngIf",2!==i.dialogType)}}var P=function(t){return t[t.FACILITY=0]="FACILITY",t[t.RESOURCE=1]="RESOURCE",t[t.VO=2]="VO",t[t.GROUP=3]="GROUP",t}({}),D=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c){v(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translateService=r,this.facilitiesManager=o,this.resourcesManager=a,this.groupsManager=s,this.vosManager=u,this.store=c,this.invalidNameMessage=this.data.dialogType===P.GROUP?this.store.get("groupNameErrorMessage"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===P.GROUP?this.store.get("groupNameSecondaryRegex"):""}return y(t,[{key:"ngOnInit",value:function(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case P.FACILITY:this.nameCtrl=new A.NI(this.data.facility.name,[A.kI.required,A.kI.pattern(".*[\\S]+.*"),A.kI.maxLength(129)]),this.descriptionCtrl=new A.NI(this.data.facility.description,[A.kI.required,A.kI.pattern(".*[\\S]+.*"),A.kI.maxLength(129)]);break;case P.RESOURCE:this.nameCtrl=new A.NI(this.data.resource.name,[A.kI.required,A.kI.pattern(".*[\\S]+.*"),A.kI.maxLength(129)]),this.descriptionCtrl=new A.NI(this.data.resource.description,[A.kI.required,A.kI.pattern(".*[\\S]+.*"),A.kI.maxLength(129)]);break;case P.GROUP:var t=this.data.group.name.split(":");this.nameCtrl=new A.NI(t[t.length-1],[A.kI.required,A.kI.pattern(".*[\\S]+.*"),A.kI.pattern(this.secondaryRegex),A.kI.maxLength(129)]),this.descriptionCtrl=new A.NI(this.data.group.description,[A.kI.required,A.kI.pattern(".*[\\S]+.*"),A.kI.maxLength(129)]);break;case P.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new A.NI(this.data.vo.name,[A.kI.required,A.kI.pattern(".*[\\S]+.*"),A.kI.maxLength(129)]),this.descriptionCtrl=new A.NI}}},{key:"cancel",value:function(){this.dialogRef.close(!1)}},{key:"submit",value:function(){switch(this.loading=!0,this.dialogType){case P.FACILITY:this.editFacility();break;case P.RESOURCE:this.editResource();break;case P.GROUP:this.editGroup();break;case P.VO:this.editVo()}}},{key:"editResource",value:function(){var t=this;this.data.resource.name=this.nameCtrl.value,this.data.resource.description=this.descriptionCtrl.value,this.resourcesManager.updateResource({resource:this.data.resource}).subscribe(function(){t.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.RESOURCE_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}},{key:"editFacility",value:function(){var t=this;this.data.facility.name=this.nameCtrl.value,this.data.facility.description=this.descriptionCtrl.value,this.facilitiesManager.updateFacility({facility:this.data.facility}).subscribe(function(){t.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FACILITY_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}},{key:"editGroup",value:function(){var t=this;this.groupsManager.getGroupById(this.data.group.id).subscribe(function(e){var i=e;i.name=t.nameCtrl.value,i.description=t.descriptionCtrl.value,t.groupsManager.updateGroup({group:i}).subscribe(function(){t.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"editVo",value:function(){var t=this;this.data.vo.name=this.nameCtrl.value,this.vosManager.updateVo({vo:this.data.vo}).subscribe(function(){t.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.VO_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.V6),a.Y36(s.sK),a.Y36(r.IQ),a.Y36(r.xk),a.Y36(r.ff),a.Y36(r.YF),a.Y36(o.d6))},t.\u0275cmp=a.Xpm({type:t,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","","required","",1,"overflow-hidden",3,"formControl","placeholder"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.YNc(1,T,3,3,"h1",0),a.YNc(2,C,3,3,"h1",0),a.YNc(3,S,3,3,"h1",0),a.YNc(4,E,3,3,"h1",0),a.TgZ(5,"div",1),a.YNc(6,x,1,0,"mat-spinner",2),a.YNc(7,O,9,9,"div",3),a.qZA(),a.TgZ(8,"div",4),a.TgZ(9,"button",5),a.NdJ("click",function(){return e.cancel()}),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.TgZ(12,"button",6),a.NdJ("click",function(){return e.submit()}),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("ngIf",0===e.dialogType),a.xp6(1),a.Q6J("ngIf",1===e.dialogType),a.xp6(1),a.Q6J("ngIf",2===e.dialogType),a.xp6(1),a.Q6J("ngIf",3===e.dialogType),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),a.xp6(2),a.Q6J("disabled",e.loading||e.nameCtrl.invalid||e.descriptionCtrl.invalid),a.xp6(1),a.hij(" ",a.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},directives:[u.O5,n.xY,n.H8,c.lW,n.uh,l.$g,h.KE,k.Nt,A.Fj,A.Q7,A.JJ,A.oH,h.TO,k.D7],pipes:[s.X$],styles:[""]}),t}(),M=i(67004),L=i(84140),N=i(43691);function z(t,e){1&t&&a._UZ(0,"mat-spinner",8)}function F(t,e){if(1&t&&(a.TgZ(0,"div",9),a.TgZ(1,"span"),a._uU(2),a.ALo(3,"translate"),a.TgZ(4,"b"),a._uU(5),a.qZA(),a.qZA(),a._UZ(6,"br"),a.TgZ(7,"span"),a._uU(8),a.ALo(9,"translate"),a.TgZ(10,"b"),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a._UZ(13,"br"),a.TgZ(14,"span"),a._uU(15),a.ALo(16,"translate"),a.TgZ(17,"b"),a._uU(18),a.ALo(19,"translate"),a.qZA(),a.qZA(),a._UZ(20,"br"),a.TgZ(21,"span"),a._uU(22),a.ALo(23,"translate"),a.TgZ(24,"b"),a._uU(25),a.ALo(26,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t){var i=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),a.xp6(3),a.Oqu(i.group.name),a.xp6(3),a.hij(" ",a.lcZ(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),a.xp6(3),a.Oqu(a.lcZ(12,12,i.getSynchronizationType())),a.xp6(4),a.hij(" ",a.lcZ(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),a.xp6(3),a.Oqu(a.lcZ(19,16,i.getLastSyncState())),a.xp6(4),a.hij(" ",a.lcZ(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),a.xp6(3),a.Oqu(a.lcZ(26,20,i.getLastSyncTime()))}}function Z(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"button",10),a.NdJ("click",function(){return a.CHM(i),a.oxw().onForceStructure()}),a._uU(1),a.ALo(2,"translate"),a.qZA()}if(2&t){var n=a.oxw();a.Q6J("disabled",n.loading),a.xp6(1),a.hij(" ",a.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function B(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"button",10),a.NdJ("click",function(){return a.CHM(i),a.oxw().onForce()}),a._uU(1),a.ALo(2,"translate"),a.qZA()}if(2&t){var n=a.oxw();a.Q6J("disabled",n.loading),a.xp6(1),a.hij(" ",a.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}var q=function(){var t=function(){function t(e,i,n,r){v(this,t),this.dialogRef=e,this.data=i,this.groupService=n,this.notificator=r,this.loading=!0}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.loadGroup()}},{key:"onForceStructure",value:function(){var t=this;this.loading=!0,this.groupService.forceGroupStructureSynchronization(this.data.groupId).subscribe(function(){t.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.STRUCT_FORCE_SUCCESS"),t.loading=!1},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(null)}},{key:"onForce",value:function(){var t=this;this.loading=!0,this.isBasic()&&this.groupService.forceGroupSynchronization(this.group.id).subscribe(function(){t.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),t.refresh()},function(){return t.loading=!1}),this.isStructured()&&this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe(function(){t.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),t.refresh()},function(){return t.loading=!1})}},{key:"getSynchronizationType",value:function(){return this.isBasic()?"DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC":this.isStructured()?"DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC":"N/A"}},{key:"isBasic",value:function(){return"BASIC"===this.type}},{key:"isStructured",value:function(){return"STRUCTURED"===this.type}},{key:"getLastSyncState",value:function(){return this.isBasic()?""!==this.lastSyncState?this.lastSyncState:"OK":this.isStructured()?""!==this.lastStructSyncState?this.lastStructSyncState:"OK":"N/A"}},{key:"getLastSyncTime",value:function(){return this.isBasic()?this.lastSyncTime:this.isStructured()?this.lastStructSyncTime:"N/A"}},{key:"refresh",value:function(){this.loadGroup()}},{key:"loadGroup",value:function(){var t=this;this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[M.r.GROUP_SYNC_ENABLED,M.r.GROUP_LAST_SYNC_STATE,M.r.GROUP_LAST_SYNC_TIMESTAMP,M.r.GROUP_STRUCTURE_SYNC_ENABLED,M.r.GROUP_LAST_STRUCTURE_SYNC_STATE,M.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(function(e){t.group=e,t.syncEnabled=(0,L.IL)(t.group.attributes,M.r.GROUP_SYNC_ENABLED).value,t.lastSyncState=(0,L.IL)(t.group.attributes,M.r.GROUP_LAST_SYNC_STATE).value,t.lastSyncTime=(0,L.IL)(t.group.attributes,M.r.GROUP_LAST_SYNC_TIMESTAMP).value,t.structSyncEnabled=(0,L.IL)(t.group.attributes,M.r.GROUP_STRUCTURE_SYNC_ENABLED).value,t.lastStructSyncState=(0,L.IL)(t.group.attributes,M.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,t.lastStructSyncTime=(0,L.IL)(t.group.attributes,M.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,null!==t.syncEnabled&&"true"===t.syncEnabled&&(t.type="BASIC"),null!==t.structSyncEnabled&&t.structSyncEnabled&&(t.type="STRUCTURED"),t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.ff),a.Y36(o.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,z,1,0,"mat-spinner",1),a.YNc(5,F,27,22,"div",2),a.TgZ(6,"div",3),a.TgZ(7,"div",4),a.TgZ(8,"button",5),a.NdJ("click",function(){return e.refresh()}),a.TgZ(9,"mat-icon"),a._uU(10,"refresh"),a.qZA(),a.qZA(),a.YNc(11,Z,3,4,"button",6),a.YNc(12,B,3,4,"button",6),a.TgZ(13,"button",7),a.NdJ("click",function(){return e.onCancel()}),a._uU(14),a.ALo(15,"translate"),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(6),a.Q6J("ngIf",e.isStructured()),a.xp6(1),a.Q6J("ngIf",e.isBasic()||e.isStructured()),a.xp6(2),a.hij(" ",a.lcZ(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},directives:[n.uh,u.O5,n.H8,c.lW,N.Hw,l.$g,n.xY],pipes:[s.X$],styles:[""]}),t}();function U(t,e){1&t&&a._UZ(0,"mat-spinner",7)}function H(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function j(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function G(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",8),a.TgZ(1,"mat-form-field"),a.TgZ(2,"mat-label"),a._uU(3),a.ALo(4,"translate"),a.qZA(),a.TgZ(5,"input",9,10),a.NdJ("ngModelChange",function(t){return a.CHM(i),a.oxw().subject=t}),a.qZA(),a.YNc(7,H,3,3,"mat-error",11),a.qZA(),a.TgZ(8,"mat-form-field"),a.TgZ(9,"mat-label"),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.TgZ(12,"textarea",12,13),a.NdJ("ngModelChange",function(t){return a.CHM(i),a.oxw().message=t}),a.ALo(14,"translate"),a._uU(15," "),a.qZA(),a.YNc(16,j,3,3,"mat-error",11),a.qZA(),a.qZA()}if(2&t){var n=a.MAs(6),r=a.MAs(13),o=a.oxw();a.xp6(3),a.Oqu(a.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),a.xp6(2),a.Q6J("ngModel",o.subject),a.xp6(2),a.Q6J("ngIf",n.invalid),a.xp6(3),a.Oqu(a.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),a.xp6(2),a.s9C("placeholder",a.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),a.Q6J("ngModel",o.message),a.xp6(4),a.Q6J("ngIf",r.invalid)}}var Y=function(){var t=function(){function t(e,i,n,r,o,a){v(this,t),this.dialogRef=e,this.translate=i,this.notificator=n,this.rtMessages=r,this.data=o,this.storeService=a,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}return y(t,[{key:"ngOnInit",value:function(){this.data.error&&this.data.error.errorId&&(this.subject=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE")+this.parseMethod(this.data.error.call)+" ("+this.data.error.errorId+")")}},{key:"sendBugReport",value:function(){var t=this;this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(function(e){t.dialogRef.afterClosed().subscribe(function(){t.notificator.showSuccess(t.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+e.ticketNumber+t.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),t.dialogRef.close()},function(){t.loading=!1,t.dialogRef.afterClosed().subscribe(function(){})})}},{key:"getFullEmailBody",value:function(){var t=this.storeService.get("config"),e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(e=(e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n")).concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.urlWithParams+"\n\n"),this.data.error.payload){var n=JSON.stringify(this.data.error.payload);n=n.replace(/"password":".+?"/,'"password":"####"'),e=e.concat("Payload:\n"+n+"\n\n")}return(e=e.concat("Sended from new Perun Gui, version: "+i(60306).i8)).split("\n").join("\n ")}},{key:"parseMethod",value:function(t){return t?this.methodRegexp.exec(t)[1]:t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(s.sK),a.Y36(o.V6),a.Y36(r.Hr),a.Y36(n.WI),a.Y36(o.d6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.YNc(3,U,1,0,"mat-spinner",1),a.YNc(4,G,17,13,"div",2),a.TgZ(5,"div",3),a.TgZ(6,"div",4),a.TgZ(7,"button",5),a.NdJ("click",function(){return e.dialogRef.close()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",6),a.NdJ("click",function(){return e.sendBugReport()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(4),a.hij(" ",a.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),a.xp6(2),a.Q6J("disabled",""===e.message||""===e.subject||e.loading),a.xp6(1),a.hij(" ",a.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[n.uh,u.O5,n.H8,c.lW,l.$g,n.xY,h.KE,h.hX,k.Nt,A.Fj,A.Q7,A.JJ,A.On,h.TO],pipes:[s.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t}(),V=function(){var t=function(){function t(e,i,n){v(this,t),this.dialogRef=e,this.dialog=i,this.data=n}return y(t,[{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"onBugReportClick",value:function(){var t=this;this.dialogRef.afterClosed().subscribe(function(){var e=(0,L.kZ)();e.width="550px",e.data={error:t.data.error},e.autoFocus=!1,t.dialog.open(Y,e)}),this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.uw),a.Y36(n.WI))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a._uU(3),a.qZA(),a.TgZ(4,"div",2),a.TgZ(5,"div",3),a.TgZ(6,"button",4),a.NdJ("click",function(){return e.onBugReportClick()}),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.TgZ(9,"button",5),a.NdJ("click",function(){return e.onCloseClick()}),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(e.data.title),a.xp6(2),a.hij("\n",e.data.description,"\n"),a.xp6(3),a.Q6J("hidden","error"!==e.data.type),a.xp6(1),a.hij(" ",a.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),a.xp6(3),a.hij(" ",a.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[n.uh,n.xY,n.H8,c.lW],pipes:[s.X$],styles:[""]}),t}(),K=i(67033),J=i(83787);function Q(t,e){1&t&&a._UZ(0,"mat-spinner",3)}function W(t,e){1&t&&a._UZ(0,"th",15)}function X(t,e){if(1&t&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.xp6(1),a.hij(" ",i.userExtSource.extSource.name," ")}}function $(t,e){1&t&&a._UZ(0,"tr",17)}function tt(t,e){1&t&&a._UZ(0,"tr",18)}function et(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"div",4),a.TgZ(2,"p"),a._uU(3),a.ALo(4,"translate"),a.ALo(5,"customTranslate"),a.qZA(),a.TgZ(6,"div",5),a._uU(7),a.ALo(8,"translate"),a.ALo(9,"customTranslate"),a.qZA(),a.TgZ(10,"table",6),a.ynx(11,7),a.YNc(12,W,1,0,"th",8),a.YNc(13,X,2,1,"td",9),a.BQk(),a.YNc(14,$,1,0,"tr",10),a.YNc(15,tt,1,0,"tr",11),a.qZA(),a.qZA(),a.TgZ(16,"div",12),a.TgZ(17,"button",13),a.NdJ("click",function(){return a.CHM(i),a.oxw().onCancel()}),a._uU(18),a.ALo(19,"translate"),a.ALo(20,"customTranslate"),a.qZA(),a.TgZ(21,"button",14),a.NdJ("click",function(){return a.CHM(i),a.oxw().onSubmit()}),a._uU(22),a.ALo(23,"translate"),a.ALo(24,"customTranslate"),a.qZA(),a.qZA(),a.qZA()}if(2&t){var n=a.oxw();a.xp6(3),a.hij(" ",a.lcZ(4,7,a.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),a.xp6(4),a.hij(" ",a.lcZ(8,11,a.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),a.xp6(3),a.Q6J("dataSource",n.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",n.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",n.displayedColumns),a.xp6(3),a.hij(" ",a.lcZ(19,15,a.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),a.xp6(4),a.hij(" ",a.lcZ(23,19,a.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}var it=function(){var t=function(){function t(e,i,n,r,o){var a=this;v(this,t),this.dialogRef=e,this.data=i,this.usersManagerService=n,this.translate=r,this.notificator=o,this.force=!1,this.displayedColumns=["name"],r.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(function(t){return a.successMessage=t})}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new K.by(this.data.extSources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(function(){t.onSubmit()},function(){return t.loading=!1}):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.Fv),a.Y36(s.sK),a.Y36(o.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div"),a.YNc(5,Q,1,0,"mat-spinner",1),a.YNc(6,et,25,23,"div",2),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,6,a.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE"))),a.xp6(3),a.Tol(e.theme),a.xp6(1),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,u.O5,l.$g,n.xY,K.BZ,K.w1,K.fO,K.Dz,K.as,K.nj,n.H8,c.lW,K.ge,K.ev,K.XQ,K.Gk],pipes:[s.X$,J.a],styles:[""]}),t}(),nt=i(10901),rt=i(81391),ot=function(){var t=function(){function t(e,i){v(this,t),this.dialogRef=e,this.data=i}return y(t,[{key:"ngOnInit",value:function(){this.value=this.data.value,this.title=this.data.title}},{key:"onCancel",value:function(){this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a.TgZ(3,"textarea",2),a._uU(4),a.qZA(),a.qZA(),a.TgZ(5,"div",3),a.TgZ(6,"button",4),a.NdJ("click",function(){return e.onCancel()}),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.TgZ(9,"button",5),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(e.title),a.xp6(3),a.Oqu(e.value),a.xp6(3),a.hij(" ",a.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),a.xp6(2),a.Q6J("cdkCopyToClipboard",e.value),a.xp6(1),a.hij(" ",a.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[n.uh,n.xY,nt.IC,k.Nt,n.H8,c.lW,rt.i3],pipes:[s.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),t}();function at(t,e){1&t&&a._UZ(0,"th",12)}function st(t,e){if(1&t&&(a.TgZ(0,"td",13),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.xp6(1),a.hij(" ",i.displayName," ")}}function ut(t,e){1&t&&a._UZ(0,"tr",14)}function ct(t,e){1&t&&a._UZ(0,"tr",15)}var lt=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.attributesManager=o,this.displayedColumns=["name"]}return y(t,[{key:"ngOnInit",value:function(){this.dataSource=new K.by(this.data.attributes)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t,e=this,i=[],n=f(this.data.attributes);try{for(n.s();!(t=n.n()).done;){var r=t.value;i.push(r.id)}}catch(a){n.e(a)}finally{n.f()}var o={};switch(o[this.data.entity]=this.data.entityId,o.attributes=i,void 0!==this.data.secondEntity&&(o[this.data.secondEntity]=this.data.secondEntityId),this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()});break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(function(){return e.onSuccess()});break;default:this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()})}break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(function(){return e.onSuccess()});break;default:this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.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(function(){return e.onSuccess()});break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(function(){return e.onSuccess()});break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()})}break;case"facility":this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()});break;case"resource":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){return e.onSuccess()})}}},{key:"onSuccess",value:function(){var t=this;this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.V6),a.Y36(s.sK),a.Y36(r.H8))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"div"),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"div",2),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"table",3),a.ynx(11,4),a.YNc(12,at,1,0,"th",5),a.YNc(13,st,2,1,"td",6),a.BQk(),a.YNc(14,ut,1,0,"tr",7),a.YNc(15,ct,1,0,"tr",8),a.qZA(),a.qZA(),a.TgZ(16,"div",9),a.TgZ(17,"button",10),a.NdJ("click",function(){return e.onCancel()}),a._uU(18),a.ALo(19,"translate"),a.qZA(),a.TgZ(20,"button",11),a.NdJ("click",function(){return e.onSubmit()}),a._uU(21),a.ALo(22,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),a.xp6(4),a.hij(" ",a.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),a.xp6(3),a.hij(" ",a.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),a.xp6(2),a.Q6J("dataSource",e.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",e.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",e.displayedColumns),a.xp6(3),a.hij(" ",a.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),a.xp6(3),a.hij(" ",a.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},directives:[n.uh,n.xY,K.BZ,K.w1,K.fO,K.Dz,K.as,K.nj,n.H8,c.lW,K.ge,K.ev,K.XQ,K.Gk],pipes:[s.X$],styles:[""]}),t}(),ht=function(){var t=function(){function t(e,i){v(this,t),this.dialogRef=e,this.data=i,this.attributeValue=""}return y(t,[{key:"ngOnInit",value:function(){this.attributeValue=this.data.attribute.value[this.data.index]}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h5",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"mat-form-field"),a.TgZ(5,"textarea",2),a.NdJ("ngModelChange",function(t){return e.attributeValue=t}),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return e.cancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return e.submit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE")),a.xp6(4),a.Q6J("ngModel",e.attributeValue),a.xp6(3),a.hij(" ",a.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),a.xp6(3),a.hij(" ",a.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[n.uh,n.xY,h.KE,nt.IC,k.Nt,A.Fj,A.JJ,A.On,n.H8,c.lW],pipes:[s.X$],styles:[""]}),t}(),dt=function(){var t=function(){function t(e,i){v(this,t),this.dialogRef=e,this.data=i}return y(t,[{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.dialogRef.close(!0)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h5",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"div"),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"div",2),a._uU(8),a.qZA(),a.qZA(),a.TgZ(9,"div",3),a.TgZ(10,"button",4),a.NdJ("click",function(){return e.cancel()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.TgZ(13,"button",5),a.NdJ("click",function(){return e.submit()}),a._uU(14),a.ALo(15,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE")),a.xp6(4),a.hij(" ",a.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),a.xp6(3),a.hij(" ",e.data.name," "),a.xp6(3),a.hij(" ",a.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),a.xp6(3),a.hij(" ",a.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[n.uh,n.xY,n.H8,c.lW],pipes:[s.X$],styles:[""]}),t}(),ft=i(39571);function pt(t,e){if(1&t&&(a.TgZ(0,"app-alert",9),a._uU(1),a.qZA()),2&t){var i=a.oxw();a.xp6(1),a.Oqu(i.pendingEmailsMessage)}}function gt(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}var vt=function(){var t=function(){function t(e,i,n,r,o,a){var s=this;v(this,t),this.dialogRef=e,this.data=i,this.translate=n,this.notificator=r,this.usersManagerService=o,this.authService=a,this.pendingMails=[],n.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(function(t){return s.successMessage=t}),n.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(function(t){return s.pendingEmailsMessageStart=t}),n.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(function(t){return s.pendingEmailsMessageEnd=t})}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.emailControl=new A.NI(null,[A.kI.required,A.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(function(e){t.pendingMails=e.filter(function(t,e,i){return e===i.indexOf(t)});var i="";t.pendingMails.forEach(function(e){return i+="".concat(e===t.pendingMails[0]?"":", ").concat(e)}),console.log(i),t.pendingEmailsMessage=t.pendingEmailsMessageStart+i+t.pendingEmailsMessageEnd})}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this,e=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",e[0]+"//"+e[2],this.authService.getIdpFilter()).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.dialogRef.close()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(s.sK),a.Y36(o.V6),a.Y36(r.Fv),a.Y36(o.e8))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.YNc(5,pt,2,1,"app-alert",2),a.TgZ(6,"mat-form-field",3),a.TgZ(7,"label",3),a._UZ(8,"input",4),a.ALo(9,"translate"),a.ALo(10,"customTranslate"),a.qZA(),a.YNc(11,gt,4,5,"mat-error",5),a.qZA(),a.qZA(),a.TgZ(12,"div",6),a.TgZ(13,"button",7),a.NdJ("click",function(){return e.onCancel()}),a._uU(14),a.ALo(15,"translate"),a.ALo(16,"customTranslate"),a.qZA(),a.TgZ(17,"button",8),a.NdJ("click",function(){return e.onSubmit()}),a._uU(18),a.ALo(19,"translate"),a.ALo(20,"customTranslate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,8,a.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),a.xp6(4),a.Q6J("ngIf",e.pendingMails.length),a.xp6(3),a.s9C("placeholder",a.lcZ(9,12,a.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),a.Q6J("formControl",e.emailControl),a.xp6(3),a.Q6J("ngIf",e.emailControl.invalid),a.xp6(3),a.hij(" ",a.lcZ(15,16,a.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),a.xp6(3),a.Q6J("disabled",!e.emailControl.valid),a.xp6(1),a.hij(" ",a.lcZ(19,20,a.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[n.uh,n.xY,u.O5,h.KE,k.Nt,A.Fj,A.Q7,A.JJ,A.oH,n.H8,c.lW,ft.w,h.TO],pipes:[s.X$,J.a],styles:[""]}),t}();function mt(t,e){1&t&&a._UZ(0,"mat-spinner",6)}function yt(t,e){1&t&&a._UZ(0,"th",15)}function bt(t,e){if(1&t&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.xp6(1),a.hij(" ",i," ")}}function wt(t,e){1&t&&a._UZ(0,"tr",17)}function _t(t,e){1&t&&a._UZ(0,"tr",18)}function At(t,e){if(1&t&&(a.TgZ(0,"div",7),a.TgZ(1,"p"),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,yt,1,0,"th",11),a.YNc(10,bt,2,1,"td",12),a.BQk(),a.YNc(11,wt,1,0,"tr",13),a.YNc(12,_t,1,0,"tr",14),a.qZA(),a.qZA()),2&t){var i=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,5,i.data.description)," "),a.xp6(3),a.hij(" ",a.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "),a.xp6(2),a.Q6J("dataSource",i.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",i.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",i.displayedColumns)}}var kt=function(){var t=function(){function t(e,i){v(this,t),this.dialogRef=e,this.data=i,this.displayedColumns=["name"],this.loading=!1}return y(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new K.by(this.data.items)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){this.dialogRef.close(!0)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI))},t.\u0275cmp=a.Xpm({type:t,selectors:[["perun-web-apps-universal-remove-items-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,mt,1,0,"mat-spinner",1),a.YNc(5,At,13,9,"div",2),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return e.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return e.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,e.data.title)),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),a.xp6(2),a.Q6J("disabled",e.loading),a.xp6(1),a.hij(" ",a.lcZ(12,13,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," "))},directives:[n.uh,u.O5,n.H8,c.lW,l.$g,n.xY,K.BZ,K.w1,K.fO,K.Dz,K.as,K.nj,K.ge,K.ev,K.XQ,K.Gk],pipes:[s.X$],styles:[""]}),t}(),Tt=i(71709),Ct=i(91010),St=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){var e=t.split(":");return e[e.length-1]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=a.Yjl({name:"parseGroupName",type:t,pure:!0}),t}();function Et(t,e){1&t&&a._UZ(0,"mat-spinner",7)}function xt(t,e){1&t&&(a.TgZ(0,"app-alert"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function Rt(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function It(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}var Ot=function(t){return{"min-width":t}};function Pt(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"mat-tree-node",16),a.TgZ(1,"li",17),a.TgZ(2,"div",18),a.NdJ("click",function(){var t=a.CHM(i).$implicit;return a.oxw(3).navigate(t.id,t.include)}),a._UZ(3,"button",19),a.TgZ(4,"div",20),a.TgZ(5,"span"),a._uU(6),a.ALo(7,"parseGroupName"),a.qZA(),a.YNc(8,Rt,3,3,"span",21),a.YNc(9,It,3,3,"span",21),a.qZA(),a.TgZ(10,"span",22),a._uU(11),a.qZA(),a.qZA(),a.qZA(),a.qZA()}if(2&t){var n=e.$implicit,r=a.oxw(3);a.xp6(2),a.ekj("cursor-pointer",n.direct||n.include)("act-disabled",!n.direct&&!n.include),a.xp6(2),a.Q6J("ngStyle",a.VKq(11,Ot,r.getMinWidth(n.level))),a.xp6(2),a.Oqu(a.lcZ(7,9,n.name)),a.xp6(2),a.Q6J("ngIf",n.direct),a.xp6(1),a.Q6J("ngIf",n.include),a.xp6(2),a.Oqu(n.description)}}function Dt(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Mt(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Lt(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"mat-nested-tree-node"),a.TgZ(1,"li"),a.TgZ(2,"div",17),a.TgZ(3,"button",24),a.TgZ(4,"mat-icon",25),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"div",18),a.NdJ("click",function(){var t=a.CHM(i).$implicit;return a.oxw(3).navigate(t.id,t.include)}),a.TgZ(7,"div",20),a.TgZ(8,"span"),a._uU(9),a.ALo(10,"parseGroupName"),a.qZA(),a.YNc(11,Dt,3,3,"span",21),a.YNc(12,Mt,3,3,"span",21),a.qZA(),a.TgZ(13,"span",22),a._uU(14),a.qZA(),a.qZA(),a.qZA(),a.TgZ(15,"ul"),a.GkF(16,26),a.qZA(),a.qZA(),a.qZA()}if(2&t){var n=e.$implicit,r=a.oxw(3);a.xp6(3),a.uIk("aria-label","Toggle "+n.name),a.xp6(2),a.hij(" ",r.treeControl.isExpanded(n)?"expand_more":"chevron_right"," "),a.xp6(1),a.ekj("cursor-pointer",n.direct||n.include)("act-disabled",!n.direct&&!n.include),a.xp6(1),a.Q6J("ngStyle",a.VKq(15,Ot,r.getMinWidth(n.level))),a.xp6(2),a.Oqu(a.lcZ(10,13,n.name)),a.xp6(2),a.Q6J("ngIf",n.direct),a.xp6(1),a.Q6J("ngIf",n.include),a.xp6(2),a.Oqu(n.description),a.xp6(1),a.ekj("example-tree-invisible",!r.treeControl.isExpanded(n))}}function Nt(t,e){if(1&t&&(a.TgZ(0,"mat-tree",13),a.YNc(1,Pt,12,13,"mat-tree-node",14),a.YNc(2,Lt,17,17,"mat-nested-tree-node",15),a.qZA()),2&t){var i=a.oxw(2);a.Q6J("dataSource",i.dataSource)("treeControl",i.treeControl),a.xp6(2),a.Q6J("matTreeNodeDefWhen",i.hasChild)}}function zt(t,e){if(1&t&&(a.TgZ(0,"div",8),a.TgZ(1,"p"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"mat-form-field",9),a._UZ(5,"input",10),a.ALo(6,"translate"),a.qZA(),a.YNc(7,xt,3,3,"app-alert",11),a.YNc(8,Nt,3,3,"mat-tree",12),a.qZA()),2&t){var i=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),a.xp6(3),a.s9C("placeholder",a.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),a.Q6J("formControl",i.formControl),a.xp6(2),a.Q6J("ngIf",!i.dataSource.data.length),a.xp6(1),a.Q6J("ngIf",i.dataSource.data.length)}}var Ft=function(t){return{name:t}},Zt=function(){var t=function(){function t(e,i,n){v(this,t),this.dialogRef=e,this.data=i,this.groupsManagerService=n,this.treeControl=new Tt.VY(function(t){return t.children}),this.dataSource=new Ct.WX,this.groupTree=[],this.paths=[],this.formControl=new A.NI(""),this.userName="",this.hasChild=function(t,e){return!!e.children&&e.children.length>0}}return y(t,[{key:"recursiveSearch",value:function(t,e,i){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];window.open("/organizations/".concat(this.data.member.voId,"/groups/").concat(t).concat(e?"/settings/relations":""),"_blank")}},{key:"getMinWidth",value:function(t){return 400-40*t+"px"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.ff))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,Et,1,0,"mat-spinner",2),a.YNc(5,zt,9,9,"div",3),a.TgZ(6,"div",4),a.TgZ(7,"div",5),a.TgZ(8,"button",6),a.NdJ("click",function(){return e.onCancel()}),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",a.VKq(9,Ft,e.userName))),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(4),a.hij(" ",a.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},directives:[n.uh,u.O5,n.H8,c.lW,l.$g,n.xY,h.KE,k.Nt,A.Fj,A.JJ,A.oH,ft.w,Ct.gi,Ct.fQ,Ct.uo,Ct.eu,u.PC,Ct.GZ,N.Hw,Ct.Ar],pipes:[s.X$,St],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] ul[_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:auto!important}"]}),t}(),Bt=i(57629),qt=function(){var t=function(){function t(e,i){v(this,t),this.dialogRef=e,this.router=i}return y(t,[{key:"onClose",value:function(){this.router.navigate([]),this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(Bt.F0))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"app-alert",2),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.qZA(),a.TgZ(7,"div",3),a.TgZ(8,"button",4),a.NdJ("click",function(){return e.onClose()}),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE")),a.xp6(4),a.Oqu(a.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),a.xp6(4),a.hij(" ",a.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[n.uh,n.xY,ft.w,n.H8,c.lW],pipes:[s.X$],styles:[""]}),t}(),Ut=i(54810),Ht=i(15812),jt=i(58506);function Gt(t,e){1&t&&(a.TgZ(0,"mat-radio-button",15),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function Yt(t,e){1&t&&(a.TgZ(0,"mat-radio-button",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}var Vt=function(){var t=function(){function t(e){v(this,t),this.dialogRef=e,this.canExtendMembership=!1,this.expirationChanged=new a.vpe,this.expirationControl=new A.NI(null)}return y(t,[{key:"ngOnInit",value:function(){"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}},{key:"onChange",value:function(){this.expirationChanged.emit(this.newExpiration)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"setExpiration",value:function(){this.newExpiration=(0,u.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,u.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so))},t.\u0275cmp=a.Xpm({type:t,selectors:[["perun-web-apps-change-expiration-dialog"]],inputs:{currentExpiration:"currentExpiration",newExpiration:"newExpiration",canExtendMembership:"canExtendMembership",minDate:"minDate",maxDate:"maxDate",mode:"mode"},outputs:{expirationChanged:"expirationChanged"},decls:36,vars:36,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"],["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"]],template:function(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"p"),a.TgZ(3,"strong"),a._uU(4),a.ALo(5,"translate"),a.qZA(),a._uU(6),a.ALo(7,"parseDate"),a.qZA(),a.TgZ(8,"p"),a.TgZ(9,"strong"),a._uU(10),a.ALo(11,"translate"),a.qZA(),a._uU(12),a.ALo(13,"parseDate"),a.qZA(),a.TgZ(14,"mat-radio-group",2),a.NdJ("ngModelChange",function(t){return e.newExpiration=t}),a.TgZ(15,"mat-radio-button",3),a.TgZ(16,"mat-form-field",4),a.NdJ("click",function(){return a.CHM(i),a.MAs(23).open()}),a.TgZ(17,"mat-label"),a._uU(18),a.ALo(19,"translate"),a.qZA(),a.TgZ(20,"input",5),a.NdJ("dateChange",function(){return e.setExpiration()}),a.qZA(),a._UZ(21,"mat-datepicker-toggle",6),a._UZ(22,"mat-datepicker",7,8),a.qZA(),a.qZA(),a.YNc(24,Gt,3,3,"mat-radio-button",9),a.YNc(25,Yt,3,3,"mat-radio-button",10),a.TgZ(26,"mat-radio-button",11),a._uU(27),a.ALo(28,"translate"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(29,"div",12),a.TgZ(30,"button",13),a.NdJ("click",function(){return e.onCancel()}),a._uU(31),a.ALo(32,"translate"),a.qZA(),a.TgZ(33,"button",14),a.NdJ("click",function(){return e.onChange()}),a._uU(34),a.ALo(35,"translate"),a.qZA(),a.qZA(),a.qZA()}if(2&t){var n=a.MAs(23);a.xp6(4),a.Oqu(a.lcZ(5,20,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),a.xp6(2),a.hij(" ",a.lcZ(7,22,e.currentExpiration),""),a.xp6(4),a.Oqu(a.lcZ(11,24,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),a.xp6(2),a.hij(" ",e.newExpiration?a.lcZ(13,26,e.newExpiration):"never",""),a.xp6(2),a.Q6J("ngModel",e.newExpiration),a.xp6(1),a.s9C("value",e.expirationControl.value),a.xp6(3),a.Oqu(a.lcZ(19,28,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),a.xp6(2),a.Q6J("min",e.minDate)("max",e.maxDate)("formControl",e.expirationControl)("matDatepicker",n),a.xp6(1),a.Q6J("for",n)("disabled",!1),a.xp6(1),a.Q6J("disabled",!1),a.xp6(2),a.Q6J("ngIf",e.canExtendMembership&&"vo"===e.mode),a.xp6(1),a.Q6J("ngIf",e.canExtendMembership&&"group"===e.mode),a.xp6(2),a.hij(" ",a.lcZ(28,30,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),a.xp6(4),a.hij(" ",a.lcZ(32,32,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),a.xp6(2),a.Q6J("disabled",e.expirationControl.invalid),a.xp6(1),a.hij(" ",a.lcZ(35,34,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},directives:[n.xY,Ut.VQ,A.JJ,A.On,Ut.U0,h.KE,h.hX,k.Nt,A.Fj,Ht.hl,A.oH,Ht.nW,h.R9,Ht.Mq,u.O5,n.H8,c.lW],pipes:[s.X$,jt.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}"]}),t}();function Kt(t,e){1&t&&a._UZ(0,"mat-spinner",4)}function Jt(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"perun-web-apps-change-expiration-dialog",5),a.NdJ("expirationChanged",function(t){return a.CHM(i),a.oxw().onExpirationChanged(t)}),a.qZA()}if(2&t){var n=a.oxw();a.Q6J("minDate",n.minDate)("maxDate",n.maxDate)("currentExpiration",n.currentExpiration)("newExpiration",n.newExpiration)("canExtendMembership",n.canExtendMembership)("mode","group")}}var Qt=function(){var t=function(){function t(e,i,n,r,o,a,s){var u=this;v(this,t),this.dialogRef=e,this.data=i,this.attributesManagerService=n,this.memberManager=r,this.groupManager=o,this.translate=a,this.notificator=s,this.loading=!1,this.expirationAttr=null,this.canExtendMembership=!1,a.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(function(t){return u.successMessage=t})}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0;var e=new Date;"VALID"!==this.data.status?this.maxDate=new Date(e.getFullYear(),e.getMonth(),e.getDate()):this.minDate=new Date(e.getFullYear(),e.getMonth(),e.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr&&this.expirationAttr.value?this.expirationAttr.value:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&(this.newExpiration="VALID"!==this.data.status?(0,u.p6)(this.maxDate,"yyyy-MM-dd","en"):"never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,M.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(e){null!==e.value?t.groupManager.canExtendMembershipInGroup(t.data.memberId,t.data.groupId).subscribe(function(e){t.canExtendMembership=!!e,t.loading=!1},function(){return t.loading=!1}):t.loading=!1},function(){return t.loading=!1}):this.loading=!1}},{key:"onExpirationChanged",value:function(t){var e=this;this.loading=!0,"groupRules"===t?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(function(){e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close(!0)},function(){return e.loading=!1}):(this.expirationAttr.value="never"===t?null:t,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe(function(){e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close(!0)},function(){return e.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.H8),a.Y36(r.uq),a.Y36(r.ff),a.Y36(s.sK),a.Y36(o.V6))},t.\u0275cmp=a.Xpm({type:t,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","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","expirationChanged"]],template:function(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,Kt,1,0,"mat-spinner",2),a.YNc(5,Jt,1,6,"perun-web-apps-change-expiration-dialog",3),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,u.O5,l.$g,Vt],pipes:[s.X$],styles:[""]}),t}();function Wt(t,e){1&t&&a._UZ(0,"mat-spinner",4)}function Xt(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"perun-web-apps-change-expiration-dialog",5),a.NdJ("expirationChanged",function(t){return a.CHM(i),a.oxw().onExpirationChanged(t)}),a.qZA()}if(2&t){var n=a.oxw();a.Q6J("minDate",n.minDate)("maxDate",n.maxDate)("currentExpiration",n.currentExpiration)("newExpiration",n.newExpiration)("canExtendMembership",n.canExtendMembership)("mode","vo")}}var $t=function(){var t=function(){function t(e,i,n,r,o,a){var s=this;v(this,t),this.dialogRef=e,this.data=i,this.attributesManagerService=n,this.memberManager=r,this.translate=o,this.notificator=a,this.loading=!1,this.expirationAttr=null,this.canExtendMembership=!1,o.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(function(t){return s.successMessage=t})}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0;var e=new Date;"VALID"!==this.data.status?this.maxDate=new Date(e.getFullYear(),e.getMonth(),e.getDate()):this.minDate=new Date(e.getFullYear(),e.getMonth(),e.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr&&this.expirationAttr.value?this.expirationAttr.value:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&(this.newExpiration="VALID"!==this.data.status?(0,u.p6)(this.maxDate,"yyyy-MM-dd","en"):"never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,M.r.VO_DEF_EXPIRATION_RULES).subscribe(function(e){null!==e.value?t.memberManager.canExtendMembership(t.data.memberId).subscribe(function(e){t.canExtendMembership=!!e,t.loading=!1},function(){return t.loading=!1}):t.loading=!1},function(){return t.loading=!1}):this.loading=!1}},{key:"onExpirationChanged",value:function(t){var e=this;this.loading=!0,"voRules"===t?this.memberManager.extendMembership(this.data.memberId).subscribe(function(){e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close(!0)},function(){return e.loading=!1}):(this.expirationAttr.value="never"===t?null:t,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(function(){e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close(!0)},function(){return e.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.H8),a.Y36(r.uq),a.Y36(s.sK),a.Y36(o.V6))},t.\u0275cmp=a.Xpm({type:t,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","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","expirationChanged"]],template:function(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,Wt,1,0,"mat-spinner",2),a.YNc(5,Xt,1,6,"perun-web-apps-change-expiration-dialog",3),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,u.O5,l.$g,Vt],pipes:[s.X$],styles:[""]}),t}();function te(t,e){1&t&&a._UZ(0,"mat-spinner",4)}function ee(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"perun-web-apps-change-expiration-dialog",5),a.NdJ("expirationChanged",function(t){return a.CHM(i),a.oxw().onExpirationChanged(t)}),a.qZA()}if(2&t){var n=a.oxw();a.Q6J("minDate",n.minDate)("currentExpiration",n.currentExpiration)("newExpiration",n.newExpiration)("mode","sponsor")}}var ie=function(){var t=function(){function t(e,i,n,r,o,a,s){var u=this;v(this,t),this.dialogRef=e,this.data=i,this.attributesManagerService=n,this.memberManager=r,this.groupManager=o,this.translate=a,this.notificator=s,this.loading=!1,a.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(function(t){return u.successMessage=t})}return y(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;var t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.loading=!1}},{key:"onExpirationChanged",value:function(t){var e=this;this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===t?null:t).subscribe(function(){e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close(!0)},function(){return e.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.H8),a.Y36(r.uq),a.Y36(r.ff),a.Y36(s.sK),a.Y36(o.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,te,1,0,"mat-spinner",2),a.YNc(5,ee,1,4,"perun-web-apps-change-expiration-dialog",3),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,u.O5,l.$g,Vt],pipes:[s.X$],styles:[""]}),t}();function ne(t,e){1&t&&a._UZ(0,"mat-spinner",4)}function re(t,e){1&t&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function oe(t,e){1&t&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function ae(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"mat-radio-group",12),a.NdJ("ngModelChange",function(t){return a.CHM(i),a.oxw(2).asyncValidation=t}),a.TgZ(1,"span",13),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"mat-radio-button",14),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"mat-radio-button",14),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.qZA()}if(2&t){var n=a.oxw(2);a.Q6J("ngModel",n.asyncValidation),a.xp6(2),a.hij(" ",a.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE"),": "),a.xp6(2),a.Q6J("value",!1),a.xp6(1),a.hij(" ",a.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),a.xp6(2),a.Q6J("value",!0),a.xp6(1),a.hij(" ",a.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function se(t,e){1&t&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function ue(t,e){1&t&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function ce(t,e){if(1&t&&(a.TgZ(0,"div",5),a.TgZ(1,"p",6),a._uU(2),a.TgZ(3,"span",7),a._uU(4),a.qZA(),a._uU(5),a.TgZ(6,"span",7),a._uU(7),a.qZA(),a.qZA(),a.TgZ(8,"p"),a.TgZ(9,"strong",8),a._uU(10),a.ALo(11,"translate"),a.qZA(),a._uU(12),a.qZA(),a.TgZ(13,"p"),a.TgZ(14,"strong",8),a._uU(15),a.ALo(16,"translate"),a.qZA(),a._uU(17),a.qZA(),a.YNc(18,re,3,3,"span",9),a.YNc(19,oe,3,3,"span",9),a.YNc(20,ae,10,12,"mat-radio-group",10),a.YNc(21,se,3,3,"span",9),a.YNc(22,ue,3,3,"span",9),a.qZA()),2&t){var i=a.oxw();a.xp6(2),a.hij(" ",i.group.name," "),a.xp6(2),a.hij("#",i.group.id,""),a.xp6(1),a.hij(" - ",i.resource.name," "),a.xp6(2),a.hij("#",i.resource.id,""),a.xp6(3),a.hij("",a.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT"),":"),a.xp6(2),a.hij(" ",i.status," "),a.xp6(3),a.hij("",a.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW"),":"),a.xp6(2),a.hij(" ",i.getReversedStatus()," "),a.xp6(1),a.Q6J("ngIf","INACTIVE"===i.status),a.xp6(1),a.Q6J("ngIf","ACTIVE"===i.status),a.xp6(1),a.Q6J("ngIf","INACTIVE"===i.status),a.xp6(1),a.Q6J("ngIf","INACTIVE"===i.status&&!1===i.asyncValidation),a.xp6(1),a.Q6J("ngIf","INACTIVE"===i.status&&!0===i.asyncValidation)}}function le(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",15),a.TgZ(1,"button",16),a.NdJ("click",function(){return a.CHM(i),a.oxw().onCancel()}),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"button",17),a.NdJ("click",function(){return a.CHM(i),a.oxw().onSubmit()}),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.qZA()}if(2&t){var n=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),a.xp6(2),a.Q6J("disabled",n.loading),a.xp6(1),a.hij(" ",a.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SUBMIT")," ")}}var he=function(){var t=function(){function t(e,i,n,r){v(this,t),this.dialogRef=e,this.data=i,this.resourceService=n,this.groupService=r,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(function(e){t.resource=e,t.groupService.getGroupById(t.data.groupId).subscribe(function(e){t.group=e,t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(function(){t.dialogRef.close(!0),t.loading=!1},function(){return t.loading=!1}):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(function(){t.dialogRef.close(!0),t.loading=!1},function(){return t.loading=!1})}},{key:"getReversedStatus",value:function(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.xk),a.Y36(r.ff))},t.\u0275cmp=a.Xpm({type:t,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,ne,1,0,"mat-spinner",1),a.YNc(5,ce,23,17,"div",2),a.YNc(6,le,7,7,"div",3),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,u.O5,l.$g,n.xY,Ut.VQ,A.JJ,A.On,Ut.U0,n.H8,c.lW],pipes:[s.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),t}()},84534:function(t,e,i){"use strict";i.d(e,{hT:function(){return r},Kd:function(){return a},YH:function(){return s}});var n=i(31572),r=function(){var t=function(){function t(e){v(this,t),this.elementRef=e}return y(t,[{key:"ngOnInit",value:function(){this.elementRef.nativeElement.focus()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t}(),o=i(88426),a=function(){var t=function(){function t(e,i){v(this,t),this.el=e,this.router=i}return y(t,[{key:"onClick",value:function(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(o.xw))},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),t}(),s=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"onClick",value:function(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){var e=this.perunWebAppsMiddleClickRouterLink.join("/"),i=location.search;window.open(e+i)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&n.NdJ("mouseup",function(t){return e.onClick(t)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t}()},14732:function(t,e,i){"use strict";i.d(e,{u:function(){return n},m:function(){return r}});var n=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({}),r=function(){function t(e){v(this,t),this.id=e.id,this.name=e.name,this.parentGroupId=e.parentGroupId,this.voId=e.voId,this.shortName=e.shortName,this.description=e.description,this.attributes=e.attributes,this.beanName=e.beanName}return y(t,[{key:"addChild",value:function(t){null==this.children?this.children=[t]:this.children.push(t)}}]),t}()},33642:function(t,e,i){"use strict";i.d(e,{Us:function(){return D},au:function(){return L},H8:function(){return d},Ct:function(){return p},VK:function(){return h},KG:function(){return b},IQ:function(){return w},ff:function(){return A},uq:function(){return k},aC:function(){return T},Hr:function(){return C},tk:function(){return S},xk:function(){return E},KK:function(){return x},Ob:function(){return R},Dy:function(){return M},Fv:function(){return I},FW:function(){return O},YF:function(){return P}});var n,r,o,a,s=i(29063),u=function(){function t(){v(this,t)}return y(t,[{key:"encodeKey",value:function(t){return encodeURIComponent(t)}},{key:"encodeValue",value:function(t){return encodeURIComponent(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}(),c=i(31572),l=new c.OlP("basePath"),h=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v(this,t),this.apiKeys=e.apiKeys,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.withCredentials=e.withCredentials,this.encoder=e.encoder}return y(t,[{key:"selectHeaderContentType",value:function(t){var e=this;if(0!==t.length){var i=t.find(function(t){return e.isJsonMime(t)});return void 0===i?t[0]:i}}},{key:"selectHeaderAccept",value:function(t){var e=this;if(0!==t.length){var i=t.find(function(t){return e.isJsonMime(t)});return void 0===i?t[0]:i}}},{key:"isJsonMime",value:function(t){var e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}]),t}(),d=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"convertAttributeToNonunique",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/convertAttributeToNonunique"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"convertAttributeToUnique",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/convertAttributeToUnique"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/createAttribute"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attribute",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/deleteAttribute"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteAttributeDefinitions",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("attributes[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/deleteAttributes"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllAttributeDefinitions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributesDefinition"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAttribute",value:function(t,e,i,n,r,o,a,u,c,l,h){var d=arguments.length>11&&void 0!==arguments[11]?arguments[11]:"body",f=arguments.length>12&&void 0!==arguments[12]&&arguments[12],p=new s.LE({encoder:this.encoder});null!=t&&(p=p.set("attributeName",t)),null!=e&&(p=p.set("attributeId",e)),null!=i&&(p=p.set("facility",i)),null!=n&&(p=p.set("user",n)),null!=r&&(p=p.set("vo",r)),null!=o&&(p=p.set("resource",o)),null!=a&&(p=p.set("member",a)),null!=u&&(p=p.set("group",u)),null!=c&&(p=p.set("host",c)),null!=l&&(p=p.set("userExtSource",l)),null!=h&&(p=p.set("key",h));var g=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(g=g.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(g=g.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var v="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;g=g.set("Authorization","Bearer "+v)}var m=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==m&&(g=g.set("Accept",m)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/any"),{params:p,withCredentials:this.configuration.withCredentials,headers:g,observe:d,reportProgress:f})}},{key:"getAttributeDefinitionById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeDefinitionById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeDefinitionByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeDefinition"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeDefinitionsByNamespace",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributesDefinitionByNamespace"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAttributeModulesDependenciesForAttributeGraphText",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("format",t)),null!=e&&(r=r.set("attrName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAttributeModulesDependenciesGraphText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("format",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeModulesDependenciesGraphText"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeRights",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeRights"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributesDefinitionWithRights",value:function(t,e,i,n,r,o,a,u){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"body",l=arguments.length>9&&void 0!==arguments[9]&&arguments[9],h=new s.LE({encoder:this.encoder});null!=t&&(h=h.set("member",t)),null!=e&&(h=h.set("user",e)),null!=i&&(h=h.set("vo",i)),null!=n&&(h=h.set("group",n)),null!=r&&(h=h.set("resource",r)),null!=o&&(h=h.set("facility",o)),null!=a&&(h=h.set("host",a)),null!=u&&(h=h.set("userExtSource",u));var d=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(d=d.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(d=d.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var f="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;d=d.set("Authorization","Bearer "+f)}var p=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==p&&(d=d.set("Accept",p)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/getAttributesDefinitionWithRights"),{params:h,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:l})}},{key:"getEntitylessAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("key",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-entityless"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEntitylessAttributesByKey",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("key",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/key"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEntitylessAttributesByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attrName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEntitylessAttributesWithKeys",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("attrName",t)),e&&e.forEach(function(t){r=r.append("keys[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessAttributesWithKeys"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEntitylessKeys",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessKeys"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityResourceUserMemberAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=n&&(a=a.set("member",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-r-u-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getFacilityUserAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-u"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-group"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-group"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/g"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/g-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupResourceAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-group-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getGroupResourceAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-group-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getGroupResourceAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/group-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getHostAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-host"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getHostAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-host"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getHostAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/h"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/h-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getLogins",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getLogins"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberAndUserAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("workWithUserAttributes",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-wu"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberAndUserAttributesByNames",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(function(t){o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-names-wu"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberGroupAndUserAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(function(t){a=a.append("attrNames[]",t)}),null!=n&&(a=a.set("workWithUserAttributes",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g-names-wu"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getMemberGroupAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member-group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberGroupAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member-group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberGroupAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberGroupAttributesByNames",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(function(t){o=o.append("attrNames[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g-names"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r-wu"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(function(t){a=a.append("attrNames[]",t)}),null!=n&&(a=a.set("workWithUserAttributes",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r-names-wu"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getMemberResourceAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributesDefinition"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/f"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesFacilityService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesFacilityServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("services[]",t)}),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/ss-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesGroupResourceService",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("group",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-g"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRequiredAttributesHostService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("host",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-h"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("workWithUserAttributes",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesMemberGroup",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m-g"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRequiredAttributesMemberGroupResourceService",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("service",t)),null!=e&&(u=u.set("resource",e)),null!=i&&(u=u.set("group",i)),null!=n&&(u=u.set("member",n)),null!=r&&(u=u.set("workWithUserAttributes",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-g-m"),{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}},{key:"getRequiredAttributesMemberGroupService",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),null!=n&&(a=a.set("workWithUserAttributes",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-g-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getRequiredAttributesMemberResource",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m-r"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRequiredAttributesMemberResourceService",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("member",i)),null!=n&&(a=a.set("workWithUserAttributes",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getRequiredAttributesResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/r"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesResourceService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesResourceServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("services[]",t)}),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/ss-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/u"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesUserFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/u-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesVoService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("vo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-v"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourceAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceGroupAndGroupAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithGroupAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-wg"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getResourceGroupAndGroupAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(function(t){a=a.append("attrNames[]",t)}),null!=n&&(a=a.set("workWithGroupAttributes",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-names-wg"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getResourceGroupAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceGroupMemberAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),n&&n.forEach(function(t){a=a.append("attrNames[]",t)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-m-names"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getUserAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-user"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-user"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/u"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/u-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-ues"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-ues"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/ues"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourceAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/ues-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserFacilityAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-user_facility"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getUserFacilityAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-user_facility"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getUserFacilityAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/user-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-vo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-vo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/vo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/vo-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeAttributesForFacilityResourceGroupUserMember",value:function(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",u=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=n&&(c=c.set("user",n)),null!=r&&(c=c.set("member",r)),o&&o.forEach(function(t){c=c.append("attributes[]",t)});var l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var h="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+h)}var d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:u})}},{key:"removeAttributesForFacilityResourceUserMember",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("facility",t)),null!=e&&(u=u.set("resource",e)),null!=i&&(u=u.set("user",i)),null!=n&&(u=u.set("member",n)),r&&r.forEach(function(t){u=u.append("attributes[]",t)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f-r-u-m"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}},{key:"removeEntitylessAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("key",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/e"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupResourceAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/g-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeGroupResourceAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(function(t){o=o.append("attributes[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeGroupResourceAttributesWorkWithGroupAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(function(t){a=a.append("attributes[]",t)}),null!=n&&(a=a.set("workWithGroupAttributes",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"removeHostAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/h"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeHostAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/h"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMemberAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMemberAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMemberAttributesWorkWithUserAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(function(t){o=o.append("attributes[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(function(t){o=o.append("attributes[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttributesWorkWithUserAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(function(t){a=a.append("attributes[]",t)}),null!=n&&(a=a.set("workWithUserAttributes",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"removeMemberResourceAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberResourceAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(function(t){o=o.append("attributes[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeResourceAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/r"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/r"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUesAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/ues"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserExtSourceAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/ues"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserFacilityAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/u-f"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeUserFacilityAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),i&&i.forEach(function(t){o=o.append("attributes[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/u-f"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeVoAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setAttributeRights",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributeRights"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setEntitylessAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/entityless"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/facility"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityResourceGroupUserMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-r-g-u-m"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityResourceUserMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-r-u-m"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-u"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/group"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/g"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupResourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/group-resource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/group-resource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setHostAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/host"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setHostAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/h"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberGroupAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member-group"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-g"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberGroupWithUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-g-wu"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberResourceAndUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-r-wu"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberResourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member-resource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-r"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberWithUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-wu"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/resource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r-g"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceGroupWithGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r-g-wg"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/user"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/u"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserExtSourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/userExtSource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserExtSourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/ues"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserFacilityAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/facility-user"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserFacilityAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/facility-user"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setVoAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/vo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setVoAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/vo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/updateAttributeDefinition"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),f=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"auditMessagesManagerLog",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("msg",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/AuditMessagesManager/log"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createAuditerConsumer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/AuditMessagesManager/createAuditerConsumer"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllAuditerConsumers",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/AuditMessagesManager/getAllAuditerConsumers"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAuditerMessagesCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/AuditMessagesManager/getAuditerMessagesCount"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getLastMessageId",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/AuditMessagesManager/getLastMessageId"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getMessages",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("count",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/AuditMessagesManager/getMessages"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMessagesByCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("count",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/AuditMessagesManager/getMessagesByCount"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"pollConsumerMessages",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/AuditMessagesManager/pollConsumerMessages"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"setLastProcessedId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==e)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("consumerName",t)),null!=e&&(r=r.set("lastProcessedId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/AuditMessagesManager/setLastProcessedId"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),p=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"getAllPolicies",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAllPolicies"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllRolesManagementRules",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAllRolesManagementRules"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAuthzAdminGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("role",t)),null!=e&&(o=o.set("complementaryObjectId",e)),null!=i&&(o=o.set("complementaryObjectName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAdminGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAuthzRichAdmins",value:function(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",u=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("role",t)),null!=e&&(c=c.set("complementaryObjectId",e)),null!=i&&(c=c.set("complementaryObjectName",i)),n&&n.forEach(function(t){c=c.append("specificAttributes",t)}),null!=r&&(c=c.set("allUserAttributes",r)),null!=o&&(c=c.set("onlyDirectAdmins",o));var l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var h="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+h)}var d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getRichAdmins"),{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:u})}},{key:"getFacilitiesWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getFacilitiesWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupRoleNames",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getGroupRoleNames"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupRoles",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("groupId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/getGroupRoles"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getGroupsWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getLoggedUser",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getLoggedUser"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getMembersWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getMembersWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getPerunPrincipal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getPerunPrincipal"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPrincipalRoleNames",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getPrincipalRoleNames"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getResourcesWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getResourcesWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSecurityTeamsWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getSecurityTeamsWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserRoleNames",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getUserRoleNames"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserRoles",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("userId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getUserRoles"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getVosWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"isFacilityAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isFacilityAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isGroupAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isGroupAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isPerunAdmin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/isPerunAdmin"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"isVoAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isVoAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"keepAlive",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/keepAlive"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"loadAuthorizationComponents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/loadAuthorizationComponents"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"setRoleWithGroupComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/setRole/g-co"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setRoleWithUserComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/setRole/u-co"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"unsetRoleWithGroupComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/unsetRole/g-co"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"unsetRoleWithUserComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/unsetRole/u-co"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),g=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"createAutorship",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateAuthorship was null or undefined when calling createAutorship.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createAuthorship"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createCategoryCat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateCategory was null or undefined when calling createCategoryCat.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createCategory/cat"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createCategoryNR",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateCategory1 was null or undefined when calling createCategoryNR.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createCategory/n-r"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createPublication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreatePublication was null or undefined when calling createPublication.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createPublication"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createPublicationSystem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createPublicationSystem"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createThanks",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateThanks was null or undefined when calling createThanks.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createThanks"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteAuthorship",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==e)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("publicationId",t)),null!=e&&(r=r.set("userId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deleteAuthorship"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteCategory",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deleteCategory"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deletePublication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublication.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deletePublication"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deletePublicationSystem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deletePublicationSystem"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteThanks",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deleteThanks"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findAllAuthors",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findAllAuthors"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"findAuthorsByPublicationId",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findAuthorsByPublicationId"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findExternalPublications",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==e)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==i)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==n)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("yearSince",e)),null!=i&&(a=a.set("yearTill",i)),null!=n&&(a=a.set("pubSysNamespace",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findExternalPublications"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"findNewAuthors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findNewAuthors"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findPublicationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findPublicationById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findPublicationsByFilter",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");var o=new s.LE({encoder:this.encoder});null!=e&&(o=o.set("yearSince",e)),null!=i&&(o=o.set("yearTill",i)),null!=t&&(o=o.set("userId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findPublicationsByFilter"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"findPublicationsByGUIFilter",value:function(t,e,i,n,r,o,a,u,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"body",h=arguments.length>10&&void 0!==arguments[10]&&arguments[10],d=new s.LE({encoder:this.encoder});null!=t&&(d=d.set("title",t)),null!=e&&(d=d.set("isbn",e)),null!=i&&(d=d.set("doi",i)),null!=n&&(d=d.set("id",n)),null!=r&&(d=d.set("year",r)),null!=o&&(d=d.set("category",o)),null!=a&&(d=d.set("yearSince",a)),null!=u&&(d=d.set("yearTill",u)),null!=c&&(d=d.set("userId",c));var f=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(f=f.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var p="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+p)}var g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(f=f.set("Accept",g)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findPublicationsByGUIFilter"),{params:d,withCredentials:this.configuration.withCredentials,headers:f,observe:l,reportProgress:h})}},{key:"findSimilarPublications",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("title",t)),null!=e&&(o=o.set("doi",e)),null!=i&&(o=o.set("isbn",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findSimilarPublications"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getCategories",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/getCategories"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPublicationSystems",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/getPublicationSystems"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getRank",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRank.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/getRank"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichThanksByPublicationId",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/getRichThanksByPublicationId"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"lockPublications",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputLockPublications was null or undefined when calling lockPublications.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/lockPublications"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateCategory",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateCategory was null or undefined when calling updateCategory.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/updateCategory"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updatePublication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdatePublication was null or undefined when calling updatePublication.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/updatePublication"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updatePublicationSystem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/updatePublicationSystem"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),m=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"getCurrentDatabaseVersion",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/databaseManager/getCurrentDatabaseVersion"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getDatabaseDriverInformation",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/databaseManager/getDatabaseDriverInformation"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getDatabaseInformation",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/databaseManager/getDatabaseInformation"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getTimeOfQueryPerformance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/databaseManager/getTimeOfQueryPerformance"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),b=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"addExtSourceWithGroupSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("source",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/addExtSource/g-s"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addExtSourceWithVoSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("source",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/addExtSource/v-s"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createExtSourceFromExtSourceObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter extSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/extSourcesManager/createExtSource/es"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createExtSourceWithNameType",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==e)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("type",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/createExtSource/n-t"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteExtSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/deleteExtSource"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getExtSourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getExtSourceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getExtSourceByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getExtSourceByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getExtSources",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getExtSources"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getGroupExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getGroupExtSources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getVoExtSources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"loadExtSourcesDefinitions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/loadExtSourcesDefinitions"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"removeExtSourceWithGroupSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("source",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/removeExtSource/g-s"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeExtSourceWithVoSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("source",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/removeExtSource/v-s"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),w=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"addFacilityAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityAdminGroupByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addAdmin/group/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityAdminUserByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addAdmin/user/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addOwner/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByFacilityNameOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addOwner/f-o-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addOwner/o-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHost",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("hostname",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addHost"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHostByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("hostname",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addHost/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHosts",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("hostnames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addHosts"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHostsByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("hostnames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addHosts/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignSecurityTeam",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/assignSecurityTeam"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignSecurityTeamByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyAttributes"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributesByDestinationName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyAttributes/dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributesBySourceDestinationNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributesBySourceName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyAttributes/src-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyManagers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagersByDestinationName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyManagers/dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagersBySourceDestinationNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyManagers/src-dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagersBySourceName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyManagers/src-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwners",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyOwners"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwnersByDestinationName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyOwners/dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwnersBySourceDestinationNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyOwners/src-dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwnersBySourceName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyOwners/src-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/createFacility"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/deleteFacility"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteFacilityByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/deleteFacility/f-name"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllFacilities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilities"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllowedGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedGroupsByFacilityName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedGroups/f-name"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedRichGroupsWithAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(function(t){a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=n&&(a=a.set("service",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedRichGroupsWithAttributes"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getAllowedRichGroupsWithAttributesByFacilityName",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(function(t){a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=n&&(a=a.set("service",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getAllowedUsersOfFacility",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedUsers/v-f-s"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedUsersOfFacilityByFacilityName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedUsers/v-f-s/f-name"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedVos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/getAllowedVos"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedVosByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/getAllowedVos/f-name"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedFacilities/group"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedFacilities/member"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedFacilities/service"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedFacilities/user"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesByAssignedServiceForFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedResourcesByAssignedService"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedResourcesForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesForFacilityByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedResources/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedRichResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesForFacilityByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedRichResources/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedSecurityTeams",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedSecurityTeams"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedSecurityTeamsByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedSecurityTeams/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedUsers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedUsers"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedUsersByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedUsers/f-name"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getBansForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facilityId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getBansForFacility"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getBansForUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getBansForUser"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEnrichedFacilities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getEnrichedFacilities"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getEnrichedHosts",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getEnrichedHosts"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilitiesByAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("attributeName",t)),null!=e&&(r=r.set("attributeValue",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesByAttribute"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilitiesByDestination",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesByDestination"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilitiesByHostName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesByHostName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilitiesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilitiesCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesCount"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getFacilitiesWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesWhereUserIsAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAdminGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAdminGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAdminUsers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("onlyDirectAdmins",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAdmins"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityAdminUsersByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("onlyDirectAdmins",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAdmins/f-name"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityBan",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getBan"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getBanById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilityById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilityByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityForHost",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilityForHost"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityOwners",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getOwners"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityOwnersByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getOwners/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHostById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHosts",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHosts"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHosts/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsByHostname",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHostsByHostname"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHostsCount"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsCountByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHostsCount/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getOwnerFacilities",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("owner",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getOwnerFacilities"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichFacilities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getRichFacilities"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"removeBanByUserIdFacilityId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminGroupByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeAdmin/group/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminUserByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeAdmin/user/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeBan/byId"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeFacilityOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeOwner/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByFacilityNameOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeOwner/f-o-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeOwner/o-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeHost",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeHost"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeHostByHostname",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeHostByHostname"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeHosts",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("hosts[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeHosts"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeHostsByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("hosts[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeHosts/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSecurityTeam",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeSecurityTeam"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSecurityTeamByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setFacilityBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/facilitiesManager/setBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/facilitiesManager/updateFacility"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFacilityBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/facilitiesManager/updateBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),_=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"getFacilityAdminGroupsByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAdminGroups/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),A=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"addMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),null!=e&&(r=r.set("member",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/addMember"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addMembers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("members[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/addMembers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"canExtendMembershipInGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/canExtendMembershipInGroup"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createGroupUnion",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resultGroup",t)),null!=e&&(r=r.set("operandGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroupUnion"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createGroupWithParentGroupNameDescription",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("parentGroup",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroup/pg-n-d"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"createGroupWithVoNameDescription",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroup/v-n-d"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"deleteGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/deleteGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteGroups",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroups.");if(null==e)throw new Error("Required parameter forceDelete was null or undefined when calling deleteGroups.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),null!=e&&(r=r.set("forceDelete",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/deleteGroups"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"extendMembershipInGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/extendMembershipInGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"forceAllSubGroupsSynchronization",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"forceGroupStructureSynchronization",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceGroupStructureSynchronization"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"forceGroupSynchronization",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceGroupSynchronization"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllMemberGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllMemberGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllRichGroupsWithAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllRichSubGroupsWithGroupAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichSubGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("name",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupByName"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupMemberById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("member",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMemberById"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupMembersCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCount"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupMembersCountsByGroupStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCountsByGroupStatus"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupMembersCountsByVoStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCountsByVoStatus"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupRichMembersByIds",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(function(t){o=o.append("members[]",t)}),i&&i.forEach(function(t){o=o.append("attrNames[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupRichMembersByIds"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getGroupUnions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("reverseDirection",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupUnions"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupsByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getIndirectMembershipPaths",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getIndirectMembershipPaths"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getMemberGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberRichGroupsWithAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getMemberRichGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRichGroupByIdWithAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getRichGroupByIdWithAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("groupId",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getRichGroupByIdWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"isGroupMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/isGroupMember"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"moveGroupWithDestinationGroupMovingGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("destinationGroup",e)),null!=t&&(r=r.set("movingGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/moveGroup/dg-mg"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupUnion",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resultGroup",t)),null!=e&&(r=r.set("operandGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeGroupUnion"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),null!=e&&(r=r.set("member",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeMember"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMembers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("members[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeMembers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setGroupsMemberStatus",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("status",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/setGroupsMemberStatus"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"updateGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/updateGroup"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),k=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"canExtendMembership",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/canExtendMembership"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createMemberForCandidate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/c"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createMemberForUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/u"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createMemberFromExtSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/extSource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSpecificMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSpecificMember"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSponsoredMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMember/withFullName"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSponsoredMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMembers"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSponsoredMembersFromCSV",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMembersFromCSV"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/deleteMember"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("members[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/deleteMembers"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"extendMembership",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/extendMembership"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findCompleteRichMembersByAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");var o=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){o=o.append("attrsNames[]",t)}),null!=e&&(o=o.set("searchString",e)),i&&i.forEach(function(t){o=o.append("allowedStatuses[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/attrs"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"findCompleteRichMembersForGroup",value:function(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",u=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(function(t){c=c.append("attrsNames[]",t)}),r&&r.forEach(function(t){c=c.append("allowedStatuses[]",t)}),o&&o.forEach(function(t){c=c.append("allowedGroupStatuses[]",t)}),null!=i&&(c=c.set("searchString",i)),null!=n&&(c=c.set("lookingInParentGroup",n));var l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var h="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+h)}var d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/g"),{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:u})}},{key:"findCompleteRichMembersForVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(function(t){a=a.append("attrsNames[]",t)}),n&&n.forEach(function(t){a=a.append("allowedStatuses[]",t)}),null!=i&&(a=a.set("searchString",i));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/v"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"findMembersInVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("searchString",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findMembersInVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findSponsoredCompleteRichMembersForVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(function(t){a=a.append("attrsNames[]",t)}),null!=i&&(a=a.set("searchString",i)),null!=n&&(a=a.set("onlySponsored",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/v-sponsored"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getAllNamespacesRules",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllNamespacesRules"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllSponsoredMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllSponsoredMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllSponsoredMembersAndTheirSponsors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllSponsoredMembersAndTheirSponsors"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getCompleteRichMembersForGroup",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("group",t)),i&&i.forEach(function(t){u=u.append("allowedStatuses[]",t)}),n&&n.forEach(function(t){u=u.append("allowedGroupStatuses[]",t)}),null!=e&&(u=u.set("lookingInParentGroup",e)),r&&r.forEach(function(t){u=u.append("attrsNames[]",t)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/g"),{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}},{key:"getCompleteRichMembersForGroupResource",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(function(t){a=a.append("attrsNames[]",t)}),n&&n.forEach(function(t){a=a.append("allowedStatuses[]",t)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/g-r"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getCompleteRichMembersForVo",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(function(t){o=o.append("allowedStatuses[]",t)}),i&&i.forEach(function(t){o=o.append("attrsNames[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/v"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberByExtSourceNameAndExtLogin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extLogin",e)),null!=i&&(o=o.set("extSourceName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberByExtSourceNameAndExtLogin"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberByUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberByUser"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMembers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("status",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembers"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMembersByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMembersByUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersByUser"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMembersCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersCount"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMembersPage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/getMembersPage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getMembersWithStatusCount",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("status",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersCount/status"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRichMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMember"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichMemberWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMemberWithAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichMembersByIds",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("ids[]",t)}),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMembersByIds"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsoredMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsoredMembers/v"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getSponsoredMembersAndTheirSponsors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsoredMembersAndTheirSponsors"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsorsByMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsors/member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsorsByVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),n&&n.forEach(function(t){a=a.append("attrNames[]",t)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsors/vo"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"moveMembership",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("sourceUser",e)),null!=i&&(o=o.set("targetUser",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/moveMembership"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeSponsor",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/removeSponsor"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sendAccountActivationLinkEmail",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=n&&(a=a.set("language",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sendAccountActivationLinkEmail"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"sendPasswordResetLinkEmail",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=n&&(a=a.set("language",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sendPasswordResetLinkEmail"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"setSponsoredMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/setSponsoredMember"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setSponsorshipForMember",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("sponsoredMember",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/setSponsorshipForMember"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"setStatus",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("status",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/setStatus"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sponsorMember",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sponsorMember"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"updateSponsorshipValidity",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/updateSponsorshipValidity"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"validateMemberAsync",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/validateMemberAsync"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),T=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"createOwner",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateOwner was null or undefined when calling createOwner.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/ownersManager/createOwner"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("owner",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/ownersManager/deleteOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllOwners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/ownersManager/getOwners"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getOwnerById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/ownersManager/getOwnerById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getOwnerByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("owner",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/ownersManager/getOwnerByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),C=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"sentMessageToRTWithMemberQueue",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("memberId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=n&&(a=a.set("text",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"sentMessageToRTWithQueue",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("queue",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/q"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"sentMessageToRTWithVo",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("voId",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/v"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"sentMessageToRTWithVoQueue",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("voId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=n&&(a=a.set("text",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),S=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"addApplicationMailForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/addApplicationMail/g"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addApplicationMailForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/addApplicationMail/v"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addGroupsToAutoRegistration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("groups[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/addGroupsToAutoRegistration"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"approveApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/approveApplication"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"consolidateIdentityUsingToken",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/consolidateIdentityUsingToken"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"copyFormFromGroupToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/groupToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyFormFromGroupToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toVo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/groupToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyFormFromVoToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/voToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyFormFromVoToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toVo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/voToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromGroupToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/groupToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromGroupToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toVo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/groupToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromVoToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/voToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromVoToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toVo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/voToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createApplicationFormInGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/createApplicationForm/group"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createApplicationFormInVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/createApplicationForm/vo"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplication"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteApplicationMailForGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("id",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplicationMail/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteApplicationMailForVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("id",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplicationMail/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteGroupsFromAutoRegistration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("groups[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationDataById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationDataById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationMailsForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationMails/g"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationMailsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationMails/v"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationsForGroup",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),e&&e.forEach(function(t){a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=n&&(a=a.set("dateTo",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForGroup"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getApplicationsForMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForMember"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getApplicationsForVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(function(t){a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=n&&(a=a.set("dateTo",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForVo"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getConsolidatorToken",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getConsolidatorToken"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getFormItemsForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/group"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFormItemsForGroupWithType",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("type",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/group-type"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFormItemsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/vo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFormItemsForVoWithType",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("type",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/vo-type"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupApplicationForm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationForm/group"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsToAutoRegistration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getGroupsToAutoRegistration"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoApplicationForm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationForm/vo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"rejectApplication",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("id",t)),null!=e&&(r=r.set("reason",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/rejectApplication"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sendInvitation",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");var a=new s.LE({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=n&&(a=a.set("name",n)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"sendInvitationForGroup",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");var u=new s.LE({encoder:this.encoder});null!=i&&(u=u.set("voId",i)),null!=n&&(u=u.set("groupId",n)),null!=r&&(u=u.set("name",r)),null!=t&&(u=u.set("email",t)),null!=e&&(u=u.set("language",e));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/g"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}},{key:"sendInvitationGroupToExistingUser",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("userId",t)),null!=e&&(o=o.set("voId",e)),null!=i&&(o=o.set("groupId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/u-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"sendInvitationToExistingUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userId",t)),null!=e&&(r=r.set("voId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sendMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/sendMessage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setSendingEnabled",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/setSendingEnabled"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"submitApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/submitApplication"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateApplicationMail",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateApplicationMail"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateForm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateForm"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItemData"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemsData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItemsData"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemsForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItems/group"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItems/vo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"verifyApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/verifyApplication"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),E=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"activateGroupResourceAssignment",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("async",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/activateGroupResourceAssignment"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"addAdminToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addAdmin/r-g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addAdminToUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addAdmin/r-u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addResourceSelfServiceGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addResourceSelfServiceGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addResourceSelfServiceUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addResourceSelfServiceUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"allowGroupsToResources",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");var o=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){o=o.append("groups[]",t)}),e&&e.forEach(function(t){o=o.append("resources[]",t)}),null!=i&&(o=o.set("async",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/allowGroupsToResources"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"assignGroupToResource",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("async",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupToResource"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"assignGroupToResources",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(function(t){o=o.append("resources[]",t)}),null!=i&&(o=o.set("async",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupToResources"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"assignGroupsToResource",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");var o=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){o=o.append("groups[]",t)}),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("async",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupsToResource"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"assignResourceTagToResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/assignResourceTagToResource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"assignService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("services[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignServices"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("servicesPackage",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/copyResource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createResource",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("name",i)),null!=n&&(a=a.set("description",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/createResource"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"createResourceTagWithResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/createResourceTag/resourceTag"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createResourceTagWithTagName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("tagName",t)),null!=e&&(r=r.set("vo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/createResourceTag/tagName"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deactivateGroupResourceAssignment",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteAllResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteAllResources"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteAllResourcesTagsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteResource"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/deleteResourceTag"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getAdminGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAdminGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAdmins",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("onlyDirectAdmins",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAdmins"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllResourcesByResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesByResourceTag"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getAllResourcesTagsForResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesTagsForResource"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllResourcesTagsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesTagsForVo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllResourcesWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/all"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedUsersOfResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedUsers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedGroups",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("member",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedGroups"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesWithGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResources/g"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesWithMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResources/m"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesWithGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/g"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesWithMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/m"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesWithMemberService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/s-m"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedServicesToResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedServices"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getBansForMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBansForMember"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getBansForResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBansForResource"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEnrichedResourceById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("id",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourceById"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEnrichedResourcesForFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourcesForFacility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEnrichedResourcesForVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourcesForVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getFacility"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupAssignments",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getGroupAssignments"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAssignments",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceAssignments"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceBan",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBan"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBanById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourceByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("name",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceByName"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourcesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourcesCountForAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesCount/all"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getResourcesCountForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesCount/vo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourcesFromVoWhereUserIsAdmin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourcesWhereGroupIsAdmin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("group",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getResourcesWhereUserIsAdmin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("user",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRichAdmins",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),e&&e.forEach(function(t){a=a.append("specificAttributes",t)}),null!=i&&(a=a.set("allUserAttributes",i)),null!=n&&(a=a.set("onlyDirectAdmins",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichAdmins"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getRichResourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResourceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichResourcesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResourcesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getVo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeAllResourceTagsFromResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeBanByMemberAndResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeBan/member-resource-id"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupAdminResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAdmin/r-g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupFromResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupFromResource"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupFromResources",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("resources[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupFromResources"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupsFromResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupsFromResource"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeBan/id"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeResourceSelfServiceGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceSelfServiceUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeResourceSelfServiceUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceTagFromResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/removeResourceTagFromResource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"removeService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("services[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeServices"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("servicesPackage",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserAdminResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAdmin/r-u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setResourceBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/setBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"unallowGroupsFromResources",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),e&&e.forEach(function(t){r=r.append("resources[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/unallowGroupsFromResources"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"updateResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateResource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateResourceBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateResourceTag"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),x=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"addDestination",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling addDestination.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("service",t)),null!=e&&(u=u.set("facility",e)),null!=i&&(u=u.set("destination",i)),null!=n&&(u=u.set("type",n)),null!=r&&(u=u.set("propagationType",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addDestination"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}},{key:"addDestinationToMultipleServices",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/addDestination"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addDestinationsDefinedByHostsOnFacilityWithFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addDestinationsForAllServicesOnFacility",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==i)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("destination",e)),null!=i&&(a=a.set("type",i)),null!=n&&(a=a.set("propagationType",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"addRequiredAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addRequiredAttribute"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addRequiredAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addRequiredAttributes"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addServiceToServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("servicesPackage",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addServiceToServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"blockAllServicesOnDestinationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockAllServicesOnDestination/d"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"blockAllServicesOnDestinationByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("destination",t)),null!=e&&(r=r.set("destinationType",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"blockAllServicesOnFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockAllServicesOnFacility"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"blockServiceOnDestination",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockServiceOnDestination/s-d"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"blockServiceOnDestinationWithNameAndType",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("destinationType",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"blockServiceOnFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockServiceOnFacility"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createService",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==i)throw new Error("Required parameter script was null or undefined when calling createService.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e)),null!=i&&(o=o.set("script",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/createService"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"createServiceWithService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateService was null or undefined when calling createServiceWithService.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/createService"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateServicesPackage was null or undefined when calling createServicesPackage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/createServicesPackage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createServicesPackageByNameAndDescription",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/createServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling deleteService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/deleteService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/deleteServicesPackage"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"forceServicePropagation",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/forceServicePropagation"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllDestinations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDestinations/all"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllRichDestinationsForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getAllRichDestinations/f"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllRichDestinationsForService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getAllRichDestinations/s"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getAssignedResourcesForService"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedServices",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getAssignedServices"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getDataWithGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDataWithGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getDataWithVos",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDataWithVos"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getDestinationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDestinationById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getDestinations",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDestinations/s-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getDestinationsCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDestinationsCount"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getFacilitiesDestinations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getFacilitiesDestinations"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAssignedServicesForGUI",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getFacilityAssignedServicesForGUI"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFlatData",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getFlatData"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getHashedDataWithGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getHashedDataWithGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getHashedHierarchicalData",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getHashedHierarchicalData"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getHierarchicalData",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getHierarchicalData"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRichDestinations",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getRichDestinations"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getServiceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getServiceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServiceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServiceByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServiceByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServices",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServices"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getServicesBlockedOnDestination",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesBlockedOnDestination"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesBlockedOnFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesBlockedOnFacility"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesByAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesByAttributeDefinition"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesFromServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesFromServicesPackage"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesPackageById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesPackageById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesPackageByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesPackageByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesPackages",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesPackages"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"isServiceBlockedOnDestination",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/isServiceBlockedOnDestination"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"isServiceBlockedOnFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/isServiceBlockedOnFacility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"planServicePropagation",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/planServicePropagation"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeAllDestinations",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeAllDestinations"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeAllRequiredAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeAllRequiredAttributes"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeDestination",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling removeDestination.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("destination",i)),null!=n&&(a=a.set("type",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeDestination"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"removeRequiredAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeRequiredAttribute"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeRequiredAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeRequiredAttributes"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeServiceFromServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("servicesPackage",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeServiceFromServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"unblockAllServicesOnDestinationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"unblockAllServicesOnDestinationByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("destination",t)),null!=e&&(r=r.set("destinationType",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"unblockAllServicesOnFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockAllServicesOnFacility"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"unblockServiceOnDestinationById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"unblockServiceOnDestinationByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("destinationType",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"unblockServiceOnFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockServiceOnFacility"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"updateService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateService was null or undefined when calling updateService.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/updateService"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/updateServicesPackage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),R=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"countTasks",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/countTasks"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"deleteTask",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskIdObject was null or undefined when calling deleteTask.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/deleteTask"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteTaskResultById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskResultIdObject was null or undefined when calling deleteTaskResultById.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/deleteTaskResultById"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteTaskResultsIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/deleteTaskResults/id"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteTaskResultsNames",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/deleteTaskResults/name"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getAllFacilitiesStates",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getAllFacilitiesStates"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllResourcesState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("voId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getAllResourcesState"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityServicesState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getFacilityServicesState"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getFacilityState"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTask",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getTask.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTask"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getTaskById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getTaskById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("taskResult",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResults",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResults"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getTaskResultsByTask",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsByTask"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultsForDestinations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("destinations[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsForDestinations"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultsForGUIByTask",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsForGUIByTask"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultsForGUIByTaskAndDestination",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("task",t)),null!=e&&(r=r.set("destination",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsForGUIByTaskAndDestination"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getTaskResultsForGUIByTaskOnlyNewest",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isThereSuchTask",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/isThereSuchTask"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"listAllTasks",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/listAllTasks"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"listAllTasksForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/listAllTasksForFacility"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"suspendTasksPropagation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("suspend",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/suspendTasksPropagation"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),I=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"addSpecificUserOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("specificUser",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/addSpecificUserOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addUserExtSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/addUserExtSource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"changeNonAuthzPasswordByToken",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("token",t)),null!=e&&(o=o.set("password",e)),null!=i&&(o=o.set("lang",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changeNonAuthzPassword/token"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"changePasswordForLogin",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("login",t)),null!=e&&(u=u.set("namespace",e)),null!=i&&(u=u.set("newPassword",i)),null!=n&&(u=u.set("oldPassword",n)),null!=r&&(u=u.set("checkOldPassword",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changePassword/login"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}},{key:"changePasswordForUser",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("user",t)),null!=e&&(u=u.set("namespace",e)),null!=i&&(u=u.set("newPassword",i)),null!=n&&(u=u.set("oldPassword",n)),null!=r&&(u=u.set("checkOldPassword",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changePassword/user"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}},{key:"checkPasswordResetRequestByTokenIsValid",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/checkPasswordResetRequestIsValid/token"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"checkPasswordStrength",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("password",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/checkPasswordStrength"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createAlternativePassword",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("description",e)),null!=i&&(a=a.set("loginNamespace",i)),null!=n&&(a=a.set("password",n));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/createAlternativePassword"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"createServiceUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/createServiceUser"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteAlternativePassword",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("loginNamespace",e)),null!=i&&(o=o.set("passwordId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deleteAlternativePassword"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"deletePasswordForLogin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deletePassword/login"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deletePasswordForUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deletePassword/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deleteUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findRichUsers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findRichUsers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findRichUsersWithAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("searchString",t)),e&&e.forEach(function(t){r=r.append("attrsNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findRichUsersWithAttributes"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findUsers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findUsers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesForUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getAssignedRichResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsForFacilityWhereUserIsActive",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsActive/facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsForResourceWhereUserIsActive",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsActive/resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsInVoWhereUserIsAdmin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("vo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsAdmin/u-v"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsAdmin/u"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getPendingPreferredEmailChanges",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getPendingPreferredEmailChanges"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUserExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUserExtSources/u"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUserWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUserWithAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUsersByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUsersWithAttributesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersWithAttributesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUsersWithoutVoWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("attrsNames[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersWithoutVoWithAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getSpecificUsersByUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSpecificUsersByUser"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getSponsorsForMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSponsorsForMember/member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsorsForMemberByVoAndLogin",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),n&&n.forEach(function(t){a=a.append("attrNames[]",t)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSponsorsForMember/vo"),{params:a,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:o})}},{key:"getUserByExtSourceNameAndExtLogin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("extLogin",t)),null!=e&&(r=r.set("extSourceName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserByExtSourceNameAndExtLogin"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourcesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourcesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUsersByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsersByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUsersBySpecificUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("specificUser",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsersBySpecificUser"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getVosWhereUserIsAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosWhereUserIsMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getVosWhereUserIsMember"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isLoginAvailable",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("loginNamespace",t)),null!=e&&(r=r.set("login",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/isLoginAvailable"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"loginExist",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/loginExist"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSpecificUserOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("specificUser",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/removeSpecificUserOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserExtSource",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("userExtSource",e)),null!=i&&(o=o.set("force",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/removeUserExtSource"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"requestPreferredEmailChange",value:function(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",u=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("email",e)),null!=i&&(c=c.set("lang",i)),null!=n&&(c=c.set("linkPath",n)),null!=r&&(c=c.set("customUrl",r)),null!=o&&(c=c.set("idpFilter",o));var l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var h="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+h)}var d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/requestPreferredEmailChange"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:u})}},{key:"reservePasswordForLogin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reservePassword/login"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"reservePasswordForUser",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reservePassword/user"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"reserveRandomPassword",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reserveRandomPassword"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"updateUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/updateUser"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"validatePasswordForLogin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePassword/login"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"validatePasswordForUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePassword/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"validatePreferredEmailChangeWithToken",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("token",t)),null!=e&&(r=r.set("u",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePreferredEmailChange"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),O=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"getAppsConfig",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getAppsConfig"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getGuiConfiguration",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getGuiConfiguration"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunRPCVersion",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunStatistics",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunStatistics"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunStatus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunStatus"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunSystemTimeInMillis",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunSystemTimeInMillis"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),P=function(){var t=function(){function t(e,i,n){v(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new u}return y(t,[{key:"addSponsorRoleToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addSponsorRole/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addSponsorRoleToUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addSponsorRole/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addVoAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addVoAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createVoWithName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("shortName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/createVo/withName"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createVoWithVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/createVo/withVo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/deleteVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findCandidates",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),null!=e&&(o=o.set("searchString",e)),null!=i&&(o=o.set("maxNumOfResults",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/findCandidates"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"findCandidatesForGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("searchString",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/findCandidates/forGroup"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllVos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAllVos"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getCompleteCandidatesForGroup",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(function(t){o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getCompleteCandidates/forGroup"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getCompleteCandidatesForVo",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(function(t){o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getCompleteCandidates/forVo"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMyVos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVos"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getRichAdminsForVo",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("vo",t)),null!=e&&(u=u.set("role",e)),i&&i.forEach(function(t){u=u.append("specificAttributes",t)}),null!=n&&(u=u.set("allUserAttributes",n)),null!=r&&(u=u.set("onlyDirectAdmins",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getRichAdmins"),{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}},{key:"getVoAdminGroups",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("role",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAdminGroups"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAdminUsers",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("role",e)),null!=i&&(o=o.set("onlyDirectAdmins",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAdmins"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getVoBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBanById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoBanForMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBanForMember"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoBansForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBansForVo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoByShortName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("shortName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoByShortName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoMembersCountsByStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoMembersCountsByStatus"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVosByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVosCount"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"removeSponsorRoleFromGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeSponsorRole/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSponsorRoleFromUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeSponsorRole/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(o=o.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeBan"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeVoBanForMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeBanForMember"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"setVoBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/setBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/updateVo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(s.eN),c.LFG(l,8),c.LFG(h,8))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),D={WRITE:"WRITE",WRITEVO:"WRITE_VO",WRITEPUBLIC:"WRITE_PUBLIC",READ:"READ",READVO:"READ_VO",READPUBLIC:"READ_PUBLIC"};!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(n||(n={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(r||(r={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(o||(o={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(a||(a={}));var M={HTMLCOMMENT:"HTML_COMMENT",SUBMITBUTTON:"SUBMIT_BUTTON",AUTOSUBMITBUTTON:"AUTO_SUBMIT_BUTTON",FROMFEDERATIONSHOW:"FROM_FEDERATION_SHOW",FROMFEDERATIONHIDDEN:"FROM_FEDERATION_HIDDEN",PASSWORD:"PASSWORD",VALIDATEDEMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDEDGROUPAPPLICATION:"EMBEDDED_GROUP_APPLICATION"},L=function(){var t=function(){function t(e,i){if(v(this,t),e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!i)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}return y(t,null,[{key:"forRoot",value:function(e){return{ngModule:t,providers:[{provide:h,useFactory:e}]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(t,12),c.LFG(s.eN,8))},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({providers:[d,f,p,g,m,b,w,_,A,k,T,C,S,E,x,R,I,O,P],imports:[[]]}),t}()},22280:function(t,e,i){"use strict";i.d(e,{r5:function(){return s.r},d4:function(){return o},dp:function(){return a.d}});var n=i(61511),r=i(31572),o=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.ez]]}),t}(),a=i(22196),s=(i(83787),i(95603));i(91322),i(63720),i(1157),i(48853)},83787:function(t,e,i){"use strict";i.d(e,{a:function(){return a}});var n=i(88426),r=i(31572),o=i(48160),a=function(){var t=function(){function t(e,i){v(this,t),this.translate=e,this.storage=i}return y(t,[{key:"transform",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",i=this.storage.get("custom_labels");if(i)for(var n=Object.keys(i),r=0,o=n;r0?"red":null!==c&&c.trim().length>0?"green":""}if(o){var l=(0,n.IL)(t.attributes,r.r.GROUP_LAST_STRUCTURE_SYNC_STATE),h=(0,n.IL)(t.attributes,r.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),d=l.value,f=h.value;return null!=d&&d.trim().length>0?"red":null!==f&&f.trim().length>0?"green":""}return""}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncIconColor",type:t,pure:!0}),t}()},52984:function(t,e,i){"use strict";i.d(e,{J:function(){return a}});var n=i(67004),r=i(84140),o=i(31572),a=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){if(null==t||null==t.attributes)return"";var e=(0,r.IL)(t.attributes,n.r.GROUP_SYNC_ENABLED),i=(0,r.IL)(t.attributes,n.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"";var o=i.value;if("true"===e.value){var a=(0,r.IL)(t.attributes,n.r.GROUP_LAST_SYNC_STATE),s=(0,r.IL)(t.attributes,n.r.GROUP_LAST_SYNC_TIMESTAMP),u=a.value,c=s.value;return null!=u&&u.trim().length>0?"sync_problem":(null!==c&&c.trim(),"sync")}if(o){var l=(0,r.IL)(t.attributes,n.r.GROUP_LAST_STRUCTURE_SYNC_STATE),h=(0,r.IL)(t.attributes,n.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),d=l.value,f=h.value;return null!=d&&d.trim().length>0?"sync_problem":(null!==f&&f.trim(),"sync")}return"sync_disabled"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncIcon",type:t,pure:!0}),t}()},44385:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var n=i(84140),r=i(67004),o=i(31572),a=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";var e=(0,n.IL)(t.attributes,r.r.GROUP_SYNC_ENABLED),i=(0,n.IL)(t.attributes,r.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";var o=i.value;if("true"===e.value){var a=(0,n.IL)(t.attributes,r.r.GROUP_LAST_SYNC_STATE),s=(0,n.IL)(t.attributes,r.r.GROUP_LAST_SYNC_TIMESTAMP),u=a.value,c=s.value;return null!=u&&u.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==c&&c.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(o){var l=(0,n.IL)(t.attributes,r.r.GROUP_LAST_STRUCTURE_SYNC_STATE),h=(0,n.IL)(t.attributes,r.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),d=l.value,f=h.value;return null!=d&&d.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==f&&f.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncToolTip",type:t,pure:!0}),t}()},63720:function(t,e,i){"use strict";i.d(e,{D:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return(0,n.g$)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"memberEmail",type:t,pure:!0}),t}()},1157:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return(0,n.lt)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"memberLogins",type:t,pure:!0}),t}()},99197:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return(0,n.Gw)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"memberOrganization",type:t,pure:!0}),t}()},74842:function(t,e,i){"use strict";i.d(e,{u:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){switch(t){case"VALID":return"green";case"INVALID":return"red";default:return""}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatusIconColor",type:t,pure:!0}),t}()},37043:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){switch(t){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return t}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatusIcon",type:t,pure:!0}),t}()},91322:function(t,e,i){"use strict";i.d(e,{i:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t,e){var i=null,r=null;null!==t.memberAttributes&&(i=t.memberAttributes.find(function(t){return"membershipExpiration"===t.friendlyName}),r=t.memberAttributes.find(function(t){return"groupMembershipExpiration"===t.friendlyName}));return e?"\n Group status: ".concat((0,n.Oe)(t.groupStatus),", Expiration: ").concat(r&&r.value?r.value:"never"):"Status: ".concat((0,n.Oe)(t.status,t.groupStatus),"\n Vo status: ").concat((0,n.Oe)(t.status),", Expiration: ").concat(i&&i.value?i.value:"never")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"memberStatusTooltip",type:t,pure:!0}),t}()},58506:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var n=i(61511),r=i(31572),o=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t,e){return"voRules"===t?"Vo rules":"groupRules"===t?"Group rules":t&&"never"!==t.toLowerCase()?(0,n.p6)(t.replace(" ","T"),"d.M.yyyy "+(e?"H:mm:ss":""),"en"):"never"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"parseDate",type:t,pure:!0}),t}()},48853:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){return(0,n.te)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"technicalOwners",type:t,pure:!0}),t}()},22196:function(t,e,i){"use strict";i.d(e,{d:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"transform",value:function(t){var e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"userFullName",type:t,pure:!0}),t}()},88426:function(t,e,i){"use strict";i.d(e,{yC:function(){return D},F5:function(){return O},sM:function(){return N},e8:function(){return A},EB:function(){return E},ly:function(){return Z},xw:function(){return z},x4:function(){return s},v0:function(){return T},Ct:function(){return H},SZ:function(){return M},V6:function(){return P},d6:function(){return _},UA:function(){return F}});var n=i(33642),o=i(14732),a=i(31572),s=function(){var t=function(){function t(e){v(this,t),this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}return y(t,[{key:"init",value:function(t){this.principal=t,this.initData(t)}},{key:"setPerunPolicies",value:function(t){this.perunPolicies=t}},{key:"getPerunPolicies",value:function(){return this.perunPolicies}},{key:"isAuthorized",value:function(t,e){if(null===this.principal.roles)return!1;var i,n=[],r=f(this.fetchPolicyWithAllIncludedPolicies(t));try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n.concat(o.perunRoles)}}catch(s){r.e(s)}finally{r.f()}var a=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,a)}},{key:"resolveAuthorization",value:function(t,e){var i,n=f(t);try{for(n.s();!(i=n.n()).done;){for(var r=i.value,o=!0,a=0,s=Object.keys(r);a1&&void 0!==arguments[1]?arguments[1]:this.getDefaultRpcMessage();this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}},{key:"showError",value:function(t,e,i,n,r){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:r,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}},{key:"showSuccess",value:function(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.LFG(b.sK))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),D=function(){var t=function(){function t(e,i,n,r,o,a){v(this,t),this.authService=e,this.apiRequestConfiguration=i,this.notificator=n,this.store=r,this.dialog=o,this.initAuthService=a}return y(t,[{key:"intercept",value:function(t,e){var i=this,n=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==n&&-1!==t.url.toString().indexOf(n)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()){var r=(0,p.kZ)();r.width="450px",this.dialog.open(w,r).afterClosed().subscribe(function(){i.authService.startAuthentication().then(function(){})})}t=t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});var o=this.apiRequestConfiguration.shouldHandleError(),a="POST"===t.method&&!this.store.skipOidc();return e.handle(t).pipe((0,I.b)(function(t){t instanceof x.Zn&&a&&i.initAuthService.loadPrincipal()},function(e){var n=i.formatErrors(e,t);return void 0===n?(0,R._)(e):o?void i.notificator.showRPCError(n):(0,R._)(n)}))}},{key:"formatErrors",value:function(t,e){var i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.urlWithParams=e.urlWithParams,i.call=e.url,i.payload=e.body,i}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.LFG(A),a.LFG(O),a.LFG(P),a.LFG(_),a.LFG(g.uw),a.LFG(T))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t}(),M=function(){var t=function(){function t(){v(this,t),this.notificationData=[],this.newNotificationsCount=0}return y(t,[{key:"storeNotification",value:function(t){this.newNotificationsCount++,this.notificationData.push(t)}},{key:"getNotifications",value:function(){return this.notificationData.reverse()}},{key:"clearNotifications",value:function(){this.notificationData=[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),L=i(47727),N=function(){var t=function(){function t(e,i,n,r){v(this,t),this.http=e,this.notificator=i,this.authService=n,this.storeService=r}return y(t,[{key:"getApiUrl",value:function(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}},{key:"formatErrors",value:function(t,e,i,n){var r=t.error;return r.call=e,r.payload=i,n&&this.notificator.showRPCError(t.error),(0,R._)(r)}},{key:"getHeaders",value:function(){var t=new x.WM;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue())}},{key:"get",value:function(t){var e=this,i=(arguments.length>1&&void 0!==arguments[1]||new x.LE,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]),n="".concat(this.getApiUrl()).concat(t);return this.http.get(n,{headers:this.getHeaders()}).pipe((0,L.K)(function(t){return e.formatErrors(t,n,null,i)}))}},{key:"put",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(t),o=JSON.stringify(i);return this.http.put(r,o,{headers:this.getHeaders()}).pipe((0,L.K)(function(t){return e.formatErrors(t,r,o,n)}))}},{key:"post",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(t),o=JSON.stringify(i),a=this.getHeaders();return a=a.set("Content-Type","application/json; charset=utf-8"),this.http.post(r,o,{headers:a}).pipe((0,L.K)(function(t){return e.formatErrors(t,r,o,n)}))}},{key:"delete",value:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="".concat(this.getApiUrl()).concat(t);return this.http.delete(n,{headers:this.getHeaders()}).pipe((0,L.K)(function(t){return e.formatErrors(t,n,null,i)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.LFG(x.eN),a.LFG(P),a.LFG(A),a.LFG(_))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),z=function(){var t=function(){function t(e){var i=this;v(this,t),this.router=e,this.lastState="forward",this.history=new Set,e.events.subscribe(function(t){t instanceof d.OD&&("popstate"===t.navigationTrigger?i.history.has(t.restoredState.navigationId)?(i.lastState="back",i.history.delete(t.restoredState.navigationId)):(i.lastState="forward",i.history.add(t.id)):(i.history.add(t.id),i.lastState="forward"))})}return y(t,[{key:"forceNavigate",value:function(t,e){if(null!==t){var i="";t.forEach(function(t){return i+="/"+t}),i.length>0&&(i=i.substring(1)),void 0===e&&(e={}),e.queryParams={redirectTo:i},this.router.navigate(["redirect"],e)}}},{key:"getLastState",value:function(){return this.lastState}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.LFG(d.F0))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),F=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"isAllSelectedWithDisabledCheckbox",value:function(t,e,i,n,r,o,a,s){var u=this;return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=r*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?o.data.length:o.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),o.sortData(o.filteredData,a).forEach(function(t){u.pageStart<=u.pageIterator&&u.pageIterator=3?null:{isWeak:!0}}}}]),t}()},38457:function(t,e,i){"use strict";i.d(e,{f7:function(){return s},g$:function(){return u},kN:function(){return c},$0:function(){return l},lt:function(){return h},bD:function(){return d},hu:function(){return p},Cz:function(){return g},te:function(){return v},ys:function(){return m},vL:function(){return y},sF:function(){return b},XI:function(){return w},OV:function(){return _},MX:function(){return A},oU:function(){return k},IL:function(){return T},Jc:function(){return C},v$:function(){return S},i5:function(){return E},kZ:function(){return x},dv:function(){return R},Hm:function(){return I},Oe:function(){return O},Gw:function(){return P},x2:function(){return D},sG:function(){return M},pR:function(){return N},Sd:function(){return z},Xn:function(){return F},O6:function(){return Z},aC:function(){return B},fx:function(){return q},mH:function(){return U}});var n=i(64762),r=i(84608),o=i(61511),a=i(82051),s=[5,10,25,100];function u(t){var e="";return t&&null!==t.userAttributes&&(t.userAttributes.forEach(function(t){"preferredMail"===t.friendlyName&&(e=t.value)}),e&&0===e.length&&null!==t.memberAttributes&&t.memberAttributes.forEach(function(t){"mail"===t.friendlyName&&null!==t.value&&(e=t.value)})),e}function c(t){var e="";return t&&t.userAttributes.forEach(function(t){"preferredMail"===t.friendlyName&&(e=t.value)}),e}function l(t){var e="";return t&&t.userAttributes&&t.userAttributes.filter(function(t){return"login-namespace"===t.baseFriendlyName}).filter(function(t){return null!==t.value}).forEach(function(t){e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function h(t){var e="";return t&&t.userAttributes&&t.userAttributes.filter(function(t){return"login-namespace"===t.baseFriendlyName}).filter(function(t){return null!==t.value}).forEach(function(t){e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function d(t){var e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function p(t){var e="";return null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function g(t){var e="";return t.split(/(?=[A-Z])/g).forEach(function(t){e=(e=e.concat(t.toLowerCase())).concat(" ")}),e=e.charAt(0).toUpperCase()+e.slice(1,e.length-1)}function v(t){var e,i="",n=f(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;"technical"===r.type&&(i+=r.name+", ")}}catch(o){n.e(o)}finally{n.f()}return i.endsWith(", ")&&(i=i.substring(0,i.length-2)),i}function m(t,e){return(0,n.mG)(this,void 0,void 0,regeneratorRuntime.mark(function i(){var n;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n=t,new Promise(function(t){return setTimeout(t,n)});case 2:e();case 3:case"end":return i.stop()}},i)}))}function y(t){return JSON.parse(localStorage.getItem(t))||[]}function b(t,e){if(null===localStorage.getItem(t)){var i=[];i.unshift(e.id),localStorage.setItem(t,JSON.stringify(i))}else{var n=JSON.parse(localStorage.getItem(t)),r=function(t,e){for(var i=0;i0&&n.splice(r,1),0!==r&&n.unshift(e.id),n.length>5&&n.pop(),localStorage.setItem(t,JSON.stringify(n))}}function w(t){if(null===localStorage.getItem("recent")){var e;e="Group"===t.beanName?[{id:t.id,name:t.shortName,type:t.beanName,voId:t.voId}]:[{id:t.id,name:t.name,type:t.beanName,voId:t.voId}],localStorage.setItem("recent",JSON.stringify(e))}else{var i,n=JSON.parse(localStorage.getItem("recent")),r=function(t,e){for(var i=0;i0&&n.splice(r,1),0!==r&&n.unshift(i),n.length>5&&n.pop(),localStorage.setItem("recent",JSON.stringify(n))}}function _(t){var e="";return t&&t.userAttributes.forEach(function(t){"organization"===t.friendlyName&&(e=t.value)}),e}function A(t){return t.filter(function(t){return!t.namespace.includes("def:core")})}function k(t,e){var i=e.find(function(e){return e.id===t});return i?i.parentGroupId?k(i.parentGroupId,e).concat(i):[i]:[]}function T(t,e){var i,n=f(t);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r.namespace+":"+r.friendlyName===e)return r}}catch(o){n.e(o)}finally{n.f()}return null}function C(t){return null!=t.attributes["urn:perun:member:attribute-def:def:mail"]?t.attributes["urn:perun:member:attribute-def:def:mail"]:null!=t.attributes["urn:perun:user:attribute-def:def:preferredMail"]?t.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function S(t){return t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function(t){if(t.includes("/CN=")){var e=t.split("/");for(var i in e)if(i.startsWith("CN="))return n=i.substring(3),decodeURIComponent(n.replace(/\\x/g,"%"))}var n;return t}(t.userExtSource.extSource.name):t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function(t){switch(t){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":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":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"@mojeid.extidp.cesnet.cz":return"MojeID";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@elixir-europe.org":return"Elixir Europe";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return t}}(t.userExtSource.extSource.name):t.userExtSource.extSource.name}function E(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["en","cs"],e={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{}};return t.forEach(function(t){e.message[t]={locale:t,subject:"",text:""}}),e}function x(){var t=new r.vA;return t.disableClose=!0,t.autoFocus=!1,t}function R(t){var e,i={applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null},n=f(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;i.i18n[r]={locale:r,errorMessage:"",help:"",label:"",options:""}}}catch(o){n.e(o)}finally{n.f()}return i}function I(t){return"virt"===t.namespace.split(":")[4]}function O(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?t:"ACTIVE"}function P(t){var e="";return t&&null!==t.memberAttributes&&(t.memberAttributes.forEach(function(t){"organization"===t.friendlyName&&null!==t.value&&(e=t.value)}),0===e.length&&null!==t.userAttributes&&t.userAttributes.forEach(function(t){"organization"===t.friendlyName&&(e=t.value)})),e}function D(t){var e=t.attributes.find(function(t){return"groupMembershipExpiration"===t.baseFriendlyName});return e&&e.value?e.value:"Never"}function M(t){return t&&"never"!==t.toLowerCase()?(0,o.p6)(t,"d.M.yyyy","en"):t}var L=new Intl.Collator("cs",{numeric:!0});function N(t,e,i,n){var r=e.active,o=e.direction;return r&&""!==o?t.sort(function(t,e){var a=i(t,r,n),s=i(e,r,n);return L.compare(a,s)*("asc"===o?1:-1)}):t}function z(t,e,i,n,r,o){e=e.toLowerCase();var a="";return i.forEach(function(e){a+=";"+n(t,e,r)}),o&&(a+=";"+n(t,"uuid",r)),-1!==a.toLowerCase().indexOf(e)}function F(t,e,i,n){var r=[],o=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(function(t){return!o.includes(t)}),t.forEach(function(t){var o={};e.forEach(function(e){var r;o[e]=(null!==(r=i(t,e,n))&&void 0!==r?r:"").split('"').join("''").trim()}),r.push(o)}),r}function Z(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"csv",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"export";switch(e){case"csv":var n=function(t,e){return null===e?"":e},r=Object.keys(t[0]),o=t.map(function(t){return r.map(function(e){return JSON.stringify(t[e],n)}).join(",")});o.unshift(r.join(",").split(" ").join("_").split('"').join("''"));var s=o.join("\r\n"),u=new Blob([s],{type:"text/csv"});(0,a.saveAs)(u,"".concat(i,".").concat(e))}}function B(t,e){return t.name.toLowerCase()>e.name.toLowerCase()?1:t.name.toLowerCase()===e.name.toLowerCase()?0:-1}function q(t,e){var i,n,r,o,a,s;return t.user?(a=t.user.lastName?t.user.lastName:null!==(i=t.user.firstName)&&void 0!==i?i:"",s=e.user.lastName?e.user.lastName:null!==(n=e.user.firstName)&&void 0!==n?n:""):(a=t.lastName?t.lastName:null!==(r=t.firstName)&&void 0!==r?r:"",s=e.lastName?e.lastName:null!==(o=e.firstName)&&void 0!==o?o:""),a>s?1:a===s?0:-1}function U(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t.enable(),t.clearValidators(),t.clearAsyncValidators(),t.setValidators(e),t.setAsyncValidators(i),t.updateValueAndValidity()}},82819:function(t,e,i){"use strict";i.d(e,{l:function(){return p}});var n=i(31572),r=i(73005),o=i(38457),a=i(61511),s=i(15980),u=i(8055),c=i(43691),l=i(48160),h=function(){var t=function t(){v(this,t),this.exportData=new n.vpe};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"button",1),n.TgZ(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA(),n.qZA(),n.TgZ(4,"mat-menu",null,2),n.TgZ(6,"button",3),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.qZA(),n.TgZ(9,"mat-menu",null,4),n.TgZ(11,"button",5),n.NdJ("click",function(){return e.exportData.emit("csv")}),n._uU(12,"Csv"),n.qZA(),n.qZA(),n.qZA()),2&t){var i=n.MAs(5),r=n.MAs(10);n.xp6(1),n.Q6J("matMenuTriggerFor",i),n.xp6(5),n.Q6J("matMenuTriggerFor",r),n.xp6(1),n.hij(" ",n.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[s.lW,u.p6,c.Hw,u.VK,u.OP],pipes:[l.X$],styles:[""]}),t}();function d(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-table-options",6),n.NdJ("exportData",function(t){return n.CHM(i),n.oxw().exportData.emit(t)}),n.qZA()}}var f=["*"],p=function(){var t=function(){function t(){v(this,t),this.hideExport=!1,this.page=new n.vpe,this.pageSizeOptions=o.f7,this.pageSize=5,this.dataLength=0,this.exportData=new n.vpe}return y(t,[{key:"matPaginator",set:function(t){this.paginator=t}},{key:"pageChanged",value:function(t){this.paginator.pageSize=t.pageSize,this.paginator.pageIndex=t.pageIndex,this.page.emit(t),this.paginator.page.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(r.NW,7),2&t)&&(n.iGM(i=n.CRH())&&(e.matPaginator=i.first))},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",pageSize:"pageSize",dataLength:"dataLength"},outputs:{page:"page",exportData:"exportData"},ngContentSelectors:f,decls:7,vars:8,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.TgZ(2,"mat-paginator",2),n.NdJ("page",function(t){return e.page.emit(t)}),n.qZA(),n.YNc(3,d,1,0,"perun-web-apps-table-options",3),n.qZA(),n.TgZ(4,"div",4),n.Hsn(5),n.qZA(),n.TgZ(6,"mat-paginator",5),n.NdJ("page",function(t){return e.pageChanged(t)}),n.qZA(),n.qZA()),2&t&&(n.xp6(2),n.Q6J("length",e.dataLength)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("ngIf",!e.hideExport),n.xp6(3),n.Q6J("length",e.paginator.length)("pageIndex",e.paginator.pageIndex)("pageSizeOptions",e.paginator.pageSizeOptions)("pageSize",e.paginator.pageSize))},directives:[r.NW,a.O5,h],styles:[""]}),t}()},39571:function(t,e,i){"use strict";i.d(e,{w:function(){return u}});var n=i(31572),r=i(61511),o=i(43691);function a(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," error "),n.qZA())}var s=["*"],u=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:s,decls:3,vars:7,consts:[[1,"perun-alert","d-flex","align-items-center"],["class","perun-warn-alert-icon",4,"ngIf"],[1,"perun-warn-alert-icon"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.YNc(1,a,2,0,"mat-icon",1),n.Hsn(2),n.qZA()),2&t&&(n.ekj("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("info-alert","info"===e.alert_type),n.xp6(1),n.Q6J("ngIf","error"!==e.alert_type))},directives:[r.O5,o.Hw],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%], .perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-warn-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{color:#000;background-color:#fae2e2;border-left:4px solid;border-color:#d32f2f}"]}),t}()},22727:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var n=i(43691),r=i(61511),o=i(31572),a=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.Ps,r.ez]]}),t}()},10709:function(t,e,i){"use strict";i.d(e,{l3:function(){return o},_j:function(){return n},LC:function(){return r},ZN:function(){return b},jt:function(){return s},pV:function(){return p},ru:function(){return u},F4:function(){return d},IO:function(){return g},vP:function(){return c},SB:function(){return h},oB:function(){return l},eR:function(){return f},X$:function(){return a},ZE:function(){return w},k1:function(){return _}});var n=function t(){v(this,t)},r=function t(){v(this,t)},o="*";function a(t,e){return{type:7,name:t,definitions:e,options:{}}}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:t,options:e}}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function l(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function d(t){return{type:5,steps:t}}function f(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:i}}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function g(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:i}}function m(t){Promise.resolve(null).then(t)}var b=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;v(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+i}return y(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;m(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),w=function(){function t(e){var i=this;v(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,r=0,o=0,a=this.players.length;0==a?m(function(){return i._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==a&&i._onFinish()}),t.onDestroy(function(){++r==a&&i._onDestroy()}),t.onStart(function(){++o==a&&i._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return y(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(t){var i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(t,e){return null===t||e.totalTime>t.totalTime?e:t},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),_="!"},24621:function(t,e,i){"use strict";i.d(e,{rt:function(){return X},s1:function(){return P},$s:function(){return x},Qr:function(){return H},kH:function(){return Q},mK:function(){return Z},Em:function(){return D},tE:function(){return K},qV:function(){return F},qm:function(){return W},Kd:function(){return U},X6:function(){return j},yG:function(){return G}});var a=i(61511),u=i(31572),c=i(55959),l=i(87570),d=i(40878),f=i(75842),p=i(66599),g=i(47701),m=i(43835),b=i(79996),w=i(90611),_=i(19861),A=i(11353),k=i(36337);function T(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var C=0,S=new Map,E=null,x=function(){var t=function(){function t(e){v(this,t),this._document=e}return y(t,[{key:"describe",value:function(t,e,i){if(this._canBeDescribed(t,e)){var n=R(e,i);"string"!=typeof e?(I(e),S.set(n,{messageElement:e,referenceCount:0})):S.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}}},{key:"removeDescription",value:function(t,e,i){if(e&&this._isElementNode(t)){var n=R(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){var r=S.get(n);r&&0===r.referenceCount&&this._deleteMessageElement(n)}E&&0===E.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e-1&&e!==i._activeItemIndex&&(i._activeItemIndex=e)}})}return y(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,p.b)(function(e){return t._pressedLetters.push(e)}),(0,g.b)(e),(0,m.h)(function(){return t._pressedLetters.length>0}),(0,b.U)(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var i=t._getItemsArray(),n=1;n0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,i=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(function(i){return!t[i]||e._allowedModifierKeys.indexOf(i)>-1});switch(i){case f.Mf:return void this.tabOut.next();case f.JH:if(this._vertical&&n){this.setNextItemActive();break}return;case f.LH:if(this._vertical&&n){this.setPreviousItemActive();break}return;case f.SV:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case f.oh:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case f.Sd:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case f.uR:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||(0,f.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(i>=f.A&&i<=f.Z||i>=f.xE&&i<=f.aO)&&this._letterKeyStream.next(String.fromCharCode(i))))}this._pressedLetters=[],t.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),i=1;i<=e.length;i++){var n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof u.n_E?this._items.toArray():this._items}}]),t}(),P=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),n(h(i.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),i}(O),D=function(t){o(i,t);var e=s(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._origin="program",t}return y(i,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){n(h(i.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),i}(O),M=function(){var t=function(){function t(e){v(this,t),this._platform=e}return y(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,i=function(t){try{return t.frameElement}catch(e){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(i){if(-1===N(i))return!1;if(!this.isVisible(i))return!1}var n=t.nodeName.toLowerCase(),r=N(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==r:"video"===n?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}},{key:"isFocusable",value:function(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||L(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(A.t4))},t.\u0275prov=u.Yz7({factory:function(){return new t(u.LFG(A.t4))},token:t,providedIn:"root"}),t}();function L(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function N(t){if(!L(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var z=function(){function t(e,i,n,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];v(this,t),this._element=e,this._checker=i,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return y(t,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.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)}},{key:"focusInitialElementWhenReady",value:function(t){var e=this;return new Promise(function(i){e._executeOnStable(function(){return i(e.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var e=this;return new Promise(function(i){e._executeOnStable(function(){return i(e.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var e=this;return new Promise(function(i){e._executeOnStable(function(){return i(e.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], [cdkFocusRegion").concat(t,"], [cdk-focus-").concat(t,"]")),i=0;i=0;i--){var n=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(n)return n}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(t)}}]),t}(),F=function(){var t=function(){function t(e,i,n){v(this,t),this._checker=e,this._ngZone=i,this._document=n}return y(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new z(t,this._checker,this._ngZone,this._document,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(M),u.LFG(u.R0b),u.LFG(a.K0))},t.\u0275prov=u.Yz7({factory:function(){return new t(u.LFG(M),u.LFG(u.R0b),u.LFG(a.K0))},token:t,providedIn:"root"}),t}(),Z=function(){var t=function(){function t(e,i,n){v(this,t),this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return y(t,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=(0,_.Ig)(t)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(t){this._autoCapture=(0,_.Ig)(t)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(t){var e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=(0,A.ht)(),this.focusTrap.focusInitialElementWhenReady()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.SBq),u.Y36(F),u.Y36(a.K0))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[u.TTD]}),t}();"undefined"!=typeof Element&∈var B=new u.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),q=new u.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),U=function(){var t=function(){function t(e,i,n,r){v(this,t),this._ngZone=i,this._defaultOptions=r,this._document=n,this._liveElement=e||this._createLiveElement()}return y(t,[{key:"announce",value:function(t){for(var e,i,n,o=this,a=this._defaultOptions,s=arguments.length,u=new Array(s>1?s-1:0),c=1;c1&&void 0!==arguments[1]&&arguments[1],i=(0,_.fI)(t);if(!this._platform.isBrowser||1!==i.nodeType)return(0,d.of)(null);var n=(0,A.kV)(i)||this._getDocument(),r=this._elementInfo.get(i);if(r)return e&&(r.checkChildren=!0),r.subject;var o={checkChildren:e,subject:new c.xQ,rootNode:n};return this._elementInfo.set(i,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(t){var e=(0,_.fI)(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}},{key:"focusVia",value:function(t,e,i){var n=this,o=(0,_.fI)(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(function(t){var i=r(t,2),o=i[0],a=i[1];return n._originChanged(o,e,a)}):(this._setOriginForCurrentEventQueue(e),"function"==typeof o.focus&&o.focus(i))}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach(function(e,i){return t.stopMonitoring(i)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,i){i?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout(function(){return e._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(t){var e=J(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var i=this._elementInfo.get(e);i&&(i.checkChildren||e===J(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}},{key:"_onBlur",value:function(t,e){var i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run(function(){return t.next(e)})}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var i=t.rootNode,n=this._rootNodeFocusListenerCount.get(i)||0;n||this._ngZone.runOutsideAngular(function(){i.addEventListener("focus",e._rootNodeFocusAndBlurListener,V),i.addEventListener("blur",e._rootNodeFocusAndBlurListener,V)}),this._rootNodeFocusListenerCount.set(i,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var t=e._getDocument(),i=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,V),t.addEventListener("mousedown",e._documentMousedownListener,V),t.addEventListener("touchstart",e._documentTouchstartListener,V),i.addEventListener("focus",e._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var i=this._rootNodeFocusListenerCount.get(e);i>1?this._rootNodeFocusListenerCount.set(e,i-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,V),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,V),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var n=this._getDocument(),r=this._getWindow();n.removeEventListener("keydown",this._documentKeydownListener,V),n.removeEventListener("mousedown",this._documentMousedownListener,V),n.removeEventListener("touchstart",this._documentTouchstartListener,V),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}},{key:"_getClosestElementsInfo",value:function(t){var e=[];return this._elementInfo.forEach(function(i,n){(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(u.R0b),u.LFG(A.t4),u.LFG(a.K0,8),u.LFG(Y,8))},t.\u0275prov=u.Yz7({factory:function(){return new t(u.LFG(u.R0b),u.LFG(A.t4),u.LFG(a.K0,8),u.LFG(Y,8))},token:t,providedIn:"root"}),t}();function J(t){return t.composedPath?t.composedPath()[0]:t.target}var Q=function(){var t=function(){function t(e,i){v(this,t),this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new u.vpe}return y(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(e){return t.cdkFocusChange.emit(e)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.SBq),u.Y36(K))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),W=function(){var t=function(){function t(e,i){v(this,t),this._platform=e,this._document=i}return y(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(A.t4),u.LFG(a.K0))},t.\u0275prov=u.Yz7({factory:function(){return new t(u.LFG(A.t4),u.LFG(a.K0))},token:t,providedIn:"root"}),t}(),X=function(){var t=function t(e){v(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275fac=function(e){return new(e||t)(u.LFG(W))},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({imports:[[A.ud,k.Q8]]}),t}()},22526:function(t,e,i){"use strict";i.d(e,{vT:function(){return s},Is:function(){return a}});var n=i(31572),r=i(61511),o=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,n.f3M)(r.K0)}}),a=function(){var t=function(){function t(e){if(v(this,t),this.value="ltr",this.change=new n.vpe,e){var i=e.documentElement?e.documentElement.dir:null,r=(e.body?e.body.dir:null)||i;this.value="ltr"===r||"rtl"===r?r:"ltr"}}return y(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(o,8))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(o,8))},token:t,providedIn:"root"}),t}(),s=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t}()},81391:function(t,e,i){"use strict";i.d(e,{i3:function(){return u},TU:function(){return a},Iq:function(){return c}});var n=i(61511),r=i(31572),o=function(){function t(e,i){v(this,t),this._document=i;var n=this._textarea=this._document.createElement("textarea"),r=n.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",n.setAttribute("aria-hidden","true"),n.value=e,this._document.body.appendChild(n)}return y(t,[{key:"copy",value:function(){var t=this._textarea,e=!1;try{if(t){var i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(n){}return e}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),t}(),a=function(){var t=function(){function t(e){v(this,t),this._document=e}return y(t,[{key:"copy",value:function(t){var e=this.beginCopy(t),i=e.copy();return e.destroy(),i}},{key:"beginCopy",value:function(t){return new o(t,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.K0))},token:t,providedIn:"root"}),t}(),s=new r.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG"),u=function(){var t=function(){function t(e,i,n){v(this,t),this._clipboard=e,this._ngZone=i,this.text="",this.attempts=1,this.copied=new r.vpe,this._pending=new Set,n&&null!=n.attempts&&(this.attempts=n.attempts)}return y(t,[{key:"copy",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(e>1){var i=e,n=this._clipboard.beginCopy(this.text);this._pending.add(n);var r=function e(){var r=n.copy();r||!--i||t._destroyed?(t._currentTimeout=null,t._pending.delete(n),n.destroy(),t.copied.emit(r)):t._currentTimeout=t._ngZone.runOutsideAngular(function(){return setTimeout(e,1)})};r()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(function(t){return t.destroy()}),this._pending.clear(),this._destroyed=!0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(a),r.Y36(r.R0b),r.Y36(s,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&r.NdJ("click",function(){return e.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t}(),c=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}()},19861:function(t,e,i){"use strict";i.d(e,{t6:function(){return a},Eq:function(){return s},Ig:function(){return r},HM:function(){return u},fI:function(){return c},su:function(){return o},du:function(){return l}});var n=i(31572);function r(t){return null!=t&&"false"!="".concat(t)}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return a(t)?Number(t):e}function a(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function s(t){return Array.isArray(t)?t:[t]}function u(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function c(t){return t instanceof n.SBq?t.nativeElement:t}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,i=[];if(null!=t){var n,r=Array.isArray(t)?t:"".concat(t).split(e),o=f(r);try{for(o.s();!(n=o.n()).done;){var a=n.value,s="".concat(a).trim();s&&i.push(s)}}catch(u){o.e(u)}finally{o.f()}}return i}},4230:function(t,e,i){"use strict";i.d(e,{P3:function(){return h},o2:function(){return c},Ov:function(){return g},A8:function(){return m},yy:function(){return d},eX:function(){return p},k:function(){return b},Z9:function(){return l}});var n=i(4710),r=i(40878),a=i(55959),u=i(31572),c=function t(){v(this,t)};function l(t){return t&&"function"==typeof t.connect}var h=function(t){o(i,t);var e=s(i);function i(t){var n;return v(this,i),(n=e.call(this))._data=t,n}return y(i,[{key:"connect",value:function(){return(0,n.b)(this._data)?this._data:(0,r.of)(this._data)}},{key:"disconnect",value:function(){}}]),i}(c),d=function(){function t(){v(this,t)}return y(t,[{key:"applyChanges",value:function(t,e,i,n,r){t.forEachOperation(function(t,n,o){var a,s;if(null==t.previousIndex){var u=i(t,n,o);a=e.createEmbeddedView(u.templateRef,u.context,u.index),s=1}else null==o?(e.remove(n),s=3):(a=e.get(n),e.move(a,o),s=2);r&&r({context:null==a?void 0:a.context,operation:s,record:t})})}},{key:"detach",value:function(){}}]),t}(),p=function(){function t(){v(this,t),this.viewCacheSize=20,this._viewCache=[]}return y(t,[{key:"applyChanges",value:function(t,e,i,n,r){var o=this;t.forEachOperation(function(t,a,s){var u,c;null==t.previousIndex?c=(u=o._insertView(function(){return i(t,a,s)},s,e,n(t)))?1:0:null==s?(o._detachAndCacheView(a,e),c=3):(u=o._moveView(a,s,e,n(t)),c=2),r&&r({context:null==u?void 0:u.context,operation:c,record:t})})}},{key:"detach",value:function(){var t,e=f(this._viewCache);try{for(e.s();!(t=e.n()).done;){t.value.destroy()}}catch(i){e.e(i)}finally{e.f()}this._viewCache=[]}},{key:"_insertView",value:function(t,e,i,n){var r=this._insertViewFromCache(e,i);if(!r){var o=t();return i.createEmbeddedView(o.templateRef,o.context,o.index)}r.context.$implicit=n}},{key:"_detachAndCacheView",value:function(t,e){var i=e.detach(t);this._maybeCacheView(i,e)}},{key:"_moveView",value:function(t,e,i,n){var r=i.get(t);return i.move(r,e),r.context.$implicit=n,r}},{key:"_maybeCacheView",value:function(t,e){if(this._viewCache.length0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];v(this,t),this._multiple=i,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new a.xQ,n&&n.length&&(i?n.forEach(function(t){return e._markSelected(t)}):this._markSelected(n[0]),this._selectedToEmit.length=0)}return y(t,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n-1?1:1e3;return parseFloat(t)*e}function I(t,e){return t.getPropertyValue(e).split(",").map(function(t){return t.trim()})}function O(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function P(t,e,i){var n=t.top,r=t.bottom,o=t.left,a=t.right;return i>=n&&i<=r&&e>=o&&e<=a}function D(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function M(t,e,i,n){var r=t.top,o=t.right,a=t.bottom,s=t.left,u=t.width*e,c=t.height*e;return n>r-c&&ns-u&&i=s._config.dragStartThreshold){var r=Date.now()>=s._dragStartTime+s._getDragStartDelay(t),o=s._dropContainer;if(!r)return void s._endDragSequence(t);o&&(o.isDragging()||o.isReceiving())||(t.preventDefault(),s._hasStartedDragging=!0,s._ngZone.run(function(){return s._startDragSequence(t)}))}},this._pointerUp=function(t){s._endDragSequence(t)},this.withRootElement(e).withParent(i.parentDragRef||null),this._parentPositions=new L(n,o),a.registerDragItem(this)}return y(t,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var e=(0,u.Ig)(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(function(t){return S(t,e)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(t){var e=this;this._handles=t.map(function(t){return(0,u.fI)(t)}),this._handles.forEach(function(t){return S(t,e.disabled)}),this._toggleNativeDragInteractions();var i=new Set;return this._disabledHandles.forEach(function(t){e._handles.indexOf(t)>-1&&i.add(t)}),this._disabledHandles=i,this}},{key:"withPreviewTemplate",value:function(t){return this._previewTemplate=t,this}},{key:"withPlaceholderTemplate",value:function(t){return this._placeholderTemplate=t,this}},{key:"withRootElement",value:function(t){var e=this,i=(0,u.fI)(t);return i!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){i.addEventListener("mousedown",e._pointerDown,U),i.addEventListener("touchstart",e._pointerDown,q)}),this._initialTransform=void 0,this._rootElement=i),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(t){var e=this;return this._boundaryElement=t?(0,u.fI)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return e._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(t){return this._parentDragRef=t,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&Y(this._rootElement),Y(this._anchor),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}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),S(t,!0))}},{key:"enableHandle",value:function(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),S(t,this.disabled))}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"_withDropContainer",value:function(t){this._dropContainer=t}},{key:"getFreeDragPosition",value:function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}},{key:"setFreeDragPosition",value:function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}},{key:"withPreviewContainer",value:function(t){return this._previewContainer=t,this}},{key:"_sortFromLastPointerPosition",value:function(){var t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&Y(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&Y(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(t){var e=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){e._cleanupDragArtifacts(t),e._cleanupCachedDimensions(),e._dragDropRegistry.stopDragging(e)});else{this._passiveTransform.x=this._activeTransform.x;var i=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){e.ended.next({source:e,distance:e._getDragDistance(i),dropPoint:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(t){V(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var e=this._dropContainer;if(e){var i=this._rootElement,n=i.parentNode,r=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();n.insertBefore(o,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),E(i,!1),this._document.body.appendChild(n.replaceChild(r,i)),this._getPreviewInsertionPoint(n,a).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(t,e){var i=this;this._parentDragRef&&e.stopPropagation();var n=this.isDragging(),r=V(e),o=!r&&0!==e.button,a=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),!(n||o||s)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor||"",a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(function(t){i._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=O(this._boundaryElement));var u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);var c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}}},{key:"_cleanupDragArtifacts",value:function(t){var e=this;E(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var i=e._dropContainer,n=i.getItemIndex(e),r=e._getPointerPositionOnPage(t),o=e._getDragDistance(r),a=i._isOverContainer(r.x,r.y);e.ended.next({source:e,distance:o,dropPoint:r}),e.dropped.next({item:e,currentIndex:n,previousIndex:e._initialIndex,container:i,previousContainer:e._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r}),i.drop(e,n,e._initialIndex,e._initialContainer,a,o,r),e._dropContainer=e._initialContainer})}},{key:"_updateActiveDropContainer",value:function(t,e){var i=this,n=t.x,r=t.y,o=e.x,a=e.y,s=this._initialContainer._getSiblingContainerFromPosition(this,n,r);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,r)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(function(){i.exited.next({item:i,container:i._dropContainer}),i._dropContainer.exit(i),i._dropContainer=s,i._dropContainer.enter(i,n,r,s===i._initialContainer&&s.sortingDisabled?i._initialIndex:void 0),i.entered.next({item:i,container:s,currentIndex:s.getItemIndex(i)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(o,a),this._dropContainer._sortItem(this,n,r,this._pointerDirectionDelta),this._applyPreviewTransform(n-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var t,e=this._previewTemplate,i=this.previewClass,n=e?e.template:null;if(n&&e){var r=e.matchSize?this._rootElement.getBoundingClientRect():null,o=e.viewContainer.createEmbeddedView(n,e.context);o.detectChanges(),t=K(o,this._document),this._previewRef=o,e.matchSize?J(t,r):t.style.transform=j(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;J(t=N(a),a.getBoundingClientRect()),this._initialTransform&&(t.style.transform=this._initialTransform)}return C(t.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"".concat(this._config.zIndex||1e3)}),S(t,!1),t.classList.add("cdk-drag-preview"),t.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(function(e){return t.classList.add(e)}):t.classList.add(i)),t}},{key:"_animatePreviewToPlaceholder",value:function(){var t=this;if(!this._hasMoved)return Promise.resolve();var e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);var i=function(t){var e=getComputedStyle(t),i=I(e,"transition-property"),n=i.find(function(t){return"transform"===t||"all"===t});if(!n)return 0;var r=i.indexOf(n),o=I(e,"transition-duration"),a=I(e,"transition-delay");return R(o[r])+R(a[r])}(this._preview);return 0===i?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(e){var n=function i(n){(!n||n.target===t._preview&&"transform"===n.propertyName)&&(t._preview.removeEventListener("transitionend",i),e(),clearTimeout(r))},r=setTimeout(n,1.5*i);t._preview.addEventListener("transitionend",n)})})}},{key:"_createPlaceholderElement",value:function(){var t,e=this._placeholderTemplate,i=e?e.template:null;return i?(this._placeholderRef=e.viewContainer.createEmbeddedView(i,e.context),this._placeholderRef.detectChanges(),t=K(this._placeholderRef,this._document)):t=N(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}},{key:"_getPointerPositionInElement",value:function(t,e){var i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,r=n?n.getBoundingClientRect():i,o=V(e)?e.targetTouches[0]:e,a=this._getViewportScrollPosition();return{x:r.left-i.left+(o.pageX-r.left-a.left),y:r.top-i.top+(o.pageY-r.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(t){var e=this._getViewportScrollPosition(),i=V(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,r=i.pageY-e.top;if(this._ownerSVGElement){var o=this._ownerSVGElement.getScreenCTM();if(o){var a=this._ownerSVGElement.createSVGPoint();return a.x=n,a.y=r,a.matrixTransform(o.inverse())}}return{x:n,y:r}}},{key:"_getConstrainedPointerPosition",value:function(t){var e=this._dropContainer?this._dropContainer.lockAxis:null,i=this.constrainPosition?this.constrainPosition(t,this):t,n=i.x,r=i.y;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(n=this._pickupPositionOnPage.x),this._boundaryRect){var o=this._pickupPositionInElement,a=o.x,s=o.y,u=this._boundaryRect,c=this._previewRect,l=u.top+s,h=u.bottom-(c.height-s);n=G(n,u.left+a,u.right-(c.width-a)),r=G(r,l,h)}return{x:n,y:r}}},{key:"_updatePointerDirectionDelta",value:function(t){var e=t.x,i=t.y,n=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-r.x),a=Math.abs(i-r.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=e>r.x?1:-1,r.x=e),a>this._config.pointerDirectionChangeThreshold&&(n.y=i>r.y?1:-1,r.y=i),n}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,S(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,U),t.removeEventListener("touchstart",this._pointerDown,q)}},{key:"_applyRootElementTransform",value:function(t,e){var i=j(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=x(i,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(t,e){var i,n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,r=j(t,e);this._preview.style.transform=x(r,n)}},{key:"_getDragDistance",value:function(t){var e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var t=this._passiveTransform,e=t.x,i=t.y;if(!(0===e&&0===i||this.isDragging())&&this._boundaryElement){var n=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===n.width&&0===n.height||0===r.width&&0===r.height)){var o=n.left-r.left,a=r.right-n.right,s=n.top-r.top,u=r.bottom-n.bottom;n.width>r.width?(o>0&&(e+=o),a>0&&(e-=a)):e=0,n.height>r.height?(s>0&&(i+=s),u>0&&(i-=u)):i=0,e===this._passiveTransform.x&&i===this._passiveTransform.y||this.setFreeDragPosition({y:i,x:e})}}}},{key:"_getDragStartDelay",value:function(t){var e=this.dragStartDelay;return"number"==typeof e?e:V(t)?e.touch:e?e.mouse:0}},{key:"_updateOnScroll",value:function(t){var e=this._parentPositions.handleScroll(t);if(e){var i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&D(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))}}},{key:"_getViewportScrollPosition",value:function(){var t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,s.kV)(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(t,e){var i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){var n=this._document;return e||n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.body}return(0,u.fI)(i)}}]),t}();function j(t,e){return"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(e),"px, 0)")}function G(t,e,i){return Math.max(e,Math.min(i,t))}function Y(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function V(t){return"t"===t.type[0]}function K(t,e){var i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];var n=e.createElement("div");return i.forEach(function(t){return n.appendChild(t)}),n}function J(t,e){t.style.width="".concat(e.width,"px"),t.style.height="".concat(e.height,"px"),t.style.transform=j(e.left,e.top)}function Q(t,e,i){var n=W(e,t.length-1),r=W(i,t.length-1);if(n!==r){for(var o=t[n],a=r-1&&o.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){var l=c.getRootElement();l.parentElement.insertBefore(s,l),o.splice(r,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){var h=o[0].getRootElement();h.parentNode.insertBefore(s,h),o.unshift(t)}else(0,u.fI)(this.element).appendChild(s),o.push(t);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}},{key:"exit",value:function(t){this._reset(),this.exited.next({item:t,container:this})}},{key:"drop",value:function(t,e,i,n,r,o,a){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:r,distance:o,dropPoint:a})}},{key:"withItems",value:function(t){var e=this,i=this._draggables;return this._draggables=t,t.forEach(function(t){return t._withDropContainer(e)}),this.isDragging()&&(i.filter(function(t){return t.isDragging()}).every(function(e){return-1===t.indexOf(e)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"connectedTo",value:function(t){return this._siblings=t.slice(),this}},{key:"withOrientation",value:function(t){return this._orientation=t,this}},{key:"withScrollableParents",value:function(t){var e=(0,u.fI)(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e].concat(d(t)):t.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(t){return this._isDragging?$("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(e){return e.drag===t}):this._draggables.indexOf(t)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(t,e,i,n){if(!this.sortingDisabled&&this._clientRect&&M(this._clientRect,.05,e,i)){var r=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,n);if(!(-1===o&&r.length>0)){var a="horizontal"===this._orientation,s=$(r,function(e){return e.drag===t}),u=r[o],c=u.clientRect,l=s>o?1:-1,h=this._getItemOffsetPx(r[s].clientRect,c,l),d=this._getSiblingOffsetPx(s,r,l),f=r.slice();Q(r,s,o),this.sorted.next({previousIndex:s,currentIndex:o,container:this,item:t}),r.forEach(function(e,i){if(f[i]!==e){var n=e.drag===t,r=n?h:d,o=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=r,a?(o.style.transform=x("translate3d(".concat(Math.round(e.offset),"px, 0, 0)"),e.initialTransform),D(e.clientRect,0,r)):(o.style.transform=x("translate3d(0, ".concat(Math.round(e.offset),"px, 0)"),e.initialTransform),D(e.clientRect,r,0))}}),this._previousSwap.overlaps=P(c,e,i),this._previousSwap.drag=u.drag,this._previousSwap.delta=a?n.x:n.y}}}},{key:"_startScrollingIfNecessary",value:function(t,e){var i=this;if(!this.autoScrollDisabled){var n,o=0,a=0;if(this._parentPositions.positions.forEach(function(s,u){var c;u!==i._document&&s.clientRect&&!n&&M(s.clientRect,.05,t,e)&&(c=r(function(t,e,i,n){var r=it(e,n),o=nt(e,i),a=0,s=0;if(r){var u=t.scrollTop;1===r?u>0&&(a=1):t.scrollHeight-u>t.clientHeight&&(a=2)}if(o){var c=t.scrollLeft;1===o?c>0&&(s=1):t.scrollWidth-c>t.clientWidth&&(s=2)}return[a,s]}(u,s.clientRect,t,e),2),o=c[0],a=c[1],(o||a)&&(n=u))}),!o&&!a){var s=this._viewportRuler.getViewportSize(),u=s.width,c=s.height,l={width:u,height:c,top:0,right:u,bottom:c,left:0};o=it(l,e),a=nt(l,t),n=window}!n||o===this._verticalScrollDirection&&a===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=o,this._horizontalScrollDirection=a,this._scrollNode=n,(o||a)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var t=(0,u.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var t=(0,u.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}},{key:"_cacheItemPositions",value:function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(t){var e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:O(e)}}).sort(function(e,i){return t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top})}},{key:"_reset",value:function(){var t=this;this._isDragging=!1;var e=(0,u.fI)(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(e){var i,n=e.getRootElement();if(n){var r=null===(i=t._itemPositions.find(function(t){return t.drag===e}))||void 0===i?void 0:i.initialTransform;n.style.transform=r||""}}),this._siblings.forEach(function(e){return e._stopReceiving(t)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(t,e,i){var n="horizontal"===this._orientation,r=e[t].clientRect,o=e[t+-1*i],a=r[n?"width":"height"]*i;if(o){var s=n?"left":"top",u=n?"right":"bottom";-1===i?a-=o.clientRect[s]-r[u]:a+=r[s]-o.clientRect[u]}return a}},{key:"_getItemOffsetPx",value:function(t,e,i){var n="horizontal"===this._orientation,r=n?e.left-t.left:e.top-t.top;return-1===i&&(r+=n?e.width-t.width:e.height-t.height),r}},{key:"_shouldEnterAsFirstChild",value:function(t,e){if(!this._activeDraggables.length)return!1;var i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){var r=i[i.length-1].clientRect;return n?t>=r.right:e>=r.bottom}var o=i[0].clientRect;return n?t<=o.left:e<=o.top}},{key:"_getItemIndexFromPointerPosition",value:function(t,e,i,n){var r=this,o="horizontal"===this._orientation,a=$(this._itemPositions,function(a,s,u){var c=a.drag,l=a.clientRect;if(c===t)return u.length<2;if(n){var h=o?n.x:n.y;if(c===r._previousSwap.drag&&r._previousSwap.overlaps&&h===r._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&i-1})&&(n.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(function(e){if(t.isDragging()){var i=t._parentPositions.handleScroll(e);i&&(t._itemPositions.forEach(function(t){D(t.clientRect,i.top,i.left)}),t._itemPositions.forEach(function(e){var i=e.drag;t._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()}))}else t.isReceiving()&&t._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var t=(0,s.kV)((0,u.fI)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var t=this,e=this._activeDraggables.filter(function(t){return t.isDragging()});this._siblings.forEach(function(i){return i._startReceiving(t,e)})}}]),t}();function $(t,e){for(var i=0;i=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}function nt(t,e){var i=t.left,n=t.right,r=.05*t.width;return e>=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}var rt=(0,s.i$)({passive:!1,capture:!0}),ot=function(){var t=function(){function t(e,i){var n=this;v(this,t),this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(t){return t.isDragging()},this.pointerMove=new c.xQ,this.pointerUp=new c.xQ,this.scroll=new c.xQ,this._preventDefaultWhileDragging=function(t){n._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=function(t){n._activeDragInstances.length>0&&(n._activeDragInstances.some(n._draggingPredicate)&&t.preventDefault(),n.pointerMove.next(t))},this._document=i}return y(t,[{key:"registerDropContainer",value:function(t){this._dropInstances.has(t)||this._dropInstances.add(t)}},{key:"registerDragItem",value:function(t){var e=this;this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){e._document.addEventListener("touchmove",e._persistentTouchmoveListener,rt)})}},{key:"removeDropContainer",value:function(t){this._dropInstances.delete(t)}},{key:"removeDragItem",value:function(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,rt)}},{key:"startDragging",value:function(t,e){var i=this;if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){var n=e.type.startsWith("touch");this._globalListeners.set(n?"touchend":"mouseup",{handler:function(t){return i.pointerUp.next(t)},options:!0}).set("scroll",{handler:function(t){return i.scroll.next(t)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:rt}),n||this._globalListeners.set("mousemove",{handler:function(t){return i.pointerMove.next(t)},options:rt}),this._ngZone.runOutsideAngular(function(){i._globalListeners.forEach(function(t,e){i._document.addEventListener(e,t.handler,t.options)})})}}},{key:"stopDragging",value:function(t){var e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(t){return this._activeDragInstances.indexOf(t)>-1}},{key:"ngOnDestroy",value:function(){var t=this;this._dragInstances.forEach(function(e){return t.removeDragItem(e)}),this._dropInstances.forEach(function(e){return t.removeDropContainer(e)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var t=this;this._globalListeners.forEach(function(e,i){t._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.R0b),n.LFG(o.K0))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(n.R0b),n.LFG(o.K0))},token:t,providedIn:"root"}),t}(),at={dragStartThreshold:5,pointerDirectionChangeThreshold:5},st=function(){var t=function(){function t(e,i,n,r){v(this,t),this._document=e,this._ngZone=i,this._viewportRuler=n,this._dragDropRegistry=r}return y(t,[{key:"createDrag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:at;return new H(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(t){return new X(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(o.K0),n.LFG(n.R0b),n.LFG(a.rL),n.LFG(ot))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(o.K0),n.LFG(n.R0b),n.LFG(a.rL),n.LFG(ot))},token:t,providedIn:"root"}),t}(),ut=new n.OlP("CDK_DRAG_PARENT"),ct=new n.OlP("CdkDropListGroup"),lt=new n.OlP("CDK_DRAG_CONFIG"),ht=0,dt=new n.OlP("CdkDropList"),ft=function(){var t=function(){function t(e,i,r,o,a,s,u){var l=this;v(this,t),this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new c.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+ht++,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.sorted=new n.vpe,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,u&&this._assignDefaults(u),this._dropListRef.enterPredicate=function(t,e){return l.enterPredicate(t.data,e.data)},this._dropListRef.sortPredicate=function(t,e,i){return l.sortPredicate(t,e.data,i.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),s&&s._items.add(this)}return y(t,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(t){this._dropListRef.disabled=this._disabled=(0,u.Ig)(t)}},{key:"addItem",value:function(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort(function(t,e){return t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})}},{key:"ngOnDestroy",value:function(){var e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"_setupInputSyncSubscription",value:function(e){var i=this;this._dir&&this._dir.change.pipe((0,b.O)(this._dir.value),(0,m.R)(this._destroyed)).subscribe(function(t){return e.withDirection(t)}),e.beforeStarted.subscribe(function(){var n=(0,u.Eq)(i.connectedTo).map(function(e){return"string"==typeof e?t._dropLists.find(function(t){return t.id===e}):e});if(i._group&&i._group._items.forEach(function(t){-1===n.indexOf(t)&&n.push(t)}),!i._scrollableParentsResolved){var r=i._scrollDispatcher.getAncestorScrollContainers(i.element).map(function(t){return t.getElementRef().nativeElement});i._dropListRef.withScrollableParents(r),i._scrollableParentsResolved=!0}e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.sortingDisabled=(0,u.Ig)(i.sortingDisabled),e.autoScrollDisabled=(0,u.Ig)(i.autoScrollDisabled),e.autoScrollStep=(0,u.su)(i.autoScrollStep,2),e.connectedTo(n.filter(function(t){return t&&t!==i}).map(function(t){return t._dropListRef})).withOrientation(i.orientation)})}},{key:"_handleEvents",value:function(t){var e=this;t.beforeStarted.subscribe(function(){e._syncItemsWithRef(),e._changeDetectorRef.markForCheck()}),t.entered.subscribe(function(t){e.entered.emit({container:e,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(function(t){e.exited.emit({container:e,item:t.item.data}),e._changeDetectorRef.markForCheck()}),t.sorted.subscribe(function(t){e.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:e,item:t.item.data})}),t.dropped.subscribe(function(t){e.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}),e._changeDetectorRef.markForCheck()})}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,i=t.draggingDisabled,n=t.sortingDisabled,r=t.listAutoScrollDisabled,o=t.listOrientation;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=r&&r,this.orientation=o||"vertical",e&&(this.lockAxis=e)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map(function(t){return t._dragRef}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(st),n.Y36(n.sBO),n.Y36(a.mF),n.Y36(T.Is,8),n.Y36(ct,12),n.Y36(lt,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(n.uIk("id",e.id),n.ekj("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[n._Bn([{provide:ct,useValue:void 0},{provide:dt,useExisting:t}])]}),t._dropLists=[],t}(),pt=new n.OlP("CdkDragHandle"),gt=new n.OlP("CdkDragPlaceholder"),vt=new n.OlP("CdkDragPreview"),mt=function(){var t=function(){function t(e,i,r,o,a,s,u,l,h,d,f){var g=this;v(this,t),this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=a,this._dir=u,this._changeDetectorRef=h,this._selfHandle=d,this._parentDrag=f,this._destroyed=new c.xQ,this.started=new n.vpe,this.released=new n.vpe,this.ended=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.dropped=new n.vpe,this.moved=new p.y(function(t){var e=g._dragRef.moved.pipe((0,w.U)(function(t){return{source:g,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}})).subscribe(t);return function(){e.unsubscribe()}}),this._dragRef=l.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:null==s?void 0:s.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),s&&this._assignDefaults(s),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return y(t,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(t){this._disabled=(0,u.Ig)(t),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var t=this;this._ngZone.onStable.pipe((0,_.q)(1),(0,m.R)(this._destroyed)).subscribe(function(){t._updateRootElement(),t._handles.changes.pipe((0,b.O)(t._handles),(0,A.b)(function(e){var i=e.filter(function(e){return e._parentDrag===t}).map(function(t){return t.element});t._selfHandle&&t.rootElementSelector&&i.push(t.element),t._dragRef.withHandles(i)}),(0,k.w)(function(t){return g.T.apply(void 0,d(t.map(function(t){return t._stateChanges.pipe((0,b.O)(t))})))}),(0,m.R)(t._destroyed)).subscribe(function(e){var i=t._dragRef,n=e.element.nativeElement;e.disabled?i.disableHandle(n):i.enableHandle(n)}),t.freeDragPosition&&t._dragRef.setFreeDragPosition(t.freeDragPosition)})}},{key:"ngOnChanges",value:function(t){var e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this);var e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var t=this.element.nativeElement,e=this.rootElementSelector?yt(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}},{key:"_getBoundaryElement",value:function(){var t=this.boundaryElement;return t?"string"==typeof t?yt(this.element.nativeElement,t):(0,u.fI)(t):null}},{key:"_syncInputs",value:function(e){var i=this;e.beforeStarted.subscribe(function(){if(!e.isDragging()){var t=i._dir,n=i.dragStartDelay,r=i._placeholderTemplate?{template:i._placeholderTemplate.templateRef,context:i._placeholderTemplate.data,viewContainer:i._viewContainerRef}:null,o=i._previewTemplate?{template:i._previewTemplate.templateRef,context:i._previewTemplate.data,matchSize:i._previewTemplate.matchSize,viewContainer:i._viewContainerRef}:null;e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.dragStartDelay="object"==typeof n&&n?n:(0,u.su)(n),e.constrainPosition=i.constrainPosition,e.previewClass=i.previewClass,e.withBoundaryElement(i._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(o).withPreviewContainer(i.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,_.q)(1)).subscribe(function(){var n,r;if(i._parentDrag)e.withParent(i._parentDrag._dragRef);else for(var o=i.element.nativeElement.parentElement;o;){if(null===(n=o.classList)||void 0===n?void 0:n.contains("cdk-drag")){e.withParent((null===(r=t._dragInstances.find(function(t){return t.element.nativeElement===o}))||void 0===r?void 0:r._dragRef)||null);break}o=o.parentElement}})}},{key:"_handleEvents",value:function(t){var e=this;t.started.subscribe(function(){e.started.emit({source:e}),e._changeDetectorRef.markForCheck()}),t.released.subscribe(function(){e.released.emit({source:e})}),t.ended.subscribe(function(t){e.ended.emit({source:e,distance:t.distance,dropPoint:t.dropPoint}),e._changeDetectorRef.markForCheck()}),t.entered.subscribe(function(t){e.entered.emit({container:t.container.data,item:e,currentIndex:t.currentIndex})}),t.exited.subscribe(function(t){e.exited.emit({container:t.container.data,item:e})}),t.dropped.subscribe(function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:e,distance:t.distance,dropPoint:t.dropPoint})})}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,i=t.dragStartDelay,n=t.constrainPosition,r=t.previewClass,o=t.boundaryElement,a=t.draggingDisabled,s=t.rootElementSelector,u=t.previewContainer;this.disabled=null!=a&&a,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),r&&(this.previewClass=r),o&&(this.boundaryElement=o),s&&(this.rootElementSelector=s),u&&(this.previewContainer=u)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(dt,12),n.Y36(o.K0),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(lt,8),n.Y36(T.Is,8),n.Y36(st),n.Y36(n.sBO),n.Y36(pt,10),n.Y36(ut,12))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){var r;(1&t&&(n.Suo(i,vt,5),n.Suo(i,gt,5),n.Suo(i,pt,5)),2&t)&&(n.iGM(r=n.CRH())&&(e._previewTemplate=r.first),n.iGM(r=n.CRH())&&(e._placeholderTemplate=r.first),n.iGM(r=n.CRH())&&(e._handles=r))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&n.ekj("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[n._Bn([{provide:ut,useExisting:t}]),n.TTD]}),t._dragInstances=[],t}();function yt(t,e){for(var i=t.parentElement;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}var bt=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[st],imports:[a.ZD]}),t}()},75842:function(t,e,i){"use strict";i.d(e,{A:function(){return b},ZH:function(){return n},OC:function(){return _},yY:function(){return v},JH:function(){return g},uR:function(){return l},K5:function(){return o},hY:function(){return a},Sd:function(){return h},oh:function(){return d},aO:function(){return y},VM:function(){return c},Ku:function(){return u},SV:function(){return p},L_:function(){return s},Mf:function(){return r},LH:function(){return f},Z:function(){return w},xE:function(){return m},Vb:function(){return A}});var n=8,r=9,o=13,a=27,s=32,u=33,c=34,l=35,h=36,d=37,f=38,p=39,g=40,v=46,m=48,y=57,b=65,w=90,_=188;function A(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;ne.height||t.scrollWidth>e.width}}]),t}(),R=function(){function t(e,i,n,r){var o=this;v(this,t),this._scrollDispatcher=e,this._ngZone=i,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return y(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),I=function(){function t(){v(this,t)}return y(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function O(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function P(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var D=function(){function t(e,i,n,r){v(this,t),this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this._config=r,this._scrollSubscription=null}return y(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),i=t._viewportRuler.getViewportSize(),n=i.width,r=i.height;O(e,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),M=function(){var t=function t(e,i,n,r){var o=this;v(this,t),this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this.noop=function(){return new I},this.close=function(t){return new R(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new x(o._viewportRuler,o._document)},this.reposition=function(t){return new D(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=r};return t.\u0275fac=function(e){return new(e||t)(u.LFG(a.mF),u.LFG(a.rL),u.LFG(u.R0b),u.LFG(d.K0))},t.\u0275prov=u.Yz7({factory:function(){return new t(u.LFG(a.mF),u.LFG(a.rL),u.LFG(u.R0b),u.LFG(d.K0))},token:t,providedIn:"root"}),t}(),L=function t(e){if(v(this,t),this.scrollStrategy=new I,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var i=0,n=Object.keys(e);i-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(d.K0))},t.\u0275prov=u.Yz7({factory:function(){return new t(u.LFG(d.K0))},token:t,providedIn:"root"}),t}(),Z=function(){var t=function(t){o(i,t);var e=s(i);function i(t){var n;return v(this,i),(n=e.call(this,t))._keydownListener=function(t){for(var e=n._attachedOverlays,i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}},n}return y(i,[{key:"add",value:function(t){n(h(i.prototype),"add",this).call(this,t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),i}(F);return t.\u0275fac=function(e){return new(e||t)(u.LFG(d.K0))},t.\u0275prov=u.Yz7({factory:function(){return new t(u.LFG(d.K0))},token:t,providedIn:"root"}),t}(),B=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t))._platform=n,r._cursorStyleIsSet=!1,r._clickListener=function(t){for(var e=t.composedPath?t.composedPath()[0]:t.target,i=r._attachedOverlays.slice(),n=i.length-1;n>-1;n--){var o=i[n];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(e))break;o._outsidePointerEvents.next(t)}}},r}return y(i,[{key:"add",value:function(t){if(n(h(i.prototype),"add",this).call(this,t),!this._isAttached){var e=this._document.body;e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),i}(F);return t.\u0275fac=function(e){return new(e||t)(u.LFG(d.K0),u.LFG(c.t4))},t.\u0275prov=u.Yz7({factory:function(){return new t(u.LFG(d.K0),u.LFG(c.t4))},token:t,providedIn:"root"}),t}(),q="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha,U=function(){var t=function(){function t(e,i){v(this,t),this._platform=i,this._document=e}return y(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||q)for(var t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),e=0;ep&&(p=m,d=v)}}catch(y){g.e(y)}finally{g.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Y(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var i;if("center"==e.originX)i=t.left+t.width/2;else{var n=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;i="start"==e.originX?n:r}return{x:i,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,i){var n,r;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+r}}},{key:"_getOverlayFit",value:function(t,e,i,n){var r=K(e),o=t.x,a=t.y,s=this._getOffset(n,"x"),u=this._getOffset(n,"y");s&&(o+=s),u&&(a+=u);var c=0-a,l=a+r.height-i.height,h=this._subtractOverflows(r.width,0-o,o+r.width-i.width),d=this._subtractOverflows(r.height,c,l),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,i){if(this._hasFlexibleDimensions){var n=i.bottom-e.y,r=i.right-e.x,o=V(this._overlayRef.getConfig().minHeight),a=V(this._overlayRef.getConfig().minWidth),s=t.fitsInViewportHorizontally||null!=a&&a<=r;return(t.fitsInViewportVertically||null!=o&&o<=n)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var n,r,o=K(e),a=this._viewportRect,s=Math.max(t.x+o.width-a.width,0),u=Math.max(t.y+o.height-a.height,0),c=Math.max(a.top-i.top-t.y,0),l=Math.max(a.left-i.left-t.x,0);return n=o.width<=a.width?l||-s:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(n=t.y-h/2)}if("end"===e.overlayX&&!c||"start"===e.overlayX&&c)s=u.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!c||"end"===e.overlayX&&c)a=t.x,o=u.right-t.x;else{var d=Math.min(u.right-t.x+u.left,t.x),f=this._lastBoundingBoxSize.width;o=2*d,a=t.x-d,o>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-f/2)}return{top:n,left:a,bottom:r,right:s,width:o,height:i}}},{key:"_setBoundingBoxStyles",value:function(t,e){var i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;n.height=(0,p.HM)(i.height),n.top=(0,p.HM)(i.top),n.bottom=(0,p.HM)(i.bottom),n.width=(0,p.HM)(i.width),n.left=(0,p.HM)(i.left),n.right=(0,p.HM)(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(n.maxHeight=(0,p.HM)(r)),o&&(n.maxWidth=(0,p.HM)(o))}this._lastBoundingBoxSize=i,Y(this._boundingBox.style,n)}},{key:"_resetBoundingBoxStyles",value:function(){Y(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Y(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var i={},n=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(n){var a=this._viewportRuler.getViewportScrollPosition();Y(i,this._getExactOverlayY(e,t,a)),Y(i,this._getExactOverlayX(e,t,a))}else i.position="static";var s="",u=this._getOffset(e,"x"),c=this._getOffset(e,"y");u&&(s+="translateX(".concat(u,"px) ")),c&&(s+="translateY(".concat(c,"px)")),i.transform=s.trim(),o.maxHeight&&(n?i.maxHeight=(0,p.HM)(o.maxHeight):r&&(i.maxHeight="")),o.maxWidth&&(n?i.maxWidth=(0,p.HM)(o.maxWidth):r&&(i.maxWidth="")),Y(this._pane.style,i)}},{key:"_getExactOverlayY",value:function(t,e,i){var n={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":n.top=(0,p.HM)(r.y),n}},{key:"_getExactOverlayX",value:function(t,e,i){var n={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"right"===(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?n.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":n.left=(0,p.HM)(r.x),n}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:P(t,i),isOriginOutsideView:O(t,i),isOverlayClipped:P(e,i),isOverlayOutsideView:O(e,i)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),n=i.width,r=i.height,o=i.maxWidth,a=i.maxHeight,s=!("100%"!==n&&"100vw"!==n||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=u?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),W=function(){var t=function(){function t(e,i,n,r){v(this,t),this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=r}return y(t,[{key:"global",value:function(){return new Q}},{key:"connectedTo",value:function(t,e,i){return new J(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new G(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(a.rL),u.LFG(d.K0),u.LFG(c.t4),u.LFG(U))},t.\u0275prov=u.Yz7({factory:function(){return new t(u.LFG(a.rL),u.LFG(d.K0),u.LFG(c.t4),u.LFG(U))},token:t,providedIn:"root"}),t}(),X=0,$=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c,l,h){v(this,t),this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=c,this._location=l,this._outsideClickDispatcher=h}return y(t,[{key:"create",value:function(t){var e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),r=new L(t);return r.direction=r.direction||this._directionality.value,new H(n,e,i,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-"+X++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(u.z2F)),new g.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(M),u.LFG(U),u.LFG(u._Vd),u.LFG(W),u.LFG(Z),u.LFG(u.zs3),u.LFG(u.R0b),u.LFG(d.K0),u.LFG(l.Is),u.LFG(d.Ye),u.LFG(B))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac}),t}(),tt=[{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"}],et=new u.OlP("cdk-connected-overlay-scroll-strategy"),it=function(){var t=function t(e){v(this,t),this.elementRef=e};return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.SBq))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),nt=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=b.w.EMPTY,this._attachSubscription=b.w.EMPTY,this._detachSubscription=b.w.EMPTY,this._positionSubscription=b.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new u.vpe,this.positionChange=new u.vpe,this.attach=new u.vpe,this.detach=new u.vpe,this.overlayKeydown=new u.vpe,this.overlayOutsideClick=new u.vpe,this._templatePortal=new g.UE(i,n),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return y(t,[{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=(0,p.Ig)(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=(0,p.Ig)(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=(0,p.Ig)(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=(0,p.Ig)(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=(0,p.Ig)(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var t=this;this.positions&&this.positions.length||(this.positions=tt);var e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(function(){return t.attach.emit()}),this._detachSubscription=e.detachments().subscribe(function(){return t.detach.emit()}),e.keydownEvents().subscribe(function(e){t.overlayKeydown.next(e),e.keyCode!==S.hY||t.disableClose||(0,S.Vb)(e)||(e.preventDefault(),t._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(e){t.overlayOutsideClick.next(e)})}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new L({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}},{key:"_updatePositionStrategy",value:function(t){var e=this,i=this.positions.map(function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}});return t.setOrigin(this.origin.elementRef).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}},{key:"_attachOverlay",value:function(){var t=this;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(function(e){t.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i){return i.lift(new A(t,e))}}(function(){return t.positionChange.observers.length>0})).subscribe(function(e){t.positionChange.emit(e),0===t.positionChange.observers.length&&t._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36($),u.Y36(u.Rgc),u.Y36(u.s_b),u.Y36(et),u.Y36(l.Is,8))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[u.TTD]}),t}(),rt={provide:et,deps:[$],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},ot=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({providers:[$,rt],imports:[[l.vT,g.eL,a.Cl],a.Cl]}),t}()},11353:function(t,e,i){"use strict";i.d(e,{t4:function(){return h},ud:function(){return d},ht:function(){return w},kV:function(){return b},_i:function(){return y},qK:function(){return p},i$:function(){return g},Mq:function(){return m}});var n,r=i(31572),o=i(61511);try{n="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(_){n=!1}var a,s,u,c,l,h=function(){var t=function t(e){v(this,t),this._platformId=e,this.isBrowser=this._platformId?(0,o.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!n)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.Lbi))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(r.Lbi))},token:t,providedIn:"root"}),t}(),d=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}(),f=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function p(){if(a)return a;if("object"!=typeof document||!document)return a=new Set(f);var t=document.createElement("input");return a=new Set(f.filter(function(e){return t.setAttribute("type",e),t.type===e}))}function g(t){return function(){if(null==s&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return s=!0}}))}finally{s=s||!1}return s}()?t:!!t.capture}function m(){if(null==c){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return c=!1;if("scrollBehavior"in document.documentElement.style)c=!0;else{var t=Element.prototype.scrollTo;c=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return c}function y(){if("object"!=typeof document||!document)return 0;if(null==u){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),u=0,0===t.scrollLeft&&(t.scrollLeft=1,u=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return u}function b(t){if(function(){if(null==l){var t="undefined"!=typeof document?document.head:null;l=!(!t||!t.createShadowRoot&&!t.attachShadow)}return l}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function w(){for(var t="undefined"!=typeof document&&document?document.activeElement:null;t&&t.shadowRoot;){var e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}},26899:function(t,e,i){"use strict";i.d(e,{en:function(){return p},ig:function(){return b},Pl:function(){return w},C5:function(){return l},F0:function(){return m},u0:function(){return g},eL:function(){return _},UE:function(){return d}});var r=i(31572),a=i(61511),u=function(){function t(){v(this,t)}return y(t,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),t}(),l=function(t){o(i,t);var e=s(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this)).component=t,a.viewContainerRef=n,a.injector=r,a.componentFactoryResolver=o,a}return i}(u),d=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this)).templateRef=t,o.viewContainerRef=n,o.context=r,o}return y(i,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,n(h(i.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,n(h(i.prototype),"detach",this).call(this)}}]),i}(u),f=function(t){o(i,t);var e=s(i);function i(t){var n;return v(this,i),(n=e.call(this)).element=t instanceof r.SBq?t.nativeElement:t,n}return i}(u),p=function(){function t(){v(this,t),this._isDisposed=!1,this.attachDomPortal=null}return y(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof l?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof d?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof f?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),g=function(t){o(i,t);var e=s(i);function i(t,r,o,a,s){var u,l;return v(this,i),(l=e.call(this)).outletElement=t,l._componentFactoryResolver=r,l._appRef=o,l._defaultInjector=a,l.attachDomPortal=function(t){var e=t.element,r=l._document.createComment("dom-portal");e.parentNode.insertBefore(r,e),l.outletElement.appendChild(e),l._attachedPortal=t,n((u=c(l),h(i.prototype)),"setDisposeFn",u).call(u,function(){r.parentNode&&r.parentNode.replaceChild(e,r)})},l._document=s,l}return y(i,[{key:"attachComponentPortal",value:function(t){var e,i=this,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(function(){return e.destroy()})):(e=n.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){i._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=t,e}},{key:"attachTemplatePortal",value:function(t){var e=this,i=t.viewContainerRef,n=i.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),n.detectChanges(),this.setDisposeFn(function(){var t=i.indexOf(n);-1!==t&&i.remove(t)}),this._attachedPortal=t,n}},{key:"dispose",value:function(){n(h(i.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),i}(p),m=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(g),b=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n){return v(this,i),e.call(this,t,n)}return i}(d);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.Rgc),r.Y36(r.s_b))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[r.qOj]}),t}(),w=function(){var t=function(t){o(i,t);var e=s(i);function i(t,o,a){var s,u;return v(this,i),(u=e.call(this))._componentFactoryResolver=t,u._viewContainerRef=o,u._isInitialized=!1,u.attached=new r.vpe,u.attachDomPortal=function(t){var e=t.element,r=u._document.createComment("dom-portal");t.setAttachedHost(c(u)),e.parentNode.insertBefore(r,e),u._getRootNode().appendChild(e),u._attachedPortal=t,n((s=c(u),h(i.prototype)),"setDisposeFn",s).call(s,function(){r.parentNode&&r.parentNode.replaceChild(e,r)})},u._document=a,u}return y(i,[{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&n(h(i.prototype),"detach",this).call(this),t&&n(h(i.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){n(h(i.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,r=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),o=e.createComponent(r,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),n(h(i.prototype),"setDisposeFn",this).call(this,function(){return o.destroy()}),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return n(h(i.prototype),"setDisposeFn",this).call(this,function(){return e._viewContainerRef.clear()}),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}]),i}(p);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(a.K0))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),t}(),_=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}()},4253:function(t,e,i){"use strict";i.d(e,{xd:function(){return B},PQ:function(){return U},ZD:function(){return K},x0:function(){return V},N7:function(){return G},mF:function(){return q},Cl:function(){return J},rL:function(){return H}});var a=i(19861),u=i(31572),c=i(55959),l=i(40878),d=i(48318),p=i(87254),g=i(91741),m=i(92709),b=i(87570),w=i(4710),_=i(96673),A=function(){function t(){v(this,t)}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new k(t))}}]),t}(),k=function(t){o(i,t);var e=s(i);function i(t){var n;return v(this,i),(n=e.call(this,t)).hasPrev=!1,n}return y(i,[{key:"_next",value:function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}]),i}(_.L),T=i(98720),C=i(30810),S=i(43835),E=i(25416),x=i(56238),R=i(44689),I=i(68303),O=i(11353),P=i(61511),D=i(22526),M=i(4230),L=["contentWrapper"],N=["*"],z=new u.OlP("VIRTUAL_SCROLL_STRATEGY"),F=function(){function t(e,i,n){v(this,t),this._scrolledIndexChange=new c.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,T.x)()),this._viewport=null,this._itemSize=e,this._minBufferPx=i,this._maxBufferPx=n}return y(t,[{key:"attach",value:function(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"detach",value:function(){this._scrolledIndexChange.complete(),this._viewport=null}},{key:"updateItemAndBufferSize",value:function(t,e,i){this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"onContentScrolled",value:function(){this._updateRenderedRange()}},{key:"onDataLengthChanged",value:function(){this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"onContentRendered",value:function(){}},{key:"onRenderedOffsetChanged",value:function(){}},{key:"scrollToIndex",value:function(t,e){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,e)}},{key:"_updateTotalContentSize",value:function(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}},{key:"_updateRenderedRange",value:function(){if(this._viewport){var t=this._viewport.getRenderedRange(),e={start:t.start,end:t.end},i=this._viewport.getViewportSize(),n=this._viewport.getDataLength(),r=this._viewport.measureScrollOffset(),o=this._itemSize>0?r/this._itemSize:0;if(e.end>n){var a=Math.ceil(i/this._itemSize),s=Math.max(0,Math.min(o,n-a));o!=s&&(o=s,r=s*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(n,e.start+a))}var u=r-e.start*this._itemSize;if(u0&&(e.end=Math.min(n,e.end+h),e.start=Math.max(0,Math.floor(o-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(o))}}}]),t}();function Z(t){return t._scrollStrategy}var B=function(){var t=function(){function t(){v(this,t),this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new F(this.itemSize,this.minBufferPx,this.maxBufferPx)}return y(t,[{key:"itemSize",get:function(){return this._itemSize},set:function(t){this._itemSize=(0,a.su)(t)}},{key:"minBufferPx",get:function(){return this._minBufferPx},set:function(t){this._minBufferPx=(0,a.su)(t)}},{key:"maxBufferPx",get:function(){return this._maxBufferPx},set:function(t){this._maxBufferPx=(0,a.su)(t)}},{key:"ngOnChanges",value:function(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=u.lG2({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[u._Bn([{provide:z,useFactory:Z,deps:[(0,u.Gpc)(function(){return t})]}]),u.TTD]}),t}(),q=function(){var t=function(){function t(e,i,n){v(this,t),this._ngZone=e,this._platform=i,this._scrolled=new c.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}return y(t,[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(function(){return e._scrolled.next(t)}))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new d.y(function(i){t._globalSubscription||t._addGlobalListener();var n=e>0?t._scrolled.pipe((0,C.e)(e)).subscribe(i):t._scrolled.subscribe(i);return t._scrolledCount++,function(){n.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):(0,l.of)()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,i){return t.deregister(i)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,S.h)(function(t){return!t||i.indexOf(t)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,i=[];return this.scrollContainers.forEach(function(n,r){e._scrollableContainsElement(r,t)&&i.push(r)}),i}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var i=(0,a.fI)(e),n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var e=t._getWindow();return(0,p.R)(e.document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(u.R0b),u.LFG(O.t4),u.LFG(P.K0,8))},t.\u0275prov=u.Yz7({factory:function(){return new t(u.LFG(u.R0b),u.LFG(O.t4),u.LFG(P.K0,8))},token:t,providedIn:"root"}),t}(),U=function(){var t=function(){function t(e,i,n,r){var o=this;v(this,t),this.elementRef=e,this.scrollDispatcher=i,this.ngZone=n,this.dir=r,this._destroyed=new c.xQ,this._elementScrolled=new d.y(function(t){return o.ngZone.runOutsideAngular(function(){return(0,p.R)(o.elementRef.nativeElement,"scroll").pipe((0,E.R)(o._destroyed)).subscribe(t)})})}return y(t,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(t){var e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=(0,O._i)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==(0,O._i)()?t.left=t.right:1==(0,O._i)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}},{key:"_applyScrollToOptions",value:function(t){var e=this.elementRef.nativeElement;(0,O.Mq)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}},{key:"measureScrollOffset",value:function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==(0,O._i)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==(0,O._i)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.SBq),u.Y36(q),u.Y36(u.R0b),u.Y36(D.Is,8))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t}(),H=function(){var t=function(){function t(e,i,n){var r=this;v(this,t),this._platform=e,this._change=new c.xQ,this._changeListener=function(t){r._change.next(t)},this._document=n,i.runOutsideAngular(function(){if(e.isBrowser){var t=r._getWindow();t.addEventListener("resize",r._changeListener),t.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return y(t,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),i=e.width,n=e.height;return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+i,height:n,width:i}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe((0,C.e)(t)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(O.t4),u.LFG(u.R0b),u.LFG(P.K0,8))},t.\u0275prov=u.Yz7({factory:function(){return new t(u.LFG(O.t4),u.LFG(u.R0b),u.LFG(P.K0,8))},token:t,providedIn:"root"}),t}(),j="undefined"!=typeof requestAnimationFrame?g.r:m.e,G=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o,a,s,u){var l;return v(this,i),(l=e.call(this,t,s,r,a)).elementRef=t,l._changeDetectorRef=n,l._scrollStrategy=o,l._detachedSubject=new c.xQ,l._renderedRangeSubject=new c.xQ,l._orientation="vertical",l.scrolledIndexChange=new d.y(function(t){return l._scrollStrategy.scrolledIndexChange.subscribe(function(e){return Promise.resolve().then(function(){return l.ngZone.run(function(){return t.next(e)})})})}),l.renderedRangeStream=l._renderedRangeSubject,l._totalContentSize=0,l._totalContentWidth="",l._totalContentHeight="",l._renderedRange={start:0,end:0},l._dataLength=0,l._viewportSize=0,l._renderedContentOffset=0,l._renderedContentOffsetNeedsRewrite=!1,l._isChangeDetectionPending=!1,l._runAfterChangeDetection=[],l._viewportChanges=b.w.EMPTY,l._viewportChanges=u.change().subscribe(function(){l.checkViewportSize()}),l}return y(i,[{key:"orientation",get:function(){return this._orientation},set:function(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}},{key:"ngOnInit",value:function(){var t=this;n(h(i.prototype),"ngOnInit",this).call(this),this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){t._measureViewportSize(),t._scrollStrategy.attach(t),t.elementScrolled().pipe((0,x.O)(null),(0,C.e)(0,j)).subscribe(function(){return t._scrollStrategy.onContentScrolled()}),t._markChangeDetectionNeeded()})})}},{key:"ngOnDestroy",value:function(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),n(h(i.prototype),"ngOnDestroy",this).call(this)}},{key:"attach",value:function(t){var e=this;this.ngZone.runOutsideAngular(function(){e._forOf=t,e._forOf.dataStream.pipe((0,E.R)(e._detachedSubject)).subscribe(function(t){var i=t.length;i!==e._dataLength&&(e._dataLength=i,e._scrollStrategy.onDataLengthChanged()),e._doChangeDetection()})})}},{key:"detach",value:function(){this._forOf=null,this._detachedSubject.next()}},{key:"getDataLength",value:function(){return this._dataLength}},{key:"getViewportSize",value:function(){return this._viewportSize}},{key:"getRenderedRange",value:function(){return this._renderedRange}},{key:"setTotalContentSize",value:function(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}},{key:"setRenderedRange",value:function(t){var e,i,n=this;((e=this._renderedRange).start!=(i=t).start||e.end!=i.end)&&(this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(function(){return n._scrollStrategy.onContentRendered()}))}},{key:"getOffsetToRenderedContentStart",value:function(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}},{key:"setRenderedContentOffset",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"to-start",n="horizontal"==this.orientation,r=n?"X":"Y",o="translate".concat(r,"(").concat(Number((n&&this.dir&&"rtl"==this.dir.value?-1:1)*t),"px)");this._renderedContentOffset=t,"to-end"===i&&(o+=" translate".concat(r,"(-100%)"),this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=o&&(this._renderedContentTransform=o,this._markChangeDetectionNeeded(function(){e._renderedContentOffsetNeedsRewrite?(e._renderedContentOffset-=e.measureRenderedContentSize(),e._renderedContentOffsetNeedsRewrite=!1,e.setRenderedContentOffset(e._renderedContentOffset)):e._scrollStrategy.onRenderedOffsetChanged()}))}},{key:"scrollToOffset",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",i={behavior:e};"horizontal"===this.orientation?i.start=t:i.top=t,this.scrollTo(i)}},{key:"scrollToIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";this._scrollStrategy.scrollToIndex(t,e)}},{key:"measureScrollOffset",value:function(t){return n(h(i.prototype),"measureScrollOffset",this).call(this,t||("horizontal"===this.orientation?"start":"top"))}},{key:"measureRenderedContentSize",value:function(){var t=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?t.offsetWidth:t.offsetHeight}},{key:"measureRangeSize",value:function(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}},{key:"checkViewportSize",value:function(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}},{key:"_measureViewportSize",value:function(){var t=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?t.clientWidth:t.clientHeight}},{key:"_markChangeDetectionNeeded",value:function(t){var e=this;t&&this._runAfterChangeDetection.push(t),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){e._doChangeDetection()})}))}},{key:"_doChangeDetection",value:function(){var t=this;this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(function(){return t._changeDetectorRef.markForCheck()});var e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];var i,n=f(e);try{for(n.s();!(i=n.n()).done;){(0,i.value)()}}catch(r){n.e(r)}finally{n.f()}}},{key:"_calculateSpacerSize",value:function(){this._totalContentHeight="horizontal"===this.orientation?"":"".concat(this._totalContentSize,"px"),this._totalContentWidth="horizontal"===this.orientation?"".concat(this._totalContentSize,"px"):""}}]),i}(U);return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.SBq),u.Y36(u.sBO),u.Y36(u.R0b),u.Y36(z,8),u.Y36(D.Is,8),u.Y36(q),u.Y36(H))},t.\u0275cmp=u.Xpm({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(t,e){var i;(1&t&&u.Gf(L,7),2&t)&&(u.iGM(i=u.CRH())&&(e._contentWrapper=i.first))},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(t,e){2&t&&u.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===e.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==e.orientation)},inputs:{orientation:"orientation"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[u._Bn([{provide:U,useExisting:t}]),u.qOj],ngContentSelectors:N,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(t,e){1&t&&(u.F$t(),u.TgZ(0,"div",0,1),u.Hsn(2),u.qZA(),u._UZ(3,"div",2)),2&t&&(u.xp6(3),u.Udp("width",e._totalContentWidth)("height",e._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),t}();function Y(t,e,i){if(!i.getBoundingClientRect)return 0;var n=i.getBoundingClientRect();return"horizontal"===t?"start"===e?n.left:n.right:"start"===e?n.top:n.bottom}var V=function(){var t=function(){function t(e,i,n,o,a,s){var u=this;v(this,t),this._viewContainerRef=e,this._template=i,this._differs=n,this._viewRepeater=o,this._viewport=a,this.viewChange=new c.xQ,this._dataSourceChanges=new c.xQ,this.dataStream=this._dataSourceChanges.pipe((0,x.O)(null),function(t){return t.lift(new A)},(0,R.w)(function(t){var e=r(t,2),i=e[0],n=e[1];return u._changeDataSource(i,n)}),(0,I.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new c.xQ,this.dataStream.subscribe(function(t){u._data=t,u._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,E.R)(this._destroyed)).subscribe(function(t){u._renderedRange=t,s.run(function(){return u.viewChange.next(u._renderedRange)}),u._onRenderedDataChange()}),this._viewport.attach(this)}return y(t,[{key:"cdkVirtualForOf",get:function(){return this._cdkVirtualForOf},set:function(t){this._cdkVirtualForOf=t,(0,M.Z9)(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new M.P3((0,w.b)(t)?t:Array.from(t||[])))}},{key:"cdkVirtualForTrackBy",get:function(){return this._cdkVirtualForTrackBy},set:function(t){var e=this;this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?function(i,n){return t(i+(e._renderedRange?e._renderedRange.start:0),n)}:void 0}},{key:"cdkVirtualForTemplate",set:function(t){t&&(this._needsUpdate=!0,this._template=t)}},{key:"cdkVirtualForTemplateCacheSize",get:function(){return this._viewRepeater.viewCacheSize},set:function(t){this._viewRepeater.viewCacheSize=(0,a.su)(t)}},{key:"measureRangeSize",value:function(t,e){if(t.start>=t.end)return 0;for(var i,n,r=t.start-this._renderedRange.start,o=t.end-t.start,a=0;a-1;u--){var c=this._viewContainerRef.get(u+r);if(c&&c.rootNodes.length){n=c.rootNodes[c.rootNodes.length-1];break}}return i&&n?Y(e,"end",n)-Y(e,"start",i):0}},{key:"ngDoCheck",value:function(){if(this._differ&&this._needsUpdate){var t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}},{key:"ngOnDestroy",value:function(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}},{key:"_onRenderedDataChange",value:function(){var t=this;this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(function(e,i){return t.cdkVirtualForTrackBy?t.cdkVirtualForTrackBy(e,i):i})),this._needsUpdate=!0)}},{key:"_changeDataSource",value:function(t,e){return t&&t.disconnect(this),this._needsUpdate=!0,e?e.connect(this):(0,l.of)()}},{key:"_updateContext",value:function(){for(var t=this._data.length,e=this._viewContainerRef.length;e--;){var i=this._viewContainerRef.get(e);i.context.index=this._renderedRange.start+e,i.context.count=t,this._updateComputedContextProperties(i.context),i.detectChanges()}}},{key:"_applyChanges",value:function(t){var e=this;this._viewRepeater.applyChanges(t,this._viewContainerRef,function(t,i,n){return e._getEmbeddedViewArgs(t,n)},function(t){return t.item}),t.forEachIdentityChange(function(t){e._viewContainerRef.get(t.currentIndex).context.$implicit=t.item});for(var i=this._data.length,n=this._viewContainerRef.length;n--;){var r=this._viewContainerRef.get(n);r.context.index=this._renderedRange.start+n,r.context.count=i,this._updateComputedContextProperties(r.context)}}},{key:"_updateComputedContextProperties",value:function(t){t.first=0===t.index,t.last=t.index===t.count-1,t.even=t.index%2==0,t.odd=!t.even}},{key:"_getEmbeddedViewArgs",value:function(t,e){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:e}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.s_b),u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(M.k),u.Y36(G,4),u.Y36(u.R0b))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[u._Bn([{provide:M.k,useClass:M.eX}])]}),t}(),K=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({}),t}(),J=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({imports:[[D.vT,O.ud,K],D.vT,K]}),t}()},10901:function(t,e,i){"use strict";i.d(e,{Lq:function(){return f},IC:function(){return p},Ky:function(){return g}});var n=i(11353),r=i(31572),o=i(19861),a=i(70653),s=i(55959),u=i(87254),c=i(30810),l=i(25416),h=i(61511),d=(0,n.i$)({passive:!0}),f=function(){var t=function(){function t(e,i){v(this,t),this._platform=e,this._ngZone=i,this._monitoredElements=new Map}return y(t,[{key:"monitor",value:function(t){var e=this;if(!this._platform.isBrowser)return a.E;var i=(0,o.fI)(t),n=this._monitoredElements.get(i);if(n)return n.subject;var r=new s.xQ,u="cdk-text-field-autofilled",c=function(t){"cdk-text-field-autofill-start"!==t.animationName||i.classList.contains(u)?"cdk-text-field-autofill-end"===t.animationName&&i.classList.contains(u)&&(i.classList.remove(u),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!1})})):(i.classList.add(u),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){i.addEventListener("animationstart",c,d),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:function(){i.removeEventListener("animationstart",c,d)}}),r}},{key:"stopMonitoring",value:function(t){var e=(0,o.fI)(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}},{key:"ngOnDestroy",value:function(){var t=this;this._monitoredElements.forEach(function(e,i){return t.stopMonitoring(i)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.t4),r.LFG(r.R0b))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.t4),r.LFG(r.R0b))},token:t,providedIn:"root"}),t}(),p=function(){var t=function(){function t(e,i,n,r){v(this,t),this._elementRef=e,this._platform=i,this._ngZone=n,this._destroyed=new s.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._document=r,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=i.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}return y(t,[{key:"minRows",get:function(){return this._minRows},set:function(t){this._minRows=(0,o.su)(t),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(t){this._maxRows=(0,o.su)(t),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(t){t=(0,o.Ig)(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}},{key:"placeholder",get:function(){return this._textareaElement.placeholder},set:function(t){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=t,this._cacheTextareaPlaceholderHeight()}},{key:"_setMinHeight",value:function(){var t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}},{key:"_setMaxHeight",value:function(){var t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(function(){var e=t._getWindow();(0,u.R)(e,"resize").pipe((0,c.e)(16),(0,l.R)(t._destroyed)).subscribe(function(){return t.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}}},{key:"_measureScrollHeight",value:function(){this._textareaElement.classList.add(this._measuringClass);var t=this._textareaElement.scrollHeight-4;return this._textareaElement.classList.remove(this._measuringClass),t}},{key:"_cacheTextareaPlaceholderHeight",value:function(){if(this._isViewInited&&null==this._cachedPlaceholderHeight)if(this.placeholder){var t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}else this._cachedPlaceholderHeight=0}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),this._cachedLineHeight)){var i=this._elementRef.nativeElement,n=i.value;if(e||this._minRows!==this._previousMinRows||n!==this._previousValue){var r=this._measureScrollHeight(),o=Math.max(r,this._cachedPlaceholderHeight||0);i.style.height="".concat(o,"px"),this._ngZone.runOutsideAngular(function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(function(){return t._scrollToCaretPosition(i)}):setTimeout(function(){return t._scrollToCaretPosition(i)})}),this._previousValue=n,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(t){var e=t.selectionStart,i=t.selectionEnd,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(n.t4),r.Y36(r.R0b),r.Y36(h.K0,8))},t.\u0275dir=r.lG2({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&r.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),t}(),g=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.ud]]}),t}()},71709:function(t,e,i){"use strict";i.d(e,{HI:function(){return C},Xx:function(){return O},_0:function(){return R},nZ:function(){return L},Hs:function(){return I},rO:function(){return x},cu:function(){return S},XJ:function(){return D},Ud:function(){return M},C2:function(){return k},VY:function(){return T}});var r=i(4230),a=i(4710),u=i(55959),c=i(78512),l=i(40878),p=i(90611),g=i(43835),m=i(25416),b=i(31572),w=i(19861),_=i(22526),A=function(){function t(){v(this,t),this.expansionModel=new r.Ov(!0)}return y(t,[{key:"toggle",value:function(t){this.expansionModel.toggle(this._trackByValue(t))}},{key:"expand",value:function(t){this.expansionModel.select(this._trackByValue(t))}},{key:"collapse",value:function(t){this.expansionModel.deselect(this._trackByValue(t))}},{key:"isExpanded",value:function(t){return this.expansionModel.isSelected(this._trackByValue(t))}},{key:"toggleDescendants",value:function(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}},{key:"collapseAll",value:function(){this.expansionModel.clear()}},{key:"expandDescendants",value:function(t){var e,i=this,n=[t];n.push.apply(n,d(this.getDescendants(t))),(e=this.expansionModel).select.apply(e,d(n.map(function(t){return i._trackByValue(t)})))}},{key:"collapseDescendants",value:function(t){var e,i=this,n=[t];n.push.apply(n,d(this.getDescendants(t))),(e=this.expansionModel).deselect.apply(e,d(n.map(function(t){return i._trackByValue(t)})))}},{key:"_trackByValue",value:function(t){return this.trackBy?this.trackBy(t):t}}]),t}(),k=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this)).getLevel=t,o.isExpandable=n,o.options=r,o.options&&(o.trackBy=o.options.trackBy),o}return y(i,[{key:"getDescendants",value:function(t){for(var e=[],i=this.dataNodes.indexOf(t)+1;i1&&void 0!==arguments[1]?arguments[1]:this._dataDiffer,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._nodeOutlet.viewContainer,r=arguments.length>3?arguments[3]:void 0,o=i.diff(t);o&&(o.forEachOperation(function(i,o,a){if(null==i.previousIndex)e.insertNode(t[a],a,n,r);else if(null==a)n.remove(o),e._levels.delete(i.item);else{var s=n.get(o);n.move(s,a)}}),this._changeDetectorRef.detectChanges())}},{key:"_getNodeDef",value:function(t,e){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(function(i){return i.when&&i.when(e,t)})||this._defaultNodeDef}},{key:"insertNode",value:function(t,e,i,n){var r=this._getNodeDef(t,e),o=new E(t);o.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==n&&this._levels.has(n)?this._levels.get(n)+1:0,this._levels.set(t,o.level),(i||this._nodeOutlet.viewContainer).createEmbeddedView(r.template,o,e),I.mostRecentTreeNode&&(I.mostRecentTreeNode.data=t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(b.Y36(b.ZZ4),b.Y36(b.sBO))},t.\u0275cmp=b.Xpm({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,i){var n;(1&t&&b.Suo(i,x,5),2&t)&&(b.iGM(n=b.CRH())&&(e._nodeDefs=n))},viewQuery:function(t,e){var i;(1&t&&b.Gf(S,7),2&t)&&(b.iGM(i=b.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&b.GkF(0,0)},directives:[S],encapsulation:2}),t}(),I=function(){var t=function(){function t(e,i){v(this,t),this._elementRef=e,this._tree=i,this._destroyed=new u.xQ,this._dataChanges=new u.xQ,t.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}return y(t,[{key:"role",get:function(){return"treeitem"},set:function(t){this._elementRef.nativeElement.setAttribute("role",t)}},{key:"data",get:function(){return this._data},set:function(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}},{key:"isExpanded",get:function(){return this._tree.treeControl.isExpanded(this._data)}},{key:"_setExpanded",value:function(t){this._isAriaExpanded=t,this._elementRef.nativeElement.setAttribute("aria-expanded","".concat(t))}},{key:"level",get:function(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}},{key:"ngOnInit",value:function(){this._parentNodeAriaLevel=function(t){for(var e,i=t.parentElement;i&&(e=void 0,!(null==(e=i.classList)?void 0:e.contains("cdk-nested-tree-node"))&&!(null==e?void 0:e.contains("cdk-tree")));)i=i.parentElement;return i?i.classList.contains("cdk-nested-tree-node")?(0,w.su)(i.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level","".concat(this.level+1))}},{key:"ngDoCheck",value:function(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}},{key:"ngOnDestroy",value:function(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"focus",value:function(){this._elementRef.nativeElement.focus()}},{key:"_setRoleFromData",value:function(){this.role="treeitem"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(b.Y36(b.SBq),b.Y36(R))},t.\u0275dir=b.lG2({type:t,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t}();var O=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t,n))._elementRef=t,o._tree=n,o._differs=r,o._elementRef.nativeElement.classList.add("cdk-nested-tree-node"),o}return y(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);var e=this._tree.treeControl.getChildren(this.data);Array.isArray(e)?this.updateChildrenNodes(e):(0,a.b)(e)&&e.pipe((0,m.R)(this._destroyed)).subscribe(function(e){return t.updateChildrenNodes(e)}),this.nodeOutlet.changes.pipe((0,m.R)(this._destroyed)).subscribe(function(){return t.updateChildrenNodes()})}},{key:"ngOnInit",value:function(){n(h(i.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){n(h(i.prototype),"ngDoCheck",this).call(this)}},{key:"ngOnDestroy",value:function(){this._clear(),n(h(i.prototype),"ngOnDestroy",this).call(this)}},{key:"updateChildrenNodes",value:function(t){var e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])}},{key:"_clear",value:function(){var t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))}},{key:"_getNodeOutlet",value:function(){var t=this,e=this.nodeOutlet;return e&&e.find(function(e){return!e._node||e._node===t})}}]),i}(I);return t.\u0275fac=function(e){return new(e||t)(b.Y36(b.SBq),b.Y36(R),b.Y36(b.ZZ4))},t.\u0275dir=b.lG2({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,i){var n;(1&t&&b.Suo(i,S,5),2&t)&&(b.iGM(n=b.CRH())&&(e.nodeOutlet=n))},inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[b._Bn([{provide:I,useExisting:t},{provide:C,useExisting:t}]),b.qOj]}),t}(),P=/([A-Za-z%]+)$/,D=function(){var t=function(){function t(e,i,n,r){var o=this;v(this,t),this._treeNode=e,this._tree=i,this._element=n,this._dir=r,this._destroyed=new u.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),r&&r.change.pipe((0,m.R)(this._destroyed)).subscribe(function(){return o._setPadding(!0)}),e._dataChanges.subscribe(function(){return o._setPadding()})}return y(t,[{key:"level",get:function(){return this._level},set:function(t){this._setLevelInput(t)}},{key:"indent",get:function(){return this._indent},set:function(t){this._setIndentInput(t)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_paddingIndent",value:function(){var t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?"".concat(e*this._indent).concat(this.indentUnits):null}},{key:"_setPadding",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._paddingIndent();if(e!==this._currentPadding||t){var i=this._element.nativeElement,n=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",r="paddingLeft"===n?"paddingRight":"paddingLeft";i.style[n]=e||"",i.style[r]="",this._currentPadding=e}}},{key:"_setLevelInput",value:function(t){this._level=(0,w.su)(t,null),this._setPadding()}},{key:"_setIndentInput",value:function(t){var e=t,i="px";if("string"==typeof t){var n=t.split(P);e=n[0],i=n[1]||i}this.indentUnits=i,this._indent=(0,w.su)(e),this._setPadding()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(b.Y36(I),b.Y36(R),b.Y36(b.SBq),b.Y36(_.Is,8))},t.\u0275dir=b.lG2({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t}(),M=function(){var t=function(){function t(e,i){v(this,t),this._tree=e,this._treeNode=i,this._recursive=!1}return y(t,[{key:"recursive",get:function(){return this._recursive},set:function(t){this._recursive=(0,w.Ig)(t)}},{key:"_toggle",value:function(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(b.Y36(R),b.Y36(I))},t.\u0275dir=b.lG2({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&b.NdJ("click",function(t){return e._toggle(t)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t}(),L=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b.oAB({type:t}),t.\u0275inj=b.cJS({}),t}()},61511:function(t,e,i){"use strict";i.d(e,{mr:function(){return E},Ov:function(){return Pt},ez:function(){return Lt},K0:function(){return d},uU:function(){return Mt},Do:function(){return R},V_:function(){return m},Ye:function(){return I},S$:function(){return C},mk:function(){return gt},sg:function(){return mt},O5:function(){return bt},PC:function(){return St},RF:function(){return kt},n9:function(){return Tt},ED:function(){return Ct},tP:function(){return Et},b0:function(){return x},lw:function(){return p},gd:function(){return Dt},EM:function(){return Zt},JF:function(){return Ut},p6:function(){return X},NF:function(){return zt},PM:function(){return Ft},w_:function(){return h},bD:function(){return Nt},q:function(){return c},Mx:function(){return pt},HT:function(){return l}});var n=i(31572),a=null;function c(){return a}function l(t){a||(a=t)}var h=function t(){v(this,t)},d=new n.OlP("DocumentToken"),p=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:g,token:t,providedIn:"platform"}),t}();function g(){return(0,n.LFG)(b)}var m=new n.OlP("Location Initialized"),b=function(){var t=function(t){o(i,t);var e=s(i);function i(t){var n;return v(this,i),(n=e.call(this))._doc=t,n._init(),n}return y(i,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return c().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){var e=c().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),function(){return e.removeEventListener("popstate",t)}}},{key:"onHashChange",value:function(t){var e=c().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),function(){return e.removeEventListener("hashchange",t)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(t,e,i){w()?this._history.pushState(t,e,i):this.location.hash=i}},{key:"replaceState",value:function(t,e,i){w()?this._history.replaceState(t,e,i):this.location.hash=i}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(t)}},{key:"getState",value:function(){return this._history.state}}]),i}(p);return t.\u0275fac=function(e){return new(e||t)(n.LFG(d))},t.\u0275prov=(0,n.Yz7)({factory:_,token:t,providedIn:"platform"}),t}();function w(){return!!window.history.pushState}function _(){return new b((0,n.LFG)(d))}function A(t,e){if(0==t.length)return e;if(0==e.length)return t;var i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function k(t){var e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function T(t){return t&&"?"!==t[0]?"?"+t:t}var C=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:S,token:t,providedIn:"root"}),t}();function S(t){var e=(0,n.LFG)(d).location;return new x((0,n.LFG)(p),e&&e.origin||"")}var E=new n.OlP("appBaseHref"),x=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n){var r;if(v(this,i),(r=e.call(this))._platformLocation=t,r._removeListenerFns=[],null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,u(r)}return y(i,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return A(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+T(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?"".concat(e).concat(i):e}},{key:"pushState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+T(n));this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+T(n));this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,i)}}]),i}(C);return t.\u0275fac=function(e){return new(e||t)(n.LFG(p),n.LFG(E,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}(),R=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this))._platformLocation=t,r._baseHref="",r._removeListenerFns=[],null!=n&&(r._baseHref=n),r}return y(i,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=A(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+T(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+T(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,i)}}]),i}(C);return t.\u0275fac=function(e){return new(e||t)(n.LFG(p),n.LFG(E,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}(),I=function(){var t=function(){function t(e,i){var r=this;v(this,t),this._subject=new n.vpe,this._urlChangeListeners=[],this._platformStrategy=e;var o=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=k(P(o)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.path(!0),pop:!0,state:t.state,type:t.type})})}return y(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+T(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,P(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+T(e)),i)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+T(e)),i)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformStrategy).historyGo)||void 0===e||e.call(t,i)}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(i){return i(t,e)})}},{key:"subscribe",value:function(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(C),n.LFG(p))},t.normalizeQueryParams=T,t.joinWithSlash=A,t.stripTrailingSlash=k,t.\u0275prov=(0,n.Yz7)({factory:O,token:t,providedIn:"root"}),t}();function O(){return new I((0,n.LFG)(C),(0,n.LFG)(p))}function P(t){return t.replace(/\/index.html$/,"")}var D=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),M=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),L=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),N=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),z=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function F(t,e){return j((0,n.cg1)(t)[n.wAp.DateFormat],e)}function Z(t,e){return j((0,n.cg1)(t)[n.wAp.TimeFormat],e)}function B(t,e){return j((0,n.cg1)(t)[n.wAp.DateTimeFormat],e)}function q(t,e){var i=(0,n.cg1)(t),r=i[n.wAp.NumberSymbols][e];if(void 0===r){if(e===z.CurrencyDecimal)return i[n.wAp.NumberSymbols][z.Decimal];if(e===z.CurrencyGroup)return i[n.wAp.NumberSymbols][z.Group]}return r}var U=n.kL8;function H(t){if(!t[n.wAp.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(t[n.wAp.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function j(t,e){for(var i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function G(t){var e=r(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}var Y=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,V={},K=/((?:[^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]*)/,J=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Q=function(t){return 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}({}),W=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function X(t,e,i,n){var o=function(t){if(ht(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){var e=r(t.split("-").map(function(t){return+t}),3),i=e[0],n=e[1],o=void 0===n?1:n,a=e[2];return $(i,o-1,void 0===a?1:a)}var s,u=parseFloat(t);if(!isNaN(t-u))return new Date(u);if(s=t.match(Y))return function(t){var e=new Date(0),i=0,n=0,r=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var a=Number(t[4]||0)-i,s=Number(t[5]||0)-n,u=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,a,s,u,c),e}(s)}var c=new Date(t);if(!ht(c))throw new Error('Unable to convert "'.concat(t,'" into a date'));return c}(t);e=tt(i,e)||e;for(var a,s=[];e;){if(!(a=K.exec(e))){s.push(e);break}var u=(s=s.concat(a.slice(1))).pop();if(!u)break;e=u}var c=o.getTimezoneOffset();n&&(c=lt(n,c),o=function(t,e,i){var n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(lt(e,n)-n))}(o,n));var l="";return s.forEach(function(t){var e=function(t){if(ct[t])return ct[t];var e;switch(t){case"G":case"GG":case"GGG":e=rt(W.Eras,L.Abbreviated);break;case"GGGG":e=rt(W.Eras,L.Wide);break;case"GGGGG":e=rt(W.Eras,L.Narrow);break;case"y":e=nt(Q.FullYear,1,0,!1,!0);break;case"yy":e=nt(Q.FullYear,2,0,!0,!0);break;case"yyy":e=nt(Q.FullYear,3,0,!1,!0);break;case"yyyy":e=nt(Q.FullYear,4,0,!1,!0);break;case"Y":e=ut(1);break;case"YY":e=ut(2,!0);break;case"YYY":e=ut(3);break;case"YYYY":e=ut(4);break;case"M":case"L":e=nt(Q.Month,1,1);break;case"MM":case"LL":e=nt(Q.Month,2,1);break;case"MMM":e=rt(W.Months,L.Abbreviated);break;case"MMMM":e=rt(W.Months,L.Wide);break;case"MMMMM":e=rt(W.Months,L.Narrow);break;case"LLL":e=rt(W.Months,L.Abbreviated,M.Standalone);break;case"LLLL":e=rt(W.Months,L.Wide,M.Standalone);break;case"LLLLL":e=rt(W.Months,L.Narrow,M.Standalone);break;case"w":e=st(1);break;case"ww":e=st(2);break;case"W":e=st(1,!0);break;case"d":e=nt(Q.Date,1);break;case"dd":e=nt(Q.Date,2);break;case"c":case"cc":e=nt(Q.Day,1);break;case"ccc":e=rt(W.Days,L.Abbreviated,M.Standalone);break;case"cccc":e=rt(W.Days,L.Wide,M.Standalone);break;case"ccccc":e=rt(W.Days,L.Narrow,M.Standalone);break;case"cccccc":e=rt(W.Days,L.Short,M.Standalone);break;case"E":case"EE":case"EEE":e=rt(W.Days,L.Abbreviated);break;case"EEEE":e=rt(W.Days,L.Wide);break;case"EEEEE":e=rt(W.Days,L.Narrow);break;case"EEEEEE":e=rt(W.Days,L.Short);break;case"a":case"aa":case"aaa":e=rt(W.DayPeriods,L.Abbreviated);break;case"aaaa":e=rt(W.DayPeriods,L.Wide);break;case"aaaaa":e=rt(W.DayPeriods,L.Narrow);break;case"b":case"bb":case"bbb":e=rt(W.DayPeriods,L.Abbreviated,M.Standalone,!0);break;case"bbbb":e=rt(W.DayPeriods,L.Wide,M.Standalone,!0);break;case"bbbbb":e=rt(W.DayPeriods,L.Narrow,M.Standalone,!0);break;case"B":case"BB":case"BBB":e=rt(W.DayPeriods,L.Abbreviated,M.Format,!0);break;case"BBBB":e=rt(W.DayPeriods,L.Wide,M.Format,!0);break;case"BBBBB":e=rt(W.DayPeriods,L.Narrow,M.Format,!0);break;case"h":e=nt(Q.Hours,1,-12);break;case"hh":e=nt(Q.Hours,2,-12);break;case"H":e=nt(Q.Hours,1);break;case"HH":e=nt(Q.Hours,2);break;case"m":e=nt(Q.Minutes,1);break;case"mm":e=nt(Q.Minutes,2);break;case"s":e=nt(Q.Seconds,1);break;case"ss":e=nt(Q.Seconds,2);break;case"S":e=nt(Q.FractionalSeconds,1);break;case"SS":e=nt(Q.FractionalSeconds,2);break;case"SSS":e=nt(Q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=ot(J.Short);break;case"ZZZZZ":e=ot(J.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=ot(J.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=ot(J.Long);break;default:return null}return ct[t]=e,e}(t);l+=e?e(o,i,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function $(t,e,i){var n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function tt(t,e){var i=function(t){return(0,n.cg1)(t)[n.wAp.LocaleId]}(t);if(V[i]=V[i]||{},V[i][e])return V[i][e];var r="";switch(e){case"shortDate":r=F(t,N.Short);break;case"mediumDate":r=F(t,N.Medium);break;case"longDate":r=F(t,N.Long);break;case"fullDate":r=F(t,N.Full);break;case"shortTime":r=Z(t,N.Short);break;case"mediumTime":r=Z(t,N.Medium);break;case"longTime":r=Z(t,N.Long);break;case"fullTime":r=Z(t,N.Full);break;case"short":var o=tt(t,"shortTime"),a=tt(t,"shortDate");r=et(B(t,N.Short),[o,a]);break;case"medium":var s=tt(t,"mediumTime"),u=tt(t,"mediumDate");r=et(B(t,N.Medium),[s,u]);break;case"long":var c=tt(t,"longTime"),l=tt(t,"longDate");r=et(B(t,N.Long),[c,l]);break;case"full":var h=tt(t,"fullTime"),d=tt(t,"fullDate");r=et(B(t,N.Full),[h,d])}return r&&(V[i][e]=r),r}function et(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function it(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=i));for(var a=String(t);a.length2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s,u=function(t,e){switch(t){case Q.FullYear:return e.getFullYear();case Q.Month:return e.getMonth();case Q.Date:return e.getDate();case Q.Hours:return e.getHours();case Q.Minutes:return e.getMinutes();case Q.Seconds:return e.getSeconds();case Q.FractionalSeconds:return e.getMilliseconds();case Q.Day:return e.getDay();default:throw new Error('Unknown DateType value "'.concat(t,'".'))}}(t,o);if((i>0||u>-i)&&(u+=i),t===Q.Hours)0===u&&-12===i&&(u=12);else if(t===Q.FractionalSeconds)return s=e,it(u,3).substr(0,s);var c=q(a,z.MinusSign);return it(u,e,c,n,r)}}function rt(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M.Format,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(a,s){return function(t,e,i,o,a,s){switch(i){case W.Months:return function(t,e,i){var r=(0,n.cg1)(t),o=j([r[n.wAp.MonthsFormat],r[n.wAp.MonthsStandalone]],e);return j(o,i)}(e,a,o)[t.getMonth()];case W.Days:return function(t,e,i){var r=(0,n.cg1)(t),o=j([r[n.wAp.DaysFormat],r[n.wAp.DaysStandalone]],e);return j(o,i)}(e,a,o)[t.getDay()];case W.DayPeriods:var u=t.getHours(),c=t.getMinutes();if(s){var l=function(t){var e=(0,n.cg1)(t);return H(e),(e[n.wAp.ExtraData][2]||[]).map(function(t){return"string"==typeof t?G(t):[G(t[0]),G(t[1])]})}(e),h=function(t,e,i){var r=(0,n.cg1)(t);H(r);var o=j([r[n.wAp.ExtraData][0],r[n.wAp.ExtraData][1]],e)||[];return j(o,i)||[]}(e,a,o),d=l.findIndex(function(t){if(Array.isArray(t)){var e=r(t,2),i=e[0],n=e[1],o=u>=i.hours&&c>=i.minutes,a=u0?Math.floor(r/60):Math.ceil(r/60);switch(t){case J.Short:return(r>=0?"+":"")+it(a,2,o)+it(Math.abs(r%60),2,o);case J.ShortGMT:return"GMT"+(r>=0?"+":"")+it(a,1,o);case J.Long:return"GMT"+(r>=0?"+":"")+it(a,2,o)+":"+it(Math.abs(r%60),2,o);case J.Extended:return 0===n?"Z":(r>=0?"+":"")+it(a,2,o)+":"+it(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'.concat(t,'"'))}}}function at(t){return $(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function st(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,n){var r,o,a;if(e){var s=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,u=i.getDate();r=1+Math.floor((u+s)/7)}else{var c=at(i),l=(o=c.getFullYear(),a=$(o,0,1).getDay(),$(o,0,1+(a<=4?4:11)-a)),h=c.getTime()-l.getTime();r=1+Math.round(h/6048e5)}return it(r,t,q(n,z.MinusSign))}}function ut(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,n){return it(at(i).getFullYear(),t,q(n,z.MinusSign),e)}}var ct={};function lt(t,e){t=t.replace(/:/g,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function ht(t){return t instanceof Date&&!isNaN(t.valueOf())}var dt=function t(){v(this,t)},ft=function(){var t=function(t){o(i,t);var e=s(i);function i(t){var n;return v(this,i),(n=e.call(this)).locale=t,n}return y(i,[{key:"getPluralCategory",value:function(t,e){switch(U(e||this.locale)(t)){case D.Zero:return"zero";case D.One:return"one";case D.Two:return"two";case D.Few:return"few";case D.Many:return"many";default:return"other"}}}]),i}(dt);return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.soG))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}();function pt(t,e){e=encodeURIComponent(e);var i,n=f(t.split(";"));try{for(n.s();!(i=n.n()).done;){var o=i.value,a=o.indexOf("="),s=r(-1==a?[o,""]:[o.slice(0,a),o.slice(a+1)],2),u=s[0],c=s[1];if(u.trim()===e)return decodeURIComponent(c)}}catch(l){n.e(l)}finally{n.f()}return null}var gt=function(){var t=function(){function t(e,i,n,r){v(this,t),this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return y(t,[{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,n.AaK)(t.item)));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(i){return e._toggleClass(i,!!t[i])}))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))}},{key:"_toggleClass",value:function(t,e){var i=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?i._renderer.addClass(i._ngEl.nativeElement,t):i._renderer.removeClass(i._ngEl.nativeElement,t)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),vt=function(){function t(e,i,n,r){v(this,t),this.$implicit=e,this.ngForOf=i,this.index=n,this.count=r}return y(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),mt=function(){var t=function(){function t(e,i,n){v(this,t),this._viewContainer=e,this._template=i,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return y(t,[{key:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"ngForTemplate",set:function(t){t&&(this._template=t)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}},{key:"_applyChanges",value:function(t){var e=this,i=[];t.forEachOperation(function(t,n,r){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new vt(null,e._ngForOf,-1,-1),null===r?void 0:r),a=new yt(t,o);i.push(a)}else if(null==r)e._viewContainer.remove(null===n?void 0:n);else if(null!==n){var s=e._viewContainer.get(n);e._viewContainer.move(s,r);var u=new yt(t,s);i.push(u)}});for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"mediumDate",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return X(e,i,r||this.locale,n)}catch(o){throw xt(t,o.message)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.soG,16))},t.\u0275pipe=n.Yjl({name:"date",type:t,pure:!0}),t}(),Lt=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:dt,useClass:ft}]}),t}(),Nt="browser";function zt(t){return t===Nt}function Ft(t){return"server"===t}var Zt=function(){var t=function t(){v(this,t)};return t.\u0275prov=(0,n.Yz7)({token:t,providedIn:"root",factory:function(){return new Bt((0,n.LFG)(d),window)}}),t}(),Bt=function(){function t(e,i){v(this,t),this.document=e,this.window=i,this.offset=function(){return[0,0]}}return y(t,[{key:"setOffset",value:function(t){this.offset=Array.isArray(t)?function(){return t}:t}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value:function(t){if(this.supportsScrolling()){var e=function(t,e){var i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow))for(var n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;r;){var o=r.shadowRoot;if(o){var a=o.getElementById(e)||o.querySelector('[name="'.concat(e,'"]'));if(a)return a}r=n.nextNode()}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],n-r[1])}},{key:"attemptFocus",value:function(t){return t.focus(),this.document.activeElement===t}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var t=qt(this.window.history)||qt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(e){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}]),t}();function qt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}var Ut=function t(){v(this,t)}},29063:function(t,e,i){"use strict";i.d(e,{TP:function(){return N},eN:function(){return M},JF:function(){return V},WM:function(){return m},LE:function(){return A},Zn:function(){return O}});var n=i(61511),a=i(31572),u=i(40878),c=i(48318),l=i(436),h=i(43835),f=i(79996),p=function t(){v(this,t)},g=function t(){v(this,t)},m=function(){function t(e){var i=this;v(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){i.headers=new Map,e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var n=t.slice(0,e),r=n.toLowerCase(),o=t.slice(e+1).trim();i.maybeSetNormalizedName(n,r),i.headers.has(r)?i.headers.get(r).push(o):i.headers.set(r,[o])}})}:function(){i.headers=new Map,Object.keys(e).forEach(function(t){var n=e[t],r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(i.headers.set(r,n),i.maybeSetNormalizedName(t,r))})}:this.headers=new Map}return y(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(i){e.headers.set(i,t.headers.get(i)),e.normalizedNames.set(i,t.normalizedNames.get(i))})}},{key:"clone",value:function(e){var i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);var n=("a"===t.op?this.headers.get(e):void 0)||[];n.push.apply(n,d(i)),this.headers.set(e,n);break;case"d":var r=t.value;if(r){var o=this.headers.get(e);if(!o)return;0===(o=o.filter(function(t){return-1===r.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(i){return t(e.normalizedNames.get(i),e.headers.get(i))})}}]),t}(),b=function(){function t(){v(this,t)}return y(t,[{key:"encodeKey",value:function(t){return w(t)}},{key:"encodeValue",value:function(t){return w(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function w(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function _(t){return"".concat(t)}var A=function(){function t(){var e,i,n,o=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(v(this,t),this.updates=null,this.cloneFrom=null,this.encoder=a.encoder||new b,a.fromString){if(a.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=a.fromString,i=this.encoder,n=new Map,e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(t){var e=t.indexOf("="),o=r(-1==e?[i.decodeKey(t),""]:[i.decodeKey(t.slice(0,e)),i.decodeValue(t.slice(e+1))],2),a=o[0],s=o[1],u=n.get(a)||[];u.push(s),n.set(a,u)}),n)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach(function(t){var e=a.fromObject[t];o.map.set(t,Array.isArray(e)?e:[e])})):this.map=null}return y(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(i){var n=t[i];Array.isArray(n)?n.forEach(function(t){e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var i=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return i+"="+t.encoder.encodeValue(e)}).join("&")}).filter(function(t){return""!==t}).join("&")}},{key:"clone",value:function(e){var i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var i=("a"===e.op?t.map.get(e.param):void 0)||[];i.push(_(e.value)),t.map.set(e.param,i);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var n=t.map.get(e.param)||[],r=n.indexOf(_(e.value));-1!==r&&n.splice(r,1),n.length>0?t.map.set(e.param,n):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),t}(),k=function(){function t(){v(this,t),this.map=new Map}return y(t,[{key:"set",value:function(t,e){return this.map.set(t,e),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}]),t}();function T(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function C(t){return"undefined"!=typeof Blob&&t instanceof Blob}function S(t){return"undefined"!=typeof FormData&&t instanceof FormData}var E=function(){function t(e,i,n,r){var o;if(v(this,t),this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new m),this.context||(this.context=new k),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=i;else{var s=i.indexOf("?");this.urlWithParams=i+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=i.method||this.method,r=i.url||this.url,o=i.responseType||this.responseType,a=void 0!==i.body?i.body:this.body,s=void 0!==i.withCredentials?i.withCredentials:this.withCredentials,u=void 0!==i.reportProgress?i.reportProgress:this.reportProgress,c=i.headers||this.headers,l=i.params||this.params,h=null!==(e=i.context)&&void 0!==e?e:this.context;return void 0!==i.setHeaders&&(c=Object.keys(i.setHeaders).reduce(function(t,e){return t.set(e,i.setHeaders[e])},c)),i.setParams&&(l=Object.keys(i.setParams).reduce(function(t,e){return t.set(e,i.setParams[e])},l)),new t(n,r,a,{params:l,headers:c,context:h,reportProgress:u,responseType:o,withCredentials:s})}}]),t}(),x=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),R=function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";v(this,t),this.headers=e.headers||new m,this.status=void 0!==e.status?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},I=function(t){o(i,t);var e=s(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(this,i),(t=e.call(this,n)).type=x.ResponseHeader,t}return y(i,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),i}(R),O=function(t){o(i,t);var e=s(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(this,i),(t=e.call(this,n)).type=x.Response,t.body=void 0!==n.body?n.body:null,t}return y(i,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),i}(R),P=function(t){o(i,t);var e=s(i);function i(t){var n;return v(this,i),(n=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),n.error=t.error||null,n}return i}(R);function D(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var M=function(){var t=function(){function t(e){v(this,t),this.handler=e}return y(t,[{key:"request",value:function(t,e){var i,n,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t instanceof E?i=t:(n=a.headers instanceof m?a.headers:new m(a.headers),a.params&&(r=a.params instanceof A?a.params:new A({fromObject:a.params})),i=new E(t,e,void 0!==a.body?a.body:null,{headers:n,context:a.context,params:r,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials}));var s=(0,u.of)(i).pipe((0,l.b)(function(t){return o.handler.handle(t)}));if(t instanceof E||"events"===a.observe)return s;var c=s.pipe((0,h.h)(function(t){return t instanceof O}));switch(a.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return c.pipe((0,f.U)(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return c.pipe((0,f.U)(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return c.pipe((0,f.U)(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return c.pipe((0,f.U)(function(t){return t.body}))}case"response":return c;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new A).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,D(i,e))}},{key:"post",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,D(i,e))}},{key:"put",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,D(i,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.LFG(p))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t}(),L=function(){function t(e,i){v(this,t),this.next=e,this.interceptor=i}return y(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),N=new a.OlP("HTTP_INTERCEPTORS"),z=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t}(),F=/^\)\]\}',?\n/,Z=function(){var t=function(){function t(e){v(this,t),this.xhrFactory=e}return y(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new c.y(function(i){var n=e.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach(function(t,e){return n.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&n.setRequestHeader("Content-Type",r)}if(t.responseType){var o=t.responseType.toLowerCase();n.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new m(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new I({headers:r,status:e,statusText:i,url:o})},c=function(){var e=u(),r=e.headers,o=e.status,a=e.statusText,s=e.url,c=null;204!==o&&(c=void 0===n.response?n.responseText:n.response),0===o&&(o=c?200:0);var l=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof c){var h=c;c=c.replace(F,"");try{c=""!==c?JSON.parse(c):null}catch(d){c=h,l&&(l=!1,c={error:d,text:c})}}l?(i.next(new O({body:c,headers:r,status:o,statusText:a,url:s||void 0})),i.complete()):i.error(new P({error:c,headers:r,status:o,statusText:a,url:s||void 0}))},l=function(t){var e=u().url,r=new P({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:e||void 0});i.error(r)},h=!1,d=function(e){h||(i.next(u()),h=!0);var r={type:x.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),i.next(r)},f=function(t){var e={type:x.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),i.next(e)};return n.addEventListener("load",c),n.addEventListener("error",l),n.addEventListener("timeout",l),n.addEventListener("abort",l),t.reportProgress&&(n.addEventListener("progress",d),null!==a&&n.upload&&n.upload.addEventListener("progress",f)),n.send(a),i.next({type:x.Sent}),function(){n.removeEventListener("error",l),n.removeEventListener("abort",l),n.removeEventListener("load",c),n.removeEventListener("timeout",l),t.reportProgress&&(n.removeEventListener("progress",d),null!==a&&n.upload&&n.upload.removeEventListener("progress",f)),n.readyState!==n.DONE&&n.abort()}})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.LFG(n.JF))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t}(),B=new a.OlP("XSRF_COOKIE_NAME"),q=new a.OlP("XSRF_HEADER_NAME"),U=function t(){v(this,t)},H=function(){var t=function(){function t(e,i,n){v(this,t),this.doc=e,this.platform=i,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return y(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,n.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.LFG(n.K0),a.LFG(a.Lbi),a.LFG(B))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t}(),j=function(){var t=function(){function t(e,i){v(this,t),this.tokenService=e,this.headerName=i}return y(t,[{key:"intercept",value:function(t,e){var i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);var n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.LFG(U),a.LFG(q))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t}(),G=function(){var t=function(){function t(e,i){v(this,t),this.backend=e,this.injector=i,this.chain=null}return y(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(N,[]);this.chain=e.reduceRight(function(t,e){return new L(t,e)},this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.LFG(g),a.LFG(a.zs3))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t}(),Y=function(){var t=function(){function t(){v(this,t)}return y(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:j,useClass:z}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:B,useValue:e.cookieName}:[],e.headerName?{provide:q,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({providers:[j,{provide:N,useExisting:j,multi:!0},{provide:U,useClass:H},{provide:B,useValue:"XSRF-TOKEN"},{provide:q,useValue:"X-XSRF-TOKEN"}]}),t}(),V=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({providers:[M,{provide:p,useClass:G},Z,{provide:g,useExisting:Z}],imports:[[Y.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}()},31572:function(t,a,u){"use strict";u.d(a,{deG:function(){return pi},tb:function(){return gc},AFp:function(){return lc},ip1:function(){return uc},CZH:function(){return cc},hGG:function(){return sl},z2F:function(){return Wc},sBO:function(){return iu},Sil:function(){return Sc},_Vd:function(){return Ss},EJc:function(){return yc},SBq:function(){return Is},qLn:function(){return Mn},vpe:function(){return Uu},gxx:function(){return Co},tBr:function(){return Ni},XFs:function(){return U},OlP:function(){return fi},zs3:function(){return Zo},ZZ4:function(){return Js},aQg:function(){return Ws},soG:function(){return mc},YKP:function(){return hu},v3s:function(){return $c},h0i:function(){return lu},PXZ:function(){return Yc},R0b:function(){return Rc},FiY:function(){return zi},Lbi:function(){return pc},g9A:function(){return fc},n_E:function(){return ju},Qsj:function(){return Ds},FYo:function(){return Ps},JOm:function(){return Bn},Tiy:function(){return Ls},q3G:function(){return Cn},tp0:function(){return Fi},EAV:function(){return il},Rgc:function(){return su},dDg:function(){return Nc},DyG:function(){return gi},GfV:function(){return Ns},s_b:function(){return fu},ifc:function(){return V},eFA:function(){return Vc},G48:function(){return jc},Gpc:function(){return C},f3M:function(){return Oi},X6Q:function(){return Hc},_c5:function(){return ol},VLi:function(){return Fc},c2e:function(){return vc},zSh:function(){return Eo},wAp:function(){return ps},vHH:function(){return x},EiD:function(){return kn},mCW:function(){return an},qzn:function(){return Ki},JVY:function(){return Qi},pB0:function(){return tn},eBb:function(){return Xi},L6k:function(){return Wi},LAX:function(){return $i},cg1:function(){return hs},Tjo:function(){return rl},kL8:function(){return ds},yhl:function(){return Ji},dqk:function(){return X},sIi:function(){return Jo},CqO:function(){return ba},QGY:function(){return ma},F4k:function(){return ya},RDi:function(){return Lt},AaK:function(){return A},z3N:function(){return Vi},qOj:function(){return qo},TTD:function(){return It},_Bn:function(){return ks},xp6:function(){return Sr},uIk:function(){return ia},Tol:function(){return Ba},Gre:function(){return os},ekj:function(){return Za},Suo:function(){return ic},Xpm:function(){return ct},lG2:function(){return mt},Yz7:function(){return P},cJS:function(){return D},oAB:function(){return pt},Yjl:function(){return yt},Y36:function(){return sa},_UZ:function(){return da},GkF:function(){return ga},BQk:function(){return pa},ynx:function(){return fa},qZA:function(){return ha},TgZ:function(){return la},EpF:function(){return va},n5z:function(){return ci},Ikx:function(){return as},LFG:function(){return Ii},$8M:function(){return hi},NdJ:function(){return wa},CRH:function(){return nc},kcU:function(){return xe},O4$:function(){return Ee},oxw:function(){return Ca},ALo:function(){return Lu},lcZ:function(){return Nu},xi3:function(){return zu},Dn7:function(){return Fu},Hsn:function(){return xa},F$t:function(){return Ea},Q6J:function(){return ua},s9C:function(){return Ra},MGl:function(){return Ia},hYB:function(){return Oa},DdM:function(){return Eu},VKq:function(){return xu},WLB:function(){return Ru},kEZ:function(){return Iu},iGM:function(){return tc},MAs:function(){return aa},pYS:function(){return Fn},evT:function(){return zn},Jf7:function(){return Nn},CHM:function(){return te},oJD:function(){return Sn},LSH:function(){return En},B6R:function(){return lt},kYT:function(){return gt},Udp:function(){return Fa},WFA:function(){return _a},d8E:function(){return ss},YNc:function(){return oa},W1O:function(){return sc},_uU:function(){return Xa},Oqu:function(){return $a},hij:function(){return ts},AsE:function(){return es},lnq:function(){return is},HOy:function(){return ns},xDo:function(){return rs},Gf:function(){return ec}});var l=u(55959),p=u(87570),g=u(48318),m=u(31906),b=u(1055);function w(t){for(var e in t)if(t[e]===w)return e;throw Error("Could not find renamed property on target object.")}function _(t,e){for(var i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function A(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(A).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var e=t.toString();if(null==e)return""+e;var i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function k(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var T=w({__forward_ref__:w});function C(t){return t.__forward_ref__=C,t.toString=function(){return A(this())},t}function S(t){return E(t)?t():t}function E(t){return"function"==typeof t&&t.hasOwnProperty(T)&&t.__forward_ref__===C}var x=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this,function(t,e){return"".concat(t?"NG0".concat(t,": "):"").concat(e)}(t,n))).code=t,r}return i}(e(Error));function R(t){return"string"==typeof t?t:null==t?"":String(t)}function I(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():R(t)}function O(t,e){var i=e?" in ".concat(e):"";throw new x("201","No provider for ".concat(I(t)," found").concat(i))}function P(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function D(t){return{providers:t.providers||[],imports:t.imports||[]}}function M(t){return L(t,F)||L(t,B)}function L(t,e){return t.hasOwnProperty(e)?t[e]:null}function N(t){return t&&(t.hasOwnProperty(Z)||t.hasOwnProperty(q))?t[Z]:null}var z,F=w({"\u0275prov":w}),Z=w({"\u0275inj":w}),B=w({ngInjectableDef:w}),q=w({ngInjectorDef:w}),U=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function H(t){var e=z;return z=t,e}function j(t,e,i){var n=M(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&U.Optional?null:void 0!==e?e:void O(A(t),"Injector")}function G(t){return{toString:t}.toString()}var Y=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),V=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),K="undefined"!=typeof globalThis&&globalThis,J="undefined"!=typeof window&&window,Q="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,W="undefined"!=typeof global&&global,X=K||W||J||Q,$={},tt=[],et=w({"\u0275cmp":w}),it=w({"\u0275dir":w}),nt=w({"\u0275pipe":w}),rt=w({"\u0275mod":w}),ot=w({"\u0275loc":w}),at=w({"\u0275fac":w}),st=w({__NG_ELEMENT_ID__:w}),ut=0;function ct(t){return G(function(){var e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Y.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||tt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||V.Emulated,id:"c",styles:t.styles||tt,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,r=t.features,o=t.pipes;return i.id+=ut++,i.inputs=vt(t.inputs,e),i.outputs=vt(t.outputs),r&&r.forEach(function(t){return t(i)}),i.directiveDefs=n?function(){return("function"==typeof n?n():n).map(ht)}:null,i.pipeDefs=o?function(){return("function"==typeof o?o():o).map(dt)}:null,i})}function lt(t,e,i){var n=t.\u0275cmp;n.directiveDefs=function(){return e.map(ht)},n.pipeDefs=function(){return i.map(dt)}}function ht(t){return bt(t)||function(t){return t[it]||null}(t)}function dt(t){return function(t){return t[nt]||null}(t)}var ft={};function pt(t){return G(function(){var e={type:t.type,bootstrap:t.bootstrap||tt,declarations:t.declarations||tt,imports:t.imports||tt,exports:t.exports||tt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(ft[t.id]=t.type),e})}function gt(t,e){return G(function(){var i=wt(t,!0);i.declarations=e.declarations||tt,i.imports=e.imports||tt,i.exports=e.exports||tt})}function vt(t,e){if(null==t)return $;var i={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),i[r]=n,e&&(e[r]=o)}return i}var mt=ct;function yt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function bt(t){return t[et]||null}function wt(t,e){var i=t[rt]||null;if(!i&&!0===e)throw new Error("Type ".concat(A(t)," does not have '\u0275mod' property."));return i}function _t(t){return Array.isArray(t)&&"object"==typeof t[1]}function At(t){return Array.isArray(t)&&!0===t[1]}function kt(t){return 0!=(8&t.flags)}function Tt(t){return 2==(2&t.flags)}function Ct(t){return 1==(1&t.flags)}function St(t){return null!==t.template}function Et(t,e){return t.hasOwnProperty(at)?t[at]:null}var xt,Rt=function(){function t(e,i,n){v(this,t),this.previousValue=e,this.currentValue=i,this.firstChange=n}return y(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function It(){return Ot}function Ot(t){return t.type.prototype.ngOnChanges&&(t.setInput=Dt),Pt}function Pt(){var t=Mt(this),e=null==t?void 0:t.current;if(e){var i=t.previous;if(i===$)t.previous=e;else for(var n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function Dt(t,e,i,n){var r=Mt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:$,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[i],u=a[s];o[s]=new Rt(u&&u.currentValue,e,a===$),t[n]=e}function Mt(t){return t.__ngSimpleChanges__||null}function Lt(t){xt=t}function Nt(){return void 0!==xt?xt:"undefined"!=typeof document?document:void 0}function zt(t){return!!t.listen}It.ngInherit=!0;var Ft={createRenderer:function(t,e){return Nt()}};function Zt(t){for(;Array.isArray(t);)t=t[0];return t}function Bt(t,e){return Zt(e[t])}function qt(t,e){return Zt(e[t.index])}function Ut(t,e){return t.data[e]}function Ht(t,e){return t[e]}function jt(t,e){var i=e[t];return _t(i)?i:i[0]}function Gt(t){return 4==(4&t[2])}function Yt(t){return 128==(128&t[2])}function Vt(t,e){return null==e?null:t[e]}function Kt(t){t[18]=0}function Jt(t,e){t[5]+=e;for(var i=t,n=t[3];null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}var Qt={lFrame:we(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Wt(){return Qt.bindingsEnabled}function Xt(){return Qt.lFrame.lView}function $t(){return Qt.lFrame.tView}function te(t){return Qt.lFrame.contextLView=t,t[8]}function ee(){for(var t=ie();null!==t&&64===t.type;)t=t.parent;return t}function ie(){return Qt.lFrame.currentTNode}function ne(t,e){var i=Qt.lFrame;i.currentTNode=t,i.isParent=e}function re(){return Qt.lFrame.isParent}function oe(){Qt.lFrame.isParent=!1}function ae(){return Qt.isInCheckNoChangesMode}function se(t){Qt.isInCheckNoChangesMode=t}function ue(){var t=Qt.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ce(){return Qt.lFrame.bindingIndex}function le(){return Qt.lFrame.bindingIndex++}function he(t){var e=Qt.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function de(t){Qt.lFrame.currentDirectiveIndex=t}function fe(t){var e=Qt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function pe(){return Qt.lFrame.currentQueryIndex}function ge(t){Qt.lFrame.currentQueryIndex=t}function ve(t){var e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function me(t,e,i){if(i&U.SkipSelf){for(var n=e,r=t;!(null!==(n=n.parent)||i&U.Host||(n=ve(r),null===n)||(r=r[15],10&n.type)););if(null===n)return!1;e=n,t=r}var o=Qt.lFrame=be();return o.currentTNode=e,o.lView=t,!0}function ye(t){var e=be(),i=t[1];Qt.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function be(){var t=Qt.lFrame,e=null===t?null:t.child;return null===e?we(t):e}function we(t){var e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function _e(){var t=Qt.lFrame;return Qt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ae=_e;function ke(){var t=_e();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Te(){return Qt.lFrame.selectedIndex}function Ce(t){Qt.lFrame.selectedIndex=t}function Se(){var t=Qt.lFrame;return Ut(t.tView,t.selectedIndex)}function Ee(){Qt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function xe(){Qt.lFrame.currentNamespace=null}function Re(t,e){for(var i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[s]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var Le=function t(e,i,n){v(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n};function Ne(t,e,i){for(var n=zt(t),r=0;re){a=o-1;break}}}for(;o>16,n=e;i>0;)n=n[15],i--;return n}var je=!0;function Ge(t){var e=je;return je=t,e}var Ye=0;function Ve(t,e){var i=Je(t,e);if(-1!==i)return i;var n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Ke(n.data,t),Ke(e,null),Ke(n.blueprint,null));var r=Qe(t,e),o=t.injectorIndex;if(qe(r))for(var a=Ue(r),s=He(r,e),u=s[1].data,c=0;c<8;c++)e[o+c]=s[a+c]|u[a+c];return e[o+8]=r,o}function Ke(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Je(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Qe(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var i=0,n=null,r=e;null!==r;){var o=r[1],a=o.type;if(null===(n=2===a?o.declTNode:1===a?r[6]:null))return-1;if(i++,r=r[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function We(t,e,i){!function(t,e,i){var n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(st)&&(n=i[st]),null==n&&(n=i[st]=Ye++);var r=255&n;e.data[t+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:U.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(st)?t[st]:void 0;return"number"==typeof e?e>=0?255&e:ii:e}(i);if("function"==typeof o){if(!me(e,t,n))return n&U.Host?Xe(r,i,n):$e(e,i,n,r);try{var a=o(n);if(null!=a||n&U.Optional)return a;O(i)}finally{Ae()}}else if("number"==typeof o){var s=null,u=Je(t,e),c=-1,l=n&U.Host?e[16][6]:null;for((-1===u||n&U.SkipSelf)&&(-1!==(c=-1===u?Qe(t,e):e[u+8])&&si(n,!1)?(s=e[1],u=Ue(c),e=He(c,e)):u=-1);-1!==u;){var h=e[1];if(ai(o,u,h.data)){var d=ni(u,e,i,s,n,l);if(d!==ei)return d}-1!==(c=e[u+8])&&si(n,e[1].data[u+8]===l)&&ai(o,u,e)?(s=h,u=Ue(c),e=He(c,e)):u=-1}}}return $e(e,i,n,r)}var ei={};function ii(){return new ui(ee(),Xt())}function ni(t,e,i,n,r,o){var a=e[1],s=a.data[t+8],u=ri(s,a,i,null==n?Tt(s)&&je:n!=a&&0!=(3&s.type),r&U.Host&&o===s);return null!==u?oi(e,a,u,s):ei}function ri(t,e,i,n,r){for(var o=t.providerIndexes,a=e.data,s=1048575&o,u=t.directiveStart,c=o>>20,l=r?s+c:t.directiveEnd,h=n?s:s+c;h=u&&d.type===i)return h}if(r){var f=a[u];if(f&&St(f)&&f.type===i)return u}return null}function oi(t,e,i,n){var r=t[i],o=e.data;if(r instanceof Le){var a=r;a.resolving&&function(t,e){throw new x("200","Circular dependency in DI detected for ".concat(t))}(I(o[i]));var s=Ge(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?H(a.injectImpl):null;me(t,n,U.Default);try{r=t[i]=a.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){var n=e.type.prototype,r=n.ngOnChanges,o=n.ngOnInit,a=n.ngDoCheck;if(r){var s=Ot(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,s),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,s)}o&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,o),a&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,a),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,a))}(i,o[i],e)}finally{null!==u&&H(u),Ge(s),a.resolving=!1,Ae()}}return r}function ai(t,e,i){return!!(i[e+(t>>5)]&1<=t.length?t.push(i):t.splice(e,0,i)}function bi(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function wi(t,e){for(var i=[],n=0;n=0?t[1|n]=i:function(t,e,i,n){var r=t.length;if(r==e)t.push(i,n);else if(1===r)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=i,t[e+1]=n}}(t,n=~n,e,i),n}function Ai(t,e){var i=ki(t,e);if(i>=0)return t[1|i]}function ki(t,e){return function(t,e,i){for(var n=0,r=t.length>>1;r!==n;){var o=n+(r-n>>1),a=t[o<<1];if(e===a)return o<<1;a>e?r=o:n=o+1}return~(r<<1)}(t,e)}var Ti,Ci={},Si=/\n/gm,Ei=w({provide:String,useValue:w});function xi(t){var e=Ti;return Ti=t,e}function Ri(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.Default;if(void 0===Ti)throw new Error("inject() must be called from an injection context");return null===Ti?j(t,void 0,e):Ti.get(t,e&U.Optional?null:void 0,e)}function Ii(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.Default;return(z||Ri)(S(t),e)}var Oi=Ii;function Pi(t){for(var e=[],i=0;i"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();pn.hasOwnProperty(e)&&!ln.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(An(t))}},{key:"checkClobberedElement",value:function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return e}}]),t}(),wn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_n=/([^\#-~ |!])/g;function An(t){return t.replace(/&/g,"&").replace(wn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(_n,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function kn(t,e){var i=null;try{cn=cn||function(t){var e=new nn(t);return function(){try{return!!(new window.DOMParser).parseFromString(Zi(""),"text/html")}catch(t){return!1}}()?new en(e):e}(t);var n=e?String(e):"";i=cn.getInertBodyElement(n);var r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=i.innerHTML,i=cn.getInertBodyElement(n)}while(n!==o);return Zi((new bn).sanitizeChildren(Tn(i)||i))}finally{if(i)for(var a=Tn(i)||i;a.firstChild;)a.removeChild(a.firstChild)}}function Tn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Cn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Sn(t){var e=xn();return e?Bi(e.sanitize(Cn.HTML,t)||""):Ki(t,"HTML")?Bi(Vi(t)):kn(Nt(),R(t))}function En(t){var e=xn();return e?e.sanitize(Cn.URL,t)||"":Ki(t,"URL")?Vi(t):an(R(t))}function xn(){var t=Xt();return t&&t[12]}function Rn(t,e){t.__ngContext__=e}function In(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function On(t){return t.ngDebugContext}function Pn(t){return t.ngOriginalError}function Dn(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n0&&(t[n-1][4]=r[4]);var a=bi(t,10+e);lr(r[1],i=r,i[11],2,null,null),i[0]=null,i[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Qn(t,e){if(!(256&e[2])){var i=e[11];zt(i)&&i.destroyNode&&lr(t,e,i,3,null,null),function(t){var e=t[13];if(!e)return Wn(t[1],t);for(;e;){var i=null;if(_t(e))i=e[13];else{var n=e[10];n&&(i=n)}if(!i){for(;e&&!e[4]&&e!==t;)_t(e)&&Wn(e[1],e),e=e[3];null===e&&(e=t),_t(e)&&Wn(e[1],e),i=e&&e[4]}e=i}}(e)}}function Wn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var i;if(null!=t&&null!=(i=t.destroyHooks))for(var n=0;n=0?n[r=c]():n[r=-c].unsubscribe(),o+=2}else{var l=n[r=i[o+1]];i[o].call(l)}if(null!==n){for(var h=r+1;ho?"":r[l+1].toLowerCase();var d=8&n?h:null;if(d&&-1!==pr(d,c,0)||2&n&&c!==h){if(br(n))return!1;a=!0}}}}else{if(!a&&!br(n)&&!br(u))return!1;if(a&&br(u))continue;a=!1,n=u|1&n}}return br(n)||a}function br(t){return 0==(1&t)}function wr(t,e,i,n){if(null===e)return-1;var r=0;if(n||!i){for(var o=!1;r-1)for(i++;i2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+s+'"':"")+"]"}else 8&n?r+="."+a:4&n&&(r+=" "+a);else""===r||br(a)||(e+=kr(o,r),r=""),n=a,o=o||!br(n);i++}return""!==r&&(e+=kr(o,r)),e}var Cr={};function Sr(t){Er($t(),Xt(),Te()+t,ae())}function Er(t,e,i,n){if(!n)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&Ie(e,r,i)}else{var o=t.preOrderHooks;null!==o&&Oe(e,o,0,i)}Ce(i)}function xr(t,e){return t<<17|e<<2}function Rr(t){return t>>17&32767}function Ir(t){return 2|t}function Or(t){return(131068&t)>>2}function Pr(t,e){return-131069&t|e<<2}function Dr(t){return 1|t}function Mr(t,e){var i=t.contentQueries;if(null!==i)for(var n=0;n20&&Er(t,e,20,ae()),i(n,r)}finally{Ce(o)}}function Ur(t,e,i){if(kt(e))for(var n=e.directiveEnd,r=e.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:qt,n=e.localNames;if(null!==n)for(var r=e.index+1,o=0;o0;){var i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(s)!=u&&s.push(u),s.push(n,r,a)}}function Xr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function $r(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function to(t,e,i){if(i){if(e.exportAs)for(var n=0;n0&&uo(i)}}function uo(t){for(var e=Hn(t);null!==e;e=jn(e))for(var i=10;i0&&uo(n)}var o=t[1].components;if(null!==o)for(var a=0;a0&&uo(s)}}function co(t,e){var i=jt(e,t),n=i[1];!function(t,e){for(var i=e.length;i1&&void 0!==arguments[1]?arguments[1]:Ci;if(e===Ci){var i=new Error("NullInjectorError: No provider for ".concat(A(t),"!"));throw i.name="NullInjectorError",i}return e}}]),t}(),Eo=new fi("Set Injector scope."),xo={},Ro={};function Io(){return void 0===To&&(To=new So),To}function Oo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new Po(t,i,e||Io(),n)}var Po=function(){function t(e,i,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;v(this,t),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];i&&mi(i,function(t){return r.processProvider(t,e,i)}),mi([e],function(t){return r.processInjectorType(t,[],a)}),this.records.set(Co,Lo(void 0,this));var s=this.records.get(Eo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:A(e))}return y(t,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ci,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U.Default;this.assertNotDestroyed();var n,r=xi(this);try{if(!(i&U.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(n=t)||"object"==typeof n&&n instanceof fi)&&M(t);o=a&&this.injectableDefInScope(a)?Lo(Do(t),xo):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}return(i&U.Self?Io():this.parent).get(t,e=i&U.Optional&&e===Ci?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(A(t)),r)throw s;return function(t,e,i,n){var r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var r=A(e);if(Array.isArray(e))r=e.map(A).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):A(s)))}r="{".concat(o.join(", "),"}")}return"".concat(i).concat(n?"("+n+")":"","[").concat(r,"]: ").concat(t.replace(Si,"\n "))}("\n"+t.message,r,"R3InjectorError",n),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,0,this.source)}throw s}finally{xi(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(e,i){return t.push(A(i))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,i){var n=this;if(!(t=S(t)))return!1;var r=N(t),o=null==r&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==i.indexOf(a);if(void 0!==o&&(r=N(o)),null==r)return!1;if(null!=r.imports&&!s){var u;i.push(a);try{mi(r.imports,function(t){n.processInjectorType(t,e,i)&&(void 0===u&&(u=[]),u.push(t))})}finally{}if(void 0!==u)for(var c=function(t){var e=u[t],i=e.ngModule,r=e.providers;mi(r,function(t){return n.processProvider(t,i,r||tt)})},l=0;l0){var i=wi(e,"?");throw new Error("Can't resolve all parameters for ".concat(A(t),": (").concat(i.join(", "),")."))}var n=function(t){var e=t&&(t[F]||t[B]);if(e){var i=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(i,'" 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 "').concat(i,'" class.')),e}return null}(t);return null!==n?function(){return n.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function Mo(t,e,n){var r,o;if(zo(t)){var a=S(t);return Et(a)||Do(a)}if(No(t))r=function(){return S(t.useValue)};else if((o=t)&&o.useFactory)r=function(){return t.useFactory.apply(t,d(Pi(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))r=function(){return Ii(S(t.useExisting))};else{var s=S(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Et(s)||Do(s);r=function(){return i(s,d(Pi(t.deps)))}}return r}function Lo(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:i?[]:void 0}}function No(t){return null!==t&&"object"==typeof t&&Ei in t}function zo(t){return"function"==typeof t}var Fo=function(t,e,i){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,r=Oo(t,e,i,n);return r._resolveInjectorDefTypes(),r}({name:i},e,t,i)},Zo=function(){var t=function(){function t(){v(this,t)}return y(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?Fo(t,e,""):Fo(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=Ci,t.NULL=new So,t.\u0275prov=P({token:t,providedIn:"any",factory:function(){return Ii(Co)}}),t.__NG_ELEMENT_ID__=-1,t}();function Bo(t,e){Re(In(t)[1],ee())}function qo(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0,n=[t];e;){var r=void 0;if(St(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(i){n.push(r);var o=t;o.inputs=Uo(t.inputs),o.declaredInputs=Uo(t.declaredInputs),o.outputs=Uo(t.outputs);var a=r.hostBindings;a&&Go(t,a);var s=r.viewQuery,u=r.contentQueries;if(s&&Ho(t,s),u&&jo(t,u),_(t.inputs,r.inputs),_(t.declaredInputs,r.declaredInputs),_(t.outputs,r.outputs),St(r)&&r.data.animation){var c=t.data;c.animation=(c.animation||[]).concat(r.data.animation)}}var l=r.features;if(l)for(var h=0;h=0;n--){var r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=Ze(r.hostAttrs,i=Ze(i,r.hostAttrs))}}(n)}function Uo(t){return t===$?{}:t===tt?[]:t}function Ho(t,e){var i=t.viewQuery;t.viewQuery=i?function(t,n){e(t,n),i(t,n)}:e}function jo(t,e){var i=t.contentQueries;t.contentQueries=i?function(t,n,r){e(t,n,r),i(t,n,r)}:e}function Go(t,e){var i=t.hostBindings;t.hostBindings=i?function(t,n){e(t,n),i(t,n)}:e}var Yo=null;function Vo(){if(!Yo){var t=X.Symbol;if(t&&t.iterator)Yo=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),i=0;i1&&void 0!==arguments[1]?arguments[1]:U.Default,i=Xt();return null===i?Ii(t,e):ti(ee(),i,S(t),e)}function ua(t,e,i){var n=Xt();return Xo(n,le(),e)&&Jr($t(),Se(),n,t,e,n[11],i,!1),ua}function ca(t,e,i,n,r){var o=r?"class":"style";_o(t,i,e.inputs[o],o,n)}function la(t,e,i,n){var r=Xt(),o=$t(),a=20+t,s=r[11],u=r[a]=Vn(s,e,Qt.lFrame.currentNamespace),c=o.firstCreatePass?function(t,e,i,n,r,o,a){var s=e.consts,u=Nr(e,t,2,r,Vt(s,o));return Qr(e,i,u,Vt(s,a)),null!==u.attrs&&ko(u,u.attrs,!1),null!==u.mergedAttrs&&ko(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}(a,o,r,0,e,i,n):o.data[a];ne(c,!0);var l=c.mergedAttrs;null!==l&&Ne(s,u,l);var h=c.classes;null!==h&&fr(s,u,h);var d=c.styles;null!==d&&dr(s,u,d),64!=(64&c.flags)&&or(o,r,u,c),0===Qt.lFrame.elementDepthCount&&Rn(u,r),Qt.lFrame.elementDepthCount++,Ct(c)&&(Hr(o,r,c),Ur(o,c,r)),null!==n&&jr(r,c)}function ha(){var t=ee();re()?oe():ne(t=t.parent,!1);var e=t;Qt.lFrame.elementDepthCount--;var i=$t();i.firstCreatePass&&(Re(i,t),kt(t)&&i.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&ca(i,e,Xt(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&ca(i,e,Xt(),e.stylesWithoutHost,!1)}function da(t,e,i,n){la(t,e,i,n),ha()}function fa(t,e,i){var n=Xt(),r=$t(),o=t+20,a=r.firstCreatePass?function(t,e,i,n,r){var o=e.consts,a=Vt(o,n),s=Nr(e,t,8,"ng-container",a);return null!==a&&ko(s,a,!0),Qr(e,i,s,Vt(o,r)),null!==e.queries&&e.queries.elementStart(e,s),s}(o,r,n,e,i):r.data[o];ne(a,!0);var s=n[o]=n[11].createComment("");or(r,n,s,a),Rn(s,n),Ct(a)&&(Hr(r,n,a),Ur(r,a,n)),null!=i&&jr(n,a)}function pa(){var t=ee(),e=$t();re()?oe():ne(t=t.parent,!1),e.firstCreatePass&&(Re(e,t),kt(t)&&e.queries.elementEnd(t))}function ga(t,e,i){fa(t,e,i),pa()}function va(){return Xt()}function ma(t){return!!t&&"function"==typeof t.then}function ya(t){return!!t&&"function"==typeof t.subscribe}var ba=ya;function wa(t,e,i,n){var r=Xt(),o=$t(),a=ee();return Aa(o,r,r[11],a,t,e,!!i,n),wa}function _a(t,e){var i=ee(),n=Xt(),r=$t();return Aa(r,n,bo(fe(r.data),i,n),i,t,e,!1),_a}function Aa(t,e,i,n,r,o,a,s){var u=Ct(n),c=t.firstCreatePass&&yo(t),l=mo(e),h=!0;if(3&n.type||s){var d=qt(n,e),f=s?s(d):d,p=l.length,g=s?function(t){return s(Zt(t[n.index]))}:n.index;if(zt(i)){var v=null;if(!s&&u&&(v=function(t,e,i,n){var r=t.cleanup;if(null!=r)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(t,e,r,n.index)),null!==v)(v.__ngLastListenerFn__||v).__ngNextListenerFn__=o,v.__ngLastListenerFn__=o,h=!1;else{o=Ta(n,e,0,o,!1);var m=i.listen(f,r,o);l.push(o,m),c&&c.push(r,g,p,p+1)}}else o=Ta(n,e,0,o,!0),f.addEventListener(r,o,a),l.push(o),c&&c.push(r,g,p,a)}else o=Ta(n,e,0,o,!1);var y,b=n.outputs;if(h&&null!==b&&(y=b[r])){var w=y.length;if(w)for(var _=0;_0&&void 0!==arguments[0]?arguments[0]:1;return function(t){return(Qt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Qt.lFrame.contextLView))[8]}(t)}function Sa(t,e){for(var i=null,n=function(t){var e=t.attrs;if(null!=e){var i=e.indexOf(5);if(0==(1&i))return e[i+1]}return null}(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,n=Xt(),r=$t(),o=Nr(r,20+t,16,null,i||null);null===o.projection&&(o.projection=e),oe(),64!=(64&o.flags)&&function(t,e,i){hr(e[11],0,e,i,Xn(t,i,e),nr(i.parent||e[6],i,e))}(r,n,o)}function Ra(t,e,i){return Ia(t,"",e,"",i),Ra}function Ia(t,e,i,n,r){var o=Xt(),a=na(o,e,i,n);return a!==Cr&&Jr($t(),Se(),o,t,a,o[11],r,!1),Ia}function Oa(t,e,i,n,r,o,a){var s=Xt(),u=ra(s,e,i,n,r,o);return u!==Cr&&Jr($t(),Se(),s,t,u,s[11],a,!1),Oa}function Pa(t,e,i,n,r){for(var o=t[i+1],a=null===e,s=n?Rr(o):Or(o),u=!1;0!==s&&(!1===u||a);){var c=t[s+1];Da(t[s],e)&&(u=!0,t[s+1]=n?Dr(c):Ir(c)),s=n?Rr(c):Or(c)}u&&(t[i+1]=n?Ir(o):Dr(o))}function Da(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ki(t,e)>=0}var Ma={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function La(t){return t.substring(Ma.key,Ma.keyEnd)}function Na(t,e){var i=Ma.textEnd;return i===e?-1:(e=Ma.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Ma.key=e,i),za(t,e,i))}function za(t,e,i){for(;e=0;i=Na(e,i))_i(t,La(e),!0)}function Ua(t,e,i,n){var r=Xt(),o=$t(),a=he(2);o.firstUpdatePass&&Ga(o,t,a,n),e!==Cr&&Xo(r,a,e)&&Ka(o,o.data[Te()],r,r[11],t,r[a+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=A(Vi(t)))),t}(e,i),n,a)}function Ha(t,e,i,n){var r=$t(),o=he(2);r.firstUpdatePass&&Ga(r,null,o,n);var a=Xt();if(i!==Cr&&Xo(a,o,i)){var s=r.data[Te()];if(Wa(s,n)&&!ja(r,o)){var u=n?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(i=k(u,i||"")),ca(r,s,a,i,n)}else!function(t,e,i,n,r,o,a,s){r===Cr&&(r=tt);for(var u=0,c=0,l=0=t.expandoStartIndex}function Ga(t,e,i,n){var r=t.data;if(null===r[i+1]){var o=r[Te()],a=ja(t,i);Wa(o,n)&&null===e&&!a&&(e=!1),e=function(t,e,i,n){var r=fe(t),o=n?e.residualClasses:e.residualStyles;if(null===r)0===(n?e.classBindings:e.styleBindings)&&(i=Va(i=Ya(null,t,e,i,n),e.attrs,n),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==r)if(i=Ya(r,t,e,i,n),null===o){var s=function(t,e,i){var n=i?e.classBindings:e.styleBindings;if(0!==Or(n))return t[Rr(n)]}(t,e,n);void 0!==s&&Array.isArray(s)&&function(t,e,i,n){t[Rr(i?e.classBindings:e.styleBindings)]=n}(t,e,n,s=Va(s=Ya(null,t,e,s[1],n),e.attrs,n))}else o=function(t,e,i){for(var n,r=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(l=!0)}else c=i;if(r)if(0!==u){var d=Rr(t[s+1]);t[n+1]=xr(d,s),0!==d&&(t[d+1]=Pr(t[d+1],n)),t[s+1]=131071&t[s+1]|n<<17}else t[n+1]=xr(s,0),0!==s&&(t[s+1]=Pr(t[s+1],n)),s=n;else t[n+1]=xr(u,0),0===s?s=n:t[u+1]=Pr(t[u+1],n),u=n;l&&(t[n+1]=Ir(t[n+1])),Pa(t,c,n,!0),Pa(t,c,n,!1),function(t,e,i,n,r){var o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&ki(o,e)>=0&&(i[n+1]=Dr(i[n+1]))}(e,c,t,n,o),a=xr(s,u),o?e.classBindings=a:e.styleBindings=a}(r,o,e,i,a,n)}}function Ya(t,e,i,n,r){var o=null,a=i.directiveEnd,s=i.directiveStylingLast;for(-1===s?s=i.directiveStart:s++;s0;){var u=t[r],c=Array.isArray(u),l=c?u[1]:u,h=null===l,d=i[r+1];d===Cr&&(d=h?tt:void 0);var f=h?Ai(d,n):l===n?d:void 0;if(c&&!Qa(f)&&(f=Ai(u,n)),Qa(f)&&(a=f,s))return a;var p=t[r+1];r=s?Rr(p):Or(p)}if(null!==e){var g=o?e.residualClasses:e.residualStyles;null!=g&&(a=Ai(g,n))}return a}function Qa(t){return void 0!==t}function Wa(t,e){return 0!=(t.flags&(e?16:32))}function Xa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=Xt(),n=$t(),r=t+20,o=n.firstCreatePass?Nr(n,r,1,e,null):n.data[r],a=i[r]=function(t,e){return zt(t)?t.createText(e):t.createTextNode(e)}(i[11],e);or(n,i,a,o),ne(o,!1)}function $a(t){return ts("",t,""),$a}function ts(t,e,i){var n=Xt(),r=na(n,t,e,i);return r!==Cr&&Ao(n,Te(),r),ts}function es(t,e,i,n,r){var o=Xt(),a=ra(o,t,e,i,n,r);return a!==Cr&&Ao(o,Te(),a),es}function is(t,e,i,n,r,o,a){var s=Xt(),u=function(t,e,i,n,r,o,a,s){var u=ta(t,ce(),i,r,a);return he(3),u?e+R(i)+n+R(r)+o+R(a)+s:Cr}(s,t,e,i,n,r,o,a);return u!==Cr&&Ao(s,Te(),u),is}function ns(t,e,i,n,r,o,a,s,u){var c=Xt(),l=function(t,e,i,n,r,o,a,s,u,c){var l=ea(t,ce(),i,r,a,u);return he(4),l?e+R(i)+n+R(r)+o+R(a)+s+R(u)+c:Cr}(c,t,e,i,n,r,o,a,s,u);return l!==Cr&&Ao(c,Te(),l),ns}function rs(t,e,i,n,r,o,a,s,u,c,l){var h=Xt(),d=function(t,e,i,n,r,o,a,s,u,c,l,h){var d=ce(),f=ea(t,d,i,r,a,u);return f=Xo(t,d+4,l)||f,he(5),f?e+R(i)+n+R(r)+o+R(a)+s+R(u)+c+R(l)+h:Cr}(h,t,e,i,n,r,o,a,s,u,c,l);return d!==Cr&&Ao(h,Te(),d),rs}function os(t,e,i){Ha(_i,qa,na(Xt(),t,e,i),!0)}function as(t,e,i){var n=Xt();return Xo(n,le(),e)&&Jr($t(),Se(),n,t,e,n[11],i,!0),as}function ss(t,e,i){var n=Xt();if(Xo(n,le(),e)){var r=$t(),o=Se();Jr(r,o,n,t,e,bo(fe(r.data),o,n),i,!0)}return ss}var us=void 0,cs=["en",[["a","p"],["AM","PM"],us],[["AM","PM"],us,us],[["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"]],us,[["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"]],us,[["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}",us,"{1} 'at' {0}",us],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}],ls={};function hs(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),i=fs(e);if(i)return i;var n=e.split("-")[0];if(i=fs(n))return i;if("en"===n)return cs;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}function ds(t){return hs(t)[ps.PluralCase]}function fs(t){return t in ls||(ls[t]=X.ng&&X.ng.common&&X.ng.common.locales&&X.ng.common.locales[t]),ls[t]}var ps=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});function gs(t){var e;null==(e=t)&&function(t,e,i,n){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined"," [Expected=> null != ").concat(e," <=Actual]"))}(0,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function vs(t,e,i,n,r){if(t=S(t),Array.isArray(t))for(var o=0;o>20;if(zo(t)||!t.multi){var p=new Le(c,r,sa),g=bs(u,e,r?h:h+f,d);-1===g?(We(Ve(l,s),a,u),ms(a,t,e.length),e.push(u),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(p),s.push(p)):(i[g]=p,s[g]=p)}else{var v=bs(u,e,h+f,d),m=bs(u,e,h,h+f),y=v>=0&&i[v],b=m>=0&&i[m];if(r&&!b||!r&&!y){We(Ve(l,s),a,u);var w=function(t,e,i,n,r){var o=new Le(t,i,sa);return o.multi=[],o.index=e,o.componentProviders=0,ys(o,r,n&&!i),o}(r?_s:ws,i.length,r,n,c);!r&&b&&(i[m].providerFactory=w),ms(a,t,e.length,0),e.push(u),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(w),s.push(w)}else ms(a,t,v>-1?v:m,ys(i[r?m:v],c,!r&&n));!r&&n&&b&&i[m].componentProviders++}}}function ms(t,e,i,n){var r=zo(e);if(r||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){var s=a.indexOf(i);-1===s?a.push(i,[n,o]):a[s+1].push(n,o)}else a.push(i,o)}}}function ys(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function bs(t,e,i,n){for(var r=i;r1&&void 0!==arguments[1]?arguments[1]:[];return function(i){i.providersResolver=function(i,n){return function(t,e,i){var n=$t();if(n.firstCreatePass){var r=St(t);vs(i,n.data,n.blueprint,r,!0),vs(e,n.data,n.blueprint,r,!1)}}(i,n?n(t):t,e)}}}var Ts=function t(){v(this,t)},Cs=function(){function t(){v(this,t)}return y(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(A(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),Ss=function(){var t=function t(){v(this,t)};return t.NULL=new Cs,t}();function Es(){}function xs(t,e){return new Is(qt(t,e))}var Rs=function(){return xs(ee(),Xt())},Is=function(){var t=function t(e){v(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=Rs,t}();function Os(t){return t instanceof Is?t.nativeElement:t}var Ps=function t(){v(this,t)},Ds=function(){var t=function t(){v(this,t)};return t.__NG_ELEMENT_ID__=function(){return Ms()},t}(),Ms=function(){var t=Xt(),e=jt(ee().index,t);return function(t){return t[11]}(_t(e)?e:t)},Ls=function(){var t=function t(){v(this,t)};return t.\u0275prov=P({token:t,providedIn:"root",factory:function(){return null}}),t}(),Ns=function t(e){v(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},zs=new Ns("12.0.5"),Fs=function(){function t(){v(this,t)}return y(t,[{key:"supports",value:function(t){return Jo(t)}},{key:"create",value:function(t){return new Bs(t)}}]),t}(),Zs=function(t,e){return e},Bs=function(){function t(e){v(this,t),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Zs}return y(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,i=this._removalsHead,n=0,r=null;e||i;){var o=!i||e&&e.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==i;){var o=e[i.index];if(null!==o&&n.push(Zt(o)),At(o))for(var a=10;a-1&&(Jn(t,i),bi(e,i))}this._attachedToViewContainer=!1}Qn(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){Vr(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){ho(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){fo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,i){se(!0);try{fo(t,e,i)}finally{se(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,lr(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),t}(),tu=function(t){o(i,t);var e=s(i);function i(t){var n;return v(this,i),(n=e.call(this,t))._view=t,n}return y(i,[{key:"detectChanges",value:function(){po(this._view)}},{key:"checkNoChanges",value:function(){!function(t){se(!0);try{po(t)}finally{se(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),i}($s),eu=function(t){return function(t,e,i){if(Tt(t)&&!i){var n=jt(t.index,e);return new $s(n,n)}return 47&t.type?new $s(e[16],e):null}(ee(),Xt(),16==(16&t))},iu=function(){var t=function t(){v(this,t)};return t.__NG_ELEMENT_ID__=eu,t}(),nu=[new Gs],ru=new Js([new Fs]),ou=new Ws(nu),au=function(){return cu(ee(),Xt())},su=function(){var t=function t(){v(this,t)};return t.__NG_ELEMENT_ID__=au,t}(),uu=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this))._declarationLView=t,o._declarationTContainer=n,o.elementRef=r,o}return y(i,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,i=Lr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];var n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),Fr(e,i,t),new $s(i)}}]),i}(su);function cu(t,e){return 4&t.type?new uu(e,t,xs(t,e)):null}var lu=function t(){v(this,t)},hu=function t(){v(this,t)},du=function(){return mu(ee(),Xt())},fu=function(){var t=function t(){v(this,t)};return t.__NG_ELEMENT_ID__=du,t}(),pu=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this))._lContainer=t,o._hostTNode=n,o._hostLView=r,o}return y(i,[{key:"element",get:function(){return xs(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new ui(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var t=Qe(this._hostTNode,this._hostLView);if(qe(t)){var e=He(t,this._hostLView),i=Ue(t);return new ui(e[1].data[i+8],e)}return new ui(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){var e=gu(this._lContainer);return null!==e&&e[t]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(t,e,i){var n=t.createEmbeddedView(e||{});return this.insert(n,i),n}},{key:"createComponent",value:function(t,e,i,n,r){var o=i||this.parentInjector;if(!r&&null==t.ngModule&&o){var a=o.get(lu,null);a&&(r=a)}var s=t.create(o,n,void 0,r);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,r=n[1];if(At(n[3])){var o=this.indexOf(t);if(-1!==o)this.detach(o);else{var a=n[3],s=new i(a,a[6],a[3]);s.detach(s.indexOf(t))}}var u=this._adjustIndex(e),c=this._lContainer;!function(t,e,i,n){var r=10+n,o=i.length;n>0&&(i[r-1][4]=e),n1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}}]),i}(fu);function gu(t){return t[8]}function vu(t){return t[8]||(t[8]=[])}function mu(t,e){var i,n=e[t.index];if(At(n))i=n;else{var r;if(8&t.type)r=Zt(n);else{var o=e[11];r=o.createComment("");var a=qt(t,e);$n(o,ir(o,a),r,function(t,e){return zt(t)?t.nextSibling(e):e.nextSibling}(o,a),!1)}e[t.index]=i=ao(n,e,r,t),lo(e,i)}return new pu(i,t,e)}var yu={},bu=function(t){o(i,t);var e=s(i);function i(t){var n;return v(this,i),(n=e.call(this)).ngModule=t,n}return y(i,[{key:"resolveComponentFactory",value:function(t){var e=bt(t);return new Au(e,this.ngModule)}}]),i}(Ss);function wu(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push({propName:t[i],templateName:i});return e}var _u=new fi("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Ln}}),Au=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this)).componentDef=t,r.ngModule=n,r.componentType=t.type,r.selector=t.selectors.map(Tr).join(","),r.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],r.isBoundToModule=!!n,r}return y(i,[{key:"inputs",get:function(){return wu(this.componentDef.inputs)}},{key:"outputs",get:function(){return wu(this.componentDef.outputs)}},{key:"create",value:function(t,e,i,n){var r,o,a=(n=n||this.ngModule)?function(t,e){return{get:function(i,n,r){var o=t.get(i,yu,r);return o!==yu||n===yu?o:e.get(i,n,r)}}}(t,n.injector):t,s=a.get(Ps,Ft),u=a.get(Ls,null),c=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=i?function(t,e,i){if(zt(t))return t.selectRootElement(e,i===V.ShadowDom);var n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(c,i,this.componentDef.encapsulation):Vn(s.createRenderer(null,this.componentDef),l,function(t){var e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:Ln,clean:vo,playerHandler:null,flags:0},p=Yr(0,null,null,1,0,null,null,null,null,null),g=Lr(null,p,f,d,null,null,s,c,u,a);ye(g);try{var v=function(t,e,i,n,r,o){var a=i[1];i[20]=t;var s=Nr(a,20,2,"#host",null),u=s.mergedAttrs=e.hostAttrs;null!==u&&(ko(s,u,!0),null!==t&&(Ne(r,t,u),null!==s.classes&&fr(r,t,s.classes),null!==s.styles&&dr(r,t,s.styles)));var c=n.createRenderer(t,e),l=Lr(i,Gr(e),null,e.onPush?64:16,i[20],s,n,c,null,null);return a.firstCreatePass&&(We(Ve(s,i),a,e.type),$r(a,s),eo(s,i.length,1)),lo(i,l),i[20]=l}(h,this.componentDef,g,s,c);if(h)if(i)Ne(c,h,["ng-version",zs.full]);else{var m=function(t){for(var e=[],i=[],n=1,r=2;n0&&fr(c,h,b.join(" "))}if(o=Ut(p,20),void 0!==e)for(var w=o.projection=[],_=0;_1&&void 0!==arguments[1]?arguments[1]:Zo.THROW_IF_NOT_FOUND,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U.Default;return t===Zo||t===lu||t===Co?this:this._r3Injector.get(t,e,i)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),i}(lu),Su=function(t){o(i,t);var e=s(i);function i(t){var n,r,o;return v(this,i),(n=e.call(this)).moduleType=t,null!==wt(t)&&(r=t,o=new Set,function t(e){var i=wt(e,!0),n=i.id;null!==n&&(function(t,e,i){if(e&&e!==i)throw new Error("Duplicate module registered for ".concat(t," - ").concat(A(e)," vs ").concat(A(e.name)))}(n,Tu.get(n),e),Tu.set(n,e));var r,a=f(Zn(i.imports));try{for(a.s();!(r=a.n()).done;){var s=r.value;o.has(s)||(o.add(s),t(s))}}catch(u){a.e(u)}finally{a.f()}}(r)),n}return y(i,[{key:"create",value:function(t){return new Cu(this.moduleType,t)}}]),i}(hu);function Eu(t,e,i){var n=ue()+t,r=Xt();return r[n]===Cr?Wo(r,n,i?e.call(i):e()):function(t,e){return t[e]}(r,n)}function xu(t,e,i,n){return Pu(Xt(),ue(),t,e,i,n)}function Ru(t,e,i,n,r){return Du(Xt(),ue(),t,e,i,n,r)}function Iu(t,e,i,n,r,o){return Mu(Xt(),ue(),t,e,i,n,r,o)}function Ou(t,e){var i=t[e];return i===Cr?void 0:i}function Pu(t,e,i,n,r,o){var a=e+i;return Xo(t,a,r)?Wo(t,a+1,o?n.call(o,r):n(r)):Ou(t,a+1)}function Du(t,e,i,n,r,o,a){var s=e+i;return $o(t,s,r,o)?Wo(t,s+2,a?n.call(a,r,o):n(r,o)):Ou(t,s+2)}function Mu(t,e,i,n,r,o,a,s){var u=e+i;return ta(t,u,r,o,a)?Wo(t,u+3,s?n.call(s,r,o,a):n(r,o,a)):Ou(t,u+3)}function Lu(t,e){var i,n=$t(),r=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(var i=e.length-1;i>=0;i--){var n=e[i];if(t===n.name)return n}throw new x("302","The pipe '".concat(t,"' could not be found!"))}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];var o=i.factory||(i.factory=Et(i.type)),a=H(sa);try{var s=Ge(!1),u=o();return Ge(s),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(n,Xt(),r,u),u}finally{H(a)}}function Nu(t,e,i){var n=t+20,r=Xt(),o=Ht(r,n);return Bu(r,Zu(r,n)?Pu(r,ue(),e,o.transform,i,o):o.transform(i))}function zu(t,e,i,n){var r=t+20,o=Xt(),a=Ht(o,r);return Bu(o,Zu(o,r)?Du(o,ue(),e,a.transform,i,n,a):a.transform(i,n))}function Fu(t,e,i,n,r){var o=t+20,a=Xt(),s=Ht(a,o);return Bu(a,Zu(a,o)?Mu(a,ue(),e,s.transform,i,n,r,s):s.transform(i,n,r))}function Zu(t,e){return t[1].data[e].pure}function Bu(t,e){return Ko.isWrapped(e)&&(e=Ko.unwrap(e),t[ce()]=Cr),e}function qu(t){return function(e){setTimeout(t,void 0,e)}}var Uu=function(t){o(i,t);var e=s(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v(this,i),(t=e.call(this)).__isAsync=n,t}return y(i,[{key:"emit",value:function(t){n(h(i.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,r){var o,a,s,u=t,c=e||function(){return null},l=r;if(t&&"object"==typeof t){var d=t;u=null===(o=d.next)||void 0===o?void 0:o.bind(d),c=null===(a=d.error)||void 0===a?void 0:a.bind(d),l=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(c=qu(c),u&&(u=qu(u)),l&&(l=qu(l)));var f=n(h(i.prototype),"subscribe",this).call(this,{next:u,error:c,complete:l});return t instanceof p.w&&t.add(f),f}}]),i}(l.xQ);function Hu(){return this._results[Vo()]()}var ju=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];v(this,t),this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var i=Vo(),n=t.prototype;n[i]||(n[i]=Hu)}return y(t,[{key:"changes",get:function(){return this._changes||(this._changes=new Uu)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,e){this.dirty=!1;var i=vi(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];v(this,t),this.queries=e}return y(t,[{key:"createEmbeddedView",value:function(e){var i=e.queries;if(null!==i){for(var n=null!==e.contentQueries?e.contentQueries[0]:i.length,r=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;v(this,t),this.predicate=e,this.flags=i,this.read=n},Ku=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v(this,t),this.queries=e}return y(t,[{key:"elementStart",value:function(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:-1;v(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}return y(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,i){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,i),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var e=this._declarationNodeIndex,i=t.parent;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var i=this.metadata.predicate;if(Array.isArray(i))for(var n=0;n0)n.push(a[s/2]);else{for(var c=o[s+1],l=e[-u],h=10;h0&&(r=setTimeout(function(){n._callbacks=n._callbacks.filter(function(t){return t.timeoutId!==r}),t(n._didWork,n.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:i})}},{key:"whenStable",value:function(t,e,i){if(i&&!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(t,e,i),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,i){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ii(Rc))},t.\u0275prov=P({token:t,factory:t.\u0275fac}),t}(),zc=function(){var t=function(){function t(){v(this,t),this._applications=new Map,Bc.addToWindow(this)}return y(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Bc.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=P({token:t,factory:t.\u0275fac}),t}();function Fc(t){Bc=t}var Zc,Bc=new(function(){function t(){v(this,t)}return y(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,i){return null}}]),t}()),qc=!0,Uc=!1;function Hc(){return Uc=!0,qc}function jc(){if(Uc)throw new Error("Cannot enable prod mode after platform setup.");qc=!1}var Gc=new fi("AllowMultipleToken"),Yc=function t(e,i){v(this,t),this.name=e,this.token=i};function Vc(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(e),r=new fi(n);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Kc();if(!o||o.injector.get(Gc,!1))if(t)t(i.concat(e).concat({provide:r,useValue:!0}));else{var a=i.concat(e).concat({provide:r,useValue:!0},{provide:Eo,useValue:"platform"});!function(t){if(Zc&&!Zc.destroyed&&!Zc.injector.get(Gc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Zc=t.get(Jc);var e=t.get(fc,null);e&&e.forEach(function(t){return t()})}(Zo.create({providers:a,name:n}))}return function(t){var e=Kc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Kc(){return Zc&&!Zc.destroyed?Zc:null}var Jc=function(){var t=function(){function t(e){v(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return y(t,[{key:"bootstrapModuleFactory",value:function(t,e){var i,n,r=this,o=(i=e?e.ngZone:void 0,n={ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1},"noop"===i?new Lc:("zone.js"===i?void 0:i)||new Rc({enableLongStackTrace:Hc(),shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)})),a=[{provide:Rc,useValue:o}];return o.run(function(){var e=Zo.create({providers:a,parent:r.injector,name:t.moduleType.name}),i=t.create(e),n=i.injector.get(Mn,null);if(!n)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var t=o.onError.subscribe({next:function(t){n.handleError(t)}});i.onDestroy(function(){Xc(r._modules,i),t.unsubscribe()})}),function(t,e,n){try{var o=((a=i.injector.get(cc)).runInitializers(),a.donePromise.then(function(){return gs(i.injector.get(mc,"en-US")||"en-US"),r._moduleDoBootstrap(i),i}));return ma(o)?o.catch(function(i){throw e.runOutsideAngular(function(){return t.handleError(i)}),i}):o}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(n,o)})}},{key:"bootstrapModule",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Qc({},i);return function(t,e,i){var n=new Su(i);return Promise.resolve(n)}(0,0,t).then(function(t){return e.bootstrapModuleFactory(t,n)})}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(Wc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(A(t.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));t.instance.ngDoBootstrap(e)}this._modules.push(t)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ii(Zo))},t.\u0275prov=P({token:t,factory:t.\u0275fac}),t}();function Qc(t,e){return Array.isArray(e)?e.reduce(Qc,t):Object.assign(Object.assign({},t),e)}var Wc=function(){var t=function(){function t(e,i,n,r,o){var a=this;v(this,t),this._zone=e,this._injector=i,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var s=new g.y(function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){t.next(a._stable),t.complete()})}),u=new g.y(function(t){var e;a._zone.runOutsideAngular(function(){e=a._zone.onStable.subscribe(function(){Rc.assertNotInAngularZone(),xc(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))})})});var i=a._zone.onUnstable.subscribe(function(){Rc.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),i.unsubscribe()}});this.isStable=(0,m.T)(s,u.pipe((0,b.B)()))}return y(t,[{key:"bootstrap",value:function(t,e){var i,n=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");i=t instanceof Ts?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);var r=i.isBoundToModule?void 0:this._injector.get(lu),o=i.create(Zo.NULL,[],e||i.selector,r),a=o.location.nativeElement,s=o.injector.get(Nc,null),u=s&&o.injector.get(zc);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){n.detachView(o.hostView),Xc(n.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,i=f(this._views);try{for(i.s();!(e=i.n()).done;){e.value.detectChanges()}}catch(n){i.e(n)}finally{i.f()}}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Xc(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(gc,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(t){return t.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ii(Rc),Ii(Zo),Ii(Mn),Ii(Ss),Ii(cc))},t.\u0275prov=P({token:t,factory:t.\u0275fac}),t}();function Xc(t,e){var i=t.indexOf(e);i>-1&&t.splice(i,1)}var $c=function t(){v(this,t)},tl=function t(){v(this,t)},el={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},il=function(){var t=function(){function t(e,i){v(this,t),this._compiler=e,this._config=i||el}return y(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,i=r(t.split("#"),2),n=i[0],o=i[1];return void 0===o&&(o="default"),u(27622)(n).then(function(t){return t[o]}).then(function(t){return nl(t,n,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})}},{key:"loadFactory",value:function(t){var e=r(t.split("#"),2),i=e[0],n=e[1],o="NgFactory";return void 0===n&&(n="default",o=""),u(27622)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(t){return t[n+o]}).then(function(t){return nl(t,i,n)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ii(Sc),Ii(tl,8))},t.\u0275prov=P({token:t,factory:t.\u0275fac}),t}();function nl(t,e,i){if(!t)throw new Error("Cannot find '".concat(i,"' in '").concat(e,"'"));return t}var rl=function(t){return null},ol=Vc(null,"core",[{provide:pc,useValue:"unknown"},{provide:Jc,deps:[Zo]},{provide:zc,deps:[]},{provide:vc,deps:[]}]),al=[{provide:Wc,useClass:Wc,deps:[Rc,Zo,Mn,Ss,cc]},{provide:_u,deps:[Rc],useFactory:function(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:cc,useClass:cc,deps:[[new zi,uc]]},{provide:Sc,useClass:Sc,deps:[]},hc,{provide:Js,useFactory:function(){return ru},deps:[]},{provide:Ws,useFactory:function(){return ou},deps:[]},{provide:mc,useFactory:function(t){return gs(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new Ni(mc),new zi,new Fi]]},{provide:yc,useValue:"USD"}],sl=function(){var t=function t(e){v(this,t)};return t.\u0275fac=function(e){return new(e||t)(Ii(Wc))},t.\u0275mod=pt({type:t}),t.\u0275inj=D({providers:al}),t}()},16073:function(t,e,i){"use strict";i.d(e,{Zs:function(){return Ht},gN:function(){return H},Fj:function(){return b},qu:function(){return Jt},NI:function(){return dt},oH:function(){return Et},u:function(){return Ot},sg:function(){return Rt},u5:function(){return Vt},Cf:function(){return A},JU:function(){return p},a5:function(){return j},JJ:function(){return Y},JL:function(){return V},F:function(){return mt},On:function(){return wt},YN:function(){return Lt},wV:function(){return kt},c5:function(){return Gt},UX:function(){return Kt},Q7:function(){return Ut},EJ:function(){return Mt},kI:function(){return C},_Y:function(){return _t},Kr:function(){return Zt}});var n=i(31572),r=i(61511),a=i(19764),u=i(3148),c=i(79996),l=function(){var t=function(){function t(e,i){v(this,t),this._renderer=e,this._elementRef=i,this.onChange=function(t){},this.onTouched=function(){}}return y(t,[{key:"setProperty",value:function(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"setDisabledState",value:function(t){this.setProperty("disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t}),t}(),h=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(l);return e.\u0275fac=function(i){return(t||(t=n.n5z(e)))(i||e)},e.\u0275dir=n.lG2({type:e,features:[n.qOj]}),e}(),p=new n.OlP("NgValueAccessor"),g={provide:p,useExisting:(0,n.Gpc)(function(){return b}),multi:!0},m=new n.OlP("CompositionEventMode"),b=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,o){var a,s;return v(this,i),(a=e.call(this,t,n))._compositionMode=o,a._composing=!1,null==a._compositionMode&&(a._compositionMode=(s=(0,r.q)()?(0,r.q)().getUserAgent():"",!/android (\d+)/.test(s.toLowerCase()))),a}return y(i,[{key:"writeValue",value:function(t){this.setProperty("value",null==t?"":t)}},{key:"_handleInput",value:function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}]),i}(l);return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(m,8))},t.\u0275dir=n.lG2({type:t,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(t,e){1&t&&n.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[n._Bn([g]),n.qOj]}),t}();function w(t){return null==t||0===t.length}function _(t){return null!=t&&"number"==typeof t.length}var A=new n.OlP("NgValidators"),k=new n.OlP("NgAsyncValidators"),T=/^(?=.{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])?)*$/,C=function(){function t(){v(this,t)}return y(t,null,[{key:"min",value:function(t){return function(t){return function(e){if(w(e.value)||w(t))return null;var i=parseFloat(e.value);return!isNaN(i)&&it?{max:{max:t,actual:e.value}}:null}}(t)}},{key:"required",value:function(t){return S(t)}},{key:"requiredTrue",value:function(t){return E(t)}},{key:"email",value:function(t){return function(t){return w(t.value)||T.test(t.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return function(t){return function(e){return w(e.value)||!_(e.value)?null:e.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}(t)}},{key:"pattern",value:function(t){return x(t)}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){return L(t)}},{key:"composeAsync",value:function(t){return z(t)}}]),t}();function S(t){return w(t.value)?{required:!0}:null}function E(t){return!0===t.value?null:{required:!0}}function x(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),function(t){if(w(t.value))return null;var n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}):R;var e,i}function R(t){return null}function I(t){return null!=t}function O(t){var e=(0,n.QGY)(t)?(0,a.D)(t):t;return(0,n.CqO)(e),e}function P(t){var e={};return t.forEach(function(t){e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function D(t,e){return e.map(function(e){return e(t)})}function M(t){return t.map(function(t){return function(t){return!t.validate}(t)?t:function(e){return t.validate(e)}})}function L(t){if(!t)return null;var e=t.filter(I);return 0==e.length?null:function(t){return P(D(t,e))}}function N(t){return null!=t?L(M(t)):null}function z(t){if(!t)return null;var e=t.filter(I);return 0==e.length?null:function(t){var i=D(t,e).map(O);return(0,u.D)(i).pipe((0,c.U)(P))}}function F(t){return null!=t?z(M(t)):null}function Z(t,e){return null===t?[e]:Array.isArray(t)?[].concat(d(t),[e]):[t,e]}function B(t){return t._rawValidators}function q(t){return t._rawAsyncValidators}var U=function(){var t=function(){function t(){v(this,t),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return y(t,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=N(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=F(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(t){this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t}),t}(),H=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),i}(U);return e.\u0275fac=function(i){return(t||(t=n.n5z(e)))(i||e)},e.\u0275dir=n.lG2({type:e,features:[n.qOj]}),e}(),j=function(t){o(i,t);var e=s(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t}return i}(U),G=function(){function t(e){v(this,t),this._cd=e}return y(t,[{key:"is",value:function(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}]),t}(),Y=function(){var t=function(t){o(i,t);var e=s(i);function i(t){return v(this,i),e.call(this,t)}return i}(G);return t.\u0275fac=function(e){return new(e||t)(n.Y36(j,2))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t}(),V=function(){var t=function(t){o(i,t);var e=s(i);function i(t){return v(this,i),e.call(this,t)}return i}(G);return t.\u0275fac=function(e){return new(e||t)(n.Y36(H,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t}();function K(t,e){return[].concat(d(e.path),[t])}function J(t,e){X(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(i){t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&tt(t,e)})}(t,e),function(t,e){var i=function(t,i){e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(function(){t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&tt(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){var i=function(t){e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(function(){t._unregisterOnDisabledChange(i)})}}(t,e)}function Q(t,e){var i=function(){};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),$(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(function(){}))}function W(t,e){t.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function X(t,e){var i=B(t);null!==e.validator?t.setValidators(Z(i,e.validator)):"function"==typeof i&&t.setValidators([i]);var n=q(t);null!==e.asyncValidator?t.setAsyncValidators(Z(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);var r=function(){return t.updateValueAndValidity()};W(e._rawValidators,r),W(e._rawAsyncValidators,r)}function $(t,e){var i=!1;if(null!==t){if(null!==e.validator){var n=B(t);if(Array.isArray(n)&&n.length>0){var r=n.filter(function(t){return t!==e.validator});r.length!==n.length&&(i=!0,t.setValidators(r))}}if(null!==e.asyncValidator){var o=q(t);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(t){return t!==e.asyncValidator});a.length!==o.length&&(i=!0,t.setAsyncValidators(a))}}}var s=function(){};return W(e._rawValidators,s),W(e._rawAsyncValidators,s),i}function tt(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function et(t,e){X(t,e)}function it(t,e){if(!t.hasOwnProperty("model"))return!1;var i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function nt(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function rt(t,e){return e?(Array.isArray(e),e.forEach(function(t){t.constructor===b?i=t:Object.getPrototypeOf(t.constructor)===h?n=t:r=t}),r||n||i||null):null;var i,n,r}function ot(t,e){var i=t.indexOf(e);i>-1&&t.splice(i,1)}function at(t){return(lt(t)?t.validators:t)||null}function st(t){return Array.isArray(t)?N(t):t||null}function ut(t,e){return(lt(e)?e.asyncValidators:t)||null}function ct(t){return Array.isArray(t)?F(t):t||null}function lt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var ht=function(){function t(e,i){v(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=i,this._composedValidatorFn=st(this._rawValidators),this._composedAsyncValidatorFn=ct(this._rawAsyncValidators)}return y(t,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=st(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ct(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var i=O(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(function(i){e._hasOwnPendingAsyncValidator=!1,e.setErrors(i,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var n=t;return e.forEach(function(t){n=n instanceof ft?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof pt&&n.at(t)||null}),n}(this,t)}},{key:"getError",value:function(t,e){var i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){lt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),t}(),dt=function(t){o(i,t);var e=s(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return v(this,i),(t=e.call(this,at(r),ut(o,r)))._onChange=[],t._applyFormState(n),t._setUpdateStrategy(r),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!t.asyncValidator}),t}return y(i,[{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==i.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==i.emitViewToModelChange)}),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){ot(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){ot(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),i}(ht),ft=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,at(n),ut(r,n))).controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return y(i,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(n){e._throwIfControlMissing(n),e.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(Object.keys(t).forEach(function(n){e.controls[n]&&e.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(i,n){i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,i){return t[i]=e instanceof dt?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(i){var n=e.controls[i];n&&t(n,i)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,i=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,i){if(void 0===t[i])throw new Error("Must supply a value for form control with name: '".concat(i,"'."))})}}]),i}(ht),pt=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,at(n),ut(r,n))).controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return y(i,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}},{key:"removeAt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}},{key:"setControl",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,n){e._throwIfControlMissing(n),e.at(n).setValue(t,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(t.forEach(function(t,n){e.at(n)&&e.at(n).patchValue(t,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(i,n){i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof dt?t.value:t.getRawValue()})}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,i){t(e,i)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,i){if(void 0===t[i])throw new Error("Must supply a value for form control at index: ".concat(i,"."))})}},{key:"_allControlsDisabled",value:function(){var t,e=f(this.controls);try{for(e.s();!(t=e.n()).done;){if(t.value.enabled)return!1}}catch(i){e.e(i)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}]),i}(ht),gt={provide:H,useExisting:(0,n.Gpc)(function(){return mt})},vt=Promise.resolve(null),mt=function(){var t=function(t){o(i,t);var e=s(i);function i(t,r){var o;return v(this,i),(o=e.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new n.vpe,o.form=new ft({},N(t),F(r)),o}return y(i,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(t){var e=this;vt.then(function(){var i=e._findContainer(t.path);t.control=i.registerControl(t.name,t.control),J(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;vt.then(function(){var i=e._findContainer(t.path);i&&i.removeControl(t.name),ot(e._directives,t)})}},{key:"addFormGroup",value:function(t){var e=this;vt.then(function(){var i=e._findContainer(t.path),n=new ft({});et(n,t),i.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(t){var e=this;vt.then(function(){var i=e._findContainer(t.path);i&&i.removeControl(t.name)})}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var i=this;vt.then(function(){i.form.get(t.path).setValue(e)})}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,nt(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}}]),i}(H);return t.\u0275fac=function(e){return new(e||t)(n.Y36(A,10),n.Y36(k,10))},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([gt]),n.qOj]}),t}(),yt={provide:j,useExisting:(0,n.Gpc)(function(){return wt})},bt=Promise.resolve(null),wt=function(){var t=function(t){o(i,t);var e=s(i);function i(t,r,o,a){var s;return v(this,i),(s=e.call(this)).control=new dt,s._registered=!1,s.update=new n.vpe,s._parent=t,s._setValidators(r),s._setAsyncValidators(o),s.valueAccessor=rt(0,a),s}return y(i,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),it(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?K(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){J(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(t){var e=this;bt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(t){var e=this,i=t.isDisabled.currentValue,n=""===i||i&&"false"!==i;bt.then(function(){n&&!e.control.disabled?e.control.disable():!n&&e.control.disabled&&e.control.enable()})}}]),i}(j);return t.\u0275fac=function(e){return new(e||t)(n.Y36(H,9),n.Y36(A,10),n.Y36(k,10),n.Y36(p,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n._Bn([yt]),n.qOj,n.TTD]}),t}(),_t=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),At={provide:p,useExisting:(0,n.Gpc)(function(){return kt}),multi:!0},kt=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"writeValue",value:function(t){this.setProperty("value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}}]),i}(h);return e.\u0275fac=function(i){return(t||(t=n.n5z(e)))(i||e)},e.\u0275dir=n.lG2({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&n.NdJ("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[n._Bn([At]),n.qOj]}),e}(),Tt=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t}(),Ct=new n.OlP("NgModelWithFormControlWarning"),St={provide:j,useExisting:(0,n.Gpc)(function(){return Et})},Et=function(){var t=function(t){o(i,t);var e=s(i);function i(t,r,o,a){var s;return v(this,i),(s=e.call(this))._ngModelWarningConfig=a,s.update=new n.vpe,s._ngModelWarningSent=!1,s._setValidators(t),s._setAsyncValidators(r),s.valueAccessor=rt(0,o),s}return y(i,[{key:"isDisabled",set:function(t){}},{key:"ngOnChanges",value:function(t){if(this._isControlChanged(t)){var e=t.form.previousValue;e&&Q(e,this,!1),J(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}it(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&Q(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_isControlChanged",value:function(t){return t.hasOwnProperty("form")}}]),i}(j);return t.\u0275fac=function(e){return new(e||t)(n.Y36(A,10),n.Y36(k,10),n.Y36(p,10),n.Y36(Ct,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n._Bn([St]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t}(),xt={provide:H,useExisting:(0,n.Gpc)(function(){return Rt})},Rt=function(){var t=function(t){o(i,t);var e=s(i);function i(t,r){var o;return v(this,i),(o=e.call(this)).validators=t,o.asyncValidators=r,o.submitted=!1,o._onCollectionChange=function(){return o._updateDomValue()},o.directives=[],o.form=null,o.ngSubmit=new n.vpe,o._setValidators(t),o._setAsyncValidators(r),o}return y(i,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&($(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return J(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){Q(t.control||null,t,!1),ot(this.directives,t)}},{key:"addFormGroup",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormGroup",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormArray",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,nt(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach(function(e){var i=e.control,n=t.form.get(e.path);i!==n&&(Q(i||null,e),n instanceof dt&&(J(n,e),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(t){var e=this.form.get(t.path);et(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(t){if(this.form){var e=this.form.get(t.path);e&&function(t,e){return $(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){X(this.form,this),this._oldForm&&$(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),i}(H);return t.\u0275fac=function(e){return new(e||t)(n.Y36(A,10),n.Y36(k,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([xt]),n.qOj,n.TTD]}),t}(),It={provide:j,useExisting:(0,n.Gpc)(function(){return Ot})},Ot=function(){var t=function(t){o(i,t);var e=s(i);function i(t,r,o,a,s){var u;return v(this,i),(u=e.call(this))._ngModelWarningConfig=s,u._added=!1,u.update=new n.vpe,u._ngModelWarningSent=!1,u._parent=t,u._setValidators(r),u._setAsyncValidators(o),u.valueAccessor=rt(0,a),u}return y(i,[{key:"isDisabled",set:function(t){}},{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),it(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"path",get:function(){return K(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),i}(j);return t.\u0275fac=function(e){return new(e||t)(n.Y36(H,13),n.Y36(A,10),n.Y36(k,10),n.Y36(p,10),n.Y36(Ct,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n._Bn([It]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t}(),Pt={provide:p,useExisting:(0,n.Gpc)(function(){return Mt}),multi:!0};function Dt(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var Mt=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._optionMap=new Map,t._idCounter=0,t._compareWith=Object.is,t}return y(i,[{key:"compareWith",set:function(t){this._compareWith=t}},{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this.setProperty("selectedIndex",-1);var i=Dt(e,t);this.setProperty("value",i)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(i){e.value=e._getOptionValue(i),t(e.value)}}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,i=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(i){var n=[];if(void 0!==i.selectedOptions)for(var r=i.selectedOptions,o=0;o1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),r=null,o=null;return null!=i&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(i)?(r=null!=i.validators?i.validators:null,o=null!=i.asyncValidators?i.asyncValidators:null,e=null!=i.updateOn?i.updateOn:void 0):(r=null!=i.validator?i.validator:null,o=null!=i.asyncValidator?i.asyncValidator:null)),new ft(n,{asyncValidators:o,updateOn:e,validators:r})}},{key:"control",value:function(t,e,i){return new dt(t,e,i)}},{key:"array",value:function(t,e,i){var n=this,r=t.map(function(t){return n._createControl(t)});return new pt(r,e,i)}},{key:"_reduceControls",value:function(t){var e=this,i={};return Object.keys(t).forEach(function(n){i[n]=e._createControl(t[n])}),i}},{key:"_createControl",value:function(t){return t instanceof dt||t instanceof ft||t instanceof pt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:Kt}),t}()},40084:function(t,e,i){"use strict";i.d(e,{XC:function(){return q},Bb:function(){return V},ZL:function(){return Y}});var n=i(24621),r=i(19861),a=i(11353),u=i(31572),c=i(71522),l=i(87570),h=i(55959),f=i(31450),p=i(31906),g=i(40878),m=i(87254),b=i(61511),w=i(2522),_=i(4253),A=i(75842),k=i(26899),T=i(16073),C=i(66283),S=i(90611),E=i(44689),x=i(43835),R=i(79996),I=i(66599),O=i(82628),P=i(22526),D=["panel"];function M(t,e){if(1&t&&(u.TgZ(0,"div",0,1),u.Hsn(2),u.qZA()),2&t){var i=e.id,n=u.oxw();u.Q6J("id",n.id)("ngClass",n._classList),u.uIk("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(i))}}var L=["*"],N=0,z=function t(e,i){v(this,t),this.source=e,this.option=i},F=(0,c.Kr)(function t(){v(this,t)}),Z=new u.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),B=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this))._changeDetectorRef=t,a._elementRef=n,a._activeOptionChanges=l.w.EMPTY,a.showPanel=!1,a._isOpen=!1,a.displayWith=null,a.optionSelected=new u.vpe,a.opened=new u.vpe,a.closed=new u.vpe,a.optionActivated=new u.vpe,a._classList={},a.id="mat-autocomplete-"+N++,a.inertGroups=(null==o?void 0:o.SAFARI)||!1,a._autoActiveFirstOption=!!r.autoActiveFirstOption,a}return y(i,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=(0,r.Ig)(t)}},{key:"classList",set:function(t){this._classList=t&&t.length?(0,r.du)(t).reduce(function(t,e){return t[e]=!0,t},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new n.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(e){t.optionActivated.emit({source:t,option:t.options.toArray()[e]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(t){var e=new z(this,t);this.optionSelected.emit(e)}},{key:"_getPanelAriaLabelledby",value:function(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_setVisibilityClasses",value:function(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}]),i}(F);return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.sBO),u.Y36(u.SBq),u.Y36(Z),u.Y36(a.t4))},t.\u0275dir=u.lG2({type:t,viewQuery:function(t,e){var i;(1&t&&(u.Gf(u.Rgc,7),u.Gf(D,5)),2&t)&&(u.iGM(i=u.CRH())&&(e.template=i.first),u.iGM(i=u.CRH())&&(e.panel=i.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[u.qOj]}),t}(),q=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._visibleClass="mat-autocomplete-visible",t._hiddenClass="mat-autocomplete-hidden",t}return i}(B);return e.\u0275fac=function(i){return(t||(t=u.n5z(e)))(i||e)},e.\u0275cmp=u.Xpm({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var n;(1&t&&(u.Suo(i,c.K7,5),u.Suo(i,c.ey,5)),2&t)&&(u.iGM(n=u.CRH())&&(e.optionGroups=n),u.iGM(n=u.CRH())&&(e.options=n))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[u._Bn([{provide:c.HF,useExisting:e}]),u.qOj],ngContentSelectors:L,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(u.F$t(),u.YNc(0,M,3,4,"ng-template"))},directives:[b.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),e}(),U=new u.OlP("mat-autocomplete-scroll-strategy"),H={provide:U,deps:[w.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},j={provide:T.JU,useExisting:(0,u.Gpc)(function(){return Y}),multi:!0},G=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c,g,m){var y=this;v(this,t),this._element=e,this._overlay=i,this._viewContainerRef=n,this._zone=r,this._changeDetectorRef=o,this._dir=s,this._formField=u,this._document=c,this._viewportRuler=g,this._defaults=m,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=l.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new h.xQ,this._windowBlurHandler=function(){y._canOpenOnNextFocus=y._document.activeElement!==y._element.nativeElement||y.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,f.P)(function(){return y.autocomplete&&y.autocomplete.options?p.T.apply(void 0,d(y.autocomplete.options.map(function(t){return t.onSelectionChange}))):y._zone.onStable.pipe((0,S.q)(1),(0,E.w)(function(){return y.optionSelections}))}),this._scrollStrategy=a}return y(t,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=(0,r.Ig)(t)}},{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(function(){return e.addEventListener("blur",t._windowBlurHandler)})}},{key:"ngOnChanges",value:function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var t=this;return(0,p.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,x.h)(function(){return t._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,x.h)(function(){return t._overlayAttached})):(0,g.of)()).pipe((0,R.U)(function(t){return t instanceof c.rN?t:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var t=this;return(0,p.T)((0,m.R)(this._document,"click"),(0,m.R)(this._document,"auxclick"),(0,m.R)(this._document,"touchend")).pipe((0,x.h)(function(e){var i=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,n=t._formField?t._formField._elementRef.nativeElement:null,r=t.connectedTo?t.connectedTo.elementRef.nativeElement:null;return t._overlayAttached&&i!==t._element.nativeElement&&(!n||!n.contains(i))&&(!r||!r.contains(i))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(i)}))}},{key:"writeValue",value:function(t){var e=this;Promise.resolve(null).then(function(){return e._setTriggerValue(t)})}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this._element.nativeElement.disabled=t}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;if(e!==A.hY||(0,A.Vb)(t)||t.preventDefault(),this.activeOption&&e===A.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var i=this.autocomplete._keyManager.activeItem,n=e===A.LH||e===A.JH;this.panelOpen||e===A.Mf?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(t){var e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var t=this,e=this._zone.onStable.pipe((0,S.q)(1)),i=this.autocomplete.options.changes.pipe((0,I.b)(function(){return t._positionStrategy.reapplyLastPosition()}),(0,O.g)(0));return(0,p.T)(e,i).pipe((0,E.w)(function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions}),(0,S.q)(1)).subscribe(function(e){return t._setValueAndClose(e)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}},{key:"_setValueAndClose",value:function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(t){this.autocomplete.options.forEach(function(e){e!==t&&e.selected&&e.deselect()})}},{key:"_attachOverlay",value:function(){var t,e=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!(0,a.kV)(this._element.nativeElement));var i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new k.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,i.keydownEvents().subscribe(function(t){(t.keyCode===A.hY&&!(0,A.Vb)(t)||t.keyCode===A.LH&&(0,A.Vb)(t,"altKey"))&&(e._resetActiveItem(),e._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){e.panelOpen&&i&&i.updateSize({width:e._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var t;return new w.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}},{key:"_setStrategyPositions",value:function(t){var e,i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],n=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:n},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:n}];e="above"===this.position?r:"below"===this.position?i:[].concat(i,r),t.withPositions(e)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}},{key:"_scrollToOption",value:function(t){var e=this.autocomplete,i=(0,c.CB)(t,e.options,e.optionGroups);if(0===t&&1===i)e._setScrollTop(0);else if(e.panel){var n=e.options.toArray()[t];if(n){var r=n._getHostElement(),o=(0,c.jH)(r.offsetTop,r.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(o)}}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.SBq),u.Y36(w.aV),u.Y36(u.s_b),u.Y36(u.R0b),u.Y36(u.sBO),u.Y36(U),u.Y36(P.Is,8),u.Y36(C.G_,9),u.Y36(b.K0,8),u.Y36(_.rL),u.Y36(Z,8))},t.\u0275dir=u.lG2({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[u.TTD]}),t}(),Y=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",t}return i}(G);return e.\u0275fac=function(i){return(t||(t=u.n5z(e)))(i||e)},e.\u0275dir=u.lG2({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&u.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&u.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[u._Bn([j]),u.qOj]}),e}(),V=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({providers:[H],imports:[[w.U8,c.Ng,c.BQ,b.ez],_.ZD,c.Ng,c.BQ]}),t}()},41050:function(t,e,i){"use strict";i.d(e,{k:function(){return d},g:function(){return f}});var n=i(71522),r=i(24621),a=i(19861),u=i(43490),c=i(31572),l=0,h=(0,n.Id)(function t(){v(this,t)}),d=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o,a){var s;return v(this,i),(s=e.call(this))._ngZone=t,s._elementRef=n,s._ariaDescriber=r,s._renderer=o,s._animationMode=a,s._hasContent=!1,s._color="primary",s._overlap=!0,s.position="above after",s.size="medium",s._id=l++,s}return y(i,[{key:"color",get:function(){return this._color},set:function(t){this._setColor(t),this._color=t}},{key:"overlap",get:function(){return this._overlap},set:function(t){this._overlap=(0,a.Ig)(t)}},{key:"description",get:function(){return this._description},set:function(t){if(t!==this._description){var e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}},{key:"hidden",get:function(){return this._hidden},set:function(t){this._hidden=(0,a.Ig)(t)}},{key:"isAbove",value:function(){return-1===this.position.indexOf("below")}},{key:"isAfter",value:function(){return-1===this.position.indexOf("before")}},{key:"ngOnChanges",value:function(t){var e=t.content;if(e){var i=e.currentValue;this._hasContent=null!=i&&"".concat(i).trim().length>0,this._updateTextContent()}}},{key:"ngOnDestroy",value:function(){var t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}},{key:"getBadgeElement",value:function(){return this._badgeElement}},{key:"_updateTextContent",value:function(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}},{key:"_createBadgeElement",value:function(){var t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id","mat-badge-content-".concat(this._id)),t.classList.add("mat-badge-content"),t.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){t.classList.add("mat-badge-active")})}):t.classList.add("mat-badge-active"),t}},{key:"_updateHostAriaDescription",value:function(t,e){var i=this._updateTextContent();e&&this._ariaDescriber.removeDescription(i,e),t&&this._ariaDescriber.describe(i,t)}},{key:"_setColor",value:function(t){if(t!==this._color){var e=this._elementRef.nativeElement.classList;this._color&&e.remove("mat-badge-".concat(this._color)),t&&e.add("mat-badge-".concat(t))}}},{key:"_clearExistingBadges",value:function(t){for(var e=this._elementRef.nativeElement,i=e.children.length;i--;){var n=e.children[i];n.classList.contains(t)&&e.removeChild(n)}}},{key:"_stringifyContent",value:function(){var t=this.content;return null==t?"":"".concat(t)}}]),i}(h);return t.\u0275fac=function(e){return new(e||t)(c.Y36(c.R0b),c.Y36(c.SBq),c.Y36(r.$s),c.Y36(c.Qsj),c.Y36(u.Qb,8))},t.\u0275dir=c.lG2({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&c.ekj("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[c.qOj,c.TTD]}),t}(),f=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[r.rt,n.BQ],n.BQ]}),t}()},15980:function(t,e,i){"use strict";i.d(e,{lW:function(){return p},ot:function(){return g}});var n=i(71522),r=i(43490),a=i(31572),u=i(24621),c=["mat-button",""],l=["*"],h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],d=(0,n.pj)((0,n.Id)((0,n.Kr)(function t(e){v(this,t),this._elementRef=e}))),p=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;v(this,i),(o=e.call(this,t))._focusMonitor=n,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=f(h);try{for(s.s();!(a=s.n()).done;){var u=a.value;o._hasHostAttributes(u)&&o._getHostElement().classList.add(u)}}catch(c){s.e(c)}finally{s.f()}return t.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return y(i,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t}(),g=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[n.si,n.BQ],n.BQ]}),t}()},27439:function(t,e,i){"use strict";i.d(e,{a8:function(){return p},kc:function(){return f},dn:function(){return l},dk:function(){return g},QW:function(){return m},$j:function(){return d},n5:function(){return h}});var n=i(43490),r=i(71522),o=i(31572),a=["*",[["mat-card-footer"]]],s=["*","mat-card-footer"],u=[[["","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]","*"],l=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t}(),h=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t}(),d=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t}(),f=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t}(),p=function(){var t=function t(e){v(this,t),this._animationMode=e};return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.Qb,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:s,decls:2,vars:0,template:function(t,e){1&t&&(o.F$t(a),o.Hsn(0),o.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t}(),g=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:c,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(o.F$t(u),o.Hsn(0),o.TgZ(1,"div",0),o.Hsn(2,1),o.qZA(),o.Hsn(3,2))},encapsulation:2,changeDetection:0}),t}(),m=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[r.BQ],r.BQ]}),t}()},29236:function(t,e,i){"use strict";i.d(e,{oG:function(){return T},p9:function(){return S}});var n=i(19861),r=i(31572),a=i(16073),u=i(71522),c=i(43490),l=i(36337),h=i(24621),d=["input"],f=function(t){return{enterDuration:t}},p=["*"],g=new r.OlP("mat-checkbox-default-options",{providedIn:"root",factory:m});function m(){return{color:"accent",clickAction:"check-indeterminate"}}var b=0,w={color:"accent",clickAction:"check-indeterminate"},_={provide:a.JU,useExisting:(0,r.Gpc)(function(){return T}),multi:!0},A=function t(){v(this,t)},k=(0,u.sb)((0,u.pj)((0,u.Kr)((0,u.Id)(function t(e){v(this,t),this._elementRef=e})))),T=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,o,a,s,u,c){var l;return v(this,i),(l=e.call(this,t))._changeDetectorRef=n,l._focusMonitor=o,l._ngZone=a,l._animationMode=u,l._options=c,l.ariaLabel="",l.ariaLabelledby=null,l._uniqueId="mat-checkbox-"+ ++b,l.id=l._uniqueId,l.labelPosition="after",l.name=null,l.change=new r.vpe,l.indeterminateChange=new r.vpe,l._onTouched=function(){},l._currentAnimationClass="",l._currentCheckState=0,l._controlValueAccessorChangeFn=function(){},l._checked=!1,l._disabled=!1,l._indeterminate=!1,l._options=l._options||w,l.color=l.defaultColor=l._options.color||w.color,l.tabIndex=parseInt(s)||0,l}return y(i,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(t){this._required=(0,n.Ig)(t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){e||Promise.resolve().then(function(){t._onTouched(),t._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){var e=(0,n.Ig)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=(0,n.Ig)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(t){var e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);var n=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){i.classList.remove(n)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var t=new A;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(t){var e,i=this,n=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===n?this.disabled||"noop"!==n||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==n&&Promise.resolve().then(function(){i._indeterminate=!1,i.indeterminateChange.emit(i._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}},{key:"_onInteractionEvent",value:function(t){t.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(t,e){if("NoopAnimations"===this._animationMode)return"";var i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(i)}},{key:"_syncIndeterminate",value:function(t){var e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}]),i}(k);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(h.tE),r.Y36(r.R0b),r.$8M("tabindex"),r.Y36(c.Qb,8),r.Y36(g,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;(1&t&&(r.Gf(d,5),r.Gf(u.wG,5)),2&t)&&(r.iGM(i=r.CRH())&&(e._inputElement=i.first),r.iGM(i=r.CRH())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Ikx("id",e.id),r.uIk("tabindex",null),r.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[r._Bn([_]),r.qOj],ngContentSelectors:p,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",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(t,e){if(1&t&&(r.F$t(),r.TgZ(0,"label",0,1),r.TgZ(2,"span",2),r.TgZ(3,"input",3,4),r.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),r.qZA(),r.TgZ(5,"span",5),r._UZ(6,"span",6),r.qZA(),r._UZ(7,"span",7),r.TgZ(8,"span",8),r.O4$(),r.TgZ(9,"svg",9),r._UZ(10,"path",10),r.qZA(),r.kcU(),r._UZ(11,"span",11),r.qZA(),r.qZA(),r.TgZ(12,"span",12,13),r.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),r.TgZ(14,"span",14),r._uU(15,"\xa0"),r.qZA(),r.Hsn(16),r.qZA(),r.qZA()),2&t){var i=r.MAs(1),n=r.MAs(13);r.uIk("for",e.inputId),r.xp6(2),r.ekj("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),r.xp6(1),r.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),r.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),r.xp6(2),r.Q6J("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",r.VKq(19,f,"NoopAnimations"===e._animationMode?0:150))}},directives:[u.wG,l.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t}(),C=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}(),S=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[u.si,u.BQ,l.Q8,C],u.BQ,C]}),t}()},10033:function(t,e,i){"use strict";i.d(e,{HS:function(){return O},oH:function(){return F},qn:function(){return N},Hi:function(){return B}});var n=i(75842),r=i(31572),a=i(71522),u=i(19861),l=i(61511),h=i(43490),f=i(55959),p=i(31906),g=i(90611),m=i(25416),b=i(56238),w=i(24621),_=i(4230),A=i(66283),k=i(11353),T=i(22526),C=i(16073),S=["*"],E=new r.OlP("MatChipRemove"),x=new r.OlP("MatChipAvatar"),R=new r.OlP("MatChipTrailingIcon"),I=(0,a.sb)((0,a.pj)((0,a.Kr)(function t(e){v(this,t),this._elementRef=e}),"primary"),-1),O=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,o,s,u,l,h,d){var p;return v(this,i),(p=e.call(this,t))._elementRef=t,p._ngZone=n,p._changeDetectorRef=u,p._hasFocus=!1,p.chipListSelectable=!0,p._chipListMultiple=!1,p._chipListDisabled=!1,p._selected=!1,p._selectable=!0,p._disabled=!1,p._removable=!0,p._onFocus=new f.xQ,p._onBlur=new f.xQ,p.selectionChange=new r.vpe,p.destroyed=new r.vpe,p.removed=new r.vpe,p._addHostClassName(),p._chipRippleTarget=l.createElement("div"),p._chipRippleTarget.classList.add("mat-chip-ripple"),p._elementRef.nativeElement.appendChild(p._chipRippleTarget),p._chipRipple=new a.IR(c(p),n,p._chipRippleTarget,o),p._chipRipple.setupTriggerEvents(t),p.rippleConfig=s||{},p._animationsDisabled="NoopAnimations"===h,p.tabIndex=null!=d&&parseInt(d)||-1,p}return y(i,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(t){var e=(0,u.Ig)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=(0,u.Ig)(t)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(t){this._disabled=(0,u.Ig)(t)}},{key:"removable",get:function(){return this._removable},set:function(t){this._removable=(0,u.Ig)(t)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(t){this.disabled?t.preventDefault():t.stopPropagation()}},{key:"_handleKeydown",value:function(t){if(!this.disabled)switch(t.keyCode){case n.yY:case n.ZH:this.remove(),t.preventDefault();break;case n.L_:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}},{key:"_blur",value:function(){var t=this;this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(function(){t._ngZone.run(function(){t._hasFocus=!1,t._onBlur.next({chip:t})})})}},{key:"_dispatchSelectionChange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}]),i}(I);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(k.t4),r.Y36(a.Y2,8),r.Y36(r.sBO),r.Y36(l.K0),r.Y36(h.Qb,8),r.$8M("tabindex"))},t.\u0275dir=r.lG2({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){var n;(1&t&&(r.Suo(i,x,5),r.Suo(i,R,5),r.Suo(i,E,5)),2&t)&&(r.iGM(n=r.CRH())&&(e.avatar=n.first),r.iGM(n=r.CRH())&&(e.trailingIcon=n.first),r.iGM(n=r.CRH())&&(e.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(r.uIk("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),r.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",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[r.qOj]}),t}(),P=new r.OlP("mat-chips-default-options"),D=(0,a.FD)(function t(e,i,n,r){v(this,t),this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=r}),M=0,L=function t(e,i){v(this,t),this.source=e,this.value=i},N=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,o,a,s,u,l){var h;return v(this,i),(h=e.call(this,u,a,s,l))._elementRef=t,h._changeDetectorRef=n,h._dir=o,h.ngControl=l,h.controlType="mat-chip-list",h._lastDestroyedChipIndex=null,h._destroyed=new f.xQ,h._uid="mat-chip-list-"+M++,h._tabIndex=0,h._userTabIndex=null,h._onTouched=function(){},h._onChange=function(){},h._multiple=!1,h._compareWith=function(t,e){return t===e},h._required=!1,h._disabled=!1,h.ariaOrientation="horizontal",h._selectable=!0,h.change=new r.vpe,h.valueChange=new r.vpe,h.ngControl&&(h.ngControl.valueAccessor=c(h)),h}return y(i,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=(0,u.Ig)(t),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=(0,u.Ig)(t),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=(0,u.Ig)(t),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(t){var e=this;this._selectable=(0,u.Ig)(t),this.chips&&this.chips.forEach(function(t){return t.chipListSelectable=e._selectable})}},{key:"tabIndex",set:function(t){this._userTabIndex=t,this._tabIndex=t}},{key:"chipSelectionChanges",get:function(){return p.T.apply(void 0,d(this.chips.map(function(t){return t.selectionChange})))}},{key:"chipFocusChanges",get:function(){return p.T.apply(void 0,d(this.chips.map(function(t){return t._onFocus})))}},{key:"chipBlurChanges",get:function(){return p.T.apply(void 0,d(this.chips.map(function(t){return t._onBlur})))}},{key:"chipRemoveChanges",get:function(){return p.T.apply(void 0,d(this.chips.map(function(t){return t.destroyed})))}},{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new w.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,m.R)(this._destroyed)).subscribe(function(e){return t._keyManager.withHorizontalOrientation(e)}),this._keyManager.tabOut.pipe((0,m.R)(this._destroyed)).subscribe(function(){t._allowFocusEscape()}),this.chips.changes.pipe((0,b.O)(null),(0,m.R)(this._destroyed)).subscribe(function(){t.disabled&&Promise.resolve().then(function(){t._syncChipsState()}),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new _.Ov(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"writeValue",value:function(t){this.chips&&this._setSelectionByValue(t,!1)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this.stateChanges.next()}},{key:"onContainerClick",value:function(t){this._originatesFromChip(t)||this.focus()}},{key:"focus",value:function(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}},{key:"_focusInput",value:function(t){this._chipInput&&this._chipInput.focus(t)}},{key:"_keydown",value:function(t){var e=t.target;e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(t){return t>=0&&t1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(t){return t.deselect()}),Array.isArray(t))t.forEach(function(t){return e._selectValue(t,i)}),this._sortValues();else{var n=this._selectValue(t,i);n&&i&&this._keyManager.setActiveItem(n)}}},{key:"_selectValue",value:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.chips.find(function(i){return null!=i.value&&e._compareWith(i.value,t)});return n&&(i?n.selectViaInteraction():n.select(),this._selectionModel.select(n)),n}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())})}},{key:"_clearSelection",value:function(t){this._selectionModel.clear(),this.chips.forEach(function(e){e!==t&&e.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(e){e.selected&&t._selectionModel.select(e)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(t){var e;e=Array.isArray(this.selected)?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.change.emit(new L(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var t=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){t.focused||t._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var t=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){t._tabIndex=t._userTabIndex||0,t._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){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)}},{key:"_listenToChipsSelection",value:function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach(function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()}),e.isUserInput&&t._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(e){var i=t.chips.toArray().indexOf(e.chip);t._isValidIndex(i)&&t._keyManager.updateActiveItem(i),t.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){t._blur(),t.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(e){var i=e.chip,n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&i._hasFocus&&(t._lastDestroyedChipIndex=n)})}},{key:"_originatesFromChip",value:function(t){for(var e=t.target;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(t){return t._hasFocus})}},{key:"_syncChipsState",value:function(){var t=this;this.chips&&this.chips.forEach(function(e){e._chipListDisabled=t._disabled,e._chipListMultiple=t.multiple})}}]),i}(D);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(T.Is,8),r.Y36(C.F,8),r.Y36(C.sg,8),r.Y36(a.rD),r.Y36(C.a5,10))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){var n;(1&t&&r.Suo(i,O,5),2&t)&&(r.iGM(n=r.CRH())&&(e.chips=n))},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&r.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(r.Ikx("id",e._uid),r.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("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),r.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[r._Bn([{provide:A.Eo,useExisting:t}]),r.qOj],ngContentSelectors:S,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.Hsn(1),r.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t}(),z=0,F=function(){var t=function(){function t(e,i){v(this,t),this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new r.vpe,this.placeholder="",this.id="mat-chip-list-input-"+z++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return y(t,[{key:"chipList",set:function(t){t&&(this._chipList=t,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(t){this._addOnBlur=(0,u.Ig)(t)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(t){this._disabled=(0,u.Ig)(t)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(t){if(t){if(t.keyCode!==n.Mf||(0,n.Vb)(t,"shiftKey")||this._chipList._allowFocusEscape(),t.keyCode===n.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}},{key:"_keyup",value:function(t){!this._focusLastChipOnBackspace&&t.keyCode===n.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(t){!this.inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==t||t.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(t){this.inputElement.focus(t)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(t){return!(0,n.Vb)(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(P))},t.\u0275dir=r.lG2({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&r.NdJ("keydown",function(t){return e._keydown(t)})("keyup",function(t){return e._keyup(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(r.Ikx("id",e.id),r.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:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[r.TTD]}),t}(),Z={separatorKeyCodes:[n.K5]},B=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[a.rD,{provide:P,useValue:Z}],imports:[[a.BQ]]}),t}()},71522:function(t,e,i){"use strict";i.d(e,{yN:function(){return C},mZ:function(){return S},_A:function(){return F},rD:function(){return J},sG:function(){return Z},K7:function(){return gt},HF:function(){return ht},Y2:function(){return at},BQ:function(){return R},X2:function(){return Q},uc:function(){return $},XK:function(){return K},ey:function(){return bt},Ng:function(){return At},rN:function(){return mt},nP:function(){return ct},us:function(){return lt},wG:function(){return st},si:function(){return ut},LF:function(){return G},IR:function(){return ot},CB:function(){return wt},jH:function(){return _t},pj:function(){return O},Kr:function(){return P},Id:function(){return I},FD:function(){return M},dB:function(){return L},sb:function(){return D},E0:function(){return W}});var r=i(31572),a=i(24621),u=i(22526),l=new r.GfV("12.0.5"),d=i(61511),f=i(19861),p=i(55959),g=i(48318),m=i(11353),b=i(56238),w=i(43490),_=i(75842);function A(t,e){if(1&t&&r._UZ(0,"mat-pseudo-checkbox",4),2&t){var i=r.oxw();r.Q6J("state",i.selected?"checked":"unchecked")("disabled",i.disabled)}}function k(t,e){if(1&t&&(r.TgZ(0,"span",5),r._uU(1),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.hij("(",i.group.label,")")}}var T=["*"],C=function(){var t=function t(){v(this,t)};return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t}(),S=function(){var t=function t(){v(this,t)};return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t}(),E=new r.GfV("12.0.5"),x=new r.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),R=function(){var t=function(){function t(e,i,n){v(this,t),this._hasDoneGlobalChecks=!1,this._document=n,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return y(t,[{key:"_getWindow",value:function(){var t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return(0,r.X6Q)()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&E.full!==l.full&&console.warn("The Angular Material version ("+E.full+") does not match the Angular CDK version ("+l.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(a.qm),r.LFG(x,8),r.LFG(d.K0))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[u.vT],u.vT]}),t}();function I(t){return function(t){o(i,t);var e=s(i);function i(){var t;v(this,i);for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:0;return function(t){o(n,t);var i=s(n);function n(){var t;v(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0?i:t}}]),t}(),Z=new r.OlP("mat-date-formats");try{N="undefined"!=typeof Intl}catch(kt){N=!1}var B={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},q=j(31,function(t){return String(t+1)}),U={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},H=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function j(t,e){for(var i=Array(t),n=0;n9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});var i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}},{key:"addCalendarYears",value:function(t,e){return this.addCalendarMonths(t,12*e)}},{key:"addCalendarMonths",value:function(t,e){var i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}},{key:"addCalendarDays",value:function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}},{key:"toIso8601",value:function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}},{key:"deserialize",value:function(t){if("string"==typeof t){if(!t)return null;if(H.test(t)){var e=new Date(t);if(this.isValid(e))return e}}return n(h(i.prototype),"deserialize",this).call(this,t)}},{key:"isDateInstance",value:function(t){return t instanceof Date}},{key:"isValid",value:function(t){return!isNaN(t.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(t,e,i){var n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}},{key:"_2digit",value:function(t){return("00"+t).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(t){return t.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(t,e){var i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}]),i}(F);return t.\u0275fac=function(e){return new(e||t)(r.LFG(z,8),r.LFG(m.t4))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),Y=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[{provide:F,useClass:G}],imports:[[m.ud]]}),t}(),V={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"}}},K=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[{provide:Z,useValue:V}],imports:[[Y]]}),t}(),J=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Q=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t}();function W(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";t.changes.pipe((0,b.O)(t)).subscribe(function(t){var n=t.length;X(e,"".concat(i,"-2-line"),!1),X(e,"".concat(i,"-3-line"),!1),X(e,"".concat(i,"-multi-line"),!1),2===n||3===n?X(e,"".concat(i,"-").concat(n,"-line"),!0):n>3&&X(e,"".concat(i,"-multi-line"),!0)})}function X(t,e,i){var n=t.nativeElement.classList;i?n.add(e):n.remove(e)}var $=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[R],R]}),t}(),tt=function(){function t(e,i,n){v(this,t),this._renderer=e,this.element=i,this.config=n,this.state=3}return y(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),et={enterDuration:450,exitDuration:400},it=(0,m.i$)({passive:!0}),nt=["mousedown","touchstart"],rt=["mouseup","mouseleave","touchend","touchcancel"],ot=function(){function t(e,i,n,r){v(this,t),this._target=e,this._ngZone=i,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=(0,f.fI)(n))}return y(t,[{key:"fadeInRipple",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},et),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var a=n.radius||function(t,e,i){var n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}(t,e,r),s=t-r.left,u=e-r.top,c=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-a+"px",l.style.top=u-a+"px",l.style.height=2*a+"px",l.style.width=2*a+"px",null!=n.color&&(l.style.backgroundColor=n.color),l.style.transitionDuration="".concat(c,"ms"),this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";var h=new tt(this,l,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var t=h===i._mostRecentTransientRipple;h.state=1,n.persistent||t&&i._isPointerDown||h.fadeOut()},c),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var i=t.element,n=Object.assign(Object.assign({},et),t.config.animation);i.style.transitionDuration="".concat(n.exitDuration,"ms"),i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var e=(0,f.fI)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(nt))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(rt),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=(0,a.X6)(t),i=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(t){e._triggerElement.addEventListener(t,e,it)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(nt.forEach(function(e){t._triggerElement.removeEventListener(e,t,it)}),this._pointerUpEventsRegistered&&rt.forEach(function(e){t._triggerElement.removeEventListener(e,t,it)}))}}]),t}(),at=new r.OlP("mat-ripple-global-options"),st=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new ot(this,i,e,n)}return y(t,[{key:"disabled",get:function(){return this._disabled},set:function(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(m.t4),r.Y36(at,8),r.Y36(w.Qb,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t}(),ut=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[R,m.ud],R]}),t}(),ct=function(){var t=function t(e){v(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1};return t.\u0275fac=function(e){return new(e||t)(r.Y36(w.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&r.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t}(),lt=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[R]]}),t}(),ht=new r.OlP("MAT_OPTION_PARENT_COMPONENT"),dt=I(function t(){v(this,t)}),ft=0,pt=function(){var t=function(t){o(i,t);var e=s(i);function i(t){var n,r;return v(this,i),(n=e.call(this))._labelId="mat-optgroup-label-"+ft++,n._inert=null!==(r=null==t?void 0:t.inertGroups)&&void 0!==r&&r,n}return i}(dt);return t.\u0275fac=function(e){return new(e||t)(r.Y36(ht,8))},t.\u0275dir=r.lG2({type:t,inputs:{label:"label"},features:[r.qOj]}),t}(),gt=new r.OlP("MatOptgroup"),vt=0,mt=function t(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];v(this,t),this.source=e,this.isUserInput=i},yt=function(){var t=function(){function t(e,i,n,o){v(this,t),this._element=e,this._changeDetectorRef=i,this._parent=n,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+vt++,this.onSelectionChange=new r.vpe,this._stateChanges=new p.xQ}return y(t,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=(0,f.Ig)(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){t.keyCode!==_.K5&&t.keyCode!==_.L_||(0,_.Vb)(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new mt(this,t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(void 0),r.Y36(pt))},t.\u0275dir=r.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t}(),bt=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o){return v(this,i),e.call(this,t,n,r,o)}return i}(yt);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(ht,8),r.Y36(gt,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&r.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(r.Ikx("id",e.id),r.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),r.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[r.qOj],ngContentSelectors:T,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(t,e){1&t&&(r.F$t(),r.YNc(0,A,1,2,"mat-pseudo-checkbox",0),r.TgZ(1,"span",1),r.Hsn(2),r.qZA(),r.YNc(3,k,2,1,"span",2),r._UZ(4,"div",3)),2&t&&(r.Q6J("ngIf",e.multiple),r.xp6(3),r.Q6J("ngIf",e.group&&e.group._inert),r.xp6(1),r.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[d.O5,st,ct],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t}();function wt(t,e,i){if(i.length){for(var n=e.toArray(),r=i.toArray(),o=0,a=0;ai+n?Math.max(0,t-n+e):i}var At=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[ut,d.ez,R,lt]]}),t}()},15812:function(t,e,i){"use strict";i.d(e,{Mq:function(){return kt},hl:function(){return xt},FA:function(){return Ot},nW:function(){return It}});var r=i(24621),a=i(2522),u=i(26899),l=i(61511),d=i(31572),f=i(15980),p=i(4253),g=i(71522),m=i(55959),b=i(87570),w=i(31906),_=i(40878),A=i(75842),k=i(90611),T=i(56238),C=i(43835),S=i(19861),E=i(11353),x=i(10709),R=i(16073),I=i(66283),O=i(80340),P=i(22526),D=["mat-calendar-body",""];function M(t,e){if(1&t&&(d.TgZ(0,"tr",2),d.TgZ(1,"td",3),d._uU(2),d.qZA(),d.qZA()),2&t){var i=d.oxw();d.xp6(1),d.Udp("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),d.uIk("colspan",i.numCols),d.xp6(1),d.hij(" ",i.label," ")}}function L(t,e){if(1&t&&(d.TgZ(0,"td",7),d._uU(1),d.qZA()),2&t){var i=d.oxw(2);d.Udp("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),d.uIk("colspan",i._firstRowOffset),d.xp6(1),d.hij(" ",i._firstRowOffset>=i.labelMinRequiredCells?i.label:""," ")}}function N(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"td",8),d.NdJ("click",function(t){var e=d.CHM(i).$implicit;return d.oxw(2)._cellClicked(e,t)}),d.TgZ(1,"div",9),d._uU(2),d.qZA(),d._UZ(3,"div",10),d.qZA()}if(2&t){var n=e.$implicit,r=e.index,o=d.oxw().index,a=d.oxw();d.Udp("width",a._cellWidth)("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),d.ekj("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",a._isActiveCell(o,r))("mat-calendar-body-range-start",a._isRangeStart(n.compareValue))("mat-calendar-body-range-end",a._isRangeEnd(n.compareValue))("mat-calendar-body-in-range",a._isInRange(n.compareValue))("mat-calendar-body-comparison-bridge-start",a._isComparisonBridgeStart(n.compareValue,o,r))("mat-calendar-body-comparison-bridge-end",a._isComparisonBridgeEnd(n.compareValue,o,r))("mat-calendar-body-comparison-start",a._isComparisonStart(n.compareValue))("mat-calendar-body-comparison-end",a._isComparisonEnd(n.compareValue))("mat-calendar-body-in-comparison-range",a._isInComparisonRange(n.compareValue))("mat-calendar-body-preview-start",a._isPreviewStart(n.compareValue))("mat-calendar-body-preview-end",a._isPreviewEnd(n.compareValue))("mat-calendar-body-in-preview",a._isInPreview(n.compareValue)),d.Q6J("ngClass",n.cssClasses)("tabindex",a._isActiveCell(o,r)?0:-1),d.uIk("data-mat-row",o)("data-mat-col",r)("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-selected",a._isSelected(n.compareValue)),d.xp6(1),d.ekj("mat-calendar-body-selected",a._isSelected(n.compareValue))("mat-calendar-body-comparison-identical",a._isComparisonIdentical(n.compareValue))("mat-calendar-body-today",a.todayValue===n.compareValue),d.xp6(1),d.hij(" ",n.displayValue," ")}}function z(t,e){if(1&t&&(d.TgZ(0,"tr",4),d.YNc(1,L,2,6,"td",5),d.YNc(2,N,4,46,"td",6),d.qZA()),2&t){var i=e.$implicit,n=e.index,r=d.oxw();d.xp6(1),d.Q6J("ngIf",0===n&&r._firstRowOffset),d.xp6(1),d.Q6J("ngForOf",i)}}function F(t,e){if(1&t&&(d.TgZ(0,"th",5),d._uU(1),d.qZA()),2&t){var i=e.$implicit;d.uIk("aria-label",i.long),d.xp6(1),d.Oqu(i.narrow)}}var Z=["*"];function B(t,e){}function q(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"mat-month-view",5),d.NdJ("activeDateChange",function(t){return d.CHM(i),d.oxw().activeDate=t})("_userSelection",function(t){return d.CHM(i),d.oxw()._dateSelected(t)}),d.qZA()}if(2&t){var n=d.oxw();d.Q6J("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)}}function U(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"mat-year-view",6),d.NdJ("activeDateChange",function(t){return d.CHM(i),d.oxw().activeDate=t})("monthSelected",function(t){return d.CHM(i),d.oxw()._monthSelectedInYearView(t)})("selectedChange",function(t){return d.CHM(i),d.oxw()._goToDateInView(t,"month")}),d.qZA()}if(2&t){var n=d.oxw();d.Q6J("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function H(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"mat-multi-year-view",7),d.NdJ("activeDateChange",function(t){return d.CHM(i),d.oxw().activeDate=t})("yearSelected",function(t){return d.CHM(i),d.oxw()._yearSelectedInMultiYearView(t)})("selectedChange",function(t){return d.CHM(i),d.oxw()._goToDateInView(t,"year")}),d.qZA()}if(2&t){var n=d.oxw();d.Q6J("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function j(t,e){}var G=["button"];function Y(t,e){1&t&&(d.O4$(),d.TgZ(0,"svg",3),d._UZ(1,"path",4),d.qZA())}var V=[[["","matDatepickerToggleIcon",""]]],K=["[matDatepickerToggleIcon]"],J=function(){var t=function(){function t(){v(this,t),this.changes=new m.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return y(t,[{key:"formatYearRange",value:function(t,e){return"".concat(t," \u2013 ").concat(e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=d.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Q=function t(e,i,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6?arguments[6]:void 0;v(this,t),this.value=e,this.displayValue=i,this.ariaLabel=n,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s},W=function(){var t=function(){function t(e,i){var n=this;v(this,t),this._elementRef=e,this._ngZone=i,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new d.vpe,this.previewChange=new d.vpe,this._enterHandler=function(t){if(n._skipNextFocus&&"focus"===t.type)n._skipNextFocus=!1;else if(t.target&&n.isRange){var e=n._getCellFromElement(t.target);e&&n._ngZone.run(function(){return n.previewChange.emit({value:e.enabled?e:null,event:t})})}},this._leaveHandler=function(t){null!==n.previewEnd&&n.isRange&&t.target&&X(t.target)&&n._ngZone.run(function(){return n.previewChange.emit({value:null,event:t})})},i.runOutsideAngular(function(){var t=e.nativeElement;t.addEventListener("mouseenter",n._enterHandler,!0),t.addEventListener("focus",n._enterHandler,!0),t.addEventListener("mouseleave",n._leaveHandler,!0),t.addEventListener("blur",n._leaveHandler,!0)})}return y(t,[{key:"_cellClicked",value:function(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}},{key:"_isSelected",value:function(t){return this.startValue===t||this.endValue===t}},{key:"ngOnChanges",value:function(t){var e=t.numCols,i=this.rows,n=this.numCols;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(t,e){var i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}},{key:"_focusActiveCell",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe((0,k.q)(1)).subscribe(function(){var i=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(t._skipNextFocus=!0),i.focus())})})}},{key:"_isRangeStart",value:function(t){return $(t,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(t){return tt(t,this.startValue,this.endValue)}},{key:"_isInRange",value:function(t){return et(t,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(t){return $(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;var n=this.rows[e][i-1];if(!n){var r=this.rows[e-1];n=r&&r[r.length-1]}return n&&!this._isRangeEnd(n.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;var n=this.rows[e][i+1];if(!n){var r=this.rows[e+1];n=r&&r[0]}return n&&!this._isRangeStart(n.compareValue)}},{key:"_isComparisonEnd",value:function(t){return tt(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(t){return et(t,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}},{key:"_isPreviewStart",value:function(t){return $(t,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(t){return tt(t,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(t){return et(t,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(t){var e;if(X(t)?e=t:X(t.parentNode)&&(e=t.parentNode),e){var i=e.getAttribute("data-mat-row"),n=e.getAttribute("data-mat-col");if(i&&n)return this.rows[parseInt(i)][parseInt(n)]}return null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(d.SBq),d.Y36(d.R0b))},t.\u0275cmp=d.Xpm({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[d.TTD],attrs:D,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"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(d.YNc(0,M,3,6,"tr",0),d.YNc(1,z,3,2,"tr",1)),2&t&&(d.Q6J("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t}();function X(t){return"TD"===t.nodeName}function $(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function et(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}var it=function t(e,i){v(this,t),this.start=e,this.end=i},nt=function(){var t=function(){function t(e,i){v(this,t),this.selection=e,this._adapter=i,this._selectionChanged=new m.xQ,this.selectionChanged=this._selectionChanged,this.selection=e}return y(t,[{key:"updateSelection",value:function(t,e){var i=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:i})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.LFG(void 0),d.LFG(g._A))},t.\u0275prov=d.Yz7({token:t,factory:t.\u0275fac}),t}(),rt=function(){var t=function(t){o(i,t);var e=s(i);function i(t){return v(this,i),e.call(this,null,t)}return y(i,[{key:"add",value:function(t){n(h(i.prototype),"updateSelection",this).call(this,t,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}},{key:"clone",value:function(){var t=new i(this._adapter);return t.updateSelection(this.selection,this),t}}]),i}(nt);return t.\u0275fac=function(e){return new(e||t)(d.LFG(g._A))},t.\u0275prov=d.Yz7({token:t,factory:t.\u0275fac}),t}(),ot={provide:nt,deps:[[new d.FiY,new d.tp0,nt],g._A],useFactory:function(t,e){return t||new rt(e)}},at=new d.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY"),st=function(){var t=function(){function t(e,i,n,r,o){v(this,t),this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=n,this._dir=r,this._rangeStrategy=o,this._rerenderSubscription=b.w.EMPTY,this.selectedChange=new d.vpe,this._userSelection=new d.vpe,this.activeDateChange=new d.vpe,this._activeDate=this._dateAdapter.today()}return y(t,[{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof it?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,T.O)(null)).subscribe(function(){return t._init()})}},{key:"ngOnChanges",value:function(t){var e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(t){var e,i,n=t.value,r=this._dateAdapter.getYear(this.activeDate),o=this._dateAdapter.getMonth(this.activeDate),a=this._dateAdapter.createDate(r,o,n);this._selected instanceof it?(e=this._getDateInCurrentMonth(this._selected.start),i=this._getDateInCurrentMonth(this._selected.end)):e=i=this._getDateInCurrentMonth(this._selected),e===n&&i===n||this.selectedChange.emit(a),this._userSelection.emit({value:a,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,i=this._isRtl();switch(t.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case A.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case A.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case A.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case A.Ku:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case A.VM:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case A.K5:case A.L_:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case A.hY:return void(null==this._previewEnd||(0,A.Vb)(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_init",value:function(){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();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(t){this._matCalendarBody._focusActiveCell(t)}},{key:"_previewChanged",value:function(t){var e=t.event,i=t.value;if(this._rangeStrategy){var n=this._rangeStrategy.createPreview(i?i.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow"),i=this._dateAdapter.getDayOfWeekNames("long").map(function(t,i){return{long:t,narrow:e[i]}});this._weekdays=i.slice(t).concat(i.slice(0,t))}},{key:"_createWeekCells",value:function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}},{key:"_getDateInCurrentMonth",value:function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}},{key:"_hasSameMonthAndYear",value:function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}},{key:"_getCellCompareValue",value:function(t){if(t){var e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(t){t instanceof it?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(d.sBO),d.Y36(g.sG,8),d.Y36(g._A,8),d.Y36(P.Is,8),d.Y36(at,8))},t.\u0275cmp=d.Xpm({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var i;(1&t&&d.Gf(W,5),2&t)&&(d.iGM(i=d.CRH())&&(e._matCalendarBody=i.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:[d.TTD],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(d.TgZ(0,"table",0),d.TgZ(1,"thead",1),d.TgZ(2,"tr"),d.YNc(3,F,2,2,"th",2),d.qZA(),d.TgZ(4,"tr"),d._UZ(5,"th",3),d.qZA(),d.qZA(),d.TgZ(6,"tbody",4),d.NdJ("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),d.qZA(),d.qZA()),2&t&&(d.xp6(3),d.Q6J("ngForOf",e._weekdays),d.xp6(3),d.Q6J("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[l.sg,W],encapsulation:2,changeDetection:0}),t}(),ut=function(){var t=function(){function t(e,i,n){v(this,t),this._changeDetectorRef=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=b.w.EMPTY,this.selectedChange=new d.vpe,this.yearSelected=new d.vpe,this.activeDateChange=new d.vpe,this._activeDate=this._dateAdapter.today()}return y(t,[{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),ct(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof it?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,T.O)(null)).subscribe(function(){return t._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate)-lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var i=0,n=[];i<24;i++)n.push(e+i),4==n.length&&(this._years.push(n.map(function(e){return t._createCellForYear(e)})),n=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(t){var e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));var i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,i=this._isRtl();switch(t.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case A.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case A.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case A.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case A.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case A.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case A.K5:case A.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_getActiveCell",value:function(){return lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(t){var e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new Q(t,i,i,this._shouldEnableYear(t),n)}},{key:"_shouldEnableYear",value:function(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&ti||t===i&&e>n}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(t,e){if(this.minDate){var i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t enter-dropdown",(0,x.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,x.F4)([(0,x.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,x.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,x.eR)("void => enter-dialog",(0,x.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,x.F4)([(0,x.oB)({opacity:0,transform:"scale(0.7)"}),(0,x.oB)({transform:"none",opacity:1})]))),(0,x.eR)("* => void",(0,x.jt)("100ms linear",(0,x.oB)({opacity:0})))]),fadeInCalendar:(0,x.X$)("fadeInCalendar",[(0,x.SB)("void",(0,x.oB)({opacity:0})),(0,x.SB)("enter",(0,x.oB)({opacity:1})),(0,x.eR)("void => *",(0,x.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},mt=0,yt=new d.OlP("mat-datepicker-scroll-strategy"),bt={provide:yt,deps:[a.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},wt=(0,g.pj)(function t(e){v(this,t),this._elementRef=e}),_t=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o,a,s){var u;return v(this,i),(u=e.call(this,t))._changeDetectorRef=n,u._globalModel=r,u._dateAdapter=o,u._rangeSelectionStrategy=a,u._subscriptions=new b.w,u._animationDone=new m.xQ,u._actionsPortal=null,u._closeButtonText=s.closeCalendarLabel,u}return y(i,[{key:"ngOnInit",value:function(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}},{key:"ngAfterViewInit",value:function(){var t=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(t){var e=this._model.selection,i=t.value,n=e instanceof it;if(n&&this._rangeSelectionStrategy){var r=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(r,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model.selection}},{key:"_applyPendingSelection",value:function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}]),i}(wt);return t.\u0275fac=function(e){return new(e||t)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(nt),d.Y36(g._A),d.Y36(at,8),d.Y36(J))},t.\u0275cmp=d.Xpm({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var i;(1&t&&d.Gf(gt,5),2&t)&&(d.iGM(i=d.CRH())&&(e._calendar=i.first))},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&d.WFA("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(d.d8E("@transformPanel",e._animationState),d.ekj("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[d.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",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(t,e){1&t&&(d.TgZ(0,"div",0),d.TgZ(1,"mat-calendar",1),d.NdJ("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),d.qZA(),d.YNc(2,j,0,0,"ng-template",2),d.TgZ(3,"button",3),d.NdJ("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),d._uU(4),d.qZA(),d.qZA()),2&t&&(d.ekj("mat-datepicker-content-container-with-actions",e._actionsPortal),d.xp6(1),d.Q6J("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),d.xp6(1),d.Q6J("cdkPortalOutlet",e._actionsPortal),d.xp6(1),d.ekj("cdk-visually-hidden",!e._closeButtonFocused),d.Q6J("color",e.color||"primary"),d.xp6(1),d.Oqu(e._closeButtonText))},directives:[r.mK,gt,l.mk,u.Pl,f.lW],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[vt.transformPanel,vt.fadeInCalendar]},changeDetection:0}),t}(),At=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c){v(this,t),this._overlay=i,this._ngZone=n,this._viewContainerRef=r,this._dateAdapter=a,this._dir=s,this._model=c,this._inputStateChanges=b.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new d.vpe,this.monthSelected=new d.vpe,this.viewChanged=new d.vpe(!0),this.openedStream=new d.vpe,this.closedStream=new d.vpe,this._opened=!1,this.id="mat-datepicker-"+mt++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new m.xQ,this._scrollStrategy=o}return y(t,[{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(t){this._color=t}},{key:"touchUi",get:function(){return this._touchUi},set:function(t){this._touchUi=(0,S.Ig)(t)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(t){var e=(0,S.Ig)(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(t){this._restoreFocus=(0,S.Ig)(t)}},{key:"panelClass",get:function(){return this._panelClass},set:function(t){this._panelClass=(0,S.du)(t)}},{key:"opened",get:function(){return this._opened},set:function(t){(0,S.Ig)(t)?this.open():this.close()}},{key:"_getMinDate",value:function(){return this.datepickerInput&&this.datepickerInput.min}},{key:"_getMaxDate",value:function(){return this.datepickerInput&&this.datepickerInput.max}},{key:"_getDateFilter",value:function(){return this.datepickerInput&&this.datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(t){var e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){var i=this._overlayRef.getConfig().positionStrategy;i instanceof a._G&&(this._setConnectedPositions(i),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}},{key:"select",value:function(t){this._model.add(t)}},{key:"_selectYear",value:function(t){this.yearSelected.emit(t)}},{key:"_selectMonth",value:function(t){this.monthSelected.emit(t)}},{key:"_viewChanged",value:function(t){this.viewChanged.emit(t)}},{key:"registerInput",value:function(t){var e=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(function(){return e.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(t){this._actionsPortal=t}},{key:"removeActions",value:function(t){t===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,E.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var t=this;if(this._opened){if(this._componentRef){var e=this._componentRef.instance;e._startExitAnimation(),e._animationDone.pipe((0,k.q)(1)).subscribe(function(){return t._destroyOverlay()})}var i=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(i)):i()}}},{key:"_applyPendingSelection",value:function(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}},{key:"_forwardContentValues",value:function(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}},{key:"_openOverlay",value:function(){var t=this;this._destroyOverlay();var e=this.touchUi,i=this.datepickerInput.getOverlayLabelId(),n=new u.C5(_t,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new a.X_({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")})),o=r.overlayElement;o.setAttribute("role","dialog"),i&&o.setAttribute("aria-labelledby",i),e&&o.setAttribute("aria-modal","true"),this._getCloseStream(r).subscribe(function(e){e&&e.preventDefault(),t.close()}),this._componentRef=r.attach(n),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(function(){return r.updatePosition()})}},{key:"_destroyOverlay",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}},{key:"_getDialogStrategy",value:function(){return this._overlay.position().global().centerHorizontally().centerVertically()}},{key:"_getDropdownStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}},{key:"_setConnectedPositions",value:function(t){var e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",r="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:r},{originX:i,originY:r,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:r}])}},{key:"_getCloseStream",value:function(t){var e=this;return(0,w.T)(t.backdropClick(),t.detachments(),t.keydownEvents().pipe((0,C.h)(function(t){return t.keyCode===A.hY&&!(0,A.Vb)(t)||e.datepickerInput&&(0,A.Vb)(t,"altKey")&&t.keyCode===A.LH})))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(d.SBq),d.Y36(a.aV),d.Y36(d.R0b),d.Y36(d.s_b),d.Y36(yt),d.Y36(g._A,8),d.Y36(P.Is,8),d.Y36(l.K0,8),d.Y36(nt))},t.\u0275dir=d.lG2({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[d.TTD]}),t}(),kt=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(At);return e.\u0275fac=function(i){return(t||(t=d.n5z(e)))(i||e)},e.\u0275cmp=d.Xpm({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[d._Bn([ot,{provide:At,useExisting:e}]),d.qOj],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),e}(),Tt=function t(e,i){v(this,t),this.target=e,this.targetElement=i,this.value=this.target.value},Ct=function(){var t=function(){function t(e,i,n){var r=this;v(this,t),this._elementRef=e,this._dateAdapter=i,this._dateFormats=n,this.dateChange=new d.vpe,this.dateInput=new d.vpe,this.stateChanges=new m.xQ,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=b.w.EMPTY,this._localeSubscription=b.w.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._filterValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value));return!e||r._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),i=r._getMinDate();return!i||!e||r._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),i=r._getMaxDate();return!i||!e||r._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(function(){r._assignValueProgrammatically(r.value)})}return y(t,[{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(t){this._assignValueProgrammatically(t)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(t){var e=(0,S.Ig)(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}},{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(t){var e=this;this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(t){if(e._shouldHandleChangeEvent(t)){var i=e._getValueFromModel(t.selection);e._lastValueValid=e._isValidValue(i),e._cvaOnChange(i),e._onTouched(),e._formatValue(i),e.dateInput.emit(new Tt(e,e._elementRef.nativeElement)),e.dateChange.emit(new Tt(e,e._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(t){(function(t,e){for(var i=0,n=Object.keys(t);i enter",(0,w.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({transform:"none",opacity:1}))),(0,w.eR)("* => void, * => exit",(0,w.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,w.oB)({opacity:0})))])},S=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o,s,u){var c;return v(this,i),(c=e.call(this))._elementRef=t,c._focusTrapFactory=n,c._changeDetectorRef=r,c._config=s,c._focusMonitor=u,c._animationStateChanged=new a.vpe,c._elementFocusedBeforeDialogWasOpened=null,c._closeInteractionType=null,c.attachDomPortal=function(t){return c._portalOutlet.hasAttached(),c._portalOutlet.attachDomPortal(t)},c._ariaLabelledBy=s.ariaLabelledBy||null,c._document=o,c}return y(i,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=(0,b.ht)(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,b.ht)())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=(0,b.ht)();return t===e||t.contains(e)}}]),i}(r.en);return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(A.qV),a.Y36(a.sBO),a.Y36(l.K0,8),a.Y36(T),a.Y36(A.tE))},t.\u0275dir=a.lG2({type:t,viewQuery:function(t,e){var i;(1&t&&a.Gf(r.Pl,7),2&t)&&(a.iGM(i=a.CRH())&&(e._portalOutlet=i.first))},features:[a.qOj]}),t}(),E=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._state="enter",t}return y(i,[{key:"_onAnimationDone",value:function(t){var e=t.toState,i=t.totalTime;"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:i}))}},{key:"_onAnimationStart",value:function(t){var e=t.toState,i=t.totalTime;"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:i})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),i}(S);return e.\u0275fac=function(i){return(t||(t=a.n5z(e)))(i||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&a.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(a.Ikx("id",e._id),a.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),a.d8E("@dialogContainer",e._state))},features:[a.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&a.YNc(0,k,0,0,"ng-template",0)},directives:[r.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[C.dialogContainer]}}),e}(),x=0,R=function(){function t(e,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+x++;v(this,t),this._overlayRef=e,this._containerInstance=i,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new h.xQ,this._afterClosed=new h.xQ,this._beforeClosed=new h.xQ,this._state=0,i._id=r,i._animationStateChanged.pipe((0,p.h)(function(t){return"opened"===t.state}),(0,g.q)(1)).subscribe(function(){n._afterOpened.next(),n._afterOpened.complete()}),i._animationStateChanged.pipe((0,p.h)(function(t){return"closed"===t.state}),(0,g.q)(1)).subscribe(function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()}),e.detachments().subscribe(function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()}),e.keydownEvents().pipe((0,p.h)(function(t){return t.keyCode===_.hY&&!n.disableClose&&!(0,_.Vb)(t)})).subscribe(function(t){t.preventDefault(),I(n,"keyboard")}),e.backdropClick().subscribe(function(){n.disableClose?n._containerInstance._recaptureFocus():I(n,"mouse")})}return y(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe((0,p.h)(function(t){return"closing"===t.state}),(0,g.q)(1)).subscribe(function(i){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout(function(){return e._finishDialogClose()},i.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}();function I(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}var O=new a.OlP("MatDialogData"),P=new a.OlP("mat-dialog-default-options"),D=new a.OlP("mat-dialog-scroll-strategy"),M={provide:D,deps:[n.aV],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},L=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c){var l=this;v(this,t),this._overlay=e,this._injector=i,this._defaultOptions=n,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=u,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new h.xQ,this._afterOpenedAtThisLevel=new h.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,d.P)(function(){return l.openDialogs.length?l._getAfterAllClosed():l._getAfterAllClosed().pipe((0,m.O)(void 0))}),this._scrollStrategy=a}return y(t,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(t,e){var i=this;(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new T)).id&&this.getDialogById(e.id);var n=this._createOverlay(e),r=this._attachDialogContainer(n,e),o=this._attachDialogContent(t,r,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return i._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find(function(e){return e.id===t})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new n.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}},{key:"_attachDialogContainer",value:function(t,e){var i=a.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:T,useValue:e}]}),n=new r.C5(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}},{key:"_attachDialogContent",value:function(t,e,i,n){var o=new this._dialogRefConstructor(i,e,n.id);if(t instanceof a.Rgc)e.attachTemplatePortal(new r.UE(t,null,{$implicit:n.data,dialogRef:o}));else{var s=this._createInjector(n,o,e),u=e.attachComponentPortal(new r.C5(t,n.viewContainerRef,s));o.componentInstance=u.instance}return o.updateSize(n.width,n.height).updatePosition(n.position),o}},{key:"_createInjector",value:function(t,e,i){var n=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(c.Is,null,a.XFs.Optional)||r.push({provide:c.Is,useValue:{value:t.direction,change:(0,f.of)()}}),a.zs3.create({parent:n||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,i=e.length-1;i>-1;i--){var n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.aV),a.Y36(a.zs3),a.Y36(void 0),a.Y36(void 0),a.Y36(n.Xj),a.Y36(void 0),a.Y36(a.DyG),a.Y36(a.DyG),a.Y36(a.OlP))},t.\u0275dir=a.lG2({type:t}),t}(),N=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o,a,s,u){return v(this,i),e.call(this,t,n,o,s,u,a,R,E,O)}return i}(L);return t.\u0275fac=function(e){return new(e||t)(a.LFG(n.aV),a.LFG(a.zs3),a.LFG(l.Ye,8),a.LFG(P,8),a.LFG(D),a.LFG(t,12),a.LFG(n.Xj))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t}(),z=0,F=function(){var t=function(){function t(e,i,n){v(this,t),this._dialogRef=e,this._elementRef=i,this._dialog=n,this.id="mat-dialog-title-"+z++}return y(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=function(t,e){for(var i=t.nativeElement.parentElement;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(function(t){return t.id===i.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(R,8),a.Y36(a.SBq),a.Y36(N))},t.\u0275dir=a.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&a.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),Z=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t}(),B=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t}(),q=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({providers:[N,M],imports:[[n.U8,r.eL,u.BQ],u.BQ]}),t}()},27679:function(t,e,i){"use strict";i.d(e,{d:function(){return a},t:function(){return s}});var n=i(19861),r=i(71522),o=i(31572),a=function(){var t=function(){function t(){v(this,t),this._vertical=!1,this._inset=!1}return y(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=(0,n.Ig)(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=(0,n.Ig)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(o.uIk("aria-orientation",e.vertical?"vertical":"horizontal"),o.ekj("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t}(),s=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[r.BQ],r.BQ]}),t}()},45001:function(t,e,i){"use strict";i.d(e,{pp:function(){return J},To:function(){return Q},ib:function(){return G},HS:function(){return U},u4:function(){return V},yz:function(){return Y},yK:function(){return K}});var r=i(31572),a=i(19861),u=i(55959),c=i(87570),l=i(4230),d=0,f=new r.OlP("CdkAccordion"),p=function(){var t=function(){function t(){v(this,t),this._stateChanges=new u.xQ,this._openCloseAllActions=new u.xQ,this.id="cdk-accordion-"+d++,this._multi=!1}return y(t,[{key:"multi",get:function(){return this._multi},set:function(t){this._multi=(0,a.Ig)(t)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(t){this._stateChanges.next(t)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[r._Bn([{provide:f,useExisting:t}]),r.TTD]}),t}(),g=0,m=function(){var t=function(){function t(e,i,n){var o=this;v(this,t),this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=n,this._openCloseAllSubscription=c.w.EMPTY,this.closed=new r.vpe,this.opened=new r.vpe,this.destroyed=new r.vpe,this.expandedChange=new r.vpe,this.id="cdk-accordion-child-"+g++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=n.listen(function(t,e){o.accordion&&!o.accordion.multi&&o.accordion.id===e&&o.id!==t&&(o.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return y(t,[{key:"expanded",get:function(){return this._expanded},set:function(t){t=(0,a.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=(0,a.Ig)(t)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var t=this;return this.accordion._openCloseAllActions.subscribe(function(e){t.disabled||(t.expanded=e)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(f,12),r.Y36(r.sBO),r.Y36(l.A8))},t.\u0275dir=r.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[r._Bn([{provide:f,useValue:void 0}])]}),t}(),b=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}(),w=i(26899),_=i(61511),A=i(71522),k=i(24621),T=i(98720),C=i(56238),S=i(43835),E=i(90611),x=i(75842),R=i(43490),I=i(70653),O=i(31906),P=i(10709),D=["body"];function M(t,e){}var L=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],N=["mat-expansion-panel-header","*","mat-action-row"];function z(t,e){if(1&t&&r._UZ(0,"span",2),2&t){var i=r.oxw();r.Q6J("@indicatorRotate",i._getExpandedState())}}var F=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Z=["mat-panel-title","mat-panel-description","*"],B=new r.OlP("MAT_ACCORDION"),q={indicatorRotate:(0,P.X$)("indicatorRotate",[(0,P.SB)("collapsed, void",(0,P.oB)({transform:"rotate(0deg)"})),(0,P.SB)("expanded",(0,P.oB)({transform:"rotate(180deg)"})),(0,P.eR)("expanded <=> collapsed, void => collapsed",(0,P.jt)("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:(0,P.X$)("bodyExpansion",[(0,P.SB)("collapsed, void",(0,P.oB)({height:"0px",visibility:"hidden"})),(0,P.SB)("expanded",(0,P.oB)({height:"*",visibility:"visible"})),(0,P.eR)("expanded <=> collapsed, void => collapsed",(0,P.jt)("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},U=function(){var t=function t(e){v(this,t),this._template=e};return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.Rgc))},t.\u0275dir=r.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t}(),H=0,j=new r.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),G=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,o,a,s,c,l){var h;return v(this,i),(h=e.call(this,t,n,o))._viewContainerRef=a,h._animationMode=c,h._hideToggle=!1,h.afterExpand=new r.vpe,h.afterCollapse=new r.vpe,h._inputChanges=new u.xQ,h._headerId="mat-expansion-panel-header-"+H++,h._bodyAnimationDone=new u.xQ,h.accordion=t,h._document=s,h._bodyAnimationDone.pipe((0,T.x)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){"void"!==t.fromState&&("expanded"===t.toState?h.afterExpand.emit():"collapsed"===t.toState&&h.afterCollapse.emit())}),l&&(h.hideToggle=l.hideToggle),h}return y(i,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(t){this._hideToggle=(0,a.Ig)(t)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var t=this;this._lazyContent&&this.opened.pipe((0,C.O)(null),(0,S.h)(function(){return t.expanded&&!t._portal}),(0,E.q)(1)).subscribe(function(){t._portal=new w.UE(t._lazyContent._template,t._viewContainerRef)})}},{key:"ngOnChanges",value:function(t){this._inputChanges.next(t)}},{key:"ngOnDestroy",value:function(){n(h(i.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}]),i}(m);return t.\u0275fac=function(e){return new(e||t)(r.Y36(B,12),r.Y36(r.sBO),r.Y36(l.A8),r.Y36(r.s_b),r.Y36(_.K0),r.Y36(R.Qb,8),r.Y36(j,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){var n;(1&t&&r.Suo(i,U,5),2&t)&&(r.iGM(n=r.CRH())&&(e._lazyContent=n.first))},viewQuery:function(t,e){var i;(1&t&&r.Gf(D,5),2&t)&&(r.iGM(i=r.CRH())&&(e._body=i.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&r.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[r._Bn([{provide:B,useValue:void 0}]),r.qOj,r.TTD],ngContentSelectors:N,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(r.F$t(L),r.Hsn(0),r.TgZ(1,"div",0,1),r.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),r.TgZ(3,"div",2),r.Hsn(4,1),r.YNc(5,M,0,0,"ng-template",3),r.qZA(),r.Hsn(6,2),r.qZA()),2&t&&(r.xp6(1),r.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),r.uIk("aria-labelledby",e._headerId),r.xp6(4),r.Q6J("cdkPortalOutlet",e._portal))},directives:[w.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[q.bodyExpansion]},changeDetection:0}),t}(),Y=function(){var t=function(){function t(e,i,n,r,o,a){var s=this;v(this,t),this.panel=e,this._element=i,this._focusMonitor=n,this._changeDetectorRef=r,this._animationMode=a,this._parentChangeSubscription=c.w.EMPTY;var u=e.accordion?e.accordion._stateChanges.pipe((0,S.h)(function(t){return!(!t.hideToggle&&!t.togglePosition)})):I.E;this._parentChangeSubscription=(0,O.T)(e.opened,e.closed,u,e._inputChanges.pipe((0,S.h)(function(t){return!!(t.hideToggle||t.disabled||t.togglePosition)}))).subscribe(function(){return s._changeDetectorRef.markForCheck()}),e.closed.pipe((0,S.h)(function(){return e._containsFocus()})).subscribe(function(){return n.focusVia(i,"program")}),o&&(this.expandedHeight=o.expandedHeight,this.collapsedHeight=o.collapsedHeight)}return y(t,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(t){switch(t.keyCode){case x.L_:case x.K5:(0,x.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._element).subscribe(function(e){e&&t.panel.accordion&&t.panel.accordion._handleHeaderFocus(t)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(G,1),r.Y36(r.SBq),r.Y36(k.tE),r.Y36(r.sBO),r.Y36(j,8),r.Y36(R.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&r.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(r.uIk("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),r.Udp("height",e._getHeaderHeight()),r.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:Z,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(r.F$t(F),r.TgZ(0,"span",0),r.Hsn(1),r.Hsn(2,1),r.Hsn(3,2),r.qZA(),r.YNc(4,z,1,1,"span",1)),2&t&&(r.xp6(4),r.Q6J("ngIf",e._showToggle()))},directives:[_.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}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[q.indicatorRotate]},changeDetection:0}),t}(),V=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t}(),K=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t}(),J=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._ownHeaders=new r.n_E,t._hideToggle=!1,t.displayMode="default",t.togglePosition="after",t}return y(i,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(t){this._hideToggle=(0,a.Ig)(t)}},{key:"ngAfterContentInit",value:function(){var t=this;this._headers.changes.pipe((0,C.O)(this._headers)).subscribe(function(e){t._ownHeaders.reset(e.filter(function(e){return e.panel.accordion===t})),t._ownHeaders.notifyOnChanges()}),this._keyManager=new k.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(t){this._keyManager.onKeydown(t)}},{key:"_handleHeaderFocus",value:function(t){this._keyManager.updateActiveItem(t)}},{key:"ngOnDestroy",value:function(){n(h(i.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),i}(p);return e.\u0275fac=function(i){return(t||(t=r.n5z(e)))(i||e)},e.\u0275dir=r.lG2({type:e,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){var n;(1&t&&r.Suo(i,Y,5),2&t)&&(r.iGM(n=r.CRH())&&(e._headers=n))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[r._Bn([{provide:B,useExisting:e}]),r.qOj]}),e}(),Q=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[_.ez,A.BQ,b,w.eL]]}),t}()},66283:function(t,e,i){"use strict";i.d(e,{G_:function(){return it},TO:function(){return U},KE:function(){return nt},Eo:function(){return j},lN:function(){return rt},bx:function(){return V},hX:function(){return K},UY:function(){return J},R9:function(){return X}});var n=i(36337),r=i(61511),a=i(31572),u=i(71522),c=i(19861),l=i(55959),h=i(31906),f=i(87254),p=i(56238),g=i(25416),m=i(90611),b=i(10709),w=i(43490),_=i(22526),A=i(11353),k=["underline"],T=["connectionContainer"],C=["inputContainer"],S=["label"];function E(t,e){1&t&&(a.ynx(0),a.TgZ(1,"div",14),a._UZ(2,"div",15),a._UZ(3,"div",16),a._UZ(4,"div",17),a.qZA(),a.TgZ(5,"div",18),a._UZ(6,"div",15),a._UZ(7,"div",16),a._UZ(8,"div",17),a.qZA(),a.BQk())}function x(t,e){1&t&&(a.TgZ(0,"div",19),a.Hsn(1,1),a.qZA())}function R(t,e){if(1&t&&(a.ynx(0),a.Hsn(1,2),a.TgZ(2,"span"),a._uU(3),a.qZA(),a.BQk()),2&t){var i=a.oxw(2);a.xp6(3),a.Oqu(i._control.placeholder)}}function I(t,e){1&t&&a.Hsn(0,3,["*ngSwitchCase","true"])}function O(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1," *"),a.qZA())}function P(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"label",20,21),a.NdJ("cdkObserveContent",function(){return a.CHM(i),a.oxw().updateOutlineGap()}),a.YNc(2,R,4,1,"ng-container",12),a.YNc(3,I,1,0,"ng-content",12),a.YNc(4,O,2,0,"span",22),a.qZA()}if(2&t){var n=a.oxw();a.ekj("mat-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),a.Q6J("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),a.uIk("for",n._control.id)("aria-owns",n._control.id),a.xp6(2),a.Q6J("ngSwitchCase",!1),a.xp6(1),a.Q6J("ngSwitchCase",!0),a.xp6(1),a.Q6J("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function D(t,e){1&t&&(a.TgZ(0,"div",24),a.Hsn(1,4),a.qZA())}function M(t,e){if(1&t&&(a.TgZ(0,"div",25,26),a._UZ(2,"span",27),a.qZA()),2&t){var i=a.oxw();a.xp6(2),a.ekj("mat-accent","accent"==i.color)("mat-warn","warn"==i.color)}}function L(t,e){if(1&t&&(a.TgZ(0,"div"),a.Hsn(1,5),a.qZA()),2&t){var i=a.oxw();a.Q6J("@transitionMessages",i._subscriptAnimationState)}}function N(t,e){if(1&t&&(a.TgZ(0,"div",31),a._uU(1),a.qZA()),2&t){var i=a.oxw(2);a.Q6J("id",i._hintLabelId),a.xp6(1),a.Oqu(i.hintLabel)}}function z(t,e){if(1&t&&(a.TgZ(0,"div",28),a.YNc(1,N,2,2,"div",29),a.Hsn(2,6),a._UZ(3,"div",30),a.Hsn(4,7),a.qZA()),2&t){var i=a.oxw();a.Q6J("@transitionMessages",i._subscriptAnimationState),a.xp6(1),a.Q6J("ngIf",i.hintLabel)}}var F=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Z=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],B=0,q=new a.OlP("MatError"),U=function(){var t=function t(e,i){v(this,t),this.id="mat-error-"+B++,e||i.nativeElement.setAttribute("aria-live","polite")};return t.\u0275fac=function(e){return new(e||t)(a.$8M("aria-live"),a.Y36(a.SBq))},t.\u0275dir=a.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&a.uIk("id",e.id)},inputs:{id:"id"},features:[a._Bn([{provide:q,useExisting:t}])]}),t}(),H={transitionMessages:(0,b.X$)("transitionMessages",[(0,b.SB)("enter",(0,b.oB)({opacity:1,transform:"translateY(0%)"})),(0,b.eR)("void => enter",[(0,b.oB)({opacity:0,transform:"translateY(-5px)"}),(0,b.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},j=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.lG2({type:t}),t}(),G=0,Y=new a.OlP("MatHint"),V=function(){var t=function t(){v(this,t),this.align="start",this.id="mat-hint-"+G++};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.lG2({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(a.uIk("id",e.id)("align",null),a.ekj("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[a._Bn([{provide:Y,useExisting:t}])]}),t}(),K=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.lG2({type:t,selectors:[["mat-label"]]}),t}(),J=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.lG2({type:t,selectors:[["mat-placeholder"]]}),t}(),Q=new a.OlP("MatPrefix"),W=new a.OlP("MatSuffix"),X=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.lG2({type:t,selectors:[["","matSuffix",""]],features:[a._Bn([{provide:W,useExisting:t}])]}),t}(),$=0,tt=(0,u.pj)(function t(e){v(this,t),this._elementRef=e},"primary"),et=new a.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),it=new a.OlP("MatFormField"),nt=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o,a,s,u,c){var h;return v(this,i),(h=e.call(this,t))._elementRef=t,h._changeDetectorRef=n,h._dir=o,h._defaults=a,h._platform=s,h._ngZone=u,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new l.xQ,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-"+$++,h._labelId="mat-form-field-label-"+$++,h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==c,h.appearance=a&&a.appearance?a.appearance:"legacy",h._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,h}return y(i,[{key:"appearance",get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=(0,c.Ig)(t)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe((0,p.O)(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe((0,g.R)(this._destroyed)).subscribe(function(){return t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe((0,g.R)(t._destroyed)).subscribe(function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()})}),(0,h.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,p.O)(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,p.O)(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,g.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t.updateOutlineGap()})}):t.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,f.R)(this._label.nativeElement,"transitionend").pipe((0,m.q)(1)).subscribe(function(){t._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push.apply(t,d(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,i=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push.apply(t,d(this._errorChildren.map(function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,i=0,n=this._connectionContainerRef.nativeElement,r=n.querySelectorAll(".mat-form-field-outline-start"),o=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=n.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=t.children,c=this._getStartEnd(u[0].getBoundingClientRect()),l=0,h=0;h0?.75*l+10:0}for(var d=0;d1&&void 0!==arguments[1]?arguments[1]:t;return this._fontCssClassesByAlias.set(t,e),this}},{key:"classNameForFontAlias",value:function(t){return this._fontCssClassesByAlias.get(t)||t}},{key:"setDefaultFontSetClass",value:function(t){return this._defaultFontSetClass=t,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(t){var e=this,i=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,t);if(!i)throw S(t);var r=this._cachedIconsByUrl.get(i);return r?(0,l.of)(I(r)):this._loadSvgIconFromConfig(new x(t,null)).pipe((0,p.b)(function(t){return e._cachedIconsByUrl.set(i,t)}),(0,g.U)(function(t){return I(t)}))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=O(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t))return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);var r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):(0,h._)(C(i))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgText?(0,l.of)(I(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,g.U)(function(t){return I(t)}))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var i=this,r=this._extractIconWithNameFromAnySet(t,e);if(r)return(0,l.of)(r);var o=e.filter(function(t){return!t.svgText}).map(function(t){return i._loadSvgIconSetFromConfig(t).pipe((0,m.K)(function(e){var r=i._sanitizer.sanitize(n.q3G.RESOURCE_URL,t.url);return i._errorHandler.handleError(new Error("Loading icon set URL: ".concat(r," failed: ").concat(e.message))),(0,l.of)(null)}))});return(0,d.D)(o).pipe((0,g.U)(function(){var n=i._extractIconWithNameFromAnySet(t,e);if(!n)throw C(t);return n}))}},{key:"_extractIconWithNameFromAnySet",value:function(t,e){for(var i=e.length-1;i>=0;i--){var n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){var r=this._svgElementFromConfig(n),o=this._extractSvgIconFromSet(r,t,n.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(t){var e=this;return this._fetchIcon(t).pipe((0,p.b)(function(e){return t.svgText=e}),(0,g.U)(function(){return e._svgElementFromConfig(t)}))}},{key:"_loadSvgIconSetFromConfig",value:function(t){return t.svgText?(0,l.of)(null):this._fetchIcon(t).pipe((0,p.b)(function(e){return t.svgText=e}))}},{key:"_extractSvgIconFromSet",value:function(t,e,i){var n=t.querySelector('[id="'.concat(e,'"]'));if(!n)return null;var r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,i);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),i);var o=this._svgElementFromString("");return o.appendChild(r),this._setSvgAttributes(o,i)}},{key:"_svgElementFromString",value:function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}},{key:"_toSvgElement",value:function(t){for(var e=this._svgElementFromString(""),i=t.attributes,n=0;n-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),i}(b);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(u.t4),r.Y36(d.a5,10),r.Y36(d.F,8),r.Y36(d.sg,8),r.Y36(c.rD),r.Y36(p,10),r.Y36(n.Lq),r.Y36(r.R0b),r.Y36(l.G_,8))},t.\u0275dir=r.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&r.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(r.Ikx("disabled",e.disabled)("required",e.required),r.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),r.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[r._Bn([{provide:l.Eo,useExisting:t}]),r.qOj,r.TTD]}),t}(),_=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[c.rD],imports:[[n.Ky,l.lN,c.BQ],n.Ky,l.lN]}),t}()},85250:function(t,e,i){"use strict";i.d(e,{i$:function(){return _},Tg:function(){return T},ie:function(){return C}});var n=i(61511),r=i(31572),a=i(71522),u=i(19861),c=i(55959),l=i(25416),h=(i(56238),i(24621),i(4230),i(75842),i(16073),i(27679)),d=["*"],f=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],p=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],g=(0,a.Id)((0,a.Kr)(function t(){v(this,t)})),m=(0,a.Kr)(function t(){v(this,t)}),b=new r.OlP("MatList"),w=new r.OlP("MatNavList"),_=function(){var t=function(t){o(i,t);var e=s(i);function i(t){var n;return v(this,i),(n=e.call(this))._elementRef=t,n._stateChanges=new c.xQ,"action-list"===n._getListType()&&t.nativeElement.classList.add("mat-action-list"),n}return y(i,[{key:"_getListType",value:function(){var t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(g);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[r._Bn([{provide:b,useExisting:t}]),r.qOj,r.TTD],ngContentSelectors:d,decls:1,vars:0,template:function(t,e){1&t&&(r.F$t(),r.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t}(),A=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t}(),k=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t}(),T=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o){var a;v(this,i),(a=e.call(this))._element=t,a._isInteractiveList=!1,a._destroyed=new c.xQ,a._disabled=!1,a._isInteractiveList=!!(r||o&&"action-list"===o._getListType()),a._list=r||o;var s=a._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),a._list&&a._list._stateChanges.pipe((0,l.R)(a._destroyed)).subscribe(function(){n.markForCheck()}),a}return y(i,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(t){this._disabled=(0,u.Ig)(t)}},{key:"ngAfterContentInit",value:function(){(0,a.E0)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}]),i}(m);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(w,8),r.Y36(b,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){var n;(1&t&&(r.Suo(i,A,5),r.Suo(i,k,5),r.Suo(i,a.X2,5)),2&t)&&(r.iGM(n=r.CRH())&&(e._avatar=n.first),r.iGM(n=r.CRH())&&(e._icon=n.first),r.iGM(n=r.CRH())&&(e._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&r.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[r.qOj],ngContentSelectors:p,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(t,e){1&t&&(r.F$t(f),r.TgZ(0,"div",0),r._UZ(1,"div",1),r.Hsn(2),r.TgZ(3,"div",2),r.Hsn(4,1),r.qZA(),r.Hsn(5,2),r.qZA()),2&t&&(r.xp6(1),r.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[a.wG],encapsulation:2,changeDetection:0}),t}(),C=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[a.uc,a.si,a.BQ,a.us,n.ez],a.uc,a.BQ,a.us,h.t]}),t}()},8055:function(t,e,i){"use strict";i.d(e,{VK:function(){return j},OP:function(){return B},Tx:function(){return Q},p6:function(){return K}});var n=i(24621),a=i(19861),u=i(75842),l=i(31572),h=i(55959),f=i(87570),p=i(31906),g=i(40878),m=i(92709),b=i(56238),w=i(44689),_=i(90611),A=i(43835),k=i(25416),T=i(82628),C=i(10709),S=i(26899),E=i(61511),x=i(71522),R=i(2522),I=i(11353),O=i(4253),P=i(22526),D=["mat-menu-item",""],M=["*"];function L(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div",0),l.NdJ("keydown",function(t){return l.CHM(i),l.oxw()._handleKeydown(t)})("click",function(){return l.CHM(i),l.oxw().closed.emit("click")})("@transformMenu.start",function(t){return l.CHM(i),l.oxw()._onAnimationStart(t)})("@transformMenu.done",function(t){return l.CHM(i),l.oxw()._onAnimationDone(t)}),l.TgZ(1,"div",1),l.Hsn(2),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),l.uIk("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var N={transformMenu:(0,C.X$)("transformMenu",[(0,C.SB)("void",(0,C.oB)({opacity:0,transform:"scale(0.8)"})),(0,C.eR)("void => enter",(0,C.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,C.oB)({opacity:1,transform:"scale(1)"}))),(0,C.eR)("* => void",(0,C.jt)("100ms 25ms linear",(0,C.oB)({opacity:0})))]),fadeInItems:(0,C.X$)("fadeInItems",[(0,C.SB)("showing",(0,C.oB)({opacity:1})),(0,C.eR)("void => *",[(0,C.oB)({opacity:0}),(0,C.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},z=new l.OlP("MatMenuContent"),F=new l.OlP("MAT_MENU_PANEL"),Z=(0,x.Kr)((0,x.Id)(function t(){v(this,t)})),B=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this))._elementRef=t,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new h.xQ,a._focused=new h.xQ,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(c(a)),a}return y(i,[{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var t,e,i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe((0,_.q)(1)).subscribe(function(){return t._focusFirstItem(e)}):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var i=this._directDescendantItems.first._getHostElement().parentElement;i;){if("menu"===i.getAttribute("role")){i.focus();break}i=i.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e="mat-elevation-z".concat(Math.min(4+t,24)),i=Object.keys(this._classList).find(function(t){return t.startsWith("mat-elevation-z")});i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe((0,b.O)(this._allItems)).subscribe(function(e){t._directDescendantItems.reset(e.filter(function(e){return e._parentMenu===t})),t._directDescendantItems.notifyOnChanges()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.SBq),l.Y36(l.R0b),l.Y36(q))},t.\u0275dir=l.lG2({type:t,contentQueries:function(t,e,i){var n;(1&t&&(l.Suo(i,z,5),l.Suo(i,B,5),l.Suo(i,B,4)),2&t)&&(l.iGM(n=l.CRH())&&(e.lazyContent=n.first),l.iGM(n=l.CRH())&&(e._allItems=n),l.iGM(n=l.CRH())&&(e.items=n))},viewQuery:function(t,e){var i;(1&t&&l.Gf(l.Rgc,5),2&t)&&(l.iGM(i=l.CRH())&&(e.templateRef=i.first))},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t}(),j=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r){return v(this,i),e.call(this,t,n,r)}return i}(H);return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.SBq),l.Y36(l.R0b),l.Y36(q))},t.\u0275cmp=l.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&l.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[l._Bn([{provide:F,useExisting:t}]),l.qOj],ngContentSelectors:M,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(l.F$t(),l.YNc(0,L,3,6,"ng-template"))},directives:[E.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[N.transformMenu,N.fadeInItems]},changeDetection:0}),t}(),G=new l.OlP("mat-menu-scroll-strategy"),Y={provide:G,deps:[R.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},V=(0,I.i$)({passive:!0}),K=function(){var t=function(){function t(e,i,r,o,a,s,u,c){var h=this;v(this,t),this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=u,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=f.w.EMPTY,this._hoverSubscription=f.w.EMPTY,this._menuCloseSubscription=f.w.EMPTY,this._handleTouchStart=function(t){(0,n.yG)(t)||(h._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new l.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new l.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof H?a:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,V),s&&(s._triggersSubmenu=this.triggersSubmenu())}return y(t,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"menu",get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(function(t){e._destroyMenu(t),"click"!==t&&"tab"!==t||!e._parentMaterialMenu||e._parentMaterialMenu.closed.emit(t)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,V),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),i=e.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return t.closeMenu()}),this._initMenu(),this.menu instanceof H&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"updatePosition",value:function(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}},{key:"_destroyMenu",value:function(t){var e=this;if(this._overlayRef&&this.menuOpen){var i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,i instanceof H?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe((0,A.h)(function(t){return"void"===t.toState}),(0,_.q)(1),(0,k.R)(i.lazyContent._attached)).subscribe({next:function(){return i.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new R.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe(function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(t){var e=r("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=e[0],n=e[1],o=r("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=o[0],s=o[1],u=a,c=s,l=i,h=n,d=0;this.triggersSubmenu()?(h=i="before"===this.menu.xPosition?"start":"end",n=l="end"===i?"start":"end",d="bottom"===a?8:-8):this.menu.overlapTrigger||(u="top"===a?"bottom":"top",c="top"===s?"bottom":"top"),t.withPositions([{originX:i,originY:u,overlayX:l,overlayY:a,offsetY:d},{originX:n,originY:u,overlayX:h,overlayY:a,offsetY:d},{originX:i,originY:c,overlayX:l,overlayY:s,offsetY:-d},{originX:n,originY:c,overlayX:h,overlayY:s,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,g.of)(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,A.h)(function(e){return e!==t._menuItemInstance}),(0,A.h)(function(){return t._menuOpen})):(0,g.of)();return(0,p.T)(e,n,r,i)}},{key:"_handleMousedown",value:function(t){(0,n.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;e!==u.K5&&e!==u.L_||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===u.SV&&"ltr"===this.dir||e===u.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,A.h)(function(e){return e===t._menuItemInstance&&!e.disabled}),(0,T.g)(0,m.e)).subscribe(function(){t._openedBy="mouse",t.menu instanceof H&&t.menu._isAnimating?t.menu._animationDone.pipe((0,_.q)(1),(0,T.g)(0,m.e),(0,k.R)(t._parentMaterialMenu._hovered())).subscribe(function(){return t.openMenu()}):t.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new S.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(R.aV),l.Y36(l.SBq),l.Y36(l.s_b),l.Y36(G),l.Y36(F,8),l.Y36(B,10),l.Y36(P.Is,8),l.Y36(n.tE))},t.\u0275dir=l.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&l.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&l.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t}(),J=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({providers:[Y],imports:[x.BQ]}),t}(),Q=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({providers:[Y],imports:[[E.ez,x.BQ,x.si,R.U8,J],O.ZD,x.BQ,J]}),t}()},73005:function(t,e,i){"use strict";i.d(e,{NW:function(){return x},TU:function(){return R}});var n=i(61511),r=i(31572),a=i(71522),c=i(15980),l=i(4786),h=i(36922),d=i(19861),f=i(55959),p=i(66283);function g(t,e){if(1&t&&(r.TgZ(0,"mat-option",19),r._uU(1),r.qZA()),2&t){var i=e.$implicit;r.Q6J("value",i),r.xp6(1),r.hij(" ",i," ")}}function m(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"mat-form-field",16),r.TgZ(1,"mat-select",17),r.NdJ("selectionChange",function(t){return r.CHM(i),r.oxw(2)._changePageSize(t.value)}),r.YNc(2,g,2,2,"mat-option",18),r.qZA(),r.qZA()}if(2&t){var n=r.oxw(2);r.Q6J("appearance",n._formFieldAppearance)("color",n.color),r.xp6(1),r.Q6J("value",n.pageSize)("disabled",n.disabled)("aria-label",n._intl.itemsPerPageLabel),r.xp6(1),r.Q6J("ngForOf",n._displayedPageSizeOptions)}}function b(t,e){if(1&t&&(r.TgZ(0,"div",20),r._uU(1),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Oqu(i.pageSize)}}function w(t,e){if(1&t&&(r.TgZ(0,"div",12),r.TgZ(1,"div",13),r._uU(2),r.qZA(),r.YNc(3,m,3,6,"mat-form-field",14),r.YNc(4,b,2,1,"div",15),r.qZA()),2&t){var i=r.oxw();r.xp6(2),r.hij(" ",i._intl.itemsPerPageLabel," "),r.xp6(1),r.Q6J("ngIf",i._displayedPageSizeOptions.length>1),r.xp6(1),r.Q6J("ngIf",i._displayedPageSizeOptions.length<=1)}}function _(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"button",21),r.NdJ("click",function(){return r.CHM(i),r.oxw().firstPage()}),r.O4$(),r.TgZ(1,"svg",7),r._UZ(2,"path",22),r.qZA(),r.qZA()}if(2&t){var n=r.oxw();r.Q6J("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),r.uIk("aria-label",n._intl.firstPageLabel)}}function A(t,e){if(1&t){var i=r.EpF();r.O4$(),r.kcU(),r.TgZ(0,"button",23),r.NdJ("click",function(){return r.CHM(i),r.oxw().lastPage()}),r.O4$(),r.TgZ(1,"svg",7),r._UZ(2,"path",24),r.qZA(),r.qZA()}if(2&t){var n=r.oxw();r.Q6J("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),r.uIk("aria-label",n._intl.lastPageLabel)}}var k=function(){var t=function t(){v(this,t),this.changes=new f.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,e,i){if(0==i||0==e)return"0 of ".concat(i);var n=t*e;return"".concat(n+1," \u2013 ").concat(n<(i=Math.max(i,0))?Math.min(n+e,i):n+e," of ").concat(i)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),T={provide:k,deps:[[new r.FiY,new r.tp0,k]],useFactory:function(t){return t||new k}},C=new r.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),S=(0,a.Id)((0,a.dB)(function t(){v(this,t)})),E=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,o){var a;if(v(this,i),(a=e.call(this))._intl=t,a._changeDetectorRef=n,a._pageIndex=0,a._length=0,a._pageSizeOptions=[],a._hidePageSize=!1,a._showFirstLastButtons=!1,a.page=new r.vpe,a._intlChanges=t.changes.subscribe(function(){return a._changeDetectorRef.markForCheck()}),o){var s=o.pageSize,c=o.pageSizeOptions,l=o.hidePageSize,h=o.showFirstLastButtons;null!=s&&(a._pageSize=s),null!=c&&(a._pageSizeOptions=c),null!=l&&(a._hidePageSize=l),null!=h&&(a._showFirstLastButtons=h)}return u(a)}return y(i,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(t){this._pageIndex=Math.max((0,d.su)(t),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(t){this._length=(0,d.su)(t),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(t){this._pageSize=Math.max((0,d.su)(t),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(t){this._pageSizeOptions=(t||[]).map(function(t){return(0,d.su)(t)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(t){this._hidePageSize=(0,d.Ig)(t)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(t){this._showFirstLastButtons=(0,d.Ig)(t)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var t=this.getNumberOfPages()-1;return this.pageIndex void",(0,O.IO)("@transformPanel",[(0,O.pV)()],{optional:!0}))]),transformPanel:(0,O.X$)("transformPanel",[(0,O.SB)("void",(0,O.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,O.SB)("showing",(0,O.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,O.SB)("showing-multiple",(0,O.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,O.eR)("void => *",(0,O.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,O.eR)("* => void",(0,O.jt)("100ms 25ms linear",(0,O.oB)({opacity:0})))])},j=0,G=new u.OlP("mat-select-scroll-strategy"),Y=new u.OlP("MAT_SELECT_CONFIG"),V={provide:G,deps:[r.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},K=function t(e,i){v(this,t),this.source=e,this.value=i},J=(0,l.Kr)((0,l.sb)((0,l.Id)((0,l.FD)(function t(e,i,n,r,o){v(this,t),this._elementRef=e,this._defaultErrorStateMatcher=i,this._parentForm=n,this._parentFormGroup=r,this.ngControl=o})))),Q=new u.OlP("MatSelectTrigger"),W=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=u.lG2({type:t,selectors:[["mat-select-trigger"]],features:[u._Bn([{provide:Q,useExisting:t}])]}),t}(),X=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o,a,s,l,h,f,p,g,m,y,b){var w,R,I,O;return v(this,i),(w=e.call(this,a,o,l,h,p))._viewportRuler=t,w._changeDetectorRef=n,w._ngZone=r,w._dir=s,w._parentFormField=f,w.ngControl=p,w._liveAnnouncer=y,w._defaultOptions=b,w._panelOpen=!1,w._compareWith=function(t,e){return t===e},w._uid="mat-select-"+j++,w._triggerAriaLabelledBy=null,w._destroy=new _.xQ,w._onChange=function(){},w._onTouched=function(){},w._valueId="mat-select-value-"+j++,w._panelDoneAnimatingStream=new _.xQ,w._overlayPanelClass=(null===(R=w._defaultOptions)||void 0===R?void 0:R.overlayPanelClass)||"",w._focused=!1,w.controlType="mat-select",w._required=!1,w._multiple=!1,w._disableOptionCentering=null!==(O=null===(I=w._defaultOptions)||void 0===I?void 0:I.disableOptionCentering)&&void 0!==O&&O,w.ariaLabel="",w.optionSelectionChanges=(0,A.P)(function(){var t=w.options;return t?t.changes.pipe((0,T.O)(t),(0,C.w)(function(){return k.T.apply(void 0,d(t.map(function(t){return t.onSelectionChange})))})):w._ngZone.onStable.pipe((0,S.q)(1),(0,C.w)(function(){return w.optionSelectionChanges}))}),w.openedChange=new u.vpe,w._openedStream=w.openedChange.pipe((0,E.h)(function(t){return t}),(0,x.U)(function(){})),w._closedStream=w.openedChange.pipe((0,E.h)(function(t){return!t}),(0,x.U)(function(){})),w.selectionChange=new u.vpe,w.valueChange=new u.vpe,w.ngControl&&(w.ngControl.valueAccessor=c(w)),null!=(null==b?void 0:b.typeaheadDebounceInterval)&&(w._typeaheadDebounceInterval=b.typeaheadDebounceInterval),w._scrollStrategyFactory=m,w._scrollStrategy=w._scrollStrategyFactory(),w.tabIndex=parseInt(g)||0,w.id=w.id,w}return y(i,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(t){this._required=(0,m.Ig)(t),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=(0,m.Ig)(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=(0,m.Ig)(t)}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=(0,m.su)(t)}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new b.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,R.x)(),(0,I.R)(this._destroy)).subscribe(function(){return t._panelDoneAnimating(t.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,I.R)(this._destroy)).subscribe(function(t){t.added.forEach(function(t){return t.select()}),t.removed.forEach(function(t){return t.deselect()})}),this.options.changes.pipe((0,T.O)(null),(0,I.R)(this._destroy)).subscribe(function(){t._resetOptions(),t._initializeSelection()})}},{key:"ngDoCheck",value:function(){var t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){var e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(t){this.value=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map(function(t){return t.viewValue});return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}},{key:"_handleClosedKeydown",value:function(t){var e=t.keyCode,i=e===w.JH||e===w.LH||e===w.oh||e===w.SV,n=e===w.K5||e===w.L_,r=this._keyManager;if(!r.isTyping()&&n&&!(0,w.Vb)(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(t);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,i=t.keyCode,n=i===w.JH||i===w.LH,r=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(r||i!==w.K5&&i!==w.L_||!e.activeItem||(0,w.Vb)(t))if(!r&&this._multiple&&i===w.A&&t.ctrlKey){t.preventDefault();var o=this.options.some(function(t){return!t.disabled&&!t.selected});this.options.forEach(function(t){t.disabled||(o?t.select():t.deselect())})}else{var a=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==a&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var t=this;this._overlayDir.positionChange.pipe((0,S.q)(1)).subscribe(function(){t._changeDetectorRef.detectChanges(),t._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this._selectionModel.selected.forEach(function(t){return t.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(function(t){return e._selectValue(t)}),this._sortValues();else{var i=this._selectValue(t);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,i=this.options.find(function(i){if(e._selectionModel.isSelected(i))return!1;try{return null!=i.value&&e._compareWith(i.value,t)}catch(n){return!1}});return i&&this._selectionModel.select(i),i}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new g.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,I.R)(this._destroy)).subscribe(function(){t.panelOpen&&(!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close())}),this._keyManager.change.pipe((0,I.R)(this._destroy)).subscribe(function(){t._panelOpen&&t.panel?t._scrollOptionIntoView(t._keyManager.activeItemIndex||0):t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var t=this,e=(0,k.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,I.R)(e)).subscribe(function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())}),k.T.apply(void 0,d(this.options.map(function(t){return t._stateChanges}))).pipe((0,I.R)(e)).subscribe(function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})}},{key:"_onSelect",value:function(t,e){var i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort(function(i,n){return t.sortComparator?t.sortComparator(i,n,e):e.indexOf(i)-e.indexOf(n)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(t){var e;e=this.multiple?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_getPanelAriaLabelledby",value:function(){var t;if(this.ariaLabel)return null;var e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var t;if(this.ariaLabel)return null;var e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId(),i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}},{key:"_panelDoneAnimating",value:function(t){this.openedChange.emit(t)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),i}(J);return t.\u0275fac=function(e){return new(e||t)(u.Y36(p.rL),u.Y36(u.sBO),u.Y36(u.R0b),u.Y36(l.rD),u.Y36(u.SBq),u.Y36(P.Is,8),u.Y36(D.F,8),u.Y36(D.sg,8),u.Y36(f.G_,8),u.Y36(D.a5,10),u.$8M("tabindex"),u.Y36(G),u.Y36(g.Kd),u.Y36(Y,8))},t.\u0275dir=u.lG2({type:t,viewQuery:function(t,e){var i;(1&t&&(u.Gf(M,5),u.Gf(L,5),u.Gf(r.pI,5)),2&t)&&(u.iGM(i=u.CRH())&&(e.trigger=i.first),u.iGM(i=u.CRH())&&(e.panel=i.first),u.iGM(i=u.CRH())&&(e._overlayDir=i.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[u.qOj,u.TTD]}),t}(),$=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._scrollTop=0,t._triggerFontSize=0,t._transformOrigin="top",t._offsetY=0,t._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],t}return y(i,[{key:"_calculateOverlayScroll",value:function(t,e,i){var n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}},{key:"ngOnInit",value:function(){var t=this;n(h(i.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,I.R)(this._destroy)).subscribe(function(){t.panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var t=this;n(h(i.prototype),"_canOpen",this).call(this)&&(n(h(i.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(function(){t._triggerFontSize&&t._overlayDir.overlayRef&&t._overlayDir.overlayRef.overlayElement&&(t._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(t._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(t){var e=(0,l.CB)(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=(0,l.jH)((t+e)*i,i,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),n(h(i.prototype),"_panelDoneAnimating",this).call(this,t)}},{key:"_getChangeEvent",value:function(t){return new K(this,t)}},{key:"_calculateOverlayOffsetX",value:function(){var t,e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),n=this._isRtl(),r=this.multiple?56:32;if(this.multiple)t=40;else if(this.disableOptionCentering)t=16;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}n||(t*=-1);var a=0-(e.left+t-(n?r:0)),s=e.right+t-i.width+(n?0:r);a>0?t+=a+8:s>0&&(t-=s+8),this._overlayDir.offsetX=Math.round(t),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(t,e,i){var n,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(n=0===this._scrollTop?t*r:this._scrollTop===i?(t-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):e-r/2,Math.round(-1*n-o))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,r=i.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>n?this._adjustPanelDown(o,n,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(t,e){var i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(t,e,i){var n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var t,e=this._getItemHeight(),i=this._getItemCount(),n=Math.min(i*e,256),r=i*e-n;t=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),t+=(0,l.CB)(t,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(t,o,r),this._offsetY=this._calculateOverlayOffsetY(t,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-e+t/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),i}(X);return e.\u0275fac=function(i){return(t||(t=u.n5z(e)))(i||e)},e.\u0275cmp=u.Xpm({type:e,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;(1&t&&(u.Suo(i,Q,5),u.Suo(i,l.ey,5),u.Suo(i,l.K7,5)),2&t)&&(u.iGM(n=u.CRH())&&(e.customTrigger=n.first),u.iGM(n=u.CRH())&&(e.options=n),u.iGM(n=u.CRH())&&(e.optionGroups=n))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&u.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(u.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),u.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[u._Bn([{provide:f.Eo,useExisting:e},{provide:l.HF,useExisting:e}]),u.qOj],ngContentSelectors:U,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(t,e){if(1&t&&(u.F$t(q),u.TgZ(0,"div",0,1),u.NdJ("click",function(){return e.toggle()}),u.TgZ(3,"div",2),u.YNc(4,N,2,1,"span",3),u.YNc(5,Z,3,2,"span",4),u.qZA(),u.TgZ(6,"div",5),u._UZ(7,"div",6),u.qZA(),u.qZA(),u.YNc(8,B,4,14,"ng-template",7),u.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){var i=u.MAs(1);u.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),u.xp6(3),u.Q6J("ngSwitch",e.empty),u.uIk("id",e._valueId),u.xp6(1),u.Q6J("ngSwitchCase",!0),u.xp6(1),u.Q6J("ngSwitchCase",!1),u.xp6(3),u.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[r.xu,a.RF,a.n9,r.pI,a.ED,a.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[H.transformPanelWrap,H.transformPanel]},changeDetection:0}),e}(),tt=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({providers:[V],imports:[[a.ez,r.U8,l.Ng,l.BQ],p.ZD,f.lN,l.Ng,l.BQ]}),t}()},25122:function(t,e,i){"use strict";i.d(e,{JX:function(){return Y},TM:function(){return V},Rh:function(){return G},SJ:function(){return K}});var n=i(11353),r=i(4253),a=i(61511),u=i(31572),c=i(71522),l=i(19861),h=i(75842),d=i(55959),f=i(87254),p=i(31906),g=i(43835),m=i(79996),b=i(88414),w=i(25416),_=i(98720),A=i(90611),k=i(56238),T=i(47701),C=i(10709),S=i(43490),E=i(24621),x=i(22526),R=["*"];function I(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div",2),u.NdJ("click",function(){return u.CHM(i),u.oxw()._onBackdropClicked()}),u.qZA()}if(2&t){var n=u.oxw();u.ekj("mat-drawer-shown",n._isShowingBackdrop())}}function O(t,e){1&t&&(u.TgZ(0,"mat-drawer-content"),u.Hsn(1,2),u.qZA())}var P=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],D=["mat-drawer","mat-drawer-content","*"];function M(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"div",2),u.NdJ("click",function(){return u.CHM(i),u.oxw()._onBackdropClicked()}),u.qZA()}if(2&t){var n=u.oxw();u.ekj("mat-drawer-shown",n._isShowingBackdrop())}}function L(t,e){1&t&&(u.TgZ(0,"mat-sidenav-content",3),u.Hsn(1,2),u.qZA())}var N=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],z=["mat-sidenav","mat-sidenav-content","*"],F=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",Z={transformDrawer:(0,C.X$)("transform",[(0,C.SB)("open, open-instant",(0,C.oB)({transform:"none",visibility:"visible"})),(0,C.SB)("void",(0,C.oB)({"box-shadow":"none",visibility:"hidden"})),(0,C.eR)("void => open-instant",(0,C.jt)("0ms")),(0,C.eR)("void <=> open, open-instant => void",(0,C.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},B=new u.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),q=new u.OlP("MAT_DRAWER_CONTAINER"),U=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o,a){var s;return v(this,i),(s=e.call(this,r,o,a))._changeDetectorRef=t,s._container=n,s}return y(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._container._contentMarginChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})}}]),i}(r.PQ);return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.sBO),u.Y36((0,u.Gpc)(function(){return j})),u.Y36(u.SBq),u.Y36(r.mF),u.Y36(u.R0b))},t.\u0275cmp=u.Xpm({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&u.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[u.qOj],ngContentSelectors:R,decls:1,vars:0,template:function(t,e){1&t&&(u.F$t(),u.Hsn(0))},encapsulation:2,changeDetection:0}),t}(),H=function(){var t=function(){function t(e,i,n,r,o,a,s){var c=this;v(this,t),this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=n,this._platform=r,this._ngZone=o,this._doc=a,this._container=s,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new d.xQ,this._animationEnd=new d.xQ,this._animationState="void",this.openedChange=new u.vpe(!0),this._openedStream=this.openedChange.pipe((0,g.h)(function(t){return t}),(0,m.U)(function(){})),this.openedStart=this._animationStarted.pipe((0,g.h)(function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")}),(0,b.h)(void 0)),this._closedStream=this.openedChange.pipe((0,g.h)(function(t){return!t}),(0,m.U)(function(){})),this.closedStart=this._animationStarted.pipe((0,g.h)(function(t){return t.fromState!==t.toState&&"void"===t.toState}),(0,b.h)(void 0)),this._destroyed=new d.xQ,this.onPositionChanged=new u.vpe,this._modeChanged=new d.xQ,this.openedChange.subscribe(function(t){t?(c._doc&&(c._elementFocusedBeforeDrawerWasOpened=c._doc.activeElement),c._takeFocus()):c._isFocusWithinDrawer()&&c._restoreFocus()}),this._ngZone.runOutsideAngular(function(){(0,f.R)(c._elementRef.nativeElement,"keydown").pipe((0,g.h)(function(t){return t.keyCode===h.hY&&!c.disableClose&&!(0,h.Vb)(t)}),(0,w.R)(c._destroyed)).subscribe(function(t){return c._ngZone.run(function(){c.close(),t.stopPropagation(),t.preventDefault()})})}),this._animationEnd.pipe((0,_.x)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){var e=t.fromState,i=t.toState;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&c.openedChange.emit(c._opened)})}return y(t,[{key:"position",get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(t){this._disableClose=(0,l.Ig)(t)}},{key:"autoFocus",get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=(0,l.Ig)(t)}},{key:"opened",get:function(){return this._opened},set:function(t){this.toggle((0,l.Ig)(t))}},{key:"_takeFocus",value:function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()})}},{key:"_restoreFocus",value:function(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}},{key:"_isFocusWithinDrawer",value:function(){var t,e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(t){return this.toggle(!0,t)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0)}},{key:"toggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,e=arguments.length>1?arguments[1]:void 0;return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}},{key:"_setOpen",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"program";return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(function(t){i.openedChange.pipe((0,A.q)(1)).subscribe(function(e){return t(e?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(t){this._animationStarted.next(t)}},{key:"_animationDoneListener",value:function(t){this._animationEnd.next(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.SBq),u.Y36(E.qV),u.Y36(E.tE),u.Y36(n.t4),u.Y36(u.R0b),u.Y36(a.K0,8),u.Y36(q,8))},t.\u0275cmp=u.Xpm({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&u.WFA("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(u.uIk("align",null),u.d8E("@transform",e._animationState),u.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:R,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(u.F$t(),u.TgZ(0,"div",0),u.Hsn(1),u.qZA())},directives:[r.PQ],encapsulation:2,data:{animation:[Z.transformDrawer]},changeDetection:0}),t}(),j=function(){var t=function(){function t(e,i,n,r,o){var a=this,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6?arguments[6]:void 0;v(this,t),this._dir=e,this._element=i,this._ngZone=n,this._changeDetectorRef=r,this._animationMode=c,this._drawers=new u.n_E,this.backdropClick=new u.vpe,this._destroyed=new d.xQ,this._doCheckSubject=new d.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new d.xQ,e&&e.change.pipe((0,w.R)(this._destroyed)).subscribe(function(){a._validateDrawers(),a.updateContentMargins()}),o.change().pipe((0,w.R)(this._destroyed)).subscribe(function(){return a.updateContentMargins()}),this._autosize=s}return y(t,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(t){this._autosize=(0,l.Ig)(t)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:(0,l.Ig)(t)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var t=this;this._allDrawers.changes.pipe((0,k.O)(this._allDrawers),(0,w.R)(this._destroyed)).subscribe(function(e){t._drawers.reset(e.filter(function(e){return!e._container||e._container===t})),t._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,k.O)(null)).subscribe(function(){t._validateDrawers(),t._drawers.forEach(function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)}),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._doCheckSubject.pipe((0,T.b)(10),(0,w.R)(t._destroyed)).subscribe(function(){return t.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(t){return t.open()})}},{key:"close",value:function(){this._drawers.forEach(function(t){return t.close()})}},{key:"updateContentMargins",value:function(){var t=this,e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){var n=this._left._getWidth();e+=n,i-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){var r=this._right._getWidth();i+=r,e-=r}i=i||null,(e=e||null)===this._contentMargins.left&&i===this._contentMargins.right||(this._contentMargins={left:e,right:i},this._ngZone.run(function(){return t._contentMarginChanges.next(t._contentMargins)}))}},{key:"ngDoCheck",value:function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return t._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(t){var e=this;t._animationStarted.pipe((0,g.h)(function(t){return t.fromState!==t.toState}),(0,w.R)(this._drawers.changes)).subscribe(function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe((0,w.R)(this._drawers.changes)).subscribe(function(){return e._setContainerClass(t.opened)})}},{key:"_watchDrawerPosition",value:function(t){var e=this;t&&t.onPositionChanged.pipe((0,w.R)(this._drawers.changes)).subscribe(function(){e._ngZone.onMicrotaskEmpty.pipe((0,A.q)(1)).subscribe(function(){e._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(t){var e=this;t&&t._modeChanged.pipe((0,w.R)((0,p.T)(this._drawers.changes,this._destroyed))).subscribe(function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(t){var e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}},{key:"_validateDrawers",value:function(){var t=this;this._start=this._end=null,this._drawers.forEach(function(e){"end"==e.position?t._end=e:t._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)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var t=this;[this._start,this._end].filter(function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)}).forEach(function(t){return t._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(t){return"side"!==t.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(t){return null!=t&&t.opened}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(x.Is,8),u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(u.sBO),u.Y36(r.rL),u.Y36(B),u.Y36(S.Qb,8))},t.\u0275cmp=u.Xpm({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){var n;(1&t&&(u.Suo(i,U,5),u.Suo(i,H,5)),2&t)&&(u.iGM(n=u.CRH())&&(e._content=n.first),u.iGM(n=u.CRH())&&(e._allDrawers=n))},viewQuery:function(t,e){var i;(1&t&&u.Gf(U,5),2&t)&&(u.iGM(i=u.CRH())&&(e._userContent=i.first))},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[u._Bn([{provide:q,useExisting:t}])],ngContentSelectors:D,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(t,e){1&t&&(u.F$t(P),u.YNc(0,I,1,2,"div",0),u.Hsn(1),u.Hsn(2,1),u.YNc(3,O,2,0,"mat-drawer-content",1)),2&t&&(u.Q6J("ngIf",e.hasBackdrop),u.xp6(3),u.Q6J("ngIf",!e._content))},directives:[a.O5,U],styles:[F],encapsulation:2,changeDetection:0}),t}(),G=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o,a){return v(this,i),e.call(this,t,n,r,o,a)}return i}(U);return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.sBO),u.Y36((0,u.Gpc)(function(){return V})),u.Y36(u.SBq),u.Y36(r.mF),u.Y36(u.R0b))},t.\u0275cmp=u.Xpm({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&u.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[u.qOj],ngContentSelectors:R,decls:1,vars:0,template:function(t,e){1&t&&(u.F$t(),u.Hsn(0))},encapsulation:2,changeDetection:0}),t}(),Y=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return y(i,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=(0,l.Ig)(t)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=(0,l.su)(t)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=(0,l.su)(t)}}]),i}(H);return e.\u0275fac=function(i){return(t||(t=u.n5z(e)))(i||e)},e.\u0275cmp=u.Xpm({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(u.uIk("align",null),u.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),u.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[u.qOj],ngContentSelectors:R,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(u.F$t(),u.TgZ(0,"div",0),u.Hsn(1),u.qZA())},directives:[r.PQ],encapsulation:2,data:{animation:[Z.transformDrawer]},changeDetection:0}),e}(),V=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(j);return e.\u0275fac=function(i){return(t||(t=u.n5z(e)))(i||e)},e.\u0275cmp=u.Xpm({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){var n;(1&t&&(u.Suo(i,G,5),u.Suo(i,Y,5)),2&t)&&(u.iGM(n=u.CRH())&&(e._content=n.first),u.iGM(n=u.CRH())&&(e._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[u._Bn([{provide:q,useExisting:e}]),u.qOj],ngContentSelectors:z,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(u.F$t(N),u.YNc(0,M,1,2,"div",0),u.Hsn(1),u.Hsn(2,1),u.YNc(3,L,2,0,"mat-sidenav-content",1)),2&t&&(u.Q6J("ngIf",e.hasBackdrop),u.xp6(3),u.Q6J("ngIf",!e._content))},directives:[a.O5,G,r.PQ],styles:[F],encapsulation:2,changeDetection:0}),e}(),K=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({imports:[[a.ez,c.BQ,n.ud,r.ZD],r.ZD,c.BQ]}),t}()},27521:function(t,e,i){"use strict";i.d(e,{Rr:function(){return T},rP:function(){return S}});var n=i(36337),r=i(31572),a=i(71522),u=i(19861),c=i(16073),l=i(43490),h=i(24621),d=["thumbContainer"],f=["toggleBar"],p=["input"],g=function(t){return{enterDuration:t}},m=["*"],b=new r.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),w=0,_={provide:c.JU,useExisting:(0,r.Gpc)(function(){return T}),multi:!0},A=function t(e,i){v(this,t),this.source=e,this.checked=i},k=(0,a.sb)((0,a.pj)((0,a.Kr)((0,a.Id)(function t(e){v(this,t),this._elementRef=e})))),T=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,o,a,s,u){var c;return v(this,i),(c=e.call(this,t))._focusMonitor=n,c._changeDetectorRef=o,c.defaults=s,c._onChange=function(t){},c._onTouched=function(){},c._uniqueId="mat-slide-toggle-"+ ++w,c._required=!1,c._checked=!1,c.name=null,c.id=c._uniqueId,c.labelPosition="after",c.ariaLabel=null,c.ariaLabelledby=null,c.change=new r.vpe,c.toggleChange=new r.vpe,c.tabIndex=parseInt(a)||0,c.color=c.defaultColor=s.color||"accent",c._noopAnimations="NoopAnimations"===u,c}return y(i,[{key:"required",get:function(){return this._required},set:function(t){this._required=(0,u.Ig)(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=(0,u.Ig)(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){"keyboard"===e||"program"===e?t._inputElement.nativeElement.focus():e||Promise.resolve().then(function(){return t._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new A(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),i}(k);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(h.tE),r.Y36(r.sBO),r.$8M("tabindex"),r.Y36(b),r.Y36(l.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var i;(1&t&&(r.Gf(d,5),r.Gf(f,5),r.Gf(p,5)),2&t)&&(r.iGM(i=r.CRH())&&(e._thumbEl=i.first),r.iGM(i=r.CRH())&&(e._thumbBarEl=i.first),r.iGM(i=r.CRH())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Ikx("id",e.id),r.uIk("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),r.ekj("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[r._Bn([_]),r.qOj],ngContentSelectors:m,decls:16,vars:19,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(r.F$t(),r.TgZ(0,"label",0,1),r.TgZ(2,"div",2,3),r.TgZ(4,"input",4,5),r.NdJ("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),r.qZA(),r.TgZ(6,"div",6,7),r._UZ(8,"div",8),r.TgZ(9,"div",9),r._UZ(10,"div",10),r.qZA(),r.qZA(),r.qZA(),r.TgZ(11,"span",11,12),r.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),r.TgZ(13,"span",13),r._uU(14,"\xa0"),r.qZA(),r.Hsn(15),r.qZA(),r.qZA()),2&t){var i=r.MAs(1),n=r.MAs(12);r.uIk("for",e.inputId),r.xp6(2),r.ekj("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),r.xp6(2),r.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),r.uIk("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),r.xp6(5),r.Q6J("matRippleTrigger",i)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r.VKq(17,g,e._noopAnimations?0:150))}},directives:[a.wG,n.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{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%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t}(),C=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}(),S=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[C,a.si,a.BQ,n.Q8],C,a.BQ]}),t}()},71403:function(t,e,i){"use strict";i.d(e,{ZX:function(){return c}});var n=i(2522),r=i(26899),o=i(61511),a=i(31572),s=i(71522),u=i(15980);i(55959),i(90611),i(10709),i(11353);var c=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[n.U8,r.eL,o.ez,u.ot,s.BQ],s.BQ]}),t}()},58623:function(t,e,i){"use strict";i.d(e,{YE:function(){return _},nU:function(){return E},JX:function(){return x}});var n=i(31572),r=i(19861),a=i(71522),u=i(75842),c=i(55959),l=i(31906),h=i(10709),d=i(61511),f=i(24621),p=["mat-sort-header",""];function g(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){return n.CHM(i),n.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return n.CHM(i),n.oxw()._disableViewStateAnimation=!1}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6),n._UZ(4,"div",7),n._UZ(5,"div",8),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",r._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",r._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",r._getArrowDirectionState())}}var m=["*"],b=new n.OlP("MAT_SORT_DEFAULT_OPTIONS"),w=(0,a.dB)((0,a.Id)(function t(){v(this,t)})),_=function(){var t=function(t){o(i,t);var e=s(i);function i(t){var r;return v(this,i),(r=e.call(this))._defaultOptions=t,r.sortables=new Map,r._stateChanges=new c.xQ,r.start="asc",r._direction="",r.sortChange=new n.vpe,r}return y(i,[{key:"direction",get:function(){return this._direction},set:function(t){this._direction=t}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=(0,r.Ig)(t)}},{key:"register",value:function(t){this.sortables.set(t.id,t)}},{key:"deregister",value:function(t){this.sortables.delete(t.id)}},{key:"sort",value:function(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(t){var e,i,n;if(!t)return"";var r=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear),o=function(t,e){var i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,r),a=o.indexOf(this.direction)+1;return a>=o.length&&(a=0),o[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(w);return t.\u0275fac=function(e){return new(e||t)(n.Y36(b,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.qOj,n.TTD]}),t}(),A=a.mZ.ENTERING+" "+a.yN.STANDARD_CURVE,k={indicator:(0,h.X$)("indicator",[(0,h.SB)("active-asc, asc",(0,h.oB)({transform:"translateY(0px)"})),(0,h.SB)("active-desc, desc",(0,h.oB)({transform:"translateY(10px)"})),(0,h.eR)("active-asc <=> active-desc",(0,h.jt)(A))]),leftPointer:(0,h.X$)("leftPointer",[(0,h.SB)("active-asc, asc",(0,h.oB)({transform:"rotate(-45deg)"})),(0,h.SB)("active-desc, desc",(0,h.oB)({transform:"rotate(45deg)"})),(0,h.eR)("active-asc <=> active-desc",(0,h.jt)(A))]),rightPointer:(0,h.X$)("rightPointer",[(0,h.SB)("active-asc, asc",(0,h.oB)({transform:"rotate(45deg)"})),(0,h.SB)("active-desc, desc",(0,h.oB)({transform:"rotate(-45deg)"})),(0,h.eR)("active-asc <=> active-desc",(0,h.jt)(A))]),arrowOpacity:(0,h.X$)("arrowOpacity",[(0,h.SB)("desc-to-active, asc-to-active, active",(0,h.oB)({opacity:1})),(0,h.SB)("desc-to-hint, asc-to-hint, hint",(0,h.oB)({opacity:.54})),(0,h.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,h.oB)({opacity:0})),(0,h.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,h.jt)("0ms")),(0,h.eR)("* <=> *",(0,h.jt)(A))]),arrowPosition:(0,h.X$)("arrowPosition",[(0,h.eR)("* => desc-to-hint, * => desc-to-active",(0,h.jt)(A,(0,h.F4)([(0,h.oB)({transform:"translateY(-25%)"}),(0,h.oB)({transform:"translateY(0)"})]))),(0,h.eR)("* => hint-to-desc, * => active-to-desc",(0,h.jt)(A,(0,h.F4)([(0,h.oB)({transform:"translateY(0)"}),(0,h.oB)({transform:"translateY(25%)"})]))),(0,h.eR)("* => asc-to-hint, * => asc-to-active",(0,h.jt)(A,(0,h.F4)([(0,h.oB)({transform:"translateY(25%)"}),(0,h.oB)({transform:"translateY(0)"})]))),(0,h.eR)("* => hint-to-asc, * => active-to-asc",(0,h.jt)(A,(0,h.F4)([(0,h.oB)({transform:"translateY(0)"}),(0,h.oB)({transform:"translateY(-25%)"})]))),(0,h.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,h.oB)({transform:"translateY(0)"})),(0,h.SB)("hint-to-desc, active-to-desc, desc",(0,h.oB)({transform:"translateY(-25%)"})),(0,h.SB)("hint-to-asc, active-to-asc, asc",(0,h.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,h.X$)("allowChildren",[(0,h.eR)("* <=> *",[(0,h.IO)("@*",(0,h.pV)(),{optional:!0})])])},T=function(){var t=function t(){v(this,t),this.changes=new c.xQ};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),C={provide:T,deps:[[new n.FiY,new n.tp0,T]],useFactory:function(t){return t||new T}},S=(0,a.Id)(function t(){v(this,t)}),E=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o,a,s){var u;return v(this,i),(u=e.call(this))._intl=t,u._changeDetectorRef=n,u._sort=r,u._columnDef=o,u._focusMonitor=a,u._elementRef=s,u._showIndicatorHint=!1,u._viewState={},u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",u._handleStateChanges(),u}return y(i,[{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=(0,r.Ig)(t)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){var i=!!e;i!==t._showIndicatorHint&&(t._setIndicatorHintVisible(i),t._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(t){this._isDisabled()||t.keyCode!==u.L_&&t.keyCode!==u.K5||(t.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var t=this._viewState.fromState;return(t?"".concat(t,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var t=this;this._rerenderSubscription=(0,l.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){t._isSorted()&&(t._updateArrowDirection(),"hint"!==t._viewState.toState&&"active"!==t._viewState.toState||(t._disableViewStateAnimation=!0),t._setAnimationTransitionState({fromState:t._arrowDirection,toState:"active"}),t._showIndicatorHint=!1),!t._isSorted()&&t._viewState&&"active"===t._viewState.toState&&(t._disableViewStateAnimation=!1,t._setAnimationTransitionState({fromState:"active",toState:t._arrowDirection})),t._changeDetectorRef.markForCheck()})}}]),i}(S);return t.\u0275fac=function(e){return new(e||t)(n.Y36(T),n.Y36(n.sBO),n.Y36(_,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36(f.tE),n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(n.uIk("aria-sort",e._getAriaSortAttribute()),n.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[n.qOj],attrs:p,ngContentSelectors:m,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,g,6,6,"div",2),n.qZA()),2&t&&(n.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),n.uIk("tabindex",e._isDisabled()?null:0),n.xp6(3),n.Q6J("ngIf",e._renderArrow()))},directives:[d.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[k.indicator,k.leftPointer,k.rightPointer,k.arrowOpacity,k.arrowPosition,k.allowChildren]},changeDetection:0}),t}(),x=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[C],imports:[[d.ez,a.BQ]]}),t}()},70663:function(t,e,i){"use strict";i.d(e,{C0:function(){return ft},VY:function(){return rt},Vq:function(){return mt},T5:function(){return wt},Ic:function(){return yt},fd:function(){return bt}});var r=i(26899),a=i(24621),u=i(22526),c=i(19861),l=i(75842),d=i(61511),f=i(31572),p=i(55959),g=i(40878),m=i(56238),b=i(25416);function w(t,e){1&t&&f.Hsn(0)}var _=["*"],A=function(){var t=function(){function t(e){v(this,t),this._elementRef=e}return y(t,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Y36(f.SBq))},t.\u0275dir=f.lG2({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t}(),k=function(){var t=function t(e){v(this,t),this.template=e};return t.\u0275fac=function(e){return new(e||t)(f.Y36(f.Rgc))},t.\u0275dir=f.lG2({type:t,selectors:[["","cdkStepLabel",""]]}),t}(),T=0,C=new f.OlP("STEPPER_GLOBAL_OPTIONS"),S=function(){var t=function(){function t(e,i){v(this,t),this._stepper=e,this.interacted=!1,this.interactedStream=new f.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}return y(t,[{key:"editable",get:function(){return this._editable},set:function(t){this._editable=(0,c.Ig)(t)}},{key:"optional",get:function(){return this._optional},set:function(t){this._optional=(0,c.Ig)(t)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(t){this._completedOverride=(0,c.Ig)(t)}},{key:"_getDefaultCompleted",value:function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}},{key:"hasError",get:function(){return null==this._customError?this._getDefaultError():this._customError},set:function(t){this._customError=(0,c.Ig)(t)}},{key:"_getDefaultError",value:function(){return this.stepControl&&this.stepControl.invalid&&this.interacted}},{key:"select",value:function(){this._stepper.selected=this}},{key:"reset",value:function(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}},{key:"ngOnChanges",value:function(){this._stepper._stateChanged()}},{key:"_markAsInteracted",value:function(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Y36((0,f.Gpc)(function(){return E})),f.Y36(C,8))},t.\u0275cmp=f.Xpm({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){var n;(1&t&&f.Suo(i,k,5),2&t)&&(f.iGM(n=f.CRH())&&(e.stepLabel=n.first))},viewQuery:function(t,e){var i;(1&t&&f.Gf(f.Rgc,7),2&t)&&(f.iGM(i=f.CRH())&&(e.content=i.first))},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[f.TTD],ngContentSelectors:_,decls:1,vars:0,template:function(t,e){1&t&&(f.F$t(),f.YNc(0,w,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t}(),E=function(){var t=function(){function t(e,i,n,r){v(this,t),this._dir=e,this._changeDetectorRef=i,this._elementRef=n,this._destroyed=new p.xQ,this.steps=new f.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new f.vpe,this._orientation="horizontal",this._groupId=T++,this._document=r}return y(t,[{key:"linear",get:function(){return this._linear},set:function(t){this._linear=(0,c.Ig)(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){var e,i=(0,c.su)(t);this.steps&&this._steps?(this._isValidIndex(t),null===(e=this.selected)||void 0===e||e._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=i}},{key:"selected",get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0},set:function(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}},{key:"orientation",get:function(){return this._orientation},set:function(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===t)}},{key:"ngAfterContentInit",value:function(){var t=this;this._steps.changes.pipe((0,m.O)(this._steps),(0,b.R)(this._destroyed)).subscribe(function(e){t.steps.reset(e.filter(function(e){return e._stepper===t})),t.steps.notifyOnChanges()})}},{key:"ngAfterViewInit",value:function(){var t=this;this._keyManager=new a.Em(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,g.of)()).pipe((0,m.O)(this._layoutDirection()),(0,b.R)(this._destroyed)).subscribe(function(e){return t._keyManager.withHorizontalOrientation(e)}),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(function(){t.selected||(t._selectedIndex=Math.max(t._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}},{key:"ngOnDestroy",value:function(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"next",value:function(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}},{key:"previous",value:function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}},{key:"reset",value:function(){this._updateSelectedItemIndex(0),this.steps.forEach(function(t){return t.reset()}),this._stateChanged()}},{key:"_getStepLabelId",value:function(t){return"cdk-step-label-".concat(this._groupId,"-").concat(t)}},{key:"_getStepContentId",value:function(t){return"cdk-step-content-".concat(this._groupId,"-").concat(t)}},{key:"_stateChanged",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_getAnimationDirection",value:function(t){var e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}},{key:"_getIndicatorType",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}},{key:"_getDefaultIndicatorLogic",value:function(t,e){return t._showError&&t.hasError&&!e?"error":!t.completed||e?"number":t.editable?"edit":"done"}},{key:"_getGuidelineLogic",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number";return t._showError&&t.hasError&&!e?"error":t.completed&&!e?"done":t.completed&&e?i:t.editable&&e?"edit":i}},{key:"_isCurrentStep",value:function(t){return this._selectedIndex===t}},{key:"_getFocusIndex",value:function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}},{key:"_updateSelectedItemIndex",value:function(t){var e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}},{key:"_onKeydown",value:function(t){var e=(0,l.Vb)(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==l.L_&&i!==l.K5?n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}},{key:"_anyControlsInvalidOrPending",value:function(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(function(t){var e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}},{key:"_layoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}},{key:"_isValidIndex",value:function(t){return t>-1&&(!this.steps||t *",(0,F.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,F.X$)("verticalStepTransition",[(0,F.SB)("previous",(0,F.oB)({height:"0px",visibility:"hidden"})),(0,F.SB)("next",(0,F.oB)({height:"0px",visibility:"hidden"})),(0,F.SB)("current",(0,F.oB)({height:"*",visibility:"inherit"})),(0,F.eR)("* <=> current",(0,F.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},ht=function(){var t=function t(e){v(this,t),this.templateRef=e};return t.\u0275fac=function(e){return new(e||t)(f.Y36(f.Rgc))},t.\u0275dir=f.lG2({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t}(),dt=function(){var t=function t(e){v(this,t),this._template=e};return t.\u0275fac=function(e){return new(e||t)(f.Y36(f.Rgc))},t.\u0275dir=f.lG2({type:t,selectors:[["ng-template","matStepContent",""]]}),t}(),ft=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t,o))._errorStateMatcher=n,a._viewContainerRef=r,a._isSelected=M.w.EMPTY,a}return y(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._isSelected=this._stepper.steps.changes.pipe((0,L.w)(function(){return t._stepper.selectionChange.pipe((0,N.U)(function(e){return e.selectedStep===t}),(0,m.O)(t._stepper.selected===t))})).subscribe(function(e){e&&t._lazyContent&&!t._portal&&(t._portal=new r.UE(t._lazyContent._template,t._viewContainerRef))})}},{key:"ngOnDestroy",value:function(){this._isSelected.unsubscribe()}},{key:"isErrorState",value:function(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}]),i}(S);return t.\u0275fac=function(e){return new(e||t)(f.Y36((0,f.Gpc)(function(){return mt})),f.Y36(P.rD,4),f.Y36(f.s_b),f.Y36(C,8))},t.\u0275cmp=f.Xpm({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){var n;(1&t&&(f.Suo(i,rt,5),f.Suo(i,dt,5)),2&t)&&(f.iGM(n=f.CRH())&&(e.stepLabel=n.first),f.iGM(n=f.CRH())&&(e._lazyContent=n.first))},inputs:{color:"color"},exportAs:["matStep"],features:[f._Bn([{provide:P.rD,useExisting:t},{provide:S,useExisting:t}]),f.qOj],ngContentSelectors:J,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(f.F$t(),f.YNc(0,K,2,1,"ng-template"))},directives:[r.Pl],encapsulation:2,changeDetection:0}),t}(),pt=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(E);return e.\u0275fac=function(i){return(t||(t=f.n5z(e)))(i||e)},e.\u0275dir=f.lG2({type:e,features:[f.qOj]}),e}(),gt=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(pt);return e.\u0275fac=function(i){return(t||(t=f.n5z(e)))(i||e)},e.\u0275dir=f.lG2({type:e,selectors:[["mat-horizontal-stepper"]],features:[f.qOj]}),e}(),vt=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(pt);return e.\u0275fac=function(i){return(t||(t=f.n5z(e)))(i||e)},e.\u0275dir=f.lG2({type:e,selectors:[["mat-vertical-stepper"]],features:[f.qOj]}),e}(),mt=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o){var a;v(this,i),(a=e.call(this,t,n,r,o)).steps=new f.n_E,a.animationDone=new f.vpe,a.labelPosition="end",a._iconOverrides={},a._animationDone=new p.xQ;var s=r.nativeElement.nodeName.toLowerCase();return a.orientation="mat-vertical-stepper"===s?"vertical":"horizontal",a}return y(i,[{key:"ngAfterContentInit",value:function(){var t=this;n(h(i.prototype),"ngAfterContentInit",this).call(this),this._icons.forEach(function(e){var i=e.name,n=e.templateRef;return t._iconOverrides[i]=n}),this.steps.changes.pipe((0,b.R)(this._destroyed)).subscribe(function(){t._stateChanged()}),this._animationDone.pipe((0,z.x)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}),(0,b.R)(this._destroyed)).subscribe(function(e){"current"===e.toState&&t.animationDone.emit()})}}]),i}(E);return t.\u0275fac=function(e){return new(e||t)(f.Y36(u.Is,8),f.Y36(f.sBO),f.Y36(f.SBq),f.Y36(d.K0))},t.\u0275cmp=f.Xpm({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,e,i){var n;(1&t&&(f.Suo(i,ft,5),f.Suo(i,ht,5)),2&t)&&(f.iGM(n=f.CRH())&&(e._steps=n),f.iGM(n=f.CRH())&&(e._icons=n))},viewQuery:function(t,e){var i;(1&t&&f.Gf(ct,5),2&t)&&(f.iGM(i=f.CRH())&&(e._stepHeader=i))},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,e){2&t&&(f.uIk("aria-orientation",e.orientation),f.ekj("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[f._Bn([{provide:E,useExisting:t},{provide:gt,useExisting:t},{provide:vt,useExisting:t}]),f.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(t,e){1&t&&(f.ynx(0,0),f.YNc(1,tt,5,2,"ng-container",1),f.YNc(2,it,2,1,"ng-container",1),f.BQk(),f.YNc(3,nt,1,22,"ng-template",null,2,f.W1O)),2&t&&(f.Q6J("ngSwitch",e.orientation),f.xp6(1),f.Q6J("ngSwitchCase","horizontal"),f.xp6(1),f.Q6J("ngSwitchCase","vertical"))},directives:[d.RF,d.n9,d.sg,d.tP,d.O5,ct],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[lt.horizontalStepTransition,lt.verticalStepTransition]},changeDetection:0}),t}(),yt=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(x);return e.\u0275fac=function(i){return(t||(t=f.n5z(e)))(i||e)},e.\u0275dir=f.lG2({type:e,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,e){2&t&&f.Ikx("type",e.type)},inputs:{type:"type"},features:[f.qOj]}),e}(),bt=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(R);return e.\u0275fac=function(i){return(t||(t=f.n5z(e)))(i||e)},e.\u0275dir=f.lG2({type:e,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&f.Ikx("type",e.type)},inputs:{type:"type"},features:[f.qOj]}),e}(),wt=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=f.oAB({type:t}),t.\u0275inj=f.cJS({providers:[at,P.rD],imports:[[P.BQ,d.ez,r.eL,O.ot,I,D.Ps,P.si],P.BQ]}),t}()},67033:function(t,e,i){"use strict";i.d(e,{ev:function(){return yt},Dz:function(){return pt},w1:function(){return vt},ge:function(){return mt},fO:function(){return gt},XQ:function(){return _t},as:function(){return bt},Gk:function(){return At},nj:function(){return wt},BZ:function(){return ft},by:function(){return Tt},p0:function(){return kt}});var a=i(19861),u=i(4230),c=i(31572),l=i(22526),p=i(11353),g=i(4253),m=i(61511),b=i(55959),w=i(19764),_=i(78512),A=i(4710),k=i(40878),T=i(25416),C=i(90611),S=[[["caption"]],[["colgroup"],["col"]]],E=["caption","colgroup, col"];function x(t){return function(t){o(i,t);var e=s(i);function i(){var t;v(this,i);for(var n=arguments.length,r=new Array(n),o=0;o4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6?arguments[6]:void 0;v(this,t),this._isNativeHtmlTable=e,this._stickCellCss=i,this.direction=n,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(i,"-border-elem-top"),bottom:"".concat(i,"-border-elem-bottom"),left:"".concat(i,"-border-elem-left"),right:"".concat(i,"-border-elem-right")}}return y(t,[{key:"clearStickyPositioning",value:function(t,e){var i,n=this,r=[],o=f(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(a.nodeType===a.ELEMENT_NODE){r.push(a);for(var s=0;s3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(e.some(function(t){return t})||i.some(function(t){return t}))){var o=t[0],a=o.children.length,s=this._getCellWidths(o,r),u=this._getStickyStartColumnPositions(s,e),c=this._getStickyEndColumnPositions(s,i),l=e.lastIndexOf(!0),h=i.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var r,o="rtl"===n.direction,d=o?"right":"left",p=o?"left":"right",g=f(t);try{for(g.s();!(r=g.n()).done;)for(var v=r.value,m=0;m1&&void 0!==arguments[1])||arguments[1];if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var i=[],n=t.children,r=0;r0;r--)e[r]&&(i[r]=n,n+=t[r]);return i}}]),t}(),$=new c.OlP("CDK_SPL"),tt=function(){var t=function t(e,i){v(this,t),this.viewContainer=e,this.elementRef=i};return t.\u0275fac=function(e){return new(e||t)(c.Y36(c.s_b),c.Y36(c.SBq))},t.\u0275dir=c.lG2({type:t,selectors:[["","rowOutlet",""]]}),t}(),et=function(){var t=function t(e,i){v(this,t),this.viewContainer=e,this.elementRef=i};return t.\u0275fac=function(e){return new(e||t)(c.Y36(c.s_b),c.Y36(c.SBq))},t.\u0275dir=c.lG2({type:t,selectors:[["","headerRowOutlet",""]]}),t}(),it=function(){var t=function t(e,i){v(this,t),this.viewContainer=e,this.elementRef=i};return t.\u0275fac=function(e){return new(e||t)(c.Y36(c.s_b),c.Y36(c.SBq))},t.\u0275dir=c.lG2({type:t,selectors:[["","footerRowOutlet",""]]}),t}(),nt=function(){var t=function t(e,i){v(this,t),this.viewContainer=e,this.elementRef=i};return t.\u0275fac=function(e){return new(e||t)(c.Y36(c.s_b),c.Y36(c.SBq))},t.\u0275dir=c.lG2({type:t,selectors:[["","noDataRowOutlet",""]]}),t}(),rt=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c,l,h){v(this,t),this._differs=e,this._changeDetectorRef=i,this._elementRef=n,this._dir=o,this._platform=s,this._viewRepeater=u,this._coalescedStyleScheduler=c,this._viewportRuler=l,this._stickyPositioningListener=h,this._onDestroy=new b.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new _.X({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return y(t,[{key:"trackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"dataSource",get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(t){this._multiTemplateDataRows=(0,a.Ig)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(t){this._fixedLayout=(0,a.Ig)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(e,i){return t.trackBy?t.trackBy(i.dataIndex,i.data):i}),this._viewportRuler.change().pipe((0,T.R)(this._onDestroy)).subscribe(function(){t._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var 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()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,u.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,function(e,i,n){return t._getEmbeddedViewArgs(e.item,n)},function(t){return t.item.data},function(e){1===e.operation&&e.context&&t._renderCellTemplateForItem(e.record.item.rowDef,e.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(function(t){i.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(t){this._customColumnDefs.add(t)}},{key:"removeColumnDef",value:function(t){this._customColumnDefs.delete(t)}},{key:"addRowDef",value:function(t){this._customRowDefs.add(t)}},{key:"removeRowDef",value:function(t){this._customRowDefs.delete(t)}},{key:"addHeaderRowDef",value:function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(t){this._customNoDataRow=t}},{key:"updateStickyHeaderRowStyles",value:function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var i=this._headerRowDefs.map(function(t){return t.sticky});this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(function(t){return t.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var i=this._footerRowDefs.map(function(t){return t.sticky});this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(function(t){return t.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(d(e),d(i),d(n)),["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach(function(e,i){t._addStickyColumnStyles([e],t._headerRowDefs[i])}),this._rowDefs.forEach(function(e){for(var n=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(e,i){return t._renderRow(t._headerRowOutlet,e,i)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(e,i){return t._renderRow(t._footerRowOutlet,e,i)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(t,e){var i=this,n=Array.from(e.columns||[]).map(function(t){return i._columnDefsByName.get(t)}),r=n.map(function(t){return t.sticky}),o=n.map(function(t){return t.stickyEnd});this._stickyStyler.updateStickyColumns(t,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(t){for(var e=[],i=0;i3&&void 0!==arguments[3]?arguments[3]:{},r=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),r}},{key:"_renderCellTemplateForItem",value:function(t,e){var i,n=f(this._getCellTemplates(t));try{for(n.s();!(i=n.n()).done;){var r=i.value;V.mostRecentCellOutlet&&V.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,e)}}catch(o){n.e(o)}finally{n.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var t=this._rowOutlet.viewContainer,e=0,i=t.length;e0&&void 0!==arguments[0]?arguments[0]:[];return v(this,i),(t=e.call(this))._renderData=new _.X([]),t._filter=new _.X(""),t._internalPageChanges=new b.xQ,t._renderChangesSubscription=null,t.sortingDataAccessor=function(t,e){var i=t[e];if((0,a.t6)(i)){var n=Number(i);return n<9007199254740991?n:i}return i},t.sortData=function(e,i){var n=i.active,r=i.direction;return n&&""!=r?e.sort(function(e,i){var o=t.sortingDataAccessor(e,n),a=t.sortingDataAccessor(i,n),s=typeof o,u=typeof a;s!==u&&("number"===s&&(o+=""),"number"===u&&(a+=""));var c=0;return null!=o&&null!=a?o>a?c=1:o0)){var n=Math.ceil(i.length/i.pageSize)-1||0,r=Math.min(i.pageIndex,n);r!==i.pageIndex&&(i.pageIndex=r,e._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}]),i}(u.o2))},55109:function(t,e,i){"use strict";i.d(e,{uX:function(){return it},Vc:function(){return W},SP:function(){return dt},uD:function(){return $},Nh:function(){return bt}});var r=i(24621),a=i(36337),u=i(26899),c=i(61511),l=i(31572),f=i(71522),p=i(43490),g=i(55959),m=i(87570),b=i(31906),w=i(87254),_=i(40878),A=i(81110),k=i(10709),T=i(56238),C=i(98720),S=i(25416),E=i(19861),x=i(11353),R=i(75842),I=i(22526),O=i(4253);function P(t,e){1&t&&l.Hsn(0)}var D=["*"];function M(t,e){}var L=function(t){return{animationDuration:t}},N=function(t,e){return{value:t,params:e}},z=["tabBodyWrapper"],F=["tabHeader"];function Z(t,e){}function B(t,e){if(1&t&&l.YNc(0,Z,0,0,"ng-template",9),2&t){var i=l.oxw().$implicit;l.Q6J("cdkPortalOutlet",i.templateLabel)}}function q(t,e){if(1&t&&l._uU(0),2&t){var i=l.oxw().$implicit;l.Oqu(i.textLabel)}}function U(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div",6),l.NdJ("click",function(){var t=l.CHM(i),e=t.$implicit,n=t.index,r=l.oxw(),o=l.MAs(1);return r._handleClick(e,o,n)})("cdkFocusChange",function(t){var e=l.CHM(i).index;return l.oxw()._tabFocusChanged(t,e)}),l.TgZ(1,"div",7),l.YNc(2,B,1,1,"ng-template",8),l.YNc(3,q,1,1,"ng-template",8),l.qZA(),l.qZA()}if(2&t){var n=e.$implicit,r=e.index,o=l.oxw();l.ekj("mat-tab-label-active",o.selectedIndex==r),l.Q6J("id",o._getTabLabelId(r))("disabled",n.disabled)("matRippleDisabled",n.disabled||o.disableRipple),l.uIk("tabIndex",o._getTabIndex(n,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),l.xp6(2),l.Q6J("ngIf",n.templateLabel),l.xp6(1),l.Q6J("ngIf",!n.templateLabel)}}function H(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"mat-tab-body",10),l.NdJ("_onCentered",function(){return l.CHM(i),l.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(t){return l.CHM(i),l.oxw()._setTabBodyWrapperHeight(t)}),l.qZA()}if(2&t){var n=e.$implicit,r=e.index,o=l.oxw();l.ekj("mat-tab-body-active",o.selectedIndex==r),l.Q6J("id",o._getTabContentId(r))("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",o.animationDuration),l.uIk("aria-labelledby",o._getTabLabelId(r))}}var j=["tabListContainer"],G=["tabList"],Y=["nextPaginator"],V=["previousPaginator"],K=new l.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),J=function(){var t=function(){function t(e,i,n,r){v(this,t),this._elementRef=e,this._ngZone=i,this._inkBarPositioner=n,this._animationMode=r}return y(t,[{key:"alignToElement",value:function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e._setStyles(t)})}):this._setStyles(t)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(t){var e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.SBq),l.Y36(l.R0b),l.Y36(K),l.Y36(p.Qb,8))},t.\u0275dir=l.lG2({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),Q=new l.OlP("MatTabContent"),W=function(){var t=function t(e){v(this,t),this.template=e};return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.Rgc))},t.\u0275dir=l.lG2({type:t,selectors:[["","matTabContent",""]],features:[l._Bn([{provide:Q,useExisting:t}])]}),t}(),X=new l.OlP("MatTabLabel"),$=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(u.ig);return e.\u0275fac=function(i){return(t||(t=l.n5z(e)))(i||e)},e.\u0275dir=l.lG2({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[l._Bn([{provide:X,useExisting:e}]),l.qOj]}),e}(),tt=(0,f.Id)(function t(){v(this,t)}),et=new l.OlP("MAT_TAB_GROUP"),it=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this))._viewContainerRef=t,r._closestTabGroup=n,r.textLabel="",r._contentPortal=null,r._stateChanges=new g.xQ,r.position=null,r.origin=null,r.isActive=!1,r}return y(i,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){this._setTemplateLabelInput(t)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new u.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(t){t&&(this._templateLabel=t)}}]),i}(tt);return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.s_b),l.Y36(et,8))},t.\u0275cmp=l.Xpm({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){var n;(1&t&&(l.Suo(i,X,5),l.Suo(i,Q,7,l.Rgc)),2&t)&&(l.iGM(n=l.CRH())&&(e.templateLabel=n.first),l.iGM(n=l.CRH())&&(e._explicitContent=n.first))},viewQuery:function(t,e){var i;(1&t&&l.Gf(l.Rgc,7),2&t)&&(l.iGM(i=l.CRH())&&(e._implicitContent=i.first))},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[l.qOj,l.TTD],ngContentSelectors:D,decls:1,vars:0,template:function(t,e){1&t&&(l.F$t(),l.YNc(0,P,1,0,"ng-template"))},encapsulation:2}),t}(),nt={translateTab:(0,k.X$)("translateTab",[(0,k.SB)("center, void, left-origin-center, right-origin-center",(0,k.oB)({transform:"none"})),(0,k.SB)("left",(0,k.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,k.SB)("right",(0,k.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,k.eR)("* => left, * => right, left => center, right => center",(0,k.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,k.eR)("void => left-origin-center",[(0,k.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,k.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,k.eR)("void => right-origin-center",[(0,k.oB)({transform:"translate3d(100%, 0, 0)"}),(0,k.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},rt=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t,n,o))._host=r,a._centeringSub=m.w.EMPTY,a._leavingSub=m.w.EMPTY,a}return y(i,[{key:"ngOnInit",value:function(){var t=this;n(h(i.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,T.O)(this._host._isCenterPosition(this._host._position))).subscribe(function(e){e&&!t.hasAttached()&&t.attach(t._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){t.detach()})}},{key:"ngOnDestroy",value:function(){n(h(i.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),i}(u.Pl);return t.\u0275fac=function(e){return new(e||t)(l.Y36(l._Vd),l.Y36(l.s_b),l.Y36((0,l.Gpc)(function(){return at})),l.Y36(c.K0))},t.\u0275dir=l.lG2({type:t,selectors:[["","matTabBodyHost",""]],features:[l.qOj]}),t}(),ot=function(){var t=function(){function t(e,i,n){var r=this;v(this,t),this._elementRef=e,this._dir=i,this._dirChangeSubscription=m.w.EMPTY,this._translateTabComplete=new g.xQ,this._onCentering=new l.vpe,this._beforeCentering=new l.vpe,this._afterLeavingCenter=new l.vpe,this._onCentered=new l.vpe(!0),this.animationDuration="500ms",i&&(this._dirChangeSubscription=i.change.subscribe(function(t){r._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe((0,C.x)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){r._isCenterPosition(t.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(t.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return y(t,[{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}},{key:"_computePositionAnimationState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.SBq),l.Y36(I.Is,8),l.Y36(l.sBO))},t.\u0275dir=l.lG2({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}(),at=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r){return v(this,i),e.call(this,t,n,r)}return i}(ot);return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.SBq),l.Y36(I.Is,8),l.Y36(l.sBO))},t.\u0275cmp=l.Xpm({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var i;(1&t&&l.Gf(u.Pl,5),2&t)&&(l.iGM(i=l.CRH())&&(e._portalHost=i.first))},hostAttrs:[1,"mat-tab-body"],features:[l.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(l.TgZ(0,"div",0,1),l.NdJ("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),l.YNc(2,M,0,0,"ng-template",2),l.qZA()),2&t&&l.Q6J("@translateTab",l.WLB(3,N,e._position,l.VKq(1,L,e.animationDuration)))},directives:[rt],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[nt.translateTab]}}),t}(),st=new l.OlP("MAT_TABS_CONFIG"),ut=0,ct=function t(){v(this,t)},lt=(0,f.pj)((0,f.Kr)(function t(e){v(this,t),this._elementRef=e}),"primary"),ht=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t))._changeDetectorRef=n,a._animationMode=o,a._tabs=new l.n_E,a._indexToSelect=0,a._tabBodyWrapperHeight=0,a._tabsSubscription=m.w.EMPTY,a._tabLabelSubscription=m.w.EMPTY,a._selectedIndex=null,a.headerPosition="above",a.selectedIndexChange=new l.vpe,a.focusChange=new l.vpe,a.animationDone=new l.vpe,a.selectedTabChange=new l.vpe(!0),a._groupId=ut++,a.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",a.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,a.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,a}return y(i,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=(0,E.Ig)(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=(0,E.su)(t,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-".concat(this.backgroundColor)),t&&e.classList.add("mat-background-".concat(t)),this._backgroundColor=t}},{key:"ngAfterContentChecked",value:function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));var n=this._tabBodyWrapper.nativeElement;n.style.minHeight=n.clientHeight+"px"}Promise.resolve().then(function(){t._tabs.forEach(function(t,i){return t.isActive=i===e}),i||(t.selectedIndexChange.emit(e),t._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(i,n){i.position=n-e,null==t._selectedIndex||0!=i.position||i.origin||(i.origin=e-t._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),i=0;i.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t}(),ft=(0,f.Id)(function t(){v(this,t)}),pt=function(){var t=function(t){o(i,t);var e=s(i);function i(t){var n;return v(this,i),(n=e.call(this)).elementRef=t,n}return y(i,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),i}(ft);return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.SBq))},t.\u0275dir=l.lG2({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(l.uIk("aria-disabled",!!e.disabled),l.ekj("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[l.qOj]}),t}(),gt=(0,x.i$)({passive:!0}),vt=function(){var t=function(){function t(e,i,n,r,o,a,s){var u=this;v(this,t),this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=n,this._dir=r,this._ngZone=o,this._platform=a,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new g.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new g.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new l.vpe,this.indexFocused=new l.vpe,o.runOutsideAngular(function(){(0,w.R)(e.nativeElement,"mouseleave").pipe((0,S.R)(u._destroyed)).subscribe(function(){u._stopInterval()})})}return y(t,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=(0,E.su)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"ngAfterViewInit",value:function(){var t=this;(0,w.R)(this._previousPaginator.nativeElement,"touchstart",gt).pipe((0,S.R)(this._destroyed)).subscribe(function(){t._handlePaginatorPress("before")}),(0,w.R)(this._nextPaginator.nativeElement,"touchstart",gt).pipe((0,S.R)(this._destroyed)).subscribe(function(){t._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:(0,_.of)("ltr"),i=this._viewportRuler.change(150),n=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new r.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),(0,b.T)(e,i,this._items.changes).pipe((0,S.R)(this._destroyed)).subscribe(function(){t._ngZone.run(function(){return Promise.resolve().then(n)}),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())}),this._keyManager.change.pipe((0,S.R)(this._destroyed)).subscribe(function(e){t.indexFocused.emit(e),t._setTabFocus(e)})}},{key:"ngAfterContentChecked",value:function(){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())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(t){if(!(0,R.Vb)(t))switch(t.keyCode){case R.K5:case R.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}},{key:"_onContentChanges",value:function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}},{key:"_isValidIndex",value:function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"_setTabFocus",value:function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(e),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}},{key:"_scrollHeader",value:function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(t){this._stopInterval(),this._scrollHeader(t)}},{key:"_scrollToLabel",value:function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var i,n,r=this._tabListContainer.nativeElement.offsetWidth,o=e.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?n=(i=a)+s:i=(n=this._tabList.nativeElement.offsetWidth-a)-s;var u=this.scrollDistance,c=this.scrollDistance+r;ic&&(this.scrollDistance+=n-c+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(t,e){var i=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),(0,A.H)(650,100).pipe((0,S.R)((0,b.T)(this._stopScrolling,this._destroyed))).subscribe(function(){var e=i._scrollHeader(t),n=e.maxScrollDistance,r=e.distance;(0===r||r>=n)&&i._stopInterval()}))}},{key:"_scrollTo",value:function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(O.rL),l.Y36(I.Is,8),l.Y36(l.R0b),l.Y36(x.t4),l.Y36(p.Qb,8))},t.\u0275dir=l.lG2({type:t,inputs:{disablePagination:"disablePagination"}}),t}(),mt=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o,a,s,u){var c;return v(this,i),(c=e.call(this,t,n,r,o,a,s,u))._disableRipple=!1,c}return y(i,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=(0,E.Ig)(t)}},{key:"_itemSelected",value:function(t){t.preventDefault()}}]),i}(vt);return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(O.rL),l.Y36(I.Is,8),l.Y36(l.R0b),l.Y36(x.t4),l.Y36(p.Qb,8))},t.\u0275dir=l.lG2({type:t,inputs:{disableRipple:"disableRipple"},features:[l.qOj]}),t}(),yt=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o,a,s,u){return v(this,i),e.call(this,t,n,r,o,a,s,u)}return i}(mt);return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(O.rL),l.Y36(I.Is,8),l.Y36(l.R0b),l.Y36(x.t4),l.Y36(p.Qb,8))},t.\u0275cmp=l.Xpm({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){var n;(1&t&&l.Suo(i,pt,4),2&t)&&(l.iGM(n=l.CRH())&&(e._items=n))},viewQuery:function(t,e){var i;(1&t&&(l.Gf(J,7),l.Gf(j,7),l.Gf(G,7),l.Gf(Y,5),l.Gf(V,5)),2&t)&&(l.iGM(i=l.CRH())&&(e._inkBar=i.first),l.iGM(i=l.CRH())&&(e._tabListContainer=i.first),l.iGM(i=l.CRH())&&(e._tabList=i.first),l.iGM(i=l.CRH())&&(e._nextPaginator=i.first),l.iGM(i=l.CRH())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&l.ekj("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[l.qOj],ngContentSelectors:D,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(l.F$t(),l.TgZ(0,"div",0,1),l.NdJ("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),l._UZ(2,"div",2),l.qZA(),l.TgZ(3,"div",3,4),l.NdJ("keydown",function(t){return e._handleKeydown(t)}),l.TgZ(5,"div",5,6),l.NdJ("cdkObserveContent",function(){return e._onContentChanges()}),l.TgZ(7,"div",7),l.Hsn(8),l.qZA(),l._UZ(9,"mat-ink-bar"),l.qZA(),l.qZA(),l.TgZ(10,"div",8,9),l.NdJ("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),l._UZ(12,"div",2),l.qZA()),2&t&&(l.ekj("mat-tab-header-pagination-disabled",e._disableScrollBefore),l.Q6J("matRippleDisabled",e._disableScrollBefore||e.disableRipple),l.xp6(5),l.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),l.xp6(5),l.ekj("mat-tab-header-pagination-disabled",e._disableScrollAfter),l.Q6J("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[f.wG,a.wD,J],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.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;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t}(),bt=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[c.ez,f.BQ,u.eL,f.si,a.Q8,r.rt],f.BQ]}),t}()},36922:function(t,e,i){"use strict";i.d(e,{gM:function(){return j},AV:function(){return V}});var n,a=i(2522),u=i(24621),c=i(61511),l=i(31572),h=i(71522),d=i(4253),f=i(19861),p=i(75842),g=i(55959),m=i(31305),b=i(47930),w=i(48318),_=i(90611),A=i(96673),k=function(){function t(e){v(this,t),this.total=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new T(t,this.total))}}]),t}(),T=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t)).total=n,r.count=0,r}return y(i,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}]),i}(A.L),C=i(47701),S=i(79996),E=i(56238),x=i(25416),R=i(11353),I=new Set,O=function(){var t=function(){function t(e){v(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):P}return y(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!I.has(t))try{n||((n=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(n)),n.sheet&&(n.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),I.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.LFG(R.t4))},t.\u0275prov=l.Yz7({factory:function(){return new t(l.LFG(R.t4))},token:t,providedIn:"root"}),t}();function P(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var D=function(){var t=function(){function t(e,i){v(this,t),this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new g.xQ}return y(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return M((0,f.Eq)(t)).some(function(t){return e._registerQuery(t).mql.matches})}},{key:"observe",value:function(t){var e=this,i=M((0,f.Eq)(t)).map(function(t){return e._registerQuery(t).observable}),n=(0,m.aj)(i);return(n=(0,b.z)(n.pipe((0,_.q)(1)),n.pipe(function(t){return t.lift(new k(1))},(0,C.b)(0)))).pipe((0,S.U)(function(t){var e={matches:!1,breakpoints:{}};return t.forEach(function(t){var i=t.matches,n=t.query;e.matches=e.matches||i,e.breakpoints[n]=i}),e}))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var i=this._mediaMatcher.matchMedia(t),n={observable:new w.y(function(t){var n=function(i){return e._zone.run(function(){return t.next(i)})};return i.addListener(n),function(){i.removeListener(n)}}).pipe((0,E.O)(i),(0,S.U)(function(e){var i=e.matches;return{query:t,matches:i}}),(0,x.R)(this._destroySubject)),mql:i};return this._queries.set(t,n),n}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.LFG(O),l.LFG(l.R0b))},t.\u0275prov=l.Yz7({factory:function(){return new t(l.LFG(O),l.LFG(l.R0b))},token:t,providedIn:"root"}),t}();function M(t){return t.map(function(t){return t.split(",")}).reduce(function(t,e){return t.concat(e)}).map(function(t){return t.trim()})}var L=i(26899),N=i(10709),z=i(22526),F={tooltipState:(0,N.X$)("state",[(0,N.SB)("initial, void, hidden",(0,N.oB)({opacity:0,transform:"scale(0)"})),(0,N.SB)("visible",(0,N.oB)({transform:"scale(1)"})),(0,N.eR)("* => visible",(0,N.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,N.F4)([(0,N.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,N.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,N.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,N.eR)("* => hidden",(0,N.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,N.oB)({opacity:0})))])},Z=(0,R.i$)({passive:!0}),B=new l.OlP("mat-tooltip-scroll-strategy"),q={provide:B,deps:[a.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},U=new l.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),H=function(){var t=function(){function t(e,i,n,r,o,a,s,u,c,l,h,d){var f=this;v(this,t),this._overlay=e,this._elementRef=i,this._scrollDispatcher=n,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=u,this._dir=l,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new g.xQ,this._handleKeydown=function(t){f._isTooltipVisible()&&t.keyCode===p.hY&&!(0,p.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=c,this._document=d,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),l.change.pipe((0,x.R)(this._destroyed)).subscribe(function(){f._overlayRef&&f._updatePosition(f._overlayRef)}),o.runOutsideAngular(function(){i.nativeElement.addEventListener("keydown",f._handleKeydown)})}return y(t,[{key:"position",get:function(){return this._position},set:function(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=(0,f.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var t=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,x.R)(this._destroyed)).subscribe(function(e){e?"keyboard"===e&&t._ngZone.run(function(){return t.show()}):t._ngZone.run(function(){return t.hide(0)})})}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(e){var i=r(e,2),n=i[0],o=i[1];t.removeEventListener(n,o,Z)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var i=this._createOverlay();this._detach(),this._portal=this._portal||new L.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,x.R)(this._destroyed)).subscribe(function(){return t._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe((0,x.R)(this._destroyed)).subscribe(function(e){t._updateCurrentPositionClass(e.connectionPair),t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run(function(){return t.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:"".concat(this._cssClassPrefix,"-tooltip-panel"),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,x.R)(this._destroyed)).subscribe(function(){return t._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(t){var e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}},{key:"_addOffset",value:function(t){return t}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i||"below"==i?t={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?t={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(t={originX:"end",originY:"center"});var n=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:n.x,originY:n.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i?t={overlayX:"center",overlayY:"bottom"}:"below"==i?t={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?t={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(t={overlayX:"start",overlayY:"center"});var n=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:n.x,overlayY:n.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,_.q)(1),(0,x.R)(this._destroyed)).subscribe(function(){t._tooltipInstance&&t._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}},{key:"_updateCurrentPositionClass",value:function(t){var e,i=t.overlayY,n=t.originX,r=t.originY;if((e="center"===i?this._dir&&"rtl"===this._dir.value?"end"===n?"left":"right":"start"===n?"left":"right":"bottom"===i&&"top"===r?"above":"below")!==this._currentPosition){var o=this._overlayRef;if(o){var a="".concat(this._cssClassPrefix,"-tooltip-panel-");o.removePanelClass(a+this._currentPosition),o.addPanelClass(a+e)}this._currentPosition=e}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var t=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){t._setupPointerExitEventsIfNeeded(),t.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){t._setupPointerExitEventsIfNeeded(),clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout(function(){return t.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var t,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var i=[];if(this._platformSupportsMouseEvents())i.push(["mouseleave",function(){return e.hide()}],["wheel",function(t){return e._wheelListener(t)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var n=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};i.push(["touchend",n],["touchcancel",n])}this._addListeners(i),(t=this._passiveListeners).push.apply(t,i)}}},{key:"_addListeners",value:function(t){var e=this;t.forEach(function(t){var i=r(t,2),n=i[0],o=i[1];e._elementRef.nativeElement.addEventListener(n,o,Z)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(t){if(this._isTooltipVisible()){var e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this.touchGestures;if("off"!==t){var e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(a.aV),l.Y36(l.SBq),l.Y36(d.mF),l.Y36(l.s_b),l.Y36(l.R0b),l.Y36(R.t4),l.Y36(u.$s),l.Y36(u.tE),l.Y36(void 0),l.Y36(z.Is),l.Y36(void 0),l.Y36(c.K0))},t.\u0275dir=l.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t}(),j=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o,a,s,u,c,l,h,d,f){var p;return v(this,i),(p=e.call(this,t,n,r,o,a,s,u,c,l,h,d,f))._tooltipComponent=Y,p}return i}(H);return t.\u0275fac=function(e){return new(e||t)(l.Y36(a.aV),l.Y36(l.SBq),l.Y36(d.mF),l.Y36(l.s_b),l.Y36(l.R0b),l.Y36(R.t4),l.Y36(u.$s),l.Y36(u.tE),l.Y36(B),l.Y36(z.Is,8),l.Y36(U,8),l.Y36(c.K0))},t.\u0275dir=l.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[l.qOj]}),t}(),G=function(){var t=function(){function t(e){v(this,t),this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new g.xQ}return y(t,[{key:"show",value:function(t){var e=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){e._visibility="visible",e._showTimeoutId=void 0,e._markForCheck()},t)}},{key:"hide",value:function(t){var e=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){e._visibility="hidden",e._hideTimeoutId=void 0,e._markForCheck()},t)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.sBO))},t.\u0275dir=l.lG2({type:t}),t}(),Y=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t))._breakpointObserver=n,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return i}(G);return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.sBO),l.Y36(D))},t.\u0275cmp=l.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&l.NdJ("click",function(){return e._handleBodyInteraction()},!1,l.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,l.pYS),2&t&&l.Udp("zoom","visible"===e._visibility?1:null)},features:[l.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var i;(1&t&&(l.TgZ(0,"div",0),l.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),l.ALo(1,"async"),l._uU(2),l.qZA()),2&t)&&(l.ekj("mat-tooltip-handset",null==(i=l.lcZ(1,5,e._isHandset))?null:i.matches),l.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),l.xp6(2),l.Oqu(e.message))},directives:[c.mk],pipes:[c.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[F.tooltipState]},changeDetection:0}),t}(),V=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({providers:[q],imports:[[u.rt,c.ez,a.U8,h.BQ],h.BQ,d.ZD]}),t}()},91010:function(t,e,i){"use strict";i.d(e,{GZ:function(){return _},gi:function(){return k},kc:function(){return E},JZ:function(){return S},dp:function(){return C},WX:function(){return x},uo:function(){return b},fQ:function(){return w},Ar:function(){return A},eu:function(){return T}});var r=i(71709),a=i(71522),u=i(19861),c=i(4230),l=i(78512),d=i(31906),f=i(90611),p=i(79996),g=i(31572),m=(0,a.sb)((0,a.Id)(r.Hs)),b=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t,n))._elementRef=t,o._tree=n,o.tabIndex=Number(r)||0,o._elementRef.nativeElement.classList.add("mat-tree-node"),o}return y(i,[{key:"ngOnInit",value:function(){n(h(i.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){n(h(i.prototype),"ngDoCheck",this).call(this)}},{key:"ngOnDestroy",value:function(){n(h(i.prototype),"ngOnDestroy",this).call(this)}}]),i}(m);return t.\u0275fac=function(e){return new(e||t)(g.Y36(g.SBq),g.Y36(r._0),g.$8M("tabindex"))},t.\u0275dir=g.lG2({type:t,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[g._Bn([{provide:r.Hs,useExisting:t}]),g.qOj]}),t}(),w=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(r.rO);return e.\u0275fac=function(i){return(t||(t=g.n5z(e)))(i||e)},e.\u0275dir=g.lG2({type:e,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[g._Bn([{provide:r.rO,useExisting:e}]),g.qOj]}),e}(),_=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t,n,r))._elementRef=t,a._tree=n,a._differs=r,a._disabled=!1,a.tabIndex=Number(o)||0,a._elementRef.nativeElement.classList.add("mat-nested-tree-node"),a}return y(i,[{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=(0,u.Ig)(t)}},{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?t:0}},{key:"ngOnInit",value:function(){n(h(i.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){n(h(i.prototype),"ngDoCheck",this).call(this)}},{key:"ngAfterContentInit",value:function(){n(h(i.prototype),"ngAfterContentInit",this).call(this)}},{key:"ngOnDestroy",value:function(){n(h(i.prototype),"ngOnDestroy",this).call(this)}}]),i}(r.Xx);return t.\u0275fac=function(e){return new(e||t)(g.Y36(g.SBq),g.Y36(r._0),g.Y36(g.ZZ4),g.$8M("tabindex"))},t.\u0275dir=g.lG2({type:t,selectors:[["mat-nested-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[g._Bn([{provide:r.Xx,useExisting:t},{provide:r.Hs,useExisting:t},{provide:r.HI,useExisting:t}]),g.qOj]}),t}(),A=function(){var t=function t(e,i){v(this,t),this.viewContainer=e,this._node=i};return t.\u0275fac=function(e){return new(e||t)(g.Y36(g.s_b),g.Y36(r.HI,8))},t.\u0275dir=g.lG2({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[g._Bn([{provide:r.cu,useExisting:t}])]}),t}(),k=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(r._0);return e.\u0275fac=function(i){return(t||(t=g.n5z(e)))(i||e)},e.\u0275cmp=g.Xpm({type:e,selectors:[["mat-tree"]],viewQuery:function(t,e){var i;(1&t&&g.Gf(A,7),2&t)&&(g.iGM(i=g.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[g._Bn([{provide:r._0,useExisting:e}]),g.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&g.GkF(0,0)},directives:[A],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),e}(),T=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"recursive",get:function(){return this._recursive},set:function(t){this._recursive=(0,u.Ig)(t)}}]),i}(r.Ud);return e.\u0275fac=function(i){return(t||(t=g.n5z(e)))(i||e)},e.\u0275dir=g.lG2({type:e,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[g._Bn([{provide:r.Ud,useExisting:e}]),g.qOj]}),e}(),C=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=g.oAB({type:t}),t.\u0275inj=g.cJS({imports:[[r.nZ,a.BQ],a.BQ]}),t}(),S=function(){function t(e,i,n,r){v(this,t),this.transformFunction=e,this.getLevel=i,this.isExpandable=n,this.getChildren=r}return y(t,[{key:"_flattenNode",value:function(t,e,i,n){var r=this,o=this.transformFunction(t,e);if(i.push(o),this.isExpandable(o)){var a=this.getChildren(t);a&&(Array.isArray(a)?this._flattenChildren(a,e,i,n):a.pipe((0,f.q)(1)).subscribe(function(t){r._flattenChildren(t,e,i,n)}))}return i}},{key:"_flattenChildren",value:function(t,e,i,n){var r=this;t.forEach(function(o,a){var s=n.slice();s.push(a!=t.length-1),r._flattenNode(o,e+1,i,s)})}},{key:"flattenNodes",value:function(t){var e=this,i=[];return t.forEach(function(t){return e._flattenNode(t,0,i,[])}),i}},{key:"expandFlattenedNodes",value:function(t,e){var i=this,n=[],r=[];return r[0]=!0,t.forEach(function(t){for(var o=!0,a=0;a<=i.getLevel(t);a++)o=o&&r[a];o&&n.push(t),i.isExpandable(t)&&(r[i.getLevel(t)+1]=e.isExpanded(t))}),n}}]),t}(),E=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this))._treeControl=t,o._treeFlattener=n,o._flattenedData=new l.X([]),o._expandedData=new l.X([]),o._data=new l.X([]),r&&(o.data=r),o}return y(i,[{key:"data",get:function(){return this._data.value},set:function(t){this._data.next(t),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}},{key:"connect",value:function(t){var e=this;return(0,d.T)(t.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,p.U)(function(){return e._expandedData.next(e._treeFlattener.expandFlattenedNodes(e._flattenedData.value,e._treeControl)),e._expandedData.value}))}},{key:"disconnect",value:function(){}}]),i}(c.o2),x=function(t){o(i,t);var e=s(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments))._data=new l.X([]),t}return y(i,[{key:"data",get:function(){return this._data.value},set:function(t){this._data.next(t)}},{key:"connect",value:function(t){var e=this;return(0,d.T)(t.viewChange,this._data).pipe((0,p.U)(function(){return e.data}))}},{key:"disconnect",value:function(){}}]),i}(c.o2)},43490:function(t,e,i){"use strict";i.d(e,{Qb:function(){return Ee},PW:function(){return Oe}});var a=i(31572),u=i(30269),c=i(10709);function l(){return"undefined"!=typeof window&&void 0!==window.document}function p(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function g(t){switch(t.length){case 0:return new c.ZN;case 1:return t[0];default:return new c.ZE(t)}}function m(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,l=null;if(n.forEach(function(t){var i=t.offset,n=i==u,h=n&&l||{};Object.keys(t).forEach(function(i){var n=i,s=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,a),s){case c.k1:s=r[i];break;case c.l3:s=o[i];break;default:s=e.normalizeStyleValue(i,n,s,a)}h[n]=s}),n||s.push(h),l=h,u=i}),a.length){var h="\n - ";throw new Error("Unable to animate due to the following errors:".concat(h).concat(a.join(h)))}return s}function b(t,e,i,n){switch(e){case"start":t.onStart(function(){return n(i&&w(i,"start",t))});break;case"done":t.onDone(function(){return n(i&&w(i,"done",t))});break;case"destroy":t.onDestroy(function(){return n(i&&w(i,"destroy",t))})}}function w(t,e,i){var n=i.totalTime,r=_(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),o=t._data;return null!=o&&(r._data=o),r}function _(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:o,disabled:!!a}}function A(t,e,i){var n;return t instanceof Map?(n=t.get(e))||t.set(e,n=i):(n=t[e])||(n=t[e]=i),n}function k(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var T=function(t,e){return!1},C=function(t,e){return!1},S=function(t,e,i){return[]},E=p();(E||"undefined"!=typeof Element)&&(T=l()?function(t,e){for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:function(t,e){return t.contains(e)},C=function(){if(E||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,i){return e.apply(t,[i])}:C}(),S=function(t,e,i){var n=[];if(i)for(var r=t.querySelectorAll(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(function(i){e[i]=t[i]}),e}function q(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var n in t)i[n]=t[n];else B(t,i);return i}function U(t,e,i){return i?e+":"+i+";":""}function H(t){for(var e="",i=0;i *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return i.push('The provided transition expression "'.concat(t,'" is not supported')),e;var o=r[1],a=r[2],s=r[3];e.push(ot(o,s)),"<"!=a[0]||"*"==o&&"*"==s||e.push(ot(s,o))}(t,r,n)}):r.push(i),r),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:ht(t.options)}}},{key:"visitSequence",value:function(t,e){var i=this;return{type:2,steps:t.steps.map(function(t){return et(i,t,e)}),options:ht(t.options)}}},{key:"visitGroup",value:function(t,e){var i=this,n=e.currentTime,r=0,o=t.steps.map(function(t){e.currentTime=n;var o=et(i,t,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:3,steps:o,options:ht(t.options)}}},{key:"visitAnimate",value:function(t,e){var i,n=function(t,e){var i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return dt(Z(t,e).duration,0,"");var n=t;if(n.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var r=dt(0,0,"");return r.dynamic=!0,r.strValue=n,r}return dt((i=i||Z(n,e)).duration,i.delay,i.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;var r=t.styles?t.styles:(0,c.oB)({});if(5==r.type)i=this.visitKeyframes(r,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};n.easing&&(s.easing=n.easing),o=(0,c.oB)(s)}e.currentTime+=n.duration+n.delay;var u=this.visitStyle(o,e);u.isEmptyStep=a,i=u}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(t,e){var i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}},{key:"_makeStyleAst",value:function(t,e){var i=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==c.l3?i.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):i.push(t)}):i.push(t.styles);var n=!1,r=null;return i.forEach(function(t){if(lt(t)){var e=t,i=e.easing;if(i&&(r=i,delete e.easing),!n)for(var o in e)if(e[o].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:r,offset:t.offset,containsDynamicStyles:n,options:null}}},{key:"_validateStyleAst",value:function(t,e){var i=this,n=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(n){if(i._driver.validateStyleProperty(n)){var a,s,u,c,l,h=e.collectedStyles[e.currentQuerySelector],d=h[n],f=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(e.errors.push('The CSS property "'.concat(n,'" that exists between the times of "').concat(d.startTime,'ms" and "').concat(d.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),f=!1),o=d.startTime),f&&(h[n]={startTime:o,endTime:r}),e.options&&(a=t[n],s=e.options,u=e.errors,c=s.params||{},(l=K(a)).length&&l.forEach(function(t){c.hasOwnProperty(t)||u.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))}))}else e.errors.push('The provided animation property "'.concat(n,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(t,e){var i=this,n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;var r=0,o=[],a=!1,s=!1,u=0,c=t.steps.map(function(t){var n=i._makeStyleAst(t,e),c=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(lt(t)&&t.hasOwnProperty("offset")){var i=t;e=parseFloat(i.offset),delete i.offset}});else if(lt(t)&&t.hasOwnProperty("offset")){var i=t;e=parseFloat(i.offset),delete i.offset}return e}(n.styles),l=0;return null!=c&&(r++,l=n.offset=c),s=s||l<0||l>1,a=a||l0&&r0?r==d?1:h*r:o[r],s=a*g;e.currentTime=f+p.delay+s,p.duration=s,i._validateStyleAst(t,e),t.offset=a,n.styles.push(t)}),n}},{key:"visitReference",value:function(t,e){return{type:8,animation:et(this,Y(t.animation),e),options:ht(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:ht(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ht(t.options)}}},{key:"visitQuery",value:function(t,e){var i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;var o=r(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(at,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),a=o[0],s=o[1];e.currentQuerySelector=i.length?i+" "+a:a,A(e.collectedStyles,e.currentQuerySelector,{});var u=et(this,Y(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:a,limit:n.limit||0,optional:!!n.optional,includeSelf:s,animation:u,originalSelector:t.selector,options:ht(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Z(t.timings,e.errors,!0);return{type:12,animation:et(this,Y(t.animation),e),timings:i,options:null}}}]),t}(),ct=function t(e){v(this,t),this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function lt(t){return!Array.isArray(t)&&"object"==typeof t}function ht(t){var e;return t?(t=B(t)).params&&(t.params=(e=t.params)?B(e):null):t={},t}function dt(t,e,i){return{duration:t,delay:e,easing:i}}function ft(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var pt=function(){function t(){v(this,t),this._map=new Map}return y(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var i,n=this._map.get(t);n||this._map.set(t,n=[]),(i=n).push.apply(i,d(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),gt=new RegExp(":enter","g"),vt=new RegExp(":leave","g");function mt(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new yt).buildKeyframes(t,e,i,n,r,o,a,s,u,c)}var yt=function(){function t(){v(this,t)}return y(t,[{key:"buildKeyframes",value:function(t,e,i,n,r,o,a,s,u){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new pt;var l=new wt(t,e,u,n,r,c,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),et(this,i,l);var h=l.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,l.errors,s)}return h.length?h.map(function(t){return t.buildKeyframes()}):[ft(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var i=e.subInstructions.consume(e.element);if(i){var n=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,i){var n=e.currentTimeline.currentTime,r=null!=i.duration?z(i.duration):null,o=null!=i.delay?z(i.delay):null;return 0!==r&&t.forEach(function(t){var i=e.appendInstructionToTimeline(t,r,o);n=Math.max(n,i.duration+i.delay)}),n}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),et(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var i=this,n=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&((r=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=bt);var a=z(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return et(i,t,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var i=this,n=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?z(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),et(i,a,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(r),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var i=t.strValue;return Z(e.params?J(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();var r=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(r):i.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var i=e.currentAnimateTimings,n=e.currentTimeline.duration,r=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(n+r),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var i=this,n=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?z(r.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bt);var a=n,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var u=null;s.forEach(function(n,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,n);o&&s.delayNextStep(o),n===e.element&&(u=s.currentTimeline),et(i,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var i=e.parentContext,n=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=i.currentStaggerTime}var u=e.currentTimeline;s&&u.delayNextStep(s);var c=u.currentTime;et(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}}]),t}(),bt={},wt=function(){function t(e,i,n,r,o,a,s,u){v(this,t),this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new _t(this._driver,i,0),s.push(this.currentTimeline)}return y(t,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,e){var i=this;if(t){var n=t,r=this.options;null!=n.duration&&(r.duration=z(n.duration)),null!=n.delay&&(r.delay=z(n.delay));var o=n.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=J(o[t],a,i.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var i=t.params={};Object.keys(e).forEach(function(t){i[t]=e[t]})}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=i||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=bt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,i){var n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},r=new At(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(r),n}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,i,n,r,o){var a=[];if(n&&a.push(this.element),t.length>0){t=(t=t.replace(gt,"."+this._enterClassName)).replace(vt,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=i);0!==i&&(s=i<0?s.slice(s.length+i,s.length):s.slice(0,i)),a.push.apply(a,d(s))}return r||0!=a.length||o.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),a}}]),t}(),_t=function(){function t(e,i,n,r){v(this,t),this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}return y(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||c.l3,e._currentKeyframe[t]=c.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,i,n){var r=this;e&&(this._previousKeyframe.easing=e);var o=n&&n.params||{},a=function(t,e){var i,n={};return t.forEach(function(t){"*"===t?(i=i||Object.keys(e)).forEach(function(t){n[t]=c.l3}):q(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=J(a[t],o,i);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:c.l3),r._updateStyle(t,e)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,i=Object.keys(e);0!=i.length&&(this._pendingStyles={},i.forEach(function(i){t._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var i=t._localTimelineStyles[e];t._pendingStyles[e]=i,t._updateStyle(e,i)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach(function(i){var n=e._styleSummary[i],r=t._styleSummary[i];(!n||r.time>n.time)&&e._updateStyle(i,r.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,i=new Set,n=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=q(o,!0);Object.keys(s).forEach(function(t){var n=s[t];n==c.k1?e.add(t):n==c.l3&&i.add(t)}),n||(s.offset=a/t.duration),r.push(s)});var o=e.size?Q(e.values()):[],a=i.size?Q(i.values()):[];if(n){var s=r[0],u=B(s);s.offset=0,u.offset=1,r=[s,u]}return ft(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}]),t}(),At=function(t){o(i,t);var e=s(i);function i(t,n,r,o,a,s){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return v(this,i),(u=e.call(this,t,n,s.delay)).element=n,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=c,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return y(i,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,i=e.delay,n=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&i){var o=[],a=n+i,s=i/a,u=q(t[0],!1);u.offset=0,o.push(u);var c=q(t[0],!1);c.offset=kt(s),o.push(c);for(var l=t.length-1,h=1;h<=l;h++){var d=q(t[h],!1);d.offset=kt((i+d.offset*n)/a),o.push(d)}n=a,i=0,r="",t=o}return ft(this.element,t,this.preStyleProps,this.postStyleProps,n,i,r,!0)}}]),i}(_t);function kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=Math.pow(10,e-1);return Math.round(t*i)/i}var Tt,Ct,St=function t(){v(this,t)},Et=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"normalizePropertyName",value:function(t,e){return X(t)}},{key:"normalizeStyleValue",value:function(t,e,i,n){var r="",o=i.toString().trim();if(xt[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{var a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&n.push("Please provide a CSS unit value for ".concat(t,":").concat(i))}return o+r}}]),i}(St),xt=(Tt="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),Ct={},Tt.forEach(function(t){return Ct[t]=!0}),Ct);function Rt(t,e,i,n,r,o,a,s,u,c,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:o,toState:n,toStyles:a,timelines:s,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:h,errors:d}}var It={},Ot=function(){function t(e,i,n){v(this,t),this._triggerName=e,this.ast=i,this._stateStyles=n}return y(t,[{key:"match",value:function(t,e,i,n){return function(t,e,i,n,r){return t.some(function(t){return t(e,i,n,r)})}(this.ast.matchers,t,e,i,n)}},{key:"buildStyles",value:function(t,e,i){var n=this._stateStyles["*"],r=this._stateStyles[t],o=n?n.buildStyles(e,i):{};return r?r.buildStyles(e,i):o}},{key:"build",value:function(t,e,i,n,r,o,a,s,u,c){var l=[],h=this.ast.options&&this.ast.options.params||It,d=this.buildStyles(i,a&&a.params||It,l),f=s&&s.params||It,p=this.buildStyles(n,f,l),g=new Set,v=new Map,m=new Map,y="void"===n,b={params:Object.assign(Object.assign({},h),f)},w=c?[]:mt(t,e,this.ast.animation,r,o,d,p,b,u,l),_=0;if(w.forEach(function(t){_=Math.max(t.duration+t.delay,_)}),l.length)return Rt(e,this._triggerName,i,n,y,d,p,[],[],v,m,_,l);w.forEach(function(t){var i=t.element,n=A(v,i,{});t.preStyleProps.forEach(function(t){return n[t]=!0});var r=A(m,i,{});t.postStyleProps.forEach(function(t){return r[t]=!0}),i!==e&&g.add(i)});var k=Q(g.values());return Rt(e,this._triggerName,i,n,y,d,p,w,k,v,m,_)}}]),t}(),Pt=function(){function t(e,i){v(this,t),this.styles=e,this.defaultParams=i}return y(t,[{key:"buildStyles",value:function(t,e){var i={},n=B(this.defaultParams);return Object.keys(t).forEach(function(e){var i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach(function(t){var o=r[t];o.length>1&&(o=J(o,n,e)),i[t]=o})}}),i}}]),t}(),Dt=function(){function t(e,i){var n=this;v(this,t),this.name=e,this.ast=i,this.transitionFactories=[],this.states={},i.states.forEach(function(t){n.states[t.name]=new Pt(t.style,t.options&&t.options.params||{})}),Mt(this.states,"true","1"),Mt(this.states,"false","0"),i.transitions.forEach(function(t){n.transitionFactories.push(new Ot(e,t,n.states))}),this.fallbackTransition=new Ot(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return y(t,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,e,i,n){return this.transitionFactories.find(function(r){return r.match(t,e,i,n)})||null}},{key:"matchStyles",value:function(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}]),t}();function Mt(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}var Lt=new pt,Nt=function(){function t(e,i,n){v(this,t),this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return y(t,[{key:"register",value:function(t,e){var i=[],n=st(this._driver,e,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: ".concat(i.join("\n")));this._animations[t]=n}},{key:"_buildPlayer",value:function(t,e,i){var n=t.element,r=m(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,r,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var i,n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[t],s=new Map;if(a?(i=mt(this._driver,e,a,"ng-enter","ng-leave",{},{},r,Lt,o)).forEach(function(t){var e=A(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach(function(t,e){Object.keys(t).forEach(function(i){t[i]=n._driver.computeStyle(e,i,c.l3)})});var u=g(i.map(function(t){var e=s.get(t.element);return n._buildPlayer(t,{},e)}));return this._playersById[t]=u,u.onDestroy(function(){return n.destroy(t)}),this.players.push(u),u}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,i,n){var r=_(e,"","","");return b(this._getPlayer(t),i,r,n),function(){}}},{key:"command",value:function(t,e,i,n){if("register"!=i)if("create"!=i){var r=this._getPlayer(t);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,n[0]||{});else this.register(t,n[0])}}]),t}(),zt=[],Ft={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Zt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Bt=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";v(this,t),this.namespaceId=i;var n,r=e&&e.hasOwnProperty("value");if(this.value=null!=(n=r?e.value:e)?n:null,r){var o=B(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return y(t,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var e=t.params;if(e){var i=this.options.params;Object.keys(e).forEach(function(t){null==i[t]&&(i[t]=e[t])})}}}]),t}(),qt=new Bt("void"),Ut=function(){function t(e,i,n){v(this,t),this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Jt(i,this._hostClassName)}return y(t,[{key:"listen",value:function(t,e,i,n){var r,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(i,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==i||0==i.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(r=i)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(i,'" for the animation trigger "').concat(e,'" is not supported!'));var a=A(this._elementListeners,t,[]),s={name:e,phase:i,callback:n};a.push(s);var u=A(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(Jt(t,"ng-trigger"),Jt(t,"ng-trigger-"+e),u[e]=qt),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete u[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,i){var n=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(e),a=new jt(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Jt(t,"ng-trigger"),Jt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var u=s[e],c=new Bt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&u&&c.absorbOptions(u.options),s[e]=c,u||(u=qt),"void"===c.value||u.value!==c.value){var l=A(this._engine.playersByElement,t,[]);l.forEach(function(t){t.namespaceId==n.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(u.value,c.value,t,c.params),d=!1;if(!h){if(!r)return;h=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:u,toState:c,player:a,isFallbackTransition:d}),d||(Jt(t,"ng-animate-queued"),a.onStart(function(){Qt(t,"ng-animate-queued")})),a.onDone(function(){var e=n.players.indexOf(a);e>=0&&n.players.splice(e,1);var i=n._engine.playersByElement.get(t);if(i){var r=i.indexOf(a);r>=0&&i.splice(r,1)}}),this.players.push(a),l.push(a),a}if(!function(t,e){var i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(var r=0;r=0){for(var n=!1,r=i;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}},{key:"register",value:function(t,e){var i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}},{key:"registerTrigger",value:function(t,e,i){var n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var i=this;if(t){var n=this._fetchNamespace(t);this.afterFlush(function(){i.namespacesByHostElement.delete(n.hostElement),delete i._namespaceLookup[t];var e=i._namespaceList.indexOf(n);e>=0&&i._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return n.destroy(e)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,i=this.statesByElement.get(t);if(i)for(var n=Object.keys(i),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,i)}n&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Qt(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,i,n){if(Gt(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,n)}}else this._onRemovalComplete(e,n)}},{key:"markElementAsRemoved",value:function(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,i,n,r){return Gt(e)?this._fetchNamespace(t).listen(e,i,n,r):function(){}}},{key:"_buildInstruction",value:function(t,e,i,n,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,r)}},{key:"destroyInnerAnimations",value:function(t){var e=this,i=this.driver.query(t,".ng-trigger",!0);i.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(i=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return g(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var e=this,i=t.__ng_removed;if(i&&i.setForRemoval){if(t.__ng_removed=Ft,i.namespaceId){this.destroyInnerAnimations(t);var n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(t){e.markElementAsDisabled(t,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,i){return t._balanceNamespaceList(e,i)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var n=0;n=0;I--)this._namespaceList[I].drainQueuedTransitions(e).forEach(function(t){var e=t.player,o=t.element;if(x.push(e),i.collectedEnterElements.length){var c=o.__ng_removed;if(c&&c.setForMove)return void e.destroy()}var h=!f||!i.driver.containsElement(f,o),d=S.get(o),p=m.get(o),g=i._buildInstruction(t,n,p,d,h);if(g.errors&&g.errors.length)R.push(g);else{if(h)return e.onStart(function(){return G(o,g.fromStyles)}),e.onDestroy(function(){return j(o,g.toStyles)}),void r.push(e);if(t.isFallbackTransition)return e.onStart(function(){return G(o,g.fromStyles)}),e.onDestroy(function(){return j(o,g.toStyles)}),void r.push(e);g.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),n.append(o,g.timelines),a.push({instruction:g,player:e,element:o}),g.queriedElements.forEach(function(t){return A(s,t,[]).push(e)}),g.preStyleProps.forEach(function(t,e){var i=Object.keys(t);if(i.length){var n=u.get(e);n||u.set(e,n=new Set),i.forEach(function(t){return n.add(t)})}}),g.postStyleProps.forEach(function(t,e){var i=Object.keys(t),n=l.get(e);n||l.set(e,n=new Set),i.forEach(function(t){return n.add(t)})})}});if(R.length){var O=[];R.forEach(function(t){O.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach(function(t){return O.push("- ".concat(t,"\n"))})}),x.forEach(function(t){return t.destroy()}),this.reportError(O)}var P=new Map,D=new Map;a.forEach(function(t){var e=t.element;n.has(e)&&(D.set(e,e),i._beforeAnimationBuild(t.player.namespaceId,t.instruction,P))}),r.forEach(function(t){var e=t.element;i._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){A(P,e,[]).push(t),t.destroy()})});var M=b.filter(function(t){return $t(t,u,l)}),L=new Map;Vt(L,this.driver,_,l,c.l3).forEach(function(t){$t(t,u,l)&&M.push(t)});var N=new Map;v.forEach(function(t,e){Vt(N,i.driver,new Set(t),u,c.k1)}),M.forEach(function(t){var e=L.get(t),i=N.get(t);L.set(t,Object.assign(Object.assign({},e),i))});var z=[],F=[],Z={};a.forEach(function(t){var e=t.element,a=t.player,s=t.instruction;if(n.has(e)){if(h.has(e))return a.onDestroy(function(){return j(e,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var u=Z;if(D.size>1){for(var c=e,l=[];c=c.parentNode;){var d=D.get(c);if(d){u=d;break}l.push(c)}l.forEach(function(t){return D.set(t,u)})}var f=i._buildAnimation(a.namespaceId,s,P,o,N,L);if(a.setRealPlayer(f),u===Z)z.push(a);else{var p=i.playersByElement.get(u);p&&p.length&&(a.parentPlayer=g(p)),r.push(a)}}else G(e,s.fromStyles),a.onDestroy(function(){return j(e,s.toStyles)}),F.push(a),h.has(e)&&r.push(a)}),F.forEach(function(t){var e=o.get(t.element);if(e&&e.length){var i=g(e);t.setRealPlayer(i)}}),r.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var B=0;B0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new c.ZN(t.duration,t.delay)}}]),t}(),jt=function(){function t(e,i,n){v(this,t),this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new c.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return y(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(i){e._queuedCallbacks[i].forEach(function(e){return b(t,i,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,i=this._player;i.triggerCallback&&t.onStart(function(){return i.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})}},{key:"_queueEvent",value:function(t,e){A(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function Gt(t){return t&&1===t.nodeType}function Yt(t,e){var i=t.style.display;return t.style.display=null!=e?e:"none",i}function Vt(t,e,i,n,r){var o=[];i.forEach(function(t){return o.push(Yt(t))});var a=[];n.forEach(function(i,n){var o={};i.forEach(function(t){var i=o[t]=e.computeStyle(n,t,r);i&&0!=i.length||(n.__ng_removed=Zt,a.push(n))}),t.set(n,o)});var s=0;return i.forEach(function(t){return Yt(t,o[s++])}),a}function Kt(t,e){var i=new Map;if(t.forEach(function(t){return i.set(t,[])}),0==e.length)return i;var n=new Set(e),r=new Map;function o(t){if(!t)return 1;var e=r.get(t);if(e)return e;var a=t.parentNode;return e=i.has(a)?a:n.has(a)?1:o(a),r.set(t,e),e}return e.forEach(function(t){var e=o(t);1!==e&&i.get(e).push(t)}),i}function Jt(t,e){if(t.classList)t.classList.add(e);else{var i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Qt(t,e){if(t.classList)t.classList.remove(e);else{var i=t.$$classes;i&&delete i[e]}}function Wt(t,e,i){g(i).onDone(function(){return t.processLeaveNode(e)})}function Xt(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),t}();function ee(t,e){var i=null,n=null;return Array.isArray(e)&&e.length?(i=ne(e[0]),e.length>1&&(n=ne(e[e.length-1]))):e&&(i=ne(e)),i||n?new ie(t,i,n):null}var ie=function(){var t=function(){function t(e,i,n){v(this,t),this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return y(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&j(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(j(this._element,this._initialStyles),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(G(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(G(this._element,this._endStyles),this._endStyles=null),j(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function ne(t){for(var e=null,i=Object.keys(t),n=0;n=this._delay&&i>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),ce(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,i,n;this._destroyed||(this._destroyed=!0,this.finish(),t=this._element,e=this._name,i=he(t,"").split(","),(n=ue(i,e))>=0&&(i.splice(n,1),le(t,"",i.join(","))))}}]),t}();function ae(t,e,i){le(t,"PlayState",i,se(t,e))}function se(t,e){var i=he(t,"");return i.indexOf(",")>0?ue(i.split(","),e):ue([i],e)}function ue(t,e){for(var i=0;i=0)return i;return-1}function ce(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function le(t,e,i,n){var r="animation"+e;if(null!=n){var o=t.style[r];if(o.length){var a=o.split(",");a[n]=i,i=a.join(",")}}t.style[r]=i}function he(t,e){return t.style["animation"+e]||""}var de=function(){function t(e,i,n,r,o,a,s,u){v(this,t),this.element=e,this.keyframes=i,this.animationName=n,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return y(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new oe(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var i=this._state>=3;Object.keys(this._finalStyles).forEach(function(n){"offset"!=n&&(e[n]=i?t._finalStyles[n]:it(t.element,n))})}this.currentSnapshot=e}}]),t}(),fe=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this)).element=t,r._startingStyles={},r.__initialized=!1,r._styles=M(n),r}return y(i,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),n(h(i.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),n(h(i.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var i=t._startingStyles[e];i?t.element.style.setProperty(e,i):t.element.style.removeProperty(e)}),this._startingStyles=null,n(h(i.prototype),"destroy",this).call(this))}}]),i}(c.ZN),pe=function(){function t(){v(this,t),this._count=0}return y(t,[{key:"validateStyleProperty",value:function(t){return I(t)}},{key:"matchesElement",value:function(t,e){return O(t,e)}},{key:"containsElement",value:function(t,e){return P(t,e)}},{key:"query",value:function(t,e,i){return D(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,i){i=i.map(function(t){return M(t)});var n="@keyframes ".concat(e," {\n"),r="";i.forEach(function(t){r=" ";var e=parseFloat(t.offset);n+="".concat(r).concat(100*e,"% {\n"),r+=" ",Object.keys(t).forEach(function(e){var i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+="".concat(r,"animation-timing-function: ").concat(i,";\n")));default:return void(n+="".concat(r).concat(e,": ").concat(i,";\n"))}}),n+="".concat(r,"}\n")}),n+="}\n";var o=document.createElement("style");return o.textContent=n,o}},{key:"animate",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(t){return t instanceof de}),s={};$(i,n)&&a.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return s[t]=e[t]})});var u=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(i){"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=tt(t,e,s));if(0==i)return new fe(t,u);var c="gen_css_kf_"+this._count++,l=this.buildKeyframeElement(t,c,e);(function(t){var e,i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(l);var h=ee(t,e),d=new de(t,e,c,i,n,r,u,h);return d.onDestroy(function(){var t;(t=l).parentNode.removeChild(t)}),d}}]),t}(),ge=function(){function t(e,i,n,r){v(this,t),this.element=e,this.keyframes=i,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return y(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,i){return t.animate(e,i)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(i){"offset"!=i&&(e[i]=t._finished?t._finalKeyframe[i]:it(t.element,i))}),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),ve=function(){function t(){v(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(me().toString()),this._cssKeyframesDriver=new pe}return y(t,[{key:"validateStyleProperty",value:function(t){return I(t)}},{key:"matchesElement",value:function(t,e){return O(t,e)}},{key:"containsElement",value:function(t,e){return P(t,e)}},{key:"query",value:function(t,e,i){return D(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,r,o);var s={duration:i,delay:n,fill:0==n?"both":"forwards"};r&&(s.easing=r);var u={},c=o.filter(function(t){return t instanceof ge});$(i,n)&&c.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})});var l=ee(t,e=tt(t,e=e.map(function(t){return q(t,!1)}),u));return new ge(t,e,s,l)}}]),t}();function me(){return l()&&Element.prototype.animate||{}}var ye=i(61511),be=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this))._nextAnimationId=0,r._renderer=t.createRenderer(n.body,{id:"0",encapsulation:a.ifc.None,styles:[],data:{animation:[]}}),r}return y(i,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var i=Array.isArray(t)?(0,c.vP)(t):t;return Ae(this._renderer,null,e,"register",[i]),new we(e,this._renderer)}}]),i}(c._j);return t.\u0275fac=function(e){return new(e||t)(a.LFG(a.FYo),a.LFG(ye.K0))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t}(),we=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this))._id=t,r._renderer=n,r}return y(i,[{key:"create",value:function(t,e){return new _e(this._id,t,e||{},this._renderer)}}]),i}(c.LC),_e=function(){function t(e,i,n,r){v(this,t),this.id=e,this.element=i,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return y(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}},{key:"removeChild",value:function(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}},{key:"removeAttribute",value:function(t,e,i){this.delegate.removeAttribute(t,e,i)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,i,n){this.delegate.setStyle(t,e,i,n)}},{key:"removeStyle",value:function(t,e,i){this.delegate.removeStyle(t,e,i)}},{key:"setProperty",value:function(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,i){return this.delegate.listen(t,e,i)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}}]),t}(),Ce=function(t){o(i,t);var e=s(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,n,r,o)).factory=t,a.namespaceId=n,a}return y(i,[{key:"setProperty",value:function(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}},{key:"listen",value:function(t,e,i){var n,o,a=this;if("@"==e.charAt(0)){var s,u=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),c=e.substr(1),l="";return"@"!=c.charAt(0)&&(o=(n=c).indexOf("."),c=(s=r([n.substring(0,o),n.substr(o+1)],2))[0],l=s[1]),this.engine.listen(this.namespaceId,u,c,l,function(t){a.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}]),i}(Te),Se=function(){var t=function(t){o(i,t);var e=s(i);function i(t,n,r){return v(this,i),e.call(this,t.body,n,r)}return y(i,[{key:"ngOnDestroy",value:function(){this.flush()}}]),i}(te);return t.\u0275fac=function(e){return new(e||t)(a.LFG(ye.K0),a.LFG(N),a.LFG(St))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t}(),Ee=new a.OlP("AnimationModuleType"),xe=[{provide:c._j,useClass:be},{provide:St,useFactory:function(){return new Et}},{provide:te,useClass:Se},{provide:a.FYo,useFactory:function(t,e,i){return new ke(t,e,i)},deps:[u.se,te,a.R0b]}],Re=[{provide:N,useFactory:function(){return"function"==typeof me()?new ve:new pe}},{provide:Ee,useValue:"BrowserAnimations"}].concat(xe),Ie=[{provide:N,useClass:L},{provide:Ee,useValue:"NoopAnimations"}].concat(xe),Oe=function(){var t=function(){function t(){v(this,t)}return y(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:e.disableAnimations?Ie:Re}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({providers:Re,imports:[u.b2]}),t}()},30269:function(t,e,i){"use strict";i.d(e,{b2:function(){return H},H7:function(){return F},Dx:function(){return G},q6:function(){return q},se:function(){return x}});var r,a=i(61511),u=i(31572),c=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"onAndCancel",value:function(t,e,i){return t.addEventListener(e,i,!1),function(){t.removeEventListener(e,i,!1)}}},{key:"dispatchEvent",value:function(t,e){t.dispatchEvent(e)}},{key:"remove",value:function(t){t.parentNode&&t.parentNode.removeChild(t)}},{key:"createElement",value:function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(t){return t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}},{key:"getBaseHref",value:function(t){var e=(l=l||document.querySelector("base"))?l.getAttribute("href"):null;return null==e?null:function(t){(r=r||document.createElement("a")).setAttribute("href",t);var e=r.pathname;return"/"===e.charAt(0)?e:"/".concat(e)}(e)}},{key:"resetBaseElement",value:function(){l=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(t){return(0,a.Mx)(document.cookie,t)}}],[{key:"makeCurrent",value:function(){(0,a.HT)(new i)}}]),i}(function(t){o(i,t);var e=s(i);function i(){var t;return v(this,i),(t=e.apply(this,arguments)).supportsDOMEvents=!0,t}return i}(a.w_)),l=null,d=new u.OlP("TRANSITION_ID"),f=[{provide:u.ip1,useFactory:function(t,e,i){return function(){i.get(u.CZH).donePromise.then(function(){var i=(0,a.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(function(e){return e.getAttribute("ng-transition")===t}).forEach(function(t){return i.remove(t)})})}},deps:[d,a.K0,u.zs3],multi:!0}],p=function(){function t(){v(this,t)}return y(t,[{key:"addToWindow",value:function(t){u.dqk.getAngularTestability=function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},u.dqk.getAllAngularTestabilities=function(){return t.getAllTestabilities()},u.dqk.getAllAngularRootElements=function(){return t.getAllRootElements()},u.dqk.frameworkStabilizers||(u.dqk.frameworkStabilizers=[]),u.dqk.frameworkStabilizers.push(function(t){var e=u.dqk.getAllAngularTestabilities(),i=e.length,n=!1,r=function(e){n=n||e,0==--i&&t(n)};e.forEach(function(t){t.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(t,e,i){if(null==e)return null;var n=t.getTestability(e);return null!=n?n:i?(0,a.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){(0,u.VLi)(new t)}}]),t}(),g=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac}),t}(),m=new u.OlP("EventManagerPlugins"),b=function(){var t=function(){function t(e,i){var n=this;v(this,t),this._zone=i,this._eventNameToPlugin=new Map,e.forEach(function(t){return t.manager=n}),this._plugins=e.slice().reverse()}return y(t,[{key:"addEventListener",value:function(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}},{key:"addGlobalEventListener",value:function(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var i=this._plugins,n=0;n-1&&(e.splice(i,1),o+=t+".")}),o+=r,0!=e.length||0===r.length)return null;var a={};return a.domEventName=n,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",i=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&L.hasOwnProperty(e)&&(e=L[e]))}return M[e]||e}(t);return" "===(i=i.toLowerCase())?i="space":"."===i&&(i="dot"),D.forEach(function(n){n!=i&&(0,N[n])(t)&&(e+=n+".")}),e+=i}},{key:"eventCallback",value:function(t,e,n){return function(r){i.getEventFullKey(r)===t&&n.runGuarded(function(){return e(r)})}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),i}(w);return t.\u0275fac=function(e){return new(e||t)(u.LFG(a.K0))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac}),t}(),F=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,u.Yz7)({factory:function(){return(0,u.LFG)(B)},token:t,providedIn:"root"}),t}();function Z(t){return new B(t.get(a.K0))}var B=function(){var t=function(t){o(i,t);var e=s(i);function i(t){var n;return v(this,i),(n=e.call(this))._doc=t,n}return y(i,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case u.q3G.NONE:return e;case u.q3G.HTML:return(0,u.qzn)(e,"HTML")?(0,u.z3N)(e):(0,u.EiD)(this._doc,String(e)).toString();case u.q3G.STYLE:return(0,u.qzn)(e,"Style")?(0,u.z3N)(e):e;case u.q3G.SCRIPT:if((0,u.qzn)(e,"Script"))return(0,u.z3N)(e);throw new Error("unsafe value used in a script context");case u.q3G.URL:return(0,u.yhl)(e),(0,u.qzn)(e,"URL")?(0,u.z3N)(e):(0,u.mCW)(String(e));case u.q3G.RESOURCE_URL:if((0,u.qzn)(e,"ResourceURL"))return(0,u.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return(0,u.JVY)(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return(0,u.L6k)(t)}},{key:"bypassSecurityTrustScript",value:function(t){return(0,u.eBb)(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return(0,u.LAX)(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return(0,u.pB0)(t)}}]),i}(F);return t.\u0275fac=function(e){return new(e||t)(u.LFG(a.K0))},t.\u0275prov=(0,u.Yz7)({factory:function(){return Z((0,u.LFG)(u.gxx))},token:t,providedIn:"root"}),t}(),q=(0,u.eFA)(u._c5,"browser",[{provide:u.Lbi,useValue:a.bD},{provide:u.g9A,useValue:function(){c.makeCurrent(),p.init()},multi:!0},{provide:a.K0,useFactory:function(){return(0,u.RDi)(document),document},deps:[]}]),U=[[],{provide:u.zSh,useValue:"root"},{provide:u.qLn,useFactory:function(){return new u.qLn},deps:[]},{provide:m,useClass:P,multi:!0,deps:[a.K0,u.R0b,u.Lbi]},{provide:m,useClass:z,multi:!0,deps:[a.K0]},[],{provide:x,useClass:x,deps:[b,A,u.AFp]},{provide:u.FYo,useExisting:x},{provide:_,useExisting:A},{provide:A,useClass:A,deps:[a.K0]},{provide:u.dDg,useClass:u.dDg,deps:[u.R0b]},{provide:b,useClass:b,deps:[m,u.R0b]},{provide:a.JF,useClass:g,deps:[]},[]],H=function(){var t=function(){function t(e){if(v(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return y(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:u.AFp,useValue:e.appId},{provide:d,useExisting:u.AFp},f]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(t,12))},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({providers:U,imports:[a.ez,u.hGG]}),t}();function j(){return new G((0,u.LFG)(a.K0))}var G=function(){var t=function(){function t(e){v(this,t),this._doc=e}return y(t,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(t){this._doc.title=t||""}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(a.K0))},t.\u0275prov=(0,u.Yz7)({factory:j,token:t,providedIn:"root"}),t}();"undefined"!=typeof window&&window},57629:function(t,e,i){"use strict";i.d(e,{gz:function(){return $t},m2:function(){return J},OD:function(){return K},GZ:function(){return xi},wN:function(){return ci},F0:function(){return _i},rH:function(){return Ai},yS:function(){return ki},Bz:function(){return Li},lC:function(){return Ci}});var n=i(61511),r=i(31572),a=i(19764),u=i(40878),l=i(78512),h=i(31305),p=i(48318),g=i(39665),m=i(47930),b=i(31450),w=i(70653),_=i(42875),A=i(55959),k=i(96673);function T(t,e){var i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new C(t,e,i))}}var C=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];v(this,t),this.accumulator=e,this.seed=i,this.hasSeed=n}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new S(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),S=function(t){o(i,t);var e=s(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t)).accumulator=n,a._seed=r,a.hasSeed=o,a.index=0,a}return y(i,[{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}},{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,i=this.index++;try{e=this.accumulator(this.seed,t,i)}catch(n){this.destination.error(n)}this.seed=e,this.destination.next(e)}}]),i}(k.L),E=i(43835),x=i(98402);function R(t){return function(e){return 0===t?(0,w.c)():e.lift(new I(t))}}var I=function(){function t(e){if(v(this,t),this.total=e,this.total<0)throw new x.W}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new O(t,this.total))}}]),t}(),O=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t)).total=n,r.ring=new Array,r.count=0,r}return y(i,[{key:"_next",value:function(t){var e=this.ring,i=this.total,n=this.count++;e.length0)for(var i=this.count>=this.total?this.total:this.count,n=this.ring,r=0;r2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return v(this,i),(r=e.call(this,t,n)).navigationTrigger=o,r.restoredState=a,r}return y(i,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(V),J=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t,n)).urlAfterRedirects=r,o}return y(i,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),i}(V),Q=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t,n)).reason=r,o}return y(i,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(V),W=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t,n)).error=r,o}return y(i,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),i}(V),X=function(t){o(i,t);var e=s(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return y(i,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(V),$=function(t){o(i,t);var e=s(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return y(i,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(V),tt=function(t){o(i,t);var e=s(i);function i(t,n,r,o,a){var s;return v(this,i),(s=e.call(this,t,n)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return y(i,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),i}(V),et=function(t){o(i,t);var e=s(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return y(i,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(V),it=function(t){o(i,t);var e=s(i);function i(t,n,r,o){var a;return v(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return y(i,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(V),nt=function(){function t(e){v(this,t),this.route=e}return y(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),rt=function(){function t(e){v(this,t),this.route=e}return y(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),ot=function(){function t(e){v(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),at=function(){function t(e){v(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),st=function(){function t(e){v(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),ut=function(){function t(e){v(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),ct=function(){function t(e,i,n){v(this,t),this.routerEvent=e,this.position=i,this.anchor=n}return y(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),lt=function(){function t(e){v(this,t),this.params=e||{}}return y(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function ht(t){return new lt(t)}function dt(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function ft(t,e,i){var n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.length0?t[t.length-1]:null}function yt(t,e){for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)}function bt(t){return(0,r.CqO)(t)?t:(0,r.QGY)(t)?(0,a.D)(Promise.resolve(t)):(0,u.of)(t)}var wt={exact:function t(e,i,n){if(!Rt(e.segments,i.segments))return!1;if(!Ct(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(var r in i.children){if(!e.children[r])return!1;if(!t(e.children[r],i.children[r],n))return!1}return!0},subset:kt},_t={exact:function(t,e){return pt(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(i){return gt(t[i],e[i])})},ignored:function(){return!0}};function At(t,e,i){return wt[i.paths](t.root,e.root,i.matrixParams)&&_t[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function kt(t,e,i){return Tt(t,e,e.segments,i)}function Tt(t,e,i,n){if(t.segments.length>i.length){var r=t.segments.slice(0,i.length);return!!Rt(r,i)&&!e.hasChildren()&&!!Ct(r,i,n)}if(t.segments.length===i.length){if(!Rt(t.segments,i))return!1;if(!Ct(t.segments,i,n))return!1;for(var o in e.children){if(!t.children[o])return!1;if(!kt(t.children[o],e.children[o],n))return!1}return!0}var a=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!!Rt(t.segments,a)&&!!Ct(t.segments,a,n)&&!!t.children.primary&&Tt(t.children.primary,e,s,n)}function Ct(t,e,i){return e.every(function(e,n){return _t[i](t[n].parameters,e.parameters)})}var St=function(){function t(e,i,n){v(this,t),this.root=e,this.queryParams=i,this.fragment=n}return y(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ht(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Pt.serialize(this)}}]),t}(),Et=function(){function t(e,i){var n=this;v(this,t),this.segments=e,this.children=i,this.parent=null,yt(i,function(t,e){return t.parent=n})}return y(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Dt(this)}}]),t}(),xt=function(){function t(e,i){v(this,t),this.path=e,this.parameters=i}return y(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=ht(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return Bt(this)}}]),t}();function Rt(t,e){return t.length===e.length&&t.every(function(t,i){return t.path===e[i].path})}var It=function t(){v(this,t)},Ot=function(){function t(){v(this,t)}return y(t,[{key:"parse",value:function(t){var e=new Gt(t);return new St(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,i,n;return"/".concat(Mt(t.root,!0)).concat((i=t.queryParams,n=Object.keys(i).map(function(t){var e=i[t];return Array.isArray(e)?e.map(function(e){return"".concat(Nt(t),"=").concat(Nt(e))}).join("&"):"".concat(Nt(t),"=").concat(Nt(e))}).filter(function(t){return!!t}),n.length?"?".concat(n.join("&")):"")).concat("string"==typeof t.fragment?"#".concat((e=t.fragment,encodeURI(e))):"")}}]),t}(),Pt=new Ot;function Dt(t){return t.segments.map(function(t){return Bt(t)}).join("/")}function Mt(t,e){if(!t.hasChildren())return Dt(t);if(e){var i=t.children.primary?Mt(t.children.primary,!1):"",n=[];return yt(t.children,function(t,e){"primary"!==e&&n.push("".concat(e,":").concat(Mt(t,!1)))}),n.length>0?"".concat(i,"(").concat(n.join("//"),")"):i}var r=function(t,e){var i=[];return yt(t.children,function(t,n){"primary"===n&&(i=i.concat(e(t,n)))}),yt(t.children,function(t,n){"primary"!==n&&(i=i.concat(e(t,n)))}),i}(t,function(e,i){return"primary"===i?[Mt(t.children.primary,!1)]:["".concat(i,":").concat(Mt(e,!1))]});return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(Dt(t),"/").concat(r[0]):"".concat(Dt(t),"/(").concat(r.join("//"),")")}function Lt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Nt(t){return Lt(t).replace(/%3B/gi,";")}function zt(t){return Lt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ft(t){return decodeURIComponent(t)}function Zt(t){return Ft(t.replace(/\+/g,"%20"))}function Bt(t){return"".concat(zt(t.path)).concat((e=t.parameters,Object.keys(e).map(function(t){return";".concat(zt(t),"=").concat(zt(e[t]))}).join("")));var e}var qt=/^[^\/()?;=#]+/;function Ut(t){var e=t.match(qt);return e?e[0]:""}var Ht=/^[^=?&#]+/,jt=/^[^?&#]+/,Gt=function(){function t(e){v(this,t),this.url=e,this.remaining=e}return y(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Et([],{}):new Et([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new Et(t,e)),i}},{key:"parseSegment",value:function(){var t=Ut(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new xt(Ft(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=Ut(this.remaining);if(e){this.capture(e);var i="";if(this.consumeOptional("=")){var n=Ut(this.remaining);n&&(i=n,this.capture(i))}t[Ft(e)]=Ft(i)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(Ht);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var i="";if(this.consumeOptional("=")){var n=function(t){var e=t.match(jt);return e?e[0]:""}(this.remaining);n&&(i=n,this.capture(i))}var r=Zt(e),o=Zt(i);if(t.hasOwnProperty(r)){var a=t[r];Array.isArray(a)||(a=[a],t[r]=a),a.push(o)}else t[r]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var i=Ut(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");var o=this.parseChildren();e[r]=1===Object.keys(o).length?o.primary:new Et([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),Yt=function(){function t(e){v(this,t),this._root=e}return y(t,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=Vt(t,this._root);return e?e.children.map(function(t){return t.value}):[]}},{key:"firstChild",value:function(t){var e=Vt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Kt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})}},{key:"pathFromRoot",value:function(t){return Kt(t,this._root).map(function(t){return t.value})}}]),t}();function Vt(t,e){if(t===e.value)return e;var i,n=f(e.children);try{for(n.s();!(i=n.n()).done;){var r=Vt(t,i.value);if(r)return r}}catch(o){n.e(o)}finally{n.f()}return null}function Kt(t,e){if(t===e.value)return[e];var i,n=f(e.children);try{for(n.s();!(i=n.n()).done;){var r=Kt(t,i.value);if(r.length)return r.unshift(e),r}}catch(o){n.e(o)}finally{n.f()}return[]}var Jt=function(){function t(e,i){v(this,t),this.value=e,this.children=i}return y(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function Qt(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Wt=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t)).snapshot=n,ne(c(r),t),r}return y(i,[{key:"toString",value:function(){return this.snapshot.toString()}}]),i}(Yt);function Xt(t,e){var i=function(t,e){var i=new ee([],{},{},"",{},"primary",e,null,t.root,-1,{});return new ie("",new Jt(i,[]))}(t,e),n=new l.X([new xt("",{})]),r=new l.X({}),o=new l.X({}),a=new l.X({}),s=new l.X(""),u=new $t(n,r,a,s,o,"primary",e,i.root);return u.snapshot=i.root,new Wt(new Jt(u,[]),i)}var $t=function(){function t(e,i,n,r,o,a,s,u){v(this,t),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return y(t,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,L.U)(function(t){return ht(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,L.U)(function(t){return ht(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function te(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",i=t.pathFromRoot,n=0;if("always"!==e)for(n=i.length-1;n>=1;){var r=i[n],o=i[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function(t){return t.reduce(function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}},{params:{},data:{},resolve:{}})}(i.slice(n))}var ee=function(){function t(e,i,n,r,o,a,s,u,c,l,h){v(this,t),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=l,this._resolve=h}return y(t,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=ht(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ht(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(t){return t.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),t}(),ie=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this,n)).url=t,ne(c(r),n),r}return y(i,[{key:"toString",value:function(){return re(this._root)}}]),i}(Yt);function ne(t,e){e.value._routerState=t,e.children.forEach(function(e){return ne(t,e)})}function re(t){var e=t.children.length>0?" { ".concat(t.children.map(re).join(", ")," } "):"";return"".concat(t.value).concat(e)}function oe(t){if(t.snapshot){var e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,pt(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),pt(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(var i=0;i0&&ce(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(le);if(r&&r!==mt(n))throw new Error("{outlets:{}} has to be the last command")}return y(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),pe=function t(e,i,n){v(this,t),this.segmentGroup=e,this.processChildren=i,this.index=n};function ge(t,e,i){if(t||(t=new Et([],{})),0===t.segments.length&&t.hasChildren())return ve(t,e,i);var n=function(t,e,i){for(var n=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};r=i.length)return o;var a=t.segments[r],s=i[n];if(le(s))break;var u="".concat(s),c=n0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!we(u,c,a))return o;n+=2}else{if(!we(u,{},a))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",i=0;i0)?Object.assign({},Le):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(e.matcher||ft)(i,t,e);if(!r)return Object.assign({},Le);var o={};yt(r.posParams,function(t,e){o[e]=t.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(n=r.posParams)&&void 0!==n?n:{}}}function ze(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(i.length>0&&function(t,e,i){return i.some(function(i){return Fe(t,e,i)&&"primary"!==De(i)})}(t,i,n)){var o=new Et(e,function(t,e,i,n){var r={};r.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;var o,a=f(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&"primary"!==De(s)){var u=new Et([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,r[De(s)]=u}}}catch(c){a.e(c)}finally{a.f()}return r}(t,e,n,new Et(i,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(function(i){return Fe(t,e,i)})}(t,i,n)){var a=new Et(t.segments,function(t,e,i,n,r,o){var a,s={},u=f(n);try{for(u.s();!(a=u.n()).done;){var c=a.value;if(Fe(t,i,c)&&!r[De(c)]){var l=new Et([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[De(c)]=l}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},r),s)}(t,e,i,n,t.children,r));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}var s=new Et(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:i}}function Fe(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Ze(t,e,i,n){return!!(De(t)===n||"primary"!==n&&Fe(e,i,t))&&("**"===t.path||Ne(e,t,i).matched)}function Be(t,e,i){return 0===e.length&&!t.children[i]}var qe=function t(e){v(this,t),this.segmentGroup=e||null},Ue=function t(e){v(this,t),this.urlTree=e};function He(t){return new p.y(function(e){return e.error(new qe(t))})}function je(t){return new p.y(function(e){return e.error(new Ue(t))})}function Ge(t){return new p.y(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))})}var Ye=function(){function t(e,i,n,o,a){v(this,t),this.configLoader=i,this.urlSerializer=n,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=e.get(r.h0i)}return y(t,[{key:"apply",value:function(){var t=this,e=ze(this.urlTree.root,[],[],this.config).segmentGroup,i=new Et(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,i,"primary").pipe((0,L.U)(function(e){return t.createUrlTree(Ve(e),t.urlTree.queryParams,t.urlTree.fragment)})).pipe((0,Z.K)(function(e){if(e instanceof Ue)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof qe)throw t.noMatchError(e);throw e}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe((0,L.U)(function(i){return e.createUrlTree(Ve(i),t.queryParams,t.fragment)})).pipe((0,Z.K)(function(t){if(t instanceof qe)throw e.noMatchError(t);throw t}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,i){var n=t.segments.length>0?new Et([],{primary:t}):t;return new St(n,e,i)}},{key:"expandSegmentGroup",value:function(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe((0,L.U)(function(t){return new Et([],t)})):this.expandSegment(t,i,e,i.segments,n,!0)}},{key:"expandChildren",value:function(t,e,i){for(var n=this,r=[],o=0,s=Object.keys(i.children);o=2;return function(n){return n.pipe(t?(0,E.h)(function(e,i){return t(e,i,n)}):M.y,R(1),i?(0,D.d)(e):(0,P.T)(function(){return new g.K}))}}())}},{key:"expandSegment",value:function(t,e,i,n,r,o){var s=this;return(0,a.D)(i).pipe((0,B.b)(function(a){return s.expandSegmentAgainstRoute(t,e,i,a,n,r,o).pipe((0,Z.K)(function(t){if(t instanceof qe)return(0,u.of)(null);throw t}))}),(0,q.P)(function(t){return!!t}),(0,Z.K)(function(t,i){if(t instanceof g.K||"EmptyError"===t.name){if(Be(e,n,r))return(0,u.of)(new Et([],{}));throw new qe(e)}throw t}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,i,n,r,o,a){return Ze(n,e,r,o)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,r,o):He(e):He(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,i,n,r,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,i,n){var r=this,o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?je(o):this.lineralizeSegments(i,o).pipe((0,U.zg)(function(i){var o=new Et(i,{});return r.expandSegment(t,o,e,i,n,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,i,n,r,o){var a=this,s=Ne(e,n,r),u=s.matched,c=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!u)return He(e);var d=this.applyRedirectCommands(c,n.redirectTo,h);return n.redirectTo.startsWith("/")?je(d):this.lineralizeSegments(n,d).pipe((0,U.zg)(function(n){return a.expandSegment(t,e,i,n.concat(r.slice(l)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,i,n,r){var o=this;if("**"===i.path)return i.loadChildren?(i._loadedConfig?(0,u.of)(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe((0,L.U)(function(t){return i._loadedConfig=t,new Et(n,{})})):(0,u.of)(new Et(n,{}));var a=Ne(e,i,n),s=a.matched,c=a.consumedSegments,l=a.lastChild;if(!s)return He(e);var h=n.slice(l);return this.getChildConfig(t,i,n).pipe((0,U.zg)(function(t){var n=t.module,a=t.routes,s=ze(e,c,h,a),l=s.segmentGroup,d=s.slicedSegments,f=new Et(l.segments,l.children);if(0===d.length&&f.hasChildren())return o.expandChildren(n,a,f).pipe((0,L.U)(function(t){return new Et(c,t)}));if(0===a.length&&0===d.length)return(0,u.of)(new Et(c,{}));var p=De(i)===r;return o.expandSegment(n,f,a,d,p?"primary":r,!0).pipe((0,L.U)(function(t){return new Et(c.concat(t.segments),t.children)}))}))}},{key:"getChildConfig",value:function(t,e,i){var n=this;return e.children?(0,u.of)(new ke(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,u.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe((0,U.zg)(function(i){return i?n.configLoader.load(t.injector,e).pipe((0,L.U)(function(t){return e._loadedConfig=t,t})):function(t){return new p.y(function(e){return e.error(dt("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))})}(e)})):(0,u.of)(new ke([],t))}},{key:"runCanLoadGuards",value:function(t,e,i){var n=this,r=e.canLoad;if(!r||0===r.length)return(0,u.of)(!0);var o=r.map(function(n){var r,o=t.get(n);if(function(t){return t&&Te(t.canLoad)}(o))r=o.canLoad(e,i);else{if(!Te(o))throw new Error("Invalid CanLoad guard");r=o(e,i)}return bt(r)});return(0,u.of)(o).pipe(Ee(),(0,H.b)(function(t){if(Ce(t)){var e=dt('Redirecting to "'.concat(n.urlSerializer.serialize(t),'"'));throw e.url=t,e}}),(0,L.U)(function(t){return!0===t}))}},{key:"lineralizeSegments",value:function(t,e){for(var i=[],n=e.root;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return(0,u.of)(i);if(n.numberOfChildren>1||!n.children.primary)return Ge(t.redirectTo);n=n.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,i,n){var r=this.createSegmentGroup(t,e.root,i,n);return new St(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var i={};return yt(t,function(t,n){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);i[n]=e[r]}else i[n]=t}),i}},{key:"createSegmentGroup",value:function(t,e,i,n){var r=this,o=this.createSegments(t,e.segments,i,n),a={};return yt(e.children,function(e,o){a[o]=r.createSegmentGroup(t,e,i,n)}),new Et(o,a)}},{key:"createSegments",value:function(t,e,i,n){var r=this;return e.map(function(e){return e.path.startsWith(":")?r.findPosParam(t,e,n):r.findOrReturn(e,i)})}},{key:"findPosParam",value:function(t,e,i){var n=i[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return n}},{key:"findOrReturn",value:function(t,e){var i,n=0,r=f(e);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.path===t.path)return e.splice(n),o;n++}}catch(a){r.e(a)}finally{r.f()}return t}}]),t}();function Ve(t){for(var e={},i=0,n=Object.keys(t.children);i0||o.hasChildren())&&(e[r]=o)}return function(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Et(t.segments.concat(e.segments),e.children)}return t}(new Et(t.segments,e))}var Ke=function t(e){v(this,t),this.path=e,this.route=this.path[this.path.length-1]},Je=function t(e,i){v(this,t),this.component=e,this.route=i};function Qe(t,e,i){var n=t._root;return Xe(n,e?e._root:null,i,[n.value])}function We(t,e,i){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var i=e.routeConfig;if(i&&i._loadedConfig)return i._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Xe(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=Qt(e);return t.children.forEach(function(t){!function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,a=e?e.value:null,s=i?i.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!Rt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Rt(t.url,e.url)||!pt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ae(t,e)||!pt(t.queryParams,e.queryParams);case"paramsChange":default:return!ae(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new Ke(n)):(o.data=a.data,o._resolvedData=a._resolvedData),Xe(t,e,o.component?s?s.children:null:i,n,r),u&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Je(s.outlet.component,a))}else a&&$e(e,s,r),r.canActivateChecks.push(new Ke(n)),Xe(t,null,o.component?s?s.children:null:i,n,r)}(t,o[t.value.outlet],i,n.concat([t.value]),r),delete o[t.value.outlet]}),yt(o,function(t,e){return $e(t,i.getContext(e),r)}),r}function $e(t,e,i){var n=Qt(t),r=t.value;yt(n,function(t,n){$e(t,r.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Je(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var ti=function t(){v(this,t)};function ei(t){return new p.y(function(e){return e.error(t)})}var ii=function(){function t(e,i,n,r,o,a){v(this,t),this.rootComponentType=e,this.config=i,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return y(t,[{key:"recognize",value:function(){var t=ze(this.urlTree.root,[],[],this.config.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;var i=new ee([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Jt(i,e),r=new ie(this.url,n);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(t){var e=this,i=t.value,n=te(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})}},{key:"processSegmentGroup",value:function(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}},{key:"processChildren",value:function(t,e){for(var i=[],n=0,r=Object.keys(e.children);n0?mt(i).parameters:{};r=new ee(i,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ai(t),De(t),t.component,t,ri(e),oi(e)+i.length,si(t))}else{var u=Ne(e,t,i);if(!u.matched)return null;o=u.consumedSegments,a=i.slice(u.lastChild),r=new ee(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ai(t),De(t),t.component,t,ri(e),oi(e)+o.length,si(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),l=ze(e,o,a,c.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution),h=l.segmentGroup,d=l.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(c,h);return null===f?null:[new Jt(r,f)]}if(0===c.length&&0===d.length)return[new Jt(r,[])];var p=De(t)===n,g=this.processSegment(c,h,d,p?"primary":n);return null===g?null:[new Jt(r,g)]}}]),t}();function ni(t){var e,i=[],n=new Set,r=f(t);try{var o=function(){var t,r=e.value;if(!function(t){var e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}(r))return i.push(r),"continue";var o=i.find(function(t){return r.value.routeConfig===t.value.routeConfig});void 0!==o?((t=o.children).push.apply(t,d(r.children)),n.add(o)):i.push(r)};for(r.s();!(e=r.n()).done;)o()}catch(l){r.e(l)}finally{r.f()}var a,s=f(n);try{for(s.s();!(a=s.n()).done;){var u=a.value,c=ni(u.children);i.push(new Jt(u.value,c))}}catch(l){s.e(l)}finally{s.f()}return i.filter(function(t){return!n.has(t)})}function ri(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function oi(t){for(var e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)i+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return i-1}function ai(t){return t.data||{}}function si(t){return t.resolve||{}}function ui(t){return(0,N.w)(function(e){var i=t(e);return i?(0,a.D)(i).pipe((0,L.U)(function(){return e})):(0,u.of)(e)})}var ci=function t(){v(this,t)},li=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(function(){function t(){v(this,t)}return y(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),hi=new r.OlP("ROUTES"),di=function(){function t(e,i,n,r){v(this,t),this.loader=e,this.compiler=i,this.onLoadStartListener=n,this.onLoadEndListener=r}return y(t,[{key:"load",value:function(t,e){var i=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var n=this.loadModuleFactory(e.loadChildren).pipe((0,L.U)(function(n){i.onLoadEndListener&&i.onLoadEndListener(e);var o=n.create(t);return new ke(vt(o.injector.get(hi,void 0,r.XFs.Self|r.XFs.Optional)).map(Pe),o)}),(0,Z.K)(function(t){throw e._loader$=void 0,t}));return e._loader$=new _.c(n,function(){return new A.xQ}).pipe((0,j.x)()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?(0,a.D)(this.loader.load(t)):bt(t()).pipe((0,U.zg)(function(t){return t instanceof r.YKP?(0,u.of)(t):(0,a.D)(e.compiler.compileModuleAsync(t))}))}}]),t}(),fi=function t(){v(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new pi,this.attachRef=null},pi=function(){function t(){v(this,t),this.contexts=new Map}return y(t,[{key:"onChildOutletCreated",value:function(t,e){var i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new fi,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),gi=function(){function t(){v(this,t)}return y(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function vi(t){throw t}function mi(t,e,i){return e.parse("/")}function yi(t,e){return(0,u.of)(null)}var bi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},_i=function(){var t=function(){function t(e,i,n,o,a,s,u,c){var h=this;v(this,t),this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=n,this.location=o,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new A.xQ,this.errorHandler=vi,this.malformedUriErrorHandler=mi,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:yi,afterPreactivation:yi},this.urlHandlingStrategy=new gi,this.routeReuseStrategy=new li,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=a.get(r.h0i),this.console=a.get(r.c2e);var d=a.get(r.R0b);this.isNgZoneEnabled=d instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new St(new Et([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new di(s,u,function(t){return h.triggerEvent(new nt(t))},function(t){return h.triggerEvent(new rt(t))}),this.routerState=Xt(this.currentUrlTree,this.rootComponentType),this.transitions=new l.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()}return y(t,[{key:"setupNavigations",value:function(t){var e=this,i=this.events;return t.pipe((0,E.h)(function(t){return 0!==t.id}),(0,L.U)(function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),(0,N.w)(function(t){var n,r,o,s=!1,c=!1;return(0,u.of)(t).pipe((0,H.b)(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,N.w)(function(t){var n,r,o,a,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,u.of)(t).pipe((0,N.w)(function(t){var n=e.transitions.getValue();return i.next(new K(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==e.transitions.getValue()?w.E:Promise.resolve(t)}),(n=e.ngModule.injector,r=e.configLoader,o=e.urlSerializer,a=e.config,(0,N.w)(function(t){return function(t,e,i,n,r){return new Ye(t,e,i,n,r).apply()}(n,r,o,t.extractedUrl,a).pipe((0,L.U)(function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})}))})),(0,H.b)(function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,i,n,r,o){return(0,U.zg)(function(n){return function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new ii(t,e,i,n,r,o).recognize();return null===a?ei(new ti):(0,u.of)(a)}catch(s){return ei(s)}}(t,i,n.urlAfterRedirects,(a=n.urlAfterRedirects,e.serializeUrl(a)),r,o).pipe((0,L.U)(function(t){return Object.assign(Object.assign({},n),{targetSnapshot:t})}));var a})}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),(0,H.b)(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,t),e.browserUrlTree=t.urlAfterRedirects);var n=new X(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);i.next(n)}));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var c=t.id,l=t.extractedUrl,h=t.source,d=t.restoredState,f=t.extras,p=new K(c,e.serializeUrl(l),h,d);i.next(p);var g=Xt(l,e.rootComponentType).snapshot;return(0,u.of)(Object.assign(Object.assign({},t),{targetSnapshot:g,urlAfterRedirects:l,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),w.E}),ui(function(t){var i=t.targetSnapshot,n=t.id,r=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,u=a.replaceUrl;return e.hooks.beforePreactivation(i,{navigationId:n,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),(0,H.b)(function(t){var i=new $(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)}),(0,L.U)(function(t){return Object.assign(Object.assign({},t),{guards:Qe(t.targetSnapshot,t.currentSnapshot,e.rootContexts)})}),function(t,e){return(0,U.zg)(function(i){var n=i.targetSnapshot,r=i.currentSnapshot,o=i.guards,s=o.canActivateChecks,c=o.canDeactivateChecks;return 0===c.length&&0===s.length?(0,u.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return(0,a.D)(t).pipe((0,U.zg)(function(t){return function(t,e,i,n,r){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,u.of)(!0);var a=o.map(function(o){var a,s=We(o,e,r);if(function(t){return t&&Te(t.canDeactivate)}(s))a=bt(s.canDeactivate(t,e,i,n));else{if(!Te(s))throw new Error("Invalid CanDeactivate guard");a=bt(s(t,e,i,n))}return a.pipe((0,q.P)())});return(0,u.of)(a).pipe(Ee())}(t.component,t.route,i,e,n)}),(0,q.P)(function(t){return!0!==t},!0))}(c,n,r,t).pipe((0,U.zg)(function(i){return i&&"boolean"==typeof i?function(t,e,i,n){return(0,a.D)(e).pipe((0,B.b)(function(e){return(0,m.z)(function(t,e){return null!==t&&e&&e(new ot(t)),(0,u.of)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new st(t)),(0,u.of)(!0)}(e.route,n),function(t,e,i){var n=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return(0,b.P)(function(){var r=e.guards.map(function(r){var o,a=We(r,e.node,i);if(function(t){return t&&Te(t.canActivateChild)}(a))o=bt(a.canActivateChild(n,t));else{if(!Te(a))throw new Error("Invalid CanActivateChild guard");o=bt(a(n,t))}return o.pipe((0,q.P)())});return(0,u.of)(r).pipe(Ee())})});return(0,u.of)(r).pipe(Ee())}(t,e.path,i),function(t,e,i){var n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return(0,u.of)(!0);var r=n.map(function(n){return(0,b.P)(function(){var r,o=We(n,e,i);if(function(t){return t&&Te(t.canActivate)}(o))r=bt(o.canActivate(e,t));else{if(!Te(o))throw new Error("Invalid CanActivate guard");r=bt(o(e,t))}return r.pipe((0,q.P)())})});return(0,u.of)(r).pipe(Ee())}(t,e.route,i))}),(0,q.P)(function(t){return!0!==t},!0))}(n,s,t,e):(0,u.of)(i)}),(0,L.U)(function(t){return Object.assign(Object.assign({},i),{guardsResult:t})}))})}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),(0,H.b)(function(t){if(Ce(t.guardsResult)){var i=dt('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw i.url=t.guardsResult,i}var n=new tt(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),(0,E.h)(function(t){return!!t.guardsResult||(e.cancelNavigationTransition(t,""),!1)}),ui(function(t){if(t.guards.canActivateChecks.length)return(0,u.of)(t).pipe((0,H.b)(function(t){var i=new et(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)}),(0,N.w)(function(t){var i,n,r=!1;return(0,u.of)(t).pipe((i=e.paramsInheritanceStrategy,n=e.ngModule.injector,(0,U.zg)(function(t){var e=t.targetSnapshot,r=t.guards.canActivateChecks;if(!r.length)return(0,u.of)(t);var o=0;return(0,a.D)(r).pipe((0,B.b)(function(t){return function(t,e,i,n){return function(t,e,i,n){var r=Object.keys(t);if(0===r.length)return(0,u.of)({});var o={};return(0,a.D)(r).pipe((0,U.zg)(function(r){return function(t,e,i,n){var r=We(t,e,n);return bt(r.resolve?r.resolve(e,i):r(e,i))}(t[r],e,i,n).pipe((0,H.b)(function(t){o[r]=t}))}),R(1),(0,U.zg)(function(){return Object.keys(o).length===r.length?(0,u.of)(o):w.E}))}(t._resolve,t,e,n).pipe((0,L.U)(function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),te(t,i).resolve),null}))}(t.route,e,i,n)}),(0,H.b)(function(){return o++}),R(1),(0,U.zg)(function(e){return o===r.length?(0,u.of)(t):w.E}))})),(0,H.b)({next:function(){return r=!0},complete:function(){r||e.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}))}),(0,H.b)(function(t){var i=new it(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)}))}),ui(function(t){var i=t.targetSnapshot,n=t.id,r=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,u=a.replaceUrl;return e.hooks.afterPreactivation(i,{navigationId:n,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),(0,L.U)(function(t){var i=function(t,e,i){var n=se(t,e._root,i?i._root:void 0);return new Wt(n,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:i})}),(0,H.b)(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,t),e.browserUrlTree=t.urlAfterRedirects)}),(n=e.rootContexts,r=e.routeReuseStrategy,o=function(t){return e.triggerEvent(t)},(0,L.U)(function(t){return new _e(r,t.targetRouterState,t.currentRouterState,o).activate(n),t})),(0,H.b)({next:function(){s=!0},complete:function(){s=!0}}),(0,G.x)(function(){s||c||e.cancelNavigationTransition(t,"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId)),e.currentNavigation=null}),(0,Z.K)(function(n){if(c=!0,(s=n)&&s.ngNavigationCancelingError){var r=Ce(n.url);r||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new Q(t.id,e.serializeUrl(t.extractedUrl),n.message);i.next(o),r?setTimeout(function(){var i=e.urlHandlingStrategy.merge(n.url,e.rawUrlTree);e.scheduleNavigation(i,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new W(t.id,e.serializeUrl(t.extractedUrl),n);i.next(a);try{t.resolve(e.errorHandler(n))}catch(u){t.reject(u)}}var s;return w.E}))}))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var i=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,i)&&setTimeout(function(){var e=i.source,n=i.state,r=i.urlTree,o={replaceUrl:!0};if(n){var a=Object.assign({},n);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}t.scheduleNavigation(r,e,n,o)},0),t.lastLocationChangeInfo=i}))}},{key:"extractLocationChangeInfoFromEvent",value:function(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){Re(t),this.config=t.map(Pe),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.relativeTo,n=e.queryParams,r=e.fragment,o=e.queryParamsHandling,a=e.preserveFragment,s=i||this.routerState.root,u=a?this.currentUrlTree.fragment:r,c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=n||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,i,n,r){if(0===i.length)return he(e.root,e.root,e,n,r);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new fe(!0,0,t);var e=0,i=!1,n=t.reduce(function(t,n,r){if("object"==typeof n&&null!=n){if(n.outlets){var o={};return yt(n.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),[].concat(d(t),[{outlets:o}])}if(n.segmentPath)return[].concat(d(t),[n.segmentPath])}return"string"!=typeof n?[].concat(d(t),[n]):0===r?(n.split("/").forEach(function(n,r){0==r&&"."===n||(0==r&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[].concat(d(t),[n])},[]);return new fe(i,e,n)}(i);if(o.toRoot())return he(e.root,new Et([],{}),e,n,r);var a=function(t,e,i){if(t.isAbsolute)return new pe(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){var n=i.snapshot._urlSegment;return new pe(n,n===e.root,0)}var r=ce(t.commands[0])?0:1;return function(t,e,i){for(var n=t,r=e,o=i;o>r;){if(o-=r,!(n=n.parent))throw new Error("Invalid number of '../'");r=n.segments.length}return new pe(n,!1,r-o)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),s=a.processChildren?ve(a.segmentGroup,a.index,o.commands):ge(a.segmentGroup,a.index,o.commands);return he(a.segmentGroup,s,e,n,r)}(s,this.currentUrlTree,t,c,null!=u?u:null)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},i=Ce(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree),r=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(r=this.location.getState()),this.scheduleNavigation(n,"imperative",r,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};v(this,t),this.router=e,this.viewportScroller=i,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return y(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof K?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof J&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof ct&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new ct(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(_i),r.LFG(n.EM),r.LFG(void 0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),Oi=new r.OlP("ROUTER_CONFIGURATION"),Pi=new r.OlP("ROUTER_FORROOT_GUARD"),Di=[n.Ye,{provide:It,useClass:Ot},{provide:_i,useFactory:function(t,e,i,n,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,l=new _i(null,t,e,i,n,r,o,vt(a));return u&&(l.urlHandlingStrategy=u),c&&(l.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(s,l),s.enableTracing&&l.events.subscribe(function(t){var e,i;null===(e=console.group)||void 0===e||e.call(console,"Router Event: ".concat(t.constructor.name)),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),l},deps:[It,pi,n.Ye,r.zs3,r.v3s,r.Sil,hi,Oi,[function(){return function t(){v(this,t)}}(),new r.FiY],[ci,new r.FiY]]},pi,{provide:$t,useFactory:function(t){return t.routerState.root},deps:[_i]},{provide:r.v3s,useClass:r.EAV},Ri,xi,function(){function t(){v(this,t)}return y(t,[{key:"preload",value:function(t,e){return e().pipe((0,Z.K)(function(){return(0,u.of)(null)}))}}]),t}(),{provide:Oi,useValue:{enableTracing:!1}}];function Mi(){return new r.PXZ("Router",_i)}var Li=function(){var t=function(){function t(e,i){v(this,t)}return y(t,null,[{key:"forRoot",value:function(e,i){return{ngModule:t,providers:[Di,Zi(e),{provide:Pi,useFactory:Fi,deps:[[_i,new r.FiY,new r.tp0]]},{provide:Oi,useValue:i||{}},{provide:n.S$,useFactory:zi,deps:[n.lw,[new r.tBr(n.mr),new r.FiY],Oi]},{provide:Ii,useFactory:Ni,deps:[_i,n.EM,Oi]},{provide:Ei,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:xi},{provide:r.PXZ,multi:!0,useFactory:Mi},[Bi,{provide:r.ip1,multi:!0,useFactory:qi,deps:[Bi]},{provide:Hi,useFactory:Ui,deps:[Bi]},{provide:r.tb,multi:!0,useExisting:Hi}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Zi(e)]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(Pi,8),r.LFG(_i,8))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}();function Ni(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Ii(t,e,i)}function zi(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.useHash?new n.Do(t,e):new n.b0(t,e)}function Fi(t){return"guarded"}function Zi(t){return[{provide:r.deG,multi:!0,useValue:t},{provide:hi,multi:!0,useValue:t}]}var Bi=function(){var t=function(){function t(e){v(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new A.xQ}return y(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(n.V_,Promise.resolve(null)).then(function(){var e=null,i=new Promise(function(t){return e=t}),n=t.injector.get(_i),r=t.injector.get(Oi);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=function(){return t.initNavigation?(0,u.of)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},n.initialNavigation()):e(!0),i})}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Oi),i=this.injector.get(Ri),n=this.injector.get(Ii),o=this.injector.get(_i),a=this.injector.get(r.z2F);t===a.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||o.initialNavigation(),i.setUpPreloading(),n.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.zs3))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}();function qi(t){return t.appInitializer.bind(t)}function Ui(t){return t.bootstrapListener.bind(t)}var Hi=new r.OlP("Router Initializer")},48160:function(e,i,n){"use strict";n.d(i,{Zw:function(){return w},aw:function(){return Z},X$:function(){return F},sK:function(){return z}});var r=n(31572),a=n(40878),u=n(4710),c=n(3148),l=n(47930),h=n(31450),d=n(90611),p=n(68303),g=n(79996),m=n(436),b=n(44689),w=function t(){v(this,t)},_=function(){var t,e=function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"getTranslation",value:function(t){return(0,a.of)({})}}]),i}(w);return e.\u0275fac=function(i){return(t||(t=r.n5z(e)))(i||e)},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),A=function t(){v(this,t)},k=function(){var t=function(){function t(){v(this,t)}return y(t,[{key:"handle",value:function(t){return t.key}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}();function T(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;var i,n,r,o=typeof t;if(o==typeof e&&"object"==o){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in r=Object.create(null),t){if(!T(t[n],e[n]))return!1;r[n]=!0}for(n in e)if(!(n in r)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n5&&void 0!==arguments[5])||arguments[5],u=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l=arguments.length>8?arguments[8]:void 0;v(this,t),this.store=e,this.currentLoader=i,this.compiler=n,this.parser=o,this.missingTranslationHandler=a,this.useDefaultLang=s,this.isolate=u,this.extend=c,this.pending=!1,this._onTranslationChange=new r.vpe,this._onLangChange=new r.vpe,this._onDefaultLangChange=new r.vpe,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}return y(t,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(t){this.isolate?this._currentLang=t:this.store.currentLang=t}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(t){this.isolate?this._langs=t:this.store.langs=t}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(t){this.isolate?this._translations=t:this.store.translations=t}},{key:"setDefaultLang",value:function(t){var e=this;if(t!==this.defaultLang){var i=this.retrieveTranslations(t);void 0!==i?(null==this.defaultLang&&(this.defaultLang=t),i.pipe((0,d.q)(1)).subscribe(function(i){e.changeDefaultLang(t)})):this.changeDefaultLang(t)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(t){var e=this;if(t===this.currentLang)return(0,a.of)(this.translations[t]);var i=this.retrieveTranslations(t);return void 0!==i?(this.currentLang||(this.currentLang=t),i.pipe((0,d.q)(1)).subscribe(function(i){e.changeLang(t)}),i):(this.changeLang(t),(0,a.of)(this.translations[t]))}},{key:"retrieveTranslations",value:function(t){var e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}},{key:"getTranslation",value:function(t){var e=this;this.pending=!0;var i=this.currentLoader.getTranslation(t).pipe((0,p.d)(1),(0,d.q)(1));return this.loadingTranslations=i.pipe((0,g.U)(function(i){return e.compiler.compileTranslations(i,t)}),(0,p.d)(1),(0,d.q)(1)),this.loadingTranslations.subscribe({next:function(i){e.translations[t]=e.extend&&e.translations[t]?Object.assign(Object.assign({},i),e.translations[t]):i,e.updateLangs(),e.pending=!1},error:function(t){e.pending=!1}}),i}},{key:"setTranslation",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?E(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(t){var e=this;t.forEach(function(t){-1===e.langs.indexOf(t)&&e.langs.push(t)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(t,e,i){var n;if(e instanceof Array){var r,o={},s=!1,l=f(e);try{for(l.s();!(r=l.n()).done;){var h=r.value;o[h]=this.getParsedResult(t,h,i),(0,u.b)(o[h])&&(s=!0)}}catch(v){l.e(v)}finally{l.f()}if(s){var d=e.map(function(t){return(0,u.b)(o[t])?o[t]:(0,a.of)(o[t])});return(0,c.D)(d).pipe((0,g.U)(function(t){var i={};return t.forEach(function(t,n){i[e[n]]=t}),i}))}return o}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){var p={key:e,translateService:this};void 0!==i&&(p.interpolateParams=i),n=this.missingTranslationHandler.handle(p)}return void 0!==n?n:e}},{key:"get",value:function(t,e){var i=this;if(!C(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,m.b)(function(n){return n=i.getParsedResult(n,t,e),(0,u.b)(n)?n:(0,a.of)(n)}));var n=this.getParsedResult(this.translations[this.currentLang],t,e);return(0,u.b)(n)?n:(0,a.of)(n)}},{key:"getStreamOnTranslationChange",value:function(t,e){var i=this;if(!C(t)||!t.length)throw new Error('Parameter "key" required');return(0,l.z)((0,h.P)(function(){return i.get(t,e)}),this.onTranslationChange.pipe((0,b.w)(function(n){var r=i.getParsedResult(n.translations,t,e);return"function"==typeof r.subscribe?r:(0,a.of)(r)})))}},{key:"stream",value:function(t,e){var i=this;if(!C(t)||!t.length)throw new Error('Parameter "key" required');return(0,l.z)((0,h.P)(function(){return i.get(t,e)}),this.onLangChange.pipe((0,b.w)(function(n){var r=i.getParsedResult(n.translations,t,e);return(0,u.b)(r)?r:(0,a.of)(r)})))}},{key:"instant",value:function(t,e){if(!C(t)||!t.length)throw new Error('Parameter "key" required');var i=this.getParsedResult(this.translations[this.currentLang],t,e);if((0,u.b)(i)){if(t instanceof Array){var n={};return t.forEach(function(e,i){n[t[i]]=t[i]}),n}return t}return i}},{key:"set",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}},{key:"changeLang",value:function(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}},{key:"changeDefaultLang",value:function(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}},{key:"reloadLang",value:function(t){return this.resetLang(t),this.getTranslation(t)}},{key:"resetLang",value:function(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var t=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(P),r.LFG(w),r.LFG(I),r.LFG(x),r.LFG(A),r.LFG(M),r.LFG(D),r.LFG(N),r.LFG(L))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),F=function(){var t=function(){function t(e,i){v(this,t),this.translate=e,this._ref=i,this.value=""}return y(t,[{key:"updateValue",value:function(t,e,i){var n=this,r=function(e){n.value=void 0!==e?e:t,n.lastKey=t,n._ref.markForCheck()};if(i){var o=this.translate.getParsedResult(i,t,e);(0,u.b)(o.subscribe)?o.subscribe(r):r(o)}this.translate.get(t,e).subscribe(r)}},{key:"transform",value:function(t){var e,i=this;if(!t||!t.length)return t;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.loader||{provide:w,useClass:_},e.compiler||{provide:I,useClass:O},e.parser||{provide:x,useClass:R},e.missingTranslationHandler||{provide:A,useClass:k},P,{provide:D,useValue:e.isolate},{provide:M,useValue:e.useDefaultLang},{provide:N,useValue:e.extend},{provide:L,useValue:e.defaultLanguage},z]}}},{key:"forChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.loader||{provide:w,useClass:_},e.compiler||{provide:I,useClass:O},e.parser||{provide:x,useClass:R},e.missingTranslationHandler||{provide:A,useClass:k},{provide:D,useValue:e.isolate},{provide:M,useValue:e.useDefaultLang},{provide:N,useValue:e.extend},{provide:L,useValue:e.defaultLanguage},z]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}()},82051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){a(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}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,o=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,a){var s=r.URL||r.webkitURL,u=document.createElement("a");u.download=o=o||t.name||"download",u.rel="noopener","string"==typeof t?(u.href=t,u.origin===location.origin?n(u):i(u.href)?e(t,o,a):n(u,u.target="_blank")):(u.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(u.href)},4e4),setTimeout(function(){n(u)},0))}:"msSaveOrOpenBlob"in navigator?function(t,r,o){if(r=r||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),r);else if(i(t))e(t,r,o);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){n(a)})}}:function(t,i,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var s="application/octet-stream"===t.type,u=/constructor/i.test(r.HTMLElement)||r.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&u||o)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},l.readAsDataURL(t)}else{var h=r.URL||r.webkitURL,d=h.createObjectURL(t);a?a.location=d:location.href=d,a=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});r.saveAs=a.saveAs=a,t.exports=a})?i.apply(e,[]):i)||(t.exports=n)},30146:function(t,e,i){"use strict";i.d(e,{nu:function(){return Y},Co:function(){return V}});var n=i(64762),o=i(31572),a=i(16073),s=i(71522),u=i(4786),c=i(66283),l=i(75842),h=i(78512),d=i(40878),f=i(31305),p=i(55959),g=i(44689),m=i(79996),b=i(56238),w=i(82628),_=i(25416),A=i(90611),k=i(43835),T=i(66599),C=i(15980),S=i(29236),E=i(43691),x=i(67806),R=i(36922),I=i(61511),O=i(4253),P=i(24621),D=["searchSelectInput"],M=["innerSelectSearch"];function L(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"mat-checkbox",9),o.NdJ("change",function(t){return o.CHM(i),o.oxw()._emitSelectAllBooleanToParent(t.checked)}),o.qZA()}if(2&t){var n=o.oxw();o.Q6J("color",null==n.matFormField?null:n.matFormField.color)("checked",n.toggleAllCheckboxChecked)("indeterminate",n.toggleAllCheckboxIndeterminate)("matTooltip",n.toggleAllCheckboxTooltipMessage)("matTooltipPosition",n.toogleAllCheckboxTooltipPosition)}}function N(t,e){1&t&&o._UZ(0,"mat-spinner",10)}function z(t,e){1&t&&o.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function F(t,e){1&t&&(o.TgZ(0,"mat-icon"),o._uU(1,"close"),o.qZA())}function Z(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"button",11),o.NdJ("click",function(){return o.CHM(i),o.oxw()._reset(!0)}),o.YNc(1,z,1,0,"ng-content",12),o.YNc(2,F,2,0,"ng-template",null,13,o.W1O),o.qZA()}if(2&t){var n=o.MAs(3),r=o.oxw();o.xp6(1),o.Q6J("ngIf",r.clearIcon)("ngIfElse",n)}}function B(t,e){if(1&t&&(o.TgZ(0,"div",14),o._uU(1),o.qZA()),2&t){var i=o.oxw();o.xp6(1),o.hij(" ",i.noEntriesFoundLabel,"\n")}}var q,U=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],H=function(t,e){return{"mat-select-search-inner-multiple":t,"mat-select-search-inner-toggle-all":e}},j=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"],G=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","ngxMatSelectSearchClear",""]]}),t}(),Y=function(){var t=q=function(){function t(e,i,n){var s=this,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,c=arguments.length>4?arguments[4]:void 0,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;v(this,t),this.matSelect=e,this.changeDetectorRef=i,this._viewportRuler=n,this.matOption=u,this.liveAnnouncer=c,this.matFormField=l,this.placeholderLabel="Suche",this.type="text",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new o.vpe,this.onTouched=function(t){},this._options$=new h.X(null),this.optionsList$=this._options$.pipe((0,g.w)(function(t){return t?t.changes.pipe((0,m.U)(function(t){return t.toArray()}),(0,b.O)(t.toArray())):(0,d.of)(null)})),this.optionsLength$=this.optionsList$.pipe((0,m.U)(function(t){return t?t.length:0})),this._formControl=new a.NI(""),this._showNoEntriesFound$=(0,f.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,m.U)(function(t){var e=r(t,2),i=e[0],n=e[1];return s.noEntriesFoundLabel&&i&&n===s.getOptionsLengthOffset()})),this._onDestroy=new p.xQ}return y(t,[{key:"isInsideMatOption",get:function(){return!!this.matOption}},{key:"value",get:function(){return this._formControl.value}},{key:"_options",get:function(){return this._options$.getValue()},set:function(t){this._options$.next(t)}},{key:"ngOnInit",value:function(){var t=this,e="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(e):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,e]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[e]=!0):this.matSelect.panelClass=e,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,w.g)(1),(0,_.R)(this._onDestroy)).subscribe(function(e){e?(t.updateInputWidth(),t.disableInitialFocus||t._focus()):t.clearSearchInput&&t._reset()}),this.matSelect.openedChange.pipe((0,A.q)(1)).pipe((0,_.R)(this._onDestroy)).subscribe(function(){t.matSelect._keyManager?t.matSelect._keyManager.change.pipe((0,_.R)(t._onDestroy)).subscribe(function(){return t.adjustScrollTopToFitActiveOptionIntoView()}):console.log("_keyManager was not initialized."),t._options=t.matSelect.options;var e=t._options.toArray()[t.getOptionsLengthOffset()];t._options.changes.pipe((0,_.R)(t._onDestroy)).subscribe(function(){setTimeout(function(){var i=t._options.toArray(),n=i[t.getOptionsLengthOffset()],r=t.matSelect._keyManager;r&&t.matSelect.panelOpen&&(!!t.matSelect.compareWith(e,n)&&r.activeItem&&i.find(function(e){return t.matSelect.compareWith(e,r.activeItem)})||r.setFirstItemActive(),setTimeout(function(){t.updateInputWidth()}),t.disableScrollToActiveOnOptionsChanged||t.adjustScrollTopToFitActiveOptionIntoView()),e=n})})}),this._showNoEntriesFound$.pipe((0,_.R)(this._onDestroy)).subscribe(function(e){t.matOption&&(e?t.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):t.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,_.R)(this._onDestroy)).subscribe(function(){t.matSelect.panelOpen&&t.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,_.R)(this._onDestroy)).subscribe(function(){t.changeDetectorRef.markForCheck()})}},{key:"_emitSelectAllBooleanToParent",value:function(t){this.toggleAll.emit(t)}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"_isToggleAllCheckboxVisible",value:function(){return this.matSelect.multiple&&this.showToggleAllCheckbox}},{key:"_handleKeydown",value:function(t){var e=this;(t.key&&1===t.key.length||t.keyCode>=l.A&&t.keyCode<=l.Z||t.keyCode>=l.xE&&t.keyCode<=l.aO||t.keyCode===l.L_||this.preventHomeEndKeyPropagation&&(t.keyCode===l.Sd||t.keyCode===l.uR))&&t.stopPropagation(),this.matSelect.multiple&&t.key&&t.keyCode===l.K5&&setTimeout(function(){return e._focus()}),!0===this.enableClearOnEscapePressed&&t.keyCode===l.hY&&this.value&&(this._reset(!0),t.stopPropagation())}},{key:"_handleKeyup",value:function(t){if(t.keyCode===l.LH||t.keyCode===l.JH){var e=this.matSelect._getAriaActiveDescendant(),i=this._options.toArray().findIndex(function(t){return t.id===e});if(-1!==i){var n=this._options.toArray()[i];this.liveAnnouncer.announce(n.viewValue+" "+this.getAriaIndex(i)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}},{key:"getAriaIndex",value:function(t){return 0===this.getOptionsLengthOffset()?t+1:t}},{key:"getAriaLength",value:function(){return this._options.toArray().length-this.getOptionsLengthOffset()}},{key:"writeValue",value:function(t){this._lastExternalInputValue=t,this._formControl.setValue(t),this.changeDetectorRef.markForCheck()}},{key:"onBlur",value:function(){this.onTouched()}},{key:"registerOnChange",value:function(t){var e=this;this._formControl.valueChanges.pipe((0,k.h)(function(t){return t!==e._lastExternalInputValue}),(0,T.b)(function(){return e._lastExternalInputValue=void 0}),(0,_.R)(this._onDestroy)).subscribe(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"_focus",value:function(){if(this.searchSelectInput&&this.matSelect.panel){var t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}}},{key:"_reset",value:function(t){this._formControl.setValue(""),t&&this._focus()}},{key:"initMultipleHandling",value:function(){var t=this;this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,_.R)(this._onDestroy)).subscribe(function(e){var i=!1;if(t.matSelect.multiple&&(t.alwaysRestoreSelectedOptionsMulti||t._formControl.value&&t._formControl.value.length)&&t.previousSelectedValues&&Array.isArray(t.previousSelectedValues)){e&&Array.isArray(e)||(e=[]);var n=t.matSelect.options.map(function(t){return t.value});t.previousSelectedValues.forEach(function(r){e.some(function(e){return t.matSelect.compareWith(e,r)})||n.some(function(e){return t.matSelect.compareWith(e,r)})||(e.push(r),i=!0)})}t.previousSelectedValues=e,i&&t.matSelect._onChange(e)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}},{key:"adjustScrollTopToFitActiveOptionIntoView",value:function(){if(this.matSelect.panel&&this.matSelect.options.length>0){var t=this.getMatOptionHeight(),e=this.matSelect._keyManager.activeItemIndex||0,i=(0,s.CB)(e,this.matSelect.options,this.matSelect.optionGroups),n=(this.matOption?-1:0)+i+e,r=this.matSelect.panel.nativeElement.scrollTop,o=this.innerSelectSearch.nativeElement.offsetHeight,a=Math.floor((256-o)/t),u=Math.round((r+o)/t)-1;u>=n?this.matSelect.panel.nativeElement.scrollTop=n*t:u+a<=n&&(this.matSelect.panel.nativeElement.scrollTop=(n+1)*t-(256-o))}}},{key:"updateInputWidth",value:function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,e=this.innerSelectSearch.nativeElement;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}}},{key:"getMatOptionHeight",value:function(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}},{key:"getOptionsLengthOffset",value:function(){return this.matOption?1:0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(u.gD),o.Y36(o.sBO),o.Y36(O.rL),o.Y36(s.ey,8),o.Y36(P.Kd),o.Y36(c.KE,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(t,e,i){var n;(1&t&&o.Suo(i,G,5),2&t)&&(o.iGM(n=o.CRH())&&(e.clearIcon=n.first))},viewQuery:function(t,e){var i;(1&t&&(o.Gf(D,7,o.SBq),o.Gf(M,7,o.SBq)),2&t)&&(o.iGM(i=o.CRH())&&(e.searchSelectInput=i.first),o.iGM(i=o.CRH())&&(e.innerSelectSearch=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("mat-select-search-inside-mat-option",e.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[o._Bn([{provide:a.JU,useExisting:(0,o.Gpc)(function(){return q}),multi:!0}])],ngContentSelectors:j,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[1,"mat-select-search-no-entries-found"]],template:function(t,e){1&t&&(o.F$t(U),o._UZ(0,"input",0),o.TgZ(1,"div",1,2),o.YNc(3,L,1,5,"mat-checkbox",3),o.TgZ(4,"input",4,5),o.NdJ("keydown",function(t){return e._handleKeydown(t)})("keyup",function(t){return e._handleKeyup(t)})("blur",function(){return e.onBlur()}),o.qZA(),o.YNc(6,N,1,0,"mat-spinner",6),o.YNc(7,Z,4,2,"button",7),o.Hsn(8),o.qZA(),o.YNc(9,B,2,1,"div",8),o.ALo(10,"async")),2&t&&(o.xp6(1),o.Q6J("ngClass",o.WLB(11,H,e.matSelect.multiple,e._isToggleAllCheckboxVisible())),o.xp6(2),o.Q6J("ngIf",e._isToggleAllCheckboxVisible()),o.xp6(1),o.Q6J("type",e.type)("formControl",e._formControl)("placeholder",e.placeholderLabel),o.uIk("aria-label",e.ariaLabel),o.xp6(2),o.Q6J("ngIf",e.searching),o.xp6(1),o.Q6J("ngIf",!e.hideClearSearchButton&&e.value&&!e.searching),o.xp6(2),o.Q6J("ngIf",o.lcZ(10,9,e._showNoEntriesFound$)))},directives:[I.mk,I.O5,a.Fj,a.JJ,a.oH,S.oG,R.gM,x.$g,C.lW,E.Hw],pipes:[I.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}),t=q=(0,n.gn)([(0,n.fM)(0,(0,o.tBr)(u.gD)),(0,n.fM)(3,(0,o.FiY)()),(0,n.fM)(3,(0,o.tBr)(s.ey)),(0,n.fM)(5,(0,o.FiY)()),(0,n.fM)(5,(0,o.tBr)(c.KE))],t)}(),V=function(){var t=function t(){v(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[I.ez,a.UX,C.ot,S.p9,E.Ps,x.Cq,R.AV]]}),t}()},59997:function(t){t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,(function(e){return t[e]}).bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=22)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i=4){for(var t=arguments.length,e=Array(t),i=0;i=3){for(var t=arguments.length,e=Array(t),i=0;i=2){for(var t=arguments.length,e=Array(t),i=0;i=1){for(var t=arguments.length,e=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:o.JsonService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=e,this._jsonService=new i(["application/jwk-set+json"])}return t.prototype.getMetadata=function(){var t=this;return this._settings.metadata?(r.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(r.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then(function(e){return r.Log.debug("MetadataService.getMetadata: json received"),t._settings.metadata=e,e})):(r.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},t.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},t.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},t.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},t.prototype.getTokenEndpoint=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",t)},t.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},t.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},t.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},t.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},t.prototype._getMetadataProperty=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.Log.debug("MetadataService.getMetadataProperty for: "+t),this.getMetadata().then(function(i){if(r.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===i[t]){if(!0===e)return void r.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+t);throw r.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+t),new Error("Metadata does not contain property "+t)}return i[t]})},t.prototype.getSigningKeys=function(){var t=this;return this._settings.signingKeys?(r.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then(function(e){return r.Log.debug("MetadataService.getSigningKeys: jwks_uri received",e),t._jsonService.getJson(e).then(function(e){if(r.Log.debug("MetadataService.getSigningKeys: key set received",e),!e.keys)throw r.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return t._settings.signingKeys=e.keys,t._settings.signingKeys})})},n(t,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration"))),this._metadataUrl}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UrlUtility=void 0;var n=i(0),r=i(1);e.UrlUtility=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.addQueryParam=function(t,e,i){return t.indexOf("?")<0&&(t+="?"),"?"!==t[t.length-1]&&(t+="&"),t+=encodeURIComponent(e),(t+="=")+encodeURIComponent(i)},t.parseUrlFragment=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.Global;"string"!=typeof t&&(t=i.location.href);var o=t.lastIndexOf(e);o>=0&&(t=t.substr(o+1)),"?"===e&&(o=t.indexOf("#"))>=0&&(t=t.substr(0,o));for(var a,s={},u=/([^&=]+)=([^&]*)/g,c=0;a=u.exec(t);)if(s[decodeURIComponent(a[1])]=decodeURIComponent(a[2]),c++>50)return n.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",t),{error:"Response exceeded expected number of parameters"};for(var l in s)return s;return{}},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JoseUtil=void 0;var n=i(25),r=function(t){return t&&t.__esModule?t:{default:t}}(i(32));e.JoseUtil=(0,r.default)({jws:n.jws,KeyUtil:n.KeyUtil,X509:n.X509,crypto:n.crypto,hextob64u:n.hextob64u,b64tohex:n.b64tohex,AllowedSigningAlgs:n.AllowedSigningAlgs})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OidcClientSettings=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.authority,r=e.metadataUrl,o=e.metadata,h=e.signingKeys,d=e.client_id,f=e.client_secret,p=e.response_type,g=void 0===p?c:p,v=e.scope,m=void 0===v?l:v,y=e.redirect_uri,b=e.post_logout_redirect_uri,w=e.prompt,_=e.display,A=e.max_age,k=e.ui_locales,T=e.acr_values,C=e.resource,S=e.response_mode,E=e.filterProtocolClaims,x=void 0===E||E,R=e.loadUserInfo,I=void 0===R||R,O=e.staleStateAge,P=void 0===O?900:O,D=e.clockSkew,M=void 0===D?300:D,L=e.userInfoJwtIssuer,N=void 0===L?"OP":L,z=e.stateStore,F=void 0===z?new a.WebStorageStateStore:z,Z=e.ResponseValidatorCtor,B=void 0===Z?s.ResponseValidator:Z,q=e.MetadataServiceCtor,U=void 0===q?u.MetadataService:q,H=e.extraQueryParams,j=void 0===H?{}:H,G=e.extraTokenParams,Y=void 0===G?{}:G;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._authority=i,this._metadataUrl=r,this._metadata=o,this._signingKeys=h,this._client_id=d,this._client_secret=f,this._response_type=g,this._scope=m,this._redirect_uri=y,this._post_logout_redirect_uri=b,this._prompt=w,this._display=_,this._max_age=A,this._ui_locales=k,this._acr_values=T,this._resource=C,this._response_mode=S,this._filterProtocolClaims=!!x,this._loadUserInfo=!!I,this._staleStateAge=P,this._clockSkew=M,this._userInfoJwtIssuer=N,this._stateStore=F,this._validator=new B(this),this._metadataService=new U(this),this._extraQueryParams="object"===(void 0===j?"undefined":n(j))?j:{},this._extraTokenParams="object"===(void 0===Y?"undefined":n(Y))?Y:{}}return r(t,[{key:"client_id",get:function(){return this._client_id},set:function(t){if(this._client_id)throw o.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=t}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(t){if(this._authority)throw o.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=t}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration")),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(t){this._metadata=t}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(t){this._signingKeys=t}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(t){this._extraQueryParams="object"===(void 0===t?"undefined":n(t))?t:{}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(t){this._extraTokenParams="object"===(void 0===t?"undefined":n(t))?t:{}}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebStorageStateStore=void 0;var n=i(0),r=i(1);e.WebStorageStateStore=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.prefix,n=void 0===i?"oidc.":i,o=e.store,a=void 0===o?r.Global.localStorage:o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._store=a,this._prefix=n}return t.prototype.set=function(t,e){return n.Log.debug("WebStorageStateStore.set",t),this._store.setItem(t=this._prefix+t,e),Promise.resolve()},t.prototype.get=function(t){n.Log.debug("WebStorageStateStore.get",t);var e=this._store.getItem(t=this._prefix+t);return Promise.resolve(e)},t.prototype.remove=function(t){n.Log.debug("WebStorageStateStore.remove",t);var e=this._store.getItem(t=this._prefix+t);return this._store.removeItem(t),Promise.resolve(e)},t.prototype.getAllKeys=function(){n.Log.debug("WebStorageStateStore.getAllKeys");for(var t=[],e=0;e0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.Global.XMLHttpRequest,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._contentTypes=e&&Array.isArray(e)?e.slice():[],this._contentTypes.push("application/json"),n&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=i,this._jwtHandler=n}return t.prototype.getJson=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.getJson: No url passed"),new Error("url");return n.Log.debug("JsonService.getJson, url: ",t),new Promise(function(r,o){var a=new i._XMLHttpRequest;a.open("GET",t);var s=i._contentTypes,u=i._jwtHandler;a.onload=function(){if(n.Log.debug("JsonService.getJson: HTTP response received, status",a.status),200===a.status){var e=a.getResponseHeader("Content-Type");if(e){var i=s.find(function(t){if(e.startsWith(t))return!0});if("application/jwt"==i)return void u(a).then(r,o);if(i)try{return void r(JSON.parse(a.responseText))}catch(r){return n.Log.error("JsonService.getJson: Error parsing JSON response",r.message),void o(r)}}o(Error("Invalid response Content-Type: "+e+", from URL: "+t))}else o(Error(a.statusText+" ("+a.status+")"))},a.onerror=function(){n.Log.error("JsonService.getJson: network error"),o(Error("Network Error"))},e&&(n.Log.debug("JsonService.getJson: token passed, setting Authorization header"),a.setRequestHeader("Authorization","Bearer "+e)),a.send()})},t.prototype.postForm=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.postForm: No url passed"),new Error("url");return n.Log.debug("JsonService.postForm, url: ",t),new Promise(function(r,o){var a=new i._XMLHttpRequest;a.open("POST",t);var s=i._contentTypes;a.onload=function(){if(n.Log.debug("JsonService.postForm: HTTP response received, status",a.status),200!==a.status){if(400===a.status&&(i=a.getResponseHeader("Content-Type"))&&s.find(function(t){if(i.startsWith(t))return!0}))try{var e=JSON.parse(a.responseText);if(e&&e.error)return n.Log.error("JsonService.postForm: Error from server: ",e.error),void o(new Error(e.error))}catch(r){return n.Log.error("JsonService.postForm: Error parsing JSON response",r.message),void o(r)}o(Error(a.statusText+" ("+a.status+")"))}else{var i;if((i=a.getResponseHeader("Content-Type"))&&s.find(function(t){if(i.startsWith(t))return!0}))try{return void r(JSON.parse(a.responseText))}catch(r){return n.Log.error("JsonService.postForm: Error parsing JSON response",r.message),void o(r)}o(Error("Invalid response Content-Type: "+i+", from URL: "+t))}},a.onerror=function(){n.Log.error("JsonService.postForm: network error"),o(Error("Network Error"))};var u="";for(var c in e){var l=e[c];l&&(u.length>0&&(u+="&"),u+=encodeURIComponent(c),u+="=",u+=encodeURIComponent(l))}a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.send(u)})},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.State=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.id,n=e.data,r=e.created,a=e.request_type;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._id=i||(0,o.default)(),this._data=n,this._created="number"==typeof r&&r>0?r:parseInt(Date.now()/1e3),this._request_type=a}return t.prototype.toStorageString=function(){return r.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},t.fromStorageString=function(e){return r.Log.debug("State.fromStorageString"),new t(JSON.parse(e))},t.clearStaleState=function(e,i){var n=Date.now()/1e3-i;return e.getAllKeys().then(function(i){r.Log.debug("State.clearStaleState: got keys",i);for(var o=[],a=function(a){var s=i[a];u=e.get(s).then(function(i){var o=!1;if(i)try{var a=t.fromStorageString(i);r.Log.debug("State.clearStaleState: got item from key: ",s,a.created),a.created<=n&&(o=!0)}catch(t){r.Log.error("State.clearStaleState: Error parsing state for key",s,t.message),o=!0}else r.Log.debug("State.clearStaleState: no item in storage for key: ",s),o=!0;if(o)return r.Log.debug("State.clearStaleState: removed item for key: ",s),e.remove(s)}),o.push(u)},s=0;s0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._settings=e instanceof o.OidcClientSettings?e:new o.OidcClientSettings(e)}return t.prototype.createSigninRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.response_type,n=e.scope,o=e.redirect_uri,a=e.data,u=e.state,c=e.prompt,l=e.display,h=e.max_age,d=e.ui_locales,f=e.id_token_hint,p=e.login_hint,g=e.acr_values,v=e.resource,m=e.request,y=e.request_uri,b=e.response_mode,w=e.extraQueryParams,_=e.extraTokenParams,A=e.request_type,k=e.skipUserInfo,T=arguments[1];r.Log.debug("OidcClient.createSigninRequest");var C=this._settings.client_id;n=n||this._settings.scope,o=o||this._settings.redirect_uri,c=c||this._settings.prompt,l=l||this._settings.display,h=h||this._settings.max_age,d=d||this._settings.ui_locales,g=g||this._settings.acr_values,v=v||this._settings.resource,b=b||this._settings.response_mode,w=w||this._settings.extraQueryParams,_=_||this._settings.extraTokenParams;var S=this._settings.authority;return s.SigninRequest.isCode(i=i||this._settings.response_type)&&"code"!==i?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then(function(e){r.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",e);var E=new s.SigninRequest({url:e,client_id:C,redirect_uri:o,response_type:i,scope:n,data:a||u,authority:S,prompt:c,display:l,max_age:h,ui_locales:d,id_token_hint:f,login_hint:p,acr_values:g,resource:v,request:m,request_uri:y,extraQueryParams:w,extraTokenParams:_,request_type:A,response_mode:b,client_secret:t._settings.client_secret,skipUserInfo:k}),x=E.state;return(T=T||t._stateStore).set(x.id,x.toStorageString()).then(function(){return E})})},t.prototype.readSigninResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.Log.debug("OidcClient.readSigninResponseState");var n="query"===this._settings.response_mode||!this._settings.response_mode&&s.SigninRequest.isCode(this._settings.response_type)?"?":"#",o=new u.SigninResponse(t,n);return o.state?(e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(o.state).then(function(t){if(!t)throw r.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:h.SigninState.fromStorageString(t),response:o}})):(r.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},t.prototype.processSigninResponse=function(t,e){var i=this;return r.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return r.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),i._validator.validateSigninResponse(e,n)})},t.prototype.createSignoutRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.id_token_hint,n=e.data,o=e.state,a=e.post_logout_redirect_uri,s=e.extraQueryParams,u=e.request_type,l=arguments[1];return r.Log.debug("OidcClient.createSignoutRequest"),a=a||this._settings.post_logout_redirect_uri,s=s||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then(function(e){if(!e)throw r.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");r.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",e);var h=new c.SignoutRequest({url:e,id_token_hint:i,post_logout_redirect_uri:a,data:n||o,extraQueryParams:s,request_type:u}),d=h.state;return d&&(r.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(l=l||t._stateStore).set(d.id,d.toStorageString())),h})},t.prototype.readSignoutResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.Log.debug("OidcClient.readSignoutResponseState");var n=new l.SignoutResponse(t);if(!n.state)return r.Log.debug("OidcClient.readSignoutResponseState: No state in response"),n.error?(r.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",n.error),Promise.reject(new a.ErrorResponse(n))):Promise.resolve({undefined:void 0,response:n});var o=n.state;return e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(o).then(function(t){if(!t)throw r.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(t),response:n}})},t.prototype.processSignoutResponse=function(t,e){var i=this;return r.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return e?(r.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),i._validator.validateSignoutResponse(e,n)):(r.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),n)})},t.prototype.clearStaleState=function(t){return r.Log.debug("OidcClient.clearStaleState"),d.State.clearStaleState(t=t||this._stateStore,this.settings.staleStateAge)},n(t,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenClient=void 0;var n=i(7),r=i(2),o=i(0);e.TokenClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw o.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i,this._metadataService=new a(this._settings)}return t.prototype.exchangeCode=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"authorization_code",e.client_id=e.client_id||this._settings.client_id,e.redirect_uri=e.redirect_uri||this._settings.redirect_uri,e.code?e.redirect_uri?e.code_verifier?e.client_id?this._metadataService.getTokenEndpoint(!1).then(function(i){return o.Log.debug("TokenClient.exchangeCode: Received token endpoint"),t._jsonService.postForm(i,e).then(function(t){return o.Log.debug("TokenClient.exchangeCode: response received"),t})}):(o.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(o.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(o.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},t.prototype.exchangeRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"refresh_token",e.client_id=e.client_id||this._settings.client_id,e.client_secret=e.client_secret||this._settings.client_secret,e.refresh_token?e.client_id?this._metadataService.getTokenEndpoint(!1).then(function(i){return o.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),t._jsonService.postForm(i,e).then(function(t){return o.Log.debug("TokenClient.exchangeRefreshToken: response received"),t})}):(o.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorResponse=void 0;var n=i(0);e.ErrorResponse=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.error,o=i.error_description,a=i.error_uri,s=i.state,u=i.session_state;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),!r)throw n.Log.error("No error passed to ErrorResponse"),new Error("error");var c=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,o||r));return c.name="ErrorResponse",c.error=r,c.error_description=o,c.error_uri=a,c.state=s,c.session_state=u,c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Error)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninRequest=void 0;var n=i(0),r=i(3),o=i(13);e.SigninRequest=function(){function t(e){var i=e.url,a=e.client_id,s=e.redirect_uri,u=e.response_type,c=e.scope,l=e.authority,h=e.data,d=e.prompt,f=e.display,p=e.max_age,g=e.ui_locales,v=e.id_token_hint,m=e.login_hint,y=e.acr_values,b=e.resource,w=e.response_mode,_=e.request,A=e.request_uri,k=e.extraQueryParams,T=e.request_type,C=e.client_secret,S=e.extraTokenParams,E=e.skipUserInfo;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!a)throw n.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!s)throw n.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!u)throw n.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!c)throw n.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!l)throw n.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var x=t.isOidc(u),R=t.isCode(u);w||(w=t.isCode(u)?"query":null),this.state=new o.SigninState({nonce:x,data:h,client_id:a,authority:l,redirect_uri:s,code_verifier:R,request_type:T,response_mode:w,client_secret:C,scope:c,extraTokenParams:S,skipUserInfo:E}),i=r.UrlUtility.addQueryParam(i,"client_id",a),i=r.UrlUtility.addQueryParam(i,"redirect_uri",s),i=r.UrlUtility.addQueryParam(i,"response_type",u),i=r.UrlUtility.addQueryParam(i,"scope",c),i=r.UrlUtility.addQueryParam(i,"state",this.state.id),x&&(i=r.UrlUtility.addQueryParam(i,"nonce",this.state.nonce)),R&&(i=r.UrlUtility.addQueryParam(i,"code_challenge",this.state.code_challenge),i=r.UrlUtility.addQueryParam(i,"code_challenge_method","S256"));var I={prompt:d,display:f,max_age:p,ui_locales:g,id_token_hint:v,login_hint:m,acr_values:y,resource:b,request:_,request_uri:A,response_mode:w};for(var O in I)I[O]&&(i=r.UrlUtility.addQueryParam(i,O,I[O]));for(var P in k)i=r.UrlUtility.addQueryParam(i,P,k[P]);this.url=i}return t.isOidc=function(t){return!!t.split(/\s+/g).filter(function(t){return"id_token"===t})[0]},t.isOAuth=function(t){return!!t.split(/\s+/g).filter(function(t){return"token"===t})[0]},t.isCode=function(t){return!!t.split(/\s+/g).filter(function(t){return"code"===t})[0]},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninState=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.nonce,r=i.authority,o=i.client_id,u=i.redirect_uri,c=i.code_verifier,l=i.response_mode,h=i.client_secret,d=i.scope,f=i.extraTokenParams,p=i.skipUserInfo;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var g=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));if(!0===n?g._nonce=(0,s.default)():n&&(g._nonce=n),!0===c?g._code_verifier=(0,s.default)()+(0,s.default)()+(0,s.default)():c&&(g._code_verifier=c),g.code_verifier){var v=a.JoseUtil.hashString(g.code_verifier,"SHA256");g._code_challenge=a.JoseUtil.hexToBase64Url(v)}return g._redirect_uri=u,g._authority=r,g._client_id=o,g._response_mode=l,g._client_secret=h,g._scope=d,g._extraTokenParams=f,g._skipUserInfo=p,g}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toStorageString=function(){return r.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},e.fromStorageString=function(t){return r.Log.debug("SigninState.fromStorageString"),new e(JSON.parse(t))},n(e,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),e}(o.State)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,n.default)().replace(/-/g,"")};var n=function(t){return t&&t.__esModule?t:{default:t}}(i(33));t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.User=void 0;var n=function(){function t(t,e){for(var i=0;i0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessTokenEvents=void 0;var n=i(0),r=i(48);e.AccessTokenEvents=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.accessTokenExpiringNotificationTime,n=void 0===i?60:i,o=e.accessTokenExpiringTimer,a=void 0===o?new r.Timer("Access token expiring"):o,s=e.accessTokenExpiredTimer,u=void 0===s?new r.Timer("Access token expired"):s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._accessTokenExpiringNotificationTime=n,this._accessTokenExpiring=a,this._accessTokenExpired=u}return t.prototype.load=function(t){if(t.access_token&&void 0!==t.expires_in){var e=t.expires_in;if(n.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",e),e>0){var i=e-this._accessTokenExpiringNotificationTime;i<=0&&(i=1),n.Log.debug("AccessTokenEvents.load: registering expiring timer in:",i),this._accessTokenExpiring.init(i)}else n.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var r=e+1;n.Log.debug("AccessTokenEvents.load: registering expired timer in:",r),this._accessTokenExpired.init(r)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.unload=function(){n.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.addAccessTokenExpiring=function(t){this._accessTokenExpiring.addHandler(t)},t.prototype.removeAccessTokenExpiring=function(t){this._accessTokenExpiring.removeHandler(t)},t.prototype.addAccessTokenExpired=function(t){this._accessTokenExpired.addHandler(t)},t.prototype.removeAccessTokenExpired=function(t){this._accessTokenExpired.removeHandler(t)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=i(0);e.Event=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e,this._callbacks=[]}return t.prototype.addHandler=function(t){this._callbacks.push(t)},t.prototype.removeHandler=function(t){var e=this._callbacks.findIndex(function(e){return e===t});e>=0&&this._callbacks.splice(e,1)},t.prototype.raise=function(){n.Log.debug("Event: Raising event: "+this._name);for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:o.CheckSessionIFrame,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.Global.timer;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=e,this._CheckSessionIFrameCtor=n,this._timer=s,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),this._userManager.getUser().then(function(t){t?i._start(t):i._settings.monitorAnonymousSession&&i._userManager.querySessionStatus().then(function(t){var e={session_state:t.session_state};t.sub&&t.sid&&(e.profile={sub:t.sub,sid:t.sid}),i._start(e)}).catch(function(t){r.Log.error("SessionMonitor ctor: error from querySessionStatus:",t.message)})}).catch(function(t){r.Log.error("SessionMonitor ctor: error from getUser:",t.message)})}return t.prototype._start=function(t){var e=this,i=t.session_state;i&&(t.profile?(this._sub=t.profile.sub,this._sid=t.profile.sid,r.Log.debug("SessionMonitor._start: session_state:",i,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,r.Log.debug("SessionMonitor._start: session_state:",i,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(i):this._metadataService.getCheckSessionIframe().then(function(t){if(t){r.Log.debug("SessionMonitor._start: Initializing check session iframe");var n=e._client_id,o=e._checkSessionInterval,a=e._stopCheckSessionOnError;e._checkSessionIFrame=new e._CheckSessionIFrameCtor(e._callback.bind(e),n,t,o,a),e._checkSessionIFrame.load().then(function(){e._checkSessionIFrame.start(i)})}else r.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")}).catch(function(t){r.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",t.message)}))},t.prototype._stop=function(){var t=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(r.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var e=this._timer.setInterval(function(){t._timer.clearInterval(e),t._userManager.querySessionStatus().then(function(e){var i={session_state:e.session_state};e.sub&&e.sid&&(i.profile={sub:e.sub,sid:e.sid}),t._start(i)}).catch(function(t){r.Log.error("SessionMonitor: error from querySessionStatus:",t.message)})},1e3)},t.prototype._callback=function(){var t=this;this._userManager.querySessionStatus().then(function(e){var i=!0;e?e.sub===t._sub?(i=!1,t._checkSessionIFrame.start(e.session_state),e.sid===t._sid?r.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",e.session_state):(r.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",e.session_state),t._userManager.events._raiseUserSessionChanged())):r.Log.debug("SessionMonitor._callback: Different subject signed into OP:",e.sub):r.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),i&&(t._sub?(r.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),t._userManager.events._raiseUserSignedOut()):(r.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),t._userManager.events._raiseUserSignedIn()))}).catch(function(e){t._sub&&(r.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",e.message),t._userManager.events._raiseUserSignedOut())})},n(t,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CheckSessionIFrame=void 0;var n=i(0);e.CheckSessionIFrame=function(){function t(e,i,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._callback=e,this._client_id=i,this._url=n,this._interval=r||2e3,this._stopOnError=o;var a=n.indexOf("/",n.indexOf("//")+2);this._frame_origin=n.substr(0,a),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.style.width=0,this._frame.style.height=0,this._frame.src=n}return t.prototype.load=function(){var t=this;return new Promise(function(e){t._frame.onload=function(){e()},window.document.body.appendChild(t._frame),t._boundMessageEvent=t._message.bind(t),window.addEventListener("message",t._boundMessageEvent,!1)})},t.prototype._message=function(t){t.origin===this._frame_origin&&t.source===this._frame.contentWindow&&("error"===t.data?(n.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===t.data?(n.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):n.Log.debug("CheckSessionIFrame: "+t.data+" message from check session op iframe"))},t.prototype.start=function(t){var e=this;if(this._session_state!==t){n.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=t;var i=function(){e._frame.contentWindow.postMessage(e._client_id+" "+e._session_state,e._frame_origin)};i(),this._timer=window.setInterval(i,this._interval)}},t.prototype.stop=function(){this._session_state=null,this._timer&&(n.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenRevocationClient=void 0;var n=i(0),r=i(2),o=i(1);e.TokenRevocationClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Global.XMLHttpRequest,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw n.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=e,this._XMLHttpRequestCtor=i,this._metadataService=new a(this._settings)}return t.prototype.revoke=function(t,e){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!t)throw n.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==r&&"refresh_token"!=r)throw n.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then(function(o){if(o)return n.Log.debug("TokenRevocationClient.revoke: Revoking "+r),i._revoke(o,i._settings.client_id,i._settings.client_secret,t,r);if(e)throw n.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")})},t.prototype._revoke=function(t,e,i,r,o){var a=this;return new Promise(function(s,u){var c=new a._XMLHttpRequestCtor;c.open("POST",t),c.onload=function(){n.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",c.status),200===c.status?s():u(Error(c.statusText+" ("+c.status+")"))},c.onerror=function(){n.Log.debug("TokenRevocationClient.revoke: Network Error."),u("Network Error")};var l="client_id="+encodeURIComponent(e);i&&(l+="&client_secret="+encodeURIComponent(i)),l+="&token_type_hint="+encodeURIComponent(o),l+="&token="+encodeURIComponent(r),c.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),c.send(l)})},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CordovaPopupWindow=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:o.MetadataService,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.UserInfoService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c.JoseUtil,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.TokenClient;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=e,this._metadataService=new i(this._settings),this._userInfoService=new n(this._settings),this._joseUtil=u,this._tokenClient=new l(this._settings)}return t.prototype.validateSigninResponse=function(t,e){var i=this;return r.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(t,e).then(function(e){return r.Log.debug("ResponseValidator.validateSigninResponse: state processed"),i._validateTokens(t,e).then(function(e){return r.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),i._processClaims(t,e).then(function(t){return r.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),t})})})},t.prototype.validateSignoutResponse=function(t,e){return t.id!==e.state?(r.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(r.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),e.state=t.data,e.error?(r.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",e.error),Promise.reject(new u.ErrorResponse(e))):Promise.resolve(e))},t.prototype._processSigninParams=function(t,e){if(t.id!==e.state)return r.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!t.client_id)return r.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!t.authority)return r.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==t.authority)return r.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=t.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==t.client_id)return r.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=t.client_id;return r.Log.debug("ResponseValidator._processSigninParams: state validated"),e.state=t.data,e.error?(r.Log.warn("ResponseValidator._processSigninParams: Response was error",e.error),Promise.reject(new u.ErrorResponse(e))):t.nonce&&!e.id_token?(r.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!t.nonce&&e.id_token?(r.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):t.code_verifier&&!e.code?(r.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!t.code_verifier&&e.code?(r.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(e.scope||(e.scope=t.scope),Promise.resolve(e))},t.prototype._processClaims=function(t,e){var i=this;if(e.isOpenIdConnect){if(r.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),e.profile=this._filterProtocolClaims(e.profile),!0!==t.skipUserInfo&&this._settings.loadUserInfo&&e.access_token)return r.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(e.access_token).then(function(t){return r.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),t.sub!==e.profile.sub?(r.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in access_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"))):(e.profile=i._mergeClaims(e.profile,t),r.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",e.profile),e)});r.Log.debug("ResponseValidator._processClaims: not loading user info")}else r.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(e)},t.prototype._mergeClaims=function(t,e){var i=Object.assign({},t);for(var r in e){var o=e[r];Array.isArray(o)||(o=[o]);for(var a=0;a1)return r.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));u=s[0]}if(!u)return r.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var c=t.client_id,l=i._settings.clockSkew;return r.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",l),i._joseUtil.validateJwt(e.id_token,u,a,c,l).then(function(){return r.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),n.payload.sub?(e.profile=n.payload,e):(r.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))})})})},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return r.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",e),[];i="EC"}return r.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",i),t=t.filter(function(t){return t.kty===i}),r.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",i,t.length),t},t.prototype._validateAccessToken=function(t){if(!t.profile)return r.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!t.profile.at_hash)return r.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!t.id_token)return r.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var e=this._joseUtil.parseJwt(t.id_token);if(!e||!e.header)return r.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",e),Promise.reject(new Error("Failed to parse id_token"));var i=e.header.alg;if(!i||5!==i.length)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i),Promise.reject(new Error("Unsupported alg: "+i));var n=i.substr(2,3);if(!n)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));if(256!==(n=parseInt(n))&&384!==n&&512!==n)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));var o="sha"+n,a=this._joseUtil.hashString(t.access_token,o);if(!a)return r.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",o),Promise.reject(new Error("Failed to validate at_hash"));var s=a.substr(0,a.length/2),u=this._joseUtil.hexToBase64Url(s);return u!==t.profile.at_hash?(r.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",u,t.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(r.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(t))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserInfoService=void 0;var n=i(7),r=i(2),o=i(0),a=i(4);e.UserInfoService=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.JoseUtil;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw o.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new s(this._settings),this._joseUtil=u}return t.prototype.getClaims=function(t){var e=this;return t?this._metadataService.getUserInfoEndpoint().then(function(i){return o.Log.debug("UserInfoService.getClaims: received userinfo url",i),e._jsonService.getJson(i,t).then(function(t){return o.Log.debug("UserInfoService.getClaims: claims received",t),t})}):(o.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},t.prototype._getClaimsFromJwt=function t(e){var i=this;try{var n=this._joseUtil.parseJwt(e.responseText);if(!n||!n.header||!n.payload)return o.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",n),Promise.reject(new Error("Failed to parse id_token"));var r=n.header.kid,a=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":a=this._metadataService.getIssuer();break;case"ANY":a=Promise.resolve(n.payload.iss);break;default:a=Promise.resolve(this._settings.userInfoJwtIssuer)}return a.then(function(t){return o.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+t),i._metadataService.getSigningKeys().then(function(a){if(!a)return o.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));o.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var s=void 0;if(r)s=a.filter(function(t){return t.kid===r})[0];else{if((a=i._filterByAlg(a,n.header.alg)).length>1)return o.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));s=a[0]}if(!s)return o.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var u=i._settings.client_id,c=i._settings.clockSkew;return o.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",c),i._joseUtil.validateJwt(e.responseText,s,t,u,c,void 0,!0).then(function(){return o.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),n.payload})})})}catch(t){return o.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",t.message),void reject(t)}},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return o.Log.debug("UserInfoService._filterByAlg: alg not supported: ",e),[];i="EC"}return o.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",i),t=t.filter(function(t){return t.kty===i}),o.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",i,t.length),t},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AllowedSigningAlgs=e.b64tohex=e.hextob64u=e.crypto=e.X509=e.KeyUtil=e.jws=void 0;var n=i(26);e.jws=n.jws,e.KeyUtil=n.KEYUTIL,e.X509=n.X509,e.crypto=n.crypto,e.hextob64u=n.hextob64u,e.b64tohex=n.b64tohex,e.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n={userAgent:!1},r={};if(void 0===o)var o={};o.lang={extend:function(e,i,r){if(!i||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var o=function(){};if(o.prototype=i.prototype,e.prototype=new o,e.prototype.constructor=e,e.superclass=i.prototype,i.prototype.constructor==Object.prototype.constructor&&(i.prototype.constructor=i),r){var a;for(a in r)e.prototype[a]=r[a];var s=function(){},u=["toString","valueOf"];try{/MSIE/.test(n.userAgent)&&(s=function(t,e){for(a=0;a>>2]|=(i[o>>>2]>>>24-o%4*8&255)<<24-(n+o)%4*8;else for(o=0;o>>2]=i[o>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=a.ceil(e/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i>>2]>>>24-r%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new l.init(i,e/2)}},f=h.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new l.init(i,e)}},p=h.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},g=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,i=e.words,n=e.sigBytes,r=this.blockSize,o=n/(4*r),s=(o=t?a.ceil(o):a.max((0|o)-this._minBufferSize,0))*r,u=a.min(4*s,n);if(s){for(var c=0;c>>2]>>>24-r%4*8&255)<<16|(e[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|e[r+2>>>2]>>>24-(r+2)%4*8&255,a=0;4>a&&r+.75*a>>6*(3-a)&63));if(e=n.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(e){var i=e.length,n=this._map;(r=n.charAt(64))&&-1!=(r=e.indexOf(r))&&(i=r);for(var r=[],o=0,a=0;a>>6-a%4*2;r[o>>>2]|=(s|u)<<24-o%4*8,o++}return t.create(r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){for(var e=m,i=(r=e.lib).WordArray,n=r.Hasher,r=e.algo,o=[],a=[],s=function(t){return 4294967296*(t-(0|t))|0},u=2,c=0;64>c;){var l;t:{for(var h=t.sqrt(l=u),d=2;d<=h;d++)if(!(l%d)){l=!1;break t}l=!0}l&&(8>c&&(o[c]=s(t.pow(u,.5))),a[c]=s(t.pow(u,1/3)),c++),u++}var f=[];r=r.SHA256=n.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],r=i[1],o=i[2],s=i[3],u=i[4],c=i[5],l=i[6],h=i[7],d=0;64>d;d++){if(16>d)f[d]=0|t[e+d];else{var p=f[d-15],g=f[d-2];f[d]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+f[d-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+f[d-16]}p=h+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&c^~u&l)+a[d]+f[d],g=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&r^n&o^r&o),h=l,l=c,c=u,u=s+p|0,s=o,o=r,r=n,n=p+g|0}i[0]=i[0]+n|0,i[1]=i[1]+r|0,i[2]=i[2]+o|0,i[3]=i[3]+s|0,i[4]=i[4]+u|0,i[5]=i[5]+c|0,i[6]=i[6]+l|0,i[7]=i[7]+h|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return i[r>>>5]|=128<<24-r%32,i[14+(r+64>>>9<<4)]=t.floor(n/4294967296),i[15+(r+64>>>9<<4)]=n,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),e.SHA256=n._createHelper(r),e.HmacSHA256=n._createHmacHelper(r)}(Math),function(){function t(){return n.create.apply(n,arguments)}for(var e=m,i=e.lib.Hasher,n=(o=e.x64).Word,r=o.WordArray,o=e.algo,a=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],s=[],u=0;80>u;u++)s[u]=t();o=o.SHA512=i.extend({_doReset:function(){this._hash=new r.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var i=(h=this._hash.words)[0],n=h[1],r=h[2],o=h[3],u=h[4],c=h[5],l=h[6],h=h[7],d=i.high,f=i.low,p=n.high,g=n.low,v=r.high,m=r.low,y=o.high,b=o.low,w=u.high,_=u.low,A=c.high,k=c.low,T=l.high,C=l.low,S=h.high,E=h.low,x=d,R=f,I=p,O=g,P=v,D=m,M=y,L=b,N=w,z=_,F=A,Z=k,B=T,q=C,U=S,H=E,j=0;80>j;j++){var G=s[j];if(16>j)var Y=G.high=0|t[e+2*j],V=G.low=0|t[e+2*j+1];else{Y=((V=(Y=s[j-15]).high)>>>1|(K=Y.low)<<31)^(V>>>8|K<<24)^V>>>7;var K=(K>>>1|V<<31)^(K>>>8|V<<24)^(K>>>7|V<<25),J=((V=(J=s[j-2]).high)>>>19|(Q=J.low)<<13)^(V<<3|Q>>>29)^V>>>6,Q=(Q>>>19|V<<13)^(Q<<3|V>>>29)^(Q>>>6|V<<26),W=(V=s[j-7]).high,X=($=s[j-16]).high,$=$.low;Y=(Y=(Y=Y+W+((V=K+V.low)>>>0>>0?1:0))+J+((V+=Q)>>>0>>0?1:0))+X+((V+=$)>>>0<$>>>0?1:0),G.high=Y,G.low=V}G=x&I^x&P^I&P;var tt=R&O^R&D^O&D,et=(K=(x>>>28|R<<4)^(x<<30|R>>>2)^(x<<25|R>>>7),J=(R>>>28|x<<4)^(R<<30|x>>>2)^(R<<25|x>>>7),(Q=a[j]).high),it=Q.low;X=(X=(X=(X=U+((N>>>14|z<<18)^(N>>>18|z<<14)^(N<<23|z>>>9))+((Q=H+((z>>>14|N<<18)^(z>>>18|N<<14)^(z<<23|N>>>9)))>>>0>>0?1:0))+(W=N&F^~N&B)+((Q+=$=z&Z^~z&q)>>>0<$>>>0?1:0))+et+((Q+=it)>>>0>>0?1:0))+Y+((Q+=V)>>>0>>0?1:0),U=B,H=q,B=F,q=Z,F=N,Z=z,N=M+X+((z=L+Q|0)>>>0>>0?1:0)|0,M=P,L=D,P=I,D=O,I=x,O=R,x=X+(G=K+G+((V=J+tt)>>>0>>0?1:0))+((R=Q+V|0)>>>0>>0?1:0)|0}f=i.low=f+R,i.high=d+x+(f>>>0>>0?1:0),g=n.low=g+O,n.high=p+I+(g>>>0>>0?1:0),m=r.low=m+D,r.high=v+P+(m>>>0>>0?1:0),b=o.low=b+L,o.high=y+M+(b>>>0>>0?1:0),_=u.low=_+z,u.high=w+N+(_>>>0>>0?1:0),k=c.low=k+Z,c.high=A+F+(k>>>0>>0?1:0),C=l.low=C+q,l.high=T+B+(C>>>0>>0?1:0),E=h.low=E+H,h.high=S+U+(E>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(n+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),e.SHA512=i._createHelper(o),e.HmacSHA512=i._createHmacHelper(o)}(),function(){var t=m,e=(r=t.x64).Word,i=r.WordArray,n=(r=t.algo).SHA512,r=r.SHA384=n.extend({_doReset:function(){this._hash=new i.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=n._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=n._createHelper(r),t.HmacSHA384=n._createHmacHelper(r)}();var y,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function w(t){var e,i,n="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),n+=b.charAt(i>>6)+b.charAt(63&i);for(e+1==t.length?(i=parseInt(t.substring(e,e+1),16),n+=b.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),n+=b.charAt(i>>2)+b.charAt((3&i)<<4));(3&n.length)>0;)n+="=";return n}function _(t){var e,i,n,r="",o=0;for(e=0;e>2),i=3&n,o=1):1==o?(r+=x(i<<2|n>>4),i=15&n,o=2):2==o?(r+=x(i),r+=x(n>>2),i=3&n,o=3):(r+=x(i<<2|n>>4),r+=x(15&n),o=0));return 1==o&&(r+=x(i<<2)),r}function A(t){var e,i=_(t),n=new Array;for(e=0;2*e>15;--o>=0;){var u=32767&this[t],c=this[t++]>>15,l=s*u+c*a;r=((u=a*u+((32767&l)<<15)+i[n]+(1073741823&r))>>>30)+(l>>>15)+s*c+(r>>>30),i[n++]=1073741823&u}return r},y=30):"Netscape"!=n.appName?(k.prototype.am=function(t,e,i,n,r,o){for(;--o>=0;){var a=e*this[t++]+i[n]+r;r=Math.floor(a/67108864),i[n++]=67108863&a}return r},y=26):(k.prototype.am=function(t,e,i,n,r,o){for(var a=16383&e,s=e>>14;--o>=0;){var u=16383&this[t],c=this[t++]>>14,l=s*u+c*a;r=((u=a*u+((16383&l)<<14)+i[n]+r)>>28)+(l>>14)+s*c,i[n++]=268435455&u}return r},y=28),k.prototype.DB=y,k.prototype.DM=(1<>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}function P(t){this.m=t}function D(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function Z(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function B(){}function q(t){return t}function U(t){this.r2=T(),this.q3=T(),k.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}P.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},P.prototype.revert=function(t){return t},P.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},P.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},P.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},D.prototype.convert=function(t){var e=T();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(k.ZERO)>0&&this.m.subTo(e,e),e},D.prototype.revert=function(t){var e=T();return t.copyTo(e),this.reduce(e),e},D.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[i=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},D.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},D.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},k.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},k.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},k.prototype.fromString=function(t,e){var i;if(16==e)i=4;else if(8==e)i=3;else if(256==e)i=8;else if(2==e)i=1;else if(32==e)i=5;else{if(4!=e)return void this.fromRadix(t,e);i=2}this.t=0,this.s=0;for(var n=t.length,r=!1,o=0;--n>=0;){var a=8==i?255&t[n]:R(t,n);a<0?"-"==t.charAt(n)&&(r=!0):(r=!1,0==o?this[this.t++]=a:o+i>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}8==i&&0!=(128&t[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},k.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},k.prototype.drShiftTo=function(t,e){for(var i=t;i=0;--i)e[i+a+1]=this[i]>>r|s,s=(this[i]&o)<=0;--i)e[i]=0;e[a]=s,e.t=this.t+a+1,e.s=this.s,e.clamp()},k.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var n=t%this.DB,r=this.DB-n,o=(1<>n;for(var a=i+1;a>n;n>0&&(e[this.t-i-1]|=(this.s&o)<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[i++]=this.DV+n:n>0&&(e[i++]=n),e.t=i,e.clamp()},k.prototype.multiplyTo=function(t,e){var i=this.abs(),n=t.abs(),r=i.t;for(e.t=r+n.t;--r>=0;)e[r]=0;for(r=0;r=0;)t[i]=0;for(i=0;i=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},k.prototype.divRemTo=function(t,e,i){var n=t.abs();if(!(n.t<=0)){var r=this.abs();if(r.t0?(n.lShiftTo(u,o),r.lShiftTo(u,i)):(n.copyTo(o),r.copyTo(i));var c=o.t,l=o[c-1];if(0!=l){var h=l*(1<1?o[c-2]>>this.F2:0),d=this.FV/h,f=(1<=0&&(i[i.t++]=1,i.subTo(m,i)),k.ONE.dlShiftTo(c,m),m.subTo(o,o);o.t=0;){var y=i[--g]==l?this.DM:Math.floor(i[g]*d+(i[g-1]+p)*f);if((i[g]+=o.am(0,y,i,v,0,c))0&&i.rShiftTo(u,i),a<0&&k.ZERO.subTo(i,i)}}},k.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},k.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},k.prototype.exp=function(t,e){if(t>4294967295||t<1)return k.ONE;var i=T(),n=T(),r=e.convert(this),o=O(t)-1;for(r.copyTo(i);--o>=0;)if(e.sqrTo(i,n),(t&1<0)e.mulTo(n,r,i);else{var a=i;i=n,n=a}return e.revert(i)},k.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,n=(1<0)for(s>s)>0&&(r=!0,o=x(i));a>=0;)s>(s+=this.DB-e)):(i=this[a]>>(s-=e)&n,s<=0&&(s+=this.DB,--a)),i>0&&(r=!0),r&&(o+=x(i));return r?o:"0"},k.prototype.negate=function(){var t=T();return k.ZERO.subTo(this,t),t},k.prototype.abs=function(){return this.s<0?this.negate():this},k.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-t.t))return this.s<0?-e:e;for(;--i>=0;)if(0!=(e=this[i]-t[i]))return e;return 0},k.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+O(this[this.t-1]^this.s&this.DM)},k.prototype.mod=function(t){var e=T();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(k.ZERO)>0&&t.subTo(e,e),e},k.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new P(e):new D(e),this.exp(t,i)},k.ZERO=I(0),k.ONE=I(1),B.prototype.convert=q,B.prototype.revert=q,B.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},B.prototype.sqrTo=function(t,e){t.squareTo(e)},U.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=T();return t.copyTo(e),this.reduce(e),e},U.prototype.revert=function(t){return t},U.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},U.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},U.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var H,j,G,Y=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],V=(1<<26)/Y[Y.length-1];function K(){this.i=0,this.j=0,this.S=new Array}function J(){!function(t){j[G++]^=255&t,j[G++]^=t>>8&255,j[G++]^=t>>16&255,j[G++]^=t>>24&255,G>=256&&(G-=256)}((new Date).getTime())}if(k.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},k.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),n=I(i),r=T(),o=T(),a="";for(this.divRemTo(n,r,o);r.signum()>0;)a=(i+o.intValue()).toString(t).substr(1)+a,r.divRemTo(n,r,o);return o.intValue().toString(t)+a},k.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var i=this.chunkSize(e),n=Math.pow(e,i),r=!1,o=0,a=0,s=0;s=i&&(this.dMultiply(n),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(a,0)),r&&k.ZERO.subTo(this,this)},k.prototype.fromNumber=function(t,e,i){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(k.ONE.shiftLeft(t-1),L,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(k.ONE.shiftLeft(t-1),this);else{var n=new Array,r=7&t;n.length=1+(t>>3),e.nextBytes(n),r>0?n[0]&=(1<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[i++]=n:n<-1&&(e[i++]=this.DV+n),e.t=i,e.clamp()},k.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},k.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},k.prototype.multiplyLowerTo=function(t,e,i){var n,r=Math.min(this.t+t.t,e);for(i.s=0,i.t=r;r>0;)i[--r]=0;for(n=i.t-this.t;r=0;)i[n]=0;for(n=Math.max(e-this.t,0);n0)if(0==e)i=this[0]%t;else for(var n=this.t-1;n>=0;--n)i=(e*i+this[n])%t;return i},k.prototype.millerRabin=function(t){var e=this.subtract(k.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var n=e.shiftRight(i);(t=t+1>>1)>Y.length&&(t=Y.length);for(var r=T(),o=0;o>24},k.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},k.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},k.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var i,n=this.DB-t*this.DB%8,r=0;if(t-- >0)for(n>n)!=(this.s&this.DM)>>n&&(e[r++]=i|this.s<=0;)n<8?(i=(this[t]&(1<>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==r&&(128&this.s)!=(128&i)&&++r,(r>0||i!=this.s)&&(e[r++]=i);return e},k.prototype.equals=function(t){return 0==this.compareTo(t)},k.prototype.min=function(t){return this.compareTo(t)<0?this:t},k.prototype.max=function(t){return this.compareTo(t)>0?this:t},k.prototype.and=function(t){var e=T();return this.bitwiseTo(t,M,e),e},k.prototype.or=function(t){var e=T();return this.bitwiseTo(t,L,e),e},k.prototype.xor=function(t){var e=T();return this.bitwiseTo(t,N,e),e},k.prototype.andNot=function(t){var e=T();return this.bitwiseTo(t,z,e),e},k.prototype.not=function(){for(var t=T(),e=0;e=this.t?0!=this.s:0!=(this[e]&1<1){var l=T();for(n.sqrTo(a[1],l);s<=c;)a[s]=T(),n.mulTo(l,a[s-2],a[s]),s+=2}var h,d,f=t.t-1,p=!0,g=T();for(r=O(t[f])-1;f>=0;){for(r>=u?h=t[f]>>r-u&c:(h=(t[f]&(1<0&&(h|=t[f-1]>>this.DB+r-u)),s=i;0==(1&h);)h>>=1,--s;if((r-=s)<0&&(r+=this.DB,--f),p)a[h].copyTo(o),p=!1;else{for(;s>1;)n.sqrTo(o,g),n.sqrTo(g,o),s-=2;s>0?n.sqrTo(o,g):(d=o,o=g,g=d),n.mulTo(g,a[h],o)}for(;f>=0&&0==(t[f]&1<=0?(i.subTo(n,i),e&&r.subTo(a,r),o.subTo(s,o)):(n.subTo(i,n),e&&a.subTo(r,a),s.subTo(o,s))}return 0!=n.compareTo(k.ONE)?k.ZERO:s.compareTo(t)>=0?s.subtract(t):s.signum()<0?(s.addTo(t,s),s.signum()<0?s.add(t):s):s},k.prototype.pow=function(t){return this.exp(t,new B)},k.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var n=e;e=i,i=n}var r=e.getLowestSetBit(),o=i.getLowestSetBit();if(o<0)return e;for(r0&&(e.rShiftTo(o,e),i.rShiftTo(o,i));e.signum()>0;)(r=e.getLowestSetBit())>0&&e.rShiftTo(r,e),(r=i.getLowestSetBit())>0&&i.rShiftTo(r,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return o>0&&i.lShiftTo(o,i),i},k.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=Y[Y.length-1]){for(e=0;e>>8,j[G++]=255&Q;G=0,J()}function tt(){if(null==H){for(J(),(H=new K).init(j),G=0;G>24,(16711680&r)>>16,(65280&r)>>8,255&r]))),r+=1;return n}function rt(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function ot(t,e){this.x=e,this.q=t}function at(t,e,i,n){this.curve=t,this.x=e,this.y=i,this.z=null==n?k.ONE:n,this.zinv=null}function st(t,e,i){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(i),this.infinity=new at(this,null,null)}et.prototype.nextBytes=function(t){var e;for(e=0;e0&&e.length>0))throw"Invalid RSA public key";this.n=it(t,16),this.e=parseInt(e,16)}},rt.prototype.encrypt=function(t){var e=function(t,e){if(e=0&&e>0;){var r=t.charCodeAt(n--);r<128?i[--e]=r:r>127&&r<2048?(i[--e]=63&r|128,i[--e]=r>>6|192):(i[--e]=63&r|128,i[--e]=r>>6&63|128,i[--e]=r>>12|224)}i[--e]=0;for(var o=new et,a=new Array;e>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);i[--e]=a[0]}return i[--e]=2,i[--e]=0,new k(i)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var i=this.doPublic(e);if(null==i)return null;var n=i.toString(16);return 0==(1&n.length)?n:"0"+n},rt.prototype.encryptOAEP=function(t,e,i){var n=function(t,e,i,n){var r=ct.crypto.MessageDigest,o=ct.crypto.Util,a=null;if(i||(i="sha1"),"string"==typeof i&&(a=r.getCanonicalAlgName(i),n=r.getHashLength(a),i=function(t){return kt(o.hashHex(Tt(t),a))}),t.length+2*n+2>e)throw"Message too long for RSA";var s,u="";for(s=0;s>3,e,i);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;var o=r.toString(16);return 0==(1&o.length)?o:"0"+o},rt.prototype.type="RSA",ot.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},ot.prototype.toBigInteger=function(){return this.x},ot.prototype.negate=function(){return new ot(this.q,this.x.negate().mod(this.q))},ot.prototype.add=function(t){return new ot(this.q,this.x.add(t.toBigInteger()).mod(this.q))},ot.prototype.subtract=function(t){return new ot(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},ot.prototype.multiply=function(t){return new ot(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},ot.prototype.square=function(){return new ot(this.q,this.x.square().mod(this.q))},ot.prototype.divide=function(t){return new ot(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},at.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},at.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},at.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(k.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(k.ZERO))},at.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(k.ZERO)&&!this.y.toBigInteger().equals(k.ZERO)},at.prototype.negate=function(){return new at(this.curve,this.x,this.y.negate(),this.z)},at.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),i=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(k.ZERO.equals(i))return k.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new k("3"),r=this.x.toBigInteger(),o=this.y.toBigInteger(),a=(t.x.toBigInteger(),t.y.toBigInteger(),i.square()),s=a.multiply(i),u=r.multiply(a),c=e.square().multiply(this.z),l=c.subtract(u.shiftLeft(1)).multiply(t.z).subtract(s).multiply(i).mod(this.curve.q),h=u.multiply(n).multiply(e).subtract(o.multiply(s)).subtract(c.multiply(e)).multiply(t.z).add(e.multiply(s)).mod(this.curve.q),d=s.multiply(this.z).multiply(t.z).mod(this.curve.q);return new at(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(h),d)},at.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=new k("3"),e=this.x.toBigInteger(),i=this.y.toBigInteger(),n=i.multiply(this.z),r=n.multiply(i).mod(this.curve.q),o=this.curve.a.toBigInteger(),a=e.square().multiply(t);k.ZERO.equals(o)||(a=a.add(this.z.square().multiply(o)));var s=(a=a.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(r)).shiftLeft(1).multiply(n).mod(this.curve.q),u=a.multiply(t).multiply(e).subtract(r.shiftLeft(1)).shiftLeft(2).multiply(r).subtract(a.square().multiply(a)).mod(this.curve.q),c=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new at(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(u),c)},at.prototype.multiply=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new k("3")),r=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var a=n.testBit(e);a!=i.testBit(e)&&(o=o.add(a?this:r))}return o},at.prototype.multiplyTwo=function(t,e,i){var n;n=t.bitLength()>i.bitLength()?t.bitLength()-1:i.bitLength()-1;for(var r=this.curve.getInfinity(),o=this.add(e);n>=0;)r=r.twice(),t.testBit(n)?r=i.testBit(n)?r.add(o):r.add(this):i.testBit(n)&&(r=r.add(e)),--n;return r},st.prototype.getQ=function(){return this.q},st.prototype.getA=function(){return this.a},st.prototype.getB=function(){return this.b},st.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},st.prototype.getInfinity=function(){return this.infinity},st.prototype.fromBigInteger=function(t){return new ot(this.q,t)},st.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,i=t.substr(2,e),n=t.substr(e+2,e);return new at(this,this.fromBigInteger(new k(i,16)),this.fromBigInteger(new k(n,16)));default:return null}},ot.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},at.prototype.getEncoded=function(t){var e=function(t,e){var i=t.toByteArrayUnsigned();if(ei.length;)i.unshift(0);return i},i=this.getX().toBigInteger(),n=this.getY().toBigInteger(),r=e(i,32);return t?n.isEven()?r.unshift(2):r.unshift(3):(r.unshift(4),r=r.concat(e(n,32))),r},at.decodeFrom=function(t,e){var i=e.length-1,n=e.slice(1,1+i/2),r=e.slice(1+i/2,1+i);n.unshift(0),r.unshift(0);var o=new k(n),a=new k(r);return new at(t,t.fromBigInteger(o),t.fromBigInteger(a))},at.decodeFromHex=function(t,e){e.substr(0,2);var i=e.length-2,n=e.substr(2,i/2),r=e.substr(2+i/2,i/2),o=new k(n,16),a=new k(r,16);return new at(t,t.fromBigInteger(o),t.fromBigInteger(a))},at.prototype.add2D=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;if(this.x.equals(t.x))return this.y.equals(t.y)?this.twice():this.curve.getInfinity();var e=t.x.subtract(this.x),i=t.y.subtract(this.y).divide(e),n=i.square().subtract(this.x).subtract(t.x),r=i.multiply(this.x.subtract(n)).subtract(this.y);return new at(this.curve,n,r)},at.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=this.curve.fromBigInteger(k.valueOf(2)),e=this.curve.fromBigInteger(k.valueOf(3)),i=this.x.square().multiply(e).add(this.curve.a).divide(this.y.multiply(t)),n=i.square().subtract(this.x.multiply(t)),r=i.multiply(this.x.subtract(n)).subtract(this.y);return new at(this.curve,n,r)},at.prototype.multiply2D=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new k("3")),r=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var a=n.testBit(e);a!=i.testBit(e)&&(o=o.add2D(a?this:r))}return o},at.prototype.isOnCurve=function(){var t=this.getX().toBigInteger(),e=this.getY().toBigInteger(),i=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),r=this.curve.getQ(),o=e.multiply(e).mod(r),a=t.multiply(t).multiply(t).add(i.multiply(t)).add(n).mod(r);return o.equals(a)},at.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},at.prototype.validate=function(){var t=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var e=this.getX().toBigInteger(),i=this.getY().toBigInteger();if(e.compareTo(k.ONE)<0||e.compareTo(t.subtract(k.ONE))>0)throw new Error("x coordinate out of bounds");if(i.compareTo(k.ONE)<0||i.compareTo(t.subtract(k.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(t).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ut=function(){var t=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),e=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),n={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function r(t,e,i){return e?n[e]:String.fromCharCode(parseInt(i,16))}var o=new String(""),a=Object.hasOwnProperty;return function(n,s){var u,c,l=n.match(t),h=l[0],d=!1;"{"===h?u={}:"["===h?u=[]:(u=[],d=!0);for(var f=[u],p=1-d,g=l.length;p=0;)delete r[o[l]]}return s.call(e,n,r)}({"":u},"")),u}}();void 0!==ct&&ct||(e.KJUR=ct={}),void 0!==ct.asn1&&ct.asn1||(ct.asn1={}),ct.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var i=e.substr(1).length;i%2==1?i+=1:e.match(/^[0-7]/)||(i+=2);for(var n="",r=0;r15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+i).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ct.asn1.DERAbstractString=function(t){ct.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=_t(this.s).toLowerCase()},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},o.lang.extend(ct.asn1.DERAbstractString,ct.asn1.ASN1Object),ct.asn1.DERAbstractTime=function(t){ct.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,i){var n=this.zeroPadding,r=this.localDateToUTC(t),o=String(r.getFullYear());"utc"==e&&(o=o.substr(2,2));var a=o+n(String(r.getMonth()+1),2)+n(String(r.getDate()),2)+n(String(r.getHours()),2)+n(String(r.getMinutes()),2)+n(String(r.getSeconds()),2);if(!0===i){var s=r.getMilliseconds();if(0!=s){var u=n(String(s),3);a=a+"."+(u=u.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=vt(t)},this.setByDateValue=function(t,e,i,n,r,o){var a=new Date(Date.UTC(t,e-1,i,n,r,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},o.lang.extend(ct.asn1.DERAbstractTime,ct.asn1.ASN1Object),ct.asn1.DERAbstractStructured=function(t){ct.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},o.lang.extend(ct.asn1.DERAbstractStructured,ct.asn1.ASN1Object),ct.asn1.DERBoolean=function(){ct.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},o.lang.extend(ct.asn1.DERBoolean,ct.asn1.ASN1Object),ct.asn1.DERInteger=function(t){ct.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ct.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new k(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},o.lang.extend(ct.asn1.DERInteger,ct.asn1.ASN1Object),ct.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=ct.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}ct.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7r.length&&(r=n[i]);return(t=t.replace(r,"::")).slice(1,-1)}function Nt(t){var e="malformed hex value";if(!t.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw e;if(8!=t.length)return 32==t.length?Lt(t):t;try{return parseInt(t.substr(0,2),16)+"."+parseInt(t.substr(2,2),16)+"."+parseInt(t.substr(4,2),16)+"."+parseInt(t.substr(6,2),16)}catch(t){throw e}}function zt(t){for(var e=encodeURIComponent(t),i="",n=0;n"7"?"00"+t:t}dt.getLblen=function(t,e){if("8"!=t.substr(e+2,1))return 1;var i=parseInt(t.substr(e+3,1));return 0==i?-1:0=2*o)break;if(s>=200)break;n.push(u),a=u,s++}return n},dt.getNthChildIdx=function(t,e,i){return dt.getChildIdx(t,e)[i]},dt.getIdxbyList=function(t,e,i,n){var r,o,a=dt;if(0==i.length){if(void 0!==n&&t.substr(e,2)!==n)throw"checking tag doesn't match: "+t.substr(e,2)+"!="+n;return e}return r=i.shift(),o=a.getChildIdx(t,e),a.getIdxbyList(t,o[r],i,n)},dt.getTLVbyList=function(t,e,i,n){var r=dt,o=r.getIdxbyList(t,e,i);if(void 0===o)throw"can't find nthList object";if(void 0!==n&&t.substr(o,2)!=n)throw"checking tag doesn't match: "+t.substr(o,2)+"!="+n;return r.getTLV(t,o)},dt.getVbyList=function(t,e,i,n,r){var o,a,s=dt;if(void 0===(o=s.getIdxbyList(t,e,i,n)))throw"can't find nthList object";return a=s.getV(t,o),!0===r&&(a=a.substr(2)),a},dt.hextooidstr=function(t){var e=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},i=[],n=t.substr(0,2),r=parseInt(n,16);i[0]=new String(Math.floor(r/40)),i[1]=new String(r%40);for(var o=t.substr(2),a=[],s=0;s0&&(l=l+"."+u.join(".")),l},dt.dump=function(t,e,i,n){var r=dt,o=r.getV,a=r.dump,s=r.getChildIdx,u=t;t instanceof ct.asn1.ASN1Object&&(u=t.getEncodedHex());var c=function(t,e){return t.length<=2*e?t:t.substr(0,e)+"..(total "+t.length/2+"bytes).."+t.substr(t.length-e,e)};void 0===e&&(e={ommit_long_octet:32}),void 0===i&&(i=0),void 0===n&&(n="");var l=e.ommit_long_octet;if("01"==u.substr(i,2))return"00"==(h=o(u,i))?n+"BOOLEAN FALSE\n":n+"BOOLEAN TRUE\n";if("02"==u.substr(i,2))return n+"INTEGER "+c(h=o(u,i),l)+"\n";if("03"==u.substr(i,2))return n+"BITSTRING "+c(h=o(u,i),l)+"\n";if("04"==u.substr(i,2)){var h=o(u,i);return r.isASN1HEX(h)?(A=n+"OCTETSTRING, encapsulates\n")+a(h,e,0,n+" "):n+"OCTETSTRING "+c(h,l)+"\n"}if("05"==u.substr(i,2))return n+"NULL\n";if("06"==u.substr(i,2)){var d=o(u,i),f=ct.asn1.ASN1Util.oidHexToInt(d),p=ct.asn1.x509.OID.oid2name(f),g=f.replace(/\./g," ");return""!=p?n+"ObjectIdentifier "+p+" ("+g+")\n":n+"ObjectIdentifier ("+g+")\n"}if("0c"==u.substr(i,2))return n+"UTF8String '"+At(o(u,i))+"'\n";if("13"==u.substr(i,2))return n+"PrintableString '"+At(o(u,i))+"'\n";if("14"==u.substr(i,2))return n+"TeletexString '"+At(o(u,i))+"'\n";if("16"==u.substr(i,2))return n+"IA5String '"+At(o(u,i))+"'\n";if("17"==u.substr(i,2))return n+"UTCTime "+At(o(u,i))+"\n";if("18"==u.substr(i,2))return n+"GeneralizedTime "+At(o(u,i))+"\n";if("30"==u.substr(i,2)){if("3000"==u.substr(i,4))return n+"SEQUENCE {}\n";A=n+"SEQUENCE\n";var v=e;if((2==(b=s(u,i)).length||3==b.length)&&"06"==u.substr(b[0],2)&&"04"==u.substr(b[b.length-1],2)){p=r.oidname(o(u,b[0]));var m=JSON.parse(JSON.stringify(e));m.x509ExtName=p,v=m}for(var y=0;yr)throw"key is too short for SigAlg: keylen="+i+","+e;for(var o="0001",a="00"+n,s="",u=r-o.length-a.length,c=0;c=0)return!1;if(i.compareTo(k.ONE)<0||i.compareTo(r)>=0)return!1;var a=i.modInverse(r),s=t.multiply(a).mod(r),u=e.multiply(a).mod(r);return o.multiply(s).add(n.multiply(u)).getX().toBigInteger().mod(r).equals(e)},this.serializeSig=function(t,e){var i=t.toByteArraySigned(),n=e.toByteArraySigned(),r=[];return r.push(2),r.push(i.length),(r=r.concat(i)).push(2),r.push(n.length),(r=r.concat(n)).unshift(r.length),r.unshift(48),r},this.parseSig=function(t){var e;if(48!=t[0])throw new Error("Signature not a valid DERSequence");if(2!=t[e=2])throw new Error("First element in signature must be a DERInteger");var i=t.slice(e+2,e+2+t[e+1]);if(2!=t[e+=2+t[e+1]])throw new Error("Second element in signature must be a DERInteger");var n=t.slice(e+2,e+2+t[e+1]);return e+=2+t[e+1],{r:k.fromByteArrayUnsigned(i),s:k.fromByteArrayUnsigned(n)}},this.parseSigCompact=function(t){if(65!==t.length)throw"Signature has the wrong length";var e=t[0]-27;if(e<0||e>7)throw"Invalid signature type";var i=this.ecparams.n;return{r:k.fromByteArrayUnsigned(t.slice(1,33)).mod(i),s:k.fromByteArrayUnsigned(t.slice(33,65)).mod(i),i:e}},this.readPKCS5PrvKeyHex=function(t){var e,i,n,r=ct.crypto.ECDSA.getName,o=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=o(t,0,[2,0],"06"),i=o(t,0,[1],"04");try{n=o(t,0,[3,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=r(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(t){var e,i,n,r=ct.crypto.ECDSA.getName,o=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{o(t,0,[1,0],"06"),e=o(t,0,[1,1],"06"),i=o(t,0,[2,0,1],"04");try{n=o(t,0,[2,0,2,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=r(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PubKeyHex=function(t){var e,i,n=ct.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{r(t,0,[0,0],"06"),e=r(t,0,[0,1],"06"),i=r(t,0,[1],"03").substr(2)}catch(t){throw"malformed PKCS#8 ECC public key"}if(this.curveName=n(e),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},this.readCertPubKeyHex=function(t,e){5!==e&&(e=6);var i,n,r=ct.crypto.ECDSA.getName,o=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{i=o(t,0,[0,e,0,1],"06"),n=o(t,0,[0,e,1],"03").substr(2)}catch(t){throw"malformed X.509 certificate ECC public key"}if(this.curveName=r(i),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},void 0!==t&&void 0!==t.curve&&(this.curveName=t.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==t&&(void 0!==t.prv&&this.setPrivateKeyHex(t.prv),void 0!==t.pub&&this.setPublicKeyHex(t.pub))},ct.crypto.ECDSA.parseSigHex=function(t){var e=ct.crypto.ECDSA.parseSigHexInHexRS(t);return{r:new k(e.r,16),s:new k(e.s,16)}},ct.crypto.ECDSA.parseSigHexInHexRS=function(t){var e=dt.getChildIdx,i=dt.getV;if("30"!=t.substr(0,2))throw"signature is not a ASN.1 sequence";var n=e(t,0);if(2!=n.length)throw"number of signature ASN.1 sequence elements seem wrong";var r=n[0],o=n[1];if("02"!=t.substr(r,2))throw"1st item of sequene of signature is not ASN.1 integer";if("02"!=t.substr(o,2))throw"2nd item of sequene of signature is not ASN.1 integer";return{r:i(t,r),s:i(t,o)}},ct.crypto.ECDSA.asn1SigToConcatSig=function(t){var e=ct.crypto.ECDSA.parseSigHexInHexRS(t),i=e.r,n=e.s;if("00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),"00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),i.length%32==30&&(i="00"+i),n.length%32==30&&(n="00"+n),i.length%32!=0)throw"unknown ECDSA sig r length error";if(n.length%32!=0)throw"unknown ECDSA sig s length error";return i+n},ct.crypto.ECDSA.concatSigToASN1Sig=function(t){if(t.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var e=t.substr(0,t.length/2),i=t.substr(t.length/2);return ct.crypto.ECDSA.hexRSSigToASN1Sig(e,i)},ct.crypto.ECDSA.hexRSSigToASN1Sig=function(t,e){var i=new k(t,16),n=new k(e,16);return ct.crypto.ECDSA.biRSSigToASN1Sig(i,n)},ct.crypto.ECDSA.biRSSigToASN1Sig=function(t,e){var i=ct.asn1,n=new i.DERInteger({bigint:t}),r=new i.DERInteger({bigint:e});return new i.DERSequence({array:[n,r]}).getEncodedHex()},ct.crypto.ECDSA.getName=function(t){return"2a8648ce3d030107"===t?"secp256r1":"2b8104000a"===t?"secp256k1":"2b81040022"===t?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(t)?"secp256r1":-1!=="|secp256k1|".indexOf(t)?"secp256k1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(t)?"secp384r1":null},void 0!==ct&&ct||(e.KJUR=ct={}),void 0!==ct.crypto&&ct.crypto||(ct.crypto={}),ct.crypto.ECParameterDB=new function(){var t={},e={};function i(t){return new k(t,16)}this.getByName=function(i){var n=i;if(void 0!==e[n]&&(n=e[i]),void 0!==t[n])return t[n];throw"unregistered EC curve name: "+n},this.regist=function(n,r,o,a,s,u,c,l,h,d,f,p){t[n]={};var g=i(o),v=i(a),m=i(s),y=i(u),b=i(c),w=new st(g,v,m),_=w.decodePointHex("04"+l+h);t[n].name=n,t[n].keylen=r,t[n].curve=w,t[n].G=_,t[n].n=y,t[n].h=b,t[n].oid=f,t[n].info=p;for(var A=0;A=2*s)break}var h={};return h.keyhex=u.substr(0,2*r[t].keylen),h.ivhex=u.substr(2*r[t].keylen,2*r[t].ivlen),h},s=function(t,e,i,n){var o=m.enc.Base64.parse(t),a=m.enc.Hex.stringify(o);return(0,r[e].proc)(a,i,n)};return{version:"1.0.0",parsePKCS5PEM:function(t){return o(t)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(t,e,i){return a(t,e,i)},decryptKeyB64:function(t,e,i,n){return s(t,e,i,n)},getDecryptedKeyHex:function(t,e){var i=o(t),n=i.cipher,r=i.ivsalt,u=i.data,c=a(n,e,r).keyhex;return s(u,n,c,r)},getEncryptedPKCS5PEMFromPrvKeyHex:function(t,e,i,n,o){var s="";if(void 0!==n&&null!=n||(n="AES-256-CBC"),void 0===r[n])throw"KEYUTIL unsupported algorithm: "+n;return void 0!==o&&null!=o||(o=function(t){var e=m.lib.WordArray.random(t);return m.enc.Hex.stringify(e)}(r[n].ivlen).toUpperCase()),s="-----BEGIN "+t+" PRIVATE KEY-----\r\n",s+="Proc-Type: 4,ENCRYPTED\r\n",s+="DEK-Info: "+n+","+o+"\r\n",s+="\r\n",(s+=function(t,e,i,n){return(0,r[e].eproc)(t,i,n)}(e,n,a(n,i,o).keyhex,o).replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+t+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(e){var i=dt.getChildIdx,n=dt.getV,r={},o=i(e,0);if(2!=o.length)throw"malformed format: SEQUENCE(0).items != 2: "+o.length;r.ciphertext=n(e,o[1]);var a=i(e,o[0]);if(2!=a.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+a.length;if("2a864886f70d01050d"!=n(e,a[0]))throw"this only supports pkcs5PBES2";var s=i(e,a[1]);if(2!=a.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+s.length;var u=i(e,s[1]);if(2!=u.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+u.length;if("2a864886f70d0307"!=n(e,u[0]))throw"this only supports TripleDES";r.encryptionSchemeAlg="TripleDES",r.encryptionSchemeIV=n(e,u[1]);var c=i(e,s[0]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+c.length;if("2a864886f70d01050c"!=n(e,c[0]))throw"this only supports pkcs5PBKDF2";var l=i(e,c[1]);if(l.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+l.length;r.pbkdf2Salt=n(e,l[0]);var h=n(e,l[1]);try{r.pbkdf2Iter=parseInt(h,16)}catch(t){throw"malformed format pbkdf2Iter: "+h}return r},getPBKDF2KeyHexFromParam:function(t,e){var i=m.enc.Hex.parse(t.pbkdf2Salt),n=m.PBKDF2(e,i,{keySize:6,iterations:t.pbkdf2Iter});return m.enc.Hex.stringify(n)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(t,e){var i=Rt(t,"ENCRYPTED PRIVATE KEY"),n=this.parseHexOfEncryptedPKCS8(i),r=Zt.getPBKDF2KeyHexFromParam(n,e),o={};o.ciphertext=m.enc.Hex.parse(n.ciphertext);var a=m.enc.Hex.parse(r),s=m.enc.Hex.parse(n.encryptionSchemeIV),u=m.TripleDES.decrypt(o,a,{iv:s});return m.enc.Hex.stringify(u)},getKeyFromEncryptedPKCS8PEM:function(t,e){var i=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(t,e);return this.getKeyFromPlainPrivatePKCS8Hex(i)},parsePlainPrivatePKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,r={algparam:null};if("30"!=t.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var o=i(t,0);if(3!=o.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=t.substr(o[1],2))throw"malformed PKCS8 private key(code:003)";var a=i(t,o[1]);if(2!=a.length)throw"malformed PKCS8 private key(code:004)";if("06"!=t.substr(a[0],2))throw"malformed PKCS8 private key(code:005)";if(r.algoid=n(t,a[0]),"06"==t.substr(a[1],2)&&(r.algparam=n(t,a[1])),"04"!=t.substr(o[2],2))throw"malformed PKCS8 private key(code:006)";return r.keyidx=e.getVidx(t,o[2]),r},getKeyFromPlainPrivatePKCS8PEM:function(t){var e=Rt(t,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(e)},getKeyFromPlainPrivatePKCS8Hex:function(t){var e,i=this.parsePlainPrivatePKCS8Hex(t);if("2a864886f70d010101"==i.algoid)e=new rt;else if("2a8648ce380401"==i.algoid)e=new ct.crypto.DSA;else{if("2a8648ce3d0201"!=i.algoid)throw"unsupported private key algorithm";e=new ct.crypto.ECDSA}return e.readPKCS8PrvKeyHex(t),e},_getKeyFromPublicPKCS8Hex:function(t){var e,i=dt.getVbyList(t,0,[0,0],"06");if("2a864886f70d010101"===i)e=new rt;else if("2a8648ce380401"===i)e=new ct.crypto.DSA;else{if("2a8648ce3d0201"!==i)throw"unsupported PKCS#8 public key hex";e=new ct.crypto.ECDSA}return e.readPKCS8PubKeyHex(t),e},parsePublicRawRSAKeyHex:function(t){var e=dt.getChildIdx,i=dt.getV,n={};if("30"!=t.substr(0,2))throw"malformed RSA key(code:001)";var r=e(t,0);if(2!=r.length)throw"malformed RSA key(code:002)";if("02"!=t.substr(r[0],2))throw"malformed RSA key(code:003)";if(n.n=i(t,r[0]),"02"!=t.substr(r[1],2))throw"malformed RSA key(code:004)";return n.e=i(t,r[1]),n},parsePublicPKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,r={algparam:null},o=i(t,0);if(2!=o.length)throw"outer DERSequence shall have 2 elements: "+o.length;var a=o[0];if("30"!=t.substr(a,2))throw"malformed PKCS8 public key(code:001)";var s=i(t,a);if(2!=s.length)throw"malformed PKCS8 public key(code:002)";if("06"!=t.substr(s[0],2))throw"malformed PKCS8 public key(code:003)";if(r.algoid=n(t,s[0]),"06"==t.substr(s[1],2)?r.algparam=n(t,s[1]):"30"==t.substr(s[1],2)&&(r.algparam={},r.algparam.p=e.getVbyList(t,s[1],[0],"02"),r.algparam.q=e.getVbyList(t,s[1],[1],"02"),r.algparam.g=e.getVbyList(t,s[1],[2],"02")),"03"!=t.substr(o[1],2))throw"malformed PKCS8 public key(code:004)";return r.key=n(t,o[1]).substr(2),r}}}();Zt.getKey=function(t,e,i){var n,r=(m=dt).getChildIdx,o=m.getVbyList,a=ct.crypto,s=a.ECDSA,u=a.DSA,c=rt,l=Rt,h=Zt;if(void 0!==c&&t instanceof c)return t;if(void 0!==s&&t instanceof s)return t;if(void 0!==u&&t instanceof u)return t;if(void 0!==t.curve&&void 0!==t.xy&&void 0===t.d)return new s({pub:t.xy,curve:t.curve});if(void 0!==t.curve&&void 0!==t.d)return new s({prv:t.d,curve:t.curve});if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(R=new c).setPublic(t.n,t.e),R;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.co&&void 0===t.qi)return(R=new c).setPrivateEx(t.n,t.e,t.d,t.p,t.q,t.dp,t.dq,t.co),R;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0===t.p)return(R=new c).setPrivate(t.n,t.e,t.d),R;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0===t.x)return(R=new u).setPublic(t.p,t.q,t.g,t.y),R;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0!==t.x)return(R=new u).setPrivate(t.p,t.q,t.g,t.y,t.x),R;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(R=new c).setPublic(wt(t.n),wt(t.e)),R;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.qi)return(R=new c).setPrivateEx(wt(t.n),wt(t.e),wt(t.d),wt(t.p),wt(t.q),wt(t.dp),wt(t.dq),wt(t.qi)),R;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d)return(R=new c).setPrivate(wt(t.n),wt(t.e),wt(t.d)),R;if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0===t.d){var d=(x=new s({curve:t.crv})).ecparams.keylen/4,f="04"+("0000000000"+wt(t.x)).slice(-d)+("0000000000"+wt(t.y)).slice(-d);return x.setPublicKeyHex(f),x}if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0!==t.d){d=(x=new s({curve:t.crv})).ecparams.keylen/4,f="04"+("0000000000"+wt(t.x)).slice(-d)+("0000000000"+wt(t.y)).slice(-d);var p=("0000000000"+wt(t.d)).slice(-d);return x.setPublicKeyHex(f),x.setPrivateKeyHex(p),x}if("pkcs5prv"===i){var g,v=t,m=dt;if(9===(g=r(v,0)).length)(R=new c).readPKCS5PrvKeyHex(v);else if(6===g.length)(R=new u).readPKCS5PrvKeyHex(v);else{if(!(g.length>2&&"04"===v.substr(g[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(R=new s).readPKCS5PrvKeyHex(v)}return R}if("pkcs8prv"===i)return h.getKeyFromPlainPrivatePKCS8Hex(t);if("pkcs8pub"===i)return h._getKeyFromPublicPKCS8Hex(t);if("x509pub"===i)return jt.getPublicKeyFromCertHex(t);if(-1!=t.indexOf("-END CERTIFICATE-",0)||-1!=t.indexOf("-END X509 CERTIFICATE-",0)||-1!=t.indexOf("-END TRUSTED CERTIFICATE-",0))return jt.getPublicKeyFromCertPEM(t);if(-1!=t.indexOf("-END PUBLIC KEY-")){var y=Rt(t,"PUBLIC KEY");return h._getKeyFromPublicPKCS8Hex(y)}if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var b=l(t,"RSA PRIVATE KEY");return h.getKey(b,null,"pkcs5prv")}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var w=o(n=l(t,"DSA PRIVATE KEY"),0,[1],"02"),_=o(n,0,[2],"02"),A=o(n,0,[3],"02"),T=o(n,0,[4],"02"),C=o(n,0,[5],"02");return(R=new u).setPrivate(new k(w,16),new k(_,16),new k(A,16),new k(T,16),new k(C,16)),R}if(-1!=t.indexOf("-END PRIVATE KEY-"))return h.getKeyFromPlainPrivatePKCS8PEM(t);if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var S=h.getDecryptedKeyHex(t,e),E=new rt;return E.readPKCS5PrvKeyHex(S),E}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var x,R=o(n=h.getDecryptedKeyHex(t,e),0,[1],"04"),I=o(n,0,[2,0],"06"),O=o(n,0,[3,0],"03").substr(2);if(void 0===ct.crypto.OID.oidhex2name[I])throw"undefined OID(hex) in KJUR.crypto.OID: "+I;return(x=new s({curve:ct.crypto.OID.oidhex2name[I]})).setPublicKeyHex(O),x.setPrivateKeyHex(R),x.isPublic=!1,x}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED"))return w=o(n=h.getDecryptedKeyHex(t,e),0,[1],"02"),_=o(n,0,[2],"02"),A=o(n,0,[3],"02"),T=o(n,0,[4],"02"),C=o(n,0,[5],"02"),(R=new u).setPrivate(new k(w,16),new k(_,16),new k(A,16),new k(T,16),new k(C,16)),R;if(-1!=t.indexOf("-END ENCRYPTED PRIVATE KEY-"))return h.getKeyFromEncryptedPKCS8PEM(t,e);throw"not supported argument"},Zt.generateKeypair=function(t,e){if("RSA"==t){var i=e;(a=new rt).generate(i,"10001"),a.isPrivate=!0,a.isPublic=!0;var n=new rt,r=a.n.toString(16),o=a.e.toString(16);return n.setPublic(r,o),n.isPrivate=!1,n.isPublic=!0,(s={}).prvKeyObj=a,s.pubKeyObj=n,s}if("EC"==t){var a,s,u=e,c=new ct.crypto.ECDSA({curve:u}).generateKeyPairHex();return(a=new ct.crypto.ECDSA({curve:u})).setPublicKeyHex(c.ecpubhex),a.setPrivateKeyHex(c.ecprvhex),a.isPrivate=!0,a.isPublic=!1,(n=new ct.crypto.ECDSA({curve:u})).setPublicKeyHex(c.ecpubhex),n.isPrivate=!1,n.isPublic=!0,(s={}).prvKeyObj=a,s.pubKeyObj=n,s}throw"unknown algorithm: "+t},Zt.getPEM=function(t,e,i,n,r,o){var a=ct.asn1,s=a.DERObjectIdentifier,u=a.DERInteger,c=a.ASN1Util.newObject,l=ct.crypto,h=l.DSA,d=l.ECDSA,f=rt;function p(t){return c({seq:[{int:0},{int:{bigint:t.n}},{int:t.e},{int:{bigint:t.d}},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.dmp1}},{int:{bigint:t.dmq1}},{int:{bigint:t.coeff}}]})}function g(t){return c({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a0",!0,{oid:{name:t.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]})}function v(t){return c({seq:[{int:0},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}},{int:{bigint:t.y}},{int:{bigint:t.x}}]})}if((void 0!==f&&t instanceof f||void 0!==h&&t instanceof h||void 0!==d&&t instanceof d)&&1==t.isPublic&&(void 0===e||"PKCS8PUB"==e))return xt(_=new(0,a.x509.SubjectPublicKeyInfo)(t).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==e&&void 0!==f&&t instanceof f&&(void 0===i||null==i)&&1==t.isPrivate)return xt(_=p(t).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==e&&void 0!==d&&t instanceof d&&(void 0===i||null==i)&&1==t.isPrivate){var y=new s({name:t.curveName}).getEncodedHex(),b=g(t).getEncodedHex(),w="";return(w+=xt(y,"EC PARAMETERS"))+xt(b,"EC PRIVATE KEY")}if("PKCS1PRV"==e&&void 0!==h&&t instanceof h&&(void 0===i||null==i)&&1==t.isPrivate)return xt(_=v(t).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==e&&void 0!==f&&t instanceof f&&void 0!==i&&null!=i&&1==t.isPrivate){var _=p(t).getEncodedHex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",_,i,n,o)}if("PKCS5PRV"==e&&void 0!==d&&t instanceof d&&void 0!==i&&null!=i&&1==t.isPrivate)return _=g(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",_,i,n,o);if("PKCS5PRV"==e&&void 0!==h&&t instanceof h&&void 0!==i&&null!=i&&1==t.isPrivate)return _=v(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",_,i,n,o);var A=function(t,e){var i=k(t,e);return new c({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:i.pbkdf2Salt}},{int:i.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:i.encryptionSchemeIV}}]}]}]},{octstr:{hex:i.ciphertext}}]}).getEncodedHex()},k=function(t,e){var i=m.lib.WordArray.random(8),n=m.lib.WordArray.random(8),r=m.PBKDF2(e,i,{keySize:6,iterations:100}),o=m.enc.Hex.parse(t),a=m.TripleDES.encrypt(o,r,{iv:n})+"",s={};return s.ciphertext=a,s.pbkdf2Salt=m.enc.Hex.stringify(i),s.pbkdf2Iter=100,s.encryptionSchemeAlg="DES-EDE3-CBC",s.encryptionSchemeIV=m.enc.Hex.stringify(n),s};if("PKCS8PRV"==e&&null!=f&&t instanceof f&&1==t.isPrivate){var T=p(t).getEncodedHex();return _=c({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?xt(_,"PRIVATE KEY"):xt(b=A(_,i),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==e&&void 0!==d&&t instanceof d&&1==t.isPrivate)return T=new c({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]}).getEncodedHex(),_=c({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:t.curveName}}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?xt(_,"PRIVATE KEY"):xt(b=A(_,i),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==e&&void 0!==h&&t instanceof h&&1==t.isPrivate)return T=new u({bigint:t.x}).getEncodedHex(),_=c({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}}]}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?xt(_,"PRIVATE KEY"):xt(b=A(_,i),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},Zt.getKeyFromCSRPEM=function(t){var e=Rt(t,"CERTIFICATE REQUEST");return Zt.getKeyFromCSRHex(e)},Zt.getKeyFromCSRHex=function(t){var e=Zt.parseCSRHex(t);return Zt.getKey(e.p8pubkeyhex,null,"pkcs8pub")},Zt.parseCSRHex=function(t){var e=dt.getChildIdx,i=dt.getTLV,n={},r=t;if("30"!=r.substr(0,2))throw"malformed CSR(code:001)";var o=e(r,0);if(o.length<1)throw"malformed CSR(code:002)";if("30"!=r.substr(o[0],2))throw"malformed CSR(code:003)";var a=e(r,o[0]);if(a.length<3)throw"malformed CSR(code:004)";return n.p8pubkeyhex=i(r,a[2]),n},Zt.getJWKFromKey=function(t){var e={};if(t instanceof rt&&t.isPrivate)return e.kty="RSA",e.n=bt(t.n.toString(16)),e.e=bt(t.e.toString(16)),e.d=bt(t.d.toString(16)),e.p=bt(t.p.toString(16)),e.q=bt(t.q.toString(16)),e.dp=bt(t.dmp1.toString(16)),e.dq=bt(t.dmq1.toString(16)),e.qi=bt(t.coeff.toString(16)),e;if(t instanceof rt&&t.isPublic)return e.kty="RSA",e.n=bt(t.n.toString(16)),e.e=bt(t.e.toString(16)),e;if(t instanceof ct.crypto.ECDSA&&t.isPrivate){if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;var i=t.getPublicKeyXYHex();return e.kty="EC",e.crv=n,e.x=bt(i.x),e.y=bt(i.y),e.d=bt(t.prvKeyHex),e}if(t instanceof ct.crypto.ECDSA&&t.isPublic){var n;if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;return i=t.getPublicKeyXYHex(),e.kty="EC",e.crv=n,e.x=bt(i.x),e.y=bt(i.y),e}throw"not supported key object"},rt.getPosArrayOfChildrenFromHex=function(t){return dt.getChildIdx(t,0)},rt.getHexValueArrayOfChildrenFromHex=function(t){var e,i=dt.getV,n=i(t,(e=rt.getPosArrayOfChildrenFromHex(t))[0]),r=i(t,e[1]),o=i(t,e[2]),a=i(t,e[3]),s=i(t,e[4]),u=i(t,e[5]),c=i(t,e[6]),l=i(t,e[7]),h=i(t,e[8]);return(e=new Array).push(n,r,o,a,s,u,c,l,h),e},rt.prototype.readPrivateKeyFromPEMString=function(t){var e=Rt(t),i=rt.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8])},rt.prototype.readPKCS5PrvKeyHex=function(t){var e=rt.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},rt.prototype.readPKCS8PrvKeyHex=function(t){var e,i,n,r,o,a,s,u,c=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=c(t,0,[2,0,1],"02"),i=c(t,0,[2,0,2],"02"),n=c(t,0,[2,0,3],"02"),r=c(t,0,[2,0,4],"02"),o=c(t,0,[2,0,5],"02"),a=c(t,0,[2,0,6],"02"),s=c(t,0,[2,0,7],"02"),u=c(t,0,[2,0,8],"02")}catch(t){throw"malformed PKCS#8 plain RSA private key"}this.setPrivateEx(e,i,n,r,o,a,s,u)},rt.prototype.readPKCS5PubKeyHex=function(t){var e=dt,i=e.getV;if(!1===e.isASN1HEX(t))throw"keyHex is not ASN.1 hex string";var n=e.getChildIdx(t,0);if(2!==n.length||"02"!==t.substr(n[0],2)||"02"!==t.substr(n[1],2))throw"wrong hex for PKCS#5 public key";var r=i(t,n[0]),o=i(t,n[1]);this.setPublic(r,o)},rt.prototype.readPKCS8PubKeyHex=function(t){var e=dt;if(!1===e.isASN1HEX(t))throw"not ASN.1 hex string";if("06092a864886f70d010101"!==e.getTLVbyList(t,0,[0,0]))throw"not PKCS8 RSA public key";var i=e.getTLVbyList(t,0,[1,0]);this.readPKCS5PubKeyHex(i)},rt.prototype.readCertPubKeyHex=function(t,e){var i,n;(i=new jt).readCertHex(t),n=i.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)};var Bt=new RegExp("");function qt(t,e){for(var i="",n=e/4-t.length,r=0;r>24,(16711680&r)>>16,(65280&r)>>8,255&r])))),r+=1;return n}function Ht(t){for(var e in ct.crypto.Util.DIGESTINFOHEAD){var i=ct.crypto.Util.DIGESTINFOHEAD[e],n=i.length;if(t.substring(0,n)==i)return[e,t.substring(n)]}return[]}function jt(){var t=dt,e=t.getChildIdx,i=t.getV,n=t.getTLV,r=t.getVbyList,o=t.getTLVbyList,a=t.getIdxbyList,s=t.getVidx,u=t.oidname,c=jt,l=Rt;this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==o(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return r(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){return u(r(this.hex,0,[0,2+this.foffset,0],"06"))},this.getIssuerHex=function(){return o(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return c.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return o(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return c.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var t=r(this.hex,0,[0,4+this.foffset,0]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getNotAfter=function(){var t=r(this.hex,0,[0,4+this.foffset,1]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getPublicKeyHex=function(){return t.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return a(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var t=this.getPublicKeyIdx();return a(this.hex,t,[1,0],"30")},this.getPublicKey=function(){return Zt.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return u(r(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return r(this.hex,0,[2],"03",!0)},this.verifySignature=function(t){var e=this.getSignatureAlgorithmName(),i=this.getSignatureValueHex(),n=o(this.hex,0,[0],"30"),r=new ct.crypto.Signature({alg:e});return r.init(t),r.updateHex(n),r.verify(i)},this.parseExt=function(){if(3!==this.version)return-1;var i=a(this.hex,0,[0,7,0],"30"),n=e(this.hex,i);this.aExtInfo=new Array;for(var o=0;o0&&(c=new Array(i),(new et).nextBytes(c),c=String.fromCharCode.apply(String,c));var l=kt(u(Tt("\0\0\0\0\0\0\0\0"+r+c))),h=[];for(n=0;n>8*s-a&255),n=0;nthis.n.bitLength())return 0;var n=Ht(this.doPublic(i).toString(16).replace(/^1f+00/,""));if(0==n.length)return!1;var r=n[0];return n[1]==function(t){return ct.crypto.Util.hashString(t,r)}(t)},rt.prototype.verifyWithMessageHash=function(t,e){var i=it(e=(e=e.replace(Bt,"")).replace(/[ \n]+/g,""),16);if(i.bitLength()>this.n.bitLength())return 0;var n=Ht(this.doPublic(i).toString(16).replace(/^1f+00/,""));return 0!=n.length&&n[1]==t},rt.prototype.verifyPSS=function(t,e,i,n){var r=function(t){return ct.crypto.Util.hashHex(t,i)}(Tt(t));return void 0===n&&(n=-1),this.verifyWithMessageHashPSS(r,e,i,n)},rt.prototype.verifyWithMessageHashPSS=function(t,e,i,n){var r=new k(e,16);if(r.bitLength()>this.n.bitLength())return!1;var o,a=function(t){return ct.crypto.Util.hashHex(t,i)},s=kt(t),u=s.length,c=this.n.bitLength()-1,l=Math.ceil(c/8);if(-1===n||void 0===n)n=u;else if(-2===n)n=l-u-2;else if(n<-2)throw"invalid salt length";if(l>8*l-c&255;if(0!=(d.charCodeAt(0)&p))throw"bits beyond keysize not zero";var g=Ut(f,d.length,a),v=[];for(o=0;o0&&-1==(":"+n.join(":")+":").indexOf(":"+v+":"))throw"algorithm '"+v+"' not accepted in the list";if("none"!=v&&null===e)throw"key shall be specified to verify.";if("string"==typeof e&&-1!=e.indexOf("-----BEGIN ")&&(e=Zt.getKey(e)),!("RS"!=d&&"PS"!=d||e instanceof r))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==d&&!(e instanceof u))throw"key shall be a ECDSA obj for ES* algs";var m=null;if(void 0===o.jwsalg2sigalg[g.alg])throw"unsupported alg name: "+v;if("none"==(m=o.jwsalg2sigalg[v]))throw"not supported";if("Hmac"==m.substr(0,4)){if(void 0===e)throw"hexadecimal key shall be specified for HMAC";var y=new c({alg:m,pass:e});return y.updateString(f),p==y.doFinal()}if(-1!=m.indexOf("withECDSA")){var b,w=null;try{w=u.concatSigToASN1Sig(p)}catch(t){return!1}return(b=new l({alg:m})).init(e),b.updateString(f),b.verify(w)}return(b=new l({alg:m})).init(e),b.updateString(f),b.verify(p)},ct.jws.JWS.parse=function(t){var e,i,n=t.split("."),r={};if(2!=n.length&&3!=n.length)throw"malformed sJWS: wrong number of '.' splitted elements";return e=n[1],3==n.length&&(i=n[2]),r.headerObj=ct.jws.JWS.readSafeJSONString(ht(n[0])),r.payloadObj=ct.jws.JWS.readSafeJSONString(ht(e)),r.headerPP=JSON.stringify(r.headerObj,null," "),r.payloadPP=null==r.payloadObj?ht(e):JSON.stringify(r.payloadObj,null," "),void 0!==i&&(r.sigHex=wt(i)),r},ct.jws.JWS.verifyJWT=function(t,e,n){var r=ct.jws,o=r.JWS,a=o.readSafeJSONString,s=o.inArray,u=o.includedArray,c=t.split("."),l=c[0],h=c[1],d=(wt(c[2]),a(ht(l))),f=a(ht(h));if(void 0===d.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!s(d.alg,n.alg))return!1;if(void 0!==f.iss&&"object"===i(n.iss)&&!s(f.iss,n.iss))return!1;if(void 0!==f.sub&&"object"===i(n.sub)&&!s(f.sub,n.sub))return!1;if(void 0!==f.aud&&"object"===i(n.aud))if("string"==typeof f.aud){if(!s(f.aud,n.aud))return!1}else if("object"==i(f.aud)&&!u(f.aud,n.aud))return!1;var p=r.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(p=n.verifyAt),void 0!==n.gracePeriod&&"number"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==f.exp&&"number"==typeof f.exp&&f.exp+n.gracePeriode.length&&(i=e.length);for(var n=0;n=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return q(t).length;default:if(n)return B(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function v(t,e,i,n,r){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:m(t,e,i,n,r);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):m(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function m(t,e,i,n,r){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,i/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var l=-1;for(o=i;os&&(i=s-u),o=i;o>=0;o--){for(var h=!0,d=0;dr&&(n=r):n=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,r.push(i%256),r.push(n);return r}(e,t.length-i),t,i,n)}function T(t,e,i){return n.fromByteArray(0===e&&i===t.length?t:t.slice(e,i))}function C(t,e,i){i=Math.min(t.length,i);for(var n=[],r=e;r239?4:c>223?3:c>191?2:1;if(r+h<=i)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[r+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:a=t[r+2],128==(192&(o=t[r+1]))&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:a=t[r+2],s=t[r+3],128==(192&(o=t[r+1]))&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(n.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),n.push(l),r+=h}return function(t){var e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);for(var i="",n=0;nthis.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,i);case"utf8":case"utf-8":return C(this,e,i);case"ascii":return E(this,e,i);case"latin1":case"binary":return x(this,e,i);case"base64":return T(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}).apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),""},u.prototype.compare=function(t,e,i,n,r){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(n>>>=0),a=(i>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(n,r),l=t.slice(e,i),h=0;hr)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return y(this,t,e,i);case"utf8":case"utf-8":return b(this,t,e,i);case"ascii":return w(this,t,e,i);case"latin1":case"binary":return _(this,t,e,i);case"base64":return A(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function E(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;rn)&&(i=n);for(var r="",o=e;oi)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,i,n,r,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function D(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-i,2);r>>8*(n?r:1-r)}function M(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r>>8*(n?r:3-r)&255}function L(t,e,i,n,r,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function N(t,e,i,n,o){return o||L(t,0,i,4),r.write(t,e,i,n,23,4),i+4}function z(t,e,i,n,o){return o||L(t,0,i,8),r.write(t,e,i,n,52,8),i+8}u.prototype.slice=function(t,e){var i,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(r*=256);)n+=this[t+--e]*r;return n},u.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||O(t,e,this.length);for(var n=this[t],r=1,o=0;++o=(r*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||O(t,e,this.length);for(var n=e,r=1,o=this[t+--n];n>0&&(r*=256);)o+=this[t+--n]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},u.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},u.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),r.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),r.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),r.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),r.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,i,n){t=+t,e|=0,i|=0,n||P(this,t,e,i,Math.pow(2,8*i)-1,0);var r=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+r]=t/o&255;return e+i},u.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):M(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);P(this,t,e,i,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+i},u.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);P(this,t,e,i,r-1,-r)}var o=i-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},u.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):M(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,i){return N(this,t,e,!0,i)},u.prototype.writeFloatBE=function(t,e,i){return N(this,t,e,!1,i)},u.prototype.writeDoubleLE=function(t,e,i){return z(this,t,e,!0,i)},u.prototype.writeDoubleBE=function(t,e,i){return z(this,t,e,!1,i)},u.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--r)t[r+e]=this[r+i];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function q(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,i,n){for(var r=0;r=e.length||r>=t.length);++r)e[r+i]=t[r];return r}}).call(this,i(28))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";e.byteLength=function(t){var e=c(t),i=e[1];return 3*(e[0]+i)/4-i},e.toByteArray=function(t){for(var e,i=c(t),n=i[0],a=i[1],s=new o(function(t,e,i){return 3*(e+i)/4-i}(0,n,a)),u=0,l=a>0?n-4:n,h=0;h>16&255,s[u++]=e>>8&255,s[u++]=255&e;return 2===a&&(e=r[t.charCodeAt(h)]<<2|r[t.charCodeAt(h+1)]>>4,s[u++]=255&e),1===a&&(e=r[t.charCodeAt(h)]<<10|r[t.charCodeAt(h+1)]<<4|r[t.charCodeAt(h+2)]>>2,s[u++]=e>>8&255,s[u++]=255&e),s},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,o=[],a=0,s=i-r;as?s:a+16383));return 1===r?o.push(n[(e=t[i-1])>>2]+n[e<<4&63]+"=="):2===r&&o.push(n[(e=(t[i-2]<<8)+t[i-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),o.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function l(t,e,i){for(var r,o=[],a=e;a>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,i,n,r){var o,a,s=8*r-n-1,u=(1<>1,l=-7,h=i?r-1:0,d=i?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+t[e+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=c}return(f?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var a,s,u,c=8*o-r-1,l=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-1)*Math.pow(2,r),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;t[i+f]=255&s,f+=p,s/=256,r-=8);for(a=a<0;t[i+f]=255&a,f+=p,a/=256,c-=8);t[i+f-p]|=128*g}},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.jws,i=t.KeyUtil,r=t.X509,o=t.crypto,a=t.hextob64u,s=t.b64tohex,u=t.AllowedSigningAlgs;return function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.parseJwt=function t(i){n.Log.debug("JoseUtil.parseJwt");try{var r=e.JWS.parse(i);return{header:r.headerObj,payload:r.payloadObj}}catch(t){n.Log.error(t)}},t.validateJwt=function(e,o,a,u,c,l,h){n.Log.debug("JoseUtil.validateJwt");try{if("RSA"===o.kty)if(o.e&&o.n)o=i.getKey(o);else{if(!o.x5c||!o.x5c.length)return n.Log.error("JoseUtil.validateJwt: RSA key missing key material",o),Promise.reject(new Error("RSA key missing key material"));var d=s(o.x5c[0]);o=r.getPublicKeyFromCertHex(d)}else{if("EC"!==o.kty)return n.Log.error("JoseUtil.validateJwt: Unsupported key type",o&&o.kty),Promise.reject(new Error(o.kty));if(!(o.crv&&o.x&&o.y))return n.Log.error("JoseUtil.validateJwt: EC key missing key material",o),Promise.reject(new Error("EC key missing key material"));o=i.getKey(o)}return t._validateJwt(e,o,a,u,c,l,h)}catch(t){return n.Log.error(t&&t.message||t),Promise.reject("JWT validation failed")}},t.validateJwtAttributes=function(e,i,r,o,a,s){o||(o=0),a||(a=parseInt(Date.now()/1e3));var u=t.parseJwt(e).payload;if(!u.iss)return n.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(u.iss!==i)return n.Log.error("JoseUtil._validateJwt: Invalid issuer in token",u.iss),Promise.reject(new Error("Invalid issuer in token: "+u.iss));if(!u.aud)return n.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(u.aud===r||Array.isArray(u.aud)&&u.aud.indexOf(r)>=0))return n.Log.error("JoseUtil._validateJwt: Invalid audience in token",u.aud),Promise.reject(new Error("Invalid audience in token: "+u.aud));if(u.azp&&u.azp!==r)return n.Log.error("JoseUtil._validateJwt: Invalid azp in token",u.azp),Promise.reject(new Error("Invalid azp in token: "+u.azp));if(!s){var c=a+o,l=a-o;if(!u.iat)return n.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(c>>((3&e)<<3)&255;return r}}},function(t,e){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninResponse=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"#";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=r.UrlUtility.parseUrlFragment(e,i);this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.code=n.code,this.state=n.state,this.id_token=n.id_token,this.session_state=n.session_state,this.access_token=n.access_token,this.token_type=n.token_type,this.scope=n.scope,this.profile=void 0,this.expires_in=n.expires_in}return n(t,[{key:"expires_in",get:function(){if(this.expires_at){var t=parseInt(Date.now()/1e3);return this.expires_at-t}},set:function(t){var e=parseInt(t);if("number"==typeof e&&e>0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutRequest=void 0;var n=i(0),r=i(3),o=i(8);e.SignoutRequest=function t(e){var i=e.url,a=e.id_token_hint,s=e.post_logout_redirect_uri,u=e.data,c=e.extraQueryParams,l=e.request_type;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var h in a&&(i=r.UrlUtility.addQueryParam(i,"id_token_hint",a)),s&&(i=r.UrlUtility.addQueryParam(i,"post_logout_redirect_uri",s),u&&(this.state=new o.State({data:u,request_type:l}),i=r.UrlUtility.addQueryParam(i,"state",this.state.id))),c)i=r.UrlUtility.addQueryParam(i,h,c[h]);this.url=i}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutResponse=void 0;var n=i(3);e.SignoutResponse=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=n.UrlUtility.parseUrlFragment(e,"?");this.error=i.error,this.error_description=i.error_description,this.error_uri=i.error_uri,this.state=i.state}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryWebStorage=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.SilentRenewService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.SessionMonitor,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.TokenRevocationClient,p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d.TokenClient,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:f.JoseUtil;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i instanceof a.UserManagerSettings||(i=new a.UserManagerSettings(i));var v=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return v._events=new u.UserManagerEvents(i),v._silentRenewService=new n(v),v.settings.automaticSilentRenew&&(r.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),v.startSilentRenew()),v.settings.monitorSession&&(r.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),v._sessionMonitor=new o(v)),v._tokenRevocationClient=new s(v._settings),v._tokenClient=new p(v._settings),v._joseUtil=g,v}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getUser=function(){var t=this;return this._loadUser().then(function(e){return e?(r.Log.info("UserManager.getUser: user loaded"),t._events.load(e,!1),e):(r.Log.info("UserManager.getUser: user not found in storage"),null)})},e.prototype.removeUser=function(){var t=this;return this.storeUser(null).then(function(){r.Log.info("UserManager.removeUser: user removed from storage"),t._events.unload()})},e.prototype.signinRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:r";var e={useReplaceToNavigate:t.useReplaceToNavigate};return this._signinStart(t,this._redirectNavigator,e).then(function(){r.Log.info("UserManager.signinRedirect: successful")})},e.prototype.signinRedirectCallback=function(t){return this._signinEnd(t||this._redirectNavigator.url).then(function(t){return t.profile&&t.profile.sub?r.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",t.profile.sub):r.Log.info("UserManager.signinRedirectCallback: no sub"),t})},e.prototype.signinPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:p";var e=t.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.display="popup",this._signin(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(t){return t&&(t.profile&&t.profile.sub?r.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",t.profile.sub):r.Log.info("UserManager.signinPopup: no sub")),t})):(r.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},e.prototype.signinPopupCallback=function(t){return this._signinCallback(t,this._popupNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?r.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",t.profile.sub):r.Log.info("UserManager.signinPopupCallback: no sub")),t}).catch(function(t){r.Log.error(t.message)})},e.prototype.signinSilent=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).request_type="si:s",this._loadUser().then(function(i){return i&&i.refresh_token?(e.refresh_token=i.refresh_token,t._useRefreshToken(e)):(e.id_token_hint=e.id_token_hint||t.settings.includeIdTokenInSilentRenew&&i&&i.id_token,i&&t._settings.validateSubOnSilentRenew&&(r.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",i.profile.sub),e.current_sub=i.profile.sub),t._signinSilentIframe(e))})},e.prototype._useRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(e).then(function(e){return e?e.access_token?t._loadUser().then(function(i){if(i){var n=Promise.resolve();return e.id_token&&(n=t._validateIdTokenFromTokenRefreshToken(i.profile,e.id_token)),n.then(function(){return r.Log.debug("UserManager._useRefreshToken: refresh token response success"),i.id_token=e.id_token,i.access_token=e.access_token,i.refresh_token=e.refresh_token||i.refresh_token,i.expires_in=e.expires_in,t.storeUser(i).then(function(){return t._events.load(i),i})})}return null}):(r.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(r.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))})},e.prototype._validateIdTokenFromTokenRefreshToken=function(t,e){var i=this;return this._metadataService.getIssuer().then(function(n){return i._joseUtil.validateJwtAttributes(e,n,i._settings.client_id,i._settings.clockSkew).then(function(e){return e?e.sub!==t.sub?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):e.auth_time&&e.auth_time!==t.auth_time?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):e.azp&&e.azp!==t.azp?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!e.azp&&t.azp?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))})})},e.prototype._signinSilentIframe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.prompt=t.prompt||"none",this._signin(t,this._iframeNavigator,{startUrl:e,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(t){return t&&(t.profile&&t.profile.sub?r.Log.info("UserManager.signinSilent: successful, signed in sub: ",t.profile.sub):r.Log.info("UserManager.signinSilent: no sub")),t})):(r.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype.signinSilentCallback=function(t){return this._signinCallback(t,this._iframeNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?r.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",t.profile.sub):r.Log.info("UserManager.signinSilentCallback: no sub")),t})},e.prototype.signinCallback=function(t){var e=this;return this.readSigninResponseState(t).then(function(i){var n=i.state;return"si:r"===n.request_type?e.signinRedirectCallback(t):"si:p"===n.request_type?e.signinPopupCallback(t):"si:s"===n.request_type?e.signinSilentCallback(t):Promise.reject(new Error("invalid response_type in state"))})},e.prototype.signoutCallback=function(t,e){var i=this;return this.readSignoutResponseState(t).then(function(n){var r=n.state,o=n.response;return r?"so:r"===r.request_type?i.signoutRedirectCallback(t):"so:p"===r.request_type?i.signoutPopupCallback(t,e):Promise.reject(new Error("invalid response_type in state")):o})},e.prototype.querySessionStatus=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:s";var i=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return i?(e.redirect_uri=i,e.prompt="none",e.response_type=e.response_type||this.settings.query_status_response_type,e.scope=e.scope||"openid",e.skipUserInfo=!0,this._signinStart(e,this._iframeNavigator,{startUrl:i,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(e){return t.processSigninResponse(e.url).then(function(t){if(r.Log.debug("UserManager.querySessionStatus: got signin response"),t.session_state&&t.profile.sub)return r.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",t.profile.sub),{session_state:t.session_state,sub:t.profile.sub,sid:t.profile.sid};r.Log.info("querySessionStatus successful, user not authenticated")}).catch(function(e){if(e.session_state&&t.settings.monitorAnonymousSession&&("login_required"==e.message||"consent_required"==e.message||"interaction_required"==e.message||"account_selection_required"==e.message))return r.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:e.session_state};throw e})})):(r.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype._signin=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(t,e,n).then(function(e){return i._signinEnd(e.url,t)})},e.prototype._signinStart=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.prepare(n).then(function(e){return r.Log.debug("UserManager._signinStart: got navigator window handle"),i.createSigninRequest(t).then(function(t){return r.Log.debug("UserManager._signinStart: got signin request"),n.url=t.url,n.id=t.state.id,e.navigate(n)}).catch(function(t){throw e.close&&(r.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),e.close()),t})})},e.prototype._signinEnd=function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(t).then(function(t){r.Log.debug("UserManager._signinEnd: got signin response");var n=new s.User(t);if(i.current_sub){if(i.current_sub!==n.profile.sub)return r.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",n.profile.sub),Promise.reject(new Error("login_required"));r.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return e.storeUser(n).then(function(){return r.Log.debug("UserManager._signinEnd: user stored"),e._events.load(n),n})})},e.prototype._signinCallback=function(t,e){return r.Log.debug("UserManager._signinCallback"),e.callback(t)},e.prototype.signoutRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:r";var e=t.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;e&&(t.post_logout_redirect_uri=e);var i={useReplaceToNavigate:t.useReplaceToNavigate};return this._signoutStart(t,this._redirectNavigator,i).then(function(){r.Log.info("UserManager.signoutRedirect: successful")})},e.prototype.signoutRedirectCallback=function(t){return this._signoutEnd(t||this._redirectNavigator.url).then(function(t){return r.Log.info("UserManager.signoutRedirectCallback: successful"),t})},e.prototype.signoutPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:p";var e=t.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return t.post_logout_redirect_uri=e,t.display="popup",t.post_logout_redirect_uri&&(t.state=t.state||{}),this._signout(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(){r.Log.info("UserManager.signoutPopup: successful")})},e.prototype.signoutPopupCallback=function(t,e){return void 0===e&&"boolean"==typeof t&&(e=t,t=null),this._popupNavigator.callback(t,e,"?").then(function(){r.Log.info("UserManager.signoutPopupCallback: successful")})},e.prototype._signout=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(t,e,n).then(function(t){return i._signoutEnd(t.url)})},e.prototype._signoutStart=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,i=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.prepare(n).then(function(i){return r.Log.debug("UserManager._signoutStart: got navigator window handle"),e._loadUser().then(function(o){return r.Log.debug("UserManager._signoutStart: loaded current user from storage"),(e._settings.revokeAccessTokenOnSignout?e._revokeInternal(o):Promise.resolve()).then(function(){var a=t.id_token_hint||o&&o.id_token;return a&&(r.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),t.id_token_hint=a),e.removeUser().then(function(){return r.Log.debug("UserManager._signoutStart: user removed, creating signout request"),e.createSignoutRequest(t).then(function(t){return r.Log.debug("UserManager._signoutStart: got signout request"),n.url=t.url,t.state&&(n.id=t.state.id),i.navigate(n)})})})}).catch(function(t){throw i.close&&(r.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),i.close()),t})})},e.prototype._signoutEnd=function(t){return this.processSignoutResponse(t).then(function(t){return r.Log.debug("UserManager._signoutEnd: got signout response"),t})},e.prototype.revokeAccessToken=function(){var t=this;return this._loadUser().then(function(e){return t._revokeInternal(e,!0).then(function(i){if(i)return r.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),e.access_token=null,e.refresh_token=null,e.expires_at=null,e.token_type=null,t.storeUser(e).then(function(){r.Log.debug("UserManager.revokeAccessToken: user stored"),t._events.load(e)})})}).then(function(){r.Log.info("UserManager.revokeAccessToken: access token revoked successfully")})},e.prototype._revokeInternal=function(t,e){var i=this;if(t){var n=t.refresh_token;return this._revokeAccessTokenInternal(t.access_token,e).then(function(t){return i._revokeRefreshTokenInternal(n,e).then(function(e){return t||e||r.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),t||e})})}return Promise.resolve(!1)},e.prototype._revokeAccessTokenInternal=function(t,e){return!t||t.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(t,e).then(function(){return!0})},e.prototype._revokeRefreshTokenInternal=function(t,e){return t?this._tokenRevocationClient.revoke(t,e,"refresh_token").then(function(){return!0}):Promise.resolve(!1)},e.prototype.startSilentRenew=function(){this._silentRenewService.start()},e.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},e.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then(function(t){return t?(r.Log.debug("UserManager._loadUser: user storageString loaded"),s.User.fromStorageString(t)):(r.Log.debug("UserManager._loadUser: no user storageString"),null)})},e.prototype.storeUser=function(t){if(t){r.Log.debug("UserManager.storeUser: storing user");var e=t.toStorageString();return this._userStore.set(this._userStoreKey,e)}return r.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},n(e,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),e}(o.OidcClient)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserManagerSettings=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.popup_redirect_uri,r=i.popup_post_logout_redirect_uri,h=i.popupWindowFeatures,d=i.popupWindowTarget,f=i.silent_redirect_uri,p=i.silentRequestTimeout,g=i.automaticSilentRenew,v=void 0!==g&&g,m=i.validateSubOnSilentRenew,y=void 0!==m&&m,b=i.includeIdTokenInSilentRenew,w=void 0===b||b,_=i.monitorSession,A=void 0===_||_,k=i.monitorAnonymousSession,T=void 0!==k&&k,C=i.checkSessionInterval,S=void 0===C?2e3:C,E=i.stopCheckSessionOnError,x=void 0===E||E,R=i.query_status_response_type,I=i.revokeAccessTokenOnSignout,O=void 0!==I&&I,P=i.accessTokenExpiringNotificationTime,D=void 0===P?60:P,M=i.redirectNavigator,L=void 0===M?new o.RedirectNavigator:M,N=i.popupNavigator,z=void 0===N?new a.PopupNavigator:N,F=i.iframeNavigator,Z=void 0===F?new s.IFrameNavigator:F,B=i.userStore,q=void 0===B?new u.WebStorageStateStore({store:c.Global.sessionStorage}):B;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var U=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));return U._popup_redirect_uri=n,U._popup_post_logout_redirect_uri=r,U._popupWindowFeatures=h,U._popupWindowTarget=d,U._silent_redirect_uri=f,U._silentRequestTimeout=p,U._automaticSilentRenew=v,U._validateSubOnSilentRenew=y,U._includeIdTokenInSilentRenew=w,U._accessTokenExpiringNotificationTime=D,U._monitorSession=A,U._monitorAnonymousSession=T,U._checkSessionInterval=S,U._stopCheckSessionOnError=x,U._query_status_response_type=R||(arguments[0]&&arguments[0].response_type?l.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":"id_token"),U._revokeAccessTokenOnSignout=O,U._redirectNavigator=L,U._popupNavigator=z,U._iframeNavigator=Z,U._userStore=q,U}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),e}(r.OidcClientSettings)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RedirectNavigator=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1])||arguments[1];n.Log.debug("UserManagerEvents.load"),t.prototype.load.call(this,e),i&&this._userLoaded.raise(e)},e.prototype.unload=function(){n.Log.debug("UserManagerEvents.unload"),t.prototype.unload.call(this),this._userUnloaded.raise()},e.prototype.addUserLoaded=function(t){this._userLoaded.addHandler(t)},e.prototype.removeUserLoaded=function(t){this._userLoaded.removeHandler(t)},e.prototype.addUserUnloaded=function(t){this._userUnloaded.addHandler(t)},e.prototype.removeUserUnloaded=function(t){this._userUnloaded.removeHandler(t)},e.prototype.addSilentRenewError=function(t){this._silentRenewError.addHandler(t)},e.prototype.removeSilentRenewError=function(t){this._silentRenewError.removeHandler(t)},e.prototype._raiseSilentRenewError=function(t){n.Log.debug("UserManagerEvents._raiseSilentRenewError",t.message),this._silentRenewError.raise(t)},e.prototype.addUserSignedIn=function(t){this._userSignedIn.addHandler(t)},e.prototype.removeUserSignedIn=function(t){this._userSignedIn.removeHandler(t)},e.prototype._raiseUserSignedIn=function(){n.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},e.prototype.addUserSignedOut=function(t){this._userSignedOut.addHandler(t)},e.prototype.removeUserSignedOut=function(t){this._userSignedOut.removeHandler(t)},e.prototype._raiseUserSignedOut=function(){n.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},e.prototype.addUserSessionChanged=function(t){this._userSessionChanged.addHandler(t)},e.prototype.removeUserSessionChanged=function(t){this._userSessionChanged.removeHandler(t)},e.prototype._raiseUserSessionChanged=function(){n.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},e}(r.AccessTokenEvents)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:o.Global.timer,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return a._timer=n,a._nowFunc=r||function(){return Date.now()/1e3},a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.init=function(t){t<=0&&(t=1),t=parseInt(t);var e=this.now+t;if(this.expiration===e&&this._timerHandle)r.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),r.Log.debug("Timer.init timer "+this._name+" for duration:",t),this._expiration=e;var i=5;t0&&u>s&&(u=s);for(var c=0;c=0?(l=p.substr(0,g),h=p.substr(g+1)):(l=p,h=""),d=decodeURIComponent(l),f=decodeURIComponent(h),e(o,d)?Array.isArray(o[d])?o[d].push(f):o[d]=[o[d],f]:o[d]=f}return o}},15341:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,r){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(r){var o=encodeURIComponent(e(r))+n;return Array.isArray(t[r])?t[r].map(function(t){return o+encodeURIComponent(e(t))}).join(i):o+encodeURIComponent(e(t[r]))}).join(i):r?encodeURIComponent(e(r))+n+encodeURIComponent(e(t)):""}},96577:function(t,e,i){"use strict";i(40963),e.stringify=i(15341)},78512:function(t,e,i){"use strict";i.d(e,{X:function(){return u}});var r=i(55959),a=i(13895),u=function(t){o(i,t);var e=s(i);function i(t){var n;return v(this,i),(n=e.call(this))._value=t,n}return y(i,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(t){var e=n(h(i.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new a.N;return this._value}},{key:"next",value:function(t){n(h(i.prototype),"next",this).call(this,this._value=t)}}]),i}(r.xQ)},99867:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var n=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this)).parent=t,o.outerValue=n,o.outerIndex=r,o.index=0,o}return y(i,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),i}(i(96673).L)},3103:function(t,e,i){"use strict";i.d(e,{P:function(){return a}});var n=i(70653),r=i(40878),o=i(31225),a=function(){var t=function(){function t(e,i,n){v(this,t),this.kind=e,this.value=i,this.error=n,this.hasValue="N"===e}return y(t,[{key:"observe",value:function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}},{key:"do",value:function(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}},{key:"accept",value:function(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}();return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},48318:function(t,e,i){"use strict";i.d(e,{y:function(){return c}});var n=i(96673),r=i(55331),o=i(57498),a=i(56197),s=i(13392),u=i(51484),c=function(){var t=function(){function t(e){v(this,t),this._isScalar=!1,e&&(this._subscribe=e)}return y(t,[{key:"lift",value:function(e){var i=new t;return i.source=this,i.operator=e,i}},{key:"subscribe",value:function(t,e,i){var a=this.operator,s=function(t,e,i){if(t){if(t instanceof n.L)return t;if(t[r.b])return t[r.b]()}return t||e||i?new n.L(t,e,i):new n.L(o.c)}(t,e,i);if(s.add(a?a.call(s,this.source):this.source||u.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),u.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(t){try{return this._subscribe(t)}catch(e){u.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,i=e.closed,r=e.destination,o=e.isStopped;if(i||o)return!1;t=r&&r instanceof n.L?r:null}return!0}(t)?t.error(e):console.warn(e)}}},{key:"forEach",value:function(t,e){var i=this;return new(e=l(e))(function(e,n){var r;r=i.subscribe(function(e){try{t(e)}catch(i){n(i),r&&r.unsubscribe()}},n,e)})}},{key:"_subscribe",value:function(t){var e=this.source;return e&&e.subscribe(t)}},{key:a.L,value:function(){return this}},{key:"pipe",value:function(){for(var t=arguments.length,e=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return e>0?n(h(i.prototype),"schedule",this).call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,e){return e>0||this.closed?n(h(i.prototype),"execute",this).call(this,t,e):this._execute(t,e)}},{key:"requestAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?n(h(i.prototype),"requestAsyncId",this).call(this,t,e,r):t.flush(this)}}]),i}(i(8277).o),u=new(function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return i}(i(91098).v))(a),c=i(87570),l=i(96673),d=i(3103),f=function(t){o(i,t);var e=s(i);function i(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return v(this,i),(r=e.call(this,t)).scheduler=n,r.delay=o,r}return y(i,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(i.dispatch,this.delay,new p(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(d.P.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(d.P.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(d.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,i=t.destination;e.observe(i),this.unsubscribe()}}]),i}(l.L),p=function t(e,i){v(this,t),this.notification=e,this.destination=i},g=i(13895),m=i(19291),b=function(t){o(i,t);var e=s(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return v(this,i),(t=e.call(this)).scheduler=o,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=n<1?1:n,t._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return y(i,[{key:"nextInfiniteTimeWindow",value:function(t){var e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),n(h(i.prototype),"next",this).call(this,t)}},{key:"nextTimeWindow",value:function(t){this._events.push(new w(this._getNow(),t)),this._trimBufferThenGetEvents(),n(h(i.prototype),"next",this).call(this,t)}},{key:"_subscribe",value:function(t){var e,i=this._infiniteTimeWindow,n=i?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=n.length;if(this.closed)throw new g.N;if(this.isStopped||this.hasError?e=c.w.EMPTY:(this.observers.push(t),e=new m.W(this,t)),r&&t.add(t=new f(t,r)),i)for(var a=0;ae&&(o=Math.max(o,r-e)),o>0&&n.splice(0,o),n}}]),i}(r.xQ),w=function t(e,i){v(this,t),this.time=e,this.value=i}},55959:function(t,e,i){"use strict";i.d(e,{Yc:function(){return f},xQ:function(){return p}});var r=i(48318),a=i(96673),u=i(87570),c=i(13895),l=i(19291),d=i(55331),f=function(t){o(i,t);var e=s(i);function i(t){var n;return v(this,i),(n=e.call(this,t)).destination=t,n}return i}(a.L),p=function(){var t=function(t){o(i,t);var e=s(i);function i(){var t;return v(this,i),(t=e.call(this)).observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return y(i,[{key:d.b,value:function(){return new f(this)}},{key:"lift",value:function(t){var e=new g(this,this);return e.operator=t,e}},{key:"next",value:function(t){if(this.closed)throw new c.N;if(!this.isStopped)for(var e=this.observers,i=e.length,n=e.slice(),r=0;r1?Array.prototype.slice.call(arguments):t)},n,i)})}function u(t,e,i,n,r){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var a=t;t.addEventListener(e,i,r),o=function(){return a.removeEventListener(e,i,r)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var s=t;t.on(e,i),o=function(){return s.off(e,i)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var c=t;t.addListener(e,i),o=function(){return c.removeListener(e,i)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,h=t.length;l0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return(!(0,o.k)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=r.P),new n.y(function(i){return i.add(e.schedule(s,t,{subscriber:i,counter:0,period:t})),i})}function s(t){var e=t.subscriber,i=t.counter,n=t.period;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}},31906:function(t,e,i){"use strict";i.d(e,{T:function(){return s}});var n=i(48318),r=i(76163),o=i(97471),a=i(99342);function s(){for(var t=arguments.length,e=new Array(t),i=0;i1&&"number"==typeof e[e.length-1]&&(s=e.pop())):"number"==typeof c&&(s=e.pop()),null===u&&1===e.length&&e[0]instanceof n.y?e[0]:(0,o.J)(s)((0,a.n)(e,u))}},40878:function(t,e,i){"use strict";i.d(e,{of:function(){return a}});var n=i(76163),r=i(99342),o=i(62570);function a(){for(var t=arguments.length,e=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,s=-1;return(0,o.k)(e)?s=Number(e)<1?1:Number(e):(0,a.K)(e)&&(i=e),(0,a.K)(i)||(i=r.P),new n.y(function(e){var n=(0,o.k)(t)?t:+t-i.now();return i.schedule(u,n,{index:0,period:s,subscriber:e})})}function u(t){var e=t.index,i=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}},30810:function(t,e,i){"use strict";i.d(e,{e:function(){return h}});var n=i(48569),r=i(59829),a=i(6268),u=function(){function t(e){v(this,t),this.durationSelector=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.durationSelector))}}]),t}(),c=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t)).durationSelector=n,r.hasValue=!1,r}return y(i,[{key:"_next",value:function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e;try{e=(0,this.durationSelector)(t)}catch(n){return this.destination.error(n)}var i=(0,a.D)(this,e);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}},{key:"clearThrottle",value:function(){var t=this.value,e=this.hasValue,i=this.throttled;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}},{key:"notifyNext",value:function(t,e,i,n){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),i}(r.L),l=i(81110);function h(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.P;return e=function(){return(0,l.H)(t,i)},function(t){return t.lift(new u(e))}}},47727:function(t,e,i){"use strict";i.d(e,{K:function(){return c}});var r=i(59829),a=i(99867),u=i(6268);function c(t){return function(e){var i=new l(t),n=e.lift(i);return i.caught=n}}var l=function(){function t(e){v(this,t),this.selector=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new d(t,this.selector,this.caught))}}]),t}(),d=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t)).selector=n,o.caught=r,o}return y(i,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(s){return void n(h(i.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var r=new a.d(this,void 0,void 0);this.add(r);var o=(0,u.D)(this,e,void 0,void 0,r);o!==r&&this.add(o)}}}]),i}(r.L)},436:function(t,e,i){"use strict";i.d(e,{b:function(){return r}});var n=i(73982);function r(t,e){return(0,n.zg)(t,e,1)}},47701:function(t,e,i){"use strict";i.d(e,{b:function(){return a}});var n=i(96673),r=i(48569);function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return function(i){return i.lift(new u(t,e))}}var u=function(){function t(e,i){v(this,t),this.dueTime=e,this.scheduler=i}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.dueTime,this.scheduler))}}]),t}(),c=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t)).dueTime=n,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return y(i,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),i}(n.L);function l(t){t.debouncedNext()}},7768:function(t,e,i){"use strict";i.d(e,{d:function(){return r}});var n=i(96673);function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new a(t))}}var a=function(){function t(e){v(this,t),this.defaultValue=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.defaultValue))}}]),t}(),u=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t)).defaultValue=n,r.isEmpty=!0,r}return y(i,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),i}(n.L)},82628:function(t,e,i){"use strict";i.d(e,{g:function(){return u}});var n=i(48569),r=i(96673),a=i(3103);function u(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.P,r=(e=t)instanceof Date&&!isNaN(+e)?+t-i.now():Math.abs(t);return function(t){return t.lift(new c(r,i))}}var c=function(){function t(e,i){v(this,t),this.delay=e,this.scheduler=i}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}]),t}(),l=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t)).delay=n,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return y(i,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(i.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,i=new h(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(a.P.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(a.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,i=e.queue,n=t.scheduler,r=t.destination;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(r);if(i.length>0){var o=Math.max(0,i[0].time-n.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}}]),i}(r.L),h=function t(e,i){v(this,t),this.time=e,this.notification=i}},98720:function(t,e,i){"use strict";i.d(e,{x:function(){return r}});var n=i(96673);function r(t,e){return function(i){return i.lift(new a(t,e))}}var a=function(){function t(e,i){v(this,t),this.compare=e,this.keySelector=i}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.compare,this.keySelector))}}]),t}(),u=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t)).keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return y(i,[{key:"compare",value:function(t,e){return t===e}},{key:"_next",value:function(t){var e;try{var i=this.keySelector;e=i?i(t):t}catch(r){return this.destination.error(r)}var n=!1;if(this.hasKey)try{n=(0,this.compare)(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}]),i}(n.L)},43835:function(t,e,i){"use strict";i.d(e,{h:function(){return r}});var n=i(96673);function r(t,e){return function(i){return i.lift(new a(t,e))}}var a=function(){function t(e,i){v(this,t),this.predicate=e,this.thisArg=i}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.predicate,this.thisArg))}}]),t}(),u=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t)).predicate=n,o.thisArg=r,o.count=0,o}return y(i,[{key:"_next",value:function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}]),i}(n.L)},11520:function(t,e,i){"use strict";i.d(e,{x:function(){return a}});var n=i(96673),r=i(87570);function a(t){return function(e){return e.lift(new u(t))}}var u=function(){function t(e){v(this,t),this.callback=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.callback))}}]),t}(),c=function(t){o(i,t);var e=s(i);function i(t,n){var o;return v(this,i),(o=e.call(this,t)).add(new r.w(n)),o}return i}(n.L)},3530:function(t,e,i){"use strict";i.d(e,{P:function(){return c}});var n=i(39665),r=i(43835),o=i(90611),a=i(7768),s=i(90790),u=i(13392);function c(t,e){var i=arguments.length>=2;return function(c){return c.pipe(t?(0,r.h)(function(e,i){return t(e,i,c)}):u.y,(0,o.q)(1),i?(0,a.d)(e):(0,s.T)(function(){return new n.K}))}}},79996:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var n=i(96673);function r(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new a(t,e))}}var a=function(){function t(e,i){v(this,t),this.project=e,this.thisArg=i}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.project,this.thisArg))}}]),t}(),u=function(t){o(i,t);var e=s(i);function i(t,n,r){var o;return v(this,i),(o=e.call(this,t)).project=n,o.count=0,o.thisArg=r||c(o),o}return y(i,[{key:"_next",value:function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}]),i}(n.L)},88414:function(t,e,i){"use strict";i.d(e,{h:function(){return r}});var n=i(96673);function r(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(e){v(this,t),this.value=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.value))}}]),t}(),u=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t)).value=n,r}return y(i,[{key:"_next",value:function(t){this.destination.next(this.value)}}]),i}(n.L)},97471:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(73982),r=i(13392);function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,n.zg)(r.y,t)}},73982:function(t,e,i){"use strict";i.d(e,{zg:function(){return l}});var n=i(6268),r=i(59829),a=i(99867),u=i(79996),c=i(19764);function l(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(n){return n.pipe(l(function(i,n){return(0,c.D)(t(i,n)).pipe((0,u.U)(function(t,r){return e(i,t,n,r)}))},i))}:("number"==typeof e&&(i=e),function(e){return e.lift(new h(t,i))})}var h=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;v(this,t),this.project=e,this.concurrent=i}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new d(t,this.project,this.concurrent))}}]),t}(),d=function(t){o(i,t);var e=s(i);function i(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return v(this,i),(r=e.call(this,t)).project=n,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return y(i,[{key:"_next",value:function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),i}(r.L)},21564:function(t,e,i){"use strict";i.d(e,{x:function(){return r}});var n=i(96673);function r(){return function(t){return t.lift(new a(t))}}var a=function(){function t(e){v(this,t),this.connectable=e}return y(t,[{key:"call",value:function(t,e){var i=this.connectable;i._refCount++;var n=new u(t,i),r=e.subscribe(n);return n.closed||(n.connection=i.connect()),r}}]),t}(),u=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t)).connectable=n,r}return y(i,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var i=this.connection,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}else this.connection=null}}]),i}(n.L)},1055:function(t,e,i){"use strict";i.d(e,{B:function(){return s}});var n=i(42875),r=i(21564),o=i(55959);function a(){return new o.xQ}function s(){return function(t){return(0,r.x)()((e=a,function(t){var i;i="function"==typeof e?e:function(){return e};var r=Object.create(t,n.N);return r.source=t,r.subjectFactory=i,r})(t));var e}}},68303:function(t,e,i){"use strict";i.d(e,{d:function(){return r}});var n=i(66994);function r(t,e,i){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},function(t){return t.lift(function(t){var e,i,r=t.bufferSize,o=void 0===r?Number.POSITIVE_INFINITY:r,a=t.windowTime,s=void 0===a?Number.POSITIVE_INFINITY:a,u=t.refCount,c=t.scheduler,l=0,h=!1,d=!1;return function(t){l++,e&&!h||(h=!1,e=new n.t(o,s,c),i=t.subscribe({next:function(t){e.next(t)},error:function(t){h=!0,e.error(t)},complete:function(){d=!0,i=void 0,e.complete()}}));var r=e.subscribe(this);this.add(function(){l--,r.unsubscribe(),i&&!d&&u&&0===l&&(i.unsubscribe(),i=void 0,e=void 0)})}}(r))}}},56238:function(t,e,i){"use strict";i.d(e,{O:function(){return o}});var n=i(47930),r=i(76163);function o(){for(var t=arguments.length,e=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:l;return function(e){return e.lift(new u(t))}}var u=function(){function t(e){v(this,t),this.errorFactory=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.errorFactory))}}]),t}(),c=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t)).errorFactory=n,r.hasValue=!1,r}return y(i,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),i}(r.L);function l(){return new n.K}},62570:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(48318),r=i(87570);function o(t,e){return new n.y(function(i){var n=new r.w,o=0;return n.add(e.schedule(function(){o!==t.length?(i.next(t[o++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},8277:function(t,e,i){"use strict";i.d(e,{o:function(){return n}});var n=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t,n)).scheduler=t,r.work=n,r.pending=!1,r}return y(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),i)}},{key:"recycleAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var i,n=!1;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),i}(function(t){o(i,t);var e=s(i);function i(t,n){return v(this,i),e.call(this)}return y(i,[{key:"schedule",value:function(t){return this}}]),i}(i(87570).w))},91098:function(t,e,i){"use strict";i.d(e,{v:function(){return a}});var r=function(){var t=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;v(this,t),this.SchedulerAction=e,this.now=i}return y(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(i,e)}}]),t}();return t.now=function(){return Date.now()},t}(),a=function(t){o(i,t);var e=s(i);function i(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.now;return v(this,i),(n=e.call(this,t,function(){return i.delegate&&i.delegate!==c(n)?i.delegate.now():o()})).actions=[],n.active=!1,n.scheduled=void 0,n}return y(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return i.delegate&&i.delegate!==this?i.delegate.schedule(t,e,r):n(h(i.prototype),"schedule",this).call(this,t,e,r)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}}]),i}(r)},91741:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var r=function(t){o(i,t);var e=s(i);function i(t,n){var r;return v(this,i),(r=e.call(this,t,n)).scheduler=t,r.work=n,r}return y(i,[{key:"requestAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?n(h(i.prototype),"requestAsyncId",this).call(this,t,e,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))}},{key:"recycleAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return n(h(i.prototype),"recycleAsyncId",this).call(this,t,e,r);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}]),i}(i(8277).o),a=new(function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,i=this.actions,n=-1,r=i.length;t=t||i.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?n(h(i.prototype),"requestAsyncId",this).call(this,t,e,r):(t.actions.push(this),t.scheduled||(t.scheduled=l(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return n(h(i.prototype),"recycleAsyncId",this).call(this,t,e,r);0===t.actions.length&&(d(e),t.scheduled=void 0)}}]),i}(i(8277).o),p=new(function(t){o(i,t);var e=s(i);function i(){return v(this,i),e.apply(this,arguments)}return y(i,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,i=this.actions,n=-1,r=i.length;t=t||i.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n=0}},82056:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,{K:function(){return n}})},4710:function(t,e,i){"use strict";i.d(e,{b:function(){return r}});var n=i(48318);function r(t){return!!t&&(t instanceof n.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},5168:function(t,e,i){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,{t:function(){return n}})},76163:function(t,e,i){"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,{K:function(){return n}})},16015:function(t,e,i){"use strict";i.d(e,{s:function(){return l}});var n=i(30625),r=i(14294),o=i(25686),a=i(56197),s=i(59653),u=i(5168),c=i(82056),l=function(t){if(t&&"function"==typeof t[a.L])return l=t,function(t){var e=l[a.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,s.z)(t))return(0,n.V)(t);if((0,u.t)(t))return i=t,function(t){return i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,r.z),t};if(t&&"function"==typeof t[o.hZ])return e=t,function(t){for(var i=e[o.hZ]();;){var n=i.next();if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof i.return&&t.add(function(){i.return&&i.return()}),t};var e,i,l,h=(0,c.K)(t)?"an invalid object":"'".concat(t,"'");throw new TypeError("You provided ".concat(h," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}},30625:function(t,e,i){"use strict";i.d(e,{V:function(){return n}});var n=function(t){return function(e){for(var i=0,n=t.length;i4&&void 0!==arguments[4]?arguments[4]:new n.d(t,i,a);if(!s.closed)return e instanceof o.y?e.subscribe(s):(0,r.s)(e)(s)}},64762:function(t,e,i){"use strict";function n(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a}function r(t,e){return function(i,n){e(i,n,t)}}function o(t,e,i,n){return new(i||(i=Promise))(function(r,o){function a(t){try{u(n.next(t))}catch(e){o(e)}}function s(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})}i.d(e,{gn:function(){return n},fM:function(){return r},mG:function(){return o}})},60306:function(t){"use strict";t.exports={i8:"2.0.0"}}},function(t){"use strict";t(t.s=15291)}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/runtime-es2015.2396c7b163422e37a860.js b/dist/apps/admin-gui/runtime-es2015.810eea43729ccbfd0db8.js similarity index 91% rename from dist/apps/admin-gui/runtime-es2015.2396c7b163422e37a860.js rename to dist/apps/admin-gui/runtime-es2015.810eea43729ccbfd0db8.js index 4199b944e..0444947f5 100644 --- a/dist/apps/admin-gui/runtime-es2015.2396c7b163422e37a860.js +++ b/dist/apps/admin-gui/runtime-es2015.810eea43729ccbfd0db8.js @@ -1 +1 @@ -!function(){"use strict";var e,n,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var u=t[e]={id:e,loaded:!1,exports:{}};return r[e].call(u.exports,u,u.exports,o),u.loaded=!0,u.exports}o.m=r,e=[],o.O=function(n,r,t,u){if(!r){var a=1/0;for(f=0;f=u)&&Object.keys(o.O).every(function(e){return o.O[e](r[c])})?r.splice(c--,1):(i=!1,u0&&e[f-1][2]>u;f--)e[f]=e[f-1];e[f]=[r,t,u]},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,{a:n}),n},o.d=function(e,n){for(var r in n)o.o(n,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce(function(n,r){return o.f[r](e,n),n},[]))},o.u=function(e){return e+"-es2015."+{147:"8e22cc4ad569ace2fb8a",300:"4d98bfefe34fffafe58f",363:"3fbe2b130d5c69b906dc",512:"a8526fc624109da8878b",579:"1addc672c03e39557987",592:"77e3d7989f44b988548d",756:"008cd3af4db238dee841",827:"8b0b957d45d345d3fb05"}[e]+".js"},o.miniCssF=function(e){return"styles.0e5555aa915d4ccb32cc.css"},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n={},o.l=function(e,r,t,u){if(n[e])n[e].push(r);else{var a,i;if(void 0!==t)for(var c=document.getElementsByTagName("script"),f=0;f=u)&&Object.keys(o.O).every(function(e){return o.O[e](r[c])})?r.splice(c--,1):(i=!1,u0&&e[f-1][2]>u;f--)e[f]=e[f-1];e[f]=[r,t,u]},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,{a:n}),n},o.d=function(e,n){for(var r in n)o.o(n,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce(function(n,r){return o.f[r](e,n),n},[]))},o.u=function(e){return e+"-es2015."+{285:"751d166c412b8dc80541",300:"a828853dfe9786d61a8d",363:"9c3a7cea17cb338ca650",427:"1c911b592f126adfd085",579:"a7ecabb9fc862945e886",756:"191260c437bd1ee35217",827:"48873b00486d65bdb035",901:"5b604fcd09c050f65159"}[e]+".js"},o.miniCssF=function(e){return"styles.0e5555aa915d4ccb32cc.css"},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n={},o.l=function(e,r,t,u){if(n[e])n[e].push(r);else{var a,i;if(void 0!==t)for(var c=document.getElementsByTagName("script"),f=0;f=u)&&Object.keys(o.O).every(function(e){return o.O[e](r[c])})?r.splice(c--,1):(i=!1,u0&&e[f-1][2]>u;f--)e[f]=e[f-1];e[f]=[r,t,u]},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,{a:n}),n},o.d=function(e,n){for(var r in n)o.o(n,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce(function(n,r){return o.f[r](e,n),n},[]))},o.u=function(e){return e+"-es5."+{147:"8e22cc4ad569ace2fb8a",300:"4d98bfefe34fffafe58f",363:"3fbe2b130d5c69b906dc",512:"a8526fc624109da8878b",579:"1addc672c03e39557987",592:"77e3d7989f44b988548d",756:"008cd3af4db238dee841",827:"8b0b957d45d345d3fb05"}[e]+".js"},o.miniCssF=function(e){return"styles.0e5555aa915d4ccb32cc.css"},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n={},o.l=function(e,r,t,u){if(n[e])n[e].push(r);else{var a,i;if(void 0!==t)for(var c=document.getElementsByTagName("script"),f=0;f=u)&&Object.keys(o.O).every(function(e){return o.O[e](r[c])})?r.splice(c--,1):(i=!1,u0&&e[f-1][2]>u;f--)e[f]=e[f-1];e[f]=[r,t,u]},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,{a:n}),n},o.d=function(e,n){for(var r in n)o.o(n,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce(function(n,r){return o.f[r](e,n),n},[]))},o.u=function(e){return e+"-es5."+{285:"751d166c412b8dc80541",300:"a828853dfe9786d61a8d",363:"9c3a7cea17cb338ca650",427:"1c911b592f126adfd085",579:"a7ecabb9fc862945e886",756:"191260c437bd1ee35217",827:"48873b00486d65bdb035",901:"5b604fcd09c050f65159"}[e]+".js"},o.miniCssF=function(e){return"styles.0e5555aa915d4ccb32cc.css"},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n={},o.l=function(e,r,t,u){if(n[e])n[e].push(r);else{var a,i;if(void 0!==t)for(var c=document.getElementsByTagName("script"),f=0;f - + @@ -41,5 +41,5 @@ - + diff --git a/dist/apps/publications/main.03695dac3c2e50b9f23a.js b/dist/apps/publications/main.03695dac3c2e50b9f23a.js new file mode 100644 index 000000000..49ce5798a --- /dev/null +++ b/dist/apps/publications/main.03695dac3c2e50b9f23a.js @@ -0,0 +1 @@ +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[179],{3619:t=>{function e(t){return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=()=>[],e.resolve=e,e.id=3619,t.exports=e},8722:(t,e,i)=>{"use strict";function n(t){return"function"==typeof t}let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},c=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function u(t){return null!==t&&"object"==typeof t}const l=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof l?e.errors:e),[])}const f=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class p extends h{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof p?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,i)}}[f](){return this}static create(t,e,i){const n=new p(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends p{constructor(t,e,i,s){let r;super(),this._parentSubscriber=t;let o=this;n(e)?r=e:e&&(r=e.next,i=e.error,s=e.complete,e!==a&&(o=Object.create(e),n(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=r;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw i;o(i)}}__tryOrSetError(t,e,i){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(o(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(t){return t}let y=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:n}=this,s=function(t,e,i){if(t){if(t instanceof p)return t;if(t[f])return t[f]()}return t||e||i?new p(t,e,i):new p(a)}(t,e,i);if(s.add(n?n.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:n}=t;if(e||n)return!1;t=i&&i instanceof p?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=w(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?_:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=w(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function w(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const b=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class v extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class A extends p{constructor(t){super(t),this.destination=t}}let k=(()=>{class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new A(this)}lift(t){const e=new T(this,this);return e.operator=t,e}next(t){if(this.closed)throw new b;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew T(t,e),t})();class T extends k{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function C(t){return t&&"function"==typeof t.schedule}class S extends p{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const M=t=>e=>{for(let i=0,n=t.length;it&&"number"==typeof t.length&&"function"!=typeof t;function D(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const P=t=>{if(t&&"function"==typeof t[m])return i=t,t=>{const e=i[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(R(t))return M(t);if(D(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e))(t);if(t&&"function"==typeof t[x])return e=t,t=>{const i=e[x]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=u(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i};function L(t,e,i,n,s=new S(t,i,n)){if(!s.closed)return e instanceof y?e.subscribe(s):P(e)(s)}class z extends p{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function I(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new F(t,e))}}class F{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new H(t,this.project,this.thisArg))}}class H extends p{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function O(t,e){return new y(i=>{const n=new h;let s=0;return n.add(e.schedule(function(){s!==t.length?(i.next(t[s++]),i.closed||n.add(this.schedule())):i.complete()})),n})}function B(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new y(i=>{const n=new h;return n.add(e.schedule(()=>{const s=t[m]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if(D(t))return function(t,e){return new y(i=>{const n=new h;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if(R(t))return O(t,e);if(function(t){return t&&"function"==typeof t[x]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new y(i=>{const n=new h;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[x](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof y?t:new y(P(t))}function j(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(j((i,n)=>B(t(i,n)).pipe(I((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new Y(t,i)))}class Y{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new N(t,this.project,this.concurrent))}}class N extends z{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function K(t=Number.POSITIVE_INFINITY){return j(_,t)}function U(t,e){return e?O(t,e):new y(M(t))}function V(...t){let e=Number.POSITIVE_INFINITY,i=null,n=t[t.length-1];return C(n)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof n&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof y?t[0]:K(e)(U(t,i))}function q(){return function(t){return t.lift(new $(t))}}class ${constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new W(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class W extends p{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}class G extends y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new Z(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return q()(this)}}const J=(()=>{const t=G.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Z extends A{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function Q(){return new k}function X(){return t=>{return q()((e=Q,function(t){let i;i="function"==typeof e?e:function(){return e};const n=Object.create(t,J);return n.source=t,n.subjectFactory=i,n})(t));var e}}function tt(t){for(let e in t)if(t[e]===tt)return e;throw Error("Could not find renamed property on target object.")}function et(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function it(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(it).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function nt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const st=tt({__forward_ref__:tt});function rt(t){return t.__forward_ref__=rt,t.toString=function(){return it(this())},t}function ot(t){return at(t)?t():t}function at(t){return"function"==typeof t&&t.hasOwnProperty(st)&&t.__forward_ref__===rt}class ct extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function ut(t){return"string"==typeof t?t:null==t?"":String(t)}function lt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ut(t)}function ht(t,e){const i=e?` in ${e}`:"";throw new ct("201",`No provider for ${lt(t)} found${i}`)}function dt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ft(t){return{providers:t.providers||[],imports:t.imports||[]}}function pt(t){return gt(t,_t)||gt(t,wt)}function gt(t,e){return t.hasOwnProperty(e)?t[e]:null}function mt(t){return t&&(t.hasOwnProperty(yt)||t.hasOwnProperty(bt))?t[yt]:null}const _t=tt({"\u0275prov":tt}),yt=tt({"\u0275inj":tt}),wt=tt({ngInjectableDef:tt}),bt=tt({ngInjectorDef:tt});var vt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let At;function kt(t){const e=At;return At=t,e}function Tt(t,e,i){const n=pt(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&vt.Optional?null:void 0!==e?e:void ht(it(t),"Injector")}function Ct(t){return{toString:t}.toString()}var St=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Mt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const Et="undefined"!=typeof globalThis&&globalThis,xt="undefined"!=typeof window&&window,Rt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Dt="undefined"!=typeof global&&global,Pt=Et||Dt||xt||Rt,Lt={},zt=[],It=tt({"\u0275cmp":tt}),Ft=tt({"\u0275dir":tt}),Ht=tt({"\u0275pipe":tt}),Ot=tt({"\u0275mod":tt}),Bt=tt({"\u0275loc":tt}),jt=tt({"\u0275fac":tt}),Yt=tt({__NG_ELEMENT_ID__:tt});let Nt=0;function Kt(t){return Ct(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===St.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||zt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Mt.Emulated,id:"c",styles:t.styles||zt,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,r=t.pipes;return i.id+=Nt++,i.inputs=Wt(t.inputs,e),i.outputs=Wt(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(Ut):null,i.pipeDefs=r?()=>("function"==typeof r?r():r).map(Vt):null,i})}function Ut(t){return Zt(t)||function(t){return t[Ft]||null}(t)}function Vt(t){return function(t){return t[Ht]||null}(t)}const qt={};function $t(t){return Ct(()=>{const e={type:t.type,bootstrap:t.bootstrap||zt,declarations:t.declarations||zt,imports:t.imports||zt,exports:t.exports||zt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(qt[t.id]=t.type),e})}function Wt(t,e){if(null==t)return Lt;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),i[s]=n,e&&(e[s]=r)}return i}const Gt=Kt;function Jt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Zt(t){return t[It]||null}function Qt(t,e){const i=t[Ot]||null;if(!i&&!0===e)throw new Error(`Type ${it(t)} does not have '\u0275mod' property.`);return i}const Xt=20,te=10;function ee(t){return Array.isArray(t)&&"object"==typeof t[1]}function ie(t){return Array.isArray(t)&&!0===t[1]}function ne(t){return 0!=(8&t.flags)}function se(t){return 2==(2&t.flags)}function re(t){return 1==(1&t.flags)}function oe(t){return null!==t.template}function ae(t,e){return t.hasOwnProperty(jt)?t[jt]:null}class ce{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ue(){return le}function le(t){return t.type.prototype.ngOnChanges&&(t.setInput=de),he}function he(){const t=fe(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===Lt)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function de(t,e,i,n){const s=fe(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Lt,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[i],c=o[a];r[a]=new ce(c&&c.currentValue,e,o===Lt),t[n]=e}function fe(t){return t.__ngSimpleChanges__||null}ue.ngInherit=!0;const pe="http://www.w3.org/2000/svg";let ge;function me(){return void 0!==ge?ge:"undefined"!=typeof document?document:void 0}function _e(t){return!!t.listen}const ye={createRenderer:(t,e)=>me()};function we(t){for(;Array.isArray(t);)t=t[0];return t}function be(t,e){return we(e[t])}function ve(t,e){return we(e[t.index])}function Ae(t,e){return t.data[e]}function ke(t,e){return t[e]}function Te(t,e){const i=e[t];return ee(i)?i:i[0]}function Ce(t){return 4==(4&t[2])}function Se(t){return 128==(128&t[2])}function Me(t,e){return null==e?null:t[e]}function Ee(t){t[18]=0}function xe(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Re={lFrame:ei(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function De(){return Re.bindingsEnabled}function Pe(){return Re.lFrame.lView}function Le(){return Re.lFrame.tView}function ze(t){return Re.lFrame.contextLView=t,t[8]}function Ie(){let t=Fe();for(;null!==t&&64===t.type;)t=t.parent;return t}function Fe(){return Re.lFrame.currentTNode}function He(t,e){const i=Re.lFrame;i.currentTNode=t,i.isParent=e}function Oe(){return Re.lFrame.isParent}function Be(){Re.lFrame.isParent=!1}function je(){return Re.isInCheckNoChangesMode}function Ye(t){Re.isInCheckNoChangesMode=t}function Ne(){const t=Re.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ke(){return Re.lFrame.bindingIndex}function Ue(){return Re.lFrame.bindingIndex++}function Ve(t){const e=Re.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function qe(t,e){const i=Re.lFrame;i.bindingIndex=i.bindingRootIndex=t,$e(e)}function $e(t){Re.lFrame.currentDirectiveIndex=t}function We(t){const e=Re.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Ge(){return Re.lFrame.currentQueryIndex}function Je(t){Re.lFrame.currentQueryIndex=t}function Ze(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Qe(t,e,i){if(i&vt.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&vt.Host||(n=Ze(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=Re.lFrame=ti();return n.currentTNode=e,n.lView=t,!0}function Xe(t){const e=ti(),i=t[1];Re.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function ti(){const t=Re.lFrame,e=null===t?null:t.child;return null===e?ei(t):e}function ei(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function ii(){const t=Re.lFrame;return Re.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ni=ii;function si(){const t=ii();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ri(){return Re.lFrame.selectedIndex}function oi(t){Re.lFrame.selectedIndex=t}function ai(){const t=Re.lFrame;return Ae(t.tView,t.selectedIndex)}function ci(){Re.lFrame.currentNamespace=pe}function ui(){Re.lFrame.currentNamespace=null}function li(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}const mi=-1;class _i{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function yi(t,e,i){const n=_e(t);let s=0;for(;se){o=r-1;break}}}for(;r>16,n=e;for(;i>0;)n=n[15],i--;return n}let Si=!0;function Mi(t){const e=Si;return Si=t,e}let Ei=0;function xi(t,e){const i=Di(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Ri(n.data,t),Ri(e,null),Ri(n.blueprint,null));const s=Pi(t,e),r=t.injectorIndex;if(ki(s)){const t=Ti(s),i=Ci(s,e),n=i[1].data;for(let s=0;s<8;s++)e[r+s]=i[t+s]|n[t+s]}return e[r+8]=s,r}function Ri(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Di(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Pi(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return mi;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return mi}function Li(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(Yt)&&(n=i[Yt]),null==n&&(n=i[Yt]=Ei++);const s=255&n;e.data[t+(s>>5)]|=1<=0?255&e:Oi:e}(i);if("function"==typeof r){if(!Qe(e,t,n))return n&vt.Host?zi(s,i,n):Ii(e,i,n,s);try{const t=r(n);if(null!=t||n&vt.Optional)return t;ht(i)}finally{ni()}}else if("number"==typeof r){let s=null,o=Di(t,e),a=mi,c=n&vt.Host?e[16][6]:null;for((-1===o||n&vt.SkipSelf)&&(a=-1===o?Pi(t,e):e[o+8],a!==mi&&Ki(n,!1)?(s=e[1],o=Ti(a),e=Ci(a,e)):o=-1);-1!==o;){const t=e[1];if(Ni(r,o,t.data)){const t=Bi(o,e,i,s,n,c);if(t!==Hi)return t}a=e[o+8],a!==mi&&Ki(n,e[1].data[o+8]===c)&&Ni(r,o,e)?(s=t,o=Ti(a),e=Ci(a,e)):o=-1}}}return Ii(e,i,n,s)}const Hi={};function Oi(){return new Ui(Ie(),Pe())}function Bi(t,e,i,n,s,r){const o=e[1],a=o.data[t+8],c=ji(a,o,i,null==n?se(a)&&Si:n!=o&&0!=(3&a.type),s&vt.Host&&r===a);return null!==c?Yi(e,o,c,a):Hi}function ji(t,e,i,n,s){const r=t.providerIndexes,o=e.data,a=1048575&r,c=t.directiveStart,u=r>>20,l=s?a+u:t.directiveEnd;for(let h=n?a:a+u;h=c&&t.type===i)return h}if(s){const t=o[c];if(t&&oe(t)&&t.type===i)return c}return null}function Yi(t,e,i,n){let s=t[i];const r=e.data;if(s instanceof _i){const o=s;o.resolving&&function(t,e){throw new ct("200",`Circular dependency in DI detected for ${t}`)}(lt(r[i]));const a=Mi(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?kt(o.injectImpl):null;Qe(t,n,vt.Default);try{s=t[i]=o.factory(void 0,r,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(n){const n=le(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),r&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,r),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,r))}(i,r[i],e)}finally{null!==c&&kt(c),Mi(a),o.resolving=!1,ni()}}return s}function Ni(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[jt]||qi(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[jt]||qi(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function qi(t){return at(t)?()=>{const e=qi(ot(t));return e&&e()}:ae(t)}function $i(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty(Wi)?t[Wi]:Object.defineProperty(t,Wi,{value:[]})[Wi];for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class Ji{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=dt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Zi=new Ji("AnalyzeForEntryComponents"),Qi=Function;function Xi(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?tn(t,e):e(t))}function en(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function nn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function sn(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function on(t,e){const i=an(t,e);if(i>=0)return t[1|i]}function an(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),r=t[i<<1];if(e===r)return i<<1;r>e?s=i:n=i+1}return~(s<<1)}(t,e)}const cn={},un=/\n/gm,ln="__source",hn=tt({provide:String,useValue:tt});let dn;function fn(t){const e=dn;return dn=t,e}function pn(t,e=vt.Default){if(void 0===dn)throw new Error("inject() must be called from an injection context");return null===dn?Tt(t,void 0,e):dn.get(t,e&vt.Optional?null:void 0,e)}function gn(t,e=vt.Default){return(At||pn)(ot(t),e)}const mn=gn;function _n(t){const e=[];for(let i=0;i({token:t})),-1),bn=yn(Gi("Optional"),8),vn=yn(Gi("SkipSelf"),4);let An,kn;function Tn(t){var e;return(null===(e=function(){if(void 0===An&&(An=null,Pt.trustedTypes))try{An=Pt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return An}())||void 0===e?void 0:e.createHTML(t))||t}function Cn(t){var e;return(null===(e=function(){if(void 0===kn&&(kn=null,Pt.trustedTypes))try{kn=Pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return kn}())||void 0===e?void 0:e.createHTML(t))||t}class Sn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Mn extends Sn{getTypeName(){return"HTML"}}class En extends Sn{getTypeName(){return"Style"}}class xn extends Sn{getTypeName(){return"Script"}}class Rn extends Sn{getTypeName(){return"URL"}}class Dn extends Sn{getTypeName(){return"ResourceURL"}}function Pn(t){return t instanceof Sn?t.changingThisBreaksApplicationSecurity:t}function Ln(t,e){const i=zn(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function zn(t){return t instanceof Sn&&t.getTypeName()||null}class In{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Tn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Fn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Tn(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Tn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0Bn(t.trim())).join(", ")),this.buf.push(" ",e,'="',ts(o),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();qn.hasOwnProperty(e)&&!Nn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(ts(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Qn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xn=/([^\#-~ |!])/g;function ts(t){return t.replace(/&/g,"&").replace(Qn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Xn,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let es;function is(t,e){let i=null;try{es=es||function(t){const e=new Fn(t);return function(){try{return!!(new window.DOMParser).parseFromString(Tn(""),"text/html")}catch(t){return!1}}()?new In(e):e}(t);let n=e?String(e):"";i=es.getInertBodyElement(n);let s=5,r=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=r,r=i.innerHTML,i=es.getInertBodyElement(n)}while(n!==r);return Tn((new Zn).sanitizeChildren(ns(i)||i))}finally{if(i){const t=ns(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function ns(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ss=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function rs(t){const e=as();return e?Cn(e.sanitize(ss.HTML,t)||""):Ln(t,"HTML")?Cn(Pn(t)):is(me(),ut(t))}function os(t){const e=as();return e?e.sanitize(ss.URL,t)||"":Ln(t,"URL")?Pn(t):Bn(ut(t))}function as(){const t=Pe();return t&&t[12]}function cs(t,e){t.__ngContext__=e}function us(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function ls(t){return t.ngDebugContext}function hs(t){return t.ngOriginalError}function ds(t,...e){t.error(...e)}class fs{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||ds}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?ls(t)?ls(t):this._findContext(hs(t)):null}_findOriginalError(t){let e=hs(t);for(;e&&hs(e);)e=hs(e);return e}}const ps=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pt))();function gs(t){return t.ownerDocument.defaultView}function ms(t){return t.ownerDocument.body}function _s(t){return t instanceof Function?t():t}var ys=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function ws(t,e){return(void 0)(t,e)}function bs(t){const e=t[3];return ie(e)?e[3]:e}function vs(t){return ks(t[13])}function As(t){return ks(t[4])}function ks(t){for(;null!==t&&!ie(t);)t=t[4];return t}function Ts(t,e,i,n,s){if(null!=n){let r,o=!1;ie(n)?r=n:ee(n)&&(o=!0,n=n[0]);const a=we(n);0===t&&null!==i?null==s?Ps(e,i,a):Ds(e,i,a,s||null,!0):1===t&&null!==i?Ds(e,i,a,s||null,!0):2===t?function(t,e,i){const n=zs(t,e);n&&function(t,e,i,n){_e(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,i,n,s){const r=i[7];r!==we(i)&&Ts(e,t,n,r,s);for(let o=te;o0&&(t[i-1][4]=n[4]);const o=nn(t,te+e);Ns(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function Es(t,e){if(!(256&e[2])){const i=e[11];_e(i)&&i.destroyNode&&Ns(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return xs(t[1],t);for(;e;){let i=null;if(ee(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)ee(e)&&xs(e[1],e),e=e[3];null===e&&(e=t),ee(e)&&xs(e[1],e),i=e&&e[4]}e=i}}(e)}}function xs(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=c]():n[s=-c].unsubscribe(),r+=2}else{const t=n[s=i[r+1]];i[r].call(t)}if(null!==n){for(let t=s+1;tr?"":s[l+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==qs(e,u,0)||2&n&&u!==t){if(Qs(n))return!1;o=!0}}}}else{if(!o&&!Qs(n)&&!Qs(c))return!1;if(o&&Qs(c))continue;o=!1,n=c|1&n}}return Qs(n)||o}function Qs(t){return 0==(1&t)}function Xs(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+o:4&n&&(s+=" "+o);else""===s||Qs(o)||(e+=ir(r,s),s=""),n=o,r=r||!Qs(n);i++}return""!==s&&(e+=ir(r,s)),e}const sr={};function rr(t){or(Le(),Pe(),ri()+t,je())}function or(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&hi(e,n,i)}else{const n=t.preOrderHooks;null!==n&&di(e,n,0,i)}oi(i)}function ar(t,e){return t<<17|e<<2}function cr(t){return t>>17&32767}function ur(t){return 2|t}function lr(t){return(131068&t)>>2}function hr(t,e){return-131069&t|e<<2}function dr(t){return 1|t}function fr(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;nXt&&or(t,e,Xt,je()),i(n,s)}finally{oi(r)}}function vr(t,e,i){if(ne(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=r&&i.push(r),i.push(n,s,o)}}function Dr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Pr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Lr(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&Yr(i)}}function Yr(t){for(let i=vs(t);null!==i;i=As(i))for(let t=te;t0&&Yr(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&Yr(n)}}function Nr(t,e){const i=Te(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function Gr(t){return t[7]||(t[7]=[])}function Jr(t){return t.cleanup||(t.cleanup=[])}function Zr(t,e,i){return(null===t||oe(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function Qr(t,e){const i=t[9],n=i?i.get(fs,null):null;n&&n.handleError(e)}function Xr(t,e,i,n,s){for(let r=0;rthis.processProvider(i,t,e)),tn([t],t=>this.processInjectorType(t,[],s)),this.records.set(io,po(void 0,this));const r=this.records.get(so);this.scope=null!=r?r.value:null,this.source=n||("object"==typeof t?null:it(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=cn,i=vt.Default){this.assertNotDestroyed();const n=fn(this);try{if(!(i&vt.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Ji)&&pt(t);e=i&&this.injectableDefInScope(i)?po(ho(t),ro):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&vt.Self?co():this.parent).get(t,e=i&vt.Optional&&e===cn?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(it(t)),n)throw r;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e[ln]&&s.unshift(e[ln]),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=it(e);if(Array.isArray(e))s=e.map(it).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):it(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(un,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{fn(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(it(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=ot(t)))return!1;let n=mt(t);const s=null==n&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==i.indexOf(r);if(void 0!==s&&(n=mt(s)),null==n)return!1;if(null!=n.imports&&!o){let t;i.push(r);try{tn(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||zt))}}this.injectorDefTypes.add(r);const a=ae(r)||(()=>new r);this.records.set(r,po(a,ro));const c=n.providers;if(null!=c&&!o){const e=t;tn(c,t=>this.processProvider(t,e,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=mo(t=ot(t))?t:ot(t&&t.provide);const s=function(t,e,i){return go(t)?po(void 0,t.useValue):po(fo(t),ro)}(t);if(mo(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=po(void 0,ro,!0),e.factory=()=>_n(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===ro&&(e.value=oo,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=ot(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function ho(t){const e=pt(t),i=null!==e?e.factory:ae(t);if(null!==i)return i;if(t instanceof Ji)throw new Error(`Token ${it(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=sn(e,"?");throw new Error(`Can't resolve all parameters for ${it(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[_t]||t[wt]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function fo(t,e,i){let n;if(mo(t)){const e=ot(t);return ae(e)||ho(e)}if(go(t))n=()=>ot(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(..._n(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>gn(ot(t.useExisting));else{const e=ot(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ae(e)||ho(e);n=()=>new e(..._n(t.deps))}var s;return n}function po(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function go(t){return null!==t&&"object"==typeof t&&hn in t}function mo(t){return"function"==typeof t}const _o=function(t,e,i){return function(t,e=null,i=null,n){const s=uo(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let yo=(()=>{class t{static create(t,e){return Array.isArray(t)?_o(t,e,""):_o(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=cn,t.NULL=new no,t.\u0275prov=dt({token:t,providedIn:"any",factory:()=>gn(io)}),t.__NG_ELEMENT_ID__=-1,t})();function wo(t,e){li(us(t)[1],Ie())}function bo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s;if(oe(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=vo(t.inputs),e.declaredInputs=vo(t.declaredInputs),e.outputs=vo(t.outputs);const i=s.hostBindings;i&&To(t,i);const r=s.viewQuery,o=s.contentQueries;if(r&&Ao(t,r),o&&ko(t,o),et(t.inputs,s.inputs),et(t.declaredInputs,s.declaredInputs),et(t.outputs,s.outputs),oe(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=vi(s.hostAttrs,i=vi(i,s.hostAttrs))}}(n)}function vo(t){return t===Lt?{}:t===zt?[]:t}function Ao(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function ko(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function To(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let Co=null;function So(){if(!Co){const t=Pt.Symbol;if(t&&t.iterator)Co=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(we(t[n.index])):n.index;if(_e(i)){let o=null;if(!a&&c&&(o=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let r=0;ri?t[i]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,n.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,h=!1;else{r=ta(n,e,0,r,!1);const t=i.listen(f,s,r);l.push(r,t),u&&u.push(s,g,p,p+1)}}else r=ta(n,e,0,r,!0),f.addEventListener(s,r,o),l.push(r),u&&u.push(s,g,p,o)}else r=ta(n,e,0,r,!1);const d=n.outputs;let f;if(h&&null!==d&&(f=d[s])){const t=f.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,Re.lFrame.contextLView))[8]}(t)}function ia(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const ua={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function la(t){return t.substring(ua.key,ua.keyEnd)}function ha(t,e){const i=ua.textEnd;return i===e?-1:(e=ua.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,ua.key=e,i),da(t,e,i))}function da(t,e,i){for(;e=0;i=ha(e,i))rn(t,la(e),!0)}function _a(t,e,i,n){const s=Pe(),r=Le(),o=Ve(2);r.firstUpdatePass&&ba(r,t,o,n),e!==sr&&Do(s,o,e)&&ka(r,r.data[ri()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=it(Pn(t)))),t}(e,i),n,o)}function ya(t,e,i,n){const s=Le(),r=Ve(2);s.firstUpdatePass&&ba(s,null,r,n);const o=Pe();if(i!==sr&&Do(o,r,i)){const a=s.data[ri()];if(Sa(a,n)&&!wa(s,r)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=nt(t,i||"")),Bo(s,a,o,i,n)}else!function(t,e,i,n,s,r,o,a){s===sr&&(s=zt);let c=0,u=0,l=0=t.expandoStartIndex}function ba(t,e,i,n){const s=t.data;if(null===s[i+1]){const r=s[ri()],o=wa(t,i);Sa(r,n)&&null===e&&!o&&(e=!1),e=function(t,e,i,n){const s=We(t);let r=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=Aa(i=va(null,t,e,i,n),e.attrs,n),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(i=va(s,t,e,i,n),null===r){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==lr(n))return t[cr(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=va(null,t,e,i[1],n),i=Aa(i,e.attrs,n),function(t,e,i,n){t[cr(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else r=function(t,e,i){let n;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(l=!0)}else u=i;if(s)if(0!==c){const e=cr(t[a+1]);t[n+1]=ar(e,a),0!==e&&(t[e+1]=hr(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=ar(a,0),0!==a&&(t[a+1]=hr(t[a+1],n)),a=n;else t[n+1]=ar(c,0),0===a?a=n:t[c+1]=hr(t[c+1],n),c=n;l&&(t[n+1]=ur(t[n+1])),aa(t,u,n,!0),aa(t,u,n,!1),function(t,e,i,n,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&an(r,e)>=0&&(i[n+1]=dr(i[n+1]))}(e,u,t,n,r),o=ar(a,c),r?e.classBindings=o:e.styleBindings=o}(s,r,e,i,o,n)}}function va(t,e,i,n,s){let r=null;const o=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),c=r?e[1]:e,u=null===c;let l=i[s+1];l===sr&&(l=u?zt:void 0);let h=u?on(l,n):c===n?l:void 0;if(r&&!Ca(h)&&(h=on(e,n)),Ca(h)&&(a=h,o))return a;const d=t[s+1];s=o?cr(d):lr(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=on(t,n))}return a}function Ca(t){return void 0!==t}function Sa(t,e){return 0!=(t.flags&(e?16:32))}function Ma(t,e=""){const i=Pe(),n=Le(),s=t+Xt,r=n.firstCreatePass?gr(n,s,1,e,null):n.data[s],o=i[s]=function(t,e){return _e(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Hs(n,i,o,r),He(r,!1)}function Ea(t){return xa("",t,""),Ea}function xa(t,e,i){const n=Pe(),s=zo(n,t,e,i);return s!==sr&&to(n,ri(),s),xa}function Ra(t,e,i,n,s){const r=Pe(),o=function(t,e,i,n,s,r){const o=Po(t,Ke(),i,s);return Ve(2),o?e+ut(i)+n+ut(s)+r:sr}(r,t,e,i,n,s);return o!==sr&&to(r,ri(),o),Ra}function Da(t,e,i,n,s,r,o,a,c,u,l){const h=Pe(),d=function(t,e,i,n,s,r,o,a,c,u,l,h){const d=Ke();let f=function(t,e,i,n,s,r){const o=Po(t,e,i,n);return Po(t,e+2,s,r)||o}(t,d,i,s,o,c);return f=Do(t,d+4,l)||f,Ve(5),f?e+ut(i)+n+ut(s)+r+ut(o)+a+ut(c)+u+ut(l)+h:sr}(h,t,e,i,n,s,r,o,a,c,u,l);return d!==sr&&to(h,ri(),d),Da}function Pa(t,e,i){ya(rn,ma,zo(Pe(),t,e,i),!0)}function La(t,e,i){const n=Pe();return Do(n,Ue(),e)&&Er(Le(),ai(),n,t,e,n[11],i,!0),La}function za(t,e,i){const n=Pe();if(Do(n,Ue(),e)){const s=Le(),r=ai();Er(s,r,n,t,e,Zr(We(s.data),r,n),i,!0)}return za}const Ia=void 0;var Fa=["en",[["a","p"],["AM","PM"],Ia],[["AM","PM"],Ia,Ia],[["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"]],Ia,[["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"]],Ia,[["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}",Ia,"{1} 'at' {0}",Ia],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Ha={};function Oa(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=Ba(e);if(i)return i;const n=e.split("-")[0];if(i=Ba(n),i)return i;if("en"===n)return Fa;throw new Error(`Missing locale data for the locale "${t}".`)}function Ba(t){return t in Ha||(Ha[t]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[t]),Ha[t]}var ja=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const Ya="en-US";let Na=Ya;function Ka(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(Na=t.toLowerCase().replace(/_/g,"-"))}function Ua(t,e,i,n,s){if(t=ot(t),Array.isArray(t))for(let r=0;r>20;if(mo(t)||!t.multi){const n=new _i(c,s,Ho),f=$a(a,e,s?l:l+d,h);-1===f?(Li(xi(u,o),r,a),Va(r,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(n),o.push(n)):(i[f]=n,o[f]=n)}else{const f=$a(a,e,l+d,h),p=$a(a,e,l,l+d),g=f>=0&&i[f],m=p>=0&&i[p];if(s&&!m||!s&&!g){Li(xi(u,o),r,a);const l=function(t,e,i,n,s){const r=new _i(t,i,Ho);return r.multi=[],r.index=e,r.componentProviders=0,qa(r,s,n&&!i),r}(s?Ga:Wa,i.length,s,n,c);!s&&m&&(i[p].providerFactory=l),Va(r,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(l),o.push(l)}else Va(r,t,f>-1?f:p,qa(i[s?p:f],c,!s&&n));!s&&n&&m&&i[p].componentProviders++}}}function Va(t,e,i,n){const s=mo(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(i);-1===t?o.push(i,[n,r]):o[t+1].push(n,r)}else o.push(i,r)}}}function qa(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function $a(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=Le();if(n.firstCreatePass){const s=oe(t);Ua(i,n.data,n.blueprint,s,!0),Ua(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class Qa{}class Xa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${it(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let tc=(()=>{class t{}return t.NULL=new Xa,t})();function ec(...t){}function ic(t,e){return new sc(ve(t,e))}const nc=function(){return ic(Ie(),Pe())};let sc=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=nc,t})();function rc(t){return t instanceof sc?t.nativeElement:t}class oc{}let ac=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>cc(),t})();const cc=function(){const t=Pe(),e=Te(Ie().index,t);return function(t){return t[11]}(ee(e)?e:t)};let uc=(()=>{class t{}return t.\u0275prov=dt({token:t,providedIn:"root",factory:()=>null}),t})();class lc{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const hc=new lc("12.0.5");class dc{constructor(){}supports(t){return Eo(t)}create(t){return new pc(t)}}const fc=(t,e)=>e;class pc{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||fc}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const r=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(r&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new gc(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new _c),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _c),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class gc{constructor(t,e){this.item=t,this.trackById=e,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 mc{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class _c{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new mc,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function yc(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;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(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new vc(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class vc{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Ac(){return new kc([new dc])}let kc=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Ac()),deps:[[t,new vn,new bn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=dt({token:t,providedIn:"root",factory:Ac}),t})();function Tc(){return new Cc([new wc])}let Cc=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Tc()),deps:[[t,new vn,new bn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=dt({token:t,providedIn:"root",factory:Tc}),t})();function Sc(t,e,i,n,s=!1){for(;null!==i;){const r=e[i.index];if(null!==r&&n.push(we(r)),ie(r))for(let t=te;t-1&&(Ms(t,i),nn(e,i))}this._attachedToViewContainer=!1}Es(this._lView[1],this._lView)}onDestroy(t){Sr(this._lView[1],this._lView,null,t)}markForCheck(){Ur(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Vr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Ye(!0);try{Vr(t,e,i)}finally{Ye(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Ns(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ec extends Mc{constructor(t){super(t),this._view=t}detectChanges(){qr(this._view)}checkNoChanges(){!function(t){Ye(!0);try{qr(t)}finally{Ye(!1)}}(this._view)}get context(){return null}}const xc=function(t){return function(t,e,i){if(se(t)&&!i){const i=Te(t.index,e);return new Mc(i,i)}return 47&t.type?new Mc(e[16],e):null}(Ie(),Pe(),16==(16&t))};let Rc=(()=>{class t{}return t.__NG_ELEMENT_ID__=xc,t})();const Dc=[new wc],Pc=new kc([new dc]),Lc=new Cc(Dc),zc=function(){return Oc(Ie(),Pe())};let Ic=(()=>{class t{}return t.__NG_ELEMENT_ID__=zc,t})();const Fc=Ic,Hc=class extends Fc{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=pr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),_r(e,i,t),new Mc(i)}};function Oc(t,e){return 4&t.type?new Hc(e,t,ic(t,e)):null}class Bc{}class jc{}const Yc=function(){return $c(Ie(),Pe())};let Nc=(()=>{class t{}return t.__NG_ELEMENT_ID__=Yc,t})();const Kc=Nc,Uc=class extends Kc{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return ic(this._hostTNode,this._hostLView)}get injector(){return new Ui(this._hostTNode,this._hostLView)}get parentInjector(){const t=Pi(this._hostTNode,this._hostLView);if(ki(t)){const e=Ci(t,this._hostLView),i=Ti(t);return new Ui(e[1].data[i+8],e)}return new Ui(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Vc(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-te}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const r=i||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(Bc,null);t&&(s=t)}const o=t.create(r,n,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const i=t._lView,n=i[1];if(ie(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new Uc(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,i,n){const s=te+n,r=i.length;n>0&&(i[s-1][4]=e),nps});class Qc extends Qa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(nr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Jc(this.componentDef.inputs)}get outputs(){return Jc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const r=t.get(i,Wc,s);return r!==Wc||n===Wc?r:e.get(i,n,s)}}}(t,n.injector):t,r=s.get(oc,ye),o=s.get(uc,null),a=r.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function(t,e,i){if(_e(t))return t.selectRootElement(e,i===Mt.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):Cs(r.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?pe:"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,h={components:[],scheduler:ps,clean:Wr,playerHandler:null,flags:0},d=Cr(0,null,null,1,0,null,null,null,null,null),f=pr(null,d,h,l,null,null,r,a,o,s);let p,g;Xe(f);try{const t=function(t,e,i,n,s,r){const o=i[1];i[20]=t;const a=gr(o,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(eo(a,c,!0),null!==t&&(yi(s,t,c),null!==a.classes&&Vs(s,t,a.classes),null!==a.styles&&Us(s,t,a.styles)));const u=n.createRenderer(t,e),l=pr(i,Tr(e),null,e.onPush?64:16,i[20],a,n,u,null,null);return o.firstCreatePass&&(Li(xi(a,i),o,e.type),Pr(o,a),zr(a,i.length,1)),Kr(i,l),i[20]=l}(u,this.componentDef,f,r,a);if(u)if(i)yi(a,u,["ng-version",hc.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&Vs(a,u,e.join(" "))}if(g=Ae(d,Xt),void 0!==e){const t=g.projection=[];for(let i=0;it(o,e)),e.contentQueries){const t=Ie();e.contentQueries(1,o,t.directiveStart)}const a=Ie();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(oi(a.index),Rr(i[1],a,0,a.directiveStart,a.directiveEnd,e),Dr(e,o)),o}(t,this.componentDef,f,h,[wo]),_r(d,f,null)}finally{si()}return new Xc(this.componentType,p,ic(g,f),f,g)}}class Xc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Ec(n),this.componentType=t}get injector(){return new Ui(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const tu=new Map;class eu extends Bc{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Gc(this);const i=Qt(t),n=t[Bt]||null;n&&Ka(n),this._bootstrapComponents=_s(i.bootstrap),this._r3Injector=uo(t,e,[{provide:Bc,useValue:this},{provide:tc,useValue:this.componentFactoryResolver}],it(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=yo.THROW_IF_NOT_FOUND,i=vt.Default){return t===yo||t===Bc||t===io?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class iu extends jc{constructor(t){super(),this.moduleType=t,null!==Qt(t)&&function(t){const e=new Set;!function t(i){const n=Qt(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${it(e)} vs ${it(e.name)}`)}(s,tu.get(s),i),tu.set(s,i));const r=_s(n.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new eu(this.moduleType,t)}}function nu(t,e,i){const n=Ne()+t,s=Pe();return s[n]===sr?Ro(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function su(t,e,i,n){return au(Pe(),Ne(),t,e,i,n)}function ru(t,e,i,n,s){return cu(Pe(),Ne(),t,e,i,n,s)}function ou(t,e){const i=t[e];return i===sr?void 0:i}function au(t,e,i,n,s,r){const o=e+i;return Do(t,o,s)?Ro(t,o+1,r?n.call(r,s):n(s)):ou(t,o+1)}function cu(t,e,i,n,s,r,o){const a=e+i;return Po(t,a,s,r)?Ro(t,a+2,o?n.call(o,s,r):n(s,r)):ou(t,a+2)}function uu(t,e){const i=Le();let n;const s=t+Xt;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new ct("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const r=n.factory||(n.factory=ae(n.type)),o=kt(Ho);try{const t=Mi(!1),e=r();return Mi(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Pe(),s,e),e}finally{kt(o)}}function lu(t,e,i){const n=t+Xt,s=Pe(),r=ke(s,n);return pu(s,fu(s,n)?au(s,Ne(),e,r.transform,i,r):r.transform(i))}function hu(t,e,i,n){const s=t+Xt,r=Pe(),o=ke(r,s);return pu(r,fu(r,s)?cu(r,Ne(),e,o.transform,i,n,o):o.transform(i,n))}function du(t,e,i,n,s){const r=t+Xt,o=Pe(),a=ke(o,r);return pu(o,fu(o,r)?function(t,e,i,n,s,r,o,a){const c=e+i;return function(t,e,i,n,s){const r=Po(t,e,i,n);return Do(t,e+2,s)||r}(t,c,s,r,o)?Ro(t,c+3,a?n.call(a,s,r,o):n(s,r,o)):ou(t,c+3)}(o,Ne(),e,a.transform,i,n,s,a):a.transform(i,n,s))}function fu(t,e){return t[1].data[e].pure}function pu(t,e){return Mo.isWrapped(e)&&(e=Mo.unwrap(e),t[Ke()]=sr),e}function gu(t){return e=>{setTimeout(t,void 0,e)}}const mu=class extends k{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var n,s,r;let o=t,a=e||(()=>null),c=i;if(t&&"object"==typeof t){const e=t;o=null===(n=e.next)||void 0===n?void 0:n.bind(e),a=null===(s=e.error)||void 0===s?void 0:s.bind(e),c=null===(r=e.complete)||void 0===r?void 0:r.bind(e)}this.__isAsync&&(a=gu(a),o&&(o=gu(o)),c&&(c=gu(c)));const u=super.subscribe({next:o,error:a,complete:c});return t instanceof h&&t.add(u),u}};function _u(){return this._results[So()]()}class yu{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=So(),i=yu.prototype;i[e]||(i[e]=_u)}get changes(){return this._changes||(this._changes=new mu)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const n=Xi(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(o[t/2]);else{const s=r[t+1],o=e[-i];for(let t=te;t{class t{constructor(t){this.appInits=t,this.resolve=ec,this.reject=ec,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e.subscribe({complete:t,error:i})});t.push(i)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(gn(Fu,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Ou=new Ji("AppId"),Bu={provide:Ou,useFactory:function(){return`${ju()}${ju()}${ju()}`},deps:[]};function ju(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Yu=new Ji("Platform Initializer"),Nu=new Ji("Platform ID"),Ku=new Ji("appBootstrapListener");let Uu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Vu=new Ji("LocaleId"),qu=new Ji("DefaultCurrencyCode");class $u{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Wu=function(t){return new iu(t)},Gu=Wu,Ju=function(t){return Promise.resolve(Wu(t))},Zu=function(t){const e=Wu(t),i=_s(Qt(t).declarations).reduce((t,e)=>{const i=Zt(e);return i&&t.push(new Qc(i)),t},[]);return new $u(e,i)},Qu=Zu,Xu=function(t){return Promise.resolve(Zu(t))};let tl=(()=>{class t{constructor(){this.compileModuleSync=Gu,this.compileModuleAsync=Ju,this.compileModuleAndAllComponentsSync=Qu,this.compileModuleAndAllComponentsAsync=Xu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const el=(()=>Promise.resolve(0))();function il(t){"undefined"==typeof Zone?el.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class nl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new mu(!1),this.onMicrotaskEmpty=new mu(!1),this.onStable=new mu(!1),this.onError=new mu(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=!i&&e,n.shouldCoalesceRunChangeDetection=i,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=Pt.requestAnimationFrame,e=Pt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Pt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ol(t),t.isCheckStableRunning=!0,rl(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ol(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,s,r,o,a)=>{try{return al(t),i.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),cl(t)}},onInvoke:(i,n,s,r,o,a,c)=>{try{return al(t),i.invoke(s,r,o,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),cl(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,ol(t),rl(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!nl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(nl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+n,t,sl,ec,ec);try{return s.runTask(r,e,i)}finally{s.cancelTask(r)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const sl={};function rl(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function ol(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function al(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function cl(t){t._nesting--,rl(t)}class ul{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new mu,this.onMicrotaskEmpty=new mu,this.onStable=new mu,this.onError=new mu}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let ll=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{nl.assertNotInAngularZone(),il(()=>{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())il(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!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(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(gn(nl))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),hl=(()=>{class t{constructor(){this._applications=new Map,pl.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return pl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class dl{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let fl,pl=new dl,gl=!0,ml=!1;function _l(){return ml=!0,gl}const yl=new Ji("AllowMultipleToken");class wl{constructor(t,e){this.name=t,this.token=e}}function bl(t,e,i=[]){const n=`Platform: ${e}`,s=new Ji(n);return(e=[])=>{let r=vl();if(!r||r.injector.get(yl,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:so,useValue:"platform"});!function(t){if(fl&&!fl.destroyed&&!fl.injector.get(yl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");fl=t.get(Al);const e=t.get(Yu,null);e&&e.forEach(t=>t())}(yo.create({providers:t,name:n}))}return function(t){const e=vl();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function vl(){return fl&&!fl.destroyed?fl:null}let Al=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new ul:("zone.js"===t?void 0:t)||new nl({enableLongStackTrace:_l(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:nl,useValue:i}];return i.run(()=>{const e=yo.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(fs,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{r.handleError(t)}});s.onDestroy(()=>{Cl(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return $o(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(r,i,()=>{const t=s.injector.get(Hu);return t.runInitializers(),t.donePromise.then(()=>(Ka(s.injector.get(Vu,Ya)||Ya),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=kl({},e);return function(t,e,i){const n=new iu(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Tl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${it(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(gn(yo))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function kl(t,e){return Array.isArray(e)?e.reduce(kl,t):Object.assign(Object.assign({},t),e)}let Tl=(()=>{class t{constructor(t,e,i,n,s){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{nl.assertNotInAngularZone(),il(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{nl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=V(r,o.pipe(X()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof Qa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(Bc),s=i.create(yo.NULL,[],e||i.selector,n),r=s.location.nativeElement,o=s.injector.get(ll,null),a=o&&s.injector.get(hl);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Cl(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Cl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ku,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(gn(nl),gn(yo),gn(fs),gn(tc),gn(Hu))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function Cl(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Sl{}class Ml{}const El={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let xl=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||El}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i(3619)(e).then(t=>t[n]).then(t=>Rl(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i(3619)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>Rl(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(gn(tl),gn(Ml,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function Rl(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const Dl=bl(null,"core",[{provide:Nu,useValue:"unknown"},{provide:Al,deps:[yo]},{provide:hl,deps:[]},{provide:Uu,deps:[]}]),Pl=[{provide:Tl,useClass:Tl,deps:[nl,yo,fs,tc,Hu]},{provide:Zc,deps:[nl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Hu,useClass:Hu,deps:[[new bn,Fu]]},{provide:tl,useClass:tl,deps:[]},Bu,{provide:kc,useFactory:function(){return Pc},deps:[]},{provide:Cc,useFactory:function(){return Lc},deps:[]},{provide:Vu,useFactory:function(t){return Ka(t=t||"undefined"!=typeof $localize&&$localize.locale||Ya),t},deps:[[new wn(Vu),new bn,new vn]]},{provide:qu,useValue:"USD"}];let Ll=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(gn(Tl))},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:Pl}),t})(),zl=null;function Il(){return zl}const Fl=new Ji("DocumentToken");let Hl=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:Ol,token:t,providedIn:"platform"}),t})();function Ol(){return gn(jl)}const Bl=new Ji("Location Initialized");let jl=(()=>{class t extends Hl{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Il().getBaseHref(this._doc)}onPopState(t){const e=Il().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=Il().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,i){Yl()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){Yl()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(gn(Fl))},t.\u0275prov=dt({factory:Nl,token:t,providedIn:"platform"}),t})();function Yl(){return!!window.history.pushState}function Nl(){return new jl(gn(Fl))}function Kl(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function Ul(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function Vl(t){return t&&"?"!==t[0]?"?"+t:t}let ql=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:$l,token:t,providedIn:"root"}),t})();function $l(t){const e=gn(Fl).location;return new Gl(gn(Hl),e&&e.origin||"")}const Wl=new Ji("appBaseHref");let Gl=(()=>{class t extends ql{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Kl(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Vl(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+Vl(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+Vl(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(gn(Hl),gn(Wl,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Jl=(()=>{class t extends ql{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=Kl(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+Vl(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+Vl(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(gn(Hl),gn(Wl,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Zl=(()=>{class t{constructor(t,e){this._subject=new mu,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Ul(Xl(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Vl(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Xl(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Vl(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Vl(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformStrategy).historyGo)||void 0===i||i.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(ql),gn(Hl))},t.normalizeQueryParams=Vl,t.joinWithSlash=Kl,t.stripTrailingSlash=Ul,t.\u0275prov=dt({factory:Ql,token:t,providedIn:"root"}),t})();function Ql(){return new Zl(gn(ql),gn(Hl))}function Xl(t){return t.replace(/\/index.html$/,"")}var th=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),eh=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),ih=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),nh=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),sh=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function rh(t,e){return lh(Oa(t)[ja.DateFormat],e)}function oh(t,e){return lh(Oa(t)[ja.TimeFormat],e)}function ah(t,e){return lh(Oa(t)[ja.DateTimeFormat],e)}function ch(t,e){const i=Oa(t),n=i[ja.NumberSymbols][e];if(void 0===n){if(e===sh.CurrencyDecimal)return i[ja.NumberSymbols][sh.Decimal];if(e===sh.CurrencyGroup)return i[ja.NumberSymbols][sh.Group]}return n}function uh(t){if(!t[ja.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[ja.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function lh(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function hh(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const dh=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,fh={},ph=/((?:[^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 gh=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),mh=function(t){return 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}({}),_h=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function yh(t,e,i,n){let s=function(t){if(Dh(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,i=1,n=1]=t.split("-").map(t=>+t);return wh(e,i-1,n)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(dh))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,c,u),e}(i)}const e=new Date(t);if(!Dh(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=bh(i,e)||e;let r,o=[];for(;e;){if(r=ph.exec(e),!r){o.push(e);break}{o=o.concat(r.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();n&&(a=Rh(n,a),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Rh(e,n)-n))}(s,n));let c="";return o.forEach(t=>{const e=function(t){if(xh[t])return xh[t];let e;switch(t){case"G":case"GG":case"GGG":e=Th(_h.Eras,ih.Abbreviated);break;case"GGGG":e=Th(_h.Eras,ih.Wide);break;case"GGGGG":e=Th(_h.Eras,ih.Narrow);break;case"y":e=kh(mh.FullYear,1,0,!1,!0);break;case"yy":e=kh(mh.FullYear,2,0,!0,!0);break;case"yyy":e=kh(mh.FullYear,3,0,!1,!0);break;case"yyyy":e=kh(mh.FullYear,4,0,!1,!0);break;case"Y":e=Eh(1);break;case"YY":e=Eh(2,!0);break;case"YYY":e=Eh(3);break;case"YYYY":e=Eh(4);break;case"M":case"L":e=kh(mh.Month,1,1);break;case"MM":case"LL":e=kh(mh.Month,2,1);break;case"MMM":e=Th(_h.Months,ih.Abbreviated);break;case"MMMM":e=Th(_h.Months,ih.Wide);break;case"MMMMM":e=Th(_h.Months,ih.Narrow);break;case"LLL":e=Th(_h.Months,ih.Abbreviated,eh.Standalone);break;case"LLLL":e=Th(_h.Months,ih.Wide,eh.Standalone);break;case"LLLLL":e=Th(_h.Months,ih.Narrow,eh.Standalone);break;case"w":e=Mh(1);break;case"ww":e=Mh(2);break;case"W":e=Mh(1,!0);break;case"d":e=kh(mh.Date,1);break;case"dd":e=kh(mh.Date,2);break;case"c":case"cc":e=kh(mh.Day,1);break;case"ccc":e=Th(_h.Days,ih.Abbreviated,eh.Standalone);break;case"cccc":e=Th(_h.Days,ih.Wide,eh.Standalone);break;case"ccccc":e=Th(_h.Days,ih.Narrow,eh.Standalone);break;case"cccccc":e=Th(_h.Days,ih.Short,eh.Standalone);break;case"E":case"EE":case"EEE":e=Th(_h.Days,ih.Abbreviated);break;case"EEEE":e=Th(_h.Days,ih.Wide);break;case"EEEEE":e=Th(_h.Days,ih.Narrow);break;case"EEEEEE":e=Th(_h.Days,ih.Short);break;case"a":case"aa":case"aaa":e=Th(_h.DayPeriods,ih.Abbreviated);break;case"aaaa":e=Th(_h.DayPeriods,ih.Wide);break;case"aaaaa":e=Th(_h.DayPeriods,ih.Narrow);break;case"b":case"bb":case"bbb":e=Th(_h.DayPeriods,ih.Abbreviated,eh.Standalone,!0);break;case"bbbb":e=Th(_h.DayPeriods,ih.Wide,eh.Standalone,!0);break;case"bbbbb":e=Th(_h.DayPeriods,ih.Narrow,eh.Standalone,!0);break;case"B":case"BB":case"BBB":e=Th(_h.DayPeriods,ih.Abbreviated,eh.Format,!0);break;case"BBBB":e=Th(_h.DayPeriods,ih.Wide,eh.Format,!0);break;case"BBBBB":e=Th(_h.DayPeriods,ih.Narrow,eh.Format,!0);break;case"h":e=kh(mh.Hours,1,-12);break;case"hh":e=kh(mh.Hours,2,-12);break;case"H":e=kh(mh.Hours,1);break;case"HH":e=kh(mh.Hours,2);break;case"m":e=kh(mh.Minutes,1);break;case"mm":e=kh(mh.Minutes,2);break;case"s":e=kh(mh.Seconds,1);break;case"ss":e=kh(mh.Seconds,2);break;case"S":e=kh(mh.FractionalSeconds,1);break;case"SS":e=kh(mh.FractionalSeconds,2);break;case"SSS":e=kh(mh.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Ch(gh.Short);break;case"ZZZZZ":e=Ch(gh.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Ch(gh.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Ch(gh.Long);break;default:return null}return xh[t]=e,e}(t);c+=e?e(s,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function wh(t,e,i){const n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function bh(t,e){const i=function(t){return Oa(t)[ja.LocaleId]}(t);if(fh[i]=fh[i]||{},fh[i][e])return fh[i][e];let n="";switch(e){case"shortDate":n=rh(t,nh.Short);break;case"mediumDate":n=rh(t,nh.Medium);break;case"longDate":n=rh(t,nh.Long);break;case"fullDate":n=rh(t,nh.Full);break;case"shortTime":n=oh(t,nh.Short);break;case"mediumTime":n=oh(t,nh.Medium);break;case"longTime":n=oh(t,nh.Long);break;case"fullTime":n=oh(t,nh.Full);break;case"short":const e=bh(t,"shortTime"),i=bh(t,"shortDate");n=vh(ah(t,nh.Short),[e,i]);break;case"medium":const s=bh(t,"mediumTime"),r=bh(t,"mediumDate");n=vh(ah(t,nh.Medium),[s,r]);break;case"long":const o=bh(t,"longTime"),a=bh(t,"longDate");n=vh(ah(t,nh.Long),[o,a]);break;case"full":const c=bh(t,"fullTime"),u=bh(t,"fullDate");n=vh(ah(t,nh.Full),[c,u])}return n&&(fh[i][e]=n),n}function vh(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function Ah(t,e,i="-",n,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=i));let o=String(t);for(;o.length0||a>-i)&&(a+=i),t===mh.Hours)0===a&&-12===i&&(a=12);else if(t===mh.FractionalSeconds)return c=e,Ah(a,3).substr(0,c);var c;const u=ch(o,sh.MinusSign);return Ah(a,e,u,n,s)}}function Th(t,e,i=eh.Format,n=!1){return function(s,r){return function(t,e,i,n,s,r){switch(i){case _h.Months:return function(t,e,i){const n=Oa(t),s=lh([n[ja.MonthsFormat],n[ja.MonthsStandalone]],e);return lh(s,i)}(e,s,n)[t.getMonth()];case _h.Days:return function(t,e,i){const n=Oa(t),s=lh([n[ja.DaysFormat],n[ja.DaysStandalone]],e);return lh(s,i)}(e,s,n)[t.getDay()];case _h.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(r){const t=function(t){const e=Oa(t);return uh(e),(e[ja.ExtraData][2]||[]).map(t=>"string"==typeof t?hh(t):[hh(t[0]),hh(t[1])])}(e),i=function(t,e,i){const n=Oa(t);uh(n);const s=lh([n[ja.ExtraData][0],n[ja.ExtraData][1]],e)||[];return lh(s,i)||[]}(e,s,n),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=o>=e.hours&&a>=e.minutes,s=o0?Math.floor(s/60):Math.ceil(s/60);switch(t){case gh.Short:return(s>=0?"+":"")+Ah(o,2,r)+Ah(Math.abs(s%60),2,r);case gh.ShortGMT:return"GMT"+(s>=0?"+":"")+Ah(o,1,r);case gh.Long:return"GMT"+(s>=0?"+":"")+Ah(o,2,r)+":"+Ah(Math.abs(s%60),2,r);case gh.Extended:return 0===n?"Z":(s>=0?"+":"")+Ah(o,2,r)+":"+Ah(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function Sh(t){return wh(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Mh(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=Sh(i),e=function(t){const e=wh(t,0,1).getDay();return wh(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}return Ah(s,t,ch(n,sh.MinusSign))}}function Eh(t,e=!1){return function(i,n){return Ah(Sh(i).getFullYear(),t,ch(n,sh.MinusSign),e)}}const xh={};function Rh(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function Dh(t){return t instanceof Date&&!isNaN(t.valueOf())}class Ph{}let Lh=(()=>{class t extends Ph{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return Oa(t)[ja.PluralCase]}(e||this.locale)(t)){case th.Zero:return"zero";case th.One:return"one";case th.Two:return"two";case th.Few:return"few";case th.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(gn(Vu))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function zh(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let Ih=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Eo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${it(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Ho(kc),Ho(Cc),Ho(sc),Ho(ac))},t.\u0275dir=Gt({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Fh{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 Hh=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new Fh(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new Oh(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const r=new Oh(t,s);e.push(r)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(Ic),Ho(kc))},t.\u0275dir=Gt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Oh{constructor(t,e){this.record=t,this.view=e}}let Bh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new jh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Yh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Yh("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class jh{constructor(){this.$implicit=null,this.ngIf=null}}function Yh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${it(e)}'.`)}class Nh{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Kh=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new Nh(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(Ic),Ho(Kh,9))},t.\u0275dir=Gt({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Vh=(()=>{class t{constructor(t,e,i){i._addDefault(new Nh(t,e))}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(Ic),Ho(Kh,9))},t.\u0275dir=Gt({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),qh=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Cc),Ho(ac))},t.\u0275dir=Gt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),$h=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc))},t.\u0275dir=Gt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[ue]}),t})();function Wh(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${it(t)}'`)}class Gh{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Jh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Zh=new Jh,Qh=new Gh;let Xh=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if($o(e))return Zh;if(Wo(e))return Qh;throw Wh(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(Ho(Rc,16))},t.\u0275pipe=Jt({name:"async",type:t,pure:!1}),t})(),td=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return yh(e,i,s||this.locale,n)}catch(r){throw Wh(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(Ho(Vu,16))},t.\u0275pipe=Jt({name:"date",type:t,pure:!0}),t})(),ed=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[{provide:Ph,useClass:Lh}]}),t})(),id=(()=>{class t{}return t.\u0275prov=dt({token:t,providedIn:"root",factory:()=>new nd(gn(Fl),window)}),t})();class nd{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){const t=n.shadowRoot;if(t){const i=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(i)return i}n=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=sd(this.window.history)||sd(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function sd(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class rd{}class od extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new od,zl||(zl=t)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(cd=cd||document.querySelector("base"),cd?cd.getAttribute("href"):null);return null==e?null:function(t){ad=ad||document.createElement("a"),ad.setAttribute("href",t);const e=ad.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){cd=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return zh(document.cookie,t)}}let ad,cd=null;const ud=new Ji("TRANSITION_ID"),ld=[{provide:Fu,useFactory:function(t,e,i){return()=>{i.get(Hu).donePromise.then(()=>{const i=Il();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[ud,Fl,yo],multi:!0}];class hd{static init(){var t;t=new hd,pl=t}addToWindow(t){Pt.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},Pt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Pt.getAllAngularRootElements=()=>t.getAllRootElements(),Pt.frameworkStabilizers||(Pt.frameworkStabilizers=[]),Pt.frameworkStabilizers.push(t=>{const e=Pt.getAllAngularTestabilities();let i=e.length,n=!1;const s=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const n=t.getTestability(e);return null!=n?n:i?Il().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let dd=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const fd=new Ji("EventManagerPlugins");let pd=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),_d=(()=>{class t extends md{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,i){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,i.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(yd),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,i)=>{this._addStylesToHost(t,i,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(yd))}}return t.\u0275fac=function(e){return new(e||t)(gn(Fl))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function yd(t){Il().remove(t)}const wd={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/"},bd=/%COMP%/g;function vd(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let kd=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Td(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Mt.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new Cd(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case Mt.ShadowDom:return new Sd(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=vd(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(gn(pd),gn(_d),gn(Ou))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class Td{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(wd[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=wd[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=wd[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(ys.DashCase|ys.Important)?t.style.setProperty(e,i,n&ys.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&ys.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Ad(i)):this.eventManager.addEventListener(t,e,Ad(i))}}class Cd extends Td{constructor(t,e,i,n){super(t),this.component=i;const s=vd(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(bd,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(bd,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class Sd extends Td{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=vd(n.id,n.styles,[]);for(let r=0;r{class t extends gd{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(gn(Fl))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Ed=["alt","control","meta","shift"],xd={"\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"},Rd={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"},Dd={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Pd=(()=>{class t extends gd{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,n){const s=t.parseEventName(i),r=t.eventCallback(s.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Il().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let r="";if(Ed.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),r+=t+".")}),r+=s,0!=i.length||0===s.length)return null;const o={};return o.domEventName=n,o.fullKey=r,o}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Rd.hasOwnProperty(e)&&(e=Rd[e]))}return xd[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),Ed.forEach(n=>{n!=i&&(0,Dd[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(gn(Fl))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Ld=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return gn(Id)},token:t,providedIn:"root"}),t})();function zd(t){return new Id(t.get(Fl))}let Id=(()=>{class t extends Ld{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case ss.NONE:return e;case ss.HTML:return Ln(e,"HTML")?Pn(e):is(this._doc,String(e)).toString();case ss.STYLE:return Ln(e,"Style")?Pn(e):e;case ss.SCRIPT:if(Ln(e,"Script"))return Pn(e);throw new Error("unsafe value used in a script context");case ss.URL:return zn(e),Ln(e,"URL")?Pn(e):Bn(String(e));case ss.RESOURCE_URL:if(Ln(e,"ResourceURL"))return Pn(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new Mn(t)}bypassSecurityTrustStyle(t){return new En(t)}bypassSecurityTrustScript(t){return new xn(t)}bypassSecurityTrustUrl(t){return new Rn(t)}bypassSecurityTrustResourceUrl(t){return new Dn(t)}}return t.\u0275fac=function(e){return new(e||t)(gn(Fl))},t.\u0275prov=dt({factory:function(){return zd(gn(io))},token:t,providedIn:"root"}),t})();const Fd=bl(Dl,"browser",[{provide:Nu,useValue:"browser"},{provide:Yu,useValue:function(){od.makeCurrent(),hd.init()},multi:!0},{provide:Fl,useFactory:function(){return function(t){ge=t}(document),document},deps:[]}]),Hd=[[],{provide:so,useValue:"root"},{provide:fs,useFactory:function(){return new fs},deps:[]},{provide:fd,useClass:Md,multi:!0,deps:[Fl,nl,Nu]},{provide:fd,useClass:Pd,multi:!0,deps:[Fl]},[],{provide:kd,useClass:kd,deps:[pd,_d,Ou]},{provide:oc,useExisting:kd},{provide:md,useExisting:_d},{provide:_d,useClass:_d,deps:[Fl]},{provide:ll,useClass:ll,deps:[nl]},{provide:pd,useClass:pd,deps:[fd,nl]},{provide:rd,useClass:dd,deps:[]},[]];let Od=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Ou,useValue:e.appId},{provide:ud,useExisting:Ou},ld]}}}return t.\u0275fac=function(e){return new(e||t)(gn(t,12))},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:Hd,imports:[ed,Ll]}),t})();function Bd(...t){let e=t[t.length-1];return C(e)?(t.pop(),O(t,e)):U(t)}function jd(t,e){return j(t,e,1)}function Yd(t,e){return function(i){return i.lift(new Nd(t,e))}}"undefined"!=typeof window&&window;class Nd{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Kd(t,this.predicate,this.thisArg))}}class Kd extends p{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class Ud{}class Vd{}class qd{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof qd?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new qd;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof qd?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class $d{encodeKey(t){return Wd(t)}encodeValue(t){return Wd(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Wd(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function Gd(t){return`${t}`}class Jd{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new $d,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[s,r]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],o=i.get(s)||[];o.push(r),i.set(s,o)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Jd({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Gd(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(Gd(t.value));-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class Zd{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function Qd(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Xd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function tf(t){return"undefined"!=typeof FormData&&t instanceof FormData}class ef{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new qd),this.context||(this.context=new Zd),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),u)),new ef(i,n,r,{params:u,headers:c,context:l,reportProgress:a,responseType:s,withCredentials:o})}}var nf=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class sf{constructor(t,e=200,i="OK"){this.headers=t.headers||new qd,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class rf extends sf{constructor(t={}){super(t),this.type=nf.ResponseHeader}clone(t={}){return new rf({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class of extends sf{constructor(t={}){super(t),this.type=nf.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new of({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class af extends sf{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function cf(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let uf=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof ef)n=t;else{let s,r;s=i.headers instanceof qd?i.headers:new qd(i.headers),i.params&&(r=i.params instanceof Jd?i.params:new Jd({fromObject:i.params})),n=new ef(t,e,void 0!==i.body?i.body:null,{headers:s,context:i.context,params:r,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=Bd(n).pipe(jd(t=>this.handler.handle(t)));if(t instanceof ef||"events"===i.observe)return s;const r=s.pipe(Yd(t=>t instanceof of));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe(I(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(I(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(I(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(I(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Jd).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,cf(i,e))}post(t,e,i={}){return this.request("POST",t,cf(i,e))}put(t,e,i={}){return this.request("PUT",t,cf(i,e))}}return t.\u0275fac=function(e){return new(e||t)(gn(Ud))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class lf{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const hf=new Ji("HTTP_INTERCEPTORS");let df=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const ff=/^\)\]\}',?\n/;let pf=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new y(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new qd(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new rf({headers:r,status:e,statusText:n,url:o}),s},o=()=>{let{headers:n,status:s,statusText:o,url:a}=r(),c=null;204!==s&&(c=void 0===i.response?i.responseText:i.response),0===s&&(s=c?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(ff,"");try{c=""!==c?JSON.parse(c):null}catch(l){c=t,u&&(u=!1,c={error:l,text:c})}}u?(e.next(new of({body:c,headers:n,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new af({error:c,headers:n,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:n}=r(),s=new af({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let c=!1;const u=n=>{c||(e.next(r()),c=!0);let s={type:nf.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},l=t=>{let i={type:nf.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",o),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",u),null!==n&&i.upload&&i.upload.addEventListener("progress",l)),i.send(n),e.next({type:nf.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",o),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",u),null!==n&&i.upload&&i.upload.removeEventListener("progress",l)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(gn(rd))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const gf=new Ji("XSRF_COOKIE_NAME"),mf=new Ji("XSRF_HEADER_NAME");class _f{}let yf=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,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=zh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(gn(Fl),gn(Nu),gn(gf))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),wf=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(gn(_f),gn(mf))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),bf=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(hf,[]);this.chain=t.reduceRight((t,e)=>new lf(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(gn(Vd),gn(yo))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),vf=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:wf,useClass:df}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:gf,useValue:e.cookieName}:[],e.headerName?{provide:mf,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[wf,{provide:hf,useExisting:wf,multi:!0},{provide:_f,useClass:yf},{provide:gf,useValue:"XSRF-TOKEN"},{provide:mf,useValue:"X-XSRF-TOKEN"}]}),t})(),Af=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[uf,{provide:Ud,useClass:bf},pf,{provide:Vd,useExisting:pf}],imports:[[vf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();class kf{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const Tf=new Ji("basePath");class Cf{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}selectHeaderContentType(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let Sf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}convertAttributeToNonunique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}convertAttributeToUnique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("attribute",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAttributeDefinitions(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let n=new Jd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attributes[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAttributeDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttribute(t,e,i,n,s,r,o,a,c,u,l,h="body",d=!1){let f=new Jd({encoder:this.encoder});null!=t&&(f=f.set("attributeName",t)),null!=e&&(f=f.set("attributeId",e)),null!=i&&(f=f.set("facility",i)),null!=n&&(f=f.set("user",n)),null!=s&&(f=f.set("vo",s)),null!=r&&(f=f.set("resource",r)),null!=o&&(f=f.set("member",o)),null!=a&&(f=f.set("group",a)),null!=c&&(f=f.set("host",c)),null!=u&&(f=f.set("userExtSource",u)),null!=l&&(f=f.set("key",l));let p=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(p=p.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(p=p.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;p=p.set("Authorization","Bearer "+t)}const g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(p=p.set("Accept",g)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{params:f,withCredentials:this.configuration.withCredentials,headers:p,observe:h,reportProgress:d})}getAttributeDefinitionById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("attributeName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionsByNamespace(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttributeModulesDependenciesForAttributeGraphText(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("format",t)),null!=e&&(s=s.set("attrName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAttributeModulesDependenciesGraphText(t,e="body",i=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("format",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("attributeId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributesDefinitionWithRights(t,e,i,n,s,r,o,a,c="body",u=!1){let l=new Jd({encoder:this.encoder});null!=t&&(l=l.set("member",t)),null!=e&&(l=l.set("user",e)),null!=i&&(l=l.set("vo",i)),null!=n&&(l=l.set("group",n)),null!=s&&(l=l.set("resource",s)),null!=r&&(l=l.set("facility",r)),null!=o&&(l=l.set("host",o)),null!=a&&(l=l.set("userExtSource",a));let h=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(h=h.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(h=h.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;h=h.set("Authorization","Bearer "+t)}const d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(h=h.set("Accept",d)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{params:l,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:u})}getEntitylessAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEntitylessAttributesByKey(t,e="body",i=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("key",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("attrName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesWithKeys(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("attrName",t)),e&&e.forEach(t=>{s=s.append("keys[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEntitylessKeys(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityResourceUserMemberAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("user",i)),null!=n&&(o=o.set("member",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getFacilityUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getGroupResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getGroupResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getHostAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getHostAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getLogins(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAndUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberAndUserAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberGroupAndUserAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)}),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getMemberGroupAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberGroupAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberGroupAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)}),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getMemberResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacilityService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesFacilityServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let s=new Jd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesGroupResourceService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("group",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRequiredAttributesHostService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("host",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesMemberGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRequiredAttributesMemberGroupResourceService(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new Jd({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("group",i)),null!=n&&(a=a.set("member",n)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}getRequiredAttributesMemberGroupService(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("member",i)),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRequiredAttributesMemberResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRequiredAttributesMemberResourceService(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("member",i)),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRequiredAttributesResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesResourceService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesResourceServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let s=new Jd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesUserFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesVoService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceGroupAndGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithGroupAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getResourceGroupAndGroupAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)}),null!=n&&(o=o.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getResourceGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceGroupMemberAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("member",i)),n&&n.forEach(t=>{o=o.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getUserAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserExtSourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserExtSourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserFacilityAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getUserFacilityAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getUserFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeAttributesForFacilityResourceGroupUserMember(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new Jd({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=n&&(c=c.set("user",n)),null!=s&&(c=c.set("member",s)),r&&r.forEach(t=>{c=c.append("attributes[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}removeAttributesForFacilityResourceUserMember(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new Jd({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=n&&(a=a.set("member",n)),s&&s.forEach(t=>{a=a.append("attributes[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}removeEntitylessAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeGroupResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeGroupResourceAttributesWorkWithGroupAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)}),null!=n&&(o=o.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeHostAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeHostAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMemberAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMemberAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMemberAttributesWorkWithUserAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attributes[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberGroupAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberGroupAttributesWorkWithUserAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)}),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeMemberResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeResourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUesAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserExtSourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserFacilityAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeVoAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setEntitylessAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceGroupUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAndUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupWithGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Mf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}auditMessagesManagerLog(t,e="body",i=!1){if(null==t)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("msg",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/AuditMessagesManager/log`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAuditerConsumer(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/AuditMessagesManager/createAuditerConsumer`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAuditerConsumers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getAllAuditerConsumers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuditerMessagesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getAuditerMessagesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getLastMessageId(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getLastMessageId`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMessages(t,e="body",i=!1){let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("count",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getMessages`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMessagesByCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("count",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getMessagesByCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}pollConsumerMessages(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/pollConsumerMessages`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setLastProcessedId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==e)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("consumerName",t)),null!=e&&(s=s.set("lastProcessedId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/AuditMessagesManager/setLastProcessedId`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ef=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}getAllPolicies(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRolesManagementRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuthzAdminGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("role",t)),null!=e&&(r=r.set("complementaryObjectId",e)),null!=i&&(r=r.set("complementaryObjectName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAuthzRichAdmins(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new Jd({encoder:this.encoder});null!=t&&(c=c.set("role",t)),null!=e&&(c=c.set("complementaryObjectId",e)),null!=i&&(c=c.set("complementaryObjectName",i)),n&&n.forEach(t=>{c=c.append("specificAttributes",t)}),null!=s&&(c=c.set("allUserAttributes",s)),null!=r&&(c=c.set("onlyDirectAdmins",r));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}getFacilitiesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new Jd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("groupId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new Jd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getLoggedUser(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMembersWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new Jd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getPerunPrincipal(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPrincipalRoleNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new Jd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSecurityTeamsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new Jd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("userId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new Jd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}isFacilityAdmin(t,e="body",i=!1){let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isGroupAdmin(t,e="body",i=!1){let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isPerunAdmin(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isVoAdmin(t,e="body",i=!1){let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}keepAlive(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}loadAuthorizationComponents(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}setRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}createAutorship(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAuthorship was null or undefined when calling createAutorship.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryCat(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory was null or undefined when calling createCategoryCat.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryNR(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory1 was null or undefined when calling createCategoryNR.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublication was null or undefined when calling createPublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateThanks was null or undefined when calling createThanks.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAuthorship(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==e)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("publicationId",t)),null!=e&&(s=s.set("userId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deletePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deletePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findAllAuthors(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}findAuthorsByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findExternalPublications(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==e)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==i)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==n)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("yearSince",e)),null!=i&&(o=o.set("yearTill",i)),null!=n&&(o=o.set("pubSysNamespace",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}findNewAuthors(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findPublicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findPublicationsByFilter(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let r=new Jd({encoder:this.encoder});null!=e&&(r=r.set("yearSince",e)),null!=i&&(r=r.set("yearTill",i)),null!=t&&(r=r.set("userId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}findPublicationsByGUIFilter(t,e,i,n,s,r,o,a,c,u="body",l=!1){let h=new Jd({encoder:this.encoder});null!=t&&(h=h.set("title",t)),null!=e&&(h=h.set("isbn",e)),null!=i&&(h=h.set("doi",i)),null!=n&&(h=h.set("id",n)),null!=s&&(h=h.set("year",s)),null!=r&&(h=h.set("category",r)),null!=o&&(h=h.set("yearSince",o)),null!=a&&(h=h.set("yearTill",a)),null!=c&&(h=h.set("userId",c));let d=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(d=d.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(d=d.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;d=d.set("Authorization","Bearer "+t)}const f=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==f&&(d=d.set("Accept",f)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{params:h,withCredentials:this.configuration.withCredentials,headers:d,observe:u,reportProgress:l})}findSimilarPublications(t,e,i,n="body",s=!1){let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("title",t)),null!=e&&(r=r.set("doi",e)),null!=i&&(r=r.set("isbn",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getCategories(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPublicationSystems(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRank(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRank.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichThanksByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}lockPublications(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputLockPublications was null or undefined when calling lockPublications.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateCategory was null or undefined when calling updateCategory.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublication was null or undefined when calling updatePublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Rf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}getCurrentDatabaseVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getCurrentDatabaseVersion`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseDriverInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseDriverInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTimeOfQueryPerformance(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getTimeOfQueryPerformance`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Df=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}addExtSourceWithGroupSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addExtSourceWithVoSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createExtSourceFromExtSourceObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter extSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createExtSourceWithNameType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==e)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSourceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSources(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGroupExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}loadExtSourcesDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeExtSourceWithGroupSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeExtSourceWithVoSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Pf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}addFacilityAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityAdminGroupByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityAdminUserByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityOwnerByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityOwnerByFacilityNameOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityOwnerByOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addHost(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("hostname",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addHostByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("hostname",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hostnames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addHostsByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hostnames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignSecurityTeam(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignSecurityTeamByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyAttributesByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyAttributesBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyAttributesBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyManagers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyManagersByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyManagersBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyManagersBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyOwners(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyOwnersByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyOwnersBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyOwnersBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("description",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllowedGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAllowedGroupsByFacilityName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAllowedRichGroupsWithAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("vo",i)),null!=n&&(o=o.set("service",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllowedRichGroupsWithAttributesByFacilityName(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("vo",i)),null!=n&&(o=o.set("service",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllowedUsersOfFacility(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAllowedUsersOfFacilityByFacilityName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAllowedVos(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedVosByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesByAssignedServiceForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAssignedResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedSecurityTeams(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedSecurityTeamsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedUsers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAssignedUsersByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getBansForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facilityId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getEnrichedHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilitiesByAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t)),null!=e&&(s=s.set("attributeValue",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilitiesByDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesByHostName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let n=new Jd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAdminUsers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityAdminUsersByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityForHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityOwners(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityOwnersByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHosts(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsCountByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getOwnerFacilities(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("owner",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeBanByUserIdFacilityId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAdminGroupByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAdminUserByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeFacilityOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityOwnerByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityOwnerByFacilityNameOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityOwnerByOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeHostByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hosts[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeHostsByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hosts[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeSecurityTeam(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeSecurityTeamByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Lf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}getFacilityAdminGroupsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),zf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}addMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");let s=new Jd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}canExtendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createGroupWithParentGroupNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("parentGroup",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}createGroupWithVoNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}deleteGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroups.");if(null==e)throw new Error("Required parameter forceDelete was null or undefined when calling deleteGroups.");let s=new Jd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("forceDelete",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroups`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}extendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}forceAllSubGroupsSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupStructureSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllRichSubGroupsWithGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("name",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupMemberById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByGroupStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByVoStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRichMembersByIds(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("members[]",t)}),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getGroupUnions(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("reverseDirection",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let n=new Jd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getIndirectMembershipPaths(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRichGroupByIdWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("groupId",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}isGroupMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}moveGroupWithDestinationGroupMovingGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new Jd({encoder:this.encoder});null!=e&&(s=s.set("destinationGroup",e)),null!=t&&(s=s.set("movingGroup",t));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");let s=new Jd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setGroupsMemberStatus(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("status",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}updateGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),If=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}canExtendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createMemberForCandidate(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberFromExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSpecificMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembersFromCSV(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let n=new Jd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("members[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}extendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findCompleteRichMembersByAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let r=new Jd({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("attrsNames[]",t)}),null!=e&&(r=r.set("searchString",e)),i&&i.forEach(t=>{r=r.append("allowedStatuses[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}findCompleteRichMembersForGroup(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new Jd({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(t=>{c=c.append("attrsNames[]",t)}),s&&s.forEach(t=>{c=c.append("allowedStatuses[]",t)}),r&&r.forEach(t=>{c=c.append("allowedGroupStatuses[]",t)}),null!=i&&(c=c.set("searchString",i)),null!=n&&(c=c.set("lookingInParentGroup",n));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}findCompleteRichMembersForVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrsNames[]",t)}),n&&n.forEach(t=>{o=o.append("allowedStatuses[]",t)}),null!=i&&(o=o.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}findMembersInVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findSponsoredCompleteRichMembersForVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrsNames[]",t)}),null!=i&&(o=o.set("searchString",i)),null!=n&&(o=o.set("onlySponsored",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllNamespacesRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getCompleteRichMembersForGroup(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new Jd({encoder:this.encoder});null!=t&&(a=a.set("group",t)),i&&i.forEach(t=>{a=a.append("allowedStatuses[]",t)}),n&&n.forEach(t=>{a=a.append("allowedGroupStatuses[]",t)}),null!=e&&(a=a.set("lookingInParentGroup",e)),s&&s.forEach(t=>{a=a.append("attrsNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}getCompleteRichMembersForGroupResource(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attrsNames[]",t)}),n&&n.forEach(t=>{o=o.append("allowedStatuses[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getCompleteRichMembersForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("allowedStatuses[]",t)}),i&&i.forEach(t=>{r=r.append("attrsNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberByExtSourceNameAndExtLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extLogin",e)),null!=i&&(r=r.set("extSourceName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberByUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMembersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let n=new Jd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getMembersWithStatusCount(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRichMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMemberWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMembersByIds(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new Jd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)}),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsorsByMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsorsByVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extSourceName",e)),null!=i&&(o=o.set("extLogin",i)),n&&n.forEach(t=>{o=o.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}moveMembership(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("sourceUser",e)),null!=i&&(r=r.set("targetUser",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeSponsor(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("sponsor",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sendAccountActivationLinkEmail(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("emailAttributeURN",i)),null!=n&&(o=o.set("language",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sendPasswordResetLinkEmail(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("emailAttributeURN",i)),null!=n&&(o=o.set("language",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}setSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSponsorshipForMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("sponsoredMember",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}setStatus(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sponsorMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}updateSponsorshipValidity(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}validateMemberAsync(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ff=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}createOwner(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateOwner was null or undefined when calling createOwner.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("owner",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllOwners(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getOwnerById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getOwnerByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("owner",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Hf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}sentMessageToRTWithMemberQueue(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("memberId",t)),null!=e&&(o=o.set("queue",e)),null!=i&&(o=o.set("subject",i)),null!=n&&(o=o.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sentMessageToRTWithQueue(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("queue",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}sentMessageToRTWithVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("voId",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}sentMessageToRTWithVoQueue(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("voId",t)),null!=e&&(o=o.set("queue",e)),null!=i&&(o=o.set("subject",i)),null!=n&&(o=o.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Of=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}addApplicationMailForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addApplicationMailForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let n=new Jd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}approveApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}consolidateIdentityUsingToken(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}copyFormFromGroupToGroup(t,e,i="body",n=!1){let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyFormFromGroupToVo(t,e,i="body",n=!1){let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyFormFromVoToGroup(t,e,i="body",n=!1){let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyFormFromVoToVo(t,e,i="body",n=!1){let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromGroupToGroup(t,e,i="body",n=!1){let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromGroupToVo(t,e,i="body",n=!1){let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromVoToGroup(t,e,i="body",n=!1){let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromVoToVo(t,e,i="body",n=!1){let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createApplicationFormInGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createApplicationFormInVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplicationMailForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteApplicationMailForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteGroupsFromAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let n=new Jd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationDataById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationsForGroup(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("state[]",t)}),null!=i&&(o=o.set("dateFrom",i)),null!=n&&(o=o.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getApplicationsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getApplicationsForVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("state[]",t)}),null!=i&&(o=o.set("dateFrom",i)),null!=n&&(o=o.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getConsolidatorToken(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForGroupWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForVoWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}rejectApplication(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("id",t)),null!=e&&(s=s.set("reason",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sendInvitation(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let o=new Jd({encoder:this.encoder});null!=i&&(o=o.set("voId",i)),null!=n&&(o=o.set("name",n)),null!=t&&(o=o.set("email",t)),null!=e&&(o=o.set("language",e));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sendInvitationForGroup(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new Jd({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=n&&(a=a.set("groupId",n)),null!=s&&(a=a.set("name",s)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}sendInvitationGroupToExistingUser(t,e,i,n="body",s=!1){let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("userId",t)),null!=e&&(r=r.set("voId",e)),null!=i&&(r=r.set("groupId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}sendInvitationToExistingUser(t,e,i="body",n=!1){let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("userId",t)),null!=e&&(s=s.set("voId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sendMessage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSendingEnabled(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}submitApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateApplicationMail(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}verifyApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Bf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}activateGroupResourceAssignment(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}addAdminToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addAdminToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}allowGroupsToResources(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let r=new Jd({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("groups[]",t)}),e&&e.forEach(t=>{r=r.append("resources[]",t)}),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}assignGroupToResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}assignGroupToResources(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("resources[]",t)}),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}assignGroupsToResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let r=new Jd({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("groups[]",t)}),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}assignResourceTagToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}assignService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResource(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("name",i)),null!=n&&(o=o.set("description",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}createResourceTagWithResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResourceTagWithTagName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("tagName",t)),null!=e&&(s=s.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deactivateGroupResourceAssignment(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteAllResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAdmins(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllResourcesByResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllResourcesTagsForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedUsersOfResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAssignedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMemberService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAssignedServicesToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedResourceById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("id",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEnrichedResourcesForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEnrichedResourcesForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("name",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let n=new Jd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesCountForAll(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesCountForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesFromVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourcesWhereGroupIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("group",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getResourcesWhereUserIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("user",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRichAdmins(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("specificAttributes",t)}),null!=i&&(o=o.set("allUserAttributes",i)),null!=n&&(o=o.set("onlyDirectAdmins",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRichResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let n=new Jd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeAllResourceTagsFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeBanByMemberAndResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupsFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let s=new Jd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceTagFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unallowGroupsFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let s=new Jd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),e&&e.forEach(t=>{s=s.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}updateResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}addDestination(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling addDestination.");let a=new Jd({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("destination",i)),null!=n&&(a=a.set("type",n)),null!=s&&(a=a.set("propagationType",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}addDestinationToMultipleServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addDestinationsForAllServicesOnFacility(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==i)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("type",i)),null!=n&&(o=o.set("propagationType",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}addRequiredAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addRequiredAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addServiceToServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}blockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}blockAllServicesOnDestinationByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("destination",t)),null!=e&&(s=s.set("destinationType",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}blockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}blockServiceOnDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}blockServiceOnDestinationWithNameAndType(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("destinationType",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}blockServiceOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==i)throw new Error("Required parameter script was null or undefined when calling createService.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e)),null!=i&&(r=r.set("script",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}createServiceWithService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateService was null or undefined when calling createServiceWithService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackageByNameAndDescription(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("description",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling deleteService.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceServicePropagation(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllDestinations(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRichDestinationsForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichDestinationsForService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getDataWithGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getDataWithVos(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getDestinationsCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAssignedServicesForGUI(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFlatData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getHashedDataWithGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getHashedHierarchicalData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getHierarchicalData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRichDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getServiceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServiceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServices(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getServicesBlockedOnDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesBlockedOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesByAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesFromServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackageById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackageByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackages(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isServiceBlockedOnDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}isServiceBlockedOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}planServicePropagation(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeAllDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeAllRequiredAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeDestination(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("destination",i)),null!=n&&(o=o.set("type",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeRequiredAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeRequiredAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeServiceFromServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}unblockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}unblockAllServicesOnDestinationByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("destination",t)),null!=e&&(s=s.set("destinationType",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}unblockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}unblockServiceOnDestinationById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}unblockServiceOnDestinationByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("destinationType",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}unblockServiceOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}updateService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateService was null or undefined when calling updateService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Yf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}countTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}deleteTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskIdObject was null or undefined when calling deleteTask.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResultIdObject was null or undefined when calling deleteTaskResultById.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllFacilitiesStates(t,e="body",i=!1){let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("voId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityServicesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTask(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getTask.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getTaskById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("taskResult",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResults(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTaskResultsByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let n=new Jd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("destinations[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForGUIByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForGUIByTaskAndDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("task",t)),null!=e&&(s=s.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getTaskResultsForGUIByTaskOnlyNewest(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isThereSuchTask(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}listAllTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}listAllTasksForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}suspendTasksPropagation(t,e="body",i=!1){if(null==t)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("suspend",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Nf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}addSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addUserExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}changeNonAuthzPasswordByToken(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("token",t)),null!=e&&(r=r.set("password",e)),null!=i&&(r=r.set("lang",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}changePasswordForLogin(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let a=new Jd({encoder:this.encoder});null!=t&&(a=a.set("login",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}changePasswordForUser(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let a=new Jd({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}checkPasswordResetRequestByTokenIsValid(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkPasswordStrength(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("password",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createAlternativePassword(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("description",e)),null!=i&&(o=o.set("loginNamespace",i)),null!=n&&(o=o.set("password",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}createServiceUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAlternativePassword(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("loginNamespace",e)),null!=i&&(r=r.set("passwordId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}deletePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deletePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findRichUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findRichUsersWithAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("searchString",t)),e&&e.forEach(t=>{s=s.append("attrsNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsForFacilityWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsForResourceWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsInVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getPendingPreferredEmailChanges(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let n=new Jd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithAttributesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let n=new Jd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithoutVoWithAttributes(t,e="body",i=!1){let n=new Jd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrsNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSpecificUsersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsorsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsorsForMemberByVoAndLogin(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let o=new Jd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extSourceName",e)),null!=i&&(o=o.set("extLogin",i)),n&&n.forEach(t=>{o=o.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getUserByExtSourceNameAndExtLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("extLogin",t)),null!=e&&(s=s.set("extSourceName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let n=new Jd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let n=new Jd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersBySpecificUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("specificUser",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isLoginAvailable(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("loginNamespace",t)),null!=e&&(s=s.set("login",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}loginExist(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserExtSource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("userExtSource",e)),null!=i&&(r=r.set("force",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}requestPreferredEmailChange(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let c=new Jd({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("email",e)),null!=i&&(c=c.set("lang",i)),null!=n&&(c=c.set("linkPath",n)),null!=s&&(c=c.set("customUrl",s)),null!=r&&(c=c.set("idpFilter",r));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}reservePasswordForLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}reservePasswordForUser(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}reserveRandomPassword(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}updateUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}validatePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}validatePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}validatePreferredEmailChangeWithToken(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("token",t)),null!=e&&(s=s.set("u",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Kf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}getAppsConfig(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGuiConfiguration(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunRPCVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatistics(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatus(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunSystemTimeInMillis(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Uf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new Cf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new kf}addSponsorRoleToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addSponsorRoleToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createVoWithName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("shortName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createVoWithVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findCandidates(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("id",t)),null!=e&&(r=r.set("searchString",e)),null!=i&&(r=r.set("maxNumOfResults",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}findCandidatesForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getCompleteCandidatesForGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getCompleteCandidatesForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMyVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRichAdminsForVo(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new Jd({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("role",e)),i&&i.forEach(t=>{a=a.append("specificAttributes",t)}),null!=n&&(a=a.set("allUserAttributes",n)),null!=s&&(a=a.set("onlyDirectAdmins",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}getVoAdminGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("role",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAdminUsers(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let r=new Jd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("role",e)),null!=i&&(r=r.set("onlyDirectAdmins",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getVoBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBansForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoByShortName(t,e="body",i=!1){let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("shortName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoMembersCountsByStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let n=new Jd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeSponsorRoleFromGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeSponsorRoleFromUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new Jd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let n=new Jd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Tf,8),gn(Cf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Vf,qf,$f,Wf;!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(Vf||(Vf={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(qf||(qf={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}($f||($f={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(Wf||(Wf={}));let Gf=(()=>{class t{constructor(t,e){if(t)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!e)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:t,providers:[{provide:Cf,useFactory:e}]}}}return t.\u0275fac=function(e){return new(e||t)(gn(t,12),gn(uf,8))},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[Sf,Mf,Ef,xf,Rf,Df,Pf,Lf,zf,If,Ff,Hf,Of,Bf,jf,Yf,Nf,Kf,Uf],imports:[[]]}),t})();var Jf=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({});let Zf=(()=>{class t{constructor(t){this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(t){this.principal=t,this.initData(t)}setPerunPolicies(t){this.perunPolicies=t}getPerunPolicies(){return this.perunPolicies}isAuthorized(t,e){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(t);let n=[];for(const r of i)n=n.concat(r.perunRoles);const s=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,s)}resolveAuthorization(t,e){for(const i of t){let t=!0;for(const n of Object.keys(i)){const s=i[n];if(null===s)this.principalRoles.has(n)||(t=!1);else if(e[s]){for(const i of e[s])if(!this.principalHasRole(n,s,i)){t=!1;break}}else t=!1;if(!t)break}if(t)return!0}return!1}fetchAllRelatedObjects(t){const e={};for(const i of t){let t=i.beanName;switch(i.beanName.startsWith("Rich")&&(t=i.beanName.substring(4)),e[t]?e[t].push(i.id):e[t]=[i.id],t){case"Member":e.User?e.User.push(i.userId):e.User=[i.userId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Group":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Resource":e.Facility?e.Facility.push(i.facilityId):e.Facility=[i.facilityId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"ResourceTag":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId]}}return e}principalHasRole(t,e,i){let n=e;return e.startsWith("Rich")&&(n=e.substring(4)),!(!this.principal.roles[t]||!this.principal.roles[t][n])&&this.principal.roles[t][n].includes(Number(i.toString()))}fetchPolicyWithAllIncludedPolicies(t){const e=new Map;let i=[];for(i.push(t);0!==i.length;){const n=i.shift();if(e.has(n)){console.log("Policy {} creates a cycle in the included policies of the policy {}",n,t);continue}const s=this.getPerunPolicy(n);if(!s)return[];e.set(n,s),i=i.concat(s.includePolicies)}const n=[];for(const s of e.values())n.push(s);return n}getPerunPolicy(t){for(const e of this.perunPolicies)if(e.policyName===t)return e;return console.log("policy with name"+t+"was not found"),null}canManageFacilities(){return this.hasAtLeastOne(Jf.PERUNADMIN,Jf.PERUNOBSERVER,Jf.FACILITYADMIN,Jf.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(Jf.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(Jf.PERUNADMIN,Jf.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(Jf.PERUNADMIN,Jf.VOADMIN)}isThisVoAdminOrObserver(t){return this.editableVos.includes(t)||this.observableVos.includes(t)||this.hasAtLeastOne(Jf.PERUNADMIN,Jf.PERUNOBSERVER)}isThisVoAdmin(t){return this.editableVos.includes(t)||this.principalRoles.has(Jf.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(Jf.PERUNADMIN,Jf.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(Jf.SPONSOR)}isThisGroupAdmin(t){return this.editableGroups.includes(t)||this.principalRoles.has(Jf.PERUNADMIN)}isGroupAdminInThisVo(t){return this.hasGroupInTheseVos.includes(t)}isFacilityAdmin(){return this.hasAtLeastOne(Jf.PERUNADMIN,Jf.FACILITYADMIN)}isThisFacilityAdmin(t){return this.editableFacilities.includes(t)||this.principalRoles.has(Jf.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(Jf.PERUNADMIN,Jf.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(Jf.PERUNADMIN,Jf.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(Jf.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(Jf.PERUNADMIN,Jf.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(Jf.PERUNADMIN,Jf.VOOBSERVER,Jf.PERUNOBSERVER)}isThisVoObserver(t){return this.hasAtLeastOne(Jf.PERUNADMIN,Jf.PERUNOBSERVER)||this.observableVos.includes(t)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((t,e)=>{this.authzSevice.getAllRolesManagementRules().subscribe(e=>{this.allRolesManagementRules=e,t()},t=>e(t))})}assignAvailableRoles(t,e){this.allRolesManagementRules.forEach(i=>{i.primaryObject===e&&t.push(i.roleName)}),t.sort(),"Vo"===e&&this.voCustomSort(t)}isManagerPagePrivileged(t){const e=[];let i=t.beanName;i.startsWith("Rich")&&(i=i.substr(4)),this.assignAvailableRoles(e,i);const n=new Map;this.getRolesAuthorization(e,t,n);for(const s of n.values())if(s.readAuth||s.manageAuth)return!0;return!1}getRolesAuthorization(t,e,i){for(const n of t){let t=[],s=[],r=[];for(const e of this.allRolesManagementRules)if(e.roleName===n){t=t.concat(e.privilegedRolesToRead),s=s.concat(e.privilegedRolesToManage);for(const t of Object.keys(e.entitiesToManage))r="User"===t?[t].concat(r):r.concat(t);break}const o=this.fetchAllRelatedObjects([e]),a=this.resolveAuthorization(t,o),c=this.resolveAuthorization(s,o);i.set(n,{readAuth:a,manageAuth:c,modes:r})}}voCustomSort(t){for(let e=0;e{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function rp(...t){return K(1)(Bd(...t))}const op=new y(t=>t.complete());function ap(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):op}function cp(t){return new y(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?B(i):ap()).subscribe(e)})}function up(t,e){return"function"==typeof e?i=>i.pipe(up((i,n)=>B(t(i,n)).pipe(I((t,s)=>e(i,t,n,s))))):e=>e.lift(new lp(t))}class lp{constructor(t){this.project=t}call(t,e){return e.subscribe(new hp(t,this.project))}}class hp extends z{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const s=new S(this,e,i),r=this.destination;r.add(s),this.innerSubscription=L(this,t,void 0,void 0,s),this.innerSubscription!==s&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}const dp=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function fp(t){return e=>0===t?ap():e.lift(new pp(t))}class pp{constructor(t){if(this.total=t,this.total<0)throw new dp}call(t,e){return e.subscribe(new gp(t,this.total))}}class gp extends p{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function mp(...t){const e=t[t.length-1];return C(e)?(t.pop(),i=>rp(t,i,e)):e=>rp(t,e)}function _p(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new yp(t,e,i))}}class yp{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new wp(t,this.accumulator,this.seed,this.hasSeed))}}class wp extends p{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}function bp(t){return function(e){const i=new vp(t),n=e.lift(i);return i.caught=n}}class vp{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Ap(t,this.selector,this.caught))}}class Ap extends z{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new S(this,void 0,void 0);this.add(n);const s=L(this,i,void 0,void 0,n);s!==n&&this.add(s)}}}function kp(t){return function(e){return 0===t?ap():e.lift(new Tp(t))}}class Tp{constructor(t){if(this.total=t,this.total<0)throw new dp}call(t,e){return e.subscribe(new Cp(t,this.total))}}class Cp extends p{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;se.lift(new Mp(t))}class Mp{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Ep(t,this.errorFactory))}}class Ep extends p{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function xp(){return new sp}function Rp(t=null){return e=>e.lift(new Dp(t))}class Dp{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Pp(t,this.defaultValue))}}class Pp extends p{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Lp(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Yd((e,i)=>t(e,i,n)):_,fp(1),i?Rp(e):Sp(()=>new sp))}function zp(){}function Ip(t,e,i){return function(n){return n.lift(new Fp(t,e,i))}}class Fp{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new Hp(t,this.nextOrObserver,this.error,this.complete))}}class Hp extends p{constructor(t,e,i,s){super(t),this._tapNext=zp,this._tapError=zp,this._tapComplete=zp,this._tapError=i||zp,this._tapComplete=s||zp,n(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||zp,this._tapError=e.error||zp,this._tapComplete=e.complete||zp)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function Op(t){return e=>e.lift(new Bp(t))}class Bp{constructor(t){this.callback=t}call(t,e){return e.subscribe(new jp(t,this.callback))}}class jp extends p{constructor(t,e){super(t),this.add(new h(e))}}class Yp{constructor(t,e){this.id=t,this.url=e}}class Np extends Yp{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Kp extends Yp{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Up extends Yp{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Vp extends Yp{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class qp extends Yp{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $p extends Yp{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wp extends Yp{constructor(t,e,i,n,s){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Gp extends Yp{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Jp extends Yp{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Zp{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Qp{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Xp{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tg{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eg{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ig{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ng{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const sg="primary";class rg{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function og(t){return new rg(t)}function ag(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function cg(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function hg(t){return Array.prototype.concat.apply([],t)}function dg(t){return t.length>0?t[t.length-1]:null}function fg(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function pg(t){return Go(t)?t:$o(t)?B(Promise.resolve(t)):Bd(t)}const gg={exact:function t(e,i,n){if(!Tg(e.segments,i.segments))return!1;if(!bg(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const s in i.children){if(!e.children[s])return!1;if(!t(e.children[s],i.children[s],n))return!1}return!0},subset:yg},mg={exact:function(t,e){return ug(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>lg(t[i],e[i]))},ignored:()=>!0};function _g(t,e,i){return gg[i.paths](t.root,e.root,i.matrixParams)&&mg[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function yg(t,e,i){return wg(t,e,e.segments,i)}function wg(t,e,i,n){if(t.segments.length>i.length){const s=t.segments.slice(0,i.length);return!!Tg(s,i)&&!e.hasChildren()&&!!bg(s,i,n)}if(t.segments.length===i.length){if(!Tg(t.segments,i))return!1;if(!bg(t.segments,i,n))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!yg(t.children[i],e.children[i],n))return!1}return!0}{const s=i.slice(0,t.segments.length),r=i.slice(t.segments.length);return!!Tg(t.segments,s)&&!!bg(t.segments,s,n)&&!!t.children.primary&&wg(t.children.primary,e,r,n)}}function bg(t,e,i){return e.every((e,n)=>mg[i](t[n].parameters,e.parameters))}class vg{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=og(this.queryParams)),this._queryParamMap}toString(){return Mg.serialize(this)}}class Ag{constructor(t,e){this.segments=t,this.children=e,this.parent=null,fg(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Eg(this)}}class kg{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=og(this.parameters)),this._parameterMap}toString(){return Ig(this)}}function Tg(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class Cg{}class Sg{parse(t){const e=new jg(t);return new vg(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${xg(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Dg(e)}=${Dg(t)}`).join("&"):`${Dg(e)}=${Dg(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Mg=new Sg;function Eg(t){return t.segments.map(t=>Ig(t)).join("/")}function xg(t,e){if(!t.hasChildren())return Eg(t);if(e){const e=t.children.primary?xg(t.children.primary,!1):"",i=[];return fg(t.children,(t,e)=>{e!==sg&&i.push(`${e}:${xg(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return fg(t.children,(t,n)=>{n===sg&&(i=i.concat(e(t,n)))}),fg(t.children,(t,n)=>{n!==sg&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>i===sg?[xg(t.children.primary,!1)]:[`${i}:${xg(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Eg(t)}/${e[0]}`:`${Eg(t)}/(${e.join("//")})`}}function Rg(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Dg(t){return Rg(t).replace(/%3B/gi,";")}function Pg(t){return Rg(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Lg(t){return decodeURIComponent(t)}function zg(t){return Lg(t.replace(/\+/g,"%20"))}function Ig(t){return`${Pg(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Pg(t)}=${Pg(e[t])}`).join("")}`;var e}const Fg=/^[^\/()?;=#]+/;function Hg(t){const e=t.match(Fg);return e?e[0]:""}const Og=/^[^=?&#]+/,Bg=/^[^?&#]+/;class jg{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ag([],{}):new Ag([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new Ag(t,e)),i}parseSegment(){const t=Hg(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new kg(Lg(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Hg(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Hg(this.remaining);t&&(i=t,this.capture(i))}t[Lg(e)]=Lg(i)}parseQueryParam(t){const e=function(t){const e=t.match(Og);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Bg);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=zg(e),s=zg(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Hg(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=sg);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new Ag([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Yg{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Ng(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Ng(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Kg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Kg(t,this._root).map(t=>t.value)}}function Ng(t,e){if(t===e.value)return e;for(const i of e.children){const e=Ng(t,i);if(e)return e}return null}function Kg(t,e){if(t===e.value)return[e];for(const i of e.children){const n=Kg(t,i);if(n.length)return n.unshift(e),n}return[]}class Ug{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Vg(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class qg extends Yg{constructor(t,e){super(t),this.snapshot=e,Qg(this,t)}toString(){return this.snapshot.toString()}}function $g(t,e){const i=function(t,e){const i=new Jg([],{},{},"",{},sg,e,null,t.root,-1,{});return new Zg("",new Ug(i,[]))}(t,e),n=new Xf([new kg("",{})]),s=new Xf({}),r=new Xf({}),o=new Xf({}),a=new Xf(""),c=new Wg(n,s,o,a,r,sg,e,i.root);return c.snapshot=i.root,new qg(new Ug(c,[]),i)}class Wg{constructor(t,e,i,n,s,r,o,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=o,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(I(t=>og(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(I(t=>og(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Gg(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Jg{constructor(t,e,i,n,s,r,o,a,c,u,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}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=og(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=og(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Zg extends Yg{constructor(t,e){super(e),this.url=t,Qg(this,e)}toString(){return Xg(this._root)}}function Qg(t,e){e.value._routerState=t,e.children.forEach(e=>Qg(t,e))}function Xg(t){const e=t.children.length>0?` { ${t.children.map(Xg).join(", ")} } `:"";return`${t.value}${e}`}function tm(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,ug(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),ug(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iug(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||em(t.parent,e.parent))}function im(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return im(t,e,n);return im(t,e)})}(t,e,i);return new Ug(n,s)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const t=i.route;return nm(e,t),t}}const i=new Wg(new Xf((n=e.value).url),new Xf(n.params),new Xf(n.queryParams),new Xf(n.fragment),new Xf(n.data),n.outlet,n.component,n),s=e.children.map(e=>im(t,e));return new Ug(i,s)}var n}function nm(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new vg(i.root===t?e:am(i.root,t,e),r,s)}function am(t,e,i){const n={};return fg(t.children,(t,s)=>{n[s]=t===e?i:am(t,e,i)}),new Ag(t.segments,n)}class cm{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&sm(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(rm);if(n&&n!==dg(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class um{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function lm(t,e,i){if(t||(t=new Ag([],{})),0===t.segments.length&&t.hasChildren())return hm(t,e,i);const n=function(t,e,i){let n=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return r;const e=t.segments[s],o=i[n];if(rm(o))break;const a=`${o}`,c=n0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!gm(a,c,e))return r;n+=2}else{if(!gm(a,{},e))return r;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=lm(t.children[n],e,i))}),fg(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new Ag(t.segments,s)}}function dm(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=dm(new Ag([],{}),0,t))}),e}function pm(t){const e={};return fg(t,(t,i)=>e[i]=`${t}`),e}function gm(t,e,i){return t==i.path&&ug(e,i.parameters)}class mm{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),tm(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=Vg(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),fg(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,s=Vg(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const n=Vg(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new ig(t.value.snapshot))}),t.children.length&&this.forwardEvent(new tg(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(tm(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),_m(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function _m(t){tm(t.value),t.children.forEach(_m)}class ym{constructor(t,e){this.routes=t,this.module=e}}function wm(t){return"function"==typeof t}function bm(t){return t instanceof vg}const vm=Symbol("INITIAL_VALUE");function Am(){return up(t=>ep(t.map(t=>t.pipe(fp(1),mp(vm)))).pipe(_p((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==vm)return t;if(n===vm&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||bm(n))return n}return t},t)},vm),Yd(t=>t!==vm),I(t=>bm(t)?t:!0===t),fp(1)))}let km=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&No(0,"router-outlet")},directives:function(){return[b_]},encapsulation:2}),t})();function Tm(t,e=""){for(let i=0;iEm(t)===e);return i.push(...t.filter(t=>Em(t)!==e)),i}const Rm={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Dm(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},Rm):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||cg)(i,t,e);if(!s)return Object.assign({},Rm);const r={};fg(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function Pm(t,e,i,n,s="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>Lm(t,e,i)&&Em(i)!==sg)}(t,i,n)){const s=new Ag(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const r of i)if(""===r.path&&Em(r)!==sg){const i=new Ag([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[Em(r)]=i}return s}(t,e,n,new Ag(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>Lm(t,e,i))}(t,i,n)){const r=new Ag(t.segments,function(t,e,i,n,s,r){const o={};for(const a of n)if(Lm(t,i,a)&&!s[Em(a)]){const i=new Ag([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Em(a)]=i}return Object.assign(Object.assign({},s),o)}(t,e,i,n,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}const r=new Ag(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}function Lm(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function zm(t,e,i,n){return!!(Em(t)===n||n!==sg&&Lm(e,i,t))&&("**"===t.path||Dm(e,t,i).matched)}function Im(t,e,i){return 0===e.length&&!t.children[i]}class Fm{constructor(t){this.segmentGroup=t||null}}class Hm{constructor(t){this.urlTree=t}}function Om(t){return new y(e=>e.error(new Fm(t)))}function Bm(t){return new y(e=>e.error(new Hm(t)))}function jm(t){return new y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ym{constructor(t,e,i,n,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Bc)}apply(){const t=Pm(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ag(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,sg).pipe(I(t=>this.createUrlTree(Nm(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(bp(t=>{if(t instanceof Hm)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Fm)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,sg).pipe(I(e=>this.createUrlTree(Nm(e),t.queryParams,t.fragment))).pipe(bp(t=>{if(t instanceof Fm)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new Ag([],{[sg]:t}):t;return new vg(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(I(t=>new Ag([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const s of Object.keys(i.children))"primary"===s?n.unshift(s):n.push(s);return B(n).pipe(jd(n=>{const s=i.children[n],r=xm(e,n);return this.expandSegmentGroup(t,r,s,n).pipe(I(t=>({segment:t,outlet:n})))}),_p((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Yd((e,i)=>t(e,i,n)):_,kp(1),i?Rp(e):Sp(()=>new sp))}())}expandSegment(t,e,i,n,s,r){return B(i).pipe(jd(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,s,r).pipe(bp(t=>{if(t instanceof Fm)return Bd(null);throw t}))),Lp(t=>!!t),bp((t,i)=>{if(t instanceof sp||"EmptyError"===t.name){if(Im(e,n,s))return Bd(new Ag([],{}));throw new Fm(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,s,r,o){return zm(n,e,s,r)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r):Om(e):Om(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Bm(s):this.lineralizeSegments(i,s).pipe(j(i=>{const s=new Ag(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:u}=Dm(e,n,s);if(!o)return Om(e);const l=this.applyRedirectCommands(a,n.redirectTo,u);return n.redirectTo.startsWith("/")?Bm(l):this.lineralizeSegments(n,l).pipe(j(n=>this.expandSegment(t,e,i,n.concat(s.slice(c)),r,!1)))}matchSegmentAgainstRoute(t,e,i,n,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?Bd(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(I(t=>(i._loadedConfig=t,new Ag(n,{})))):Bd(new Ag(n,{}));const{matched:r,consumedSegments:o,lastChild:a}=Dm(e,i,n);if(!r)return Om(e);const c=n.slice(a);return this.getChildConfig(t,i,n).pipe(j(t=>{const n=t.module,r=t.routes,{segmentGroup:a,slicedSegments:u}=Pm(e,o,c,r),l=new Ag(a.segments,a.children);if(0===u.length&&l.hasChildren())return this.expandChildren(n,r,l).pipe(I(t=>new Ag(o,t)));if(0===r.length&&0===u.length)return Bd(new Ag(o,{}));const h=Em(i)===s;return this.expandSegment(n,l,r,u,h?sg:s,!0).pipe(I(t=>new Ag(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Bd(new ym(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Bd(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(j(i=>i?this.configLoader.load(t.injector,e).pipe(I(t=>(e._loadedConfig=t,t))):function(t){return new y(e=>e.error(ag(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Bd(new ym([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;return n&&0!==n.length?Bd(n.map(n=>{const s=t.get(n);let r;if(function(t){return t&&wm(t.canLoad)}(s))r=s.canLoad(e,i);else{if(!wm(s))throw new Error("Invalid CanLoad guard");r=s(e,i)}return pg(r)})).pipe(Am(),Ip(t=>{if(!bm(t))return;const e=ag(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),I(t=>!0===t)):Bd(!0)}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Bd(i);if(n.numberOfChildren>1||!n.children.primary)return jm(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new vg(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return fg(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let r={};return fg(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,i,n)}),new Ag(s,r)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function Nm(t){const e={};for(const i of Object.keys(t.children)){const n=Nm(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Ag(t.segments.concat(e.segments),e.children)}return t}(new Ag(t.segments,e))}class Km{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Um{constructor(t,e){this.component=t,this.route=e}}function Vm(t,e,i){const n=t._root;return $m(n,e?e._root:null,i,[n.value])}function qm(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function $m(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=Vg(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!Tg(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Tg(t.url,e.url)||!ug(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!em(t,e)||!ug(t.queryParams,e.queryParams);case"paramsChange":default:return!em(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new Km(n)):(r.data=o.data,r._resolvedData=o._resolvedData),$m(t,e,r.component?a?a.children:null:i,n,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Um(a.outlet.component,o))}else o&&Wm(e,a,s),s.canActivateChecks.push(new Km(n)),$m(t,null,r.component?a?a.children:null:i,n,s)}(t,r[t.value.outlet],i,n.concat([t.value]),s),delete r[t.value.outlet]}),fg(r,(t,e)=>Wm(t,i.getContext(e),s)),s}function Wm(t,e,i){const n=Vg(t),s=t.value;fg(n,(t,n)=>{Wm(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Um(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Gm{}function Jm(t){return new y(e=>e.error(t))}class Zm{constructor(t,e,i,n,s,r){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=Pm(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,sg);if(null===e)return null;const i=new Jg([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},sg,this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Ug(i,e),s=new Zg(this.url,n);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=Gg(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const n=e.children[s],r=xm(t,s),o=this.processSegmentGroup(r,n,s);if(null===o)return null;i.push(...o)}const n=Xm(i);return n.sort((t,e)=>t.value.outlet===sg?-1:e.value.outlet===sg?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,i,n);if(null!==t)return t}return Im(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!zm(t,e,i,n))return null;let s,r=[],o=[];if("**"===t.path){const n=i.length>0?dg(i).parameters:{};s=new Jg(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,i_(t),Em(t),t.component,t,t_(e),e_(e)+i.length,n_(t))}else{const n=Dm(e,t,i);if(!n.matched)return null;r=n.consumedSegments,o=i.slice(n.lastChild),s=new Jg(r,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,i_(t),Em(t),t.component,t,t_(e),e_(e)+r.length,n_(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=Pm(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new Ug(s,t)]}if(0===a.length&&0===u.length)return[new Ug(s,[])];const l=Em(t)===n,h=this.processSegment(a,c,u,l?sg:n);return null===h?null:[new Ug(s,h)]}}function Qm(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Xm(t){const e=[],i=new Set;for(const n of t){if(!Qm(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),i.add(t)):e.push(n)}for(const n of i){const t=Xm(n.children);e.push(new Ug(n.value,t))}return e.filter(t=>!i.has(t))}function t_(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function e_(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function i_(t){return t.data||{}}function n_(t){return t.resolve||{}}function s_(t){return up(e=>{const i=t(e);return i?B(i).pipe(I(()=>e)):Bd(e)})}class r_ extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const o_=new Ji("ROUTES");class a_{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe(I(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new ym(hg(n.injector.get(o_,void 0,vt.Self|vt.Optional)).map(Mm),n)}),bp(t=>{throw e._loader$=void 0,t}));return e._loader$=new G(i,()=>new k).pipe(q()),e._loader$}loadModuleFactory(t){return"string"==typeof t?B(this.loader.load(t)):pg(t()).pipe(j(t=>t instanceof jc?Bd(t):B(this.compiler.compileModuleAsync(t))))}}class c_{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new u_,this.attachRef=null}}class u_{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new c_,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class l_{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function h_(t){throw t}function d_(t,e,i){return e.parse("/")}function f_(t,e){return Bd(null)}const p_={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},g_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let m_=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=h_,this.malformedUriErrorHandler=d_,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:f_,afterPreactivation:f_},this.urlHandlingStrategy=new l_,this.routeReuseStrategy=new r_,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(Bc),this.console=s.get(Uu);const c=s.get(nl);this.isNgZoneEnabled=c instanceof nl&&nl.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new vg(new Ag([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new a_(r,o,t=>this.triggerEvent(new Zp(t)),t=>this.triggerEvent(new Qp(t))),this.routerState=$g(this.currentUrlTree,this.rootComponentType),this.transitions=new Xf({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()}setupNavigations(t){const e=this.events;return t.pipe(Yd(t=>0!==t.id),I(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),up(t=>{let i=!1,n=!1;return Bd(t).pipe(Ip(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),up(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Bd(t).pipe(up(t=>{const i=this.transitions.getValue();return e.next(new Np(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?op:Promise.resolve(t)}),function(t,e,i,n){return up(s=>function(t,e,i,n,s){return new Ym(t,e,i,n,s).apply()}(t,e,i,s.extractedUrl,n).pipe(I(t=>Object.assign(Object.assign({},s),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Ip(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return j(r=>function(t,e,i,n,s="emptyOnly",r="legacy"){try{const o=new Zm(t,e,i,n,s,r).recognize();return null===o?Jm(new Gm):Bd(o)}catch(o){return Jm(o)}}(t,e,r.urlAfterRedirects,i(r.urlAfterRedirects),n,s).pipe(I(t=>Object.assign(Object.assign({},r),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Ip(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const i=new qp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:r,extras:o}=t,a=new Np(i,this.serializeUrl(n),s,r);e.next(a);const c=$g(n,this.rootComponentType).snapshot;return Bd(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),op}),s_(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),Ip(t=>{const e=new $p(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),I(t=>Object.assign(Object.assign({},t),{guards:Vm(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return j(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=i;return 0===o.length&&0===r.length?Bd(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return B(t).pipe(j(t=>function(t,e,i,n,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Bd(r.map(r=>{const o=qm(r,e,s);let a;if(function(t){return t&&wm(t.canDeactivate)}(o))a=pg(o.canDeactivate(t,e,i,n));else{if(!wm(o))throw new Error("Invalid CanDeactivate guard");a=pg(o(t,e,i,n))}return a.pipe(Lp())})).pipe(Am()):Bd(!0)}(t.component,t.route,i,e,n)),Lp(t=>!0!==t,!0))}(o,n,s,t).pipe(j(i=>i&&"boolean"==typeof i?function(t,e,i,n){return B(e).pipe(jd(e=>rp(function(t,e){return null!==t&&e&&e(new Xp(t)),Bd(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new eg(t)),Bd(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>cp(()=>Bd(e.guards.map(s=>{const r=qm(s,e.node,i);let o;if(function(t){return t&&wm(t.canActivateChild)}(r))o=pg(r.canActivateChild(n,t));else{if(!wm(r))throw new Error("Invalid CanActivateChild guard");o=pg(r(n,t))}return o.pipe(Lp())})).pipe(Am())));return Bd(s).pipe(Am())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Bd(n.map(n=>cp(()=>{const s=qm(n,e,i);let r;if(function(t){return t&&wm(t.canActivate)}(s))r=pg(s.canActivate(e,t));else{if(!wm(s))throw new Error("Invalid CanActivate guard");r=pg(s(e,t))}return r.pipe(Lp())}))).pipe(Am()):Bd(!0)}(t,e.route,i))),Lp(t=>!0!==t,!0))}(n,r,t,e):Bd(i)),I(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),Ip(t=>{if(bm(t.guardsResult)){const e=ag(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new Wp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Yd(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),s_(t=>{if(t.guards.canActivateChecks.length)return Bd(t).pipe(Ip(t=>{const e=new Gp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),up(t=>{let e=!1;return Bd(t).pipe((i=this.paramsInheritanceStrategy,n=this.ngModule.injector,j(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return Bd(t);let r=0;return B(s).pipe(jd(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return Bd({});const r={};return B(s).pipe(j(s=>function(t,e,i,n){const s=qm(t,e,n);return pg(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe(Ip(t=>{r[s]=t}))),kp(1),j(()=>Object.keys(r).length===s.length?Bd(r):op))}(t._resolve,t,e,n).pipe(I(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Gg(t,i).resolve),null)))}(t.route,e,i,n)),Ip(()=>r++),kp(1),j(e=>r===s.length?Bd(t):op))})),Ip({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var i,n}),Ip(t=>{const e=new Jp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),s_(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),I(t=>{const e=function(t,e,i){const n=im(t,e._root,i?i._root:void 0);return new qg(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Ip(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),I(t=>(new mm(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),Ip({next(){i=!0},complete(){i=!0}}),Op(()=>{i||n||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),bp(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=bm(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new Up(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new Vp(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(r){t.reject(r)}}var s;return op}));var s,r,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Tm(t),this.config=t.map(Mm),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(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=i||this.routerState.root,c=o?this.currentUrlTree.fragment:s;let u=null;switch(r){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=n||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,i,n,s){if(0===i.length)return om(e.root,e.root,e,n,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new cm(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return fg(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new cm(i,e,n)}(i);if(r.toRoot())return om(e.root,new Ag([],{}),e,n,s);const o=function(t,e,i){if(t.isAbsolute)return new um(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new um(t,t===e.root,0)}const n=sm(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,r=i;for(;r>s;){if(r-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new um(n,!1,s-r)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?hm(o.segmentGroup,o.index,r.commands):lm(o.segmentGroup,o.index,r.commands);return om(o.segmentGroup,a,e,n,s)}(a,this.currentUrlTree,t,u,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const i=bm(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(n,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Kp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){if(this.disposed)return Promise.resolve(!1);const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let c,u,l;s?(c=s.resolve,u=s.reject,l=s.promise):l=new Promise((t,e)=>{c=t,u=e});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const i=this.urlSerializer.serialize(t),n=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(i)||e.extras.replaceUrl?this.location.replaceState(i,"",n):this.location.go(i,"",n)}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const i=new Up(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(gn(Qi),gn(Cg),gn(u_),gn(Zl),gn(yo),gn(Sl),gn(tl),gn(void 0))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),__=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new k,null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:w_(this.skipLocationChange),replaceUrl:w_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:w_(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Ho(m_),Ho(Wg),$i("tabindex"),Ho(ac),Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Jo("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[ue]}),t})(),y_=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new k,this.subscription=t.events.subscribe(t=>{t instanceof Kp&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:w_(this.skipLocationChange),replaceUrl:w_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:w_(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Ho(m_),Ho(Wg),Ho(ql))},t.\u0275dir=Gt({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Jo("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(La("href",e.href,os),Lo("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[ue]}),t})();function w_(t){return""===t||!!t}let b_=(()=>{class t{constructor(t,e,i,n,s){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new mu,this.deactivateEvents=new mu,this.name=n||sg,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new v_(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Ho(u_),Ho(Nc),Ho(tc),$i("name"),Ho(Rc))},t.\u0275dir=Gt({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class v_{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Wg?this.route:t===u_?this.childContexts:this.parent.get(t,e)}}class A_{}class k_{preload(t,e){return Bd(null)}}let T_=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new a_(e,i,e=>t.triggerEvent(new Zp(e)),e=>t.triggerEvent(new Qp(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Yd(t=>t instanceof Kp),jd(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Bc);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return B(i).pipe(K(),I(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?Bd(e._loadedConfig):this.loader.load(t.injector,e)).pipe(j(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(gn(m_),gn(Sl),gn(tl),gn(yo),gn(A_))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),C_=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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(t=>{t instanceof Np?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Kp&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof ng&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new ng(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(gn(m_),gn(id),gn(void 0))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const S_=new Ji("ROUTER_CONFIGURATION"),M_=new Ji("ROUTER_FORROOT_GUARD"),E_=[Zl,{provide:Cg,useClass:Sg},{provide:m_,useFactory:function(t,e,i,n,s,r,o,a={},c,u){const l=new m_(null,t,e,i,n,s,r,hg(o));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,l),a.enableTracing&&l.events.subscribe(t=>{var e,i;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),l},deps:[Cg,u_,Zl,yo,Sl,tl,o_,S_,[class{},new bn],[class{},new bn]]},u_,{provide:Wg,useFactory:function(t){return t.routerState.root},deps:[m_]},{provide:Sl,useClass:xl},T_,k_,class{preload(t,e){return e().pipe(bp(()=>Bd(null)))}},{provide:S_,useValue:{enableTracing:!1}}];function x_(){return new wl("Router",m_)}let R_=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[E_,z_(e),{provide:M_,useFactory:L_,deps:[[m_,new bn,new vn]]},{provide:S_,useValue:i||{}},{provide:ql,useFactory:P_,deps:[Hl,[new wn(Wl),new bn],S_]},{provide:C_,useFactory:D_,deps:[m_,id,S_]},{provide:A_,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:k_},{provide:wl,multi:!0,useFactory:x_},[I_,{provide:Fu,multi:!0,useFactory:F_,deps:[I_]},{provide:O_,useFactory:H_,deps:[I_]},{provide:Ku,multi:!0,useExisting:O_}]]}}static forChild(e){return{ngModule:t,providers:[z_(e)]}}}return t.\u0275fac=function(e){return new(e||t)(gn(M_,8),gn(m_,8))},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})();function D_(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new C_(t,e,i)}function P_(t,e,i={}){return i.useHash?new Jl(t,e):new Gl(t,e)}function L_(t){return"guarded"}function z_(t){return[{provide:Zi,multi:!0,useValue:t},{provide:o_,multi:!0,useValue:t}]}let I_=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new k}appInitializer(){return this.injector.get(Bl,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(m_),n=this.injector.get(S_);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?Bd(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(S_),i=this.injector.get(T_),n=this.injector.get(C_),s=this.injector.get(m_),r=this.injector.get(Tl);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),i.setUpPreloading(),n.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(gn(yo))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function F_(t){return t.appInitializer.bind(t)}function H_(t){return t.bootstrapListener.bind(t)}const O_=new Ji("Router Initializer"),B_=13,j_=27,Y_=32,N_=37,K_=38,U_=39,V_=40;function q_(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class $_ extends h{constructor(t,e){super()}schedule(t,e=0){return this}}class W_ extends $_{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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,n=!1;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let G_=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class J_ extends G_{constructor(t,e=G_.now){super(t,()=>J_.delegate&&J_.delegate!==this?J_.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return J_.delegate&&J_.delegate!==this?J_.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const Z_=new J_(W_);function Q_(t,e=Z_){return i=>i.lift(new X_(t,e))}class X_{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new ty(t,this.dueTime,this.scheduler))}}class ty extends p{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ey,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function ey(t){t.debouncedNext()}function iy(t){return null!=t&&"false"!=`${t}`}function ny(t,e=0){return sy(t)?Number(t):e}function sy(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function ry(t){return Array.isArray(t)?t:[t]}function oy(t){return null==t?"":"string"==typeof t?t:`${t}px`}function ay(t){return t instanceof sc?t.nativeElement:t}let cy;try{cy="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(tU){cy=!1}let uy,ly=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?"browser"===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&&!cy)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(gn(Nu))},t.\u0275prov=dt({factory:function(){return new t(gn(Nu))},token:t,providedIn:"root"}),t})(),hy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})();const dy=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fy(){if(uy)return uy;if("object"!=typeof document||!document)return uy=new Set(dy),uy;let t=document.createElement("input");return uy=new Set(dy.filter(e=>(t.setAttribute("type",e),t.type===e))),uy}let py,gy,my,_y;function yy(t){return function(){if(null==py&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>py=!0}))}finally{py=py||!1}return py}()?t:!!t.capture}function wy(){if(null==my){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return my=!1,my;if("scrollBehavior"in document.documentElement.style)my=!0;else{const t=Element.prototype.scrollTo;my=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return my}function by(){if("object"!=typeof document||!document)return 0;if(null==gy){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),gy=0,0===t.scrollLeft&&(t.scrollLeft=1,gy=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return gy}function vy(t){if(function(){if(null==_y){const t="undefined"!=typeof document?document.head:null;_y=!(!t||!t.createShadowRoot&&!t.attachShadow)}return _y}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Ay(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}let ky=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Ty=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=ay(t);return new y(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new k,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(gn(ky))},t.\u0275prov=dt({factory:function(){return new t(gn(ky))},token:t,providedIn:"root"}),t})(),Cy=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new mu,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=iy(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=ny(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Q_(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ty),Ho(sc),Ho(nl))},t.\u0275dir=Gt({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Sy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[ky]}),t})();function My(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const Ey="cdk-describedby-message-container",xy="cdk-describedby-host";let Ry=0;const Dy=new Map;let Py=null,Ly=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=zy(e,i);"string"!=typeof e?(Iy(e),Dy.set(n,{messageElement:e,referenceCount:0})):Dy.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=zy(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=Dy.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}Py&&0===Py.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=Dy.get(e);!function(t,e,i){const n=My(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute(xy,""),i.referenceCount++}_removeMessageReference(t,e){const i=Dy.get(e);i.referenceCount--,function(t,e,i){const n=My(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute(xy)}_isElementDescribedByMessage(t,e){const i=My(t,"aria-describedby"),n=Dy.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(gn(Fl))},t.\u0275prov=dt({factory:function(){return new t(gn(Fl))},token:t,providedIn:"root"}),t})();function zy(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function Iy(t){t.id||(t.id="cdk-describedby-message-"+Ry++)}class Fy{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new k,this._typeaheadSubscription=h.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new k,this.change=new k,t instanceof yu&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ip(t=>this._pressedLetters.push(t)),Q_(t),Yd(()=>this._pressedLetters.length>0),I(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case V_:if(this._vertical&&i){this.setNextItemActive();break}return;case K_:if(this._vertical&&i){this.setPreviousItemActive();break}return;case U_:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case N_:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||q_(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof yu?this._items.toArray():this._items}}class Hy extends Fy{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Oy extends Fy{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let By=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(tU){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===Yy(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=Yy(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||jy(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(gn(ly))},t.\u0275prov=dt({factory:function(){return new t(gn(ly))},token:t,providedIn:"root"}),t})();function jy(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Yy(t){if(!jy(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Ny{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(fp(1)).subscribe(t)}}let Ky=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new Ny(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(gn(By),gn(nl),gn(Fl))},t.\u0275prov=dt({factory:function(){return new t(gn(By),gn(nl),gn(Fl))},token:t,providedIn:"root"}),t})(),Uy=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=iy(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=iy(t)}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(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Ay(),this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Ky),Ho(Fl))},t.\u0275dir=Gt({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[ue]}),t})();"undefined"!=typeof Element&∈const Vy=new Ji("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),qy=new Ji("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let $y=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),i=this._document.createElement("div");for(let n=0;n{class t{constructor(t,e,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho($y),Ho(Ty),Ho(nl))},t.\u0275dir=Gt({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function Gy(t){return 0===t.buttons}function Jy(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const Zy=new Ji("cdk-focus-monitor-default-options"),Qy=yy({passive:!0,capture:!0});let Xy=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=Gy(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{Jy(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=tw(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=tw(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=ay(t);if(!this._platform.isBrowser||1!==i.nodeType)return Bd(null);const n=vy(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new k,rootNode:n};return this._elementInfo.set(i,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=ay(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=ay(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=tw(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===tw(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Qy),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Qy)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Qy),t.addEventListener("mousedown",this._documentMousedownListener,Qy),t.addEventListener("touchstart",this._documentTouchstartListener,Qy),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Qy),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Qy),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Qy),t.removeEventListener("mousedown",this._documentMousedownListener,Qy),t.removeEventListener("touchstart",this._documentTouchstartListener,Qy),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(gn(nl),gn(ly),gn(Fl,8),gn(Zy,8))},t.\u0275prov=dt({factory:function(){return new t(gn(nl),gn(ly),gn(Fl,8),gn(Zy,8))},token:t,providedIn:"root"}),t})();function tw(t){return t.composedPath?t.composedPath()[0]:t.target}let ew=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new mu}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Xy))},t.\u0275dir=Gt({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const iw="cdk-high-contrast-black-on-white",nw="cdk-high-contrast-white-on-black",sw="cdk-high-contrast-active";let rw=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(sw),t.remove(iw),t.remove(nw),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(sw),t.add(iw)):2===e&&(t.add(sw),t.add(nw))}}}return t.\u0275fac=function(e){return new(e||t)(gn(ly),gn(Fl))},t.\u0275prov=dt({factory:function(){return new t(gn(ly),gn(Fl))},token:t,providedIn:"root"}),t})(),ow=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(gn(rw))},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[hy,Sy]]}),t})();const aw=new Ji("cdk-dir-doc",{providedIn:"root",factory:function(){return mn(Fl)}});let cw=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new mu,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(gn(aw,8))},t.\u0275prov=dt({factory:function(){return new t(gn(aw,8))},token:t,providedIn:"root"}),t})(),uw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})();const lw=new lc("12.0.5");class hw{}const dw="*";function fw(t,e){return{type:7,name:t,definitions:e,options:{}}}function pw(t,e=null){return{type:4,styles:e,timings:t}}function gw(t,e=null){return{type:3,steps:t,options:e}}function mw(t,e=null){return{type:2,steps:t,options:e}}function _w(t){return{type:6,styles:t,offset:null}}function yw(t,e,i){return{type:0,name:t,styles:e,options:i}}function ww(t){return{type:5,steps:t}}function bw(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function vw(t=null){return{type:9,options:t}}function Aw(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function kw(t){Promise.resolve(null).then(t)}class Tw{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){kw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Cw{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?kw(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Sw(){return"undefined"!=typeof window&&void 0!==window.document}function Mw(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Ew(t){switch(t.length){case 0:return new Tw;case 1:return t[0];default:return new Cw(t)}}function xw(t,e,i,n,s={},r={}){const o=[],a=[];let c=-1,u=null;if(n.forEach(t=>{const i=t.offset,n=i==c,l=n&&u||{};Object.keys(t).forEach(i=>{let n=i,a=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),a){case"!":a=s[i];break;case dw:a=r[i];break;default:a=e.normalizeStyleValue(i,n,a,o)}l[n]=a}),n||a.push(l),u=l,c=i}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Rw(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&Dw(i,"start",t)));break;case"done":t.onDone(()=>n(i&&Dw(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&Dw(i,"destroy",t)))}}function Dw(t,e,i){const n=i.totalTime,s=Pw(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),r=t._data;return null!=r&&(s._data=r),s}function Pw(t,e,i,n,s="",r=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function Lw(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function zw(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Iw=(t,e)=>!1,Fw=(t,e)=>!1,Hw=(t,e,i)=>[];const Ow=Mw();(Ow||"undefined"!=typeof Element)&&(Iw=Sw()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),Fw=(()=>{if(Ow||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):Fw}})(),Hw=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let qw=(()=>{class t{validateStyleProperty(t){return Yw(t)}matchesElement(t,e){return Nw(t,e)}containsElement(t,e){return Kw(t,e)}query(t,e,i){return Uw(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,r=[],o){return new Tw(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),$w=(()=>{class t{}return t.NOOP=new qw,t})();const Ww="ng-enter",Gw="ng-leave",Jw="ng-trigger",Zw=".ng-trigger",Qw="ng-animating",Xw=".ng-animating";function tb(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:eb(parseFloat(e[1]),e[2])}function eb(t,e){switch(e){case"s":return 1e3*t;default:return t}}function ib(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,r="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=eb(parseFloat(i[1]),i[2]);const o=i[3];null!=o&&(s=eb(parseFloat(o),i[4]));const a=i[5];a&&(r=a)}else n=t;if(!i){let i=!1,r=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:r}}(t,e,i)}function nb(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function sb(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else nb(t,i);return i}function rb(t,e,i){return i?e+":"+i+";":""}function ob(t){let e="";for(let i=0;i{const s=gb(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),Mw()&&ob(t))}function cb(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=gb(e);t.style[i]=""}),Mw()&&ob(t))}function ub(t){return Array.isArray(t)?1==t.length?t[0]:mw(t):t}const lb=new RegExp("{{\\s*(.+?)\\s*}}","g");function hb(t){let e=[];if("string"==typeof t){let i;for(;i=lb.exec(t);)e.push(i[1]);lb.lastIndex=0}return e}function db(t,e,i){const n=t.toString(),s=n.replace(lb,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function fb(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const pb=/-+([a-z0-9])/g;function gb(t){return t.replace(pb,(...t)=>t[1].toUpperCase())}function mb(t,e){return 0===t||0===e}function _b(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let r=e[0],o=[];if(n.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=i[t]}),o.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],r=n[2],o=n[3];e.push(Tb(s,o)),"<"!=r[0]||s==bb&&o==bb||e.push(Tb(o,s))}(t,i,e)):i.push(t),i}const Ab=new Set(["true","1"]),kb=new Set(["false","0"]);function Tb(t,e){const i=Ab.has(t)||kb.has(t),n=Ab.has(e)||kb.has(e);return(s,r)=>{let o=t==bb||t==s,a=e==bb||e==r;return!o&&i&&"boolean"==typeof s&&(o=s?Ab.has(t):kb.has(t)),!a&&n&&"boolean"==typeof r&&(a=r?Ab.has(e):kb.has(e)),o&&a}}const Cb=new RegExp("s*:selfs*,?","g");function Sb(t,e,i){return new Mb(t).build(e,i)}class Mb{constructor(t){this._driver=t}build(t,e){const i=new Eb(e);return this._resetContextStyleTimingState(i),yb(this,ub(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,r=n||{};if(i.styles.forEach(t=>{if(xb(t)){const e=t;Object.keys(e).forEach(t=>{hb(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=fb(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=yb(this,ub(t.animation),e);return{type:1,matchers:vb(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Rb(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>yb(this,t,e)),options:Rb(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=yb(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:Rb(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return Db(ib(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Db(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||ib(n,e),Db(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:_w({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};i.easing&&(t.easing=i.easing),s=_w(t)}e.currentTime+=i.duration+i.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,n=o}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==dw?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(xb(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[i];let a=!0;o&&(s!=n&&s>=o.startTime&&n<=o.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=o.startTime),a&&(r[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=hb(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let r=!1,o=!1,a=0;const c=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(xb(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(xb(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),u=0;return null!=c&&(n++,u=i.offset=c),o=o||u<0||u>1,r=r||u0&&n{const r=l>0?n==h?1:l*n:s[n],o=r*p;e.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(t,e),t.offset=r,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:yb(this,ub(t.animation),e),options:Rb(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Rb(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Rb(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Cb,"")),[t=t.replace(/@\*/g,Zw).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,Xw),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Lw(e.collectedStyles,e.currentQuerySelector,{});const o=yb(this,ub(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:Rb(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:ib(t.timings,e.errors,!0);return{type:12,animation:yb(this,ub(t.animation),e),timings:i,options:null}}}class Eb{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function xb(t){return!Array.isArray(t)&&"object"==typeof t}function Rb(t){var e;return t?(t=nb(t)).params&&(t.params=(e=t.params)?nb(e):null):t={},t}function Db(t,e,i){return{duration:t,delay:e,easing:i}}function Pb(t,e,i,n,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Lb{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const zb=new RegExp(":enter","g"),Ib=new RegExp(":leave","g");function Fb(t,e,i,n,s,r={},o={},a,c,u=[]){return(new Hb).buildKeyframes(t,e,i,n,s,r,o,a,c,u)}class Hb{buildKeyframes(t,e,i,n,s,r,o,a,c,u=[]){c=c||new Lb;const l=new Bb(t,e,c,n,s,u,[]);l.options=a,l.currentTimeline.setStyles([r],null,l.errors,a),yb(this,i,l);const h=l.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,l.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Pb(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(i,n,n.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?tb(i.duration):null,r=null!=i.delay?tb(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,r);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),yb(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Ob);const t=tb(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>yb(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?tb(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),yb(this,r,o),n=Math.max(n,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return ib(e.params?db(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,r=e.createSubContext().currentTimeline;r.easing=i.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?tb(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ob);let r=i;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((i,n)=>{e.currentQueryIndex=n;const o=e.createSubContext(t.options,i);s&&o.delayNextStep(s),i===e.element&&(a=o.currentTimeline),yb(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=i.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const u=c.currentTime;yb(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}}const Ob={};class Bb{constructor(t,e,i,n,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ob,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new jb(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=tb(i.duration)),null!=i.delay&&(n.delay=tb(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=db(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new Bb(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Ob,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new Yb(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,r){let o=[];if(n&&o.push(this.element),t.length>0){t=(t=t.replace(zb,"."+this._enterClassName)).replace(Ib,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class jb{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new jb(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||dw,this._currentKeyframe[t]=dw}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},r=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]=dw})):sb(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=db(r[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:dw),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,r)=>{const o=sb(s,!0);Object.keys(o).forEach(i=>{const n=o[i];"!"==n?t.add(i):n==dw&&e.add(i)}),i||(o.offset=r/this.duration),n.push(o)});const s=t.size?fb(t.values()):[],r=e.size?fb(e.values()):[];if(i){const t=n[0],e=nb(t);t.offset=0,e.offset=1,n=[t,e]}return Pb(this.element,n,s,r,this.duration,this.startTime,this.easing,!1)}}class Yb extends jb{constructor(t,e,i,n,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=i+e,o=e/r,a=sb(t[0],!1);a.offset=0,s.push(a);const c=sb(t[0],!1);c.offset=Nb(o),s.push(c);const u=t.length-1;for(let n=1;n<=u;n++){let o=sb(t[n],!1);o.offset=Nb((e+o.offset*i)/r),s.push(o)}i=r,e=0,n="",t=s}return Pb(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function Nb(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class Kb{}class Ub extends Kb{normalizePropertyName(t,e){return gb(t)}normalizeStyleValue(t,e,i,n){let s="";const r=i.toString().trim();if(Vb[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return r+s}}const Vb=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function qb(t,e,i,n,s,r,o,a,c,u,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}const $b={};class Wb{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],r=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):r}build(t,e,i,n,s,r,o,a,c,u){const l=[],h=this.ast.options&&this.ast.options.params||$b,d=this.buildStyles(i,o&&o.params||$b,l),f=a&&a.params||$b,p=this.buildStyles(n,f,l),g=new Set,m=new Map,_=new Map,y="void"===n,w={params:Object.assign(Object.assign({},h),f)},b=u?[]:Fb(t,e,this.ast.animation,s,r,d,p,w,c,l);let v=0;if(b.forEach(t=>{v=Math.max(t.duration+t.delay,v)}),l.length)return qb(e,this._triggerName,i,n,y,d,p,[],[],m,_,v,l);b.forEach(t=>{const i=t.element,n=Lw(m,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=Lw(_,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&g.add(i)});const A=fb(g.values());return qb(e,this._triggerName,i,n,y,d,p,b,A,m,_,v)}}class Gb{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=nb(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=db(r,n,e)),i[t]=r})}}),i}}class Jb{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Gb(t.style,t.options&&t.options.params||{})}),Zb(this.states,"true","1"),Zb(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Wb(t,e,this.states))}),this.fallbackTransition=new Wb(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Zb(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Qb=new Lb;class Xb{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=Sb(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=xw(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let r;const o=new Map;if(s?(r=Fb(this._driver,e,s,Ww,Gw,{},{},i,Qb,n),r.forEach(t=>{const e=Lw(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),r=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,dw)})});const a=Ew(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=Pw(e,"","","");return Rw(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const tv="ng-animate-queued",ev="ng-animate-disabled",iv=".ng-animate-disabled",nv=[],sv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},rv={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class ov{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=nb(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const av="void",cv=new ov(av);class uv{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,mv(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const r=Lw(this._elementListeners,t,[]),o={name:e,phase:i,callback:n};r.push(o);const a=Lw(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(mv(t,Jw),mv(t,"ng-trigger-"+e),a[e]=cv),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),r=new hv(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(mv(t,Jw),mv(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const c=new ov(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[e]=c,a||(a=cv),c.value!==av&&a.value===c.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{cb(t,i),ab(t,n)})}return}const u=Lw(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let l=s.matchTransition(a.value,c.value,t,c.params),h=!1;if(!l){if(!n)return;l=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:l,fromState:a,toState:c,player:r,isFallbackTransition:h}),h||(mv(t,tv),r.onStart(()=>{_v(t,tv)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(r);t>=0&&i.splice(t,1)}}),this.players.push(r),u.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Zw,!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,av,n);i&&r.push(i)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&Ew(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const r=this._triggers[s].fallbackTransition,o=i[s]||cv,a=new ov(av),c=new hv(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==sv||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){mv(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==i.triggerName){const n=Pw(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Rw(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class lv{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new uv(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),mv(t,ev)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),_v(t,ev))}removeNode(t,e,i,n){if(dv(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return dv(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Zw,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Xw,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Ew(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=sv,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,iv)&&this.markElementAsDisabled(t,!1),this.driver.query(t,iv,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Ew(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new Lb,n=[],s=new Map,r=[],o=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i=Ww+p++;f.set(e,i),t.forEach(t=>mv(t,i))});const g=[],m=new Set,_=new Set;for(let R=0;Rm.add(t)):_.add(t))}const y=new Map,w=gv(h,Array.from(m));w.forEach((t,e)=>{const i=Gw+p++;y.set(e,i),t.forEach(t=>mv(t,i))}),t.push(()=>{d.forEach((t,e)=>{const i=f.get(e);t.forEach(t=>_v(t,i))}),w.forEach((t,e)=>{const i=y.get(e);t.forEach(t=>_v(t,i))}),g.forEach(t=>{this.processLeaveNode(t)})});const b=[],v=[];for(let R=this._namespaceList.length-1;R>=0;R--)this._namespaceList[R].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(b.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const u=!l||!this.driver.containsElement(l,s),h=y.get(s),d=f.get(s),p=this._buildInstruction(t,i,d,h,u);if(p.errors&&p.errors.length)v.push(p);else{if(u)return e.onStart(()=>cb(s,p.fromStyles)),e.onDestroy(()=>ab(s,p.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>cb(s,p.fromStyles)),e.onDestroy(()=>ab(s,p.toStyles)),void n.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,p.timelines),r.push({instruction:p,player:e,element:s}),p.queriedElements.forEach(t=>Lw(o,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=a.get(e);t||a.set(e,t=new Set),i.forEach(e=>t.add(e))}}),p.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=c.get(e);n||c.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(v.length){const t=[];v.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const A=new Map,k=new Map;r.forEach(t=>{const e=t.element;i.has(e)&&(k.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,A))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Lw(A,e,[]).push(t),t.destroy()})});const T=g.filter(t=>bv(t,a,c)),C=new Map;pv(C,this.driver,_,c,dw).forEach(t=>{bv(t,a,c)&&T.push(t)});const S=new Map;d.forEach((t,e)=>{pv(S,this.driver,new Set(t),a,"!")}),T.forEach(t=>{const e=C.get(t),i=S.get(t);C.set(t,Object.assign(Object.assign({},e),i))});const M=[],E=[],x={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(i.has(e)){if(u.has(e))return r.onDestroy(()=>ab(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void n.push(r);let t=x;if(k.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=k.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>k.set(e,t))}const i=this._buildAnimation(r.namespaceId,o,A,s,S,C);if(r.setRealPlayer(i),t===x)M.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Ew(e)),n.push(r)}}else cb(e,o.fromStyles),r.onDestroy(()=>ab(e,o.toStyles)),E.push(r),u.has(e)&&n.push(r)}),E.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=Ew(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let R=0;R!t.destroyed);n.length?yv(this,t,n):this.processLeaveNode(t)}return g.length=0,M.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),M}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==av;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&r.push(e)})}}return(i||n)&&(r=r.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),r}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==n,c=Lw(i,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}cb(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,r){const o=e.triggerName,a=e.element,c=[],u=new Set,l=new Set,h=e.timelines.map(e=>{const h=e.element;u.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Tw(e.duration,e.delay);const f=h!==a,p=function(t){const e=[];return wv(t,e),e}((i.get(h)||nv).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=s.get(h),m=r.get(h),_=xw(0,this._normalizer,0,e.keyframes,g,m),y=this._buildPlayer(e,_,p);if(e.subTimeline&&n&&l.add(h),f){const e=new hv(t,o,h);e.setRealPlayer(y),c.push(e)}return y});c.forEach(t=>{Lw(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),u.forEach(t=>mv(t,Qw));const d=Ew(h);return d.onDestroy(()=>{u.forEach(t=>_v(t,Qw)),ab(a,e.toStyles)}),l.forEach(t=>{Lw(n,t,[]).push(d)}),d}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Tw(t.duration,t.delay)}}class hv{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Tw,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Rw(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Lw(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function dv(t){return t&&1===t.nodeType}function fv(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function pv(t,e,i,n,s){const r=[];i.forEach(t=>r.push(fv(t)));const o=[];n.forEach((i,n)=>{const r={};i.forEach(t=>{const i=r[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=rv,o.push(n))}),t.set(n,r)});let a=0;return i.forEach(t=>fv(t,r[a++])),o}function gv(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=i.has(o)?o:n.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&i.get(e).push(t)}),i}function mv(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function _v(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function yv(t,e,i){Ew(i).onDone(()=>t.processLeaveNode(e))}function wv(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class vv{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new lv(t,e,i),this._timelineEngine=new Xb(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const r=t+"-"+n;let o=this._triggerCache[r];if(!o){const t=[],e=Sb(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new Jb(t,e)}(n,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,n,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=zw(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=zw(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Av(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Tv(e[0]),e.length>1&&(n=Tv(e[e.length-1]))):e&&(i=Tv(e)),i||n?new kv(t,i,n):null}let kv=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ab(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ab(this._element,this._initialStyles),this._endStyles&&(ab(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(cb(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(cb(this._element,this._endStyles),this._endStyles=null),ab(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Tv(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=zv(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Pv(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=zv(t,"").split(","),n=Dv(i,e);n>=0&&(i.splice(n,1),Lv(t,"",i.join(",")))}(this._element,this._name))}}function xv(t,e,i){Lv(t,"PlayState",i,Rv(t,e))}function Rv(t,e){const i=zv(t,"");return i.indexOf(",")>0?Dv(i.split(","),e):Dv([i],e)}function Dv(t,e){for(let i=0;i=0)return i;return-1}function Pv(t,e,i){i?t.removeEventListener(Mv,e):t.addEventListener(Mv,e)}function Lv(t,e,i,n){const s=Sv+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function zv(t,e){return t.style[Sv+e]||""}class Iv{constructor(t,e,i,n,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Ev(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:wb(this.element,i))})}this.currentSnapshot=t}}class Fv extends Tw{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Vw(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Hv{constructor(){this._count=0}validateStyleProperty(t){return Yw(t)}matchesElement(t,e){return Nw(t,e)}containsElement(t,e){return Kw(t,e)}query(t,e,i){return Uw(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>Vw(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const r=document.createElement("style");return r.textContent=n,r}animate(t,e,i,n,s,r=[],o){const a=r.filter(t=>t instanceof Iv),c={};mb(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=_b(t,e,c));if(0==i)return new Fv(t,u);const l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);(function(t){var e;const i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(h);const d=Av(t,e),f=new Iv(t,e,l,i,n,s,u,d);return f.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),f}}class Ov{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:wb(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Bv{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(jv().toString()),this._cssKeyframesDriver=new Hv}validateStyleProperty(t){return Yw(t)}matchesElement(t,e){return Nw(t,e)}containsElement(t,e){return Kw(t,e)}query(t,e,i){return Uw(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,r);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const c={},u=r.filter(t=>t instanceof Ov);mb(i,n)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=Av(t,e=_b(t,e=e.map(t=>sb(t,!1)),c));return new Ov(t,e,a,l)}}function jv(){return Sw()&&Element.prototype.animate||{}}let Yv=(()=>{class t extends hw{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:Mt.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?mw(t):t;return Uv(this._renderer,null,e,"register",[i]),new Nv(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(gn(oc),gn(Fl))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class Nv extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Kv(this._id,t,e||{},this._renderer)}}class Kv{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Uv(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Uv(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}const Vv="@",qv="@.disabled";let $v=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new Wv("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(r),new Gv(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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 t.\u0275fac=function(e){return new(e||t)(gn(oc),gn(vv),gn(nl))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class Wv{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==Vv&&e==qv?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Gv extends Wv{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==Vv?"."==e.charAt(1)&&e==qv?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==Vv){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return s.charAt(0)!=Vv&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let Jv=(()=>{class t extends vv{constructor(t,e,i){super(t.body,e,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(gn(Fl),gn($w),gn(Kb))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Zv=new Ji("AnimationModuleType"),Qv=[{provide:hw,useClass:Yv},{provide:Kb,useFactory:function(){return new Ub}},{provide:vv,useClass:Jv},{provide:oc,useFactory:function(t,e,i){return new $v(t,e,i)},deps:[kd,vv,nl]}],Xv=[{provide:$w,useFactory:function(){return"function"==typeof jv()?new Bv:new Hv}},{provide:Zv,useValue:"BrowserAnimations"},...Qv],tA=[{provide:$w,useClass:qw},{provide:Zv,useValue:"NoopAnimations"},...Qv];let eA=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?tA:Xv}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:Xv,imports:[Od]}),t})();function iA(t,e){if(1&t&&No(0,"mat-pseudo-checkbox",4),2&t){const t=ea();Oo("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function nA(t,e){if(1&t&&(jo(0,"span",5),Ma(1),Yo()),2&t){const t=ea();rr(1),xa("(",t.group.label,")")}}const sA=["*"];let rA=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),oA=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const aA=new lc("12.0.5"),cA=new Ji("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let uA=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return _l()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&aA.full!==lw.full&&console.warn("The Angular Material version ("+aA.full+") does not match the Angular CDK version ("+lw.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(gn(rw),gn(cA,8),gn(Fl))},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[uw],uw]}),t})();function lA(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=iy(t)}}}function hA(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function dA(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=iy(t)}}}function fA(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?ny(t):this.defaultTabIndex}}}function pA(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new k}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function gA(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new y(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const mA=new Ji("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return mn(Vu)}});class _A{constructor(){this._localeChanges=new k,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const yA=new Ji("mat-date-formats");let wA;try{wA="undefined"!=typeof Intl}catch(tU){wA=!1}const bA={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},vA=TA(31,t=>String(t+1)),AA={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},kA=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function TA(t,e){const i=Array(t);for(let n=0;n{class t extends _A{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(wA){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return TA(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return bA[t]}getDateNames(){if(wA){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return TA(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return vA}getDayOfWeekNames(t){if(wA){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return TA(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return AA[t]}getYearName(t){if(wA){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(wA){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(kA.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(gn(mA,8),gn(ly))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),SA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[{provide:_A,useClass:CA}],imports:[[hy]]}),t})();const MA={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 EA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[{provide:yA,useValue:MA}],imports:[[SA]]}),t})(),xA=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),RA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function DA(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let PA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[uA],uA]}),t})();class LA{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const zA={enterDuration:450,exitDuration:400},IA=yy({passive:!0}),FA=["mousedown","touchstart"],HA=["mouseup","mouseleave","touchend","touchcancel"];class OA{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=ay(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},zA),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const r=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),o=t-n.left,a=e-n.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=o-r+"px",u.style.top=a-r+"px",u.style.height=2*r+"px",u.style.width=2*r+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";const l=new LA(this,u,i);return l.state=0,this._activeRipples.add(l),i.persistent||(this._mostRecentTransientRipple=l),this._runTimeoutOutsideZone(()=>{const t=l===this._mostRecentTransientRipple;l.state=1,i.persistent||t&&this._isPointerDown||l.fadeOut()},c),l}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},zA),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=ay(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(FA))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(HA),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Gy(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,IA)})})}_removeTriggerEvents(){this._triggerElement&&(FA.forEach(t=>{this._triggerElement.removeEventListener(t,this,IA)}),this._pointerUpEventsRegistered&&HA.forEach(t=>{this._triggerElement.removeEventListener(t,this,IA)}))}}const BA=new Ji("mat-ripple-global-options");let jA=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new OA(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(nl),Ho(ly),Ho(BA,8),Ho(Zv,8))},t.\u0275dir=Gt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&pa("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),YA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[uA,hy],uA]}),t})(),NA=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(Ho(Zv,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&pa("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),KA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[uA]]}),t})();const UA=new Ji("MAT_OPTION_PARENT_COMPONENT");class VA{}const qA=lA(VA);let $A=0,WA=(()=>{class t extends qA{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+$A++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(Ho(UA,8))},t.\u0275dir=Gt({type:t,inputs:{label:"label"},features:[bo]}),t})();const GA=new Ji("MatOptgroup");let JA=0;class ZA{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let QA=(()=>{class t{constructor(t,e,i,n){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+JA++,this.onSelectionChange=new mu,this._stateChanges=new k}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(t){this._disabled=iy(t)}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(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==B_&&t.keyCode!==Y_||q_(t)||(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new ZA(this,t))}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(void 0),Ho(WA))},t.\u0275dir=Gt({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),XA=(()=>{class t extends QA{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(UA,8),Ho(GA,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&Jo("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(La("id",e.id),Lo("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),pa("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[bo],ngContentSelectors:sA,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(t,e){1&t&&(na(),Io(0,iA,1,2,"mat-pseudo-checkbox",0),jo(1,"span",1),sa(2),Yo(),Io(3,nA,2,1,"span",2),No(4,"div",3)),2&t&&(Oo("ngIf",e.multiple),rr(3),Oo("ngIf",e.group&&e.group._inert),rr(1),Oo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[Bh,jA,NA],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function tk(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),r=0;for(let e=0;e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[YA,ed,uA,KA]]}),t})();const ik=["mat-button",""],nk=["*"],sk=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class rk{constructor(t){this._elementRef=t}}const ok=hA(lA(dA(rk)));let ak=(()=>{class t extends ok{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of sk)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.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(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Xy),Ho(Zv,8))},t.\u0275cmp=Kt({type:t,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(t,e){if(1&t&&xu(jA,5),2&t){let t;Eu(t=Du())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(Lo("disabled",e.disabled||null),pa("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[bo],attrs:ik,ngContentSelectors:nk,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(t,e){1&t&&(na(),jo(0,"span",0),sa(1),Yo(),No(2,"span",1),No(3,"span",2)),2&t&&(rr(2),pa("mat-button-ripple-round",e.isRoundButton||e.isIconButton),Oo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[jA],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),ck=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[YA,uA],uA]}),t})();function uk(t,e,i,s){return n(i)&&(s=i,i=void 0),s?uk(t,e,i).pipe(I(t=>c(t)?s(...t):s(t))):new y(n=>{lk(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function lk(t,e,i,n,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),r=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),r=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),r=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}class dk extends J_{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),mk={};function _k(t){return t in mk&&(delete mk[t],!0)}const yk={setImmediate(t){const e=pk++;return mk[e]=!0,gk.then(()=>_k(e)&&t()),e},clearImmediate(t){_k(t)}};class wk extends W_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=yk.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(yk.clearImmediate(e),t.scheduled=void 0)}}class bk extends J_{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++ni.lift(new Tk(t,e))}class Tk{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Ck(t,this.compare,this.keySelector))}}class Ck extends p{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}class Sk{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Mk(t,this.durationSelector))}}class Mk extends z{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=L(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Ek(t){return!c(t)&&t-parseFloat(t)+1>=0}function xk(t=0,e,i){let n=-1;return Ek(e)?n=Number(e)<1?1:Number(e):C(e)&&(i=e),C(i)||(i=Z_),new y(e=>{const s=Ek(t)?t:+t-i.now();return i.schedule(Rk,s,{index:0,period:n,subscriber:e})})}function Rk(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function Dk(t,e=Z_){return i=()=>xk(t,e),function(t){return t.lift(new Sk(i))};var i}function Pk(t){return e=>e.lift(new Lk(t))}class Lk{constructor(t){this.notifier=t}call(t,e){const i=new zk(t),n=L(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class zk extends z{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}class Ik extends W_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class Fk extends J_{}const Hk=new Fk(Ik);function Ok(t,e){return new y(e?i=>e.schedule(Bk,0,{error:t,subscriber:i}):e=>e.error(t))}function Bk({error:t,subscriber:e}){e.error(t)}let jk=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Bd(this.value);case"E":return Ok(this.error);case"C":return ap()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class Yk extends p{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Yk.dispatch,this.delay,new Nk(t,this.destination)))}_next(t){this.scheduleMessage(jk.createNext(t))}_error(t){this.scheduleMessage(jk.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(jk.createComplete()),this.unsubscribe()}}class Nk{constructor(t,e){this.notification=t,this.destination=e}}class Kk extends k{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new Uk(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let r;if(this.closed)throw new b;if(this.isStopped||this.hasError?r=h.EMPTY:(this.observers.push(t),r=new v(this,t)),n&&t.add(t=new Yk(t,n)),e)for(let o=0;oe&&(r=Math.max(r,s-e)),r>0&&n.splice(0,r),n}}class Uk{constructor(t,e){this.time=t,this.value=e}}function Vk(t,e,i){let n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:n}){let s,r,o=0,a=!1,c=!1;return function(u){o++,s&&!a||(a=!1,s=new Kk(t,e,n),r=u.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){c=!0,r=void 0,s.complete()}}));const l=s.subscribe(this);this.add(()=>{o--,l.unsubscribe(),r&&!c&&i&&0===o&&(r.unsubscribe(),r=void 0,s=void 0)})}}(n))}function qk(t){return t&&"function"==typeof t.connect}class $k{applyChanges(t,e,i,n,s){t.forEachOperation((t,n,r)=>{let o,a;if(null==t.previousIndex){const s=i(t,n,r);o=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==r?(e.remove(n),a=3):(o=e.get(n),e.move(o,r),a=2);s&&s({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class Wk{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new k,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let Gk=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Jk=new Ji("_ViewRepeater");let Zk=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new k,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new y(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(Dk(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Bd()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Yd(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=ay(e),n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>uk(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(gn(nl),gn(ly),gn(Fl,8))},t.\u0275prov=dt({factory:function(){return new t(gn(nl),gn(ly),gn(Fl,8))},token:t,providedIn:"root"}),t})(),Qk=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new k,this._elementScrolled=new y(t=>this.ngZone.runOutsideAngular(()=>uk(this.elementRef.nativeElement,"scroll").pipe(Pk(this._destroyed)).subscribe(t)))}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(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=by()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==by()?t.left=t.right:1==by()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;wy()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e="left",i="right",n=this.elementRef.nativeElement;if("top"==t)return n.scrollTop;if("bottom"==t)return n.scrollHeight-n.clientHeight-n.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==t?t=s?i:e:"end"==t&&(t=s?e:i),s&&2==by()?t==e?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:s&&1==by()?t==e?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:t==e?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Zk),Ho(nl),Ho(cw,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),Xk=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new k,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Dk(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(gn(ly),gn(nl),gn(Fl,8))},t.\u0275prov=dt({factory:function(){return new t(gn(ly),gn(nl),gn(Fl,8))},token:t,providedIn:"root"}),t})(),tT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})(),eT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[uw,hy,tT],uw,tT]}),t})();class iT{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class nT extends iT{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class sT extends iT{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class rT extends iT{constructor(t){super(),this.element=t instanceof sc?t.nativeElement:t}}class oT{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof nT?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof sT?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof rT?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class aT extends oT{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let cT=(()=>{class t extends sT{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic),Ho(Nc))},t.\u0275dir=Gt({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[bo]}),t})(),uT=(()=>{class t extends oT{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new mu,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(Ho(tc),Ho(Nc),Ho(Fl))},t.\u0275dir=Gt({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[bo]}),t})(),lT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})();class hT{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new dT(t,this.predicate,this.inclusive))}}class dT extends p{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const fT=wy();class pT{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=oy(-this._previousScrollPosition.left),t.style.top=oy(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),fT&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),fT&&(e.scrollBehavior=n,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class gT{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class mT{enable(){}disable(){}attach(){}}function _T(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function yT(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class wT{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();_T(t,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let bT=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new mT,this.close=t=>new gT(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new pT(this._viewportRuler,this._document),this.reposition=t=>new wT(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(gn(Zk),gn(Xk),gn(nl),gn(Fl))},t.\u0275prov=dt({factory:function(){return new t(gn(Zk),gn(Xk),gn(nl),gn(Fl))},token:t,providedIn:"root"}),t})();class vT{constructor(t){if(this.scrollStrategy=new mT,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class AT{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class kT{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let TT=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(gn(Fl))},t.\u0275prov=dt({factory:function(){return new t(gn(Fl))},token:t,providedIn:"root"}),t})(),CT=(()=>{class t extends TT{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(gn(Fl))},t.\u0275prov=dt({factory:function(){return new t(gn(Fl))},token:t,providedIn:"root"}),t})(),ST=(()=>{class t extends TT{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(gn(Fl),gn(ly))},t.\u0275prov=dt({factory:function(){return new t(gn(Fl),gn(ly))},token:t,providedIn:"root"}),t})();const MT="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha;let ET=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||MT){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new k,this._outsidePointerEvents=new k,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(fp(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=oy(this._config.width),t.height=oy(this._config.height),t.minWidth=oy(this._config.minWidth),t.minHeight=oy(this._config.minHeight),t.maxWidth=oy(this._config.maxWidth),t.maxHeight=oy(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;ry(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Pk(V(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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const RT="cdk-overlay-connected-position-bounding-box",DT=/([A-Za-z%]+)$/;class PT{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,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 k,this._resizeSubscription=h.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(RT),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),c=this._getOverlayFit(a,e,i,r);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(c,a,i)?n.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&<(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(RT),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){const s=IT(e);let{x:r,y:o}=t,a=this._getOffset(n,"x"),c=this._getOffset(n,"y");a&&(r+=a),c&&(o+=c);let u=0-o,l=o+s.height-i.height,h=this._subtractOverflows(s.width,0-r,r+s.width-i.width),d=this._subtractOverflows(s.height,u,l),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:s.width*s.height===f,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,r=zT(this._overlayRef.getConfig().minHeight),o=zT(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=IT(e),s=this._viewportRect,r=Math.max(t.x+n.width-s.width,0),o=Math.max(t.y+n.height-s.height,0),a=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,l=0;return u=n.width<=s.width?c||-r:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)u=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-n/2)}return{top:r,left:c,bottom:o,right:u,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=oy(i.height),n.top=oy(i.top),n.bottom=oy(i.bottom),n.width=oy(i.width),n.left=oy(i.left),n.right=oy(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=oy(t)),s&&(n.maxWidth=oy(s))}this._lastBoundingBoxSize=i,LT(this._boundingBox.style,n)}_resetBoundingBoxStyles(){LT(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){LT(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();LT(i,this._getExactOverlayY(e,t,n)),LT(i,this._getExactOverlayX(e,t,n))}else i.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),i.transform=o.trim(),r.maxHeight&&(n?i.maxHeight=oy(r.maxHeight):s&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=oy(r.maxWidth):s&&(i.maxWidth="")),LT(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=oy(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=oy(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:yT(t,i),isOriginOutsideView:_T(t,i),isOverlayClipped:yT(e,i),isOverlayOutsideView:_T(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&ry(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof sc)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function LT(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function zT(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(DT);return i&&"px"!==i?null:parseFloat(e)}return t||null}function IT(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class FT{constructor(t,e,i,n,s,r,o){this._preferredPositions=[],this._positionStrategy=new PT(i,n,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new AT(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const HT="cdk-global-overlay-wrapper";class OT{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(HT),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:r,maxHeight:o}=i,a=!("100%"!==n&&"100vw"!==n||r&&"100%"!==r&&"100vw"!==r),c=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(HT),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let BT=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new OT}connectedTo(t,e,i){return new FT(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new PT(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(gn(Xk),gn(Fl),gn(ly),gn(ET))},t.\u0275prov=dt({factory:function(){return new t(gn(Xk),gn(Fl),gn(ly),gn(ET))},token:t,providedIn:"root"}),t})(),jT=0,YT=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=c,this._location=u,this._outsideClickDispatcher=l}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new vT(t);return s.direction=s.direction||this._directionality.value,new xT(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+jT++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Tl)),new aT(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(gn(bT),gn(ET),gn(tc),gn(BT),gn(CT),gn(yo),gn(nl),gn(Fl),gn(cw),gn(Zl),gn(ST))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const NT=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],KT=new Ji("cdk-connected-overlay-scroll-strategy");let UT=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),VT=(()=>{class t{constructor(t,e,i,n,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.EMPTY,this._attachSubscription=h.EMPTY,this._detachSubscription=h.EMPTY,this._positionSubscription=h.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new mu,this.positionChange=new mu,this.attach=new mu,this.detach=new mu,this.overlayKeydown=new mu,this.overlayOutsideClick=new mu,this._templatePortal=new sT(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=iy(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=iy(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=iy(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=iy(t)}get push(){return this._push}set push(t){this._push=iy(t)}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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=NT);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==j_||this.disableClose||q_(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new vT({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return i=>i.lift(new hT(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ho(YT),Ho(Ic),Ho(Nc),Ho(KT),Ho(cw,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[ue]}),t})();const qT={provide:KT,deps:[YT],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let $T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[YT,qT],imports:[[uw,lT,eT],eT]}),t})();const WT=["underline"],GT=["connectionContainer"],JT=["inputContainer"],ZT=["label"];function QT(t,e){1&t&&(Ko(0),jo(1,"div",14),No(2,"div",15),No(3,"div",16),No(4,"div",17),Yo(),jo(5,"div",18),No(6,"div",15),No(7,"div",16),No(8,"div",17),Yo(),Uo())}function XT(t,e){1&t&&(jo(0,"div",19),sa(1,1),Yo())}function tC(t,e){if(1&t&&(Ko(0),sa(1,2),jo(2,"span"),Ma(3),Yo(),Uo()),2&t){const t=ea(2);rr(3),Ea(t._control.placeholder)}}function eC(t,e){1&t&&sa(0,3,["*ngSwitchCase","true"])}function iC(t,e){1&t&&(jo(0,"span",23),Ma(1," *"),Yo())}function nC(t,e){if(1&t){const t=qo();jo(0,"label",20,21),Jo("cdkObserveContent",function(){return ze(t),ea().updateOutlineGap()}),Io(2,tC,4,1,"ng-container",12),Io(3,eC,1,0,"ng-content",12),Io(4,iC,2,0,"span",22),Yo()}if(2&t){const t=ea();pa("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),Oo("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),Lo("for",t._control.id)("aria-owns",t._control.id),rr(2),Oo("ngSwitchCase",!1),rr(1),Oo("ngSwitchCase",!0),rr(1),Oo("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function sC(t,e){1&t&&(jo(0,"div",24),sa(1,4),Yo())}function rC(t,e){if(1&t&&(jo(0,"div",25,26),No(2,"span",27),Yo()),2&t){const t=ea();rr(2),pa("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function oC(t,e){1&t&&(jo(0,"div"),sa(1,5),Yo()),2&t&&Oo("@transitionMessages",ea()._subscriptAnimationState)}function aC(t,e){if(1&t&&(jo(0,"div",31),Ma(1),Yo()),2&t){const t=ea(2);Oo("id",t._hintLabelId),rr(1),Ea(t.hintLabel)}}function cC(t,e){if(1&t&&(jo(0,"div",28),Io(1,aC,2,2,"div",29),sa(2,6),No(3,"div",30),sa(4,7),Yo()),2&t){const t=ea();Oo("@transitionMessages",t._subscriptAnimationState),rr(1),Oo("ngIf",t.hintLabel)}}const uC=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],lC=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let hC=0;const dC=new Ji("MatError");let fC=(()=>{class t{constructor(t,e){this.id="mat-error-"+hC++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)($i("aria-live"),Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&Lo("id",e.id)},inputs:{id:"id"},features:[Za([{provide:dC,useExisting:t}])]}),t})();const pC={transitionMessages:fw("transitionMessages",[yw("enter",_w({opacity:1,transform:"translateY(0%)"})),bw("void => enter",[_w({opacity:0,transform:"translateY(-5px)"}),pw("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let gC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t}),t})(),mC=0;const _C=new Ji("MatHint");let yC=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+mC++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(Lo("id",e.id)("align",null),pa("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[Za([{provide:_C,useExisting:t}])]}),t})(),wC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-label"]]}),t})(),bC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-placeholder"]]}),t})();const vC=new Ji("MatPrefix"),AC=new Ji("MatSuffix");let kC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","matSuffix",""]],features:[Za([{provide:AC,useExisting:t}])]}),t})(),TC=0;class CC{constructor(t){this._elementRef=t}}const SC=hA(CC,"primary"),MC=new Ji("MAT_FORM_FIELD_DEFAULT_OPTIONS"),EC=new Ji("MatFormField");let xC=(()=>{class t extends SC{constructor(t,e,i,n,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new k,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+TC++,this._labelId="mat-form-field-label-"+TC++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=iy(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(mp(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Pk(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Pk(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),V(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(mp(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(mp(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Pk(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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_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,uk(this._label.nativeElement,"transitionend").pipe(fp(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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),r=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[ed,uA,Sy],uA]}),t})();function DC(...t){if(1===t.length){const e=t[0];if(c(e))return PC(e,null);if(u(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return PC(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return PC(t=1===t.length&&c(t[0])?t[0]:t,null).pipe(I(t=>e(...t)))}return PC(t,null)}function PC(t,e){return new y(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let r=0,o=0;for(let a=0;a{u||(u=!0,o++),s[a]=t},error:t=>i.error(t),complete:()=>{r++,r!==n&&u||(o===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}let LC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(ac),Ho(sc))},t.\u0275dir=Gt({type:t}),t})(),zC=(()=>{class t extends LC{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,features:[bo]}),t})();const IC=new Ji("NgValueAccessor"),FC={provide:IC,useExisting:rt(()=>OC),multi:!0},HC=new Ji("CompositionEventMode");let OC=(()=>{class t extends LC{constructor(t,e,i){super(t,e),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Il()?Il().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(ac),Ho(sc),Ho(HC,8))},t.\u0275dir=Gt({type:t,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(t,e){1&t&&Jo("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[Za([FC]),bo]}),t})();function BC(t){return null==t||0===t.length}function jC(t){return null!=t&&"number"==typeof t.length}const YC=new Ji("NgValidators"),NC=new Ji("NgAsyncValidators"),KC=/^(?=.{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 UC{static min(t){return function(t){return e=>{if(BC(e.value)||BC(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(BC(e.value)||BC(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return VC(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return BC(t.value)||KC.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>BC(e.value)||!jC(e.value)?null:e.value.lengthjC(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return qC;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(BC(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}(t)}static nullValidator(t){return null}static compose(t){return QC(t)}static composeAsync(t){return tS(t)}}function VC(t){return BC(t.value)?{required:!0}:null}function qC(t){return null}function $C(t){return null!=t}function WC(t){const e=$o(t)?B(t):t;return Go(e),e}function GC(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function JC(t,e){return e.map(e=>e(t))}function ZC(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function QC(t){if(!t)return null;const e=t.filter($C);return 0==e.length?null:function(t){return GC(JC(t,e))}}function XC(t){return null!=t?QC(ZC(t)):null}function tS(t){if(!t)return null;const e=t.filter($C);return 0==e.length?null:function(t){return DC(JC(t,e).map(WC)).pipe(I(GC))}}function eS(t){return null!=t?tS(ZC(t)):null}function iS(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function nS(t){return t._rawValidators}function sS(t){return t._rawAsyncValidators}let rS=(()=>{class t{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(t){this._rawValidators=t||[],this._composedValidatorFn=XC(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=eS(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t}),t})(),oS=(()=>{class t extends rS{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,features:[bo]}),t})();class aS extends rS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class cS{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let uS=(()=>{class t extends cS{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(aS,2))},t.\u0275dir=Gt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&pa("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[bo]}),t})(),lS=(()=>{class t extends cS{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(oS,10))},t.\u0275dir=Gt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&pa("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[bo]}),t})();function hS(t,e){return[...e.path,t]}function dS(t,e){gS(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&_S(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&_S(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function fS(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),mS(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function pS(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function gS(t,e){const i=nS(t);null!==e.validator?t.setValidators(iS(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const n=sS(t);null!==e.asyncValidator?t.setAsyncValidators(iS(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const s=()=>t.updateValueAndValidity();pS(e._rawValidators,s),pS(e._rawAsyncValidators,s)}function mS(t,e){let i=!1;if(null!==t){if(null!==e.validator){const n=nS(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=sS(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}const n=()=>{};return pS(e._rawValidators,n),pS(e._rawAsyncValidators,n),i}function _S(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function yS(t,e){gS(t,e)}function wS(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function bS(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function vS(t,e){if(!e)return null;let i,n,s;return Array.isArray(e),e.forEach(t=>{t.constructor===OC?i=t:Object.getPrototypeOf(t.constructor)===zC?n=t:s=t}),s||n||i||null}function AS(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const kS="VALID",TS="INVALID",CS="PENDING",SS="DISABLED";function MS(t){return(DS(t)?t.validators:t)||null}function ES(t){return Array.isArray(t)?XC(t):t||null}function xS(t,e){return(DS(e)?e.asyncValidators:t)||null}function RS(t){return Array.isArray(t)?eS(t):t||null}function DS(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class PS{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=ES(this._rawValidators),this._composedAsyncValidatorFn=RS(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===kS}get invalid(){return this.status===TS}get pending(){return this.status==CS}get disabled(){return this.status===SS}get enabled(){return this.status!==SS}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=ES(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=RS(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=CS,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=SS,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=kS,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==kS&&this.status!==CS||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?SS:kS}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=CS,this._hasOwnPendingAsyncValidator=!0;const e=WC(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof zS?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof IS&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new mu,this.statusChanges=new mu}_calculateStatus(){return this._allControlsDisabled()?SS:this.errors?TS:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(CS)?CS:this._anyControlsHaveStatus(TS)?TS:kS}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){DS(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class LS extends PS{constructor(t=null,e,i){super(MS(e),xS(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){AS(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){AS(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class zS extends PS{constructor(t,e,i){super(MS(e),xS(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof LS?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class IS extends PS{constructor(t,e,i){super(MS(e),xS(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof LS?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const FS={provide:oS,useExisting:rt(()=>OS)},HS=(()=>Promise.resolve(null))();let OS=(()=>{class t extends oS{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new mu,this.form=new zS({},XC(t),eS(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){HS.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),dS(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){HS.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),AS(this._directives,t)})}addFormGroup(t){HS.then(()=>{const e=this._findContainer(t.path),i=new zS({});yS(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){HS.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){HS.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,bS(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Ho(YC,10),Ho(NC,10))},t.\u0275dir=Gt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Jo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Za([FS]),bo]}),t})();const BS={provide:aS,useExisting:rt(()=>YS)},jS=(()=>Promise.resolve(null))();let YS=(()=>{class t extends aS{constructor(t,e,i,n){super(),this.control=new LS,this._registered=!1,this.update=new mu,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=vS(0,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),wS(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?hS(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){dS(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(t){jS.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;jS.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Ho(oS,9),Ho(YC,10),Ho(NC,10),Ho(IC,10))},t.\u0275dir=Gt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Za([BS]),bo,ue]}),t})(),NS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),KS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})();const US=new Ji("NgModelWithFormControlWarning"),VS={provide:aS,useExisting:rt(()=>qS)};let qS=(()=>{class t extends aS{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new mu,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=vS(0,i)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&fS(e,this,!1),dS(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}wS(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&fS(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(Ho(YC,10),Ho(NC,10),Ho(IC,10),Ho(US,8))},t.\u0275dir=Gt({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Za([VS]),bo,ue]}),t._ngModelWarningSentOnce=!1,t})();const $S={provide:oS,useExisting:rt(()=>WS)};let WS=(()=>{class t extends oS{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new mu,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(mS(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return dS(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){fS(t.control||null,t,!1),AS(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,bS(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,i=this.form.get(t.path);e!==i&&(fS(e||null,t),i instanceof LS&&(dS(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);yS(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return mS(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){gS(this.form,this),this._oldForm&&mS(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(Ho(YC,10),Ho(NC,10))},t.\u0275dir=Gt({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&Jo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Za([$S]),bo,ue]}),t})();const GS={provide:aS,useExisting:rt(()=>JS)};let JS=(()=>{class t extends aS{constructor(t,e,i,n,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new mu,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=vS(0,n)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),wS(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return hS(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(Ho(oS,13),Ho(YC,10),Ho(NC,10),Ho(IC,10),Ho(US,8))},t.\u0275dir=Gt({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Za([GS]),bo,ue]}),t._ngModelWarningSentOnce=!1,t})();const ZS={provide:YC,useExisting:rt(()=>QS),multi:!0};let QS=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?VC(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&Lo("required",e.required?"":null)},inputs:{required:"required"},features:[Za([ZS])]}),t})(),XS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[KS]]}),t})(),tM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[XS]}),t})(),eM=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:US,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[XS]}),t})(),iM=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n,s=null,r=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,n=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new zS(i,{asyncValidators:r,updateOn:n,validators:s})}control(t,e,i){return new LS(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new IS(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof LS||t instanceof zS||t instanceof IS?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:eM}),t})();const nM=["trigger"],sM=["panel"];function rM(t,e){if(1&t&&(jo(0,"span",8),Ma(1),Yo()),2&t){const t=ea();rr(1),Ea(t.placeholder)}}function oM(t,e){if(1&t&&(jo(0,"span",12),Ma(1),Yo()),2&t){const t=ea(2);rr(1),Ea(t.triggerValue)}}function aM(t,e){1&t&&sa(0,0,["*ngSwitchCase","true"])}function cM(t,e){1&t&&(jo(0,"span",9),Io(1,oM,2,1,"span",10),Io(2,aM,1,0,"ng-content",11),Yo()),2&t&&(Oo("ngSwitch",!!ea().customTrigger),rr(2),Oo("ngSwitchCase",!0))}function uM(t,e){if(1&t){const t=qo();jo(0,"div",13),jo(1,"div",14,15),Jo("@transformPanel.done",function(e){return ze(t),ea()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return ze(t),ea()._handleKeydown(e)}),sa(3,1),Yo(),Yo()}if(2&t){const t=ea();Oo("@transformPanelWrap",void 0),rr(1),Pa("mat-select-panel ",t._getPanelTheme(),""),fa("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),Oo("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),Lo("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const lM=[[["mat-select-trigger"]],"*"],hM=["mat-select-trigger","*"],dM={transformPanelWrap:fw("transformPanelWrap",[bw("* => void",Aw("@transformPanel",[vw()],{optional:!0}))]),transformPanel:fw("transformPanel",[yw("void",_w({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),yw("showing",_w({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),yw("showing-multiple",_w({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),bw("void => *",pw("120ms cubic-bezier(0, 0, 0.2, 1)")),bw("* => void",pw("100ms 25ms linear",_w({opacity:0})))])};let fM=0;const pM=256,gM=new Ji("mat-select-scroll-strategy"),mM=new Ji("MAT_SELECT_CONFIG"),_M={provide:gM,deps:[YT],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class yM{constructor(t,e){this.source=t,this.value=e}}class wM{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const bM=dA(fA(lA(pA(wM)))),vM=new Ji("MatSelectTrigger");let AM=(()=>{class t extends bM{constructor(t,e,i,n,s,r,o,a,c,u,l,h,d,f){var p,g,m;super(s,n,o,a,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=c,this.ngControl=u,this._liveAnnouncer=d,this._defaultOptions=f,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+fM++,this._triggerAriaLabelledBy=null,this._destroy=new k,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+fM++,this._panelDoneAnimatingStream=new k,this._overlayPanelClass=(null===(p=this._defaultOptions)||void 0===p?void 0:p.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(m=null===(g=this._defaultOptions)||void 0===g?void 0:g.disableOptionCentering)&&void 0!==m&&m,this.ariaLabel="",this.optionSelectionChanges=cp(()=>{const t=this.options;return t?t.changes.pipe(mp(t),up(()=>V(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(fp(1),up(()=>this.optionSelectionChanges))}),this.openedChange=new mu,this._openedStream=this.openedChange.pipe(Yd(t=>t),I(()=>{})),this._closedStream=this.openedChange.pipe(Yd(t=>!t),I(()=>{})),this.selectionChange=new mu,this.valueChange=new mu,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==f?void 0:f.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=f.typeaheadDebounceInterval),this._scrollStrategyFactory=h,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(l)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=iy(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=iy(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=iy(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=ny(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Wk(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(kk(),Pk(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Pk(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(mp(null),Pk(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.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(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,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 t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=e===V_||e===K_||e===N_||e===U_,n=e===B_||e===Y_,s=this._keyManager;if(!s.isTyping()&&n&&!q_(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=i===V_||i===K_,s=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(s||i!==B_&&i!==Y_||!e.activeItem||q_(t))if(!s&&this._multiple&&65===i&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.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(fp(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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new Hy(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Pk(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Pk(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 t=V(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Pk(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),V(...this.options.map(t=>t._stateChanges)).pipe(Pk(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(Ho(Xk),Ho(Rc),Ho(nl),Ho(xA),Ho(sc),Ho(cw,8),Ho(OS,8),Ho(WS,8),Ho(EC,8),Ho(aS,10),$i("tabindex"),Ho(gM),Ho($y),Ho(mM,8))},t.\u0275dir=Gt({type:t,viewQuery:function(t,e){if(1&t&&(xu(nM,5),xu(sM,5),xu(VT,5)),2&t){let t;Eu(t=Du())&&(e.trigger=t.first),Eu(t=Du())&&(e.panel=t.first),Eu(t=Du())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[bo,ue]}),t})(),kM=(()=>{class t extends AM{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(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Pk(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(fp(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=tk(t,this.options,this.optionGroups),i=this._getItemHeight();var n,s,r;this.panel.nativeElement.scrollTop=(s=i,(n=(t+e)*i)<(r=this.panel.nativeElement.scrollTop)?n:n+s>r+256?Math.max(0,n-256+s):r)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new yM(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const r=0-(t.left+s-(i?n:0)),o=t.right+s-e.width+(i?0:n);r>0?s+=r+8:o>0&&(s-=o+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,r=Math.floor(pM/n);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-r))*n+(n-(this._getItemCount()*n-pM)%n):e-n/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,pM)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>n?this._adjustPanelDown(r,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,pM),n=e*t-i;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=tk(s,this.options,this.optionGroups);const r=i/2;this._scrollTop=this._calculateOverlayScroll(s,r,n),this._offsetY=this._calculateOverlayOffsetY(s,r,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(Ru(i,vM,5),Ru(i,XA,5),Ru(i,GA,5)),2&t){let t;Eu(t=Du())&&(e.customTrigger=t.first),Eu(t=Du())&&(e.options=t),Eu(t=Du())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&Jo("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(Lo("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),pa("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Za([{provide:gC,useExisting:t},{provide:UA,useExisting:t}]),bo],ngContentSelectors:hM,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(t,e){if(1&t&&(na(lM),jo(0,"div",0,1),Jo("click",function(){return e.toggle()}),jo(3,"div",2),Io(4,rM,2,1,"span",3),Io(5,cM,3,2,"span",4),Yo(),jo(6,"div",5),No(7,"div",6),Yo(),Yo(),Io(8,uM,4,14,"ng-template",7),Jo("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=Fo(1);Lo("aria-owns",e.panelOpen?e.id+"-panel":null),rr(3),Oo("ngSwitch",e.empty),Lo("id",e._valueId),rr(1),Oo("ngSwitchCase",!0),rr(1),Oo("ngSwitchCase",!1),rr(3),Oo("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[UT,Kh,Uh,VT,Vh,Ih],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[dM.transformPanelWrap,dM.transformPanel]},changeDetection:0}),t})(),TM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[_M],imports:[[ed,$T,ek,uA],tT,RC,ek,uA]}),t})();class CM{constructor(t){this.total=t}call(t,e){return e.subscribe(new SM(t,this.total))}}class SM extends p{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const MM=new Set;let EM,xM=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):RM}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!MM.has(t))try{EM||(EM=document.createElement("style"),EM.setAttribute("type","text/css"),document.head.appendChild(EM)),EM.sheet&&(EM.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),MM.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(gn(ly))},t.\u0275prov=dt({factory:function(){return new t(gn(ly))},token:t,providedIn:"root"}),t})();function RM(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let DM=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new k}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return PM(ry(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=ep(PM(ry(t)).map(t=>this._registerQuery(t).observable));return e=rp(e.pipe(fp(1)),e.pipe(t=>t.lift(new CM(1)),Q_(0))),e.pipe(I(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new y(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(mp(e),I(({matches:e})=>({query:t,matches:e})),Pk(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(gn(xM),gn(nl))},t.\u0275prov=dt({factory:function(){return new t(gn(xM),gn(nl))},token:t,providedIn:"root"}),t})();function PM(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const LM={tooltipState:fw("state",[yw("initial, void, hidden",_w({opacity:0,transform:"scale(0)"})),yw("visible",_w({transform:"scale(1)"})),bw("* => visible",pw("200ms cubic-bezier(0, 0, 0.2, 1)",ww([_w({opacity:0,transform:"scale(0)",offset:0}),_w({opacity:.5,transform:"scale(0.99)",offset:.5}),_w({opacity:1,transform:"scale(1)",offset:1})]))),bw("* => hidden",pw("100ms cubic-bezier(0, 0, 0.2, 1)",_w({opacity:0})))])},zM=yy({passive:!0}),IM=new Ji("mat-tooltip-scroll-strategy"),FM={provide:IM,deps:[YT],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},HM=new Ji("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let OM=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u,l,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=u,this._defaultOptions=l,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 k,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===j_&&!q_(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=h,l&&(l.position&&(this.position=l.position),l.touchGestures&&(this.touchGestures=l.touchGestures)),u.change.pipe(Pk(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=iy(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).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(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Pk(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,zM)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new nT(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Pk(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe(Pk(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Pk(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(fp(1),Pk(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:n}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===n?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_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 t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,zM)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(Ho(YT),Ho(sc),Ho(Zk),Ho(Nc),Ho(nl),Ho(ly),Ho(Ly),Ho(Xy),Ho(void 0),Ho(cw),Ho(void 0),Ho(Fl))},t.\u0275dir=Gt({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),BM=(()=>{class t extends OM{constructor(t,e,i,n,s,r,o,a,c,u,l,h){super(t,e,i,n,s,r,o,a,c,u,l,h),this._tooltipComponent=YM}}return t.\u0275fac=function(e){return new(e||t)(Ho(YT),Ho(sc),Ho(Zk),Ho(Nc),Ho(nl),Ho(ly),Ho(Ly),Ho(Xy),Ho(IM),Ho(cw,8),Ho(HM,8),Ho(Fl))},t.\u0275dir=Gt({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[bo]}),t})(),jM=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new k}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Ho(Rc))},t.\u0275dir=Gt({type:t}),t})(),YM=(()=>{class t extends jM{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(Ho(Rc),Ho(DM))},t.\u0275cmp=Kt({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&Jo("click",function(){return e._handleBodyInteraction()},!1,ms)("auxclick",function(){return e._handleBodyInteraction()},!1,ms),2&t&&fa("zoom","visible"===e._visibility?1:null)},features:[bo],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(jo(0,"div",0),Jo("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),uu(1,"async"),Ma(2),Yo()),2&t){let t;pa("mat-tooltip-handset",null==(t=lu(1,5,e._isHandset))?null:t.matches),Oo("ngClass",e.tooltipClass)("@state",e._visibility),rr(2),Ea(e.message)}},directives:[Ih],pipes:[Xh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[LM.tooltipState]},changeDetection:0}),t})(),NM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[FM],imports:[[ow,ed,$T,uA],uA,tT]}),t})();function KM(t,e){if(1&t&&(jo(0,"mat-option",19),Ma(1),Yo()),2&t){const t=e.$implicit;Oo("value",t),rr(1),xa(" ",t," ")}}function UM(t,e){if(1&t){const t=qo();jo(0,"mat-form-field",16),jo(1,"mat-select",17),Jo("selectionChange",function(e){return ze(t),ea(2)._changePageSize(e.value)}),Io(2,KM,2,2,"mat-option",18),Yo(),Yo()}if(2&t){const t=ea(2);Oo("appearance",t._formFieldAppearance)("color",t.color),rr(1),Oo("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),rr(1),Oo("ngForOf",t._displayedPageSizeOptions)}}function VM(t,e){if(1&t&&(jo(0,"div",20),Ma(1),Yo()),2&t){const t=ea(2);rr(1),Ea(t.pageSize)}}function qM(t,e){if(1&t&&(jo(0,"div",12),jo(1,"div",13),Ma(2),Yo(),Io(3,UM,3,6,"mat-form-field",14),Io(4,VM,2,1,"div",15),Yo()),2&t){const t=ea();rr(2),xa(" ",t._intl.itemsPerPageLabel," "),rr(1),Oo("ngIf",t._displayedPageSizeOptions.length>1),rr(1),Oo("ngIf",t._displayedPageSizeOptions.length<=1)}}function $M(t,e){if(1&t){const t=qo();jo(0,"button",21),Jo("click",function(){return ze(t),ea().firstPage()}),ci(),jo(1,"svg",7),No(2,"path",22),Yo(),Yo()}if(2&t){const t=ea();Oo("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),Lo("aria-label",t._intl.firstPageLabel)}}function WM(t,e){if(1&t){const t=qo();ci(),ui(),jo(0,"button",23),Jo("click",function(){return ze(t),ea().lastPage()}),ci(),jo(1,"svg",7),No(2,"path",24),Yo(),Yo()}if(2&t){const t=ea();Oo("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),Lo("aria-label",t._intl.lastPageLabel)}}let GM=(()=>{class t{constructor(){this.changes=new k,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const JM={provide:GM,deps:[[new bn,new vn,GM]],useFactory:function(t){return t||new GM}},ZM=new Ji("MAT_PAGINATOR_DEFAULT_OPTIONS");class QM{}const XM=lA(gA(QM));let tE=(()=>{class t extends XM{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new mu,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(ny(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=ny(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(ny(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>ny(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=iy(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=iy(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(Ho(GM),Ho(Rc),Ho(void 0))},t.\u0275dir=Gt({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[bo]}),t})(),eE=(()=>{class t extends tE{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(Ho(GM),Ho(Rc),Ho(ZM,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[bo],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"div",1),Io(2,qM,5,3,"div",2),jo(3,"div",3),jo(4,"div",4),Ma(5),Yo(),Io(6,$M,3,5,"button",5),jo(7,"button",6),Jo("click",function(){return e.previousPage()}),ci(),jo(8,"svg",7),No(9,"path",8),Yo(),Yo(),ui(),jo(10,"button",9),Jo("click",function(){return e.nextPage()}),ci(),jo(11,"svg",7),No(12,"path",10),Yo(),Yo(),Io(13,WM,3,5,"button",11),Yo(),Yo(),Yo()),2&t&&(rr(2),Oo("ngIf",!e.hidePageSize),rr(3),xa(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),rr(1),Oo("ngIf",e.showFirstLastButtons),rr(1),Oo("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Lo("aria-label",e._intl.previousPageLabel),rr(3),Oo("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Lo("aria-label",e._intl.nextPageLabel),rr(3),Oo("ngIf",e.showFirstLastButtons))},directives:[Bh,ak,BM,xC,kM,Hh,XA],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),iE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[JM],imports:[[ed,ck,TM,NM,uA]]}),t})();function nE(t,e=Z_){var i;const n=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new sE(n,e))}class sE{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new rE(t,this.delay,this.scheduler))}}class rE extends p{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(rE.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new oE(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(jk.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(jk.createComplete()),this.unsubscribe()}}class oE{constructor(t,e){this.time=t,this.notification=e}}const aE=["mat-menu-item",""],cE=["*"];function uE(t,e){if(1&t){const t=qo();jo(0,"div",0),Jo("keydown",function(e){return ze(t),ea()._handleKeydown(e)})("click",function(){return ze(t),ea().closed.emit("click")})("@transformMenu.start",function(e){return ze(t),ea()._onAnimationStart(e)})("@transformMenu.done",function(e){return ze(t),ea()._onAnimationDone(e)}),jo(1,"div",1),sa(2),Yo(),Yo()}if(2&t){const t=ea();Oo("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),Lo("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const lE={transformMenu:fw("transformMenu",[yw("void",_w({opacity:0,transform:"scale(0.8)"})),bw("void => enter",pw("120ms cubic-bezier(0, 0, 0.2, 1)",_w({opacity:1,transform:"scale(1)"}))),bw("* => void",pw("100ms 25ms linear",_w({opacity:0})))]),fadeInItems:fw("fadeInItems",[yw("showing",_w({opacity:1})),bw("void => *",[_w({opacity:0}),pw("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},hE=new Ji("MatMenuContent"),dE=new Ji("MAT_MENU_PANEL");class fE{}const pE=dA(lA(fE));let gE=(()=>{class t extends pE{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new k,this._focused=new k,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new yu,this._tabSubscription=h.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new k,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new mu,this.close=this.closed,this.panelId="mat-menu-panel-"+_E++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=iy(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=iy(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Oy(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(mp(this._directDescendantItems),up(t=>V(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(mp(this._directDescendantItems),up(t=>V(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case j_:q_(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case N_:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case U_:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==K_&&e!==V_||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(fp(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(mp(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(nl),Ho(mE))},t.\u0275dir=Gt({type:t,contentQueries:function(t,e,i){if(1&t&&(Ru(i,hE,5),Ru(i,gE,5),Ru(i,gE,4)),2&t){let t;Eu(t=Du())&&(e.lazyContent=t.first),Eu(t=Du())&&(e._allItems=t),Eu(t=Du())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&xu(Ic,5),2&t){let t;Eu(t=Du())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),wE=(()=>{class t extends yE{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(nl),Ho(mE))},t.\u0275cmp=Kt({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&Lo("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Za([{provide:dE,useExisting:t}]),bo],ngContentSelectors:cE,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(na(),Io(0,uE,3,6,"ng-template"))},directives:[Ih],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[lE.transformMenu,lE.fadeInItems]},changeDetection:0}),t})();const bE=new Ji("mat-menu-scroll-strategy"),vE={provide:bE,deps:[YT],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},AE=yy({passive:!0});let kE=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=r,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=h.EMPTY,this._hoverSubscription=h.EMPTY,this._menuCloseSubscription=h.EMPTY,this._handleTouchStart=t=>{Jy(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new mu,this.onMenuOpen=this.menuOpened,this.menuClosed=new mu,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=s instanceof yE?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,AE),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,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(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof yE&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof yE?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Yd(t=>"void"===t.toState),fp(1),Pk(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new vT({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[n,s],[a,c]=[e,i],u=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",u="bottom"===n?8:-8):this.menu.overlapTrigger||(r="top"===n?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:n,offsetY:u},{originX:i,originY:r,overlayX:c,overlayY:n,offsetY:u},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-u},{originX:i,originY:o,overlayX:c,overlayY:s,offsetY:-u}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments();return V(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Bd(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Yd(t=>t!==this._menuItemInstance),Yd(()=>this._menuOpen)):Bd(),e)}_handleMousedown(t){Gy(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;e!==B_&&e!==Y_||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===U_&&"ltr"===this.dir||e===N_&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Yd(t=>t===this._menuItemInstance&&!t.disabled),nE(0,vk)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof yE&&this.menu._isAnimating?this.menu._animationDone.pipe(fp(1),nE(0,vk),Pk(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new sT(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(Ho(YT),Ho(sc),Ho(Nc),Ho(bE),Ho(dE,8),Ho(gE,10),Ho(cw,8),Ho(Xy))},t.\u0275dir=Gt({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&Jo("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&Lo("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),TE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[vE],imports:[uA]}),t})(),CE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[vE],imports:[[ed,uA,YA,$T,TE],tT,uA,TE]}),t})();const SE=["*"];function ME(t){return Error(`Unable to find icon with the name "${t}"`)}function EE(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function xE(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class RE{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let DE=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new RE(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,n){const s=this._sanitizer.sanitize(ss.HTML,i);if(!s)throw xE(i);return this._addSvgIconConfig(t,e,new RE("",s,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new RE(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(ss.HTML,e);if(!n)throw xE(e);return this._addSvgIconSetConfig(t,new RE("",n,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(ss.RESOURCE_URL,t);if(!e)throw EE(t);const i=this._cachedIconsByUrl.get(e);return i?Bd(PE(i)):this._loadSvgIconFromConfig(new RE(t,null)).pipe(Ip(t=>this._cachedIconsByUrl.set(e,t)),I(t=>PE(t)))}getNamedSvgIcon(t,e=""){const i=LE(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Ok(ME(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Bd(PE(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(I(t=>PE(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?Bd(i):DC(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(bp(e=>{const i=this._sanitizer.sanitize(ss.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),Bd(null)})))).pipe(I(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw ME(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Ip(e=>t.svgText=e),I(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Bd(null):this._fetchIcon(t).pipe(Ip(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(r)),X());return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(LE(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),HE=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],OE=HE.map(t=>`[${t}]`).join(", "),BE=/^url\(['"]?#(.*?)['"]?\)$/;let jE=(()=>{class t extends IE{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=h.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=iy(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(OE),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],r=s.getAttribute(t),o=r?r.match(BE):null;if(o){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe(fp(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(DE),$i("aria-hidden"),Ho(FE),Ho(fs))},t.\u0275cmp=Kt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(Lo("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),pa("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[bo],ngContentSelectors:SE,decls:1,vars:0,template:function(t,e){1&t&&(na(),sa(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),YE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[uA],uA]}),t})();class NE{}let KE=(()=>{class t extends NE{getTranslation(t){return Bd({})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class UE{}let VE=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function qE(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,n,s,r=typeof t;if(r==typeof e&&"object"==r){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in s=Object.create(null),t){if(!qE(t[n],e[n]))return!1;s[n]=!0}for(n in e)if(!(n in s)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n{WE(e[n])?n in t?i[n]=GE(t[n],e[n]):Object.assign(i,{[n]:e[n]}):Object.assign(i,{[n]:e[n]})}),i}class JE{}let ZE=(()=>{class t extends JE{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let i;return i="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,i}getValue(t,e){let i="string"==typeof e?e.split("."):[e];e="";do{e+=i.shift(),!$E(t)||!$E(t[e])||"object"!=typeof t[e]&&i.length?i.length?e+=".":t=void 0:(t=t[e],e="")}while(i.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,i)=>{let n=this.getValue(e,i);return $E(n)?n:t}):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class QE{}let XE=(()=>{class t extends QE{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class tx{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new mu,this.onLangChange=new mu,this.onDefaultLangChange=new mu}}const ex=new Ji("USE_STORE"),ix=new Ji("USE_DEFAULT_LANG"),nx=new Ji("DEFAULT_LANGUAGE"),sx=new Ji("USE_EXTEND");let rx=(()=>{class t{constructor(t,e,i,n,s,r=!0,o=!1,a=!1,c){this.store=t,this.currentLoader=e,this.compiler=i,this.parser=n,this.missingTranslationHandler=s,this.useDefaultLang=r,this.isolate=o,this.extend=a,this.pending=!1,this._onTranslationChange=new mu,this._onLangChange=new mu,this._onDefaultLangChange=new mu,this._langs=[],this._translations={},this._translationRequests={},c&&this.setDefaultLang(c)}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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe(fp(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return Bd(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(fp(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),Bd(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(Vk(1),fp(1));return this.loadingTranslations=e.pipe(I(e=>this.compiler.compileTranslations(e,t)),Vk(1),fp(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,i=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?GE(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,i){let n;if(e instanceof Array){let n={},s=!1;for(let r of e)n[r]=this.getParsedResult(t,r,i),Ak(n[r])&&(s=!0);return s?DC(e.map(t=>Ak(n[t])?n[t]:Bd(n[t]))).pipe(I(t=>{let i={};return t.forEach((t,n)=>{i[e[n]]=t}),i})):n}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){let t={key:e,translateService:this};void 0!==i&&(t.interpolateParams=i),n=this.missingTranslationHandler.handle(t)}return void 0!==n?n:e}get(t,e){if(!$E(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(jd(i=>Ak(i=this.getParsedResult(i,t,e))?i:Bd(i)));{let i=this.getParsedResult(this.translations[this.currentLang],t,e);return Ak(i)?i:Bd(i)}}getStreamOnTranslationChange(t,e){if(!$E(t)||!t.length)throw new Error('Parameter "key" required');return rp(cp(()=>this.get(t,e)),this.onTranslationChange.pipe(up(i=>{const n=this.getParsedResult(i.translations,t,e);return"function"==typeof n.subscribe?n:Bd(n)})))}stream(t,e){if(!$E(t)||!t.length)throw new Error('Parameter "key" required');return rp(cp(()=>this.get(t,e)),this.onLangChange.pipe(up(i=>{const n=this.getParsedResult(i.translations,t,e);return Ak(n)?n:Bd(n)})))}instant(t,e){if(!$E(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,e);if(Ak(i)){if(t instanceof Array){let e={};return t.forEach((i,n)=>{e[t[n]]=t[n]}),e}return t}return i}set(t,e,i=this.currentLang){this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(gn(tx),gn(NE),gn(QE),gn(JE),gn(UE),gn(ix),gn(ex),gn(sx),gn(nx))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),ox=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,i){let n=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,e);Ak(s.subscribe)?s.subscribe(n):n(s)}this.translate.get(t,e).subscribe(n)}transform(t,...e){if(!t||!t.length)return t;if(qE(t,this.lastKey)&&qE(e,this.lastParams))return this.value;let i;if($E(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(t)}catch(n){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(i=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(Ho(rx,16),Ho(Rc,16))},t.\u0275pipe=Jt({name:"translate",type:t,pure:!1}),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),ax=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:NE,useClass:KE},e.compiler||{provide:QE,useClass:XE},e.parser||{provide:JE,useClass:ZE},e.missingTranslationHandler||{provide:UE,useClass:VE},tx,{provide:ex,useValue:e.isolate},{provide:ix,useValue:e.useDefaultLang},{provide:sx,useValue:e.extend},{provide:nx,useValue:e.defaultLanguage},rx]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:NE,useClass:KE},e.compiler||{provide:QE,useClass:XE},e.parser||{provide:JE,useClass:ZE},e.missingTranslationHandler||{provide:UE,useClass:VE},{provide:ex,useValue:e.isolate},{provide:ix,useValue:e.useDefaultLang},{provide:sx,useValue:e.extend},{provide:nx,useValue:e.defaultLanguage},rx]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})(),cx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[],imports:[[iE,CE,YE,ck,ax,ed]]}),t})();function ux(t,e){}class lx{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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const hx={dialogContainer:fw("dialogContainer",[yw("void, exit",_w({opacity:0,transform:"scale(0.7)"})),yw("enter",_w({transform:"none"})),bw("* => enter",pw("150ms cubic-bezier(0, 0, 0.2, 1)",_w({transform:"none",opacity:1}))),bw("* => void, * => exit",pw("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",_w({opacity:0})))])};let dx=(()=>{class t extends oT{constructor(t,e,i,n,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=s,this._focusMonitor=r,this._animationStateChanged=new mu,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=Ay(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Ay())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=Ay();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Ky),Ho(Rc),Ho(Fl,8),Ho(lx),Ho(Xy))},t.\u0275dir=Gt({type:t,viewQuery:function(t,e){if(1&t&&xu(uT,7),2&t){let t;Eu(t=Du())&&(e._portalOutlet=t.first)}},features:[bo]}),t})(),fx=(()=>{class t extends dx{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Zo("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(La("id",e._id),Lo("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),za("@dialogContainer",e._state))},features:[bo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Io(0,ux,0,0,"ng-template",0)},directives:[uT],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[hx.dialogContainer]}}),t})(),px=0;class gx{constructor(t,e,i="mat-dialog-"+px++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new k,this._afterClosed=new k,this._beforeClosed=new k,this._state=0,e._id=i,e._animationStateChanged.pipe(Yd(t=>"opened"===t.state),fp(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Yd(t=>"closed"===t.state),fp(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Yd(t=>t.keyCode===j_&&!this.disableClose&&!q_(t))).subscribe(t=>{t.preventDefault(),mx(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():mx(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Yd(t=>"closing"===t.state),fp(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function mx(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const _x=new Ji("MatDialogData"),yx=new Ji("mat-dialog-default-options"),wx=new Ji("mat-dialog-scroll-strategy"),bx={provide:wx,deps:[YT],useFactory:function(t){return()=>t.scrollStrategies.block()}};let vx=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new k,this._afterOpenedAtThisLevel=new k,this._ariaHiddenElements=new Map,this.afterAllClosed=cp(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(mp(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new lx)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),n._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new vT({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=yo.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:lx,useValue:e}]}),n=new nT(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const s=new this._dialogRefConstructor(i,e,n.id);if(t instanceof Ic)e.attachTemplatePortal(new sT(t,null,{$implicit:n.data,dialogRef:s}));else{const i=this._createInjector(n,s,e),r=e.attachComponentPortal(new nT(t,n.viewContainerRef,i));s.componentInstance=r.instance}return s.updateSize(n.width,n.height).updatePosition(n.position),s}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(cw,null,vt.Optional)||s.push({provide:cw,useValue:{value:t.direction,change:Bd()}}),yo.create({parent:n||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(Ho(YT),Ho(yo),Ho(void 0),Ho(void 0),Ho(ET),Ho(void 0),Ho(Qi),Ho(Qi),Ho(Ji))},t.\u0275dir=Gt({type:t}),t})(),Ax=(()=>{class t extends vx{constructor(t,e,i,n,s,r,o){super(t,e,n,r,o,s,gx,fx,_x)}}return t.\u0275fac=function(e){return new(e||t)(gn(YT),gn(yo),gn(Zl,8),gn(yx,8),gn(wx),gn(t,12),gn(ET))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),kx=0,Tx=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+kx++}ngOnInit(){this._dialogRef||(this._dialogRef=function(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(Ho(gx,8),Ho(sc),Ho(Ax))},t.\u0275dir=Gt({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&La("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),Cx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),Sx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),Mx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[Ax,bx],imports:[[$T,lT,uA],uA]}),t})();var Ex=i(2051);const xx=[5,10,25,100];function Rx(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function Dx(){const t=new lx;return t.disableClose=!0,t.autoFocus=!1,t}const Px=new Intl.Collator("cs",{numeric:!0});function Lx(t,e,i,n){const s=e.active,r=e.direction;return s&&""!==r?t.sort((t,e)=>{const o=i(t,s,n),a=i(e,s,n);return Px.compare(o,a)*("asc"===r?1:-1)}):t}function zx(t,e,i,n,s,r){e=e.toLowerCase();let o="";return i.forEach(e=>{o+=";"+n(t,e,s)}),r&&(o+=";"+n(t,"uuid",s)),-1!==o.toLowerCase().indexOf(e)}function Ix(t,e){let i="";return t.attributes&&t.attributes.forEach(t=>{t.friendlyName===e&&(i=t.value)}),i}function Fx(t,e,i,n){const s=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(t=>!r.includes(t)),t.forEach(t=>{const r={};e.forEach(e=>{var s;r[e]=(null!==(s=i(t,e,n))&&void 0!==s?s:"").split('"').join("''").trim()}),s.push(r)}),s}function Hx(t,e="csv",i="export"){switch(e){case"csv":{const n=(t,e)=>null===e?"":e,s=Object.keys(t[0]),r=t.map(t=>s.map(e=>JSON.stringify(t[e],n)).join(","));r.unshift(s.join(",").split(" ").join("_").split('"').join("''"));const o=r.join("\r\n"),a=new Blob([o],{type:"text/csv"});(0,Ex.saveAs)(a,`${i}.${e}`)}}}let Ox=(()=>{class t{constructor(){this.exportData=new mu}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(jo(0,"div",0),jo(1,"button",1),jo(2,"mat-icon"),Ma(3,"more_vert"),Yo(),Yo(),jo(4,"mat-menu",null,2),jo(6,"button",3),Ma(7),uu(8,"translate"),Yo(),Yo(),jo(9,"mat-menu",null,4),jo(11,"button",5),Jo("click",function(){return e.exportData.emit("csv")}),Ma(12,"Csv"),Yo(),Yo(),Yo()),2&t){const t=Fo(5),e=Fo(10);rr(1),Oo("matMenuTriggerFor",t),rr(5),Oo("matMenuTriggerFor",e),rr(1),xa(" ",lu(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[ak,kE,jE,wE,gE],pipes:[ox],styles:[""]}),t})();function Bx(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-table-options",6),Jo("exportData",function(e){return ze(t),ea().exportData.emit(e)}),Yo()}}const jx=["*"];let Yx=(()=>{class t{constructor(){this.hideExport=!1,this.page=new mu,this.pageSizeOptions=xx,this.pageSize=5,this.dataLength=0,this.exportData=new mu}set matPaginator(t){this.paginator=t}pageChanged(t){this.paginator.pageSize=t.pageSize,this.paginator.pageIndex=t.pageIndex,this.page.emit(t),this.paginator.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(t,e){if(1&t&&xu(eE,7),2&t){let t;Eu(t=Du())&&(e.matPaginator=t.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",pageSize:"pageSize",dataLength:"dataLength"},outputs:{page:"page",exportData:"exportData"},ngContentSelectors:jx,decls:7,vars:8,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(t,e){1&t&&(na(),jo(0,"div",0),jo(1,"div",1),jo(2,"mat-paginator",2),Jo("page",function(t){return e.page.emit(t)}),Yo(),Io(3,Bx,1,0,"perun-web-apps-table-options",3),Yo(),jo(4,"div",4),sa(5),Yo(),jo(6,"mat-paginator",5),Jo("page",function(t){return e.pageChanged(t)}),Yo(),Yo()),2&t&&(rr(2),Oo("length",e.dataLength)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),rr(1),Oo("ngIf",!e.hideExport),rr(3),Oo("length",e.paginator.length)("pageIndex",e.paginator.pageIndex)("pageSizeOptions",e.paginator.pageSizeOptions)("pageSize",e.paginator.pageSize))},directives:[eE,Bh,Ox],styles:[""]}),t})(),Nx=(()=>{class t{constructor(t){this.dialogRef=t}close(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(Ho(gx))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"h1",0),Ma(1),uu(2,"translate"),Yo(),jo(3,"div",1),Ma(4),uu(5,"translate"),Yo(),jo(6,"div",2),jo(7,"div",3),jo(8,"button",4),Jo("click",function(){return e.close()}),Ma(9),uu(10,"translate"),Yo(),Yo(),Yo()),2&t&&(rr(1),Ea(lu(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),rr(3),xa(" ",lu(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),rr(5),xa(" ",lu(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[Tx,Cx,Sx,ak],pipes:[ox],styles:[""]}),t})(),Kx=(()=>{class t{constructor(){this.branding=""}setInstanceConfig(t){this.instanceConfig=t}setDefaultConfig(t){this.defaultConfig=t}setPerunPrincipal(t){this.principal=t}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(t){this.initialPageId=t}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(t){this.branding=t}skipOidc(){return this.get("skip_oidc")}get(...t){let e;if(""!==this.branding){const i=this.instanceConfig.brandings[this.branding];for(let n=0;n{class t{constructor(t,e,i,n){this.injector=t,this.store=e,this.dialog=i,this.route=n,this.userSet=new mu,this.user=null,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(m_),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(t=>{t.idpFilter&&(this.filterShortname=t.idpFilter)})}getClientSettings(){const t=this.setIdpFilter(),e={authority:this.store.get("oidc_client","oauth_authority"),client_id:this.store.get("oidc_client","oauth_client_id"),redirect_uri:this.store.get("oidc_client","oauth_redirect_uri"),post_logout_redirect_uri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),response_type:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),filterProtocolClaims:!0,loadUserInfo:this.store.get("oidc_client","oauth_load_user_info"),automaticSilentRenew:!0,silent_redirect_uri:this.store.get("oidc_client","oauth_silent_redirect_uri")};return t&&(e.extraQueryParams={acr_values:t}),e}setIdpFilter(){const t=location.search.substr(1).split("&");this.filterShortname=null;const e=this.store.get("oidc_client","filters");if(!e)return null;let i=null;return t.forEach(t=>{const n=t.split("=");"idpFilter"===n[0]&&e[n[1]]&&(this.filterShortname=n[1],i=e[n[1]])}),e.default&&!i?(this.filterShortname="default",e.default):i}getUserManager(){return this.manager}startIdpFilterKeeper(){this.router.events.pipe(Yd(t=>t instanceof Kp)).subscribe(()=>{const t={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===t.idpFilter?{}:t,queryParamsHandling:"merge",replaceUrl:!0})})}loadConfigData(){this.manager=new Qf.UserManager(this.getClientSettings()),this.setUser(),this.manager.events.addUserLoaded(t=>{this.user=t}),this.manager.events.addAccessTokenExpired(()=>{const t=Dx();t.width="450px",this.dialog.open(Nx,t).afterClosed().subscribe(()=>{this.startAuthentication().then(()=>{})})})}verifyAuth(){const t=location.pathname,e=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(t,e)}logout(){this.manager.signoutRedirect().catch(function(t){console.log(t)})}isLoggedInPromise(){return B(this.manager.getUser()).pipe(I(t=>!!t&&!t.expired))}isLoggedIn(){return null!=this.user&&!this.user.expired}getClaims(){return this.user.profile}getAuthorizationHeaderValue(){return this.user?"Bearer "+this.user.access_token:""}startAuthentication(){return this.manager.signinRedirect()}completeAuthentication(){return this.manager.signinRedirectCallback().then(t=>{this.user=t,this.userSet.emit(this.user)})}startSigninMainWindow(){this.manager.signinRedirect({data:this.redirectUrl}).then(function(){console.log("signinRedirect done")}).catch(function(t){console.log(t)})}setUser(){this.manager.getUser().then(t=>{this.user=t})}isPotentiallyValidPath(t){const e=["/home","/organizations","/facilities","/myProfile","/admin","/login"];if("/"===t)return!0;for(const i of e)if(t.startsWith(i))return!0;return!1}verifyAuthentication(t,e){return this.isLoggedInPromise().toPromise().then(i=>!!i||(this.isPotentiallyValidPath(t)?(sessionStorage.setItem("auth:redirect",t),sessionStorage.setItem("auth:queryParams",e),!1):new Promise((t,e)=>e("Invalid path"))))}handleAuthCallback(){return this.completeAuthentication().then(()=>!0)}redirectToOriginDestination(){const t=sessionStorage.getItem("mfa_route");if(t)return this.router.navigate([t],{replaceUrl:!0});let e=sessionStorage.getItem("auth:redirect");const i=sessionStorage.getItem("auth:queryParams");let n=[];i&&(n=i.split("&"));const s={};return n.forEach(t=>{const e=t.split("=");s[e[0]]=e[1]}),e&&"/login"!==e||(e="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),s.idpFilter&&(this.filterShortname=s.idpFilter),this.router.navigate([e],{queryParams:s,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}}return t.\u0275fac=function(e){return new(e||t)(gn(yo),gn(Kx),gn(Ax),gn(Wg))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Vx=(()=>{class t{constructor(t){this.dialogRef=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(gx))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(jo(0,"h2",0),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE")))},directives:[Cx],pipes:[ox],styles:[""]}),t})(),qx=(()=>{class t{constructor(t,e,i,n,s,r){this.authService=t,this.storeService=e,this.authResolver=i,this.authzService=n,this.dialog=s,this.router=r,this.loginScreenShown=!1}setLoginScreen(t){this.loginScreenShown=t}isLoginScreenShown(){return this.loginScreenShown}verifyAuth(){return this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(t=>t(!0)):this.authService.verifyAuth()}startAuth(){return this.authService.startAuthentication()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(t=>{if(null===t.user){const t=Dx();this.dialog.open(Vx,t)}else this.storeService.setPerunPrincipal(t),this.authResolver.init(t)})}handleAuthStart(){return this.storeService.get("auto_auth_redirect")?this.startAuth().then(()=>new Promise(()=>{})):(this.setLoginScreen(!0),this.router.navigate(["login"]).then(()=>null))}redirectToOriginDestination(){return this.authService.redirectToOriginDestination()}}return t.\u0275fac=function(e){return new(e||t)(gn(Ux),gn(Kx),gn(Zf),gn(Ef),gn(Ax),gn(m_))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$x=(()=>{class t{constructor(t,e){this.matIconRegistry=t,this.domSanitizer=e,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/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/settings1-blue.svg",name:"settings-blue"},{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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(t=>{this.matIconRegistry.addSvgIcon(t.name,this.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}return t.\u0275fac=function(e){return new(e||t)(gn(DE),gn(Ld))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Wx=(()=>{class t{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const t=this.handleNextError;return this.handleNextError=!0,t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Gx=(()=>{class t{constructor(t){this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new mu}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(t,e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}showError(t,e,i,n,s){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:s,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return t.\u0275fac=function(e){return new(e||t)(gn(rx))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Jx=(()=>{class t{constructor(t,e,i,n,s,r){this.authService=t,this.apiRequestConfiguration=e,this.notificator=i,this.store=n,this.dialog=s,this.initAuthService=r}intercept(t,e){const i=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==t.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()){const t=Dx();t.width="450px",this.dialog.open(Nx,t).afterClosed().subscribe(()=>{this.authService.startAuthentication().then(()=>{})})}t=t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});const n=this.apiRequestConfiguration.shouldHandleError(),s="POST"===t.method&&!this.store.skipOidc();return e.handle(t).pipe(Ip(t=>{t instanceof of&&s&&this.initAuthService.loadPrincipal()},e=>{const i=this.formatErrors(e,t);return void 0===i?Ok(e):n?void this.notificator.showRPCError(i):Ok(i)}))}formatErrors(t,e){let i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.urlWithParams=e.urlWithParams,i.call=e.url,i.payload=e.body,i}}return t.\u0275fac=function(e){return new(e||t)(gn(Ux),gn(Wx),gn(Gx),gn(Kx),gn(Ax),gn(qx))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Zx=(()=>{class t{constructor(){this.notificationData=[],this.newNotificationsCount=0}storeNotification(t){this.newNotificationsCount++,this.notificationData.push(t)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Qx=(()=>{class t{constructor(t,e,i,n){this.http=t,this.notificator=e,this.authService=i,this.storeService=n}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}formatErrors(t,e,i,n){const s=t.error;return s.call=e,s.payload=i,n&&this.notificator.showRPCError(t.error),Ok(s)}getHeaders(){let t=new qd;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue()),t}get(t,e=new Jd,i=!0){const n=`${this.getApiUrl()}${t}`;return this.http.get(n,{headers:this.getHeaders()}).pipe(bp(t=>this.formatErrors(t,n,null,i)))}put(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);return this.http.put(n,s,{headers:this.getHeaders()}).pipe(bp(t=>this.formatErrors(t,n,s,i)))}post(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);let r=this.getHeaders();return r=r.set("Content-Type","application/json; charset=utf-8"),this.http.post(n,s,{headers:r}).pipe(bp(t=>this.formatErrors(t,n,s,i)))}delete(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe(bp(t=>this.formatErrors(t,i,null,e)))}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Gx),gn(Ux),gn(Kx))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Xx=(()=>{class t{constructor(){}isAllSelectedWithDisabledCheckbox(t,e,i,n,s,r,o,a){return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=s*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?r.data.length:r.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),r.sortData(r.filteredData,o).forEach(t=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?c(t)&&this.pageStart<=this.pageIterator&&this.pageIterator closed",[pw(".3s ease-in")])]);const tR=fw("flyInOut",[bw(":enter",[_w({transform:"translateX(100%)"}),pw(".25s")]),bw(":leave",[pw(".5s",_w({transform:"translateX(100%)"}))])]);fw("rollInOut",[bw(":enter",[_w({height:"0px"}),pw(".25s")]),bw(":leave",[pw(".25s",_w({height:"0px"}))])]),fw("routeAnimations",[bw("* => *",[_w({position:"relative"}),Aw(":enter",[_w({width:"100%",opacity:0})],{optional:!0}),Aw(":leave",[_w({position:"absolute",width:"100%",opacity:1}),pw("0.15s",_w({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Aw(":enter",[_w({position:"absolute",width:"100%",opacity:0}),pw("0.15s",_w({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),fw("tagsOpenClose",[yw("open",_w({})),yw("closed",_w({width:"0px",height:"0px"})),bw("open <=> closed",[pw(".3s ease-in")])]),fw("switchAnimations",[bw("true => false",[Aw(":enter, :leave",_w({})),gw([Aw(":enter",[_w({transform:"translateX(-100%)"}),pw("1s ease-in-out",_w({transform:"translateX(0%)"}))],{optional:!0}),Aw(":leave",[_w({transform:"translateX(0%)",position:"absolute"}),pw("1s ease-in-out",_w({transform:"translateX(100%)"}))],{optional:!0})])]),bw("false => true",[Aw(":enter, :leave",_w({})),gw([Aw(":enter",[_w({transform:"translateX(100%)"}),pw("1s ease-in-out",_w({transform:"translateX(0%)"}))],{optional:!0}),Aw(":leave",[_w({transform:"translateX(0%)",position:"absolute"}),pw("1s ease-in-out",_w({transform:"translateX(-100%)"}))],{optional:!0})])])]),fw("slideInOutLeft",[bw(":enter",[_w({transform:"translateX(-100%)",position:"relative"}),pw("0.5s ease-in",_w({transform:"translateX(0%)"}))]),bw(":leave",[pw("0.5s ease-in",_w({transform:"translateX(-100%)"}))])]),fw("slideInOutRight",[bw(":enter",[_w({transform:"translateX(100%)",position:"fixed"}),pw("0.5s ease-in",_w({transform:"translateX(0%)"}))]),bw(":leave",[_w({transform:"translateX(-100%)",position:"relative"}),pw("0.5s ease-in",_w({transform:"translateX(100%)"}))])]);let eR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[ed]]}),t})();function iR(t,e){if(1&t&&(ci(),No(0,"circle",3)),2&t){const t=ea();fa("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Lo("r",t._getCircleRadius())}}function nR(t,e){if(1&t&&(ci(),No(0,"circle",3)),2&t){const t=ea();fa("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Lo("r",t._getCircleRadius())}}function sR(t,e){if(1&t&&(ci(),No(0,"circle",3)),2&t){const t=ea();fa("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Lo("r",t._getCircleRadius())}}function rR(t,e){if(1&t&&(ci(),No(0,"circle",3)),2&t){const t=ea();fa("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Lo("r",t._getCircleRadius())}}const oR=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class aR{constructor(t){this._elementRef=t}}const cR=hA(aR,"primary"),uR=new Ji("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let lR=(()=>{class t extends cR{constructor(e,i,n,s,r){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(n.head)||o.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=ny(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=ny(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,ny(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=vy(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(ly),Ho(Fl,8),Ho(Zv,8),Ho(uR))},t.\u0275cmp=Kt({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(Lo("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),fa("width",e.diameter,"px")("height",e.diameter,"px"),pa("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[bo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(ci(),jo(0,"svg",0),Io(1,iR,1,9,"circle",1),Io(2,nR,1,7,"circle",2),Yo()),2&t&&(fa("width",e.diameter,"px")("height",e.diameter,"px"),Oo("ngSwitch","indeterminate"===e.mode),Lo("viewBox",e._getViewBox()),rr(1),Oo("ngSwitchCase",!0),rr(1),Oo("ngSwitchCase",!1))},directives:[Kh,Uh],styles:[oR],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),hR=(()=>{class t extends lR{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(ly),Ho(Fl,8),Ho(Zv,8),Ho(uR))},t.\u0275cmp=Kt({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(fa("width",e.diameter,"px")("height",e.diameter,"px"),pa("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[bo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(ci(),jo(0,"svg",0),Io(1,sR,1,9,"circle",1),Io(2,rR,1,7,"circle",2),Yo()),2&t&&(fa("width",e.diameter,"px")("height",e.diameter,"px"),Oo("ngSwitch","indeterminate"===e.mode),Lo("viewBox",e._getViewBox()),rr(1),Oo("ngSwitchCase",!0),rr(1),Oo("ngSwitchCase",!1))},directives:[Kh,Uh],styles:[oR],encapsulation:2,changeDetection:0}),t})(),dR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[uA,ed],uA]}),t})();const fR=yy({passive:!0});let pR=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return op;const e=ay(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new k,s="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,fR),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",r,fR)}}),n}stopMonitoring(t){const e=ay(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(gn(ly),gn(nl))},t.\u0275prov=dt({factory:function(){return new t(gn(ly),gn(nl))},token:t,providedIn:"root"}),t})(),gR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[hy]]}),t})();const mR=new Ji("MAT_INPUT_VALUE_ACCESSOR"),_R=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let yR=0;class wR{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const bR=pA(wR);let vR=(()=>{class t extends bR{constructor(t,e,i,n,s,r,o,a,c,u){super(r,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+yR++,this.focused=!1,this.stateChanges=new k,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>fy().has(t));const l=this._elementRef.nativeElement,h=l.nodeName.toLowerCase();this._inputValueAccessor=o||l,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&c.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===h,this._isTextarea="textarea"===h,this._isNativeSelect&&(this.controlType=l.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=iy(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=iy(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&fy().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=iy(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){_R.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(ly),Ho(aS,10),Ho(OS,8),Ho(WS,8),Ho(xA),Ho(mR,10),Ho(pR),Ho(nl),Ho(EC,8))},t.\u0275dir=Gt({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&Jo("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(La("disabled",e.disabled)("required",e.required),Lo("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),pa("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Za([{provide:gC,useExisting:t}]),bo,ue]}),t})(),AR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[xA],imports:[[gR,RC,uA],gR,RC]}),t})();function kR(t,e){1&t&&No(0,"mat-spinner",7)}function TR(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function CR(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function SR(t,e){if(1&t){const t=qo();jo(0,"div",8),jo(1,"mat-form-field"),jo(2,"mat-label"),Ma(3),uu(4,"translate"),Yo(),jo(5,"input",9,10),Jo("ngModelChange",function(e){return ze(t),ea().subject=e}),Yo(),Io(7,TR,3,3,"mat-error",11),Yo(),jo(8,"mat-form-field"),jo(9,"mat-label"),Ma(10),uu(11,"translate"),Yo(),jo(12,"textarea",12,13),Jo("ngModelChange",function(e){return ze(t),ea().message=e}),uu(14,"translate"),Ma(15," "),Yo(),Io(16,CR,3,3,"mat-error",11),Yo(),Yo()}if(2&t){const t=Fo(6),e=Fo(13),i=ea();rr(3),Ea(lu(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),rr(2),Oo("ngModel",i.subject),rr(2),Oo("ngIf",t.invalid),rr(3),Ea(lu(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),rr(2),ra("placeholder",lu(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),Oo("ngModel",i.message),rr(4),Oo("ngIf",e.invalid)}}let MR=(()=>{class t{constructor(t,e,i,n,s,r){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.data=s,this.storeService=r,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data.error&&this.data.error.errorId&&(this.subject=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(t=>{this.dialogRef.afterClosed().subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const t=this.storeService.get("config");let e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),e=e.concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.urlWithParams+"\n\n"),this.data.error.payload){const t=/"password":".+?"/;let i=JSON.stringify(this.data.error.payload);i=i.replace(t,'"password":"####"'),e=e.concat("Payload:\n"+i+"\n\n")}return e=e.concat("Sended from new Perun Gui, version: "+i(306).i8),e.split("\n").join("\n ")}parseMethod(t){return t?this.methodRegexp.exec(t)[1]:t}}return t.\u0275fac=function(e){return new(e||t)(Ho(gx),Ho(rx),Ho(Gx),Ho(Hf),Ho(_x),Ho(Kx))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"h1",0),Ma(1),uu(2,"translate"),Yo(),Io(3,kR,1,0,"mat-spinner",1),Io(4,SR,17,13,"div",2),jo(5,"div",3),jo(6,"div",4),jo(7,"button",5),Jo("click",function(){return e.dialogRef.close()}),Ma(8),uu(9,"translate"),Yo(),jo(10,"button",6),Jo("click",function(){return e.sendBugReport()}),Ma(11),uu(12,"translate"),Yo(),Yo(),Yo()),2&t&&(rr(1),Ea(lu(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),rr(2),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading),rr(4),xa(" ",lu(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),rr(2),Oo("disabled",""===e.message||""===e.subject||e.loading),rr(1),xa(" ",lu(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[Tx,Bh,Sx,ak,hR,Cx,xC,wC,vR,OC,QS,uS,YS,fC],pipes:[ox],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),ER=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.dialog=e,this.data=i}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const t=Dx();t.width="550px",t.data={error:this.data.error},t.autoFocus=!1,this.dialog.open(MR,t)}),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ho(gx),Ho(Ax),Ho(_x))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"h1",0),Ma(1),Yo(),jo(2,"div",1),Ma(3),Yo(),jo(4,"div",2),jo(5,"div",3),jo(6,"button",4),Jo("click",function(){return e.onBugReportClick()}),Ma(7),uu(8,"translate"),Yo(),jo(9,"button",5),Jo("click",function(){return e.onCloseClick()}),Ma(10),uu(11,"translate"),Yo(),Yo(),Yo()),2&t&&(rr(1),Ea(e.data.title),rr(2),xa("\n",e.data.description,"\n"),rr(3),Oo("hidden","error"!==e.data.type),rr(1),xa(" ",lu(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),rr(3),xa(" ",lu(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[Tx,Cx,Sx,ak],pipes:[ox],styles:[""]}),t})();const xR=[[["caption"]],[["colgroup"],["col"]]],RR=["caption","colgroup, col"];function DR(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=iy(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const PR=new Ji("CDK_TABLE");let LR=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["","cdkCellDef",""]]}),t})(),zR=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),IR=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class FR{}const HR=DR(FR);let OR=(()=>{class t extends HR{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=iy(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(Ho(PR,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(Ru(i,LR,5),Ru(i,zR,5),Ru(i,IR,5)),2&t){let t;Eu(t=Du())&&(e.cell=t.first),Eu(t=Du())&&(e.headerCell=t.first),Eu(t=Du())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Za([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),bo]}),t})();class BR{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let jR=(()=>{class t extends BR{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Ho(OR),Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[bo]}),t})(),YR=(()=>{class t extends BR{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Ho(OR),Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[bo]}),t})();class NR{constructor(){this.tasks=[],this.endTasks=[]}}const KR=new Ji("_COALESCED_STYLE_SCHEDULER");let UR=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new k}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new NR,this._getScheduleObservable().pipe(Pk(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new NR;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?B(Promise.resolve(void 0)):this._ngZone.onStable.pipe(fp(1))}}return t.\u0275fac=function(e){return new(e||t)(gn(nl))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),VR=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof WR?t.headerCell.template:this instanceof ZR?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic),Ho(kc))},t.\u0275dir=Gt({type:t,features:[ue]}),t})();class qR extends VR{}const $R=DR(qR);let WR=(()=>{class t extends $R{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic),Ho(kc),Ho(PR,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[bo,ue]}),t})();class GR extends VR{}const JR=DR(GR);let ZR=(()=>{class t extends JR{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic),Ho(kc),Ho(PR,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[bo,ue]}),t})(),QR=(()=>{class t extends VR{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic),Ho(kc),Ho(PR,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[bo]}),t})(),XR=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc))},t.\u0275dir=Gt({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),tD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({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(t,e){1&t&&Vo(0,0)},directives:[XR],encapsulation:2}),t})(),eD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Vo(0,0)},directives:[XR],encapsulation:2}),t})(),iD=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const nD=["top","bottom","left","right"];class sD{constructor(t,e,i,n,s=!0,r=!0,o){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=s,this._needsPositionStickyOnElement=r,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],r=s.children.length,o=this._getCellWidths(s,n),a=this._getStickyStartColumnPositions(o,e),c=this._getStickyEndColumnPositions(o,i),u=e.lastIndexOf(!0),l=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const n="rtl"===this.direction,s=n?"right":"left",h=n?"left":"right";for(const o of t)for(let t=0;te[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===l?[]:o.slice(l).map((t,e)=>i[e+l]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,r=[],o=[],a=[];for(let u=0,l=0;u{var t,e;for(let o=0;o{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);nD.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of nD)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}const rD=new Ji("CDK_SPL");let oD=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","rowOutlet",""]]}),t})(),aD=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),cD=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),uD=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),lD=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u,l){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=c,this._viewportRuler=u,this._stickyPositioningListener=l,this._onDestroy=new k,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.viewChange=new Xf({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=iy(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=iy(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler.change().pipe(Pk(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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),qk(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),hD(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=hD(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=hD(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=hD(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],qk(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;qk(this.dataSource)?t=this.dataSource.connect(this):Ak(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Bd(this.dataSource)),this._renderChangeSubscription=t.pipe(Pk(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const s=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),s}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))XR.mostRecentCellOutlet&&XR.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new sD(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Bd()).pipe(Pk(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(Ho(kc),Ho(Rc),Ho(sc),$i("role"),Ho(cw,8),Ho(Fl),Ho(ly),Ho(Jk),Ho(KR),Ho(Xk),Ho(rD,12))},t.\u0275cmp=Kt({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(Ru(i,iD,5),Ru(i,OR,5),Ru(i,QR,5),Ru(i,WR,5),Ru(i,ZR,5)),2&t){let t;Eu(t=Du())&&(e._noDataRow=t.first),Eu(t=Du())&&(e._contentColumnDefs=t),Eu(t=Du())&&(e._contentRowDefs=t),Eu(t=Du())&&(e._contentHeaderRowDefs=t),Eu(t=Du())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(xu(oD,7),xu(aD,7),xu(cD,7),xu(uD,7)),2&t){let t;Eu(t=Du())&&(e._rowOutlet=t.first),Eu(t=Du())&&(e._headerRowOutlet=t.first),Eu(t=Du())&&(e._footerRowOutlet=t.first),Eu(t=Du())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&pa("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[Za([{provide:PR,useExisting:t},{provide:Jk,useClass:$k},{provide:KR,useClass:UR},{provide:rD,useValue:null}])],ngContentSelectors:RR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(na(xR),sa(0),sa(1,1),Vo(2,0),Vo(3,1),Vo(4,2),Vo(5,3))},directives:[aD,oD,uD,cD],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function hD(t,e){return t.concat(Array.from(e))}let dD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[eT]]}),t})();const fD=[[["caption"]],[["colgroup"],["col"]]],pD=["caption","colgroup, col"];let gD=(()=>{class t extends lD{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&pa("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[Za([{provide:Jk,useClass:$k},{provide:lD,useExisting:t},{provide:PR,useExisting:t},{provide:KR,useClass:UR},{provide:rD,useValue:null}]),bo],ngContentSelectors:pD,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(na(fD),sa(0),sa(1,1),Vo(2,0),Vo(3,1),Vo(4,2),Vo(5,3))},directives:[aD,oD,uD,cD],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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),mD=(()=>{class t extends LR{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matCellDef",""]],features:[Za([{provide:LR,useExisting:t}]),bo]}),t})(),_D=(()=>{class t extends zR{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matHeaderCellDef",""]],features:[Za([{provide:zR,useExisting:t}]),bo]}),t})(),yD=(()=>{class t extends OR{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Za([{provide:OR,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),bo]}),t})(),wD=(()=>{class t extends jR{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[bo]}),t})(),bD=(()=>{class t extends YR{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[bo]}),t})(),vD=(()=>{class t extends WR{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Za([{provide:WR,useExisting:t}]),bo]}),t})(),AD=(()=>{class t extends QR{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Za([{provide:QR,useExisting:t}]),bo]}),t})(),kD=(()=>{class t extends tD{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Za([{provide:tD,useExisting:t}]),bo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Vo(0,0)},directives:[XR],encapsulation:2}),t})(),TD=(()=>{class t extends eD{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Za([{provide:eD,useExisting:t}]),bo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Vo(0,0)},directives:[XR],encapsulation:2}),t})(),CD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[dD,uA],uA]}),t})();class SD extends class extends class{}{constructor(t=[]){super(),this._renderData=new Xf([]),this._filter=new Xf(""),this._internalPageChanges=new k,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const i=t[e];if(sy(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),r=this.sortingDataAccessor(e,i);const o=typeof s,a=typeof r;o!==a&&("number"===o&&(s+=""),"number"===a&&(r+=""));let c=0;return null!=s&&null!=r?s>r?c=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new Xf(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?V(this._sort.sortChange,this._sort.initialized):Bd(null),i=this._paginator?V(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Bd(null),n=ep([this._data,this._filter]).pipe(I(([t])=>this._filterData(t))),s=ep([n,e]).pipe(I(([t])=>this._orderData(t))),r=ep([s,i]).pipe(I(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=r.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}{}function MD(t,e){1&t&&No(0,"mat-spinner",6)}function ED(t,e){1&t&&No(0,"th",15)}function xD(t,e){if(1&t&&(jo(0,"td",16),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),xa(" ",t," ")}}function RD(t,e){1&t&&No(0,"tr",17)}function DD(t,e){1&t&&No(0,"tr",18)}function PD(t,e){if(1&t&&(jo(0,"div",7),jo(1,"p"),Ma(2),uu(3,"translate"),Yo(),jo(4,"div",8),Ma(5),uu(6,"translate"),Yo(),jo(7,"table",9),Ko(8,10),Io(9,ED,1,0,"th",11),Io(10,xD,2,1,"td",12),Uo(),Io(11,RD,1,0,"tr",13),Io(12,DD,1,0,"tr",14),Yo(),Yo()),2&t){const t=ea();rr(2),xa(" ",lu(3,5,t.data.description)," "),rr(3),xa(" ",lu(6,7,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "),rr(2),Oo("dataSource",t.dataSource),rr(4),Oo("matHeaderRowDef",t.displayedColumns),rr(1),Oo("matRowDefColumns",t.displayedColumns)}}let LD=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new SD(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(Ho(gx),Ho(_x))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-universal-remove-items-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(jo(0,"div"),jo(1,"h1",0),Ma(2),uu(3,"translate"),Yo(),Io(4,MD,1,0,"mat-spinner",1),Io(5,PD,13,9,"div",2),jo(6,"div",3),jo(7,"button",4),Jo("click",function(){return e.onCancel()}),Ma(8),uu(9,"translate"),Yo(),jo(10,"button",5),Jo("click",function(){return e.onSubmit()}),Ma(11),uu(12,"translate"),Yo(),Yo(),Yo()),2&t&&(ga(e.theme),rr(2),Ea(lu(3,9,e.data.title)),rr(2),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading),rr(3),xa(" ",lu(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),rr(2),Oo("disabled",e.loading),rr(1),xa(" ",lu(12,13,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," "))},directives:[Tx,Bh,Sx,ak,hR,Cx,gD,yD,_D,mD,vD,AD,wD,bD,kD,TD],pipes:[ox],styles:[""]}),t})(),zD=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.theme=this.data.theme,this.message=this.data.message}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(Ho(gx),Ho(_x))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"div"),jo(1,"h1",0),Ma(2),uu(3,"translate"),Yo(),jo(4,"div",1),jo(5,"button",2),Jo("click",function(){return e.onCancel()}),Ma(6),uu(7,"translate"),Yo(),jo(8,"button",3),Jo("click",function(){return e.onSubmit()}),Ma(9),uu(10,"translate"),Yo(),Yo(),Yo()),2&t&&(ga(e.theme),rr(2),Ea(lu(3,6,e.message)),rr(4),xa(" ",lu(7,8,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.CANCEL_BUTTON")," "),rr(3),xa(" ",lu(10,10,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.SUBMIT_BUTTON")," "))},directives:[Tx,Sx,ak],pipes:[ox],styles:[""]}),t})();function ID(t,e){if(1&t&&(jo(0,"div",5),jo(1,"mat-icon"),Ma(2),Yo(),Yo()),2&t){const t=ea();rr(2),Ea(t.data.icon)}}function FD(t,e){if(1&t&&(jo(0,"div",6),Ma(1),Yo()),2&t){const t=ea();rr(1),xa(" ",t.showTimestamp()," ")}}let HD=(()=>{class t{constructor(t,e){this.dialog=t,this.notificationStorageService=e,this.newNotification=!1,this.closeNotification=new mu,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 t=Dx();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(ER,t).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function(t,e){return i=this,s=function*(){var i;yield(i=t,new Promise(t=>setTimeout(t,i))),e()},new((n=void 0)||(n=Promise))(function(t,e){function r(t){try{a(s.next(t))}catch(i){e(i)}}function o(t){try{a(s.throw(t))}catch(i){e(i)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n(function(t){t(i)})).then(r,o)}a((s=s.apply(i,[])).next())});var i,n,s}(this.data.delay,()=>{this.alreadyClosed||this.waiting||this.closeSelf()})}showTimestamp(){const[t,e]=this.data.timeStamp.split(":");return e.length<2?t+":0"+e:this.data.timeStamp}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ax),Ho(Zx))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"div"),jo(1,"div",0),Jo("click",function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()}),Io(2,ID,3,1,"div",1),jo(3,"div",2),Ma(4),uu(5,"translate"),Yo(),Io(6,FD,2,1,"div",3),jo(7,"div",4),Jo("click",function(){return e.waiting=!0,e.doAction()}),Ma(8),Yo(),Yo(),Yo()),2&t&&(Pa("notification ",e.inDialog?"":"mat-elevation-z7",""),pa("error","error"===e.data.type)("success","success"===e.data.type),rr(2),Oo("ngIf",null!==e.data.icon),rr(2),xa(" ",lu(5,12,e.data.title)," "),rr(2),Oo("ngIf",e.inDialog),rr(1),Oo("hidden",e.alreadyPressed),rr(1),xa(" ",e.data.actionText," "))},directives:[Bh,jE],pipes:[ox],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}"]}),t})();function OD(t,e){if(1&t){const t=qo();jo(0,"div"),jo(1,"perun-web-apps-notification",2),Jo("closeNotification",function(){const e=ze(t).index;return ea().removeNotification(e)}),Yo(),Yo()}if(2&t){const t=e.$implicit;Oo("@flyInOut",void 0),rr(1),Oo("data",t)("newNotification",!0)}}const BD=function(t){return{top:t}};let jD=(()=>{class t{constructor(t,e){this.notificator=t,this.notificationStorageService=e,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(t=>{this.processNotification(t)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}processNotification(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(t){this.notifications.splice(t,1)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Gx),Ho(Zx))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&Jo("resize",function(t){return e.getScreenSize(t)},!1,gs)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(jo(0,"div",0),Io(1,OD,2,3,"div",1),Yo()),2&t&&(Oo("ngStyle",su(2,BD,e.getNotificatorTop())),rr(1),Oo("ngForOf",e.notifications))},directives:[qh,Hh,HD],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width:768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;bottom:0}}"],data:{animation:[tR]}}),t})();const YD=["*",[["mat-toolbar-row"]]],ND=["*","mat-toolbar-row"];class KD{constructor(t){this._elementRef=t}}const UD=hA(KD);let VD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),qD=(()=>{class t extends UD{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(ly),Ho(Fl))},t.\u0275cmp=Kt({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&Ru(i,VD,5),2&t){let t;Eu(t=Du())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&pa("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[bo],ngContentSelectors:ND,decls:2,vars:0,template:function(t,e){1&t&&(na(YD),sa(0),sa(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),$D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[uA],uA]}),t})();const WD=function(t){return{background:t}},GD=function(t){return{color:t}};let JD=(()=>{class t{constructor(t,e,i){this.storeService=t,this.authService=e,this.sanitizer=i,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")}ngOnInit(){this.principal=this.storeService.getPerunPrincipal(),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}onLogOut(){this.authService.logout()}}return t.\u0275fac=function(e){return new(e||t)(Ho(Kx),Ho(Ux),Ho(Ld))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-header"]],inputs:{sideNav:"sideNav"},decls:21,vars:28,consts:[[1,"header-container",3,"ngStyle"],[2,"display","flex","flex-direction","row"],["mat-icon-button","",1,"mt-auto","mb-auto",3,"ngStyle","click"],["routerLink","/all-publications",1,"router-icon-scale",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-menu-user-info",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(jo(0,"mat-toolbar",0),jo(1,"div",1),jo(2,"button",2),Jo("click",function(){return e.sideNav.toggle()}),jo(3,"mat-icon"),Ma(4,"menu"),Yo(),Yo(),No(5,"a",3),No(6,"mat-icon",4),jo(7,"p",5),Ma(8),uu(9,"translate"),Yo(),Yo(),jo(10,"div",6),jo(11,"button",7),jo(12,"mat-icon",8),Ma(13," person "),Yo(),jo(14,"span",9),Ma(15),Yo(),Yo(),jo(16,"mat-menu",null,10),jo(18,"button",11),Jo("click",function(){return e.onLogOut()}),Ma(19),uu(20,"translate"),Yo(),Yo(),Yo(),Yo()),2&t){const t=Fo(17);Oo("ngStyle",su(18,WD,e.bgColor)),rr(2),Oo("ngStyle",su(20,GD,e.iconColor)),rr(3),Oo("innerHTML",e.logo,rs),rr(2),Oo("ngStyle",su(22,GD,e.textColor)),rr(1),Ea(lu(9,14,"HEADER.TITLE")),rr(2),Oo("ngStyle",su(24,GD,e.textColor)),rr(1),Oo("matMenuTriggerFor",t),rr(1),Oo("ngStyle",su(26,GD,e.iconColor)),rr(3),Da(" ",e.principal.user.titleBefore," ",e.principal.user.firstName," ",e.principal.user.middleName," ",e.principal.user.lastName," ",e.principal.user.titleAfter," "),rr(4),Ea(lu(20,16,"HEADER.LOGOUT"))}},directives:[qD,qh,ak,jE,y_,__,kE,wE,gE],pipes:[ox],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}#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}.router-icon-scale[_ngcontent-%COMP%]{transform:scale(.75)}"]}),t})();function ZD(t){return e=>e.lift(new QD(t))}class QD{constructor(t){this.value=t}call(t,e){return e.subscribe(new XD(t,this.value))}}class XD extends p{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}const tP=["*"];function eP(t,e){if(1&t){const t=qo();jo(0,"div",2),Jo("click",function(){return ze(t),ea()._onBackdropClicked()}),Yo()}2&t&&pa("mat-drawer-shown",ea()._isShowingBackdrop())}function iP(t,e){1&t&&(jo(0,"mat-drawer-content"),sa(1,2),Yo())}const nP=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],sP=["mat-drawer","mat-drawer-content","*"];function rP(t,e){if(1&t){const t=qo();jo(0,"div",2),Jo("click",function(){return ze(t),ea()._onBackdropClicked()}),Yo()}2&t&&pa("mat-drawer-shown",ea()._isShowingBackdrop())}function oP(t,e){1&t&&(jo(0,"mat-sidenav-content",3),sa(1,2),Yo())}const aP=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],cP=["mat-sidenav","mat-sidenav-content","*"],uP=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",lP={transformDrawer:fw("transform",[yw("open, open-instant",_w({transform:"none",visibility:"visible"})),yw("void",_w({"box-shadow":"none",visibility:"hidden"})),bw("void => open-instant",pw("0ms")),bw("void <=> open, open-instant => void",pw("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},hP=new Ji("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),dP=new Ji("MAT_DRAWER_CONTAINER");let fP=(()=>{class t extends Qk{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(Ho(Rc),Ho(rt(()=>gP)),Ho(sc),Ho(Zk),Ho(nl))},t.\u0275cmp=Kt({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&fa("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[bo],ngContentSelectors:tP,decls:1,vars:0,template:function(t,e){1&t&&(na(),sa(0))},encapsulation:2,changeDetection:0}),t})(),pP=(()=>{class t{constructor(t,e,i,n,s,r,o){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=s,this._doc=r,this._container=o,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new k,this._animationEnd=new k,this._animationState="void",this.openedChange=new mu(!0),this._openedStream=this.openedChange.pipe(Yd(t=>t),I(()=>{})),this.openedStart=this._animationStarted.pipe(Yd(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),ZD(void 0)),this._closedStream=this.openedChange.pipe(Yd(t=>!t),I(()=>{})),this.closedStart=this._animationStarted.pipe(Yd(t=>t.fromState!==t.toState&&"void"===t.toState),ZD(void 0)),this._destroyed=new k,this.onPositionChanged=new mu,this._modeChanged=new k,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{uk(this._elementRef.nativeElement,"keydown").pipe(Yd(t=>t.keyCode===j_&&!this.disableClose&&!q_(t)),Pk(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(kk((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=iy(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=iy(t)}get opened(){return this._opened}set opened(t){this.toggle(iy(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(fp(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Ky),Ho(Xy),Ho(ly),Ho(nl),Ho(Fl,8),Ho(dP,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&Zo("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(Lo("align",null),za("@transform",e._animationState),pa("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:tP,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(na(),jo(0,"div",0),sa(1),Yo())},directives:[Qk],encapsulation:2,data:{animation:[lP.transformDrawer]},changeDetection:0}),t})(),gP=(()=>{class t{constructor(t,e,i,n,s,r=!1,o){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=o,this._drawers=new yu,this.backdropClick=new mu,this._destroyed=new k,this._doCheckSubject=new k,this._contentMargins={left:null,right:null},this._contentMarginChanges=new k,t&&t.change.pipe(Pk(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(Pk(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=iy(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:iy(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(mp(this._allDrawers),Pk(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(mp(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Q_(10),Pk(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(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Yd(t=>t.fromState!==t.toState),Pk(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"!==t.mode&&t.openedChange.pipe(Pk(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Pk(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(fp(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Pk(V(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),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(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(Ho(cw,8),Ho(sc),Ho(nl),Ho(Rc),Ho(Xk),Ho(hP),Ho(Zv,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(Ru(i,fP,5),Ru(i,pP,5)),2&t){let t;Eu(t=Du())&&(e._content=t.first),Eu(t=Du())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&xu(fP,5),2&t){let t;Eu(t=Du())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&pa("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Za([{provide:dP,useExisting:t}])],ngContentSelectors:sP,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(t,e){1&t&&(na(nP),Io(0,eP,1,2,"div",0),sa(1),sa(2,1),Io(3,iP,2,0,"mat-drawer-content",1)),2&t&&(Oo("ngIf",e.hasBackdrop),rr(3),Oo("ngIf",!e._content))},directives:[Bh,fP],styles:[uP],encapsulation:2,changeDetection:0}),t})(),mP=(()=>{class t extends fP{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Rc),Ho(rt(()=>yP)),Ho(sc),Ho(Zk),Ho(nl))},t.\u0275cmp=Kt({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&fa("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[bo],ngContentSelectors:tP,decls:1,vars:0,template:function(t,e){1&t&&(na(),sa(0))},encapsulation:2,changeDetection:0}),t})(),_P=(()=>{class t extends pP{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=iy(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=ny(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=ny(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(Lo("align",null),fa("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),pa("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[bo],ngContentSelectors:tP,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(na(),jo(0,"div",0),sa(1),Yo())},directives:[Qk],encapsulation:2,data:{animation:[lP.transformDrawer]},changeDetection:0}),t})(),yP=(()=>{class t extends gP{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){if(1&t&&(Ru(i,mP,5),Ru(i,_P,5)),2&t){let t;Eu(t=Du())&&(e._content=t.first),Eu(t=Du())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&pa("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[Za([{provide:dP,useExisting:t}]),bo],ngContentSelectors:cP,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(na(aP),Io(0,rP,1,2,"div",0),sa(1),sa(2,1),Io(3,oP,2,0,"mat-sidenav-content",1)),2&t&&(Oo("ngIf",e.hasBackdrop),rr(3),Oo("ngIf",!e._content))},directives:[Bh,mP,Qk],styles:[uP],encapsulation:2,changeDetection:0}),t})(),wP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[ed,uA,hy,tT],tT,uA]}),t})(),bP=(()=>{class t{constructor(t){this.authResolver=t}getSideMenuItems(){const t=[];return this.authResolver.isCabinetAdmin()&&t.push({label:"MENU_ITEMS.ALL_PUBLICATIONS",icon:"perun-publications-white",isSVG:!0,link:"/all-publications",activatedRegex:"^/all-publications$",tabName:"all-publications"}),t.push({label:"MENU_ITEMS.MY_PUBLICATIONS",icon:"local_library",link:"/my-publications",activatedRegex:"^/my-publications$",tabName:"my-publications"}),t.push({label:"MENU_ITEMS.CREATE_PUBLICATION",icon:"add_box",link:"/create-publication",activatedRegex:"^/create-publication$",tabName:"create-publication"}),t.push({label:"MENU_ITEMS.AUTHORS",icon:"assignment_ind",link:"/authors",activatedRegex:"^/authors$",tabName:"authors"}),t.push({label:"MENU_ITEMS.CATEGORIES",icon:"all_inbox",link:"/categories",activatedRegex:"^/categories$",tabName:"categories"}),t.push({label:"MENU_ITEMS.PUBLICATION_SYSTEMS",icon:"assignment",link:"/publication-systems",activatedRegex:"^/publication-systems$",tabName:"publication-systems"}),t}}return t.\u0275fac=function(e){return new(e||t)(gn(Zf))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[uA],uA]}),t})();const AP=["*"],kP=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],TP=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class CP{}const SP=lA(dA(CP));class MP{}const EP=dA(MP),xP=new Ji("MatList"),RP=new Ji("MatNavList");let DP=(()=>{class t extends SP{constructor(){super(...arguments),this._stateChanges=new k}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[Za([{provide:RP,useExisting:t}]),bo,ue],ngContentSelectors:AP,decls:1,vars:0,template:function(t,e){1&t&&(na(),sa(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),PP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),LP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),zP=(()=>{class t extends EP{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new k,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Pk(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=iy(t)}ngAfterContentInit(){!function(t,e,i="mat"){t.changes.pipe(mp(t)).subscribe(({length:t})=>{DA(e,`${i}-2-line`,!1),DA(e,`${i}-3-line`,!1),DA(e,`${i}-multi-line`,!1),2===t||3===t?DA(e,`${i}-${t}-line`,!0):t>3&&DA(e,`${i}-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 t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(RP,8),Ho(xP,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(Ru(i,PP,5),Ru(i,LP,5),Ru(i,RA,5)),2&t){let t;Eu(t=Du())&&(e._avatar=t.first),Eu(t=Du())&&(e._icon=t.first),Eu(t=Du())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&pa("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[bo],ngContentSelectors:TP,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(t,e){1&t&&(na(kP),jo(0,"div",0),No(1,"div",1),sa(2),jo(3,"div",2),sa(4,1),Yo(),sa(5,2),Yo()),2&t&&(rr(1),Oo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[jA],encapsulation:2,changeDetection:0}),t})(),IP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[PA,YA,uA,KA,ed],PA,uA,KA,vP]}),t})();function FP(t,e){1&t&&No(0,"mat-icon",6),2&t&&Oo("svgIcon",ea().$implicit.icon)}const HP=function(t){return{color:t}};function OP(t,e){if(1&t&&(jo(0,"mat-icon",7),Ma(1),Yo()),2&t){const t=ea().$implicit,e=ea();Oo("ngStyle",su(2,HP,e.iconColor)),rr(1),Ea(t.icon)}}function BP(t,e){if(1&t){const t=qo();jo(0,"mat-list-item",2),Jo("click",function(){return ze(t),ea().shouldHideMenu()}),Io(1,FP,1,1,"mat-icon",3),Io(2,OP,2,4,"mat-icon",4),jo(3,"span",5),Ma(4),uu(5,"translate"),Yo(),Yo()}if(2&t){const t=e.$implicit,i=ea();pa("activated",i.isActive(t.activatedRegex)),ra("routerLink",t.link),Oo("ngStyle",su(9,HP,i.textColor)),rr(1),Oo("ngIf",t.isSVG),rr(1),Oo("ngIf",!t.isSVG),rr(2),Ea(lu(5,7,t.label))}}let jP=(()=>{class t{constructor(t,e,i){this.sideMenuItemService=t,this.storeService=e,this.router=i,this.items=[],this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.iconColor=this.storeService.get("theme","sidemenu_item_icon_color"),this.currentUrl=i.url,i.events.subscribe(t=>{t instanceof Kp&&(this.currentUrl=t.url)})}ngOnInit(){this.items=this.sideMenuItemService.getSideMenuItems()}isActive(t){return new RegExp(t).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}}return t.\u0275fac=function(e){return new(e||t)(Ho(bP),Ho(Kx),Ho(m_))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["disableRipple","","class","side-menu-item-height",3,"activated","ngStyle","routerLink","click",4,"ngFor","ngForOf"],["disableRipple","",1,"side-menu-item-height",3,"ngStyle","routerLink","click"],[3,"svgIcon",4,"ngIf"],[3,"ngStyle",4,"ngIf"],[1,"nav-caption","ml-3"],[3,"svgIcon"],[3,"ngStyle"]],template:function(t,e){1&t&&(jo(0,"mat-nav-list",0),Io(1,BP,6,11,"mat-list-item",1),Yo()),2&t&&(rr(1),Oo("ngForOf",e.items))},directives:[DP,Hh,zP,qh,__,Bh,jE],pipes:[ox],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}"]}),t})();function YP(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let NP=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.storeService=s,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(t=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)),this.dialogRef.close()})}getFullEmailBody(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(306).i8}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ho(gx),Ho(rx),Ho(Gx),Ho(Hf),Ho(Kx))},t.\u0275cmp=Kt({type:t,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(t,e){if(1&t&&(jo(0,"h1",0),Ma(1),uu(2,"translate"),Yo(),jo(3,"div",1),jo(4,"mat-form-field"),jo(5,"mat-label"),Ma(6),uu(7,"translate"),Yo(),jo(8,"input",2,3),Jo("ngModelChange",function(t){return e.subject=t}),Yo(),Io(10,YP,3,3,"mat-error",4),Yo(),jo(11,"mat-form-field"),jo(12,"mat-label"),Ma(13),uu(14,"translate"),Yo(),jo(15,"textarea",5),Jo("ngModelChange",function(t){return e.message=t}),uu(16,"translate"),Ma(17," "),Yo(),jo(18,"mat-hint"),Ma(19),uu(20,"translate"),Yo(),Yo(),Yo(),jo(21,"div",6),jo(22,"div",7),jo(23,"button",8),Jo("click",function(){return e.close()}),Ma(24),uu(25,"translate"),Yo(),jo(26,"button",9),Jo("click",function(){return e.sendBugReport()}),Ma(27),uu(28,"translate"),Yo(),Yo(),Yo()),2&t){const t=Fo(9);rr(1),Ea(lu(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),rr(5),Ea(lu(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),rr(2),Oo("ngModel",e.subject),rr(2),Oo("ngIf",t.invalid),rr(3),Ea(lu(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),rr(2),ra("placeholder",lu(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),Oo("ngModel",e.message),rr(4),Ea(lu(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),rr(5),xa(" ",lu(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),rr(2),Oo("disabled",t.invalid),rr(1),xa(" ",lu(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[Tx,Cx,xC,wC,vR,OC,QS,uS,YS,Bh,yC,Sx,ak,fC],pipes:[ox],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),KP=(()=>{class t{transform(t,e,i){return t[`${i}_${e}`]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Jt({name:"localisedText",type:t,pure:!0}),t})(),UP=(()=>{class t{transform(t,e){return t["link_"+e]||t.link_en}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Jt({name:"localisedLink",type:t,pure:!0}),t})();const VP=function(t){return{color:t}};function qP(t,e){if(1&t&&(jo(0,"i",16),Ma(1),Yo()),2&t){const t=ea().$implicit,e=ea(3);Oo("ngStyle",su(2,VP,e.linksTextColor)),rr(1),xa(" ",t.icon," ")}}function $P(t,e){if(1&t){const t=qo();jo(0,"span",17),Jo("click",function(){ze(t);const e=ea().$implicit;return ea(3).openDialog(e.dialog)}),Ma(1),uu(2,"localisedText"),Yo()}if(2&t){const t=ea().$implicit,e=ea(3);Oo("ngStyle",su(6,VP,e.linksTextColor)),rr(1),xa("",du(2,2,t,e.language,"label")," ")}}function WP(t,e){if(1&t&&(jo(0,"a",18),uu(1,"localisedLink"),Ma(2),uu(3,"localisedText"),Yo()),2&t){const t=ea().$implicit,e=ea(3);Oo("href",hu(1,3,t,e.language),os)("ngStyle",su(10,VP,e.linksTextColor)),rr(2),Ea(du(3,6,t,e.language,"label"))}}function GP(t,e){if(1&t&&(jo(0,"span",19),Ma(1),uu(2,"localisedText"),Yo()),2&t){const t=ea().$implicit,e=ea(3);Oo("ngStyle",su(6,VP,e.linksTextColor)),rr(1),Ea(du(2,2,t,e.language,"label"))}}function JP(t,e){if(1&t&&(jo(0,"div",11),Io(1,qP,2,4,"i",12),Io(2,$P,3,8,"span",13),Io(3,WP,4,12,"a",14),uu(4,"localisedLink"),Io(5,GP,3,8,"span",15),uu(6,"localisedLink"),Yo()),2&t){const t=e.$implicit,i=ea(3);rr(1),Oo("ngIf",t.icon),rr(1),Oo("ngIf",t.dialog),rr(1),Oo("ngIf",hu(4,4,t,i.language)&&!t.dialog),rr(2),Oo("ngIf",!hu(6,7,t,i.language)&&!t.dialog)}}function ZP(t,e){if(1&t&&(jo(0,"div"),Io(1,JP,7,10,"div",10),Yo()),2&t){const t=ea().$implicit;rr(1),Oo("ngForOf",t.elements)}}function QP(t,e){if(1&t&&(jo(0,"div",7),jo(1,"h6",8),Ma(2),uu(3,"localisedText"),Yo(),Io(4,ZP,2,1,"div",9),Yo()),2&t){const t=e.$implicit,i=ea();rr(1),Oo("ngStyle",su(7,VP,i.headersTextColor)),rr(1),xa(" ",du(3,3,t,i.language,"title")," "),rr(2),Oo("ngIf",t.elements)}}function XP(t,e){if(1&t&&(jo(0,"span"),jo(1,"a",6),Ma(2),Yo(),Yo()),2&t){const t=e.$implicit,i=e.index,n=ea();rr(1),Oo("href",t.url,os)("ngStyle",su(3,VP,n.copyrightTextColor)),rr(1),Ea(i?", "+t.name:t.name)}}const tL=function(t){return{background:t}};let eL=(()=>{class t{constructor(t,e,i){this.storeService=t,this.translateService=e,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),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.footerHeight=new mu}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{this.language=t.lang}),this.version=i(306).i8,this.items=this.storeService.get("footer","columns"),this.copyrightItems=this.storeService.get("footer","copyright_items"),this.getHeight()}openDialog(t){const e=Dx();switch(t){case"reportIssue":e.width="550px",this.dialog.open(NP,e)}}getHeight(){let t=1;for(const e of this.items)t=t{class t{constructor(t,e){this.storeService=t,this.sanitizer=e,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){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"):"",this.logoPadding="admin-gui"===this.application?this.storeService.get("logo_padding"):""}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return t.\u0275fac=function(e){return new(e||t)(Ho(Kx),Ho(Ld))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],["style"," display: flex; flex-direction: row;",4,"ngIf"],["style","padding-top: 16px",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"],[3,"ngStyle"],[1,"logo-container",3,"innerHTML","ngStyle"],[2,"display","flex","flex-direction","row"],[1,"router-icon-scale",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[2,"padding-top","16px"],[1,"ml-3",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(t,e){1&t&&(jo(0,"div",0),Io(1,sL,2,6,"div",1),Io(2,rL,3,1,"div",2),Io(3,oL,2,1,"div",3),Io(4,cL,2,4,"p",4),Yo(),jo(5,"div",5),jo(6,"div",6),jo(7,"div",7),No(8,"router-outlet"),Yo(),jo(9,"div",8),No(10,"perun-web-apps-footer"),Yo(),Yo(),Yo()),2&t&&(Oo("ngStyle",ru(6,uL,e.headerBackgroundColor,e.headerTextColor)),rr(1),Oo("ngIf","admin-gui"===e.application),rr(1),Oo("ngIf","publications"===e.application),rr(1),Oo("ngIf","user-profile"===e.application),rr(1),Oo("ngIf",!!e.headerTitle),rr(2),Oo("ngStyle",ru(9,lL,e.getContentInnerMinHeight(),e.contentBackgroundColor)))},directives:[qh,Bh,b_,eL,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}.router-icon-scale[_ngcontent-%COMP%]{transform:scale(.75);margin-top:.3rem}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}"]}),t})();const dL=function(t){return{background:t}},fL=function(t){return{"min-height":t}};function pL(t,e){if(1&t){const t=qo();jo(0,"div"),No(1,"perun-web-apps-header",1),jo(2,"mat-sidenav-container"),jo(3,"mat-sidenav",2,3),No(5,"perun-web-apps-side-menu",4),Yo(),jo(6,"mat-sidenav-content",5),jo(7,"div",6),No(8,"router-outlet"),Yo(),jo(9,"perun-web-apps-footer",7),Jo("footerHeight",function(e){return ze(t),ea().setContentHeight(e)}),Yo(),Yo(),Yo(),Yo()}if(2&t){const t=Fo(4),e=ea();rr(1),Oo("sideNav",t),rr(2),Oo("mode",e.sidebarMode)("ngStyle",su(7,dL,e.sideMenuBgColor))("opened",!e.isMobile()),rr(2),Oo("sideNav",t),rr(1),Oo("ngStyle",su(9,dL,e.contentBackgroundColor)),rr(1),Oo("ngStyle",su(11,fL,e.contentHeight))}}function gL(t,e){1&t&&(jo(0,"div"),No(1,"perun-web-apps-login-screen-base",8),uu(2,"translate"),Yo()),2&t&&(rr(1),Oo("application","publications")("headerTitle",lu(2,2,"HEADER.TITLE")))}let mL=(()=>{class t{constructor(t,e){this.store=t,this.initAuth=e,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)"}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}isMobile(){return window.innerWidth<=t.minWidth}setContentHeight(t){this.contentHeight="calc(100vh - 84px - "+t+"px)"}}return t.minWidth=992,t.\u0275fac=function(e){return new(e||t)(Ho(Kx),Ho(qx))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-root"]],hostBindings:function(t,e){1&t&&Jo("resize",function(t){return e.getScreenSize(t)},!1,gs)},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"],[3,"footerHeight"],[3,"application","headerTitle"]],template:function(t,e){1&t&&(No(0,"perun-web-apps-notificator"),Io(1,pL,10,13,"div",0),Io(2,gL,3,4,"div",0)),2&t&&(rr(1),Oo("ngIf",!e.isLoginScreenShow),rr(1),Oo("ngIf",e.isLoginScreenShow))},directives:[jD,Bh,JD,yP,_P,qh,jP,mP,b_,eL,hL],pipes:[ox],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}"]}),t})();class _L{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}let yL=(()=>{class t{constructor(t,e){this.http=t,this.storeService=e}initializeColors(t,e){return new Promise(i=>{e.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),this.setEntityTheme(t.entity,e)}),i()})}setEntityTheme(t,e){const i=(n=e,[wL(tinycolor(n).lighten(52),"50"),wL(tinycolor(n).lighten(37),"100"),wL(tinycolor(n).lighten(26),"200"),wL(tinycolor(n).lighten(12),"300"),wL(tinycolor(n).lighten(6),"400"),wL(tinycolor(n),"500"),wL(tinycolor(n).darken(6),"600"),wL(tinycolor(n).darken(12),"700"),wL(tinycolor(n).darken(18),"800"),wL(tinycolor(n).darken(24),"900"),wL(tinycolor(n).lighten(50).saturate(30),"A100"),wL(tinycolor(n).lighten(30).saturate(30),"A200"),wL(tinycolor(n).lighten(10).saturate(15),"A400"),wL(tinycolor(n).lighten(5).saturate(5),"A700")]);var n;for(const s of i){const e=`--${t}-theme-primary-contrast-${s.name}`,i=s.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${t}-theme-primary-${s.name}`,`${s.red},${s.green},${s.blue}`),document.documentElement.style.setProperty(e,i)}}loadAppDefaultConfig(){return new Promise(t=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setDefaultConfig(e),t()})})}loadAppInstanceConfig(){return new Promise(t=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setInstanceConfig(e);const i=document.location.hostname;void 0!==e.brandings&&void 0!==e.brandings[i]&&this.storeService.setBanding(i),t()},()=>{console.log("instance config not detected"),t()})})}getNoCacheHeaders(){return new qd({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(t=>{const e=document.querySelector("link[rel*='icon']")||document.createElement("link");e.type="image/x-icon",e.rel="shortcut icon",e.href=this.storeService.get("isInstanceFaviconContained")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(e),t()})}}return t.\u0275fac=function(e){return new(e||t)(gn(uf),gn(Kx))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function wL(t,e){const i=tinycolor(t),n=i.toRgb();return{name:e,hex:i.toHexString(),darkContrast:i.isLight(),red:n.r,green:n.g,blue:n.b}}let bL=(()=>{class t{constructor(t,e,i,n,s,r){this.initAuthService=t,this.appConfigService=e,this.storeService=i,this.location=n,this.authzSevice=s,this.guiAuthResolver=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"}]}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.initAuthService.verifyAuth()).catch(t=>{throw console.error(t),this.location.go("/"),location.reload(),t}).then(t=>t?this.initAuthService.loadPrincipal().then(()=>this.loadPolicies()):this.initAuthService.handleAuthStart())}setApiUrl(){return new Promise(t=>{this.authzSevice.configuration.basePath=this.storeService.get("api_url"),t()})}loadPolicies(){return new Promise((t,e)=>{this.authzSevice.getAllPolicies().subscribe(e=>{this.guiAuthResolver.setPerunPolicies(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(gn(qx),gn(yL),gn(Kx),gn(Zl),gn(Ef),gn(Zf))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const vL=new Ji("perun-api-service");let AL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[ed,Mx,ck,ax]]}),t})();const kL=["*",[["mat-card-footer"]]],TL=["*","mat-card-footer"];let CL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),SL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),ML=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Zv,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&pa("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:TL,decls:2,vars:0,template:function(t,e){1&t&&(na(kL),sa(0),sa(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),EL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[uA],uA]}),t})();const xL=["input"],RL=function(t){return{enterDuration:t}},DL=["*"],PL=new Ji("mat-checkbox-default-options",{providedIn:"root",factory:LL});function LL(){return{color:"accent",clickAction:"check-indeterminate"}}let zL=0;const IL=LL(),FL={provide:IC,useExisting:rt(()=>jL),multi:!0};class HL{}class OL{constructor(t){this._elementRef=t}}const BL=fA(hA(dA(lA(OL))));let jL=(()=>{class t extends BL{constructor(t,e,i,n,s,r,o){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=r,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++zL,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new mu,this.indeterminateChange=new mu,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||IL,this.color=this.defaultColor=this._options.color||IL.color,this.tabIndex=parseInt(s)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=iy(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=iy(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=iy(t),e&&(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(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new HL;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(Xy),Ho(nl),$i("tabindex"),Ho(Zv,8),Ho(PL,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(xu(xL,5),xu(jA,5)),2&t){let t;Eu(t=Du())&&(e._inputElement=t.first),Eu(t=Du())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(La("id",e.id),Lo("tabindex",null),pa("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Za([FL]),bo],ngContentSelectors:DL,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",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(t,e){if(1&t&&(na(),jo(0,"label",0,1),jo(2,"span",2),jo(3,"input",3,4),Jo("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),Yo(),jo(5,"span",5),No(6,"span",6),Yo(),No(7,"span",7),jo(8,"span",8),ci(),jo(9,"svg",9),No(10,"path",10),Yo(),ui(),No(11,"span",11),Yo(),Yo(),jo(12,"span",12,13),Jo("cdkObserveContent",function(){return e._onLabelTextChange()}),jo(14,"span",14),Ma(15,"\xa0"),Yo(),sa(16),Yo(),Yo()),2&t){const t=Fo(1),i=Fo(13);Lo("for",e.inputId),rr(2),pa("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),rr(1),Oo("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),Lo("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),rr(2),Oo("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",su(19,RL,"NoopAnimations"===e._animationMode?0:150))}},directives:[jA,Cy],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),YL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})(),NL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[YA,uA,Sy,YL],uA,YL]}),t})(),KL=0;const UL=new Ji("CdkAccordion");let VL=(()=>{class t{constructor(){this._stateChanges=new k,this._openCloseAllActions=new k,this.id="cdk-accordion-"+KL++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=iy(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Za([{provide:UL,useExisting:t}]),ue]}),t})(),qL=0,$L=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=h.EMPTY,this.closed=new mu,this.opened=new mu,this.destroyed=new mu,this.expandedChange=new mu,this.id="cdk-accordion-child-"+qL++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=iy(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(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(t){this._disabled=iy(t)}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(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(Ho(UL,12),Ho(Rc),Ho(Gk))},t.\u0275dir=Gt({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Za([{provide:UL,useValue:void 0}])]}),t})(),WL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})();const GL=["body"];function JL(t,e){}const ZL=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],QL=["mat-expansion-panel-header","*","mat-action-row"];function XL(t,e){1&t&&No(0,"span",2),2&t&&Oo("@indicatorRotate",ea()._getExpandedState())}const tz=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],ez=["mat-panel-title","mat-panel-description","*"],iz=new Ji("MAT_ACCORDION"),nz="225ms cubic-bezier(0.4,0.0,0.2,1)",sz={indicatorRotate:fw("indicatorRotate",[yw("collapsed, void",_w({transform:"rotate(0deg)"})),yw("expanded",_w({transform:"rotate(180deg)"})),bw("expanded <=> collapsed, void => collapsed",pw(nz))]),bodyExpansion:fw("bodyExpansion",[yw("collapsed, void",_w({height:"0px",visibility:"hidden"})),yw("expanded",_w({height:"*",visibility:"visible"})),bw("expanded <=> collapsed, void => collapsed",pw(nz))])};let rz=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),oz=0;const az=new Ji("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let cz=(()=>{class t extends $L{constructor(t,e,i,n,s,r,o){super(t,e,i),this._viewContainerRef=n,this._animationMode=r,this._hideToggle=!1,this.afterExpand=new mu,this.afterCollapse=new mu,this._inputChanges=new k,this._headerId="mat-expansion-panel-header-"+oz++,this._bodyAnimationDone=new k,this.accordion=t,this._document=s,this._bodyAnimationDone.pipe(kk((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=iy(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(mp(null),Yd(()=>this.expanded&&!this._portal),fp(1)).subscribe(()=>{this._portal=new sT(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(Ho(iz,12),Ho(Rc),Ho(Gk),Ho(Nc),Ho(Fl),Ho(Zv,8),Ho(az,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&Ru(i,rz,5),2&t){let t;Eu(t=Du())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&xu(GL,5),2&t){let t;Eu(t=Du())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&pa("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Za([{provide:iz,useValue:void 0}]),bo,ue],ngContentSelectors:QL,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(na(ZL),sa(0),jo(1,"div",0,1),Jo("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),jo(3,"div",2),sa(4,1),Io(5,JL,0,0,"ng-template",3),Yo(),sa(6,2),Yo()),2&t&&(rr(1),Oo("@bodyExpansion",e._getExpandedState())("id",e.id),Lo("aria-labelledby",e._headerId),rr(4),Oo("cdkPortalOutlet",e._portal))},directives:[uT],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[sz.bodyExpansion]},changeDetection:0}),t})(),uz=(()=>{class t{constructor(t,e,i,n,s,r){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=r,this._parentChangeSubscription=h.EMPTY;const o=t.accordion?t.accordion._stateChanges.pipe(Yd(t=>!(!t.hideToggle&&!t.togglePosition))):op;this._parentChangeSubscription=V(t.opened,t.closed,o,t._inputChanges.pipe(Yd(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Yd(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.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 t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case Y_:case B_:q_(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(Ho(cz,1),Ho(sc),Ho(Xy),Ho(Rc),Ho(az,8),Ho(Zv,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&Jo("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(Lo("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),fa("height",e._getHeaderHeight()),pa("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:ez,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(na(tz),jo(0,"span",0),sa(1),sa(2,1),sa(3,2),Yo(),Io(4,XL,1,1,"span",1)),2&t&&(rr(4),Oo("ngIf",e._showToggle()))},directives:[Bh],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}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[sz.indicatorRotate]},changeDetection:0}),t})(),lz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),hz=(()=>{class t extends VL{constructor(){super(...arguments),this._ownHeaders=new yu,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=iy(t)}ngAfterContentInit(){this._headers.changes.pipe(mp(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Oy(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){if(1&t&&Ru(i,uz,5),2&t){let t;Eu(t=Du())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&pa("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[Za([{provide:iz,useExisting:t}]),bo]}),t})(),dz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[ed,uA,WL,lT]]}),t})(),fz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[PA,uA],PA,uA]}),t})();function pz(t,e){1&t&&sa(0)}const gz=["*"];let mz=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),_z=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),yz=0;const wz="edit",bz="done",vz="error",Az=new Ji("STEPPER_GLOBAL_OPTIONS");let kz=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this.interactedStream=new mu,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=iy(t)}get optional(){return this._optional}set optional(t){this._optional=iy(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=iy(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=iy(t)}_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))}}return t.\u0275fac=function(e){return new(e||t)(Ho(rt(()=>Tz)),Ho(Az,8))},t.\u0275cmp=Kt({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){if(1&t&&Ru(i,_z,5),2&t){let t;Eu(t=Du())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&xu(Ic,7),2&t){let t;Eu(t=Du())&&(e.content=t.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[ue],ngContentSelectors:gz,decls:1,vars:0,template:function(t,e){1&t&&(na(),Io(0,pz,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),Tz=(()=>{class t{constructor(t,e,i,n){this._dir=t,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new k,this.steps=new yu,this._linear=!1,this._selectedIndex=0,this.selectionChange=new mu,this._orientation="horizontal",this._groupId=yz++,this._document=n}get linear(){return this._linear}set linear(t){this._linear=iy(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var e;const i=ny(t);this.steps&&this._steps?(this._isValidIndex(t),null===(e=this.selected)||void 0===e||e._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}get orientation(){return this._orientation}set orientation(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===t)}ngAfterContentInit(){this._steps.changes.pipe(mp(this._steps),Pk(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new Oy(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Bd()).pipe(mp(this._layoutDirection()),Pk(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),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._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(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?vz:!t.completed||e?"number":t.editable?wz:bz}_getGuidelineLogic(t,e,i="number"){return t._showError&&t.hasError&&!e?vz:t.completed&&!e?bz:t.completed&&e?i:t.editable&&e?wz:i}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=q_(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==Y_&&i!==B_?n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_isValidIndex(t){return t>-1&&(!this.steps||t{class t{constructor(t){this._stepper=t,this.type="submit"}_handleClick(){this._stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(Ho(Tz))},t.\u0275dir=Gt({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&Jo("click",function(){return e._handleClick()}),2&t&&La("type",e.type)},inputs:{type:"type"}}),t})(),Sz=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(Ho(Tz))},t.\u0275dir=Gt({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&Jo("click",function(){return e._handleClick()}),2&t&&La("type",e.type)},inputs:{type:"type"}}),t})(),Mz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[uw]]}),t})();function Ez(t,e){if(1&t&&Vo(0,8),2&t){const t=ea();Oo("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function xz(t,e){if(1&t&&(jo(0,"span"),Ma(1),Yo()),2&t){const t=ea(2);rr(1),Ea(t._getDefaultTextForState(t.state))}}function Rz(t,e){if(1&t&&(jo(0,"mat-icon"),Ma(1),Yo()),2&t){const t=ea(2);rr(1),Ea(t._getDefaultTextForState(t.state))}}function Dz(t,e){1&t&&(Ko(0,9),Io(1,xz,2,1,"span",10),Io(2,Rz,2,1,"mat-icon",11),Uo()),2&t&&(Oo("ngSwitch",ea().state),rr(1),Oo("ngSwitchCase","number"))}function Pz(t,e){if(1&t&&(jo(0,"div",12),Vo(1,13),Yo()),2&t){const t=ea();rr(1),Oo("ngTemplateOutlet",t._templateLabel().template)}}function Lz(t,e){if(1&t&&(jo(0,"div",12),Ma(1),Yo()),2&t){const t=ea();rr(1),Ea(t.label)}}function zz(t,e){if(1&t&&(jo(0,"div",14),Ma(1),Yo()),2&t){const t=ea();rr(1),Ea(t._intl.optionalLabel)}}function Iz(t,e){if(1&t&&(jo(0,"div",15),Ma(1),Yo()),2&t){const t=ea();rr(1),Ea(t.errorMessage)}}function Fz(t,e){}function Hz(t,e){if(1&t&&(sa(0),Io(1,Fz,0,0,"ng-template",0)),2&t){const t=ea();rr(1),Oo("cdkPortalOutlet",t._portal)}}const Oz=["*"];function Bz(t,e){1&t&&No(0,"div",9)}const jz=function(t,e){return{step:t,i:e}};function Yz(t,e){if(1&t&&(Ko(0),Vo(1,7),Io(2,Bz,1,0,"div",8),Uo()),2&t){const t=e.$implicit,i=e.index,n=e.last;ea(2);const s=Fo(4);rr(1),Oo("ngTemplateOutlet",s)("ngTemplateOutletContext",ru(3,jz,t,i)),rr(1),Oo("ngIf",!n)}}function Nz(t,e){if(1&t){const t=qo();jo(0,"div",10),Jo("@horizontalStepTransition.done",function(e){return ze(t),ea(2)._animationDone.next(e)}),Vo(1,11),Yo()}if(2&t){const t=e.$implicit,i=e.index,n=ea(2);Oo("@horizontalStepTransition",n._getAnimationDirection(i))("id",n._getStepContentId(i)),Lo("aria-labelledby",n._getStepLabelId(i))("aria-expanded",n.selectedIndex===i),rr(1),Oo("ngTemplateOutlet",t.content)}}function Kz(t,e){if(1&t&&(Ko(0),jo(1,"div",3),Io(2,Yz,3,6,"ng-container",4),Yo(),jo(3,"div",5),Io(4,Nz,2,5,"div",6),Yo(),Uo()),2&t){const t=ea();rr(2),Oo("ngForOf",t.steps),rr(2),Oo("ngForOf",t.steps)}}function Uz(t,e){if(1&t){const t=qo();jo(0,"div",13),Vo(1,7),jo(2,"div",14),jo(3,"div",15),Jo("@verticalStepTransition.done",function(e){return ze(t),ea(2)._animationDone.next(e)}),jo(4,"div",16),Vo(5,11),Yo(),Yo(),Yo(),Yo()}if(2&t){const t=e.$implicit,i=e.index,n=e.last,s=ea(2),r=Fo(4);rr(1),Oo("ngTemplateOutlet",r)("ngTemplateOutletContext",ru(9,jz,t,i)),rr(1),pa("mat-stepper-vertical-line",!n),rr(1),Oo("@verticalStepTransition",s._getAnimationDirection(i))("id",s._getStepContentId(i)),Lo("aria-labelledby",s._getStepLabelId(i))("aria-expanded",s.selectedIndex===i),rr(2),Oo("ngTemplateOutlet",t.content)}}function Vz(t,e){if(1&t&&(Ko(0),Io(1,Uz,6,12,"div",12),Uo()),2&t){const t=ea();rr(1),Oo("ngForOf",t.steps)}}function qz(t,e){if(1&t){const t=qo();jo(0,"mat-step-header",17),Jo("click",function(){return e.step.select()})("keydown",function(e){return ze(t),ea()._onKeydown(e)}),Yo()}if(2&t){const t=e.step,i=e.i,n=ea();pa("mat-horizontal-stepper-header","horizontal"===n.orientation)("mat-vertical-stepper-header","vertical"===n.orientation),Oo("tabIndex",n._getFocusIndex()===i?0:-1)("id",n._getStepLabelId(i))("index",i)("state",n._getIndicatorType(i,t.state))("label",t.stepLabel||t.label)("selected",n.selectedIndex===i)("active",t.completed||n.selectedIndex===i||!n.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple)("color",t.color||n.color),Lo("aria-posinset",i+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null)}}let $z=(()=>{class t extends _z{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matStepLabel",""]],features:[bo]}),t})(),Wz=(()=>{class t{constructor(){this.changes=new k,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Gz={provide:Wz,deps:[[new bn,new vn,Wz]],useFactory:function(t){return t||new Wz}};class Jz extends mz{constructor(t){super(t)}}const Zz=hA(Jz,"primary");let Qz=(()=>{class t extends Zz{constructor(t,e,i,n){super(i),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>n.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._elementRef,t,e):this._elementRef.nativeElement.focus(e)}_stringLabel(){return this.label instanceof $z?null:this.label}_templateLabel(){return this.label instanceof $z?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?`${this.index+1}`:"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Wz),Ho(Xy),Ho(sc),Ho(Rc))},t.\u0275cmp=Kt({type:t,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:[bo],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"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(No(0,"div",0),jo(1,"div"),jo(2,"div",1),Io(3,Ez,1,2,"ng-container",2),Io(4,Dz,3,2,"ng-container",3),Yo(),Yo(),jo(5,"div",4),Io(6,Pz,2,1,"div",5),Io(7,Lz,2,1,"div",5),Io(8,zz,2,1,"div",6),Io(9,Iz,2,1,"div",7),Yo()),2&t&&(Oo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),rr(1),Pa("mat-step-icon-state-",e.state," mat-step-icon"),pa("mat-step-icon-selected",e.selected),rr(1),Oo("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),rr(1),Oo("ngSwitchCase",!0),rr(2),pa("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),rr(1),Oo("ngIf",e._templateLabel()),rr(1),Oo("ngIf",e._stringLabel()),rr(1),Oo("ngIf",e.optional&&"error"!=e.state),rr(1),Oo("ngIf","error"==e.state))},directives:[jA,Kh,Uh,Vh,Bh,$h,jE],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.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,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const Xz={horizontalStepTransition:fw("horizontalStepTransition",[yw("previous",_w({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),yw("current",_w({transform:"none",visibility:"inherit"})),yw("next",_w({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),bw("* => *",pw("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:fw("verticalStepTransition",[yw("previous",_w({height:"0px",visibility:"hidden"})),yw("next",_w({height:"0px",visibility:"hidden"})),yw("current",_w({height:"*",visibility:"inherit"})),bw("* <=> current",pw("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let tI=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),eI=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["ng-template","matStepContent",""]]}),t})(),iI=(()=>{class t extends kz{constructor(t,e,i,n){super(t,n),this._errorStateMatcher=e,this._viewContainerRef=i,this._isSelected=h.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(up(()=>this._stepper.selectionChange.pipe(I(t=>t.selectedStep===this),mp(this._stepper.selected===this)))).subscribe(t=>{t&&this._lazyContent&&!this._portal&&(this._portal=new sT(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(Ho(rt(()=>oI)),Ho(xA,4),Ho(Nc),Ho(Az,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){if(1&t&&(Ru(i,$z,5),Ru(i,eI,5)),2&t){let t;Eu(t=Du())&&(e.stepLabel=t.first),Eu(t=Du())&&(e._lazyContent=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[Za([{provide:xA,useExisting:t},{provide:kz,useExisting:t}]),bo],ngContentSelectors:Oz,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(na(),Io(0,Hz,2,1,"ng-template"))},directives:[uT],encapsulation:2,changeDetection:0}),t})(),nI=(()=>{class t extends Tz{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,features:[bo]}),t})(),sI=(()=>{class t extends nI{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-horizontal-stepper"]],features:[bo]}),t})(),rI=(()=>{class t extends nI{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-vertical-stepper"]],features:[bo]}),t})(),oI=(()=>{class t extends Tz{constructor(t,e,i,n){super(t,e,i,n),this.steps=new yu,this.animationDone=new mu,this.labelPosition="end",this._iconOverrides={},this._animationDone=new k;const s=i.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===s?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this.steps.changes.pipe(Pk(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(kk((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),Pk(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return new(e||t)(Ho(cw,8),Ho(Rc),Ho(sc),Ho(Fl))},t.\u0275cmp=Kt({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,e,i){if(1&t&&(Ru(i,iI,5),Ru(i,tI,5)),2&t){let t;Eu(t=Du())&&(e._steps=t),Eu(t=Du())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&xu(Qz,5),2&t){let t;Eu(t=Du())&&(e._stepHeader=t)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,e){2&t&&(Lo("aria-orientation",e.orientation),pa("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[Za([{provide:Tz,useExisting:t},{provide:sI,useExisting:t},{provide:rI,useExisting:t}]),bo],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(t,e){1&t&&(Ko(0,0),Io(1,Kz,5,2,"ng-container",1),Io(2,Vz,2,1,"ng-container",1),Uo(),Io(3,qz,1,22,"ng-template",null,2,Iu)),2&t&&(Oo("ngSwitch",e.orientation),rr(1),Oo("ngSwitchCase","horizontal"),rr(1),Oo("ngSwitchCase","vertical"))},directives:[Kh,Uh,Hh,$h,Bh,Qz],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[Xz.horizontalStepTransition,Xz.verticalStepTransition]},changeDetection:0}),t})(),aI=(()=>{class t extends Cz{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,e){2&t&&La("type",e.type)},inputs:{type:"type"},features:[bo]}),t})(),cI=(()=>{class t extends Sz{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&La("type",e.type)},inputs:{type:"type"},features:[bo]}),t})(),uI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[Gz,xA],imports:[[uA,ed,lT,ck,Mz,YE,YA],uA]}),t})();const lI=["mat-calendar-body",""];function hI(t,e){if(1&t&&(jo(0,"tr",2),jo(1,"td",3),Ma(2),Yo(),Yo()),2&t){const t=ea();rr(1),fa("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Lo("colspan",t.numCols),rr(1),xa(" ",t.label," ")}}function dI(t,e){if(1&t&&(jo(0,"td",7),Ma(1),Yo()),2&t){const t=ea(2);fa("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Lo("colspan",t._firstRowOffset),rr(1),xa(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function fI(t,e){if(1&t){const t=qo();jo(0,"td",8),Jo("click",function(e){const i=ze(t).$implicit;return ea(2)._cellClicked(i,e)}),jo(1,"div",9),Ma(2),Yo(),No(3,"div",10),Yo()}if(2&t){const t=e.$implicit,i=e.index,n=ea().index,s=ea();fa("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),pa("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",s._isActiveCell(n,i))("mat-calendar-body-range-start",s._isRangeStart(t.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",s._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(t.compareValue,n,i))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(t.compareValue,n,i))("mat-calendar-body-comparison-start",s._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",s._isInPreview(t.compareValue)),Oo("ngClass",t.cssClasses)("tabindex",s._isActiveCell(n,i)?0:-1),Lo("data-mat-row",n)("data-mat-col",i)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",s._isSelected(t.compareValue)),rr(1),pa("mat-calendar-body-selected",s._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",s.todayValue===t.compareValue),rr(1),xa(" ",t.displayValue," ")}}function pI(t,e){if(1&t&&(jo(0,"tr",4),Io(1,dI,2,6,"td",5),Io(2,fI,4,46,"td",6),Yo()),2&t){const t=e.$implicit,i=e.index,n=ea();rr(1),Oo("ngIf",0===i&&n._firstRowOffset),rr(1),Oo("ngForOf",t)}}function gI(t,e){if(1&t&&(jo(0,"th",5),Ma(1),Yo()),2&t){const t=e.$implicit;Lo("aria-label",t.long),rr(1),Ea(t.narrow)}}const mI=["*"];function _I(t,e){}function yI(t,e){if(1&t){const t=qo();jo(0,"mat-month-view",5),Jo("activeDateChange",function(e){return ze(t),ea().activeDate=e})("_userSelection",function(e){return ze(t),ea()._dateSelected(e)}),Yo()}if(2&t){const t=ea();Oo("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function wI(t,e){if(1&t){const t=qo();jo(0,"mat-year-view",6),Jo("activeDateChange",function(e){return ze(t),ea().activeDate=e})("monthSelected",function(e){return ze(t),ea()._monthSelectedInYearView(e)})("selectedChange",function(e){return ze(t),ea()._goToDateInView(e,"month")}),Yo()}if(2&t){const t=ea();Oo("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function bI(t,e){if(1&t){const t=qo();jo(0,"mat-multi-year-view",7),Jo("activeDateChange",function(e){return ze(t),ea().activeDate=e})("yearSelected",function(e){return ze(t),ea()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return ze(t),ea()._goToDateInView(e,"year")}),Yo()}if(2&t){const t=ea();Oo("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function vI(t,e){}const AI=["button"];function kI(t,e){1&t&&(ci(),jo(0,"svg",3),No(1,"path",4),Yo())}const TI=[[["","matDatepickerToggleIcon",""]]],CI=["[matDatepickerToggleIcon]"];let SI=(()=>{class t{constructor(){this.changes=new k,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();class MI{constructor(t,e,i,n,s={},r=t,o){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=s,this.compareValue=r,this.rawValue=o}}let EI=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new mu,this.previewChange=new mu,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&xI(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(fp(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return RI(t,this.startValue,this.endValue)}_isRangeEnd(t){return DI(t,this.startValue,this.endValue)}_isInRange(t){return PI(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return RI(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let n=this.rows[e][i-1];if(!n){const t=this.rows[e-1];n=t&&t[t.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let n=this.rows[e][i+1];if(!n){const t=this.rows[e+1];n=t&&t[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(t){return DI(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return PI(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return RI(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return DI(t,this.previewStart,this.previewEnd)}_isInPreview(t){return PI(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(xI(t)?e=t:xI(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(nl))},t.\u0275cmp=Kt({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[ue],attrs:lI,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"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(Io(0,hI,3,6,"tr",0),Io(1,pI,3,2,"tr",1)),2&t&&(Oo("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function xI(t){return"TD"===t.nodeName}function RI(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function PI(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}class LI{constructor(t,e){this.start=t,this.end=e}}let zI=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new k,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){const i=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:i})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return t.\u0275fac=function(e){return new(e||t)(gn(void 0),gn(_A))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),II=(()=>{class t extends zI{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(gn(_A))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const FI={provide:zI,deps:[[new bn,new vn,zI],_A],useFactory:function(t,e){return t||new II(e)}},HI=new Ji("MAT_DATE_RANGE_SELECTION_STRATEGY");let OI=(()=>{class t{constructor(t,e,i,n,s){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rangeStrategy=s,this._rerenderSubscription=h.EMPTY,this.selectedChange=new mu,this._userSelection=new mu,this.activeDateChange=new mu,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof LI?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(mp(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,i=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.createDate(i,n,e);let r,o;this._selected instanceof LI?(r=this._getDateInCurrentMonth(this._selected.start),o=this._getDateInCurrentMonth(this._selected.end)):r=o=this._getDateInCurrentMonth(this._selected),r===e&&o===e||this.selectedChange.emit(s),this._userSelection.emit({value:s,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case N_:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case U_:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case K_:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case V_:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case B_:case Y_:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case j_:return void(null==this._previewEnd||q_(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const i=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof LI?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Rc),Ho(yA,8),Ho(_A,8),Ho(cw,8),Ho(HI,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&xu(EI,5),2&t){let t;Eu(t=Du())&&(e._matCalendarBody=t.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:[ue],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(jo(0,"table",0),jo(1,"thead",1),jo(2,"tr"),Io(3,gI,2,2,"th",2),Yo(),jo(4,"tr"),No(5,"th",3),Yo(),Yo(),jo(6,"tbody",4),Jo("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),Yo(),Yo()),2&t&&(rr(3),Oo("ngForOf",e._weekdays),rr(3),Oo("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[Hh,EI],encapsulation:2,changeDetection:0}),t})();const BI=24;let jI=(()=>{class t{constructor(t,e,i){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=h.EMPTY,this.selectedChange=new mu,this.yearSelected=new mu,this.activeDateChange=new mu,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),YI(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof LI?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(mp(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-NI(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,i=[];ethis._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case N_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case U_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case K_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case V_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-NI(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,BI-NI(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:BI);break;case B_:case Y_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return NI(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new MI(t,i,i,this._shouldEnableYear(t),n)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,i,n){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=h.EMPTY,this.selectedChange=new mu,this.monthSelected=new mu,this.activeDateChange=new mu,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof LI?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(mp(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(i);const n=this._dateAdapter.getNumDaysInMonth(i);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case N_:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case U_:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case K_:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case V_:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case B_:case Y_:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),n=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(i,"year"):void 0;return new MI(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,i,n,s){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this._buttonDescriptionId="mat-calendar-button-"+VI++,this.calendar.stateChanges.subscribe(()=>s.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)-NI(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+BI-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}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:BI)}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(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):YI(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(Ho(SI),Ho(rt(()=>$I)),Ho(_A,8),Ho(yA,8),Ho(Rc))},t.\u0275cmp=Kt({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:mI,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[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(t,e){1&t&&(na(),jo(0,"div",0),jo(1,"div",1),jo(2,"button",2),Jo("click",function(){return e.currentPeriodClicked()}),jo(3,"span"),Ma(4),Yo(),No(5,"div",3),Yo(),No(6,"div",4),sa(7),jo(8,"button",5),Jo("click",function(){return e.previousClicked()}),Yo(),jo(9,"button",6),Jo("click",function(){return e.nextClicked()}),Yo(),Yo(),Yo()),2&t&&(rr(2),Lo("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),rr(1),Lo("id",e._buttonDescriptionId),rr(1),Ea(e.periodButtonText),rr(1),pa("mat-calendar-invert","month"!==e.calendar.currentView),rr(3),Oo("disabled",!e.previousEnabled()),Lo("aria-label",e.prevButtonLabel),rr(1),Oo("disabled",!e.nextEnabled()),Lo("aria-label",e.nextButtonLabel))},directives:[ak,Wy],encapsulation:2,changeDetection:0}),t})(),$I=(()=>{class t{constructor(t,e,i,n){this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new mu,this.yearSelected=new mu,this.monthSelected=new mu,this.viewChanged=new mu(!0),this._userSelection=new mu,this.stateChanges=new k,this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof LI?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new nT(this.headerComponent||qI),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof LI||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(Ho(SI),Ho(_A,8),Ho(yA,8),Ho(Rc))},t.\u0275cmp=Kt({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(xu(OI,5),xu(UI,5),xu(jI,5)),2&t){let t;Eu(t=Du())&&(e.monthView=t.first),Eu(t=Du())&&(e.yearView=t.first),Eu(t=Du())&&(e.multiYearView=t.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[Za([FI]),ue],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(t,e){1&t&&(Io(0,_I,0,0,"ng-template",0),jo(1,"div",1),Io(2,yI,1,8,"mat-month-view",2),Io(3,wI,1,6,"mat-year-view",3),Io(4,bI,1,6,"mat-multi-year-view",4),Yo()),2&t&&(Oo("cdkPortalOutlet",e._calendarHeaderPortal),rr(1),Oo("ngSwitch",e.currentView),rr(1),Oo("ngSwitchCase","month"),rr(1),Oo("ngSwitchCase","year"),rr(1),Oo("ngSwitchCase","multi-year"))},directives:[uT,ew,Kh,Uh,OI,UI,jI],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(33% / 7 - 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:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;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}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const WI={transformPanel:fw("transformPanel",[bw("void => enter-dropdown",pw("120ms cubic-bezier(0, 0, 0.2, 1)",ww([_w({opacity:0,transform:"scale(1, 0.8)"}),_w({opacity:1,transform:"scale(1, 1)"})]))),bw("void => enter-dialog",pw("150ms cubic-bezier(0, 0, 0.2, 1)",ww([_w({opacity:0,transform:"scale(0.7)"}),_w({transform:"none",opacity:1})]))),bw("* => void",pw("100ms linear",_w({opacity:0})))]),fadeInCalendar:fw("fadeInCalendar",[yw("void",_w({opacity:0})),yw("enter",_w({opacity:1})),bw("void => *",pw("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let GI=0;const JI=new Ji("mat-datepicker-scroll-strategy"),ZI={provide:JI,deps:[YT],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class QI{constructor(t){this._elementRef=t}}const XI=hA(QI);let tF=(()=>{class t extends XI{constructor(t,e,i,n,s,r){super(t),this._changeDetectorRef=e,this._globalModel=i,this._dateAdapter=n,this._rangeSelectionStrategy=s,this._subscriptions=new h,this._animationDone=new k,this._actionsPortal=null,this._closeButtonText=r.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){const e=this._model.selection,i=t.value,n=e instanceof LI;if(n&&this._rangeSelectionStrategy){const n=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(n,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(zI),Ho(_A),Ho(HI,8),Ho(SI))},t.\u0275cmp=Kt({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&xu($I,5),2&t){let t;Eu(t=Du())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&Zo("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(za("@transformPanel",e._animationState),pa("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[bo],decls:5,vars:20,consts:[["cdkTrapFocus","",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(t,e){1&t&&(jo(0,"div",0),jo(1,"mat-calendar",1),Jo("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),Yo(),Io(2,vI,0,0,"ng-template",2),jo(3,"button",3),Jo("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),Ma(4),Yo(),Yo()),2&t&&(pa("mat-datepicker-content-container-with-actions",e._actionsPortal),rr(1),Oo("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),rr(1),Oo("cdkPortalOutlet",e._actionsPortal),rr(1),pa("cdk-visually-hidden",!e._closeButtonFocused),Oo("color",e.color||"primary"),rr(1),Ea(e._closeButtonText))},directives:[Uy,$I,Ih,uT,ak],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[WI.transformPanel,WI.fadeInCalendar]},changeDetection:0}),t})(),eF=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c){this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=r,this._dir=o,this._model=c,this._inputStateChanges=h.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new mu,this.monthSelected=new mu,this.viewChanged=new mu(!0),this.openedStream=new mu,this.closedStream=new mu,this._opened=!1,this.id="mat-datepicker-"+GI++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new k,this._scrollStrategy=s}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=iy(t)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){const e=iy(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(t){this._restoreFocus=iy(t)}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=function(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}(t)}get opened(){return this._opened}set opened(t){iy(t)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(t){const e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){const t=this._overlayRef.getConfig().positionStrategy;t instanceof PT&&(this._setConnectedPositions(t),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal=t}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Ay(),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(fp(1)).subscribe(()=>this._destroyOverlay())}const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_applyPendingSelection(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const t=this.touchUi,e=this.datepickerInput.getOverlayLabelId(),i=new nT(tF,this._viewContainerRef),n=this._overlayRef=this._overlay.create(new vT({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(t?"dialog":"popup")})),s=n.overlayElement;s.setAttribute("role","dialog"),e&&s.setAttribute("aria-labelledby",e),t&&s.setAttribute("aria-modal","true"),this._getCloseStream(n).subscribe(t=>{t&&t.preventDefault(),this.close()}),this._componentRef=n.attach(i),this._forwardContentValues(this._componentRef.instance),t||this._ngZone.onStable.pipe(fp(1)).subscribe(()=>n.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",s="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:s,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:s}])}_getCloseStream(t){return V(t.backdropClick(),t.detachments(),t.keydownEvents().pipe(Yd(t=>t.keyCode===j_&&!q_(t)||this.datepickerInput&&q_(t,"altKey")&&t.keyCode===K_)))}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(YT),Ho(nl),Ho(Nc),Ho(JI),Ho(_A,8),Ho(cw,8),Ho(Fl,8),Ho(zI))},t.\u0275dir=Gt({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[ue]}),t})(),iF=(()=>{class t extends eF{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Za([FI,{provide:eF,useExisting:t}]),bo],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();class nF{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let sF=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this.dateChange=new mu,this.dateInput=new mu,this.stateChanges=new k,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=h.EMPTY,this._localeSubscription=h.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMinDate();return!i||!e||this._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMaxDate();return!i||!e||this._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=iy(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this.dateInput.emit(new nF(this,this._elementRef.nativeElement)),this.dateChange.emit(new nF(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const i=Object.keys(t);for(let n of i){const{previousValue:i,currentValue:s}=t[n];if(!e.isDateInstance(i)||!e.isDateInstance(s))return!0;if(!e.sameDate(i,s))return!0}return!1})(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&t.keyCode===V_&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._dateAdapter.sameDate(i,this.value)?(t&&!this.value&&this._cvaOnChange(i),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(i),this._cvaOnChange(i),this.dateInput.emit(new nF(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new nF(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(_A,8),Ho(yA,8))},t.\u0275dir=Gt({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[ue]}),t})();const rF={provide:IC,useExisting:rt(()=>aF),multi:!0},oF={provide:YC,useExisting:rt(()=>aF),multi:!0};let aF=(()=>{class t extends sF{constructor(t,e,i,n){super(t,e,i),this._formField=n,this._closedSubscription=h.EMPTY,this._validator=UC.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._min)||(this._min=e,this._validatorOnChange())}get max(){return this._max}set max(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._max)||(this._max=e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&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(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(_A,8),Ho(yA,8),Ho(EC,8))},t.\u0275dir=Gt({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&Jo("input",function(t){return e._onInput(t.target.value)})("change",function(){return e._onChange()})("blur",function(){return e._onBlur()})("keydown",function(t){return e._onKeydown(t)}),2&t&&(La("disabled",e.disabled),Lo("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Za([rF,oF,{provide:mR,useExisting:t}]),bo]}),t})(),cF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),uF=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=h.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=iy(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker.stateChanges:Bd(),e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Bd(),i=this.datepicker?V(this.datepicker.openedStream,this.datepicker.closedStream):Bd();this._stateChanges.unsubscribe(),this._stateChanges=V(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(Ho(SI),Ho(Rc),$i("tabindex"))},t.\u0275cmp=Kt({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){if(1&t&&Ru(i,cF,5),2&t){let t;Eu(t=Du())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&xu(AI,5),2&t){let t;Eu(t=Du())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&Jo("click",function(t){return e._open(t)}),2&t&&(Lo("tabindex",null)("data-mat-calendar",e.datepicker?e.datepicker.id:null),pa("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],ariaLabel:["aria-label","ariaLabel"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[ue],ngContentSelectors:CI,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(t,e){1&t&&(na(TI),jo(0,"button",0,1),Io(2,kI,2,0,"svg",2),sa(3),Yo()),2&t&&(Oo("disabled",e.disabled)("disableRipple",e.disableRipple),Lo("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e.ariaLabel||e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),rr(2),Oo("ngIf",!e._customIcon))},directives:[ak,Bh],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),t})(),lF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[SI,ZI],imports:[[ed,ck,$T,ow,lT,uA],tT]}),t})();const hF=["mat-sort-header",""];function dF(t,e){if(1&t){const t=qo();jo(0,"div",3),Jo("@arrowPosition.start",function(){return ze(t),ea()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return ze(t),ea()._disableViewStateAnimation=!1}),No(1,"div",4),jo(2,"div",5),No(3,"div",6),No(4,"div",7),No(5,"div",8),Yo(),Yo()}if(2&t){const t=ea();Oo("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),rr(2),Oo("@indicator",t._getArrowDirectionState()),rr(1),Oo("@leftPointer",t._getArrowDirectionState()),rr(1),Oo("@rightPointer",t._getArrowDirectionState())}}const fF=["*"],pF=new Ji("MAT_SORT_DEFAULT_OPTIONS");class gF{}const mF=gA(lA(gF));let _F=(()=>{class t extends mF{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new k,this.start="asc",this._direction="",this.sortChange=new mu}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=iy(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,i,n;if(!t)return"";const s=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let r=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,s),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(Ho(pF,8))},t.\u0275dir=Gt({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[bo,ue]}),t})();const yF=oA.ENTERING+" "+rA.STANDARD_CURVE,wF={indicator:fw("indicator",[yw("active-asc, asc",_w({transform:"translateY(0px)"})),yw("active-desc, desc",_w({transform:"translateY(10px)"})),bw("active-asc <=> active-desc",pw(yF))]),leftPointer:fw("leftPointer",[yw("active-asc, asc",_w({transform:"rotate(-45deg)"})),yw("active-desc, desc",_w({transform:"rotate(45deg)"})),bw("active-asc <=> active-desc",pw(yF))]),rightPointer:fw("rightPointer",[yw("active-asc, asc",_w({transform:"rotate(45deg)"})),yw("active-desc, desc",_w({transform:"rotate(-45deg)"})),bw("active-asc <=> active-desc",pw(yF))]),arrowOpacity:fw("arrowOpacity",[yw("desc-to-active, asc-to-active, active",_w({opacity:1})),yw("desc-to-hint, asc-to-hint, hint",_w({opacity:.54})),yw("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",_w({opacity:0})),bw("* => asc, * => desc, * => active, * => hint, * => void",pw("0ms")),bw("* <=> *",pw(yF))]),arrowPosition:fw("arrowPosition",[bw("* => desc-to-hint, * => desc-to-active",pw(yF,ww([_w({transform:"translateY(-25%)"}),_w({transform:"translateY(0)"})]))),bw("* => hint-to-desc, * => active-to-desc",pw(yF,ww([_w({transform:"translateY(0)"}),_w({transform:"translateY(25%)"})]))),bw("* => asc-to-hint, * => asc-to-active",pw(yF,ww([_w({transform:"translateY(25%)"}),_w({transform:"translateY(0)"})]))),bw("* => hint-to-asc, * => active-to-asc",pw(yF,ww([_w({transform:"translateY(0)"}),_w({transform:"translateY(-25%)"})]))),yw("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",_w({transform:"translateY(0)"})),yw("hint-to-desc, active-to-desc, desc",_w({transform:"translateY(-25%)"})),yw("hint-to-asc, active-to-asc, asc",_w({transform:"translateY(25%)"}))]),allowChildren:fw("allowChildren",[bw("* <=> *",[Aw("@*",vw(),{optional:!0})])])};let bF=(()=>{class t{constructor(){this.changes=new k}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const vF={provide:bF,deps:[[new bn,new vn,bF]],useFactory:function(t){return t||new bF}};class AF{}const kF=lA(AF);let TF=(()=>{class t extends kF{constructor(t,e,i,n,s,r){super(),this._intl=t,this._changeDetectorRef=e,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=r,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=iy(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.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(t){this._isDisabled()||t.keyCode!==Y_&&t.keyCode!==B_||(t.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 t=this._viewState.fromState;return(t?`${t}-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()}_handleStateChanges(){this._rerenderSubscription=V(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 t.\u0275fac=function(e){return new(e||t)(Ho(bF),Ho(Rc),Ho(_F,8),Ho("MAT_SORT_HEADER_COLUMN_DEF",8),Ho(Xy),Ho(sc))},t.\u0275cmp=Kt({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&Jo("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(Lo("aria-sort",e._getAriaSortAttribute()),pa("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[bo],attrs:hF,ngContentSelectors:fF,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(na(),jo(0,"div",0),jo(1,"div",1),sa(2),Yo(),Io(3,dF,6,6,"div",2),Yo()),2&t&&(pa("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),Lo("tabindex",e._isDisabled()?null:0),rr(3),Oo("ngIf",e._renderArrow()))},directives:[Bh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[wF.indicator,wF.leftPointer,wF.rightPointer,wF.arrowOpacity,wF.arrowPosition,wF.allowChildren]},changeDetection:0}),t})(),CF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[vF],imports:[[ed,uA]]}),t})(),SF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[YE,ed]]}),t})();const MF=new Ji("mat-chips-default-options"),EF={separatorKeyCodes:[B_]};let xF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[xA,{provide:MF,useValue:EF}],imports:[[uA]]}),t})();function RF(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function DF(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function PF(t,e){const i=e?"":"none";DF(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function LF(t,e){const i=t.style;i.position=e?"":"fixed",i.top=i.opacity=e?"":"0",i.left=e?"":"-999em"}function zF(t,e){return e?t+" "+e:t}function IF(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function FF(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function HF(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function OF(t,e,i){const{top:n,bottom:s,left:r,right:o}=t;return i>=n&&i<=s&&e>=r&&e<=o}function BF(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function jF(t,e,i,n){const{top:s,right:r,bottom:o,left:a,width:c,height:u}=t,l=c*e,h=u*e;return n>s-h&&na-l&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:HF(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let r,o;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();r=t.top,o=t.left}else r=e.scrollTop,o=e.scrollLeft;const a=s.top-r,c=s.left-o;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&BF(t.clientRect,a,c)}),s.top=r,s.left=o,{top:a,left:c}}}function NF(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),i=this._dropContainer;if(!e)return void this._endDragSequence(t);i&&(i.isDragging()||i.isReceiving())||(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),t.preventDefault();const i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new YF(i,s),r.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=iy(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>PF(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>ay(t)),this._handles.forEach(t=>PF(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(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=ay(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,WF),e.addEventListener("touchstart",this._pointerDown,$F)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?ay(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&QF(this._rootElement),QF(this._anchor),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(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),PF(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),PF(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&QF(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&QF(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){XF(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,n=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),r=this._getShadowRoot();i.insertBefore(s,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),LF(t,!1),this._document.body.appendChild(i.replaceChild(n,t)),this._getPreviewInsertionPoint(i,r).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),n=XF(e),s=!n&&0!==e.button,r=this._rootElement,o=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||o)return;this._handles.length&&(this._rootElementTapHighlight=r.style.webkitTapHighlightColor||"",r.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=HF(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){LF(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(n),r=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s,dropPoint:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:s,dropPoint:n}),e.drop(this,i,this._initialIndex,this._initialContainer,r,s,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=tH(s,this._document),this._previewRef=s,t.matchSize?eH(n,e):n.style.transform=JF(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=NF(t),eH(n,t.getBoundingClientRect()),this._initialTransform&&(n.style.transform=this._initialTransform)}return DF(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),PF(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=FF(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),r=FF(e,"transition-duration"),o=FF(e,"transition-delay");return IF(r[s])+IF(o[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=tH(this._placeholderRef,this._document)):i=NF(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,r=XF(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:s.left-i.left+(r.pageX-s.left-o.left),y:s.top-i.top+(r.pageY-s.top-o.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=XF(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,s=i.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=n,e.y=s,e.matrixTransform(t.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,r=this._previewRect,o=s.top+e,a=s.bottom-(r.height-e);i=ZF(i,s.left+t,s.right-(r.width-t)),n=ZF(n,o,a)}return{x:i,y:n}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-s.x),o=Math.abs(i-s.y);return r>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,PF(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,WF),t.removeEventListener("touchstart",this._pointerDown,$F)}_applyRootElementTransform(t,e){const i=JF(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=zF(i,this._initialTransform)}_applyPreviewTransform(t,e){var i;const n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,s=JF(t,e);this._preview.style.transform=zF(s,n)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,r=n.right-i.right,o=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),r>0&&(t-=r)):t=0,i.height>n.height?(o>0&&(e+=o),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:XF(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&BF(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=vy(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const t=this._document;return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}return ay(i)}}function JF(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function ZF(t,e,i){return Math.max(e,Math.min(i,t))}function QF(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function XF(t){return"t"===t.type[0]}function tH(t,e){const i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];const n=e.createElement("div");return i.forEach(t=>n.appendChild(t)),n}function eH(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=JF(e.left,e.top)}function iH(t,e){return Math.max(0,Math.min(e,t))}class nH{constructor(t,e,i,n,s){this._dragDropRegistry=e,this._ngZone=n,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new k,this.entered=new k,this.exited=new k,this.dropped=new k,this.sorted=new k,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=h.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new k,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=Z_){return(!Ek(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Z_),new y(i=>(i.add(e.schedule(RF,t,{subscriber:i,counter:0,period:t})),i))}(0,fk).pipe(Pk(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?rH(t,-e):2===this._verticalScrollDirection&&rH(t,e),1===this._horizontalScrollDirection?oH(t,-e):2===this._horizontalScrollDirection&&oH(t,e)})},this.element=ay(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new YF(i,s)}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(t,e,i,n){let s;this._draggingStarted(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const r=this._activeDraggables,o=r.indexOf(t),a=t.getPlaceholderElement();let c=r[s];if(c===t&&(c=r[s+1]),o>-1&&r.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){const e=c.getRootElement();e.parentElement.insertBefore(a,e),r.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){const e=r[0].getRootElement();e.parentNode.insertBefore(a,e),r.unshift(t)}else ay(this.element).appendChild(a),r.push(t);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,r,o){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:s,distance:r,dropPoint:o})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=ay(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?sH("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!this._clientRect||!jF(this._clientRect,.05,e,i))return;const s=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===r&&s.length>0)return;const o="horizontal"===this._orientation,a=sH(s,e=>e.drag===t),c=s[r],u=c.clientRect,l=a>r?1:-1,h=this._getItemOffsetPx(s[a].clientRect,u,l),d=this._getSiblingOffsetPx(a,s,l),f=s.slice();!function(t,e,i){const n=iH(e,t.length-1),s=iH(i,t.length-1);if(n===s)return;const r=t[n],o=s{if(f[i]===e)return;const n=e.drag===t,s=n?h:d,r=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,o?(r.style.transform=zF(`translate3d(${Math.round(e.offset)}px, 0, 0)`,e.initialTransform),BF(e.clientRect,0,s)):(r.style.transform=zF(`translate3d(0, ${Math.round(e.offset)}px, 0)`,e.initialTransform),BF(e.clientRect,s,0))}),this._previousSwap.overlaps=OF(u,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=o?n.x:n.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((r,o)=>{o!==this._document&&r.clientRect&&!i&&jF(r.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=aH(e,n),r=cH(e,i);let o=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(o=1):t.scrollHeight-e>t.clientHeight&&(o=2)}if(r){const e=t.scrollLeft;1===r?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[o,a]}(o,r.clientRect,t,e),(n||s)&&(i=o))}),!n&&!s){const{width:r,height:o}=this._viewportRuler.getViewportSize(),a={width:r,height:o,top:0,right:r,bottom:o,left:0};n=aH(a,e),s=cH(a,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=ay(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=ay(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:HF(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=ay(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{var e;const i=t.getRootElement();if(i){const n=null===(e=this._itemPositions.find(e=>e.drag===t))||void 0===e?void 0:e.initialTransform;i.style.transform=n||""}}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,r=e[t+-1*i];let o=s[n?"width":"height"]*i;if(r){const t=n?"left":"top",e=n?"right":"bottom";-1===i?o-=r.clientRect[t]-s[e]:o+=s[t]-r.clientRect[e]}return o}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation,r=sH(this._itemPositions,({drag:r,clientRect:o},a,c)=>{if(r===t)return c.length<2;if(n){const t=s?n.x:n.y;if(r===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!OF(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=ay(this.element);return n===s||s.contains(n)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{BF(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=vy(ay(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function sH(t,e){for(let i=0;i=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}function cH(t,e){const{left:i,right:n,width:s}=t,r=.05*s;return e>=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}const uH=yy({passive:!1,capture:!0});let lH=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new k,this.pointerUp=new k,this.scroll=new k,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,uH)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,uH)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:uH}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:uH}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(gn(nl),gn(Fl))},t.\u0275prov=dt({factory:function(){return new t(gn(nl),gn(Fl))},token:t,providedIn:"root"}),t})();const hH={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let dH=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=hH){return new GF(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new nH(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(gn(Fl),gn(nl),gn(Xk),gn(lH))},t.\u0275prov=dt({factory:function(){return new t(gn(Fl),gn(nl),gn(Xk),gn(lH))},token:t,providedIn:"root"}),t})(),fH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[dH],imports:[tT]}),t})(),pH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})(),gH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})(),mH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[gH,uA],uA]}),t})(),_H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[YA,uA],uA]}),t})(),yH=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[ed,eM,ck,NL,YE,dR,NM]]}),t})(),wH=(()=>{class t extends CA{format(t,e){return"input"===e?`${t.getDate().toString()}.${(t.getMonth()+1).toString()}.${t.getFullYear()}`:t.toDateString()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const bH={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 vH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[{provide:_A,useClass:wH},{provide:yA,useValue:bH}],imports:[[ed,NL,CD,tM,xF,fH,ax,R_,CF,iE,dR,SF,YE,CE,ck,NM,RC,eM,AR,YA,eR,pH,mH,lF,_H,ek,TM,yH,eT,Mx,cx]]}),t})(),AH=(()=>{class t{constructor(t){this.elementRef=t}ngOnInit(){this.elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t})(),kH=(()=>{class t{constructor(){}onClick(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),e=location.search;window.open(t+e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&Jo("mouseup",function(t){return e.onClick(t)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t})();i(6577);let TH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[ed,EL,vP,dz,ck,fz,NL,YE,CD,Mx,dR,RC,AR,eT,tM,eM,uI,lF,EA,wP,IP,vH,CE,$D,CF,iE,NM,TM],EL,vP,dz,ck,fz,NL,YE,CD,Mx,dR,RC,AR,eT,tM,eM,uI,lF,EA,wP,IP,vH,CE,$D,CF,iE,NM,TM]}),t})(),CH=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.publication=this.data}ok(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ho(gx),Ho(_x))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),jo(4,"div",2),Ma(5),Yo(),jo(6,"div",3),jo(7,"button",4),Jo("click",function(){return e.ok()}),Ma(8),uu(9,"translate"),Yo(),Yo(),Yo()),2&t&&(rr(2),Ea(lu(3,3,"DIALOGS.SHOW_CITE.TITLE")),rr(3),xa(" ",e.publication.main," "),rr(3),xa(" ",lu(9,5,"DIALOGS.SHOW_CITE.OK")," "))},directives:[Tx,Cx,Sx,ak],pipes:[ox],styles:[""]}),t})();function SH(t,e){1&t&&(jo(0,"mat-icon",2),Ma(1," error "),Yo())}const MH=["*"];let EH=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:MH,decls:3,vars:7,consts:[[1,"perun-alert","d-flex","align-items-center"],["class","perun-warn-alert-icon",4,"ngIf"],[1,"perun-warn-alert-icon"]],template:function(t,e){1&t&&(na(),jo(0,"div",0),Io(1,SH,2,0,"mat-icon",1),sa(2),Yo()),2&t&&(pa("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("info-alert","info"===e.alert_type),rr(1),Oo("ngIf","error"!==e.alert_type))},directives:[Bh,jE],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%], .perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-warn-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{color:#000;background-color:#fae2e2;border-left:4px solid;border-color:#d32f2f}"]}),t})(),xH=(()=>{class t{transform(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Jt({name:"userFullName",type:t,pure:!0}),t})();function RH(t,e){if(1&t){const t=qo();jo(0,"th",18),jo(1,"mat-checkbox",19),Jo("change",function(e){ze(t);const i=ea();return e?i.masterToggle():null}),Yo(),Yo()}if(2&t){const t=ea();rr(1),Oo("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function DH(t,e){if(1&t){const t=qo();jo(0,"td",20),jo(1,"mat-checkbox",21),Jo("change",function(e){const i=ze(t).$implicit,n=ea();return e?n.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),Yo(),Yo()}if(2&t){const t=e.$implicit,i=ea();rr(1),Oo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function PH(t,e){1&t&&(jo(0,"th",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATIONS_LIST.TABLE_ID")))}function LH(t,e){if(1&t&&(jo(0,"td",20),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.id)}}function zH(t,e){1&t&&(jo(0,"th",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATIONS_LIST.TABLE_LOCK")))}function IH(t,e){if(1&t){const t=qo();jo(0,"button",24),Jo("click",function(){ze(t);const e=ea().$implicit;return ea().lockOrUnlockPublication(e)})("mouseenter",function(){return ze(t),ea(2).buttonPressed=!0})("mouseleave",function(){return ze(t),ea(2).buttonPressed=!1}),uu(1,"translate"),jo(2,"mat-icon"),Ma(3,"lock"),Yo(),Yo()}2&t&&ra("matTooltip",lu(1,1,"PUBLICATIONS_LIST.LOCKED"))}function FH(t,e){if(1&t){const t=qo();jo(0,"button",24),Jo("click",function(){ze(t);const e=ea().$implicit;return ea().lockOrUnlockPublication(e)})("mouseenter",function(){return ze(t),ea(2).buttonPressed=!0})("mouseleave",function(){return ze(t),ea(2).buttonPressed=!1}),uu(1,"translate"),jo(2,"mat-icon"),Ma(3,"lock_open"),Yo(),Yo()}2&t&&ra("matTooltip",lu(1,1,"PUBLICATIONS_LIST.UNLOCKED"))}function HH(t,e){if(1&t&&(jo(0,"td",20),Io(1,IH,4,3,"button",23),Io(2,FH,4,3,"button",23),Yo()),2&t){const t=e.$implicit;rr(1),Oo("ngIf",t.locked),rr(1),Oo("ngIf",!t.locked)}}function OH(t,e){1&t&&(jo(0,"th",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATIONS_LIST.TABLE_TITLE")))}function BH(t,e){if(1&t&&(jo(0,"td",20),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.title)}}function jH(t,e){1&t&&(jo(0,"th",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATIONS_LIST.TABLE_REPORTED_BY")))}function YH(t,e){if(1&t&&(jo(0,"span"),Ma(1),uu(2,"userFullName"),No(3,"br"),Yo()),2&t){const t=e.$implicit;rr(1),xa(" ",lu(2,1,t),"")}}function NH(t,e){if(1&t&&(jo(0,"td",20),Io(1,YH,4,3,"span",25),Yo()),2&t){const t=e.$implicit;rr(1),Oo("ngForOf",t.authors)}}function KH(t,e){1&t&&(jo(0,"th",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATIONS_LIST.TABLE_YEAR")))}function UH(t,e){if(1&t&&(jo(0,"td",20),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.year)}}function VH(t,e){1&t&&(jo(0,"th",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATIONS_LIST.TABLE_CATEGORY")))}function qH(t,e){if(1&t&&(jo(0,"td",20),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.categoryName)}}function $H(t,e){1&t&&(jo(0,"th",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATIONS_LIST.TABLE_THANKEDTO")))}function WH(t,e){if(1&t&&(jo(0,"span"),Ma(1),No(2,"br"),Yo()),2&t){const t=e.$implicit;rr(1),xa(" ",t.ownerName,"")}}function GH(t,e){if(1&t&&(jo(0,"td",20),Io(1,WH,3,1,"span",25),Yo()),2&t){const t=e.$implicit;rr(1),Oo("ngForOf",t.thanks)}}function JH(t,e){1&t&&(jo(0,"th",18),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATIONS_LIST.TABLE_CITE")))}function ZH(t,e){if(1&t){const t=qo();jo(0,"td",20),jo(1,"button",26),Jo("click",function(){const e=ze(t).$implicit;return ea().showCite(e)})("mouseenter",function(){return ze(t),ea().buttonPressed=!0})("mouseleave",function(){return ze(t),ea().buttonPressed=!1}),Ma(2),uu(3,"translate"),Yo(),Yo()}2&t&&(rr(2),xa(" ",lu(3,1,"PUBLICATIONS_LIST.SHOW_CITE")," "))}function QH(t,e){1&t&&No(0,"tr",27)}const XH=function(t,e){return[t,e]};function tO(t,e){if(1&t){const t=qo();jo(0,"tr",28),Jo("click",function(){const e=ze(t).$implicit,i=ea();return i.disabledRouting&&i.openInTab&&!i.buttonPressed?i.emitPublication(e):null}),Yo()}if(2&t){const t=e.$implicit,i=ea();Oo("perunWebAppsMiddleClickRouterLink",i.disabledRouting||i.buttonPressed?null:ru(2,XH,i.routerPath,t.id))("routerLink",i.disabledRouting||i.buttonPressed?null:ru(5,XH,i.routerPath,t.id))}}function eO(t,e){1&t&&(jo(0,"app-alert",29),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"PUBLICATIONS_LIST.NO_PUBLICATIONS_FOUND"),"\n"))}let iO=(()=>{class t{constructor(t,e,i,n,s){this.tableCheckbox=t,this.cabinetService=e,this.dialog=i,this.notificator=n,this.translate=s,this.selection=new Wk(!0,[]),this.displayedColumns=["select","id","lock","title","reportedBy","year","category","thankedTo","cite"],this.pageSize=10,this.page=new mu,this.pageSizeOptions=xx,this.disabledRouting=!1,this.openInTab=!1,this.allowAlert=!0,this.publicationSelector=new mu,this.buttonPressed=!1,s.get("PUBLICATIONS_LIST.CHANGE_LOCK_SUCCESS").subscribe(t=>this.changeLockMessage=t),s.get("PUBLICATIONS_LIST.LOCKED").subscribe(t=>this.locked=t),s.get("PUBLICATIONS_LIST.UNLOCKED").subscribe(t=>this.unlocked=t)}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new SD(this.publications),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"lock":return String(t.locked);case"title":return t.title;case"reportedBy":{let e="";return t.authors.forEach(t=>e+=Rx(t)+";"),e.slice(0,-1)}case"year":return t.year.toString();case"category":return t.categoryName;case"thankedTo":{let e="";return t.thanks.forEach(t=>e+=t.ownerName+";"),e.slice(0,-1)}default:return t[e]}}exportData(t){Hx(Fx(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.sortData=(t,e)=>Lx(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}itemSelectionToggle(t){this.selection.toggle(t)}showCite(t){const e=Dx();e.width="500px",e.data=t,this.dialog.open(CH,e)}lockOrUnlockPublication(t){this.cabinetService.lockPublications({publications:[this.createPublication(t)],lock:!t.locked}).subscribe(()=>{this.notificator.showSuccess(t.locked?this.changeLockMessage+this.unlocked:this.changeLockMessage+this.locked),t.locked=!t.locked})}createPublication(t){return{id:t.id,externalId:t.externalId,publicationSystemId:t.publicationSystemId,categoryId:t.categoryId,createdBy:t.createdBy,createdDate:t.createdDate,doi:t.doi,isbn:t.isbn,locked:t.locked,main:t.main,rank:t.rank,title:t.title,year:t.year}}emitPublication(t){return this.publicationSelector.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Xx),Ho(xf),Ho(Ax),Ho(Gx),Ho(rx))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-publications-list"]],viewQuery:function(t,e){if(1&t&&(xu(_F,7),xu(Yx,7)),2&t){let t;Eu(t=Du())&&(e.matSort=t.first),Eu(t=Du())&&(e.child=t.first)}},inputs:{publications:"publications",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",routerPath:"routerPath",disabledRouting:"disabledRouting",openInTab:"openInTab",allowAlert:"allowAlert"},outputs:{page:"page",publicationSelector:"publicationSelector"},features:[ue],decls:33,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","title","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","lock"],["matColumnDef","title"],["matColumnDef","reportedBy"],["matColumnDef","year"],["matColumnDef","category"],["matColumnDef","thankedTo"],["matColumnDef","cite"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-icon-button","",3,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click","mouseenter","mouseleave"],[4,"ngFor","ngForOf"],["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(t,e){1&t&&(jo(0,"div",0),jo(1,"perun-web-apps-table-wrapper",1),Jo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),jo(2,"table",2),Ko(3,3),Io(4,RH,2,3,"th",4),Io(5,DH,2,2,"td",5),Uo(),Ko(6,6),Io(7,PH,3,3,"th",7),Io(8,LH,2,1,"td",5),Uo(),Ko(9,8),Io(10,zH,3,3,"th",7),Io(11,HH,3,2,"td",5),Uo(),Ko(12,9),Io(13,OH,3,3,"th",7),Io(14,BH,2,1,"td",5),Uo(),Ko(15,10),Io(16,jH,3,3,"th",7),Io(17,NH,2,1,"td",5),Uo(),Ko(18,11),Io(19,KH,3,3,"th",7),Io(20,UH,2,1,"td",5),Uo(),Ko(21,12),Io(22,VH,3,3,"th",7),Io(23,qH,2,1,"td",5),Uo(),Ko(24,13),Io(25,$H,3,3,"th",7),Io(26,GH,2,1,"td",5),Uo(),Ko(27,14),Io(28,JH,3,3,"th",4),Io(29,ZH,4,3,"td",5),Uo(),Io(30,QH,1,0,"tr",15),Io(31,tO,1,8,"tr",16),Yo(),Yo(),Yo(),Io(32,eO,3,3,"app-alert",17)),2&t&&(Oo("hidden",0===e.dataSource.filteredData.length||0===e.publications.length),rr(1),Oo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),rr(1),Oo("dataSource",e.dataSource),rr(28),Oo("matHeaderRowDef",e.displayedColumns),rr(1),Oo("matRowDefColumns",e.displayedColumns),rr(1),Oo("ngIf",0===e.publications.length&&e.allowAlert))},directives:[Yx,gD,_F,yD,_D,mD,vD,AD,Bh,wD,jL,bD,TF,ak,BM,jE,Hh,kD,TD,kH,__,EH],pipes:[ox,xH],styles:[".mat-column-title[_ngcontent-%COMP%]{width:40%}"]}),t})();function nO(t,e){1&t&&No(0,"mat-spinner",7)}const sO=function(){return["id","title","year"]};function rO(t,e){if(1&t&&(jo(0,"div",8),Ma(1),uu(2,"translate"),No(3,"perun-web-apps-publications-list",9),Yo()),2&t){const t=ea();rr(1),xa(" ",lu(2,4,"DIALOGS.REMOVE_PUBLICATION.WARNING")," "),rr(2),Oo("publications",t.publications)("routerPath",null)("displayedColumns",nu(6,sO))}}let oO=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.cabinetService=s,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)}):this.remove()},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(Ho(gx),Ho(_x),Ho(Gx),Ho(rx),Ho(xf))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),Io(4,nO,1,0,"mat-spinner",2),Io(5,rO,4,7,"div",3),jo(6,"div",4),jo(7,"button",5),Jo("click",function(){return e.cancel()}),Ma(8),uu(9,"translate"),Yo(),jo(10,"button",6),Jo("click",function(){return e.remove()}),Ma(11),uu(12,"translate"),Yo(),Yo(),Yo()),2&t&&(rr(2),Ea(lu(3,6,"DIALOGS.REMOVE_PUBLICATION.TITLE")),rr(2),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading),rr(3),xa(" ",lu(9,8,"DIALOGS.REMOVE_PUBLICATION.CANCEL")," "),rr(2),Oo("disabled",e.loading),rr(1),xa(" ",lu(12,10,"DIALOGS.REMOVE_PUBLICATION.REMOVE")," "))},directives:[Tx,Bh,Sx,ak,hR,Cx,iO],pipes:[ox],styles:[""]}),t})();const aO="GUI_CONFIG.PREF_PAGE_SIZE.";let cO=(()=>{class t{constructor(){}getString(t){return localStorage.getItem(t)}getNumber(t){return parseInt(localStorage.getItem(t),10)}setNumber(t,e){localStorage.setItem(t,e.toString())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),uO=(()=>{class t{constructor(t){this.guiConfigService=t}getTablePageSize(t){const e=this.guiConfigService.getNumber(aO+t);if(!isNaN(e))return e;const i=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(i)?10:i}setTablePageSize(t,e){this.guiConfigService.setNumber(aO+t,e)}}return t.\u0275fac=function(e){return new(e||t)(gn(cO))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const lO="67",hO="68";let dO=(()=>{class t{constructor(){this.refresh=new mu}onClickbutton(t){this.refresh.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&(jo(0,"button",0),Jo("click",function(t){return e.onClickbutton(t)}),uu(1,"translate"),No(2,"mat-icon",1),Yo()),2&t&&(ra("matTooltip",lu(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),Oo("disabled",e.disabled),rr(2),ra("svgIcon",e.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[ak,BM,jE],pipes:[ox],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}"]}),t})();var fO=i(9609);const pO=i.n(fO)()||fO,gO=new Ji("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function(){return{useUtc:!1}}});function mO(t,e){const i=Array(t);for(let n=0;n{class t extends _A{constructor(t,e){super(),this._options=e,this.setLocale(t||pO.locale())}setLocale(t){super.setLocale(t);let e=pO.localeData(t);this._localeData={firstDayOfWeek:e.firstDayOfWeek(),longMonths:e.months(),shortMonths:e.monthsShort(),dates:mO(31,t=>this.createDate(2017,0,t+1).format("D")),longDaysOfWeek:e.weekdays(),shortDaysOfWeek:e.weekdaysShort(),narrowDaysOfWeek:e.weekdaysMin()}}getYear(t){return this.clone(t).year()}getMonth(t){return this.clone(t).month()}getDate(t){return this.clone(t).date()}getDayOfWeek(t){return this.clone(t).day()}getMonthNames(t){return"long"==t?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(t){return"long"==t?this._localeData.longDaysOfWeek:"short"==t?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(t){return this.clone(t).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(t){return this.clone(t).daysInMonth()}clone(t){return t.clone().locale(this.locale)}createDate(t,e,i){const n=this._createMoment({year:t,month:e,date:i}).locale(this.locale);return n.isValid(),n}today(){return this._createMoment().locale(this.locale)}parse(t,e){return t&&"string"==typeof t?this._createMoment(t,e,this.locale):t?this._createMoment(t).locale(this.locale):null}format(t,e){return t=this.clone(t),this.isValid(t),t.format(e)}addCalendarYears(t,e){return this.clone(t).add({years:e})}addCalendarMonths(t,e){return this.clone(t).add({months:e})}addCalendarDays(t,e){return this.clone(t).add({days:e})}toIso8601(t){return this.clone(t).format()}deserialize(t){let e;if(t instanceof Date)e=this._createMoment(t).locale(this.locale);else if(this.isDateInstance(t))return this.clone(t);if("string"==typeof t){if(!t)return null;e=this._createMoment(t,pO.ISO_8601).locale(this.locale)}return e&&this.isValid(e)?this._createMoment(e).locale(this.locale):super.deserialize(t)}isDateInstance(t){return pO.isMoment(t)}isValid(t){return this.clone(t).isValid()}invalid(){return pO.invalid()}_createMoment(t,e,i){const{strict:n,useUtc:s}=this._options||{};return s?pO.utc(t,e,i,n):pO(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(gn(mA,8),gn(gO,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),yO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[{provide:_A,useClass:_O,deps:[mA,gO]}]}),t})(),wO=(()=>{class t{constructor(){}ngOnInit(){this.endMaxYear=new Date,this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value}chosenYearHandler(t,e,i){t.setValue(e),this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value,i.close()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,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(t,e){if(1&t){const t=qo();jo(0,"mat-form-field",0),Jo("click",function(){return ze(t),Fo(7).open()}),jo(1,"mat-label"),Ma(2),uu(3,"translate"),Yo(),No(4,"input",1),No(5,"mat-datepicker-toggle",2),jo(6,"mat-datepicker",3,4),Jo("yearSelected",function(i){ze(t);const n=Fo(7);return e.chosenYearHandler(e.startYear,i,n)}),Yo(),Yo(),jo(8,"mat-form-field",0),Jo("click",function(){return ze(t),Fo(15).open()}),jo(9,"mat-label"),Ma(10),uu(11,"translate"),Yo(),No(12,"input",5),No(13,"mat-datepicker-toggle",2),jo(14,"mat-datepicker",3,6),Jo("yearSelected",function(i){ze(t);const n=Fo(15);return e.chosenYearHandler(e.endYear,i,n)}),Yo(),Yo()}if(2&t){const t=Fo(7),i=Fo(15);rr(2),Ea(lu(3,11,"PUBLICATION_FILTER.START_YEAR")),rr(2),Oo("matDatepicker",t)("max",e.startMaxYear)("formControl",e.startYear),rr(1),Oo("for",t),rr(5),Ea(lu(11,13,"PUBLICATION_FILTER.END_YEAR")),rr(2),Oo("matDatepicker",i)("min",e.endMinYear)("max",e.endMaxYear)("formControl",e.endYear),rr(1),Oo("for",i)}},directives:[xC,wC,vR,aF,OC,uS,qS,uF,kC,iF],pipes:[ox],styles:[".year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:auto!important}"]}),t})();function bO(t,e){if(1&t&&(jo(0,"mat-option",12),Ma(1),Yo()),2&t){const t=e.$implicit;Oo("value",t),rr(1),xa(" ",t.name," ")}}const vO=fO,AO={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let kO=(()=>{class t{constructor(t){this.cabinetService=t,this.title=new LS,this.code=new LS,this.startYear=new LS(vO()),this.endYear=new LS(vO()),this.filteredPublication=new mu}ngOnInit(){this.title.setValue(""),this.code.setValue(""),this.selectedCategory="no_value",this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.selectedMode="isbn/issn"})}filter(){const t={title:this.title.value,isbnissn:"isbn/issn"===this.selectedMode?this.code.value:null,doi:"doi"===this.selectedMode?this.code.value:null,category:"no_value"!==this.selectedCategory?this.selectedCategory.id:null,startYear:yh(this.startYear.value,"yyyy","en-GB"),endYear:yh(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 LS(vO()),this.endYear=new LS(vO()),this.filteredPublication.emit({title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null})}}return t.\u0275fac=function(e){return new(e||t)(Ho(xf))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-publication-filter"]],outputs:{filteredPublication:"filteredPublication"},features:[Za([{provide:_A,useClass:_O,deps:[mA]},{provide:yA,useValue:AO}])],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(t,e){1&t&&(jo(0,"div",0),jo(1,"mat-form-field",1),No(2,"input",2),uu(3,"translate"),Yo(),jo(4,"mat-form-field",1),jo(5,"mat-label"),Ma(6),uu(7,"translate"),Yo(),jo(8,"mat-select",3),Jo("valueChange",function(t){return e.selectedMode=t}),jo(9,"mat-option",4),Ma(10),uu(11,"translate"),Yo(),jo(12,"mat-option",5),Ma(13),uu(14,"translate"),Yo(),Yo(),Yo(),jo(15,"mat-form-field",6),No(16,"input",2),uu(17,"translate"),Yo(),jo(18,"mat-form-field",1),jo(19,"mat-label"),Ma(20),uu(21,"translate"),Yo(),jo(22,"mat-select",3),Jo("valueChange",function(t){return e.selectedCategory=t}),jo(23,"mat-option",7),Ma(24),uu(25,"translate"),Yo(),Io(26,bO,2,2,"mat-option",8),Yo(),Yo(),No(27,"perun-web-apps-year-range",9),jo(28,"button",10),Jo("click",function(){return e.filter()}),jo(29,"mat-icon"),Ma(30,"search"),Yo(),Ma(31),uu(32,"translate"),Yo(),jo(33,"button",11),Jo("click",function(){return e.clearFilter()}),jo(34,"mat-icon"),Ma(35,"search_off"),Yo(),Ma(36),uu(37,"translate"),Yo(),Yo()),2&t&&(rr(2),ra("placeholder",lu(3,16,"PUBLICATION_FILTER.TITLE_PLACEHOLDER")),Oo("formControl",e.title),rr(4),Ea(lu(7,18,"PUBLICATION_FILTER.SELECT_MODE")),rr(2),Oo("value",e.selectedMode),rr(2),Ea(lu(11,20,"PUBLICATION_FILTER.ISBN/ISSN")),rr(3),Ea(lu(14,22,"PUBLICATION_FILTER.DOI")),rr(3),ra("placeholder",lu(17,24,"PUBLICATION_FILTER.CODE_PLACEHOLDER")),Oo("formControl",e.code),rr(4),Ea(lu(21,26,"PUBLICATION_FILTER.SELECT_CATEGORY")),rr(2),Oo("value",e.selectedCategory),rr(2),Ea(lu(25,28,"PUBLICATION_FILTER.NO_CATEGORY_SELECTED")),rr(2),Oo("ngForOf",e.categories),rr(1),Oo("startYear",e.startYear)("endYear",e.endYear),rr(4),xa(" ",lu(32,30,"PUBLICATION_FILTER.FILTER")," "),rr(5),xa(" ",lu(37,32,"PUBLICATION_FILTER.CLEAR_FILTER")," "))},directives:[xC,vR,OC,uS,qS,wC,kM,XA,Hh,wO,ak,jE],pipes:[ox],styles:[".filter-field[_ngcontent-%COMP%]{max-width:250px!important;width:100%!important;min-width:auto!important}.disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:auto!important}"]}),t})();function TO(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-publications-list",10),Jo("page",function(e){return ze(t),ea().pageChanged(e)}),Yo()}if(2&t){const t=ea();Oo("publications",t.publications)("selection",t.selected)("routerPath","/all-publications")("pageSize",t.pageSize)}}function CO(t,e){1&t&&No(0,"mat-spinner",11)}let SO=(()=>{class t{constructor(t,e,i,n,s,r){this.route=t,this.cabinetService=e,this.tableConfigService=i,this.dialog=n,this.matIconRegistry=s,this.domSanitizer=r,this.selected=new Wk(!0,[]),this.tableId=hO,this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}removePublication(){const t=Dx();t.width="500px",t.data=this.selected.selected,this.dialog.open(oO,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(null,null,null,null,null,null,null,null,null).subscribe(t=>{this.publications=t,this.loading=!1})}filterPublication(t){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(t.title,null,null,null,null,t.category,+t.startYear,+t.endYear,null).subscribe(t=>{this.publications=t,this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(Ho(Wg),Ho(xf),Ho(uO),Ho(Ax),Ho(DE),Ho(Ld))},t.\u0275cmp=Kt({type:t,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","pageSize","page",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publications","selection","routerPath","pageSize","page"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),No(2,"mat-icon",2),jo(3,"span",3),Ma(4),uu(5,"translate"),Yo(),Yo(),jo(6,"div",4),jo(7,"perun-web-apps-refresh-button",5),Jo("refresh",function(){return e.refreshTable()}),Yo(),jo(8,"button",6),Jo("click",function(){return e.removePublication()}),Ma(9),uu(10,"translate"),Yo(),jo(11,"perun-web-apps-publication-filter",7),Jo("filteredPublication",function(t){return e.filterPublication(t)}),Yo(),Yo(),Io(12,TO,1,4,"perun-web-apps-publications-list",8),Io(13,CO,1,0,"mat-spinner",9),Yo()),2&t&&(rr(4),Ea(lu(5,5,"ALL_PUBLICATIONS.TITLE")),rr(4),Oo("disabled",0===e.selected.selected.length),rr(1),xa(" ",lu(10,7,"ALL_PUBLICATIONS.REMOVE")," "),rr(3),Oo("ngIf",!e.loading),rr(1),Oo("ngIf",e.loading))},directives:[jE,dO,ak,kO,Bh,iO,hR],pipes:[ox],styles:[".publications-icon[_ngcontent-%COMP%]{height:32px;width:32px}"]}),t})();function MO(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-publications-list",11),Jo("page",function(e){return ze(t),ea(2).pageChanged(e)}),Yo()}if(2&t){const t=ea(2);Oo("publications",t.publications)("selection",t.selected)("pageSize",t.pageSize)("routerPath","/my-publications")}}function EO(t,e){if(1&t){const t=qo();jo(0,"div"),jo(1,"div",6),jo(2,"perun-web-apps-refresh-button",7),Jo("refresh",function(){return ze(t),ea().refreshTable()}),Yo(),jo(3,"button",8),Jo("click",function(){return ze(t),ea().removePublication()}),Ma(4),uu(5,"translate"),Yo(),jo(6,"perun-web-apps-publication-filter",9),Jo("filteredPublication",function(e){return ze(t),ea().filterPublication(e)}),Yo(),Yo(),Io(7,MO,1,4,"perun-web-apps-publications-list",10),Yo()}if(2&t){const t=ea();rr(3),Oo("disabled",0===t.selected.selected.length),rr(1),xa(" ",lu(5,3,"MY_PUBLICATIONS.REMOVE")," "),rr(3),Oo("ngIf",!t.loading)}}function xO(t,e){1&t&&No(0,"mat-spinner",12)}let RO=(()=>{class t{constructor(t,e,i,n,s){this.route=t,this.cabinetService=e,this.tableConfigService=i,this.dialog=n,this.authResolver=s,this.selected=new Wk(!0,[]),this.tableId=hO}ngOnInit(){this.initLoading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.authResolver.getPerunPrincipal().subscribe(t=>{this.authorId=t.userId,this.initLoading=!1,this.refreshTable()})}removePublication(){const t=Dx();t.width="500px",t.data=this.selected.selected,this.dialog.open(oO,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(null,null,null,null,null,null,null,null,this.authorId).subscribe(t=>{this.publications=t,this.loading=!1})}filterPublication(t){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(t.title,null,null,null,null,t.category,+t.startYear,+t.endYear,this.authorId).subscribe(t=>{this.publications=t,this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(Ho(Wg),Ho(xf),Ho(uO),Ho(Ax),Ho(Ef))},t.\u0275cmp=Kt({type:t,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","pageSize","routerPath","page",4,"ngIf"],[3,"publications","selection","pageSize","routerPath","page"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),jo(2,"mat-icon",2),Ma(3,"local_library"),Yo(),jo(4,"span",3),Ma(5),uu(6,"translate"),Yo(),Yo(),Io(7,EO,8,5,"div",4),Io(8,xO,1,0,"mat-spinner",5),Yo()),2&t&&(rr(5),Ea(lu(6,3,"MY_PUBLICATIONS.TITLE")),rr(2),Oo("ngIf",!e.initLoading),rr(1),Oo("ngIf",e.loading||e.initLoading))},directives:[jE,Bh,dO,ak,kO,iO,hR],pipes:[ox],styles:[""]}),t})(),DO=(()=>{class t{constructor(t){this.router=t}importPublications(){this.router.navigate(["create-publication","import"])}createPublication(){this.router.navigate(["create-publication","create"])}}return t.\u0275fac=function(e){return new(e||t)(Ho(m_))},t.\u0275cmp=Kt({type:t,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",3,"click"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),jo(2,"span"),jo(3,"mat-icon",2),Ma(4,"add_box"),Yo(),Ma(5),uu(6,"translate"),Yo(),Yo(),jo(7,"div",3),jo(8,"div",4),jo(9,"mat-card",5),jo(10,"mat-card-title"),Ma(11),uu(12,"translate"),Yo(),jo(13,"mat-card-content",6),jo(14,"div"),Ma(15),uu(16,"translate"),Yo(),jo(17,"button",7),Jo("click",function(){return e.importPublications()}),Ma(18),uu(19,"translate"),Yo(),Yo(),Yo(),Yo(),jo(20,"div",4),jo(21,"mat-card",5),jo(22,"mat-card-title"),Ma(23),uu(24,"translate"),Yo(),jo(25,"mat-card-content",6),jo(26,"div"),Ma(27),uu(28,"translate"),Yo(),jo(29,"button",7),Jo("click",function(){return e.createPublication()}),Ma(30),uu(31,"translate"),Yo(),Yo(),Yo(),Yo(),Yo(),Yo()),2&t&&(rr(5),xa(" ",lu(6,7,"CREATE_PUBLICATION.TITLE")," "),rr(6),xa(" ",lu(12,9,"CREATE_PUBLICATION.IMPORT_TITLE")," "),rr(4),xa(" ",lu(16,11,"CREATE_PUBLICATION.IMPORT_HINT")," "),rr(3),xa(" ",lu(19,13,"CREATE_PUBLICATION.IMPORT")," "),rr(5),xa(" ",lu(24,15,"CREATE_PUBLICATION.CREATE_TITLE")," "),rr(4),xa(" ",lu(28,17,"CREATE_PUBLICATION.CREATE_HINT")," "),rr(3),xa(" ",lu(31,19,"CREATE_PUBLICATION.CREATE")," "))},directives:[jE,ML,SL,CL,ak],pipes:[ox],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}"]}),t})();const PO=["groupFilterInput"];let LO=(()=>{class t{constructor(){this.filter=new mu}ngOnInit(){uk(this.groupFilterInput.nativeElement,"keyup").pipe(I(t=>t.target.value),Q_(500),kk()).subscribe(t=>{this.filter.emit(t)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(t,e){if(1&t&&xu(PO,7),2&t){let t;Eu(t=Du())&&(e.groupFilterInput=t.first)}},inputs:{placeholder:"placeholder"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-3"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(t,e){1&t&&(jo(0,"mat-form-field",0),No(1,"input",1,2),uu(3,"translate"),Yo()),2&t&&(rr(1),ra("placeholder",lu(3,1,e.placeholder)))},directives:[xC,vR],pipes:[ox],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t})();function zO(t,e){1&t&&No(0,"th",18)}function IO(t,e){if(1&t){const t=qo();jo(0,"td",19),jo(1,"mat-checkbox",20),Jo("change",function(e){const i=ze(t).$implicit,n=ea();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),Yo(),Yo()}if(2&t){const t=e.$implicit,i=ea();rr(1),Oo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function FO(t,e){1&t&&(jo(0,"th",21),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"AUTHORS_LIST.ID")))}function HO(t,e){if(1&t&&(jo(0,"td",19),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.id)}}function OO(t,e){1&t&&(jo(0,"th",21),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"AUTHORS_LIST.NAME")))}function BO(t,e){if(1&t&&(jo(0,"td",22),Ma(1),uu(2,"userFullName"),Yo()),2&t){const t=e.$implicit;rr(1),Ea(lu(2,1,t))}}function jO(t,e){1&t&&(jo(0,"th",21),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"AUTHORS_LIST.ORGANIZATION")))}function YO(t,e){if(1&t&&(jo(0,"td",22),Ma(1),Yo()),2&t){const t=e.$implicit,i=ea();rr(1),Ea(i.parseAttribute(t,"organization"))}}function NO(t,e){1&t&&(jo(0,"th",21),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"AUTHORS_LIST.EMAIL")))}function KO(t,e){if(1&t&&(jo(0,"td",22),Ma(1),Yo()),2&t){const t=e.$implicit,i=ea();rr(1),Ea(i.parseAttribute(t,"preferredMail"))}}function UO(t,e){1&t&&(jo(0,"th",21),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"AUTHORS_LIST.NUMBER_OF_PUBLICATIONS")))}function VO(t,e){if(1&t&&(jo(0,"td",22),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.authorships.length.toString())}}function qO(t,e){1&t&&No(0,"th",18)}function $O(t,e){if(1&t){const t=qo();jo(0,"td",19),jo(1,"button",23),Jo("click",function(){const e=ze(t).$implicit;return ea().onAddClick(e)}),Ma(2),uu(3,"translate"),Yo(),Yo()}2&t&&(rr(2),xa(" ",lu(3,1,"AUTHORS_LIST.ADD")," "))}function WO(t,e){1&t&&No(0,"th",18)}function GO(t,e){if(1&t){const t=qo();jo(0,"td",19),jo(1,"button",24),Jo("click",function(){const e=ze(t).$implicit;return ea().onRemoveClick(e)}),Ma(2),uu(3,"translate"),Yo(),Yo()}2&t&&(rr(2),xa(" ",lu(3,1,"AUTHORS_LIST.REMOVE")," "))}function JO(t,e){1&t&&No(0,"tr",25)}const ZO=function(t){return["/authors",t]};function QO(t,e){if(1&t&&No(0,"tr",26),2&t){const t=e.$implicit,i=ea();Oo("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:su(2,ZO,t.id))("routerLink",i.disableRouting?null:su(4,ZO,t.id))}}function XO(t,e){1&t&&(jo(0,"app-alert",27),Ma(1),uu(2,"translate"),Yo()),2&t&&(Oo("alert_type","warn"),rr(1),xa(" ",lu(2,2,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function tB(t,e){1&t&&(jo(0,"app-alert",27),Ma(1),uu(2,"translate"),Yo()),2&t&&(Oo("alert_type","warn"),rr(1),xa(" ",lu(2,2,"AUTHORS_LIST.NO_AUTHORS"),"\n"))}let eB=(()=>{class t{constructor(){this.authors=[],this.pageSize=10,this.displayedColumns=["select","id","name","organization","email","numberOfPublications","add","remove"],this.disableRouting=!1,this.pageSizeOptions=xx,this.page=new mu,this.addAuthor=new mu,this.removeAuthor=new mu}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new SD(this.authors),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getSortDataForColumn(t,e){var i;switch(e){case"id":return t.id.toString();case"name":return t.lastName?t.lastName:null!==(i=t.firstName)&&void 0!==i?i:"";case"organization":return Ix(t,"organization");case"email":return Ix(t,"preferredMail");case"numberOfPublications":return t.authorships.length.toString();default:return t[e]}}getFilterDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return function(t){let e="";return null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}(t);case"organization":return Ix(t,"organization");case"email":return Ix(t,"preferredMail");case"numberOfPublications":return t.authorships.length.toString();default:return t[e]}}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return Rx(t);case"organization":return Ix(t,"organization");case"email":return Ix(t,"preferredMail");case"numberOfPublications":return t.authorships.length.toString();default:return t[e]}}exportData(t){Hx(Fx(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}parseAttribute(t,e){let i="";return t.attributes&&t.attributes.forEach(t=>{t.friendlyName===e&&(i=t.value)}),i}checkboxLabel(t){return`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`}onAddClick(t){this.addAuthor.emit(t)}onRemoveClick(t){this.removeAuthor.emit(t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>zx(t,e,this.displayedColumns,this.getFilterDataForColumn,this),this.dataSource.sortData=(t,e)=>Lx(t,e,this.getSortDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-authors-list"]],viewQuery:function(t,e){if(1&t&&(xu(_F,7),xu(Yx,7)),2&t){let t;Eu(t=Du())&&(e.matSort=t.first),Eu(t=Du())&&(e.child=t.first)}},inputs:{authors:"authors",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",disableRouting:"disableRouting",reloadTable:"reloadTable",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page",addAuthor:"addAuthor",removeAuthor:"removeAuthor"},features:[ue],decls:31,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","numberOfPublications"],["matColumnDef","add"],["matColumnDef","remove"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-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"],[3,"alert_type"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"perun-web-apps-table-wrapper",1),Jo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),jo(2,"table",2),Ko(3,3),Io(4,zO,1,0,"th",4),Io(5,IO,2,2,"td",5),Uo(),Ko(6,6),Io(7,FO,3,3,"th",7),Io(8,HO,2,1,"td",5),Uo(),Ko(9,8),Io(10,OO,3,3,"th",7),Io(11,BO,3,3,"td",9),Uo(),Ko(12,10),Io(13,jO,3,3,"th",7),Io(14,YO,2,1,"td",9),Uo(),Ko(15,11),Io(16,NO,3,3,"th",7),Io(17,KO,2,1,"td",9),Uo(),Ko(18,12),Io(19,UO,3,3,"th",7),Io(20,VO,2,1,"td",9),Uo(),Ko(21,13),Io(22,qO,1,0,"th",4),Io(23,$O,4,3,"td",5),Uo(),Ko(24,14),Io(25,WO,1,0,"th",4),Io(26,GO,4,3,"td",5),Uo(),Io(27,JO,1,0,"tr",15),Io(28,QO,1,6,"tr",16),Yo(),Yo(),Yo(),Io(29,XO,3,4,"app-alert",17),Io(30,tB,3,4,"app-alert",17)),2&t&&(Oo("hidden",0===e.authors.length||0===e.dataSource.filteredData.length),rr(1),Oo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),rr(1),Oo("dataSource",e.dataSource),rr(25),Oo("matHeaderRowDef",e.displayedColumns),rr(1),Oo("matRowDefColumns",e.displayedColumns),rr(1),Oo("ngIf",0!==e.authors.length&&0===e.dataSource.filteredData.length),rr(1),Oo("ngIf",0===e.authors.length))},directives:[Yx,gD,_F,yD,_D,mD,vD,AD,Bh,wD,bD,jL,TF,ak,kD,TD,kH,__,EH],pipes:[ox,xH],styles:[""]}),t})();function iB(t,e){1&t&&No(0,"mat-spinner",8)}const nB=function(){return["id","name","organization","email","numberOfPublications"]};function sB(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-authors-list",9),Jo("page",function(e){return ze(t),ea().pageChanged(e)}),Yo()}if(2&t){const t=ea();Oo("authors",t.authors)("displayedColumns",nu(4,nB))("filterValue",t.filterValue)("pageSize",t.pageSize)}}let rB=(()=>{class t{constructor(t,e){this.tableConfigService=t,this.cabinetService=e,this.filterValue="",this.tableId=lO}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetService.findAllAuthors().subscribe(t=>{this.authors=t,this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(Ho(uO),Ho(xf))},t.\u0275cmp=Kt({type:t,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","pageSize","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"authors","displayedColumns","filterValue","pageSize","page"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),jo(2,"mat-icon",2),Ma(3,"assignment_ind"),Yo(),jo(4,"span",3),Ma(5),uu(6,"translate"),Yo(),Yo(),jo(7,"perun-web-apps-refresh-button",4),Jo("refresh",function(){return e.refreshTable()}),Yo(),jo(8,"perun-web-apps-debounce-filter",5),Jo("filter",function(t){return e.applyFilter(t)}),Yo(),Io(9,iB,1,0,"mat-spinner",6),Io(10,sB,1,5,"perun-web-apps-authors-list",7),Yo()),2&t&&(rr(5),Ea(lu(6,4,"AUTHORS_PAGE.TITLE")),rr(3),Oo("placeholder","AUTHORS_PAGE.FILTER"),rr(1),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[jE,dO,LO,Bh,hR,eB],pipes:[ox],styles:[""]}),t})();function oB(t,e){1&t&&No(0,"mat-spinner",4)}function aB(t,e){if(1&t){const t=qo();jo(0,"div"),jo(1,"div",5),jo(2,"mat-form-field"),No(3,"input",6),uu(4,"translate"),jo(5,"mat-error"),Ma(6),uu(7,"translate"),Yo(),Yo(),jo(8,"mat-form-field"),No(9,"input",6),uu(10,"translate"),jo(11,"mat-error"),Ma(12),uu(13,"translate"),Yo(),Yo(),jo(14,"p",7),Ma(15),uu(16,"translate"),Yo(),Yo(),jo(17,"div",8),jo(18,"button",9),Jo("click",function(){return ze(t),ea().onCancel()}),Ma(19),uu(20,"translate"),Yo(),jo(21,"div",10),uu(22,"translate"),jo(23,"button",11),Jo("click",function(){return ze(t),ea().onSubmit()}),Ma(24),uu(25,"translate"),Yo(),Yo(),Yo(),Yo()}if(2&t){const t=ea();rr(3),ra("placeholder",lu(4,12,"DIALOGS.ADD_CATEGORY.NAME")),Oo("formControl",t.nameCtrl),rr(3),xa(" ",lu(7,14,"DIALOGS.ADD_CATEGORY.FILL_NAME")," "),rr(3),ra("placeholder",lu(10,16,"DIALOGS.ADD_CATEGORY.RANK")),Oo("formControl",t.rankCtrl),rr(3),xa(" ",lu(13,18,"DIALOGS.ADD_CATEGORY.FILL_RANK")," "),rr(3),Ea(lu(16,20,"DIALOGS.ADD_CATEGORY.RANK_HINT")),rr(4),xa(" ",lu(20,22,"DIALOGS.ADD_CATEGORY.CANCEL")," "),rr(2),ra("matTooltip",lu(22,24,"DIALOGS.ADD_CATEGORY.TOOLTIP")),Oo("matTooltipDisabled",t.nameCtrl.valid&&t.rankCtrl.valid),rr(2),Oo("disabled",t.nameCtrl.invalid||t.rankCtrl.invalid),rr(1),xa(" ",lu(25,26,"DIALOGS.ADD_CATEGORY.CREATE")," ")}}let cB=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.notificator=e,this.cabinetManagerService=i,this.translate=n,n.get("DIALOGS.ADD_CATEGORY.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.nameCtrl=new LS(null,[UC.required,UC.pattern("^[\\w.-]+( [\\w.-]+)*$"),UC.maxLength(128)]),this.rankCtrl=new LS(null,[UC.required,UC.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.cabinetManagerService.createCategoryCat({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 t.\u0275fac=function(e){return new(e||t)(Ho(gx),Ho(Gx),Ho(xf),Ho(rx))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),Io(4,oB,1,0,"mat-spinner",2),Io(5,aB,26,28,"div",3),Yo()),2&t&&(rr(2),Ea(lu(3,3,"DIALOGS.ADD_CATEGORY.TITLE")),rr(2),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[Tx,Bh,hR,Cx,xC,vR,OC,QS,uS,qS,fC,Sx,ak,BM],pipes:[ox],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();function uB(t,e){1&t&&No(0,"mat-spinner",5)}function lB(t,e){1&t&&No(0,"th",14)}function hB(t,e){if(1&t&&(jo(0,"td",15),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),xa(" ",t.name," ")}}function dB(t,e){1&t&&No(0,"tr",16)}function fB(t,e){1&t&&No(0,"tr",17)}function pB(t,e){if(1&t&&(jo(0,"div",6),jo(1,"p"),Ma(2),uu(3,"translate"),Yo(),jo(4,"div",7),Ma(5),uu(6,"translate"),Yo(),jo(7,"table",8),Ko(8,9),Io(9,lB,1,0,"th",10),Io(10,hB,2,1,"td",11),Uo(),Io(11,dB,1,0,"tr",12),Io(12,fB,1,0,"tr",13),Yo(),Yo()),2&t){const t=ea();rr(2),xa(" ",lu(3,5,"DIALOGS.REMOVE_CATEGORY.DESCRIPTION")," "),rr(3),xa(" ",lu(6,7,"DIALOGS.REMOVE_CATEGORY.ASK")," "),rr(2),Oo("dataSource",t.dataSource),rr(4),Oo("matHeaderRowDef",t.displayedColumns),rr(1),Oo("matRowDefColumns",t.displayedColumns)}}function gB(t,e){if(1&t){const t=qo();jo(0,"div",18),jo(1,"button",19),Jo("click",function(){return ze(t),ea().onCancel()}),Ma(2),uu(3,"translate"),Yo(),jo(4,"button",20),Jo("click",function(){return ze(t),ea().onSubmit()}),Ma(5),uu(6,"translate"),Yo(),Yo()}if(2&t){const t=ea();rr(2),xa(" ",lu(3,3,"DIALOGS.REMOVE_CATEGORY.CANCEL")," "),rr(2),Oo("disabled",t.loading),rr(1),xa(" ",lu(6,5,"DIALOGS.REMOVE_CATEGORY.DELETE")," ")}}let mB=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.cabinetManagerService=s,this.displayedColumns=["name"],this.categories=[]}ngOnInit(){this.dataSource=new SD(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(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(Ho(gx),Ho(_x),Ho(Gx),Ho(rx),Ho(xf))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),Io(4,uB,1,0,"mat-spinner",2),Io(5,pB,13,9,"div",3),Io(6,gB,7,7,"div",4),Yo()),2&t&&(rr(2),Ea(lu(3,4,"DIALOGS.REMOVE_CATEGORY.TITLE")),rr(2),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[Tx,Bh,hR,Cx,gD,yD,_D,mD,vD,AD,wD,bD,kD,TD,Sx,ak],pipes:[ox],styles:[""]}),t})();function _B(t,e){if(1&t&&(No(0,"input",3),uu(1,"translate")),2&t){const t=ea();ra("placeholder",lu(1,2,t.placeholder)),Oo("formControl",t.formControl)}}function yB(t,e){if(1&t&&(No(0,"input",4),uu(1,"translate")),2&t){const t=ea();ra("placeholder",lu(1,2,t.placeholder)),Oo("formControl",t.formControl)}}let wB=(()=>{class t{constructor(){this.filter=new mu,this.autoFocus=!1,this.formControl=new LS}ngOnInit(){this.formControl.valueChanges.subscribe(t=>{let e=t.trim();e=e.toLowerCase(),this.filter.emit(e)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","ml-2"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(jo(0,"mat-form-field",0),Io(1,_B,2,4,"input",1),Io(2,yB,2,4,"input",2),Yo()),2&t&&(rr(1),Oo("ngIf",e.autoFocus),rr(1),Oo("ngIf",!e.autoFocus))},directives:[xC,Bh,vR,OC,AH,uS,qS],pipes:[ox],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t})();function bB(t,e){1&t&&No(0,"mat-spinner",4)}function vB(t,e){if(1&t){const t=qo();jo(0,"div"),jo(1,"div",5),jo(2,"mat-form-field"),No(3,"input",6),uu(4,"translate"),jo(5,"mat-error"),Ma(6),uu(7,"translate"),Yo(),Yo(),jo(8,"p",7),Ma(9),uu(10,"translate"),Yo(),Yo(),jo(11,"div",8),jo(12,"button",9),Jo("click",function(){return ze(t),ea().onCancel()}),Ma(13),uu(14,"translate"),Yo(),jo(15,"div",10),uu(16,"translate"),jo(17,"button",11),Jo("click",function(){return ze(t),ea().onSubmit()}),Ma(18),uu(19,"translate"),Yo(),Yo(),Yo(),Yo()}if(2&t){const t=ea();rr(3),ra("placeholder",lu(4,9,"DIALOGS.UPDATE_RANK.RANK")),Oo("formControl",t.rankCtrl),rr(3),xa(" ",lu(7,11,"DIALOGS.UPDATE_RANK.FILL_RANK")," "),rr(3),Ea(lu(10,13,"DIALOGS.UPDATE_RANK.RANK_HINT")),rr(4),xa(" ",lu(14,15,"DIALOGS.UPDATE_RANK.CANCEL")," "),rr(2),ra("matTooltip",lu(16,17,"DIALOGS.UPDATE_RANK.TOOLTIP")),Oo("matTooltipDisabled",t.rankCtrl.valid),rr(2),Oo("disabled",t.rankCtrl.invalid),rr(1),xa(" ",lu(19,19,"DIALOGS.UPDATE_RANK.UPDATE")," ")}}let AB=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.cabinetManagerService=n,this.translate=s,this.categoryName="",s.get("DIALOGS.UPDATE_RANK.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.categoryName=this.data.name,this.rankCtrl=new LS(this.data.rank,[UC.required,UC.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 t.\u0275fac=function(e){return new(e||t)(Ho(gx),Ho(_x),Ho(Gx),Ho(xf),Ho(rx))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),Io(4,bB,1,0,"mat-spinner",2),Io(5,vB,20,21,"div",3),Yo()),2&t&&(rr(2),Ra("",lu(3,4,"DIALOGS.UPDATE_RANK.TITLE"),"",e.categoryName,""),rr(2),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[Tx,Bh,hR,Cx,xC,vR,OC,QS,uS,qS,fC,Sx,ak,BM],pipes:[ox],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();function kB(t,e){1&t&&No(0,"th",14)}function TB(t,e){if(1&t){const t=qo();jo(0,"td",15),jo(1,"mat-checkbox",16),Jo("change",function(e){const i=ze(t).$implicit,n=ea();return e?n.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),Yo(),Yo()}if(2&t){const t=e.$implicit,i=ea();rr(1),Oo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function CB(t,e){1&t&&(jo(0,"th",17),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"CATEGORIES_LIST.ID")))}function SB(t,e){if(1&t&&(jo(0,"td",15),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.id)}}function MB(t,e){1&t&&(jo(0,"th",17),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"CATEGORIES_LIST.NAME")))}function EB(t,e){if(1&t&&(jo(0,"td",18),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.name)}}function xB(t,e){1&t&&(jo(0,"th",17),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"CATEGORIES_LIST.RANK")))}function RB(t,e){if(1&t){const t=qo();jo(0,"td",18),Ma(1),jo(2,"button",19),Jo("click",function(){const e=ze(t).$implicit;return ea().updateCategory(e)}),jo(3,"mat-icon"),Ma(4,"edit"),Yo(),Yo(),Yo()}if(2&t){const t=e.$implicit;rr(1),Ea(t.rank)}}function DB(t,e){1&t&&No(0,"tr",20)}function PB(t,e){1&t&&No(0,"tr",21)}function LB(t,e){1&t&&(jo(0,"app-alert",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"CATEGORIES_PAGE.NO_FILTER_RESULTS"),"\n"))}let zB=(()=>{class t{constructor(t,e,i){this.guiAuthResolver=t,this.tableCheckbox=e,this.dialog=i,this.categories=[],this.selection=new Wk(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","name","rank"],this.pageSizeOptions=xx,this.page=new mu,this.refreshTable=new mu}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new SD(this.categories),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"rank":return t.rank.toString();default:return t[e]}}exportData(t){Hx(Fx(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>zx(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Lx(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}itemSelectionToggle(t){this.selection.toggle(t)}updateCategory(t){const e=Dx();e.width="400px",e.data=t,this.dialog.open(AB,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}}return t.\u0275fac=function(e){return new(e||t)(Ho(Zf),Ho(Xx),Ho(Ax))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-categories-list"]],viewQuery:function(t,e){if(1&t&&(xu(_F,7),xu(Yx,7)),2&t){let t;Eu(t=Du())&&(e.matSort=t.first),Eu(t=Du())&&(e.child=t.first)}},inputs:{categories:"categories",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page",refreshTable:"refreshTable"},features:[ue],decls:18,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","rank"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"perun-web-apps-table-wrapper",1),Jo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),jo(2,"table",2),Ko(3,3),Io(4,kB,1,0,"th",4),Io(5,TB,2,2,"td",5),Uo(),Ko(6,6),Io(7,CB,3,3,"th",7),Io(8,SB,2,1,"td",5),Uo(),Ko(9,8),Io(10,MB,3,3,"th",7),Io(11,EB,2,1,"td",9),Uo(),Ko(12,10),Io(13,xB,3,3,"th",7),Io(14,RB,5,1,"td",9),Uo(),Io(15,DB,1,0,"tr",11),Io(16,PB,1,0,"tr",12),Yo(),Yo(),Yo(),Io(17,LB,3,3,"app-alert",13)),2&t&&(Oo("hidden",0===e.dataSource.filteredData.length||0===e.categories.length),rr(1),Oo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),rr(1),Oo("dataSource",e.dataSource),rr(13),Oo("matHeaderRowDef",e.displayedColumns),rr(1),Oo("matRowDefColumns",e.displayedColumns),rr(1),Oo("ngIf",0===e.dataSource.filteredData.length&&0!==e.categories.length))},directives:[Yx,gD,_F,yD,_D,mD,vD,AD,Bh,wD,bD,jL,TF,ak,jE,kD,TD,EH],pipes:[ox],styles:[""]}),t})();function IB(t,e){if(1&t){const t=qo();jo(0,"button",8),Jo("click",function(){return ze(t),ea().addCategory()}),Ma(1),uu(2,"translate"),Yo()}2&t&&(rr(1),xa(" ",lu(2,1,"CATEGORIES_PAGE.CREATE")," "))}function FB(t,e){if(1&t){const t=qo();jo(0,"button",9),Jo("click",function(){return ze(t),ea().removeCategory()}),Ma(1),uu(2,"translate"),Yo()}2&t&&(Oo("disabled",!ea().selected.selected.length),rr(1),xa(" ",lu(2,2,"CATEGORIES_PAGE.REMOVE")," "))}function HB(t,e){1&t&&No(0,"mat-spinner",10)}const OB=function(){return["select","id","name","rank"]},BB=function(){return["name","rank"]};function jB(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-categories-list",11),Jo("refreshTable",function(){return ze(t),ea().refreshTable()})("page",function(e){return ze(t),ea().pageChanged(e)}),Yo()}if(2&t){const t=ea();Oo("categories",t.categories)("filterValue",t.filterValue)("displayedColumns",t.removeAuth?nu(5,OB):nu(6,BB))("pageSize",t.pageSize)("selection",t.selected)}}let YB=(()=>{class t{constructor(t,e,i,n){this.cabinetManagerService=t,this.tableConfigService=e,this.dialog=i,this.guiAuthResolver=n,this.categories=[],this.selected=new Wk(!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(t=>{this.categories=t,this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}addCategory(){const t=Dx();t.width="400px",t.data={},this.dialog.open(cB,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeCategory(){const t=Dx();t.width="400px",t.data=this.selected.selected,this.dialog.open(mB,t).afterClosed().subscribe(t=>{t&&(this.selected.clear(),this.refreshTable())})}}return t.\u0275fac=function(e){return new(e||t)(Ho(xf),Ho(uO),Ho(Ax),Ho(Zf))},t.\u0275cmp=Kt({type:t,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",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"categories","filterValue","displayedColumns","pageSize","selection","refreshTable","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"categories","filterValue","displayedColumns","pageSize","selection","refreshTable","page"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),jo(4,"perun-web-apps-refresh-button",2),Jo("refresh",function(){return e.refreshTable()}),Yo(),Io(5,IB,3,3,"button",3),Io(6,FB,3,4,"button",4),jo(7,"perun-web-apps-immediate-filter",5),Jo("filter",function(t){return e.applyFilter(t)}),Yo(),Io(8,HB,1,0,"mat-spinner",6),Io(9,jB,1,7,"perun-web-apps-categories-list",7),Yo()),2&t&&(rr(2),Ea(lu(3,6,"CATEGORIES_PAGE.TITLE")),rr(3),Oo("ngIf",e.addAuth),rr(1),Oo("ngIf",e.removeAuth),rr(1),Oo("placeholder","CATEGORIES_PAGE.FILTER"),rr(1),Oo("ngIf",e.loading),rr(1),Oo("ngIf",e.categories&&!e.loading))},directives:[dO,Bh,wB,ak,hR,zB],pipes:[ox],styles:[""]}),t})();function NB(t,e){1&t&&(jo(0,"th",14),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATION_SYSTEMS_LIST.ID")))}function KB(t,e){if(1&t&&(jo(0,"td",15),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.id)}}function UB(t,e){1&t&&(jo(0,"th",14),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATION_SYSTEMS_LIST.FRIENDLY_NAME")))}function VB(t,e){if(1&t&&(jo(0,"td",16),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.friendlyName)}}function qB(t,e){1&t&&(jo(0,"th",14),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATION_SYSTEMS_LIST.LOGIN_NAMESPACE")))}function $B(t,e){if(1&t&&(jo(0,"td",16),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea("empty"===t.loginNamespace?"":t.loginNamespace)}}function WB(t,e){1&t&&(jo(0,"th",14),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATION_SYSTEMS_LIST.URL")))}function GB(t,e){if(1&t&&(jo(0,"td",16),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea("empty"===t.url?"":t.url)}}function JB(t,e){1&t&&(jo(0,"th",14),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATION_SYSTEMS_LIST.TYPE")))}function ZB(t,e){if(1&t&&(jo(0,"td",16),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea("empty"===t.type?"":t.type)}}function QB(t,e){1&t&&No(0,"tr",17)}function XB(t,e){1&t&&No(0,"tr",18)}function tj(t,e){1&t&&(jo(0,"app-alert",19),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"NO_FILTER_RESULTS"),"\n"))}let ej=(()=>{class t{constructor(){this.publicationSystems=[],this.pageSize=10,this.displayedColumns=["id","friendlyName","loginNamespace","url","type"],this.pageSizeOptions=xx,this.page=new mu}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new SD(this.publicationSystems),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"friendlyName":return t.friendlyName;case"url":return t.url;case"loginNamespace":return t.loginNamespace;case"type":return t.type;default:return t[e]}}exportData(t){Hx(Fx(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>zx(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Lx(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-publication-systems-list"]],viewQuery:function(t,e){if(1&t&&(xu(_F,7),xu(Yx,7)),2&t){let t;Eu(t=Du())&&(e.matSort=t.first),Eu(t=Du())&&(e.child=t.first)}},inputs:{publicationSystems:"publicationSystems",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[ue],decls:21,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["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(t,e){1&t&&(jo(0,"div",0),jo(1,"perun-web-apps-table-wrapper",1),Jo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),jo(2,"table",2),Ko(3,3),Io(4,NB,3,3,"th",4),Io(5,KB,2,1,"td",5),Uo(),Ko(6,6),Io(7,UB,3,3,"th",4),Io(8,VB,2,1,"td",7),Uo(),Ko(9,8),Io(10,qB,3,3,"th",4),Io(11,$B,2,1,"td",7),Uo(),Ko(12,9),Io(13,WB,3,3,"th",4),Io(14,GB,2,1,"td",7),Uo(),Ko(15,10),Io(16,JB,3,3,"th",4),Io(17,ZB,2,1,"td",7),Uo(),Io(18,QB,1,0,"tr",11),Io(19,XB,1,0,"tr",12),Yo(),Yo(),Yo(),Io(20,tj,3,3,"app-alert",13)),2&t&&(Oo("hidden",0===e.dataSource.filteredData.length||0===e.publicationSystems.length),rr(1),Oo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),rr(1),Oo("dataSource",e.dataSource),rr(16),Oo("matHeaderRowDef",e.displayedColumns),rr(1),Oo("matRowDefColumns",e.displayedColumns),rr(1),Oo("ngIf",0===e.dataSource.filteredData.length&&0!==e.publicationSystems.length))},directives:[Yx,gD,_F,yD,_D,mD,vD,AD,Bh,wD,TF,bD,kD,TD,EH],pipes:[ox],styles:[""]}),t})();function ij(t,e){1&t&&No(0,"mat-spinner",6)}function nj(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-publication-systems-list",7),Jo("page",function(e){return ze(t),ea().pageChanged(e)}),Yo()}if(2&t){const t=ea();Oo("publicationSystems",t.publicationSystems)("filterValue",t.filterValue)("pageSize",t.pageSize)}}let sj=(()=>{class t{constructor(t,e){this.cabinetManagerService=t,this.tableConfigService=e,this.publicationSystems=[],this.filterValue="",this.tableId="5"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetManagerService.getPublicationSystems().subscribe(t=>{this.publicationSystems=t,this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(Ho(xf),Ho(uO))},t.\u0275cmp=Kt({type:t,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","pageSize","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"publicationSystems","filterValue","pageSize","page"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),jo(4,"perun-web-apps-refresh-button",2),Jo("refresh",function(){return e.refreshTable()}),Yo(),jo(5,"perun-web-apps-immediate-filter",3),Jo("filter",function(t){return e.applyFilter(t)}),Yo(),Io(6,ij,1,0,"mat-spinner",4),Io(7,nj,1,3,"perun-web-apps-publication-systems-list",5),Yo()),2&t&&(rr(2),Ea(lu(3,4,"PUBLICATION_SYSTEMS_PAGE.TITLE")),rr(3),Oo("placeholder","PUBLICATION_SYSTEMS_PAGE.FILTER"),rr(1),Oo("ngIf",e.loading),rr(1),Oo("ngIf",e.publicationSystems&&!e.loading))},directives:[dO,wB,Bh,hR,ej],pipes:[ox],styles:[""]}),t})();function rj(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-publications-list",11),Jo("page",function(e){return ze(t),ea(2).pageChanged(e)}),Yo()}if(2&t){const t=ea(2);Oo("publications",t.publications)("selection",t.selected)("pageSize",t.pageSize)("routerPath","/authors/"+t.author.id+"/publication")}}function oj(t,e){if(1&t){const t=qo();jo(0,"div"),jo(1,"h5"),Ma(2),uu(3,"userFullName"),uu(4,"translate"),Yo(),jo(5,"div",6),jo(6,"perun-web-apps-refresh-button",7),Jo("refresh",function(){return ze(t),ea().refreshTable()}),Yo(),jo(7,"button",8),Jo("click",function(){return ze(t),ea().removePublication()}),Ma(8),uu(9,"translate"),Yo(),jo(10,"perun-web-apps-publication-filter",9),Jo("filteredPublication",function(e){return ze(t),ea().filterPublication(e)}),Yo(),Yo(),Io(11,rj,1,4,"perun-web-apps-publications-list",10),Yo()}if(2&t){const t=ea();rr(2),Ra("",lu(3,5,t.author),"",lu(4,7,"AUTHOR_DETAIL.TITLE"),""),rr(5),Oo("disabled",0===t.selected.selected.length),rr(1),xa(" ",lu(9,9,"AUTHOR_DETAIL.REMOVE")," "),rr(3),Oo("ngIf",!t.loading)}}function aj(t,e){1&t&&No(0,"mat-spinner",12)}let cj=(()=>{class t{constructor(t,e,i,n,s){this.route=t,this.cabinetService=e,this.tableConfigService=i,this.userService=n,this.dialog=s,this.selected=new Wk(!0,[]),this.tableId=hO}ngOnInit(){this.initLoading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.params.subscribe(t=>{this.userService.getUserById(t.authorId).subscribe(t=>{this.author=t,this.initLoading=!1,this.refreshTable()})})}removePublication(){const t=Dx();t.width="500px",t.data=this.selected.selected,this.dialog.open(oO,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(null,null,null,null,null,null,null,null,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}filterPublication(t){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(t.title,null,null,null,null,t.category,+t.startYear,+t.endYear,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(Ho(Wg),Ho(xf),Ho(uO),Ho(Nf),Ho(Ax))},t.\u0275cmp=Kt({type:t,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","pageSize","routerPath","page",4,"ngIf"],[3,"publications","selection","pageSize","routerPath","page"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),jo(2,"mat-icon",2),Ma(3,"assignment_ind"),Yo(),jo(4,"span",3),Ma(5),uu(6,"translate"),Yo(),Yo(),Io(7,oj,12,11,"div",4),Io(8,aj,1,0,"mat-spinner",5),Yo()),2&t&&(rr(5),Ea(lu(6,3,"AUTHORS_PAGE.TITLE")),rr(2),Oo("ngIf",!e.initLoading),rr(1),Oo("ngIf",e.loading||e.initLoading))},directives:[jE,Bh,dO,ak,kO,iO,hR],pipes:[ox,xH],styles:[""]}),t})();const uj=function(){return["id","name","organization","email","add"]};function lj(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-authors-list",14),Jo("addAuthor",function(e){return ze(t),ea(3).addAuthor(e)})("page",function(e){return ze(t),ea(3).pageChangedAuthors(e)}),Yo()}if(2&t){const t=ea(3);Oo("authors",t.authors)("disableRouting",!0)("pageSize",t.pageSizeAuthors)("displayedColumns",nu(4,uj))}}function hj(t,e){1&t&&(jo(0,"app-alert",15),Ma(1),uu(2,"translate"),Yo()),2&t&&(Oo("alert_type","info"),rr(1),xa(" ",lu(2,2,"DIALOGS.ADD_AUTHORS.SEARCH_INFO")," "))}function dj(t,e){if(1&t&&(jo(0,"div"),Io(1,lj,1,5,"perun-web-apps-authors-list",13),Io(2,hj,3,4,"app-alert",12),Yo()),2&t){const t=ea(2);rr(1),Oo("ngIf",t.firstSearchDone),rr(1),Oo("ngIf",!t.firstSearchDone)}}function fj(t,e){1&t&&No(0,"mat-spinner",16)}const pj=function(){return["id","name","organization","email","remove"]};function gj(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-authors-list",18),Jo("removeAuthor",function(e){return ze(t),ea(3).removeAuthor(e)})("page",function(e){return ze(t),ea(3).pageChangedAuthorsToAdd(e)}),Yo()}if(2&t){const t=ea(3);Oo("reloadTable",t.reloadTable)("authors",t.authorsToAdd)("disableRouting",!0)("pageSize",t.pageSizeAddAuthors)("displayedColumns",nu(5,pj))}}function mj(t,e){if(1&t&&(jo(0,"div"),Io(1,gj,1,6,"perun-web-apps-authors-list",17),Yo()),2&t){const t=ea(2);rr(1),Oo("ngIf",t.firstSearchDone)}}function _j(t,e){1&t&&(jo(0,"app-alert",15),Ma(1),uu(2,"translate"),Yo()),2&t&&(Oo("alert_type","warn"),rr(1),xa(" ",lu(2,2,"DIALOGS.ADD_AUTHORS.NO_AUTHORS_TO_ADD")," "))}function yj(t,e){if(1&t&&(jo(0,"div"),Io(1,dj,3,2,"div",6),Io(2,fj,1,0,"mat-spinner",7),jo(3,"h2",11),Ma(4),uu(5,"translate"),Yo(),Io(6,mj,2,1,"div",6),Io(7,_j,3,4,"app-alert",12),Yo()),2&t){const t=ea();rr(1),Oo("ngIf",!t.searchLoading),rr(1),Oo("ngIf",t.searchLoading),rr(2),Ea(lu(5,5,"DIALOGS.ADD_AUTHORS.AUTHORS_TO_ADD")),rr(2),Oo("ngIf",t.firstSearchDone&&0!==t.authorsToAdd.length),rr(1),Oo("ngIf",0===t.authorsToAdd.length)}}function wj(t,e){1&t&&No(0,"mat-spinner",16)}let bj=(()=>{class t{constructor(t,e,i,n,s,r){this.dialogRef=t,this.data=e,this.notificator=i,this.tableConfigService=n,this.cabinetService=s,this.translate=r,this.loading=!1,this.searchLoading=!1,this.firstSearchDone=!1,this.authors=[],this.alreadyAddedAuthors=[],this.authorsToAdd=[],this.tableIdAuthors=lO,this.selection=new Wk(!1,[]),this.reloadTable=!1,r.get("DIALOGS.ADD_AUTHORS.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),this.publicationId=e.publicationId,this.alreadyAddedAuthors=e.alreadyAddedAuthors}ngOnInit(){this.searchControl=new LS("",[UC.required,UC.pattern(".*[\\S]+.*")]),this.pageSizeAuthors=5,this.pageSizeAddAuthors=5}onSearchByString(){this.searchLoading=!0;const t=[...this.alreadyAddedAuthors,...this.authorsToAdd];this.cabinetService.findNewAuthors(this.searchControl.value).subscribe(e=>{e=e.filter(e=>t.map(t=>t.id).indexOf(e.id)<=-1),this.authors=e,this.firstSearchDone=!0,this.searchLoading=!1},()=>{this.searchLoading=!1})}onAdd(){if(this.loading=!0,this.authorsToAdd.length){const t=this.authorsToAdd.pop();this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publicationId,userId:t.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(t){this.authors=this.authors.filter(e=>e!==t),this.authorsToAdd.push(t),this.reloadTable=!this.reloadTable}removeAuthor(t){this.authorsToAdd=this.authorsToAdd.filter(e=>e!==t)}pageChangedAuthors(t){this.pageSizeAuthors=t.pageSize,this.tableConfigService.setTablePageSize(this.tableIdAuthors,t.pageSize)}pageChangedAuthorsToAdd(t){this.pageSizeAddAuthors=t.pageSize,this.tableConfigService.setTablePageSize(this.tableIdAuthors,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(Ho(gx),Ho(_x),Ho(Gx),Ho(uO),Ho(xf),Ho(rx))},t.\u0275cmp=Kt({type:t,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"],[3,"alert_type",4,"ngIf"],[3,"authors","disableRouting","pageSize","displayedColumns","addAuthor","page",4,"ngIf"],[3,"authors","disableRouting","pageSize","displayedColumns","addAuthor","page"],[3,"alert_type"],[1,"ml-auto","mr-auto"],[3,"reloadTable","authors","disableRouting","pageSize","displayedColumns","removeAuthor","page",4,"ngIf"],[3,"reloadTable","authors","disableRouting","pageSize","displayedColumns","removeAuthor","page"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),jo(4,"div",2),jo(5,"mat-form-field",3),jo(6,"label"),jo(7,"input",4),Jo("keyup.enter",function(){return e.onSearchByString()}),uu(8,"translate"),Yo(),Yo(),jo(9,"mat-error"),Ma(10),uu(11,"translate"),Yo(),Yo(),jo(12,"button",5),Jo("click",function(){return e.onSearchByString()}),jo(13,"mat-icon"),Ma(14,"search"),Yo(),Yo(),Io(15,yj,8,7,"div",6),Yo(),Io(16,wj,1,0,"mat-spinner",7),jo(17,"div",8),jo(18,"button",9),Jo("click",function(){return e.onCancel()}),Ma(19),uu(20,"translate"),Yo(),jo(21,"button",10),Jo("click",function(){return e.onAdd()}),Ma(22),uu(23,"translate"),Yo(),Yo(),Yo()),2&t&&(rr(2),Ea(lu(3,10,"DIALOGS.ADD_AUTHORS.TITLE")),rr(5),ra("placeholder",lu(8,12,"DIALOGS.ADD_AUTHORS.SEARCH_PLACEHOLDER")),Oo("formControl",e.searchControl),rr(3),xa(" ",lu(11,14,"DIALOGS.ADD_AUTHORS.EMPTY_SEARCH_MESSAGE")," "),rr(2),Oo("disabled",e.searchLoading||""===e.searchControl.value.trim()),rr(3),Oo("ngIf",!e.loading),rr(1),Oo("ngIf",e.loading),rr(3),xa(" ",lu(20,16,"DIALOGS.ADD_AUTHORS.CANCEL")," "),rr(2),Oo("disabled",0===e.authorsToAdd.length||e.loading),rr(1),xa(" ",lu(23,18,"DIALOGS.ADD_AUTHORS.ADD")," "))},directives:[Tx,Cx,xC,vR,OC,uS,qS,fC,ak,jE,Bh,Sx,eB,EH,hR],pipes:[ox],styles:[".top-margin[_ngcontent-%COMP%]{margin-top:15px}.adjust-width[_ngcontent-%COMP%]{width:300px}"]}),t})();function vj(t,e){if(1&t){const t=qo();jo(0,"button",6),Jo("click",function(){return ze(t),ea().onAddAuthors()}),Ma(1),uu(2,"translate"),Yo()}2&t&&(rr(1),xa(" ",lu(2,1,"PUBLICATION_DETAIL.ADD")," "))}function Aj(t,e){if(1&t){const t=qo();jo(0,"button",7),Jo("click",function(){return ze(t),ea().onRemoveAuthors()}),Ma(1),uu(2,"translate"),Yo()}if(2&t){const t=ea();Oo("disabled",0===t.selection.selected.length||t.publication.locked),rr(1),xa(" ",lu(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function kj(t,e){1&t&&No(0,"mat-spinner",8)}const Tj=function(){return["id","name","organization","email"]},Cj=function(){return["select","id","name","organization","email"]};function Sj(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-authors-list",9),Jo("page",function(e){return ze(t),ea().pageChanged(e)}),Yo()}if(2&t){const t=ea();Oo("authors",t.publication.authors)("selection",t.selection)("filterValue",t.filterValue)("pageSize",t.pageSize)("displayedColumns",t.publication.locked?nu(5,Tj):nu(6,Cj))}}let Mj=(()=>{class t{constructor(t,e,i,n,s){this.dialog=t,this.cabinetService=e,this.notificator=i,this.translate=n,this.tableConfigService=s,this.selection=new Wk(!0,[]),this.filterValue="",this.loading=!1,this.tableId=lO}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refresh()}refresh(){this.loading=!0,this.cabinetService.findAuthorsByPublicationId(this.publication.id).subscribe(t=>{this.publication.authors=t,this.selection.clear(),this.loading=!1})}onAddAuthors(){const t=Dx();t.width="800px",t.data={publicationId:this.publication.id,alreadyAddedAuthors:this.publication.authors},this.dialog.open(bj,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.refresh())})}onRemoveAuthors(){const t=Dx();t.width="800px",t.data={items:this.selection.selected.map(t=>`${t.titleBefore?t.titleBefore:""} ${t.firstName?t.firstName:""} ${t.lastName?t.lastName:""} ${t.titleAfter?t.titleAfter:""}`),title:"DIALOGS.REMOVE_AUTHORS.TITLE",description:"DIALOGS.REMOVE_AUTHORS.DESCRIPTION",theme:"user-theme"},this.dialog.open(LD,t).afterClosed().subscribe(t=>{t&&this.removeAuthors(this.selection.selected)})}removeAuthors(t){if(this.loading=!0,t.length){const e=t.pop();this.cabinetService.deleteAuthorship(this.publication.id,e.id).subscribe(()=>{this.removeAuthors(t)},()=>this.loading=!1)}else this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_AUTHORS.SUCCESS_MESSAGE")),this.selection.clear(),this.refresh()}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ax),Ho(xf),Ho(Gx),Ho(rx),Ho(uO))},t.\u0275cmp=Kt({type:t,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",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-4",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","selection","filterValue","pageSize","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-4",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"authors","selection","filterValue","pageSize","displayedColumns","page"]],template:function(t,e){1&t&&(jo(0,"div",0),Io(1,vj,3,3,"button",1),Io(2,Aj,3,4,"button",2),jo(3,"perun-web-apps-immediate-filter",3),Jo("filter",function(t){return e.applyFilter(t)}),Yo(),Io(4,kj,1,0,"mat-spinner",4),Io(5,Sj,1,7,"perun-web-apps-authors-list",5),Yo()),2&t&&(rr(1),Oo("ngIf",!e.publication.locked),rr(1),Oo("ngIf",!e.publication.locked),rr(1),Oo("placeholder","PUBLICATION_DETAIL.FILTER"),rr(1),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[Bh,wB,ak,hR,eB],pipes:[ox],styles:[""]}),t})();function Ej(t,e){if(1&t){const t=qo();jo(0,"th",15),jo(1,"mat-checkbox",16),Jo("change",function(e){ze(t);const i=ea();return e?i.masterToggle():null}),Yo(),Yo()}if(2&t){const t=ea();rr(1),Oo("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function xj(t,e){if(1&t){const t=qo();jo(0,"td",17),jo(1,"mat-checkbox",18),Jo("change",function(e){const i=ze(t).$implicit,n=ea();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),Yo(),Yo()}if(2&t){const t=e.$implicit,i=ea();rr(1),Oo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function Rj(t,e){1&t&&(jo(0,"th",19),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")))}function Dj(t,e){if(1&t&&(jo(0,"td",17),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),xa(" ",t.id," ")}}function Pj(t,e){1&t&&(jo(0,"th",19),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")))}function Lj(t,e){if(1&t&&(jo(0,"td",20),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.name)}}function zj(t,e){1&t&&(jo(0,"th",19),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")))}function Ij(t,e){if(1&t&&(jo(0,"td",20),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.contact)}}function Fj(t,e){1&t&&(jo(0,"th",19),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")))}function Hj(t,e){if(1&t&&(jo(0,"td",20),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.type)}}function Oj(t,e){1&t&&No(0,"tr",21)}function Bj(t,e){1&t&&No(0,"tr",22)}function jj(t,e){1&t&&(jo(0,"app-alert",23),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS")))}function Yj(t,e){1&t&&(jo(0,"app-alert",23),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS")))}let Nj=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.owners=[],this.selection=new Wk(!0,[]),this.pageSize=10,this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.page=new mu,this.pageSizeOptions=xx}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"contact":return t.contact;case"type":return t.type;default:return""}}exportData(t){Hx(Fx(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>zx(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Lx(t,e,this.getDataForColumn,this),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(t=>"id"!==t)),this.dataSource=new SD(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(Ho(Zf),Ho(Xx))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(t,e){if(1&t&&(xu(Yx,7),xu(_F,7)),2&t){let t;Eu(t=Du())&&(e.child=t.first),Eu(t=Du())&&(e.matSort=t.first)}},inputs:{owners:"owners",selection:"selection",pageSize:"pageSize",filterValue:"filterValue",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[ue],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"perun-web-apps-table-wrapper",1),Jo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),jo(2,"table",2),Ko(3,3),Io(4,Ej,2,3,"th",4),Io(5,xj,2,2,"td",5),Uo(),Ko(6,6),Io(7,Rj,3,3,"th",7),Io(8,Dj,2,1,"td",5),Uo(),Ko(9,8),Io(10,Pj,3,3,"th",7),Io(11,Lj,2,1,"td",9),Uo(),Ko(12,10),Io(13,zj,3,3,"th",7),Io(14,Ij,2,1,"td",9),Uo(),Ko(15,11),Io(16,Fj,3,3,"th",7),Io(17,Hj,2,1,"td",9),Uo(),Io(18,Oj,1,0,"tr",12),Io(19,Bj,1,0,"tr",13),Yo(),Yo(),Yo(),Io(20,jj,3,3,"app-alert",14),Io(21,Yj,3,3,"app-alert",14)),2&t&&(Oo("hidden",!e.dataSource.filteredData.length),rr(1),Oo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),rr(1),Oo("dataSource",e.dataSource),rr(16),Oo("matHeaderRowDef",e.displayedColumns),rr(1),Oo("matRowDefColumns",e.displayedColumns),rr(1),Oo("ngIf",!e.owners.length),rr(1),Oo("ngIf",!e.dataSource.filteredData.length&&e.owners.length))},directives:[Yx,gD,_F,yD,_D,mD,vD,AD,Bh,wD,jL,bD,TF,kD,TD,EH],pipes:[ox],styles:[""]}),t})();function Kj(t,e){1&t&&No(0,"mat-spinner",4)}const Uj=function(){return["select","id","name","contact"]};function Vj(t,e){if(1&t){const t=qo();jo(0,"div"),jo(1,"div",5),jo(2,"perun-web-apps-immediate-filter",6),Jo("filter",function(e){return ze(t),ea().filterValue=e}),Yo(),jo(3,"perun-web-apps-owners-list",7),Jo("page",function(e){return ze(t),ea().pageChanged(e)}),Yo(),Yo(),jo(4,"div",8),jo(5,"button",9),Jo("click",function(){return ze(t),ea().onCancel()}),Ma(6),uu(7,"translate"),Yo(),jo(8,"button",10),Jo("click",function(){return ze(t),ea().onSubmit()}),Ma(9),uu(10,"translate"),Yo(),Yo(),Yo()}if(2&t){const t=ea();rr(2),Oo("placeholder","DIALOGS.ADD_THANKS.FILTER"),rr(1),Oo("owners",t.owners)("filterValue",t.filterValue)("pageSize",t.pageSize)("displayedColumns",nu(13,Uj))("selection",t.selected),rr(3),xa(" ",lu(7,9,"DIALOGS.ADD_THANKS.CANCEL")," "),rr(2),Oo("disabled",0===t.selected.selected.length||t.loading),rr(1),xa(" ",lu(10,11,"DIALOGS.ADD_THANKS.ADD")," ")}}let qj=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this.dialogRef=t,this.data=e,this.ownersManagerService=i,this.storeService=n,this.tableConfigService=s,this.notificator=r,this.translate=o,this.cabinetManagerService=a,this.selected=new Wk(!0,[]),this.tableId="73"}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId);const t=this.storeService.get("allowed_owners_for_thanks");this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=0!==t.length?e.filter(e=>t.indexOf(e.id)>-1):e,this.owners=this.owners.filter(t=>this.data.thanks.map(t=>t.ownerId).indexOf(t.id)<=-1),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,0===this.selected.selected.length?this.translate.get("DIALOGS.ADD_THANKS.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),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)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(Ho(gx),Ho(_x),Ho(Ff),Ho(Kx),Ho(uO),Ho(Gx),Ho(rx),Ho(xf))},t.\u0275cmp=Kt({type:t,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","pageSize","displayedColumns","selection","page"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),Io(4,Kj,1,0,"mat-spinner",2),Io(5,Vj,11,14,"div",3),Yo()),2&t&&(rr(2),Ea(lu(3,3,"DIALOGS.ADD_THANKS.TITLE")),rr(2),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[Tx,Bh,hR,Cx,wB,Nj,Sx,ak],pipes:[ox],styles:[""]}),t})();function $j(t,e){if(1&t){const t=qo();jo(0,"th",14),jo(1,"mat-checkbox",15),Jo("change",function(e){ze(t);const i=ea();return e?i.masterToggle():null}),Yo(),Yo()}if(2&t){const t=ea();rr(1),Oo("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Wj(t,e){if(1&t){const t=qo();jo(0,"td",16),jo(1,"mat-checkbox",17),Jo("change",function(e){const i=ze(t).$implicit,n=ea();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),Yo(),Yo()}if(2&t){const t=e.$implicit,i=ea();rr(1),Oo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function Gj(t,e){1&t&&(jo(0,"th",18),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"THANKS_LIST.ID")))}function Jj(t,e){if(1&t&&(jo(0,"td",16),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.ownerId)}}function Zj(t,e){1&t&&(jo(0,"th",18),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"THANKS_LIST.NAME")))}function Qj(t,e){if(1&t&&(jo(0,"td",19),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.ownerName)}}function Xj(t,e){1&t&&(jo(0,"th",18),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"THANKS_LIST.CREATED_BY")))}function tY(t,e){if(1&t&&(jo(0,"td",19),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.createdBy)}}function eY(t,e){1&t&&No(0,"tr",20)}function iY(t,e){1&t&&No(0,"tr",21)}function nY(t,e){1&t&&(jo(0,"app-alert",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(Oo("alert_type","warn"),rr(1),xa(" ",lu(2,2,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function sY(t,e){1&t&&(jo(0,"app-alert",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(Oo("alert_type","warn"),rr(1),xa(" ",lu(2,2,"THANKS_LIST.NO_THANKS"),"\n"))}let rY=(()=>{class t{constructor(t){this.tableCheckbox=t,this.thanks=[],this.filterValue="",this.pageSize=10,this.displayedColumns=["select","id","name","createdBy"],this.pageSizeOptions=xx,this.selection=new Wk(!0,[]),this.page=new mu}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new SD(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.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}getDataForColumn(t,e){switch(e){case"id":return t.ownerId.toString();case"name":return t.ownerName;default:return t[e]}}exportData(t){Hx(Fx(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>zx(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Lx(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(Ho(Xx))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-thanks-list"]],viewQuery:function(t,e){if(1&t&&(xu(_F,7),xu(Yx,7)),2&t){let t;Eu(t=Du())&&(e.matSort=t.first),Eu(t=Du())&&(e.child=t.first)}},inputs:{thanks:"thanks",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions",selection:"selection"},outputs:{page:"page"},features:[ue],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","createdBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],[3,"alert_type"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"perun-web-apps-table-wrapper",1),Jo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),jo(2,"table",2),Ko(3,3),Io(4,$j,2,3,"th",4),Io(5,Wj,2,2,"td",5),Uo(),Ko(6,6),Io(7,Gj,3,3,"th",7),Io(8,Jj,2,1,"td",5),Uo(),Ko(9,8),Io(10,Zj,3,3,"th",7),Io(11,Qj,2,1,"td",9),Uo(),Ko(12,10),Io(13,Xj,3,3,"th",7),Io(14,tY,2,1,"td",9),Uo(),Io(15,eY,1,0,"tr",11),Io(16,iY,1,0,"tr",12),Yo(),Yo(),Yo(),Io(17,nY,3,4,"app-alert",13),Io(18,sY,3,4,"app-alert",13)),2&t&&(Oo("hidden",0===e.thanks.length||0===e.dataSource.filteredData.length),rr(1),Oo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),rr(1),Oo("dataSource",e.dataSource),rr(13),Oo("matHeaderRowDef",e.displayedColumns),rr(1),Oo("matRowDefColumns",e.displayedColumns),rr(1),Oo("ngIf",0!==e.thanks.length&&0===e.dataSource.filteredData.length),rr(1),Oo("ngIf",0===e.thanks.length))},directives:[Yx,gD,_F,yD,_D,mD,vD,AD,Bh,wD,jL,bD,TF,kD,TD,EH],pipes:[ox],styles:[""]}),t})();function oY(t,e){if(1&t){const t=qo();jo(0,"button",6),Jo("click",function(){return ze(t),ea().onAddThanks()}),Ma(1),uu(2,"translate"),Yo()}2&t&&(rr(1),xa(" ",lu(2,1,"PUBLICATION_DETAIL.ADD")," "))}function aY(t,e){if(1&t){const t=qo();jo(0,"button",7),Jo("click",function(){return ze(t),ea().onRemoveThanks()}),Ma(1),uu(2,"translate"),Yo()}2&t&&(Oo("disabled",0===ea().selection.selected.length),rr(1),xa(" ",lu(2,2,"PUBLICATION_DETAIL.REMOVE")," "))}function cY(t,e){1&t&&No(0,"mat-spinner",8)}const uY=function(){return["id","name","createdBy"]},lY=function(){return["select","id","name","createdBy"]};function hY(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-thanks-list",9),Jo("page",function(e){return ze(t),ea().pageChanged(e)}),Yo()}if(2&t){const t=ea();Oo("thanks",t.publication.thanks)("filterValue",t.filterValue)("pageSize",t.pageSize)("displayedColumns",t.publication.locked?nu(5,uY):nu(6,lY))("selection",t.selection)}}let dY=(()=>{class t{constructor(t,e,i,n,s){this.dialog=t,this.cabinetService=e,this.notificator=i,this.translate=n,this.tableConfigService=s,this.selection=new Wk(!0,[]),this.tableId="70",this.loading=!1,this.filterValue=""}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refresh()}refresh(){this.loading=!0,this.cabinetService.findPublicationById(this.publication.id).subscribe(t=>{this.publication=t,this.selection.clear(),this.loading=!1})}onAddThanks(){const t=Dx();t.width="800px",t.data=this.publication,this.dialog.open(qj,t).afterClosed().subscribe(t=>{t&&this.refresh()})}onRemoveThanks(){const t=Dx();t.width="450px",t.data={items:this.selection.selected.map(t=>t.ownerName),title:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_TITLE",description:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_DESCRIPTION",theme:"user-theme"},this.dialog.open(LD,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.removeThank())})}removeThank(){0===this.selection.selected.length?this.translate.get("PUBLICATION_DETAIL.REMOVE_THANKS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.refresh()}):this.cabinetService.deleteThanks(this.selection.selected.pop().id).subscribe(()=>{this.removeThank()})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ax),Ho(xf),Ho(Gx),Ho(rx),Ho(uO))},t.\u0275cmp=Kt({type:t,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",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-4",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"thanks","filterValue","pageSize","displayedColumns","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-4",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"thanks","filterValue","pageSize","displayedColumns","selection","page"]],template:function(t,e){1&t&&(jo(0,"div",0),Io(1,oY,3,3,"button",1),Io(2,aY,3,4,"button",2),jo(3,"perun-web-apps-immediate-filter",3),Jo("filter",function(t){return e.applyFilter(t)}),Yo(),Io(4,cY,1,0,"mat-spinner",4),Io(5,hY,1,7,"perun-web-apps-thanks-list",5),Yo()),2&t&&(rr(1),Oo("ngIf",!e.publication.locked),rr(1),Oo("ngIf",!e.publication.locked),rr(1),Oo("placeholder","PUBLICATION_DETAIL.FILTER"),rr(1),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[Bh,wB,ak,hR,rY],pipes:[ox],styles:[""]}),t})();function fY(t,e){1&t&&No(0,"mat-spinner",2)}function pY(t,e){if(1&t&&(jo(0,"h3",15),Ma(1),Yo()),2&t){const t=ea(2);rr(1),Ea(t.publication.title)}}function gY(t,e){if(1&t){const t=qo();jo(0,"button",16),Jo("click",function(){ze(t);const e=ea(2);return e.editing=!e.editing}),uu(1,"translate"),jo(2,"mat-icon",17),Ma(3,"edit"),Yo(),Yo()}2&t&&ra("matTooltip",lu(1,1,"PUBLICATION_DETAIL.LIST.EDIT"))}function mY(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"PUBLICATION_DETAIL.LIST.EMPTY_ERROR")," "))}function _Y(t,e){if(1&t&&(jo(0,"mat-form-field",18),No(1,"textarea",19),Io(2,mY,3,3,"mat-error",1),Yo()),2&t){const t=ea(2);rr(1),Oo("formControl",t.titleControl),rr(1),Oo("ngIf",t.titleControl.invalid)}}function yY(t,e){if(1&t){const t=qo();jo(0,"button",20),Jo("click",function(){return ze(t),ea(2).save()}),uu(1,"translate"),jo(2,"mat-icon",17),Ma(3,"save"),Yo(),Yo()}if(2&t){const t=ea(2);ra("matTooltip",lu(1,2,"PUBLICATION_DETAIL.LIST.SAVE")),Oo("disabled",t.titleControl.invalid)}}function wY(t,e){1&t&&No(0,"th",21)}function bY(t,e){if(1&t&&(jo(0,"td",22),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),xa(" ",t.key,": ")}}function vY(t,e){1&t&&No(0,"th",21)}function AY(t,e){if(1&t&&(jo(0,"span"),Ma(1),jo(2,"span",24),Ma(3),uu(4,"translate"),Yo(),Ma(5),jo(6,"span",24),Ma(7),uu(8,"translate"),Yo(),Ma(9),Yo()),2&t){const t=ea().$implicit,e=ea(2);rr(1),xa(" ",t.value," / "),rr(2),xa("",lu(4,5,"PUBLICATION_DETAIL.LIST.EXT_ID"),":"),rr(2),xa(" ",e.publication.externalId," "),rr(2),xa("",lu(8,7,"PUBLICATION_DETAIL.LIST.SYSTEM"),":"),rr(2),xa(" ",e.publication.pubSystemName," ")}}function kY(t,e){if(1&t&&(jo(0,"span"),Ma(1),uu(2,"date"),Yo()),2&t){const t=ea().$implicit;rr(1),xa(" ",hu(2,1,t.value,"dd/MM/yyyy")," ")}}function TY(t,e){if(1&t&&(jo(0,"span"),Ma(1),Yo()),2&t){const t=ea().$implicit;rr(1),xa(" ",t.value," ")}}function CY(t,e){if(1&t&&(jo(0,"span"),Ma(1),Yo()),2&t){const t=ea(3).$implicit;rr(1),xa(" ",t.value," ")}}function SY(t,e){if(1&t&&(jo(0,"span"),Io(1,CY,2,1,"span",1),Yo()),2&t){const t=ea(2).$implicit;rr(1),Oo("ngIf","Id / Origin"!==t.key&&"Create date"!==t.key&&"Created by"!==t.key)}}function MY(t,e){1&t&&(jo(0,"span"),Ma(1," - "),Yo())}function EY(t,e){if(1&t&&(jo(0,"div"),Io(1,SY,2,1,"span",1),Io(2,MY,2,0,"span",1),Yo()),2&t){const t=ea().$implicit;rr(1),Oo("ngIf",null!==t.value&&""!==t.value),rr(1),Oo("ngIf",null===t.value||""===t.value)}}function xY(t,e){if(1&t){const t=qo();jo(0,"mat-form-field",26),Jo("click",function(){return ze(t),Fo(7).open()}),jo(1,"mat-label"),Ma(2),uu(3,"translate"),Yo(),No(4,"input",27),No(5,"mat-datepicker-toggle",28),jo(6,"mat-datepicker",29,30),Jo("yearSelected",function(e){ze(t);const i=Fo(7);return ea(4).chosenYearHandler(e,i)}),Yo(),Yo()}if(2&t){const t=Fo(7),e=ea(4);rr(2),Ea(lu(3,5,"PUBLICATION_DETAIL.LIST.YEAR")),rr(2),Oo("max",e.maxYear)("matDatepicker",t)("formControl",e.yearControl),rr(1),Oo("for",t)}}function RY(t,e){if(1&t&&(jo(0,"mat-option",33),Ma(1),Yo()),2&t){const t=e.$implicit;Oo("value",t.name),rr(1),xa(" ",t.name," ")}}function DY(t,e){if(1&t&&(jo(0,"mat-form-field"),jo(1,"mat-select",31),Io(2,RY,2,2,"mat-option",32),Yo(),Yo()),2&t){const t=ea(4);rr(1),Oo("formControl",t.categoryControl),rr(1),Oo("ngForOf",t.categories)}}function PY(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"PUBLICATION_DETAIL.LIST.RANK_ERROR")," "))}function LY(t,e){if(1&t&&(jo(0,"mat-form-field"),No(1,"input",34),Io(2,PY,3,3,"mat-error",1),Yo()),2&t){const t=ea(4);rr(1),Oo("formControl",t.rankControl),rr(1),Oo("ngIf",t.rankControl.invalid)}}function zY(t,e){if(1&t){const t=qo();jo(0,"mat-form-field",18),jo(1,"input",35),Jo("ngModelChange",function(e){return ze(t),ea(4).publication.isbn=e}),Yo(),Yo()}if(2&t){const t=ea(4);rr(1),Oo("ngModel",t.publication.isbn)}}function IY(t,e){if(1&t){const t=qo();jo(0,"mat-form-field",18),jo(1,"input",35),Jo("ngModelChange",function(e){return ze(t),ea(4).publication.doi=e}),Yo(),Yo()}if(2&t){const t=ea(4);rr(1),Oo("ngModel",t.publication.doi)}}function FY(t,e){if(1&t){const t=qo();jo(0,"mat-form-field",18),jo(1,"textarea",36),Jo("ngModelChange",function(e){return ze(t),ea(4).publication.main=e}),Yo(),Yo()}if(2&t){const t=ea(4);rr(1),Oo("ngModel",t.publication.main)}}function HY(t,e){if(1&t&&(jo(0,"div"),Io(1,xY,8,7,"mat-form-field",25),Io(2,DY,3,2,"mat-form-field",1),Io(3,LY,3,2,"mat-form-field",1),Io(4,zY,2,1,"mat-form-field",6),Io(5,IY,2,1,"mat-form-field",6),Io(6,FY,2,1,"mat-form-field",6),Yo()),2&t){const t=ea().$implicit;rr(1),Oo("ngIf","Year"===t.key),rr(1),Oo("ngIf","Category"===t.key),rr(1),Oo("ngIf","Rank"===t.key),rr(1),Oo("ngIf","ISBN / ISSN"===t.key),rr(1),Oo("ngIf","DOI"===t.key),rr(1),Oo("ngIf","Full cite"===t.key)}}function OY(t,e){if(1&t&&(jo(0,"td",23),Io(1,AY,10,9,"span",1),Io(2,kY,3,4,"span",1),Io(3,TY,2,1,"span",1),Io(4,EY,3,2,"div",1),Io(5,HY,7,6,"div",1),Yo()),2&t){const t=e.$implicit,i=ea(2);rr(1),Oo("ngIf","Id / Origin"===t.key),rr(1),Oo("ngIf","Create date"===t.key),rr(1),Oo("ngIf","Created by"===t.key),rr(1),Oo("ngIf",!i.editing),rr(1),Oo("ngIf",i.editing)}}function BY(t,e){1&t&&No(0,"tr",37)}function jY(t,e){if(1&t&&(jo(0,"div"),jo(1,"div",3),Io(2,pY,2,1,"h3",4),Io(3,gY,4,3,"button",5),Io(4,_Y,3,2,"mat-form-field",6),Io(5,yY,4,4,"button",7),Yo(),jo(6,"table",8),Ko(7,9),Io(8,wY,1,0,"th",10),Io(9,bY,2,1,"td",11),Uo(),Ko(10,12),Io(11,vY,1,0,"th",10),Io(12,OY,6,5,"td",13),Uo(),Io(13,BY,1,0,"tr",14),Yo(),Yo()),2&t){const t=ea();rr(2),Oo("ngIf",!t.editing),rr(1),Oo("ngIf",!t.editing&&!t.publication.locked),rr(1),Oo("ngIf",t.editing),rr(1),Oo("ngIf",t.editing),rr(1),Oo("dataSource",t.dataSource),rr(7),Oo("matRowDefColumns",t.displayedColumns)}}const YY=fO,NY={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let KY=(()=>{class t{constructor(t,e,i){this.cabinetService=t,this.notificator=e,this.translate=i,this.categories=[],this.edited=new mu,this.loading=!1,this.dataSource=null,this.displayedColumns=["key","value"],this.isChanging=new Wk(!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 t=0;tt.name===this.categoryControl.value).id,e={id:this.publication.id,externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.titleControl.value,year:this.yearControl.value.year(),main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:t,rank:this.rankControl.value,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate};this.cabinetService.updatePublication({publication:e}).subscribe(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.edited.emit(!0),this.loading=!1})},()=>this.loading=!1)}chosenYearHandler(t,e){const i=this.yearControl.value;i.year(t.year()),this.yearControl.setValue(i),e.close()}}return t.\u0275fac=function(e){return new(e||t)(Ho(xf),Ho(Gx),Ho(rx))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-publication-detail-list"]],inputs:{publication:"publication",categories:"categories"},outputs:{edited:"edited"},features:[Za([{provide:_A,useClass:_O,deps:[mA]},{provide:yA,useValue:NY}])],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(t,e){1&t&&(jo(0,"div"),Io(1,fY,1,0,"mat-spinner",0),Io(2,jY,14,6,"div",1),Yo()),2&t&&(rr(1),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[Bh,hR,gD,yD,_D,mD,AD,ak,BM,jE,xC,vR,OC,uS,qS,fC,wD,bD,wC,aF,uF,kC,iF,kM,Hh,XA,YS,TD],pipes:[ox,td],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}"]}),t})();function UY(t,e){1&t&&No(0,"mat-spinner",3)}function VY(t,e){1&t&&(jo(0,"h1",11),jo(1,"span"),jo(2,"mat-icon",12),Ma(3,"assignment_ind"),Yo(),Ma(4),uu(5,"translate"),Yo(),Yo()),2&t&&(rr(4),xa(" ",lu(5,1,"AUTHORS_PAGE.TITLE")," "))}function qY(t,e){1&t&&(jo(0,"h1",11),No(1,"mat-icon",13),jo(2,"span",14),Ma(3),uu(4,"translate"),Yo(),Yo()),2&t&&(rr(3),Ea(lu(4,1,"ALL_PUBLICATIONS.TITLE")))}function $Y(t,e){1&t&&(jo(0,"h1",11),jo(1,"span"),jo(2,"mat-icon",12),Ma(3,"local_library"),Yo(),Ma(4),uu(5,"translate"),Yo(),Yo()),2&t&&(rr(4),xa(" ",lu(5,1,"MY_PUBLICATIONS.TITLE")," "))}function WY(t,e){if(1&t&&(jo(0,"h5",15),Ma(1),uu(2,"userFullName"),uu(3,"translate"),Yo()),2&t){const t=ea(2);rr(1),Ra("",lu(2,2,t.mainAuthor),"",lu(3,4,"AUTHOR_DETAIL.TITLE"),"")}}function GY(t,e){1&t&&(jo(0,"span",16),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"PUBLICATION_DETAIL.LOCKED")," "))}function JY(t,e){1&t&&(jo(0,"mat-icon"),Ma(1," lock "),Yo())}function ZY(t,e){1&t&&(jo(0,"span",16),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"PUBLICATION_DETAIL.UNLOCKED")," "))}function QY(t,e){1&t&&(jo(0,"mat-icon"),Ma(1," lock_open "),Yo())}function XY(t,e){1&t&&No(0,"mat-spinner",3)}function tN(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-publication-detail-list",17),Jo("edited",function(){return ze(t),ea(2).refreshPublication()}),Yo()}if(2&t){const t=ea(2);Oo("publication",t.publication)("categories",t.categories)}}function eN(t,e){if(1&t){const t=qo();jo(0,"div"),Io(1,VY,6,3,"h1",4),Io(2,qY,5,3,"h1",4),Io(3,$Y,6,3,"h1",4),Io(4,WY,4,6,"h5",5),jo(5,"h5"),Ma(6),uu(7,"translate"),Yo(),jo(8,"h6"),Ma(9),uu(10,"translate"),jo(11,"button",6),Jo("click",function(){return ze(t),ea().changeLock()}),Io(12,GY,3,3,"span",7),Io(13,JY,2,0,"mat-icon",2),Io(14,ZY,3,3,"span",7),Io(15,QY,2,0,"mat-icon",2),Yo(),Yo(),jo(16,"mat-card"),jo(17,"mat-card-content"),Io(18,XY,1,0,"mat-spinner",1),Io(19,tN,1,2,"perun-web-apps-publication-detail-list",8),Yo(),Yo(),jo(20,"mat-card",9),jo(21,"mat-card-title"),Ma(22),uu(23,"translate"),Yo(),jo(24,"mat-card-content"),No(25,"perun-web-apps-add-authors",10),Yo(),Yo(),jo(26,"mat-card",9),jo(27,"mat-card-title"),Ma(28),uu(29,"translate"),Yo(),jo(30,"mat-card-content"),No(31,"perun-web-apps-add-thanks",10),Yo(),Yo(),Yo()}if(2&t){const t=ea();rr(1),Oo("ngIf","authors"===t.mode),rr(1),Oo("ngIf","all"===t.mode),rr(1),Oo("ngIf","my"===t.mode),rr(1),Oo("ngIf",void 0!==t.mainAuthor),rr(2),Ea(lu(7,18,"PUBLICATION_DETAIL.TITLE")),rr(3),xa(" ",lu(10,20,"PUBLICATION_DETAIL.LOCK_INFO")," "),rr(3),Oo("ngIf",t.publication.locked),rr(1),Oo("ngIf",t.publication.locked),rr(1),Oo("ngIf",!t.publication.locked),rr(1),Oo("ngIf",!t.publication.locked),rr(3),Oo("ngIf",t.loading||t.pubLoading),rr(1),Oo("ngIf",!t.pubLoading&&!t.loading),rr(3),xa(" ",lu(23,22,"PUBLICATION_DETAIL.AUTHORS")," "),rr(3),Oo("publication",t.publication)("selection",t.selectionAuthors),rr(3),xa(" ",lu(29,24,"PUBLICATION_DETAIL.ACKNOWLEDGEMENT")," "),rr(3),Oo("publication",t.publication)("selection",t.selectionThanks)}}let iN=(()=>{class t{constructor(t,e,i,n,s,r,o){this.route=t,this.cabinetService=e,this.matIconRegistry=i,this.domSanitizer=n,this.dialog=s,this.notificator=r,this.translate=o,this.loading=!1,this.pubLoading=!1,this.initLoading=!1,this.selectionAuthors=new Wk(!0,[]),this.selectionThanks=new Wk(!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(t=>{this.publicationId=t.publicationId,this.mainAuthorId=parseInt(t.authorId,10),this.setMode(),this.loadAllData()})}setMode(){const t=location.pathname;this.mode=t.includes("my")?"my":t.includes("all")?"all":t.includes("import")?"import":t.includes("create")?"create":"authors"}loadAllData(){this.loading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(t=>{this.publication=t,this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.loading=!1,this.initLoading=!1})})}refreshPublication(){this.pubLoading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(t=>{this.publication=t,this.pubLoading=!1})}changeLock(){this.pubLoading=!0,this.cabinetService.lockPublications({publications:[{id:this.publication.id,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 t.\u0275fac=function(e){return new(e||t)(Ho(Wg),Ho(xf),Ho(DE),Ho(Ld),Ho(Ax),Ho(Gx),Ho(rx))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"div",0),Io(1,UY,1,0,"mat-spinner",1),Io(2,eN,32,26,"div",2),Yo()),2&t&&(rr(1),Oo("ngIf",e.initLoading),rr(1),Oo("ngIf",!e.initLoading))},directives:[Bh,hR,ak,ML,CL,SL,Mj,dY,jE,KY],pipes:[ox,xH],styles:[".icon-size[_ngcontent-%COMP%]{width:32px;height:32px}.align-icon[_ngcontent-%COMP%]{vertical-align:text-top}"]}),t})(),nN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[ed,ck,YE,R_,vH,ax]]}),t})(),sN=(()=>{class t{constructor(t){this.auth=t}startAuth(){this.auth.startAuthentication()}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ux))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con","vo-theme"],[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(t,e){1&t&&(jo(0,"div",0),jo(1,"div",1),jo(2,"div",2),jo(3,"h4",3),Ma(4),uu(5,"translate"),Yo(),jo(6,"button",4),Jo("click",function(){return e.startAuth()}),Ma(7),uu(8,"translate"),jo(9,"mat-icon"),Ma(10," login "),Yo(),Yo(),Yo(),Yo(),Yo()),2&t&&(rr(4),xa(" ",lu(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),rr(3),xa(" ",lu(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[ak,jE],pipes:[ox],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),t})();function rN(t,e){1&t&&sa(0)}const oN=["*"];function aN(t,e){}const cN=function(t){return{animationDuration:t}},uN=function(t,e){return{value:t,params:e}},lN=["tabBodyWrapper"],hN=["tabHeader"];function dN(t,e){}function fN(t,e){1&t&&Io(0,dN,0,0,"ng-template",9),2&t&&Oo("cdkPortalOutlet",ea().$implicit.templateLabel)}function pN(t,e){1&t&&Ma(0),2&t&&Ea(ea().$implicit.textLabel)}function gN(t,e){if(1&t){const t=qo();jo(0,"div",6),Jo("click",function(){const e=ze(t),i=e.$implicit,n=e.index,s=ea(),r=Fo(1);return s._handleClick(i,r,n)})("cdkFocusChange",function(e){const i=ze(t).index;return ea()._tabFocusChanged(e,i)}),jo(1,"div",7),Io(2,fN,1,1,"ng-template",8),Io(3,pN,1,1,"ng-template",8),Yo(),Yo()}if(2&t){const t=e.$implicit,i=e.index,n=ea();pa("mat-tab-label-active",n.selectedIndex==i),Oo("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),Lo("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),rr(2),Oo("ngIf",t.templateLabel),rr(1),Oo("ngIf",!t.templateLabel)}}function mN(t,e){if(1&t){const t=qo();jo(0,"mat-tab-body",10),Jo("_onCentered",function(){return ze(t),ea()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return ze(t),ea()._setTabBodyWrapperHeight(e)}),Yo()}if(2&t){const t=e.$implicit,i=e.index,n=ea();pa("mat-tab-body-active",n.selectedIndex==i),Oo("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),Lo("aria-labelledby",n._getTabLabelId(i))}}const _N=["tabListContainer"],yN=["tabList"],wN=["nextPaginator"],bN=["previousPaginator"],vN=new Ji("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let AN=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(nl),Ho(vN),Ho(Zv,8))},t.\u0275dir=Gt({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&pa("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const kN=new Ji("MatTabContent");let TN=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["","matTabContent",""]],features:[Za([{provide:kN,useExisting:t}])]}),t})();const CN=new Ji("MatTabLabel");let SN=(()=>{class t extends cT{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Za([{provide:CN,useExisting:t}]),bo]}),t})();class MN{}const EN=lA(MN),xN=new Ji("MAT_TAB_GROUP");let RN=(()=>{class t extends EN{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new k,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new sT(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(xN,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){if(1&t&&(Ru(i,CN,5),Ru(i,kN,7,Ic)),2&t){let t;Eu(t=Du())&&(e.templateLabel=t.first),Eu(t=Du())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&xu(Ic,7),2&t){let t;Eu(t=Du())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[bo,ue],ngContentSelectors:oN,decls:1,vars:0,template:function(t,e){1&t&&(na(),Io(0,rN,1,0,"ng-template"))},encapsulation:2}),t})();const DN={translateTab:fw("translateTab",[yw("center, void, left-origin-center, right-origin-center",_w({transform:"none"})),yw("left",_w({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),yw("right",_w({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),bw("* => left, * => right, left => center, right => center",pw("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),bw("void => left-origin-center",[_w({transform:"translate3d(-100%, 0, 0)"}),pw("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),bw("void => right-origin-center",[_w({transform:"translate3d(100%, 0, 0)"}),pw("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let PN=(()=>{class t extends uT{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=h.EMPTY,this._leavingSub=h.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(mp(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ho(tc),Ho(Nc),Ho(rt(()=>zN)),Ho(Fl))},t.\u0275dir=Gt({type:t,selectors:[["","matTabBodyHost",""]],features:[bo]}),t})(),LN=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=h.EMPTY,this._translateTabComplete=new k,this._onCentering=new mu,this._beforeCentering=new mu,this._afterLeavingCenter=new mu,this._onCentered=new mu(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(kk((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(cw,8),Ho(Rc))},t.\u0275dir=Gt({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),zN=(()=>{class t extends LN{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(cw,8),Ho(Rc))},t.\u0275cmp=Kt({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&xu(uT,5),2&t){let t;Eu(t=Du())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[bo],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(jo(0,"div",0,1),Jo("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),Io(2,aN,0,0,"ng-template",2),Yo()),2&t&&Oo("@translateTab",ru(3,uN,e._position,su(1,cN,e.animationDuration)))},directives:[PN],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[DN.translateTab]}}),t})();const IN=new Ji("MAT_TABS_CONFIG");let FN=0;class HN{}class ON{constructor(t){this._elementRef=t}}const BN=hA(dA(ON),"primary");let jN=(()=>{class t extends BN{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new yu,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=h.EMPTY,this._tabLabelSubscription=h.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new mu,this.focusChange=new mu,this.animationDone=new mu,this.selectedTabChange=new mu(!0),this._groupId=FN++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,this.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=iy(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=ny(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));const e=this._tabBodyWrapper.nativeElement;e.style.minHeight=e.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.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()}focusTab(t){const e=this._tabHeader;e&&(e.focusIndex=t)}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new HN;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=V(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}_tabFocusChanged(t,e){t&&(this._tabHeader.focusIndex=e)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(IN,8),Ho(Zv,8))},t.\u0275dir=Gt({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[bo]}),t})(),YN=(()=>{class t extends jN{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(IN,8),Ho(Zv,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){if(1&t&&Ru(i,RN,5),2&t){let t;Eu(t=Du())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(xu(lN,5),xu(hN,5)),2&t){let t;Eu(t=Du())&&(e._tabBodyWrapper=t.first),Eu(t=Du())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&pa("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Za([{provide:xN,useExisting:t}]),bo],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","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(jo(0,"mat-tab-header",0,1),Jo("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),Io(2,gN,4,14,"div",2),Yo(),jo(3,"div",3,4),Io(5,mN,1,8,"mat-tab-body",5),Yo()),2&t&&(Oo("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),rr(2),Oo("ngForOf",e._tabs),rr(1),pa("_mat-animation-noopable","NoopAnimations"===e._animationMode),rr(2),Oo("ngForOf",e._tabs))},directives:function(){return[WN,Hh,UN,jA,ew,Bh,uT,zN]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class NN{}const KN=lA(NN);let UN=(()=>{class t extends KN{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(Lo("aria-disabled",!!e.disabled),pa("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[bo]}),t})();const VN=yy({passive:!0});let qN=(()=>{class t{constructor(t,e,i,n,s,r,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=s,this._platform=r,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new k,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new k,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new mu,this.indexFocused=new mu,s.runOutsideAngular(()=>{uk(t.nativeElement,"mouseleave").pipe(Pk(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=ny(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){uk(this._previousPaginator.nativeElement,"touchstart",VN).pipe(Pk(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),uk(this._nextPaginator.nativeElement,"touchstart",VN).pipe(Pk(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Bd("ltr"),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Oy(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),V(t,e,this._items.changes).pipe(Pk(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(i)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Pk(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}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(t){if(!q_(t))switch(t.keyCode){case B_:case Y_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",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(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:s}=e.elementRef.nativeElement;let r,o;"ltr"==this._getLayoutDirection()?(r=n,o=r+s):(o=this._tabList.nativeElement.offsetWidth-n,r=o-s);const a=this.scrollDistance,c=this.scrollDistance+i;rc&&(this.scrollDistance+=o-c+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_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._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),xk(650,100).pipe(Pk(V(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(Xk),Ho(cw,8),Ho(nl),Ho(ly),Ho(Zv,8))},t.\u0275dir=Gt({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),$N=(()=>{class t extends qN{constructor(t,e,i,n,s,r,o){super(t,e,i,n,s,r,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=iy(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(Xk),Ho(cw,8),Ho(nl),Ho(ly),Ho(Zv,8))},t.\u0275dir=Gt({type:t,inputs:{disableRipple:"disableRipple"},features:[bo]}),t})(),WN=(()=>{class t extends $N{constructor(t,e,i,n,s,r,o){super(t,e,i,n,s,r,o)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(Xk),Ho(cw,8),Ho(nl),Ho(ly),Ho(Zv,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){if(1&t&&Ru(i,UN,4),2&t){let t;Eu(t=Du())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(xu(AN,7),xu(_N,7),xu(yN,7),xu(wN,5),xu(bN,5)),2&t){let t;Eu(t=Du())&&(e._inkBar=t.first),Eu(t=Du())&&(e._tabListContainer=t.first),Eu(t=Du())&&(e._tabList=t.first),Eu(t=Du())&&(e._nextPaginator=t.first),Eu(t=Du())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&pa("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[bo],ngContentSelectors:oN,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(na(),jo(0,"div",0,1),Jo("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),No(2,"div",2),Yo(),jo(3,"div",3,4),Jo("keydown",function(t){return e._handleKeydown(t)}),jo(5,"div",5,6),Jo("cdkObserveContent",function(){return e._onContentChanges()}),jo(7,"div",7),sa(8),Yo(),No(9,"mat-ink-bar"),Yo(),Yo(),jo(10,"div",8,9),Jo("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),No(12,"div",2),Yo()),2&t&&(pa("mat-tab-header-pagination-disabled",e._disableScrollBefore),Oo("matRippleDisabled",e._disableScrollBefore||e.disableRipple),rr(5),pa("_mat-animation-noopable","NoopAnimations"===e._animationMode),rr(5),pa("mat-tab-header-pagination-disabled",e._disableScrollAfter),Oo("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[jA,Cy,AN],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.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;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),GN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[ed,uA,lT,YA,Sy,ow],uA]}),t})();function JN(t,e){1&t&&No(0,"mat-spinner",5)}function ZN(t,e){1&t&&(Ma(0),uu(1,"translate")),2&t&&Ea(lu(1,1,"CREATE_SINGLE_PUBLICATION.PUBLICATION"))}function QN(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function XN(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function tK(t,e){if(1&t&&(jo(0,"mat-option",36),Ma(1),Yo()),2&t){const t=e.$implicit;Oo("value",t),rr(1),xa(" ",t.name," ")}}function eK(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function iK(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function nK(t,e){1&t&&(Ma(0),uu(1,"translate")),2&t&&xa(" ",lu(1,1,"CREATE_SINGLE_PUBLICATION.CHECK")," ")}function sK(t,e){1&t&&(jo(0,"div",28),No(1,"mat-spinner",5),jo(2,"h5",37),Ma(3),uu(4,"translate"),Yo(),Yo()),2&t&&(rr(3),Ea(lu(4,1,"CREATE_SINGLE_PUBLICATION.CHECK_PERFORM")))}function rK(t,e){1&t&&(jo(0,"app-alert",38),jo(1,"div",28),jo(2,"span",39),Ma(3),uu(4,"translate"),uu(5,"translate"),Yo(),jo(6,"span",40),jo(7,"mat-icon",41),Ma(8,"fiber_manual_record"),Yo(),Ma(9),uu(10,"translate"),Yo(),jo(11,"span",42),jo(12,"mat-icon",41),Ma(13,"fiber_manual_record"),Yo(),Ma(14),uu(15,"translate"),Yo(),Yo(),Yo()),2&t&&(rr(3),Ra(" ",lu(4,4,"CREATE_SINGLE_PUBLICATION.SIMILAR_FOUND"),". ",lu(5,6,"CREATE_SINGLE_PUBLICATION.CHECK_BELOW"),". "),rr(6),xa(" ",lu(10,8,"CREATE_SINGLE_PUBLICATION.IS_BELOW")," "),rr(5),xa(" ",lu(15,10,"CREATE_SINGLE_PUBLICATION.NOT_BELOW")," "))}function oK(t,e){1&t&&(Ma(0),uu(1,"translate")),2&t&&Ea(lu(1,1,"CREATE_SINGLE_PUBLICATION.CHECK"))}function aK(t,e){1&t&&No(0,"mat-spinner",5)}const cK=function(){return["id","lock","title","reportedBy","year","category","thankedTo","cite"]};function uK(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-publications-list",48),Jo("publicationSelector",function(e){ze(t),ea(2);const i=Fo(1);return ea(2).loadPublicationDetail(e,i)}),Yo()}if(2&t){const t=ea(4);Oo("displayedColumns",nu(4,cK))("disabledRouting",!0)("openInTab",!0)("publications",t.filteredPublications)}}function lK(t,e){if(1&t&&(jo(0,"div",46),Io(1,aK,1,0,"mat-spinner",3),Io(2,uK,1,5,"perun-web-apps-publications-list",47),Yo()),2&t){const t=ea(3);rr(1),Oo("ngIf",t.innerLoading),rr(1),Oo("ngIf",!t.innerLoading)}}function hK(t,e){1&t&&Ma(0),2&t&&Ea(ea(4).selectedPubTitle)}function dK(t,e){if(1&t&&(jo(0,"div",49),No(1,"perun-web-apps-publication-detail",50),Yo()),2&t){const t=ea(4);rr(1),Oo("publicationId",t.selectedPubId)}}function fK(t,e){1&t&&(jo(0,"mat-tab"),Io(1,hK,1,1,"ng-template",44),Io(2,dK,2,1,"ng-template",45),Yo())}function pK(t,e){if(1&t&&(jo(0,"mat-tab-group",null,43),jo(2,"mat-tab"),Io(3,oK,2,3,"ng-template",44),Io(4,lK,3,2,"ng-template",45),Yo(),Io(5,fK,3,0,"mat-tab",14),Yo()),2&t){const t=ea(2);rr(5),Oo("ngIf",null!==t.selectedPubId)}}function gK(t,e){1&t&&(jo(0,"div",28),jo(1,"mat-icon",51),Ma(2,"check_circle"),Yo(),jo(3,"h5",52),Ma(4),uu(5,"translate"),Yo(),Yo()),2&t&&(rr(4),Ea(lu(5,1,"CREATE_SINGLE_PUBLICATION.NO_SIMILAR")))}function mK(t,e){1&t&&(jo(0,"button",34),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function _K(t,e){if(1&t){const t=qo();jo(0,"button",57),Jo("click",function(){return ze(t),ea(3).redirect(["create-publication"])}),Ma(1),uu(2,"translate"),Yo()}2&t&&(rr(1),xa(" ",lu(2,1,"CREATE_SINGLE_PUBLICATION.RETURN")," "))}function yK(t,e){if(1&t&&(jo(0,"div",53),Io(1,mK,3,3,"button",54),jo(2,"button",55),Ma(3),uu(4,"translate"),Yo(),Io(5,_K,3,3,"button",56),Yo()),2&t){const t=ea(2);rr(1),Oo("ngIf",!t.duplicateCheck),rr(2),xa(" ",lu(4,3,"CREATE_SINGLE_PUBLICATION.CREATE")," "),rr(2),Oo("ngIf",!t.duplicateCheck)}}function wK(t,e){1&t&&(Ma(0),uu(1,"translate")),2&t&&xa(" ",lu(1,1,"CREATE_SINGLE_PUBLICATION.AUTHORS")," ")}function bK(t,e){1&t&&No(0,"mat-spinner",5)}function vK(t,e){if(1&t&&No(0,"perun-web-apps-add-authors",59),2&t){const t=ea(3);Oo("publication",t.publication)("selection",t.authorsSelection)}}function AK(t,e){if(1&t&&(jo(0,"div"),jo(1,"app-alert",58),Ma(2),uu(3,"translate"),Yo(),Io(4,vK,1,2,"perun-web-apps-add-authors",33),Yo()),2&t){const t=ea(2);rr(2),Ea(lu(3,2,"CREATE_SINGLE_PUBLICATION.PUB_CREATED")),rr(2),Oo("ngIf",null!==t.publication)}}function kK(t,e){1&t&&(jo(0,"button",34),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function TK(t,e){if(1&t&&(jo(0,"div",25),Io(1,kK,3,3,"button",54),jo(2,"button",60),Ma(3),uu(4,"translate"),Yo(),Yo()),2&t){const t=ea(2);rr(1),Oo("ngIf",!t.duplicateCheck),rr(2),xa(" ",lu(4,2,"CREATE_SINGLE_PUBLICATION.NEXT")," ")}}function CK(t,e){1&t&&(Ma(0),uu(1,"translate")),2&t&&xa(" ",lu(1,1,"CREATE_SINGLE_PUBLICATION.THANKS")," ")}function SK(t,e){if(1&t&&No(0,"perun-web-apps-add-thanks",59),2&t){const t=ea(2);Oo("publication",t.publication)("selection",t.thanksSelection)}}function MK(t,e){1&t&&No(0,"mat-spinner",5)}function EK(t,e){if(1&t){const t=qo();jo(0,"mat-horizontal-stepper",6),Jo("selectionChange",function(e){return ze(t),ea().stepChanged(e)}),jo(1,"mat-step",7),Io(2,ZN,2,3,"ng-template",8),jo(3,"form",9),jo(4,"h5",10),Ma(5),uu(6,"translate"),Yo(),jo(7,"div",11),jo(8,"mat-checkbox",12),Ma(9),uu(10,"translate"),Yo(),jo(11,"mat-form-field"),No(12,"input",13),uu(13,"translate"),Io(14,QN,3,3,"mat-error",14),Yo(),jo(15,"mat-form-field",15),Jo("click",function(){return ze(t),Fo(22).open()}),jo(16,"mat-label"),Ma(17),uu(18,"translate"),Yo(),No(19,"input",16),No(20,"mat-datepicker-toggle",17),jo(21,"mat-datepicker",18,19),Jo("yearSelected",function(e){ze(t);const i=Fo(22);return ea().chosenYearHandler(e,i)}),Yo(),Io(23,XN,3,3,"mat-error",14),Yo(),jo(24,"mat-form-field"),jo(25,"mat-select",20),uu(26,"translate"),Io(27,tK,2,2,"mat-option",21),Yo(),Io(28,eK,3,3,"mat-error",14),Yo(),jo(29,"mat-form-field"),No(30,"input",22),uu(31,"translate"),Yo(),jo(32,"mat-form-field"),No(33,"input",23),uu(34,"translate"),Yo(),jo(35,"mat-form-field"),jo(36,"textarea",24),uu(37,"translate"),Ma(38," "),Yo(),Io(39,iK,3,3,"mat-error",14),Yo(),Yo(),Yo(),jo(40,"div",25),jo(41,"button",26),Ma(42),uu(43,"translate"),Yo(),Yo(),Yo(),jo(44,"mat-step",27),Io(45,nK,2,3,"ng-template",8),jo(46,"form",28),jo(47,"h5",10),Ma(48),uu(49,"translate"),Yo(),Io(50,sK,5,3,"div",29),Io(51,rK,16,12,"app-alert",30),Io(52,pK,6,1,"mat-tab-group",14),Io(53,gK,6,3,"div",29),Yo(),Io(54,yK,6,5,"div",31),Yo(),jo(55,"mat-step"),Io(56,wK,2,3,"ng-template",8),jo(57,"h5",10),Ma(58),uu(59,"translate"),Yo(),Io(60,bK,1,0,"mat-spinner",3),Io(61,AK,5,4,"div",14),Io(62,TK,5,4,"div",32),Yo(),jo(63,"mat-step"),Io(64,CK,2,3,"ng-template",8),jo(65,"h5",10),Ma(66),uu(67,"translate"),Yo(),Io(68,SK,1,2,"perun-web-apps-add-thanks",33),Io(69,MK,1,0,"mat-spinner",3),jo(70,"div",25),jo(71,"button",34),Ma(72),uu(73,"translate"),Yo(),jo(74,"button",35),Jo("click",function(){ze(t);const e=ea();return e.redirect(["all-publications",e.publication.id])}),Ma(75),uu(76,"translate"),Yo(),Yo(),Yo(),Yo()}if(2&t){const t=Fo(22),e=ea();rr(1),Oo("editable",!e.duplicateCheck)("stepControl",e.publicationControl),rr(2),Oo("formGroup",e.publicationControl),rr(2),xa(" ",lu(6,37,"CREATE_SINGLE_PUBLICATION.PUB_INFO")," "),rr(4),xa(" ",lu(10,39,"CREATE_SINGLE_PUBLICATION.ADD_MYSELF")," "),rr(3),ra("placeholder",lu(13,41,"CREATE_SINGLE_PUBLICATION.SET_TITLE")),rr(2),Oo("ngIf",e.publicationControl.hasError("required","title")),rr(3),Ea(lu(18,43,"CREATE_SINGLE_PUBLICATION.YEAR")),rr(2),Oo("max",e.maxYear)("matDatepicker",t),rr(1),Oo("for",t),rr(3),Oo("ngIf",e.publicationControl.hasError("required","year")),rr(2),ra("placeholder",lu(26,45,"CREATE_SINGLE_PUBLICATION.CATEGORY")),rr(2),Oo("ngForOf",e.categories),rr(1),Oo("ngIf",e.publicationControl.hasError("required","category")),rr(2),ra("placeholder",lu(31,47,"CREATE_SINGLE_PUBLICATION.ISBN")),rr(3),ra("placeholder",lu(34,49,"CREATE_SINGLE_PUBLICATION.DOI")),rr(3),ra("placeholder",lu(37,51,"CREATE_SINGLE_PUBLICATION.CITE")),rr(3),Oo("ngIf",e.publicationControl.hasError("required","cite")),rr(2),Oo("disabled",e.publicationControl.invalid),rr(1),xa(" ",lu(43,53,"CREATE_SINGLE_PUBLICATION.NEXT")," "),rr(2),Oo("editable",!e.duplicateCheck),rr(4),xa(" ",lu(49,55,"CREATE_SINGLE_PUBLICATION.SIMILARITY_CHECK")," "),rr(2),Oo("ngIf",e.innerLoading),rr(1),Oo("ngIf",!e.innerLoading&&!e.duplicateCheck),rr(1),Oo("ngIf",!e.innerLoading&&!e.duplicateCheck),rr(1),Oo("ngIf",!e.innerLoading&&e.duplicateCheck),rr(1),Oo("ngIf",!e.innerLoading),rr(4),xa(" ",lu(59,57,"CREATE_SINGLE_PUBLICATION.ADD_AUTHORS")," "),rr(2),Oo("ngIf",e.innerLoading),rr(1),Oo("ngIf",!e.innerLoading),rr(1),Oo("ngIf",!e.innerLoading),rr(4),xa(" ",lu(67,59,"CREATE_SINGLE_PUBLICATION.ADD_THANKS")," "),rr(2),Oo("ngIf",null!==e.publication),rr(1),Oo("ngIf",e.innerLoading),rr(3),xa(" ",lu(73,61,"CREATE_SINGLE_PUBLICATION.PREV")," "),rr(3),xa(" ",lu(76,63,"CREATE_SINGLE_PUBLICATION.FINISH")," ")}}const xK=fO,RK={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let DK=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this.formBuilder=t,this.cabinetService=e,this.dialog=i,this.router=n,this.notificator=s,this.translate=r,this.storeService=o,this.userService=a,this.similarPublications=[],this.filteredPublications=[],this.categories=[],this.publication=null,this.authorsSelection=new Wk(!0,[]),this.thanksSelection=new Wk(!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:["",UC.required],year:["",UC.required],category:["",UC.required],isbn:[""],doi:[""],cite:["",UC.required]}),this.maxYear=xK(),this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.loading=!1})}chosenYearHandler(t,e){this.publicationControl.get("year").setValue(t),e.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 t={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(e=>{const i=e.userAttributes.filter(t=>"preferredMail"===t.friendlyName);0!==i.length&&(t.publication.createdBy=i[0].value),this.cabinetService.createPublication(t).subscribe(t=>{this.publication=t,this.publicationControl.get("addAuthor").value?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publication.id,userId:e.id}}).subscribe(()=>{this.createTimeout()},()=>this.innerLoading=!1):this.createTimeout()},()=>this.innerLoading=!1)},()=>this.innerLoading=!1)}similarCheck(){this.innerLoading=!0;const t=this.publicationControl.get("title").value?this.publicationControl.get("title").value:null,e=this.publicationControl.get("DOI").value?this.publicationControl.get("DOI").value:null,i=this.publicationControl.get("ISBN").value?this.publicationControl.get("ISBN").value:null;this.cabinetService.findSimilarPublications(t,e,i).subscribe(t=>{this.similarPublications=t,this.filteredPublications=t,setTimeout(()=>{this.duplicateCheck=0===t.length,this.innerLoading=!1},2e3)})}stepChanged(t){1===t.selectedIndex&&this.similarCheck(),2===t.selectedIndex&&null===this.publication&&this.createPublication()}redirect(t){this.router.navigate(t)}loadPublicationDetail(t,e){this.selectedPubId=t.id,this.selectedPubTitle=t.title,e.selectedIndex=1}}return t.\u0275fac=function(e){return new(e||t)(Ho(iM),Ho(xf),Ho(Ax),Ho(m_),Ho(Gx),Ho(rx),Ho(Kx),Ho(Nf))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-create-single-publication-page"]],features:[Za([{provide:_A,useClass:_O,deps:[mA]},{provide:yA,useValue:RK}])],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(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),jo(2,"span"),jo(3,"mat-icon",2),Ma(4,"add_box"),Yo(),Ma(5),uu(6,"translate"),Yo(),Yo(),Io(7,JN,1,0,"mat-spinner",3),Io(8,EK,77,65,"mat-horizontal-stepper",4),Yo()),2&t&&(rr(5),xa(" ",lu(6,3,"CREATE_SINGLE_PUBLICATION.TITLE")," "),rr(2),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[jE,Bh,hR,oI,iI,$z,NS,lS,WS,jL,uS,JS,xC,vR,OC,QS,wC,aF,uF,kC,iF,kM,Hh,ak,aI,OS,cI,fC,XA,EH,YN,RN,SN,TN,iO,iN,Mj,dY],pipes:[ox],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}"]}),t})();function PK(t,e){if(1&t&&(jo(0,"mat-option",14),Ma(1),Yo()),2&t){const t=e.$implicit;Oo("value",t),rr(1),Ea(t.friendlyName)}}function LK(t,e){1&t&&(jo(0,"app-alert",15),Ma(1),uu(2,"translate"),Yo()),2&t&&(Oo("alert_type","info"),rr(1),xa(" ",lu(2,2,"IMPORT_PUBLICATIONS.INFO")," "))}function zK(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-publications-list",16),Jo("page",function(e){return ze(t),ea(2).pageChanged(e)}),Yo()}if(2&t){const t=ea(2);Oo("publications",t.publications)("displayedColumns",t.displayedColumns)("selection",t.selected)("pageSize",t.pageSize)("disabledRouting",!0)("allowAlert",t.firstSearchDone)}}function IK(t,e){if(1&t){const t=qo();jo(0,"div"),jo(1,"div"),jo(2,"mat-form-field",5),jo(3,"mat-label"),Ma(4),uu(5,"translate"),Yo(),jo(6,"mat-select",6),Jo("closed",function(){return ze(t),ea().selectPubSystem()}),Io(7,PK,2,2,"mat-option",7),Yo(),Yo(),No(8,"perun-web-apps-year-range",8),jo(9,"button",9),Jo("click",function(){return ze(t),ea().searchPublications()}),jo(10,"mat-icon"),Ma(11,"search"),Yo(),Ma(12),uu(13,"translate"),Yo(),jo(14,"button",10),Jo("click",function(){ze(t);const e=ea();return e.importPublications(e.selected.selected)}),Ma(15),uu(16,"translate"),Yo(),jo(17,"mat-checkbox",11),Jo("ngModelChange",function(e){return ze(t),ea().userAsAuthor=e}),Ma(18),uu(19,"translate"),Yo(),Yo(),Io(20,LK,3,4,"app-alert",12),Io(21,zK,1,6,"perun-web-apps-publications-list",13),Yo()}if(2&t){const t=ea();rr(4),Ea(lu(5,12,"IMPORT_PUBLICATIONS.EXT_PUB_SYSTEM")),rr(2),Oo("formControl",t.pubSystem),rr(1),Oo("ngForOf",t.publicationSystems),rr(1),Oo("startYear",t.startYear)("endYear",t.endYear),rr(4),xa(" ",lu(13,14,"IMPORT_PUBLICATIONS.SEARCH")," "),rr(2),Oo("disabled",0===t.selected.selected.length),rr(1),xa(" ",lu(16,16,"IMPORT_PUBLICATIONS.IMPORT")," "),rr(2),Oo("ngModel",t.userAsAuthor),rr(1),xa(" ",lu(19,18,"IMPORT_PUBLICATIONS.ADD_MYSELF")," "),rr(2),Oo("ngIf",!t.firstSearchDone),rr(1),Oo("ngIf",!t.loading)}}function FK(t,e){1&t&&No(0,"mat-spinner",17)}function HK(t,e){1&t&&(jo(0,"i"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED")," "))}function OK(t,e){1&t&&(jo(0,"mat-icon",28),Ma(1,"check_circle"),Yo())}function BK(t,e){if(1&t){const t=qo();jo(0,"button",29),Jo("click",function(){ze(t);const e=ea(),i=e.$implicit,n=e.index;return ea(2).completePublication(i.id,n)}),Ma(1),uu(2,"translate"),Yo()}2&t&&(rr(1),xa(" ",lu(2,1,"IMPORT_PUBLICATIONS.CHECKED_BUTTON")," "))}function jK(t,e){if(1&t){const t=qo();jo(0,"button",30),Jo("click",function(){ze(t);const e=ea().$implicit;return ea(2).incompletePublication(e.id)}),Ma(1),uu(2,"translate"),Yo()}2&t&&(rr(1),xa(" ",lu(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED_BUTTON")," "))}function YK(t,e){if(1&t){const t=qo();jo(0,"mat-expansion-panel",22),jo(1,"mat-expansion-panel-header",23),Jo("click",function(){const e=ze(t).index;return ea(2).editPublication(e)}),jo(2,"mat-panel-title"),Ma(3),Io(4,HK,3,3,"i",3),Io(5,OK,2,0,"mat-icon",24),Yo(),Yo(),No(6,"perun-web-apps-publication-detail",25),jo(7,"div",26),Io(8,BK,3,3,"button",20),Io(9,jK,3,3,"button",27),Yo(),Yo()}if(2&t){const t=e.$implicit,i=e.index,n=ea(2);Oo("expanded",n.indexExpanded===i),rr(3),xa(" ",t.title," "),rr(1),Oo("ngIf",!n.completePublications.includes(t.id)),rr(1),Oo("ngIf",n.completePublications.includes(t.id)),rr(1),Oo("publicationId",t.id),rr(2),Oo("ngIf",!n.completePublications.includes(t.id)),rr(1),Oo("ngIf",n.completePublications.includes(t.id))}}function NK(t,e){if(1&t){const t=qo();jo(0,"button",29),Jo("click",function(){return ze(t),ea(2).completeAllPublications()}),Ma(1),uu(2,"translate"),Yo()}2&t&&(rr(1),xa(" ",lu(2,1,"IMPORT_PUBLICATIONS.CHECK_ALL")," "))}function KK(t,e){if(1&t){const t=qo();jo(0,"div",31),uu(1,"translate"),jo(2,"button",32),Jo("click",function(){return ze(t),ea(2).onSubmit()}),Ma(3),uu(4,"translate"),Yo(),Yo()}if(2&t){const t=ea(2);ra("matTooltip",lu(1,4,"IMPORT_PUBLICATIONS.SUBMIT_TOOLTIP")),Oo("matTooltipPosition","above")("matTooltipDisabled",t.completePublications.length===t.importedPublications.length),rr(3),xa(" ",lu(4,6,"IMPORT_PUBLICATIONS.FINISH")," ")}}function UK(t,e){if(1&t&&(jo(0,"div"),jo(1,"app-alert",15),Ma(2),uu(3,"translate"),Yo(),jo(4,"mat-accordion"),Io(5,YK,10,7,"mat-expansion-panel",18),Yo(),jo(6,"div",19),Io(7,NK,3,3,"button",20),Yo(),Io(8,KK,5,8,"div",21),Yo()),2&t){const t=ea();rr(1),Oo("alert_type","info"),rr(1),xa(" ",lu(3,5,"IMPORT_PUBLICATIONS.IMPORTED_INFO")," "),rr(3),Oo("ngForOf",t.importedPublications),rr(2),Oo("ngIf",t.completePublications.length!==t.importedPublications.length),rr(1),Oo("ngIf",t.completePublications.length===t.importedPublications.length)}}const VK=fO,qK={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},$K=[{path:"",redirectTo:"all-publications",pathMatch:"full"},{path:"login",component:sN},{path:"all-publications",component:SO},{path:"my-publications",component:RO},{path:"create-publication",component:DO},{path:"create-publication/import",component:(()=>{class t{constructor(t,e,i,n,s,r,o){this.cabinetService=t,this.storeService=e,this.tableConfigService=i,this.notificator=n,this.translate=s,this.router=r,this.dialog=o,this.loading=!1,this.publicationSystems=[],this.pubSystem=new LS,this.publications=[],this.selected=new Wk(!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.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.userId=this.storeService.getPerunPrincipal().user.id,this.startYear=new LS(VK().subtract(1,"year")),this.endYear=new LS(VK()),this.cabinetService.getPublicationSystems().subscribe(t=>{this.publicationSystems=t.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(t=>{this.publications=t,this.loading=!1},()=>this.loading=!1)}importPublications(t){if(this.loading=!0,0===t.length)return this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SUCCESS")),this.importDone=!0,this.indexExpanded=0,void(this.loading=!1);const e=t.shift();this.cabinetService.createPublication({publication:{title:e.title,categoryId:e.categoryId,year:e.year,isbn:e.isbn,doi:e.doi,main:e.main}}).subscribe(e=>{this.userAsAuthor?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:e.id,userId:this.userId}}).subscribe(()=>{this.importedPublications.push(e),this.importPublications(t)},()=>this.loading=!1):(this.importedPublications.push(e),this.importPublications(t))},()=>this.loading=!1)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}editPublication(t){this.indexExpanded=t===this.indexExpanded?-1:t}completePublication(t,e){this.completePublications.includes(t)||this.completePublications.push(t),this.indexExpanded=e!==this.importedPublications.length-1?e+1:-1}incompletePublication(t){this.completePublications.includes(t)&&(this.completePublications=this.completePublications.filter(e=>e!==t)),this.indexExpanded=-1}completeAllPublications(){const t=Dx();t.width="500px",t.data={theme:"user-theme",message:this.translate.instant("IMPORT_PUBLICATIONS.CHECK_ALL_MESSAGE")},this.dialog.open(zD,t).afterClosed().subscribe(t=>{t&&this.onSubmit()})}onSubmit(){this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SHOW_FINISH")),this.router.navigate(["/my-publications"])}}return t.\u0275fac=function(e){return new(e||t)(Ho(xf),Ho(Kx),Ho(uO),Ho(Gx),Ho(rx),Ho(m_),Ho(Ax))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-import-publications-page"]],features:[Za([{provide:_A,useClass:_O,deps:[mA]},{provide:yA,useValue:qK}])],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"],[3,"alert_type",4,"ngIf"],[3,"publications","displayedColumns","selection","pageSize","disabledRouting","allowAlert","page",4,"ngIf"],[1,"group-theme",3,"value"],[3,"alert_type"],[3,"publications","displayedColumns","selection","pageSize","disabledRouting","allowAlert","page"],[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(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),jo(2,"span"),jo(3,"mat-icon",2),Ma(4,"add_box"),Yo(),Ma(5),uu(6,"translate"),Yo(),Yo(),Io(7,IK,22,20,"div",3),Io(8,FK,1,0,"mat-spinner",4),Io(9,UK,9,7,"div",3),Yo()),2&t&&(rr(5),xa(" ",lu(6,4,"IMPORT_PUBLICATIONS.TITLE")," "),rr(2),Oo("ngIf",!e.importDone),rr(1),Oo("ngIf",e.loading),rr(1),Oo("ngIf",e.importDone))},directives:[jE,Bh,xC,wC,kM,uS,qS,Hh,wO,ak,jL,YS,XA,EH,iO,hR,hz,cz,uz,lz,iN,BM],pipes:[ox],styles:[".input-width-300[_ngcontent-%COMP%]{width:300px}.left-space[_ngcontent-%COMP%]{margin-left:10px}.checked-icon[_ngcontent-%COMP%], mat-panel-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-left:5px}.checked-icon[_ngcontent-%COMP%]{vertical-align:middle}.right-button[_ngcontent-%COMP%]{margin-top:20px;margin-left:auto;margin-right:0}.fit-content[_ngcontent-%COMP%], .right-button[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.fit-content[_ngcontent-%COMP%]{margin-top:15px}.width-100[_ngcontent-%COMP%]{width:100%}"]}),t})()},{path:"create-publication/create",component:DK},{path:"authors",component:rB},{path:"authors/:authorId",component:cj},{path:"authors/:authorId/publication/:publicationId",component:iN},{path:"all-publications/:publicationId",component:iN},{path:"my-publications/:publicationId",component:iN},{path:"categories",component:YB},{path:"publication-systems",component:sj}];let WK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[R_.forRoot($K,{preloadingStrategy:k_,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],R_]}),t})();const GK={provide:hf,useExisting:rt(()=>Jx),multi:!0};function JK(t){return new _L(t,"./assets/i18n/",".json")}function ZK(t){const e={basePath:t.get("api_url")};return new Cf(e)}const QK=t=>()=>t.loadConfigs();let XK=(()=>{class t{constructor(t,e){this.customIconService=t,this.translate=e,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return t.\u0275fac=function(e){return new(e||t)(gn($x),gn(rx))},t.\u0275mod=$t({type:t,bootstrap:[mL]}),t.\u0275inj=ft({providers:[$x,{provide:Fu,useFactory:QK,multi:!0,deps:[bL]},{provide:Cf,useFactory:ZK,deps:[Kx]},Jx,GK,{provide:vL,useClass:Qx},yO],imports:[[Od,ax.forRoot({loader:{provide:NE,useFactory:JK,deps:[uf]}}),eA,TH,AL,Gf,Af,WK,SF,eR,nN,GN,cx]]}),t})();(function(){if(ml)throw new Error("Cannot enable prod mode after platform setup.");gl=!1})(),Fd().bootstrapModule(XK).catch(t=>console.error(t))},2051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){o(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,r=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!r?function(t,r,o){var a=s.URL||s.webkitURL,c=document.createElement("a");c.download=r=r||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,r,o):n(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,s,r){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,r),s);else if(i(t))e(t,s,r);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout(function(){n(o)})}}:function(t,i,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&c||r)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location=t,o=null},l.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(t);o?o.location=d:location.href=d,o=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});s.saveAs=o.saveAs=o,t.exports=o})?i.apply(e,[]):i)||(t.exports=n)},776:function(t,e,i){!function(t){"use strict";t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(t){return/^nm$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"vm":"VM":i?"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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},2758:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-dz",{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:"\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:"\u0623\u062d_\u0625\u062b_\u062b\u0644\u0627_\u0623\u0631_\u062e\u0645_\u062c\u0645_\u0633\u0628".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:4}})}(i(9609))},4980:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(i(9609))},9602:function(t,e,i){!function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={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(t){return function(e,s,r,o){var a=i(e),c=n[t][i(e)];return 2===a&&(c=c[s?0:1]),c.replace(/%d/i,e)}},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"];t.defineLocale("ar-ly",{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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},2500:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\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:6,doy:12}})}(i(9609))},6909:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};t.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(i(9609))},2735:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(i(9609))},7634:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%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"]},r=function(t){return function(e,i,r,o){var a=n(e),c=s[t][n(e)];return 2===a&&(c=c[i?0:1]),c.replace(/%d/i,e)}},o=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];t.defineLocale("ar",{months:o,monthsShort:o,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},7798:function(t,e,i){!function(t){"use strict";var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"birne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(t){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(t)},meridiem:function(t,e,i){return t<4?"gec\u0259":t<12?"s\u0259h\u0259r":t<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(t){if(0===t)return t+"-\u0131nc\u0131";var i=t%10;return t+(e[i]||e[t%100-i]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},9949:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===i?e?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}t.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:e,mm:e,h:e,hh:e,d:"\u0434\u0437\u0435\u043d\u044c",dd:e,M:"\u043c\u0435\u0441\u044f\u0446",MM:e,y:"\u0433\u043e\u0434",yy:e},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u044b":t<12?"\u0440\u0430\u043d\u0456\u0446\u044b":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-\u044b":t+"-\u0456";case"D":return t+"-\u0433\u0430";default:return t}},week:{dow:1,doy:7}})}(i(9609))},4590:function(t,e,i){!function(t){"use strict";t.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0440_\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"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043c\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\u043d\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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(9609))},5938:function(t,e,i){!function(t){"use strict";t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(i(9609))},595:function(t,e,i){!function(t){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},i={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};t.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09c0_\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_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2_\u0986\u0997_\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_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\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(t){return t.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u09b0\u09be\u09a4"===e&&t>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===e&&t<5||"\u09ac\u09bf\u0995\u09be\u09b2"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u09b0\u09be\u09a4":t<10?"\u09b8\u0995\u09be\u09b2":t<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":t<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(i(9609))},4756:function(t,e,i){!function(t){"use strict";var e={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},i={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};t.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\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("_"),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\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("_"),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(t){return t.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e){return 12===t&&(t=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===e&&t>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===e&&t<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":t<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":t<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":t<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(i(9609))},7277:function(t,e,i){!function(t){"use strict";function e(t,e,i){return t+" "+function(t,e){return 2===e?function(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}(t):t}({mm:"munutenn",MM:"miz",dd:"devezh"}[i],t)}function i(t){return t>9?i(t%10):t}t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:function(t){switch(i(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(t){return t+(1===t?"a\xf1":"vet")},week:{dow:1,doy:4}})}(i(9609))},4166:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},3943:function(t,e,i){!function(t){"use strict";t.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(t,e){var i=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"\xe8";return"w"!==e&&"W"!==e||(i="a"),t+i},week:{dow:1,doy:4}})}(i(9609))},3474:function(t,e,i){!function(t){"use strict";var e="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),i="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),n=[/^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 r(t){return t>1&&t<5&&1!=~~(t/10)}function o(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return e||n?s+(r(t)?"sekundy":"sekund"):s+"sekundami";case"m":return e?"minuta":n?"minutu":"minutou";case"mm":return e||n?s+(r(t)?"minuty":"minut"):s+"minutami";case"h":return e?"hodina":n?"hodinu":"hodinou";case"hh":return e||n?s+(r(t)?"hodiny":"hodin"):s+"hodinami";case"d":return e||n?"den":"dnem";case"dd":return e||n?s+(r(t)?"dny":"dn\xed"):s+"dny";case"M":return e||n?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return e||n?s+(r(t)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):s+"m\u011bs\xedci";case"y":return e||n?"rok":"rokem";case"yy":return e||n?s+(r(t)?"roky":"let"):s+"lety"}}t.defineLocale("cs",{months:e,monthsShort:i,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:n,longMonthsParse:n,shortMonthsParse:n,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:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},2218:function(t,e,i){!function(t){"use strict";t.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(t){return t+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(t)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(t)?"\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}})}(i(9609))},1061:function(t,e,i){!function(t){"use strict";t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(t){var e="";return t>20?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}})}(i(9609))},2743:function(t,e,i){!function(t){"use strict";t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8580:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},3264:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1899:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8784:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];t.defineLocale("dv",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,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(t){return"\u0789\u078a"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(i(9609))},4654:function(t,e,i){!function(t){"use strict";t.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(t,e,i){return t>11?i?"\u03bc\u03bc":"\u039c\u039c":i?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(t){return"\u03bc"===(t+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,e){var i,n=this._calendarEl[t],s=e&&e.hours();return((i=n)instanceof Function||"[object Function]"===Object.prototype.toString.call(i))&&(n=n.apply(e)),n.replace("{}",s%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}})}(i(9609))},4047:function(t,e,i){!function(t){"use strict";t.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},6277:function(t,e,i){!function(t){"use strict";t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},6896:function(t,e,i){!function(t){"use strict";t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i(9609))},1609:function(t,e,i){!function(t){"use strict";t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},4557:function(t,e,i){!function(t){"use strict";t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},5836:function(t,e,i){!function(t){"use strict";t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i(9609))},3586:function(t,e,i){!function(t){"use strict";t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},2777:function(t,e,i){!function(t){"use strict";t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_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:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,i){return t>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(i(9609))},3128:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},3256:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},3357:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},2654:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[t+" minuti",t+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[t+" tunni",t+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[t+" kuu",t+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[t+" aasta",t+" aastat"]};return e?s[i][2]?s[i][2]:s[i][1]:n?s[i][0]:s[i][1]}t.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d p\xe4eva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},7287:function(t,e,i){!function(t){"use strict";t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},3875:function(t,e,i){!function(t){"use strict";var e={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},i={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};t.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(t){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(t)},meridiem:function(t,e,i){return t<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:"\u062b\u0627\u0646\u06cc\u0647 d%",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(t){return t.replace(/[\u06f0-\u06f9]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(i(9609))},3431:function(t,e,i){!function(t){"use strict";var e="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),i=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",e[7],e[8],e[9]];function n(t,n,s,r){var o="";switch(s){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":return r?"sekunnin":"sekuntia";case"m":return r?"minuutin":"minuutti";case"mm":o=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":o=r?"tunnin":"tuntia";break;case"d":return r?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":o=r?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return r?"kuukauden":"kuukausi";case"MM":o=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":o=r?"vuoden":"vuotta"}return function(t,n){return t<10?n?i[t]:e[t]:t}(t,r)+" "+o}t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1781:function(t,e,i){!function(t){"use strict";t.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1539:function(t,e,i){!function(t){"use strict";t.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})}(i(9609))},9847:function(t,e,i){!function(t){"use strict";t.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i(9609))},1717:function(t,e,i){!function(t){"use strict";t.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),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|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i(9609))},2250:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},7665:function(t,e,i){!function(t){"use strict";t.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","M\xe9itheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deaireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean\xe1","Feab","M\xe1rt","Aibr","Beal","M\xe9it","I\xfail","L\xfana","Me\xe1n","Deai","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 Satharn"],weekdaysShort:["Dom","Lua","M\xe1i","C\xe9a","D\xe9a","hAo","Sat"],weekdaysMin:["Do","Lu","M\xe1","Ce","D\xe9","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:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 aig] 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\xed",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(9609))},5214:function(t,e,i){!function(t){"use strict";t.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(9609))},6154:function(t,e,i){!function(t){"use strict";t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(t){return 0===t.indexOf("un")?"n"+t:"en "+t},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}})}(i(9609))},8518:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["thodde secondanim","thodde second"],ss:[t+" secondanim",t+" second"],m:["eka mintan","ek minute"],mm:[t+" mintanim",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voranim",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disanim",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineanim",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsanim",t+" vorsam"]};return e?s[i][0]:s[i][1]}t.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_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[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",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}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokalli"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"rati":t<12?"sokalli":t<16?"donparam":t<20?"sanje":"rati"}})}(i(9609))},9221:function(t,e,i){!function(t){"use strict";var e={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},i={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};t.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ac7\u0ab9\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(t){return t.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0ab0\u0abe\u0aa4"===e?t<4?t:t+12:"\u0ab8\u0ab5\u0abe\u0ab0"===e?t:"\u0aac\u0aaa\u0acb\u0ab0"===e?t>=10?t:t+12:"\u0ab8\u0abe\u0a82\u0a9c"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0ab0\u0abe\u0aa4":t<10?"\u0ab8\u0ab5\u0abe\u0ab0":t<17?"\u0aac\u0aaa\u0acb\u0ab0":t<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(i(9609))},4743:function(t,e,i){!function(t){"use strict";t.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(t){return 2===t?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":t+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(t){return 2===t?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":t+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(t){return 2===t?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":t+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(t){return 2===t?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":t%10==0&&10!==t?t+" \u05e9\u05e0\u05d4":t+" \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(t){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(t)},meridiem:function(t,e,i){return t<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":t<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":t<12?i?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":t<18?i?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(i(9609))},7339:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.defineLocale("hi",{months:"\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("_"),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("_"),monthsParseExact:!0,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"},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(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924"===e?t<4?t:t+12:"\u0938\u0941\u092c\u0939"===e?t:"\u0926\u094b\u092a\u0939\u0930"===e?t>=10?t:t+12:"\u0936\u093e\u092e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924":t<10?"\u0938\u0941\u092c\u0939":t<17?"\u0926\u094b\u092a\u0939\u0930":t<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(i(9609))},3224:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},856:function(t,e,i){!function(t){"use strict";var e="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function i(t,e,i,n){var s=t;switch(i){case"s":return n||e?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return s+(n||e)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(n||e?" perc":" perce");case"mm":return s+(n||e?" perc":" perce");case"h":return"egy"+(n||e?" \xf3ra":" \xf3r\xe1ja");case"hh":return s+(n||e?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(n||e?" nap":" napja");case"dd":return s+(n||e?" nap":" napja");case"M":return"egy"+(n||e?" h\xf3nap":" h\xf3napja");case"MM":return s+(n||e?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(n||e?" \xe9v":" \xe9ve");case"yy":return s+(n||e?" \xe9v":" \xe9ve")}return""}function n(t){return(t?"":"[m\xfalt] ")+"["+e[this.day()]+"] LT[-kor]"}t.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),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(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,i){return t<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%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:4}})}(i(9609))},6855:function(t,e,i){!function(t){"use strict";t.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(t){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(t)},meridiem:function(t){return t<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":t<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":t<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(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-\u056b\u0576":t+"-\u0580\u0564";default:return t}},week:{dow:1,doy:7}})}(i(9609))},2190:function(t,e,i){!function(t){"use strict";t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"siang":t<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:1,doy:7}})}(i(9609))},3887:function(t,e,i){!function(t){"use strict";function e(t){return t%100==11||t%10!=1}function i(t,i,n,s){var r=t+" ";switch(n){case"s":return i||s?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return e(t)?r+(i||s?"sek\xfandur":"sek\xfandum"):r+"sek\xfanda";case"m":return i?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return e(t)?r+(i||s?"m\xedn\xfatur":"m\xedn\xfatum"):i?r+"m\xedn\xfata":r+"m\xedn\xfatu";case"hh":return e(t)?r+(i||s?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return i?"dagur":s?"dag":"degi";case"dd":return e(t)?i?r+"dagar":r+(s?"daga":"d\xf6gum"):i?r+"dagur":r+(s?"dag":"degi");case"M":return i?"m\xe1nu\xf0ur":s?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return e(t)?i?r+"m\xe1nu\xf0ir":r+(s?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):i?r+"m\xe1nu\xf0ur":r+(s?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return i||s?"\xe1r":"\xe1ri";case"yy":return e(t)?r+(i||s?"\xe1r":"\xe1rum"):r+(i||s?"\xe1r":"\xe1ri")}}t.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},5890:function(t,e,i){!function(t){"use strict";t.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i(9609))},9270:function(t,e,i){!function(t){"use strict";t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i(9609))},6595:function(t,e,i){!function(t){"use strict";t.defineLocale("ja",{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:"\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(t){return"\u5348\u5f8c"===t},meridiem:function(t,e,i){return t<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(t){return t.week()=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"enjing":t<15?"siyang":t<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}})}(i(9609))},7477:function(t,e,i){!function(t){"use strict";t.defineLocale("ka",{months:{standalone:"\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("_"),format:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".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:"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:"[\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(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(t)?t.replace(/\u10d8$/,"\u10e8\u10d8"):t+"\u10e8\u10d8"},past:function(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(t)?t.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(t)?t.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):void 0},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(t){return 0===t?t:1===t?t+"-\u10da\u10d8":t<20||t<=100&&t%20==0||t%100==0?"\u10db\u10d4-"+t:t+"-\u10d4"},week:{dow:1,doy:7}})}(i(9609))},3978:function(t,e,i){!function(t){"use strict";var e={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};t.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},9205:function(t,e,i){!function(t){"use strict";var e={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},i={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};t.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(t){return"\u179b\u17d2\u1784\u17b6\u1785"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(i(9609))},25:function(t,e,i){!function(t){"use strict";var e={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},i={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};t.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(t){return t.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e){return 12===t&&(t=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===e?t<4?t:t+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===e?t:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===e?t>=10?t:t+12:"\u0cb8\u0c82\u0c9c\u0cc6"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":t<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":t<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":t<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(t){return t+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(i(9609))},427:function(t,e,i){!function(t){"use strict";t.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\uc77c";case"M":return t+"\uc6d4";case"w":case"W":return t+"\uc8fc";default:return t}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(t){return"\uc624\ud6c4"===t},meridiem:function(t,e,i){return t<12?"\uc624\uc804":"\uc624\ud6c4"}})}(i(9609))},9089:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];t.defineLocale("ku",{months:n,monthsShort:n,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(t){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(t)},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},9314:function(t,e,i){!function(t){"use strict";var e={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};t.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},3136:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={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 e?s[i][0]:s[i][1]}function i(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return i(0===e?t/10:e)}if(t<1e4){for(;t>=10;)t/=10;return i(t)}return i(t/=1e3)}t.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(t){return i(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t},past:function(t){return i(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d M\xe9int",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},9115:function(t,e,i){!function(t){"use strict";t.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(t){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===t},meridiem:function(t,e,i){return t<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(t){return"\u0e97\u0eb5\u0ec8"+t}})}(i(9609))},7087:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i,n){return e?s(i)[0]:n?s(i)[1]:s(i)[2]}function n(t){return t%10==0||t>10&&t<20}function s(t){return e[t].split("_")}function r(t,e,r,o){var a=t+" ";return 1===t?a+i(0,e,r[0],o):e?a+(n(t)?s(r)[1]:s(r)[0]):o?a+s(r)[1]:a+(n(t)?s(r)[1]:s(r)[2])}t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function(t,e,i,n){return e?"kelios sekund\u0117s":n?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})}(i(9609))},5683:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i){return i?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function n(t,n,s){return t+" "+i(e[s],t,n)}function s(t,n,s){return i(e[s],t,n)}t.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function(t,e){return e?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:n,m:s,mm:n,h:s,hh:n,d:s,dd:n,M:s,MM:n,y:s,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},9454:function(t,e,i){!function(t){"use strict";var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},5507:function(t,e,i){!function(t){"use strict";t.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(9609))},8466:function(t,e,i){!function(t){"use strict";t.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u043e\u0441\u043b\u0435 %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:"\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",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(9609))},2933:function(t,e,i){!function(t){"use strict";t.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===e&&t>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===e||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":t<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":t<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":t<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(i(9609))},9477:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){switch(i){case"s":return e?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return t+(e?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return t+(e?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return t+(e?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return t+(e?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return t+(e?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return t+(e?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return t}}t.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(t){return"\u04ae\u0425"===t},meridiem:function(t,e,i){return t<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s: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} \u04e9\u0434\u04e9\u0440/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" \u04e9\u0434\u04e9\u0440";default:return t}}})}(i(9609))},3597:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function n(t,e,i,n){var s="";if(e)switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":s="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":s="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":s="%d \u0924\u093e\u0938";break;case"d":s="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":s="%d \u0926\u093f\u0935\u0938";break;case"M":s="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":s="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u0947"}else switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":s="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":s="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":s="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":s="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":s="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":s="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":s="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return s.replace(/%d/i,t)}t.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===e?t<4?t:t+12:"\u0938\u0915\u093e\u0933\u0940"===e?t:"\u0926\u0941\u092a\u093e\u0930\u0940"===e?t>=10?t:t+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924\u094d\u0930\u0940":t<10?"\u0938\u0915\u093e\u0933\u0940":t<17?"\u0926\u0941\u092a\u093e\u0930\u0940":t<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(i(9609))},9965:function(t,e,i){!function(t){"use strict";t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i(9609))},5529:function(t,e,i){!function(t){"use strict";t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i(9609))},259:function(t,e,i){!function(t){"use strict";t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(9609))},8061:function(t,e,i){!function(t){"use strict";var e={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},i={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};t.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(t){return t.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(i(9609))},2618:function(t,e,i){!function(t){"use strict";t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_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",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}})}(i(9609))},8452:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u093f"===e?t<4?t:t+12:"\u092c\u093f\u0939\u093e\u0928"===e?t:"\u0926\u093f\u0909\u0901\u0938\u094b"===e?t>=10?t:t+12:"\u0938\u093e\u0901\u091d"===e?t+12:void 0},meridiem:function(t,e,i){return t<3?"\u0930\u093e\u0924\u093f":t<12?"\u092c\u093f\u0939\u093e\u0928":t<16?"\u0926\u093f\u0909\u0901\u0938\u094b":t<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}})}(i(9609))},413:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],s=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},1885:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],s=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},5107:function(t,e,i){!function(t){"use strict";t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_m\xe5n_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_m\xe5_ty_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 [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",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}})}(i(9609))},702:function(t,e,i){!function(t){"use strict";var e={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},i={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};t.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(t){return t.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0a30\u0a3e\u0a24"===e?t<4?t:t+12:"\u0a38\u0a35\u0a47\u0a30"===e?t:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===e?t>=10?t:t+12:"\u0a38\u0a3c\u0a3e\u0a2e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0a30\u0a3e\u0a24":t<10?"\u0a38\u0a35\u0a47\u0a30":t<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":t<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(i(9609))},1711:function(t,e,i){!function(t){"use strict";var e="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function n(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function s(t,e,i){var s=t+" ";switch(i){case"ss":return s+(n(t)?"sekundy":"sekund");case"m":return e?"minuta":"minut\u0119";case"mm":return s+(n(t)?"minuty":"minut");case"h":return e?"godzina":"godzin\u0119";case"hh":return s+(n(t)?"godziny":"godzin");case"MM":return s+(n(t)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return s+(n(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,n){return t?""===n?"("+i[t.month()]+"|"+e[t.month()]+")":/D MMMM/.test(n)?i[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),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:s,m:s,mm:s,h:s,hh:s,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8238:function(t,e,i){!function(t){"use strict";t.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba"})}(i(9609))},594:function(t,e,i){!function(t){"use strict";t.defineLocale("pt",{months:"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",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}})}(i(9609))},4681:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=" ";return(t%100>=20||t>=100&&t%100==0)&&(n=" de "),t+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._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:e,m:"un minut",mm:e,h:"o or\u0103",hh:e,d:"o zi",dd:e,M:"o lun\u0103",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(i(9609))},6201:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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",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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}var i=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];t.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?\] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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(t){if(t.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(t){if(t.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,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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0438":t<12?"\u0443\u0442\u0440\u0430":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-\u0439";case"D":return t+"-\u0433\u043e";case"w":case"W":return t+"-\u044f";default:return t}},week:{dow:1,doy:4}})}(i(9609))},2912:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];t.defineLocale("sd",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(9609))},6002:function(t,e,i){!function(t){"use strict";t.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},7942:function(t,e,i){!function(t){"use strict";t.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(t){return t+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(t){return"\u0db4.\u0dc0."===t||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===t},meridiem:function(t,e,i){return t>11?i?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":i?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(i(9609))},5577:function(t,e,i){!function(t){"use strict";var e="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),i="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function n(t){return t>1&&t<5}function s(t,e,i,s){var r=t+" ";switch(i){case"s":return e||s?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return e||s?r+(n(t)?"sekundy":"sek\xfand"):r+"sekundami";case"m":return e?"min\xfata":s?"min\xfatu":"min\xfatou";case"mm":return e||s?r+(n(t)?"min\xfaty":"min\xfat"):r+"min\xfatami";case"h":return e?"hodina":s?"hodinu":"hodinou";case"hh":return e||s?r+(n(t)?"hodiny":"hod\xedn"):r+"hodinami";case"d":return e||s?"de\u0148":"d\u0148om";case"dd":return e||s?r+(n(t)?"dni":"dn\xed"):r+"d\u0148ami";case"M":return e||s?"mesiac":"mesiacom";case"MM":return e||s?r+(n(t)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return e||s?"rok":"rokom";case"yy":return e||s?r+(n(t)?"roky":"rokov"):r+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:i,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:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [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}})}(i(9609))},1775:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"nekaj sekund":"nekaj sekundami";case"ss":return s+(1===t?e?"sekundo":"sekundi":2===t?e||n?"sekundi":"sekundah":t<5?e||n?"sekunde":"sekundah":"sekund");case"m":return e?"ena minuta":"eno minuto";case"mm":return s+(1===t?e?"minuta":"minuto":2===t?e||n?"minuti":"minutama":t<5?e||n?"minute":"minutami":e||n?"minut":"minutami");case"h":return e?"ena ura":"eno uro";case"hh":return s+(1===t?e?"ura":"uro":2===t?e||n?"uri":"urama":t<5?e||n?"ure":"urami":e||n?"ur":"urami");case"d":return e||n?"en dan":"enim dnem";case"dd":return s+(1===t?e||n?"dan":"dnem":2===t?e||n?"dni":"dnevoma":e||n?"dni":"dnevi");case"M":return e||n?"en mesec":"enim mesecem";case"MM":return s+(1===t?e||n?"mesec":"mesecem":2===t?e||n?"meseca":"mesecema":t<5?e||n?"mesece":"meseci":e||n?"mesecev":"meseci");case"y":return e||n?"eno leto":"enim letom";case"yy":return s+(1===t?e||n?"leto":"letom":2===t?e||n?"leti":"letoma":t<5?e||n?"leta":"leti":e||n?"let":"leti")}}t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s: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:7}})}(i(9609))},6823:function(t,e,i){!function(t){"use strict";t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(t){return"M"===t.charAt(0)},meridiem:function(t,e,i){return t<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}})}(i(9609))},3848:function(t,e,i){!function(t){"use strict";var e={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\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\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"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"\u0434\u0430\u043d",dd:e.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:e.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},9038:function(t,e,i){!function(t){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"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] [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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},6173:function(t,e,i){!function(t){"use strict";t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(t,e,i){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(i(9609))},5788:function(t,e,i){!function(t){"use strict";t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"e":1===e||2===e?"a":"e")},week:{dow:1,doy:4}})}(i(9609))},6882:function(t,e,i){!function(t){"use strict";t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm: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:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(i(9609))},2678:function(t,e,i){!function(t){"use strict";var e={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},i={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};t.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(t){return t+"\u0bb5\u0ba4\u0bc1"},preparse:function(t){return t.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e,i){return t<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":t<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":t<10?" \u0b95\u0bbe\u0bb2\u0bc8":t<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":t<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":t<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(t,e){return 12===t&&(t=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===e?t<2?t:t+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===e||"\u0b95\u0bbe\u0bb2\u0bc8"===e||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})}(i(9609))},2797:function(t,e,i){!function(t){"use strict";t.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===e?t<4?t:t+12:"\u0c09\u0c26\u0c2f\u0c02"===e?t:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===e?t>=10?t:t+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":t<10?"\u0c09\u0c26\u0c2f\u0c02":t<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":t<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(i(9609))},2447:function(t,e,i){!function(t){"use strict";t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},1335:function(t,e,i){!function(t){"use strict";var e={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};t.defineLocale("tg",{months:"\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:"[\u041f\u0430\u0433\u043e\u04b3 \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0448\u0430\u0431"===e?t<4?t:t+12:"\u0441\u0443\u0431\u04b3"===e?t:"\u0440\u04ef\u0437"===e?t>=11?t:t+12:"\u0431\u0435\u0433\u043e\u04b3"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0448\u0430\u0431":t<11?"\u0441\u0443\u0431\u04b3":t<16?"\u0440\u04ef\u0437":t<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},8667:function(t,e,i){!function(t){"use strict";t.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(t){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===t},meridiem:function(t,e,i){return t<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",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(i(9609))},9914:function(t,e,i){!function(t){"use strict";t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(i(9609))},1389:function(t,e,i){!function(t){"use strict";var e="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function i(t,i,n,s){var r=function(t){var i=Math.floor(t%1e3/100),n=Math.floor(t%100/10),s=t%10,r="";return i>0&&(r+=e[i]+"vatlh"),n>0&&(r+=(""!==r?" ":"")+e[n]+"maH"),s>0&&(r+=(""!==r?" ":"")+e[s]),""===r?"pagh":r}(t);switch(n){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}t.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"},past:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu\u2019":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"},s:"puS lup",ss:i,m:"wa\u2019 tup",mm:i,h:"wa\u2019 rep",hh:i,d:"wa\u2019 jaj",dd:i,M:"wa\u2019 jar",MM:i,y:"wa\u2019 DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},3578:function(t,e,i){!function(t){"use strict";var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};t.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".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 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",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(t,i){switch(i){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'\u0131nc\u0131";var n=t%10;return t+(e[n]||e[t%100-n]||e[t>=100?100:null])}},week:{dow:1,doy:7}})}(i(9609))},6969:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[t+" m\xeduts",t+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[t+" \xfeoras",t+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return n||e?s[i][0]:s[i][1]}t.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,i){return t>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s: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}})}(i(9609))},690:function(t,e,i){!function(t){"use strict";t.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(i(9609))},6509:function(t,e,i){!function(t){"use strict";t.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(i(9609))},55:function(t,e,i){!function(t){"use strict";t.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===e||"\u0633\u06d5\u06be\u06d5\u0631"===e||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===e?t:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===e||"\u0643\u06d5\u0686"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":n<900?"\u0633\u06d5\u06be\u06d5\u0631":n<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":n<1230?"\u0686\u06c8\u0634":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return t+"-\u06be\u06d5\u067e\u062a\u06d5";default:return t}},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(i(9609))},2452:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===i?e?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}function i(t){return function(){return t+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}t.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function(t,e){var i={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===t?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):t?i[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(e)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:i.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:i("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:i("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:i("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:i("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return i("[\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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0456":t<12?"\u0440\u0430\u043d\u043a\u0443":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-\u0439";case"D":return t+"-\u0433\u043e";default:return t}},week:{dow:1,doy:7}})}(i(9609))},1151:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];t.defineLocale("ur",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(9609))},6547:function(t,e,i){!function(t){"use strict";t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(i(9609))},1555:function(t,e,i){!function(t){"use strict";t.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(i(9609))},6541:function(t,e,i){!function(t){"use strict";t.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".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(t){return/^ch$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"sa":"SA":i?"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 r\u1ed3i 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",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(i(9609))},2401:function(t,e,i){!function(t){"use strict";t.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},2341:function(t,e,i){!function(t){"use strict";t.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(i(9609))},619:function(t,e,i){!function(t){"use strict";t.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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|\u5468)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u5468";default:return t}},relativeTime:{future:"%s\u5185",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",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(i(9609))},7058:function(t,e,i){!function(t){"use strict";t.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i(9609))},2782:function(t,e,i){!function(t){"use strict";t.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i(9609))},9609:function(t,e,i){(t=i.nmd(t)).exports=function(){"use strict";var e,n;function s(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var i,n=[];for(i=0;i>>0,n=0;n0)for(i=0;i<_.length;i++)a(s=e[n=_[i]])||(t[n]=s);return t}var w=!1;function b(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,s.updateOffset(this),w=!1)}function v(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function A(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=A(e)),i}function T(t,e,i){var n,s=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),o=0;for(n=0;n=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},K={};function U(t,e,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),t&&(K[t]=s),e&&(K[e[0]]=function(){return B(s.apply(this,arguments),e[1],e[2])}),i&&(K[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function V(t,e){return t.isValid()?(e=q(e,t.localeData()),N[e]=N[e]||function(t){var e,i,n,s=t.match(j);for(e=0,i=s.length;e=0&&Y.test(t);)t=t.replace(Y,n),Y.lastIndex=0,i-=1;return t}var $=/\d/,W=/\d\d/,G=/\d{3}/,J=/\d{4}/,Z=/[+-]?\d{6}/,Q=/\d\d?/,X=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,it=/\d{1,4}/,nt=/[+-]?\d{1,6}/,st=/\d+/,rt=/[+-]?\d+/,ot=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,ct=/[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,ut={};function lt(t,e,i){ut[t]=R(e)?e:function(t,n){return t&&i?i:e}}function ht(t,e){return h(ut,t)?ut[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,s){return e||i||n||s})))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function pt(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),c(e)&&(n=function(t,i){i[e]=k(t)}),i=0;i68?1900:2e3)};var wt,bt=vt("FullYear",!0);function vt(t,e){return function(i){return null!=i?(kt(this,t,i),s.updateOffset(this,e),this):At(this,t)}}function At(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function kt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&yt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Tt(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function Tt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?yt(t)?29:28:31-i%7%2}wt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e=0?(a=new Date(t+400,e,i,n,s,r,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,s,r,o),a}function It(t){var e;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Ft(t,e,i){var n=7+e-i;return-(7+It(t,0,n).getUTCDay()-e)%7+n-1}function Ht(t,e,i,n,s){var r,o,a=1+7*(e-1)+(7+i-n)%7+Ft(t,n,s);return a<=0?o=_t(r=t-1)+a:a>_t(t)?(r=t+1,o=a-_t(t)):(r=t,o=a),{year:r,dayOfYear:o}}function Ot(t,e,i){var n,s,r=Ft(t.year(),e,i),o=Math.floor((t.dayOfYear()-r-1)/7)+1;return o<1?n=o+Bt(s=t.year()-1,e,i):o>Bt(t.year(),e,i)?(n=o-Bt(t.year(),e,i),s=t.year()+1):(s=t.year(),n=o),{week:n,year:s}}function Bt(t,e,i){var n=Ft(t,e,i),s=Ft(t+1,e,i);return(_t(t)-n+s)/7}function jt(t,e){return t.slice(e,7).concat(t.slice(0,e))}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),z("week","w"),z("isoWeek","W"),O("week",5),O("isoWeek",5),lt("w",Q),lt("ww",Q,W),lt("W",Q),lt("WW",Q,W),gt(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=k(t)}),U("d",0,"do","day"),U("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),U("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),U("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),z("day","d"),z("weekday","e"),z("isoWeekday","E"),O("day",11),O("weekday",11),O("isoWeekday",11),lt("d",Q),lt("e",Q),lt("E",Q),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),gt(["dd","ddd","dddd"],function(t,e,i,n){var s=i._locale.weekdaysParse(t,n,i._strict);null!=s?e.d=s:p(i).invalidWeekday=t}),gt(["d","e","E"],function(t,e,i,n){e[n]=k(t)});var Yt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Kt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Ut(t,e,i){var n,s,r,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(s=wt.call(this._weekdaysParse,o))?s:null:"ddd"===e?-1!==(s=wt.call(this._shortWeekdaysParse,o))?s:null:-1!==(s=wt.call(this._minWeekdaysParse,o))?s:null:"dddd"===e?-1!==(s=wt.call(this._weekdaysParse,o))||-1!==(s=wt.call(this._shortWeekdaysParse,o))||-1!==(s=wt.call(this._minWeekdaysParse,o))?s:null:"ddd"===e?-1!==(s=wt.call(this._shortWeekdaysParse,o))||-1!==(s=wt.call(this._weekdaysParse,o))||-1!==(s=wt.call(this._minWeekdaysParse,o))?s:null:-1!==(s=wt.call(this._minWeekdaysParse,o))||-1!==(s=wt.call(this._weekdaysParse,o))||-1!==(s=wt.call(this._shortWeekdaysParse,o))?s:null}var Vt=ct,qt=ct,$t=ct;function Wt(){function t(t,e){return e.length-t.length}var e,i,n,s,r,o=[],a=[],c=[],u=[];for(e=0;e<7;e++)i=f([2e3,1]).day(e),n=this.weekdaysMin(i,""),s=this.weekdaysShort(i,""),r=this.weekdays(i,""),o.push(n),a.push(s),c.push(r),u.push(n),u.push(s),u.push(r);for(o.sort(t),a.sort(t),c.sort(t),u.sort(t),e=0;e<7;e++)a[e]=dt(a[e]),c[e]=dt(c[e]),u[e]=dt(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Gt(){return this.hours()%12||12}function Jt(t,e){U(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Zt(t,e){return e._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Gt),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+Gt.apply(this)+B(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Gt.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),Jt("a",!0),Jt("A",!1),z("hour","h"),O("hour",13),lt("a",Zt),lt("A",Zt),lt("H",Q),lt("h",Q),lt("k",Q),lt("HH",Q,W),lt("hh",Q,W),lt("kk",Q,W),lt("hmm",X),lt("hmmss",tt),lt("Hmm",X),lt("Hmmss",tt),pt(["H","HH"],3),pt(["k","kk"],function(t,e,i){var n=k(t);e[3]=24===n?0:n}),pt(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),pt(["h","hh"],function(t,e,i){e[3]=k(t),p(i).bigHour=!0}),pt("hmm",function(t,e,i){var n=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n)),p(i).bigHour=!0}),pt("hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n,2)),e[5]=k(t.substr(s)),p(i).bigHour=!0}),pt("Hmm",function(t,e,i){var n=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n))}),pt("Hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n,2)),e[5]=k(t.substr(s))});var Qt,Xt=vt("Hours",!0),te={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:St,monthsShort:Mt,week:{dow:0,doy:6},weekdays:Yt,weekdaysMin:Kt,weekdaysShort:Nt,meridiemParse:/[ap]\.?m?\.?/i},ee={},ie={};function ne(t){return t?t.toLowerCase().replace("_","-"):t}function se(e){var n=null;if(!ee[e]&&t&&t.exports)try{n=Qt._abbr,i(6700)("./"+e),re(n)}catch(s){}return ee[e]}function re(t,e){var i;return t&&((i=a(e)?ae(t):oe(t,e))?Qt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Qt._abbr}function oe(t,e){if(null!==e){var i,n=te;if(e.abbr=t,null!=ee[t])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ee[t]._config;else if(null!=e.parentLocale)if(null!=ee[e.parentLocale])n=ee[e.parentLocale]._config;else{if(null==(i=se(e.parentLocale)))return ie[e.parentLocale]||(ie[e.parentLocale]=[]),ie[e.parentLocale].push({name:t,config:e}),null;n=i._config}return ee[t]=new P(D(n,e)),ie[t]&&ie[t].forEach(function(t){oe(t.name,t.config)}),re(t),ee[t]}return delete ee[t],null}function ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Qt;if(!r(t)){if(e=se(t))return e;t=[t]}return function(t){for(var e,i,n,s,r=0;r0;){if(n=se(s.slice(0,e).join("-")))return n;if(i&&i.length>=e&&T(s,i,!0)>=e-1)break;e--}r++}return Qt}(t)}function ce(t){var e,i=t._a;return i&&-2===p(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>Tt(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,p(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),p(t)._overflowWeeks&&-1===e&&(e=7),p(t)._overflowWeekday&&-1===e&&(e=8),p(t).overflow=e),t}function ue(t,e,i){return null!=t?t:null!=e?e:i}function le(t){var e,i,n,r,o,a=[];if(!t._d){for(n=function(t){var e=new Date(s.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,s,r,o,a,c;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)r=1,o=4,i=ue(e.GG,t._a[0],Ot(Te(),1,4).year),n=ue(e.W,1),((s=ue(e.E,1))<1||s>7)&&(c=!0);else{r=t._locale._week.dow,o=t._locale._week.doy;var u=Ot(Te(),r,o);i=ue(e.gg,t._a[0],u.year),n=ue(e.w,u.week),null!=e.d?((s=e.d)<0||s>6)&&(c=!0):null!=e.e?(s=e.e+r,(e.e<0||e.e>6)&&(c=!0)):s=r}n<1||n>Bt(i,r,o)?p(t)._overflowWeeks=!0:null!=c?p(t)._overflowWeekday=!0:(a=Ht(i,n,s,r,o),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(o=ue(t._a[0],n[0]),(t._dayOfYear>_t(o)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),i=It(o,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];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?It:zt).apply(null,a),r=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&&void 0!==t._w.d&&t._w.d!==r&&(p(t).weekdayMismatch=!0)}}var he=/^\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)?)?$/,de=/^\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)?)?$/,fe=/Z|[+-]\d\d(?::?\d\d)?/,pe=[["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}/]],ge=[["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/]],me=/^\/?Date\((\-?\d+)/i;function _e(t){var e,i,n,s,r,o,a=t._i,c=he.exec(a)||de.exec(a);if(c){for(p(t).iso=!0,e=0,i=pe.length;e0&&p(t).unusedInput.push(o),a=a.slice(a.indexOf(i)+i.length),u+=i.length),K[r]?(i?p(t).empty=!1:p(t).unusedTokens.push(r),mt(r,i,t)):t._strict&&!i&&p(t).unusedTokens.push(r);p(t).charsLeftOver=c-u,a.length>0&&p(t).unusedInput.push(a),t._a[3]<=12&&!0===p(t).bigHour&&t._a[3]>0&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),le(t),ce(t)}else be(t);else _e(t)}function Ae(t){var e=t._i,i=t._f;return t._locale=t._locale||ae(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),v(e)?new b(ce(e)):(u(e)?t._d=e:r(i)?function(t){var e,i,n,s,r;if(0===t._f.length)return p(t).invalidFormat=!0,void(t._d=new Date(NaN));for(s=0;sthis?this:t:m()});function Me(t,e){var i,n;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Te();for(i=e[0],n=1;n=0?new Date(t+400,e,i)-ti:new Date(t,e,i).valueOf()}function ni(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-ti:Date.UTC(t,e,i)}function si(t,e){U(0,[t,t.length],0,e)}function ri(t,e,i,n,s){var r;return null==t?Ot(this,n,s).year:(e>(r=Bt(t,n,s))&&(e=r),oi.call(this,t,e,i,n,s))}function oi(t,e,i,n,s){var r=Ht(t,e,i,n,s),o=It(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),si("gggg","weekYear"),si("ggggg","weekYear"),si("GGGG","isoWeekYear"),si("GGGGG","isoWeekYear"),z("weekYear","gg"),z("isoWeekYear","GG"),O("weekYear",1),O("isoWeekYear",1),lt("G",rt),lt("g",rt),lt("GG",Q,W),lt("gg",Q,W),lt("GGGG",it,J),lt("gggg",it,J),lt("GGGGG",nt,Z),lt("ggggg",nt,Z),gt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=k(t)}),gt(["gg","GG"],function(t,e,i,n){e[n]=s.parseTwoDigitYear(t)}),U("Q",0,"Qo","quarter"),z("quarter","Q"),O("quarter",7),lt("Q",$),pt("Q",function(t,e){e[1]=3*(k(t)-1)}),U("D",["DD",2],"Do","date"),z("date","D"),O("date",9),lt("D",Q),lt("DD",Q,W),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),pt(["D","DD"],2),pt("Do",function(t,e){e[2]=k(t.match(Q)[0])});var ai=vt("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),z("dayOfYear","DDD"),O("dayOfYear",4),lt("DDD",et),lt("DDDD",G),pt(["DDD","DDDD"],function(t,e,i){i._dayOfYear=k(t)}),U("m",["mm",2],0,"minute"),z("minute","m"),O("minute",14),lt("m",Q),lt("mm",Q,W),pt(["m","mm"],4);var ci=vt("Minutes",!1);U("s",["ss",2],0,"second"),z("second","s"),O("second",15),lt("s",Q),lt("ss",Q,W),pt(["s","ss"],5);var ui,li=vt("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),z("millisecond","ms"),O("millisecond",16),lt("S",et,$),lt("SS",et,W),lt("SSS",et,G),ui="SSSS";ui.length<=9;ui+="S")lt(ui,st);function hi(t,e){e[6]=k(1e3*("0."+t))}for(ui="S";ui.length<=9;ui+="S")pt(ui,hi);var di=vt("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var fi=b.prototype;function pi(t){return t}fi.add=Ve,fi.calendar=function(t,e){var i=t||Te(),n=Ie(i,this).startOf("day"),r=s.calendarFormat(this,n)||"sameElse",o=e&&(R(e[r])?e[r].call(this,i):e[r]);return this.format(o||this.localeData().calendar(r,this,Te(i)))},fi.clone=function(){return new b(this)},fi.diff=function(t,e,i){var n,s,r;if(!this.isValid())return NaN;if(!(n=Ie(t,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),e=I(e)){case"year":r=$e(this,n)/12;break;case"month":r=$e(this,n);break;case"quarter":r=$e(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-s)/864e5;break;case"week":r=(this-n-s)/6048e5;break;default:r=this-n}return i?r:A(r)},fi.endOf=function(t){var e;if(void 0===(t=I(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?ni:ii;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Xe-ei(e+(this._isUTC?0:this.utcOffset()*Qe),Xe)-1;break;case"minute":e=this._d.valueOf(),e+=Qe-ei(e,Qe)-1;break;case"second":e=this._d.valueOf(),e+=Ze-ei(e,Ze)-1}return this._d.setTime(e),s.updateOffset(this,!0),this},fi.format=function(t){t||(t=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var e=V(this,t);return this.localeData().postformat(e)},fi.from=function(t,e){return this.isValid()&&(v(t)&&t.isValid()||Te(t).isValid())?je({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},fi.fromNow=function(t){return this.from(Te(),t)},fi.to=function(t,e){return this.isValid()&&(v(t)&&t.isValid()||Te(t).isValid())?je({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},fi.toNow=function(t){return this.to(Te(),t)},fi.get=function(t){return R(this[t=I(t)])?this[t]():this},fi.invalidAt=function(){return p(this).overflow},fi.isAfter=function(t,e){var i=v(t)?t:Te(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()9999?V(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):R(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(i,"Z")):V(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},fi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},fi.toJSON=function(){return this.isValid()?this.toISOString():null},fi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},fi.unix=function(){return Math.floor(this.valueOf()/1e3)},fi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},fi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},fi.year=bt,fi.isLeapYear=function(){return yt(this.year())},fi.weekYear=function(t){return ri.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},fi.isoWeekYear=function(t){return ri.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},fi.quarter=fi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},fi.month=Rt,fi.daysInMonth=function(){return Tt(this.year(),this.month())},fi.week=fi.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},fi.isoWeek=fi.isoWeeks=function(t){var e=Ot(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},fi.weeksInYear=function(){var t=this.localeData()._week;return Bt(this.year(),t.dow,t.doy)},fi.isoWeeksInYear=function(){return Bt(this.year(),1,4)},fi.date=ai,fi.day=fi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},fi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},fi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},fi.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},fi.hour=fi.hours=Xt,fi.minute=fi.minutes=ci,fi.second=fi.seconds=li,fi.millisecond=fi.milliseconds=di,fi.utcOffset=function(t,e,i){var n,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=ze(at,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Fe(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?Ue(this,je(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Fe(this)},fi.utc=function(t){return this.utcOffset(0,t)},fi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Fe(this),"m")),this},fi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=ze(ot,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},fi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Te(t).utcOffset():0,(this.utcOffset()-t)%60==0)},fi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fi.isLocal=function(){return!!this.isValid()&&!this._isUTC},fi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fi.isUtc=He,fi.isUTC=He,fi.zoneAbbr=function(){return this._isUTC?"UTC":""},fi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fi.dates=S("dates accessor is deprecated. Use date instead.",ai),fi.months=S("months accessor is deprecated. Use month instead",Rt),fi.years=S("years accessor is deprecated. Use year instead",bt),fi.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),fi.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(y(t,this),(t=Ae(t))._a){var e=t._isUTC?f(t._a):Te(t._a);this._isDSTShifted=this.isValid()&&T(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var gi=P.prototype;function mi(t,e,i,n){var s=ae(),r=f().set(n,e);return s[i](r,t)}function _i(t,e,i){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return mi(t,e,i,"month");var n,s=[];for(n=0;n<12;n++)s[n]=mi(t,n,i,"month");return s}function yi(t,e,i,n){"boolean"==typeof t?(c(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,c(e)&&(i=e,e=void 0),e=e||"");var s,r=ae(),o=t?r._week.dow:0;if(null!=i)return mi(e,(i+o)%7,n,"day");var a=[];for(s=0;s<7;s++)a[s]=mi(e,(s+o)%7,n,"day");return a}gi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return R(n)?n.call(e,i):n},gi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},gi.invalidDate=function(){return this._invalidDate},gi.ordinal=function(t){return this._ordinal.replace("%d",t)},gi.preparse=pi,gi.postformat=pi,gi.relativeTime=function(t,e,i,n){var s=this._relativeTime[i];return R(s)?s(t,e,i,n):s.replace(/%d/i,t)},gi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return R(i)?i(e):i.replace(/%s/i,e)},gi.set=function(t){var e,i;for(i in t)R(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gi.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ct).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},gi.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ct.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gi.monthsParse=function(t,e,i){var n,s,r;if(this._monthsParseExact)return Et.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=f([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},gi.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Lt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Pt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},gi.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Lt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Dt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},gi.week=function(t){return Ot(t,this._week.dow,this._week.doy).week},gi.firstDayOfYear=function(){return this._week.doy},gi.firstDayOfWeek=function(){return this._week.dow},gi.weekdays=function(t,e){var i=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?jt(i,this._week.dow):t?i[t.day()]:i},gi.weekdaysMin=function(t){return!0===t?jt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},gi.weekdaysShort=function(t){return!0===t?jt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},gi.weekdaysParse=function(t,e,i){var n,s,r;if(this._weekdaysParseExact)return Ut.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=f([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},gi.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Vt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},gi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$t),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},gi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},re("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===k(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),s.lang=S("moment.lang is deprecated. Use moment.locale instead.",re),s.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ae);var wi=Math.abs;function bi(t,e,i,n){var s=je(e,i);return t._milliseconds+=n*s._milliseconds,t._days+=n*s._days,t._months+=n*s._months,t._bubble()}function vi(t){return t<0?Math.floor(t):Math.ceil(t)}function Ai(t){return 4800*t/146097}function ki(t){return 146097*t/4800}function Ti(t){return function(){return this.as(t)}}var Ci=Ti("ms"),Si=Ti("s"),Mi=Ti("m"),Ei=Ti("h"),xi=Ti("d"),Ri=Ti("w"),Di=Ti("M"),Pi=Ti("Q"),Li=Ti("y");function zi(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ii=zi("milliseconds"),Fi=zi("seconds"),Hi=zi("minutes"),Oi=zi("hours"),Bi=zi("days"),ji=zi("months"),Yi=zi("years"),Ni=Math.round,Ki={ss:44,s:45,m:45,h:22,d:26,M:11};function Ui(t,e,i,n,s){return s.relativeTime(e||1,!!i,t,n)}var Vi=Math.abs;function qi(t){return(t>0)-(t<0)||+t}function $i(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=Vi(this._milliseconds)/1e3,n=Vi(this._days),s=Vi(this._months);t=A(i/60),e=A(t/60),i%=60,t%=60;var r=A(s/12),o=s%=12,a=n,c=e,u=t,l=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",f=qi(this._months)!==qi(h)?"-":"",p=qi(this._days)!==qi(h)?"-":"",g=qi(this._milliseconds)!==qi(h)?"-":"";return d+"P"+(r?f+r+"Y":"")+(o?f+o+"M":"")+(a?p+a+"D":"")+(c||u||l?"T":"")+(c?g+c+"H":"")+(u?g+u+"M":"")+(l?g+l+"S":"")}var Wi=xe.prototype;return Wi.isValid=function(){return this._isValid},Wi.abs=function(){var t=this._data;return this._milliseconds=wi(this._milliseconds),this._days=wi(this._days),this._months=wi(this._months),t.milliseconds=wi(t.milliseconds),t.seconds=wi(t.seconds),t.minutes=wi(t.minutes),t.hours=wi(t.hours),t.months=wi(t.months),t.years=wi(t.years),this},Wi.add=function(t,e){return bi(this,t,e,1)},Wi.subtract=function(t,e){return bi(this,t,e,-1)},Wi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=I(t))||"quarter"===t||"year"===t)switch(i=this._months+Ai(e=this._days+n/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(ki(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Wi.asMilliseconds=Ci,Wi.asSeconds=Si,Wi.asMinutes=Mi,Wi.asHours=Ei,Wi.asDays=xi,Wi.asWeeks=Ri,Wi.asMonths=Di,Wi.asQuarters=Pi,Wi.asYears=Li,Wi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Wi._bubble=function(){var t,e,i,n,s,r=this._milliseconds,o=this._days,a=this._months,c=this._data;return r>=0&&o>=0&&a>=0||r<=0&&o<=0&&a<=0||(r+=864e5*vi(ki(a)+o),o=0,a=0),c.milliseconds=r%1e3,t=A(r/1e3),c.seconds=t%60,e=A(t/60),c.minutes=e%60,i=A(e/60),c.hours=i%24,o+=A(i/24),a+=s=A(Ai(o)),o-=vi(ki(s)),n=A(a/12),a%=12,c.days=o,c.months=a,c.years=n,this},Wi.clone=function(){return je(this)},Wi.get=function(t){return t=I(t),this.isValid()?this[t+"s"]():NaN},Wi.milliseconds=Ii,Wi.seconds=Fi,Wi.minutes=Hi,Wi.hours=Oi,Wi.days=Bi,Wi.weeks=function(){return A(this.days()/7)},Wi.months=ji,Wi.years=Yi,Wi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=function(t,e,i){var n=je(t).abs(),s=Ni(n.as("s")),r=Ni(n.as("m")),o=Ni(n.as("h")),a=Ni(n.as("d")),c=Ni(n.as("M")),u=Ni(n.as("y")),l=s<=Ki.ss&&["s",s]||s0,l[4]=i,Ui.apply(null,l)}(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Wi.toISOString=$i,Wi.toString=$i,Wi.toJSON=$i,Wi.locale=We,Wi.localeData=Je,Wi.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$i),Wi.lang=Ge,U("X",0,0,"unix"),U("x",0,0,"valueOf"),lt("x",rt),lt("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),pt("x",function(t,e,i){i._d=new Date(k(t))}),s.version="2.24.0",e=Te,s.fn=fi,s.min=function(){return Me("isBefore",[].slice.call(arguments,0))},s.max=function(){return Me("isAfter",[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=f,s.unix=function(t){return Te(1e3*t)},s.months=function(t,e){return _i(t,e,"months")},s.isDate=u,s.locale=re,s.invalid=m,s.duration=je,s.isMoment=v,s.weekdays=function(t,e,i){return yi(t,e,i,"weekdays")},s.parseZone=function(){return Te.apply(null,arguments).parseZone()},s.localeData=ae,s.isDuration=Re,s.monthsShort=function(t,e){return _i(t,e,"monthsShort")},s.weekdaysMin=function(t,e,i){return yi(t,e,i,"weekdaysMin")},s.defineLocale=oe,s.updateLocale=function(t,e){if(null!=e){var i,n,s=te;null!=(n=se(t))&&(s=n._config),(i=new P(e=D(s,e))).parentLocale=ee[t],ee[t]=i,re(t)}else null!=ee[t]&&(null!=ee[t].parentLocale?ee[t]=ee[t].parentLocale:null!=ee[t]&&delete ee[t]);return ee[t]},s.locales=function(){return M(ee)},s.weekdaysShort=function(t,e,i){return yi(t,e,i,"weekdaysShort")},s.normalizeUnits=I,s.relativeTimeRounding=function(t){return void 0===t?Ni:"function"==typeof t&&(Ni=t,!0)},s.relativeTimeThreshold=function(t,e){return void 0!==Ki[t]&&(void 0===e?Ki[t]:(Ki[t]=e,"s"===t&&(Ki.ss=e-1),!0))},s.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},s.prototype=fi,s.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"},s}()},9997:function(t){t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,(function(e){return t[e]}).bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=22)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i=4){for(var t=arguments.length,e=Array(t),i=0;i=3){for(var t=arguments.length,e=Array(t),i=0;i=2){for(var t=arguments.length,e=Array(t),i=0;i=1){for(var t=arguments.length,e=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:r.JsonService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=e,this._jsonService=new i(["application/jwk-set+json"])}return t.prototype.getMetadata=function(){var t=this;return this._settings.metadata?(s.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(s.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then(function(e){return s.Log.debug("MetadataService.getMetadata: json received"),t._settings.metadata=e,e})):(s.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},t.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},t.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},t.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},t.prototype.getTokenEndpoint=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",t)},t.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},t.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},t.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},t.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},t.prototype._getMetadataProperty=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s.Log.debug("MetadataService.getMetadataProperty for: "+t),this.getMetadata().then(function(i){if(s.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===i[t]){if(!0===e)return void s.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+t);throw s.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+t),new Error("Metadata does not contain property "+t)}return i[t]})},t.prototype.getSigningKeys=function(){var t=this;return this._settings.signingKeys?(s.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then(function(e){return s.Log.debug("MetadataService.getSigningKeys: jwks_uri received",e),t._jsonService.getJson(e).then(function(e){if(s.Log.debug("MetadataService.getSigningKeys: key set received",e),!e.keys)throw s.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return t._settings.signingKeys=e.keys,t._settings.signingKeys})})},n(t,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration"))),this._metadataUrl}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UrlUtility=void 0;var n=i(0),s=i(1);e.UrlUtility=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.addQueryParam=function(t,e,i){return t.indexOf("?")<0&&(t+="?"),"?"!==t[t.length-1]&&(t+="&"),t+=encodeURIComponent(e),(t+="=")+encodeURIComponent(i)},t.parseUrlFragment=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.Global;"string"!=typeof t&&(t=i.location.href);var r=t.lastIndexOf(e);r>=0&&(t=t.substr(r+1)),"?"===e&&(r=t.indexOf("#"))>=0&&(t=t.substr(0,r));for(var o,a={},c=/([^&=]+)=([^&]*)/g,u=0;o=c.exec(t);)if(a[decodeURIComponent(o[1])]=decodeURIComponent(o[2]),u++>50)return n.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",t),{error:"Response exceeded expected number of parameters"};for(var l in a)return a;return{}},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JoseUtil=void 0;var n=i(25),s=function(t){return t&&t.__esModule?t:{default:t}}(i(32));e.JoseUtil=(0,s.default)({jws:n.jws,KeyUtil:n.KeyUtil,X509:n.X509,crypto:n.crypto,hextob64u:n.hextob64u,b64tohex:n.b64tohex,AllowedSigningAlgs:n.AllowedSigningAlgs})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OidcClientSettings=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.authority,s=e.metadataUrl,r=e.metadata,h=e.signingKeys,d=e.client_id,f=e.client_secret,p=e.response_type,g=void 0===p?u:p,m=e.scope,_=void 0===m?l:m,y=e.redirect_uri,w=e.post_logout_redirect_uri,b=e.prompt,v=e.display,A=e.max_age,k=e.ui_locales,T=e.acr_values,C=e.resource,S=e.response_mode,M=e.filterProtocolClaims,E=void 0===M||M,x=e.loadUserInfo,R=void 0===x||x,D=e.staleStateAge,P=void 0===D?900:D,L=e.clockSkew,z=void 0===L?300:L,I=e.userInfoJwtIssuer,F=void 0===I?"OP":I,H=e.stateStore,O=void 0===H?new o.WebStorageStateStore:H,B=e.ResponseValidatorCtor,j=void 0===B?a.ResponseValidator:B,Y=e.MetadataServiceCtor,N=void 0===Y?c.MetadataService:Y,K=e.extraQueryParams,U=void 0===K?{}:K,V=e.extraTokenParams,q=void 0===V?{}:V;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._authority=i,this._metadataUrl=s,this._metadata=r,this._signingKeys=h,this._client_id=d,this._client_secret=f,this._response_type=g,this._scope=_,this._redirect_uri=y,this._post_logout_redirect_uri=w,this._prompt=b,this._display=v,this._max_age=A,this._ui_locales=k,this._acr_values=T,this._resource=C,this._response_mode=S,this._filterProtocolClaims=!!E,this._loadUserInfo=!!R,this._staleStateAge=P,this._clockSkew=z,this._userInfoJwtIssuer=F,this._stateStore=O,this._validator=new j(this),this._metadataService=new N(this),this._extraQueryParams="object"===(void 0===U?"undefined":n(U))?U:{},this._extraTokenParams="object"===(void 0===q?"undefined":n(q))?q:{}}return s(t,[{key:"client_id",get:function(){return this._client_id},set:function(t){if(this._client_id)throw r.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=t}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(t){if(this._authority)throw r.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=t}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration")),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(t){this._metadata=t}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(t){this._signingKeys=t}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(t){this._extraQueryParams="object"===(void 0===t?"undefined":n(t))?t:{}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(t){this._extraTokenParams="object"===(void 0===t?"undefined":n(t))?t:{}}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebStorageStateStore=void 0;var n=i(0),s=i(1);e.WebStorageStateStore=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.prefix,n=void 0===i?"oidc.":i,r=e.store,o=void 0===r?s.Global.localStorage:r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._store=o,this._prefix=n}return t.prototype.set=function(t,e){return n.Log.debug("WebStorageStateStore.set",t),this._store.setItem(t=this._prefix+t,e),Promise.resolve()},t.prototype.get=function(t){n.Log.debug("WebStorageStateStore.get",t);var e=this._store.getItem(t=this._prefix+t);return Promise.resolve(e)},t.prototype.remove=function(t){n.Log.debug("WebStorageStateStore.remove",t);var e=this._store.getItem(t=this._prefix+t);return this._store.removeItem(t),Promise.resolve(e)},t.prototype.getAllKeys=function(){n.Log.debug("WebStorageStateStore.getAllKeys");for(var t=[],e=0;e0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Global.XMLHttpRequest,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._contentTypes=e&&Array.isArray(e)?e.slice():[],this._contentTypes.push("application/json"),n&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=i,this._jwtHandler=n}return t.prototype.getJson=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.getJson: No url passed"),new Error("url");return n.Log.debug("JsonService.getJson, url: ",t),new Promise(function(s,r){var o=new i._XMLHttpRequest;o.open("GET",t);var a=i._contentTypes,c=i._jwtHandler;o.onload=function(){if(n.Log.debug("JsonService.getJson: HTTP response received, status",o.status),200===o.status){var e=o.getResponseHeader("Content-Type");if(e){var i=a.find(function(t){if(e.startsWith(t))return!0});if("application/jwt"==i)return void c(o).then(s,r);if(i)try{return void s(JSON.parse(o.responseText))}catch(s){return n.Log.error("JsonService.getJson: Error parsing JSON response",s.message),void r(s)}}r(Error("Invalid response Content-Type: "+e+", from URL: "+t))}else r(Error(o.statusText+" ("+o.status+")"))},o.onerror=function(){n.Log.error("JsonService.getJson: network error"),r(Error("Network Error"))},e&&(n.Log.debug("JsonService.getJson: token passed, setting Authorization header"),o.setRequestHeader("Authorization","Bearer "+e)),o.send()})},t.prototype.postForm=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.postForm: No url passed"),new Error("url");return n.Log.debug("JsonService.postForm, url: ",t),new Promise(function(s,r){var o=new i._XMLHttpRequest;o.open("POST",t);var a=i._contentTypes;o.onload=function(){if(n.Log.debug("JsonService.postForm: HTTP response received, status",o.status),200!==o.status){if(400===o.status&&(i=o.getResponseHeader("Content-Type"))&&a.find(function(t){if(i.startsWith(t))return!0}))try{var e=JSON.parse(o.responseText);if(e&&e.error)return n.Log.error("JsonService.postForm: Error from server: ",e.error),void r(new Error(e.error))}catch(s){return n.Log.error("JsonService.postForm: Error parsing JSON response",s.message),void r(s)}r(Error(o.statusText+" ("+o.status+")"))}else{var i;if((i=o.getResponseHeader("Content-Type"))&&a.find(function(t){if(i.startsWith(t))return!0}))try{return void s(JSON.parse(o.responseText))}catch(s){return n.Log.error("JsonService.postForm: Error parsing JSON response",s.message),void r(s)}r(Error("Invalid response Content-Type: "+i+", from URL: "+t))}},o.onerror=function(){n.Log.error("JsonService.postForm: network error"),r(Error("Network Error"))};var c="";for(var u in e){var l=e[u];l&&(c.length>0&&(c+="&"),c+=encodeURIComponent(u),c+="=",c+=encodeURIComponent(l))}o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(c)})},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.State=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.id,n=e.data,s=e.created,o=e.request_type;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._id=i||(0,r.default)(),this._data=n,this._created="number"==typeof s&&s>0?s:parseInt(Date.now()/1e3),this._request_type=o}return t.prototype.toStorageString=function(){return s.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},t.fromStorageString=function(e){return s.Log.debug("State.fromStorageString"),new t(JSON.parse(e))},t.clearStaleState=function(e,i){var n=Date.now()/1e3-i;return e.getAllKeys().then(function(i){s.Log.debug("State.clearStaleState: got keys",i);for(var r=[],o=function(o){var a=i[o];c=e.get(a).then(function(i){var r=!1;if(i)try{var o=t.fromStorageString(i);s.Log.debug("State.clearStaleState: got item from key: ",a,o.created),o.created<=n&&(r=!0)}catch(t){s.Log.error("State.clearStaleState: Error parsing state for key",a,t.message),r=!0}else s.Log.debug("State.clearStaleState: no item in storage for key: ",a),r=!0;if(r)return s.Log.debug("State.clearStaleState: removed item for key: ",a),e.remove(a)}),r.push(c)},a=0;a0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._settings=e instanceof r.OidcClientSettings?e:new r.OidcClientSettings(e)}return t.prototype.createSigninRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.response_type,n=e.scope,r=e.redirect_uri,o=e.data,c=e.state,u=e.prompt,l=e.display,h=e.max_age,d=e.ui_locales,f=e.id_token_hint,p=e.login_hint,g=e.acr_values,m=e.resource,_=e.request,y=e.request_uri,w=e.response_mode,b=e.extraQueryParams,v=e.extraTokenParams,A=e.request_type,k=e.skipUserInfo,T=arguments[1];s.Log.debug("OidcClient.createSigninRequest");var C=this._settings.client_id;n=n||this._settings.scope,r=r||this._settings.redirect_uri,u=u||this._settings.prompt,l=l||this._settings.display,h=h||this._settings.max_age,d=d||this._settings.ui_locales,g=g||this._settings.acr_values,m=m||this._settings.resource,w=w||this._settings.response_mode,b=b||this._settings.extraQueryParams,v=v||this._settings.extraTokenParams;var S=this._settings.authority;return a.SigninRequest.isCode(i=i||this._settings.response_type)&&"code"!==i?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then(function(e){s.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",e);var M=new a.SigninRequest({url:e,client_id:C,redirect_uri:r,response_type:i,scope:n,data:o||c,authority:S,prompt:u,display:l,max_age:h,ui_locales:d,id_token_hint:f,login_hint:p,acr_values:g,resource:m,request:_,request_uri:y,extraQueryParams:b,extraTokenParams:v,request_type:A,response_mode:w,client_secret:t._settings.client_secret,skipUserInfo:k}),E=M.state;return(T=T||t._stateStore).set(E.id,E.toStorageString()).then(function(){return M})})},t.prototype.readSigninResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.Log.debug("OidcClient.readSigninResponseState");var n="query"===this._settings.response_mode||!this._settings.response_mode&&a.SigninRequest.isCode(this._settings.response_type)?"?":"#",r=new c.SigninResponse(t,n);return r.state?(e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(r.state).then(function(t){if(!t)throw s.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:h.SigninState.fromStorageString(t),response:r}})):(s.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},t.prototype.processSigninResponse=function(t,e){var i=this;return s.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return s.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),i._validator.validateSigninResponse(e,n)})},t.prototype.createSignoutRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.id_token_hint,n=e.data,r=e.state,o=e.post_logout_redirect_uri,a=e.extraQueryParams,c=e.request_type,l=arguments[1];return s.Log.debug("OidcClient.createSignoutRequest"),o=o||this._settings.post_logout_redirect_uri,a=a||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then(function(e){if(!e)throw s.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");s.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",e);var h=new u.SignoutRequest({url:e,id_token_hint:i,post_logout_redirect_uri:o,data:n||r,extraQueryParams:a,request_type:c}),d=h.state;return d&&(s.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(l=l||t._stateStore).set(d.id,d.toStorageString())),h})},t.prototype.readSignoutResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.Log.debug("OidcClient.readSignoutResponseState");var n=new l.SignoutResponse(t);if(!n.state)return s.Log.debug("OidcClient.readSignoutResponseState: No state in response"),n.error?(s.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",n.error),Promise.reject(new o.ErrorResponse(n))):Promise.resolve({undefined:void 0,response:n});var r=n.state;return e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(r).then(function(t){if(!t)throw s.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(t),response:n}})},t.prototype.processSignoutResponse=function(t,e){var i=this;return s.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return e?(s.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),i._validator.validateSignoutResponse(e,n)):(s.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),n)})},t.prototype.clearStaleState=function(t){return s.Log.debug("OidcClient.clearStaleState"),d.State.clearStaleState(t=t||this._stateStore,this.settings.staleStateAge)},n(t,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenClient=void 0;var n=i(7),s=i(2),r=i(0);e.TokenClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i,this._metadataService=new o(this._settings)}return t.prototype.exchangeCode=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"authorization_code",e.client_id=e.client_id||this._settings.client_id,e.redirect_uri=e.redirect_uri||this._settings.redirect_uri,e.code?e.redirect_uri?e.code_verifier?e.client_id?this._metadataService.getTokenEndpoint(!1).then(function(i){return r.Log.debug("TokenClient.exchangeCode: Received token endpoint"),t._jsonService.postForm(i,e).then(function(t){return r.Log.debug("TokenClient.exchangeCode: response received"),t})}):(r.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(r.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(r.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(r.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},t.prototype.exchangeRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"refresh_token",e.client_id=e.client_id||this._settings.client_id,e.client_secret=e.client_secret||this._settings.client_secret,e.refresh_token?e.client_id?this._metadataService.getTokenEndpoint(!1).then(function(i){return r.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),t._jsonService.postForm(i,e).then(function(t){return r.Log.debug("TokenClient.exchangeRefreshToken: response received"),t})}):(r.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(r.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorResponse=void 0;var n=i(0);e.ErrorResponse=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=i.error,r=i.error_description,o=i.error_uri,a=i.state,c=i.session_state;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),!s)throw n.Log.error("No error passed to ErrorResponse"),new Error("error");var u=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,r||s));return u.name="ErrorResponse",u.error=s,u.error_description=r,u.error_uri=o,u.state=a,u.session_state=c,u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Error)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninRequest=void 0;var n=i(0),s=i(3),r=i(13);e.SigninRequest=function(){function t(e){var i=e.url,o=e.client_id,a=e.redirect_uri,c=e.response_type,u=e.scope,l=e.authority,h=e.data,d=e.prompt,f=e.display,p=e.max_age,g=e.ui_locales,m=e.id_token_hint,_=e.login_hint,y=e.acr_values,w=e.resource,b=e.response_mode,v=e.request,A=e.request_uri,k=e.extraQueryParams,T=e.request_type,C=e.client_secret,S=e.extraTokenParams,M=e.skipUserInfo;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!o)throw n.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!a)throw n.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!c)throw n.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!u)throw n.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!l)throw n.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var E=t.isOidc(c),x=t.isCode(c);b||(b=t.isCode(c)?"query":null),this.state=new r.SigninState({nonce:E,data:h,client_id:o,authority:l,redirect_uri:a,code_verifier:x,request_type:T,response_mode:b,client_secret:C,scope:u,extraTokenParams:S,skipUserInfo:M}),i=s.UrlUtility.addQueryParam(i,"client_id",o),i=s.UrlUtility.addQueryParam(i,"redirect_uri",a),i=s.UrlUtility.addQueryParam(i,"response_type",c),i=s.UrlUtility.addQueryParam(i,"scope",u),i=s.UrlUtility.addQueryParam(i,"state",this.state.id),E&&(i=s.UrlUtility.addQueryParam(i,"nonce",this.state.nonce)),x&&(i=s.UrlUtility.addQueryParam(i,"code_challenge",this.state.code_challenge),i=s.UrlUtility.addQueryParam(i,"code_challenge_method","S256"));var R={prompt:d,display:f,max_age:p,ui_locales:g,id_token_hint:m,login_hint:_,acr_values:y,resource:w,request:v,request_uri:A,response_mode:b};for(var D in R)R[D]&&(i=s.UrlUtility.addQueryParam(i,D,R[D]));for(var P in k)i=s.UrlUtility.addQueryParam(i,P,k[P]);this.url=i}return t.isOidc=function(t){return!!t.split(/\s+/g).filter(function(t){return"id_token"===t})[0]},t.isOAuth=function(t){return!!t.split(/\s+/g).filter(function(t){return"token"===t})[0]},t.isCode=function(t){return!!t.split(/\s+/g).filter(function(t){return"code"===t})[0]},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninState=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.nonce,s=i.authority,r=i.client_id,c=i.redirect_uri,u=i.code_verifier,l=i.response_mode,h=i.client_secret,d=i.scope,f=i.extraTokenParams,p=i.skipUserInfo;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var g=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));if(!0===n?g._nonce=(0,a.default)():n&&(g._nonce=n),!0===u?g._code_verifier=(0,a.default)()+(0,a.default)()+(0,a.default)():u&&(g._code_verifier=u),g.code_verifier){var m=o.JoseUtil.hashString(g.code_verifier,"SHA256");g._code_challenge=o.JoseUtil.hexToBase64Url(m)}return g._redirect_uri=c,g._authority=s,g._client_id=r,g._response_mode=l,g._client_secret=h,g._scope=d,g._extraTokenParams=f,g._skipUserInfo=p,g}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toStorageString=function(){return s.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},e.fromStorageString=function(t){return s.Log.debug("SigninState.fromStorageString"),new e(JSON.parse(t))},n(e,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),e}(r.State)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,n.default)().replace(/-/g,"")};var n=function(t){return t&&t.__esModule?t:{default:t}}(i(33));t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.User=void 0;var n=function(){function t(t,e){for(var i=0;i0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessTokenEvents=void 0;var n=i(0),s=i(48);e.AccessTokenEvents=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.accessTokenExpiringNotificationTime,n=void 0===i?60:i,r=e.accessTokenExpiringTimer,o=void 0===r?new s.Timer("Access token expiring"):r,a=e.accessTokenExpiredTimer,c=void 0===a?new s.Timer("Access token expired"):a;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._accessTokenExpiringNotificationTime=n,this._accessTokenExpiring=o,this._accessTokenExpired=c}return t.prototype.load=function(t){if(t.access_token&&void 0!==t.expires_in){var e=t.expires_in;if(n.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",e),e>0){var i=e-this._accessTokenExpiringNotificationTime;i<=0&&(i=1),n.Log.debug("AccessTokenEvents.load: registering expiring timer in:",i),this._accessTokenExpiring.init(i)}else n.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var s=e+1;n.Log.debug("AccessTokenEvents.load: registering expired timer in:",s),this._accessTokenExpired.init(s)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.unload=function(){n.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.addAccessTokenExpiring=function(t){this._accessTokenExpiring.addHandler(t)},t.prototype.removeAccessTokenExpiring=function(t){this._accessTokenExpiring.removeHandler(t)},t.prototype.addAccessTokenExpired=function(t){this._accessTokenExpired.addHandler(t)},t.prototype.removeAccessTokenExpired=function(t){this._accessTokenExpired.removeHandler(t)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=i(0);e.Event=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e,this._callbacks=[]}return t.prototype.addHandler=function(t){this._callbacks.push(t)},t.prototype.removeHandler=function(t){var e=this._callbacks.findIndex(function(e){return e===t});e>=0&&this._callbacks.splice(e,1)},t.prototype.raise=function(){n.Log.debug("Event: Raising event: "+this._name);for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:r.CheckSessionIFrame,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.Global.timer;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=e,this._CheckSessionIFrameCtor=n,this._timer=a,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),this._userManager.getUser().then(function(t){t?i._start(t):i._settings.monitorAnonymousSession&&i._userManager.querySessionStatus().then(function(t){var e={session_state:t.session_state};t.sub&&t.sid&&(e.profile={sub:t.sub,sid:t.sid}),i._start(e)}).catch(function(t){s.Log.error("SessionMonitor ctor: error from querySessionStatus:",t.message)})}).catch(function(t){s.Log.error("SessionMonitor ctor: error from getUser:",t.message)})}return t.prototype._start=function(t){var e=this,i=t.session_state;i&&(t.profile?(this._sub=t.profile.sub,this._sid=t.profile.sid,s.Log.debug("SessionMonitor._start: session_state:",i,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,s.Log.debug("SessionMonitor._start: session_state:",i,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(i):this._metadataService.getCheckSessionIframe().then(function(t){if(t){s.Log.debug("SessionMonitor._start: Initializing check session iframe");var n=e._client_id,r=e._checkSessionInterval,o=e._stopCheckSessionOnError;e._checkSessionIFrame=new e._CheckSessionIFrameCtor(e._callback.bind(e),n,t,r,o),e._checkSessionIFrame.load().then(function(){e._checkSessionIFrame.start(i)})}else s.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")}).catch(function(t){s.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",t.message)}))},t.prototype._stop=function(){var t=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(s.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var e=this._timer.setInterval(function(){t._timer.clearInterval(e),t._userManager.querySessionStatus().then(function(e){var i={session_state:e.session_state};e.sub&&e.sid&&(i.profile={sub:e.sub,sid:e.sid}),t._start(i)}).catch(function(t){s.Log.error("SessionMonitor: error from querySessionStatus:",t.message)})},1e3)},t.prototype._callback=function(){var t=this;this._userManager.querySessionStatus().then(function(e){var i=!0;e?e.sub===t._sub?(i=!1,t._checkSessionIFrame.start(e.session_state),e.sid===t._sid?s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",e.session_state):(s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",e.session_state),t._userManager.events._raiseUserSessionChanged())):s.Log.debug("SessionMonitor._callback: Different subject signed into OP:",e.sub):s.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),i&&(t._sub?(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),t._userManager.events._raiseUserSignedOut()):(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),t._userManager.events._raiseUserSignedIn()))}).catch(function(e){t._sub&&(s.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",e.message),t._userManager.events._raiseUserSignedOut())})},n(t,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CheckSessionIFrame=void 0;var n=i(0);e.CheckSessionIFrame=function(){function t(e,i,n,s){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._callback=e,this._client_id=i,this._url=n,this._interval=s||2e3,this._stopOnError=r;var o=n.indexOf("/",n.indexOf("//")+2);this._frame_origin=n.substr(0,o),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.style.width=0,this._frame.style.height=0,this._frame.src=n}return t.prototype.load=function(){var t=this;return new Promise(function(e){t._frame.onload=function(){e()},window.document.body.appendChild(t._frame),t._boundMessageEvent=t._message.bind(t),window.addEventListener("message",t._boundMessageEvent,!1)})},t.prototype._message=function(t){t.origin===this._frame_origin&&t.source===this._frame.contentWindow&&("error"===t.data?(n.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===t.data?(n.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):n.Log.debug("CheckSessionIFrame: "+t.data+" message from check session op iframe"))},t.prototype.start=function(t){var e=this;if(this._session_state!==t){n.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=t;var i=function(){e._frame.contentWindow.postMessage(e._client_id+" "+e._session_state,e._frame_origin)};i(),this._timer=window.setInterval(i,this._interval)}},t.prototype.stop=function(){this._session_state=null,this._timer&&(n.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenRevocationClient=void 0;var n=i(0),s=i(2),r=i(1);e.TokenRevocationClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.Global.XMLHttpRequest,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw n.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=e,this._XMLHttpRequestCtor=i,this._metadataService=new o(this._settings)}return t.prototype.revoke=function(t,e){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!t)throw n.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==s&&"refresh_token"!=s)throw n.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then(function(r){if(r)return n.Log.debug("TokenRevocationClient.revoke: Revoking "+s),i._revoke(r,i._settings.client_id,i._settings.client_secret,t,s);if(e)throw n.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")})},t.prototype._revoke=function(t,e,i,s,r){var o=this;return new Promise(function(a,c){var u=new o._XMLHttpRequestCtor;u.open("POST",t),u.onload=function(){n.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",u.status),200===u.status?a():c(Error(u.statusText+" ("+u.status+")"))},u.onerror=function(){n.Log.debug("TokenRevocationClient.revoke: Network Error."),c("Network Error")};var l="client_id="+encodeURIComponent(e);i&&(l+="&client_secret="+encodeURIComponent(i)),l+="&token_type_hint="+encodeURIComponent(r),l+="&token="+encodeURIComponent(s),u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.send(l)})},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CordovaPopupWindow=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:r.MetadataService,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.UserInfoService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.JoseUtil,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:a.TokenClient;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=e,this._metadataService=new i(this._settings),this._userInfoService=new n(this._settings),this._joseUtil=c,this._tokenClient=new l(this._settings)}return t.prototype.validateSigninResponse=function(t,e){var i=this;return s.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(t,e).then(function(e){return s.Log.debug("ResponseValidator.validateSigninResponse: state processed"),i._validateTokens(t,e).then(function(e){return s.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),i._processClaims(t,e).then(function(t){return s.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),t})})})},t.prototype.validateSignoutResponse=function(t,e){return t.id!==e.state?(s.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(s.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),e.state=t.data,e.error?(s.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):Promise.resolve(e))},t.prototype._processSigninParams=function(t,e){if(t.id!==e.state)return s.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!t.client_id)return s.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!t.authority)return s.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==t.authority)return s.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=t.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==t.client_id)return s.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=t.client_id;return s.Log.debug("ResponseValidator._processSigninParams: state validated"),e.state=t.data,e.error?(s.Log.warn("ResponseValidator._processSigninParams: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):t.nonce&&!e.id_token?(s.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!t.nonce&&e.id_token?(s.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):t.code_verifier&&!e.code?(s.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!t.code_verifier&&e.code?(s.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(e.scope||(e.scope=t.scope),Promise.resolve(e))},t.prototype._processClaims=function(t,e){var i=this;if(e.isOpenIdConnect){if(s.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),e.profile=this._filterProtocolClaims(e.profile),!0!==t.skipUserInfo&&this._settings.loadUserInfo&&e.access_token)return s.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(e.access_token).then(function(t){return s.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),t.sub!==e.profile.sub?(s.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in access_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"))):(e.profile=i._mergeClaims(e.profile,t),s.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",e.profile),e)});s.Log.debug("ResponseValidator._processClaims: not loading user info")}else s.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(e)},t.prototype._mergeClaims=function(t,e){var i=Object.assign({},t);for(var s in e){var r=e[s];Array.isArray(r)||(r=[r]);for(var o=0;o1)return s.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));c=a[0]}if(!c)return s.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var u=t.client_id,l=i._settings.clockSkew;return s.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",l),i._joseUtil.validateJwt(e.id_token,c,o,u,l).then(function(){return s.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),n.payload.sub?(e.profile=n.payload,e):(s.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))})})})},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return s.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",e),[];i="EC"}return s.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",i),t=t.filter(function(t){return t.kty===i}),s.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",i,t.length),t},t.prototype._validateAccessToken=function(t){if(!t.profile)return s.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!t.profile.at_hash)return s.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!t.id_token)return s.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var e=this._joseUtil.parseJwt(t.id_token);if(!e||!e.header)return s.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",e),Promise.reject(new Error("Failed to parse id_token"));var i=e.header.alg;if(!i||5!==i.length)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i),Promise.reject(new Error("Unsupported alg: "+i));var n=i.substr(2,3);if(!n)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));if(256!==(n=parseInt(n))&&384!==n&&512!==n)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));var r="sha"+n,o=this._joseUtil.hashString(t.access_token,r);if(!o)return s.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",r),Promise.reject(new Error("Failed to validate at_hash"));var a=o.substr(0,o.length/2),c=this._joseUtil.hexToBase64Url(a);return c!==t.profile.at_hash?(s.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",c,t.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(s.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(t))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserInfoService=void 0;var n=i(7),s=i(2),r=i(0),o=i(4);e.UserInfoService=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.JoseUtil;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new a(this._settings),this._joseUtil=c}return t.prototype.getClaims=function(t){var e=this;return t?this._metadataService.getUserInfoEndpoint().then(function(i){return r.Log.debug("UserInfoService.getClaims: received userinfo url",i),e._jsonService.getJson(i,t).then(function(t){return r.Log.debug("UserInfoService.getClaims: claims received",t),t})}):(r.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},t.prototype._getClaimsFromJwt=function t(e){var i=this;try{var n=this._joseUtil.parseJwt(e.responseText);if(!n||!n.header||!n.payload)return r.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",n),Promise.reject(new Error("Failed to parse id_token"));var s=n.header.kid,o=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":o=this._metadataService.getIssuer();break;case"ANY":o=Promise.resolve(n.payload.iss);break;default:o=Promise.resolve(this._settings.userInfoJwtIssuer)}return o.then(function(t){return r.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+t),i._metadataService.getSigningKeys().then(function(o){if(!o)return r.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));r.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var a=void 0;if(s)a=o.filter(function(t){return t.kid===s})[0];else{if((o=i._filterByAlg(o,n.header.alg)).length>1)return r.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));a=o[0]}if(!a)return r.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var c=i._settings.client_id,u=i._settings.clockSkew;return r.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",u),i._joseUtil.validateJwt(e.responseText,a,t,c,u,void 0,!0).then(function(){return r.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),n.payload})})})}catch(t){return r.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",t.message),void reject(t)}},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return r.Log.debug("UserInfoService._filterByAlg: alg not supported: ",e),[];i="EC"}return r.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",i),t=t.filter(function(t){return t.kty===i}),r.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",i,t.length),t},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AllowedSigningAlgs=e.b64tohex=e.hextob64u=e.crypto=e.X509=e.KeyUtil=e.jws=void 0;var n=i(26);e.jws=n.jws,e.KeyUtil=n.KEYUTIL,e.X509=n.X509,e.crypto=n.crypto,e.hextob64u=n.hextob64u,e.b64tohex=n.b64tohex,e.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n={userAgent:!1},s={};if(void 0===r)var r={};r.lang={extend:function(e,i,s){if(!i||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=i.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=i.prototype,i.prototype.constructor==Object.prototype.constructor&&(i.prototype.constructor=i),s){var o;for(o in s)e.prototype[o]=s[o];var a=function(){},c=["toString","valueOf"];try{/MSIE/.test(n.userAgent)&&(a=function(t,e){for(o=0;o>>2]|=(i[r>>>2]>>>24-r%4*8&255)<<24-(n+r)%4*8;else for(r=0;r>>2]=i[r>>>2];return this.sigBytes+=s,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=o.ceil(e/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i>>2]>>>24-s%4*8&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new l.init(i,e/2)}},f=h.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],s=0;s>>2]>>>24-s%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new l.init(i,e)}},p=h.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},g=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,i=e.words,n=e.sigBytes,s=this.blockSize,r=n/(4*s),a=(r=t?o.ceil(r):o.max((0|r)-this._minBufferSize,0))*s,c=o.min(4*a,n);if(a){for(var u=0;u>>2]>>>24-s%4*8&255)<<16|(e[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|e[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;4>o&&s+.75*o>>6*(3-o)&63));if(e=n.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(e){var i=e.length,n=this._map;(s=n.charAt(64))&&-1!=(s=e.indexOf(s))&&(i=s);for(var s=[],r=0,o=0;o>>6-o%4*2;s[r>>>2]|=(a|c)<<24-r%4*8,r++}return t.create(s,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){for(var e=_,i=(s=e.lib).WordArray,n=s.Hasher,s=e.algo,r=[],o=[],a=function(t){return 4294967296*(t-(0|t))|0},c=2,u=0;64>u;){var l;t:{for(var h=t.sqrt(l=c),d=2;d<=h;d++)if(!(l%d)){l=!1;break t}l=!0}l&&(8>u&&(r[u]=a(t.pow(c,.5))),o[u]=a(t.pow(c,1/3)),u++),c++}var f=[];s=s.SHA256=n.extend({_doReset:function(){this._hash=new i.init(r.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],s=i[1],r=i[2],a=i[3],c=i[4],u=i[5],l=i[6],h=i[7],d=0;64>d;d++){if(16>d)f[d]=0|t[e+d];else{var p=f[d-15],g=f[d-2];f[d]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+f[d-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+f[d-16]}p=h+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&u^~c&l)+o[d]+f[d],g=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&s^n&r^s&r),h=l,l=u,u=c,c=a+p|0,a=r,r=s,s=n,n=p+g|0}i[0]=i[0]+n|0,i[1]=i[1]+s|0,i[2]=i[2]+r|0,i[3]=i[3]+a|0,i[4]=i[4]+c|0,i[5]=i[5]+u|0,i[6]=i[6]+l|0,i[7]=i[7]+h|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,s=8*e.sigBytes;return i[s>>>5]|=128<<24-s%32,i[14+(s+64>>>9<<4)]=t.floor(n/4294967296),i[15+(s+64>>>9<<4)]=n,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),e.SHA256=n._createHelper(s),e.HmacSHA256=n._createHmacHelper(s)}(Math),function(){function t(){return n.create.apply(n,arguments)}for(var e=_,i=e.lib.Hasher,n=(r=e.x64).Word,s=r.WordArray,r=e.algo,o=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],a=[],c=0;80>c;c++)a[c]=t();r=r.SHA512=i.extend({_doReset:function(){this._hash=new s.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var i=(h=this._hash.words)[0],n=h[1],s=h[2],r=h[3],c=h[4],u=h[5],l=h[6],h=h[7],d=i.high,f=i.low,p=n.high,g=n.low,m=s.high,_=s.low,y=r.high,w=r.low,b=c.high,v=c.low,A=u.high,k=u.low,T=l.high,C=l.low,S=h.high,M=h.low,E=d,x=f,R=p,D=g,P=m,L=_,z=y,I=w,F=b,H=v,O=A,B=k,j=T,Y=C,N=S,K=M,U=0;80>U;U++){var V=a[U];if(16>U)var q=V.high=0|t[e+2*U],$=V.low=0|t[e+2*U+1];else{q=(($=(q=a[U-15]).high)>>>1|(W=q.low)<<31)^($>>>8|W<<24)^$>>>7;var W=(W>>>1|$<<31)^(W>>>8|$<<24)^(W>>>7|$<<25),G=(($=(G=a[U-2]).high)>>>19|(J=G.low)<<13)^($<<3|J>>>29)^$>>>6,J=(J>>>19|$<<13)^(J<<3|$>>>29)^(J>>>6|$<<26),Z=($=a[U-7]).high,Q=(X=a[U-16]).high,X=X.low;q=(q=(q=q+Z+(($=W+$.low)>>>0>>0?1:0))+G+(($+=J)>>>0>>0?1:0))+Q+(($+=X)>>>0>>0?1:0),V.high=q,V.low=$}V=E&R^E&P^R&P;var tt=x&D^x&L^D&L,et=(W=(E>>>28|x<<4)^(E<<30|x>>>2)^(E<<25|x>>>7),G=(x>>>28|E<<4)^(x<<30|E>>>2)^(x<<25|E>>>7),(J=o[U]).high),it=J.low;Q=(Q=(Q=(Q=N+((F>>>14|H<<18)^(F>>>18|H<<14)^(F<<23|H>>>9))+((J=K+((H>>>14|F<<18)^(H>>>18|F<<14)^(H<<23|F>>>9)))>>>0>>0?1:0))+(Z=F&O^~F&j)+((J+=X=H&B^~H&Y)>>>0>>0?1:0))+et+((J+=it)>>>0>>0?1:0))+q+((J+=$)>>>0<$>>>0?1:0),N=j,K=Y,j=O,Y=B,O=F,B=H,F=z+Q+((H=I+J|0)>>>0>>0?1:0)|0,z=P,I=L,P=R,L=D,R=E,D=x,E=Q+(V=W+V+(($=G+tt)>>>0>>0?1:0))+((x=J+$|0)>>>0>>0?1:0)|0}f=i.low=f+x,i.high=d+E+(f>>>0>>0?1:0),g=n.low=g+D,n.high=p+R+(g>>>0>>0?1:0),_=s.low=_+L,s.high=m+P+(_>>>0>>0?1:0),w=r.low=w+I,r.high=y+z+(w>>>0>>0?1:0),v=c.low=v+H,c.high=b+F+(v>>>0>>0?1:0),k=u.low=k+B,u.high=A+O+(k>>>0>>0?1:0),C=l.low=C+Y,l.high=T+j+(C>>>0>>0?1:0),M=h.low=M+K,h.high=S+N+(M>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(n+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),e.SHA512=i._createHelper(r),e.HmacSHA512=i._createHmacHelper(r)}(),function(){var t=_,e=(s=t.x64).Word,i=s.WordArray,n=(s=t.algo).SHA512,s=s.SHA384=n.extend({_doReset:function(){this._hash=new i.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=n._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=n._createHelper(s),t.HmacSHA384=n._createHmacHelper(s)}();var y,w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function b(t){var e,i,n="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),n+=w.charAt(i>>6)+w.charAt(63&i);for(e+1==t.length?(i=parseInt(t.substring(e,e+1),16),n+=w.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),n+=w.charAt(i>>2)+w.charAt((3&i)<<4));(3&n.length)>0;)n+="=";return n}function v(t){var e,i,n,s="",r=0;for(e=0;e>2),i=3&n,r=1):1==r?(s+=E(i<<2|n>>4),i=15&n,r=2):2==r?(s+=E(i),s+=E(n>>2),i=3&n,r=3):(s+=E(i<<2|n>>4),s+=E(15&n),r=0));return 1==r&&(s+=E(i<<2)),s}function A(t){var e,i=v(t),n=new Array;for(e=0;2*e>15;--r>=0;){var c=32767&this[t],u=this[t++]>>15,l=a*c+u*o;s=((c=o*c+((32767&l)<<15)+i[n]+(1073741823&s))>>>30)+(l>>>15)+a*u+(s>>>30),i[n++]=1073741823&c}return s},y=30):"Netscape"!=n.appName?(k.prototype.am=function(t,e,i,n,s,r){for(;--r>=0;){var o=e*this[t++]+i[n]+s;s=Math.floor(o/67108864),i[n++]=67108863&o}return s},y=26):(k.prototype.am=function(t,e,i,n,s,r){for(var o=16383&e,a=e>>14;--r>=0;){var c=16383&this[t],u=this[t++]>>14,l=a*c+u*o;s=((c=o*c+((16383&l)<<14)+i[n]+s)>>28)+(l>>14)+a*u,i[n++]=268435455&c}return s},y=28),k.prototype.DB=y,k.prototype.DM=(1<>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}function P(t){this.m=t}function L(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function B(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function j(){}function Y(t){return t}function N(t){this.r2=T(),this.q3=T(),k.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}P.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},P.prototype.revert=function(t){return t},P.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},P.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},P.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},L.prototype.convert=function(t){var e=T();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(k.ZERO)>0&&this.m.subTo(e,e),e},L.prototype.revert=function(t){var e=T();return t.copyTo(e),this.reduce(e),e},L.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[i=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},L.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},L.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},k.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},k.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},k.prototype.fromString=function(t,e){var i;if(16==e)i=4;else if(8==e)i=3;else if(256==e)i=8;else if(2==e)i=1;else if(32==e)i=5;else{if(4!=e)return void this.fromRadix(t,e);i=2}this.t=0,this.s=0;for(var n=t.length,s=!1,r=0;--n>=0;){var o=8==i?255&t[n]:x(t,n);o<0?"-"==t.charAt(n)&&(s=!0):(s=!1,0==r?this[this.t++]=o:r+i>this.DB?(this[this.t-1]|=(o&(1<>this.DB-r):this[this.t-1]|=o<=this.DB&&(r-=this.DB))}8==i&&0!=(128&t[0])&&(this.s=-1,r>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},k.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},k.prototype.drShiftTo=function(t,e){for(var i=t;i=0;--i)e[i+o+1]=this[i]>>s|a,a=(this[i]&r)<=0;--i)e[i]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},k.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var n=t%this.DB,s=this.DB-n,r=(1<>n;for(var o=i+1;o>n;n>0&&(e[this.t-i-1]|=(this.s&r)<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[i++]=this.DV+n:n>0&&(e[i++]=n),e.t=i,e.clamp()},k.prototype.multiplyTo=function(t,e){var i=this.abs(),n=t.abs(),s=i.t;for(e.t=s+n.t;--s>=0;)e[s]=0;for(s=0;s=0;)t[i]=0;for(i=0;i=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},k.prototype.divRemTo=function(t,e,i){var n=t.abs();if(!(n.t<=0)){var s=this.abs();if(s.t0?(n.lShiftTo(c,r),s.lShiftTo(c,i)):(n.copyTo(r),s.copyTo(i));var u=r.t,l=r[u-1];if(0!=l){var h=l*(1<1?r[u-2]>>this.F2:0),d=this.FV/h,f=(1<=0&&(i[i.t++]=1,i.subTo(_,i)),k.ONE.dlShiftTo(u,_),_.subTo(r,r);r.t=0;){var y=i[--g]==l?this.DM:Math.floor(i[g]*d+(i[g-1]+p)*f);if((i[g]+=r.am(0,y,i,m,0,u))0&&i.rShiftTo(c,i),o<0&&k.ZERO.subTo(i,i)}}},k.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},k.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},k.prototype.exp=function(t,e){if(t>4294967295||t<1)return k.ONE;var i=T(),n=T(),s=e.convert(this),r=D(t)-1;for(s.copyTo(i);--r>=0;)if(e.sqrTo(i,n),(t&1<0)e.mulTo(n,s,i);else{var o=i;i=n,n=o}return e.revert(i)},k.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,n=(1<0)for(a>a)>0&&(s=!0,r=E(i));o>=0;)a>(a+=this.DB-e)):(i=this[o]>>(a-=e)&n,a<=0&&(a+=this.DB,--o)),i>0&&(s=!0),s&&(r+=E(i));return s?r:"0"},k.prototype.negate=function(){var t=T();return k.ZERO.subTo(this,t),t},k.prototype.abs=function(){return this.s<0?this.negate():this},k.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-t.t))return this.s<0?-e:e;for(;--i>=0;)if(0!=(e=this[i]-t[i]))return e;return 0},k.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+D(this[this.t-1]^this.s&this.DM)},k.prototype.mod=function(t){var e=T();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(k.ZERO)>0&&t.subTo(e,e),e},k.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new P(e):new L(e),this.exp(t,i)},k.ZERO=R(0),k.ONE=R(1),j.prototype.convert=Y,j.prototype.revert=Y,j.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},j.prototype.sqrTo=function(t,e){t.squareTo(e)},N.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=T();return t.copyTo(e),this.reduce(e),e},N.prototype.revert=function(t){return t},N.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},N.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},N.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var K,U,V,q=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],$=(1<<26)/q[q.length-1];function W(){this.i=0,this.j=0,this.S=new Array}function G(){!function(t){U[V++]^=255&t,U[V++]^=t>>8&255,U[V++]^=t>>16&255,U[V++]^=t>>24&255,V>=256&&(V-=256)}((new Date).getTime())}if(k.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},k.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),n=R(i),s=T(),r=T(),o="";for(this.divRemTo(n,s,r);s.signum()>0;)o=(i+r.intValue()).toString(t).substr(1)+o,s.divRemTo(n,s,r);return r.intValue().toString(t)+o},k.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var i=this.chunkSize(e),n=Math.pow(e,i),s=!1,r=0,o=0,a=0;a=i&&(this.dMultiply(n),this.dAddOffset(o,0),r=0,o=0))}r>0&&(this.dMultiply(Math.pow(e,r)),this.dAddOffset(o,0)),s&&k.ZERO.subTo(this,this)},k.prototype.fromNumber=function(t,e,i){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(k.ONE.shiftLeft(t-1),I,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(k.ONE.shiftLeft(t-1),this);else{var n=new Array,s=7&t;n.length=1+(t>>3),e.nextBytes(n),s>0?n[0]&=(1<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[i++]=n:n<-1&&(e[i++]=this.DV+n),e.t=i,e.clamp()},k.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},k.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},k.prototype.multiplyLowerTo=function(t,e,i){var n,s=Math.min(this.t+t.t,e);for(i.s=0,i.t=s;s>0;)i[--s]=0;for(n=i.t-this.t;s=0;)i[n]=0;for(n=Math.max(e-this.t,0);n0)if(0==e)i=this[0]%t;else for(var n=this.t-1;n>=0;--n)i=(e*i+this[n])%t;return i},k.prototype.millerRabin=function(t){var e=this.subtract(k.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var n=e.shiftRight(i);(t=t+1>>1)>q.length&&(t=q.length);for(var s=T(),r=0;r>24},k.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},k.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},k.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var i,n=this.DB-t*this.DB%8,s=0;if(t-- >0)for(n>n)!=(this.s&this.DM)>>n&&(e[s++]=i|this.s<=0;)n<8?(i=(this[t]&(1<>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==s&&(128&this.s)!=(128&i)&&++s,(s>0||i!=this.s)&&(e[s++]=i);return e},k.prototype.equals=function(t){return 0==this.compareTo(t)},k.prototype.min=function(t){return this.compareTo(t)<0?this:t},k.prototype.max=function(t){return this.compareTo(t)>0?this:t},k.prototype.and=function(t){var e=T();return this.bitwiseTo(t,z,e),e},k.prototype.or=function(t){var e=T();return this.bitwiseTo(t,I,e),e},k.prototype.xor=function(t){var e=T();return this.bitwiseTo(t,F,e),e},k.prototype.andNot=function(t){var e=T();return this.bitwiseTo(t,H,e),e},k.prototype.not=function(){for(var t=T(),e=0;e=this.t?0!=this.s:0!=(this[e]&1<1){var l=T();for(n.sqrTo(o[1],l);a<=u;)o[a]=T(),n.mulTo(l,o[a-2],o[a]),a+=2}var h,d,f=t.t-1,p=!0,g=T();for(s=D(t[f])-1;f>=0;){for(s>=c?h=t[f]>>s-c&u:(h=(t[f]&(1<0&&(h|=t[f-1]>>this.DB+s-c)),a=i;0==(1&h);)h>>=1,--a;if((s-=a)<0&&(s+=this.DB,--f),p)o[h].copyTo(r),p=!1;else{for(;a>1;)n.sqrTo(r,g),n.sqrTo(g,r),a-=2;a>0?n.sqrTo(r,g):(d=r,r=g,g=d),n.mulTo(g,o[h],r)}for(;f>=0&&0==(t[f]&1<=0?(i.subTo(n,i),e&&s.subTo(o,s),r.subTo(a,r)):(n.subTo(i,n),e&&o.subTo(s,o),a.subTo(r,a))}return 0!=n.compareTo(k.ONE)?k.ZERO:a.compareTo(t)>=0?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},k.prototype.pow=function(t){return this.exp(t,new j)},k.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var n=e;e=i,i=n}var s=e.getLowestSetBit(),r=i.getLowestSetBit();if(r<0)return e;for(s0&&(e.rShiftTo(r,e),i.rShiftTo(r,i));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return r>0&&i.lShiftTo(r,i),i},k.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=q[q.length-1]){for(e=0;e>>8,U[V++]=255&J;V=0,G()}function tt(){if(null==K){for(G(),(K=new W).init(U),V=0;V>24,(16711680&s)>>16,(65280&s)>>8,255&s]))),s+=1;return n}function st(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function rt(t,e){this.x=e,this.q=t}function ot(t,e,i,n){this.curve=t,this.x=e,this.y=i,this.z=null==n?k.ONE:n,this.zinv=null}function at(t,e,i){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(i),this.infinity=new ot(this,null,null)}et.prototype.nextBytes=function(t){var e;for(e=0;e0&&e.length>0))throw"Invalid RSA public key";this.n=it(t,16),this.e=parseInt(e,16)}},st.prototype.encrypt=function(t){var e=function(t,e){if(e=0&&e>0;){var s=t.charCodeAt(n--);s<128?i[--e]=s:s>127&&s<2048?(i[--e]=63&s|128,i[--e]=s>>6|192):(i[--e]=63&s|128,i[--e]=s>>6&63|128,i[--e]=s>>12|224)}i[--e]=0;for(var r=new et,o=new Array;e>2;){for(o[0]=0;0==o[0];)r.nextBytes(o);i[--e]=o[0]}return i[--e]=2,i[--e]=0,new k(i)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var i=this.doPublic(e);if(null==i)return null;var n=i.toString(16);return 0==(1&n.length)?n:"0"+n},st.prototype.encryptOAEP=function(t,e,i){var n=function(t,e,i,n){var s=ut.crypto.MessageDigest,r=ut.crypto.Util,o=null;if(i||(i="sha1"),"string"==typeof i&&(o=s.getCanonicalAlgName(i),n=s.getHashLength(o),i=function(t){return kt(r.hashHex(Tt(t),o))}),t.length+2*n+2>e)throw"Message too long for RSA";var a,c="";for(a=0;a>3,e,i);if(null==n)return null;var s=this.doPublic(n);if(null==s)return null;var r=s.toString(16);return 0==(1&r.length)?r:"0"+r},st.prototype.type="RSA",rt.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},rt.prototype.toBigInteger=function(){return this.x},rt.prototype.negate=function(){return new rt(this.q,this.x.negate().mod(this.q))},rt.prototype.add=function(t){return new rt(this.q,this.x.add(t.toBigInteger()).mod(this.q))},rt.prototype.subtract=function(t){return new rt(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},rt.prototype.multiply=function(t){return new rt(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},rt.prototype.square=function(){return new rt(this.q,this.x.square().mod(this.q))},rt.prototype.divide=function(t){return new rt(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},ot.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ot.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ot.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(k.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(k.ZERO))},ot.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(k.ZERO)&&!this.y.toBigInteger().equals(k.ZERO)},ot.prototype.negate=function(){return new ot(this.curve,this.x,this.y.negate(),this.z)},ot.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),i=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(k.ZERO.equals(i))return k.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new k("3"),s=this.x.toBigInteger(),r=this.y.toBigInteger(),o=(t.x.toBigInteger(),t.y.toBigInteger(),i.square()),a=o.multiply(i),c=s.multiply(o),u=e.square().multiply(this.z),l=u.subtract(c.shiftLeft(1)).multiply(t.z).subtract(a).multiply(i).mod(this.curve.q),h=c.multiply(n).multiply(e).subtract(r.multiply(a)).subtract(u.multiply(e)).multiply(t.z).add(e.multiply(a)).mod(this.curve.q),d=a.multiply(this.z).multiply(t.z).mod(this.curve.q);return new ot(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(h),d)},ot.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=new k("3"),e=this.x.toBigInteger(),i=this.y.toBigInteger(),n=i.multiply(this.z),s=n.multiply(i).mod(this.curve.q),r=this.curve.a.toBigInteger(),o=e.square().multiply(t);k.ZERO.equals(r)||(o=o.add(this.z.square().multiply(r)));var a=(o=o.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(s)).shiftLeft(1).multiply(n).mod(this.curve.q),c=o.multiply(t).multiply(e).subtract(s.shiftLeft(1)).shiftLeft(2).multiply(s).subtract(o.square().multiply(o)).mod(this.curve.q),u=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new ot(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(c),u)},ot.prototype.multiply=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new k("3")),s=this.negate(),r=this;for(e=n.bitLength()-2;e>0;--e){r=r.twice();var o=n.testBit(e);o!=i.testBit(e)&&(r=r.add(o?this:s))}return r},ot.prototype.multiplyTwo=function(t,e,i){var n;n=t.bitLength()>i.bitLength()?t.bitLength()-1:i.bitLength()-1;for(var s=this.curve.getInfinity(),r=this.add(e);n>=0;)s=s.twice(),t.testBit(n)?s=i.testBit(n)?s.add(r):s.add(this):i.testBit(n)&&(s=s.add(e)),--n;return s},at.prototype.getQ=function(){return this.q},at.prototype.getA=function(){return this.a},at.prototype.getB=function(){return this.b},at.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},at.prototype.getInfinity=function(){return this.infinity},at.prototype.fromBigInteger=function(t){return new rt(this.q,t)},at.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,i=t.substr(2,e),n=t.substr(e+2,e);return new ot(this,this.fromBigInteger(new k(i,16)),this.fromBigInteger(new k(n,16)));default:return null}},rt.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},ot.prototype.getEncoded=function(t){var e=function(t,e){var i=t.toByteArrayUnsigned();if(ei.length;)i.unshift(0);return i},i=this.getX().toBigInteger(),n=this.getY().toBigInteger(),s=e(i,32);return t?n.isEven()?s.unshift(2):s.unshift(3):(s.unshift(4),s=s.concat(e(n,32))),s},ot.decodeFrom=function(t,e){var i=e.length-1,n=e.slice(1,1+i/2),s=e.slice(1+i/2,1+i);n.unshift(0),s.unshift(0);var r=new k(n),o=new k(s);return new ot(t,t.fromBigInteger(r),t.fromBigInteger(o))},ot.decodeFromHex=function(t,e){e.substr(0,2);var i=e.length-2,n=e.substr(2,i/2),s=e.substr(2+i/2,i/2),r=new k(n,16),o=new k(s,16);return new ot(t,t.fromBigInteger(r),t.fromBigInteger(o))},ot.prototype.add2D=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;if(this.x.equals(t.x))return this.y.equals(t.y)?this.twice():this.curve.getInfinity();var e=t.x.subtract(this.x),i=t.y.subtract(this.y).divide(e),n=i.square().subtract(this.x).subtract(t.x),s=i.multiply(this.x.subtract(n)).subtract(this.y);return new ot(this.curve,n,s)},ot.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=this.curve.fromBigInteger(k.valueOf(2)),e=this.curve.fromBigInteger(k.valueOf(3)),i=this.x.square().multiply(e).add(this.curve.a).divide(this.y.multiply(t)),n=i.square().subtract(this.x.multiply(t)),s=i.multiply(this.x.subtract(n)).subtract(this.y);return new ot(this.curve,n,s)},ot.prototype.multiply2D=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new k("3")),s=this.negate(),r=this;for(e=n.bitLength()-2;e>0;--e){r=r.twice();var o=n.testBit(e);o!=i.testBit(e)&&(r=r.add2D(o?this:s))}return r},ot.prototype.isOnCurve=function(){var t=this.getX().toBigInteger(),e=this.getY().toBigInteger(),i=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),s=this.curve.getQ(),r=e.multiply(e).mod(s),o=t.multiply(t).multiply(t).add(i.multiply(t)).add(n).mod(s);return r.equals(o)},ot.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},ot.prototype.validate=function(){var t=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var e=this.getX().toBigInteger(),i=this.getY().toBigInteger();if(e.compareTo(k.ONE)<0||e.compareTo(t.subtract(k.ONE))>0)throw new Error("x coordinate out of bounds");if(i.compareTo(k.ONE)<0||i.compareTo(t.subtract(k.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(t).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ct=function(){var t=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),e=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),n={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function s(t,e,i){return e?n[e]:String.fromCharCode(parseInt(i,16))}var r=new String(""),o=Object.hasOwnProperty;return function(n,a){var c,u,l=n.match(t),h=l[0],d=!1;"{"===h?c={}:"["===h?c=[]:(c=[],d=!0);for(var f=[c],p=1-d,g=l.length;p=0;)delete s[r[l]]}return a.call(e,n,s)}({"":c},"")),c}}();void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.asn1&&ut.asn1||(ut.asn1={}),ut.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var i=e.substr(1).length;i%2==1?i+=1:e.match(/^[0-7]/)||(i+=2);for(var n="",s=0;s15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+i).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ut.asn1.DERAbstractString=function(t){ut.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=vt(this.s).toLowerCase()},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},r.lang.extend(ut.asn1.DERAbstractString,ut.asn1.ASN1Object),ut.asn1.DERAbstractTime=function(t){ut.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,i){var n=this.zeroPadding,s=this.localDateToUTC(t),r=String(s.getFullYear());"utc"==e&&(r=r.substr(2,2));var o=r+n(String(s.getMonth()+1),2)+n(String(s.getDate()),2)+n(String(s.getHours()),2)+n(String(s.getMinutes()),2)+n(String(s.getSeconds()),2);if(!0===i){var a=s.getMilliseconds();if(0!=a){var c=n(String(a),3);o=o+"."+(c=c.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=mt(t)},this.setByDateValue=function(t,e,i,n,s,r){var o=new Date(Date.UTC(t,e-1,i,n,s,r,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},r.lang.extend(ut.asn1.DERAbstractTime,ut.asn1.ASN1Object),ut.asn1.DERAbstractStructured=function(t){ut.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},r.lang.extend(ut.asn1.DERAbstractStructured,ut.asn1.ASN1Object),ut.asn1.DERBoolean=function(){ut.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},r.lang.extend(ut.asn1.DERBoolean,ut.asn1.ASN1Object),ut.asn1.DERInteger=function(t){ut.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ut.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new k(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},r.lang.extend(ut.asn1.DERInteger,ut.asn1.ASN1Object),ut.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=ut.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}ut.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7s.length&&(s=n[i]);return(t=t.replace(s,"::")).slice(1,-1)}function Ft(t){var e="malformed hex value";if(!t.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw e;if(8!=t.length)return 32==t.length?It(t):t;try{return parseInt(t.substr(0,2),16)+"."+parseInt(t.substr(2,2),16)+"."+parseInt(t.substr(4,2),16)+"."+parseInt(t.substr(6,2),16)}catch(t){throw e}}function Ht(t){for(var e=encodeURIComponent(t),i="",n=0;n"7"?"00"+t:t}dt.getLblen=function(t,e){if("8"!=t.substr(e+2,1))return 1;var i=parseInt(t.substr(e+3,1));return 0==i?-1:0=2*r)break;if(a>=200)break;n.push(c),o=c,a++}return n},dt.getNthChildIdx=function(t,e,i){return dt.getChildIdx(t,e)[i]},dt.getIdxbyList=function(t,e,i,n){var s,r,o=dt;if(0==i.length){if(void 0!==n&&t.substr(e,2)!==n)throw"checking tag doesn't match: "+t.substr(e,2)+"!="+n;return e}return s=i.shift(),r=o.getChildIdx(t,e),o.getIdxbyList(t,r[s],i,n)},dt.getTLVbyList=function(t,e,i,n){var s=dt,r=s.getIdxbyList(t,e,i);if(void 0===r)throw"can't find nthList object";if(void 0!==n&&t.substr(r,2)!=n)throw"checking tag doesn't match: "+t.substr(r,2)+"!="+n;return s.getTLV(t,r)},dt.getVbyList=function(t,e,i,n,s){var r,o,a=dt;if(void 0===(r=a.getIdxbyList(t,e,i,n)))throw"can't find nthList object";return o=a.getV(t,r),!0===s&&(o=o.substr(2)),o},dt.hextooidstr=function(t){var e=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},i=[],n=t.substr(0,2),s=parseInt(n,16);i[0]=new String(Math.floor(s/40)),i[1]=new String(s%40);for(var r=t.substr(2),o=[],a=0;a0&&(l=l+"."+c.join(".")),l},dt.dump=function(t,e,i,n){var s=dt,r=s.getV,o=s.dump,a=s.getChildIdx,c=t;t instanceof ut.asn1.ASN1Object&&(c=t.getEncodedHex());var u=function(t,e){return t.length<=2*e?t:t.substr(0,e)+"..(total "+t.length/2+"bytes).."+t.substr(t.length-e,e)};void 0===e&&(e={ommit_long_octet:32}),void 0===i&&(i=0),void 0===n&&(n="");var l=e.ommit_long_octet;if("01"==c.substr(i,2))return"00"==(h=r(c,i))?n+"BOOLEAN FALSE\n":n+"BOOLEAN TRUE\n";if("02"==c.substr(i,2))return n+"INTEGER "+u(h=r(c,i),l)+"\n";if("03"==c.substr(i,2))return n+"BITSTRING "+u(h=r(c,i),l)+"\n";if("04"==c.substr(i,2)){var h=r(c,i);return s.isASN1HEX(h)?(A=n+"OCTETSTRING, encapsulates\n")+o(h,e,0,n+" "):n+"OCTETSTRING "+u(h,l)+"\n"}if("05"==c.substr(i,2))return n+"NULL\n";if("06"==c.substr(i,2)){var d=r(c,i),f=ut.asn1.ASN1Util.oidHexToInt(d),p=ut.asn1.x509.OID.oid2name(f),g=f.replace(/\./g," ");return""!=p?n+"ObjectIdentifier "+p+" ("+g+")\n":n+"ObjectIdentifier ("+g+")\n"}if("0c"==c.substr(i,2))return n+"UTF8String '"+At(r(c,i))+"'\n";if("13"==c.substr(i,2))return n+"PrintableString '"+At(r(c,i))+"'\n";if("14"==c.substr(i,2))return n+"TeletexString '"+At(r(c,i))+"'\n";if("16"==c.substr(i,2))return n+"IA5String '"+At(r(c,i))+"'\n";if("17"==c.substr(i,2))return n+"UTCTime "+At(r(c,i))+"\n";if("18"==c.substr(i,2))return n+"GeneralizedTime "+At(r(c,i))+"\n";if("30"==c.substr(i,2)){if("3000"==c.substr(i,4))return n+"SEQUENCE {}\n";A=n+"SEQUENCE\n";var m=e;if((2==(w=a(c,i)).length||3==w.length)&&"06"==c.substr(w[0],2)&&"04"==c.substr(w[w.length-1],2)){p=s.oidname(r(c,w[0]));var _=JSON.parse(JSON.stringify(e));_.x509ExtName=p,m=_}for(var y=0;ys)throw"key is too short for SigAlg: keylen="+i+","+e;for(var r="0001",o="00"+n,a="",c=s-r.length-o.length,u=0;u=0)return!1;if(i.compareTo(k.ONE)<0||i.compareTo(s)>=0)return!1;var o=i.modInverse(s),a=t.multiply(o).mod(s),c=e.multiply(o).mod(s);return r.multiply(a).add(n.multiply(c)).getX().toBigInteger().mod(s).equals(e)},this.serializeSig=function(t,e){var i=t.toByteArraySigned(),n=e.toByteArraySigned(),s=[];return s.push(2),s.push(i.length),(s=s.concat(i)).push(2),s.push(n.length),(s=s.concat(n)).unshift(s.length),s.unshift(48),s},this.parseSig=function(t){var e;if(48!=t[0])throw new Error("Signature not a valid DERSequence");if(2!=t[e=2])throw new Error("First element in signature must be a DERInteger");var i=t.slice(e+2,e+2+t[e+1]);if(2!=t[e+=2+t[e+1]])throw new Error("Second element in signature must be a DERInteger");var n=t.slice(e+2,e+2+t[e+1]);return e+=2+t[e+1],{r:k.fromByteArrayUnsigned(i),s:k.fromByteArrayUnsigned(n)}},this.parseSigCompact=function(t){if(65!==t.length)throw"Signature has the wrong length";var e=t[0]-27;if(e<0||e>7)throw"Invalid signature type";var i=this.ecparams.n;return{r:k.fromByteArrayUnsigned(t.slice(1,33)).mod(i),s:k.fromByteArrayUnsigned(t.slice(33,65)).mod(i),i:e}},this.readPKCS5PrvKeyHex=function(t){var e,i,n,s=ut.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=r(t,0,[2,0],"06"),i=r(t,0,[1],"04");try{n=r(t,0,[3,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=s(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(t){var e,i,n,s=ut.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{r(t,0,[1,0],"06"),e=r(t,0,[1,1],"06"),i=r(t,0,[2,0,1],"04");try{n=r(t,0,[2,0,2,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=s(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PubKeyHex=function(t){var e,i,n=ut.crypto.ECDSA.getName,s=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{s(t,0,[0,0],"06"),e=s(t,0,[0,1],"06"),i=s(t,0,[1],"03").substr(2)}catch(t){throw"malformed PKCS#8 ECC public key"}if(this.curveName=n(e),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},this.readCertPubKeyHex=function(t,e){5!==e&&(e=6);var i,n,s=ut.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{i=r(t,0,[0,e,0,1],"06"),n=r(t,0,[0,e,1],"03").substr(2)}catch(t){throw"malformed X.509 certificate ECC public key"}if(this.curveName=s(i),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},void 0!==t&&void 0!==t.curve&&(this.curveName=t.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==t&&(void 0!==t.prv&&this.setPrivateKeyHex(t.prv),void 0!==t.pub&&this.setPublicKeyHex(t.pub))},ut.crypto.ECDSA.parseSigHex=function(t){var e=ut.crypto.ECDSA.parseSigHexInHexRS(t);return{r:new k(e.r,16),s:new k(e.s,16)}},ut.crypto.ECDSA.parseSigHexInHexRS=function(t){var e=dt.getChildIdx,i=dt.getV;if("30"!=t.substr(0,2))throw"signature is not a ASN.1 sequence";var n=e(t,0);if(2!=n.length)throw"number of signature ASN.1 sequence elements seem wrong";var s=n[0],r=n[1];if("02"!=t.substr(s,2))throw"1st item of sequene of signature is not ASN.1 integer";if("02"!=t.substr(r,2))throw"2nd item of sequene of signature is not ASN.1 integer";return{r:i(t,s),s:i(t,r)}},ut.crypto.ECDSA.asn1SigToConcatSig=function(t){var e=ut.crypto.ECDSA.parseSigHexInHexRS(t),i=e.r,n=e.s;if("00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),"00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),i.length%32==30&&(i="00"+i),n.length%32==30&&(n="00"+n),i.length%32!=0)throw"unknown ECDSA sig r length error";if(n.length%32!=0)throw"unknown ECDSA sig s length error";return i+n},ut.crypto.ECDSA.concatSigToASN1Sig=function(t){if(t.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var e=t.substr(0,t.length/2),i=t.substr(t.length/2);return ut.crypto.ECDSA.hexRSSigToASN1Sig(e,i)},ut.crypto.ECDSA.hexRSSigToASN1Sig=function(t,e){var i=new k(t,16),n=new k(e,16);return ut.crypto.ECDSA.biRSSigToASN1Sig(i,n)},ut.crypto.ECDSA.biRSSigToASN1Sig=function(t,e){var i=ut.asn1,n=new i.DERInteger({bigint:t}),s=new i.DERInteger({bigint:e});return new i.DERSequence({array:[n,s]}).getEncodedHex()},ut.crypto.ECDSA.getName=function(t){return"2a8648ce3d030107"===t?"secp256r1":"2b8104000a"===t?"secp256k1":"2b81040022"===t?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(t)?"secp256r1":-1!=="|secp256k1|".indexOf(t)?"secp256k1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(t)?"secp384r1":null},void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.crypto&&ut.crypto||(ut.crypto={}),ut.crypto.ECParameterDB=new function(){var t={},e={};function i(t){return new k(t,16)}this.getByName=function(i){var n=i;if(void 0!==e[n]&&(n=e[i]),void 0!==t[n])return t[n];throw"unregistered EC curve name: "+n},this.regist=function(n,s,r,o,a,c,u,l,h,d,f,p){t[n]={};var g=i(r),m=i(o),_=i(a),y=i(c),w=i(u),b=new at(g,m,_),v=b.decodePointHex("04"+l+h);t[n].name=n,t[n].keylen=s,t[n].curve=b,t[n].G=v,t[n].n=y,t[n].h=w,t[n].oid=f,t[n].info=p;for(var A=0;A=2*a)break}var h={};return h.keyhex=c.substr(0,2*s[t].keylen),h.ivhex=c.substr(2*s[t].keylen,2*s[t].ivlen),h},a=function(t,e,i,n){var r=_.enc.Base64.parse(t),o=_.enc.Hex.stringify(r);return(0,s[e].proc)(o,i,n)};return{version:"1.0.0",parsePKCS5PEM:function(t){return r(t)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(t,e,i){return o(t,e,i)},decryptKeyB64:function(t,e,i,n){return a(t,e,i,n)},getDecryptedKeyHex:function(t,e){var i=r(t),n=i.cipher,s=i.ivsalt,c=i.data,u=o(n,e,s).keyhex;return a(c,n,u,s)},getEncryptedPKCS5PEMFromPrvKeyHex:function(t,e,i,n,r){var a="";if(void 0!==n&&null!=n||(n="AES-256-CBC"),void 0===s[n])throw"KEYUTIL unsupported algorithm: "+n;return void 0!==r&&null!=r||(r=function(t){var e=_.lib.WordArray.random(t);return _.enc.Hex.stringify(e)}(s[n].ivlen).toUpperCase()),a="-----BEGIN "+t+" PRIVATE KEY-----\r\n",a+="Proc-Type: 4,ENCRYPTED\r\n",a+="DEK-Info: "+n+","+r+"\r\n",a+="\r\n",(a+=function(t,e,i,n){return(0,s[e].eproc)(t,i,n)}(e,n,o(n,i,r).keyhex,r).replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+t+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(e){var i=dt.getChildIdx,n=dt.getV,s={},r=i(e,0);if(2!=r.length)throw"malformed format: SEQUENCE(0).items != 2: "+r.length;s.ciphertext=n(e,r[1]);var o=i(e,r[0]);if(2!=o.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+o.length;if("2a864886f70d01050d"!=n(e,o[0]))throw"this only supports pkcs5PBES2";var a=i(e,o[1]);if(2!=o.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+a.length;var c=i(e,a[1]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+c.length;if("2a864886f70d0307"!=n(e,c[0]))throw"this only supports TripleDES";s.encryptionSchemeAlg="TripleDES",s.encryptionSchemeIV=n(e,c[1]);var u=i(e,a[0]);if(2!=u.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+u.length;if("2a864886f70d01050c"!=n(e,u[0]))throw"this only supports pkcs5PBKDF2";var l=i(e,u[1]);if(l.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+l.length;s.pbkdf2Salt=n(e,l[0]);var h=n(e,l[1]);try{s.pbkdf2Iter=parseInt(h,16)}catch(t){throw"malformed format pbkdf2Iter: "+h}return s},getPBKDF2KeyHexFromParam:function(t,e){var i=_.enc.Hex.parse(t.pbkdf2Salt),n=_.PBKDF2(e,i,{keySize:6,iterations:t.pbkdf2Iter});return _.enc.Hex.stringify(n)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(t,e){var i=xt(t,"ENCRYPTED PRIVATE KEY"),n=this.parseHexOfEncryptedPKCS8(i),s=Bt.getPBKDF2KeyHexFromParam(n,e),r={};r.ciphertext=_.enc.Hex.parse(n.ciphertext);var o=_.enc.Hex.parse(s),a=_.enc.Hex.parse(n.encryptionSchemeIV),c=_.TripleDES.decrypt(r,o,{iv:a});return _.enc.Hex.stringify(c)},getKeyFromEncryptedPKCS8PEM:function(t,e){var i=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(t,e);return this.getKeyFromPlainPrivatePKCS8Hex(i)},parsePlainPrivatePKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,s={algparam:null};if("30"!=t.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var r=i(t,0);if(3!=r.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=t.substr(r[1],2))throw"malformed PKCS8 private key(code:003)";var o=i(t,r[1]);if(2!=o.length)throw"malformed PKCS8 private key(code:004)";if("06"!=t.substr(o[0],2))throw"malformed PKCS8 private key(code:005)";if(s.algoid=n(t,o[0]),"06"==t.substr(o[1],2)&&(s.algparam=n(t,o[1])),"04"!=t.substr(r[2],2))throw"malformed PKCS8 private key(code:006)";return s.keyidx=e.getVidx(t,r[2]),s},getKeyFromPlainPrivatePKCS8PEM:function(t){var e=xt(t,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(e)},getKeyFromPlainPrivatePKCS8Hex:function(t){var e,i=this.parsePlainPrivatePKCS8Hex(t);if("2a864886f70d010101"==i.algoid)e=new st;else if("2a8648ce380401"==i.algoid)e=new ut.crypto.DSA;else{if("2a8648ce3d0201"!=i.algoid)throw"unsupported private key algorithm";e=new ut.crypto.ECDSA}return e.readPKCS8PrvKeyHex(t),e},_getKeyFromPublicPKCS8Hex:function(t){var e,i=dt.getVbyList(t,0,[0,0],"06");if("2a864886f70d010101"===i)e=new st;else if("2a8648ce380401"===i)e=new ut.crypto.DSA;else{if("2a8648ce3d0201"!==i)throw"unsupported PKCS#8 public key hex";e=new ut.crypto.ECDSA}return e.readPKCS8PubKeyHex(t),e},parsePublicRawRSAKeyHex:function(t){var e=dt.getChildIdx,i=dt.getV,n={};if("30"!=t.substr(0,2))throw"malformed RSA key(code:001)";var s=e(t,0);if(2!=s.length)throw"malformed RSA key(code:002)";if("02"!=t.substr(s[0],2))throw"malformed RSA key(code:003)";if(n.n=i(t,s[0]),"02"!=t.substr(s[1],2))throw"malformed RSA key(code:004)";return n.e=i(t,s[1]),n},parsePublicPKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,s={algparam:null},r=i(t,0);if(2!=r.length)throw"outer DERSequence shall have 2 elements: "+r.length;var o=r[0];if("30"!=t.substr(o,2))throw"malformed PKCS8 public key(code:001)";var a=i(t,o);if(2!=a.length)throw"malformed PKCS8 public key(code:002)";if("06"!=t.substr(a[0],2))throw"malformed PKCS8 public key(code:003)";if(s.algoid=n(t,a[0]),"06"==t.substr(a[1],2)?s.algparam=n(t,a[1]):"30"==t.substr(a[1],2)&&(s.algparam={},s.algparam.p=e.getVbyList(t,a[1],[0],"02"),s.algparam.q=e.getVbyList(t,a[1],[1],"02"),s.algparam.g=e.getVbyList(t,a[1],[2],"02")),"03"!=t.substr(r[1],2))throw"malformed PKCS8 public key(code:004)";return s.key=n(t,r[1]).substr(2),s}}}();Bt.getKey=function(t,e,i){var n,s=(_=dt).getChildIdx,r=_.getVbyList,o=ut.crypto,a=o.ECDSA,c=o.DSA,u=st,l=xt,h=Bt;if(void 0!==u&&t instanceof u)return t;if(void 0!==a&&t instanceof a)return t;if(void 0!==c&&t instanceof c)return t;if(void 0!==t.curve&&void 0!==t.xy&&void 0===t.d)return new a({pub:t.xy,curve:t.curve});if(void 0!==t.curve&&void 0!==t.d)return new a({prv:t.d,curve:t.curve});if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(x=new u).setPublic(t.n,t.e),x;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.co&&void 0===t.qi)return(x=new u).setPrivateEx(t.n,t.e,t.d,t.p,t.q,t.dp,t.dq,t.co),x;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0===t.p)return(x=new u).setPrivate(t.n,t.e,t.d),x;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0===t.x)return(x=new c).setPublic(t.p,t.q,t.g,t.y),x;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0!==t.x)return(x=new c).setPrivate(t.p,t.q,t.g,t.y,t.x),x;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(x=new u).setPublic(bt(t.n),bt(t.e)),x;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.qi)return(x=new u).setPrivateEx(bt(t.n),bt(t.e),bt(t.d),bt(t.p),bt(t.q),bt(t.dp),bt(t.dq),bt(t.qi)),x;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d)return(x=new u).setPrivate(bt(t.n),bt(t.e),bt(t.d)),x;if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0===t.d){var d=(E=new a({curve:t.crv})).ecparams.keylen/4,f="04"+("0000000000"+bt(t.x)).slice(-d)+("0000000000"+bt(t.y)).slice(-d);return E.setPublicKeyHex(f),E}if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0!==t.d){d=(E=new a({curve:t.crv})).ecparams.keylen/4,f="04"+("0000000000"+bt(t.x)).slice(-d)+("0000000000"+bt(t.y)).slice(-d);var p=("0000000000"+bt(t.d)).slice(-d);return E.setPublicKeyHex(f),E.setPrivateKeyHex(p),E}if("pkcs5prv"===i){var g,m=t,_=dt;if(9===(g=s(m,0)).length)(x=new u).readPKCS5PrvKeyHex(m);else if(6===g.length)(x=new c).readPKCS5PrvKeyHex(m);else{if(!(g.length>2&&"04"===m.substr(g[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(x=new a).readPKCS5PrvKeyHex(m)}return x}if("pkcs8prv"===i)return h.getKeyFromPlainPrivatePKCS8Hex(t);if("pkcs8pub"===i)return h._getKeyFromPublicPKCS8Hex(t);if("x509pub"===i)return Ut.getPublicKeyFromCertHex(t);if(-1!=t.indexOf("-END CERTIFICATE-",0)||-1!=t.indexOf("-END X509 CERTIFICATE-",0)||-1!=t.indexOf("-END TRUSTED CERTIFICATE-",0))return Ut.getPublicKeyFromCertPEM(t);if(-1!=t.indexOf("-END PUBLIC KEY-")){var y=xt(t,"PUBLIC KEY");return h._getKeyFromPublicPKCS8Hex(y)}if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var w=l(t,"RSA PRIVATE KEY");return h.getKey(w,null,"pkcs5prv")}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var b=r(n=l(t,"DSA PRIVATE KEY"),0,[1],"02"),v=r(n,0,[2],"02"),A=r(n,0,[3],"02"),T=r(n,0,[4],"02"),C=r(n,0,[5],"02");return(x=new c).setPrivate(new k(b,16),new k(v,16),new k(A,16),new k(T,16),new k(C,16)),x}if(-1!=t.indexOf("-END PRIVATE KEY-"))return h.getKeyFromPlainPrivatePKCS8PEM(t);if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var S=h.getDecryptedKeyHex(t,e),M=new st;return M.readPKCS5PrvKeyHex(S),M}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var E,x=r(n=h.getDecryptedKeyHex(t,e),0,[1],"04"),R=r(n,0,[2,0],"06"),D=r(n,0,[3,0],"03").substr(2);if(void 0===ut.crypto.OID.oidhex2name[R])throw"undefined OID(hex) in KJUR.crypto.OID: "+R;return(E=new a({curve:ut.crypto.OID.oidhex2name[R]})).setPublicKeyHex(D),E.setPrivateKeyHex(x),E.isPublic=!1,E}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED"))return b=r(n=h.getDecryptedKeyHex(t,e),0,[1],"02"),v=r(n,0,[2],"02"),A=r(n,0,[3],"02"),T=r(n,0,[4],"02"),C=r(n,0,[5],"02"),(x=new c).setPrivate(new k(b,16),new k(v,16),new k(A,16),new k(T,16),new k(C,16)),x;if(-1!=t.indexOf("-END ENCRYPTED PRIVATE KEY-"))return h.getKeyFromEncryptedPKCS8PEM(t,e);throw"not supported argument"},Bt.generateKeypair=function(t,e){if("RSA"==t){var i=e;(o=new st).generate(i,"10001"),o.isPrivate=!0,o.isPublic=!0;var n=new st,s=o.n.toString(16),r=o.e.toString(16);return n.setPublic(s,r),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=o,a.pubKeyObj=n,a}if("EC"==t){var o,a,c=e,u=new ut.crypto.ECDSA({curve:c}).generateKeyPairHex();return(o=new ut.crypto.ECDSA({curve:c})).setPublicKeyHex(u.ecpubhex),o.setPrivateKeyHex(u.ecprvhex),o.isPrivate=!0,o.isPublic=!1,(n=new ut.crypto.ECDSA({curve:c})).setPublicKeyHex(u.ecpubhex),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=o,a.pubKeyObj=n,a}throw"unknown algorithm: "+t},Bt.getPEM=function(t,e,i,n,s,r){var o=ut.asn1,a=o.DERObjectIdentifier,c=o.DERInteger,u=o.ASN1Util.newObject,l=ut.crypto,h=l.DSA,d=l.ECDSA,f=st;function p(t){return u({seq:[{int:0},{int:{bigint:t.n}},{int:t.e},{int:{bigint:t.d}},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.dmp1}},{int:{bigint:t.dmq1}},{int:{bigint:t.coeff}}]})}function g(t){return u({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a0",!0,{oid:{name:t.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]})}function m(t){return u({seq:[{int:0},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}},{int:{bigint:t.y}},{int:{bigint:t.x}}]})}if((void 0!==f&&t instanceof f||void 0!==h&&t instanceof h||void 0!==d&&t instanceof d)&&1==t.isPublic&&(void 0===e||"PKCS8PUB"==e))return Et(v=new(0,o.x509.SubjectPublicKeyInfo)(t).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==e&&void 0!==f&&t instanceof f&&(void 0===i||null==i)&&1==t.isPrivate)return Et(v=p(t).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==e&&void 0!==d&&t instanceof d&&(void 0===i||null==i)&&1==t.isPrivate){var y=new a({name:t.curveName}).getEncodedHex(),w=g(t).getEncodedHex(),b="";return(b+=Et(y,"EC PARAMETERS"))+Et(w,"EC PRIVATE KEY")}if("PKCS1PRV"==e&&void 0!==h&&t instanceof h&&(void 0===i||null==i)&&1==t.isPrivate)return Et(v=m(t).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==e&&void 0!==f&&t instanceof f&&void 0!==i&&null!=i&&1==t.isPrivate){var v=p(t).getEncodedHex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",v,i,n,r)}if("PKCS5PRV"==e&&void 0!==d&&t instanceof d&&void 0!==i&&null!=i&&1==t.isPrivate)return v=g(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",v,i,n,r);if("PKCS5PRV"==e&&void 0!==h&&t instanceof h&&void 0!==i&&null!=i&&1==t.isPrivate)return v=m(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",v,i,n,r);var A=function(t,e){var i=k(t,e);return new u({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:i.pbkdf2Salt}},{int:i.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:i.encryptionSchemeIV}}]}]}]},{octstr:{hex:i.ciphertext}}]}).getEncodedHex()},k=function(t,e){var i=_.lib.WordArray.random(8),n=_.lib.WordArray.random(8),s=_.PBKDF2(e,i,{keySize:6,iterations:100}),r=_.enc.Hex.parse(t),o=_.TripleDES.encrypt(r,s,{iv:n})+"",a={};return a.ciphertext=o,a.pbkdf2Salt=_.enc.Hex.stringify(i),a.pbkdf2Iter=100,a.encryptionSchemeAlg="DES-EDE3-CBC",a.encryptionSchemeIV=_.enc.Hex.stringify(n),a};if("PKCS8PRV"==e&&null!=f&&t instanceof f&&1==t.isPrivate){var T=p(t).getEncodedHex();return v=u({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?Et(v,"PRIVATE KEY"):Et(w=A(v,i),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==e&&void 0!==d&&t instanceof d&&1==t.isPrivate)return T=new u({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]}).getEncodedHex(),v=u({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:t.curveName}}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?Et(v,"PRIVATE KEY"):Et(w=A(v,i),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==e&&void 0!==h&&t instanceof h&&1==t.isPrivate)return T=new c({bigint:t.x}).getEncodedHex(),v=u({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}}]}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?Et(v,"PRIVATE KEY"):Et(w=A(v,i),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},Bt.getKeyFromCSRPEM=function(t){var e=xt(t,"CERTIFICATE REQUEST");return Bt.getKeyFromCSRHex(e)},Bt.getKeyFromCSRHex=function(t){var e=Bt.parseCSRHex(t);return Bt.getKey(e.p8pubkeyhex,null,"pkcs8pub")},Bt.parseCSRHex=function(t){var e=dt.getChildIdx,i=dt.getTLV,n={},s=t;if("30"!=s.substr(0,2))throw"malformed CSR(code:001)";var r=e(s,0);if(r.length<1)throw"malformed CSR(code:002)";if("30"!=s.substr(r[0],2))throw"malformed CSR(code:003)";var o=e(s,r[0]);if(o.length<3)throw"malformed CSR(code:004)";return n.p8pubkeyhex=i(s,o[2]),n},Bt.getJWKFromKey=function(t){var e={};if(t instanceof st&&t.isPrivate)return e.kty="RSA",e.n=wt(t.n.toString(16)),e.e=wt(t.e.toString(16)),e.d=wt(t.d.toString(16)),e.p=wt(t.p.toString(16)),e.q=wt(t.q.toString(16)),e.dp=wt(t.dmp1.toString(16)),e.dq=wt(t.dmq1.toString(16)),e.qi=wt(t.coeff.toString(16)),e;if(t instanceof st&&t.isPublic)return e.kty="RSA",e.n=wt(t.n.toString(16)),e.e=wt(t.e.toString(16)),e;if(t instanceof ut.crypto.ECDSA&&t.isPrivate){if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;var i=t.getPublicKeyXYHex();return e.kty="EC",e.crv=n,e.x=wt(i.x),e.y=wt(i.y),e.d=wt(t.prvKeyHex),e}if(t instanceof ut.crypto.ECDSA&&t.isPublic){var n;if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;return i=t.getPublicKeyXYHex(),e.kty="EC",e.crv=n,e.x=wt(i.x),e.y=wt(i.y),e}throw"not supported key object"},st.getPosArrayOfChildrenFromHex=function(t){return dt.getChildIdx(t,0)},st.getHexValueArrayOfChildrenFromHex=function(t){var e,i=dt.getV,n=i(t,(e=st.getPosArrayOfChildrenFromHex(t))[0]),s=i(t,e[1]),r=i(t,e[2]),o=i(t,e[3]),a=i(t,e[4]),c=i(t,e[5]),u=i(t,e[6]),l=i(t,e[7]),h=i(t,e[8]);return(e=new Array).push(n,s,r,o,a,c,u,l,h),e},st.prototype.readPrivateKeyFromPEMString=function(t){var e=xt(t),i=st.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8])},st.prototype.readPKCS5PrvKeyHex=function(t){var e=st.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},st.prototype.readPKCS8PrvKeyHex=function(t){var e,i,n,s,r,o,a,c,u=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=u(t,0,[2,0,1],"02"),i=u(t,0,[2,0,2],"02"),n=u(t,0,[2,0,3],"02"),s=u(t,0,[2,0,4],"02"),r=u(t,0,[2,0,5],"02"),o=u(t,0,[2,0,6],"02"),a=u(t,0,[2,0,7],"02"),c=u(t,0,[2,0,8],"02")}catch(t){throw"malformed PKCS#8 plain RSA private key"}this.setPrivateEx(e,i,n,s,r,o,a,c)},st.prototype.readPKCS5PubKeyHex=function(t){var e=dt,i=e.getV;if(!1===e.isASN1HEX(t))throw"keyHex is not ASN.1 hex string";var n=e.getChildIdx(t,0);if(2!==n.length||"02"!==t.substr(n[0],2)||"02"!==t.substr(n[1],2))throw"wrong hex for PKCS#5 public key";var s=i(t,n[0]),r=i(t,n[1]);this.setPublic(s,r)},st.prototype.readPKCS8PubKeyHex=function(t){var e=dt;if(!1===e.isASN1HEX(t))throw"not ASN.1 hex string";if("06092a864886f70d010101"!==e.getTLVbyList(t,0,[0,0]))throw"not PKCS8 RSA public key";var i=e.getTLVbyList(t,0,[1,0]);this.readPKCS5PubKeyHex(i)},st.prototype.readCertPubKeyHex=function(t,e){var i,n;(i=new Ut).readCertHex(t),n=i.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)};var jt=new RegExp("");function Yt(t,e){for(var i="",n=e/4-t.length,s=0;s>24,(16711680&s)>>16,(65280&s)>>8,255&s])))),s+=1;return n}function Kt(t){for(var e in ut.crypto.Util.DIGESTINFOHEAD){var i=ut.crypto.Util.DIGESTINFOHEAD[e],n=i.length;if(t.substring(0,n)==i)return[e,t.substring(n)]}return[]}function Ut(){var t=dt,e=t.getChildIdx,i=t.getV,n=t.getTLV,s=t.getVbyList,r=t.getTLVbyList,o=t.getIdxbyList,a=t.getVidx,c=t.oidname,u=Ut,l=xt;this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==r(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return s(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){return c(s(this.hex,0,[0,2+this.foffset,0],"06"))},this.getIssuerHex=function(){return r(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return u.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return r(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return u.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var t=s(this.hex,0,[0,4+this.foffset,0]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getNotAfter=function(){var t=s(this.hex,0,[0,4+this.foffset,1]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getPublicKeyHex=function(){return t.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return o(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var t=this.getPublicKeyIdx();return o(this.hex,t,[1,0],"30")},this.getPublicKey=function(){return Bt.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return c(s(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return s(this.hex,0,[2],"03",!0)},this.verifySignature=function(t){var e=this.getSignatureAlgorithmName(),i=this.getSignatureValueHex(),n=r(this.hex,0,[0],"30"),s=new ut.crypto.Signature({alg:e});return s.init(t),s.updateHex(n),s.verify(i)},this.parseExt=function(){if(3!==this.version)return-1;var i=o(this.hex,0,[0,7,0],"30"),n=e(this.hex,i);this.aExtInfo=new Array;for(var r=0;r0&&(u=new Array(i),(new et).nextBytes(u),u=String.fromCharCode.apply(String,u));var l=kt(c(Tt("\0\0\0\0\0\0\0\0"+s+u))),h=[];for(n=0;n>8*a-o&255),n=0;nthis.n.bitLength())return 0;var n=Kt(this.doPublic(i).toString(16).replace(/^1f+00/,""));if(0==n.length)return!1;var s=n[0];return n[1]==function(t){return ut.crypto.Util.hashString(t,s)}(t)},st.prototype.verifyWithMessageHash=function(t,e){var i=it(e=(e=e.replace(jt,"")).replace(/[ \n]+/g,""),16);if(i.bitLength()>this.n.bitLength())return 0;var n=Kt(this.doPublic(i).toString(16).replace(/^1f+00/,""));return 0!=n.length&&n[1]==t},st.prototype.verifyPSS=function(t,e,i,n){var s=function(t){return ut.crypto.Util.hashHex(t,i)}(Tt(t));return void 0===n&&(n=-1),this.verifyWithMessageHashPSS(s,e,i,n)},st.prototype.verifyWithMessageHashPSS=function(t,e,i,n){var s=new k(e,16);if(s.bitLength()>this.n.bitLength())return!1;var r,o=function(t){return ut.crypto.Util.hashHex(t,i)},a=kt(t),c=a.length,u=this.n.bitLength()-1,l=Math.ceil(u/8);if(-1===n||void 0===n)n=c;else if(-2===n)n=l-c-2;else if(n<-2)throw"invalid salt length";if(l>8*l-u&255;if(0!=(d.charCodeAt(0)&p))throw"bits beyond keysize not zero";var g=Nt(f,d.length,o),m=[];for(r=0;r0&&-1==(":"+n.join(":")+":").indexOf(":"+m+":"))throw"algorithm '"+m+"' not accepted in the list";if("none"!=m&&null===e)throw"key shall be specified to verify.";if("string"==typeof e&&-1!=e.indexOf("-----BEGIN ")&&(e=Bt.getKey(e)),!("RS"!=d&&"PS"!=d||e instanceof s))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==d&&!(e instanceof c))throw"key shall be a ECDSA obj for ES* algs";var _=null;if(void 0===r.jwsalg2sigalg[g.alg])throw"unsupported alg name: "+m;if("none"==(_=r.jwsalg2sigalg[m]))throw"not supported";if("Hmac"==_.substr(0,4)){if(void 0===e)throw"hexadecimal key shall be specified for HMAC";var y=new u({alg:_,pass:e});return y.updateString(f),p==y.doFinal()}if(-1!=_.indexOf("withECDSA")){var w,b=null;try{b=c.concatSigToASN1Sig(p)}catch(t){return!1}return(w=new l({alg:_})).init(e),w.updateString(f),w.verify(b)}return(w=new l({alg:_})).init(e),w.updateString(f),w.verify(p)},ut.jws.JWS.parse=function(t){var e,i,n=t.split("."),s={};if(2!=n.length&&3!=n.length)throw"malformed sJWS: wrong number of '.' splitted elements";return e=n[1],3==n.length&&(i=n[2]),s.headerObj=ut.jws.JWS.readSafeJSONString(ht(n[0])),s.payloadObj=ut.jws.JWS.readSafeJSONString(ht(e)),s.headerPP=JSON.stringify(s.headerObj,null," "),s.payloadPP=null==s.payloadObj?ht(e):JSON.stringify(s.payloadObj,null," "),void 0!==i&&(s.sigHex=bt(i)),s},ut.jws.JWS.verifyJWT=function(t,e,n){var s=ut.jws,r=s.JWS,o=r.readSafeJSONString,a=r.inArray,c=r.includedArray,u=t.split("."),l=u[0],h=u[1],d=(bt(u[2]),o(ht(l))),f=o(ht(h));if(void 0===d.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!a(d.alg,n.alg))return!1;if(void 0!==f.iss&&"object"===i(n.iss)&&!a(f.iss,n.iss))return!1;if(void 0!==f.sub&&"object"===i(n.sub)&&!a(f.sub,n.sub))return!1;if(void 0!==f.aud&&"object"===i(n.aud))if("string"==typeof f.aud){if(!a(f.aud,n.aud))return!1}else if("object"==i(f.aud)&&!c(f.aud,n.aud))return!1;var p=s.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(p=n.verifyAt),void 0!==n.gracePeriod&&"number"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==f.exp&&"number"==typeof f.exp&&f.exp+n.gracePeriode.length&&(i=e.length);for(var n=0;n=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function p(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return Y(t).length;default:if(n)return j(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function m(t,e,i,n,s){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=s?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(s)return-1;i=t.length-1}else if(i<0){if(!s)return-1;i=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:_(t,e,i,n,s);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):_(t,[e],i,n,s);throw new TypeError("val must be string, number or Buffer")}function _(t,e,i,n,s){var r,o=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,i/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(s){var l=-1;for(r=i;ra&&(i=a-c),r=i;r>=0;r--){for(var h=!0,d=0;ds&&(n=s):n=s;var r=e.length;if(r%2!=0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var o=0;o>8,s.push(i%256),s.push(n);return s}(e,t.length-i),t,i,n)}function T(t,e,i){return n.fromByteArray(0===e&&i===t.length?t:t.slice(e,i))}function C(t,e,i){i=Math.min(t.length,i);for(var n=[],s=e;s239?4:u>223?3:u>191?2:1;if(s+h<=i)switch(h){case 1:u<128&&(l=u);break;case 2:128==(192&(r=t[s+1]))&&(c=(31&u)<<6|63&r)>127&&(l=c);break;case 3:o=t[s+2],128==(192&(r=t[s+1]))&&128==(192&o)&&(c=(15&u)<<12|(63&r)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=t[s+2],a=t[s+3],128==(192&(r=t[s+1]))&&128==(192&o)&&128==(192&a)&&(c=(15&u)<<18|(63&r)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(n.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),n.push(l),s+=h}return function(t){var e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);for(var i="",n=0;nthis.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,e,i);case"utf8":case"utf-8":return C(this,e,i);case"ascii":return M(this,e,i);case"latin1":case"binary":return E(this,e,i);case"base64":return T(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}).apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),""},c.prototype.compare=function(t,e,i,n,s){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),e<0||i>t.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&e>=i)return 0;if(n>=s)return-1;if(e>=i)return 1;if(this===t)return 0;for(var r=(s>>>=0)-(n>>>=0),o=(i>>>=0)-(e>>>=0),a=Math.min(r,o),u=this.slice(n,s),l=t.slice(e,i),h=0;hs)&&(i=s),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return y(this,t,e,i);case"utf8":case"utf-8":return w(this,t,e,i);case"ascii":return b(this,t,e,i);case"latin1":case"binary":return v(this,t,e,i);case"base64":return A(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function M(t,e,i){var n="";i=Math.min(t.length,i);for(var s=e;sn)&&(i=n);for(var s="",r=e;ri)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,i,n,s,r){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||et.length)throw new RangeError("Index out of range")}function L(t,e,i,n){e<0&&(e=65535+e+1);for(var s=0,r=Math.min(t.length-i,2);s>>8*(n?s:1-s)}function z(t,e,i,n){e<0&&(e=4294967295+e+1);for(var s=0,r=Math.min(t.length-i,4);s>>8*(n?s:3-s)&255}function I(t,e,i,n,s,r){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function F(t,e,i,n,r){return r||I(t,0,i,4),s.write(t,e,i,n,23,4),i+4}function H(t,e,i,n,r){return r||I(t,0,i,8),s.write(t,e,i,n,52,8),i+8}c.prototype.slice=function(t,e){var i,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(s*=256);)n+=this[t+--e]*s;return n},c.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||D(t,e,this.length);for(var n=this[t],s=1,r=0;++r=(s*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||D(t,e,this.length);for(var n=e,s=1,r=this[t+--n];n>0&&(s*=256);)r+=this[t+--n]*s;return r>=(s*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(t,e){return e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||D(t,4,this.length),s.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),s.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),s.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),s.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,i,n){t=+t,e|=0,i|=0,n||P(this,t,e,i,Math.pow(2,8*i)-1,0);var s=1,r=0;for(this[e]=255&t;++r=0&&(r*=256);)this[e+s]=t/r&255;return e+i},c.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):z(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):z(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*i-1);P(this,t,e,i,s-1,-s)}var r=0,o=1,a=0;for(this[e]=255&t;++r>0)-a&255;return e+i},c.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*i-1);P(this,t,e,i,s-1,-s)}var r=i-1,o=1,a=0;for(this[e+r]=255&t;--r>=0&&(o*=256);)t<0&&0===a&&0!==this[e+r+1]&&(a=1),this[e+r]=(t/o>>0)-a&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):z(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):z(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,i){return F(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return F(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return H(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return H(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--s)t[s+e]=this[s+i];else if(r<1e3||!c.TYPED_ARRAY_SUPPORT)for(s=0;s>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(r=e;r55295&&i<57344){if(!s){if(i>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&r.push(239,191,189);continue}s=i;continue}if(i<56320){(e-=3)>-1&&r.push(239,191,189),s=i;continue}i=65536+(s-55296<<10|i-56320)}else s&&(e-=3)>-1&&r.push(239,191,189);if(s=null,i<128){if((e-=1)<0)break;r.push(i)}else if(i<2048){if((e-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function Y(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(O,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function N(t,e,i,n){for(var s=0;s=e.length||s>=t.length);++s)e[s+i]=t[s];return s}}).call(this,i(28))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";e.byteLength=function(t){var e=u(t),i=e[1];return 3*(e[0]+i)/4-i},e.toByteArray=function(t){for(var e,i=u(t),n=i[0],o=i[1],a=new r(function(t,e,i){return 3*(e+i)/4-i}(0,n,o)),c=0,l=o>0?n-4:n,h=0;h>16&255,a[c++]=e>>8&255,a[c++]=255&e;return 2===o&&(e=s[t.charCodeAt(h)]<<2|s[t.charCodeAt(h+1)]>>4,a[c++]=255&e),1===o&&(e=s[t.charCodeAt(h)]<<10|s[t.charCodeAt(h+1)]<<4|s[t.charCodeAt(h+2)]>>2,a[c++]=e>>8&255,a[c++]=255&e),a},e.fromByteArray=function(t){for(var e,i=t.length,s=i%3,r=[],o=0,a=i-s;oa?a:o+16383));return 1===s?r.push(n[(e=t[i-1])>>2]+n[e<<4&63]+"=="):2===s&&r.push(n[(e=(t[i-2]<<8)+t[i-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),r.join("")};for(var n=[],s=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function l(t,e,i){for(var s,r=[],o=e;o>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return r.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,i,n,s){var r,o,a=8*s-n-1,c=(1<>1,l=-7,h=i?s-1:0,d=i?-1:1,f=t[e+h];for(h+=d,r=f&(1<<-l)-1,f>>=-l,l+=a;l>0;r=256*r+t[e+h],h+=d,l-=8);for(o=r&(1<<-l)-1,r>>=-l,l+=n;l>0;o=256*o+t[e+h],h+=d,l-=8);if(0===r)r=1-u;else{if(r===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),r-=u}return(f?-1:1)*o*Math.pow(2,r-n)},e.write=function(t,e,i,n,s,r){var o,a,c,u=8*r-s-1,l=(1<>1,d=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:r-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=l):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(o++,c/=2),o+h>=l?(a=0,o=l):o+h>=1?(a=(e*c-1)*Math.pow(2,s),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,s),o=0));s>=8;t[i+f]=255&a,f+=p,a/=256,s-=8);for(o=o<0;t[i+f]=255&o,f+=p,o/=256,u-=8);t[i+f-p]|=128*g}},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.jws,i=t.KeyUtil,s=t.X509,r=t.crypto,o=t.hextob64u,a=t.b64tohex,c=t.AllowedSigningAlgs;return function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.parseJwt=function t(i){n.Log.debug("JoseUtil.parseJwt");try{var s=e.JWS.parse(i);return{header:s.headerObj,payload:s.payloadObj}}catch(t){n.Log.error(t)}},t.validateJwt=function(e,r,o,c,u,l,h){n.Log.debug("JoseUtil.validateJwt");try{if("RSA"===r.kty)if(r.e&&r.n)r=i.getKey(r);else{if(!r.x5c||!r.x5c.length)return n.Log.error("JoseUtil.validateJwt: RSA key missing key material",r),Promise.reject(new Error("RSA key missing key material"));var d=a(r.x5c[0]);r=s.getPublicKeyFromCertHex(d)}else{if("EC"!==r.kty)return n.Log.error("JoseUtil.validateJwt: Unsupported key type",r&&r.kty),Promise.reject(new Error(r.kty));if(!(r.crv&&r.x&&r.y))return n.Log.error("JoseUtil.validateJwt: EC key missing key material",r),Promise.reject(new Error("EC key missing key material"));r=i.getKey(r)}return t._validateJwt(e,r,o,c,u,l,h)}catch(t){return n.Log.error(t&&t.message||t),Promise.reject("JWT validation failed")}},t.validateJwtAttributes=function(e,i,s,r,o,a){r||(r=0),o||(o=parseInt(Date.now()/1e3));var c=t.parseJwt(e).payload;if(!c.iss)return n.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(c.iss!==i)return n.Log.error("JoseUtil._validateJwt: Invalid issuer in token",c.iss),Promise.reject(new Error("Invalid issuer in token: "+c.iss));if(!c.aud)return n.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(c.aud===s||Array.isArray(c.aud)&&c.aud.indexOf(s)>=0))return n.Log.error("JoseUtil._validateJwt: Invalid audience in token",c.aud),Promise.reject(new Error("Invalid audience in token: "+c.aud));if(c.azp&&c.azp!==s)return n.Log.error("JoseUtil._validateJwt: Invalid azp in token",c.azp),Promise.reject(new Error("Invalid azp in token: "+c.azp));if(!a){var u=o+r,l=o-r;if(!c.iat)return n.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(u>>((3&e)<<3)&255;return s}}},function(t,e){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninResponse=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"#";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=s.UrlUtility.parseUrlFragment(e,i);this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.code=n.code,this.state=n.state,this.id_token=n.id_token,this.session_state=n.session_state,this.access_token=n.access_token,this.token_type=n.token_type,this.scope=n.scope,this.profile=void 0,this.expires_in=n.expires_in}return n(t,[{key:"expires_in",get:function(){if(this.expires_at){var t=parseInt(Date.now()/1e3);return this.expires_at-t}},set:function(t){var e=parseInt(t);if("number"==typeof e&&e>0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutRequest=void 0;var n=i(0),s=i(3),r=i(8);e.SignoutRequest=function t(e){var i=e.url,o=e.id_token_hint,a=e.post_logout_redirect_uri,c=e.data,u=e.extraQueryParams,l=e.request_type;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var h in o&&(i=s.UrlUtility.addQueryParam(i,"id_token_hint",o)),a&&(i=s.UrlUtility.addQueryParam(i,"post_logout_redirect_uri",a),c&&(this.state=new r.State({data:c,request_type:l}),i=s.UrlUtility.addQueryParam(i,"state",this.state.id))),u)i=s.UrlUtility.addQueryParam(i,h,u[h]);this.url=i}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutResponse=void 0;var n=i(3);e.SignoutResponse=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=n.UrlUtility.parseUrlFragment(e,"?");this.error=i.error,this.error_description=i.error_description,this.error_uri=i.error_uri,this.state=i.state}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryWebStorage=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.SilentRenewService,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.SessionMonitor,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.TokenRevocationClient,p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d.TokenClient,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:f.JoseUtil;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i instanceof o.UserManagerSettings||(i=new o.UserManagerSettings(i));var m=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return m._events=new c.UserManagerEvents(i),m._silentRenewService=new n(m),m.settings.automaticSilentRenew&&(s.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),m.startSilentRenew()),m.settings.monitorSession&&(s.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),m._sessionMonitor=new r(m)),m._tokenRevocationClient=new a(m._settings),m._tokenClient=new p(m._settings),m._joseUtil=g,m}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getUser=function(){var t=this;return this._loadUser().then(function(e){return e?(s.Log.info("UserManager.getUser: user loaded"),t._events.load(e,!1),e):(s.Log.info("UserManager.getUser: user not found in storage"),null)})},e.prototype.removeUser=function(){var t=this;return this.storeUser(null).then(function(){s.Log.info("UserManager.removeUser: user removed from storage"),t._events.unload()})},e.prototype.signinRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:r";var e={useReplaceToNavigate:t.useReplaceToNavigate};return this._signinStart(t,this._redirectNavigator,e).then(function(){s.Log.info("UserManager.signinRedirect: successful")})},e.prototype.signinRedirectCallback=function(t){return this._signinEnd(t||this._redirectNavigator.url).then(function(t){return t.profile&&t.profile.sub?s.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinRedirectCallback: no sub"),t})},e.prototype.signinPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:p";var e=t.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.display="popup",this._signin(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinPopup: no sub")),t})):(s.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},e.prototype.signinPopupCallback=function(t){return this._signinCallback(t,this._popupNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinPopupCallback: no sub")),t}).catch(function(t){s.Log.error(t.message)})},e.prototype.signinSilent=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).request_type="si:s",this._loadUser().then(function(i){return i&&i.refresh_token?(e.refresh_token=i.refresh_token,t._useRefreshToken(e)):(e.id_token_hint=e.id_token_hint||t.settings.includeIdTokenInSilentRenew&&i&&i.id_token,i&&t._settings.validateSubOnSilentRenew&&(s.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",i.profile.sub),e.current_sub=i.profile.sub),t._signinSilentIframe(e))})},e.prototype._useRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(e).then(function(e){return e?e.access_token?t._loadUser().then(function(i){if(i){var n=Promise.resolve();return e.id_token&&(n=t._validateIdTokenFromTokenRefreshToken(i.profile,e.id_token)),n.then(function(){return s.Log.debug("UserManager._useRefreshToken: refresh token response success"),i.id_token=e.id_token,i.access_token=e.access_token,i.refresh_token=e.refresh_token||i.refresh_token,i.expires_in=e.expires_in,t.storeUser(i).then(function(){return t._events.load(i),i})})}return null}):(s.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(s.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))})},e.prototype._validateIdTokenFromTokenRefreshToken=function(t,e){var i=this;return this._metadataService.getIssuer().then(function(n){return i._joseUtil.validateJwtAttributes(e,n,i._settings.client_id,i._settings.clockSkew).then(function(e){return e?e.sub!==t.sub?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):e.auth_time&&e.auth_time!==t.auth_time?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):e.azp&&e.azp!==t.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!e.azp&&t.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))})})},e.prototype._signinSilentIframe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.prompt=t.prompt||"none",this._signin(t,this._iframeNavigator,{startUrl:e,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinSilent: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinSilent: no sub")),t})):(s.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype.signinSilentCallback=function(t){return this._signinCallback(t,this._iframeNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinSilentCallback: no sub")),t})},e.prototype.signinCallback=function(t){var e=this;return this.readSigninResponseState(t).then(function(i){var n=i.state;return"si:r"===n.request_type?e.signinRedirectCallback(t):"si:p"===n.request_type?e.signinPopupCallback(t):"si:s"===n.request_type?e.signinSilentCallback(t):Promise.reject(new Error("invalid response_type in state"))})},e.prototype.signoutCallback=function(t,e){var i=this;return this.readSignoutResponseState(t).then(function(n){var s=n.state,r=n.response;return s?"so:r"===s.request_type?i.signoutRedirectCallback(t):"so:p"===s.request_type?i.signoutPopupCallback(t,e):Promise.reject(new Error("invalid response_type in state")):r})},e.prototype.querySessionStatus=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:s";var i=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return i?(e.redirect_uri=i,e.prompt="none",e.response_type=e.response_type||this.settings.query_status_response_type,e.scope=e.scope||"openid",e.skipUserInfo=!0,this._signinStart(e,this._iframeNavigator,{startUrl:i,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(e){return t.processSigninResponse(e.url).then(function(t){if(s.Log.debug("UserManager.querySessionStatus: got signin response"),t.session_state&&t.profile.sub)return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",t.profile.sub),{session_state:t.session_state,sub:t.profile.sub,sid:t.profile.sid};s.Log.info("querySessionStatus successful, user not authenticated")}).catch(function(e){if(e.session_state&&t.settings.monitorAnonymousSession&&("login_required"==e.message||"consent_required"==e.message||"interaction_required"==e.message||"account_selection_required"==e.message))return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:e.session_state};throw e})})):(s.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype._signin=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(t,e,n).then(function(e){return i._signinEnd(e.url,t)})},e.prototype._signinStart=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.prepare(n).then(function(e){return s.Log.debug("UserManager._signinStart: got navigator window handle"),i.createSigninRequest(t).then(function(t){return s.Log.debug("UserManager._signinStart: got signin request"),n.url=t.url,n.id=t.state.id,e.navigate(n)}).catch(function(t){throw e.close&&(s.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),e.close()),t})})},e.prototype._signinEnd=function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(t).then(function(t){s.Log.debug("UserManager._signinEnd: got signin response");var n=new a.User(t);if(i.current_sub){if(i.current_sub!==n.profile.sub)return s.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",n.profile.sub),Promise.reject(new Error("login_required"));s.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return e.storeUser(n).then(function(){return s.Log.debug("UserManager._signinEnd: user stored"),e._events.load(n),n})})},e.prototype._signinCallback=function(t,e){return s.Log.debug("UserManager._signinCallback"),e.callback(t)},e.prototype.signoutRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:r";var e=t.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;e&&(t.post_logout_redirect_uri=e);var i={useReplaceToNavigate:t.useReplaceToNavigate};return this._signoutStart(t,this._redirectNavigator,i).then(function(){s.Log.info("UserManager.signoutRedirect: successful")})},e.prototype.signoutRedirectCallback=function(t){return this._signoutEnd(t||this._redirectNavigator.url).then(function(t){return s.Log.info("UserManager.signoutRedirectCallback: successful"),t})},e.prototype.signoutPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:p";var e=t.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return t.post_logout_redirect_uri=e,t.display="popup",t.post_logout_redirect_uri&&(t.state=t.state||{}),this._signout(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(){s.Log.info("UserManager.signoutPopup: successful")})},e.prototype.signoutPopupCallback=function(t,e){return void 0===e&&"boolean"==typeof t&&(e=t,t=null),this._popupNavigator.callback(t,e,"?").then(function(){s.Log.info("UserManager.signoutPopupCallback: successful")})},e.prototype._signout=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(t,e,n).then(function(t){return i._signoutEnd(t.url)})},e.prototype._signoutStart=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,i=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.prepare(n).then(function(i){return s.Log.debug("UserManager._signoutStart: got navigator window handle"),e._loadUser().then(function(r){return s.Log.debug("UserManager._signoutStart: loaded current user from storage"),(e._settings.revokeAccessTokenOnSignout?e._revokeInternal(r):Promise.resolve()).then(function(){var o=t.id_token_hint||r&&r.id_token;return o&&(s.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),t.id_token_hint=o),e.removeUser().then(function(){return s.Log.debug("UserManager._signoutStart: user removed, creating signout request"),e.createSignoutRequest(t).then(function(t){return s.Log.debug("UserManager._signoutStart: got signout request"),n.url=t.url,t.state&&(n.id=t.state.id),i.navigate(n)})})})}).catch(function(t){throw i.close&&(s.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),i.close()),t})})},e.prototype._signoutEnd=function(t){return this.processSignoutResponse(t).then(function(t){return s.Log.debug("UserManager._signoutEnd: got signout response"),t})},e.prototype.revokeAccessToken=function(){var t=this;return this._loadUser().then(function(e){return t._revokeInternal(e,!0).then(function(i){if(i)return s.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),e.access_token=null,e.refresh_token=null,e.expires_at=null,e.token_type=null,t.storeUser(e).then(function(){s.Log.debug("UserManager.revokeAccessToken: user stored"),t._events.load(e)})})}).then(function(){s.Log.info("UserManager.revokeAccessToken: access token revoked successfully")})},e.prototype._revokeInternal=function(t,e){var i=this;if(t){var n=t.refresh_token;return this._revokeAccessTokenInternal(t.access_token,e).then(function(t){return i._revokeRefreshTokenInternal(n,e).then(function(e){return t||e||s.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),t||e})})}return Promise.resolve(!1)},e.prototype._revokeAccessTokenInternal=function(t,e){return!t||t.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(t,e).then(function(){return!0})},e.prototype._revokeRefreshTokenInternal=function(t,e){return t?this._tokenRevocationClient.revoke(t,e,"refresh_token").then(function(){return!0}):Promise.resolve(!1)},e.prototype.startSilentRenew=function(){this._silentRenewService.start()},e.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},e.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then(function(t){return t?(s.Log.debug("UserManager._loadUser: user storageString loaded"),a.User.fromStorageString(t)):(s.Log.debug("UserManager._loadUser: no user storageString"),null)})},e.prototype.storeUser=function(t){if(t){s.Log.debug("UserManager.storeUser: storing user");var e=t.toStorageString();return this._userStore.set(this._userStoreKey,e)}return s.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},n(e,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),e}(r.OidcClient)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserManagerSettings=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.popup_redirect_uri,s=i.popup_post_logout_redirect_uri,h=i.popupWindowFeatures,d=i.popupWindowTarget,f=i.silent_redirect_uri,p=i.silentRequestTimeout,g=i.automaticSilentRenew,m=void 0!==g&&g,_=i.validateSubOnSilentRenew,y=void 0!==_&&_,w=i.includeIdTokenInSilentRenew,b=void 0===w||w,v=i.monitorSession,A=void 0===v||v,k=i.monitorAnonymousSession,T=void 0!==k&&k,C=i.checkSessionInterval,S=void 0===C?2e3:C,M=i.stopCheckSessionOnError,E=void 0===M||M,x=i.query_status_response_type,R=i.revokeAccessTokenOnSignout,D=void 0!==R&&R,P=i.accessTokenExpiringNotificationTime,L=void 0===P?60:P,z=i.redirectNavigator,I=void 0===z?new r.RedirectNavigator:z,F=i.popupNavigator,H=void 0===F?new o.PopupNavigator:F,O=i.iframeNavigator,B=void 0===O?new a.IFrameNavigator:O,j=i.userStore,Y=void 0===j?new c.WebStorageStateStore({store:u.Global.sessionStorage}):j;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var N=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));return N._popup_redirect_uri=n,N._popup_post_logout_redirect_uri=s,N._popupWindowFeatures=h,N._popupWindowTarget=d,N._silent_redirect_uri=f,N._silentRequestTimeout=p,N._automaticSilentRenew=m,N._validateSubOnSilentRenew=y,N._includeIdTokenInSilentRenew=b,N._accessTokenExpiringNotificationTime=L,N._monitorSession=A,N._monitorAnonymousSession=T,N._checkSessionInterval=S,N._stopCheckSessionOnError=E,N._query_status_response_type=x||(arguments[0]&&arguments[0].response_type?l.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":"id_token"),N._revokeAccessTokenOnSignout=D,N._redirectNavigator=I,N._popupNavigator=H,N._iframeNavigator=B,N._userStore=Y,N}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),e}(s.OidcClientSettings)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RedirectNavigator=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1])||arguments[1];n.Log.debug("UserManagerEvents.load"),t.prototype.load.call(this,e),i&&this._userLoaded.raise(e)},e.prototype.unload=function(){n.Log.debug("UserManagerEvents.unload"),t.prototype.unload.call(this),this._userUnloaded.raise()},e.prototype.addUserLoaded=function(t){this._userLoaded.addHandler(t)},e.prototype.removeUserLoaded=function(t){this._userLoaded.removeHandler(t)},e.prototype.addUserUnloaded=function(t){this._userUnloaded.addHandler(t)},e.prototype.removeUserUnloaded=function(t){this._userUnloaded.removeHandler(t)},e.prototype.addSilentRenewError=function(t){this._silentRenewError.addHandler(t)},e.prototype.removeSilentRenewError=function(t){this._silentRenewError.removeHandler(t)},e.prototype._raiseSilentRenewError=function(t){n.Log.debug("UserManagerEvents._raiseSilentRenewError",t.message),this._silentRenewError.raise(t)},e.prototype.addUserSignedIn=function(t){this._userSignedIn.addHandler(t)},e.prototype.removeUserSignedIn=function(t){this._userSignedIn.removeHandler(t)},e.prototype._raiseUserSignedIn=function(){n.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},e.prototype.addUserSignedOut=function(t){this._userSignedOut.addHandler(t)},e.prototype.removeUserSignedOut=function(t){this._userSignedOut.removeHandler(t)},e.prototype._raiseUserSignedOut=function(){n.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},e.prototype.addUserSessionChanged=function(t){this._userSessionChanged.addHandler(t)},e.prototype.removeUserSessionChanged=function(t){this._userSessionChanged.removeHandler(t)},e.prototype._raiseUserSessionChanged=function(){n.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},e}(s.AccessTokenEvents)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:r.Global.timer,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return o._timer=n,o._nowFunc=s||function(){return Date.now()/1e3},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.init=function(t){t<=0&&(t=1),t=parseInt(t);var e=this.now+t;if(this.expiration===e&&this._timerHandle)s.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),s.Log.debug("Timer.init timer "+this._name+" for duration:",t),this._expiration=e;var i=5;t{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,i,n,s){n=n||"=";var r={};if("string"!=typeof t||0===t.length)return r;var o=/\+/g;t=t.split(i=i||"&");var a=1e3;s&&"number"==typeof s.maxKeys&&(a=s.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var u=0;u=0?(l=p.substr(0,g),h=p.substr(g+1)):(l=p,h=""),d=decodeURIComponent(l),f=decodeURIComponent(h),e(r,d)?Array.isArray(r[d])?r[d].push(f):r[d]=[r[d],f]:r[d]=f}return r}},5341:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,s){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(s){var r=encodeURIComponent(e(s))+n;return Array.isArray(t[s])?t[s].map(function(t){return r+encodeURIComponent(e(t))}).join(i):r+encodeURIComponent(e(t[s]))}).join(i):s?encodeURIComponent(e(s))+n+encodeURIComponent(e(t)):""}},6577:(t,e,i)=>{"use strict";i(963),i(5341)},6700:(t,e,i)=>{var n={"./af":776,"./af.js":776,"./ar":7634,"./ar-dz":2758,"./ar-dz.js":2758,"./ar-kw":4980,"./ar-kw.js":4980,"./ar-ly":9602,"./ar-ly.js":9602,"./ar-ma":2500,"./ar-ma.js":2500,"./ar-sa":6909,"./ar-sa.js":6909,"./ar-tn":2735,"./ar-tn.js":2735,"./ar.js":7634,"./az":7798,"./az.js":7798,"./be":9949,"./be.js":9949,"./bg":4590,"./bg.js":4590,"./bm":5938,"./bm.js":5938,"./bn":595,"./bn.js":595,"./bo":4756,"./bo.js":4756,"./br":7277,"./br.js":7277,"./bs":4166,"./bs.js":4166,"./ca":3943,"./ca.js":3943,"./cs":3474,"./cs.js":3474,"./cv":2218,"./cv.js":2218,"./cy":1061,"./cy.js":1061,"./da":2743,"./da.js":2743,"./de":1899,"./de-at":8580,"./de-at.js":8580,"./de-ch":3264,"./de-ch.js":3264,"./de.js":1899,"./dv":8784,"./dv.js":8784,"./el":4654,"./el.js":4654,"./en-SG":4047,"./en-SG.js":4047,"./en-au":6277,"./en-au.js":6277,"./en-ca":6896,"./en-ca.js":6896,"./en-gb":1609,"./en-gb.js":1609,"./en-ie":4557,"./en-ie.js":4557,"./en-il":5836,"./en-il.js":5836,"./en-nz":3586,"./en-nz.js":3586,"./eo":2777,"./eo.js":2777,"./es":3357,"./es-do":3128,"./es-do.js":3128,"./es-us":3256,"./es-us.js":3256,"./es.js":3357,"./et":2654,"./et.js":2654,"./eu":7287,"./eu.js":7287,"./fa":3875,"./fa.js":3875,"./fi":3431,"./fi.js":3431,"./fo":1781,"./fo.js":1781,"./fr":1717,"./fr-ca":1539,"./fr-ca.js":1539,"./fr-ch":9847,"./fr-ch.js":9847,"./fr.js":1717,"./fy":2250,"./fy.js":2250,"./ga":7665,"./ga.js":7665,"./gd":5214,"./gd.js":5214,"./gl":6154,"./gl.js":6154,"./gom-latn":8518,"./gom-latn.js":8518,"./gu":9221,"./gu.js":9221,"./he":4743,"./he.js":4743,"./hi":7339,"./hi.js":7339,"./hr":3224,"./hr.js":3224,"./hu":856,"./hu.js":856,"./hy-am":6855,"./hy-am.js":6855,"./id":2190,"./id.js":2190,"./is":3887,"./is.js":3887,"./it":9270,"./it-ch":5890,"./it-ch.js":5890,"./it.js":9270,"./ja":6595,"./ja.js":6595,"./jv":3081,"./jv.js":3081,"./ka":7477,"./ka.js":7477,"./kk":3978,"./kk.js":3978,"./km":9205,"./km.js":9205,"./kn":25,"./kn.js":25,"./ko":427,"./ko.js":427,"./ku":9089,"./ku.js":9089,"./ky":9314,"./ky.js":9314,"./lb":3136,"./lb.js":3136,"./lo":9115,"./lo.js":9115,"./lt":7087,"./lt.js":7087,"./lv":5683,"./lv.js":5683,"./me":9454,"./me.js":9454,"./mi":5507,"./mi.js":5507,"./mk":8466,"./mk.js":8466,"./ml":2933,"./ml.js":2933,"./mn":9477,"./mn.js":9477,"./mr":3597,"./mr.js":3597,"./ms":5529,"./ms-my":9965,"./ms-my.js":9965,"./ms.js":5529,"./mt":259,"./mt.js":259,"./my":8061,"./my.js":8061,"./nb":2618,"./nb.js":2618,"./ne":8452,"./ne.js":8452,"./nl":1885,"./nl-be":413,"./nl-be.js":413,"./nl.js":1885,"./nn":5107,"./nn.js":5107,"./pa-in":702,"./pa-in.js":702,"./pl":1711,"./pl.js":1711,"./pt":594,"./pt-br":8238,"./pt-br.js":8238,"./pt.js":594,"./ro":4681,"./ro.js":4681,"./ru":6201,"./ru.js":6201,"./sd":2912,"./sd.js":2912,"./se":6002,"./se.js":6002,"./si":7942,"./si.js":7942,"./sk":5577,"./sk.js":5577,"./sl":1775,"./sl.js":1775,"./sq":6823,"./sq.js":6823,"./sr":9038,"./sr-cyrl":3848,"./sr-cyrl.js":3848,"./sr.js":9038,"./ss":6173,"./ss.js":6173,"./sv":5788,"./sv.js":5788,"./sw":6882,"./sw.js":6882,"./ta":2678,"./ta.js":2678,"./te":2797,"./te.js":2797,"./tet":2447,"./tet.js":2447,"./tg":1335,"./tg.js":1335,"./th":8667,"./th.js":8667,"./tl-ph":9914,"./tl-ph.js":9914,"./tlh":1389,"./tlh.js":1389,"./tr":3578,"./tr.js":3578,"./tzl":6969,"./tzl.js":6969,"./tzm":6509,"./tzm-latn":690,"./tzm-latn.js":690,"./tzm.js":6509,"./ug-cn":55,"./ug-cn.js":55,"./uk":2452,"./uk.js":2452,"./ur":1151,"./ur.js":1151,"./uz":1555,"./uz-latn":6547,"./uz-latn.js":6547,"./uz.js":1555,"./vi":6541,"./vi.js":6541,"./x-pseudo":2401,"./x-pseudo.js":2401,"./yo":2341,"./yo.js":2341,"./zh-cn":619,"./zh-cn.js":619,"./zh-hk":7058,"./zh-hk.js":7058,"./zh-tw":2782,"./zh-tw.js":2782};function s(t){var e=r(t);return i(e)}function r(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}s.keys=function(){return Object.keys(n)},s.resolve=r,t.exports=s,s.id=6700},306:t=>{"use strict";t.exports={i8:"2.0.0"}}},t=>{"use strict";t(t.s=8722)}]); \ No newline at end of file diff --git a/dist/apps/publications/main.c9a478442cae955c4e13.js b/dist/apps/publications/main.c9a478442cae955c4e13.js deleted file mode 100644 index 339fbfde1..000000000 --- a/dist/apps/publications/main.c9a478442cae955c4e13.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[179],{3619:t=>{function e(t){return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=()=>[],e.resolve=e,e.id=3619,t.exports=e},9390:(t,e,i)=>{"use strict";function n(t){return"function"==typeof t}let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},c=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function u(t){return null!==t&&"object"==typeof t}const l=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof l?e.errors:e),[])}const f=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class p extends h{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof p?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,i)}}[f](){return this}static create(t,e,i){const n=new p(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends p{constructor(t,e,i,s){let r;super(),this._parentSubscriber=t;let o=this;n(e)?r=e:e&&(r=e.next,i=e.error,s=e.complete,e!==a&&(o=Object.create(e),n(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=r;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw i;o(i)}}__tryOrSetError(t,e,i){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(o(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(t){return t}let y=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:n}=this,s=function(t,e,i){if(t){if(t instanceof p)return t;if(t[f])return t[f]()}return t||e||i?new p(t,e,i):new p(a)}(t,e,i);if(s.add(n?n.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:n}=t;if(e||n)return!1;t=i&&i instanceof p?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=w(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?_:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=w(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function w(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const b=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class v extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class A extends p{constructor(t){super(t),this.destination=t}}let k=(()=>{class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new A(this)}lift(t){const e=new T(this,this);return e.operator=t,e}next(t){if(this.closed)throw new b;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew T(t,e),t})();class T extends k{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function C(t){return t&&"function"==typeof t.schedule}class S extends p{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const M=t=>e=>{for(let i=0,n=t.length;it&&"number"==typeof t.length&&"function"!=typeof t;function D(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const P=t=>{if(t&&"function"==typeof t[m])return i=t,t=>{const e=i[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(R(t))return M(t);if(D(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e))(t);if(t&&"function"==typeof t[x])return e=t,t=>{const i=e[x]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=u(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i};function L(t,e,i,n,s=new S(t,i,n)){if(!s.closed)return e instanceof y?e.subscribe(s):P(e)(s)}class z extends p{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function I(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new F(t,e))}}class F{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new H(t,this.project,this.thisArg))}}class H extends p{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function O(t,e){return new y(i=>{const n=new h;let s=0;return n.add(e.schedule(function(){s!==t.length?(i.next(t[s++]),i.closed||n.add(this.schedule())):i.complete()})),n})}function B(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new y(i=>{const n=new h;return n.add(e.schedule(()=>{const s=t[m]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if(D(t))return function(t,e){return new y(i=>{const n=new h;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if(R(t))return O(t,e);if(function(t){return t&&"function"==typeof t[x]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new y(i=>{const n=new h;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[x](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof y?t:new y(P(t))}function j(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(j((i,n)=>B(t(i,n)).pipe(I((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new Y(t,i)))}class Y{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new N(t,this.project,this.concurrent))}}class N extends z{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function K(t=Number.POSITIVE_INFINITY){return j(_,t)}function U(t,e){return e?O(t,e):new y(M(t))}function V(...t){let e=Number.POSITIVE_INFINITY,i=null,n=t[t.length-1];return C(n)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof n&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof y?t[0]:K(e)(U(t,i))}function q(){return function(t){return t.lift(new $(t))}}class ${constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new W(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class W extends p{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}class G extends y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new Z(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return q()(this)}}const J=(()=>{const t=G.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Z extends A{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function Q(){return new k}function X(){return t=>{return q()((e=Q,function(t){let i;i="function"==typeof e?e:function(){return e};const n=Object.create(t,J);return n.source=t,n.subjectFactory=i,n})(t));var e}}function tt(t){for(let e in t)if(t[e]===tt)return e;throw Error("Could not find renamed property on target object.")}function et(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function it(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(it).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function nt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const st=tt({__forward_ref__:tt});function rt(t){return t.__forward_ref__=rt,t.toString=function(){return it(this())},t}function ot(t){return at(t)?t():t}function at(t){return"function"==typeof t&&t.hasOwnProperty(st)&&t.__forward_ref__===rt}class ct extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function ut(t){return"string"==typeof t?t:null==t?"":String(t)}function lt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ut(t)}function ht(t,e){const i=e?` in ${e}`:"";throw new ct("201",`No provider for ${lt(t)} found${i}`)}function dt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ft(t){return{providers:t.providers||[],imports:t.imports||[]}}function pt(t){return gt(t,_t)||gt(t,wt)}function gt(t,e){return t.hasOwnProperty(e)?t[e]:null}function mt(t){return t&&(t.hasOwnProperty(yt)||t.hasOwnProperty(bt))?t[yt]:null}const _t=tt({"\u0275prov":tt}),yt=tt({"\u0275inj":tt}),wt=tt({ngInjectableDef:tt}),bt=tt({ngInjectorDef:tt});var vt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let At;function kt(t){const e=At;return At=t,e}function Tt(t,e,i){const n=pt(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&vt.Optional?null:void 0!==e?e:void ht(it(t),"Injector")}function Ct(t){return{toString:t}.toString()}var St=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Mt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const Et="undefined"!=typeof globalThis&&globalThis,xt="undefined"!=typeof window&&window,Rt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Dt="undefined"!=typeof global&&global,Pt=Et||Dt||xt||Rt,Lt={},zt=[],It=tt({"\u0275cmp":tt}),Ft=tt({"\u0275dir":tt}),Ht=tt({"\u0275pipe":tt}),Ot=tt({"\u0275mod":tt}),Bt=tt({"\u0275loc":tt}),jt=tt({"\u0275fac":tt}),Yt=tt({__NG_ELEMENT_ID__:tt});let Nt=0;function Kt(t){return Ct(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===St.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||zt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Mt.Emulated,id:"c",styles:t.styles||zt,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,r=t.pipes;return i.id+=Nt++,i.inputs=Wt(t.inputs,e),i.outputs=Wt(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(Ut):null,i.pipeDefs=r?()=>("function"==typeof r?r():r).map(Vt):null,i})}function Ut(t){return Zt(t)||function(t){return t[Ft]||null}(t)}function Vt(t){return function(t){return t[Ht]||null}(t)}const qt={};function $t(t){return Ct(()=>{const e={type:t.type,bootstrap:t.bootstrap||zt,declarations:t.declarations||zt,imports:t.imports||zt,exports:t.exports||zt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(qt[t.id]=t.type),e})}function Wt(t,e){if(null==t)return Lt;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),i[s]=n,e&&(e[s]=r)}return i}const Gt=Kt;function Jt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Zt(t){return t[It]||null}function Qt(t,e){const i=t[Ot]||null;if(!i&&!0===e)throw new Error(`Type ${it(t)} does not have '\u0275mod' property.`);return i}const Xt=20,te=10;function ee(t){return Array.isArray(t)&&"object"==typeof t[1]}function ie(t){return Array.isArray(t)&&!0===t[1]}function ne(t){return 0!=(8&t.flags)}function se(t){return 2==(2&t.flags)}function re(t){return 1==(1&t.flags)}function oe(t){return null!==t.template}function ae(t,e){return t.hasOwnProperty(jt)?t[jt]:null}class ce{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ue(){return le}function le(t){return t.type.prototype.ngOnChanges&&(t.setInput=de),he}function he(){const t=fe(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===Lt)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function de(t,e,i,n){const s=fe(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Lt,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[i],c=o[a];r[a]=new ce(c&&c.currentValue,e,o===Lt),t[n]=e}function fe(t){return t.__ngSimpleChanges__||null}ue.ngInherit=!0;const pe="http://www.w3.org/2000/svg";let ge;function me(){return void 0!==ge?ge:"undefined"!=typeof document?document:void 0}function _e(t){return!!t.listen}const ye={createRenderer:(t,e)=>me()};function we(t){for(;Array.isArray(t);)t=t[0];return t}function be(t,e){return we(e[t])}function ve(t,e){return we(e[t.index])}function Ae(t,e){return t.data[e]}function ke(t,e){return t[e]}function Te(t,e){const i=e[t];return ee(i)?i:i[0]}function Ce(t){return 4==(4&t[2])}function Se(t){return 128==(128&t[2])}function Me(t,e){return null==e?null:t[e]}function Ee(t){t[18]=0}function xe(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Re={lFrame:ei(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function De(){return Re.bindingsEnabled}function Pe(){return Re.lFrame.lView}function Le(){return Re.lFrame.tView}function ze(t){return Re.lFrame.contextLView=t,t[8]}function Ie(){let t=Fe();for(;null!==t&&64===t.type;)t=t.parent;return t}function Fe(){return Re.lFrame.currentTNode}function He(t,e){const i=Re.lFrame;i.currentTNode=t,i.isParent=e}function Oe(){return Re.lFrame.isParent}function Be(){Re.lFrame.isParent=!1}function je(){return Re.isInCheckNoChangesMode}function Ye(t){Re.isInCheckNoChangesMode=t}function Ne(){const t=Re.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ke(){return Re.lFrame.bindingIndex}function Ue(){return Re.lFrame.bindingIndex++}function Ve(t){const e=Re.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function qe(t,e){const i=Re.lFrame;i.bindingIndex=i.bindingRootIndex=t,$e(e)}function $e(t){Re.lFrame.currentDirectiveIndex=t}function We(t){const e=Re.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Ge(){return Re.lFrame.currentQueryIndex}function Je(t){Re.lFrame.currentQueryIndex=t}function Ze(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Qe(t,e,i){if(i&vt.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&vt.Host||(n=Ze(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=Re.lFrame=ti();return n.currentTNode=e,n.lView=t,!0}function Xe(t){const e=ti(),i=t[1];Re.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function ti(){const t=Re.lFrame,e=null===t?null:t.child;return null===e?ei(t):e}function ei(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function ii(){const t=Re.lFrame;return Re.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ni=ii;function si(){const t=ii();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ri(){return Re.lFrame.selectedIndex}function oi(t){Re.lFrame.selectedIndex=t}function ai(){const t=Re.lFrame;return Ae(t.tView,t.selectedIndex)}function ci(){Re.lFrame.currentNamespace=pe}function ui(){Re.lFrame.currentNamespace=null}function li(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}const mi=-1;class _i{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function yi(t,e,i){const n=_e(t);let s=0;for(;se){o=r-1;break}}}for(;r>16,n=e;for(;i>0;)n=n[15],i--;return n}let Si=!0;function Mi(t){const e=Si;return Si=t,e}let Ei=0;function xi(t,e){const i=Di(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Ri(n.data,t),Ri(e,null),Ri(n.blueprint,null));const s=Pi(t,e),r=t.injectorIndex;if(ki(s)){const t=Ti(s),i=Ci(s,e),n=i[1].data;for(let s=0;s<8;s++)e[r+s]=i[t+s]|n[t+s]}return e[r+8]=s,r}function Ri(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Di(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Pi(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return mi;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return mi}function Li(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(Yt)&&(n=i[Yt]),null==n&&(n=i[Yt]=Ei++);const s=255&n;e.data[t+(s>>5)]|=1<=0?255&e:Oi:e}(i);if("function"==typeof r){if(!Qe(e,t,n))return n&vt.Host?zi(s,i,n):Ii(e,i,n,s);try{const t=r(n);if(null!=t||n&vt.Optional)return t;ht(i)}finally{ni()}}else if("number"==typeof r){let s=null,o=Di(t,e),a=mi,c=n&vt.Host?e[16][6]:null;for((-1===o||n&vt.SkipSelf)&&(a=-1===o?Pi(t,e):e[o+8],a!==mi&&Ki(n,!1)?(s=e[1],o=Ti(a),e=Ci(a,e)):o=-1);-1!==o;){const t=e[1];if(Ni(r,o,t.data)){const t=Bi(o,e,i,s,n,c);if(t!==Hi)return t}a=e[o+8],a!==mi&&Ki(n,e[1].data[o+8]===c)&&Ni(r,o,e)?(s=t,o=Ti(a),e=Ci(a,e)):o=-1}}}return Ii(e,i,n,s)}const Hi={};function Oi(){return new Ui(Ie(),Pe())}function Bi(t,e,i,n,s,r){const o=e[1],a=o.data[t+8],c=ji(a,o,i,null==n?se(a)&&Si:n!=o&&0!=(3&a.type),s&vt.Host&&r===a);return null!==c?Yi(e,o,c,a):Hi}function ji(t,e,i,n,s){const r=t.providerIndexes,o=e.data,a=1048575&r,c=t.directiveStart,u=r>>20,l=s?a+u:t.directiveEnd;for(let h=n?a:a+u;h=c&&t.type===i)return h}if(s){const t=o[c];if(t&&oe(t)&&t.type===i)return c}return null}function Yi(t,e,i,n){let s=t[i];const r=e.data;if(s instanceof _i){const o=s;o.resolving&&function(t,e){throw new ct("200",`Circular dependency in DI detected for ${t}`)}(lt(r[i]));const a=Mi(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?kt(o.injectImpl):null;Qe(t,n,vt.Default);try{s=t[i]=o.factory(void 0,r,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(n){const n=le(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),r&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,r),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,r))}(i,r[i],e)}finally{null!==c&&kt(c),Mi(a),o.resolving=!1,ni()}}return s}function Ni(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[jt]||qi(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[jt]||qi(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function qi(t){return at(t)?()=>{const e=qi(ot(t));return e&&e()}:ae(t)}function $i(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty(Wi)?t[Wi]:Object.defineProperty(t,Wi,{value:[]})[Wi];for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class Ji{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=dt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Zi=new Ji("AnalyzeForEntryComponents"),Qi=Function;function Xi(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?tn(t,e):e(t))}function en(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function nn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function sn(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function on(t,e){const i=an(t,e);if(i>=0)return t[1|i]}function an(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),r=t[i<<1];if(e===r)return i<<1;r>e?s=i:n=i+1}return~(s<<1)}(t,e)}const cn={},un=/\n/gm,ln="__source",hn=tt({provide:String,useValue:tt});let dn;function fn(t){const e=dn;return dn=t,e}function pn(t,e=vt.Default){if(void 0===dn)throw new Error("inject() must be called from an injection context");return null===dn?Tt(t,void 0,e):dn.get(t,e&vt.Optional?null:void 0,e)}function gn(t,e=vt.Default){return(At||pn)(ot(t),e)}const mn=gn;function _n(t){const e=[];for(let i=0;i({token:t})),-1),bn=yn(Gi("Optional"),8),vn=yn(Gi("SkipSelf"),4);let An,kn;function Tn(t){var e;return(null===(e=function(){if(void 0===An&&(An=null,Pt.trustedTypes))try{An=Pt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return An}())||void 0===e?void 0:e.createHTML(t))||t}function Cn(t){var e;return(null===(e=function(){if(void 0===kn&&(kn=null,Pt.trustedTypes))try{kn=Pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return kn}())||void 0===e?void 0:e.createHTML(t))||t}class Sn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Mn extends Sn{getTypeName(){return"HTML"}}class En extends Sn{getTypeName(){return"Style"}}class xn extends Sn{getTypeName(){return"Script"}}class Rn extends Sn{getTypeName(){return"URL"}}class Dn extends Sn{getTypeName(){return"ResourceURL"}}function Pn(t){return t instanceof Sn?t.changingThisBreaksApplicationSecurity:t}function Ln(t,e){const i=zn(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function zn(t){return t instanceof Sn&&t.getTypeName()||null}class In{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Tn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Fn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Tn(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Tn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0Bn(t.trim())).join(", ")),this.buf.push(" ",e,'="',ts(o),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();qn.hasOwnProperty(e)&&!Nn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(ts(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Qn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xn=/([^\#-~ |!])/g;function ts(t){return t.replace(/&/g,"&").replace(Qn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Xn,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let es;function is(t,e){let i=null;try{es=es||function(t){const e=new Fn(t);return function(){try{return!!(new window.DOMParser).parseFromString(Tn(""),"text/html")}catch(t){return!1}}()?new In(e):e}(t);let n=e?String(e):"";i=es.getInertBodyElement(n);let s=5,r=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=r,r=i.innerHTML,i=es.getInertBodyElement(n)}while(n!==r);return Tn((new Zn).sanitizeChildren(ns(i)||i))}finally{if(i){const t=ns(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function ns(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ss=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function rs(t){const e=as();return e?Cn(e.sanitize(ss.HTML,t)||""):Ln(t,"HTML")?Cn(Pn(t)):is(me(),ut(t))}function os(t){const e=as();return e?e.sanitize(ss.URL,t)||"":Ln(t,"URL")?Pn(t):Bn(ut(t))}function as(){const t=Pe();return t&&t[12]}function cs(t,e){t.__ngContext__=e}function us(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function ls(t){return t.ngDebugContext}function hs(t){return t.ngOriginalError}function ds(t,...e){t.error(...e)}class fs{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||ds}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?ls(t)?ls(t):this._findContext(hs(t)):null}_findOriginalError(t){let e=hs(t);for(;e&&hs(e);)e=hs(e);return e}}const ps=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pt))();function gs(t){return t.ownerDocument.defaultView}function ms(t){return t.ownerDocument.body}function _s(t){return t instanceof Function?t():t}var ys=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function ws(t,e){return(void 0)(t,e)}function bs(t){const e=t[3];return ie(e)?e[3]:e}function vs(t){return ks(t[13])}function As(t){return ks(t[4])}function ks(t){for(;null!==t&&!ie(t);)t=t[4];return t}function Ts(t,e,i,n,s){if(null!=n){let r,o=!1;ie(n)?r=n:ee(n)&&(o=!0,n=n[0]);const a=we(n);0===t&&null!==i?null==s?Ps(e,i,a):Ds(e,i,a,s||null,!0):1===t&&null!==i?Ds(e,i,a,s||null,!0):2===t?function(t,e,i){const n=zs(t,e);n&&function(t,e,i,n){_e(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,i,n,s){const r=i[7];r!==we(i)&&Ts(e,t,n,r,s);for(let o=te;o0&&(t[i-1][4]=n[4]);const o=nn(t,te+e);Ns(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function Es(t,e){if(!(256&e[2])){const i=e[11];_e(i)&&i.destroyNode&&Ns(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return xs(t[1],t);for(;e;){let i=null;if(ee(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)ee(e)&&xs(e[1],e),e=e[3];null===e&&(e=t),ee(e)&&xs(e[1],e),i=e&&e[4]}e=i}}(e)}}function xs(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=c]():n[s=-c].unsubscribe(),r+=2}else{const t=n[s=i[r+1]];i[r].call(t)}if(null!==n){for(let t=s+1;tr?"":s[l+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==qs(e,u,0)||2&n&&u!==t){if(Qs(n))return!1;o=!0}}}}else{if(!o&&!Qs(n)&&!Qs(c))return!1;if(o&&Qs(c))continue;o=!1,n=c|1&n}}return Qs(n)||o}function Qs(t){return 0==(1&t)}function Xs(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+o:4&n&&(s+=" "+o);else""===s||Qs(o)||(e+=ir(r,s),s=""),n=o,r=r||!Qs(n);i++}return""!==s&&(e+=ir(r,s)),e}const sr={};function rr(t){or(Le(),Pe(),ri()+t,je())}function or(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&hi(e,n,i)}else{const n=t.preOrderHooks;null!==n&&di(e,n,0,i)}oi(i)}function ar(t,e){return t<<17|e<<2}function cr(t){return t>>17&32767}function ur(t){return 2|t}function lr(t){return(131068&t)>>2}function hr(t,e){return-131069&t|e<<2}function dr(t){return 1|t}function fr(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;nXt&&or(t,e,Xt,je()),i(n,s)}finally{oi(r)}}function vr(t,e,i){if(ne(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=r&&i.push(r),i.push(n,s,o)}}function Dr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Pr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Lr(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&Yr(i)}}function Yr(t){for(let i=vs(t);null!==i;i=As(i))for(let t=te;t0&&Yr(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&Yr(n)}}function Nr(t,e){const i=Te(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function Gr(t){return t[7]||(t[7]=[])}function Jr(t){return t.cleanup||(t.cleanup=[])}function Zr(t,e,i){return(null===t||oe(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function Qr(t,e){const i=t[9],n=i?i.get(fs,null):null;n&&n.handleError(e)}function Xr(t,e,i,n,s){for(let r=0;rthis.processProvider(i,t,e)),tn([t],t=>this.processInjectorType(t,[],s)),this.records.set(io,po(void 0,this));const r=this.records.get(so);this.scope=null!=r?r.value:null,this.source=n||("object"==typeof t?null:it(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=cn,i=vt.Default){this.assertNotDestroyed();const n=fn(this);try{if(!(i&vt.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Ji)&&pt(t);e=i&&this.injectableDefInScope(i)?po(ho(t),ro):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&vt.Self?co():this.parent).get(t,e=i&vt.Optional&&e===cn?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(it(t)),n)throw r;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e[ln]&&s.unshift(e[ln]),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=it(e);if(Array.isArray(e))s=e.map(it).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):it(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(un,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{fn(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(it(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=ot(t)))return!1;let n=mt(t);const s=null==n&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==i.indexOf(r);if(void 0!==s&&(n=mt(s)),null==n)return!1;if(null!=n.imports&&!o){let t;i.push(r);try{tn(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||zt))}}this.injectorDefTypes.add(r);const a=ae(r)||(()=>new r);this.records.set(r,po(a,ro));const c=n.providers;if(null!=c&&!o){const e=t;tn(c,t=>this.processProvider(t,e,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=mo(t=ot(t))?t:ot(t&&t.provide);const s=function(t,e,i){return go(t)?po(void 0,t.useValue):po(fo(t),ro)}(t);if(mo(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=po(void 0,ro,!0),e.factory=()=>_n(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===ro&&(e.value=oo,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=ot(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function ho(t){const e=pt(t),i=null!==e?e.factory:ae(t);if(null!==i)return i;if(t instanceof Ji)throw new Error(`Token ${it(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=sn(e,"?");throw new Error(`Can't resolve all parameters for ${it(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[_t]||t[wt]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function fo(t,e,i){let n;if(mo(t)){const e=ot(t);return ae(e)||ho(e)}if(go(t))n=()=>ot(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(..._n(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>gn(ot(t.useExisting));else{const e=ot(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ae(e)||ho(e);n=()=>new e(..._n(t.deps))}var s;return n}function po(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function go(t){return null!==t&&"object"==typeof t&&hn in t}function mo(t){return"function"==typeof t}const _o=function(t,e,i){return function(t,e=null,i=null,n){const s=uo(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let yo=(()=>{class t{static create(t,e){return Array.isArray(t)?_o(t,e,""):_o(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=cn,t.NULL=new no,t.\u0275prov=dt({token:t,providedIn:"any",factory:()=>gn(io)}),t.__NG_ELEMENT_ID__=-1,t})();function wo(t,e){li(us(t)[1],Ie())}function bo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s;if(oe(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=vo(t.inputs),e.declaredInputs=vo(t.declaredInputs),e.outputs=vo(t.outputs);const i=s.hostBindings;i&&To(t,i);const r=s.viewQuery,o=s.contentQueries;if(r&&Ao(t,r),o&&ko(t,o),et(t.inputs,s.inputs),et(t.declaredInputs,s.declaredInputs),et(t.outputs,s.outputs),oe(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=vi(s.hostAttrs,i=vi(i,s.hostAttrs))}}(n)}function vo(t){return t===Lt?{}:t===zt?[]:t}function Ao(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function ko(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function To(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let Co=null;function So(){if(!Co){const t=Pt.Symbol;if(t&&t.iterator)Co=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(we(t[n.index])):n.index;if(_e(i)){let o=null;if(!a&&c&&(o=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let r=0;ri?t[i]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,n.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,h=!1;else{r=ta(n,e,0,r,!1);const t=i.listen(f,s,r);l.push(r,t),u&&u.push(s,g,p,p+1)}}else r=ta(n,e,0,r,!0),f.addEventListener(s,r,o),l.push(r),u&&u.push(s,g,p,o)}else r=ta(n,e,0,r,!1);const d=n.outputs;let f;if(h&&null!==d&&(f=d[s])){const t=f.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,Re.lFrame.contextLView))[8]}(t)}function ia(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const ua={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function la(t){return t.substring(ua.key,ua.keyEnd)}function ha(t,e){const i=ua.textEnd;return i===e?-1:(e=ua.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,ua.key=e,i),da(t,e,i))}function da(t,e,i){for(;e=0;i=ha(e,i))rn(t,la(e),!0)}function _a(t,e,i,n){const s=Pe(),r=Le(),o=Ve(2);r.firstUpdatePass&&ba(r,t,o,n),e!==sr&&Do(s,o,e)&&ka(r,r.data[ri()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=it(Pn(t)))),t}(e,i),n,o)}function ya(t,e,i,n){const s=Le(),r=Ve(2);s.firstUpdatePass&&ba(s,null,r,n);const o=Pe();if(i!==sr&&Do(o,r,i)){const a=s.data[ri()];if(Sa(a,n)&&!wa(s,r)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=nt(t,i||"")),Bo(s,a,o,i,n)}else!function(t,e,i,n,s,r,o,a){s===sr&&(s=zt);let c=0,u=0,l=0=t.expandoStartIndex}function ba(t,e,i,n){const s=t.data;if(null===s[i+1]){const r=s[ri()],o=wa(t,i);Sa(r,n)&&null===e&&!o&&(e=!1),e=function(t,e,i,n){const s=We(t);let r=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=Aa(i=va(null,t,e,i,n),e.attrs,n),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(i=va(s,t,e,i,n),null===r){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==lr(n))return t[cr(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=va(null,t,e,i[1],n),i=Aa(i,e.attrs,n),function(t,e,i,n){t[cr(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else r=function(t,e,i){let n;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(l=!0)}else u=i;if(s)if(0!==c){const e=cr(t[a+1]);t[n+1]=ar(e,a),0!==e&&(t[e+1]=hr(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=ar(a,0),0!==a&&(t[a+1]=hr(t[a+1],n)),a=n;else t[n+1]=ar(c,0),0===a?a=n:t[c+1]=hr(t[c+1],n),c=n;l&&(t[n+1]=ur(t[n+1])),aa(t,u,n,!0),aa(t,u,n,!1),function(t,e,i,n,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&an(r,e)>=0&&(i[n+1]=dr(i[n+1]))}(e,u,t,n,r),o=ar(a,c),r?e.classBindings=o:e.styleBindings=o}(s,r,e,i,o,n)}}function va(t,e,i,n,s){let r=null;const o=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),c=r?e[1]:e,u=null===c;let l=i[s+1];l===sr&&(l=u?zt:void 0);let h=u?on(l,n):c===n?l:void 0;if(r&&!Ca(h)&&(h=on(e,n)),Ca(h)&&(a=h,o))return a;const d=t[s+1];s=o?cr(d):lr(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=on(t,n))}return a}function Ca(t){return void 0!==t}function Sa(t,e){return 0!=(t.flags&(e?16:32))}function Ma(t,e=""){const i=Pe(),n=Le(),s=t+Xt,r=n.firstCreatePass?gr(n,s,1,e,null):n.data[s],o=i[s]=function(t,e){return _e(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Hs(n,i,o,r),He(r,!1)}function Ea(t){return xa("",t,""),Ea}function xa(t,e,i){const n=Pe(),s=zo(n,t,e,i);return s!==sr&&to(n,ri(),s),xa}function Ra(t,e,i,n,s){const r=Pe(),o=function(t,e,i,n,s,r){const o=Po(t,Ke(),i,s);return Ve(2),o?e+ut(i)+n+ut(s)+r:sr}(r,t,e,i,n,s);return o!==sr&&to(r,ri(),o),Ra}function Da(t,e,i,n,s,r,o,a,c,u,l){const h=Pe(),d=function(t,e,i,n,s,r,o,a,c,u,l,h){const d=Ke();let f=function(t,e,i,n,s,r){const o=Po(t,e,i,n);return Po(t,e+2,s,r)||o}(t,d,i,s,o,c);return f=Do(t,d+4,l)||f,Ve(5),f?e+ut(i)+n+ut(s)+r+ut(o)+a+ut(c)+u+ut(l)+h:sr}(h,t,e,i,n,s,r,o,a,c,u,l);return d!==sr&&to(h,ri(),d),Da}function Pa(t,e,i){ya(rn,ma,zo(Pe(),t,e,i),!0)}function La(t,e,i){const n=Pe();return Do(n,Ue(),e)&&Er(Le(),ai(),n,t,e,n[11],i,!0),La}function za(t,e,i){const n=Pe();if(Do(n,Ue(),e)){const s=Le(),r=ai();Er(s,r,n,t,e,Zr(We(s.data),r,n),i,!0)}return za}const Ia=void 0;var Fa=["en",[["a","p"],["AM","PM"],Ia],[["AM","PM"],Ia,Ia],[["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"]],Ia,[["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"]],Ia,[["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}",Ia,"{1} 'at' {0}",Ia],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Ha={};function Oa(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=Ba(e);if(i)return i;const n=e.split("-")[0];if(i=Ba(n),i)return i;if("en"===n)return Fa;throw new Error(`Missing locale data for the locale "${t}".`)}function Ba(t){return t in Ha||(Ha[t]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[t]),Ha[t]}var ja=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const Ya="en-US";let Na=Ya;function Ka(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(Na=t.toLowerCase().replace(/_/g,"-"))}function Ua(t,e,i,n,s){if(t=ot(t),Array.isArray(t))for(let r=0;r>20;if(mo(t)||!t.multi){const n=new _i(c,s,Ho),f=$a(a,e,s?l:l+d,h);-1===f?(Li(xi(u,o),r,a),Va(r,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(n),o.push(n)):(i[f]=n,o[f]=n)}else{const f=$a(a,e,l+d,h),p=$a(a,e,l,l+d),g=f>=0&&i[f],m=p>=0&&i[p];if(s&&!m||!s&&!g){Li(xi(u,o),r,a);const l=function(t,e,i,n,s){const r=new _i(t,i,Ho);return r.multi=[],r.index=e,r.componentProviders=0,qa(r,s,n&&!i),r}(s?Ga:Wa,i.length,s,n,c);!s&&m&&(i[p].providerFactory=l),Va(r,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(l),o.push(l)}else Va(r,t,f>-1?f:p,qa(i[s?p:f],c,!s&&n));!s&&n&&m&&i[p].componentProviders++}}}function Va(t,e,i,n){const s=mo(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(i);-1===t?o.push(i,[n,r]):o[t+1].push(n,r)}else o.push(i,r)}}}function qa(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function $a(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=Le();if(n.firstCreatePass){const s=oe(t);Ua(i,n.data,n.blueprint,s,!0),Ua(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class Qa{}class Xa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${it(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let tc=(()=>{class t{}return t.NULL=new Xa,t})();function ec(...t){}function ic(t,e){return new sc(ve(t,e))}const nc=function(){return ic(Ie(),Pe())};let sc=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=nc,t})();function rc(t){return t instanceof sc?t.nativeElement:t}class oc{}let ac=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>cc(),t})();const cc=function(){const t=Pe(),e=Te(Ie().index,t);return function(t){return t[11]}(ee(e)?e:t)};let uc=(()=>{class t{}return t.\u0275prov=dt({token:t,providedIn:"root",factory:()=>null}),t})();class lc{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const hc=new lc("12.0.5");class dc{constructor(){}supports(t){return Eo(t)}create(t){return new pc(t)}}const fc=(t,e)=>e;class pc{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||fc}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const r=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(r&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new gc(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new _c),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _c),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class gc{constructor(t,e){this.item=t,this.trackById=e,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 mc{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class _c{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new mc,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function yc(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;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(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new vc(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class vc{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Ac(){return new kc([new dc])}let kc=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Ac()),deps:[[t,new vn,new bn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=dt({token:t,providedIn:"root",factory:Ac}),t})();function Tc(){return new Cc([new wc])}let Cc=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Tc()),deps:[[t,new vn,new bn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=dt({token:t,providedIn:"root",factory:Tc}),t})();function Sc(t,e,i,n,s=!1){for(;null!==i;){const r=e[i.index];if(null!==r&&n.push(we(r)),ie(r))for(let t=te;t-1&&(Ms(t,i),nn(e,i))}this._attachedToViewContainer=!1}Es(this._lView[1],this._lView)}onDestroy(t){Sr(this._lView[1],this._lView,null,t)}markForCheck(){Ur(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Vr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Ye(!0);try{Vr(t,e,i)}finally{Ye(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Ns(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ec extends Mc{constructor(t){super(t),this._view=t}detectChanges(){qr(this._view)}checkNoChanges(){!function(t){Ye(!0);try{qr(t)}finally{Ye(!1)}}(this._view)}get context(){return null}}const xc=function(t){return function(t,e,i){if(se(t)&&!i){const i=Te(t.index,e);return new Mc(i,i)}return 47&t.type?new Mc(e[16],e):null}(Ie(),Pe(),16==(16&t))};let Rc=(()=>{class t{}return t.__NG_ELEMENT_ID__=xc,t})();const Dc=[new wc],Pc=new kc([new dc]),Lc=new Cc(Dc),zc=function(){return Oc(Ie(),Pe())};let Ic=(()=>{class t{}return t.__NG_ELEMENT_ID__=zc,t})();const Fc=Ic,Hc=class extends Fc{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=pr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),_r(e,i,t),new Mc(i)}};function Oc(t,e){return 4&t.type?new Hc(e,t,ic(t,e)):null}class Bc{}class jc{}const Yc=function(){return $c(Ie(),Pe())};let Nc=(()=>{class t{}return t.__NG_ELEMENT_ID__=Yc,t})();const Kc=Nc,Uc=class extends Kc{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return ic(this._hostTNode,this._hostLView)}get injector(){return new Ui(this._hostTNode,this._hostLView)}get parentInjector(){const t=Pi(this._hostTNode,this._hostLView);if(ki(t)){const e=Ci(t,this._hostLView),i=Ti(t);return new Ui(e[1].data[i+8],e)}return new Ui(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Vc(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-te}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const r=i||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(Bc,null);t&&(s=t)}const o=t.create(r,n,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const i=t._lView,n=i[1];if(ie(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new Uc(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,i,n){const s=te+n,r=i.length;n>0&&(i[s-1][4]=e),nps});class Qc extends Qa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(nr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Jc(this.componentDef.inputs)}get outputs(){return Jc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const r=t.get(i,Wc,s);return r!==Wc||n===Wc?r:e.get(i,n,s)}}}(t,n.injector):t,r=s.get(oc,ye),o=s.get(uc,null),a=r.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function(t,e,i){if(_e(t))return t.selectRootElement(e,i===Mt.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):Cs(r.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?pe:"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,h={components:[],scheduler:ps,clean:Wr,playerHandler:null,flags:0},d=Cr(0,null,null,1,0,null,null,null,null,null),f=pr(null,d,h,l,null,null,r,a,o,s);let p,g;Xe(f);try{const t=function(t,e,i,n,s,r){const o=i[1];i[20]=t;const a=gr(o,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(eo(a,c,!0),null!==t&&(yi(s,t,c),null!==a.classes&&Vs(s,t,a.classes),null!==a.styles&&Us(s,t,a.styles)));const u=n.createRenderer(t,e),l=pr(i,Tr(e),null,e.onPush?64:16,i[20],a,n,u,null,null);return o.firstCreatePass&&(Li(xi(a,i),o,e.type),Pr(o,a),zr(a,i.length,1)),Kr(i,l),i[20]=l}(u,this.componentDef,f,r,a);if(u)if(i)yi(a,u,["ng-version",hc.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&Vs(a,u,e.join(" "))}if(g=Ae(d,Xt),void 0!==e){const t=g.projection=[];for(let i=0;it(o,e)),e.contentQueries){const t=Ie();e.contentQueries(1,o,t.directiveStart)}const a=Ie();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(oi(a.index),Rr(i[1],a,0,a.directiveStart,a.directiveEnd,e),Dr(e,o)),o}(t,this.componentDef,f,h,[wo]),_r(d,f,null)}finally{si()}return new Xc(this.componentType,p,ic(g,f),f,g)}}class Xc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Ec(n),this.componentType=t}get injector(){return new Ui(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const tu=new Map;class eu extends Bc{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Gc(this);const i=Qt(t),n=t[Bt]||null;n&&Ka(n),this._bootstrapComponents=_s(i.bootstrap),this._r3Injector=uo(t,e,[{provide:Bc,useValue:this},{provide:tc,useValue:this.componentFactoryResolver}],it(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=yo.THROW_IF_NOT_FOUND,i=vt.Default){return t===yo||t===Bc||t===io?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class iu extends jc{constructor(t){super(),this.moduleType=t,null!==Qt(t)&&function(t){const e=new Set;!function t(i){const n=Qt(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${it(e)} vs ${it(e.name)}`)}(s,tu.get(s),i),tu.set(s,i));const r=_s(n.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new eu(this.moduleType,t)}}function nu(t,e,i){const n=Ne()+t,s=Pe();return s[n]===sr?Ro(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function su(t,e,i,n){return au(Pe(),Ne(),t,e,i,n)}function ru(t,e,i,n,s){return cu(Pe(),Ne(),t,e,i,n,s)}function ou(t,e){const i=t[e];return i===sr?void 0:i}function au(t,e,i,n,s,r){const o=e+i;return Do(t,o,s)?Ro(t,o+1,r?n.call(r,s):n(s)):ou(t,o+1)}function cu(t,e,i,n,s,r,o){const a=e+i;return Po(t,a,s,r)?Ro(t,a+2,o?n.call(o,s,r):n(s,r)):ou(t,a+2)}function uu(t,e){const i=Le();let n;const s=t+Xt;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new ct("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const r=n.factory||(n.factory=ae(n.type)),o=kt(Ho);try{const t=Mi(!1),e=r();return Mi(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Pe(),s,e),e}finally{kt(o)}}function lu(t,e,i){const n=t+Xt,s=Pe(),r=ke(s,n);return fu(s,du(s,n)?au(s,Ne(),e,r.transform,i,r):r.transform(i))}function hu(t,e,i,n,s){const r=t+Xt,o=Pe(),a=ke(o,r);return fu(o,du(o,r)?function(t,e,i,n,s,r,o,a){const c=e+i;return function(t,e,i,n,s){const r=Po(t,e,i,n);return Do(t,e+2,s)||r}(t,c,s,r,o)?Ro(t,c+3,a?n.call(a,s,r,o):n(s,r,o)):ou(t,c+3)}(o,Ne(),e,a.transform,i,n,s,a):a.transform(i,n,s))}function du(t,e){return t[1].data[e].pure}function fu(t,e){return Mo.isWrapped(e)&&(e=Mo.unwrap(e),t[Ke()]=sr),e}function pu(t){return e=>{setTimeout(t,void 0,e)}}const gu=class extends k{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var n,s,r;let o=t,a=e||(()=>null),c=i;if(t&&"object"==typeof t){const e=t;o=null===(n=e.next)||void 0===n?void 0:n.bind(e),a=null===(s=e.error)||void 0===s?void 0:s.bind(e),c=null===(r=e.complete)||void 0===r?void 0:r.bind(e)}this.__isAsync&&(a=pu(a),o&&(o=pu(o)),c&&(c=pu(c)));const u=super.subscribe({next:o,error:a,complete:c});return t instanceof h&&t.add(u),u}};function mu(){return this._results[So()]()}class _u{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=So(),i=_u.prototype;i[e]||(i[e]=mu)}get changes(){return this._changes||(this._changes=new gu)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const n=Xi(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(o[t/2]);else{const s=r[t+1],o=e[-i];for(let t=te;t{class t{constructor(t){this.appInits=t,this.resolve=ec,this.reject=ec,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e.subscribe({complete:t,error:i})});t.push(i)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(gn(Iu,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Hu=new Ji("AppId"),Ou={provide:Hu,useFactory:function(){return`${Bu()}${Bu()}${Bu()}`},deps:[]};function Bu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ju=new Ji("Platform Initializer"),Yu=new Ji("Platform ID"),Nu=new Ji("appBootstrapListener");let Ku=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Uu=new Ji("LocaleId"),Vu=new Ji("DefaultCurrencyCode");class qu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const $u=function(t){return new iu(t)},Wu=$u,Gu=function(t){return Promise.resolve($u(t))},Ju=function(t){const e=$u(t),i=_s(Qt(t).declarations).reduce((t,e)=>{const i=Zt(e);return i&&t.push(new Qc(i)),t},[]);return new qu(e,i)},Zu=Ju,Qu=function(t){return Promise.resolve(Ju(t))};let Xu=(()=>{class t{constructor(){this.compileModuleSync=Wu,this.compileModuleAsync=Gu,this.compileModuleAndAllComponentsSync=Zu,this.compileModuleAndAllComponentsAsync=Qu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const tl=(()=>Promise.resolve(0))();function el(t){"undefined"==typeof Zone?tl.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class il{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new gu(!1),this.onMicrotaskEmpty=new gu(!1),this.onStable=new gu(!1),this.onError=new gu(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=!i&&e,n.shouldCoalesceRunChangeDetection=i,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=Pt.requestAnimationFrame,e=Pt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Pt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,rl(t),t.isCheckStableRunning=!0,sl(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),rl(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,s,r,o,a)=>{try{return ol(t),i.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),al(t)}},onInvoke:(i,n,s,r,o,a,c)=>{try{return ol(t),i.invoke(s,r,o,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),al(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,rl(t),sl(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!il.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(il.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+n,t,nl,ec,ec);try{return s.runTask(r,e,i)}finally{s.cancelTask(r)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const nl={};function sl(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function rl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function ol(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function al(t){t._nesting--,sl(t)}class cl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new gu,this.onMicrotaskEmpty=new gu,this.onStable=new gu,this.onError=new gu}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let ul=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{il.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 t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!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(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(gn(il))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),ll=(()=>{class t{constructor(){this._applications=new Map,fl.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return fl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class hl{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let dl,fl=new hl,pl=!0,gl=!1;function ml(){return gl=!0,pl}const _l=new Ji("AllowMultipleToken");class yl{constructor(t,e){this.name=t,this.token=e}}function wl(t,e,i=[]){const n=`Platform: ${e}`,s=new Ji(n);return(e=[])=>{let r=bl();if(!r||r.injector.get(_l,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:so,useValue:"platform"});!function(t){if(dl&&!dl.destroyed&&!dl.injector.get(_l,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");dl=t.get(vl);const e=t.get(ju,null);e&&e.forEach(t=>t())}(yo.create({providers:t,name:n}))}return function(t){const e=bl();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function bl(){return dl&&!dl.destroyed?dl:null}let vl=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new cl:("zone.js"===t?void 0:t)||new il({enableLongStackTrace:ml(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:il,useValue:i}];return i.run(()=>{const e=yo.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(fs,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{r.handleError(t)}});s.onDestroy(()=>{Tl(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return $o(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(r,i,()=>{const t=s.injector.get(Fu);return t.runInitializers(),t.donePromise.then(()=>(Ka(s.injector.get(Uu,Ya)||Ya),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=Al({},e);return function(t,e,i){const n=new iu(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(kl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${it(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(gn(yo))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function Al(t,e){return Array.isArray(e)?e.reduce(Al,t):Object.assign(Object.assign({},t),e)}let kl=(()=>{class t{constructor(t,e,i,n,s){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{il.assertNotInAngularZone(),el(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{il.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=V(r,o.pipe(X()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof Qa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(Bc),s=i.create(yo.NULL,[],e||i.selector,n),r=s.location.nativeElement,o=s.injector.get(ul,null),a=o&&s.injector.get(ll);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Tl(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Tl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Nu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(gn(il),gn(yo),gn(fs),gn(tc),gn(Fu))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function Tl(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Cl{}class Sl{}const Ml={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let El=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Ml}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i(3619)(e).then(t=>t[n]).then(t=>xl(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i(3619)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>xl(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(gn(Xu),gn(Sl,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function xl(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const Rl=wl(null,"core",[{provide:Yu,useValue:"unknown"},{provide:vl,deps:[yo]},{provide:ll,deps:[]},{provide:Ku,deps:[]}]),Dl=[{provide:kl,useClass:kl,deps:[il,yo,fs,tc,Fu]},{provide:Zc,deps:[il],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Fu,useClass:Fu,deps:[[new bn,Iu]]},{provide:Xu,useClass:Xu,deps:[]},Ou,{provide:kc,useFactory:function(){return Pc},deps:[]},{provide:Cc,useFactory:function(){return Lc},deps:[]},{provide:Uu,useFactory:function(t){return Ka(t=t||"undefined"!=typeof $localize&&$localize.locale||Ya),t},deps:[[new wn(Uu),new bn,new vn]]},{provide:Vu,useValue:"USD"}];let Pl=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(gn(kl))},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:Dl}),t})(),Ll=null;function zl(){return Ll}const Il=new Ji("DocumentToken");let Fl=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:Hl,token:t,providedIn:"platform"}),t})();function Hl(){return gn(Bl)}const Ol=new Ji("Location Initialized");let Bl=(()=>{class t extends Fl{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return zl().getBaseHref(this._doc)}onPopState(t){const e=zl().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=zl().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,i){jl()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){jl()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(gn(Il))},t.\u0275prov=dt({factory:Yl,token:t,providedIn:"platform"}),t})();function jl(){return!!window.history.pushState}function Yl(){return new Bl(gn(Il))}function Nl(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function Kl(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function Ul(t){return t&&"?"!==t[0]?"?"+t:t}let Vl=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:ql,token:t,providedIn:"root"}),t})();function ql(t){const e=gn(Il).location;return new Wl(gn(Fl),e&&e.origin||"")}const $l=new Ji("appBaseHref");let Wl=(()=>{class t extends Vl{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Nl(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Ul(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+Ul(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+Ul(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(gn(Fl),gn($l,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Gl=(()=>{class t extends Vl{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=Nl(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+Ul(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+Ul(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(gn(Fl),gn($l,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Jl=(()=>{class t{constructor(t,e){this._subject=new gu,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Kl(Ql(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Ul(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Ql(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ul(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ul(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformStrategy).historyGo)||void 0===i||i.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(Vl),gn(Fl))},t.normalizeQueryParams=Ul,t.joinWithSlash=Nl,t.stripTrailingSlash=Kl,t.\u0275prov=dt({factory:Zl,token:t,providedIn:"root"}),t})();function Zl(){return new Jl(gn(Vl),gn(Fl))}function Ql(t){return t.replace(/\/index.html$/,"")}var Xl=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),th=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),eh=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),ih=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),nh=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function sh(t,e){return uh(Oa(t)[ja.DateFormat],e)}function rh(t,e){return uh(Oa(t)[ja.TimeFormat],e)}function oh(t,e){return uh(Oa(t)[ja.DateTimeFormat],e)}function ah(t,e){const i=Oa(t),n=i[ja.NumberSymbols][e];if(void 0===n){if(e===nh.CurrencyDecimal)return i[ja.NumberSymbols][nh.Decimal];if(e===nh.CurrencyGroup)return i[ja.NumberSymbols][nh.Group]}return n}function ch(t){if(!t[ja.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[ja.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function uh(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function lh(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const hh=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,dh={},fh=/((?:[^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 ph=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),gh=function(t){return 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}({}),mh=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function _h(t,e,i,n){let s=function(t){if(Rh(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,i=1,n=1]=t.split("-").map(t=>+t);return yh(e,i-1,n)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(hh))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,c,u),e}(i)}const e=new Date(t);if(!Rh(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=wh(i,e)||e;let r,o=[];for(;e;){if(r=fh.exec(e),!r){o.push(e);break}{o=o.concat(r.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();n&&(a=xh(n,a),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(xh(e,n)-n))}(s,n));let c="";return o.forEach(t=>{const e=function(t){if(Eh[t])return Eh[t];let e;switch(t){case"G":case"GG":case"GGG":e=kh(mh.Eras,eh.Abbreviated);break;case"GGGG":e=kh(mh.Eras,eh.Wide);break;case"GGGGG":e=kh(mh.Eras,eh.Narrow);break;case"y":e=Ah(gh.FullYear,1,0,!1,!0);break;case"yy":e=Ah(gh.FullYear,2,0,!0,!0);break;case"yyy":e=Ah(gh.FullYear,3,0,!1,!0);break;case"yyyy":e=Ah(gh.FullYear,4,0,!1,!0);break;case"Y":e=Mh(1);break;case"YY":e=Mh(2,!0);break;case"YYY":e=Mh(3);break;case"YYYY":e=Mh(4);break;case"M":case"L":e=Ah(gh.Month,1,1);break;case"MM":case"LL":e=Ah(gh.Month,2,1);break;case"MMM":e=kh(mh.Months,eh.Abbreviated);break;case"MMMM":e=kh(mh.Months,eh.Wide);break;case"MMMMM":e=kh(mh.Months,eh.Narrow);break;case"LLL":e=kh(mh.Months,eh.Abbreviated,th.Standalone);break;case"LLLL":e=kh(mh.Months,eh.Wide,th.Standalone);break;case"LLLLL":e=kh(mh.Months,eh.Narrow,th.Standalone);break;case"w":e=Sh(1);break;case"ww":e=Sh(2);break;case"W":e=Sh(1,!0);break;case"d":e=Ah(gh.Date,1);break;case"dd":e=Ah(gh.Date,2);break;case"c":case"cc":e=Ah(gh.Day,1);break;case"ccc":e=kh(mh.Days,eh.Abbreviated,th.Standalone);break;case"cccc":e=kh(mh.Days,eh.Wide,th.Standalone);break;case"ccccc":e=kh(mh.Days,eh.Narrow,th.Standalone);break;case"cccccc":e=kh(mh.Days,eh.Short,th.Standalone);break;case"E":case"EE":case"EEE":e=kh(mh.Days,eh.Abbreviated);break;case"EEEE":e=kh(mh.Days,eh.Wide);break;case"EEEEE":e=kh(mh.Days,eh.Narrow);break;case"EEEEEE":e=kh(mh.Days,eh.Short);break;case"a":case"aa":case"aaa":e=kh(mh.DayPeriods,eh.Abbreviated);break;case"aaaa":e=kh(mh.DayPeriods,eh.Wide);break;case"aaaaa":e=kh(mh.DayPeriods,eh.Narrow);break;case"b":case"bb":case"bbb":e=kh(mh.DayPeriods,eh.Abbreviated,th.Standalone,!0);break;case"bbbb":e=kh(mh.DayPeriods,eh.Wide,th.Standalone,!0);break;case"bbbbb":e=kh(mh.DayPeriods,eh.Narrow,th.Standalone,!0);break;case"B":case"BB":case"BBB":e=kh(mh.DayPeriods,eh.Abbreviated,th.Format,!0);break;case"BBBB":e=kh(mh.DayPeriods,eh.Wide,th.Format,!0);break;case"BBBBB":e=kh(mh.DayPeriods,eh.Narrow,th.Format,!0);break;case"h":e=Ah(gh.Hours,1,-12);break;case"hh":e=Ah(gh.Hours,2,-12);break;case"H":e=Ah(gh.Hours,1);break;case"HH":e=Ah(gh.Hours,2);break;case"m":e=Ah(gh.Minutes,1);break;case"mm":e=Ah(gh.Minutes,2);break;case"s":e=Ah(gh.Seconds,1);break;case"ss":e=Ah(gh.Seconds,2);break;case"S":e=Ah(gh.FractionalSeconds,1);break;case"SS":e=Ah(gh.FractionalSeconds,2);break;case"SSS":e=Ah(gh.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Th(ph.Short);break;case"ZZZZZ":e=Th(ph.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Th(ph.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Th(ph.Long);break;default:return null}return Eh[t]=e,e}(t);c+=e?e(s,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function yh(t,e,i){const n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function wh(t,e){const i=function(t){return Oa(t)[ja.LocaleId]}(t);if(dh[i]=dh[i]||{},dh[i][e])return dh[i][e];let n="";switch(e){case"shortDate":n=sh(t,ih.Short);break;case"mediumDate":n=sh(t,ih.Medium);break;case"longDate":n=sh(t,ih.Long);break;case"fullDate":n=sh(t,ih.Full);break;case"shortTime":n=rh(t,ih.Short);break;case"mediumTime":n=rh(t,ih.Medium);break;case"longTime":n=rh(t,ih.Long);break;case"fullTime":n=rh(t,ih.Full);break;case"short":const e=wh(t,"shortTime"),i=wh(t,"shortDate");n=bh(oh(t,ih.Short),[e,i]);break;case"medium":const s=wh(t,"mediumTime"),r=wh(t,"mediumDate");n=bh(oh(t,ih.Medium),[s,r]);break;case"long":const o=wh(t,"longTime"),a=wh(t,"longDate");n=bh(oh(t,ih.Long),[o,a]);break;case"full":const c=wh(t,"fullTime"),u=wh(t,"fullDate");n=bh(oh(t,ih.Full),[c,u])}return n&&(dh[i][e]=n),n}function bh(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function vh(t,e,i="-",n,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=i));let o=String(t);for(;o.length0||a>-i)&&(a+=i),t===gh.Hours)0===a&&-12===i&&(a=12);else if(t===gh.FractionalSeconds)return c=e,vh(a,3).substr(0,c);var c;const u=ah(o,nh.MinusSign);return vh(a,e,u,n,s)}}function kh(t,e,i=th.Format,n=!1){return function(s,r){return function(t,e,i,n,s,r){switch(i){case mh.Months:return function(t,e,i){const n=Oa(t),s=uh([n[ja.MonthsFormat],n[ja.MonthsStandalone]],e);return uh(s,i)}(e,s,n)[t.getMonth()];case mh.Days:return function(t,e,i){const n=Oa(t),s=uh([n[ja.DaysFormat],n[ja.DaysStandalone]],e);return uh(s,i)}(e,s,n)[t.getDay()];case mh.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(r){const t=function(t){const e=Oa(t);return ch(e),(e[ja.ExtraData][2]||[]).map(t=>"string"==typeof t?lh(t):[lh(t[0]),lh(t[1])])}(e),i=function(t,e,i){const n=Oa(t);ch(n);const s=uh([n[ja.ExtraData][0],n[ja.ExtraData][1]],e)||[];return uh(s,i)||[]}(e,s,n),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=o>=e.hours&&a>=e.minutes,s=o0?Math.floor(s/60):Math.ceil(s/60);switch(t){case ph.Short:return(s>=0?"+":"")+vh(o,2,r)+vh(Math.abs(s%60),2,r);case ph.ShortGMT:return"GMT"+(s>=0?"+":"")+vh(o,1,r);case ph.Long:return"GMT"+(s>=0?"+":"")+vh(o,2,r)+":"+vh(Math.abs(s%60),2,r);case ph.Extended:return 0===n?"Z":(s>=0?"+":"")+vh(o,2,r)+":"+vh(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function Ch(t){return yh(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Sh(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=Ch(i),e=function(t){const e=yh(t,0,1).getDay();return yh(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}return vh(s,t,ah(n,nh.MinusSign))}}function Mh(t,e=!1){return function(i,n){return vh(Ch(i).getFullYear(),t,ah(n,nh.MinusSign),e)}}const Eh={};function xh(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function Rh(t){return t instanceof Date&&!isNaN(t.valueOf())}class Dh{}let Ph=(()=>{class t extends Dh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return Oa(t)[ja.PluralCase]}(e||this.locale)(t)){case Xl.Zero:return"zero";case Xl.One:return"one";case Xl.Two:return"two";case Xl.Few:return"few";case Xl.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(gn(Uu))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function Lh(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let zh=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Eo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${it(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Ho(kc),Ho(Cc),Ho(sc),Ho(ac))},t.\u0275dir=Gt({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Ih{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 Fh=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new Ih(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new Hh(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const r=new Hh(t,s);e.push(r)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(Ic),Ho(kc))},t.\u0275dir=Gt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Hh{constructor(t,e){this.record=t,this.view=e}}let Oh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Bh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){jh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){jh("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Bh{constructor(){this.$implicit=null,this.ngIf=null}}function jh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${it(e)}'.`)}class Yh{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Nh=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new Yh(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(Ic),Ho(Nh,9))},t.\u0275dir=Gt({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Uh=(()=>{class t{constructor(t,e,i){i._addDefault(new Yh(t,e))}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(Ic),Ho(Nh,9))},t.\u0275dir=Gt({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Vh=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Cc),Ho(ac))},t.\u0275dir=Gt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),qh=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc))},t.\u0275dir=Gt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[ue]}),t})();function $h(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${it(t)}'`)}class Wh{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Gh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Jh=new Gh,Zh=new Wh;let Qh=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if($o(e))return Jh;if(Wo(e))return Zh;throw $h(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(Ho(Rc,16))},t.\u0275pipe=Jt({name:"async",type:t,pure:!1}),t})(),Xh=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return _h(e,i,s||this.locale,n)}catch(r){throw $h(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(Ho(Uu,16))},t.\u0275pipe=Jt({name:"date",type:t,pure:!0}),t})(),td=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[{provide:Dh,useClass:Ph}]}),t})(),ed=(()=>{class t{}return t.\u0275prov=dt({token:t,providedIn:"root",factory:()=>new id(gn(Il),window)}),t})();class id{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){const t=n.shadowRoot;if(t){const i=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(i)return i}n=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=nd(this.window.history)||nd(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function nd(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class sd{}class rd extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new rd,Ll||(Ll=t)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(ad=ad||document.querySelector("base"),ad?ad.getAttribute("href"):null);return null==e?null:function(t){od=od||document.createElement("a"),od.setAttribute("href",t);const e=od.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){ad=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Lh(document.cookie,t)}}let od,ad=null;const cd=new Ji("TRANSITION_ID"),ud=[{provide:Iu,useFactory:function(t,e,i){return()=>{i.get(Fu).donePromise.then(()=>{const i=zl();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[cd,Il,yo],multi:!0}];class ld{static init(){var t;t=new ld,fl=t}addToWindow(t){Pt.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},Pt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Pt.getAllAngularRootElements=()=>t.getAllRootElements(),Pt.frameworkStabilizers||(Pt.frameworkStabilizers=[]),Pt.frameworkStabilizers.push(t=>{const e=Pt.getAllAngularTestabilities();let i=e.length,n=!1;const s=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const n=t.getTestability(e);return null!=n?n:i?zl().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let hd=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const dd=new Ji("EventManagerPlugins");let fd=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),md=(()=>{class t extends gd{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,i){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,i.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(_d),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,i)=>{this._addStylesToHost(t,i,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(_d))}}return t.\u0275fac=function(e){return new(e||t)(gn(Il))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function _d(t){zl().remove(t)}const yd={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/"},wd=/%COMP%/g;function bd(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Ad=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new kd(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Mt.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new Td(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case Mt.ShadowDom:return new Cd(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=bd(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(gn(fd),gn(md),gn(Hu))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class kd{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(yd[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=yd[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=yd[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(ys.DashCase|ys.Important)?t.style.setProperty(e,i,n&ys.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&ys.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,vd(i)):this.eventManager.addEventListener(t,e,vd(i))}}class Td extends kd{constructor(t,e,i,n){super(t),this.component=i;const s=bd(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(wd,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(wd,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class Cd extends kd{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=bd(n.id,n.styles,[]);for(let r=0;r{class t extends pd{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(gn(Il))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Md=["alt","control","meta","shift"],Ed={"\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"},xd={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"},Rd={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Dd=(()=>{class t extends pd{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,n){const s=t.parseEventName(i),r=t.eventCallback(s.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>zl().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let r="";if(Md.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),r+=t+".")}),r+=s,0!=i.length||0===s.length)return null;const o={};return o.domEventName=n,o.fullKey=r,o}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&xd.hasOwnProperty(e)&&(e=xd[e]))}return Ed[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),Md.forEach(n=>{n!=i&&(0,Rd[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(gn(Il))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Pd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return gn(zd)},token:t,providedIn:"root"}),t})();function Ld(t){return new zd(t.get(Il))}let zd=(()=>{class t extends Pd{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case ss.NONE:return e;case ss.HTML:return Ln(e,"HTML")?Pn(e):is(this._doc,String(e)).toString();case ss.STYLE:return Ln(e,"Style")?Pn(e):e;case ss.SCRIPT:if(Ln(e,"Script"))return Pn(e);throw new Error("unsafe value used in a script context");case ss.URL:return zn(e),Ln(e,"URL")?Pn(e):Bn(String(e));case ss.RESOURCE_URL:if(Ln(e,"ResourceURL"))return Pn(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new Mn(t)}bypassSecurityTrustStyle(t){return new En(t)}bypassSecurityTrustScript(t){return new xn(t)}bypassSecurityTrustUrl(t){return new Rn(t)}bypassSecurityTrustResourceUrl(t){return new Dn(t)}}return t.\u0275fac=function(e){return new(e||t)(gn(Il))},t.\u0275prov=dt({factory:function(){return Ld(gn(io))},token:t,providedIn:"root"}),t})();const Id=wl(Rl,"browser",[{provide:Yu,useValue:"browser"},{provide:ju,useValue:function(){rd.makeCurrent(),ld.init()},multi:!0},{provide:Il,useFactory:function(){return function(t){ge=t}(document),document},deps:[]}]),Fd=[[],{provide:so,useValue:"root"},{provide:fs,useFactory:function(){return new fs},deps:[]},{provide:dd,useClass:Sd,multi:!0,deps:[Il,il,Yu]},{provide:dd,useClass:Dd,multi:!0,deps:[Il]},[],{provide:Ad,useClass:Ad,deps:[fd,md,Hu]},{provide:oc,useExisting:Ad},{provide:gd,useExisting:md},{provide:md,useClass:md,deps:[Il]},{provide:ul,useClass:ul,deps:[il]},{provide:fd,useClass:fd,deps:[dd,il]},{provide:sd,useClass:hd,deps:[]},[]];let Hd=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Hu,useValue:e.appId},{provide:cd,useExisting:Hu},ud]}}}return t.\u0275fac=function(e){return new(e||t)(gn(t,12))},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:Fd,imports:[td,Pl]}),t})();function Od(...t){let e=t[t.length-1];return C(e)?(t.pop(),O(t,e)):U(t)}function Bd(t,e){return j(t,e,1)}function jd(t,e){return function(i){return i.lift(new Yd(t,e))}}"undefined"!=typeof window&&window;class Yd{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Nd(t,this.predicate,this.thisArg))}}class Nd extends p{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class Kd{}class Ud{}class Vd{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Vd?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Vd;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Vd?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class qd{encodeKey(t){return $d(t)}encodeValue(t){return $d(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function $d(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function Wd(t){return`${t}`}class Gd{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new qd,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[s,r]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],o=i.get(s)||[];o.push(r),i.set(s,o)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Gd({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Wd(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(Wd(t.value));-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class Jd{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function Zd(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Qd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Xd(t){return"undefined"!=typeof FormData&&t instanceof FormData}class tf{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Vd),this.context||(this.context=new Jd),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),u)),new tf(i,n,r,{params:u,headers:c,context:l,reportProgress:a,responseType:s,withCredentials:o})}}var ef=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class nf{constructor(t,e=200,i="OK"){this.headers=t.headers||new Vd,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class sf extends nf{constructor(t={}){super(t),this.type=ef.ResponseHeader}clone(t={}){return new sf({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class rf extends nf{constructor(t={}){super(t),this.type=ef.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new rf({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class of extends nf{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function af(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let cf=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof tf)n=t;else{let s,r;s=i.headers instanceof Vd?i.headers:new Vd(i.headers),i.params&&(r=i.params instanceof Gd?i.params:new Gd({fromObject:i.params})),n=new tf(t,e,void 0!==i.body?i.body:null,{headers:s,context:i.context,params:r,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=Od(n).pipe(Bd(t=>this.handler.handle(t)));if(t instanceof tf||"events"===i.observe)return s;const r=s.pipe(jd(t=>t instanceof rf));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe(I(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(I(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(I(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(I(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Gd).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,af(i,e))}post(t,e,i={}){return this.request("POST",t,af(i,e))}put(t,e,i={}){return this.request("PUT",t,af(i,e))}}return t.\u0275fac=function(e){return new(e||t)(gn(Kd))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class uf{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const lf=new Ji("HTTP_INTERCEPTORS");let hf=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const df=/^\)\]\}',?\n/;let ff=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new y(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Vd(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new sf({headers:r,status:e,statusText:n,url:o}),s},o=()=>{let{headers:n,status:s,statusText:o,url:a}=r(),c=null;204!==s&&(c=void 0===i.response?i.responseText:i.response),0===s&&(s=c?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(df,"");try{c=""!==c?JSON.parse(c):null}catch(l){c=t,u&&(u=!1,c={error:l,text:c})}}u?(e.next(new rf({body:c,headers:n,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new of({error:c,headers:n,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:n}=r(),s=new of({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let c=!1;const u=n=>{c||(e.next(r()),c=!0);let s={type:ef.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},l=t=>{let i={type:ef.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",o),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",u),null!==n&&i.upload&&i.upload.addEventListener("progress",l)),i.send(n),e.next({type:ef.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",o),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",u),null!==n&&i.upload&&i.upload.removeEventListener("progress",l)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(gn(sd))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const pf=new Ji("XSRF_COOKIE_NAME"),gf=new Ji("XSRF_HEADER_NAME");class mf{}let _f=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,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=Lh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(gn(Il),gn(Yu),gn(pf))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),yf=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(gn(mf),gn(gf))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),wf=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(lf,[]);this.chain=t.reduceRight((t,e)=>new uf(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(gn(Ud),gn(yo))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),bf=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:yf,useClass:hf}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:pf,useValue:e.cookieName}:[],e.headerName?{provide:gf,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[yf,{provide:lf,useExisting:yf,multi:!0},{provide:mf,useClass:_f},{provide:pf,useValue:"XSRF-TOKEN"},{provide:gf,useValue:"X-XSRF-TOKEN"}]}),t})(),vf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[cf,{provide:Kd,useClass:wf},ff,{provide:Ud,useExisting:ff}],imports:[[bf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();class Af{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const kf=new Ji("basePath");class Tf{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}selectHeaderContentType(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let Cf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}convertAttributeToNonunique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}convertAttributeToUnique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("attribute",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAttributeDefinitions(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let n=new Gd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attributes[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAttributeDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttribute(t,e,i,n,s,r,o,a,c,u,l,h="body",d=!1){let f=new Gd({encoder:this.encoder});null!=t&&(f=f.set("attributeName",t)),null!=e&&(f=f.set("attributeId",e)),null!=i&&(f=f.set("facility",i)),null!=n&&(f=f.set("user",n)),null!=s&&(f=f.set("vo",s)),null!=r&&(f=f.set("resource",r)),null!=o&&(f=f.set("member",o)),null!=a&&(f=f.set("group",a)),null!=c&&(f=f.set("host",c)),null!=u&&(f=f.set("userExtSource",u)),null!=l&&(f=f.set("key",l));let p=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(p=p.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(p=p.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;p=p.set("Authorization","Bearer "+t)}const g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(p=p.set("Accept",g)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{params:f,withCredentials:this.configuration.withCredentials,headers:p,observe:h,reportProgress:d})}getAttributeDefinitionById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("attributeName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionsByNamespace(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttributeModulesDependenciesForAttributeGraphText(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("format",t)),null!=e&&(s=s.set("attrName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAttributeModulesDependenciesGraphText(t,e="body",i=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("format",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("attributeId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributesDefinitionWithRights(t,e,i,n,s,r,o,a,c="body",u=!1){let l=new Gd({encoder:this.encoder});null!=t&&(l=l.set("member",t)),null!=e&&(l=l.set("user",e)),null!=i&&(l=l.set("vo",i)),null!=n&&(l=l.set("group",n)),null!=s&&(l=l.set("resource",s)),null!=r&&(l=l.set("facility",r)),null!=o&&(l=l.set("host",o)),null!=a&&(l=l.set("userExtSource",a));let h=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(h=h.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(h=h.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;h=h.set("Authorization","Bearer "+t)}const d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(h=h.set("Accept",d)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{params:l,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:u})}getEntitylessAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEntitylessAttributesByKey(t,e="body",i=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("key",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("attrName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesWithKeys(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("attrName",t)),e&&e.forEach(t=>{s=s.append("keys[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEntitylessKeys(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityResourceUserMemberAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("user",i)),null!=n&&(o=o.set("member",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getFacilityUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getGroupResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getGroupResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getHostAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getHostAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getLogins(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAndUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberAndUserAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberGroupAndUserAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)}),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getMemberGroupAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberGroupAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberGroupAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)}),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getMemberResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacilityService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesFacilityServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let s=new Gd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesGroupResourceService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("group",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRequiredAttributesHostService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("host",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesMemberGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRequiredAttributesMemberGroupResourceService(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new Gd({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("group",i)),null!=n&&(a=a.set("member",n)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}getRequiredAttributesMemberGroupService(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("member",i)),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRequiredAttributesMemberResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRequiredAttributesMemberResourceService(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("member",i)),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRequiredAttributesResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesResourceService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesResourceServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let s=new Gd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesUserFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesVoService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceGroupAndGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithGroupAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getResourceGroupAndGroupAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)}),null!=n&&(o=o.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getResourceGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceGroupMemberAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("member",i)),n&&n.forEach(t=>{o=o.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getUserAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserExtSourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserExtSourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserFacilityAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getUserFacilityAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getUserFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeAttributesForFacilityResourceGroupUserMember(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new Gd({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=n&&(c=c.set("user",n)),null!=s&&(c=c.set("member",s)),r&&r.forEach(t=>{c=c.append("attributes[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}removeAttributesForFacilityResourceUserMember(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new Gd({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=n&&(a=a.set("member",n)),s&&s.forEach(t=>{a=a.append("attributes[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}removeEntitylessAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeGroupResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeGroupResourceAttributesWorkWithGroupAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)}),null!=n&&(o=o.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeHostAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeHostAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMemberAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMemberAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMemberAttributesWorkWithUserAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attributes[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberGroupAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberGroupAttributesWorkWithUserAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)}),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeMemberResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeResourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUesAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserExtSourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserFacilityAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeVoAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setEntitylessAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceGroupUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAndUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupWithGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}auditMessagesManagerLog(t,e="body",i=!1){if(null==t)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("msg",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/AuditMessagesManager/log`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAuditerConsumer(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/AuditMessagesManager/createAuditerConsumer`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAuditerConsumers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getAllAuditerConsumers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuditerMessagesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getAuditerMessagesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getLastMessageId(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getLastMessageId`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMessages(t,e="body",i=!1){let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("count",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getMessages`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMessagesByCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("count",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/getMessagesByCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}pollConsumerMessages(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/AuditMessagesManager/pollConsumerMessages`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setLastProcessedId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==e)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("consumerName",t)),null!=e&&(s=s.set("lastProcessedId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/AuditMessagesManager/setLastProcessedId`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Mf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}getAllPolicies(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRolesManagementRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuthzAdminGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("role",t)),null!=e&&(r=r.set("complementaryObjectId",e)),null!=i&&(r=r.set("complementaryObjectName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAuthzRichAdmins(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new Gd({encoder:this.encoder});null!=t&&(c=c.set("role",t)),null!=e&&(c=c.set("complementaryObjectId",e)),null!=i&&(c=c.set("complementaryObjectName",i)),n&&n.forEach(t=>{c=c.append("specificAttributes",t)}),null!=s&&(c=c.set("allUserAttributes",s)),null!=r&&(c=c.set("onlyDirectAdmins",r));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}getFacilitiesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new Gd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("groupId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new Gd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getLoggedUser(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMembersWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new Gd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getPerunPrincipal(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPrincipalRoleNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new Gd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSecurityTeamsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new Gd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("userId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new Gd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}isFacilityAdmin(t,e="body",i=!1){let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isGroupAdmin(t,e="body",i=!1){let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isPerunAdmin(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isVoAdmin(t,e="body",i=!1){let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}keepAlive(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}loadAuthorizationComponents(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}setRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ef=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}createAutorship(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAuthorship was null or undefined when calling createAutorship.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryCat(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory was null or undefined when calling createCategoryCat.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryNR(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory1 was null or undefined when calling createCategoryNR.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublication was null or undefined when calling createPublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateThanks was null or undefined when calling createThanks.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAuthorship(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==e)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("publicationId",t)),null!=e&&(s=s.set("userId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deletePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deletePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findAllAuthors(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}findAuthorsByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findExternalPublications(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==e)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==i)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==n)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("yearSince",e)),null!=i&&(o=o.set("yearTill",i)),null!=n&&(o=o.set("pubSysNamespace",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}findNewAuthors(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findPublicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findPublicationsByFilter(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let r=new Gd({encoder:this.encoder});null!=e&&(r=r.set("yearSince",e)),null!=i&&(r=r.set("yearTill",i)),null!=t&&(r=r.set("userId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}findPublicationsByGUIFilter(t,e,i,n,s,r,o,a,c,u="body",l=!1){let h=new Gd({encoder:this.encoder});null!=t&&(h=h.set("title",t)),null!=e&&(h=h.set("isbn",e)),null!=i&&(h=h.set("doi",i)),null!=n&&(h=h.set("id",n)),null!=s&&(h=h.set("year",s)),null!=r&&(h=h.set("category",r)),null!=o&&(h=h.set("yearSince",o)),null!=a&&(h=h.set("yearTill",a)),null!=c&&(h=h.set("userId",c));let d=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(d=d.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(d=d.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;d=d.set("Authorization","Bearer "+t)}const f=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==f&&(d=d.set("Accept",f)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{params:h,withCredentials:this.configuration.withCredentials,headers:d,observe:u,reportProgress:l})}findSimilarPublications(t,e,i,n="body",s=!1){let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("title",t)),null!=e&&(r=r.set("doi",e)),null!=i&&(r=r.set("isbn",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getCategories(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPublicationSystems(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRank(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRank.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichThanksByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}lockPublications(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputLockPublications was null or undefined when calling lockPublications.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateCategory was null or undefined when calling updateCategory.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublication was null or undefined when calling updatePublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}getCurrentDatabaseVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getCurrentDatabaseVersion`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseDriverInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseDriverInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTimeOfQueryPerformance(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getTimeOfQueryPerformance`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Rf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}addExtSourceWithGroupSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addExtSourceWithVoSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createExtSourceFromExtSourceObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter extSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createExtSourceWithNameType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==e)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSourceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSources(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGroupExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}loadExtSourcesDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeExtSourceWithGroupSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeExtSourceWithVoSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Df=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}addFacilityAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityAdminGroupByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityAdminUserByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityOwnerByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityOwnerByFacilityNameOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addFacilityOwnerByOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addHost(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("hostname",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addHostByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("hostname",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hostnames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addHostsByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hostnames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignSecurityTeam(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignSecurityTeamByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyAttributesByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyAttributesBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyAttributesBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyManagers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyManagersByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyManagersBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyManagersBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyOwners(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyOwnersByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyOwnersBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyOwnersBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("description",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllowedGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAllowedGroupsByFacilityName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAllowedRichGroupsWithAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("vo",i)),null!=n&&(o=o.set("service",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllowedRichGroupsWithAttributesByFacilityName(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("vo",i)),null!=n&&(o=o.set("service",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllowedUsersOfFacility(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAllowedUsersOfFacilityByFacilityName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAllowedVos(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedVosByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesByAssignedServiceForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAssignedResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedSecurityTeams(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedSecurityTeamsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedUsers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAssignedUsersByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getBansForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facilityId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getEnrichedHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilitiesByAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t)),null!=e&&(s=s.set("attributeValue",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilitiesByDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesByHostName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let n=new Gd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAdminUsers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityAdminUsersByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityForHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityOwners(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityOwnersByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHosts(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsCountByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getOwnerFacilities(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("owner",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeBanByUserIdFacilityId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAdminGroupByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAdminUserByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeFacilityOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityOwnerByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityOwnerByFacilityNameOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityOwnerByOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeHostByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hosts[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeHostsByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hosts[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeSecurityTeam(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeSecurityTeamByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Pf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}getFacilityAdminGroupsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Lf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}addMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");let s=new Gd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}canExtendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createGroupWithParentGroupNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("parentGroup",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}createGroupWithVoNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}deleteGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroups.");if(null==e)throw new Error("Required parameter forceDelete was null or undefined when calling deleteGroups.");let s=new Gd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("forceDelete",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroups`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}extendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}forceAllSubGroupsSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupStructureSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllRichSubGroupsWithGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("name",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupMemberById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByGroupStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByVoStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRichMembersByIds(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("members[]",t)}),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getGroupUnions(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("reverseDirection",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let n=new Gd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getIndirectMembershipPaths(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRichGroupByIdWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("groupId",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}isGroupMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}moveGroupWithDestinationGroupMovingGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new Gd({encoder:this.encoder});null!=e&&(s=s.set("destinationGroup",e)),null!=t&&(s=s.set("movingGroup",t));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");let s=new Gd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setGroupsMemberStatus(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("status",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}updateGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),zf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}canExtendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createMemberForCandidate(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberFromExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSpecificMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembersFromCSV(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let n=new Gd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("members[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}extendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findCompleteRichMembersByAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let r=new Gd({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("attrsNames[]",t)}),null!=e&&(r=r.set("searchString",e)),i&&i.forEach(t=>{r=r.append("allowedStatuses[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}findCompleteRichMembersForGroup(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new Gd({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(t=>{c=c.append("attrsNames[]",t)}),s&&s.forEach(t=>{c=c.append("allowedStatuses[]",t)}),r&&r.forEach(t=>{c=c.append("allowedGroupStatuses[]",t)}),null!=i&&(c=c.set("searchString",i)),null!=n&&(c=c.set("lookingInParentGroup",n));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}findCompleteRichMembersForVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrsNames[]",t)}),n&&n.forEach(t=>{o=o.append("allowedStatuses[]",t)}),null!=i&&(o=o.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}findMembersInVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findSponsoredCompleteRichMembersForVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrsNames[]",t)}),null!=i&&(o=o.set("searchString",i)),null!=n&&(o=o.set("onlySponsored",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllNamespacesRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getCompleteRichMembersForGroup(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new Gd({encoder:this.encoder});null!=t&&(a=a.set("group",t)),i&&i.forEach(t=>{a=a.append("allowedStatuses[]",t)}),n&&n.forEach(t=>{a=a.append("allowedGroupStatuses[]",t)}),null!=e&&(a=a.set("lookingInParentGroup",e)),s&&s.forEach(t=>{a=a.append("attrsNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}getCompleteRichMembersForGroupResource(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attrsNames[]",t)}),n&&n.forEach(t=>{o=o.append("allowedStatuses[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getCompleteRichMembersForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("allowedStatuses[]",t)}),i&&i.forEach(t=>{r=r.append("attrsNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberByExtSourceNameAndExtLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extLogin",e)),null!=i&&(r=r.set("extSourceName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberByUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMembersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let n=new Gd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getMembersWithStatusCount(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRichMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMemberWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMembersByIds(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new Gd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)}),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsorsByMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsorsByVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extSourceName",e)),null!=i&&(o=o.set("extLogin",i)),n&&n.forEach(t=>{o=o.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}moveMembership(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("sourceUser",e)),null!=i&&(r=r.set("targetUser",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeSponsor(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("sponsor",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sendAccountActivationLinkEmail(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("emailAttributeURN",i)),null!=n&&(o=o.set("language",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sendPasswordResetLinkEmail(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("emailAttributeURN",i)),null!=n&&(o=o.set("language",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}setSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSponsorshipForMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("sponsoredMember",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}setStatus(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sponsorMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}updateSponsorshipValidity(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}validateMemberAsync(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),If=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}createOwner(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateOwner was null or undefined when calling createOwner.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("owner",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllOwners(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getOwnerById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getOwnerByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("owner",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ff=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}sentMessageToRTWithMemberQueue(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("memberId",t)),null!=e&&(o=o.set("queue",e)),null!=i&&(o=o.set("subject",i)),null!=n&&(o=o.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sentMessageToRTWithQueue(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("queue",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}sentMessageToRTWithVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("voId",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}sentMessageToRTWithVoQueue(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("voId",t)),null!=e&&(o=o.set("queue",e)),null!=i&&(o=o.set("subject",i)),null!=n&&(o=o.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Hf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}addApplicationMailForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addApplicationMailForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let n=new Gd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}approveApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}consolidateIdentityUsingToken(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}copyFormFromGroupToGroup(t,e,i="body",n=!1){let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyFormFromGroupToVo(t,e,i="body",n=!1){let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyFormFromVoToGroup(t,e,i="body",n=!1){let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyFormFromVoToVo(t,e,i="body",n=!1){let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromGroupToGroup(t,e,i="body",n=!1){let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromGroupToVo(t,e,i="body",n=!1){let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromVoToGroup(t,e,i="body",n=!1){let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromVoToVo(t,e,i="body",n=!1){let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createApplicationFormInGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createApplicationFormInVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplicationMailForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteApplicationMailForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteGroupsFromAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let n=new Gd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationDataById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationsForGroup(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("state[]",t)}),null!=i&&(o=o.set("dateFrom",i)),null!=n&&(o=o.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getApplicationsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getApplicationsForVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("state[]",t)}),null!=i&&(o=o.set("dateFrom",i)),null!=n&&(o=o.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getConsolidatorToken(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForGroupWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForVoWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}rejectApplication(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("id",t)),null!=e&&(s=s.set("reason",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sendInvitation(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let o=new Gd({encoder:this.encoder});null!=i&&(o=o.set("voId",i)),null!=n&&(o=o.set("name",n)),null!=t&&(o=o.set("email",t)),null!=e&&(o=o.set("language",e));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sendInvitationForGroup(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new Gd({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=n&&(a=a.set("groupId",n)),null!=s&&(a=a.set("name",s)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}sendInvitationGroupToExistingUser(t,e,i,n="body",s=!1){let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("userId",t)),null!=e&&(r=r.set("voId",e)),null!=i&&(r=r.set("groupId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}sendInvitationToExistingUser(t,e,i="body",n=!1){let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("userId",t)),null!=e&&(s=s.set("voId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sendMessage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSendingEnabled(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}submitApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateApplicationMail(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}verifyApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Of=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}activateGroupResourceAssignment(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}addAdminToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addAdminToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}allowGroupsToResources(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let r=new Gd({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("groups[]",t)}),e&&e.forEach(t=>{r=r.append("resources[]",t)}),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}assignGroupToResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}assignGroupToResources(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("resources[]",t)}),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}assignGroupsToResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let r=new Gd({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("groups[]",t)}),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}assignResourceTagToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}assignService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResource(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("name",i)),null!=n&&(o=o.set("description",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}createResourceTagWithResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResourceTagWithTagName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("tagName",t)),null!=e&&(s=s.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deactivateGroupResourceAssignment(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteAllResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAdmins(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllResourcesByResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllResourcesTagsForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedUsersOfResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAssignedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMemberService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAssignedServicesToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedResourceById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("id",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEnrichedResourcesForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEnrichedResourcesForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("name",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let n=new Gd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesCountForAll(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesCountForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesFromVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourcesWhereGroupIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("group",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getResourcesWhereUserIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("user",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRichAdmins(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("specificAttributes",t)}),null!=i&&(o=o.set("allUserAttributes",i)),null!=n&&(o=o.set("onlyDirectAdmins",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRichResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let n=new Gd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeAllResourceTagsFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeBanByMemberAndResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupsFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let s=new Gd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceTagFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unallowGroupsFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let s=new Gd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),e&&e.forEach(t=>{s=s.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}updateResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Bf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}addDestination(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling addDestination.");let a=new Gd({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("destination",i)),null!=n&&(a=a.set("type",n)),null!=s&&(a=a.set("propagationType",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}addDestinationToMultipleServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addDestinationsForAllServicesOnFacility(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==i)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("type",i)),null!=n&&(o=o.set("propagationType",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}addRequiredAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addRequiredAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addServiceToServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}blockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}blockAllServicesOnDestinationByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("destination",t)),null!=e&&(s=s.set("destinationType",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}blockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}blockServiceOnDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}blockServiceOnDestinationWithNameAndType(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("destinationType",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}blockServiceOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==i)throw new Error("Required parameter script was null or undefined when calling createService.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e)),null!=i&&(r=r.set("script",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}createServiceWithService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateService was null or undefined when calling createServiceWithService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackageByNameAndDescription(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("description",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling deleteService.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceServicePropagation(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllDestinations(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRichDestinationsForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichDestinationsForService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getDataWithGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getDataWithVos(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getDestinationsCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAssignedServicesForGUI(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFlatData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getHashedDataWithGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getHashedHierarchicalData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getHierarchicalData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRichDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getServiceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServiceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServices(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getServicesBlockedOnDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesBlockedOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesByAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesFromServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackageById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackageByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackages(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isServiceBlockedOnDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}isServiceBlockedOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}planServicePropagation(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeAllDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeAllRequiredAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeDestination(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("destination",i)),null!=n&&(o=o.set("type",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeRequiredAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeRequiredAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeServiceFromServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}unblockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}unblockAllServicesOnDestinationByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("destination",t)),null!=e&&(s=s.set("destinationType",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}unblockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}unblockServiceOnDestinationById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}unblockServiceOnDestinationByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("destinationType",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}unblockServiceOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}updateService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateService was null or undefined when calling updateService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}countTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}deleteTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskIdObject was null or undefined when calling deleteTask.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResultIdObject was null or undefined when calling deleteTaskResultById.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllFacilitiesStates(t,e="body",i=!1){let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("voId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityServicesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTask(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getTask.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getTaskById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("taskResult",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResults(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTaskResultsByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let n=new Gd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("destinations[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForGUIByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForGUIByTaskAndDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("task",t)),null!=e&&(s=s.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getTaskResultsForGUIByTaskOnlyNewest(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isThereSuchTask(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}listAllTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}listAllTasksForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}suspendTasksPropagation(t,e="body",i=!1){if(null==t)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("suspend",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Yf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}addSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addUserExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}changeNonAuthzPasswordByToken(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("token",t)),null!=e&&(r=r.set("password",e)),null!=i&&(r=r.set("lang",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}changePasswordForLogin(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let a=new Gd({encoder:this.encoder});null!=t&&(a=a.set("login",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}changePasswordForUser(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let a=new Gd({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}checkPasswordResetRequestByTokenIsValid(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkPasswordStrength(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("password",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createAlternativePassword(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("description",e)),null!=i&&(o=o.set("loginNamespace",i)),null!=n&&(o=o.set("password",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}createServiceUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAlternativePassword(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("loginNamespace",e)),null!=i&&(r=r.set("passwordId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}deletePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deletePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findRichUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findRichUsersWithAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("searchString",t)),e&&e.forEach(t=>{s=s.append("attrsNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsForFacilityWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsForResourceWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsInVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getPendingPreferredEmailChanges(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let n=new Gd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithAttributesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let n=new Gd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithoutVoWithAttributes(t,e="body",i=!1){let n=new Gd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrsNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSpecificUsersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsorsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsorsForMemberByVoAndLogin(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let o=new Gd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extSourceName",e)),null!=i&&(o=o.set("extLogin",i)),n&&n.forEach(t=>{o=o.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getUserByExtSourceNameAndExtLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("extLogin",t)),null!=e&&(s=s.set("extSourceName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let n=new Gd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let n=new Gd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersBySpecificUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("specificUser",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isLoginAvailable(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("loginNamespace",t)),null!=e&&(s=s.set("login",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}loginExist(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserExtSource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("userExtSource",e)),null!=i&&(r=r.set("force",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}requestPreferredEmailChange(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let c=new Gd({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("email",e)),null!=i&&(c=c.set("lang",i)),null!=n&&(c=c.set("linkPath",n)),null!=s&&(c=c.set("customUrl",s)),null!=r&&(c=c.set("idpFilter",r));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}reservePasswordForLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}reservePasswordForUser(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}reserveRandomPassword(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}updateUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}validatePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}validatePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}validatePreferredEmailChangeWithToken(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("token",t)),null!=e&&(s=s.set("u",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Nf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}getAppsConfig(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGuiConfiguration(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunRPCVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatistics(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatus(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunSystemTimeInMillis(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Kf=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Vd,this.configuration=new Tf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new Af}addSponsorRoleToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addSponsorRoleToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createVoWithName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("shortName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createVoWithVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findCandidates(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("id",t)),null!=e&&(r=r.set("searchString",e)),null!=i&&(r=r.set("maxNumOfResults",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}findCandidatesForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getCompleteCandidatesForGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getCompleteCandidatesForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMyVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRichAdminsForVo(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new Gd({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("role",e)),i&&i.forEach(t=>{a=a.append("specificAttributes",t)}),null!=n&&(a=a.set("allUserAttributes",n)),null!=s&&(a=a.set("onlyDirectAdmins",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}getVoAdminGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("role",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAdminUsers(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let r=new Gd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("role",e)),null!=i&&(r=r.set("onlyDirectAdmins",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getVoBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBansForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoByShortName(t,e="body",i=!1){let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("shortName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoMembersCountsByStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let n=new Gd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeSponsorRoleFromGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeSponsorRoleFromUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new Gd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let n=new Gd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(kf,8),gn(Tf,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Uf,Vf,qf,$f;!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(Uf||(Uf={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(Vf||(Vf={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(qf||(qf={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}($f||($f={}));let Wf=(()=>{class t{constructor(t,e){if(t)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!e)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:t,providers:[{provide:Tf,useFactory:e}]}}}return t.\u0275fac=function(e){return new(e||t)(gn(t,12),gn(cf,8))},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[Cf,Sf,Mf,Ef,xf,Rf,Df,Pf,Lf,zf,If,Ff,Hf,Of,Bf,jf,Yf,Nf,Kf],imports:[[]]}),t})();var Gf=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({});let Jf=(()=>{class t{constructor(t){this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(t){this.principal=t,this.initData(t)}setPerunPolicies(t){this.perunPolicies=t}getPerunPolicies(){return this.perunPolicies}isAuthorized(t,e){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(t);let n=[];for(const r of i)n=n.concat(r.perunRoles);const s=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,s)}resolveAuthorization(t,e){for(const i of t){let t=!0;for(const n of Object.keys(i)){const s=i[n];if(null===s)this.principalRoles.has(n)||(t=!1);else if(e[s]){for(const i of e[s])if(!this.principalHasRole(n,s,i)){t=!1;break}}else t=!1;if(!t)break}if(t)return!0}return!1}fetchAllRelatedObjects(t){const e={};for(const i of t){let t=i.beanName;switch(i.beanName.startsWith("Rich")&&(t=i.beanName.substring(4)),e[t]?e[t].push(i.id):e[t]=[i.id],t){case"Member":e.User?e.User.push(i.userId):e.User=[i.userId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Group":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Resource":e.Facility?e.Facility.push(i.facilityId):e.Facility=[i.facilityId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"ResourceTag":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId]}}return e}principalHasRole(t,e,i){let n=e;return e.startsWith("Rich")&&(n=e.substring(4)),!(!this.principal.roles[t]||!this.principal.roles[t][n])&&this.principal.roles[t][n].includes(Number(i.toString()))}fetchPolicyWithAllIncludedPolicies(t){const e=new Map;let i=[];for(i.push(t);0!==i.length;){const n=i.shift();if(e.has(n)){console.log("Policy {} creates a cycle in the included policies of the policy {}",n,t);continue}const s=this.getPerunPolicy(n);if(!s)return[];e.set(n,s),i=i.concat(s.includePolicies)}const n=[];for(const s of e.values())n.push(s);return n}getPerunPolicy(t){for(const e of this.perunPolicies)if(e.policyName===t)return e;return console.log("policy with name"+t+"was not found"),null}canManageFacilities(){return this.hasAtLeastOne(Gf.PERUNADMIN,Gf.PERUNOBSERVER,Gf.FACILITYADMIN,Gf.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(Gf.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(Gf.PERUNADMIN,Gf.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(Gf.PERUNADMIN,Gf.VOADMIN)}isThisVoAdminOrObserver(t){return this.editableVos.includes(t)||this.observableVos.includes(t)||this.hasAtLeastOne(Gf.PERUNADMIN,Gf.PERUNOBSERVER)}isThisVoAdmin(t){return this.editableVos.includes(t)||this.principalRoles.has(Gf.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(Gf.PERUNADMIN,Gf.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(Gf.SPONSOR)}isThisGroupAdmin(t){return this.editableGroups.includes(t)||this.principalRoles.has(Gf.PERUNADMIN)}isGroupAdminInThisVo(t){return this.hasGroupInTheseVos.includes(t)}isFacilityAdmin(){return this.hasAtLeastOne(Gf.PERUNADMIN,Gf.FACILITYADMIN)}isThisFacilityAdmin(t){return this.editableFacilities.includes(t)||this.principalRoles.has(Gf.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(Gf.PERUNADMIN,Gf.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(Gf.PERUNADMIN,Gf.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(Gf.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(Gf.PERUNADMIN,Gf.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(Gf.PERUNADMIN,Gf.VOOBSERVER,Gf.PERUNOBSERVER)}isThisVoObserver(t){return this.hasAtLeastOne(Gf.PERUNADMIN,Gf.PERUNOBSERVER)||this.observableVos.includes(t)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((t,e)=>{this.authzSevice.getAllRolesManagementRules().subscribe(e=>{this.allRolesManagementRules=e,t()},t=>e(t))})}assignAvailableRoles(t,e){this.allRolesManagementRules.forEach(i=>{i.primaryObject===e&&t.push(i.roleName)}),t.sort(),"Vo"===e&&this.voCustomSort(t)}isManagerPagePrivileged(t){const e=[];let i=t.beanName;i.startsWith("Rich")&&(i=i.substr(4)),this.assignAvailableRoles(e,i);const n=new Map;this.getRolesAuthorization(e,t,n);for(const s of n.values())if(s.readAuth||s.manageAuth)return!0;return!1}getRolesAuthorization(t,e,i){for(const n of t){let t=[],s=[],r=[];for(const e of this.allRolesManagementRules)if(e.roleName===n){t=t.concat(e.privilegedRolesToRead),s=s.concat(e.privilegedRolesToManage);for(const t of Object.keys(e.entitiesToManage))r="User"===t?[t].concat(r):r.concat(t);break}const o=this.fetchAllRelatedObjects([e]),a=this.resolveAuthorization(t,o),c=this.resolveAuthorization(s,o);i.set(n,{readAuth:a,manageAuth:c,modes:r})}}voCustomSort(t){for(let e=0;e{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function sp(...t){return K(1)(Od(...t))}const rp=new y(t=>t.complete());function op(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):rp}function ap(t){return new y(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?B(i):op()).subscribe(e)})}function cp(t,e){return"function"==typeof e?i=>i.pipe(cp((i,n)=>B(t(i,n)).pipe(I((t,s)=>e(i,t,n,s))))):e=>e.lift(new up(t))}class up{constructor(t){this.project=t}call(t,e){return e.subscribe(new lp(t,this.project))}}class lp extends z{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const s=new S(this,e,i),r=this.destination;r.add(s),this.innerSubscription=L(this,t,void 0,void 0,s),this.innerSubscription!==s&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}const hp=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function dp(t){return e=>0===t?op():e.lift(new fp(t))}class fp{constructor(t){if(this.total=t,this.total<0)throw new hp}call(t,e){return e.subscribe(new pp(t,this.total))}}class pp extends p{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function gp(...t){const e=t[t.length-1];return C(e)?(t.pop(),i=>sp(t,i,e)):e=>sp(t,e)}function mp(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new _p(t,e,i))}}class _p{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new yp(t,this.accumulator,this.seed,this.hasSeed))}}class yp extends p{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}function wp(t){return function(e){const i=new bp(t),n=e.lift(i);return i.caught=n}}class bp{constructor(t){this.selector=t}call(t,e){return e.subscribe(new vp(t,this.selector,this.caught))}}class vp extends z{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new S(this,void 0,void 0);this.add(n);const s=L(this,i,void 0,void 0,n);s!==n&&this.add(s)}}}function Ap(t){return function(e){return 0===t?op():e.lift(new kp(t))}}class kp{constructor(t){if(this.total=t,this.total<0)throw new hp}call(t,e){return e.subscribe(new Tp(t,this.total))}}class Tp extends p{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;se.lift(new Sp(t))}class Sp{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Mp(t,this.errorFactory))}}class Mp extends p{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Ep(){return new np}function xp(t=null){return e=>e.lift(new Rp(t))}class Rp{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Dp(t,this.defaultValue))}}class Dp extends p{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Pp(t,e){const i=arguments.length>=2;return n=>n.pipe(t?jd((e,i)=>t(e,i,n)):_,dp(1),i?xp(e):Cp(()=>new np))}function Lp(){}function zp(t,e,i){return function(n){return n.lift(new Ip(t,e,i))}}class Ip{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new Fp(t,this.nextOrObserver,this.error,this.complete))}}class Fp extends p{constructor(t,e,i,s){super(t),this._tapNext=Lp,this._tapError=Lp,this._tapComplete=Lp,this._tapError=i||Lp,this._tapComplete=s||Lp,n(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Lp,this._tapError=e.error||Lp,this._tapComplete=e.complete||Lp)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function Hp(t){return e=>e.lift(new Op(t))}class Op{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Bp(t,this.callback))}}class Bp extends p{constructor(t,e){super(t),this.add(new h(e))}}class jp{constructor(t,e){this.id=t,this.url=e}}class Yp extends jp{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Np extends jp{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Kp extends jp{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Up extends jp{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Vp extends jp{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qp extends jp{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $p extends jp{constructor(t,e,i,n,s){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Wp extends jp{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gp extends jp{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Jp{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Zp{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Qp{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xp{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tg{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eg{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ig{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ng="primary";class sg{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function rg(t){return new sg(t)}function og(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function ag(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function lg(t){return Array.prototype.concat.apply([],t)}function hg(t){return t.length>0?t[t.length-1]:null}function dg(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function fg(t){return Go(t)?t:$o(t)?B(Promise.resolve(t)):Od(t)}const pg={exact:function t(e,i,n){if(!kg(e.segments,i.segments))return!1;if(!wg(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const s in i.children){if(!e.children[s])return!1;if(!t(e.children[s],i.children[s],n))return!1}return!0},subset:_g},gg={exact:function(t,e){return cg(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>ug(t[i],e[i]))},ignored:()=>!0};function mg(t,e,i){return pg[i.paths](t.root,e.root,i.matrixParams)&&gg[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function _g(t,e,i){return yg(t,e,e.segments,i)}function yg(t,e,i,n){if(t.segments.length>i.length){const s=t.segments.slice(0,i.length);return!!kg(s,i)&&!e.hasChildren()&&!!wg(s,i,n)}if(t.segments.length===i.length){if(!kg(t.segments,i))return!1;if(!wg(t.segments,i,n))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!_g(t.children[i],e.children[i],n))return!1}return!0}{const s=i.slice(0,t.segments.length),r=i.slice(t.segments.length);return!!kg(t.segments,s)&&!!wg(t.segments,s,n)&&!!t.children.primary&&yg(t.children.primary,e,r,n)}}function wg(t,e,i){return e.every((e,n)=>gg[i](t[n].parameters,e.parameters))}class bg{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=rg(this.queryParams)),this._queryParamMap}toString(){return Sg.serialize(this)}}class vg{constructor(t,e){this.segments=t,this.children=e,this.parent=null,dg(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Mg(this)}}class Ag{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=rg(this.parameters)),this._parameterMap}toString(){return zg(this)}}function kg(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class Tg{}class Cg{parse(t){const e=new Bg(t);return new bg(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${Eg(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Rg(e)}=${Rg(t)}`).join("&"):`${Rg(e)}=${Rg(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Sg=new Cg;function Mg(t){return t.segments.map(t=>zg(t)).join("/")}function Eg(t,e){if(!t.hasChildren())return Mg(t);if(e){const e=t.children.primary?Eg(t.children.primary,!1):"",i=[];return dg(t.children,(t,e)=>{e!==ng&&i.push(`${e}:${Eg(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return dg(t.children,(t,n)=>{n===ng&&(i=i.concat(e(t,n)))}),dg(t.children,(t,n)=>{n!==ng&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>i===ng?[Eg(t.children.primary,!1)]:[`${i}:${Eg(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Mg(t)}/${e[0]}`:`${Mg(t)}/(${e.join("//")})`}}function xg(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rg(t){return xg(t).replace(/%3B/gi,";")}function Dg(t){return xg(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pg(t){return decodeURIComponent(t)}function Lg(t){return Pg(t.replace(/\+/g,"%20"))}function zg(t){return`${Dg(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Dg(t)}=${Dg(e[t])}`).join("")}`;var e}const Ig=/^[^\/()?;=#]+/;function Fg(t){const e=t.match(Ig);return e?e[0]:""}const Hg=/^[^=?&#]+/,Og=/^[^?&#]+/;class Bg{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new vg([],{}):new vg([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new vg(t,e)),i}parseSegment(){const t=Fg(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Ag(Pg(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Fg(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Fg(this.remaining);t&&(i=t,this.capture(i))}t[Pg(e)]=Pg(i)}parseQueryParam(t){const e=function(t){const e=t.match(Hg);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Og);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=Lg(e),s=Lg(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Fg(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=ng);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new vg([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class jg{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Yg(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Yg(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ng(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Ng(t,this._root).map(t=>t.value)}}function Yg(t,e){if(t===e.value)return e;for(const i of e.children){const e=Yg(t,i);if(e)return e}return null}function Ng(t,e){if(t===e.value)return[e];for(const i of e.children){const n=Ng(t,i);if(n.length)return n.unshift(e),n}return[]}class Kg{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ug(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Vg extends jg{constructor(t,e){super(t),this.snapshot=e,Zg(this,t)}toString(){return this.snapshot.toString()}}function qg(t,e){const i=function(t,e){const i=new Gg([],{},{},"",{},ng,e,null,t.root,-1,{});return new Jg("",new Kg(i,[]))}(t,e),n=new Qf([new Ag("",{})]),s=new Qf({}),r=new Qf({}),o=new Qf({}),a=new Qf(""),c=new $g(n,s,o,a,r,ng,e,i.root);return c.snapshot=i.root,new Vg(new Kg(c,[]),i)}class $g{constructor(t,e,i,n,s,r,o,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=o,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(I(t=>rg(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(I(t=>rg(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Wg(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Gg{constructor(t,e,i,n,s,r,o,a,c,u,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}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=rg(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=rg(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Jg extends jg{constructor(t,e){super(e),this.url=t,Zg(this,e)}toString(){return Qg(this._root)}}function Zg(t,e){e.value._routerState=t,e.children.forEach(e=>Zg(t,e))}function Qg(t){const e=t.children.length>0?` { ${t.children.map(Qg).join(", ")} } `:"";return`${t.value}${e}`}function Xg(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,cg(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),cg(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;icg(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||tm(t.parent,e.parent))}function em(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return em(t,e,n);return em(t,e)})}(t,e,i);return new Kg(n,s)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const t=i.route;return im(e,t),t}}const i=new $g(new Qf((n=e.value).url),new Qf(n.params),new Qf(n.queryParams),new Qf(n.fragment),new Qf(n.data),n.outlet,n.component,n),s=e.children.map(e=>em(t,e));return new Kg(i,s)}var n}function im(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new bg(i.root===t?e:om(i.root,t,e),r,s)}function om(t,e,i){const n={};return dg(t.children,(t,s)=>{n[s]=t===e?i:om(t,e,i)}),new vg(t.segments,n)}class am{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&nm(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(sm);if(n&&n!==hg(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class cm{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function um(t,e,i){if(t||(t=new vg([],{})),0===t.segments.length&&t.hasChildren())return lm(t,e,i);const n=function(t,e,i){let n=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return r;const e=t.segments[s],o=i[n];if(sm(o))break;const a=`${o}`,c=n0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!pm(a,c,e))return r;n+=2}else{if(!pm(a,{},e))return r;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=um(t.children[n],e,i))}),dg(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new vg(t.segments,s)}}function hm(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=hm(new vg([],{}),0,t))}),e}function fm(t){const e={};return dg(t,(t,i)=>e[i]=`${t}`),e}function pm(t,e,i){return t==i.path&&cg(e,i.parameters)}class gm{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Xg(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=Ug(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),dg(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,s=Ug(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const n=Ug(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new eg(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Xp(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(Xg(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),mm(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function mm(t){Xg(t.value),t.children.forEach(mm)}class _m{constructor(t,e){this.routes=t,this.module=e}}function ym(t){return"function"==typeof t}function wm(t){return t instanceof bg}const bm=Symbol("INITIAL_VALUE");function vm(){return cp(t=>tp(t.map(t=>t.pipe(dp(1),gp(bm)))).pipe(mp((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==bm)return t;if(n===bm&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||wm(n))return n}return t},t)},bm),jd(t=>t!==bm),I(t=>wm(t)?t:!0===t),dp(1)))}let Am=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&No(0,"router-outlet")},directives:function(){return[w_]},encapsulation:2}),t})();function km(t,e=""){for(let i=0;iMm(t)===e);return i.push(...t.filter(t=>Mm(t)!==e)),i}const xm={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Rm(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},xm):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||ag)(i,t,e);if(!s)return Object.assign({},xm);const r={};dg(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function Dm(t,e,i,n,s="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>Pm(t,e,i)&&Mm(i)!==ng)}(t,i,n)){const s=new vg(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const r of i)if(""===r.path&&Mm(r)!==ng){const i=new vg([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[Mm(r)]=i}return s}(t,e,n,new vg(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>Pm(t,e,i))}(t,i,n)){const r=new vg(t.segments,function(t,e,i,n,s,r){const o={};for(const a of n)if(Pm(t,i,a)&&!s[Mm(a)]){const i=new vg([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Mm(a)]=i}return Object.assign(Object.assign({},s),o)}(t,e,i,n,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}const r=new vg(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}function Pm(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Lm(t,e,i,n){return!!(Mm(t)===n||n!==ng&&Pm(e,i,t))&&("**"===t.path||Rm(e,t,i).matched)}function zm(t,e,i){return 0===e.length&&!t.children[i]}class Im{constructor(t){this.segmentGroup=t||null}}class Fm{constructor(t){this.urlTree=t}}function Hm(t){return new y(e=>e.error(new Im(t)))}function Om(t){return new y(e=>e.error(new Fm(t)))}function Bm(t){return new y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class jm{constructor(t,e,i,n,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Bc)}apply(){const t=Dm(this.urlTree.root,[],[],this.config).segmentGroup,e=new vg(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,ng).pipe(I(t=>this.createUrlTree(Ym(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(wp(t=>{if(t instanceof Fm)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Im)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,ng).pipe(I(e=>this.createUrlTree(Ym(e),t.queryParams,t.fragment))).pipe(wp(t=>{if(t instanceof Im)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new vg([],{[ng]:t}):t;return new bg(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(I(t=>new vg([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const s of Object.keys(i.children))"primary"===s?n.unshift(s):n.push(s);return B(n).pipe(Bd(n=>{const s=i.children[n],r=Em(e,n);return this.expandSegmentGroup(t,r,s,n).pipe(I(t=>({segment:t,outlet:n})))}),mp((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?jd((e,i)=>t(e,i,n)):_,Ap(1),i?xp(e):Cp(()=>new np))}())}expandSegment(t,e,i,n,s,r){return B(i).pipe(Bd(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,s,r).pipe(wp(t=>{if(t instanceof Im)return Od(null);throw t}))),Pp(t=>!!t),wp((t,i)=>{if(t instanceof np||"EmptyError"===t.name){if(zm(e,n,s))return Od(new vg([],{}));throw new Im(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,s,r,o){return Lm(n,e,s,r)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r):Hm(e):Hm(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Om(s):this.lineralizeSegments(i,s).pipe(j(i=>{const s=new vg(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:u}=Rm(e,n,s);if(!o)return Hm(e);const l=this.applyRedirectCommands(a,n.redirectTo,u);return n.redirectTo.startsWith("/")?Om(l):this.lineralizeSegments(n,l).pipe(j(n=>this.expandSegment(t,e,i,n.concat(s.slice(c)),r,!1)))}matchSegmentAgainstRoute(t,e,i,n,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?Od(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(I(t=>(i._loadedConfig=t,new vg(n,{})))):Od(new vg(n,{}));const{matched:r,consumedSegments:o,lastChild:a}=Rm(e,i,n);if(!r)return Hm(e);const c=n.slice(a);return this.getChildConfig(t,i,n).pipe(j(t=>{const n=t.module,r=t.routes,{segmentGroup:a,slicedSegments:u}=Dm(e,o,c,r),l=new vg(a.segments,a.children);if(0===u.length&&l.hasChildren())return this.expandChildren(n,r,l).pipe(I(t=>new vg(o,t)));if(0===r.length&&0===u.length)return Od(new vg(o,{}));const h=Mm(i)===s;return this.expandSegment(n,l,r,u,h?ng:s,!0).pipe(I(t=>new vg(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Od(new _m(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Od(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(j(i=>i?this.configLoader.load(t.injector,e).pipe(I(t=>(e._loadedConfig=t,t))):function(t){return new y(e=>e.error(og(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Od(new _m([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;return n&&0!==n.length?Od(n.map(n=>{const s=t.get(n);let r;if(function(t){return t&&ym(t.canLoad)}(s))r=s.canLoad(e,i);else{if(!ym(s))throw new Error("Invalid CanLoad guard");r=s(e,i)}return fg(r)})).pipe(vm(),zp(t=>{if(!wm(t))return;const e=og(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),I(t=>!0===t)):Od(!0)}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Od(i);if(n.numberOfChildren>1||!n.children.primary)return Bm(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new bg(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return dg(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let r={};return dg(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,i,n)}),new vg(s,r)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function Ym(t){const e={};for(const i of Object.keys(t.children)){const n=Ym(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new vg(t.segments.concat(e.segments),e.children)}return t}(new vg(t.segments,e))}class Nm{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Km{constructor(t,e){this.component=t,this.route=e}}function Um(t,e,i){const n=t._root;return qm(n,e?e._root:null,i,[n.value])}function Vm(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function qm(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=Ug(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!kg(t.url,e.url);case"pathParamsOrQueryParamsChange":return!kg(t.url,e.url)||!cg(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tm(t,e)||!cg(t.queryParams,e.queryParams);case"paramsChange":default:return!tm(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new Nm(n)):(r.data=o.data,r._resolvedData=o._resolvedData),qm(t,e,r.component?a?a.children:null:i,n,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Km(a.outlet.component,o))}else o&&$m(e,a,s),s.canActivateChecks.push(new Nm(n)),qm(t,null,r.component?a?a.children:null:i,n,s)}(t,r[t.value.outlet],i,n.concat([t.value]),s),delete r[t.value.outlet]}),dg(r,(t,e)=>$m(t,i.getContext(e),s)),s}function $m(t,e,i){const n=Ug(t),s=t.value;dg(n,(t,n)=>{$m(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Km(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Wm{}function Gm(t){return new y(e=>e.error(t))}class Jm{constructor(t,e,i,n,s,r){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=Dm(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,ng);if(null===e)return null;const i=new Gg([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ng,this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Kg(i,e),s=new Jg(this.url,n);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=Wg(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const n=e.children[s],r=Em(t,s),o=this.processSegmentGroup(r,n,s);if(null===o)return null;i.push(...o)}const n=Qm(i);return n.sort((t,e)=>t.value.outlet===ng?-1:e.value.outlet===ng?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,i,n);if(null!==t)return t}return zm(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!Lm(t,e,i,n))return null;let s,r=[],o=[];if("**"===t.path){const n=i.length>0?hg(i).parameters:{};s=new Gg(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,e_(t),Mm(t),t.component,t,Xm(e),t_(e)+i.length,i_(t))}else{const n=Rm(e,t,i);if(!n.matched)return null;r=n.consumedSegments,o=i.slice(n.lastChild),s=new Gg(r,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,e_(t),Mm(t),t.component,t,Xm(e),t_(e)+r.length,i_(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=Dm(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new Kg(s,t)]}if(0===a.length&&0===u.length)return[new Kg(s,[])];const l=Mm(t)===n,h=this.processSegment(a,c,u,l?ng:n);return null===h?null:[new Kg(s,h)]}}function Zm(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Qm(t){const e=[],i=new Set;for(const n of t){if(!Zm(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),i.add(t)):e.push(n)}for(const n of i){const t=Qm(n.children);e.push(new Kg(n.value,t))}return e.filter(t=>!i.has(t))}function Xm(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function t_(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function e_(t){return t.data||{}}function i_(t){return t.resolve||{}}function n_(t){return cp(e=>{const i=t(e);return i?B(i).pipe(I(()=>e)):Od(e)})}class s_ extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const r_=new Ji("ROUTES");class o_{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe(I(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new _m(lg(n.injector.get(r_,void 0,vt.Self|vt.Optional)).map(Sm),n)}),wp(t=>{throw e._loader$=void 0,t}));return e._loader$=new G(i,()=>new k).pipe(q()),e._loader$}loadModuleFactory(t){return"string"==typeof t?B(this.loader.load(t)):fg(t()).pipe(j(t=>t instanceof jc?Od(t):B(this.compiler.compileModuleAsync(t))))}}class a_{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new c_,this.attachRef=null}}class c_{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new a_,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class u_{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function l_(t){throw t}function h_(t,e,i){return e.parse("/")}function d_(t,e){return Od(null)}const f_={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},p_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let g_=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=l_,this.malformedUriErrorHandler=h_,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:d_,afterPreactivation:d_},this.urlHandlingStrategy=new u_,this.routeReuseStrategy=new s_,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(Bc),this.console=s.get(Ku);const c=s.get(il);this.isNgZoneEnabled=c instanceof il&&il.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new bg(new vg([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new o_(r,o,t=>this.triggerEvent(new Jp(t)),t=>this.triggerEvent(new Zp(t))),this.routerState=qg(this.currentUrlTree,this.rootComponentType),this.transitions=new Qf({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()}setupNavigations(t){const e=this.events;return t.pipe(jd(t=>0!==t.id),I(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),cp(t=>{let i=!1,n=!1;return Od(t).pipe(zp(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),cp(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Od(t).pipe(cp(t=>{const i=this.transitions.getValue();return e.next(new Yp(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?rp:Promise.resolve(t)}),function(t,e,i,n){return cp(s=>function(t,e,i,n,s){return new jm(t,e,i,n,s).apply()}(t,e,i,s.extractedUrl,n).pipe(I(t=>Object.assign(Object.assign({},s),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),zp(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return j(r=>function(t,e,i,n,s="emptyOnly",r="legacy"){try{const o=new Jm(t,e,i,n,s,r).recognize();return null===o?Gm(new Wm):Od(o)}catch(o){return Gm(o)}}(t,e,r.urlAfterRedirects,i(r.urlAfterRedirects),n,s).pipe(I(t=>Object.assign(Object.assign({},r),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),zp(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const i=new Vp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:r,extras:o}=t,a=new Yp(i,this.serializeUrl(n),s,r);e.next(a);const c=qg(n,this.rootComponentType).snapshot;return Od(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),rp}),n_(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),zp(t=>{const e=new qp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),I(t=>Object.assign(Object.assign({},t),{guards:Um(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return j(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=i;return 0===o.length&&0===r.length?Od(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return B(t).pipe(j(t=>function(t,e,i,n,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Od(r.map(r=>{const o=Vm(r,e,s);let a;if(function(t){return t&&ym(t.canDeactivate)}(o))a=fg(o.canDeactivate(t,e,i,n));else{if(!ym(o))throw new Error("Invalid CanDeactivate guard");a=fg(o(t,e,i,n))}return a.pipe(Pp())})).pipe(vm()):Od(!0)}(t.component,t.route,i,e,n)),Pp(t=>!0!==t,!0))}(o,n,s,t).pipe(j(i=>i&&"boolean"==typeof i?function(t,e,i,n){return B(e).pipe(Bd(e=>sp(function(t,e){return null!==t&&e&&e(new Qp(t)),Od(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new tg(t)),Od(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>ap(()=>Od(e.guards.map(s=>{const r=Vm(s,e.node,i);let o;if(function(t){return t&&ym(t.canActivateChild)}(r))o=fg(r.canActivateChild(n,t));else{if(!ym(r))throw new Error("Invalid CanActivateChild guard");o=fg(r(n,t))}return o.pipe(Pp())})).pipe(vm())));return Od(s).pipe(vm())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Od(n.map(n=>ap(()=>{const s=Vm(n,e,i);let r;if(function(t){return t&&ym(t.canActivate)}(s))r=fg(s.canActivate(e,t));else{if(!ym(s))throw new Error("Invalid CanActivate guard");r=fg(s(e,t))}return r.pipe(Pp())}))).pipe(vm()):Od(!0)}(t,e.route,i))),Pp(t=>!0!==t,!0))}(n,r,t,e):Od(i)),I(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),zp(t=>{if(wm(t.guardsResult)){const e=og(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new $p(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),jd(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),n_(t=>{if(t.guards.canActivateChecks.length)return Od(t).pipe(zp(t=>{const e=new Wp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),cp(t=>{let e=!1;return Od(t).pipe((i=this.paramsInheritanceStrategy,n=this.ngModule.injector,j(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return Od(t);let r=0;return B(s).pipe(Bd(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return Od({});const r={};return B(s).pipe(j(s=>function(t,e,i,n){const s=Vm(t,e,n);return fg(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe(zp(t=>{r[s]=t}))),Ap(1),j(()=>Object.keys(r).length===s.length?Od(r):rp))}(t._resolve,t,e,n).pipe(I(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Wg(t,i).resolve),null)))}(t.route,e,i,n)),zp(()=>r++),Ap(1),j(e=>r===s.length?Od(t):rp))})),zp({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var i,n}),zp(t=>{const e=new Gp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),n_(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),I(t=>{const e=function(t,e,i){const n=em(t,e._root,i?i._root:void 0);return new Vg(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),zp(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),I(t=>(new gm(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),zp({next(){i=!0},complete(){i=!0}}),Hp(()=>{i||n||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),wp(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=wm(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new Kp(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new Up(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(r){t.reject(r)}}var s;return rp}));var s,r,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){km(t),this.config=t.map(Sm),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(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=i||this.routerState.root,c=o?this.currentUrlTree.fragment:s;let u=null;switch(r){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=n||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,i,n,s){if(0===i.length)return rm(e.root,e.root,e,n,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new am(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return dg(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new am(i,e,n)}(i);if(r.toRoot())return rm(e.root,new vg([],{}),e,n,s);const o=function(t,e,i){if(t.isAbsolute)return new cm(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new cm(t,t===e.root,0)}const n=nm(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,r=i;for(;r>s;){if(r-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new cm(n,!1,s-r)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?lm(o.segmentGroup,o.index,r.commands):um(o.segmentGroup,o.index,r.commands);return rm(o.segmentGroup,a,e,n,s)}(a,this.currentUrlTree,t,u,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const i=wm(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(n,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Np(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){if(this.disposed)return Promise.resolve(!1);const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let c,u,l;s?(c=s.resolve,u=s.reject,l=s.promise):l=new Promise((t,e)=>{c=t,u=e});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const i=this.urlSerializer.serialize(t),n=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(i)||e.extras.replaceUrl?this.location.replaceState(i,"",n):this.location.go(i,"",n)}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const i=new Kp(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(gn(Qi),gn(Tg),gn(c_),gn(Jl),gn(yo),gn(Cl),gn(Xu),gn(void 0))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),m_=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new k,null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:y_(this.skipLocationChange),replaceUrl:y_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:y_(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Ho(g_),Ho($g),$i("tabindex"),Ho(ac),Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Jo("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[ue]}),t})(),__=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new k,this.subscription=t.events.subscribe(t=>{t instanceof Np&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:y_(this.skipLocationChange),replaceUrl:y_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:y_(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Ho(g_),Ho($g),Ho(Vl))},t.\u0275dir=Gt({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Jo("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(La("href",e.href,os),Lo("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[ue]}),t})();function y_(t){return""===t||!!t}let w_=(()=>{class t{constructor(t,e,i,n,s){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new gu,this.deactivateEvents=new gu,this.name=n||ng,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new b_(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Ho(c_),Ho(Nc),Ho(tc),$i("name"),Ho(Rc))},t.\u0275dir=Gt({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class b_{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===$g?this.route:t===c_?this.childContexts:this.parent.get(t,e)}}class v_{}class A_{preload(t,e){return Od(null)}}let k_=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new o_(e,i,e=>t.triggerEvent(new Jp(e)),e=>t.triggerEvent(new Zp(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(jd(t=>t instanceof Np),Bd(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Bc);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return B(i).pipe(K(),I(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?Od(e._loadedConfig):this.loader.load(t.injector,e)).pipe(j(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(gn(g_),gn(Cl),gn(Xu),gn(yo),gn(v_))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),T_=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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(t=>{t instanceof Yp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Np&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof ig&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new ig(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(gn(g_),gn(ed),gn(void 0))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const C_=new Ji("ROUTER_CONFIGURATION"),S_=new Ji("ROUTER_FORROOT_GUARD"),M_=[Jl,{provide:Tg,useClass:Cg},{provide:g_,useFactory:function(t,e,i,n,s,r,o,a={},c,u){const l=new g_(null,t,e,i,n,s,r,lg(o));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,l),a.enableTracing&&l.events.subscribe(t=>{var e,i;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),l},deps:[Tg,c_,Jl,yo,Cl,Xu,r_,C_,[class{},new bn],[class{},new bn]]},c_,{provide:$g,useFactory:function(t){return t.routerState.root},deps:[g_]},{provide:Cl,useClass:El},k_,A_,class{preload(t,e){return e().pipe(wp(()=>Od(null)))}},{provide:C_,useValue:{enableTracing:!1}}];function E_(){return new yl("Router",g_)}let x_=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[M_,L_(e),{provide:S_,useFactory:P_,deps:[[g_,new bn,new vn]]},{provide:C_,useValue:i||{}},{provide:Vl,useFactory:D_,deps:[Fl,[new wn($l),new bn],C_]},{provide:T_,useFactory:R_,deps:[g_,ed,C_]},{provide:v_,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:A_},{provide:yl,multi:!0,useFactory:E_},[z_,{provide:Iu,multi:!0,useFactory:I_,deps:[z_]},{provide:H_,useFactory:F_,deps:[z_]},{provide:Nu,multi:!0,useExisting:H_}]]}}static forChild(e){return{ngModule:t,providers:[L_(e)]}}}return t.\u0275fac=function(e){return new(e||t)(gn(S_,8),gn(g_,8))},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})();function R_(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new T_(t,e,i)}function D_(t,e,i={}){return i.useHash?new Gl(t,e):new Wl(t,e)}function P_(t){return"guarded"}function L_(t){return[{provide:Zi,multi:!0,useValue:t},{provide:r_,multi:!0,useValue:t}]}let z_=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new k}appInitializer(){return this.injector.get(Ol,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(g_),n=this.injector.get(C_);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?Od(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(C_),i=this.injector.get(k_),n=this.injector.get(T_),s=this.injector.get(g_),r=this.injector.get(kl);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),i.setUpPreloading(),n.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(gn(yo))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function I_(t){return t.appInitializer.bind(t)}function F_(t){return t.bootstrapListener.bind(t)}const H_=new Ji("Router Initializer"),O_=13,B_=27,j_=32,Y_=37,N_=38,K_=39,U_=40;function V_(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class q_ extends h{constructor(t,e){super()}schedule(t,e=0){return this}}class $_ extends q_{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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,n=!1;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let W_=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class G_ extends W_{constructor(t,e=W_.now){super(t,()=>G_.delegate&&G_.delegate!==this?G_.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return G_.delegate&&G_.delegate!==this?G_.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const J_=new G_($_);function Z_(t,e=J_){return i=>i.lift(new Q_(t,e))}class Q_{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new X_(t,this.dueTime,this.scheduler))}}class X_ extends p{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ty,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function ty(t){t.debouncedNext()}function ey(t){return null!=t&&"false"!=`${t}`}function iy(t,e=0){return ny(t)?Number(t):e}function ny(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function sy(t){return Array.isArray(t)?t:[t]}function ry(t){return null==t?"":"string"==typeof t?t:`${t}px`}function oy(t){return t instanceof sc?t.nativeElement:t}let ay;try{ay="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ZK){ay=!1}let cy,uy=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?"browser"===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&&!ay)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(gn(Yu))},t.\u0275prov=dt({factory:function(){return new t(gn(Yu))},token:t,providedIn:"root"}),t})(),ly=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})();const hy=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function dy(){if(cy)return cy;if("object"!=typeof document||!document)return cy=new Set(hy),cy;let t=document.createElement("input");return cy=new Set(hy.filter(e=>(t.setAttribute("type",e),t.type===e))),cy}let fy,py,gy,my;function _y(t){return function(){if(null==fy&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>fy=!0}))}finally{fy=fy||!1}return fy}()?t:!!t.capture}function yy(){if(null==gy){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return gy=!1,gy;if("scrollBehavior"in document.documentElement.style)gy=!0;else{const t=Element.prototype.scrollTo;gy=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return gy}function wy(){if("object"!=typeof document||!document)return 0;if(null==py){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),py=0,0===t.scrollLeft&&(t.scrollLeft=1,py=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return py}function by(t){if(function(){if(null==my){const t="undefined"!=typeof document?document.head:null;my=!(!t||!t.createShadowRoot&&!t.attachShadow)}return my}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function vy(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}let Ay=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),ky=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=oy(t);return new y(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new k,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(gn(Ay))},t.\u0275prov=dt({factory:function(){return new t(gn(Ay))},token:t,providedIn:"root"}),t})(),Ty=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new gu,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=ey(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=iy(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Z_(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ho(ky),Ho(sc),Ho(il))},t.\u0275dir=Gt({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Cy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[Ay]}),t})();function Sy(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const My="cdk-describedby-message-container",Ey="cdk-describedby-host";let xy=0;const Ry=new Map;let Dy=null,Py=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=Ly(e,i);"string"!=typeof e?(zy(e),Ry.set(n,{messageElement:e,referenceCount:0})):Ry.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=Ly(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=Ry.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}Dy&&0===Dy.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=Ry.get(e);!function(t,e,i){const n=Sy(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute(Ey,""),i.referenceCount++}_removeMessageReference(t,e){const i=Ry.get(e);i.referenceCount--,function(t,e,i){const n=Sy(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute(Ey)}_isElementDescribedByMessage(t,e){const i=Sy(t,"aria-describedby"),n=Ry.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(gn(Il))},t.\u0275prov=dt({factory:function(){return new t(gn(Il))},token:t,providedIn:"root"}),t})();function Ly(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function zy(t){t.id||(t.id="cdk-describedby-message-"+xy++)}class Iy{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new k,this._typeaheadSubscription=h.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new k,this.change=new k,t instanceof _u&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(zp(t=>this._pressedLetters.push(t)),Z_(t),jd(()=>this._pressedLetters.length>0),I(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case U_:if(this._vertical&&i){this.setNextItemActive();break}return;case N_:if(this._vertical&&i){this.setPreviousItemActive();break}return;case K_:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Y_:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||V_(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof _u?this._items.toArray():this._items}}class Fy extends Iy{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Hy extends Iy{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Oy=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(ZK){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===jy(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=jy(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||By(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(gn(uy))},t.\u0275prov=dt({factory:function(){return new t(gn(uy))},token:t,providedIn:"root"}),t})();function By(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function jy(t){if(!By(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Yy{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(dp(1)).subscribe(t)}}let Ny=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new Yy(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(gn(Oy),gn(il),gn(Il))},t.\u0275prov=dt({factory:function(){return new t(gn(Oy),gn(il),gn(Il))},token:t,providedIn:"root"}),t})(),Ky=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=ey(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=ey(t)}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(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=vy(),this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Ny),Ho(Il))},t.\u0275dir=Gt({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[ue]}),t})();"undefined"!=typeof Element&∈const Uy=new Ji("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Vy=new Ji("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let qy=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),i=this._document.createElement("div");for(let n=0;n{class t{constructor(t,e,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(qy),Ho(ky),Ho(il))},t.\u0275dir=Gt({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function Wy(t){return 0===t.buttons}function Gy(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const Jy=new Ji("cdk-focus-monitor-default-options"),Zy=_y({passive:!0,capture:!0});let Qy=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=Wy(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{Gy(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=Xy(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=Xy(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=oy(t);if(!this._platform.isBrowser||1!==i.nodeType)return Od(null);const n=by(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new k,rootNode:n};return this._elementInfo.set(i,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=oy(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=oy(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=Xy(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===Xy(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Zy),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Zy)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Zy),t.addEventListener("mousedown",this._documentMousedownListener,Zy),t.addEventListener("touchstart",this._documentTouchstartListener,Zy),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Zy),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Zy),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Zy),t.removeEventListener("mousedown",this._documentMousedownListener,Zy),t.removeEventListener("touchstart",this._documentTouchstartListener,Zy),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(gn(il),gn(uy),gn(Il,8),gn(Jy,8))},t.\u0275prov=dt({factory:function(){return new t(gn(il),gn(uy),gn(Il,8),gn(Jy,8))},token:t,providedIn:"root"}),t})();function Xy(t){return t.composedPath?t.composedPath()[0]:t.target}let tw=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new gu}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Qy))},t.\u0275dir=Gt({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const ew="cdk-high-contrast-black-on-white",iw="cdk-high-contrast-white-on-black",nw="cdk-high-contrast-active";let sw=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(nw),t.remove(ew),t.remove(iw),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(nw),t.add(ew)):2===e&&(t.add(nw),t.add(iw))}}}return t.\u0275fac=function(e){return new(e||t)(gn(uy),gn(Il))},t.\u0275prov=dt({factory:function(){return new t(gn(uy),gn(Il))},token:t,providedIn:"root"}),t})(),rw=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(gn(sw))},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[ly,Cy]]}),t})();const ow=new Ji("cdk-dir-doc",{providedIn:"root",factory:function(){return mn(Il)}});let aw=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new gu,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(gn(ow,8))},t.\u0275prov=dt({factory:function(){return new t(gn(ow,8))},token:t,providedIn:"root"}),t})(),cw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})();const uw=new lc("12.0.5");class lw{}const hw="*";function dw(t,e){return{type:7,name:t,definitions:e,options:{}}}function fw(t,e=null){return{type:4,styles:e,timings:t}}function pw(t,e=null){return{type:3,steps:t,options:e}}function gw(t,e=null){return{type:2,steps:t,options:e}}function mw(t){return{type:6,styles:t,offset:null}}function _w(t,e,i){return{type:0,name:t,styles:e,options:i}}function yw(t){return{type:5,steps:t}}function ww(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function bw(t=null){return{type:9,options:t}}function vw(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function Aw(t){Promise.resolve(null).then(t)}class kw{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Aw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Tw{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?Aw(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Cw(){return"undefined"!=typeof window&&void 0!==window.document}function Sw(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Mw(t){switch(t.length){case 0:return new kw;case 1:return t[0];default:return new Tw(t)}}function Ew(t,e,i,n,s={},r={}){const o=[],a=[];let c=-1,u=null;if(n.forEach(t=>{const i=t.offset,n=i==c,l=n&&u||{};Object.keys(t).forEach(i=>{let n=i,a=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),a){case"!":a=s[i];break;case hw:a=r[i];break;default:a=e.normalizeStyleValue(i,n,a,o)}l[n]=a}),n||a.push(l),u=l,c=i}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function xw(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&Rw(i,"start",t)));break;case"done":t.onDone(()=>n(i&&Rw(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&Rw(i,"destroy",t)))}}function Rw(t,e,i){const n=i.totalTime,s=Dw(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),r=t._data;return null!=r&&(s._data=r),s}function Dw(t,e,i,n,s="",r=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function Pw(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function Lw(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let zw=(t,e)=>!1,Iw=(t,e)=>!1,Fw=(t,e,i)=>[];const Hw=Sw();(Hw||"undefined"!=typeof Element)&&(zw=Cw()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),Iw=(()=>{if(Hw||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):Iw}})(),Fw=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let Vw=(()=>{class t{validateStyleProperty(t){return jw(t)}matchesElement(t,e){return Yw(t,e)}containsElement(t,e){return Nw(t,e)}query(t,e,i){return Kw(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,r=[],o){return new kw(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),qw=(()=>{class t{}return t.NOOP=new Vw,t})();const $w="ng-enter",Ww="ng-leave",Gw="ng-trigger",Jw=".ng-trigger",Zw="ng-animating",Qw=".ng-animating";function Xw(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:tb(parseFloat(e[1]),e[2])}function tb(t,e){switch(e){case"s":return 1e3*t;default:return t}}function eb(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,r="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=tb(parseFloat(i[1]),i[2]);const o=i[3];null!=o&&(s=tb(parseFloat(o),i[4]));const a=i[5];a&&(r=a)}else n=t;if(!i){let i=!1,r=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:r}}(t,e,i)}function ib(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function nb(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else ib(t,i);return i}function sb(t,e,i){return i?e+":"+i+";":""}function rb(t){let e="";for(let i=0;i{const s=pb(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),Sw()&&rb(t))}function ab(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=pb(e);t.style[i]=""}),Sw()&&rb(t))}function cb(t){return Array.isArray(t)?1==t.length?t[0]:gw(t):t}const ub=new RegExp("{{\\s*(.+?)\\s*}}","g");function lb(t){let e=[];if("string"==typeof t){let i;for(;i=ub.exec(t);)e.push(i[1]);ub.lastIndex=0}return e}function hb(t,e,i){const n=t.toString(),s=n.replace(ub,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function db(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const fb=/-+([a-z0-9])/g;function pb(t){return t.replace(fb,(...t)=>t[1].toUpperCase())}function gb(t,e){return 0===t||0===e}function mb(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let r=e[0],o=[];if(n.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=i[t]}),o.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],r=n[2],o=n[3];e.push(kb(s,o)),"<"!=r[0]||s==wb&&o==wb||e.push(kb(o,s))}(t,i,e)):i.push(t),i}const vb=new Set(["true","1"]),Ab=new Set(["false","0"]);function kb(t,e){const i=vb.has(t)||Ab.has(t),n=vb.has(e)||Ab.has(e);return(s,r)=>{let o=t==wb||t==s,a=e==wb||e==r;return!o&&i&&"boolean"==typeof s&&(o=s?vb.has(t):Ab.has(t)),!a&&n&&"boolean"==typeof r&&(a=r?vb.has(e):Ab.has(e)),o&&a}}const Tb=new RegExp("s*:selfs*,?","g");function Cb(t,e,i){return new Sb(t).build(e,i)}class Sb{constructor(t){this._driver=t}build(t,e){const i=new Mb(e);return this._resetContextStyleTimingState(i),_b(this,cb(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,r=n||{};if(i.styles.forEach(t=>{if(Eb(t)){const e=t;Object.keys(e).forEach(t=>{lb(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=db(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=_b(this,cb(t.animation),e);return{type:1,matchers:bb(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:xb(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>_b(this,t,e)),options:xb(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=_b(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:xb(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return Rb(eb(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Rb(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||eb(n,e),Rb(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:mw({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};i.easing&&(t.easing=i.easing),s=mw(t)}e.currentTime+=i.duration+i.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,n=o}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==hw?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(Eb(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[i];let a=!0;o&&(s!=n&&s>=o.startTime&&n<=o.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=o.startTime),a&&(r[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=lb(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let r=!1,o=!1,a=0;const c=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Eb(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Eb(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),u=0;return null!=c&&(n++,u=i.offset=c),o=o||u<0||u>1,r=r||u0&&n{const r=l>0?n==h?1:l*n:s[n],o=r*p;e.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(t,e),t.offset=r,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:_b(this,cb(t.animation),e),options:xb(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:xb(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:xb(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Tb,"")),[t=t.replace(/@\*/g,Jw).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,Qw),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Pw(e.collectedStyles,e.currentQuerySelector,{});const o=_b(this,cb(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:xb(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:eb(t.timings,e.errors,!0);return{type:12,animation:_b(this,cb(t.animation),e),timings:i,options:null}}}class Mb{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Eb(t){return!Array.isArray(t)&&"object"==typeof t}function xb(t){var e;return t?(t=ib(t)).params&&(t.params=(e=t.params)?ib(e):null):t={},t}function Rb(t,e,i){return{duration:t,delay:e,easing:i}}function Db(t,e,i,n,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Pb{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Lb=new RegExp(":enter","g"),zb=new RegExp(":leave","g");function Ib(t,e,i,n,s,r={},o={},a,c,u=[]){return(new Fb).buildKeyframes(t,e,i,n,s,r,o,a,c,u)}class Fb{buildKeyframes(t,e,i,n,s,r,o,a,c,u=[]){c=c||new Pb;const l=new Ob(t,e,c,n,s,u,[]);l.options=a,l.currentTimeline.setStyles([r],null,l.errors,a),_b(this,i,l);const h=l.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,l.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Db(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(i,n,n.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?Xw(i.duration):null,r=null!=i.delay?Xw(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,r);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),_b(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Hb);const t=Xw(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>_b(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Xw(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),_b(this,r,o),n=Math.max(n,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return eb(e.params?hb(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,r=e.createSubContext().currentTimeline;r.easing=i.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?Xw(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Hb);let r=i;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((i,n)=>{e.currentQueryIndex=n;const o=e.createSubContext(t.options,i);s&&o.delayNextStep(s),i===e.element&&(a=o.currentTimeline),_b(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=i.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const u=c.currentTime;_b(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}}const Hb={};class Ob{constructor(t,e,i,n,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Hb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Bb(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=Xw(i.duration)),null!=i.delay&&(n.delay=Xw(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=hb(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new Ob(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Hb,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new jb(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,r){let o=[];if(n&&o.push(this.element),t.length>0){t=(t=t.replace(Lb,"."+this._enterClassName)).replace(zb,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class Bb{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Bb(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||hw,this._currentKeyframe[t]=hw}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},r=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]=hw})):nb(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=hb(r[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:hw),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,r)=>{const o=nb(s,!0);Object.keys(o).forEach(i=>{const n=o[i];"!"==n?t.add(i):n==hw&&e.add(i)}),i||(o.offset=r/this.duration),n.push(o)});const s=t.size?db(t.values()):[],r=e.size?db(e.values()):[];if(i){const t=n[0],e=ib(t);t.offset=0,e.offset=1,n=[t,e]}return Db(this.element,n,s,r,this.duration,this.startTime,this.easing,!1)}}class jb extends Bb{constructor(t,e,i,n,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=i+e,o=e/r,a=nb(t[0],!1);a.offset=0,s.push(a);const c=nb(t[0],!1);c.offset=Yb(o),s.push(c);const u=t.length-1;for(let n=1;n<=u;n++){let o=nb(t[n],!1);o.offset=Yb((e+o.offset*i)/r),s.push(o)}i=r,e=0,n="",t=s}return Db(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function Yb(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class Nb{}class Kb extends Nb{normalizePropertyName(t,e){return pb(t)}normalizeStyleValue(t,e,i,n){let s="";const r=i.toString().trim();if(Ub[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return r+s}}const Ub=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Vb(t,e,i,n,s,r,o,a,c,u,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}const qb={};class $b{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],r=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):r}build(t,e,i,n,s,r,o,a,c,u){const l=[],h=this.ast.options&&this.ast.options.params||qb,d=this.buildStyles(i,o&&o.params||qb,l),f=a&&a.params||qb,p=this.buildStyles(n,f,l),g=new Set,m=new Map,_=new Map,y="void"===n,w={params:Object.assign(Object.assign({},h),f)},b=u?[]:Ib(t,e,this.ast.animation,s,r,d,p,w,c,l);let v=0;if(b.forEach(t=>{v=Math.max(t.duration+t.delay,v)}),l.length)return Vb(e,this._triggerName,i,n,y,d,p,[],[],m,_,v,l);b.forEach(t=>{const i=t.element,n=Pw(m,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=Pw(_,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&g.add(i)});const A=db(g.values());return Vb(e,this._triggerName,i,n,y,d,p,b,A,m,_,v)}}class Wb{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=ib(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=hb(r,n,e)),i[t]=r})}}),i}}class Gb{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Wb(t.style,t.options&&t.options.params||{})}),Jb(this.states,"true","1"),Jb(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new $b(t,e,this.states))}),this.fallbackTransition=new $b(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Jb(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Zb=new Pb;class Qb{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=Cb(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=Ew(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let r;const o=new Map;if(s?(r=Ib(this._driver,e,s,$w,Ww,{},{},i,Zb,n),r.forEach(t=>{const e=Pw(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),r=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,hw)})});const a=Mw(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=Dw(e,"","","");return xw(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const Xb="ng-animate-queued",tv="ng-animate-disabled",ev=".ng-animate-disabled",iv=[],nv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},sv={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class rv{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=ib(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const ov="void",av=new rv(ov);class cv{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,gv(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const r=Pw(this._elementListeners,t,[]),o={name:e,phase:i,callback:n};r.push(o);const a=Pw(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(gv(t,Gw),gv(t,"ng-trigger-"+e),a[e]=av),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),r=new lv(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(gv(t,Gw),gv(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const c=new rv(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[e]=c,a||(a=av),c.value!==ov&&a.value===c.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{ab(t,i),ob(t,n)})}return}const u=Pw(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let l=s.matchTransition(a.value,c.value,t,c.params),h=!1;if(!l){if(!n)return;l=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:l,fromState:a,toState:c,player:r,isFallbackTransition:h}),h||(gv(t,Xb),r.onStart(()=>{mv(t,Xb)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(r);t>=0&&i.splice(t,1)}}),this.players.push(r),u.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Jw,!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,ov,n);i&&r.push(i)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&Mw(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const r=this._triggers[s].fallbackTransition,o=i[s]||av,a=new rv(ov),c=new lv(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==nv||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){gv(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==i.triggerName){const n=Dw(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,xw(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class uv{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new cv(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),gv(t,tv)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),mv(t,tv))}removeNode(t,e,i,n){if(hv(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return hv(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Jw,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Qw,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Mw(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=nv,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,ev)&&this.markElementAsDisabled(t,!1),this.driver.query(t,ev,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Mw(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new Pb,n=[],s=new Map,r=[],o=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i=$w+p++;f.set(e,i),t.forEach(t=>gv(t,i))});const g=[],m=new Set,_=new Set;for(let R=0;Rm.add(t)):_.add(t))}const y=new Map,w=pv(h,Array.from(m));w.forEach((t,e)=>{const i=Ww+p++;y.set(e,i),t.forEach(t=>gv(t,i))}),t.push(()=>{d.forEach((t,e)=>{const i=f.get(e);t.forEach(t=>mv(t,i))}),w.forEach((t,e)=>{const i=y.get(e);t.forEach(t=>mv(t,i))}),g.forEach(t=>{this.processLeaveNode(t)})});const b=[],v=[];for(let R=this._namespaceList.length-1;R>=0;R--)this._namespaceList[R].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(b.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const u=!l||!this.driver.containsElement(l,s),h=y.get(s),d=f.get(s),p=this._buildInstruction(t,i,d,h,u);if(p.errors&&p.errors.length)v.push(p);else{if(u)return e.onStart(()=>ab(s,p.fromStyles)),e.onDestroy(()=>ob(s,p.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>ab(s,p.fromStyles)),e.onDestroy(()=>ob(s,p.toStyles)),void n.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,p.timelines),r.push({instruction:p,player:e,element:s}),p.queriedElements.forEach(t=>Pw(o,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=a.get(e);t||a.set(e,t=new Set),i.forEach(e=>t.add(e))}}),p.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=c.get(e);n||c.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(v.length){const t=[];v.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const A=new Map,k=new Map;r.forEach(t=>{const e=t.element;i.has(e)&&(k.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,A))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Pw(A,e,[]).push(t),t.destroy()})});const T=g.filter(t=>wv(t,a,c)),C=new Map;fv(C,this.driver,_,c,hw).forEach(t=>{wv(t,a,c)&&T.push(t)});const S=new Map;d.forEach((t,e)=>{fv(S,this.driver,new Set(t),a,"!")}),T.forEach(t=>{const e=C.get(t),i=S.get(t);C.set(t,Object.assign(Object.assign({},e),i))});const M=[],E=[],x={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(i.has(e)){if(u.has(e))return r.onDestroy(()=>ob(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void n.push(r);let t=x;if(k.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=k.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>k.set(e,t))}const i=this._buildAnimation(r.namespaceId,o,A,s,S,C);if(r.setRealPlayer(i),t===x)M.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Mw(e)),n.push(r)}}else ab(e,o.fromStyles),r.onDestroy(()=>ob(e,o.toStyles)),E.push(r),u.has(e)&&n.push(r)}),E.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=Mw(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let R=0;R!t.destroyed);n.length?_v(this,t,n):this.processLeaveNode(t)}return g.length=0,M.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),M}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==ov;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&r.push(e)})}}return(i||n)&&(r=r.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),r}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==n,c=Pw(i,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}ab(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,r){const o=e.triggerName,a=e.element,c=[],u=new Set,l=new Set,h=e.timelines.map(e=>{const h=e.element;u.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new kw(e.duration,e.delay);const f=h!==a,p=function(t){const e=[];return yv(t,e),e}((i.get(h)||iv).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=s.get(h),m=r.get(h),_=Ew(0,this._normalizer,0,e.keyframes,g,m),y=this._buildPlayer(e,_,p);if(e.subTimeline&&n&&l.add(h),f){const e=new lv(t,o,h);e.setRealPlayer(y),c.push(e)}return y});c.forEach(t=>{Pw(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),u.forEach(t=>gv(t,Zw));const d=Mw(h);return d.onDestroy(()=>{u.forEach(t=>mv(t,Zw)),ob(a,e.toStyles)}),l.forEach(t=>{Pw(n,t,[]).push(d)}),d}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new kw(t.duration,t.delay)}}class lv{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new kw,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>xw(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Pw(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function hv(t){return t&&1===t.nodeType}function dv(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function fv(t,e,i,n,s){const r=[];i.forEach(t=>r.push(dv(t)));const o=[];n.forEach((i,n)=>{const r={};i.forEach(t=>{const i=r[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=sv,o.push(n))}),t.set(n,r)});let a=0;return i.forEach(t=>dv(t,r[a++])),o}function pv(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=i.has(o)?o:n.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&i.get(e).push(t)}),i}function gv(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function mv(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function _v(t,e,i){Mw(i).onDone(()=>t.processLeaveNode(e))}function yv(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class bv{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new uv(t,e,i),this._timelineEngine=new Qb(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const r=t+"-"+n;let o=this._triggerCache[r];if(!o){const t=[],e=Cb(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new Gb(t,e)}(n,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,n,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=Lw(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=Lw(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function vv(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=kv(e[0]),e.length>1&&(n=kv(e[e.length-1]))):e&&(i=kv(e)),i||n?new Av(t,i,n):null}let Av=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ob(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ob(this._element,this._initialStyles),this._endStyles&&(ob(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ab(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ab(this._element,this._endStyles),this._endStyles=null),ob(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function kv(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=Lv(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Dv(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=Lv(t,"").split(","),n=Rv(i,e);n>=0&&(i.splice(n,1),Pv(t,"",i.join(",")))}(this._element,this._name))}}function Ev(t,e,i){Pv(t,"PlayState",i,xv(t,e))}function xv(t,e){const i=Lv(t,"");return i.indexOf(",")>0?Rv(i.split(","),e):Rv([i],e)}function Rv(t,e){for(let i=0;i=0)return i;return-1}function Dv(t,e,i){i?t.removeEventListener(Sv,e):t.addEventListener(Sv,e)}function Pv(t,e,i,n){const s=Cv+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function Lv(t,e){return t.style[Cv+e]||""}class zv{constructor(t,e,i,n,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Mv(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:yb(this.element,i))})}this.currentSnapshot=t}}class Iv extends kw{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Uw(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Fv{constructor(){this._count=0}validateStyleProperty(t){return jw(t)}matchesElement(t,e){return Yw(t,e)}containsElement(t,e){return Nw(t,e)}query(t,e,i){return Kw(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>Uw(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const r=document.createElement("style");return r.textContent=n,r}animate(t,e,i,n,s,r=[],o){const a=r.filter(t=>t instanceof zv),c={};gb(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=mb(t,e,c));if(0==i)return new Iv(t,u);const l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);(function(t){var e;const i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(h);const d=vv(t,e),f=new zv(t,e,l,i,n,s,u,d);return f.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),f}}class Hv{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:yb(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Ov{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Bv().toString()),this._cssKeyframesDriver=new Fv}validateStyleProperty(t){return jw(t)}matchesElement(t,e){return Yw(t,e)}containsElement(t,e){return Nw(t,e)}query(t,e,i){return Kw(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,r);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const c={},u=r.filter(t=>t instanceof Hv);gb(i,n)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=vv(t,e=mb(t,e=e.map(t=>nb(t,!1)),c));return new Hv(t,e,a,l)}}function Bv(){return Cw()&&Element.prototype.animate||{}}let jv=(()=>{class t extends lw{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:Mt.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?gw(t):t;return Kv(this._renderer,null,e,"register",[i]),new Yv(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(gn(oc),gn(Il))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class Yv extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Nv(this._id,t,e||{},this._renderer)}}class Nv{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Kv(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Kv(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}const Uv="@",Vv="@.disabled";let qv=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new $v("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(r),new Wv(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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 t.\u0275fac=function(e){return new(e||t)(gn(oc),gn(bv),gn(il))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class $v{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==Uv&&e==Vv?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Wv extends $v{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==Uv?"."==e.charAt(1)&&e==Vv?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==Uv){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return s.charAt(0)!=Uv&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let Gv=(()=>{class t extends bv{constructor(t,e,i){super(t.body,e,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(gn(Il),gn(qw),gn(Nb))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Jv=new Ji("AnimationModuleType"),Zv=[{provide:lw,useClass:jv},{provide:Nb,useFactory:function(){return new Kb}},{provide:bv,useClass:Gv},{provide:oc,useFactory:function(t,e,i){return new qv(t,e,i)},deps:[Ad,bv,il]}],Qv=[{provide:qw,useFactory:function(){return"function"==typeof Bv()?new Ov:new Fv}},{provide:Jv,useValue:"BrowserAnimations"},...Zv],Xv=[{provide:qw,useClass:Vw},{provide:Jv,useValue:"NoopAnimations"},...Zv];let tA=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Xv:Qv}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:Qv,imports:[Hd]}),t})();function eA(t,e){if(1&t&&No(0,"mat-pseudo-checkbox",4),2&t){const t=ea();Oo("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function iA(t,e){if(1&t&&(jo(0,"span",5),Ma(1),Yo()),2&t){const t=ea();rr(1),xa("(",t.group.label,")")}}const nA=["*"];let sA=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),rA=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const oA=new lc("12.0.5"),aA=new Ji("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let cA=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return ml()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&oA.full!==uw.full&&console.warn("The Angular Material version ("+oA.full+") does not match the Angular CDK version ("+uw.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(gn(sw),gn(aA,8),gn(Il))},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[cw],cw]}),t})();function uA(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=ey(t)}}}function lA(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function hA(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ey(t)}}}function dA(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?iy(t):this.defaultTabIndex}}}function fA(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new k}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function pA(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new y(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const gA=new Ji("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return mn(Uu)}});class mA{constructor(){this._localeChanges=new k,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const _A=new Ji("mat-date-formats");let yA;try{yA="undefined"!=typeof Intl}catch(ZK){yA=!1}const wA={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},bA=kA(31,t=>String(t+1)),vA={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},AA=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function kA(t,e){const i=Array(t);for(let n=0;n{class t extends mA{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(yA){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return kA(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return wA[t]}getDateNames(){if(yA){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return kA(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return bA}getDayOfWeekNames(t){if(yA){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return kA(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return vA[t]}getYearName(t){if(yA){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(yA){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(AA.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(gn(gA,8),gn(uy))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),CA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[{provide:mA,useClass:TA}],imports:[[ly]]}),t})();const SA={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 MA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[{provide:_A,useValue:SA}],imports:[[CA]]}),t})(),EA=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),xA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function RA(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let DA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[cA],cA]}),t})();class PA{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const LA={enterDuration:450,exitDuration:400},zA=_y({passive:!0}),IA=["mousedown","touchstart"],FA=["mouseup","mouseleave","touchend","touchcancel"];class HA{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=oy(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},LA),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const r=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),o=t-n.left,a=e-n.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=o-r+"px",u.style.top=a-r+"px",u.style.height=2*r+"px",u.style.width=2*r+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";const l=new PA(this,u,i);return l.state=0,this._activeRipples.add(l),i.persistent||(this._mostRecentTransientRipple=l),this._runTimeoutOutsideZone(()=>{const t=l===this._mostRecentTransientRipple;l.state=1,i.persistent||t&&this._isPointerDown||l.fadeOut()},c),l}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},LA),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=oy(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(IA))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(FA),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Wy(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,zA)})})}_removeTriggerEvents(){this._triggerElement&&(IA.forEach(t=>{this._triggerElement.removeEventListener(t,this,zA)}),this._pointerUpEventsRegistered&&FA.forEach(t=>{this._triggerElement.removeEventListener(t,this,zA)}))}}const OA=new Ji("mat-ripple-global-options");let BA=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new HA(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(il),Ho(uy),Ho(OA,8),Ho(Jv,8))},t.\u0275dir=Gt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&pa("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),jA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[cA,ly],cA]}),t})(),YA=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(Ho(Jv,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&pa("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),NA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[cA]]}),t})();const KA=new Ji("MAT_OPTION_PARENT_COMPONENT");class UA{}const VA=uA(UA);let qA=0,$A=(()=>{class t extends VA{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+qA++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(Ho(KA,8))},t.\u0275dir=Gt({type:t,inputs:{label:"label"},features:[bo]}),t})();const WA=new Ji("MatOptgroup");let GA=0;class JA{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let ZA=(()=>{class t{constructor(t,e,i,n){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+GA++,this.onSelectionChange=new gu,this._stateChanges=new k}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(t){this._disabled=ey(t)}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(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==O_&&t.keyCode!==j_||V_(t)||(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new JA(this,t))}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(void 0),Ho($A))},t.\u0275dir=Gt({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),QA=(()=>{class t extends ZA{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(KA,8),Ho(WA,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&Jo("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(La("id",e.id),Lo("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),pa("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[bo],ngContentSelectors:nA,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(t,e){1&t&&(na(),Io(0,eA,1,2,"mat-pseudo-checkbox",0),jo(1,"span",1),sa(2),Yo(),Io(3,iA,2,1,"span",2),No(4,"div",3)),2&t&&(Oo("ngIf",e.multiple),rr(3),Oo("ngIf",e.group&&e.group._inert),rr(1),Oo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[Oh,BA,YA],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function XA(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),r=0;for(let e=0;e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[jA,td,cA,NA]]}),t})();const ek=["mat-button",""],ik=["*"],nk=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class sk{constructor(t){this._elementRef=t}}const rk=lA(uA(hA(sk)));let ok=(()=>{class t extends rk{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of nk)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.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(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Qy),Ho(Jv,8))},t.\u0275cmp=Kt({type:t,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(t,e){if(1&t&&Eu(BA,5),2&t){let t;Mu(t=Ru())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(Lo("disabled",e.disabled||null),pa("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[bo],attrs:ek,ngContentSelectors:ik,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(t,e){1&t&&(na(),jo(0,"span",0),sa(1),Yo(),No(2,"span",1),No(3,"span",2)),2&t&&(rr(2),pa("mat-button-ripple-round",e.isRoundButton||e.isIconButton),Oo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[BA],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),ak=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[jA,cA],cA]}),t})();function ck(t,e,i,s){return n(i)&&(s=i,i=void 0),s?ck(t,e,i).pipe(I(t=>c(t)?s(...t):s(t))):new y(n=>{uk(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function uk(t,e,i,n,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),r=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),r=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),r=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}class hk extends G_{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),gk={};function mk(t){return t in gk&&(delete gk[t],!0)}const _k={setImmediate(t){const e=fk++;return gk[e]=!0,pk.then(()=>mk(e)&&t()),e},clearImmediate(t){mk(t)}};class yk extends $_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=_k.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(_k.clearImmediate(e),t.scheduled=void 0)}}class wk extends G_{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++ni.lift(new kk(t,e))}class kk{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Tk(t,this.compare,this.keySelector))}}class Tk extends p{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}class Ck{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Sk(t,this.durationSelector))}}class Sk extends z{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=L(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Mk(t){return!c(t)&&t-parseFloat(t)+1>=0}function Ek(t=0,e,i){let n=-1;return Mk(e)?n=Number(e)<1?1:Number(e):C(e)&&(i=e),C(i)||(i=J_),new y(e=>{const s=Mk(t)?t:+t-i.now();return i.schedule(xk,s,{index:0,period:n,subscriber:e})})}function xk(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function Rk(t,e=J_){return i=()=>Ek(t,e),function(t){return t.lift(new Ck(i))};var i}function Dk(t){return e=>e.lift(new Pk(t))}class Pk{constructor(t){this.notifier=t}call(t,e){const i=new Lk(t),n=L(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class Lk extends z{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}class zk extends $_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class Ik extends G_{}const Fk=new Ik(zk);function Hk(t,e){return new y(e?i=>e.schedule(Ok,0,{error:t,subscriber:i}):e=>e.error(t))}function Ok({error:t,subscriber:e}){e.error(t)}let Bk=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Od(this.value);case"E":return Hk(this.error);case"C":return op()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class jk extends p{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(jk.dispatch,this.delay,new Yk(t,this.destination)))}_next(t){this.scheduleMessage(Bk.createNext(t))}_error(t){this.scheduleMessage(Bk.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Bk.createComplete()),this.unsubscribe()}}class Yk{constructor(t,e){this.notification=t,this.destination=e}}class Nk extends k{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new Kk(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let r;if(this.closed)throw new b;if(this.isStopped||this.hasError?r=h.EMPTY:(this.observers.push(t),r=new v(this,t)),n&&t.add(t=new jk(t,n)),e)for(let o=0;oe&&(r=Math.max(r,s-e)),r>0&&n.splice(0,r),n}}class Kk{constructor(t,e){this.time=t,this.value=e}}function Uk(t,e,i){let n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:n}){let s,r,o=0,a=!1,c=!1;return function(u){o++,s&&!a||(a=!1,s=new Nk(t,e,n),r=u.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){c=!0,r=void 0,s.complete()}}));const l=s.subscribe(this);this.add(()=>{o--,l.unsubscribe(),r&&!c&&i&&0===o&&(r.unsubscribe(),r=void 0,s=void 0)})}}(n))}function Vk(t){return t&&"function"==typeof t.connect}class qk{applyChanges(t,e,i,n,s){t.forEachOperation((t,n,r)=>{let o,a;if(null==t.previousIndex){const s=i(t,n,r);o=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==r?(e.remove(n),a=3):(o=e.get(n),e.move(o,r),a=2);s&&s({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class $k{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new k,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let Wk=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Gk=new Ji("_ViewRepeater");let Jk=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new k,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new y(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(Rk(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Od()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(jd(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=oy(e),n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ck(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(gn(il),gn(uy),gn(Il,8))},t.\u0275prov=dt({factory:function(){return new t(gn(il),gn(uy),gn(Il,8))},token:t,providedIn:"root"}),t})(),Zk=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new k,this._elementScrolled=new y(t=>this.ngZone.runOutsideAngular(()=>ck(this.elementRef.nativeElement,"scroll").pipe(Dk(this._destroyed)).subscribe(t)))}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(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=wy()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==wy()?t.left=t.right:1==wy()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;yy()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e="left",i="right",n=this.elementRef.nativeElement;if("top"==t)return n.scrollTop;if("bottom"==t)return n.scrollHeight-n.clientHeight-n.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==t?t=s?i:e:"end"==t&&(t=s?e:i),s&&2==wy()?t==e?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:s&&1==wy()?t==e?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:t==e?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Jk),Ho(il),Ho(aw,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),Qk=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new k,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Rk(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(gn(uy),gn(il),gn(Il,8))},t.\u0275prov=dt({factory:function(){return new t(gn(uy),gn(il),gn(Il,8))},token:t,providedIn:"root"}),t})(),Xk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})(),tT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[cw,ly,Xk],cw,Xk]}),t})();class eT{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class iT extends eT{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class nT extends eT{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class sT extends eT{constructor(t){super(),this.element=t instanceof sc?t.nativeElement:t}}class rT{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof iT?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof nT?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof sT?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class oT extends rT{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let aT=(()=>{class t extends nT{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic),Ho(Nc))},t.\u0275dir=Gt({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[bo]}),t})(),cT=(()=>{class t extends rT{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new gu,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(Ho(tc),Ho(Nc),Ho(Il))},t.\u0275dir=Gt({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[bo]}),t})(),uT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})();class lT{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new hT(t,this.predicate,this.inclusive))}}class hT extends p{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const dT=yy();class fT{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=ry(-this._previousScrollPosition.left),t.style.top=ry(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),dT&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),dT&&(e.scrollBehavior=n,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class pT{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class gT{enable(){}disable(){}attach(){}}function mT(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function _T(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class yT{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();mT(t,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let wT=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new gT,this.close=t=>new pT(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new fT(this._viewportRuler,this._document),this.reposition=t=>new yT(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(gn(Jk),gn(Qk),gn(il),gn(Il))},t.\u0275prov=dt({factory:function(){return new t(gn(Jk),gn(Qk),gn(il),gn(Il))},token:t,providedIn:"root"}),t})();class bT{constructor(t){if(this.scrollStrategy=new gT,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class vT{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class AT{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let kT=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(gn(Il))},t.\u0275prov=dt({factory:function(){return new t(gn(Il))},token:t,providedIn:"root"}),t})(),TT=(()=>{class t extends kT{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(gn(Il))},t.\u0275prov=dt({factory:function(){return new t(gn(Il))},token:t,providedIn:"root"}),t})(),CT=(()=>{class t extends kT{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(gn(Il),gn(uy))},t.\u0275prov=dt({factory:function(){return new t(gn(Il),gn(uy))},token:t,providedIn:"root"}),t})();const ST="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha;let MT=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||ST){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new k,this._outsidePointerEvents=new k,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(dp(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=ry(this._config.width),t.height=ry(this._config.height),t.minWidth=ry(this._config.minWidth),t.minHeight=ry(this._config.minHeight),t.maxWidth=ry(this._config.maxWidth),t.maxHeight=ry(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;sy(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Dk(V(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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const xT="cdk-overlay-connected-position-bounding-box",RT=/([A-Za-z%]+)$/;class DT{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,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 k,this._resizeSubscription=h.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(xT),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),c=this._getOverlayFit(a,e,i,r);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(c,a,i)?n.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&PT(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(xT),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){const s=zT(e);let{x:r,y:o}=t,a=this._getOffset(n,"x"),c=this._getOffset(n,"y");a&&(r+=a),c&&(o+=c);let u=0-o,l=o+s.height-i.height,h=this._subtractOverflows(s.width,0-r,r+s.width-i.width),d=this._subtractOverflows(s.height,u,l),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:s.width*s.height===f,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,r=LT(this._overlayRef.getConfig().minHeight),o=LT(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=zT(e),s=this._viewportRect,r=Math.max(t.x+n.width-s.width,0),o=Math.max(t.y+n.height-s.height,0),a=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,l=0;return u=n.width<=s.width?c||-r:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)u=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-n/2)}return{top:r,left:c,bottom:o,right:u,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=ry(i.height),n.top=ry(i.top),n.bottom=ry(i.bottom),n.width=ry(i.width),n.left=ry(i.left),n.right=ry(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=ry(t)),s&&(n.maxWidth=ry(s))}this._lastBoundingBoxSize=i,PT(this._boundingBox.style,n)}_resetBoundingBoxStyles(){PT(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){PT(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();PT(i,this._getExactOverlayY(e,t,n)),PT(i,this._getExactOverlayX(e,t,n))}else i.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),i.transform=o.trim(),r.maxHeight&&(n?i.maxHeight=ry(r.maxHeight):s&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=ry(r.maxWidth):s&&(i.maxWidth="")),PT(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=ry(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=ry(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:_T(t,i),isOriginOutsideView:mT(t,i),isOverlayClipped:_T(e,i),isOverlayOutsideView:mT(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&sy(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof sc)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function PT(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function LT(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(RT);return i&&"px"!==i?null:parseFloat(e)}return t||null}function zT(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class IT{constructor(t,e,i,n,s,r,o){this._preferredPositions=[],this._positionStrategy=new DT(i,n,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new vT(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const FT="cdk-global-overlay-wrapper";class HT{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(FT),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:r,maxHeight:o}=i,a=!("100%"!==n&&"100vw"!==n||r&&"100%"!==r&&"100vw"!==r),c=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(FT),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let OT=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new HT}connectedTo(t,e,i){return new IT(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new DT(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(gn(Qk),gn(Il),gn(uy),gn(MT))},t.\u0275prov=dt({factory:function(){return new t(gn(Qk),gn(Il),gn(uy),gn(MT))},token:t,providedIn:"root"}),t})(),BT=0,jT=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=c,this._location=u,this._outsideClickDispatcher=l}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new bT(t);return s.direction=s.direction||this._directionality.value,new ET(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+BT++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(kl)),new oT(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(gn(wT),gn(MT),gn(tc),gn(OT),gn(TT),gn(yo),gn(il),gn(Il),gn(aw),gn(Jl),gn(CT))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const YT=[{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"}],NT=new Ji("cdk-connected-overlay-scroll-strategy");let KT=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),UT=(()=>{class t{constructor(t,e,i,n,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.EMPTY,this._attachSubscription=h.EMPTY,this._detachSubscription=h.EMPTY,this._positionSubscription=h.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new gu,this.positionChange=new gu,this.attach=new gu,this.detach=new gu,this.overlayKeydown=new gu,this.overlayOutsideClick=new gu,this._templatePortal=new nT(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=ey(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=ey(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=ey(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=ey(t)}get push(){return this._push}set push(t){this._push=ey(t)}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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=YT);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==B_||this.disableClose||V_(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new bT({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return i=>i.lift(new lT(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ho(jT),Ho(Ic),Ho(Nc),Ho(NT),Ho(aw,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[ue]}),t})();const VT={provide:NT,deps:[jT],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let qT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[jT,VT],imports:[[cw,uT,tT],tT]}),t})();const $T=["underline"],WT=["connectionContainer"],GT=["inputContainer"],JT=["label"];function ZT(t,e){1&t&&(Ko(0),jo(1,"div",14),No(2,"div",15),No(3,"div",16),No(4,"div",17),Yo(),jo(5,"div",18),No(6,"div",15),No(7,"div",16),No(8,"div",17),Yo(),Uo())}function QT(t,e){1&t&&(jo(0,"div",19),sa(1,1),Yo())}function XT(t,e){if(1&t&&(Ko(0),sa(1,2),jo(2,"span"),Ma(3),Yo(),Uo()),2&t){const t=ea(2);rr(3),Ea(t._control.placeholder)}}function tC(t,e){1&t&&sa(0,3,["*ngSwitchCase","true"])}function eC(t,e){1&t&&(jo(0,"span",23),Ma(1," *"),Yo())}function iC(t,e){if(1&t){const t=qo();jo(0,"label",20,21),Jo("cdkObserveContent",function(){return ze(t),ea().updateOutlineGap()}),Io(2,XT,4,1,"ng-container",12),Io(3,tC,1,0,"ng-content",12),Io(4,eC,2,0,"span",22),Yo()}if(2&t){const t=ea();pa("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),Oo("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),Lo("for",t._control.id)("aria-owns",t._control.id),rr(2),Oo("ngSwitchCase",!1),rr(1),Oo("ngSwitchCase",!0),rr(1),Oo("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function nC(t,e){1&t&&(jo(0,"div",24),sa(1,4),Yo())}function sC(t,e){if(1&t&&(jo(0,"div",25,26),No(2,"span",27),Yo()),2&t){const t=ea();rr(2),pa("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function rC(t,e){1&t&&(jo(0,"div"),sa(1,5),Yo()),2&t&&Oo("@transitionMessages",ea()._subscriptAnimationState)}function oC(t,e){if(1&t&&(jo(0,"div",31),Ma(1),Yo()),2&t){const t=ea(2);Oo("id",t._hintLabelId),rr(1),Ea(t.hintLabel)}}function aC(t,e){if(1&t&&(jo(0,"div",28),Io(1,oC,2,2,"div",29),sa(2,6),No(3,"div",30),sa(4,7),Yo()),2&t){const t=ea();Oo("@transitionMessages",t._subscriptAnimationState),rr(1),Oo("ngIf",t.hintLabel)}}const cC=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],uC=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let lC=0;const hC=new Ji("MatError");let dC=(()=>{class t{constructor(t,e){this.id="mat-error-"+lC++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)($i("aria-live"),Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&Lo("id",e.id)},inputs:{id:"id"},features:[Za([{provide:hC,useExisting:t}])]}),t})();const fC={transitionMessages:dw("transitionMessages",[_w("enter",mw({opacity:1,transform:"translateY(0%)"})),ww("void => enter",[mw({opacity:0,transform:"translateY(-5px)"}),fw("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let pC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t}),t})(),gC=0;const mC=new Ji("MatHint");let _C=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+gC++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(Lo("id",e.id)("align",null),pa("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[Za([{provide:mC,useExisting:t}])]}),t})(),yC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-label"]]}),t})(),wC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-placeholder"]]}),t})();const bC=new Ji("MatPrefix"),vC=new Ji("MatSuffix");let AC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","matSuffix",""]],features:[Za([{provide:vC,useExisting:t}])]}),t})(),kC=0;class TC{constructor(t){this._elementRef=t}}const CC=lA(TC,"primary"),SC=new Ji("MAT_FORM_FIELD_DEFAULT_OPTIONS"),MC=new Ji("MatFormField");let EC=(()=>{class t extends CC{constructor(t,e,i,n,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new k,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+kC++,this._labelId="mat-form-field-label-"+kC++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=ey(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(gp(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Dk(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Dk(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),V(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(gp(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(gp(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Dk(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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_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,ck(this._label.nativeElement,"transitionend").pipe(dp(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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),r=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[td,cA,Cy],cA]}),t})();function RC(...t){if(1===t.length){const e=t[0];if(c(e))return DC(e,null);if(u(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return DC(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return DC(t=1===t.length&&c(t[0])?t[0]:t,null).pipe(I(t=>e(...t)))}return DC(t,null)}function DC(t,e){return new y(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let r=0,o=0;for(let a=0;a{u||(u=!0,o++),s[a]=t},error:t=>i.error(t),complete:()=>{r++,r!==n&&u||(o===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}let PC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(ac),Ho(sc))},t.\u0275dir=Gt({type:t}),t})(),LC=(()=>{class t extends PC{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,features:[bo]}),t})();const zC=new Ji("NgValueAccessor"),IC={provide:zC,useExisting:rt(()=>HC),multi:!0},FC=new Ji("CompositionEventMode");let HC=(()=>{class t extends PC{constructor(t,e,i){super(t,e),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=zl()?zl().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(ac),Ho(sc),Ho(FC,8))},t.\u0275dir=Gt({type:t,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(t,e){1&t&&Jo("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[Za([IC]),bo]}),t})();function OC(t){return null==t||0===t.length}function BC(t){return null!=t&&"number"==typeof t.length}const jC=new Ji("NgValidators"),YC=new Ji("NgAsyncValidators"),NC=/^(?=.{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 KC{static min(t){return function(t){return e=>{if(OC(e.value)||OC(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(OC(e.value)||OC(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return UC(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return OC(t.value)||NC.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>OC(e.value)||!BC(e.value)?null:e.value.lengthBC(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return VC;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(OC(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}(t)}static nullValidator(t){return null}static compose(t){return ZC(t)}static composeAsync(t){return XC(t)}}function UC(t){return OC(t.value)?{required:!0}:null}function VC(t){return null}function qC(t){return null!=t}function $C(t){const e=$o(t)?B(t):t;return Go(e),e}function WC(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function GC(t,e){return e.map(e=>e(t))}function JC(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function ZC(t){if(!t)return null;const e=t.filter(qC);return 0==e.length?null:function(t){return WC(GC(t,e))}}function QC(t){return null!=t?ZC(JC(t)):null}function XC(t){if(!t)return null;const e=t.filter(qC);return 0==e.length?null:function(t){return RC(GC(t,e).map($C)).pipe(I(WC))}}function tS(t){return null!=t?XC(JC(t)):null}function eS(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function iS(t){return t._rawValidators}function nS(t){return t._rawAsyncValidators}let sS=(()=>{class t{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(t){this._rawValidators=t||[],this._composedValidatorFn=QC(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=tS(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t}),t})(),rS=(()=>{class t extends sS{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,features:[bo]}),t})();class oS extends sS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class aS{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let cS=(()=>{class t extends aS{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(oS,2))},t.\u0275dir=Gt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&pa("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[bo]}),t})(),uS=(()=>{class t extends aS{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(rS,10))},t.\u0275dir=Gt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&pa("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[bo]}),t})();function lS(t,e){return[...e.path,t]}function hS(t,e){pS(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&mS(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&mS(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function dS(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),gS(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function fS(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function pS(t,e){const i=iS(t);null!==e.validator?t.setValidators(eS(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const n=nS(t);null!==e.asyncValidator?t.setAsyncValidators(eS(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const s=()=>t.updateValueAndValidity();fS(e._rawValidators,s),fS(e._rawAsyncValidators,s)}function gS(t,e){let i=!1;if(null!==t){if(null!==e.validator){const n=iS(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=nS(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}const n=()=>{};return fS(e._rawValidators,n),fS(e._rawAsyncValidators,n),i}function mS(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function _S(t,e){pS(t,e)}function yS(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function wS(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function bS(t,e){if(!e)return null;let i,n,s;return Array.isArray(e),e.forEach(t=>{t.constructor===HC?i=t:Object.getPrototypeOf(t.constructor)===LC?n=t:s=t}),s||n||i||null}function vS(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const AS="VALID",kS="INVALID",TS="PENDING",CS="DISABLED";function SS(t){return(RS(t)?t.validators:t)||null}function MS(t){return Array.isArray(t)?QC(t):t||null}function ES(t,e){return(RS(e)?e.asyncValidators:t)||null}function xS(t){return Array.isArray(t)?tS(t):t||null}function RS(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class DS{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=MS(this._rawValidators),this._composedAsyncValidatorFn=xS(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===AS}get invalid(){return this.status===kS}get pending(){return this.status==TS}get disabled(){return this.status===CS}get enabled(){return this.status!==CS}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=MS(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=xS(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=TS,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=CS,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=AS,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==AS&&this.status!==TS||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?CS:AS}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=TS,this._hasOwnPendingAsyncValidator=!0;const e=$C(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof LS?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof zS&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new gu,this.statusChanges=new gu}_calculateStatus(){return this._allControlsDisabled()?CS:this.errors?kS:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(TS)?TS:this._anyControlsHaveStatus(kS)?kS:AS}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){RS(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class PS extends DS{constructor(t=null,e,i){super(SS(e),ES(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){vS(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){vS(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class LS extends DS{constructor(t,e,i){super(SS(e),ES(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof PS?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class zS extends DS{constructor(t,e,i){super(SS(e),ES(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof PS?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const IS={provide:rS,useExisting:rt(()=>HS)},FS=(()=>Promise.resolve(null))();let HS=(()=>{class t extends rS{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new gu,this.form=new LS({},QC(t),tS(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){FS.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),hS(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){FS.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),vS(this._directives,t)})}addFormGroup(t){FS.then(()=>{const e=this._findContainer(t.path),i=new LS({});_S(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){FS.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){FS.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,wS(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Ho(jC,10),Ho(YC,10))},t.\u0275dir=Gt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Jo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Za([IS]),bo]}),t})();const OS={provide:oS,useExisting:rt(()=>jS)},BS=(()=>Promise.resolve(null))();let jS=(()=>{class t extends oS{constructor(t,e,i,n){super(),this.control=new PS,this._registered=!1,this.update=new gu,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=bS(0,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),yS(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?lS(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){hS(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(t){BS.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;BS.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Ho(rS,9),Ho(jC,10),Ho(YC,10),Ho(zC,10))},t.\u0275dir=Gt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Za([OS]),bo,ue]}),t})(),YS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),NS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})();const KS=new Ji("NgModelWithFormControlWarning"),US={provide:oS,useExisting:rt(()=>VS)};let VS=(()=>{class t extends oS{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new gu,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=bS(0,i)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&dS(e,this,!1),hS(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}yS(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&dS(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(Ho(jC,10),Ho(YC,10),Ho(zC,10),Ho(KS,8))},t.\u0275dir=Gt({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Za([US]),bo,ue]}),t._ngModelWarningSentOnce=!1,t})();const qS={provide:rS,useExisting:rt(()=>$S)};let $S=(()=>{class t extends rS{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new gu,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(gS(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return hS(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){dS(t.control||null,t,!1),vS(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,wS(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,i=this.form.get(t.path);e!==i&&(dS(e||null,t),i instanceof PS&&(hS(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);_S(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return gS(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){pS(this.form,this),this._oldForm&&gS(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(Ho(jC,10),Ho(YC,10))},t.\u0275dir=Gt({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&Jo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Za([qS]),bo,ue]}),t})();const WS={provide:oS,useExisting:rt(()=>GS)};let GS=(()=>{class t extends oS{constructor(t,e,i,n,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new gu,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=bS(0,n)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),yS(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return lS(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(Ho(rS,13),Ho(jC,10),Ho(YC,10),Ho(zC,10),Ho(KS,8))},t.\u0275dir=Gt({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Za([WS]),bo,ue]}),t._ngModelWarningSentOnce=!1,t})();const JS={provide:jC,useExisting:rt(()=>ZS),multi:!0};let ZS=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?UC(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&Lo("required",e.required?"":null)},inputs:{required:"required"},features:[Za([JS])]}),t})(),QS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[NS]]}),t})(),XS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[QS]}),t})(),tM=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:KS,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[QS]}),t})(),eM=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n,s=null,r=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,n=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new LS(i,{asyncValidators:r,updateOn:n,validators:s})}control(t,e,i){return new PS(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new zS(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof PS||t instanceof LS||t instanceof zS?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:tM}),t})();const iM=["trigger"],nM=["panel"];function sM(t,e){if(1&t&&(jo(0,"span",8),Ma(1),Yo()),2&t){const t=ea();rr(1),Ea(t.placeholder)}}function rM(t,e){if(1&t&&(jo(0,"span",12),Ma(1),Yo()),2&t){const t=ea(2);rr(1),Ea(t.triggerValue)}}function oM(t,e){1&t&&sa(0,0,["*ngSwitchCase","true"])}function aM(t,e){1&t&&(jo(0,"span",9),Io(1,rM,2,1,"span",10),Io(2,oM,1,0,"ng-content",11),Yo()),2&t&&(Oo("ngSwitch",!!ea().customTrigger),rr(2),Oo("ngSwitchCase",!0))}function cM(t,e){if(1&t){const t=qo();jo(0,"div",13),jo(1,"div",14,15),Jo("@transformPanel.done",function(e){return ze(t),ea()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return ze(t),ea()._handleKeydown(e)}),sa(3,1),Yo(),Yo()}if(2&t){const t=ea();Oo("@transformPanelWrap",void 0),rr(1),Pa("mat-select-panel ",t._getPanelTheme(),""),fa("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),Oo("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),Lo("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const uM=[[["mat-select-trigger"]],"*"],lM=["mat-select-trigger","*"],hM={transformPanelWrap:dw("transformPanelWrap",[ww("* => void",vw("@transformPanel",[bw()],{optional:!0}))]),transformPanel:dw("transformPanel",[_w("void",mw({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),_w("showing",mw({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),_w("showing-multiple",mw({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ww("void => *",fw("120ms cubic-bezier(0, 0, 0.2, 1)")),ww("* => void",fw("100ms 25ms linear",mw({opacity:0})))])};let dM=0;const fM=256,pM=new Ji("mat-select-scroll-strategy"),gM=new Ji("MAT_SELECT_CONFIG"),mM={provide:pM,deps:[jT],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class _M{constructor(t,e){this.source=t,this.value=e}}class yM{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const wM=hA(dA(uA(fA(yM)))),bM=new Ji("MatSelectTrigger");let vM=(()=>{class t extends wM{constructor(t,e,i,n,s,r,o,a,c,u,l,h,d,f){var p,g,m;super(s,n,o,a,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=c,this.ngControl=u,this._liveAnnouncer=d,this._defaultOptions=f,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+dM++,this._triggerAriaLabelledBy=null,this._destroy=new k,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+dM++,this._panelDoneAnimatingStream=new k,this._overlayPanelClass=(null===(p=this._defaultOptions)||void 0===p?void 0:p.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(m=null===(g=this._defaultOptions)||void 0===g?void 0:g.disableOptionCentering)&&void 0!==m&&m,this.ariaLabel="",this.optionSelectionChanges=ap(()=>{const t=this.options;return t?t.changes.pipe(gp(t),cp(()=>V(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(dp(1),cp(()=>this.optionSelectionChanges))}),this.openedChange=new gu,this._openedStream=this.openedChange.pipe(jd(t=>t),I(()=>{})),this._closedStream=this.openedChange.pipe(jd(t=>!t),I(()=>{})),this.selectionChange=new gu,this.valueChange=new gu,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==f?void 0:f.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=f.typeaheadDebounceInterval),this._scrollStrategyFactory=h,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(l)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=ey(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=ey(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=ey(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=iy(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new $k(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ak(),Dk(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Dk(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(gp(null),Dk(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.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(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,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 t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=e===U_||e===N_||e===Y_||e===K_,n=e===O_||e===j_,s=this._keyManager;if(!s.isTyping()&&n&&!V_(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=i===U_||i===N_,s=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(s||i!==O_&&i!==j_||!e.activeItem||V_(t))if(!s&&this._multiple&&65===i&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.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(dp(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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new Fy(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Dk(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Dk(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 t=V(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Dk(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),V(...this.options.map(t=>t._stateChanges)).pipe(Dk(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(Ho(Qk),Ho(Rc),Ho(il),Ho(EA),Ho(sc),Ho(aw,8),Ho(HS,8),Ho($S,8),Ho(MC,8),Ho(oS,10),$i("tabindex"),Ho(pM),Ho(qy),Ho(gM,8))},t.\u0275dir=Gt({type:t,viewQuery:function(t,e){if(1&t&&(Eu(iM,5),Eu(nM,5),Eu(UT,5)),2&t){let t;Mu(t=Ru())&&(e.trigger=t.first),Mu(t=Ru())&&(e.panel=t.first),Mu(t=Ru())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[bo,ue]}),t})(),AM=(()=>{class t extends vM{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(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Dk(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(dp(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=XA(t,this.options,this.optionGroups),i=this._getItemHeight();var n,s,r;this.panel.nativeElement.scrollTop=(s=i,(n=(t+e)*i)<(r=this.panel.nativeElement.scrollTop)?n:n+s>r+256?Math.max(0,n-256+s):r)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new _M(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const r=0-(t.left+s-(i?n:0)),o=t.right+s-e.width+(i?0:n);r>0?s+=r+8:o>0&&(s-=o+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,r=Math.floor(fM/n);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-r))*n+(n-(this._getItemCount()*n-fM)%n):e-n/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,fM)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>n?this._adjustPanelDown(r,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,fM),n=e*t-i;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=XA(s,this.options,this.optionGroups);const r=i/2;this._scrollTop=this._calculateOverlayScroll(s,r,n),this._offsetY=this._calculateOverlayOffsetY(s,r,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(xu(i,bM,5),xu(i,QA,5),xu(i,WA,5)),2&t){let t;Mu(t=Ru())&&(e.customTrigger=t.first),Mu(t=Ru())&&(e.options=t),Mu(t=Ru())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&Jo("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(Lo("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),pa("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Za([{provide:pC,useExisting:t},{provide:KA,useExisting:t}]),bo],ngContentSelectors:lM,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(t,e){if(1&t&&(na(uM),jo(0,"div",0,1),Jo("click",function(){return e.toggle()}),jo(3,"div",2),Io(4,sM,2,1,"span",3),Io(5,aM,3,2,"span",4),Yo(),jo(6,"div",5),No(7,"div",6),Yo(),Yo(),Io(8,cM,4,14,"ng-template",7),Jo("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=Fo(1);Lo("aria-owns",e.panelOpen?e.id+"-panel":null),rr(3),Oo("ngSwitch",e.empty),Lo("id",e._valueId),rr(1),Oo("ngSwitchCase",!0),rr(1),Oo("ngSwitchCase",!1),rr(3),Oo("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[KT,Nh,Kh,UT,Uh,zh],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[hM.transformPanelWrap,hM.transformPanel]},changeDetection:0}),t})(),kM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[mM],imports:[[td,qT,tk,cA],Xk,xC,tk,cA]}),t})();class TM{constructor(t){this.total=t}call(t,e){return e.subscribe(new CM(t,this.total))}}class CM extends p{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const SM=new Set;let MM,EM=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):xM}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!SM.has(t))try{MM||(MM=document.createElement("style"),MM.setAttribute("type","text/css"),document.head.appendChild(MM)),MM.sheet&&(MM.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),SM.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(gn(uy))},t.\u0275prov=dt({factory:function(){return new t(gn(uy))},token:t,providedIn:"root"}),t})();function xM(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let RM=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new k}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return DM(sy(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=tp(DM(sy(t)).map(t=>this._registerQuery(t).observable));return e=sp(e.pipe(dp(1)),e.pipe(t=>t.lift(new TM(1)),Z_(0))),e.pipe(I(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new y(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(gp(e),I(({matches:e})=>({query:t,matches:e})),Dk(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(gn(EM),gn(il))},t.\u0275prov=dt({factory:function(){return new t(gn(EM),gn(il))},token:t,providedIn:"root"}),t})();function DM(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const PM={tooltipState:dw("state",[_w("initial, void, hidden",mw({opacity:0,transform:"scale(0)"})),_w("visible",mw({transform:"scale(1)"})),ww("* => visible",fw("200ms cubic-bezier(0, 0, 0.2, 1)",yw([mw({opacity:0,transform:"scale(0)",offset:0}),mw({opacity:.5,transform:"scale(0.99)",offset:.5}),mw({opacity:1,transform:"scale(1)",offset:1})]))),ww("* => hidden",fw("100ms cubic-bezier(0, 0, 0.2, 1)",mw({opacity:0})))])},LM=_y({passive:!0}),zM=new Ji("mat-tooltip-scroll-strategy"),IM={provide:zM,deps:[jT],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},FM=new Ji("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let HM=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u,l,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=u,this._defaultOptions=l,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 k,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===B_&&!V_(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=h,l&&(l.position&&(this.position=l.position),l.touchGestures&&(this.touchGestures=l.touchGestures)),u.change.pipe(Dk(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=ey(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).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(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Dk(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,LM)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new iT(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Dk(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe(Dk(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Dk(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(dp(1),Dk(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:n}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===n?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_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 t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,LM)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(Ho(jT),Ho(sc),Ho(Jk),Ho(Nc),Ho(il),Ho(uy),Ho(Py),Ho(Qy),Ho(void 0),Ho(aw),Ho(void 0),Ho(Il))},t.\u0275dir=Gt({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),OM=(()=>{class t extends HM{constructor(t,e,i,n,s,r,o,a,c,u,l,h){super(t,e,i,n,s,r,o,a,c,u,l,h),this._tooltipComponent=jM}}return t.\u0275fac=function(e){return new(e||t)(Ho(jT),Ho(sc),Ho(Jk),Ho(Nc),Ho(il),Ho(uy),Ho(Py),Ho(Qy),Ho(zM),Ho(aw,8),Ho(FM,8),Ho(Il))},t.\u0275dir=Gt({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[bo]}),t})(),BM=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new k}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Ho(Rc))},t.\u0275dir=Gt({type:t}),t})(),jM=(()=>{class t extends BM{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(Ho(Rc),Ho(RM))},t.\u0275cmp=Kt({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&Jo("click",function(){return e._handleBodyInteraction()},!1,ms)("auxclick",function(){return e._handleBodyInteraction()},!1,ms),2&t&&fa("zoom","visible"===e._visibility?1:null)},features:[bo],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(jo(0,"div",0),Jo("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),uu(1,"async"),Ma(2),Yo()),2&t){let t;pa("mat-tooltip-handset",null==(t=lu(1,5,e._isHandset))?null:t.matches),Oo("ngClass",e.tooltipClass)("@state",e._visibility),rr(2),Ea(e.message)}},directives:[zh],pipes:[Qh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[PM.tooltipState]},changeDetection:0}),t})(),YM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[IM],imports:[[rw,td,qT,cA],cA,Xk]}),t})();function NM(t,e){if(1&t&&(jo(0,"mat-option",19),Ma(1),Yo()),2&t){const t=e.$implicit;Oo("value",t),rr(1),xa(" ",t," ")}}function KM(t,e){if(1&t){const t=qo();jo(0,"mat-form-field",16),jo(1,"mat-select",17),Jo("selectionChange",function(e){return ze(t),ea(2)._changePageSize(e.value)}),Io(2,NM,2,2,"mat-option",18),Yo(),Yo()}if(2&t){const t=ea(2);Oo("appearance",t._formFieldAppearance)("color",t.color),rr(1),Oo("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),rr(1),Oo("ngForOf",t._displayedPageSizeOptions)}}function UM(t,e){if(1&t&&(jo(0,"div",20),Ma(1),Yo()),2&t){const t=ea(2);rr(1),Ea(t.pageSize)}}function VM(t,e){if(1&t&&(jo(0,"div",12),jo(1,"div",13),Ma(2),Yo(),Io(3,KM,3,6,"mat-form-field",14),Io(4,UM,2,1,"div",15),Yo()),2&t){const t=ea();rr(2),xa(" ",t._intl.itemsPerPageLabel," "),rr(1),Oo("ngIf",t._displayedPageSizeOptions.length>1),rr(1),Oo("ngIf",t._displayedPageSizeOptions.length<=1)}}function qM(t,e){if(1&t){const t=qo();jo(0,"button",21),Jo("click",function(){return ze(t),ea().firstPage()}),ci(),jo(1,"svg",7),No(2,"path",22),Yo(),Yo()}if(2&t){const t=ea();Oo("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),Lo("aria-label",t._intl.firstPageLabel)}}function $M(t,e){if(1&t){const t=qo();ci(),ui(),jo(0,"button",23),Jo("click",function(){return ze(t),ea().lastPage()}),ci(),jo(1,"svg",7),No(2,"path",24),Yo(),Yo()}if(2&t){const t=ea();Oo("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),Lo("aria-label",t._intl.lastPageLabel)}}let WM=(()=>{class t{constructor(){this.changes=new k,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const GM={provide:WM,deps:[[new bn,new vn,WM]],useFactory:function(t){return t||new WM}},JM=new Ji("MAT_PAGINATOR_DEFAULT_OPTIONS");class ZM{}const QM=uA(pA(ZM));let XM=(()=>{class t extends QM{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new gu,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(iy(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=iy(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(iy(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>iy(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=ey(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=ey(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(Ho(WM),Ho(Rc),Ho(void 0))},t.\u0275dir=Gt({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[bo]}),t})(),tE=(()=>{class t extends XM{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(Ho(WM),Ho(Rc),Ho(JM,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[bo],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"div",1),Io(2,VM,5,3,"div",2),jo(3,"div",3),jo(4,"div",4),Ma(5),Yo(),Io(6,qM,3,5,"button",5),jo(7,"button",6),Jo("click",function(){return e.previousPage()}),ci(),jo(8,"svg",7),No(9,"path",8),Yo(),Yo(),ui(),jo(10,"button",9),Jo("click",function(){return e.nextPage()}),ci(),jo(11,"svg",7),No(12,"path",10),Yo(),Yo(),Io(13,$M,3,5,"button",11),Yo(),Yo(),Yo()),2&t&&(rr(2),Oo("ngIf",!e.hidePageSize),rr(3),xa(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),rr(1),Oo("ngIf",e.showFirstLastButtons),rr(1),Oo("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Lo("aria-label",e._intl.previousPageLabel),rr(3),Oo("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Lo("aria-label",e._intl.nextPageLabel),rr(3),Oo("ngIf",e.showFirstLastButtons))},directives:[Oh,ok,OM,EC,AM,Fh,QA],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),eE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[GM],imports:[[td,ak,kM,YM,cA]]}),t})();function iE(t,e=J_){var i;const n=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new nE(n,e))}class nE{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new sE(t,this.delay,this.scheduler))}}class sE extends p{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(sE.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new rE(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Bk.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Bk.createComplete()),this.unsubscribe()}}class rE{constructor(t,e){this.time=t,this.notification=e}}const oE=["mat-menu-item",""],aE=["*"];function cE(t,e){if(1&t){const t=qo();jo(0,"div",0),Jo("keydown",function(e){return ze(t),ea()._handleKeydown(e)})("click",function(){return ze(t),ea().closed.emit("click")})("@transformMenu.start",function(e){return ze(t),ea()._onAnimationStart(e)})("@transformMenu.done",function(e){return ze(t),ea()._onAnimationDone(e)}),jo(1,"div",1),sa(2),Yo(),Yo()}if(2&t){const t=ea();Oo("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),Lo("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const uE={transformMenu:dw("transformMenu",[_w("void",mw({opacity:0,transform:"scale(0.8)"})),ww("void => enter",fw("120ms cubic-bezier(0, 0, 0.2, 1)",mw({opacity:1,transform:"scale(1)"}))),ww("* => void",fw("100ms 25ms linear",mw({opacity:0})))]),fadeInItems:dw("fadeInItems",[_w("showing",mw({opacity:1})),ww("void => *",[mw({opacity:0}),fw("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},lE=new Ji("MatMenuContent"),hE=new Ji("MAT_MENU_PANEL");class dE{}const fE=hA(uA(dE));let pE=(()=>{class t extends fE{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new k,this._focused=new k,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new _u,this._tabSubscription=h.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new k,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new gu,this.close=this.closed,this.panelId="mat-menu-panel-"+mE++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=ey(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=ey(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Hy(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(gp(this._directDescendantItems),cp(t=>V(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(gp(this._directDescendantItems),cp(t=>V(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case B_:V_(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case Y_:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case K_:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==N_&&e!==U_||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(dp(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(gp(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(il),Ho(gE))},t.\u0275dir=Gt({type:t,contentQueries:function(t,e,i){if(1&t&&(xu(i,lE,5),xu(i,pE,5),xu(i,pE,4)),2&t){let t;Mu(t=Ru())&&(e.lazyContent=t.first),Mu(t=Ru())&&(e._allItems=t),Mu(t=Ru())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&Eu(Ic,5),2&t){let t;Mu(t=Ru())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),yE=(()=>{class t extends _E{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(il),Ho(gE))},t.\u0275cmp=Kt({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&Lo("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Za([{provide:hE,useExisting:t}]),bo],ngContentSelectors:aE,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(na(),Io(0,cE,3,6,"ng-template"))},directives:[zh],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[uE.transformMenu,uE.fadeInItems]},changeDetection:0}),t})();const wE=new Ji("mat-menu-scroll-strategy"),bE={provide:wE,deps:[jT],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},vE=_y({passive:!0});let AE=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=r,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=h.EMPTY,this._hoverSubscription=h.EMPTY,this._menuCloseSubscription=h.EMPTY,this._handleTouchStart=t=>{Gy(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new gu,this.onMenuOpen=this.menuOpened,this.menuClosed=new gu,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=s instanceof _E?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,vE),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,vE),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof _E&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof _E?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(jd(t=>"void"===t.toState),dp(1),Dk(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new bT({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[n,s],[a,c]=[e,i],u=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",u="bottom"===n?8:-8):this.menu.overlapTrigger||(r="top"===n?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:n,offsetY:u},{originX:i,originY:r,overlayX:c,overlayY:n,offsetY:u},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-u},{originX:i,originY:o,overlayX:c,overlayY:s,offsetY:-u}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments();return V(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Od(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(jd(t=>t!==this._menuItemInstance),jd(()=>this._menuOpen)):Od(),e)}_handleMousedown(t){Wy(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;e!==O_&&e!==j_||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===K_&&"ltr"===this.dir||e===Y_&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(jd(t=>t===this._menuItemInstance&&!t.disabled),iE(0,bk)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof _E&&this.menu._isAnimating?this.menu._animationDone.pipe(dp(1),iE(0,bk),Dk(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new nT(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(Ho(jT),Ho(sc),Ho(Nc),Ho(wE),Ho(hE,8),Ho(pE,10),Ho(aw,8),Ho(Qy))},t.\u0275dir=Gt({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&Jo("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&Lo("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),kE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[bE],imports:[cA]}),t})(),TE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[bE],imports:[[td,cA,jA,qT,kE],Xk,cA,kE]}),t})();const CE=["*"];function SE(t){return Error(`Unable to find icon with the name "${t}"`)}function ME(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function EE(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class xE{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let RE=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new xE(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,n){const s=this._sanitizer.sanitize(ss.HTML,i);if(!s)throw EE(i);return this._addSvgIconConfig(t,e,new xE("",s,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new xE(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(ss.HTML,e);if(!n)throw EE(e);return this._addSvgIconSetConfig(t,new xE("",n,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(ss.RESOURCE_URL,t);if(!e)throw ME(t);const i=this._cachedIconsByUrl.get(e);return i?Od(DE(i)):this._loadSvgIconFromConfig(new xE(t,null)).pipe(zp(t=>this._cachedIconsByUrl.set(e,t)),I(t=>DE(t)))}getNamedSvgIcon(t,e=""){const i=PE(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Hk(SE(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Od(DE(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(I(t=>DE(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?Od(i):RC(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(wp(e=>{const i=this._sanitizer.sanitize(ss.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),Od(null)})))).pipe(I(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw SE(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(zp(e=>t.svgText=e),I(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Od(null):this._fetchIcon(t).pipe(zp(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(r)),X());return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(PE(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),FE=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],HE=FE.map(t=>`[${t}]`).join(", "),OE=/^url\(['"]?#(.*?)['"]?\)$/;let BE=(()=>{class t extends zE{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=h.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=ey(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(HE),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],r=s.getAttribute(t),o=r?r.match(OE):null;if(o){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe(dp(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(RE),$i("aria-hidden"),Ho(IE),Ho(fs))},t.\u0275cmp=Kt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(Lo("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),pa("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[bo],ngContentSelectors:CE,decls:1,vars:0,template:function(t,e){1&t&&(na(),sa(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),jE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[cA],cA]}),t})();class YE{}let NE=(()=>{class t extends YE{getTranslation(t){return Od({})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class KE{}let UE=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function VE(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,n,s,r=typeof t;if(r==typeof e&&"object"==r){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in s=Object.create(null),t){if(!VE(t[n],e[n]))return!1;s[n]=!0}for(n in e)if(!(n in s)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n{$E(e[n])?n in t?i[n]=WE(t[n],e[n]):Object.assign(i,{[n]:e[n]}):Object.assign(i,{[n]:e[n]})}),i}class GE{}let JE=(()=>{class t extends GE{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let i;return i="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,i}getValue(t,e){let i="string"==typeof e?e.split("."):[e];e="";do{e+=i.shift(),!qE(t)||!qE(t[e])||"object"!=typeof t[e]&&i.length?i.length?e+=".":t=void 0:(t=t[e],e="")}while(i.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,i)=>{let n=this.getValue(e,i);return qE(n)?n:t}):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class ZE{}let QE=(()=>{class t extends ZE{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class XE{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new gu,this.onLangChange=new gu,this.onDefaultLangChange=new gu}}const tx=new Ji("USE_STORE"),ex=new Ji("USE_DEFAULT_LANG"),ix=new Ji("DEFAULT_LANGUAGE"),nx=new Ji("USE_EXTEND");let sx=(()=>{class t{constructor(t,e,i,n,s,r=!0,o=!1,a=!1,c){this.store=t,this.currentLoader=e,this.compiler=i,this.parser=n,this.missingTranslationHandler=s,this.useDefaultLang=r,this.isolate=o,this.extend=a,this.pending=!1,this._onTranslationChange=new gu,this._onLangChange=new gu,this._onDefaultLangChange=new gu,this._langs=[],this._translations={},this._translationRequests={},c&&this.setDefaultLang(c)}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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe(dp(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return Od(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(dp(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),Od(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(Uk(1),dp(1));return this.loadingTranslations=e.pipe(I(e=>this.compiler.compileTranslations(e,t)),Uk(1),dp(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,i=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?WE(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,i){let n;if(e instanceof Array){let n={},s=!1;for(let r of e)n[r]=this.getParsedResult(t,r,i),vk(n[r])&&(s=!0);return s?RC(e.map(t=>vk(n[t])?n[t]:Od(n[t]))).pipe(I(t=>{let i={};return t.forEach((t,n)=>{i[e[n]]=t}),i})):n}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){let t={key:e,translateService:this};void 0!==i&&(t.interpolateParams=i),n=this.missingTranslationHandler.handle(t)}return void 0!==n?n:e}get(t,e){if(!qE(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Bd(i=>vk(i=this.getParsedResult(i,t,e))?i:Od(i)));{let i=this.getParsedResult(this.translations[this.currentLang],t,e);return vk(i)?i:Od(i)}}getStreamOnTranslationChange(t,e){if(!qE(t)||!t.length)throw new Error('Parameter "key" required');return sp(ap(()=>this.get(t,e)),this.onTranslationChange.pipe(cp(i=>{const n=this.getParsedResult(i.translations,t,e);return"function"==typeof n.subscribe?n:Od(n)})))}stream(t,e){if(!qE(t)||!t.length)throw new Error('Parameter "key" required');return sp(ap(()=>this.get(t,e)),this.onLangChange.pipe(cp(i=>{const n=this.getParsedResult(i.translations,t,e);return vk(n)?n:Od(n)})))}instant(t,e){if(!qE(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,e);if(vk(i)){if(t instanceof Array){let e={};return t.forEach((i,n)=>{e[t[n]]=t[n]}),e}return t}return i}set(t,e,i=this.currentLang){this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(gn(XE),gn(YE),gn(ZE),gn(GE),gn(KE),gn(ex),gn(tx),gn(nx),gn(ix))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),rx=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,i){let n=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,e);vk(s.subscribe)?s.subscribe(n):n(s)}this.translate.get(t,e).subscribe(n)}transform(t,...e){if(!t||!t.length)return t;if(VE(t,this.lastKey)&&VE(e,this.lastParams))return this.value;let i;if(qE(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(t)}catch(n){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(i=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(Ho(sx,16),Ho(Rc,16))},t.\u0275pipe=Jt({name:"translate",type:t,pure:!1}),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),ox=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:YE,useClass:NE},e.compiler||{provide:ZE,useClass:QE},e.parser||{provide:GE,useClass:JE},e.missingTranslationHandler||{provide:KE,useClass:UE},XE,{provide:tx,useValue:e.isolate},{provide:ex,useValue:e.useDefaultLang},{provide:nx,useValue:e.extend},{provide:ix,useValue:e.defaultLanguage},sx]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:YE,useClass:NE},e.compiler||{provide:ZE,useClass:QE},e.parser||{provide:GE,useClass:JE},e.missingTranslationHandler||{provide:KE,useClass:UE},{provide:tx,useValue:e.isolate},{provide:ex,useValue:e.useDefaultLang},{provide:nx,useValue:e.extend},{provide:ix,useValue:e.defaultLanguage},sx]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})(),ax=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[],imports:[[eE,TE,jE,ak,ox,td]]}),t})();function cx(t,e){}class ux{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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const lx={dialogContainer:dw("dialogContainer",[_w("void, exit",mw({opacity:0,transform:"scale(0.7)"})),_w("enter",mw({transform:"none"})),ww("* => enter",fw("150ms cubic-bezier(0, 0, 0.2, 1)",mw({transform:"none",opacity:1}))),ww("* => void, * => exit",fw("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",mw({opacity:0})))])};let hx=(()=>{class t extends rT{constructor(t,e,i,n,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=s,this._focusMonitor=r,this._animationStateChanged=new gu,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=vy(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=vy())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=vy();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Ny),Ho(Rc),Ho(Il,8),Ho(ux),Ho(Qy))},t.\u0275dir=Gt({type:t,viewQuery:function(t,e){if(1&t&&Eu(cT,7),2&t){let t;Mu(t=Ru())&&(e._portalOutlet=t.first)}},features:[bo]}),t})(),dx=(()=>{class t extends hx{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Zo("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(La("id",e._id),Lo("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),za("@dialogContainer",e._state))},features:[bo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Io(0,cx,0,0,"ng-template",0)},directives:[cT],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[lx.dialogContainer]}}),t})(),fx=0;class px{constructor(t,e,i="mat-dialog-"+fx++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new k,this._afterClosed=new k,this._beforeClosed=new k,this._state=0,e._id=i,e._animationStateChanged.pipe(jd(t=>"opened"===t.state),dp(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(jd(t=>"closed"===t.state),dp(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(jd(t=>t.keyCode===B_&&!this.disableClose&&!V_(t))).subscribe(t=>{t.preventDefault(),gx(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():gx(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(jd(t=>"closing"===t.state),dp(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function gx(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const mx=new Ji("MatDialogData"),_x=new Ji("mat-dialog-default-options"),yx=new Ji("mat-dialog-scroll-strategy"),wx={provide:yx,deps:[jT],useFactory:function(t){return()=>t.scrollStrategies.block()}};let bx=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new k,this._afterOpenedAtThisLevel=new k,this._ariaHiddenElements=new Map,this.afterAllClosed=ap(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(gp(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new ux)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),n._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new bT({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=yo.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:ux,useValue:e}]}),n=new iT(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const s=new this._dialogRefConstructor(i,e,n.id);if(t instanceof Ic)e.attachTemplatePortal(new nT(t,null,{$implicit:n.data,dialogRef:s}));else{const i=this._createInjector(n,s,e),r=e.attachComponentPortal(new iT(t,n.viewContainerRef,i));s.componentInstance=r.instance}return s.updateSize(n.width,n.height).updatePosition(n.position),s}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(aw,null,vt.Optional)||s.push({provide:aw,useValue:{value:t.direction,change:Od()}}),yo.create({parent:n||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(Ho(jT),Ho(yo),Ho(void 0),Ho(void 0),Ho(MT),Ho(void 0),Ho(Qi),Ho(Qi),Ho(Ji))},t.\u0275dir=Gt({type:t}),t})(),vx=(()=>{class t extends bx{constructor(t,e,i,n,s,r,o){super(t,e,n,r,o,s,px,dx,mx)}}return t.\u0275fac=function(e){return new(e||t)(gn(jT),gn(yo),gn(Jl,8),gn(_x,8),gn(yx),gn(t,12),gn(MT))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Ax=0,kx=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+Ax++}ngOnInit(){this._dialogRef||(this._dialogRef=function(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(Ho(px,8),Ho(sc),Ho(vx))},t.\u0275dir=Gt({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&La("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),Tx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),Cx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),Sx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[vx,wx],imports:[[qT,uT,cA],cA]}),t})();var Mx=i(2051);const Ex=[5,10,25,100];function xx(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function Rx(){const t=new ux;return t.disableClose=!0,t.autoFocus=!1,t}function Dx(t,e,i,n){const s=e.active,r=e.direction;return s&&""!==r?t.sort((t,e)=>{const o=i(t,s,n),a=i(e,s,n);return new Intl.Collator("cs",{numeric:!0}).compare(o,a)*("asc"===r?1:-1)}):t}function Px(t,e,i,n,s,r){e=e.toLowerCase();let o="";return i.forEach(e=>{o+=";"+n(t,e,s)}),r&&(o+=";"+n(t,"uuid",s)),-1!==o.toLowerCase().indexOf(e)}function Lx(t,e){let i="";return t.attributes&&t.attributes.forEach(t=>{t.friendlyName===e&&(i=t.value)}),i}function zx(t,e,i,n){const s=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(t=>!r.includes(t)),t.forEach(t=>{const r={};e.forEach(e=>{var s;r[e]=(null!==(s=i(t,e,n))&&void 0!==s?s:"").split('"').join("''").trim()}),s.push(r)}),s}function Ix(t,e="csv",i="export"){switch(e){case"csv":{const n=(t,e)=>null===e?"":e,s=Object.keys(t[0]),r=t.map(t=>s.map(e=>JSON.stringify(t[e],n)).join(","));r.unshift(s.join(",").split(" ").join("_").split('"').join("''"));const o=r.join("\r\n"),a=new Blob([o],{type:"text/csv"});(0,Mx.saveAs)(a,`${i}.${e}`)}}}let Fx=(()=>{class t{constructor(){this.exportData=new gu}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(jo(0,"div",0),jo(1,"button",1),jo(2,"mat-icon"),Ma(3,"more_vert"),Yo(),Yo(),jo(4,"mat-menu",null,2),jo(6,"button",3),Ma(7),uu(8,"translate"),Yo(),Yo(),jo(9,"mat-menu",null,4),jo(11,"button",5),Jo("click",function(){return e.exportData.emit("csv")}),Ma(12,"Csv"),Yo(),Yo(),Yo()),2&t){const t=Fo(5),e=Fo(10);rr(1),Oo("matMenuTriggerFor",t),rr(5),Oo("matMenuTriggerFor",e),rr(1),xa(" ",lu(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[ok,AE,BE,yE,pE],pipes:[rx],styles:[""]}),t})();function Hx(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-table-options",6),Jo("exportData",function(e){return ze(t),ea().exportData.emit(e)}),Yo()}}const Ox=["*"];let Bx=(()=>{class t{constructor(){this.hideExport=!1,this.page=new gu,this.pageSizeOptions=Ex,this.pageSize=5,this.dataLength=0,this.exportData=new gu}set matPaginator(t){this.paginator=t}pageChanged(t){this.paginator.pageSize=t.pageSize,this.paginator.pageIndex=t.pageIndex,this.page.emit(t),this.paginator.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(t,e){if(1&t&&Eu(tE,7),2&t){let t;Mu(t=Ru())&&(e.matPaginator=t.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",pageSize:"pageSize",dataLength:"dataLength"},outputs:{page:"page",exportData:"exportData"},ngContentSelectors:Ox,decls:7,vars:8,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(t,e){1&t&&(na(),jo(0,"div",0),jo(1,"div",1),jo(2,"mat-paginator",2),Jo("page",function(t){return e.page.emit(t)}),Yo(),Io(3,Hx,1,0,"perun-web-apps-table-options",3),Yo(),jo(4,"div",4),sa(5),Yo(),jo(6,"mat-paginator",5),Jo("page",function(t){return e.pageChanged(t)}),Yo(),Yo()),2&t&&(rr(2),Oo("length",e.dataLength)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),rr(1),Oo("ngIf",!e.hideExport),rr(3),Oo("length",e.paginator.length)("pageIndex",e.paginator.pageIndex)("pageSizeOptions",e.paginator.pageSizeOptions)("pageSize",e.paginator.pageSize))},directives:[tE,Oh,Fx],styles:[""]}),t})(),jx=(()=>{class t{constructor(t){this.dialogRef=t}close(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(Ho(px))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"h1",0),Ma(1),uu(2,"translate"),Yo(),jo(3,"div",1),Ma(4),uu(5,"translate"),Yo(),jo(6,"div",2),jo(7,"div",3),jo(8,"button",4),Jo("click",function(){return e.close()}),Ma(9),uu(10,"translate"),Yo(),Yo(),Yo()),2&t&&(rr(1),Ea(lu(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),rr(3),xa(" ",lu(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),rr(5),xa(" ",lu(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[kx,Tx,Cx,ok],pipes:[rx],styles:[""]}),t})(),Yx=(()=>{class t{constructor(){this.branding=""}setInstanceConfig(t){this.instanceConfig=t}setDefaultConfig(t){this.defaultConfig=t}setPerunPrincipal(t){this.principal=t}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(t){this.initialPageId=t}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(t){this.branding=t}skipOidc(){return this.get("skip_oidc")}get(...t){let e;if(""!==this.branding){const i=this.instanceConfig.brandings[this.branding];for(let n=0;n{class t{constructor(t,e,i,n){this.injector=t,this.store=e,this.dialog=i,this.route=n,this.userSet=new gu,this.user=null,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(g_),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(t=>{t.idpFilter&&(this.filterShortname=t.idpFilter)})}getClientSettings(){const t=this.setIdpFilter();return{authority:this.store.get("oidc_client","oauth_authority"),client_id:this.store.get("oidc_client","oauth_client_id"),redirect_uri:this.store.get("oidc_client","oauth_redirect_uri"),post_logout_redirect_uri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),response_type:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),filterProtocolClaims:!0,loadUserInfo:this.store.get("oidc_client","oauth_load_user_info"),automaticSilentRenew:!0,silent_redirect_uri:this.store.get("oidc_client","oauth_silent_redirect_uri"),extraQueryParams:{acr_values:t}}}setIdpFilter(){const t=location.search.substr(1).split("&");this.filterShortname=null;const e=this.store.get("oidc_client","filters");if(!e)return null;let i=null;return t.forEach(t=>{const n=t.split("=");"idpFilter"===n[0]&&e[n[1]]&&(this.filterShortname=n[1],i=e[n[1]])}),e.default&&!i?(this.filterShortname="default",e.default):i}getUserManager(){return this.manager}startIdpFilterKeeper(){this.router.events.pipe(jd(t=>t instanceof Np)).subscribe(()=>{const t={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===t.idpFilter?{}:t,queryParamsHandling:"merge",replaceUrl:!0})})}loadConfigData(){this.manager=new Zf.UserManager(this.getClientSettings()),this.setUser(),this.manager.events.addUserLoaded(t=>{this.user=t}),this.manager.events.addAccessTokenExpired(()=>{const t=Rx();t.width="450px",this.dialog.open(jx,t).afterClosed().subscribe(()=>{this.startAuthentication().then(()=>{})})})}verifyAuth(){const t=location.pathname,e=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(t,e)}logout(){this.manager.signoutRedirect().catch(function(t){console.log(t)})}isLoggedInPromise(){return B(this.manager.getUser()).pipe(I(t=>!!t&&!t.expired))}isLoggedIn(){return null!=this.user&&!this.user.expired}getClaims(){return this.user.profile}getAuthorizationHeaderValue(){return this.user?"Bearer "+this.user.access_token:""}startAuthentication(){return this.manager.signinRedirect()}completeAuthentication(){return this.manager.signinRedirectCallback().then(t=>{this.user=t,this.userSet.emit(this.user)})}startSigninMainWindow(){this.manager.signinRedirect({data:this.redirectUrl}).then(function(){console.log("signinRedirect done")}).catch(function(t){console.log(t)})}setUser(){this.manager.getUser().then(t=>{this.user=t})}isPotentiallyValidPath(t){const e=["/home","/organizations","/facilities","/myProfile","/admin","/login"];if("/"===t)return!0;for(const i of e)if(t.startsWith(i))return!0;return!1}verifyAuthentication(t,e){return this.isLoggedInPromise().toPromise().then(i=>!!i||(this.isPotentiallyValidPath(t)?(sessionStorage.setItem("auth:redirect",t),sessionStorage.setItem("auth:queryParams",e),!1):new Promise((t,e)=>e("Invalid path"))))}handleAuthCallback(){return this.completeAuthentication().then(()=>!0)}redirectToOriginDestination(){const t=sessionStorage.getItem("mfa_route");if(t)return this.router.navigate([t],{replaceUrl:!0});let e=sessionStorage.getItem("auth:redirect");const i=sessionStorage.getItem("auth:queryParams");let n=[];i&&(n=i.split("&"));const s={};return n.forEach(t=>{const e=t.split("=");s[e[0]]=e[1]}),e&&"/login"!==e||(e="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),s.idpFilter&&(this.filterShortname=s.idpFilter),this.router.navigate([e],{queryParams:s,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}}return t.\u0275fac=function(e){return new(e||t)(gn(yo),gn(Yx),gn(vx),gn($g))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Kx=(()=>{class t{constructor(t){this.dialogRef=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(px))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(jo(0,"h2",0),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE")))},directives:[Tx],pipes:[rx],styles:[""]}),t})(),Ux=(()=>{class t{constructor(t,e,i,n,s,r){this.authService=t,this.storeService=e,this.authResolver=i,this.authzService=n,this.dialog=s,this.router=r,this.loginScreenShown=!1}setLoginScreen(t){this.loginScreenShown=t}isLoginScreenShown(){return this.loginScreenShown}verifyAuth(){return this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(t=>t(!0)):this.authService.verifyAuth()}startAuth(){return this.authService.startAuthentication()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(t=>{if(null===t.user){const t=Rx();this.dialog.open(Kx,t)}else this.storeService.setPerunPrincipal(t),this.authResolver.init(t)})}handleAuthStart(){return this.storeService.get("auto_auth_redirect")?this.startAuth().then(()=>new Promise(()=>{})):(this.setLoginScreen(!0),this.router.navigate(["login"]).then(()=>null))}redirectToOriginDestination(){return this.authService.redirectToOriginDestination()}}return t.\u0275fac=function(e){return new(e||t)(gn(Nx),gn(Yx),gn(Jf),gn(Mf),gn(vx),gn(g_))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Vx=(()=>{class t{constructor(t,e){this.matIconRegistry=t,this.domSanitizer=e,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/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/settings1-blue.svg",name:"settings-blue"},{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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(t=>{this.matIconRegistry.addSvgIcon(t.name,this.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}return t.\u0275fac=function(e){return new(e||t)(gn(RE),gn(Pd))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),qx=(()=>{class t{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const t=this.handleNextError;return this.handleNextError=!0,t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$x=(()=>{class t{constructor(t){this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new gu}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(t,e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}showError(t,e,i,n,s){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:s,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return t.\u0275fac=function(e){return new(e||t)(gn(sx))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Wx=(()=>{class t{constructor(t,e,i,n,s,r){this.authService=t,this.apiRequestConfiguration=e,this.notificator=i,this.store=n,this.dialog=s,this.initAuthService=r}intercept(t,e){const i=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==t.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()){const t=Rx();t.width="450px",this.dialog.open(jx,t).afterClosed().subscribe(()=>{this.authService.startAuthentication().then(()=>{})})}t=t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});const n=this.apiRequestConfiguration.shouldHandleError(),s="POST"===t.method&&!this.store.skipOidc();return e.handle(t).pipe(zp(t=>{t instanceof rf&&s&&this.initAuthService.loadPrincipal()},e=>{const i=this.formatErrors(e,t);return void 0===i?Hk(e):n?void this.notificator.showRPCError(i):Hk(i)}))}formatErrors(t,e){let i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.call=e.url,i.payload=e.body,i}}return t.\u0275fac=function(e){return new(e||t)(gn(Nx),gn(qx),gn($x),gn(Yx),gn(vx),gn(Ux))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Gx=(()=>{class t{constructor(){this.notificationData=[],this.newNotificationsCount=0}storeNotification(t){this.newNotificationsCount++,this.notificationData.push(t)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Jx=(()=>{class t{constructor(t,e,i,n){this.http=t,this.notificator=e,this.authService=i,this.storeService=n}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}formatErrors(t,e,i,n){const s=t.error;return s.call=e,s.payload=i,n&&this.notificator.showRPCError(t.error),Hk(s)}getHeaders(){let t=new Vd;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue()),t}get(t,e=new Gd,i=!0){const n=`${this.getApiUrl()}${t}`;return this.http.get(n,{headers:this.getHeaders()}).pipe(wp(t=>this.formatErrors(t,n,null,i)))}put(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);return this.http.put(n,s,{headers:this.getHeaders()}).pipe(wp(t=>this.formatErrors(t,n,s,i)))}post(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);let r=this.getHeaders();return r=r.set("Content-Type","application/json; charset=utf-8"),this.http.post(n,s,{headers:r}).pipe(wp(t=>this.formatErrors(t,n,s,i)))}delete(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe(wp(t=>this.formatErrors(t,i,null,e)))}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn($x),gn(Nx),gn(Yx))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Zx=(()=>{class t{constructor(){}isAllSelectedWithDisabledCheckbox(t,e,i,n,s,r,o,a){return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=s*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?r.data.length:r.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),r.sortData(r.filteredData,o).forEach(t=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?c(t)&&this.pageStart<=this.pageIterator&&this.pageIterator closed",[fw(".3s ease-in")])]);const Qx=dw("flyInOut",[ww(":enter",[mw({transform:"translateX(100%)"}),fw(".25s")]),ww(":leave",[fw(".5s",mw({transform:"translateX(100%)"}))])]);dw("rollInOut",[ww(":enter",[mw({height:"0px"}),fw(".25s")]),ww(":leave",[fw(".25s",mw({height:"0px"}))])]),dw("routeAnimations",[ww("* => *",[mw({position:"relative"}),vw(":enter",[mw({width:"100%",opacity:0})],{optional:!0}),vw(":leave",[mw({position:"absolute",width:"100%",opacity:1}),fw("0.15s",mw({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),vw(":enter",[mw({position:"absolute",width:"100%",opacity:0}),fw("0.15s",mw({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),dw("tagsOpenClose",[_w("open",mw({})),_w("closed",mw({width:"0px",height:"0px"})),ww("open <=> closed",[fw(".3s ease-in")])]),dw("switchAnimations",[ww("true => false",[vw(":enter, :leave",mw({})),pw([vw(":enter",[mw({transform:"translateX(-100%)"}),fw("1s ease-in-out",mw({transform:"translateX(0%)"}))],{optional:!0}),vw(":leave",[mw({transform:"translateX(0%)",position:"absolute"}),fw("1s ease-in-out",mw({transform:"translateX(100%)"}))],{optional:!0})])]),ww("false => true",[vw(":enter, :leave",mw({})),pw([vw(":enter",[mw({transform:"translateX(100%)"}),fw("1s ease-in-out",mw({transform:"translateX(0%)"}))],{optional:!0}),vw(":leave",[mw({transform:"translateX(0%)",position:"absolute"}),fw("1s ease-in-out",mw({transform:"translateX(-100%)"}))],{optional:!0})])])]),dw("slideInOutLeft",[ww(":enter",[mw({transform:"translateX(-100%)",position:"relative"}),fw("0.5s ease-in",mw({transform:"translateX(0%)"}))]),ww(":leave",[fw("0.5s ease-in",mw({transform:"translateX(-100%)"}))])]),dw("slideInOutRight",[ww(":enter",[mw({transform:"translateX(100%)",position:"fixed"}),fw("0.5s ease-in",mw({transform:"translateX(0%)"}))]),ww(":leave",[mw({transform:"translateX(-100%)",position:"relative"}),fw("0.5s ease-in",mw({transform:"translateX(100%)"}))])]);let Xx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[td]]}),t})();function tR(t,e){if(1&t&&(ci(),No(0,"circle",3)),2&t){const t=ea();fa("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Lo("r",t._getCircleRadius())}}function eR(t,e){if(1&t&&(ci(),No(0,"circle",3)),2&t){const t=ea();fa("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Lo("r",t._getCircleRadius())}}function iR(t,e){if(1&t&&(ci(),No(0,"circle",3)),2&t){const t=ea();fa("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Lo("r",t._getCircleRadius())}}function nR(t,e){if(1&t&&(ci(),No(0,"circle",3)),2&t){const t=ea();fa("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Lo("r",t._getCircleRadius())}}const sR=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class rR{constructor(t){this._elementRef=t}}const oR=lA(rR,"primary"),aR=new Ji("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let cR=(()=>{class t extends oR{constructor(e,i,n,s,r){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(n.head)||o.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=iy(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=iy(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,iy(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=by(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(uy),Ho(Il,8),Ho(Jv,8),Ho(aR))},t.\u0275cmp=Kt({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(Lo("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),fa("width",e.diameter,"px")("height",e.diameter,"px"),pa("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[bo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(ci(),jo(0,"svg",0),Io(1,tR,1,9,"circle",1),Io(2,eR,1,7,"circle",2),Yo()),2&t&&(fa("width",e.diameter,"px")("height",e.diameter,"px"),Oo("ngSwitch","indeterminate"===e.mode),Lo("viewBox",e._getViewBox()),rr(1),Oo("ngSwitchCase",!0),rr(1),Oo("ngSwitchCase",!1))},directives:[Nh,Kh],styles:[sR],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),uR=(()=>{class t extends cR{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(uy),Ho(Il,8),Ho(Jv,8),Ho(aR))},t.\u0275cmp=Kt({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(fa("width",e.diameter,"px")("height",e.diameter,"px"),pa("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[bo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(ci(),jo(0,"svg",0),Io(1,iR,1,9,"circle",1),Io(2,nR,1,7,"circle",2),Yo()),2&t&&(fa("width",e.diameter,"px")("height",e.diameter,"px"),Oo("ngSwitch","indeterminate"===e.mode),Lo("viewBox",e._getViewBox()),rr(1),Oo("ngSwitchCase",!0),rr(1),Oo("ngSwitchCase",!1))},directives:[Nh,Kh],styles:[sR],encapsulation:2,changeDetection:0}),t})(),lR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[cA,td],cA]}),t})();const hR=_y({passive:!0});let dR=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return rp;const e=oy(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new k,s="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,hR),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",r,hR)}}),n}stopMonitoring(t){const e=oy(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(gn(uy),gn(il))},t.\u0275prov=dt({factory:function(){return new t(gn(uy),gn(il))},token:t,providedIn:"root"}),t})(),fR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[ly]]}),t})();const pR=new Ji("MAT_INPUT_VALUE_ACCESSOR"),gR=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let mR=0;class _R{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const yR=fA(_R);let wR=(()=>{class t extends yR{constructor(t,e,i,n,s,r,o,a,c,u){super(r,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+mR++,this.focused=!1,this.stateChanges=new k,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>dy().has(t));const l=this._elementRef.nativeElement,h=l.nodeName.toLowerCase();this._inputValueAccessor=o||l,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&c.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===h,this._isTextarea="textarea"===h,this._isNativeSelect&&(this.controlType=l.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=ey(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=ey(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&dy().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=ey(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){gR.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(uy),Ho(oS,10),Ho(HS,8),Ho($S,8),Ho(EA),Ho(pR,10),Ho(dR),Ho(il),Ho(MC,8))},t.\u0275dir=Gt({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&Jo("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(La("disabled",e.disabled)("required",e.required),Lo("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),pa("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Za([{provide:pC,useExisting:t}]),bo,ue]}),t})(),bR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[EA],imports:[[fR,xC,cA],fR,xC]}),t})();function vR(t,e){1&t&&No(0,"mat-spinner",7)}function AR(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function kR(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function TR(t,e){if(1&t){const t=qo();jo(0,"div",8),jo(1,"mat-form-field"),jo(2,"mat-label"),Ma(3),uu(4,"translate"),Yo(),jo(5,"input",9,10),Jo("ngModelChange",function(e){return ze(t),ea().subject=e}),Yo(),Io(7,AR,3,3,"mat-error",11),Yo(),jo(8,"mat-form-field"),jo(9,"mat-label"),Ma(10),uu(11,"translate"),Yo(),jo(12,"textarea",12,13),Jo("ngModelChange",function(e){return ze(t),ea().message=e}),uu(14,"translate"),Ma(15," "),Yo(),Io(16,kR,3,3,"mat-error",11),Yo(),Yo()}if(2&t){const t=Fo(6),e=Fo(13),i=ea();rr(3),Ea(lu(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),rr(2),Oo("ngModel",i.subject),rr(2),Oo("ngIf",t.invalid),rr(3),Ea(lu(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),rr(2),ra("placeholder",lu(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),Oo("ngModel",i.message),rr(4),Oo("ngIf",e.invalid)}}let CR=(()=>{class t{constructor(t,e,i,n,s,r){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.data=s,this.storeService=r,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data.error&&this.data.error.errorId&&(this.subject=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(t=>{this.dialogRef.afterClosed().subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const t=this.storeService.get("config");let e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;return e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),e=e.concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.call+"\n\n"),this.data.error.payload&&(e=e.concat("Payload:\n"+this.data.error.payload+"\n\n")),e=e.concat("Sended from new Perun Gui, version: "+i(306).i8),e.split("\n").join("\n ")}parseMethod(t){return t?this.methodRegexp.exec(t)[1]:t}}return t.\u0275fac=function(e){return new(e||t)(Ho(px),Ho(sx),Ho($x),Ho(Ff),Ho(mx),Ho(Yx))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"h1",0),Ma(1),uu(2,"translate"),Yo(),Io(3,vR,1,0,"mat-spinner",1),Io(4,TR,17,13,"div",2),jo(5,"div",3),jo(6,"div",4),jo(7,"button",5),Jo("click",function(){return e.dialogRef.close()}),Ma(8),uu(9,"translate"),Yo(),jo(10,"button",6),Jo("click",function(){return e.sendBugReport()}),Ma(11),uu(12,"translate"),Yo(),Yo(),Yo()),2&t&&(rr(1),Ea(lu(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),rr(2),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading),rr(4),xa(" ",lu(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),rr(2),Oo("disabled",""===e.message||""===e.subject||e.loading),rr(1),xa(" ",lu(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[kx,Oh,Cx,ok,uR,Tx,EC,yC,wR,HC,ZS,cS,jS,dC],pipes:[rx],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),SR=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.dialog=e,this.data=i}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const t=Rx();t.width="550px",t.data={error:this.data.error},t.autoFocus=!1,this.dialog.open(CR,t)}),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ho(px),Ho(vx),Ho(mx))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"h1",0),Ma(1),Yo(),jo(2,"div",1),Ma(3),Yo(),jo(4,"div",2),jo(5,"div",3),jo(6,"button",4),Jo("click",function(){return e.onBugReportClick()}),Ma(7),uu(8,"translate"),Yo(),jo(9,"button",5),Jo("click",function(){return e.onCloseClick()}),Ma(10),uu(11,"translate"),Yo(),Yo(),Yo()),2&t&&(rr(1),Ea(e.data.title),rr(2),xa("\n",e.data.description,"\n"),rr(3),Oo("hidden","error"!==e.data.type),rr(1),xa(" ",lu(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),rr(3),xa(" ",lu(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[kx,Tx,Cx,ok],pipes:[rx],styles:[""]}),t})();const MR=[[["caption"]],[["colgroup"],["col"]]],ER=["caption","colgroup, col"];function xR(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=ey(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const RR=new Ji("CDK_TABLE");let DR=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["","cdkCellDef",""]]}),t})(),PR=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),LR=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class zR{}const IR=xR(zR);let FR=(()=>{class t extends IR{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=ey(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(Ho(RR,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(xu(i,DR,5),xu(i,PR,5),xu(i,LR,5)),2&t){let t;Mu(t=Ru())&&(e.cell=t.first),Mu(t=Ru())&&(e.headerCell=t.first),Mu(t=Ru())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Za([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),bo]}),t})();class HR{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let OR=(()=>{class t extends HR{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Ho(FR),Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[bo]}),t})(),BR=(()=>{class t extends HR{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Ho(FR),Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[bo]}),t})();class jR{constructor(){this.tasks=[],this.endTasks=[]}}const YR=new Ji("_COALESCED_STYLE_SCHEDULER");let NR=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new k}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new jR,this._getScheduleObservable().pipe(Dk(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new jR;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?B(Promise.resolve(void 0)):this._ngZone.onStable.pipe(dp(1))}}return t.\u0275fac=function(e){return new(e||t)(gn(il))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),KR=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof qR?t.headerCell.template:this instanceof GR?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic),Ho(kc))},t.\u0275dir=Gt({type:t,features:[ue]}),t})();class UR extends KR{}const VR=xR(UR);let qR=(()=>{class t extends VR{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic),Ho(kc),Ho(RR,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[bo,ue]}),t})();class $R extends KR{}const WR=xR($R);let GR=(()=>{class t extends WR{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic),Ho(kc),Ho(RR,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[bo,ue]}),t})(),JR=(()=>{class t extends KR{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic),Ho(kc),Ho(RR,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[bo]}),t})(),ZR=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc))},t.\u0275dir=Gt({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),QR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({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(t,e){1&t&&Vo(0,0)},directives:[ZR],encapsulation:2}),t})(),XR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Vo(0,0)},directives:[ZR],encapsulation:2}),t})(),tD=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const eD=["top","bottom","left","right"];class iD{constructor(t,e,i,n,s=!0,r=!0,o){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=s,this._needsPositionStickyOnElement=r,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],r=s.children.length,o=this._getCellWidths(s,n),a=this._getStickyStartColumnPositions(o,e),c=this._getStickyEndColumnPositions(o,i),u=e.lastIndexOf(!0),l=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const n="rtl"===this.direction,s=n?"right":"left",h=n?"left":"right";for(const o of t)for(let t=0;te[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===l?[]:o.slice(l).map((t,e)=>i[e+l]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,r=[],o=[],a=[];for(let u=0,l=0;u{var t,e;for(let o=0;o{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);eD.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of eD)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}const nD=new Ji("CDK_SPL");let sD=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","rowOutlet",""]]}),t})(),rD=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),oD=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),aD=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),cD=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u,l){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=c,this._viewportRuler=u,this._stickyPositioningListener=l,this._onDestroy=new k,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.viewChange=new Qf({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=ey(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=ey(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler.change().pipe(Dk(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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Vk(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),uD(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=uD(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=uD(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=uD(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],Vk(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;Vk(this.dataSource)?t=this.dataSource.connect(this):vk(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Od(this.dataSource)),this._renderChangeSubscription=t.pipe(Dk(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const s=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),s}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))ZR.mostRecentCellOutlet&&ZR.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new iD(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Od()).pipe(Dk(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(Ho(kc),Ho(Rc),Ho(sc),$i("role"),Ho(aw,8),Ho(Il),Ho(uy),Ho(Gk),Ho(YR),Ho(Qk),Ho(nD,12))},t.\u0275cmp=Kt({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(xu(i,tD,5),xu(i,FR,5),xu(i,JR,5),xu(i,qR,5),xu(i,GR,5)),2&t){let t;Mu(t=Ru())&&(e._noDataRow=t.first),Mu(t=Ru())&&(e._contentColumnDefs=t),Mu(t=Ru())&&(e._contentRowDefs=t),Mu(t=Ru())&&(e._contentHeaderRowDefs=t),Mu(t=Ru())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(Eu(sD,7),Eu(rD,7),Eu(oD,7),Eu(aD,7)),2&t){let t;Mu(t=Ru())&&(e._rowOutlet=t.first),Mu(t=Ru())&&(e._headerRowOutlet=t.first),Mu(t=Ru())&&(e._footerRowOutlet=t.first),Mu(t=Ru())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&pa("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[Za([{provide:RR,useExisting:t},{provide:Gk,useClass:qk},{provide:YR,useClass:NR},{provide:nD,useValue:null}])],ngContentSelectors:ER,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(na(MR),sa(0),sa(1,1),Vo(2,0),Vo(3,1),Vo(4,2),Vo(5,3))},directives:[rD,sD,aD,oD],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function uD(t,e){return t.concat(Array.from(e))}let lD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[tT]]}),t})();const hD=[[["caption"]],[["colgroup"],["col"]]],dD=["caption","colgroup, col"];let fD=(()=>{class t extends cD{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&pa("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[Za([{provide:Gk,useClass:qk},{provide:cD,useExisting:t},{provide:RR,useExisting:t},{provide:YR,useClass:NR},{provide:nD,useValue:null}]),bo],ngContentSelectors:dD,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(na(hD),sa(0),sa(1,1),Vo(2,0),Vo(3,1),Vo(4,2),Vo(5,3))},directives:[rD,sD,aD,oD],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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),pD=(()=>{class t extends DR{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matCellDef",""]],features:[Za([{provide:DR,useExisting:t}]),bo]}),t})(),gD=(()=>{class t extends PR{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matHeaderCellDef",""]],features:[Za([{provide:PR,useExisting:t}]),bo]}),t})(),mD=(()=>{class t extends FR{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Za([{provide:FR,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),bo]}),t})(),_D=(()=>{class t extends OR{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[bo]}),t})(),yD=(()=>{class t extends BR{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[bo]}),t})(),wD=(()=>{class t extends qR{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Za([{provide:qR,useExisting:t}]),bo]}),t})(),bD=(()=>{class t extends JR{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Za([{provide:JR,useExisting:t}]),bo]}),t})(),vD=(()=>{class t extends QR{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Za([{provide:QR,useExisting:t}]),bo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Vo(0,0)},directives:[ZR],encapsulation:2}),t})(),AD=(()=>{class t extends XR{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Za([{provide:XR,useExisting:t}]),bo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Vo(0,0)},directives:[ZR],encapsulation:2}),t})(),kD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[lD,cA],cA]}),t})();class TD extends class extends class{}{constructor(t=[]){super(),this._renderData=new Qf([]),this._filter=new Qf(""),this._internalPageChanges=new k,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const i=t[e];if(ny(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),r=this.sortingDataAccessor(e,i);const o=typeof s,a=typeof r;o!==a&&("number"===o&&(s+=""),"number"===a&&(r+=""));let c=0;return null!=s&&null!=r?s>r?c=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new Qf(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?V(this._sort.sortChange,this._sort.initialized):Od(null),i=this._paginator?V(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Od(null),n=tp([this._data,this._filter]).pipe(I(([t])=>this._filterData(t))),s=tp([n,e]).pipe(I(([t])=>this._orderData(t))),r=tp([s,i]).pipe(I(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=r.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}{}function CD(t,e){1&t&&No(0,"mat-spinner",6)}function SD(t,e){1&t&&No(0,"th",15)}function MD(t,e){if(1&t&&(jo(0,"td",16),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),xa(" ",t," ")}}function ED(t,e){1&t&&No(0,"tr",17)}function xD(t,e){1&t&&No(0,"tr",18)}function RD(t,e){if(1&t&&(jo(0,"div",7),jo(1,"p"),Ma(2),uu(3,"translate"),Yo(),jo(4,"div",8),Ma(5),uu(6,"translate"),Yo(),jo(7,"table",9),Ko(8,10),Io(9,SD,1,0,"th",11),Io(10,MD,2,1,"td",12),Uo(),Io(11,ED,1,0,"tr",13),Io(12,xD,1,0,"tr",14),Yo(),Yo()),2&t){const t=ea();rr(2),xa(" ",lu(3,5,t.data.description)," "),rr(3),xa(" ",lu(6,7,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "),rr(2),Oo("dataSource",t.dataSource),rr(4),Oo("matHeaderRowDef",t.displayedColumns),rr(1),Oo("matRowDefColumns",t.displayedColumns)}}let DD=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new TD(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(Ho(px),Ho(mx))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-universal-remove-items-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(jo(0,"div"),jo(1,"h1",0),Ma(2),uu(3,"translate"),Yo(),Io(4,CD,1,0,"mat-spinner",1),Io(5,RD,13,9,"div",2),jo(6,"div",3),jo(7,"button",4),Jo("click",function(){return e.onCancel()}),Ma(8),uu(9,"translate"),Yo(),jo(10,"button",5),Jo("click",function(){return e.onSubmit()}),Ma(11),uu(12,"translate"),Yo(),Yo(),Yo()),2&t&&(ga(e.theme),rr(2),Ea(lu(3,9,e.data.title)),rr(2),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading),rr(3),xa(" ",lu(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),rr(2),Oo("disabled",e.loading),rr(1),xa(" ",lu(12,13,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," "))},directives:[kx,Oh,Cx,ok,uR,Tx,fD,mD,gD,pD,wD,bD,_D,yD,vD,AD],pipes:[rx],styles:[""]}),t})(),PD=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.theme=this.data.theme,this.message=this.data.message}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(Ho(px),Ho(mx))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"div"),jo(1,"h1",0),Ma(2),uu(3,"translate"),Yo(),jo(4,"div",1),jo(5,"button",2),Jo("click",function(){return e.onCancel()}),Ma(6),uu(7,"translate"),Yo(),jo(8,"button",3),Jo("click",function(){return e.onSubmit()}),Ma(9),uu(10,"translate"),Yo(),Yo(),Yo()),2&t&&(ga(e.theme),rr(2),Ea(lu(3,6,e.message)),rr(4),xa(" ",lu(7,8,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.CANCEL_BUTTON")," "),rr(3),xa(" ",lu(10,10,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.SUBMIT_BUTTON")," "))},directives:[kx,Cx,ok],pipes:[rx],styles:[""]}),t})();function LD(t,e){if(1&t&&(jo(0,"div",5),jo(1,"mat-icon"),Ma(2),Yo(),Yo()),2&t){const t=ea();rr(2),Ea(t.data.icon)}}function zD(t,e){if(1&t&&(jo(0,"div",6),Ma(1),Yo()),2&t){const t=ea();rr(1),xa(" ",t.showTimestamp()," ")}}let ID=(()=>{class t{constructor(t,e){this.dialog=t,this.notificationStorageService=e,this.newNotification=!1,this.closeNotification=new gu,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 t=Rx();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(SR,t).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function(t,e){return i=this,s=function*(){var i;yield(i=t,new Promise(t=>setTimeout(t,i))),e()},new((n=void 0)||(n=Promise))(function(t,e){function r(t){try{a(s.next(t))}catch(i){e(i)}}function o(t){try{a(s.throw(t))}catch(i){e(i)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n(function(t){t(i)})).then(r,o)}a((s=s.apply(i,[])).next())});var i,n,s}(this.data.delay,()=>{this.alreadyClosed||this.waiting||this.closeSelf()})}showTimestamp(){const[t,e]=this.data.timeStamp.split(":");return e.length<2?t+":0"+e:this.data.timeStamp}}return t.\u0275fac=function(e){return new(e||t)(Ho(vx),Ho(Gx))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"div"),jo(1,"div",0),Jo("click",function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()}),Io(2,LD,3,1,"div",1),jo(3,"div",2),Ma(4),uu(5,"translate"),Yo(),Io(6,zD,2,1,"div",3),jo(7,"div",4),Jo("click",function(){return e.waiting=!0,e.doAction()}),Ma(8),Yo(),Yo(),Yo()),2&t&&(Pa("notification ",e.inDialog?"":"mat-elevation-z7",""),pa("error","error"===e.data.type)("success","success"===e.data.type),rr(2),Oo("ngIf",null!==e.data.icon),rr(2),xa(" ",lu(5,12,e.data.title)," "),rr(2),Oo("ngIf",e.inDialog),rr(1),Oo("hidden",e.alreadyPressed),rr(1),xa(" ",e.data.actionText," "))},directives:[Oh,BE],pipes:[rx],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}"]}),t})();function FD(t,e){if(1&t){const t=qo();jo(0,"div"),jo(1,"perun-web-apps-notification",2),Jo("closeNotification",function(){const e=ze(t).index;return ea().removeNotification(e)}),Yo(),Yo()}if(2&t){const t=e.$implicit;Oo("@flyInOut",void 0),rr(1),Oo("data",t)("newNotification",!0)}}const HD=function(t){return{top:t}};let OD=(()=>{class t{constructor(t,e){this.notificator=t,this.notificationStorageService=e,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(t=>{this.processNotification(t)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}processNotification(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(t){this.notifications.splice(t,1)}}return t.\u0275fac=function(e){return new(e||t)(Ho($x),Ho(Gx))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&Jo("resize",function(t){return e.getScreenSize(t)},!1,gs)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(jo(0,"div",0),Io(1,FD,2,3,"div",1),Yo()),2&t&&(Oo("ngStyle",su(2,HD,e.getNotificatorTop())),rr(1),Oo("ngForOf",e.notifications))},directives:[Vh,Fh,ID],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width:768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;bottom:0}}"],data:{animation:[Qx]}}),t})();const BD=["*",[["mat-toolbar-row"]]],jD=["*","mat-toolbar-row"];class YD{constructor(t){this._elementRef=t}}const ND=lA(YD);let KD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),UD=(()=>{class t extends ND{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(uy),Ho(Il))},t.\u0275cmp=Kt({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&xu(i,KD,5),2&t){let t;Mu(t=Ru())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&pa("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[bo],ngContentSelectors:jD,decls:2,vars:0,template:function(t,e){1&t&&(na(BD),sa(0),sa(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),VD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[cA],cA]}),t})();const qD=function(t){return{background:t}},$D=function(t){return{color:t}};let WD=(()=>{class t{constructor(t,e,i){this.storeService=t,this.authService=e,this.sanitizer=i,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")}ngOnInit(){this.principal=this.storeService.getPerunPrincipal(),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}onLogOut(){this.authService.logout()}}return t.\u0275fac=function(e){return new(e||t)(Ho(Yx),Ho(Nx),Ho(Pd))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-header"]],inputs:{sideNav:"sideNav"},decls:21,vars:28,consts:[[1,"header-container",3,"ngStyle"],[2,"display","flex","flex-direction","row"],["mat-icon-button","",1,"mt-auto","mb-auto",3,"ngStyle","click"],["routerLink","/all-publications",1,"router-icon-scale",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-menu-user-info",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(jo(0,"mat-toolbar",0),jo(1,"div",1),jo(2,"button",2),Jo("click",function(){return e.sideNav.toggle()}),jo(3,"mat-icon"),Ma(4,"menu"),Yo(),Yo(),No(5,"a",3),No(6,"mat-icon",4),jo(7,"p",5),Ma(8),uu(9,"translate"),Yo(),Yo(),jo(10,"div",6),jo(11,"button",7),jo(12,"mat-icon",8),Ma(13," person "),Yo(),jo(14,"span",9),Ma(15),Yo(),Yo(),jo(16,"mat-menu",null,10),jo(18,"button",11),Jo("click",function(){return e.onLogOut()}),Ma(19),uu(20,"translate"),Yo(),Yo(),Yo(),Yo()),2&t){const t=Fo(17);Oo("ngStyle",su(18,qD,e.bgColor)),rr(2),Oo("ngStyle",su(20,$D,e.iconColor)),rr(3),Oo("innerHTML",e.logo,rs),rr(2),Oo("ngStyle",su(22,$D,e.textColor)),rr(1),Ea(lu(9,14,"HEADER.TITLE")),rr(2),Oo("ngStyle",su(24,$D,e.textColor)),rr(1),Oo("matMenuTriggerFor",t),rr(1),Oo("ngStyle",su(26,$D,e.iconColor)),rr(3),Da(" ",e.principal.user.titleBefore," ",e.principal.user.firstName," ",e.principal.user.middleName," ",e.principal.user.lastName," ",e.principal.user.titleAfter," "),rr(4),Ea(lu(20,16,"HEADER.LOGOUT"))}},directives:[UD,Vh,ok,BE,__,m_,AE,yE,pE],pipes:[rx],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}#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}.router-icon-scale[_ngcontent-%COMP%]{transform:scale(.75)}"]}),t})();function GD(t){return e=>e.lift(new JD(t))}class JD{constructor(t){this.value=t}call(t,e){return e.subscribe(new ZD(t,this.value))}}class ZD extends p{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}const QD=["*"];function XD(t,e){if(1&t){const t=qo();jo(0,"div",2),Jo("click",function(){return ze(t),ea()._onBackdropClicked()}),Yo()}2&t&&pa("mat-drawer-shown",ea()._isShowingBackdrop())}function tP(t,e){1&t&&(jo(0,"mat-drawer-content"),sa(1,2),Yo())}const eP=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],iP=["mat-drawer","mat-drawer-content","*"];function nP(t,e){if(1&t){const t=qo();jo(0,"div",2),Jo("click",function(){return ze(t),ea()._onBackdropClicked()}),Yo()}2&t&&pa("mat-drawer-shown",ea()._isShowingBackdrop())}function sP(t,e){1&t&&(jo(0,"mat-sidenav-content",3),sa(1,2),Yo())}const rP=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],oP=["mat-sidenav","mat-sidenav-content","*"],aP=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",cP={transformDrawer:dw("transform",[_w("open, open-instant",mw({transform:"none",visibility:"visible"})),_w("void",mw({"box-shadow":"none",visibility:"hidden"})),ww("void => open-instant",fw("0ms")),ww("void <=> open, open-instant => void",fw("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},uP=new Ji("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),lP=new Ji("MAT_DRAWER_CONTAINER");let hP=(()=>{class t extends Zk{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(Ho(Rc),Ho(rt(()=>fP)),Ho(sc),Ho(Jk),Ho(il))},t.\u0275cmp=Kt({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&fa("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[bo],ngContentSelectors:QD,decls:1,vars:0,template:function(t,e){1&t&&(na(),sa(0))},encapsulation:2,changeDetection:0}),t})(),dP=(()=>{class t{constructor(t,e,i,n,s,r,o){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=s,this._doc=r,this._container=o,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new k,this._animationEnd=new k,this._animationState="void",this.openedChange=new gu(!0),this._openedStream=this.openedChange.pipe(jd(t=>t),I(()=>{})),this.openedStart=this._animationStarted.pipe(jd(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),GD(void 0)),this._closedStream=this.openedChange.pipe(jd(t=>!t),I(()=>{})),this.closedStart=this._animationStarted.pipe(jd(t=>t.fromState!==t.toState&&"void"===t.toState),GD(void 0)),this._destroyed=new k,this.onPositionChanged=new gu,this._modeChanged=new k,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{ck(this._elementRef.nativeElement,"keydown").pipe(jd(t=>t.keyCode===B_&&!this.disableClose&&!V_(t)),Dk(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Ak((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=ey(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=ey(t)}get opened(){return this._opened}set opened(t){this.toggle(ey(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(dp(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Ny),Ho(Qy),Ho(uy),Ho(il),Ho(Il,8),Ho(lP,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&Zo("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(Lo("align",null),za("@transform",e._animationState),pa("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:QD,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(na(),jo(0,"div",0),sa(1),Yo())},directives:[Zk],encapsulation:2,data:{animation:[cP.transformDrawer]},changeDetection:0}),t})(),fP=(()=>{class t{constructor(t,e,i,n,s,r=!1,o){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=o,this._drawers=new _u,this.backdropClick=new gu,this._destroyed=new k,this._doCheckSubject=new k,this._contentMargins={left:null,right:null},this._contentMarginChanges=new k,t&&t.change.pipe(Dk(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(Dk(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=ey(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:ey(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(gp(this._allDrawers),Dk(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(gp(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Z_(10),Dk(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(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(jd(t=>t.fromState!==t.toState),Dk(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"!==t.mode&&t.openedChange.pipe(Dk(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Dk(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(dp(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Dk(V(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),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(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(Ho(aw,8),Ho(sc),Ho(il),Ho(Rc),Ho(Qk),Ho(uP),Ho(Jv,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(xu(i,hP,5),xu(i,dP,5)),2&t){let t;Mu(t=Ru())&&(e._content=t.first),Mu(t=Ru())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&Eu(hP,5),2&t){let t;Mu(t=Ru())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&pa("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Za([{provide:lP,useExisting:t}])],ngContentSelectors:iP,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(t,e){1&t&&(na(eP),Io(0,XD,1,2,"div",0),sa(1),sa(2,1),Io(3,tP,2,0,"mat-drawer-content",1)),2&t&&(Oo("ngIf",e.hasBackdrop),rr(3),Oo("ngIf",!e._content))},directives:[Oh,hP],styles:[aP],encapsulation:2,changeDetection:0}),t})(),pP=(()=>{class t extends hP{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Rc),Ho(rt(()=>mP)),Ho(sc),Ho(Jk),Ho(il))},t.\u0275cmp=Kt({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&fa("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[bo],ngContentSelectors:QD,decls:1,vars:0,template:function(t,e){1&t&&(na(),sa(0))},encapsulation:2,changeDetection:0}),t})(),gP=(()=>{class t extends dP{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=ey(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=iy(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=iy(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(Lo("align",null),fa("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),pa("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[bo],ngContentSelectors:QD,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(na(),jo(0,"div",0),sa(1),Yo())},directives:[Zk],encapsulation:2,data:{animation:[cP.transformDrawer]},changeDetection:0}),t})(),mP=(()=>{class t extends fP{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){if(1&t&&(xu(i,pP,5),xu(i,gP,5)),2&t){let t;Mu(t=Ru())&&(e._content=t.first),Mu(t=Ru())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&pa("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[Za([{provide:lP,useExisting:t}]),bo],ngContentSelectors:oP,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(na(rP),Io(0,nP,1,2,"div",0),sa(1),sa(2,1),Io(3,sP,2,0,"mat-sidenav-content",1)),2&t&&(Oo("ngIf",e.hasBackdrop),rr(3),Oo("ngIf",!e._content))},directives:[Oh,pP,Zk],styles:[aP],encapsulation:2,changeDetection:0}),t})(),_P=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[td,cA,ly,Xk],Xk,cA]}),t})(),yP=(()=>{class t{constructor(t){this.authResolver=t}getSideMenuItems(){const t=[];return this.authResolver.isCabinetAdmin()&&t.push({label:"MENU_ITEMS.ALL_PUBLICATIONS",icon:"perun-publications-white",isSVG:!0,link:"/all-publications",activatedRegex:"^/all-publications$",tabName:"all-publications"}),t.push({label:"MENU_ITEMS.MY_PUBLICATIONS",icon:"local_library",link:"/my-publications",activatedRegex:"^/my-publications$",tabName:"my-publications"}),t.push({label:"MENU_ITEMS.CREATE_PUBLICATION",icon:"add_box",link:"/create-publication",activatedRegex:"^/create-publication$",tabName:"create-publication"}),t.push({label:"MENU_ITEMS.AUTHORS",icon:"assignment_ind",link:"/authors",activatedRegex:"^/authors$",tabName:"authors"}),t.push({label:"MENU_ITEMS.CATEGORIES",icon:"all_inbox",link:"/categories",activatedRegex:"^/categories$",tabName:"categories"}),t.push({label:"MENU_ITEMS.PUBLICATION_SYSTEMS",icon:"assignment",link:"/publication-systems",activatedRegex:"^/publication-systems$",tabName:"publication-systems"}),t}}return t.\u0275fac=function(e){return new(e||t)(gn(Jf))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),wP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[cA],cA]}),t})();const bP=["*"],vP=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],AP=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class kP{}const TP=uA(hA(kP));class CP{}const SP=hA(CP),MP=new Ji("MatList"),EP=new Ji("MatNavList");let xP=(()=>{class t extends TP{constructor(){super(...arguments),this._stateChanges=new k}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[Za([{provide:EP,useExisting:t}]),bo,ue],ngContentSelectors:bP,decls:1,vars:0,template:function(t,e){1&t&&(na(),sa(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),RP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),DP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),PP=(()=>{class t extends SP{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new k,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Dk(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=ey(t)}ngAfterContentInit(){!function(t,e,i="mat"){t.changes.pipe(gp(t)).subscribe(({length:t})=>{RA(e,`${i}-2-line`,!1),RA(e,`${i}-3-line`,!1),RA(e,`${i}-multi-line`,!1),2===t||3===t?RA(e,`${i}-${t}-line`,!0):t>3&&RA(e,`${i}-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 t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(EP,8),Ho(MP,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(xu(i,RP,5),xu(i,DP,5),xu(i,xA,5)),2&t){let t;Mu(t=Ru())&&(e._avatar=t.first),Mu(t=Ru())&&(e._icon=t.first),Mu(t=Ru())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&pa("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[bo],ngContentSelectors:AP,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(t,e){1&t&&(na(vP),jo(0,"div",0),No(1,"div",1),sa(2),jo(3,"div",2),sa(4,1),Yo(),sa(5,2),Yo()),2&t&&(rr(1),Oo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[BA],encapsulation:2,changeDetection:0}),t})(),LP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[DA,jA,cA,NA,td],DA,cA,NA,wP]}),t})();function zP(t,e){1&t&&No(0,"mat-icon",6),2&t&&Oo("svgIcon",ea().$implicit.icon)}const IP=function(t){return{color:t}};function FP(t,e){if(1&t&&(jo(0,"mat-icon",7),Ma(1),Yo()),2&t){const t=ea().$implicit,e=ea();Oo("ngStyle",su(2,IP,e.iconColor)),rr(1),Ea(t.icon)}}function HP(t,e){if(1&t){const t=qo();jo(0,"mat-list-item",2),Jo("click",function(){return ze(t),ea().shouldHideMenu()}),Io(1,zP,1,1,"mat-icon",3),Io(2,FP,2,4,"mat-icon",4),jo(3,"span",5),Ma(4),uu(5,"translate"),Yo(),Yo()}if(2&t){const t=e.$implicit,i=ea();pa("activated",i.isActive(t.activatedRegex)),ra("routerLink",t.link),Oo("ngStyle",su(9,IP,i.textColor)),rr(1),Oo("ngIf",t.isSVG),rr(1),Oo("ngIf",!t.isSVG),rr(2),Ea(lu(5,7,t.label))}}let OP=(()=>{class t{constructor(t,e,i){this.sideMenuItemService=t,this.storeService=e,this.router=i,this.items=[],this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.iconColor=this.storeService.get("theme","sidemenu_item_icon_color"),this.currentUrl=i.url,i.events.subscribe(t=>{t instanceof Np&&(this.currentUrl=t.url)})}ngOnInit(){this.items=this.sideMenuItemService.getSideMenuItems()}isActive(t){return new RegExp(t).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}}return t.\u0275fac=function(e){return new(e||t)(Ho(yP),Ho(Yx),Ho(g_))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["disableRipple","","class","side-menu-item-height",3,"activated","ngStyle","routerLink","click",4,"ngFor","ngForOf"],["disableRipple","",1,"side-menu-item-height",3,"ngStyle","routerLink","click"],[3,"svgIcon",4,"ngIf"],[3,"ngStyle",4,"ngIf"],[1,"nav-caption","ml-3"],[3,"svgIcon"],[3,"ngStyle"]],template:function(t,e){1&t&&(jo(0,"mat-nav-list",0),Io(1,HP,6,11,"mat-list-item",1),Yo()),2&t&&(rr(1),Oo("ngForOf",e.items))},directives:[xP,Fh,PP,Vh,m_,Oh,BE],pipes:[rx],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}"]}),t})();function BP(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let jP=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.storeService=s,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(t=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)),this.dialogRef.close()})}getFullEmailBody(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(306).i8}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ho(px),Ho(sx),Ho($x),Ho(Ff),Ho(Yx))},t.\u0275cmp=Kt({type:t,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(t,e){if(1&t&&(jo(0,"h1",0),Ma(1),uu(2,"translate"),Yo(),jo(3,"div",1),jo(4,"mat-form-field"),jo(5,"mat-label"),Ma(6),uu(7,"translate"),Yo(),jo(8,"input",2,3),Jo("ngModelChange",function(t){return e.subject=t}),Yo(),Io(10,BP,3,3,"mat-error",4),Yo(),jo(11,"mat-form-field"),jo(12,"mat-label"),Ma(13),uu(14,"translate"),Yo(),jo(15,"textarea",5),Jo("ngModelChange",function(t){return e.message=t}),uu(16,"translate"),Ma(17," "),Yo(),jo(18,"mat-hint"),Ma(19),uu(20,"translate"),Yo(),Yo(),Yo(),jo(21,"div",6),jo(22,"div",7),jo(23,"button",8),Jo("click",function(){return e.close()}),Ma(24),uu(25,"translate"),Yo(),jo(26,"button",9),Jo("click",function(){return e.sendBugReport()}),Ma(27),uu(28,"translate"),Yo(),Yo(),Yo()),2&t){const t=Fo(9);rr(1),Ea(lu(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),rr(5),Ea(lu(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),rr(2),Oo("ngModel",e.subject),rr(2),Oo("ngIf",t.invalid),rr(3),Ea(lu(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),rr(2),ra("placeholder",lu(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),Oo("ngModel",e.message),rr(4),Ea(lu(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),rr(5),xa(" ",lu(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),rr(2),Oo("disabled",t.invalid),rr(1),xa(" ",lu(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[kx,Tx,EC,yC,wR,HC,ZS,cS,jS,Oh,_C,Cx,ok,dC],pipes:[rx],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),YP=(()=>{class t{transform(t,e,i){return t[`${i}_${e}`]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Jt({name:"localisedText",type:t,pure:!0}),t})();const NP=function(t){return{color:t}};function KP(t,e){if(1&t&&(jo(0,"i",16),Ma(1),Yo()),2&t){const t=ea().$implicit,e=ea(3);Oo("ngStyle",su(2,NP,e.linksTextColor)),rr(1),xa(" ",t.icon," ")}}function UP(t,e){if(1&t){const t=qo();jo(0,"span",17),Jo("click",function(){ze(t);const e=ea().$implicit;return ea(3).openDialog(e.dialog)}),Ma(1),uu(2,"localisedText"),Yo()}if(2&t){const t=ea().$implicit,e=ea(3);Oo("ngStyle",su(6,NP,e.linksTextColor)),rr(1),xa("",hu(2,2,t,e.language,"label")," ")}}function VP(t,e){if(1&t&&(jo(0,"a",18),Ma(1),uu(2,"localisedText"),Yo()),2&t){const t=ea().$implicit,e=ea(3);Oo("href",t.link,os)("ngStyle",su(7,NP,e.linksTextColor)),rr(1),Ea(hu(2,3,t,e.language,"label"))}}function qP(t,e){if(1&t&&(jo(0,"span",19),Ma(1),uu(2,"localisedText"),Yo()),2&t){const t=ea().$implicit,e=ea(3);Oo("ngStyle",su(6,NP,e.linksTextColor)),rr(1),Ea(hu(2,2,t,e.language,"label"))}}function $P(t,e){if(1&t&&(jo(0,"div",11),Io(1,KP,2,4,"i",12),Io(2,UP,3,8,"span",13),Io(3,VP,3,9,"a",14),Io(4,qP,3,8,"span",15),Yo()),2&t){const t=e.$implicit;rr(1),Oo("ngIf",t.icon),rr(1),Oo("ngIf",t.dialog),rr(1),Oo("ngIf",t.link&&!t.dialog),rr(1),Oo("ngIf",!t.link&&!t.dialog)}}function WP(t,e){if(1&t&&(jo(0,"div"),Io(1,$P,5,4,"div",10),Yo()),2&t){const t=ea().$implicit;rr(1),Oo("ngForOf",t.elements)}}function GP(t,e){if(1&t&&(jo(0,"div",7),jo(1,"h6",8),Ma(2),uu(3,"localisedText"),Yo(),Io(4,WP,2,1,"div",9),Yo()),2&t){const t=e.$implicit,i=ea();rr(1),Oo("ngStyle",su(7,NP,i.headersTextColor)),rr(1),xa(" ",hu(3,3,t,i.language,"title")," "),rr(2),Oo("ngIf",t.elements)}}function JP(t,e){if(1&t&&(jo(0,"span"),jo(1,"a",6),Ma(2),Yo(),Yo()),2&t){const t=e.$implicit,i=e.index,n=ea();rr(1),Oo("href",t.url,os)("ngStyle",su(3,NP,n.copyrightTextColor)),rr(1),Ea(i?", "+t.name:t.name)}}const ZP=function(t){return{background:t}};let QP=(()=>{class t{constructor(t,e,i){this.storeService=t,this.translateService=e,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),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.footerHeight=new gu}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{this.language=t.lang}),this.version=i(306).i8,this.items=this.storeService.get("footer","columns"),this.copyrightItems=this.storeService.get("footer","copyright_items"),this.getHeight()}openDialog(t){const e=Rx();switch(t){case"reportIssue":e.width="550px",this.dialog.open(jP,e)}}getHeight(){let t=1;for(const e of this.items)t=t{class t{constructor(t,e){this.storeService=t,this.sanitizer=e,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){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"):"",this.logoPadding="admin-gui"===this.application?this.storeService.get("logo_padding"):""}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return t.\u0275fac=function(e){return new(e||t)(Ho(Yx),Ho(Pd))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],["style"," display: flex; flex-direction: row;",4,"ngIf"],["style","padding-top: 16px",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"],[3,"ngStyle"],[1,"logo-container",3,"innerHTML","ngStyle"],[2,"display","flex","flex-direction","row"],[1,"router-icon-scale",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[2,"padding-top","16px"],[1,"ml-3",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(t,e){1&t&&(jo(0,"div",0),Io(1,eL,2,6,"div",1),Io(2,iL,3,1,"div",2),Io(3,nL,2,1,"div",3),Io(4,rL,2,4,"p",4),Yo(),jo(5,"div",5),jo(6,"div",6),jo(7,"div",7),No(8,"router-outlet"),Yo(),jo(9,"div",8),No(10,"perun-web-apps-footer"),Yo(),Yo(),Yo()),2&t&&(Oo("ngStyle",ru(6,oL,e.headerBackgroundColor,e.headerTextColor)),rr(1),Oo("ngIf","admin-gui"===e.application),rr(1),Oo("ngIf","publications"===e.application),rr(1),Oo("ngIf","user-profile"===e.application),rr(1),Oo("ngIf",!!e.headerTitle),rr(2),Oo("ngStyle",ru(9,aL,e.getContentInnerMinHeight(),e.contentBackgroundColor)))},directives:[Vh,Oh,w_,QP,BE],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}.router-icon-scale[_ngcontent-%COMP%]{transform:scale(.75);margin-top:.3rem}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}"]}),t})();const uL=function(t){return{background:t}},lL=function(t){return{"min-height":t}};function hL(t,e){if(1&t){const t=qo();jo(0,"div"),No(1,"perun-web-apps-header",1),jo(2,"mat-sidenav-container"),jo(3,"mat-sidenav",2,3),No(5,"perun-web-apps-side-menu",4),Yo(),jo(6,"mat-sidenav-content",5),jo(7,"div",6),No(8,"router-outlet"),Yo(),jo(9,"perun-web-apps-footer",7),Jo("footerHeight",function(e){return ze(t),ea().setContentHeight(e)}),Yo(),Yo(),Yo(),Yo()}if(2&t){const t=Fo(4),e=ea();rr(1),Oo("sideNav",t),rr(2),Oo("mode",e.sidebarMode)("ngStyle",su(7,uL,e.sideMenuBgColor))("opened",!e.isMobile()),rr(2),Oo("sideNav",t),rr(1),Oo("ngStyle",su(9,uL,e.contentBackgroundColor)),rr(1),Oo("ngStyle",su(11,lL,e.contentHeight))}}function dL(t,e){1&t&&(jo(0,"div"),No(1,"perun-web-apps-login-screen-base",8),uu(2,"translate"),Yo()),2&t&&(rr(1),Oo("application","publications")("headerTitle",lu(2,2,"HEADER.TITLE")))}let fL=(()=>{class t{constructor(t,e){this.store=t,this.initAuth=e,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)"}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}isMobile(){return window.innerWidth<=t.minWidth}setContentHeight(t){this.contentHeight="calc(100vh - 84px - "+t+"px)"}}return t.minWidth=992,t.\u0275fac=function(e){return new(e||t)(Ho(Yx),Ho(Ux))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-root"]],hostBindings:function(t,e){1&t&&Jo("resize",function(t){return e.getScreenSize(t)},!1,gs)},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"],[3,"footerHeight"],[3,"application","headerTitle"]],template:function(t,e){1&t&&(No(0,"perun-web-apps-notificator"),Io(1,hL,10,13,"div",0),Io(2,dL,3,4,"div",0)),2&t&&(rr(1),Oo("ngIf",!e.isLoginScreenShow),rr(1),Oo("ngIf",e.isLoginScreenShow))},directives:[OD,Oh,WD,mP,gP,Vh,OP,pP,w_,QP,cL],pipes:[rx],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}"]}),t})();class pL{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}let gL=(()=>{class t{constructor(t,e){this.http=t,this.storeService=e}initializeColors(t,e){return new Promise(i=>{e.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),this.setEntityTheme(t.entity,e)}),i()})}setEntityTheme(t,e){const i=(n=e,[mL(tinycolor(n).lighten(52),"50"),mL(tinycolor(n).lighten(37),"100"),mL(tinycolor(n).lighten(26),"200"),mL(tinycolor(n).lighten(12),"300"),mL(tinycolor(n).lighten(6),"400"),mL(tinycolor(n),"500"),mL(tinycolor(n).darken(6),"600"),mL(tinycolor(n).darken(12),"700"),mL(tinycolor(n).darken(18),"800"),mL(tinycolor(n).darken(24),"900"),mL(tinycolor(n).lighten(50).saturate(30),"A100"),mL(tinycolor(n).lighten(30).saturate(30),"A200"),mL(tinycolor(n).lighten(10).saturate(15),"A400"),mL(tinycolor(n).lighten(5).saturate(5),"A700")]);var n;for(const s of i){const e=`--${t}-theme-primary-contrast-${s.name}`,i=s.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${t}-theme-primary-${s.name}`,`${s.red},${s.green},${s.blue}`),document.documentElement.style.setProperty(e,i)}}loadAppDefaultConfig(){return new Promise(t=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setDefaultConfig(e),t()})})}loadAppInstanceConfig(){return new Promise(t=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setInstanceConfig(e);const i=document.location.hostname;void 0!==e.brandings&&void 0!==e.brandings[i]&&this.storeService.setBanding(i),t()},()=>{console.log("instance config not detected"),t()})})}getNoCacheHeaders(){return new Vd({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}}return t.\u0275fac=function(e){return new(e||t)(gn(cf),gn(Yx))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function mL(t,e){const i=tinycolor(t),n=i.toRgb();return{name:e,hex:i.toHexString(),darkContrast:i.isLight(),red:n.r,green:n.g,blue:n.b}}let _L=(()=>{class t{constructor(t,e,i,n,s,r){this.initAuthService=t,this.appConfigService=e,this.storeService=i,this.location=n,this.authzSevice=s,this.guiAuthResolver=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"}]}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.initAuthService.verifyAuth()).catch(t=>{throw console.error(t),this.location.go("/"),location.reload(),t}).then(t=>t?this.initAuthService.loadPrincipal().then(()=>this.loadPolicies()):this.initAuthService.handleAuthStart())}setApiUrl(){return new Promise(t=>{this.authzSevice.configuration.basePath=this.storeService.get("api_url"),t()})}loadPolicies(){return new Promise((t,e)=>{this.authzSevice.getAllPolicies().subscribe(e=>{this.guiAuthResolver.setPerunPolicies(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(gn(Ux),gn(gL),gn(Yx),gn(Jl),gn(Mf),gn(Jf))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const yL=new Ji("perun-api-service");let wL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[td,Sx,ak,ox]]}),t})();const bL=["*",[["mat-card-footer"]]],vL=["*","mat-card-footer"];let AL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),kL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),TL=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Jv,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&pa("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:vL,decls:2,vars:0,template:function(t,e){1&t&&(na(bL),sa(0),sa(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),CL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[cA],cA]}),t})();const SL=["input"],ML=function(t){return{enterDuration:t}},EL=["*"],xL=new Ji("mat-checkbox-default-options",{providedIn:"root",factory:RL});function RL(){return{color:"accent",clickAction:"check-indeterminate"}}let DL=0;const PL=RL(),LL={provide:zC,useExisting:rt(()=>HL),multi:!0};class zL{}class IL{constructor(t){this._elementRef=t}}const FL=dA(lA(hA(uA(IL))));let HL=(()=>{class t extends FL{constructor(t,e,i,n,s,r,o){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=r,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++DL,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new gu,this.indeterminateChange=new gu,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||PL,this.color=this.defaultColor=this._options.color||PL.color,this.tabIndex=parseInt(s)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=ey(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=ey(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=ey(t),e&&(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(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new zL;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(Qy),Ho(il),$i("tabindex"),Ho(Jv,8),Ho(xL,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(Eu(SL,5),Eu(BA,5)),2&t){let t;Mu(t=Ru())&&(e._inputElement=t.first),Mu(t=Ru())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(La("id",e.id),Lo("tabindex",null),pa("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Za([LL]),bo],ngContentSelectors:EL,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",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(t,e){if(1&t&&(na(),jo(0,"label",0,1),jo(2,"span",2),jo(3,"input",3,4),Jo("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),Yo(),jo(5,"span",5),No(6,"span",6),Yo(),No(7,"span",7),jo(8,"span",8),ci(),jo(9,"svg",9),No(10,"path",10),Yo(),ui(),No(11,"span",11),Yo(),Yo(),jo(12,"span",12,13),Jo("cdkObserveContent",function(){return e._onLabelTextChange()}),jo(14,"span",14),Ma(15,"\xa0"),Yo(),sa(16),Yo(),Yo()),2&t){const t=Fo(1),i=Fo(13);Lo("for",e.inputId),rr(2),pa("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),rr(1),Oo("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),Lo("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),rr(2),Oo("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",su(19,ML,"NoopAnimations"===e._animationMode?0:150))}},directives:[BA,Ty],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),OL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})(),BL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[jA,cA,Cy,OL],cA,OL]}),t})(),jL=0;const YL=new Ji("CdkAccordion");let NL=(()=>{class t{constructor(){this._stateChanges=new k,this._openCloseAllActions=new k,this.id="cdk-accordion-"+jL++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=ey(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Za([{provide:YL,useExisting:t}]),ue]}),t})(),KL=0,UL=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=h.EMPTY,this.closed=new gu,this.opened=new gu,this.destroyed=new gu,this.expandedChange=new gu,this.id="cdk-accordion-child-"+KL++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=ey(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(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(t){this._disabled=ey(t)}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(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(Ho(YL,12),Ho(Rc),Ho(Wk))},t.\u0275dir=Gt({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Za([{provide:YL,useValue:void 0}])]}),t})(),VL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})();const qL=["body"];function $L(t,e){}const WL=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],GL=["mat-expansion-panel-header","*","mat-action-row"];function JL(t,e){1&t&&No(0,"span",2),2&t&&Oo("@indicatorRotate",ea()._getExpandedState())}const ZL=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],QL=["mat-panel-title","mat-panel-description","*"],XL=new Ji("MAT_ACCORDION"),tz="225ms cubic-bezier(0.4,0.0,0.2,1)",ez={indicatorRotate:dw("indicatorRotate",[_w("collapsed, void",mw({transform:"rotate(0deg)"})),_w("expanded",mw({transform:"rotate(180deg)"})),ww("expanded <=> collapsed, void => collapsed",fw(tz))]),bodyExpansion:dw("bodyExpansion",[_w("collapsed, void",mw({height:"0px",visibility:"hidden"})),_w("expanded",mw({height:"*",visibility:"visible"})),ww("expanded <=> collapsed, void => collapsed",fw(tz))])};let iz=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),nz=0;const sz=new Ji("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let rz=(()=>{class t extends UL{constructor(t,e,i,n,s,r,o){super(t,e,i),this._viewContainerRef=n,this._animationMode=r,this._hideToggle=!1,this.afterExpand=new gu,this.afterCollapse=new gu,this._inputChanges=new k,this._headerId="mat-expansion-panel-header-"+nz++,this._bodyAnimationDone=new k,this.accordion=t,this._document=s,this._bodyAnimationDone.pipe(Ak((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=ey(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(gp(null),jd(()=>this.expanded&&!this._portal),dp(1)).subscribe(()=>{this._portal=new nT(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(Ho(XL,12),Ho(Rc),Ho(Wk),Ho(Nc),Ho(Il),Ho(Jv,8),Ho(sz,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&xu(i,iz,5),2&t){let t;Mu(t=Ru())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&Eu(qL,5),2&t){let t;Mu(t=Ru())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&pa("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Za([{provide:XL,useValue:void 0}]),bo,ue],ngContentSelectors:GL,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(na(WL),sa(0),jo(1,"div",0,1),Jo("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),jo(3,"div",2),sa(4,1),Io(5,$L,0,0,"ng-template",3),Yo(),sa(6,2),Yo()),2&t&&(rr(1),Oo("@bodyExpansion",e._getExpandedState())("id",e.id),Lo("aria-labelledby",e._headerId),rr(4),Oo("cdkPortalOutlet",e._portal))},directives:[cT],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ez.bodyExpansion]},changeDetection:0}),t})(),oz=(()=>{class t{constructor(t,e,i,n,s,r){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=r,this._parentChangeSubscription=h.EMPTY;const o=t.accordion?t.accordion._stateChanges.pipe(jd(t=>!(!t.hideToggle&&!t.togglePosition))):rp;this._parentChangeSubscription=V(t.opened,t.closed,o,t._inputChanges.pipe(jd(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(jd(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.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 t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case j_:case O_:V_(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(Ho(rz,1),Ho(sc),Ho(Qy),Ho(Rc),Ho(sz,8),Ho(Jv,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&Jo("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(Lo("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),fa("height",e._getHeaderHeight()),pa("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:QL,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(na(ZL),jo(0,"span",0),sa(1),sa(2,1),sa(3,2),Yo(),Io(4,JL,1,1,"span",1)),2&t&&(rr(4),Oo("ngIf",e._showToggle()))},directives:[Oh],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}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ez.indicatorRotate]},changeDetection:0}),t})(),az=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),cz=(()=>{class t extends NL{constructor(){super(...arguments),this._ownHeaders=new _u,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=ey(t)}ngAfterContentInit(){this._headers.changes.pipe(gp(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Hy(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){if(1&t&&xu(i,oz,5),2&t){let t;Mu(t=Ru())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&pa("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[Za([{provide:XL,useExisting:t}]),bo]}),t})(),uz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[td,cA,VL,uT]]}),t})(),lz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[DA,cA],DA,cA]}),t})();function hz(t,e){1&t&&sa(0)}const dz=["*"];let fz=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),pz=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),gz=0;const mz="edit",_z="done",yz="error",wz=new Ji("STEPPER_GLOBAL_OPTIONS");let bz=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this.interactedStream=new gu,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=ey(t)}get optional(){return this._optional}set optional(t){this._optional=ey(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=ey(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=ey(t)}_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))}}return t.\u0275fac=function(e){return new(e||t)(Ho(rt(()=>vz)),Ho(wz,8))},t.\u0275cmp=Kt({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){if(1&t&&xu(i,pz,5),2&t){let t;Mu(t=Ru())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&Eu(Ic,7),2&t){let t;Mu(t=Ru())&&(e.content=t.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[ue],ngContentSelectors:dz,decls:1,vars:0,template:function(t,e){1&t&&(na(),Io(0,hz,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),vz=(()=>{class t{constructor(t,e,i,n){this._dir=t,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new k,this.steps=new _u,this._linear=!1,this._selectedIndex=0,this.selectionChange=new gu,this._orientation="horizontal",this._groupId=gz++,this._document=n}get linear(){return this._linear}set linear(t){this._linear=ey(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var e;const i=iy(t);this.steps&&this._steps?(this._isValidIndex(t),null===(e=this.selected)||void 0===e||e._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}get orientation(){return this._orientation}set orientation(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===t)}ngAfterContentInit(){this._steps.changes.pipe(gp(this._steps),Dk(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new Hy(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Od()).pipe(gp(this._layoutDirection()),Dk(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),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._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(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?yz:!t.completed||e?"number":t.editable?mz:_z}_getGuidelineLogic(t,e,i="number"){return t._showError&&t.hasError&&!e?yz:t.completed&&!e?_z:t.completed&&e?i:t.editable&&e?mz:i}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=V_(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==j_&&i!==O_?n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_isValidIndex(t){return t>-1&&(!this.steps||t{class t{constructor(t){this._stepper=t,this.type="submit"}_handleClick(){this._stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(Ho(vz))},t.\u0275dir=Gt({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&Jo("click",function(){return e._handleClick()}),2&t&&La("type",e.type)},inputs:{type:"type"}}),t})(),kz=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(Ho(vz))},t.\u0275dir=Gt({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&Jo("click",function(){return e._handleClick()}),2&t&&La("type",e.type)},inputs:{type:"type"}}),t})(),Tz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[cw]]}),t})();function Cz(t,e){if(1&t&&Vo(0,8),2&t){const t=ea();Oo("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function Sz(t,e){if(1&t&&(jo(0,"span"),Ma(1),Yo()),2&t){const t=ea(2);rr(1),Ea(t._getDefaultTextForState(t.state))}}function Mz(t,e){if(1&t&&(jo(0,"mat-icon"),Ma(1),Yo()),2&t){const t=ea(2);rr(1),Ea(t._getDefaultTextForState(t.state))}}function Ez(t,e){1&t&&(Ko(0,9),Io(1,Sz,2,1,"span",10),Io(2,Mz,2,1,"mat-icon",11),Uo()),2&t&&(Oo("ngSwitch",ea().state),rr(1),Oo("ngSwitchCase","number"))}function xz(t,e){if(1&t&&(jo(0,"div",12),Vo(1,13),Yo()),2&t){const t=ea();rr(1),Oo("ngTemplateOutlet",t._templateLabel().template)}}function Rz(t,e){if(1&t&&(jo(0,"div",12),Ma(1),Yo()),2&t){const t=ea();rr(1),Ea(t.label)}}function Dz(t,e){if(1&t&&(jo(0,"div",14),Ma(1),Yo()),2&t){const t=ea();rr(1),Ea(t._intl.optionalLabel)}}function Pz(t,e){if(1&t&&(jo(0,"div",15),Ma(1),Yo()),2&t){const t=ea();rr(1),Ea(t.errorMessage)}}function Lz(t,e){}function zz(t,e){if(1&t&&(sa(0),Io(1,Lz,0,0,"ng-template",0)),2&t){const t=ea();rr(1),Oo("cdkPortalOutlet",t._portal)}}const Iz=["*"];function Fz(t,e){1&t&&No(0,"div",9)}const Hz=function(t,e){return{step:t,i:e}};function Oz(t,e){if(1&t&&(Ko(0),Vo(1,7),Io(2,Fz,1,0,"div",8),Uo()),2&t){const t=e.$implicit,i=e.index,n=e.last;ea(2);const s=Fo(4);rr(1),Oo("ngTemplateOutlet",s)("ngTemplateOutletContext",ru(3,Hz,t,i)),rr(1),Oo("ngIf",!n)}}function Bz(t,e){if(1&t){const t=qo();jo(0,"div",10),Jo("@horizontalStepTransition.done",function(e){return ze(t),ea(2)._animationDone.next(e)}),Vo(1,11),Yo()}if(2&t){const t=e.$implicit,i=e.index,n=ea(2);Oo("@horizontalStepTransition",n._getAnimationDirection(i))("id",n._getStepContentId(i)),Lo("aria-labelledby",n._getStepLabelId(i))("aria-expanded",n.selectedIndex===i),rr(1),Oo("ngTemplateOutlet",t.content)}}function jz(t,e){if(1&t&&(Ko(0),jo(1,"div",3),Io(2,Oz,3,6,"ng-container",4),Yo(),jo(3,"div",5),Io(4,Bz,2,5,"div",6),Yo(),Uo()),2&t){const t=ea();rr(2),Oo("ngForOf",t.steps),rr(2),Oo("ngForOf",t.steps)}}function Yz(t,e){if(1&t){const t=qo();jo(0,"div",13),Vo(1,7),jo(2,"div",14),jo(3,"div",15),Jo("@verticalStepTransition.done",function(e){return ze(t),ea(2)._animationDone.next(e)}),jo(4,"div",16),Vo(5,11),Yo(),Yo(),Yo(),Yo()}if(2&t){const t=e.$implicit,i=e.index,n=e.last,s=ea(2),r=Fo(4);rr(1),Oo("ngTemplateOutlet",r)("ngTemplateOutletContext",ru(9,Hz,t,i)),rr(1),pa("mat-stepper-vertical-line",!n),rr(1),Oo("@verticalStepTransition",s._getAnimationDirection(i))("id",s._getStepContentId(i)),Lo("aria-labelledby",s._getStepLabelId(i))("aria-expanded",s.selectedIndex===i),rr(2),Oo("ngTemplateOutlet",t.content)}}function Nz(t,e){if(1&t&&(Ko(0),Io(1,Yz,6,12,"div",12),Uo()),2&t){const t=ea();rr(1),Oo("ngForOf",t.steps)}}function Kz(t,e){if(1&t){const t=qo();jo(0,"mat-step-header",17),Jo("click",function(){return e.step.select()})("keydown",function(e){return ze(t),ea()._onKeydown(e)}),Yo()}if(2&t){const t=e.step,i=e.i,n=ea();pa("mat-horizontal-stepper-header","horizontal"===n.orientation)("mat-vertical-stepper-header","vertical"===n.orientation),Oo("tabIndex",n._getFocusIndex()===i?0:-1)("id",n._getStepLabelId(i))("index",i)("state",n._getIndicatorType(i,t.state))("label",t.stepLabel||t.label)("selected",n.selectedIndex===i)("active",t.completed||n.selectedIndex===i||!n.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple)("color",t.color||n.color),Lo("aria-posinset",i+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null)}}let Uz=(()=>{class t extends pz{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matStepLabel",""]],features:[bo]}),t})(),Vz=(()=>{class t{constructor(){this.changes=new k,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const qz={provide:Vz,deps:[[new bn,new vn,Vz]],useFactory:function(t){return t||new Vz}};class $z extends fz{constructor(t){super(t)}}const Wz=lA($z,"primary");let Gz=(()=>{class t extends Wz{constructor(t,e,i,n){super(i),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>n.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._elementRef,t,e):this._elementRef.nativeElement.focus(e)}_stringLabel(){return this.label instanceof Uz?null:this.label}_templateLabel(){return this.label instanceof Uz?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?`${this.index+1}`:"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Vz),Ho(Qy),Ho(sc),Ho(Rc))},t.\u0275cmp=Kt({type:t,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:[bo],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"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(No(0,"div",0),jo(1,"div"),jo(2,"div",1),Io(3,Cz,1,2,"ng-container",2),Io(4,Ez,3,2,"ng-container",3),Yo(),Yo(),jo(5,"div",4),Io(6,xz,2,1,"div",5),Io(7,Rz,2,1,"div",5),Io(8,Dz,2,1,"div",6),Io(9,Pz,2,1,"div",7),Yo()),2&t&&(Oo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),rr(1),Pa("mat-step-icon-state-",e.state," mat-step-icon"),pa("mat-step-icon-selected",e.selected),rr(1),Oo("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),rr(1),Oo("ngSwitchCase",!0),rr(2),pa("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),rr(1),Oo("ngIf",e._templateLabel()),rr(1),Oo("ngIf",e._stringLabel()),rr(1),Oo("ngIf",e.optional&&"error"!=e.state),rr(1),Oo("ngIf","error"==e.state))},directives:[BA,Nh,Kh,Uh,Oh,qh,BE],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.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,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const Jz={horizontalStepTransition:dw("horizontalStepTransition",[_w("previous",mw({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),_w("current",mw({transform:"none",visibility:"inherit"})),_w("next",mw({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),ww("* => *",fw("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:dw("verticalStepTransition",[_w("previous",mw({height:"0px",visibility:"hidden"})),_w("next",mw({height:"0px",visibility:"hidden"})),_w("current",mw({height:"*",visibility:"inherit"})),ww("* <=> current",fw("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let Zz=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),Qz=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["ng-template","matStepContent",""]]}),t})(),Xz=(()=>{class t extends bz{constructor(t,e,i,n){super(t,n),this._errorStateMatcher=e,this._viewContainerRef=i,this._isSelected=h.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(cp(()=>this._stepper.selectionChange.pipe(I(t=>t.selectedStep===this),gp(this._stepper.selected===this)))).subscribe(t=>{t&&this._lazyContent&&!this._portal&&(this._portal=new nT(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(Ho(rt(()=>nI)),Ho(EA,4),Ho(Nc),Ho(wz,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){if(1&t&&(xu(i,Uz,5),xu(i,Qz,5)),2&t){let t;Mu(t=Ru())&&(e.stepLabel=t.first),Mu(t=Ru())&&(e._lazyContent=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[Za([{provide:EA,useExisting:t},{provide:bz,useExisting:t}]),bo],ngContentSelectors:Iz,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(na(),Io(0,zz,2,1,"ng-template"))},directives:[cT],encapsulation:2,changeDetection:0}),t})(),tI=(()=>{class t extends vz{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,features:[bo]}),t})(),eI=(()=>{class t extends tI{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-horizontal-stepper"]],features:[bo]}),t})(),iI=(()=>{class t extends tI{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-vertical-stepper"]],features:[bo]}),t})(),nI=(()=>{class t extends vz{constructor(t,e,i,n){super(t,e,i,n),this.steps=new _u,this.animationDone=new gu,this.labelPosition="end",this._iconOverrides={},this._animationDone=new k;const s=i.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===s?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this.steps.changes.pipe(Dk(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Ak((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),Dk(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return new(e||t)(Ho(aw,8),Ho(Rc),Ho(sc),Ho(Il))},t.\u0275cmp=Kt({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,e,i){if(1&t&&(xu(i,Xz,5),xu(i,Zz,5)),2&t){let t;Mu(t=Ru())&&(e._steps=t),Mu(t=Ru())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&Eu(Gz,5),2&t){let t;Mu(t=Ru())&&(e._stepHeader=t)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,e){2&t&&(Lo("aria-orientation",e.orientation),pa("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[Za([{provide:vz,useExisting:t},{provide:eI,useExisting:t},{provide:iI,useExisting:t}]),bo],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(t,e){1&t&&(Ko(0,0),Io(1,jz,5,2,"ng-container",1),Io(2,Nz,2,1,"ng-container",1),Uo(),Io(3,Kz,1,22,"ng-template",null,2,zu)),2&t&&(Oo("ngSwitch",e.orientation),rr(1),Oo("ngSwitchCase","horizontal"),rr(1),Oo("ngSwitchCase","vertical"))},directives:[Nh,Kh,Fh,qh,Oh,Gz],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[Jz.horizontalStepTransition,Jz.verticalStepTransition]},changeDetection:0}),t})(),sI=(()=>{class t extends Az{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,e){2&t&&La("type",e.type)},inputs:{type:"type"},features:[bo]}),t})(),rI=(()=>{class t extends kz{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&La("type",e.type)},inputs:{type:"type"},features:[bo]}),t})(),oI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[qz,EA],imports:[[cA,td,uT,ak,Tz,jE,jA],cA]}),t})();const aI=["mat-calendar-body",""];function cI(t,e){if(1&t&&(jo(0,"tr",2),jo(1,"td",3),Ma(2),Yo(),Yo()),2&t){const t=ea();rr(1),fa("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Lo("colspan",t.numCols),rr(1),xa(" ",t.label," ")}}function uI(t,e){if(1&t&&(jo(0,"td",7),Ma(1),Yo()),2&t){const t=ea(2);fa("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Lo("colspan",t._firstRowOffset),rr(1),xa(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function lI(t,e){if(1&t){const t=qo();jo(0,"td",8),Jo("click",function(e){const i=ze(t).$implicit;return ea(2)._cellClicked(i,e)}),jo(1,"div",9),Ma(2),Yo(),No(3,"div",10),Yo()}if(2&t){const t=e.$implicit,i=e.index,n=ea().index,s=ea();fa("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),pa("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",s._isActiveCell(n,i))("mat-calendar-body-range-start",s._isRangeStart(t.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",s._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(t.compareValue,n,i))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(t.compareValue,n,i))("mat-calendar-body-comparison-start",s._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",s._isInPreview(t.compareValue)),Oo("ngClass",t.cssClasses)("tabindex",s._isActiveCell(n,i)?0:-1),Lo("data-mat-row",n)("data-mat-col",i)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",s._isSelected(t.compareValue)),rr(1),pa("mat-calendar-body-selected",s._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",s.todayValue===t.compareValue),rr(1),xa(" ",t.displayValue," ")}}function hI(t,e){if(1&t&&(jo(0,"tr",4),Io(1,uI,2,6,"td",5),Io(2,lI,4,46,"td",6),Yo()),2&t){const t=e.$implicit,i=e.index,n=ea();rr(1),Oo("ngIf",0===i&&n._firstRowOffset),rr(1),Oo("ngForOf",t)}}function dI(t,e){if(1&t&&(jo(0,"th",5),Ma(1),Yo()),2&t){const t=e.$implicit;Lo("aria-label",t.long),rr(1),Ea(t.narrow)}}const fI=["*"];function pI(t,e){}function gI(t,e){if(1&t){const t=qo();jo(0,"mat-month-view",5),Jo("activeDateChange",function(e){return ze(t),ea().activeDate=e})("_userSelection",function(e){return ze(t),ea()._dateSelected(e)}),Yo()}if(2&t){const t=ea();Oo("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function mI(t,e){if(1&t){const t=qo();jo(0,"mat-year-view",6),Jo("activeDateChange",function(e){return ze(t),ea().activeDate=e})("monthSelected",function(e){return ze(t),ea()._monthSelectedInYearView(e)})("selectedChange",function(e){return ze(t),ea()._goToDateInView(e,"month")}),Yo()}if(2&t){const t=ea();Oo("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function _I(t,e){if(1&t){const t=qo();jo(0,"mat-multi-year-view",7),Jo("activeDateChange",function(e){return ze(t),ea().activeDate=e})("yearSelected",function(e){return ze(t),ea()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return ze(t),ea()._goToDateInView(e,"year")}),Yo()}if(2&t){const t=ea();Oo("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function yI(t,e){}const wI=["button"];function bI(t,e){1&t&&(ci(),jo(0,"svg",3),No(1,"path",4),Yo())}const vI=[[["","matDatepickerToggleIcon",""]]],AI=["[matDatepickerToggleIcon]"];let kI=(()=>{class t{constructor(){this.changes=new k,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();class TI{constructor(t,e,i,n,s={},r=t,o){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=s,this.compareValue=r,this.rawValue=o}}let CI=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new gu,this.previewChange=new gu,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&SI(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(dp(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return MI(t,this.startValue,this.endValue)}_isRangeEnd(t){return EI(t,this.startValue,this.endValue)}_isInRange(t){return xI(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return MI(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let n=this.rows[e][i-1];if(!n){const t=this.rows[e-1];n=t&&t[t.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let n=this.rows[e][i+1];if(!n){const t=this.rows[e+1];n=t&&t[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(t){return EI(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return xI(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return MI(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return EI(t,this.previewStart,this.previewEnd)}_isInPreview(t){return xI(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(SI(t)?e=t:SI(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(il))},t.\u0275cmp=Kt({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[ue],attrs:aI,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"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(Io(0,cI,3,6,"tr",0),Io(1,hI,3,2,"tr",1)),2&t&&(Oo("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function SI(t){return"TD"===t.nodeName}function MI(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function xI(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}class RI{constructor(t,e){this.start=t,this.end=e}}let DI=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new k,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){const i=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:i})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return t.\u0275fac=function(e){return new(e||t)(gn(void 0),gn(mA))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),PI=(()=>{class t extends DI{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(gn(mA))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const LI={provide:DI,deps:[[new bn,new vn,DI],mA],useFactory:function(t,e){return t||new PI(e)}},zI=new Ji("MAT_DATE_RANGE_SELECTION_STRATEGY");let II=(()=>{class t{constructor(t,e,i,n,s){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rangeStrategy=s,this._rerenderSubscription=h.EMPTY,this.selectedChange=new gu,this._userSelection=new gu,this.activeDateChange=new gu,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof RI?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(gp(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,i=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.createDate(i,n,e);let r,o;this._selected instanceof RI?(r=this._getDateInCurrentMonth(this._selected.start),o=this._getDateInCurrentMonth(this._selected.end)):r=o=this._getDateInCurrentMonth(this._selected),r===e&&o===e||this.selectedChange.emit(s),this._userSelection.emit({value:s,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case Y_:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case K_:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case N_:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case U_:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case O_:case j_:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case B_:return void(null==this._previewEnd||V_(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const i=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof RI?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Rc),Ho(_A,8),Ho(mA,8),Ho(aw,8),Ho(zI,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&Eu(CI,5),2&t){let t;Mu(t=Ru())&&(e._matCalendarBody=t.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:[ue],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(jo(0,"table",0),jo(1,"thead",1),jo(2,"tr"),Io(3,dI,2,2,"th",2),Yo(),jo(4,"tr"),No(5,"th",3),Yo(),Yo(),jo(6,"tbody",4),Jo("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),Yo(),Yo()),2&t&&(rr(3),Oo("ngForOf",e._weekdays),rr(3),Oo("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[Fh,CI],encapsulation:2,changeDetection:0}),t})();const FI=24;let HI=(()=>{class t{constructor(t,e,i){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=h.EMPTY,this.selectedChange=new gu,this.yearSelected=new gu,this.activeDateChange=new gu,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),OI(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof RI?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(gp(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-BI(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,i=[];ethis._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case Y_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case K_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case N_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case U_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-BI(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,FI-BI(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:FI);break;case O_:case j_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return BI(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new TI(t,i,i,this._shouldEnableYear(t),n)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,i,n){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=h.EMPTY,this.selectedChange=new gu,this.monthSelected=new gu,this.activeDateChange=new gu,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof RI?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(gp(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(i);const n=this._dateAdapter.getNumDaysInMonth(i);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case Y_:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case K_:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case N_:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case U_:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case O_:case j_:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),n=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(i,"year"):void 0;return new TI(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,i,n,s){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this._buttonDescriptionId="mat-calendar-button-"+NI++,this.calendar.stateChanges.subscribe(()=>s.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)-BI(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+FI-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}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:FI)}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(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):OI(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(Ho(kI),Ho(rt(()=>UI)),Ho(mA,8),Ho(_A,8),Ho(Rc))},t.\u0275cmp=Kt({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:fI,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[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(t,e){1&t&&(na(),jo(0,"div",0),jo(1,"div",1),jo(2,"button",2),Jo("click",function(){return e.currentPeriodClicked()}),jo(3,"span"),Ma(4),Yo(),No(5,"div",3),Yo(),No(6,"div",4),sa(7),jo(8,"button",5),Jo("click",function(){return e.previousClicked()}),Yo(),jo(9,"button",6),Jo("click",function(){return e.nextClicked()}),Yo(),Yo(),Yo()),2&t&&(rr(2),Lo("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),rr(1),Lo("id",e._buttonDescriptionId),rr(1),Ea(e.periodButtonText),rr(1),pa("mat-calendar-invert","month"!==e.calendar.currentView),rr(3),Oo("disabled",!e.previousEnabled()),Lo("aria-label",e.prevButtonLabel),rr(1),Oo("disabled",!e.nextEnabled()),Lo("aria-label",e.nextButtonLabel))},directives:[ok,$y],encapsulation:2,changeDetection:0}),t})(),UI=(()=>{class t{constructor(t,e,i,n){this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new gu,this.yearSelected=new gu,this.monthSelected=new gu,this.viewChanged=new gu(!0),this._userSelection=new gu,this.stateChanges=new k,this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof RI?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new iT(this.headerComponent||KI),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof RI||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(Ho(kI),Ho(mA,8),Ho(_A,8),Ho(Rc))},t.\u0275cmp=Kt({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(Eu(II,5),Eu(YI,5),Eu(HI,5)),2&t){let t;Mu(t=Ru())&&(e.monthView=t.first),Mu(t=Ru())&&(e.yearView=t.first),Mu(t=Ru())&&(e.multiYearView=t.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[Za([LI]),ue],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(t,e){1&t&&(Io(0,pI,0,0,"ng-template",0),jo(1,"div",1),Io(2,gI,1,8,"mat-month-view",2),Io(3,mI,1,6,"mat-year-view",3),Io(4,_I,1,6,"mat-multi-year-view",4),Yo()),2&t&&(Oo("cdkPortalOutlet",e._calendarHeaderPortal),rr(1),Oo("ngSwitch",e.currentView),rr(1),Oo("ngSwitchCase","month"),rr(1),Oo("ngSwitchCase","year"),rr(1),Oo("ngSwitchCase","multi-year"))},directives:[cT,tw,Nh,Kh,II,YI,HI],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(33% / 7 - 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:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;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}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const VI={transformPanel:dw("transformPanel",[ww("void => enter-dropdown",fw("120ms cubic-bezier(0, 0, 0.2, 1)",yw([mw({opacity:0,transform:"scale(1, 0.8)"}),mw({opacity:1,transform:"scale(1, 1)"})]))),ww("void => enter-dialog",fw("150ms cubic-bezier(0, 0, 0.2, 1)",yw([mw({opacity:0,transform:"scale(0.7)"}),mw({transform:"none",opacity:1})]))),ww("* => void",fw("100ms linear",mw({opacity:0})))]),fadeInCalendar:dw("fadeInCalendar",[_w("void",mw({opacity:0})),_w("enter",mw({opacity:1})),ww("void => *",fw("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let qI=0;const $I=new Ji("mat-datepicker-scroll-strategy"),WI={provide:$I,deps:[jT],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class GI{constructor(t){this._elementRef=t}}const JI=lA(GI);let ZI=(()=>{class t extends JI{constructor(t,e,i,n,s,r){super(t),this._changeDetectorRef=e,this._globalModel=i,this._dateAdapter=n,this._rangeSelectionStrategy=s,this._subscriptions=new h,this._animationDone=new k,this._actionsPortal=null,this._closeButtonText=r.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){const e=this._model.selection,i=t.value,n=e instanceof RI;if(n&&this._rangeSelectionStrategy){const n=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(n,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(DI),Ho(mA),Ho(zI,8),Ho(kI))},t.\u0275cmp=Kt({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&Eu(UI,5),2&t){let t;Mu(t=Ru())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&Zo("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(za("@transformPanel",e._animationState),pa("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[bo],decls:5,vars:20,consts:[["cdkTrapFocus","",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(t,e){1&t&&(jo(0,"div",0),jo(1,"mat-calendar",1),Jo("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),Yo(),Io(2,yI,0,0,"ng-template",2),jo(3,"button",3),Jo("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),Ma(4),Yo(),Yo()),2&t&&(pa("mat-datepicker-content-container-with-actions",e._actionsPortal),rr(1),Oo("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),rr(1),Oo("cdkPortalOutlet",e._actionsPortal),rr(1),pa("cdk-visually-hidden",!e._closeButtonFocused),Oo("color",e.color||"primary"),rr(1),Ea(e._closeButtonText))},directives:[Ky,UI,zh,cT,ok],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[VI.transformPanel,VI.fadeInCalendar]},changeDetection:0}),t})(),QI=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c){this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=r,this._dir=o,this._model=c,this._inputStateChanges=h.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new gu,this.monthSelected=new gu,this.viewChanged=new gu(!0),this.openedStream=new gu,this.closedStream=new gu,this._opened=!1,this.id="mat-datepicker-"+qI++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new k,this._scrollStrategy=s}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=ey(t)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){const e=ey(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(t){this._restoreFocus=ey(t)}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=function(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}(t)}get opened(){return this._opened}set opened(t){ey(t)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(t){const e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){const t=this._overlayRef.getConfig().positionStrategy;t instanceof DT&&(this._setConnectedPositions(t),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal=t}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=vy(),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(dp(1)).subscribe(()=>this._destroyOverlay())}const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_applyPendingSelection(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const t=this.touchUi,e=this.datepickerInput.getOverlayLabelId(),i=new iT(ZI,this._viewContainerRef),n=this._overlayRef=this._overlay.create(new bT({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(t?"dialog":"popup")})),s=n.overlayElement;s.setAttribute("role","dialog"),e&&s.setAttribute("aria-labelledby",e),t&&s.setAttribute("aria-modal","true"),this._getCloseStream(n).subscribe(t=>{t&&t.preventDefault(),this.close()}),this._componentRef=n.attach(i),this._forwardContentValues(this._componentRef.instance),t||this._ngZone.onStable.pipe(dp(1)).subscribe(()=>n.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",s="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:s,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:s}])}_getCloseStream(t){return V(t.backdropClick(),t.detachments(),t.keydownEvents().pipe(jd(t=>t.keyCode===B_&&!V_(t)||this.datepickerInput&&V_(t,"altKey")&&t.keyCode===N_)))}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(jT),Ho(il),Ho(Nc),Ho($I),Ho(mA,8),Ho(aw,8),Ho(Il,8),Ho(DI))},t.\u0275dir=Gt({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[ue]}),t})(),XI=(()=>{class t extends QI{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275cmp=Kt({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Za([LI,{provide:QI,useExisting:t}]),bo],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();class tF{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let eF=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this.dateChange=new gu,this.dateInput=new gu,this.stateChanges=new k,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=h.EMPTY,this._localeSubscription=h.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMinDate();return!i||!e||this._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMaxDate();return!i||!e||this._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=ey(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this.dateInput.emit(new tF(this,this._elementRef.nativeElement)),this.dateChange.emit(new tF(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const i=Object.keys(t);for(let n of i){const{previousValue:i,currentValue:s}=t[n];if(!e.isDateInstance(i)||!e.isDateInstance(s))return!0;if(!e.sameDate(i,s))return!0}return!1})(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&t.keyCode===U_&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._dateAdapter.sameDate(i,this.value)?(t&&!this.value&&this._cvaOnChange(i),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(i),this._cvaOnChange(i),this.dateInput.emit(new tF(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new tF(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(mA,8),Ho(_A,8))},t.\u0275dir=Gt({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[ue]}),t})();const iF={provide:zC,useExisting:rt(()=>sF),multi:!0},nF={provide:jC,useExisting:rt(()=>sF),multi:!0};let sF=(()=>{class t extends eF{constructor(t,e,i,n){super(t,e,i),this._formField=n,this._closedSubscription=h.EMPTY,this._validator=KC.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._min)||(this._min=e,this._validatorOnChange())}get max(){return this._max}set max(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._max)||(this._max=e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&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(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(mA,8),Ho(_A,8),Ho(MC,8))},t.\u0275dir=Gt({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&Jo("input",function(t){return e._onInput(t.target.value)})("change",function(){return e._onChange()})("blur",function(){return e._onBlur()})("keydown",function(t){return e._onKeydown(t)}),2&t&&(La("disabled",e.disabled),Lo("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Za([iF,nF,{provide:pR,useExisting:t}]),bo]}),t})(),rF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),oF=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=h.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=ey(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker.stateChanges:Od(),e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Od(),i=this.datepicker?V(this.datepicker.openedStream,this.datepicker.closedStream):Od();this._stateChanges.unsubscribe(),this._stateChanges=V(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(Ho(kI),Ho(Rc),$i("tabindex"))},t.\u0275cmp=Kt({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){if(1&t&&xu(i,rF,5),2&t){let t;Mu(t=Ru())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&Eu(wI,5),2&t){let t;Mu(t=Ru())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&Jo("click",function(t){return e._open(t)}),2&t&&(Lo("tabindex",null)("data-mat-calendar",e.datepicker?e.datepicker.id:null),pa("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],ariaLabel:["aria-label","ariaLabel"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[ue],ngContentSelectors:AI,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(t,e){1&t&&(na(vI),jo(0,"button",0,1),Io(2,bI,2,0,"svg",2),sa(3),Yo()),2&t&&(Oo("disabled",e.disabled)("disableRipple",e.disableRipple),Lo("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e.ariaLabel||e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),rr(2),Oo("ngIf",!e._customIcon))},directives:[ok,Oh],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),t})(),aF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[kI,WI],imports:[[td,ak,qT,rw,uT,cA],Xk]}),t})();const cF=["mat-sort-header",""];function uF(t,e){if(1&t){const t=qo();jo(0,"div",3),Jo("@arrowPosition.start",function(){return ze(t),ea()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return ze(t),ea()._disableViewStateAnimation=!1}),No(1,"div",4),jo(2,"div",5),No(3,"div",6),No(4,"div",7),No(5,"div",8),Yo(),Yo()}if(2&t){const t=ea();Oo("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),rr(2),Oo("@indicator",t._getArrowDirectionState()),rr(1),Oo("@leftPointer",t._getArrowDirectionState()),rr(1),Oo("@rightPointer",t._getArrowDirectionState())}}const lF=["*"],hF=new Ji("MAT_SORT_DEFAULT_OPTIONS");class dF{}const fF=pA(uA(dF));let pF=(()=>{class t extends fF{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new k,this.start="asc",this._direction="",this.sortChange=new gu}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=ey(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,i,n;if(!t)return"";const s=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let r=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,s),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(Ho(hF,8))},t.\u0275dir=Gt({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[bo,ue]}),t})();const gF=rA.ENTERING+" "+sA.STANDARD_CURVE,mF={indicator:dw("indicator",[_w("active-asc, asc",mw({transform:"translateY(0px)"})),_w("active-desc, desc",mw({transform:"translateY(10px)"})),ww("active-asc <=> active-desc",fw(gF))]),leftPointer:dw("leftPointer",[_w("active-asc, asc",mw({transform:"rotate(-45deg)"})),_w("active-desc, desc",mw({transform:"rotate(45deg)"})),ww("active-asc <=> active-desc",fw(gF))]),rightPointer:dw("rightPointer",[_w("active-asc, asc",mw({transform:"rotate(45deg)"})),_w("active-desc, desc",mw({transform:"rotate(-45deg)"})),ww("active-asc <=> active-desc",fw(gF))]),arrowOpacity:dw("arrowOpacity",[_w("desc-to-active, asc-to-active, active",mw({opacity:1})),_w("desc-to-hint, asc-to-hint, hint",mw({opacity:.54})),_w("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",mw({opacity:0})),ww("* => asc, * => desc, * => active, * => hint, * => void",fw("0ms")),ww("* <=> *",fw(gF))]),arrowPosition:dw("arrowPosition",[ww("* => desc-to-hint, * => desc-to-active",fw(gF,yw([mw({transform:"translateY(-25%)"}),mw({transform:"translateY(0)"})]))),ww("* => hint-to-desc, * => active-to-desc",fw(gF,yw([mw({transform:"translateY(0)"}),mw({transform:"translateY(25%)"})]))),ww("* => asc-to-hint, * => asc-to-active",fw(gF,yw([mw({transform:"translateY(25%)"}),mw({transform:"translateY(0)"})]))),ww("* => hint-to-asc, * => active-to-asc",fw(gF,yw([mw({transform:"translateY(0)"}),mw({transform:"translateY(-25%)"})]))),_w("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",mw({transform:"translateY(0)"})),_w("hint-to-desc, active-to-desc, desc",mw({transform:"translateY(-25%)"})),_w("hint-to-asc, active-to-asc, asc",mw({transform:"translateY(25%)"}))]),allowChildren:dw("allowChildren",[ww("* <=> *",[vw("@*",bw(),{optional:!0})])])};let _F=(()=>{class t{constructor(){this.changes=new k}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const yF={provide:_F,deps:[[new bn,new vn,_F]],useFactory:function(t){return t||new _F}};class wF{}const bF=uA(wF);let vF=(()=>{class t extends bF{constructor(t,e,i,n,s,r){super(),this._intl=t,this._changeDetectorRef=e,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=r,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=ey(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.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(t){this._isDisabled()||t.keyCode!==j_&&t.keyCode!==O_||(t.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 t=this._viewState.fromState;return(t?`${t}-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()}_handleStateChanges(){this._rerenderSubscription=V(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 t.\u0275fac=function(e){return new(e||t)(Ho(_F),Ho(Rc),Ho(pF,8),Ho("MAT_SORT_HEADER_COLUMN_DEF",8),Ho(Qy),Ho(sc))},t.\u0275cmp=Kt({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&Jo("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(Lo("aria-sort",e._getAriaSortAttribute()),pa("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[bo],attrs:cF,ngContentSelectors:lF,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(na(),jo(0,"div",0),jo(1,"div",1),sa(2),Yo(),Io(3,uF,6,6,"div",2),Yo()),2&t&&(pa("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),Lo("tabindex",e._isDisabled()?null:0),rr(3),Oo("ngIf",e._renderArrow()))},directives:[Oh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[mF.indicator,mF.leftPointer,mF.rightPointer,mF.arrowOpacity,mF.arrowPosition,mF.allowChildren]},changeDetection:0}),t})(),AF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[yF],imports:[[td,cA]]}),t})(),kF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[jE,td]]}),t})();const TF=new Ji("mat-chips-default-options"),CF={separatorKeyCodes:[O_]};let SF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[EA,{provide:TF,useValue:CF}],imports:[[cA]]}),t})();function MF(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function EF(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function xF(t,e){const i=e?"":"none";EF(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function RF(t,e){const i=t.style;i.position=e?"":"fixed",i.top=i.opacity=e?"":"0",i.left=e?"":"-999em"}function DF(t,e){return e?t+" "+e:t}function PF(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function LF(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function zF(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function IF(t,e,i){const{top:n,bottom:s,left:r,right:o}=t;return i>=n&&i<=s&&e>=r&&e<=o}function FF(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function HF(t,e,i,n){const{top:s,right:r,bottom:o,left:a,width:c,height:u}=t,l=c*e,h=u*e;return n>s-h&&na-l&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:zF(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let r,o;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();r=t.top,o=t.left}else r=e.scrollTop,o=e.scrollLeft;const a=s.top-r,c=s.left-o;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&FF(t.clientRect,a,c)}),s.top=r,s.left=o,{top:a,left:c}}}function BF(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),i=this._dropContainer;if(!e)return void this._endDragSequence(t);i&&(i.isDragging()||i.isReceiving())||(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),t.preventDefault();const i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new OF(i,s),r.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=ey(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>xF(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>oy(t)),this._handles.forEach(t=>xF(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(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=oy(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,VF),e.addEventListener("touchstart",this._pointerDown,UF)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?oy(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&GF(this._rootElement),GF(this._anchor),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(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),xF(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),xF(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&GF(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&GF(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){JF(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,n=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),r=this._getShadowRoot();i.insertBefore(s,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),RF(t,!1),this._document.body.appendChild(i.replaceChild(n,t)),this._getPreviewInsertionPoint(i,r).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),n=JF(e),s=!n&&0!==e.button,r=this._rootElement,o=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||o)return;this._handles.length&&(this._rootElementTapHighlight=r.style.webkitTapHighlightColor||"",r.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=zF(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){RF(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(n),r=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s,dropPoint:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:s,dropPoint:n}),e.drop(this,i,this._initialIndex,this._initialContainer,r,s,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=ZF(s,this._document),this._previewRef=s,t.matchSize?QF(n,e):n.style.transform=$F(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=BF(t),QF(n,t.getBoundingClientRect()),this._initialTransform&&(n.style.transform=this._initialTransform)}return EF(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),xF(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=LF(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),r=LF(e,"transition-duration"),o=LF(e,"transition-delay");return PF(r[s])+PF(o[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=ZF(this._placeholderRef,this._document)):i=BF(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,r=JF(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:s.left-i.left+(r.pageX-s.left-o.left),y:s.top-i.top+(r.pageY-s.top-o.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=JF(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,s=i.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=n,e.y=s,e.matrixTransform(t.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,r=this._previewRect,o=s.top+e,a=s.bottom-(r.height-e);i=WF(i,s.left+t,s.right-(r.width-t)),n=WF(n,o,a)}return{x:i,y:n}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-s.x),o=Math.abs(i-s.y);return r>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,xF(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,VF),t.removeEventListener("touchstart",this._pointerDown,UF)}_applyRootElementTransform(t,e){const i=$F(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=DF(i,this._initialTransform)}_applyPreviewTransform(t,e){var i;const n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,s=$F(t,e);this._preview.style.transform=DF(s,n)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,r=n.right-i.right,o=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),r>0&&(t-=r)):t=0,i.height>n.height?(o>0&&(e+=o),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:JF(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&FF(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=by(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const t=this._document;return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}return oy(i)}}function $F(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function WF(t,e,i){return Math.max(e,Math.min(i,t))}function GF(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function JF(t){return"t"===t.type[0]}function ZF(t,e){const i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];const n=e.createElement("div");return i.forEach(t=>n.appendChild(t)),n}function QF(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=$F(e.left,e.top)}function XF(t,e){return Math.max(0,Math.min(e,t))}class tH{constructor(t,e,i,n,s){this._dragDropRegistry=e,this._ngZone=n,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new k,this.entered=new k,this.exited=new k,this.dropped=new k,this.sorted=new k,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=h.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new k,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=J_){return(!Mk(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=J_),new y(i=>(i.add(e.schedule(MF,t,{subscriber:i,counter:0,period:t})),i))}(0,dk).pipe(Dk(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?iH(t,-e):2===this._verticalScrollDirection&&iH(t,e),1===this._horizontalScrollDirection?nH(t,-e):2===this._horizontalScrollDirection&&nH(t,e)})},this.element=oy(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new OF(i,s)}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(t,e,i,n){let s;this._draggingStarted(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const r=this._activeDraggables,o=r.indexOf(t),a=t.getPlaceholderElement();let c=r[s];if(c===t&&(c=r[s+1]),o>-1&&r.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){const e=c.getRootElement();e.parentElement.insertBefore(a,e),r.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){const e=r[0].getRootElement();e.parentNode.insertBefore(a,e),r.unshift(t)}else oy(this.element).appendChild(a),r.push(t);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,r,o){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:s,distance:r,dropPoint:o})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=oy(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?eH("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!this._clientRect||!HF(this._clientRect,.05,e,i))return;const s=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===r&&s.length>0)return;const o="horizontal"===this._orientation,a=eH(s,e=>e.drag===t),c=s[r],u=c.clientRect,l=a>r?1:-1,h=this._getItemOffsetPx(s[a].clientRect,u,l),d=this._getSiblingOffsetPx(a,s,l),f=s.slice();!function(t,e,i){const n=XF(e,t.length-1),s=XF(i,t.length-1);if(n===s)return;const r=t[n],o=s{if(f[i]===e)return;const n=e.drag===t,s=n?h:d,r=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,o?(r.style.transform=DF(`translate3d(${Math.round(e.offset)}px, 0, 0)`,e.initialTransform),FF(e.clientRect,0,s)):(r.style.transform=DF(`translate3d(0, ${Math.round(e.offset)}px, 0)`,e.initialTransform),FF(e.clientRect,s,0))}),this._previousSwap.overlaps=IF(u,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=o?n.x:n.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((r,o)=>{o!==this._document&&r.clientRect&&!i&&HF(r.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=sH(e,n),r=rH(e,i);let o=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(o=1):t.scrollHeight-e>t.clientHeight&&(o=2)}if(r){const e=t.scrollLeft;1===r?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[o,a]}(o,r.clientRect,t,e),(n||s)&&(i=o))}),!n&&!s){const{width:r,height:o}=this._viewportRuler.getViewportSize(),a={width:r,height:o,top:0,right:r,bottom:o,left:0};n=sH(a,e),s=rH(a,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=oy(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=oy(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:zF(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=oy(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{var e;const i=t.getRootElement();if(i){const n=null===(e=this._itemPositions.find(e=>e.drag===t))||void 0===e?void 0:e.initialTransform;i.style.transform=n||""}}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,r=e[t+-1*i];let o=s[n?"width":"height"]*i;if(r){const t=n?"left":"top",e=n?"right":"bottom";-1===i?o-=r.clientRect[t]-s[e]:o+=s[t]-r.clientRect[e]}return o}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation,r=eH(this._itemPositions,({drag:r,clientRect:o},a,c)=>{if(r===t)return c.length<2;if(n){const t=s?n.x:n.y;if(r===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!IF(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=oy(this.element);return n===s||s.contains(n)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{FF(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=by(oy(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function eH(t,e){for(let i=0;i=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}function rH(t,e){const{left:i,right:n,width:s}=t,r=.05*s;return e>=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}const oH=_y({passive:!1,capture:!0});let aH=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new k,this.pointerUp=new k,this.scroll=new k,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,oH)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,oH)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:oH}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:oH}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(gn(il),gn(Il))},t.\u0275prov=dt({factory:function(){return new t(gn(il),gn(Il))},token:t,providedIn:"root"}),t})();const cH={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let uH=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=cH){return new qF(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new tH(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(gn(Il),gn(il),gn(Qk),gn(aH))},t.\u0275prov=dt({factory:function(){return new t(gn(Il),gn(il),gn(Qk),gn(aH))},token:t,providedIn:"root"}),t})(),lH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[uH],imports:[Xk]}),t})(),hH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})(),dH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({}),t})(),fH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[dH,cA],cA]}),t})(),pH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[jA,cA],cA]}),t})(),gH=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[td,tM,ak,BL,jE,lR,YM]]}),t})(),mH=(()=>{class t extends TA{format(t,e){return"input"===e?`${t.getDate().toString()}.${(t.getMonth()+1).toString()}.${t.getFullYear()}`:t.toDateString()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const _H={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 yH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[{provide:mA,useClass:mH},{provide:_A,useValue:_H}],imports:[[td,BL,kD,XS,SF,lH,ox,x_,AF,eE,lR,kF,jE,TE,ak,YM,xC,tM,bR,jA,Xx,hH,fH,aF,pH,tk,kM,gH,tT,Sx,ax]]}),t})(),wH=(()=>{class t{constructor(t){this.elementRef=t}ngOnInit(){this.elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t})(),bH=(()=>{class t{constructor(){}onClick(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),e=location.search;window.open(t+e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&Jo("mouseup",function(t){return e.onClick(t)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t})();i(6577);let vH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[td,CL,wP,uz,ak,lz,BL,jE,kD,Sx,lR,xC,bR,tT,XS,tM,oI,aF,MA,_P,LP,yH,TE,VD,AF,eE,YM,kM],CL,wP,uz,ak,lz,BL,jE,kD,Sx,lR,xC,bR,tT,XS,tM,oI,aF,MA,_P,LP,yH,TE,VD,AF,eE,YM,kM]}),t})(),AH=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.publication=this.data}ok(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ho(px),Ho(mx))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),jo(4,"div",2),Ma(5),Yo(),jo(6,"div",3),jo(7,"button",4),Jo("click",function(){return e.ok()}),Ma(8),uu(9,"translate"),Yo(),Yo(),Yo()),2&t&&(rr(2),Ea(lu(3,3,"DIALOGS.SHOW_CITE.TITLE")),rr(3),xa(" ",e.publication.main," "),rr(3),xa(" ",lu(9,5,"DIALOGS.SHOW_CITE.OK")," "))},directives:[kx,Tx,Cx,ok],pipes:[rx],styles:[""]}),t})();function kH(t,e){1&t&&(jo(0,"mat-icon",2),Ma(1," error "),Yo())}const TH=["*"];let CH=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:TH,decls:3,vars:7,consts:[[1,"perun-alert","d-flex","align-items-center"],["class","perun-warn-alert-icon",4,"ngIf"],[1,"perun-warn-alert-icon"]],template:function(t,e){1&t&&(na(),jo(0,"div",0),Io(1,kH,2,0,"mat-icon",1),sa(2),Yo()),2&t&&(pa("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("info-alert","info"===e.alert_type),rr(1),Oo("ngIf","error"!==e.alert_type))},directives:[Oh,BE],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%], .perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-warn-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{color:#000;background-color:#fae2e2;border-left:4px solid;border-color:#d32f2f}"]}),t})(),SH=(()=>{class t{transform(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Jt({name:"userFullName",type:t,pure:!0}),t})();function MH(t,e){if(1&t){const t=qo();jo(0,"th",18),jo(1,"mat-checkbox",19),Jo("change",function(e){ze(t);const i=ea();return e?i.masterToggle():null}),Yo(),Yo()}if(2&t){const t=ea();rr(1),Oo("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function EH(t,e){if(1&t){const t=qo();jo(0,"td",20),jo(1,"mat-checkbox",21),Jo("change",function(e){const i=ze(t).$implicit,n=ea();return e?n.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),Yo(),Yo()}if(2&t){const t=e.$implicit,i=ea();rr(1),Oo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function xH(t,e){1&t&&(jo(0,"th",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATIONS_LIST.TABLE_ID")))}function RH(t,e){if(1&t&&(jo(0,"td",20),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.id)}}function DH(t,e){1&t&&(jo(0,"th",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATIONS_LIST.TABLE_LOCK")))}function PH(t,e){if(1&t){const t=qo();jo(0,"button",24),Jo("click",function(){ze(t);const e=ea().$implicit;return ea().lockOrUnlockPublication(e)})("mouseenter",function(){return ze(t),ea(2).buttonPressed=!0})("mouseleave",function(){return ze(t),ea(2).buttonPressed=!1}),uu(1,"translate"),jo(2,"mat-icon"),Ma(3,"lock"),Yo(),Yo()}2&t&&ra("matTooltip",lu(1,1,"PUBLICATIONS_LIST.LOCKED"))}function LH(t,e){if(1&t){const t=qo();jo(0,"button",24),Jo("click",function(){ze(t);const e=ea().$implicit;return ea().lockOrUnlockPublication(e)})("mouseenter",function(){return ze(t),ea(2).buttonPressed=!0})("mouseleave",function(){return ze(t),ea(2).buttonPressed=!1}),uu(1,"translate"),jo(2,"mat-icon"),Ma(3,"lock_open"),Yo(),Yo()}2&t&&ra("matTooltip",lu(1,1,"PUBLICATIONS_LIST.UNLOCKED"))}function zH(t,e){if(1&t&&(jo(0,"td",20),Io(1,PH,4,3,"button",23),Io(2,LH,4,3,"button",23),Yo()),2&t){const t=e.$implicit;rr(1),Oo("ngIf",t.locked),rr(1),Oo("ngIf",!t.locked)}}function IH(t,e){1&t&&(jo(0,"th",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATIONS_LIST.TABLE_TITLE")))}function FH(t,e){if(1&t&&(jo(0,"td",20),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.title)}}function HH(t,e){1&t&&(jo(0,"th",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATIONS_LIST.TABLE_REPORTED_BY")))}function OH(t,e){if(1&t&&(jo(0,"span"),Ma(1),uu(2,"userFullName"),No(3,"br"),Yo()),2&t){const t=e.$implicit;rr(1),xa(" ",lu(2,1,t),"")}}function BH(t,e){if(1&t&&(jo(0,"td",20),Io(1,OH,4,3,"span",25),Yo()),2&t){const t=e.$implicit;rr(1),Oo("ngForOf",t.authors)}}function jH(t,e){1&t&&(jo(0,"th",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATIONS_LIST.TABLE_YEAR")))}function YH(t,e){if(1&t&&(jo(0,"td",20),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.year)}}function NH(t,e){1&t&&(jo(0,"th",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATIONS_LIST.TABLE_CATEGORY")))}function KH(t,e){if(1&t&&(jo(0,"td",20),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.categoryName)}}function UH(t,e){1&t&&(jo(0,"th",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATIONS_LIST.TABLE_THANKEDTO")))}function VH(t,e){if(1&t&&(jo(0,"span"),Ma(1),No(2,"br"),Yo()),2&t){const t=e.$implicit;rr(1),xa(" ",t.ownerName,"")}}function qH(t,e){if(1&t&&(jo(0,"td",20),Io(1,VH,3,1,"span",25),Yo()),2&t){const t=e.$implicit;rr(1),Oo("ngForOf",t.thanks)}}function $H(t,e){1&t&&(jo(0,"th",18),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATIONS_LIST.TABLE_CITE")))}function WH(t,e){if(1&t){const t=qo();jo(0,"td",20),jo(1,"button",26),Jo("click",function(){const e=ze(t).$implicit;return ea().showCite(e)})("mouseenter",function(){return ze(t),ea().buttonPressed=!0})("mouseleave",function(){return ze(t),ea().buttonPressed=!1}),Ma(2),uu(3,"translate"),Yo(),Yo()}2&t&&(rr(2),xa(" ",lu(3,1,"PUBLICATIONS_LIST.SHOW_CITE")," "))}function GH(t,e){1&t&&No(0,"tr",27)}const JH=function(t,e){return[t,e]};function ZH(t,e){if(1&t){const t=qo();jo(0,"tr",28),Jo("click",function(){const e=ze(t).$implicit,i=ea();return i.disabledRouting&&i.openInTab&&!i.buttonPressed?i.emitPublication(e):null}),Yo()}if(2&t){const t=e.$implicit,i=ea();Oo("perunWebAppsMiddleClickRouterLink",i.disabledRouting||i.buttonPressed?null:ru(2,JH,i.routerPath,t.id))("routerLink",i.disabledRouting||i.buttonPressed?null:ru(5,JH,i.routerPath,t.id))}}function QH(t,e){1&t&&(jo(0,"app-alert",29),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"PUBLICATIONS_LIST.NO_PUBLICATIONS_FOUND"),"\n"))}let XH=(()=>{class t{constructor(t,e,i,n,s){this.tableCheckbox=t,this.cabinetService=e,this.dialog=i,this.notificator=n,this.translate=s,this.selection=new $k(!0,[]),this.displayedColumns=["select","id","lock","title","reportedBy","year","category","thankedTo","cite"],this.pageSize=10,this.page=new gu,this.pageSizeOptions=Ex,this.disabledRouting=!1,this.openInTab=!1,this.allowAlert=!0,this.publicationSelector=new gu,this.buttonPressed=!1,s.get("PUBLICATIONS_LIST.CHANGE_LOCK_SUCCESS").subscribe(t=>this.changeLockMessage=t),s.get("PUBLICATIONS_LIST.LOCKED").subscribe(t=>this.locked=t),s.get("PUBLICATIONS_LIST.UNLOCKED").subscribe(t=>this.unlocked=t)}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new TD(this.publications),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"lock":return String(t.locked);case"title":return t.title;case"reportedBy":{let e="";return t.authors.forEach(t=>e+=xx(t)+";"),e.slice(0,-1)}case"year":return t.year.toString();case"category":return t.categoryName;case"thankedTo":{let e="";return t.thanks.forEach(t=>e+=t.ownerName+";"),e.slice(0,-1)}default:return t[e]}}exportData(t){Ix(zx(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.sortData=(t,e)=>Dx(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}itemSelectionToggle(t){this.selection.toggle(t)}showCite(t){const e=Rx();e.width="500px",e.data=t,this.dialog.open(AH,e)}lockOrUnlockPublication(t){this.cabinetService.lockPublications({publications:[this.createPublication(t)],lock:!t.locked}).subscribe(()=>{this.notificator.showSuccess(t.locked?this.changeLockMessage+this.unlocked:this.changeLockMessage+this.locked),t.locked=!t.locked})}createPublication(t){return{id:t.id,externalId:t.externalId,publicationSystemId:t.publicationSystemId,categoryId:t.categoryId,createdBy:t.createdBy,createdDate:t.createdDate,doi:t.doi,isbn:t.isbn,locked:t.locked,main:t.main,rank:t.rank,title:t.title,year:t.year}}emitPublication(t){return this.publicationSelector.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Zx),Ho(Ef),Ho(vx),Ho($x),Ho(sx))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-publications-list"]],viewQuery:function(t,e){if(1&t&&(Eu(pF,7),Eu(Bx,7)),2&t){let t;Mu(t=Ru())&&(e.matSort=t.first),Mu(t=Ru())&&(e.child=t.first)}},inputs:{publications:"publications",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",routerPath:"routerPath",disabledRouting:"disabledRouting",openInTab:"openInTab",allowAlert:"allowAlert"},outputs:{page:"page",publicationSelector:"publicationSelector"},features:[ue],decls:33,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","title","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","lock"],["matColumnDef","title"],["matColumnDef","reportedBy"],["matColumnDef","year"],["matColumnDef","category"],["matColumnDef","thankedTo"],["matColumnDef","cite"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-icon-button","",3,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click","mouseenter","mouseleave"],[4,"ngFor","ngForOf"],["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(t,e){1&t&&(jo(0,"div",0),jo(1,"perun-web-apps-table-wrapper",1),Jo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),jo(2,"table",2),Ko(3,3),Io(4,MH,2,3,"th",4),Io(5,EH,2,2,"td",5),Uo(),Ko(6,6),Io(7,xH,3,3,"th",7),Io(8,RH,2,1,"td",5),Uo(),Ko(9,8),Io(10,DH,3,3,"th",7),Io(11,zH,3,2,"td",5),Uo(),Ko(12,9),Io(13,IH,3,3,"th",7),Io(14,FH,2,1,"td",5),Uo(),Ko(15,10),Io(16,HH,3,3,"th",7),Io(17,BH,2,1,"td",5),Uo(),Ko(18,11),Io(19,jH,3,3,"th",7),Io(20,YH,2,1,"td",5),Uo(),Ko(21,12),Io(22,NH,3,3,"th",7),Io(23,KH,2,1,"td",5),Uo(),Ko(24,13),Io(25,UH,3,3,"th",7),Io(26,qH,2,1,"td",5),Uo(),Ko(27,14),Io(28,$H,3,3,"th",4),Io(29,WH,4,3,"td",5),Uo(),Io(30,GH,1,0,"tr",15),Io(31,ZH,1,8,"tr",16),Yo(),Yo(),Yo(),Io(32,QH,3,3,"app-alert",17)),2&t&&(Oo("hidden",0===e.dataSource.filteredData.length||0===e.publications.length),rr(1),Oo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),rr(1),Oo("dataSource",e.dataSource),rr(28),Oo("matHeaderRowDef",e.displayedColumns),rr(1),Oo("matRowDefColumns",e.displayedColumns),rr(1),Oo("ngIf",0===e.publications.length&&e.allowAlert))},directives:[Bx,fD,pF,mD,gD,pD,wD,bD,Oh,_D,HL,yD,vF,ok,OM,BE,Fh,vD,AD,bH,m_,CH],pipes:[rx,SH],styles:[".mat-column-title[_ngcontent-%COMP%]{width:40%}"]}),t})();function tO(t,e){1&t&&No(0,"mat-spinner",7)}const eO=function(){return["id","title","year"]};function iO(t,e){if(1&t&&(jo(0,"div",8),Ma(1),uu(2,"translate"),No(3,"perun-web-apps-publications-list",9),Yo()),2&t){const t=ea();rr(1),xa(" ",lu(2,4,"DIALOGS.REMOVE_PUBLICATION.WARNING")," "),rr(2),Oo("publications",t.publications)("routerPath",null)("displayedColumns",nu(6,eO))}}let nO=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.cabinetService=s,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)}):this.remove()},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(Ho(px),Ho(mx),Ho($x),Ho(sx),Ho(Ef))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),Io(4,tO,1,0,"mat-spinner",2),Io(5,iO,4,7,"div",3),jo(6,"div",4),jo(7,"button",5),Jo("click",function(){return e.cancel()}),Ma(8),uu(9,"translate"),Yo(),jo(10,"button",6),Jo("click",function(){return e.remove()}),Ma(11),uu(12,"translate"),Yo(),Yo(),Yo()),2&t&&(rr(2),Ea(lu(3,6,"DIALOGS.REMOVE_PUBLICATION.TITLE")),rr(2),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading),rr(3),xa(" ",lu(9,8,"DIALOGS.REMOVE_PUBLICATION.CANCEL")," "),rr(2),Oo("disabled",e.loading),rr(1),xa(" ",lu(12,10,"DIALOGS.REMOVE_PUBLICATION.REMOVE")," "))},directives:[kx,Oh,Cx,ok,uR,Tx,XH],pipes:[rx],styles:[""]}),t})();const sO="GUI_CONFIG.PREF_PAGE_SIZE.";let rO=(()=>{class t{constructor(){}getString(t){return localStorage.getItem(t)}getNumber(t){return parseInt(localStorage.getItem(t),10)}setNumber(t,e){localStorage.setItem(t,e.toString())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),oO=(()=>{class t{constructor(t){this.guiConfigService=t}getTablePageSize(t){const e=this.guiConfigService.getNumber(sO+t);if(!isNaN(e))return e;const i=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(i)?10:i}setTablePageSize(t,e){this.guiConfigService.setNumber(sO+t,e)}}return t.\u0275fac=function(e){return new(e||t)(gn(rO))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const aO="67",cO="68";let uO=(()=>{class t{constructor(){this.refresh=new gu}onClickbutton(t){this.refresh.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&(jo(0,"button",0),Jo("click",function(t){return e.onClickbutton(t)}),uu(1,"translate"),No(2,"mat-icon",1),Yo()),2&t&&(ra("matTooltip",lu(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),Oo("disabled",e.disabled),rr(2),ra("svgIcon",e.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[ok,OM,BE],pipes:[rx],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}"]}),t})();var lO=i(9609);const hO=i.n(lO)()||lO,dO=new Ji("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function(){return{useUtc:!1}}});function fO(t,e){const i=Array(t);for(let n=0;n{class t extends mA{constructor(t,e){super(),this._options=e,this.setLocale(t||hO.locale())}setLocale(t){super.setLocale(t);let e=hO.localeData(t);this._localeData={firstDayOfWeek:e.firstDayOfWeek(),longMonths:e.months(),shortMonths:e.monthsShort(),dates:fO(31,t=>this.createDate(2017,0,t+1).format("D")),longDaysOfWeek:e.weekdays(),shortDaysOfWeek:e.weekdaysShort(),narrowDaysOfWeek:e.weekdaysMin()}}getYear(t){return this.clone(t).year()}getMonth(t){return this.clone(t).month()}getDate(t){return this.clone(t).date()}getDayOfWeek(t){return this.clone(t).day()}getMonthNames(t){return"long"==t?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(t){return"long"==t?this._localeData.longDaysOfWeek:"short"==t?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(t){return this.clone(t).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(t){return this.clone(t).daysInMonth()}clone(t){return t.clone().locale(this.locale)}createDate(t,e,i){const n=this._createMoment({year:t,month:e,date:i}).locale(this.locale);return n.isValid(),n}today(){return this._createMoment().locale(this.locale)}parse(t,e){return t&&"string"==typeof t?this._createMoment(t,e,this.locale):t?this._createMoment(t).locale(this.locale):null}format(t,e){return t=this.clone(t),this.isValid(t),t.format(e)}addCalendarYears(t,e){return this.clone(t).add({years:e})}addCalendarMonths(t,e){return this.clone(t).add({months:e})}addCalendarDays(t,e){return this.clone(t).add({days:e})}toIso8601(t){return this.clone(t).format()}deserialize(t){let e;if(t instanceof Date)e=this._createMoment(t).locale(this.locale);else if(this.isDateInstance(t))return this.clone(t);if("string"==typeof t){if(!t)return null;e=this._createMoment(t,hO.ISO_8601).locale(this.locale)}return e&&this.isValid(e)?this._createMoment(e).locale(this.locale):super.deserialize(t)}isDateInstance(t){return hO.isMoment(t)}isValid(t){return this.clone(t).isValid()}invalid(){return hO.invalid()}_createMoment(t,e,i){const{strict:n,useUtc:s}=this._options||{};return s?hO.utc(t,e,i,n):hO(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(gn(gA,8),gn(dO,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),gO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({providers:[{provide:mA,useClass:pO,deps:[gA,dO]}]}),t})(),mO=(()=>{class t{constructor(){}ngOnInit(){this.endMaxYear=new Date,this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value}chosenYearHandler(t,e,i){t.setValue(e),this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value,i.close()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,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(t,e){if(1&t){const t=qo();jo(0,"mat-form-field",0),Jo("click",function(){return ze(t),Fo(7).open()}),jo(1,"mat-label"),Ma(2),uu(3,"translate"),Yo(),No(4,"input",1),No(5,"mat-datepicker-toggle",2),jo(6,"mat-datepicker",3,4),Jo("yearSelected",function(i){ze(t);const n=Fo(7);return e.chosenYearHandler(e.startYear,i,n)}),Yo(),Yo(),jo(8,"mat-form-field",0),Jo("click",function(){return ze(t),Fo(15).open()}),jo(9,"mat-label"),Ma(10),uu(11,"translate"),Yo(),No(12,"input",5),No(13,"mat-datepicker-toggle",2),jo(14,"mat-datepicker",3,6),Jo("yearSelected",function(i){ze(t);const n=Fo(15);return e.chosenYearHandler(e.endYear,i,n)}),Yo(),Yo()}if(2&t){const t=Fo(7),i=Fo(15);rr(2),Ea(lu(3,11,"PUBLICATION_FILTER.START_YEAR")),rr(2),Oo("matDatepicker",t)("max",e.startMaxYear)("formControl",e.startYear),rr(1),Oo("for",t),rr(5),Ea(lu(11,13,"PUBLICATION_FILTER.END_YEAR")),rr(2),Oo("matDatepicker",i)("min",e.endMinYear)("max",e.endMaxYear)("formControl",e.endYear),rr(1),Oo("for",i)}},directives:[EC,yC,wR,sF,HC,cS,VS,oF,AC,XI],pipes:[rx],styles:[".year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:auto!important}"]}),t})();function _O(t,e){if(1&t&&(jo(0,"mat-option",12),Ma(1),Yo()),2&t){const t=e.$implicit;Oo("value",t),rr(1),xa(" ",t.name," ")}}const yO=lO,wO={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let bO=(()=>{class t{constructor(t){this.cabinetService=t,this.title=new PS,this.code=new PS,this.startYear=new PS(yO()),this.endYear=new PS(yO()),this.filteredPublication=new gu}ngOnInit(){this.title.setValue(""),this.code.setValue(""),this.selectedCategory="no_value",this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.selectedMode="isbn/issn"})}filter(){const t={title:this.title.value,isbnissn:"isbn/issn"===this.selectedMode?this.code.value:null,doi:"doi"===this.selectedMode?this.code.value:null,category:"no_value"!==this.selectedCategory?this.selectedCategory.id:null,startYear:_h(this.startYear.value,"yyyy","en-GB"),endYear:_h(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 PS(yO()),this.endYear=new PS(yO()),this.filteredPublication.emit({title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null})}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ef))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-publication-filter"]],outputs:{filteredPublication:"filteredPublication"},features:[Za([{provide:mA,useClass:pO,deps:[gA]},{provide:_A,useValue:wO}])],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(t,e){1&t&&(jo(0,"div",0),jo(1,"mat-form-field",1),No(2,"input",2),uu(3,"translate"),Yo(),jo(4,"mat-form-field",1),jo(5,"mat-label"),Ma(6),uu(7,"translate"),Yo(),jo(8,"mat-select",3),Jo("valueChange",function(t){return e.selectedMode=t}),jo(9,"mat-option",4),Ma(10),uu(11,"translate"),Yo(),jo(12,"mat-option",5),Ma(13),uu(14,"translate"),Yo(),Yo(),Yo(),jo(15,"mat-form-field",6),No(16,"input",2),uu(17,"translate"),Yo(),jo(18,"mat-form-field",1),jo(19,"mat-label"),Ma(20),uu(21,"translate"),Yo(),jo(22,"mat-select",3),Jo("valueChange",function(t){return e.selectedCategory=t}),jo(23,"mat-option",7),Ma(24),uu(25,"translate"),Yo(),Io(26,_O,2,2,"mat-option",8),Yo(),Yo(),No(27,"perun-web-apps-year-range",9),jo(28,"button",10),Jo("click",function(){return e.filter()}),jo(29,"mat-icon"),Ma(30,"search"),Yo(),Ma(31),uu(32,"translate"),Yo(),jo(33,"button",11),Jo("click",function(){return e.clearFilter()}),jo(34,"mat-icon"),Ma(35,"search_off"),Yo(),Ma(36),uu(37,"translate"),Yo(),Yo()),2&t&&(rr(2),ra("placeholder",lu(3,16,"PUBLICATION_FILTER.TITLE_PLACEHOLDER")),Oo("formControl",e.title),rr(4),Ea(lu(7,18,"PUBLICATION_FILTER.SELECT_MODE")),rr(2),Oo("value",e.selectedMode),rr(2),Ea(lu(11,20,"PUBLICATION_FILTER.ISBN/ISSN")),rr(3),Ea(lu(14,22,"PUBLICATION_FILTER.DOI")),rr(3),ra("placeholder",lu(17,24,"PUBLICATION_FILTER.CODE_PLACEHOLDER")),Oo("formControl",e.code),rr(4),Ea(lu(21,26,"PUBLICATION_FILTER.SELECT_CATEGORY")),rr(2),Oo("value",e.selectedCategory),rr(2),Ea(lu(25,28,"PUBLICATION_FILTER.NO_CATEGORY_SELECTED")),rr(2),Oo("ngForOf",e.categories),rr(1),Oo("startYear",e.startYear)("endYear",e.endYear),rr(4),xa(" ",lu(32,30,"PUBLICATION_FILTER.FILTER")," "),rr(5),xa(" ",lu(37,32,"PUBLICATION_FILTER.CLEAR_FILTER")," "))},directives:[EC,wR,HC,cS,VS,yC,AM,QA,Fh,mO,ok,BE],pipes:[rx],styles:[".filter-field[_ngcontent-%COMP%]{max-width:250px!important;width:100%!important;min-width:auto!important}.disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:auto!important}"]}),t})();function vO(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-publications-list",10),Jo("page",function(e){return ze(t),ea().pageChanged(e)}),Yo()}if(2&t){const t=ea();Oo("publications",t.publications)("selection",t.selected)("routerPath","/all-publications")("pageSize",t.pageSize)}}function AO(t,e){1&t&&No(0,"mat-spinner",11)}let kO=(()=>{class t{constructor(t,e,i,n,s,r){this.route=t,this.cabinetService=e,this.tableConfigService=i,this.dialog=n,this.matIconRegistry=s,this.domSanitizer=r,this.selected=new $k(!0,[]),this.tableId=cO,this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}removePublication(){const t=Rx();t.width="500px",t.data=this.selected.selected,this.dialog.open(nO,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(null,null,null,null,null,null,null,null,null).subscribe(t=>{this.publications=t,this.loading=!1})}filterPublication(t){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(t.title,null,null,null,null,t.category,+t.startYear,+t.endYear,null).subscribe(t=>{this.publications=t,this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(Ho($g),Ho(Ef),Ho(oO),Ho(vx),Ho(RE),Ho(Pd))},t.\u0275cmp=Kt({type:t,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","pageSize","page",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publications","selection","routerPath","pageSize","page"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),No(2,"mat-icon",2),jo(3,"span",3),Ma(4),uu(5,"translate"),Yo(),Yo(),jo(6,"div",4),jo(7,"perun-web-apps-refresh-button",5),Jo("refresh",function(){return e.refreshTable()}),Yo(),jo(8,"button",6),Jo("click",function(){return e.removePublication()}),Ma(9),uu(10,"translate"),Yo(),jo(11,"perun-web-apps-publication-filter",7),Jo("filteredPublication",function(t){return e.filterPublication(t)}),Yo(),Yo(),Io(12,vO,1,4,"perun-web-apps-publications-list",8),Io(13,AO,1,0,"mat-spinner",9),Yo()),2&t&&(rr(4),Ea(lu(5,5,"ALL_PUBLICATIONS.TITLE")),rr(4),Oo("disabled",0===e.selected.selected.length),rr(1),xa(" ",lu(10,7,"ALL_PUBLICATIONS.REMOVE")," "),rr(3),Oo("ngIf",!e.loading),rr(1),Oo("ngIf",e.loading))},directives:[BE,uO,ok,bO,Oh,XH,uR],pipes:[rx],styles:[".publications-icon[_ngcontent-%COMP%]{height:32px;width:32px}"]}),t})();function TO(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-publications-list",11),Jo("page",function(e){return ze(t),ea(2).pageChanged(e)}),Yo()}if(2&t){const t=ea(2);Oo("publications",t.publications)("selection",t.selected)("pageSize",t.pageSize)("routerPath","/my-publications")}}function CO(t,e){if(1&t){const t=qo();jo(0,"div"),jo(1,"div",6),jo(2,"perun-web-apps-refresh-button",7),Jo("refresh",function(){return ze(t),ea().refreshTable()}),Yo(),jo(3,"button",8),Jo("click",function(){return ze(t),ea().removePublication()}),Ma(4),uu(5,"translate"),Yo(),jo(6,"perun-web-apps-publication-filter",9),Jo("filteredPublication",function(e){return ze(t),ea().filterPublication(e)}),Yo(),Yo(),Io(7,TO,1,4,"perun-web-apps-publications-list",10),Yo()}if(2&t){const t=ea();rr(3),Oo("disabled",0===t.selected.selected.length),rr(1),xa(" ",lu(5,3,"MY_PUBLICATIONS.REMOVE")," "),rr(3),Oo("ngIf",!t.loading)}}function SO(t,e){1&t&&No(0,"mat-spinner",12)}let MO=(()=>{class t{constructor(t,e,i,n,s){this.route=t,this.cabinetService=e,this.tableConfigService=i,this.dialog=n,this.authResolver=s,this.selected=new $k(!0,[]),this.tableId=cO}ngOnInit(){this.initLoading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.authResolver.getPerunPrincipal().subscribe(t=>{this.authorId=t.userId,this.initLoading=!1,this.refreshTable()})}removePublication(){const t=Rx();t.width="500px",t.data=this.selected.selected,this.dialog.open(nO,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(null,null,null,null,null,null,null,null,this.authorId).subscribe(t=>{this.publications=t,this.loading=!1})}filterPublication(t){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(t.title,null,null,null,null,t.category,+t.startYear,+t.endYear,this.authorId).subscribe(t=>{this.publications=t,this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(Ho($g),Ho(Ef),Ho(oO),Ho(vx),Ho(Mf))},t.\u0275cmp=Kt({type:t,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","pageSize","routerPath","page",4,"ngIf"],[3,"publications","selection","pageSize","routerPath","page"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),jo(2,"mat-icon",2),Ma(3,"local_library"),Yo(),jo(4,"span",3),Ma(5),uu(6,"translate"),Yo(),Yo(),Io(7,CO,8,5,"div",4),Io(8,SO,1,0,"mat-spinner",5),Yo()),2&t&&(rr(5),Ea(lu(6,3,"MY_PUBLICATIONS.TITLE")),rr(2),Oo("ngIf",!e.initLoading),rr(1),Oo("ngIf",e.loading||e.initLoading))},directives:[BE,Oh,uO,ok,bO,XH,uR],pipes:[rx],styles:[""]}),t})(),EO=(()=>{class t{constructor(t){this.router=t}importPublications(){this.router.navigate(["create-publication","import"])}createPublication(){this.router.navigate(["create-publication","create"])}}return t.\u0275fac=function(e){return new(e||t)(Ho(g_))},t.\u0275cmp=Kt({type:t,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",3,"click"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),jo(2,"span"),jo(3,"mat-icon",2),Ma(4,"add_box"),Yo(),Ma(5),uu(6,"translate"),Yo(),Yo(),jo(7,"div",3),jo(8,"div",4),jo(9,"mat-card",5),jo(10,"mat-card-title"),Ma(11),uu(12,"translate"),Yo(),jo(13,"mat-card-content",6),jo(14,"div"),Ma(15),uu(16,"translate"),Yo(),jo(17,"button",7),Jo("click",function(){return e.importPublications()}),Ma(18),uu(19,"translate"),Yo(),Yo(),Yo(),Yo(),jo(20,"div",4),jo(21,"mat-card",5),jo(22,"mat-card-title"),Ma(23),uu(24,"translate"),Yo(),jo(25,"mat-card-content",6),jo(26,"div"),Ma(27),uu(28,"translate"),Yo(),jo(29,"button",7),Jo("click",function(){return e.createPublication()}),Ma(30),uu(31,"translate"),Yo(),Yo(),Yo(),Yo(),Yo(),Yo()),2&t&&(rr(5),xa(" ",lu(6,7,"CREATE_PUBLICATION.TITLE")," "),rr(6),xa(" ",lu(12,9,"CREATE_PUBLICATION.IMPORT_TITLE")," "),rr(4),xa(" ",lu(16,11,"CREATE_PUBLICATION.IMPORT_HINT")," "),rr(3),xa(" ",lu(19,13,"CREATE_PUBLICATION.IMPORT")," "),rr(5),xa(" ",lu(24,15,"CREATE_PUBLICATION.CREATE_TITLE")," "),rr(4),xa(" ",lu(28,17,"CREATE_PUBLICATION.CREATE_HINT")," "),rr(3),xa(" ",lu(31,19,"CREATE_PUBLICATION.CREATE")," "))},directives:[BE,TL,kL,AL,ok],pipes:[rx],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}"]}),t})();const xO=["groupFilterInput"];let RO=(()=>{class t{constructor(){this.filter=new gu}ngOnInit(){ck(this.groupFilterInput.nativeElement,"keyup").pipe(I(t=>t.target.value),Z_(500),Ak()).subscribe(t=>{this.filter.emit(t)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(t,e){if(1&t&&Eu(xO,7),2&t){let t;Mu(t=Ru())&&(e.groupFilterInput=t.first)}},inputs:{placeholder:"placeholder"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-3"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(t,e){1&t&&(jo(0,"mat-form-field",0),No(1,"input",1,2),uu(3,"translate"),Yo()),2&t&&(rr(1),ra("placeholder",lu(3,1,e.placeholder)))},directives:[EC,wR],pipes:[rx],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t})();function DO(t,e){1&t&&No(0,"th",18)}function PO(t,e){if(1&t){const t=qo();jo(0,"td",19),jo(1,"mat-checkbox",20),Jo("change",function(e){const i=ze(t).$implicit,n=ea();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),Yo(),Yo()}if(2&t){const t=e.$implicit,i=ea();rr(1),Oo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function LO(t,e){1&t&&(jo(0,"th",21),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"AUTHORS_LIST.ID")))}function zO(t,e){if(1&t&&(jo(0,"td",19),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.id)}}function IO(t,e){1&t&&(jo(0,"th",21),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"AUTHORS_LIST.NAME")))}function FO(t,e){if(1&t&&(jo(0,"td",22),Ma(1),uu(2,"userFullName"),Yo()),2&t){const t=e.$implicit;rr(1),Ea(lu(2,1,t))}}function HO(t,e){1&t&&(jo(0,"th",21),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"AUTHORS_LIST.ORGANIZATION")))}function OO(t,e){if(1&t&&(jo(0,"td",22),Ma(1),Yo()),2&t){const t=e.$implicit,i=ea();rr(1),Ea(i.parseAttribute(t,"organization"))}}function BO(t,e){1&t&&(jo(0,"th",21),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"AUTHORS_LIST.EMAIL")))}function jO(t,e){if(1&t&&(jo(0,"td",22),Ma(1),Yo()),2&t){const t=e.$implicit,i=ea();rr(1),Ea(i.parseAttribute(t,"preferredMail"))}}function YO(t,e){1&t&&(jo(0,"th",21),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"AUTHORS_LIST.NUMBER_OF_PUBLICATIONS")))}function NO(t,e){if(1&t&&(jo(0,"td",22),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.authorships.length.toString())}}function KO(t,e){1&t&&No(0,"th",18)}function UO(t,e){if(1&t){const t=qo();jo(0,"td",19),jo(1,"button",23),Jo("click",function(){const e=ze(t).$implicit;return ea().onAddClick(e)}),Ma(2),uu(3,"translate"),Yo(),Yo()}2&t&&(rr(2),xa(" ",lu(3,1,"AUTHORS_LIST.ADD")," "))}function VO(t,e){1&t&&No(0,"th",18)}function qO(t,e){if(1&t){const t=qo();jo(0,"td",19),jo(1,"button",24),Jo("click",function(){const e=ze(t).$implicit;return ea().onRemoveClick(e)}),Ma(2),uu(3,"translate"),Yo(),Yo()}2&t&&(rr(2),xa(" ",lu(3,1,"AUTHORS_LIST.REMOVE")," "))}function $O(t,e){1&t&&No(0,"tr",25)}const WO=function(t){return["/authors",t]};function GO(t,e){if(1&t&&No(0,"tr",26),2&t){const t=e.$implicit,i=ea();Oo("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:su(2,WO,t.id))("routerLink",i.disableRouting?null:su(4,WO,t.id))}}function JO(t,e){1&t&&(jo(0,"app-alert",27),Ma(1),uu(2,"translate"),Yo()),2&t&&(Oo("alert_type","warn"),rr(1),xa(" ",lu(2,2,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ZO(t,e){1&t&&(jo(0,"app-alert",27),Ma(1),uu(2,"translate"),Yo()),2&t&&(Oo("alert_type","warn"),rr(1),xa(" ",lu(2,2,"AUTHORS_LIST.NO_AUTHORS"),"\n"))}let QO=(()=>{class t{constructor(){this.authors=[],this.pageSize=10,this.displayedColumns=["select","id","name","organization","email","numberOfPublications","add","remove"],this.disableRouting=!1,this.pageSizeOptions=Ex,this.page=new gu,this.addAuthor=new gu,this.removeAuthor=new gu}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new TD(this.authors),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getSortDataForColumn(t,e){var i;switch(e){case"id":return t.id.toString();case"name":return t.lastName?t.lastName:null!==(i=t.firstName)&&void 0!==i?i:"";case"organization":return Lx(t,"organization");case"email":return Lx(t,"preferredMail");case"numberOfPublications":return t.authorships.length.toString();default:return t[e]}}getFilterDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return function(t){let e="";return null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}(t);case"organization":return Lx(t,"organization");case"email":return Lx(t,"preferredMail");case"numberOfPublications":return t.authorships.length.toString();default:return t[e]}}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return xx(t);case"organization":return Lx(t,"organization");case"email":return Lx(t,"preferredMail");case"numberOfPublications":return t.authorships.length.toString();default:return t[e]}}exportData(t){Ix(zx(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}parseAttribute(t,e){let i="";return t.attributes&&t.attributes.forEach(t=>{t.friendlyName===e&&(i=t.value)}),i}checkboxLabel(t){return`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`}onAddClick(t){this.addAuthor.emit(t)}onRemoveClick(t){this.removeAuthor.emit(t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Px(t,e,this.displayedColumns,this.getFilterDataForColumn,this),this.dataSource.sortData=(t,e)=>Dx(t,e,this.getSortDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-authors-list"]],viewQuery:function(t,e){if(1&t&&(Eu(pF,7),Eu(Bx,7)),2&t){let t;Mu(t=Ru())&&(e.matSort=t.first),Mu(t=Ru())&&(e.child=t.first)}},inputs:{authors:"authors",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",disableRouting:"disableRouting",reloadTable:"reloadTable",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page",addAuthor:"addAuthor",removeAuthor:"removeAuthor"},features:[ue],decls:31,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","numberOfPublications"],["matColumnDef","add"],["matColumnDef","remove"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-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"],[3,"alert_type"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"perun-web-apps-table-wrapper",1),Jo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),jo(2,"table",2),Ko(3,3),Io(4,DO,1,0,"th",4),Io(5,PO,2,2,"td",5),Uo(),Ko(6,6),Io(7,LO,3,3,"th",7),Io(8,zO,2,1,"td",5),Uo(),Ko(9,8),Io(10,IO,3,3,"th",7),Io(11,FO,3,3,"td",9),Uo(),Ko(12,10),Io(13,HO,3,3,"th",7),Io(14,OO,2,1,"td",9),Uo(),Ko(15,11),Io(16,BO,3,3,"th",7),Io(17,jO,2,1,"td",9),Uo(),Ko(18,12),Io(19,YO,3,3,"th",7),Io(20,NO,2,1,"td",9),Uo(),Ko(21,13),Io(22,KO,1,0,"th",4),Io(23,UO,4,3,"td",5),Uo(),Ko(24,14),Io(25,VO,1,0,"th",4),Io(26,qO,4,3,"td",5),Uo(),Io(27,$O,1,0,"tr",15),Io(28,GO,1,6,"tr",16),Yo(),Yo(),Yo(),Io(29,JO,3,4,"app-alert",17),Io(30,ZO,3,4,"app-alert",17)),2&t&&(Oo("hidden",0===e.authors.length||0===e.dataSource.filteredData.length),rr(1),Oo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),rr(1),Oo("dataSource",e.dataSource),rr(25),Oo("matHeaderRowDef",e.displayedColumns),rr(1),Oo("matRowDefColumns",e.displayedColumns),rr(1),Oo("ngIf",0!==e.authors.length&&0===e.dataSource.filteredData.length),rr(1),Oo("ngIf",0===e.authors.length))},directives:[Bx,fD,pF,mD,gD,pD,wD,bD,Oh,_D,yD,HL,vF,ok,vD,AD,bH,m_,CH],pipes:[rx,SH],styles:[""]}),t})();function XO(t,e){1&t&&No(0,"mat-spinner",8)}const tB=function(){return["id","name","organization","email","numberOfPublications"]};function eB(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-authors-list",9),Jo("page",function(e){return ze(t),ea().pageChanged(e)}),Yo()}if(2&t){const t=ea();Oo("authors",t.authors)("displayedColumns",nu(4,tB))("filterValue",t.filterValue)("pageSize",t.pageSize)}}let iB=(()=>{class t{constructor(t,e){this.tableConfigService=t,this.cabinetService=e,this.filterValue="",this.tableId=aO}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetService.findAllAuthors().subscribe(t=>{this.authors=t,this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(Ho(oO),Ho(Ef))},t.\u0275cmp=Kt({type:t,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","pageSize","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"authors","displayedColumns","filterValue","pageSize","page"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),jo(2,"mat-icon",2),Ma(3,"assignment_ind"),Yo(),jo(4,"span",3),Ma(5),uu(6,"translate"),Yo(),Yo(),jo(7,"perun-web-apps-refresh-button",4),Jo("refresh",function(){return e.refreshTable()}),Yo(),jo(8,"perun-web-apps-debounce-filter",5),Jo("filter",function(t){return e.applyFilter(t)}),Yo(),Io(9,XO,1,0,"mat-spinner",6),Io(10,eB,1,5,"perun-web-apps-authors-list",7),Yo()),2&t&&(rr(5),Ea(lu(6,4,"AUTHORS_PAGE.TITLE")),rr(3),Oo("placeholder","AUTHORS_PAGE.FILTER"),rr(1),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[BE,uO,RO,Oh,uR,QO],pipes:[rx],styles:[""]}),t})();function nB(t,e){1&t&&No(0,"mat-spinner",4)}function sB(t,e){if(1&t){const t=qo();jo(0,"div"),jo(1,"div",5),jo(2,"mat-form-field"),No(3,"input",6),uu(4,"translate"),jo(5,"mat-error"),Ma(6),uu(7,"translate"),Yo(),Yo(),jo(8,"mat-form-field"),No(9,"input",6),uu(10,"translate"),jo(11,"mat-error"),Ma(12),uu(13,"translate"),Yo(),Yo(),jo(14,"p",7),Ma(15),uu(16,"translate"),Yo(),Yo(),jo(17,"div",8),jo(18,"button",9),Jo("click",function(){return ze(t),ea().onCancel()}),Ma(19),uu(20,"translate"),Yo(),jo(21,"div",10),uu(22,"translate"),jo(23,"button",11),Jo("click",function(){return ze(t),ea().onSubmit()}),Ma(24),uu(25,"translate"),Yo(),Yo(),Yo(),Yo()}if(2&t){const t=ea();rr(3),ra("placeholder",lu(4,12,"DIALOGS.ADD_CATEGORY.NAME")),Oo("formControl",t.nameCtrl),rr(3),xa(" ",lu(7,14,"DIALOGS.ADD_CATEGORY.FILL_NAME")," "),rr(3),ra("placeholder",lu(10,16,"DIALOGS.ADD_CATEGORY.RANK")),Oo("formControl",t.rankCtrl),rr(3),xa(" ",lu(13,18,"DIALOGS.ADD_CATEGORY.FILL_RANK")," "),rr(3),Ea(lu(16,20,"DIALOGS.ADD_CATEGORY.RANK_HINT")),rr(4),xa(" ",lu(20,22,"DIALOGS.ADD_CATEGORY.CANCEL")," "),rr(2),ra("matTooltip",lu(22,24,"DIALOGS.ADD_CATEGORY.TOOLTIP")),Oo("matTooltipDisabled",t.nameCtrl.valid&&t.rankCtrl.valid),rr(2),Oo("disabled",t.nameCtrl.invalid||t.rankCtrl.invalid),rr(1),xa(" ",lu(25,26,"DIALOGS.ADD_CATEGORY.CREATE")," ")}}let rB=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.notificator=e,this.cabinetManagerService=i,this.translate=n,n.get("DIALOGS.ADD_CATEGORY.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.nameCtrl=new PS(null,[KC.required,KC.pattern("^[\\w.-]+( [\\w.-]+)*$"),KC.maxLength(128)]),this.rankCtrl=new PS(null,[KC.required,KC.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.cabinetManagerService.createCategoryCat({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 t.\u0275fac=function(e){return new(e||t)(Ho(px),Ho($x),Ho(Ef),Ho(sx))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),Io(4,nB,1,0,"mat-spinner",2),Io(5,sB,26,28,"div",3),Yo()),2&t&&(rr(2),Ea(lu(3,3,"DIALOGS.ADD_CATEGORY.TITLE")),rr(2),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[kx,Oh,uR,Tx,EC,wR,HC,ZS,cS,VS,dC,Cx,ok,OM],pipes:[rx],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();function oB(t,e){1&t&&No(0,"mat-spinner",5)}function aB(t,e){1&t&&No(0,"th",14)}function cB(t,e){if(1&t&&(jo(0,"td",15),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),xa(" ",t.name," ")}}function uB(t,e){1&t&&No(0,"tr",16)}function lB(t,e){1&t&&No(0,"tr",17)}function hB(t,e){if(1&t&&(jo(0,"div",6),jo(1,"p"),Ma(2),uu(3,"translate"),Yo(),jo(4,"div",7),Ma(5),uu(6,"translate"),Yo(),jo(7,"table",8),Ko(8,9),Io(9,aB,1,0,"th",10),Io(10,cB,2,1,"td",11),Uo(),Io(11,uB,1,0,"tr",12),Io(12,lB,1,0,"tr",13),Yo(),Yo()),2&t){const t=ea();rr(2),xa(" ",lu(3,5,"DIALOGS.REMOVE_CATEGORY.DESCRIPTION")," "),rr(3),xa(" ",lu(6,7,"DIALOGS.REMOVE_CATEGORY.ASK")," "),rr(2),Oo("dataSource",t.dataSource),rr(4),Oo("matHeaderRowDef",t.displayedColumns),rr(1),Oo("matRowDefColumns",t.displayedColumns)}}function dB(t,e){if(1&t){const t=qo();jo(0,"div",18),jo(1,"button",19),Jo("click",function(){return ze(t),ea().onCancel()}),Ma(2),uu(3,"translate"),Yo(),jo(4,"button",20),Jo("click",function(){return ze(t),ea().onSubmit()}),Ma(5),uu(6,"translate"),Yo(),Yo()}if(2&t){const t=ea();rr(2),xa(" ",lu(3,3,"DIALOGS.REMOVE_CATEGORY.CANCEL")," "),rr(2),Oo("disabled",t.loading),rr(1),xa(" ",lu(6,5,"DIALOGS.REMOVE_CATEGORY.DELETE")," ")}}let fB=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.cabinetManagerService=s,this.displayedColumns=["name"],this.categories=[]}ngOnInit(){this.dataSource=new TD(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(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(Ho(px),Ho(mx),Ho($x),Ho(sx),Ho(Ef))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),Io(4,oB,1,0,"mat-spinner",2),Io(5,hB,13,9,"div",3),Io(6,dB,7,7,"div",4),Yo()),2&t&&(rr(2),Ea(lu(3,4,"DIALOGS.REMOVE_CATEGORY.TITLE")),rr(2),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[kx,Oh,uR,Tx,fD,mD,gD,pD,wD,bD,_D,yD,vD,AD,Cx,ok],pipes:[rx],styles:[""]}),t})();function pB(t,e){if(1&t&&(No(0,"input",3),uu(1,"translate")),2&t){const t=ea();ra("placeholder",lu(1,2,t.placeholder)),Oo("formControl",t.formControl)}}function gB(t,e){if(1&t&&(No(0,"input",4),uu(1,"translate")),2&t){const t=ea();ra("placeholder",lu(1,2,t.placeholder)),Oo("formControl",t.formControl)}}let mB=(()=>{class t{constructor(){this.filter=new gu,this.autoFocus=!1,this.formControl=new PS}ngOnInit(){this.formControl.valueChanges.subscribe(t=>{let e=t.trim();e=e.toLowerCase(),this.filter.emit(e)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","ml-2"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(jo(0,"mat-form-field",0),Io(1,pB,2,4,"input",1),Io(2,gB,2,4,"input",2),Yo()),2&t&&(rr(1),Oo("ngIf",e.autoFocus),rr(1),Oo("ngIf",!e.autoFocus))},directives:[EC,Oh,wR,HC,wH,cS,VS],pipes:[rx],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t})();function _B(t,e){1&t&&No(0,"mat-spinner",4)}function yB(t,e){if(1&t){const t=qo();jo(0,"div"),jo(1,"div",5),jo(2,"mat-form-field"),No(3,"input",6),uu(4,"translate"),jo(5,"mat-error"),Ma(6),uu(7,"translate"),Yo(),Yo(),jo(8,"p",7),Ma(9),uu(10,"translate"),Yo(),Yo(),jo(11,"div",8),jo(12,"button",9),Jo("click",function(){return ze(t),ea().onCancel()}),Ma(13),uu(14,"translate"),Yo(),jo(15,"div",10),uu(16,"translate"),jo(17,"button",11),Jo("click",function(){return ze(t),ea().onSubmit()}),Ma(18),uu(19,"translate"),Yo(),Yo(),Yo(),Yo()}if(2&t){const t=ea();rr(3),ra("placeholder",lu(4,9,"DIALOGS.UPDATE_RANK.RANK")),Oo("formControl",t.rankCtrl),rr(3),xa(" ",lu(7,11,"DIALOGS.UPDATE_RANK.FILL_RANK")," "),rr(3),Ea(lu(10,13,"DIALOGS.UPDATE_RANK.RANK_HINT")),rr(4),xa(" ",lu(14,15,"DIALOGS.UPDATE_RANK.CANCEL")," "),rr(2),ra("matTooltip",lu(16,17,"DIALOGS.UPDATE_RANK.TOOLTIP")),Oo("matTooltipDisabled",t.rankCtrl.valid),rr(2),Oo("disabled",t.rankCtrl.invalid),rr(1),xa(" ",lu(19,19,"DIALOGS.UPDATE_RANK.UPDATE")," ")}}let wB=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.cabinetManagerService=n,this.translate=s,this.categoryName="",s.get("DIALOGS.UPDATE_RANK.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.categoryName=this.data.name,this.rankCtrl=new PS(this.data.rank,[KC.required,KC.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 t.\u0275fac=function(e){return new(e||t)(Ho(px),Ho(mx),Ho($x),Ho(Ef),Ho(sx))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),Io(4,_B,1,0,"mat-spinner",2),Io(5,yB,20,21,"div",3),Yo()),2&t&&(rr(2),Ra("",lu(3,4,"DIALOGS.UPDATE_RANK.TITLE"),"",e.categoryName,""),rr(2),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[kx,Oh,uR,Tx,EC,wR,HC,ZS,cS,VS,dC,Cx,ok,OM],pipes:[rx],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();function bB(t,e){1&t&&No(0,"th",14)}function vB(t,e){if(1&t){const t=qo();jo(0,"td",15),jo(1,"mat-checkbox",16),Jo("change",function(e){const i=ze(t).$implicit,n=ea();return e?n.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),Yo(),Yo()}if(2&t){const t=e.$implicit,i=ea();rr(1),Oo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function AB(t,e){1&t&&(jo(0,"th",17),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"CATEGORIES_LIST.ID")))}function kB(t,e){if(1&t&&(jo(0,"td",15),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.id)}}function TB(t,e){1&t&&(jo(0,"th",17),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"CATEGORIES_LIST.NAME")))}function CB(t,e){if(1&t&&(jo(0,"td",18),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.name)}}function SB(t,e){1&t&&(jo(0,"th",17),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"CATEGORIES_LIST.RANK")))}function MB(t,e){if(1&t){const t=qo();jo(0,"td",18),Ma(1),jo(2,"button",19),Jo("click",function(){const e=ze(t).$implicit;return ea().updateCategory(e)}),jo(3,"mat-icon"),Ma(4,"edit"),Yo(),Yo(),Yo()}if(2&t){const t=e.$implicit;rr(1),Ea(t.rank)}}function EB(t,e){1&t&&No(0,"tr",20)}function xB(t,e){1&t&&No(0,"tr",21)}function RB(t,e){1&t&&(jo(0,"app-alert",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"CATEGORIES_PAGE.NO_FILTER_RESULTS"),"\n"))}let DB=(()=>{class t{constructor(t,e,i){this.guiAuthResolver=t,this.tableCheckbox=e,this.dialog=i,this.categories=[],this.selection=new $k(!0,[]),this.pageSize=10,this.displayedColumns=["select","id","name","rank"],this.pageSizeOptions=Ex,this.page=new gu,this.refreshTable=new gu}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new TD(this.categories),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"rank":return t.rank.toString();default:return t[e]}}exportData(t){Ix(zx(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Px(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Dx(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}itemSelectionToggle(t){this.selection.toggle(t)}updateCategory(t){const e=Rx();e.width="400px",e.data=t,this.dialog.open(wB,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}}return t.\u0275fac=function(e){return new(e||t)(Ho(Jf),Ho(Zx),Ho(vx))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-categories-list"]],viewQuery:function(t,e){if(1&t&&(Eu(pF,7),Eu(Bx,7)),2&t){let t;Mu(t=Ru())&&(e.matSort=t.first),Mu(t=Ru())&&(e.child=t.first)}},inputs:{categories:"categories",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page",refreshTable:"refreshTable"},features:[ue],decls:18,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","rank"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"perun-web-apps-table-wrapper",1),Jo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),jo(2,"table",2),Ko(3,3),Io(4,bB,1,0,"th",4),Io(5,vB,2,2,"td",5),Uo(),Ko(6,6),Io(7,AB,3,3,"th",7),Io(8,kB,2,1,"td",5),Uo(),Ko(9,8),Io(10,TB,3,3,"th",7),Io(11,CB,2,1,"td",9),Uo(),Ko(12,10),Io(13,SB,3,3,"th",7),Io(14,MB,5,1,"td",9),Uo(),Io(15,EB,1,0,"tr",11),Io(16,xB,1,0,"tr",12),Yo(),Yo(),Yo(),Io(17,RB,3,3,"app-alert",13)),2&t&&(Oo("hidden",0===e.dataSource.filteredData.length||0===e.categories.length),rr(1),Oo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),rr(1),Oo("dataSource",e.dataSource),rr(13),Oo("matHeaderRowDef",e.displayedColumns),rr(1),Oo("matRowDefColumns",e.displayedColumns),rr(1),Oo("ngIf",0===e.dataSource.filteredData.length&&0!==e.categories.length))},directives:[Bx,fD,pF,mD,gD,pD,wD,bD,Oh,_D,yD,HL,vF,ok,BE,vD,AD,CH],pipes:[rx],styles:[""]}),t})();function PB(t,e){if(1&t){const t=qo();jo(0,"button",8),Jo("click",function(){return ze(t),ea().addCategory()}),Ma(1),uu(2,"translate"),Yo()}2&t&&(rr(1),xa(" ",lu(2,1,"CATEGORIES_PAGE.CREATE")," "))}function LB(t,e){if(1&t){const t=qo();jo(0,"button",9),Jo("click",function(){return ze(t),ea().removeCategory()}),Ma(1),uu(2,"translate"),Yo()}2&t&&(Oo("disabled",!ea().selected.selected.length),rr(1),xa(" ",lu(2,2,"CATEGORIES_PAGE.REMOVE")," "))}function zB(t,e){1&t&&No(0,"mat-spinner",10)}const IB=function(){return["select","id","name","rank"]},FB=function(){return["name","rank"]};function HB(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-categories-list",11),Jo("refreshTable",function(){return ze(t),ea().refreshTable()})("page",function(e){return ze(t),ea().pageChanged(e)}),Yo()}if(2&t){const t=ea();Oo("categories",t.categories)("filterValue",t.filterValue)("displayedColumns",t.removeAuth?nu(5,IB):nu(6,FB))("pageSize",t.pageSize)("selection",t.selected)}}let OB=(()=>{class t{constructor(t,e,i,n){this.cabinetManagerService=t,this.tableConfigService=e,this.dialog=i,this.guiAuthResolver=n,this.categories=[],this.selected=new $k(!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(t=>{this.categories=t,this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}addCategory(){const t=Rx();t.width="400px",t.data={},this.dialog.open(rB,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeCategory(){const t=Rx();t.width="400px",t.data=this.selected.selected,this.dialog.open(fB,t).afterClosed().subscribe(t=>{t&&(this.selected.clear(),this.refreshTable())})}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ef),Ho(oO),Ho(vx),Ho(Jf))},t.\u0275cmp=Kt({type:t,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",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"categories","filterValue","displayedColumns","pageSize","selection","refreshTable","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"categories","filterValue","displayedColumns","pageSize","selection","refreshTable","page"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),jo(4,"perun-web-apps-refresh-button",2),Jo("refresh",function(){return e.refreshTable()}),Yo(),Io(5,PB,3,3,"button",3),Io(6,LB,3,4,"button",4),jo(7,"perun-web-apps-immediate-filter",5),Jo("filter",function(t){return e.applyFilter(t)}),Yo(),Io(8,zB,1,0,"mat-spinner",6),Io(9,HB,1,7,"perun-web-apps-categories-list",7),Yo()),2&t&&(rr(2),Ea(lu(3,6,"CATEGORIES_PAGE.TITLE")),rr(3),Oo("ngIf",e.addAuth),rr(1),Oo("ngIf",e.removeAuth),rr(1),Oo("placeholder","CATEGORIES_PAGE.FILTER"),rr(1),Oo("ngIf",e.loading),rr(1),Oo("ngIf",e.categories&&!e.loading))},directives:[uO,Oh,mB,ok,uR,DB],pipes:[rx],styles:[""]}),t})();function BB(t,e){1&t&&(jo(0,"th",14),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATION_SYSTEMS_LIST.ID")))}function jB(t,e){if(1&t&&(jo(0,"td",15),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.id)}}function YB(t,e){1&t&&(jo(0,"th",14),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATION_SYSTEMS_LIST.FRIENDLY_NAME")))}function NB(t,e){if(1&t&&(jo(0,"td",16),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.friendlyName)}}function KB(t,e){1&t&&(jo(0,"th",14),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATION_SYSTEMS_LIST.LOGIN_NAMESPACE")))}function UB(t,e){if(1&t&&(jo(0,"td",16),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea("empty"===t.loginNamespace?"":t.loginNamespace)}}function VB(t,e){1&t&&(jo(0,"th",14),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATION_SYSTEMS_LIST.URL")))}function qB(t,e){if(1&t&&(jo(0,"td",16),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea("empty"===t.url?"":t.url)}}function $B(t,e){1&t&&(jo(0,"th",14),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"PUBLICATION_SYSTEMS_LIST.TYPE")))}function WB(t,e){if(1&t&&(jo(0,"td",16),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea("empty"===t.type?"":t.type)}}function GB(t,e){1&t&&No(0,"tr",17)}function JB(t,e){1&t&&No(0,"tr",18)}function ZB(t,e){1&t&&(jo(0,"app-alert",19),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"NO_FILTER_RESULTS"),"\n"))}let QB=(()=>{class t{constructor(){this.publicationSystems=[],this.pageSize=10,this.displayedColumns=["id","friendlyName","loginNamespace","url","type"],this.pageSizeOptions=Ex,this.page=new gu}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new TD(this.publicationSystems),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"friendlyName":return t.friendlyName;case"url":return t.url;case"loginNamespace":return t.loginNamespace;case"type":return t.type;default:return t[e]}}exportData(t){Ix(zx(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Px(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Dx(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-publication-systems-list"]],viewQuery:function(t,e){if(1&t&&(Eu(pF,7),Eu(Bx,7)),2&t){let t;Mu(t=Ru())&&(e.matSort=t.first),Mu(t=Ru())&&(e.child=t.first)}},inputs:{publicationSystems:"publicationSystems",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},outputs:{page:"page"},features:[ue],decls:21,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["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(t,e){1&t&&(jo(0,"div",0),jo(1,"perun-web-apps-table-wrapper",1),Jo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),jo(2,"table",2),Ko(3,3),Io(4,BB,3,3,"th",4),Io(5,jB,2,1,"td",5),Uo(),Ko(6,6),Io(7,YB,3,3,"th",4),Io(8,NB,2,1,"td",7),Uo(),Ko(9,8),Io(10,KB,3,3,"th",4),Io(11,UB,2,1,"td",7),Uo(),Ko(12,9),Io(13,VB,3,3,"th",4),Io(14,qB,2,1,"td",7),Uo(),Ko(15,10),Io(16,$B,3,3,"th",4),Io(17,WB,2,1,"td",7),Uo(),Io(18,GB,1,0,"tr",11),Io(19,JB,1,0,"tr",12),Yo(),Yo(),Yo(),Io(20,ZB,3,3,"app-alert",13)),2&t&&(Oo("hidden",0===e.dataSource.filteredData.length||0===e.publicationSystems.length),rr(1),Oo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),rr(1),Oo("dataSource",e.dataSource),rr(16),Oo("matHeaderRowDef",e.displayedColumns),rr(1),Oo("matRowDefColumns",e.displayedColumns),rr(1),Oo("ngIf",0===e.dataSource.filteredData.length&&0!==e.publicationSystems.length))},directives:[Bx,fD,pF,mD,gD,pD,wD,bD,Oh,_D,vF,yD,vD,AD,CH],pipes:[rx],styles:[""]}),t})();function XB(t,e){1&t&&No(0,"mat-spinner",6)}function tj(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-publication-systems-list",7),Jo("page",function(e){return ze(t),ea().pageChanged(e)}),Yo()}if(2&t){const t=ea();Oo("publicationSystems",t.publicationSystems)("filterValue",t.filterValue)("pageSize",t.pageSize)}}let ej=(()=>{class t{constructor(t,e){this.cabinetManagerService=t,this.tableConfigService=e,this.publicationSystems=[],this.filterValue="",this.tableId="5"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetManagerService.getPublicationSystems().subscribe(t=>{this.publicationSystems=t,this.loading=!1})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ef),Ho(oO))},t.\u0275cmp=Kt({type:t,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","pageSize","page",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"publicationSystems","filterValue","pageSize","page"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),jo(4,"perun-web-apps-refresh-button",2),Jo("refresh",function(){return e.refreshTable()}),Yo(),jo(5,"perun-web-apps-immediate-filter",3),Jo("filter",function(t){return e.applyFilter(t)}),Yo(),Io(6,XB,1,0,"mat-spinner",4),Io(7,tj,1,3,"perun-web-apps-publication-systems-list",5),Yo()),2&t&&(rr(2),Ea(lu(3,4,"PUBLICATION_SYSTEMS_PAGE.TITLE")),rr(3),Oo("placeholder","PUBLICATION_SYSTEMS_PAGE.FILTER"),rr(1),Oo("ngIf",e.loading),rr(1),Oo("ngIf",e.publicationSystems&&!e.loading))},directives:[uO,mB,Oh,uR,QB],pipes:[rx],styles:[""]}),t})();function ij(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-publications-list",11),Jo("page",function(e){return ze(t),ea(2).pageChanged(e)}),Yo()}if(2&t){const t=ea(2);Oo("publications",t.publications)("selection",t.selected)("pageSize",t.pageSize)("routerPath","/authors/"+t.author.id+"/publication")}}function nj(t,e){if(1&t){const t=qo();jo(0,"div"),jo(1,"h5"),Ma(2),uu(3,"userFullName"),uu(4,"translate"),Yo(),jo(5,"div",6),jo(6,"perun-web-apps-refresh-button",7),Jo("refresh",function(){return ze(t),ea().refreshTable()}),Yo(),jo(7,"button",8),Jo("click",function(){return ze(t),ea().removePublication()}),Ma(8),uu(9,"translate"),Yo(),jo(10,"perun-web-apps-publication-filter",9),Jo("filteredPublication",function(e){return ze(t),ea().filterPublication(e)}),Yo(),Yo(),Io(11,ij,1,4,"perun-web-apps-publications-list",10),Yo()}if(2&t){const t=ea();rr(2),Ra("",lu(3,5,t.author),"",lu(4,7,"AUTHOR_DETAIL.TITLE"),""),rr(5),Oo("disabled",0===t.selected.selected.length),rr(1),xa(" ",lu(9,9,"AUTHOR_DETAIL.REMOVE")," "),rr(3),Oo("ngIf",!t.loading)}}function sj(t,e){1&t&&No(0,"mat-spinner",12)}let rj=(()=>{class t{constructor(t,e,i,n,s){this.route=t,this.cabinetService=e,this.tableConfigService=i,this.userService=n,this.dialog=s,this.selected=new $k(!0,[]),this.tableId=cO}ngOnInit(){this.initLoading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.route.params.subscribe(t=>{this.userService.getUserById(t.authorId).subscribe(t=>{this.author=t,this.initLoading=!1,this.refreshTable()})})}removePublication(){const t=Rx();t.width="500px",t.data=this.selected.selected,this.dialog.open(nO,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(null,null,null,null,null,null,null,null,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}filterPublication(t){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(t.title,null,null,null,null,t.category,+t.startYear,+t.endYear,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(Ho($g),Ho(Ef),Ho(oO),Ho(Yf),Ho(vx))},t.\u0275cmp=Kt({type:t,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","pageSize","routerPath","page",4,"ngIf"],[3,"publications","selection","pageSize","routerPath","page"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),jo(2,"mat-icon",2),Ma(3,"assignment_ind"),Yo(),jo(4,"span",3),Ma(5),uu(6,"translate"),Yo(),Yo(),Io(7,nj,12,11,"div",4),Io(8,sj,1,0,"mat-spinner",5),Yo()),2&t&&(rr(5),Ea(lu(6,3,"AUTHORS_PAGE.TITLE")),rr(2),Oo("ngIf",!e.initLoading),rr(1),Oo("ngIf",e.loading||e.initLoading))},directives:[BE,Oh,uO,ok,bO,XH,uR],pipes:[rx,SH],styles:[""]}),t})();const oj=function(){return["id","name","organization","email","add"]};function aj(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-authors-list",14),Jo("addAuthor",function(e){return ze(t),ea(3).addAuthor(e)})("page",function(e){return ze(t),ea(3).pageChangedAuthors(e)}),Yo()}if(2&t){const t=ea(3);Oo("authors",t.authors)("disableRouting",!0)("pageSize",t.pageSizeAuthors)("displayedColumns",nu(4,oj))}}function cj(t,e){1&t&&(jo(0,"app-alert",15),Ma(1),uu(2,"translate"),Yo()),2&t&&(Oo("alert_type","info"),rr(1),xa(" ",lu(2,2,"DIALOGS.ADD_AUTHORS.SEARCH_INFO")," "))}function uj(t,e){if(1&t&&(jo(0,"div"),Io(1,aj,1,5,"perun-web-apps-authors-list",13),Io(2,cj,3,4,"app-alert",12),Yo()),2&t){const t=ea(2);rr(1),Oo("ngIf",t.firstSearchDone),rr(1),Oo("ngIf",!t.firstSearchDone)}}function lj(t,e){1&t&&No(0,"mat-spinner",16)}const hj=function(){return["id","name","organization","email","remove"]};function dj(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-authors-list",18),Jo("removeAuthor",function(e){return ze(t),ea(3).removeAuthor(e)})("page",function(e){return ze(t),ea(3).pageChangedAuthorsToAdd(e)}),Yo()}if(2&t){const t=ea(3);Oo("reloadTable",t.reloadTable)("authors",t.authorsToAdd)("disableRouting",!0)("pageSize",t.pageSizeAddAuthors)("displayedColumns",nu(5,hj))}}function fj(t,e){if(1&t&&(jo(0,"div"),Io(1,dj,1,6,"perun-web-apps-authors-list",17),Yo()),2&t){const t=ea(2);rr(1),Oo("ngIf",t.firstSearchDone)}}function pj(t,e){1&t&&(jo(0,"app-alert",15),Ma(1),uu(2,"translate"),Yo()),2&t&&(Oo("alert_type","warn"),rr(1),xa(" ",lu(2,2,"DIALOGS.ADD_AUTHORS.NO_AUTHORS_TO_ADD")," "))}function gj(t,e){if(1&t&&(jo(0,"div"),Io(1,uj,3,2,"div",6),Io(2,lj,1,0,"mat-spinner",7),jo(3,"h2",11),Ma(4),uu(5,"translate"),Yo(),Io(6,fj,2,1,"div",6),Io(7,pj,3,4,"app-alert",12),Yo()),2&t){const t=ea();rr(1),Oo("ngIf",!t.searchLoading),rr(1),Oo("ngIf",t.searchLoading),rr(2),Ea(lu(5,5,"DIALOGS.ADD_AUTHORS.AUTHORS_TO_ADD")),rr(2),Oo("ngIf",t.firstSearchDone&&0!==t.authorsToAdd.length),rr(1),Oo("ngIf",0===t.authorsToAdd.length)}}function mj(t,e){1&t&&No(0,"mat-spinner",16)}let _j=(()=>{class t{constructor(t,e,i,n,s,r){this.dialogRef=t,this.data=e,this.notificator=i,this.tableConfigService=n,this.cabinetService=s,this.translate=r,this.loading=!1,this.searchLoading=!1,this.firstSearchDone=!1,this.authors=[],this.alreadyAddedAuthors=[],this.authorsToAdd=[],this.tableIdAuthors=aO,this.selection=new $k(!1,[]),this.reloadTable=!1,r.get("DIALOGS.ADD_AUTHORS.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),this.publicationId=e.publicationId,this.alreadyAddedAuthors=e.alreadyAddedAuthors}ngOnInit(){this.searchControl=new PS("",[KC.required,KC.pattern(".*[\\S]+.*")]),this.pageSizeAuthors=5,this.pageSizeAddAuthors=5}onSearchByString(){this.searchLoading=!0;const t=[...this.alreadyAddedAuthors,...this.authorsToAdd];this.cabinetService.findNewAuthors(this.searchControl.value).subscribe(e=>{e=e.filter(e=>t.map(t=>t.id).indexOf(e.id)<=-1),this.authors=e,this.firstSearchDone=!0,this.searchLoading=!1},()=>{this.searchLoading=!1})}onAdd(){if(this.loading=!0,this.authorsToAdd.length){const t=this.authorsToAdd.pop();this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publicationId,userId:t.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(t){this.authors=this.authors.filter(e=>e!==t),this.authorsToAdd.push(t),this.reloadTable=!this.reloadTable}removeAuthor(t){this.authorsToAdd=this.authorsToAdd.filter(e=>e!==t)}pageChangedAuthors(t){this.pageSizeAuthors=t.pageSize,this.tableConfigService.setTablePageSize(this.tableIdAuthors,t.pageSize)}pageChangedAuthorsToAdd(t){this.pageSizeAddAuthors=t.pageSize,this.tableConfigService.setTablePageSize(this.tableIdAuthors,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(Ho(px),Ho(mx),Ho($x),Ho(oO),Ho(Ef),Ho(sx))},t.\u0275cmp=Kt({type:t,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"],[3,"alert_type",4,"ngIf"],[3,"authors","disableRouting","pageSize","displayedColumns","addAuthor","page",4,"ngIf"],[3,"authors","disableRouting","pageSize","displayedColumns","addAuthor","page"],[3,"alert_type"],[1,"ml-auto","mr-auto"],[3,"reloadTable","authors","disableRouting","pageSize","displayedColumns","removeAuthor","page",4,"ngIf"],[3,"reloadTable","authors","disableRouting","pageSize","displayedColumns","removeAuthor","page"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),jo(4,"div",2),jo(5,"mat-form-field",3),jo(6,"label"),jo(7,"input",4),Jo("keyup.enter",function(){return e.onSearchByString()}),uu(8,"translate"),Yo(),Yo(),jo(9,"mat-error"),Ma(10),uu(11,"translate"),Yo(),Yo(),jo(12,"button",5),Jo("click",function(){return e.onSearchByString()}),jo(13,"mat-icon"),Ma(14,"search"),Yo(),Yo(),Io(15,gj,8,7,"div",6),Yo(),Io(16,mj,1,0,"mat-spinner",7),jo(17,"div",8),jo(18,"button",9),Jo("click",function(){return e.onCancel()}),Ma(19),uu(20,"translate"),Yo(),jo(21,"button",10),Jo("click",function(){return e.onAdd()}),Ma(22),uu(23,"translate"),Yo(),Yo(),Yo()),2&t&&(rr(2),Ea(lu(3,10,"DIALOGS.ADD_AUTHORS.TITLE")),rr(5),ra("placeholder",lu(8,12,"DIALOGS.ADD_AUTHORS.SEARCH_PLACEHOLDER")),Oo("formControl",e.searchControl),rr(3),xa(" ",lu(11,14,"DIALOGS.ADD_AUTHORS.EMPTY_SEARCH_MESSAGE")," "),rr(2),Oo("disabled",e.searchLoading||""===e.searchControl.value.trim()),rr(3),Oo("ngIf",!e.loading),rr(1),Oo("ngIf",e.loading),rr(3),xa(" ",lu(20,16,"DIALOGS.ADD_AUTHORS.CANCEL")," "),rr(2),Oo("disabled",0===e.authorsToAdd.length||e.loading),rr(1),xa(" ",lu(23,18,"DIALOGS.ADD_AUTHORS.ADD")," "))},directives:[kx,Tx,EC,wR,HC,cS,VS,dC,ok,BE,Oh,Cx,QO,CH,uR],pipes:[rx],styles:[".top-margin[_ngcontent-%COMP%]{margin-top:15px}.adjust-width[_ngcontent-%COMP%]{width:300px}"]}),t})();function yj(t,e){if(1&t){const t=qo();jo(0,"button",6),Jo("click",function(){return ze(t),ea().onAddAuthors()}),Ma(1),uu(2,"translate"),Yo()}2&t&&(rr(1),xa(" ",lu(2,1,"PUBLICATION_DETAIL.ADD")," "))}function wj(t,e){if(1&t){const t=qo();jo(0,"button",7),Jo("click",function(){return ze(t),ea().onRemoveAuthors()}),Ma(1),uu(2,"translate"),Yo()}if(2&t){const t=ea();Oo("disabled",0===t.selection.selected.length||t.publication.locked),rr(1),xa(" ",lu(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function bj(t,e){1&t&&No(0,"mat-spinner",8)}const vj=function(){return["id","name","organization","email"]},Aj=function(){return["select","id","name","organization","email"]};function kj(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-authors-list",9),Jo("page",function(e){return ze(t),ea().pageChanged(e)}),Yo()}if(2&t){const t=ea();Oo("authors",t.publication.authors)("selection",t.selection)("filterValue",t.filterValue)("pageSize",t.pageSize)("displayedColumns",t.publication.locked?nu(5,vj):nu(6,Aj))}}let Tj=(()=>{class t{constructor(t,e,i,n,s){this.dialog=t,this.cabinetService=e,this.notificator=i,this.translate=n,this.tableConfigService=s,this.selection=new $k(!0,[]),this.filterValue="",this.loading=!1,this.tableId=aO}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refresh()}refresh(){this.loading=!0,this.cabinetService.findAuthorsByPublicationId(this.publication.id).subscribe(t=>{this.publication.authors=t,this.selection.clear(),this.loading=!1})}onAddAuthors(){const t=Rx();t.width="800px",t.data={publicationId:this.publication.id,alreadyAddedAuthors:this.publication.authors},this.dialog.open(_j,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.refresh())})}onRemoveAuthors(){const t=Rx();t.width="800px",t.data={items:this.selection.selected.map(t=>`${t.titleBefore?t.titleBefore:""} ${t.firstName?t.firstName:""} ${t.lastName?t.lastName:""} ${t.titleAfter?t.titleAfter:""}`),title:"DIALOGS.REMOVE_AUTHORS.TITLE",description:"DIALOGS.REMOVE_AUTHORS.DESCRIPTION",theme:"user-theme"},this.dialog.open(DD,t).afterClosed().subscribe(t=>{t&&this.removeAuthors(this.selection.selected)})}removeAuthors(t){if(this.loading=!0,t.length){const e=t.pop();this.cabinetService.deleteAuthorship(this.publication.id,e.id).subscribe(()=>{this.removeAuthors(t)},()=>this.loading=!1)}else this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_AUTHORS.SUCCESS_MESSAGE")),this.selection.clear(),this.refresh()}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(Ho(vx),Ho(Ef),Ho($x),Ho(sx),Ho(oO))},t.\u0275cmp=Kt({type:t,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",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-4",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","selection","filterValue","pageSize","displayedColumns","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-4",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"authors","selection","filterValue","pageSize","displayedColumns","page"]],template:function(t,e){1&t&&(jo(0,"div",0),Io(1,yj,3,3,"button",1),Io(2,wj,3,4,"button",2),jo(3,"perun-web-apps-immediate-filter",3),Jo("filter",function(t){return e.applyFilter(t)}),Yo(),Io(4,bj,1,0,"mat-spinner",4),Io(5,kj,1,7,"perun-web-apps-authors-list",5),Yo()),2&t&&(rr(1),Oo("ngIf",!e.publication.locked),rr(1),Oo("ngIf",!e.publication.locked),rr(1),Oo("placeholder","PUBLICATION_DETAIL.FILTER"),rr(1),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[Oh,mB,ok,uR,QO],pipes:[rx],styles:[""]}),t})();function Cj(t,e){if(1&t){const t=qo();jo(0,"th",15),jo(1,"mat-checkbox",16),Jo("change",function(e){ze(t);const i=ea();return e?i.masterToggle():null}),Yo(),Yo()}if(2&t){const t=ea();rr(1),Oo("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Sj(t,e){if(1&t){const t=qo();jo(0,"td",17),jo(1,"mat-checkbox",18),Jo("change",function(e){const i=ze(t).$implicit,n=ea();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),Yo(),Yo()}if(2&t){const t=e.$implicit,i=ea();rr(1),Oo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function Mj(t,e){1&t&&(jo(0,"th",19),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")))}function Ej(t,e){if(1&t&&(jo(0,"td",17),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),xa(" ",t.id," ")}}function xj(t,e){1&t&&(jo(0,"th",19),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")))}function Rj(t,e){if(1&t&&(jo(0,"td",20),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.name)}}function Dj(t,e){1&t&&(jo(0,"th",19),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")))}function Pj(t,e){if(1&t&&(jo(0,"td",20),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.contact)}}function Lj(t,e){1&t&&(jo(0,"th",19),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")))}function zj(t,e){if(1&t&&(jo(0,"td",20),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.type)}}function Ij(t,e){1&t&&No(0,"tr",21)}function Fj(t,e){1&t&&No(0,"tr",22)}function Hj(t,e){1&t&&(jo(0,"app-alert",23),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS")))}function Oj(t,e){1&t&&(jo(0,"app-alert",23),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS")))}let Bj=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.owners=[],this.selection=new $k(!0,[]),this.pageSize=10,this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.page=new gu,this.pageSizeOptions=Ex}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"contact":return t.contact;case"type":return t.type;default:return""}}exportData(t){Ix(zx(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Px(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Dx(t,e,this.getDataForColumn,this),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(t=>"id"!==t)),this.dataSource=new TD(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(Ho(Jf),Ho(Zx))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(t,e){if(1&t&&(Eu(Bx,7),Eu(pF,7)),2&t){let t;Mu(t=Ru())&&(e.child=t.first),Mu(t=Ru())&&(e.matSort=t.first)}},inputs:{owners:"owners",selection:"selection",pageSize:"pageSize",filterValue:"filterValue",displayedColumns:"displayedColumns"},outputs:{page:"page"},features:[ue],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"perun-web-apps-table-wrapper",1),Jo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),jo(2,"table",2),Ko(3,3),Io(4,Cj,2,3,"th",4),Io(5,Sj,2,2,"td",5),Uo(),Ko(6,6),Io(7,Mj,3,3,"th",7),Io(8,Ej,2,1,"td",5),Uo(),Ko(9,8),Io(10,xj,3,3,"th",7),Io(11,Rj,2,1,"td",9),Uo(),Ko(12,10),Io(13,Dj,3,3,"th",7),Io(14,Pj,2,1,"td",9),Uo(),Ko(15,11),Io(16,Lj,3,3,"th",7),Io(17,zj,2,1,"td",9),Uo(),Io(18,Ij,1,0,"tr",12),Io(19,Fj,1,0,"tr",13),Yo(),Yo(),Yo(),Io(20,Hj,3,3,"app-alert",14),Io(21,Oj,3,3,"app-alert",14)),2&t&&(Oo("hidden",!e.dataSource.filteredData.length),rr(1),Oo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),rr(1),Oo("dataSource",e.dataSource),rr(16),Oo("matHeaderRowDef",e.displayedColumns),rr(1),Oo("matRowDefColumns",e.displayedColumns),rr(1),Oo("ngIf",!e.owners.length),rr(1),Oo("ngIf",!e.dataSource.filteredData.length&&e.owners.length))},directives:[Bx,fD,pF,mD,gD,pD,wD,bD,Oh,_D,HL,yD,vF,vD,AD,CH],pipes:[rx],styles:[""]}),t})();function jj(t,e){1&t&&No(0,"mat-spinner",4)}const Yj=function(){return["select","id","name","contact"]};function Nj(t,e){if(1&t){const t=qo();jo(0,"div"),jo(1,"div",5),jo(2,"perun-web-apps-immediate-filter",6),Jo("filter",function(e){return ze(t),ea().filterValue=e}),Yo(),jo(3,"perun-web-apps-owners-list",7),Jo("page",function(e){return ze(t),ea().pageChanged(e)}),Yo(),Yo(),jo(4,"div",8),jo(5,"button",9),Jo("click",function(){return ze(t),ea().onCancel()}),Ma(6),uu(7,"translate"),Yo(),jo(8,"button",10),Jo("click",function(){return ze(t),ea().onSubmit()}),Ma(9),uu(10,"translate"),Yo(),Yo(),Yo()}if(2&t){const t=ea();rr(2),Oo("placeholder","DIALOGS.ADD_THANKS.FILTER"),rr(1),Oo("owners",t.owners)("filterValue",t.filterValue)("pageSize",t.pageSize)("displayedColumns",nu(13,Yj))("selection",t.selected),rr(3),xa(" ",lu(7,9,"DIALOGS.ADD_THANKS.CANCEL")," "),rr(2),Oo("disabled",0===t.selected.selected.length||t.loading),rr(1),xa(" ",lu(10,11,"DIALOGS.ADD_THANKS.ADD")," ")}}let Kj=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this.dialogRef=t,this.data=e,this.ownersManagerService=i,this.storeService=n,this.tableConfigService=s,this.notificator=r,this.translate=o,this.cabinetManagerService=a,this.selected=new $k(!0,[]),this.tableId="73"}ngOnInit(){this.loading=!0,this.pageSize=this.tableConfigService.getTablePageSize(this.tableId);const t=this.storeService.get("allowed_owners_for_thanks");this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=0!==t.length?e.filter(e=>t.indexOf(e.id)>-1):e,this.owners=this.owners.filter(t=>this.data.thanks.map(t=>t.ownerId).indexOf(t.id)<=-1),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,0===this.selected.selected.length?this.translate.get("DIALOGS.ADD_THANKS.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),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)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(Ho(px),Ho(mx),Ho(If),Ho(Yx),Ho(oO),Ho($x),Ho(sx),Ho(Ef))},t.\u0275cmp=Kt({type:t,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","pageSize","displayedColumns","selection","page"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),Ma(2),uu(3,"translate"),Yo(),Io(4,jj,1,0,"mat-spinner",2),Io(5,Nj,11,14,"div",3),Yo()),2&t&&(rr(2),Ea(lu(3,3,"DIALOGS.ADD_THANKS.TITLE")),rr(2),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[kx,Oh,uR,Tx,mB,Bj,Cx,ok],pipes:[rx],styles:[""]}),t})();function Uj(t,e){if(1&t){const t=qo();jo(0,"th",14),jo(1,"mat-checkbox",15),Jo("change",function(e){ze(t);const i=ea();return e?i.masterToggle():null}),Yo(),Yo()}if(2&t){const t=ea();rr(1),Oo("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Vj(t,e){if(1&t){const t=qo();jo(0,"td",16),jo(1,"mat-checkbox",17),Jo("change",function(e){const i=ze(t).$implicit,n=ea();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),Yo(),Yo()}if(2&t){const t=e.$implicit,i=ea();rr(1),Oo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function qj(t,e){1&t&&(jo(0,"th",18),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"THANKS_LIST.ID")))}function $j(t,e){if(1&t&&(jo(0,"td",16),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.ownerId)}}function Wj(t,e){1&t&&(jo(0,"th",18),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"THANKS_LIST.NAME")))}function Gj(t,e){if(1&t&&(jo(0,"td",19),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.ownerName)}}function Jj(t,e){1&t&&(jo(0,"th",18),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),Ea(lu(2,1,"THANKS_LIST.CREATED_BY")))}function Zj(t,e){if(1&t&&(jo(0,"td",19),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),Ea(t.createdBy)}}function Qj(t,e){1&t&&No(0,"tr",20)}function Xj(t,e){1&t&&No(0,"tr",21)}function tY(t,e){1&t&&(jo(0,"app-alert",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(Oo("alert_type","warn"),rr(1),xa(" ",lu(2,2,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function eY(t,e){1&t&&(jo(0,"app-alert",22),Ma(1),uu(2,"translate"),Yo()),2&t&&(Oo("alert_type","warn"),rr(1),xa(" ",lu(2,2,"THANKS_LIST.NO_THANKS"),"\n"))}let iY=(()=>{class t{constructor(t){this.tableCheckbox=t,this.thanks=[],this.filterValue="",this.pageSize=10,this.displayedColumns=["select","id","name","createdBy"],this.pageSizeOptions=Ex,this.selection=new $k(!0,[]),this.page=new gu}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new TD(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.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}getDataForColumn(t,e){switch(e){case"id":return t.ownerId.toString();case"name":return t.ownerName;default:return t[e]}}exportData(t){Ix(zx(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>Px(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>Dx(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(Ho(Zx))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-thanks-list"]],viewQuery:function(t,e){if(1&t&&(Eu(pF,7),Eu(Bx,7)),2&t){let t;Mu(t=Ru())&&(e.matSort=t.first),Mu(t=Ru())&&(e.child=t.first)}},inputs:{thanks:"thanks",filterValue:"filterValue",pageSize:"pageSize",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions",selection:"selection"},outputs:{page:"page"},features:[ue],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["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","createdBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],["mat-header-cell",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],[3,"alert_type"]],template:function(t,e){1&t&&(jo(0,"div",0),jo(1,"perun-web-apps-table-wrapper",1),Jo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),jo(2,"table",2),Ko(3,3),Io(4,Uj,2,3,"th",4),Io(5,Vj,2,2,"td",5),Uo(),Ko(6,6),Io(7,qj,3,3,"th",7),Io(8,$j,2,1,"td",5),Uo(),Ko(9,8),Io(10,Wj,3,3,"th",7),Io(11,Gj,2,1,"td",9),Uo(),Ko(12,10),Io(13,Jj,3,3,"th",7),Io(14,Zj,2,1,"td",9),Uo(),Io(15,Qj,1,0,"tr",11),Io(16,Xj,1,0,"tr",12),Yo(),Yo(),Yo(),Io(17,tY,3,4,"app-alert",13),Io(18,eY,3,4,"app-alert",13)),2&t&&(Oo("hidden",0===e.thanks.length||0===e.dataSource.filteredData.length),rr(1),Oo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),rr(1),Oo("dataSource",e.dataSource),rr(13),Oo("matHeaderRowDef",e.displayedColumns),rr(1),Oo("matRowDefColumns",e.displayedColumns),rr(1),Oo("ngIf",0!==e.thanks.length&&0===e.dataSource.filteredData.length),rr(1),Oo("ngIf",0===e.thanks.length))},directives:[Bx,fD,pF,mD,gD,pD,wD,bD,Oh,_D,HL,yD,vF,vD,AD,CH],pipes:[rx],styles:[""]}),t})();function nY(t,e){if(1&t){const t=qo();jo(0,"button",6),Jo("click",function(){return ze(t),ea().onAddThanks()}),Ma(1),uu(2,"translate"),Yo()}2&t&&(rr(1),xa(" ",lu(2,1,"PUBLICATION_DETAIL.ADD")," "))}function sY(t,e){if(1&t){const t=qo();jo(0,"button",7),Jo("click",function(){return ze(t),ea().onRemoveThanks()}),Ma(1),uu(2,"translate"),Yo()}2&t&&(Oo("disabled",0===ea().selection.selected.length),rr(1),xa(" ",lu(2,2,"PUBLICATION_DETAIL.REMOVE")," "))}function rY(t,e){1&t&&No(0,"mat-spinner",8)}const oY=function(){return["id","name","createdBy"]},aY=function(){return["select","id","name","createdBy"]};function cY(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-thanks-list",9),Jo("page",function(e){return ze(t),ea().pageChanged(e)}),Yo()}if(2&t){const t=ea();Oo("thanks",t.publication.thanks)("filterValue",t.filterValue)("pageSize",t.pageSize)("displayedColumns",t.publication.locked?nu(5,oY):nu(6,aY))("selection",t.selection)}}let uY=(()=>{class t{constructor(t,e,i,n,s){this.dialog=t,this.cabinetService=e,this.notificator=i,this.translate=n,this.tableConfigService=s,this.selection=new $k(!0,[]),this.tableId="70",this.loading=!1,this.filterValue=""}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.refresh()}refresh(){this.loading=!0,this.cabinetService.findPublicationById(this.publication.id).subscribe(t=>{this.publication=t,this.selection.clear(),this.loading=!1})}onAddThanks(){const t=Rx();t.width="800px",t.data=this.publication,this.dialog.open(Kj,t).afterClosed().subscribe(t=>{t&&this.refresh()})}onRemoveThanks(){const t=Rx();t.width="450px",t.data={items:this.selection.selected.map(t=>t.ownerName),title:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_TITLE",description:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_DESCRIPTION",theme:"user-theme"},this.dialog.open(DD,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.removeThank())})}removeThank(){0===this.selection.selected.length?this.translate.get("PUBLICATION_DETAIL.REMOVE_THANKS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.refresh()}):this.cabinetService.deleteThanks(this.selection.selected.pop().id).subscribe(()=>{this.removeThank()})}applyFilter(t){this.filterValue=t}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(Ho(vx),Ho(Ef),Ho($x),Ho(sx),Ho(oO))},t.\u0275cmp=Kt({type:t,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",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-4",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"thanks","filterValue","pageSize","displayedColumns","selection","page",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-4",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"thanks","filterValue","pageSize","displayedColumns","selection","page"]],template:function(t,e){1&t&&(jo(0,"div",0),Io(1,nY,3,3,"button",1),Io(2,sY,3,4,"button",2),jo(3,"perun-web-apps-immediate-filter",3),Jo("filter",function(t){return e.applyFilter(t)}),Yo(),Io(4,rY,1,0,"mat-spinner",4),Io(5,cY,1,7,"perun-web-apps-thanks-list",5),Yo()),2&t&&(rr(1),Oo("ngIf",!e.publication.locked),rr(1),Oo("ngIf",!e.publication.locked),rr(1),Oo("placeholder","PUBLICATION_DETAIL.FILTER"),rr(1),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[Oh,mB,ok,uR,iY],pipes:[rx],styles:[""]}),t})();function lY(t,e){1&t&&No(0,"mat-spinner",2)}function hY(t,e){if(1&t&&(jo(0,"h3",15),Ma(1),Yo()),2&t){const t=ea(2);rr(1),Ea(t.publication.title)}}function dY(t,e){if(1&t){const t=qo();jo(0,"button",16),Jo("click",function(){ze(t);const e=ea(2);return e.editing=!e.editing}),uu(1,"translate"),jo(2,"mat-icon",17),Ma(3,"edit"),Yo(),Yo()}2&t&&ra("matTooltip",lu(1,1,"PUBLICATION_DETAIL.LIST.EDIT"))}function fY(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"PUBLICATION_DETAIL.LIST.EMPTY_ERROR")," "))}function pY(t,e){if(1&t&&(jo(0,"mat-form-field",18),No(1,"textarea",19),Io(2,fY,3,3,"mat-error",1),Yo()),2&t){const t=ea(2);rr(1),Oo("formControl",t.titleControl),rr(1),Oo("ngIf",t.titleControl.invalid)}}function gY(t,e){if(1&t){const t=qo();jo(0,"button",20),Jo("click",function(){return ze(t),ea(2).save()}),uu(1,"translate"),jo(2,"mat-icon",17),Ma(3,"save"),Yo(),Yo()}if(2&t){const t=ea(2);ra("matTooltip",lu(1,2,"PUBLICATION_DETAIL.LIST.SAVE")),Oo("disabled",t.titleControl.invalid)}}function mY(t,e){1&t&&No(0,"th",21)}function _Y(t,e){if(1&t&&(jo(0,"td",22),Ma(1),Yo()),2&t){const t=e.$implicit;rr(1),xa(" ",t.key,": ")}}function yY(t,e){1&t&&No(0,"th",21)}function wY(t,e){if(1&t&&(jo(0,"span"),Ma(1),jo(2,"span",24),Ma(3),uu(4,"translate"),Yo(),Ma(5),jo(6,"span",24),Ma(7),uu(8,"translate"),Yo(),Ma(9),Yo()),2&t){const t=ea().$implicit,e=ea(2);rr(1),xa(" ",t.value," / "),rr(2),xa("",lu(4,5,"PUBLICATION_DETAIL.LIST.EXT_ID"),":"),rr(2),xa(" ",e.publication.externalId," "),rr(2),xa("",lu(8,7,"PUBLICATION_DETAIL.LIST.SYSTEM"),":"),rr(2),xa(" ",e.publication.pubSystemName," ")}}function bY(t,e){if(1&t&&(jo(0,"span"),Ma(1),uu(2,"date"),Yo()),2&t){const t=ea().$implicit;rr(1),xa(" ",function(t,e,i,n){const s=Pe(),r=ke(s,22);return fu(s,du(s,22)?cu(s,Ne(),1,r.transform,i,n,r):r.transform(i,n))}(0,0,t.value,"dd/MM/yyyy")," ")}}function vY(t,e){if(1&t&&(jo(0,"span"),Ma(1),Yo()),2&t){const t=ea().$implicit;rr(1),xa(" ",t.value," ")}}function AY(t,e){if(1&t&&(jo(0,"span"),Ma(1),Yo()),2&t){const t=ea(3).$implicit;rr(1),xa(" ",t.value," ")}}function kY(t,e){if(1&t&&(jo(0,"span"),Io(1,AY,2,1,"span",1),Yo()),2&t){const t=ea(2).$implicit;rr(1),Oo("ngIf","Id / Origin"!==t.key&&"Create date"!==t.key&&"Created by"!==t.key)}}function TY(t,e){1&t&&(jo(0,"span"),Ma(1," - "),Yo())}function CY(t,e){if(1&t&&(jo(0,"div"),Io(1,kY,2,1,"span",1),Io(2,TY,2,0,"span",1),Yo()),2&t){const t=ea().$implicit;rr(1),Oo("ngIf",null!==t.value&&""!==t.value),rr(1),Oo("ngIf",null===t.value||""===t.value)}}function SY(t,e){if(1&t){const t=qo();jo(0,"mat-form-field",26),Jo("click",function(){return ze(t),Fo(7).open()}),jo(1,"mat-label"),Ma(2),uu(3,"translate"),Yo(),No(4,"input",27),No(5,"mat-datepicker-toggle",28),jo(6,"mat-datepicker",29,30),Jo("yearSelected",function(e){ze(t);const i=Fo(7);return ea(4).chosenYearHandler(e,i)}),Yo(),Yo()}if(2&t){const t=Fo(7),e=ea(4);rr(2),Ea(lu(3,5,"PUBLICATION_DETAIL.LIST.YEAR")),rr(2),Oo("max",e.maxYear)("matDatepicker",t)("formControl",e.yearControl),rr(1),Oo("for",t)}}function MY(t,e){if(1&t&&(jo(0,"mat-option",33),Ma(1),Yo()),2&t){const t=e.$implicit;Oo("value",t.name),rr(1),xa(" ",t.name," ")}}function EY(t,e){if(1&t&&(jo(0,"mat-form-field"),jo(1,"mat-select",31),Io(2,MY,2,2,"mat-option",32),Yo(),Yo()),2&t){const t=ea(4);rr(1),Oo("formControl",t.categoryControl),rr(1),Oo("ngForOf",t.categories)}}function xY(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"PUBLICATION_DETAIL.LIST.RANK_ERROR")," "))}function RY(t,e){if(1&t&&(jo(0,"mat-form-field"),No(1,"input",34),Io(2,xY,3,3,"mat-error",1),Yo()),2&t){const t=ea(4);rr(1),Oo("formControl",t.rankControl),rr(1),Oo("ngIf",t.rankControl.invalid)}}function DY(t,e){if(1&t){const t=qo();jo(0,"mat-form-field",18),jo(1,"input",35),Jo("ngModelChange",function(e){return ze(t),ea(4).publication.isbn=e}),Yo(),Yo()}if(2&t){const t=ea(4);rr(1),Oo("ngModel",t.publication.isbn)}}function PY(t,e){if(1&t){const t=qo();jo(0,"mat-form-field",18),jo(1,"input",35),Jo("ngModelChange",function(e){return ze(t),ea(4).publication.doi=e}),Yo(),Yo()}if(2&t){const t=ea(4);rr(1),Oo("ngModel",t.publication.doi)}}function LY(t,e){if(1&t){const t=qo();jo(0,"mat-form-field",18),jo(1,"textarea",36),Jo("ngModelChange",function(e){return ze(t),ea(4).publication.main=e}),Yo(),Yo()}if(2&t){const t=ea(4);rr(1),Oo("ngModel",t.publication.main)}}function zY(t,e){if(1&t&&(jo(0,"div"),Io(1,SY,8,7,"mat-form-field",25),Io(2,EY,3,2,"mat-form-field",1),Io(3,RY,3,2,"mat-form-field",1),Io(4,DY,2,1,"mat-form-field",6),Io(5,PY,2,1,"mat-form-field",6),Io(6,LY,2,1,"mat-form-field",6),Yo()),2&t){const t=ea().$implicit;rr(1),Oo("ngIf","Year"===t.key),rr(1),Oo("ngIf","Category"===t.key),rr(1),Oo("ngIf","Rank"===t.key),rr(1),Oo("ngIf","ISBN / ISSN"===t.key),rr(1),Oo("ngIf","DOI"===t.key),rr(1),Oo("ngIf","Full cite"===t.key)}}function IY(t,e){if(1&t&&(jo(0,"td",23),Io(1,wY,10,9,"span",1),Io(2,bY,3,4,"span",1),Io(3,vY,2,1,"span",1),Io(4,CY,3,2,"div",1),Io(5,zY,7,6,"div",1),Yo()),2&t){const t=e.$implicit,i=ea(2);rr(1),Oo("ngIf","Id / Origin"===t.key),rr(1),Oo("ngIf","Create date"===t.key),rr(1),Oo("ngIf","Created by"===t.key),rr(1),Oo("ngIf",!i.editing),rr(1),Oo("ngIf",i.editing)}}function FY(t,e){1&t&&No(0,"tr",37)}function HY(t,e){if(1&t&&(jo(0,"div"),jo(1,"div",3),Io(2,hY,2,1,"h3",4),Io(3,dY,4,3,"button",5),Io(4,pY,3,2,"mat-form-field",6),Io(5,gY,4,4,"button",7),Yo(),jo(6,"table",8),Ko(7,9),Io(8,mY,1,0,"th",10),Io(9,_Y,2,1,"td",11),Uo(),Ko(10,12),Io(11,yY,1,0,"th",10),Io(12,IY,6,5,"td",13),Uo(),Io(13,FY,1,0,"tr",14),Yo(),Yo()),2&t){const t=ea();rr(2),Oo("ngIf",!t.editing),rr(1),Oo("ngIf",!t.editing&&!t.publication.locked),rr(1),Oo("ngIf",t.editing),rr(1),Oo("ngIf",t.editing),rr(1),Oo("dataSource",t.dataSource),rr(7),Oo("matRowDefColumns",t.displayedColumns)}}const OY=lO,BY={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let jY=(()=>{class t{constructor(t,e,i){this.cabinetService=t,this.notificator=e,this.translate=i,this.categories=[],this.edited=new gu,this.loading=!1,this.dataSource=null,this.displayedColumns=["key","value"],this.isChanging=new $k(!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 t=0;tt.name===this.categoryControl.value).id,e={id:this.publication.id,externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.titleControl.value,year:this.yearControl.value.year(),main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:t,rank:this.rankControl.value,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate};this.cabinetService.updatePublication({publication:e}).subscribe(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.edited.emit(!0),this.loading=!1})},()=>this.loading=!1)}chosenYearHandler(t,e){const i=this.yearControl.value;i.year(t.year()),this.yearControl.setValue(i),e.close()}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ef),Ho($x),Ho(sx))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-publication-detail-list"]],inputs:{publication:"publication",categories:"categories"},outputs:{edited:"edited"},features:[Za([{provide:mA,useClass:pO,deps:[gA]},{provide:_A,useValue:BY}])],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(t,e){1&t&&(jo(0,"div"),Io(1,lY,1,0,"mat-spinner",0),Io(2,HY,14,6,"div",1),Yo()),2&t&&(rr(1),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[Oh,uR,fD,mD,gD,pD,bD,ok,OM,BE,EC,wR,HC,cS,VS,dC,_D,yD,yC,sF,oF,AC,XI,AM,Fh,QA,jS,AD],pipes:[rx,Xh],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}"]}),t})();function YY(t,e){1&t&&No(0,"mat-spinner",3)}function NY(t,e){1&t&&(jo(0,"h1",11),jo(1,"span"),jo(2,"mat-icon",12),Ma(3,"assignment_ind"),Yo(),Ma(4),uu(5,"translate"),Yo(),Yo()),2&t&&(rr(4),xa(" ",lu(5,1,"AUTHORS_PAGE.TITLE")," "))}function KY(t,e){1&t&&(jo(0,"h1",11),No(1,"mat-icon",13),jo(2,"span",14),Ma(3),uu(4,"translate"),Yo(),Yo()),2&t&&(rr(3),Ea(lu(4,1,"ALL_PUBLICATIONS.TITLE")))}function UY(t,e){1&t&&(jo(0,"h1",11),jo(1,"span"),jo(2,"mat-icon",12),Ma(3,"local_library"),Yo(),Ma(4),uu(5,"translate"),Yo(),Yo()),2&t&&(rr(4),xa(" ",lu(5,1,"MY_PUBLICATIONS.TITLE")," "))}function VY(t,e){if(1&t&&(jo(0,"h5",15),Ma(1),uu(2,"userFullName"),uu(3,"translate"),Yo()),2&t){const t=ea(2);rr(1),Ra("",lu(2,2,t.mainAuthor),"",lu(3,4,"AUTHOR_DETAIL.TITLE"),"")}}function qY(t,e){1&t&&(jo(0,"span",16),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"PUBLICATION_DETAIL.LOCKED")," "))}function $Y(t,e){1&t&&(jo(0,"mat-icon"),Ma(1," lock "),Yo())}function WY(t,e){1&t&&(jo(0,"span",16),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"PUBLICATION_DETAIL.UNLOCKED")," "))}function GY(t,e){1&t&&(jo(0,"mat-icon"),Ma(1," lock_open "),Yo())}function JY(t,e){1&t&&No(0,"mat-spinner",3)}function ZY(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-publication-detail-list",17),Jo("edited",function(){return ze(t),ea(2).refreshPublication()}),Yo()}if(2&t){const t=ea(2);Oo("publication",t.publication)("categories",t.categories)}}function QY(t,e){if(1&t){const t=qo();jo(0,"div"),Io(1,NY,6,3,"h1",4),Io(2,KY,5,3,"h1",4),Io(3,UY,6,3,"h1",4),Io(4,VY,4,6,"h5",5),jo(5,"h5"),Ma(6),uu(7,"translate"),Yo(),jo(8,"h6"),Ma(9),uu(10,"translate"),jo(11,"button",6),Jo("click",function(){return ze(t),ea().changeLock()}),Io(12,qY,3,3,"span",7),Io(13,$Y,2,0,"mat-icon",2),Io(14,WY,3,3,"span",7),Io(15,GY,2,0,"mat-icon",2),Yo(),Yo(),jo(16,"mat-card"),jo(17,"mat-card-content"),Io(18,JY,1,0,"mat-spinner",1),Io(19,ZY,1,2,"perun-web-apps-publication-detail-list",8),Yo(),Yo(),jo(20,"mat-card",9),jo(21,"mat-card-title"),Ma(22),uu(23,"translate"),Yo(),jo(24,"mat-card-content"),No(25,"perun-web-apps-add-authors",10),Yo(),Yo(),jo(26,"mat-card",9),jo(27,"mat-card-title"),Ma(28),uu(29,"translate"),Yo(),jo(30,"mat-card-content"),No(31,"perun-web-apps-add-thanks",10),Yo(),Yo(),Yo()}if(2&t){const t=ea();rr(1),Oo("ngIf","authors"===t.mode),rr(1),Oo("ngIf","all"===t.mode),rr(1),Oo("ngIf","my"===t.mode),rr(1),Oo("ngIf",void 0!==t.mainAuthor),rr(2),Ea(lu(7,18,"PUBLICATION_DETAIL.TITLE")),rr(3),xa(" ",lu(10,20,"PUBLICATION_DETAIL.LOCK_INFO")," "),rr(3),Oo("ngIf",t.publication.locked),rr(1),Oo("ngIf",t.publication.locked),rr(1),Oo("ngIf",!t.publication.locked),rr(1),Oo("ngIf",!t.publication.locked),rr(3),Oo("ngIf",t.loading||t.pubLoading),rr(1),Oo("ngIf",!t.pubLoading&&!t.loading),rr(3),xa(" ",lu(23,22,"PUBLICATION_DETAIL.AUTHORS")," "),rr(3),Oo("publication",t.publication)("selection",t.selectionAuthors),rr(3),xa(" ",lu(29,24,"PUBLICATION_DETAIL.ACKNOWLEDGEMENT")," "),rr(3),Oo("publication",t.publication)("selection",t.selectionThanks)}}let XY=(()=>{class t{constructor(t,e,i,n,s,r,o){this.route=t,this.cabinetService=e,this.matIconRegistry=i,this.domSanitizer=n,this.dialog=s,this.notificator=r,this.translate=o,this.loading=!1,this.pubLoading=!1,this.initLoading=!1,this.selectionAuthors=new $k(!0,[]),this.selectionThanks=new $k(!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(t=>{this.publicationId=t.publicationId,this.mainAuthorId=parseInt(t.authorId,10),this.setMode(),this.loadAllData()})}setMode(){const t=location.pathname;this.mode=t.includes("my")?"my":t.includes("all")?"all":t.includes("import")?"import":t.includes("create")?"create":"authors"}loadAllData(){this.loading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(t=>{this.publication=t,this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.loading=!1,this.initLoading=!1})})}refreshPublication(){this.pubLoading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(t=>{this.publication=t,this.pubLoading=!1})}changeLock(){this.pubLoading=!0,this.cabinetService.lockPublications({publications:[{id:this.publication.id,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 t.\u0275fac=function(e){return new(e||t)(Ho($g),Ho(Ef),Ho(RE),Ho(Pd),Ho(vx),Ho($x),Ho(sx))},t.\u0275cmp=Kt({type:t,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(t,e){1&t&&(jo(0,"div",0),Io(1,YY,1,0,"mat-spinner",1),Io(2,QY,32,26,"div",2),Yo()),2&t&&(rr(1),Oo("ngIf",e.initLoading),rr(1),Oo("ngIf",!e.initLoading))},directives:[Oh,uR,ok,TL,AL,kL,Tj,uY,BE,jY],pipes:[rx,SH],styles:[".icon-size[_ngcontent-%COMP%]{width:32px;height:32px}.align-icon[_ngcontent-%COMP%]{vertical-align:text-top}"]}),t})(),tN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[td,ak,jE,x_,yH,ox]]}),t})(),eN=(()=>{class t{constructor(t){this.auth=t}startAuth(){this.auth.startAuthentication()}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nx))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con","vo-theme"],[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(t,e){1&t&&(jo(0,"div",0),jo(1,"div",1),jo(2,"div",2),jo(3,"h4",3),Ma(4),uu(5,"translate"),Yo(),jo(6,"button",4),Jo("click",function(){return e.startAuth()}),Ma(7),uu(8,"translate"),jo(9,"mat-icon"),Ma(10," login "),Yo(),Yo(),Yo(),Yo(),Yo()),2&t&&(rr(4),xa(" ",lu(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),rr(3),xa(" ",lu(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[ok,BE],pipes:[rx],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),t})();function iN(t,e){1&t&&sa(0)}const nN=["*"];function sN(t,e){}const rN=function(t){return{animationDuration:t}},oN=function(t,e){return{value:t,params:e}},aN=["tabBodyWrapper"],cN=["tabHeader"];function uN(t,e){}function lN(t,e){1&t&&Io(0,uN,0,0,"ng-template",9),2&t&&Oo("cdkPortalOutlet",ea().$implicit.templateLabel)}function hN(t,e){1&t&&Ma(0),2&t&&Ea(ea().$implicit.textLabel)}function dN(t,e){if(1&t){const t=qo();jo(0,"div",6),Jo("click",function(){const e=ze(t),i=e.$implicit,n=e.index,s=ea(),r=Fo(1);return s._handleClick(i,r,n)})("cdkFocusChange",function(e){const i=ze(t).index;return ea()._tabFocusChanged(e,i)}),jo(1,"div",7),Io(2,lN,1,1,"ng-template",8),Io(3,hN,1,1,"ng-template",8),Yo(),Yo()}if(2&t){const t=e.$implicit,i=e.index,n=ea();pa("mat-tab-label-active",n.selectedIndex==i),Oo("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),Lo("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),rr(2),Oo("ngIf",t.templateLabel),rr(1),Oo("ngIf",!t.templateLabel)}}function fN(t,e){if(1&t){const t=qo();jo(0,"mat-tab-body",10),Jo("_onCentered",function(){return ze(t),ea()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return ze(t),ea()._setTabBodyWrapperHeight(e)}),Yo()}if(2&t){const t=e.$implicit,i=e.index,n=ea();pa("mat-tab-body-active",n.selectedIndex==i),Oo("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),Lo("aria-labelledby",n._getTabLabelId(i))}}const pN=["tabListContainer"],gN=["tabList"],mN=["nextPaginator"],_N=["previousPaginator"],yN=new Ji("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let wN=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(il),Ho(yN),Ho(Jv,8))},t.\u0275dir=Gt({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&pa("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const bN=new Ji("MatTabContent");let vN=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ic))},t.\u0275dir=Gt({type:t,selectors:[["","matTabContent",""]],features:[Za([{provide:bN,useExisting:t}])]}),t})();const AN=new Ji("MatTabLabel");let kN=(()=>{class t extends aT{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=Vi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Za([{provide:AN,useExisting:t}]),bo]}),t})();class TN{}const CN=uA(TN),SN=new Ji("MAT_TAB_GROUP");let MN=(()=>{class t extends CN{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new k,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new nT(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(Ho(Nc),Ho(SN,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){if(1&t&&(xu(i,AN,5),xu(i,bN,7,Ic)),2&t){let t;Mu(t=Ru())&&(e.templateLabel=t.first),Mu(t=Ru())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&Eu(Ic,7),2&t){let t;Mu(t=Ru())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[bo,ue],ngContentSelectors:nN,decls:1,vars:0,template:function(t,e){1&t&&(na(),Io(0,iN,1,0,"ng-template"))},encapsulation:2}),t})();const EN={translateTab:dw("translateTab",[_w("center, void, left-origin-center, right-origin-center",mw({transform:"none"})),_w("left",mw({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),_w("right",mw({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),ww("* => left, * => right, left => center, right => center",fw("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ww("void => left-origin-center",[mw({transform:"translate3d(-100%, 0, 0)"}),fw("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ww("void => right-origin-center",[mw({transform:"translate3d(100%, 0, 0)"}),fw("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let xN=(()=>{class t extends cT{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=h.EMPTY,this._leavingSub=h.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(gp(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ho(tc),Ho(Nc),Ho(rt(()=>DN)),Ho(Il))},t.\u0275dir=Gt({type:t,selectors:[["","matTabBodyHost",""]],features:[bo]}),t})(),RN=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=h.EMPTY,this._translateTabComplete=new k,this._onCentering=new gu,this._beforeCentering=new gu,this._afterLeavingCenter=new gu,this._onCentered=new gu(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Ak((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(aw,8),Ho(Rc))},t.\u0275dir=Gt({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),DN=(()=>{class t extends RN{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(aw,8),Ho(Rc))},t.\u0275cmp=Kt({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&Eu(cT,5),2&t){let t;Mu(t=Ru())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[bo],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(jo(0,"div",0,1),Jo("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),Io(2,sN,0,0,"ng-template",2),Yo()),2&t&&Oo("@translateTab",ru(3,oN,e._position,su(1,rN,e.animationDuration)))},directives:[xN],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[EN.translateTab]}}),t})();const PN=new Ji("MAT_TABS_CONFIG");let LN=0;class zN{}class IN{constructor(t){this._elementRef=t}}const FN=lA(hA(IN),"primary");let HN=(()=>{class t extends FN{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new _u,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=h.EMPTY,this._tabLabelSubscription=h.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new gu,this.focusChange=new gu,this.animationDone=new gu,this.selectedTabChange=new gu(!0),this._groupId=LN++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,this.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=ey(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=iy(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));const e=this._tabBodyWrapper.nativeElement;e.style.minHeight=e.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.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()}focusTab(t){const e=this._tabHeader;e&&(e.focusIndex=t)}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new zN;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=V(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}_tabFocusChanged(t,e){t&&(this._tabHeader.focusIndex=e)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(PN,8),Ho(Jv,8))},t.\u0275dir=Gt({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[bo]}),t})(),ON=(()=>{class t extends HN{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(PN,8),Ho(Jv,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){if(1&t&&xu(i,MN,5),2&t){let t;Mu(t=Ru())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(Eu(aN,5),Eu(cN,5)),2&t){let t;Mu(t=Ru())&&(e._tabBodyWrapper=t.first),Mu(t=Ru())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&pa("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Za([{provide:SN,useExisting:t}]),bo],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","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(jo(0,"mat-tab-header",0,1),Jo("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),Io(2,dN,4,14,"div",2),Yo(),jo(3,"div",3,4),Io(5,fN,1,8,"mat-tab-body",5),Yo()),2&t&&(Oo("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),rr(2),Oo("ngForOf",e._tabs),rr(1),pa("_mat-animation-noopable","NoopAnimations"===e._animationMode),rr(2),Oo("ngForOf",e._tabs))},directives:function(){return[VN,Fh,YN,BA,tw,Oh,cT,DN]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class BN{}const jN=uA(BN);let YN=(()=>{class t extends jN{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc))},t.\u0275dir=Gt({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(Lo("aria-disabled",!!e.disabled),pa("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[bo]}),t})();const NN=_y({passive:!0});let KN=(()=>{class t{constructor(t,e,i,n,s,r,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=s,this._platform=r,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new k,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new k,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new gu,this.indexFocused=new gu,s.runOutsideAngular(()=>{ck(t.nativeElement,"mouseleave").pipe(Dk(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=iy(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){ck(this._previousPaginator.nativeElement,"touchstart",NN).pipe(Dk(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),ck(this._nextPaginator.nativeElement,"touchstart",NN).pipe(Dk(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Od("ltr"),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Hy(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),V(t,e,this._items.changes).pipe(Dk(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(i)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Dk(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}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(t){if(!V_(t))switch(t.keyCode){case O_:case j_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",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(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:s}=e.elementRef.nativeElement;let r,o;"ltr"==this._getLayoutDirection()?(r=n,o=r+s):(o=this._tabList.nativeElement.offsetWidth-n,r=o-s);const a=this.scrollDistance,c=this.scrollDistance+i;rc&&(this.scrollDistance+=o-c+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_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._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),Ek(650,100).pipe(Dk(V(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(Qk),Ho(aw,8),Ho(il),Ho(uy),Ho(Jv,8))},t.\u0275dir=Gt({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),UN=(()=>{class t extends KN{constructor(t,e,i,n,s,r,o){super(t,e,i,n,s,r,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ey(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(Qk),Ho(aw,8),Ho(il),Ho(uy),Ho(Jv,8))},t.\u0275dir=Gt({type:t,inputs:{disableRipple:"disableRipple"},features:[bo]}),t})(),VN=(()=>{class t extends UN{constructor(t,e,i,n,s,r,o){super(t,e,i,n,s,r,o)}}return t.\u0275fac=function(e){return new(e||t)(Ho(sc),Ho(Rc),Ho(Qk),Ho(aw,8),Ho(il),Ho(uy),Ho(Jv,8))},t.\u0275cmp=Kt({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){if(1&t&&xu(i,YN,4),2&t){let t;Mu(t=Ru())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(Eu(wN,7),Eu(pN,7),Eu(gN,7),Eu(mN,5),Eu(_N,5)),2&t){let t;Mu(t=Ru())&&(e._inkBar=t.first),Mu(t=Ru())&&(e._tabListContainer=t.first),Mu(t=Ru())&&(e._tabList=t.first),Mu(t=Ru())&&(e._nextPaginator=t.first),Mu(t=Ru())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&pa("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[bo],ngContentSelectors:nN,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(na(),jo(0,"div",0,1),Jo("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),No(2,"div",2),Yo(),jo(3,"div",3,4),Jo("keydown",function(t){return e._handleKeydown(t)}),jo(5,"div",5,6),Jo("cdkObserveContent",function(){return e._onContentChanges()}),jo(7,"div",7),sa(8),Yo(),No(9,"mat-ink-bar"),Yo(),Yo(),jo(10,"div",8,9),Jo("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),No(12,"div",2),Yo()),2&t&&(pa("mat-tab-header-pagination-disabled",e._disableScrollBefore),Oo("matRippleDisabled",e._disableScrollBefore||e.disableRipple),rr(5),pa("_mat-animation-noopable","NoopAnimations"===e._animationMode),rr(5),pa("mat-tab-header-pagination-disabled",e._disableScrollAfter),Oo("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[BA,Ty,wN],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.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;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),qN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[td,cA,uT,jA,Cy,rw],cA]}),t})();function $N(t,e){1&t&&No(0,"mat-spinner",5)}function WN(t,e){1&t&&(Ma(0),uu(1,"translate")),2&t&&Ea(lu(1,1,"CREATE_SINGLE_PUBLICATION.PUBLICATION"))}function GN(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function JN(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function ZN(t,e){if(1&t&&(jo(0,"mat-option",36),Ma(1),Yo()),2&t){const t=e.$implicit;Oo("value",t),rr(1),xa(" ",t.name," ")}}function QN(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function XN(t,e){1&t&&(jo(0,"mat-error"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function tK(t,e){1&t&&(Ma(0),uu(1,"translate")),2&t&&xa(" ",lu(1,1,"CREATE_SINGLE_PUBLICATION.CHECK")," ")}function eK(t,e){1&t&&(jo(0,"div",28),No(1,"mat-spinner",5),jo(2,"h5",37),Ma(3),uu(4,"translate"),Yo(),Yo()),2&t&&(rr(3),Ea(lu(4,1,"CREATE_SINGLE_PUBLICATION.CHECK_PERFORM")))}function iK(t,e){1&t&&(jo(0,"app-alert",38),jo(1,"div",28),jo(2,"span",39),Ma(3),uu(4,"translate"),uu(5,"translate"),Yo(),jo(6,"span",40),jo(7,"mat-icon",41),Ma(8,"fiber_manual_record"),Yo(),Ma(9),uu(10,"translate"),Yo(),jo(11,"span",42),jo(12,"mat-icon",41),Ma(13,"fiber_manual_record"),Yo(),Ma(14),uu(15,"translate"),Yo(),Yo(),Yo()),2&t&&(rr(3),Ra(" ",lu(4,4,"CREATE_SINGLE_PUBLICATION.SIMILAR_FOUND"),". ",lu(5,6,"CREATE_SINGLE_PUBLICATION.CHECK_BELOW"),". "),rr(6),xa(" ",lu(10,8,"CREATE_SINGLE_PUBLICATION.IS_BELOW")," "),rr(5),xa(" ",lu(15,10,"CREATE_SINGLE_PUBLICATION.NOT_BELOW")," "))}function nK(t,e){1&t&&(Ma(0),uu(1,"translate")),2&t&&Ea(lu(1,1,"CREATE_SINGLE_PUBLICATION.CHECK"))}function sK(t,e){1&t&&No(0,"mat-spinner",5)}const rK=function(){return["id","lock","title","reportedBy","year","category","thankedTo","cite"]};function oK(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-publications-list",48),Jo("publicationSelector",function(e){ze(t),ea(2);const i=Fo(1);return ea(2).loadPublicationDetail(e,i)}),Yo()}if(2&t){const t=ea(4);Oo("displayedColumns",nu(4,rK))("disabledRouting",!0)("openInTab",!0)("publications",t.filteredPublications)}}function aK(t,e){if(1&t&&(jo(0,"div",46),Io(1,sK,1,0,"mat-spinner",3),Io(2,oK,1,5,"perun-web-apps-publications-list",47),Yo()),2&t){const t=ea(3);rr(1),Oo("ngIf",t.innerLoading),rr(1),Oo("ngIf",!t.innerLoading)}}function cK(t,e){1&t&&Ma(0),2&t&&Ea(ea(4).selectedPubTitle)}function uK(t,e){if(1&t&&(jo(0,"div",49),No(1,"perun-web-apps-publication-detail",50),Yo()),2&t){const t=ea(4);rr(1),Oo("publicationId",t.selectedPubId)}}function lK(t,e){1&t&&(jo(0,"mat-tab"),Io(1,cK,1,1,"ng-template",44),Io(2,uK,2,1,"ng-template",45),Yo())}function hK(t,e){if(1&t&&(jo(0,"mat-tab-group",null,43),jo(2,"mat-tab"),Io(3,nK,2,3,"ng-template",44),Io(4,aK,3,2,"ng-template",45),Yo(),Io(5,lK,3,0,"mat-tab",14),Yo()),2&t){const t=ea(2);rr(5),Oo("ngIf",null!==t.selectedPubId)}}function dK(t,e){1&t&&(jo(0,"div",28),jo(1,"mat-icon",51),Ma(2,"check_circle"),Yo(),jo(3,"h5",52),Ma(4),uu(5,"translate"),Yo(),Yo()),2&t&&(rr(4),Ea(lu(5,1,"CREATE_SINGLE_PUBLICATION.NO_SIMILAR")))}function fK(t,e){1&t&&(jo(0,"button",34),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function pK(t,e){if(1&t){const t=qo();jo(0,"button",57),Jo("click",function(){return ze(t),ea(3).redirect(["create-publication"])}),Ma(1),uu(2,"translate"),Yo()}2&t&&(rr(1),xa(" ",lu(2,1,"CREATE_SINGLE_PUBLICATION.RETURN")," "))}function gK(t,e){if(1&t&&(jo(0,"div",53),Io(1,fK,3,3,"button",54),jo(2,"button",55),Ma(3),uu(4,"translate"),Yo(),Io(5,pK,3,3,"button",56),Yo()),2&t){const t=ea(2);rr(1),Oo("ngIf",!t.duplicateCheck),rr(2),xa(" ",lu(4,3,"CREATE_SINGLE_PUBLICATION.CREATE")," "),rr(2),Oo("ngIf",!t.duplicateCheck)}}function mK(t,e){1&t&&(Ma(0),uu(1,"translate")),2&t&&xa(" ",lu(1,1,"CREATE_SINGLE_PUBLICATION.AUTHORS")," ")}function _K(t,e){1&t&&No(0,"mat-spinner",5)}function yK(t,e){if(1&t&&No(0,"perun-web-apps-add-authors",59),2&t){const t=ea(3);Oo("publication",t.publication)("selection",t.authorsSelection)}}function wK(t,e){if(1&t&&(jo(0,"div"),jo(1,"app-alert",58),Ma(2),uu(3,"translate"),Yo(),Io(4,yK,1,2,"perun-web-apps-add-authors",33),Yo()),2&t){const t=ea(2);rr(2),Ea(lu(3,2,"CREATE_SINGLE_PUBLICATION.PUB_CREATED")),rr(2),Oo("ngIf",null!==t.publication)}}function bK(t,e){1&t&&(jo(0,"button",34),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function vK(t,e){if(1&t&&(jo(0,"div",25),Io(1,bK,3,3,"button",54),jo(2,"button",60),Ma(3),uu(4,"translate"),Yo(),Yo()),2&t){const t=ea(2);rr(1),Oo("ngIf",!t.duplicateCheck),rr(2),xa(" ",lu(4,2,"CREATE_SINGLE_PUBLICATION.NEXT")," ")}}function AK(t,e){1&t&&(Ma(0),uu(1,"translate")),2&t&&xa(" ",lu(1,1,"CREATE_SINGLE_PUBLICATION.THANKS")," ")}function kK(t,e){if(1&t&&No(0,"perun-web-apps-add-thanks",59),2&t){const t=ea(2);Oo("publication",t.publication)("selection",t.thanksSelection)}}function TK(t,e){1&t&&No(0,"mat-spinner",5)}function CK(t,e){if(1&t){const t=qo();jo(0,"mat-horizontal-stepper",6),Jo("selectionChange",function(e){return ze(t),ea().stepChanged(e)}),jo(1,"mat-step",7),Io(2,WN,2,3,"ng-template",8),jo(3,"form",9),jo(4,"h5",10),Ma(5),uu(6,"translate"),Yo(),jo(7,"div",11),jo(8,"mat-checkbox",12),Ma(9),uu(10,"translate"),Yo(),jo(11,"mat-form-field"),No(12,"input",13),uu(13,"translate"),Io(14,GN,3,3,"mat-error",14),Yo(),jo(15,"mat-form-field",15),Jo("click",function(){return ze(t),Fo(22).open()}),jo(16,"mat-label"),Ma(17),uu(18,"translate"),Yo(),No(19,"input",16),No(20,"mat-datepicker-toggle",17),jo(21,"mat-datepicker",18,19),Jo("yearSelected",function(e){ze(t);const i=Fo(22);return ea().chosenYearHandler(e,i)}),Yo(),Io(23,JN,3,3,"mat-error",14),Yo(),jo(24,"mat-form-field"),jo(25,"mat-select",20),uu(26,"translate"),Io(27,ZN,2,2,"mat-option",21),Yo(),Io(28,QN,3,3,"mat-error",14),Yo(),jo(29,"mat-form-field"),No(30,"input",22),uu(31,"translate"),Yo(),jo(32,"mat-form-field"),No(33,"input",23),uu(34,"translate"),Yo(),jo(35,"mat-form-field"),jo(36,"textarea",24),uu(37,"translate"),Ma(38," "),Yo(),Io(39,XN,3,3,"mat-error",14),Yo(),Yo(),Yo(),jo(40,"div",25),jo(41,"button",26),Ma(42),uu(43,"translate"),Yo(),Yo(),Yo(),jo(44,"mat-step",27),Io(45,tK,2,3,"ng-template",8),jo(46,"form",28),jo(47,"h5",10),Ma(48),uu(49,"translate"),Yo(),Io(50,eK,5,3,"div",29),Io(51,iK,16,12,"app-alert",30),Io(52,hK,6,1,"mat-tab-group",14),Io(53,dK,6,3,"div",29),Yo(),Io(54,gK,6,5,"div",31),Yo(),jo(55,"mat-step"),Io(56,mK,2,3,"ng-template",8),jo(57,"h5",10),Ma(58),uu(59,"translate"),Yo(),Io(60,_K,1,0,"mat-spinner",3),Io(61,wK,5,4,"div",14),Io(62,vK,5,4,"div",32),Yo(),jo(63,"mat-step"),Io(64,AK,2,3,"ng-template",8),jo(65,"h5",10),Ma(66),uu(67,"translate"),Yo(),Io(68,kK,1,2,"perun-web-apps-add-thanks",33),Io(69,TK,1,0,"mat-spinner",3),jo(70,"div",25),jo(71,"button",34),Ma(72),uu(73,"translate"),Yo(),jo(74,"button",35),Jo("click",function(){ze(t);const e=ea();return e.redirect(["all-publications",e.publication.id])}),Ma(75),uu(76,"translate"),Yo(),Yo(),Yo(),Yo()}if(2&t){const t=Fo(22),e=ea();rr(1),Oo("editable",!e.duplicateCheck)("stepControl",e.publicationControl),rr(2),Oo("formGroup",e.publicationControl),rr(2),xa(" ",lu(6,37,"CREATE_SINGLE_PUBLICATION.PUB_INFO")," "),rr(4),xa(" ",lu(10,39,"CREATE_SINGLE_PUBLICATION.ADD_MYSELF")," "),rr(3),ra("placeholder",lu(13,41,"CREATE_SINGLE_PUBLICATION.SET_TITLE")),rr(2),Oo("ngIf",e.publicationControl.hasError("required","title")),rr(3),Ea(lu(18,43,"CREATE_SINGLE_PUBLICATION.YEAR")),rr(2),Oo("max",e.maxYear)("matDatepicker",t),rr(1),Oo("for",t),rr(3),Oo("ngIf",e.publicationControl.hasError("required","year")),rr(2),ra("placeholder",lu(26,45,"CREATE_SINGLE_PUBLICATION.CATEGORY")),rr(2),Oo("ngForOf",e.categories),rr(1),Oo("ngIf",e.publicationControl.hasError("required","category")),rr(2),ra("placeholder",lu(31,47,"CREATE_SINGLE_PUBLICATION.ISBN")),rr(3),ra("placeholder",lu(34,49,"CREATE_SINGLE_PUBLICATION.DOI")),rr(3),ra("placeholder",lu(37,51,"CREATE_SINGLE_PUBLICATION.CITE")),rr(3),Oo("ngIf",e.publicationControl.hasError("required","cite")),rr(2),Oo("disabled",e.publicationControl.invalid),rr(1),xa(" ",lu(43,53,"CREATE_SINGLE_PUBLICATION.NEXT")," "),rr(2),Oo("editable",!e.duplicateCheck),rr(4),xa(" ",lu(49,55,"CREATE_SINGLE_PUBLICATION.SIMILARITY_CHECK")," "),rr(2),Oo("ngIf",e.innerLoading),rr(1),Oo("ngIf",!e.innerLoading&&!e.duplicateCheck),rr(1),Oo("ngIf",!e.innerLoading&&!e.duplicateCheck),rr(1),Oo("ngIf",!e.innerLoading&&e.duplicateCheck),rr(1),Oo("ngIf",!e.innerLoading),rr(4),xa(" ",lu(59,57,"CREATE_SINGLE_PUBLICATION.ADD_AUTHORS")," "),rr(2),Oo("ngIf",e.innerLoading),rr(1),Oo("ngIf",!e.innerLoading),rr(1),Oo("ngIf",!e.innerLoading),rr(4),xa(" ",lu(67,59,"CREATE_SINGLE_PUBLICATION.ADD_THANKS")," "),rr(2),Oo("ngIf",null!==e.publication),rr(1),Oo("ngIf",e.innerLoading),rr(3),xa(" ",lu(73,61,"CREATE_SINGLE_PUBLICATION.PREV")," "),rr(3),xa(" ",lu(76,63,"CREATE_SINGLE_PUBLICATION.FINISH")," ")}}const SK=lO,MK={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let EK=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this.formBuilder=t,this.cabinetService=e,this.dialog=i,this.router=n,this.notificator=s,this.translate=r,this.storeService=o,this.userService=a,this.similarPublications=[],this.filteredPublications=[],this.categories=[],this.publication=null,this.authorsSelection=new $k(!0,[]),this.thanksSelection=new $k(!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:["",KC.required],year:["",KC.required],category:["",KC.required],isbn:[""],doi:[""],cite:["",KC.required]}),this.maxYear=SK(),this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.loading=!1})}chosenYearHandler(t,e){this.publicationControl.get("year").setValue(t),e.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 t={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(e=>{const i=e.userAttributes.filter(t=>"preferredMail"===t.friendlyName);0!==i.length&&(t.publication.createdBy=i[0].value),this.cabinetService.createPublication(t).subscribe(t=>{this.publication=t,this.publicationControl.get("addAuthor").value?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publication.id,userId:e.id}}).subscribe(()=>{this.createTimeout()},()=>this.innerLoading=!1):this.createTimeout()},()=>this.innerLoading=!1)},()=>this.innerLoading=!1)}similarCheck(){this.innerLoading=!0;const t=this.publicationControl.get("title").value?this.publicationControl.get("title").value:null,e=this.publicationControl.get("DOI").value?this.publicationControl.get("DOI").value:null,i=this.publicationControl.get("ISBN").value?this.publicationControl.get("ISBN").value:null;this.cabinetService.findSimilarPublications(t,e,i).subscribe(t=>{this.similarPublications=t,this.filteredPublications=t,setTimeout(()=>{this.duplicateCheck=0===t.length,this.innerLoading=!1},2e3)})}stepChanged(t){1===t.selectedIndex&&this.similarCheck(),2===t.selectedIndex&&null===this.publication&&this.createPublication()}redirect(t){this.router.navigate(t)}loadPublicationDetail(t,e){this.selectedPubId=t.id,this.selectedPubTitle=t.title,e.selectedIndex=1}}return t.\u0275fac=function(e){return new(e||t)(Ho(eM),Ho(Ef),Ho(vx),Ho(g_),Ho($x),Ho(sx),Ho(Yx),Ho(Yf))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-create-single-publication-page"]],features:[Za([{provide:mA,useClass:pO,deps:[gA]},{provide:_A,useValue:MK}])],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(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),jo(2,"span"),jo(3,"mat-icon",2),Ma(4,"add_box"),Yo(),Ma(5),uu(6,"translate"),Yo(),Yo(),Io(7,$N,1,0,"mat-spinner",3),Io(8,CK,77,65,"mat-horizontal-stepper",4),Yo()),2&t&&(rr(5),xa(" ",lu(6,3,"CREATE_SINGLE_PUBLICATION.TITLE")," "),rr(2),Oo("ngIf",e.loading),rr(1),Oo("ngIf",!e.loading))},directives:[BE,Oh,uR,nI,Xz,Uz,YS,uS,$S,HL,cS,GS,EC,wR,HC,ZS,yC,sF,oF,AC,XI,AM,Fh,ok,sI,HS,rI,dC,QA,CH,ON,MN,kN,vN,XH,XY,Tj,uY],pipes:[rx],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}"]}),t})();function xK(t,e){if(1&t&&(jo(0,"mat-option",14),Ma(1),Yo()),2&t){const t=e.$implicit;Oo("value",t),rr(1),Ea(t.friendlyName)}}function RK(t,e){1&t&&(jo(0,"app-alert",15),Ma(1),uu(2,"translate"),Yo()),2&t&&(Oo("alert_type","info"),rr(1),xa(" ",lu(2,2,"IMPORT_PUBLICATIONS.INFO")," "))}function DK(t,e){if(1&t){const t=qo();jo(0,"perun-web-apps-publications-list",16),Jo("page",function(e){return ze(t),ea(2).pageChanged(e)}),Yo()}if(2&t){const t=ea(2);Oo("publications",t.publications)("displayedColumns",t.displayedColumns)("selection",t.selected)("pageSize",t.pageSize)("disabledRouting",!0)("allowAlert",t.firstSearchDone)}}function PK(t,e){if(1&t){const t=qo();jo(0,"div"),jo(1,"div"),jo(2,"mat-form-field",5),jo(3,"mat-label"),Ma(4),uu(5,"translate"),Yo(),jo(6,"mat-select",6),Jo("closed",function(){return ze(t),ea().selectPubSystem()}),Io(7,xK,2,2,"mat-option",7),Yo(),Yo(),No(8,"perun-web-apps-year-range",8),jo(9,"button",9),Jo("click",function(){return ze(t),ea().searchPublications()}),jo(10,"mat-icon"),Ma(11,"search"),Yo(),Ma(12),uu(13,"translate"),Yo(),jo(14,"button",10),Jo("click",function(){ze(t);const e=ea();return e.importPublications(e.selected.selected)}),Ma(15),uu(16,"translate"),Yo(),jo(17,"mat-checkbox",11),Jo("ngModelChange",function(e){return ze(t),ea().userAsAuthor=e}),Ma(18),uu(19,"translate"),Yo(),Yo(),Io(20,RK,3,4,"app-alert",12),Io(21,DK,1,6,"perun-web-apps-publications-list",13),Yo()}if(2&t){const t=ea();rr(4),Ea(lu(5,12,"IMPORT_PUBLICATIONS.EXT_PUB_SYSTEM")),rr(2),Oo("formControl",t.pubSystem),rr(1),Oo("ngForOf",t.publicationSystems),rr(1),Oo("startYear",t.startYear)("endYear",t.endYear),rr(4),xa(" ",lu(13,14,"IMPORT_PUBLICATIONS.SEARCH")," "),rr(2),Oo("disabled",0===t.selected.selected.length),rr(1),xa(" ",lu(16,16,"IMPORT_PUBLICATIONS.IMPORT")," "),rr(2),Oo("ngModel",t.userAsAuthor),rr(1),xa(" ",lu(19,18,"IMPORT_PUBLICATIONS.ADD_MYSELF")," "),rr(2),Oo("ngIf",!t.firstSearchDone),rr(1),Oo("ngIf",!t.loading)}}function LK(t,e){1&t&&No(0,"mat-spinner",17)}function zK(t,e){1&t&&(jo(0,"i"),Ma(1),uu(2,"translate"),Yo()),2&t&&(rr(1),xa(" ",lu(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED")," "))}function IK(t,e){1&t&&(jo(0,"mat-icon",28),Ma(1,"check_circle"),Yo())}function FK(t,e){if(1&t){const t=qo();jo(0,"button",29),Jo("click",function(){ze(t);const e=ea(),i=e.$implicit,n=e.index;return ea(2).completePublication(i.id,n)}),Ma(1),uu(2,"translate"),Yo()}2&t&&(rr(1),xa(" ",lu(2,1,"IMPORT_PUBLICATIONS.CHECKED_BUTTON")," "))}function HK(t,e){if(1&t){const t=qo();jo(0,"button",30),Jo("click",function(){ze(t);const e=ea().$implicit;return ea(2).incompletePublication(e.id)}),Ma(1),uu(2,"translate"),Yo()}2&t&&(rr(1),xa(" ",lu(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED_BUTTON")," "))}function OK(t,e){if(1&t){const t=qo();jo(0,"mat-expansion-panel",22),jo(1,"mat-expansion-panel-header",23),Jo("click",function(){const e=ze(t).index;return ea(2).editPublication(e)}),jo(2,"mat-panel-title"),Ma(3),Io(4,zK,3,3,"i",3),Io(5,IK,2,0,"mat-icon",24),Yo(),Yo(),No(6,"perun-web-apps-publication-detail",25),jo(7,"div",26),Io(8,FK,3,3,"button",20),Io(9,HK,3,3,"button",27),Yo(),Yo()}if(2&t){const t=e.$implicit,i=e.index,n=ea(2);Oo("expanded",n.indexExpanded===i),rr(3),xa(" ",t.title," "),rr(1),Oo("ngIf",!n.completePublications.includes(t.id)),rr(1),Oo("ngIf",n.completePublications.includes(t.id)),rr(1),Oo("publicationId",t.id),rr(2),Oo("ngIf",!n.completePublications.includes(t.id)),rr(1),Oo("ngIf",n.completePublications.includes(t.id))}}function BK(t,e){if(1&t){const t=qo();jo(0,"button",29),Jo("click",function(){return ze(t),ea(2).completeAllPublications()}),Ma(1),uu(2,"translate"),Yo()}2&t&&(rr(1),xa(" ",lu(2,1,"IMPORT_PUBLICATIONS.CHECK_ALL")," "))}function jK(t,e){if(1&t){const t=qo();jo(0,"div",31),uu(1,"translate"),jo(2,"button",32),Jo("click",function(){return ze(t),ea(2).onSubmit()}),Ma(3),uu(4,"translate"),Yo(),Yo()}if(2&t){const t=ea(2);ra("matTooltip",lu(1,4,"IMPORT_PUBLICATIONS.SUBMIT_TOOLTIP")),Oo("matTooltipPosition","above")("matTooltipDisabled",t.completePublications.length===t.importedPublications.length),rr(3),xa(" ",lu(4,6,"IMPORT_PUBLICATIONS.FINISH")," ")}}function YK(t,e){if(1&t&&(jo(0,"div"),jo(1,"app-alert",15),Ma(2),uu(3,"translate"),Yo(),jo(4,"mat-accordion"),Io(5,OK,10,7,"mat-expansion-panel",18),Yo(),jo(6,"div",19),Io(7,BK,3,3,"button",20),Yo(),Io(8,jK,5,8,"div",21),Yo()),2&t){const t=ea();rr(1),Oo("alert_type","info"),rr(1),xa(" ",lu(3,5,"IMPORT_PUBLICATIONS.IMPORTED_INFO")," "),rr(3),Oo("ngForOf",t.importedPublications),rr(2),Oo("ngIf",t.completePublications.length!==t.importedPublications.length),rr(1),Oo("ngIf",t.completePublications.length===t.importedPublications.length)}}const NK=lO,KK={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},UK=[{path:"",redirectTo:"all-publications",pathMatch:"full"},{path:"login",component:eN},{path:"all-publications",component:kO},{path:"my-publications",component:MO},{path:"create-publication",component:EO},{path:"create-publication/import",component:(()=>{class t{constructor(t,e,i,n,s,r,o){this.cabinetService=t,this.storeService=e,this.tableConfigService=i,this.notificator=n,this.translate=s,this.router=r,this.dialog=o,this.loading=!1,this.publicationSystems=[],this.pubSystem=new PS,this.publications=[],this.selected=new $k(!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.pageSize=this.tableConfigService.getTablePageSize(this.tableId),this.userId=this.storeService.getPerunPrincipal().user.id,this.startYear=new PS(NK().subtract(1,"year")),this.endYear=new PS(NK()),this.cabinetService.getPublicationSystems().subscribe(t=>{this.publicationSystems=t.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(t=>{this.publications=t,this.loading=!1},()=>this.loading=!1)}importPublications(t){if(this.loading=!0,0===t.length)return this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SUCCESS")),this.importDone=!0,this.indexExpanded=0,void(this.loading=!1);const e=t.shift();this.cabinetService.createPublication({publication:{title:e.title,categoryId:e.categoryId,year:e.year,isbn:e.isbn,doi:e.doi,main:e.main}}).subscribe(e=>{this.userAsAuthor?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:e.id,userId:this.userId}}).subscribe(()=>{this.importedPublications.push(e),this.importPublications(t)},()=>this.loading=!1):(this.importedPublications.push(e),this.importPublications(t))},()=>this.loading=!1)}pageChanged(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}editPublication(t){this.indexExpanded=t===this.indexExpanded?-1:t}completePublication(t,e){this.completePublications.includes(t)||this.completePublications.push(t),this.indexExpanded=e!==this.importedPublications.length-1?e+1:-1}incompletePublication(t){this.completePublications.includes(t)&&(this.completePublications=this.completePublications.filter(e=>e!==t)),this.indexExpanded=-1}completeAllPublications(){const t=Rx();t.width="500px",t.data={theme:"user-theme",message:this.translate.instant("IMPORT_PUBLICATIONS.CHECK_ALL_MESSAGE")},this.dialog.open(PD,t).afterClosed().subscribe(t=>{t&&this.onSubmit()})}onSubmit(){this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SHOW_FINISH")),this.router.navigate(["/my-publications"])}}return t.\u0275fac=function(e){return new(e||t)(Ho(Ef),Ho(Yx),Ho(oO),Ho($x),Ho(sx),Ho(g_),Ho(vx))},t.\u0275cmp=Kt({type:t,selectors:[["perun-web-apps-import-publications-page"]],features:[Za([{provide:mA,useClass:pO,deps:[gA]},{provide:_A,useValue:KK}])],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"],[3,"alert_type",4,"ngIf"],[3,"publications","displayedColumns","selection","pageSize","disabledRouting","allowAlert","page",4,"ngIf"],[1,"group-theme",3,"value"],[3,"alert_type"],[3,"publications","displayedColumns","selection","pageSize","disabledRouting","allowAlert","page"],[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(t,e){1&t&&(jo(0,"div",0),jo(1,"h1",1),jo(2,"span"),jo(3,"mat-icon",2),Ma(4,"add_box"),Yo(),Ma(5),uu(6,"translate"),Yo(),Yo(),Io(7,PK,22,20,"div",3),Io(8,LK,1,0,"mat-spinner",4),Io(9,YK,9,7,"div",3),Yo()),2&t&&(rr(5),xa(" ",lu(6,4,"IMPORT_PUBLICATIONS.TITLE")," "),rr(2),Oo("ngIf",!e.importDone),rr(1),Oo("ngIf",e.loading),rr(1),Oo("ngIf",e.importDone))},directives:[BE,Oh,EC,yC,AM,cS,VS,Fh,mO,ok,HL,jS,QA,CH,XH,uR,cz,rz,oz,az,XY,OM],pipes:[rx],styles:[".input-width-300[_ngcontent-%COMP%]{width:300px}.left-space[_ngcontent-%COMP%]{margin-left:10px}.checked-icon[_ngcontent-%COMP%], mat-panel-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-left:5px}.checked-icon[_ngcontent-%COMP%]{vertical-align:middle}.right-button[_ngcontent-%COMP%]{margin-top:20px;margin-left:auto;margin-right:0}.fit-content[_ngcontent-%COMP%], .right-button[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.fit-content[_ngcontent-%COMP%]{margin-top:15px}.width-100[_ngcontent-%COMP%]{width:100%}"]}),t})()},{path:"create-publication/create",component:EK},{path:"authors",component:iB},{path:"authors/:authorId",component:rj},{path:"authors/:authorId/publication/:publicationId",component:XY},{path:"all-publications/:publicationId",component:XY},{path:"my-publications/:publicationId",component:XY},{path:"categories",component:OB},{path:"publication-systems",component:ej}];let VK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ft({imports:[[x_.forRoot(UK,{preloadingStrategy:A_,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],x_]}),t})();const qK={provide:lf,useExisting:rt(()=>Wx),multi:!0};function $K(t){return new pL(t,"./assets/i18n/",".json")}function WK(t){const e={basePath:t.get("api_url")};return new Tf(e)}const GK=t=>()=>t.loadConfigs();let JK=(()=>{class t{constructor(t,e){this.customIconService=t,this.translate=e,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return t.\u0275fac=function(e){return new(e||t)(gn(Vx),gn(sx))},t.\u0275mod=$t({type:t,bootstrap:[fL]}),t.\u0275inj=ft({providers:[Vx,{provide:Iu,useFactory:GK,multi:!0,deps:[_L]},{provide:Tf,useFactory:WK,deps:[Yx]},Wx,qK,{provide:yL,useClass:Jx},gO],imports:[[Hd,ox.forRoot({loader:{provide:YE,useFactory:$K,deps:[cf]}}),tA,vH,wL,Wf,vf,VK,kF,Xx,tN,qN,ax]]}),t})();(function(){if(gl)throw new Error("Cannot enable prod mode after platform setup.");pl=!1})(),Id().bootstrapModule(JK).catch(t=>console.error(t))},2051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){o(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,r=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!r?function(t,r,o){var a=s.URL||s.webkitURL,c=document.createElement("a");c.download=r=r||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,r,o):n(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,s,r){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,r),s);else if(i(t))e(t,s,r);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout(function(){n(o)})}}:function(t,i,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&c||r)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location=t,o=null},l.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(t);o?o.location=d:location.href=d,o=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});s.saveAs=o.saveAs=o,t.exports=o})?i.apply(e,[]):i)||(t.exports=n)},776:function(t,e,i){!function(t){"use strict";t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(t){return/^nm$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"vm":"VM":i?"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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},2758:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-dz",{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:"\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:"\u0623\u062d_\u0625\u062b_\u062b\u0644\u0627_\u0623\u0631_\u062e\u0645_\u062c\u0645_\u0633\u0628".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:4}})}(i(9609))},4980:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(i(9609))},9602:function(t,e,i){!function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={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(t){return function(e,s,r,o){var a=i(e),c=n[t][i(e)];return 2===a&&(c=c[s?0:1]),c.replace(/%d/i,e)}},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"];t.defineLocale("ar-ly",{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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},2500:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\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:6,doy:12}})}(i(9609))},6909:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};t.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(i(9609))},2735:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(i(9609))},7634:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%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"]},r=function(t){return function(e,i,r,o){var a=n(e),c=s[t][n(e)];return 2===a&&(c=c[i?0:1]),c.replace(/%d/i,e)}},o=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];t.defineLocale("ar",{months:o,monthsShort:o,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},7798:function(t,e,i){!function(t){"use strict";var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"birne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(t){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(t)},meridiem:function(t,e,i){return t<4?"gec\u0259":t<12?"s\u0259h\u0259r":t<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(t){if(0===t)return t+"-\u0131nc\u0131";var i=t%10;return t+(e[i]||e[t%100-i]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},9949:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===i?e?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}t.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:e,mm:e,h:e,hh:e,d:"\u0434\u0437\u0435\u043d\u044c",dd:e,M:"\u043c\u0435\u0441\u044f\u0446",MM:e,y:"\u0433\u043e\u0434",yy:e},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u044b":t<12?"\u0440\u0430\u043d\u0456\u0446\u044b":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-\u044b":t+"-\u0456";case"D":return t+"-\u0433\u0430";default:return t}},week:{dow:1,doy:7}})}(i(9609))},4590:function(t,e,i){!function(t){"use strict";t.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0440_\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"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043c\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\u043d\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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(9609))},5938:function(t,e,i){!function(t){"use strict";t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(i(9609))},595:function(t,e,i){!function(t){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},i={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};t.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09c0_\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_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2_\u0986\u0997_\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_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\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(t){return t.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u09b0\u09be\u09a4"===e&&t>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===e&&t<5||"\u09ac\u09bf\u0995\u09be\u09b2"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u09b0\u09be\u09a4":t<10?"\u09b8\u0995\u09be\u09b2":t<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":t<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(i(9609))},4756:function(t,e,i){!function(t){"use strict";var e={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},i={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};t.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\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("_"),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\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("_"),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(t){return t.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e){return 12===t&&(t=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===e&&t>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===e&&t<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":t<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":t<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":t<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(i(9609))},7277:function(t,e,i){!function(t){"use strict";function e(t,e,i){return t+" "+function(t,e){return 2===e?function(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}(t):t}({mm:"munutenn",MM:"miz",dd:"devezh"}[i],t)}function i(t){return t>9?i(t%10):t}t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:function(t){switch(i(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(t){return t+(1===t?"a\xf1":"vet")},week:{dow:1,doy:4}})}(i(9609))},4166:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},3943:function(t,e,i){!function(t){"use strict";t.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(t,e){var i=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"\xe8";return"w"!==e&&"W"!==e||(i="a"),t+i},week:{dow:1,doy:4}})}(i(9609))},3474:function(t,e,i){!function(t){"use strict";var e="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),i="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),n=[/^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 r(t){return t>1&&t<5&&1!=~~(t/10)}function o(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return e||n?s+(r(t)?"sekundy":"sekund"):s+"sekundami";case"m":return e?"minuta":n?"minutu":"minutou";case"mm":return e||n?s+(r(t)?"minuty":"minut"):s+"minutami";case"h":return e?"hodina":n?"hodinu":"hodinou";case"hh":return e||n?s+(r(t)?"hodiny":"hodin"):s+"hodinami";case"d":return e||n?"den":"dnem";case"dd":return e||n?s+(r(t)?"dny":"dn\xed"):s+"dny";case"M":return e||n?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return e||n?s+(r(t)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):s+"m\u011bs\xedci";case"y":return e||n?"rok":"rokem";case"yy":return e||n?s+(r(t)?"roky":"let"):s+"lety"}}t.defineLocale("cs",{months:e,monthsShort:i,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:n,longMonthsParse:n,shortMonthsParse:n,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:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},2218:function(t,e,i){!function(t){"use strict";t.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(t){return t+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(t)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(t)?"\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}})}(i(9609))},1061:function(t,e,i){!function(t){"use strict";t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(t){var e="";return t>20?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}})}(i(9609))},2743:function(t,e,i){!function(t){"use strict";t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8580:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},3264:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1899:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8784:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];t.defineLocale("dv",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,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(t){return"\u0789\u078a"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(i(9609))},4654:function(t,e,i){!function(t){"use strict";t.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(t,e,i){return t>11?i?"\u03bc\u03bc":"\u039c\u039c":i?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(t){return"\u03bc"===(t+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,e){var i,n=this._calendarEl[t],s=e&&e.hours();return((i=n)instanceof Function||"[object Function]"===Object.prototype.toString.call(i))&&(n=n.apply(e)),n.replace("{}",s%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}})}(i(9609))},4047:function(t,e,i){!function(t){"use strict";t.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},6277:function(t,e,i){!function(t){"use strict";t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},6896:function(t,e,i){!function(t){"use strict";t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i(9609))},1609:function(t,e,i){!function(t){"use strict";t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},4557:function(t,e,i){!function(t){"use strict";t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},5836:function(t,e,i){!function(t){"use strict";t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i(9609))},3586:function(t,e,i){!function(t){"use strict";t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},2777:function(t,e,i){!function(t){"use strict";t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_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:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,i){return t>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(i(9609))},3128:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},3256:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},3357:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},2654:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[t+" minuti",t+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[t+" tunni",t+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[t+" kuu",t+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[t+" aasta",t+" aastat"]};return e?s[i][2]?s[i][2]:s[i][1]:n?s[i][0]:s[i][1]}t.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d p\xe4eva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},7287:function(t,e,i){!function(t){"use strict";t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},3875:function(t,e,i){!function(t){"use strict";var e={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},i={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};t.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(t){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(t)},meridiem:function(t,e,i){return t<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:"\u062b\u0627\u0646\u06cc\u0647 d%",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(t){return t.replace(/[\u06f0-\u06f9]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(i(9609))},3431:function(t,e,i){!function(t){"use strict";var e="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),i=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",e[7],e[8],e[9]];function n(t,n,s,r){var o="";switch(s){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":return r?"sekunnin":"sekuntia";case"m":return r?"minuutin":"minuutti";case"mm":o=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":o=r?"tunnin":"tuntia";break;case"d":return r?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":o=r?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return r?"kuukauden":"kuukausi";case"MM":o=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":o=r?"vuoden":"vuotta"}return function(t,n){return t<10?n?i[t]:e[t]:t}(t,r)+" "+o}t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1781:function(t,e,i){!function(t){"use strict";t.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1539:function(t,e,i){!function(t){"use strict";t.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})}(i(9609))},9847:function(t,e,i){!function(t){"use strict";t.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i(9609))},1717:function(t,e,i){!function(t){"use strict";t.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),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|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i(9609))},2250:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},7665:function(t,e,i){!function(t){"use strict";t.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","M\xe9itheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deaireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean\xe1","Feab","M\xe1rt","Aibr","Beal","M\xe9it","I\xfail","L\xfana","Me\xe1n","Deai","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 Satharn"],weekdaysShort:["Dom","Lua","M\xe1i","C\xe9a","D\xe9a","hAo","Sat"],weekdaysMin:["Do","Lu","M\xe1","Ce","D\xe9","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:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 aig] 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\xed",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(9609))},5214:function(t,e,i){!function(t){"use strict";t.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(9609))},6154:function(t,e,i){!function(t){"use strict";t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(t){return 0===t.indexOf("un")?"n"+t:"en "+t},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}})}(i(9609))},8518:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["thodde secondanim","thodde second"],ss:[t+" secondanim",t+" second"],m:["eka mintan","ek minute"],mm:[t+" mintanim",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voranim",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disanim",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineanim",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsanim",t+" vorsam"]};return e?s[i][0]:s[i][1]}t.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_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[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",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}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokalli"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"rati":t<12?"sokalli":t<16?"donparam":t<20?"sanje":"rati"}})}(i(9609))},9221:function(t,e,i){!function(t){"use strict";var e={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},i={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};t.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ac7\u0ab9\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(t){return t.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0ab0\u0abe\u0aa4"===e?t<4?t:t+12:"\u0ab8\u0ab5\u0abe\u0ab0"===e?t:"\u0aac\u0aaa\u0acb\u0ab0"===e?t>=10?t:t+12:"\u0ab8\u0abe\u0a82\u0a9c"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0ab0\u0abe\u0aa4":t<10?"\u0ab8\u0ab5\u0abe\u0ab0":t<17?"\u0aac\u0aaa\u0acb\u0ab0":t<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(i(9609))},4743:function(t,e,i){!function(t){"use strict";t.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(t){return 2===t?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":t+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(t){return 2===t?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":t+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(t){return 2===t?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":t+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(t){return 2===t?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":t%10==0&&10!==t?t+" \u05e9\u05e0\u05d4":t+" \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(t){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(t)},meridiem:function(t,e,i){return t<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":t<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":t<12?i?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":t<18?i?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(i(9609))},7339:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.defineLocale("hi",{months:"\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("_"),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("_"),monthsParseExact:!0,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"},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(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924"===e?t<4?t:t+12:"\u0938\u0941\u092c\u0939"===e?t:"\u0926\u094b\u092a\u0939\u0930"===e?t>=10?t:t+12:"\u0936\u093e\u092e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924":t<10?"\u0938\u0941\u092c\u0939":t<17?"\u0926\u094b\u092a\u0939\u0930":t<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(i(9609))},3224:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},856:function(t,e,i){!function(t){"use strict";var e="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function i(t,e,i,n){var s=t;switch(i){case"s":return n||e?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return s+(n||e)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(n||e?" perc":" perce");case"mm":return s+(n||e?" perc":" perce");case"h":return"egy"+(n||e?" \xf3ra":" \xf3r\xe1ja");case"hh":return s+(n||e?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(n||e?" nap":" napja");case"dd":return s+(n||e?" nap":" napja");case"M":return"egy"+(n||e?" h\xf3nap":" h\xf3napja");case"MM":return s+(n||e?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(n||e?" \xe9v":" \xe9ve");case"yy":return s+(n||e?" \xe9v":" \xe9ve")}return""}function n(t){return(t?"":"[m\xfalt] ")+"["+e[this.day()]+"] LT[-kor]"}t.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),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(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,i){return t<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%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:4}})}(i(9609))},6855:function(t,e,i){!function(t){"use strict";t.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(t){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(t)},meridiem:function(t){return t<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":t<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":t<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(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-\u056b\u0576":t+"-\u0580\u0564";default:return t}},week:{dow:1,doy:7}})}(i(9609))},2190:function(t,e,i){!function(t){"use strict";t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"siang":t<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:1,doy:7}})}(i(9609))},3887:function(t,e,i){!function(t){"use strict";function e(t){return t%100==11||t%10!=1}function i(t,i,n,s){var r=t+" ";switch(n){case"s":return i||s?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return e(t)?r+(i||s?"sek\xfandur":"sek\xfandum"):r+"sek\xfanda";case"m":return i?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return e(t)?r+(i||s?"m\xedn\xfatur":"m\xedn\xfatum"):i?r+"m\xedn\xfata":r+"m\xedn\xfatu";case"hh":return e(t)?r+(i||s?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return i?"dagur":s?"dag":"degi";case"dd":return e(t)?i?r+"dagar":r+(s?"daga":"d\xf6gum"):i?r+"dagur":r+(s?"dag":"degi");case"M":return i?"m\xe1nu\xf0ur":s?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return e(t)?i?r+"m\xe1nu\xf0ir":r+(s?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):i?r+"m\xe1nu\xf0ur":r+(s?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return i||s?"\xe1r":"\xe1ri";case"yy":return e(t)?r+(i||s?"\xe1r":"\xe1rum"):r+(i||s?"\xe1r":"\xe1ri")}}t.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},5890:function(t,e,i){!function(t){"use strict";t.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i(9609))},9270:function(t,e,i){!function(t){"use strict";t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i(9609))},6595:function(t,e,i){!function(t){"use strict";t.defineLocale("ja",{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:"\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(t){return"\u5348\u5f8c"===t},meridiem:function(t,e,i){return t<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(t){return t.week()=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"enjing":t<15?"siyang":t<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}})}(i(9609))},7477:function(t,e,i){!function(t){"use strict";t.defineLocale("ka",{months:{standalone:"\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("_"),format:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".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:"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:"[\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(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(t)?t.replace(/\u10d8$/,"\u10e8\u10d8"):t+"\u10e8\u10d8"},past:function(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(t)?t.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(t)?t.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):void 0},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(t){return 0===t?t:1===t?t+"-\u10da\u10d8":t<20||t<=100&&t%20==0||t%100==0?"\u10db\u10d4-"+t:t+"-\u10d4"},week:{dow:1,doy:7}})}(i(9609))},3978:function(t,e,i){!function(t){"use strict";var e={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};t.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},9205:function(t,e,i){!function(t){"use strict";var e={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},i={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};t.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(t){return"\u179b\u17d2\u1784\u17b6\u1785"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(i(9609))},25:function(t,e,i){!function(t){"use strict";var e={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},i={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};t.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(t){return t.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e){return 12===t&&(t=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===e?t<4?t:t+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===e?t:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===e?t>=10?t:t+12:"\u0cb8\u0c82\u0c9c\u0cc6"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":t<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":t<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":t<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(t){return t+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(i(9609))},427:function(t,e,i){!function(t){"use strict";t.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\uc77c";case"M":return t+"\uc6d4";case"w":case"W":return t+"\uc8fc";default:return t}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(t){return"\uc624\ud6c4"===t},meridiem:function(t,e,i){return t<12?"\uc624\uc804":"\uc624\ud6c4"}})}(i(9609))},9089:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];t.defineLocale("ku",{months:n,monthsShort:n,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(t){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(t)},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},9314:function(t,e,i){!function(t){"use strict";var e={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};t.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},3136:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={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 e?s[i][0]:s[i][1]}function i(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return i(0===e?t/10:e)}if(t<1e4){for(;t>=10;)t/=10;return i(t)}return i(t/=1e3)}t.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(t){return i(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t},past:function(t){return i(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d M\xe9int",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},9115:function(t,e,i){!function(t){"use strict";t.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(t){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===t},meridiem:function(t,e,i){return t<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(t){return"\u0e97\u0eb5\u0ec8"+t}})}(i(9609))},7087:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i,n){return e?s(i)[0]:n?s(i)[1]:s(i)[2]}function n(t){return t%10==0||t>10&&t<20}function s(t){return e[t].split("_")}function r(t,e,r,o){var a=t+" ";return 1===t?a+i(0,e,r[0],o):e?a+(n(t)?s(r)[1]:s(r)[0]):o?a+s(r)[1]:a+(n(t)?s(r)[1]:s(r)[2])}t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function(t,e,i,n){return e?"kelios sekund\u0117s":n?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})}(i(9609))},5683:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i){return i?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function n(t,n,s){return t+" "+i(e[s],t,n)}function s(t,n,s){return i(e[s],t,n)}t.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function(t,e){return e?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:n,m:s,mm:n,h:s,hh:n,d:s,dd:n,M:s,MM:n,y:s,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},9454:function(t,e,i){!function(t){"use strict";var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},5507:function(t,e,i){!function(t){"use strict";t.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(9609))},8466:function(t,e,i){!function(t){"use strict";t.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u043e\u0441\u043b\u0435 %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:"\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",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(9609))},2933:function(t,e,i){!function(t){"use strict";t.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===e&&t>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===e||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":t<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":t<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":t<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(i(9609))},9477:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){switch(i){case"s":return e?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return t+(e?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return t+(e?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return t+(e?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return t+(e?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return t+(e?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return t+(e?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return t}}t.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(t){return"\u04ae\u0425"===t},meridiem:function(t,e,i){return t<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s: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} \u04e9\u0434\u04e9\u0440/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" \u04e9\u0434\u04e9\u0440";default:return t}}})}(i(9609))},3597:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function n(t,e,i,n){var s="";if(e)switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":s="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":s="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":s="%d \u0924\u093e\u0938";break;case"d":s="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":s="%d \u0926\u093f\u0935\u0938";break;case"M":s="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":s="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u0947"}else switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":s="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":s="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":s="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":s="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":s="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":s="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":s="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return s.replace(/%d/i,t)}t.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===e?t<4?t:t+12:"\u0938\u0915\u093e\u0933\u0940"===e?t:"\u0926\u0941\u092a\u093e\u0930\u0940"===e?t>=10?t:t+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924\u094d\u0930\u0940":t<10?"\u0938\u0915\u093e\u0933\u0940":t<17?"\u0926\u0941\u092a\u093e\u0930\u0940":t<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(i(9609))},9965:function(t,e,i){!function(t){"use strict";t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i(9609))},5529:function(t,e,i){!function(t){"use strict";t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i(9609))},259:function(t,e,i){!function(t){"use strict";t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(9609))},8061:function(t,e,i){!function(t){"use strict";var e={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},i={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};t.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(t){return t.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(i(9609))},2618:function(t,e,i){!function(t){"use strict";t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_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",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}})}(i(9609))},8452:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u093f"===e?t<4?t:t+12:"\u092c\u093f\u0939\u093e\u0928"===e?t:"\u0926\u093f\u0909\u0901\u0938\u094b"===e?t>=10?t:t+12:"\u0938\u093e\u0901\u091d"===e?t+12:void 0},meridiem:function(t,e,i){return t<3?"\u0930\u093e\u0924\u093f":t<12?"\u092c\u093f\u0939\u093e\u0928":t<16?"\u0926\u093f\u0909\u0901\u0938\u094b":t<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}})}(i(9609))},413:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],s=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},1885:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],s=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},5107:function(t,e,i){!function(t){"use strict";t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_m\xe5n_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_m\xe5_ty_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 [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",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}})}(i(9609))},702:function(t,e,i){!function(t){"use strict";var e={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},i={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};t.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(t){return t.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0a30\u0a3e\u0a24"===e?t<4?t:t+12:"\u0a38\u0a35\u0a47\u0a30"===e?t:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===e?t>=10?t:t+12:"\u0a38\u0a3c\u0a3e\u0a2e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0a30\u0a3e\u0a24":t<10?"\u0a38\u0a35\u0a47\u0a30":t<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":t<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(i(9609))},1711:function(t,e,i){!function(t){"use strict";var e="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function n(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function s(t,e,i){var s=t+" ";switch(i){case"ss":return s+(n(t)?"sekundy":"sekund");case"m":return e?"minuta":"minut\u0119";case"mm":return s+(n(t)?"minuty":"minut");case"h":return e?"godzina":"godzin\u0119";case"hh":return s+(n(t)?"godziny":"godzin");case"MM":return s+(n(t)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return s+(n(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,n){return t?""===n?"("+i[t.month()]+"|"+e[t.month()]+")":/D MMMM/.test(n)?i[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),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:s,m:s,mm:s,h:s,hh:s,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8238:function(t,e,i){!function(t){"use strict";t.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba"})}(i(9609))},594:function(t,e,i){!function(t){"use strict";t.defineLocale("pt",{months:"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",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}})}(i(9609))},4681:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=" ";return(t%100>=20||t>=100&&t%100==0)&&(n=" de "),t+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._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:e,m:"un minut",mm:e,h:"o or\u0103",hh:e,d:"o zi",dd:e,M:"o lun\u0103",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(i(9609))},6201:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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",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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}var i=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];t.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?\] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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(t){if(t.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(t){if(t.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,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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0438":t<12?"\u0443\u0442\u0440\u0430":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-\u0439";case"D":return t+"-\u0433\u043e";case"w":case"W":return t+"-\u044f";default:return t}},week:{dow:1,doy:4}})}(i(9609))},2912:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];t.defineLocale("sd",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(9609))},6002:function(t,e,i){!function(t){"use strict";t.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},7942:function(t,e,i){!function(t){"use strict";t.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(t){return t+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(t){return"\u0db4.\u0dc0."===t||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===t},meridiem:function(t,e,i){return t>11?i?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":i?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(i(9609))},5577:function(t,e,i){!function(t){"use strict";var e="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),i="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function n(t){return t>1&&t<5}function s(t,e,i,s){var r=t+" ";switch(i){case"s":return e||s?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return e||s?r+(n(t)?"sekundy":"sek\xfand"):r+"sekundami";case"m":return e?"min\xfata":s?"min\xfatu":"min\xfatou";case"mm":return e||s?r+(n(t)?"min\xfaty":"min\xfat"):r+"min\xfatami";case"h":return e?"hodina":s?"hodinu":"hodinou";case"hh":return e||s?r+(n(t)?"hodiny":"hod\xedn"):r+"hodinami";case"d":return e||s?"de\u0148":"d\u0148om";case"dd":return e||s?r+(n(t)?"dni":"dn\xed"):r+"d\u0148ami";case"M":return e||s?"mesiac":"mesiacom";case"MM":return e||s?r+(n(t)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return e||s?"rok":"rokom";case"yy":return e||s?r+(n(t)?"roky":"rokov"):r+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:i,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:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [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}})}(i(9609))},1775:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"nekaj sekund":"nekaj sekundami";case"ss":return s+(1===t?e?"sekundo":"sekundi":2===t?e||n?"sekundi":"sekundah":t<5?e||n?"sekunde":"sekundah":"sekund");case"m":return e?"ena minuta":"eno minuto";case"mm":return s+(1===t?e?"minuta":"minuto":2===t?e||n?"minuti":"minutama":t<5?e||n?"minute":"minutami":e||n?"minut":"minutami");case"h":return e?"ena ura":"eno uro";case"hh":return s+(1===t?e?"ura":"uro":2===t?e||n?"uri":"urama":t<5?e||n?"ure":"urami":e||n?"ur":"urami");case"d":return e||n?"en dan":"enim dnem";case"dd":return s+(1===t?e||n?"dan":"dnem":2===t?e||n?"dni":"dnevoma":e||n?"dni":"dnevi");case"M":return e||n?"en mesec":"enim mesecem";case"MM":return s+(1===t?e||n?"mesec":"mesecem":2===t?e||n?"meseca":"mesecema":t<5?e||n?"mesece":"meseci":e||n?"mesecev":"meseci");case"y":return e||n?"eno leto":"enim letom";case"yy":return s+(1===t?e||n?"leto":"letom":2===t?e||n?"leti":"letoma":t<5?e||n?"leta":"leti":e||n?"let":"leti")}}t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s: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:7}})}(i(9609))},6823:function(t,e,i){!function(t){"use strict";t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(t){return"M"===t.charAt(0)},meridiem:function(t,e,i){return t<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}})}(i(9609))},3848:function(t,e,i){!function(t){"use strict";var e={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\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\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"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"\u0434\u0430\u043d",dd:e.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:e.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},9038:function(t,e,i){!function(t){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"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] [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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},6173:function(t,e,i){!function(t){"use strict";t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(t,e,i){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(i(9609))},5788:function(t,e,i){!function(t){"use strict";t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"e":1===e||2===e?"a":"e")},week:{dow:1,doy:4}})}(i(9609))},6882:function(t,e,i){!function(t){"use strict";t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm: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:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(i(9609))},2678:function(t,e,i){!function(t){"use strict";var e={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},i={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};t.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(t){return t+"\u0bb5\u0ba4\u0bc1"},preparse:function(t){return t.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e,i){return t<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":t<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":t<10?" \u0b95\u0bbe\u0bb2\u0bc8":t<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":t<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":t<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(t,e){return 12===t&&(t=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===e?t<2?t:t+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===e||"\u0b95\u0bbe\u0bb2\u0bc8"===e||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})}(i(9609))},2797:function(t,e,i){!function(t){"use strict";t.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===e?t<4?t:t+12:"\u0c09\u0c26\u0c2f\u0c02"===e?t:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===e?t>=10?t:t+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":t<10?"\u0c09\u0c26\u0c2f\u0c02":t<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":t<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(i(9609))},2447:function(t,e,i){!function(t){"use strict";t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},1335:function(t,e,i){!function(t){"use strict";var e={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};t.defineLocale("tg",{months:"\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:"[\u041f\u0430\u0433\u043e\u04b3 \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0448\u0430\u0431"===e?t<4?t:t+12:"\u0441\u0443\u0431\u04b3"===e?t:"\u0440\u04ef\u0437"===e?t>=11?t:t+12:"\u0431\u0435\u0433\u043e\u04b3"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0448\u0430\u0431":t<11?"\u0441\u0443\u0431\u04b3":t<16?"\u0440\u04ef\u0437":t<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},8667:function(t,e,i){!function(t){"use strict";t.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(t){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===t},meridiem:function(t,e,i){return t<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",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(i(9609))},9914:function(t,e,i){!function(t){"use strict";t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(i(9609))},1389:function(t,e,i){!function(t){"use strict";var e="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function i(t,i,n,s){var r=function(t){var i=Math.floor(t%1e3/100),n=Math.floor(t%100/10),s=t%10,r="";return i>0&&(r+=e[i]+"vatlh"),n>0&&(r+=(""!==r?" ":"")+e[n]+"maH"),s>0&&(r+=(""!==r?" ":"")+e[s]),""===r?"pagh":r}(t);switch(n){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}t.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"},past:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu\u2019":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"},s:"puS lup",ss:i,m:"wa\u2019 tup",mm:i,h:"wa\u2019 rep",hh:i,d:"wa\u2019 jaj",dd:i,M:"wa\u2019 jar",MM:i,y:"wa\u2019 DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},3578:function(t,e,i){!function(t){"use strict";var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};t.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".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 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",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(t,i){switch(i){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'\u0131nc\u0131";var n=t%10;return t+(e[n]||e[t%100-n]||e[t>=100?100:null])}},week:{dow:1,doy:7}})}(i(9609))},6969:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[t+" m\xeduts",t+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[t+" \xfeoras",t+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return n||e?s[i][0]:s[i][1]}t.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,i){return t>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s: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}})}(i(9609))},690:function(t,e,i){!function(t){"use strict";t.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(i(9609))},6509:function(t,e,i){!function(t){"use strict";t.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(i(9609))},55:function(t,e,i){!function(t){"use strict";t.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===e||"\u0633\u06d5\u06be\u06d5\u0631"===e||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===e?t:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===e||"\u0643\u06d5\u0686"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":n<900?"\u0633\u06d5\u06be\u06d5\u0631":n<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":n<1230?"\u0686\u06c8\u0634":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return t+"-\u06be\u06d5\u067e\u062a\u06d5";default:return t}},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(i(9609))},2452:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===i?e?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}function i(t){return function(){return t+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}t.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function(t,e){var i={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===t?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):t?i[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(e)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:i.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:i("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:i("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:i("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:i("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return i("[\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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0456":t<12?"\u0440\u0430\u043d\u043a\u0443":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-\u0439";case"D":return t+"-\u0433\u043e";default:return t}},week:{dow:1,doy:7}})}(i(9609))},1151:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];t.defineLocale("ur",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(9609))},6547:function(t,e,i){!function(t){"use strict";t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(i(9609))},1555:function(t,e,i){!function(t){"use strict";t.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(i(9609))},6541:function(t,e,i){!function(t){"use strict";t.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".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(t){return/^ch$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"sa":"SA":i?"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 r\u1ed3i 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",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(i(9609))},2401:function(t,e,i){!function(t){"use strict";t.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},2341:function(t,e,i){!function(t){"use strict";t.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(i(9609))},619:function(t,e,i){!function(t){"use strict";t.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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|\u5468)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u5468";default:return t}},relativeTime:{future:"%s\u5185",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",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(i(9609))},7058:function(t,e,i){!function(t){"use strict";t.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i(9609))},2782:function(t,e,i){!function(t){"use strict";t.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i(9609))},9609:function(t,e,i){(t=i.nmd(t)).exports=function(){"use strict";var e,n;function s(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var i,n=[];for(i=0;i>>0,n=0;n0)for(i=0;i<_.length;i++)a(s=e[n=_[i]])||(t[n]=s);return t}var w=!1;function b(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,s.updateOffset(this),w=!1)}function v(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function A(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=A(e)),i}function T(t,e,i){var n,s=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),o=0;for(n=0;n=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},K={};function U(t,e,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),t&&(K[t]=s),e&&(K[e[0]]=function(){return B(s.apply(this,arguments),e[1],e[2])}),i&&(K[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function V(t,e){return t.isValid()?(e=q(e,t.localeData()),N[e]=N[e]||function(t){var e,i,n,s=t.match(j);for(e=0,i=s.length;e=0&&Y.test(t);)t=t.replace(Y,n),Y.lastIndex=0,i-=1;return t}var $=/\d/,W=/\d\d/,G=/\d{3}/,J=/\d{4}/,Z=/[+-]?\d{6}/,Q=/\d\d?/,X=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,it=/\d{1,4}/,nt=/[+-]?\d{1,6}/,st=/\d+/,rt=/[+-]?\d+/,ot=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,ct=/[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,ut={};function lt(t,e,i){ut[t]=R(e)?e:function(t,n){return t&&i?i:e}}function ht(t,e){return h(ut,t)?ut[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,s){return e||i||n||s})))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function pt(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),c(e)&&(n=function(t,i){i[e]=k(t)}),i=0;i68?1900:2e3)};var wt,bt=vt("FullYear",!0);function vt(t,e){return function(i){return null!=i?(kt(this,t,i),s.updateOffset(this,e),this):At(this,t)}}function At(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function kt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&yt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Tt(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function Tt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?yt(t)?29:28:31-i%7%2}wt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e=0?(a=new Date(t+400,e,i,n,s,r,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,s,r,o),a}function It(t){var e;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Ft(t,e,i){var n=7+e-i;return-(7+It(t,0,n).getUTCDay()-e)%7+n-1}function Ht(t,e,i,n,s){var r,o,a=1+7*(e-1)+(7+i-n)%7+Ft(t,n,s);return a<=0?o=_t(r=t-1)+a:a>_t(t)?(r=t+1,o=a-_t(t)):(r=t,o=a),{year:r,dayOfYear:o}}function Ot(t,e,i){var n,s,r=Ft(t.year(),e,i),o=Math.floor((t.dayOfYear()-r-1)/7)+1;return o<1?n=o+Bt(s=t.year()-1,e,i):o>Bt(t.year(),e,i)?(n=o-Bt(t.year(),e,i),s=t.year()+1):(s=t.year(),n=o),{week:n,year:s}}function Bt(t,e,i){var n=Ft(t,e,i),s=Ft(t+1,e,i);return(_t(t)-n+s)/7}function jt(t,e){return t.slice(e,7).concat(t.slice(0,e))}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),z("week","w"),z("isoWeek","W"),O("week",5),O("isoWeek",5),lt("w",Q),lt("ww",Q,W),lt("W",Q),lt("WW",Q,W),gt(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=k(t)}),U("d",0,"do","day"),U("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),U("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),U("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),z("day","d"),z("weekday","e"),z("isoWeekday","E"),O("day",11),O("weekday",11),O("isoWeekday",11),lt("d",Q),lt("e",Q),lt("E",Q),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),gt(["dd","ddd","dddd"],function(t,e,i,n){var s=i._locale.weekdaysParse(t,n,i._strict);null!=s?e.d=s:p(i).invalidWeekday=t}),gt(["d","e","E"],function(t,e,i,n){e[n]=k(t)});var Yt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Kt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Ut(t,e,i){var n,s,r,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(s=wt.call(this._weekdaysParse,o))?s:null:"ddd"===e?-1!==(s=wt.call(this._shortWeekdaysParse,o))?s:null:-1!==(s=wt.call(this._minWeekdaysParse,o))?s:null:"dddd"===e?-1!==(s=wt.call(this._weekdaysParse,o))||-1!==(s=wt.call(this._shortWeekdaysParse,o))||-1!==(s=wt.call(this._minWeekdaysParse,o))?s:null:"ddd"===e?-1!==(s=wt.call(this._shortWeekdaysParse,o))||-1!==(s=wt.call(this._weekdaysParse,o))||-1!==(s=wt.call(this._minWeekdaysParse,o))?s:null:-1!==(s=wt.call(this._minWeekdaysParse,o))||-1!==(s=wt.call(this._weekdaysParse,o))||-1!==(s=wt.call(this._shortWeekdaysParse,o))?s:null}var Vt=ct,qt=ct,$t=ct;function Wt(){function t(t,e){return e.length-t.length}var e,i,n,s,r,o=[],a=[],c=[],u=[];for(e=0;e<7;e++)i=f([2e3,1]).day(e),n=this.weekdaysMin(i,""),s=this.weekdaysShort(i,""),r=this.weekdays(i,""),o.push(n),a.push(s),c.push(r),u.push(n),u.push(s),u.push(r);for(o.sort(t),a.sort(t),c.sort(t),u.sort(t),e=0;e<7;e++)a[e]=dt(a[e]),c[e]=dt(c[e]),u[e]=dt(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Gt(){return this.hours()%12||12}function Jt(t,e){U(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Zt(t,e){return e._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Gt),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+Gt.apply(this)+B(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Gt.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),Jt("a",!0),Jt("A",!1),z("hour","h"),O("hour",13),lt("a",Zt),lt("A",Zt),lt("H",Q),lt("h",Q),lt("k",Q),lt("HH",Q,W),lt("hh",Q,W),lt("kk",Q,W),lt("hmm",X),lt("hmmss",tt),lt("Hmm",X),lt("Hmmss",tt),pt(["H","HH"],3),pt(["k","kk"],function(t,e,i){var n=k(t);e[3]=24===n?0:n}),pt(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),pt(["h","hh"],function(t,e,i){e[3]=k(t),p(i).bigHour=!0}),pt("hmm",function(t,e,i){var n=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n)),p(i).bigHour=!0}),pt("hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n,2)),e[5]=k(t.substr(s)),p(i).bigHour=!0}),pt("Hmm",function(t,e,i){var n=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n))}),pt("Hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n,2)),e[5]=k(t.substr(s))});var Qt,Xt=vt("Hours",!0),te={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:St,monthsShort:Mt,week:{dow:0,doy:6},weekdays:Yt,weekdaysMin:Kt,weekdaysShort:Nt,meridiemParse:/[ap]\.?m?\.?/i},ee={},ie={};function ne(t){return t?t.toLowerCase().replace("_","-"):t}function se(e){var n=null;if(!ee[e]&&t&&t.exports)try{n=Qt._abbr,i(6700)("./"+e),re(n)}catch(s){}return ee[e]}function re(t,e){var i;return t&&((i=a(e)?ae(t):oe(t,e))?Qt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Qt._abbr}function oe(t,e){if(null!==e){var i,n=te;if(e.abbr=t,null!=ee[t])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ee[t]._config;else if(null!=e.parentLocale)if(null!=ee[e.parentLocale])n=ee[e.parentLocale]._config;else{if(null==(i=se(e.parentLocale)))return ie[e.parentLocale]||(ie[e.parentLocale]=[]),ie[e.parentLocale].push({name:t,config:e}),null;n=i._config}return ee[t]=new P(D(n,e)),ie[t]&&ie[t].forEach(function(t){oe(t.name,t.config)}),re(t),ee[t]}return delete ee[t],null}function ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Qt;if(!r(t)){if(e=se(t))return e;t=[t]}return function(t){for(var e,i,n,s,r=0;r0;){if(n=se(s.slice(0,e).join("-")))return n;if(i&&i.length>=e&&T(s,i,!0)>=e-1)break;e--}r++}return Qt}(t)}function ce(t){var e,i=t._a;return i&&-2===p(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>Tt(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,p(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),p(t)._overflowWeeks&&-1===e&&(e=7),p(t)._overflowWeekday&&-1===e&&(e=8),p(t).overflow=e),t}function ue(t,e,i){return null!=t?t:null!=e?e:i}function le(t){var e,i,n,r,o,a=[];if(!t._d){for(n=function(t){var e=new Date(s.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,s,r,o,a,c;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)r=1,o=4,i=ue(e.GG,t._a[0],Ot(Te(),1,4).year),n=ue(e.W,1),((s=ue(e.E,1))<1||s>7)&&(c=!0);else{r=t._locale._week.dow,o=t._locale._week.doy;var u=Ot(Te(),r,o);i=ue(e.gg,t._a[0],u.year),n=ue(e.w,u.week),null!=e.d?((s=e.d)<0||s>6)&&(c=!0):null!=e.e?(s=e.e+r,(e.e<0||e.e>6)&&(c=!0)):s=r}n<1||n>Bt(i,r,o)?p(t)._overflowWeeks=!0:null!=c?p(t)._overflowWeekday=!0:(a=Ht(i,n,s,r,o),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(o=ue(t._a[0],n[0]),(t._dayOfYear>_t(o)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),i=It(o,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];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?It:zt).apply(null,a),r=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&&void 0!==t._w.d&&t._w.d!==r&&(p(t).weekdayMismatch=!0)}}var he=/^\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)?)?$/,de=/^\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)?)?$/,fe=/Z|[+-]\d\d(?::?\d\d)?/,pe=[["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}/]],ge=[["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/]],me=/^\/?Date\((\-?\d+)/i;function _e(t){var e,i,n,s,r,o,a=t._i,c=he.exec(a)||de.exec(a);if(c){for(p(t).iso=!0,e=0,i=pe.length;e0&&p(t).unusedInput.push(o),a=a.slice(a.indexOf(i)+i.length),u+=i.length),K[r]?(i?p(t).empty=!1:p(t).unusedTokens.push(r),mt(r,i,t)):t._strict&&!i&&p(t).unusedTokens.push(r);p(t).charsLeftOver=c-u,a.length>0&&p(t).unusedInput.push(a),t._a[3]<=12&&!0===p(t).bigHour&&t._a[3]>0&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),le(t),ce(t)}else be(t);else _e(t)}function Ae(t){var e=t._i,i=t._f;return t._locale=t._locale||ae(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),v(e)?new b(ce(e)):(u(e)?t._d=e:r(i)?function(t){var e,i,n,s,r;if(0===t._f.length)return p(t).invalidFormat=!0,void(t._d=new Date(NaN));for(s=0;sthis?this:t:m()});function Me(t,e){var i,n;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Te();for(i=e[0],n=1;n=0?new Date(t+400,e,i)-ti:new Date(t,e,i).valueOf()}function ni(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-ti:Date.UTC(t,e,i)}function si(t,e){U(0,[t,t.length],0,e)}function ri(t,e,i,n,s){var r;return null==t?Ot(this,n,s).year:(e>(r=Bt(t,n,s))&&(e=r),oi.call(this,t,e,i,n,s))}function oi(t,e,i,n,s){var r=Ht(t,e,i,n,s),o=It(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),si("gggg","weekYear"),si("ggggg","weekYear"),si("GGGG","isoWeekYear"),si("GGGGG","isoWeekYear"),z("weekYear","gg"),z("isoWeekYear","GG"),O("weekYear",1),O("isoWeekYear",1),lt("G",rt),lt("g",rt),lt("GG",Q,W),lt("gg",Q,W),lt("GGGG",it,J),lt("gggg",it,J),lt("GGGGG",nt,Z),lt("ggggg",nt,Z),gt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=k(t)}),gt(["gg","GG"],function(t,e,i,n){e[n]=s.parseTwoDigitYear(t)}),U("Q",0,"Qo","quarter"),z("quarter","Q"),O("quarter",7),lt("Q",$),pt("Q",function(t,e){e[1]=3*(k(t)-1)}),U("D",["DD",2],"Do","date"),z("date","D"),O("date",9),lt("D",Q),lt("DD",Q,W),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),pt(["D","DD"],2),pt("Do",function(t,e){e[2]=k(t.match(Q)[0])});var ai=vt("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),z("dayOfYear","DDD"),O("dayOfYear",4),lt("DDD",et),lt("DDDD",G),pt(["DDD","DDDD"],function(t,e,i){i._dayOfYear=k(t)}),U("m",["mm",2],0,"minute"),z("minute","m"),O("minute",14),lt("m",Q),lt("mm",Q,W),pt(["m","mm"],4);var ci=vt("Minutes",!1);U("s",["ss",2],0,"second"),z("second","s"),O("second",15),lt("s",Q),lt("ss",Q,W),pt(["s","ss"],5);var ui,li=vt("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),z("millisecond","ms"),O("millisecond",16),lt("S",et,$),lt("SS",et,W),lt("SSS",et,G),ui="SSSS";ui.length<=9;ui+="S")lt(ui,st);function hi(t,e){e[6]=k(1e3*("0."+t))}for(ui="S";ui.length<=9;ui+="S")pt(ui,hi);var di=vt("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var fi=b.prototype;function pi(t){return t}fi.add=Ve,fi.calendar=function(t,e){var i=t||Te(),n=Ie(i,this).startOf("day"),r=s.calendarFormat(this,n)||"sameElse",o=e&&(R(e[r])?e[r].call(this,i):e[r]);return this.format(o||this.localeData().calendar(r,this,Te(i)))},fi.clone=function(){return new b(this)},fi.diff=function(t,e,i){var n,s,r;if(!this.isValid())return NaN;if(!(n=Ie(t,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),e=I(e)){case"year":r=$e(this,n)/12;break;case"month":r=$e(this,n);break;case"quarter":r=$e(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-s)/864e5;break;case"week":r=(this-n-s)/6048e5;break;default:r=this-n}return i?r:A(r)},fi.endOf=function(t){var e;if(void 0===(t=I(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?ni:ii;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Xe-ei(e+(this._isUTC?0:this.utcOffset()*Qe),Xe)-1;break;case"minute":e=this._d.valueOf(),e+=Qe-ei(e,Qe)-1;break;case"second":e=this._d.valueOf(),e+=Ze-ei(e,Ze)-1}return this._d.setTime(e),s.updateOffset(this,!0),this},fi.format=function(t){t||(t=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var e=V(this,t);return this.localeData().postformat(e)},fi.from=function(t,e){return this.isValid()&&(v(t)&&t.isValid()||Te(t).isValid())?je({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},fi.fromNow=function(t){return this.from(Te(),t)},fi.to=function(t,e){return this.isValid()&&(v(t)&&t.isValid()||Te(t).isValid())?je({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},fi.toNow=function(t){return this.to(Te(),t)},fi.get=function(t){return R(this[t=I(t)])?this[t]():this},fi.invalidAt=function(){return p(this).overflow},fi.isAfter=function(t,e){var i=v(t)?t:Te(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()9999?V(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):R(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(i,"Z")):V(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},fi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},fi.toJSON=function(){return this.isValid()?this.toISOString():null},fi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},fi.unix=function(){return Math.floor(this.valueOf()/1e3)},fi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},fi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},fi.year=bt,fi.isLeapYear=function(){return yt(this.year())},fi.weekYear=function(t){return ri.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},fi.isoWeekYear=function(t){return ri.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},fi.quarter=fi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},fi.month=Rt,fi.daysInMonth=function(){return Tt(this.year(),this.month())},fi.week=fi.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},fi.isoWeek=fi.isoWeeks=function(t){var e=Ot(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},fi.weeksInYear=function(){var t=this.localeData()._week;return Bt(this.year(),t.dow,t.doy)},fi.isoWeeksInYear=function(){return Bt(this.year(),1,4)},fi.date=ai,fi.day=fi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},fi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},fi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},fi.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},fi.hour=fi.hours=Xt,fi.minute=fi.minutes=ci,fi.second=fi.seconds=li,fi.millisecond=fi.milliseconds=di,fi.utcOffset=function(t,e,i){var n,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=ze(at,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Fe(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?Ue(this,je(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Fe(this)},fi.utc=function(t){return this.utcOffset(0,t)},fi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Fe(this),"m")),this},fi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=ze(ot,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},fi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Te(t).utcOffset():0,(this.utcOffset()-t)%60==0)},fi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fi.isLocal=function(){return!!this.isValid()&&!this._isUTC},fi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fi.isUtc=He,fi.isUTC=He,fi.zoneAbbr=function(){return this._isUTC?"UTC":""},fi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fi.dates=S("dates accessor is deprecated. Use date instead.",ai),fi.months=S("months accessor is deprecated. Use month instead",Rt),fi.years=S("years accessor is deprecated. Use year instead",bt),fi.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),fi.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(y(t,this),(t=Ae(t))._a){var e=t._isUTC?f(t._a):Te(t._a);this._isDSTShifted=this.isValid()&&T(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var gi=P.prototype;function mi(t,e,i,n){var s=ae(),r=f().set(n,e);return s[i](r,t)}function _i(t,e,i){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return mi(t,e,i,"month");var n,s=[];for(n=0;n<12;n++)s[n]=mi(t,n,i,"month");return s}function yi(t,e,i,n){"boolean"==typeof t?(c(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,c(e)&&(i=e,e=void 0),e=e||"");var s,r=ae(),o=t?r._week.dow:0;if(null!=i)return mi(e,(i+o)%7,n,"day");var a=[];for(s=0;s<7;s++)a[s]=mi(e,(s+o)%7,n,"day");return a}gi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return R(n)?n.call(e,i):n},gi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},gi.invalidDate=function(){return this._invalidDate},gi.ordinal=function(t){return this._ordinal.replace("%d",t)},gi.preparse=pi,gi.postformat=pi,gi.relativeTime=function(t,e,i,n){var s=this._relativeTime[i];return R(s)?s(t,e,i,n):s.replace(/%d/i,t)},gi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return R(i)?i(e):i.replace(/%s/i,e)},gi.set=function(t){var e,i;for(i in t)R(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gi.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ct).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},gi.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ct.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gi.monthsParse=function(t,e,i){var n,s,r;if(this._monthsParseExact)return Et.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=f([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},gi.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Lt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Pt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},gi.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Lt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Dt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},gi.week=function(t){return Ot(t,this._week.dow,this._week.doy).week},gi.firstDayOfYear=function(){return this._week.doy},gi.firstDayOfWeek=function(){return this._week.dow},gi.weekdays=function(t,e){var i=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?jt(i,this._week.dow):t?i[t.day()]:i},gi.weekdaysMin=function(t){return!0===t?jt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},gi.weekdaysShort=function(t){return!0===t?jt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},gi.weekdaysParse=function(t,e,i){var n,s,r;if(this._weekdaysParseExact)return Ut.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=f([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},gi.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Vt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},gi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$t),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},gi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},re("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===k(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),s.lang=S("moment.lang is deprecated. Use moment.locale instead.",re),s.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ae);var wi=Math.abs;function bi(t,e,i,n){var s=je(e,i);return t._milliseconds+=n*s._milliseconds,t._days+=n*s._days,t._months+=n*s._months,t._bubble()}function vi(t){return t<0?Math.floor(t):Math.ceil(t)}function Ai(t){return 4800*t/146097}function ki(t){return 146097*t/4800}function Ti(t){return function(){return this.as(t)}}var Ci=Ti("ms"),Si=Ti("s"),Mi=Ti("m"),Ei=Ti("h"),xi=Ti("d"),Ri=Ti("w"),Di=Ti("M"),Pi=Ti("Q"),Li=Ti("y");function zi(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ii=zi("milliseconds"),Fi=zi("seconds"),Hi=zi("minutes"),Oi=zi("hours"),Bi=zi("days"),ji=zi("months"),Yi=zi("years"),Ni=Math.round,Ki={ss:44,s:45,m:45,h:22,d:26,M:11};function Ui(t,e,i,n,s){return s.relativeTime(e||1,!!i,t,n)}var Vi=Math.abs;function qi(t){return(t>0)-(t<0)||+t}function $i(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=Vi(this._milliseconds)/1e3,n=Vi(this._days),s=Vi(this._months);t=A(i/60),e=A(t/60),i%=60,t%=60;var r=A(s/12),o=s%=12,a=n,c=e,u=t,l=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",f=qi(this._months)!==qi(h)?"-":"",p=qi(this._days)!==qi(h)?"-":"",g=qi(this._milliseconds)!==qi(h)?"-":"";return d+"P"+(r?f+r+"Y":"")+(o?f+o+"M":"")+(a?p+a+"D":"")+(c||u||l?"T":"")+(c?g+c+"H":"")+(u?g+u+"M":"")+(l?g+l+"S":"")}var Wi=xe.prototype;return Wi.isValid=function(){return this._isValid},Wi.abs=function(){var t=this._data;return this._milliseconds=wi(this._milliseconds),this._days=wi(this._days),this._months=wi(this._months),t.milliseconds=wi(t.milliseconds),t.seconds=wi(t.seconds),t.minutes=wi(t.minutes),t.hours=wi(t.hours),t.months=wi(t.months),t.years=wi(t.years),this},Wi.add=function(t,e){return bi(this,t,e,1)},Wi.subtract=function(t,e){return bi(this,t,e,-1)},Wi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=I(t))||"quarter"===t||"year"===t)switch(i=this._months+Ai(e=this._days+n/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(ki(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Wi.asMilliseconds=Ci,Wi.asSeconds=Si,Wi.asMinutes=Mi,Wi.asHours=Ei,Wi.asDays=xi,Wi.asWeeks=Ri,Wi.asMonths=Di,Wi.asQuarters=Pi,Wi.asYears=Li,Wi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Wi._bubble=function(){var t,e,i,n,s,r=this._milliseconds,o=this._days,a=this._months,c=this._data;return r>=0&&o>=0&&a>=0||r<=0&&o<=0&&a<=0||(r+=864e5*vi(ki(a)+o),o=0,a=0),c.milliseconds=r%1e3,t=A(r/1e3),c.seconds=t%60,e=A(t/60),c.minutes=e%60,i=A(e/60),c.hours=i%24,o+=A(i/24),a+=s=A(Ai(o)),o-=vi(ki(s)),n=A(a/12),a%=12,c.days=o,c.months=a,c.years=n,this},Wi.clone=function(){return je(this)},Wi.get=function(t){return t=I(t),this.isValid()?this[t+"s"]():NaN},Wi.milliseconds=Ii,Wi.seconds=Fi,Wi.minutes=Hi,Wi.hours=Oi,Wi.days=Bi,Wi.weeks=function(){return A(this.days()/7)},Wi.months=ji,Wi.years=Yi,Wi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=function(t,e,i){var n=je(t).abs(),s=Ni(n.as("s")),r=Ni(n.as("m")),o=Ni(n.as("h")),a=Ni(n.as("d")),c=Ni(n.as("M")),u=Ni(n.as("y")),l=s<=Ki.ss&&["s",s]||s0,l[4]=i,Ui.apply(null,l)}(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Wi.toISOString=$i,Wi.toString=$i,Wi.toJSON=$i,Wi.locale=We,Wi.localeData=Je,Wi.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$i),Wi.lang=Ge,U("X",0,0,"unix"),U("x",0,0,"valueOf"),lt("x",rt),lt("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),pt("x",function(t,e,i){i._d=new Date(k(t))}),s.version="2.24.0",e=Te,s.fn=fi,s.min=function(){return Me("isBefore",[].slice.call(arguments,0))},s.max=function(){return Me("isAfter",[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=f,s.unix=function(t){return Te(1e3*t)},s.months=function(t,e){return _i(t,e,"months")},s.isDate=u,s.locale=re,s.invalid=m,s.duration=je,s.isMoment=v,s.weekdays=function(t,e,i){return yi(t,e,i,"weekdays")},s.parseZone=function(){return Te.apply(null,arguments).parseZone()},s.localeData=ae,s.isDuration=Re,s.monthsShort=function(t,e){return _i(t,e,"monthsShort")},s.weekdaysMin=function(t,e,i){return yi(t,e,i,"weekdaysMin")},s.defineLocale=oe,s.updateLocale=function(t,e){if(null!=e){var i,n,s=te;null!=(n=se(t))&&(s=n._config),(i=new P(e=D(s,e))).parentLocale=ee[t],ee[t]=i,re(t)}else null!=ee[t]&&(null!=ee[t].parentLocale?ee[t]=ee[t].parentLocale:null!=ee[t]&&delete ee[t]);return ee[t]},s.locales=function(){return M(ee)},s.weekdaysShort=function(t,e,i){return yi(t,e,i,"weekdaysShort")},s.normalizeUnits=I,s.relativeTimeRounding=function(t){return void 0===t?Ni:"function"==typeof t&&(Ni=t,!0)},s.relativeTimeThreshold=function(t,e){return void 0!==Ki[t]&&(void 0===e?Ki[t]:(Ki[t]=e,"s"===t&&(Ki.ss=e-1),!0))},s.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},s.prototype=fi,s.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"},s}()},9997:function(t){t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,(function(e){return t[e]}).bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=22)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i=4){for(var t=arguments.length,e=Array(t),i=0;i=3){for(var t=arguments.length,e=Array(t),i=0;i=2){for(var t=arguments.length,e=Array(t),i=0;i=1){for(var t=arguments.length,e=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:r.JsonService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=e,this._jsonService=new i(["application/jwk-set+json"])}return t.prototype.getMetadata=function(){var t=this;return this._settings.metadata?(s.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(s.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then(function(e){return s.Log.debug("MetadataService.getMetadata: json received"),t._settings.metadata=e,e})):(s.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},t.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},t.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},t.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},t.prototype.getTokenEndpoint=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",t)},t.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},t.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},t.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},t.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},t.prototype._getMetadataProperty=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s.Log.debug("MetadataService.getMetadataProperty for: "+t),this.getMetadata().then(function(i){if(s.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===i[t]){if(!0===e)return void s.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+t);throw s.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+t),new Error("Metadata does not contain property "+t)}return i[t]})},t.prototype.getSigningKeys=function(){var t=this;return this._settings.signingKeys?(s.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then(function(e){return s.Log.debug("MetadataService.getSigningKeys: jwks_uri received",e),t._jsonService.getJson(e).then(function(e){if(s.Log.debug("MetadataService.getSigningKeys: key set received",e),!e.keys)throw s.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return t._settings.signingKeys=e.keys,t._settings.signingKeys})})},n(t,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration"))),this._metadataUrl}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UrlUtility=void 0;var n=i(0),s=i(1);e.UrlUtility=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.addQueryParam=function(t,e,i){return t.indexOf("?")<0&&(t+="?"),"?"!==t[t.length-1]&&(t+="&"),t+=encodeURIComponent(e),(t+="=")+encodeURIComponent(i)},t.parseUrlFragment=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.Global;"string"!=typeof t&&(t=i.location.href);var r=t.lastIndexOf(e);r>=0&&(t=t.substr(r+1)),"?"===e&&(r=t.indexOf("#"))>=0&&(t=t.substr(0,r));for(var o,a={},c=/([^&=]+)=([^&]*)/g,u=0;o=c.exec(t);)if(a[decodeURIComponent(o[1])]=decodeURIComponent(o[2]),u++>50)return n.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",t),{error:"Response exceeded expected number of parameters"};for(var l in a)return a;return{}},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JoseUtil=void 0;var n=i(25),s=function(t){return t&&t.__esModule?t:{default:t}}(i(32));e.JoseUtil=(0,s.default)({jws:n.jws,KeyUtil:n.KeyUtil,X509:n.X509,crypto:n.crypto,hextob64u:n.hextob64u,b64tohex:n.b64tohex,AllowedSigningAlgs:n.AllowedSigningAlgs})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OidcClientSettings=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.authority,s=e.metadataUrl,r=e.metadata,h=e.signingKeys,d=e.client_id,f=e.client_secret,p=e.response_type,g=void 0===p?u:p,m=e.scope,_=void 0===m?l:m,y=e.redirect_uri,w=e.post_logout_redirect_uri,b=e.prompt,v=e.display,A=e.max_age,k=e.ui_locales,T=e.acr_values,C=e.resource,S=e.response_mode,M=e.filterProtocolClaims,E=void 0===M||M,x=e.loadUserInfo,R=void 0===x||x,D=e.staleStateAge,P=void 0===D?900:D,L=e.clockSkew,z=void 0===L?300:L,I=e.userInfoJwtIssuer,F=void 0===I?"OP":I,H=e.stateStore,O=void 0===H?new o.WebStorageStateStore:H,B=e.ResponseValidatorCtor,j=void 0===B?a.ResponseValidator:B,Y=e.MetadataServiceCtor,N=void 0===Y?c.MetadataService:Y,K=e.extraQueryParams,U=void 0===K?{}:K,V=e.extraTokenParams,q=void 0===V?{}:V;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._authority=i,this._metadataUrl=s,this._metadata=r,this._signingKeys=h,this._client_id=d,this._client_secret=f,this._response_type=g,this._scope=_,this._redirect_uri=y,this._post_logout_redirect_uri=w,this._prompt=b,this._display=v,this._max_age=A,this._ui_locales=k,this._acr_values=T,this._resource=C,this._response_mode=S,this._filterProtocolClaims=!!E,this._loadUserInfo=!!R,this._staleStateAge=P,this._clockSkew=z,this._userInfoJwtIssuer=F,this._stateStore=O,this._validator=new j(this),this._metadataService=new N(this),this._extraQueryParams="object"===(void 0===U?"undefined":n(U))?U:{},this._extraTokenParams="object"===(void 0===q?"undefined":n(q))?q:{}}return s(t,[{key:"client_id",get:function(){return this._client_id},set:function(t){if(this._client_id)throw r.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=t}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(t){if(this._authority)throw r.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=t}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration")),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(t){this._metadata=t}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(t){this._signingKeys=t}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(t){this._extraQueryParams="object"===(void 0===t?"undefined":n(t))?t:{}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(t){this._extraTokenParams="object"===(void 0===t?"undefined":n(t))?t:{}}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebStorageStateStore=void 0;var n=i(0),s=i(1);e.WebStorageStateStore=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.prefix,n=void 0===i?"oidc.":i,r=e.store,o=void 0===r?s.Global.localStorage:r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._store=o,this._prefix=n}return t.prototype.set=function(t,e){return n.Log.debug("WebStorageStateStore.set",t),this._store.setItem(t=this._prefix+t,e),Promise.resolve()},t.prototype.get=function(t){n.Log.debug("WebStorageStateStore.get",t);var e=this._store.getItem(t=this._prefix+t);return Promise.resolve(e)},t.prototype.remove=function(t){n.Log.debug("WebStorageStateStore.remove",t);var e=this._store.getItem(t=this._prefix+t);return this._store.removeItem(t),Promise.resolve(e)},t.prototype.getAllKeys=function(){n.Log.debug("WebStorageStateStore.getAllKeys");for(var t=[],e=0;e0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Global.XMLHttpRequest,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._contentTypes=e&&Array.isArray(e)?e.slice():[],this._contentTypes.push("application/json"),n&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=i,this._jwtHandler=n}return t.prototype.getJson=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.getJson: No url passed"),new Error("url");return n.Log.debug("JsonService.getJson, url: ",t),new Promise(function(s,r){var o=new i._XMLHttpRequest;o.open("GET",t);var a=i._contentTypes,c=i._jwtHandler;o.onload=function(){if(n.Log.debug("JsonService.getJson: HTTP response received, status",o.status),200===o.status){var e=o.getResponseHeader("Content-Type");if(e){var i=a.find(function(t){if(e.startsWith(t))return!0});if("application/jwt"==i)return void c(o).then(s,r);if(i)try{return void s(JSON.parse(o.responseText))}catch(s){return n.Log.error("JsonService.getJson: Error parsing JSON response",s.message),void r(s)}}r(Error("Invalid response Content-Type: "+e+", from URL: "+t))}else r(Error(o.statusText+" ("+o.status+")"))},o.onerror=function(){n.Log.error("JsonService.getJson: network error"),r(Error("Network Error"))},e&&(n.Log.debug("JsonService.getJson: token passed, setting Authorization header"),o.setRequestHeader("Authorization","Bearer "+e)),o.send()})},t.prototype.postForm=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.postForm: No url passed"),new Error("url");return n.Log.debug("JsonService.postForm, url: ",t),new Promise(function(s,r){var o=new i._XMLHttpRequest;o.open("POST",t);var a=i._contentTypes;o.onload=function(){if(n.Log.debug("JsonService.postForm: HTTP response received, status",o.status),200!==o.status){if(400===o.status&&(i=o.getResponseHeader("Content-Type"))&&a.find(function(t){if(i.startsWith(t))return!0}))try{var e=JSON.parse(o.responseText);if(e&&e.error)return n.Log.error("JsonService.postForm: Error from server: ",e.error),void r(new Error(e.error))}catch(s){return n.Log.error("JsonService.postForm: Error parsing JSON response",s.message),void r(s)}r(Error(o.statusText+" ("+o.status+")"))}else{var i;if((i=o.getResponseHeader("Content-Type"))&&a.find(function(t){if(i.startsWith(t))return!0}))try{return void s(JSON.parse(o.responseText))}catch(s){return n.Log.error("JsonService.postForm: Error parsing JSON response",s.message),void r(s)}r(Error("Invalid response Content-Type: "+i+", from URL: "+t))}},o.onerror=function(){n.Log.error("JsonService.postForm: network error"),r(Error("Network Error"))};var c="";for(var u in e){var l=e[u];l&&(c.length>0&&(c+="&"),c+=encodeURIComponent(u),c+="=",c+=encodeURIComponent(l))}o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(c)})},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.State=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.id,n=e.data,s=e.created,o=e.request_type;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._id=i||(0,r.default)(),this._data=n,this._created="number"==typeof s&&s>0?s:parseInt(Date.now()/1e3),this._request_type=o}return t.prototype.toStorageString=function(){return s.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},t.fromStorageString=function(e){return s.Log.debug("State.fromStorageString"),new t(JSON.parse(e))},t.clearStaleState=function(e,i){var n=Date.now()/1e3-i;return e.getAllKeys().then(function(i){s.Log.debug("State.clearStaleState: got keys",i);for(var r=[],o=function(o){var a=i[o];c=e.get(a).then(function(i){var r=!1;if(i)try{var o=t.fromStorageString(i);s.Log.debug("State.clearStaleState: got item from key: ",a,o.created),o.created<=n&&(r=!0)}catch(t){s.Log.error("State.clearStaleState: Error parsing state for key",a,t.message),r=!0}else s.Log.debug("State.clearStaleState: no item in storage for key: ",a),r=!0;if(r)return s.Log.debug("State.clearStaleState: removed item for key: ",a),e.remove(a)}),r.push(c)},a=0;a0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._settings=e instanceof r.OidcClientSettings?e:new r.OidcClientSettings(e)}return t.prototype.createSigninRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.response_type,n=e.scope,r=e.redirect_uri,o=e.data,c=e.state,u=e.prompt,l=e.display,h=e.max_age,d=e.ui_locales,f=e.id_token_hint,p=e.login_hint,g=e.acr_values,m=e.resource,_=e.request,y=e.request_uri,w=e.response_mode,b=e.extraQueryParams,v=e.extraTokenParams,A=e.request_type,k=e.skipUserInfo,T=arguments[1];s.Log.debug("OidcClient.createSigninRequest");var C=this._settings.client_id;n=n||this._settings.scope,r=r||this._settings.redirect_uri,u=u||this._settings.prompt,l=l||this._settings.display,h=h||this._settings.max_age,d=d||this._settings.ui_locales,g=g||this._settings.acr_values,m=m||this._settings.resource,w=w||this._settings.response_mode,b=b||this._settings.extraQueryParams,v=v||this._settings.extraTokenParams;var S=this._settings.authority;return a.SigninRequest.isCode(i=i||this._settings.response_type)&&"code"!==i?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then(function(e){s.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",e);var M=new a.SigninRequest({url:e,client_id:C,redirect_uri:r,response_type:i,scope:n,data:o||c,authority:S,prompt:u,display:l,max_age:h,ui_locales:d,id_token_hint:f,login_hint:p,acr_values:g,resource:m,request:_,request_uri:y,extraQueryParams:b,extraTokenParams:v,request_type:A,response_mode:w,client_secret:t._settings.client_secret,skipUserInfo:k}),E=M.state;return(T=T||t._stateStore).set(E.id,E.toStorageString()).then(function(){return M})})},t.prototype.readSigninResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.Log.debug("OidcClient.readSigninResponseState");var n="query"===this._settings.response_mode||!this._settings.response_mode&&a.SigninRequest.isCode(this._settings.response_type)?"?":"#",r=new c.SigninResponse(t,n);return r.state?(e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(r.state).then(function(t){if(!t)throw s.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:h.SigninState.fromStorageString(t),response:r}})):(s.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},t.prototype.processSigninResponse=function(t,e){var i=this;return s.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return s.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),i._validator.validateSigninResponse(e,n)})},t.prototype.createSignoutRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.id_token_hint,n=e.data,r=e.state,o=e.post_logout_redirect_uri,a=e.extraQueryParams,c=e.request_type,l=arguments[1];return s.Log.debug("OidcClient.createSignoutRequest"),o=o||this._settings.post_logout_redirect_uri,a=a||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then(function(e){if(!e)throw s.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");s.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",e);var h=new u.SignoutRequest({url:e,id_token_hint:i,post_logout_redirect_uri:o,data:n||r,extraQueryParams:a,request_type:c}),d=h.state;return d&&(s.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(l=l||t._stateStore).set(d.id,d.toStorageString())),h})},t.prototype.readSignoutResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.Log.debug("OidcClient.readSignoutResponseState");var n=new l.SignoutResponse(t);if(!n.state)return s.Log.debug("OidcClient.readSignoutResponseState: No state in response"),n.error?(s.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",n.error),Promise.reject(new o.ErrorResponse(n))):Promise.resolve({undefined:void 0,response:n});var r=n.state;return e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(r).then(function(t){if(!t)throw s.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(t),response:n}})},t.prototype.processSignoutResponse=function(t,e){var i=this;return s.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return e?(s.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),i._validator.validateSignoutResponse(e,n)):(s.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),n)})},t.prototype.clearStaleState=function(t){return s.Log.debug("OidcClient.clearStaleState"),d.State.clearStaleState(t=t||this._stateStore,this.settings.staleStateAge)},n(t,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenClient=void 0;var n=i(7),s=i(2),r=i(0);e.TokenClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i,this._metadataService=new o(this._settings)}return t.prototype.exchangeCode=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"authorization_code",e.client_id=e.client_id||this._settings.client_id,e.redirect_uri=e.redirect_uri||this._settings.redirect_uri,e.code?e.redirect_uri?e.code_verifier?e.client_id?this._metadataService.getTokenEndpoint(!1).then(function(i){return r.Log.debug("TokenClient.exchangeCode: Received token endpoint"),t._jsonService.postForm(i,e).then(function(t){return r.Log.debug("TokenClient.exchangeCode: response received"),t})}):(r.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(r.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(r.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(r.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},t.prototype.exchangeRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"refresh_token",e.client_id=e.client_id||this._settings.client_id,e.client_secret=e.client_secret||this._settings.client_secret,e.refresh_token?e.client_id?this._metadataService.getTokenEndpoint(!1).then(function(i){return r.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),t._jsonService.postForm(i,e).then(function(t){return r.Log.debug("TokenClient.exchangeRefreshToken: response received"),t})}):(r.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(r.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorResponse=void 0;var n=i(0);e.ErrorResponse=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=i.error,r=i.error_description,o=i.error_uri,a=i.state,c=i.session_state;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),!s)throw n.Log.error("No error passed to ErrorResponse"),new Error("error");var u=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,r||s));return u.name="ErrorResponse",u.error=s,u.error_description=r,u.error_uri=o,u.state=a,u.session_state=c,u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Error)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninRequest=void 0;var n=i(0),s=i(3),r=i(13);e.SigninRequest=function(){function t(e){var i=e.url,o=e.client_id,a=e.redirect_uri,c=e.response_type,u=e.scope,l=e.authority,h=e.data,d=e.prompt,f=e.display,p=e.max_age,g=e.ui_locales,m=e.id_token_hint,_=e.login_hint,y=e.acr_values,w=e.resource,b=e.response_mode,v=e.request,A=e.request_uri,k=e.extraQueryParams,T=e.request_type,C=e.client_secret,S=e.extraTokenParams,M=e.skipUserInfo;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!o)throw n.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!a)throw n.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!c)throw n.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!u)throw n.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!l)throw n.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var E=t.isOidc(c),x=t.isCode(c);b||(b=t.isCode(c)?"query":null),this.state=new r.SigninState({nonce:E,data:h,client_id:o,authority:l,redirect_uri:a,code_verifier:x,request_type:T,response_mode:b,client_secret:C,scope:u,extraTokenParams:S,skipUserInfo:M}),i=s.UrlUtility.addQueryParam(i,"client_id",o),i=s.UrlUtility.addQueryParam(i,"redirect_uri",a),i=s.UrlUtility.addQueryParam(i,"response_type",c),i=s.UrlUtility.addQueryParam(i,"scope",u),i=s.UrlUtility.addQueryParam(i,"state",this.state.id),E&&(i=s.UrlUtility.addQueryParam(i,"nonce",this.state.nonce)),x&&(i=s.UrlUtility.addQueryParam(i,"code_challenge",this.state.code_challenge),i=s.UrlUtility.addQueryParam(i,"code_challenge_method","S256"));var R={prompt:d,display:f,max_age:p,ui_locales:g,id_token_hint:m,login_hint:_,acr_values:y,resource:w,request:v,request_uri:A,response_mode:b};for(var D in R)R[D]&&(i=s.UrlUtility.addQueryParam(i,D,R[D]));for(var P in k)i=s.UrlUtility.addQueryParam(i,P,k[P]);this.url=i}return t.isOidc=function(t){return!!t.split(/\s+/g).filter(function(t){return"id_token"===t})[0]},t.isOAuth=function(t){return!!t.split(/\s+/g).filter(function(t){return"token"===t})[0]},t.isCode=function(t){return!!t.split(/\s+/g).filter(function(t){return"code"===t})[0]},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninState=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.nonce,s=i.authority,r=i.client_id,c=i.redirect_uri,u=i.code_verifier,l=i.response_mode,h=i.client_secret,d=i.scope,f=i.extraTokenParams,p=i.skipUserInfo;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var g=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));if(!0===n?g._nonce=(0,a.default)():n&&(g._nonce=n),!0===u?g._code_verifier=(0,a.default)()+(0,a.default)()+(0,a.default)():u&&(g._code_verifier=u),g.code_verifier){var m=o.JoseUtil.hashString(g.code_verifier,"SHA256");g._code_challenge=o.JoseUtil.hexToBase64Url(m)}return g._redirect_uri=c,g._authority=s,g._client_id=r,g._response_mode=l,g._client_secret=h,g._scope=d,g._extraTokenParams=f,g._skipUserInfo=p,g}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toStorageString=function(){return s.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},e.fromStorageString=function(t){return s.Log.debug("SigninState.fromStorageString"),new e(JSON.parse(t))},n(e,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),e}(r.State)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,n.default)().replace(/-/g,"")};var n=function(t){return t&&t.__esModule?t:{default:t}}(i(33));t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.User=void 0;var n=function(){function t(t,e){for(var i=0;i0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessTokenEvents=void 0;var n=i(0),s=i(48);e.AccessTokenEvents=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.accessTokenExpiringNotificationTime,n=void 0===i?60:i,r=e.accessTokenExpiringTimer,o=void 0===r?new s.Timer("Access token expiring"):r,a=e.accessTokenExpiredTimer,c=void 0===a?new s.Timer("Access token expired"):a;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._accessTokenExpiringNotificationTime=n,this._accessTokenExpiring=o,this._accessTokenExpired=c}return t.prototype.load=function(t){if(t.access_token&&void 0!==t.expires_in){var e=t.expires_in;if(n.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",e),e>0){var i=e-this._accessTokenExpiringNotificationTime;i<=0&&(i=1),n.Log.debug("AccessTokenEvents.load: registering expiring timer in:",i),this._accessTokenExpiring.init(i)}else n.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var s=e+1;n.Log.debug("AccessTokenEvents.load: registering expired timer in:",s),this._accessTokenExpired.init(s)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.unload=function(){n.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.addAccessTokenExpiring=function(t){this._accessTokenExpiring.addHandler(t)},t.prototype.removeAccessTokenExpiring=function(t){this._accessTokenExpiring.removeHandler(t)},t.prototype.addAccessTokenExpired=function(t){this._accessTokenExpired.addHandler(t)},t.prototype.removeAccessTokenExpired=function(t){this._accessTokenExpired.removeHandler(t)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=i(0);e.Event=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e,this._callbacks=[]}return t.prototype.addHandler=function(t){this._callbacks.push(t)},t.prototype.removeHandler=function(t){var e=this._callbacks.findIndex(function(e){return e===t});e>=0&&this._callbacks.splice(e,1)},t.prototype.raise=function(){n.Log.debug("Event: Raising event: "+this._name);for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:r.CheckSessionIFrame,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.Global.timer;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=e,this._CheckSessionIFrameCtor=n,this._timer=a,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),this._userManager.getUser().then(function(t){t?i._start(t):i._settings.monitorAnonymousSession&&i._userManager.querySessionStatus().then(function(t){var e={session_state:t.session_state};t.sub&&t.sid&&(e.profile={sub:t.sub,sid:t.sid}),i._start(e)}).catch(function(t){s.Log.error("SessionMonitor ctor: error from querySessionStatus:",t.message)})}).catch(function(t){s.Log.error("SessionMonitor ctor: error from getUser:",t.message)})}return t.prototype._start=function(t){var e=this,i=t.session_state;i&&(t.profile?(this._sub=t.profile.sub,this._sid=t.profile.sid,s.Log.debug("SessionMonitor._start: session_state:",i,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,s.Log.debug("SessionMonitor._start: session_state:",i,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(i):this._metadataService.getCheckSessionIframe().then(function(t){if(t){s.Log.debug("SessionMonitor._start: Initializing check session iframe");var n=e._client_id,r=e._checkSessionInterval,o=e._stopCheckSessionOnError;e._checkSessionIFrame=new e._CheckSessionIFrameCtor(e._callback.bind(e),n,t,r,o),e._checkSessionIFrame.load().then(function(){e._checkSessionIFrame.start(i)})}else s.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")}).catch(function(t){s.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",t.message)}))},t.prototype._stop=function(){var t=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(s.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var e=this._timer.setInterval(function(){t._timer.clearInterval(e),t._userManager.querySessionStatus().then(function(e){var i={session_state:e.session_state};e.sub&&e.sid&&(i.profile={sub:e.sub,sid:e.sid}),t._start(i)}).catch(function(t){s.Log.error("SessionMonitor: error from querySessionStatus:",t.message)})},1e3)},t.prototype._callback=function(){var t=this;this._userManager.querySessionStatus().then(function(e){var i=!0;e?e.sub===t._sub?(i=!1,t._checkSessionIFrame.start(e.session_state),e.sid===t._sid?s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",e.session_state):(s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",e.session_state),t._userManager.events._raiseUserSessionChanged())):s.Log.debug("SessionMonitor._callback: Different subject signed into OP:",e.sub):s.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),i&&(t._sub?(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),t._userManager.events._raiseUserSignedOut()):(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),t._userManager.events._raiseUserSignedIn()))}).catch(function(e){t._sub&&(s.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",e.message),t._userManager.events._raiseUserSignedOut())})},n(t,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CheckSessionIFrame=void 0;var n=i(0);e.CheckSessionIFrame=function(){function t(e,i,n,s){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._callback=e,this._client_id=i,this._url=n,this._interval=s||2e3,this._stopOnError=r;var o=n.indexOf("/",n.indexOf("//")+2);this._frame_origin=n.substr(0,o),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.style.width=0,this._frame.style.height=0,this._frame.src=n}return t.prototype.load=function(){var t=this;return new Promise(function(e){t._frame.onload=function(){e()},window.document.body.appendChild(t._frame),t._boundMessageEvent=t._message.bind(t),window.addEventListener("message",t._boundMessageEvent,!1)})},t.prototype._message=function(t){t.origin===this._frame_origin&&t.source===this._frame.contentWindow&&("error"===t.data?(n.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===t.data?(n.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):n.Log.debug("CheckSessionIFrame: "+t.data+" message from check session op iframe"))},t.prototype.start=function(t){var e=this;if(this._session_state!==t){n.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=t;var i=function(){e._frame.contentWindow.postMessage(e._client_id+" "+e._session_state,e._frame_origin)};i(),this._timer=window.setInterval(i,this._interval)}},t.prototype.stop=function(){this._session_state=null,this._timer&&(n.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenRevocationClient=void 0;var n=i(0),s=i(2),r=i(1);e.TokenRevocationClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.Global.XMLHttpRequest,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw n.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=e,this._XMLHttpRequestCtor=i,this._metadataService=new o(this._settings)}return t.prototype.revoke=function(t,e){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!t)throw n.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==s&&"refresh_token"!=s)throw n.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then(function(r){if(r)return n.Log.debug("TokenRevocationClient.revoke: Revoking "+s),i._revoke(r,i._settings.client_id,i._settings.client_secret,t,s);if(e)throw n.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")})},t.prototype._revoke=function(t,e,i,s,r){var o=this;return new Promise(function(a,c){var u=new o._XMLHttpRequestCtor;u.open("POST",t),u.onload=function(){n.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",u.status),200===u.status?a():c(Error(u.statusText+" ("+u.status+")"))},u.onerror=function(){n.Log.debug("TokenRevocationClient.revoke: Network Error."),c("Network Error")};var l="client_id="+encodeURIComponent(e);i&&(l+="&client_secret="+encodeURIComponent(i)),l+="&token_type_hint="+encodeURIComponent(r),l+="&token="+encodeURIComponent(s),u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.send(l)})},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CordovaPopupWindow=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:r.MetadataService,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.UserInfoService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.JoseUtil,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:a.TokenClient;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=e,this._metadataService=new i(this._settings),this._userInfoService=new n(this._settings),this._joseUtil=c,this._tokenClient=new l(this._settings)}return t.prototype.validateSigninResponse=function(t,e){var i=this;return s.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(t,e).then(function(e){return s.Log.debug("ResponseValidator.validateSigninResponse: state processed"),i._validateTokens(t,e).then(function(e){return s.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),i._processClaims(t,e).then(function(t){return s.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),t})})})},t.prototype.validateSignoutResponse=function(t,e){return t.id!==e.state?(s.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(s.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),e.state=t.data,e.error?(s.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):Promise.resolve(e))},t.prototype._processSigninParams=function(t,e){if(t.id!==e.state)return s.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!t.client_id)return s.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!t.authority)return s.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==t.authority)return s.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=t.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==t.client_id)return s.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=t.client_id;return s.Log.debug("ResponseValidator._processSigninParams: state validated"),e.state=t.data,e.error?(s.Log.warn("ResponseValidator._processSigninParams: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):t.nonce&&!e.id_token?(s.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!t.nonce&&e.id_token?(s.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):t.code_verifier&&!e.code?(s.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!t.code_verifier&&e.code?(s.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(e.scope||(e.scope=t.scope),Promise.resolve(e))},t.prototype._processClaims=function(t,e){var i=this;if(e.isOpenIdConnect){if(s.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),e.profile=this._filterProtocolClaims(e.profile),!0!==t.skipUserInfo&&this._settings.loadUserInfo&&e.access_token)return s.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(e.access_token).then(function(t){return s.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),t.sub!==e.profile.sub?(s.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in access_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"))):(e.profile=i._mergeClaims(e.profile,t),s.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",e.profile),e)});s.Log.debug("ResponseValidator._processClaims: not loading user info")}else s.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(e)},t.prototype._mergeClaims=function(t,e){var i=Object.assign({},t);for(var s in e){var r=e[s];Array.isArray(r)||(r=[r]);for(var o=0;o1)return s.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));c=a[0]}if(!c)return s.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var u=t.client_id,l=i._settings.clockSkew;return s.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",l),i._joseUtil.validateJwt(e.id_token,c,o,u,l).then(function(){return s.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),n.payload.sub?(e.profile=n.payload,e):(s.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))})})})},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return s.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",e),[];i="EC"}return s.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",i),t=t.filter(function(t){return t.kty===i}),s.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",i,t.length),t},t.prototype._validateAccessToken=function(t){if(!t.profile)return s.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!t.profile.at_hash)return s.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!t.id_token)return s.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var e=this._joseUtil.parseJwt(t.id_token);if(!e||!e.header)return s.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",e),Promise.reject(new Error("Failed to parse id_token"));var i=e.header.alg;if(!i||5!==i.length)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i),Promise.reject(new Error("Unsupported alg: "+i));var n=i.substr(2,3);if(!n)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));if(256!==(n=parseInt(n))&&384!==n&&512!==n)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));var r="sha"+n,o=this._joseUtil.hashString(t.access_token,r);if(!o)return s.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",r),Promise.reject(new Error("Failed to validate at_hash"));var a=o.substr(0,o.length/2),c=this._joseUtil.hexToBase64Url(a);return c!==t.profile.at_hash?(s.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",c,t.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(s.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(t))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserInfoService=void 0;var n=i(7),s=i(2),r=i(0),o=i(4);e.UserInfoService=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.JoseUtil;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new a(this._settings),this._joseUtil=c}return t.prototype.getClaims=function(t){var e=this;return t?this._metadataService.getUserInfoEndpoint().then(function(i){return r.Log.debug("UserInfoService.getClaims: received userinfo url",i),e._jsonService.getJson(i,t).then(function(t){return r.Log.debug("UserInfoService.getClaims: claims received",t),t})}):(r.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},t.prototype._getClaimsFromJwt=function t(e){var i=this;try{var n=this._joseUtil.parseJwt(e.responseText);if(!n||!n.header||!n.payload)return r.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",n),Promise.reject(new Error("Failed to parse id_token"));var s=n.header.kid,o=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":o=this._metadataService.getIssuer();break;case"ANY":o=Promise.resolve(n.payload.iss);break;default:o=Promise.resolve(this._settings.userInfoJwtIssuer)}return o.then(function(t){return r.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+t),i._metadataService.getSigningKeys().then(function(o){if(!o)return r.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));r.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var a=void 0;if(s)a=o.filter(function(t){return t.kid===s})[0];else{if((o=i._filterByAlg(o,n.header.alg)).length>1)return r.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));a=o[0]}if(!a)return r.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var c=i._settings.client_id,u=i._settings.clockSkew;return r.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",u),i._joseUtil.validateJwt(e.responseText,a,t,c,u,void 0,!0).then(function(){return r.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),n.payload})})})}catch(t){return r.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",t.message),void reject(t)}},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return r.Log.debug("UserInfoService._filterByAlg: alg not supported: ",e),[];i="EC"}return r.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",i),t=t.filter(function(t){return t.kty===i}),r.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",i,t.length),t},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AllowedSigningAlgs=e.b64tohex=e.hextob64u=e.crypto=e.X509=e.KeyUtil=e.jws=void 0;var n=i(26);e.jws=n.jws,e.KeyUtil=n.KEYUTIL,e.X509=n.X509,e.crypto=n.crypto,e.hextob64u=n.hextob64u,e.b64tohex=n.b64tohex,e.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n={userAgent:!1},s={};if(void 0===r)var r={};r.lang={extend:function(e,i,s){if(!i||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=i.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=i.prototype,i.prototype.constructor==Object.prototype.constructor&&(i.prototype.constructor=i),s){var o;for(o in s)e.prototype[o]=s[o];var a=function(){},c=["toString","valueOf"];try{/MSIE/.test(n.userAgent)&&(a=function(t,e){for(o=0;o>>2]|=(i[r>>>2]>>>24-r%4*8&255)<<24-(n+r)%4*8;else for(r=0;r>>2]=i[r>>>2];return this.sigBytes+=s,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=o.ceil(e/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i>>2]>>>24-s%4*8&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new l.init(i,e/2)}},f=h.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],s=0;s>>2]>>>24-s%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new l.init(i,e)}},p=h.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},g=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,i=e.words,n=e.sigBytes,s=this.blockSize,r=n/(4*s),a=(r=t?o.ceil(r):o.max((0|r)-this._minBufferSize,0))*s,c=o.min(4*a,n);if(a){for(var u=0;u>>2]>>>24-s%4*8&255)<<16|(e[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|e[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;4>o&&s+.75*o>>6*(3-o)&63));if(e=n.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(e){var i=e.length,n=this._map;(s=n.charAt(64))&&-1!=(s=e.indexOf(s))&&(i=s);for(var s=[],r=0,o=0;o>>6-o%4*2;s[r>>>2]|=(a|c)<<24-r%4*8,r++}return t.create(s,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){for(var e=_,i=(s=e.lib).WordArray,n=s.Hasher,s=e.algo,r=[],o=[],a=function(t){return 4294967296*(t-(0|t))|0},c=2,u=0;64>u;){var l;t:{for(var h=t.sqrt(l=c),d=2;d<=h;d++)if(!(l%d)){l=!1;break t}l=!0}l&&(8>u&&(r[u]=a(t.pow(c,.5))),o[u]=a(t.pow(c,1/3)),u++),c++}var f=[];s=s.SHA256=n.extend({_doReset:function(){this._hash=new i.init(r.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],s=i[1],r=i[2],a=i[3],c=i[4],u=i[5],l=i[6],h=i[7],d=0;64>d;d++){if(16>d)f[d]=0|t[e+d];else{var p=f[d-15],g=f[d-2];f[d]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+f[d-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+f[d-16]}p=h+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&u^~c&l)+o[d]+f[d],g=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&s^n&r^s&r),h=l,l=u,u=c,c=a+p|0,a=r,r=s,s=n,n=p+g|0}i[0]=i[0]+n|0,i[1]=i[1]+s|0,i[2]=i[2]+r|0,i[3]=i[3]+a|0,i[4]=i[4]+c|0,i[5]=i[5]+u|0,i[6]=i[6]+l|0,i[7]=i[7]+h|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,s=8*e.sigBytes;return i[s>>>5]|=128<<24-s%32,i[14+(s+64>>>9<<4)]=t.floor(n/4294967296),i[15+(s+64>>>9<<4)]=n,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),e.SHA256=n._createHelper(s),e.HmacSHA256=n._createHmacHelper(s)}(Math),function(){function t(){return n.create.apply(n,arguments)}for(var e=_,i=e.lib.Hasher,n=(r=e.x64).Word,s=r.WordArray,r=e.algo,o=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],a=[],c=0;80>c;c++)a[c]=t();r=r.SHA512=i.extend({_doReset:function(){this._hash=new s.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var i=(h=this._hash.words)[0],n=h[1],s=h[2],r=h[3],c=h[4],u=h[5],l=h[6],h=h[7],d=i.high,f=i.low,p=n.high,g=n.low,m=s.high,_=s.low,y=r.high,w=r.low,b=c.high,v=c.low,A=u.high,k=u.low,T=l.high,C=l.low,S=h.high,M=h.low,E=d,x=f,R=p,D=g,P=m,L=_,z=y,I=w,F=b,H=v,O=A,B=k,j=T,Y=C,N=S,K=M,U=0;80>U;U++){var V=a[U];if(16>U)var q=V.high=0|t[e+2*U],$=V.low=0|t[e+2*U+1];else{q=(($=(q=a[U-15]).high)>>>1|(W=q.low)<<31)^($>>>8|W<<24)^$>>>7;var W=(W>>>1|$<<31)^(W>>>8|$<<24)^(W>>>7|$<<25),G=(($=(G=a[U-2]).high)>>>19|(J=G.low)<<13)^($<<3|J>>>29)^$>>>6,J=(J>>>19|$<<13)^(J<<3|$>>>29)^(J>>>6|$<<26),Z=($=a[U-7]).high,Q=(X=a[U-16]).high,X=X.low;q=(q=(q=q+Z+(($=W+$.low)>>>0>>0?1:0))+G+(($+=J)>>>0>>0?1:0))+Q+(($+=X)>>>0>>0?1:0),V.high=q,V.low=$}V=E&R^E&P^R&P;var tt=x&D^x&L^D&L,et=(W=(E>>>28|x<<4)^(E<<30|x>>>2)^(E<<25|x>>>7),G=(x>>>28|E<<4)^(x<<30|E>>>2)^(x<<25|E>>>7),(J=o[U]).high),it=J.low;Q=(Q=(Q=(Q=N+((F>>>14|H<<18)^(F>>>18|H<<14)^(F<<23|H>>>9))+((J=K+((H>>>14|F<<18)^(H>>>18|F<<14)^(H<<23|F>>>9)))>>>0>>0?1:0))+(Z=F&O^~F&j)+((J+=X=H&B^~H&Y)>>>0>>0?1:0))+et+((J+=it)>>>0>>0?1:0))+q+((J+=$)>>>0<$>>>0?1:0),N=j,K=Y,j=O,Y=B,O=F,B=H,F=z+Q+((H=I+J|0)>>>0>>0?1:0)|0,z=P,I=L,P=R,L=D,R=E,D=x,E=Q+(V=W+V+(($=G+tt)>>>0>>0?1:0))+((x=J+$|0)>>>0>>0?1:0)|0}f=i.low=f+x,i.high=d+E+(f>>>0>>0?1:0),g=n.low=g+D,n.high=p+R+(g>>>0>>0?1:0),_=s.low=_+L,s.high=m+P+(_>>>0>>0?1:0),w=r.low=w+I,r.high=y+z+(w>>>0>>0?1:0),v=c.low=v+H,c.high=b+F+(v>>>0>>0?1:0),k=u.low=k+B,u.high=A+O+(k>>>0>>0?1:0),C=l.low=C+Y,l.high=T+j+(C>>>0>>0?1:0),M=h.low=M+K,h.high=S+N+(M>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(n+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),e.SHA512=i._createHelper(r),e.HmacSHA512=i._createHmacHelper(r)}(),function(){var t=_,e=(s=t.x64).Word,i=s.WordArray,n=(s=t.algo).SHA512,s=s.SHA384=n.extend({_doReset:function(){this._hash=new i.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=n._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=n._createHelper(s),t.HmacSHA384=n._createHmacHelper(s)}();var y,w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function b(t){var e,i,n="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),n+=w.charAt(i>>6)+w.charAt(63&i);for(e+1==t.length?(i=parseInt(t.substring(e,e+1),16),n+=w.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),n+=w.charAt(i>>2)+w.charAt((3&i)<<4));(3&n.length)>0;)n+="=";return n}function v(t){var e,i,n,s="",r=0;for(e=0;e>2),i=3&n,r=1):1==r?(s+=E(i<<2|n>>4),i=15&n,r=2):2==r?(s+=E(i),s+=E(n>>2),i=3&n,r=3):(s+=E(i<<2|n>>4),s+=E(15&n),r=0));return 1==r&&(s+=E(i<<2)),s}function A(t){var e,i=v(t),n=new Array;for(e=0;2*e>15;--r>=0;){var c=32767&this[t],u=this[t++]>>15,l=a*c+u*o;s=((c=o*c+((32767&l)<<15)+i[n]+(1073741823&s))>>>30)+(l>>>15)+a*u+(s>>>30),i[n++]=1073741823&c}return s},y=30):"Netscape"!=n.appName?(k.prototype.am=function(t,e,i,n,s,r){for(;--r>=0;){var o=e*this[t++]+i[n]+s;s=Math.floor(o/67108864),i[n++]=67108863&o}return s},y=26):(k.prototype.am=function(t,e,i,n,s,r){for(var o=16383&e,a=e>>14;--r>=0;){var c=16383&this[t],u=this[t++]>>14,l=a*c+u*o;s=((c=o*c+((16383&l)<<14)+i[n]+s)>>28)+(l>>14)+a*u,i[n++]=268435455&c}return s},y=28),k.prototype.DB=y,k.prototype.DM=(1<>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}function P(t){this.m=t}function L(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function B(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function j(){}function Y(t){return t}function N(t){this.r2=T(),this.q3=T(),k.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}P.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},P.prototype.revert=function(t){return t},P.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},P.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},P.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},L.prototype.convert=function(t){var e=T();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(k.ZERO)>0&&this.m.subTo(e,e),e},L.prototype.revert=function(t){var e=T();return t.copyTo(e),this.reduce(e),e},L.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[i=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},L.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},L.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},k.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},k.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},k.prototype.fromString=function(t,e){var i;if(16==e)i=4;else if(8==e)i=3;else if(256==e)i=8;else if(2==e)i=1;else if(32==e)i=5;else{if(4!=e)return void this.fromRadix(t,e);i=2}this.t=0,this.s=0;for(var n=t.length,s=!1,r=0;--n>=0;){var o=8==i?255&t[n]:x(t,n);o<0?"-"==t.charAt(n)&&(s=!0):(s=!1,0==r?this[this.t++]=o:r+i>this.DB?(this[this.t-1]|=(o&(1<>this.DB-r):this[this.t-1]|=o<=this.DB&&(r-=this.DB))}8==i&&0!=(128&t[0])&&(this.s=-1,r>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},k.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},k.prototype.drShiftTo=function(t,e){for(var i=t;i=0;--i)e[i+o+1]=this[i]>>s|a,a=(this[i]&r)<=0;--i)e[i]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},k.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var n=t%this.DB,s=this.DB-n,r=(1<>n;for(var o=i+1;o>n;n>0&&(e[this.t-i-1]|=(this.s&r)<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[i++]=this.DV+n:n>0&&(e[i++]=n),e.t=i,e.clamp()},k.prototype.multiplyTo=function(t,e){var i=this.abs(),n=t.abs(),s=i.t;for(e.t=s+n.t;--s>=0;)e[s]=0;for(s=0;s=0;)t[i]=0;for(i=0;i=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},k.prototype.divRemTo=function(t,e,i){var n=t.abs();if(!(n.t<=0)){var s=this.abs();if(s.t0?(n.lShiftTo(c,r),s.lShiftTo(c,i)):(n.copyTo(r),s.copyTo(i));var u=r.t,l=r[u-1];if(0!=l){var h=l*(1<1?r[u-2]>>this.F2:0),d=this.FV/h,f=(1<=0&&(i[i.t++]=1,i.subTo(_,i)),k.ONE.dlShiftTo(u,_),_.subTo(r,r);r.t=0;){var y=i[--g]==l?this.DM:Math.floor(i[g]*d+(i[g-1]+p)*f);if((i[g]+=r.am(0,y,i,m,0,u))0&&i.rShiftTo(c,i),o<0&&k.ZERO.subTo(i,i)}}},k.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},k.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},k.prototype.exp=function(t,e){if(t>4294967295||t<1)return k.ONE;var i=T(),n=T(),s=e.convert(this),r=D(t)-1;for(s.copyTo(i);--r>=0;)if(e.sqrTo(i,n),(t&1<0)e.mulTo(n,s,i);else{var o=i;i=n,n=o}return e.revert(i)},k.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,n=(1<0)for(a>a)>0&&(s=!0,r=E(i));o>=0;)a>(a+=this.DB-e)):(i=this[o]>>(a-=e)&n,a<=0&&(a+=this.DB,--o)),i>0&&(s=!0),s&&(r+=E(i));return s?r:"0"},k.prototype.negate=function(){var t=T();return k.ZERO.subTo(this,t),t},k.prototype.abs=function(){return this.s<0?this.negate():this},k.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-t.t))return this.s<0?-e:e;for(;--i>=0;)if(0!=(e=this[i]-t[i]))return e;return 0},k.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+D(this[this.t-1]^this.s&this.DM)},k.prototype.mod=function(t){var e=T();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(k.ZERO)>0&&t.subTo(e,e),e},k.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new P(e):new L(e),this.exp(t,i)},k.ZERO=R(0),k.ONE=R(1),j.prototype.convert=Y,j.prototype.revert=Y,j.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},j.prototype.sqrTo=function(t,e){t.squareTo(e)},N.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=T();return t.copyTo(e),this.reduce(e),e},N.prototype.revert=function(t){return t},N.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},N.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},N.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var K,U,V,q=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],$=(1<<26)/q[q.length-1];function W(){this.i=0,this.j=0,this.S=new Array}function G(){!function(t){U[V++]^=255&t,U[V++]^=t>>8&255,U[V++]^=t>>16&255,U[V++]^=t>>24&255,V>=256&&(V-=256)}((new Date).getTime())}if(k.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},k.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),n=R(i),s=T(),r=T(),o="";for(this.divRemTo(n,s,r);s.signum()>0;)o=(i+r.intValue()).toString(t).substr(1)+o,s.divRemTo(n,s,r);return r.intValue().toString(t)+o},k.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var i=this.chunkSize(e),n=Math.pow(e,i),s=!1,r=0,o=0,a=0;a=i&&(this.dMultiply(n),this.dAddOffset(o,0),r=0,o=0))}r>0&&(this.dMultiply(Math.pow(e,r)),this.dAddOffset(o,0)),s&&k.ZERO.subTo(this,this)},k.prototype.fromNumber=function(t,e,i){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(k.ONE.shiftLeft(t-1),I,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(k.ONE.shiftLeft(t-1),this);else{var n=new Array,s=7&t;n.length=1+(t>>3),e.nextBytes(n),s>0?n[0]&=(1<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[i++]=n:n<-1&&(e[i++]=this.DV+n),e.t=i,e.clamp()},k.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},k.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},k.prototype.multiplyLowerTo=function(t,e,i){var n,s=Math.min(this.t+t.t,e);for(i.s=0,i.t=s;s>0;)i[--s]=0;for(n=i.t-this.t;s=0;)i[n]=0;for(n=Math.max(e-this.t,0);n0)if(0==e)i=this[0]%t;else for(var n=this.t-1;n>=0;--n)i=(e*i+this[n])%t;return i},k.prototype.millerRabin=function(t){var e=this.subtract(k.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var n=e.shiftRight(i);(t=t+1>>1)>q.length&&(t=q.length);for(var s=T(),r=0;r>24},k.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},k.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},k.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var i,n=this.DB-t*this.DB%8,s=0;if(t-- >0)for(n>n)!=(this.s&this.DM)>>n&&(e[s++]=i|this.s<=0;)n<8?(i=(this[t]&(1<>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==s&&(128&this.s)!=(128&i)&&++s,(s>0||i!=this.s)&&(e[s++]=i);return e},k.prototype.equals=function(t){return 0==this.compareTo(t)},k.prototype.min=function(t){return this.compareTo(t)<0?this:t},k.prototype.max=function(t){return this.compareTo(t)>0?this:t},k.prototype.and=function(t){var e=T();return this.bitwiseTo(t,z,e),e},k.prototype.or=function(t){var e=T();return this.bitwiseTo(t,I,e),e},k.prototype.xor=function(t){var e=T();return this.bitwiseTo(t,F,e),e},k.prototype.andNot=function(t){var e=T();return this.bitwiseTo(t,H,e),e},k.prototype.not=function(){for(var t=T(),e=0;e=this.t?0!=this.s:0!=(this[e]&1<1){var l=T();for(n.sqrTo(o[1],l);a<=u;)o[a]=T(),n.mulTo(l,o[a-2],o[a]),a+=2}var h,d,f=t.t-1,p=!0,g=T();for(s=D(t[f])-1;f>=0;){for(s>=c?h=t[f]>>s-c&u:(h=(t[f]&(1<0&&(h|=t[f-1]>>this.DB+s-c)),a=i;0==(1&h);)h>>=1,--a;if((s-=a)<0&&(s+=this.DB,--f),p)o[h].copyTo(r),p=!1;else{for(;a>1;)n.sqrTo(r,g),n.sqrTo(g,r),a-=2;a>0?n.sqrTo(r,g):(d=r,r=g,g=d),n.mulTo(g,o[h],r)}for(;f>=0&&0==(t[f]&1<=0?(i.subTo(n,i),e&&s.subTo(o,s),r.subTo(a,r)):(n.subTo(i,n),e&&o.subTo(s,o),a.subTo(r,a))}return 0!=n.compareTo(k.ONE)?k.ZERO:a.compareTo(t)>=0?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},k.prototype.pow=function(t){return this.exp(t,new j)},k.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var n=e;e=i,i=n}var s=e.getLowestSetBit(),r=i.getLowestSetBit();if(r<0)return e;for(s0&&(e.rShiftTo(r,e),i.rShiftTo(r,i));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return r>0&&i.lShiftTo(r,i),i},k.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=q[q.length-1]){for(e=0;e>>8,U[V++]=255&J;V=0,G()}function tt(){if(null==K){for(G(),(K=new W).init(U),V=0;V>24,(16711680&s)>>16,(65280&s)>>8,255&s]))),s+=1;return n}function st(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function rt(t,e){this.x=e,this.q=t}function ot(t,e,i,n){this.curve=t,this.x=e,this.y=i,this.z=null==n?k.ONE:n,this.zinv=null}function at(t,e,i){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(i),this.infinity=new ot(this,null,null)}et.prototype.nextBytes=function(t){var e;for(e=0;e0&&e.length>0))throw"Invalid RSA public key";this.n=it(t,16),this.e=parseInt(e,16)}},st.prototype.encrypt=function(t){var e=function(t,e){if(e=0&&e>0;){var s=t.charCodeAt(n--);s<128?i[--e]=s:s>127&&s<2048?(i[--e]=63&s|128,i[--e]=s>>6|192):(i[--e]=63&s|128,i[--e]=s>>6&63|128,i[--e]=s>>12|224)}i[--e]=0;for(var r=new et,o=new Array;e>2;){for(o[0]=0;0==o[0];)r.nextBytes(o);i[--e]=o[0]}return i[--e]=2,i[--e]=0,new k(i)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var i=this.doPublic(e);if(null==i)return null;var n=i.toString(16);return 0==(1&n.length)?n:"0"+n},st.prototype.encryptOAEP=function(t,e,i){var n=function(t,e,i,n){var s=ut.crypto.MessageDigest,r=ut.crypto.Util,o=null;if(i||(i="sha1"),"string"==typeof i&&(o=s.getCanonicalAlgName(i),n=s.getHashLength(o),i=function(t){return kt(r.hashHex(Tt(t),o))}),t.length+2*n+2>e)throw"Message too long for RSA";var a,c="";for(a=0;a>3,e,i);if(null==n)return null;var s=this.doPublic(n);if(null==s)return null;var r=s.toString(16);return 0==(1&r.length)?r:"0"+r},st.prototype.type="RSA",rt.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},rt.prototype.toBigInteger=function(){return this.x},rt.prototype.negate=function(){return new rt(this.q,this.x.negate().mod(this.q))},rt.prototype.add=function(t){return new rt(this.q,this.x.add(t.toBigInteger()).mod(this.q))},rt.prototype.subtract=function(t){return new rt(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},rt.prototype.multiply=function(t){return new rt(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},rt.prototype.square=function(){return new rt(this.q,this.x.square().mod(this.q))},rt.prototype.divide=function(t){return new rt(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},ot.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ot.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ot.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(k.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(k.ZERO))},ot.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(k.ZERO)&&!this.y.toBigInteger().equals(k.ZERO)},ot.prototype.negate=function(){return new ot(this.curve,this.x,this.y.negate(),this.z)},ot.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),i=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(k.ZERO.equals(i))return k.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new k("3"),s=this.x.toBigInteger(),r=this.y.toBigInteger(),o=(t.x.toBigInteger(),t.y.toBigInteger(),i.square()),a=o.multiply(i),c=s.multiply(o),u=e.square().multiply(this.z),l=u.subtract(c.shiftLeft(1)).multiply(t.z).subtract(a).multiply(i).mod(this.curve.q),h=c.multiply(n).multiply(e).subtract(r.multiply(a)).subtract(u.multiply(e)).multiply(t.z).add(e.multiply(a)).mod(this.curve.q),d=a.multiply(this.z).multiply(t.z).mod(this.curve.q);return new ot(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(h),d)},ot.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=new k("3"),e=this.x.toBigInteger(),i=this.y.toBigInteger(),n=i.multiply(this.z),s=n.multiply(i).mod(this.curve.q),r=this.curve.a.toBigInteger(),o=e.square().multiply(t);k.ZERO.equals(r)||(o=o.add(this.z.square().multiply(r)));var a=(o=o.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(s)).shiftLeft(1).multiply(n).mod(this.curve.q),c=o.multiply(t).multiply(e).subtract(s.shiftLeft(1)).shiftLeft(2).multiply(s).subtract(o.square().multiply(o)).mod(this.curve.q),u=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new ot(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(c),u)},ot.prototype.multiply=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new k("3")),s=this.negate(),r=this;for(e=n.bitLength()-2;e>0;--e){r=r.twice();var o=n.testBit(e);o!=i.testBit(e)&&(r=r.add(o?this:s))}return r},ot.prototype.multiplyTwo=function(t,e,i){var n;n=t.bitLength()>i.bitLength()?t.bitLength()-1:i.bitLength()-1;for(var s=this.curve.getInfinity(),r=this.add(e);n>=0;)s=s.twice(),t.testBit(n)?s=i.testBit(n)?s.add(r):s.add(this):i.testBit(n)&&(s=s.add(e)),--n;return s},at.prototype.getQ=function(){return this.q},at.prototype.getA=function(){return this.a},at.prototype.getB=function(){return this.b},at.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},at.prototype.getInfinity=function(){return this.infinity},at.prototype.fromBigInteger=function(t){return new rt(this.q,t)},at.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,i=t.substr(2,e),n=t.substr(e+2,e);return new ot(this,this.fromBigInteger(new k(i,16)),this.fromBigInteger(new k(n,16)));default:return null}},rt.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},ot.prototype.getEncoded=function(t){var e=function(t,e){var i=t.toByteArrayUnsigned();if(ei.length;)i.unshift(0);return i},i=this.getX().toBigInteger(),n=this.getY().toBigInteger(),s=e(i,32);return t?n.isEven()?s.unshift(2):s.unshift(3):(s.unshift(4),s=s.concat(e(n,32))),s},ot.decodeFrom=function(t,e){var i=e.length-1,n=e.slice(1,1+i/2),s=e.slice(1+i/2,1+i);n.unshift(0),s.unshift(0);var r=new k(n),o=new k(s);return new ot(t,t.fromBigInteger(r),t.fromBigInteger(o))},ot.decodeFromHex=function(t,e){e.substr(0,2);var i=e.length-2,n=e.substr(2,i/2),s=e.substr(2+i/2,i/2),r=new k(n,16),o=new k(s,16);return new ot(t,t.fromBigInteger(r),t.fromBigInteger(o))},ot.prototype.add2D=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;if(this.x.equals(t.x))return this.y.equals(t.y)?this.twice():this.curve.getInfinity();var e=t.x.subtract(this.x),i=t.y.subtract(this.y).divide(e),n=i.square().subtract(this.x).subtract(t.x),s=i.multiply(this.x.subtract(n)).subtract(this.y);return new ot(this.curve,n,s)},ot.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=this.curve.fromBigInteger(k.valueOf(2)),e=this.curve.fromBigInteger(k.valueOf(3)),i=this.x.square().multiply(e).add(this.curve.a).divide(this.y.multiply(t)),n=i.square().subtract(this.x.multiply(t)),s=i.multiply(this.x.subtract(n)).subtract(this.y);return new ot(this.curve,n,s)},ot.prototype.multiply2D=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new k("3")),s=this.negate(),r=this;for(e=n.bitLength()-2;e>0;--e){r=r.twice();var o=n.testBit(e);o!=i.testBit(e)&&(r=r.add2D(o?this:s))}return r},ot.prototype.isOnCurve=function(){var t=this.getX().toBigInteger(),e=this.getY().toBigInteger(),i=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),s=this.curve.getQ(),r=e.multiply(e).mod(s),o=t.multiply(t).multiply(t).add(i.multiply(t)).add(n).mod(s);return r.equals(o)},ot.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},ot.prototype.validate=function(){var t=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var e=this.getX().toBigInteger(),i=this.getY().toBigInteger();if(e.compareTo(k.ONE)<0||e.compareTo(t.subtract(k.ONE))>0)throw new Error("x coordinate out of bounds");if(i.compareTo(k.ONE)<0||i.compareTo(t.subtract(k.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(t).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ct=function(){var t=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),e=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),n={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function s(t,e,i){return e?n[e]:String.fromCharCode(parseInt(i,16))}var r=new String(""),o=Object.hasOwnProperty;return function(n,a){var c,u,l=n.match(t),h=l[0],d=!1;"{"===h?c={}:"["===h?c=[]:(c=[],d=!0);for(var f=[c],p=1-d,g=l.length;p=0;)delete s[r[l]]}return a.call(e,n,s)}({"":c},"")),c}}();void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.asn1&&ut.asn1||(ut.asn1={}),ut.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var i=e.substr(1).length;i%2==1?i+=1:e.match(/^[0-7]/)||(i+=2);for(var n="",s=0;s15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+i).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ut.asn1.DERAbstractString=function(t){ut.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=vt(this.s).toLowerCase()},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},r.lang.extend(ut.asn1.DERAbstractString,ut.asn1.ASN1Object),ut.asn1.DERAbstractTime=function(t){ut.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,i){var n=this.zeroPadding,s=this.localDateToUTC(t),r=String(s.getFullYear());"utc"==e&&(r=r.substr(2,2));var o=r+n(String(s.getMonth()+1),2)+n(String(s.getDate()),2)+n(String(s.getHours()),2)+n(String(s.getMinutes()),2)+n(String(s.getSeconds()),2);if(!0===i){var a=s.getMilliseconds();if(0!=a){var c=n(String(a),3);o=o+"."+(c=c.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=mt(t)},this.setByDateValue=function(t,e,i,n,s,r){var o=new Date(Date.UTC(t,e-1,i,n,s,r,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},r.lang.extend(ut.asn1.DERAbstractTime,ut.asn1.ASN1Object),ut.asn1.DERAbstractStructured=function(t){ut.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},r.lang.extend(ut.asn1.DERAbstractStructured,ut.asn1.ASN1Object),ut.asn1.DERBoolean=function(){ut.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},r.lang.extend(ut.asn1.DERBoolean,ut.asn1.ASN1Object),ut.asn1.DERInteger=function(t){ut.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ut.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new k(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},r.lang.extend(ut.asn1.DERInteger,ut.asn1.ASN1Object),ut.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=ut.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}ut.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7s.length&&(s=n[i]);return(t=t.replace(s,"::")).slice(1,-1)}function Ft(t){var e="malformed hex value";if(!t.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw e;if(8!=t.length)return 32==t.length?It(t):t;try{return parseInt(t.substr(0,2),16)+"."+parseInt(t.substr(2,2),16)+"."+parseInt(t.substr(4,2),16)+"."+parseInt(t.substr(6,2),16)}catch(t){throw e}}function Ht(t){for(var e=encodeURIComponent(t),i="",n=0;n"7"?"00"+t:t}dt.getLblen=function(t,e){if("8"!=t.substr(e+2,1))return 1;var i=parseInt(t.substr(e+3,1));return 0==i?-1:0=2*r)break;if(a>=200)break;n.push(c),o=c,a++}return n},dt.getNthChildIdx=function(t,e,i){return dt.getChildIdx(t,e)[i]},dt.getIdxbyList=function(t,e,i,n){var s,r,o=dt;if(0==i.length){if(void 0!==n&&t.substr(e,2)!==n)throw"checking tag doesn't match: "+t.substr(e,2)+"!="+n;return e}return s=i.shift(),r=o.getChildIdx(t,e),o.getIdxbyList(t,r[s],i,n)},dt.getTLVbyList=function(t,e,i,n){var s=dt,r=s.getIdxbyList(t,e,i);if(void 0===r)throw"can't find nthList object";if(void 0!==n&&t.substr(r,2)!=n)throw"checking tag doesn't match: "+t.substr(r,2)+"!="+n;return s.getTLV(t,r)},dt.getVbyList=function(t,e,i,n,s){var r,o,a=dt;if(void 0===(r=a.getIdxbyList(t,e,i,n)))throw"can't find nthList object";return o=a.getV(t,r),!0===s&&(o=o.substr(2)),o},dt.hextooidstr=function(t){var e=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},i=[],n=t.substr(0,2),s=parseInt(n,16);i[0]=new String(Math.floor(s/40)),i[1]=new String(s%40);for(var r=t.substr(2),o=[],a=0;a0&&(l=l+"."+c.join(".")),l},dt.dump=function(t,e,i,n){var s=dt,r=s.getV,o=s.dump,a=s.getChildIdx,c=t;t instanceof ut.asn1.ASN1Object&&(c=t.getEncodedHex());var u=function(t,e){return t.length<=2*e?t:t.substr(0,e)+"..(total "+t.length/2+"bytes).."+t.substr(t.length-e,e)};void 0===e&&(e={ommit_long_octet:32}),void 0===i&&(i=0),void 0===n&&(n="");var l=e.ommit_long_octet;if("01"==c.substr(i,2))return"00"==(h=r(c,i))?n+"BOOLEAN FALSE\n":n+"BOOLEAN TRUE\n";if("02"==c.substr(i,2))return n+"INTEGER "+u(h=r(c,i),l)+"\n";if("03"==c.substr(i,2))return n+"BITSTRING "+u(h=r(c,i),l)+"\n";if("04"==c.substr(i,2)){var h=r(c,i);return s.isASN1HEX(h)?(A=n+"OCTETSTRING, encapsulates\n")+o(h,e,0,n+" "):n+"OCTETSTRING "+u(h,l)+"\n"}if("05"==c.substr(i,2))return n+"NULL\n";if("06"==c.substr(i,2)){var d=r(c,i),f=ut.asn1.ASN1Util.oidHexToInt(d),p=ut.asn1.x509.OID.oid2name(f),g=f.replace(/\./g," ");return""!=p?n+"ObjectIdentifier "+p+" ("+g+")\n":n+"ObjectIdentifier ("+g+")\n"}if("0c"==c.substr(i,2))return n+"UTF8String '"+At(r(c,i))+"'\n";if("13"==c.substr(i,2))return n+"PrintableString '"+At(r(c,i))+"'\n";if("14"==c.substr(i,2))return n+"TeletexString '"+At(r(c,i))+"'\n";if("16"==c.substr(i,2))return n+"IA5String '"+At(r(c,i))+"'\n";if("17"==c.substr(i,2))return n+"UTCTime "+At(r(c,i))+"\n";if("18"==c.substr(i,2))return n+"GeneralizedTime "+At(r(c,i))+"\n";if("30"==c.substr(i,2)){if("3000"==c.substr(i,4))return n+"SEQUENCE {}\n";A=n+"SEQUENCE\n";var m=e;if((2==(w=a(c,i)).length||3==w.length)&&"06"==c.substr(w[0],2)&&"04"==c.substr(w[w.length-1],2)){p=s.oidname(r(c,w[0]));var _=JSON.parse(JSON.stringify(e));_.x509ExtName=p,m=_}for(var y=0;ys)throw"key is too short for SigAlg: keylen="+i+","+e;for(var r="0001",o="00"+n,a="",c=s-r.length-o.length,u=0;u=0)return!1;if(i.compareTo(k.ONE)<0||i.compareTo(s)>=0)return!1;var o=i.modInverse(s),a=t.multiply(o).mod(s),c=e.multiply(o).mod(s);return r.multiply(a).add(n.multiply(c)).getX().toBigInteger().mod(s).equals(e)},this.serializeSig=function(t,e){var i=t.toByteArraySigned(),n=e.toByteArraySigned(),s=[];return s.push(2),s.push(i.length),(s=s.concat(i)).push(2),s.push(n.length),(s=s.concat(n)).unshift(s.length),s.unshift(48),s},this.parseSig=function(t){var e;if(48!=t[0])throw new Error("Signature not a valid DERSequence");if(2!=t[e=2])throw new Error("First element in signature must be a DERInteger");var i=t.slice(e+2,e+2+t[e+1]);if(2!=t[e+=2+t[e+1]])throw new Error("Second element in signature must be a DERInteger");var n=t.slice(e+2,e+2+t[e+1]);return e+=2+t[e+1],{r:k.fromByteArrayUnsigned(i),s:k.fromByteArrayUnsigned(n)}},this.parseSigCompact=function(t){if(65!==t.length)throw"Signature has the wrong length";var e=t[0]-27;if(e<0||e>7)throw"Invalid signature type";var i=this.ecparams.n;return{r:k.fromByteArrayUnsigned(t.slice(1,33)).mod(i),s:k.fromByteArrayUnsigned(t.slice(33,65)).mod(i),i:e}},this.readPKCS5PrvKeyHex=function(t){var e,i,n,s=ut.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=r(t,0,[2,0],"06"),i=r(t,0,[1],"04");try{n=r(t,0,[3,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=s(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(t){var e,i,n,s=ut.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{r(t,0,[1,0],"06"),e=r(t,0,[1,1],"06"),i=r(t,0,[2,0,1],"04");try{n=r(t,0,[2,0,2,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=s(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PubKeyHex=function(t){var e,i,n=ut.crypto.ECDSA.getName,s=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{s(t,0,[0,0],"06"),e=s(t,0,[0,1],"06"),i=s(t,0,[1],"03").substr(2)}catch(t){throw"malformed PKCS#8 ECC public key"}if(this.curveName=n(e),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},this.readCertPubKeyHex=function(t,e){5!==e&&(e=6);var i,n,s=ut.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{i=r(t,0,[0,e,0,1],"06"),n=r(t,0,[0,e,1],"03").substr(2)}catch(t){throw"malformed X.509 certificate ECC public key"}if(this.curveName=s(i),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},void 0!==t&&void 0!==t.curve&&(this.curveName=t.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==t&&(void 0!==t.prv&&this.setPrivateKeyHex(t.prv),void 0!==t.pub&&this.setPublicKeyHex(t.pub))},ut.crypto.ECDSA.parseSigHex=function(t){var e=ut.crypto.ECDSA.parseSigHexInHexRS(t);return{r:new k(e.r,16),s:new k(e.s,16)}},ut.crypto.ECDSA.parseSigHexInHexRS=function(t){var e=dt.getChildIdx,i=dt.getV;if("30"!=t.substr(0,2))throw"signature is not a ASN.1 sequence";var n=e(t,0);if(2!=n.length)throw"number of signature ASN.1 sequence elements seem wrong";var s=n[0],r=n[1];if("02"!=t.substr(s,2))throw"1st item of sequene of signature is not ASN.1 integer";if("02"!=t.substr(r,2))throw"2nd item of sequene of signature is not ASN.1 integer";return{r:i(t,s),s:i(t,r)}},ut.crypto.ECDSA.asn1SigToConcatSig=function(t){var e=ut.crypto.ECDSA.parseSigHexInHexRS(t),i=e.r,n=e.s;if("00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),"00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),i.length%32==30&&(i="00"+i),n.length%32==30&&(n="00"+n),i.length%32!=0)throw"unknown ECDSA sig r length error";if(n.length%32!=0)throw"unknown ECDSA sig s length error";return i+n},ut.crypto.ECDSA.concatSigToASN1Sig=function(t){if(t.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var e=t.substr(0,t.length/2),i=t.substr(t.length/2);return ut.crypto.ECDSA.hexRSSigToASN1Sig(e,i)},ut.crypto.ECDSA.hexRSSigToASN1Sig=function(t,e){var i=new k(t,16),n=new k(e,16);return ut.crypto.ECDSA.biRSSigToASN1Sig(i,n)},ut.crypto.ECDSA.biRSSigToASN1Sig=function(t,e){var i=ut.asn1,n=new i.DERInteger({bigint:t}),s=new i.DERInteger({bigint:e});return new i.DERSequence({array:[n,s]}).getEncodedHex()},ut.crypto.ECDSA.getName=function(t){return"2a8648ce3d030107"===t?"secp256r1":"2b8104000a"===t?"secp256k1":"2b81040022"===t?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(t)?"secp256r1":-1!=="|secp256k1|".indexOf(t)?"secp256k1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(t)?"secp384r1":null},void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.crypto&&ut.crypto||(ut.crypto={}),ut.crypto.ECParameterDB=new function(){var t={},e={};function i(t){return new k(t,16)}this.getByName=function(i){var n=i;if(void 0!==e[n]&&(n=e[i]),void 0!==t[n])return t[n];throw"unregistered EC curve name: "+n},this.regist=function(n,s,r,o,a,c,u,l,h,d,f,p){t[n]={};var g=i(r),m=i(o),_=i(a),y=i(c),w=i(u),b=new at(g,m,_),v=b.decodePointHex("04"+l+h);t[n].name=n,t[n].keylen=s,t[n].curve=b,t[n].G=v,t[n].n=y,t[n].h=w,t[n].oid=f,t[n].info=p;for(var A=0;A=2*a)break}var h={};return h.keyhex=c.substr(0,2*s[t].keylen),h.ivhex=c.substr(2*s[t].keylen,2*s[t].ivlen),h},a=function(t,e,i,n){var r=_.enc.Base64.parse(t),o=_.enc.Hex.stringify(r);return(0,s[e].proc)(o,i,n)};return{version:"1.0.0",parsePKCS5PEM:function(t){return r(t)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(t,e,i){return o(t,e,i)},decryptKeyB64:function(t,e,i,n){return a(t,e,i,n)},getDecryptedKeyHex:function(t,e){var i=r(t),n=i.cipher,s=i.ivsalt,c=i.data,u=o(n,e,s).keyhex;return a(c,n,u,s)},getEncryptedPKCS5PEMFromPrvKeyHex:function(t,e,i,n,r){var a="";if(void 0!==n&&null!=n||(n="AES-256-CBC"),void 0===s[n])throw"KEYUTIL unsupported algorithm: "+n;return void 0!==r&&null!=r||(r=function(t){var e=_.lib.WordArray.random(t);return _.enc.Hex.stringify(e)}(s[n].ivlen).toUpperCase()),a="-----BEGIN "+t+" PRIVATE KEY-----\r\n",a+="Proc-Type: 4,ENCRYPTED\r\n",a+="DEK-Info: "+n+","+r+"\r\n",a+="\r\n",(a+=function(t,e,i,n){return(0,s[e].eproc)(t,i,n)}(e,n,o(n,i,r).keyhex,r).replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+t+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(e){var i=dt.getChildIdx,n=dt.getV,s={},r=i(e,0);if(2!=r.length)throw"malformed format: SEQUENCE(0).items != 2: "+r.length;s.ciphertext=n(e,r[1]);var o=i(e,r[0]);if(2!=o.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+o.length;if("2a864886f70d01050d"!=n(e,o[0]))throw"this only supports pkcs5PBES2";var a=i(e,o[1]);if(2!=o.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+a.length;var c=i(e,a[1]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+c.length;if("2a864886f70d0307"!=n(e,c[0]))throw"this only supports TripleDES";s.encryptionSchemeAlg="TripleDES",s.encryptionSchemeIV=n(e,c[1]);var u=i(e,a[0]);if(2!=u.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+u.length;if("2a864886f70d01050c"!=n(e,u[0]))throw"this only supports pkcs5PBKDF2";var l=i(e,u[1]);if(l.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+l.length;s.pbkdf2Salt=n(e,l[0]);var h=n(e,l[1]);try{s.pbkdf2Iter=parseInt(h,16)}catch(t){throw"malformed format pbkdf2Iter: "+h}return s},getPBKDF2KeyHexFromParam:function(t,e){var i=_.enc.Hex.parse(t.pbkdf2Salt),n=_.PBKDF2(e,i,{keySize:6,iterations:t.pbkdf2Iter});return _.enc.Hex.stringify(n)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(t,e){var i=xt(t,"ENCRYPTED PRIVATE KEY"),n=this.parseHexOfEncryptedPKCS8(i),s=Bt.getPBKDF2KeyHexFromParam(n,e),r={};r.ciphertext=_.enc.Hex.parse(n.ciphertext);var o=_.enc.Hex.parse(s),a=_.enc.Hex.parse(n.encryptionSchemeIV),c=_.TripleDES.decrypt(r,o,{iv:a});return _.enc.Hex.stringify(c)},getKeyFromEncryptedPKCS8PEM:function(t,e){var i=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(t,e);return this.getKeyFromPlainPrivatePKCS8Hex(i)},parsePlainPrivatePKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,s={algparam:null};if("30"!=t.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var r=i(t,0);if(3!=r.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=t.substr(r[1],2))throw"malformed PKCS8 private key(code:003)";var o=i(t,r[1]);if(2!=o.length)throw"malformed PKCS8 private key(code:004)";if("06"!=t.substr(o[0],2))throw"malformed PKCS8 private key(code:005)";if(s.algoid=n(t,o[0]),"06"==t.substr(o[1],2)&&(s.algparam=n(t,o[1])),"04"!=t.substr(r[2],2))throw"malformed PKCS8 private key(code:006)";return s.keyidx=e.getVidx(t,r[2]),s},getKeyFromPlainPrivatePKCS8PEM:function(t){var e=xt(t,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(e)},getKeyFromPlainPrivatePKCS8Hex:function(t){var e,i=this.parsePlainPrivatePKCS8Hex(t);if("2a864886f70d010101"==i.algoid)e=new st;else if("2a8648ce380401"==i.algoid)e=new ut.crypto.DSA;else{if("2a8648ce3d0201"!=i.algoid)throw"unsupported private key algorithm";e=new ut.crypto.ECDSA}return e.readPKCS8PrvKeyHex(t),e},_getKeyFromPublicPKCS8Hex:function(t){var e,i=dt.getVbyList(t,0,[0,0],"06");if("2a864886f70d010101"===i)e=new st;else if("2a8648ce380401"===i)e=new ut.crypto.DSA;else{if("2a8648ce3d0201"!==i)throw"unsupported PKCS#8 public key hex";e=new ut.crypto.ECDSA}return e.readPKCS8PubKeyHex(t),e},parsePublicRawRSAKeyHex:function(t){var e=dt.getChildIdx,i=dt.getV,n={};if("30"!=t.substr(0,2))throw"malformed RSA key(code:001)";var s=e(t,0);if(2!=s.length)throw"malformed RSA key(code:002)";if("02"!=t.substr(s[0],2))throw"malformed RSA key(code:003)";if(n.n=i(t,s[0]),"02"!=t.substr(s[1],2))throw"malformed RSA key(code:004)";return n.e=i(t,s[1]),n},parsePublicPKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,s={algparam:null},r=i(t,0);if(2!=r.length)throw"outer DERSequence shall have 2 elements: "+r.length;var o=r[0];if("30"!=t.substr(o,2))throw"malformed PKCS8 public key(code:001)";var a=i(t,o);if(2!=a.length)throw"malformed PKCS8 public key(code:002)";if("06"!=t.substr(a[0],2))throw"malformed PKCS8 public key(code:003)";if(s.algoid=n(t,a[0]),"06"==t.substr(a[1],2)?s.algparam=n(t,a[1]):"30"==t.substr(a[1],2)&&(s.algparam={},s.algparam.p=e.getVbyList(t,a[1],[0],"02"),s.algparam.q=e.getVbyList(t,a[1],[1],"02"),s.algparam.g=e.getVbyList(t,a[1],[2],"02")),"03"!=t.substr(r[1],2))throw"malformed PKCS8 public key(code:004)";return s.key=n(t,r[1]).substr(2),s}}}();Bt.getKey=function(t,e,i){var n,s=(_=dt).getChildIdx,r=_.getVbyList,o=ut.crypto,a=o.ECDSA,c=o.DSA,u=st,l=xt,h=Bt;if(void 0!==u&&t instanceof u)return t;if(void 0!==a&&t instanceof a)return t;if(void 0!==c&&t instanceof c)return t;if(void 0!==t.curve&&void 0!==t.xy&&void 0===t.d)return new a({pub:t.xy,curve:t.curve});if(void 0!==t.curve&&void 0!==t.d)return new a({prv:t.d,curve:t.curve});if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(x=new u).setPublic(t.n,t.e),x;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.co&&void 0===t.qi)return(x=new u).setPrivateEx(t.n,t.e,t.d,t.p,t.q,t.dp,t.dq,t.co),x;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0===t.p)return(x=new u).setPrivate(t.n,t.e,t.d),x;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0===t.x)return(x=new c).setPublic(t.p,t.q,t.g,t.y),x;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0!==t.x)return(x=new c).setPrivate(t.p,t.q,t.g,t.y,t.x),x;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(x=new u).setPublic(bt(t.n),bt(t.e)),x;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.qi)return(x=new u).setPrivateEx(bt(t.n),bt(t.e),bt(t.d),bt(t.p),bt(t.q),bt(t.dp),bt(t.dq),bt(t.qi)),x;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d)return(x=new u).setPrivate(bt(t.n),bt(t.e),bt(t.d)),x;if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0===t.d){var d=(E=new a({curve:t.crv})).ecparams.keylen/4,f="04"+("0000000000"+bt(t.x)).slice(-d)+("0000000000"+bt(t.y)).slice(-d);return E.setPublicKeyHex(f),E}if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0!==t.d){d=(E=new a({curve:t.crv})).ecparams.keylen/4,f="04"+("0000000000"+bt(t.x)).slice(-d)+("0000000000"+bt(t.y)).slice(-d);var p=("0000000000"+bt(t.d)).slice(-d);return E.setPublicKeyHex(f),E.setPrivateKeyHex(p),E}if("pkcs5prv"===i){var g,m=t,_=dt;if(9===(g=s(m,0)).length)(x=new u).readPKCS5PrvKeyHex(m);else if(6===g.length)(x=new c).readPKCS5PrvKeyHex(m);else{if(!(g.length>2&&"04"===m.substr(g[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(x=new a).readPKCS5PrvKeyHex(m)}return x}if("pkcs8prv"===i)return h.getKeyFromPlainPrivatePKCS8Hex(t);if("pkcs8pub"===i)return h._getKeyFromPublicPKCS8Hex(t);if("x509pub"===i)return Ut.getPublicKeyFromCertHex(t);if(-1!=t.indexOf("-END CERTIFICATE-",0)||-1!=t.indexOf("-END X509 CERTIFICATE-",0)||-1!=t.indexOf("-END TRUSTED CERTIFICATE-",0))return Ut.getPublicKeyFromCertPEM(t);if(-1!=t.indexOf("-END PUBLIC KEY-")){var y=xt(t,"PUBLIC KEY");return h._getKeyFromPublicPKCS8Hex(y)}if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var w=l(t,"RSA PRIVATE KEY");return h.getKey(w,null,"pkcs5prv")}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var b=r(n=l(t,"DSA PRIVATE KEY"),0,[1],"02"),v=r(n,0,[2],"02"),A=r(n,0,[3],"02"),T=r(n,0,[4],"02"),C=r(n,0,[5],"02");return(x=new c).setPrivate(new k(b,16),new k(v,16),new k(A,16),new k(T,16),new k(C,16)),x}if(-1!=t.indexOf("-END PRIVATE KEY-"))return h.getKeyFromPlainPrivatePKCS8PEM(t);if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var S=h.getDecryptedKeyHex(t,e),M=new st;return M.readPKCS5PrvKeyHex(S),M}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var E,x=r(n=h.getDecryptedKeyHex(t,e),0,[1],"04"),R=r(n,0,[2,0],"06"),D=r(n,0,[3,0],"03").substr(2);if(void 0===ut.crypto.OID.oidhex2name[R])throw"undefined OID(hex) in KJUR.crypto.OID: "+R;return(E=new a({curve:ut.crypto.OID.oidhex2name[R]})).setPublicKeyHex(D),E.setPrivateKeyHex(x),E.isPublic=!1,E}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED"))return b=r(n=h.getDecryptedKeyHex(t,e),0,[1],"02"),v=r(n,0,[2],"02"),A=r(n,0,[3],"02"),T=r(n,0,[4],"02"),C=r(n,0,[5],"02"),(x=new c).setPrivate(new k(b,16),new k(v,16),new k(A,16),new k(T,16),new k(C,16)),x;if(-1!=t.indexOf("-END ENCRYPTED PRIVATE KEY-"))return h.getKeyFromEncryptedPKCS8PEM(t,e);throw"not supported argument"},Bt.generateKeypair=function(t,e){if("RSA"==t){var i=e;(o=new st).generate(i,"10001"),o.isPrivate=!0,o.isPublic=!0;var n=new st,s=o.n.toString(16),r=o.e.toString(16);return n.setPublic(s,r),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=o,a.pubKeyObj=n,a}if("EC"==t){var o,a,c=e,u=new ut.crypto.ECDSA({curve:c}).generateKeyPairHex();return(o=new ut.crypto.ECDSA({curve:c})).setPublicKeyHex(u.ecpubhex),o.setPrivateKeyHex(u.ecprvhex),o.isPrivate=!0,o.isPublic=!1,(n=new ut.crypto.ECDSA({curve:c})).setPublicKeyHex(u.ecpubhex),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=o,a.pubKeyObj=n,a}throw"unknown algorithm: "+t},Bt.getPEM=function(t,e,i,n,s,r){var o=ut.asn1,a=o.DERObjectIdentifier,c=o.DERInteger,u=o.ASN1Util.newObject,l=ut.crypto,h=l.DSA,d=l.ECDSA,f=st;function p(t){return u({seq:[{int:0},{int:{bigint:t.n}},{int:t.e},{int:{bigint:t.d}},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.dmp1}},{int:{bigint:t.dmq1}},{int:{bigint:t.coeff}}]})}function g(t){return u({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a0",!0,{oid:{name:t.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]})}function m(t){return u({seq:[{int:0},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}},{int:{bigint:t.y}},{int:{bigint:t.x}}]})}if((void 0!==f&&t instanceof f||void 0!==h&&t instanceof h||void 0!==d&&t instanceof d)&&1==t.isPublic&&(void 0===e||"PKCS8PUB"==e))return Et(v=new(0,o.x509.SubjectPublicKeyInfo)(t).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==e&&void 0!==f&&t instanceof f&&(void 0===i||null==i)&&1==t.isPrivate)return Et(v=p(t).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==e&&void 0!==d&&t instanceof d&&(void 0===i||null==i)&&1==t.isPrivate){var y=new a({name:t.curveName}).getEncodedHex(),w=g(t).getEncodedHex(),b="";return(b+=Et(y,"EC PARAMETERS"))+Et(w,"EC PRIVATE KEY")}if("PKCS1PRV"==e&&void 0!==h&&t instanceof h&&(void 0===i||null==i)&&1==t.isPrivate)return Et(v=m(t).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==e&&void 0!==f&&t instanceof f&&void 0!==i&&null!=i&&1==t.isPrivate){var v=p(t).getEncodedHex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",v,i,n,r)}if("PKCS5PRV"==e&&void 0!==d&&t instanceof d&&void 0!==i&&null!=i&&1==t.isPrivate)return v=g(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",v,i,n,r);if("PKCS5PRV"==e&&void 0!==h&&t instanceof h&&void 0!==i&&null!=i&&1==t.isPrivate)return v=m(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",v,i,n,r);var A=function(t,e){var i=k(t,e);return new u({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:i.pbkdf2Salt}},{int:i.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:i.encryptionSchemeIV}}]}]}]},{octstr:{hex:i.ciphertext}}]}).getEncodedHex()},k=function(t,e){var i=_.lib.WordArray.random(8),n=_.lib.WordArray.random(8),s=_.PBKDF2(e,i,{keySize:6,iterations:100}),r=_.enc.Hex.parse(t),o=_.TripleDES.encrypt(r,s,{iv:n})+"",a={};return a.ciphertext=o,a.pbkdf2Salt=_.enc.Hex.stringify(i),a.pbkdf2Iter=100,a.encryptionSchemeAlg="DES-EDE3-CBC",a.encryptionSchemeIV=_.enc.Hex.stringify(n),a};if("PKCS8PRV"==e&&null!=f&&t instanceof f&&1==t.isPrivate){var T=p(t).getEncodedHex();return v=u({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?Et(v,"PRIVATE KEY"):Et(w=A(v,i),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==e&&void 0!==d&&t instanceof d&&1==t.isPrivate)return T=new u({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]}).getEncodedHex(),v=u({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:t.curveName}}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?Et(v,"PRIVATE KEY"):Et(w=A(v,i),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==e&&void 0!==h&&t instanceof h&&1==t.isPrivate)return T=new c({bigint:t.x}).getEncodedHex(),v=u({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}}]}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?Et(v,"PRIVATE KEY"):Et(w=A(v,i),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},Bt.getKeyFromCSRPEM=function(t){var e=xt(t,"CERTIFICATE REQUEST");return Bt.getKeyFromCSRHex(e)},Bt.getKeyFromCSRHex=function(t){var e=Bt.parseCSRHex(t);return Bt.getKey(e.p8pubkeyhex,null,"pkcs8pub")},Bt.parseCSRHex=function(t){var e=dt.getChildIdx,i=dt.getTLV,n={},s=t;if("30"!=s.substr(0,2))throw"malformed CSR(code:001)";var r=e(s,0);if(r.length<1)throw"malformed CSR(code:002)";if("30"!=s.substr(r[0],2))throw"malformed CSR(code:003)";var o=e(s,r[0]);if(o.length<3)throw"malformed CSR(code:004)";return n.p8pubkeyhex=i(s,o[2]),n},Bt.getJWKFromKey=function(t){var e={};if(t instanceof st&&t.isPrivate)return e.kty="RSA",e.n=wt(t.n.toString(16)),e.e=wt(t.e.toString(16)),e.d=wt(t.d.toString(16)),e.p=wt(t.p.toString(16)),e.q=wt(t.q.toString(16)),e.dp=wt(t.dmp1.toString(16)),e.dq=wt(t.dmq1.toString(16)),e.qi=wt(t.coeff.toString(16)),e;if(t instanceof st&&t.isPublic)return e.kty="RSA",e.n=wt(t.n.toString(16)),e.e=wt(t.e.toString(16)),e;if(t instanceof ut.crypto.ECDSA&&t.isPrivate){if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;var i=t.getPublicKeyXYHex();return e.kty="EC",e.crv=n,e.x=wt(i.x),e.y=wt(i.y),e.d=wt(t.prvKeyHex),e}if(t instanceof ut.crypto.ECDSA&&t.isPublic){var n;if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;return i=t.getPublicKeyXYHex(),e.kty="EC",e.crv=n,e.x=wt(i.x),e.y=wt(i.y),e}throw"not supported key object"},st.getPosArrayOfChildrenFromHex=function(t){return dt.getChildIdx(t,0)},st.getHexValueArrayOfChildrenFromHex=function(t){var e,i=dt.getV,n=i(t,(e=st.getPosArrayOfChildrenFromHex(t))[0]),s=i(t,e[1]),r=i(t,e[2]),o=i(t,e[3]),a=i(t,e[4]),c=i(t,e[5]),u=i(t,e[6]),l=i(t,e[7]),h=i(t,e[8]);return(e=new Array).push(n,s,r,o,a,c,u,l,h),e},st.prototype.readPrivateKeyFromPEMString=function(t){var e=xt(t),i=st.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8])},st.prototype.readPKCS5PrvKeyHex=function(t){var e=st.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},st.prototype.readPKCS8PrvKeyHex=function(t){var e,i,n,s,r,o,a,c,u=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=u(t,0,[2,0,1],"02"),i=u(t,0,[2,0,2],"02"),n=u(t,0,[2,0,3],"02"),s=u(t,0,[2,0,4],"02"),r=u(t,0,[2,0,5],"02"),o=u(t,0,[2,0,6],"02"),a=u(t,0,[2,0,7],"02"),c=u(t,0,[2,0,8],"02")}catch(t){throw"malformed PKCS#8 plain RSA private key"}this.setPrivateEx(e,i,n,s,r,o,a,c)},st.prototype.readPKCS5PubKeyHex=function(t){var e=dt,i=e.getV;if(!1===e.isASN1HEX(t))throw"keyHex is not ASN.1 hex string";var n=e.getChildIdx(t,0);if(2!==n.length||"02"!==t.substr(n[0],2)||"02"!==t.substr(n[1],2))throw"wrong hex for PKCS#5 public key";var s=i(t,n[0]),r=i(t,n[1]);this.setPublic(s,r)},st.prototype.readPKCS8PubKeyHex=function(t){var e=dt;if(!1===e.isASN1HEX(t))throw"not ASN.1 hex string";if("06092a864886f70d010101"!==e.getTLVbyList(t,0,[0,0]))throw"not PKCS8 RSA public key";var i=e.getTLVbyList(t,0,[1,0]);this.readPKCS5PubKeyHex(i)},st.prototype.readCertPubKeyHex=function(t,e){var i,n;(i=new Ut).readCertHex(t),n=i.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)};var jt=new RegExp("");function Yt(t,e){for(var i="",n=e/4-t.length,s=0;s>24,(16711680&s)>>16,(65280&s)>>8,255&s])))),s+=1;return n}function Kt(t){for(var e in ut.crypto.Util.DIGESTINFOHEAD){var i=ut.crypto.Util.DIGESTINFOHEAD[e],n=i.length;if(t.substring(0,n)==i)return[e,t.substring(n)]}return[]}function Ut(){var t=dt,e=t.getChildIdx,i=t.getV,n=t.getTLV,s=t.getVbyList,r=t.getTLVbyList,o=t.getIdxbyList,a=t.getVidx,c=t.oidname,u=Ut,l=xt;this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==r(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return s(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){return c(s(this.hex,0,[0,2+this.foffset,0],"06"))},this.getIssuerHex=function(){return r(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return u.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return r(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return u.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var t=s(this.hex,0,[0,4+this.foffset,0]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getNotAfter=function(){var t=s(this.hex,0,[0,4+this.foffset,1]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getPublicKeyHex=function(){return t.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return o(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var t=this.getPublicKeyIdx();return o(this.hex,t,[1,0],"30")},this.getPublicKey=function(){return Bt.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return c(s(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return s(this.hex,0,[2],"03",!0)},this.verifySignature=function(t){var e=this.getSignatureAlgorithmName(),i=this.getSignatureValueHex(),n=r(this.hex,0,[0],"30"),s=new ut.crypto.Signature({alg:e});return s.init(t),s.updateHex(n),s.verify(i)},this.parseExt=function(){if(3!==this.version)return-1;var i=o(this.hex,0,[0,7,0],"30"),n=e(this.hex,i);this.aExtInfo=new Array;for(var r=0;r0&&(u=new Array(i),(new et).nextBytes(u),u=String.fromCharCode.apply(String,u));var l=kt(c(Tt("\0\0\0\0\0\0\0\0"+s+u))),h=[];for(n=0;n>8*a-o&255),n=0;nthis.n.bitLength())return 0;var n=Kt(this.doPublic(i).toString(16).replace(/^1f+00/,""));if(0==n.length)return!1;var s=n[0];return n[1]==function(t){return ut.crypto.Util.hashString(t,s)}(t)},st.prototype.verifyWithMessageHash=function(t,e){var i=it(e=(e=e.replace(jt,"")).replace(/[ \n]+/g,""),16);if(i.bitLength()>this.n.bitLength())return 0;var n=Kt(this.doPublic(i).toString(16).replace(/^1f+00/,""));return 0!=n.length&&n[1]==t},st.prototype.verifyPSS=function(t,e,i,n){var s=function(t){return ut.crypto.Util.hashHex(t,i)}(Tt(t));return void 0===n&&(n=-1),this.verifyWithMessageHashPSS(s,e,i,n)},st.prototype.verifyWithMessageHashPSS=function(t,e,i,n){var s=new k(e,16);if(s.bitLength()>this.n.bitLength())return!1;var r,o=function(t){return ut.crypto.Util.hashHex(t,i)},a=kt(t),c=a.length,u=this.n.bitLength()-1,l=Math.ceil(u/8);if(-1===n||void 0===n)n=c;else if(-2===n)n=l-c-2;else if(n<-2)throw"invalid salt length";if(l>8*l-u&255;if(0!=(d.charCodeAt(0)&p))throw"bits beyond keysize not zero";var g=Nt(f,d.length,o),m=[];for(r=0;r0&&-1==(":"+n.join(":")+":").indexOf(":"+m+":"))throw"algorithm '"+m+"' not accepted in the list";if("none"!=m&&null===e)throw"key shall be specified to verify.";if("string"==typeof e&&-1!=e.indexOf("-----BEGIN ")&&(e=Bt.getKey(e)),!("RS"!=d&&"PS"!=d||e instanceof s))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==d&&!(e instanceof c))throw"key shall be a ECDSA obj for ES* algs";var _=null;if(void 0===r.jwsalg2sigalg[g.alg])throw"unsupported alg name: "+m;if("none"==(_=r.jwsalg2sigalg[m]))throw"not supported";if("Hmac"==_.substr(0,4)){if(void 0===e)throw"hexadecimal key shall be specified for HMAC";var y=new u({alg:_,pass:e});return y.updateString(f),p==y.doFinal()}if(-1!=_.indexOf("withECDSA")){var w,b=null;try{b=c.concatSigToASN1Sig(p)}catch(t){return!1}return(w=new l({alg:_})).init(e),w.updateString(f),w.verify(b)}return(w=new l({alg:_})).init(e),w.updateString(f),w.verify(p)},ut.jws.JWS.parse=function(t){var e,i,n=t.split("."),s={};if(2!=n.length&&3!=n.length)throw"malformed sJWS: wrong number of '.' splitted elements";return e=n[1],3==n.length&&(i=n[2]),s.headerObj=ut.jws.JWS.readSafeJSONString(ht(n[0])),s.payloadObj=ut.jws.JWS.readSafeJSONString(ht(e)),s.headerPP=JSON.stringify(s.headerObj,null," "),s.payloadPP=null==s.payloadObj?ht(e):JSON.stringify(s.payloadObj,null," "),void 0!==i&&(s.sigHex=bt(i)),s},ut.jws.JWS.verifyJWT=function(t,e,n){var s=ut.jws,r=s.JWS,o=r.readSafeJSONString,a=r.inArray,c=r.includedArray,u=t.split("."),l=u[0],h=u[1],d=(bt(u[2]),o(ht(l))),f=o(ht(h));if(void 0===d.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!a(d.alg,n.alg))return!1;if(void 0!==f.iss&&"object"===i(n.iss)&&!a(f.iss,n.iss))return!1;if(void 0!==f.sub&&"object"===i(n.sub)&&!a(f.sub,n.sub))return!1;if(void 0!==f.aud&&"object"===i(n.aud))if("string"==typeof f.aud){if(!a(f.aud,n.aud))return!1}else if("object"==i(f.aud)&&!c(f.aud,n.aud))return!1;var p=s.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(p=n.verifyAt),void 0!==n.gracePeriod&&"number"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==f.exp&&"number"==typeof f.exp&&f.exp+n.gracePeriode.length&&(i=e.length);for(var n=0;n=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function p(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return Y(t).length;default:if(n)return j(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function m(t,e,i,n,s){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=s?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(s)return-1;i=t.length-1}else if(i<0){if(!s)return-1;i=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:_(t,e,i,n,s);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):_(t,[e],i,n,s);throw new TypeError("val must be string, number or Buffer")}function _(t,e,i,n,s){var r,o=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,i/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(s){var l=-1;for(r=i;ra&&(i=a-c),r=i;r>=0;r--){for(var h=!0,d=0;ds&&(n=s):n=s;var r=e.length;if(r%2!=0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var o=0;o>8,s.push(i%256),s.push(n);return s}(e,t.length-i),t,i,n)}function T(t,e,i){return n.fromByteArray(0===e&&i===t.length?t:t.slice(e,i))}function C(t,e,i){i=Math.min(t.length,i);for(var n=[],s=e;s239?4:u>223?3:u>191?2:1;if(s+h<=i)switch(h){case 1:u<128&&(l=u);break;case 2:128==(192&(r=t[s+1]))&&(c=(31&u)<<6|63&r)>127&&(l=c);break;case 3:o=t[s+2],128==(192&(r=t[s+1]))&&128==(192&o)&&(c=(15&u)<<12|(63&r)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=t[s+2],a=t[s+3],128==(192&(r=t[s+1]))&&128==(192&o)&&128==(192&a)&&(c=(15&u)<<18|(63&r)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(n.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),n.push(l),s+=h}return function(t){var e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);for(var i="",n=0;nthis.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,e,i);case"utf8":case"utf-8":return C(this,e,i);case"ascii":return M(this,e,i);case"latin1":case"binary":return E(this,e,i);case"base64":return T(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}).apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),""},c.prototype.compare=function(t,e,i,n,s){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),e<0||i>t.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&e>=i)return 0;if(n>=s)return-1;if(e>=i)return 1;if(this===t)return 0;for(var r=(s>>>=0)-(n>>>=0),o=(i>>>=0)-(e>>>=0),a=Math.min(r,o),u=this.slice(n,s),l=t.slice(e,i),h=0;hs)&&(i=s),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return y(this,t,e,i);case"utf8":case"utf-8":return w(this,t,e,i);case"ascii":return b(this,t,e,i);case"latin1":case"binary":return v(this,t,e,i);case"base64":return A(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function M(t,e,i){var n="";i=Math.min(t.length,i);for(var s=e;sn)&&(i=n);for(var s="",r=e;ri)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,i,n,s,r){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||et.length)throw new RangeError("Index out of range")}function L(t,e,i,n){e<0&&(e=65535+e+1);for(var s=0,r=Math.min(t.length-i,2);s>>8*(n?s:1-s)}function z(t,e,i,n){e<0&&(e=4294967295+e+1);for(var s=0,r=Math.min(t.length-i,4);s>>8*(n?s:3-s)&255}function I(t,e,i,n,s,r){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function F(t,e,i,n,r){return r||I(t,0,i,4),s.write(t,e,i,n,23,4),i+4}function H(t,e,i,n,r){return r||I(t,0,i,8),s.write(t,e,i,n,52,8),i+8}c.prototype.slice=function(t,e){var i,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(s*=256);)n+=this[t+--e]*s;return n},c.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||D(t,e,this.length);for(var n=this[t],s=1,r=0;++r=(s*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||D(t,e,this.length);for(var n=e,s=1,r=this[t+--n];n>0&&(s*=256);)r+=this[t+--n]*s;return r>=(s*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(t,e){return e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||D(t,4,this.length),s.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),s.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),s.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),s.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,i,n){t=+t,e|=0,i|=0,n||P(this,t,e,i,Math.pow(2,8*i)-1,0);var s=1,r=0;for(this[e]=255&t;++r=0&&(r*=256);)this[e+s]=t/r&255;return e+i},c.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):z(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):z(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*i-1);P(this,t,e,i,s-1,-s)}var r=0,o=1,a=0;for(this[e]=255&t;++r>0)-a&255;return e+i},c.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*i-1);P(this,t,e,i,s-1,-s)}var r=i-1,o=1,a=0;for(this[e+r]=255&t;--r>=0&&(o*=256);)t<0&&0===a&&0!==this[e+r+1]&&(a=1),this[e+r]=(t/o>>0)-a&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):z(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):z(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,i){return F(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return F(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return H(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return H(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--s)t[s+e]=this[s+i];else if(r<1e3||!c.TYPED_ARRAY_SUPPORT)for(s=0;s>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(r=e;r55295&&i<57344){if(!s){if(i>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&r.push(239,191,189);continue}s=i;continue}if(i<56320){(e-=3)>-1&&r.push(239,191,189),s=i;continue}i=65536+(s-55296<<10|i-56320)}else s&&(e-=3)>-1&&r.push(239,191,189);if(s=null,i<128){if((e-=1)<0)break;r.push(i)}else if(i<2048){if((e-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function Y(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(O,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function N(t,e,i,n){for(var s=0;s=e.length||s>=t.length);++s)e[s+i]=t[s];return s}}).call(this,i(28))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";e.byteLength=function(t){var e=u(t),i=e[1];return 3*(e[0]+i)/4-i},e.toByteArray=function(t){for(var e,i=u(t),n=i[0],o=i[1],a=new r(function(t,e,i){return 3*(e+i)/4-i}(0,n,o)),c=0,l=o>0?n-4:n,h=0;h>16&255,a[c++]=e>>8&255,a[c++]=255&e;return 2===o&&(e=s[t.charCodeAt(h)]<<2|s[t.charCodeAt(h+1)]>>4,a[c++]=255&e),1===o&&(e=s[t.charCodeAt(h)]<<10|s[t.charCodeAt(h+1)]<<4|s[t.charCodeAt(h+2)]>>2,a[c++]=e>>8&255,a[c++]=255&e),a},e.fromByteArray=function(t){for(var e,i=t.length,s=i%3,r=[],o=0,a=i-s;oa?a:o+16383));return 1===s?r.push(n[(e=t[i-1])>>2]+n[e<<4&63]+"=="):2===s&&r.push(n[(e=(t[i-2]<<8)+t[i-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),r.join("")};for(var n=[],s=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function l(t,e,i){for(var s,r=[],o=e;o>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return r.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,i,n,s){var r,o,a=8*s-n-1,c=(1<>1,l=-7,h=i?s-1:0,d=i?-1:1,f=t[e+h];for(h+=d,r=f&(1<<-l)-1,f>>=-l,l+=a;l>0;r=256*r+t[e+h],h+=d,l-=8);for(o=r&(1<<-l)-1,r>>=-l,l+=n;l>0;o=256*o+t[e+h],h+=d,l-=8);if(0===r)r=1-u;else{if(r===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),r-=u}return(f?-1:1)*o*Math.pow(2,r-n)},e.write=function(t,e,i,n,s,r){var o,a,c,u=8*r-s-1,l=(1<>1,d=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:r-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=l):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(o++,c/=2),o+h>=l?(a=0,o=l):o+h>=1?(a=(e*c-1)*Math.pow(2,s),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,s),o=0));s>=8;t[i+f]=255&a,f+=p,a/=256,s-=8);for(o=o<0;t[i+f]=255&o,f+=p,o/=256,u-=8);t[i+f-p]|=128*g}},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.jws,i=t.KeyUtil,s=t.X509,r=t.crypto,o=t.hextob64u,a=t.b64tohex,c=t.AllowedSigningAlgs;return function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.parseJwt=function t(i){n.Log.debug("JoseUtil.parseJwt");try{var s=e.JWS.parse(i);return{header:s.headerObj,payload:s.payloadObj}}catch(t){n.Log.error(t)}},t.validateJwt=function(e,r,o,c,u,l,h){n.Log.debug("JoseUtil.validateJwt");try{if("RSA"===r.kty)if(r.e&&r.n)r=i.getKey(r);else{if(!r.x5c||!r.x5c.length)return n.Log.error("JoseUtil.validateJwt: RSA key missing key material",r),Promise.reject(new Error("RSA key missing key material"));var d=a(r.x5c[0]);r=s.getPublicKeyFromCertHex(d)}else{if("EC"!==r.kty)return n.Log.error("JoseUtil.validateJwt: Unsupported key type",r&&r.kty),Promise.reject(new Error(r.kty));if(!(r.crv&&r.x&&r.y))return n.Log.error("JoseUtil.validateJwt: EC key missing key material",r),Promise.reject(new Error("EC key missing key material"));r=i.getKey(r)}return t._validateJwt(e,r,o,c,u,l,h)}catch(t){return n.Log.error(t&&t.message||t),Promise.reject("JWT validation failed")}},t.validateJwtAttributes=function(e,i,s,r,o,a){r||(r=0),o||(o=parseInt(Date.now()/1e3));var c=t.parseJwt(e).payload;if(!c.iss)return n.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(c.iss!==i)return n.Log.error("JoseUtil._validateJwt: Invalid issuer in token",c.iss),Promise.reject(new Error("Invalid issuer in token: "+c.iss));if(!c.aud)return n.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(c.aud===s||Array.isArray(c.aud)&&c.aud.indexOf(s)>=0))return n.Log.error("JoseUtil._validateJwt: Invalid audience in token",c.aud),Promise.reject(new Error("Invalid audience in token: "+c.aud));if(c.azp&&c.azp!==s)return n.Log.error("JoseUtil._validateJwt: Invalid azp in token",c.azp),Promise.reject(new Error("Invalid azp in token: "+c.azp));if(!a){var u=o+r,l=o-r;if(!c.iat)return n.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(u>>((3&e)<<3)&255;return s}}},function(t,e){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninResponse=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"#";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=s.UrlUtility.parseUrlFragment(e,i);this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.code=n.code,this.state=n.state,this.id_token=n.id_token,this.session_state=n.session_state,this.access_token=n.access_token,this.token_type=n.token_type,this.scope=n.scope,this.profile=void 0,this.expires_in=n.expires_in}return n(t,[{key:"expires_in",get:function(){if(this.expires_at){var t=parseInt(Date.now()/1e3);return this.expires_at-t}},set:function(t){var e=parseInt(t);if("number"==typeof e&&e>0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutRequest=void 0;var n=i(0),s=i(3),r=i(8);e.SignoutRequest=function t(e){var i=e.url,o=e.id_token_hint,a=e.post_logout_redirect_uri,c=e.data,u=e.extraQueryParams,l=e.request_type;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var h in o&&(i=s.UrlUtility.addQueryParam(i,"id_token_hint",o)),a&&(i=s.UrlUtility.addQueryParam(i,"post_logout_redirect_uri",a),c&&(this.state=new r.State({data:c,request_type:l}),i=s.UrlUtility.addQueryParam(i,"state",this.state.id))),u)i=s.UrlUtility.addQueryParam(i,h,u[h]);this.url=i}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutResponse=void 0;var n=i(3);e.SignoutResponse=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=n.UrlUtility.parseUrlFragment(e,"?");this.error=i.error,this.error_description=i.error_description,this.error_uri=i.error_uri,this.state=i.state}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryWebStorage=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.SilentRenewService,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.SessionMonitor,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.TokenRevocationClient,p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d.TokenClient,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:f.JoseUtil;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i instanceof o.UserManagerSettings||(i=new o.UserManagerSettings(i));var m=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return m._events=new c.UserManagerEvents(i),m._silentRenewService=new n(m),m.settings.automaticSilentRenew&&(s.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),m.startSilentRenew()),m.settings.monitorSession&&(s.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),m._sessionMonitor=new r(m)),m._tokenRevocationClient=new a(m._settings),m._tokenClient=new p(m._settings),m._joseUtil=g,m}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getUser=function(){var t=this;return this._loadUser().then(function(e){return e?(s.Log.info("UserManager.getUser: user loaded"),t._events.load(e,!1),e):(s.Log.info("UserManager.getUser: user not found in storage"),null)})},e.prototype.removeUser=function(){var t=this;return this.storeUser(null).then(function(){s.Log.info("UserManager.removeUser: user removed from storage"),t._events.unload()})},e.prototype.signinRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:r";var e={useReplaceToNavigate:t.useReplaceToNavigate};return this._signinStart(t,this._redirectNavigator,e).then(function(){s.Log.info("UserManager.signinRedirect: successful")})},e.prototype.signinRedirectCallback=function(t){return this._signinEnd(t||this._redirectNavigator.url).then(function(t){return t.profile&&t.profile.sub?s.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinRedirectCallback: no sub"),t})},e.prototype.signinPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:p";var e=t.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.display="popup",this._signin(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinPopup: no sub")),t})):(s.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},e.prototype.signinPopupCallback=function(t){return this._signinCallback(t,this._popupNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinPopupCallback: no sub")),t}).catch(function(t){s.Log.error(t.message)})},e.prototype.signinSilent=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).request_type="si:s",this._loadUser().then(function(i){return i&&i.refresh_token?(e.refresh_token=i.refresh_token,t._useRefreshToken(e)):(e.id_token_hint=e.id_token_hint||t.settings.includeIdTokenInSilentRenew&&i&&i.id_token,i&&t._settings.validateSubOnSilentRenew&&(s.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",i.profile.sub),e.current_sub=i.profile.sub),t._signinSilentIframe(e))})},e.prototype._useRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(e).then(function(e){return e?e.access_token?t._loadUser().then(function(i){if(i){var n=Promise.resolve();return e.id_token&&(n=t._validateIdTokenFromTokenRefreshToken(i.profile,e.id_token)),n.then(function(){return s.Log.debug("UserManager._useRefreshToken: refresh token response success"),i.id_token=e.id_token,i.access_token=e.access_token,i.refresh_token=e.refresh_token||i.refresh_token,i.expires_in=e.expires_in,t.storeUser(i).then(function(){return t._events.load(i),i})})}return null}):(s.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(s.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))})},e.prototype._validateIdTokenFromTokenRefreshToken=function(t,e){var i=this;return this._metadataService.getIssuer().then(function(n){return i._joseUtil.validateJwtAttributes(e,n,i._settings.client_id,i._settings.clockSkew).then(function(e){return e?e.sub!==t.sub?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):e.auth_time&&e.auth_time!==t.auth_time?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):e.azp&&e.azp!==t.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!e.azp&&t.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))})})},e.prototype._signinSilentIframe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.prompt=t.prompt||"none",this._signin(t,this._iframeNavigator,{startUrl:e,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinSilent: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinSilent: no sub")),t})):(s.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype.signinSilentCallback=function(t){return this._signinCallback(t,this._iframeNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinSilentCallback: no sub")),t})},e.prototype.signinCallback=function(t){var e=this;return this.readSigninResponseState(t).then(function(i){var n=i.state;return"si:r"===n.request_type?e.signinRedirectCallback(t):"si:p"===n.request_type?e.signinPopupCallback(t):"si:s"===n.request_type?e.signinSilentCallback(t):Promise.reject(new Error("invalid response_type in state"))})},e.prototype.signoutCallback=function(t,e){var i=this;return this.readSignoutResponseState(t).then(function(n){var s=n.state,r=n.response;return s?"so:r"===s.request_type?i.signoutRedirectCallback(t):"so:p"===s.request_type?i.signoutPopupCallback(t,e):Promise.reject(new Error("invalid response_type in state")):r})},e.prototype.querySessionStatus=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:s";var i=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return i?(e.redirect_uri=i,e.prompt="none",e.response_type=e.response_type||this.settings.query_status_response_type,e.scope=e.scope||"openid",e.skipUserInfo=!0,this._signinStart(e,this._iframeNavigator,{startUrl:i,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(e){return t.processSigninResponse(e.url).then(function(t){if(s.Log.debug("UserManager.querySessionStatus: got signin response"),t.session_state&&t.profile.sub)return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",t.profile.sub),{session_state:t.session_state,sub:t.profile.sub,sid:t.profile.sid};s.Log.info("querySessionStatus successful, user not authenticated")}).catch(function(e){if(e.session_state&&t.settings.monitorAnonymousSession&&("login_required"==e.message||"consent_required"==e.message||"interaction_required"==e.message||"account_selection_required"==e.message))return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:e.session_state};throw e})})):(s.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype._signin=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(t,e,n).then(function(e){return i._signinEnd(e.url,t)})},e.prototype._signinStart=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.prepare(n).then(function(e){return s.Log.debug("UserManager._signinStart: got navigator window handle"),i.createSigninRequest(t).then(function(t){return s.Log.debug("UserManager._signinStart: got signin request"),n.url=t.url,n.id=t.state.id,e.navigate(n)}).catch(function(t){throw e.close&&(s.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),e.close()),t})})},e.prototype._signinEnd=function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(t).then(function(t){s.Log.debug("UserManager._signinEnd: got signin response");var n=new a.User(t);if(i.current_sub){if(i.current_sub!==n.profile.sub)return s.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",n.profile.sub),Promise.reject(new Error("login_required"));s.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return e.storeUser(n).then(function(){return s.Log.debug("UserManager._signinEnd: user stored"),e._events.load(n),n})})},e.prototype._signinCallback=function(t,e){return s.Log.debug("UserManager._signinCallback"),e.callback(t)},e.prototype.signoutRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:r";var e=t.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;e&&(t.post_logout_redirect_uri=e);var i={useReplaceToNavigate:t.useReplaceToNavigate};return this._signoutStart(t,this._redirectNavigator,i).then(function(){s.Log.info("UserManager.signoutRedirect: successful")})},e.prototype.signoutRedirectCallback=function(t){return this._signoutEnd(t||this._redirectNavigator.url).then(function(t){return s.Log.info("UserManager.signoutRedirectCallback: successful"),t})},e.prototype.signoutPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:p";var e=t.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return t.post_logout_redirect_uri=e,t.display="popup",t.post_logout_redirect_uri&&(t.state=t.state||{}),this._signout(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(){s.Log.info("UserManager.signoutPopup: successful")})},e.prototype.signoutPopupCallback=function(t,e){return void 0===e&&"boolean"==typeof t&&(e=t,t=null),this._popupNavigator.callback(t,e,"?").then(function(){s.Log.info("UserManager.signoutPopupCallback: successful")})},e.prototype._signout=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(t,e,n).then(function(t){return i._signoutEnd(t.url)})},e.prototype._signoutStart=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,i=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.prepare(n).then(function(i){return s.Log.debug("UserManager._signoutStart: got navigator window handle"),e._loadUser().then(function(r){return s.Log.debug("UserManager._signoutStart: loaded current user from storage"),(e._settings.revokeAccessTokenOnSignout?e._revokeInternal(r):Promise.resolve()).then(function(){var o=t.id_token_hint||r&&r.id_token;return o&&(s.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),t.id_token_hint=o),e.removeUser().then(function(){return s.Log.debug("UserManager._signoutStart: user removed, creating signout request"),e.createSignoutRequest(t).then(function(t){return s.Log.debug("UserManager._signoutStart: got signout request"),n.url=t.url,t.state&&(n.id=t.state.id),i.navigate(n)})})})}).catch(function(t){throw i.close&&(s.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),i.close()),t})})},e.prototype._signoutEnd=function(t){return this.processSignoutResponse(t).then(function(t){return s.Log.debug("UserManager._signoutEnd: got signout response"),t})},e.prototype.revokeAccessToken=function(){var t=this;return this._loadUser().then(function(e){return t._revokeInternal(e,!0).then(function(i){if(i)return s.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),e.access_token=null,e.refresh_token=null,e.expires_at=null,e.token_type=null,t.storeUser(e).then(function(){s.Log.debug("UserManager.revokeAccessToken: user stored"),t._events.load(e)})})}).then(function(){s.Log.info("UserManager.revokeAccessToken: access token revoked successfully")})},e.prototype._revokeInternal=function(t,e){var i=this;if(t){var n=t.refresh_token;return this._revokeAccessTokenInternal(t.access_token,e).then(function(t){return i._revokeRefreshTokenInternal(n,e).then(function(e){return t||e||s.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),t||e})})}return Promise.resolve(!1)},e.prototype._revokeAccessTokenInternal=function(t,e){return!t||t.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(t,e).then(function(){return!0})},e.prototype._revokeRefreshTokenInternal=function(t,e){return t?this._tokenRevocationClient.revoke(t,e,"refresh_token").then(function(){return!0}):Promise.resolve(!1)},e.prototype.startSilentRenew=function(){this._silentRenewService.start()},e.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},e.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then(function(t){return t?(s.Log.debug("UserManager._loadUser: user storageString loaded"),a.User.fromStorageString(t)):(s.Log.debug("UserManager._loadUser: no user storageString"),null)})},e.prototype.storeUser=function(t){if(t){s.Log.debug("UserManager.storeUser: storing user");var e=t.toStorageString();return this._userStore.set(this._userStoreKey,e)}return s.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},n(e,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),e}(r.OidcClient)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserManagerSettings=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.popup_redirect_uri,s=i.popup_post_logout_redirect_uri,h=i.popupWindowFeatures,d=i.popupWindowTarget,f=i.silent_redirect_uri,p=i.silentRequestTimeout,g=i.automaticSilentRenew,m=void 0!==g&&g,_=i.validateSubOnSilentRenew,y=void 0!==_&&_,w=i.includeIdTokenInSilentRenew,b=void 0===w||w,v=i.monitorSession,A=void 0===v||v,k=i.monitorAnonymousSession,T=void 0!==k&&k,C=i.checkSessionInterval,S=void 0===C?2e3:C,M=i.stopCheckSessionOnError,E=void 0===M||M,x=i.query_status_response_type,R=i.revokeAccessTokenOnSignout,D=void 0!==R&&R,P=i.accessTokenExpiringNotificationTime,L=void 0===P?60:P,z=i.redirectNavigator,I=void 0===z?new r.RedirectNavigator:z,F=i.popupNavigator,H=void 0===F?new o.PopupNavigator:F,O=i.iframeNavigator,B=void 0===O?new a.IFrameNavigator:O,j=i.userStore,Y=void 0===j?new c.WebStorageStateStore({store:u.Global.sessionStorage}):j;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var N=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));return N._popup_redirect_uri=n,N._popup_post_logout_redirect_uri=s,N._popupWindowFeatures=h,N._popupWindowTarget=d,N._silent_redirect_uri=f,N._silentRequestTimeout=p,N._automaticSilentRenew=m,N._validateSubOnSilentRenew=y,N._includeIdTokenInSilentRenew=b,N._accessTokenExpiringNotificationTime=L,N._monitorSession=A,N._monitorAnonymousSession=T,N._checkSessionInterval=S,N._stopCheckSessionOnError=E,N._query_status_response_type=x||(arguments[0]&&arguments[0].response_type?l.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":"id_token"),N._revokeAccessTokenOnSignout=D,N._redirectNavigator=I,N._popupNavigator=H,N._iframeNavigator=B,N._userStore=Y,N}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),e}(s.OidcClientSettings)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RedirectNavigator=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1])||arguments[1];n.Log.debug("UserManagerEvents.load"),t.prototype.load.call(this,e),i&&this._userLoaded.raise(e)},e.prototype.unload=function(){n.Log.debug("UserManagerEvents.unload"),t.prototype.unload.call(this),this._userUnloaded.raise()},e.prototype.addUserLoaded=function(t){this._userLoaded.addHandler(t)},e.prototype.removeUserLoaded=function(t){this._userLoaded.removeHandler(t)},e.prototype.addUserUnloaded=function(t){this._userUnloaded.addHandler(t)},e.prototype.removeUserUnloaded=function(t){this._userUnloaded.removeHandler(t)},e.prototype.addSilentRenewError=function(t){this._silentRenewError.addHandler(t)},e.prototype.removeSilentRenewError=function(t){this._silentRenewError.removeHandler(t)},e.prototype._raiseSilentRenewError=function(t){n.Log.debug("UserManagerEvents._raiseSilentRenewError",t.message),this._silentRenewError.raise(t)},e.prototype.addUserSignedIn=function(t){this._userSignedIn.addHandler(t)},e.prototype.removeUserSignedIn=function(t){this._userSignedIn.removeHandler(t)},e.prototype._raiseUserSignedIn=function(){n.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},e.prototype.addUserSignedOut=function(t){this._userSignedOut.addHandler(t)},e.prototype.removeUserSignedOut=function(t){this._userSignedOut.removeHandler(t)},e.prototype._raiseUserSignedOut=function(){n.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},e.prototype.addUserSessionChanged=function(t){this._userSessionChanged.addHandler(t)},e.prototype.removeUserSessionChanged=function(t){this._userSessionChanged.removeHandler(t)},e.prototype._raiseUserSessionChanged=function(){n.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},e}(s.AccessTokenEvents)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:r.Global.timer,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return o._timer=n,o._nowFunc=s||function(){return Date.now()/1e3},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.init=function(t){t<=0&&(t=1),t=parseInt(t);var e=this.now+t;if(this.expiration===e&&this._timerHandle)s.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),s.Log.debug("Timer.init timer "+this._name+" for duration:",t),this._expiration=e;var i=5;t{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,i,n,s){n=n||"=";var r={};if("string"!=typeof t||0===t.length)return r;var o=/\+/g;t=t.split(i=i||"&");var a=1e3;s&&"number"==typeof s.maxKeys&&(a=s.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var u=0;u=0?(l=p.substr(0,g),h=p.substr(g+1)):(l=p,h=""),d=decodeURIComponent(l),f=decodeURIComponent(h),e(r,d)?Array.isArray(r[d])?r[d].push(f):r[d]=[r[d],f]:r[d]=f}return r}},5341:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,s){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(s){var r=encodeURIComponent(e(s))+n;return Array.isArray(t[s])?t[s].map(function(t){return r+encodeURIComponent(e(t))}).join(i):r+encodeURIComponent(e(t[s]))}).join(i):s?encodeURIComponent(e(s))+n+encodeURIComponent(e(t)):""}},6577:(t,e,i)=>{"use strict";i(963),i(5341)},6700:(t,e,i)=>{var n={"./af":776,"./af.js":776,"./ar":7634,"./ar-dz":2758,"./ar-dz.js":2758,"./ar-kw":4980,"./ar-kw.js":4980,"./ar-ly":9602,"./ar-ly.js":9602,"./ar-ma":2500,"./ar-ma.js":2500,"./ar-sa":6909,"./ar-sa.js":6909,"./ar-tn":2735,"./ar-tn.js":2735,"./ar.js":7634,"./az":7798,"./az.js":7798,"./be":9949,"./be.js":9949,"./bg":4590,"./bg.js":4590,"./bm":5938,"./bm.js":5938,"./bn":595,"./bn.js":595,"./bo":4756,"./bo.js":4756,"./br":7277,"./br.js":7277,"./bs":4166,"./bs.js":4166,"./ca":3943,"./ca.js":3943,"./cs":3474,"./cs.js":3474,"./cv":2218,"./cv.js":2218,"./cy":1061,"./cy.js":1061,"./da":2743,"./da.js":2743,"./de":1899,"./de-at":8580,"./de-at.js":8580,"./de-ch":3264,"./de-ch.js":3264,"./de.js":1899,"./dv":8784,"./dv.js":8784,"./el":4654,"./el.js":4654,"./en-SG":4047,"./en-SG.js":4047,"./en-au":6277,"./en-au.js":6277,"./en-ca":6896,"./en-ca.js":6896,"./en-gb":1609,"./en-gb.js":1609,"./en-ie":4557,"./en-ie.js":4557,"./en-il":5836,"./en-il.js":5836,"./en-nz":3586,"./en-nz.js":3586,"./eo":2777,"./eo.js":2777,"./es":3357,"./es-do":3128,"./es-do.js":3128,"./es-us":3256,"./es-us.js":3256,"./es.js":3357,"./et":2654,"./et.js":2654,"./eu":7287,"./eu.js":7287,"./fa":3875,"./fa.js":3875,"./fi":3431,"./fi.js":3431,"./fo":1781,"./fo.js":1781,"./fr":1717,"./fr-ca":1539,"./fr-ca.js":1539,"./fr-ch":9847,"./fr-ch.js":9847,"./fr.js":1717,"./fy":2250,"./fy.js":2250,"./ga":7665,"./ga.js":7665,"./gd":5214,"./gd.js":5214,"./gl":6154,"./gl.js":6154,"./gom-latn":8518,"./gom-latn.js":8518,"./gu":9221,"./gu.js":9221,"./he":4743,"./he.js":4743,"./hi":7339,"./hi.js":7339,"./hr":3224,"./hr.js":3224,"./hu":856,"./hu.js":856,"./hy-am":6855,"./hy-am.js":6855,"./id":2190,"./id.js":2190,"./is":3887,"./is.js":3887,"./it":9270,"./it-ch":5890,"./it-ch.js":5890,"./it.js":9270,"./ja":6595,"./ja.js":6595,"./jv":3081,"./jv.js":3081,"./ka":7477,"./ka.js":7477,"./kk":3978,"./kk.js":3978,"./km":9205,"./km.js":9205,"./kn":25,"./kn.js":25,"./ko":427,"./ko.js":427,"./ku":9089,"./ku.js":9089,"./ky":9314,"./ky.js":9314,"./lb":3136,"./lb.js":3136,"./lo":9115,"./lo.js":9115,"./lt":7087,"./lt.js":7087,"./lv":5683,"./lv.js":5683,"./me":9454,"./me.js":9454,"./mi":5507,"./mi.js":5507,"./mk":8466,"./mk.js":8466,"./ml":2933,"./ml.js":2933,"./mn":9477,"./mn.js":9477,"./mr":3597,"./mr.js":3597,"./ms":5529,"./ms-my":9965,"./ms-my.js":9965,"./ms.js":5529,"./mt":259,"./mt.js":259,"./my":8061,"./my.js":8061,"./nb":2618,"./nb.js":2618,"./ne":8452,"./ne.js":8452,"./nl":1885,"./nl-be":413,"./nl-be.js":413,"./nl.js":1885,"./nn":5107,"./nn.js":5107,"./pa-in":702,"./pa-in.js":702,"./pl":1711,"./pl.js":1711,"./pt":594,"./pt-br":8238,"./pt-br.js":8238,"./pt.js":594,"./ro":4681,"./ro.js":4681,"./ru":6201,"./ru.js":6201,"./sd":2912,"./sd.js":2912,"./se":6002,"./se.js":6002,"./si":7942,"./si.js":7942,"./sk":5577,"./sk.js":5577,"./sl":1775,"./sl.js":1775,"./sq":6823,"./sq.js":6823,"./sr":9038,"./sr-cyrl":3848,"./sr-cyrl.js":3848,"./sr.js":9038,"./ss":6173,"./ss.js":6173,"./sv":5788,"./sv.js":5788,"./sw":6882,"./sw.js":6882,"./ta":2678,"./ta.js":2678,"./te":2797,"./te.js":2797,"./tet":2447,"./tet.js":2447,"./tg":1335,"./tg.js":1335,"./th":8667,"./th.js":8667,"./tl-ph":9914,"./tl-ph.js":9914,"./tlh":1389,"./tlh.js":1389,"./tr":3578,"./tr.js":3578,"./tzl":6969,"./tzl.js":6969,"./tzm":6509,"./tzm-latn":690,"./tzm-latn.js":690,"./tzm.js":6509,"./ug-cn":55,"./ug-cn.js":55,"./uk":2452,"./uk.js":2452,"./ur":1151,"./ur.js":1151,"./uz":1555,"./uz-latn":6547,"./uz-latn.js":6547,"./uz.js":1555,"./vi":6541,"./vi.js":6541,"./x-pseudo":2401,"./x-pseudo.js":2401,"./yo":2341,"./yo.js":2341,"./zh-cn":619,"./zh-cn.js":619,"./zh-hk":7058,"./zh-hk.js":7058,"./zh-tw":2782,"./zh-tw.js":2782};function s(t){var e=r(t);return i(e)}function r(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}s.keys=function(){return Object.keys(n)},s.resolve=r,t.exports=s,s.id=6700},306:t=>{"use strict";t.exports={i8:"1.1.0"}}},t=>{"use strict";t(t.s=9390)}]); \ No newline at end of file diff --git a/dist/apps/user-profile/assets/config/defaultConfig.json b/dist/apps/user-profile/assets/config/defaultConfig.json index 35b71fcc4..a397dd257 100644 --- a/dist/apps/user-profile/assets/config/defaultConfig.json +++ b/dist/apps/user-profile/assets/config/defaultConfig.json @@ -1,6 +1,8 @@ { "logo": "image/svg+xml\n\n\t.st0{fill:#FFFFFF;}\n\n\n\n\t\n\t\n\n", "api_url": "https://perun-dev.cesnet.cz/oauth/rpc/", + "document_title": "User Profile", + "isInstanceFaviconContained": false, "auto_auth_redirect": true, "supportedLanguages": [ "en" @@ -59,7 +61,8 @@ "security_image_attribute": "urn:perun:user:attribute-def:def:securityImage:mu", "enforce_mfa_attribute": "urn:perun:user:attribute-def:def:mfaEnforced:mu", "tokens_attribute": "urn:perun:user:attribute-def:def:mfaTokens:mu", - "register_totp_url": "https://id.muni.cz/simplesaml/module.php/muni/register-totp.php" + "register_totp_url": "https://id.muni.cz/simplesaml/module.php/muni/register-totp.php", + "webauthn_url": "https://id.muni.cz/webauthn/oidc_credentials" }, "display_identity_certificates": true, "external_services": [ @@ -138,17 +141,17 @@ "title_cs": "O NÁS", "elements": [ { - "link": "https://perun-aai.org/", + "link_en": "https://perun-aai.org/", "label_en": "Perun web", "label_cs": "Perun web" }, { - "link": "https://perun-aai.org/team", + "link_en": "https://perun-aai.org/team", "label_en": "Perun team", "label_cs": "Perun tým" }, { - "link": "https://perun-aai.org/", + "link_en": "https://perun-aai.org/", "label_en": "Privacy policy", "label_cs": "Ochrana osobních údajů" } @@ -159,12 +162,12 @@ "title_cs": "POMOC", "elements": [ { - "link": "https://perun-aai.org/documentation/users-documentation", + "link_en": "https://perun-aai.org/documentation/users-documentation", "label_en": "Documentation", "label_cs": "Dokumentace" }, { - "link": "https://perun-aai.org/documentation/technical-documentation", + "link_en": "https://perun-aai.org/documentation/technical-documentation", "label_en": "API Documentation", "label_cs": "Dokumentace API" }, @@ -181,7 +184,7 @@ "elements": [ { "icon": "mail", - "link": "", + "link_en": "", "label_en": "perun@cesnet.cz", "label_cs": "perun@cesnet.cz" } diff --git a/dist/apps/user-profile/assets/i18n/cs.json b/dist/apps/user-profile/assets/i18n/cs.json index 205ebcbd1..bed64becb 100644 --- a/dist/apps/user-profile/assets/i18n/cs.json +++ b/dist/apps/user-profile/assets/i18n/cs.json @@ -149,7 +149,7 @@ "ADDED": "Přidáno", "USED": "Naposledy použito", "NO_TOKENS": "Nemáte žádné tokeny pro multi-factor authentication.", - "ADD_WEBAUTHN": "Přidat zařízení Webauthn", + "ADD_WEBAUTHN": "Přidat Webauthn autentikátor", "ADD_TOTP": "Přidat zařízení TOTP" }, "DIALOGS": { diff --git a/dist/apps/user-profile/assets/i18n/en.json b/dist/apps/user-profile/assets/i18n/en.json index e04f98c9a..214c03619 100644 --- a/dist/apps/user-profile/assets/i18n/en.json +++ b/dist/apps/user-profile/assets/i18n/en.json @@ -149,7 +149,7 @@ "ADDED": "Added", "USED": "Used", "NO_TOKENS": "You don't have any tokens for multi-factor authentication", - "ADD_WEBAUTHN": "Add Webauthn device", + "ADD_WEBAUTHN": "Add Webauthn authenticator", "ADD_TOTP": "Add TOTP device" }, "DIALOGS": { diff --git a/dist/apps/user-profile/assets/img/perun.ico b/dist/apps/user-profile/assets/img/perun.ico new file mode 100644 index 0000000000000000000000000000000000000000..167b0c7f70c0cb7b0cc4aa283913a18c3dcfdb7f GIT binary patch literal 4286 zcmbVPc~n%_8UMZ68IVN;S+r<_8yfXgW8+DzTiR;sTE!H?E(ppN6}M`Qrdo3-Jt#{B z0Z~9e0a3wyiA%I9Zs$Z}QZ?>2E{L)SGtA8Gci+q#1_b}e<^1N}ci(rv-?!a+AAmrA zefog^qSP612QZL8Qy53!^S`uB>mgGH`=UqBm1~Fk_knBhKtXMoJsTYM8VJ(3WB*I} zq;*^$Z?k$Ut zYLcw2o{*t%^h_(5Azaee{${xA2ZNo_Yrc(!z0h#Z1K~z^7``tr7$o zZ=J^GUEI<;TW&s{q=jnO2p?ZuHr~aB=7)hZd*!4CqH*(Fuq{zw*=Cr?j$?lhkoos} zZ-67f1kxubh<0$@l5c$6u}SYFZh9{a=`lv;YxlkiSf_{_f)U=C8RzgFV~Vr2O-rZa zby_eOx52_M^{tr^xVs@xHWwJL#DEDJ=b^ni%}ZxC*x7jqTCD@w-Cg15=HR^WPs-n> zhYCd*#FIQ3I^1A7Ts1P~si*ZxpS!-<6atnN+1`dN^UTj=$IY*1D`rg^VdqV|LJ7yd zJRWbw!PaLe)e4|MvD#lTjn*Hb_`b;@eK}DuZ4LtKot}0d*BHZ9#da|R@v}~q&Ao`9XAKRMb zzo*7sl{8KMF_+D=AeVX$?o)OoOdEofx^9PWHR2*O;sV)lk(s(xUU{7u>{*{dx#0E4 z<)!sfpG$UdYzz^Kfj=tS*vjN9 zn~eAm*+H;Bc)M{?kb8Y*sM%KA^|s^eDB(M*1$#@p#agh8X}_#e@S3re=VM-9DZz5n zn$PSFYyPY>Et-HjTwu*2_c`LXz@hBg%f;bd_1O`Y7})qA>7>})`N&V}LH@TpALv=! zBYE?|@)xuRujkc~ZcROljy&_t%&8x{BCx<1A}J4Kq6IzumAr z_PzQ7%0Wjx{F!3gl<=uym`s3pesbR}{wr3`l>aWj6MjCI5e%c(-t$ekL~*~uV{hgr zexo+;#QlJkvl_>yepNSUYh|5B*6w@jBkiAV>)?lE&#GCnspPNq9x?N~DbpiR&AGO9 zf?Uc$Nc6BLV&2a(1I`dmvsRp@8aT~bVk3NCB9EcDT5#Hbs$ccO>ev?)Yb z4!BwQdr~goHN=5x^;&1#d@i4InHva(s{0SQ&%{am#C_7#ijz$5SpH*ON~lJcN4e^h zSF(lYAPV0CKgk9S8Dl=11;|6jIrQHegP*(N=kt6IhQ^J4MZW8Cip~JeeZr*2ae6+^ zbd#3`zR06}@-7|x9p9h8Sh>u(yI6CA5~^i0HNP()+X}lvtl6*RFs;sR|Dz`2*5ic8 ztH)8YLj-GF65#N3E7?i9Oog? z8l0K?9N$p$GMM?4aALutOfg7)8`AuKhLK#tD_#=J&LQ z`$q3|JK~_XfRA-M;-Ta7S@WPz4?=6QKXl2{Vd$Nl{eW_Az!A!W$ZgVLzlr!c*vqs4 z)KRUs@U^xmBAo>U;=41tpWtHVcT#ML61En`;Wf#=v?30*G*?Txe3?5JuZMsAkGuW< zmHlkY^7+p`PKO+8TxMAb#Ge?UKGU=NQW&*XG40Ju$X_= z@xAY?Rw_U6^>8hikCVj-c(fw{585Ff_es~oxB!>yRQpD%JBmB;9U?9s^FyrFb>qI9 z6W1>MZ@=_iKWPeXJwip}i@zrN{ZJf_2ZZ|)D4tI;!i8nP98G^$C!6m9CzbyQZ6C_@ z6_UA0_+CPB9KJ7{j~hinxFeK5en@_|T74GdZPeNCdeV>t(m0=?Vazf=R3J3x@p zR#b0}lEs$B;~e1|TTmUGT076{oMQK@I!m3kpo(f>A7L-qaF7|oBS)Uu9*xtMbtkAl zQ9>w=#i7Mh)V>NwE&oR5HE(U)e+jN0Jt-~;%A6SC%aTMKpg2@h3`9^|s&hke&@<=c z9jY_Eg}X)M-b*%AGM#4o<439C>Z4R+2Pg(rrHQB_Jypp8!Y4$?{kGn_Rs$>p$p+e& zO8*aCJxIr8MqN~sPif+C0S;l5gV_mJX*ep1&1-k2 zhRJ6Dlhg`VCB;{Yb$fQsExj|3-IdXkHT@}vIb{p6wPGRi$`>Jz{K?<>8H!N&zk62x zO5!gk{&JDOnfit$Vcw-B3s967BP2LF{K{ec`;)BqeS7A&pE$o(%#n|3U4Z<<>LjF9 zFGaeDB}gxeMb4Dv5mn%R@3#2Oxh3podY9bmw^9R@Nj_dKJ%C|itxG<>&Db_0$?#r9 z|3^{Ev~&(mJ&=TDRg1B-not&xmFwdCHpt4FYQ>mKyf(d1X4GrHJ{?AvjP;(Ebhoi} zJ!+Gc$+a4-W~2`s2YJF}fCpTLdZ7DgCESFPH~Ua-d`x)s7Aj1SQPz4pEOeEsZe?n_ zdheRG>o?q*^lMc`<6BVDyrNv!uUpYw?Kn2ROMWJ`mtz^b=R}Y*wg&WZ whp{by6G6@K$_DpnOpx2+B-M)rd|s62>kV|da$STk>7#>m3yc{ECK^-wKiCXb@c;k- literal 0 HcmV?d00001 diff --git a/dist/apps/user-profile/assets/img/webauthn-logo-black.png b/dist/apps/user-profile/assets/img/webauthn-logo-black.png deleted file mode 100644 index db7a146ef9e80d49983d2941cf40bac501e0535d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 232769 zcmeFZc{tST`v5%leVJrQmN7a=NMtGd5^YjMC``pDyJX+SK9Z%Q#biq&yD5!*8B0;7 zsO-WNA?p-lU*6}VbK>`X|9jtm&vRW}GiIL8eLv5=Z&S?qbA}wOf~+tYjN{ZveG?cA z&IE(8*Dy1JPlTdh3xXFG_mh^MFqoV;^pD0jTgw{;L%>ey>s<6ro&Iu!2K><^Pplum znq_z`Gi0ue4m|UJ)`Ggx|M?sI@#L)#{r`UUl%(^&A0giTx9$JXLxKOSj-~E3j2&R2#P*myfG&Uj4IoU0)eNWgE#kJ#6?(}U2 zC}rBYIPy2W#s+M)oGdsgoP(X4dcVisB3Dj5o_B*9Bpi zb1~unb1<0p^XC6o0qTkAH^l$$>p1Aa{lA}0+*f7(-_LHJ{(l#*j{n6;`@j3r_At@> z&u9M~5B4AR{*yh}f2#4HVfoK2!~TDHjZM3&JKn|nFf#tk!Fh+eL`${wd4kqj=djl; z?K8n^jl)alPg~ahs@Jj`>)Djqeu5YsLpo~x=V8noH{AI3aX#a9j(NUWf#a`KTkgB0 zv)qxfr5tO3Z*L=?*yTboZ)31mTSqERsHd-ad5uY5rT0-1RPasi>IqK68J{@0{RD zOOK}JOGgSi#pGT7#$R0RL8-VySx_4bh8cwK^01nnS>%?dX$hA{vmQS%Iaf$~d#>*O zOIO>`e1;QIV)wkz#j>E&1y;@BU4EWy#`rPe>csWsO4Fpsw^c62ff~$rWXdym;M=|% z^N42`icJKPZ^m<=x1~_H3l~E(hcZ2FNvO|B7iBzhFPd~^pTahL>`nwi9Mx}DUjC`N zenCsq>jW&V(#7_JGUC_elLr)g_}HM`7(K~dbYhYK2=-}cW>`9rVS_#ATgl6^h`(`% z*f^oR#JXLF!DxtY(on3GW%*tP2ilGGOKqQbB5hZ^a$5q4&c6Tk$l+|E^7(sITHi}c zvVtabNUrSr_8V=Ao;OJlRM>*{E{c1jxM6)!T6{BsjvBD47dJm9Qsogyq3z&?n7m60 z$l=Twn9$L$ze6Siv0b-tI%v^Qa}WaV8uB@QC_WY;ewtp0q#%nTFmch(boDhBO>eLk>rTB1%Y){hNC8aTp3 zLqmpPqqcXPjo3v;CNU&hcKro64GpSs_Ogs!Wn7fq*gJ;po8aqr(WF-meuN#fTott!{?s;=6p%z9)xwMW(mK zkRpcKlOA?nFw|`yV|_gl89Hba(RG)Q$yZ@5)bC(Ytr%bv{Tm3rmwVZ_k0y|?>kgu) zndxDi-6N>hHjE}I}v&9rxfEYyIL9yo#&dAz%NuNgcYNQ+>r!#1oE0P7SlP>*-s1O zxjlSMte#O%!Sg#30tZ{f?NF1Leh2HqY!{&U;vozcg71scojj)a$Y8tkJf$QWp@1z;ztjwT<&c^G^h=NxMTg3yj?Kg<#QI(f|pL()P|> z9Kdk0UqcLxbXLJ&)1+-yvuzX4`_zsKqnMD_x{(OaBit~|Y|L+~suAlcl#0l9qFJ8t7TOh9iLduTF;rJf5Cfx&K%2k&Ri8z%+g^`U+8vOAJWe5T)A6RGXEca$_q2g5teGG-=b zzlPKg)3nQG3%$asx{4*baF4d$p@X?2l$G`K{ z^2U)w(*lsB+IrcFiz)H_jZ-mTfVS>-q`ho#k1MB-xgAOL*L-;k2BSFIGQLP89Dzu! zy~~1OTu(IDyw;XGeek(CK(5(r9T#!mq*&3@z8M19!M}5zCx_r3HUQ*>M4ke0w5Z>!+XT~;Uy*y7kw zpn(86(WXK)LigcAb_m*=UH;`R66wfn_c071nFHKnfJ-Sy>yLKi1i=j0yl`3yAc0}t?t~DSm_5)li+6uNlC;Yy@*tsS zgqSn8y}QJ&kc=}G0T8&8BXps=sNUEik2{852Ox;q!@7Mq@(vq_q1+InW#Ql8IKy_% zHvIx?ao_YC@|*;h*m$guv9Bah@hUsx?(-QS-oJeBe2K!z+1u* ztvCWWwtzK9_aph+9!*8qo^zIv;)F+)e_$d3n zAmg!@P#9;u_6aH0^NIGQ5Jax*jWK_++) zqX_PBjB*<80f1$Yfc#+GD)vX{im*fBF6PlLPJpyyo{v7SM&yY?lM3=F~RGB}}lPZ)aj7z9b_d6vMl`^)LuB!x7lHH?W#6&xZKb%4kW=de;_H zbKFX2#@GG8-#-}s`6VP^a=z5$U5p;mi z^hBQ7(+3mg7V85SrlLuK()5iqu~^I4DE9Yf4z`5b+CDUizrqA#?_A=$MBRv7=7-Lu zw{vs(4&`~9S0l~NFkgegnrghqqnZIwUhLO1Id8+Nyng&#FJ%aoa5ueQav)yt@5lfR*En;^tkSyUp{h^Q&I zW&rkYQzHb$z2}&#*gXa2J3;|&4Dydx>+%_OixoUwrXk`)8~@QO%&8kGmWMA3*pcE! zVW#c_=_C2~e^DMzw49lidPX^>c-SCNU1BV;cuGg#t~4}Y{)oB)H@B=gN9}q z-79v8rfT7mGy~3Ak)%PKQs>|FZ6$Tdp#|a8b1NAJfvwe~)Ozw#L&~%i_pf@~%6#u3 zet4;l`lyHYsPl9Q6B*|0c;MOnTMuwfY}=46c0pF1aiu7yVUy|79x)yh&mixPTaKA=S*fOu}E>5Or;z*U@hdP{)jSRSb9~Xbo&D zneYzRICTe31`It#TzAc3nCSETnEwBeV2-E6rW4xqwLAP<`1**UBWcwJ|C_A#5Lp*@S@?h=7uH(mtK2?`OgR&?7uK^F8BU|+xNh>z zjBnH%2A;gi?d`}EnphPY=q=R~$kyUAB1To;FC-}(7z4XrU6h$fs!{d>FfkiDzKLja z2Mg>*q*@alkB16#h_fDID(?%8CK5e!EP?kFH)AH78gsq4 z_R0K6U5TGIdjL2x_l{KIRr<#$KwS4ZCCLyiB!ppp=k$fjajEeOiH(Tc_TY5wIKLy` z3&=S4)-P+uWLVJ6dx`sFA*0cuvO~Zse)za7>n$_^qfvhIV?viaJ(L}X!h@TfX%&kCnRoJY2!ZbQgN7;qtg-gD4~D^Rw2xqAj`q*D=g0-&MfRi%^0~8 z%^qxFooYQ97Js4Izi@mLo$|LE`-BY6z~+|FZK-@}VhQgcU~}hUg7^J&T93`Rd>F`+ z$!QId7QOhz@5f+AGn}NFod8srw(X86O`NXYA27JS8vcN0k!T$oQrQ23?~$+Q43%sv zt~r`fBwV}y7`I9Iv3b&!YI&OyhB@H2`p7cDObf+z?X}X`U+l)hyMRA~^~&xdLWgp- z%|nxOMa&(USLyBgkO*Z`NFoTaEJfoM61C7{)CuFgHe$$P!@Id%89{6*jamk=i1&;? z6IZZWOE8=KH%}*>+8->{L#M6Y#qtlY-VZA=-?}P(pd$tV?m{9C#VQtKE#d@XR}U(d z`1{RL_J}j-YC4QXM(#7z7vj0jgVK=x_C7(Dyq-2?5rsGHS5W?rXCZq^pAFGsXjf7{m*aB0aKAx_x6duI@SqzV zVn6^J7Zv>%a+2|rsDZDE5<4(cUH8Y@zQ#hTd{|uLV}`=~J9{qyt1Di)+ZgWH`b$pxnGPF#!LkZHe2<_-(ktk|kGMH$8CXn;;{1+Lah|=% zr@>ljag+m2tv6>K7H_MwMs+3_=V%np90I2Zek?tNCaw%eX;3Lf{V8zh}8VPX4~XtlXEh^gJxqZ>>+wAonXE zfVanmP0yM4R#JBR+2DKVZN7POL;^$c3Id(Ji}jZXM!}E|aU~N?mBC3hK-sWdzuE8L z_Y84%$Ip$3Z%5DGnLFbD@tRVsj=a7dx9YqwJ7knR(fpJ_CsTvSW}bYBT5NA1P1LBy<}2YgH$yxbecH)`9~WfVnaMDDKE`q-YvtqqOTVk2P2+;UJ>BQX^sqXAx_MO@Ht zmO&PuIXGqVZa7j06I%6k_AsuJoAGPyD}gTRNjhsR4>81k3`8EEnZ=Lo`?;3N(n^{l zr9Lp(>>tX2L9hGZQ+(XeO_T4oo-N?mh6{=VaQF+U>`soOS{9z|B-%kyW#-;=#{I5S4W5G>$^qxi3`v#rwqv~ zNhu~ACB2}PJmk+Q%*q&A(nb>Lo}XepO+A2&H)0XDA3G7*p*|CO^bW^;ha!R&^4nA0 z2ncSOu3ZieVlT9MX*KpfBY0oYT6%wwqT=0w&PIO26BfN0>gUbSawNIHYOE?apL&H| zc@ZI~UD!NZ7q&W2j(JL#G4WML66aSe1)vZmc>dJ;@L!SFN(kNu_R=rYW+Do&Fqm7H zkSlNFaNZHoYWYqJ`GiGx_n9kMg{g_$WHwhv>)ZL-+aRhOy20!AQa0sch`|nZ{xWo$ z$wqOL-Tb9mvq!)+vD=MYI zJ!PbS#jyDTgFU48&OqEs|0N|}$6xB?OvDDMh9<+qTxQ|_zZBcw zD+JbKEiSfxIjPa=FzgxQ6@v}8($YA>LX=#c|M6_=;tf#EfDt<*!hfF?fM+&xAzlIk zGULd!7|b~&s{XJC=jZ(9Ys-mdGpCuKWD^^}+aK4`3ZG*RbMJu^z?uFl;@`)UJ~uN4 zzP67HyCSuBiVr?sM95&`8qsr_(Vmx(G1Q+XbQha*PtH4`)036Ei@Gm8FCs)s&@Jx| zjRg>huXfIH_Oui;g;!T6`Lss)Pzma+mi^d+zUc2U*sSjUl!m`*fs{H`p!vLp4o5`5 zGQ!G-bfIK{gjI7D5uW4x5CRdF`px0p{XbZv=1IVL^mT&GNpO(CizvRvVOBsLJeXVgH zU?7G7-w`jgt`4T8VkRzMFb`*@zd(#%3Xkq72?zZ2MiN!w9=%opY8A~J{zGk~gq*+o zE}s1G0unTEWw4w)jekHA0j=(=ZH2lO3@OyzA@z-X!CZ!L`O+lbyDnk^^l#co^WFVZ z4fVN9a=yh!vPG;djXvrQyw!}%$uy`s=7 zWgIHO%BQ+-SBSt{3@@COHZZ)@QLfrt27QU+a|pZ0n2VE(@p;ZdbNvPF^ri5SA4X0t z!_@Z@xlT_@zNaV4lNEp8wrSAx+V4ZbFdnNPrryX7l&_;ek#+#GL{xko1D%GasDaL^Fn(yVO^}8!-SS4LLZYJ@BBk za(p*k-IHi7IcaAo6G0u^5n`Ep=eaEk1~{r_T?;Iy?ZRFV(>hCM{VCM$l6$qJ^&8%( zAmq0vgvDSAOipp0c(nAUrsZ1gQ9mMo;Ekd*yRkf4h!I+o>8$@s9?&77uGz`M4B^Cg zUtV?Fly?Ug;lqq5`MO;6;rP6B=9JXS%#5MbHd3trhxi4^da9)4Xgyc({Ad->X{9#s zP`dB$Gegv(BD$Zz?y<$@q3@gJAqpMt9aPy~gbzgjJ>T zF`w$Es@ojKaw3w6A$d7(mckEt;&6{8ukL~Wd_qexsGAxxcYk;up=_=pz83H!>1{%$ zt=l+NE~wXP%`faoLvckRcMY2&W4wQ3T z-IU)9M)S0r#Ss5fI#0_B@*S3F5uCsBAY&0v0D0&_H48ay4z3dL&f90*M;(W7nLm={7 zAVd4mbHVIBMrxh^6|K@}mzrXq?vPryOR(Y0C)^e+VqyRZQDw(NP~sxOi0V#M>sz+edw{G2~CQa;!+x|b1b&Ez^BI{ zNz{akptc&It)nj#xM%M*VfGPb7Kjyfr*}Lqu*ad9o5CQh8@F9O(PiP+Zxx`ha=T_q zt=VCWN`E~xI|loi_o(s~kV-VinAzNGH%2Z>4@uoa5N{-Hcm0Lf+)G1S<{wiH8irxI zD5>AK;Ai>MQdkaiBu~c0By=%9oJ^tB+1vxKz4z<;s3|2=SLdk53$IDPNfqJ=J`T$nB7pAePorhMa) zL+=3}R{EP;H;=2QsXrMndt7!-LV%4O4!;y$(v;HOUx$G8vcq5WSXB!Oxw=2Z8J=S) zyP&T=k$G!Bcd(D8m{`x&f^ELfVmK=sypW}hTC6Lz_47Dn`Mtw;09ZIDB?mcH2YcUDt8oMyf^ zM+aQaq?h#B5H)BHj*JjGClW@R^3BUSVJHj85-OVc52wB3fl0a}$_WHji9h4qkW}u< zoir1pntCqHG28m*4Fbv0++r5RRt1YwlW&`|Yo~QUCbprmbzMgce{^GC-*C3Ex+DZs zWf#mhlGR6+GS<){b!~kLv^xDE#cxGA=dXRsn|Pnlg7bsuWRLuI&Hef>d$dUMg zOufju>xQ%<|2baoQ~E;YpSKFX?knd_UD6Y?1rmC2+vXGFx&OFIXN^n*rD=$&oyf{y zdAjt1zEEfJgrbW2;`zkSEN^HJnQ^>zW7_(V5iv{j29BY33r%TIe@Ak9&R#v5NzP`D=743{VeJPaW-(pSGx zWXV#uSe&)VoB;_O7}qulnOR_;a4%PtRw-+ofyBFMN4%9yX3hqy zdr)AcZ+bJ*!FBm#8IB!lX}*&4J%sBo(Na=y58zxC@FEU4zh^`E4WR!NH6my%sXibZ z^CtTpUp}@e?yvpzqx4X%_&2<+E~g~N*-*lnwNS%qEC>rHotID%8|Vh}L&a zhb4wzte1J~+nkl>OFpN6g)6vhGyf~M_Zj^KpD+hHu2mVugj93NmYI}6$av6^n>TGP zaW}l9Z8}La<^zNM{(k`+({5SNWYzse93Si?_~mN?wDO0)BESo@hzpKOKZh=^_c}L( z`1R=NboVtYuE>3VL^!ho`LQ1tDcvcdBUNun8j4)i*^hsgFxKy12VU)*?6MmnN;B;! z`$*1Edk_3Zg{_!abW*W3YEbUb0lV)#pi>8frkUwgw;TS~9+I~z^N6YQUQsrk zA4WF>H~boZR2JprBmtvgn(wsi@9sHm`aTk$g1iQpc#J|m3<9wq47O!qQxromH1xVE z*pK0v@VTmopYZ_uTh6KeH*QUa+ekfMQ+mfUqwd<8CR8sdL1uFPl-HmjhgY-^m;4R1CDa)8BP}R8UAB7T){({F9%eo z%do1BMYa1ZB2q|S2B^oI%5%@-_x1E|2nXN8NluBJWXKb`WPx?tLwP>HO40ajmZtvt zV=a<(l{n?5JK45wnT8^sD=Kvx*G*Lj$9?5QKDBLYXY8K#LW`vEAdqraPR5LU-~7<& zvw@jk_v<&?)V3$oNYwXKv#zH6#r+~AOZD+9b3CUC@8}2)GO|uP!GJ{pRy9}nqyzhY zjM)?o|2WQ1^YVA`ZxytG=mDLzoX57n|$I;d7*tf2=K1B_0&JH$5p1!8BKO_TN?rJ)Rd0`ROkC%lz+BLhqF149cVU-9!GBp zSlrumB}gVS&&na=o#HeH)V8Ai$1_}OFAgikTRGKwb4d#9Dg5m86$7CYT}#o^js;OF(upuE15bA3+IdCzp5;aZpuxmuR-(QI!gEaVX`h=byYx;k6E zMO=DIO4`($AQ^FKoT>(HJ2>9k2ljh0o9a z%|-OUz^BtpXMELk?$816AuBc9G4|2JgwicPrIGieIo_Q7thB><=`C|i-E#_xTqG{a zF_0*P(Hb%&44T6R40&L~&mXVx^Dxra6%dH8dVB^)I1lCCC?o7GJZ)Pp>M&LbhGk&H zUxTKm+cyMycV9$-8_wT_l>ywG&jhLZg*N8s z_7^^0H5`)kPi~0uq^|?XzSE6*reGuUHyLZk|3WTG3bZ*;1FoRc(P+^T<03*St8AF{ zr}~ZBnPFOoIvYsOO;4a7tN)8U&#~pp(DIV5eczGVm4dm%fR`*+5g~a_Wh%6qDcAM4 zyiL_2*cd`Z_rilD*UIUpe7nOFNjwxKxQB+SD&+#&CWU$V2$->%T3t(e@XHMCs*kWN zDqU6U{TV@X7tgA3V7!915g@~e9{8h<7Wpyzv8ZQUyu}`MH;oPxQs#a{ymx$zMa3K) zp)18=MGh>W$?g%n4Sxd-EaFW+YyP=Sr0T^fr${RwVW8)8e@*{AzMG{UE&+KMMQ4D+st+e@SBipV^cEstWbohXJYz@vjK*0xhCXo_pvJX5NIM5AMLr{PKdD z>6Wz;HO;u}4An)6sZU4Xp$yW$=|@VaSI`3-+dShJP-^kXm!xA`IyrJg##UcOVx5zc zN${@7>j@09J(lk#qgeDA^$ggB$V450V0ov2icu>t7>Uf`^(Gq4#0OPzyw8SzOnD!i zf|AO3=_Jp-7v4jc(WBApV5}!f(U8VZFNMCYCXwip=-MvzxYs=tY1sgP^e-{^Fw; zoyL~~iUHcKS^0A_^i5$GR=w6hS=tW`=~&MRv^3AZ$P@hW+HNq{qT2HZ%Picgj+da9 zidYJAt!vvQ*%nsLSNq!<$@BGE0kNj^*Z-h7{Xv9msIOn2uzm!OeWZaU9cWPP>Ikth z+AN)zifeMQ>@gz`fF$K7xbD3ns;4yusfg8d!#T88d9cRaEnHb%c^vP zz%CKIt>TnQC&Xk72Q1u@FM!~Oov9MUAv|0%dbQ;X0o@xq47H@QG-7yK-gDjx6#q>T zja2u7FviKczHo$LbVI{&sv9%Nc3h#7D%p6c^WW<&UvyK5!HP&zYydka$_R^9gheSu zuJWS-&*r3pj)04DUF+j#r!Bak=91vNmyo1_KMGZY=?(l$8ls6PTwncP3)I%=7{?6- zq@48m>xUNB&|K&EhjzSCkfP41$yC2*WDdu_Y5 z(xCvtn8t!pv@A70WUhD2?KlKgY3U*q_Csqz?WQ4A7*;Vl;EeMDW!50W?;_`46d4_; z%~VGE!&*{eioezcQ0q|K7L_9nOQDem86Fl5eLTm=w|L5SK3UZwjWj*SZhR=$gK=YH zA}I2yYZ?iRb&K%z>FEZi<<8<|G@K`-k(_2=Oc-O$i@W*jAG)FpyEq4HS>|w_7}-xg z5t?%x)3rK|1CnLl*x8mf->|Ri-_4ZhXbi&VLH=Y$_;a9-8u>K0FUp@B?`Mq4lh{ZKt^amPpP4C?cdEx5 zz3A08&w49WhfBKh4tB#uQ&eI8mF~S@$D%YN`2!XYMSSNC^<|_n5NW-kzQ*<_Ah@-# z35SOyPb3R5VN&hQV$So=*7X#1-1ExJT?pC!o<_~sy1r|f)UgzonG*sS(mbac8Eof9w zenE2jbS`k+)Q$2b89h!^9&nA-<|6^5f!e#5635`BLhbJHv-^*=d z2Ir{6sut(is5QO(;aYHY;g!n6nSN(b%b0nkp#USxX};=?SD1JF`zP_k9qd%-QdFBr z^XN3K`D+c1GFt{}s_{bF(-Id>Z&?a{EHmV=ze0mMYM%{t&Y%%W=6Vg5NYeizDiJx* z;q$?{XhT9Ef}_Xh=q7|IUFwno^xcKCT;g*aY@Y0ey{&5> zlCZssnRpvqUyt&JRZXg$v`Be(@u5TyhXub};xmw8mRcY8F6(aV?l;pHdJJWCWkz;6 zr~YZwU}SmVT=|)^k(KsMRD&0vN$P{&WA0*u*V`ooPWylk&^yvRNJ!TG5-LOlIB!{U zWWf$8Ef0Bv8W?)-7&koDaU$b2=oP+R{&*9>NoOtFuUG;V&AH2Z#_Cf>PtlkKx#L+mQdT2;%_lBH za^HRT=B6$5_X1BPEgKAj6*i8kO+zBv4v3QSChfB0Cj ziVb0Fx?_FqKm#HuI2g`OJD(Tux;5>~Ofg5{K^liaQ}8d(b#N8YqF{?cQDU^ z0?JB~``9QdyxfbyDC>0eSY#C)Xryffjh2TtEsN@S$v?Ler+SUFC$Uos3EtD`Kc7F& z7+HnyX_TlcbXt8k4eo+x`4ff_qd>mLt=$^Z8MKNo0UFNbu#f*s z!_=zH_bOnbP>z3+VU!+-LT8fI^5FsoKdKL9^u|!DvCT8FSa&6I?){7PxX%?W(@QTFWnA%0kgdj=NQ6X_}TO; zf_PV2{^$26nbf6BsLS)~YH;`*laE(7-H|lqj7!4=|Dg2us+!ATn>P4X5)T8&r%)0* zG}Pr4>PWG+NfuRZw#`IHK9=6H)L*c^Z!F2OvC^@h;K=WaqSJ5wK^%M6MpAbdfhp!I znQ&!PYu)f|kIZfu%k7An4_%6=u5d0AwqgshWcVT*5rMxdcj#=F3KZhyApRs557s0rUk0z}24tB_5^HvANRl&1; zv}r8YC(E-THf1C!F;Q>0wii(n@fBP{K0E;Zk1oN+I`$txK2;&qbRilTEAj@rmK03G zn^mybk?#JrQ^j+j<H65V%g^j#?#aM=~x9+J`8Mo}K-CKG8IZ>VkaQGg;0O z^=W@e@MNeQX!%rxgL=JBmZ(K(ahf1u@d-JN`l;CF@ zhp|u;ckc~xpC`7eN*JSixSrY{!DRPAo~wHHXxk9sSKUKK?)2@T*Qa}U`A(hrdr}f> zVZcz+ROj88LARpXIBYDdEU@jE2UyZY$WTGcBJ-{H%gDn&G7)UmIUyO?367iNUGgu_ zd6!1Ya>Il8sVd>|qdAY|X_O6=zHJ_HuhBAVh2b-$6RF?nv*yJ3qh}BLT$&>WiHN%P z_x2qur*2F)zXC|)`!#s~jcU3ks$U!EZ|VIU294?$K#Pwmf*xjIh9k;fOGmyny3VN# zT#Pj~l*waqFO9Mh8Z!%FH&dykGU@!p5yEdTo^0PYs}~Eb7^k7Q^2Ccrk{1M9qJ;rj_E6~uNoK#AqQsU0mx7g0zRZlbUW(fkxqV(IcB-={iJ$jqTSEKPiLJ$t^`V{R+{tfaL0A~s3owC3 z(4Ur;R_YZ4Ja|5#s50;QO0J%DRV^=1vpFAWc?_AzeK3&$X60sfJ&k zgE^YBZh@A}^p&Ng(1u*~j3A805)baf;t)& z*WRWJPlUSg!E5{05_F;`G+EW`o>Ea<^tJtY-%2drdvSdXs4!*vP`K(9avwL221z8Q zzWO<2nV?0nhg7K=@P;0YpUu}*7oie=BCj3M5$}z5q~~F$tse0u-%G!7gQ?6Ky+|1N z{-kNTdR6pz3`(W5YVD@dWXYNOxhofa8NwGTXNRqN2~$wv>?{4&fo1ZOST` zZvPe)yeGR&CX^UQhRKHxC4=!|o}?Fo@Q)=M4&YjDjvAe^ZNzVG$?j1_4efO>w|VtegVEbj-6v+$2CJ_n_;5wu*|1{c{{rHz? zUQOER4;tS=$?QB${M15Dn9M%4VNpfTkM*xRRdAQ7=s17v_XEK*(DW7zrY5K0*#os^ zw%3+Ph~40Rm`yITQ|EqTe}UE*gW0aUsjWuW4q}zQK9@v*>O{}h#keAvniw+PUwq@q z^`J+%=nn^aHF!T9(MulvDAye#9C*kMsj)nrtJ?v9_FniC0g~Ib7U!yo>735*BHcW? zQ_d;OTM^7bGC#Fy>i~*Hk;ghmX{v9!^Q?hxx+($u*bFY})Up8=@pFhCJi1&vb2;cn zkudXK>ohQ8l9=cf-9(&P^`2M-dep14bQY@MK&!fN4kiefEFvt0=~!fyI?Ahmva7J- zWxw@e43$_fSWO>JoE5BGTZ@@z?Y$sA7t(T0y4MKT7yegB9;U_X$5c=3rcv9?3c-!b zMqB95^@E)%LKcsJMisDbX9X?#=*OPFF~Ph|B56~LkL|?_diU*TQ=E6~VSB;Zb<#uA z-EhV2YKud!2UYXe+7oG@xkJT00=-7?k8>d*?8lcySn=b+oZgpeo6<^--B`>acu%A> zPIfItoN$_XTP&<*>NnV~Hzy9=W+c7xpU48m55}PdJs86AoRAqui`@8T39??b%{p68 z`BqExtkXA4nvXgj7HfT24qvS>UsdnMA*~$}t$y3TVK$$z9?YOwe1=P+GWW?Ib16mO zo6fMPlE}Qb|FM2NP2ICQe~d7hOrTG^`d-hiW1j|8QQTw zT9_XikK0nqWi2lvXwc{rv3Rul z0iR3cvtSy=0aV^ZjU@KpL?jktv2}`Dktpu&Cn}TbbMM2$bh-~A&jBI#E51r6Wk|>7 zAuT}P>xJ{{vZ@xk7!?ioz)vYfS@#T=E0orMuC=*-5cIKz%(WSuI_jwxQJwRvjPwPI zAgquU03wc&{nG@*6!F6Y;2-sLf(xQpEFKJT|H>yw?6sriWq&z4m>P0R4wj)RVsV!z zl5zRby*V4fpP|4&j<7~qJXfLB?JnqE3!uuLJjquw*ZIjFjPc{Kekl-+}c+E3LY zCSd0st9aQPrE3cq8^jwBQ%_;O z3Wg>VB^wY4J*tm~V7FzY7?&^p4puJS2W?qXcg$AqQsb8J#lHtgfls~=pBEagRIl1p z=5{bzWQ*9zG=q{HitUSH%sQ`Y&?4ev>ABXR*mS=VMAEwH(n13Jd z?)PHo1Q_rQpb!VOhoH5;Bn)=0M~I&2TIm8t5OXA^-v;hszZDWEJ{5Z8xhWsBMKyL= zbwZ>o!ze&E2DW**R(w-4_voW83J0Zft^Fp0?o=`uHTXRX;8oZbEpqXju!kJ4jMvLC zH~#7L9*y&#HUJ)!;-I42HbzjssshD7iNg(u!go`Sb$sj!I1p00GK9mno;`*c4rZNG z@}mi~LEBKd6Lh}&?STiJ<_bKAURA-u4)y1U;4ZF6WDO#D5WWtn1UJeK>$6a#)nT@V_I zPEgN+)fLh{9%7gNXbHScU^h9Sqa2S;yU1{s3hQ^MwqY}$1jBU~z>nlH@5TO2r!jGR z;n6`p>q=2D{N+{7kyuiV{G8|GCvPXg`18pmUW&1!&)6^%?+?%mJqsgh#bOh}yYGQy z?XaTOV_Nc=2&-Sljc=b5RyDDz_@v+<4=1BGA=7;%{~eW^1s1}2{9SwPNR7r{@9W~sh58y+D;}unxA`Rv1?B17+!X>>o(+5EGHs=^^HqJsx z@F!Y2&G?_M=rcmk;%G1>vDo1H_3P*JH0^St0>}lEHn;2ExLw((ZplP+R-Vx3;=jUt z5`E%>|C4ODD*(fMm4oX)hj7MGoJ`8p zw8!)qw1KeG>{`PZ;w+MA8A{?4i zfbi`3H^L@%uF9=}L8l`d@6R6T1xY#Z1!hT{Jh9jz=B-$hyyML7Of7V=Ue}PY zS-a67&(RH$UL@~Pzw=_*Q@;$fTfeOO{f*n``*j0V!MpzbD%V7@whcfc!GpVb?w{Kv zo9GL5pIgrI?u(wyA%MKVw5yk$m;IM>TzJrIAk8ci>Hm3rP3MFfk2$@&58T6=1K;L7 zU^P&X6M}KOmey9DPdLF<>0fw*y*vDVq!bX>v%q})101CcT-Pj5A?9v<$)rHN# z?~_$^J`B=032xj?k$;bFpg(;nsbKK%z8{5zGW`5^w56x~Nw&Vb&m+A(E4jkeXm+AmZq`72uw{ZnzG4?rx43YyK+ z_y+^%QE#?P^M~mOOuQs4zM5-2Bw**cfPRFn;AW=iUHw~Q0*FG*Kkb&GVV92Uq9Nvi%83ly{Cv#lKu61dpd2C5@nK+7F9c1w>5(@9k$CJ0n! z{ffcSSlqd=^m$DK(Y%*tcq$2#n4-jcLAy2T9cj~fN=ytgP*D)Si^&kb%?~J;76DrV zEsH$IRjm>&WR(4sks|0-7Qaln8HP$MJswRT4jV3-weRT?s&f`q@Eo3ot*b6Mp}Z9f z?}0*H%u5{dT74KkFxvip5AK+P0H`ElZW)XHh6=OD#;O*+ITVuk;pJdiH>ez^qY~dM zo%x)E;zqG>GATVScbug|u}s#wb*_H(P_m~BEUz*aULa;Fnf(Nr-{Xe&V8jd8*Pb!X zo6FX=h=eK~#?Y@_-rONwy!HHI~FXOVeL?=;pXf*IGi?b&tg_7|&w$|(X0TW7AZryqn=@*gw^z_vpR z^{UPZrPK=2{=U`t=b*50UcMEb^5pH02RTM4%lx;2og33v^dyM4Ks~J_Sm0u}-e(3G zy$~i6X*1ogEGJC!$JC-#eQD^VkQIaQ6R)sVk3%dj0;NvCPOWC6OiWtrVF^$`T6g3Mor5 zrG|{H>|+~^trFdv%4Aoz5X#OlC{%+AV-J-jyX^b#Ox@=D`~26-^n9Mr*`IUX=RCzS z%8xev`V54$9kL@Aspl>~9=%K$D^gY3H9D{i;Fz_i{3#f6jHB_HfLW%~87D~D6?!6% zGsU{IG2Io485_iLH)Ou%J)Lar16L&t?&wqfg~p0+OJ=QwTML>Te5+@>AwtBR7?=C& z_p6W(A`l_o{982e?-6y%;d=VfO6g7=ELYBbs15e|j=ed-j@4HwiWgWKjGu9PmCpWH zPI=jTFhgbY>`kl2i#Z(PnOf`2o`lY9ZA;U~<$L{_$YEW~eD34_k?R!H^C8%>+eo@T zRC>DnJ)KG~JNIcU2aYG5+)ttO6Xv{ssD~=imd8(v*AK=@WbDha-#k3&b0%oB;43|% zpp(G&v7S@A6Sh3=H|yRr$E+at*0OM&@Xbl8M%2s3ueCbUCrnGM>i62;fxv^GqaKlk zItH9D68zW7CWalpA~o;mlCFzaJ}MsE??&U=>?0=~m^{>Tim2@*Fr4MID~EU0a>`qm z>lB!#1r*CPEnJ}rK@D8Eg{S4(i6#Ezv&-ShzJo@3-I7qGxa2_a4aip)J4h04;>p?g zY`joF_J}qYHjpIvIO{fXSvBU=+v|5Alj$n*Wt0- zq<%~W0)G@3xWh&Ms7(4I&1%1rE_d6_c#goXmx&wMjue~|7_Fy6(5$%mJI{wnm-Thw zVRfeVda$Yi%!xEmyDucz&Dbo@#2%MwX?Si=QNfVAAV$^)m$@H`=-G!<0+0+SuUQam z$bRjOVuJzy?3Vrx#i8|F57hy~@1~t3x8ukGwlbkMVU(s2PKFka2v8#$`nE4FOvN|1n9NHcFV!{)W>?DOAe}fI1{Zt8AMr2db#w3k6;zBNqM zD#=>hEUKf;rFk8{8vCl{wtrvZnz?dd8rZ>={{ce%UPykA2<_-y*U$G%=y>q+fU<}A zLvCf}YEfi^Lho40;0|G$d5rtYGcl`x?Hqw0jk`V4D=U&CtvW4vHFUd=uE10j2J^({ z#A;)q3FzrMNEhu+E;}bDIh0v$xL?_u8W4R4e6;)tUHkl+TFLM;J4mw-7R-sKVEUwK zShgcWS!gkabgvj!S&COpS()QVP54bPsS8%D4_|m0dQd)jB{v1_Kk%)jTxY+s2j>C0 z6=C5JI7|6Domz{{{A@XvR7PK_P%gnfz|dT~&S1G)<0U7|YQG`xbr7hnex zU6Gn zb$xzp^0A4<1W%X78k%!43{!hf%70jBPZtS0Tkt4_nfej)?)2&cdw@r9pZ*2*u35 zvDtTEz9t$&6c*Ydl$-njvWlNsRrB5o=qHW**)A^OMS^)Oog&T7i4Q(t;W$VAn;{Vu z*ln-{5U$jxpHM~7aU;1Cxin`2KbMz;Q2F3q-B<#}>l}Mv>;9goh>}55_9GW+z@nKd z^-2G?{gw8%9{vIUb9|D$ndL(Jm8qQWIvix=R12e`HP&&x`3+lCun4g&BeC7X45z>m zh&5W3&(f(6i!qxjKcM#z%Y^#Mn`<<^OQ zreJhA)^={m3zc_O<2u6$VTu)w5+ZcKsi2@o_rmWt)zgbbt2 z6&cNKjT&W&$@bR=(x)zoR7xYst!l29dor`ikcXeA=ffxRX&ubP#N=ZrZVgnsfNEzc z#Ss_2?F1%0SvK4>jVWM0^2r)1n4%Eq<_3(!N3j#8f|b&=&w6hz$o1=`Ds5AsmLtYZ ze$z3oC7GAm`7_3<#{X7^)cn5z8H?E^g5W_ zZ*@d4c^xr5S70B#-3LTM7%TMIb#d@ne zC_)Qo-&o6CEFfTsx|v~rLxgmZrN<)DGT|rXq)y76y|3yqlOFlA(fwdNCn(#b6_xQk znm*d%%1`??lyA`5GhAB36?Iz$6X+u-_{v@-stCQQHR0=$_>CX4y$!=2FQ9c>`v-`` zA=W7kYdu?E%^a=dWgS!ejJUAofQMNTC#N1mrHQsal)pE2w=ylSCAdGl{%4gA>7Afp zRY`ur*I1EDydJaOP&XKq-OZ%O9TxW}Fq^@%Bv`EsThnEz>00rSa*P}LCb`k5g^18L z2Pc{F%E7%fJm~NvMcJz#wjn9tctTdhrm40R--C8|g6IJkdr6BkSlZAGLO>UQA?1>?!jf+~PbF#K^E6JOptsR=; zcajJDS^#zP)rDG~5azaRQ(-Ddq{ftp9^YI~CH^Q-43q3oo_*a#y0m);u~ zOf_QA%6R>08|hfHSbw8hOY=MqcZ;!2@YY`Gz@PD6o+j+~PsuGS^olxWpws-rLXU2S zDC9uw|EQ71mjN9rxi=npy$Jci)L_CK0vgxDm_AbtEI#nzMruZPc&LI4D(a~UI#6S? zU{$Nq>oxa|VbSKdKC2=^sR|1a@8e`yW-KbeU3=}tfsI?wjweVa^}MHB-gmH12sO=; z6aCHvT-=1uA71jfK8ZSTjBvXAhifG!g$=96b|mVq+7`mcn|vDM3tn^$YF-?WAo}#5 z0GSqiFSO(Ida*=gNM~BefK|)UnXFv)wPyaBY+3n%S1O{Y(?;Nob|guLhpEx@hi9q9 z7ezPI$XSP^zweic+p4$rnJuEw98v0GxbtvL#ex@ZgPPfYbUt9J+g!NW9~<1IqbXm} z!rxf!pO1Smt-`^#x|LTZ4INb!cjoBfho}QhH&ZkG#vSHpk@-Cn-U>eM&j+&-t+ct; zO$M#`v|sAf5uzU2zbsi_+$Y0-AM`xu1dEsU2}G{LGIql2gm1M9E!9)m!&khv^RC3= z1WEB7Bj=Np3DPwDd-~GqVoB3msVEUzBuq9~)vO4{20Ng(`<&uA^2M&Q&e@_u?@hW2 z_|mpb|J(j)!q;rfq?M?;W4h$s9=nk5eg1jX6M#8H$`xb^%!RKC)V}A>`9xf;=}=K1 zrCWGthi<6qY0*p(3%kVrZ!1=@{gR@^(8ut7kWfl7V9^|XCzR^Guv&cco5=9?g^RQ2 z$`EvUGAB9H`V55F_Wx21T8XknJh*SO++IX6A+{r=cNR9<$91_nzD0LTWM+v(@fPNG zvmNnSXM^0r8P>YNp`p)=-iLJjb&XyWL|pJa)wHi?+5}rS*DJFD4dwi7XTkVSi17)ddY%w86o|4OE2;!>o#LMv?bl*IlV!lY1 z^&(xpH!nEJ_TsXBNs@N{(Uc5&nUTETb53%ZjCrdSxB_F&w!bJ|Wi=$h#FH!M@DQDL zA2{Z8{$6}qqs?I+Dd1`f;K_e05$%nxuBP^SWsx(_gpy0km-BpD&HTCRhl@_$)*+o? zWGoJTF5$wer%E^-f2N*ulOZa2YnzZdo>!}BV90>SGB|$mV_YXJmHGczndZbE9@?>M zsUvDq7)BsMZ_T;HqWdDeufjiW2OGF!q$MmXkqd`cnm#4hpV@R7tk8kaPuY&dJvM6K z40IM(aV|zHJ~8@IK(bi)r&Y+X^@+_35b?}=|09PjhCyIoEtu-v`Nd`+oW|*xk)?Qy zu&b@yi`)JMc!c{wnlVpBk=M-xU;p$Co7>JSNPq9{{jk1A`c22XtZVpg)y^9M^hsI8 zVV7-8>?*B<xpqI99c#vO z(pK^&DpX?~Gg}8YYQsbU)02m`Ub=zW-gRO%_5wSlRS;i2;Pr*ErKb^GWFO0{WE$!= zCxk>0Y`bh;H>2-DG@|O*b%8(v1$EY3;Hg7CFxw(V=z_A1gG_} zd_Qwp)Iiq7gLUq@_7rv64hvAvf9_OYhODC8b(51`+0H9(CdLjyNKO-ESt)eJnPmu^ zL@O?M`}Jlo@IZ{0EMh>Dg?e)2J(c}quMgSDws+FITD0lD zdBIQIILM=0vA7*X6)T<EApMU$9Vp# zV#hR;JxGrKTY96=Y_GTG>6J_Mi{Txjx$o(+oL>){W9vpL-$JxQ*IzE5%WGN%=9>n8 zGw>*u5V9B$%=uw1I&Q~@+Fo%iaFu5~v!Pw=`=yg!Ew^L)EQVd;rwg)y;2(on(unG) zoQ{x)KGW_4DzsBsG3@X8PhUvtYQJ5lGL@0{n!&MwM!$~dH}cLqbg{ zdR@ox3|eh0%5FH3!a+n6-R+k<@OB+U|C_bgR!st6)V@H&|8p`DpgAN9^DWLE?`w92VR1MweQWfN?#rDPUv&oT{mtk?5 zwO7)=zu$pGD9RLcB)V5h`D>l}Zuoi*)5r9(UCEa` zN`6?zUqlG-29r)F(PZ>LF$K;xMNiZ`lwXh6Q!nb2KRYa?=Hy)jYYXi7lSklAROKfwl9%%bD21-MuPx{Z+cgfg2Y#6MpU$PJPpqP<2zYN0>{PHG%m1n>xr%Hp&qprcGrE+)kJRKv(pfN7rJCi(8B_sI9-fPf%v9ofteSs`3v zhsWTEfk)4X3lA;}^sKY8by7_xJWNC25yeW$rLewFoU>p2u&EO$LI^9-J;~J}zQf=6 zRC!{#!mVRzY!S&>s*0E`u3E|}MeMIP2{o#{%wQOhu8+(f>dl&_*UjUm*2UB0Wbt{!^2C>_wGN8lL3#}UhxcD0yEm=_)c}%EAof#rcI*LW?0)LxE~vvr z{#@?08;`D~#pLgx2}n3j?NC-(M&y6F^TQr5Xj;nC?^oCcUIaZWm-O+@4t(}AN+t;% zRAzX-JTbTy#?jyV3JfTm)lL47596sSi(F_>!pbia0o)oXjIzU^WN$RkBDlgP1-soG zrbWNS=f#oiMn%$zI(mt~&l{8Z+X^+UJU0R3{QMnsK2PQ^UHVb=6dY{V|8&?}khe;p ztdTC^b&iBtbJT`{LSs_1BM`Il>w^u!2&`zZ8Je+q*y0==Tl(!1J_?#uGE(`!a!i`M|8%q)IH-kx z>P|Be(adKdAk>rbWz(Wj?7~St!#0PI;=WJ$WEl8+VJ?M}9MwdV(beTcFShkrIw?(4 z%s6OPGD!yz|MBw={P6>iuCkx{IHkT4F=~^7_bmwx6`OH8f70tkl~2DBNg48U3TMwl zgw1?vGxO(M9#ad-9A0OO+=T5HGr=!k*dk6AA?_7KIaf-oUa z{!&08l0)(`Ph9(rD}s|x#+EMamMJ(7amT__mZhJtb(*8vV)peZIw`xfS}YGGQ}@jj zR&pL@W=|f#&)^8Nn4@%;_HQ0G$b;;(STwe|`q>A120e3nggX55(bA>ist%AmAHY`q zImWD|NEB%(CTp08KV6!u(L{02G&ABF$@j{7#0ZGUGwR~9b;vUH9o+`M5%F(bEM3#$ zFl9R>Eaay6ZI;$qE|+X?=JX?d^@8TyrQ6wEc{rQpLI6~GCBfEzJ?nd*Yp6P$y=bNX zdHH=aESDzaQF#6q`#~l5(~gX}my8(;bCaBIRP4-F-<;YyC`P+>9p7EOx_@$M*mBBC zmx~<|0+|(Z9_U7gK{R>@L4IQaQnFrZN_DvGff(d}fsN1KGW^3jr&JQto%%bo>(O7h zPoB-n{qE|#>(dFmq^Kz_5#%O^pL&>?%spk&TJa%ZzWnmZLrR@PFl$uF1;UWjk3Pxh zKvRF_x-!a7EP-6ihY1?FDc7HG_p!O=Hg(S3271UEPRS{vFDxo4dxY)I(S=B{qEXXP zQ@Q#%Tdz0K4-FIgwl{AyO%f?0svLBlrP56FLql7{*n%hpVhd$9Veke@oT$g|^>IIj zQMW3kSL#p5U57G=P{)!o^z$`1k$L1zvv)jIe#lLdx>2zYXmsP^RKVYMmB-!Uzu|kw zD(-OAFSxfu!A%%lO#F3ZjDPOVC&v*!#vJZneZJy zf7_qSimlg1%}=EJS_;|__sN`VBqTs3&07Hu6!|k9%KDvWGaL8E?LIW;jY4oM;d| zKYFmAI>#<%AbaGX@X>1nUUJF7asEa(JH%YS9I*ywa|n~LfU}5w!L-3e#cdp>WpoXD9ojSdLSISIq;YGT0Xt_w{w9<8 zsP)iL%PVPM90PUnVi3VHAKbnU)H?zFn7NdJ?l}ftbcc+cZ124Q|DVs%y`ooeKV*{1 zFE3ifzMmA(u|~Qs=r#*RL`ZPEKcqDBa?s)lV|qN}qW!*j$z7VV`O-7SIz#)}l7KJ+ zaiX|i>%(L)u)L2Tp%ac1go4Vq%1UV)Ft=-jLSwlG4l?4rg<=-%>7=%4>;_>YIw7(| z(vm;3I=Wz;xB42MZ~GT9jaJG_0f%+y_>Yq7lm5LZO(u{1pW8ZVU+@DjcUbBZ_++v% zYwaDI66830*JsRy8(Tz4-Ur9d=UHAcMZ}ZGR>$19t(W3DqAILYutu>X6tlr@@1WFi zEgmiu%m=wk-(U9M!kPKx2eRTnDJdOXIh|ipxQ^x*daUo8bYd))|ILBv)dG5)VA5l% z5l*mn2*4cdLThXJ^-3G)3S`uzltSjWY1*x3O^QT?kZH)=YSLi=FFQme8+|N$6b|3C zGL3!A^bb6=OOWRZJ-CJUh+Mxh&q?sD&RN^3trnFP{WXZa32X%qy3I61EHakj4WChPw&B(WCJVO0 zy<30iV($YmlIFC%9oHR#?VL^o=G*c~SMaTL?i~B51@(~74(Zk0qi6Oi8@uo!^9;7k zweIxW>od`!z5e-b9a1j}{C zmwo7@@TL(MUPLDA9ESAF!pm-hRBVpgvxm{-?+qE+~&PYLvf z5VQV)WED*o1XH&{2q{k-6KAOW#GmsW_M5$-tD!8Jc`9}uL~~W0oZ~6Q5eQTs0MYdM zkK+0S%vLSYw|W^Nix=#tmZ zY=fYckjc{|r;!DVKJUZV2i`m9I11(3^ig6D&pc5rC zp+vFa7*56jgC?IZ9XL!An6)ccH*rTKkK!#K8SPcy?9wWY^0B}(CT5&4j|cU1w{7KT zC@919X?2MT|D3H*zqPi8Fe6&;Pn4IF+fk`kDg9xty!>WU^aILmM(@J`Mt zDm%q?L=lNdzi6G}EJ%`qko1X*QjWfpd7Db63E$2S^w`Sj_#a*h(jeUjPF+jc{vR6; z7^vqgbkr#@&dBvkD@$CuzR}#ewk{{>A-(xD+a$Y?p?K_JkF-x`@Q01P5y?}!_TcPV z5)%%;MjW@x>^&*hNwzbYS0S`b1?67h?kLCez4x-y78x<-dn8=N50_!hzYztwVLs9N z*t)Nm3)p9F>qG@IeEjxLnlmM)=#fdPQtWOm*n2s(BJx&uVj9!F<4`NjFPhX=6jVrk z`(*-E_ib>9_x-+(N*RP{_FX0L6-}(dZky;V?yC2_XSfIbYSZ{LDbFRM4ofWH>&3#K z6$|vb6FKETv=Txr;}xk@uMoVfaz)lGt;qMYXnbw~CsSNzSYmkK zi24K1FZ{b+ord#vp#&o&{h$M%glseVk>)xE@!Km?pyubKp~``{I(Ma~RdJ#m6N6-D zxJ6eUZxOnA%|7aG$zT*k0=elp^f=f7wXfPY$xYC7&*wQbXWRO`pXM zTJn~qbu-e~XpLEFEkmb|3nQ9&6HBTRYd;3XG*FH^l?hy5V*O@Jm~Aq0KTsbaZv{4^&^vtGTbro^7KA<6RMwMd#T0 z-90Ceq4d_l)7g!Br1p1oF|@bRWO?}hK4ldLEx(qzL9@72wj-dMPi2((m}qu*uqVc# zZ9zS>?k5a0o-2!uPdBUXaQ&C^MTW;2V1^^OF6Md56#01cx1(G80Rum~Ho)KZDdjAc zM82|?icG%~YLguK4YH=>*T+@Iw%%tpX-0+aME@7RN6A!5-<#j7>>&|qW7iR|&=f#u zf(f{!(i`_%G%rCpCLuNa{*z9j-0PD7zH1TtcFgn3Tr|#Tc+ICfHG6qhAOFv=p!UNiZWm8MEB`ARIIho)&)*~fGjG|fUipDH#JBnZeV!Vq11o;$t=ycR`u^{avu8r z7V-;IfsTm+{Y}Vt%Ejr|04)ytI5M4b(NhGDypRU#$MvpK?{JN%JZzpDyXYVl-!H@* z2`vl=yKR3Kw#D#hiQd;+`im<-j&Ogg6vpzaAB<4igm?%u^H_}%@8RYOi(q!r7Z`Q^ zWhJ9F{v91lLOfd8tb2HOcc0-oSB^b@8pa?JuHc^?iKIN92mIB3s7x)q7k>NuB}fXi zVkNayKi^X+ecFVuUutXflmQgasI$ZmbLrbrxIlW@@T~rt2$72>k*~jSmOMO{H-0o9 zK}W@uL|DyFkCc~xGJCEnbY%k2dkj{tI>-ICjz~s1r%R8;K-4Qn=*=!MW&MMI(0s_& z3zcxqc=3%0dU*56e5FuizMykY*$?po45pNoc;l>_7E34=E}QZQGr^l5zBhqf(PaDGEX`_mgt*>MPU{ zdY96_$b1uHa5`Z7D(5#|~7jOA1l_25HZ1 z*A?A6%C$cHRFi>_Gy&iNysSvVlm~>`r01_fStKBxz~@pSP)64bID`lkbfyQU2BS$T zLz@kf-)-wfK@IJ&r)o~H*aW4lq{nK0b!4sLlX=XOS?>%tZosy&Vp`svuvZA+>Qo6; z)I2hsDmGQ#f0-bU>b*i#QMY)8G6kcj<@bbL;~ZWRvfk*HsUN+*yNe17)+@4a-+TSb z8`MDirrmEU<3wSLuEx<3fl@hga3sD|ChA&jLn$WQLNuV*m_K73qGVZ6D8){522D?x z*BTaIyT6OJ>brSwsb*T(1WZ7Ckh?+VYRm10II$eP;>^mdavL^8TkC8yBpaEJXrkm} zN51*nI*aIg{u#I?S^vUV&Nl>wi)~O_bwC9n0?ki*=FPD`xtz>* z$(**t#})Scc%n}*v@`we#d8+)MU6!X*ZCHUO~+Kal=_^LA;4esS!?TB)_nha!8FrKp*7df21Ngy*Hjc6N+85SsTbur3x<@ruh1qo$ z>P`hG72lu0zvN(&72-02hyIqWv|vv=AHoie^?c3d(UXT zqtSPe1J-8sVhkO@*2#278bK=eTk@9M_g(foXDv00=_8&R83y^AzH`tv%`9mQZ+^*{ zb6!P$k@%5X5zf^|w~w6b>U}b|E#Nu;6d-*ouVj4Yw*w~~`&;zdKf}>s^GefKe+1!P z=jq=SAnz?X5DG=FElnJ~Q@XlOjyhAe25%s_5$Yr3)i2dt$J;e?cE1P75MOwIO)aICm{Y z>_5*Z@R|Q-Y$4f~-UIQNb{i^sw~Sp{eTdEze+q?Po!#|gIoWS~@~oB3z~g=FxZN^e z&E)!fB=!#OP>$bfOR8;UjAsOR4^&(m2ui#r3b@9fs5_fH|1^qAMJ|4nH~ z+48n|a9m6Fyv*i={JM$)?xfN{cfPfr`&)wVfs!Fya<`r4sk$yF(#+`^e7 z5Q<%970br;Aa;ytAs64~Z*#8AGQ1k-k%i(Q@tgNH-Q!=Mxj!pTx&tY(@At_95k%`Hv&#u16^?vT$V|(gZQq-VP}nQfBbh|smu!>q31mfwiXr?tO#{gA zcD#m`&$Pqwq6_Q6vm2RuSICmxA{DU7Mgm;`V`b`bJwt4}e*L$lb$p?U5Aw0qG1Z@X zu}KBd2)5jQfqM8N$`%?GBX42TBpWf~Av&sKi*HV9*Ingeo)F_%=CbQ9C|Wwk;UeWn z{UTk*xBB~B!tz1e`;v(3CLxQg_OVb-U@9m>9G*o{Le zV}*=C<0mi5xPFlo!y>5`mgbAa zgN4M4#k{dq1m<#&^YI>9=w52rmM7h4k~*PtI)Wq!F$zCRpaejmB8fTfEl=;`p5^C{ z*nZS(4(4~d$|-8o@?m?TJG(K%vd;qX@vf(CJ^!RB)DzF!<~m!fhi9ykgvrIf zw<*rrW)E|l2E&!+mC|$_g6BcWJogs;aLsiOB$(LV7twufp!f<0j(ujS3|s;BINq{l z^|_A!xL4;+vRNH{$$v2R(X9sBkTYtM4-kGQi?^MRepWCc@cIEWGiG&C zPF3G^jwztpEDZ316hvmvB%@Z7B@%+nLPN8R-lrY%Z5KO;h-O?ocszRt0U1iXm}ZjQ zXoi$KsqE@X7@wCq_D0#d@)DG9m$h6S&e@!0?(*J67B#Jed0&anCXBw2hzUA$NFvX# z+w<80nx_JXU1_ycc>{gVQEnRg$7VZlO}HHTijs4D`dXaY{u=rT?*_wohs$DZ?ZP1Q zw682JTKh}%+P+~_y9Ds(jP5o!JJI#WnrFU4p)TXfVzV<_&Ixl_uLyM8po2dbDFDh{ zA1cIWw)E%*ezd?R`>MY1M%(DS|N8PA+dm8fi1-Z`x{#?1~@X-6YjiC$fAaPD7{e=-XR_%`rk&c>fyzFf15i~ zENJJ=e<}Q@l+=Z$G9z!P*z%RqPdj}=n?4L(_-svWq+?SM`=gU@8@6HeOJ<1z!4n&o@SaBodK--OoQxRO1p$Oq$%B<@9QXT)*!cfz# zgaMe5b4sqlo!i)2?J!`N5z~#VRkdN&L`hHI7JgdQXr9~Xyw3dWVdc{O-6&@QRZJ5k zB*G!7E|C|DovrH;q&T?59jK`Q?8x zekvp9Tx;$aO4SqGp9p)Vp~d`qcON(08T+A)EhilgKH;kw)&0v7965N0`xT;j5&n-U zr8P0dcI)v5n6aI&CFAa)kQ}bFyimAdKJv#1nHrmUl?YGxwO=72Wd2*N>~Fw ziU|H}&~AMEYsFK4vQqRYSn=QujM)_i+?f;k^D0e~p?^=4?;G+kci441RV*EalW0&| zsZSN#jY`?BoQ+1em){AstfCIs)Iy9Xvuu= z5M#@LN6x?!$gQtm)4NojAt|yl<$3t}L@Z(dI zi(?cj3g-3NR@{*6JSEJDQ!}?-PFu}*B6KA?OwYC_`NG&D&-8TJIA{J~DkKg+{V}7o zm2Df)lq@3F?GYsvvOymN0aE_l3Ee#!r;1@a-SDD`6DWiWFYzhY)6H(QM#d9^M9U=3 zmp%gsfPuWua)rs!lZt!`@(#>|JdU5WZWs(AfqK@y*yM`aI(tEk9w$nC)|7O8J)va$ z>>zDs)V)MThk(!xvwQY~vD~pknV`MUPRbw-&kLXWmvV8eG=lWN>lcq|Sh#=X?V{Hh z!#d4iq2=i}3ED$r#(2r6mym}uN!5Cn3-MA&RJ3KEG_|S(@q}XVuI^5E-8OaWeaxaW z*W$Hin-feYBK|+YB;g*IWmHPlb5dm*lG-D4wRS&FZg@SLp1HhnC))Qhlm9untgjCi24(l>B>R{Vx0{AD zY_Y=*&%JMZAUl{6+;us-vDh;H1EQggXSl7eCWyt^J-4}`MSKXu9lC`}?F3 zXMgJ938L>|_DL>t=gM}H`Qa?o_L{K2m!QL^h9fFgOz>9Gj0~uyFKab2bG22vhB;Bl zG?O?qw@8YHJ4pB!*iQF2M(m-}4Ry{VIR^0a#~FvUiX@%q6=lEDG_3Cc5Ct5E{3;`^ z8f?ZjaK!(WC)*IA+$J%NII-;Zb|=iqD>uQ#KVP$^`Lr zZ(KkCr_H9(z^8@qeE#M#;l(q>hO1I~?T0Rtat@j`3-Wak*`uu3Az1@uaCIq}t8hF- z{$FO6_U4zS<6NQs8>B9oR{(7yX@VOONoFBe<5G4b^|CcP*7tWv=bQ*BNLnN=9X`Dw zVcjXrg#8F{%n${L9zFaENhY&l!{@zaM}lw<+7|&N#5|lAL-yv8@3wQK5u&!baz&IQ z(zHeBVshkQgioR>WsyF~p0i28cFrZFQ}Y9irbWbY&O-}|b0uc406DQ%;SkOB`l}f% z{&4!ugWs>9?a!|c1kf@25R@^B7JyTmEy;mT_H(Q;Wj7(fw>9lGREWaV@g z(Mq9Dj`EWlZnV{G=}bPZ^V5_7KX6xz2tlw-#UP*!FI z3}?jB`Zpk6Swv~qV_2?JTZAylkz3f`JHwSj8v(TLn3@62L$r;vODiLr2ROB*W<417 zq>i-|ueju8kl1TK@}npqvR!dKAY$e$xAfx>#0}~yqSspZgR8DGdql45;%d*-qFs=s zAD`@fWMlXi{71X*8%msbe4tn38}bujusz`XC=!~BTnl)>c|?TEOgbmwA5JzNbJHAL zRlzh^w}py*SBLMB_O2lL>#SArFe}!MsRN%)Tyqp zuyQ0tW&iLP$HnqPhUc*KBRpJQ4h16p+DxZ&R_9ObqLB!#E|uHl-<$23;aFRU$-to8 zcZ%MNptO%b|2BZC3{nNtVeB{UY5wG!4F03ow@w;}S{?nHL1VBK^)A;HqmS1HPRR8q zPnkxN3)Ue`_K<~YI{SQc4L90M1im}gy=}Rk!}^x-$*C{wQQ4N58jw@%)WJmd9_00b z7PSs2T)Je?V5skT?YggJH||S=vDgT<@7L42A&-4}u*MIVLGxFSwLQ&mam*eWU|y>@ z(=_6>3l3E&O4BZK{qVIFW+xB1$J6|Qg3o_tJEBfrOR4-l-G;OQnihyy>*^xKU?8B5 zZgbVTs&E*zvuP-;A=8_Mtkir|%iqxz3ONzN7NN$Ia_iaE*h}~nk|1d-Tuyy9SG{u2 z!r#h4s#PB5QExETuXZ(BENq0k=~?b^M>GGmOTg_-@X=(E+cTXU-{7N}A=ChZi&HzS z>~oBrv_oci``fWv$p|{HH80jm$dG-r*4Z4ZD|`ZeN8s~)6p}}o%AAnuzxDEO3PkDi zpo^J_wh0Nfpm?=dThlp--AELbYM|KLm4!mq2a{^g>FQ<=9z=xe=wjFWG%DjeVumJY znb+`_kNG<=M4pYWTjurt4MV3{fb`S7rML&jCO*G^NW?Gn!IVSKq{fm$wMmrxk?f;y zFZ1iL(@xJ4_X1`vs+g_;Em#JVyDc|7x~)a<4q+R50?475!eUN@bZiUd#(Cg8JPEHu z)4D78!=`0my3E%z3*TNlrbhnks^Vjte?2adt z9|@{7I@6l;yM*-MwMyieJp^0kc?qfMw6B+2q&4FKIHXbFzt!+JHHJ<>hDk#Ajm>3R zuScpdA6Z+H#A%yoq{$zDxkwA?)#^xO%IYgZ6ly?GIeVwMQzzWBTYBBJv_KL{8|}kg zaoN6bDDd?8BVh^8LJtCJo;$y80@|4fjKdQtyYPO|l=yCY9yq5^@Ei>Uj6NrPa!$;sGFe;v9Tm;pytqDGIps{)fx|#a_B$L@|8A?ckhup zGg+0bWb9!`>K}5GX14CE6k5i9keEc9hL@yHx!u0#vfDOVWofVIwQ9Z`F^tg7S972O zy;Cel!4H{zjCHA+iu8AvJ(Gbdhhh^F776MJ2<_I)Lc@9T^YWr&NN=Ok>x-U`p#~mg zTalb%>JMMfh2Tv($`f%9+=wj$0Nj>jH4bUK65&ncX(qN*HSnOeLkH-#M@H^DJ&S88 zi|zM0b9l!}jUw3hQTY$E(>7jm_vABPk>tS1P`oTpE*`A3$_VM_Je|wkqp}I4)AASE zU{aLjgJkVOwz;h(HLN>vubP%HZQqB%>v-LtBQ4BM}VCi|;k>H?tVV>_{r$6aqXmSv9t(LXS&ODU}*hvdKv z=qOEp&>guMt#A+}A}2Gvv?%`igU4QGJUq$5+4lXjuPx&+5%3+~Pl4{uE72Gq< zKn-Oqz*|H9SbNWH`E^d6ra!k>=JVgo;mUG$yZbWk2}SM_26v^SGW$M%_KVg48^rYA z5B%BJ@Ae)?Qak{NtX652@7{3Lr}cDikXgSXGgaC9h4ty|`5!SM(hEB=LWyk=$p^<= z)0VxhI#C?RW1H-zJc{;PE zIAEKsK0i+q%-Bp6sCi(~(ZUy2d@pqMPKl(X%|O058ut&AF-<>a%QiuSu{Om_AlpBt z_Yw6@sKUIU3&d;QZ4P|9fHw>o<@^8Dw7Q_u9quI+CNb{})~=D>h>kdPqw;`Cj`g$Y z>sI&_@^yrVXy;O3k)nrH3VIt_J2g?$eoO2A0zKMM8v8D}QWaXPW=^6(BQ`uEh z5e9aZ`E*_0Gb7AfZmFc-lb1JLHKJD?jDouJyRM1Tb5#lGU|31v9tHZ1+r%>_Wz;*J1&>#79awIEo|*CZue7V(&4wn?@@v+!6t?=(I@e8rlik(k z)xmoOQhabhCaYTJm@OI8cEIx9l#=qD%dD=M;AnLq*+vFuOJzop;Acz>*IPiD`zxnUyF!g!0|t8L6I z`GUnCd)q4_^A(1@C6(DHN>_-ddEP4Ayy~DiEn+&qRAmf>} z(=N{>o^s;a`FEP0%Eo*@+jT7L>Kohxr}Y5RgSYAPZHpanNgpYm6}_!X%h;iY18$m! zX~DU7`tsEGdf|$X<}>r{SH$$8gxrj@CKYX_JwGc8s<&g^W7l8Hh2 z4Y=Mm2%Xg~{Ca`3**4KQTEg;1Hn|?jv2|E|R@(vAi8OmKMmiAZl7v_7~mo%HT$H0y$qQYhQlO(&1>F5ZuH_nDe1v$l;vva1rqne8*fue zg;zB7vXBudfaicv7gb0$e!4HhjiyyyA8?Zcv(}^P(1_k4B-ALA6l}kZ7yESr@UfTI zc-W4J43ZnQ;f79Dl&F=a=RfBBCOFqDP#t(>%znhYvY!jJ9g{DZ-yQwYq_hz(y6iV^ z9@SQ*5t(jyYK9m-M;vFzM$t1zLZ1jj0b?ZF~l7DyyL6@2+-S6)QPj8T7CRFsJ)G z57AzASXa-Ih9OB{)xm;?9nt<1y6+b<vg57 z+S0=5Hc0(OcR$hNSSF_4HJ9BqF?7fcYYP8YBTllhWvpNhO}m@tHZ8|MSsmKc z=&Sq2P_DmKXAa$SmRe{6rsJJ{r+An7GU!<*%i~{2moO-@P2{F`eg}oFcbpzq#n+u80EA$mWv%j|XVn*9YF}CU&HbD>`Pp3_7Mu zwfVxQWUHt={cg?$UZ~$KuCe7k2Fa0RF)@QE>eo5i_~jueb@t`z5gqjOWd&ywt~!O- z(;v4_?N(0Zl1AZ9U#`;WxT1{o-kc%6oa5fWj`MM=Um*-;bcsB!ckpS&_TosWjEQ^x zh0ftSTV7rXob;B&TbOP{XhfJG>G<1LUHBUgRI?ZHzH=}RVi5`tBa7I&ewbu3r#ww0 z5w2)Mcg+por@imvYzA!R5t^Fbn9fjp76A3&$f zvBxJKjCQ8Yk9@I(zc~9n=-niVFY+~p(7C4~Oz!uK37_v8a+2v*eC47qWpN{~VD@r& zXrZBckgp?3a8lXW^1D2A3GQ6IP+aI+D!Ur*BN$zaAuBT`HBRfnaZK|c6hQ@|XD zVrMyH7HR!y42JR>x$!7My8g#|(so1V_0hn4SXXSFDw#7d@&a#~w@d{gKIE8iSWVy1 zgb7kI;wE~fXm2T!gHRdu?p@p9d#VJ#7+?`b#o}dM4LB@2I%DfXW3CTOE}QFV*Zmt) z7`zo~Pt4ApUyn$(2pi)_n$i2<_PBgAm|bt2t*q>U-u+x7jWc&_l~xjKFzL0hPnlB* z_3@i@)uTx{IIcrd6m9*Kktrji220!s(24 z^OF>dN@YO($P^6sW%7U9?Zb^M6^~9TT9A>1(|MK)DXSvagJhDvSXc0U-j(q3p9(tt zA?jtnLC4`P$Ro9PI^I`?3ZZD9^zRRqH-|Js=@z^f!%nDwEk^xKVMC}QrYQ0=w>7lc zd;)70X#S)~?(RPkgD^a|_tT6Tmprg-X|b!%>WlL^aS}8H^*8Jg4Q*->nB&&djhz=D zm;KCE81*ZdPlAx7&0zwOLPJXo zfRQ{euZXGhv^Q-Oe8r1#sMv;(g8ukDnvC9?2JOpLMe%Qei%pgvj=zn}$ITtV^z;*4 zR`9pC5cB48(a=wEki!QCQU;46CE)wD|BtEfj;Ff+-+v!_>r^CrRJcW_PDVI(>5j}o z=FvDpRyy`LD74U>;v_3s+1cZ8P*jdRjy;l*b?iO9FZJQ~dwcX(kH>kR^BT{2UDs1q z@&WqUO6{@4?uHZam95JbBHjGIzWP1zHhq4p_&%j)CqRu-8qYqv0}7B-2O$vJrB`U( zGUQ}*-OoVP$_**OUk_hMY!aMT^Btc(cbBhb_9_3eb{612*{nghGpe8jJ?db?4L(|D zRv2f+E!O9QFsX3ix=tj8bia)BRq^R#5A9N$+*ozt-`jMzqzj#2VLo7KaoLIYnOf5-`C%GrCQK^k*%u&Z} z>aalw|HIqKX3CEhdHBsN!lTWuyxDu+A6C))#Fe? zj%BmiGV$(bAB4jn z-bCR7s%B%1Yu8}5OAk3(PxC&NtTcnwe_{q9pJ7-S{NP+ghT0BScsu+NIZK@6ldvTND1M-4@v8xj2b z`$(1wP)w+9I=Y+f;z_D&Q4vrF=K9wy{ z5sytT^bbgLEKdtePf11~+$@XtaQ2=TfB_x(m^A`} z5XghQi!S6ebw00GkC@A*3!2nh(NrCaGBq(})}}9c@5DCct^I1aq9EIez;0;)O1Wns zzXGzY#(viQsO(WqaS^CHbYMw2vGn6_Y+5QbG%U>055y4vYIbIIjqBdvVOW<(Tf%hgJ;l{=PemMLI z8%YPHv`&}yNocU(@Sg&D02G}u+w$9jwuS~lK#8?r&A8S+t{A~m`5KSSZhG`)8r|RY3Cw<4eDgVt|4W9;9is|y3C^1&AqQwzEnL0I zn2rZZXEwI140lQ*!*4U6{+S=q?kA%i87XP#$SOt+q;E!nr$hH*i62 zahG=Z+zghRi_Z&&_Cm!~#nfDZt>Zy{7eP^AZ%SzyT`15C1XTT(0a9~V){0yiC705#nOn_ifxIC8$ zz#ysP)VQkLc3ZR*iyWk#Of1Som>DJsqvn@izQ*uzv^y^Z@9vy z)TE`#H=o!o9~y`&{=gGsk~o=)&=If7LR`EH(;l8fV*RR8jUqN1XlUEq7yc1elHl?& zon3Ny7I-gK8n&*0l7BIHcf3%a9`}94w5s(LFD~A0gbLhBCS||dAZe_$uK;?r*}eR4 zac$mql#!k4)!Y)oO8}i9MZ=&Mhp-7(17?}x#_k8RfVN#?6kUciSu5PE%!CPn1KVKQ z`C+56DQAbUhJg0a#kG*(SpkF21+`(Fe52OGL(!!>U(-$Vku z+oD&li!TQ}-V9CK9{qC%`%#V?=MQ!i_h^97Esx)rlKfR{nz+Z?dp1S z{+?HEL@u}a0)=$^*?_9IfOmK!Sz)LL2Gt!*zQrX1kE}sI^m~+mj;Oq_^f7X=0nOK4 zG!6R@D#tr)%9+JsvnrKVxvWGt%vr|E^^L?F#184EkX=iR)3~4p7scv#Yp)`vcZEMR zjinm=s8fl;-mD70JH7#tKbtsMjg0lyTh}%D0^;q9!-S^xS*VR9*WHgme4KI?iKUHE zQMg#%&Sa{oKU6FLT62V`-*=w1uu<+nj!E@GLs}x>jj324it34n&@Q<6c(ldmZ0q>w zr%HBdDjFRGfLyoey|p9tAD#@3!_PuoL@~(C@V!88V|5+OBRb#|;9hkG<~blQY6&2h zoM(d&$)?}l;T5uSv8U(@+nqHgnYO=~)_-km@*nrDuSG*=H55*@jN*Ttq=9sEG)c?rzg#bS0qJ#XUem_9!|jWMsOb3KbCYp zFMn${%aRI&|AVbk`M)wpJ~&potUR63Zm2I$T8@XfSM5kAM`QDyAsEG3BB9UE9n zOp2N=D3%LL$@>hIfHoS4gLN~qB)6;BPAn)P`M%H%3l!S4Vkdl)awJvMOcqfE&TmFx zYpXs(T-x5sWbDV;!tk#wJ@j-C7qLnk^i%eqr2Dki`#tw`&d0Oj3_MzrcO7BuPGEyJ z`S*^)MZw|V<E!#AD=QjxXbqlUgdsC@l(&t8*cj+MywZqq{Y4Ea|fcXg> zbM|abY}t*iO*FI}?l+kk&-L0s{z=$7?=7_oA?Pm_V0wVCI89?A2Qzs~(8;-?#{sHX z4X(FL#31*JU(1qJo|=JZlWjgd^7Hxb44tiC8 za4tkHw6}ovHhAXm0!|55fG?|@Yi}l#)08{a)6RmRL+3;B%^LX0%dnfjdTXO9c8_$E zIUI&FdmcK?Hga=6cSk@hr$84W*367*SjV(v89RZU1rs7JApJSv(iNK?MAVa*qSSd$ zoc#zt$k&XWUJT51>{LhwC<5l>X4Jyprtoljfp8OOE9Eb@j=c12AhmZTuG!_DFi>V! zy8Pwetrx@WU}}BsE0DrS_2zHp1*u+RW~YJb9`=mbJr005i_RYLq7=3@avG^@%?iM! zNm~QBEl&Z!VGUFrmqbo)%|4hNMX2*Q#0x+;#)F#vuy`j`lLHc=Agv8JDpUo5Jp|R~ zQdWQ!D}37q1eFGG{fWuT6ZUBV$|r)@X`#{IEALmesX*;h?oqio*Ku6Aohp@VEdAU! z?;V35pzP|7YuIQ7Y%iyP^CWZotMjdjO-+uhTUJ|w07kIiEdTT90n=~_scl)vB*k)I7rRXhUd%)>^%WC? z*4h+^K6e7KJ=UG*$WS?;d)ixf`;;`-xF?3`lu2A|5&QRw3OiL$?bkl6RK9*5YP!5v z{jFJt^@!YYme1ONiq5tkX5z7NMi~5Hdz?M~2D3r$+_tRlg(a`tC^n+vG6Vg_R4EOl zKE*NEDe(Y!K_JXvitX9p;4j$8ya{yoR{I6c5AWS!u`E3-t83PR zaH$8}0o=cxj(3tHU6YjdVJo`TW1kB*vYtfQP*=7Lm`3ozHG%y&)jM&IG8ZCiKZj!^ z2Cax~Rv{!IL>%W}=V-!y`)_XAIq;QPC%`CxC_@P(jUb8_Ab>fUu+@gHardfOtqTG? zK;H;|i5i+b3~vk-1Pan3s=$!ryL@&d_b^=_rlP1ht-5~JxWip4|D&o+T76f(%lfqg z>etkGfc4VZXkvs$rxxCKS@Yt&ZL4oODTEI?YRsJT4HmvFDm>-7+XzK1C2{MlDk7hl z=VL0{;nG*N zJ$5z$^qo1+#u8L(zrBY+%ZF9de+$&NMcjBtDY3uniY&8+i}<&Fm4^i%0M^yZ(4|lh z8RCj!(J13?Fx7R4|ASW4p4&P##ATQ>@hGR|{C?Z0N;|iywDe2uob-DMVJW)7@{H=0 zEr+mMiJZ6hy84@&%0nkVJ2F6r;rN-BGXFU4>7I>fe2BfkVj@GW=n*wZz>5h6%UFw!R_Qf)TJ$Z7TTNV&?nY>jg_q%prh>t7I|naFJ?oPB9jsNDMmv(cw(vOpwZ;g&ZDQqdl$I5NSXo;ueVOn47G?d5f| zR(f3iKe$VW+9ge&xh~)IC~2CSUTJ@8&+tlwrdUd?PNde!d;HSn=x`R1m@FDz1uLN`tsCV4(NZs$Z1&eYEq4dSVlbprKj6V zue)1_g1JEkKgvP)2t_R?WfYy0F3-Cs?=ZCJ+~O;~+siWq+%139K@tKqhP=@8UnZM$ zW`B(9o!Lvn-p;f*s>~*DnllxUe2Igvh|Mkr_yFq(e*qkJ@+jL+Z!w6ZmNS9PnLiI1 z2?LZzcT{g|&$}f*@#L_E=P;=Wn?aygxB|k>0nxxS;}eR)MO{k328JItgu=7kgzN{} zugs{_S$X5}6LledpJID2c|W8`%Es-)1U{H$p32TN69PWp=n#FDz-A?wZh0nEzGLrF&pb%_tvO!tkINB#EuPs z${dER{C0p=`6~8JK1tDHOVC*vtaD;~ltDHfUyX5L{=zUHU%04Po6&t%Vo;$<2LI3s ztqF|iv&^v4M$3<*&j{#p0Q2H!K|GHw0!m(9R#66)EY6pd4XZRCFn%7d?DZQrqn49c zadllsp9YG-hi*RUS!hxKGuuXKIR4TDA&I4yvck?FMG8G(xY6K8s;N&mn>4!!kVM7( zt82qou0WkDMJU_!*4clz9I5r3EL4_MK0d9qY(C zFI)tBYHmO>tLdx$zJc;u_6i30BizR1O8*>(8Xa+y*WK@Hj7U~#(eUncK<(DFWyca} zhQQhMte}qGc-+TG#|*6mL2HM(kY=m=$5@`mTj>EX`GSQ>fKcUpaJ?mVq0(+-73{C) z)LfY4$B*vSt54Sep*5{OaUh0NA@eVU-~qk#D@=G2*<#+3gd8{8*Av(%Q|G-p zL(7ICkD=8Mj|1CkL8^JHM^6_-GKhmP&f{$AED^ON$n`jTitq+sD7Lgh6xsR2f8P$q zrNtn@ynF7MCFmx0&&iHkmj|!KNI#85DSk_;h~QE@}yYkORjBuzO?z)|N%8k`0MN=te-K29p!#&0;==SwRvpt+S3Z0tX~Ev%c$ z{Uub+v3Ynfv3+f&a8?y?f}&J&UeVgAUOd-0oB4iojvaD#KUm(9;!qExYcBIXmO#So z?radT{Tm4|&H$?}Mm06T?bf!ma8uuenQT_5cmC4!Z$2d|;wESc{&p$hf+jPJON?_U zJW!?{bJ`?9r>rk<}REz%4o_N>E~P*DzfPamZr`9-b){@N*AgnCxKk z9$a{D7KqinWY$f`I%UxNDzPcT_Z=*-u%iM_)gl(Vvy}IRd33n?j?vuqH;y$BLW@vC z02RLZG*gqy6ylU4?3CpF&0>QeZaGy841*X9D_tr7I`^%BB6cs^Y@0g@!Zb`Us6XJq zKF%d`h|F;ldP=4qMIW2Xo61Sq~tL6rn;r&2r`qkcS5@X;SFZWs+bgUO| z*DN*{{NS`F-WJ$(=B^yTYjbzrbktCs0(E_m3R&|w@h=Ve-j#kd=7}*4$DG=VtxRpJ z&j6^ABEY{q^alzVv`>Rhh%DMj`;6#mx?KU}*W}2o>hhA#BOjY3kNmDSZMjNmZZ4L; zNHyQxi_Fw4*_Wt|&f#xf;J3aDWtw9wwR72aOzgh_YXPbeARpP_+QW!ard<_~JJ~j3 z4$6=Ghn>B4`)orJ{D9>BVZkQ0p{Bpcr<5$kf$u z>g?hxa|tH(^BsUc?K;s$pu0FNZDvgRng$} zNcN9b?o}~V5`c+#pSdq1(;)z$Mq!7`Jyl^?@4V^JBmc9y1yoS@)A|DewW0r3}dmAkVKbSN3(o5aREgRD;EARSG5DC zG4|JQzF#$qyL6wj5p~91rf7P%Zy&TW9Dk7B4|kc?=Ua%#@Bmas*{Uj9$xaj?MCikZ z*!)@x?MElNzAi|4osb?Zh~NMlSuZpofux0&Iv3EnQWR+Uq4~9q-i4u@YJN@kjdKNr zV(#1XABOIsO!)HsZN@8|?Z!XOzFuXc{kc$4RzJuC5kDQi*9hr@Ew_DZto!Ytqz>BP`>5_e&z{)6 zr0VgV#`^2xmyJ(jB$3KC7!=F0+dNsn{F0yJ0NYDp2pg;-Bg52-nXU0e5PZh}5s29Kx5zXZssR#4=Fha5ZZxpyz`5~LVt zIUZjh%U*E+X^;Rk0u$Fk*Jb@z-=0B`8u0%P+wvY<{;WE{ z27BW@QN$HulI^tK)|E#xgBo83|C}?;S9m&rcK{El*Ye5xBjxk;nPqf27fpv#dnej# znSXNiT%T6DRjyt+?Gw9~1Uip#0KKC(tF#zjk{R++n-?NkX)KFf^^eDEI(Tg@NcW>ZZ8 z$`O?92K3+0nm?gK6GW=JIW12Qrs_!Z{_-r}BTub;aBxRKKzC6m)qgktDK+lv&F;TZ6JGTZ7oc^EeHkyMZ0CzpgKg7*f29SgmF$X72&#d&R_iEEfHCiG6jIgf|0MWmt zrSA>P_dK*9_|#Fox#aKE0Bu~N1Ymx+IWVp@@?lZnt6kG;8}49~8kr@7Tv=baUzYij z(&7U_BZ7a|)<;y>PPMV}@IG)obE8FY3+$I87_~ zzujxI%Wv^3P;1{4&PNhHH0Yy1Sw&?(x;6oDmokHU|pkcLPKW$@P1&_^nxK zD&^Ky3-8AR3+p<5&0^<}e|udsbOM7+{|j zt)4AhYuK$(3w&z_3_=tP$~Xv7(PR6KtZ{kmH^-gnnABiA)%vH-3fw{j2>=H7|iC(rCy2?-jCnFh`NP@{H&8No5-9}V6KRtQ>{q4szPia#lxIu z3iO8y55KmhXmX^(l5$1w>@2A1L*ZF&x(~j_Rz(^(Vi3ea;)1${xyIuNprf&0<|)aL zYTgJ-1czj22~&k?7$n`jVdq>O=Il9%@jtT#M&b$!hwa~*Kkz|l|1n848umcXg%~ST z@^u{vDrBcw{tpinBo$OEW4{ZM!@kFZjs-T424`8uThsZS3*yWoyIKOLHPCV76Za3` zY6~MjUkZAa?X7tZ=?W+Y^d)^>wbxAaor?+&Twg?+ch$5yoEt2>()W#Rhj z`&~+Y=xuU+wOBQ{tv;xlecb(g8u0n6RZ__n@4kN<1hpCP`=!mYktU>V{}XDg%eD};3|Z>uISd1M7lMFRXNS@_?ivLr{U+1olAQq<6R z(CIt|@>k9xMSAJbVgCzD-M?y&OvSYt8=hD6z6%jQ98_LS0*oM6yX+8S<{zu}V%5F$ zR9E!N&v#|NC{!4Iab_$b@*yAmSse^~bchqu5N!EbtDFe}xN~!vbK#u`@RGeE=dnv^ z-k1OGe53q}#Mz-aeAtM?r{`b<-vO_JDBnT-vv1tXLz7LrCfd}!4(vMj1Ue~l@lV*A z*vEuZm~vTnlWNw3hGFvA4i5Me(A2u#D_^1U!;GgO&4b2T+k zcYrgE%SuAU2JDZ?Ex)+q`qd&QhCl5WDfU6BNY+uitx}tm`yQfjAv7?%yoWF1+-E^i ziPpKl!E1usAN}h2NgX59uN`sWCJuF~d3X6g>cSvT_n4!U_(SUo(!8a?r^va#INvFX z0*&;r>84yGP05ZB7l*XhV0jLPh7do;Hm6DSn)-Hb9LG%DuZzzD`O_W`yk1g;3G(Zh z9?se~|Ka@2JFM1G(6+X(Qit9z?y!Ef|0eFs3a?&Akkm1t(lb-+YguM`D6XLcAY9uH+vCN1E zE-KAZ`b4;S;OW+paS>z=AQ+@P@Bo_Z6b7Jfdtma;>Pa}e414?JAeU|f!-O;pQkCJn zV9S#w_Br^m7@BrChQKD`V*3b&M#%>UUh1GHQcNdZP|!o9@5@^{UGJOM zFT!-p?g8VuLPMX2PPz#4;yi!5Ocs%0))3m< zm@k{;WQ2Q@F>+FRrX-mE+#><)d1Zk6;b*Sn8!T!z26DNF-&lM4ZIOdzh!MNy?exB?;aRyT%5Z@D{2!O&Pxj96hfPmQLtOLNiauxSY4bgQ@#BMp5; zG3Mu6T`N8BpzeKIPyjNaIy@go;R;!1+@qVOL4bPm{8He?{g7mKqYL+>PyO;2`FZ0i z19573v!CK3#|3ejg-`5V0Z?}eG_Aizu#0wKmA2GJ>@GlLs9&{jZ9o=NtFYot1w|_y zetav_t)|9_`LGM^BUhv2r8)1C5s}SsmrRqRXz8*?%_I_Y@ewFfCub#xulOi&v9skT zwFt-6O9QdX^i-mU&ZrPehlPvq_ zm5{I1y+Qc@$2nFWuDgl^+Vh@Nh}-`zj`)*q$y29g7E_vpj=awT8)>F z6>RuvpzrhpZMxexQbv^fVr1 zRj7}J%V>!Um|hKSmd4TAR!PVxR0xCh%e6#R(gQDH5*;dMmni6DdiA{j5mQ#c3I(D# zArAi0=R0j0OG{zU_~Dh@j{WB?@1P&X5`;|X6t5HL_%{aNj`foscub8fSc&`;7G4GE z6vUrRRyF(kimqBOurBj7K=&f}2mqZmI>%3cj$Eu*Dx1UbC57!Nwfu|eTFDg|RVWzX z)S-nC5(jq_b5?j2NQ#q2T7Y=pS77VM#e|Ch4?p(YPKn=@yOqI1^4DPL5fxw^O6~SWxT;T6WHJV0^<~I1Z|96dMIxEh0{CSwNicWmKzoIV3 zSeCaFU(=k@OujqCGJZuB9LPVkYtF2OchOtAIG2p(B2%$%eehtVPDF$<(lvu)Z;dT# zZf8?P6n~4yr{a8NP!Tx}sOrB61{P`m!M(EMxyjZzln{$ac^QMSB<%TxUsxKF`ms+| zPoG##f`@fuuYOB>83`qIitzrrfUH`-3UpFdm>8!y?C4a0L|=L^3s|g|h~vLLJ*mzC z@;58~JBwH7>LiA&X&<_qy)eEw9Uv3Se^W}%Wak{#6 zT60Cp_W0g0B?IO(WWM97pE-5#6*&(qNr{mW#+A%}xro3N2*bhe3t6L>Ql5aBp5I>T zMX*cW^>|GxPt%t8+;#dvw`FI|ZYev}i<=6~ zN|fzYCoF$6X_S;nvGM;HJ2oX32Y477ioC=v*sy}#i3y$2hqo(W=vA-GSB%%`xNzcR|X(WNK$rtRR%i*t7!ru8oy(D7- zv>VZLL68X9J84CK`nbD2zLYF4BJk4r{Sm}A|D_e>RD;1qt?yFkbSNoYNpUcP|@3~s3lf9A_g7JKjlh{ft| zitS%`1J~0cp|QdZ?#$lnj!0w`$yX4aIYqZxrA5;26JD`xJ^#=4mEPx(_aOI=qTlE(@^Wc2FGF+@x_ux?!J zJo>@2Z=}=^j#+oiny=3oKW7n0k7+bZ{dOXjDa-5FQ7Qy4szz0ZbPj4+HbM4XD1kEc z$qT|i(Z3P}r5|nBvRYft=f@6?v=hK9&LYF@BP#x^I?3+Osvk6)z|%QS9y3hwqLHAW3>n1w}q8}(?Bc{>~|i2CP0>hf$Ll!ziA`?LLCrj zhtcnvt`|)T%lk3mf&OSuQ|sl_u&P`~c`J%<_Wk-i*`Hyt$uB!qa}XT+6IJ_wx<6m= z*g|0WIci9x^I7zeo5x!C1w+A;DmIcN_u`#phA8vkR$Ke6>4p+TV8~JB@A(p{Jaqa?#uhR%d?^yQR;;JVK#Q?yiwR5zI?;r0^ zJl0lZwvUC!Y$cSSgm|f#ep+x~WtYpO^tf1C^ev(?rd_eI*;(Y5g}9xxClwS)+n1{! zmwIPRnFpz^WIpNNFyqgDxyr`?A;b<$Jzb`QTn|DsXysa~$P26Krqznk0CV?b^LJj3 zKS;fai?*|lGHw4JJxZ0kzrA(bdbH4^7MGm|4L-25gOAlzrwG53xKsL{%}1rXtCj|0 zqj4lfkhz?X3R;mDE~Am4hPI_f1podz>Q0$=6*9^}z^zA_&agjf_ZC^Hz94Vlr#owa z$FFSt0>Z-&IVje!$B%&|;hmtZ&(E{Lw6JNodAc4uI>0V;Q3Jfty{Vl$t|Cw`qN)?y z(^QQ=*jX^%4IWa_Ts_iH4|H4)!Coq>(PmHrGQ}1EROtZ!i^+h@uKZH*_(!F3PyO2e%;f4nt*|8n z|3h4S5We2i*x^txd=|o~9$G6EhoJAlr6)6EfsEXmD(>kd-?A$ra_O?K05Dh2QdjBc z-}*%XOGW!MG)w0WAVov#U6(`Pd45dJ>_d+Oms#}YvN$`cevno;|5Id;O!!qW>V4}u zgX$^*hWAW7|22US7TO4I1%zOEg-`iwrO+z9b^nEr-_2b$b3q{_h(HslPFUDYOWa>_a~6YH2R>7_Q13H4AKjR(L?zwu+e~ID z-FixueU$X^d$t0nH)3so%mRcS+eQ4XQbIw<=xoe(eLDI`bmTx-wP5E$ zMD0IzqGhDa*hzlu9J*GFK)j^Gc%_1osHKyb?TR^wcOzgR@tiV*dvnm^Kpb%p`EI{- z-lR{Y_de5huOsv8$+5Ix#}~Hzb|)HmgoIE`MQ_tNFZqBAGOwj8&+-byA;X$p{h|_0 z)awDj;ekp4B0w*K+ittyN#F~|fkIcYrPuOgU}sG}kQ8~e*0;6)y1dTAck;^o$3l)N z@;nxe3-#y*q+#yax<<~U2Gr7)+GkH`RC5to`I?`D3yc%^omV+-$v(`pe|8w2n5RtZ zMP$8FPW?@=JbM*7b827ImD2cI&_Uy|s}z)b;qcNYI0*J2P6R!Q!xPkLaATkR+u7xJ z>yq-YIook0#R~Y*htd`99-<&oxFh+j(Q?aY4`pQ_9 zBfgT4{q@zKrygNid>Pb~qnwVljV>o`w^6BarKm4aL74~BB5|GhE_X}Zj?32k>LA9` z^RZ9ee>U;5j8Pi7c82TdL;dHXbn||YQ6lgk%~IbW;@tvaSXIM92|S5{ z_96m7F^Ph&eH_6omsvS)PvIjcQ<9&YnvLmF?M)l1b=@zyZ5#winRVQy)36R}k13(=T&Sd+0(9Z6drMjjPW=2tHKJ7cX-%#L|Wpy9y@5 z1XjeUh+Va?>W|+)nwh%P?rm}38GiAlkl}esYpNhaKL9WhpJ{x-^p$*{2e=ovMrLg- zR{zP0Tb02~7Nn6ot|F&C`bF`v4oeP@O{a6cTII8u7-8cH_3l5gh=@BZYsFIE zQ8rO1oc9Hu``AZ`(ZEhbBq=k-K;SyKe5w-JX+lCFGHuj`9B{K(wpmgL9kl+0pUlid z#~1y{3$V6T0ZuDUcNkH{M2r8O&o$jaj4eQK@+HY!m5%(k9S)&w50_M>PjK-|H+x$K z=|%^`F)-|@{g-KdlDu6E(#H0KkWgXwPeW$L9$un1mB~k`i9(X%c`b-|?$IsxX)Zsy z+@q4mKMvmUJ;HQB5}?2>r4;x(TodaNAd*mgHF3_cV4{K0`A{5p?WZbSWPwM z$c1yqe{Ff?h??aD+kR>;YigVw?jUZ|?py0z-h)fwzI8+S7%OA?S1tiNmn)KOTp)%n32$UeB4@OmfTAOejt`35$gE#sB^qdasSWM6 z2U(+*xc#w{o{56W5%`c;b(#2L3{Z(Ka7~{$R=fNqUj#y*JXprF`WiDjAKUwm&vw6O zdY#NX`b_&GIF&XP4qyrIkB&ft$A}gyC8GN^-hQKS-1QMb;$+8saH!nobBG+#p9q3+KD@ zfgGjVn@06IX!bV~Z`R-G)&I!W4uq3TraG3{bas@K-|vGbeGfuZfNx}Un1BDDYoa8= zmatbDt2~DWM}*xJUY}~((Mn|t1@G7Ya_vw|bpm2Ix?m|`I}>%*tDAb)Je3j|k1;K7 zvB_7uSrqrr`a;AXGmqG~ey#zsq{AJ0X!$7K)*1FEijlYHQ5ifrq3ZP>&veo{Q1~_h zJ2W$P5lO4suO5>`c*>z3*_B5DY;78@$k4Qj0rGP{UHnN5V6MLm?FKcY8H9;0a_P${ zNWCraxtrjyhq&F+6)jO%0Y^_eJxU1RbJO;EqC1h4Ysx&(iLGdDW$!ji}B zW}}qbjYthBA?llU&|lPfi+fwi@pUC@vtl}d)-+d8(q#Pu zt>-dYlIKijta{U#<7(2U!6Mz=&kW9X3Dh0?v+@b?MT|g~V!q>gX5aqlDjDP}eY8E5 zKxb2+maTbg+HEa?8w)J#I(b-+6vnJ@a zdu>}c2uX|~k8d>Fy}GJlUhv^n2r%qKZD5mAMSyl2)ZYn$I`7+@xO<4R>w0ztKr2)=CY@Q&?)NXzVme+G;bGSIA*)z>&=kJp1LE(v z?tH;SK?yywszS)AoXcNU(ezMBu~(B+@_U}|)t<8(pd@=0G@XGy3V6`fy=Rug>#)vJ z_NpHnGZ7YrW;WAG+X?NefHrX5N1|D*V3oejrMrPaK0Ru$!cpqCUWN_5B3=!H$iKu z;3sRlM5%rYKsPL3oy z5HQy&nP?Z%PrewOZhqEo{qsV8oaSK6M0L+G26pJ|VT3|!_qDuifu$J$*XYlj6?T(% zYEy2xEO!y}dpP-+Q!?{c^pgc#A0JM+-DwQ=H0p98M zFW~ykx}dw;EGqXdH90a>O*J_ENq@YXk83jxy!Px&0ns}+Nr|#RV21i*4k~3|;HThhO}5=WAa^L@Y6eje&t~<)C*IYQZ;-D+hO0CuqMFv~GdQ z7Lg&*IU7r#6%u9x_y+2#*vZmg^2hH=Aay}VwVpR6lb z@&69LEqj0N_!}6s=G=8>{&+vE_-6d{AK6$#@v$+D+M)1k;=n(>(2Plqn|{}9FWA&k z$GUEc;V-5@!DD*s3XrqFfd}SHa2S?DybW4XLN+p!f*hauBs+e{xy&wk>h3chw0+(W z0F12q7)?atE?EoPY0JXOLE~AeQ-Bc76b`$v!{H!YG{^V9CsMztrrjk0g zdfpalM2A>Ry9ecWjnhKI#fQ<-3qsMWpplZ#rSS1YERA2=0y_Lbf7w4Qr{7X;b~vD&x^L`z z$<}~$p`$sVBpYWV^19X4qAXivuIYiI^;^zc zScvgiG3Ozo)6-DX^=+@}BzHW18bdRl@uZ9_9Y4z%h`2dXSR#jH_w7#=2dt)Si_OZ% zC-YLRBP{QwM1U+zXBT1q_g+_>6Lxd>aPobF(F`j%>2pu-G3GQs>tOqYZNJwC?S1g| z*KReHDA+m>wN%5nVy+V~fd zva~_kmdzU$8U9FD0dzFnpHiDoR*Qu}j)!dwr)Qzq%cDUBhRl`w*($w5t$A}o5C||A ztlw3dYP71U#TEU0mhNSA&C^&RtZS}+)|4(f1Qbm0p5s8nsoyXvHxDq<&LhAG%#-kt zS)WC>p8<24$&vN=(t86BWq?S#F&}%Et4{ROqOfA8O8PO?i6deVI`Clow=07f-D7z& zWM#h8WX`xLvG+yDB3BeXavFCCKR0@C{$}CxRZu+zVB4_JI3WchVwr(jUbYw_`eMx+ zjs-IuGg1!{0SpJb#3cY2TVhnsDYg6BAAZ4A^Xh0t0b)BSjGk~tj~O)O)-r#yHX$dh zp<(TkSOLi(xtewm=dpTtIt<8rf2*rF&8J%ZRjn4GV5qROU^?pAbo@5zFt zy00h!QM;>Grav0X-mAQS`J~}Z<^@2^2dpBOEgtHWJFV4%ZyY;8YkIjPyZfR7f^`M2 zZIKFa@Y(Ao;36ypj<=Vw-F*HSOcZiu@3k3D8&y%X75YwOxjT-xK?mh?!husSdGk$M zK`9~QWe-dyMU6scqi2`ai_(+bFM)8cotpqx(ZRQ zkSbo6Z*Y76sN?~JYX(OR0r=ap;*eL*L$iwLmVC~*-l`Q~8?aeG@lj@T`0l0TqN87h z%HhAehMo8Pb&Ca>m+^3g1=`4zpLW6(7rK zswS#C-@4{`vz8Z(9Nyt5?(iPyU6P4@wK|XltIt(TCu{6yyR`cue`DM?*7k3(poUP4P?Ib~moAy9j`Wm5U)Ge|^z`&qBSFETJDl4(hpmU_B5efYL9ayJu}1Y z{)KPhcEc~5IZ3)2?>iy{4VAf^F1Whyr*PZx$^a<4{}9>vnCMPM8uDyd$JtG^HYGC3 zC+1x!Y`4Mi7vbKeVn=sgV3Kw%_HJI=xFO4{`6W!sBi9*Klk<23f(Y;3JuIvfa#i4Y z{P1$gZ)nb4cf=VTU<40z8r`G@;vDat^~<|4B2*hpXR!bM>=GqEGN z(N$TO_iG%>ZKLw)LVW#(tcwo<;zXr~^J#roSr+-;l_@QK2xjfX#*iNAe$iWIBdnUU zVbXk?89N0yS#N+1I4DxASE`R*5TlpruTdA%IdXC^)Q8I<>}8!Z!(laI2KLr5EuQ#yiBp2dIZ(axa{p8OQ~d2W;DP>jzx z=(<$UvK-R;5i2cSHuf|)Iu`u*QgqB-T-z$|c6=hwgN!9C8Kt?NO@RC|jVG-!!PfMU z*Zo8q0fmZX;1SQ;&il?fIi+UFW;Q;G9wZkA|GlINPeY%F`Im#!?05wY@X<;k>kZ57 zb%1sp3o1p#{+;t{fA2rEUKfClQ0+OvLY3d;9n?42PanOIZZTq4+(gQJq7ZKX?fNvA ztSFCz`XY#o_A3YPsC=?C7n;(~(?MRpOV~#R#0+SH9e09`n3Z3-rO_fFbmZ z#PMYnO+R*z8A}ae4ghE>?J~tEB!3XFKTK=ZgKqNtJGK~0 zk}vLLv8h}XUO^HXzC8QuQmweJ!8K2_Ya6`q`arc|3DAM_ai@X^z$f^wG0Zn3BSK`U zRFw*c8(*FbyDs_A?-ibX8p&Y)_=N@Q(K%lJeuXbQTt%@b=_1*Czyx6k8b4sl5ce)! zb`j$)1gkg~!K;#Xejw|P#G6TK!%{xlQd538Gs-u5{oD)Akw`kC4H|& zh?F87Qj#u>x|ARxEegnzmlOoPv);S!@7sS__SBp?GtbOC6aD}|E)kiVmpZoyB|enl zXl~y3SNSVlGXb!K4w0K*_54sb0d1>eNfbKE@;!a;uy)I5>LC2Wqp01Qkcpp(>{%^@ z$~gx9Ib|k_4Zbpnp8d-U@Q*OY2RZ`)tsRo&^=CV9_XW6a>wEH1_`jqnZb4vSMs%Uq zR$j8n{HK93>ogreSseSqz!f<$PQ#8=BmM(#KxL|{4`xTX+%QogZT(r26sBVxyA zYrZV^RonAX-d}o4#m{3m``o7f6xYk+!K3ajJ=>@CdoVPT_fo$U3~8qp#{sPJ0UD;V z!w;UPGOkjo&fZ%O|LRrkJt_IRKK+-kl0#b3%~-t_WHc7<>w$8Hs)t^#m{0$ z{QSD=n)vVQJ=h)*Ni0`VbpywhriG%)ULSxJ7Q%E%|CtP0p>~8J+EoTWDU`**>*jf! zk(Y5=wjwb!ZL6QS;&Io>=DOqnyqPmK%+xKgaCC23JyO;LmXm}5FkZRZTOD(t1VQhF zOvml<(WSZMBfCS6^t(!1i?H8tn&}yNYI@iPG2SuMkNA%I!?!#9YJoevX~YERHO?Nkai!ak;6a@2fJj>=DLZlAZ$|GD2eq-CM*Q zD@KJ@CJ%%V>qA%1V}|0SB=qR{^;`v`W%El)V(=O_Tkm9wXN|P|R0Pb2hiq%;XVI zgQP|k!nuDJ3bVQ(F%P=R8)06XG8W=pGJn>AD+S73TJLP? z5ofK}!IO~go=US@Mg3TwFU#4~$Db9j(+s?Cu#Y%UaXM!-jt(lsoLAD&NMN)Hsfs%Q z;A)?vG z*{-S5T*IHV-?J!pvlb(BwPRyfm#$AZQo0Dk`j4WH&5np0w^0l05w$sxU}fVQ?0R8& z`bW)!;gb3iA|m-$DfKoTb?DO(;!aF@#as!V0DEoEtut0{<1GNbLenlm3-#w%K+E-* zGo!N>CT=PimrIBP4pb$2>hhbu-WnF_?^46X$5J znX~c&>@Bj5@YqE5pTRh0J3p3*d4FaL=e8v!*rS&^^e@ zXU_?84R@-8!Fv4mN2kplo%up$P=Uo@3g@{&&R$^NHT(0RQ6ZO$G!_`y1+`mMPV0tA%W^1=jig`hR!j@c>;%}z=Di8Ylu9mNcHlyb{3zC?o1^!4Uw9#BcV3@=*&gQteey84^ zLB*zr>5!V>=H%e9XUPsB;_31{MM!>tJtbeXVs&R$9V35M7AfkSxlmq{&>{JvT5mlP zsfLv={6O&u0L z1x3o&(RiAm%5c%x7r3b0q4BevfhXT2*GPXtPyuQ|A^*GH)!t}C zQD;!W{y;!eWlh2dNlTgs&=wgHoj6yDP8(z@h8>e?N06@3QMFsYTQdq@cv*oY+GzpO zHUs?kVeEM>c>OQHq!XCvSm`lE)N8r_G?|(40wFacaq_+wFWdFQFKYK*$dA*&m%Q7e zods~cjLMy+;-(L_-Ak^quk8>Kl5qmex0e8pFK?{D?t7@7^$ zrU5$mKUfHN83MoWwgwBCnr*q`LfxSE8{f7Y9e^u=m&;`++*U+V;`^sd3AQHkK^?oU zRKNtvsn^ePs`oUO<=R3*d{uijlG|QB!Yq_K#of9bfgQ-hz8ZH>{icQ<=#cqou;;&O zP1k<#>MATABYA~TfF{i@;`*}*_2^~%HZ5Jv^L`Gt`-Qo8-w9=PXrad;j{J1N=n^D! zB-(i=!6JSwfzI}^j+uDM2jKm{VCRGv&uQWY-gI$>>j`JFpB&sT+&OYKgib^}=AnVC zfZGC^Ik3P(yLmgg#-%rOl!fj7**`bKx{a@;mrhj0(-%YM53|k|jPWm$ZR{ciq1(aI z>D}R#eVUaPId((C!c*e&kSf?oh$lWD)3uzmu6|Ad+R4d4=p#j=gz#_OYC9NA0yOXO zLqb{J-}eXH%}C;BL$iEEzq7$In3dy};ToMrs~&8{loe8*bpwXR?qWyme_`3-6uF z09W)UrWJKsa}h7zT@~Gg3h(rYb*uwM+ADvPW%5tR) z9(BC!)OX-NN?_>Kq|Y98RMU_d5mtw01@F^gEHX1dIHTHo`Ji`gNYR^*qVY|?xvXW35ZgN=!Y6K)~VjKBMkqIJzkD|U>{{HcRW=;xI&9JkA zqJDdCC{&=MC|enS-K>trq=_$~>E1QU|9^m}clu8*(EgW_@!M29>u}iJ!Lt$x>n8`H zha9gLNiQhzUACfU`VG_BrQ`g7D=cal(vMZnZ~vWa6XB-Kb%}Gund?&BHi{NmsG%_+ zT~wVG>|;51117rIaqhsXdu+uVwcU?G1O>j6Y?x~mtVc+@UYk2R6)Eqwtk6Ty&1Pm$ zqjwl~vJvdj`FN3*z9!r%O@{pw5~%l;mG2y~Nra@M6VDVEw?Nra4#2a(T&e3<7-19E zpG)Rlal2C!qK{ZE7Fx!%KUhhtoEQSXkiy|tU=$cYGlF-}XLe8#6+z%I595NOuF|p^(eE&r1Eru~yZ8Zop%<*5lOb36whwOFQCBKGqxuTIAkoXfYStb&>L_`?Y}xl`j`M z9sh1qfZaF8A6#Tx-SqechaDMa7KL{Luu{?jhASEaQ*VdpgRhYuyshN;DF4G!zY`3% z`*zu$hR=$LA(YNyGjJEPrZ?fJ{AVWF@>b_ z63JM$R*PMtTJH$`&g-aL?m$`jxB>V`BvWC#&27GW?-}q6PyX=IzqBulxfbyc1mc24 zV8+m=+F2SveHw0lV2Jz^VqKK)jxI}Q4i^7f&do-kBYH5jhWJ}zOBCZXtK5!HsKnMM zL^%AQ_DG-vzsV&cST?9xIRc!kOuDsLrrta&b$9FK4MIFC^70yYZF|_Gga7=(Ix@T> z{+swOXyD8+trsht1n5hswb$xq?H?~*8a@8ei?-9QBg44S`%AN`p1D9L=M2Sa0*vqJ ztjIHJD;*XqtRPib|2%Nij;{-uDe$;`mB$o+tfSc0D>4r2Pfs)n;3XHmd0uV9*i7SK zcMQ$aTy2zX0aZldv0_&lR}MF=)-PWAon8)|e@9#LdHd=P{RVjbFT^4d`d|p6zB$Ma z-?fay-Sv`V3SO?KdN6=a#Mn};!nUeBsOM>ePxvY}^VM6Jf490Sm`cdAC5{GMPsa?b zP})+17S?1(^FNcpsX+t_@%?Oh#r0Z0#CtYWWyWmQOhkiYJY} zt!Tn4N)y8)U7_#XWes&%Mhg)ps=-_>=O@qU`P#yL+FXezh6DxRQ}AH#88JUR^hJd# z3-K$chCgc4Le!h_g3tIYa_88dIyD6KhW-GF8f5!T?dHYI3)R`GEKnMTPrt5TlDaOF zi5N4~xC^z~2>PYCyFV|-XQX;?owHw^>F(IHz{@S#^9b;+M6d1Rww0U1&`7Fmu!VC; z`%f={&Y2DPM+lS3`P5udr=;%t zey?X9i@@R4?sZe+LU&p;{#*~B&WgJEK+R@8NHpW{Vd$t znd4#xb&Ve8&8N9JG-7wF0J|dooi_-IQEh+3oP!fA zf&bmZ{~iLn6^zGdAc!^9fTbF2*F$7<=BCn~UtbVjDK}~Lv+0)wrF0|!H81m3>XP}} zgE{HP=X~G5r<}3}5o@6lc>1;CyeC_T9n2h{T@}CTV1h64bEO9qWI_opHePFLwGK|$ zL=d|5Hr+76L5dr?;S#q8AcJ40*S*dgB>BjIRDMHr`-5(jxWbz!_}Fa(0IRS74_9>5 zu=wkG8A0*Q0cjOb2zy=r*&!?%s_g@Rdo7a%l9Ro&6RI#DIMMi#5IIYM{Tdb?J7G*u zcfm1JkW(g-0;qg0-j^Be*^N8=jn9aSM#Cnrj)GS3Ju1tg!WUKSJ)+-c7WYa?zKKx| z24)wg1^$eI$7*Pdcb3^{ndES66%h{@$4p4PurIxiqir++=A^{!^Jhl2f-(gGTK%G` zur?Ph>}{%{bg1%EiVo^T?6NJxn4ZQWWY;@h{M3J;5daf1i8`8A#+{)VZUrgpytfjF5Q2U^X!RJWY%Z0~eqJUntbU;)-2Gy03;;$1O{ zsYn=xr3!~eVmwi3pq%6Q^%(uLl;H?icG@~CD=0uLZV{eYkf(hGRd-hqbQc?8w$(YX zn5QZ>RrPgum4>3~Iz03>C`!PD%&Js+KaHMH!<)K{Q~1fVumKfp7cHpni#B$nj+i%6 zk(`qjeMJ>%QPIn?4J(MSsI}G9)dYXbO?~a<4>k2D>ifbBl(c`DZCp+ruqVzBB_^l7VFP2d{C= zjr8gBTQ6ZU1ki;l3}NN?TtI)O#haJs{+cc>s(24bSk@`m{3?gmt48UFBJ748T7hO6 z5+MPyt%qZ4KFS{n^yPG8CUbMoew$lf8~1dBEn3M;f@Y7Z{1%(Fww``&qk0Eh1yhM$ zlaCuC8I|IIL51e?}Ph%TAWOveEhwL2CQw8%WQJ0j)$ zC=v#>P~J9|Ht`9fEYkgWOO4j#fZV5FVT#T%eid+--cY9!eX{N!>KAiyztaDvLUZ8F zdpjR!aY((z-k=YYV0o)rK}F9&E5Txh#)je_tZO;_eIsSMJl6wL@Q*}Ppv0@g%__uq_UA49 zmWscE@2n}}caJT*Z&}Aom*ZQu^>%37-UZVljw#d79;Lt*X|(E2DFJmwI(Y1T~O}!)e+w} z!P)otkKV@wjx%ycDon=%7bX8|D-qip%Lbq`UKOo8wRM>#YTFYGTDd3gY!ehWBoN9M zAExw;Zx4M$CL%IOZD2^BjMFjag{S8T^~nJ!T*9NMV9bC@%t!CkWQ7PyoUW7w#gY;o zBZ{lpUXhXIXGB-~cxfWqv`8gY9Pv)Zj-^S<_S_DT-6T{ncFH~K(&7HJ z`C7FqD!mVPnrq?&XG`WH^Q2EiiQYU7BP|kv6M>`}#M%(HFFzo!?!?+QfbDI9Fc046 zeRPm2K;UluZwR5RmDLU1Htls47+~)Apiyp$k%WvB|K$P*Sp%*}Jd5!6T?5}v4>cjk zSjUB)Qi=c{BZ>Iu!Q(U`cg00duuvkw3LDDjVq0k5qbTm7$Ju?Q)F7IyAX1{Dg4GVs z<}0O)62_9}%Mh%bD0|DHAW8X;D)zH^a{$!CELzI2QsFcFyt8fe?;GD50GXD1lPlAW z{mxDNbrCP5Gy0`Ly`j5p)O-8czsdlVXr|iYJ?n7pIA<{+N=BL-vV7gS-1ZFZUgoi` z8njL8)oLT~H1qx+sEI0^R!Z^>9fCr#EkhKULi*n?cWTR021rC$t1#{Q?v&@BSwrWn zLuG;ls}RpnVLd3wHG)9VRo1tPwdt63yKfz|z?n>huV3tId%>-aKnU_eK0~2`>>J;+ zv#$i$@g3&^zUfh=!}P%`|MablDIGcX^Ce}RXS3$;ZPc0+K6`uPW$(=4^5H?T2-RL&-7W}zNww^I1kn8nKt@>!=&VEvJi9W z5oNHfuR8Z4xei`7N0I&lL5J@}lXZPmPkWBn7M*?hJ1K3NSTspIoRoZsk9`^#|ADaj z3W?iBp_z1yHC}jIZg+t=*w3&FU^mGC!E4Xk$I>)C@Sh`eoestFr(EE$!_=TYW8v$9 z%{p;)onPkV%IH0&^!xidiI-%<66-5Yf2&j>QvOx3c@f)TTeAP_YDkqKS3Pa&vS8=W zTeSBUtXWI)RrnFWO`HL2TxnX zGm|j`Vo9>!T~9C-6fM67-{P3m$rHEE-Mv4_EmOHt)A;a1UC@c!-%pvIrA*QJqMp>J zePkZzSjTUbP|O#Ov#9rMZLxnE!ug_)-#Wko7CfWe2ffCJvflo_fVuXR$4pCO!{e_I zgZe(R5+o2O!xW;1UuypHDPQB;c@i}*OXJFJ+;Kvek`6%uS?2fM1m;LKO^vo&J5V>?XzHQD#j&9xEr<5A=f|Ga`XGAutuv-{rvpVw z_Fg7OI#GfG@`EPIisF=sip#OazAq;{@W(9=4Xr*bCLUDha&fF9@igp~)VL*-SnEeZ_V_U)Hvp&GNgm#@v_{OrI0#aG7U;Es+<=7qZ#!Dg|=Lf++WJD zEK`rg>g3Xn^MIXFO|=guwW0xL-^W8N6%Y1BG6nbj78$MOy^(m>nv(6n;3)E+=;)5& z(>uwa^k+A`T_&FKK}o+J*|U_!5)_XiFIKVNW9w*J?}kJ?enDYUCwcX+07il34Tf$z}JXuDVfH)X_3{aoOzFD=~-hG{_sjs*(*ZA+CSh?)N%7_CBklC`};Jescm)hp^af*Hw({OOkhnn zCC-0aeW&9K)YKvAjh_ewj|LmRtrM)8dMI&mgCQnSQKMP-o}~ljrZANR!1_G-jk;>o zUd+t=P$^IMS}OwkMW{UMzgjS~J<8q2pba9-l*(|?R8@7FPk%$LbL+xSQC&mgC1u1$jI_o#x~ex>XuFZRfjLmTfcAwk)29ps;+-svSXO}U%q0IH$hnsc8 zEY1h&@~H?g47mBhKPd=I@8MyhrTKcOR z1-`_UAE^TG_1KXk2Tfi>UUlLJ$$LFPt^iDUn#)-S3WV|O#0s{~2k;wZCT7c36;lCa zk@JQ}{$0+~s3`hrf$U!|lQ|3k6sUdb;ShG?HF=D(vr^m+ z(P&jS>+D}C{tGd0b>#3}zy@E-oCSOR3Y{Dk?$kyTFKVrUSnH;_seqmYfm-}JC{zek z_h;!YLxZ)~(lqiG86n`B(=)0uB!+CeHu3HBo2uj1E<|!1RBJ!St zApr|qPgGRfy?qnuvmc4U%j)I>v_P4hsJZHh>T`40)jXx$=fgK%HqEyq5d-%jMd;Rh zXn%0 zM8?hb1iK!;c){l-Wt1Xi^v3)5O66}6h0U8RyY84kuLml=g&~KPYh2)&_gAm+5YDG1 z={<7ir0^n}B_|@63*x?s3Ke?6(KPJxx&I7TT4D3>^I0*u=ths9FR57Z_Kf2Thn7a2 zdjyG*0S4fqKhX5gzowNL234lQv!H;h)f!>}mJB@aZ+oVNnu%N;KAVM@PhmV;Ko8OWBDD zb4ZnmeSfN!b-ORqq&D1B9(p8wX26&baTeFJ(4uyb8Qleo5N3`ag~k}%;C}(BQrG~9 zo#}jv3M8dAu^C?dwUTvfOHE6Lq~)Qnp*HvNyU&gKmEuY+xGV}6;> zKe8Y1N>0sOUhRluS}_u>H4S>1{4_Kll=ekvvA$9=zRP*PI2&YT-+nn!cB>Hin_7V=( zp{c#{Gu`-i00>^$H7M2I{yw=rlaWv-a=2`x!=8zW@%haQrl^8MEi^1RT;5GCQ-}re zQJK7AzJBoLmQ3{*ukk+p5HQ6{wy{2)zo5cbNn?_Co<}1Q1p=E{KANeCXu;Ix=X3=> zWkZ!lD)t9M=s9ilT+=B}!JD~q5Hz(W{4q6nCdZ!Ex%k_K`nk&pknU~H#`KwSom)GC zcBk;*z{n;ERiXfEBnh59$H9c)dBe0nYsE1ilgZuBa>{-OU)LjioTU-b);%RK{Cgbi zzzAr`yjgOxjYU#jl$m1r&j9-!|3$~nOCkn4|4lF(IZ72WQ@MpxHHXdTD|8#hJ_R)0&el+;{iGMfvNMy83%1rW0S^b%e(&9Jm z3_!U^$bmRfiVu+q*q){nXEch6ntPy8%Xv|ouYTiDvA4|IVq2Z7EpL& zuO2d&)(;&Nohh0W5XHgVpdsr3%~ro5FKhab?_f$_vY%ZPlrEKR?bg=;=d$G%YDpTY zo}8XCr5>@Yr=2eoeU-j1l)Zo<;4K#?P%g>ZbNSGIV@f6UlGd;7%`2iGu5xHjtK06) zE3pdlma0X>bwsd%oSzkMf_I7E5g3mo^2U#gyF50a&c23IBk|oCw1C96@-oAFq z&K+xICJ;(P?^Vwimbkp7z&*_!u3u3)E<^Y`^Q24yrS~{7;2K_SLSx{GTU4Sc=3buZ+~_WtgxeE1bM=?8b=+N3(f9K^*(As;+~qZ zJ?ZnJ0;PG&blnBt*0}(|z*u$KM1z(VVe->VTDy!Fb$k}!xyi!D?`|~E_o(^?4q0ga z+qHhaoSCLZQtU@{)apyd!oL%v z-S29L;YEON_<#QTlqGaY9c+)gm9J8oRkk!on|L2m;6|dN_Om=1{*gcenE}lv$0h%_ zklVtjn}1k`sgTfH|D!HC{$jt-|MxQult!^LD=p2eIOBZtlL2SpVsa!gD-0-r-_vZp zSOXKd^yojqHJVjs+bln>YGk9fr@((DC%x347GkO^9yQ6ET@HT>3OG>G)i9~rXtfe9QJI1*Z!yKksTW{h zd((gPvxx#YMjzvQ{xYu+cqij-5u%SA_GbWmNG!zEz1ZK_1utR`%JF`$MQPcS@aE z$2q3VYhX2sJe^Y=VwmX1Ha17_`Mhi<8v_mq{1wS3tdQ?kmi`~l}ODlWHuwFg!;_usL* zEO%+h3!VwKQmjRdDUQ9=N&PV=@xs^9h1z8YR}n^V_J50;Gc(qLyCaG)%ZrlZ;?Oge z!GUd;RT{aRt_LIabf+YY-IZ<2nU90}P`gOFk`lhNy% z082aE#iu32r{ntoTP!A%ZsiMGcw*cQ@1-=4LMLCWrK8J-LR^-T`^He;1hmh)m!SAu zAdAnN-FWVs`Jcx=lqOPUT>K(5JW8lPe+y2BJ@uNU8vq^#D5mSE32NYBdW`87>jnMS z@VXn1&&Jz(H-c3OD6pgt-c9Hhq&x04d0#Vekvc;|gNH3b+4#&DX_F-7d_v)YSr~;q zGzzOm;0qb!Si57KO1V)A9wp~W{ac)$Z}Kj=XopRS06TJ`{i@jy>ibr9)3o|OGgj@> zxh?>+BEgEX=Cn*Cu*(wSx!v=a23#?UNHpzE0GMaVZ-Q94dO~NR0z?Opm(~$xRNj z*-$~~PLn=$T9_y!&z`DR63YpDgR^JmunW4v-Ao>dOnJ%q#Rjfv*2*@ceRcQFxOTu~ zeH8`T^uL|P&PE(rFYzd8p@n)#2pBWbg?QiLQ~^nK(YkMnVKdsAJX)GOT6YQ%YC9h?^w}ljnAZ@OJmTzdV?D1kOPBB)!8+iSjugfHp6Ii zCMTwoOd%IkW*!n-kg}3fJ%pjGK0W! zP+`2Wel3m%Jh{oHh$F%z=VCZ#e9Ey|!=9Mgec;%x^$b%jZx=E~!soU8}! zgoSqX2CQQP47Y1rK-?myvd*1qWiVx0N9FbI`ptjYlJNfdFB0TdUjQ*iLG6??6>lyd z{l8zB?FjP?c+-Mp!8sYnn8RL)x6~N{y0?Y{vPzO>;SZsULWM5duL_aQ9JVLtf+FeKYeg0eEvuj871AHkKEl4cVs!jJK^Ik!r8!bbT(LwF@6j zKBF#YqqwKx%^=mz*ltc-G8r0Kza>=P0PP!QoYT{iH5qo2dr!>y-nhup%m@bL#ee^# zX=ienGW#o4A!Xzj60J@a4J)0nYWpUd-YZ{j4U)8XG|+c_KZQ8M$PLh@;hA0Vdl^=D zXkZziz6eTcDIti~DZ3bjKX=m%!?9$H_3F&lU6I|q<4}kI++=W_pb8%~LRFlX;atl_ zW*kR8M;YvK)&_kR2u^V<)A8Bbdb`!q~j#(`P3evhg$5UL8N#^*5Q zS%%8+JF2Y7e*IqKUVXO7+BD|!21_|rLRtAAs6i|_lzz7=I4j^2m#mjO{OxwrntPRR zA%3@--SEKQ$mIoOG37Q^>qeEW+yJ1Ua^#*;J-e>lcWKLBtt98?MS?HA!}aEwsD8yst9S{*2hmZ}sVM&WeHxVH=m z>rbwVb2H?)54too-ap!L?wdJ6jlflj)ecx4QwO-icM_rx8SOwXv{yHDk4N)C#+qJ2 z@7dj*#3fK4CjLuvD5zk@55+RRKxJi!__E$KkI4fK@l@x(Qp9#)};3 zP0Yc#1g*<6&stP(vd27jixmX;5DWGvHrE^x8F?RT zhCiacac_40h69Wp7w&1z(cvS={zU5KH-A;_hI5N}$lG9#=5rLh6fJQolROQFg4?!^cCZ;H*fG{DEe}`)y%U<#C!87)QW&Z9b0VXIeJ}Jl za9!kxr%b|;rK(0|dRbteZ~n@ES(*`~6wK=s5KjX9;pro~F;TqI)NoPjg{v=Nl5$3+ zExVhOtdJP@Jt&9dX*^_L9T{z}I885u%MrR&vRc{rmdFQI>l+@_TI5N?SN(kXNuF0k zQocg(#ErfaU(rlb(iU$5O*eCx>^+OYT~YWK(x>!Be5}3UBt7RdiuzY?11!H}k&+8> z=f*h{t4ND0apJQT7ZRJZ1}{Cb#B@pCj5{clo)&=Lg8wZTab&Tiy*#h~SeiJR*Eq(o zgo+P=7ZsE5x8k}2NotM8)=Tpk!0}InkBJ`ed<>KQAa3(IU)D>GbO|ZQiml82wnSqrU!?QJA?;Awzk}F>wTQ?P`99@?$@62$HJZP zfW5Y5J@kLsL1{~+!CfbxY!@TzU|oAz@}7+iwW{-8cmk=>aeG;=?|=>DafJFRCqJcR zJT8j2=Qx&fFtg(I5!U~UoffLF4!Wcfe%=nfoVQ>y6v=1FI>`fZYiab6sh!LuCB@--epmwrFh1+71(7dmXHXag2dDXD>?Yd^!a$c0x z3c~Dv#+WW6>%eGxN%FdlAT^#VpX1bKi3>ZoEx@h$y3qh%tG4}d-b!km`|VldA+K#s z=3uN@=wC+E{A&SEb>;uHPe`l5@5-O|)=eYKTZA5g`4Epkxb~qextt;3{`>*W`}40L z8cdRf)Vad>*!+v52&<>b`@ff7i%G9b3UOdAm;xDcG}cVLMQg33y*RmbJ--`(e|Z6j zHV8O7vATX^$rKV>N>WPQgPF2N44~aux(7l}0qq=Ik7lJ^9J?v;U;no|KYQOv-;3^{X4l+PpR}v*JdO^~Boc`rL?SHQYJgf?y21LDKxVO0sD< zNI(lVxQwNs7?80!zNo*4WC7QZUQ@O;w;{mIL62SENn=s`0*K8QV+evOYj%N~(rRyBY<(+%J|EZDvjh_&)g>8kJa`8;)MPmut^WT(3D`H7h?gde57NUX$D zdc6XU4@fXmYZyYB1N#$uZ8!(dH<~o15M_?(iZVD7`GU{D_2F{RM^o+V{qJQL&aWlEek|M>-oj zY4r;OVKNI{VM4y{x8D;>rFbM3_WYW!b*-K+YiLBk)p{7iX1}XBe+Y7Vmw!gELP$H_X9*wpHwur1R~!CGqVNn4%lXN!ZIQTvHx zgcq9p;BmW?tAG!9k$)W%iMenM3?`Db5i`@*thvs+u{5Oyp)k=YJ*G_ z041LYG0{ggHH>@3!Kz*h&&nNxhWa52TZMDTuDhDh5C+0z+gAtH!*aJ)#~ETci~wx6 z-4NVl(07isk&d~vG^qO|{sDsJ7sbvY2wiXuvEVkw(NfuuSixg*4ouE9*=X->n6Pq2 zgkHzw%f;-y{N;B5A1O(9W!9V;3LI2wMyLa75NI)?*x5Tkfz?SFuUMBBvY11l$#@X9 zIpUF>CF~-fh)jBr-}d?e#GK@}=;BFM7k+Pyec(gRIRINJ)I(USYW~tz+&Og4wDj_4 z0jca{I2W>|m(!);p#X8e8AWt{l$obx^-WI(do4~NW8Nlg3Q@mN-^uS2KU)m*w3b^QR6-g zpNAB)+3v7@L&nU`q0V^FkEuXB>0+69*o~N6q)$?!jnIuZnKHXnN8fnJ z8DJ%i8n&$A`Mv=_Cz`4ifEkbX@O&-oOd{TxMl@0chULgDne|ZN=gBWj#Rlt#o9(Y2 zVYp{QkK~zanAfbb12a8M`w?+i4Y4Z7o}RwNfB-t(etn1$0VbVr_yas$KQs_YXQl;6 zQvhhm$oA}GD^aGy0ky@d?z^rA(u{LI7Hz;)QHMw$9N4==VUn{el`rrLxhqWf)Q{Q+dAH)S?C!@?f!}S zcuL{(E_+0WdJbAccgqJbvp44+k3KL2+wf(0rkd_ExUMGO&H?~=r z-3~q7ck)eKQ4|Xc^8e;fsnHr*{Gf}L8X;`!yI(@OdpY(cQ&DH)Fz`vbO#;U?7P;v_ z(u@3Ge~(9*ak*lJAUA@x92>|cJ7xXYZ|``=uj5YVeMR55to%R)cG$SJNW*{4XE2oQ zVb-~5HvzMr#vP>Aq=mfg?!5#$WG&1!(yKe4>hAFEvz;IIRzB1YoV7547}|vHaTK8R z#is|gOOWd?>6uMSVB21>say|5DMQ!&uP7!eyeN6~J33s|wt|%CW9qV*<5@EoFrNYX zGJC2f$(_^D*5u*=tA57o!qD3I&`Amo6~|p-)yBwa17UJ6wAh|7cWzR&LlJ%I4!ss; zz4;Oa{_fZ@CqPQ1DTM9>&M`klb|gM38f}KV`5m=j=6AM*4Stg7+sib{mIacGCONbujv*ph``@|dY6q?UJdq%VKlZW1^7AR@Ph5s z7OF7Pbb?sEy+%1+G=wW5zsob{)W)>l8#Fp)a^m0Sb38KfYM_8|+KG3Ne|;%G%M(?G zhRGvJ>i7k(zEHTqIa;h~GL2fT-8@kHIg(AV6I>iLA%=Ux622g3-nsAG5p^W)Xa4ZX z>u)pJ0hTF(v6+2KF%-ZD{NkWA6yj5uYvEUAXCQKIN0tsb9R^Zs`y@!6zsP4=nad6Z z6U#axK?ByWv%hUrkfKE-9VOoRDwoo78HpyxQL#Lc3lpt=b`yjt#n8>`&~~&OUgH2e z^=S`|TOH#BxNCX;kErher@HMQzmH?@L)jTek*pID*|QQ65t5D)g`&u&LqbL=vR4CT zo-$HKr$~~JS(24eR1`8o|IgR+_WPgfy{_kZpE~!s@6XpFX!vQpNKH9TPdG@M+U0*L)Dbsa1*$dollS*!u_T z)MHmuMD8q{u&RcT3Grp z?W;04Ku|o@?b)6R10u3EZ^;G9kBPWk@e{lo&2{Yj2v! z@Q4k+QtHebAjUE4w;(cbQqszQEE?SYcn0l7jrEvj*`uyADZDnlX>X>@M2=FS^qIZp$5x=i;=( z5I8$5PljO;1*6^+FA~r}OKZ&?p?;_W;!RH59kLYoj$rea2^ZXyM*AvNZ`jzz-o{J0 z0hhyWf~|-M8|r?_^64Pu!GD}W(o${4(KM}9vH)wQZQOD9KO7WJ-;1;O7Xz$t8hsr9 z=Jp$2+CBD9VO6o$FvHVy=*}>6S)2xY^^Vx?}nx#0ea52pN_C8owyhAl=P!J|Wye?#h)+n1Ic)BbRI)4%q(?Uq2B{yUq z!^#Q@m}}UzQLZg)Q98D0o%Lpeg2;u1PaCb}9T@(buSIhMBp$+UYLW$sLc^A%R1B z{BQ7Xwec!ReO+cGixE2ZVTJX4P>AT}@B>u!TgLptLXCk1D#VymsnNEZwq&`BV|=;f zP+}8)Q?do4rz9&p&{0qluHW2x z(<>pGDj|TuhH+W3Ni3Dhd$}tj-x3x7YxlT+GW>CT7Z3=ws!%n|AkWzIwKg&SiZ-7I{iykAC|byg;9I&ynAdF36BVki6c z92X*;+?+8Q(TJn1+)wud>%cV4Mf0q!4kNAQANkW6Fy)@Dl$REuPsL)0x-Tbj@DJ35 z;iwm)lH_YED!Uhr>oY+}{9iv=x7y)8se>+{Skr~V?^Nx$rj3QL;Zxj}Wlu*dwtia^ zoEGF1_O+!|!z>_uNr(_Dm?@1o{{5)XQ|)djlKk{2Or~gx(GQ02lS>ZEt!&=J2pd_C zFf6S8{q||?km&wo#bHg}Ih|q#FL{bP?w77TTVrKzCEq^LeePklZ0S|H&Ebq}LUICB zanCVRx4k93{1%gWO49+vOMH4b`Es%HS0-mor-Nr zD%XD0JT&+U-=s2Qu!0Y@mcQ3Wde3?CN1*zT4-7?{ ztPjgRP)4t|tU^b{|Fbp&Ug-T=GcU1L7NOb`ZdiW_IO6{Hv<(jN!0v-4oxU{?$)iex zyTv|8ApsK`wS6|JnlwwuyG8~oAuOc7aRIsQ#D2XW*(zp!+RF>L&u>_nUhgnvKo?T^ zxZux86w#)@l%I)Gku7*l`;vvHNx$BiV%&+yn8f_57fDB&mi2^z*{*<=G#BWTHKza4gx?sB+9Wo-Waa$ZGpl5TV z0LVq)K$F(N$UeHb3xYvEhNsR5OtVf#vTC{AhedSy(-PMH0H>a;B zTPLuhu@B};(lycuHJ{I#HP@;-f=Jgw`9e~D;`bW%E)y`|jcH6Z7^7jmf7quZ-cbqG zdYt^V4Z}VspoU_;X_*dr95uETK?$k44MAJ~z5I>8(-yxM zNjzjMcR(?HY{L&1&pX9{;B?^v1?e0iWhDBq212gk`Pup*x01f{<6B8p(P|2L-?lk4 z9xJiF%!=YBNh8v}<_IN7N=BIRl2DwqtjJiSD^7r>k&*Nxw{J6|)%_EBdt;*4pl5tK zwao{9*^WcZ?#g|nTZ*4%1Hh54iS~wK4~`fnk$YA;vSn+Me)#;F#*4oml9xk(hm1uf z-Xn_cC4#(0pad5JoXk5v!O@JE0p09-_6iPJRxB!(@vk$@eB6NqI*mFh39fCy6kH~Z zukOEpxTN=6Ph%gGF3*TKtWzDA4HJEJT;$HBrH(Q;x6JeNCuCm6=!%Q1W(clgy~_zU|oi2sXz5+41AL&FXtRY-e(7E5eztR$wZN@LwXtp z_bWp`9HB!)n8>9_^JBvr8rHpo-LjW7>F=!#aZ2?+;5&Tb*R5xN-x@?H>Km5^`tMsV zmKmEP-8jJE4aB9P)kwO#Jz7WOu_fpIu4ps9*8DSCX7`q-{7>+m=01I6?JHLYk}OMg z*f^Jmp1DEHonll+&HQ@Ktpqea!PzWmP64tKV=X2Kjh$ZDb)0?H&QLh>uzOt<6eL{> zJ?@oaFQ$M>apC6@-zlH_H}OJP zxEvC)+fGWisd~lJME>KIxbIK{5A}Ujry?)ceq0&dV9NMtKJH(gHhFtsc4_+33bNfu z$gPjYawnMo{cwA+Dp*kD*V9!EwXx6qwM)`+AOC>T+buDyww-Xh44JRx(LAf3m})5Zds2gK)HsU_X^`oP|#P_svL#?;!-C zPHpeJ-DM7;E1&bgap6^ZC!GUoa+BTLXZbC3D5nNWD$oN3ow7?fq*|8MrD<*(;o9~h zOb@pBg+8=<0CPLbr0TU1ALb>JEeSur#ge%7#5J#YGDJEA^9c}_MG!^8s4+HzMQ`=P zEmuaexLw#Gcr@7|ibdy%xG$nO2s(L$H{r+*DL`xS8od9bo=~jThQealIO3`&{=NN1 z$f=k0?CejzMoE{v8^6m~!70hEju`(3EC0YH)zMnK6RbkcotR~c`q zuD<{&!sg@9^jh6an|DWGIJ*Viuq(!`0v3kBtaQusM-=S^KIr|OYj<9VK7DC<$<8*K zQ2>(pCV-x~4~pEW#x}Ugz0e{&%ocMQhc2Ajg=Rh~BLS--r|%a_4!Fk;|EcUfD#k%Z zuKV@&uO2Nj2y)dzOE;d`Nq{JFcM>Q3+(B%Uyi-TNUYGQ%D(ROci8*o4S4D0eL&NxJ z-|Amd#I1P{i(nVB!i2ZAG6^_>N=*2)! zBi&uKa;vWgrJn)hfBCVoz)pEskbHcp{>!BvucqFtU{?08EZ@Zb+)Iv4ZmC~*2@JBo zmip~$8+?PTVD~a(FbL7AO{17#qQloUL`zW!Mur-5f2gzOm#p2jey4%`;T`NpLiy=v9ZEk41HuT!9r&z>;-;0pO6&Ye1Av|@|4-A&L1{Ch zU8_h4hqmO~3?*JOuwmC-(bwrblh)}1h9B@73ig)g4MptT5aPSpL*MpHW;-&zxlrdd zVuexG?A9N08fbPum-n+4+k{5$K#Eb1ec1sSu@bjJNi8n4iiJ8ThTospM)6eWuU~@E z42vCfy!lRk2Vtig%-S++yl7bKok|DQ-*u4S2Lr*C_qZ4-r}#mcoz)lEnEgZtq4)7| ze-tw+YfSxd6^;BTMzuT!BI}=;tM^t{`XSVSsr-`=8OqIf>Rj)~y(nhWM;VnkvL+)pBz0W>S54SHUqggHNbkX}v;hE5V!o|t@ zKInrlhk5)>DVqnKd{5&Ym?2()cL1gXov+3qI94Wnc z|2eytc^KkX-&d;8p?c!BX3;BFyZ|{-0j9X?44q#Xg@l@Kx;?e9CZH^Ud&sC+( zLQ9>;Jnc2hD%~8RxIQ|%de^dg&#{u8=c=SQ$GExc5jlM`21vl6H$=ZgC0G@qUq*%* zgMXbyF5U3cMx<(0FW4#>^ul_e+ny^#n{ueaDI;V_Dq!6zhYlT|+g$`*$%-ZW6p4-t zE@e6$;epcuk~$o_4RkzeY} z-i)I>?6Ft;reXs!87V9^J*>Vi5^srev7 zhs6X5mLCYsy>>&BLz_6!-Pdj_b+h|nVF>Z=Pe5fE?;tA*KG3UvEuEe$P}vJRS3G^? zu(*6ZHmsMrpKxA;;7WMsXi}?~r@6Qv@p*L^M6RE{Z6F`q3^l5z4Pox3HTFfIg?8B) zrDLihSTNC1ME%w{>gO~Cy^TWf#L4@0m9F%8R5WvIO@Y`eK zwdm7|r!Fbx)p~HXYU6Zo^6ie$~6l^Jg?#cOoy zM~BMftwQ&{{JrK;JYs*fDKZ!o+3l?d1L}TZV39Z#sD;qbm=?tA`L9aM$lRVsue<+@ zS(Y=>j$?`_zdL`=-o~QnYK6RDn3`76MPsdK$XFzt7bd_;m5zL{NS|+tbnpvFXQu6Y zR4@F9)daY>C6)Qo87>_1-65GNFYCpJ-j`e#{9C2U-K9-;`Or+_wD@^17IYcoann4l zC0P0(lXoS&_AFO}uYm3CI?EQAKCeR@B@z#w|Hd;un#m z8VuCB9z7lH4g$McW9-jPP(M=W~j$ zm3!T9V09U1(}=!INH`r89PxPdn;YdPEMzy;(UFK3b)H;f7h@R4if1V!;F7v$dUDLy z-58{IC95ie2q%sz5f6S>07=HfdGkOR1`u6y4gkn?$siU)JK`MCj6)i|4TGLM>m^J= zw6J&cw{`tg6>hDlpmnT-l`K%Ar%hA-W98=QQ_$< z-~>4N!C8K74n*^FHZ5gB!yoCNfD}o*Se9^+lObXMnt5q4P71MODFmup386kJydq*8 zhCK0VFnUw&_P6|v(p=@v{__DsOA=-E&l^Q znz*rfR)+JthxM5QQt6M8St0X^QqZ?bPezQUQ|Ng*49@mR4&&I}V;$D)SR9bknB4IYsB z3v}!&&N^!*zjX{YU@}ABt*v8Dm6!7wD^OpNyacxuk4|ifpl{ zc%pr-Lr}?Iw+WDxlNg<58*(w6VVDtvMO)wLXeT%$A|MIz!pTj60Y|(4C_SV+W-pGS ze$TW7&>U4NM?kY%>_%o@xQ2~%+kXuDHuTM5M?>kxvYBta{I|uWlf}g26F?;~#YFoi zJat|B)s2a$hO5!4Jqz1MChH$mI{q<4v|UP4&)InJ$X`fM;%s^djx1_7<1wI!?pkss zVZIke1Lg=3k?h@yC=6Kal_-Tq+)+t0mieTrR+G8IvQq~pIyv|xHNZ&tAt4) z-Yda@2?9HF40N+6u|p06m~0I8f!Wlqd`cok9|O<`X2ny)UZ>h}A=>o-Pdr-P*Si*u z?8$0i4jWwVeBh3MuLeY>%X(WJ6>ZxJ=>UxtpDTFxB#inCi;1mlIm~F7X;&U#BR(!c zHNGB^Qi{E^i#q}-9#i2LmP66T0kk{zyfC1GjR9w?B_V;(ao4B%r9&%8+!R9IrVksS zp*dvU0DY+S$A$^z-`qU4!-8Gl*4&IkyW|V+ZL~VJ6-CyvUxNwMK2+x~wNuPQXRCXJ}4d=&?*=a(7f!#$k@pCi z%?4@JijoaoedTYB96`cZpxHk`l=WA>7-jv$W?cSxAn&#Ll)rV;YMywu@A;%Ehb$+L408f{=*efx&7 zX_u1=;a`UQ9b-zH=>_a;&i~hqMOonS2fY?oJSRFLPD@ys&6TZ5fttGDy~qQLQ~K45&yIQ~k3Bg!2M~@6T5+TX0j%`eESOIVM}e`6)@LU%78?HQSmo zxuYmrNc`w%($cZJc0DTJn5XO;-TI}lzBQZ)Zrg6UGttJJ)!PE`<^K|27C62OrOk{4)UX}Qb z9t3)I##c!C3;={(#S~P_R!Y!~p zNB6; z1#z<;@J}>%UIAKGOw|AGXD?@Z&v4P;3HwXB_X6-oRJ{$-!TrIW?20J#^8Qmw#9A+C z7c4P1pY_OmWoSh9foNMOjKa#)JdQad9!G4{f_not(-hQ%+w*M1$R|OM(3%Vzi`GYf zKB;38x04NDuVk>SB=3mjfb<26#uL-O$T-E?Bh6Zb6}3+GXMle4a;*haxwMA)hKO?fi&}=G4bez|pJN``>$-d)!5bF8d+Rkbd4*huk{B&t~nj+`> zh+@X$7#5&5W)`A-)z_1Pq8crNC_a_F)Awe#uD|r7r$vIcqp(!EOh=!7o&GG@lJnb6 zB-ozu*HEM%Rw!Bas$29v*-R_FFWKVF zO{kYfs@MQzQz@cjlBIp&gm(}dt)&tbalve!@DdL`G)wPjI}aQ(#YAhijB#}<;n#+~ zx^1{5&}P^m>{M{vz~SJ$`9_d|W{ll!f5m<}kXgx>>y*VO8mrZ_8$AA{+;p1Oz(1vktH!)&=W_k%>_fx z>EHwovsJBBG8}^$GiLP2msSzsV8>vNGzbK{Azr(#QAAOH0zS1Z)8Z-EMC%;!(lw$V z|1CZ6j;3_EqX4>uiFwA}e389|L298NGYX-GQ2xu*9^yTIJo+%;IrgNeGP^zSJk7<~ z?0DBcIyAS(wEEG}94G`h!?Kf!5|Ee4v@P-@{##7o9mA;^TopEkl)X@=;+TmaJy~CV zcB(I0?Rs>GFgx0MXjkH^BrY-|rl0@(FEvKiw42nkn>>OvoZegPS@1%_STQVPSNgr9 zYQt_sNtNSF&2bR@=}0Za7pN?zab?2asN> z8Y(suQd#`pL7f?Q%Yw>xArC$G{xuciU?oLPgA>U$CPg>^U=&Dv0fb~n#(U7gSISe`_D7n`7|A(q$)K;$j8eZUy9+yu^A3QpKv757c;4+VY^8<6+PaAcHZ|P?y`>gqm zWyPDG^yi~BV&|DuTc8_%HE(Y1Q@jEDTAYwSvY4*o-DEcEJV6oe8L2yp2x+Mod`Znw=Qaf5>5^CN-%t} z9XEkxU9$JN+h2?RP5RR-3X5v(`+ruZq=Q>mt<(IOCYowwvh!5Q!V78GgDj1UgC@IQ z??M6caLBOm3iln^>BNbb_xc#9kmLlD8QjN99~K8z@VYVJPDe%ipA5iJe$BZ4#K+z+ z?$RK|CPqwKbkHMBLz_7WN==_Xtq62_bp#VNb^^vpuejwY`$1Mxw!}umKG+$dn}{s! zxVI64cSp~m_nJ)E0g!-6@1=|^h(BP*NMTje8?0Pz_;qrqpu{ghr$uD0r?xL!a$yd6 zV_uC$r)VK@6!y&wrsHV`D=$;0qb)Ky(8mc!ar52^Ny@P|ZcUiVLQsC_9>k0^bz9UA z88QpvBm1HVpFX_aH8qZ;FvG<+*F4iBUP-ZJH`2WN-|J2-tnx(B0l zt`Si>L_W6huQx7o-MCoFKy{zG_UnEMJ{2p(*~dpvTxpoP0j&zsix8QVJTYX0Xuk6u zZCXdOCxSbt>8hmjNcp{msVrzBW#@y1-bqFv0HI2FpxvY)2B`ZQEpsP&+3@d`0JjO- ziGxX&p*<9snf9x8OZ9@36Cw+5>YI2{Sm|bqce(L1)BiJ&dWIJnhEaj_81v?y(IF;W z>kDeUCKKTX;T$K87XuUv@q`YsA3x;|3C1FyZoK|hBA%wY)Yg77kco8V_rcvVW9mi2 zyeKtC+!$mGHoS1)s94nvf>hZD;Z%J{I&(-r$~Y6TA7_eLJaTfxYeCN!uR|!Jh9$ZMv177|f)p8A zUwGZobelv{SbUR@hu~=PDYtdgQAlyBi~eK~1T94hwe)F|>8oUU&o{2{!v+;RNq0VL3Wh>JPE3C!^w zF;2fy`*E#X?+Q$m_7bV;U*Ct2#*hqt??;8s`-m+0*R z>8gm9$zB4=ryem`Rv|imIEYf4u9lddbYmhV-i>g7N1{U?sX1P^=$a5xB@%a?!O_Ot zO5{bx6h?Mj5Amg3y>HO+`3WzXh%sOoakQG>&vg?Na+*({HO%~gM*%fVcs@w2w7C{)vTM);+8-D=q_oywt zTa`}v(DkIfTei@)VnkpL*5!r>KJgZjtvLJNOhnIGZbD7oC)zvJ;+R}+TJExQ@9Abk zA9HbdM0w?45D0_-x&Yfswe85nS;4v`aoZ=?shf8%Ka z^g($mw(f6JuQAUaRuUp<_nV>j?1_UoRMk*(9tsI~490tmk@C*s?bm16DEl$PN-R41 zb9Q%-a|t5PfsUyuQKUocFTz|znSRoC!59}NeTDD+1waV&i##CflCbM}G+4i|c8M6q zYhKkZ-u~HdTi&;Ybv49@RpZp()mf^DOuk;zR!-Ffrd4QW-&lgcQym*b#Kl!#w7{ z5VDlrOGQjvYG_^p$tke$uaD@Qu7^YdEgfh9ZXwfQv?LoyY7TOT-EFT91>xkyp;|~9 zMoCPZM_jE^dA61b@Fqk{dL$HxqnvHtqhl$FGi|U7+5w2)xW@75XyxbPfH^muL?1yS zKn(T1)C1Ve(ma%;$_JOgV7=~h28Tm7SeR^9z-}g3sjUWOcY50BymT~NYC{58Nz#%j z7h}K~Geik`?{4;p4&p4P4Pme)h=Hc&RapYmrq<&L~g{%s+4=CTbk!qQ__tRNRc4SKn!byNVPke!ccg@f| zFq!Y3v{MWAiJtPG!6QxBXcBZ{yEd(DVZ>D zYn+}UeRp`~@F zqW8tw*Mj5)=+VAe&?ItlNRy?D_phsbYxL^0n@B&zXMHP0IBdP(0ny3}!XOn9poC9GG04Xx#;v?zwGB|YoqB{fN z*-T9i&DtJek=@?Nmuez*!sp}>D-5U`hioHeL-GOn7BfUR{BBZ4;whKkXikEkK(({$ z>cSv<{gw&_*#%3u>c^Ysvwg;t=}ntScL5#}hgr!M7(C*l)#USnx!D1JVZO7z5uF4sPW z;U~O2+;nJJ#D1b0kkIDuM9V*A_I&48F;w;P4@@ce{P8Jh|4_5H*_#vg{1EPz+pFY2_9$lpt5Qx zWw);iq*VSp!)@aX>An;Ym$}U z&`A*Bv*ouK*_)L%OtySXB&b1#`)PnHcrqho(t3iC}H#gQHL4?Pye;B(y9((xp$y_CjCyb*6`wqJ=Xz(Kc3M>f*u-_kW z90Z`f&2Z`;xPRNIcV?^qAyf|LHEq|%_j$4JdwZ;PsyV>V|ExRz8F=a=4isNNTJ8IGgPV!zFcA)d?o#3xHNTc-T3oX5X;O5e;t z!8gkh8}Ot)xs}*it>Y-)Usso@&8yS7bm4E+>a=4dOaiP3q=SGW>jO6pi-KS|B^v*O z7WXKB(BV%76zY+#fbVpds4uCAJj{*Nn#0-&B$fM7lcFgE%fG&MxY6>;DtF^^a zo+5?#4I5bQ<=l1{Cxxl^kBJxRots%VzV$o8nl29GYy<3T9u(mICG{Bl3l2T@X2pyy zNtWG~?$*)t=;P;4pyGW$eF#EiT+05~`>%ylZzwNoPR$@jFk>KVWSBvlZ)=12EC#&L z)_W5ooZVq|r-D5PmauETc4NjNvfYo5h_VfHl=p`;-zZ-e`S<!tDlCJLt~>r4D5&bSvdlk7_@sID{E(&Csb{pG z-}TuD*NR1C4KU$h;m8UM@QhR`{>m)Jf}WI7%sA+t1IeCyAs;#60)w~l=)h}cCUvR? z?Ow#?tyh^Z`lHLhAhfB4GuK?<3Wz=e(fCczw2g>wff_DA>Gy#nP=FzE_bNYnpP#g- zmtGqt*kk{3rd2p2ZT=dPvxG-2N^`U1bVX|nGUUgZB)7kN4HLqK0kFU z358+*2Y}WP_1K@^qDWOn)<i^L2}Sey(rMDYw%6sM<@D343sGVmeW zykhA)wSxd5z@|E=z4|!5&V#Bz^U~JtySI#_Z6aeXlx?{mcK7=IKtM+)b(LP3mGs^Y3eAu)JTkr?cU*s(&AqD=(XyrdN9 zml&=Y3?Q)4BDKnwWgg}8;EJE?y=c#!Wk$9)hoRGJr+*5F5t+|}M9E!Z!><=^?-jgl z!kkPe5Dox?Z8L)yKQ76fRT{qnq^a7nc%0Mh2Q7(6ls#;MS47lQN0>26Q~mzY4>Vz% zSAwLNH2K6-#)bQ@@B&zqHtcc3im|@4f)(P9lb9sjwqT~bjgD3wnV?-O@bc$u-Qm6` zozW4!&s}$b#NdHW8W@nbE(|(<5g_ecFjIdNS&FEbSSvQp8CV*;1~Imy?$_$EcCN_n zMN=XOI>>@a{MgH*D-U3Es+njZU9;;%umK1`1wCQ_2!7eEjLBY_Z0Xm9c3iH8^g-t)AkgI zyi#`DL^H*1(A}08^9YRMZ{S?4&?C~_XfKp@uXn0LB-PT;d9${Q*?BzbZ7&BV19-Nm z`6>A`Y#h<1gKV%!y}1;zt=5YU?VEF)+l3N;ttEeUYl@}&^5})0f;D3g zk~Z=8cOH_=7cQCrr)ainZDlhp9<`vt^1TH={@7a@SE4m_GHOt~uZ zp>>m;RW#}qzw0%AH;aK{7F4ysfcCs{fy?|?3xLG0JQqXMLx2|LphbRKYq!R@7b6|@ z1Q5sjH0_7$wdPbNMD{yK)Ylb84YABj*VQ4^@!zSEB4fR68v*?E#VH6zmh!BpP03Nx zj=lf1Nl=9k$zdJGHQnKQoW*L8r}q~m6eNpMo~!$}I>j)OYT{^a&opq9yeH2P5{Siw z(HX&!`9Hoasn%kVKCYMfAM+EY=8+91|1{o7_vF}~g<9N&!8i7ZaWY6QN=ArQK_t2h zrB58gzWP=S1ewvC0u)a-eOPCZ9`(vJf>O+Z@A`tv!?_${3Z1lavi^TmT(l`{3C}0rY4- ze+xq=Ej`3^0O|5$+%!3$|Aeo1%=4L=eS6rXJavM0hW>eZ;McUh zyUm^7Tt+D`KQ@jUV_IJ5!nVOAjRXEAhpI8U&XA{=$ z3&9Y3H5 z7Y=*gHl-P4E;_p=mf>tQUhYsA8K&!+nz2yw52d4U#74XR7DJS+L415jb!N})=WAZm zv8<+L3l6I%GWh%24BDh>q$nd8+Z`%-2vygEg>*wdA3m$DU!5%8K5xB%Rfo+6hdUz3KaT@7H#s#r2@X@|y zj(|(WN!7>XtEp$V`r|t^SM5*&-Duu{NA*o9Ie)c(Jj>C!az$iO$8jE?1CxKt?WZ4D zU;P#W6z164x2T62Y8F+7UL;A-zO2lBI3||b zeBoO0whgq9_fMw3b?Q22BE!FyH-AMuVc~w|;P1NSp_G;5^pU}=96y!VtG=HytQZ<{ zJ$jrO*?dhqyZ`nqQ|hPCriIEE#2gVsc6!XW2~j%T0|QGS4{c_*h?ALgL9(4wx!E5R zPO+rW*@}&bBRL`#+B;Y*<ZAwjh&D0-h6cs-)r&eDxyByvYv}Co_q-S*8>#5Ph`5aAT{=*e+)(0?2Q9LW zNB5^@lM-GpkSM<=k1hAjEH(@p&fWQY(R13JUbti3FLdxl_-ZyxiUuo()Ps9ZiDNmP zeG6ft7(UKV_Y2HUX7Q0~*y_&8bbrVFcXZzFYX=gpsDGO0-#Yn1x9UM};4u^R=}Y}H ztDoCn=pU@A*Csu@y#DMDzp5Zb1?rR|?(nZ~Ml7V7yAjj8fM#be2&9wpue+Uwv}PY* z_eTN8{ut(>DoyxV*}2`qbTrAVMV2|5NPpPErCXNko+S&^-avbIEq-?WyHT|y4(~Me;0mB{~vgl|61TE1oZ+Yq!hVFh?&hJEbu-(;dUq&*$C65;%iOo z{6$O#PoY%KkB$C8<&Qpl^PpyfrdVgyI}9!JwiDg zd@R~idhaZ)#^voLe@V2LB1Pv#|AN50mn;(IMSoe66hpS4#}neBhr^hS4J~HebiM~T zbKG2dU-Rtu#gcKAzs8w6)FyrWdg?ZF+KiuDt*H~x7pb_GtmLhxw|HX7bG21X^lwnf zEOk%N=b^cWy*QHOh&V^JD*c`g=d1cO1q{A9US-Va^z9x$b_r)%uL{eN7ptPQo2y2< zk$90 zI#dGRhbIhM`Ee9JEPJ8LB(icSM@yf=fO&m)o zzrec9wPqcj;i63Gv6ZORpJ z7-%PtC0YJH%*N-$d~iuZc~N;zPFa2%RWL0eE$x-Tm$w3;-UT((?K(z{50eo|f@|}1 zjo%g)pWL3ws6`0GKvD2`C;@et#Ns8t!^zyxH2m-6-SKR>W!9`N7k4vm3*JpH&5mR3 zf1b?oCg$YQ+XTz?27ws7T!T@ARW%NV;h!vR$9v^6l^oQX6JA_D|e? z{uL%9*Myn9X&njuQ>Sobat=?Hz<9`-u#^4J@%ucj6VUJmd!tB<+x&A){US-35}RC^ zUjb)Lxol}YSCB-!$4Z%CzqhN)nZitVf=Gz7ODr!Gfdsc>NadV{-Hs(c_?Js@^Sa`G zAuh{^56i+2UD&BWq3a3+-aqOhdMckHx-|40X8vk!;SUa#%NuyW);d8V9=s(+Y0|Xt zXlU@vWs=u6IJY{15Wy*c4pDkJ4-25?R-5+U*PkjXbl{_;dmbx`>T=RrvD+IF&a29W z7IK?T)F=HqATwUms(HrWir?m}nwBT?+t;ll6P-}o=)UEO-KrK*?kv9JW_y~dgFBtp z>4z25y8x}#HsHxYuwap6U1sF5E?4W`$`L^p8XZRLdY|u19_!I zhlb`s7spc*2`AQ}JSgkY^D%`a5lW<{Y4OaUigd?Sz8r~ze3+Rz?9JDPD9QH0eWY02 zJgw4RSla;cVZPn*6YqHY|7dO6svKpJ5ZmgrvR$)_I-Hs&eR5xOS$t<_*k4~L4w|CV zl@yigoqWE#BQ}e%tgB7~<=%3?#ei(3=NyslNqNq{?|XKUr<)oQzwvgvW^<8o7(k9U zF|^}vg}FrHp3VGaW;o<>-<6$39m*D7g7Z)ytAG`!)v*; z0I99?Qr=E#ER>etn=4qj>Tua*FK4$w<4EZd97+wpB8ze>0-JP1-_ubq`ua|N{MgS% zXA6Q2t-h-62!QoiSr*)>R};8XTfNE`O`qWIf7!PaYg?YreeJq$V~$`9@GpF%<{!S( z85ia6zJu0u$OQ9oNqtNtWjJB=oWt1aewEx9joac>Q?7^zbn%#>VXToR zS~k8ZzP?c!AIio^<&?wlfE9~>m4w;+mn8%WY&E}JYoA@b5;YHU$8P+)>ghQZ}Z&u)Wl2wt||Vrk*Pl}bC^EqDq;cPjStP#p5exKx9uHQ-Q!E! zg2iZY@F(-r4l^U~203CG(!S0x?nz36xn2$?%k@bYCjC(Mm^iU5iJkH)CfaGqdGGT= zAQ`}zTC|=7$j@XcpoAAUz-1f19{WA$%@>@_T$u=`5&j*>Mb zs&y4x&3Y#7ST=6!g;J&w7tO0eH%zdXySRAp{+5o!I>xevyBMZ+z5xwBJ+Tg& z&_4F%?_Fe>UlvmBIZ+Coxl?kL_`1_7{wM7C z;WWwvJ2+gs2eNs4uY_Go%_*EY?XJj7mdB{zb4Ajlf}vUI2A;o*4VKS%pHNa@5z~3K z&qrQHCA0Ig&kT?9z!ocgxoYVNV*X?l?G;b_A$=i zdHv_~Wb4X*KwxSbPk$W9aY;#T=9y5+GOkb{JW|PN~D7&$Y9~SQA9g|B8cIu;fi*{C3gJU5Z9YO4Lr{t zA^EuH24zj+#Nl>M;^<*BMaH3x-E1W;YD`6$#B%RiopX#IY;@D9x1VVNO*v)PPCHDuy zU#?F6U3hYi0cv-+DQ7i6D}LRXRU>-N;o6&JR4x#HHIi}%tXRva5uHK9#v2#V>{Wx8 z_uCB4=1R-|xWXpHh_p{NLxZTy@;VC&E;LeWE@j1UIp1sBgXH`((&WsU^79K#pW#gkk;d+ zr%1G8%6shY2|T=cmbov69_{Kq@gQVx7v);&-9k@kqVMD1cTh4!4{3}>jfY?t@L=bI zMS~S*7sq87?Ix!jr5gc#28%*QlWhY6jJZh{?lJcW8ZriUj-~52^B@wgeHW%j0W~Ay z4L@GX_AmtwFJDpygiApUA~{20{?@^@%(Pc&Uk%O4o0aA+)Jpi?J?Z127Bbwbh;$c! z2Px{}%@{8uzQUK(tE3IH7op@kJ?xarb(HMX4;yH11orVTHOx%5{5^lGjs5b<0hv%l_EgMgt^7HQa6YSs6(W5LTxNtt6BUzD6?KA;3BmS}!?9O5 z;fB&wVU(&LtB#a~bWB%omVrQ&S)zus))QVbh-hX>A@*Ht(5g4 zmU-kjT2t?wn_`#1*Jkow23i&{#DZwU5A9p&z7=YBfI(_r9~Mpe%S4hG5l6zL(5s;( zDL%u2?2He`=zS!V+f8J2*rlIMt8Gz_W#$sWt&D~|)9!n#yPF;QaUmLaC_4uj?$7&N zB2yu|&xCzL(Z`|p(>U8*aN0+&{Odl$eXSzldiDd|^tQ#VwIb$S&$_nlfj#%?Jsyip)|LHxJhXERB5CEdk=L7 zlRlj(STeL2qeiOSlY%IZZW84ZQGkB9U1@GBF>x16# z>blyqr}>M)#G+BV?bOq-|IN{Fjj;0b)tSyR`^fccZ_X{|)S5en@DMLdFB7P`gDHrj zq9IgPg93-^gF~2(2I-*#7=z|DCGKupxE?PQu6IpN8K)_y+%9>-|N5%g)%Vr0=8>kj z_fiFn-IF-gjtst>ZOLGf?)MjEmD_JvD`cRvzBJ=CA?7)mm@{Io^F~1Q!rETj=Ksgk zm&Zf>eGlImd)7&0Uq%t3VeBDWlr7ORsWf&I0mIg(bP=pqt zvZRHgr1d%PnLfYgd;jn!A&Yii}BJ{lK7my3;t@C1im1FG|ogY(s-RM8F zHzzGVQ!Jgo5L|6&U(KRao9*w)C*2cm#wEbJzION1^{x&bz~7!C5s!&P;zLdY+cx*( zi>rDu@|AOQV6@jfcQQx>XX^RR=hW{qE`z1i-ec8w%!EH$?Gux0 z@S4{E9a;9=W1hDSWs~N{*VBMm?^0)z>$P%@%gyi#e^TvW)1JUA{|J#2a9c z{D|G~WGBr>FY5J3ekz-ieXOnN*BjTsY_ZnANk=n&ex^^2&74cw z19+9UJ6xw~x&Sws)lx78_p_uE_f{CN>g?|SkrBgh$Iynawdt03#k9TRvlYW|C+k$R zEm8V;a;Sm%!m~p%K!%RCD(mcu?Cwj@K2JleY-z5snCg!qx0C^2mp>MLL6v#Pm%%?j zj-y?wrUVW5S}@4hMyEg}B>`ce_mSht7V`Q<9bZzY610M!%T(T;jkswY-x5~ViVx|O zp*ilHcQxmWsbw1o@*-#J5o0$OEWZ9h&9ZMVWDYeA{NC!85r^v@du5JDB_J}^h7o({ z>eHoX?(s@x%vNSqaMDnz(O7du00L$<&TOp1VNF&u$G95u&ye;c3RS z6w06S+%M5FY3IG4ia3d^0n4ZqVQaAqE;91a8Z=`%JCB|gidKZw?5n-Bl$VKl%xv*7 z`RHpt%G2*k5@hkV(vI(XdODksFTm8{_k16DnXl(eqM`s&e=R3nI3%%&KxnCaum-MF zqb}CAz{X(lxPj7h$#fIA+bTRdt!TB6z3pjW8V|>VtiOf0YMDYe1=(j6D>pv@LesA%>H(bpz&QrJ;TYjxejWv$9lG^A!N8 zYIhocpXVdu?_!|+8Nl%|W8&Y~jv2>2=ok{QjXY$H%JS$-@iv1pC9&wms5dq7S}o4& z(*-$zZlpX!y0tDpd@lzl#ohx}g@tn&H4=;Q<|D2f!Br zowEU8u~0s=V@^P3Aqf%&mOf}wZMLSps!6-jov2R}06sOu=&Az5{n}E#)Phl5PRUB(4`D@~d6qm=d8SzGe9Ep~}_`Ek9%Jii99=6sh<5 z=nfl-_T;hm=QK7-3pAh^S(tZc;O7&Dk|KDf3V`AGU2m%`wzw^i+}0;5QFwL|3_w>4 zS!<`T_P)fX?=NOV?0mNd3P!}PPD_nRf}fmA9we}myKstikLT)mC-K#ov}yudOYRr@ z913=CEWAu5Rg`dEfEnuWW9wP4MHsvAJL=DN>;qRo(qV7i6+~T#bFEIjC1ktq;Xd1* zPKobN;`L~|8$hUv>nS6*^!eT&3Ul}#@c5$nSIs>19Kv9r3oy7}+&h4_JQBivO&o-S z{&)U!%fY!&+aJGq?frK#YbI`Wgmy{Hed*4q33Jy14xvu)E|H(ij=l2Z+nsNRP(C=n zuxzr$({sM2OVueS9pFnr+Am}zzEm0Ah-jWe{he0p6J2kjxZc-QZ(H{fAVJ|1W{?!2 z&6pXf6_gY0flI1rOOPPH zX@~PWI$C+04$&b8;vO9RC|kix(Gkb3jMNcxJIp5rV!tuoDv;(d)x!;k$PBv*3L?Bw#Y(~abg5Ix3_nyv%DvC}2B!oYSR|P8B9V(am#Ksu# zqT$KsDP9+x0VY4`u5G8(s5-nUsIrhIvE>tq=&8+z?|H}+DY^aB^Z}kBHgAkWG_ITc zb@z_sj_7@bd_Up2`L>h`2q7<>bp3lp1Y@sf zSN73cag|4#=6@9V;O2sM4M2ybnA5Jzr)LdMms!rn3I3Ey5;s2?Plenn)sSp;!9=Pm)G$#<fou$eA-D zUMnhF1i{Oxdn6eSF6wTd(+SbYsG3fIiF2 zM3&L`;_6)$+VvwD7wq}`7WkAA;`#!7NrL{&J0(7mQq942-`%=+GOR`^TX5dR`!{ba z5AxXkdFYLmK(g4*;JB#qTJHR{T~`O{fVh?%!Vi|Q74l1t0b8)Y|S#6$=I*LRzW`pHeuT6u?uD#c}D?@Y8hw!UPuK+odG*NJR{=EOO z#qW!UhKa9tz$u#M5EQX5ScJtp*=j=Gurt66ap0}cEKNx{1Hmb-xH(mFx^=7atus=x zuA5gsCDF!?3X1=ks&eL^t9USRgt;74`1M4e81>INpBH%hzIZ@*{CxrNLn<59uiryp zI2@?+%42BK(l8=q)yT}+ucFlaRK4FSv;`%?`{?c+*PnMC6&&KB7=dDJdKWWcQ+;e> zATn}#%2lmJ;aMI{f@K47ay$d7Rymg?_cmh`g3i@mvjuoR=Pl8@E+J_LK24>!_E) zJaK+oFY9-2L69jKPpbNyD$tp!J(L3^Qg`6_r1j$Jk)MXF2wA`D-TJG0E=X(S$FAW+ zjrW5uv8K~x&t-g9kx3O2#i=T5d%*N}&202WmuHeZ&jqeT*&sCvhi~jZApL28-O#g) z*62ST);n8~8!;TOLpj`%Ve&+awpRbX*E!M#hC|vqUNv+^Llt%1FGM||9l6yg z$$@9mCDY#=BaGb8P4fM=Btc=!#Sg`-%beIgZbnn0-@{W4VPDum=8qCKh*K)$oo=B7 zU2=N*`ZZc2D`(V+-wYQ~!$qzSMBOc2%0nWzSVCV3^Rzq(k>*3-X9|lAq88

k6F2 z8(=z*SNT-8&5(GLimNjJh$=mHBRne_PQh6RqRy%d8mPgpMZ#*{2JmhTL8KWkg!N$g z)QA4t?QpW|P_Q}LgBfwu-=Nt&Ujs{Am+ivO7}8^>F2-%Kl2K+IlA-K-y*uT)(8zW$ zht?_QmWJ>5&&Wx@mltmmxZ;f@W`A ze7JaL;5fYteBJ4$+82~GrG+Qrjad;go33};1~VLVuGvoiQpcfP-Z4@?B2}R`8N7|I z&NhUs?&;57ew=AMjGKF?>hg8L92W!zc9uwMZ|8x&;={81BRPhAwDN~+Z`H4XYkix< z)O>bq>4}4>~4B65~US@gZ9e`72&84 z_YG)kXS{Z7&BQ6w41@H{BT8ox>%NF=3rK>np6>05-lbw{uWe?bUnd+ZNKYa5Dv6QdM46GdOj%K_w^_VSy{4!j{6qXtSq65OF)UM4(tK$4oYI?nBB zy69bLT6s|T&8$;DafsnT(A(i_B9(jfJEXGQFKN`)4!ObxstXmFAa6R%rBNp5kpJeL zh_pB56!S$Hk!O@%roNA5Y!wjox`R_jBYQkkPvJVl{qxha zYqJEc@l2gRWe~;}thah3Nv3DzEG0@Y^xXrbjX8%0pRF(!{^ArM7bn0tJi5C3Y{yNj z^3!;de2UuF+A`SB!ZeoCU`0kv&=M=bNV(=v-6(9mBkgQo95V*n5B=hYDxZ&))^xGS zLx^#h{cFXN?89dL05QtN%iZgxtPaQ(CnUTFdoKF1n9x#HY5cs)UNLLbm^Jq@5Rb~D zpNRC71kKpm=Jjh)jz!XjnJy%HSV-rHSpZOO3C>R+{5GaJlgUCU|Rs z!56Y(7PS<6R-tL~EIhnj*fV1>>D9FDxUKDRR5kNz`@q+HFA_1HKwvc4ArX3z zF}B}Fut`q?*qnSmeXEYwPCLptf886E0Mw7sok5Xn*W#B8J9(+Q-?%&>9}e_R(7+dB z4~Xp!`W)+11DgQ0d86MKhxbG72=nWhi8Mw*Agk}|Zl_iJR3YG&2GWH3(%gY5HonMj z+#wrb*5FV3y|i%)pbu^*Tgvpw+7r0-GI&|3NScY`wVQh&Al#p(G*H@mT`RJlRp69{gut?UO z>Om>ec7Zu??eqWSfa`;6K*m*%ul@n>+Gz<3yJ2@zx3%T< z%j?4*@*!z8^1ejN8!C<0dElz_gTeP;oe;<_EkB*dlMRNihjXXQTFxoh-#>B^o3{DG z-#>qVW%>{rhv-noiEtLHU5)+DfGm2OhiO8O^>VE3mz5rgva1;t=_&5@oBCn_Oc;%X zcRdwS+W$#b7Iyb2gcCca#v6MlNic|`D(GX;WgT+dIeLK{c(0mfA1$4!7wjokjYMAB z#BcJOKc{>GaD4;z`1h~do>A-70dVC&_3$*Gj&Kp3``|T?qiA8hC|uDY*WP)%i1j4< zQpdfZCBh@|l2-9o^K0Y%k0?%VKGl7Sz5k>fjPGnG;(aUd$D&ccS|YLq)Z=cOS9$=(Ck}1JTG;& zF9DR&9)Is9)q~D2jiZiqz-pxgwoe`^p1a$EWdZj-HcJ`sjR#ae4a~ z&@^pL_&sS3xbwiNWz|*o+kq{Y?xCJRiO{I)580C{#3HnajW{`405){=m?PRKu5eoYitm52OVG&h1>O&3KrZ z?iL=Fmj8IH=9v9_;o~E(d6@VEr+GQOVEzP-0b0EF_NHb3#f#AB8pK)|cxpZJz51e5rYpnU*2G-kA zP-;Q##x;n_uPp!Tlz^NN?A*`Y-D2@@m!yMjj!ePMZ+$0)&K}F`h2($W;YJ;Lr%N^= z%?P?>gN3AM9d7P278J>H-toeEIU(H7OW^X0@O9D+g|(p0(7yg;q$6#NcbOIGcIAH3 zpS5{_o1~q3RhXIVfTT6aI`GUfsyw%6bwyj%vY?h>Y50^w(?`-eL{#Ck zp;#ntwN!uhW^TmQ7i^GhR*Ihr`l9Xug)xya<|*;sQ0(Nrew(1zDnu_$9q7d&ASvi` zOPvui>wlYg3riWN1$#DQ^M=`!Y^HzWefUN>6c=9B%Vv@Ekki{_a!-|XvWM#i2+56- zoDCJh zu&3ivhmA+GHFcXd#9txjY1c=$~E60zP>xX)7e>2g(d7?Ht&uuKV*~V;i8)^*qG{X_IPRGeF?FMOMQSa zayreQch%}5#^UZBNb7qh5#Nxpd}&#Pg|___Bc!y2T|Pv%2F&211 zDi9a_Gn6>QYc~Gl+O@6Qn_iQVIaQ>)Zi~G7&7}k-h&h46`X%-i1%yiw>K(J+_2}AZ=@P;Zbh~Y^cfJ;>H%Anyuoq*c8#(qZwP{#P>VTxbFmk1N(--a=+64 zCs?dtOsbyqd)KRlELV612WyOI3ksJl*i%&VO~T)AZ#Tpvqt;sp-4ZOq$Ec2~pbdeV z$MeC{c0x-8<*0AUy!2l)S;3jK2h0Xs4(Qpi+|`y-%aIed$?uLm%}UcH_a0V5=EZJ0 zWj-@-NrO?jJ$8N3@ZMx zqrK3^t_H9j3hmuCn?wF#H&+5R1#cZrKK5)DPu+;&Nw&Y0=gmP8)P0<;oOWF2mM{Jq z2NxlGhQMyIOy*KTJ|1?G7HYy<*O(z;B|L-2_MvtCvg(KedI7wb+#OxA-x>2=!;13? z;>$DX{(5Vmlg{YUHAoxc(P>LD*sptYNx+p@k{6lBN1Nzmt17&86$<{~mdwQycm4<7 z+fq|l<_VAqBr-w~&2?p&p-hNm9Qj;iXXCUKMp`vKn>$|Q#vSR@O%c(~*ZUTa-zfit zSXt3h%9AhmPV-f;;R$7742`qY4Pd@2!wQF#va#{ziBx)-+frY!VkyYSdCRvK3T_wB} zvU2%mfb+smRBygNS--MCOBg-fxk57=wjXO&Y+GY!p8fMP(-}h#L@O3d=B4Uk8-2{1 z$1~;}{SMaP>`G`L4)_WUT96*v&b*Qd6h`?biKc#5lyMKuZ8v^72rs?72z|{S-EQpY zWZTTc8G>Ok|HhmC3p7ubjcLOYnpD_6p%Fe9BEi-UoKBM<{K7*X5Gj`Eg2PCe$5Zv1Jq3JgypFOKzP@bji1tL>J1f*-ZGViQ9sZW(qe z{PD&NO>V&)Lpke6I8(aD(`4&r6r@330}Owqo~RIkvl80vZ%>y>x0@?sZM&rjHsz=o zi`BdnTeyDj0s4aVW*no|X?dCI0Op?on~EidmjS=1wcrbJZSx{V-Rk96I~0sqWPs)O z+qQ=1^)ovVDVg1{qV(kz!|WPOQBFI!zkR8_snd-OBURi;hHOT2<$K#im69$B_-hqU2k|P&cTLBk#3; zZhVn<6wi9An^$CiYzfA5q0qWtt^jeSwi?=UG9EU5a!ah3)Fm%pi)YQHrt};oVfX@O z#kQAXXwTP;6W9mZb8K6!?I?2>j56C12~IMWDbr7j`J;(GTfH%CpgGiSUV&BJGP$mo z)@7<)r+aQCcP5?Ro~Cu^E?I&C)GlUjNnONQXbzl7i|xOI&It41RgS{ZmSd#gpASwo zy5v$jJS*W^U$OnNtsG`&B|ol>)kKIow-wST5}lIz_Fp;;DaJ;tz8mW>lHX*wLEH|6 z?bdfVt2T0K?iHQ)9=@z+wOKh&@?YmaciXPzSHw~6=?i+qR|W1~?|JeRvp9P*v$vQI z>Bxp}0oMV|qMa=+CRsTZW_z8F>V9xzDD5xD=3r4;a`Gp;VUsf|Jo|t%GtN-7^4L-@ zILNITRe{*`H-}DZL-HSeL2&2$uf&{Igbk)GV9XhK(C(WVB1rf+rjM__`(K?ctvi4% zvl`eXJfziFPcODE)v9xMMih~fo!mz*Ouf9S!Pn^w4Y_--q^^+aX)Yo_<7;O- z{pQpjA+Y~pH)3MhO)Mn|E$`N>p0ZgkeH=%Pz4nzuVumLeE8Pg0iRC^ZNJ*spMHO^hpk@SQO}tn8iy?E z>{G9mzMBqv!#5u{in$k96rp%G7+P(O_9f^7N6pVYfT1N&=eg{sNIP#a#tmX#lq8_& za-a@}B#L`xb{itu(rb67&iWZ~>Y~}FL%q21ws{n>22B6#i4@g&1B6|}}ISIE$>%mupN)mYA%hRhik zS?20eGt#PJOH9wG%!_~*c{wxD&@VZ(%7&M=%>&}nu|hg1{j#NDMIGSFS2M$Sr1e}- zl6nB<@kgC_Y|MJOkpd4Z%YXcvX5@wd?rxCwbXZfpDvxkl7{mjM$&Ua{EH}k1Q+^cs zYrM{d#rVhm1nQP0-#Ejt>~cXG9MBTq{m}VLHjes7Tb+;dL!t3nUec;prvOPrlInRj z1zeXwkqiJ@t!=DZ(^6GDi&$gDWj!Qc`lSzw0r%BGrJ;zx(ov5J{O#WR)|yYc46*Q( z8n6REVG1fe!Ow<4;tMF7BGlK>hBN`7KSB)nX=6+p7v-q0%rEkdH^mdMN=W@83~8Dj z**9Wu0;;JyU>6ixY?T-fR;TRNi8Y9%ch3Pi#=?os!yTX(W#K=5*BRu4HkC`9g~s!d zRHcTcuzcFBsz4FidKh)mE>+rNcg+bR(mu);!s!)}^XV^sngTp~JDlI2=X^)C0gy9v z<+E^9>$(RQIp59PB_Cl`u2@bBPK42+{jC#-?PXVVdNC^$pqWs0f=`N)1@D3Ss>*X3 zuo|}I;CjC(@j_CYSc6qadZgz#ioO6U;#6IM2GTy326jX!v{(;k#Hk0c+9yIg0`vSn zzDas+E|>251sGy(F%3LS@vL$vv6 z{$CWi`Yh>ShY(fn+?d$vDlr@idVJ#&$m?osvTtno61Sz|k#L_yFt;u(_NSjENoWrM zfOb_)6A=CXDh@eGAnEsAliXPZxLD(yZS_C}LdbRya=;h^tQ<87;VT5RfDBRRSUgw< zpqG*%N11O0^!Y`@-uuOe;yDdaVIg4Wb=NVgUG#TChKRXC+K;ncqzZOIE@>`W$42I< z21LTMz6`!VB$;#9k+Y+zAnN<9;(#ay7?xpWw!8whmL3Oz3MIhCRFJi`ErL-VkHfRh zFX(c=F05t0eAQb^){uE%8xZ%9OJD3%Z1~)io`Gy$9JN+^Hy2kZS$i%V+L*AI%;}Jw z4g^~9#_Jej#uV#wdm|lOBurH}8iQ4kc~Y_;hi&A@6%W&%Q&5@G=s@P>v@N{DZrJ)m zETz7ay@J-`1K$&6w&ZLSxpJ9TlnDhLU z)j!+dwP$PwDrDs`L6kZ1lLJpgm9@-sFJ>>|$503iHLJhn;5a;I*V&F_C5Q(`ry1>F z9EC!~)vf)04yt~BY|oVhg~|ZCU5XFEu=iCv?BA-7t*km^y(3c!q0?c3!0~#dp;FIq zwg`^8pg-FWS&*=jUs8X^_kv{K*W>hlxIMIzHzxtj%E2rscQZ`9Al?l9$`RPesf)B* z^EO&z(eAhvZY{Ny{w_%~-q587p?`S+ppzG$-g-Q;R{JZ!3IeRQ z+CYz0vqeFzS2uEZTe}0&Jhne%+*wJ$zW9|Ju^FkuycxOKBAl+_4>eYQcH<@7+_xL? zt6;qiV{T@^h7~bDbf^463{B%!j;hEEC3v6W(eA#j@V5OWbzi}GnD496P3!)z^4(wm zx;*Uz^_&ANqxn=>pDY8)4Ba?CkRpLjU|sT=uecTSgSU%)@r!0wIi27Dn)M41Wahr| zkJ=N;sJcb+#=mNsWaaup5+lF=?9W-k`6}PqRM1K@U7!0qP}+kR`6=eIY7L#=?nY>8 zf&SKi;V~W*X$&T7bPI7-@t@e-rkvG2!!^9vJYNihKHtCR+JD=gBOHKwl!QmPy-I75 zuRCgrj|=R3-so`6ju*aVR>_}uDoHrA<H2e=*gO9~0_=)clZ zSFj2c_&egX1uAc4U+g?~ET7z?W(_j?81(gDVFc4-Av1JK?l$@w@@#7lXF=2j*vu=^ z1W%{`)(7ujf&uc&gUW43>e&q>OqkIwD?JcmZGxIW8I8!xr`|&<9}vP-OQarnL!cB<K5}Cp8BX)+szczmj1RwEW~=S=)e6VG+wNXzIF4PMiN( zlKqbEky6e`EFVD4Ejr|V0~n9$UVHx%a9ON;i{9Z_8=}+5Hs31I%xf7C;PF7^Z0Dyc z?gC;oIGaB6vV^D%tzD{(;Z&uCLl&T=Lh>`X5|j+0 z%_^LVGAS_H;JI?jzhXzp>3+6%<7&>=U-}e56lSCP!|U_%Z==?VJmb7ulOrnl^FZS>iv-K>YtA zfyg^syI=hg%^U|JcxBEYrJzMWBqwi}Jlil9yY~L7(%ekh2Ch8esAQ!HTmgp7Lu5*e zc+B&d3HiE{Cit)o!GN>3E$oek^m;2lSq#tp}9M`dX+z zdwZqeLL|T@_Q#-9%FAn1%X4+}mYixFU275(1l57QW!#o2CfON(U&K|@7YgZ1;fl*i za|1bMJ-g)_1#b1b@3gIZPd<|Iw<@vwKkTxS{NFwCHOB2Aqu<9J_ZPuGN(c?oO zwwAp@S^sb2PzA<%r}Yi|(M9Ldn*VOJ9bstKpCESES| zw{QaC5v>WjSTVMRf9`FoC93xI&F9w1dRTWVx{#}5kU+Muru@g>JSQ{m*m4w0tP(Sw zTw?gf?<03*s0Bmt-?38ypvk><;`U-sAoLd*z_j;tbH9*D!%ibgZ>_}Bn?arA6skjq z^>Z$A?~VK|Kx>B?eV_6Yn;W?(hU7*x!PbP8EcWSB-wHM1KdTq!esY{@v_D0C|At4* zm1`G&)bjvw>7P>u2lif=&&<=i3X`LD0L0X6Jq{Nn9rta*uQHKzjI30HFFd37fbo%| z{O-~eC@BEHO<}m5=n>)c3KEN&d@nP@Be`0WXr9ZN2C8rc-08z4Lw+~jnfqPq>sOoV z*<99w{m$BYCxW42{1r|Wxry8flBD;zJRgHcaIoTbmIH<{s|}%3JghH@bX9IYY8%C# z=vHAYm^Odox+GNq=&13F+R4V3ePFiA%*bB&*BKEyi@N=d(`v**e|8I3+hFCan__}B zAphgwKQ<#{YZo%@q9|Culi;nxH8r?l)|iSnkf+*T2xVfrA695LRvZgDC);u~YB^VX z-;5pJ#xu1i+g%b7gf;;5}k^Kt5}qc?c1XZFzy2~ zqNop#a;Ar}h{W6C=S+`B|0Fgif^?)hrauutwA&c6jC)DXy*&ac)10L_SrA}HrRU4~ zTPitIrtQXtzo3x%%KS4Al5U?j=Jx0tzHhe$n{#AC751=caICLr!WOGEJj|)`D~H{1 zf}h054%^y-jR`ijp_CAgMT2pQ{$K54Niuic)MfqomFe5y!_|$Kh2hE~68`~oJXYlM z@ySlC-{ToG|JmMvGSW+Pd4jLETH7gHx8UvpLkvj0I~X2=APd2{e#JKq$|9=vCzq=^ zbZn67wX)ji6b7N92#L5%K@7!A6ZUb(C*@~f+}idVn<(wJ0$l@n{HwS-%tIOFLjW1J z1jy{~xu%i5FJXU<+0*XIdH)m#!s!V-k^)1370aPB`5ar~=ZBvuJA7GaaK z=tx-v;AH84@8Yr(>XM`Hx4s9@p8?F4OgdtFgNJ(#`{few>S4;FV|9FrVCMbrltR@m zKk21Y1)Efx;Caj zm!yM%|LlQ)LUxq}7*|9HT+V$Xd8v+ooJspvNorvW56~tia1HB-q&}wd-XF-uYNe9P zVu~rO2s5^@a=>`lvffU?aWM*T!lVvXE==|xS6Cl^ON`4Yz<$jS=*eL#7v$+~NB-C1 ziDWu2UEJEO$89+Wn(v51j(*AFGske$#x6D&RJ0Q-(pVg_KrvmGu3YnoYrw0HR7Z@y zWseFDKjwCj1xGgSsq+6S#ymT_qhe$kQH)OrRn0bWuo2rJA3+7!eOAy1UnG;&y%nhg zL67*)N5I%QIBJqn00)OygT&XANv5ZU{k=E`qY0o3HFq~blE^=66RR_H%x1ZfGMHNT z3xCpXX98@Jw!EHffwbzEuHaY_8&t@@nHSa1fX&^~ zvXHBR!UP4Ib}0xmmHI{SNGHx*sy=4_X7}X^qh7OuH9Uj)i(UyrmT1`*HT^Dp zU5PW>AX933#^A&3=_0dx7}zM<54hGi*85NXwre49d;rf!TfZ%#UBVJBKK&r`3%om7 zU2<+wD5P;Z{(h{AmvX5bf?`H_EMiZt80OfxvqmW$Accz$7HYyo)eby zl4?}c#nD?CF4unJ3OeumOu zPv9MnY+Z=XgU;QcZJO#T{7r3-i9BvUARV6Dg=i06tUOST#ChSzOwwa~h zr8u_Xm=|{wDjt^kp+b0K$TOzhDwOYE?PbJ}B_nGIH%^E!)8$KWkR~b~Y)Cw^@O%(9 zPSvxV(-;>pNDv?|nc%iz?a57kV;q5g>R+>Z7dg`Bk>zjo9ee+;P0u z!$YutnbA3W#1T~)==Ih3`jNf>tS(1D+(4henBfy&yMJE}?wa}er zUn%LLOaW|=hwQyPLua!pu+wx_=YdtWv6Ef@^g6Eybt$iKBADx`R2X5(2*upnXR(vQs&qX*)6LVtVFJ#UpipBx7wCa%TGA z2}7P*f;Q*(8DNROvV5U2<+Ot&I4%WaG84E;Ul~Z%*3s1ks-_z_HDL+glh1``!3QVb zM+(Sr$cc-}Nkp;*q3AiJpxAL4kxYi~h_pgBC@9Qy-;$=?E0RV66Ev{T+L?QjqM-Xh zI4jZS7l;~KKULh2j4Kd8@7avPld{k^AV`O3e9CxW{a#B>$*11&1XAdtG15Wd6FR6=1|iqL^U;BsB0 z2P&-6=*11@VDO&ZqyjPC1S35jD~rahvZw!@jzW@*vGlQ@g0iGLh!)eURfPSXI|Jm)M*y2`V_!?AAH zf6fg{3zH^1kHs<89NsSSXaSojoPhGP_Ya=HhNcQBIfE=J0|OJ)*oa3z*Qp)P`UCGs zK>j~L*}_?_sy3nnvwKRv59{HpF9)FlMHr_UGaUqFy{%!-L6AwE7|YqjOh-e6+heGma(0 zlDHZO!j_b18Vw_!HiFztG$RaS&z2u1b7uI7=(C*}wakov{GYudCiBtO5B~|=84sY* z=s*t@ThpV0!fPSH?NWVT-Y!nhw8mr01zkL5SdEoS0S(4KJx-UNg+cA6{hUIM1hZW>IOAVFY zwpt~w?u1X;Wfr7qJvDumd`!&27K)Ocw5E4=2bR z8UD*@!rC6vaDEj)7|QI}bCL!gWc+je!ZjPqMMb%;^lm2pm`QE36hbcU! zGB+lJ!P5BzSpV2GK=a?RaVECUL!&JVNT^}T-5~4jDF#=C9@sB_&~&kcg(4U*B$AC| zDj+w3my-J;w{t!NaY~*G4yX+7OsNNrg!HS0g?Lyw#MdwJPWBg<{Nopy*|(&_>~v_*1xkE#i)o2LOPw#y1k(GRX(1ZtHM{!|rLt(@C4}i2jDh zV1cXk*3$q zC}%h5l$y7nAPg=MWobq6ZF4B=&M4ORSZT=mqvXFe?-4c#hL)nYOv_-MmT58QNR$fe zx#D#TKpXJED_vkTV8ZEjhb7puR{eIa2qtf_a$`fbAG;Ge_{P=^RYJ~Bo z_Y4RKw;WT6+O|uu2a{)JAxeJQ1t7qf>O1xNPn3}L?@i+hB_S{vZpM$pNsDH@_P)K1 z$o&A0S?qK!Jx5)bWB-%#D|?iZuXB2ne^jo%cC?FUG4Xxdp#pnB@@`N1Y9J@hE6>GaP zEaaic{TqA<-4-EeJ~MA}d+)8VGD9l+mMv;mOq@|=QEJvl$JeO(;>t!d z@+S4y^X66-^EWFyTH)kFi#BOXF=awq_dZB}dPwR^As)b_C7 zznCzA7htFkq_x|9((kp8ro|;dMrzQI_0QmCPWy`FcmBlGH?L^5rL-grz7xT3vOa1N z#Y)9kPdMpn9;(nYeB{u0h_4w`L{$+13L@;@M(^56cpT4jHt0O-sG__jiUfv(VOiEk zxW!P7Liv>|>*@^b)ZZR3x7vB<3jm6N6HgONSVeR_+$=-12_^w|3AMEdGaz5Z;rg9T z*X{go-P-~}4_-{lU#a%XmVvbYK+QPR6c0)HJN{HoC6uF07*97Tw(MGRJ3F`FqySZ@PPnY`PT^@V zakj*s+-q2D1?z-RX+ro1Pf_2ag8qO=tawqtQf9!lPRxtR8u6c`4;VF(P8oQL*7X|t;-M)G)>GrnT*ktR*qAn2A1Y{C0k(8EpFVC_X~??c+! zRcZI{TLz3@fCpnFjIe>Ln-&zc&&-p2BiZoLSlmE0}oQ7#a*m$Am)3vny1lw((?U}Dq9)L#T07|oHbi>ZHN*dc_I1mQq)6N6{tA!wT+$N{KQ1rxtaxham@yv%jjAB2v7+*pG~?F7yoT(It^CR~eiz)9pNm>L zK8-J!p|64hnoeZQfWZ1u`IuR4t0s2l4LDCTrDr8*H-GKad4Jh6#_;NYz5wOvI0|Gc zr2SAZ@pGB5SEl9L-QR!a`TS8E9`-3TD0c?q*`1OJLciJ)tUJ3P-D!q|BPRWs=6m#! z0X!6Dl_;iovkU^lH$viE2}1n1y}|uJ0;5sbcL(;i5xfpBB!K%ADFcr}d;sX?Y`k#Y z3LN%J2P1JSumBK$(}^p&PaNK`kGf90*n_Bh%QZ_AH#2a`6R~C} zN{_(N+Du4}XzjLBnky!>fif|WbcU@o-Sd0_k|NyBFmcpOye?tT{8ErAYcvZpMU(9( zcHdmg^|Q#oLmo%fSj?lof~DWybV#wX2vw>Qzp>MUvbxn+_+`JB9vFPaX%~`BUwciH?odlSVC6M|JSUL+xTZ`ybp4(_VWpF=1 zkh*R0U*QO>IYU@?KW*=qA^*LWDX^Wk-?GH4HvYMmzdU3SLt+$iqqLiD7*#QDJ(CCO z)FmQfrY`UsT8mV_g@{KU))oLeoZ~D-A23}UrdlCnlNDV!4PS+vyH$8IH3cmp!Xmbb zwLLj>hfosCM_cY3dG73qGS%@n5cPg(Ykry!%z+kVBEot;_k$I!P$7kwhvW*fcW5m` zhhNIAqv=B@+MV8Zp5aOau_ZW2X;gGEx6!cKpfy2(3XgMkL8|9Ie9~6C)4Ph zHGo9bu-O{f2k4YlUMW`Mr@Fu=>DmE9=gcaIG(&EL7t#-8E3UVGV-m#@H1J8 zoUf7?Q!Krr!))rEH&jPP%{nF3&4Gkg|9gDs`)RrK!AI7#6Wh`?JNGTJf}A->IzRHy zarZjCPuRUp0~7D|WSiqVR>qUUGeuPxE<+hH<-Pr6k%c9xqG%O-kqNhk}nU7_;J*{V6D2!0x1}vHgBQ zhZ&gRnASmjou{YUvHU&agKeXvw;ZW{t5UkZj0m|0>=NG0r>4;l@>JTrJ{TT)5t{`C zLVrC+t3Y|we)l|xCuOmid;YK_?GWrprOJf4%kE+Mc)2g&`6$Ipo5;wxYnssHz1eea z*8DF&)#4=J7a4=;xT2P7NLz#W?dyI9K7om_!0+;g{Y7&_xC_rc7S8V=@w;KcDPL>u z7WFrPkvI#@CFyr@bwx z5{ndajObb#+Er?;JidJ&kOT)9twE0~&cwbFWz{YFTTprfEGvj=3QFf`HL2vXZ7l*Q z?))%NzMLAM=+5%ibFCjX;8eja+t==XpU6TN^)ZwD02g%V?cbXQ(oj#kZMBYyLTdka zXV3r+E+%ZY;f?I-Z>4P%3e@Rbo5Ka_z>?;$a()9ypRI6_Z^W8#Be3LHtIO<%$hCNe zZTwMCvY1&#RWCN;fP`8D7q?z$I*?tp1`6)q?RK#^Jv)Qz-l5zp1dJFsrbhm{!;$xRQ2 z_J1=+S0n+xY2+xz#-Ey{!VhpNzYpA)J=;X(ag`EcD4zV=Dft$}ICC#SH4NQuI*_+z zAp}#Wn0&hNyeqK4YMzKLkMGS6w-_4*2;tXEknb7!yfs;tVj<0s%(T&LwDI)1m-LPa#(M6Z|MB^n18jE;IWeWj6 zG*|4NP-F2IX)U%o74ju-OaeOtTO|s#7TSO8j<2zb2iykcb;hvZ=C!yu8Je^pL<-w= z#hQi1Ur;jm(3WAcMTMriGbqVV?bCRyA^KRm<<$9?ZU7Rd!q4v{Mn*;Wd;MI$Y>bQ< z=6iJgYd487NTU$d8-Dym|5~Ld7OzArG8y*zSeIj2P zp!NyoZt%$Z@=XO-Y>O(KcJW@Fl|3A8vJS`)h-Vuz07|j41qe6)tUcXRqp9-N)^1%3 z?<9q@&6oA$zjzmK;OS8xRq>D2z>a?vovO%lf{Yyv++KAR=AVjeoE+PRJXJv?T7<3+ z6c%%Lgv?~<#}dMI569`;f^5^xBwCqJnAUp+%ov&l^^~0NG1-#}h}$Lo%+!HR5QPVU=?n1gPpUn^VyX;^0P_B4m>@;{qmmYE@xsVgI)s} z+m`X)`a#7!E1_Rx@WDMCbztbGey6xfY9G8Q7eRAnXCL!;{?pavnape;Jb3F-eqO3tRluN#G=(jcWX+qhep-#b%x zVu6f4*1KOgzuVwDHsA==_yyL(jc9SCeYG_{`HvWKtRWpmnCcN!z~sB_w@A=*iym$7 zVv*+7vsx;wfR|dEH_Bnhqx?}4Z&n+33ec5X*NGdvj3|%=a(N(?CcQ3;%YSjT5@daQ zDa>!`W@$7TQEbe^6czKx`-<&6c1mYD$#j>TuKIsWy$Lwf-xoiA$6&0(gh;k%LAD}$ zwoobAWeKCQgp!aY%LtLBFIeg zckaDsKlhy1AuR+tbM*cIcU;w-pe*mFJ$Dz8 z0st!bJ{@P$@5FsB$HW^GpLc2xi-DQ_m#k%hv#0(}xXWQX@@b*fNdFU!SmN{SlV_ddTbz=?ZY^yDb|#@P|2Ao3sVg{>l7QryfT9J z!y$@n%~pjELbjIX&ZwnV%_vJfpj8g8_jAD+#@<{mX@#AhGRO;tp;2D9Nd=|+cnQws zj>Bw(&a7Bf6RBD=LFJ$3X-c$(Zy9Atr6sXctgD9#Mm)!%$G%UnUaE7e3V=Qx`(m}U z2zPIIHZf1eZ3hl(G^cW2FmNl@QY~cc+zO{?ToWKyU+8`$X$)Z^LN1d&WKW_MN7|(v z%y&u$4x|`EZwnPiFP+#z@4GK`eMwJ;MQ1x>WasskpfC=aa-~ClNiO&hSOhcR;>=C@ zUGyQb#WWdaWFi3z{q7&zUi`Vuz`PUWxOU)gQ+6M*BDdTsn?cX9Sd117E0O4@Dd&B2 zK!_-%zvb9Rxv4bk<)37r0IR)%a_VT=ZXRTHPG(J;AB917i zC=_MB8EpE9hJIt2{s z^)L0X`@a;X=RZupW6Ngk5szZ#zvH`AnaT7z5c-#oz4}2w5i-3Ehj9_%=p>|vMH}cR zrc>aT3tLtWD!DqI@zIb>=OZq5}STD>QYES z*?U`Y;z-^&rcdt_K$tZc?5*IXJNoJ@$T?}NI=&sJ0E6;Lyyy1px`h_?y-8TQMlHoTtod1P8YQom@EPgFJE8PA-*U%2Px2nI{rP(Eq~tPPJJ*!Xh$uM6zs=$&NJY#)=BKK9=(`+CY(}<4bX$xxa>oJ2U z`wLKY&P_6#606Q4lJ&90?EixhIiG&Ptlr{~`Xz;3`qrmP7$=PMGxC!L9!h7Xja3%J zv3KrL!6*55f)552FO9eh?r|ba!NcVo2#pqAx_zYG)`Xyt6sv0fdjw-{%spuW@XGp z{7?iIj-z?7t8t8e<3C|pZ6CA$cyCX2(uXpVPe~C9-%0{N%iHF`XWS?HGPyM=VU;fV zY@BakgQ#PVX@nz7RfNB7F#+AN9CcX8Wn;iUQMT!EG2y~@iVp*@vP!{ZW}!r8Fh2>7 zHyaascdKXt89;UP#!uuK;{9d}ug8Cw1Mkx`C6d&sLO>JI9s7YGTY?uTB-UV=7H?J^ z7f|c!w|un%3a{O$O^l_-_F0@IpC$Py5h8__#5ya}Gw7+}u$0~P_&@D%PSX@u>xu6E zcxqXl-)Vjl@u`l}&jN5T3k+3r4k!RU%->aEp@ki0FGcrw9DOrzoG`)^g>vI!N0UCt zTPUV*;qVG&OahU{v?u*6n6aMK?6I0i>`*{c+7pA`i>0!3V#>`-DLU;V6*2^ zyQsNQ%8#ROi1{fmV>@3Wj$PvIV8bmlbx*a^?a<2j^VBE(WQ$#h*_&<}>H1n)SQ>0`yEAX%9-%sXuAKJS!*O&L=ow zr5~awpCBx`A0L$Md)ZWoEL7p)V6E@Ig83$a>TvyV#*#OST&PdIR*2?a^M>z^?*cGy zDrlSyh!dx~lW{fIV~fF4>eDg#8x#QW^|n@}@Pk%<6rWaHLDDlfO*muG`&KsLxY&bN zF8R3^q%d2b$rM30`mb6JJ+k5!NLYOFMD7acA1vCPXw9Goz|4h{k<|JkbP!p6Cz! z-$StoXy}|!{{53$Um%BBA-Il9(Nd&Q7Wir+ zqPH2mgb1}D>BEUv0^Kg{%aJ2^jw$QOcy%mG0fZeg)U(M(Ou^sF!A^&kKVqEKBRQ`> zz&xwJXRJ6g@1oO%TXllb1-~P#+v2ZV-0EG7dpXp468HM@ffbarl_W@km7X_g2$js} za87h@_}NB}G>){+0N7^t-GGT7Ph`M~=7fEA2-{TB=(u>7NLB+xflFu-iw=*qP zH8oOKY5V>v(XnM|H2O!wG%J7%Yf=u!#!8IpkN1bMw|r3z)9rzs*Rt!J*Js9z!{7lQI?_Tv4V1&QO)5OIEgT-K-A|tC}2dp=&Vw-C<<2nh9%& z+YiqAbm9-#;UX>$;uEO^cj7LFjj5O*C_c|#a**^az#2u!ia&SIjON%BxSboR+yv-9 zVoD7F6w?T@wvC_m~JoiwW7>h;%_TbB|UHts;!xyQ9BnlvM?bQLcdy3v@hAYswDE zHm|y*$UVEoqPde-St**Bmqg^)9dbKJ5{2LPty7SGrPdGj)-)^MdLka*pU~(Ar9mqe zXR^Yld>J@iryaG02@_i}v!+15m%jLe82&_Ccp{s)U_w~qxZZw6VMz4U8_8!nf^NYA9s+?2wEh!3?ND{DYUp{0sX}&(} zZG1GR9{K@xFleQwF%`__Bz>q>JI)f=2TG$~05{90OlbLxIek}Qw~{72`(*%9I0sjrDzEVF#x5+k3Dr4^n}UUbpV0ArKc6iF$o zP9IN4vj@_Szw4UC@aCB%RYDd>S2xJQdp}9WPAE@ye%4o^^X&*2J@0GzvDCk z$6XOORD7wu!tkLg=O*kEIbC)?CD0miwaHcO0XqtrZjJ@?i@KsGr*^VZv0TCN8x}?Z zh72OVe$6p#C%w7GvBE z!kX3WCzysF_KTU`*?tjD{#@4-C({ye!)zJ+R~^yTUw~&3c#&^q18rU4!V`5?B*ebS zh&yU%GMGHi#!Od!_cxxHd(P?5#6f)bS!zd3^P7zFPBp-;*zF9_rw1{L>4iWTqh!N4 z3;NNg_=qamwwdtGP4ovH9{ul_o{>E|qoMH6$s&i0K@uezxN4|wG{}6Ktfcvsw}kGg zUz5$iEJV9{9#DGKc+Wb$&51qJ#6nXvCfpblthw*V>VW$o+R({=6(lt7#eoEB5b=Vd zG{GrH>z+3@)4QhEj?Q3sI+Xg?D6NX(iL^bwcO%jVhFu08B!$Jt(kJh@o?$&77n>V< zH*9f$l{w-xb}2(lLzPiBNdetoFkp?6)|EY8*<;~`{)K<2M~OdRCQz{tYsmq5D5eG7 z-=cOUfXN2ZPH1E2c*q^|DkbUJ(-udXt@JYtqtbWekbEVZ{p|n9>*?kcwq%swg4;Py zl*yAx|Af)8eEHH%!I(lak9cG74zHV$RWLWjGNVhQn=|3%$`RWEdz>{!O?kDf5330r zHGSPSbC;`d_D5JsrpisZE5vne1L$icaK50jNcVBb!tAikfdj46@ z?Neh62`|6j$E4c^(n)CJbX{q0+l=XrTiiC+O}TAePHKiTQd0h0G4Ig@rx=_BDZ(>n zwL0&F_5k$b0~a&uw*G#VyEdFAneWRK2h@VJB}8RI@t4{mX`7u$7U z*NmW$Q<6ny1kxD{I;_gwKaNggWR3NYbF|Xi%dhCi#y=*tQ>V>U(UVZ3sSj1MRu$StisE3UtV&BtFT%;HD5+ z7?uq*{j2+&3|WiPFSsx70w{DnNiNOC?w9-|H~QF1`+H*4!bQ3!3B|ot^Hi5IVc7+w zro0YcdKrLIez{{W8d8L19A8%*v1O3OSwjKAX1@TnVYvU~cXvdy&_!L^ND-kigD0fW-|TnYMi2I`h! zm}G7QUi{O|F82m$OtcbXi`9f08sx6+JMVrRrzVvr#rw@6@0;(?@36b$(a5yr*=^Yq z77#?~Y}5PKxw_;gO_Z33x4f6ajtWbA?p>a8ph-p%QVKe_$h)u$f0{uDXY@mCg9mZ! zV$_tBOhYNpoCg~%HS(gIxlw%^PVGW_a1rsYWfzDoR{`%p9`g=3A&Eq@sD1vMvG_}yGi$x!%a20$hnU%v zz1eC~uX>O1ehRoCdo{nmjjn?VjYp3LDObQ{!~4$m2yJ>M4#kBMJ~PdYL2!)hO&I?_4c%NWugVQiy>o3#~du7}{!+-Ojms5En?eOW&h+4M!@y;75mC-_L3$ve zI>O9`U8=(yhVOu{GrI-y#{q`iY0u>)qn`D%Gpd(FMk*%2u;&KC6H-1hF~eb9$T zh0~5=%`r(I>c@3%sU$1!rc~V+Ulu_!ZEXzS&n;l#q~Td@p}N)p{O5pshDc{6SH7ZW z&B2>lfi2Vmcw_wxZOYr{8NBpb*2x!5YP@ILV1Ut5!@_t@mc$u$r?a(?y?dV9^Z9ms6U9uZ$j>YVQl+%r z7!6-tYTvVak$Mi&8R;E)S#3~y=I&VZ<6hr?Z$(CTmT9z6kkW|J(ka`n46X5y zk6i$!0)U*+W8q8t2RS8M0@zUDLqqOQiE+5d**fd24Mj@w`b`F8+9)J2`JnM%sdw6Fm)U9gCAUuNB>-x2(UKGim>H`nRFM%l9=Avu$ge(}tov0-ao4At#1$ z?k`^noj9zfTn)!_Jn>?`SIjf+z`nf%hI{80rg47mDHw=w4!lWx3Zbpp zORyhW;@$dZ_c}?zN5%U@I2%XhJ2lUL0D2a37Ji{@3~B8Z?aSQ?sFOQA_WP%w zn3C?ws?y;*aKZXomJlm22E|ylWL8uP-gXTV>+eZa`)IL{F%-SR;lKgS%Y8zx%hQ`8 z>el^Q0`&V^39F3PN`@S{n~N(e$I~lMpzM&0ac|U_Fq!F06jch4g-Qufr0F$fy251% zdo`P9xRNA(a-u?UagR2|Q+*76-dcxsZ5#8DAm&PpjNvsQPc1ZpTNn?YCS2?P%Fdp; zmF1Cd`-KNV5wU^(^5|RF<{dxwkhZzSB^!4hlvuUDK-NR0R^?m9`43nsQlfK>i;FHC zap}~3a1G2o2Oc?b3q(A-`6pu;=S~4(FKSkEYQyc&-sU{Sewn_bep6^JK2}N8ygqHS zGLxU{LP5P0^KWg|p}~Ik%_Y~m(3cTMhbnKZCo<(Y^N&@%3LRwz;iT|C&SLvAoTIGi z75+o_;&u39rC(Ngo2s6tXe=JO71xK-*B3IwiA#?Yzv|w2SG%SWJlYO-kW6wz}+e>iPbWS_E zH^YH8Sw++E`nyGE4!Amo_B>clNu+;BpCtYM!5;rRdvj2WDJ*1Vu=<}(PIPmYu4JNU zij>-2PX{U20t3G zL*1tz;buAL)oJXfTDHhBb;fR*u^^8YHE;-^L}Z#n8PSUJm-~KeYU3%g)Q2`bCvw3+ zBLx&em{qOYJA0|8A0)%0^^?3MhXC!iIDf!LC}#1(z}mJ#;GBimgW`dXsf_Yhw&?lG z8SDR|sjQAG(q2sw>J7O+55LU12Z%_nzogeju;JA4P;equKDf;X zQLI8#I^H1iu}4LZzE!xLaN04l0Buzv` zbtJ%?P(ex|tz2tHKsMd0LGXNIpDUH8nLY?>Bwmj_cp&0*Nhqz01(GZj<&SpqTf*2A zhD?)NF6r*l(ZD|cB7^P&PvH_=h#K1xw84bZ&saQW`}_G{Bv9Gs>b|UcbpFt z^o*X}9~OWpb{?&Y7cAMKc6A>z zZdHsy9RxMpKi~U9`&URn&i%&0FeGNhMyOPNLPK)~$pztDIasBMjd6RB-6?f=okOOt z-fIprP)f@yZL*9n!WMEgNX~6|aDs0nY*%_!$AWH2|C&m7LlT&>197?r;zYKBCl01z zeLe`PRxV_@;dHpx@{`?ogy7?{2QFNVCfU*{2Od;z|itSf-o}GEmgbbFPjt4qx!$N0>g`KYgQ9w2O$W2o;|+Ii{>Wm ztm3hi9`$%*Q|WaiWS&l$o*%L$a=^W0u^>|yZS8R{2lk1~u);rUmyr_Y%$2J7Y*#?E ze~syT8pP0C>+Ul_%1sdiA6I_OF2ZZIATMd`$1DRN9IxeUgZ)zko#$1WZb~aKct(An z{DOB+fNx3zhtOC`7#s8v`1IU>pHfFI$^l$C`;4}WIi7rjw--V#AqtyN^R<-n9-REB z24lyWQWjKr&rmfM?a%Qf?W@feF1%!`<`#MdC4%3o<2%h1)&G!)Xp#BLA3R}W95hbG z@4~I=Bj{jt$*dP~8q$^NjN54~OT-4cY9Od=(=%a@W*8gHY|pej_LqJ z^GRd+gWQaA{cu#JQpVHgCDW0w+F32A8+SDsA%awnagW-Ni%0))U}w#aM~yEkDI61- z@mlZ7MH&8E1(;x$7$X|;7H*^OLITl)wSTgeDx4 zFLK8O;3#ZF4(Xa$9lT^y04q%S=0m1OlY=T-nkiXrGj1CHm!;=04V8{fiWv&Hs*42f zw7r(ToR$*N{?X$S?<1(vJx_8+E=zI^T{cbx3M{D4uY@+H+F6=GKW{YosFD6_xf{`5M4i<8x5Qfqn1>vCpyvsqoPYS3%m0@m z@@r2s40 zQcS<`U3d=CxY-Zi|C|`wflMQt@@6%!a^%PiN(E{T^1~2%yJ4|lS;_^2sQBB`;3)Vl znxag26`{FeLZJ>5_K?<@uE)gmZ#v^eN*XJ0oTgRP6{K@WsP)Zo< z?3`tDYgz_GSaS9N*Yqjjb|9SsIVNcP8+@{ClZBtw>A0}>pnYlj7r4s818-1Pdlhri zcOA}>V@K3c!uhh-UE>+ikpNt+W#gE9%mzsUY%EGw5zX)i8cn?N8~x__k&#mGLVv8u zxv5iesr?zz5>zBIQmm(pKYoORDl8MQdd7+PX+X7{$e3^VGdGS?f|@2&8+d-04NcIL zven+HRr_y28(D2{{`BYI=BD!->E{#}kP-M3CcLDsMOU}}oRZ~grjX3}9dJK_zP~-K z7=jO!Ise>y(PxDYUJ6i5u9e_^lMza4w(o`;5_vOrCP)MJH145vaHX0RohiS;eqKR7 zMx9ZFHu`hh9+X2BB=pbQpo6|U%!2~d-0Fo9Cw!rf%KuyA+(1Z;qT{PiGK663T%Yf> zJ{G|dU_=$cv9Iv3?N<`3^>&;#83EgTGhzs&PQ zGv*v6%j#Tk0!u{_9)?XQZ5|TtVRJr6oME87Sdczgxy;n5=qd2s0b>jpdB~s>@OKk1 z9S&u^*?l&M*o6)j^GO3^BFUpXikg}89ED8*>>_VIb0bsp z`#^A5EI^uZPFnnDZ|@FEwj3Yen~5I3PUUgU+Ml&2U10b*NcfP8mtK!^m(YZHd!@B% zY@|6-kekV))=8^K<2Q#jn5Q}q!E1MsPijp3NlMnFuk?(ew}uWpN1)Ey4EkdVgu6Rt zeA@?YGyzdLJ^ZjYhqI61Mnsl_bs*GEKmV9>cKKG94c)9LVFR8p5@LP=*Y;7mp}@cy=YqX_ztS_je8 zHPA2B3Fg0xJ6KFAQc}NX{@*gr*fQ1_%e;HC%{I%}H^=Qjn95}$B;%QWaqQNFGL6EP z01lBc4F;5CxmW0A-d>#)@kR|>;g#P=8FM=iL3t4>(FcJ@D!86^HTI%}WM{FRu}sO&x&2JQp>J0_mBP=lHkU`|O~ ziqXR<+|Qt&(?1^XFcX3R(!CCn@!QF$(DieYrc#Z8ar(HM@IfxxOup&E*us4R7tCCF zyH>8H-w%{ZoS5ZDAO zw6_gmOfJX>;1Qwxjk*+v$nN@UX_$gi-b=zjHB}(wpqOLj^O}2yjkURpnDbtk5^!-}q%41`=hb$&?rRxry^ZAv#4~McQa)Ht| zZPEAS+jpyD9CM5Kn*rtBJxS|jm8Q4=>&nx=B4qUNiO7Q#(uA4*@o>dOz6#a#fdAH- zhS0uadjLj+H<+fG`m_Diz(!3fu`@ZtxAfZ9a77&X_ywnEe-=W7%W^voYIhEd^|$Mx z+9xN>up%`qtB11Rf=i9tF#~UAvwYee4Pq6{Y{>eI?-OE$2t#ev!`V|Ct_-xhQIRxt zA*iZdZg030bq`Ow>(N?SYLBaZqT&?6z907-E2#)+@S~}WhscOALYXdjq?oToeH7&T z=ft+S@>Jqnk)h(Zz1dq)4mX``sS1CFG5+(-*n@|N@ts!?icB5y}FA-u2_( z9k8d)T2N$&>n>hz<6Hs&L9Z!v@IYkZ?j_aX3Ku3=zim}Z7Gc%nLpYLiEklpl=x*OW z^+9%&6J_TcC+NJ4iqr7PjD(bc_Yi!{VSa9iLHn{y-dv`AEROOiKyBP25{HZ*AGICu zlPElNPUmKk(joN+Ak&x1HDo$;y=-Cv9G8j(RUn-{3b!>I*t6%yMJayTYYMFMP${kna%f_kOdLUeViwl{zK;`=uIT6SU`zc zzClwDS;X2O>_<6J(?inBfYCFIenz4eL87(s3|=>ZUjwgZ(C63mg3k3LvH<96^7g18 zaO#97+WY%1ogA)QYhy%4eJXLYIft6?#i|NFXPro9qulaHAzzRl=b61LM+IK&LhrNH z{zlv385d=_dx&(XnIsO(Bnl(Hnb7v-?GKv~m6iXUWq+9d3qIZnvqWb87`O$^oIA$jC65I<-oaHN(;=Vr;V?qL-?ITDUTQ~aKB)52(Qn>JV%?eW1Y zuuU)P9%o-+SnT4huOap%q!61?zI~o-+o(%+sEai1Jv_<|NA@>+^X%r9&K>K={3j~# zeVA)L%b+$+Px`QV3|>YKqlwpZ)f?ezj6o7ALZT%k&kRimrU7^Bn&YMNnKVhX$j!oXsJ>|rh3T-a+baDIx6C)<@5Y< z?!T&xWhdvtp>=?6#X(&&ZjfY8_g5oC+Wcgs{QB_Ce4x(0IAXxkD{gLa3wkZ_V9Om} z_Y!9-;xIxwwg(oHPhDo4JEC(&c;zQj#{5ZMh>_aV>Q6|mlaIrgnhhwIy{da5nTV9z z@?C_LKf&fyo2Rw{-a*H+v_qjJ=SQ5Ju`E+jrZNyLr| z$y^f)qsYK+vYo_eNh&<JdoL`-Xe&%zffSIW*>)Cgf zU}$M3G)aT58O|)Jp^h~NnkGyrP!~)^v^f2jKJVR`Zr~)$E1rg?xB7J;8%ZFsshDC} zfoM*^7(a3?4!9nco_g{Q3wnJkb+J+X*xwaNlK!SPt*ofz&An&Wv`I%0eaM@%(WK#v zhMpB=l?u->U)w@j4_&@)^;Mno1=@e&p6)}Z&XxnJ)-}@MAtKB4Bq4O;s&b%wlWEHRvLV*YlH(_#+;O&&2yuZ-SH}@ zFFtJZU|Xwa7Z-F9s1LJ@_iGJ{(PBl|UVppAi)QVJ>5Za6udfCDR$(p81T?6jWa+Fu z)3R&||41n;OwpwEt)^jJ+D%3F!&|U^_52o5d!OXlQt#`y&n;wE?gftuEc{^RbOp5J^}Q@{?h+O-wjw+$x_<)Z$h4Oz zu0@D3+~r@CvX&LES;Qg7;vWIiwaGZ<+!GHe7mX<2F#~iZDRnXRlhf?FmoOrGhD|T_ zhGiefgV9l`w*GxretA{lb04mJotPDeH>d_bv`RbGSfd{`SX+W6yM~?_Wfgop#vqY8 zz%F9jU0S`(3;IDYwdyLSC~xnHkr^t5<$Gpwfy~l~($@M*!*q!&;eo<&qq|#BNfhyl zY5NtHyL-aZsSX~@IP5YDJ|0H7Y8Cf){XB;_FzU9#1Z$H_rkV^qWqfL}qiZsZ4Rw0C z-tifN^S)ZO5k8BfoV*@;NRg#}iw>fH^X7S8EKS>r?xx00TscBu%6>;@R1lm$dZ4=t z_uqm?Tmh+aleF3Z5AOelPAqn`)~G<`5WkmePiHC~7WIBBK?sIbFHHz;H0?ll_bf{F zv@VLGz{Da-(6fJ`?2upPR_c#Q#5_B=m4wFjD2B(yPW9MrjyHn?rgHFUk6cY5BdW{O zme7x?{8U%|o|&=4(dzNHhdI*7CehgJ&B-C{13X#9&_o_VMKn)K;mh^Uq-m1kBi$N{ zTU78jSjowlxEyyG`!$!laK`i3U=J(W80zBX_~UK|H6K0_t*2MTM@lKmWU=+&1#PA# z%-@;vnX1^+-Q0RJe=CKrb5a!bj6Oa6U|}YrA;Z3N%QPQ~T#{#J1z>$HO}8-v&tL1^ zK5VGx(ID5L+ZZ&cpdnT-j~*&35UA*1yQ4mPU?S9;JA&x%R9srHWeq)Ob{)q|@40%% z^e{nz1>;5p+*r#|^VkuU*wk}nome!0szvHU+os)`3JFqyPsH!q0u5&c!FNStZ&!WL z(18;Xlbcf^P@AF0{RZA+;ZI!xpr+VZ-(p+6Tn|bF=D}Mou9^z}{B!?ptm?chj$#F|E)YPqlO0W6Jf-w5jyr@B z`jE}sPNQA}$BenPTO}1|6w5a!*2(Kgpf9FXv+a2LN%%-#e~GiAh``a05sq*Xv}4O{ zOwdhl6$6a(+v?YL)<;Z+BVPkK=Y0_#qYYp!Yd`C$^DO;pdl)f)nDHDmUQ|Pr-Y1o| zP1uf#OpRg;umiomboL;Q!Y|EAcpt(kV4y#@KF`CB-BcKnEQa0G@Ctiv>rZ)hZJT4j zfcFM_y=-t`y$_!BIzG`OY@l!DCPB%RUgMNL!isuy&14ZO`|ZAf$b9W=%t52Yc#fAF z!JLb1lm_gYbpKPxYZvk4d($hSURBvRXoiZkJK*&WFHyNyAf9^{8p^u?m_Rgj_bdi9 z8XsE}a4<`Pa=Y+Q(Y*^qvI4dxvCv!v#Z|5mQGWww@{X1DABSACqyuq??bEjsXA8Kb zSKc2Y8&8`cve)4renfT@*W;E!v*uPEq(y5+f#%9rGXHlioz!KY;Ol{BLUDH=hh_h` zC#G$?6Xo1BZWo*}6yl}YSw$oh6A^7mq;wxl{1viuh4z%9g?Od2_-hK$`$TNoO23@V zuTuNp@m$72T^ERT+H<0QJ=-YTCKvNWS3`>i%Vao^DFE88D?cKUsxG5kj16j<=h7jS z>p0S0f}=^-lnOk+57Kmu9{uZH$fSThhAX^it??)ouILGS+=E(a1z}F_T5m$5VBfy< z%mZHS_`j>PzU!7E!E_N-nWddK;jq@jFUYsJ>eOjEN_&d#ITFb_*o^^J^gcy-JI}!@ zB*1x@TkTj(4H}p^wiO4q!t-B82t*a4CM!H%Ra;;Tl~SY{!iH!qLD0shX|F#Qpm~@{ z@g!de7uBN6|4(a43T$5ia~G-Nsmp4LSN_Zrrie7+{A&BTdahJIM82sR->rH*Hcsv^ zS~WG(4^rZT$K5m4<#k}OC}Yw{p{|Is4{W8R((a90g zqPMO^&mRoPC$=JV<=@oB(r1Ldrj5G~D#R5v3OKmn$RT_)G^PX`plRvKA_1q5VO7jh zG|BeTv#g7(6kTk+VsGkpAcdO4$2j2cL-2Qvj)7{k;ixj1k@UXo_TjDNQR-@cw*}5#^BLET zZo4a8cGdeN;1}z|Yhd_OnA5%p(7}_jrhrBXNvn7jKC=sKukRJhpoB8%vm5|Q8FYgY zq+KX@kpq{YS8J9?*kO)FF{g9w(dJT1>&ECx=;l6mR|s6f>H`O7L>Y~ z^CHsVgC@8ojdDl5^V&2T7#I{Tr5Nr}I)CeyQ|lJwG_e@nHK~O|RHa5;j|}~nzhm)u z>+w2wn))W5)+f{qwdA`*+5{0tsYiIBhc-JoMX9eaSBpp{14~otlT&Y|2EDgiee~?| zndiv5bdXRtvl!j_Xv)_Cq5onp<8FSYk38ruI4=P+Oimb(i!HX|Ooe7en9CC`$ ztvFhr(L#*oArz@vackG~iW(L7hKYu~kj?H~-*wt`;gHr~MUP0UAgyR_YGXA_wE6ha zMnq$Ya_XU;d+=6Y2bOm$Zf=ukf3^%Eoi(o*JTjW4ww!dK#)i-8F z30RM`lZBJzXjg0`!_eP2yG%Jc>eSPo0TxyqWR}*$y2{2=gS@waoWFS9yvu67!HEq2PTpXv2H`UkSNpEyd-@Q4cNzPi#DCvFNH()bE2BbFm(<|BE>8|L@$ z2}%-?jSS1r5~Lt3Jk_E9;*C^x&=G)B|SalstZ%OXxTw>MZe|5g~<3jkBWSY zr#B%?$sEMN^|-??*2#*m%>Sm%CA|>2cpL^u1Iv-!fbKt|O}Rl7TrHm7kc*>zu;M!j zGtwwNR#A~Gj_^*BB1i<$d>dwpjZV8W-N<(5_jVrgF6>4%_Q3AAGodlvVOe-)B9_RaSzeNv|Ll4X13I>q^k$)@%cfSxYxpHbkz^pYE|wNxgYzE4pUMw?!V1jMR;lJiPXI9b_OIU{_SG2>koJXXW(| z!j2s%{7LGgn{TlFIl2Yk306ql<@E!9?4*^>=n9lkK>zbD?CPjSdLzPX%y(ok9-fgo z&6@ZaSz~D_1^ZeJJ=cw-)O7AH8LwEAw7ekE9sEwUJHF z^Y_~XsH37j^EbB8PW!5Q{mdXAq717Jv7y9 z-?bWi+7ou6^n8h&g73Qe{IU8A^HV2X9c>i=*zB>bUBLsyM&@UWmvz{VqZD8!nCdhz z3efwK;wu^%kylecsPX_mMFT%sD9TXyu;1X=1Fk*&l62DQy=Rx*k|R5K#~LnF7h=KN7l4j)ympV*<~Sb`DPtQ&cp7Z7$AOAgZA-ttebZK;u*4^&Yx=c zsVB})-3DaXyRzx|{sTAE707%=(_9!Q7GSy@?qC>L*6i7yM`OG;PuPo38uI*aqa{X| zd9iX`;HQFv2QHLI2s=gg%H2ou-uvl(RnwYjXJHan%W+uOj{yfHn=ro!Io~&qU>^dB zB~oaX(T(Zfr*B)Y{L3X{raw0{#S?#Wr2P{kWgfeS66{jlP6bBTQCDmiI#2o7O)o8;?yHuGpoi8Ze@~Nn9xG8xaH5zG$2labi!8fh8t@y zc5u-CId{kGFdpcJSw;o_nD*BAp3n8L@25Q%TG?my1G@Z2oz~Uwf6+v=k)W(%-+drx zR+3V6ycvv0Gon2Xd{*=MX~P&d044nx*5T&FM{a1Bb=)?89__`Pt0DH#(F2NQ`^y0_ z2mDf1;Wfh2hbF(!z<*NJOA}=RD$(W zP-K_IB_Ht9>wy-Ml8mmuF05#TN^k>ar}qnGDHlJmo<&70UH&Arv?mK{Ko)Yvf7-#u z67r-O9S`oMT8>*kN*Izv*s&~|TUT4xRGFgJik~eUGMVfS5?t_5To+!be-l1m-!VC3 z`JM@(LBMahA&$roi{ccD;|wt&56q0i?7GaZdyi5lkt)^l$JHN&Zup$_3MqsN!QCx= zRy>)#l{DTJKeSPQIA7H0;Bol|Ew}s>XUyx-OIL^Hn~N*898`f?7DaJstqVurgXvUR zU;LIjNkBvL?x*o6GB#FZ=VeocG>t(L`Fei&e!gA+Cid;+aR_Jv-(C zg4&1)>hm70XFbYwtW>`2{Q6>*^%<{~D?IQ-Mk_zwz?a=>x6MJ1l2;`8TJvt)VI10s zQ^4#&VW8Wn0zXQ~{gIjIx|?Pml;ZHF7DsWy$kvye)t{OQN=s9b%ia@wYpo+8*W4z< z<+T^K3R98#&()q39H0@o z?Is{{h4{#e5$(chCUnjGcl&GHMe;+rl2h9_A0Z5z2T`KAw>HN0hw?H1asQ3oQb(9~ zGPpJ}?Yu(I&Xo##EtgmK{*?$wbb~}(i!Ede|MQkhgPjjNRzY0JnzX@NzIeRm9RK8K~#9pE-P4Vk- zgU9t7|E98G_}|YqS_MhlhvN@GGnt})1&oOIeShV7MO-i-f%`Ef2(rRz+ zBQ^>kI)j1QZ*lmsc8zKl!=bv3!zaD6Jm@Yg&Ag1KeSv34;hf`bPYv&?x1*I-Aq)kQu2(%Fyi+&kH5qLA1^LuCwyhy~PJ6&8CE zHab#2+0~}^d|sb334iaGox13m%?t6wozz~EbF!z9{>z~3Q4)cW@Q~ldQ2$lLV3@Jy z!Xw}dQ=iz;QgJeHlDgc|&2!K3=u9D7$YKeSc^_@H*S8=HQOYnX52fdSo9uAn-*)0$ z?;DGY%_*CEfB6e>SuDNzWmzN52vuTstB_uB6EVuD=z+U92D5*NAM#Is*gFUn;^4p( zV_SZG(N2l2flAwwY5#1$2LUbd42yvtY2oGe*(~MnB)xaKEP5hFfLM?+7-K-#6_{Bq zwKUp-Zq?N(Z-vnO%cJPXB(t4J#w_90$T;K;FS;YMg;-qFbVv5bGjGNDlD05 z*_m;7Ci;t#%?>lsR4~ermGjB*gN?FUn_c5^vGRER&noKq!kY&CH%EoNhqOcXJ(B+# zKDxQt;-hVZBLKi|AEXn9h)|W2-V%61R$Wn-e>Q={JH7h zg?#sCe&;T-8TaUpz|E?I&xLGCycyjB_YuM7{2)BrEZZjM!%Z4bom9}I?#zyF)IAXm zM;{a`*@DQ2#YgPhVja(WfPW&B4hnAbg#wq0h*B!kP}y2aDyCl%C0v>B*Fb8~{_)5g z>;fmPZo68Uf#m^*&f>4DIsDX}n;3yVmfK!%gC>bK0R0d9Uldri*Vk%HQ=CW;-mZ|- zS^|}J^iUkdWp4Ki7=9ZEF$?<tfr(L@9aI+N{ zU%?NJek!%hyeb|YGq);%J`1#TrwA_zVYS&SUu>ec4K-F(PMxFv?ePv)+CQgkO3fK^ zp<586AN&k$gMnAi7Rc@IKqR-Gk?tvZu}A2*K|a8+9kkPc(T?g*{XqW|UHvM|K)7S* zV3KK)dd?frc(CLI_LDX9IU_lUpTt%cv8z&crNj#R>;+3riKS9T7_VwIa|=-gE zVe3nX2P-t+=G&Vq!bu6oUe5lm(BbMO>tIOP^-%gVFX+gS(jORBZ@A^}{=8L1Al=8h zM6{25w42^-ev_G|jqw8Z(*d!p*wX8oWV7Q)25P%N)Px{;W%CH{NkD76u>g1vAJ6`e z&;=D8oTZ+ww2 z;LQZ$MDfTELnzy|w>` zsV@(NdVBvrV+=yZWG!psrb0{liWEsg+C}giNlA5Tvx5z|@5@VZ^Y+)#A z8A(PZbGFfOjeTf>Q)JcW~#5cI9*gB$=(O) z9vw|OKo$oUh~ke7Cv)9HI~)%p);sg$gF9J5Vu0;s0J8|2HoV~jzt!=~D_u}qZ!kj( zJq&#kzo-S0kr+ENURuJaRr{@9s=j+hifKE$C2ld9BjO;_ZXQC^*w1u-3V{!#LJMmN z11yVVtrZ66uZPr>+o_Hf0-w@6VKkFUKOtS{5$@}GDvO)|M1#4g8 znLJ$znzKE2JPBp=k^UQ7C7GND(E6?ClDd} z!w<0r2{se;@QK6^R3DBz=EcV@;9j`hdrrmivYj!AZ{&y-iGw`x_^g5UzE3aEvK&^#`zfK~Q<({~oKZ9ot7!wk6rc75 zu+Yx12yNrTpAlEE6*Hbd?W*1bdpjkp2yKnS!{t$6zDSdvLa;YmI^*QW>rquUavknm);0`4PDCp7Wg3j63vCn`IITIWO}|rHDk* zJw1^6F{G-p9R`z(Z$&NClT4lg;|I(@jbtI(7F`X&Ljy+VGoURWgzHy?--2IrEY)u+ zm4#z1iUq`62xbalrmX~8pa#94j+xJ650hXhbN+-zvpT!CZ1a7cJ}EakT$FGR-u zk%q?WyXD>CbVGT}x3ir0Xm(oH3FvTu0ZLe=CCjR&<>>kYu*m`>4*yfYGZLN&GBSPK zoQ{;kG~)1Del-Vb&x;mqiS*3TQ$oPgnHqmJ!t6Q;76DF%gh`Hl$il8?!#Fc-V#9&;z-FS-W^Y3aDZP6|F+(5h?IYW5!4Pz~4y)l+^g4JzXP_5k zSGI`Fs%A{I!90WRzLr3cuoF(P>n;yvj7vD>s=f|Ph1k~JG6|2fMtrU3+L=)#6m5bD zt+G)nBtSjV)IB*qK3Yv?hgX(hEPqfTeWXf}pZe_X#hu^M7!JxR);bsp@2DH(GM>QFphs$vuy5{ zhuaGx+=4IXw5fs(43QscEc+U0`=qHhyq1qG&wVuA#oG0cZ{zpbiBa;HQAQT{flo{{ z8+inv?RFGsx#WQcvv$R`Fvfer8AZuxYHhOK%4fU|ehL{ZG>qd3(K!CwYlPTp5J2Ek z)E4zh6|jGNlf}Z{6O2epYNV66hD1IX^|$l?|q`(?}BG zf(LkLZkgM7B{x7fzg#V5cEp$f)S&y2LW2JDh1)q7vmnKW%^So8gN?5A461dwjd?!Ehj3_1mtT*;+H$s;um4F3gpTC-vS=%6Las- zb>-j=G?CpK+mL2d0Bf&A4LfuR(tPdlDg%U({nFQ1yh;k60r@2V?!hoeh7eHs?+O;r zRD5t0S=$9qnz#>&{rj6ZLJtHDQvVp_^(DtFtUc~9?jJx|BHjgLj6+T8e0bo{%cfwW ztcbzd0hnY**+G(neE);>7#d9L!A3~CA|>j>px4N(9vn2Ch0;Ia0exiZjzx~y_A15y zlN@D%ZXb`x&Cy~J7G_7OBA^traATaBR=iXpb}e^BoV1H#6#PtIxZXL4pS+e z9^<{6!wDdvlKE-g!vo8)>^)-0B0Sy|#RCI^f7m!XbekYEaL*zLH)WQtq`->&?D21k z2syG~nGpM+Llr82$@lG6=Q!=@R|Mk-xE~n^@bCg5Cux9>5};X-vuziiS=t5BLRJkX zD@`3xdwuUyHAgal@W4)Ar(O2~8NbdvpzXOqcfFBF-9kpCI8s(Ql-EeeAKy z_+J40!2-bJ8OmhpK4&IKAn#J-JMxBxkc4(l=kbOojqqZX{I%vCR#9#Lk@;3eJNDY% zgwkK$dB5e_M}Ay^pR9V`0cJ%!}3zl_9o3HFi8E=Kw|@L zuk;u8c--O^Eew%|h16g{2Bk8O6ISw}3epH<{)O8Yo7_xu0XuuUDDv>y@{3GY=VitO zIiDg;x7#(tOqvRWaUx^<9wd$^IoclPsJtDiNf5krGUfke4XdO~Ya&$YFHs)?gMK!V zIr_39ocD8=hB?f;7vGw-hJk?pNZyLtGlsXBT!WYRT9f`lOu&|}?2Bj^{r_7R0u}8c zeWiR${cY92pDh^4ACz@O%g!8{%lcgP|Hst(O^CL{IZFBm=20Zsp92Yx{}uTjDF=)4 z2UYO<@__=91gqj5=idcGke_Ov(F2og1=zp2Qf_(d!C%@f51SZhUv?5~bk^_k4|Bj4 z^hpTnzg^0OZ%$KU%5pLn16fFL1Ap0zFYF{DqL#9@J)X?i8wT38_bVdj0SU1YwG*>{ zUj3kgB1<B3wX!}z%Z%fPKB4cC7WI+4Ki!WyO_nAxEd{FZacLxl78am}`c zBUJe04*)9nMmV(xJ*>=eyaXBRs!xs$!@(YpQIvR<>MB`x3%R;WvAIVE=h!-*cXw*4r1K75{$5UEiJkD z{NkyiG(|G)-sq**{M7uW{Z!@@55GXo9%uk*B(amM=<;bXP39fuT3Hq|{u z8a@GNE>PR7Y0C)Q3)^HSNrl{(858E15?{{e1tAQFWygIT2Q+7y)3Lg%KA-H%2vY2u zHgcP?R05#O7m)Q(pJ6T=$z^m?80=*ulF@UNYRgMQv+r=(-meC?w4SeUU6PNPLC=|O z5+LXy)BHQ>0bD&_fCJ&VzOyt)xcBYBJFAB4Ou;bzpm=CyUSHMr_}b))Vg+*75bCMi zst@(}q41JS75Tm1xo8N(hNWEkg5izI=R(w!d9&d=Xua&vA&71I(lpi@GVcJ!5g$G> z5*S(ZL)WV=Mk&#b!$43=$Nq-Xdy3w}?k^IR3o0T-@Vy$qPfQriF~5Z|VNq7a$TO6+M*3Ovq#^$-^Qg64wtbzkrvT92KZs)B^uXX$>S}sxVUU zm~TiCe^KD`KQ-H)+!ms(sjSFEvrX6=UO7kibX(KlPVjqiS9w7}db$Dpm2vrdFwguH zNE7^fVST?M{3ZN1YY37OHYBH9K*V`4hlPrrfPjU{c$}<6NCISKulS z+hhD4&@*2V=Ooa5dLHen%F&TLs;iy{`wA zyg%f_`OH=xN&t5e95<>4;UdfYt2&>80!ui~^l@Ab1cT4o_{9h2L-@x1#w)=WEFrTQ zd^vIlx@pV(`F@;r7nu2ozqQo*KSd~d53PXb+5Q75yZkb z^X%unCcuX$5WRccy*%vRTo(BBExxJV+H~iO(_6ZI3v+E3$}7bh92MHPU)(&|j)nz| z&yCsh`6M!U9s)AbaRnKa^{1#ste;&DaZ7C)(r9Vx_ISxugLRm;!b#MPw72Adq#51ip~<+UYKo&3A$QBM68CH%BF zZ_+eA;3xz`oteBV4{Z05bYWg9MM5?)(uACXVgIlGJ*)|f*QyuPiJmn|QQB8~j^as* zHp`Z*;Q{&9PlNqxWudED1Aq96^%BbtP>9QWd$6YYeVi^H*U`!k#e5D^N2r2fuu>71 z9nPoe*AQ-JK&pLA+M(GEYm!)FL3&wM5bBBuWaqSX*}{kN1^xNScm361u}vXb9M^Tz z^5Mp>O|ScT-w5QeI633ScAq!HI`R&P9sa!KDh&k;@&_(|J64CHY_W-qaFBBPfC{oA zj>AB4mQ6_~N1PACM$*mK&er2EEr>yI<{U41fIPgL6E8=8sp=0S@+9ZkxdJqh$ySjq z*Zd?$!5w7o5?G%I$idueSx&lNU_y34-OOdGHq_EtI6m;kuEC|kT?~c=GTL@X*Tx0% zgPW@OQV;wIQw;>ee1D}PZ%F$UOCD~AtFg40Q3Dcdyy{MrV3+Zl&<&=py_b*;7r^F) zal)=(B@}yvIeDq;bcP~-<1Ui>?A~vZTup_qAQU$z5WJ|kIlz*I*z?N`pxC?ZF-dXzaW}v z?`L0l2to!OOr@%$>hfT@sW1Dh$nc%A>5EGx`tVw-;kDkNM^q2WtokN0ZZCiwOur&r zGSqsmX%=)6f7EoX-zOyrp>X|*CvZ=_s3?k!MB<@H8Hi)a$Iq>YbGs>CY!2B(GbQJ1 z-W=R6yn$B76)-KWStT;BU5FzU>u;t_S^7E8b;U)yLDV-qjuHGiFnyJo+QfNz%oj+L znwM{Xs5r~d?!%wVFZ^Nk^+UJN6&}h1t}?f~*-N@oJM8O=Qd;bK1tnI8dXy6)2qETh zXhZ)sxL&r+T&oFFyS`IR z4@l_MdJKDPF?B6UZQS81+(b*E1uMS1x2v9MBrui-$f{f-Dfbupce2i<=+kqp(<5}P+!i!=L%3j=5*y5V+dp#oPdQX7w@__NL~v<|DW;wMspV8huuZ^U1l(Z zs1$@TjAS3enN zF$XT>Oh*wNv069ox6Tnm9n(qIvn& zdv*YAtLbZ(h6Tx$N#apJKFB>(^r@k<{TV(hhwn*J)JTq_Og$v8s!S#GALIRi#*a@^ zF`h8bMNxuqPwk4sD@H?w*+)c3XGDh?+edJ;Lavn1uFWcueQnae?*eVu#-G_4MQ2W4 zgc3(Z`_8Buq_e$mkL-EnpuJU~wtb7|8(#&O(`;Pk)yB{sc2N44Gk6@qNJ z``SMjeYYZ^-h_M?1@GwL=ZcLOTE80=T0S0#Q=9Efa#$+1fvw}66rvU%j@+m>+fI1C zQvBn1KmWs-4Pfn$kel+1x1QZY|HIK9x?8yiI&^BK147i&m95>{aqth=*Yvi@A`ukf zTBafW(ijtv|I;rcP9eEa9Z4e91Hu&Hxaeb%@(=})CzwnckwTV`q~Msj6WlymIr6uc z*6f?RJo}^Q>Lb6P=WReuYf7154zv-(5;EEhwhsA;>f@~1;{^M>7HbaQGmXo#Hxq)t zBD^@K1zU^e_YzmL&M3yACV<7BV~naZJiP1DtQ(n4eXN^H{%29 zwgKV1w8593G$5|HLp8HDZWEf_r;@0Xbl;qED5UQn|E;fzIh@4p!s4_#uE@}a3{vhj z82|L{ZFO!Z8W-n5YSfX^zO7{BYNw>t8Di!%Z(h7>AS9R8{zHh zeMGZxkZh2_<{Q*fbG)j}xZ# z)J9!GCVk|-_IT!^qPa5R08mD%F(AV;&)QdCy4!*FkR(5d<-mdwqs)PK_>=X!Ac8gv zFZ;#zEQ;dowxFR2gNB6XN)igM%jd0u=Z1bocBZT6=^}^d+nDp2O^M*UUyTBwvNl?5+Rqvrj6P7?+W+fQAHFMbn1^fEg;N18U7uDZoyA$ z(=+y_#WG;}In#1>j5AjvBAlf;POp6CBuKl(HCnZMv-Zft5>=Elr0#L1WIGRtL5R|F zcz>0WGeZMNA0Unwwgf~abISeTY8o61mUG~0CKAs9_5to%WYo3Fj#8aDvx+b9`|e3m z4oR8TH_O%YUIlFLKSW`W_kAV%)*w6fHt7;!s~D_QBgS1phDmLDKbeCP&brV5kpU2; ziP)+K9RaNn2Mbx`@7BuZIRV4$s=o}pavc|LX@mEsM5&?Q#~<_ics&pYiChcb%(&9> z*JlUp$*p*mGCS07J8Dm1%g1OHM8sY5wVN@+Jw3OkaQQcTWvp7xeUA)5?bkatQI+&# zp#eo1^sM3dR{mfHLqy=$Zyy23)faPN`n@ zrHF>m3zW59?P0t(MkUBY(n1CS$7tVizI1nQL>tV$G93mnS%Um$O=Zr&x)$A1O>QTk z`3h*eZ3`JIF9d|NG=kFo0=?yX>yC69_Bf15S7-L?vfw2FdkR;!l=g`CX)2Oi`=`?z?=RB5cz2r~ia37Lna~%@ukY_QX|M~ z4C})m7Psmp-N}NC>Kj*(G%B%9>MAIm3{#1~yt%{BaoqYSP0F&Jfd!d`xfOu@n&dZ9 zk$BMxm1@7H(TeZAMcu?!gc6^x-D<+5i#h}qyLIf>+_!n-n@(&>;zHF34_f%K`_o2q zqK#iW2CR&xrOJ~M&pm}AjioxibSYb3WiON{sUShHUlIN#ymS*r z`#Hr*?S+Vj^?cjzF&tYvI@5-;?5_%exy7loN2G9Z4+3BarroK^!`D#`L_tEHp3fRN z4wte2srf10)B9vm|2LasDOGsbmpE?j#$snOB?~8s#F}fH;CE;$otPMpR~tc7wy>I% z2+!SU`m4zm=3(psQ6X@L>l9N~L4-=tP#8f{3GCP1arrh(l?Gqcg_0?~&rv{(g!8*N z2h>u5s*rD$e?tXXE@PNA-Cz>?`}#;n^K)5_>4#aFmMhH z$QKh=YM*}-27;!~^7T zw(&3TgpcBO8DOtEh&P>dh7hG2%;MX~!re)HadzECsD#swZ@tyE3I^`$fgH7dMPwF0 zaA5?u@?Ry~tj9ggZZUrPesJ;OJ7g&>uWhS7Ac&blNTD9k4oMw~p?VWq^ihO8|Jw=e z&O18_x%4%73_V+g0Vn2U?eC%@z6s^ElB@7*W)9SVXhx-3xd>WsMCt{~hB+EqWL;ds2hP+f!<>e%+e-L4 zoh@KdI2*pZcHKItpVq{2A$R$^2Mz%tVEyK-vIx=5VZo~M3?-t{w zdY|PqXK~WQ3qI<=%%0kFv>f`fj~w$^o`3TNh8tIUzCB61ZWLID$!xl=6=w6LDoHmF zO(1bkXrrUqwSs2MRWnF$XPBjZ6GWovf+OfN$`cx8<-dS$a$Hi_4vMm-EMevRQfD55 zYk3{ZJYyFbX3GE1XZF(?$uK!jawQxL;a8)n#6>$|VdCK3h8c)TT86j7z6hm8&SUz> z6^7CM@~X@4%vwL861X?aHt7DpHB4(3oEX38Joh>-+7Cq;%@cf6X*8e41MU>q5h%z_ zrFvyfXJx(^*8T@wlT)xU{vw)imb;nN_Z&!bxlzJHna<;UmXDb-J&+}MK0^Wf0v8Ni z%L_sGZ3w~H@cnDoy%jZ5eXG=RC`M&xg8KBk1x=ug=%L7%{&XWsIO9ZW=&paB@(gA= z%w0TVj!Jz^s*12r6#-@kTvD@+o&lE7%f-sOT?cEro#vr@hZ|iR*at6KCP{9DgSe-A z;lHCla0;qjFMd7g2oj#@LtZqkzNPhqe)6ztP!*MlU~1_{p1X8<$U{yLxi17d zxQPZgFXLz*pQ;GI*HZ?{Yk*Z`RmpuBi>%v=d1N4=B2_7WeoXtL}?}DswWnFC!IYFaKF$xU{Z9|Uv+>MM^+UFE18%4A$HUAF zi0wy@M0_n7`>wEJgQ*gUNAi*AWg*0iMrksQAVEJk_* z_IJqkKBxHu%Ao0Mrv~Xr_$)4v_+sq3u_)c-%b08a_;FbEfvW>dZ-|z;<}Z%xwBAG@ zB;2Xqs<#VM0-&7wdoKmXrj2b~;hj=gFoVAgvwddds^f7Ymhs#e+U=6lRt z2|I*jX@W?;YT1s9Ki`XlLC&|l0P{{B%t66qTJy`id0reOKn?g@ZpgMxOTkoFLIH)@ z)v~cAYj6+v&2_F*aMdc;=1ZK#`B|Q%?(b0VgVn@xD*iQJgnb4d4O||6!;5Aglaq`u z7&R0ixU8wMBYO$k#_obXq@EcvXi{!Nj7fS#qd#A!w>=qpP#{e59%epgB(Td!~!$zw9u8rttZ7$>#rIUe&(R`zBLnN2BJMiquAri=5 zw7Va`|NTm*s~7t{$xMQ`$Sfs2HCcBG6|bU|FBtPR1%I;hCW?K`#xJudRt~h0aZjChy@;CC1PMti z1*M}MuNi^jmh6kSTpWKaJVVj8a;I`SQv28?obL?{&1|G}kN>#{OX6sSQ8kRa#7vYuAins^-@^J5#rx&dEge~mE|7gaL z<2f(S<~mAA%vlrL{Di>=D;#IUcN1u{>7+^mTWg|Ul_GQ_!e}SU2Itde-)Ysnc19TP z#(D-Gow>8gqCk{~{Gzcs%GQ4sP0K1#kd3G=Am4t!#0TBmk8eO%vld?PkuZjFvM8k)h}t>(&&0MtFI^9_lsd*BQ9&pH&I6mVAh?nz$TEB8k)X5oMso0 z$beJ1>AB}lWR9ff81c|BA?cQDcg~i1Fc*z~A?{6Z4BUj;%szH%=qS+vCew)9%kSlS#GnGfJ0iws8O)-0)1&Kfo z4lUW-hbT50H)E6V#=0uGY`NZg^{8D(&E?Cr5Ro}X#?5?o{&q!jD*30EoyG5>vX#oc zeoACqPrlIh9V&y?tIiPBWw%k}g1bCz%V)*YLABPf`ti$yr!si{EWzuuM)3;sV#H`^ zhRqH?e&vj*(D{Q6nR5A{??I_IyQRbHL!K+OqIgVB+bV2jiJ&gZ_%sgb@lV;=F|Yd|Eo5TyYPm%`WF$&e75atc1iUJ^#eh=j35g z$PJTEJ68=B>h+ZqcR!yeD%M5!cH>v#UA?>cqd5k`;wAT2rwkRyuGm*8@%=r}Yuhuy zVqHC*!B0+etx}B8Pi_lB^>yR5NVv6S1QpOnv^y@7s!YBm^Qaw_(rvO|dYqZ&tXXiO zUjul)q-T=*=F97PZ+`nHHfFiR$Vm8ikeVV&`b~&}yr!1IUl(*%doSk^Ucg!6mY;vQ z=fhwu3H^p1fOWWr2U?-qnDs@DT0({VJs(Q%S&uDsQ^dTjf~DO?qWJe#Bh$EY6Dh-ES5`7j8~?QvTR?- z^UfJ;Y!SoFt_JOu!e3}y{XJ2yec{=uOBl?&JcbrHqSI-IiEz+Q;f)_5@8o|n1g7EZ zS^F~0O;=Jxvlxc9KXA$(s)IFP|-ZpPxFy(7QHaaR!dpr_xGbeCk zOD?O{~3RwFbyKKJOrh@q;wX{yOjB&i-Z`p(dda>&G?-gvV3J6N1k4PR~eg5UU zbh{T-*y-wp=cR+|63(-w6r+2 z7e{*0=hVkti&no~PP!NZda{Ii%SRQ`mO^x-lrP+4*a^N|6x5kpr;nlOT&PEpVKepq z#g0DNSExR@|L-&1Lyz)R^oqUw^)Nlz#nHWP)Jcu$1?WQ-G)fPNA)}UmpEug@yJ7j) ztEMqDYoGekz3&9$FK>pw{lpKX7XBD}=1eE-20;)H{*mz_>hLx;e0|liCdrU9mO*pS zYvESMA3FW;dB@clx<;g9YEYMt$AslM+QLZb=7X=#d7OKa8mmwSw##IIzWK%ak*N0* zKN9b6-+-HasBmeyfWy=1_ZNn&Q84(U_jd2{@LY(3?B|k%)dvhI51o$r0=wy`e4TQr zYCpzKG6nheASrk6vi6Bg2Av$l&>nMrscM~1y<@AO#p;?k8NNl=BX^l>^Y;AC=^KCZ z&~!>P+H4ARih>zBL4W;rU0LAYjY+thdyt11>b@$3{pRqaGV;1wZ$Oo62b4=*cI{1U zYAAgE1FTFJ9*eSivs!Nu^yIDC?mqwlC^5}3SA{1vwHEBgccVO%5f_YewA1`K>f}WW zz#cPwUDI`7&<$4R@pr#$0*$~`nA#f?c^w9I|_Ylcvak#oN0Lzeb#vePrFYeTD&vEq8)$d<# z^IJ#u+`>Q8F>b9gz)5pyoUy!;wVE>;+FjI=x9EH2S4uYLrFFY4?f^3nKC|nQ{`y*5 z*_TXTKc&Q0`S+f+P}Zh`ZCu|0xir-GmlSGq#F*sMaSKll`#UsbR!BCj=>w5ffRzQS z;p}FZmpK|AH|l9$c)YxlqRP_%QmbthHhnLeW*QoNdA3>`ZP+wWulUcT-UN}Fe$q9? z+Zw*4_m_ZnJbG#au5)?$FjREgHh_2~P3!Gz#6x>LR;Cd~YOh+3Wjqm+(P9yo(~6Cv z+%Kju?zGdPrmz9m{pP-NyyGX%&7+J*{3yllsmYW;e-wrm(9M6%^OX0YFp=p?Rr|y4 zF?jYtC{xrFwwF4T_Y3qW;Y+Wn8f_m)oh%!B4w(#PPleUNwc}0QS5$0(uXx^Ks5+fm zTB8O9z0Q~<6?QB3n6NgHfZ3voTJ;=J@bd7xp>B0?&j*rj3yC)amil6TDaK+|r@sRV zsm^e#(Z|XPx{+3O-qP&N?3IO-FsFi}C$?;Ubj1Yp9lb61VQ6LRwEA+PX_ewDeWbGO z2Qfxg(%J%yZwyRY8ceKe&JsgtMN#xuEgc%B7=wBa`VJaIkL@$C_XrceJHEtuNiNKy z(~pnT_Be>Xt;MW7L14v30>a-uN=@4CB&27~Eha(8Uymha1ui0p>H`>dQ(5b zw-!vtbeHs!66q8%$H2sSDcM%fh}CCmOEXjx;}6d|SJl!k^AjoB#NfY2Y+)lmFE9#jKQZo}ayZa&b(x-qH2=;o`rE29g(8Z!5*Lt5w=Y zjh0rw|5Cs;Kiu4jafMJ`G4S#P(NpSrL=t05U+&^mN1nBag_aE1Cd$Zyf#|g*gx+bh zBguE&;}|5hC4_H@q9<0br}nnntOL=}^z%FCEsm(SyHP8cofV>@wr{_79SN2mm?^T1 z;W!))Lgz$;`VRF(+*_OuGFq+g?p>u^*w}V#-+p}B$(_HAv>KI90Wu6$EGUI-XSN1Y zZTVt=Oy1AXtubYFoW~ezG+3RzWxuu%&|Esn#LYY|{Bis#KeTSlJuCQo9(D@Mx>}*i zYN`*yoN7tihN_kRH#4jEJINKT{Iv0PsE2PazpZWVy0q-VuFclD`O0Q~)j1gUU-LHp z=pfp}xg7iUcbJ$;^(D{wVac#Pm5{E_yfszWbYa$pZN2K0+c(PxoSr;8UX@h>dYD*^ z4Z@l)2eZ~ogKHZY5-#ulEG(>9qiKby7IDdct2d1?;JOe(J+G<_)Rgh1vx~j)j(MD$ z^aL!beJbq4uKE*QKV(WeJ@>;MSBRZlmk7Dz{r0g}`#U0xmTvavo?rSD`zxiJIjd9v zvpjqhP-Ifb&zZQX)ChPWOvQsB;iXpwlIa5nMVb*ThI6*}NQt{_sZe%nqlJGfZ;*M| zc!l~XZ@C1HpAk%jsh*p4B;29|x*rF&X_13hOb+-MRP98wDfq^6SVd>;^ED6B zgYJJ+V<(yti&zWy(gc%F4~4g*Xf*=gDL3+#STWi~;bDf;gDP56;<99kW&fJ?`P}2N zZv$3`TUK=vE6CSAaJuaN24pC2#FMXwKs5rYp)`046DxYH@$ZG-cZmOA3X!x8F$vaS zv6)Bsa;XO@zeOW?DV=p;l{F&{B*k#u*AlSrYqZWU-NJVNYW74olUC~kwMi&zQCtD# z`Y+>u+ABK?_S}@Z{EoBVl!tb2e%P^6BJMq(Z(kig?S#zCaSZ=yM?nC~)`tHP1L3gL zp2&`Bg)W%<-%i86v<>WnX~$5{PaE)0S+`Z04@eGN4((81YUni(2Jbl0SyKEI>OZb0 z6|R=Ft`1)Ih8tD7=}~$fxv-$f_r^OG*3)z#@}^2Ly;uS=-+8=N90Ce}DTX#gKiIS? zYq2jBmRP%SYa{szUH44xvc1iRF;3Tsz9|&@5%Kl;%D;p2d!N7Ddder=alu6a8(}o5 zIqN=JgOWbdyS}mxbDa|!n9``POm*%4k@BkBLQ30ri{C~Vroo>$QC>J)U}WvYl;=eZ=gXx~U!O4@ z>H5_d?b4K6^R0Un_^xw!2ls;8Ops~%qe?r~&$m=asJxgG51gU`+>r_FUfL7=WbTD&FuUOEOq2lHM_0>FOY-0aPL(_U$X_`*Sp<9f_T*x* zj0akr)w~YRBe|8l*NR18r@YY!i%QA$b;~?`NAYPM#A%IYnJy?*^4Gq_^@>U#CCWnm zS`!^npobosATzUP!dN}>78$#@NiQL8p9 z9DQeB5-KWjKrzEP){YJp1akc35Z&GI*+6g*>iPPbB zs*}b3$qarfhUSmMUBX^5_FHfcDZ*YcDm5Jo)E?ns{OIJo-1(H9w%GToSKL$l zb~_;O^eZB77z$-NT_&1ya0Xu8R$cg!sF?QN&MqF~$A7kS>FrPT;a5hby?TQ%ALyG- z_ql~(%Ysj_*o?D&ts&&MBn9b{zVg5gKag4YBR{Ry29ez1!3XZ}0;@o^? zTAV1Z`((az-J5L{1v4T+x9GaCPz~8;SM)nTW`-(_tvD#YjTekL+48Mosboy&X-^wl z5RBzwojND$3j>x?Vlw=96&0k$8mhhacZQxbUESX)P+Gj8nZo-rnvufD)D-27@vwEd zRHv$hS67o&sDX5E;oZfSfgHbK*u!Ocz&&U=rLkdG4|`^0>IcBO>Gw4qkfQ4v<=ir(}s#SyDBbFi%+Hz1pHbHLQi zz(Pm8kAxp!dcQ)-o4X$XL4Q|%^D`8F#Jsd4rc4|Qh<8epof?zrAe1tNX>u)|@L6?Zt~wtZ)tf zR~H{=Qd$`$r!_&)HvEsFE5<*rh6@i}ROfxP^f3SihQ&7O0|ITuz)Mo{*|39`Wf8V| zU(zsYS_=2H+gYqlg~yDwe#*G`uHZwDeN2v1mg=uHM>4bd@_53Z{vjB^B z6`G)t=U(bPm}1tRIyqduPyK2nFtZ@~)vjPo(W{%aEXs3frf0OZRO+a(IxN@4X=_gO zd!Sf(pJCN@6RVaJgi4;Y24d5S!o;H5nf6#T$a%g-d1vAeY*FK-?1OP}ujO*@*Q?$N z0A7IKE%N|zPwyf|iT+clIvien^L*{0fNTht#}6Fwm?(I+v1^#F+q^@TObpDS(>v2l zgHGfYMzq{t{~pK?rQg0UV9Nlq|0U`fzwX_M7Rwfaw>99G3gjeiPew!7tQF4ZFX>ae zYQ^MqKu*$Ivw}bV!JH&|+xgt?IiXt{Tl}f^r?6^|oaqbsY3`2Hp$gb3);T1w{g<)m z@WKaQXUqCoj)Al<^rO}{Y`?sNQ@!uwA}cmAONy7`xZb<+$EEc`5H@L~$%I%|mGwZC z8~J2C!>5fIe!sJEQw=0iy(%Acev`%i$UOU~yy)`gbd(lYJ6$BW?s zsypy1l9ge-DW~f`x-Bd!Z2s$mPv`YW2LT}z8Fq(ngKoSL(@swjH8p%`p->9RQ+$=f zDOh(K7Tn@SY$IWGx1r`&VeQT-lG4vEJCfhFJCNxfpMWZ4+phDqX?6=? zjNp@#;rGNtv3+j$7$y1UFxT?Gx09PGqaFQpvjX`LQ5I@rJD4qqJY5HKBD`Y9CD953 z=;Kk5SB&MMOKCYwHRx#X=#U7=Nn?&-^Vb~|lRh?3iWS^*sqPm66fPRKqj%K;FT1y~Ro4bR@|!Lk)QhfR#|lhKYmLru@KPAE7x}9y?lt-|J&jt0e)Y!?S_QJEY8Q3=0 zW1==q${PyK45=Vky8-GgR+&}~)S(sLT6n?Sm@DhM+E3{?i~@UKl=cWmR}v+>4Npzn zRF-1lzN)-1yIFDh%^My5aDy#Sj%p{bI8&3=prHwRAo!r~Q~i;=Q}1?Pr?-WON~Sgb z>g-w=ZYqFeA1RBFxrv3})Ye>TsY25BJO60yo$xL{{c!j6ziCJHv?9*6pc1aE{JtnDaMF5Utn0^SMX34yqQx8gqVXBxN zu}i{l{c0u0V594W#n_7SlGuv9jt$Ne&x|yTWK>eI6v3$cd7&*Br(MR@JjnsQ`Pc>s z{jlZc08q|}YY+#6B}Y*jDwE1VDU41ks_)!lO;Z6O*5dt7m3!D~V_T|~pVfky++|qB zxsm_uZ>#Cj3I(n4iHG#IL?PjJu`dfM-O6tYN?4*Ut-y=GzV_SeoG!o9$#ZWrbJoKO zvs`2%S!TI3$a0r%E-z@~9Z_tlRA6mF{uwC-PlA^#VH|;3HjFds= zd&|X)jUPhI0BwOzpM3eF=n6h>Zg;(*xSOP;rjT$}>EyGsdBa!s*)G16r^Nk_wC?#q zhq|(Cka_cN3(3!z$qB&@m^Abs+g62=KycNw<$z0-{4`$ZI_gbhV8GsyFh7z5$MaQR zO1R>fq$ z5A_|VI+>MA11*w^L-`V?%ht1RkLmET+K{$ZU^DD<1d9r-F?-4cSrqclJf*M7o@uVnDPE5@aheRit9?R(Ym=LN60AhrpPX_d*F4C1Nm)*$5?&oY z>9HMO`tjJR=B4zfG;EM9d>rR@{elv<4tgvX2``UJ({Ej}D4UEh&dU(z`);{r)H-~B zWiJf*Ld$&9zu2Oiuf`-|M3cXziFlUMM-0V`q}IbQb>DG_fD~FK#T}T1 zCXbol`2Xk1hp?mbYWDKCOfRzwqO?`&9ZnA=Zv@)!9JWrqx^jCY5i0Z-8m@^I)z?J0|=3|-*P4=CLPNx$NgM?^Pv%+;~svw zI%wXleUh6<1U!x`Bs45r7ZLlmN6G|JD?V^k#XwHM%H1> z>@s#YKd?1v{$)2JZ5iiOu+$+Nu{zP0Mz4Fx1!vXZzqbXX@r`2((09Qx5YU3W`t*~@fqr^GM z=T^TYu13Bbd9f<*t86JlK8S0GlnvQ-@f#v9y@dOAqIb#k1>bG}Eb4z3n9Dk%9Sz;( zG0lQOX8uK0Egg9fHOd^5(y8Y$x!SQDM~K~m;3+9ar-r_5L&Nf?Vry30J%>ApLu0rI zC;2^XR(;zetkBF}e)3t|(^mVX^6A~Mw~kH^hV8m5Vq@H;T$sD@-xoFTrRzOX>b{&& z8$~CJ4eVPb?D>I(oE;BKx-(@(l2ioni_S} z7X*ZYZKa}uI`|`tZ;QZm>!qCPVuRtGxXAxRu|N^9iyf}Hc1D$*n0XdSxcHw(Ww2PEZJIv!Q1Q%yEYg+N8k$@oUK$2u*j;oNFR z%d4DMVSlKo=Lq@p(B`>rkG5?!a(O|Fx(If96osKjqhBh_j z4ek1_%Nx59KXA}`K*{|d<`rna2ab6`$&vHy^eF9F4#dRfyA^tCiZ)2vb}!n_3S3eGWOR@lRaKXwpTXyB|(?o z(HB6+|C3J*(kXWJ9$v37-(_y)#dAdg8K<^yUof5DjB-y-|6O!p_Q8RQpNE< zPWa^SHc|5*og;bBbB4cKS9T6<#=HA0N9%`b<>f;ZyeTo}+Ys^;h;hSH?PxqF#6ffd%4#JKkVy85=Oc5I$m%0 z8=nvbP2c*9s9yX1{k`b*qHH6a!1uD*{BTA8?>|8Pb$v`G>QT!>%Tu|L>XE6UeMY9lZiP#oK5?NfmqmV)hz@E$7up4Q|Keer zakX7)mIRNpU(&^zh3(JyS2BEOdJ{PY&qs}M0>>Of)}ymlbGLi0=w0(ZI|?CHX{}Q- z{ii>Cs&=cm7CEl&x6$zVrE0OtZ{hi{;?`jBj3ZT^?AZrl0XBz&-K?~S4736z{~uHD z9Z&WD{*OQH6*`e*Q!gV#&dXleC9=w%jbj`$dmmd1y(vz%G9oKPI2@xij!`&7cJ?^- zvHc#WK3?D7^IvY~`FyPFx*qrIy6*SAQL_I!U!kgg!j|OtpEEH@7c}qh412Eq&-2k<0`5Is2V|7kU|UCF#|g(vqzx{aS}NV4YP%EqI_I=` z&dmXQ`DM8G@GSj~sb(K$(FQCbSSgQO0yhNumi}5AK!jw(5TdH^m2*oNt}4EBND-b3 zov$lp`*&0N^gZX8kEvtP5gDgegV?VX-r1K$2hPa>cwnZMadEZta2n*jiEQszd4~@3 zD{Ru_TSl<;U;&%MkrT2r#VPMD+~R^}PC7{>gA2a9W;kbHv#aOdHv3sW7XoNazk_X) z^I-9DV0}efu&wT!&a;K;13MB0fItPvC@IsA*db=V(!_-Kl6N$Z2D^(p<+^OlJ>=6( zD~~UlFmLt=irV6Omx;CuiAJq=gdKe(j~dWkSAZwJXaY31vL{yk=i~Tg0`>+8xMAx;u6*Eit}sjy-7eGMqWY8da_k!|olLnxDem%?6tE zPaHO&0+ddhjCqB*Vph8I`%W%_cjs|@Q4H8dW#1@fxzftmXxFz?Z=l7@ANv~UJI}}r z`OhBONZdihQUK7zL{sTEGx$z zFYZ`nEe20wfu`U zQx-Diw!F`7r|CLS&}=GZO~Gg@mgBVZHf8;t{;d&k%WUEM^*kXv-;D;SWmNGrt9Ef| zuIM7Ns`o$aS%lt-afdtAZ*Nl2V z*HHOcujAaGZ!mviSz)OgI2Z4smnl})+iHo5L27-;Rs@3PxLawbqMV;<1dF#jiZp*y z>HG54t^VDZnos|H)~qk$(j^)QFDP(R@n5OtZ#W8_XIVpG1Gf7H-H3x{eZiws9BGqn zR3Hqf*J&D?kFj~5bP*NQ^wXJt+%+MX2TJ>p&1L`R3+x@3xL2PJNxh-oxdgP7Hm*u^ z?Mf!a4?d0`65g~DnO??4sg=3F+(o7>5cmn@VClC&dKdX)%6ogTg#yC67Pe(Kc%Ggw zUGcv^a|yoaF_(=DaGO0Whbf8YH-g#~>1aNIU#eKXCc61$EjiiM(&znyMWWr>WcEk@ zZNvYe3mJslxkng2wqRw0*yvS!nj$)jlgX{_8ZwFojB&)yEWAruFQAJ2Ro=U+r;pIM zsd(^npGgozyF`V94+cyEi?=8QtPFqKGSCO&BQKUCg7_AQe$6TCR|GB#ObQFUrwOpB zxJQ#&_QsBm911%JlTNua;Nse+dsQC7*=6cYN>copjK@D78L9eSj-6`GbVMZ1XJaY* z5fR2;O$*JA%4FvDt+9L6W0t{g>Ne$sZDAL_YmCsFPFoJf^Xi&?i=)F0VdCiX36f9+ zlla`m-8j{)&jdehkkD8j4fG)EzSL!f!aj_>Z7vZ^z$z3qv$x(y(BG#(QSE$DBhlnQ z&KCc?3u=S?cau>+atF)WTQuW?mmD_Nxo0 z!5DjLCa>e$L)wWjpd0SBvtJT2|S3P(U;9z#w@bE|6d)N#A3! zU$*rtThZ@S1Ohnjsc303thy#b0kCg?2RqqEjhDe7R(h9oh&eGe5CgvJ%Q3qd)xY?lre5{_|!2ztf40pcly#nA1H zY&+|k{iVAt$~`&^Ya`2>-3?{r%}6y(Lg^>%%=JFD|koH&ZIjsjL`lfEU87ke*6EPtu{U-sA3k&Uhn2t`r=(;B^*CRYZy z;LTHcp1Os7gVRY1Uw|{iy&F>2i@?4i2_uy3(@N-yG;6mP##e;X_!q5=`JSSFW14WT zr)(sP=rP*z102W~CmgI5=57mHXalVFGCpq%eBwB>4)?&MZTfrqgB;7>oG==<$+=mX zkHHBnPpBd#&nc_a0)vk7{kgL0uOc6$*BKe9&hx@JOeFsRB*I`I#pzx?8@7KNK~Dkc zGSI)g>$#KCxP6KOdhw4`FF(znp|h3fckL~)R2Z4nd^h|~-=j_wqz`X&eaebu)NG%U z@pbq3q}4R*RzLA@>;hn!c{{|q(%@sO;T>`fLX8UK=|t>%KgEGREQNTNt8|Qa{ZKb_ z!8Y{VtjpzCw`%iKD6?|YB%D_v*Si|*xB9(usOX!i*$$G|7%2lSbOR0Bn50aqVBWn`8wWjw zl+ax16sBQpA4t}OeZ{r0Mei3WPt|4ogpImH#ARQYGyym(mSTLLNwNHyV^D?X^2;Ub zioiHh)EFpGrBfmG=L4`l)sxR3pEqdBe&mP_e7C8E%11g-Vg$25`3xq%{K`Rk{2($p zF1yR;S(jDI`a{0cGi6i1yL4(`fQ<>7%cq7?j7LYeRI||&IamB)mAxyAM1_@dw;#7L zh2>;zD>uf+d`Itsf+m_5yf4HBOvT$Dcgla$(||$t5n&H{{)W`~$lhB)2Hz+56ZDTL zT)e_Nv;sI_!))h|44YYMl4_+H8%eW}nQ>5`vd#zhm-7CHJvwHtUwBr59@+#U^r!q+ zpU(7QpWxoI{9Yu^8Hr5mGxViB=2&gA)7`CExvSZp>qx)qD1NWRQLd-*pSb(T-1bN{ z8G}#;NDQz%|CtEX@!3xNo%e8Lr4f3{`RQP51OJdT2-Ov&*X*Z?oeW`NHEx4vJvSch1bNMsy9dU)yW#>a zt2?7mIi0p=&zf|GAhr;ENH6b< zJ(s|7&<%nhV_n9c09)N%$yfP5FXcC0$_GppENZ{S47)=KB{-$++{o$TiK%6UZwT)9 zY77uoT??VG{de5@4Ec3wM!ie7FmD)}KxktAE?#a~ZhBP;u7CPI-ZIx6^J1lQ)nDJu zTA_?lpQ4eC9fYyoSPB2bJt;VsFO(DK$Gd@y3*Wnr$Wm}x?H=-ehG7%yL8`i&Twdf+ zAJ#d|+U^R%QNq!$wL?r7E-QBwJ8lUDCi1D45yarURuZ5gF#AQ*->-qjTue-(ja^3{ z#~Tikf5TVx1c(X*-871RTGXkuRWy=&GO%WF$7%jC#4xbI zRlx~*U(!J4EWpQ{ppX;f zXPmb$Zvdb66@lq#WPa@TAs;QfU=XJIw-$8I9i6Q>d;ZzCmxOgR%Qr@j}G z*`C9xB@+JkWgogKp&aIzpra=dS*rYLK-9hl%9yrY^f1{KY=GB+u1wl+o za#aR2-_F9~;DOXveB;DH@5Bihj18B2`GvLdjiPB1!?!;Ak)WIZ{3=&tP_flh)8x|B zbaUCaZmUu-ps-10F3ojnkY>-^k!;N*702jZPyE!zkPX#Yp#w9}!TBlRaxZa1WEO5d zS!(>X#Q3WR%uB2~<4sX;?DEF&w@PLTF_Yjhzu&7K){M>%fGFNk_K9r@|Ninv@Xg`L zp!cjiEqPm)1H7{w&1-hv>z9^xx&n}(0WN2mTIw~Y=62DAQA==CO;!1&!>s3Ja)_D* zrkH8_%=7fz>(OpUQoKkclI&vxA-n$2_-jW!F9?BSQsM8S63Um2H59~#*7VfB7It~- zLE{D|;o?D@>82mzsmw~u_0S4Ev_*QrsBg#y{lWR0n3;Z&n*5Y*Hy5|=`Rql{evW9K z`!jw>t{*uxi)(K>?3|M|$eXpKr9=$7Y=j-f)1MMHUlHKzTuK_O2YXE z*1CbVy7JjO4s`?D&MG?X&Lhp|$EDT!H>v{q1MPU&Z!xqfJP46lF}}tEt^PL$Av(x= zp>CNn?l<_)h?%6X2jkZ|Mduvvy5zcLs#q2Fymzj)Vo~L&nV7xr27Se0hED&BMMi%7 zijyeKoh>6_UMoXWOvf`ZuPD<^2s%<5a`45&Heegl&qr@B;SbX}Rybffz%q~5$K!uugJ>5w;Hn!(0KL85X-!Pq zZ0w#Jhn3`(XIWK{#bqA<{;C!;4f<5rqCX-s>1=7BBmH{?AOG5gy4az1E8RekQkk;Y z>Ln+I*y%Sc@>Ua}%(HHfM0|P+zVK8}9@=J4`|cU)%D*u|g}T^V!;CnCY=5mW_>53O zE4MT^g+1i4A<}M=ZRGDJK)V-R&I1tiSU*)$*2A;pg{xhjxNI zr;Ih~ZEGj{lo=%?>6Gce%=XmLfL{Np!@5`nc5_Cke4k!CV3l+rM5bL@JKl~8VV=f= zjC$Y8x4Cg`U7h>N#EA$mZU*Y}t;iNWz{~#-$HV{a&t`-+?%nA!%mPS0_^ucC7+GN5 zQYKev{RIV@ZZ?l(wiGv&d~7MhNGg~9+`b!k?g&6CyVoG77SvbP|VXVpl4bRF%N*VT(-Gm<265r z{rCQi7sG0(Vd1R7!G5D%8^?vo>Xn!^O&S%G77XVg1n7Mk%KFy(usQu3TUeuu+Go!T;z@O8 zq`GT*@|YMSqT~~1^oLpifI&?JA>`kdg;fno<0lhZn!@XGR9|qG2M1+SilZL<%%0*~ z3al_8@#>k6(NSt$e?Zg~j-(6hl!(F(|DcWzN~rFF@=BWlH&-Q$Rowt#Lu0SA4ZT4k?!sWhxj_r|%2+j7J3~%pjBq*hmL1icE zBG^Pl*N+ce@h>8^%wMqe_~6&{dFi<)v-`TWGGCvA)m+d7SLm(J;4?h5WCFOzqcmGDKHpdH-d9mM_0H$ZyV7uZM za$h~lAyCPVx6Oi4#cB_9a15NZJCD=U2z=03l#MQgRf1(f#mrj>`*-hVdT6!#Y4)lA z92>fb31+d*DUs19sv%Um^kSMT#B9`2L(xVMYIty^GDzH<)f~0=wm_yIfl$s?a^B}P zxfRtjhBq8yyD8e3=CQ?;@I8%*!MGeA86GzgcoFiv@PDWsy&$4La=MsGpGyNHt z+|_$kfBrY|VFt`d6$$+6K8ww>4dbsHL!M@Z^N51^pA~vGKypKbbV(duSPRaZ4I`7R z;5c=QsH!WXnrdu&b2G%VJf`=^w9N(Sv<#I$WOT`n$O=v-ES+zC&^ODotk5-rn~YA_v?)V z!uQb%RL(G% zS^MMtUuWrGuKMb`-KDtCV-{`RbNE^v2q4rjfsu2d@W03Rlh0f&U`~BQ(nvHxtL( zNBxlTZj4o1r|wx;UO2YxkPSsJ!`Sjwh(ixP$9eMgaYH*N4bRZZRRoWIb&gMhDa;{K zUQDO^jinXrd)4YovOc7?CRa_tuAQJI`+ix<`s(*lovt))+l{f-jlY&i6QIB8J2-E-`yAzJ9v@%C-z>pJ z;1BtX;|Z>Tu;c(U>H2#P{d3Otg;c-LC`#_qyAns`M70VKlh>IBh+?Yi{gcGQhfQr9 zx_;Ia527QWf$s%3nlX#O6MKTjJl^kKs#`_~dRnrk#q`5mOc&WHjCIZGy?qUMbu5PP zjqL@6*i^{6bKV4?jxQe>E*l2ZzxUsm#c9<}_EUd*(~h8TiNPqqh+E*n&IK z^p4=d+LQP_^sdr(`y_?_Z42>V9=+~olgI~rzu(Qb76Qj`aK17iQVq5E755nTR_&2A z-$Wq8-OT@SaI6)ltXqMy!wQy}sT^;o&S%~9VxKDQlN!AM~qxx_oy^oe8r)4={?#!EZS0U2xZv zz0LVkFSdwqSK^N-@AOs^e>MYiyzy16X- zW!@2G2LO_CfqjEEIiyTV19!`o=kN8(`%83RfS$Ldg6gCv_(B6;bbCTzz0^>rYbRvUP zbIh=5!IyH<71mVYNbINX{FDI}hKI)-XV&v$7lRN|)ua189V~XdxMpLZ&{5F}etDYQ23I_L7$q#b&TOn(F;R!K1i;g4Us z3er-jf(i5TehdgPWkJ1?=D0uwlP|9jJQ0ZRF@$FRsLBZzwjcZd;;B`pR30!e5)U6$cbhH5w|@5*_F4HBT(C(7y*^^|y8odqim&#~WN|T}Oy-ax3yvWJ~!2 z=v}UTeq29h+7=KK?RrzQF9|)8ATb^ldOfXn?^HgO>Xq0%rMbs<$)I2VOz{03Ho#_$ zX0?6G%Go|-nMY?@}gqMld2w#iy*NHnb zPo!8>dNLBzvm*B}q0a7u=*fL89??iT_Q8mA7DehGLT zVpGsU(we}l6~%nL`EejADLJ9#=0Ug7tnb_*fr6727Mw{DTZewN4b*K?7kK-IrFk}5w1p3Qt9qmVc3i4x05eoq#?$%WoGEYG zBV6NW97oD6&U(A|t3O2s#q&uvG`?pi#6L(?QOR;PoeaNXF8Nuq%yQ=(boC_b3E_+M ze;nC&#;vK7iQ+5?d5&8BwVSDiNu>`Pmx8#%jfI-;&j3XXnsJ?wg$kE2GYV*+|H7@M zz6A;slQvGPIafxyz|mHx!mHOlb3csV&*c0fvFy+aG!Tsxh2XKTIG`DG2vYuUV>L(J zOs?O(B2>C_CJk+hB9=`x3>8nXsmRL8em6|ovj_qSNc5ZeQ)%_UW(}*Hg|Nix&^n&v zPU#7AlZc+A0XWY=T1swurK?s zduA4*yx=u+Kl=VnDb)9Q-DfI z_2jV^;&VtHe?SC2wjPEmaj%Wo9RcXgaGV%R26OSW~;!Mp?%VY_n= zm@`Q<92Rf(UrN7y9~0f^uEzX|<;(+koH({A^?9g%T4}##R*l$4B=G{sENLPvUH@)n zM$p$L^ZlLU1n+hb3M?GrkGLgzK%z*50wFH2QY-l|if*|kvj+3Nm(2E?;m}&++|HBL zVk%w+nh5m6c#QGa;0|B*6)nJHxcBA3-&~!mcIF5D50MqLlNfJg4G5kB!i`Y^TUxn+KgG@qw4ND zwN@JG7bg3T=Eu1Fcz7y6SMf$~Y+^v{l^0R@5+Ge|dty3diuC(eepYmKDm|f1?sCWq zin~G=yl3aIFlD(kR)E(RVf|f6SAZqA@d@}g3^?1d{z^*~SCzvCpi?EW!(l9Eq+%TP z#$uyspC4prb^bP!=6XHV%qYa_`aQn^V< zb{8h)1lTw)pNG+8Mm;wGDYlMq-a%Bn+&iL7$_DOVIlw=sIKlU4c_GdhXy14FtyF(tcB&FO)fHcGKs)CW6~*+*v2fIvVq&oLMgK^C{t`T;s^fNHM7qKX z*QNGOYlQ)FDE*{N&Hi+$yaE3gb6c(G8SS)ZI3@R(V9Zjt*Vk#;T)u3p%A?PhVO33x3Zvqu@Z>HEJibr+j9$E5&y|bQUV?oeSIvB?Wj+LI=GgMh{x%=`( z2B;46zS*z5&DbT9dMAPH%!9s_0c~cwHv^B%;EZ&Y5{%YXoc0sJ$}eQmA{nQlLE)3- zpOR0*ZodELjma+%SJO&@N|;}f7lVE##$T7!t~E@0g}*1AZ+LnZiAtY`F}?f8ni<-m zQOsn^?;xB02JFGh_CLG5tcIs-jjJ5%nSSiQ1gQS_ZT#l%qf<>=Hvn*h)Aa^IQ z9v&C&Eb#MhzlumV2e6`LWiD6W;w;Go4=SAugW@aBa@Big@YMaYu$Np8f|hCR_dEQn zcmeO1WvQw4@pWNZ>;u3DT_`)8zk3c!tLE8vnN>Lhsk-0c=eGjeS#Ke$YPrGP_khKb zn?Q(=ejJb4d-A28dHU%FP=q=msf4B!*c(rKJG;C(@Y4Kcx2KMMvdQ!!t-bn_Wd>+T zMtX(L3TzFZp(pRrNh}z;P6gDYk>96?EkbcjRtT(le?Ch z60DT=YnK(ouw6gSorQMNAL1C3FF}q|6P;P)-ho?x1`LeVhDnK~ z@nN?By632_2GuWK@oLuDkboqOq%+?2iVmD&?D-O{uAcS67(m)VjSan6gocs zxpK`!BMeIkJvj;Su{#U5Dn&b-g!0cIB<6I+d~Eg&m=; ze@okxs#{nkxVmz!>FvoO?f;IgCps{9^`0D2SA+xaKn-jn1MR%?tJzh{Q+AIh7b!bU zFRB)o=kg8L%-fF-&`HXk%N!*svX7VWiA@!b zagr3`_M`A;YfB%-z-0dSHgc&dnX+toQ;k4&7>0rhwN*4WU6K&)+oRNEI~H*VzXSe%U5Jw0G!*A7FZVx=9|YhTwy)-k9i}Y|ukf*wEqh>+$VM;aV)VxF zG-%-!_5;kPP)N-MJR1aB?z2jw4EYUVH-_r4CF zrYD!o;_0jbXBicgJ+vqraeWlxG}TD8qS%__=dW2ix~rM-);V!IXJd2;fUjR7A0l(L z%DFlwxWq!qAXMdlZ%e|x?Of#Ls>=N(nx7#S3bS8u;SUCj_{IurBJNWDak=Jm=(vbC z*qxtzzfU|LVacO`s$(cG&zH^xVnR_DjG9ulZj z4mY6%Lf`+MSd(6FNl%AqW97FWUz0py#O>LQ#UmTp>jUIJ{El{iJsQ@z2u@xI=FzA> zS1@GWc)6M8-(|8Vj_UmU5-y)_Y5ofQtgYGS7+~dpNC=zy!6S-mz0P^HMXqaD`V?dj zR6GB=Ucmx3v-haepVmpfV?1R9UjGo%lMVcIy#MjkLIVxf}ze$(1wbwW*HY7|Lmh}My!{ooC9Vu0H zlVxvwka1Q{;62IAdzEyth!Z`6vx+`0)Hq?-%9#}`R*=9sx{*8OiUL^(on*H}ggs<$ z85A9}MK41!&Qz0>)Moq@WQ-cr2K+!OSw-OHg-KIl1puFqFt(RtB-^TMB=gLeraTiA zVub*3B=X;E`u2Q?$V@NM-xI2K##nCejF1C3An+NQCMqs^378h`b~p9$aHlcAGR_?{5yqsfBSnpQjl>tmU|?f9D;L~# zuPFfIMEfaVkR}*1!MXILB%PY`!9D&JcI9xGmrwHk&v>~xuDK92TAd1T7b;NAu1%E< zU1ft%UrvBg61Og>>YHL`n$;4eq!KKOvD#$X-CarPune(%++)?-dz2$;p`pgpmv>|d zisKf^#yhrL-YxgDo`RkbfUg_e)+9?S!X2cbw>Z}B^&}+?H69noL|YRry8Vg49&d=v z%sze8Hes?66?*oO^xV`xc@veG(|rp2g1@>1`{(rLO=&KP}D7grm)bv0V_F^OF8nq{iP7 zMTp@!w355ca5`{!jR4AC{XqCQSENh`^mrP#!4D^rN?Ng-2fx$)!jgJc2vGSXY<=E< zkyXx}i~`$U?Y&sMQF3JU%13iav)x&gmAjI?iLF)jO|mjo6omT`7$=(_cn*3|(m{ZT zc@W%0L)LQV;|53cmGOq*KbOiq+-$bGLJ-Xz`d`rxU1p!$?eLKE{oDbnw#c9~!IPZ@ z@8PJnQ+&}DSQqO_mXm#3^z_pGX8n(Esq%;(^gF*>A`^wk3eccD!%r zdd)+LKn@j%N%fNb#b47N#t%AEtqY!hI%|a3c6v{#;F3IYnJvH;;}TOM+S?1bpagh8 zMD7>RW*}v9K>`xH#?X3@-==u%u7+^U+nvVOp2`LQ;Te zbddG2#7H5z*bQZZBf{-nxS{TDMMW(kkXO%;bEdL-R@cO9ob<~I|4mpjx@K?==f&M+ zDl#1ad7i?rPUdLyC)@QWW;Ubw48|4TKm1 zsr_D{vqW0jtJPpz4Z+=&oL!4JB^y$vsP`mOWS_Oo_T#gPw84ee*RpA8cwyyP5s#X* zqwASii^oeKT7Xu}k$x2d&4>&aZio=L#`rTe z+YdqPrFWgd#cm`ArbNf+A&4om4^YU8l=tO z4YK`^d(Lw3;hoM{pA@vswjyXbIDvApjs0|5sR?VID`+43g(>vOoldQL_A?R;Rtg+e_2k2BAKj2p34+ zt>FWSym5Bsc?V5l?MOQ3*}gYn9!R5uD9ejuqcqULE4iBK zk*J|Px-R}m*5N#gbMAYHD2Y#X$|24_Xkmi_>)SVb=g%58g5+YZmLjry6ZOz3iZAG3 zdwQEGdK#4R{}-K+0e{G$=>ImZ`VsBZ|4G71lRTv(%&Z=dW)BDiP)$PzD4u}?8ya$G zrhH1pEOAu|LWsc=L47IJoB{vpt`lkivNqv_)>?xY=k-DVbSMl$1)h9)1y?YONSO6Y zuwj$q>zX%XP;ZFgsK=rOn%p>nGae}Q#$AHU!& z`1^dpt7R{J{%c_myJE!2{^}Q#_J}<{(BnvXFc-k=T#}OakXJB=dKWa3?T;oDu+@4D z+#%u)CIJhL_@+w}iLH5KU@9oQe_MuZJg)EX2dVNzsaTDRqHOY}W# zC$m_%6lC9Zvcbi!A@I;6=7im(toK+ldqdb-o%D@nj-|8sJKH)nbv7**ApczHFy(g~TZSHf>$5{@`vAo?NXw3!d(#1%4qOX`yHt|6uDXa0lcTJO!IvYl>C zOVE#r@*?#kC-A%(+$cU)PS+T_ zzQydTf$Tc_Doqcr#oo$Jm$xJTvt*PztgxEhxzue8 z*T*uW&OIyRmdJ6WHT!f;tGmZSE@iByg%GnSDw=;w^mn#aA6YA<^#h7 zs*qK0nD5syDZxRh@Cji9R=vjAX*S_F2~-%Hf^c*&nghoI+uA20_b(?*zGEwNoUui? zJR-N}4$_|^h4mZ#(+b&WOjs&}tsO}3#f5;9BbC8orBdP?5LL$_BR)D)a3|0({BM>S zs93iL0h;^&BE_HEx*}#b?4s3{MK`0j9>rtuw1;=F`C}a8(oh8-ce*FZFo$f_b!G21 zLRdmBWwWLxBb}EW<6;emm|m7@pPH}^9%x~lP=iAZFVN@mS;<(Zies`8LFn0ImAS_T z^DQ3SZ_$url_RfkSAOY5ibX<}{Q?{@jKVw80;bC~es&z*%p!Ug49y#J9XSTQNFApIlk%4TnqU9h+cV3 zT3brFI*l4<5rLal4zsL}FwGo+F8@Fqz4_RtyBnbTUmnEsY1P|YGoI=M2M`%w5m3^I zRK!!uW|$8+gnriR{sy76POQV#FF1+(6lKvXZ{x_x#(`KEsQwu+{<=b$y5*qBb!t@s zXbakQ)`6e2539Ex)2E=Zf0`i3cJZ*k*Z6Bp=-oO_ao5>77I)6uIUNXS3Sh-7rP3D z91(H>B*9FhsOGTcRRrK|s|4f`%D#;WZbKm4!){!x%ZeWq&2Ox=Zd2&ii)aH2dRVdgErGZE(`63xF3KsrjW+sx7GKD&vt&`ih^C z?$7L9DQ<024KxKRaIrsy{ z3_?|)xi`vo^W3zCgwSlp&9}?9MW#(OX_umpGigjIl+7jyT`@px=Kx4C{ohb-Bk%|^t(Mbm5ePSHJAISY^PMJ;Ez$kJ?o>P+r$8qKHw)iw=Jh*jXb@B; z@3Bbza#&^uNity6k-+Bl0G_m(q$jpzO^m#6I+xKF#D~14{Ca!!F2b!s#2GOo&c@XN zNBJkylJF502s(&48Fbl{Q_dZ&Bli-sHo+%Fu@jn_hqz`BGWm4S$Qk$o9qfDNx1HS$ z1b!e0zbg%d(sK%JV|FkvACjTA=Dn1g_X_usP#uG~E5<)(W5I6wk?MT}#;?hhOd#Df zTO#yH{PWX6FY-e11~h?9?W)14py!SnXb_$F^Hm$)Jm8b`yIsdCbBf2u!^N|xsIG7dRE!IwzVZqc_zmplR$W&5X{M_NI++?| zWliU1GSDS{jE9n+pM@EfH^bHfPy^%`P^mUN%|V_46ctVi#-IV?LbOQx`Ozj%Xr}n) zgU9h4*tM{vyiQOh^$MrtN~U`(0(u?h8@kHh_(OEiH~g#XBykkIu{I{cc;75JiU)`= zQ8{c@*Ux0FX(8~EOOB=I!+PKAiU8T8+r+6*2>nXNDYt`Qw$e4~+m#D^*nf5q37mrT zzqQ_q9{PTF-39X4uGxW70j5>_LSF}9z35d>cF*$<==h^e1w$=eeXGKX+7|6U z6eySez_WmaUpu%O9r&XaKDHTbA#2=bq7sO2|D~zP9a%}hGA&OtD+L2DN76$3^ZdFc zo}p0dqM`VZ)?^UfsE{cs;Nq~kZ~PTQHrj0={-X=Wdx@_+nQy>wJk+W90+i_^f*Ww9 zgpx@P>5CIF8$(ePF5D;&Zzdtc+xL71_~{z8v90Whu-8ZMjmgE&12kyQqkweHkj{$ z#1?*bv1B9@?;pqmt0kYec;|N`w) zGA&JUh43GN_Ws+WVsK>Amt)cVUrP&P2TWU`y$$iFbvq}kwdu{^fn)83+%-f;kYqne z7Xf|x#V|kTO~mqb&AI50cR-*hk{`>goY^8jaQQx9NVp!y_;7Z4jPS*g7scbQc#ux= z&k>fn)3$MN!W!5LK{Qss?#v4oXc!gXvTkwuX{=x-cfaNATzA$ouY*0 z-7}z`^gr9)q_Z69=Sb_d*f~&R7&wsr;kd6=JIF&Dl&YCR z_NhTioJ316VCBUy^id55;!IdSt@fWN-`QT2z58HO^(69VVEQg@KwE#5v zDgLnU%RvrimJ~4*6beX>VSg?Nvb*+w^)}Gh+p~4qxYu{jXKw?ECGY1j(WjJP&NAY_$ULz|VBK-*oVDM}0oTm*GkM|R)xhPO> z^J~ABjI2*VK0h9n^7`%!oTVkNxPhS{U*Oo-y#>d&7A}tUmKQ3-G5_hlrJcyuE1>GL z_T9_;x?=tQ(*>}{NpabqXGwEWAnb>XhLoLwKx?dMY)QJ*g*gr0ucoy%`5YQ}%amPrSVOypbX`w4`31a8%Dgfqmc;=>A9E+%Mn%+FmH4 zOE4aztbq&|SUjK6wZZY@Gz`<)K2FF;HD&@Gc>P3sA(OaEz)YTq?LdA&2?p_QHz|A@ z$>54|cPV^7^iM^~dO4fnmHhO2c?Ed)tjv^n(Q9HLcda`bTD4JNTfW3Wj+&lZ`_%+L z24BLUGq$LdR>knOoQjCHC_kL#u$5Yy?@NmHk6btp_$=i1DqFHJy?7@|2t_!Jc0Tw! z;e#LI>-uw@w_V~2G&n2ga($^9IV$M(y%$2mWI7C!nEUyj8-LyJ;=crPvV4>%0)D=> zX_gfd)70D?M1`TzRif3@_7;GWDEFxbqh5eYRPURX5h3x5oPHp9By`AX`)(iLX`sPp zyr(YyePbq9Oav6yq~&azk~8Ohvhm<8 z+SK4Xz^)uwvO6)iBFP40s=8YE?qd~J{7V))(H7ksv<!+Y3#ON1LCY>+;2CO4C~joH4loXyUqcK{V`qjSKMAmX*jYuYvjBp2sC8vaEbcZ#ro-sX7p#-u{8FBr-?>ZhZp%uQjqPebSGZ0{X+0fWz~yvD zGok{vaT`!_1-^1%xV>!kKIB% z)eXj94aA=~F$RS*@rqZr{R36?zKSP>Q8@F(AEU2M1Jwt1X!yJ0L1WXDg591IVupaW z(2x(ioUf!8q5yiMefLAj>|RSN%yCn;6B{hPD=I=Li~rWu-?z$vf!5(@R5SX+WR;~^ zvp;;U%TzH@xeM3NdZuP28Pg!kQ|tZ`S}hGy3T9@dBE!DjqF=9af)wjGHNEJZ5vB1iUJTDp24(#-k}Th|Ru=DzoOM?}m;z0YNXnzYJiE8JTkNjqir zMjojRj6BUaXJ)NGhjM0F-~*|u*a!k}9)c>*XJKBPuzi+n8h9@UN8=TV$E$Zb2`d1d zI%)2MUiIsz_-lu5Q%0|bYicex?O2K2_h^0g0i?k*(1liW3NO%(%P)f!h~O1g)dHhD znK7jBEo3X;rd_%R_!5Rwaw|#!9&qoi?&A8@)hB8G~i-72>3n z^?Pl82=Y0BKT)}sYR6yN(;0T9d|76mR}Q`B;DW(?r>4I>q?vSEHf)S}I>{UJ7We%*??(vEmA3`Zk6-!@sFDj;tfC1_#0Co0fOM1(*82m)#rs)C%aqX`6>aJ}}mpglqQchja@yje{1% zx{qB?c#-LsBoujPt}ni)gX}=|GA3${{uG$qsojvmHaTc4Csu^u%Ts64U36TgKQIQB z3n@M2um`+Qmn|hviJHyU%UqW1e!QxSRfVwT&(N_Tngb8&OZC%`S_+^_#Hl)eRBbEH zHJRu3KJ#nl<-6hiO`>D|S?Pf7kg!7l`ZVIVTn93(k+~J9(-0{iSUG*Jc$Jxd!gO5E;G>&RjK!NtFL;Lo>xJ{bzVxy@nt4dnDR$T&Z z`W-W20nqq#{4(IK$FfR*(_MmH4FTBnI6!z))ztynhXyIt`g6;GqJy~jx!armZnn^l zE@t3biAnN0XbQQl`({E+mL=QDR?1gPWNlto@1AO|xboulV`kyo+c1 zZOw!KkE!d9r~3Q<@9T2OzRAeS_?PWGiLA#~#=UDvR&MMW(8M7zHrggv?0_@Cv162^@G zOuK9vHBNdPLxsbA5)ZKdf{yLiTrxm4S2zuc0$?@;9IlH@N{R*Yw?4l%f)J2St}!gt z69(0Hf5Ub>lx*Z1k&txa^WEdxw`=OkTFiCH|6A-!I6C%&&(c0GgyucEN_p`Mqj)Dia!qoh+eG|hnzug$t^6r} z!9zeQ3NAwzVWZE? z?zzUKpK9lW5{92K+Ph&aVVkdTS!q1fNz^lC=^H~%cg#lgYm=5PSOW8b!60Rcd-Iah zg{7~RVjpe&*{MLg+L6#-a8w-)H8l(CkDfPEX;vs@c+m@&)(^h2H@N=_U%j#>m7e<( zx9|!Qvx*TI$qxDiPzUnFS7~RihcOV89YYxFdS9GEaNj9$jCHW%eSSSzcQd&#;?}DS6}=A6W>346WI$TEU&o``{u(lln4Qk&~FvpRXV4{p$rE zY}ZM`$~)Z&__l?j&c7-Q?LL#xtmk?B4-DHrd-IZ09fWPac&eyAkTk5?c@0eB-3ahz ziC(c3`DsCS!(Ko<^=H%O*^i+cE8s$pROz=C;sD7s$~KEjypSp^%J`FlfMZDO3SczN zd4z-En!y{m+}Y$U9r)78x<>)50wDHMtq?h2b_&|fXFKjY=<5MSVGPnobtdmc!XFeI zd``qM>zxZ>qrb0covLWH*x|4A|5A$tfzr0yhAx~xX1S**^r=y)2A(-)s^58DE^QT!jy=K>kU> z__2|Vo}F2enRl=_$G<_Oby85i=&$NPEl|{PR4ydeI)eJqs)Z zuf0S-YVST{?{RdNv0#7BT)VY)N!toa&?tOh+L#WGbG>53bh6Wz!;M}^P;$iHj)BHk zvD2gn0tikV3_JnM^k3!YB8RFz>!cimu=qdoLqI1n^x$=Q$TM5n^2YlcGatWzW=g3~ zEJ_{7NbyzN~C^E(%7!=+a}EJH;G zMOQi=&;;R^l12)puys_XMdp(aRM~#k*9B8U=m`PI*56Qx&|`qR3L16nT&^YCPJAFy zTeE|{B+<<2x@+5pj?jn8bhFl4X5Os>Z5vucS$lm#evlIB(cS$aYcvQ6Sj5;;mGr4Sxb^gvv&! zy?NSp-|oPmh}mne{4wB>VaUes!}`P+G52!hAG9vE*ljxovB`BB> zi##GBQAz!)BCf5Y>9u!xMmG`p1O15)KNff~?tlYUBi^!0?vY4HYX6lT{S^vOi@E(E z6t~$4K9hszU>MvJ!Ae8JqJ3~y;k>J4m%GD9$5986rH;3s4}9++bz-LiCp)x#D`Qrze3F>dpQDD%Rw!E6NhDf2nV?etbTiZX#R_ z1MO=S-WF{*1w+5G9OEN_Vp?T^+W@npcqOYl^;ifK-BUdKd`0t(#r>ds)p=5VgB~3M ze`YY*)%{x&m~d>uJjQo;s*sr3{9mL;qi?1JK34et#rLD7?4F;M{Di&-ZJAS_^-kVf z=6t$|fj0XZdqYJi__cATYoUNGG+OAV;C(9W3B{6(1cLsHuU);&W=m&~BsZhU_#FZf*A&>8;O7)y3#SLsrIV;_} z)r3q^NuDcSguRsm=K|_cb>y;t4phKn^GFppq2hA?_*cP#o158v*1#@m?nPLonfUMV2E~|iFEF%+V#80d&6@1 zx^L5d6=3L3&=;dIcP6*6q8yz=ELhv=Wv=fJflAtTqDodI3FHBb#cIBefGcZZd0p>} zH(h*|VwT$IuqM-4!v?UOfaym{BS#p1{>hmV9Bu5x4H_=Iek{QEL(o$UjM#|#6#&E@ zQHST9k$_~oqc^e5c;)?s1Elmd0r9sS^4Z+lCc zZpdsmZPBn-eWiB(fH1Twwogvq?ydO@)Bd6wRTm_s0aVVqYgQ@5ytK0orBFg=a`%R; z_^918GZY}z;!Q7^m%ysa3;n~0MsK{BL^HT`OV7o+de`<~V{utrzk(98TKaY8Xj`fkvbJJ0kT8>X#pMmD$$XBWgl{gs|o_!D|DOce! z%Jclpz5K1edy*X++%4$iT*xX8hXPk=zaPIuOGx3rA*d!_%hiuv=Pg2b)FzEOI(6*0 zif;y9l>kJd#}KW&%*zby!9QkQky*ZbADv{aYhHpq za(fF_re7=+K9_Y=1uT~rc66HJlCySQS4(PTT}j-`$B{AS*2HJW7_Hv%Gn)G_4!FyW zKGHX5H-O5?Kv!b=F_UwFcJ&i z#;IOH1sD!|wmv|OR{O&QeUIMheR#OKmg#xoRydp2uYz#lsP!|FG0smiJ=^DoRF^-$ zRH}gjN_dAZGm!?P*&(5BQS8-<`%v2z5&tCZF$qa+%2?DL{8oJ((;QFip0{IjKZXux z6~3-_71jJ}u=L|eaFl;WDL~R`R07-#r*ZZh5~L#hd4ZXaKV(?AtA|$rO!_y_&S2Tb7J#$|MJU*@k?>@3rHX^*nN{BN}mM0G2nxf zP8JtjDb_Z!3>MM8*Gv4oCiHIqaT1pXivHqyWu@REXLuuGA5plQ4 zAuMbg%sG98=*z-w)=_EAf7K;}1YmhUBVFPb#S)mbn1CKYWA@?=*&arZ$jPRBB{iNE z^3!+6WURZu?`1nfUfL7Z#r%7M=&WNsl zk!#+l{c8h%ZTk^UM^7=*f_M@Q&hK_T4DBtDZj6mgy@ZW^gagT>Z`fS+*j8o7+0jUG zgTT^pTqQ>JS4r=%(=mi;ru_p|2rBYo;~_HYbGpz5yWOQ_mM898?C+|4O z@8~ex03pMd=px1!%mE{9?XDHJem$IbfLezg(P%Lz^ZiLilUH@+Pw&5g@dKwIcLd=a zuy4YExL68{E$pmzd_wcg_u@utJLJ)o>y!{0(Ka{UQ) zy@?%(dDeb@|Kwc~jQkW_}rEMS5h6cLco;Cq|Kc^QnITO7F>q{=TQx+g>gM3lVhfOna z^q$)T?@%e9aSOVH6b7Kzy<|@B@&K3kPxzIPS=Rd6ko>IHGvr4_e2oW>@}lw|Y;qYj zPh#BU4LFXJ&Y^HNjQKt~Y>@>+vzVzm#N0N3WkLfUN_;k>5|ZtMR=_SQtsiM()$*5& z_qG`hp>#n~Xy9t=&0f?#(3Gyjx#-nnVCQa)giv_9%(LpfpV zbE&6aBVWsn(BT-eHR$~8k0jf?!-5_P+h{To``UPeN?1JZM|IM>OP=E+XYs!EQ}{bZ z{d?UthPQ_t6s9xnA)(IM3bVr7c2M6xme%HEcK5}X(EQ9+LwtpgfDJ1t0NZ?-pBC_@K()%u9FoB_AW$7~2U zl^)^*H&_Unt7lBeQM?fls9)6+cE`3}6wR3Pte=YX;_k~{4_b=%iiut=MdU=&)8J97 z$-v&?I|iW#{-_@UwOM2l*PY@^pI%d_fl6OYGWXEU`2w%i9%Phdf8ClN0kYERL?W?w zOTUlSFjA9i^+xyw*5z66n^!=6v26eD1rS(MXj0PS*_wl7RaKf*>1cchcT|9pvgm2Y zh=~J|WcQDIjct&dxlwy5cnA)_j}gtg(yFLt+o1%<6-jvaLgGdelcBP*^jiw&t1$(c zF86>)DVeX`AifL^oK4+&zfyE zby5yB_C>ppxl3la4v$W@w9PEQ(RVJCJcE7m<3!fcc0vg$mYPk;e?v?2;3$?X1im|~ z^by{ru3g!558N%HDvw#sq6*`l-%bD@QW()ggMdM!%15U*(oEdItfXLLZTo#yF70dt zC7~|>zX*tZ+jl^Ood}XgQ%dxIw1G&4#!uZU3aWt!0JOU>P|XR6vLn|P-^RlWei2K; zpE{~sVsHjhgEwG`llfO6uFsU?3Hiec8@@>~0Yne|qc3AQzhWd)tvO%{9_amqnn{Zx z6F7U`ocAfL#%xqnzFH0qx?TqlWIZ?NUD?5_35KBfA>WSd3k{T6hM*y0JFaZDhNvL3 zp#vtQIAM1vBZF9wBXur7{x8q$;DHYXGOtGzxEo5Wed#cMs%F^&#_u_9qcNz*On=|F zX0!s!nV>P?CMQri?yGTn4$&9E`=QA{zw#usDOb182sBO+3^WOzc2mL1KXZgFC^OJ} z-S2DRp&YdWBDhq2@fg6TOE_YzsPg5-ud?DK8LBXyzH9TDm`#6W7nL+G2>M+Muvxjp zo-aDtihWw;ka7_sA zsl4mrhvdo-wpsk5G6d~EIeH=m-dBLnrgH}I6r|Ko5i{nQigTm7_98-;6+;0C`n%Vvc7n#-mJFZl<*IJ8^X6&G@W)X{ffS_s*)k0XBlXa^u<194+&c& z0FQ^&{}T~_tfoSBgDKQr%(g01g^}Y1HM3)%l5I03a73dTW$l2CZ>zLLL5hzeHUw^u z)WJbe*|-Qyhy;%h_Kr6BRPbRrS%i2!(75lxuoaV1gECx=H+V*w89dBY3Pb=#-H%A$ z7+B4ocSxc4%<~!;Xzm`2)HF8ottoAbNS=M6oaaoy>1I`ev8piI#Lh z2ewN)P1>iZ!)OquwaO#x+Y4}Lv_wEM8q~9pS3u}Piog5v`+Md;UH?)T`f06AOZmlV zftkq+Hvf4~r9FW3$xKmno$P+Pbb+wNVloUHOxiEl@s70iOT=qOoI(cze>?x!!uDci zjPHx0OX6AMegyj;>Qb>kO2g{`wHHuFgTTcmr!t55?`LjG=L_~pzN>I>6{0~@A?cg0 zm+h?E5T;LQyvK7!^@T19BsZ-7%m)BD3O43n{T#o-B_s_|G>>24dqe9tEX$ufhVt|azmHjdXoHG` zfH2v-4Jvlzlj%7C6heTjok@<@0WTvXjrF(WV`LfU^rv?by9lb|-RCmy{gAY@op`8v z`|mb0nf76cK@^lr4kc!G0UZ3)BINHwfUkqmjgv0?FAAvMo$|A9X7?d+8UWF6{Kqta zk_UQ#{Ou9BEO3LL3Nlp(zcnH!WqjpFe}O>n9hu{V znOokKsdc1ppk>~_?m?-aLN6=-4grmvP_b??{B&2&^-OF8N3bgtY#2l1cy82v~)Z2ZPhtYt_t9BK|c~)V(Ph+M|paFn!jtM z#YTP_VbS~)prrag(5cW=D#lS!syxx%KJ*lq=Xr-aE1IGXa5N7f&JUKrs8WVT&-zh0 ztobCvQ6cLUAdevk1|8zY3C<2;MW&whF|{(lST_E1Kje1EYgc^j0%XR)#P#x=p$$Qb zr;G@Ib%+A-tM8T{+MyyFGGV^j)*J7{UXwe=;(U#c=9{bPO5TXNzpIZ^0qB}%9pn4W zLLK1Wd~KtQ7tc$2?%(d}-xzAep7Y^FKB|Y2$d-Ln*Uzm4a=Ee*9{`bFdYw~7JBcB{k)2R{9ve~hDEaU5qjJQt} zzR-)a0zr#QgO%;XzzWbG#4ivema$v&&TY^p(?9|n&Q+P|9gmM0I=eJ7Vs9L(=F72Y zN_T@A!X|Aux&gxkER|q!h3{Vt3ft%!`IZ{auYlrVXF}{8gB&BYXW=c|WGU(b7`{W4 z@cNTGH+H!IK^c03^ffKJu~*!twdUQLFFyw;(y{z=o&?!9Ws=FumaG*V>sg>rnvz60j1sffXr*-9QtjYQGT8OQ5_#TYqivLKYf!oTi8G1#$c( z5ab-rA}Bp@UTbLT%{YGmfS9~0QURBHGTa-R+;7{t2>^CAx{J!ZdGv-|FF+0g-^)Ll z-LQ)|hcGF45*!maCm~6Nc}Ly9(*(eIS;mVwN$H?AVu4zn{`V8cODWdh8FjSDacjR1 zuL?VOj$gbgVh@k7DUAERLS2N;cVAVH6qWU`0yv>``u<_v!yJ~_4_svhnI^nSOR9pf zM!wm5!sO3K9(_JqobN}LA@Z*-W@d_0pNT7~A8zXles2b^+V2_pY~(R6u!0JTvkX3K zancO?^AT=EZ|vGB{~k5|kOMCI^WRrKad@ja!XS<#$*GfyiBLSjTzrN?ZM0Ai5!h}~ zs@nsJ83O2=bTD&a|8?(5QSS;DnNpOvl9@OrffXg0vP9j;m%EyRjwNw`Q>{MI#4KBU zd|_+kcLO$JMjVm~it)%tm|Pg+gE~MwWlY_?mjZ2VCfk@LHOI0+y$ej>Gd<|lL-Q-@ zPmTtJCTK;H@u4@jfC3ztI+hrZpUjA>fPWkV1JYdrYhf?4_Jo3_+-9_0XrOX2@~!#v zM5G!Qu|s=Fo_^8+bI|H*;o9BE|W5ASmKUw6U}h>0tc1?zd$8XlX(Yn4-SU(j*G4Y))j@;^9+Rp7u8(7dy-xN z)IekZr?lxyu^>fy`z9l07~$0Ul?^uLuLH03KKz7MdvlvBjjvsR#K`@N`>*p2t>`(U zk+WEozj)EA5vqCS71_E*p8-63xX?o9S3pDDT_qz;6`Bj6`bU14ks~G)*MUEQ_61}> zSXlF6R5~3&Y4Y!5w!DD>(e`7TuBhg<)OMb61*b(2??NAcir3=(y_+5ILxqO!xEG)C zF5?rH3?A85DZ+@Kp4>}i=u{Tb05LR>8^zV}q+-ZzkWP~ODdm&X?C zetv4Z(2N7rir*U=(>Ya^&JFdww1n|0CijBsNYcMRb1c3icq%7|16o>BBP(?GKQTzi z4mco#_{5ta)>HAw@LM&pHYX{Qn*QBzY7;f&^~U(^+qNFa`C8#55ZqYXD$Wzv-Cp1q zhq##aQieyXR0xjHpSU4}R7NWy-9wmVDEP@q7^8f>GH2p>Lk*4F%gVP4ZeEwNEqMy zi=gHaz!s2KPzTDhHWnDlbEraV@4@q)i~v-5VjEND@2n3rk;_`rOR+8AReGk(eb93t zl_4<>FSR+fhIJ}Tsi5;dNw|G$L$;Ic3KeADIa}5H^CAPmrL1E)SM{CW8ICY<@|Af% z0MwNrI0g=cyio2yiu~(2dPmU_-B?q8??m}bUfg}<(f$;z_t`b{Xrv!&5wL{NSD(mP zo7gJtAHJv19Toffza42pAE(j`F4ZZvO(6P1-RP<F7er4V7LxZ#JszHz>=YI zl{4?JFlzLK+42XA$PxvIMnR~^5!spBvQ;Ke4IXeicyzn>;dkHiE2w5ivayFgf{P?P zprJ7>1EHz%HC1%t`IS6F{>@L0)|*uW^yqaz)>9j2ULdd+r`Kw0&bL4%-klWp{mH=$ zI_H1Tu{}A97Kh;yl=l&#S%b7ywy$|cJm!vwbLZ#O(btna@^|4yT;MlG2Y5U=Yb@LC zA+J;_edUv=7aJKT_FPC5g;xzX2F)VF+w=4uM*_y_@DGFvo;oMG&TndF+4f>|`)ku5bX#7{2VSYJ@H z%(Lgx@flRzP`vJoTj$Ch-k`P%^4zCKR1Iybfa{}IP7pr4NXR6USPQyOB?EIkxRJ(~ zcOuSOcFCYZ4smPoHE3y*rvt5#3QX$)Kye^S}N!^cZDWUVjLdxm-vx_-w{2`s%ro@YrZz=L;zNML3=S=mU;e`J88l;`~qZg)IP5=pne zN*S6rT(WM-3KB&}#gTa$cFBOU#9{o-odC%sh~U}V-iw!~N53eLf7LD6kPRZv@ATq( z#(n7t8#SCKZY@bmwzsmIBav$s1M+~!{wC{w%_HS13Ox57-eWY@SAmAP{-rbZY7j5- z^%E*W{OrxB!CW6sD6@Ok^`&SDEeb%AlPFyM{ZD7SN(d@X2a@I7*zfH={BJu!u-!gA z&0GFN-Dctd7%`yQ>xV?{EQn!Er&$>Vm}#+6GsvK|j(rI@T1X&0XrzJLLt0pzz;09+ zz5x8nvyFTpM6YI(iT^FCu&j@8)t~441`A$9M>%V03^L9{fbKO#+8Jn53%Oh$S6nf> z+(JYNLwTAS3ZUqC*6pIJq+u2taQNTHWW;TVYgAYCg2`?R-zXNljM{fDK#_|_tUdufvwfCgS)1syQSpVKB zphoNZDfSi&g2qv1q$g%>I`tVCf( zzDH-6h%1iYMw`Ltj-FHj9Ox>#qsa_)IW^cG42@}k`jNLH2=ug^lIWtO`v?OCst%VG zTvN;CApq(o21`rqh7&OlHtfLJer3u86h&U7eAbFy#$xYGzp^Jzku~LMtfaYrsk~Rq zK|h?EFifX#@5TJG{5qe&2?cl&A~LC9tbYiGswqLD$&o;(0>@ z0YaD=dOnLUluTFkrXaSy@{zLeCHbwT$Edshv(yK^(hfSsugV)Xn0db2^c+~Cb@J?f z;N~|VnsKZ0F(kB6{_dE9Bb7H)bVEC-ZRZOQ43)&T6nO45$G`Q$vXVo2H#J@Xt3$Do z@BcyCL4AB6#cCk)qyfp?WM(@7$RKNH=dQ+7GA$~9R!@8J<_!i&klRa6t8h{RvYG%^ z9}1o4xU_KD-wMiQK}y+7X5cNP4)=U?Vl4GcO_QWJzTcw;>$b{QNXg}UniKM512qX==mmY_7 z0J^QKFBh|#Kbg{K_VCcZ^Ss~NMErIims_Be&a{EdP3&Eb_d9wc8wV+iUSJBEfFr8e zl}B#}W5-*?4}ElMEcMLa@5F}g)Z0I=UFoNHS_9_*h!c{S|{^wponJdh1?ZY0*DHG zvXEcd?oWgUQlh7+lHtr<|JNmomAR?kW&(_N`Hp7@wUI* z=sy7wkWdFj+y2m4Gg-Cj!Axk|HL#v{RZCqF7Tut9(w*+D(7dF_!VqcZkhNBV`nLbu z6gtRdtv*%W2z)YD1wy>0(wJ=kUH3H;ie4(q_|331|pd#66o4ScOdma75$bigJTh> zs<|kgmP__hAtlgBqwxFN$^JLUt~cY_!gXdrtm27{6i^`EiYGl3mCFqNh7dU1i2trq zD-jh85iQJfeS60)xSlsOVI%MXbNluPz1-j|@q}B;nQnCK`mp1TBE~K<#X_gH8nM5h z0Hu6=G~{I69I9$oH_n;aAx&!Hd_}*zQ2py0jAN$yQ=`E5<_i=>P+hXIvCt`W6x*tY z(v%x8giRhZQOr|?=B1Ejz$V!yJ6zb{zxZqnle?qKkZ&8-LeN_vR6$2`(z-D2{#ZGT zBhz^KSDFYV8s--s>Tzs@V)VcfR$QX3vIkv8rQj{t>uA`ie`qbz@9E0pp#*m34# z|3G;s8yo1EO#3ja+Pic?pl$FRq`rE_(&z#;A+PMgFJ7v*8<=@&?7oCq#~h8YxC%QP z7y(AJTBDjKr*kL{cj04vzh9HUjs$n*89MJd;6?}HoNqAd%QPVN)xiVrFcx*0T^_1u zNA6@YVNcGo+VqI}&|#TCE!G=9IR_mHb2kYwGdi1~J8UwlWDfXWH|6N#GHmQ8INdy6 z4;0~bN$0)$%ELe}UF|qj3!BO{M!FZKJ3)Qnmeyh5xa6EdiW?X?C#!>8E#f~s#y#e2 zb{6_?N7&JO8sAOoXQB#o{#b~CONbfm49lJL*pE3ug3)*8!oB|6kKd>+ITzYRx-E?p z7W+A4{nH7_f9Iy)LAS};C!zZw?+4sW_CHlc0RFCARbQpq3&c}A2i`M2j>DHh<7=tz z$~c_6H?4{?{+lRnI{Pjh{REWf(FqQg$%iLELl&Ofj0f^>KsntN)139hH~X!@=;Qyr zFV)fe%7Amds6P`ii0dOe$+z&na!c~Fz8bG8Eud<@f$>u@IKeIifquTg+E(A7na!aR4;IN#kiwN1yo*|=BA?>k z(TnkFsx;4aM^~|9UQ6U95o;wf=sgce4e?z#p9wwKRJyU`N|PH5_4j;I`ln;t6?osf zMKGg6s*lNxH~Kllaz7`Ru_CoI;#dS_xegc+cz<$+g#U=>V}$r@yc|axFAo&aISETT zNp9_g6!_Z{w3xA`cSH1Lc$8L*oPNNu*(P4qPb^ilHP#a3^QZ6;@c-PBUd!K z8=lJ`+@udLU-0O)jnq_{#p<%Tya(*OO+@j&vZDcO=LHyt_#ul`M@LHz2}tN)Fb*bM z6*2X_lIkPlSfCwkrtN&`foQk=Q^nUZT!;7bR6w!^@I85%;9aFX7|XWs%RSg|O*&ji z84@{=5!V9Kzqh9-DK!GiGtlT}j?w3F1eG3CVG!yVa=EO_zr}UU}*|R-Q4w z%8ABQ2KjbiKjuPrwb(dWN&T;s3NpC}<1g_r)IZ-wY^h>@u=e$B_O8DR7{G=1otK80 z@Gx{i&c#m_#W=sfjEHh9yJi| ziJ1#8dy1E8o|;$bHJ7PPsgZ|_7SatbEA~Pts=E3Zy=V!-jK=$Q!mJXAlAC}|2{4Nn z*uh4Jhe~^-M5{N2_uh7@=U3tSk3YC8s~mng4kiROYiY&?O!Z4Zk0zjpnUOLWpU?i?tB3A@v0>u-m{WUm0dR@ zuPaFz!%@YyZ>)l?(J&)Hfpu!&x(w4-RiE!~jWwRFs} zwE(@-S^Iv3mOAECc+vT~m#;P$kdWXEE854!0LELG@1IO>^2L^}GW_#noUOm{$a%Ap z>!GT8la}D7rjEj@C=Re?X%7YSD~Hc!&1B4*Pay?s*#K79DARcSa$%-3w3*HJ*JiQd z^V&#A;dO8Xwb(jE%L$wf_6NBIC!BQynf50|UpE6Gs*D+&gz3Y_Z8r2Qv zHG%Xg?1-}vy%cJexw~_<*<7Im*)LJ1`PW<;44-Xn0O*N&d5Y1_Hu>jncOA&vE~e0h z9$S(X-$mP}p0_OXJd;pbzF?Iix&CL@kfU9-I`!lf4EDZ(P0zj}w09rAq8p(_;UUgK z20?he>gZ+3!3Jq{h;sjHoWMp9E5-JvH8DB5%?HsHhktgQec20iD~iGM$+iWV8R&)2 z8&>^C2%V*^-NIUEubIqFO*%C8^CKLm&8lPSY;G|70H+efo0)Wdw@~lrPU|i`!N4qZ zKAy1w5L&n=g@VDStu1ZF3qv4%@=4Ns{}UiEL7()g-;_&8=%1K?hoa>5XSKG=?{Nr; zN-|v)F@{@M?bTGe$v_G^bc>sV*#UI#CoE0#fm(L@rtUJdEvUr? zQ=|Z}tN_U89WIU}Y^*7OnMfSOgZhOfg)p9A7AWRx?zHb+6Ntm0(BRA%AH=i-;>uki zGu}NEPS*d-jA#HM_|RBuQ6yajf_~QmICvfME)EDV&;UeU31PTC9-n7YUDx!ttjbvq ztnc^luG$i2!T79C3zXQMhvdoSDLh}i67lWy)KJ})1Uw;`?MJmtM|jW29n9>%IycRQ z^F!{KBkp>+^dHHlmv6e~u3EFFWjv$O==x&t3?C%lqYuH#**9@f+->}rBZ z8`)V_*ge1LKXZ`^8zLsZ_tG6s;}#4MtI()RWz6(VH#FZDQ`Lg9>lBb5DIl{P$5C1k zeVsClXf|XJ00Iu~XDPel@Sif`N?>OfYLhq_35t{LdTYO;C2ozQ|%7w2u(>9}<5X8}B6TOEy#zJ>y5 zvuRUdw;z`xD3(2oQufFi0JVA;iqypQ`sG4B)hXX?xYwj`lB``~54QL9`~L z6aV*Y7l@Ve>(l?P&jXrvKJ5K``Eu-*FDsHAGk#7-Yk<-svCWmbIy0$!ix(^Zg}9=( zvI=lYs9~vZY~Q5pnW_sDh5}h4P&ZJQEa2>M#2*1H{|Iu}BrDO9dGPL$Nv~rx;8w}Z zeBS)*6_I!h{Jf5qou#*P|4wo|^4=UHR2jdb_mlJfJ~cXsElKHK;i4v1*K?S{JklVP zA^zne{w2<&937js&zA6_gm^&)1`*yLF`|$z(D#@ghGyhjxoTTQzpmasEEF2NM&}TC4qf*`9LFXkDDVWJw_Fj?kNzUogJyQ>1gD|;6#wzR zqfV&B`50Zf2ym1xn3b$4NiqQunEAKBOl_%5hi1<+8+N?!v^2C?wLZ65sAs#~`nd|q zGm}p`P>(zn_zXXQpdaluL(P81W{~MMA|iV!nB$NFOBK&4{U&fQgqtA&fLz`2d~Wg9{REK~c?0ys9t_j_}K*%#vLYU|FaR->UTav@>f`D6KG3v1ZkVs@mq)~V4? zWFE$EF!T&h?gK@pTW1A?eR|>2C9UDXz;UWI3Y1WErVeW3AiejwYS%jbP^@ zC2;A#ms2jrqoeu>tBEl3V)iA&q-h0Og49b@*-Wf$%FwJOI{>k+?c&c&&CS6Vy$I^S##7bCDx|BlTw885E;t4&V9Keh?k)Q2)&v(To8#w>Q9u!g) z0JZzFgm~iDmnp5v4SaIq`oRgOFW?L8k~vVnAAlYzQ^9FE{bQf(h$6nh$zIrx%9a`y zr+yVPQy1K+b{X1?Bu#z2qZicwKpPr;`y%Pg<~0-zVWZ4`i~k)G3^gE$pS)?I9ECG% zkF7eC#2cRwn# zRht^Vzn^sdOE!{vv%s>o^XgB;=s7dOh~66k#&4U9MQr`G{{0V(BGZv6*EBT(z3b*S ziH&}n4oVadcI^+KDwr04xib#z<+=G%EVJ;o5H}bY2?y>h-w2gB79*px*E4=bkPoA{MM=^)27qx zv9twGY=ebI&WG4BeaQKV<{SNVth4+JfqXtHIs6z35O0{WA?^&a!$J?1H#nC zu5b+$TB6A%D2EIC%>l;WK7hD9F%PC*RAXL6G}_oH=C3;wtg0lJj#WX1Uc=Mo-Yx?Z zb&G~3O^Ojog1q(X!8$NLW5+qY<|tA_@!7A{6xs+vHv69J<|VI^!j z453*tSx_-v^(;i)EkUS}4``#K8DQ9Nce(!Zrgmww2iD1ZU-@e%s#}PKf?+4>9EBfJ z5G@KL>OKt8(GluaX{oDF^n}4OLKr*z#n>6i{3=uet`9S^<)5P`^79TIVk?IOaQzlA zDI}r8g}N$E|NZu;;a~WI#QxNu9*PmaTDA81^*43}C6k00iAEaE@z?j~R=0w?qTqx= zka9w7b)*@9Wa;Yhgfg5gs82dsgfM>j>*RI114UjR#i!G9EP8<6SAMw??#yjF}oWQtE6Gr?OJ|0y* zzf$QkXT71)g7RqoLpmjBiOgB!_*km?!>M)Hk zJ2rHIpHvsn|D*PPf%*=|sqEh5_gIu-N74eEVTAx)aIV~c=lPkgZmIDhHZM^AN(3(O z@}Gl=EQf6bjJE#N8PLW2D2Bx+*MHkp{_!w%QF5h&K;iy%V&H6&(l1xwqA^erDgrj3 zJTRYr?HM4+GU>^)#EMl=cM>q+Gg_va**XYlWH&|l3a~ZEYw4g2!VQ%#AHPEPXzMsq z?Zi}Ot74rV%fVCQ{ACC&-5=oJHNC>97y~cj^;2{Y?iQmZ>T0}VBeMj$(Eb0^b3QwYILTMtDulI3(FI0016VNV^|>TcS2-&^|5hG+N3fC$!lU*6QA z%0N@aSyWVZa;#SRG=~mas7*dlXN(WP>hx}?6)v8`UcRfEsV>u!QnrRR$@WsVdU4${ zM{Fbuw0E%C0ODD)_`|QzLRwPadhNK#O5U5K>a?09G_7ct9t;2?x*+mq017)hD9xQUE$g-!Y2 zH|S$RC(guXz?eo|1hp6;)6GD9gM``duhpJdX%TaQZq9*>DT6@(azs6G8gp8T<6r4%s~WgT__h)U68M`;8F6nOeNnD$BL->$?pins z2oVI!7+$&dJYDo*M^18vnm#8g@L1P>WAT7H7Xw6)Xe?MdH+0V!OY$lVG5<$(4@9dhQo7_edMPe>h=p4f?jLFP_Pr;1tTO9}gXvB0b znQ|Zo2y$~hq8y`tF;fA<%RhWcy#RXn4bF{|PZR_Rv&L5lJqo~3buO}u#)4b{o(s5< z0=FyTihHI*ozT?M*EP7KndyI7zE;XL7}*1f8tn$B*~X=O;I_NiS>}-G^QhStGRnft z-71YvUeYfV_+BjauJRLR@=^9_fYSkeNdN?#mGS;e5QVfZ$UmLjywg*ZVd*X3s=-HgFge%LWu`kWmhZ9bX;UfL4wpTb?j9 z)zue5T1e#Ma}QMe{b&_TEVuw7>WTd;tXmU3SQAS{cTsgW~IVUa^COPTE;$g?;Cg9nyl@ioJ#wIj`&Lr`a z#9##>V!9{cG|=6aeyuy4Iw8@Wzyay+?=zU$o>S{M&UCZ4Q6PP|Vi8gAZF))ulYCNc z6KKJNkY=6n|1#hx>{IF55=-C&?TAmo7R1RpbYZyhLJr2q`@2NZxLTL;y-UQGN6}oXPOZPa9dXPw4*Z#LO7g#M%)UL zf(^LuOU!G@0Pvb^|8I`4Qx^}T?5lr=RJ&IekNtJPFFO?4nY)>4=@;(z9oer>)}@dIE9 zV~4{+{}VX$c`nSD)*aWL-Iu^>p5e%u?rA4Mf`qJR*N+I6n)O~d-HeS zFo|$enm7p}LV;?1TNAkhJOIFn*T1~@z6`I(hy$wYIv+5%X^w7I>#KAWZz;pSONwRL zbAJi6nZv0DKLHU>*t4DR{WMvU!4K582TWuFcZ^-7LPRHPnoEHa!MRWZ1%k+C(NrSPU@IsmaYvI|Zn z>L?^n(CB8!@Vs+(2<@n|8Jkbu`!5i2>1a$h7ml#E;Z(;`y;2G_L;sVexa z-M?#*a`qAm_U`PYk*dfFB((&F~zd|cH{yjHoACZ`rRu!1dP;*Yy9`+##RQ|_x22&3q><8q$1oG zUz&q!&He*~24=%y-rdDy9ymu;hJuul2sXqDXjY(`X0ox&Xx$|5>bVRq3bZ8PdOFM; zh;}fmumf7>wwVaO_S0Sp)k)P`dCcSbPQ!Po#)ZKD1@B6OiV7ll^h2b$Et}%A5rkCz~N{}G$tRzkw7mJ>W}CKFhpl|zdWv9Ruo{o`6xwp zu5Wc;kU|aX*_A8eV5(pAe@tC?{A2mX1B7%UV7Zg+`qm+^mQ7P$Whz@0xA}Bq2 z2H}fAhe4-w3`Qs@LquR8UDBm=zvqWux#th}xu2`&{7yabeZJ>;++|?dd8?Y0ol{h| zuhNiJ;toYzE+ZEL*7U1Ig%wLN!D*k3jL`>Daqn`U&11%c?*h~`_1~hQFe29{0Ivg9_3Gji zA$a-i))LjsT7JSfnrxxgQJh;5zWdqa-eo(tFiBJ%I}qv762ttz&ms()>Zog3#FXX2 zAwC_lj+Zq!vwNoj7wKs~6AU(Wx~H&fLi-gETWG?Hz2*YDCQZHsKu%*TJ|6j_OzG!G z924|=xK4o^`t}lrOW=3MIH}G$-hpFE^C{9Y3vx8i{OkpecL_QR4kai3VYuj5nD47eL^~+e`FFkXM=G%$Uk|unomO z8+5@ALoGXxlr18#J0ShO&Jqw(ElSYG)|GM!Fz4#L-|KTfHj||%8mu@RHRE!_6?b5F zs{unqGX~9?`ZibOlA5K^-U-eiuXU{AK5-=b?-Lpr_AJN(vE2_Sbn~yJovVOeZ_3ZP zvHea;06gFa5Fu{8K;Lq;lN(JanjjOjIecc_!OkJ+^baH4n6h$j5hRd(^^MX=bhf~B zA^&|^iDQb4>B>pjBR#ywB0de@1S>7M3p}QwP|t*uRqe5-DNOj9!;Pn@z0m(t2LVZT z#=6q!p6hBI$Q)2&{LF`8-T}<`H&Dd^mMu2S56vGm?$=JYTS%V2wz0OK6*@w~AAl$D z$4c14e?7R^v`hB^Jhad>!X&ygYIE6sp&1(XZ0R*Vv&{yAD}hLM@Y2n3rlM0Uuuh?) zd@KT}9>AwWAA}RTkujz^TH6HMCDFL4OZ_H%h|rI(ekGN^O*HXEs+seT-- zP^9~TBjN07w#A&QqQhrz(u)O=cgPoXBDi$>55bP7qchAv$(BMh0z`bDVE49AQ*Z>sV~y@+HV@-Egs%LQk%d zj(7um+<|A9AFKk@P?0f>ZmJHwoQKw~*B^t-o{%3N*rlfLbeEuw(`p@`d)Ee!E~?k& zcn}vus7r&*za#i1g&$$O_m%Q$OorzkFqXBqk>3=WJS#=t%|cQHz(&%~{v`wAVs3Na z0N{>kS)L3aF5pel`@CnDgd1 zkku}huk@_G5RS@gSQc8`954O_t;>OcdU|ubi_~{KqdaM))bQ#C5C$q-T=Pnxx;mF1?~tLw2b7>^LTpO|Jsrj5QD(h4F>&IF70o*EY;F*Cdi20k+f~Z-nwf3Y3KgK&mF?}kLPjI9vaXtgL zBm{7aLU*p8joSYJU57k3moRZFE$bUA%hTyNbYz;4MI#o(Z4DMGA)CZmy<*M8FX`H; zUKKKsN9X?@KcubW=&V!YxRJEAV`Sx1ysE8&5>N;+atq5pO9gM7TN|O&B)uQ~ar-f? zI_e&>$rQuOz2lLAJ&(9+aCPGw`N5FDfZh0Ong`&DlhkjfwgJZwYRN@f-<=HtE~lqS z@m|QeYh`w^@q-4_apQMK!eB)3=nR{t{<-idk(x-Y1`_x=PrLk+gtg5&2mgo!G=|nn zRJ#gDKkkzz!2%4-9TKSg1o+a(J35R2*WGWRh=)t$U@zSKA)aHUqxGm{y=D zkNQ|%^~hM1uQLTo%s>r@qrZi$K#D1er3)x*6w&L&Fk<>ta+2VP!R>l^(BXKxlyE-) z5*6awD9Qp?y}yfPPh~5pQZcF{=~VYE$+ezO8f)BfqizXu@*wyL`|I)z(E{k_EiV91 zI`Nmgv(f@f^i{sQK)VL&#T7iTS51gxKpOyuuVo_SDCht7an#H2o-18DC4MB~a=LPS zE2^+dP6mjfp1jcnP`xiR$;T?wGNcdI_1;1G~CsbvAAk+80Zp)UI7KdPnVa7(ekOv)t}C zTU7=|Kn?_m?D0{q=(4nK`EP(%3uN1AAlnwHp2gUM8wWLFLUC$*P zWhL_Vay@fbUym%#NKTaWJpam*YV;94FCq4<5+)VIRsB0J)@v^ij6sY(>G-Dx zcWU{$b8`?~`B@yUc{E}_%b&k5QU~VCqN`5FA1D>Kbz5uIZE5Xtur1AW#_KLb+meBk zdWZCixINn#o$>X!WpT55hKtS<3BJ3{_-<)WSp6gXt;UNaTUGjHVa^~cdpZY*Fi;H+ z^d)fr_TQNi^ZvRrLj%+5{q6xf*iKs-dt5yzJ28@<0&Qno;dieoVM*q4-=0CG|tBng5vRVX> zD$;kN@H{`i>gQtW-(Fh9$xJ@uviG4-}ZtDrjK>ByTFe5=h zW>D48Ac}p{B5ujy=-}x&$<-%%pTB7E&GMt9FqC3l+BVjMID zPD%x}hP#K%j|Wb4Fm=??19>DOp;PLZu-3N@7D%4N=Jw~|_Pz*^O7N!5 zaR1T|GbI6vw2B*(i!p@h6G#8vdh|PqrT0$DbKRWH@`O|G07Uz3-5E|HK!nT9t+$cP zVLmJIc2f0VIswY7>Y3T-NGAPykC{#LQ$K$6VQa4vT1i}t_j0nqvP7`OWCZ&|C^V~4cJ9&~L^6Sy*w!pi#!Rp5f_Y~WCpLI$nd4s zgv|1;SQQG8oY&+&1N_vPlWaq6U^^LB$Nk{pDF?)W`}#Mh8Vnu<@q{LX zr1uKT!4d(Rsvu-)Md}$Y^4c0}zMw)}t<){bY@=3>m2MM?h)&AuG=Ym~Xi+8rE_j@( zAUcmLygUJ<0S4cW^A$wB;P}1tIOXDxTRr^6X}|94>SV~1G)3;`WzffmSkzxRdM2BC z2(ZbqY3*gs;H)>nEe7}%_Z76w1fepdi`r-i~nuHZEl-KKhjw|m9a01r+ zvtQurm)F$7{s;$7GsiM#EgIT0O%z5M(#`Q|4Y$;8H<+uQdHyE6|GS2ic> z+hvB#o?pjl^Cc9x2WXB`Mu1>VBOVXdRu4&+&kg@pmw1K2j zjQ3;;T$87SNKXb{ZpdfCv)qahjx!QV-+ZX#)x5rJ6zcz!w5QCzsAkdi^&N9@Rg0#L zD>1Mb9omivRJH>3*$@^=XADxq`=3CQP$Ywbe30C!_k2CDKM+7vPNDKpg-#}Z&is>a z;nyrK2kD>g(#3i!aZi25QjsrVGbzeSH{Y1r35d(qT z;Mhe1Puw3JxuQSFBKSJIm!p>d{=MFSz?YDT0So!dW58W$B7yZ>a11<`ZRVKjp|3;Z zEVA%kUHCBTNHqm-rk(ze>gyB_pC>M*r+N-4gCvTd@SRz;{FLF)?29|OwAbzDi<9HH zyvtc3J{~f$N%O}a#e$aTph869b4AnZ;p6UcBPfnIR{{=AN{maa04Z^Q~HUj-W0OCuv_Y7(4l+KMc z+ZtN2oJk(N+3-XGtNah_!MDUa)%P>WjZh{R7ahdi{wd2PX%r1Bp0YJ}UTkm`or|pX++uPH%XE!a z$ZFC`uI<>6b`Pp$Lc7z`REJ6CFzf*b0MP}WC$jm=VU<}pglGd#QwL^;9)0O~hBJtw zs)ZB`u>t=>e=Urva9HV++njY`^4iX<&KEt^mjX+HTQ^*Jc>6JY=X`DjlN$p3>v z!>}nd((&OBV?~#Kf!v;BL8Lp_wDH8J4?*NK=Ccpwww{{zTn7pGVs(#U^T`C`-R~Jj zNi(OmK2of|a1K!Z$lwWb0>QI`CGrcok}+YRTXaPtC&0P(8~GBj*wnL1;b9aYCkeO~ zQ4%7ctW^|gA*bLD<4Vv(Gr5~)Q7kP%bh#+_ABsh6=y7ZZHj!3ZL+vyWQz*pG)8L3i zzd*BkX1Uh!#gvOfL{fAQn83flA~sEGBC$e;4X1HM8Q!zgQ%Q{105q0M4+|33-%i;&d6fm|<6?>M;7K3Oju+#P@n~Lv( z!x~*J@)0OdsNvi?xE8UTL@%l)m_1!fD839&7uLnrF&=d3&=jYtV^8_*Fe}(#Cs!_D z-F7-$(-j)UxoW6A03UHJ4;P!Bu3kKe}qzls~iHS>c`Qy_U zR1W!YK0!x5$`mM)dRh|lt;EG_GUp3zD@s5A7#Jq@5lIsBdnT}K!ahCGd6)_LymTeV zrA4a!+jwA)Ng-+^IN?@mBh7`y@->_V00OjI#vXE+ClU1ox3)V>ISrM?;9 z0ML%|E=ab6oA%sTh&go#`JomlRk2uokg8z{|6%U|5?`AX4(i*={_?5a_Rbc#Lrw)< zk_Xvr|Li+4^%Dss0n_4iW;#pN1L`y4L3wkNliTa|?W!1Zfh_mW8}=G)m#~af>!qZs zd081CvGm?i>|SdfU$=b+ukIvMe`JPxoZ-BALGXr>;Itf(yOy632(EjPG1qGO!C-L$ z679M`9YQU?z)bbyokLDIflmGNEap_QLQn7)SZ2c>vKI^3Uax=Bcj)5A*0CS@X*ax` zhBaW@c3*aS3XW~bFqIOm?djA`{kS<6(1FCYKg;v4N!p0GdP=+_(BCI__%`_;uq)Ed zY@>gk3=@T$NuGK$PL1sw!3He*AHC=fO7GbNt30aGU0oVmu5)vyp>0Z>la$D*qz~|N0UJy?W2=hX6+KGD&8y1 z->+55jc~`gL9fFtH2C}-3#lV-pWl=GMId@xzR+83fwX(v-{>f;5TN0JV|q=fmCnBK z%QH0ouGR^DwRXkDF4s?PjYIDTgY+m|k0OA{o~HfJx`ob<2Z6O!#S`U_4UZ3IWt4dD z&If1{1EdPpr&E9+%>|YV*RtBM{%2#5BE`zmC=kaCB+FB%X0{A2Oi%qdlN^A!36isW zD*och=Rmy5@u!QXnQA}6(nIe@Ad;Kwfeq($K0 z99A;Y=Un=g41I>W&jN?AcmvFjkzn;bQgNCr5iEUV5_3 zV#fkD>|2F^)+K6ToGJ;p^V9M*1DMoEndkzDP4q=%QL+5Czbj*Qa5Whnd8XLz#KMfi zZ4fzyMMsEy{CAY{&!ib}KY8-7uCKWL5gqNpN+3>vJ$>WinMm7GDTAk?n@*|a`?t=<2B2e5P*_1zBcwepKVjD0wINN~3A3*|MA~+n;;=}yV zP@pY_0W=<`n3p!2bx5dZOZdcCjQ?bwv{4Z}tAI+ysxt&N%3Roi;?ba*+I#;%hJ5|F zX(bLD1?!`W6uKA=Lr~nK#?#%tjKdQJDc{na7QFbFs7L)$u8dh z=~_;40>cYPSv~<-*8P5eFKj&kKdCH`*BK&JnGy0+NF*>hx;DsA z_CAK0j-;J>QoMu)Kyq-$Jkam|j5yRRQ7A*XZKk!Ef0jk;?RX|F*@ZCtOi7L+ZObL3HOFdyvd)=rL&SR(G=EItoZb%=t3dJ z>M{S!e+OE-g>gRokj!28{E5_zGCNRfncC+tf-xRso!hw|pSpP(hutBDG?TK(JzI}* zf7wVWP&&Ln)zw(ngFdvJjK|9!Ke0ch`}VnBi_^faf!`f4>t%;rI%1a^MijcKQ0u#% zAnYl7F^bOno~6iRd!u*_g*AnfW1nI}e^qOT?Us$-g#i?w_v*6E>j!0DNXM6G9bV%n zlbro@9^Tn&yuc`Jt~P7L`n6)sS45$s#qNuweMC)qSG`u1I%Xo(x0j6p8c;?-7es0I zTUq5m^s^X($B=2T1hGQFDTnX`pM{V9^>#VOkjd1`Enwz?!h*m*o%wJFP;ECWY9wv3 z`vFaUEwe~f5gXXs@1n_$LAp)59zsX%Q7RlcA-MVAgCTaV7)-Fu58Ly5f*{kF=#f7I zZUAHIjB{h!8fP!~HxZ*vuNrSMsx2qUq zHfhhj|HT+Padm4V+EmedoI@j4J~tX@q7k#2Ko*9$XG&kGdakR4b;NWMbtG1#B5+k^Dt(_N%0mtL4_7dJ6$!;7Jd zotoYuvUc^J!ik|#b@qp0({jVQ{B%^)HOro~>!Y7b>2HD6zIGF5-@rF@*m5R7ats-oad4v-trdH7H0JR5pE)uNHN{5%@9e6bN<#(9Es>>WCC zYo^9_c@QPa4+5fZ%J1atyo>=4Ou+yqsZE+Re~uyUQRk<;yRZxGM^}R)1z_k~47gWeg!^uGGFM z7_k!daPU%tq13x2Dv71nGQGw^-4#0sL}RB34M~?q%2G%2S7@gTJyJwJS4W3Bkmzm5 zKl7cxmVamIrZJirG3C{TmvzWlX&nIwD5uHb8wJ3$+#k^pPcpdu?~qaUmrOD=ev%q*+IvYBj7a7oT7&kPnMd~S2{CfxRGg;H{LVQ$3d5{P^tApS z8H0MB`3*}H@BvlpHPq4#TmfUAV*A$S>W7l90Mp5uz~cB$tHba%y({!0fR-#r`a;;HS;26 zYnT@MU&CV4)KmTTJm#fo3O7NbOA-f3RVpq~Tee%ZloFZApb`82S)Uz0NkfgNi2Mak z4?jOuGfD^FD5+k1idVGr16n|MbK!jr2ruu;G4;Qh`e5)EF`?{&E>7Xmk2q9Rs`F%? z8p6JQg4ItApXCE#QKAX1GUmO<&RwY<%BQzKuY7jH@W#1uTC*@rdwn7IRQ9xH_b$ZT z*;!^PRZ&(n(D;W`+e_}z#%Le=0y(EjCnWSg{Fxrwr8C`2Qe*T`pCL=hc@hc5zV+U- zWROWB9$0`>X_octnF8*a?PRaODx3)Vqyl4dvAfi;@8mldR!(cR<;V}a*^0-|`7$}h zK3n~HSv&JLA~ymmD{=?b<$J*pj1&H#$mo8<{WN@I=G>uh&XS~|gjiQq5|9;K)#}^J zwA(V3dYRL^1le+Z6t;5lF83pRFjQ1#nw*T^x@^*fkAF0pi7HeM5I$>;t*oP}&JGPw zYcQm-0YMk-f#qbiR_NTn`5Q!qp`OL?p_Y;ZsB>GmQQuTmc4u3Z-R>bv4cb3BNk!-M zj*@$<5e3N0$Xp<|UM`66B)7uQoQR*dM_S*#sqT^(MS@y`(_WwHRRet0tOMsdJ)eG4 z$`Tqu3Mv|%Y_cu3QHRd|&GF{~Pr<YPgtbEzX?c(SZgmb4-d(OLSu_a+e)J zpjeGi4sq=_n`v?8pn6KPuBjHURR)(`(7I>OoUKpu!cwc-VSsywMN8tTh~VnXS~#Lk zcynNdAEiUf*~~h#*WN4$g<3M~{#BfB$#TjcI>|&a$odv4&`EUh=0p zzsn7Gr8pc3q*?z{t#FT2zEbjTCh;&@USGOMDU5EIpIC85m=V5y#DJDjSa7p&V**Id zS2@KBwfuY5)_g`6`v(C-Dq~kushLDo%MV5)Y28e{0{QBo;h1#O?AL^cjmM*oc@4%% zqLv(bMGETlJgIu3C_>upog`a{=*;s=Q)+K6L8EY;-RVY;gPm=R@u+HHGu0}%OqI~&-EY?0 zN_s-^k#c*BuxC?eCePMQovo_2Jl@~MR=om}bl$pW!w8H!FLUdg=y#a{JN9)15WeP(HZ-ZBph7r{stw)86@Z*?vwaLSKjRL&lKu3} z9F~@V)FNX3hSg!**<2Sqqgq^-NTmLbQ{OK4dVa%#Pv36$k1ZT9Zto+9ln_q}zLs&W zj&qT1l~^JLQDq%QD2y$x1UauYm*k$ZIRQMjttyc~#+mo4vfv=y`eCnll!~U9=u?$3 z7`crBmz((UFA@nePgbGvtZ%VhYJtmUz$0?7-I>HBFxrIY?dIyQFq0a5S?r=0V63fa zqVgFKKhuFUvElE5W~OP9ho2NU5=s@!x9T%~gFBEKBtutGPGm;%l;tgXzATj(15P@C zR)`P>6>5Mq9kvxyuAhb(h`xu(O}epdtQLQ%!AQz|m2Dp7TFTX>{*`+}v14kN=&7~A zqnML?4rgeh$#WFlPl@fI!U?{n<=s68a$+qgNZvkodt(*``^^Q23sAP_Wfn!x>(uf) z;C8(xntAO{LdY>ri#_Jfy*~mC{X|WTh5kHwy%t{XlyiJ#%dbJX8u)Yuk|kJ9bqse(cKe0@b8F~%O7{_=XY{c*wOR6T^a4hfCtl}%`J}d((fO* z*t+iztIe_?k9He{vRSR^x60&G>dR#5Y@Da}24{9+q5fhmK1ly7k;7)?Ra|qNA#ubB=?O6sfKD3XOzMGaIn_jj^|W zCAYu$cLHaRKF%o*a6`!9clahIB@Zy( z4-+@Tav%!ih$iS>9_@#O2$>xeyGhoEpjv*%k=DyYhXh|Q=%0l%q)z%%);M}1HCW6a zMxd7L^+jX^SIw|# zY%=8CbQyLP>TC_E0PPh^U&wAbY?2DRWidY;la46T5hrS~Z}q3__f~Es$6A+=nI#~@ zMe}vtF^<5_<1gQZa*0cC9D|&qg@c>9{mOo1s^vtUVF;6(o`8T|+(VBQ#w2F<3(Fo- zBaRNpLr+f#GEYBWbuCzG#f|gR}>0QNBr8tlXJNJU&GkOu~q^q(NgU#vg1<3i&FCyHYm# z^KO{=XdU!1`@x@UK_BElk*K0*+MnR-YXj6}+*$64b+4fF`Hz~UmgW@KYcZ{YCByMS zsr7%i^;Bh@o#0y)8D87B+qIuZ;CCuYLa7)hqSgrhTCOabS=y0)GQ)A(i7}T`5oO?t zV_$Hv9sTu6%Y3xUdFw|})r&yA!N5P_<25$g?ihZ6Gm+v&eK3jObRUC}c_cz4_ zY)E^WdgudMfGXc%LF~ksgTAQT?KcB%Qqzu_2{vlbbjplbjCv5uRDGAF%J-yfptNel z6SemRU+-zV$aXu^h_Ii|KR5H7!PlIzBrot*Wv<mecv{KV&VzrGu5W=(tP4!_8s8d&>U%j;mD3Qh2DjUHeDo)KggJ#q7G z2!HhFTfsp*t>tw)%To;U$IkRkXkjk&^S#Wj&KlG*=_-vWM>-QD9^(tiJ?->|)}E-_ zn&jdi8q`o!ab_2Zu%AWt65nS!T9*Rt?jHEe!Z^7##uPdsl?O+?@0wKpa>%Z+=%<%u z8T#)d#`|2j5SOVGOBHaptcAo+zk++CC4mMt+j6b5Nw_)g|0wjwBRrvpHtdMSUHugP zLME5&3SLIeGD`ia);SvtZw3-9*EZ)c|DRPO>ZvtoOEGAD_hx)^eqn9LBCaj-TxrD4 zFpyAcZ&**8N+tM4=jX;Q`h(>)W}{`KI}`BFFG>D44I2QpS7=3 zP_dSqC7nUS)Fl^phtS$yIh%dGdAgAzRE+dSQxz)8n3XNa>VNu|hzdi-*au88UCJ|v zIdk7K&0#G$GV8p>E>R>f$(U{E^fVnvJ+Z&vp=+l>`7D4eX7f7?X<>L{Ve1~i9`Fii z3pjn&tLfv@RijFFy7%IeFV1uXdWU<902xlacd%x{90<8i3&~rm5>ID+f`b_S%$$NZ zmnT+$>L|~V;W&;NZF5UO+wQJ4$@j!8K}MC%jQ@)cuJRAq?~V!a(Wm zOFkXoH|^>K>;d&d#{P!qr&@6fwqQ~w)wK5i0v4J%Nwa|SE3jee%wyzIqRY~=juOlT zNl+GOx93b;B^Q z1SYW}La9Om?k|{Q>q8jT8r~>Yd(uY7NY!*nV=M#mkvJ z>C9?TlIU>+pU_BpfNaSBVmM;T<%SA-0)uz)_(FSW`20!K)}vJsHl?IPOBCLiX=ITq zO(>G+Co{>?8&Qr85=aC<>F(}xvuoTfynzNDXPT�lSTJDowTu6}19h~cTb?-hrv zBW>7oy=;G#bRC<|BvUBpPITff&1|Iv^6JSFO?I!>nDcbZ{N%3>aPu_ZS{$bIh9(-@BJm~nJyepJ&u#!Q4xAS>~l41ogsqDWja~N8-v#con6^3Ws zSn1uGBr2lIGRi)7X7u6v`2z3STh8Onq$k7baH_T<7R@Vkh^L@JnmP7zAl#)o&uy#G zjrp}=o+3@a)3O?WxAI)w$l^W7Zad)U!r(?s7YL80f;|HEzUg!+&b2mHP$30hCtck2 z{5s_UBoozBst|T)p$^q_Xwvnb65PD7+Zn{Mr-)kXw_3baoHRdJ+e&--`e5s6GC@6k z=y{+rmU`yCevM2wsF4XHUObRn^-u5#4D@aJRC_ZOi4pCjDznR=j!_;L%Vqhn?Fwxn zC2sU-WITS7sbE2v$Jh`40JZeyd+6NtnY9{`>LF`#@v47Y=bG1`kUWn|`b4p!b=SbH zQc7iJcn%9F#z5{#S&;*CdphBN9-1T6)VtzBrVSSDIyI=bvuN*aw{g1&jTFgHl1~kb z>DO{scB)CnS|tHuW6^X4k*DL)j=pc{s-4R)2AAV1|C6Q$gcJ6%XqVI)OlkbWIK6)g zqt=XewpV>Fs)4e)uZvfWv2!4_vd*_4_7DrzN`b*X0%OsBe{67OOf&Q&S+a&X*R28U z(LNAuUVB^&l+o>EmA_Hgua%(ZdjXiHoQQ%h)%(IcI)1C}QorimP1@`}hkv}a?hNv& z_*)3&){A40`xbnb$r)tc+#TBx9pu2I($eteZk9rZ@P9QACM#*%TtGm3J2U_o>G-5Q3m^Y%Fk$BIsX zD^QRrljZ3R{6%vLZ_B+Lw17Nh@QnX`q76f0*;Vp6*Mn|ye!3Ox9-k}7`9^zMk!$&T zRYv=>2sr1VY)iG-BJytHL!Q=n4d%ErAo9>SLofad65Z;HtyX19u6gh?jczo*w08Tg zXQD6B1ZW=9rj8q`SgmWs?2q>MnHek}k$EmtW}^oA#zkboOGASu*gHP+W@ma=TzDe$ zg)^_*%-$0zOA=FkhZLvf_HK;m<_}6Nb*L500l$#k{RV!sI%m;8W9=A$Ss`-qlfeQN z_gJd0j9l!m@6e8={!Nq*QulQ7cf=h}j595ZiUTVdCDp6m@LF4Xum`TrX-VT~skI$n z{fVS1L*Py%;3;K3|4fBH^s1em4 z;|UCcoW*w-)R#}4e4BK_yI}TbOL9zs^`0OKU;u}*FVSplpBwgCn{bc;8T643;bvZb z(dz+;TI{kgS5}0NUnQrk!@^tgw`(kXc)X53zxd0Y2lXLx8M>@kXD~$f-(rL?T$oYV zV-U^|!EpIDxzPmkh|8UPTSv=G>*OGx$JQ#PTkt~g_25>7NY&~ZC@?l3&{7c48Wu&8 zcWKTKv)A#G|A}(vlPPvrv>dlK>+;b};eRvFjW$><0>k9{A6#j30bn0KMR$aVa(=%h zbt3U>R{2Rm_vr=i3yW?wQ^P9y@xIJLS(rW+HkO~JpsD}@4cL5n1=czb1r#2ljRR4= z!h*b=o*Ns)SG(1ebT8jqh2#6p{rOkt7e_r$Hl?^hh@FG*FhBT#8qp{tGEzu{rC!I} zUKen;M9b_t?0!`gmzb>v1Ic`&s!~n0)o>4Bbet zyk|54L_Lcx)TtxT?o0p8Mgl|6bkLKYc+%7RCp|E=kxN@Uf2NA-iPsRw4LC7U6`M1E z98c-0+xlaWjm5BDi4@N-04&_@td*50|7%;-dke-Vo0_^9-pr)%hsJm~q=Es^ zO9u+76m>CvOUC{cpm}bF&j>>wiT}&3W8M=B}F`TL~3-wof>> z(b*8V`{BXqI1sWEJ>vX1GGVJCcV+&&uEuHU$VHdB$(QrGuaREVhbF811d^d0}T(0FmlD-=z#!4+Lw7+%h zp$FaNrNh%kA9267G4DTr@&te>O}%AZay;9~zpvKm7yPiH5`0;7*@iWmmHU(+@5;&z zg1S|g6}e({)_hL@d}4VN!(_Q0B)gLjc5J;G-#x>046J~}L}`FZb@#eK%k!OvF^)i; z`h?h1Hco=CmHhIAc~?=b&?_v@^jbbPmS6Ak&q!;j@pL5q`Z@G!RT#xmv$~f}%-`{( zr}n=?M+0f6>Vs_~9tUgjVseC=7c-RZBitdx_U)vWZ06NnJ-0m`0G>Ake zwLW>IMEeEh+IohVnvM*6b8J?iRcvT}WNGiRWxX=c^VRUs^M#@N-r|*ipV`5PEQb$M zinRx-Xp5a3OH%*9aB8x3D62MYBsEq!LSktYHtO&72tUBN?KC0^i8mAtcso+ap6%zi zqbEy2(#kR3y0G|RNVO&d8Stie@BM1k7Ns)!pP&FR57>jh$u?m_BG5!Cfa)35(W-ZQ zym1#h_i0G~u4Ri=BS4ntFUi6jM20WAJV3N9j9$Xd4G-P&8f@G+6$xS@&fwz}-Mgt( zltG_3zW;QZ7!*YO+;5=UbO)0Nq;XL9f4s3@zcDbTzX?a)pSbXWb*sboli!t8R;it=f>LUOKS=2ueW2Ya1i}@tZ z-k~Zz_2YSYzdg6Bav*Wf@~-MC=HEoL=~yYo);?;>f8>O@KfMvRYYJiwK*;x*s>x@59LcDe@I}0)nlYT| zQ4-;80GBexejL0`7dL}0d-l;u?r%+GwpbjG9k2MxCk?RDjcv#MSu~Kay~#Amp4_jCqEF~#Jfgtk3BL9Y&hAFeLt^n~TO5E_Vjr0(AwQH_Oy(97?>m-%;kVa5 zB2z^oS+;-XF~FM-HY-Tm5RJQ=q1zC35R=Kjp`wD5n+&@}8{_fLzQUqH%l?IXrm(AnJQ1*ZuhEv40~h<&@Rfymo-3OyQBoD#bYpYI)$Iu^;>+94}5eYIw%M>*ruv-G{z%a7odTj>BOi< zq07=J4q;wUL-31H{;qdY%vNf|b%T>ludVcHM`24R_9ZCi-_njSoO0*XT&Q*)yn3V} zwj(GA3G&-I=Ij&)6v%_>YlY0sYzUv04bPGPt-53-khX76o5+B#d9b{YUEO-&wg;f~knr-paSr1$QK zySiH$88vS}5u*K5&j?j${qrp(1Gb6RR@#+tMUfLh#lQ+9_k^-P9R@MpI7a|ev~j0c zYgyC{xDeiak97n8+`Hb*M=^dg5z?;ef1g9Z(5ZjsRBUQ9M6|+KMc-M!`}2_K7&D^~T>)<@|qchO%TG#UTHQAn?#>e-2d>AW|M}SyqXk9Hh|^ zIs07;>nMU!isdq@wW3>xdkKJVK(F#ftNdOF5E5zAsc9kk9^Njr_oY~WE937s$u!K~ z1B=QWZ!Q%}|CNRBmWgu#*(b^Z(2?^Ok#t#KRh0!tGK*J1Hm=2(sNF3Mzz^E@Aji*2 zw4Z=h2x<=L3@{S_ipALup|o2u|LprlH%Hbg?&Qp2#$T8Q=VcWShq6DP1Zm;tZ1fb4 zyv@5s9RRa-(epZvRRtZOZ4abeHzlG#Kg?B}B(r!-KtNM;-vr1>{`?B0dzT(=796>b z&5^mH6kn#+#ZF#oGeFXSgJ`^*U-oAA*KtVFIlQLDu!CQyp_f+L@1Y81+IGH~dFgAR zVEyf2_wlk%@CxiU-vNE2+ADSSgkZQPzjx;pLx6GxmDYF76c9F6V<`jhD|OksP`w>M zoC8{MP#N?`Oa(>P%J;hlf0(Cghg&a?YlXQH?L1vAoipW(IA3Pael_51>F{kP=||D- zfq(+JXNLXx7eBPqXrz<*Yfbch($qfXg{hbm-<4wlXi(FpS&~Dt68!6W@I& z$Fhjbt8MW;j@$!sLB%Mqw-%N{=qJs)G7vYqHGcWlM72}!v9m^t1PW5K$DIBb5;y2I zUn?l^-%niRLlhVb2QwicJCWlLTyIQkrtT@pGAJKzlG5weVFx4Tq3B~C|1)wp! zYp)ExS_gGcff@MXuYCpEy#_Ez)WD$^6i(&k?1%5YLvCl|WgT-Atd%Js;9RXB2ilmq zYyi^J{Ijlris*CLKJCRiBsL2z8|-gxGGO^MW%Lte`V8tll!~_iY8{+GASp@l62wU;Y4n-2og!d|&hKFaI^=&b05%Ua+GNy-EX`=WVXbag}bo#CPwUW^72L zT#sF1phnCChzGWKY?vSX>^GpNmm?#C+X?=1Wf{qlI{pH7v5n=x!kg@vVLx)|A%*$7 z0M1>rHmN-z&E}DcfGTD#z+bt_L_D4V#B59e^o`yz2P^1nB9*Wj8Of1JyN#P+VAwcv z^!0{w^QDIGkGUGfQLYbqXIjRy&>_3Wwp?g9wt(<<%9;apT%2h9y&0%XKM-ggLU@M& z-wEWo7ITG=%tgn#{iTIIcl}N$&Qn)efQ!OE>8^(ua!du?mL9ulOPcZg{XxadB!^00S?a{D!ni{!UKX%7O=>^%FQf6Ks(WIN!pi(awJ%;LH86>y5b{op z_?xvB*fE#XoCN`=F){0Oz8a;fw29g>G2B?JqHa*~-TOPhwkjf6wcYXvk;e10qG_~& zA*50Ot)Xw?!6ykL5OO)i1L+lmW?t!^iPVZTAr{5tFQSrTZ&X_K)t1Y>-v`tVE()m%W`sFmL+-y?BZPX^DNRh3KeF{DEe^8ysMg1PSQlkDcMuA;OgZsHMYR0{ z;G&`;3?Tp%U4C%=@+A-j*3k7kZc?zskXV*Uj6|^^69L9G%V#8+-#ma6=MO43yPNz) zi)Nb6oJ*7D=iGqjoC%f+>+%iS>q8$P!g=(;lX93*Zmg-7Mw34q$zQ4>_v5Bco)}Zu z3X(YS zx~w)>XzpzP*{2=@+Zk|~bZv!@kxRTs^zsTBn93!TK}{^eypHj52&GDN0=~?|2H6BT z)~~X)gK@J4tW9ZtR-N8d-a6J|eBd49e!k4?zv)@PvqDzH&hiql`OA+{z*kO5j=i>0 zQ5Du3zRn@W814z4;Q$ZVH?P{H&7~FG`j&HH`0k9M2*ReTU2v@iOlc&w*u5uEA;%9o z5#$543RBGx{uIc-;Bng>cWnI#*EefB71ftQg6>&~S(|4;7Q{s(ka`m^Gg?Ry^G~-j zS_`W`_UCj73Gfp&mlp!wkb4Ripo4&0IZ(62e8G|A02N6ckVI8g)syYVB?3rl5))HZ zxyk#mw64?}6VBQBI4KkeWh)lJYsE0wZ!Q4Fs!U-1EO36Q-`0RX#y(kmWN~TU;$^sD z327xH^Dsa7*>8+_+UC|pWPsGNv~VI_cc@ph7#KGuT1izB1$$zGn|D_7jF#Og5uD$+ z0`5UFv2xh2vtqd|XECDR)AS9cYgbqLPT^j61w?X2%OA*r=rCX>QV4*f(1>B~zW6GM zCUkou3AHpTt>dn?tUr^KJ2^)kgnTYV9SE+)2kAi?L_xb*Z^qY%US)nAI43XheS$GR zUiT#E7w3QA2BTjB?#G=~%y$k9YxiNo-6dO^Q18tpdv0y_JeTw*>~K|38IcarR)1>O zY}f<{Zf9;xjs2Dej4uD(rde93KaXR*83Zk$*$xyvnw)7<6&iHfs9Ta58Qa_%p!#KV zU1G^WACt+ov9%&^(PnOCbg`+Coxr!vv9`U_!S!}3 z`F8^_)mT|ToFqzAa&ig|+3re;@i>Y)@)7!E%(G4Cu@Ajxe4Wcz36wIQ-@RJk_I>xdu!1e8j z4NxAyjNgdyvjJUiOe(U#rt(CZy_G!Oni7u#ZDcRZ-8ZhmuKT5 zcxQj6@Al8<`0av_%$;)!V*;$cfa0kyaN497S6UIl3E z&eWtmTle$%r);!@khi^+x3fm=1Zdj+lo+lEl)38;MIgf~W*A7jLEz_&-tQF!Jaw(2@H8Z|_>;no6$t2;m{1B$&-Yb>$|DJXWa)?)m^Fgn&G( z3bsl?F#=T(RuFzD;_Dhj0`iE8t?o~7QCP|ftAMbG0+FJnh^QzaUE~=bRM3css0(&x zK<@DK+kWYXWV;@VtG~r_4U}6Exff~~cH(PfHi@{}Y4|{2Th|VOyAgf2 zE($mRLxpD7wbZGh)u%3*2RjI7UxKIPTG4lBHtnfc_MOQsH(B=k3R#lKNH42?bOcF+ zO2k%QOXcmIJBQ#vLv^z<^(^&y53&$tw_^hCWr3VR_-B(GJ$TWul@mVy{Mf`THmI+$ z}vG#tGM$aK>slL`@d1u{YDzfY&IxWpSuQTts{Tgj=K(`Z4c2MrPIg zb8Bj|(u?fAfKSo1Sy;^PIXb9KTq@@ZN^{cZTk`~5$aBNJmgU;s9!vCaw-g@|nFhkg z2(GbNyYox@4X_(j&VhR&kC$JIWIjKyaXT<-1Ka3K@jqYqH#-Ir`p<7LYk#B@Fu1jr5zzPaHF zk#yn-=9kfgs1#3(7$tir%0?h`B=Es)#EeaTY^6`=GPEoR#+y{8Bl30Pd_S`wS$uvN z^z@&)9g+?@{B8lFQt}zSw823m+zcSBP@ZuMZo+fLAw^1Mcp)XTH6k7NDz^r36qJNAcw&1VpyLJu0k? zY->d8N)3QQboxEJ)>1dJFa{Bpg%fR}&Aj48?~03ez*(Wkq59In1@Z>GJXGS(fS7hk zl)*pFyd&a|RJ?>^#)z$%D;CIC+|-2Z=-o3It-&oShpden&p7@S=5F8}3%46gl~NX= zsIT-RHbZEfDC2Vnav;dzyufy4h%U6gy(bcnenePdI29qZmaX4<5+>C318oVyca&Sf z>)={Mst__b=}Zv>*eAu$su2MYlK?>);v^3&cpY#O6NWN<0sGgA`z#9OC*Uh5sxO}K zS&addMI82tb`ilZP8JWLInXGg(gG;VWDnuH8{Ch??+wY4>qKdTlO=rZ$S|n4a_kXl z6k~anyPz9tEdZkY&1wTQ+J=B;)DIRl2Jqi|*#!Ls8aX8KAgTw82;|7c$kgcapQAHt zgsaffMTkHtgFvD8IiK2y@IF1zxh>PvD#I8h5+F}uC=?koS-%;tsMsFR9YYHf4{k_C z171+;M)Y=-OHHhi{_cyOfL>p5N!P7KM6C$KN_ienuu2x!Eao+K%zUo}cu(5`r~^7q z(7_WBJ5aWs=$IXk^NW{dcGa$-X`uejJ+?;g3*Tqgk0J5t%LER5PRbT1OZg+MG1`E( zkIXzIT#8Wz9;1wK*;Zu z5l~Id^fky1<;xrH;C6Eepmyd80v-zZJ(AiRN3hiDuP3)2AJduGQAm-2BEqi+*15bB+i)DHKB>45FsA>1iTntaomaU&5k37u#2 zIL`Be{5+OiYMJY&NgM8X-ea1R-ow_+E6GfTK@r9~L!#y9t5EDx-Z{%3d6w}94Ta&d z61LkSJqQoD1Rv5aB51e3{SqP0*wb4d*Z}=kzk0BgNixwAS@MElU0@fv zog)uCLZ624(9%SN^+y;Sfg@bbGw-^}j1owinDQl+%bT*q7w0F1E#YMf@kf4Vo?gE0 zSibX}uG?0uLvYia@iGw3<-F(VwWf9R4Ik?$=Es;+oA%H0V=04VsAX`~mBA8dw-Pj4 z8#kUAeVz5tzF5mA{|WEIum#IIbXn}!Yo)_~B6<|z!dWow@ZhF!Ppg?xI%RwI0VT|} zrB^~Z^5ad|KU7`>`Z`_ByX3Zdvc5hRm6AK;#1diw%BB*!bhAY1`=yCUFj7%uM;pGf zWjUJXo-grFHbKO+9|2R^p36xX%FBHd2mgrXCi_F#$``(&TmOie1`#O%*bT>@q=rx}rUt91x$O~Ul zpFx;O^`j|E9BcT4_SJiy`uhe``)601{tXJCz@$W+16Q5J23_*@tcN`>5@m{k&Iwp`hM%wG{r zKmp{f6bT$-t<5!Fyju9KzvpRmiw2d`9J??O)0UB5+xgt3X7iw9pPxha%5K3wZm;{M zp&pJ0a_?3xoF04H)$t0==TBwM)R7@zOtQ`I5_?Ih3hV5heO(Wygg32I^4Ks zcob$cSbW%o9qA4(=Yp0?X@7FXP-R!e%vV+Rx2-!DMDKmH=iy*QNpnm4mY9~`i z6m|F<8<9;!N}%=%wO6RULhThyM8MzFBdFgvf*RgrziTB_A#GDTnpaS$DTUvK>7RPo zStW%PO?aT!QC_2r3}{*QeuM58}>foYpIHV&eVd)v{x8AHRM)szv*#iLvAV zT5BxRA4dVuKj$uX8k;$QlRIkTk~X5%ErZ$0T*AgU2Lw{9gwTmtUsaT&eb0W0sE>Ex5a^68|KUNdF5+T2#LP diff --git a/dist/apps/user-profile/assets/img/webauthn-logo-black.svg b/dist/apps/user-profile/assets/img/webauthn-logo-black.svg new file mode 100644 index 000000000..4cf976576 --- /dev/null +++ b/dist/apps/user-profile/assets/img/webauthn-logo-black.svg @@ -0,0 +1,89 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/dist/apps/user-profile/favicon.ico b/dist/apps/user-profile/favicon.ico deleted file mode 100644 index 317ebcb2336e0833a22dddf0ab287849f26fda57..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15086 zcmeI332;U^%p|z7g|#(P)qFEA@4f!_@qOK2 z_lJl}!lhL!VT_U|uN7%8B2iKH??xhDa;*`g{yjTFWHvXn;2s{4R7kH|pKGdy(7z!K zgftM+Ku7~24TLlh(!g)gz|foI94G^t2^IO$uvX$3(OR0<_5L2sB)lMAMy|+`xodJ{ z_Uh_1m)~h?a;2W{dmhM;u!YGo=)OdmId_B<%^V^{ovI@y`7^g1_V9G}*f# zNzAtvou}I!W1#{M^@ROc(BZ! z+F!!_aR&Px3_reO(EW+TwlW~tv*2zr?iP7(d~a~yA|@*a89IUke+c472NXM0wiX{- zl`UrZC^1XYyf%1u)-Y)jj9;MZ!SLfd2Hl?o|80Su%Z?To_=^g_Jt0oa#CT*tjx>BI z16wec&AOWNK<#i0Qd=1O$fymLRoUR*%;h@*@v7}wApDl^w*h}!sYq%kw+DKDY)@&A z@9$ULEB3qkR#85`lb8#WZw=@})#kQig9oqy^I$dj&k4jU&^2(M3q{n1AKeGUKPFbr z1^<)aH;VsG@J|B&l>UtU#Ejv3GIqERzYgL@UOAWtW<{p#zy`WyJgpCy8$c_e%wYJL zyGHRRx38)HyjU3y{-4z6)pzb>&Q1pR)B&u01F-|&Gx4EZWK$nkUkOI|(D4UHOXg_- zw{OBf!oWQUn)Pe(=f=nt=zkmdjpO^o8ZZ9o_|4tW1ni+Un9iCW47*-ut$KQOww!;u z`0q)$s6IZO!~9$e_P9X!hqLxu`fpcL|2f^I5d4*a@Dq28;@2271v_N+5HqYZ>x;&O z05*7JT)mUe&%S0@UD)@&8SmQrMtsDfZT;fkdA!r(S=}Oz>iP)w=W508=Rc#nNn7ym z1;42c|8($ALY8#a({%1#IXbWn9-Y|0eDY$_L&j{63?{?AH{);EzcqfydD$@-B`Y3<%IIj7S7rK_N}je^=dEk%JQ4c z!tBdTPE3Tse;oYF>cnrapWq*o)m47X1`~6@(!Y29#>-#8zm&LXrXa(3=7Z)ElaQqj z-#0JJy3Fi(C#Rx(`=VXtJ63E2_bZGCz+QRa{W0e2(m3sI?LOcUBx)~^YCqZ{XEPX)C>G>U4tfqeH8L(3|pQR*zbL1 zT9e~4Tb5p9_G}$y4t`i*4t_Mr9QYvL9C&Ah*}t`q*}S+VYh0M6GxTTSXI)hMpMpIq zD1ImYqJLzbj0}~EpE-aH#VCH_udYEW#`P2zYmi&xSPs_{n6tBj=MY|-XrA;SGA_>y zGtU$?HXm$gYj*!N)_nQ59%lQdXtQZS3*#PC-{iB_sm+ytD*7j`D*k(P&IH2GHT}Eh z5697eQECVIGQAUe#eU2I!yI&%0CP#>%6MWV z@zS!p@+Y1i1b^QuuEF*13CuB zu69dve5k7&Wgb+^s|UB08Dr3u`h@yM0NTj4h7MnHo-4@xmyr7(*4$rpPwsCDZ@2be zRz9V^GnV;;?^Lk%ynzq&K(Aix`mWmW`^152Hoy$CTYVehpD-S1-W^#k#{0^L`V6CN+E z!w+xte;2vu4AmVNEFUOBmrBL>6MK@!O2*N|2=d|Y;oN&A&qv=qKn73lDD zI(+oJAdgv>Yr}8(&@ZuAZE%XUXmX(U!N+Z_sjL<1vjy1R+1IeHt`79fnYdOL{$ci7 z%3f0A*;Zt@ED&Gjm|OFTYBDe%bbo*xXAQsFz+Q`fVBH!N2)kaxN8P$c>sp~QXnv>b zwq=W3&Mtmih7xkR$YA)1Yi?avHNR6C99!u6fh=cL|KQ&PwF!n@ud^n(HNIImHD!h87!i*t?G|p0o+eelJ?B@A64_9%SBhNaJ64EvKgD&%LjLCYnNfc; znj?%*p@*?dq#NqcQFmmX($wms@CSAr9#>hUR^=I+=0B)vvGX%T&#h$kmX*s=^M2E!@N9#m?LhMvz}YB+kd zG~mbP|D(;{s_#;hsKK9lbVK&Lo734x7SIFJ9V_}2$@q?zm^7?*XH94w5Qae{7zOMUF z^?%F%)c1Y)Q?Iy?I>knw*8gYW#ok|2gdS=YYZLiD=CW|Nj;n^x!=S#iJ#`~Ld79+xXpVmUK^B(xO_vO!btA9y7w3L3-0j-y4 z?M-V{%z;JI`bk7yFDcP}OcCd*{Q9S5$iGA7*E1@tfkyjAi!;wP^O71cZ^Ep)qrQ)N z#wqw0_HS;T7x3y|`P==i3hEwK%|>fZ)c&@kgKO1~5<5xBSk?iZV?KI6&i72H6S9A* z=U(*e)EqEs?Oc04)V-~K5AUmh|62H4*`UAtItO$O(q5?6jj+K^oD!04r=6#dsxp?~}{`?&sXn#q2 zGuY~7>O2=!u@@Kfu7q=W*4egu@qPMRM>(eyYyaIE<|j%d=iWNdGsx%c!902v#ngNg z@#U-O_4xN$s_9?(`{>{>7~-6FgWpBpqXb`Ydc3OFL#&I}Irse9F_8R@4zSS*Y*o*B zXL?6*Aw!AfkNCgcr#*yj&p3ZDe2y>v$>FUdKIy_2N~}6AbHc7gA3`6$g@1o|dE>vz z4pl(j9;kyMsjaw}lO?(?Xg%4k!5%^t#@5n=WVc&JRa+XT$~#@rldvN3S1rEpU$;XgxVny7mki3 z-Hh|jUCHrUXuLr!)`w>wgO0N%KTB-1di>cj(x3Bav`7v z3G7EIbU$z>`Nad7Rk_&OT-W{;qg)-GXV-aJT#(ozdmnA~Rq3GQ_3mby(>q6Ocb-RgTUhTN)))x>m&eD;$J5Bg zo&DhY36Yg=J=$Z>t}RJ>o|@hAcwWzN#r(WJ52^g$lh^!63@hh+dR$&_dEGu&^CR*< z!oFqSqO@>xZ*nC2oiOd0eS*F^IL~W-rsrO`J`ej{=ou_q^_(<$&-3f^J z&L^MSYWIe{&pYq&9eGaArA~*kA - UserProfile + User Profile - - + - + diff --git a/dist/apps/user-profile/main-es2015.25b258bd8f922b203159.js b/dist/apps/user-profile/main-es2015.25b258bd8f922b203159.js deleted file mode 100644 index e3281e8a0..000000000 --- a/dist/apps/user-profile/main-es2015.25b258bd8f922b203159.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[179],{1730:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=1730,t.exports=e},7546:function(t,e,i){"use strict";function n(t){return"function"==typeof t}let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},c=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function u(t){return null!==t&&"object"==typeof t}const l=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof l?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,i)}}[p](){return this}static create(t,e,i){const n=new f(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends f{constructor(t,e,i,s){let r;super(),this._parentSubscriber=t;let o=this;n(e)?r=e:e&&(r=e.next,i=e.error,s=e.complete,e!==a&&(o=Object.create(e),n(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=r;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw i;o(i)}}__tryOrSetError(t,e,i){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(o(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(t){return t}let b=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:n}=this,s=function(t,e,i){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||i?new f(t,e,i):new f(a)}(t,e,i);if(s.add(n?n.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:n}=t;if(e||n)return!1;t=i&&i instanceof f?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=y(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?_:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=y(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function y(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const w=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class M extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class A extends f{constructor(t){super(t),this.destination=t}}let v=(()=>{class t extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new A(this)}lift(t){const e=new T(this,this);return e.operator=t,e}next(t){if(this.closed)throw new w;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew T(t,e),t})();class T extends v{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function k(t){return t&&"function"==typeof t.schedule}class S extends f{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const C=t=>e=>{for(let i=0,n=t.length;it&&"number"==typeof t.length&&"function"!=typeof t;function R(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const x=t=>{if(t&&"function"==typeof t[m])return i=t,t=>{const e=i[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(z(t))return C(t);if(R(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e))(t);if(t&&"function"==typeof t[L])return e=t,t=>{const i=e[L]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=u(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i};function O(t,e,i,n,s=new S(t,i,n)){if(!s.closed)return e instanceof b?e.subscribe(s):x(e)(s)}class D extends f{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function P(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new N(t,e))}}class N{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new I(t,this.project,this.thisArg))}}class I extends f{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function B(t,e){return new b(i=>{const n=new h;let s=0;return n.add(e.schedule(function(){s!==t.length?(i.next(t[s++]),i.closed||n.add(this.schedule())):i.complete()})),n})}function F(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new b(i=>{const n=new h;return n.add(e.schedule(()=>{const s=t[m]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if(R(t))return function(t,e){return new b(i=>{const n=new h;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if(z(t))return B(t,e);if(function(t){return t&&"function"==typeof t[L]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new b(i=>{const n=new h;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[L](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof b?t:new b(x(t))}function H(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(H((i,n)=>F(t(i,n)).pipe(P((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new q(t,i)))}class q{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new j(t,this.project,this.concurrent))}}class j extends D{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Y(t=Number.POSITIVE_INFINITY){return H(_,t)}function W(t,e){return e?B(t,e):new b(C(t))}function U(...t){let e=Number.POSITIVE_INFINITY,i=null,n=t[t.length-1];return k(n)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof n&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof b?t[0]:Y(e)(W(t,i))}function K(){return function(t){return t.lift(new V(t))}}class V{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new X(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class X extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}class G extends b{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new J(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return K()(this)}}const $=(()=>{const t=G.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class J extends A{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function Q(){return new v}function Z(){return t=>{return K()((e=Q,function(t){let i;i="function"==typeof e?e:function(){return e};const n=Object.create(t,$);return n.source=t,n.subjectFactory=i,n})(t));var e}}function tt(t){for(let e in t)if(t[e]===tt)return e;throw Error("Could not find renamed property on target object.")}function et(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function it(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(it).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function nt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const st=tt({__forward_ref__:tt});function rt(t){return t.__forward_ref__=rt,t.toString=function(){return it(this())},t}function ot(t){return at(t)?t():t}function at(t){return"function"==typeof t&&t.hasOwnProperty(st)&&t.__forward_ref__===rt}class ct extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function ut(t){return"string"==typeof t?t:null==t?"":String(t)}function lt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ut(t)}function ht(t,e){const i=e?` in ${e}`:"";throw new ct("201",`No provider for ${lt(t)} found${i}`)}function dt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function pt(t){return{providers:t.providers||[],imports:t.imports||[]}}function ft(t){return gt(t,_t)||gt(t,yt)}function gt(t,e){return t.hasOwnProperty(e)?t[e]:null}function mt(t){return t&&(t.hasOwnProperty(bt)||t.hasOwnProperty(wt))?t[bt]:null}const _t=tt({"\u0275prov":tt}),bt=tt({"\u0275inj":tt}),yt=tt({ngInjectableDef:tt}),wt=tt({ngInjectorDef:tt});var Mt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let At;function vt(t){const e=At;return At=t,e}function Tt(t,e,i){const n=ft(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&Mt.Optional?null:void 0!==e?e:void ht(it(t),"Injector")}function kt(t){return{toString:t}.toString()}var St=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Ct=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const Et="undefined"!=typeof globalThis&&globalThis,Lt="undefined"!=typeof window&&window,zt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Rt="undefined"!=typeof global&&global,xt=Et||Rt||Lt||zt,Ot={},Dt=[],Pt=tt({"\u0275cmp":tt}),Nt=tt({"\u0275dir":tt}),It=tt({"\u0275pipe":tt}),Bt=tt({"\u0275mod":tt}),Ft=tt({"\u0275loc":tt}),Ht=tt({"\u0275fac":tt}),qt=tt({__NG_ELEMENT_ID__:tt});let jt=0;function Yt(t){return kt(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===St.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Dt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ct.Emulated,id:"c",styles:t.styles||Dt,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,r=t.pipes;return i.id+=jt++,i.inputs=Xt(t.inputs,e),i.outputs=Xt(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(Wt):null,i.pipeDefs=r?()=>("function"==typeof r?r():r).map(Ut):null,i})}function Wt(t){return Jt(t)||function(t){return t[Nt]||null}(t)}function Ut(t){return function(t){return t[It]||null}(t)}const Kt={};function Vt(t){return kt(()=>{const e={type:t.type,bootstrap:t.bootstrap||Dt,declarations:t.declarations||Dt,imports:t.imports||Dt,exports:t.exports||Dt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Kt[t.id]=t.type),e})}function Xt(t,e){if(null==t)return Ot;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),i[s]=n,e&&(e[s]=r)}return i}const Gt=Yt;function $t(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Jt(t){return t[Pt]||null}function Qt(t,e){const i=t[Bt]||null;if(!i&&!0===e)throw new Error(`Type ${it(t)} does not have '\u0275mod' property.`);return i}function Zt(t){return Array.isArray(t)&&"object"==typeof t[1]}function te(t){return Array.isArray(t)&&!0===t[1]}function ee(t){return 0!=(8&t.flags)}function ie(t){return 2==(2&t.flags)}function ne(t){return 1==(1&t.flags)}function se(t){return null!==t.template}function re(t,e){return t.hasOwnProperty(Ht)?t[Ht]:null}class oe{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ae(){return ce}function ce(t){return t.type.prototype.ngOnChanges&&(t.setInput=le),ue}function ue(){const t=he(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===Ot)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function le(t,e,i,n){const s=he(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Ot,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[i],c=o[a];r[a]=new oe(c&&c.currentValue,e,o===Ot),t[n]=e}function he(t){return t.__ngSimpleChanges__||null}let de;function pe(){return void 0!==de?de:"undefined"!=typeof document?document:void 0}function fe(t){return!!t.listen}ae.ngInherit=!0;const ge={createRenderer:(t,e)=>pe()};function me(t){for(;Array.isArray(t);)t=t[0];return t}function _e(t,e){return me(e[t])}function be(t,e){return me(e[t.index])}function ye(t,e){return t.data[e]}function we(t,e){return t[e]}function Me(t,e){const i=e[t];return Zt(i)?i:i[0]}function Ae(t){return 4==(4&t[2])}function ve(t){return 128==(128&t[2])}function Te(t,e){return null==e?null:t[e]}function ke(t){t[18]=0}function Se(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Ce={lFrame:Qe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ee(){return Ce.bindingsEnabled}function Le(){return Ce.lFrame.lView}function ze(){return Ce.lFrame.tView}function Re(t){return Ce.lFrame.contextLView=t,t[8]}function xe(){let t=Oe();for(;null!==t&&64===t.type;)t=t.parent;return t}function Oe(){return Ce.lFrame.currentTNode}function De(t,e){const i=Ce.lFrame;i.currentTNode=t,i.isParent=e}function Pe(){return Ce.lFrame.isParent}function Ne(){Ce.lFrame.isParent=!1}function Ie(){return Ce.isInCheckNoChangesMode}function Be(t){Ce.isInCheckNoChangesMode=t}function Fe(){const t=Ce.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function He(){return Ce.lFrame.bindingIndex}function qe(){return Ce.lFrame.bindingIndex++}function je(t){const e=Ce.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function Ye(t,e){const i=Ce.lFrame;i.bindingIndex=i.bindingRootIndex=t,We(e)}function We(t){Ce.lFrame.currentDirectiveIndex=t}function Ue(t){const e=Ce.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Ke(){return Ce.lFrame.currentQueryIndex}function Ve(t){Ce.lFrame.currentQueryIndex=t}function Xe(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Ge(t,e,i){if(i&Mt.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&Mt.Host||(n=Xe(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=Ce.lFrame=Je();return n.currentTNode=e,n.lView=t,!0}function $e(t){const e=Je(),i=t[1];Ce.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function Je(){const t=Ce.lFrame,e=null===t?null:t.child;return null===e?Qe(t):e}function Qe(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Ze(){const t=Ce.lFrame;return Ce.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ti=Ze;function ei(){const t=Ze();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ii(){return Ce.lFrame.selectedIndex}function ni(t){Ce.lFrame.selectedIndex=t}function si(){const t=Ce.lFrame;return ye(t.tView,t.selectedIndex)}function ri(){Ce.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function oi(){Ce.lFrame.currentNamespace=null}function ai(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}class pi{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function fi(t,e,i){const n=fe(t);let s=0;for(;se){o=r-1;break}}}for(;r>16,n=e;for(;i>0;)n=n[15],i--;return n}let Ai=!0;function vi(t){const e=Ai;return Ai=t,e}let Ti=0;function ki(t,e){const i=Ci(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Si(n.data,t),Si(e,null),Si(n.blueprint,null));const s=Ei(t,e),r=t.injectorIndex;if(yi(s)){const t=wi(s),i=Mi(s,e),n=i[1].data;for(let s=0;s<8;s++)e[r+s]=i[t+s]|n[t+s]}return e[r+8]=s,r}function Si(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ci(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Ei(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return-1;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function Li(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(qt)&&(n=i[qt]),null==n&&(n=i[qt]=Ti++);const s=255&n;e.data[t+(s>>5)]|=1<=0?255&e:Di:e}(i);if("function"==typeof r){if(!Ge(e,t,n))return n&Mt.Host?zi(s,i,n):Ri(e,i,n,s);try{const t=r(n);if(null!=t||n&Mt.Optional)return t;ht(i)}finally{ti()}}else if("number"==typeof r){let s=null,o=Ci(t,e),a=-1,c=n&Mt.Host?e[16][6]:null;for((-1===o||n&Mt.SkipSelf)&&(a=-1===o?Ei(t,e):e[o+8],-1!==a&&Fi(n,!1)?(s=e[1],o=wi(a),e=Mi(a,e)):o=-1);-1!==o;){const t=e[1];if(Bi(r,o,t.data)){const t=Pi(o,e,i,s,n,c);if(t!==Oi)return t}a=e[o+8],-1!==a&&Fi(n,e[1].data[o+8]===c)&&Bi(r,o,e)?(s=t,o=wi(a),e=Mi(a,e)):o=-1}}}return Ri(e,i,n,s)}const Oi={};function Di(){return new Hi(xe(),Le())}function Pi(t,e,i,n,s,r){const o=e[1],a=o.data[t+8],c=Ni(a,o,i,null==n?ie(a)&&Ai:n!=o&&0!=(3&a.type),s&Mt.Host&&r===a);return null!==c?Ii(e,o,c,a):Oi}function Ni(t,e,i,n,s){const r=t.providerIndexes,o=e.data,a=1048575&r,c=t.directiveStart,u=r>>20,l=s?a+u:t.directiveEnd;for(let h=n?a:a+u;h=c&&t.type===i)return h}if(s){const t=o[c];if(t&&se(t)&&t.type===i)return c}return null}function Ii(t,e,i,n){let s=t[i];const r=e.data;if(s instanceof pi){const o=s;o.resolving&&function(t,e){throw new ct("200",`Circular dependency in DI detected for ${t}`)}(lt(r[i]));const a=vi(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?vt(o.injectImpl):null;Ge(t,n,Mt.Default);try{s=t[i]=o.factory(void 0,r,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(n){const n=ce(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),r&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,r),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,r))}(i,r[i],e)}finally{null!==c&&vt(c),vi(a),o.resolving=!1,ti()}}return s}function Bi(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[Ht]||ji(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[Ht]||ji(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function ji(t){return at(t)?()=>{const e=ji(ot(t));return e&&e()}:re(t)}function Yi(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class Ui{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=dt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Ki=new Ui("AnalyzeForEntryComponents"),Vi=Function;function Xi(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?Gi(t,e):e(t))}function $i(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function Ji(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Qi(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function tn(t,e){const i=en(t,e);if(i>=0)return t[1|i]}function en(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),r=t[i<<1];if(e===r)return i<<1;r>e?s=i:n=i+1}return~(s<<1)}(t,e)}const nn={},sn=/\n/gm,rn=tt({provide:String,useValue:tt});let on;function an(t){const e=on;return on=t,e}function cn(t,e=Mt.Default){if(void 0===on)throw new Error("inject() must be called from an injection context");return null===on?Tt(t,void 0,e):on.get(t,e&Mt.Optional?null:void 0,e)}function un(t,e=Mt.Default){return(At||cn)(ot(t),e)}const ln=un;function hn(t){const e=[];for(let i=0;i({token:t})),-1),fn=dn(Wi("Optional"),8),gn=dn(Wi("SkipSelf"),4);let mn,_n;function bn(t){var e;return(null===(e=function(){if(void 0===mn&&(mn=null,xt.trustedTypes))try{mn=xt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return mn}())||void 0===e?void 0:e.createHTML(t))||t}function yn(t){var e;return(null===(e=function(){if(void 0===_n&&(_n=null,xt.trustedTypes))try{_n=xt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return _n}())||void 0===e?void 0:e.createHTML(t))||t}class wn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Mn extends wn{getTypeName(){return"HTML"}}class An extends wn{getTypeName(){return"Style"}}class vn extends wn{getTypeName(){return"Script"}}class Tn extends wn{getTypeName(){return"URL"}}class kn extends wn{getTypeName(){return"ResourceURL"}}function Sn(t){return t instanceof wn?t.changingThisBreaksApplicationSecurity:t}function Cn(t,e){const i=En(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function En(t){return t instanceof wn&&t.getTypeName()||null}class Ln{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(bn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class zn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=bn(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=bn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0On(t.trim())).join(", ")),this.buf.push(" ",e,'="',Xn(o),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Hn.hasOwnProperty(e)&&!Nn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Xn(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Kn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vn=/([^\#-~ |!])/g;function Xn(t){return t.replace(/&/g,"&").replace(Kn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Vn,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Gn;function $n(t,e){let i=null;try{Gn=Gn||function(t){const e=new zn(t);return function(){try{return!!(new window.DOMParser).parseFromString(bn(""),"text/html")}catch(t){return!1}}()?new Ln(e):e}(t);let n=e?String(e):"";i=Gn.getInertBodyElement(n);let s=5,r=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=r,r=i.innerHTML,i=Gn.getInertBodyElement(n)}while(n!==r);return bn((new Un).sanitizeChildren(Jn(i)||i))}finally{if(i){const t=Jn(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Jn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Qn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Zn(t){const e=es();return e?yn(e.sanitize(Qn.HTML,t)||""):Cn(t,"HTML")?yn(Sn(t)):$n(pe(),ut(t))}function ts(t){const e=es();return e?e.sanitize(Qn.URL,t)||"":Cn(t,"URL")?Sn(t):On(ut(t))}function es(){const t=Le();return t&&t[12]}function is(t,e){t.__ngContext__=e}function ns(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function ss(t){return t.ngDebugContext}function rs(t){return t.ngOriginalError}function os(t,...e){t.error(...e)}class as{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||os}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?ss(t)?ss(t):this._findContext(rs(t)):null}_findOriginalError(t){let e=rs(t);for(;e&&rs(e);)e=rs(e);return e}}const cs=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(xt))();function us(t){return t.ownerDocument.defaultView}function ls(t){return t.ownerDocument.body}function hs(t){return t instanceof Function?t():t}var ds=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function ps(t,e){return(void 0)(t,e)}function fs(t){const e=t[3];return te(e)?e[3]:e}function gs(t){return _s(t[13])}function ms(t){return _s(t[4])}function _s(t){for(;null!==t&&!te(t);)t=t[4];return t}function bs(t,e,i,n,s){if(null!=n){let r,o=!1;te(n)?r=n:Zt(n)&&(o=!0,n=n[0]);const a=me(n);0===t&&null!==i?null==s?Ss(e,i,a):ks(e,i,a,s||null,!0):1===t&&null!==i?ks(e,i,a,s||null,!0):2===t?function(t,e,i){const n=Es(t,e);n&&function(t,e,i,n){fe(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,i,n,s){const r=i[7];r!==me(i)&&bs(e,t,n,r,s);for(let o=10;o0&&(t[i-1][4]=n[4]);const o=Ji(t,10+e);Ns(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function As(t,e){if(!(256&e[2])){const i=e[11];fe(i)&&i.destroyNode&&Ns(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return vs(t[1],t);for(;e;){let i=null;if(Zt(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)Zt(e)&&vs(e[1],e),e=e[3];null===e&&(e=t),Zt(e)&&vs(e[1],e),i=e&&e[4]}e=i}}(e)}}function vs(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=c]():n[s=-c].unsubscribe(),r+=2}else{const t=n[s=i[r+1]];i[r].call(t)}if(null!==n){for(let t=s+1;tr?"":s[l+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==Hs(e,u,0)||2&n&&u!==t){if(Us(n))return!1;o=!0}}}}else{if(!o&&!Us(n)&&!Us(c))return!1;if(o&&Us(c))continue;o=!1,n=c|1&n}}return Us(n)||o}function Us(t){return 0==(1&t)}function Ks(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+o:4&n&&(s+=" "+o);else""===s||Us(o)||(e+=Gs(r,s),s=""),n=o,r=r||!Us(n);i++}return""!==s&&(e+=Gs(r,s)),e}const Js={};function Qs(t){Zs(ze(),Le(),ii()+t,Ie())}function Zs(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&ci(e,n,i)}else{const n=t.preOrderHooks;null!==n&&ui(e,n,0,i)}ni(i)}function tr(t,e){return t<<17|e<<2}function er(t){return t>>17&32767}function ir(t){return 2|t}function nr(t){return(131068&t)>>2}function sr(t,e){return-131069&t|e<<2}function rr(t){return 1|t}function or(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;n20&&Zs(t,e,20,Ie()),i(n,s)}finally{ni(r)}}function fr(t,e,i){if(ee(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=r&&i.push(r),i.push(n,s,o)}}function Tr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function kr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Sr(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&Dr(i)}}function Dr(t){for(let i=gs(t);null!==i;i=ms(i))for(let t=10;t0&&Dr(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&Dr(n)}}function Pr(t,e){const i=Me(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function jr(t){return t[7]||(t[7]=[])}function Yr(t){return t.cleanup||(t.cleanup=[])}function Wr(t,e,i){return(null===t||se(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function Ur(t,e){const i=t[9],n=i?i.get(as,null):null;n&&n.handleError(e)}function Kr(t,e,i,n,s){for(let r=0;rthis.processProvider(i,t,e)),Gi([t],t=>this.processInjectorType(t,[],s)),this.records.set(Gr,oo(void 0,this));const r=this.records.get(Jr);this.scope=null!=r?r.value:null,this.source=n||("object"==typeof t?null:it(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=nn,i=Mt.Default){this.assertNotDestroyed();const n=an(this);try{if(!(i&Mt.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Ui)&&ft(t);e=i&&this.injectableDefInScope(i)?oo(so(t),Qr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&Mt.Self?eo():this.parent).get(t,e=i&Mt.Optional&&e===nn?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(it(t)),n)throw r;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=it(e);if(Array.isArray(e))s=e.map(it).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):it(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(sn,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{an(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(it(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=ot(t)))return!1;let n=mt(t);const s=null==n&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==i.indexOf(r);if(void 0!==s&&(n=mt(s)),null==n)return!1;if(null!=n.imports&&!o){let t;i.push(r);try{Gi(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||Dt))}}this.injectorDefTypes.add(r);const a=re(r)||(()=>new r);this.records.set(r,oo(a,Qr));const c=n.providers;if(null!=c&&!o){const e=t;Gi(c,t=>this.processProvider(t,e,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=co(t=ot(t))?t:ot(t&&t.provide);const s=function(t,e,i){return ao(t)?oo(void 0,t.useValue):oo(ro(t),Qr)}(t);if(co(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=oo(void 0,Qr,!0),e.factory=()=>hn(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===Qr&&(e.value=Zr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=ot(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function so(t){const e=ft(t),i=null!==e?e.factory:re(t);if(null!==i)return i;if(t instanceof Ui)throw new Error(`Token ${it(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=Qi(e,"?");throw new Error(`Can't resolve all parameters for ${it(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[_t]||t[yt]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function ro(t,e,i){let n;if(co(t)){const e=ot(t);return re(e)||so(e)}if(ao(t))n=()=>ot(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...hn(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>un(ot(t.useExisting));else{const e=ot(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return re(e)||so(e);n=()=>new e(...hn(t.deps))}var s;return n}function oo(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function ao(t){return null!==t&&"object"==typeof t&&rn in t}function co(t){return"function"==typeof t}const uo=function(t,e,i){return function(t,e=null,i=null,n){const s=io(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let lo=(()=>{class t{static create(t,e){return Array.isArray(t)?uo(t,e,""):uo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=nn,t.NULL=new $r,t.\u0275prov=dt({token:t,providedIn:"any",factory:()=>un(Gr)}),t.__NG_ELEMENT_ID__=-1,t})();function ho(t,e){ai(ns(t)[1],xe())}function po(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s;if(se(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=fo(t.inputs),e.declaredInputs=fo(t.declaredInputs),e.outputs=fo(t.outputs);const i=s.hostBindings;i&&_o(t,i);const r=s.viewQuery,o=s.contentQueries;if(r&&go(t,r),o&&mo(t,o),et(t.inputs,s.inputs),et(t.declaredInputs,s.declaredInputs),et(t.outputs,s.outputs),se(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=_i(s.hostAttrs,i=_i(i,s.hostAttrs))}}(n)}function fo(t){return t===Ot?{}:t===Dt?[]:t}function go(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function mo(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function _o(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let bo=null;function yo(){if(!bo){const t=xt.Symbol;if(t&&t.iterator)bo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(me(t[n.index])):n.index;if(fe(i)){let o=null;if(!a&&c&&(o=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let r=0;ri?t[i]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,n.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,h=!1;else{r=Xo(n,e,0,r,!1);const t=i.listen(p,s,r);l.push(r,t),u&&u.push(s,g,f,f+1)}}else r=Xo(n,e,0,r,!0),p.addEventListener(s,r,o),l.push(r),u&&u.push(s,g,f,o)}else r=Xo(n,e,0,r,!1);const d=n.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,Ce.lFrame.contextLView))[8]}(t)}function $o(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const sa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ra(t){return t.substring(sa.key,sa.keyEnd)}function oa(t,e){const i=sa.textEnd;return i===e?-1:(e=sa.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,sa.key=e,i),aa(t,e,i))}function aa(t,e,i){for(;e=0;i=oa(e,i))Zi(t,ra(e),!0)}function da(t,e,i,n){const s=Le(),r=ze(),o=je(2);r.firstUpdatePass&&ga(r,t,o,n),e!==Js&&To(s,o,e)&&ba(r,r.data[ii()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=it(Sn(t)))),t}(e,i),n,o)}function pa(t,e,i,n){const s=ze(),r=je(2);s.firstUpdatePass&&ga(s,null,r,n);const o=Le();if(i!==Js&&To(o,r,i)){const a=s.data[ii()];if(Ma(a,n)&&!fa(s,r)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=nt(t,i||"")),Oo(s,a,o,i,n)}else!function(t,e,i,n,s,r,o,a){s===Js&&(s=Dt);let c=0,u=0,l=0=t.expandoStartIndex}function ga(t,e,i,n){const s=t.data;if(null===s[i+1]){const r=s[ii()],o=fa(t,i);Ma(r,n)&&null===e&&!o&&(e=!1),e=function(t,e,i,n){const s=Ue(t);let r=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=_a(i=ma(null,t,e,i,n),e.attrs,n),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(i=ma(s,t,e,i,n),null===r){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==nr(n))return t[er(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=ma(null,t,e,i[1],n),i=_a(i,e.attrs,n),function(t,e,i,n){t[er(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else r=function(t,e,i){let n;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(l=!0)}else u=i;if(s)if(0!==c){const e=er(t[a+1]);t[n+1]=tr(e,a),0!==e&&(t[e+1]=sr(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=tr(a,0),0!==a&&(t[a+1]=sr(t[a+1],n)),a=n;else t[n+1]=tr(c,0),0===a?a=n:t[c+1]=sr(t[c+1],n),c=n;l&&(t[n+1]=ir(t[n+1])),ia(t,u,n,!0),ia(t,u,n,!1),function(t,e,i,n,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&en(r,e)>=0&&(i[n+1]=rr(i[n+1]))}(e,u,t,n,r),o=tr(a,c),r?e.classBindings=o:e.styleBindings=o}(s,r,e,i,o,n)}}function ma(t,e,i,n,s){let r=null;const o=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),c=r?e[1]:e,u=null===c;let l=i[s+1];l===Js&&(l=u?Dt:void 0);let h=u?tn(l,n):c===n?l:void 0;if(r&&!wa(h)&&(h=tn(e,n)),wa(h)&&(a=h,o))return a;const d=t[s+1];s=o?er(d):nr(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=tn(t,n))}return a}function wa(t){return void 0!==t}function Ma(t,e){return 0!=(t.flags&(e?16:32))}function Aa(t,e=""){const i=Le(),n=ze(),s=t+20,r=n.firstCreatePass?cr(n,s,1,e,null):n.data[s],o=i[s]=function(t,e){return fe(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Rs(n,i,o,r),De(r,!1)}function va(t){return Ta("",t,""),va}function Ta(t,e,i){const n=Le(),s=Co(n,t,e,i);return s!==Js&&Vr(n,ii(),s),Ta}function ka(t,e,i,n,s){const r=Le(),o=Eo(r,t,e,i,n,s);return o!==Js&&Vr(r,ii(),o),ka}function Sa(t,e,i,n,s,r,o,a,c,u,l){const h=Le(),d=function(t,e,i,n,s,r,o,a,c,u,l,h){const d=He();let p=function(t,e,i,n,s,r){const o=ko(t,e,i,n);return ko(t,e+2,s,r)||o}(t,d,i,s,o,c);return p=To(t,d+4,l)||p,je(5),p?e+ut(i)+n+ut(s)+r+ut(o)+a+ut(c)+u+ut(l)+h:Js}(h,t,e,i,n,s,r,o,a,c,u,l);return d!==Js&&Vr(h,ii(),d),Sa}function Ca(t,e,i){pa(Zi,ha,Co(Le(),t,e,i),!0)}function Ea(t,e,i){const n=Le();return To(n,qe(),e)&&Mr(ze(),si(),n,t,e,n[11],i,!0),Ea}function La(t,e,i){const n=Le();if(To(n,qe(),e)){const s=ze(),r=si();Mr(s,r,n,t,e,Wr(Ue(s.data),r,n),i,!0)}return La}const za=void 0;var Ra=["en",[["a","p"],["AM","PM"],za],[["AM","PM"],za,za],[["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"]],za,[["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"]],za,[["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}",za,"{1} 'at' {0}",za],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let xa={};function Oa(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=Da(e);if(i)return i;const n=e.split("-")[0];if(i=Da(n),i)return i;if("en"===n)return Ra;throw new Error(`Missing locale data for the locale "${t}".`)}function Da(t){return t in xa||(xa[t]=xt.ng&&xt.ng.common&&xt.ng.common.locales&&xt.ng.common.locales[t]),xa[t]}var Pa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let Na="en-US";function Ia(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(Na=t.toLowerCase().replace(/_/g,"-"))}function Ba(t,e,i,n,s){if(t=ot(t),Array.isArray(t))for(let r=0;r>20;if(co(t)||!t.multi){const n=new pi(c,s,Ro),p=qa(a,e,s?l:l+d,h);-1===p?(Li(ki(u,o),r,a),Fa(r,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(n),o.push(n)):(i[p]=n,o[p]=n)}else{const p=qa(a,e,l+d,h),f=qa(a,e,l,l+d),g=p>=0&&i[p],m=f>=0&&i[f];if(s&&!m||!s&&!g){Li(ki(u,o),r,a);const l=function(t,e,i,n,s){const r=new pi(t,i,Ro);return r.multi=[],r.index=e,r.componentProviders=0,Ha(r,s,n&&!i),r}(s?Ya:ja,i.length,s,n,c);!s&&m&&(i[f].providerFactory=l),Fa(r,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(l),o.push(l)}else Fa(r,t,p>-1?p:f,Ha(i[s?f:p],c,!s&&n));!s&&n&&m&&i[f].componentProviders++}}}function Fa(t,e,i,n){const s=co(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(i);-1===t?o.push(i,[n,r]):o[t+1].push(n,r)}else o.push(i,r)}}}function Ha(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function qa(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=ze();if(n.firstCreatePass){const s=se(t);Ba(i,n.data,n.blueprint,s,!0),Ba(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class Ka{}class Va{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${it(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Xa=(()=>{class t{}return t.NULL=new Va,t})();function Ga(...t){}function $a(t,e){return new Qa(be(t,e))}const Ja=function(){return $a(xe(),Le())};let Qa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Ja,t})();function Za(t){return t instanceof Qa?t.nativeElement:t}class tc{}let ec=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ic(),t})();const ic=function(){const t=Le(),e=Me(xe().index,t);return function(t){return t[11]}(Zt(e)?e:t)};let nc=(()=>{class t{}return t.\u0275prov=dt({token:t,providedIn:"root",factory:()=>null}),t})();class sc{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const rc=new sc("12.0.5");class oc{constructor(){}supports(t){return Mo(t)}create(t){return new cc(t)}}const ac=(t,e)=>e;class cc{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ac}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const r=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(r&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new uc(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new hc),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new hc),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class uc{constructor(t,e){this.item=t,this.trackById=e,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 lc{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class hc{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new lc,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function dc(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;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(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new gc(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class gc{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function mc(){return new _c([new oc])}let _c=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||mc()),deps:[[t,new gn,new fn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=dt({token:t,providedIn:"root",factory:mc}),t})();function bc(){return new yc([new pc])}let yc=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||bc()),deps:[[t,new gn,new fn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=dt({token:t,providedIn:"root",factory:bc}),t})();function wc(t,e,i,n,s=!1){for(;null!==i;){const r=e[i.index];if(null!==r&&n.push(me(r)),te(r))for(let t=10;t-1&&(Ms(t,i),Ji(e,i))}this._attachedToViewContainer=!1}As(this._lView[1],this._lView)}onDestroy(t){yr(this._lView[1],this._lView,null,t)}markForCheck(){Ir(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Br(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Be(!0);try{Br(t,e,i)}finally{Be(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Ns(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ac extends Mc{constructor(t){super(t),this._view=t}detectChanges(){Fr(this._view)}checkNoChanges(){!function(t){Be(!0);try{Fr(t)}finally{Be(!1)}}(this._view)}get context(){return null}}const vc=function(t){return function(t,e,i){if(ie(t)&&!i){const i=Me(t.index,e);return new Mc(i,i)}return 47&t.type?new Mc(e[16],e):null}(xe(),Le(),16==(16&t))};let Tc=(()=>{class t{}return t.__NG_ELEMENT_ID__=vc,t})();const kc=[new pc],Sc=new _c([new oc]),Cc=new yc(kc),Ec=function(){return xc(xe(),Le())};let Lc=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ec,t})();const zc=Lc,Rc=class extends zc{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=ar(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),lr(e,i,t),new Mc(i)}};function xc(t,e){return 4&t.type?new Rc(e,t,$a(t,e)):null}class Oc{}class Dc{}const Pc=function(){return qc(xe(),Le())};let Nc=(()=>{class t{}return t.__NG_ELEMENT_ID__=Pc,t})();const Ic=Nc,Bc=class extends Ic{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return $a(this._hostTNode,this._hostLView)}get injector(){return new Hi(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ei(this._hostTNode,this._hostLView);if(yi(t)){const e=Mi(t,this._hostLView),i=wi(t);return new Hi(e[1].data[i+8],e)}return new Hi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Fc(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const r=i||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(Oc,null);t&&(s=t)}const o=t.create(r,n,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const i=t._lView,n=i[1];if(te(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new Bc(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,i,n){const s=10+n,r=i.length;n>0&&(i[s-1][4]=e),ncs});class Kc extends Ka{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map($s).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Wc(this.componentDef.inputs)}get outputs(){return Wc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const r=t.get(i,jc,s);return r!==jc||n===jc?r:e.get(i,n,s)}}}(t,n.injector):t,r=s.get(tc,ge),o=s.get(nc,null),a=r.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function(t,e,i){if(fe(t))return t.selectRootElement(e,i===Ct.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):ys(r.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,h={components:[],scheduler:cs,clean:qr,playerHandler:null,flags:0},d=br(0,null,null,1,0,null,null,null,null,null),p=ar(null,d,h,l,null,null,r,a,o,s);let f,g;$e(p);try{const t=function(t,e,i,n,s,r){const o=i[1];i[20]=t;const a=cr(o,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(Xr(a,c,!0),null!==t&&(fi(s,t,c),null!==a.classes&&Fs(s,t,a.classes),null!==a.styles&&Bs(s,t,a.styles)));const u=n.createRenderer(t,e),l=ar(i,_r(e),null,e.onPush?64:16,i[20],a,n,u,null,null);return o.firstCreatePass&&(Li(ki(a,i),o,e.type),kr(o,a),Cr(a,i.length,1)),Nr(i,l),i[20]=l}(u,this.componentDef,p,r,a);if(u)if(i)fi(a,u,["ng-version",rc.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&Fs(a,u,e.join(" "))}if(g=ye(d,20),void 0!==e){const t=g.projection=[];for(let i=0;it(o,e)),e.contentQueries){const t=xe();e.contentQueries(1,o,t.directiveStart)}const a=xe();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(ni(a.index),vr(i[1],a,0,a.directiveStart,a.directiveEnd,e),Tr(e,o)),o}(t,this.componentDef,p,h,[ho]),lr(d,p,null)}finally{ei()}return new Vc(this.componentType,f,$a(g,p),p,g)}}class Vc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Ac(n),this.componentType=t}get injector(){return new Hi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Xc=new Map;class Gc extends Oc{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Yc(this);const i=Qt(t),n=t[Ft]||null;n&&Ia(n),this._bootstrapComponents=hs(i.bootstrap),this._r3Injector=io(t,e,[{provide:Oc,useValue:this},{provide:Xa,useValue:this.componentFactoryResolver}],it(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=lo.THROW_IF_NOT_FOUND,i=Mt.Default){return t===lo||t===Oc||t===Gr?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class $c extends Dc{constructor(t){super(),this.moduleType=t,null!==Qt(t)&&function(t){const e=new Set;!function t(i){const n=Qt(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${it(e)} vs ${it(e.name)}`)}(s,Xc.get(s),i),Xc.set(s,i));const r=hs(n.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Gc(this.moduleType,t)}}function Jc(t,e,i){const n=Fe()+t,s=Le();return s[n]===Js?vo(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function Qc(t,e,i,n){return eu(Le(),Fe(),t,e,i,n)}function Zc(t,e,i,n,s){return iu(Le(),Fe(),t,e,i,n,s)}function tu(t,e){const i=t[e];return i===Js?void 0:i}function eu(t,e,i,n,s,r){const o=e+i;return To(t,o,s)?vo(t,o+1,r?n.call(r,s):n(s)):tu(t,o+1)}function iu(t,e,i,n,s,r,o){const a=e+i;return ko(t,a,s,r)?vo(t,a+2,o?n.call(o,s,r):n(s,r)):tu(t,a+2)}function nu(t,e){const i=ze();let n;const s=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new ct("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const r=n.factory||(n.factory=re(n.type)),o=vt(Ro);try{const t=vi(!1),e=r();return vi(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Le(),s,e),e}finally{vt(o)}}function su(t,e,i){const n=t+20,s=Le(),r=we(s,n);return cu(s,au(s,n)?eu(s,Fe(),e,r.transform,i,r):r.transform(i))}function ru(t,e,i,n){const s=t+20,r=Le(),o=we(r,s);return cu(r,au(r,s)?iu(r,Fe(),e,o.transform,i,n,o):o.transform(i,n))}function ou(t,e,i,n,s){const r=t+20,o=Le(),a=we(o,r);return cu(o,au(o,r)?function(t,e,i,n,s,r,o,a){const c=e+i;return function(t,e,i,n,s){const r=ko(t,e,i,n);return To(t,e+2,s)||r}(t,c,s,r,o)?vo(t,c+3,a?n.call(a,s,r,o):n(s,r,o)):tu(t,c+3)}(o,Fe(),e,a.transform,i,n,s,a):a.transform(i,n,s))}function au(t,e){return t[1].data[e].pure}function cu(t,e){return wo.isWrapped(e)&&(e=wo.unwrap(e),t[He()]=Js),e}function uu(t){return e=>{setTimeout(t,void 0,e)}}const lu=class extends v{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var n,s,r;let o=t,a=e||(()=>null),c=i;if(t&&"object"==typeof t){const e=t;o=null===(n=e.next)||void 0===n?void 0:n.bind(e),a=null===(s=e.error)||void 0===s?void 0:s.bind(e),c=null===(r=e.complete)||void 0===r?void 0:r.bind(e)}this.__isAsync&&(a=uu(a),o&&(o=uu(o)),c&&(c=uu(c)));const u=super.subscribe({next:o,error:a,complete:c});return t instanceof h&&t.add(u),u}};function hu(){return this._results[yo()]()}class du{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=yo(),i=du.prototype;i[e]||(i[e]=hu)}get changes(){return this._changes||(this._changes=new lu)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){this.dirty=!1;const i=Xi(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(o[t/2]);else{const s=r[t+1],o=e[-i];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=Ga,this.reject=Ga,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e.subscribe({complete:t,error:i})});t.push(i)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(un(Lu,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Ru=new Ui("AppId"),xu={provide:Ru,useFactory:function(){return`${Ou()}${Ou()}${Ou()}`},deps:[]};function Ou(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Du=new Ui("Platform Initializer"),Pu=new Ui("Platform ID"),Nu=new Ui("appBootstrapListener");let Iu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Bu=new Ui("LocaleId"),Fu=new Ui("DefaultCurrencyCode");class Hu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const qu=function(t){return new $c(t)},ju=qu,Yu=function(t){return Promise.resolve(qu(t))},Wu=function(t){const e=qu(t),i=hs(Qt(t).declarations).reduce((t,e)=>{const i=Jt(e);return i&&t.push(new Kc(i)),t},[]);return new Hu(e,i)},Uu=Wu,Ku=function(t){return Promise.resolve(Wu(t))};let Vu=(()=>{class t{constructor(){this.compileModuleSync=ju,this.compileModuleAsync=Yu,this.compileModuleAndAllComponentsSync=Uu,this.compileModuleAndAllComponentsAsync=Ku}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Xu=(()=>Promise.resolve(0))();function Gu(t){"undefined"==typeof Zone?Xu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class $u{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new lu(!1),this.onMicrotaskEmpty=new lu(!1),this.onStable=new lu(!1),this.onError=new lu(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!i&&e,this.shouldCoalesceRunChangeDetection=i,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=xt.requestAnimationFrame,e=xt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(xt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Zu(t),t.isCheckStableRunning=!0,Qu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Zu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,s,r,o,a)=>{try{return tl(t),i.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),el(t)}},onInvoke:(i,n,s,r,o,a,c)=>{try{return tl(t),i.invoke(s,r,o,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),el(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Zu(t),Qu(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$u.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if($u.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+n,t,Ju,Ga,Ga);try{return s.runTask(r,e,i)}finally{s.cancelTask(r)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const Ju={};function Qu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Zu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function tl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function el(t){t._nesting--,Qu(t)}class il{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new lu,this.onMicrotaskEmpty=new lu,this.onStable=new lu,this.onError=new lu}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let nl=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$u.assertNotInAngularZone(),Gu(()=>{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())Gu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!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(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(un($u))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),sl=(()=>{class t{constructor(){this._applications=new Map,al.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return al.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class rl{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let ol,al=new rl,cl=!0,ul=!1;function ll(){return ul=!0,cl}const hl=new Ui("AllowMultipleToken");class dl{constructor(t,e){this.name=t,this.token=e}}function pl(t,e,i=[]){const n=`Platform: ${e}`,s=new Ui(n);return(e=[])=>{let r=fl();if(!r||r.injector.get(hl,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:Jr,useValue:"platform"});!function(t){if(ol&&!ol.destroyed&&!ol.injector.get(hl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ol=t.get(gl);const e=t.get(Du,null);e&&e.forEach(t=>t())}(lo.create({providers:t,name:n}))}return function(t){const e=fl();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function fl(){return ol&&!ol.destroyed?ol:null}let gl=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new il:("zone.js"===t?void 0:t)||new $u({enableLongStackTrace:ll(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:$u,useValue:i}];return i.run(()=>{const e=lo.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(as,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{r.handleError(t)}});s.onDestroy(()=>{bl(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return qo(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(r,i,()=>{const t=s.injector.get(zu);return t.runInitializers(),t.donePromise.then(()=>(Ia(s.injector.get(Bu,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=ml({},e);return function(t,e,i){const n=new $c(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(_l);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${it(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(un(lo))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function ml(t,e){return Array.isArray(e)?e.reduce(ml,t):Object.assign(Object.assign({},t),e)}let _l=(()=>{class t{constructor(t,e,i,n,s){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new b(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new b(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{$u.assertNotInAngularZone(),Gu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{$u.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=U(r,o.pipe(Z()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof Ka?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(Oc),s=i.create(lo.NULL,[],e||i.selector,n),r=s.location.nativeElement,o=s.injector.get(nl,null),a=o&&s.injector.get(sl);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),bl(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;bl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Nu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(un($u),un(lo),un(as),un(Xa),un(zu))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function bl(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class yl{}class wl{}const Ml={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Al=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Ml}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i(1730)(e).then(t=>t[n]).then(t=>vl(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i(1730)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>vl(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(un(Vu),un(wl,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function vl(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const Tl=pl(null,"core",[{provide:Pu,useValue:"unknown"},{provide:gl,deps:[lo]},{provide:sl,deps:[]},{provide:Iu,deps:[]}]),kl=[{provide:_l,useClass:_l,deps:[$u,lo,as,Xa,zu]},{provide:Uc,deps:[$u],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:zu,useClass:zu,deps:[[new fn,Lu]]},{provide:Vu,useClass:Vu,deps:[]},xu,{provide:_c,useFactory:function(){return Sc},deps:[]},{provide:yc,useFactory:function(){return Cc},deps:[]},{provide:Bu,useFactory:function(t){return Ia(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new pn(Bu),new fn,new gn]]},{provide:Fu,useValue:"USD"}];let Sl=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(un(_l))},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:kl}),t})(),Cl=null;function El(){return Cl}const Ll=new Ui("DocumentToken");let zl=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:Rl,token:t,providedIn:"platform"}),t})();function Rl(){return un(Ol)}const xl=new Ui("Location Initialized");let Ol=(()=>{class t extends zl{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return El().getBaseHref(this._doc)}onPopState(t){const e=El().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=El().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,i){Dl()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){Dl()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({factory:Pl,token:t,providedIn:"platform"}),t})();function Dl(){return!!window.history.pushState}function Pl(){return new Ol(un(Ll))}function Nl(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function Il(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function Bl(t){return t&&"?"!==t[0]?"?"+t:t}let Fl=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:Hl,token:t,providedIn:"root"}),t})();function Hl(t){const e=un(Ll).location;return new jl(un(zl),e&&e.origin||"")}const ql=new Ui("appBaseHref");let jl=(()=>{class t extends Fl{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Nl(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Bl(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+Bl(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+Bl(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(un(zl),un(ql,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Yl=(()=>{class t extends Fl{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=Nl(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+Bl(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+Bl(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(un(zl),un(ql,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Wl=(()=>{class t{constructor(t,e){this._subject=new lu,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Il(Kl(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Bl(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Kl(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Bl(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Bl(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformStrategy).historyGo)||void 0===i||i.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(un(Fl),un(zl))},t.normalizeQueryParams=Bl,t.joinWithSlash=Nl,t.stripTrailingSlash=Il,t.\u0275prov=dt({factory:Ul,token:t,providedIn:"root"}),t})();function Ul(){return new Wl(un(Fl),un(zl))}function Kl(t){return t.replace(/\/index.html$/,"")}var Vl=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Xl=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),Gl=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),$l=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),Jl=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function Ql(t,e){return nh(Oa(t)[Pa.DateFormat],e)}function Zl(t,e){return nh(Oa(t)[Pa.TimeFormat],e)}function th(t,e){return nh(Oa(t)[Pa.DateTimeFormat],e)}function eh(t,e){const i=Oa(t),n=i[Pa.NumberSymbols][e];if(void 0===n){if(e===Jl.CurrencyDecimal)return i[Pa.NumberSymbols][Jl.Decimal];if(e===Jl.CurrencyGroup)return i[Pa.NumberSymbols][Jl.Group]}return n}function ih(t){if(!t[Pa.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Pa.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function nh(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function sh(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const rh=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,oh={},ah=/((?:[^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 ch=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),uh=function(t){return 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}({}),lh=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function hh(t,e,i,n){let s=function(t){if(Th(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,i=1,n=1]=t.split("-").map(t=>+t);return dh(e,i-1,n)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(rh))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,c,u),e}(i)}const e=new Date(t);if(!Th(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=ph(i,e)||e;let r,o=[];for(;e;){if(r=ah.exec(e),!r){o.push(e);break}{o=o.concat(r.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();n&&(a=vh(n,a),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(vh(e,n)-n))}(s,n));let c="";return o.forEach(t=>{const e=function(t){if(Ah[t])return Ah[t];let e;switch(t){case"G":case"GG":case"GGG":e=_h(lh.Eras,Gl.Abbreviated);break;case"GGGG":e=_h(lh.Eras,Gl.Wide);break;case"GGGGG":e=_h(lh.Eras,Gl.Narrow);break;case"y":e=mh(uh.FullYear,1,0,!1,!0);break;case"yy":e=mh(uh.FullYear,2,0,!0,!0);break;case"yyy":e=mh(uh.FullYear,3,0,!1,!0);break;case"yyyy":e=mh(uh.FullYear,4,0,!1,!0);break;case"Y":e=Mh(1);break;case"YY":e=Mh(2,!0);break;case"YYY":e=Mh(3);break;case"YYYY":e=Mh(4);break;case"M":case"L":e=mh(uh.Month,1,1);break;case"MM":case"LL":e=mh(uh.Month,2,1);break;case"MMM":e=_h(lh.Months,Gl.Abbreviated);break;case"MMMM":e=_h(lh.Months,Gl.Wide);break;case"MMMMM":e=_h(lh.Months,Gl.Narrow);break;case"LLL":e=_h(lh.Months,Gl.Abbreviated,Xl.Standalone);break;case"LLLL":e=_h(lh.Months,Gl.Wide,Xl.Standalone);break;case"LLLLL":e=_h(lh.Months,Gl.Narrow,Xl.Standalone);break;case"w":e=wh(1);break;case"ww":e=wh(2);break;case"W":e=wh(1,!0);break;case"d":e=mh(uh.Date,1);break;case"dd":e=mh(uh.Date,2);break;case"c":case"cc":e=mh(uh.Day,1);break;case"ccc":e=_h(lh.Days,Gl.Abbreviated,Xl.Standalone);break;case"cccc":e=_h(lh.Days,Gl.Wide,Xl.Standalone);break;case"ccccc":e=_h(lh.Days,Gl.Narrow,Xl.Standalone);break;case"cccccc":e=_h(lh.Days,Gl.Short,Xl.Standalone);break;case"E":case"EE":case"EEE":e=_h(lh.Days,Gl.Abbreviated);break;case"EEEE":e=_h(lh.Days,Gl.Wide);break;case"EEEEE":e=_h(lh.Days,Gl.Narrow);break;case"EEEEEE":e=_h(lh.Days,Gl.Short);break;case"a":case"aa":case"aaa":e=_h(lh.DayPeriods,Gl.Abbreviated);break;case"aaaa":e=_h(lh.DayPeriods,Gl.Wide);break;case"aaaaa":e=_h(lh.DayPeriods,Gl.Narrow);break;case"b":case"bb":case"bbb":e=_h(lh.DayPeriods,Gl.Abbreviated,Xl.Standalone,!0);break;case"bbbb":e=_h(lh.DayPeriods,Gl.Wide,Xl.Standalone,!0);break;case"bbbbb":e=_h(lh.DayPeriods,Gl.Narrow,Xl.Standalone,!0);break;case"B":case"BB":case"BBB":e=_h(lh.DayPeriods,Gl.Abbreviated,Xl.Format,!0);break;case"BBBB":e=_h(lh.DayPeriods,Gl.Wide,Xl.Format,!0);break;case"BBBBB":e=_h(lh.DayPeriods,Gl.Narrow,Xl.Format,!0);break;case"h":e=mh(uh.Hours,1,-12);break;case"hh":e=mh(uh.Hours,2,-12);break;case"H":e=mh(uh.Hours,1);break;case"HH":e=mh(uh.Hours,2);break;case"m":e=mh(uh.Minutes,1);break;case"mm":e=mh(uh.Minutes,2);break;case"s":e=mh(uh.Seconds,1);break;case"ss":e=mh(uh.Seconds,2);break;case"S":e=mh(uh.FractionalSeconds,1);break;case"SS":e=mh(uh.FractionalSeconds,2);break;case"SSS":e=mh(uh.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=bh(ch.Short);break;case"ZZZZZ":e=bh(ch.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=bh(ch.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=bh(ch.Long);break;default:return null}return Ah[t]=e,e}(t);c+=e?e(s,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function dh(t,e,i){const n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function ph(t,e){const i=function(t){return Oa(t)[Pa.LocaleId]}(t);if(oh[i]=oh[i]||{},oh[i][e])return oh[i][e];let n="";switch(e){case"shortDate":n=Ql(t,$l.Short);break;case"mediumDate":n=Ql(t,$l.Medium);break;case"longDate":n=Ql(t,$l.Long);break;case"fullDate":n=Ql(t,$l.Full);break;case"shortTime":n=Zl(t,$l.Short);break;case"mediumTime":n=Zl(t,$l.Medium);break;case"longTime":n=Zl(t,$l.Long);break;case"fullTime":n=Zl(t,$l.Full);break;case"short":const e=ph(t,"shortTime"),i=ph(t,"shortDate");n=fh(th(t,$l.Short),[e,i]);break;case"medium":const s=ph(t,"mediumTime"),r=ph(t,"mediumDate");n=fh(th(t,$l.Medium),[s,r]);break;case"long":const o=ph(t,"longTime"),a=ph(t,"longDate");n=fh(th(t,$l.Long),[o,a]);break;case"full":const c=ph(t,"fullTime"),u=ph(t,"fullDate");n=fh(th(t,$l.Full),[c,u])}return n&&(oh[i][e]=n),n}function fh(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function gh(t,e,i="-",n,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=i));let o=String(t);for(;o.length0||a>-i)&&(a+=i),t===uh.Hours)0===a&&-12===i&&(a=12);else if(t===uh.FractionalSeconds)return c=e,gh(a,3).substr(0,c);var c;const u=eh(o,Jl.MinusSign);return gh(a,e,u,n,s)}}function _h(t,e,i=Xl.Format,n=!1){return function(s,r){return function(t,e,i,n,s,r){switch(i){case lh.Months:return function(t,e,i){const n=Oa(t),s=nh([n[Pa.MonthsFormat],n[Pa.MonthsStandalone]],e);return nh(s,i)}(e,s,n)[t.getMonth()];case lh.Days:return function(t,e,i){const n=Oa(t),s=nh([n[Pa.DaysFormat],n[Pa.DaysStandalone]],e);return nh(s,i)}(e,s,n)[t.getDay()];case lh.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(r){const t=function(t){const e=Oa(t);return ih(e),(e[Pa.ExtraData][2]||[]).map(t=>"string"==typeof t?sh(t):[sh(t[0]),sh(t[1])])}(e),i=function(t,e,i){const n=Oa(t);ih(n);const s=nh([n[Pa.ExtraData][0],n[Pa.ExtraData][1]],e)||[];return nh(s,i)||[]}(e,s,n),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=o>=e.hours&&a>=e.minutes,s=o0?Math.floor(s/60):Math.ceil(s/60);switch(t){case ch.Short:return(s>=0?"+":"")+gh(o,2,r)+gh(Math.abs(s%60),2,r);case ch.ShortGMT:return"GMT"+(s>=0?"+":"")+gh(o,1,r);case ch.Long:return"GMT"+(s>=0?"+":"")+gh(o,2,r)+":"+gh(Math.abs(s%60),2,r);case ch.Extended:return 0===n?"Z":(s>=0?"+":"")+gh(o,2,r)+":"+gh(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function yh(t){return dh(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function wh(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=yh(i),e=function(t){const e=dh(t,0,1).getDay();return dh(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}return gh(s,t,eh(n,Jl.MinusSign))}}function Mh(t,e=!1){return function(i,n){return gh(yh(i).getFullYear(),t,eh(n,Jl.MinusSign),e)}}const Ah={};function vh(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function Th(t){return t instanceof Date&&!isNaN(t.valueOf())}class kh{}let Sh=(()=>{class t extends kh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return Oa(t)[Pa.PluralCase]}(e||this.locale)(t)){case Vl.Zero:return"zero";case Vl.One:return"one";case Vl.Two:return"two";case Vl.Few:return"few";case Vl.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(un(Bu))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function Ch(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let Eh=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Mo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${it(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Ro(_c),Ro(yc),Ro(Qa),Ro(ec))},t.\u0275dir=Gt({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Lh{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 zh=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new Lh(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new Rh(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const r=new Rh(t,s);e.push(r)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc),Ro(Lc),Ro(_c))},t.\u0275dir=Gt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Rh{constructor(t,e){this.record=t,this.view=e}}let xh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Oh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Dh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Dh("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc),Ro(Lc))},t.\u0275dir=Gt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Oh{constructor(){this.$implicit=null,this.ngIf=null}}function Dh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${it(e)}'.`)}class Ph{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Nh=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new Ph(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc),Ro(Lc),Ro(Nh,9))},t.\u0275dir=Gt({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Bh=(()=>{class t{constructor(t,e,i){i._addDefault(new Ph(t,e))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc),Ro(Lc),Ro(Nh,9))},t.\u0275dir=Gt({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Fh=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(yc),Ro(ec))},t.\u0275dir=Gt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})();function Hh(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${it(t)}'`)}class qh{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class jh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Yh=new jh,Wh=new qh;let Uh=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(qo(e))return Yh;if(jo(e))return Wh;throw Hh(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(Ro(Tc,16))},t.\u0275pipe=$t({name:"async",type:t,pure:!1}),t})(),Kh=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Hh(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"uppercase",type:t,pure:!0}),t})(),Vh=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return hh(e,i,s||this.locale,n)}catch(r){throw Hh(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(Ro(Bu,16))},t.\u0275pipe=$t({name:"date",type:t,pure:!0}),t})(),Xh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[{provide:kh,useClass:Sh}]}),t})();function Gh(t){return"browser"===t}function $h(t){return"server"===t}let Jh=(()=>{class t{}return t.\u0275prov=dt({token:t,providedIn:"root",factory:()=>new Qh(un(Ll),window)}),t})();class Qh{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){const t=n.shadowRoot;if(t){const i=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(i)return i}n=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Zh(this.window.history)||Zh(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Zh(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class td{}class ed extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new ed,Cl||(Cl=t)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(nd=nd||document.querySelector("base"),nd?nd.getAttribute("href"):null);return null==e?null:function(t){id=id||document.createElement("a"),id.setAttribute("href",t);const e=id.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){nd=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ch(document.cookie,t)}}let id,nd=null;const sd=new Ui("TRANSITION_ID"),rd=[{provide:Lu,useFactory:function(t,e,i){return()=>{i.get(zu).donePromise.then(()=>{const i=El();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[sd,Ll,lo],multi:!0}];class od{static init(){var t;t=new od,al=t}addToWindow(t){xt.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},xt.getAllAngularTestabilities=()=>t.getAllTestabilities(),xt.getAllAngularRootElements=()=>t.getAllRootElements(),xt.frameworkStabilizers||(xt.frameworkStabilizers=[]),xt.frameworkStabilizers.push(t=>{const e=xt.getAllAngularTestabilities();let i=e.length,n=!1;const s=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const n=t.getTestability(e);return null!=n?n:i?El().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let ad=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const cd=new Ui("EventManagerPlugins");let ud=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),dd=(()=>{class t extends hd{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,i){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,i.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(pd),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,i)=>{this._addStylesToHost(t,i,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(pd))}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function pd(t){El().remove(t)}const fd={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/"},gd=/%COMP%/g;function md(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let bd=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new yd(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Ct.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new wd(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case Ct.ShadowDom:return new Md(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=md(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(un(ud),un(dd),un(Ru))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class yd{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(fd[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=fd[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=fd[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(ds.DashCase|ds.Important)?t.style.setProperty(e,i,n&ds.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&ds.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,_d(i)):this.eventManager.addEventListener(t,e,_d(i))}}class wd extends yd{constructor(t,e,i,n){super(t),this.component=i;const s=md(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(gd,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(gd,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class Md extends yd{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=md(n.id,n.styles,[]);for(let r=0;r{class t extends ld{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const vd=["alt","control","meta","shift"],Td={"\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"},kd={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"},Sd={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Cd=(()=>{class t extends ld{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,n){const s=t.parseEventName(i),r=t.eventCallback(s.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>El().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let r="";if(vd.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),r+=t+".")}),r+=s,0!=i.length||0===s.length)return null;const o={};return o.domEventName=n,o.fullKey=r,o}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&kd.hasOwnProperty(e)&&(e=kd[e]))}return Td[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),vd.forEach(n=>{n!=i&&(0,Sd[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Ed=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return un(zd)},token:t,providedIn:"root"}),t})();function Ld(t){return new zd(t.get(Ll))}let zd=(()=>{class t extends Ed{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Qn.NONE:return e;case Qn.HTML:return Cn(e,"HTML")?Sn(e):$n(this._doc,String(e)).toString();case Qn.STYLE:return Cn(e,"Style")?Sn(e):e;case Qn.SCRIPT:if(Cn(e,"Script"))return Sn(e);throw new Error("unsafe value used in a script context");case Qn.URL:return En(e),Cn(e,"URL")?Sn(e):On(String(e));case Qn.RESOURCE_URL:if(Cn(e,"ResourceURL"))return Sn(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new Mn(t)}bypassSecurityTrustStyle(t){return new An(t)}bypassSecurityTrustScript(t){return new vn(t)}bypassSecurityTrustUrl(t){return new Tn(t)}bypassSecurityTrustResourceUrl(t){return new kn(t)}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({factory:function(){return Ld(un(Gr))},token:t,providedIn:"root"}),t})();const Rd=pl(Tl,"browser",[{provide:Pu,useValue:"browser"},{provide:Du,useValue:function(){ed.makeCurrent(),od.init()},multi:!0},{provide:Ll,useFactory:function(){return function(t){de=t}(document),document},deps:[]}]),xd=[[],{provide:Jr,useValue:"root"},{provide:as,useFactory:function(){return new as},deps:[]},{provide:cd,useClass:Ad,multi:!0,deps:[Ll,$u,Pu]},{provide:cd,useClass:Cd,multi:!0,deps:[Ll]},[],{provide:bd,useClass:bd,deps:[ud,dd,Ru]},{provide:tc,useExisting:bd},{provide:hd,useExisting:dd},{provide:dd,useClass:dd,deps:[Ll]},{provide:nl,useClass:nl,deps:[$u]},{provide:ud,useClass:ud,deps:[cd,$u]},{provide:td,useClass:ad,deps:[]},[]];let Od=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Ru,useValue:e.appId},{provide:sd,useExisting:Ru},rd]}}}return t.\u0275fac=function(e){return new(e||t)(un(t,12))},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:xd,imports:[Xh,Sl]}),t})();function Dd(...t){let e=t[t.length-1];return k(e)?(t.pop(),B(t,e)):W(t)}function Pd(t,e){return H(t,e,1)}function Nd(t,e){return function(i){return i.lift(new Id(t,e))}}"undefined"!=typeof window&&window;class Id{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Bd(t,this.predicate,this.thisArg))}}class Bd extends f{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class Fd{}class Hd{}class qd{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof qd?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new qd;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof qd?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class jd{encodeKey(t){return Yd(t)}encodeValue(t){return Yd(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Yd(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function Wd(t){return`${t}`}class Ud{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new jd,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[s,r]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],o=i.get(s)||[];o.push(r),i.set(s,o)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Ud({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Wd(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(Wd(t.value));-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class Kd{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function Vd(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Xd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Gd(t){return"undefined"!=typeof FormData&&t instanceof FormData}class $d{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new qd),this.context||(this.context=new Kd),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),u)),new $d(i,n,r,{params:u,headers:c,context:l,reportProgress:a,responseType:s,withCredentials:o})}}var Jd=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class Qd{constructor(t,e=200,i="OK"){this.headers=t.headers||new qd,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Zd extends Qd{constructor(t={}){super(t),this.type=Jd.ResponseHeader}clone(t={}){return new Zd({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class tp extends Qd{constructor(t={}){super(t),this.type=Jd.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new tp({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class ep extends Qd{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function ip(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let np=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof $d)n=t;else{let s,r;s=i.headers instanceof qd?i.headers:new qd(i.headers),i.params&&(r=i.params instanceof Ud?i.params:new Ud({fromObject:i.params})),n=new $d(t,e,void 0!==i.body?i.body:null,{headers:s,context:i.context,params:r,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=Dd(n).pipe(Pd(t=>this.handler.handle(t)));if(t instanceof $d||"events"===i.observe)return s;const r=s.pipe(Nd(t=>t instanceof tp));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe(P(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(P(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(P(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(P(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Ud).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,ip(i,e))}post(t,e,i={}){return this.request("POST",t,ip(i,e))}put(t,e,i={}){return this.request("PUT",t,ip(i,e))}}return t.\u0275fac=function(e){return new(e||t)(un(Fd))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class sp{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const rp=new Ui("HTTP_INTERCEPTORS");let op=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const ap=/^\)\]\}',?\n/;let cp=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new b(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new qd(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new Zd({headers:r,status:e,statusText:n,url:o}),s},o=()=>{let{headers:n,status:s,statusText:o,url:a}=r(),c=null;204!==s&&(c=void 0===i.response?i.responseText:i.response),0===s&&(s=c?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(ap,"");try{c=""!==c?JSON.parse(c):null}catch(l){c=t,u&&(u=!1,c={error:l,text:c})}}u?(e.next(new tp({body:c,headers:n,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new ep({error:c,headers:n,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:n}=r(),s=new ep({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let c=!1;const u=n=>{c||(e.next(r()),c=!0);let s={type:Jd.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},l=t=>{let i={type:Jd.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",o),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",u),null!==n&&i.upload&&i.upload.addEventListener("progress",l)),i.send(n),e.next({type:Jd.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",o),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",u),null!==n&&i.upload&&i.upload.removeEventListener("progress",l)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(un(td))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const up=new Ui("XSRF_COOKIE_NAME"),lp=new Ui("XSRF_HEADER_NAME");class hp{}let dp=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,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=Ch(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(un(Ll),un(Pu),un(up))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),pp=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(un(hp),un(lp))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),fp=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(rp,[]);this.chain=t.reduceRight((t,e)=>new sp(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(un(Hd),un(lo))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),gp=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:pp,useClass:op}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:up,useValue:e.cookieName}:[],e.headerName?{provide:lp,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[pp,{provide:rp,useExisting:pp,multi:!0},{provide:hp,useClass:dp},{provide:up,useValue:"XSRF-TOKEN"},{provide:lp,useValue:"X-XSRF-TOKEN"}]}),t})(),mp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[np,{provide:Fd,useClass:fp},cp,{provide:Hd,useExisting:cp}],imports:[[gp.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();class _p{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const bp=new Ui("basePath");class yp{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}selectHeaderContentType(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let wp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new yp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new _p}convertAttributeToNonunique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}convertAttributeToUnique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("attribute",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAttributeDefinitions(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let n=new Ud({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attributes[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAttributeDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttribute(t,e,i,n,s,r,o,a,c,u,l,h="body",d=!1){let p=new Ud({encoder:this.encoder});null!=t&&(p=p.set("attributeName",t)),null!=e&&(p=p.set("attributeId",e)),null!=i&&(p=p.set("facility",i)),null!=n&&(p=p.set("user",n)),null!=s&&(p=p.set("vo",s)),null!=r&&(p=p.set("resource",r)),null!=o&&(p=p.set("member",o)),null!=a&&(p=p.set("group",a)),null!=c&&(p=p.set("host",c)),null!=u&&(p=p.set("userExtSource",u)),null!=l&&(p=p.set("key",l));let f=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(f=f.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+t)}const g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(f=f.set("Accept",g)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{params:p,withCredentials:this.configuration.withCredentials,headers:f,observe:h,reportProgress:d})}getAttributeDefinitionById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("attributeName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionsByNamespace(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttributeModulesDependenciesForAttributeGraphText(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("format",t)),null!=e&&(s=s.set("attrName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAttributeModulesDependenciesGraphText(t,e="body",i=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("format",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("attributeId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributesDefinitionWithRights(t,e,i,n,s,r,o,a,c="body",u=!1){let l=new Ud({encoder:this.encoder});null!=t&&(l=l.set("member",t)),null!=e&&(l=l.set("user",e)),null!=i&&(l=l.set("vo",i)),null!=n&&(l=l.set("group",n)),null!=s&&(l=l.set("resource",s)),null!=r&&(l=l.set("facility",r)),null!=o&&(l=l.set("host",o)),null!=a&&(l=l.set("userExtSource",a));let h=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(h=h.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(h=h.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;h=h.set("Authorization","Bearer "+t)}const d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(h=h.set("Accept",d)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{params:l,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:u})}getEntitylessAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEntitylessAttributesByKey(t,e="body",i=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("key",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("attrName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesWithKeys(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("attrName",t)),e&&e.forEach(t=>{s=s.append("keys[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEntitylessKeys(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityResourceUserMemberAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("user",i)),null!=n&&(o=o.set("member",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getFacilityUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getGroupResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getGroupResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getHostAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getHostAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getLogins(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAndUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberAndUserAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberGroupAndUserAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)}),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getMemberGroupAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberGroupAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberGroupAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)}),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getMemberResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacilityService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesFacilityServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let s=new Ud({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesGroupResourceService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("group",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRequiredAttributesHostService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("host",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesMemberGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRequiredAttributesMemberGroupResourceService(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new Ud({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("group",i)),null!=n&&(a=a.set("member",n)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}getRequiredAttributesMemberGroupService(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("member",i)),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRequiredAttributesMemberResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRequiredAttributesMemberResourceService(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("member",i)),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRequiredAttributesResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesResourceService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesResourceServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let s=new Ud({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesUserFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesVoService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceGroupAndGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithGroupAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getResourceGroupAndGroupAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)}),null!=n&&(o=o.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getResourceGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceGroupMemberAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("member",i)),n&&n.forEach(t=>{o=o.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getUserAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserExtSourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserExtSourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserFacilityAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getUserFacilityAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getUserFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeAttributesForFacilityResourceGroupUserMember(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new Ud({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=n&&(c=c.set("user",n)),null!=s&&(c=c.set("member",s)),r&&r.forEach(t=>{c=c.append("attributes[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}removeAttributesForFacilityResourceUserMember(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new Ud({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=n&&(a=a.set("member",n)),s&&s.forEach(t=>{a=a.append("attributes[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}removeEntitylessAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeGroupResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeGroupResourceAttributesWorkWithGroupAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)}),null!=n&&(o=o.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeHostAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeHostAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMemberAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMemberAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMemberAttributesWorkWithUserAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attributes[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberGroupAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberGroupAttributesWorkWithUserAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)}),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeMemberResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeResourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUesAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserExtSourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserFacilityAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeVoAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setEntitylessAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceGroupUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAndUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupWithGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(un(np),un(bp,8),un(yp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Mp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new yp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new _p}getAllPolicies(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRolesManagementRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuthzAdminGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("role",t)),null!=e&&(r=r.set("complementaryObjectId",e)),null!=i&&(r=r.set("complementaryObjectName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAuthzRichAdmins(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new Ud({encoder:this.encoder});null!=t&&(c=c.set("role",t)),null!=e&&(c=c.set("complementaryObjectId",e)),null!=i&&(c=c.set("complementaryObjectName",i)),n&&n.forEach(t=>{c=c.append("specificAttributes",t)}),null!=s&&(c=c.set("allUserAttributes",s)),null!=r&&(c=c.set("onlyDirectAdmins",r));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}getFacilitiesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new Ud({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("groupId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new Ud({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getLoggedUser(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMembersWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new Ud({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getPerunPrincipal(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPrincipalRoleNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new Ud({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSecurityTeamsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new Ud({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("userId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new Ud({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}isFacilityAdmin(t,e="body",i=!1){let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isGroupAdmin(t,e="body",i=!1){let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isPerunAdmin(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isVoAdmin(t,e="body",i=!1){let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}keepAlive(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}loadAuthorizationComponents(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}setRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(un(np),un(bp,8),un(yp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ap=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new yp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new _p}addMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");let s=new Ud({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}canExtendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createGroupWithParentGroupNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("parentGroup",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}createGroupWithVoNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}deleteGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroups.");if(null==e)throw new Error("Required parameter forceDelete was null or undefined when calling deleteGroups.");let s=new Ud({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("forceDelete",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroups`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}extendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}forceAllSubGroupsSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupStructureSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllRichSubGroupsWithGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("name",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupMemberById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByGroupStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByVoStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRichMembersByIds(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("members[]",t)}),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getGroupUnions(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("reverseDirection",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let n=new Ud({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getIndirectMembershipPaths(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRichGroupByIdWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("groupId",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}isGroupMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}moveGroupWithDestinationGroupMovingGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new Ud({encoder:this.encoder});null!=e&&(s=s.set("destinationGroup",e)),null!=t&&(s=s.set("movingGroup",t));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");let s=new Ud({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setGroupsMemberStatus(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("status",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}updateGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(un(np),un(bp,8),un(yp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new yp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new _p}canExtendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createMemberForCandidate(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberFromExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSpecificMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembersFromCSV(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let n=new Ud({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("members[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}extendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findCompleteRichMembersByAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let r=new Ud({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("attrsNames[]",t)}),null!=e&&(r=r.set("searchString",e)),i&&i.forEach(t=>{r=r.append("allowedStatuses[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}findCompleteRichMembersForGroup(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new Ud({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(t=>{c=c.append("attrsNames[]",t)}),s&&s.forEach(t=>{c=c.append("allowedStatuses[]",t)}),r&&r.forEach(t=>{c=c.append("allowedGroupStatuses[]",t)}),null!=i&&(c=c.set("searchString",i)),null!=n&&(c=c.set("lookingInParentGroup",n));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}findCompleteRichMembersForVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrsNames[]",t)}),n&&n.forEach(t=>{o=o.append("allowedStatuses[]",t)}),null!=i&&(o=o.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}findMembersInVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findSponsoredCompleteRichMembersForVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrsNames[]",t)}),null!=i&&(o=o.set("searchString",i)),null!=n&&(o=o.set("onlySponsored",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllNamespacesRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getCompleteRichMembersForGroup(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new Ud({encoder:this.encoder});null!=t&&(a=a.set("group",t)),i&&i.forEach(t=>{a=a.append("allowedStatuses[]",t)}),n&&n.forEach(t=>{a=a.append("allowedGroupStatuses[]",t)}),null!=e&&(a=a.set("lookingInParentGroup",e)),s&&s.forEach(t=>{a=a.append("attrsNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}getCompleteRichMembersForGroupResource(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attrsNames[]",t)}),n&&n.forEach(t=>{o=o.append("allowedStatuses[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getCompleteRichMembersForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("allowedStatuses[]",t)}),i&&i.forEach(t=>{r=r.append("attrsNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberByExtSourceNameAndExtLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extLogin",e)),null!=i&&(r=r.set("extSourceName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberByUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMembersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let n=new Ud({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getMembersWithStatusCount(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRichMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMemberWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMembersByIds(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new Ud({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)}),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsorsByMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsorsByVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extSourceName",e)),null!=i&&(o=o.set("extLogin",i)),n&&n.forEach(t=>{o=o.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}moveMembership(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("sourceUser",e)),null!=i&&(r=r.set("targetUser",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeSponsor(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("sponsor",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sendAccountActivationLinkEmail(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("emailAttributeURN",i)),null!=n&&(o=o.set("language",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sendPasswordResetLinkEmail(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("emailAttributeURN",i)),null!=n&&(o=o.set("language",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}setSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSponsorshipForMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("sponsoredMember",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}setStatus(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sponsorMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}updateSponsorshipValidity(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}validateMemberAsync(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(un(np),un(bp,8),un(yp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Tp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new yp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new _p}sentMessageToRTWithMemberQueue(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("memberId",t)),null!=e&&(o=o.set("queue",e)),null!=i&&(o=o.set("subject",i)),null!=n&&(o=o.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sentMessageToRTWithQueue(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("queue",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}sentMessageToRTWithVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("voId",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}sentMessageToRTWithVoQueue(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("voId",t)),null!=e&&(o=o.set("queue",e)),null!=i&&(o=o.set("subject",i)),null!=n&&(o=o.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}}return t.\u0275fac=function(e){return new(e||t)(un(np),un(bp,8),un(yp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),kp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new yp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new _p}addApplicationMailForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addApplicationMailForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let n=new Ud({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}approveApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}consolidateIdentityUsingToken(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}copyFormFromGroupToGroup(t,e,i="body",n=!1){let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyFormFromGroupToVo(t,e,i="body",n=!1){let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyFormFromVoToGroup(t,e,i="body",n=!1){let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyFormFromVoToVo(t,e,i="body",n=!1){let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromGroupToGroup(t,e,i="body",n=!1){let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromGroupToVo(t,e,i="body",n=!1){let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromVoToGroup(t,e,i="body",n=!1){let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromVoToVo(t,e,i="body",n=!1){let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createApplicationFormInGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createApplicationFormInVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplicationMailForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteApplicationMailForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteGroupsFromAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let n=new Ud({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationDataById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationsForGroup(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("state[]",t)}),null!=i&&(o=o.set("dateFrom",i)),null!=n&&(o=o.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getApplicationsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getApplicationsForVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("state[]",t)}),null!=i&&(o=o.set("dateFrom",i)),null!=n&&(o=o.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getConsolidatorToken(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForGroupWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForVoWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}rejectApplication(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("id",t)),null!=e&&(s=s.set("reason",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sendInvitation(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let o=new Ud({encoder:this.encoder});null!=i&&(o=o.set("voId",i)),null!=n&&(o=o.set("name",n)),null!=t&&(o=o.set("email",t)),null!=e&&(o=o.set("language",e));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sendInvitationForGroup(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new Ud({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=n&&(a=a.set("groupId",n)),null!=s&&(a=a.set("name",s)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}sendInvitationGroupToExistingUser(t,e,i,n="body",s=!1){let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("userId",t)),null!=e&&(r=r.set("voId",e)),null!=i&&(r=r.set("groupId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}sendInvitationToExistingUser(t,e,i="body",n=!1){let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("userId",t)),null!=e&&(s=s.set("voId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sendMessage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSendingEnabled(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}submitApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateApplicationMail(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}verifyApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(un(np),un(bp,8),un(yp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new yp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new _p}activateGroupResourceAssignment(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}addAdminToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addAdminToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}allowGroupsToResources(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let r=new Ud({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("groups[]",t)}),e&&e.forEach(t=>{r=r.append("resources[]",t)}),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}assignGroupToResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}assignGroupToResources(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("resources[]",t)}),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}assignGroupsToResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let r=new Ud({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("groups[]",t)}),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}assignResourceTagToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}assignService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResource(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("name",i)),null!=n&&(o=o.set("description",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}createResourceTagWithResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResourceTagWithTagName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("tagName",t)),null!=e&&(s=s.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deactivateGroupResourceAssignment(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteAllResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAdmins(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllResourcesByResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllResourcesTagsForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedUsersOfResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAssignedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMemberService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAssignedServicesToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedResourceById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("id",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEnrichedResourcesForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEnrichedResourcesForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("name",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let n=new Ud({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesCountForAll(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesCountForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesFromVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourcesWhereGroupIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("group",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getResourcesWhereUserIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("user",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRichAdmins(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("specificAttributes",t)}),null!=i&&(o=o.set("allUserAttributes",i)),null!=n&&(o=o.set("onlyDirectAdmins",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRichResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let n=new Ud({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeAllResourceTagsFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeBanByMemberAndResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupsFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let s=new Ud({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceTagFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unallowGroupsFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let s=new Ud({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),e&&e.forEach(t=>{s=s.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}updateResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(un(np),un(bp,8),un(yp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Cp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new yp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new _p}addSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addUserExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}changeNonAuthzPasswordByToken(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("token",t)),null!=e&&(r=r.set("password",e)),null!=i&&(r=r.set("lang",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}changePasswordForLogin(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let a=new Ud({encoder:this.encoder});null!=t&&(a=a.set("login",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}changePasswordForUser(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let a=new Ud({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}checkPasswordResetRequestByTokenIsValid(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkPasswordStrength(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("password",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createAlternativePassword(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("description",e)),null!=i&&(o=o.set("loginNamespace",i)),null!=n&&(o=o.set("password",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}createServiceUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAlternativePassword(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("loginNamespace",e)),null!=i&&(r=r.set("passwordId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}deletePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deletePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findRichUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findRichUsersWithAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("searchString",t)),e&&e.forEach(t=>{s=s.append("attrsNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsForFacilityWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsForResourceWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsInVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getPendingPreferredEmailChanges(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let n=new Ud({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithAttributesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let n=new Ud({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithoutVoWithAttributes(t,e="body",i=!1){let n=new Ud({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrsNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSpecificUsersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsorsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsorsForMemberByVoAndLogin(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let o=new Ud({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extSourceName",e)),null!=i&&(o=o.set("extLogin",i)),n&&n.forEach(t=>{o=o.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getUserByExtSourceNameAndExtLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("extLogin",t)),null!=e&&(s=s.set("extSourceName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let n=new Ud({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let n=new Ud({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersBySpecificUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("specificUser",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isLoginAvailable(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("loginNamespace",t)),null!=e&&(s=s.set("login",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}loginExist(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserExtSource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("userExtSource",e)),null!=i&&(r=r.set("force",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}requestPreferredEmailChange(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let c=new Ud({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("email",e)),null!=i&&(c=c.set("lang",i)),null!=n&&(c=c.set("linkPath",n)),null!=s&&(c=c.set("customUrl",s)),null!=r&&(c=c.set("idpFilter",r));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}reservePasswordForLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}reservePasswordForUser(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}reserveRandomPassword(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}updateUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}validatePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}validatePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}validatePreferredEmailChangeWithToken(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("token",t)),null!=e&&(s=s.set("u",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(un(np),un(bp,8),un(yp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ep=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new yp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new _p}getAppsConfig(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGuiConfiguration(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunRPCVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatistics(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatus(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunSystemTimeInMillis(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(un(np),un(bp,8),un(yp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Lp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new qd,this.configuration=new yp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new _p}addSponsorRoleToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addSponsorRoleToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createVoWithName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("shortName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createVoWithVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findCandidates(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("id",t)),null!=e&&(r=r.set("searchString",e)),null!=i&&(r=r.set("maxNumOfResults",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}findCandidatesForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getCompleteCandidatesForGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getCompleteCandidatesForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMyVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRichAdminsForVo(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new Ud({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("role",e)),i&&i.forEach(t=>{a=a.append("specificAttributes",t)}),null!=n&&(a=a.set("allUserAttributes",n)),null!=s&&(a=a.set("onlyDirectAdmins",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}getVoAdminGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("role",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAdminUsers(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let r=new Ud({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("role",e)),null!=i&&(r=r.set("onlyDirectAdmins",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getVoBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBansForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoByShortName(t,e="body",i=!1){let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("shortName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoMembersCountsByStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let n=new Ud({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeSponsorRoleFromGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeSponsorRoleFromUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new Ud({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let n=new Ud({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(un(np),un(bp,8),un(yp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var zp,Rp,xp,Op;!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(zp||(zp={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(Rp||(Rp={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(xp||(xp={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(Op||(Op={}));var Dp=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({});let Pp=(()=>{class t{constructor(t){this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(t){this.principal=t,this.initData(t)}setPerunPolicies(t){this.perunPolicies=t}getPerunPolicies(){return this.perunPolicies}isAuthorized(t,e){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(t);let n=[];for(const r of i)n=n.concat(r.perunRoles);const s=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,s)}resolveAuthorization(t,e){for(const i of t){let t=!0;for(const n of Object.keys(i)){const s=i[n];if(null===s)this.principalRoles.has(n)||(t=!1);else if(e[s]){for(const i of e[s])if(!this.principalHasRole(n,s,i)){t=!1;break}}else t=!1;if(!t)break}if(t)return!0}return!1}fetchAllRelatedObjects(t){const e={};for(const i of t){let t=i.beanName;switch(i.beanName.startsWith("Rich")&&(t=i.beanName.substring(4)),e[t]?e[t].push(i.id):e[t]=[i.id],t){case"Member":e.User?e.User.push(i.userId):e.User=[i.userId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Group":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Resource":e.Facility?e.Facility.push(i.facilityId):e.Facility=[i.facilityId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"ResourceTag":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId]}}return e}principalHasRole(t,e,i){let n=e;return e.startsWith("Rich")&&(n=e.substring(4)),!(!this.principal.roles[t]||!this.principal.roles[t][n])&&this.principal.roles[t][n].includes(Number(i.toString()))}fetchPolicyWithAllIncludedPolicies(t){const e=new Map;let i=[];for(i.push(t);0!==i.length;){const n=i.shift();if(e.has(n)){console.log("Policy {} creates a cycle in the included policies of the policy {}",n,t);continue}const s=this.getPerunPolicy(n);if(!s)return[];e.set(n,s),i=i.concat(s.includePolicies)}const n=[];for(const s of e.values())n.push(s);return n}getPerunPolicy(t){for(const e of this.perunPolicies)if(e.policyName===t)return e;return console.log("policy with name"+t+"was not found"),null}canManageFacilities(){return this.hasAtLeastOne(Dp.PERUNADMIN,Dp.PERUNOBSERVER,Dp.FACILITYADMIN,Dp.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(Dp.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(Dp.PERUNADMIN,Dp.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(Dp.PERUNADMIN,Dp.VOADMIN)}isThisVoAdminOrObserver(t){return this.editableVos.includes(t)||this.observableVos.includes(t)||this.hasAtLeastOne(Dp.PERUNADMIN,Dp.PERUNOBSERVER)}isThisVoAdmin(t){return this.editableVos.includes(t)||this.principalRoles.has(Dp.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(Dp.PERUNADMIN,Dp.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(Dp.SPONSOR)}isThisGroupAdmin(t){return this.editableGroups.includes(t)||this.principalRoles.has(Dp.PERUNADMIN)}isGroupAdminInThisVo(t){return this.hasGroupInTheseVos.includes(t)}isFacilityAdmin(){return this.hasAtLeastOne(Dp.PERUNADMIN,Dp.FACILITYADMIN)}isThisFacilityAdmin(t){return this.editableFacilities.includes(t)||this.principalRoles.has(Dp.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(Dp.PERUNADMIN,Dp.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(Dp.PERUNADMIN,Dp.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(Dp.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(Dp.PERUNADMIN,Dp.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(Dp.PERUNADMIN,Dp.VOOBSERVER,Dp.PERUNOBSERVER)}isThisVoObserver(t){return this.hasAtLeastOne(Dp.PERUNADMIN,Dp.PERUNOBSERVER)||this.observableVos.includes(t)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((t,e)=>{this.authzSevice.getAllRolesManagementRules().subscribe(e=>{this.allRolesManagementRules=e,t()},t=>e(t))})}assignAvailableRoles(t,e){this.allRolesManagementRules.forEach(i=>{i.primaryObject===e&&t.push(i.roleName)}),t.sort(),"Vo"===e&&this.voCustomSort(t)}isManagerPagePrivileged(t){const e=[];let i=t.beanName;i.startsWith("Rich")&&(i=i.substr(4)),this.assignAvailableRoles(e,i);const n=new Map;this.getRolesAuthorization(e,t,n);for(const s of n.values())if(s.readAuth||s.manageAuth)return!0;return!1}getRolesAuthorization(t,e,i){for(const n of t){let t=[],s=[],r=[];for(const e of this.allRolesManagementRules)if(e.roleName===n){t=t.concat(e.privilegedRolesToRead),s=s.concat(e.privilegedRolesToManage);for(const t of Object.keys(e.entitiesToManage))r="User"===t?[t].concat(r):r.concat(t);break}const o=this.fetchAllRelatedObjects([e]),a=this.resolveAuthorization(t,o),c=this.resolveAuthorization(s,o);i.set(n,{readAuth:a,manageAuth:c,modes:r})}}voCustomSort(t){for(let e=0;e{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Yp(...t){return Y(1)(Dd(...t))}const Wp=new b(t=>t.complete());function Up(t){return t?function(t){return new b(e=>t.schedule(()=>e.complete()))}(t):Wp}function Kp(t){return new b(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?F(i):Up()).subscribe(e)})}function Vp(t,e){return"function"==typeof e?i=>i.pipe(Vp((i,n)=>F(t(i,n)).pipe(P((t,s)=>e(i,t,n,s))))):e=>e.lift(new Xp(t))}class Xp{constructor(t){this.project=t}call(t,e){return e.subscribe(new Gp(t,this.project))}}class Gp extends D{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const s=new S(this,e,i),r=this.destination;r.add(s),this.innerSubscription=O(this,t,void 0,void 0,s),this.innerSubscription!==s&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}const $p=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Jp(t){return e=>0===t?Up():e.lift(new Qp(t))}class Qp{constructor(t){if(this.total=t,this.total<0)throw new $p}call(t,e){return e.subscribe(new Zp(t,this.total))}}class Zp extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function tf(...t){const e=t[t.length-1];return k(e)?(t.pop(),i=>Yp(t,i,e)):e=>Yp(t,e)}function ef(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new nf(t,e,i))}}class nf{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new sf(t,this.accumulator,this.seed,this.hasSeed))}}class sf extends f{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}function rf(t){return function(e){const i=new of(t),n=e.lift(i);return i.caught=n}}class of{constructor(t){this.selector=t}call(t,e){return e.subscribe(new af(t,this.selector,this.caught))}}class af extends D{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new S(this,void 0,void 0);this.add(n);const s=O(this,i,void 0,void 0,n);s!==n&&this.add(s)}}}function cf(t){return function(e){return 0===t?Up():e.lift(new uf(t))}}class uf{constructor(t){if(this.total=t,this.total<0)throw new $p}call(t,e){return e.subscribe(new lf(t,this.total))}}class lf extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;se.lift(new df(t))}class df{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new pf(t,this.errorFactory))}}class pf extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function ff(){return new jp}function gf(t=null){return e=>e.lift(new mf(t))}class mf{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new _f(t,this.defaultValue))}}class _f extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function bf(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Nd((e,i)=>t(e,i,n)):_,Jp(1),i?gf(e):hf(()=>new jp))}function yf(){}function wf(t,e,i){return function(n){return n.lift(new Mf(t,e,i))}}class Mf{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new Af(t,this.nextOrObserver,this.error,this.complete))}}class Af extends f{constructor(t,e,i,s){super(t),this._tapNext=yf,this._tapError=yf,this._tapComplete=yf,this._tapError=i||yf,this._tapComplete=s||yf,n(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||yf,this._tapError=e.error||yf,this._tapComplete=e.complete||yf)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function vf(t){return e=>e.lift(new Tf(t))}class Tf{constructor(t){this.callback=t}call(t,e){return e.subscribe(new kf(t,this.callback))}}class kf extends f{constructor(t,e){super(t),this.add(new h(e))}}class Sf{constructor(t,e){this.id=t,this.url=e}}class Cf extends Sf{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ef extends Sf{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Lf extends Sf{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class zf extends Sf{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Rf extends Sf{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xf extends Sf{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Of extends Sf{constructor(t,e,i,n,s){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Df extends Sf{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pf extends Sf{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nf{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class If{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Bf{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ff{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hf{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qf{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jf{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Yf{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Wf(t){return new Yf(t)}function Uf(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Kf(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function Gf(t){return Array.prototype.concat.apply([],t)}function $f(t){return t.length>0?t[t.length-1]:null}function Jf(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function Qf(t){return Yo(t)?t:qo(t)?F(Promise.resolve(t)):Dd(t)}const Zf={exact:function t(e,i,n){if(!cg(e.segments,i.segments))return!1;if(!sg(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const s in i.children){if(!e.children[s])return!1;if(!t(e.children[s],i.children[s],n))return!1}return!0},subset:ig},tg={exact:function(t,e){return Vf(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>Xf(t[i],e[i]))},ignored:()=>!0};function eg(t,e,i){return Zf[i.paths](t.root,e.root,i.matrixParams)&&tg[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function ig(t,e,i){return ng(t,e,e.segments,i)}function ng(t,e,i,n){if(t.segments.length>i.length){const s=t.segments.slice(0,i.length);return!!cg(s,i)&&!e.hasChildren()&&!!sg(s,i,n)}if(t.segments.length===i.length){if(!cg(t.segments,i))return!1;if(!sg(t.segments,i,n))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!ig(t.children[i],e.children[i],n))return!1}return!0}{const s=i.slice(0,t.segments.length),r=i.slice(t.segments.length);return!!cg(t.segments,s)&&!!sg(t.segments,s,n)&&!!t.children.primary&&ng(t.children.primary,e,r,n)}}function sg(t,e,i){return e.every((e,n)=>tg[i](t[n].parameters,e.parameters))}class rg{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Wf(this.queryParams)),this._queryParamMap}toString(){return hg.serialize(this)}}class og{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Jf(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return dg(this)}}class ag{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Wf(this.parameters)),this._parameterMap}toString(){return yg(this)}}function cg(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class ug{}class lg{parse(t){const e=new Tg(t);return new rg(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${pg(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${gg(e)}=${gg(t)}`).join("&"):`${gg(e)}=${gg(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const hg=new lg;function dg(t){return t.segments.map(t=>yg(t)).join("/")}function pg(t,e){if(!t.hasChildren())return dg(t);if(e){const e=t.children.primary?pg(t.children.primary,!1):"",i=[];return Jf(t.children,(t,e)=>{"primary"!==e&&i.push(`${e}:${pg(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return Jf(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),Jf(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>"primary"===i?[pg(t.children.primary,!1)]:[`${i}:${pg(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${dg(t)}/${e[0]}`:`${dg(t)}/(${e.join("//")})`}}function fg(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function gg(t){return fg(t).replace(/%3B/gi,";")}function mg(t){return fg(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function _g(t){return decodeURIComponent(t)}function bg(t){return _g(t.replace(/\+/g,"%20"))}function yg(t){return`${mg(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${mg(t)}=${mg(e[t])}`).join("")}`;var e}const wg=/^[^\/()?;=#]+/;function Mg(t){const e=t.match(wg);return e?e[0]:""}const Ag=/^[^=?&#]+/,vg=/^[^?&#]+/;class Tg{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new og([],{}):new og([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new og(t,e)),i}parseSegment(){const t=Mg(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new ag(_g(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Mg(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Mg(this.remaining);t&&(i=t,this.capture(i))}t[_g(e)]=_g(i)}parseQueryParam(t){const e=function(t){const e=t.match(Ag);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(vg);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=bg(e),s=bg(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Mg(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new og([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class kg{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Sg(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Sg(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Cg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Cg(t,this._root).map(t=>t.value)}}function Sg(t,e){if(t===e.value)return e;for(const i of e.children){const e=Sg(t,i);if(e)return e}return null}function Cg(t,e){if(t===e.value)return[e];for(const i of e.children){const n=Cg(t,i);if(n.length)return n.unshift(e),n}return[]}class Eg{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Lg(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class zg extends kg{constructor(t,e){super(t),this.snapshot=e,Ng(this,t)}toString(){return this.snapshot.toString()}}function Rg(t,e){const i=function(t,e){const i=new Dg([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Pg("",new Eg(i,[]))}(t,e),n=new Ip([new ag("",{})]),s=new Ip({}),r=new Ip({}),o=new Ip({}),a=new Ip(""),c=new xg(n,s,o,a,r,"primary",e,i.root);return c.snapshot=i.root,new zg(new Eg(c,[]),i)}class xg{constructor(t,e,i,n,s,r,o,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=o,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(P(t=>Wf(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(P(t=>Wf(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Og(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Dg{constructor(t,e,i,n,s,r,o,a,c,u,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}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=Wf(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Wf(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Pg extends kg{constructor(t,e){super(e),this.url=t,Ng(this,e)}toString(){return Ig(this._root)}}function Ng(t,e){e.value._routerState=t,e.children.forEach(e=>Ng(t,e))}function Ig(t){const e=t.children.length>0?` { ${t.children.map(Ig).join(", ")} } `:"";return`${t.value}${e}`}function Bg(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Vf(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),Vf(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iVf(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Fg(t.parent,e.parent))}function Hg(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return Hg(t,e,n);return Hg(t,e)})}(t,e,i);return new Eg(n,s)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const t=i.route;return qg(e,t),t}}const i=new xg(new Ip((n=e.value).url),new Ip(n.params),new Ip(n.queryParams),new Ip(n.fragment),new Ip(n.data),n.outlet,n.component,n),s=e.children.map(e=>Hg(t,e));return new Eg(i,s)}var n}function qg(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new rg(i.root===t?e:Ug(i.root,t,e),r,s)}function Ug(t,e,i){const n={};return Jf(t.children,(t,s)=>{n[s]=t===e?i:Ug(t,e,i)}),new og(t.segments,n)}class Kg{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&jg(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(Yg);if(n&&n!==$f(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Vg{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function Xg(t,e,i){if(t||(t=new og([],{})),0===t.segments.length&&t.hasChildren())return Gg(t,e,i);const n=function(t,e,i){let n=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return r;const e=t.segments[s],o=i[n];if(Yg(o))break;const a=`${o}`,c=n0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!Zg(a,c,e))return r;n+=2}else{if(!Zg(a,{},e))return r;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=Xg(t.children[n],e,i))}),Jf(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new og(t.segments,s)}}function $g(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=$g(new og([],{}),0,t))}),e}function Qg(t){const e={};return Jf(t,(t,i)=>e[i]=`${t}`),e}function Zg(t,e,i){return t==i.path&&Vf(e,i.parameters)}class tm{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Bg(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=Lg(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),Jf(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,s=Lg(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const n=Lg(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new qf(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Ff(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(Bg(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),em(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function em(t){Bg(t.value),t.children.forEach(em)}class im{constructor(t,e){this.routes=t,this.module=e}}function nm(t){return"function"==typeof t}function sm(t){return t instanceof rg}const rm=Symbol("INITIAL_VALUE");function om(){return Vp(t=>Fp(t.map(t=>t.pipe(Jp(1),tf(rm)))).pipe(ef((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==rm)return t;if(n===rm&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||sm(n))return n}return t},t)},rm),Nd(t=>t!==rm),P(t=>sm(t)?t:!0===t),Jp(1)))}let am=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&No(0,"router-outlet")},directives:function(){return[s_]},encapsulation:2}),t})();function cm(t,e=""){for(let i=0;idm(t)===e);return i.push(...t.filter(t=>dm(t)!==e)),i}const fm={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function gm(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},fm):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||Kf)(i,t,e);if(!s)return Object.assign({},fm);const r={};Jf(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function mm(t,e,i,n,s="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>_m(t,e,i)&&"primary"!==dm(i))}(t,i,n)){const s=new og(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const r of i)if(""===r.path&&"primary"!==dm(r)){const i=new og([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[dm(r)]=i}return s}(t,e,n,new og(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>_m(t,e,i))}(t,i,n)){const r=new og(t.segments,function(t,e,i,n,s,r){const o={};for(const a of n)if(_m(t,i,a)&&!s[dm(a)]){const i=new og([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[dm(a)]=i}return Object.assign(Object.assign({},s),o)}(t,e,i,n,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}const r=new og(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}function _m(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function bm(t,e,i,n){return!!(dm(t)===n||"primary"!==n&&_m(e,i,t))&&("**"===t.path||gm(e,t,i).matched)}function ym(t,e,i){return 0===e.length&&!t.children[i]}class wm{constructor(t){this.segmentGroup=t||null}}class Mm{constructor(t){this.urlTree=t}}function Am(t){return new b(e=>e.error(new wm(t)))}function vm(t){return new b(e=>e.error(new Mm(t)))}function Tm(t){return new b(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class km{constructor(t,e,i,n,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Oc)}apply(){const t=mm(this.urlTree.root,[],[],this.config).segmentGroup,e=new og(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,"primary").pipe(P(t=>this.createUrlTree(Sm(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(rf(t=>{if(t instanceof Mm)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof wm)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(P(e=>this.createUrlTree(Sm(e),t.queryParams,t.fragment))).pipe(rf(t=>{if(t instanceof wm)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new og([],{primary:t}):t;return new rg(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(P(t=>new og([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const s of Object.keys(i.children))"primary"===s?n.unshift(s):n.push(s);return F(n).pipe(Pd(n=>{const s=i.children[n],r=pm(e,n);return this.expandSegmentGroup(t,r,s,n).pipe(P(t=>({segment:t,outlet:n})))}),ef((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Nd((e,i)=>t(e,i,n)):_,cf(1),i?gf(e):hf(()=>new jp))}())}expandSegment(t,e,i,n,s,r){return F(i).pipe(Pd(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,s,r).pipe(rf(t=>{if(t instanceof wm)return Dd(null);throw t}))),bf(t=>!!t),rf((t,i)=>{if(t instanceof jp||"EmptyError"===t.name){if(ym(e,n,s))return Dd(new og([],{}));throw new wm(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,s,r,o){return bm(n,e,s,r)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r):Am(e):Am(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?vm(s):this.lineralizeSegments(i,s).pipe(H(i=>{const s=new og(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:u}=gm(e,n,s);if(!o)return Am(e);const l=this.applyRedirectCommands(a,n.redirectTo,u);return n.redirectTo.startsWith("/")?vm(l):this.lineralizeSegments(n,l).pipe(H(n=>this.expandSegment(t,e,i,n.concat(s.slice(c)),r,!1)))}matchSegmentAgainstRoute(t,e,i,n,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?Dd(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(P(t=>(i._loadedConfig=t,new og(n,{})))):Dd(new og(n,{}));const{matched:r,consumedSegments:o,lastChild:a}=gm(e,i,n);if(!r)return Am(e);const c=n.slice(a);return this.getChildConfig(t,i,n).pipe(H(t=>{const n=t.module,r=t.routes,{segmentGroup:a,slicedSegments:u}=mm(e,o,c,r),l=new og(a.segments,a.children);if(0===u.length&&l.hasChildren())return this.expandChildren(n,r,l).pipe(P(t=>new og(o,t)));if(0===r.length&&0===u.length)return Dd(new og(o,{}));const h=dm(i)===s;return this.expandSegment(n,l,r,u,h?"primary":s,!0).pipe(P(t=>new og(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Dd(new im(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Dd(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(H(i=>i?this.configLoader.load(t.injector,e).pipe(P(t=>(e._loadedConfig=t,t))):function(t){return new b(e=>e.error(Uf(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Dd(new im([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;return n&&0!==n.length?Dd(n.map(n=>{const s=t.get(n);let r;if(function(t){return t&&nm(t.canLoad)}(s))r=s.canLoad(e,i);else{if(!nm(s))throw new Error("Invalid CanLoad guard");r=s(e,i)}return Qf(r)})).pipe(om(),wf(t=>{if(!sm(t))return;const e=Uf(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),P(t=>!0===t)):Dd(!0)}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Dd(i);if(n.numberOfChildren>1||!n.children.primary)return Tm(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new rg(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Jf(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let r={};return Jf(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,i,n)}),new og(s,r)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function Sm(t){const e={};for(const i of Object.keys(t.children)){const n=Sm(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new og(t.segments.concat(e.segments),e.children)}return t}(new og(t.segments,e))}class Cm{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Em{constructor(t,e){this.component=t,this.route=e}}function Lm(t,e,i){const n=t._root;return Rm(n,e?e._root:null,i,[n.value])}function zm(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Rm(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=Lg(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!cg(t.url,e.url);case"pathParamsOrQueryParamsChange":return!cg(t.url,e.url)||!Vf(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fg(t,e)||!Vf(t.queryParams,e.queryParams);case"paramsChange":default:return!Fg(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new Cm(n)):(r.data=o.data,r._resolvedData=o._resolvedData),Rm(t,e,r.component?a?a.children:null:i,n,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Em(a.outlet.component,o))}else o&&xm(e,a,s),s.canActivateChecks.push(new Cm(n)),Rm(t,null,r.component?a?a.children:null:i,n,s)}(t,r[t.value.outlet],i,n.concat([t.value]),s),delete r[t.value.outlet]}),Jf(r,(t,e)=>xm(t,i.getContext(e),s)),s}function xm(t,e,i){const n=Lg(t),s=t.value;Jf(n,(t,n)=>{xm(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Em(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Om{}function Dm(t){return new b(e=>e.error(t))}class Pm{constructor(t,e,i,n,s,r){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=mm(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;const i=new Dg([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Eg(i,e),s=new Pg(this.url,n);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=Og(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const n=e.children[s],r=pm(t,s),o=this.processSegmentGroup(r,n,s);if(null===o)return null;i.push(...o)}const n=Im(i);return n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,i,n);if(null!==t)return t}return ym(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!bm(t,e,i,n))return null;let s,r=[],o=[];if("**"===t.path){const n=i.length>0?$f(i).parameters:{};s=new Dg(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Hm(t),dm(t),t.component,t,Bm(e),Fm(e)+i.length,qm(t))}else{const n=gm(e,t,i);if(!n.matched)return null;r=n.consumedSegments,o=i.slice(n.lastChild),s=new Dg(r,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Hm(t),dm(t),t.component,t,Bm(e),Fm(e)+r.length,qm(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=mm(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new Eg(s,t)]}if(0===a.length&&0===u.length)return[new Eg(s,[])];const l=dm(t)===n,h=this.processSegment(a,c,u,l?"primary":n);return null===h?null:[new Eg(s,h)]}}function Nm(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Im(t){const e=[],i=new Set;for(const n of t){if(!Nm(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),i.add(t)):e.push(n)}for(const n of i){const t=Im(n.children);e.push(new Eg(n.value,t))}return e.filter(t=>!i.has(t))}function Bm(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Fm(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function Hm(t){return t.data||{}}function qm(t){return t.resolve||{}}function jm(t){return Vp(e=>{const i=t(e);return i?F(i).pipe(P(()=>e)):Dd(e)})}class Ym extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Wm=new Ui("ROUTES");class Um{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe(P(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new im(Gf(n.injector.get(Wm,void 0,Mt.Self|Mt.Optional)).map(hm),n)}),rf(t=>{throw e._loader$=void 0,t}));return e._loader$=new G(i,()=>new v).pipe(K()),e._loader$}loadModuleFactory(t){return"string"==typeof t?F(this.loader.load(t)):Qf(t()).pipe(H(t=>t instanceof Dc?Dd(t):F(this.compiler.compileModuleAsync(t))))}}class Km{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Vm,this.attachRef=null}}class Vm{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Km,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Xm{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Gm(t){throw t}function $m(t,e,i){return e.parse("/")}function Jm(t,e){return Dd(null)}const Qm={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Zm={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let t_=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new v,this.errorHandler=Gm,this.malformedUriErrorHandler=$m,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Jm,afterPreactivation:Jm},this.urlHandlingStrategy=new Xm,this.routeReuseStrategy=new Ym,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(Oc),this.console=s.get(Iu);const c=s.get($u);this.isNgZoneEnabled=c instanceof $u&&$u.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new rg(new og([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Um(r,o,t=>this.triggerEvent(new Nf(t)),t=>this.triggerEvent(new If(t))),this.routerState=Rg(this.currentUrlTree,this.rootComponentType),this.transitions=new Ip({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()}setupNavigations(t){const e=this.events;return t.pipe(Nd(t=>0!==t.id),P(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Vp(t=>{let i=!1,n=!1;return Dd(t).pipe(wf(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Vp(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Dd(t).pipe(Vp(t=>{const i=this.transitions.getValue();return e.next(new Cf(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?Wp:Promise.resolve(t)}),function(t,e,i,n){return Vp(s=>function(t,e,i,n,s){return new km(t,e,i,n,s).apply()}(t,e,i,s.extractedUrl,n).pipe(P(t=>Object.assign(Object.assign({},s),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),wf(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return H(r=>function(t,e,i,n,s="emptyOnly",r="legacy"){try{const o=new Pm(t,e,i,n,s,r).recognize();return null===o?Dm(new Om):Dd(o)}catch(o){return Dm(o)}}(t,e,r.urlAfterRedirects,i(r.urlAfterRedirects),n,s).pipe(P(t=>Object.assign(Object.assign({},r),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),wf(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const i=new Rf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:r,extras:o}=t,a=new Cf(i,this.serializeUrl(n),s,r);e.next(a);const c=Rg(n,this.rootComponentType).snapshot;return Dd(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Wp}),jm(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),wf(t=>{const e=new xf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),P(t=>Object.assign(Object.assign({},t),{guards:Lm(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return H(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=i;return 0===o.length&&0===r.length?Dd(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return F(t).pipe(H(t=>function(t,e,i,n,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Dd(r.map(r=>{const o=zm(r,e,s);let a;if(function(t){return t&&nm(t.canDeactivate)}(o))a=Qf(o.canDeactivate(t,e,i,n));else{if(!nm(o))throw new Error("Invalid CanDeactivate guard");a=Qf(o(t,e,i,n))}return a.pipe(bf())})).pipe(om()):Dd(!0)}(t.component,t.route,i,e,n)),bf(t=>!0!==t,!0))}(o,n,s,t).pipe(H(i=>i&&"boolean"==typeof i?function(t,e,i,n){return F(e).pipe(Pd(e=>Yp(function(t,e){return null!==t&&e&&e(new Bf(t)),Dd(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new Hf(t)),Dd(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Kp(()=>Dd(e.guards.map(s=>{const r=zm(s,e.node,i);let o;if(function(t){return t&&nm(t.canActivateChild)}(r))o=Qf(r.canActivateChild(n,t));else{if(!nm(r))throw new Error("Invalid CanActivateChild guard");o=Qf(r(n,t))}return o.pipe(bf())})).pipe(om())));return Dd(s).pipe(om())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Dd(n.map(n=>Kp(()=>{const s=zm(n,e,i);let r;if(function(t){return t&&nm(t.canActivate)}(s))r=Qf(s.canActivate(e,t));else{if(!nm(s))throw new Error("Invalid CanActivate guard");r=Qf(s(e,t))}return r.pipe(bf())}))).pipe(om()):Dd(!0)}(t,e.route,i))),bf(t=>!0!==t,!0))}(n,r,t,e):Dd(i)),P(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),wf(t=>{if(sm(t.guardsResult)){const e=Uf(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new Of(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Nd(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),jm(t=>{if(t.guards.canActivateChecks.length)return Dd(t).pipe(wf(t=>{const e=new Df(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Vp(t=>{let e=!1;return Dd(t).pipe((i=this.paramsInheritanceStrategy,n=this.ngModule.injector,H(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return Dd(t);let r=0;return F(s).pipe(Pd(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return Dd({});const r={};return F(s).pipe(H(s=>function(t,e,i,n){const s=zm(t,e,n);return Qf(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe(wf(t=>{r[s]=t}))),cf(1),H(()=>Object.keys(r).length===s.length?Dd(r):Wp))}(t._resolve,t,e,n).pipe(P(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Og(t,i).resolve),null)))}(t.route,e,i,n)),wf(()=>r++),cf(1),H(e=>r===s.length?Dd(t):Wp))})),wf({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var i,n}),wf(t=>{const e=new Pf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),jm(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),P(t=>{const e=function(t,e,i){const n=Hg(t,e._root,i?i._root:void 0);return new zg(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),wf(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),P(t=>(new tm(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),wf({next(){i=!0},complete(){i=!0}}),vf(()=>{i||n||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),rf(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=sm(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new Lf(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new zf(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(r){t.reject(r)}}var s;return Wp}));var s,r,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){cm(t),this.config=t.map(hm),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(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=i||this.routerState.root,c=o?this.currentUrlTree.fragment:s;let u=null;switch(r){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=n||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,i,n,s){if(0===i.length)return Wg(e.root,e.root,e,n,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Kg(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return Jf(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new Kg(i,e,n)}(i);if(r.toRoot())return Wg(e.root,new og([],{}),e,n,s);const o=function(t,e,i){if(t.isAbsolute)return new Vg(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new Vg(t,t===e.root,0)}const n=jg(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,r=i;for(;r>s;){if(r-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new Vg(n,!1,s-r)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?Gg(o.segmentGroup,o.index,r.commands):Xg(o.segmentGroup,o.index,r.commands);return Wg(o.segmentGroup,a,e,n,s)}(a,this.currentUrlTree,t,u,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const i=sm(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(n,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Ef(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){if(this.disposed)return Promise.resolve(!1);const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let c,u,l;s?(c=s.resolve,u=s.reject,l=s.promise):l=new Promise((t,e)=>{c=t,u=e});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const i=this.urlSerializer.serialize(t),n=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(i)||e.extras.replaceUrl?this.location.replaceState(i,"",n):this.location.go(i,"",n)}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const i=new Lf(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(un(Vi),un(ug),un(Vm),un(Wl),un(lo),un(yl),un(Vu),un(void 0))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),e_=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new v,null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:n_(this.skipLocationChange),replaceUrl:n_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:n_(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Ro(t_),Ro(xg),Yi("tabindex"),Ro(ec),Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Wo("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[ae]}),t})(),i_=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new v,this.subscription=t.events.subscribe(t=>{t instanceof Ef&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:n_(this.skipLocationChange),replaceUrl:n_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:n_(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Ro(t_),Ro(xg),Ro(Fl))},t.\u0275dir=Gt({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Wo("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(Ea("href",e.href,ts),So("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[ae]}),t})();function n_(t){return""===t||!!t}let s_=(()=>{class t{constructor(t,e,i,n,s){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new lu,this.deactivateEvents=new lu,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new r_(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Vm),Ro(Nc),Ro(Xa),Yi("name"),Ro(Tc))},t.\u0275dir=Gt({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class r_{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===xg?this.route:t===Vm?this.childContexts:this.parent.get(t,e)}}class o_{}class a_{preload(t,e){return e().pipe(rf(()=>Dd(null)))}}class c_{preload(t,e){return Dd(null)}}let u_=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new Um(e,i,e=>t.triggerEvent(new Nf(e)),e=>t.triggerEvent(new If(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Nd(t=>t instanceof Ef),Pd(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Oc);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return F(i).pipe(Y(),P(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?Dd(e._loadedConfig):this.loader.load(t.injector,e)).pipe(H(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(un(t_),un(yl),un(Vu),un(lo),un(o_))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),l_=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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(t=>{t instanceof Cf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Ef&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof jf&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new jf(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(un(t_),un(Jh),un(void 0))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const h_=new Ui("ROUTER_CONFIGURATION"),d_=new Ui("ROUTER_FORROOT_GUARD"),p_=[Wl,{provide:ug,useClass:lg},{provide:t_,useFactory:function(t,e,i,n,s,r,o,a={},c,u){const l=new t_(null,t,e,i,n,s,r,Gf(o));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,l),a.enableTracing&&l.events.subscribe(t=>{var e,i;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),l},deps:[ug,Vm,Wl,lo,yl,Vu,Wm,h_,[class{},new fn],[class{},new fn]]},Vm,{provide:xg,useFactory:function(t){return t.routerState.root},deps:[t_]},{provide:yl,useClass:Al},u_,c_,a_,{provide:h_,useValue:{enableTracing:!1}}];function f_(){return new dl("Router",t_)}let g_=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[p_,y_(e),{provide:d_,useFactory:b_,deps:[[t_,new fn,new gn]]},{provide:h_,useValue:i||{}},{provide:Fl,useFactory:__,deps:[zl,[new pn(ql),new fn],h_]},{provide:l_,useFactory:m_,deps:[t_,Jh,h_]},{provide:o_,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:c_},{provide:dl,multi:!0,useFactory:f_},[w_,{provide:Lu,multi:!0,useFactory:M_,deps:[w_]},{provide:v_,useFactory:A_,deps:[w_]},{provide:Nu,multi:!0,useExisting:v_}]]}}static forChild(e){return{ngModule:t,providers:[y_(e)]}}}return t.\u0275fac=function(e){return new(e||t)(un(d_,8),un(t_,8))},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})();function m_(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new l_(t,e,i)}function __(t,e,i={}){return i.useHash?new Yl(t,e):new jl(t,e)}function b_(t){return"guarded"}function y_(t){return[{provide:Ki,multi:!0,useValue:t},{provide:Wm,multi:!0,useValue:t}]}let w_=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new v}appInitializer(){return this.injector.get(xl,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(t_),n=this.injector.get(h_);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?Dd(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(h_),i=this.injector.get(u_),n=this.injector.get(l_),s=this.injector.get(t_),r=this.injector.get(_l);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),i.setUpPreloading(),n.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(un(lo))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function M_(t){return t.appInitializer.bind(t)}function A_(t){return t.bootstrapListener.bind(t)}const v_=new Ui("Router Initializer");function T_(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class k_ extends h{constructor(t,e){super()}schedule(t,e=0){return this}}class S_ extends k_{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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,n=!1;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let C_=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class E_ extends C_{constructor(t,e=C_.now){super(t,()=>E_.delegate&&E_.delegate!==this?E_.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return E_.delegate&&E_.delegate!==this?E_.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const L_=new E_(S_);function z_(t,e=L_){return i=>i.lift(new R_(t,e))}class R_{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new x_(t,this.dueTime,this.scheduler))}}class x_ extends f{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(O_,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function O_(t){t.debouncedNext()}function D_(t){return null!=t&&"false"!=`${t}`}function P_(t,e=0){return N_(t)?Number(t):e}function N_(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function I_(t){return Array.isArray(t)?t:[t]}function B_(t){return null==t?"":"string"==typeof t?t:`${t}px`}function F_(t){return t instanceof Qa?t.nativeElement:t}let H_;try{H_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(fj){H_=!1}let q_,j_=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Gh(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&&!H_)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(un(Pu))},t.\u0275prov=dt({factory:function(){return new t(un(Pu))},token:t,providedIn:"root"}),t})(),Y_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})();const W_=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function U_(){if(q_)return q_;if("object"!=typeof document||!document)return q_=new Set(W_),q_;let t=document.createElement("input");return q_=new Set(W_.filter(e=>(t.setAttribute("type",e),t.type===e))),q_}let K_,V_,X_,G_;function $_(t){return function(){if(null==K_&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>K_=!0}))}finally{K_=K_||!1}return K_}()?t:!!t.capture}function J_(){if(null==X_){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return X_=!1,X_;if("scrollBehavior"in document.documentElement.style)X_=!0;else{const t=Element.prototype.scrollTo;X_=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return X_}function Q_(){if("object"!=typeof document||!document)return 0;if(null==V_){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),V_=0,0===t.scrollLeft&&(t.scrollLeft=1,V_=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return V_}function Z_(t){if(function(){if(null==G_){const t="undefined"!=typeof document?document.head:null;G_=!(!t||!t.createShadowRoot&&!t.attachShadow)}return G_}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function tb(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}let eb=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),ib=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=F_(t);return new b(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new v,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(un(eb))},t.\u0275prov=dt({factory:function(){return new t(un(eb))},token:t,providedIn:"root"}),t})(),nb=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new lu,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=D_(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=P_(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(z_(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ro(ib),Ro(Qa),Ro($u))},t.\u0275dir=Gt({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),sb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[eb]}),t})();function rb(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let ob=0;const ab=new Map;let cb=null,ub=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=lb(e,i);"string"!=typeof e?(hb(e),ab.set(n,{messageElement:e,referenceCount:0})):ab.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=lb(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=ab.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}cb&&0===cb.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=ab.get(e);!function(t,e,i){const n=rb(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute("cdk-describedby-host",""),i.referenceCount++}_removeMessageReference(t,e){const i=ab.get(e);i.referenceCount--,function(t,e,i){const n=rb(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const i=rb(t,"aria-describedby"),n=ab.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un(Ll))},token:t,providedIn:"root"}),t})();function lb(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function hb(t){t.id||(t.id="cdk-describedby-message-"+ob++)}class db{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new v,this._typeaheadSubscription=h.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new v,this.change=new v,t instanceof du&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(wf(t=>this._pressedLetters.push(t)),z_(t),Nd(()=>this._pressedLetters.length>0),P(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||T_(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof du?this._items.toArray():this._items}}class pb extends db{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class fb extends db{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let gb=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(fj){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===_b(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=_b(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||mb(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(un(j_))},t.\u0275prov=dt({factory:function(){return new t(un(j_))},token:t,providedIn:"root"}),t})();function mb(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function _b(t){if(!mb(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class bb{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Jp(1)).subscribe(t)}}let yb=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new bb(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(un(gb),un($u),un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un(gb),un($u),un(Ll))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const wb=new Ui("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Mb=new Ui("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Ab=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=vb(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{Tb(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=Eb(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=Eb(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=F_(t);if(!this._platform.isBrowser||1!==i.nodeType)return Dd(null);const n=Z_(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new v,rootNode:n};return this._elementInfo.set(i,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=F_(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=F_(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=Eb(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===Eb(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Sb),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Sb)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Sb),t.addEventListener("mousedown",this._documentMousedownListener,Sb),t.addEventListener("touchstart",this._documentTouchstartListener,Sb),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Sb),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Sb),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Sb),t.removeEventListener("mousedown",this._documentMousedownListener,Sb),t.removeEventListener("touchstart",this._documentTouchstartListener,Sb),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(un($u),un(j_),un(Ll,8),un(kb,8))},t.\u0275prov=dt({factory:function(){return new t(un($u),un(j_),un(Ll,8),un(kb,8))},token:t,providedIn:"root"}),t})();function Eb(t){return t.composedPath?t.composedPath()[0]:t.target}let Lb=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(un(j_),un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un(j_),un(Ll))},token:t,providedIn:"root"}),t})(),zb=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(un(Lb))},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Y_,sb]]}),t})();const Rb=new Ui("cdk-dir-doc",{providedIn:"root",factory:function(){return ln(Ll)}});let xb=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new lu,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(un(Rb,8))},t.\u0275prov=dt({factory:function(){return new t(un(Rb,8))},token:t,providedIn:"root"}),t})(),Ob=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})();const Db=new sc("12.0.5");class Pb{}function Nb(t,e){return{type:7,name:t,definitions:e,options:{}}}function Ib(t,e=null){return{type:4,styles:e,timings:t}}function Bb(t,e=null){return{type:3,steps:t,options:e}}function Fb(t,e=null){return{type:2,steps:t,options:e}}function Hb(t){return{type:6,styles:t,offset:null}}function qb(t,e,i){return{type:0,name:t,styles:e,options:i}}function jb(t){return{type:5,steps:t}}function Yb(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function Wb(t=null){return{type:9,options:t}}function Ub(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function Kb(t){Promise.resolve(null).then(t)}class Vb{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Kb(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Xb{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?Kb(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Gb(){return"undefined"!=typeof window&&void 0!==window.document}function $b(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Jb(t){switch(t.length){case 0:return new Vb;case 1:return t[0];default:return new Xb(t)}}function Qb(t,e,i,n,s={},r={}){const o=[],a=[];let c=-1,u=null;if(n.forEach(t=>{const i=t.offset,n=i==c,l=n&&u||{};Object.keys(t).forEach(i=>{let n=i,a=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),a){case"!":a=s[i];break;case"*":a=r[i];break;default:a=e.normalizeStyleValue(i,n,a,o)}l[n]=a}),n||a.push(l),u=l,c=i}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Zb(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&ty(i,"start",t)));break;case"done":t.onDone(()=>n(i&&ty(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&ty(i,"destroy",t)))}}function ty(t,e,i){const n=i.totalTime,s=ey(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),r=t._data;return null!=r&&(s._data=r),s}function ey(t,e,i,n,s="",r=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function iy(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function ny(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let sy=(t,e)=>!1,ry=(t,e)=>!1,oy=(t,e,i)=>[];const ay=$b();(ay||"undefined"!=typeof Element)&&(sy=Gb()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),ry=(()=>{if(ay||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):ry}})(),oy=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let gy=(()=>{class t{validateStyleProperty(t){return ly(t)}matchesElement(t,e){return hy(t,e)}containsElement(t,e){return dy(t,e)}query(t,e,i){return py(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,r=[],o){return new Vb(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),my=(()=>{class t{}return t.NOOP=new gy,t})();function _y(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:by(parseFloat(e[1]),e[2])}function by(t,e){switch(e){case"s":return 1e3*t;default:return t}}function yy(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,r="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=by(parseFloat(i[1]),i[2]);const o=i[3];null!=o&&(s=by(parseFloat(o),i[4]));const a=i[5];a&&(r=a)}else n=t;if(!i){let i=!1,r=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:r}}(t,e,i)}function wy(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function My(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else wy(t,i);return i}function Ay(t,e,i){return i?e+":"+i+";":""}function vy(t){let e="";for(let i=0;i{const s=xy(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),$b()&&vy(t))}function ky(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=xy(e);t.style[i]=""}),$b()&&vy(t))}function Sy(t){return Array.isArray(t)?1==t.length?t[0]:Fb(t):t}const Cy=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ey(t){let e=[];if("string"==typeof t){let i;for(;i=Cy.exec(t);)e.push(i[1]);Cy.lastIndex=0}return e}function Ly(t,e,i){const n=t.toString(),s=n.replace(Cy,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function zy(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const Ry=/-+([a-z0-9])/g;function xy(t){return t.replace(Ry,(...t)=>t[1].toUpperCase())}function Oy(t,e){return 0===t||0===e}function Dy(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let r=e[0],o=[];if(n.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=i[t]}),o.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],r=n[2],o=n[3];e.push(Hy(s,o)),"<"!=r[0]||"*"==s&&"*"==o||e.push(Hy(o,s))}(t,i,e)):i.push(t),i}const By=new Set(["true","1"]),Fy=new Set(["false","0"]);function Hy(t,e){const i=By.has(t)||Fy.has(t),n=By.has(e)||Fy.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&i&&"boolean"==typeof s&&(o=s?By.has(t):Fy.has(t)),!a&&n&&"boolean"==typeof r&&(a=r?By.has(e):Fy.has(e)),o&&a}}const qy=new RegExp("s*:selfs*,?","g");function jy(t,e,i){return new Yy(t).build(e,i)}class Yy{constructor(t){this._driver=t}build(t,e){const i=new Wy(e);return this._resetContextStyleTimingState(i),Py(this,Sy(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,r=n||{};if(i.styles.forEach(t=>{if(Uy(t)){const e=t;Object.keys(e).forEach(t=>{Ey(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=zy(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Py(this,Sy(t.animation),e);return{type:1,matchers:Iy(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ky(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Py(this,t,e)),options:Ky(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=Py(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:Ky(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return Vy(yy(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Vy(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||yy(n,e),Vy(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:Hb({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};i.easing&&(t.easing=i.easing),s=Hb(t)}e.currentTime+=i.duration+i.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,n=o}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(Uy(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[i];let a=!0;o&&(s!=n&&s>=o.startTime&&n<=o.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=o.startTime),a&&(r[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=Ey(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let r=!1,o=!1,a=0;const c=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Uy(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Uy(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),u=0;return null!=c&&(n++,u=i.offset=c),o=o||u<0||u>1,r=r||u0&&n{const r=l>0?n==h?1:l*n:s[n],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:Py(this,Sy(t.animation),e),options:Ky(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Ky(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ky(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(qy,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,iy(e.collectedStyles,e.currentQuerySelector,{});const o=Py(this,Sy(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:Ky(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:yy(t.timings,e.errors,!0);return{type:12,animation:Py(this,Sy(t.animation),e),timings:i,options:null}}}class Wy{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Uy(t){return!Array.isArray(t)&&"object"==typeof t}function Ky(t){var e;return t?(t=wy(t)).params&&(t.params=(e=t.params)?wy(e):null):t={},t}function Vy(t,e,i){return{duration:t,delay:e,easing:i}}function Xy(t,e,i,n,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Gy{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const $y=new RegExp(":enter","g"),Jy=new RegExp(":leave","g");function Qy(t,e,i,n,s,r={},o={},a,c,u=[]){return(new Zy).buildKeyframes(t,e,i,n,s,r,o,a,c,u)}class Zy{buildKeyframes(t,e,i,n,s,r,o,a,c,u=[]){c=c||new Gy;const l=new ew(t,e,c,n,s,u,[]);l.options=a,l.currentTimeline.setStyles([r],null,l.errors,a),Py(this,i,l);const h=l.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,l.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Xy(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(i,n,n.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?_y(i.duration):null,r=null!=i.delay?_y(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,r);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),Py(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=tw);const t=_y(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Py(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?_y(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),Py(this,r,o),n=Math.max(n,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return yy(e.params?Ly(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,r=e.createSubContext().currentTimeline;r.easing=i.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?_y(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=tw);let r=i;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((i,n)=>{e.currentQueryIndex=n;const o=e.createSubContext(t.options,i);s&&o.delayNextStep(s),i===e.element&&(a=o.currentTimeline),Py(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=i.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const u=c.currentTime;Py(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}}const tw={};class ew{constructor(t,e,i,n,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=tw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new iw(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=_y(i.duration)),null!=i.delay&&(n.delay=_y(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=Ly(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new ew(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=tw,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new nw(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,r){let o=[];if(n&&o.push(this.element),t.length>0){t=(t=t.replace($y,"."+this._enterClassName)).replace(Jy,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class iw{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new iw(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},r=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]="*"})):My(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=Ly(r[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,r)=>{const o=My(s,!0);Object.keys(o).forEach(i=>{const n=o[i];"!"==n?t.add(i):"*"==n&&e.add(i)}),i||(o.offset=r/this.duration),n.push(o)});const s=t.size?zy(t.values()):[],r=e.size?zy(e.values()):[];if(i){const t=n[0],e=wy(t);t.offset=0,e.offset=1,n=[t,e]}return Xy(this.element,n,s,r,this.duration,this.startTime,this.easing,!1)}}class nw extends iw{constructor(t,e,i,n,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=i+e,o=e/r,a=My(t[0],!1);a.offset=0,s.push(a);const c=My(t[0],!1);c.offset=sw(o),s.push(c);const u=t.length-1;for(let n=1;n<=u;n++){let o=My(t[n],!1);o.offset=sw((e+o.offset*i)/r),s.push(o)}i=r,e=0,n="",t=s}return Xy(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function sw(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class rw{}class ow extends rw{normalizePropertyName(t,e){return xy(t)}normalizeStyleValue(t,e,i,n){let s="";const r=i.toString().trim();if(aw[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return r+s}}const aw=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function cw(t,e,i,n,s,r,o,a,c,u,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}const uw={};class lw{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],r=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):r}build(t,e,i,n,s,r,o,a,c,u){const l=[],h=this.ast.options&&this.ast.options.params||uw,d=this.buildStyles(i,o&&o.params||uw,l),p=a&&a.params||uw,f=this.buildStyles(n,p,l),g=new Set,m=new Map,_=new Map,b="void"===n,y={params:Object.assign(Object.assign({},h),p)},w=u?[]:Qy(t,e,this.ast.animation,s,r,d,f,y,c,l);let M=0;if(w.forEach(t=>{M=Math.max(t.duration+t.delay,M)}),l.length)return cw(e,this._triggerName,i,n,b,d,f,[],[],m,_,M,l);w.forEach(t=>{const i=t.element,n=iy(m,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=iy(_,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&g.add(i)});const A=zy(g.values());return cw(e,this._triggerName,i,n,b,d,f,w,A,m,_,M)}}class hw{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=wy(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Ly(r,n,e)),i[t]=r})}}),i}}class dw{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new hw(t.style,t.options&&t.options.params||{})}),pw(this.states,"true","1"),pw(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new lw(t,e,this.states))}),this.fallbackTransition=new lw(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function pw(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const fw=new Gy;class gw{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=jy(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=Qb(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let r;const o=new Map;if(s?(r=Qy(this._driver,e,s,"ng-enter","ng-leave",{},{},i,fw,n),r.forEach(t=>{const e=iy(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),r=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,"*")})});const a=Jb(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=ey(e,"","","");return Zb(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const mw=[],_w={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},bw={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class yw{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=wy(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const ww=new yw("void");class Mw{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ew(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const r=iy(this._elementListeners,t,[]),o={name:e,phase:i,callback:n};r.push(o);const a=iy(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Ew(t,"ng-trigger"),Ew(t,"ng-trigger-"+e),a[e]=ww),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),r=new vw(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Ew(t,"ng-trigger"),Ew(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const c=new yw(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[e]=c,a||(a=ww),"void"!==c.value&&a.value===c.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{ky(t,i),Ty(t,n)})}return}const u=iy(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let l=s.matchTransition(a.value,c.value,t,c.params),h=!1;if(!l){if(!n)return;l=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:l,fromState:a,toState:c,player:r,isFallbackTransition:h}),h||(Ew(t,"ng-animate-queued"),r.onStart(()=>{Lw(t,"ng-animate-queued")})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(r);t>=0&&i.splice(t,1)}}),this.players.push(r),u.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&r.push(i)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&Jb(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const r=this._triggers[s].fallbackTransition,o=i[s]||ww,a=new yw("void"),c=new vw(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==_w||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Ew(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==i.triggerName){const n=ey(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Zb(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Aw{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new Mw(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Ew(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Lw(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(Tw(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return Tw(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Jb(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=_w,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Jb(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new Gy,n=[],s=new Map,r=[],o=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i="ng-enter"+f++;p.set(e,i),t.forEach(t=>Ew(t,i))});const g=[],m=new Set,_=new Set;for(let z=0;zm.add(t)):_.add(t))}const b=new Map,y=Cw(h,Array.from(m));y.forEach((t,e)=>{const i="ng-leave"+f++;b.set(e,i),t.forEach(t=>Ew(t,i))}),t.push(()=>{d.forEach((t,e)=>{const i=p.get(e);t.forEach(t=>Lw(t,i))}),y.forEach((t,e)=>{const i=b.get(e);t.forEach(t=>Lw(t,i))}),g.forEach(t=>{this.processLeaveNode(t)})});const w=[],M=[];for(let z=this._namespaceList.length-1;z>=0;z--)this._namespaceList[z].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(w.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const u=!l||!this.driver.containsElement(l,s),h=b.get(s),d=p.get(s),f=this._buildInstruction(t,i,d,h,u);if(f.errors&&f.errors.length)M.push(f);else{if(u)return e.onStart(()=>ky(s,f.fromStyles)),e.onDestroy(()=>Ty(s,f.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>ky(s,f.fromStyles)),e.onDestroy(()=>Ty(s,f.toStyles)),void n.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,f.timelines),r.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>iy(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=a.get(e);t||a.set(e,t=new Set),i.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=c.get(e);n||c.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(M.length){const t=[];M.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),w.forEach(t=>t.destroy()),this.reportError(t)}const A=new Map,v=new Map;r.forEach(t=>{const e=t.element;i.has(e)&&(v.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,A))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{iy(A,e,[]).push(t),t.destroy()})});const T=g.filter(t=>xw(t,a,c)),k=new Map;Sw(k,this.driver,_,c,"*").forEach(t=>{xw(t,a,c)&&T.push(t)});const S=new Map;d.forEach((t,e)=>{Sw(S,this.driver,new Set(t),a,"!")}),T.forEach(t=>{const e=k.get(t),i=S.get(t);k.set(t,Object.assign(Object.assign({},e),i))});const C=[],E=[],L={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(i.has(e)){if(u.has(e))return r.onDestroy(()=>Ty(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void n.push(r);let t=L;if(v.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=v.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>v.set(e,t))}const i=this._buildAnimation(r.namespaceId,o,A,s,S,k);if(r.setRealPlayer(i),t===L)C.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Jb(e)),n.push(r)}}else ky(e,o.fromStyles),r.onDestroy(()=>Ty(e,o.toStyles)),E.push(r),u.has(e)&&n.push(r)}),E.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=Jb(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let z=0;z!t.destroyed);n.length?zw(this,t,n):this.processLeaveNode(t)}return g.length=0,C.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),C}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&r.push(e)})}}return(i||n)&&(r=r.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),r}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==n,c=iy(i,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}ky(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,r){const o=e.triggerName,a=e.element,c=[],u=new Set,l=new Set,h=e.timelines.map(e=>{const h=e.element;u.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Vb(e.duration,e.delay);const p=h!==a,f=function(t){const e=[];return Rw(t,e),e}((i.get(h)||mw).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=s.get(h),m=r.get(h),_=Qb(0,this._normalizer,0,e.keyframes,g,m),b=this._buildPlayer(e,_,f);if(e.subTimeline&&n&&l.add(h),p){const e=new vw(t,o,h);e.setRealPlayer(b),c.push(e)}return b});c.forEach(t=>{iy(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),u.forEach(t=>Ew(t,"ng-animating"));const d=Jb(h);return d.onDestroy(()=>{u.forEach(t=>Lw(t,"ng-animating")),Ty(a,e.toStyles)}),l.forEach(t=>{iy(n,t,[]).push(d)}),d}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Vb(t.duration,t.delay)}}class vw{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Vb,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Zb(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){iy(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Tw(t){return t&&1===t.nodeType}function kw(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function Sw(t,e,i,n,s){const r=[];i.forEach(t=>r.push(kw(t)));const o=[];n.forEach((i,n)=>{const r={};i.forEach(t=>{const i=r[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=bw,o.push(n))}),t.set(n,r)});let a=0;return i.forEach(t=>kw(t,r[a++])),o}function Cw(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=i.has(o)?o:n.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&i.get(e).push(t)}),i}function Ew(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Lw(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function zw(t,e,i){Jb(i).onDone(()=>t.processLeaveNode(e))}function Rw(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class Ow{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Aw(t,e,i),this._timelineEngine=new gw(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const r=t+"-"+n;let o=this._triggerCache[r];if(!o){const t=[],e=jy(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new dw(t,e)}(n,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,n,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=ny(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=ny(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Dw(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Nw(e[0]),e.length>1&&(n=Nw(e[e.length-1]))):e&&(i=Nw(e)),i||n?new Pw(t,i,n):null}let Pw=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Ty(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ty(this._element,this._initialStyles),this._endStyles&&(Ty(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ky(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ky(this._element,this._endStyles),this._endStyles=null),Ty(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Nw(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=Ww(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),jw(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=Ww(t,"").split(","),n=qw(i,e);n>=0&&(i.splice(n,1),Yw(t,"",i.join(",")))}(this._element,this._name))}}function Fw(t,e,i){Yw(t,"PlayState",i,Hw(t,e))}function Hw(t,e){const i=Ww(t,"");return i.indexOf(",")>0?qw(i.split(","),e):qw([i],e)}function qw(t,e){for(let i=0;i=0)return i;return-1}function jw(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Yw(t,e,i,n){const s="animation"+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function Ww(t,e){return t.style["animation"+e]||""}class Uw{constructor(t,e,i,n,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Bw(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:Ny(this.element,i))})}this.currentSnapshot=t}}class Kw extends Vb{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=fy(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Vw{constructor(){this._count=0}validateStyleProperty(t){return ly(t)}matchesElement(t,e){return hy(t,e)}containsElement(t,e){return dy(t,e)}query(t,e,i){return py(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>fy(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const r=document.createElement("style");return r.textContent=n,r}animate(t,e,i,n,s,r=[],o){const a=r.filter(t=>t instanceof Uw),c={};Oy(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=Dy(t,e,c));if(0==i)return new Kw(t,u);const l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);(function(t){var e;const i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(h);const d=Dw(t,e),p=new Uw(t,e,l,i,n,s,u,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class Xw{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Ny(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Gw{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test($w().toString()),this._cssKeyframesDriver=new Vw}validateStyleProperty(t){return ly(t)}matchesElement(t,e){return hy(t,e)}containsElement(t,e){return dy(t,e)}query(t,e,i){return py(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,r);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const c={},u=r.filter(t=>t instanceof Xw);Oy(i,n)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=Dw(t,e=Dy(t,e=e.map(t=>My(t,!1)),c));return new Xw(t,e,a,l)}}function $w(){return Gb()&&Element.prototype.animate||{}}let Jw=(()=>{class t extends Pb{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:Ct.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?Fb(t):t;return tM(this._renderer,null,e,"register",[i]),new Qw(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(un(tc),un(Ll))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class Qw extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Zw(this._id,t,e||{},this._renderer)}}class Zw{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return tM(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function tM(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let eM=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new iM("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(r),new nM(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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 t.\u0275fac=function(e){return new(e||t)(un(tc),un(Ow),un($u))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class iM{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class nM extends iM{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let sM=(()=>{class t extends Ow{constructor(t,e,i){super(t.body,e,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(un(Ll),un(my),un(rw))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const rM=new Ui("AnimationModuleType"),oM=[{provide:Pb,useClass:Jw},{provide:rw,useFactory:function(){return new ow}},{provide:Ow,useClass:sM},{provide:tc,useFactory:function(t,e,i){return new eM(t,e,i)},deps:[bd,Ow,$u]}],aM=[{provide:my,useFactory:function(){return"function"==typeof $w()?new Gw:new Vw}},{provide:rM,useValue:"BrowserAnimations"},...oM],cM=[{provide:my,useClass:gy},{provide:rM,useValue:"NoopAnimations"},...oM];let uM=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?cM:aM}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:aM,imports:[Od]}),t})();function lM(t,e){if(1&t&&No(0,"mat-pseudo-checkbox",4),2&t){const t=Go();xo("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function hM(t,e){if(1&t&&(Do(0,"span",5),Aa(1),Po()),2&t){const t=Go();Qs(1),Ta("(",t.group.label,")")}}const dM=["*"];let pM=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),fM=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const gM=new sc("12.0.5"),mM=new Ui("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let _M=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return ll()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&gM.full!==Db.full&&console.warn("The Angular Material version ("+gM.full+") does not match the Angular CDK version ("+Db.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(un(Lb),un(mM,8),un(Ll))},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Ob],Ob]}),t})();function bM(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=D_(t)}}}function yM(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function wM(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=D_(t)}}}function MM(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?P_(t):this.defaultTabIndex}}}function AM(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new v}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function vM(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new b(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const TM=new Ui("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return ln(Bu)}});class kM{constructor(){this._localeChanges=new v,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const SM=new Ui("mat-date-formats");let CM;try{CM="undefined"!=typeof Intl}catch(fj){CM=!1}const EM={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},LM=xM(31,t=>String(t+1)),zM={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},RM=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function xM(t,e){const i=Array(t);for(let n=0;n{class t extends kM{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(CM){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return xM(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return EM[t]}getDateNames(){if(CM){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return xM(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return LM}getDayOfWeekNames(t){if(CM){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return xM(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return zM[t]}getYearName(t){if(CM){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(CM){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(RM.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(un(TM,8),un(j_))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),DM=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),PM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function NM(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let IM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[_M],_M]}),t})();class BM{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const FM={enterDuration:450,exitDuration:400},HM=$_({passive:!0}),qM=["mousedown","touchstart"],jM=["mouseup","mouseleave","touchend","touchcancel"];class YM{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=F_(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},FM),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const r=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),o=t-n.left,a=e-n.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=o-r+"px",u.style.top=a-r+"px",u.style.height=2*r+"px",u.style.width=2*r+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";const l=new BM(this,u,i);return l.state=0,this._activeRipples.add(l),i.persistent||(this._mostRecentTransientRipple=l),this._runTimeoutOutsideZone(()=>{const t=l===this._mostRecentTransientRipple;l.state=1,i.persistent||t&&this._isPointerDown||l.fadeOut()},c),l}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},FM),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=F_(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(qM))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(jM),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=vb(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,HM)})})}_removeTriggerEvents(){this._triggerElement&&(qM.forEach(t=>{this._triggerElement.removeEventListener(t,this,HM)}),this._pointerUpEventsRegistered&&jM.forEach(t=>{this._triggerElement.removeEventListener(t,this,HM)}))}}const WM=new Ui("mat-ripple-global-options");let UM=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new YM(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro($u),Ro(j_),Ro(WM,8),Ro(rM,8))},t.\u0275dir=Gt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&ua("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),KM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[_M,Y_],_M]}),t})(),VM=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(Ro(rM,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&ua("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),XM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[_M]]}),t})();const GM=new Ui("MAT_OPTION_PARENT_COMPONENT");class $M{}const JM=bM($M);let QM=0,ZM=(()=>{class t extends JM{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+QM++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(Ro(GM,8))},t.\u0275dir=Gt({type:t,inputs:{label:"label"},features:[po]}),t})();const tA=new Ui("MatOptgroup");let eA=0;class iA{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let nA=(()=>{class t{constructor(t,e,i,n){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+eA++,this.onSelectionChange=new lu,this._stateChanges=new v}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(t){this._disabled=D_(t)}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(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){13!==t.keyCode&&32!==t.keyCode||T_(t)||(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new iA(this,t))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(Tc),Ro(void 0),Ro(ZM))},t.\u0275dir=Gt({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),sA=(()=>{class t extends nA{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(Tc),Ro(GM,8),Ro(tA,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&Wo("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(Ea("id",e.id),So("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),ua("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[po],ngContentSelectors:dM,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(t,e){1&t&&(Jo(),Lo(0,lM,1,2,"mat-pseudo-checkbox",0),Do(1,"span",1),Qo(2),Po(),Lo(3,hM,2,1,"span",2),No(4,"div",3)),2&t&&(xo("ngIf",e.multiple),Qs(3),xo("ngIf",e.group&&e.group._inert),Qs(1),xo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[xh,UM,VM],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function rA(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),r=0;for(let e=0;ei+n?Math.max(0,t-n+e):i}let aA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[KM,Xh,_M,XM]]}),t})();const cA=["mat-button",""],uA=["*"],lA=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class hA{constructor(t){this._elementRef=t}}const dA=yM(bM(wM(hA)));let pA=(()=>{class t extends dA{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of lA)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.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(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(Cb),Ro(rM,8))},t.\u0275cmp=Yt({type:t,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(t,e){if(1&t&&vu(UM,5),2&t){let t;Au(t=ku())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(So("disabled",e.disabled||null),ua("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[po],attrs:cA,ngContentSelectors:uA,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(t,e){1&t&&(Jo(),Do(0,"span",0),Qo(1),Po(),No(2,"span",1),No(3,"span",2)),2&t&&(Qs(2),ua("mat-button-ripple-round",e.isRoundButton||e.isIconButton),xo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[UM],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),fA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[KM,_M],_M]}),t})();function gA(t,e,i,s){return n(i)&&(s=i,i=void 0),s?gA(t,e,i).pipe(P(t=>c(t)?s(...t):s(t))):new b(n=>{mA(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function mA(t,e,i,n,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),r=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),r=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),r=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}class bA extends E_{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),AA={};function vA(t){return t in AA&&(delete AA[t],!0)}const TA={setImmediate(t){const e=wA++;return AA[e]=!0,MA.then(()=>vA(e)&&t()),e},clearImmediate(t){vA(t)}};class kA extends S_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=TA.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(TA.clearImmediate(e),t.scheduled=void 0)}}class SA extends E_{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++ni.lift(new zA(t,e))}class zA{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new RA(t,this.compare,this.keySelector))}}class RA extends f{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}class xA{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new OA(t,this.durationSelector))}}class OA extends D{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=O(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function DA(t){return!c(t)&&t-parseFloat(t)+1>=0}function PA(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function NA(t,e=L_){return i=()=>function(t=0,e,i){let n=-1;return DA(e)?n=Number(e)<1?1:Number(e):k(e)&&(i=e),k(i)||(i=L_),new b(e=>{const s=DA(t)?t:+t-i.now();return i.schedule(PA,s,{index:0,period:n,subscriber:e})})}(t,e),function(t){return t.lift(new xA(i))};var i}function IA(t){return e=>e.lift(new BA(t))}class BA{constructor(t){this.notifier=t}call(t,e){const i=new FA(t),n=O(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class FA extends D{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}class HA extends S_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class qA extends E_{}const jA=new qA(HA);function YA(t,e){return new b(e?i=>e.schedule(WA,0,{error:t,subscriber:i}):e=>e.error(t))}function WA({error:t,subscriber:e}){e.error(t)}let UA=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Dd(this.value);case"E":return YA(this.error);case"C":return Up()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class KA extends f{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(KA.dispatch,this.delay,new VA(t,this.destination)))}_next(t){this.scheduleMessage(UA.createNext(t))}_error(t){this.scheduleMessage(UA.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(UA.createComplete()),this.unsubscribe()}}class VA{constructor(t,e){this.notification=t,this.destination=e}}class XA extends v{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new GA(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let r;if(this.closed)throw new w;if(this.isStopped||this.hasError?r=h.EMPTY:(this.observers.push(t),r=new M(this,t)),n&&t.add(t=new KA(t,n)),e)for(let o=0;oe&&(r=Math.max(r,s-e)),r>0&&n.splice(0,r),n}}class GA{constructor(t,e){this.time=t,this.value=e}}function $A(t,e,i){let n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:n}){let s,r,o=0,a=!1,c=!1;return function(u){o++,s&&!a||(a=!1,s=new XA(t,e,n),r=u.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){c=!0,r=void 0,s.complete()}}));const l=s.subscribe(this);this.add(()=>{o--,l.unsubscribe(),r&&!c&&i&&0===o&&(r.unsubscribe(),r=void 0,s=void 0)})}}(n))}function JA(t){return t&&"function"==typeof t.connect}class QA{applyChanges(t,e,i,n,s){t.forEachOperation((t,n,r)=>{let o,a;if(null==t.previousIndex){const s=i(t,n,r);o=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==r?(e.remove(n),a=3):(o=e.get(n),e.move(o,r),a=2);s&&s({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class ZA{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new v,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let tv=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const ev=new Ui("_ViewRepeater");let iv=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new v,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new b(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(NA(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Dd()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Nd(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=F_(e),n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>gA(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(un($u),un(j_),un(Ll,8))},t.\u0275prov=dt({factory:function(){return new t(un($u),un(j_),un(Ll,8))},token:t,providedIn:"root"}),t})(),nv=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new v,this._elementScrolled=new b(t=>this.ngZone.runOutsideAngular(()=>gA(this.elementRef.nativeElement,"scroll").pipe(IA(this._destroyed)).subscribe(t)))}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(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=Q_()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Q_()?t.left=t.right:1==Q_()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;J_()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==Q_()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==Q_()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(iv),Ro($u),Ro(xb,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),sv=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new v,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(NA(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(un(j_),un($u),un(Ll,8))},t.\u0275prov=dt({factory:function(){return new t(un(j_),un($u),un(Ll,8))},token:t,providedIn:"root"}),t})(),rv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})(),ov=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Ob,Y_,rv],Ob,rv]}),t})();class av{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class cv extends av{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class uv extends av{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class lv extends av{constructor(t){super(),this.element=t instanceof Qa?t.nativeElement:t}}class hv{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof cv?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof uv?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof lv?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class dv extends hv{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let pv=(()=>{class t extends hv{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new lu,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(Ro(Xa),Ro(Nc),Ro(Ll))},t.\u0275dir=Gt({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[po]}),t})(),fv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})();class gv{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new mv(t,this.predicate,this.inclusive))}}class mv extends f{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const _v=J_();class bv{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=B_(-this._previousScrollPosition.left),t.style.top=B_(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),_v&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),_v&&(e.scrollBehavior=n,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class yv{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class wv{enable(){}disable(){}attach(){}}function Mv(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function Av(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class vv{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();Mv(t,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Tv=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new wv,this.close=t=>new yv(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new bv(this._viewportRuler,this._document),this.reposition=t=>new vv(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(un(iv),un(sv),un($u),un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un(iv),un(sv),un($u),un(Ll))},token:t,providedIn:"root"}),t})();class kv{constructor(t){if(this.scrollStrategy=new wv,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class Sv{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Cv{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let Ev=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un(Ll))},token:t,providedIn:"root"}),t})(),Lv=(()=>{class t extends Ev{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un(Ll))},token:t,providedIn:"root"}),t})(),zv=(()=>{class t extends Ev{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(un(Ll),un(j_))},t.\u0275prov=dt({factory:function(){return new t(un(Ll),un(j_))},token:t,providedIn:"root"}),t})();const Rv="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha;let xv=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||Rv){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new v,this._outsidePointerEvents=new v,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Jp(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=B_(this._config.width),t.height=B_(this._config.height),t.minWidth=B_(this._config.minWidth),t.minHeight=B_(this._config.minHeight),t.maxWidth=B_(this._config.maxWidth),t.maxHeight=B_(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;I_(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(IA(U(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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const Dv=/([A-Za-z%]+)$/;class Pv{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new v,this._resizeSubscription=h.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),c=this._getOverlayFit(a,e,i,r);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(c,a,i)?n.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Nv(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){const s=Bv(e);let{x:r,y:o}=t,a=this._getOffset(n,"x"),c=this._getOffset(n,"y");a&&(r+=a),c&&(o+=c);let u=0-o,l=o+s.height-i.height,h=this._subtractOverflows(s.width,0-r,r+s.width-i.width),d=this._subtractOverflows(s.height,u,l),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,r=Iv(this._overlayRef.getConfig().minHeight),o=Iv(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=Bv(e),s=this._viewportRect,r=Math.max(t.x+n.width-s.width,0),o=Math.max(t.y+n.height-s.height,0),a=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,l=0;return u=n.width<=s.width?c||-r:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)u=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-n/2)}return{top:r,left:c,bottom:o,right:u,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=B_(i.height),n.top=B_(i.top),n.bottom=B_(i.bottom),n.width=B_(i.width),n.left=B_(i.left),n.right=B_(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=B_(t)),s&&(n.maxWidth=B_(s))}this._lastBoundingBoxSize=i,Nv(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Nv(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Nv(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();Nv(i,this._getExactOverlayY(e,t,n)),Nv(i,this._getExactOverlayX(e,t,n))}else i.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),i.transform=o.trim(),r.maxHeight&&(n?i.maxHeight=B_(r.maxHeight):s&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=B_(r.maxWidth):s&&(i.maxWidth="")),Nv(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=B_(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=B_(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Av(t,i),isOriginOutsideView:Mv(t,i),isOverlayClipped:Av(e,i),isOverlayOutsideView:Mv(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&I_(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Qa)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Nv(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Iv(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(Dv);return i&&"px"!==i?null:parseFloat(e)}return t||null}function Bv(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class Fv{constructor(t,e,i,n,s,r,o){this._preferredPositions=[],this._positionStrategy=new Pv(i,n,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new Sv(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class Hv{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:r,maxHeight:o}=i,a=!("100%"!==n&&"100vw"!==n||r&&"100%"!==r&&"100vw"!==r),c=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let qv=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new Hv}connectedTo(t,e,i){return new Fv(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Pv(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(un(sv),un(Ll),un(j_),un(xv))},t.\u0275prov=dt({factory:function(){return new t(un(sv),un(Ll),un(j_),un(xv))},token:t,providedIn:"root"}),t})(),jv=0,Yv=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=c,this._location=u,this._outsideClickDispatcher=l}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new kv(t);return s.direction=s.direction||this._directionality.value,new Ov(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+jv++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(_l)),new dv(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(un(Tv),un(xv),un(Xa),un(qv),un(Lv),un(lo),un($u),un(Ll),un(xb),un(Wl),un(zv))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Wv=[{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"}],Uv=new Ui("cdk-connected-overlay-scroll-strategy");let Kv=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Vv=(()=>{class t{constructor(t,e,i,n,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.EMPTY,this._attachSubscription=h.EMPTY,this._detachSubscription=h.EMPTY,this._positionSubscription=h.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new lu,this.positionChange=new lu,this.attach=new lu,this.detach=new lu,this.overlayKeydown=new lu,this.overlayOutsideClick=new lu,this._templatePortal=new uv(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=D_(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=D_(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=D_(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=D_(t)}get push(){return this._push}set push(t){this._push=D_(t)}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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=Wv);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||this.disableClose||T_(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new kv({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return i=>i.lift(new gv(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Yv),Ro(Lc),Ro(Nc),Ro(Uv),Ro(xb,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[ae]}),t})();const Xv={provide:Uv,deps:[Yv],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Gv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[Yv,Xv],imports:[[Ob,fv,ov],ov]}),t})();const $v=["underline"],Jv=["connectionContainer"],Qv=["inputContainer"],Zv=["label"];function tT(t,e){1&t&&(Io(0),Do(1,"div",14),No(2,"div",15),No(3,"div",16),No(4,"div",17),Po(),Do(5,"div",18),No(6,"div",15),No(7,"div",16),No(8,"div",17),Po(),Bo())}function eT(t,e){1&t&&(Do(0,"div",19),Qo(1,1),Po())}function iT(t,e){if(1&t&&(Io(0),Qo(1,2),Do(2,"span"),Aa(3),Po(),Bo()),2&t){const t=Go(2);Qs(3),va(t._control.placeholder)}}function nT(t,e){1&t&&Qo(0,3,["*ngSwitchCase","true"])}function sT(t,e){1&t&&(Do(0,"span",23),Aa(1," *"),Po())}function rT(t,e){if(1&t){const t=Ho();Do(0,"label",20,21),Wo("cdkObserveContent",function(){return Re(t),Go().updateOutlineGap()}),Lo(2,iT,4,1,"ng-container",12),Lo(3,nT,1,0,"ng-content",12),Lo(4,sT,2,0,"span",22),Po()}if(2&t){const t=Go();ua("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),xo("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),So("for",t._control.id)("aria-owns",t._control.id),Qs(2),xo("ngSwitchCase",!1),Qs(1),xo("ngSwitchCase",!0),Qs(1),xo("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function oT(t,e){1&t&&(Do(0,"div",24),Qo(1,4),Po())}function aT(t,e){if(1&t&&(Do(0,"div",25,26),No(2,"span",27),Po()),2&t){const t=Go();Qs(2),ua("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function cT(t,e){1&t&&(Do(0,"div"),Qo(1,5),Po()),2&t&&xo("@transitionMessages",Go()._subscriptAnimationState)}function uT(t,e){if(1&t&&(Do(0,"div",31),Aa(1),Po()),2&t){const t=Go(2);xo("id",t._hintLabelId),Qs(1),va(t.hintLabel)}}function lT(t,e){if(1&t&&(Do(0,"div",28),Lo(1,uT,2,2,"div",29),Qo(2,6),No(3,"div",30),Qo(4,7),Po()),2&t){const t=Go();xo("@transitionMessages",t._subscriptAnimationState),Qs(1),xo("ngIf",t.hintLabel)}}const hT=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],dT=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let pT=0;const fT=new Ui("MatError");let gT=(()=>{class t{constructor(t,e){this.id="mat-error-"+pT++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(Yi("aria-live"),Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&So("id",e.id)},inputs:{id:"id"},features:[Ua([{provide:fT,useExisting:t}])]}),t})();const mT={transitionMessages:Nb("transitionMessages",[qb("enter",Hb({opacity:1,transform:"translateY(0%)"})),Yb("void => enter",[Hb({opacity:0,transform:"translateY(-5px)"}),Ib("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let _T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t}),t})(),bT=0;const yT=new Ui("MatHint");let wT=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+bT++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(So("id",e.id)("align",null),ua("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[Ua([{provide:yT,useExisting:t}])]}),t})(),MT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-label"]]}),t})(),AT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-placeholder"]]}),t})();const vT=new Ui("MatPrefix"),TT=new Ui("MatSuffix");let kT=0;class ST{constructor(t){this._elementRef=t}}const CT=yM(ST,"primary"),ET=new Ui("MAT_FORM_FIELD_DEFAULT_OPTIONS"),LT=new Ui("MatFormField");let zT=(()=>{class t extends CT{constructor(t,e,i,n,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new v,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+kT++,this._labelId="mat-form-field-label-"+kT++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=D_(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(tf(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(IA(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(IA(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),U(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(tf(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(tf(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(IA(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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_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,gA(this._label.nativeElement,"transitionend").pipe(Jp(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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),r=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Xh,_M,sb],_M]}),t})();function xT(...t){if(1===t.length){const e=t[0];if(c(e))return OT(e,null);if(u(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return OT(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return OT(t=1===t.length&&c(t[0])?t[0]:t,null).pipe(P(t=>e(...t)))}return OT(t,null)}function OT(t,e){return new b(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let r=0,o=0;for(let a=0;a{u||(u=!0,o++),s[a]=t},error:t=>i.error(t),complete:()=>{r++,r!==n&&u||(o===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}let DT=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(ec),Ro(Qa))},t.\u0275dir=Gt({type:t}),t})(),PT=(()=>{class t extends DT{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,features:[po]}),t})();const NT=new Ui("NgValueAccessor"),IT={provide:NT,useExisting:rt(()=>FT),multi:!0},BT=new Ui("CompositionEventMode");let FT=(()=>{class t extends DT{constructor(t,e,i){super(t,e),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=El()?El().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(ec),Ro(Qa),Ro(BT,8))},t.\u0275dir=Gt({type:t,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(t,e){1&t&&Wo("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[Ua([IT]),po]}),t})();function HT(t){return null==t||0===t.length}function qT(t){return null!=t&&"number"==typeof t.length}const jT=new Ui("NgValidators"),YT=new Ui("NgAsyncValidators"),WT=/^(?=.{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 UT{static min(t){return function(t){return e=>{if(HT(e.value)||HT(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(HT(e.value)||HT(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return KT(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return HT(t.value)||WT.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>HT(e.value)||!qT(e.value)?null:e.value.lengthqT(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return VT;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(HT(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}(t)}static nullValidator(t){return null}static compose(t){return ZT(t)}static composeAsync(t){return ek(t)}}function KT(t){return HT(t.value)?{required:!0}:null}function VT(t){return null}function XT(t){return null!=t}function GT(t){const e=qo(t)?F(t):t;return Yo(e),e}function $T(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function JT(t,e){return e.map(e=>e(t))}function QT(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function ZT(t){if(!t)return null;const e=t.filter(XT);return 0==e.length?null:function(t){return $T(JT(t,e))}}function tk(t){return null!=t?ZT(QT(t)):null}function ek(t){if(!t)return null;const e=t.filter(XT);return 0==e.length?null:function(t){return xT(JT(t,e).map(GT)).pipe(P($T))}}function ik(t){return null!=t?ek(QT(t)):null}function nk(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function sk(t){return t._rawValidators}function rk(t){return t._rawAsyncValidators}let ok=(()=>{class t{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(t){this._rawValidators=t||[],this._composedValidatorFn=tk(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=ik(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t}),t})(),ak=(()=>{class t extends ok{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,features:[po]}),t})();class ck extends ok{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class uk{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let lk=(()=>{class t extends uk{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(ck,2))},t.\u0275dir=Gt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ua("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[po]}),t})(),hk=(()=>{class t extends uk{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(ak,10))},t.\u0275dir=Gt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&ua("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[po]}),t})();function dk(t,e){gk(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&_k(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&_k(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function pk(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),mk(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function fk(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function gk(t,e){const i=sk(t);null!==e.validator?t.setValidators(nk(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const n=rk(t);null!==e.asyncValidator?t.setAsyncValidators(nk(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const s=()=>t.updateValueAndValidity();fk(e._rawValidators,s),fk(e._rawAsyncValidators,s)}function mk(t,e){let i=!1;if(null!==t){if(null!==e.validator){const n=sk(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=rk(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}const n=()=>{};return fk(e._rawValidators,n),fk(e._rawAsyncValidators,n),i}function _k(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function bk(t,e){gk(t,e)}function yk(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function wk(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Mk(t,e){if(!e)return null;let i,n,s;return Array.isArray(e),e.forEach(t=>{t.constructor===FT?i=t:Object.getPrototypeOf(t.constructor)===PT?n=t:s=t}),s||n||i||null}function Ak(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function vk(t){return(Ck(t)?t.validators:t)||null}function Tk(t){return Array.isArray(t)?tk(t):t||null}function kk(t,e){return(Ck(e)?e.asyncValidators:t)||null}function Sk(t){return Array.isArray(t)?ik(t):t||null}function Ck(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Ek{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Tk(this._rawValidators),this._composedAsyncValidatorFn=Sk(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=Tk(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Sk(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=GT(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof zk?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof Rk&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new lu,this.statusChanges=new lu}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Ck(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Lk extends Ek{constructor(t=null,e,i){super(vk(e),kk(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Ak(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Ak(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class zk extends Ek{constructor(t,e,i){super(vk(e),kk(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof Lk?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Rk extends Ek{constructor(t,e,i){super(vk(e),kk(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Lk?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const xk={provide:ak,useExisting:rt(()=>Dk)},Ok=(()=>Promise.resolve(null))();let Dk=(()=>{class t extends ak{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new lu,this.form=new zk({},tk(t),ik(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ok.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),dk(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ok.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Ak(this._directives,t)})}addFormGroup(t){Ok.then(()=>{const e=this._findContainer(t.path),i=new zk({});bk(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ok.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Ok.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,wk(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Ro(jT,10),Ro(YT,10))},t.\u0275dir=Gt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Wo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ua([xk]),po]}),t})();const Pk={provide:ck,useExisting:rt(()=>Ik)},Nk=(()=>Promise.resolve(null))();let Ik=(()=>{class t extends ck{constructor(t,e,i,n){super(),this.control=new Lk,this._registered=!1,this.update=new lu,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=Mk(0,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),yk(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){dk(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(t){Nk.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Nk.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Ro(ak,9),Ro(jT,10),Ro(YT,10),Ro(NT,10))},t.\u0275dir=Gt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ua([Pk]),po,ae]}),t})(),Bk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Fk={provide:NT,useExisting:rt(()=>Hk),multi:!0};let Hk=(()=>{class t extends PT{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&Wo("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[Ua([Fk]),po]}),t})(),qk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})();const jk=new Ui("NgModelWithFormControlWarning"),Yk={provide:ck,useExisting:rt(()=>Wk)};let Wk=(()=>{class t extends ck{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new lu,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=Mk(0,i)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&pk(e,this,!1),dk(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}yk(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&pk(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(Ro(jT,10),Ro(YT,10),Ro(NT,10),Ro(jk,8))},t.\u0275dir=Gt({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ua([Yk]),po,ae]}),t._ngModelWarningSentOnce=!1,t})();const Uk={provide:ak,useExisting:rt(()=>Kk)};let Kk=(()=>{class t extends ak{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new lu,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(mk(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return dk(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){pk(t.control||null,t,!1),Ak(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,wk(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,i=this.form.get(t.path);e!==i&&(pk(e||null,t),i instanceof Lk&&(dk(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);bk(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return mk(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){gk(this.form,this),this._oldForm&&mk(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(Ro(jT,10),Ro(YT,10))},t.\u0275dir=Gt({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&Wo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ua([Uk]),po,ae]}),t})();const Vk={provide:jT,useExisting:rt(()=>Xk),multi:!0};let Xk=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?KT(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&So("required",e.required?"":null)},inputs:{required:"required"},features:[Ua([Vk])]}),t})(),Gk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[qk]]}),t})(),$k=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[Gk]}),t})(),Jk=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:jk,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[Gk]}),t})();const Qk=["trigger"],Zk=["panel"];function tS(t,e){if(1&t&&(Do(0,"span",8),Aa(1),Po()),2&t){const t=Go();Qs(1),va(t.placeholder)}}function eS(t,e){if(1&t&&(Do(0,"span",12),Aa(1),Po()),2&t){const t=Go(2);Qs(1),va(t.triggerValue)}}function iS(t,e){1&t&&Qo(0,0,["*ngSwitchCase","true"])}function nS(t,e){1&t&&(Do(0,"span",9),Lo(1,eS,2,1,"span",10),Lo(2,iS,1,0,"ng-content",11),Po()),2&t&&(xo("ngSwitch",!!Go().customTrigger),Qs(2),xo("ngSwitchCase",!0))}function sS(t,e){if(1&t){const t=Ho();Do(0,"div",13),Do(1,"div",14,15),Wo("@transformPanel.done",function(e){return Re(t),Go()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return Re(t),Go()._handleKeydown(e)}),Qo(3,1),Po(),Po()}if(2&t){const t=Go();xo("@transformPanelWrap",void 0),Qs(1),Ca("mat-select-panel ",t._getPanelTheme(),""),ca("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),xo("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),So("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const rS=[[["mat-select-trigger"]],"*"],oS=["mat-select-trigger","*"],aS={transformPanelWrap:Nb("transformPanelWrap",[Yb("* => void",Ub("@transformPanel",[Wb()],{optional:!0}))]),transformPanel:Nb("transformPanel",[qb("void",Hb({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),qb("showing",Hb({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),qb("showing-multiple",Hb({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Yb("void => *",Ib("120ms cubic-bezier(0, 0, 0.2, 1)")),Yb("* => void",Ib("100ms 25ms linear",Hb({opacity:0})))])};let cS=0;const uS=new Ui("mat-select-scroll-strategy"),lS=new Ui("MAT_SELECT_CONFIG"),hS={provide:uS,deps:[Yv],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class dS{constructor(t,e){this.source=t,this.value=e}}class pS{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const fS=wM(MM(bM(AM(pS)))),gS=new Ui("MatSelectTrigger");let mS=(()=>{class t extends fS{constructor(t,e,i,n,s,r,o,a,c,u,l,h,d,p){var f,g,m;super(s,n,o,a,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=c,this.ngControl=u,this._liveAnnouncer=d,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+cS++,this._triggerAriaLabelledBy=null,this._destroy=new v,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+cS++,this._panelDoneAnimatingStream=new v,this._overlayPanelClass=(null===(f=this._defaultOptions)||void 0===f?void 0:f.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(m=null===(g=this._defaultOptions)||void 0===g?void 0:g.disableOptionCentering)&&void 0!==m&&m,this.ariaLabel="",this.optionSelectionChanges=Kp(()=>{const t=this.options;return t?t.changes.pipe(tf(t),Vp(()=>U(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Jp(1),Vp(()=>this.optionSelectionChanges))}),this.openedChange=new lu,this._openedStream=this.openedChange.pipe(Nd(t=>t),P(()=>{})),this._closedStream=this.openedChange.pipe(Nd(t=>!t),P(()=>{})),this.selectionChange=new lu,this.valueChange=new lu,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==p?void 0:p.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=p.typeaheadDebounceInterval),this._scrollStrategyFactory=h,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(l)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=D_(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=D_(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=D_(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=P_(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new ZA(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(LA(),IA(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(IA(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(tf(null),IA(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.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(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,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 t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=40===e||38===e||37===e||39===e,n=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&n&&!T_(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=40===i||38===i,s=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(s||13!==i&&32!==i||!e.activeItem||T_(t))if(!s&&this._multiple&&65===i&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.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(Jp(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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new pb(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(IA(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(IA(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 t=U(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(IA(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),U(...this.options.map(t=>t._stateChanges)).pipe(IA(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(Ro(sv),Ro(Tc),Ro($u),Ro(DM),Ro(Qa),Ro(xb,8),Ro(Dk,8),Ro(Kk,8),Ro(LT,8),Ro(ck,10),Yi("tabindex"),Ro(uS),Ro(Ab),Ro(lS,8))},t.\u0275dir=Gt({type:t,viewQuery:function(t,e){if(1&t&&(vu(Qk,5),vu(Zk,5),vu(Vv,5)),2&t){let t;Au(t=ku())&&(e.trigger=t.first),Au(t=ku())&&(e.panel=t.first),Au(t=ku())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[po,ae]}),t})(),_S=(()=>{class t extends mS{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(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(IA(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(Jp(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=rA(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=oA((t+e)*i,i,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new dS(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const r=0-(t.left+s-(i?n:0)),o=t.right+s-e.width+(i?0:n);r>0?s+=r+8:o>0&&(s-=o+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,r=Math.floor(256/n);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-r))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>n?this._adjustPanelDown(r,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=rA(s,this.options,this.optionGroups);const r=i/2;this._scrollTop=this._calculateOverlayScroll(s,r,n),this._offsetY=this._calculateOverlayOffsetY(s,r,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,gS,5),Tu(i,sA,5),Tu(i,tA,5)),2&t){let t;Au(t=ku())&&(e.customTrigger=t.first),Au(t=ku())&&(e.options=t),Au(t=ku())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&Wo("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(So("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),ua("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Ua([{provide:_T,useExisting:t},{provide:GM,useExisting:t}]),po],ngContentSelectors:oS,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(t,e){if(1&t&&(Jo(rS),Do(0,"div",0,1),Wo("click",function(){return e.toggle()}),Do(3,"div",2),Lo(4,tS,2,1,"span",3),Lo(5,nS,3,2,"span",4),Po(),Do(6,"div",5),No(7,"div",6),Po(),Po(),Lo(8,sS,4,14,"ng-template",7),Wo("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=zo(1);So("aria-owns",e.panelOpen?e.id+"-panel":null),Qs(3),xo("ngSwitch",e.empty),So("id",e._valueId),Qs(1),xo("ngSwitchCase",!0),Qs(1),xo("ngSwitchCase",!1),Qs(3),xo("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[Kv,Nh,Ih,Vv,Bh,Eh],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[aS.transformPanelWrap,aS.transformPanel]},changeDetection:0}),t})(),bS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[hS],imports:[[Xh,Gv,aA,_M],rv,RT,aA,_M]}),t})();class yS{constructor(t){this.total=t}call(t,e){return e.subscribe(new wS(t,this.total))}}class wS extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const MS=new Set;let AS,vS=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):TS}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!MS.has(t))try{AS||(AS=document.createElement("style"),AS.setAttribute("type","text/css"),document.head.appendChild(AS)),AS.sheet&&(AS.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),MS.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(un(j_))},t.\u0275prov=dt({factory:function(){return new t(un(j_))},token:t,providedIn:"root"}),t})();function TS(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let kS=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new v}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return SS(I_(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=Fp(SS(I_(t)).map(t=>this._registerQuery(t).observable));return e=Yp(e.pipe(Jp(1)),e.pipe(t=>t.lift(new yS(1)),z_(0))),e.pipe(P(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new b(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(tf(e),P(({matches:e})=>({query:t,matches:e})),IA(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(un(vS),un($u))},t.\u0275prov=dt({factory:function(){return new t(un(vS),un($u))},token:t,providedIn:"root"}),t})();function SS(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const CS={tooltipState:Nb("state",[qb("initial, void, hidden",Hb({opacity:0,transform:"scale(0)"})),qb("visible",Hb({transform:"scale(1)"})),Yb("* => visible",Ib("200ms cubic-bezier(0, 0, 0.2, 1)",jb([Hb({opacity:0,transform:"scale(0)",offset:0}),Hb({opacity:.5,transform:"scale(0.99)",offset:.5}),Hb({opacity:1,transform:"scale(1)",offset:1})]))),Yb("* => hidden",Ib("100ms cubic-bezier(0, 0, 0.2, 1)",Hb({opacity:0})))])},ES=$_({passive:!0}),LS=new Ui("mat-tooltip-scroll-strategy"),zS={provide:LS,deps:[Yv],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},RS=new Ui("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let xS=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u,l,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=u,this._defaultOptions=l,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 v,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!T_(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=h,l&&(l.position&&(this.position=l.position),l.touchGestures&&(this.touchGestures=l.touchGestures)),u.change.pipe(IA(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=D_(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).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(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(IA(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,ES)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new cv(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(IA(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe(IA(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(IA(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Jp(1),IA(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:n}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===n?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_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 t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,ES)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(Ro(Yv),Ro(Qa),Ro(iv),Ro(Nc),Ro($u),Ro(j_),Ro(ub),Ro(Cb),Ro(void 0),Ro(xb),Ro(void 0),Ro(Ll))},t.\u0275dir=Gt({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),OS=(()=>{class t extends xS{constructor(t,e,i,n,s,r,o,a,c,u,l,h){super(t,e,i,n,s,r,o,a,c,u,l,h),this._tooltipComponent=PS}}return t.\u0275fac=function(e){return new(e||t)(Ro(Yv),Ro(Qa),Ro(iv),Ro(Nc),Ro($u),Ro(j_),Ro(ub),Ro(Cb),Ro(LS),Ro(xb,8),Ro(RS,8),Ro(Ll))},t.\u0275dir=Gt({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[po]}),t})(),DS=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new v}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Tc))},t.\u0275dir=Gt({type:t}),t})(),PS=(()=>{class t extends DS{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(Ro(Tc),Ro(kS))},t.\u0275cmp=Yt({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&Wo("click",function(){return e._handleBodyInteraction()},!1,ls)("auxclick",function(){return e._handleBodyInteraction()},!1,ls),2&t&&ca("zoom","visible"===e._visibility?1:null)},features:[po],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(Do(0,"div",0),Wo("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),nu(1,"async"),Aa(2),Po()),2&t){let t;ua("mat-tooltip-handset",null==(t=su(1,5,e._isHandset))?null:t.matches),xo("ngClass",e.tooltipClass)("@state",e._visibility),Qs(2),va(e.message)}},directives:[Eh],pipes:[Uh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[CS.tooltipState]},changeDetection:0}),t})(),NS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[zS],imports:[[zb,Xh,Gv,_M],_M,rv]}),t})();function IS(t,e){if(1&t&&(Do(0,"mat-option",19),Aa(1),Po()),2&t){const t=e.$implicit;xo("value",t),Qs(1),Ta(" ",t," ")}}function BS(t,e){if(1&t){const t=Ho();Do(0,"mat-form-field",16),Do(1,"mat-select",17),Wo("selectionChange",function(e){return Re(t),Go(2)._changePageSize(e.value)}),Lo(2,IS,2,2,"mat-option",18),Po(),Po()}if(2&t){const t=Go(2);xo("appearance",t._formFieldAppearance)("color",t.color),Qs(1),xo("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),Qs(1),xo("ngForOf",t._displayedPageSizeOptions)}}function FS(t,e){if(1&t&&(Do(0,"div",20),Aa(1),Po()),2&t){const t=Go(2);Qs(1),va(t.pageSize)}}function HS(t,e){if(1&t&&(Do(0,"div",12),Do(1,"div",13),Aa(2),Po(),Lo(3,BS,3,6,"mat-form-field",14),Lo(4,FS,2,1,"div",15),Po()),2&t){const t=Go();Qs(2),Ta(" ",t._intl.itemsPerPageLabel," "),Qs(1),xo("ngIf",t._displayedPageSizeOptions.length>1),Qs(1),xo("ngIf",t._displayedPageSizeOptions.length<=1)}}function qS(t,e){if(1&t){const t=Ho();Do(0,"button",21),Wo("click",function(){return Re(t),Go().firstPage()}),ri(),Do(1,"svg",7),No(2,"path",22),Po(),Po()}if(2&t){const t=Go();xo("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),So("aria-label",t._intl.firstPageLabel)}}function jS(t,e){if(1&t){const t=Ho();ri(),oi(),Do(0,"button",23),Wo("click",function(){return Re(t),Go().lastPage()}),ri(),Do(1,"svg",7),No(2,"path",24),Po(),Po()}if(2&t){const t=Go();xo("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),So("aria-label",t._intl.lastPageLabel)}}let YS=(()=>{class t{constructor(){this.changes=new v,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const WS={provide:YS,deps:[[new fn,new gn,YS]],useFactory:function(t){return t||new YS}},US=new Ui("MAT_PAGINATOR_DEFAULT_OPTIONS");class KS{}const VS=bM(vM(KS));let XS=(()=>{class t extends VS{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new lu,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(P_(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=P_(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(P_(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>P_(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=D_(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=D_(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(Ro(YS),Ro(Tc),Ro(void 0))},t.\u0275dir=Gt({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[po]}),t})(),GS=(()=>{class t extends XS{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(Ro(YS),Ro(Tc),Ro(US,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[po],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(Do(0,"div",0),Do(1,"div",1),Lo(2,HS,5,3,"div",2),Do(3,"div",3),Do(4,"div",4),Aa(5),Po(),Lo(6,qS,3,5,"button",5),Do(7,"button",6),Wo("click",function(){return e.previousPage()}),ri(),Do(8,"svg",7),No(9,"path",8),Po(),Po(),oi(),Do(10,"button",9),Wo("click",function(){return e.nextPage()}),ri(),Do(11,"svg",7),No(12,"path",10),Po(),Po(),Lo(13,jS,3,5,"button",11),Po(),Po(),Po()),2&t&&(Qs(2),xo("ngIf",!e.hidePageSize),Qs(3),Ta(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),Qs(1),xo("ngIf",e.showFirstLastButtons),Qs(1),xo("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),So("aria-label",e._intl.previousPageLabel),Qs(3),xo("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),So("aria-label",e._intl.nextPageLabel),Qs(3),xo("ngIf",e.showFirstLastButtons))},directives:[xh,pA,OS,zT,_S,zh,sA],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),$S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[WS],imports:[[Xh,fA,bS,NS,_M]]}),t})();function JS(t,e=L_){var i;const n=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new QS(n,e))}class QS{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new ZS(t,this.delay,this.scheduler))}}class ZS extends f{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(ZS.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new tC(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(UA.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(UA.createComplete()),this.unsubscribe()}}class tC{constructor(t,e){this.time=t,this.notification=e}}const eC=["mat-menu-item",""],iC=["*"];function nC(t,e){if(1&t){const t=Ho();Do(0,"div",0),Wo("keydown",function(e){return Re(t),Go()._handleKeydown(e)})("click",function(){return Re(t),Go().closed.emit("click")})("@transformMenu.start",function(e){return Re(t),Go()._onAnimationStart(e)})("@transformMenu.done",function(e){return Re(t),Go()._onAnimationDone(e)}),Do(1,"div",1),Qo(2),Po(),Po()}if(2&t){const t=Go();xo("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),So("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const sC={transformMenu:Nb("transformMenu",[qb("void",Hb({opacity:0,transform:"scale(0.8)"})),Yb("void => enter",Ib("120ms cubic-bezier(0, 0, 0.2, 1)",Hb({opacity:1,transform:"scale(1)"}))),Yb("* => void",Ib("100ms 25ms linear",Hb({opacity:0})))]),fadeInItems:Nb("fadeInItems",[qb("showing",Hb({opacity:1})),Yb("void => *",[Hb({opacity:0}),Ib("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},rC=new Ui("MatMenuContent"),oC=new Ui("MAT_MENU_PANEL");class aC{}const cC=wM(bM(aC));let uC=(()=>{class t extends cC{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new v,this._focused=new v,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new du,this._tabSubscription=h.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new v,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new lu,this.close=this.closed,this.panelId="mat-menu-panel-"+hC++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=D_(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=D_(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new fb(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(tf(this._directDescendantItems),Vp(t=>U(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(tf(this._directDescendantItems),Vp(t=>U(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:T_(t)||(t.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:38!==e&&40!==e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Jp(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(tf(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro($u),Ro(lC))},t.\u0275dir=Gt({type:t,contentQueries:function(t,e,i){if(1&t&&(Tu(i,rC,5),Tu(i,uC,5),Tu(i,uC,4)),2&t){let t;Au(t=ku())&&(e.lazyContent=t.first),Au(t=ku())&&(e._allItems=t),Au(t=ku())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&vu(Lc,5),2&t){let t;Au(t=ku())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),pC=(()=>{class t extends dC{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro($u),Ro(lC))},t.\u0275cmp=Yt({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&So("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Ua([{provide:oC,useExisting:t}]),po],ngContentSelectors:iC,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(Jo(),Lo(0,nC,3,6,"ng-template"))},directives:[Eh],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[sC.transformMenu,sC.fadeInItems]},changeDetection:0}),t})();const fC=new Ui("mat-menu-scroll-strategy"),gC={provide:fC,deps:[Yv],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},mC=$_({passive:!0});let _C=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=r,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=h.EMPTY,this._hoverSubscription=h.EMPTY,this._menuCloseSubscription=h.EMPTY,this._handleTouchStart=t=>{Tb(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new lu,this.onMenuOpen=this.menuOpened,this.menuClosed=new lu,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=s instanceof dC?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,mC),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,mC),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof dC&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof dC?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Nd(t=>"void"===t.toState),Jp(1),IA(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new kv({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[n,s],[a,c]=[e,i],u=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",u="bottom"===n?8:-8):this.menu.overlapTrigger||(r="top"===n?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:n,offsetY:u},{originX:i,originY:r,overlayX:c,overlayY:n,offsetY:u},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-u},{originX:i,originY:o,overlayX:c,overlayY:s,offsetY:-u}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments();return U(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Dd(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Nd(t=>t!==this._menuItemInstance),Nd(()=>this._menuOpen)):Dd(),e)}_handleMousedown(t){vb(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;13!==e&&32!==e||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Nd(t=>t===this._menuItemInstance&&!t.disabled),JS(0,CA)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof dC&&this.menu._isAnimating?this.menu._animationDone.pipe(Jp(1),JS(0,CA),IA(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new uv(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(Ro(Yv),Ro(Qa),Ro(Nc),Ro(fC),Ro(oC,8),Ro(uC,10),Ro(xb,8),Ro(Cb))},t.\u0275dir=Gt({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&Wo("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&So("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),bC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[gC],imports:[_M]}),t})(),yC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[gC],imports:[[Xh,_M,KM,Gv,bC],rv,_M,bC]}),t})();const wC=["*"];function MC(t){return Error(`Unable to find icon with the name "${t}"`)}function AC(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function vC(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class TC{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let kC=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new TC(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,n){const s=this._sanitizer.sanitize(Qn.HTML,i);if(!s)throw vC(i);return this._addSvgIconConfig(t,e,new TC("",s,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new TC(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(Qn.HTML,e);if(!n)throw vC(e);return this._addSvgIconSetConfig(t,new TC("",n,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(Qn.RESOURCE_URL,t);if(!e)throw AC(t);const i=this._cachedIconsByUrl.get(e);return i?Dd(SC(i)):this._loadSvgIconFromConfig(new TC(t,null)).pipe(wf(t=>this._cachedIconsByUrl.set(e,t)),P(t=>SC(t)))}getNamedSvgIcon(t,e=""){const i=CC(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):YA(MC(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Dd(SC(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(P(t=>SC(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?Dd(i):xT(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(rf(e=>{const i=this._sanitizer.sanitize(Qn.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),Dd(null)})))).pipe(P(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw MC(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(wf(e=>t.svgText=e),P(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Dd(null):this._fetchIcon(t).pipe(wf(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(r)),Z());return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(CC(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),RC=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],xC=RC.map(t=>`[${t}]`).join(", "),OC=/^url\(['"]?#(.*?)['"]?\)$/;let DC=(()=>{class t extends LC{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=h.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=D_(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(xC),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],r=s.getAttribute(t),o=r?r.match(OC):null;if(o){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe(Jp(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(kC),Yi("aria-hidden"),Ro(zC),Ro(as))},t.\u0275cmp=Yt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(So("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),ua("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[po],ngContentSelectors:wC,decls:1,vars:0,template:function(t,e){1&t&&(Jo(),Qo(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),PC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[_M],_M]}),t})();class NC{}let IC=(()=>{class t extends NC{getTranslation(t){return Dd({})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class BC{}let FC=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function HC(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,n,s,r=typeof t;if(r==typeof e&&"object"==r){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in s=Object.create(null),t){if(!HC(t[n],e[n]))return!1;s[n]=!0}for(n in e)if(!(n in s)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n{jC(e[n])?n in t?i[n]=YC(t[n],e[n]):Object.assign(i,{[n]:e[n]}):Object.assign(i,{[n]:e[n]})}),i}class WC{}let UC=(()=>{class t extends WC{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let i;return i="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,i}getValue(t,e){let i="string"==typeof e?e.split("."):[e];e="";do{e+=i.shift(),!qC(t)||!qC(t[e])||"object"!=typeof t[e]&&i.length?i.length?e+=".":t=void 0:(t=t[e],e="")}while(i.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,i)=>{let n=this.getValue(e,i);return qC(n)?n:t}):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class KC{}let VC=(()=>{class t extends KC{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class XC{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new lu,this.onLangChange=new lu,this.onDefaultLangChange=new lu}}const GC=new Ui("USE_STORE"),$C=new Ui("USE_DEFAULT_LANG"),JC=new Ui("DEFAULT_LANGUAGE"),QC=new Ui("USE_EXTEND");let ZC=(()=>{class t{constructor(t,e,i,n,s,r=!0,o=!1,a=!1,c){this.store=t,this.currentLoader=e,this.compiler=i,this.parser=n,this.missingTranslationHandler=s,this.useDefaultLang=r,this.isolate=o,this.extend=a,this.pending=!1,this._onTranslationChange=new lu,this._onLangChange=new lu,this._onDefaultLangChange=new lu,this._langs=[],this._translations={},this._translationRequests={},c&&this.setDefaultLang(c)}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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe(Jp(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return Dd(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(Jp(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),Dd(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe($A(1),Jp(1));return this.loadingTranslations=e.pipe(P(e=>this.compiler.compileTranslations(e,t)),$A(1),Jp(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,i=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?YC(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,i){let n;if(e instanceof Array){let n={},s=!1;for(let r of e)n[r]=this.getParsedResult(t,r,i),EA(n[r])&&(s=!0);return s?xT(e.map(t=>EA(n[t])?n[t]:Dd(n[t]))).pipe(P(t=>{let i={};return t.forEach((t,n)=>{i[e[n]]=t}),i})):n}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){let t={key:e,translateService:this};void 0!==i&&(t.interpolateParams=i),n=this.missingTranslationHandler.handle(t)}return void 0!==n?n:e}get(t,e){if(!qC(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Pd(i=>EA(i=this.getParsedResult(i,t,e))?i:Dd(i)));{let i=this.getParsedResult(this.translations[this.currentLang],t,e);return EA(i)?i:Dd(i)}}getStreamOnTranslationChange(t,e){if(!qC(t)||!t.length)throw new Error('Parameter "key" required');return Yp(Kp(()=>this.get(t,e)),this.onTranslationChange.pipe(Vp(i=>{const n=this.getParsedResult(i.translations,t,e);return"function"==typeof n.subscribe?n:Dd(n)})))}stream(t,e){if(!qC(t)||!t.length)throw new Error('Parameter "key" required');return Yp(Kp(()=>this.get(t,e)),this.onLangChange.pipe(Vp(i=>{const n=this.getParsedResult(i.translations,t,e);return EA(n)?n:Dd(n)})))}instant(t,e){if(!qC(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,e);if(EA(i)){if(t instanceof Array){let e={};return t.forEach((i,n)=>{e[t[n]]=t[n]}),e}return t}return i}set(t,e,i=this.currentLang){this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(un(XC),un(NC),un(KC),un(WC),un(BC),un($C),un(GC),un(QC),un(JC))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),tE=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,i){let n=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,e);EA(s.subscribe)?s.subscribe(n):n(s)}this.translate.get(t,e).subscribe(n)}transform(t,...e){if(!t||!t.length)return t;if(HC(t,this.lastKey)&&HC(e,this.lastParams))return this.value;let i;if(qC(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(t)}catch(n){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(i=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(Ro(ZC,16),Ro(Tc,16))},t.\u0275pipe=$t({name:"translate",type:t,pure:!1}),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),eE=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:NC,useClass:IC},e.compiler||{provide:KC,useClass:VC},e.parser||{provide:WC,useClass:UC},e.missingTranslationHandler||{provide:BC,useClass:FC},XC,{provide:GC,useValue:e.isolate},{provide:$C,useValue:e.useDefaultLang},{provide:QC,useValue:e.extend},{provide:JC,useValue:e.defaultLanguage},ZC]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:NC,useClass:IC},e.compiler||{provide:KC,useClass:VC},e.parser||{provide:WC,useClass:UC},e.missingTranslationHandler||{provide:BC,useClass:FC},{provide:GC,useValue:e.isolate},{provide:$C,useValue:e.useDefaultLang},{provide:QC,useValue:e.extend},{provide:JC,useValue:e.defaultLanguage},ZC]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})(),iE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[],imports:[[$S,yC,PC,fA,eE,Xh]]}),t})();function nE(t,e){}class sE{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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const rE={dialogContainer:Nb("dialogContainer",[qb("void, exit",Hb({opacity:0,transform:"scale(0.7)"})),qb("enter",Hb({transform:"none"})),Yb("* => enter",Ib("150ms cubic-bezier(0, 0, 0.2, 1)",Hb({transform:"none",opacity:1}))),Yb("* => void, * => exit",Ib("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Hb({opacity:0})))])};let oE=(()=>{class t extends hv{constructor(t,e,i,n,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=s,this._focusMonitor=r,this._animationStateChanged=new lu,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=tb(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=tb())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=tb();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(yb),Ro(Tc),Ro(Ll,8),Ro(sE),Ro(Cb))},t.\u0275dir=Gt({type:t,viewQuery:function(t,e){if(1&t&&vu(pv,7),2&t){let t;Au(t=ku())&&(e._portalOutlet=t.first)}},features:[po]}),t})(),aE=(()=>{class t extends oE{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Uo("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(Ea("id",e._id),So("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),La("@dialogContainer",e._state))},features:[po],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Lo(0,nE,0,0,"ng-template",0)},directives:[pv],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[rE.dialogContainer]}}),t})(),cE=0;class uE{constructor(t,e,i="mat-dialog-"+cE++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new v,this._afterClosed=new v,this._beforeClosed=new v,this._state=0,e._id=i,e._animationStateChanged.pipe(Nd(t=>"opened"===t.state),Jp(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Nd(t=>"closed"===t.state),Jp(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Nd(t=>27===t.keyCode&&!this.disableClose&&!T_(t))).subscribe(t=>{t.preventDefault(),lE(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():lE(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Nd(t=>"closing"===t.state),Jp(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function lE(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const hE=new Ui("MatDialogData"),dE=new Ui("mat-dialog-default-options"),pE=new Ui("mat-dialog-scroll-strategy"),fE={provide:pE,deps:[Yv],useFactory:function(t){return()=>t.scrollStrategies.block()}};let gE=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new v,this._afterOpenedAtThisLevel=new v,this._ariaHiddenElements=new Map,this.afterAllClosed=Kp(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(tf(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new sE)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),n._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new kv({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=lo.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:sE,useValue:e}]}),n=new cv(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const s=new this._dialogRefConstructor(i,e,n.id);if(t instanceof Lc)e.attachTemplatePortal(new uv(t,null,{$implicit:n.data,dialogRef:s}));else{const i=this._createInjector(n,s,e),r=e.attachComponentPortal(new cv(t,n.viewContainerRef,i));s.componentInstance=r.instance}return s.updateSize(n.width,n.height).updatePosition(n.position),s}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(xb,null,Mt.Optional)||s.push({provide:xb,useValue:{value:t.direction,change:Dd()}}),lo.create({parent:n||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Yv),Ro(lo),Ro(void 0),Ro(void 0),Ro(xv),Ro(void 0),Ro(Vi),Ro(Vi),Ro(Ui))},t.\u0275dir=Gt({type:t}),t})(),mE=(()=>{class t extends gE{constructor(t,e,i,n,s,r,o){super(t,e,n,r,o,s,uE,aE,hE)}}return t.\u0275fac=function(e){return new(e||t)(un(Yv),un(lo),un(Wl,8),un(dE,8),un(pE),un(t,12),un(xv))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),_E=0,bE=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+_E++}ngOnInit(){this._dialogRef||(this._dialogRef=function(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(Ro(uE,8),Ro(Qa),Ro(mE))},t.\u0275dir=Gt({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&Ea("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),yE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),wE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),ME=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[mE,fE],imports:[[Gv,fv,_M],_M]}),t})();var AE=i(2051);const vE=[5,10,25,100];function TE(){const t=new sE;return t.disableClose=!0,t.autoFocus=!1,t}function kE(t){return"virt"===t.namespace.split(":")[4]}function SE(t,e,i,n){const s=e.active,r=e.direction;return s&&""!==r?t.sort((t,e)=>{const o=i(t,s,n),a=i(e,s,n);return new Intl.Collator("cs",{numeric:!0}).compare(o,a)*("asc"===r?1:-1)}):t}function CE(t,e,i,n,s,r){e=e.toLowerCase();let o="";return i.forEach(e=>{o+=";"+n(t,e,s)}),r&&(o+=";"+n(t,"uuid",s)),-1!==o.toLowerCase().indexOf(e)}function EE(t,e,i,n){const s=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(t=>!r.includes(t)),t.forEach(t=>{const r={};e.forEach(e=>{var s;r[e]=(null!==(s=i(t,e,n))&&void 0!==s?s:"").split('"').join("''").trim()}),s.push(r)}),s}function LE(t,e="csv",i="export"){switch(e){case"csv":{const n=(t,e)=>null===e?"":e,s=Object.keys(t[0]),r=t.map(t=>s.map(e=>JSON.stringify(t[e],n)).join(","));r.unshift(s.join(",").split(" ").join("_").split('"').join("''"));const o=r.join("\r\n"),a=new Blob([o],{type:"text/csv"});(0,AE.saveAs)(a,`${i}.${e}`)}}}let zE=(()=>{class t{constructor(){this.exportData=new lu}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(Do(0,"div",0),Do(1,"button",1),Do(2,"mat-icon"),Aa(3,"more_vert"),Po(),Po(),Do(4,"mat-menu",null,2),Do(6,"button",3),Aa(7),nu(8,"translate"),Po(),Po(),Do(9,"mat-menu",null,4),Do(11,"button",5),Wo("click",function(){return e.exportData.emit("csv")}),Aa(12,"Csv"),Po(),Po(),Po()),2&t){const t=zo(5),e=zo(10);Qs(1),xo("matMenuTriggerFor",t),Qs(5),xo("matMenuTriggerFor",e),Qs(1),Ta(" ",su(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[pA,_C,DC,pC,uC],pipes:[tE],styles:[""]}),t})();function RE(t,e){if(1&t){const t=Ho();Do(0,"perun-web-apps-table-options",6),Wo("exportData",function(e){return Re(t),Go().exportData.emit(e)}),Po()}}const xE=["*"];let OE=(()=>{class t{constructor(){this.hideExport=!1,this.page=new lu,this.pageSizeOptions=vE,this.pageSize=5,this.dataLength=0,this.exportData=new lu}set matPaginator(t){this.paginator=t}pageChanged(t){this.paginator.pageSize=t.pageSize,this.paginator.pageIndex=t.pageIndex,this.page.emit(t),this.paginator.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(t,e){if(1&t&&vu(GS,7),2&t){let t;Au(t=ku())&&(e.matPaginator=t.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",pageSize:"pageSize",dataLength:"dataLength"},outputs:{page:"page",exportData:"exportData"},ngContentSelectors:xE,decls:7,vars:8,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(t,e){1&t&&(Jo(),Do(0,"div",0),Do(1,"div",1),Do(2,"mat-paginator",2),Wo("page",function(t){return e.page.emit(t)}),Po(),Lo(3,RE,1,0,"perun-web-apps-table-options",3),Po(),Do(4,"div",4),Qo(5),Po(),Do(6,"mat-paginator",5),Wo("page",function(t){return e.pageChanged(t)}),Po(),Po()),2&t&&(Qs(2),xo("length",e.dataLength)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),Qs(1),xo("ngIf",!e.hideExport),Qs(3),xo("length",e.paginator.length)("pageIndex",e.paginator.pageIndex)("pageSizeOptions",e.paginator.pageSizeOptions)("pageSize",e.paginator.pageSize))},directives:[GS,xh,zE],styles:[""]}),t})(),DE=(()=>{class t{constructor(t){this.dialogRef=t}close(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(Ro(uE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),Po(),Do(3,"div",1),Aa(4),nu(5,"translate"),Po(),Do(6,"div",2),Do(7,"div",3),Do(8,"button",4),Wo("click",function(){return e.close()}),Aa(9),nu(10,"translate"),Po(),Po(),Po()),2&t&&(Qs(1),va(su(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),Qs(3),Ta(" ",su(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),Qs(5),Ta(" ",su(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[bE,yE,wE,pA],pipes:[tE],styles:[""]}),t})(),PE=(()=>{class t{constructor(){this.branding=""}setInstanceConfig(t){this.instanceConfig=t}setDefaultConfig(t){this.defaultConfig=t}setPerunPrincipal(t){this.principal=t}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(t){this.initialPageId=t}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(t){this.branding=t}skipOidc(){return this.get("skip_oidc")}get(...t){let e;if(""!==this.branding){const i=this.instanceConfig.brandings[this.branding];for(let n=0;n{class t{constructor(t,e,i,n){this.injector=t,this.store=e,this.dialog=i,this.route=n,this.userSet=new lu,this.user=null,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(t_),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(t=>{t.idpFilter&&(this.filterShortname=t.idpFilter)})}getClientSettings(){const t=this.setIdpFilter();return{authority:this.store.get("oidc_client","oauth_authority"),client_id:this.store.get("oidc_client","oauth_client_id"),redirect_uri:this.store.get("oidc_client","oauth_redirect_uri"),post_logout_redirect_uri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),response_type:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),filterProtocolClaims:!0,loadUserInfo:this.store.get("oidc_client","oauth_load_user_info"),automaticSilentRenew:!0,silent_redirect_uri:this.store.get("oidc_client","oauth_silent_redirect_uri"),extraQueryParams:{acr_values:t}}}setIdpFilter(){const t=location.search.substr(1).split("&");this.filterShortname=null;const e=this.store.get("oidc_client","filters");if(!e)return null;let i=null;return t.forEach(t=>{const n=t.split("=");"idpFilter"===n[0]&&e[n[1]]&&(this.filterShortname=n[1],i=e[n[1]])}),e.default&&!i?(this.filterShortname="default",e.default):i}getUserManager(){return this.manager}startIdpFilterKeeper(){this.router.events.pipe(Nd(t=>t instanceof Ef)).subscribe(()=>{const t={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===t.idpFilter?{}:t,queryParamsHandling:"merge",replaceUrl:!0})})}loadConfigData(){this.manager=new Np.UserManager(this.getClientSettings()),this.setUser(),this.manager.events.addUserLoaded(t=>{this.user=t}),this.manager.events.addAccessTokenExpired(()=>{const t=TE();t.width="450px",this.dialog.open(DE,t).afterClosed().subscribe(()=>{this.startAuthentication().then(()=>{})})})}verifyAuth(){const t=location.pathname,e=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(t,e)}logout(){this.manager.signoutRedirect().catch(function(t){console.log(t)})}isLoggedInPromise(){return F(this.manager.getUser()).pipe(P(t=>!!t&&!t.expired))}isLoggedIn(){return null!=this.user&&!this.user.expired}getClaims(){return this.user.profile}getAuthorizationHeaderValue(){return this.user?"Bearer "+this.user.access_token:""}startAuthentication(){return this.manager.signinRedirect()}completeAuthentication(){return this.manager.signinRedirectCallback().then(t=>{this.user=t,this.userSet.emit(this.user)})}startSigninMainWindow(){this.manager.signinRedirect({data:this.redirectUrl}).then(function(){console.log("signinRedirect done")}).catch(function(t){console.log(t)})}setUser(){this.manager.getUser().then(t=>{this.user=t})}isPotentiallyValidPath(t){const e=["/home","/organizations","/facilities","/myProfile","/admin","/login"];if("/"===t)return!0;for(const i of e)if(t.startsWith(i))return!0;return!1}verifyAuthentication(t,e){return this.isLoggedInPromise().toPromise().then(i=>!!i||(this.isPotentiallyValidPath(t)?(sessionStorage.setItem("auth:redirect",t),sessionStorage.setItem("auth:queryParams",e),!1):new Promise((t,e)=>e("Invalid path"))))}handleAuthCallback(){return this.completeAuthentication().then(()=>!0)}redirectToOriginDestination(){const t=sessionStorage.getItem("mfa_route");if(t)return this.router.navigate([t],{replaceUrl:!0});let e=sessionStorage.getItem("auth:redirect");const i=sessionStorage.getItem("auth:queryParams");let n=[];i&&(n=i.split("&"));const s={};return n.forEach(t=>{const e=t.split("=");s[e[0]]=e[1]}),e&&"/login"!==e||(e="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),s.idpFilter&&(this.filterShortname=s.idpFilter),this.router.navigate([e],{queryParams:s,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}}return t.\u0275fac=function(e){return new(e||t)(un(lo),un(PE),un(mE),un(xg))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),IE=(()=>{class t{constructor(t){this.dialogRef=t}}return t.\u0275fac=function(e){return new(e||t)(Ro(uE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(Do(0,"h2",0),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE")))},directives:[yE],pipes:[tE],styles:[""]}),t})(),BE=(()=>{class t{constructor(t,e,i,n,s,r){this.authService=t,this.storeService=e,this.authResolver=i,this.authzService=n,this.dialog=s,this.router=r,this.loginScreenShown=!1}setLoginScreen(t){this.loginScreenShown=t}isLoginScreenShown(){return this.loginScreenShown}verifyAuth(){return this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(t=>t(!0)):this.authService.verifyAuth()}startAuth(){return this.authService.startAuthentication()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(t=>{if(null===t.user){const t=TE();this.dialog.open(IE,t)}else this.storeService.setPerunPrincipal(t),this.authResolver.init(t)})}handleAuthStart(){return this.storeService.get("auto_auth_redirect")?this.startAuth().then(()=>new Promise(()=>{})):(this.setLoginScreen(!0),this.router.navigate(["login"]).then(()=>null))}redirectToOriginDestination(){return this.authService.redirectToOriginDestination()}}return t.\u0275fac=function(e){return new(e||t)(un(NE),un(PE),un(Pp),un(Mp),un(mE),un(t_))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),FE=(()=>{class t{constructor(t,e){this.matIconRegistry=t,this.domSanitizer=e,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/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/settings1-blue.svg",name:"settings-blue"},{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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(t=>{this.matIconRegistry.addSvgIcon(t.name,this.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}return t.\u0275fac=function(e){return new(e||t)(un(kC),un(Ed))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),HE=(()=>{class t{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const t=this.handleNextError;return this.handleNextError=!0,t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),qE=(()=>{class t{constructor(t){this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new lu}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(t,e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}showError(t,e,i,n,s){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:s,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return t.\u0275fac=function(e){return new(e||t)(un(ZC))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jE=(()=>{class t{constructor(t,e,i,n,s,r){this.authService=t,this.apiRequestConfiguration=e,this.notificator=i,this.store=n,this.dialog=s,this.initAuthService=r}intercept(t,e){const i=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==t.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()){const t=TE();t.width="450px",this.dialog.open(DE,t).afterClosed().subscribe(()=>{this.authService.startAuthentication().then(()=>{})})}t=t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});const n=this.apiRequestConfiguration.shouldHandleError(),s="POST"===t.method&&!this.store.skipOidc();return e.handle(t).pipe(wf(t=>{t instanceof tp&&s&&this.initAuthService.loadPrincipal()},e=>{const i=this.formatErrors(e,t);return void 0===i?YA(e):n?void this.notificator.showRPCError(i):YA(i)}))}formatErrors(t,e){let i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.call=e.url,i.payload=e.body,i}}return t.\u0275fac=function(e){return new(e||t)(un(NE),un(HE),un(qE),un(PE),un(mE),un(BE))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),YE=(()=>{class t{constructor(){this.notificationData=[],this.newNotificationsCount=0}storeNotification(t){this.newNotificationsCount++,this.notificationData.push(t)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),WE=(()=>{class t{constructor(t,e,i,n){this.http=t,this.notificator=e,this.authService=i,this.storeService=n}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}formatErrors(t,e,i,n){const s=t.error;return s.call=e,s.payload=i,n&&this.notificator.showRPCError(t.error),YA(s)}getHeaders(){let t=new qd;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue()),t}get(t,e=new Ud,i=!0){const n=`${this.getApiUrl()}${t}`;return this.http.get(n,{headers:this.getHeaders()}).pipe(rf(t=>this.formatErrors(t,n,null,i)))}put(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);return this.http.put(n,s,{headers:this.getHeaders()}).pipe(rf(t=>this.formatErrors(t,n,s,i)))}post(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);let r=this.getHeaders();return r=r.set("Content-Type","application/json; charset=utf-8"),this.http.post(n,s,{headers:r}).pipe(rf(t=>this.formatErrors(t,n,s,i)))}delete(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe(rf(t=>this.formatErrors(t,i,null,e)))}}return t.\u0275fac=function(e){return new(e||t)(un(np),un(qE),un(NE),un(PE))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),UE=(()=>{class t{constructor(){}isAllSelectedWithDisabledCheckbox(t,e,i,n,s,r,o,a){return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=s*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?r.data.length:r.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),r.sortData(r.filteredData,o).forEach(t=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?c(t)&&this.pageStart<=this.pageIterator&&this.pageIterator closed",[Ib(".3s ease-in")])]);const KE=Nb("flyInOut",[Yb(":enter",[Hb({transform:"translateX(100%)"}),Ib(".25s")]),Yb(":leave",[Ib(".5s",Hb({transform:"translateX(100%)"}))])]);Nb("rollInOut",[Yb(":enter",[Hb({height:"0px"}),Ib(".25s")]),Yb(":leave",[Ib(".25s",Hb({height:"0px"}))])]),Nb("routeAnimations",[Yb("* => *",[Hb({position:"relative"}),Ub(":enter",[Hb({width:"100%",opacity:0})],{optional:!0}),Ub(":leave",[Hb({position:"absolute",width:"100%",opacity:1}),Ib("0.15s",Hb({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Ub(":enter",[Hb({position:"absolute",width:"100%",opacity:0}),Ib("0.15s",Hb({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),Nb("tagsOpenClose",[qb("open",Hb({})),qb("closed",Hb({width:"0px",height:"0px"})),Yb("open <=> closed",[Ib(".3s ease-in")])]),Nb("switchAnimations",[Yb("true => false",[Ub(":enter, :leave",Hb({})),Bb([Ub(":enter",[Hb({transform:"translateX(-100%)"}),Ib("1s ease-in-out",Hb({transform:"translateX(0%)"}))],{optional:!0}),Ub(":leave",[Hb({transform:"translateX(0%)",position:"absolute"}),Ib("1s ease-in-out",Hb({transform:"translateX(100%)"}))],{optional:!0})])]),Yb("false => true",[Ub(":enter, :leave",Hb({})),Bb([Ub(":enter",[Hb({transform:"translateX(100%)"}),Ib("1s ease-in-out",Hb({transform:"translateX(0%)"}))],{optional:!0}),Ub(":leave",[Hb({transform:"translateX(0%)",position:"absolute"}),Ib("1s ease-in-out",Hb({transform:"translateX(-100%)"}))],{optional:!0})])])]),Nb("slideInOutLeft",[Yb(":enter",[Hb({transform:"translateX(-100%)",position:"relative"}),Ib("0.5s ease-in",Hb({transform:"translateX(0%)"}))]),Yb(":leave",[Ib("0.5s ease-in",Hb({transform:"translateX(-100%)"}))])]),Nb("slideInOutRight",[Yb(":enter",[Hb({transform:"translateX(100%)",position:"fixed"}),Ib("0.5s ease-in",Hb({transform:"translateX(0%)"}))]),Yb(":leave",[Hb({transform:"translateX(-100%)",position:"relative"}),Ib("0.5s ease-in",Hb({transform:"translateX(100%)"}))])]);let VE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Xh]]}),t})(),XE=(()=>{class t{transform(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"userFullName",type:t,pure:!0}),t})(),GE=(()=>{class t{constructor(t,e){this.translate=t,this.storage=e}transform(t,e="en"){const i=this.storage.get("custom_labels");if(i){const n=Object.keys(i);for(const i of n){const n=this.storage.get("custom_labels",i);if(n.label===t)return n[e]}}return t}}return t.\u0275fac=function(e){return new(e||t)(Ro(ZC,16),Ro(PE,16))},t.\u0275pipe=$t({name:"customTranslate",type:t,pure:!0}),t})();function $E(t,e){if(1&t&&(ri(),No(0,"circle",3)),2&t){const t=Go();ca("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),So("r",t._getCircleRadius())}}function JE(t,e){if(1&t&&(ri(),No(0,"circle",3)),2&t){const t=Go();ca("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),So("r",t._getCircleRadius())}}function QE(t,e){if(1&t&&(ri(),No(0,"circle",3)),2&t){const t=Go();ca("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),So("r",t._getCircleRadius())}}function ZE(t,e){if(1&t&&(ri(),No(0,"circle",3)),2&t){const t=Go();ca("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),So("r",t._getCircleRadius())}}const tL=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class eL{constructor(t){this._elementRef=t}}const iL=yM(eL,"primary"),nL=new Ui("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let sL=(()=>{class t extends iL{constructor(e,i,n,s,r){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(n.head)||o.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=P_(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=P_(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,P_(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Z_(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(j_),Ro(Ll,8),Ro(rM,8),Ro(nL))},t.\u0275cmp=Yt({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(So("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),ca("width",e.diameter,"px")("height",e.diameter,"px"),ua("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[po],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(ri(),Do(0,"svg",0),Lo(1,$E,1,9,"circle",1),Lo(2,JE,1,7,"circle",2),Po()),2&t&&(ca("width",e.diameter,"px")("height",e.diameter,"px"),xo("ngSwitch","indeterminate"===e.mode),So("viewBox",e._getViewBox()),Qs(1),xo("ngSwitchCase",!0),Qs(1),xo("ngSwitchCase",!1))},directives:[Nh,Ih],styles:[tL],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),rL=(()=>{class t extends sL{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(j_),Ro(Ll,8),Ro(rM,8),Ro(nL))},t.\u0275cmp=Yt({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(ca("width",e.diameter,"px")("height",e.diameter,"px"),ua("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[po],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(ri(),Do(0,"svg",0),Lo(1,QE,1,9,"circle",1),Lo(2,ZE,1,7,"circle",2),Po()),2&t&&(ca("width",e.diameter,"px")("height",e.diameter,"px"),xo("ngSwitch","indeterminate"===e.mode),So("viewBox",e._getViewBox()),Qs(1),xo("ngSwitchCase",!0),Qs(1),xo("ngSwitchCase",!1))},directives:[Nh,Ih],styles:[tL],encapsulation:2,changeDetection:0}),t})(),oL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[_M,Xh],_M]}),t})();const aL=$_({passive:!0});let cL=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Wp;const e=F_(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new v,s="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,aL),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",r,aL)}}),n}stopMonitoring(t){const e=F_(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(un(j_),un($u))},t.\u0275prov=dt({factory:function(){return new t(un(j_),un($u))},token:t,providedIn:"root"}),t})(),uL=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new v,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._document=n,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=P_(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=P_(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=D_(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(t){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=t,this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{gA(this._getWindow(),"resize").pipe(NA(16),IA(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){this._textareaElement.classList.add(this._measuringClass);const t=this._textareaElement.scrollHeight-4;return this._textareaElement.classList.remove(this._measuringClass),t}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=this._measureScrollHeight(),s=Math.max(n,this._cachedPlaceholderHeight||0);e.style.height=`${s}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,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(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(j_),Ro($u),Ro(Ll,8))},t.\u0275dir=Gt({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&Wo("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),t})(),lL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Y_]]}),t})();const hL=new Ui("MAT_INPUT_VALUE_ACCESSOR"),dL=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let pL=0;class fL{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const gL=AM(fL);let mL=(()=>{class t extends gL{constructor(t,e,i,n,s,r,o,a,c,u){super(r,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+pL++,this.focused=!1,this.stateChanges=new v,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>U_().has(t));const l=this._elementRef.nativeElement,h=l.nodeName.toLowerCase();this._inputValueAccessor=o||l,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&c.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===h,this._isTextarea="textarea"===h,this._isNativeSelect&&(this.controlType=l.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=D_(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=D_(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&U_().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=D_(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){dL.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(j_),Ro(ck,10),Ro(Dk,8),Ro(Kk,8),Ro(DM),Ro(hL,10),Ro(cL),Ro($u),Ro(LT,8))},t.\u0275dir=Gt({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&Wo("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(Ea("disabled",e.disabled)("required",e.required),So("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),ua("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Ua([{provide:_T,useExisting:t}]),po,ae]}),t})(),_L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[DM],imports:[[lL,RT,_M],lL,RT]}),t})();function bL(t,e){1&t&&No(0,"mat-spinner",7)}function yL(t,e){1&t&&(Do(0,"mat-error"),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function wL(t,e){1&t&&(Do(0,"mat-error"),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function ML(t,e){if(1&t){const t=Ho();Do(0,"div",8),Do(1,"mat-form-field"),Do(2,"mat-label"),Aa(3),nu(4,"translate"),Po(),Do(5,"input",9,10),Wo("ngModelChange",function(e){return Re(t),Go().subject=e}),Po(),Lo(7,yL,3,3,"mat-error",11),Po(),Do(8,"mat-form-field"),Do(9,"mat-label"),Aa(10),nu(11,"translate"),Po(),Do(12,"textarea",12,13),Wo("ngModelChange",function(e){return Re(t),Go().message=e}),nu(14,"translate"),Aa(15," "),Po(),Lo(16,wL,3,3,"mat-error",11),Po(),Po()}if(2&t){const t=zo(6),e=zo(13),i=Go();Qs(3),va(su(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),Qs(2),xo("ngModel",i.subject),Qs(2),xo("ngIf",t.invalid),Qs(3),va(su(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),Qs(2),Zo("placeholder",su(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),xo("ngModel",i.message),Qs(4),xo("ngIf",e.invalid)}}let AL=(()=>{class t{constructor(t,e,i,n,s,r){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.data=s,this.storeService=r,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data.error&&this.data.error.errorId&&(this.subject=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(t=>{this.dialogRef.afterClosed().subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const t=this.storeService.get("config");let e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;return e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),e=e.concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.call+"\n\n"),this.data.error.payload&&(e=e.concat("Payload:\n"+this.data.error.payload+"\n\n")),e=e.concat("Sended from new Perun Gui, version: "+i(306).i8),e.split("\n").join("\n ")}parseMethod(t){return t?this.methodRegexp.exec(t)[1]:t}}return t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(ZC),Ro(qE),Ro(Tp),Ro(hE),Ro(PE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),Po(),Lo(3,bL,1,0,"mat-spinner",1),Lo(4,ML,17,13,"div",2),Do(5,"div",3),Do(6,"div",4),Do(7,"button",5),Wo("click",function(){return e.dialogRef.close()}),Aa(8),nu(9,"translate"),Po(),Do(10,"button",6),Wo("click",function(){return e.sendBugReport()}),Aa(11),nu(12,"translate"),Po(),Po(),Po()),2&t&&(Qs(1),va(su(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),Qs(2),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading),Qs(4),Ta(" ",su(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),Qs(2),xo("disabled",""===e.message||""===e.subject||e.loading),Qs(1),Ta(" ",su(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[bE,xh,wE,pA,rL,yE,zT,MT,mL,FT,Xk,lk,Ik,gT],pipes:[tE],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),vL=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.dialog=e,this.data=i}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const t=TE();t.width="550px",t.data={error:this.data.error},t.autoFocus=!1,this.dialog.open(AL,t)}),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(mE),Ro(hE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),Po(),Do(2,"div",1),Aa(3),Po(),Do(4,"div",2),Do(5,"div",3),Do(6,"button",4),Wo("click",function(){return e.onBugReportClick()}),Aa(7),nu(8,"translate"),Po(),Do(9,"button",5),Wo("click",function(){return e.onCloseClick()}),Aa(10),nu(11,"translate"),Po(),Po(),Po()),2&t&&(Qs(1),va(e.data.title),Qs(2),Ta("\n",e.data.description,"\n"),Qs(3),xo("hidden","error"!==e.data.type),Qs(1),Ta(" ",su(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),Qs(3),Ta(" ",su(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[bE,yE,wE,pA],pipes:[tE],styles:[""]}),t})();const TL=[[["caption"]],[["colgroup"],["col"]]],kL=["caption","colgroup, col"];function SL(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=D_(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const CL=new Ui("CDK_TABLE");let EL=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc))},t.\u0275dir=Gt({type:t,selectors:[["","cdkCellDef",""]]}),t})(),LL=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc))},t.\u0275dir=Gt({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),zL=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc))},t.\u0275dir=Gt({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class RL{}const xL=SL(RL);let OL=(()=>{class t extends xL{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=D_(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(Ro(CL,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,EL,5),Tu(i,LL,5),Tu(i,zL,5)),2&t){let t;Au(t=ku())&&(e.cell=t.first),Au(t=ku())&&(e.headerCell=t.first),Au(t=ku())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Ua([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),po]}),t})();class DL{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let PL=(()=>{class t extends DL{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Ro(OL),Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[po]}),t})(),NL=(()=>{class t extends DL{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Ro(OL),Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[po]}),t})();class IL{constructor(){this.tasks=[],this.endTasks=[]}}const BL=new Ui("_COALESCED_STYLE_SCHEDULER");let FL=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new v}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new IL,this._getScheduleObservable().pipe(IA(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new IL;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?F(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Jp(1))}}return t.\u0275fac=function(e){return new(e||t)(un($u))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),HL=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof YL?t.headerCell.template:this instanceof KL?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc),Ro(_c))},t.\u0275dir=Gt({type:t,features:[ae]}),t})();class qL extends HL{}const jL=SL(qL);let YL=(()=>{class t extends jL{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc),Ro(_c),Ro(CL,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[po,ae]}),t})();class WL extends HL{}const UL=SL(WL);let KL=(()=>{class t extends UL{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc),Ro(_c),Ro(CL,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[po,ae]}),t})(),VL=(()=>{class t extends HL{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc),Ro(_c),Ro(CL,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[po]}),t})(),XL=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc))},t.\u0275dir=Gt({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),GL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({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(t,e){1&t&&Fo(0,0)},directives:[XL],encapsulation:2}),t})(),$L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Fo(0,0)},directives:[XL],encapsulation:2}),t})(),JL=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc))},t.\u0275dir=Gt({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const QL=["top","bottom","left","right"];class ZL{constructor(t,e,i,n,s=!0,r=!0,o){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=s,this._needsPositionStickyOnElement=r,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],r=s.children.length,o=this._getCellWidths(s,n),a=this._getStickyStartColumnPositions(o,e),c=this._getStickyEndColumnPositions(o,i),u=e.lastIndexOf(!0),l=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const n="rtl"===this.direction,s=n?"right":"left",h=n?"left":"right";for(const o of t)for(let t=0;te[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===l?[]:o.slice(l).map((t,e)=>i[e+l]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,r=[],o=[],a=[];for(let u=0,l=0;u{var t,e;for(let o=0;o{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);QL.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of QL)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}const tz=new Ui("CDK_SPL");let ez=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc),Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["","rowOutlet",""]]}),t})(),iz=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc),Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),nz=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc),Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),sz=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc),Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),rz=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u,l){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=c,this._viewportRuler=u,this._stickyPositioningListener=l,this._onDestroy=new v,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.viewChange=new Ip({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=D_(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=D_(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler.change().pipe(IA(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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),JA(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),oz(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=oz(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=oz(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=oz(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],JA(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;JA(this.dataSource)?t=this.dataSource.connect(this):EA(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Dd(this.dataSource)),this._renderChangeSubscription=t.pipe(IA(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const s=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),s}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))XL.mostRecentCellOutlet&&XL.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ZL(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Dd()).pipe(IA(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(Ro(_c),Ro(Tc),Ro(Qa),Yi("role"),Ro(xb,8),Ro(Ll),Ro(j_),Ro(ev),Ro(BL),Ro(sv),Ro(tz,12))},t.\u0275cmp=Yt({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,JL,5),Tu(i,OL,5),Tu(i,VL,5),Tu(i,YL,5),Tu(i,KL,5)),2&t){let t;Au(t=ku())&&(e._noDataRow=t.first),Au(t=ku())&&(e._contentColumnDefs=t),Au(t=ku())&&(e._contentRowDefs=t),Au(t=ku())&&(e._contentHeaderRowDefs=t),Au(t=ku())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(vu(ez,7),vu(iz,7),vu(nz,7),vu(sz,7)),2&t){let t;Au(t=ku())&&(e._rowOutlet=t.first),Au(t=ku())&&(e._headerRowOutlet=t.first),Au(t=ku())&&(e._footerRowOutlet=t.first),Au(t=ku())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&ua("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[Ua([{provide:CL,useExisting:t},{provide:ev,useClass:QA},{provide:BL,useClass:FL},{provide:tz,useValue:null}])],ngContentSelectors:kL,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(Jo(TL),Qo(0),Qo(1,1),Fo(2,0),Fo(3,1),Fo(4,2),Fo(5,3))},directives:[iz,ez,sz,nz],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function oz(t,e){return t.concat(Array.from(e))}let az=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[ov]]}),t})();const cz=[[["caption"]],[["colgroup"],["col"]]],uz=["caption","colgroup, col"];let lz=(()=>{class t extends rz{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&ua("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[Ua([{provide:ev,useClass:QA},{provide:rz,useExisting:t},{provide:CL,useExisting:t},{provide:BL,useClass:FL},{provide:tz,useValue:null}]),po],ngContentSelectors:uz,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(Jo(cz),Qo(0),Qo(1,1),Fo(2,0),Fo(3,1),Fo(4,2),Fo(5,3))},directives:[iz,ez,sz,nz],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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),hz=(()=>{class t extends EL{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matCellDef",""]],features:[Ua([{provide:EL,useExisting:t}]),po]}),t})(),dz=(()=>{class t extends LL{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ua([{provide:LL,useExisting:t}]),po]}),t})(),pz=(()=>{class t extends OL{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Ua([{provide:OL,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),po]}),t})(),fz=(()=>{class t extends PL{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[po]}),t})(),gz=(()=>{class t extends NL{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[po]}),t})(),mz=(()=>{class t extends YL{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Ua([{provide:YL,useExisting:t}]),po]}),t})(),_z=(()=>{class t extends VL{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Ua([{provide:VL,useExisting:t}]),po]}),t})(),bz=(()=>{class t extends GL{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Ua([{provide:GL,useExisting:t}]),po],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Fo(0,0)},directives:[XL],encapsulation:2}),t})(),yz=(()=>{class t extends $L{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Ua([{provide:$L,useExisting:t}]),po],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Fo(0,0)},directives:[XL],encapsulation:2}),t})(),wz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[az,_M],_M]}),t})();class Mz extends class extends class{}{constructor(t=[]){super(),this._renderData=new Ip([]),this._filter=new Ip(""),this._internalPageChanges=new v,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const i=t[e];if(N_(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),r=this.sortingDataAccessor(e,i);const o=typeof s,a=typeof r;o!==a&&("number"===o&&(s+=""),"number"===a&&(r+=""));let c=0;return null!=s&&null!=r?s>r?c=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new Ip(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?U(this._sort.sortChange,this._sort.initialized):Dd(null),i=this._paginator?U(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Dd(null),n=Fp([this._data,this._filter]).pipe(P(([t])=>this._filterData(t))),s=Fp([n,e]).pipe(P(([t])=>this._orderData(t))),r=Fp([s,i]).pipe(P(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=r.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}{}function Az(t,e){1&t&&No(0,"mat-spinner",3)}function vz(t,e){1&t&&No(0,"th",15)}function Tz(t,e){if(1&t&&(Do(0,"td",16),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),Ta(" ",t.userExtSource.extSource.name," ")}}function kz(t,e){1&t&&No(0,"tr",17)}function Sz(t,e){1&t&&No(0,"tr",18)}function Cz(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"div",4),Do(2,"p"),Aa(3),nu(4,"translate"),nu(5,"customTranslate"),Po(),Do(6,"div",5),Aa(7),nu(8,"translate"),nu(9,"customTranslate"),Po(),Do(10,"table",6),Io(11,7),Lo(12,vz,1,0,"th",8),Lo(13,Tz,2,1,"td",9),Bo(),Lo(14,kz,1,0,"tr",10),Lo(15,Sz,1,0,"tr",11),Po(),Po(),Do(16,"div",12),Do(17,"button",13),Wo("click",function(){return Re(t),Go().onCancel()}),Aa(18),nu(19,"translate"),nu(20,"customTranslate"),Po(),Do(21,"button",14),Wo("click",function(){return Re(t),Go().onSubmit()}),Aa(22),nu(23,"translate"),nu(24,"customTranslate"),Po(),Po(),Po()}if(2&t){const t=Go();Qs(3),Ta(" ",su(4,7,su(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),Qs(4),Ta(" ",su(8,11,su(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),Qs(3),xo("dataSource",t.dataSource),Qs(4),xo("matHeaderRowDef",t.displayedColumns),Qs(1),xo("matRowDefColumns",t.displayedColumns),Qs(3),Ta(" ",su(19,15,su(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),Qs(4),Ta(" ",su(23,19,su(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let Ez=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.usersManagerService=i,this.translate=n,this.notificator=s,this.force=!1,this.displayedColumns=["name"],n.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new Mz(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 t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(hE),Ro(Cp),Ro(ZC),Ro(qE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div"),Lo(5,Az,1,0,"mat-spinner",1),Lo(6,Cz,25,23,"div",2),Po()),2&t&&(Qs(1),va(su(2,6,su(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE"))),Qs(3),la(e.theme),Qs(1),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading))},directives:[bE,xh,rL,yE,lz,pz,dz,hz,mz,_z,wE,pA,fz,gz,bz,yz],pipes:[tE,GE],styles:[""]}),t})();class Lz{constructor(t,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),n=i.style;n.position="fixed",n.top=n.opacity="0",n.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}copy(){const t=this._textarea;let e=!1;try{if(t){const i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(fj){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let zz=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),i=e.copy();return e.destroy(),i}beginCopy(t){return new Lz(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un(Ll))},token:t,providedIn:"root"}),t})();const Rz=new Ui("CDK_COPY_TO_CLIPBOARD_CONFIG");let xz=(()=>{class t{constructor(t,e,i){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new lu,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}copy(t=this.attempts){if(t>1){let e=t;const i=this._clipboard.beginCopy(this.text);this._pending.add(i);const n=()=>{const t=i.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(i),i.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(n,1))};n()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(Ro(zz),Ro($u),Ro(Rz,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&Wo("click",function(){return e.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),Oz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})(),Dz=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(hE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),Po(),Do(2,"div",1),Do(3,"textarea",2),Aa(4),Po(),Po(),Do(5,"div",3),Do(6,"button",4),Wo("click",function(){return e.onCancel()}),Aa(7),nu(8,"translate"),Po(),Do(9,"button",5),Aa(10),nu(11,"translate"),Po(),Po()),2&t&&(Qs(1),va(e.title),Qs(3),va(e.value),Qs(3),Ta(" ",su(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),Qs(2),xo("cdkCopyToClipboard",e.value),Qs(1),Ta(" ",su(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[bE,yE,uL,mL,wE,pA,xz],pipes:[tE],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),t})(),Pz=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,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 t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(hE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h5",0),Aa(1),nu(2,"translate"),Po(),Do(3,"div",1),Do(4,"mat-form-field"),Do(5,"textarea",2),Wo("ngModelChange",function(t){return e.attributeValue=t}),Po(),Po(),Po(),Do(6,"div",3),Do(7,"button",4),Wo("click",function(){return e.cancel()}),Aa(8),nu(9,"translate"),Po(),Do(10,"button",5),Wo("click",function(){return e.submit()}),Aa(11),nu(12,"translate"),Po(),Po()),2&t&&(Qs(1),va(su(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE")),Qs(4),xo("ngModel",e.attributeValue),Qs(3),Ta(" ",su(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),Qs(3),Ta(" ",su(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[bE,yE,zT,uL,mL,FT,lk,Ik,wE,pA],pipes:[tE],styles:[""]}),t})(),Nz=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(hE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h5",0),Aa(1),nu(2,"translate"),Po(),Do(3,"div",1),Do(4,"div"),Aa(5),nu(6,"translate"),Po(),Do(7,"div",2),Aa(8),Po(),Po(),Do(9,"div",3),Do(10,"button",4),Wo("click",function(){return e.cancel()}),Aa(11),nu(12,"translate"),Po(),Do(13,"button",5),Wo("click",function(){return e.submit()}),Aa(14),nu(15,"translate"),Po(),Po()),2&t&&(Qs(1),va(su(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE")),Qs(4),Ta(" ",su(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),Qs(3),Ta(" ",e.data.name," "),Qs(3),Ta(" ",su(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),Qs(3),Ta(" ",su(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[bE,yE,wE,pA],pipes:[tE],styles:[""]}),t})();function Iz(t,e){1&t&&(Do(0,"mat-icon",2),Aa(1," error "),Po())}const Bz=["*"];let Fz=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:Bz,decls:3,vars:7,consts:[[1,"perun-alert","d-flex","align-items-center"],["class","perun-warn-alert-icon",4,"ngIf"],[1,"perun-warn-alert-icon"]],template:function(t,e){1&t&&(Jo(),Do(0,"div",0),Lo(1,Iz,2,0,"mat-icon",1),Qo(2),Po()),2&t&&(ua("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("info-alert","info"===e.alert_type),Qs(1),xo("ngIf","error"!==e.alert_type))},directives:[xh,DC],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%], .perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-warn-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{color:#000;background-color:#fae2e2;border-left:4px solid;border-color:#d32f2f}"]}),t})();function Hz(t,e){if(1&t&&(Do(0,"app-alert",9),Aa(1),Po()),2&t){const t=Go();Qs(1),va(t.pendingEmailsMessage)}}function qz(t,e){1&t&&(Do(0,"mat-error"),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let jz=(()=>{class t{constructor(t,e,i,n,s,r){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=n,this.usersManagerService=s,this.authService=r,this.pendingMails=[],i.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(t=>this.successMessage=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(t=>this.pendingEmailsMessageStart=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(t=>this.pendingEmailsMessageEnd=t)}ngOnInit(){this.emailControl=new Lk(null,[UT.required,UT.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(t=>{this.pendingMails=t.filter((t,e,i)=>e===i.indexOf(t));let e="";this.pendingMails.forEach(t=>e+=`${t===this.pendingMails[0]?"":", "}${t}`),console.log(e),this.pendingEmailsMessage=this.pendingEmailsMessageStart+e+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 t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(hE),Ro(ZC),Ro(qE),Ro(Cp),Ro(NE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Lo(5,Hz,2,1,"app-alert",2),Do(6,"mat-form-field",3),Do(7,"label",3),No(8,"input",4),nu(9,"translate"),nu(10,"customTranslate"),Po(),Lo(11,qz,4,5,"mat-error",5),Po(),Po(),Do(12,"div",6),Do(13,"button",7),Wo("click",function(){return e.onCancel()}),Aa(14),nu(15,"translate"),nu(16,"customTranslate"),Po(),Do(17,"button",8),Wo("click",function(){return e.onSubmit()}),Aa(18),nu(19,"translate"),nu(20,"customTranslate"),Po(),Po()),2&t&&(Qs(1),va(su(2,8,su(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),Qs(4),xo("ngIf",e.pendingMails.length),Qs(3),Zo("placeholder",su(9,12,su(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),xo("formControl",e.emailControl),Qs(3),xo("ngIf",e.emailControl.invalid),Qs(3),Ta(" ",su(15,16,su(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),Qs(3),xo("disabled",!e.emailControl.valid),Qs(1),Ta(" ",su(19,20,su(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[bE,yE,xh,zT,mL,FT,Xk,lk,Wk,wE,pA,Fz,gT],pipes:[tE,GE],styles:[""]}),t})(),Yz=(()=>{class t{constructor(t,e){this.dialogRef=t,this.router=e}onClose(){this.router.navigate([]),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(t_))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),Po(),Do(3,"div",1),Do(4,"app-alert",2),Aa(5),nu(6,"translate"),Po(),Po(),Do(7,"div",3),Do(8,"button",4),Wo("click",function(){return e.onClose()}),Aa(9),nu(10,"translate"),Po(),Po()),2&t&&(Qs(1),va(su(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE")),Qs(4),va(su(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),Qs(4),Ta(" ",su(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[bE,yE,Fz,wE,pA],pipes:[tE],styles:[""]}),t})();function Wz(t,e){if(1&t&&(Do(0,"div",5),Do(1,"mat-icon"),Aa(2),Po(),Po()),2&t){const t=Go();Qs(2),va(t.data.icon)}}function Uz(t,e){if(1&t&&(Do(0,"div",6),Aa(1),Po()),2&t){const t=Go();Qs(1),Ta(" ",t.showTimestamp()," ")}}let Kz=(()=>{class t{constructor(t,e){this.dialog=t,this.notificationStorageService=e,this.newNotification=!1,this.closeNotification=new lu,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 t=TE();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(vL,t).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function(t,e){return i=this,s=function*(){var i;yield(i=t,new Promise(t=>setTimeout(t,i))),e()},new((n=void 0)||(n=Promise))(function(t,e){function r(t){try{a(s.next(t))}catch(i){e(i)}}function o(t){try{a(s.throw(t))}catch(i){e(i)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n(function(t){t(i)})).then(r,o)}a((s=s.apply(i,[])).next())});var i,n,s}(this.data.delay,()=>{this.alreadyClosed||this.waiting||this.closeSelf()})}showTimestamp(){const[t,e]=this.data.timeStamp.split(":");return e.length<2?t+":0"+e:this.data.timeStamp}}return t.\u0275fac=function(e){return new(e||t)(Ro(mE),Ro(YE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"div"),Do(1,"div",0),Wo("click",function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()}),Lo(2,Wz,3,1,"div",1),Do(3,"div",2),Aa(4),nu(5,"translate"),Po(),Lo(6,Uz,2,1,"div",3),Do(7,"div",4),Wo("click",function(){return e.waiting=!0,e.doAction()}),Aa(8),Po(),Po(),Po()),2&t&&(Ca("notification ",e.inDialog?"":"mat-elevation-z7",""),ua("error","error"===e.data.type)("success","success"===e.data.type),Qs(2),xo("ngIf",null!==e.data.icon),Qs(2),Ta(" ",su(5,12,e.data.title)," "),Qs(2),xo("ngIf",e.inDialog),Qs(1),xo("hidden",e.alreadyPressed),Qs(1),Ta(" ",e.data.actionText," "))},directives:[xh,DC],pipes:[tE],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}"]}),t})();function Vz(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"perun-web-apps-notification",2),Wo("closeNotification",function(){const e=Re(t).index;return Go().removeNotification(e)}),Po(),Po()}if(2&t){const t=e.$implicit;xo("@flyInOut",void 0),Qs(1),xo("data",t)("newNotification",!0)}}const Xz=function(t){return{top:t}};let Gz=(()=>{class t{constructor(t,e){this.notificator=t,this.notificationStorageService=e,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(t=>{this.processNotification(t)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}processNotification(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(t){this.notifications.splice(t,1)}}return t.\u0275fac=function(e){return new(e||t)(Ro(qE),Ro(YE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&Wo("resize",function(t){return e.getScreenSize(t)},!1,us)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(Do(0,"div",0),Lo(1,Vz,2,3,"div",1),Po()),2&t&&(xo("ngStyle",Qc(2,Xz,e.getNotificatorTop())),Qs(1),xo("ngForOf",e.notifications))},directives:[Fh,zh,Kz],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width:768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;bottom:0}}"],data:{animation:[KE]}}),t})();const $z=["*",[["mat-toolbar-row"]]],Jz=["*","mat-toolbar-row"];class Qz{constructor(t){this._elementRef=t}}const Zz=yM(Qz);let tR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),eR=(()=>{class t extends Zz{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(j_),Ro(Ll))},t.\u0275cmp=Yt({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&Tu(i,tR,5),2&t){let t;Au(t=ku())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&ua("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[po],ngContentSelectors:Jz,decls:2,vars:0,template:function(t,e){1&t&&(Jo($z),Qo(0),Qo(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),iR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[_M],_M]}),t})();const nR={provide:Nu,useFactory:function(t,e){return()=>{if(Gh(e)){const e=Array.from(t.querySelectorAll(`[class*=${sR}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(`${sR}ssr`)&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(i,"")})}}},deps:[Ll,Pu],multi:!0},sR="flex-layout-";let rR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[nR]}),t})();class oR{constructor(t=!1,e="all",i="",n="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=n,this.priority=s,this.property=""}clone(){return new oR(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let aR=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,i){const n=this.stylesheet.get(t);n?n.set(e,i):this.stylesheet.set(t,new Map([[e,i]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const i=this.stylesheet.get(t);let n="";if(i){const t=i.get(e);"number"!=typeof t&&"string"!=typeof t||(n=t+"")}return n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const cR={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},uR=new Ui("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>cR}),lR=new Ui("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),hR=new Ui("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function dR(t,e){return t=t?t.clone():new oR,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const pR=["row","column","row-reverse","column-reverse"];function fR(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let gR=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.styleBuilder=e,this.styler=i,this.marshal=n,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new v,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(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const i=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,i)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const i=this.styleBuilder,n=i.shouldCache;let s=this.styleCache.get(t);s&&n||(s=i.buildStyles(t,e),n&&this.styleCache.set(t,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),i.sideEffect(t,s,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[i,n]=this.styler.getFlowDirection(t);if(!n&&e){const e=function(t){let[e,i,n]=function(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return pR.find(t=>t===e)||(e=pR[0]),"inline"===i&&(i="inline"!==n?n:"",n="inline"),[e,fR(i),!!n]}(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(i);this.styler.applyStyleToElements(e,[t])}return i.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,i=this.nativeElement){this.styler.applyStyleToElement(i,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){!function(){throw new Error("invalid")}()},t.\u0275dir=Gt({type:t,features:[ae]}),t})();const mR=[{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}],_R="(orientation: portrait) and (max-width: 599.98px)",bR="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",yR="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",wR="(orientation: portrait) and (min-width: 840px)",MR="(orientation: landscape) and (min-width: 1280px)",AR={HANDSET:`${_R}, (orientation: landscape) and (max-width: 959.98px)`,TABLET:`${bR} , ${yR}`,WEB:`${wR}, ${MR} `,HANDSET_PORTRAIT:`${_R}`,TABLET_PORTRAIT:`${bR} `,WEB_PORTRAIT:`${wR}`,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:`${yR}`,WEB_LANDSCAPE:`${MR}`},vR=[{alias:"handset",priority:2e3,mediaQuery:AR.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:AR.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:AR.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:AR.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:AR.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:AR.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:AR.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:AR.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:AR.WEB_PORTRAIT,overlapping:!0}],TR=/(\.|-|_)/g;function kR(t){let e=t.length>0?t.charAt(0):"",i=t.length>1?t.slice(1):"";return e.toUpperCase()+i}const SR=new Ui("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=ln(hR),e=ln(uR),i=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const i={};return t.forEach(t=>{i[t.alias]=t}),e.forEach(t=>{i[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e])}(i[t.alias],t):i[t.alias]=t}),(n=Object.keys(i).map(t=>i[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace(TR,"|").split("|").map(kR).join(""),t.overlapping=!!t.overlapping)}),n;var n}((e.disableDefaultBps?[]:mR).concat(e.addOrientationBps?vR:[]),i)}});function CR(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function ER(t,e){return(t.priority||0)-(e.priority||0)}let LR=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(ER)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let i=this.findByMap.get(t);return i||(i=this.items.find(e)||null,this.findByMap.set(t,i)),i||null}}return t.\u0275fac=function(e){return new(e||t)(un(SR))},t.\u0275prov=dt({factory:function(){return new t(un(SR))},token:t,providedIn:"root"}),t})(),zR=(()=>{class t{constructor(t,e,i){this._zone=t,this._platformId=e,this._document=i,this.source=new Ip(new oR(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,i)=>{e.matches&&t.push(i)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const i=this._observable$.pipe(Nd(i=>!e||t.indexOf(i.mediaQuery)>-1));return U(new b(e=>{const i=this.registerQuery(t);if(i.length){const t=i.pop();i.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()}),i)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],i=[];return function(t,e){const i=t.filter(t=>!RR[t]);if(i.length>0){const t=i.join(", ");try{const n=e.createElement("style");n.setAttribute("type","text/css"),n.styleSheet||n.appendChild(e.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`)),e.head.appendChild(n),i.forEach(t=>RR[t]=n)}catch(n){console.error(n)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new oR(e.matches,t)))};let n=this.registry.get(t);n||(n=this.buildMQL(t),n.addListener(e),this.pendingRemoveListenerFns.push(()=>n.removeListener(e)),this.registry.set(t,n)),n.matches&&i.push(new oR(!0,t))}),i}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,Gh(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(un($u),un(Pu),un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un($u),un(Pu),un(Ll))},token:t,providedIn:"root"}),t})();const RR={},xR={alias:"print",mediaQuery:"print",priority:1e3};let OR=(()=>{class t{constructor(t,e,i){this.breakpoints=t,this.layoutConfig=e,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new DR,this.deactivations=[]}withPrintQuery(t){return[...t,"print"]}isPrintEvent(t){return t.mediaQuery.startsWith("print")}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(CR)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),dR(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new oR(!0,"print"))),t.updateStyles())},i=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(i)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(CR))}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t)))}}return t.\u0275fac=function(e){return new(e||t)(un(LR),un(uR),un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un(LR),un(uR),un(Ll))},token:t,providedIn:"root"}),t})();class DR{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(xR),t.sort(CR),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith("print")}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function PR(t){for(let e in t){let i=t[e]||"";switch(e){case"display":t.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;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":t["-webkit-"+e]=i;break;case"flex-direction":i=i||"row",t["-webkit-flex-direction"]=i,t["flex-direction"]=i;break;case"order":t.order=t["-webkit-"+e]=isNaN(+i)?"0":i}}return t}let NR=(()=>{class t{constructor(t,e,i,n){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=i,this.layoutConfig=n}applyStyleToElement(t,e,i=null){let n={};"string"==typeof e&&(n[e]=i,e=n),n=this.layoutConfig.disableVendorPrefixes?e:PR(e),this._applyMultiValueStyleToElement(n,t)}applyStyleToElements(t,e=[]){const i=this.layoutConfig.disableVendorPrefixes?t:PR(t);e.forEach(t=>{this._applyMultiValueStyleToElement(i,t)})}getFlowDirection(t){let e=this.lookupStyle(t,"flex-direction");return[e||"row",this.lookupInlineStyle(t,"flex-direction")||$h(this._platformId)&&this._serverModuleLoaded?e:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return Gh(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,i=!1){let n="";return t&&((n=this.lookupInlineStyle(t,e))||(Gh(this._platformId)?i||(n=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(n=this._serverStylesheet.getStyleForElement(t,e)))),n?n.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(i=>{const n=t[i],s=Array.isArray(n)?n:[n];s.sort();for(let t of s)t=t?t+"":"",Gh(this._platformId)||!this._serverModuleLoaded?Gh(this._platformId)?e.style.setProperty(i,t):this._setServerStyle(e,i,t):this._serverStylesheet.addStyleToElement(e,i,t)})}_setServerStyle(t,e,i){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const n=this._readStyleAttribute(t);n[e]=i||"",this._writeStyleAttribute(t,n)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},i=t.getAttribute("style");if(i){const t=i.split(/;+/g);for(let i=0;i0){const t=n.indexOf(":");if(-1===t)throw new Error(`Invalid CSS style: ${n}`);e[n.substr(0,t).trim()]=n.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let i="";for(const n in e)e[n]&&(i+=n+":"+e[n]+";");t.setAttribute("style",i)}}return t.\u0275fac=function(e){return new(e||t)(un(aR),un(lR),un(Pu),un(uR))},t.\u0275prov=dt({factory:function(){return new t(un(aR),un(lR),un(Pu),un(uR))},token:t,providedIn:"root"}),t})();class IR{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}let BR=(()=>{class t{constructor(t,e,i){this.matchMedia=t,this.breakpoints=e,this.hook=i,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 v,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=dR(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(CR),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(CR),this.updateStyles()))}init(t,e,i,n,s=[]){FR(this.updateMap,t,e,i),FR(this.clearMap,t,e,n),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,s)}getValue(t,e,i){const n=this.elementMap.get(t);if(n){const t=void 0!==i?n.get(i):this.getActivatedValues(n,e);if(t)return t.get(e)}}hasValue(t,e){const i=this.elementMap.get(t);if(i){const t=this.getActivatedValues(i,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,i,n){let s=this.elementMap.get(t);if(s){const r=(s.get(n)||new Map).set(e,i);s.set(n,r),this.elementMap.set(t,s)}else s=(new Map).set(n,(new Map).set(e,i)),this.elementMap.set(t,s);const r=this.getValue(t,e);void 0!==r&&this.updateElement(t,e,r)}trackValue(t,e){return this.subject.asObservable().pipe(Nd(i=>i.element===t&&i.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const i=new Set(this.elementKeyMap.get(e));let n=this.getActivatedValues(t);n&&n.forEach((t,n)=>{this.updateElement(e,n,t),i.delete(n)}),i.forEach(i=>{if(n=this.getActivatedValues(t,i),n){const t=n.get(i);this.updateElement(e,i,t)}else this.clearElement(e,i)})})}clearElement(t,e){const i=this.clearMap.get(t);if(i){const n=i.get(e);n&&(n(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,i){const n=this.updateMap.get(t);if(n){const s=n.get(e);s&&(s(i),this.subject.next({element:t,key:e,value:i}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const i=this.elementMap.get(t);i&&(i.forEach((t,e)=>i.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const i=this.elementMap.get(t);if(i){const n=this.getActivatedValues(i,e);n&&(e?this.updateElement(t,e,n.get(e)):n.forEach((e,i)=>this.updateElement(t,i,e)))}}buildElementKeyMap(t,e){let i=this.elementKeyMap.get(t);i||(i=new Set,this.elementKeyMap.set(t,i)),i.add(e)}watchExtraTriggers(t,e,i){if(i&&i.length){let n=this.watcherMap.get(t);if(n||(n=new Map,this.watcherMap.set(t,n)),!n.get(e)){const s=U(...i).subscribe(()=>{const i=this.getValue(t,e);this.updateElement(t,e,i)});n.set(e,s)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let n=0;nt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(wf(this.hook.interceptEvents(this)),Nd(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(un(zR),un(LR),un(OR))},t.\u0275prov=dt({factory:function(){return new t(un(zR),un(LR),un(OR))},token:t,providedIn:"root"}),t})();function FR(t,e,i,n){if(void 0!==n){let s=t.get(e);s||(s=new Map,t.set(e,s)),s.set(i,n)}}new Map,new WeakMap;class HR{constructor(t,e,i=!0){this.key=t,this.value=e,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function qR(t){let e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function jR(t){const[e,...i]=t.split(":");return new HR(e,i.join(":"))}function YR(t,e){return e.key&&(t[e.key]=e.value),t}let WR=(()=>{class t extends gR{constructor(t,e,i,n,s,r,o,a,c){super(t,null,e,i),this.sanitizer=n,this.ngStyleInstance=o,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new Fh(t,s,r)),this.init();const u=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(u),this.isServer=a&&$h(c)}updateWithValue(t){const e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(t){const e=t=>this.sanitizer.sanitize(Qn.STYLE,t)||"";if(t)switch(qR(t)){case"string":return VR(function(t,e=";"){return String(t).trim().split(e).map(t=>t.trim()).filter(t=>""!==t)}(t),e);case"array":return VR(t,e);case"set":default:return function(t,e){let i=[];return"set"===qR(t)?t.forEach(t=>i.push(t)):Object.keys(t).forEach(e=>{i.push(`${e}:${t[e]}`)}),function(t,e){return t.map(jR).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(YR,{})}(i,e)}(t,e)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(NR),Ro(BR),Ro(Ed),Ro(yc),Ro(ec),Ro(Fh,10),Ro(lR),Ro(Pu))},t.\u0275dir=Gt({type:t,features:[po]}),t})();const UR=["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 KR=(()=>{class t extends WR{constructor(){super(...arguments),this.inputs=UR}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,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:[po]}),t})();function VR(t,e){return t.map(jR).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(YR,{})}let XR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[rR]]}),t})();const GR=function(t){return{color:t}};function $R(t,e){if(1&t&&(Do(0,"button",8),nu(1,"translate"),Do(2,"mat-icon",4),Aa(3," apps "),Po(),Po()),2&t){const t=Go();xo("matMenuTriggerFor",zo(2))("matTooltip",su(1,3,"NAV.OTHER_APPLICATIONS")),Qs(2),xo("ngStyle",Qc(5,GR,t.iconColor))}}function JR(t,e){if(1&t){const t=Ho();Do(0,"button",2),Wo("click",function(){return Re(t),Go().reloadRoles()}),Aa(1),nu(2,"translate"),Po()}2&t&&(Qs(1),Ta(" ",su(2,1,"NAV.RELOAD_ROLES")," "))}function QR(t,e){if(1&t){const t=Ho();Do(0,"button",2),Wo("click",function(){return Re(t),Go().onLogOut()}),Aa(1),nu(2,"translate"),Po()}2&t&&(Qs(1),va(su(2,1,"NAV.LOGOUT")))}let ZR=(()=>{class t{constructor(t,e,i,n){this.authService=t,this.authzResolverService=e,this.notificator=i,this.translateService=n,this.showReloadRoles=!1}ngOnInit(){}redirectToUrl(){window.open(this.url,"_blank")}reloadRoles(){this.authzResolverService.loadAuthorizationComponents().subscribe(()=>this.notificator.showSuccess(this.translateService.instant("NAV.RELOAD_ROLES_SUCCESS")))}onLogOut(){this.authService.logout()}}return t.\u0275fac=function(e){return new(e||t)(Ro(NE),Ro(Mp),Ro(qE),Ro(ZC))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",showReloadRoles:"showReloadRoles",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:15,vars:16,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(t,e){if(1&t&&(Lo(0,$R,4,7,"button",0),Do(1,"mat-menu",null,1),Do(3,"button",2),Wo("click",function(){return e.redirectToUrl()}),Do(4,"span"),Aa(5),Po(),Po(),Po(),Do(6,"button",3),Do(7,"mat-icon",4),Aa(8," person "),Po(),Do(9,"span",5),Aa(10),Po(),Po(),Do(11,"mat-menu",null,6),Lo(13,JR,3,3,"button",7),Lo(14,QR,3,3,"button",7),Po()),2&t){const t=zo(12);xo("ngIf",e.url),Qs(5),va(e.label),Qs(1),xo("matMenuTriggerFor",t),Qs(1),xo("ngStyle",Qc(12,GR,e.iconColor)),Qs(2),xo("ngStyle",Qc(14,GR,e.textColor)),Qs(1),Sa(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," "),Qs(3),xo("ngIf",e.showReloadRoles),Qs(1),xo("ngIf",e.logoutEnabled)}},directives:[xh,pC,uC,pA,_C,DC,Fh,OS],pipes:[tE],styles:["@media (max-width:991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),t})();const tx=function(t){return{color:t}};function ex(t,e){if(1&t){const t=Ho();Do(0,"button",5),Wo("click",function(){return Re(t),Go().onToggleSidenav()}),Do(1,"mat-icon"),Aa(2,"menu"),Po(),Po()}if(2&t){const t=Go();xo("ngStyle",Qc(1,tx,t.iconColor))}}const ix=function(t){return{background:t}},nx=function(){return[]},sx=function(){return["/"]};let rx=(()=>{class t{constructor(t,e,i,n,s,r){this.storeService=t,this.sanitizer=e,this.translate=i,this.utilsService=n,this.authzResolverService=s,this.authService=r,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.sidenavToggle=new lu,this.hideToggle=!1,this.disableLogo=!1,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.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.translate.onLangChange.subscribe(t=>{this.label=this.storeService.get(`header_label_${t.lang}`),this.adminLabel=this.storeService.get(`admin_gui_label_${t.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 t in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(t)&&(this.activeLink=!0);this.activeLink&&this.utilsService.getAppsConfig().subscribe(t=>{this.adminGuiUrl=t.brands[0].newApps.admin?t.brands[0].newApps.admin:null})}}return t.\u0275fac=function(e){return new(e||t)(Ro(PE),Ro(Ed),Ro(ZC),Ro(Ep),Ro(Mp),Ro(NE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-header"]],inputs:{hideToggle:"hideToggle",disableLogo:"disableLogo"},outputs:{sidenavToggle:"sidenavToggle"},decls:6,vars:18,consts:[[1,"sticky-top","header-container",3,"ngStyle"],["mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"ml-3",3,"innerHTML","routerLink"],[1,"ml-3","mt-auto","mb-auto","hide-label",3,"ngStyle"],["id","nav-menu-user-info",1,"justify-content-end",3,"url","label","user","logoutEnabled","iconColor","textColor"],["mat-icon-button","",3,"ngStyle","click"]],template:function(t,e){1&t&&(Do(0,"mat-toolbar",0),Lo(1,ex,3,3,"button",1),No(2,"a",2),Do(3,"p",3),Aa(4),Po(),No(5,"perun-web-apps-header-menu",4),Po()),2&t&&(xo("ngStyle",Qc(12,ix,e.bgColor)),Qs(1),xo("ngIf",!e.hideToggle),Qs(1),xo("innerHTML",e.logo,Zn)("routerLink",e.disableLogo?Jc(14,nx):Jc(15,sx)),Qs(1),xo("ngStyle",Qc(16,tx,e.textColor)),Qs(1),va(e.label),Qs(1),xo("url",e.adminGuiUrl)("label",e.adminLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor))},directives:[eR,Fh,KR,xh,i_,ZR,pA,DC],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}}"]}),t})();function ox(t){return e=>e.lift(new ax(t))}class ax{constructor(t){this.value=t}call(t,e){return e.subscribe(new cx(t,this.value))}}class cx extends f{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}const ux=["*"];function lx(t,e){if(1&t){const t=Ho();Do(0,"div",2),Wo("click",function(){return Re(t),Go()._onBackdropClicked()}),Po()}2&t&&ua("mat-drawer-shown",Go()._isShowingBackdrop())}function hx(t,e){1&t&&(Do(0,"mat-drawer-content"),Qo(1,2),Po())}const dx=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],px=["mat-drawer","mat-drawer-content","*"];function fx(t,e){if(1&t){const t=Ho();Do(0,"div",2),Wo("click",function(){return Re(t),Go()._onBackdropClicked()}),Po()}2&t&&ua("mat-drawer-shown",Go()._isShowingBackdrop())}function gx(t,e){1&t&&(Do(0,"mat-sidenav-content",3),Qo(1,2),Po())}const mx=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],_x=["mat-sidenav","mat-sidenav-content","*"],bx=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",yx={transformDrawer:Nb("transform",[qb("open, open-instant",Hb({transform:"none",visibility:"visible"})),qb("void",Hb({"box-shadow":"none",visibility:"hidden"})),Yb("void => open-instant",Ib("0ms")),Yb("void <=> open, open-instant => void",Ib("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},wx=new Ui("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Mx=new Ui("MAT_DRAWER_CONTAINER");let Ax=(()=>{class t extends nv{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(Ro(Tc),Ro(rt(()=>Tx)),Ro(Qa),Ro(iv),Ro($u))},t.\u0275cmp=Yt({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&ca("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[po],ngContentSelectors:ux,decls:1,vars:0,template:function(t,e){1&t&&(Jo(),Qo(0))},encapsulation:2,changeDetection:0}),t})(),vx=(()=>{class t{constructor(t,e,i,n,s,r,o){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=s,this._doc=r,this._container=o,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new v,this._animationEnd=new v,this._animationState="void",this.openedChange=new lu(!0),this._openedStream=this.openedChange.pipe(Nd(t=>t),P(()=>{})),this.openedStart=this._animationStarted.pipe(Nd(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),ox(void 0)),this._closedStream=this.openedChange.pipe(Nd(t=>!t),P(()=>{})),this.closedStart=this._animationStarted.pipe(Nd(t=>t.fromState!==t.toState&&"void"===t.toState),ox(void 0)),this._destroyed=new v,this.onPositionChanged=new lu,this._modeChanged=new v,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{gA(this._elementRef.nativeElement,"keydown").pipe(Nd(t=>27===t.keyCode&&!this.disableClose&&!T_(t)),IA(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(LA((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=D_(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=D_(t)}get opened(){return this._opened}set opened(t){this.toggle(D_(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(Jp(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(yb),Ro(Cb),Ro(j_),Ro($u),Ro(Ll,8),Ro(Mx,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&Uo("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(So("align",null),La("@transform",e._animationState),ua("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:ux,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(Jo(),Do(0,"div",0),Qo(1),Po())},directives:[nv],encapsulation:2,data:{animation:[yx.transformDrawer]},changeDetection:0}),t})(),Tx=(()=>{class t{constructor(t,e,i,n,s,r=!1,o){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=o,this._drawers=new du,this.backdropClick=new lu,this._destroyed=new v,this._doCheckSubject=new v,this._contentMargins={left:null,right:null},this._contentMarginChanges=new v,t&&t.change.pipe(IA(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(IA(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=D_(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:D_(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(tf(this._allDrawers),IA(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(tf(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(z_(10),IA(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(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Nd(t=>t.fromState!==t.toState),IA(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"!==t.mode&&t.openedChange.pipe(IA(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(IA(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Jp(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(IA(U(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),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(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(Ro(xb,8),Ro(Qa),Ro($u),Ro(Tc),Ro(sv),Ro(wx),Ro(rM,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,Ax,5),Tu(i,vx,5)),2&t){let t;Au(t=ku())&&(e._content=t.first),Au(t=ku())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&vu(Ax,5),2&t){let t;Au(t=ku())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&ua("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ua([{provide:Mx,useExisting:t}])],ngContentSelectors:px,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(t,e){1&t&&(Jo(dx),Lo(0,lx,1,2,"div",0),Qo(1),Qo(2,1),Lo(3,hx,2,0,"mat-drawer-content",1)),2&t&&(xo("ngIf",e.hasBackdrop),Qs(3),xo("ngIf",!e._content))},directives:[xh,Ax],styles:[bx],encapsulation:2,changeDetection:0}),t})(),kx=(()=>{class t extends Ax{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Tc),Ro(rt(()=>Cx)),Ro(Qa),Ro(iv),Ro($u))},t.\u0275cmp=Yt({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&ca("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[po],ngContentSelectors:ux,decls:1,vars:0,template:function(t,e){1&t&&(Jo(),Qo(0))},encapsulation:2,changeDetection:0}),t})(),Sx=(()=>{class t extends vx{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=D_(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=P_(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=P_(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(So("align",null),ca("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),ua("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[po],ngContentSelectors:ux,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(Jo(),Do(0,"div",0),Qo(1),Po())},directives:[nv],encapsulation:2,data:{animation:[yx.transformDrawer]},changeDetection:0}),t})(),Cx=(()=>{class t extends Tx{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,kx,5),Tu(i,Sx,5)),2&t){let t;Au(t=ku())&&(e._content=t.first),Au(t=ku())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&ua("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ua([{provide:Mx,useExisting:t}]),po],ngContentSelectors:_x,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(Jo(mx),Lo(0,fx,1,2,"div",0),Qo(1),Qo(2,1),Lo(3,gx,2,0,"mat-sidenav-content",1)),2&t&&(xo("ngIf",e.hasBackdrop),Qs(3),xo("ngIf",!e._content))},directives:[xh,kx,nv],styles:[bx],encapsulation:2,changeDetection:0}),t})(),Ex=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Xh,_M,Y_,rv],rv,_M]}),t})(),Lx=(()=>{class t{constructor(t){this.store=t}getSideMenuItems(){const t=this.store.get("displayed_tabs"),e=[];return t.forEach(t=>{switch(t){case"profile":e.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":e.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":e.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":e.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":e.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":e.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"settings":e.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.get("external_services").forEach(t=>{const i={icon:"insert_link",link:t.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};this.store.get("supportedLanguages").forEach(e=>{var n;i[`label_${e}`]=null!==(n=t[`label_${e}`])&&void 0!==n?n:t.label_en}),e.push(i)}),e}}return t.\u0275fac=function(e){return new(e||t)(un(PE))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),zx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[_M],_M]}),t})();const Rx=["*"],xx='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n',Ox=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Dx=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class Px{}const Nx=bM(wM(Px));class Ix{}const Bx=wM(Ix),Fx=new Ui("MatList"),Hx=new Ui("MatNavList");let qx=(()=>{class t extends Nx{constructor(){super(...arguments),this._stateChanges=new v}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[Ua([{provide:Hx,useExisting:t}]),po,ae],ngContentSelectors:Rx,decls:1,vars:0,template:function(t,e){1&t&&(Jo(),Qo(0))},styles:[xx],encapsulation:2,changeDetection:0}),t})(),jx=(()=>{class t extends Nx{constructor(t){super(),this._elementRef=t,this._stateChanges=new v,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa))},t.\u0275cmp=Yt({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[Ua([{provide:Fx,useExisting:t}]),po,ae],ngContentSelectors:Rx,decls:1,vars:0,template:function(t,e){1&t&&(Jo(),Qo(0))},styles:[xx],encapsulation:2,changeDetection:0}),t})(),Yx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),Wx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),Ux=(()=>{class t extends Bx{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new v,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(IA(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=D_(t)}ngAfterContentInit(){!function(t,e,i="mat"){t.changes.pipe(tf(t)).subscribe(({length:t})=>{NM(e,`${i}-2-line`,!1),NM(e,`${i}-3-line`,!1),NM(e,`${i}-multi-line`,!1),2===t||3===t?NM(e,`${i}-${t}-line`,!0):t>3&&NM(e,`${i}-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 t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(Tc),Ro(Hx,8),Ro(Fx,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,Yx,5),Tu(i,Wx,5),Tu(i,PM,5)),2&t){let t;Au(t=ku())&&(e._avatar=t.first),Au(t=ku())&&(e._icon=t.first),Au(t=ku())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&ua("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[po],ngContentSelectors:Dx,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(t,e){1&t&&(Jo(Ox),Do(0,"div",0),No(1,"div",1),Qo(2),Do(3,"div",2),Qo(4,1),Po(),Qo(5,2),Po()),2&t&&(Qs(1),xo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[UM],encapsulation:2,changeDetection:0}),t})(),Kx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[IM,KM,_M,XM,Xh],IM,_M,XM,zx]}),t})(),Vx=(()=>{class t{transform(t,e,i){return t[`${i}_${e}`]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"localisedText",type:t,pure:!0}),t})();const Xx=function(t){return{color:t}};function Gx(t,e){if(1&t){const t=Ho();Do(0,"mat-list-item",2),Wo("click",function(){const e=Re(t).$implicit,i=Go();return e.external?i.goToURL(e.link):i.shouldHideMenu()}),Do(1,"mat-icon",3),Aa(2),Po(),Do(3,"span",4),Aa(4),nu(5,"localisedText"),nu(6,"translate"),nu(7,"customTranslate"),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();ua("activated",i.isActive(t.activatedRegex)),Zo("routerLink",t.external?null:t.link),xo("ngStyle",Qc(16,Xx,i.textColor)),Qs(1),xo("ngStyle",Qc(18,Xx,i.iconColor)),Qs(1),va(t.icon),Qs(2),va(t.external?ou(5,7,t,i.lang,"label"):su(6,11,ru(7,13,t.label,i.lang)))}}let $x=(()=>{class t{constructor(t,e,i,n){this.sideMenuItemService=t,this.storeService=e,this.router=i,this.translateService=n,this.items=[],this.lang="en",this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.iconColor=this.storeService.get("theme","sidemenu_item_icon_color"),this.currentUrl=i.url,i.events.subscribe(t=>{t instanceof Ef&&(this.currentUrl=t.url)})}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{const{lang:e}=t;this.lang=e});const t=this.storeService.get("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(e=>t.includes(e.tabName))}isActive(t){return new RegExp(t).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}goToURL(t){window.open(t,"_blank")}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lx),Ro(PE),Ro(t_),Ro(ZC))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["disableRipple","","class","side-menu-item-height",3,"activated","ngStyle","routerLink","click",4,"ngFor","ngForOf"],["disableRipple","",1,"side-menu-item-height",3,"ngStyle","routerLink","click"],[3,"ngStyle"],[1,"nav-caption","ml-3"]],template:function(t,e){1&t&&(Do(0,"mat-nav-list",0),Lo(1,Gx,8,20,"mat-list-item",1),Po()),2&t&&(Qs(1),xo("ngForOf",e.items))},directives:[qx,zh,Ux,Fh,KR,e_,DC],pipes:[Vx,tE,GE],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}"]}),t})();function Jx(t,e){if(1&t&&(Do(0,"span",1),Do(1,"a",2),Aa(2),Po(),Po()),2&t){const t=e.$implicit;Qs(1),xo("routerLink",t.routerLink),Qs(1),va(t.label)}}let Qx=(()=>{class t{constructor(t,e,i){this.router=t,this.activatedRoute=e,this.translate=i,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}ngOnInit(){this.router.events.pipe(Nd(t=>t instanceof Ef)).subscribe(()=>{this.menuItems=[],this.createBreadcrumbs(this.activatedRoute.root)})}createBreadcrumbs(e,i=""){const n=e.children;0!==n.length&&n.forEach(e=>{const n=e.snapshot.url.map(t=>t.path).join("/");""!==n&&(i+=`/${n}`);const s=this.translate.instant(e.snapshot.data[t.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:i}),this.createBreadcrumbs(e,i)})}}return t.ROUTE_DATA_BREADCRUMB="breadcrumb",t.\u0275fac=function(e){return new(e||t)(Ro(t_),Ro(xg),Ro(ZC))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&Lo(0,Jx,3,2,"span",0),2&t&&xo("ngForOf",e.menuItems)},directives:[zh,i_],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}']}),t})();function Zx(t,e){1&t&&(Do(0,"mat-error"),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let tO=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.storeService=s,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(t=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)),this.dialogRef.close()})}getFullEmailBody(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(306).i8}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(ZC),Ro(qE),Ro(Tp),Ro(PE))},t.\u0275cmp=Yt({type:t,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(t,e){if(1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),Po(),Do(3,"div",1),Do(4,"mat-form-field"),Do(5,"mat-label"),Aa(6),nu(7,"translate"),Po(),Do(8,"input",2,3),Wo("ngModelChange",function(t){return e.subject=t}),Po(),Lo(10,Zx,3,3,"mat-error",4),Po(),Do(11,"mat-form-field"),Do(12,"mat-label"),Aa(13),nu(14,"translate"),Po(),Do(15,"textarea",5),Wo("ngModelChange",function(t){return e.message=t}),nu(16,"translate"),Aa(17," "),Po(),Do(18,"mat-hint"),Aa(19),nu(20,"translate"),Po(),Po(),Po(),Do(21,"div",6),Do(22,"div",7),Do(23,"button",8),Wo("click",function(){return e.close()}),Aa(24),nu(25,"translate"),Po(),Do(26,"button",9),Wo("click",function(){return e.sendBugReport()}),Aa(27),nu(28,"translate"),Po(),Po(),Po()),2&t){const t=zo(9);Qs(1),va(su(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),Qs(5),va(su(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),Qs(2),xo("ngModel",e.subject),Qs(2),xo("ngIf",t.invalid),Qs(3),va(su(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),Qs(2),Zo("placeholder",su(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),xo("ngModel",e.message),Qs(4),va(su(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),Qs(5),Ta(" ",su(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),Qs(2),xo("disabled",t.invalid),Qs(1),Ta(" ",su(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[bE,yE,zT,MT,mL,FT,Xk,lk,Ik,xh,wT,wE,pA,gT],pipes:[tE],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();const eO=function(t){return{color:t}};function iO(t,e){if(1&t&&(Do(0,"i",16),Aa(1),Po()),2&t){const t=Go().$implicit,e=Go(3);xo("ngStyle",Qc(2,eO,e.linksTextColor)),Qs(1),Ta(" ",t.icon," ")}}function nO(t,e){if(1&t){const t=Ho();Do(0,"span",17),Wo("click",function(){Re(t);const e=Go().$implicit;return Go(3).openDialog(e.dialog)}),Aa(1),nu(2,"localisedText"),Po()}if(2&t){const t=Go().$implicit,e=Go(3);xo("ngStyle",Qc(6,eO,e.linksTextColor)),Qs(1),Ta("",ou(2,2,t,e.language,"label")," ")}}function sO(t,e){if(1&t&&(Do(0,"a",18),Aa(1),nu(2,"localisedText"),Po()),2&t){const t=Go().$implicit,e=Go(3);xo("href",t.link,ts)("ngStyle",Qc(7,eO,e.linksTextColor)),Qs(1),va(ou(2,3,t,e.language,"label"))}}function rO(t,e){if(1&t&&(Do(0,"span",19),Aa(1),nu(2,"localisedText"),Po()),2&t){const t=Go().$implicit,e=Go(3);xo("ngStyle",Qc(6,eO,e.linksTextColor)),Qs(1),va(ou(2,2,t,e.language,"label"))}}function oO(t,e){if(1&t&&(Do(0,"div",11),Lo(1,iO,2,4,"i",12),Lo(2,nO,3,8,"span",13),Lo(3,sO,3,9,"a",14),Lo(4,rO,3,8,"span",15),Po()),2&t){const t=e.$implicit;Qs(1),xo("ngIf",t.icon),Qs(1),xo("ngIf",t.dialog),Qs(1),xo("ngIf",t.link&&!t.dialog),Qs(1),xo("ngIf",!t.link&&!t.dialog)}}function aO(t,e){if(1&t&&(Do(0,"div"),Lo(1,oO,5,4,"div",10),Po()),2&t){const t=Go().$implicit;Qs(1),xo("ngForOf",t.elements)}}function cO(t,e){if(1&t&&(Do(0,"div",7),Do(1,"h6",8),Aa(2),nu(3,"localisedText"),Po(),Lo(4,aO,2,1,"div",9),Po()),2&t){const t=e.$implicit,i=Go();Qs(1),xo("ngStyle",Qc(7,eO,i.headersTextColor)),Qs(1),Ta(" ",ou(3,3,t,i.language,"title")," "),Qs(2),xo("ngIf",t.elements)}}function uO(t,e){if(1&t&&(Do(0,"span"),Do(1,"a",6),Aa(2),Po(),Po()),2&t){const t=e.$implicit,i=e.index,n=Go();Qs(1),xo("href",t.url,ts)("ngStyle",Qc(3,eO,n.copyrightTextColor)),Qs(1),va(i?", "+t.name:t.name)}}const lO=function(t){return{background:t}};let hO=(()=>{class t{constructor(t,e,i){this.storeService=t,this.translateService=e,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),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.footerHeight=new lu}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{this.language=t.lang}),this.version=i(306).i8,this.items=this.storeService.get("footer","columns"),this.copyrightItems=this.storeService.get("footer","copyright_items"),this.getHeight()}openDialog(t){const e=TE();switch(t){case"reportIssue":e.width="550px",this.dialog.open(tO,e)}}getHeight(){let t=1;for(const e of this.items)t=t{class t{constructor(t,e){this.storeService=t,this.sanitizer=e,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){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"):"",this.logoPadding="admin-gui"===this.application?this.storeService.get("logo_padding"):""}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return t.\u0275fac=function(e){return new(e||t)(Ro(PE),Ro(Ed))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],["style"," display: flex; flex-direction: row;",4,"ngIf"],["style","padding-top: 16px",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"],[3,"ngStyle"],[1,"logo-container",3,"innerHTML","ngStyle"],[2,"display","flex","flex-direction","row"],[1,"router-icon-scale",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[2,"padding-top","16px"],[1,"ml-3",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(t,e){1&t&&(Do(0,"div",0),Lo(1,fO,2,6,"div",1),Lo(2,gO,3,1,"div",2),Lo(3,mO,2,1,"div",3),Lo(4,bO,2,4,"p",4),Po(),Do(5,"div",5),Do(6,"div",6),Do(7,"div",7),No(8,"router-outlet"),Po(),Do(9,"div",8),No(10,"perun-web-apps-footer"),Po(),Po(),Po()),2&t&&(xo("ngStyle",Zc(6,yO,e.headerBackgroundColor,e.headerTextColor)),Qs(1),xo("ngIf","admin-gui"===e.application),Qs(1),xo("ngIf","publications"===e.application),Qs(1),xo("ngIf","user-profile"===e.application),Qs(1),xo("ngIf",!!e.headerTitle),Qs(2),xo("ngStyle",Zc(9,wO,e.getContentInnerMinHeight(),e.contentBackgroundColor)))},directives:[Fh,xh,s_,hO,DC],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}.router-icon-scale[_ngcontent-%COMP%]{transform:scale(.75);margin-top:.3rem}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}"]}),t})();const AO=function(t){return{background:t}},vO=function(t){return{"min-height":t}};function TO(t,e){if(1&t){const t=Ho();No(0,"perun-web-apps-notificator"),Do(1,"div",2),Do(2,"perun-web-apps-header",3),Wo("sidenavToggle",function(){return Re(t),zo(5).toggle()}),Po(),Do(3,"mat-sidenav-container"),Do(4,"mat-sidenav",4,5),No(6,"perun-web-apps-side-menu",6),Po(),Do(7,"mat-sidenav-content",7),Do(8,"div",8),No(9,"perun-web-apps-breadcrumbs"),No(10,"router-outlet"),Po(),Do(11,"perun-web-apps-footer",9),Wo("footerHeight",function(e){return Re(t),Go().setContentHeight(e)}),Po(),Po(),Po(),Po()}if(2&t){const t=zo(5),e=Go();Qs(4),xo("mode",e.sidebarMode)("ngStyle",Qc(6,AO,e.sideMenuBgColor))("opened",!e.isMobile()),Qs(2),xo("sideNav",t),Qs(1),xo("ngStyle",Qc(8,AO,e.contentBackgroundColor)),Qs(1),xo("ngStyle",Qc(10,vO,e.contentHeight))}}function kO(t,e){1&t&&No(0,"perun-web-apps-login-screen-base",10),2&t&&xo("application","user-profile")}let SO=(()=>{class t{constructor(t,e,i,n,s){this.store=t,this.attributesManagerService=e,this.translateService=i,this.initAuth=n,this.changeDetector=s,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.getScreenSize()}ngOnInit(){this.isLoginScreenShown=this.initAuth.isLoginScreenShown(),this.isLoginScreenShown||this.attributesManagerService.getUserAttributes(this.store.getPerunPrincipal().userId).subscribe(t=>{const e=t.find(t=>"preferredLanguage"===t.friendlyName);e&&e.value&&this.translateService.use(e.value)})}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}isMobile(){return window.innerWidth<=t.minWidth}setContentHeight(t){this.contentHeight="calc(100vh - 84px - "+t+"px)",this.changeDetector.detectChanges()}}return t.minWidth=992,t.\u0275fac=function(e){return new(e||t)(Ro(PE),Ro(wp),Ro(ZC),Ro(BE),Ro(Tc))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-root"]],hostBindings:function(t,e){1&t&&Wo("resize",function(t){return e.getScreenSize(t)},!1,us)},decls:2,vars:2,consts:[[3,"ngIf"],[3,"application",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"],[3,"footerHeight"],[3,"application"]],template:function(t,e){1&t&&(Lo(0,TO,12,12,"ng-template",0),Lo(1,kO,1,1,"perun-web-apps-login-screen-base",1)),2&t&&(xo("ngIf",!e.isLoginScreenShown),Qs(1),xo("ngIf",e.isLoginScreenShown))},directives:[xh,Gz,rx,Cx,Sx,Fh,KR,$x,kx,Qx,s_,hO,MO],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}"]}),t})();var CO=i(9355);function EO(t,e){if(1&t){const t=Ho();Do(0,"button",15),Wo("click",function(){Re(t);const e=Go().index;return Go().removeValue(e)}),Do(1,"mat-icon"),Aa(2," indeterminate_check_box "),Po(),Po()}}function LO(t,e){if(1&t){const t=Ho();Do(0,"div",9),Do(1,"mat-form-field",10),No(2,"label",11),Do(3,"input",12),Wo("click",function(){const e=Re(t).index,i=Go();return i.readonly&&i.attribute.displayName&&i.showValue(i.keys[e],i.attribute.displayName)})("ngModelChange",function(e){const i=Re(t).index;return Go().keys[i]=e}),Po(),Po(),Do(4,"mat-form-field",10),No(5,"label",11),Do(6,"input",13),Wo("click",function(){const e=Re(t).$implicit,i=Go();return i.readonly&&void 0!==i.attribute.displayName&&i.showValue(e,i.attribute.displayName)})("ngModelChange",function(e){const i=Re(t).index;return Go().values[i]=e}),Po(),Po(),Lo(7,EO,3,0,"button",14),Po()}if(2&t){const t=e.index,i=Go();Qs(1),Zo("appearance",i.readonly?"none":"standard"),Qs(1),ea("for","",i.attribute.id,"-key-",t,""),Qs(1),ua("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),ea("id","",i.attribute.id,"-key-",t,""),ta("name","key-",t,""),xo("ngModel",i.keys[t])("readonly",i.readonly),Qs(1),Zo("appearance",i.readonly?"none":"standard"),Qs(1),ea("for","",i.attribute.id,"-value-",t,""),Qs(1),ua("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),ta("name","value-",t,""),ea("id","",i.attribute.id,"-value-",t,""),xo("readonly",i.readonly)("ngModel",i.values[t]),Qs(1),xo("ngIf",!i.readonly)}}function zO(t,e){1&t&&(Do(0,"mat-icon"),Aa(1,"more_horiz"),Po())}function RO(t,e){1&t&&(Do(0,"mat-icon"),Aa(1,"keyboard_arrow_up"),Po())}function xO(t,e){if(1&t){const t=Ho();Do(0,"button",16),Wo("click",function(){return Re(t),Go().onShowChange()}),Lo(1,zO,2,0,"mat-icon",17),Lo(2,RO,2,0,"mat-icon",17),Po()}if(2&t){const t=Go();Qs(1),xo("ngIf",!t.showMore),Qs(1),xo("ngIf",t.showMore)}}function OO(t,e){if(1&t){const t=Ho();Do(0,"button",18),Wo("click",function(){return Re(t),Go().addValue()}),Do(1,"mat-icon"),Aa(2," add_box "),Po(),Po()}}let DO=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(void 0!==this.attribute.value){const t=this.attribute.value;for(const[e,i]of Object.entries(t))this.keys.push(e),this.values.push(i)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=kE(this.attribute))}customTrackBy(t){return t}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(t){this.keys.splice(t,1),this.values.splice(t,1)}updateAttribute(){const t={};for(let e=0;ee.defaultItemsShown),Qs(1),xo("ngIf",!e.readonly))},directives:[Bk,hk,Dk,zh,OS,xh,zT,mL,FT,Xk,lk,Ik,pA,DC],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}"]}),t})();const PO=["input"],NO=function(t){return{enterDuration:t}},IO=["*"],BO=new Ui("mat-checkbox-default-options",{providedIn:"root",factory:FO});function FO(){return{color:"accent",clickAction:"check-indeterminate"}}let HO=0;const qO=FO(),jO={provide:NT,useExisting:rt(()=>KO),multi:!0};class YO{}class WO{constructor(t){this._elementRef=t}}const UO=MM(yM(wM(bM(WO))));let KO=(()=>{class t extends UO{constructor(t,e,i,n,s,r,o){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=r,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++HO,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new lu,this.indeterminateChange=new lu,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||qO,this.color=this.defaultColor=this._options.color||qO.color,this.tabIndex=parseInt(s)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=D_(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=D_(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=D_(t),e&&(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(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new YO;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(Tc),Ro(Cb),Ro($u),Yi("tabindex"),Ro(rM,8),Ro(BO,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(vu(PO,5),vu(UM,5)),2&t){let t;Au(t=ku())&&(e._inputElement=t.first),Au(t=ku())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(Ea("id",e.id),So("tabindex",null),ua("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ua([jO]),po],ngContentSelectors:IO,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",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(t,e){if(1&t&&(Jo(),Do(0,"label",0,1),Do(2,"span",2),Do(3,"input",3,4),Wo("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),Po(),Do(5,"span",5),No(6,"span",6),Po(),No(7,"span",7),Do(8,"span",8),ri(),Do(9,"svg",9),No(10,"path",10),Po(),oi(),No(11,"span",11),Po(),Po(),Do(12,"span",12,13),Wo("cdkObserveContent",function(){return e._onLabelTextChange()}),Do(14,"span",14),Aa(15,"\xa0"),Po(),Qo(16),Po(),Po()),2&t){const t=zo(1),i=zo(13);So("for",e.inputId),Qs(2),ua("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),Qs(1),xo("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),So("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),Qs(2),xo("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Qc(19,NO,"NoopAnimations"===e._animationMode?0:150))}},directives:[UM,nb],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),VO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})(),XO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[KM,_M,sb,VO],_M,VO]}),t})();function GO(t,e){if(1&t){const t=Ho();Do(0,"mat-checkbox",2),Wo("change",function(){return Re(t),Go()._sendEventToParent()})("ngModelChange",function(e){return Re(t),Go().attribute.value=e}),Po()}2&t&&xo("ngModel",Go().attribute.value)}function $O(t,e){if(1&t&&(Do(0,"mat-label"),Aa(1),Po()),2&t){const t=Go();Qs(1),va(t.attribute.value)}}let JO=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent=new lu}ngOnInit(){this.readonly||(this.readonly=kE(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"div"),Lo(1,GO,1,1,"mat-checkbox",0),Lo(2,$O,2,1,"mat-label",1),Po()),2&t&&(Qs(1),xo("ngIf",!e.readonly),Qs(1),xo("ngIf",e.readonly))},directives:[xh,KO,lk,Ik,MT],styles:[""]}),t})();function QO(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function ZO(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function tD(t,e){const i=e?"":"none";ZO(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function eD(t,e){const i=t.style;i.position=e?"":"fixed",i.top=i.opacity=e?"":"0",i.left=e?"":"-999em"}function iD(t,e){return e?t+" "+e:t}function nD(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function sD(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function rD(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function oD(t,e,i){const{top:n,bottom:s,left:r,right:o}=t;return i>=n&&i<=s&&e>=r&&e<=o}function aD(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function cD(t,e,i,n){const{top:s,right:r,bottom:o,left:a,width:c,height:u}=t,l=c*e,h=u*e;return n>s-h&&na-l&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:rD(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let r,o;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();r=t.top,o=t.left}else r=e.scrollTop,o=e.scrollLeft;const a=s.top-r,c=s.left-o;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&aD(t.clientRect,a,c)}),s.top=r,s.left=o,{top:a,left:c}}}function lD(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),i=this._dropContainer;if(!e)return void this._endDragSequence(t);i&&(i.isDragging()||i.isReceiving())||(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),t.preventDefault();const i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new uD(i,s),r.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=D_(t);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(t){this._handles=t.map(t=>F_(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(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=F_(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,mD),e.addEventListener("touchstart",this._pointerDown,gD)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?F_(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&wD(this._rootElement),wD(this._anchor),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(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),tD(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),tD(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&wD(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&wD(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){MD(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,n=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),r=this._getShadowRoot();i.insertBefore(s,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),eD(t,!1),this._document.body.appendChild(i.replaceChild(n,t)),this._getPreviewInsertionPoint(i,r).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),n=MD(e),s=!n&&0!==e.button,r=this._rootElement,o=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||o)return;this._handles.length&&(this._rootElementTapHighlight=r.style.webkitTapHighlightColor||"",r.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=rD(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){eD(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(n),r=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s,dropPoint:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:s,dropPoint:n}),e.drop(this,i,this._initialIndex,this._initialContainer,r,s,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=AD(s,this._document),this._previewRef=s,t.matchSize?vD(n,e):n.style.transform=bD(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=lD(t),vD(n,t.getBoundingClientRect()),this._initialTransform&&(n.style.transform=this._initialTransform)}return ZO(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),tD(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=sD(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),r=sD(e,"transition-duration"),o=sD(e,"transition-delay");return nD(r[s])+nD(o[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=AD(this._placeholderRef,this._document)):i=lD(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,r=MD(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:s.left-i.left+(r.pageX-s.left-o.left),y:s.top-i.top+(r.pageY-s.top-o.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=MD(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,s=i.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=n,e.y=s,e.matrixTransform(t.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,r=this._previewRect,o=s.top+e,a=s.bottom-(r.height-e);i=yD(i,s.left+t,s.right-(r.width-t)),n=yD(n,o,a)}return{x:i,y:n}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-s.x),o=Math.abs(i-s.y);return r>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,tD(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,mD),t.removeEventListener("touchstart",this._pointerDown,gD)}_applyRootElementTransform(t,e){const i=bD(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=iD(i,this._initialTransform)}_applyPreviewTransform(t,e){var i;const n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,s=bD(t,e);this._preview.style.transform=iD(s,n)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,r=n.right-i.right,o=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),r>0&&(t-=r)):t=0,i.height>n.height?(o>0&&(e+=o),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:MD(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&aD(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Z_(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const t=this._document;return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}return F_(i)}}function bD(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function yD(t,e,i){return Math.max(e,Math.min(i,t))}function wD(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function MD(t){return"t"===t.type[0]}function AD(t,e){const i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];const n=e.createElement("div");return i.forEach(t=>n.appendChild(t)),n}function vD(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=bD(e.left,e.top)}function TD(t,e,i){const n=kD(e,t.length-1),s=kD(i,t.length-1);if(n===s)return;const r=t[n],o=s!0,this.sortPredicate=()=>!0,this.beforeStarted=new v,this.entered=new v,this.exited=new v,this.dropped=new v,this.sorted=new v,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=h.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new v,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=L_){return(!DA(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=L_),new b(i=>(i.add(e.schedule(QO,t,{subscriber:i,counter:0,period:t})),i))}(0,yA).pipe(IA(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?ED(t,-e):2===this._verticalScrollDirection&&ED(t,e),1===this._horizontalScrollDirection?LD(t,-e):2===this._horizontalScrollDirection&&LD(t,e)})},this.element=F_(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new uD(i,s)}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(t,e,i,n){let s;this._draggingStarted(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const r=this._activeDraggables,o=r.indexOf(t),a=t.getPlaceholderElement();let c=r[s];if(c===t&&(c=r[s+1]),o>-1&&r.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){const e=c.getRootElement();e.parentElement.insertBefore(a,e),r.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){const e=r[0].getRootElement();e.parentNode.insertBefore(a,e),r.unshift(t)}else F_(this.element).appendChild(a),r.push(t);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,r,o){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:s,distance:r,dropPoint:o})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=F_(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?CD("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!this._clientRect||!cD(this._clientRect,.05,e,i))return;const s=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===r&&s.length>0)return;const o="horizontal"===this._orientation,a=CD(s,e=>e.drag===t),c=s[r],u=c.clientRect,l=a>r?1:-1,h=this._getItemOffsetPx(s[a].clientRect,u,l),d=this._getSiblingOffsetPx(a,s,l),p=s.slice();TD(s,a,r),this.sorted.next({previousIndex:a,currentIndex:r,container:this,item:t}),s.forEach((e,i)=>{if(p[i]===e)return;const n=e.drag===t,s=n?h:d,r=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,o?(r.style.transform=iD(`translate3d(${Math.round(e.offset)}px, 0, 0)`,e.initialTransform),aD(e.clientRect,0,s)):(r.style.transform=iD(`translate3d(0, ${Math.round(e.offset)}px, 0)`,e.initialTransform),aD(e.clientRect,s,0))}),this._previousSwap.overlaps=oD(u,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=o?n.x:n.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((r,o)=>{o!==this._document&&r.clientRect&&!i&&cD(r.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=zD(e,n),r=RD(e,i);let o=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(o=1):t.scrollHeight-e>t.clientHeight&&(o=2)}if(r){const e=t.scrollLeft;1===r?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[o,a]}(o,r.clientRect,t,e),(n||s)&&(i=o))}),!n&&!s){const{width:r,height:o}=this._viewportRuler.getViewportSize(),a={width:r,height:o,top:0,right:r,bottom:o,left:0};n=zD(a,e),s=RD(a,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=F_(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=F_(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:rD(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=F_(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{var e;const i=t.getRootElement();if(i){const n=null===(e=this._itemPositions.find(e=>e.drag===t))||void 0===e?void 0:e.initialTransform;i.style.transform=n||""}}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,r=e[t+-1*i];let o=s[n?"width":"height"]*i;if(r){const t=n?"left":"top",e=n?"right":"bottom";-1===i?o-=r.clientRect[t]-s[e]:o+=s[t]-r.clientRect[e]}return o}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation,r=CD(this._itemPositions,({drag:r,clientRect:o},a,c)=>{if(r===t)return c.length<2;if(n){const t=s?n.x:n.y;if(r===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!oD(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=F_(this.element);return n===s||s.contains(n)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{aD(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=Z_(F_(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function CD(t,e){for(let i=0;i=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}function RD(t,e){const{left:i,right:n,width:s}=t,r=.05*s;return e>=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}const xD=$_({passive:!1,capture:!0});let OD=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new v,this.pointerUp=new v,this.scroll=new v,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,xD)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,xD)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:xD}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:xD}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(un($u),un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un($u),un(Ll))},token:t,providedIn:"root"}),t})();const DD={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let PD=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=DD){return new _D(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new SD(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(un(Ll),un($u),un(sv),un(OD))},t.\u0275prov=dt({factory:function(){return new t(un(Ll),un($u),un(sv),un(OD))},token:t,providedIn:"root"}),t})();const ND=new Ui("CDK_DRAG_PARENT"),ID=new Ui("CdkDropListGroup"),BD=new Ui("CDK_DRAG_CONFIG");let FD=0;const HD=new Ui("CdkDropList");let qD=(()=>{class t{constructor(e,i,n,s,r,o,a){this.element=e,this._changeDetectorRef=n,this._scrollDispatcher=s,this._dir=r,this._group=o,this._destroyed=new v,this.connectedTo=[],this.id="cdk-drop-list-"+FD++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new lu,this.entered=new lu,this.exited=new lu,this.sorted=new lu,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,a&&this._assignDefaults(a),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._dropListRef.sortPredicate=(t,e,i)=>this.sortPredicate(t,e.data,i.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),o&&o._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=D_(t)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._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(tf(this._dir.value),IA(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const i=I_(this.connectedTo).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);if(this._group&&this._group._items.forEach(t=>{-1===i.indexOf(t)&&i.push(t)}),!this._scrollableParentsResolved){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=D_(this.sortingDisabled),e.autoScrollDisabled=D_(this.autoScrollDisabled),e.autoScrollStep=P_(this.autoScrollStep,2),e.connectedTo(i.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:i,sortingDisabled:n,listAutoScrollDisabled:s,listOrientation:r}=t;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=s&&s,this.orientation=r||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(PD),Ro(Tc),Ro(iv),Ro(xb,8),Ro(ID,12),Ro(BD,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(So("id",e.id),ua("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[Ua([{provide:ID,useValue:void 0},{provide:HD,useExisting:t}])]}),t._dropLists=[],t})();const jD=new Ui("CdkDragHandle"),YD=new Ui("CdkDragPlaceholder"),WD=new Ui("CdkDragPreview");let UD=(()=>{class t{constructor(e,i,n,s,r,o,a,c,u,l,h){this.element=e,this.dropContainer=i,this._ngZone=s,this._viewContainerRef=r,this._dir=a,this._changeDetectorRef=u,this._selfHandle=l,this._parentDrag=h,this._destroyed=new v,this.started=new lu,this.released=new lu,this.ended=new lu,this.entered=new lu,this.exited=new lu,this.dropped=new lu,this.moved=new b(t=>{const e=this._dragRef.moved.pipe(P(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=c.createDrag(e,{dragStartThreshold:o&&null!=o.dragStartThreshold?o.dragStartThreshold:5,pointerDirectionChangeThreshold:o&&null!=o.pointerDirectionChangeThreshold?o.pointerDirectionChangeThreshold:5,zIndex:null==o?void 0:o.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),o&&this._assignDefaults(o),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=D_(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.pipe(Jp(1),IA(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(tf(this._handles),wf(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._selfHandle&&this.rootElementSelector&&e.push(this.element),this._dragRef.withHandles(e)}),Vp(t=>U(...t.map(t=>t._stateChanges.pipe(tf(t))))),IA(this._destroyed)).subscribe(t=>{const e=this._dragRef,i=t.element.nativeElement;t.disabled?e.disableHandle(i):e.enableHandle(i)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?KD(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?KD(this.element.nativeElement,t):F_(t):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,i=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=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 i&&i?i:P_(i),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe(Jp(1)).subscribe(()=>{var i,n;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let s=this.element.nativeElement.parentElement;for(;s;){if(null===(i=s.classList)||void 0===i?void 0:i.contains("cdk-drag")){e.withParent((null===(n=t._dragInstances.find(t=>t.element.nativeElement===s))||void 0===n?void 0:n._dragRef)||null);break}s=s.parentElement}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:i,constrainPosition:n,previewClass:s,boundaryElement:r,draggingDisabled:o,rootElementSelector:a,previewContainer:c}=t;this.disabled=null!=o&&o,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),r&&(this.boundaryElement=r),a&&(this.rootElementSelector=a),c&&(this.previewContainer=c)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(HD,12),Ro(Ll),Ro($u),Ro(Nc),Ro(BD,8),Ro(xb,8),Ro(PD),Ro(Tc),Ro(jD,10),Ro(ND,12))},t.\u0275dir=Gt({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,WD,5),Tu(i,YD,5),Tu(i,jD,5)),2&t){let t;Au(t=ku())&&(e._previewTemplate=t.first),Au(t=ku())&&(e._placeholderTemplate=t.first),Au(t=ku())&&(e._handles=t)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&ua("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Ua([{provide:ND,useExisting:t}]),ae]}),t._dragInstances=[],t})();function KD(t,e){let i=t.parentElement;for(;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}let VD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[PD],imports:[rv]}),t})();const XD=["*"],GD=new Ui("MatChipRemove"),$D=new Ui("MatChipAvatar"),JD=new Ui("MatChipTrailingIcon");class QD{constructor(t){this._elementRef=t}}const ZD=MM(yM(wM(QD),"primary"),-1);let tP=(()=>{class t extends ZD{constructor(t,e,i,n,s,r,o,a){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=s,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new v,this._onBlur=new v,this.selectionChange=new lu,this.destroyed=new lu,this.removed=new lu,this._addHostClassName(),this._chipRippleTarget=r.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new YM(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=a&&parseInt(a)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=D_(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=D_(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=D_(t)}get removable(){return this._removable}set removable(t){this._removable=D_(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):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(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),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(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe(Jp(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro($u),Ro(j_),Ro(WM,8),Ro(Tc),Ro(Ll),Ro(rM,8),Yi("tabindex"))},t.\u0275dir=Gt({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,$D,5),Tu(i,JD,5),Tu(i,GD,5)),2&t){let t;Au(t=ku())&&(e.avatar=t.first),Au(t=ku())&&(e.trailingIcon=t.first),Au(t=ku())&&(e.removeIcon=t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&Wo("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(So("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),ua("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",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[po]}),t})();const eP=new Ui("mat-chips-default-options");class iP{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const nP=AM(iP);let sP=0;class rP{constructor(t,e){this.source=t,this.value=e}}let oP=(()=>{class t extends nP{constructor(t,e,i,n,s,r,o){super(r,n,s,o),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=o,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new v,this._uid="mat-chip-list-"+sP++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new lu,this.valueChange=new lu,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=D_(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=D_(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,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(t){this._disabled=D_(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=D_(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return U(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return U(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return U(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return U(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new fb(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(IA(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(IA(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(tf(null),IA(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 ZA(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(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new rP(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(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.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(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.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(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(Tc),Ro(xb,8),Ro(Dk,8),Ro(Kk,8),Ro(DM),Ro(ck,10))},t.\u0275cmp=Yt({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){if(1&t&&Tu(i,tP,5),2&t){let t;Au(t=ku())&&(e.chips=t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&Wo("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(Ea("id",e._uid),So("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("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),ua("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[Ua([{provide:_T,useExisting:t}]),po],ngContentSelectors:XD,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(Jo(),Do(0,"div",0),Qo(1),Po())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})(),aP=0,cP=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new lu,this.placeholder="",this.id="mat-chip-list-input-"+aP++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=D_(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=D_(t)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(t){if(t){if(9!==t.keyCode||T_(t,"shiftKey")||this._chipList._allowFocusEscape(),8===t.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}_keyup(t){!this._focusLastChipOnBackspace&&8===t.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this.inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==t||t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this.inputElement.focus(t)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(t){return!T_(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(eP))},t.\u0275dir=Gt({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&Wo("keydown",function(t){return e._keydown(t)})("keyup",function(t){return e._keyup(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(Ea("id",e.id),So("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:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[ae]}),t})();const uP={separatorKeyCodes:[13]};let lP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[DM,{provide:eP,useValue:uP}],imports:[[_M]]}),t})();function hP(t,e){if(1&t){const t=Ho();Do(0,"mat-icon",9),Wo("mousedown",function(){return Re(t),Go(2).dragDisabled=!1}),Aa(1,"drag_indicator"),Po()}}function dP(t,e){if(1&t){const t=Ho();Do(0,"mat-icon",10),Wo("click",function(){Re(t);const e=Go().$implicit;return Go().edit(e)}),Aa(1,"edit"),Po()}}function pP(t,e){if(1&t){const t=Ho();Do(0,"mat-icon",11),Wo("click",function(){Re(t);const e=Go().$implicit;return Go().remove(e)}),Aa(1,"cancel"),Po()}}function fP(t,e){if(1&t){const t=Ho();Do(0,"mat-chip",4),Wo("removed",function(){const e=Re(t).$implicit,i=Go();return i.remove(e),i._sendEventToParent()}),Lo(1,hP,2,0,"mat-icon",5),Do(2,"div",6),Wo("click",function(){const e=Re(t).$implicit,i=Go();return i.readonly&&void 0!==i.attribute.displayName&&i.showValue(e,i.attribute.displayName)}),Aa(3),Po(),Lo(4,dP,2,0,"mat-icon",7),Lo(5,pP,2,0,"mat-icon",8),Po()}if(2&t){const t=e.$implicit,i=Go();xo("selectable",i.selectable)("cdkDragData",t)("removable",i.removable),Qs(1),xo("ngIf",i.removable),Qs(1),ua("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),Qs(1),va(t),Qs(1),xo("ngIf",i.removable),Qs(1),xo("ngIf",i.removable)}}function gP(t,e){1&t&&(Do(0,"mat-icon"),Aa(1,"more_horiz"),Po())}function mP(t,e){1&t&&(Do(0,"mat-icon"),Aa(1,"keyboard_arrow_up"),Po())}function _P(t,e){if(1&t){const t=Ho();Do(0,"div",12),Do(1,"span",13),Do(2,"button",14),Wo("click",function(){return Re(t),Go().onShowChange()}),Lo(3,gP,2,0,"mat-icon",15),Lo(4,mP,2,0,"mat-icon",15),Po(),Po(),Po()}if(2&t){const t=Go();Qs(1),xo("matTooltip",t.showMore?"Show less":"Show more")("matTooltipPosition","above"),Qs(2),xo("ngIf",!t.showMore),Qs(1),xo("ngIf",t.showMore)}}function bP(t,e){if(1&t){const t=Ho();Do(0,"mat-form-field",12),Do(1,"input",16),Wo("matChipInputTokenEnd",function(e){return Re(t),Go().add(e)})("change",function(){return Re(t),Go()._sendEventToParent()}),Po(),Po()}if(2&t){const t=Go(),e=zo(2);Qs(1),xo("matChipInputFor",e)("matChipInputSeparatorKeyCodes",t.separatorKeysCodes)("matChipInputAddOnBlur",t.addOnBlur)}}let yP=(()=>{class t{constructor(t){this.dialog=t,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new lu,this.readonly=!1}ngOnInit(){this.removable=!kE(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=kE(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(t){const e=t.input,i=t.value;(i||"").trim()&&(this.attribute.value.push(i.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),e&&(e.value=""),this.sendEventToParent.emit()}remove(t){const e=TE();e.width="400px",e.data={name:t},this.dialog.open(Nz,e).afterClosed().subscribe(e=>{if(e){const e=this.attribute.value.indexOf(t);this.attribute.value.splice(e,1),this.values=Object.values(this.attribute.value),this.sendEventToParent.emit()}})}drop(t){this.dragDisabled=!0,TD(this.attribute.value,t.previousIndex,t.currentIndex),this.values=Object.values(this.attribute.value)}edit(t){const e=this.attribute.value.indexOf(t),i=TE();i.width="600px",i.data={attribute:this.attribute,index:e},this.dialog.open(Pz,i).afterClosed().subscribe(t=>{t&&(this.values=Object.values(this.attribute.value),this.sendEventToParent.emit())})}showValue(t,e){const i=TE();i.width="350px",i.data={value:t,title:e},this.dialog.open(Dz,i)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return t.\u0275fac=function(e){return new(e||t)(Ro(mE))},t.\u0275cmp=Yt({type:t,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",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(t,e){1&t&&(Do(0,"div"),Do(1,"mat-chip-list",0,1),Wo("cdkDropListDropped",function(t){return e.drop(t),e._sendEventToParent()}),Lo(3,fP,6,9,"mat-chip",2),Lo(4,_P,5,4,"div",3),Lo(5,bP,2,3,"mat-form-field",3),Po(),Po()),2&t&&(Qs(1),xo("cdkDropListDisabled",e.dragDisabled),Qs(2),xo("ngForOf",e.values.slice(0,e.itemsShown)),Qs(1),xo("ngIf",e.values.length>e.defaultItemsShown),Qs(1),xo("ngIf",!e.readonly))},directives:[oP,qD,zh,xh,tP,UD,DC,OS,pA,zT,mL,cP],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%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})(),wP=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new lu}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=kE(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t,e){const i=TE();i.width="350px",i.data={value:t,title:e},this.dialog.open(Dz,i)}}return t.\u0275fac=function(e){return new(e||t)(Ro(mE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(t,e){1&t&&(Do(0,"mat-form-field",0),Do(1,"input",1),Wo("click",function(){return e.readonly&&void 0!==e.value&&e.showValue(e.value,e.attribute.displayName)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),Po(),Po()),2&t&&(Zo("appearance",e.readonly?"none":"standard"),Qs(1),ua("cursor-pointer",e.readonly&&void 0!==e.value),xo("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[zT,mL,FT,lk,Ik],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})(),MP=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new lu}ngOnInit(){this.readonly||(this.readonly=kE(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t){const e=TE();e.width="350px",e.data={value:t.value,title:t.displayName},this.dialog.open(Dz,e)}}return t.\u0275fac=function(e){return new(e||t)(Ro(mE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(t,e){1&t&&(Do(0,"mat-form-field",0),Do(1,"input",1),Wo("click",function(){return e.readonly&&void 0!==e.attribute.value&&e.showValue(e.attribute)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),Po(),Po()),2&t&&(Zo("appearance",e.readonly?"none":"standard"),Qs(1),ua("cursor-pointer",e.readonly&&void 0!==e.attribute.value),xo("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[zT,mL,Hk,FT,lk,Ik],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();const AP=["map"];function vP(t,e){if(1&t){const t=Ho();Do(0,"perun-web-apps-attribute-value-boolean",3),Wo("sendEventToParent",function(){return Re(t),Go()._sendEventToParent2()}),Po()}if(2&t){const t=Go();xo("attribute",t.attribute)("readonly",t.readonly)}}function TP(t,e){if(1&t){const t=Ho();Do(0,"perun-web-apps-attribute-value-list",3),Wo("sendEventToParent",function(){return Re(t),Go()._sendEventToParent2()}),Po()}if(2&t){const t=Go();xo("attribute",t.attribute)("readonly",t.readonly)}}function kP(t,e){if(1&t&&No(0,"perun-web-apps-attribute-value-map",4,5),2&t){const t=Go();xo("attribute",t.attribute)("readonly",t.readonly)}}function SP(t,e){if(1&t){const t=Ho();Do(0,"perun-web-apps-attribute-value-string",3),Wo("sendEventToParent",function(){return Re(t),Go()._sendEventToParent2()}),Po()}if(2&t){const t=Go();xo("attribute",t.attribute)("readonly",t.readonly)}}function CP(t,e){if(1&t){const t=Ho();Do(0,"perun-web-apps-attribute-value-integer",3),Wo("sendEventToParent",function(){return Re(t),Go()._sendEventToParent2()}),Po()}if(2&t){const t=Go();xo("attribute",t.attribute)("readonly",t.readonly)}}let EP=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent2=new lu}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(t,e){if(1&t&&vu(AP,5),2&t){let t;Au(t=ku())&&(e.mapComponent=t.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(t,e){1&t&&(Do(0,"div"),Lo(1,vP,1,2,"perun-web-apps-attribute-value-boolean",0),Lo(2,TP,1,2,"perun-web-apps-attribute-value-list",0),Do(3,"div",1),Wo("click",function(){return e._sendEventToParent2()}),Lo(4,kP,2,2,"perun-web-apps-attribute-value-map",2),Po(),Lo(5,SP,1,2,"perun-web-apps-attribute-value-string",0),Lo(6,CP,1,2,"perun-web-apps-attribute-value-integer",0),Po()),2&t&&(Qs(1),xo("ngIf","java.lang.Boolean"===e.attribute.type),Qs(1),xo("ngIf","java.util.ArrayList"===e.attribute.type),Qs(2),xo("ngIf","java.util.LinkedHashMap"===e.attribute.type),Qs(1),xo("ngIf","java.lang.String"===e.attribute.type||"java.lang.LargeString"===e.attribute.type),Qs(1),xo("ngIf","java.lang.Integer"===e.attribute.type))},directives:[xh,JO,yP,DO,wP,MP],styles:[""]}),t})();function LP(t,e){1&t&&No(0,"mat-spinner",3)}function zP(t,e){if(1&t){const t=Ho();Do(0,"mat-option",16),Wo("click",function(){const e=Re(t).$implicit;return Go(4).changeLanguage(e)}),Aa(1),nu(2,"translate"),nu(3,"uppercase"),Po()}if(2&t){const t=e.$implicit;xo("value",t),Qs(1),Ta(" ",su(2,2,su(3,4,"SHARED_LIB.LANGUAGES."+t))," ")}}function RP(t,e){if(1&t){const t=Ho();Do(0,"mat-form-field",13),Do(1,"mat-select",14),Wo("valueChange",function(e){return Re(t),Go(3).currentLang=e}),Lo(2,zP,4,6,"mat-option",15),Po(),Po()}if(2&t){const t=Go(3);Qs(1),xo("value",t.currentLang),Qs(1),xo("ngForOf",t.languages)}}function xP(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"a",17),Aa(2),Po(),Do(3,"button",18),Wo("click",function(){return Re(t),Go(3).changeEmail()}),Aa(4),nu(5,"translate"),nu(6,"customTranslate"),Po(),Po()}if(2&t){const t=Go(3);Qs(1),ta("href","mailto:",t.email,"",ts),Qs(1),va(t.email),Qs(2),va(su(5,3,su(6,5,"PROFILE_PAGE.CHANGE_EMAIL")))}}function OP(t,e){if(1&t){const t=Ho();Do(0,"mat-option",16),Wo("click",function(){const e=Re(t).$implicit;return Go(4).changeTimeZone(e)}),Aa(1),Po()}if(2&t){const t=e.$implicit;xo("value",t),Qs(1),Ta(" ",t," ")}}function DP(t,e){if(1&t){const t=Ho();Do(0,"mat-form-field",13),Do(1,"mat-select",19),Wo("valueChange",function(e){return Re(t),Go(3).currentTimezone=e}),Lo(2,OP,2,2,"mat-option",15),Po(),Po()}if(2&t){const t=Go(3);Qs(1),xo("value",t.currentTimezone),Qs(1),xo("ngForOf",t.timeZones)}}function PP(t,e){1&t&&(Do(0,"p"),Aa(1,"-"),Po())}function NP(t,e){1&t&&No(0,"perun-web-apps-attribute-value",22),2&t&&xo("attribute",Go(2).$implicit.attribute)("readonly",!0)}function IP(t,e){if(1&t&&(Do(0,"div"),Lo(1,PP,2,0,"p",20),Lo(2,NP,1,2,"perun-web-apps-attribute-value",21),Po()),2&t){const t=Go().$implicit;Qs(1),xo("ngIf",!t.attribute.value),Qs(1),xo("ngIf",t.attribute.value)}}function BP(t,e){if(1&t&&(Do(0,"tr"),Do(1,"td",7),Do(2,"div",8),Aa(3),Po(),Po(),Do(4,"td",9),Lo(5,RP,3,2,"mat-form-field",10),Lo(6,xP,7,7,"div",11),Lo(7,DP,3,2,"mat-form-field",10),Lo(8,IP,3,2,"div",12),Po(),Po()),2&t){const t=e.$implicit,i=Go(2);Qs(2),xo("matTooltip",t["tooltip_"+i.currentLang]),Qs(1),va(t["displayName_"+i.currentLang]),Qs(1),xo("ngSwitch",t.attribute.friendlyName),Qs(1),xo("ngSwitchCase","preferredLanguage"),Qs(1),xo("ngSwitchCase","preferredMail"),Qs(1),xo("ngSwitchCase","timezone")}}function FP(t,e){if(1&t&&(Do(0,"table",4),Do(1,"tbody"),Do(2,"tr"),Do(3,"td",5),Aa(4),nu(5,"translate"),nu(6,"customTranslate"),Po(),Do(7,"td"),Aa(8),Po(),Po(),Lo(9,BP,9,6,"tr",6),Po(),Po()),2&t){const t=Go();Qs(4),va(su(5,3,su(6,5,"PROFILE_PAGE.NAME"))),Qs(4),va(t.fullName),Qs(1),xo("ngForOf",t.additionalAttributes)}}let HP=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u){this.translateService=t,this.dialog=e,this.authzResolverService=i,this.attributesManagerService=n,this.usersManagerService=s,this.route=r,this.router=o,this.notificator=a,this.storeService=c,this.apiRequestConfiguration=u,this.currentLang="en",this.languages=this.storeService.get("supportedLanguages"),this.timeZones=CO.tz.names().filter(t=>!t.startsWith("Etc/")),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",t.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){const t=this.route.snapshot.queryParamMap,e=t.get("token"),i=t.get("u");this.loading=!0,e&&i?(this.apiRequestConfiguration.dontHandleErrorForNext(),this.usersManagerService.validatePreferredEmailChangeWithToken(e,Number.parseInt(i,10)).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.router.navigate([],{replaceUrl:!0}),this.getData()},()=>{const t=TE();t.width="600px",this.dialog.open(Yz,t).afterClosed().subscribe(()=>{this.getData()})})):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(t=>{this.userId=t.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.fullName=(new XE).transform(t);const e=t.userAttributes.find(t=>"preferredMail"===t.friendlyName);this.email=e.value,this.languageAttribute=t.userAttributes.find(t=>"preferredLanguage"===t.friendlyName),this.currentLang=this.languageAttribute&&this.languageAttribute.value?this.languageAttribute.value:"en",this.timezoneAttribute=t.userAttributes.find(t=>"timezone"===t.friendlyName),this.currentTimezone=this.timezoneAttribute&&this.timezoneAttribute.value?this.timezoneAttribute.value:"-";const i=this.storeService.get("profile_page_attributes"),n=this.storeService.get("supportedLanguages");let s=0;i.forEach(e=>{const r=t.userAttributes.find(t=>t.friendlyName===e.friendly_name);r?(s++,this.addAttribute(r,e,n)):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${e.is_virtual?"virt":"def"}:${e.friendly_name}`).subscribe(t=>{this.addAttribute(t,e,n),s++,this.loading=s!==i.length}),this.loading=s!==i.length})})})}addAttribute(t,e,i){var n;const s={attribute:t};for(const r of i)s[`displayName_${r}`]=e[`display_name_${r}`]&&e[`display_name_${r}`].length?e[`display_name_${r}`]:t.displayName,s[`tooltip_${r}`]=null!==(n=e[`tooltip_${r}`])&&void 0!==n?n:"";this.additionalAttributes.push(s)}changeLanguage(t){this.currentLang=t,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(()=>{})}changeTimeZone(t){this.currentTimezone=t,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 t=TE();t.width="350px",t.data={userId:this.userId},this.dialog.open(jz,t).afterClosed().subscribe(t=>{t&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(t=>{this.email=t.value})}}return t.\u0275fac=function(e){return new(e||t)(Ro(ZC),Ro(mE),Ro(Mp),Ro(wp),Ro(Cp),Ro(xg),Ro(t_),Ro(qE),Ro(PE),Ro(HE))},t.\u0275cmp=Yt({type:t,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-stroked-button","",1,"ml-2",3,"click"],[3,"value","valueChange"],[4,"ngIf"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly"]],template:function(t,e){1&t&&(Do(0,"div",0),Lo(1,LP,1,0,"mat-spinner",1),Lo(2,FP,10,7,"table",2),Po()),2&t&&(Qs(1),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading))},directives:[xh,rL,zh,OS,Nh,Ih,Bh,zT,_S,sA,pA,EP],pipes:[tE,GE,Kh],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}"]}),t})();const qP=["mat-sort-header",""];function jP(t,e){if(1&t){const t=Ho();Do(0,"div",3),Wo("@arrowPosition.start",function(){return Re(t),Go()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Re(t),Go()._disableViewStateAnimation=!1}),No(1,"div",4),Do(2,"div",5),No(3,"div",6),No(4,"div",7),No(5,"div",8),Po(),Po()}if(2&t){const t=Go();xo("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),Qs(2),xo("@indicator",t._getArrowDirectionState()),Qs(1),xo("@leftPointer",t._getArrowDirectionState()),Qs(1),xo("@rightPointer",t._getArrowDirectionState())}}const YP=["*"],WP=new Ui("MAT_SORT_DEFAULT_OPTIONS");class UP{}const KP=vM(bM(UP));let VP=(()=>{class t extends KP{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new v,this.start="asc",this._direction="",this.sortChange=new lu}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=D_(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,i,n;if(!t)return"";const s=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let r=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,s),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(Ro(WP,8))},t.\u0275dir=Gt({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[po,ae]}),t})();const XP=fM.ENTERING+" "+pM.STANDARD_CURVE,GP={indicator:Nb("indicator",[qb("active-asc, asc",Hb({transform:"translateY(0px)"})),qb("active-desc, desc",Hb({transform:"translateY(10px)"})),Yb("active-asc <=> active-desc",Ib(XP))]),leftPointer:Nb("leftPointer",[qb("active-asc, asc",Hb({transform:"rotate(-45deg)"})),qb("active-desc, desc",Hb({transform:"rotate(45deg)"})),Yb("active-asc <=> active-desc",Ib(XP))]),rightPointer:Nb("rightPointer",[qb("active-asc, asc",Hb({transform:"rotate(45deg)"})),qb("active-desc, desc",Hb({transform:"rotate(-45deg)"})),Yb("active-asc <=> active-desc",Ib(XP))]),arrowOpacity:Nb("arrowOpacity",[qb("desc-to-active, asc-to-active, active",Hb({opacity:1})),qb("desc-to-hint, asc-to-hint, hint",Hb({opacity:.54})),qb("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Hb({opacity:0})),Yb("* => asc, * => desc, * => active, * => hint, * => void",Ib("0ms")),Yb("* <=> *",Ib(XP))]),arrowPosition:Nb("arrowPosition",[Yb("* => desc-to-hint, * => desc-to-active",Ib(XP,jb([Hb({transform:"translateY(-25%)"}),Hb({transform:"translateY(0)"})]))),Yb("* => hint-to-desc, * => active-to-desc",Ib(XP,jb([Hb({transform:"translateY(0)"}),Hb({transform:"translateY(25%)"})]))),Yb("* => asc-to-hint, * => asc-to-active",Ib(XP,jb([Hb({transform:"translateY(25%)"}),Hb({transform:"translateY(0)"})]))),Yb("* => hint-to-asc, * => active-to-asc",Ib(XP,jb([Hb({transform:"translateY(0)"}),Hb({transform:"translateY(-25%)"})]))),qb("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Hb({transform:"translateY(0)"})),qb("hint-to-desc, active-to-desc, desc",Hb({transform:"translateY(-25%)"})),qb("hint-to-asc, active-to-asc, asc",Hb({transform:"translateY(25%)"}))]),allowChildren:Nb("allowChildren",[Yb("* <=> *",[Ub("@*",Wb(),{optional:!0})])])};let $P=(()=>{class t{constructor(){this.changes=new v}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const JP={provide:$P,deps:[[new fn,new gn,$P]],useFactory:function(t){return t||new $P}};class QP{}const ZP=bM(QP);let tN=(()=>{class t extends ZP{constructor(t,e,i,n,s,r){super(),this._intl=t,this._changeDetectorRef=e,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=r,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=D_(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.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(t){this._isDisabled()||32!==t.keyCode&&13!==t.keyCode||(t.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 t=this._viewState.fromState;return(t?`${t}-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()}_handleStateChanges(){this._rerenderSubscription=U(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 t.\u0275fac=function(e){return new(e||t)(Ro($P),Ro(Tc),Ro(VP,8),Ro("MAT_SORT_HEADER_COLUMN_DEF",8),Ro(Cb),Ro(Qa))},t.\u0275cmp=Yt({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&Wo("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(So("aria-sort",e._getAriaSortAttribute()),ua("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[po],attrs:qP,ngContentSelectors:YP,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(Jo(),Do(0,"div",0),Do(1,"div",1),Qo(2),Po(),Lo(3,jP,6,6,"div",2),Po()),2&t&&(ua("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),So("tabindex",e._isDisabled()?null:0),Qs(3),xo("ngIf",e._renderArrow()))},directives:[xh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[GP.indicator,GP.leftPointer,GP.rightPointer,GP.arrowOpacity,GP.arrowPosition,GP.allowChildren]},changeDetection:0}),t})(),eN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[JP],imports:[[Xh,_M]]}),t})(),iN=(()=>{class t{constructor(t){this.elementRef=t}ngOnInit(){this.elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t})(),nN=(()=>{class t{constructor(){}onClick(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),e=location.search;window.open(t+e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&Wo("mouseup",function(t){return e.onClick(t)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t})(),sN=(()=>{class t{transform(t){const e=t.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"getMailFromAttributes",type:t,pure:!0}),t})();function rN(t,e){1&t&&No(0,"th",17)}function oN(t,e){if(1&t){const t=Ho();Do(0,"td",18),Do(1,"mat-checkbox",19),Wo("change",function(e){const i=Re(t).$implicit,n=Go();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();Qs(1),xo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function aN(t,e){1&t&&(Do(0,"th",20),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))))}function cN(t,e){if(1&t&&(Do(0,"td",21),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.userExtSource.id)}}function uN(t,e){1&t&&(Do(0,"th",17),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))))}function lN(t,e){if(1&t&&(Do(0,"td",21),Aa(1),nu(2,"getMailFromAttributes"),Po()),2&t){const t=e.$implicit;Qs(1),va(su(2,1,t.attributes))}}function hN(t,e){if(1&t&&(Do(0,"th",20),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t){const t=Go();Qs(1),va(su(2,1,su(3,3,t.extSourceNameHeader?t.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME")))}}function dN(t,e){if(1&t&&(Do(0,"td",21),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.userExtSource.extSource.name)}}function pN(t,e){if(1&t&&(Do(0,"th",20),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t){const t=Go();Qs(1),va(su(2,1,su(3,3,t.loginHeader?t.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN")))}}function fN(t,e){if(1&t&&(Do(0,"td",21),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.userExtSource.login)}}function gN(t,e){1&t&&(Do(0,"th",20),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))))}function mN(t,e){if(1&t&&(Do(0,"td",22),Aa(1),nu(2,"date"),Po()),2&t){const t=e.$implicit;Qs(1),va(ru(2,1,t.userExtSource.lastAccess,"d.M.y H:mm:ss"))}}function _N(t,e){1&t&&No(0,"tr",23)}const bN=function(t,e){return["/admin","users",t,"identities",e]};function yN(t,e){if(1&t&&No(0,"tr",24),2&t){const t=e.$implicit,i=Go();ua("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),xo("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:Zc(6,bN,i.userId,t.userExtSource.id))("routerLink",i.disableRouting?null:Zc(9,bN,i.userId,t.userExtSource.id))}}function wN(t,e){1&t&&(Do(0,"app-alert",25),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,su(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let MN=(()=>{class t{constructor(t,e){this.route=t,this.authResolver=e,this.selection=new ZA,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSize=5,this.page=new lu,this.pageSizeOptions=vE}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.disableRouting||this.route.parent.params.subscribe(t=>{this.userId=t.userId}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new Mz(this.userExtSources),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.userExtSource.id.toString();case"mail":{const e=t.attributes.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A"}case"extSourceName":return t.userExtSource.extSource.name;case"login":return t.userExtSource.login;case"lastAccess":return t.userExtSource.lastAccess.split(".")[0];default:return""}}exportData(t){LE(EE(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>CE(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>SE(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(t){return`${this.selection.isSelected(t.userExtSource)?"deselect":"select"} row ${t.userExtSource.id+1}`}}return t.\u0275fac=function(e){return new(e||t)(Ro(xg),Ro(Pp))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(t,e){if(1&t&&(vu(OE,7),vu(VP,7)),2&t){let t;Au(t=ku())&&(e.child=t.first),Au(t=ku())&&(e.matSort=t.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",pageSize:"pageSize",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},outputs:{page:"page"},features:[ae],decls:24,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["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",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(Do(0,"div",0),Do(1,"perun-web-apps-table-wrapper",1),Wo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),Do(2,"table",2),Io(3,3),Lo(4,rN,1,0,"th",4),Lo(5,oN,2,2,"td",5),Bo(),Io(6,6),Lo(7,aN,4,5,"th",7),Lo(8,cN,2,1,"td",8),Bo(),Io(9,9),Lo(10,uN,4,5,"th",4),Lo(11,lN,3,3,"td",8),Bo(),Io(12,10),Lo(13,hN,4,5,"th",7),Lo(14,dN,2,1,"td",8),Bo(),Io(15,11),Lo(16,pN,4,5,"th",7),Lo(17,fN,2,1,"td",8),Bo(),Io(18,12),Lo(19,gN,4,5,"th",7),Lo(20,mN,3,4,"td",13),Bo(),Lo(21,_N,1,0,"tr",14),Lo(22,yN,1,12,"tr",15),Po(),Po(),Po(),Lo(23,wN,4,5,"app-alert",16)),2&t&&(xo("hidden",0===e.userExtSources.length||0===e.dataSource.filteredData.length),Qs(1),xo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),Qs(1),xo("dataSource",e.dataSource),Qs(19),xo("matHeaderRowDef",e.displayedColumns),Qs(1),xo("matRowDefColumns",e.displayedColumns),Qs(1),xo("ngIf",0===e.userExtSources.length))},directives:[OE,lz,VP,pz,dz,hz,mz,_z,xh,fz,gz,KO,tN,bz,yz,nN,e_,Fz],pipes:[tE,GE,sN,Vh],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t})();function AN(t,e){1&t&&No(0,"mat-spinner",3)}function vN(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"h1",8),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Do(5,"button",5),Wo("click",function(){return Re(t),Go(2).addIdentity()}),Aa(6),nu(7,"translate"),nu(8,"customTranslate"),Po(),Do(9,"button",6),Wo("click",function(){Re(t);const e=Go(2);return e.removeIdentity(e.certSelection)}),Aa(10),nu(11,"translate"),nu(12,"customTranslate"),Po(),No(13,"perun-web-apps-user-ext-sources-list",11),Po()}if(2&t){const t=Go(2);Qs(2),va(su(3,10,su(4,12,"IDENTITIES.CERT"))),Qs(4),va(su(7,14,su(8,16,"IDENTITIES.ADD"))),Qs(3),xo("disabled",0===t.certSelection.selected.length),Qs(1),va(su(11,18,su(12,20,"IDENTITIES.REMOVE"))),Qs(3),xo("userExtSources",t.certExtSources)("selection",t.certSelection)("extSourceNameHeader",t.extSourceNameCert)("loginHeader",t.loginCert)("displayedColumns",t.displayedColumnsCert)("disableRouting",!0)}}function TN(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"h1",4),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Do(5,"button",5),Wo("click",function(){return Re(t),Go().addIdentity()}),Aa(6),nu(7,"translate"),nu(8,"customTranslate"),Po(),Do(9,"button",6),Wo("click",function(){Re(t);const e=Go();return e.removeIdentity(e.idpSelection)}),Aa(10),nu(11,"translate"),nu(12,"customTranslate"),Po(),No(13,"perun-web-apps-user-ext-sources-list",7),Lo(14,vN,14,22,"div",2),Do(15,"h1",8),Aa(16),nu(17,"translate"),nu(18,"customTranslate"),Do(19,"mat-icon",9),nu(20,"translate"),nu(21,"customTranslate"),Aa(22," info_outline "),Po(),Po(),Do(23,"button",6),Wo("click",function(){Re(t);const e=Go();return e.removeIdentity(e.otherSelection)}),Aa(24),nu(25,"translate"),nu(26,"customTranslate"),Po(),No(27,"perun-web-apps-user-ext-sources-list",10),Po()}if(2&t){const t=Go();Qs(2),va(su(3,19,su(4,21,"IDENTITIES.IDP"))),Qs(4),va(su(7,23,su(8,25,"IDENTITIES.ADD"))),Qs(3),xo("disabled",0===t.idpSelection.selected.length),Qs(1),va(su(11,27,su(12,29,"IDENTITIES.REMOVE"))),Qs(3),xo("userExtSources",t.idpExtSources)("selection",t.idpSelection)("displayedColumns",t.displayedColumnsIdp)("loginHeader",t.loginIdp)("disableRouting",!0),Qs(1),xo("ngIf",t.displayCertificates),Qs(2),Ta(" ",su(17,31,su(18,33,"IDENTITIES.OTHER"))," "),Qs(3),xo("matTooltip",su(20,35,su(21,37,"IDENTITIES.OTHER_TOOLTIP"))),Qs(4),xo("disabled",0===t.otherSelection.selected.length),Qs(1),va(su(25,39,su(26,41,"IDENTITIES.REMOVE"))),Qs(3),xo("userExtSources",t.otherExtSources)("selection",t.otherSelection)("extSourceNameHeader",t.extSourceNameOther)("displayedColumns",t.displayedColumnsOther)("disableRouting",!0)}}let kN=(()=>{class t{constructor(t,e,i,n,s){this.usersManagerService=t,this.storage=e,this.registrarManagerService=i,this.dialog=n,this.attributesManagerService=s,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new ZA(!0,[]),this.certSelection=new ZA(!0,[]),this.otherSelection=new ZA(!0,[]),this.loginIdp="IDENTITIES.LOGIN_IDP",this.extSourceNameCert="IDENTITIES.EXT_SOURCE_NAME_CERT",this.loginCert="IDENTITIES.LOGIN_CERT",this.extSourceNameOther="IDENTITIES.EXT_SOURCE_NAME_OTHER",this.displayedColumnsIdp=["select","extSourceName","login","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["select","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(t=>{let e=t.length;t.forEach(t=>{this.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:sourceIdPName").subscribe(i=>{i&&i.value?(t.userExtSource.extSource.name=i.value,e--,this.loading=0!==e,this.addToList(t)):this.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:IdPOrganizationName").subscribe(i=>{e--,i&&i.value&&(t.userExtSource.extSource.name=i.value),this.loading=0!==e,this.addToList(t)})})})})}addIdentity(){this.registrarManagerService.getConsolidatorToken().subscribe(t=>{const e=this.storage.getPerunPrincipal().extSourceType,i=this.storage.get("consolidator_base_url");window.location.href=`${i}${e&&e.endsWith("X509")?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${t}`})}removeIdentity(t){const e=TE();e.width="600px",e.data={theme:"user-theme",userId:this.userId,extSources:t.selected},this.dialog.open(Ez,e).afterClosed().subscribe(e=>{e&&(t.clear(),this.refreshTables())})}addToList(t){t.userExtSource.extSource.type.endsWith("Idp")?this.idpExtSources.push(t):t.userExtSource.extSource.type.endsWith("X509")?this.certExtSources.push(t):this.otherExtSources.push(t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Cp),Ro(PE),Ro(kp),Ro(mE),Ro(wp))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-identities-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],["mat-flat-button","","color","accent",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(t,e){1&t&&(Do(0,"div",0),Lo(1,AN,1,0,"mat-spinner",1),Lo(2,TN,28,43,"div",2),Po()),2&t&&(Qs(1),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading))},directives:[xh,rL,pA,MN,DC,OS],pipes:[tE,GE],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),t})();const SN=["panel"];function CN(t,e){if(1&t&&(Do(0,"div",0,1),Qo(2),Po()),2&t){const t=e.id,i=Go();xo("id",i.id)("ngClass",i._classList),So("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}const EN=["*"];let LN=0;class zN{constructor(t,e){this.source=t,this.option=e}}class RN{}const xN=wM(RN),ON=new Ui("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let DN=(()=>{class t extends xN{constructor(t,e,i,n){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=h.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new lu,this.opened=new lu,this.closed=new lu,this.optionActivated=new lu,this._classList={},this.id="mat-autocomplete-"+LN++,this.inertGroups=(null==n?void 0:n.SAFARI)||!1,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=D_(t)}set classList(t){this._classList=t&&t.length?function(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new pb(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new zN(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(Ro(Tc),Ro(Qa),Ro(ON),Ro(j_))},t.\u0275dir=Gt({type:t,viewQuery:function(t,e){if(1&t&&(vu(Lc,7),vu(SN,5)),2&t){let t;Au(t=ku())&&(e.template=t.first),Au(t=ku())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[po]}),t})(),PN=(()=>{class t extends DN{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,tA,5),Tu(i,sA,5)),2&t){let t;Au(t=ku())&&(e.optionGroups=t),Au(t=ku())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[Ua([{provide:GM,useExisting:t}]),po],ngContentSelectors:EN,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(Jo(),Lo(0,CN,3,4,"ng-template"))},directives:[Eh],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t})();const NN=new Ui("mat-autocomplete-scroll-strategy"),IN={provide:NN,deps:[Yv],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},BN={provide:NT,useExisting:rt(()=>HN),multi:!0};let FN=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u,l){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=o,this._formField=a,this._document=c,this._viewportRuler=u,this._defaults=l,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=h.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new v,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=Kp(()=>this.autocomplete&&this.autocomplete.options?U(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe(Jp(1),Vp(()=>this.optionSelections))),this._scrollStrategy=r}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=D_(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return U(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Nd(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Nd(()=>this._overlayAttached)):Dd()).pipe(P(t=>t instanceof iA?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return U(gA(this._document,"click"),gA(this._document,"auxclick"),gA(this._document,"touchend")).pipe(Nd(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null,n=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&(!n||!n.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(27!==e||T_(t)||t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const i=this.autocomplete._keyManager.activeItem,n=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return U(this._zone.onStable.pipe(Jp(1)),this.autocomplete.options.changes.pipe(wf(()=>this._positionStrategy.reapplyLastPosition()),JS(0))).pipe(Vp(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),Jp(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){var t;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!Z_(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new uv(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,e.keydownEvents().subscribe(t=>{(27===t.keyCode&&!T_(t)||38===t.keyCode&&T_(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),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 i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new kv({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];let s;s="above"===this.position?n:"below"===this.position?e:[...e,...n],t.withPositions(s)}_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 t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,i=rA(t,e.options,e.optionGroups);if(0===t&&1===i)e._setScrollTop(0);else if(e.panel){const i=e.options.toArray()[t];if(i){const t=i._getHostElement(),n=oA(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(n)}}}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(Yv),Ro(Nc),Ro($u),Ro(Tc),Ro(NN),Ro(xb,8),Ro(LT,9),Ro(Ll,8),Ro(sv),Ro(ON,8))},t.\u0275dir=Gt({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[ae]}),t})(),HN=(()=>{class t extends FN{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&Wo("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&So("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[Ua([BN]),po]}),t})(),qN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[IN],imports:[[Gv,aA,_M,Xh],rv,aA,_M]}),t})(),jN=(()=>{class t{transform(t){return t&&t.value?t.value:"never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"validateExpiration",type:t,pure:!0}),t})();function YN(t,e){1&t&&No(0,"th",15)}function WN(t,e){if(1&t){const t=Ho();Do(0,"td",16),Do(1,"mat-checkbox",17),Wo("change",function(e){const i=Re(t).$implicit,n=Go();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),nu(2,"validateExpiration"),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();Qs(1),xo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","never"===su(2,3,t.expirationAttribute))}}function UN(t,e){1&t&&(Do(0,"th",15),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"MEMBERSHIP_LIST.NAME"))))}function KN(t,e){if(1&t&&(Do(0,"td",16),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.entity.name)}}function VN(t,e){1&t&&(Do(0,"th",15),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))))}function XN(t,e){if(1&t&&(Do(0,"td",18),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.entity.description)}}function GN(t,e){1&t&&(Do(0,"th",19),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"MEMBERSHIP_LIST.EXPIRATION"))))}function $N(t,e){if(1&t&&(Do(0,"td",18),Aa(1),nu(2,"validateExpiration"),Po()),2&t){const t=e.$implicit;Qs(1),Ta(" ",su(2,1,t.expirationAttribute)," ")}}function JN(t,e){1&t&&No(0,"th",15)}function QN(t,e){if(1&t){const t=Ho();Do(0,"td",18),Do(1,"button",20),Wo("click",function(){const e=Re(t).$implicit;return Go().extend(e)}),nu(2,"validateExpiration"),Aa(3),nu(4,"translate"),nu(5,"customTranslate"),Po(),Po()}if(2&t){const t=e.$implicit;Qs(1),xo("disabled","never"===su(2,2,t.expirationAttribute)),Qs(2),va(su(4,4,su(5,6,"MEMBERSHIP_LIST.EXTEND")))}}function ZN(t,e){1&t&&No(0,"tr",21)}function tI(t,e){1&t&&No(0,"tr",22)}function eI(t,e){1&t&&(Do(0,"app-alert",23),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}let iI=(()=>{class t{constructor(){this.members=[],this.searchString="",this.selection=new ZA(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.pageSize=10,this.filterValue="",this.extendMembership=new lu,this.pageSizeOptions=vE}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new Mz(this.members),this.setDataSource()}getDataForColumn(t,e){switch(e){case"name":return t.entity.name;case"description":return"description"in t.entity?t.entity.description:"";case"expirationAttribute":return t.expirationAttribute&&t.expirationAttribute.value?t.expirationAttribute.value:"never";default:return""}}exportData(t){LE(EE(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>CE(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>SE(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(t){return`${this.selection.isSelected(t)?"deselect":"select"} row ${t.entity.id+1}`}extend(t){this.extendMembership.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(t,e){if(1&t&&(vu(VP,7),vu(OE,7)),2&t){let t;Au(t=ku())&&(e.matSort=t.first),Au(t=ku())&&(e.child=t.first)}},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[ae],decls:21,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData"],["mat-table","","matSort","","matSortActive","expirationAttribute","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["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",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","disabled","change","click"],["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(t,e){1&t&&(Do(0,"div",0),Do(1,"perun-web-apps-table-wrapper",1),Wo("exportData",function(t){return e.exportData(t)}),Do(2,"table",2),Io(3,3),Lo(4,YN,1,0,"th",4),Lo(5,WN,3,5,"td",5),Bo(),Io(6,6),Lo(7,UN,4,5,"th",4),Lo(8,KN,2,1,"td",5),Bo(),Io(9,7),Lo(10,VN,4,5,"th",4),Lo(11,XN,2,1,"td",8),Bo(),Io(12,9),Lo(13,GN,4,5,"th",10),Lo(14,$N,3,3,"td",8),Bo(),Io(15,11),Lo(16,JN,1,0,"th",4),Lo(17,QN,6,8,"td",8),Bo(),Lo(18,ZN,1,0,"tr",12),Lo(19,tI,1,0,"tr",13),Po(),Po(),Po(),Lo(20,eI,4,5,"app-alert",14)),2&t&&(xo("hidden",!e.dataSource.filteredData.length),Qs(1),xo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),Qs(1),xo("dataSource",e.dataSource),Qs(16),xo("matHeaderRowDef",e.displayedColumns),Qs(1),xo("matRowDefColumns",e.displayedColumns),Qs(1),xo("ngIf",!e.dataSource.filteredData.length))},directives:[OE,lz,VP,pz,dz,hz,mz,_z,xh,fz,gz,KO,tN,pA,bz,yz,Fz],pipes:[jN,tE,GE],styles:[""]}),t})();function nI(t,e){if(1&t&&(Do(0,"mat-option",13),Aa(1),Po()),2&t){const t=e.$implicit;xo("value",t),Qs(1),Ta(" ",t.name," ")}}function sI(t,e){if(1&t){const t=Ho();Do(0,"mat-form-field",7),Do(1,"mat-label"),Aa(2),nu(3,"translate"),Po(),No(4,"input",8),nu(5,"translate"),nu(6,"customTranslate"),Do(7,"mat-autocomplete",9,10),Wo("optionSelected",function(e){return Re(t),Go().filterByVo(e)}),Do(9,"mat-option",11),Aa(10),nu(11,"translate"),nu(12,"customTranslate"),Po(),Lo(13,nI,2,2,"mat-option",12),nu(14,"async"),Po(),Po()}if(2&t){const t=zo(8),e=Go();Qs(2),va(su(3,7,"GROUPS.SELECT_VO")),Qs(2),Zo("placeholder",su(5,9,su(6,11,"GROUPS.SELECT_VO"))),xo("formControl",e.myControl)("matAutocomplete",t),Qs(3),xo("displayWith",e.displayFn),Qs(3),va(su(11,13,su(12,15,"GROUPS.ALL"))),Qs(3),xo("ngForOf",su(14,17,e.filteredVos))}}function rI(t,e){1&t&&No(0,"mat-spinner",14)}function oI(t,e){1&t&&(Do(0,"app-alert",15),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"GROUPS.NO_GROUPS"))))}const aI=function(){return["name","description","expirationAttribute","extend"]};function cI(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"h4",16),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Do(5,"perun-web-apps-membership-list",17),Wo("extendMembership",function(e){return Re(t),Go().extendMembership(e)}),Po(),Po()}if(2&t){const t=Go();Qs(2),va(su(3,4,su(4,6,"GROUPS.MEMBER_GROUPS"))),Qs(3),xo("members",t.userMemberships)("selection",t.selection)("displayedColumns",Jc(8,aI))}}const uI=function(){return["name","description"]};function lI(t,e){if(1&t&&(Do(0,"div",18),Do(1,"h4",16),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),No(5,"perun-web-apps-membership-list",19),Po()),2&t){const t=Go();Qs(2),va(su(3,3,su(4,5,"GROUPS.ADMINS_GROUPS"))),Qs(3),xo("members",t.adminMemberships)("displayedColumns",Jc(7,uI))}}let hI=(()=>{class t{constructor(t,e,i,n,s,r){this.usersService=t,this.memberService=e,this.groupService=i,this.store=n,this.vosManagerService=s,this.attributesManagerService=r,this.loading=!1,this.vos=[],this.myControl=new Lk,this.selection=new ZA(!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(t=>{this.vos=t,this.filteredVos=this.myControl.valueChanges.pipe(tf(""),P(t=>this._filter(t))),this.getAllGroups()})}_filter(t){const e="string"==typeof t?t.toLowerCase():t.name.toLowerCase;return this.vos.filter(t=>t.name.toLowerCase().includes(e))}getAllGroups(){this.loading=!0;let t=0,e=0;this.userMemberships=[],this.adminMemberships=[];const i=this.store.getPerunPrincipal().roles.SELF.Member;i.length?e=i.length:this.loading=!1,i.forEach(i=>{e--,this.groupService.getMemberGroups(i).subscribe(n=>{t+=n.length,this.loading=0===t&&0!==e,n.forEach(e=>{this.attributesManagerService.getMemberGroupAttributes(i,e.id).subscribe(i=>{t--,this.userMemberships.push({entity:e,expirationAttribute:i.find(t=>"groupMembershipExpiration"===t.friendlyName)}),this.loading=0!==t})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(t=>{t.forEach(t=>{this.adminMemberships.push({entity:t,expirationAttribute:null})})})}displayFn(t){return t?t.name:null}filterByVo(t){if("all"===t.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;const e=t.option.value;this.memberService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.groupService.getMemberGroups(t.id).subscribe(e=>{let i=e.length;this.loading=0!==i,e.forEach(e=>{this.attributesManagerService.getMemberGroupAttributes(t.id,e.id).subscribe(t=>{i--,this.userMemberships.push({entity:e,expirationAttribute:t.find(t=>"groupMembershipExpiration"===t.friendlyName)}),this.loading=0!==i})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,e.id).subscribe(t=>{t.forEach(t=>{this.adminMemberships.push({entity:t,expirationAttribute:null})})})}}extendMembership(t){const e=this.store.get("registrar_base_url"),i=t.entity,n=this.vos.find(t=>t.id===i.voId).shortName;window.location.href=`${e}?vo=${n}&group=${t.entity.shortName}`}}return t.\u0275fac=function(e){return new(e||t)(Ro(Cp),Ro(vp),Ro(Ap),Ro(PE),Ro(Lp),Ro(wp))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Lo(5,sI,15,19,"mat-form-field",2),Lo(6,rI,1,0,"mat-spinner",3),Lo(7,oI,4,5,"app-alert",4),Lo(8,cI,6,9,"div",5),Lo(9,lI,6,8,"div",6),Po()),2&t&&(Qs(1),va(su(2,6,su(3,8,"GROUPS.TITLE"))),Qs(4),xo("ngIf",!e.loading),Qs(1),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.userMemberships.length&&!e.adminMemberships.length&&!e.loading),Qs(1),xo("ngIf",!e.loading&&0!==e.userMemberships.length),Qs(1),xo("ngIf",!e.loading&&0!==e.adminMemberships.length))},directives:[xh,zT,MT,mL,FT,HN,lk,Wk,PN,sA,zh,rL,Fz,iI],pipes:[tE,GE,Uh],styles:[""]}),t})();function dI(t,e){if(1&t&&(No(0,"input",3),nu(1,"translate")),2&t){const t=Go();Zo("placeholder",su(1,2,t.placeholder)),xo("formControl",t.formControl)}}function pI(t,e){if(1&t&&(No(0,"input",4),nu(1,"translate")),2&t){const t=Go();Zo("placeholder",su(1,2,t.placeholder)),xo("formControl",t.formControl)}}let fI=(()=>{class t{constructor(){this.filter=new lu,this.autoFocus=!1,this.formControl=new Lk}ngOnInit(){this.formControl.valueChanges.subscribe(t=>{let e=t.trim();e=e.toLowerCase(),this.filter.emit(e)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","ml-2"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(Do(0,"mat-form-field",0),Lo(1,dI,2,4,"input",1),Lo(2,pI,2,4,"input",2),Po()),2&t&&(Qs(1),xo("ngIf",e.autoFocus),Qs(1),xo("ngIf",!e.autoFocus))},directives:[zT,xh,mL,FT,iN,lk,Wk],pipes:[tE],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:auto!important}"]}),t})(),gI=0;const mI=new Ui("CdkAccordion");let _I=(()=>{class t{constructor(){this._stateChanges=new v,this._openCloseAllActions=new v,this.id="cdk-accordion-"+gI++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=D_(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Ua([{provide:mI,useExisting:t}]),ae]}),t})(),bI=0,yI=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=h.EMPTY,this.closed=new lu,this.opened=new lu,this.destroyed=new lu,this.expandedChange=new lu,this.id="cdk-accordion-child-"+bI++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=D_(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(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(t){this._disabled=D_(t)}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(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(Ro(mI,12),Ro(Tc),Ro(tv))},t.\u0275dir=Gt({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ua([{provide:mI,useValue:void 0}])]}),t})(),wI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})();const MI=["body"];function AI(t,e){}const vI=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],TI=["mat-expansion-panel-header","*","mat-action-row"];function kI(t,e){1&t&&No(0,"span",2),2&t&&xo("@indicatorRotate",Go()._getExpandedState())}const SI=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],CI=["mat-panel-title","mat-panel-description","*"],EI=new Ui("MAT_ACCORDION"),LI={indicatorRotate:Nb("indicatorRotate",[qb("collapsed, void",Hb({transform:"rotate(0deg)"})),qb("expanded",Hb({transform:"rotate(180deg)"})),Yb("expanded <=> collapsed, void => collapsed",Ib("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:Nb("bodyExpansion",[qb("collapsed, void",Hb({height:"0px",visibility:"hidden"})),qb("expanded",Hb({height:"*",visibility:"visible"})),Yb("expanded <=> collapsed, void => collapsed",Ib("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let zI=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc))},t.\u0275dir=Gt({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),RI=0;const xI=new Ui("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let OI=(()=>{class t extends yI{constructor(t,e,i,n,s,r,o){super(t,e,i),this._viewContainerRef=n,this._animationMode=r,this._hideToggle=!1,this.afterExpand=new lu,this.afterCollapse=new lu,this._inputChanges=new v,this._headerId="mat-expansion-panel-header-"+RI++,this._bodyAnimationDone=new v,this.accordion=t,this._document=s,this._bodyAnimationDone.pipe(LA((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=D_(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(tf(null),Nd(()=>this.expanded&&!this._portal),Jp(1)).subscribe(()=>{this._portal=new uv(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(Ro(EI,12),Ro(Tc),Ro(tv),Ro(Nc),Ro(Ll),Ro(rM,8),Ro(xI,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&Tu(i,zI,5),2&t){let t;Au(t=ku())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&vu(MI,5),2&t){let t;Au(t=ku())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&ua("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ua([{provide:EI,useValue:void 0}]),po,ae],ngContentSelectors:TI,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(Jo(vI),Qo(0),Do(1,"div",0,1),Wo("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),Do(3,"div",2),Qo(4,1),Lo(5,AI,0,0,"ng-template",3),Po(),Qo(6,2),Po()),2&t&&(Qs(1),xo("@bodyExpansion",e._getExpandedState())("id",e.id),So("aria-labelledby",e._headerId),Qs(4),xo("cdkPortalOutlet",e._portal))},directives:[pv],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[LI.bodyExpansion]},changeDetection:0}),t})(),DI=(()=>{class t{constructor(t,e,i,n,s,r){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=r,this._parentChangeSubscription=h.EMPTY;const o=t.accordion?t.accordion._stateChanges.pipe(Nd(t=>!(!t.hideToggle&&!t.togglePosition))):Wp;this._parentChangeSubscription=U(t.opened,t.closed,o,t._inputChanges.pipe(Nd(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Nd(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.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 t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case 32:case 13:T_(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(Ro(OI,1),Ro(Qa),Ro(Cb),Ro(Tc),Ro(xI,8),Ro(rM,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&Wo("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(So("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),ca("height",e._getHeaderHeight()),ua("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:CI,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(Jo(SI),Do(0,"span",0),Qo(1),Qo(2,1),Qo(3,2),Po(),Lo(4,kI,1,1,"span",1)),2&t&&(Qs(4),xo("ngIf",e._showToggle()))},directives:[xh],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}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[LI.indicatorRotate]},changeDetection:0}),t})(),PI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),NI=(()=>{class t extends _I{constructor(){super(...arguments),this._ownHeaders=new du,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=D_(t)}ngAfterContentInit(){this._headers.changes.pipe(tf(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new fb(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){if(1&t&&Tu(i,DI,5),2&t){let t;Au(t=ku())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&ua("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[Ua([{provide:EI,useExisting:t}]),po]}),t})(),II=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Xh,_M,wI,fv]]}),t})();function BI(t,e){1&t&&(Do(0,"mat-icon",1),nu(1,"translate"),Aa(2," visibility\n"),Po()),2&t&&Zo("matTooltip",su(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let FI=(()=>{class t{constructor(){this.recentIds=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(t,e){1&t&&Lo(0,BI,3,3,"mat-icon",0),2&t&&xo("ngIf",e.recentIds.indexOf(e.id)>-1)},directives:[xh,DC,OS],pipes:[tE],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),t})();const HI=["input"],qI=function(t){return{enterDuration:t}},jI=["*"],YI=new Ui("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let WI=0;const UI={provide:NT,useExisting:rt(()=>GI),multi:!0};class KI{constructor(t,e){this.source=t,this.value=e}}const VI=new Ui("MatRadioGroup");let XI=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+WI++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new lu}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=D_(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=D_(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._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 KI(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Tc))},t.\u0275dir=Gt({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),GI=(()=>{class t extends XI{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){if(1&t&&Tu(i,ZI,5),2&t){let t;Au(t=ku())&&(e._radios=t)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[Ua([UI,{provide:VI,useExisting:t}]),po]}),t})();class $I{constructor(t){this._elementRef=t}}const JI=wM(MM($I));let QI=(()=>{class t extends JI{constructor(t,e,i,n,s,r,o,a){super(e),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=s,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++WI,this.id=this._uniqueId,this.change=new lu,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._noopAnimations="NoopAnimations"===r,a&&(this.tabIndex=P_(a,0)),this._removeUniqueSelectionListener=s.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=D_(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(D_(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=D_(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new KI(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(Ro(XI),Ro(Qa),Ro(Tc),Ro(Cb),Ro(tv),Ro(String),Ro(void 0),Ro(String))},t.\u0275dir=Gt({type:t,viewQuery:function(t,e){if(1&t&&vu(HI,5),2&t){let t;Au(t=ku())&&(e._inputElement=t.first)}},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[po]}),t})(),ZI=(()=>{class t extends QI{constructor(t,e,i,n,s,r,o,a){super(t,e,i,n,s,r,o,a)}}return t.\u0275fac=function(e){return new(e||t)(Ro(VI,8),Ro(Qa),Ro(Tc),Ro(Cb),Ro(tv),Ro(rM,8),Ro(YI,8),Yi("tabindex"))},t.\u0275cmp=Yt({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&Wo("focus",function(){return e._inputElement.nativeElement.focus()}),2&t&&(So("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),ua("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable",e._noopAnimations)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[po],ngContentSelectors:jI,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(Jo(),Do(0,"label",0,1),Do(2,"span",2),No(3,"span",3),No(4,"span",4),Do(5,"input",5,6),Wo("change",function(t){return e._onInputChange(t)})("click",function(t){return e._onInputClick(t)}),Po(),Do(7,"span",7),No(8,"span",8),Po(),Po(),Do(9,"span",9),Do(10,"span",10),Aa(11,"\xa0"),Po(),Qo(12),Po(),Po()),2&t){const t=zo(1);So("for",e.inputId),Qs(5),xo("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),So("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),Qs(2),xo("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Qc(18,qI,e._noopAnimations?0:150)),Qs(2),ua("mat-radio-label-before","before"==e.labelPosition)}},directives:[UM],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-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;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),tB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[KM,_M],_M]}),t})();function eB(t,e){1&t&&No(0,"mat-spinner",4)}function iB(t,e){1&t&&(Do(0,"span",11),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function nB(t,e){1&t&&(Do(0,"span",11),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function sB(t,e){if(1&t){const t=Ho();Do(0,"mat-radio-group",12),Wo("ngModelChange",function(e){return Re(t),Go(2).asyncValidation=e}),Do(1,"span",13),Aa(2),nu(3,"translate"),Po(),Do(4,"mat-radio-button",14),Aa(5),nu(6,"translate"),Po(),Do(7,"mat-radio-button",14),Aa(8),nu(9,"translate"),Po(),Po()}2&t&&(xo("ngModel",Go(2).asyncValidation),Qs(2),Ta(" ",su(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE"),": "),Qs(2),xo("value",!1),Qs(1),Ta(" ",su(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),Qs(2),xo("value",!0),Qs(1),Ta(" ",su(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," "))}function rB(t,e){1&t&&(Do(0,"span",11),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function oB(t,e){1&t&&(Do(0,"span",11),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function aB(t,e){if(1&t&&(Do(0,"div",5),Do(1,"p",6),Aa(2),Do(3,"span",7),Aa(4),Po(),Aa(5),Do(6,"span",7),Aa(7),Po(),Po(),Do(8,"p"),Do(9,"strong",8),Aa(10),nu(11,"translate"),Po(),Aa(12),Po(),Do(13,"p"),Do(14,"strong",8),Aa(15),nu(16,"translate"),Po(),Aa(17),Po(),Lo(18,iB,3,3,"span",9),Lo(19,nB,3,3,"span",9),Lo(20,sB,10,12,"mat-radio-group",10),Lo(21,rB,3,3,"span",9),Lo(22,oB,3,3,"span",9),Po()),2&t){const t=Go();Qs(2),Ta(" ",t.group.name," "),Qs(2),Ta("#",t.group.id,""),Qs(1),Ta(" - ",t.resource.name," "),Qs(2),Ta("#",t.resource.id,""),Qs(3),Ta("",su(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT"),":"),Qs(2),Ta(" ",t.status," "),Qs(3),Ta("",su(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW"),":"),Qs(2),Ta(" ",t.getReversedStatus()," "),Qs(1),xo("ngIf","INACTIVE"===t.status),Qs(1),xo("ngIf","ACTIVE"===t.status),Qs(1),xo("ngIf","INACTIVE"===t.status),Qs(1),xo("ngIf","INACTIVE"===t.status&&!1===t.asyncValidation),Qs(1),xo("ngIf","INACTIVE"===t.status&&!0===t.asyncValidation)}}function cB(t,e){if(1&t){const t=Ho();Do(0,"div",15),Do(1,"button",16),Wo("click",function(){return Re(t),Go().onCancel()}),Aa(2),nu(3,"translate"),Po(),Do(4,"button",17),Wo("click",function(){return Re(t),Go().onSubmit()}),Aa(5),nu(6,"translate"),Po(),Po()}if(2&t){const t=Go();Qs(2),Ta(" ",su(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),Qs(2),xo("disabled",t.loading),Qs(1),Ta(" ",su(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SUBMIT")," ")}}let uB=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.resourceService=i,this.groupService=n,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(t=>{this.resource=t,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 t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(hE),Ro(Sp),Ro(Ap))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(t,e){1&t&&(Do(0,"div"),Do(1,"h1",0),Aa(2),nu(3,"translate"),Po(),Lo(4,eB,1,0,"mat-spinner",1),Lo(5,aB,23,17,"div",2),Lo(6,cB,7,7,"div",3),Po()),2&t&&(la(e.theme),Qs(2),va(su(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")),Qs(2),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading),Qs(1),xo("ngIf",!e.loading))},directives:[bE,xh,rL,yE,GI,lk,Ik,ZI,wE,pA],pipes:[tE],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),t})();function lB(t,e){if(1&t){const t=Ho();Do(0,"span",3),Wo("click",function(){return Re(t),Go().changeStatus()}),nu(1,"translate"),Do(2,"mat-icon",4),Aa(3,"check_circle_outline"),Po(),Po()}2&t&&Zo("matTooltip",su(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function hB(t,e){if(1&t){const t=Ho();Do(0,"span",3),Wo("click",function(){return Re(t),Go().changeStatus()}),nu(1,"translate"),Do(2,"mat-icon",5),Aa(3,"block"),Po(),Po()}2&t&&Zo("matTooltip",su(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function dB(t,e){if(1&t&&(Do(0,"span",6),nu(1,"translate"),Do(2,"mat-icon",7),Aa(3,"report"),Po(),Po()),2&t){const t=Go();ea("matTooltip","",su(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",t.failureCause,"")}}function pB(t,e){1&t&&(Do(0,"span",6),nu(1,"translate"),Do(2,"mat-icon",8),Aa(3,"autorenew"),Po(),Po()),2&t&&Zo("matTooltip",su(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let fB=(()=>{class t{constructor(t){this.dialog=t,this.status="",this.statusChange=new lu}changeStatus(){const t=TE();t.width="500px",t.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(uB,t).afterClosed().subscribe(t=>{t&&this.statusChange.emit()})}}return t.\u0275fac=function(e){return new(e||t)(Ro(mE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],["matTooltipPosition","above",3,"matTooltip"],[1,"red"],[1,"black"]],template:function(t,e){1&t&&(Do(0,"div",0),Lo(1,lB,4,3,"span",1),Lo(2,hB,4,3,"span",1),Lo(3,dB,4,4,"span",2),Lo(4,pB,4,3,"span",2),Po()),2&t&&(Qs(1),xo("ngIf","ACTIVE"===e.status),Qs(1),xo("ngIf","INACTIVE"===e.status),Qs(1),xo("ngIf","FAILED"===e.status),Qs(1),xo("ngIf","PROCESSING"===e.status))},directives:[xh,OS,DC],pipes:[tE],styles:[""]}),t})(),gB=(()=>{class t{transform(t){if(null==t)return null;let e="";return t.forEach(function(t){e=e.concat(t.tagName)}),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"resourceTagsToString",type:t,pure:!0}),t})(),mB=(()=>{class t{transform(t,e){return e?`/organizations/${t.voId}/resources/${t.id}`:`/facilities/${t.facilityId}/resources/${t.id}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"getResourceRoute",type:t,pure:!0}),t})();function _B(t,e){if(1&t){const t=Ho();Do(0,"th",20),Do(1,"mat-checkbox",21),Wo("change",function(e){Re(t);const i=Go();return e?i.masterToggle():null}),Po(),Po()}if(2&t){const t=Go();Qs(1),xo("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function bB(t,e){if(1&t){const t=Ho();Do(0,"td",22),Do(1,"mat-checkbox",23),Wo("change",function(e){const i=Re(t).$implicit,n=Go();return e?n.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();Qs(1),xo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function yB(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")))}function wB(t,e){if(1&t&&(Do(0,"td",22),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.id)}}function MB(t,e){1&t&&No(0,"th",20)}function AB(t,e){if(1&t&&(Do(0,"td",25),No(1,"perun-web-apps-recently-viewed-icon",26),Po()),2&t){const t=e.$implicit,i=Go();Qs(1),xo("recentIds",i.recentIds)("id",t.id)}}function vB(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")))}function TB(t,e){if(1&t&&(Do(0,"td",25),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.name)}}function kB(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")))}function SB(t,e){if(1&t&&(Do(0,"td",25),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.vo.name)}}function CB(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")))}function EB(t,e){if(1&t){const t=Ho();Do(0,"td",25),Do(1,"perun-web-apps-group-resource-status",27),Wo("mouseenter",function(){return Re(t),Go().disabledRouting=!0})("mouseleave",function(){Re(t);const e=Go();return e.disabledRouting=e.disableRouting})("statusChange",function(){return Re(t),Go().refreshTable.emit()}),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();Qs(1),xo("theme","group-theme")("resourceId",t.id)("groupId",i.groupId)("failureCause",t.failureCause)("status",t.status)}}function LB(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")))}function zB(t,e){if(1&t&&(Do(0,"td",25),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.facility.name)}}function RB(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")))}function xB(t,e){if(1&t&&(Do(0,"td",25),Aa(1),nu(2,"resourceTagsToString"),Po()),2&t){const t=e.$implicit;Qs(1),va(su(2,1,t.resourceTags))}}function OB(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")))}function DB(t,e){if(1&t&&(Do(0,"td",25),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.description)}}function PB(t,e){1&t&&No(0,"tr",28)}const NB=function(t){return[t]};function IB(t,e){if(1&t&&(No(0,"tr",29),nu(1,"getResourceRoute"),nu(2,"getResourceRoute")),2&t){const t=e.$implicit,i=Go();ua("cursor-pointer",!i.disableRouting)("disable-outline",i.disabledRouting),xo("perunWebAppsMiddleClickRouterLink",Qc(12,NB,i.disabledRouting?null:ru(1,6,t,i.routingVo)))("routerLink",i.disabledRouting?null:ru(2,9,t,i.routingVo))}}function BB(t,e){1&t&&(Do(0,"app-alert",30),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function FB(t,e){1&t&&(Do(0,"app-alert",30),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let HB=(()=>{class t{constructor(t,e){this.guiAuthResolver=t,this.tableCheckbox=e,this.resources=[],this.selection=new ZA(!0,[]),this.pageSize=10,this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","name","vo","status","facility","tags","description"],this.pageSizeOptions=vE,this.groupId=null,this.page=new lu,this.refreshTable=new lu,this.allSelected=new lu,this.removeAuth=!1,this.addAuth=!1}set matSort(t){this.sort=t,this.setDataSource()}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new Mz(this.resources),this.setDataSource(),this.dataSource.filter=this.filterValue,this.setAuth()}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return t.vo.name;case"name":return t.name;case"facility":return t.facility.name;case"description":return t.description;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"tags":{if(!t.resourceTags)return t[e];let i="";return t.resourceTags.forEach(function(t){i=i.concat(t.tagName)}),i}case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}exportData(t){LE(EE(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>CE(t,e,this.displayedColumns,this.getDataForColumn,this,!0),this.dataSource.sortData=(t,e)=>SE(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){const t=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource);return this.allSelected.emit(t),t}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1),this.setAuth()}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}setAuth(){const t=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((e,i)=>e&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",t.concat([i])),!0),this.addAuth=this.selection.selected.reduce((e,i)=>e&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",t.concat([i])),!0)}itemSelectionToggle(t){this.selection.toggle(t),this.setAuth()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Pp),Ro(UE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(t,e){if(1&t&&(vu(VP,7),vu(OE,7)),2&t){let t;Au(t=ku())&&(e.matSort=t.first),Au(t=ku())&&(e.child=t.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId"},outputs:{page:"page",refreshTable:"refreshTable",allSelected:"allSelected"},features:[ae],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","status"],["matColumnDef","facility"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],[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(t,e){1&t&&(Do(0,"div",0),Do(1,"perun-web-apps-table-wrapper",1),Wo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),Do(2,"table",2),Io(3,3),Lo(4,_B,2,3,"th",4),Lo(5,bB,2,2,"td",5),Bo(),Io(6,6),Lo(7,yB,3,3,"th",7),Lo(8,wB,2,1,"td",8),Bo(),Io(9,9),Lo(10,MB,1,0,"th",4),Lo(11,AB,2,2,"td",10),Bo(),Io(12,11),Lo(13,vB,3,3,"th",7),Lo(14,TB,2,1,"td",10),Bo(),Io(15,12),Lo(16,kB,3,3,"th",7),Lo(17,SB,2,1,"td",10),Bo(),Io(18,13),Lo(19,CB,3,3,"th",7),Lo(20,EB,2,5,"td",10),Bo(),Io(21,14),Lo(22,LB,3,3,"th",7),Lo(23,zB,2,1,"td",10),Bo(),Io(24,15),Lo(25,RB,3,3,"th",7),Lo(26,xB,3,3,"td",10),Bo(),Io(27,16),Lo(28,OB,3,3,"th",7),Lo(29,DB,2,1,"td",10),Bo(),Lo(30,PB,1,0,"tr",17),Lo(31,IB,3,14,"tr",18),Po(),Po(),Po(),Lo(32,BB,3,3,"app-alert",19),Lo(33,FB,3,3,"app-alert",19)),2&t&&(xo("hidden",0===e.dataSource.filteredData.length||0===e.resources.length),Qs(1),xo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),Qs(1),xo("dataSource",e.dataSource),Qs(28),xo("matHeaderRowDef",e.displayedColumns),Qs(1),xo("matRowDefColumns",e.displayedColumns),Qs(1),xo("ngIf",0===e.dataSource.filteredData.length&&0!==e.resources.length),Qs(1),xo("ngIf",0===e.resources.length))},directives:[OE,lz,VP,pz,dz,hz,mz,_z,xh,fz,KO,gz,tN,FI,fB,bz,yz,nN,e_,Fz],pipes:[tE,gB,mB],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})();function qB(t,e){1&t&&No(0,"mat-spinner",8)}const jB=function(){return["name","description"]};function YB(t,e){1&t&&No(0,"perun-web-apps-resources-list",9),2&t&&xo("resources",Go(3).resources)("displayedColumns",Jc(3,jB))("disableRouting",!0)}function WB(t,e){if(1&t&&(Lo(0,qB,1,0,"mat-spinner",6),Lo(1,YB,1,4,"perun-web-apps-resources-list",7)),2&t){const t=Go(2);xo("ngIf",t.loading),Qs(1),xo("ngIf",!t.loading)}}function UB(t,e){if(1&t){const t=Ho();Do(0,"mat-expansion-panel",4),Wo("opened",function(){const e=Re(t).$implicit;return Go().getMemberData(e)}),Do(1,"mat-expansion-panel-header"),Do(2,"mat-panel-title"),Aa(3),Po(),Po(),Lo(4,WB,2,2,"ng-template",5),Po()}if(2&t){const t=e.$implicit;Qs(3),Ta(" ",t.name," ")}}let KB=(()=>{class t{constructor(t,e,i,n){this.usersManagerService=t,this.membersManagerService=e,this.resourcesManagerService=i,this.storage=n,this.resources=[],this.filteredVos=[]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(t=>{this.vos=t,this.filteredVos=t})}getMemberData(t){this.loading=!0,this.membersManagerService.getMemberByUser(t.id,this.userId).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(t=>{this.resources=t,this.loading=!1})})}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Cp),Ro(vp),Ro(Sp),Ro(PE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Do(5,"perun-web-apps-immediate-filter",2),Wo("filter",function(t){return e.applyFilter(t)}),nu(6,"translate"),nu(7,"customTranslate"),Po(),Do(8,"mat-accordion"),Lo(9,UB,5,1,"mat-expansion-panel",3),Po(),Po()),2&t&&(Qs(1),va(su(2,3,su(3,5,"SERVICES.TITLE"))),Qs(4),xo("placeholder",su(6,7,su(7,9,"SERVICES.FILTER"))),Qs(4),xo("ngForOf",e.filteredVos))},directives:[fI,NI,zh,OI,DI,PI,zI,xh,rL,HB],pipes:[tE,GE],styles:[""]}),t})();function VB(t,e){if(1&t){const t=Ho();Do(0,"perun-web-apps-immediate-filter",5),Wo("filter",function(e){return Re(t),Go().applyFilter(e)}),Po()}2&t&&xo("placeholder","ORGANIZATIONS.FILTER")}function XB(t,e){1&t&&No(0,"mat-spinner",6)}const GB=function(){return["name","expirationAttribute","extend"]};function $B(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"perun-web-apps-membership-list",11),Wo("extendMembership",function(e){return Re(t),Go(2).extendMembership(e)}),Po(),Po()}if(2&t){const t=Go(2);Qs(1),xo("members",t.userMemberships)("selection",t.selection)("filterValue",t.filterValue)("displayedColumns",Jc(4,GB))}}function JB(t,e){1&t&&(Do(0,"app-alert",12),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function QB(t,e){if(1&t&&(Do(0,"div",7),Do(1,"h1",8),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Lo(5,$B,2,5,"div",9),Lo(6,JB,4,5,"app-alert",10),Po()),2&t){const t=Go();Qs(2),va(su(3,3,su(4,5,"ORGANIZATIONS.IS_MEMBER"))),Qs(3),xo("ngIf",0!==t.userMemberships.length),Qs(1),xo("ngIf",0===t.userMemberships.length)}}function ZB(t,e){1&t&&(Do(0,"app-alert",12),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}const tF=function(){return["name"]};function eF(t,e){if(1&t&&No(0,"perun-web-apps-membership-list",14),2&t){const t=Go(2);xo("members",t.adminMemberships)("filterValue",t.filterValue)("displayedColumns",Jc(3,tF))}}function iF(t,e){if(1&t&&(Do(0,"div",7),Do(1,"h1",8),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Lo(5,ZB,4,5,"app-alert",10),Lo(6,eF,1,4,"perun-web-apps-membership-list",13),Po()),2&t){const t=Go();Qs(2),va(su(3,3,su(4,5,"ORGANIZATIONS.IS_ADMIN"))),Qs(3),xo("ngIf",!t.adminMemberships.length),Qs(1),xo("ngIf",t.adminMemberships.length)}}let nF=(()=>{class t{constructor(t,e,i){this.usersService=t,this.store=e,this.membersService=i,this.filterValue="",this.selection=new ZA(!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(t=>{this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(e=>{this.vosCount=t.length+e.length,this.fillMemberships(t,this.userMemberships),this.fillMemberships(e,this.adminMemberships)})})}applyFilter(t){this.filterValue=t}isEverythingLoaded(){this.vosCount--,this.loading=0!==this.vosCount}fillMemberships(t,e){this.membersService.getMembersByUser(this.userId).subscribe(i=>{t.forEach(t=>{const n=i.find(e=>e.voId===t.id);n?this.membersService.getRichMemberWithAttributes(n.id).subscribe(i=>{const n=i.memberAttributes.find(t=>"membershipExpiration"===t.friendlyName);e.push({entity:t,expirationAttribute:n}),this.isEverythingLoaded()}):(e.push({entity:t,expirationAttribute:null}),this.isEverythingLoaded())})})}extendMembership(t){const e=this.store.get("registrar_base_url");window.location.href=`${e}?vo=${t.entity.shortName}`}}return t.\u0275fac=function(e){return new(e||t)(Ro(Cp),Ro(PE),Ro(vp))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Lo(5,VB,1,1,"perun-web-apps-immediate-filter",2),Lo(6,XB,1,0,"mat-spinner",3),Lo(7,QB,7,7,"div",4),Lo(8,iF,7,7,"div",4),Po()),2&t&&(Qs(1),va(su(2,5,su(3,7,"ORGANIZATIONS.TITLE"))),Qs(4),xo("ngIf",!e.loading),Qs(1),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading),Qs(1),xo("ngIf",!e.loading))},directives:[xh,fI,rL,iI,Fz],pipes:[tE,GE],styles:[""]}),t})(),sF=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(t,e){1&t&&(Do(0,"div",0),No(1,"router-outlet"),Po())},directives:[s_],styles:[""]}),t})(),rF=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.password=""}ngOnInit(){this.password=this.data.password}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(hE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Do(5,"p"),Aa(6),nu(7,"translate"),nu(8,"customTranslate"),Po(),Do(9,"label"),No(10,"input",2),Po(),Po(),Do(11,"div",3),Do(12,"button",4),Wo("click",function(){return e.onClose()}),Aa(13),nu(14,"translate"),nu(15,"customTranslate"),Po(),Do(16,"button",5),Aa(17),nu(18,"translate"),nu(19,"customTranslate"),Po(),Po()),2&t&&(Qs(1),va(su(2,6,su(3,8,"DIALOGS.SHOW_PASSWORD.TITLE"))),Qs(5),va(su(7,10,su(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),Qs(4),xo("value",e.password),Qs(3),Ta(" ",su(14,14,su(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),Qs(3),xo("cdkCopyToClipboard",e.password),Qs(1),Ta(" ",su(18,18,su(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},directives:[bE,yE,wE,pA,xz],pipes:[tE,GE],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),t})();function oF(t,e){1&t&&No(0,"mat-spinner",7)}function aF(t,e){1&t&&No(0,"th",16)}function cF(t,e){if(1&t&&(Do(0,"td",17),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),Ta(" ",t," ")}}function uF(t,e){1&t&&No(0,"tr",18)}function lF(t,e){1&t&&No(0,"tr",19)}function hF(t,e){if(1&t&&(Do(0,"div",8),Do(1,"p"),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Do(5,"div",9),Aa(6),nu(7,"translate"),nu(8,"customTranslate"),Po(),Do(9,"table",10),Io(10,11),Lo(11,aF,1,0,"th",12),Lo(12,cF,2,1,"td",13),Bo(),Lo(13,uF,1,0,"tr",14),Lo(14,lF,1,0,"tr",15),Po(),Po()),2&t){const t=Go();Qs(2),Ta(" ",su(3,5,su(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),Qs(4),Ta(" ",su(7,9,su(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),Qs(3),xo("dataSource",t.dataSource),Qs(4),xo("matHeaderRowDef",t.displayedColumns),Qs(1),xo("matRowDefColumns",t.displayedColumns)}}let dF=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.usersManagerService=i,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new Mz(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 t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(hE),Ro(Cp))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Lo(5,oF,1,0,"mat-spinner",2),Po(),Lo(6,hF,15,13,"div",3),Do(7,"div",4),Do(8,"button",5),Wo("click",function(){return e.onCancel()}),Aa(9),nu(10,"translate"),nu(11,"customTranslate"),Po(),Do(12,"button",6),Wo("click",function(){return e.onSubmit()}),Aa(13),nu(14,"translate"),nu(15,"customTranslate"),Po(),Po()),2&t&&(Qs(1),va(su(2,5,su(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),Qs(4),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading),Qs(3),Ta(" ",su(10,9,su(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),Qs(4),Ta(" ",su(14,13,su(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},directives:[bE,xh,wE,pA,rL,yE,lz,pz,dz,hz,mz,_z,fz,gz,bz,yz],pipes:[tE,GE],styles:[""]}),t})();function pF(t,e){1&t&&No(0,"th",12)}function fF(t,e){if(1&t){const t=Ho();Do(0,"td",13),Do(1,"mat-checkbox",14),Wo("change",function(e){const i=Re(t).$implicit,n=Go();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();Qs(1),xo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function gF(t,e){if(1&t&&(Do(0,"th",15),Aa(1),Po()),2&t){const t=Go();Qs(1),va(t.headerColumnText)}}function mF(t,e){if(1&t&&(Do(0,"td",16),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t)}}function _F(t,e){1&t&&No(0,"tr",17)}function bF(t,e){1&t&&No(0,"tr",18)}function yF(t,e){if(1&t&&(Do(0,"app-alert",19),Aa(1),Po()),2&t){const t=Go();Qs(1),Ta(" ",t.alertText,"\n")}}let wF=(()=>{class t{constructor(){this.values=[],this.selection=new ZA(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"],this.pageSize=5}ngOnChanges(){this.values=this.values?this.values:[],this.dataSource=new Mz(this.values),this.setDataSource()}getExportDataForColumn(t){return t}exportData(t){LE(EE(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(t){return(this.selection.isSelected(t)?"deselect":"select")+" row"}ngAfterViewInit(){this.setDataSource()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-string-list"]],viewQuery:function(t,e){if(1&t&&vu(OE,7),2&t){let t;Au(t=ku())&&(e.child=t.first)}},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[ae],decls:12,vars:7,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSize","exportData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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",""],["mat-cell","",1,"static-column-size"],["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(t,e){1&t&&(Do(0,"div",0),Do(1,"perun-web-apps-table-wrapper",1),Wo("exportData",function(t){return e.exportData(t)}),Do(2,"table",2),Io(3,3),Lo(4,pF,1,0,"th",4),Lo(5,fF,2,2,"td",5),Bo(),Io(6,6),Lo(7,gF,2,1,"th",7),Lo(8,mF,2,1,"td",8),Bo(),Lo(9,_F,1,0,"tr",9),Lo(10,bF,1,0,"tr",10),Po(),Po(),Po(),Lo(11,yF,2,1,"app-alert",11)),2&t&&(xo("hidden",!e.values.length),Qs(1),xo("dataLength",e.dataSource.filteredData.length)("pageSize",e.pageSize),Qs(1),xo("dataSource",e.dataSource),Qs(7),xo("matHeaderRowDef",e.displayedColumns),Qs(1),xo("matRowDefColumns",e.displayedColumns),Qs(1),xo("ngIf",0===e.values.length))},directives:[OE,lz,pz,dz,hz,mz,_z,xh,fz,gz,KO,bz,yz,Fz],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),t})();function MF(t,e){if(1&t&&No(0,"perun-web-apps-string-list",10),2&t){const t=Go();xo("values",t.displayedValues)("selection",t.selection)("alertText",t.alertText)("headerColumnText",t.headerColumnText)}}function AF(t,e){1&t&&No(0,"mat-spinner",11)}let vF=(()=>{class t{constructor(t,e,i,n,s){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,this.usersManagerService=s,this.altPasswordCtrl=new Lk(null,[UT.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new ZA(!1,[]),n.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("ALERTS.NO_ALT_PASSWORDS").subscribe(t=>this.alertText=t),n.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}ngOnInit(){this.getAltPasswords()}createPassword(){const t=this.generatePassword();this.usersManagerService.createAlternativePassword(this.userId,this.altPasswordCtrl.value,"einfra",t).subscribe(()=>{const e=TE();e.width="600px",e.data={password:t},this.dialog.open(rF,e),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let e="",i=0;const n=t.length;for(;i<16;++i)e+=t.charAt(Math.random()*n);return e.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),e}getAltPasswords(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(t=>{if(this.altPasswordsAttribute=t,t.value){const e=Object.keys(t.value);this.passwordDescriptions=new Set(e),this.displayedValues=Array.from(this.passwordDescriptions.values())}else this.displayedValues=[];this.loading=!1})}alreadyContainsValue(t){return this.passwordDescriptions.has(t)}removeAltPasswords(){const t=TE();t.width="600px",t.data={description:this.selection.selected,passwordId:this.altPasswordsAttribute.value[this.selection.selected[0]],userId:this.userId},this.dialog.open(dF,t).afterClosed().subscribe(t=>{t&&(this.getAltPasswords(),this.selection.clear())})}}return t.\u0275fac=function(e){return new(e||t)(Ro(PE),Ro(wp),Ro(mE),Ro(ZC),Ro(Cp))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"div",0),Do(1,"h1",1),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Do(5,"mat-form-field",2),Do(6,"label",2),No(7,"input",3),nu(8,"translate"),nu(9,"customTranslate"),Po(),Po(),Do(10,"button",4),Wo("click",function(){return e.createPassword()}),Aa(11),nu(12,"translate"),nu(13,"customTranslate"),Po(),Do(14,"app-alert",5),Aa(15),nu(16,"translate"),nu(17,"customTranslate"),Po(),Do(18,"h1",6),Aa(19),nu(20,"translate"),nu(21,"customTranslate"),Po(),Do(22,"button",7),Wo("click",function(){return e.removeAltPasswords()}),Aa(23),nu(24,"translate"),nu(25,"customTranslate"),Po(),Lo(26,MF,1,4,"perun-web-apps-string-list",8),Lo(27,AF,1,0,"mat-spinner",9),Po()),2&t&&(Qs(2),va(su(3,11,su(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),Qs(5),Zo("placeholder",su(8,15,su(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),xo("formControl",e.altPasswordCtrl),Qs(3),xo("disabled",!e.altPasswordCtrl.valid||e.alreadyContainsValue(e.altPasswordCtrl.value)),Qs(1),va(su(12,19,su(13,21,"ALT_PASSWORDS.GENERATE"))),Qs(4),va(su(16,23,su(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),Qs(4),va(su(20,27,su(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),Qs(3),xo("disabled",e.selection.isEmpty()),Qs(1),va(su(24,31,su(25,33,"ALT_PASSWORDS.REMOVE"))),Qs(3),xo("ngIf",!e.loading),Qs(1),xo("ngIf",e.loading))},directives:[zT,mL,FT,lk,Wk,pA,Fz,xh,wF,rL],pipes:[tE,GE],styles:[""]}),t})();function TF(t,e){if(1&t&&(Do(0,"mat-list-item",1),Do(1,"mat-icon"),Aa(2),Po(),Do(3,"p",2),Aa(4),nu(5,"translate"),nu(6,"customTranslate"),Po(),Po()),2&t){const t=e.$implicit;xo("routerLink",t.url),Qs(2),va(t.icon),Qs(2),va(su(5,3,su(6,5,t.label)))}}let kF=(()=>{class t{constructor(t){this.storeService=t,this.items=[]}ngOnInit(){this.initItems();const t=this.storeService.get("displayed_tabs");this.items=this.items.filter(e=>t.includes(e.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:"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 t.\u0275fac=function(e){return new(e||t)(Ro(PE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-settings-overview"]],decls:2,vars:1,consts:[["matRipple","",3,"routerLink",4,"ngFor","ngForOf"],["matRipple","",3,"routerLink"],[1,"ml-2","mt-auto","mb-auto"]],template:function(t,e){1&t&&(Do(0,"mat-list"),Lo(1,TF,7,7,"mat-list-item",0),Po()),2&t&&(Qs(1),xo("ngForOf",e.items))},directives:[jx,zh,Ux,UM,e_,DC],pipes:[tE,GE],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),t})();const SF=["row","column","row-reverse","column-reverse"];function CF(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let EF=(()=>{class t extends IR{buildStyles(t){return function(t){let[e,i,n]=function(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return SF.find(t=>t===e)||(e=SF[0]),"inline"===i&&(i="inline"!==n?n:"",n="inline"),[e,CF(i),!!n]}(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const LF=["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 zF=(()=>{class t extends gR{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout",this.styleCache=xF,this.init()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(NR),Ro(EF),Ro(BR))},t.\u0275dir=Gt({type:t,features:[po]}),t})(),RF=(()=>{class t extends zF{constructor(){super(...arguments),this.inputs=LF}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,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:[po]}),t})();const xF=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let OF=(()=>{class t extends IR{buildStyles(t){const e={};switch(t=t||"stretch"){case"start":e["align-self"]="flex-start";break;case"end":e["align-self"]="flex-end";break;default:e["align-self"]=t}return e}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const DF=["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 PF=(()=>{class t extends gR{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="flex-align",this.styleCache=NF,this.init()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(NR),Ro(OF),Ro(BR))},t.\u0275dir=Gt({type:t,features:[po]}),t})();const NF=new Map;let IF=(()=>{class t extends PF{constructor(){super(...arguments),this.inputs=DF}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,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:[po]}),t})();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let BF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[rR,Ob]]}),t})();function FF(t,e){if(1&t&&(Do(0,"mat-option",13),Aa(1),Po()),2&t){const t=e.$implicit;xo("value",Go().selectedUnit),Qs(1),Ta(" ",t," ")}}let HF=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.rtMessagesService=i,this.notificator=n,this.translate=s,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",s.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new Lk(null,[UT.required]),this.newValueControl=new Lk(null,[UT.required,UT.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const t=(new XE).transform(this.data.user);this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${t} (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`).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(hE),Ro(Tp),Ro(qE),Ro(ZC))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Do(5,"div"),Do(6,"p",2),Aa(7),nu(8,"translate"),nu(9,"customTranslate"),Po(),Do(10,"p"),Aa(11),Po(),Po(),Do(12,"div"),Do(13,"p",2),Aa(14),nu(15,"translate"),nu(16,"customTranslate"),Po(),Do(17,"p"),Aa(18),Po(),Po(),Do(19,"div",3),Do(20,"mat-form-field"),Do(21,"label",4),No(22,"input",5),nu(23,"translate"),nu(24,"customTranslate"),Po(),Po(),Do(25,"mat-select",6),Wo("valueChange",function(t){return e.selectedUnit=t}),Lo(26,FF,2,2,"mat-option",7),Po(),Po(),Do(27,"div"),Do(28,"mat-form-field",8),Do(29,"label",4),No(30,"textarea",9),nu(31,"translate"),nu(32,"customTranslate"),Po(),Po(),Po(),Do(33,"div",10),Do(34,"button",11),Wo("click",function(){return e.onCancel()}),Aa(35),nu(36,"translate"),nu(37,"customTranslate"),Po(),Do(38,"button",12),Wo("click",function(){return e.onSubmit()}),Aa(39),nu(40,"translate"),nu(41,"customTranslate"),Po(),Po(),Po()),2&t&&(Qs(1),va(su(2,14,su(3,16,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.TITLE"))),Qs(6),va(su(8,18,su(9,20,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))),Qs(4),va(e.resource),Qs(3),va(su(15,22,su(16,24,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))),Qs(4),va(e.currentQuota),Qs(4),Zo("placeholder",su(23,26,su(24,28,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),xo("formControl",e.newValueControl),Qs(3),xo("value",e.selectedUnit),Qs(1),xo("ngForOf",e.units),Qs(4),Zo("placeholder",su(31,30,su(32,32,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),xo("formControl",e.reasonControl),Qs(5),Ta(" ",su(36,34,su(37,36,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),Qs(3),xo("disabled",e.reasonControl.invalid),Qs(1),Ta(" ",su(40,38,su(41,40,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},directives:[bE,RF,IF,zT,mL,Hk,FT,Xk,lk,Wk,_S,zh,wE,pA,sA],pipes:[tE,GE],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-ripple.mat-form-field-ripple[_ngcontent-%COMP%], .mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%]{display:none}"]}),t})();function qF(t,e){1&t&&No(0,"mat-spinner",8)}function jF(t,e){1&t&&(Do(0,"app-alert",9),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function YF(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"p"),Do(2,"strong"),Aa(3),nu(4,"translate"),nu(5,"customTranslate"),Po(),Aa(6),Po(),Do(7,"p",10),Aa(8),nu(9,"translate"),nu(10,"customTranslate"),Po(),Do(11,"button",11),Wo("click",function(){Re(t);const e=Go().$implicit,i=Go(3).$implicit;return Go().requestChangeQuota(i,e)}),Aa(12),nu(13,"translate"),nu(14,"customTranslate"),Po(),Po()}if(2&t){const t=Go(5);Qs(3),va(su(4,4,su(5,6,"DATA_QUOTAS.QUOTA"))),Qs(3),Ta(" ",t.quotasMarkup,""),Qs(2),va(su(9,8,su(10,10,"DATA_QUOTAS.QUOTA_INFO"))),Qs(4),va(su(13,12,su(14,14,"DATA_QUOTAS.CHANGE")))}}function WF(t,e){1&t&&(Do(0,"p"),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function UF(t,e){if(1&t){const t=Ho();Do(0,"mat-expansion-panel",3),Wo("opened",function(){const e=Re(t).$implicit;return Go(4).getResAttributes(e.id)}),Do(1,"mat-expansion-panel-header"),Do(2,"mat-panel-title"),Aa(3),Po(),Po(),Lo(4,YF,15,16,"div",7),Lo(5,WF,4,5,"p",7),Po()}if(2&t){const t=e.$implicit,i=Go(4);Qs(3),Ta(" ",t.name," "),Qs(1),xo("ngIf",i.defaultQuota),Qs(1),xo("ngIf",!i.defaultQuota)}}function KF(t,e){if(1&t&&(Do(0,"mat-accordion"),Lo(1,UF,6,3,"mat-expansion-panel",2),Po()),2&t){const t=Go(3);Qs(1),xo("ngForOf",t.resources)}}function VF(t,e){if(1&t&&(Lo(0,qF,1,0,"mat-spinner",5),Lo(1,jF,4,5,"app-alert",6),Lo(2,KF,2,1,"mat-accordion",7)),2&t){const t=Go(2);xo("ngIf",t.loading),Qs(1),xo("ngIf",0===t.resources.length&&!t.loading),Qs(1),xo("ngIf",t.resources.length&&!t.loading)}}function XF(t,e){if(1&t){const t=Ho();Do(0,"mat-expansion-panel",3),Wo("opened",function(){const e=Re(t).$implicit;return Go().getMembersResources(e)}),Do(1,"mat-expansion-panel-header"),Do(2,"mat-panel-title"),Aa(3),Po(),Po(),Lo(4,VF,3,3,"ng-template",4),Po()}if(2&t){const t=e.$implicit;Qs(3),Ta(" ",t.name," ")}}let GF=(()=>{class t{constructor(t,e,i,n,s,r){this.store=t,this.usersManagerService=e,this.membersService=i,this.resourcesManagerService=n,this.attributesManagerService=s,this.dialog=r,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{this.vos=t,this.filteredVos=t})}getMembersResources(t){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(t.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(t=>{let e=t.length;e||(this.loading=!1),t.forEach(t=>{this.attributesManagerService.getResourceAttributes(t.id).subscribe(i=>{e--,i.find(t=>"defaultDataQuotas"===t.friendlyName)&&this.resources.push(t),this.loading=0!==e})})})})}getResAttributes(t){this.attributesManagerService.getResourceAttributes(t).subscribe(t=>{let e=t.find(t=>"dataQuotas"===t.friendlyName);if(e&&e.value){const t=Object.keys(e.value);this.currentQuota=e.value[t[0]]}else this.currentQuota="";if(e=t.find(t=>"defaultDataQuotas"===t.friendlyName),e){const t=Object.keys(e.value);this.defaultQuota=e.value[t[0]]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}parseMarkup(){let t="";t+=this.currentQuota,t+=` (default: ${this.defaultQuota})`,t=t.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=t}requestChangeQuota(t,e){const i=TE();i.width="400px",i.data={vo:t,resource:e,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(HF,i)}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(Ro(PE),Ro(Cp),Ro(vp),Ro(Sp),Ro(wp),Ro(mE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-settings-data-quotas"]],decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[2,"color","gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"perun-web-apps-immediate-filter",1),Wo("filter",function(t){return e.applyFilter(t)}),nu(5,"translate"),nu(6,"customTranslate"),Po(),Do(7,"mat-accordion"),Lo(8,XF,5,1,"mat-expansion-panel",2),Po()),2&t&&(Qs(1),va(su(2,3,su(3,5,"DATA_QUOTAS.TITLE"))),Qs(3),xo("placeholder",su(5,7,su(6,9,"DATA_QUOTAS.FILTER"))),Qs(4),xo("ngForOf",e.filteredVos))},directives:[fI,NI,zh,OI,DI,PI,zI,xh,rL,Fz,pA],pipes:[tE,GE],styles:[""]}),t})();function $F(t,e){1&t&&No(0,"mat-spinner",8)}function JF(t,e){1&t&&(Do(0,"app-alert",9),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function QF(t,e){if(1&t){const t=Ho();Do(0,"mat-expansion-panel",3),Wo("opened",function(){const e=Re(t).$implicit;return Go(4).getOptOutAttribute(e)}),Do(1,"mat-expansion-panel-header"),Do(2,"mat-panel-title"),Aa(3),Po(),Po(),Do(4,"div",10),Do(5,"p"),Aa(6),nu(7,"translate"),nu(8,"customTranslate"),Po(),Do(9,"mat-checkbox",11),Wo("change",function(){return Re(t),Go(4).setOptOut()}),Po(),Po(),Po()}if(2&t){const t=e.$implicit,i=Go(4);Qs(3),Ta(" ",t.name," "),Qs(3),va(su(7,3,su(8,5,"OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))),Qs(3),xo("checked",i.optOutAttribute&&null!==i.optOutAttribute.value)}}function ZF(t,e){if(1&t&&(Do(0,"mat-accordion"),Lo(1,QF,10,7,"mat-expansion-panel",2),Po()),2&t){const t=Go(3);Qs(1),xo("ngForOf",t.resources)}}function tH(t,e){if(1&t&&(Lo(0,$F,1,0,"mat-spinner",5),Lo(1,JF,4,5,"app-alert",6),Lo(2,ZF,2,1,"mat-accordion",7)),2&t){const t=Go(2);xo("ngIf",t.loading),Qs(1),xo("ngIf",0===t.resources.length&&!t.loading),Qs(1),xo("ngIf",t.resources.length&&!t.loading)}}function eH(t,e){if(1&t){const t=Ho();Do(0,"mat-expansion-panel",3),Wo("opened",function(){const e=Re(t).$implicit;return Go().getMailingLists(e)}),Do(1,"mat-expansion-panel-header"),Do(2,"mat-panel-title"),Aa(3),Po(),Po(),Lo(4,tH,3,3,"ng-template",4),Po()}if(2&t){const t=e.$implicit;Qs(3),Ta(" ",t.name," ")}}let iH=(()=>{class t{constructor(t,e,i,n,s){this.store=t,this.usersManagerService=e,this.membersService=i,this.resourcesManagerService=n,this.attributesManagerService=s,this.vos=[],this.resources=[],this.mailingLists=[],this.optOuts=[],this.filteredVos=[]}ngOnInit(){this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{this.vos=t,this.filteredVos=t})}getMailingLists(t){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(t.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(e=>{let i=e.length;i||(this.loading=!1),e.forEach(e=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,e.id).subscribe(n=>{this.attributesManagerService.getResourceAttributeByName(e.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(s=>{i--;const r=n.find(t=>"optOutMailingList"===t.friendlyName);!r||s&&"true"===s.value||(this.optOuts.push({resource:e.id,member:t.id,attribute:r}),this.resources.push(e)),this.loading=0!==i})})})})})}getOptOutAttribute(t){this.index=this.resources.indexOf(t),this.optOutAttribute=this.optOuts[this.index].attribute}setOptOut(){this.optOuts[this.index].attribute.value=this.optOutAttribute.value?null:"true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{console.log("done")})}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(Ro(PE),Ro(Cp),Ro(vp),Ro(Sp),Ro(wp))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-settings-mailing-lists"]],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,"row"],[1,"ml-3",3,"checked","change"]],template:function(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"perun-web-apps-immediate-filter",1),Wo("filter",function(t){return e.applyFilter(t)}),nu(5,"translate"),nu(6,"customTranslate"),Po(),Do(7,"mat-accordion"),Lo(8,eH,5,1,"mat-expansion-panel",2),Po()),2&t&&(Qs(1),va(su(2,3,su(3,5,"OPT_OUT_MAILING_LISTS.TITLE"))),Qs(3),xo("placeholder",su(5,7,su(6,9,"OPT_OUT_MAILING_LISTS.FILTER"))),Qs(4),xo("ngForOf",e.filteredVos))},directives:[fI,NI,zh,OI,DI,PI,zI,xh,rL,Fz,KO],pipes:[tE,GE],styles:[""]}),t})();function nH(t,e){1&t&&No(0,"mat-spinner",4)}function sH(t,e){1&t&&No(0,"th",17)}function rH(t,e){if(1&t&&(Do(0,"td",18),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),Ta(" ",t," ")}}function oH(t,e){1&t&&No(0,"tr",19)}function aH(t,e){1&t&&No(0,"tr",20)}function cH(t,e){if(1&t&&(Do(0,"table",11),Io(1,12),Lo(2,sH,1,0,"th",13),Lo(3,rH,2,1,"td",14),Bo(),Lo(4,oH,1,0,"tr",15),Lo(5,aH,1,0,"tr",16),Po()),2&t){const t=Go(2);xo("dataSource",t.dataSource),Qs(4),xo("matHeaderRowDef",t.displayedColumns),Qs(1),xo("matRowDefColumns",t.displayedColumns)}}function uH(t,e){if(1&t){const t=Ho();Do(0,"div",1),Do(1,"div",5),Do(2,"p"),Aa(3),Po(),Do(4,"div",6),Aa(5),nu(6,"translate"),nu(7,"customTranslate"),Po(),Lo(8,cH,6,3,"table",7),Po(),Do(9,"div",8),Do(10,"button",9),Wo("click",function(){return Re(t),Go().onCancel()}),Aa(11),nu(12,"translate"),nu(13,"customTranslate"),Po(),Do(14,"button",10),Wo("click",function(){return Re(t),Go().onSubmit()}),Aa(15),nu(16,"translate"),nu(17,"customTranslate"),Po(),Po(),Po()}if(2&t){const t=Go();Qs(3),Ta(" ",t.description," "),Qs(2),Ta(" ",su(6,5,su(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),Qs(3),xo("ngIf",t.dataSource.data.length),Qs(3),Ta(" ",su(12,9,su(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),Qs(4),Ta(" ",su(16,13,su(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}let lH=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new Mz(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 t=this.data.attribute.value?this.data.attribute.value:[];void 0!==this.data.valueIndex?t.splice(this.data.valueIndex,1):t=t.filter(t=>!this.data.values.find(e=>e===t)),this.data.attribute.value=t}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(hE),Ro(wp))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),Po(),Do(2,"div",1),Lo(3,nH,1,0,"mat-spinner",2),Po(),Lo(4,uH,18,17,"div",3)),2&t&&(Qs(1),va(e.title),Qs(2),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading))},directives:[bE,xh,rL,yE,wE,pA,lz,pz,dz,hz,mz,_z,fz,gz,bz,yz],pipes:[tE,GE],styles:[""]}),t})();function hH(t,e){1&t&&(Do(0,"app-alert",5),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function dH(t,e){if(1&t){const t=Ho();Do(0,"mat-option",11),Wo("click",function(){return Re(t),Go(3).changeValue()}),Aa(1),Po()}if(2&t){const t=e.$implicit;xo("value",t),Qs(1),va(t)}}function pH(t,e){if(1&t){const t=Ho();Do(0,"mat-list-item"),Do(1,"mat-form-field",7),Do(2,"mat-select",8),Wo("valueChange",function(e){const i=Re(t).index;return Go(2).shells[i]=e}),Lo(3,dH,2,2,"mat-option",9),Po(),Po(),Do(4,"button",10),Wo("click",function(){const e=Re(t).index;return Go(2).removeShell(e)}),Aa(5),nu(6,"translate"),nu(7,"customTranslate"),Po(),Po()}if(2&t){const t=e.index,i=Go(2);Qs(2),xo("value",i.shells[t]),Qs(1),xo("ngForOf",i.defaultShells),Qs(2),va(su(6,3,su(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON")))}}function fH(t,e){if(1&t&&(Do(0,"mat-list"),Lo(1,pH,8,7,"mat-list-item",6),Po()),2&t){const t=Go();Qs(1),xo("ngForOf",t.shells)}}let gH=(()=>{class t{constructor(t,e,i,n){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],n.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t)}),this.getAttribute()}addShell(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{console.log("done")})}removeShell(t){const e=TE();e.width="600px",e.data={valueIndex:t,values:[this.shells[t]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(lH,e).afterClosed().subscribe(t=>{t&&this.getAttribute()})}getAttribute(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(t=>{this.prefShellsAttribute=t,this.shells=this.prefShellsAttribute.value?this.prefShellsAttribute.value:[],this.loading=!1})}changeValue(){this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{this.getAttribute()})}}return t.\u0275fac=function(e){return new(e||t)(Ro(PE),Ro(wp),Ro(mE),Ro(ZC))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"app-alert",1),Aa(5),nu(6,"translate"),nu(7,"customTranslate"),Po(),Do(8,"button",2),Wo("click",function(){return e.addShell()}),Aa(9),nu(10,"translate"),nu(11,"customTranslate"),Po(),Lo(12,hH,4,5,"app-alert",3),Lo(13,fH,2,1,"mat-list",4)),2&t&&(Qs(1),va(su(2,5,su(3,7,"PREFERRED_SHELLS.TITLE"))),Qs(4),Ta(" ",su(6,9,su(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),Qs(4),va(su(10,13,su(11,15,"PREFERRED_SHELLS.NEW_BUTTON"))),Qs(3),xo("ngIf",!e.loading&&0===e.shells.length),Qs(1),xo("ngIf",!e.loading))},directives:[Fz,pA,xh,jx,zh,Ux,zT,_S,sA],pipes:[tE,GE],styles:[""]}),t})();function mH(t,e){1&t&&No(0,"mat-spinner",4)}function _H(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"div",5),Do(2,"mat-form-field",6),Do(3,"label",6),No(4,"input",7),Po(),Po(),Po(),Do(5,"div",8),Do(6,"button",9),Wo("click",function(){return Re(t),Go().onCancel()}),Aa(7),nu(8,"translate"),nu(9,"customTranslate"),Po(),Do(10,"button",10),Wo("click",function(){return Re(t),Go().onSubmit()}),Aa(11),nu(12,"translate"),nu(13,"customTranslate"),Po(),Po(),Po()}if(2&t){const t=Go();Qs(4),xo("formControl",t.inputControl),Qs(3),Ta(" ",su(8,4,su(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),Qs(3),xo("disabled",!t.inputControl.valid||t.groups.includes(t.inputControl.value)),Qs(1),Ta(" ",su(12,8,su(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}let bH=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.groups=[]}ngOnInit(){this.inputControl=new Lk(null,UT.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(t=>{const e=t.value?t.value:[];e.push(this.inputControl.value),t.value=e,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:t}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})})}}return t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(hE),Ro(wp))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Lo(5,mH,1,0,"mat-spinner",2),Lo(6,_H,14,12,"div",3),Po()),2&t&&(Qs(1),va(su(2,3,su(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),Qs(4),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading))},directives:[bE,xh,rL,yE,zT,mL,FT,Xk,lk,Wk,wE,pA],pipes:[tE,GE],styles:[""]}),t})();function yH(t,e){if(1&t){const t=Ho();Do(0,"div",2),Do(1,"h4"),Aa(2),Po(),Do(3,"button",3),Wo("click",function(){const e=Re(t).$implicit;return Go().addGroupName(e)}),Aa(4),nu(5,"translate"),nu(6,"customTranslate"),Po(),Do(7,"button",4),Wo("click",function(){const e=Re(t),i=e.$implicit,n=e.index;return Go().removeGroupName(i,n)}),Aa(8),nu(9,"translate"),Po(),No(10,"perun-web-apps-string-list",5),Po()}if(2&t){const t=e.$implicit,i=e.index,n=Go();Qs(2),va(t),Qs(2),va(su(5,8,su(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))),Qs(3),xo("disabled",0===n.selectionList[i].selected.length),Qs(1),va(su(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")),Qs(2),xo("values",n.groupNames.get(t))("selection",n.selectionList[i])("alertText",n.alertText)("headerColumnText",n.headerColumnText)}}let wH=(()=>{class t{constructor(t,e,i,n){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],n.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(t=>this.alertText=t),n.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}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(t=>this.removeDialogDescription=t),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),this.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(t=>this.alertText=t),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}),this.initSelection(),this.namespaces.forEach(t=>{this.getAttribute(t)})}initSelection(){for(let t=0;t{this.groupNames.set(t,e.value?e.value:[]),this.groupNameAttributes.push(e)})}addGroupName(t){const e=this.groupNames.get(t),i=TE();i.width="400px",i.data={groups:e,namespace:t,userId:this.userId},this.dialog.open(bH,i).afterClosed().subscribe(e=>{e&&this.getAttribute(t)})}removeGroupName(t,e){const i=TE();i.width="600px",i.data={values:this.selectionList[e].selected,attribute:this.groupNameAttributes[e],userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(lH,i).afterClosed().subscribe(i=>{i&&(this.selectionList[e].clear(),this.getAttribute(t))})}}return t.\u0275fac=function(e){return new(e||t)(Ro(PE),Ro(wp),Ro(mE),Ro(ZC))},t.\u0275cmp=Yt({type:t,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",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText"]],template:function(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Lo(4,yH,11,14,"div",1)),2&t&&(Qs(1),va(su(2,2,su(3,4,"PREFERRED_UNIX_GROUP_NAMES.TITLE"))),Qs(3),xo("ngForOf",e.namespaces))},directives:[zh,pA,wF],pipes:[tE,GE],styles:[""]}),t})();function MH(t,e){1&t&&(Do(0,"app-alert",7),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,su(3,3,"ALERTS.NO_SAMBA")),"\n"))}function AH(t,e){1&t&&(Do(0,"app-alert",7),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,su(3,3,"ALERTS.SAMBA_EXISTS")),"\n"))}function vH(t,e){1&t&&(Do(0,"app-alert",8),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"SAMBA_PASSWORD.PASSWORD_VALIDATION"))))}let TH=(()=>{class t{constructor(t,e,i,n,s){this.attributesManagerService=t,this.store=e,this.usersManagerService=i,this.notificator=n,this.translate=s,s.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),s.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(t=>this.showPwdTooltip=t),s.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(t=>this.hidePwdTooltip=t)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new Lk("",[UT.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 t=(new Date).getTime().toString();this.usersManagerService.createAlternativePassword(this.userId,t,"samba-du",this.sambaControl.value).subscribe(()=>{this.sambaControl.setValue(""),this.getSambaAttribute(),this.notificator.showSuccess(this.successMessage)})}getSambaAttribute(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:samba-du").subscribe(t=>{this.sambaExists=!!t.value,this.sambaAttribute=t})}}return t.\u0275fac=function(e){return new(e||t)(Ro(wp),Ro(PE),Ro(Cp),Ro(qE),Ro(ZC))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Lo(4,MH,4,5,"app-alert",1),Lo(5,AH,4,5,"app-alert",1),Do(6,"mat-form-field",2),Do(7,"label",2),No(8,"input",3),nu(9,"translate"),nu(10,"customTranslate"),Po(),Po(),Do(11,"button",4),Wo("click",function(){return e.showPassword=!e.showPassword}),Do(12,"mat-icon"),Aa(13),Po(),Po(),Do(14,"button",5),Wo("click",function(){return e.setSambaPassword()}),Aa(15),nu(16,"translate"),nu(17,"customTranslate"),Po(),Lo(18,vH,4,5,"app-alert",6)),2&t&&(Qs(1),va(su(2,11,su(3,13,"SAMBA_PASSWORD.TITLE"))),Qs(3),xo("ngIf",!e.sambaExists),Qs(1),xo("ngIf",e.sambaExists),Qs(3),Zo("placeholder",su(9,15,su(10,17,"SAMBA_PASSWORD.INPUT_PLACEHOLDER"))),xo("formControl",e.sambaControl)("type",e.showPassword?"text":"password"),Qs(3),xo("matTooltip",e.showPassword?e.hidePwdTooltip:e.showPwdTooltip),Qs(2),va(e.showPassword?"visibility_off":"visibility"),Qs(1),xo("disabled",0===e.sambaControl.value.length||e.sambaControl.invalid),Qs(1),va(su(16,19,su(17,21,"SAMBA_PASSWORD.SET_PASSWORD"))),Qs(3),xo("ngIf",e.sambaControl.invalid))},directives:[xh,zT,mL,FT,lk,Wk,pA,OS,DC,Fz],pipes:[tE,GE],styles:[""]}),t})(),kH=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.attributesManagerService=i}ngOnInit(){this.sshControl=new Lk(null,[UT.required,UT.pattern("^(ssh-rsa|ssh-ed25519|ecdsa-sha2-nistp256|ecdsa-sha2-nistp384|ecdsa-sha2-nistp521).+$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const t=this.data.attribute.value?this.data.attribute.value:[];t.includes(this.sshControl.value)||t.push(this.sshControl.value),this.data.attribute.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(hE),Ro(wp))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:19,vars:22,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","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"]],template:function(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Do(5,"mat-form-field",2),Do(6,"label",2),No(7,"textarea",3),nu(8,"translate"),nu(9,"customTranslate"),Po(),Po(),Po(),Do(10,"div",4),Do(11,"button",5),Wo("click",function(){return e.onCancel()}),Aa(12),nu(13,"translate"),nu(14,"customTranslate"),Po(),Do(15,"button",6),Wo("click",function(){return e.onSubmit()}),Aa(16),nu(17,"translate"),nu(18,"customTranslate"),Po(),Po()),2&t&&(Qs(1),va(su(2,6,su(3,8,"DIALOGS.ADD_SSH.TITLE"))),Qs(6),Zo("placeholder",su(8,10,su(9,12,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),xo("formControl",e.sshControl),Qs(5),Ta(" ",su(13,14,su(14,16,"DIALOGS.ADD_SSH.CANCEL"))," "),Qs(3),xo("disabled",!e.sshControl.valid),Qs(1),Ta(" ",su(17,18,su(18,20,"DIALOGS.ADD_SSH.ADD"))," "))},directives:[bE,yE,zT,mL,uL,FT,Xk,lk,Wk,wE,pA],pipes:[tE,GE],styles:[".input-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}"]}),t})(),SH=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(hE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"div",0),Do(1,"textarea",1),Aa(2),Po(),Po(),Do(3,"mat-dialog-actions"),Do(4,"button",2),Wo("click",function(){return e.onClose()}),Aa(5),nu(6,"translate"),nu(7,"customTranslate"),Po(),Po()),2&t&&(Qs(2),va(e.sshKey),Qs(3),va(su(6,2,su(7,4,"DIALOGS.SHOW_SSH.CLOSE"))))},directives:[mL,uL,wE,pA],pipes:[tE,GE],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}[_ngcontent-%COMP%]:focus{outline:none}"]}),t})();function CH(t,e){if(1&t){const t=Ho();Do(0,"mat-list-item",4),Do(1,"p",5),Wo("click",function(){const e=Re(t).$implicit;return Go().showWholeKey(e)}),Aa(2),Po(),Do(3,"button",6),nu(4,"translate"),nu(5,"customTranslate"),Do(6,"mat-icon"),Aa(7," file_copy "),Po(),Po(),Do(8,"button",7),Wo("click",function(){const e=Re(t).$implicit;return Go().removeKey(e,!1)}),nu(9,"translate"),nu(10,"customTranslate"),Do(11,"mat-icon"),Aa(12," delete "),Po(),Po(),Po()}if(2&t){const t=e.$implicit;Qs(2),va(t),Qs(1),Zo("matTooltip",su(4,4,su(5,6,"SSH_KEYS.COPY_TOOLTIP"))),xo("cdkCopyToClipboard",t),Qs(5),Zo("matTooltip",su(9,8,su(10,10,"SSH_KEYS.REMOVE_TOOLTIP")))}}function EH(t,e){if(1&t){const t=Ho();Do(0,"mat-list-item",4),Do(1,"label",8),Wo("click",function(){const e=Re(t).$implicit;return Go().showWholeKey(e)}),Aa(2),Po(),Do(3,"button",9),Do(4,"mat-icon"),Aa(5," file_copy "),Po(),Po(),Do(6,"button",10),Wo("click",function(){const e=Re(t).$implicit;return Go().removeKey(e,!0)}),Do(7,"mat-icon"),Aa(8," delete "),Po(),Po(),Po()}if(2&t){const t=e.$implicit;Qs(2),va(t),Qs(1),xo("cdkCopyToClipboard",t)}}let LH=(()=>{class t{constructor(t,e,i,n){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,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 ZA(!1,[]),this.selectionAdmin=new ZA(!1,[]),n.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("ALERTS.NO_ALT_PASSWORDS").subscribe(t=>this.alertText=t),n.get("SSH_KEYS.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),this.translateService.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(t=>this.alertText=t),this.translateService.get("SSH_KEYS.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(t){const e=TE();e.width="800px",e.data={attribute:t?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(kH,e).afterClosed().subscribe(e=>{e&&(t?this.getAdminSSH():this.getUserSSH())})}removeKey(t,e){const i=TE();i.width="600px",i.data={values:[t],attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(lH,i).afterClosed().subscribe(t=>{t&&(this.loading=!0,e?(this.getAdminSSH(),this.selectionAdmin.clear()):(this.getUserSSH(),this.selection.clear()))})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(t=>{this.userKeyAttribute=t,this.userKeys=t.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(t=>{this.adminKeyAttribute=t,this.adminKeys=t.value,this.loading=!1})}showWholeKey(t){const e=TE();e.width="600px",e.data={value:t},this.dialog.open(SH,e)}}return t.\u0275fac=function(e){return new(e||t)(Ro(PE),Ro(wp),Ro(mE),Ro(ZC))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:28,vars:32,consts:[[1,"page-title"],["mat-flat-button","","color","accent",3,"click"],["class","dark-hover-list-item","matRipple","","style","width: auto",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item",2,"width","auto"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ml-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ml-2","center-content",3,"matTooltip","click"],[1,"truncate","center-content",3,"click"],["mat-icon-button","","color","accent",1,"ml-auto","center-content",3,"cdkCopyToClipboard"],["mat-icon-button","","color","warn",1,"ml-2","center-content",3,"click"]],template:function(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"p"),Aa(5),nu(6,"translate"),nu(7,"customTranslate"),Po(),Do(8,"button",1),Wo("click",function(){return e.addKey(!1)}),Aa(9),nu(10,"translate"),nu(11,"customTranslate"),Po(),Do(12,"mat-list"),Lo(13,CH,13,12,"mat-list-item",2),Po(),Do(14,"h1",3),Aa(15),nu(16,"translate"),nu(17,"customTranslate"),Po(),Do(18,"p"),Aa(19),nu(20,"translate"),nu(21,"customTranslate"),Po(),Do(22,"button",1),Wo("click",function(){return e.addKey(!0)}),Aa(23),nu(24,"translate"),nu(25,"customTranslate"),Po(),Do(26,"mat-list"),Lo(27,EH,9,2,"mat-list-item",2),Po()),2&t&&(Qs(1),va(su(2,8,su(3,10,"SSH_KEYS.SSH_KEYS_TITLE"))),Qs(4),va(su(6,12,su(7,14,"SSH_KEYS.SSH_KEYS_DESCRIPTION"))),Qs(4),va(su(10,16,su(11,18,"SSH_KEYS.NEW_KEY"))),Qs(4),xo("ngForOf",e.userKeys),Qs(2),va(su(16,20,su(17,22,"SSH_KEYS.ADMIN_SSH_KEYS_TITLE"))),Qs(4),va(su(20,24,su(21,26,"SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION"))),Qs(4),va(su(24,28,su(25,30,"SSH_KEYS.NEW_KEY"))),Qs(4),xo("ngForOf",e.adminKeys))},directives:[pA,jx,zh,Ux,UM,xz,OS,DC],pipes:[tE,GE],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}.cursor-pointer[_ngcontent-%COMP%], label[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),t})(),zH=(()=>{class t{transform(t){return"virt"===t.namespace.split(":")[4]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"isVirtualAttribute",type:t,pure:!0}),t})();function RH(t,e){if(1&t){const t=Ho();Do(0,"th",15),Do(1,"mat-checkbox",16),Wo("change",function(e){Re(t);const i=Go();return e?i.masterToggle():null}),Po(),Po()}if(2&t){const t=Go();Qs(1),xo("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())("aria-label",t.checkboxLabel())}}function xH(t,e){if(1&t){const t=Ho();Do(0,"td",17),Do(1,"mat-checkbox",18),Wo("click",function(t){return t.stopPropagation()})("change",function(e){const i=Re(t).$implicit,n=Go();return e?n.selection.toggle(i):null}),nu(2,"isVirtualAttribute"),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();Qs(1),xo("checked",i.selection.isSelected(t))("disabled",su(2,3,t)||!t.writable)("aria-label",i.checkboxLabel(t))}}function OH(t,e){1&t&&(Do(0,"th",19),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")))}function DH(t,e){if(1&t&&(Do(0,"td",17),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.id)}}function PH(t,e){1&t&&(Do(0,"th",19),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")))}function NH(t,e){if(1&t&&(Do(0,"td",20),Do(1,"div",21),Aa(2),Po(),Po()),2&t){const t=e.$implicit,i=Go();Qs(1),Zo("matTooltip",i.getAttributeFullName(t)),Qs(1),Ta(" ",t.displayName," ")}}function IH(t,e){1&t&&(Do(0,"th",15),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")))}function BH(t,e){if(1&t){const t=Ho();Do(0,"td",20),Do(1,"perun-web-apps-attribute-value",22),Wo("sendEventToParent2",function(){const e=Re(t).$implicit;return Go().onValueChange(e)}),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();Qs(1),xo("attribute",t)("readonly",i.readonly||!t.writable)}}function FH(t,e){1&t&&(Do(0,"th",19),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")))}function HH(t,e){if(1&t&&(Do(0,"td",20),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.description)}}function qH(t,e){1&t&&No(0,"tr",23)}function jH(t,e){if(1&t&&(No(0,"tr",24),nu(1,"translate")),2&t){const t=e.$implicit,i=Go();Zo("matTooltip",su(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),xo("matTooltipPosition","before")("matTooltipDisabled",t.writable||i.readonly)}}function YH(t,e){1&t&&(Do(0,"app-alert",25),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function WH(t,e){1&t&&(Do(0,"app-alert",25),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY"),"\n"))}let UH=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.attributes=[],this.selection=new ZA(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.pageSize=10,this.page=new lu,this.readonly=!1,this.hiddenColumns=[],this.pageSizeOptions=vE}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new Mz(this.attributes.filter(t=>!t.namespace.includes("def:core"))),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"displayName":return t.displayName;case"description":return t.description;case"value":return JSON.stringify(t.value);default:return""}}exportData(t){LE(EE(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(t=>!this.hiddenColumns.includes(t)),this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>CE(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>SE(t,e,this.getDataForColumn,this),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.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.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"}updateMapAttributes(){for(const t of this.items.toArray())"java.util.LinkedHashMap"===t.attribute.type&&t.updateMapAttribute()}onValueChange(t){this.canBeSelected(t)&&this.selection.select(t)}canBeSelected(t){return!kE(t)&&t.writable}getAttributeFullName(t){return`${t.namespace}:${t.friendlyName}`}}return t.\u0275fac=function(e){return new(e||t)(Ro(Pp),Ro(UE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(t,e){if(1&t&&(vu(VP,7),vu(OE,7),vu(EP,5)),2&t){let t;Au(t=ku())&&(e.matSort=t.first),Au(t=ku())&&(e.child=t.first),Au(t=ku())&&(e.items=t)}},inputs:{attributes:"attributes",selection:"selection",inDialog:"inDialog",filterValue:"filterValue",pageSize:"pageSize",readonly:"readonly",hiddenColumns:"hiddenColumns"},outputs:{page:"page"},features:[ae],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["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",""],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(t,e){1&t&&(Do(0,"div",0),Do(1,"perun-web-apps-table-wrapper",1),Wo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),Do(2,"table",2),Io(3,3),Lo(4,RH,2,3,"th",4),Lo(5,xH,3,5,"td",5),Bo(),Io(6,6),Lo(7,OH,3,3,"th",7),Lo(8,DH,2,1,"td",5),Bo(),Io(9,8),Lo(10,PH,3,3,"th",7),Lo(11,NH,3,2,"td",9),Bo(),Io(12,10),Lo(13,IH,3,3,"th",4),Lo(14,BH,2,2,"td",9),Bo(),Io(15,11),Lo(16,FH,3,3,"th",7),Lo(17,HH,2,1,"td",9),Bo(),Lo(18,qH,1,0,"tr",12),Lo(19,jH,2,5,"tr",13),Po(),Po(),Po(),Lo(20,YH,3,3,"app-alert",14),Lo(21,WH,3,3,"app-alert",14)),2&t&&(xo("hidden",0===e.dataSource.filteredData.length),Qs(1),xo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),Qs(1),xo("dataSource",e.dataSource),Qs(16),xo("matHeaderRowDef",e.displayedColumns),Qs(1),xo("matRowDefColumns",e.displayedColumns),Qs(1),xo("ngIf",0===e.dataSource.filteredData.length&&0!==e.dataSource.data.length),Qs(1),xo("ngIf",0===e.dataSource.data.length))},directives:[OE,lz,VP,pz,dz,hz,mz,_z,xh,fz,KO,gz,tN,OS,EP,bz,yz,Fz],pipes:[zH,tE],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),t})();function KH(t,e){1&t&&No(0,"mat-spinner",5)}function VH(t,e){1&t&&No(0,"mat-spinner",5)}function XH(t,e){if(1&t&&No(0,"perun-web-apps-attributes-list",10),2&t){const t=Go(3);xo("attributes",t.attributes)("readonly",!0)("hiddenColumns",t.hiddenColumns)}}function GH(t,e){if(1&t&&(Lo(0,VH,1,0,"mat-spinner",3),Lo(1,XH,1,3,"perun-web-apps-attributes-list",9)),2&t){const t=Go(2);xo("ngIf",t.innerLoading),Qs(1),xo("ngIf",!t.innerLoading)}}function $H(t,e){1&t&&No(0,"mat-spinner",5)}function JH(t,e){if(1&t&&No(0,"perun-web-apps-attributes-list",10),2&t){const t=Go(4);xo("attributes",t.attributes)("readonly",!0)("hiddenColumns",t.hiddenColumns)}}function QH(t,e){if(1&t&&(Lo(0,$H,1,0,"mat-spinner",3),Lo(1,JH,1,3,"perun-web-apps-attributes-list",9)),2&t){const t=Go(3);xo("ngIf",t.innerLoading),Qs(1),xo("ngIf",!t.innerLoading)}}function ZH(t,e){if(1&t){const t=Ho();Do(0,"mat-expansion-panel",6),Wo("opened",function(){const e=Re(t).$implicit;return Go(2).getMemberData(e)}),Do(1,"mat-expansion-panel-header"),Do(2,"mat-panel-title"),Aa(3),nu(4,"translate"),nu(5,"customTranslate"),Po(),Po(),Lo(6,QH,2,2,"ng-template",7),Po()}if(2&t){const t=e.$implicit;Qs(3),ka(" ",su(4,2,su(5,4,"PRIVACY.DATA")),"",t.name," ")}}function tq(t,e){if(1&t){const t=Ho();Do(0,"mat-accordion"),Do(1,"mat-expansion-panel",6),Wo("opened",function(){return Re(t),Go().getUserData()}),Do(2,"mat-expansion-panel-header"),Do(3,"mat-panel-title"),Aa(4),nu(5,"translate"),nu(6,"customTranslate"),Po(),Po(),Lo(7,GH,2,2,"ng-template",7),Po(),Lo(8,ZH,7,6,"mat-expansion-panel",8),Po()}if(2&t){const t=Go();Qs(4),Ta(" ",su(5,2,su(6,4,"PRIVACY.USER_INFO"))," "),Qs(4),xo("ngForOf",t.filteredVos)}}let eq=(()=>{class t{constructor(t,e,i,n){this.usersManagerService=t,this.membersService=e,this.attributesManagerService=i,this.storage=n,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(t=>{this.vos=t,this.filteredVos=t,this.outerLoading=!1})}getUserData(){this.innerLoading=!0,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.user=t,this.attributes=t.userAttributes,this.username=(new XE).transform(t),this.innerLoading=!1})}getMemberData(t){this.innerLoading=!0,this.membersService.getMemberByUser(t.id,this.userId).subscribe(t=>{this.membersService.getRichMemberWithAttributes(t.id).subscribe(t=>{this.attributes=t.memberAttributes,this.innerLoading=!1})})}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Cp),Ro(vp),Ro(wp),Ro(PE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Do(5,"perun-web-apps-immediate-filter",2),Wo("filter",function(t){return e.applyFilter(t)}),nu(6,"translate"),nu(7,"customTranslate"),Po(),Lo(8,KH,1,0,"mat-spinner",3),Lo(9,tq,9,6,"mat-accordion",4),Po()),2&t&&(Qs(1),va(su(2,4,su(3,6,"PRIVACY.TITLE"))),Qs(4),xo("placeholder",su(6,8,su(7,10,"SERVICES.FILTER"))),Qs(3),xo("ngIf",e.outerLoading),Qs(1),xo("ngIf",!e.outerLoading))},directives:[fI,xh,rL,NI,OI,DI,PI,zI,zh,UH],pipes:[tE,GE],styles:[""]}),t})(),iq=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-home-page"]],decls:1,vars:0,template:function(t,e){1&t&&No(0,"router-outlet")},directives:[s_],styles:[""]}),t})(),nq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[PC,Xh]]}),t})(),sq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})(),rq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[sq,_M],_M]}),t})(),oq=(()=>{class t{constructor(){this.changes=new v,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const aq={provide:new Ui("mat-datepicker-scroll-strategy"),deps:[Yv],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let cq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[oq,aq],imports:[[Xh,fA,Gv,zb,fv,_M],rv]}),t})(),uq=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Xh,Jk,fA,XO,PC,oL,NS]]}),t})(),lq=(()=>{class t extends OM{format(t,e){return"input"===e?`${t.getDate().toString()}.${(t.getMonth()+1).toString()}.${t.getFullYear()}`:t.toDateString()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const hq={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 dq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[{provide:kM,useClass:lq},{provide:SM,useValue:hq}],imports:[[Xh,XO,wz,$k,lP,VD,eE,g_,eN,$S,oL,nq,PC,yC,fA,NS,RT,Jk,_L,KM,VE,Oz,rq,cq,tB,aA,bS,uq,ov,ME,iE]]}),t})();function pq(t,e){1&t&&(Do(0,"app-alert"),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function fq(t,e){1&t&&(Do(0,"th",15),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))))}function gq(t,e){if(1&t&&(Do(0,"td",16),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.friendlyNameParameter)}}function mq(t,e){1&t&&(Do(0,"th",15),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))))}function _q(t,e){if(1&t&&(Do(0,"td",17),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.value)}}function bq(t,e){1&t&&No(0,"th",15)}function yq(t,e){if(1&t){const t=Ho();Do(0,"td",18),Do(1,"button",19),Wo("click",function(){const e=Re(t).$implicit;return Go().changePassword(e.friendlyNameParameter)}),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();Qs(1),xo("disabled",!i.logins.includes(t)),Qs(1),va(su(3,2,su(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD")))}}function wq(t,e){1&t&&No(0,"tr",20)}function Mq(t,e){1&t&&No(0,"tr",21)}let Aq=(()=>{class t{constructor(t,e){this.attributesManagerService=t,this.store=e,this.nameSpaces=[],this.logins=[],this.displayedColumns=["namespace","value","change"]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(t=>{const e=this.nameSpaces.map(t=>{const e=t.split(":");return e[e.length-1]});this.logins=t.filter(t=>e.includes(t.friendlyNameParameter)),this.dataSource=new Mz(t)})}changePassword(t){const e=this.store.get("pwd_reset_base_url");location.href=`${e}?login-namespace=${t}`}}return t.\u0275fac=function(e){return new(e||t)(Ro(wp),Ro(PE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-password-reset"]],decls:20,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","change"],["mat-cell","",4,"matCellDef"],["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"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Lo(4,pq,4,5,"app-alert",1),Do(5,"div",2),Do(6,"div",3),Do(7,"div",4),Do(8,"table",5),Io(9,6),Lo(10,fq,4,5,"th",7),Lo(11,gq,2,1,"td",8),Bo(),Io(12,9),Lo(13,mq,4,5,"th",7),Lo(14,_q,2,1,"td",10),Bo(),Io(15,11),Lo(16,bq,1,0,"th",7),Lo(17,yq,5,6,"td",12),Bo(),Lo(18,wq,1,0,"tr",13),Lo(19,Mq,1,0,"tr",14),Po(),Po(),Po(),Po()),2&t&&(Qs(1),va(su(2,5,su(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE"))),Qs(3),xo("ngIf",!e.logins.length),Qs(4),xo("dataSource",e.dataSource),Qs(10),xo("matHeaderRowDef",e.displayedColumns),Qs(1),xo("matRowDefColumns",e.displayedColumns))},directives:[xh,lz,VP,pz,dz,hz,mz,_z,Fz,fz,gz,pA,bz,yz],pipes:[tE,GE],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}"]}),t})();function vq(t,e){1&t&&(Do(0,"app-alert",11),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"DIALOGS.ADD_AUTH_IMG.INFO"))))}function Tq(t,e){1&t&&(Do(0,"app-alert",12),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"DIALOGS.ADD_AUTH_IMG.IMG_TOO_LONG"))))}function kq(t,e){if(1&t&&(Do(0,"div",13),No(1,"img",14),Po()),2&t){const t=Go();Qs(1),xo("src",t.newImage,ts)}}function Sq(t,e){1&t&&(Do(0,"app-alert",11),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"DIALOGS.ADD_AUTH_IMG.DELAY_INFO"))))}i(6577);let Cq=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.store=n,this.newImage=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.newImage=this.attribute.value}handleInputChange(t){const e=t.dataTransfer?t.dataTransfer.files[0]:t.target.files[0],i=new FileReader;e.type.match(/image-*/)?(i.onload=this._handleReaderLoaded.bind(this),i.readAsDataURL(e)):alert("invalid format")}_handleReaderLoaded(t){const e=t.target;this.imgTooLong=e.result.length>=5120,this.newImage=e.result}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 t(t,e,i,n){n.beginPath(),n.rect(20*t,20*e,20,20),n.fillStyle="rgb("+i.join(",")+")",n.fill()}this.newImage=function(){const e=function(){const t=document.createElement("canvas");t.width=100,t.height=100;const e=t.getContext("2d");return e.beginPath(),e.rect(0,0,100,100),e.fillStyle="#FFFFFF",e.fill(),t}(),i=e.getContext("2d"),n=function(){const t=[];for(let e=0;e<3;e++){const e=Math.floor(256*Math.random()),i=Math.max(120,e),n=Math.min(200,i);t.push(n)}return t}();for(let s=0;s{class t{constructor(t,e){this.http=t,this.storeService=e}getHeaders(){let t=new qd;return t=t.set("Authorization","Access-Control-Allow-Origin"),t}enableMfa(t,e){const i=`${this.storeService.get("mfa","api_url")}mfaEnabled`,n=`value=${t}`,s=new qd;return s.set("Authorization",`Bearer ${e}`),this.http.put(i,n,{headers:s}).pipe(rf(t=>this.formatErrors(t)))}formatErrors(t){return YA(t.error)}}return t.\u0275fac=function(e){return new(e||t)(un(np),un(PE))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Lq=(()=>{class t{constructor(t,e){this.dialogRef=t,this.store=e}onCancel(){this.dialogRef.close()}onAdd(){const t=this.store.get("mfa","register_totp_url");window.open(t,"_blank"),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ro(uE),Ro(PE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-add-token-info-dialog"]],decls:15,vars:15,consts:[["mat-dialog-content",""],["alert_type","info"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(Do(0,"div"),Do(1,"div",0),Do(2,"app-alert",1),Aa(3),nu(4,"translate"),nu(5,"customTranslate"),Po(),Po(),Do(6,"div",2),Do(7,"button",3),Wo("click",function(){return e.onCancel()}),Aa(8),nu(9,"translate"),nu(10,"customTranslate"),Po(),Do(11,"button",4),Wo("click",function(){return e.onAdd()}),Aa(12),nu(13,"translate"),nu(14,"customTranslate"),Po(),Po(),Po()),2&t&&(Qs(3),va(su(4,3,su(5,5,"DIALOGS.ADD_TOKEN_INFO.INFO"))),Qs(5),Ta(" ",su(9,7,su(10,9,"DIALOGS.ADD_TOKEN_INFO.CANCEL"))," "),Qs(4),Ta(" ",su(13,11,su(14,13,"DIALOGS.ADD_TOKEN_INFO.ADD"))," "))},directives:[yE,Fz,wE,pA],pipes:[tE,GE],styles:[""]}),t})(),zq=(()=>{class t{transform(t,e){return"voRules"===t?"Vo rules":"groupRules"===t?"Group rules":t&&"never"!==t.toLowerCase()?hh(t.replace(" ","T"),"d.M.yyyy "+(e?"H:mm:ss":""),"en"):"never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"parseDate",type:t,pure:!0}),t})();const Rq=["toggle"];function xq(t,e){if(1&t&&(Do(0,"div"),No(1,"img",21),Po()),2&t){const t=Go();Qs(1),xo("src",t.imageSrc,ts)}}function Oq(t,e){1&t&&(Do(0,"app-alert",22),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"AUTHENTICATION.NO_TOKENS"))))}function Dq(t,e){1&t&&No(0,"mat-spinner",23)}function Pq(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"AUTHENTICATION.TYPE"))))}function Nq(t,e){1&t&&No(0,"img",28)}function Iq(t,e){1&t&&No(0,"img",29)}function Bq(t,e){if(1&t&&(Do(0,"td",25),Lo(1,Nq,1,0,"img",26),Lo(2,Iq,1,0,"img",27),Po()),2&t){const t=e.$implicit;Qs(1),xo("ngIf","WEBAUTHN"===t.type),Qs(1),xo("ngIf","TOTP"===t.type)}}function Fq(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"AUTHENTICATION.NAME"))))}function Hq(t,e){if(1&t&&(Do(0,"td",25),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.nickname)}}function qq(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"AUTHENTICATION.ADDED"))))}function jq(t,e){if(1&t&&(Do(0,"td",25),Aa(1),nu(2,"parseDate"),Po()),2&t){const t=e.$implicit;Qs(1),va(ru(2,1,t.added,!0))}}function Yq(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"AUTHENTICATION.USED"))))}function Wq(t,e){if(1&t&&(Do(0,"td",25),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.used)}}function Uq(t,e){1&t&&No(0,"th",24)}function Kq(t,e){1&t&&(Do(0,"td",25),Do(1,"button",30),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Po()),2&t&&(Qs(2),va(su(3,1,su(4,3,"AUTHENTICATION.REVOKE"))))}function Vq(t,e){1&t&&No(0,"tr",31)}function Xq(t,e){1&t&&No(0,"tr",32)}let Gq=(()=>{class t{constructor(t,e,i,n,s,r){this.dialog=t,this.attributesManagerService=e,this.store=i,this.translate=n,this.authService=s,this.mfaService=r,this.imageSrc="",this.tokens=[],this.displayedColumns=["type","nickname","added"],this.dataSource=new Mz,this.pageSize=5,n.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(t=>this.removeDialogDescription=t)}ngOnInit(){this.authService.manager.getUser().then(t=>{this.accessToken=t.access_token,this.idToken=t.id_token}),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.loadMFA(),this.loadImage()}onAddImg(){const t=TE();t.width="500px",t.data={theme:"user-theme",attribute:this.imgAtt},this.dialog.open(Cq,t).afterClosed().subscribe(t=>{t&&this.loadImage()})}reAuthenticate(){sessionStorage.setItem("mfa_route","/profile/settings/auth"),this.authService.manager=new Np.UserManager(this.getClientSettings()),this.authService.manager.signinRedirect()}onDeleteImg(){const t=TE();t.width="600px",t.data={doNotShowValues:!0,attribute:this.imgAtt,userId:this.store.getPerunPrincipal().userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(lH,t).afterClosed().subscribe(t=>{t&&this.loadImage()})}getClientSettings(){return{authority:this.store.get("oidc_client","oauth_authority"),client_id:this.store.get("oidc_client","oauth_client_id"),redirect_uri:this.store.get("oidc_client","oauth_redirect_uri"),post_logout_redirect_uri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),response_type:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),filterProtocolClaims:!0,loadUserInfo:this.store.get("oidc_client","oauth_load_user_info"),automaticSilentRenew:!0,silent_redirect_uri:this.store.get("oidc_client","oauth_silent_redirect_uri"),extraQueryParams:{max_age:0,acr_values:"https://refeds.org/profile/mfa"}}}ngAfterViewInit(){this.children.changes.subscribe(t=>{this.child=t.first,this.dataSource.paginator=this.child.paginator})}addTOTP(){const t=TE();t.width="600px",this.dialog.open(Lq,t)}addWebAuthn(){window.open("https://id.muni.cz/simplesaml/module.php/muni/register-webauthn.php","_blank")}loadImage(){const t=this.store.get("mfa","security_image_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe(e=>{e?(this.imgAtt=e,this.imageSrc=this.imgAtt.value):this.attributesManagerService.getAttributeDefinitionByName(t).subscribe(t=>{this.imgAtt=t})})}loadMFA(){this.loading=!0;const t=this.store.get("mfa","enforce_mfa_attribute"),e=this.store.get("mfa","tokens_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe(i=>{sessionStorage.getItem("mfa_route")?(sessionStorage.removeItem("mfa_route"),this.mfaService.enableMfa(!i||!i.value,this.idToken).subscribe(()=>{this.loadMFA()},()=>this.loadMFA())):i?(this.mfaAtt=i,this.toggle&&(this.mfaAtt.value&&this.toggle.toggle(),this.toggle.change.subscribe(()=>{this.reAuthenticate()})),this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,e).subscribe(t=>{t?t.value&&t.value.forEach(t=>{const e=JSON.parse(t);this.tokens.push({added:e.added,revoked:e.revoked,data:e.data,used:e.used,type:e.type.toUpperCase(),nickname:e.name})}):this.attributesManagerService.getAttributeDefinitionByName(e).subscribe(e=>{t=e}),this.dataSource=new Mz(this.tokens),this.loading=!1})):this.attributesManagerService.getAttributeDefinitionByName(t).subscribe(t=>{this.mfaAtt=t})})}}return t.\u0275fac=function(e){return new(e||t)(Ro(mE),Ro(wp),Ro(PE),Ro(ZC),Ro(NE),Ro(Eq))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-settings-authentication"]],viewQuery:function(t,e){if(1&t&&(vu(Rq,5),vu(OE,5)),2&t){let t;Au(t=ku())&&(e.toggle=t.first),Au(t=ku())&&(e.children=t)}},decls:48,vars:41,consts:[[1,"page-subtitle"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"m-1",3,"click"],["color","warn","mat-flat-button","",1,"m-1",3,"disabled","click"],[1,"page-subtitle","mt-5"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["alert_type","info",4,"ngIf"],[3,"hidden"],[1,"card","mt-2"],["class","ml-auto mr-auto",4,"ngIf"],[3,"dataLength","hideExport","pageSize"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","type"],["class","pl-3","mat-header-cell","",4,"matHeaderCellDef"],["class","truncate pl-3","mat-cell","",4,"matCellDef"],["matColumnDef","nickname"],["matColumnDef","added"],["matColumnDef","used"],["matColumnDef","revoke"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alt","",1,"img-size",3,"src"],["alert_type","info"],[1,"ml-auto","mr-auto"],["mat-header-cell","",1,"pl-3"],["mat-cell","",1,"truncate","pl-3"],["alt","","src","assets/img/webauthn-logo-black.png","style","width: 2rem; height: 2rem",4,"ngIf"],["alt","","src","assets/img/totp.svg","style","width: 2rem; height: 2rem",4,"ngIf"],["alt","","src","assets/img/webauthn-logo-black.png",2,"width","2rem","height","2rem"],["alt","","src","assets/img/totp.svg",2,"width","2rem","height","2rem"],["color","accent","mat-flat-button",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"p"),Aa(5),nu(6,"translate"),nu(7,"customTranslate"),Po(),Lo(8,xq,2,1,"div",1),Do(9,"button",2),Wo("click",function(){return e.onAddImg()}),Aa(10),nu(11,"translate"),nu(12,"customTranslate"),Po(),Do(13,"button",3),Wo("click",function(){return e.onDeleteImg()}),Aa(14),nu(15,"translate"),nu(16,"customTranslate"),Po(),Do(17,"h1",4),Aa(18),nu(19,"translate"),nu(20,"customTranslate"),Po(),Do(21,"button",5),Wo("click",function(){return e.addTOTP()}),Aa(22),nu(23,"translate"),nu(24,"customTranslate"),Po(),Lo(25,Oq,4,5,"app-alert",6),Do(26,"div",7),Do(27,"div",8),Lo(28,Dq,1,0,"mat-spinner",9),Do(29,"perun-web-apps-table-wrapper",10),Do(30,"table",11),Io(31,12),Lo(32,Pq,4,5,"th",13),Lo(33,Bq,3,2,"td",14),Bo(),Io(34,15),Lo(35,Fq,4,5,"th",13),Lo(36,Hq,2,1,"td",14),Bo(),Io(37,16),Lo(38,qq,4,5,"th",13),Lo(39,jq,3,4,"td",14),Bo(),Io(40,17),Lo(41,Yq,4,5,"th",13),Lo(42,Wq,2,1,"td",14),Bo(),Io(43,18),Lo(44,Uq,1,0,"th",13),Lo(45,Kq,5,5,"td",14),Bo(),Lo(46,Vq,1,0,"tr",19),Lo(47,Xq,1,0,"tr",20),Po(),Po(),Po(),Po()),2&t&&(Qs(1),va(su(2,17,su(3,19,"AUTHENTICATION.TITLE"))),Qs(4),va(su(6,21,su(7,23,"AUTHENTICATION.ANTI_PHISHING_INFO"))),Qs(3),xo("ngIf",e.imageSrc&&e.imageSrc.length),Qs(2),va(su(11,25,su(12,27,"AUTHENTICATION.NEW_IMG"))),Qs(3),xo("disabled",!e.imgAtt||!e.imgAtt.value),Qs(1),va(su(15,29,su(16,31,"AUTHENTICATION.DELETE_IMG"))),Qs(4),va(su(19,33,su(20,35,"AUTHENTICATION.MFA"))),Qs(4),va(su(23,37,su(24,39,"AUTHENTICATION.ADD_TOTP"))),Qs(3),xo("ngIf",!e.tokens.length),Qs(1),xo("hidden",!e.tokens.length),Qs(2),xo("ngIf",e.loading),Qs(1),xo("dataLength",e.dataSource.filteredData.length)("hideExport",!0)("pageSize",e.pageSize),Qs(1),xo("dataSource",e.dataSource),Qs(16),xo("matHeaderRowDef",e.displayedColumns),Qs(1),xo("matRowDefColumns",e.displayedColumns))},directives:[xh,pA,OE,lz,pz,dz,hz,mz,_z,Fz,rL,fz,gz,bz,yz],pipes:[tE,GE,zq],styles:[".img-size[_ngcontent-%COMP%]{width:100px;height:100px}"]}),t})(),$q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Xh,fA,PC,g_,dq,eE]]}),t})();const Jq=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"login",component:(()=>{class t{constructor(t){this.auth=t}startAuth(){this.auth.startAuthentication()}}return t.\u0275fac=function(e){return new(e||t)(Ro(NE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con","vo-theme"],[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(t,e){1&t&&(Do(0,"div",0),Do(1,"div",1),Do(2,"div",2),Do(3,"h4",3),Aa(4),nu(5,"translate"),Po(),Do(6,"button",4),Wo("click",function(){return e.startAuth()}),Aa(7),nu(8,"translate"),Do(9,"mat-icon"),Aa(10," login "),Po(),Po(),Po(),Po(),Po()),2&t&&(Qs(4),Ta(" ",su(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),Qs(3),Ta(" ",su(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[pA,DC],pipes:[tE],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),t})()},{path:"profile",component:iq,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:HP,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:kN,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:hI,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:KB,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:nF,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:eq,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"settings",component:sF,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:kF,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:vF,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:Gq,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:GF,data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"mailingLists",component:iH,data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:gH,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:wH,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:TH,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:LH,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:Aq,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let Qq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[g_.forRoot(Jq,{preloadingStrategy:a_,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})]]}),t})();class Zq{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}let tj=(()=>{class t{constructor(t,e){this.http=t,this.storeService=e}initializeColors(t,e){return new Promise(i=>{e.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),this.setEntityTheme(t.entity,e)}),i()})}setEntityTheme(t,e){const i=(n=e,[ej(tinycolor(n).lighten(52),"50"),ej(tinycolor(n).lighten(37),"100"),ej(tinycolor(n).lighten(26),"200"),ej(tinycolor(n).lighten(12),"300"),ej(tinycolor(n).lighten(6),"400"),ej(tinycolor(n),"500"),ej(tinycolor(n).darken(6),"600"),ej(tinycolor(n).darken(12),"700"),ej(tinycolor(n).darken(18),"800"),ej(tinycolor(n).darken(24),"900"),ej(tinycolor(n).lighten(50).saturate(30),"A100"),ej(tinycolor(n).lighten(30).saturate(30),"A200"),ej(tinycolor(n).lighten(10).saturate(15),"A400"),ej(tinycolor(n).lighten(5).saturate(5),"A700")]);var n;for(const s of i){const e=`--${t}-theme-primary-contrast-${s.name}`,i=s.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${t}-theme-primary-${s.name}`,`${s.red},${s.green},${s.blue}`),document.documentElement.style.setProperty(e,i)}}loadAppDefaultConfig(){return new Promise(t=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setDefaultConfig(e),t()})})}loadAppInstanceConfig(){return new Promise(t=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setInstanceConfig(e);const i=document.location.hostname;void 0!==e.brandings&&void 0!==e.brandings[i]&&this.storeService.setBanding(i),t()},()=>{console.log("instance config not detected"),t()})})}getNoCacheHeaders(){return new qd({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}}return t.\u0275fac=function(e){return new(e||t)(un(np),un(PE))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function ej(t,e){const i=tinycolor(t),n=i.toRgb();return{name:e,hex:i.toHexString(),darkContrast:i.isLight(),red:n.r,green:n.g,blue:n.b}}let ij=(()=>{class t{constructor(t,e,i,n,s){this.initAuthService=t,this.appConfigService=e,this.store=i,this.location=n,this.authzSevice=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"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.initAuthService.verifyAuth()).catch(t=>{throw console.error(t),this.location.go("/"),location.reload(),t}).then(t=>t?this.initAuthService.loadPrincipal():this.initAuthService.handleAuthStart())}setApiUrl(){return new Promise(t=>{this.authzSevice.configuration.basePath=this.store.get("api_url"),t()})}}return t.\u0275fac=function(e){return new(e||t)(un(BE),un(tj),un(PE),un(Wl),un(Mp))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let nj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[rR]]}),t})();new sc("12.0.0-beta.34");let sj=(()=>{class t{constructor(t,e){$h(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:uR,useValue:Object.assign(Object.assign({},cR),e)},{provide:hR,useValue:i,multi:!0},{provide:lR,useValue:!0}]:[{provide:uR,useValue:Object.assign(Object.assign({},cR),e)},{provide:hR,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(un(lR),un(Pu))},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[BF,XR,nj],BF,XR,nj]}),t})(),rj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[_M],_M]}),t})();const oj=new Ui("perun-api-service");let aj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})(),cj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[aj,KM,_M,sb],aj,_M]}),t})();const uj={provide:rp,useExisting:rt(()=>jE),multi:!0};function lj(t){return new Zq(t,"./assets/i18n/",".json")}function hj(t){const e={basePath:t.get("api_url")};return new yp(e)}const dj=t=>()=>t.initialize();let pj=(()=>{class t{constructor(t,e){this.customIconService=t,this.translate=e,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return t.\u0275fac=function(e){return new(e||t)(un(FE),un(ZC))},t.\u0275mod=Vt({type:t,bootstrap:[SO]}),t.\u0275inj=pt({providers:[FE,{provide:Lu,useFactory:dj,multi:!0,deps:[ij]},{provide:yp,useFactory:hj,deps:[PE]},XE,jE,uj,{provide:oj,useClass:WE}],imports:[[Od,uM,mp,eE.forRoot({loader:{provide:NC,useFactory:lj,deps:[np]}}),Qq,PC,Ex,Kx,g_,fA,sj,iR,dq,nq,II,RT,bS,ME,wz,_L,Jk,XO,$S,oL,eN,rj,Oz,VE,qN,KM,NS,cj,tB,$k,$q,iE,yC]]}),t})();(function(){if(ul)throw new Error("Cannot enable prod mode after platform setup.");cl=!1})(),Rd().bootstrapModule(pj).catch(t=>console.error(t))},2051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){o(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,r=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!r?function(t,r,o){var a=s.URL||s.webkitURL,c=document.createElement("a");c.download=r=r||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,r,o):n(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,s,r){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,r),s);else if(i(t))e(t,s,r);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout(function(){n(o)})}}:function(t,i,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&c||r)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location=t,o=null},l.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(t);o?o.location=d:location.href=d,o=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});s.saveAs=o.saveAs=o,t.exports=o})?i.apply(e,[]):i)||(t.exports=n)},9355:function(t,e,i){(t.exports=i(2021)).tz.load(i(4360))},2021:function(t,e,i){var n,s,r;!function(o,a){"use strict";t.exports?t.exports=a(i(9609)):(s=[i(9609)],void 0===(r="function"==typeof(n=a)?n.apply(e,s):n)||(t.exports=r))}(0,function(t){"use strict";void 0===t.version&&t.default&&(t=t.default);var e,i={},n={},s={},r={},o={};t&&"string"==typeof t.version||E("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var a=t.version.split("."),c=+a[0],u=+a[1];function l(t){return t>96?t-87:t>64?t-29:t-48}function h(t){var e=0,i=t.split("."),n=i[0],s=i[1]||"",r=1,o=0,a=1;for(45===t.charCodeAt(0)&&(e=1,a=-1);e= 2.6.0. You are using Moment.js "+t.version+". See momentjs.com"),g.prototype={_set:function(t){this.name=t.name,this.abbrs=t.abbrs,this.untils=t.untils,this.offsets=t.offsets,this.population=t.population},_index:function(t){var e,i=+t,n=this.untils;for(e=0;en&&L.moveInvalidForward&&(e=n),r3){var e=r[v(t)];if(e)return e;E("Moment Timezone found "+t+" from the Intl api, but did not have that data loaded.")}}catch(l){}var i,n,s,o=function(){var t,e,i,n=(new Date).getFullYear()-2,s=new _(new Date(n,0,1)),r=[s];for(i=1;i<48;i++)(e=new _(new Date(n,i,1))).offset!==s.offset&&(t=y(s,e),r.push(t),r.push(new _(new Date(t.at+6e4)))),s=e;for(i=0;i<4;i++)r.push(new _(new Date(n+i,0,1))),r.push(new _(new Date(n+i,6,1)));return r}(),a=o.length,c=A(o),u=[];for(n=0;n0?u[0].zone.name:void 0}()),e},L.names=function(){var t,e=[];for(t in r)r.hasOwnProperty(t)&&(i[t]||i[n[t]])&&r[t]&&e.push(r[t]);return e.sort()},L.Zone=g,L.unpack=f,L.unpackBase60=h,L.needsOffset=C,L.moveInvalidForward=!0,L.moveAmbiguousForward=!1,L.countries=function(){return Object.keys(s)},L.zonesForCountry=function(t,e){var i;if(i=(i=t).toUpperCase(),!(t=s[i]||null))return null;var n=t.zones.sort();return e?n.map(function(t){return{name:t,offset:k(t).utcOffset(new Date)}}):n};var z,R=t.fn;function x(t){return function(){return this._z?this._z.abbr(this):t.call(this)}}function O(t){return function(){return this._z=null,t.apply(this,arguments)}}t.tz=L,t.defaultZone=null,t.updateOffset=function(e,i){var n,s=t.defaultZone;if(void 0===e._z&&(s&&C(e)&&!e._isUTC&&(e._d=t.utc(e._a)._d,e.utc().add(s.parse(e),"minutes")),e._z=s),e._z)if(n=e._z.utcOffset(e),Math.abs(n)<16&&(n/=60),void 0!==e.utcOffset){var r=e._z;e.utcOffset(-n,i),e._z=r}else e.zone(n,i)},R.tz=function(e,i){if(e){if("string"!=typeof e)throw new Error("Time zone name must be a string, got "+e+" ["+typeof e+"]");return this._z=k(e),this._z?t.updateOffset(this,i):E("Moment Timezone has no data for "+e+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},R.zoneName=x(R.zoneName),R.zoneAbbr=x(R.zoneAbbr),R.utc=O(R.utc),R.local=O(R.local),R.utcOffset=(z=R.utcOffset,function(){return arguments.length>0&&(this._z=null),z.apply(this,arguments)}),t.tz.setDefault=function(e){return(c<2||2===c&&u<9)&&E("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+t.version+"."),t.defaultZone=e?k(e):null,t};var D=t.momentProperties;return"[object Array]"===Object.prototype.toString.call(D)?(D.push("_z"),D.push("_a")):D&&(D._z=null),t})},776:function(t,e,i){!function(t){"use strict";t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(t){return/^nm$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"vm":"VM":i?"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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},2758:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-dz",{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:"\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:"\u0623\u062d_\u0625\u062b_\u062b\u0644\u0627_\u0623\u0631_\u062e\u0645_\u062c\u0645_\u0633\u0628".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:4}})}(i(9609))},4980:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(i(9609))},9602:function(t,e,i){!function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={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(t){return function(e,s,r,o){var a=i(e),c=n[t][i(e)];return 2===a&&(c=c[s?0:1]),c.replace(/%d/i,e)}},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"];t.defineLocale("ar-ly",{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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},2500:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\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:6,doy:12}})}(i(9609))},6909:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};t.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(i(9609))},2735:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(i(9609))},7634:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%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"]},r=function(t){return function(e,i,r,o){var a=n(e),c=s[t][n(e)];return 2===a&&(c=c[i?0:1]),c.replace(/%d/i,e)}},o=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];t.defineLocale("ar",{months:o,monthsShort:o,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},7798:function(t,e,i){!function(t){"use strict";var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"birne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(t){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(t)},meridiem:function(t,e,i){return t<4?"gec\u0259":t<12?"s\u0259h\u0259r":t<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(t){if(0===t)return t+"-\u0131nc\u0131";var i=t%10;return t+(e[i]||e[t%100-i]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},9949:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===i?e?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}t.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:e,mm:e,h:e,hh:e,d:"\u0434\u0437\u0435\u043d\u044c",dd:e,M:"\u043c\u0435\u0441\u044f\u0446",MM:e,y:"\u0433\u043e\u0434",yy:e},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u044b":t<12?"\u0440\u0430\u043d\u0456\u0446\u044b":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-\u044b":t+"-\u0456";case"D":return t+"-\u0433\u0430";default:return t}},week:{dow:1,doy:7}})}(i(9609))},4590:function(t,e,i){!function(t){"use strict";t.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0440_\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"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043c\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\u043d\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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(9609))},5938:function(t,e,i){!function(t){"use strict";t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(i(9609))},595:function(t,e,i){!function(t){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},i={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};t.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09c0_\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_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2_\u0986\u0997_\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_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\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(t){return t.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u09b0\u09be\u09a4"===e&&t>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===e&&t<5||"\u09ac\u09bf\u0995\u09be\u09b2"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u09b0\u09be\u09a4":t<10?"\u09b8\u0995\u09be\u09b2":t<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":t<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(i(9609))},4756:function(t,e,i){!function(t){"use strict";var e={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},i={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};t.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\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("_"),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\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("_"),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(t){return t.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e){return 12===t&&(t=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===e&&t>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===e&&t<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":t<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":t<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":t<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(i(9609))},7277:function(t,e,i){!function(t){"use strict";function e(t,e,i){return t+" "+function(t,e){return 2===e?function(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}(t):t}({mm:"munutenn",MM:"miz",dd:"devezh"}[i],t)}function i(t){return t>9?i(t%10):t}t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:function(t){switch(i(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(t){return t+(1===t?"a\xf1":"vet")},week:{dow:1,doy:4}})}(i(9609))},4166:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},3943:function(t,e,i){!function(t){"use strict";t.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(t,e){var i=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"\xe8";return"w"!==e&&"W"!==e||(i="a"),t+i},week:{dow:1,doy:4}})}(i(9609))},3474:function(t,e,i){!function(t){"use strict";var e="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),i="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),n=[/^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 r(t){return t>1&&t<5&&1!=~~(t/10)}function o(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return e||n?s+(r(t)?"sekundy":"sekund"):s+"sekundami";case"m":return e?"minuta":n?"minutu":"minutou";case"mm":return e||n?s+(r(t)?"minuty":"minut"):s+"minutami";case"h":return e?"hodina":n?"hodinu":"hodinou";case"hh":return e||n?s+(r(t)?"hodiny":"hodin"):s+"hodinami";case"d":return e||n?"den":"dnem";case"dd":return e||n?s+(r(t)?"dny":"dn\xed"):s+"dny";case"M":return e||n?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return e||n?s+(r(t)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):s+"m\u011bs\xedci";case"y":return e||n?"rok":"rokem";case"yy":return e||n?s+(r(t)?"roky":"let"):s+"lety"}}t.defineLocale("cs",{months:e,monthsShort:i,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:n,longMonthsParse:n,shortMonthsParse:n,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:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},2218:function(t,e,i){!function(t){"use strict";t.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(t){return t+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(t)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(t)?"\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}})}(i(9609))},1061:function(t,e,i){!function(t){"use strict";t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(t){var e="";return t>20?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}})}(i(9609))},2743:function(t,e,i){!function(t){"use strict";t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8580:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},3264:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1899:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8784:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];t.defineLocale("dv",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,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(t){return"\u0789\u078a"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(i(9609))},4654:function(t,e,i){!function(t){"use strict";t.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(t,e,i){return t>11?i?"\u03bc\u03bc":"\u039c\u039c":i?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(t){return"\u03bc"===(t+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,e){var i,n=this._calendarEl[t],s=e&&e.hours();return((i=n)instanceof Function||"[object Function]"===Object.prototype.toString.call(i))&&(n=n.apply(e)),n.replace("{}",s%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}})}(i(9609))},4047:function(t,e,i){!function(t){"use strict";t.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},6277:function(t,e,i){!function(t){"use strict";t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},6896:function(t,e,i){!function(t){"use strict";t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i(9609))},1609:function(t,e,i){!function(t){"use strict";t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},4557:function(t,e,i){!function(t){"use strict";t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},5836:function(t,e,i){!function(t){"use strict";t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i(9609))},3586:function(t,e,i){!function(t){"use strict";t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},2777:function(t,e,i){!function(t){"use strict";t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_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:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,i){return t>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(i(9609))},3128:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},3256:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},3357:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},2654:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[t+" minuti",t+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[t+" tunni",t+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[t+" kuu",t+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[t+" aasta",t+" aastat"]};return e?s[i][2]?s[i][2]:s[i][1]:n?s[i][0]:s[i][1]}t.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d p\xe4eva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},7287:function(t,e,i){!function(t){"use strict";t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},3875:function(t,e,i){!function(t){"use strict";var e={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},i={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};t.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(t){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(t)},meridiem:function(t,e,i){return t<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:"\u062b\u0627\u0646\u06cc\u0647 d%",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(t){return t.replace(/[\u06f0-\u06f9]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(i(9609))},3431:function(t,e,i){!function(t){"use strict";var e="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),i=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",e[7],e[8],e[9]];function n(t,n,s,r){var o="";switch(s){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":return r?"sekunnin":"sekuntia";case"m":return r?"minuutin":"minuutti";case"mm":o=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":o=r?"tunnin":"tuntia";break;case"d":return r?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":o=r?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return r?"kuukauden":"kuukausi";case"MM":o=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":o=r?"vuoden":"vuotta"}return function(t,n){return t<10?n?i[t]:e[t]:t}(t,r)+" "+o}t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1781:function(t,e,i){!function(t){"use strict";t.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1539:function(t,e,i){!function(t){"use strict";t.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})}(i(9609))},9847:function(t,e,i){!function(t){"use strict";t.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i(9609))},1717:function(t,e,i){!function(t){"use strict";t.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),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|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i(9609))},2250:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},7665:function(t,e,i){!function(t){"use strict";t.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","M\xe9itheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deaireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean\xe1","Feab","M\xe1rt","Aibr","Beal","M\xe9it","I\xfail","L\xfana","Me\xe1n","Deai","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 Satharn"],weekdaysShort:["Dom","Lua","M\xe1i","C\xe9a","D\xe9a","hAo","Sat"],weekdaysMin:["Do","Lu","M\xe1","Ce","D\xe9","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:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 aig] 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\xed",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(9609))},5214:function(t,e,i){!function(t){"use strict";t.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(9609))},6154:function(t,e,i){!function(t){"use strict";t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(t){return 0===t.indexOf("un")?"n"+t:"en "+t},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}})}(i(9609))},8518:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["thodde secondanim","thodde second"],ss:[t+" secondanim",t+" second"],m:["eka mintan","ek minute"],mm:[t+" mintanim",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voranim",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disanim",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineanim",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsanim",t+" vorsam"]};return e?s[i][0]:s[i][1]}t.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_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[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",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}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokalli"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"rati":t<12?"sokalli":t<16?"donparam":t<20?"sanje":"rati"}})}(i(9609))},9221:function(t,e,i){!function(t){"use strict";var e={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},i={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};t.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ac7\u0ab9\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(t){return t.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0ab0\u0abe\u0aa4"===e?t<4?t:t+12:"\u0ab8\u0ab5\u0abe\u0ab0"===e?t:"\u0aac\u0aaa\u0acb\u0ab0"===e?t>=10?t:t+12:"\u0ab8\u0abe\u0a82\u0a9c"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0ab0\u0abe\u0aa4":t<10?"\u0ab8\u0ab5\u0abe\u0ab0":t<17?"\u0aac\u0aaa\u0acb\u0ab0":t<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(i(9609))},4743:function(t,e,i){!function(t){"use strict";t.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(t){return 2===t?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":t+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(t){return 2===t?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":t+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(t){return 2===t?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":t+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(t){return 2===t?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":t%10==0&&10!==t?t+" \u05e9\u05e0\u05d4":t+" \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(t){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(t)},meridiem:function(t,e,i){return t<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":t<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":t<12?i?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":t<18?i?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(i(9609))},7339:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.defineLocale("hi",{months:"\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("_"),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("_"),monthsParseExact:!0,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"},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(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924"===e?t<4?t:t+12:"\u0938\u0941\u092c\u0939"===e?t:"\u0926\u094b\u092a\u0939\u0930"===e?t>=10?t:t+12:"\u0936\u093e\u092e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924":t<10?"\u0938\u0941\u092c\u0939":t<17?"\u0926\u094b\u092a\u0939\u0930":t<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(i(9609))},3224:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},856:function(t,e,i){!function(t){"use strict";var e="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function i(t,e,i,n){var s=t;switch(i){case"s":return n||e?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return s+(n||e)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(n||e?" perc":" perce");case"mm":return s+(n||e?" perc":" perce");case"h":return"egy"+(n||e?" \xf3ra":" \xf3r\xe1ja");case"hh":return s+(n||e?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(n||e?" nap":" napja");case"dd":return s+(n||e?" nap":" napja");case"M":return"egy"+(n||e?" h\xf3nap":" h\xf3napja");case"MM":return s+(n||e?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(n||e?" \xe9v":" \xe9ve");case"yy":return s+(n||e?" \xe9v":" \xe9ve")}return""}function n(t){return(t?"":"[m\xfalt] ")+"["+e[this.day()]+"] LT[-kor]"}t.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),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(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,i){return t<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%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:4}})}(i(9609))},6855:function(t,e,i){!function(t){"use strict";t.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(t){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(t)},meridiem:function(t){return t<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":t<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":t<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(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-\u056b\u0576":t+"-\u0580\u0564";default:return t}},week:{dow:1,doy:7}})}(i(9609))},2190:function(t,e,i){!function(t){"use strict";t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"siang":t<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:1,doy:7}})}(i(9609))},3887:function(t,e,i){!function(t){"use strict";function e(t){return t%100==11||t%10!=1}function i(t,i,n,s){var r=t+" ";switch(n){case"s":return i||s?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return e(t)?r+(i||s?"sek\xfandur":"sek\xfandum"):r+"sek\xfanda";case"m":return i?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return e(t)?r+(i||s?"m\xedn\xfatur":"m\xedn\xfatum"):i?r+"m\xedn\xfata":r+"m\xedn\xfatu";case"hh":return e(t)?r+(i||s?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return i?"dagur":s?"dag":"degi";case"dd":return e(t)?i?r+"dagar":r+(s?"daga":"d\xf6gum"):i?r+"dagur":r+(s?"dag":"degi");case"M":return i?"m\xe1nu\xf0ur":s?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return e(t)?i?r+"m\xe1nu\xf0ir":r+(s?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):i?r+"m\xe1nu\xf0ur":r+(s?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return i||s?"\xe1r":"\xe1ri";case"yy":return e(t)?r+(i||s?"\xe1r":"\xe1rum"):r+(i||s?"\xe1r":"\xe1ri")}}t.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},5890:function(t,e,i){!function(t){"use strict";t.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i(9609))},9270:function(t,e,i){!function(t){"use strict";t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i(9609))},6595:function(t,e,i){!function(t){"use strict";t.defineLocale("ja",{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:"\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(t){return"\u5348\u5f8c"===t},meridiem:function(t,e,i){return t<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(t){return t.week()=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"enjing":t<15?"siyang":t<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}})}(i(9609))},7477:function(t,e,i){!function(t){"use strict";t.defineLocale("ka",{months:{standalone:"\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("_"),format:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".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:"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:"[\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(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(t)?t.replace(/\u10d8$/,"\u10e8\u10d8"):t+"\u10e8\u10d8"},past:function(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(t)?t.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(t)?t.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):void 0},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(t){return 0===t?t:1===t?t+"-\u10da\u10d8":t<20||t<=100&&t%20==0||t%100==0?"\u10db\u10d4-"+t:t+"-\u10d4"},week:{dow:1,doy:7}})}(i(9609))},3978:function(t,e,i){!function(t){"use strict";var e={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};t.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},9205:function(t,e,i){!function(t){"use strict";var e={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},i={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};t.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(t){return"\u179b\u17d2\u1784\u17b6\u1785"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(i(9609))},25:function(t,e,i){!function(t){"use strict";var e={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},i={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};t.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(t){return t.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e){return 12===t&&(t=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===e?t<4?t:t+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===e?t:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===e?t>=10?t:t+12:"\u0cb8\u0c82\u0c9c\u0cc6"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":t<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":t<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":t<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(t){return t+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(i(9609))},427:function(t,e,i){!function(t){"use strict";t.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\uc77c";case"M":return t+"\uc6d4";case"w":case"W":return t+"\uc8fc";default:return t}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(t){return"\uc624\ud6c4"===t},meridiem:function(t,e,i){return t<12?"\uc624\uc804":"\uc624\ud6c4"}})}(i(9609))},9089:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];t.defineLocale("ku",{months:n,monthsShort:n,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(t){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(t)},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},9314:function(t,e,i){!function(t){"use strict";var e={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};t.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},3136:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={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 e?s[i][0]:s[i][1]}function i(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return i(0===e?t/10:e)}if(t<1e4){for(;t>=10;)t/=10;return i(t)}return i(t/=1e3)}t.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(t){return i(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t},past:function(t){return i(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d M\xe9int",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},9115:function(t,e,i){!function(t){"use strict";t.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(t){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===t},meridiem:function(t,e,i){return t<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(t){return"\u0e97\u0eb5\u0ec8"+t}})}(i(9609))},7087:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i,n){return e?s(i)[0]:n?s(i)[1]:s(i)[2]}function n(t){return t%10==0||t>10&&t<20}function s(t){return e[t].split("_")}function r(t,e,r,o){var a=t+" ";return 1===t?a+i(0,e,r[0],o):e?a+(n(t)?s(r)[1]:s(r)[0]):o?a+s(r)[1]:a+(n(t)?s(r)[1]:s(r)[2])}t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function(t,e,i,n){return e?"kelios sekund\u0117s":n?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})}(i(9609))},5683:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i){return i?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function n(t,n,s){return t+" "+i(e[s],t,n)}function s(t,n,s){return i(e[s],t,n)}t.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function(t,e){return e?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:n,m:s,mm:n,h:s,hh:n,d:s,dd:n,M:s,MM:n,y:s,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},9454:function(t,e,i){!function(t){"use strict";var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},5507:function(t,e,i){!function(t){"use strict";t.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(9609))},8466:function(t,e,i){!function(t){"use strict";t.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u043e\u0441\u043b\u0435 %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:"\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",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(9609))},2933:function(t,e,i){!function(t){"use strict";t.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===e&&t>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===e||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":t<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":t<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":t<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(i(9609))},9477:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){switch(i){case"s":return e?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return t+(e?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return t+(e?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return t+(e?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return t+(e?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return t+(e?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return t+(e?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return t}}t.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(t){return"\u04ae\u0425"===t},meridiem:function(t,e,i){return t<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s: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} \u04e9\u0434\u04e9\u0440/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" \u04e9\u0434\u04e9\u0440";default:return t}}})}(i(9609))},3597:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function n(t,e,i,n){var s="";if(e)switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":s="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":s="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":s="%d \u0924\u093e\u0938";break;case"d":s="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":s="%d \u0926\u093f\u0935\u0938";break;case"M":s="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":s="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u0947"}else switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":s="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":s="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":s="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":s="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":s="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":s="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":s="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return s.replace(/%d/i,t)}t.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===e?t<4?t:t+12:"\u0938\u0915\u093e\u0933\u0940"===e?t:"\u0926\u0941\u092a\u093e\u0930\u0940"===e?t>=10?t:t+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924\u094d\u0930\u0940":t<10?"\u0938\u0915\u093e\u0933\u0940":t<17?"\u0926\u0941\u092a\u093e\u0930\u0940":t<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(i(9609))},9965:function(t,e,i){!function(t){"use strict";t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i(9609))},5529:function(t,e,i){!function(t){"use strict";t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i(9609))},259:function(t,e,i){!function(t){"use strict";t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(9609))},8061:function(t,e,i){!function(t){"use strict";var e={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},i={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};t.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(t){return t.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(i(9609))},2618:function(t,e,i){!function(t){"use strict";t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_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",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}})}(i(9609))},8452:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u093f"===e?t<4?t:t+12:"\u092c\u093f\u0939\u093e\u0928"===e?t:"\u0926\u093f\u0909\u0901\u0938\u094b"===e?t>=10?t:t+12:"\u0938\u093e\u0901\u091d"===e?t+12:void 0},meridiem:function(t,e,i){return t<3?"\u0930\u093e\u0924\u093f":t<12?"\u092c\u093f\u0939\u093e\u0928":t<16?"\u0926\u093f\u0909\u0901\u0938\u094b":t<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}})}(i(9609))},413:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],s=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},1885:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],s=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},5107:function(t,e,i){!function(t){"use strict";t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_m\xe5n_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_m\xe5_ty_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 [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",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}})}(i(9609))},702:function(t,e,i){!function(t){"use strict";var e={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},i={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};t.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(t){return t.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0a30\u0a3e\u0a24"===e?t<4?t:t+12:"\u0a38\u0a35\u0a47\u0a30"===e?t:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===e?t>=10?t:t+12:"\u0a38\u0a3c\u0a3e\u0a2e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0a30\u0a3e\u0a24":t<10?"\u0a38\u0a35\u0a47\u0a30":t<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":t<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(i(9609))},1711:function(t,e,i){!function(t){"use strict";var e="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function n(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function s(t,e,i){var s=t+" ";switch(i){case"ss":return s+(n(t)?"sekundy":"sekund");case"m":return e?"minuta":"minut\u0119";case"mm":return s+(n(t)?"minuty":"minut");case"h":return e?"godzina":"godzin\u0119";case"hh":return s+(n(t)?"godziny":"godzin");case"MM":return s+(n(t)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return s+(n(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,n){return t?""===n?"("+i[t.month()]+"|"+e[t.month()]+")":/D MMMM/.test(n)?i[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),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:s,m:s,mm:s,h:s,hh:s,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8238:function(t,e,i){!function(t){"use strict";t.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba"})}(i(9609))},594:function(t,e,i){!function(t){"use strict";t.defineLocale("pt",{months:"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",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}})}(i(9609))},4681:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=" ";return(t%100>=20||t>=100&&t%100==0)&&(n=" de "),t+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._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:e,m:"un minut",mm:e,h:"o or\u0103",hh:e,d:"o zi",dd:e,M:"o lun\u0103",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(i(9609))},6201:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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",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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}var i=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];t.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?\] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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(t){if(t.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(t){if(t.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,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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0438":t<12?"\u0443\u0442\u0440\u0430":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-\u0439";case"D":return t+"-\u0433\u043e";case"w":case"W":return t+"-\u044f";default:return t}},week:{dow:1,doy:4}})}(i(9609))},2912:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];t.defineLocale("sd",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(9609))},6002:function(t,e,i){!function(t){"use strict";t.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},7942:function(t,e,i){!function(t){"use strict";t.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(t){return t+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(t){return"\u0db4.\u0dc0."===t||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===t},meridiem:function(t,e,i){return t>11?i?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":i?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(i(9609))},5577:function(t,e,i){!function(t){"use strict";var e="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),i="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function n(t){return t>1&&t<5}function s(t,e,i,s){var r=t+" ";switch(i){case"s":return e||s?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return e||s?r+(n(t)?"sekundy":"sek\xfand"):r+"sekundami";case"m":return e?"min\xfata":s?"min\xfatu":"min\xfatou";case"mm":return e||s?r+(n(t)?"min\xfaty":"min\xfat"):r+"min\xfatami";case"h":return e?"hodina":s?"hodinu":"hodinou";case"hh":return e||s?r+(n(t)?"hodiny":"hod\xedn"):r+"hodinami";case"d":return e||s?"de\u0148":"d\u0148om";case"dd":return e||s?r+(n(t)?"dni":"dn\xed"):r+"d\u0148ami";case"M":return e||s?"mesiac":"mesiacom";case"MM":return e||s?r+(n(t)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return e||s?"rok":"rokom";case"yy":return e||s?r+(n(t)?"roky":"rokov"):r+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:i,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:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %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}})}(i(9609))},1775:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"nekaj sekund":"nekaj sekundami";case"ss":return s+(1===t?e?"sekundo":"sekundi":2===t?e||n?"sekundi":"sekundah":t<5?e||n?"sekunde":"sekundah":"sekund");case"m":return e?"ena minuta":"eno minuto";case"mm":return s+(1===t?e?"minuta":"minuto":2===t?e||n?"minuti":"minutama":t<5?e||n?"minute":"minutami":e||n?"minut":"minutami");case"h":return e?"ena ura":"eno uro";case"hh":return s+(1===t?e?"ura":"uro":2===t?e||n?"uri":"urama":t<5?e||n?"ure":"urami":e||n?"ur":"urami");case"d":return e||n?"en dan":"enim dnem";case"dd":return s+(1===t?e||n?"dan":"dnem":2===t?e||n?"dni":"dnevoma":e||n?"dni":"dnevi");case"M":return e||n?"en mesec":"enim mesecem";case"MM":return s+(1===t?e||n?"mesec":"mesecem":2===t?e||n?"meseca":"mesecema":t<5?e||n?"mesece":"meseci":e||n?"mesecev":"meseci");case"y":return e||n?"eno leto":"enim letom";case"yy":return s+(1===t?e||n?"leto":"letom":2===t?e||n?"leti":"letoma":t<5?e||n?"leta":"leti":e||n?"let":"leti")}}t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s: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:7}})}(i(9609))},6823:function(t,e,i){!function(t){"use strict";t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(t){return"M"===t.charAt(0)},meridiem:function(t,e,i){return t<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}})}(i(9609))},3848:function(t,e,i){!function(t){"use strict";var e={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\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\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"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"\u0434\u0430\u043d",dd:e.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:e.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},9038:function(t,e,i){!function(t){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"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] [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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},6173:function(t,e,i){!function(t){"use strict";t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(t,e,i){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(i(9609))},5788:function(t,e,i){!function(t){"use strict";t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"e":1===e||2===e?"a":"e")},week:{dow:1,doy:4}})}(i(9609))},6882:function(t,e,i){!function(t){"use strict";t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm: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:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(i(9609))},2678:function(t,e,i){!function(t){"use strict";var e={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},i={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};t.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(t){return t+"\u0bb5\u0ba4\u0bc1"},preparse:function(t){return t.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e,i){return t<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":t<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":t<10?" \u0b95\u0bbe\u0bb2\u0bc8":t<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":t<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":t<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(t,e){return 12===t&&(t=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===e?t<2?t:t+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===e||"\u0b95\u0bbe\u0bb2\u0bc8"===e||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})}(i(9609))},2797:function(t,e,i){!function(t){"use strict";t.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===e?t<4?t:t+12:"\u0c09\u0c26\u0c2f\u0c02"===e?t:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===e?t>=10?t:t+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":t<10?"\u0c09\u0c26\u0c2f\u0c02":t<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":t<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(i(9609))},2447:function(t,e,i){!function(t){"use strict";t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},1335:function(t,e,i){!function(t){"use strict";var e={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};t.defineLocale("tg",{months:"\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:"[\u041f\u0430\u0433\u043e\u04b3 \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0448\u0430\u0431"===e?t<4?t:t+12:"\u0441\u0443\u0431\u04b3"===e?t:"\u0440\u04ef\u0437"===e?t>=11?t:t+12:"\u0431\u0435\u0433\u043e\u04b3"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0448\u0430\u0431":t<11?"\u0441\u0443\u0431\u04b3":t<16?"\u0440\u04ef\u0437":t<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},8667:function(t,e,i){!function(t){"use strict";t.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(t){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===t},meridiem:function(t,e,i){return t<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",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(i(9609))},9914:function(t,e,i){!function(t){"use strict";t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(i(9609))},1389:function(t,e,i){!function(t){"use strict";var e="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function i(t,i,n,s){var r=function(t){var i=Math.floor(t%1e3/100),n=Math.floor(t%100/10),s=t%10,r="";return i>0&&(r+=e[i]+"vatlh"),n>0&&(r+=(""!==r?" ":"")+e[n]+"maH"),s>0&&(r+=(""!==r?" ":"")+e[s]),""===r?"pagh":r}(t);switch(n){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}t.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"},past:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu\u2019":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"},s:"puS lup",ss:i,m:"wa\u2019 tup",mm:i,h:"wa\u2019 rep",hh:i,d:"wa\u2019 jaj",dd:i,M:"wa\u2019 jar",MM:i,y:"wa\u2019 DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},3578:function(t,e,i){!function(t){"use strict";var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};t.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".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 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",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(t,i){switch(i){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'\u0131nc\u0131";var n=t%10;return t+(e[n]||e[t%100-n]||e[t>=100?100:null])}},week:{dow:1,doy:7}})}(i(9609))},6969:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[t+" m\xeduts",t+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[t+" \xfeoras",t+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return n||e?s[i][0]:s[i][1]}t.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,i){return t>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s: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}})}(i(9609))},690:function(t,e,i){!function(t){"use strict";t.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(i(9609))},6509:function(t,e,i){!function(t){"use strict";t.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(i(9609))},55:function(t,e,i){!function(t){"use strict";t.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===e||"\u0633\u06d5\u06be\u06d5\u0631"===e||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===e?t:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===e||"\u0643\u06d5\u0686"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":n<900?"\u0633\u06d5\u06be\u06d5\u0631":n<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":n<1230?"\u0686\u06c8\u0634":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return t+"-\u06be\u06d5\u067e\u062a\u06d5";default:return t}},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(i(9609))},2452:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===i?e?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}function i(t){return function(){return t+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}t.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function(t,e){var i={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===t?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):t?i[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(e)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:i.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:i("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:i("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:i("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:i("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return i("[\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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0456":t<12?"\u0440\u0430\u043d\u043a\u0443":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-\u0439";case"D":return t+"-\u0433\u043e";default:return t}},week:{dow:1,doy:7}})}(i(9609))},1151:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];t.defineLocale("ur",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(9609))},6547:function(t,e,i){!function(t){"use strict";t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(i(9609))},1555:function(t,e,i){!function(t){"use strict";t.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(i(9609))},6541:function(t,e,i){!function(t){"use strict";t.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".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(t){return/^ch$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"sa":"SA":i?"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 r\u1ed3i 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",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(i(9609))},2401:function(t,e,i){!function(t){"use strict";t.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},2341:function(t,e,i){!function(t){"use strict";t.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(i(9609))},619:function(t,e,i){!function(t){"use strict";t.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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|\u5468)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u5468";default:return t}},relativeTime:{future:"%s\u5185",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",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(i(9609))},7058:function(t,e,i){!function(t){"use strict";t.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i(9609))},2782:function(t,e,i){!function(t){"use strict";t.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i(9609))},9609:function(t,e,i){(t=i.nmd(t)).exports=function(){"use strict";var e,n;function s(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var i,n=[];for(i=0;i>>0,n=0;n0)for(i=0;i<_.length;i++)a(s=e[n=_[i]])||(t[n]=s);return t}var y=!1;function w(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,s.updateOffset(this),y=!1)}function M(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function A(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function v(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=A(e)),i}function T(t,e,i){var n,s=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),o=0;for(n=0;n=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},Y={};function W(t,e,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),t&&(Y[t]=s),e&&(Y[e[0]]=function(){return F(s.apply(this,arguments),e[1],e[2])}),i&&(Y[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function U(t,e){return t.isValid()?(e=K(e,t.localeData()),j[e]=j[e]||function(t){var e,i,n,s=t.match(H);for(e=0,i=s.length;e=0&&q.test(t);)t=t.replace(q,n),q.lastIndex=0,i-=1;return t}var V=/\d/,X=/\d\d/,G=/\d{3}/,$=/\d{4}/,J=/[+-]?\d{6}/,Q=/\d\d?/,Z=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,it=/\d{1,4}/,nt=/[+-]?\d{1,6}/,st=/\d+/,rt=/[+-]?\d+/,ot=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,ct=/[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,ut={};function lt(t,e,i){ut[t]=z(e)?e:function(t,n){return t&&i?i:e}}function ht(t,e){return h(ut,t)?ut[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,s){return e||i||n||s})))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pt={};function ft(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),c(e)&&(n=function(t,i){i[e]=v(t)}),i=0;i68?1900:2e3)};var yt,wt=Mt("FullYear",!0);function Mt(t,e){return function(i){return null!=i?(vt(this,t,i),s.updateOffset(this,e),this):At(this,t)}}function At(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function vt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&bt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Tt(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function Tt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?bt(t)?29:28:31-i%7%2}yt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e=0?(a=new Date(t+400,e,i,n,s,r,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,s,r,o),a}function Pt(t){var e;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Nt(t,e,i){var n=7+e-i;return-(7+Pt(t,0,n).getUTCDay()-e)%7+n-1}function It(t,e,i,n,s){var r,o,a=1+7*(e-1)+(7+i-n)%7+Nt(t,n,s);return a<=0?o=_t(r=t-1)+a:a>_t(t)?(r=t+1,o=a-_t(t)):(r=t,o=a),{year:r,dayOfYear:o}}function Bt(t,e,i){var n,s,r=Nt(t.year(),e,i),o=Math.floor((t.dayOfYear()-r-1)/7)+1;return o<1?n=o+Ft(s=t.year()-1,e,i):o>Ft(t.year(),e,i)?(n=o-Ft(t.year(),e,i),s=t.year()+1):(s=t.year(),n=o),{week:n,year:s}}function Ft(t,e,i){var n=Nt(t,e,i),s=Nt(t+1,e,i);return(_t(t)-n+s)/7}function Ht(t,e){return t.slice(e,7).concat(t.slice(0,e))}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),B("week",5),B("isoWeek",5),lt("w",Q),lt("ww",Q,X),lt("W",Q),lt("WW",Q,X),gt(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=v(t)}),W("d",0,"do","day"),W("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),W("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),W("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),lt("d",Q),lt("e",Q),lt("E",Q),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),gt(["dd","ddd","dddd"],function(t,e,i,n){var s=i._locale.weekdaysParse(t,n,i._strict);null!=s?e.d=s:f(i).invalidWeekday=t}),gt(["d","e","E"],function(t,e,i,n){e[n]=v(t)});var qt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Yt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Wt(t,e,i){var n,s,r,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=p([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(s=yt.call(this._weekdaysParse,o))?s:null:"ddd"===e?-1!==(s=yt.call(this._shortWeekdaysParse,o))?s:null:-1!==(s=yt.call(this._minWeekdaysParse,o))?s:null:"dddd"===e?-1!==(s=yt.call(this._weekdaysParse,o))||-1!==(s=yt.call(this._shortWeekdaysParse,o))||-1!==(s=yt.call(this._minWeekdaysParse,o))?s:null:"ddd"===e?-1!==(s=yt.call(this._shortWeekdaysParse,o))||-1!==(s=yt.call(this._weekdaysParse,o))||-1!==(s=yt.call(this._minWeekdaysParse,o))?s:null:-1!==(s=yt.call(this._minWeekdaysParse,o))||-1!==(s=yt.call(this._weekdaysParse,o))||-1!==(s=yt.call(this._shortWeekdaysParse,o))?s:null}var Ut=ct,Kt=ct,Vt=ct;function Xt(){function t(t,e){return e.length-t.length}var e,i,n,s,r,o=[],a=[],c=[],u=[];for(e=0;e<7;e++)i=p([2e3,1]).day(e),n=this.weekdaysMin(i,""),s=this.weekdaysShort(i,""),r=this.weekdays(i,""),o.push(n),a.push(s),c.push(r),u.push(n),u.push(s),u.push(r);for(o.sort(t),a.sort(t),c.sort(t),u.sort(t),e=0;e<7;e++)a[e]=dt(a[e]),c[e]=dt(c[e]),u[e]=dt(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Gt(){return this.hours()%12||12}function $t(t,e){W(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Jt(t,e){return e._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Gt),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+Gt.apply(this)+F(this.minutes(),2)}),W("hmmss",0,0,function(){return""+Gt.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),$t("a",!0),$t("A",!1),D("hour","h"),B("hour",13),lt("a",Jt),lt("A",Jt),lt("H",Q),lt("h",Q),lt("k",Q),lt("HH",Q,X),lt("hh",Q,X),lt("kk",Q,X),lt("hmm",Z),lt("hmmss",tt),lt("Hmm",Z),lt("Hmmss",tt),ft(["H","HH"],3),ft(["k","kk"],function(t,e,i){var n=v(t);e[3]=24===n?0:n}),ft(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),ft(["h","hh"],function(t,e,i){e[3]=v(t),f(i).bigHour=!0}),ft("hmm",function(t,e,i){var n=t.length-2;e[3]=v(t.substr(0,n)),e[4]=v(t.substr(n)),f(i).bigHour=!0}),ft("hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=v(t.substr(0,n)),e[4]=v(t.substr(n,2)),e[5]=v(t.substr(s)),f(i).bigHour=!0}),ft("Hmm",function(t,e,i){var n=t.length-2;e[3]=v(t.substr(0,n)),e[4]=v(t.substr(n))}),ft("Hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=v(t.substr(0,n)),e[4]=v(t.substr(n,2)),e[5]=v(t.substr(s))});var Qt,Zt=Mt("Hours",!0),te={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:St,monthsShort:Ct,week:{dow:0,doy:6},weekdays:qt,weekdaysMin:Yt,weekdaysShort:jt,meridiemParse:/[ap]\.?m?\.?/i},ee={},ie={};function ne(t){return t?t.toLowerCase().replace("_","-"):t}function se(e){var n=null;if(!ee[e]&&t&&t.exports)try{n=Qt._abbr,i(6700)("./"+e),re(n)}catch(s){}return ee[e]}function re(t,e){var i;return t&&((i=a(e)?ae(t):oe(t,e))?Qt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Qt._abbr}function oe(t,e){if(null!==e){var i,n=te;if(e.abbr=t,null!=ee[t])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ee[t]._config;else if(null!=e.parentLocale)if(null!=ee[e.parentLocale])n=ee[e.parentLocale]._config;else{if(null==(i=se(e.parentLocale)))return ie[e.parentLocale]||(ie[e.parentLocale]=[]),ie[e.parentLocale].push({name:t,config:e}),null;n=i._config}return ee[t]=new x(R(n,e)),ie[t]&&ie[t].forEach(function(t){oe(t.name,t.config)}),re(t),ee[t]}return delete ee[t],null}function ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Qt;if(!r(t)){if(e=se(t))return e;t=[t]}return function(t){for(var e,i,n,s,r=0;r0;){if(n=se(s.slice(0,e).join("-")))return n;if(i&&i.length>=e&&T(s,i,!0)>=e-1)break;e--}r++}return Qt}(t)}function ce(t){var e,i=t._a;return i&&-2===f(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>Tt(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,f(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),f(t)._overflowWeeks&&-1===e&&(e=7),f(t)._overflowWeekday&&-1===e&&(e=8),f(t).overflow=e),t}function ue(t,e,i){return null!=t?t:null!=e?e:i}function le(t){var e,i,n,r,o,a=[];if(!t._d){for(n=function(t){var e=new Date(s.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,s,r,o,a,c;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)r=1,o=4,i=ue(e.GG,t._a[0],Bt(Te(),1,4).year),n=ue(e.W,1),((s=ue(e.E,1))<1||s>7)&&(c=!0);else{r=t._locale._week.dow,o=t._locale._week.doy;var u=Bt(Te(),r,o);i=ue(e.gg,t._a[0],u.year),n=ue(e.w,u.week),null!=e.d?((s=e.d)<0||s>6)&&(c=!0):null!=e.e?(s=e.e+r,(e.e<0||e.e>6)&&(c=!0)):s=r}n<1||n>Ft(i,r,o)?f(t)._overflowWeeks=!0:null!=c?f(t)._overflowWeekday=!0:(a=It(i,n,s,r,o),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(o=ue(t._a[0],n[0]),(t._dayOfYear>_t(o)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),i=Pt(o,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];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?Pt:Dt).apply(null,a),r=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&&void 0!==t._w.d&&t._w.d!==r&&(f(t).weekdayMismatch=!0)}}var he=/^\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)?)?$/,de=/^\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)?)?$/,pe=/Z|[+-]\d\d(?::?\d\d)?/,fe=[["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}/]],ge=[["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/]],me=/^\/?Date\((\-?\d+)/i;function _e(t){var e,i,n,s,r,o,a=t._i,c=he.exec(a)||de.exec(a);if(c){for(f(t).iso=!0,e=0,i=fe.length;e0&&f(t).unusedInput.push(o),a=a.slice(a.indexOf(i)+i.length),u+=i.length),Y[r]?(i?f(t).empty=!1:f(t).unusedTokens.push(r),mt(r,i,t)):t._strict&&!i&&f(t).unusedTokens.push(r);f(t).charsLeftOver=c-u,a.length>0&&f(t).unusedInput.push(a),t._a[3]<=12&&!0===f(t).bigHour&&t._a[3]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),le(t),ce(t)}else we(t);else _e(t)}function Ae(t){var e=t._i,i=t._f;return t._locale=t._locale||ae(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),M(e)?new w(ce(e)):(u(e)?t._d=e:r(i)?function(t){var e,i,n,s,r;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(s=0;sthis?this:t:m()});function Ce(t,e){var i,n;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Te();for(i=e[0],n=1;n=0?new Date(t+400,e,i)-126227808e5:new Date(t,e,i).valueOf()}function Ze(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-126227808e5:Date.UTC(t,e,i)}function ti(t,e){W(0,[t,t.length],0,e)}function ei(t,e,i,n,s){var r;return null==t?Bt(this,n,s).year:(e>(r=Ft(t,n,s))&&(e=r),ii.call(this,t,e,i,n,s))}function ii(t,e,i,n,s){var r=It(t,e,i,n,s),o=Pt(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ti("gggg","weekYear"),ti("ggggg","weekYear"),ti("GGGG","isoWeekYear"),ti("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),lt("G",rt),lt("g",rt),lt("GG",Q,X),lt("gg",Q,X),lt("GGGG",it,$),lt("gggg",it,$),lt("GGGGG",nt,J),lt("ggggg",nt,J),gt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=v(t)}),gt(["gg","GG"],function(t,e,i,n){e[n]=s.parseTwoDigitYear(t)}),W("Q",0,"Qo","quarter"),D("quarter","Q"),B("quarter",7),lt("Q",V),ft("Q",function(t,e){e[1]=3*(v(t)-1)}),W("D",["DD",2],"Do","date"),D("date","D"),B("date",9),lt("D",Q),lt("DD",Q,X),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ft(["D","DD"],2),ft("Do",function(t,e){e[2]=v(t.match(Q)[0])});var ni=Mt("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),B("dayOfYear",4),lt("DDD",et),lt("DDDD",G),ft(["DDD","DDDD"],function(t,e,i){i._dayOfYear=v(t)}),W("m",["mm",2],0,"minute"),D("minute","m"),B("minute",14),lt("m",Q),lt("mm",Q,X),ft(["m","mm"],4);var si=Mt("Minutes",!1);W("s",["ss",2],0,"second"),D("second","s"),B("second",15),lt("s",Q),lt("ss",Q,X),ft(["s","ss"],5);var ri,oi=Mt("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),D("millisecond","ms"),B("millisecond",16),lt("S",et,V),lt("SS",et,X),lt("SSS",et,G),ri="SSSS";ri.length<=9;ri+="S")lt(ri,st);function ai(t,e){e[6]=v(1e3*("0."+t))}for(ri="S";ri.length<=9;ri+="S")ft(ri,ai);var ci=Mt("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var ui=w.prototype;function li(t){return t}ui.add=Ue,ui.calendar=function(t,e){var i=t||Te(),n=Pe(i,this).startOf("day"),r=s.calendarFormat(this,n)||"sameElse",o=e&&(z(e[r])?e[r].call(this,i):e[r]);return this.format(o||this.localeData().calendar(r,this,Te(i)))},ui.clone=function(){return new w(this)},ui.diff=function(t,e,i){var n,s,r;if(!this.isValid())return NaN;if(!(n=Pe(t,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),e=P(e)){case"year":r=Ve(this,n)/12;break;case"month":r=Ve(this,n);break;case"quarter":r=Ve(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-s)/864e5;break;case"week":r=(this-n-s)/6048e5;break;default:r=this-n}return i?r:A(r)},ui.endOf=function(t){var e;if(void 0===(t=P(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?Ze:Qe;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-Je(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-Je(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-Je(e,1e3)-1}return this._d.setTime(e),s.updateOffset(this,!0),this},ui.format=function(t){t||(t=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},ui.from=function(t,e){return this.isValid()&&(M(t)&&t.isValid()||Te(t).isValid())?He({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ui.fromNow=function(t){return this.from(Te(),t)},ui.to=function(t,e){return this.isValid()&&(M(t)&&t.isValid()||Te(t).isValid())?He({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ui.toNow=function(t){return this.to(Te(),t)},ui.get=function(t){return z(this[t=P(t)])?this[t]():this},ui.invalidAt=function(){return f(this).overflow},ui.isAfter=function(t,e){var i=M(t)?t:Te(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=P(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()9999?U(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(i,"Z")):U(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ui.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},ui.toJSON=function(){return this.isValid()?this.toISOString():null},ui.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ui.unix=function(){return Math.floor(this.valueOf()/1e3)},ui.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ui.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ui.year=wt,ui.isLeapYear=function(){return bt(this.year())},ui.weekYear=function(t){return ei.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ui.isoWeekYear=function(t){return ei.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ui.quarter=ui.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ui.month=zt,ui.daysInMonth=function(){return Tt(this.year(),this.month())},ui.week=ui.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},ui.isoWeek=ui.isoWeeks=function(t){var e=Bt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},ui.weeksInYear=function(){var t=this.localeData()._week;return Ft(this.year(),t.dow,t.doy)},ui.isoWeeksInYear=function(){return Ft(this.year(),1,4)},ui.date=ni,ui.day=ui.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},ui.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},ui.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},ui.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},ui.hour=ui.hours=Zt,ui.minute=ui.minutes=si,ui.second=ui.seconds=oi,ui.millisecond=ui.milliseconds=ci,ui.utcOffset=function(t,e,i){var n,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=De(at,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Ne(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?We(this,He(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ne(this)},ui.utc=function(t){return this.utcOffset(0,t)},ui.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ne(this),"m")),this},ui.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=De(ot,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ui.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Te(t).utcOffset():0,(this.utcOffset()-t)%60==0)},ui.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ui.isLocal=function(){return!!this.isValid()&&!this._isUTC},ui.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ui.isUtc=Ie,ui.isUTC=Ie,ui.zoneAbbr=function(){return this._isUTC?"UTC":""},ui.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ui.dates=S("dates accessor is deprecated. Use date instead.",ni),ui.months=S("months accessor is deprecated. Use month instead",zt),ui.years=S("years accessor is deprecated. Use year instead",wt),ui.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),ui.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(b(t,this),(t=Ae(t))._a){var e=t._isUTC?p(t._a):Te(t._a);this._isDSTShifted=this.isValid()&&T(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var hi=x.prototype;function di(t,e,i,n){var s=ae(),r=p().set(n,e);return s[i](r,t)}function pi(t,e,i){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return di(t,e,i,"month");var n,s=[];for(n=0;n<12;n++)s[n]=di(t,n,i,"month");return s}function fi(t,e,i,n){"boolean"==typeof t?(c(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,c(e)&&(i=e,e=void 0),e=e||"");var s,r=ae(),o=t?r._week.dow:0;if(null!=i)return di(e,(i+o)%7,n,"day");var a=[];for(s=0;s<7;s++)a[s]=di(e,(s+o)%7,n,"day");return a}hi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return z(n)?n.call(e,i):n},hi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},hi.invalidDate=function(){return this._invalidDate},hi.ordinal=function(t){return this._ordinal.replace("%d",t)},hi.preparse=li,hi.postformat=li,hi.relativeTime=function(t,e,i,n){var s=this._relativeTime[i];return z(s)?s(t,e,i,n):s.replace(/%d/i,t)},hi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return z(i)?i(e):i.replace(/%s/i,e)},hi.set=function(t){var e,i;for(i in t)z(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hi.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||kt).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},hi.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[kt.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hi.monthsParse=function(t,e,i){var n,s,r;if(this._monthsParseExact)return Et.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=p([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},hi.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Ot.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=xt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},hi.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Ot.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Rt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},hi.week=function(t){return Bt(t,this._week.dow,this._week.doy).week},hi.firstDayOfYear=function(){return this._week.doy},hi.firstDayOfWeek=function(){return this._week.dow},hi.weekdays=function(t,e){var i=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ht(i,this._week.dow):t?i[t.day()]:i},hi.weekdaysMin=function(t){return!0===t?Ht(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},hi.weekdaysShort=function(t){return!0===t?Ht(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},hi.weekdaysParse=function(t,e,i){var n,s,r;if(this._weekdaysParseExact)return Wt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=p([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},hi.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},hi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Vt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},hi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},re("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===v(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),s.lang=S("moment.lang is deprecated. Use moment.locale instead.",re),s.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ae);var gi=Math.abs;function mi(t,e,i,n){var s=He(e,i);return t._milliseconds+=n*s._milliseconds,t._days+=n*s._days,t._months+=n*s._months,t._bubble()}function _i(t){return t<0?Math.floor(t):Math.ceil(t)}function bi(t){return 4800*t/146097}function yi(t){return 146097*t/4800}function wi(t){return function(){return this.as(t)}}var Mi=wi("ms"),Ai=wi("s"),vi=wi("m"),Ti=wi("h"),ki=wi("d"),Si=wi("w"),Ci=wi("M"),Ei=wi("Q"),Li=wi("y");function zi(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ri=zi("milliseconds"),xi=zi("seconds"),Oi=zi("minutes"),Di=zi("hours"),Pi=zi("days"),Ni=zi("months"),Ii=zi("years"),Bi=Math.round,Fi={ss:44,s:45,m:45,h:22,d:26,M:11};function Hi(t,e,i,n,s){return s.relativeTime(e||1,!!i,t,n)}var qi=Math.abs;function ji(t){return(t>0)-(t<0)||+t}function Yi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=qi(this._milliseconds)/1e3,n=qi(this._days),s=qi(this._months);t=A(i/60),e=A(t/60),i%=60,t%=60;var r=A(s/12),o=s%=12,a=n,c=e,u=t,l=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",p=ji(this._months)!==ji(h)?"-":"",f=ji(this._days)!==ji(h)?"-":"",g=ji(this._milliseconds)!==ji(h)?"-":"";return d+"P"+(r?p+r+"Y":"")+(o?p+o+"M":"")+(a?f+a+"D":"")+(c||u||l?"T":"")+(c?g+c+"H":"")+(u?g+u+"M":"")+(l?g+l+"S":"")}var Wi=Le.prototype;return Wi.isValid=function(){return this._isValid},Wi.abs=function(){var t=this._data;return this._milliseconds=gi(this._milliseconds),this._days=gi(this._days),this._months=gi(this._months),t.milliseconds=gi(t.milliseconds),t.seconds=gi(t.seconds),t.minutes=gi(t.minutes),t.hours=gi(t.hours),t.months=gi(t.months),t.years=gi(t.years),this},Wi.add=function(t,e){return mi(this,t,e,1)},Wi.subtract=function(t,e){return mi(this,t,e,-1)},Wi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=P(t))||"quarter"===t||"year"===t)switch(i=this._months+bi(e=this._days+n/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(yi(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Wi.asMilliseconds=Mi,Wi.asSeconds=Ai,Wi.asMinutes=vi,Wi.asHours=Ti,Wi.asDays=ki,Wi.asWeeks=Si,Wi.asMonths=Ci,Wi.asQuarters=Ei,Wi.asYears=Li,Wi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*v(this._months/12):NaN},Wi._bubble=function(){var t,e,i,n,s,r=this._milliseconds,o=this._days,a=this._months,c=this._data;return r>=0&&o>=0&&a>=0||r<=0&&o<=0&&a<=0||(r+=864e5*_i(yi(a)+o),o=0,a=0),c.milliseconds=r%1e3,t=A(r/1e3),c.seconds=t%60,e=A(t/60),c.minutes=e%60,i=A(e/60),c.hours=i%24,o+=A(i/24),a+=s=A(bi(o)),o-=_i(yi(s)),n=A(a/12),a%=12,c.days=o,c.months=a,c.years=n,this},Wi.clone=function(){return He(this)},Wi.get=function(t){return t=P(t),this.isValid()?this[t+"s"]():NaN},Wi.milliseconds=Ri,Wi.seconds=xi,Wi.minutes=Oi,Wi.hours=Di,Wi.days=Pi,Wi.weeks=function(){return A(this.days()/7)},Wi.months=Ni,Wi.years=Ii,Wi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=function(t,e,i){var n=He(t).abs(),s=Bi(n.as("s")),r=Bi(n.as("m")),o=Bi(n.as("h")),a=Bi(n.as("d")),c=Bi(n.as("M")),u=Bi(n.as("y")),l=s<=Fi.ss&&["s",s]||s0,l[4]=i,Hi.apply(null,l)}(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Wi.toISOString=Yi,Wi.toString=Yi,Wi.toJSON=Yi,Wi.locale=Xe,Wi.localeData=$e,Wi.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Yi),Wi.lang=Ge,W("X",0,0,"unix"),W("x",0,0,"valueOf"),lt("x",rt),lt("X",/[+-]?\d+(\.\d{1,3})?/),ft("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),ft("x",function(t,e,i){i._d=new Date(v(t))}),s.version="2.24.0",e=Te,s.fn=ui,s.min=function(){return Ce("isBefore",[].slice.call(arguments,0))},s.max=function(){return Ce("isAfter",[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=p,s.unix=function(t){return Te(1e3*t)},s.months=function(t,e){return pi(t,e,"months")},s.isDate=u,s.locale=re,s.invalid=m,s.duration=He,s.isMoment=M,s.weekdays=function(t,e,i){return fi(t,e,i,"weekdays")},s.parseZone=function(){return Te.apply(null,arguments).parseZone()},s.localeData=ae,s.isDuration=ze,s.monthsShort=function(t,e){return pi(t,e,"monthsShort")},s.weekdaysMin=function(t,e,i){return fi(t,e,i,"weekdaysMin")},s.defineLocale=oe,s.updateLocale=function(t,e){if(null!=e){var i,n,s=te;null!=(n=se(t))&&(s=n._config),(i=new x(e=R(s,e))).parentLocale=ee[t],ee[t]=i,re(t)}else null!=ee[t]&&(null!=ee[t].parentLocale?ee[t]=ee[t].parentLocale:null!=ee[t]&&delete ee[t]);return ee[t]},s.locales=function(){return C(ee)},s.weekdaysShort=function(t,e,i){return fi(t,e,i,"weekdaysShort")},s.normalizeUnits=P,s.relativeTimeRounding=function(t){return void 0===t?Bi:"function"==typeof t&&(Bi=t,!0)},s.relativeTimeThreshold=function(t,e){return void 0!==Fi[t]&&(void 0===e?Fi[t]:(Fi[t]=e,"s"===t&&(Fi.ss=e-1),!0))},s.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},s.prototype=ui,s.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"},s}()},9997:function(t){t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,(function(e){return t[e]}).bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=22)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i=4){for(var t=arguments.length,e=Array(t),i=0;i=3){for(var t=arguments.length,e=Array(t),i=0;i=2){for(var t=arguments.length,e=Array(t),i=0;i=1){for(var t=arguments.length,e=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:r.JsonService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=e,this._jsonService=new i(["application/jwk-set+json"])}return t.prototype.getMetadata=function(){var t=this;return this._settings.metadata?(s.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(s.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then(function(e){return s.Log.debug("MetadataService.getMetadata: json received"),t._settings.metadata=e,e})):(s.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},t.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},t.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},t.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},t.prototype.getTokenEndpoint=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",t)},t.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},t.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},t.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},t.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},t.prototype._getMetadataProperty=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s.Log.debug("MetadataService.getMetadataProperty for: "+t),this.getMetadata().then(function(i){if(s.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===i[t]){if(!0===e)return void s.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+t);throw s.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+t),new Error("Metadata does not contain property "+t)}return i[t]})},t.prototype.getSigningKeys=function(){var t=this;return this._settings.signingKeys?(s.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then(function(e){return s.Log.debug("MetadataService.getSigningKeys: jwks_uri received",e),t._jsonService.getJson(e).then(function(e){if(s.Log.debug("MetadataService.getSigningKeys: key set received",e),!e.keys)throw s.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return t._settings.signingKeys=e.keys,t._settings.signingKeys})})},n(t,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration"))),this._metadataUrl}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UrlUtility=void 0;var n=i(0),s=i(1);e.UrlUtility=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.addQueryParam=function(t,e,i){return t.indexOf("?")<0&&(t+="?"),"?"!==t[t.length-1]&&(t+="&"),t+=encodeURIComponent(e),(t+="=")+encodeURIComponent(i)},t.parseUrlFragment=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.Global;"string"!=typeof t&&(t=i.location.href);var r=t.lastIndexOf(e);r>=0&&(t=t.substr(r+1)),"?"===e&&(r=t.indexOf("#"))>=0&&(t=t.substr(0,r));for(var o,a={},c=/([^&=]+)=([^&]*)/g,u=0;o=c.exec(t);)if(a[decodeURIComponent(o[1])]=decodeURIComponent(o[2]),u++>50)return n.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",t),{error:"Response exceeded expected number of parameters"};for(var l in a)return a;return{}},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JoseUtil=void 0;var n=i(25),s=function(t){return t&&t.__esModule?t:{default:t}}(i(32));e.JoseUtil=(0,s.default)({jws:n.jws,KeyUtil:n.KeyUtil,X509:n.X509,crypto:n.crypto,hextob64u:n.hextob64u,b64tohex:n.b64tohex,AllowedSigningAlgs:n.AllowedSigningAlgs})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OidcClientSettings=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.authority,s=e.metadataUrl,r=e.metadata,h=e.signingKeys,d=e.client_id,p=e.client_secret,f=e.response_type,g=void 0===f?u:f,m=e.scope,_=void 0===m?l:m,b=e.redirect_uri,y=e.post_logout_redirect_uri,w=e.prompt,M=e.display,A=e.max_age,v=e.ui_locales,T=e.acr_values,k=e.resource,S=e.response_mode,C=e.filterProtocolClaims,E=void 0===C||C,L=e.loadUserInfo,z=void 0===L||L,R=e.staleStateAge,x=void 0===R?900:R,O=e.clockSkew,D=void 0===O?300:O,P=e.userInfoJwtIssuer,N=void 0===P?"OP":P,I=e.stateStore,B=void 0===I?new o.WebStorageStateStore:I,F=e.ResponseValidatorCtor,H=void 0===F?a.ResponseValidator:F,q=e.MetadataServiceCtor,j=void 0===q?c.MetadataService:q,Y=e.extraQueryParams,W=void 0===Y?{}:Y,U=e.extraTokenParams,K=void 0===U?{}:U;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._authority=i,this._metadataUrl=s,this._metadata=r,this._signingKeys=h,this._client_id=d,this._client_secret=p,this._response_type=g,this._scope=_,this._redirect_uri=b,this._post_logout_redirect_uri=y,this._prompt=w,this._display=M,this._max_age=A,this._ui_locales=v,this._acr_values=T,this._resource=k,this._response_mode=S,this._filterProtocolClaims=!!E,this._loadUserInfo=!!z,this._staleStateAge=x,this._clockSkew=D,this._userInfoJwtIssuer=N,this._stateStore=B,this._validator=new H(this),this._metadataService=new j(this),this._extraQueryParams="object"===(void 0===W?"undefined":n(W))?W:{},this._extraTokenParams="object"===(void 0===K?"undefined":n(K))?K:{}}return s(t,[{key:"client_id",get:function(){return this._client_id},set:function(t){if(this._client_id)throw r.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=t}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(t){if(this._authority)throw r.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=t}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration")),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(t){this._metadata=t}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(t){this._signingKeys=t}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(t){this._extraQueryParams="object"===(void 0===t?"undefined":n(t))?t:{}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(t){this._extraTokenParams="object"===(void 0===t?"undefined":n(t))?t:{}}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebStorageStateStore=void 0;var n=i(0),s=i(1);e.WebStorageStateStore=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.prefix,n=void 0===i?"oidc.":i,r=e.store,o=void 0===r?s.Global.localStorage:r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._store=o,this._prefix=n}return t.prototype.set=function(t,e){return n.Log.debug("WebStorageStateStore.set",t),this._store.setItem(t=this._prefix+t,e),Promise.resolve()},t.prototype.get=function(t){n.Log.debug("WebStorageStateStore.get",t);var e=this._store.getItem(t=this._prefix+t);return Promise.resolve(e)},t.prototype.remove=function(t){n.Log.debug("WebStorageStateStore.remove",t);var e=this._store.getItem(t=this._prefix+t);return this._store.removeItem(t),Promise.resolve(e)},t.prototype.getAllKeys=function(){n.Log.debug("WebStorageStateStore.getAllKeys");for(var t=[],e=0;e0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Global.XMLHttpRequest,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._contentTypes=e&&Array.isArray(e)?e.slice():[],this._contentTypes.push("application/json"),n&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=i,this._jwtHandler=n}return t.prototype.getJson=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.getJson: No url passed"),new Error("url");return n.Log.debug("JsonService.getJson, url: ",t),new Promise(function(s,r){var o=new i._XMLHttpRequest;o.open("GET",t);var a=i._contentTypes,c=i._jwtHandler;o.onload=function(){if(n.Log.debug("JsonService.getJson: HTTP response received, status",o.status),200===o.status){var e=o.getResponseHeader("Content-Type");if(e){var i=a.find(function(t){if(e.startsWith(t))return!0});if("application/jwt"==i)return void c(o).then(s,r);if(i)try{return void s(JSON.parse(o.responseText))}catch(s){return n.Log.error("JsonService.getJson: Error parsing JSON response",s.message),void r(s)}}r(Error("Invalid response Content-Type: "+e+", from URL: "+t))}else r(Error(o.statusText+" ("+o.status+")"))},o.onerror=function(){n.Log.error("JsonService.getJson: network error"),r(Error("Network Error"))},e&&(n.Log.debug("JsonService.getJson: token passed, setting Authorization header"),o.setRequestHeader("Authorization","Bearer "+e)),o.send()})},t.prototype.postForm=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.postForm: No url passed"),new Error("url");return n.Log.debug("JsonService.postForm, url: ",t),new Promise(function(s,r){var o=new i._XMLHttpRequest;o.open("POST",t);var a=i._contentTypes;o.onload=function(){if(n.Log.debug("JsonService.postForm: HTTP response received, status",o.status),200!==o.status){if(400===o.status&&(i=o.getResponseHeader("Content-Type"))&&a.find(function(t){if(i.startsWith(t))return!0}))try{var e=JSON.parse(o.responseText);if(e&&e.error)return n.Log.error("JsonService.postForm: Error from server: ",e.error),void r(new Error(e.error))}catch(s){return n.Log.error("JsonService.postForm: Error parsing JSON response",s.message),void r(s)}r(Error(o.statusText+" ("+o.status+")"))}else{var i;if((i=o.getResponseHeader("Content-Type"))&&a.find(function(t){if(i.startsWith(t))return!0}))try{return void s(JSON.parse(o.responseText))}catch(s){return n.Log.error("JsonService.postForm: Error parsing JSON response",s.message),void r(s)}r(Error("Invalid response Content-Type: "+i+", from URL: "+t))}},o.onerror=function(){n.Log.error("JsonService.postForm: network error"),r(Error("Network Error"))};var c="";for(var u in e){var l=e[u];l&&(c.length>0&&(c+="&"),c+=encodeURIComponent(u),c+="=",c+=encodeURIComponent(l))}o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(c)})},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.State=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.id,n=e.data,s=e.created,o=e.request_type;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._id=i||(0,r.default)(),this._data=n,this._created="number"==typeof s&&s>0?s:parseInt(Date.now()/1e3),this._request_type=o}return t.prototype.toStorageString=function(){return s.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},t.fromStorageString=function(e){return s.Log.debug("State.fromStorageString"),new t(JSON.parse(e))},t.clearStaleState=function(e,i){var n=Date.now()/1e3-i;return e.getAllKeys().then(function(i){s.Log.debug("State.clearStaleState: got keys",i);for(var r=[],o=function(o){var a=i[o];c=e.get(a).then(function(i){var r=!1;if(i)try{var o=t.fromStorageString(i);s.Log.debug("State.clearStaleState: got item from key: ",a,o.created),o.created<=n&&(r=!0)}catch(t){s.Log.error("State.clearStaleState: Error parsing state for key",a,t.message),r=!0}else s.Log.debug("State.clearStaleState: no item in storage for key: ",a),r=!0;if(r)return s.Log.debug("State.clearStaleState: removed item for key: ",a),e.remove(a)}),r.push(c)},a=0;a0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._settings=e instanceof r.OidcClientSettings?e:new r.OidcClientSettings(e)}return t.prototype.createSigninRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.response_type,n=e.scope,r=e.redirect_uri,o=e.data,c=e.state,u=e.prompt,l=e.display,h=e.max_age,d=e.ui_locales,p=e.id_token_hint,f=e.login_hint,g=e.acr_values,m=e.resource,_=e.request,b=e.request_uri,y=e.response_mode,w=e.extraQueryParams,M=e.extraTokenParams,A=e.request_type,v=e.skipUserInfo,T=arguments[1];s.Log.debug("OidcClient.createSigninRequest");var k=this._settings.client_id;n=n||this._settings.scope,r=r||this._settings.redirect_uri,u=u||this._settings.prompt,l=l||this._settings.display,h=h||this._settings.max_age,d=d||this._settings.ui_locales,g=g||this._settings.acr_values,m=m||this._settings.resource,y=y||this._settings.response_mode,w=w||this._settings.extraQueryParams,M=M||this._settings.extraTokenParams;var S=this._settings.authority;return a.SigninRequest.isCode(i=i||this._settings.response_type)&&"code"!==i?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then(function(e){s.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",e);var C=new a.SigninRequest({url:e,client_id:k,redirect_uri:r,response_type:i,scope:n,data:o||c,authority:S,prompt:u,display:l,max_age:h,ui_locales:d,id_token_hint:p,login_hint:f,acr_values:g,resource:m,request:_,request_uri:b,extraQueryParams:w,extraTokenParams:M,request_type:A,response_mode:y,client_secret:t._settings.client_secret,skipUserInfo:v}),E=C.state;return(T=T||t._stateStore).set(E.id,E.toStorageString()).then(function(){return C})})},t.prototype.readSigninResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.Log.debug("OidcClient.readSigninResponseState");var n="query"===this._settings.response_mode||!this._settings.response_mode&&a.SigninRequest.isCode(this._settings.response_type)?"?":"#",r=new c.SigninResponse(t,n);return r.state?(e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(r.state).then(function(t){if(!t)throw s.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:h.SigninState.fromStorageString(t),response:r}})):(s.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},t.prototype.processSigninResponse=function(t,e){var i=this;return s.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return s.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),i._validator.validateSigninResponse(e,n)})},t.prototype.createSignoutRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.id_token_hint,n=e.data,r=e.state,o=e.post_logout_redirect_uri,a=e.extraQueryParams,c=e.request_type,l=arguments[1];return s.Log.debug("OidcClient.createSignoutRequest"),o=o||this._settings.post_logout_redirect_uri,a=a||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then(function(e){if(!e)throw s.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");s.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",e);var h=new u.SignoutRequest({url:e,id_token_hint:i,post_logout_redirect_uri:o,data:n||r,extraQueryParams:a,request_type:c}),d=h.state;return d&&(s.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(l=l||t._stateStore).set(d.id,d.toStorageString())),h})},t.prototype.readSignoutResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.Log.debug("OidcClient.readSignoutResponseState");var n=new l.SignoutResponse(t);if(!n.state)return s.Log.debug("OidcClient.readSignoutResponseState: No state in response"),n.error?(s.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",n.error),Promise.reject(new o.ErrorResponse(n))):Promise.resolve({undefined:void 0,response:n});var r=n.state;return e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(r).then(function(t){if(!t)throw s.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(t),response:n}})},t.prototype.processSignoutResponse=function(t,e){var i=this;return s.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return e?(s.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),i._validator.validateSignoutResponse(e,n)):(s.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),n)})},t.prototype.clearStaleState=function(t){return s.Log.debug("OidcClient.clearStaleState"),d.State.clearStaleState(t=t||this._stateStore,this.settings.staleStateAge)},n(t,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenClient=void 0;var n=i(7),s=i(2),r=i(0);e.TokenClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i,this._metadataService=new o(this._settings)}return t.prototype.exchangeCode=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"authorization_code",e.client_id=e.client_id||this._settings.client_id,e.redirect_uri=e.redirect_uri||this._settings.redirect_uri,e.code?e.redirect_uri?e.code_verifier?e.client_id?this._metadataService.getTokenEndpoint(!1).then(function(i){return r.Log.debug("TokenClient.exchangeCode: Received token endpoint"),t._jsonService.postForm(i,e).then(function(t){return r.Log.debug("TokenClient.exchangeCode: response received"),t})}):(r.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(r.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(r.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(r.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},t.prototype.exchangeRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"refresh_token",e.client_id=e.client_id||this._settings.client_id,e.client_secret=e.client_secret||this._settings.client_secret,e.refresh_token?e.client_id?this._metadataService.getTokenEndpoint(!1).then(function(i){return r.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),t._jsonService.postForm(i,e).then(function(t){return r.Log.debug("TokenClient.exchangeRefreshToken: response received"),t})}):(r.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(r.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorResponse=void 0;var n=i(0);e.ErrorResponse=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=i.error,r=i.error_description,o=i.error_uri,a=i.state,c=i.session_state;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),!s)throw n.Log.error("No error passed to ErrorResponse"),new Error("error");var u=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,r||s));return u.name="ErrorResponse",u.error=s,u.error_description=r,u.error_uri=o,u.state=a,u.session_state=c,u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Error)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninRequest=void 0;var n=i(0),s=i(3),r=i(13);e.SigninRequest=function(){function t(e){var i=e.url,o=e.client_id,a=e.redirect_uri,c=e.response_type,u=e.scope,l=e.authority,h=e.data,d=e.prompt,p=e.display,f=e.max_age,g=e.ui_locales,m=e.id_token_hint,_=e.login_hint,b=e.acr_values,y=e.resource,w=e.response_mode,M=e.request,A=e.request_uri,v=e.extraQueryParams,T=e.request_type,k=e.client_secret,S=e.extraTokenParams,C=e.skipUserInfo;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!o)throw n.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!a)throw n.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!c)throw n.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!u)throw n.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!l)throw n.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var E=t.isOidc(c),L=t.isCode(c);w||(w=t.isCode(c)?"query":null),this.state=new r.SigninState({nonce:E,data:h,client_id:o,authority:l,redirect_uri:a,code_verifier:L,request_type:T,response_mode:w,client_secret:k,scope:u,extraTokenParams:S,skipUserInfo:C}),i=s.UrlUtility.addQueryParam(i,"client_id",o),i=s.UrlUtility.addQueryParam(i,"redirect_uri",a),i=s.UrlUtility.addQueryParam(i,"response_type",c),i=s.UrlUtility.addQueryParam(i,"scope",u),i=s.UrlUtility.addQueryParam(i,"state",this.state.id),E&&(i=s.UrlUtility.addQueryParam(i,"nonce",this.state.nonce)),L&&(i=s.UrlUtility.addQueryParam(i,"code_challenge",this.state.code_challenge),i=s.UrlUtility.addQueryParam(i,"code_challenge_method","S256"));var z={prompt:d,display:p,max_age:f,ui_locales:g,id_token_hint:m,login_hint:_,acr_values:b,resource:y,request:M,request_uri:A,response_mode:w};for(var R in z)z[R]&&(i=s.UrlUtility.addQueryParam(i,R,z[R]));for(var x in v)i=s.UrlUtility.addQueryParam(i,x,v[x]);this.url=i}return t.isOidc=function(t){return!!t.split(/\s+/g).filter(function(t){return"id_token"===t})[0]},t.isOAuth=function(t){return!!t.split(/\s+/g).filter(function(t){return"token"===t})[0]},t.isCode=function(t){return!!t.split(/\s+/g).filter(function(t){return"code"===t})[0]},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninState=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.nonce,s=i.authority,r=i.client_id,c=i.redirect_uri,u=i.code_verifier,l=i.response_mode,h=i.client_secret,d=i.scope,p=i.extraTokenParams,f=i.skipUserInfo;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var g=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));if(!0===n?g._nonce=(0,a.default)():n&&(g._nonce=n),!0===u?g._code_verifier=(0,a.default)()+(0,a.default)()+(0,a.default)():u&&(g._code_verifier=u),g.code_verifier){var m=o.JoseUtil.hashString(g.code_verifier,"SHA256");g._code_challenge=o.JoseUtil.hexToBase64Url(m)}return g._redirect_uri=c,g._authority=s,g._client_id=r,g._response_mode=l,g._client_secret=h,g._scope=d,g._extraTokenParams=p,g._skipUserInfo=f,g}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toStorageString=function(){return s.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},e.fromStorageString=function(t){return s.Log.debug("SigninState.fromStorageString"),new e(JSON.parse(t))},n(e,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),e}(r.State)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,n.default)().replace(/-/g,"")};var n=function(t){return t&&t.__esModule?t:{default:t}}(i(33));t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.User=void 0;var n=function(){function t(t,e){for(var i=0;i0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessTokenEvents=void 0;var n=i(0),s=i(48);e.AccessTokenEvents=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.accessTokenExpiringNotificationTime,n=void 0===i?60:i,r=e.accessTokenExpiringTimer,o=void 0===r?new s.Timer("Access token expiring"):r,a=e.accessTokenExpiredTimer,c=void 0===a?new s.Timer("Access token expired"):a;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._accessTokenExpiringNotificationTime=n,this._accessTokenExpiring=o,this._accessTokenExpired=c}return t.prototype.load=function(t){if(t.access_token&&void 0!==t.expires_in){var e=t.expires_in;if(n.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",e),e>0){var i=e-this._accessTokenExpiringNotificationTime;i<=0&&(i=1),n.Log.debug("AccessTokenEvents.load: registering expiring timer in:",i),this._accessTokenExpiring.init(i)}else n.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var s=e+1;n.Log.debug("AccessTokenEvents.load: registering expired timer in:",s),this._accessTokenExpired.init(s)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.unload=function(){n.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.addAccessTokenExpiring=function(t){this._accessTokenExpiring.addHandler(t)},t.prototype.removeAccessTokenExpiring=function(t){this._accessTokenExpiring.removeHandler(t)},t.prototype.addAccessTokenExpired=function(t){this._accessTokenExpired.addHandler(t)},t.prototype.removeAccessTokenExpired=function(t){this._accessTokenExpired.removeHandler(t)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=i(0);e.Event=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e,this._callbacks=[]}return t.prototype.addHandler=function(t){this._callbacks.push(t)},t.prototype.removeHandler=function(t){var e=this._callbacks.findIndex(function(e){return e===t});e>=0&&this._callbacks.splice(e,1)},t.prototype.raise=function(){n.Log.debug("Event: Raising event: "+this._name);for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:r.CheckSessionIFrame,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.Global.timer;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=e,this._CheckSessionIFrameCtor=n,this._timer=a,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),this._userManager.getUser().then(function(t){t?i._start(t):i._settings.monitorAnonymousSession&&i._userManager.querySessionStatus().then(function(t){var e={session_state:t.session_state};t.sub&&t.sid&&(e.profile={sub:t.sub,sid:t.sid}),i._start(e)}).catch(function(t){s.Log.error("SessionMonitor ctor: error from querySessionStatus:",t.message)})}).catch(function(t){s.Log.error("SessionMonitor ctor: error from getUser:",t.message)})}return t.prototype._start=function(t){var e=this,i=t.session_state;i&&(t.profile?(this._sub=t.profile.sub,this._sid=t.profile.sid,s.Log.debug("SessionMonitor._start: session_state:",i,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,s.Log.debug("SessionMonitor._start: session_state:",i,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(i):this._metadataService.getCheckSessionIframe().then(function(t){if(t){s.Log.debug("SessionMonitor._start: Initializing check session iframe");var n=e._client_id,r=e._checkSessionInterval,o=e._stopCheckSessionOnError;e._checkSessionIFrame=new e._CheckSessionIFrameCtor(e._callback.bind(e),n,t,r,o),e._checkSessionIFrame.load().then(function(){e._checkSessionIFrame.start(i)})}else s.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")}).catch(function(t){s.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",t.message)}))},t.prototype._stop=function(){var t=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(s.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var e=this._timer.setInterval(function(){t._timer.clearInterval(e),t._userManager.querySessionStatus().then(function(e){var i={session_state:e.session_state};e.sub&&e.sid&&(i.profile={sub:e.sub,sid:e.sid}),t._start(i)}).catch(function(t){s.Log.error("SessionMonitor: error from querySessionStatus:",t.message)})},1e3)},t.prototype._callback=function(){var t=this;this._userManager.querySessionStatus().then(function(e){var i=!0;e?e.sub===t._sub?(i=!1,t._checkSessionIFrame.start(e.session_state),e.sid===t._sid?s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",e.session_state):(s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",e.session_state),t._userManager.events._raiseUserSessionChanged())):s.Log.debug("SessionMonitor._callback: Different subject signed into OP:",e.sub):s.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),i&&(t._sub?(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),t._userManager.events._raiseUserSignedOut()):(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),t._userManager.events._raiseUserSignedIn()))}).catch(function(e){t._sub&&(s.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",e.message),t._userManager.events._raiseUserSignedOut())})},n(t,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CheckSessionIFrame=void 0;var n=i(0);e.CheckSessionIFrame=function(){function t(e,i,n,s){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._callback=e,this._client_id=i,this._url=n,this._interval=s||2e3,this._stopOnError=r;var o=n.indexOf("/",n.indexOf("//")+2);this._frame_origin=n.substr(0,o),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.style.width=0,this._frame.style.height=0,this._frame.src=n}return t.prototype.load=function(){var t=this;return new Promise(function(e){t._frame.onload=function(){e()},window.document.body.appendChild(t._frame),t._boundMessageEvent=t._message.bind(t),window.addEventListener("message",t._boundMessageEvent,!1)})},t.prototype._message=function(t){t.origin===this._frame_origin&&t.source===this._frame.contentWindow&&("error"===t.data?(n.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===t.data?(n.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):n.Log.debug("CheckSessionIFrame: "+t.data+" message from check session op iframe"))},t.prototype.start=function(t){var e=this;if(this._session_state!==t){n.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=t;var i=function(){e._frame.contentWindow.postMessage(e._client_id+" "+e._session_state,e._frame_origin)};i(),this._timer=window.setInterval(i,this._interval)}},t.prototype.stop=function(){this._session_state=null,this._timer&&(n.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenRevocationClient=void 0;var n=i(0),s=i(2),r=i(1);e.TokenRevocationClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.Global.XMLHttpRequest,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw n.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=e,this._XMLHttpRequestCtor=i,this._metadataService=new o(this._settings)}return t.prototype.revoke=function(t,e){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!t)throw n.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==s&&"refresh_token"!=s)throw n.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then(function(r){if(r)return n.Log.debug("TokenRevocationClient.revoke: Revoking "+s),i._revoke(r,i._settings.client_id,i._settings.client_secret,t,s);if(e)throw n.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")})},t.prototype._revoke=function(t,e,i,s,r){var o=this;return new Promise(function(a,c){var u=new o._XMLHttpRequestCtor;u.open("POST",t),u.onload=function(){n.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",u.status),200===u.status?a():c(Error(u.statusText+" ("+u.status+")"))},u.onerror=function(){n.Log.debug("TokenRevocationClient.revoke: Network Error."),c("Network Error")};var l="client_id="+encodeURIComponent(e);i&&(l+="&client_secret="+encodeURIComponent(i)),l+="&token_type_hint="+encodeURIComponent(r),l+="&token="+encodeURIComponent(s),u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.send(l)})},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CordovaPopupWindow=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:r.MetadataService,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.UserInfoService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.JoseUtil,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:a.TokenClient;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=e,this._metadataService=new i(this._settings),this._userInfoService=new n(this._settings),this._joseUtil=c,this._tokenClient=new l(this._settings)}return t.prototype.validateSigninResponse=function(t,e){var i=this;return s.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(t,e).then(function(e){return s.Log.debug("ResponseValidator.validateSigninResponse: state processed"),i._validateTokens(t,e).then(function(e){return s.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),i._processClaims(t,e).then(function(t){return s.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),t})})})},t.prototype.validateSignoutResponse=function(t,e){return t.id!==e.state?(s.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(s.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),e.state=t.data,e.error?(s.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):Promise.resolve(e))},t.prototype._processSigninParams=function(t,e){if(t.id!==e.state)return s.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!t.client_id)return s.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!t.authority)return s.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==t.authority)return s.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=t.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==t.client_id)return s.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=t.client_id;return s.Log.debug("ResponseValidator._processSigninParams: state validated"),e.state=t.data,e.error?(s.Log.warn("ResponseValidator._processSigninParams: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):t.nonce&&!e.id_token?(s.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!t.nonce&&e.id_token?(s.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):t.code_verifier&&!e.code?(s.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!t.code_verifier&&e.code?(s.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(e.scope||(e.scope=t.scope),Promise.resolve(e))},t.prototype._processClaims=function(t,e){var i=this;if(e.isOpenIdConnect){if(s.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),e.profile=this._filterProtocolClaims(e.profile),!0!==t.skipUserInfo&&this._settings.loadUserInfo&&e.access_token)return s.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(e.access_token).then(function(t){return s.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),t.sub!==e.profile.sub?(s.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in access_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"))):(e.profile=i._mergeClaims(e.profile,t),s.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",e.profile),e)});s.Log.debug("ResponseValidator._processClaims: not loading user info")}else s.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(e)},t.prototype._mergeClaims=function(t,e){var i=Object.assign({},t);for(var s in e){var r=e[s];Array.isArray(r)||(r=[r]);for(var o=0;o1)return s.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));c=a[0]}if(!c)return s.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var u=t.client_id,l=i._settings.clockSkew;return s.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",l),i._joseUtil.validateJwt(e.id_token,c,o,u,l).then(function(){return s.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),n.payload.sub?(e.profile=n.payload,e):(s.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))})})})},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return s.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",e),[];i="EC"}return s.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",i),t=t.filter(function(t){return t.kty===i}),s.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",i,t.length),t},t.prototype._validateAccessToken=function(t){if(!t.profile)return s.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!t.profile.at_hash)return s.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!t.id_token)return s.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var e=this._joseUtil.parseJwt(t.id_token);if(!e||!e.header)return s.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",e),Promise.reject(new Error("Failed to parse id_token"));var i=e.header.alg;if(!i||5!==i.length)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i),Promise.reject(new Error("Unsupported alg: "+i));var n=i.substr(2,3);if(!n)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));if(256!==(n=parseInt(n))&&384!==n&&512!==n)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));var r="sha"+n,o=this._joseUtil.hashString(t.access_token,r);if(!o)return s.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",r),Promise.reject(new Error("Failed to validate at_hash"));var a=o.substr(0,o.length/2),c=this._joseUtil.hexToBase64Url(a);return c!==t.profile.at_hash?(s.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",c,t.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(s.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(t))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserInfoService=void 0;var n=i(7),s=i(2),r=i(0),o=i(4);e.UserInfoService=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.JoseUtil;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new a(this._settings),this._joseUtil=c}return t.prototype.getClaims=function(t){var e=this;return t?this._metadataService.getUserInfoEndpoint().then(function(i){return r.Log.debug("UserInfoService.getClaims: received userinfo url",i),e._jsonService.getJson(i,t).then(function(t){return r.Log.debug("UserInfoService.getClaims: claims received",t),t})}):(r.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},t.prototype._getClaimsFromJwt=function t(e){var i=this;try{var n=this._joseUtil.parseJwt(e.responseText);if(!n||!n.header||!n.payload)return r.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",n),Promise.reject(new Error("Failed to parse id_token"));var s=n.header.kid,o=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":o=this._metadataService.getIssuer();break;case"ANY":o=Promise.resolve(n.payload.iss);break;default:o=Promise.resolve(this._settings.userInfoJwtIssuer)}return o.then(function(t){return r.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+t),i._metadataService.getSigningKeys().then(function(o){if(!o)return r.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));r.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var a=void 0;if(s)a=o.filter(function(t){return t.kid===s})[0];else{if((o=i._filterByAlg(o,n.header.alg)).length>1)return r.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));a=o[0]}if(!a)return r.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var c=i._settings.client_id,u=i._settings.clockSkew;return r.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",u),i._joseUtil.validateJwt(e.responseText,a,t,c,u,void 0,!0).then(function(){return r.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),n.payload})})})}catch(t){return r.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",t.message),void reject(t)}},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return r.Log.debug("UserInfoService._filterByAlg: alg not supported: ",e),[];i="EC"}return r.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",i),t=t.filter(function(t){return t.kty===i}),r.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",i,t.length),t},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AllowedSigningAlgs=e.b64tohex=e.hextob64u=e.crypto=e.X509=e.KeyUtil=e.jws=void 0;var n=i(26);e.jws=n.jws,e.KeyUtil=n.KEYUTIL,e.X509=n.X509,e.crypto=n.crypto,e.hextob64u=n.hextob64u,e.b64tohex=n.b64tohex,e.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n={userAgent:!1},s={};if(void 0===r)var r={};r.lang={extend:function(e,i,s){if(!i||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=i.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=i.prototype,i.prototype.constructor==Object.prototype.constructor&&(i.prototype.constructor=i),s){var o;for(o in s)e.prototype[o]=s[o];var a=function(){},c=["toString","valueOf"];try{/MSIE/.test(n.userAgent)&&(a=function(t,e){for(o=0;o>>2]|=(i[r>>>2]>>>24-r%4*8&255)<<24-(n+r)%4*8;else for(r=0;r>>2]=i[r>>>2];return this.sigBytes+=s,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=o.ceil(e/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i>>2]>>>24-s%4*8&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new l.init(i,e/2)}},p=h.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],s=0;s>>2]>>>24-s%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new l.init(i,e)}},f=h.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},g=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,i=e.words,n=e.sigBytes,s=this.blockSize,r=n/(4*s),a=(r=t?o.ceil(r):o.max((0|r)-this._minBufferSize,0))*s,c=o.min(4*a,n);if(a){for(var u=0;u>>2]>>>24-s%4*8&255)<<16|(e[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|e[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;4>o&&s+.75*o>>6*(3-o)&63));if(e=n.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(e){var i=e.length,n=this._map;(s=n.charAt(64))&&-1!=(s=e.indexOf(s))&&(i=s);for(var s=[],r=0,o=0;o>>6-o%4*2;s[r>>>2]|=(a|c)<<24-r%4*8,r++}return t.create(s,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){for(var e=_,i=(s=e.lib).WordArray,n=s.Hasher,s=e.algo,r=[],o=[],a=function(t){return 4294967296*(t-(0|t))|0},c=2,u=0;64>u;){var l;t:{for(var h=t.sqrt(l=c),d=2;d<=h;d++)if(!(l%d)){l=!1;break t}l=!0}l&&(8>u&&(r[u]=a(t.pow(c,.5))),o[u]=a(t.pow(c,1/3)),u++),c++}var p=[];s=s.SHA256=n.extend({_doReset:function(){this._hash=new i.init(r.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],s=i[1],r=i[2],a=i[3],c=i[4],u=i[5],l=i[6],h=i[7],d=0;64>d;d++){if(16>d)p[d]=0|t[e+d];else{var f=p[d-15],g=p[d-2];p[d]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+p[d-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+p[d-16]}f=h+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&u^~c&l)+o[d]+p[d],g=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&s^n&r^s&r),h=l,l=u,u=c,c=a+f|0,a=r,r=s,s=n,n=f+g|0}i[0]=i[0]+n|0,i[1]=i[1]+s|0,i[2]=i[2]+r|0,i[3]=i[3]+a|0,i[4]=i[4]+c|0,i[5]=i[5]+u|0,i[6]=i[6]+l|0,i[7]=i[7]+h|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,s=8*e.sigBytes;return i[s>>>5]|=128<<24-s%32,i[14+(s+64>>>9<<4)]=t.floor(n/4294967296),i[15+(s+64>>>9<<4)]=n,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),e.SHA256=n._createHelper(s),e.HmacSHA256=n._createHmacHelper(s)}(Math),function(){function t(){return n.create.apply(n,arguments)}for(var e=_,i=e.lib.Hasher,n=(r=e.x64).Word,s=r.WordArray,r=e.algo,o=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],a=[],c=0;80>c;c++)a[c]=t();r=r.SHA512=i.extend({_doReset:function(){this._hash=new s.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var i=(h=this._hash.words)[0],n=h[1],s=h[2],r=h[3],c=h[4],u=h[5],l=h[6],h=h[7],d=i.high,p=i.low,f=n.high,g=n.low,m=s.high,_=s.low,b=r.high,y=r.low,w=c.high,M=c.low,A=u.high,v=u.low,T=l.high,k=l.low,S=h.high,C=h.low,E=d,L=p,z=f,R=g,x=m,O=_,D=b,P=y,N=w,I=M,B=A,F=v,H=T,q=k,j=S,Y=C,W=0;80>W;W++){var U=a[W];if(16>W)var K=U.high=0|t[e+2*W],V=U.low=0|t[e+2*W+1];else{K=((V=(K=a[W-15]).high)>>>1|(X=K.low)<<31)^(V>>>8|X<<24)^V>>>7;var X=(X>>>1|V<<31)^(X>>>8|V<<24)^(X>>>7|V<<25),G=((V=(G=a[W-2]).high)>>>19|($=G.low)<<13)^(V<<3|$>>>29)^V>>>6,$=($>>>19|V<<13)^($<<3|V>>>29)^($>>>6|V<<26),J=(V=a[W-7]).high,Q=(Z=a[W-16]).high,Z=Z.low;K=(K=(K=K+J+((V=X+V.low)>>>0>>0?1:0))+G+((V+=$)>>>0<$>>>0?1:0))+Q+((V+=Z)>>>0>>0?1:0),U.high=K,U.low=V}U=E&z^E&x^z&x;var tt=L&R^L&O^R&O,et=(X=(E>>>28|L<<4)^(E<<30|L>>>2)^(E<<25|L>>>7),G=(L>>>28|E<<4)^(L<<30|E>>>2)^(L<<25|E>>>7),($=o[W]).high),it=$.low;Q=(Q=(Q=(Q=j+((N>>>14|I<<18)^(N>>>18|I<<14)^(N<<23|I>>>9))+(($=Y+((I>>>14|N<<18)^(I>>>18|N<<14)^(I<<23|N>>>9)))>>>0>>0?1:0))+(J=N&B^~N&H)+(($+=Z=I&F^~I&q)>>>0>>0?1:0))+et+(($+=it)>>>0>>0?1:0))+K+(($+=V)>>>0>>0?1:0),j=H,Y=q,H=B,q=F,B=N,F=I,N=D+Q+((I=P+$|0)>>>0

>>0?1:0)|0,D=x,P=O,x=z,O=R,z=E,R=L,E=Q+(U=X+U+((V=G+tt)>>>0>>0?1:0))+((L=$+V|0)>>>0<$>>>0?1:0)|0}p=i.low=p+L,i.high=d+E+(p>>>0>>0?1:0),g=n.low=g+R,n.high=f+z+(g>>>0>>0?1:0),_=s.low=_+O,s.high=m+x+(_>>>0>>0?1:0),y=r.low=y+P,r.high=b+D+(y>>>0

>>0?1:0),M=c.low=M+I,c.high=w+N+(M>>>0>>0?1:0),v=u.low=v+F,u.high=A+B+(v>>>0>>0?1:0),k=l.low=k+q,l.high=T+H+(k>>>0>>0?1:0),C=h.low=C+Y,h.high=S+j+(C>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(n+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),e.SHA512=i._createHelper(r),e.HmacSHA512=i._createHmacHelper(r)}(),function(){var t=_,e=(s=t.x64).Word,i=s.WordArray,n=(s=t.algo).SHA512,s=s.SHA384=n.extend({_doReset:function(){this._hash=new i.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=n._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=n._createHelper(s),t.HmacSHA384=n._createHmacHelper(s)}();var b,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function w(t){var e,i,n="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),n+=y.charAt(i>>6)+y.charAt(63&i);for(e+1==t.length?(i=parseInt(t.substring(e,e+1),16),n+=y.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),n+=y.charAt(i>>2)+y.charAt((3&i)<<4));(3&n.length)>0;)n+="=";return n}function M(t){var e,i,n,s="",r=0;for(e=0;e>2),i=3&n,r=1):1==r?(s+=E(i<<2|n>>4),i=15&n,r=2):2==r?(s+=E(i),s+=E(n>>2),i=3&n,r=3):(s+=E(i<<2|n>>4),s+=E(15&n),r=0));return 1==r&&(s+=E(i<<2)),s}function A(t){var e,i=M(t),n=new Array;for(e=0;2*e>15;--r>=0;){var c=32767&this[t],u=this[t++]>>15,l=a*c+u*o;s=((c=o*c+((32767&l)<<15)+i[n]+(1073741823&s))>>>30)+(l>>>15)+a*u+(s>>>30),i[n++]=1073741823&c}return s},b=30):"Netscape"!=n.appName?(v.prototype.am=function(t,e,i,n,s,r){for(;--r>=0;){var o=e*this[t++]+i[n]+s;s=Math.floor(o/67108864),i[n++]=67108863&o}return s},b=26):(v.prototype.am=function(t,e,i,n,s,r){for(var o=16383&e,a=e>>14;--r>=0;){var c=16383&this[t],u=this[t++]>>14,l=a*c+u*o;s=((c=o*c+((16383&l)<<14)+i[n]+s)>>28)+(l>>14)+a*u,i[n++]=268435455&c}return s},b=28),v.prototype.DB=b,v.prototype.DM=(1<>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}function x(t){this.m=t}function O(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function F(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function H(){}function q(t){return t}function j(t){this.r2=T(),this.q3=T(),v.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}x.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},x.prototype.revert=function(t){return t},x.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},x.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},x.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},O.prototype.convert=function(t){var e=T();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(v.ZERO)>0&&this.m.subTo(e,e),e},O.prototype.revert=function(t){var e=T();return t.copyTo(e),this.reduce(e),e},O.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[i=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},O.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},O.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},v.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},v.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},v.prototype.fromString=function(t,e){var i;if(16==e)i=4;else if(8==e)i=3;else if(256==e)i=8;else if(2==e)i=1;else if(32==e)i=5;else{if(4!=e)return void this.fromRadix(t,e);i=2}this.t=0,this.s=0;for(var n=t.length,s=!1,r=0;--n>=0;){var o=8==i?255&t[n]:L(t,n);o<0?"-"==t.charAt(n)&&(s=!0):(s=!1,0==r?this[this.t++]=o:r+i>this.DB?(this[this.t-1]|=(o&(1<>this.DB-r):this[this.t-1]|=o<=this.DB&&(r-=this.DB))}8==i&&0!=(128&t[0])&&(this.s=-1,r>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},v.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},v.prototype.drShiftTo=function(t,e){for(var i=t;i=0;--i)e[i+o+1]=this[i]>>s|a,a=(this[i]&r)<=0;--i)e[i]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},v.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var n=t%this.DB,s=this.DB-n,r=(1<>n;for(var o=i+1;o>n;n>0&&(e[this.t-i-1]|=(this.s&r)<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[i++]=this.DV+n:n>0&&(e[i++]=n),e.t=i,e.clamp()},v.prototype.multiplyTo=function(t,e){var i=this.abs(),n=t.abs(),s=i.t;for(e.t=s+n.t;--s>=0;)e[s]=0;for(s=0;s=0;)t[i]=0;for(i=0;i=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},v.prototype.divRemTo=function(t,e,i){var n=t.abs();if(!(n.t<=0)){var s=this.abs();if(s.t0?(n.lShiftTo(c,r),s.lShiftTo(c,i)):(n.copyTo(r),s.copyTo(i));var u=r.t,l=r[u-1];if(0!=l){var h=l*(1<1?r[u-2]>>this.F2:0),d=this.FV/h,p=(1<=0&&(i[i.t++]=1,i.subTo(_,i)),v.ONE.dlShiftTo(u,_),_.subTo(r,r);r.t=0;){var b=i[--g]==l?this.DM:Math.floor(i[g]*d+(i[g-1]+f)*p);if((i[g]+=r.am(0,b,i,m,0,u))0&&i.rShiftTo(c,i),o<0&&v.ZERO.subTo(i,i)}}},v.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},v.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},v.prototype.exp=function(t,e){if(t>4294967295||t<1)return v.ONE;var i=T(),n=T(),s=e.convert(this),r=R(t)-1;for(s.copyTo(i);--r>=0;)if(e.sqrTo(i,n),(t&1<0)e.mulTo(n,s,i);else{var o=i;i=n,n=o}return e.revert(i)},v.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,n=(1<0)for(a>a)>0&&(s=!0,r=E(i));o>=0;)a>(a+=this.DB-e)):(i=this[o]>>(a-=e)&n,a<=0&&(a+=this.DB,--o)),i>0&&(s=!0),s&&(r+=E(i));return s?r:"0"},v.prototype.negate=function(){var t=T();return v.ZERO.subTo(this,t),t},v.prototype.abs=function(){return this.s<0?this.negate():this},v.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-t.t))return this.s<0?-e:e;for(;--i>=0;)if(0!=(e=this[i]-t[i]))return e;return 0},v.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+R(this[this.t-1]^this.s&this.DM)},v.prototype.mod=function(t){var e=T();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(v.ZERO)>0&&t.subTo(e,e),e},v.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new x(e):new O(e),this.exp(t,i)},v.ZERO=z(0),v.ONE=z(1),H.prototype.convert=q,H.prototype.revert=q,H.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},H.prototype.sqrTo=function(t,e){t.squareTo(e)},j.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=T();return t.copyTo(e),this.reduce(e),e},j.prototype.revert=function(t){return t},j.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},j.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},j.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var Y,W,U,K=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],V=(1<<26)/K[K.length-1];function X(){this.i=0,this.j=0,this.S=new Array}function G(){!function(t){W[U++]^=255&t,W[U++]^=t>>8&255,W[U++]^=t>>16&255,W[U++]^=t>>24&255,U>=256&&(U-=256)}((new Date).getTime())}if(v.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},v.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),n=z(i),s=T(),r=T(),o="";for(this.divRemTo(n,s,r);s.signum()>0;)o=(i+r.intValue()).toString(t).substr(1)+o,s.divRemTo(n,s,r);return r.intValue().toString(t)+o},v.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var i=this.chunkSize(e),n=Math.pow(e,i),s=!1,r=0,o=0,a=0;a=i&&(this.dMultiply(n),this.dAddOffset(o,0),r=0,o=0))}r>0&&(this.dMultiply(Math.pow(e,r)),this.dAddOffset(o,0)),s&&v.ZERO.subTo(this,this)},v.prototype.fromNumber=function(t,e,i){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(v.ONE.shiftLeft(t-1),P,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(v.ONE.shiftLeft(t-1),this);else{var n=new Array,s=7&t;n.length=1+(t>>3),e.nextBytes(n),s>0?n[0]&=(1<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[i++]=n:n<-1&&(e[i++]=this.DV+n),e.t=i,e.clamp()},v.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},v.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},v.prototype.multiplyLowerTo=function(t,e,i){var n,s=Math.min(this.t+t.t,e);for(i.s=0,i.t=s;s>0;)i[--s]=0;for(n=i.t-this.t;s=0;)i[n]=0;for(n=Math.max(e-this.t,0);n0)if(0==e)i=this[0]%t;else for(var n=this.t-1;n>=0;--n)i=(e*i+this[n])%t;return i},v.prototype.millerRabin=function(t){var e=this.subtract(v.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var n=e.shiftRight(i);(t=t+1>>1)>K.length&&(t=K.length);for(var s=T(),r=0;r>24},v.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},v.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},v.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var i,n=this.DB-t*this.DB%8,s=0;if(t-- >0)for(n>n)!=(this.s&this.DM)>>n&&(e[s++]=i|this.s<=0;)n<8?(i=(this[t]&(1<>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==s&&(128&this.s)!=(128&i)&&++s,(s>0||i!=this.s)&&(e[s++]=i);return e},v.prototype.equals=function(t){return 0==this.compareTo(t)},v.prototype.min=function(t){return this.compareTo(t)<0?this:t},v.prototype.max=function(t){return this.compareTo(t)>0?this:t},v.prototype.and=function(t){var e=T();return this.bitwiseTo(t,D,e),e},v.prototype.or=function(t){var e=T();return this.bitwiseTo(t,P,e),e},v.prototype.xor=function(t){var e=T();return this.bitwiseTo(t,N,e),e},v.prototype.andNot=function(t){var e=T();return this.bitwiseTo(t,I,e),e},v.prototype.not=function(){for(var t=T(),e=0;e=this.t?0!=this.s:0!=(this[e]&1<1){var l=T();for(n.sqrTo(o[1],l);a<=u;)o[a]=T(),n.mulTo(l,o[a-2],o[a]),a+=2}var h,d,p=t.t-1,f=!0,g=T();for(s=R(t[p])-1;p>=0;){for(s>=c?h=t[p]>>s-c&u:(h=(t[p]&(1<0&&(h|=t[p-1]>>this.DB+s-c)),a=i;0==(1&h);)h>>=1,--a;if((s-=a)<0&&(s+=this.DB,--p),f)o[h].copyTo(r),f=!1;else{for(;a>1;)n.sqrTo(r,g),n.sqrTo(g,r),a-=2;a>0?n.sqrTo(r,g):(d=r,r=g,g=d),n.mulTo(g,o[h],r)}for(;p>=0&&0==(t[p]&1<=0?(i.subTo(n,i),e&&s.subTo(o,s),r.subTo(a,r)):(n.subTo(i,n),e&&o.subTo(s,o),a.subTo(r,a))}return 0!=n.compareTo(v.ONE)?v.ZERO:a.compareTo(t)>=0?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},v.prototype.pow=function(t){return this.exp(t,new H)},v.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var n=e;e=i,i=n}var s=e.getLowestSetBit(),r=i.getLowestSetBit();if(r<0)return e;for(s0&&(e.rShiftTo(r,e),i.rShiftTo(r,i));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return r>0&&i.lShiftTo(r,i),i},v.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=K[K.length-1]){for(e=0;e>>8,W[U++]=255&$;U=0,G()}function tt(){if(null==Y){for(G(),(Y=new X).init(W),U=0;U>24,(16711680&s)>>16,(65280&s)>>8,255&s]))),s+=1;return n}function st(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function rt(t,e){this.x=e,this.q=t}function ot(t,e,i,n){this.curve=t,this.x=e,this.y=i,this.z=null==n?v.ONE:n,this.zinv=null}function at(t,e,i){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(i),this.infinity=new ot(this,null,null)}et.prototype.nextBytes=function(t){var e;for(e=0;e0&&e.length>0))throw"Invalid RSA public key";this.n=it(t,16),this.e=parseInt(e,16)}},st.prototype.encrypt=function(t){var e=function(t,e){if(e=0&&e>0;){var s=t.charCodeAt(n--);s<128?i[--e]=s:s>127&&s<2048?(i[--e]=63&s|128,i[--e]=s>>6|192):(i[--e]=63&s|128,i[--e]=s>>6&63|128,i[--e]=s>>12|224)}i[--e]=0;for(var r=new et,o=new Array;e>2;){for(o[0]=0;0==o[0];)r.nextBytes(o);i[--e]=o[0]}return i[--e]=2,i[--e]=0,new v(i)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var i=this.doPublic(e);if(null==i)return null;var n=i.toString(16);return 0==(1&n.length)?n:"0"+n},st.prototype.encryptOAEP=function(t,e,i){var n=function(t,e,i,n){var s=ut.crypto.MessageDigest,r=ut.crypto.Util,o=null;if(i||(i="sha1"),"string"==typeof i&&(o=s.getCanonicalAlgName(i),n=s.getHashLength(o),i=function(t){return vt(r.hashHex(Tt(t),o))}),t.length+2*n+2>e)throw"Message too long for RSA";var a,c="";for(a=0;a>3,e,i);if(null==n)return null;var s=this.doPublic(n);if(null==s)return null;var r=s.toString(16);return 0==(1&r.length)?r:"0"+r},st.prototype.type="RSA",rt.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},rt.prototype.toBigInteger=function(){return this.x},rt.prototype.negate=function(){return new rt(this.q,this.x.negate().mod(this.q))},rt.prototype.add=function(t){return new rt(this.q,this.x.add(t.toBigInteger()).mod(this.q))},rt.prototype.subtract=function(t){return new rt(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},rt.prototype.multiply=function(t){return new rt(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},rt.prototype.square=function(){return new rt(this.q,this.x.square().mod(this.q))},rt.prototype.divide=function(t){return new rt(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},ot.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ot.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ot.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(v.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(v.ZERO))},ot.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(v.ZERO)&&!this.y.toBigInteger().equals(v.ZERO)},ot.prototype.negate=function(){return new ot(this.curve,this.x,this.y.negate(),this.z)},ot.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),i=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(v.ZERO.equals(i))return v.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new v("3"),s=this.x.toBigInteger(),r=this.y.toBigInteger(),o=(t.x.toBigInteger(),t.y.toBigInteger(),i.square()),a=o.multiply(i),c=s.multiply(o),u=e.square().multiply(this.z),l=u.subtract(c.shiftLeft(1)).multiply(t.z).subtract(a).multiply(i).mod(this.curve.q),h=c.multiply(n).multiply(e).subtract(r.multiply(a)).subtract(u.multiply(e)).multiply(t.z).add(e.multiply(a)).mod(this.curve.q),d=a.multiply(this.z).multiply(t.z).mod(this.curve.q);return new ot(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(h),d)},ot.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=new v("3"),e=this.x.toBigInteger(),i=this.y.toBigInteger(),n=i.multiply(this.z),s=n.multiply(i).mod(this.curve.q),r=this.curve.a.toBigInteger(),o=e.square().multiply(t);v.ZERO.equals(r)||(o=o.add(this.z.square().multiply(r)));var a=(o=o.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(s)).shiftLeft(1).multiply(n).mod(this.curve.q),c=o.multiply(t).multiply(e).subtract(s.shiftLeft(1)).shiftLeft(2).multiply(s).subtract(o.square().multiply(o)).mod(this.curve.q),u=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new ot(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(c),u)},ot.prototype.multiply=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new v("3")),s=this.negate(),r=this;for(e=n.bitLength()-2;e>0;--e){r=r.twice();var o=n.testBit(e);o!=i.testBit(e)&&(r=r.add(o?this:s))}return r},ot.prototype.multiplyTwo=function(t,e,i){var n;n=t.bitLength()>i.bitLength()?t.bitLength()-1:i.bitLength()-1;for(var s=this.curve.getInfinity(),r=this.add(e);n>=0;)s=s.twice(),t.testBit(n)?s=i.testBit(n)?s.add(r):s.add(this):i.testBit(n)&&(s=s.add(e)),--n;return s},at.prototype.getQ=function(){return this.q},at.prototype.getA=function(){return this.a},at.prototype.getB=function(){return this.b},at.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},at.prototype.getInfinity=function(){return this.infinity},at.prototype.fromBigInteger=function(t){return new rt(this.q,t)},at.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,i=t.substr(2,e),n=t.substr(e+2,e);return new ot(this,this.fromBigInteger(new v(i,16)),this.fromBigInteger(new v(n,16)));default:return null}},rt.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},ot.prototype.getEncoded=function(t){var e=function(t,e){var i=t.toByteArrayUnsigned();if(ei.length;)i.unshift(0);return i},i=this.getX().toBigInteger(),n=this.getY().toBigInteger(),s=e(i,32);return t?n.isEven()?s.unshift(2):s.unshift(3):(s.unshift(4),s=s.concat(e(n,32))),s},ot.decodeFrom=function(t,e){var i=e.length-1,n=e.slice(1,1+i/2),s=e.slice(1+i/2,1+i);n.unshift(0),s.unshift(0);var r=new v(n),o=new v(s);return new ot(t,t.fromBigInteger(r),t.fromBigInteger(o))},ot.decodeFromHex=function(t,e){e.substr(0,2);var i=e.length-2,n=e.substr(2,i/2),s=e.substr(2+i/2,i/2),r=new v(n,16),o=new v(s,16);return new ot(t,t.fromBigInteger(r),t.fromBigInteger(o))},ot.prototype.add2D=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;if(this.x.equals(t.x))return this.y.equals(t.y)?this.twice():this.curve.getInfinity();var e=t.x.subtract(this.x),i=t.y.subtract(this.y).divide(e),n=i.square().subtract(this.x).subtract(t.x),s=i.multiply(this.x.subtract(n)).subtract(this.y);return new ot(this.curve,n,s)},ot.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=this.curve.fromBigInteger(v.valueOf(2)),e=this.curve.fromBigInteger(v.valueOf(3)),i=this.x.square().multiply(e).add(this.curve.a).divide(this.y.multiply(t)),n=i.square().subtract(this.x.multiply(t)),s=i.multiply(this.x.subtract(n)).subtract(this.y);return new ot(this.curve,n,s)},ot.prototype.multiply2D=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new v("3")),s=this.negate(),r=this;for(e=n.bitLength()-2;e>0;--e){r=r.twice();var o=n.testBit(e);o!=i.testBit(e)&&(r=r.add2D(o?this:s))}return r},ot.prototype.isOnCurve=function(){var t=this.getX().toBigInteger(),e=this.getY().toBigInteger(),i=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),s=this.curve.getQ(),r=e.multiply(e).mod(s),o=t.multiply(t).multiply(t).add(i.multiply(t)).add(n).mod(s);return r.equals(o)},ot.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},ot.prototype.validate=function(){var t=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var e=this.getX().toBigInteger(),i=this.getY().toBigInteger();if(e.compareTo(v.ONE)<0||e.compareTo(t.subtract(v.ONE))>0)throw new Error("x coordinate out of bounds");if(i.compareTo(v.ONE)<0||i.compareTo(t.subtract(v.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(t).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ct=function(){var t=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),e=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),n={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function s(t,e,i){return e?n[e]:String.fromCharCode(parseInt(i,16))}var r=new String(""),o=Object.hasOwnProperty;return function(n,a){var c,u,l=n.match(t),h=l[0],d=!1;"{"===h?c={}:"["===h?c=[]:(c=[],d=!0);for(var p=[c],f=1-d,g=l.length;f=0;)delete s[r[l]]}return a.call(e,n,s)}({"":c},"")),c}}();void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.asn1&&ut.asn1||(ut.asn1={}),ut.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var i=e.substr(1).length;i%2==1?i+=1:e.match(/^[0-7]/)||(i+=2);for(var n="",s=0;s15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+i).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ut.asn1.DERAbstractString=function(t){ut.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=Mt(this.s).toLowerCase()},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},r.lang.extend(ut.asn1.DERAbstractString,ut.asn1.ASN1Object),ut.asn1.DERAbstractTime=function(t){ut.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,i){var n=this.zeroPadding,s=this.localDateToUTC(t),r=String(s.getFullYear());"utc"==e&&(r=r.substr(2,2));var o=r+n(String(s.getMonth()+1),2)+n(String(s.getDate()),2)+n(String(s.getHours()),2)+n(String(s.getMinutes()),2)+n(String(s.getSeconds()),2);if(!0===i){var a=s.getMilliseconds();if(0!=a){var c=n(String(a),3);o=o+"."+(c=c.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=mt(t)},this.setByDateValue=function(t,e,i,n,s,r){var o=new Date(Date.UTC(t,e-1,i,n,s,r,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},r.lang.extend(ut.asn1.DERAbstractTime,ut.asn1.ASN1Object),ut.asn1.DERAbstractStructured=function(t){ut.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},r.lang.extend(ut.asn1.DERAbstractStructured,ut.asn1.ASN1Object),ut.asn1.DERBoolean=function(){ut.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},r.lang.extend(ut.asn1.DERBoolean,ut.asn1.ASN1Object),ut.asn1.DERInteger=function(t){ut.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ut.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new v(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},r.lang.extend(ut.asn1.DERInteger,ut.asn1.ASN1Object),ut.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=ut.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}ut.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7s.length&&(s=n[i]);return(t=t.replace(s,"::")).slice(1,-1)}function Nt(t){var e="malformed hex value";if(!t.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw e;if(8!=t.length)return 32==t.length?Pt(t):t;try{return parseInt(t.substr(0,2),16)+"."+parseInt(t.substr(2,2),16)+"."+parseInt(t.substr(4,2),16)+"."+parseInt(t.substr(6,2),16)}catch(t){throw e}}function It(t){for(var e=encodeURIComponent(t),i="",n=0;n"7"?"00"+t:t}dt.getLblen=function(t,e){if("8"!=t.substr(e+2,1))return 1;var i=parseInt(t.substr(e+3,1));return 0==i?-1:0=2*r)break;if(a>=200)break;n.push(c),o=c,a++}return n},dt.getNthChildIdx=function(t,e,i){return dt.getChildIdx(t,e)[i]},dt.getIdxbyList=function(t,e,i,n){var s,r,o=dt;if(0==i.length){if(void 0!==n&&t.substr(e,2)!==n)throw"checking tag doesn't match: "+t.substr(e,2)+"!="+n;return e}return s=i.shift(),r=o.getChildIdx(t,e),o.getIdxbyList(t,r[s],i,n)},dt.getTLVbyList=function(t,e,i,n){var s=dt,r=s.getIdxbyList(t,e,i);if(void 0===r)throw"can't find nthList object";if(void 0!==n&&t.substr(r,2)!=n)throw"checking tag doesn't match: "+t.substr(r,2)+"!="+n;return s.getTLV(t,r)},dt.getVbyList=function(t,e,i,n,s){var r,o,a=dt;if(void 0===(r=a.getIdxbyList(t,e,i,n)))throw"can't find nthList object";return o=a.getV(t,r),!0===s&&(o=o.substr(2)),o},dt.hextooidstr=function(t){var e=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},i=[],n=t.substr(0,2),s=parseInt(n,16);i[0]=new String(Math.floor(s/40)),i[1]=new String(s%40);for(var r=t.substr(2),o=[],a=0;a0&&(l=l+"."+c.join(".")),l},dt.dump=function(t,e,i,n){var s=dt,r=s.getV,o=s.dump,a=s.getChildIdx,c=t;t instanceof ut.asn1.ASN1Object&&(c=t.getEncodedHex());var u=function(t,e){return t.length<=2*e?t:t.substr(0,e)+"..(total "+t.length/2+"bytes).."+t.substr(t.length-e,e)};void 0===e&&(e={ommit_long_octet:32}),void 0===i&&(i=0),void 0===n&&(n="");var l=e.ommit_long_octet;if("01"==c.substr(i,2))return"00"==(h=r(c,i))?n+"BOOLEAN FALSE\n":n+"BOOLEAN TRUE\n";if("02"==c.substr(i,2))return n+"INTEGER "+u(h=r(c,i),l)+"\n";if("03"==c.substr(i,2))return n+"BITSTRING "+u(h=r(c,i),l)+"\n";if("04"==c.substr(i,2)){var h=r(c,i);return s.isASN1HEX(h)?(A=n+"OCTETSTRING, encapsulates\n")+o(h,e,0,n+" "):n+"OCTETSTRING "+u(h,l)+"\n"}if("05"==c.substr(i,2))return n+"NULL\n";if("06"==c.substr(i,2)){var d=r(c,i),p=ut.asn1.ASN1Util.oidHexToInt(d),f=ut.asn1.x509.OID.oid2name(p),g=p.replace(/\./g," ");return""!=f?n+"ObjectIdentifier "+f+" ("+g+")\n":n+"ObjectIdentifier ("+g+")\n"}if("0c"==c.substr(i,2))return n+"UTF8String '"+At(r(c,i))+"'\n";if("13"==c.substr(i,2))return n+"PrintableString '"+At(r(c,i))+"'\n";if("14"==c.substr(i,2))return n+"TeletexString '"+At(r(c,i))+"'\n";if("16"==c.substr(i,2))return n+"IA5String '"+At(r(c,i))+"'\n";if("17"==c.substr(i,2))return n+"UTCTime "+At(r(c,i))+"\n";if("18"==c.substr(i,2))return n+"GeneralizedTime "+At(r(c,i))+"\n";if("30"==c.substr(i,2)){if("3000"==c.substr(i,4))return n+"SEQUENCE {}\n";A=n+"SEQUENCE\n";var m=e;if((2==(y=a(c,i)).length||3==y.length)&&"06"==c.substr(y[0],2)&&"04"==c.substr(y[y.length-1],2)){f=s.oidname(r(c,y[0]));var _=JSON.parse(JSON.stringify(e));_.x509ExtName=f,m=_}for(var b=0;bs)throw"key is too short for SigAlg: keylen="+i+","+e;for(var r="0001",o="00"+n,a="",c=s-r.length-o.length,u=0;u=0)return!1;if(i.compareTo(v.ONE)<0||i.compareTo(s)>=0)return!1;var o=i.modInverse(s),a=t.multiply(o).mod(s),c=e.multiply(o).mod(s);return r.multiply(a).add(n.multiply(c)).getX().toBigInteger().mod(s).equals(e)},this.serializeSig=function(t,e){var i=t.toByteArraySigned(),n=e.toByteArraySigned(),s=[];return s.push(2),s.push(i.length),(s=s.concat(i)).push(2),s.push(n.length),(s=s.concat(n)).unshift(s.length),s.unshift(48),s},this.parseSig=function(t){var e;if(48!=t[0])throw new Error("Signature not a valid DERSequence");if(2!=t[e=2])throw new Error("First element in signature must be a DERInteger");var i=t.slice(e+2,e+2+t[e+1]);if(2!=t[e+=2+t[e+1]])throw new Error("Second element in signature must be a DERInteger");var n=t.slice(e+2,e+2+t[e+1]);return e+=2+t[e+1],{r:v.fromByteArrayUnsigned(i),s:v.fromByteArrayUnsigned(n)}},this.parseSigCompact=function(t){if(65!==t.length)throw"Signature has the wrong length";var e=t[0]-27;if(e<0||e>7)throw"Invalid signature type";var i=this.ecparams.n;return{r:v.fromByteArrayUnsigned(t.slice(1,33)).mod(i),s:v.fromByteArrayUnsigned(t.slice(33,65)).mod(i),i:e}},this.readPKCS5PrvKeyHex=function(t){var e,i,n,s=ut.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=r(t,0,[2,0],"06"),i=r(t,0,[1],"04");try{n=r(t,0,[3,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=s(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(t){var e,i,n,s=ut.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{r(t,0,[1,0],"06"),e=r(t,0,[1,1],"06"),i=r(t,0,[2,0,1],"04");try{n=r(t,0,[2,0,2,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=s(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PubKeyHex=function(t){var e,i,n=ut.crypto.ECDSA.getName,s=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{s(t,0,[0,0],"06"),e=s(t,0,[0,1],"06"),i=s(t,0,[1],"03").substr(2)}catch(t){throw"malformed PKCS#8 ECC public key"}if(this.curveName=n(e),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},this.readCertPubKeyHex=function(t,e){5!==e&&(e=6);var i,n,s=ut.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{i=r(t,0,[0,e,0,1],"06"),n=r(t,0,[0,e,1],"03").substr(2)}catch(t){throw"malformed X.509 certificate ECC public key"}if(this.curveName=s(i),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},void 0!==t&&void 0!==t.curve&&(this.curveName=t.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==t&&(void 0!==t.prv&&this.setPrivateKeyHex(t.prv),void 0!==t.pub&&this.setPublicKeyHex(t.pub))},ut.crypto.ECDSA.parseSigHex=function(t){var e=ut.crypto.ECDSA.parseSigHexInHexRS(t);return{r:new v(e.r,16),s:new v(e.s,16)}},ut.crypto.ECDSA.parseSigHexInHexRS=function(t){var e=dt.getChildIdx,i=dt.getV;if("30"!=t.substr(0,2))throw"signature is not a ASN.1 sequence";var n=e(t,0);if(2!=n.length)throw"number of signature ASN.1 sequence elements seem wrong";var s=n[0],r=n[1];if("02"!=t.substr(s,2))throw"1st item of sequene of signature is not ASN.1 integer";if("02"!=t.substr(r,2))throw"2nd item of sequene of signature is not ASN.1 integer";return{r:i(t,s),s:i(t,r)}},ut.crypto.ECDSA.asn1SigToConcatSig=function(t){var e=ut.crypto.ECDSA.parseSigHexInHexRS(t),i=e.r,n=e.s;if("00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),"00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),i.length%32==30&&(i="00"+i),n.length%32==30&&(n="00"+n),i.length%32!=0)throw"unknown ECDSA sig r length error";if(n.length%32!=0)throw"unknown ECDSA sig s length error";return i+n},ut.crypto.ECDSA.concatSigToASN1Sig=function(t){if(t.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var e=t.substr(0,t.length/2),i=t.substr(t.length/2);return ut.crypto.ECDSA.hexRSSigToASN1Sig(e,i)},ut.crypto.ECDSA.hexRSSigToASN1Sig=function(t,e){var i=new v(t,16),n=new v(e,16);return ut.crypto.ECDSA.biRSSigToASN1Sig(i,n)},ut.crypto.ECDSA.biRSSigToASN1Sig=function(t,e){var i=ut.asn1,n=new i.DERInteger({bigint:t}),s=new i.DERInteger({bigint:e});return new i.DERSequence({array:[n,s]}).getEncodedHex()},ut.crypto.ECDSA.getName=function(t){return"2a8648ce3d030107"===t?"secp256r1":"2b8104000a"===t?"secp256k1":"2b81040022"===t?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(t)?"secp256r1":-1!=="|secp256k1|".indexOf(t)?"secp256k1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(t)?"secp384r1":null},void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.crypto&&ut.crypto||(ut.crypto={}),ut.crypto.ECParameterDB=new function(){var t={},e={};function i(t){return new v(t,16)}this.getByName=function(i){var n=i;if(void 0!==e[n]&&(n=e[i]),void 0!==t[n])return t[n];throw"unregistered EC curve name: "+n},this.regist=function(n,s,r,o,a,c,u,l,h,d,p,f){t[n]={};var g=i(r),m=i(o),_=i(a),b=i(c),y=i(u),w=new at(g,m,_),M=w.decodePointHex("04"+l+h);t[n].name=n,t[n].keylen=s,t[n].curve=w,t[n].G=M,t[n].n=b,t[n].h=y,t[n].oid=p,t[n].info=f;for(var A=0;A=2*a)break}var h={};return h.keyhex=c.substr(0,2*s[t].keylen),h.ivhex=c.substr(2*s[t].keylen,2*s[t].ivlen),h},a=function(t,e,i,n){var r=_.enc.Base64.parse(t),o=_.enc.Hex.stringify(r);return(0,s[e].proc)(o,i,n)};return{version:"1.0.0",parsePKCS5PEM:function(t){return r(t)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(t,e,i){return o(t,e,i)},decryptKeyB64:function(t,e,i,n){return a(t,e,i,n)},getDecryptedKeyHex:function(t,e){var i=r(t),n=i.cipher,s=i.ivsalt,c=i.data,u=o(n,e,s).keyhex;return a(c,n,u,s)},getEncryptedPKCS5PEMFromPrvKeyHex:function(t,e,i,n,r){var a="";if(void 0!==n&&null!=n||(n="AES-256-CBC"),void 0===s[n])throw"KEYUTIL unsupported algorithm: "+n;return void 0!==r&&null!=r||(r=function(t){var e=_.lib.WordArray.random(t);return _.enc.Hex.stringify(e)}(s[n].ivlen).toUpperCase()),a="-----BEGIN "+t+" PRIVATE KEY-----\r\n",a+="Proc-Type: 4,ENCRYPTED\r\n",a+="DEK-Info: "+n+","+r+"\r\n",a+="\r\n",(a+=function(t,e,i,n){return(0,s[e].eproc)(t,i,n)}(e,n,o(n,i,r).keyhex,r).replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+t+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(e){var i=dt.getChildIdx,n=dt.getV,s={},r=i(e,0);if(2!=r.length)throw"malformed format: SEQUENCE(0).items != 2: "+r.length;s.ciphertext=n(e,r[1]);var o=i(e,r[0]);if(2!=o.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+o.length;if("2a864886f70d01050d"!=n(e,o[0]))throw"this only supports pkcs5PBES2";var a=i(e,o[1]);if(2!=o.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+a.length;var c=i(e,a[1]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+c.length;if("2a864886f70d0307"!=n(e,c[0]))throw"this only supports TripleDES";s.encryptionSchemeAlg="TripleDES",s.encryptionSchemeIV=n(e,c[1]);var u=i(e,a[0]);if(2!=u.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+u.length;if("2a864886f70d01050c"!=n(e,u[0]))throw"this only supports pkcs5PBKDF2";var l=i(e,u[1]);if(l.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+l.length;s.pbkdf2Salt=n(e,l[0]);var h=n(e,l[1]);try{s.pbkdf2Iter=parseInt(h,16)}catch(t){throw"malformed format pbkdf2Iter: "+h}return s},getPBKDF2KeyHexFromParam:function(t,e){var i=_.enc.Hex.parse(t.pbkdf2Salt),n=_.PBKDF2(e,i,{keySize:6,iterations:t.pbkdf2Iter});return _.enc.Hex.stringify(n)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(t,e){var i=Lt(t,"ENCRYPTED PRIVATE KEY"),n=this.parseHexOfEncryptedPKCS8(i),s=Ft.getPBKDF2KeyHexFromParam(n,e),r={};r.ciphertext=_.enc.Hex.parse(n.ciphertext);var o=_.enc.Hex.parse(s),a=_.enc.Hex.parse(n.encryptionSchemeIV),c=_.TripleDES.decrypt(r,o,{iv:a});return _.enc.Hex.stringify(c)},getKeyFromEncryptedPKCS8PEM:function(t,e){var i=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(t,e);return this.getKeyFromPlainPrivatePKCS8Hex(i)},parsePlainPrivatePKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,s={algparam:null};if("30"!=t.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var r=i(t,0);if(3!=r.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=t.substr(r[1],2))throw"malformed PKCS8 private key(code:003)";var o=i(t,r[1]);if(2!=o.length)throw"malformed PKCS8 private key(code:004)";if("06"!=t.substr(o[0],2))throw"malformed PKCS8 private key(code:005)";if(s.algoid=n(t,o[0]),"06"==t.substr(o[1],2)&&(s.algparam=n(t,o[1])),"04"!=t.substr(r[2],2))throw"malformed PKCS8 private key(code:006)";return s.keyidx=e.getVidx(t,r[2]),s},getKeyFromPlainPrivatePKCS8PEM:function(t){var e=Lt(t,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(e)},getKeyFromPlainPrivatePKCS8Hex:function(t){var e,i=this.parsePlainPrivatePKCS8Hex(t);if("2a864886f70d010101"==i.algoid)e=new st;else if("2a8648ce380401"==i.algoid)e=new ut.crypto.DSA;else{if("2a8648ce3d0201"!=i.algoid)throw"unsupported private key algorithm";e=new ut.crypto.ECDSA}return e.readPKCS8PrvKeyHex(t),e},_getKeyFromPublicPKCS8Hex:function(t){var e,i=dt.getVbyList(t,0,[0,0],"06");if("2a864886f70d010101"===i)e=new st;else if("2a8648ce380401"===i)e=new ut.crypto.DSA;else{if("2a8648ce3d0201"!==i)throw"unsupported PKCS#8 public key hex";e=new ut.crypto.ECDSA}return e.readPKCS8PubKeyHex(t),e},parsePublicRawRSAKeyHex:function(t){var e=dt.getChildIdx,i=dt.getV,n={};if("30"!=t.substr(0,2))throw"malformed RSA key(code:001)";var s=e(t,0);if(2!=s.length)throw"malformed RSA key(code:002)";if("02"!=t.substr(s[0],2))throw"malformed RSA key(code:003)";if(n.n=i(t,s[0]),"02"!=t.substr(s[1],2))throw"malformed RSA key(code:004)";return n.e=i(t,s[1]),n},parsePublicPKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,s={algparam:null},r=i(t,0);if(2!=r.length)throw"outer DERSequence shall have 2 elements: "+r.length;var o=r[0];if("30"!=t.substr(o,2))throw"malformed PKCS8 public key(code:001)";var a=i(t,o);if(2!=a.length)throw"malformed PKCS8 public key(code:002)";if("06"!=t.substr(a[0],2))throw"malformed PKCS8 public key(code:003)";if(s.algoid=n(t,a[0]),"06"==t.substr(a[1],2)?s.algparam=n(t,a[1]):"30"==t.substr(a[1],2)&&(s.algparam={},s.algparam.p=e.getVbyList(t,a[1],[0],"02"),s.algparam.q=e.getVbyList(t,a[1],[1],"02"),s.algparam.g=e.getVbyList(t,a[1],[2],"02")),"03"!=t.substr(r[1],2))throw"malformed PKCS8 public key(code:004)";return s.key=n(t,r[1]).substr(2),s}}}();Ft.getKey=function(t,e,i){var n,s=(_=dt).getChildIdx,r=_.getVbyList,o=ut.crypto,a=o.ECDSA,c=o.DSA,u=st,l=Lt,h=Ft;if(void 0!==u&&t instanceof u)return t;if(void 0!==a&&t instanceof a)return t;if(void 0!==c&&t instanceof c)return t;if(void 0!==t.curve&&void 0!==t.xy&&void 0===t.d)return new a({pub:t.xy,curve:t.curve});if(void 0!==t.curve&&void 0!==t.d)return new a({prv:t.d,curve:t.curve});if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(L=new u).setPublic(t.n,t.e),L;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.co&&void 0===t.qi)return(L=new u).setPrivateEx(t.n,t.e,t.d,t.p,t.q,t.dp,t.dq,t.co),L;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0===t.p)return(L=new u).setPrivate(t.n,t.e,t.d),L;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0===t.x)return(L=new c).setPublic(t.p,t.q,t.g,t.y),L;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0!==t.x)return(L=new c).setPrivate(t.p,t.q,t.g,t.y,t.x),L;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(L=new u).setPublic(wt(t.n),wt(t.e)),L;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.qi)return(L=new u).setPrivateEx(wt(t.n),wt(t.e),wt(t.d),wt(t.p),wt(t.q),wt(t.dp),wt(t.dq),wt(t.qi)),L;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d)return(L=new u).setPrivate(wt(t.n),wt(t.e),wt(t.d)),L;if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0===t.d){var d=(E=new a({curve:t.crv})).ecparams.keylen/4,p="04"+("0000000000"+wt(t.x)).slice(-d)+("0000000000"+wt(t.y)).slice(-d);return E.setPublicKeyHex(p),E}if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0!==t.d){d=(E=new a({curve:t.crv})).ecparams.keylen/4,p="04"+("0000000000"+wt(t.x)).slice(-d)+("0000000000"+wt(t.y)).slice(-d);var f=("0000000000"+wt(t.d)).slice(-d);return E.setPublicKeyHex(p),E.setPrivateKeyHex(f),E}if("pkcs5prv"===i){var g,m=t,_=dt;if(9===(g=s(m,0)).length)(L=new u).readPKCS5PrvKeyHex(m);else if(6===g.length)(L=new c).readPKCS5PrvKeyHex(m);else{if(!(g.length>2&&"04"===m.substr(g[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(L=new a).readPKCS5PrvKeyHex(m)}return L}if("pkcs8prv"===i)return h.getKeyFromPlainPrivatePKCS8Hex(t);if("pkcs8pub"===i)return h._getKeyFromPublicPKCS8Hex(t);if("x509pub"===i)return Wt.getPublicKeyFromCertHex(t);if(-1!=t.indexOf("-END CERTIFICATE-",0)||-1!=t.indexOf("-END X509 CERTIFICATE-",0)||-1!=t.indexOf("-END TRUSTED CERTIFICATE-",0))return Wt.getPublicKeyFromCertPEM(t);if(-1!=t.indexOf("-END PUBLIC KEY-")){var b=Lt(t,"PUBLIC KEY");return h._getKeyFromPublicPKCS8Hex(b)}if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var y=l(t,"RSA PRIVATE KEY");return h.getKey(y,null,"pkcs5prv")}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var w=r(n=l(t,"DSA PRIVATE KEY"),0,[1],"02"),M=r(n,0,[2],"02"),A=r(n,0,[3],"02"),T=r(n,0,[4],"02"),k=r(n,0,[5],"02");return(L=new c).setPrivate(new v(w,16),new v(M,16),new v(A,16),new v(T,16),new v(k,16)),L}if(-1!=t.indexOf("-END PRIVATE KEY-"))return h.getKeyFromPlainPrivatePKCS8PEM(t);if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var S=h.getDecryptedKeyHex(t,e),C=new st;return C.readPKCS5PrvKeyHex(S),C}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var E,L=r(n=h.getDecryptedKeyHex(t,e),0,[1],"04"),z=r(n,0,[2,0],"06"),R=r(n,0,[3,0],"03").substr(2);if(void 0===ut.crypto.OID.oidhex2name[z])throw"undefined OID(hex) in KJUR.crypto.OID: "+z;return(E=new a({curve:ut.crypto.OID.oidhex2name[z]})).setPublicKeyHex(R),E.setPrivateKeyHex(L),E.isPublic=!1,E}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED"))return w=r(n=h.getDecryptedKeyHex(t,e),0,[1],"02"),M=r(n,0,[2],"02"),A=r(n,0,[3],"02"),T=r(n,0,[4],"02"),k=r(n,0,[5],"02"),(L=new c).setPrivate(new v(w,16),new v(M,16),new v(A,16),new v(T,16),new v(k,16)),L;if(-1!=t.indexOf("-END ENCRYPTED PRIVATE KEY-"))return h.getKeyFromEncryptedPKCS8PEM(t,e);throw"not supported argument"},Ft.generateKeypair=function(t,e){if("RSA"==t){var i=e;(o=new st).generate(i,"10001"),o.isPrivate=!0,o.isPublic=!0;var n=new st,s=o.n.toString(16),r=o.e.toString(16);return n.setPublic(s,r),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=o,a.pubKeyObj=n,a}if("EC"==t){var o,a,c=e,u=new ut.crypto.ECDSA({curve:c}).generateKeyPairHex();return(o=new ut.crypto.ECDSA({curve:c})).setPublicKeyHex(u.ecpubhex),o.setPrivateKeyHex(u.ecprvhex),o.isPrivate=!0,o.isPublic=!1,(n=new ut.crypto.ECDSA({curve:c})).setPublicKeyHex(u.ecpubhex),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=o,a.pubKeyObj=n,a}throw"unknown algorithm: "+t},Ft.getPEM=function(t,e,i,n,s,r){var o=ut.asn1,a=o.DERObjectIdentifier,c=o.DERInteger,u=o.ASN1Util.newObject,l=ut.crypto,h=l.DSA,d=l.ECDSA,p=st;function f(t){return u({seq:[{int:0},{int:{bigint:t.n}},{int:t.e},{int:{bigint:t.d}},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.dmp1}},{int:{bigint:t.dmq1}},{int:{bigint:t.coeff}}]})}function g(t){return u({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a0",!0,{oid:{name:t.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]})}function m(t){return u({seq:[{int:0},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}},{int:{bigint:t.y}},{int:{bigint:t.x}}]})}if((void 0!==p&&t instanceof p||void 0!==h&&t instanceof h||void 0!==d&&t instanceof d)&&1==t.isPublic&&(void 0===e||"PKCS8PUB"==e))return Et(M=new(0,o.x509.SubjectPublicKeyInfo)(t).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==e&&void 0!==p&&t instanceof p&&(void 0===i||null==i)&&1==t.isPrivate)return Et(M=f(t).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==e&&void 0!==d&&t instanceof d&&(void 0===i||null==i)&&1==t.isPrivate){var b=new a({name:t.curveName}).getEncodedHex(),y=g(t).getEncodedHex(),w="";return(w+=Et(b,"EC PARAMETERS"))+Et(y,"EC PRIVATE KEY")}if("PKCS1PRV"==e&&void 0!==h&&t instanceof h&&(void 0===i||null==i)&&1==t.isPrivate)return Et(M=m(t).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==e&&void 0!==p&&t instanceof p&&void 0!==i&&null!=i&&1==t.isPrivate){var M=f(t).getEncodedHex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",M,i,n,r)}if("PKCS5PRV"==e&&void 0!==d&&t instanceof d&&void 0!==i&&null!=i&&1==t.isPrivate)return M=g(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",M,i,n,r);if("PKCS5PRV"==e&&void 0!==h&&t instanceof h&&void 0!==i&&null!=i&&1==t.isPrivate)return M=m(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",M,i,n,r);var A=function(t,e){var i=v(t,e);return new u({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:i.pbkdf2Salt}},{int:i.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:i.encryptionSchemeIV}}]}]}]},{octstr:{hex:i.ciphertext}}]}).getEncodedHex()},v=function(t,e){var i=_.lib.WordArray.random(8),n=_.lib.WordArray.random(8),s=_.PBKDF2(e,i,{keySize:6,iterations:100}),r=_.enc.Hex.parse(t),o=_.TripleDES.encrypt(r,s,{iv:n})+"",a={};return a.ciphertext=o,a.pbkdf2Salt=_.enc.Hex.stringify(i),a.pbkdf2Iter=100,a.encryptionSchemeAlg="DES-EDE3-CBC",a.encryptionSchemeIV=_.enc.Hex.stringify(n),a};if("PKCS8PRV"==e&&null!=p&&t instanceof p&&1==t.isPrivate){var T=f(t).getEncodedHex();return M=u({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?Et(M,"PRIVATE KEY"):Et(y=A(M,i),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==e&&void 0!==d&&t instanceof d&&1==t.isPrivate)return T=new u({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]}).getEncodedHex(),M=u({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:t.curveName}}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?Et(M,"PRIVATE KEY"):Et(y=A(M,i),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==e&&void 0!==h&&t instanceof h&&1==t.isPrivate)return T=new c({bigint:t.x}).getEncodedHex(),M=u({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}}]}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?Et(M,"PRIVATE KEY"):Et(y=A(M,i),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},Ft.getKeyFromCSRPEM=function(t){var e=Lt(t,"CERTIFICATE REQUEST");return Ft.getKeyFromCSRHex(e)},Ft.getKeyFromCSRHex=function(t){var e=Ft.parseCSRHex(t);return Ft.getKey(e.p8pubkeyhex,null,"pkcs8pub")},Ft.parseCSRHex=function(t){var e=dt.getChildIdx,i=dt.getTLV,n={},s=t;if("30"!=s.substr(0,2))throw"malformed CSR(code:001)";var r=e(s,0);if(r.length<1)throw"malformed CSR(code:002)";if("30"!=s.substr(r[0],2))throw"malformed CSR(code:003)";var o=e(s,r[0]);if(o.length<3)throw"malformed CSR(code:004)";return n.p8pubkeyhex=i(s,o[2]),n},Ft.getJWKFromKey=function(t){var e={};if(t instanceof st&&t.isPrivate)return e.kty="RSA",e.n=yt(t.n.toString(16)),e.e=yt(t.e.toString(16)),e.d=yt(t.d.toString(16)),e.p=yt(t.p.toString(16)),e.q=yt(t.q.toString(16)),e.dp=yt(t.dmp1.toString(16)),e.dq=yt(t.dmq1.toString(16)),e.qi=yt(t.coeff.toString(16)),e;if(t instanceof st&&t.isPublic)return e.kty="RSA",e.n=yt(t.n.toString(16)),e.e=yt(t.e.toString(16)),e;if(t instanceof ut.crypto.ECDSA&&t.isPrivate){if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;var i=t.getPublicKeyXYHex();return e.kty="EC",e.crv=n,e.x=yt(i.x),e.y=yt(i.y),e.d=yt(t.prvKeyHex),e}if(t instanceof ut.crypto.ECDSA&&t.isPublic){var n;if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;return i=t.getPublicKeyXYHex(),e.kty="EC",e.crv=n,e.x=yt(i.x),e.y=yt(i.y),e}throw"not supported key object"},st.getPosArrayOfChildrenFromHex=function(t){return dt.getChildIdx(t,0)},st.getHexValueArrayOfChildrenFromHex=function(t){var e,i=dt.getV,n=i(t,(e=st.getPosArrayOfChildrenFromHex(t))[0]),s=i(t,e[1]),r=i(t,e[2]),o=i(t,e[3]),a=i(t,e[4]),c=i(t,e[5]),u=i(t,e[6]),l=i(t,e[7]),h=i(t,e[8]);return(e=new Array).push(n,s,r,o,a,c,u,l,h),e},st.prototype.readPrivateKeyFromPEMString=function(t){var e=Lt(t),i=st.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8])},st.prototype.readPKCS5PrvKeyHex=function(t){var e=st.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},st.prototype.readPKCS8PrvKeyHex=function(t){var e,i,n,s,r,o,a,c,u=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=u(t,0,[2,0,1],"02"),i=u(t,0,[2,0,2],"02"),n=u(t,0,[2,0,3],"02"),s=u(t,0,[2,0,4],"02"),r=u(t,0,[2,0,5],"02"),o=u(t,0,[2,0,6],"02"),a=u(t,0,[2,0,7],"02"),c=u(t,0,[2,0,8],"02")}catch(t){throw"malformed PKCS#8 plain RSA private key"}this.setPrivateEx(e,i,n,s,r,o,a,c)},st.prototype.readPKCS5PubKeyHex=function(t){var e=dt,i=e.getV;if(!1===e.isASN1HEX(t))throw"keyHex is not ASN.1 hex string";var n=e.getChildIdx(t,0);if(2!==n.length||"02"!==t.substr(n[0],2)||"02"!==t.substr(n[1],2))throw"wrong hex for PKCS#5 public key";var s=i(t,n[0]),r=i(t,n[1]);this.setPublic(s,r)},st.prototype.readPKCS8PubKeyHex=function(t){var e=dt;if(!1===e.isASN1HEX(t))throw"not ASN.1 hex string";if("06092a864886f70d010101"!==e.getTLVbyList(t,0,[0,0]))throw"not PKCS8 RSA public key";var i=e.getTLVbyList(t,0,[1,0]);this.readPKCS5PubKeyHex(i)},st.prototype.readCertPubKeyHex=function(t,e){var i,n;(i=new Wt).readCertHex(t),n=i.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)};var Ht=new RegExp("");function qt(t,e){for(var i="",n=e/4-t.length,s=0;s>24,(16711680&s)>>16,(65280&s)>>8,255&s])))),s+=1;return n}function Yt(t){for(var e in ut.crypto.Util.DIGESTINFOHEAD){var i=ut.crypto.Util.DIGESTINFOHEAD[e],n=i.length;if(t.substring(0,n)==i)return[e,t.substring(n)]}return[]}function Wt(){var t=dt,e=t.getChildIdx,i=t.getV,n=t.getTLV,s=t.getVbyList,r=t.getTLVbyList,o=t.getIdxbyList,a=t.getVidx,c=t.oidname,u=Wt,l=Lt;this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==r(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return s(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){return c(s(this.hex,0,[0,2+this.foffset,0],"06"))},this.getIssuerHex=function(){return r(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return u.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return r(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return u.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var t=s(this.hex,0,[0,4+this.foffset,0]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getNotAfter=function(){var t=s(this.hex,0,[0,4+this.foffset,1]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getPublicKeyHex=function(){return t.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return o(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var t=this.getPublicKeyIdx();return o(this.hex,t,[1,0],"30")},this.getPublicKey=function(){return Ft.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return c(s(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return s(this.hex,0,[2],"03",!0)},this.verifySignature=function(t){var e=this.getSignatureAlgorithmName(),i=this.getSignatureValueHex(),n=r(this.hex,0,[0],"30"),s=new ut.crypto.Signature({alg:e});return s.init(t),s.updateHex(n),s.verify(i)},this.parseExt=function(){if(3!==this.version)return-1;var i=o(this.hex,0,[0,7,0],"30"),n=e(this.hex,i);this.aExtInfo=new Array;for(var r=0;r0&&(u=new Array(i),(new et).nextBytes(u),u=String.fromCharCode.apply(String,u));var l=vt(c(Tt("\0\0\0\0\0\0\0\0"+s+u))),h=[];for(n=0;n>8*a-o&255),n=0;nthis.n.bitLength())return 0;var n=Yt(this.doPublic(i).toString(16).replace(/^1f+00/,""));if(0==n.length)return!1;var s=n[0];return n[1]==function(t){return ut.crypto.Util.hashString(t,s)}(t)},st.prototype.verifyWithMessageHash=function(t,e){var i=it(e=(e=e.replace(Ht,"")).replace(/[ \n]+/g,""),16);if(i.bitLength()>this.n.bitLength())return 0;var n=Yt(this.doPublic(i).toString(16).replace(/^1f+00/,""));return 0!=n.length&&n[1]==t},st.prototype.verifyPSS=function(t,e,i,n){var s=function(t){return ut.crypto.Util.hashHex(t,i)}(Tt(t));return void 0===n&&(n=-1),this.verifyWithMessageHashPSS(s,e,i,n)},st.prototype.verifyWithMessageHashPSS=function(t,e,i,n){var s=new v(e,16);if(s.bitLength()>this.n.bitLength())return!1;var r,o=function(t){return ut.crypto.Util.hashHex(t,i)},a=vt(t),c=a.length,u=this.n.bitLength()-1,l=Math.ceil(u/8);if(-1===n||void 0===n)n=c;else if(-2===n)n=l-c-2;else if(n<-2)throw"invalid salt length";if(l>8*l-u&255;if(0!=(d.charCodeAt(0)&f))throw"bits beyond keysize not zero";var g=jt(p,d.length,o),m=[];for(r=0;r0&&-1==(":"+n.join(":")+":").indexOf(":"+m+":"))throw"algorithm '"+m+"' not accepted in the list";if("none"!=m&&null===e)throw"key shall be specified to verify.";if("string"==typeof e&&-1!=e.indexOf("-----BEGIN ")&&(e=Ft.getKey(e)),!("RS"!=d&&"PS"!=d||e instanceof s))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==d&&!(e instanceof c))throw"key shall be a ECDSA obj for ES* algs";var _=null;if(void 0===r.jwsalg2sigalg[g.alg])throw"unsupported alg name: "+m;if("none"==(_=r.jwsalg2sigalg[m]))throw"not supported";if("Hmac"==_.substr(0,4)){if(void 0===e)throw"hexadecimal key shall be specified for HMAC";var b=new u({alg:_,pass:e});return b.updateString(p),f==b.doFinal()}if(-1!=_.indexOf("withECDSA")){var y,w=null;try{w=c.concatSigToASN1Sig(f)}catch(t){return!1}return(y=new l({alg:_})).init(e),y.updateString(p),y.verify(w)}return(y=new l({alg:_})).init(e),y.updateString(p),y.verify(f)},ut.jws.JWS.parse=function(t){var e,i,n=t.split("."),s={};if(2!=n.length&&3!=n.length)throw"malformed sJWS: wrong number of '.' splitted elements";return e=n[1],3==n.length&&(i=n[2]),s.headerObj=ut.jws.JWS.readSafeJSONString(ht(n[0])),s.payloadObj=ut.jws.JWS.readSafeJSONString(ht(e)),s.headerPP=JSON.stringify(s.headerObj,null," "),s.payloadPP=null==s.payloadObj?ht(e):JSON.stringify(s.payloadObj,null," "),void 0!==i&&(s.sigHex=wt(i)),s},ut.jws.JWS.verifyJWT=function(t,e,n){var s=ut.jws,r=s.JWS,o=r.readSafeJSONString,a=r.inArray,c=r.includedArray,u=t.split("."),l=u[0],h=u[1],d=(wt(u[2]),o(ht(l))),p=o(ht(h));if(void 0===d.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!a(d.alg,n.alg))return!1;if(void 0!==p.iss&&"object"===i(n.iss)&&!a(p.iss,n.iss))return!1;if(void 0!==p.sub&&"object"===i(n.sub)&&!a(p.sub,n.sub))return!1;if(void 0!==p.aud&&"object"===i(n.aud))if("string"==typeof p.aud){if(!a(p.aud,n.aud))return!1}else if("object"==i(p.aud)&&!c(p.aud,n.aud))return!1;var f=s.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(f=n.verifyAt),void 0!==n.gracePeriod&&"number"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==p.exp&&"number"==typeof p.exp&&p.exp+n.gracePeriode.length&&(i=e.length);for(var n=0;n=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function f(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return q(t).length;default:if(n)return H(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function m(t,e,i,n,s){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=s?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(s)return-1;i=t.length-1}else if(i<0){if(!s)return-1;i=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:_(t,e,i,n,s);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):_(t,[e],i,n,s);throw new TypeError("val must be string, number or Buffer")}function _(t,e,i,n,s){var r,o=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,i/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(s){var l=-1;for(r=i;ra&&(i=a-c),r=i;r>=0;r--){for(var h=!0,d=0;ds&&(n=s):n=s;var r=e.length;if(r%2!=0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var o=0;o>8,s.push(i%256),s.push(n);return s}(e,t.length-i),t,i,n)}function T(t,e,i){return n.fromByteArray(0===e&&i===t.length?t:t.slice(e,i))}function k(t,e,i){i=Math.min(t.length,i);for(var n=[],s=e;s239?4:u>223?3:u>191?2:1;if(s+h<=i)switch(h){case 1:u<128&&(l=u);break;case 2:128==(192&(r=t[s+1]))&&(c=(31&u)<<6|63&r)>127&&(l=c);break;case 3:o=t[s+2],128==(192&(r=t[s+1]))&&128==(192&o)&&(c=(15&u)<<12|(63&r)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=t[s+2],a=t[s+3],128==(192&(r=t[s+1]))&&128==(192&o)&&128==(192&a)&&(c=(15&u)<<18|(63&r)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(n.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),n.push(l),s+=h}return function(t){var e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);for(var i="",n=0;nthis.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,i);case"utf8":case"utf-8":return k(this,e,i);case"ascii":return C(this,e,i);case"latin1":case"binary":return E(this,e,i);case"base64":return T(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}).apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),""},c.prototype.compare=function(t,e,i,n,s){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),e<0||i>t.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&e>=i)return 0;if(n>=s)return-1;if(e>=i)return 1;if(this===t)return 0;for(var r=(s>>>=0)-(n>>>=0),o=(i>>>=0)-(e>>>=0),a=Math.min(r,o),u=this.slice(n,s),l=t.slice(e,i),h=0;hs)&&(i=s),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return b(this,t,e,i);case"utf8":case"utf-8":return y(this,t,e,i);case"ascii":return w(this,t,e,i);case"latin1":case"binary":return M(this,t,e,i);case"base64":return A(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,t,e,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function C(t,e,i){var n="";i=Math.min(t.length,i);for(var s=e;sn)&&(i=n);for(var s="",r=e;ri)throw new RangeError("Trying to access beyond buffer length")}function x(t,e,i,n,s,r){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||et.length)throw new RangeError("Index out of range")}function O(t,e,i,n){e<0&&(e=65535+e+1);for(var s=0,r=Math.min(t.length-i,2);s>>8*(n?s:1-s)}function D(t,e,i,n){e<0&&(e=4294967295+e+1);for(var s=0,r=Math.min(t.length-i,4);s>>8*(n?s:3-s)&255}function P(t,e,i,n,s,r){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function N(t,e,i,n,r){return r||P(t,0,i,4),s.write(t,e,i,n,23,4),i+4}function I(t,e,i,n,r){return r||P(t,0,i,8),s.write(t,e,i,n,52,8),i+8}c.prototype.slice=function(t,e){var i,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(s*=256);)n+=this[t+--e]*s;return n},c.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||R(t,e,this.length);for(var n=this[t],s=1,r=0;++r=(s*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||R(t,e,this.length);for(var n=e,s=1,r=this[t+--n];n>0&&(s*=256);)r+=this[t+--n]*s;return r>=(s*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),s.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),s.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),s.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),s.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,i,n){t=+t,e|=0,i|=0,n||x(this,t,e,i,Math.pow(2,8*i)-1,0);var s=1,r=0;for(this[e]=255&t;++r=0&&(r*=256);)this[e+s]=t/r&255;return e+i},c.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*i-1);x(this,t,e,i,s-1,-s)}var r=0,o=1,a=0;for(this[e]=255&t;++r>0)-a&255;return e+i},c.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*i-1);x(this,t,e,i,s-1,-s)}var r=i-1,o=1,a=0;for(this[e+r]=255&t;--r>=0&&(o*=256);)t<0&&0===a&&0!==this[e+r+1]&&(a=1),this[e+r]=(t/o>>0)-a&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,i){return N(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return N(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return I(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return I(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--s)t[s+e]=this[s+i];else if(r<1e3||!c.TYPED_ARRAY_SUPPORT)for(s=0;s>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(r=e;r55295&&i<57344){if(!s){if(i>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&r.push(239,191,189);continue}s=i;continue}if(i<56320){(e-=3)>-1&&r.push(239,191,189),s=i;continue}i=65536+(s-55296<<10|i-56320)}else s&&(e-=3)>-1&&r.push(239,191,189);if(s=null,i<128){if((e-=1)<0)break;r.push(i)}else if(i<2048){if((e-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function q(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function j(t,e,i,n){for(var s=0;s=e.length||s>=t.length);++s)e[s+i]=t[s];return s}}).call(this,i(28))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";e.byteLength=function(t){var e=u(t),i=e[1];return 3*(e[0]+i)/4-i},e.toByteArray=function(t){for(var e,i=u(t),n=i[0],o=i[1],a=new r(function(t,e,i){return 3*(e+i)/4-i}(0,n,o)),c=0,l=o>0?n-4:n,h=0;h>16&255,a[c++]=e>>8&255,a[c++]=255&e;return 2===o&&(e=s[t.charCodeAt(h)]<<2|s[t.charCodeAt(h+1)]>>4,a[c++]=255&e),1===o&&(e=s[t.charCodeAt(h)]<<10|s[t.charCodeAt(h+1)]<<4|s[t.charCodeAt(h+2)]>>2,a[c++]=e>>8&255,a[c++]=255&e),a},e.fromByteArray=function(t){for(var e,i=t.length,s=i%3,r=[],o=0,a=i-s;oa?a:o+16383));return 1===s?r.push(n[(e=t[i-1])>>2]+n[e<<4&63]+"=="):2===s&&r.push(n[(e=(t[i-2]<<8)+t[i-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),r.join("")};for(var n=[],s=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function l(t,e,i){for(var s,r=[],o=e;o>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return r.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,i,n,s){var r,o,a=8*s-n-1,c=(1<>1,l=-7,h=i?s-1:0,d=i?-1:1,p=t[e+h];for(h+=d,r=p&(1<<-l)-1,p>>=-l,l+=a;l>0;r=256*r+t[e+h],h+=d,l-=8);for(o=r&(1<<-l)-1,r>>=-l,l+=n;l>0;o=256*o+t[e+h],h+=d,l-=8);if(0===r)r=1-u;else{if(r===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),r-=u}return(p?-1:1)*o*Math.pow(2,r-n)},e.write=function(t,e,i,n,s,r){var o,a,c,u=8*r-s-1,l=(1<>1,d=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:r-1,f=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=l):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(o++,c/=2),o+h>=l?(a=0,o=l):o+h>=1?(a=(e*c-1)*Math.pow(2,s),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,s),o=0));s>=8;t[i+p]=255&a,p+=f,a/=256,s-=8);for(o=o<0;t[i+p]=255&o,p+=f,o/=256,u-=8);t[i+p-f]|=128*g}},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.jws,i=t.KeyUtil,s=t.X509,r=t.crypto,o=t.hextob64u,a=t.b64tohex,c=t.AllowedSigningAlgs;return function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.parseJwt=function t(i){n.Log.debug("JoseUtil.parseJwt");try{var s=e.JWS.parse(i);return{header:s.headerObj,payload:s.payloadObj}}catch(t){n.Log.error(t)}},t.validateJwt=function(e,r,o,c,u,l,h){n.Log.debug("JoseUtil.validateJwt");try{if("RSA"===r.kty)if(r.e&&r.n)r=i.getKey(r);else{if(!r.x5c||!r.x5c.length)return n.Log.error("JoseUtil.validateJwt: RSA key missing key material",r),Promise.reject(new Error("RSA key missing key material"));var d=a(r.x5c[0]);r=s.getPublicKeyFromCertHex(d)}else{if("EC"!==r.kty)return n.Log.error("JoseUtil.validateJwt: Unsupported key type",r&&r.kty),Promise.reject(new Error(r.kty));if(!(r.crv&&r.x&&r.y))return n.Log.error("JoseUtil.validateJwt: EC key missing key material",r),Promise.reject(new Error("EC key missing key material"));r=i.getKey(r)}return t._validateJwt(e,r,o,c,u,l,h)}catch(t){return n.Log.error(t&&t.message||t),Promise.reject("JWT validation failed")}},t.validateJwtAttributes=function(e,i,s,r,o,a){r||(r=0),o||(o=parseInt(Date.now()/1e3));var c=t.parseJwt(e).payload;if(!c.iss)return n.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(c.iss!==i)return n.Log.error("JoseUtil._validateJwt: Invalid issuer in token",c.iss),Promise.reject(new Error("Invalid issuer in token: "+c.iss));if(!c.aud)return n.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(c.aud===s||Array.isArray(c.aud)&&c.aud.indexOf(s)>=0))return n.Log.error("JoseUtil._validateJwt: Invalid audience in token",c.aud),Promise.reject(new Error("Invalid audience in token: "+c.aud));if(c.azp&&c.azp!==s)return n.Log.error("JoseUtil._validateJwt: Invalid azp in token",c.azp),Promise.reject(new Error("Invalid azp in token: "+c.azp));if(!a){var u=o+r,l=o-r;if(!c.iat)return n.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(u>>((3&e)<<3)&255;return s}}},function(t,e){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninResponse=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"#";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=s.UrlUtility.parseUrlFragment(e,i);this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.code=n.code,this.state=n.state,this.id_token=n.id_token,this.session_state=n.session_state,this.access_token=n.access_token,this.token_type=n.token_type,this.scope=n.scope,this.profile=void 0,this.expires_in=n.expires_in}return n(t,[{key:"expires_in",get:function(){if(this.expires_at){var t=parseInt(Date.now()/1e3);return this.expires_at-t}},set:function(t){var e=parseInt(t);if("number"==typeof e&&e>0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutRequest=void 0;var n=i(0),s=i(3),r=i(8);e.SignoutRequest=function t(e){var i=e.url,o=e.id_token_hint,a=e.post_logout_redirect_uri,c=e.data,u=e.extraQueryParams,l=e.request_type;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var h in o&&(i=s.UrlUtility.addQueryParam(i,"id_token_hint",o)),a&&(i=s.UrlUtility.addQueryParam(i,"post_logout_redirect_uri",a),c&&(this.state=new r.State({data:c,request_type:l}),i=s.UrlUtility.addQueryParam(i,"state",this.state.id))),u)i=s.UrlUtility.addQueryParam(i,h,u[h]);this.url=i}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutResponse=void 0;var n=i(3);e.SignoutResponse=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=n.UrlUtility.parseUrlFragment(e,"?");this.error=i.error,this.error_description=i.error_description,this.error_uri=i.error_uri,this.state=i.state}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryWebStorage=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.SilentRenewService,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.SessionMonitor,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.TokenRevocationClient,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d.TokenClient,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:p.JoseUtil;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i instanceof o.UserManagerSettings||(i=new o.UserManagerSettings(i));var m=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return m._events=new c.UserManagerEvents(i),m._silentRenewService=new n(m),m.settings.automaticSilentRenew&&(s.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),m.startSilentRenew()),m.settings.monitorSession&&(s.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),m._sessionMonitor=new r(m)),m._tokenRevocationClient=new a(m._settings),m._tokenClient=new f(m._settings),m._joseUtil=g,m}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getUser=function(){var t=this;return this._loadUser().then(function(e){return e?(s.Log.info("UserManager.getUser: user loaded"),t._events.load(e,!1),e):(s.Log.info("UserManager.getUser: user not found in storage"),null)})},e.prototype.removeUser=function(){var t=this;return this.storeUser(null).then(function(){s.Log.info("UserManager.removeUser: user removed from storage"),t._events.unload()})},e.prototype.signinRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:r";var e={useReplaceToNavigate:t.useReplaceToNavigate};return this._signinStart(t,this._redirectNavigator,e).then(function(){s.Log.info("UserManager.signinRedirect: successful")})},e.prototype.signinRedirectCallback=function(t){return this._signinEnd(t||this._redirectNavigator.url).then(function(t){return t.profile&&t.profile.sub?s.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinRedirectCallback: no sub"),t})},e.prototype.signinPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:p";var e=t.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.display="popup",this._signin(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinPopup: no sub")),t})):(s.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},e.prototype.signinPopupCallback=function(t){return this._signinCallback(t,this._popupNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinPopupCallback: no sub")),t}).catch(function(t){s.Log.error(t.message)})},e.prototype.signinSilent=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).request_type="si:s",this._loadUser().then(function(i){return i&&i.refresh_token?(e.refresh_token=i.refresh_token,t._useRefreshToken(e)):(e.id_token_hint=e.id_token_hint||t.settings.includeIdTokenInSilentRenew&&i&&i.id_token,i&&t._settings.validateSubOnSilentRenew&&(s.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",i.profile.sub),e.current_sub=i.profile.sub),t._signinSilentIframe(e))})},e.prototype._useRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(e).then(function(e){return e?e.access_token?t._loadUser().then(function(i){if(i){var n=Promise.resolve();return e.id_token&&(n=t._validateIdTokenFromTokenRefreshToken(i.profile,e.id_token)),n.then(function(){return s.Log.debug("UserManager._useRefreshToken: refresh token response success"),i.id_token=e.id_token,i.access_token=e.access_token,i.refresh_token=e.refresh_token||i.refresh_token,i.expires_in=e.expires_in,t.storeUser(i).then(function(){return t._events.load(i),i})})}return null}):(s.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(s.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))})},e.prototype._validateIdTokenFromTokenRefreshToken=function(t,e){var i=this;return this._metadataService.getIssuer().then(function(n){return i._joseUtil.validateJwtAttributes(e,n,i._settings.client_id,i._settings.clockSkew).then(function(e){return e?e.sub!==t.sub?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):e.auth_time&&e.auth_time!==t.auth_time?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):e.azp&&e.azp!==t.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!e.azp&&t.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))})})},e.prototype._signinSilentIframe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.prompt=t.prompt||"none",this._signin(t,this._iframeNavigator,{startUrl:e,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinSilent: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinSilent: no sub")),t})):(s.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype.signinSilentCallback=function(t){return this._signinCallback(t,this._iframeNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinSilentCallback: no sub")),t})},e.prototype.signinCallback=function(t){var e=this;return this.readSigninResponseState(t).then(function(i){var n=i.state;return"si:r"===n.request_type?e.signinRedirectCallback(t):"si:p"===n.request_type?e.signinPopupCallback(t):"si:s"===n.request_type?e.signinSilentCallback(t):Promise.reject(new Error("invalid response_type in state"))})},e.prototype.signoutCallback=function(t,e){var i=this;return this.readSignoutResponseState(t).then(function(n){var s=n.state,r=n.response;return s?"so:r"===s.request_type?i.signoutRedirectCallback(t):"so:p"===s.request_type?i.signoutPopupCallback(t,e):Promise.reject(new Error("invalid response_type in state")):r})},e.prototype.querySessionStatus=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:s";var i=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return i?(e.redirect_uri=i,e.prompt="none",e.response_type=e.response_type||this.settings.query_status_response_type,e.scope=e.scope||"openid",e.skipUserInfo=!0,this._signinStart(e,this._iframeNavigator,{startUrl:i,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(e){return t.processSigninResponse(e.url).then(function(t){if(s.Log.debug("UserManager.querySessionStatus: got signin response"),t.session_state&&t.profile.sub)return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",t.profile.sub),{session_state:t.session_state,sub:t.profile.sub,sid:t.profile.sid};s.Log.info("querySessionStatus successful, user not authenticated")}).catch(function(e){if(e.session_state&&t.settings.monitorAnonymousSession&&("login_required"==e.message||"consent_required"==e.message||"interaction_required"==e.message||"account_selection_required"==e.message))return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:e.session_state};throw e})})):(s.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype._signin=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(t,e,n).then(function(e){return i._signinEnd(e.url,t)})},e.prototype._signinStart=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.prepare(n).then(function(e){return s.Log.debug("UserManager._signinStart: got navigator window handle"),i.createSigninRequest(t).then(function(t){return s.Log.debug("UserManager._signinStart: got signin request"),n.url=t.url,n.id=t.state.id,e.navigate(n)}).catch(function(t){throw e.close&&(s.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),e.close()),t})})},e.prototype._signinEnd=function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(t).then(function(t){s.Log.debug("UserManager._signinEnd: got signin response");var n=new a.User(t);if(i.current_sub){if(i.current_sub!==n.profile.sub)return s.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",n.profile.sub),Promise.reject(new Error("login_required"));s.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return e.storeUser(n).then(function(){return s.Log.debug("UserManager._signinEnd: user stored"),e._events.load(n),n})})},e.prototype._signinCallback=function(t,e){return s.Log.debug("UserManager._signinCallback"),e.callback(t)},e.prototype.signoutRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:r";var e=t.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;e&&(t.post_logout_redirect_uri=e);var i={useReplaceToNavigate:t.useReplaceToNavigate};return this._signoutStart(t,this._redirectNavigator,i).then(function(){s.Log.info("UserManager.signoutRedirect: successful")})},e.prototype.signoutRedirectCallback=function(t){return this._signoutEnd(t||this._redirectNavigator.url).then(function(t){return s.Log.info("UserManager.signoutRedirectCallback: successful"),t})},e.prototype.signoutPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:p";var e=t.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return t.post_logout_redirect_uri=e,t.display="popup",t.post_logout_redirect_uri&&(t.state=t.state||{}),this._signout(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(){s.Log.info("UserManager.signoutPopup: successful")})},e.prototype.signoutPopupCallback=function(t,e){return void 0===e&&"boolean"==typeof t&&(e=t,t=null),this._popupNavigator.callback(t,e,"?").then(function(){s.Log.info("UserManager.signoutPopupCallback: successful")})},e.prototype._signout=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(t,e,n).then(function(t){return i._signoutEnd(t.url)})},e.prototype._signoutStart=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,i=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.prepare(n).then(function(i){return s.Log.debug("UserManager._signoutStart: got navigator window handle"),e._loadUser().then(function(r){return s.Log.debug("UserManager._signoutStart: loaded current user from storage"),(e._settings.revokeAccessTokenOnSignout?e._revokeInternal(r):Promise.resolve()).then(function(){var o=t.id_token_hint||r&&r.id_token;return o&&(s.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),t.id_token_hint=o),e.removeUser().then(function(){return s.Log.debug("UserManager._signoutStart: user removed, creating signout request"),e.createSignoutRequest(t).then(function(t){return s.Log.debug("UserManager._signoutStart: got signout request"),n.url=t.url,t.state&&(n.id=t.state.id),i.navigate(n)})})})}).catch(function(t){throw i.close&&(s.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),i.close()),t})})},e.prototype._signoutEnd=function(t){return this.processSignoutResponse(t).then(function(t){return s.Log.debug("UserManager._signoutEnd: got signout response"),t})},e.prototype.revokeAccessToken=function(){var t=this;return this._loadUser().then(function(e){return t._revokeInternal(e,!0).then(function(i){if(i)return s.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),e.access_token=null,e.refresh_token=null,e.expires_at=null,e.token_type=null,t.storeUser(e).then(function(){s.Log.debug("UserManager.revokeAccessToken: user stored"),t._events.load(e)})})}).then(function(){s.Log.info("UserManager.revokeAccessToken: access token revoked successfully")})},e.prototype._revokeInternal=function(t,e){var i=this;if(t){var n=t.refresh_token;return this._revokeAccessTokenInternal(t.access_token,e).then(function(t){return i._revokeRefreshTokenInternal(n,e).then(function(e){return t||e||s.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),t||e})})}return Promise.resolve(!1)},e.prototype._revokeAccessTokenInternal=function(t,e){return!t||t.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(t,e).then(function(){return!0})},e.prototype._revokeRefreshTokenInternal=function(t,e){return t?this._tokenRevocationClient.revoke(t,e,"refresh_token").then(function(){return!0}):Promise.resolve(!1)},e.prototype.startSilentRenew=function(){this._silentRenewService.start()},e.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},e.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then(function(t){return t?(s.Log.debug("UserManager._loadUser: user storageString loaded"),a.User.fromStorageString(t)):(s.Log.debug("UserManager._loadUser: no user storageString"),null)})},e.prototype.storeUser=function(t){if(t){s.Log.debug("UserManager.storeUser: storing user");var e=t.toStorageString();return this._userStore.set(this._userStoreKey,e)}return s.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},n(e,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),e}(r.OidcClient)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserManagerSettings=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.popup_redirect_uri,s=i.popup_post_logout_redirect_uri,h=i.popupWindowFeatures,d=i.popupWindowTarget,p=i.silent_redirect_uri,f=i.silentRequestTimeout,g=i.automaticSilentRenew,m=void 0!==g&&g,_=i.validateSubOnSilentRenew,b=void 0!==_&&_,y=i.includeIdTokenInSilentRenew,w=void 0===y||y,M=i.monitorSession,A=void 0===M||M,v=i.monitorAnonymousSession,T=void 0!==v&&v,k=i.checkSessionInterval,S=void 0===k?2e3:k,C=i.stopCheckSessionOnError,E=void 0===C||C,L=i.query_status_response_type,z=i.revokeAccessTokenOnSignout,R=void 0!==z&&z,x=i.accessTokenExpiringNotificationTime,O=void 0===x?60:x,D=i.redirectNavigator,P=void 0===D?new r.RedirectNavigator:D,N=i.popupNavigator,I=void 0===N?new o.PopupNavigator:N,B=i.iframeNavigator,F=void 0===B?new a.IFrameNavigator:B,H=i.userStore,q=void 0===H?new c.WebStorageStateStore({store:u.Global.sessionStorage}):H;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var j=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));return j._popup_redirect_uri=n,j._popup_post_logout_redirect_uri=s,j._popupWindowFeatures=h,j._popupWindowTarget=d,j._silent_redirect_uri=p,j._silentRequestTimeout=f,j._automaticSilentRenew=m,j._validateSubOnSilentRenew=b,j._includeIdTokenInSilentRenew=w,j._accessTokenExpiringNotificationTime=O,j._monitorSession=A,j._monitorAnonymousSession=T,j._checkSessionInterval=S,j._stopCheckSessionOnError=E,j._query_status_response_type=L||(arguments[0]&&arguments[0].response_type?l.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":"id_token"),j._revokeAccessTokenOnSignout=R,j._redirectNavigator=P,j._popupNavigator=I,j._iframeNavigator=F,j._userStore=q,j}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),e}(s.OidcClientSettings)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RedirectNavigator=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1])||arguments[1];n.Log.debug("UserManagerEvents.load"),t.prototype.load.call(this,e),i&&this._userLoaded.raise(e)},e.prototype.unload=function(){n.Log.debug("UserManagerEvents.unload"),t.prototype.unload.call(this),this._userUnloaded.raise()},e.prototype.addUserLoaded=function(t){this._userLoaded.addHandler(t)},e.prototype.removeUserLoaded=function(t){this._userLoaded.removeHandler(t)},e.prototype.addUserUnloaded=function(t){this._userUnloaded.addHandler(t)},e.prototype.removeUserUnloaded=function(t){this._userUnloaded.removeHandler(t)},e.prototype.addSilentRenewError=function(t){this._silentRenewError.addHandler(t)},e.prototype.removeSilentRenewError=function(t){this._silentRenewError.removeHandler(t)},e.prototype._raiseSilentRenewError=function(t){n.Log.debug("UserManagerEvents._raiseSilentRenewError",t.message),this._silentRenewError.raise(t)},e.prototype.addUserSignedIn=function(t){this._userSignedIn.addHandler(t)},e.prototype.removeUserSignedIn=function(t){this._userSignedIn.removeHandler(t)},e.prototype._raiseUserSignedIn=function(){n.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},e.prototype.addUserSignedOut=function(t){this._userSignedOut.addHandler(t)},e.prototype.removeUserSignedOut=function(t){this._userSignedOut.removeHandler(t)},e.prototype._raiseUserSignedOut=function(){n.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},e.prototype.addUserSessionChanged=function(t){this._userSessionChanged.addHandler(t)},e.prototype.removeUserSessionChanged=function(t){this._userSessionChanged.removeHandler(t)},e.prototype._raiseUserSessionChanged=function(){n.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},e}(s.AccessTokenEvents)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:r.Global.timer,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return o._timer=n,o._nowFunc=s||function(){return Date.now()/1e3},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.init=function(t){t<=0&&(t=1),t=parseInt(t);var e=this.now+t;if(this.expiration===e&&this._timerHandle)s.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),s.Log.debug("Timer.init timer "+this._name+" for duration:",t),this._expiration=e;var i=5;t0&&c>a&&(c=a);for(var u=0;u=0?(l=f.substr(0,g),h=f.substr(g+1)):(l=f,h=""),d=decodeURIComponent(l),p=decodeURIComponent(h),e(r,d)?Array.isArray(r[d])?r[d].push(p):r[d]=[r[d],p]:r[d]=p}return r}},5341:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,s){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(s){var r=encodeURIComponent(e(s))+n;return Array.isArray(t[s])?t[s].map(function(t){return r+encodeURIComponent(e(t))}).join(i):r+encodeURIComponent(e(t[s]))}).join(i):s?encodeURIComponent(e(s))+n+encodeURIComponent(e(t)):""}},6577:function(t,e,i){"use strict";i(963),i(5341)},4360:function(t){"use strict";t.exports=JSON.parse('{"version":"2020a","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5","Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|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 WAT|-d.A -10|01|-22y0d.A|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 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 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 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 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|01212121212121212121212121212121213|-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|","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/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3","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/Curacao|LMT -0430 AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4","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/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2","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 BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v 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 CDT|5Q.M 60 5u 50|01212121212121212121212121212121212121212121212121213131|-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 1wou Rbu 1f0Mu qn0 lxB0 mn0|57e3","America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2","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/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","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/Creston|MST PST|70 80|010|-29DR0 43B0|53e2","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|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-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|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|01212121212121212121212121212121212121212121212121212121212121212121212121232121212121212121212121212121212121212121|-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 1zb0 5Ip0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 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 -0345 -03 -04|3Q.E 3J 30 40|0123|-2dvU7.k 2r6LQ.k Bxbf|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/Nassau|LMT EST EDT|59.u 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2kNuO.u 26XdO.u 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|24e4","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/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","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/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","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|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-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|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|01212121|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80","Antarctica/Macquarie|AEST AEDT -00 +11|-a0 -b0 0 -b0|0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101013|-29E80 19X0 4SL0 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 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","Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20","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/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","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 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|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|0101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 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 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 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 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|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|012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyMk.E 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 3LB0 Em0 or0 1cn0 1dB0 16n0 10O0 1ja0 1tC0 14o0 1cM0 1a00 11A0 1Na0 An0 1MP0 AJ0 1Kp0 LC0 1oo0 Wl0 EQN0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-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 3Co0 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|LMT AST ADT|4j.i 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1BnRE.G 1LTbE.G 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|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-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 3Co0 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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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/Currie|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|746","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293kI xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Hobart|AEST AEDT|-a0 -b0|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 VfB0 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/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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293jX xcX 10jd0 yL0 1cN0 1cL0 1gSp0 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||","Pacific/Port_Moresby|+10|-a0|0||25e4","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 1ip0 17b0 1op0 1tb0 Q2m0 3Ne0 WM0 1fA0 1cM0 1cM0 1oJ0 1dc0 1030 1fA0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1iM0 1fA0 8Ha0 Rb0 1wN0 Rb0 1BB0 Lz0 1C20 LB0 SNX0 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|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|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-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 3Co0 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|-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 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|-2nco8.l cNb8.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|012323232323232321212121212121212121212121212121212121212121212|-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|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|-2yO3F.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|01232345454545454545454545454545454545454545454545454545454|-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 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|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|0121212121212121212121|-2l9nd.g 2Szcd.g 1cL0 1oN0 10L0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-12 -11 +13|c0 b0 -d0|012|nIc0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-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 20o0 s00 20o0 pc0 20o0 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|-1120 -1130 -11|bk bu b0|012|-KfME 17y0a|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|-1030 -0930 -10|au 9u a0|012121212121212121212121212|lyWu 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|+1220 +13 +14|-ck -d0 -e0|0121212121|-1aB0k 2n5dk 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/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/Atikokan|America/Coral_Harbour","America/Chicago|US/Central","America/Curacao|America/Aruba","America/Curacao|America/Kralendijk","America/Curacao|America/Lower_Princes","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/Los_Angeles|US/Pacific-New","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/Cayman","America/Phoenix|US/Arizona","America/Port_of_Spain|America/Anguilla","America/Port_of_Spain|America/Antigua","America/Port_of_Spain|America/Dominica","America/Port_of_Spain|America/Grenada","America/Port_of_Spain|America/Guadeloupe","America/Port_of_Spain|America/Marigot","America/Port_of_Spain|America/Montserrat","America/Port_of_Spain|America/St_Barthelemy","America/Port_of_Spain|America/St_Kitts","America/Port_of_Spain|America/St_Lucia","America/Port_of_Spain|America/St_Thomas","America/Port_of_Spain|America/St_Vincent","America/Port_of_Spain|America/Tortola","America/Port_of_Spain|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|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|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/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/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|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/Currie 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/Vancouver America/Whitehorse America/Dawson","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/Astrakhan Europe/Volgograd 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"]}')},6700:function(t,e,i){var n={"./af":776,"./af.js":776,"./ar":7634,"./ar-dz":2758,"./ar-dz.js":2758,"./ar-kw":4980,"./ar-kw.js":4980,"./ar-ly":9602,"./ar-ly.js":9602,"./ar-ma":2500,"./ar-ma.js":2500,"./ar-sa":6909,"./ar-sa.js":6909,"./ar-tn":2735,"./ar-tn.js":2735,"./ar.js":7634,"./az":7798,"./az.js":7798,"./be":9949,"./be.js":9949,"./bg":4590,"./bg.js":4590,"./bm":5938,"./bm.js":5938,"./bn":595,"./bn.js":595,"./bo":4756,"./bo.js":4756,"./br":7277,"./br.js":7277,"./bs":4166,"./bs.js":4166,"./ca":3943,"./ca.js":3943,"./cs":3474,"./cs.js":3474,"./cv":2218,"./cv.js":2218,"./cy":1061,"./cy.js":1061,"./da":2743,"./da.js":2743,"./de":1899,"./de-at":8580,"./de-at.js":8580,"./de-ch":3264,"./de-ch.js":3264,"./de.js":1899,"./dv":8784,"./dv.js":8784,"./el":4654,"./el.js":4654,"./en-SG":4047,"./en-SG.js":4047,"./en-au":6277,"./en-au.js":6277,"./en-ca":6896,"./en-ca.js":6896,"./en-gb":1609,"./en-gb.js":1609,"./en-ie":4557,"./en-ie.js":4557,"./en-il":5836,"./en-il.js":5836,"./en-nz":3586,"./en-nz.js":3586,"./eo":2777,"./eo.js":2777,"./es":3357,"./es-do":3128,"./es-do.js":3128,"./es-us":3256,"./es-us.js":3256,"./es.js":3357,"./et":2654,"./et.js":2654,"./eu":7287,"./eu.js":7287,"./fa":3875,"./fa.js":3875,"./fi":3431,"./fi.js":3431,"./fo":1781,"./fo.js":1781,"./fr":1717,"./fr-ca":1539,"./fr-ca.js":1539,"./fr-ch":9847,"./fr-ch.js":9847,"./fr.js":1717,"./fy":2250,"./fy.js":2250,"./ga":7665,"./ga.js":7665,"./gd":5214,"./gd.js":5214,"./gl":6154,"./gl.js":6154,"./gom-latn":8518,"./gom-latn.js":8518,"./gu":9221,"./gu.js":9221,"./he":4743,"./he.js":4743,"./hi":7339,"./hi.js":7339,"./hr":3224,"./hr.js":3224,"./hu":856,"./hu.js":856,"./hy-am":6855,"./hy-am.js":6855,"./id":2190,"./id.js":2190,"./is":3887,"./is.js":3887,"./it":9270,"./it-ch":5890,"./it-ch.js":5890,"./it.js":9270,"./ja":6595,"./ja.js":6595,"./jv":3081,"./jv.js":3081,"./ka":7477,"./ka.js":7477,"./kk":3978,"./kk.js":3978,"./km":9205,"./km.js":9205,"./kn":25,"./kn.js":25,"./ko":427,"./ko.js":427,"./ku":9089,"./ku.js":9089,"./ky":9314,"./ky.js":9314,"./lb":3136,"./lb.js":3136,"./lo":9115,"./lo.js":9115,"./lt":7087,"./lt.js":7087,"./lv":5683,"./lv.js":5683,"./me":9454,"./me.js":9454,"./mi":5507,"./mi.js":5507,"./mk":8466,"./mk.js":8466,"./ml":2933,"./ml.js":2933,"./mn":9477,"./mn.js":9477,"./mr":3597,"./mr.js":3597,"./ms":5529,"./ms-my":9965,"./ms-my.js":9965,"./ms.js":5529,"./mt":259,"./mt.js":259,"./my":8061,"./my.js":8061,"./nb":2618,"./nb.js":2618,"./ne":8452,"./ne.js":8452,"./nl":1885,"./nl-be":413,"./nl-be.js":413,"./nl.js":1885,"./nn":5107,"./nn.js":5107,"./pa-in":702,"./pa-in.js":702,"./pl":1711,"./pl.js":1711,"./pt":594,"./pt-br":8238,"./pt-br.js":8238,"./pt.js":594,"./ro":4681,"./ro.js":4681,"./ru":6201,"./ru.js":6201,"./sd":2912,"./sd.js":2912,"./se":6002,"./se.js":6002,"./si":7942,"./si.js":7942,"./sk":5577,"./sk.js":5577,"./sl":1775,"./sl.js":1775,"./sq":6823,"./sq.js":6823,"./sr":9038,"./sr-cyrl":3848,"./sr-cyrl.js":3848,"./sr.js":9038,"./ss":6173,"./ss.js":6173,"./sv":5788,"./sv.js":5788,"./sw":6882,"./sw.js":6882,"./ta":2678,"./ta.js":2678,"./te":2797,"./te.js":2797,"./tet":2447,"./tet.js":2447,"./tg":1335,"./tg.js":1335,"./th":8667,"./th.js":8667,"./tl-ph":9914,"./tl-ph.js":9914,"./tlh":1389,"./tlh.js":1389,"./tr":3578,"./tr.js":3578,"./tzl":6969,"./tzl.js":6969,"./tzm":6509,"./tzm-latn":690,"./tzm-latn.js":690,"./tzm.js":6509,"./ug-cn":55,"./ug-cn.js":55,"./uk":2452,"./uk.js":2452,"./ur":1151,"./ur.js":1151,"./uz":1555,"./uz-latn":6547,"./uz-latn.js":6547,"./uz.js":1555,"./vi":6541,"./vi.js":6541,"./x-pseudo":2401,"./x-pseudo.js":2401,"./yo":2341,"./yo.js":2341,"./zh-cn":619,"./zh-cn.js":619,"./zh-hk":7058,"./zh-hk.js":7058,"./zh-tw":2782,"./zh-tw.js":2782};function s(t){var e=r(t);return i(e)}function r(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}s.keys=function(){return Object.keys(n)},s.resolve=r,t.exports=s,s.id=6700},306:function(t){"use strict";t.exports={i8:"1.1.0"}}},function(t){"use strict";t(t.s=7546)}]); \ No newline at end of file diff --git a/dist/apps/user-profile/main-es2015.fc8b4aeb37c64453f62c.js b/dist/apps/user-profile/main-es2015.fc8b4aeb37c64453f62c.js new file mode 100644 index 000000000..fa4dde590 --- /dev/null +++ b/dist/apps/user-profile/main-es2015.fc8b4aeb37c64453f62c.js @@ -0,0 +1 @@ +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[179],{1730:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=1730,t.exports=e},4638:function(t,e,i){"use strict";function n(t){return"function"==typeof t}let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},c=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function u(t){return null!==t&&"object"==typeof t}const l=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof l?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,i)}}[p](){return this}static create(t,e,i){const n=new f(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends f{constructor(t,e,i,s){let r;super(),this._parentSubscriber=t;let o=this;n(e)?r=e:e&&(r=e.next,i=e.error,s=e.complete,e!==a&&(o=Object.create(e),n(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=r;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw i;o(i)}}__tryOrSetError(t,e,i){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(o(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(t){return t}let b=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:n}=this,s=function(t,e,i){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||i?new f(t,e,i):new f(a)}(t,e,i);if(s.add(n?n.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:n}=t;if(e||n)return!1;t=i&&i instanceof f?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=y(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?_:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=y(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function y(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const w=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class M extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class A extends f{constructor(t){super(t),this.destination=t}}let v=(()=>{class t extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new A(this)}lift(t){const e=new T(this,this);return e.operator=t,e}next(t){if(this.closed)throw new w;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew T(t,e),t})();class T extends v{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function k(t){return t&&"function"==typeof t.schedule}class S extends f{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const C=t=>e=>{for(let i=0,n=t.length;it&&"number"==typeof t.length&&"function"!=typeof t;function R(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const x=t=>{if(t&&"function"==typeof t[m])return i=t,t=>{const e=i[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(z(t))return C(t);if(R(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e))(t);if(t&&"function"==typeof t[L])return e=t,t=>{const i=e[L]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=u(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i};function O(t,e,i,n,s=new S(t,i,n)){if(!s.closed)return e instanceof b?e.subscribe(s):x(e)(s)}class D extends f{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function P(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new N(t,e))}}class N{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new I(t,this.project,this.thisArg))}}class I extends f{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function B(t,e){return new b(i=>{const n=new h;let s=0;return n.add(e.schedule(function(){s!==t.length?(i.next(t[s++]),i.closed||n.add(this.schedule())):i.complete()})),n})}function F(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new b(i=>{const n=new h;return n.add(e.schedule(()=>{const s=t[m]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if(R(t))return function(t,e){return new b(i=>{const n=new h;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if(z(t))return B(t,e);if(function(t){return t&&"function"==typeof t[L]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new b(i=>{const n=new h;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[L](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof b?t:new b(x(t))}function H(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(H((i,n)=>F(t(i,n)).pipe(P((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new q(t,i)))}class q{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new j(t,this.project,this.concurrent))}}class j extends D{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Y(t=Number.POSITIVE_INFINITY){return H(_,t)}function W(t,e){return e?B(t,e):new b(C(t))}function U(...t){let e=Number.POSITIVE_INFINITY,i=null,n=t[t.length-1];return k(n)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof n&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof b?t[0]:Y(e)(W(t,i))}function K(){return function(t){return t.lift(new V(t))}}class V{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new X(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class X extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}class G extends b{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new J(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return K()(this)}}const $=(()=>{const t=G.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class J extends A{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function Q(){return new v}function Z(){return t=>{return K()((e=Q,function(t){let i;i="function"==typeof e?e:function(){return e};const n=Object.create(t,$);return n.source=t,n.subjectFactory=i,n})(t));var e}}function tt(t){for(let e in t)if(t[e]===tt)return e;throw Error("Could not find renamed property on target object.")}function et(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function it(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(it).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function nt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const st=tt({__forward_ref__:tt});function rt(t){return t.__forward_ref__=rt,t.toString=function(){return it(this())},t}function ot(t){return at(t)?t():t}function at(t){return"function"==typeof t&&t.hasOwnProperty(st)&&t.__forward_ref__===rt}class ct extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function ut(t){return"string"==typeof t?t:null==t?"":String(t)}function lt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ut(t)}function ht(t,e){const i=e?` in ${e}`:"";throw new ct("201",`No provider for ${lt(t)} found${i}`)}function dt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function pt(t){return{providers:t.providers||[],imports:t.imports||[]}}function ft(t){return gt(t,_t)||gt(t,yt)}function gt(t,e){return t.hasOwnProperty(e)?t[e]:null}function mt(t){return t&&(t.hasOwnProperty(bt)||t.hasOwnProperty(wt))?t[bt]:null}const _t=tt({"\u0275prov":tt}),bt=tt({"\u0275inj":tt}),yt=tt({ngInjectableDef:tt}),wt=tt({ngInjectorDef:tt});var Mt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let At;function vt(t){const e=At;return At=t,e}function Tt(t,e,i){const n=ft(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&Mt.Optional?null:void 0!==e?e:void ht(it(t),"Injector")}function kt(t){return{toString:t}.toString()}var St=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Ct=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const Et="undefined"!=typeof globalThis&&globalThis,Lt="undefined"!=typeof window&&window,zt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Rt="undefined"!=typeof global&&global,xt=Et||Rt||Lt||zt,Ot={},Dt=[],Pt=tt({"\u0275cmp":tt}),Nt=tt({"\u0275dir":tt}),It=tt({"\u0275pipe":tt}),Bt=tt({"\u0275mod":tt}),Ft=tt({"\u0275loc":tt}),Ht=tt({"\u0275fac":tt}),qt=tt({__NG_ELEMENT_ID__:tt});let jt=0;function Yt(t){return kt(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===St.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Dt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ct.Emulated,id:"c",styles:t.styles||Dt,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,r=t.pipes;return i.id+=jt++,i.inputs=Xt(t.inputs,e),i.outputs=Xt(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(Wt):null,i.pipeDefs=r?()=>("function"==typeof r?r():r).map(Ut):null,i})}function Wt(t){return Jt(t)||function(t){return t[Nt]||null}(t)}function Ut(t){return function(t){return t[It]||null}(t)}const Kt={};function Vt(t){return kt(()=>{const e={type:t.type,bootstrap:t.bootstrap||Dt,declarations:t.declarations||Dt,imports:t.imports||Dt,exports:t.exports||Dt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Kt[t.id]=t.type),e})}function Xt(t,e){if(null==t)return Ot;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),i[s]=n,e&&(e[s]=r)}return i}const Gt=Yt;function $t(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Jt(t){return t[Pt]||null}function Qt(t,e){const i=t[Bt]||null;if(!i&&!0===e)throw new Error(`Type ${it(t)} does not have '\u0275mod' property.`);return i}function Zt(t){return Array.isArray(t)&&"object"==typeof t[1]}function te(t){return Array.isArray(t)&&!0===t[1]}function ee(t){return 0!=(8&t.flags)}function ie(t){return 2==(2&t.flags)}function ne(t){return 1==(1&t.flags)}function se(t){return null!==t.template}function re(t,e){return t.hasOwnProperty(Ht)?t[Ht]:null}class oe{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ae(){return ce}function ce(t){return t.type.prototype.ngOnChanges&&(t.setInput=le),ue}function ue(){const t=he(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===Ot)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function le(t,e,i,n){const s=he(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Ot,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[i],c=o[a];r[a]=new oe(c&&c.currentValue,e,o===Ot),t[n]=e}function he(t){return t.__ngSimpleChanges__||null}let de;function pe(){return void 0!==de?de:"undefined"!=typeof document?document:void 0}function fe(t){return!!t.listen}ae.ngInherit=!0;const ge={createRenderer:(t,e)=>pe()};function me(t){for(;Array.isArray(t);)t=t[0];return t}function _e(t,e){return me(e[t])}function be(t,e){return me(e[t.index])}function ye(t,e){return t.data[e]}function we(t,e){return t[e]}function Me(t,e){const i=e[t];return Zt(i)?i:i[0]}function Ae(t){return 4==(4&t[2])}function ve(t){return 128==(128&t[2])}function Te(t,e){return null==e?null:t[e]}function ke(t){t[18]=0}function Se(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Ce={lFrame:Qe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ee(){return Ce.bindingsEnabled}function Le(){return Ce.lFrame.lView}function ze(){return Ce.lFrame.tView}function Re(t){return Ce.lFrame.contextLView=t,t[8]}function xe(){let t=Oe();for(;null!==t&&64===t.type;)t=t.parent;return t}function Oe(){return Ce.lFrame.currentTNode}function De(t,e){const i=Ce.lFrame;i.currentTNode=t,i.isParent=e}function Pe(){return Ce.lFrame.isParent}function Ne(){Ce.lFrame.isParent=!1}function Ie(){return Ce.isInCheckNoChangesMode}function Be(t){Ce.isInCheckNoChangesMode=t}function Fe(){const t=Ce.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function He(){return Ce.lFrame.bindingIndex}function qe(){return Ce.lFrame.bindingIndex++}function je(t){const e=Ce.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function Ye(t,e){const i=Ce.lFrame;i.bindingIndex=i.bindingRootIndex=t,We(e)}function We(t){Ce.lFrame.currentDirectiveIndex=t}function Ue(t){const e=Ce.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Ke(){return Ce.lFrame.currentQueryIndex}function Ve(t){Ce.lFrame.currentQueryIndex=t}function Xe(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Ge(t,e,i){if(i&Mt.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&Mt.Host||(n=Xe(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=Ce.lFrame=Je();return n.currentTNode=e,n.lView=t,!0}function $e(t){const e=Je(),i=t[1];Ce.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function Je(){const t=Ce.lFrame,e=null===t?null:t.child;return null===e?Qe(t):e}function Qe(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Ze(){const t=Ce.lFrame;return Ce.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ti=Ze;function ei(){const t=Ze();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ii(){return Ce.lFrame.selectedIndex}function ni(t){Ce.lFrame.selectedIndex=t}function si(){const t=Ce.lFrame;return ye(t.tView,t.selectedIndex)}function ri(){Ce.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function oi(){Ce.lFrame.currentNamespace=null}function ai(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}class pi{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function fi(t,e,i){const n=fe(t);let s=0;for(;se){o=r-1;break}}}for(;r>16,n=e;for(;i>0;)n=n[15],i--;return n}let Ai=!0;function vi(t){const e=Ai;return Ai=t,e}let Ti=0;function ki(t,e){const i=Ci(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Si(n.data,t),Si(e,null),Si(n.blueprint,null));const s=Ei(t,e),r=t.injectorIndex;if(yi(s)){const t=wi(s),i=Mi(s,e),n=i[1].data;for(let s=0;s<8;s++)e[r+s]=i[t+s]|n[t+s]}return e[r+8]=s,r}function Si(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ci(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Ei(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return-1;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function Li(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(qt)&&(n=i[qt]),null==n&&(n=i[qt]=Ti++);const s=255&n;e.data[t+(s>>5)]|=1<=0?255&e:Di:e}(i);if("function"==typeof r){if(!Ge(e,t,n))return n&Mt.Host?zi(s,i,n):Ri(e,i,n,s);try{const t=r(n);if(null!=t||n&Mt.Optional)return t;ht(i)}finally{ti()}}else if("number"==typeof r){let s=null,o=Ci(t,e),a=-1,c=n&Mt.Host?e[16][6]:null;for((-1===o||n&Mt.SkipSelf)&&(a=-1===o?Ei(t,e):e[o+8],-1!==a&&Fi(n,!1)?(s=e[1],o=wi(a),e=Mi(a,e)):o=-1);-1!==o;){const t=e[1];if(Bi(r,o,t.data)){const t=Pi(o,e,i,s,n,c);if(t!==Oi)return t}a=e[o+8],-1!==a&&Fi(n,e[1].data[o+8]===c)&&Bi(r,o,e)?(s=t,o=wi(a),e=Mi(a,e)):o=-1}}}return Ri(e,i,n,s)}const Oi={};function Di(){return new Hi(xe(),Le())}function Pi(t,e,i,n,s,r){const o=e[1],a=o.data[t+8],c=Ni(a,o,i,null==n?ie(a)&&Ai:n!=o&&0!=(3&a.type),s&Mt.Host&&r===a);return null!==c?Ii(e,o,c,a):Oi}function Ni(t,e,i,n,s){const r=t.providerIndexes,o=e.data,a=1048575&r,c=t.directiveStart,u=r>>20,l=s?a+u:t.directiveEnd;for(let h=n?a:a+u;h=c&&t.type===i)return h}if(s){const t=o[c];if(t&&se(t)&&t.type===i)return c}return null}function Ii(t,e,i,n){let s=t[i];const r=e.data;if(s instanceof pi){const o=s;o.resolving&&function(t,e){throw new ct("200",`Circular dependency in DI detected for ${t}`)}(lt(r[i]));const a=vi(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?vt(o.injectImpl):null;Ge(t,n,Mt.Default);try{s=t[i]=o.factory(void 0,r,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(n){const n=ce(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),r&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,r),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,r))}(i,r[i],e)}finally{null!==c&&vt(c),vi(a),o.resolving=!1,ti()}}return s}function Bi(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[Ht]||ji(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[Ht]||ji(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function ji(t){return at(t)?()=>{const e=ji(ot(t));return e&&e()}:re(t)}function Yi(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class Ui{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=dt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Ki=new Ui("AnalyzeForEntryComponents"),Vi=Function;function Xi(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?Gi(t,e):e(t))}function $i(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function Ji(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Qi(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function tn(t,e){const i=en(t,e);if(i>=0)return t[1|i]}function en(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),r=t[i<<1];if(e===r)return i<<1;r>e?s=i:n=i+1}return~(s<<1)}(t,e)}const nn={},sn=/\n/gm,rn=tt({provide:String,useValue:tt});let on;function an(t){const e=on;return on=t,e}function cn(t,e=Mt.Default){if(void 0===on)throw new Error("inject() must be called from an injection context");return null===on?Tt(t,void 0,e):on.get(t,e&Mt.Optional?null:void 0,e)}function un(t,e=Mt.Default){return(At||cn)(ot(t),e)}const ln=un;function hn(t){const e=[];for(let i=0;i({token:t})),-1),fn=dn(Wi("Optional"),8),gn=dn(Wi("SkipSelf"),4);let mn,_n;function bn(t){var e;return(null===(e=function(){if(void 0===mn&&(mn=null,xt.trustedTypes))try{mn=xt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return mn}())||void 0===e?void 0:e.createHTML(t))||t}function yn(t){var e;return(null===(e=function(){if(void 0===_n&&(_n=null,xt.trustedTypes))try{_n=xt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return _n}())||void 0===e?void 0:e.createHTML(t))||t}class wn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Mn extends wn{getTypeName(){return"HTML"}}class An extends wn{getTypeName(){return"Style"}}class vn extends wn{getTypeName(){return"Script"}}class Tn extends wn{getTypeName(){return"URL"}}class kn extends wn{getTypeName(){return"ResourceURL"}}function Sn(t){return t instanceof wn?t.changingThisBreaksApplicationSecurity:t}function Cn(t,e){const i=En(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function En(t){return t instanceof wn&&t.getTypeName()||null}class Ln{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(bn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class zn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=bn(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=bn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0On(t.trim())).join(", ")),this.buf.push(" ",e,'="',Xn(o),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Hn.hasOwnProperty(e)&&!Nn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Xn(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Kn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vn=/([^\#-~ |!])/g;function Xn(t){return t.replace(/&/g,"&").replace(Kn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Vn,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Gn;function $n(t,e){let i=null;try{Gn=Gn||function(t){const e=new zn(t);return function(){try{return!!(new window.DOMParser).parseFromString(bn(""),"text/html")}catch(t){return!1}}()?new Ln(e):e}(t);let n=e?String(e):"";i=Gn.getInertBodyElement(n);let s=5,r=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=r,r=i.innerHTML,i=Gn.getInertBodyElement(n)}while(n!==r);return bn((new Un).sanitizeChildren(Jn(i)||i))}finally{if(i){const t=Jn(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Jn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Qn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Zn(t){const e=es();return e?yn(e.sanitize(Qn.HTML,t)||""):Cn(t,"HTML")?yn(Sn(t)):$n(pe(),ut(t))}function ts(t){const e=es();return e?e.sanitize(Qn.URL,t)||"":Cn(t,"URL")?Sn(t):On(ut(t))}function es(){const t=Le();return t&&t[12]}function is(t,e){t.__ngContext__=e}function ns(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function ss(t){return t.ngDebugContext}function rs(t){return t.ngOriginalError}function os(t,...e){t.error(...e)}class as{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||os}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?ss(t)?ss(t):this._findContext(rs(t)):null}_findOriginalError(t){let e=rs(t);for(;e&&rs(e);)e=rs(e);return e}}const cs=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(xt))();function us(t){return t.ownerDocument.defaultView}function ls(t){return t.ownerDocument.body}function hs(t){return t instanceof Function?t():t}var ds=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function ps(t,e){return(void 0)(t,e)}function fs(t){const e=t[3];return te(e)?e[3]:e}function gs(t){return _s(t[13])}function ms(t){return _s(t[4])}function _s(t){for(;null!==t&&!te(t);)t=t[4];return t}function bs(t,e,i,n,s){if(null!=n){let r,o=!1;te(n)?r=n:Zt(n)&&(o=!0,n=n[0]);const a=me(n);0===t&&null!==i?null==s?Ss(e,i,a):ks(e,i,a,s||null,!0):1===t&&null!==i?ks(e,i,a,s||null,!0):2===t?function(t,e,i){const n=Es(t,e);n&&function(t,e,i,n){fe(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,i,n,s){const r=i[7];r!==me(i)&&bs(e,t,n,r,s);for(let o=10;o0&&(t[i-1][4]=n[4]);const o=Ji(t,10+e);Ns(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function As(t,e){if(!(256&e[2])){const i=e[11];fe(i)&&i.destroyNode&&Ns(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return vs(t[1],t);for(;e;){let i=null;if(Zt(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)Zt(e)&&vs(e[1],e),e=e[3];null===e&&(e=t),Zt(e)&&vs(e[1],e),i=e&&e[4]}e=i}}(e)}}function vs(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=c]():n[s=-c].unsubscribe(),r+=2}else{const t=n[s=i[r+1]];i[r].call(t)}if(null!==n){for(let t=s+1;tr?"":s[l+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==Hs(e,u,0)||2&n&&u!==t){if(Us(n))return!1;o=!0}}}}else{if(!o&&!Us(n)&&!Us(c))return!1;if(o&&Us(c))continue;o=!1,n=c|1&n}}return Us(n)||o}function Us(t){return 0==(1&t)}function Ks(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+o:4&n&&(s+=" "+o);else""===s||Us(o)||(e+=Gs(r,s),s=""),n=o,r=r||!Us(n);i++}return""!==s&&(e+=Gs(r,s)),e}const Js={};function Qs(t){Zs(ze(),Le(),ii()+t,Ie())}function Zs(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&ci(e,n,i)}else{const n=t.preOrderHooks;null!==n&&ui(e,n,0,i)}ni(i)}function tr(t,e){return t<<17|e<<2}function er(t){return t>>17&32767}function ir(t){return 2|t}function nr(t){return(131068&t)>>2}function sr(t,e){return-131069&t|e<<2}function rr(t){return 1|t}function or(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;n20&&Zs(t,e,20,Ie()),i(n,s)}finally{ni(r)}}function fr(t,e,i){if(ee(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=r&&i.push(r),i.push(n,s,o)}}function Tr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function kr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Sr(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&Dr(i)}}function Dr(t){for(let i=gs(t);null!==i;i=ms(i))for(let t=10;t0&&Dr(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&Dr(n)}}function Pr(t,e){const i=Me(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function jr(t){return t[7]||(t[7]=[])}function Yr(t){return t.cleanup||(t.cleanup=[])}function Wr(t,e,i){return(null===t||se(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function Ur(t,e){const i=t[9],n=i?i.get(as,null):null;n&&n.handleError(e)}function Kr(t,e,i,n,s){for(let r=0;rthis.processProvider(i,t,e)),Gi([t],t=>this.processInjectorType(t,[],s)),this.records.set(Gr,oo(void 0,this));const r=this.records.get(Jr);this.scope=null!=r?r.value:null,this.source=n||("object"==typeof t?null:it(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=nn,i=Mt.Default){this.assertNotDestroyed();const n=an(this);try{if(!(i&Mt.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Ui)&&ft(t);e=i&&this.injectableDefInScope(i)?oo(so(t),Qr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&Mt.Self?eo():this.parent).get(t,e=i&Mt.Optional&&e===nn?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(it(t)),n)throw r;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=it(e);if(Array.isArray(e))s=e.map(it).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):it(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(sn,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{an(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(it(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=ot(t)))return!1;let n=mt(t);const s=null==n&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==i.indexOf(r);if(void 0!==s&&(n=mt(s)),null==n)return!1;if(null!=n.imports&&!o){let t;i.push(r);try{Gi(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||Dt))}}this.injectorDefTypes.add(r);const a=re(r)||(()=>new r);this.records.set(r,oo(a,Qr));const c=n.providers;if(null!=c&&!o){const e=t;Gi(c,t=>this.processProvider(t,e,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=co(t=ot(t))?t:ot(t&&t.provide);const s=function(t,e,i){return ao(t)?oo(void 0,t.useValue):oo(ro(t),Qr)}(t);if(co(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=oo(void 0,Qr,!0),e.factory=()=>hn(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===Qr&&(e.value=Zr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=ot(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function so(t){const e=ft(t),i=null!==e?e.factory:re(t);if(null!==i)return i;if(t instanceof Ui)throw new Error(`Token ${it(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=Qi(e,"?");throw new Error(`Can't resolve all parameters for ${it(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[_t]||t[yt]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function ro(t,e,i){let n;if(co(t)){const e=ot(t);return re(e)||so(e)}if(ao(t))n=()=>ot(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...hn(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>un(ot(t.useExisting));else{const e=ot(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return re(e)||so(e);n=()=>new e(...hn(t.deps))}var s;return n}function oo(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function ao(t){return null!==t&&"object"==typeof t&&rn in t}function co(t){return"function"==typeof t}const uo=function(t,e,i){return function(t,e=null,i=null,n){const s=io(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let lo=(()=>{class t{static create(t,e){return Array.isArray(t)?uo(t,e,""):uo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=nn,t.NULL=new $r,t.\u0275prov=dt({token:t,providedIn:"any",factory:()=>un(Gr)}),t.__NG_ELEMENT_ID__=-1,t})();function ho(t,e){ai(ns(t)[1],xe())}function po(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s;if(se(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=fo(t.inputs),e.declaredInputs=fo(t.declaredInputs),e.outputs=fo(t.outputs);const i=s.hostBindings;i&&_o(t,i);const r=s.viewQuery,o=s.contentQueries;if(r&&go(t,r),o&&mo(t,o),et(t.inputs,s.inputs),et(t.declaredInputs,s.declaredInputs),et(t.outputs,s.outputs),se(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=_i(s.hostAttrs,i=_i(i,s.hostAttrs))}}(n)}function fo(t){return t===Ot?{}:t===Dt?[]:t}function go(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function mo(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function _o(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let bo=null;function yo(){if(!bo){const t=xt.Symbol;if(t&&t.iterator)bo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(me(t[n.index])):n.index;if(fe(i)){let o=null;if(!a&&c&&(o=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let r=0;ri?t[i]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,n.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,h=!1;else{r=Xo(n,e,0,r,!1);const t=i.listen(p,s,r);l.push(r,t),u&&u.push(s,g,f,f+1)}}else r=Xo(n,e,0,r,!0),p.addEventListener(s,r,o),l.push(r),u&&u.push(s,g,f,o)}else r=Xo(n,e,0,r,!1);const d=n.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,Ce.lFrame.contextLView))[8]}(t)}function $o(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const sa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ra(t){return t.substring(sa.key,sa.keyEnd)}function oa(t,e){const i=sa.textEnd;return i===e?-1:(e=sa.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,sa.key=e,i),aa(t,e,i))}function aa(t,e,i){for(;e=0;i=oa(e,i))Zi(t,ra(e),!0)}function da(t,e,i,n){const s=Le(),r=ze(),o=je(2);r.firstUpdatePass&&ga(r,t,o,n),e!==Js&&To(s,o,e)&&ba(r,r.data[ii()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=it(Sn(t)))),t}(e,i),n,o)}function pa(t,e,i,n){const s=ze(),r=je(2);s.firstUpdatePass&&ga(s,null,r,n);const o=Le();if(i!==Js&&To(o,r,i)){const a=s.data[ii()];if(Ma(a,n)&&!fa(s,r)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=nt(t,i||"")),Oo(s,a,o,i,n)}else!function(t,e,i,n,s,r,o,a){s===Js&&(s=Dt);let c=0,u=0,l=0=t.expandoStartIndex}function ga(t,e,i,n){const s=t.data;if(null===s[i+1]){const r=s[ii()],o=fa(t,i);Ma(r,n)&&null===e&&!o&&(e=!1),e=function(t,e,i,n){const s=Ue(t);let r=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=_a(i=ma(null,t,e,i,n),e.attrs,n),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(i=ma(s,t,e,i,n),null===r){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==nr(n))return t[er(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=ma(null,t,e,i[1],n),i=_a(i,e.attrs,n),function(t,e,i,n){t[er(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else r=function(t,e,i){let n;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(l=!0)}else u=i;if(s)if(0!==c){const e=er(t[a+1]);t[n+1]=tr(e,a),0!==e&&(t[e+1]=sr(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=tr(a,0),0!==a&&(t[a+1]=sr(t[a+1],n)),a=n;else t[n+1]=tr(c,0),0===a?a=n:t[c+1]=sr(t[c+1],n),c=n;l&&(t[n+1]=ir(t[n+1])),ia(t,u,n,!0),ia(t,u,n,!1),function(t,e,i,n,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&en(r,e)>=0&&(i[n+1]=rr(i[n+1]))}(e,u,t,n,r),o=tr(a,c),r?e.classBindings=o:e.styleBindings=o}(s,r,e,i,o,n)}}function ma(t,e,i,n,s){let r=null;const o=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),c=r?e[1]:e,u=null===c;let l=i[s+1];l===Js&&(l=u?Dt:void 0);let h=u?tn(l,n):c===n?l:void 0;if(r&&!wa(h)&&(h=tn(e,n)),wa(h)&&(a=h,o))return a;const d=t[s+1];s=o?er(d):nr(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=tn(t,n))}return a}function wa(t){return void 0!==t}function Ma(t,e){return 0!=(t.flags&(e?16:32))}function Aa(t,e=""){const i=Le(),n=ze(),s=t+20,r=n.firstCreatePass?cr(n,s,1,e,null):n.data[s],o=i[s]=function(t,e){return fe(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Rs(n,i,o,r),De(r,!1)}function va(t){return Ta("",t,""),va}function Ta(t,e,i){const n=Le(),s=Co(n,t,e,i);return s!==Js&&Vr(n,ii(),s),Ta}function ka(t,e,i,n,s){const r=Le(),o=Eo(r,t,e,i,n,s);return o!==Js&&Vr(r,ii(),o),ka}function Sa(t,e,i,n,s,r,o,a,c,u,l){const h=Le(),d=function(t,e,i,n,s,r,o,a,c,u,l,h){const d=He();let p=function(t,e,i,n,s,r){const o=ko(t,e,i,n);return ko(t,e+2,s,r)||o}(t,d,i,s,o,c);return p=To(t,d+4,l)||p,je(5),p?e+ut(i)+n+ut(s)+r+ut(o)+a+ut(c)+u+ut(l)+h:Js}(h,t,e,i,n,s,r,o,a,c,u,l);return d!==Js&&Vr(h,ii(),d),Sa}function Ca(t,e,i){pa(Zi,ha,Co(Le(),t,e,i),!0)}function Ea(t,e,i){const n=Le();return To(n,qe(),e)&&Mr(ze(),si(),n,t,e,n[11],i,!0),Ea}function La(t,e,i){const n=Le();if(To(n,qe(),e)){const s=ze(),r=si();Mr(s,r,n,t,e,Wr(Ue(s.data),r,n),i,!0)}return La}const za=void 0;var Ra=["en",[["a","p"],["AM","PM"],za],[["AM","PM"],za,za],[["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"]],za,[["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"]],za,[["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}",za,"{1} 'at' {0}",za],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let xa={};function Oa(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=Da(e);if(i)return i;const n=e.split("-")[0];if(i=Da(n),i)return i;if("en"===n)return Ra;throw new Error(`Missing locale data for the locale "${t}".`)}function Da(t){return t in xa||(xa[t]=xt.ng&&xt.ng.common&&xt.ng.common.locales&&xt.ng.common.locales[t]),xa[t]}var Pa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let Na="en-US";function Ia(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(Na=t.toLowerCase().replace(/_/g,"-"))}function Ba(t,e,i,n,s){if(t=ot(t),Array.isArray(t))for(let r=0;r>20;if(co(t)||!t.multi){const n=new pi(c,s,Ro),p=qa(a,e,s?l:l+d,h);-1===p?(Li(ki(u,o),r,a),Fa(r,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(n),o.push(n)):(i[p]=n,o[p]=n)}else{const p=qa(a,e,l+d,h),f=qa(a,e,l,l+d),g=p>=0&&i[p],m=f>=0&&i[f];if(s&&!m||!s&&!g){Li(ki(u,o),r,a);const l=function(t,e,i,n,s){const r=new pi(t,i,Ro);return r.multi=[],r.index=e,r.componentProviders=0,Ha(r,s,n&&!i),r}(s?Ya:ja,i.length,s,n,c);!s&&m&&(i[f].providerFactory=l),Fa(r,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(l),o.push(l)}else Fa(r,t,p>-1?p:f,Ha(i[s?f:p],c,!s&&n));!s&&n&&m&&i[f].componentProviders++}}}function Fa(t,e,i,n){const s=co(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(i);-1===t?o.push(i,[n,r]):o[t+1].push(n,r)}else o.push(i,r)}}}function Ha(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function qa(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=ze();if(n.firstCreatePass){const s=se(t);Ba(i,n.data,n.blueprint,s,!0),Ba(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class Ka{}class Va{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${it(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Xa=(()=>{class t{}return t.NULL=new Va,t})();function Ga(...t){}function $a(t,e){return new Qa(be(t,e))}const Ja=function(){return $a(xe(),Le())};let Qa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Ja,t})();function Za(t){return t instanceof Qa?t.nativeElement:t}class tc{}let ec=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ic(),t})();const ic=function(){const t=Le(),e=Me(xe().index,t);return function(t){return t[11]}(Zt(e)?e:t)};let nc=(()=>{class t{}return t.\u0275prov=dt({token:t,providedIn:"root",factory:()=>null}),t})();class sc{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const rc=new sc("12.0.5");class oc{constructor(){}supports(t){return Mo(t)}create(t){return new cc(t)}}const ac=(t,e)=>e;class cc{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ac}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const r=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(r&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new uc(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new hc),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new hc),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class uc{constructor(t,e){this.item=t,this.trackById=e,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 lc{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class hc{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new lc,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function dc(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;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(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new gc(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class gc{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function mc(){return new _c([new oc])}let _c=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||mc()),deps:[[t,new gn,new fn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=dt({token:t,providedIn:"root",factory:mc}),t})();function bc(){return new yc([new pc])}let yc=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||bc()),deps:[[t,new gn,new fn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=dt({token:t,providedIn:"root",factory:bc}),t})();function wc(t,e,i,n,s=!1){for(;null!==i;){const r=e[i.index];if(null!==r&&n.push(me(r)),te(r))for(let t=10;t-1&&(Ms(t,i),Ji(e,i))}this._attachedToViewContainer=!1}As(this._lView[1],this._lView)}onDestroy(t){yr(this._lView[1],this._lView,null,t)}markForCheck(){Ir(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Br(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Be(!0);try{Br(t,e,i)}finally{Be(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Ns(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ac extends Mc{constructor(t){super(t),this._view=t}detectChanges(){Fr(this._view)}checkNoChanges(){!function(t){Be(!0);try{Fr(t)}finally{Be(!1)}}(this._view)}get context(){return null}}const vc=function(t){return function(t,e,i){if(ie(t)&&!i){const i=Me(t.index,e);return new Mc(i,i)}return 47&t.type?new Mc(e[16],e):null}(xe(),Le(),16==(16&t))};let Tc=(()=>{class t{}return t.__NG_ELEMENT_ID__=vc,t})();const kc=[new pc],Sc=new _c([new oc]),Cc=new yc(kc),Ec=function(){return xc(xe(),Le())};let Lc=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ec,t})();const zc=Lc,Rc=class extends zc{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=ar(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),lr(e,i,t),new Mc(i)}};function xc(t,e){return 4&t.type?new Rc(e,t,$a(t,e)):null}class Oc{}class Dc{}const Pc=function(){return qc(xe(),Le())};let Nc=(()=>{class t{}return t.__NG_ELEMENT_ID__=Pc,t})();const Ic=Nc,Bc=class extends Ic{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return $a(this._hostTNode,this._hostLView)}get injector(){return new Hi(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ei(this._hostTNode,this._hostLView);if(yi(t)){const e=Mi(t,this._hostLView),i=wi(t);return new Hi(e[1].data[i+8],e)}return new Hi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Fc(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const r=i||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(Oc,null);t&&(s=t)}const o=t.create(r,n,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const i=t._lView,n=i[1];if(te(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new Bc(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,i,n){const s=10+n,r=i.length;n>0&&(i[s-1][4]=e),ncs});class Kc extends Ka{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map($s).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Wc(this.componentDef.inputs)}get outputs(){return Wc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const r=t.get(i,jc,s);return r!==jc||n===jc?r:e.get(i,n,s)}}}(t,n.injector):t,r=s.get(tc,ge),o=s.get(nc,null),a=r.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function(t,e,i){if(fe(t))return t.selectRootElement(e,i===Ct.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):ys(r.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,h={components:[],scheduler:cs,clean:qr,playerHandler:null,flags:0},d=br(0,null,null,1,0,null,null,null,null,null),p=ar(null,d,h,l,null,null,r,a,o,s);let f,g;$e(p);try{const t=function(t,e,i,n,s,r){const o=i[1];i[20]=t;const a=cr(o,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(Xr(a,c,!0),null!==t&&(fi(s,t,c),null!==a.classes&&Fs(s,t,a.classes),null!==a.styles&&Bs(s,t,a.styles)));const u=n.createRenderer(t,e),l=ar(i,_r(e),null,e.onPush?64:16,i[20],a,n,u,null,null);return o.firstCreatePass&&(Li(ki(a,i),o,e.type),kr(o,a),Cr(a,i.length,1)),Nr(i,l),i[20]=l}(u,this.componentDef,p,r,a);if(u)if(i)fi(a,u,["ng-version",rc.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&Fs(a,u,e.join(" "))}if(g=ye(d,20),void 0!==e){const t=g.projection=[];for(let i=0;it(o,e)),e.contentQueries){const t=xe();e.contentQueries(1,o,t.directiveStart)}const a=xe();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(ni(a.index),vr(i[1],a,0,a.directiveStart,a.directiveEnd,e),Tr(e,o)),o}(t,this.componentDef,p,h,[ho]),lr(d,p,null)}finally{ei()}return new Vc(this.componentType,f,$a(g,p),p,g)}}class Vc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Ac(n),this.componentType=t}get injector(){return new Hi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Xc=new Map;class Gc extends Oc{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Yc(this);const i=Qt(t),n=t[Ft]||null;n&&Ia(n),this._bootstrapComponents=hs(i.bootstrap),this._r3Injector=io(t,e,[{provide:Oc,useValue:this},{provide:Xa,useValue:this.componentFactoryResolver}],it(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=lo.THROW_IF_NOT_FOUND,i=Mt.Default){return t===lo||t===Oc||t===Gr?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class $c extends Dc{constructor(t){super(),this.moduleType=t,null!==Qt(t)&&function(t){const e=new Set;!function t(i){const n=Qt(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${it(e)} vs ${it(e.name)}`)}(s,Xc.get(s),i),Xc.set(s,i));const r=hs(n.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Gc(this.moduleType,t)}}function Jc(t,e,i){const n=Fe()+t,s=Le();return s[n]===Js?vo(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function Qc(t,e,i,n){return eu(Le(),Fe(),t,e,i,n)}function Zc(t,e,i,n,s){return iu(Le(),Fe(),t,e,i,n,s)}function tu(t,e){const i=t[e];return i===Js?void 0:i}function eu(t,e,i,n,s,r){const o=e+i;return To(t,o,s)?vo(t,o+1,r?n.call(r,s):n(s)):tu(t,o+1)}function iu(t,e,i,n,s,r,o){const a=e+i;return ko(t,a,s,r)?vo(t,a+2,o?n.call(o,s,r):n(s,r)):tu(t,a+2)}function nu(t,e){const i=ze();let n;const s=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new ct("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const r=n.factory||(n.factory=re(n.type)),o=vt(Ro);try{const t=vi(!1),e=r();return vi(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Le(),s,e),e}finally{vt(o)}}function su(t,e,i){const n=t+20,s=Le(),r=we(s,n);return cu(s,au(s,n)?eu(s,Fe(),e,r.transform,i,r):r.transform(i))}function ru(t,e,i,n){const s=t+20,r=Le(),o=we(r,s);return cu(r,au(r,s)?iu(r,Fe(),e,o.transform,i,n,o):o.transform(i,n))}function ou(t,e,i,n,s){const r=t+20,o=Le(),a=we(o,r);return cu(o,au(o,r)?function(t,e,i,n,s,r,o,a){const c=e+i;return function(t,e,i,n,s){const r=ko(t,e,i,n);return To(t,e+2,s)||r}(t,c,s,r,o)?vo(t,c+3,a?n.call(a,s,r,o):n(s,r,o)):tu(t,c+3)}(o,Fe(),e,a.transform,i,n,s,a):a.transform(i,n,s))}function au(t,e){return t[1].data[e].pure}function cu(t,e){return wo.isWrapped(e)&&(e=wo.unwrap(e),t[He()]=Js),e}function uu(t){return e=>{setTimeout(t,void 0,e)}}const lu=class extends v{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var n,s,r;let o=t,a=e||(()=>null),c=i;if(t&&"object"==typeof t){const e=t;o=null===(n=e.next)||void 0===n?void 0:n.bind(e),a=null===(s=e.error)||void 0===s?void 0:s.bind(e),c=null===(r=e.complete)||void 0===r?void 0:r.bind(e)}this.__isAsync&&(a=uu(a),o&&(o=uu(o)),c&&(c=uu(c)));const u=super.subscribe({next:o,error:a,complete:c});return t instanceof h&&t.add(u),u}};function hu(){return this._results[yo()]()}class du{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=yo(),i=du.prototype;i[e]||(i[e]=hu)}get changes(){return this._changes||(this._changes=new lu)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){this.dirty=!1;const i=Xi(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(o[t/2]);else{const s=r[t+1],o=e[-i];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=Ga,this.reject=Ga,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e.subscribe({complete:t,error:i})});t.push(i)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(un(Lu,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Ru=new Ui("AppId"),xu={provide:Ru,useFactory:function(){return`${Ou()}${Ou()}${Ou()}`},deps:[]};function Ou(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Du=new Ui("Platform Initializer"),Pu=new Ui("Platform ID"),Nu=new Ui("appBootstrapListener");let Iu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Bu=new Ui("LocaleId"),Fu=new Ui("DefaultCurrencyCode");class Hu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const qu=function(t){return new $c(t)},ju=qu,Yu=function(t){return Promise.resolve(qu(t))},Wu=function(t){const e=qu(t),i=hs(Qt(t).declarations).reduce((t,e)=>{const i=Jt(e);return i&&t.push(new Kc(i)),t},[]);return new Hu(e,i)},Uu=Wu,Ku=function(t){return Promise.resolve(Wu(t))};let Vu=(()=>{class t{constructor(){this.compileModuleSync=ju,this.compileModuleAsync=Yu,this.compileModuleAndAllComponentsSync=Uu,this.compileModuleAndAllComponentsAsync=Ku}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Xu=(()=>Promise.resolve(0))();function Gu(t){"undefined"==typeof Zone?Xu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class $u{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new lu(!1),this.onMicrotaskEmpty=new lu(!1),this.onStable=new lu(!1),this.onError=new lu(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!i&&e,this.shouldCoalesceRunChangeDetection=i,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=xt.requestAnimationFrame,e=xt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(xt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Zu(t),t.isCheckStableRunning=!0,Qu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Zu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,s,r,o,a)=>{try{return tl(t),i.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),el(t)}},onInvoke:(i,n,s,r,o,a,c)=>{try{return tl(t),i.invoke(s,r,o,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),el(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Zu(t),Qu(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$u.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if($u.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+n,t,Ju,Ga,Ga);try{return s.runTask(r,e,i)}finally{s.cancelTask(r)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const Ju={};function Qu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Zu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function tl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function el(t){t._nesting--,Qu(t)}class il{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new lu,this.onMicrotaskEmpty=new lu,this.onStable=new lu,this.onError=new lu}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let nl=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$u.assertNotInAngularZone(),Gu(()=>{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())Gu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!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(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(un($u))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),sl=(()=>{class t{constructor(){this._applications=new Map,al.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return al.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class rl{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let ol,al=new rl,cl=!0,ul=!1;function ll(){return ul=!0,cl}const hl=new Ui("AllowMultipleToken");class dl{constructor(t,e){this.name=t,this.token=e}}function pl(t,e,i=[]){const n=`Platform: ${e}`,s=new Ui(n);return(e=[])=>{let r=fl();if(!r||r.injector.get(hl,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:Jr,useValue:"platform"});!function(t){if(ol&&!ol.destroyed&&!ol.injector.get(hl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ol=t.get(gl);const e=t.get(Du,null);e&&e.forEach(t=>t())}(lo.create({providers:t,name:n}))}return function(t){const e=fl();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function fl(){return ol&&!ol.destroyed?ol:null}let gl=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new il:("zone.js"===t?void 0:t)||new $u({enableLongStackTrace:ll(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:$u,useValue:i}];return i.run(()=>{const e=lo.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(as,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{r.handleError(t)}});s.onDestroy(()=>{bl(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return qo(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(r,i,()=>{const t=s.injector.get(zu);return t.runInitializers(),t.donePromise.then(()=>(Ia(s.injector.get(Bu,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=ml({},e);return function(t,e,i){const n=new $c(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(_l);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${it(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(un(lo))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function ml(t,e){return Array.isArray(e)?e.reduce(ml,t):Object.assign(Object.assign({},t),e)}let _l=(()=>{class t{constructor(t,e,i,n,s){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new b(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new b(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{$u.assertNotInAngularZone(),Gu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{$u.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=U(r,o.pipe(Z()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof Ka?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(Oc),s=i.create(lo.NULL,[],e||i.selector,n),r=s.location.nativeElement,o=s.injector.get(nl,null),a=o&&s.injector.get(sl);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),bl(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;bl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Nu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(un($u),un(lo),un(as),un(Xa),un(zu))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function bl(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class yl{}class wl{}const Ml={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Al=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Ml}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i(1730)(e).then(t=>t[n]).then(t=>vl(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i(1730)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>vl(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(un(Vu),un(wl,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function vl(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const Tl=pl(null,"core",[{provide:Pu,useValue:"unknown"},{provide:gl,deps:[lo]},{provide:sl,deps:[]},{provide:Iu,deps:[]}]),kl=[{provide:_l,useClass:_l,deps:[$u,lo,as,Xa,zu]},{provide:Uc,deps:[$u],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:zu,useClass:zu,deps:[[new fn,Lu]]},{provide:Vu,useClass:Vu,deps:[]},xu,{provide:_c,useFactory:function(){return Sc},deps:[]},{provide:yc,useFactory:function(){return Cc},deps:[]},{provide:Bu,useFactory:function(t){return Ia(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new pn(Bu),new fn,new gn]]},{provide:Fu,useValue:"USD"}];let Sl=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(un(_l))},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:kl}),t})(),Cl=null;function El(){return Cl}const Ll=new Ui("DocumentToken");let zl=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:Rl,token:t,providedIn:"platform"}),t})();function Rl(){return un(Ol)}const xl=new Ui("Location Initialized");let Ol=(()=>{class t extends zl{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return El().getBaseHref(this._doc)}onPopState(t){const e=El().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=El().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,i){Dl()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){Dl()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({factory:Pl,token:t,providedIn:"platform"}),t})();function Dl(){return!!window.history.pushState}function Pl(){return new Ol(un(Ll))}function Nl(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function Il(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function Bl(t){return t&&"?"!==t[0]?"?"+t:t}let Fl=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:Hl,token:t,providedIn:"root"}),t})();function Hl(t){const e=un(Ll).location;return new jl(un(zl),e&&e.origin||"")}const ql=new Ui("appBaseHref");let jl=(()=>{class t extends Fl{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Nl(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Bl(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+Bl(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+Bl(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(un(zl),un(ql,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Yl=(()=>{class t extends Fl{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=Nl(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+Bl(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+Bl(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(un(zl),un(ql,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Wl=(()=>{class t{constructor(t,e){this._subject=new lu,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Il(Kl(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Bl(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Kl(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Bl(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Bl(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformStrategy).historyGo)||void 0===i||i.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(un(Fl),un(zl))},t.normalizeQueryParams=Bl,t.joinWithSlash=Nl,t.stripTrailingSlash=Il,t.\u0275prov=dt({factory:Ul,token:t,providedIn:"root"}),t})();function Ul(){return new Wl(un(Fl),un(zl))}function Kl(t){return t.replace(/\/index.html$/,"")}var Vl=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Xl=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),Gl=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),$l=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),Jl=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function Ql(t,e){return nh(Oa(t)[Pa.DateFormat],e)}function Zl(t,e){return nh(Oa(t)[Pa.TimeFormat],e)}function th(t,e){return nh(Oa(t)[Pa.DateTimeFormat],e)}function eh(t,e){const i=Oa(t),n=i[Pa.NumberSymbols][e];if(void 0===n){if(e===Jl.CurrencyDecimal)return i[Pa.NumberSymbols][Jl.Decimal];if(e===Jl.CurrencyGroup)return i[Pa.NumberSymbols][Jl.Group]}return n}function ih(t){if(!t[Pa.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Pa.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function nh(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function sh(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const rh=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,oh={},ah=/((?:[^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 ch=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),uh=function(t){return 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}({}),lh=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function hh(t,e,i,n){let s=function(t){if(Th(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,i=1,n=1]=t.split("-").map(t=>+t);return dh(e,i-1,n)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(rh))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,c,u),e}(i)}const e=new Date(t);if(!Th(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=ph(i,e)||e;let r,o=[];for(;e;){if(r=ah.exec(e),!r){o.push(e);break}{o=o.concat(r.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();n&&(a=vh(n,a),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(vh(e,n)-n))}(s,n));let c="";return o.forEach(t=>{const e=function(t){if(Ah[t])return Ah[t];let e;switch(t){case"G":case"GG":case"GGG":e=_h(lh.Eras,Gl.Abbreviated);break;case"GGGG":e=_h(lh.Eras,Gl.Wide);break;case"GGGGG":e=_h(lh.Eras,Gl.Narrow);break;case"y":e=mh(uh.FullYear,1,0,!1,!0);break;case"yy":e=mh(uh.FullYear,2,0,!0,!0);break;case"yyy":e=mh(uh.FullYear,3,0,!1,!0);break;case"yyyy":e=mh(uh.FullYear,4,0,!1,!0);break;case"Y":e=Mh(1);break;case"YY":e=Mh(2,!0);break;case"YYY":e=Mh(3);break;case"YYYY":e=Mh(4);break;case"M":case"L":e=mh(uh.Month,1,1);break;case"MM":case"LL":e=mh(uh.Month,2,1);break;case"MMM":e=_h(lh.Months,Gl.Abbreviated);break;case"MMMM":e=_h(lh.Months,Gl.Wide);break;case"MMMMM":e=_h(lh.Months,Gl.Narrow);break;case"LLL":e=_h(lh.Months,Gl.Abbreviated,Xl.Standalone);break;case"LLLL":e=_h(lh.Months,Gl.Wide,Xl.Standalone);break;case"LLLLL":e=_h(lh.Months,Gl.Narrow,Xl.Standalone);break;case"w":e=wh(1);break;case"ww":e=wh(2);break;case"W":e=wh(1,!0);break;case"d":e=mh(uh.Date,1);break;case"dd":e=mh(uh.Date,2);break;case"c":case"cc":e=mh(uh.Day,1);break;case"ccc":e=_h(lh.Days,Gl.Abbreviated,Xl.Standalone);break;case"cccc":e=_h(lh.Days,Gl.Wide,Xl.Standalone);break;case"ccccc":e=_h(lh.Days,Gl.Narrow,Xl.Standalone);break;case"cccccc":e=_h(lh.Days,Gl.Short,Xl.Standalone);break;case"E":case"EE":case"EEE":e=_h(lh.Days,Gl.Abbreviated);break;case"EEEE":e=_h(lh.Days,Gl.Wide);break;case"EEEEE":e=_h(lh.Days,Gl.Narrow);break;case"EEEEEE":e=_h(lh.Days,Gl.Short);break;case"a":case"aa":case"aaa":e=_h(lh.DayPeriods,Gl.Abbreviated);break;case"aaaa":e=_h(lh.DayPeriods,Gl.Wide);break;case"aaaaa":e=_h(lh.DayPeriods,Gl.Narrow);break;case"b":case"bb":case"bbb":e=_h(lh.DayPeriods,Gl.Abbreviated,Xl.Standalone,!0);break;case"bbbb":e=_h(lh.DayPeriods,Gl.Wide,Xl.Standalone,!0);break;case"bbbbb":e=_h(lh.DayPeriods,Gl.Narrow,Xl.Standalone,!0);break;case"B":case"BB":case"BBB":e=_h(lh.DayPeriods,Gl.Abbreviated,Xl.Format,!0);break;case"BBBB":e=_h(lh.DayPeriods,Gl.Wide,Xl.Format,!0);break;case"BBBBB":e=_h(lh.DayPeriods,Gl.Narrow,Xl.Format,!0);break;case"h":e=mh(uh.Hours,1,-12);break;case"hh":e=mh(uh.Hours,2,-12);break;case"H":e=mh(uh.Hours,1);break;case"HH":e=mh(uh.Hours,2);break;case"m":e=mh(uh.Minutes,1);break;case"mm":e=mh(uh.Minutes,2);break;case"s":e=mh(uh.Seconds,1);break;case"ss":e=mh(uh.Seconds,2);break;case"S":e=mh(uh.FractionalSeconds,1);break;case"SS":e=mh(uh.FractionalSeconds,2);break;case"SSS":e=mh(uh.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=bh(ch.Short);break;case"ZZZZZ":e=bh(ch.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=bh(ch.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=bh(ch.Long);break;default:return null}return Ah[t]=e,e}(t);c+=e?e(s,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function dh(t,e,i){const n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function ph(t,e){const i=function(t){return Oa(t)[Pa.LocaleId]}(t);if(oh[i]=oh[i]||{},oh[i][e])return oh[i][e];let n="";switch(e){case"shortDate":n=Ql(t,$l.Short);break;case"mediumDate":n=Ql(t,$l.Medium);break;case"longDate":n=Ql(t,$l.Long);break;case"fullDate":n=Ql(t,$l.Full);break;case"shortTime":n=Zl(t,$l.Short);break;case"mediumTime":n=Zl(t,$l.Medium);break;case"longTime":n=Zl(t,$l.Long);break;case"fullTime":n=Zl(t,$l.Full);break;case"short":const e=ph(t,"shortTime"),i=ph(t,"shortDate");n=fh(th(t,$l.Short),[e,i]);break;case"medium":const s=ph(t,"mediumTime"),r=ph(t,"mediumDate");n=fh(th(t,$l.Medium),[s,r]);break;case"long":const o=ph(t,"longTime"),a=ph(t,"longDate");n=fh(th(t,$l.Long),[o,a]);break;case"full":const c=ph(t,"fullTime"),u=ph(t,"fullDate");n=fh(th(t,$l.Full),[c,u])}return n&&(oh[i][e]=n),n}function fh(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function gh(t,e,i="-",n,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=i));let o=String(t);for(;o.length0||a>-i)&&(a+=i),t===uh.Hours)0===a&&-12===i&&(a=12);else if(t===uh.FractionalSeconds)return c=e,gh(a,3).substr(0,c);var c;const u=eh(o,Jl.MinusSign);return gh(a,e,u,n,s)}}function _h(t,e,i=Xl.Format,n=!1){return function(s,r){return function(t,e,i,n,s,r){switch(i){case lh.Months:return function(t,e,i){const n=Oa(t),s=nh([n[Pa.MonthsFormat],n[Pa.MonthsStandalone]],e);return nh(s,i)}(e,s,n)[t.getMonth()];case lh.Days:return function(t,e,i){const n=Oa(t),s=nh([n[Pa.DaysFormat],n[Pa.DaysStandalone]],e);return nh(s,i)}(e,s,n)[t.getDay()];case lh.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(r){const t=function(t){const e=Oa(t);return ih(e),(e[Pa.ExtraData][2]||[]).map(t=>"string"==typeof t?sh(t):[sh(t[0]),sh(t[1])])}(e),i=function(t,e,i){const n=Oa(t);ih(n);const s=nh([n[Pa.ExtraData][0],n[Pa.ExtraData][1]],e)||[];return nh(s,i)||[]}(e,s,n),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=o>=e.hours&&a>=e.minutes,s=o0?Math.floor(s/60):Math.ceil(s/60);switch(t){case ch.Short:return(s>=0?"+":"")+gh(o,2,r)+gh(Math.abs(s%60),2,r);case ch.ShortGMT:return"GMT"+(s>=0?"+":"")+gh(o,1,r);case ch.Long:return"GMT"+(s>=0?"+":"")+gh(o,2,r)+":"+gh(Math.abs(s%60),2,r);case ch.Extended:return 0===n?"Z":(s>=0?"+":"")+gh(o,2,r)+":"+gh(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function yh(t){return dh(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function wh(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=yh(i),e=function(t){const e=dh(t,0,1).getDay();return dh(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}return gh(s,t,eh(n,Jl.MinusSign))}}function Mh(t,e=!1){return function(i,n){return gh(yh(i).getFullYear(),t,eh(n,Jl.MinusSign),e)}}const Ah={};function vh(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function Th(t){return t instanceof Date&&!isNaN(t.valueOf())}class kh{}let Sh=(()=>{class t extends kh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return Oa(t)[Pa.PluralCase]}(e||this.locale)(t)){case Vl.Zero:return"zero";case Vl.One:return"one";case Vl.Two:return"two";case Vl.Few:return"few";case Vl.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(un(Bu))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function Ch(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let Eh=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Mo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${it(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Ro(_c),Ro(yc),Ro(Qa),Ro(ec))},t.\u0275dir=Gt({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Lh{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 zh=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new Lh(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new Rh(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const r=new Rh(t,s);e.push(r)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc),Ro(Lc),Ro(_c))},t.\u0275dir=Gt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Rh{constructor(t,e){this.record=t,this.view=e}}let xh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Oh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Dh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Dh("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc),Ro(Lc))},t.\u0275dir=Gt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Oh{constructor(){this.$implicit=null,this.ngIf=null}}function Dh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${it(e)}'.`)}class Ph{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Nh=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new Ph(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc),Ro(Lc),Ro(Nh,9))},t.\u0275dir=Gt({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Bh=(()=>{class t{constructor(t,e,i){i._addDefault(new Ph(t,e))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc),Ro(Lc),Ro(Nh,9))},t.\u0275dir=Gt({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Fh=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(yc),Ro(ec))},t.\u0275dir=Gt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})();function Hh(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${it(t)}'`)}class qh{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class jh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Yh=new jh,Wh=new qh;let Uh=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(qo(e))return Yh;if(jo(e))return Wh;throw Hh(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(Ro(Tc,16))},t.\u0275pipe=$t({name:"async",type:t,pure:!1}),t})(),Kh=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Hh(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"uppercase",type:t,pure:!0}),t})(),Vh=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return hh(e,i,s||this.locale,n)}catch(r){throw Hh(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(Ro(Bu,16))},t.\u0275pipe=$t({name:"date",type:t,pure:!0}),t})(),Xh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[{provide:kh,useClass:Sh}]}),t})();function Gh(t){return"browser"===t}function $h(t){return"server"===t}let Jh=(()=>{class t{}return t.\u0275prov=dt({token:t,providedIn:"root",factory:()=>new Qh(un(Ll),window)}),t})();class Qh{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){const t=n.shadowRoot;if(t){const i=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(i)return i}n=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Zh(this.window.history)||Zh(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Zh(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class td{}class ed extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new ed,Cl||(Cl=t)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(nd=nd||document.querySelector("base"),nd?nd.getAttribute("href"):null);return null==e?null:function(t){id=id||document.createElement("a"),id.setAttribute("href",t);const e=id.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){nd=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ch(document.cookie,t)}}let id,nd=null;const sd=new Ui("TRANSITION_ID"),rd=[{provide:Lu,useFactory:function(t,e,i){return()=>{i.get(zu).donePromise.then(()=>{const i=El();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[sd,Ll,lo],multi:!0}];class od{static init(){var t;t=new od,al=t}addToWindow(t){xt.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},xt.getAllAngularTestabilities=()=>t.getAllTestabilities(),xt.getAllAngularRootElements=()=>t.getAllRootElements(),xt.frameworkStabilizers||(xt.frameworkStabilizers=[]),xt.frameworkStabilizers.push(t=>{const e=xt.getAllAngularTestabilities();let i=e.length,n=!1;const s=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const n=t.getTestability(e);return null!=n?n:i?El().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let ad=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const cd=new Ui("EventManagerPlugins");let ud=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),dd=(()=>{class t extends hd{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,i){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,i.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(pd),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,i)=>{this._addStylesToHost(t,i,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(pd))}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function pd(t){El().remove(t)}const fd={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/"},gd=/%COMP%/g;function md(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let bd=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new yd(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Ct.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new wd(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case Ct.ShadowDom:return new Md(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=md(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(un(ud),un(dd),un(Ru))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class yd{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(fd[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=fd[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=fd[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(ds.DashCase|ds.Important)?t.style.setProperty(e,i,n&ds.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&ds.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,_d(i)):this.eventManager.addEventListener(t,e,_d(i))}}class wd extends yd{constructor(t,e,i,n){super(t),this.component=i;const s=md(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(gd,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(gd,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class Md extends yd{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=md(n.id,n.styles,[]);for(let r=0;r{class t extends ld{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const vd=["alt","control","meta","shift"],Td={"\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"},kd={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"},Sd={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Cd=(()=>{class t extends ld{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,n){const s=t.parseEventName(i),r=t.eventCallback(s.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>El().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let r="";if(vd.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),r+=t+".")}),r+=s,0!=i.length||0===s.length)return null;const o={};return o.domEventName=n,o.fullKey=r,o}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&kd.hasOwnProperty(e)&&(e=kd[e]))}return Td[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),vd.forEach(n=>{n!=i&&(0,Sd[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Ed=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return un(zd)},token:t,providedIn:"root"}),t})();function Ld(t){return new zd(t.get(Ll))}let zd=(()=>{class t extends Ed{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Qn.NONE:return e;case Qn.HTML:return Cn(e,"HTML")?Sn(e):$n(this._doc,String(e)).toString();case Qn.STYLE:return Cn(e,"Style")?Sn(e):e;case Qn.SCRIPT:if(Cn(e,"Script"))return Sn(e);throw new Error("unsafe value used in a script context");case Qn.URL:return En(e),Cn(e,"URL")?Sn(e):On(String(e));case Qn.RESOURCE_URL:if(Cn(e,"ResourceURL"))return Sn(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new Mn(t)}bypassSecurityTrustStyle(t){return new An(t)}bypassSecurityTrustScript(t){return new vn(t)}bypassSecurityTrustUrl(t){return new Tn(t)}bypassSecurityTrustResourceUrl(t){return new kn(t)}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({factory:function(){return Ld(un(Gr))},token:t,providedIn:"root"}),t})();const Rd=pl(Tl,"browser",[{provide:Pu,useValue:"browser"},{provide:Du,useValue:function(){ed.makeCurrent(),od.init()},multi:!0},{provide:Ll,useFactory:function(){return function(t){de=t}(document),document},deps:[]}]),xd=[[],{provide:Jr,useValue:"root"},{provide:as,useFactory:function(){return new as},deps:[]},{provide:cd,useClass:Ad,multi:!0,deps:[Ll,$u,Pu]},{provide:cd,useClass:Cd,multi:!0,deps:[Ll]},[],{provide:bd,useClass:bd,deps:[ud,dd,Ru]},{provide:tc,useExisting:bd},{provide:hd,useExisting:dd},{provide:dd,useClass:dd,deps:[Ll]},{provide:nl,useClass:nl,deps:[$u]},{provide:ud,useClass:ud,deps:[cd,$u]},{provide:td,useClass:ad,deps:[]},[]];let Od=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Ru,useValue:e.appId},{provide:sd,useExisting:Ru},rd]}}}return t.\u0275fac=function(e){return new(e||t)(un(t,12))},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:xd,imports:[Xh,Sl]}),t})();function Dd(){return new Pd(un(Ll))}let Pd=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({factory:Dd,token:t,providedIn:"root"}),t})();function Nd(...t){let e=t[t.length-1];return k(e)?(t.pop(),B(t,e)):W(t)}function Id(t,e){return H(t,e,1)}function Bd(t,e){return function(i){return i.lift(new Fd(t,e))}}"undefined"!=typeof window&&window;class Fd{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Hd(t,this.predicate,this.thisArg))}}class Hd extends f{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class qd{}class jd{}class Yd{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Yd?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Yd;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Yd?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Wd{encodeKey(t){return Ud(t)}encodeValue(t){return Ud(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Ud(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function Kd(t){return`${t}`}class Vd{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Wd,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[s,r]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],o=i.get(s)||[];o.push(r),i.set(s,o)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Vd({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Kd(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(Kd(t.value));-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class Xd{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function Gd(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function $d(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Jd(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Qd{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Yd),this.context||(this.context=new Xd),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),u)),new Qd(i,n,r,{params:u,headers:c,context:l,reportProgress:a,responseType:s,withCredentials:o})}}var Zd=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class tp{constructor(t,e=200,i="OK"){this.headers=t.headers||new Yd,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class ep extends tp{constructor(t={}){super(t),this.type=Zd.ResponseHeader}clone(t={}){return new ep({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class ip extends tp{constructor(t={}){super(t),this.type=Zd.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new ip({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class np extends tp{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function sp(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let rp=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof Qd)n=t;else{let s,r;s=i.headers instanceof Yd?i.headers:new Yd(i.headers),i.params&&(r=i.params instanceof Vd?i.params:new Vd({fromObject:i.params})),n=new Qd(t,e,void 0!==i.body?i.body:null,{headers:s,context:i.context,params:r,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=Nd(n).pipe(Id(t=>this.handler.handle(t)));if(t instanceof Qd||"events"===i.observe)return s;const r=s.pipe(Bd(t=>t instanceof ip));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe(P(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(P(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(P(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(P(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Vd).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,sp(i,e))}post(t,e,i={}){return this.request("POST",t,sp(i,e))}put(t,e,i={}){return this.request("PUT",t,sp(i,e))}}return t.\u0275fac=function(e){return new(e||t)(un(qd))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class op{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const ap=new Ui("HTTP_INTERCEPTORS");let cp=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const up=/^\)\]\}',?\n/;let lp=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new b(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Yd(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new ep({headers:r,status:e,statusText:n,url:o}),s},o=()=>{let{headers:n,status:s,statusText:o,url:a}=r(),c=null;204!==s&&(c=void 0===i.response?i.responseText:i.response),0===s&&(s=c?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(up,"");try{c=""!==c?JSON.parse(c):null}catch(l){c=t,u&&(u=!1,c={error:l,text:c})}}u?(e.next(new ip({body:c,headers:n,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new np({error:c,headers:n,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:n}=r(),s=new np({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let c=!1;const u=n=>{c||(e.next(r()),c=!0);let s={type:Zd.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},l=t=>{let i={type:Zd.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",o),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",u),null!==n&&i.upload&&i.upload.addEventListener("progress",l)),i.send(n),e.next({type:Zd.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",o),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",u),null!==n&&i.upload&&i.upload.removeEventListener("progress",l)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(un(td))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const hp=new Ui("XSRF_COOKIE_NAME"),dp=new Ui("XSRF_HEADER_NAME");class pp{}let fp=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,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=Ch(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(un(Ll),un(Pu),un(hp))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),gp=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(un(pp),un(dp))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),mp=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(ap,[]);this.chain=t.reduceRight((t,e)=>new op(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(un(jd),un(lo))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),_p=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:gp,useClass:cp}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:hp,useValue:e.cookieName}:[],e.headerName?{provide:dp,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[gp,{provide:ap,useExisting:gp,multi:!0},{provide:pp,useClass:fp},{provide:hp,useValue:"XSRF-TOKEN"},{provide:dp,useValue:"X-XSRF-TOKEN"}]}),t})(),bp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[rp,{provide:qd,useClass:mp},lp,{provide:jd,useExisting:lp}],imports:[[_p.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();class yp{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const wp=new Ui("basePath");class Mp{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}selectHeaderContentType(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let Ap=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Mp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}convertAttributeToNonunique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}convertAttributeToUnique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("attribute",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAttributeDefinitions(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let n=new Vd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attributes[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAttributeDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttribute(t,e,i,n,s,r,o,a,c,u,l,h="body",d=!1){let p=new Vd({encoder:this.encoder});null!=t&&(p=p.set("attributeName",t)),null!=e&&(p=p.set("attributeId",e)),null!=i&&(p=p.set("facility",i)),null!=n&&(p=p.set("user",n)),null!=s&&(p=p.set("vo",s)),null!=r&&(p=p.set("resource",r)),null!=o&&(p=p.set("member",o)),null!=a&&(p=p.set("group",a)),null!=c&&(p=p.set("host",c)),null!=u&&(p=p.set("userExtSource",u)),null!=l&&(p=p.set("key",l));let f=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(f=f.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+t)}const g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(f=f.set("Accept",g)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{params:p,withCredentials:this.configuration.withCredentials,headers:f,observe:h,reportProgress:d})}getAttributeDefinitionById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("attributeName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionsByNamespace(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttributeModulesDependenciesForAttributeGraphText(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("format",t)),null!=e&&(s=s.set("attrName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAttributeModulesDependenciesGraphText(t,e="body",i=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("format",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("attributeId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributesDefinitionWithRights(t,e,i,n,s,r,o,a,c="body",u=!1){let l=new Vd({encoder:this.encoder});null!=t&&(l=l.set("member",t)),null!=e&&(l=l.set("user",e)),null!=i&&(l=l.set("vo",i)),null!=n&&(l=l.set("group",n)),null!=s&&(l=l.set("resource",s)),null!=r&&(l=l.set("facility",r)),null!=o&&(l=l.set("host",o)),null!=a&&(l=l.set("userExtSource",a));let h=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(h=h.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(h=h.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;h=h.set("Authorization","Bearer "+t)}const d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(h=h.set("Accept",d)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{params:l,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:u})}getEntitylessAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEntitylessAttributesByKey(t,e="body",i=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("key",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("attrName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesWithKeys(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("attrName",t)),e&&e.forEach(t=>{s=s.append("keys[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEntitylessKeys(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacilityResourceUserMemberAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("user",i)),null!=n&&(o=o.set("member",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getFacilityUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getGroupResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getGroupResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getHostAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getHostAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getLogins(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAndUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberAndUserAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberGroupAndUserAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)}),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getMemberGroupAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberGroupAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberGroupAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)}),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getMemberResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacilityService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesFacilityServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let s=new Vd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesGroupResourceService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("group",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRequiredAttributesHostService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("host",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesMemberGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRequiredAttributesMemberGroupResourceService(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new Vd({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("group",i)),null!=n&&(a=a.set("member",n)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}getRequiredAttributesMemberGroupService(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("member",i)),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRequiredAttributesMemberResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRequiredAttributesMemberResourceService(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("member",i)),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRequiredAttributesResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesResourceService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesResourceServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let s=new Vd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesUserFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRequiredAttributesVoService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceGroupAndGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithGroupAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getResourceGroupAndGroupAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)}),null!=n&&(o=o.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getResourceGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceGroupMemberAttributesByNames(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("member",i)),n&&n.forEach(t=>{o=o.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getUserAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserExtSourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserExtSourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserFacilityAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getUserFacilityAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getUserFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeAttributesForFacilityResourceGroupUserMember(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new Vd({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=n&&(c=c.set("user",n)),null!=s&&(c=c.set("member",s)),r&&r.forEach(t=>{c=c.append("attributes[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}removeAttributesForFacilityResourceUserMember(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new Vd({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=n&&(a=a.set("member",n)),s&&s.forEach(t=>{a=a.append("attributes[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}removeEntitylessAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeGroupResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeGroupResourceAttributesWorkWithGroupAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)}),null!=n&&(o=o.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeHostAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeHostAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMemberAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMemberAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMemberAttributesWorkWithUserAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attributes[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberGroupAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberGroupAttributesWorkWithUserAttributes(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)}),null!=n&&(o=o.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeMemberResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeMemberResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeResourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUesAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserExtSourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserFacilityAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attribute",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeVoAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setEntitylessAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceGroupUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAndUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupWithGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(un(rp),un(wp,8),un(Mp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Mp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}getAllPolicies(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRolesManagementRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuthzAdminGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("role",t)),null!=e&&(r=r.set("complementaryObjectId",e)),null!=i&&(r=r.set("complementaryObjectName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getAuthzRichAdmins(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new Vd({encoder:this.encoder});null!=t&&(c=c.set("role",t)),null!=e&&(c=c.set("complementaryObjectId",e)),null!=i&&(c=c.set("complementaryObjectName",i)),n&&n.forEach(t=>{c=c.append("specificAttributes",t)}),null!=s&&(c=c.set("allUserAttributes",s)),null!=r&&(c=c.set("onlyDirectAdmins",r));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}getFacilitiesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new Vd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("groupId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new Vd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getLoggedUser(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMembersWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new Vd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getPerunPrincipal(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPrincipalRoleNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new Vd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSecurityTeamsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new Vd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("userId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new Vd({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}isFacilityAdmin(t,e="body",i=!1){let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isGroupAdmin(t,e="body",i=!1){let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isPerunAdmin(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isVoAdmin(t,e="body",i=!1){let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}keepAlive(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}loadAuthorizationComponents(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}setRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(un(rp),un(wp,8),un(Mp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Tp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Mp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}addMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");let s=new Vd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}canExtendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createGroupWithParentGroupNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("parentGroup",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}createGroupWithVoNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}deleteGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroups.");if(null==e)throw new Error("Required parameter forceDelete was null or undefined when calling deleteGroups.");let s=new Vd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("forceDelete",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroups`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}extendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}forceAllSubGroupsSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupStructureSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllRichSubGroupsWithGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("name",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupMemberById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByGroupStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByVoStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRichMembersByIds(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("members[]",t)}),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getGroupUnions(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("reverseDirection",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let n=new Vd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getIndirectMembershipPaths(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRichGroupByIdWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("groupId",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}isGroupMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}moveGroupWithDestinationGroupMovingGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new Vd({encoder:this.encoder});null!=e&&(s=s.set("destinationGroup",e)),null!=t&&(s=s.set("movingGroup",t));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");let s=new Vd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setGroupsMemberStatus(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("status",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}updateGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(un(rp),un(wp,8),un(Mp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),kp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Mp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}canExtendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createMemberForCandidate(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberFromExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSpecificMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembersFromCSV(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let n=new Vd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("members[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}extendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findCompleteRichMembersByAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let r=new Vd({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("attrsNames[]",t)}),null!=e&&(r=r.set("searchString",e)),i&&i.forEach(t=>{r=r.append("allowedStatuses[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}findCompleteRichMembersForGroup(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new Vd({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(t=>{c=c.append("attrsNames[]",t)}),s&&s.forEach(t=>{c=c.append("allowedStatuses[]",t)}),r&&r.forEach(t=>{c=c.append("allowedGroupStatuses[]",t)}),null!=i&&(c=c.set("searchString",i)),null!=n&&(c=c.set("lookingInParentGroup",n));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}findCompleteRichMembersForVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrsNames[]",t)}),n&&n.forEach(t=>{o=o.append("allowedStatuses[]",t)}),null!=i&&(o=o.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}findMembersInVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findSponsoredCompleteRichMembersForVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrsNames[]",t)}),null!=i&&(o=o.set("searchString",i)),null!=n&&(o=o.set("onlySponsored",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllNamespacesRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getCompleteRichMembersForGroup(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new Vd({encoder:this.encoder});null!=t&&(a=a.set("group",t)),i&&i.forEach(t=>{a=a.append("allowedStatuses[]",t)}),n&&n.forEach(t=>{a=a.append("allowedGroupStatuses[]",t)}),null!=e&&(a=a.set("lookingInParentGroup",e)),s&&s.forEach(t=>{a=a.append("attrsNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}getCompleteRichMembersForGroupResource(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attrsNames[]",t)}),n&&n.forEach(t=>{o=o.append("allowedStatuses[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getCompleteRichMembersForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("allowedStatuses[]",t)}),i&&i.forEach(t=>{r=r.append("attrsNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberByExtSourceNameAndExtLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extLogin",e)),null!=i&&(r=r.set("extSourceName",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMemberById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberByUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getMembersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let n=new Vd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getMembersWithStatusCount(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getRichMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMemberWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMembersByIds(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new Vd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)}),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsorsByMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsorsByVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extSourceName",e)),null!=i&&(o=o.set("extLogin",i)),n&&n.forEach(t=>{o=o.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}moveMembership(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("sourceUser",e)),null!=i&&(r=r.set("targetUser",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}removeSponsor(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("sponsor",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sendAccountActivationLinkEmail(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("emailAttributeURN",i)),null!=n&&(o=o.set("language",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sendPasswordResetLinkEmail(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("emailAttributeURN",i)),null!=n&&(o=o.set("language",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}setSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSponsorshipForMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("sponsoredMember",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}setStatus(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sponsorMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}updateSponsorshipValidity(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}validateMemberAsync(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(un(rp),un(wp,8),un(Mp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Mp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}sentMessageToRTWithMemberQueue(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("memberId",t)),null!=e&&(o=o.set("queue",e)),null!=i&&(o=o.set("subject",i)),null!=n&&(o=o.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sentMessageToRTWithQueue(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("queue",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}sentMessageToRTWithVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("voId",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}sentMessageToRTWithVoQueue(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("voId",t)),null!=e&&(o=o.set("queue",e)),null!=i&&(o=o.set("subject",i)),null!=n&&(o=o.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}}return t.\u0275fac=function(e){return new(e||t)(un(rp),un(wp,8),un(Mp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Cp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Mp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}addApplicationMailForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addApplicationMailForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let n=new Vd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}approveApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}consolidateIdentityUsingToken(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}copyFormFromGroupToGroup(t,e,i="body",n=!1){let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyFormFromGroupToVo(t,e,i="body",n=!1){let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyFormFromVoToGroup(t,e,i="body",n=!1){let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyFormFromVoToVo(t,e,i="body",n=!1){let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromGroupToGroup(t,e,i="body",n=!1){let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromGroupToVo(t,e,i="body",n=!1){let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromVoToGroup(t,e,i="body",n=!1){let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyMailsFromVoToVo(t,e,i="body",n=!1){let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createApplicationFormInGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createApplicationFormInVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplicationMailForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteApplicationMailForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteGroupsFromAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let n=new Vd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationDataById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationsForGroup(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("state[]",t)}),null!=i&&(o=o.set("dateFrom",i)),null!=n&&(o=o.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getApplicationsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getApplicationsForVo(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("state[]",t)}),null!=i&&(o=o.set("dateFrom",i)),null!=n&&(o=o.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getConsolidatorToken(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForGroupWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForVoWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}rejectApplication(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("id",t)),null!=e&&(s=s.set("reason",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sendInvitation(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let o=new Vd({encoder:this.encoder});null!=i&&(o=o.set("voId",i)),null!=n&&(o=o.set("name",n)),null!=t&&(o=o.set("email",t)),null!=e&&(o=o.set("language",e));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sendInvitationForGroup(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new Vd({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=n&&(a=a.set("groupId",n)),null!=s&&(a=a.set("name",s)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}sendInvitationGroupToExistingUser(t,e,i,n="body",s=!1){let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("userId",t)),null!=e&&(r=r.set("voId",e)),null!=i&&(r=r.set("groupId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}sendInvitationToExistingUser(t,e,i="body",n=!1){let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("userId",t)),null!=e&&(s=s.set("voId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}sendMessage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSendingEnabled(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}submitApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateApplicationMail(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}verifyApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(un(rp),un(wp,8),un(Mp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ep=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Mp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}activateGroupResourceAssignment(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}addAdminToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addAdminToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}allowGroupsToResources(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let r=new Vd({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("groups[]",t)}),e&&e.forEach(t=>{r=r.append("resources[]",t)}),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}assignGroupToResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}assignGroupToResources(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("resources[]",t)}),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}assignGroupsToResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let r=new Vd({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("groups[]",t)}),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}assignResourceTagToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}assignService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}assignServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}copyResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResource(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("name",i)),null!=n&&(o=o.set("description",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}createResourceTagWithResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResourceTagWithTagName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("tagName",t)),null!=e&&(s=s.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deactivateGroupResourceAssignment(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteAllResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAdmins(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllResourcesByResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllResourcesTagsForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedUsersOfResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAssignedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMemberService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAssignedServicesToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedResourceById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("id",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEnrichedResourcesForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getEnrichedResourcesForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("name",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let n=new Vd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesCountForAll(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesCountForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesFromVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getResourcesWhereGroupIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("group",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getResourcesWhereUserIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("user",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getRichAdmins(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("specificAttributes",t)}),null!=i&&(o=o.set("allUserAttributes",i)),null!=n&&(o=o.set("onlyDirectAdmins",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRichResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let n=new Vd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeAllResourceTagsFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeBanByMemberAndResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeGroupsFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let s=new Vd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeResourceTagFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}setResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unallowGroupsFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let s=new Vd({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),e&&e.forEach(t=>{s=s.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}updateResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(un(rp),un(wp,8),un(Mp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Lp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Mp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}addSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addUserExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}changeNonAuthzPasswordByToken(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("token",t)),null!=e&&(r=r.set("password",e)),null!=i&&(r=r.set("lang",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}changePasswordForLogin(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let a=new Vd({encoder:this.encoder});null!=t&&(a=a.set("login",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}changePasswordForUser(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let a=new Vd({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}checkPasswordResetRequestByTokenIsValid(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkPasswordStrength(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("password",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createAlternativePassword(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("description",e)),null!=i&&(o=o.set("loginNamespace",i)),null!=n&&(o=o.set("password",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}createServiceUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAlternativePassword(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("loginNamespace",e)),null!=i&&(r=r.set("passwordId",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}deletePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deletePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}deleteUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findRichUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findRichUsersWithAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("searchString",t)),e&&e.forEach(t=>{s=s.append("attrsNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsForFacilityWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsForResourceWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsInVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getGroupsWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getPendingPreferredEmailChanges(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let n=new Vd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithAttributesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let n=new Vd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithoutVoWithAttributes(t,e="body",i=!1){let n=new Vd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrsNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSpecificUsersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsorsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getSponsorsForMemberByVoAndLogin(t,e,i,n,s="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let o=new Vd({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extSourceName",e)),null!=i&&(o=o.set("extLogin",i)),n&&n.forEach(t=>{o=o.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getUserByExtSourceNameAndExtLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("extLogin",t)),null!=e&&(s=s.set("extSourceName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getUserById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let n=new Vd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let n=new Vd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersBySpecificUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("specificUser",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isLoginAvailable(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("loginNamespace",t)),null!=e&&(s=s.set("login",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}loginExist(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeUserExtSource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("userExtSource",e)),null!=i&&(r=r.set("force",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}requestPreferredEmailChange(t,e,i,n,s,r,o="body",a=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let c=new Vd({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("email",e)),null!=i&&(c=c.set("lang",i)),null!=n&&(c=c.set("linkPath",n)),null!=s&&(c=c.set("customUrl",s)),null!=r&&(c=c.set("idpFilter",r));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}reservePasswordForLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}reservePasswordForUser(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}reserveRandomPassword(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}updateUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}validatePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}validatePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}validatePreferredEmailChangeWithToken(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("token",t)),null!=e&&(s=s.set("u",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(un(rp),un(wp,8),un(Mp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),zp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Mp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}getAppsConfig(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGuiConfiguration(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunRPCVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatistics(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatus(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunSystemTimeInMillis(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(un(rp),un(wp,8),un(Mp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Rp=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Yd,this.configuration=new Mp,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new yp}addSponsorRoleToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addSponsorRoleToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}addVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createVoWithName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("shortName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}createVoWithVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}findCandidates(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("id",t)),null!=e&&(r=r.set("searchString",e)),null!=i&&(r=r.set("maxNumOfResults",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}findCandidatesForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getCompleteCandidatesForGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getCompleteCandidatesForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getMyVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRichAdminsForVo(t,e,i,n,s,r="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new Vd({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("role",e)),i&&i.forEach(t=>{a=a.append("specificAttributes",t)}),null!=n&&(a=a.set("allUserAttributes",n)),null!=s&&(a=a.set("onlyDirectAdmins",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}getVoAdminGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("role",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}getVoAdminUsers(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let r=new Vd({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("role",e)),null!=i&&(r=r.set("onlyDirectAdmins",i));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(o=o.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:s})}getVoBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBansForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoByShortName(t,e="body",i=!1){let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("shortName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoMembersCountsByStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let n=new Vd({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeSponsorRoleFromGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeSponsorRoleFromUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new Vd({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:n})}removeVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let n=new Vd({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(s=s.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const r=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==r&&(n=n.set("Content-Type",r)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(un(rp),un(wp,8),un(Mp,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var xp,Op,Dp,Pp;!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(xp||(xp={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(Op||(Op={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(Dp||(Dp={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(Pp||(Pp={}));var Np=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({});let Ip=(()=>{class t{constructor(t){this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(t){this.principal=t,this.initData(t)}setPerunPolicies(t){this.perunPolicies=t}getPerunPolicies(){return this.perunPolicies}isAuthorized(t,e){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(t);let n=[];for(const r of i)n=n.concat(r.perunRoles);const s=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,s)}resolveAuthorization(t,e){for(const i of t){let t=!0;for(const n of Object.keys(i)){const s=i[n];if(null===s)this.principalRoles.has(n)||(t=!1);else if(e[s]){for(const i of e[s])if(!this.principalHasRole(n,s,i)){t=!1;break}}else t=!1;if(!t)break}if(t)return!0}return!1}fetchAllRelatedObjects(t){const e={};for(const i of t){let t=i.beanName;switch(i.beanName.startsWith("Rich")&&(t=i.beanName.substring(4)),e[t]?e[t].push(i.id):e[t]=[i.id],t){case"Member":e.User?e.User.push(i.userId):e.User=[i.userId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Group":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Resource":e.Facility?e.Facility.push(i.facilityId):e.Facility=[i.facilityId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"ResourceTag":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId]}}return e}principalHasRole(t,e,i){let n=e;return e.startsWith("Rich")&&(n=e.substring(4)),!(!this.principal.roles[t]||!this.principal.roles[t][n])&&this.principal.roles[t][n].includes(Number(i.toString()))}fetchPolicyWithAllIncludedPolicies(t){const e=new Map;let i=[];for(i.push(t);0!==i.length;){const n=i.shift();if(e.has(n)){console.log("Policy {} creates a cycle in the included policies of the policy {}",n,t);continue}const s=this.getPerunPolicy(n);if(!s)return[];e.set(n,s),i=i.concat(s.includePolicies)}const n=[];for(const s of e.values())n.push(s);return n}getPerunPolicy(t){for(const e of this.perunPolicies)if(e.policyName===t)return e;return console.log("policy with name"+t+"was not found"),null}canManageFacilities(){return this.hasAtLeastOne(Np.PERUNADMIN,Np.PERUNOBSERVER,Np.FACILITYADMIN,Np.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(Np.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(Np.PERUNADMIN,Np.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(Np.PERUNADMIN,Np.VOADMIN)}isThisVoAdminOrObserver(t){return this.editableVos.includes(t)||this.observableVos.includes(t)||this.hasAtLeastOne(Np.PERUNADMIN,Np.PERUNOBSERVER)}isThisVoAdmin(t){return this.editableVos.includes(t)||this.principalRoles.has(Np.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(Np.PERUNADMIN,Np.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(Np.SPONSOR)}isThisGroupAdmin(t){return this.editableGroups.includes(t)||this.principalRoles.has(Np.PERUNADMIN)}isGroupAdminInThisVo(t){return this.hasGroupInTheseVos.includes(t)}isFacilityAdmin(){return this.hasAtLeastOne(Np.PERUNADMIN,Np.FACILITYADMIN)}isThisFacilityAdmin(t){return this.editableFacilities.includes(t)||this.principalRoles.has(Np.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(Np.PERUNADMIN,Np.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(Np.PERUNADMIN,Np.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(Np.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(Np.PERUNADMIN,Np.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(Np.PERUNADMIN,Np.VOOBSERVER,Np.PERUNOBSERVER)}isThisVoObserver(t){return this.hasAtLeastOne(Np.PERUNADMIN,Np.PERUNOBSERVER)||this.observableVos.includes(t)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((t,e)=>{this.authzSevice.getAllRolesManagementRules().subscribe(e=>{this.allRolesManagementRules=e,t()},t=>e(t))})}assignAvailableRoles(t,e){this.allRolesManagementRules.forEach(i=>{i.primaryObject===e&&t.push(i.roleName)}),t.sort(),"Vo"===e&&this.voCustomSort(t)}isManagerPagePrivileged(t){const e=[];let i=t.beanName;i.startsWith("Rich")&&(i=i.substr(4)),this.assignAvailableRoles(e,i);const n=new Map;this.getRolesAuthorization(e,t,n);for(const s of n.values())if(s.readAuth||s.manageAuth)return!0;return!1}getRolesAuthorization(t,e,i){for(const n of t){let t=[],s=[],r=[];for(const e of this.allRolesManagementRules)if(e.roleName===n){t=t.concat(e.privilegedRolesToRead),s=s.concat(e.privilegedRolesToManage);for(const t of Object.keys(e.entitiesToManage))r="User"===t?[t].concat(r):r.concat(t);break}const o=this.fetchAllRelatedObjects([e]),a=this.resolveAuthorization(t,o),c=this.resolveAuthorization(s,o);i.set(n,{readAuth:a,manageAuth:c,modes:r})}}voCustomSort(t){for(let e=0;e{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Up(...t){return Y(1)(Nd(...t))}const Kp=new b(t=>t.complete());function Vp(t){return t?function(t){return new b(e=>t.schedule(()=>e.complete()))}(t):Kp}function Xp(t){return new b(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?F(i):Vp()).subscribe(e)})}function Gp(t,e){return"function"==typeof e?i=>i.pipe(Gp((i,n)=>F(t(i,n)).pipe(P((t,s)=>e(i,t,n,s))))):e=>e.lift(new $p(t))}class $p{constructor(t){this.project=t}call(t,e){return e.subscribe(new Jp(t,this.project))}}class Jp extends D{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const s=new S(this,e,i),r=this.destination;r.add(s),this.innerSubscription=O(this,t,void 0,void 0,s),this.innerSubscription!==s&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}const Qp=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Zp(t){return e=>0===t?Vp():e.lift(new tf(t))}class tf{constructor(t){if(this.total=t,this.total<0)throw new Qp}call(t,e){return e.subscribe(new ef(t,this.total))}}class ef extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function nf(...t){const e=t[t.length-1];return k(e)?(t.pop(),i=>Up(t,i,e)):e=>Up(t,e)}function sf(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new rf(t,e,i))}}class rf{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new of(t,this.accumulator,this.seed,this.hasSeed))}}class of extends f{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}function af(t){return function(e){const i=new cf(t),n=e.lift(i);return i.caught=n}}class cf{constructor(t){this.selector=t}call(t,e){return e.subscribe(new uf(t,this.selector,this.caught))}}class uf extends D{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new S(this,void 0,void 0);this.add(n);const s=O(this,i,void 0,void 0,n);s!==n&&this.add(s)}}}function lf(t){return function(e){return 0===t?Vp():e.lift(new hf(t))}}class hf{constructor(t){if(this.total=t,this.total<0)throw new Qp}call(t,e){return e.subscribe(new df(t,this.total))}}class df extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;se.lift(new ff(t))}class ff{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new gf(t,this.errorFactory))}}class gf extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function mf(){return new Wp}function _f(t=null){return e=>e.lift(new bf(t))}class bf{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new yf(t,this.defaultValue))}}class yf extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function wf(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Bd((e,i)=>t(e,i,n)):_,Zp(1),i?_f(e):pf(()=>new Wp))}function Mf(){}function Af(t,e,i){return function(n){return n.lift(new vf(t,e,i))}}class vf{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new Tf(t,this.nextOrObserver,this.error,this.complete))}}class Tf extends f{constructor(t,e,i,s){super(t),this._tapNext=Mf,this._tapError=Mf,this._tapComplete=Mf,this._tapError=i||Mf,this._tapComplete=s||Mf,n(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Mf,this._tapError=e.error||Mf,this._tapComplete=e.complete||Mf)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function kf(t){return e=>e.lift(new Sf(t))}class Sf{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Cf(t,this.callback))}}class Cf extends f{constructor(t,e){super(t),this.add(new h(e))}}class Ef{constructor(t,e){this.id=t,this.url=e}}class Lf extends Ef{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zf extends Ef{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Rf extends Ef{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class xf extends Ef{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Of extends Ef{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Df extends Ef{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pf extends Ef{constructor(t,e,i,n,s){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Nf extends Ef{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class If extends Ef{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Bf{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ff{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Hf{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qf{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jf{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yf{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wf{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Uf{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Kf(t){return new Uf(t)}function Vf(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Xf(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function Jf(t){return Array.prototype.concat.apply([],t)}function Qf(t){return t.length>0?t[t.length-1]:null}function Zf(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function tg(t){return Yo(t)?t:qo(t)?F(Promise.resolve(t)):Nd(t)}const eg={exact:function t(e,i,n){if(!lg(e.segments,i.segments))return!1;if(!og(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const s in i.children){if(!e.children[s])return!1;if(!t(e.children[s],i.children[s],n))return!1}return!0},subset:sg},ig={exact:function(t,e){return Gf(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>$f(t[i],e[i]))},ignored:()=>!0};function ng(t,e,i){return eg[i.paths](t.root,e.root,i.matrixParams)&&ig[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function sg(t,e,i){return rg(t,e,e.segments,i)}function rg(t,e,i,n){if(t.segments.length>i.length){const s=t.segments.slice(0,i.length);return!!lg(s,i)&&!e.hasChildren()&&!!og(s,i,n)}if(t.segments.length===i.length){if(!lg(t.segments,i))return!1;if(!og(t.segments,i,n))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!sg(t.children[i],e.children[i],n))return!1}return!0}{const s=i.slice(0,t.segments.length),r=i.slice(t.segments.length);return!!lg(t.segments,s)&&!!og(t.segments,s,n)&&!!t.children.primary&&rg(t.children.primary,e,r,n)}}function og(t,e,i){return e.every((e,n)=>ig[i](t[n].parameters,e.parameters))}class ag{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Kf(this.queryParams)),this._queryParamMap}toString(){return pg.serialize(this)}}class cg{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Zf(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fg(this)}}class ug{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Kf(this.parameters)),this._parameterMap}toString(){return Mg(this)}}function lg(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class hg{}class dg{parse(t){const e=new Sg(t);return new ag(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${gg(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${_g(e)}=${_g(t)}`).join("&"):`${_g(e)}=${_g(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const pg=new dg;function fg(t){return t.segments.map(t=>Mg(t)).join("/")}function gg(t,e){if(!t.hasChildren())return fg(t);if(e){const e=t.children.primary?gg(t.children.primary,!1):"",i=[];return Zf(t.children,(t,e)=>{"primary"!==e&&i.push(`${e}:${gg(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return Zf(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),Zf(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>"primary"===i?[gg(t.children.primary,!1)]:[`${i}:${gg(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${fg(t)}/${e[0]}`:`${fg(t)}/(${e.join("//")})`}}function mg(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _g(t){return mg(t).replace(/%3B/gi,";")}function bg(t){return mg(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yg(t){return decodeURIComponent(t)}function wg(t){return yg(t.replace(/\+/g,"%20"))}function Mg(t){return`${bg(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${bg(t)}=${bg(e[t])}`).join("")}`;var e}const Ag=/^[^\/()?;=#]+/;function vg(t){const e=t.match(Ag);return e?e[0]:""}const Tg=/^[^=?&#]+/,kg=/^[^?&#]+/;class Sg{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new cg([],{}):new cg([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new cg(t,e)),i}parseSegment(){const t=vg(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new ug(yg(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=vg(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=vg(this.remaining);t&&(i=t,this.capture(i))}t[yg(e)]=yg(i)}parseQueryParam(t){const e=function(t){const e=t.match(Tg);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(kg);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=wg(e),s=wg(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=vg(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new cg([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Cg{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Eg(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Eg(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Lg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Lg(t,this._root).map(t=>t.value)}}function Eg(t,e){if(t===e.value)return e;for(const i of e.children){const e=Eg(t,i);if(e)return e}return null}function Lg(t,e){if(t===e.value)return[e];for(const i of e.children){const n=Lg(t,i);if(n.length)return n.unshift(e),n}return[]}class zg{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Rg(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class xg extends Cg{constructor(t,e){super(t),this.snapshot=e,Bg(this,t)}toString(){return this.snapshot.toString()}}function Og(t,e){const i=function(t,e){const i=new Ng([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Ig("",new zg(i,[]))}(t,e),n=new Fp([new ug("",{})]),s=new Fp({}),r=new Fp({}),o=new Fp({}),a=new Fp(""),c=new Dg(n,s,o,a,r,"primary",e,i.root);return c.snapshot=i.root,new xg(new zg(c,[]),i)}class Dg{constructor(t,e,i,n,s,r,o,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=o,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(P(t=>Kf(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(P(t=>Kf(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Pg(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Ng{constructor(t,e,i,n,s,r,o,a,c,u,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}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=Kf(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Kf(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ig extends Cg{constructor(t,e){super(e),this.url=t,Bg(this,e)}toString(){return Fg(this._root)}}function Bg(t,e){e.value._routerState=t,e.children.forEach(e=>Bg(t,e))}function Fg(t){const e=t.children.length>0?` { ${t.children.map(Fg).join(", ")} } `:"";return`${t.value}${e}`}function Hg(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Gf(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),Gf(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iGf(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||qg(t.parent,e.parent))}function jg(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return jg(t,e,n);return jg(t,e)})}(t,e,i);return new zg(n,s)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const t=i.route;return Yg(e,t),t}}const i=new Dg(new Fp((n=e.value).url),new Fp(n.params),new Fp(n.queryParams),new Fp(n.fragment),new Fp(n.data),n.outlet,n.component,n),s=e.children.map(e=>jg(t,e));return new zg(i,s)}var n}function Yg(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new ag(i.root===t?e:Vg(i.root,t,e),r,s)}function Vg(t,e,i){const n={};return Zf(t.children,(t,s)=>{n[s]=t===e?i:Vg(t,e,i)}),new cg(t.segments,n)}class Xg{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Wg(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(Ug);if(n&&n!==Qf(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gg{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function $g(t,e,i){if(t||(t=new cg([],{})),0===t.segments.length&&t.hasChildren())return Jg(t,e,i);const n=function(t,e,i){let n=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return r;const e=t.segments[s],o=i[n];if(Ug(o))break;const a=`${o}`,c=n0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!em(a,c,e))return r;n+=2}else{if(!em(a,{},e))return r;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=$g(t.children[n],e,i))}),Zf(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new cg(t.segments,s)}}function Qg(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=Qg(new cg([],{}),0,t))}),e}function tm(t){const e={};return Zf(t,(t,i)=>e[i]=`${t}`),e}function em(t,e,i){return t==i.path&&Gf(e,i.parameters)}class im{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Hg(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=Rg(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),Zf(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,s=Rg(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const n=Rg(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new Yf(t.value.snapshot))}),t.children.length&&this.forwardEvent(new qf(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(Hg(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),nm(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function nm(t){Hg(t.value),t.children.forEach(nm)}class sm{constructor(t,e){this.routes=t,this.module=e}}function rm(t){return"function"==typeof t}function om(t){return t instanceof ag}const am=Symbol("INITIAL_VALUE");function cm(){return Gp(t=>qp(t.map(t=>t.pipe(Zp(1),nf(am)))).pipe(sf((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==am)return t;if(n===am&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||om(n))return n}return t},t)},am),Bd(t=>t!==am),P(t=>om(t)?t:!0===t),Zp(1)))}let um=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&No(0,"router-outlet")},directives:function(){return[o_]},encapsulation:2}),t})();function lm(t,e=""){for(let i=0;ifm(t)===e);return i.push(...t.filter(t=>fm(t)!==e)),i}const mm={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function _m(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},mm):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||Xf)(i,t,e);if(!s)return Object.assign({},mm);const r={};Zf(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function bm(t,e,i,n,s="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>ym(t,e,i)&&"primary"!==fm(i))}(t,i,n)){const s=new cg(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const r of i)if(""===r.path&&"primary"!==fm(r)){const i=new cg([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[fm(r)]=i}return s}(t,e,n,new cg(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>ym(t,e,i))}(t,i,n)){const r=new cg(t.segments,function(t,e,i,n,s,r){const o={};for(const a of n)if(ym(t,i,a)&&!s[fm(a)]){const i=new cg([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[fm(a)]=i}return Object.assign(Object.assign({},s),o)}(t,e,i,n,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}const r=new cg(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}function ym(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function wm(t,e,i,n){return!!(fm(t)===n||"primary"!==n&&ym(e,i,t))&&("**"===t.path||_m(e,t,i).matched)}function Mm(t,e,i){return 0===e.length&&!t.children[i]}class Am{constructor(t){this.segmentGroup=t||null}}class vm{constructor(t){this.urlTree=t}}function Tm(t){return new b(e=>e.error(new Am(t)))}function km(t){return new b(e=>e.error(new vm(t)))}function Sm(t){return new b(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Cm{constructor(t,e,i,n,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Oc)}apply(){const t=bm(this.urlTree.root,[],[],this.config).segmentGroup,e=new cg(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,"primary").pipe(P(t=>this.createUrlTree(Em(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(af(t=>{if(t instanceof vm)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Am)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(P(e=>this.createUrlTree(Em(e),t.queryParams,t.fragment))).pipe(af(t=>{if(t instanceof Am)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new cg([],{primary:t}):t;return new ag(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(P(t=>new cg([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const s of Object.keys(i.children))"primary"===s?n.unshift(s):n.push(s);return F(n).pipe(Id(n=>{const s=i.children[n],r=gm(e,n);return this.expandSegmentGroup(t,r,s,n).pipe(P(t=>({segment:t,outlet:n})))}),sf((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Bd((e,i)=>t(e,i,n)):_,lf(1),i?_f(e):pf(()=>new Wp))}())}expandSegment(t,e,i,n,s,r){return F(i).pipe(Id(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,s,r).pipe(af(t=>{if(t instanceof Am)return Nd(null);throw t}))),wf(t=>!!t),af((t,i)=>{if(t instanceof Wp||"EmptyError"===t.name){if(Mm(e,n,s))return Nd(new cg([],{}));throw new Am(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,s,r,o){return wm(n,e,s,r)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r):Tm(e):Tm(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?km(s):this.lineralizeSegments(i,s).pipe(H(i=>{const s=new cg(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:u}=_m(e,n,s);if(!o)return Tm(e);const l=this.applyRedirectCommands(a,n.redirectTo,u);return n.redirectTo.startsWith("/")?km(l):this.lineralizeSegments(n,l).pipe(H(n=>this.expandSegment(t,e,i,n.concat(s.slice(c)),r,!1)))}matchSegmentAgainstRoute(t,e,i,n,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?Nd(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(P(t=>(i._loadedConfig=t,new cg(n,{})))):Nd(new cg(n,{}));const{matched:r,consumedSegments:o,lastChild:a}=_m(e,i,n);if(!r)return Tm(e);const c=n.slice(a);return this.getChildConfig(t,i,n).pipe(H(t=>{const n=t.module,r=t.routes,{segmentGroup:a,slicedSegments:u}=bm(e,o,c,r),l=new cg(a.segments,a.children);if(0===u.length&&l.hasChildren())return this.expandChildren(n,r,l).pipe(P(t=>new cg(o,t)));if(0===r.length&&0===u.length)return Nd(new cg(o,{}));const h=fm(i)===s;return this.expandSegment(n,l,r,u,h?"primary":s,!0).pipe(P(t=>new cg(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Nd(new sm(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Nd(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(H(i=>i?this.configLoader.load(t.injector,e).pipe(P(t=>(e._loadedConfig=t,t))):function(t){return new b(e=>e.error(Vf(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Nd(new sm([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;return n&&0!==n.length?Nd(n.map(n=>{const s=t.get(n);let r;if(function(t){return t&&rm(t.canLoad)}(s))r=s.canLoad(e,i);else{if(!rm(s))throw new Error("Invalid CanLoad guard");r=s(e,i)}return tg(r)})).pipe(cm(),Af(t=>{if(!om(t))return;const e=Vf(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),P(t=>!0===t)):Nd(!0)}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Nd(i);if(n.numberOfChildren>1||!n.children.primary)return Sm(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new ag(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Zf(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let r={};return Zf(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,i,n)}),new cg(s,r)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function Em(t){const e={};for(const i of Object.keys(t.children)){const n=Em(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new cg(t.segments.concat(e.segments),e.children)}return t}(new cg(t.segments,e))}class Lm{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class zm{constructor(t,e){this.component=t,this.route=e}}function Rm(t,e,i){const n=t._root;return Om(n,e?e._root:null,i,[n.value])}function xm(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Om(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=Rg(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!lg(t.url,e.url);case"pathParamsOrQueryParamsChange":return!lg(t.url,e.url)||!Gf(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qg(t,e)||!Gf(t.queryParams,e.queryParams);case"paramsChange":default:return!qg(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new Lm(n)):(r.data=o.data,r._resolvedData=o._resolvedData),Om(t,e,r.component?a?a.children:null:i,n,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new zm(a.outlet.component,o))}else o&&Dm(e,a,s),s.canActivateChecks.push(new Lm(n)),Om(t,null,r.component?a?a.children:null:i,n,s)}(t,r[t.value.outlet],i,n.concat([t.value]),s),delete r[t.value.outlet]}),Zf(r,(t,e)=>Dm(t,i.getContext(e),s)),s}function Dm(t,e,i){const n=Rg(t),s=t.value;Zf(n,(t,n)=>{Dm(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new zm(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Pm{}function Nm(t){return new b(e=>e.error(t))}class Im{constructor(t,e,i,n,s,r){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=bm(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;const i=new Ng([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new zg(i,e),s=new Ig(this.url,n);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=Pg(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const n=e.children[s],r=gm(t,s),o=this.processSegmentGroup(r,n,s);if(null===o)return null;i.push(...o)}const n=Fm(i);return n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,i,n);if(null!==t)return t}return Mm(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!wm(t,e,i,n))return null;let s,r=[],o=[];if("**"===t.path){const n=i.length>0?Qf(i).parameters:{};s=new Ng(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,jm(t),fm(t),t.component,t,Hm(e),qm(e)+i.length,Ym(t))}else{const n=_m(e,t,i);if(!n.matched)return null;r=n.consumedSegments,o=i.slice(n.lastChild),s=new Ng(r,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,jm(t),fm(t),t.component,t,Hm(e),qm(e)+r.length,Ym(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=bm(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new zg(s,t)]}if(0===a.length&&0===u.length)return[new zg(s,[])];const l=fm(t)===n,h=this.processSegment(a,c,u,l?"primary":n);return null===h?null:[new zg(s,h)]}}function Bm(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Fm(t){const e=[],i=new Set;for(const n of t){if(!Bm(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),i.add(t)):e.push(n)}for(const n of i){const t=Fm(n.children);e.push(new zg(n.value,t))}return e.filter(t=>!i.has(t))}function Hm(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function qm(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function jm(t){return t.data||{}}function Ym(t){return t.resolve||{}}function Wm(t){return Gp(e=>{const i=t(e);return i?F(i).pipe(P(()=>e)):Nd(e)})}class Um extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Km=new Ui("ROUTES");class Vm{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe(P(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new sm(Jf(n.injector.get(Km,void 0,Mt.Self|Mt.Optional)).map(pm),n)}),af(t=>{throw e._loader$=void 0,t}));return e._loader$=new G(i,()=>new v).pipe(K()),e._loader$}loadModuleFactory(t){return"string"==typeof t?F(this.loader.load(t)):tg(t()).pipe(H(t=>t instanceof Dc?Nd(t):F(this.compiler.compileModuleAsync(t))))}}class Xm{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Gm,this.attachRef=null}}class Gm{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Xm,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class $m{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Jm(t){throw t}function Qm(t,e,i){return e.parse("/")}function Zm(t,e){return Nd(null)}const t_={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},e_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let i_=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new v,this.errorHandler=Jm,this.malformedUriErrorHandler=Qm,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Zm,afterPreactivation:Zm},this.urlHandlingStrategy=new $m,this.routeReuseStrategy=new Um,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(Oc),this.console=s.get(Iu);const c=s.get($u);this.isNgZoneEnabled=c instanceof $u&&$u.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new ag(new cg([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Vm(r,o,t=>this.triggerEvent(new Bf(t)),t=>this.triggerEvent(new Ff(t))),this.routerState=Og(this.currentUrlTree,this.rootComponentType),this.transitions=new Fp({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()}setupNavigations(t){const e=this.events;return t.pipe(Bd(t=>0!==t.id),P(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Gp(t=>{let i=!1,n=!1;return Nd(t).pipe(Af(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Gp(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Nd(t).pipe(Gp(t=>{const i=this.transitions.getValue();return e.next(new Lf(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?Kp:Promise.resolve(t)}),function(t,e,i,n){return Gp(s=>function(t,e,i,n,s){return new Cm(t,e,i,n,s).apply()}(t,e,i,s.extractedUrl,n).pipe(P(t=>Object.assign(Object.assign({},s),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Af(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return H(r=>function(t,e,i,n,s="emptyOnly",r="legacy"){try{const o=new Im(t,e,i,n,s,r).recognize();return null===o?Nm(new Pm):Nd(o)}catch(o){return Nm(o)}}(t,e,r.urlAfterRedirects,i(r.urlAfterRedirects),n,s).pipe(P(t=>Object.assign(Object.assign({},r),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Af(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const i=new Of(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:r,extras:o}=t,a=new Lf(i,this.serializeUrl(n),s,r);e.next(a);const c=Og(n,this.rootComponentType).snapshot;return Nd(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Kp}),Wm(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),Af(t=>{const e=new Df(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),P(t=>Object.assign(Object.assign({},t),{guards:Rm(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return H(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=i;return 0===o.length&&0===r.length?Nd(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return F(t).pipe(H(t=>function(t,e,i,n,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Nd(r.map(r=>{const o=xm(r,e,s);let a;if(function(t){return t&&rm(t.canDeactivate)}(o))a=tg(o.canDeactivate(t,e,i,n));else{if(!rm(o))throw new Error("Invalid CanDeactivate guard");a=tg(o(t,e,i,n))}return a.pipe(wf())})).pipe(cm()):Nd(!0)}(t.component,t.route,i,e,n)),wf(t=>!0!==t,!0))}(o,n,s,t).pipe(H(i=>i&&"boolean"==typeof i?function(t,e,i,n){return F(e).pipe(Id(e=>Up(function(t,e){return null!==t&&e&&e(new Hf(t)),Nd(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new jf(t)),Nd(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Xp(()=>Nd(e.guards.map(s=>{const r=xm(s,e.node,i);let o;if(function(t){return t&&rm(t.canActivateChild)}(r))o=tg(r.canActivateChild(n,t));else{if(!rm(r))throw new Error("Invalid CanActivateChild guard");o=tg(r(n,t))}return o.pipe(wf())})).pipe(cm())));return Nd(s).pipe(cm())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Nd(n.map(n=>Xp(()=>{const s=xm(n,e,i);let r;if(function(t){return t&&rm(t.canActivate)}(s))r=tg(s.canActivate(e,t));else{if(!rm(s))throw new Error("Invalid CanActivate guard");r=tg(s(e,t))}return r.pipe(wf())}))).pipe(cm()):Nd(!0)}(t,e.route,i))),wf(t=>!0!==t,!0))}(n,r,t,e):Nd(i)),P(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),Af(t=>{if(om(t.guardsResult)){const e=Vf(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new Pf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Bd(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),Wm(t=>{if(t.guards.canActivateChecks.length)return Nd(t).pipe(Af(t=>{const e=new Nf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Gp(t=>{let e=!1;return Nd(t).pipe((i=this.paramsInheritanceStrategy,n=this.ngModule.injector,H(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return Nd(t);let r=0;return F(s).pipe(Id(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return Nd({});const r={};return F(s).pipe(H(s=>function(t,e,i,n){const s=xm(t,e,n);return tg(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe(Af(t=>{r[s]=t}))),lf(1),H(()=>Object.keys(r).length===s.length?Nd(r):Kp))}(t._resolve,t,e,n).pipe(P(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Pg(t,i).resolve),null)))}(t.route,e,i,n)),Af(()=>r++),lf(1),H(e=>r===s.length?Nd(t):Kp))})),Af({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var i,n}),Af(t=>{const e=new If(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Wm(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),P(t=>{const e=function(t,e,i){const n=jg(t,e._root,i?i._root:void 0);return new xg(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Af(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),P(t=>(new im(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),Af({next(){i=!0},complete(){i=!0}}),kf(()=>{i||n||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),af(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=om(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new Rf(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new xf(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(r){t.reject(r)}}var s;return Kp}));var s,r,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){lm(t),this.config=t.map(pm),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(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=i||this.routerState.root,c=o?this.currentUrlTree.fragment:s;let u=null;switch(r){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=n||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,i,n,s){if(0===i.length)return Kg(e.root,e.root,e,n,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Xg(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return Zf(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new Xg(i,e,n)}(i);if(r.toRoot())return Kg(e.root,new cg([],{}),e,n,s);const o=function(t,e,i){if(t.isAbsolute)return new Gg(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new Gg(t,t===e.root,0)}const n=Wg(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,r=i;for(;r>s;){if(r-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new Gg(n,!1,s-r)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?Jg(o.segmentGroup,o.index,r.commands):$g(o.segmentGroup,o.index,r.commands);return Kg(o.segmentGroup,a,e,n,s)}(a,this.currentUrlTree,t,u,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const i=om(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(n,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new zf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){if(this.disposed)return Promise.resolve(!1);const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let c,u,l;s?(c=s.resolve,u=s.reject,l=s.promise):l=new Promise((t,e)=>{c=t,u=e});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const i=this.urlSerializer.serialize(t),n=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(i)||e.extras.replaceUrl?this.location.replaceState(i,"",n):this.location.go(i,"",n)}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const i=new Rf(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(un(Vi),un(hg),un(Gm),un(Wl),un(lo),un(yl),un(Vu),un(void 0))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),n_=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new v,null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:r_(this.skipLocationChange),replaceUrl:r_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:r_(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Ro(i_),Ro(Dg),Yi("tabindex"),Ro(ec),Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Wo("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[ae]}),t})(),s_=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new v,this.subscription=t.events.subscribe(t=>{t instanceof zf&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:r_(this.skipLocationChange),replaceUrl:r_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:r_(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Ro(i_),Ro(Dg),Ro(Fl))},t.\u0275dir=Gt({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Wo("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(Ea("href",e.href,ts),So("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[ae]}),t})();function r_(t){return""===t||!!t}let o_=(()=>{class t{constructor(t,e,i,n,s){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new lu,this.deactivateEvents=new lu,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new a_(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Gm),Ro(Nc),Ro(Xa),Yi("name"),Ro(Tc))},t.\u0275dir=Gt({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class a_{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Dg?this.route:t===Gm?this.childContexts:this.parent.get(t,e)}}class c_{}class u_{preload(t,e){return e().pipe(af(()=>Nd(null)))}}class l_{preload(t,e){return Nd(null)}}let h_=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new Vm(e,i,e=>t.triggerEvent(new Bf(e)),e=>t.triggerEvent(new Ff(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Bd(t=>t instanceof zf),Id(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Oc);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return F(i).pipe(Y(),P(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?Nd(e._loadedConfig):this.loader.load(t.injector,e)).pipe(H(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(un(i_),un(yl),un(Vu),un(lo),un(c_))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),d_=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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(t=>{t instanceof Lf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof zf&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Wf&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Wf(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(un(i_),un(Jh),un(void 0))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const p_=new Ui("ROUTER_CONFIGURATION"),f_=new Ui("ROUTER_FORROOT_GUARD"),g_=[Wl,{provide:hg,useClass:dg},{provide:i_,useFactory:function(t,e,i,n,s,r,o,a={},c,u){const l=new i_(null,t,e,i,n,s,r,Jf(o));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,l),a.enableTracing&&l.events.subscribe(t=>{var e,i;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),l},deps:[hg,Gm,Wl,lo,yl,Vu,Km,p_,[class{},new fn],[class{},new fn]]},Gm,{provide:Dg,useFactory:function(t){return t.routerState.root},deps:[i_]},{provide:yl,useClass:Al},h_,l_,u_,{provide:p_,useValue:{enableTracing:!1}}];function m_(){return new dl("Router",i_)}let __=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[g_,M_(e),{provide:f_,useFactory:w_,deps:[[i_,new fn,new gn]]},{provide:p_,useValue:i||{}},{provide:Fl,useFactory:y_,deps:[zl,[new pn(ql),new fn],p_]},{provide:d_,useFactory:b_,deps:[i_,Jh,p_]},{provide:c_,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:l_},{provide:dl,multi:!0,useFactory:m_},[A_,{provide:Lu,multi:!0,useFactory:v_,deps:[A_]},{provide:k_,useFactory:T_,deps:[A_]},{provide:Nu,multi:!0,useExisting:k_}]]}}static forChild(e){return{ngModule:t,providers:[M_(e)]}}}return t.\u0275fac=function(e){return new(e||t)(un(f_,8),un(i_,8))},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})();function b_(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new d_(t,e,i)}function y_(t,e,i={}){return i.useHash?new Yl(t,e):new jl(t,e)}function w_(t){return"guarded"}function M_(t){return[{provide:Ki,multi:!0,useValue:t},{provide:Km,multi:!0,useValue:t}]}let A_=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new v}appInitializer(){return this.injector.get(xl,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(i_),n=this.injector.get(p_);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?Nd(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(p_),i=this.injector.get(h_),n=this.injector.get(d_),s=this.injector.get(i_),r=this.injector.get(_l);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),i.setUpPreloading(),n.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(un(lo))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function v_(t){return t.appInitializer.bind(t)}function T_(t){return t.bootstrapListener.bind(t)}const k_=new Ui("Router Initializer");function S_(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class C_ extends h{constructor(t,e){super()}schedule(t,e=0){return this}}class E_ 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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,n=!1;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let L_=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class z_ extends L_{constructor(t,e=L_.now){super(t,()=>z_.delegate&&z_.delegate!==this?z_.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return z_.delegate&&z_.delegate!==this?z_.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const R_=new z_(E_);function x_(t,e=R_){return i=>i.lift(new O_(t,e))}class O_{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new D_(t,this.dueTime,this.scheduler))}}class D_ extends f{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(P_,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function P_(t){t.debouncedNext()}function N_(t){return null!=t&&"false"!=`${t}`}function I_(t,e=0){return B_(t)?Number(t):e}function B_(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function F_(t){return Array.isArray(t)?t:[t]}function H_(t){return null==t?"":"string"==typeof t?t:`${t}px`}function q_(t){return t instanceof Qa?t.nativeElement:t}let j_;try{j_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(_j){j_=!1}let Y_,W_=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Gh(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&&!j_)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(un(Pu))},t.\u0275prov=dt({factory:function(){return new t(un(Pu))},token:t,providedIn:"root"}),t})(),U_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})();const K_=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function V_(){if(Y_)return Y_;if("object"!=typeof document||!document)return Y_=new Set(K_),Y_;let t=document.createElement("input");return Y_=new Set(K_.filter(e=>(t.setAttribute("type",e),t.type===e))),Y_}let X_,G_,$_,J_;function Q_(t){return function(){if(null==X_&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>X_=!0}))}finally{X_=X_||!1}return X_}()?t:!!t.capture}function Z_(){if(null==$_){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return $_=!1,$_;if("scrollBehavior"in document.documentElement.style)$_=!0;else{const t=Element.prototype.scrollTo;$_=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return $_}function tb(){if("object"!=typeof document||!document)return 0;if(null==G_){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),G_=0,0===t.scrollLeft&&(t.scrollLeft=1,G_=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return G_}function eb(t){if(function(){if(null==J_){const t="undefined"!=typeof document?document.head:null;J_=!(!t||!t.createShadowRoot&&!t.attachShadow)}return J_}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ib(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}let nb=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),sb=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=q_(t);return new b(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new v,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(un(nb))},t.\u0275prov=dt({factory:function(){return new t(un(nb))},token:t,providedIn:"root"}),t})(),rb=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new lu,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=N_(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=I_(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(x_(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ro(sb),Ro(Qa),Ro($u))},t.\u0275dir=Gt({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),ob=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[nb]}),t})();function ab(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let cb=0;const ub=new Map;let lb=null,hb=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=db(e,i);"string"!=typeof e?(pb(e),ub.set(n,{messageElement:e,referenceCount:0})):ub.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=db(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=ub.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}lb&&0===lb.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=ub.get(e);!function(t,e,i){const n=ab(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute("cdk-describedby-host",""),i.referenceCount++}_removeMessageReference(t,e){const i=ub.get(e);i.referenceCount--,function(t,e,i){const n=ab(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const i=ab(t,"aria-describedby"),n=ub.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un(Ll))},token:t,providedIn:"root"}),t})();function db(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function pb(t){t.id||(t.id="cdk-describedby-message-"+cb++)}class fb{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new v,this._typeaheadSubscription=h.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new v,this.change=new v,t instanceof du&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Af(t=>this._pressedLetters.push(t)),x_(t),Bd(()=>this._pressedLetters.length>0),P(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||S_(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof du?this._items.toArray():this._items}}class gb extends fb{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class mb extends fb{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let _b=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(_j){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===yb(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=yb(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||bb(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(un(W_))},t.\u0275prov=dt({factory:function(){return new t(un(W_))},token:t,providedIn:"root"}),t})();function bb(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function yb(t){if(!bb(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class wb{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Zp(1)).subscribe(t)}}let Mb=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new wb(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(un(_b),un($u),un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un(_b),un($u),un(Ll))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const Ab=new Ui("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),vb=new Ui("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Tb=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=kb(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{Sb(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=zb(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=zb(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=q_(t);if(!this._platform.isBrowser||1!==i.nodeType)return Nd(null);const n=eb(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new v,rootNode:n};return this._elementInfo.set(i,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=q_(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=q_(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=zb(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===zb(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Eb),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Eb)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Eb),t.addEventListener("mousedown",this._documentMousedownListener,Eb),t.addEventListener("touchstart",this._documentTouchstartListener,Eb),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Eb),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Eb),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Eb),t.removeEventListener("mousedown",this._documentMousedownListener,Eb),t.removeEventListener("touchstart",this._documentTouchstartListener,Eb),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(un($u),un(W_),un(Ll,8),un(Cb,8))},t.\u0275prov=dt({factory:function(){return new t(un($u),un(W_),un(Ll,8),un(Cb,8))},token:t,providedIn:"root"}),t})();function zb(t){return t.composedPath?t.composedPath()[0]:t.target}let Rb=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(un(W_),un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un(W_),un(Ll))},token:t,providedIn:"root"}),t})(),xb=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(un(Rb))},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[U_,ob]]}),t})();const Ob=new Ui("cdk-dir-doc",{providedIn:"root",factory:function(){return ln(Ll)}});let Db=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new lu,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(un(Ob,8))},t.\u0275prov=dt({factory:function(){return new t(un(Ob,8))},token:t,providedIn:"root"}),t})(),Pb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})();const Nb=new sc("12.0.5");class Ib{}function Bb(t,e){return{type:7,name:t,definitions:e,options:{}}}function Fb(t,e=null){return{type:4,styles:e,timings:t}}function Hb(t,e=null){return{type:3,steps:t,options:e}}function qb(t,e=null){return{type:2,steps:t,options:e}}function jb(t){return{type:6,styles:t,offset:null}}function Yb(t,e,i){return{type:0,name:t,styles:e,options:i}}function Wb(t){return{type:5,steps:t}}function Ub(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function Kb(t=null){return{type:9,options:t}}function Vb(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function Xb(t){Promise.resolve(null).then(t)}class Gb{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Xb(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class $b{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?Xb(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Jb(){return"undefined"!=typeof window&&void 0!==window.document}function Qb(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Zb(t){switch(t.length){case 0:return new Gb;case 1:return t[0];default:return new $b(t)}}function ty(t,e,i,n,s={},r={}){const o=[],a=[];let c=-1,u=null;if(n.forEach(t=>{const i=t.offset,n=i==c,l=n&&u||{};Object.keys(t).forEach(i=>{let n=i,a=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),a){case"!":a=s[i];break;case"*":a=r[i];break;default:a=e.normalizeStyleValue(i,n,a,o)}l[n]=a}),n||a.push(l),u=l,c=i}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function ey(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&iy(i,"start",t)));break;case"done":t.onDone(()=>n(i&&iy(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&iy(i,"destroy",t)))}}function iy(t,e,i){const n=i.totalTime,s=ny(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),r=t._data;return null!=r&&(s._data=r),s}function ny(t,e,i,n,s="",r=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function sy(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function ry(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let oy=(t,e)=>!1,ay=(t,e)=>!1,cy=(t,e,i)=>[];const uy=Qb();(uy||"undefined"!=typeof Element)&&(oy=Jb()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),ay=(()=>{if(uy||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):ay}})(),cy=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let _y=(()=>{class t{validateStyleProperty(t){return dy(t)}matchesElement(t,e){return py(t,e)}containsElement(t,e){return fy(t,e)}query(t,e,i){return gy(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,r=[],o){return new Gb(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),by=(()=>{class t{}return t.NOOP=new _y,t})();function yy(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:wy(parseFloat(e[1]),e[2])}function wy(t,e){switch(e){case"s":return 1e3*t;default:return t}}function My(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,r="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=wy(parseFloat(i[1]),i[2]);const o=i[3];null!=o&&(s=wy(parseFloat(o),i[4]));const a=i[5];a&&(r=a)}else n=t;if(!i){let i=!1,r=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:r}}(t,e,i)}function Ay(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function vy(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else Ay(t,i);return i}function Ty(t,e,i){return i?e+":"+i+";":""}function ky(t){let e="";for(let i=0;i{const s=Dy(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),Qb()&&ky(t))}function Cy(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=Dy(e);t.style[i]=""}),Qb()&&ky(t))}function Ey(t){return Array.isArray(t)?1==t.length?t[0]:qb(t):t}const Ly=new RegExp("{{\\s*(.+?)\\s*}}","g");function zy(t){let e=[];if("string"==typeof t){let i;for(;i=Ly.exec(t);)e.push(i[1]);Ly.lastIndex=0}return e}function Ry(t,e,i){const n=t.toString(),s=n.replace(Ly,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function xy(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const Oy=/-+([a-z0-9])/g;function Dy(t){return t.replace(Oy,(...t)=>t[1].toUpperCase())}function Py(t,e){return 0===t||0===e}function Ny(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let r=e[0],o=[];if(n.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=i[t]}),o.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],r=n[2],o=n[3];e.push(jy(s,o)),"<"!=r[0]||"*"==s&&"*"==o||e.push(jy(o,s))}(t,i,e)):i.push(t),i}const Hy=new Set(["true","1"]),qy=new Set(["false","0"]);function jy(t,e){const i=Hy.has(t)||qy.has(t),n=Hy.has(e)||qy.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&i&&"boolean"==typeof s&&(o=s?Hy.has(t):qy.has(t)),!a&&n&&"boolean"==typeof r&&(a=r?Hy.has(e):qy.has(e)),o&&a}}const Yy=new RegExp("s*:selfs*,?","g");function Wy(t,e,i){return new Uy(t).build(e,i)}class Uy{constructor(t){this._driver=t}build(t,e){const i=new Ky(e);return this._resetContextStyleTimingState(i),Iy(this,Ey(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,r=n||{};if(i.styles.forEach(t=>{if(Vy(t)){const e=t;Object.keys(e).forEach(t=>{zy(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=xy(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Iy(this,Ey(t.animation),e);return{type:1,matchers:Fy(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Xy(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Iy(this,t,e)),options:Xy(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=Iy(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:Xy(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return Gy(My(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Gy(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||My(n,e),Gy(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:jb({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};i.easing&&(t.easing=i.easing),s=jb(t)}e.currentTime+=i.duration+i.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,n=o}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(Vy(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[i];let a=!0;o&&(s!=n&&s>=o.startTime&&n<=o.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=o.startTime),a&&(r[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=zy(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let r=!1,o=!1,a=0;const c=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Vy(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Vy(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),u=0;return null!=c&&(n++,u=i.offset=c),o=o||u<0||u>1,r=r||u0&&n{const r=l>0?n==h?1:l*n:s[n],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:Iy(this,Ey(t.animation),e),options:Xy(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Xy(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Xy(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Yy,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,sy(e.collectedStyles,e.currentQuerySelector,{});const o=Iy(this,Ey(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:Xy(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:My(t.timings,e.errors,!0);return{type:12,animation:Iy(this,Ey(t.animation),e),timings:i,options:null}}}class Ky{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Vy(t){return!Array.isArray(t)&&"object"==typeof t}function Xy(t){var e;return t?(t=Ay(t)).params&&(t.params=(e=t.params)?Ay(e):null):t={},t}function Gy(t,e,i){return{duration:t,delay:e,easing:i}}function $y(t,e,i,n,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Jy{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Qy=new RegExp(":enter","g"),Zy=new RegExp(":leave","g");function tw(t,e,i,n,s,r={},o={},a,c,u=[]){return(new ew).buildKeyframes(t,e,i,n,s,r,o,a,c,u)}class ew{buildKeyframes(t,e,i,n,s,r,o,a,c,u=[]){c=c||new Jy;const l=new nw(t,e,c,n,s,u,[]);l.options=a,l.currentTimeline.setStyles([r],null,l.errors,a),Iy(this,i,l);const h=l.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,l.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[$y(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(i,n,n.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?yy(i.duration):null,r=null!=i.delay?yy(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,r);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),Iy(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=iw);const t=yy(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Iy(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?yy(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),Iy(this,r,o),n=Math.max(n,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return My(e.params?Ry(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,r=e.createSubContext().currentTimeline;r.easing=i.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?yy(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=iw);let r=i;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((i,n)=>{e.currentQueryIndex=n;const o=e.createSubContext(t.options,i);s&&o.delayNextStep(s),i===e.element&&(a=o.currentTimeline),Iy(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=i.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const u=c.currentTime;Iy(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}}const iw={};class nw{constructor(t,e,i,n,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=iw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new sw(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=yy(i.duration)),null!=i.delay&&(n.delay=yy(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=Ry(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new nw(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=iw,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new rw(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,r){let o=[];if(n&&o.push(this.element),t.length>0){t=(t=t.replace(Qy,"."+this._enterClassName)).replace(Zy,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class sw{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new sw(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},r=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]="*"})):vy(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=Ry(r[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,r)=>{const o=vy(s,!0);Object.keys(o).forEach(i=>{const n=o[i];"!"==n?t.add(i):"*"==n&&e.add(i)}),i||(o.offset=r/this.duration),n.push(o)});const s=t.size?xy(t.values()):[],r=e.size?xy(e.values()):[];if(i){const t=n[0],e=Ay(t);t.offset=0,e.offset=1,n=[t,e]}return $y(this.element,n,s,r,this.duration,this.startTime,this.easing,!1)}}class rw extends sw{constructor(t,e,i,n,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=i+e,o=e/r,a=vy(t[0],!1);a.offset=0,s.push(a);const c=vy(t[0],!1);c.offset=ow(o),s.push(c);const u=t.length-1;for(let n=1;n<=u;n++){let o=vy(t[n],!1);o.offset=ow((e+o.offset*i)/r),s.push(o)}i=r,e=0,n="",t=s}return $y(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function ow(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class aw{}class cw extends aw{normalizePropertyName(t,e){return Dy(t)}normalizeStyleValue(t,e,i,n){let s="";const r=i.toString().trim();if(uw[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return r+s}}const uw=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function lw(t,e,i,n,s,r,o,a,c,u,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}const hw={};class dw{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],r=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):r}build(t,e,i,n,s,r,o,a,c,u){const l=[],h=this.ast.options&&this.ast.options.params||hw,d=this.buildStyles(i,o&&o.params||hw,l),p=a&&a.params||hw,f=this.buildStyles(n,p,l),g=new Set,m=new Map,_=new Map,b="void"===n,y={params:Object.assign(Object.assign({},h),p)},w=u?[]:tw(t,e,this.ast.animation,s,r,d,f,y,c,l);let M=0;if(w.forEach(t=>{M=Math.max(t.duration+t.delay,M)}),l.length)return lw(e,this._triggerName,i,n,b,d,f,[],[],m,_,M,l);w.forEach(t=>{const i=t.element,n=sy(m,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=sy(_,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&g.add(i)});const A=xy(g.values());return lw(e,this._triggerName,i,n,b,d,f,w,A,m,_,M)}}class pw{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=Ay(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Ry(r,n,e)),i[t]=r})}}),i}}class fw{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new pw(t.style,t.options&&t.options.params||{})}),gw(this.states,"true","1"),gw(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new dw(t,e,this.states))}),this.fallbackTransition=new dw(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function gw(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const mw=new Jy;class _w{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=Wy(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=ty(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let r;const o=new Map;if(s?(r=tw(this._driver,e,s,"ng-enter","ng-leave",{},{},i,mw,n),r.forEach(t=>{const e=sy(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),r=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,"*")})});const a=Zb(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=ny(e,"","","");return ey(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const bw=[],yw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ww={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Mw{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=Ay(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const Aw=new Mw("void");class vw{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,zw(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const r=sy(this._elementListeners,t,[]),o={name:e,phase:i,callback:n};r.push(o);const a=sy(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(zw(t,"ng-trigger"),zw(t,"ng-trigger-"+e),a[e]=Aw),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),r=new kw(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(zw(t,"ng-trigger"),zw(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const c=new Mw(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[e]=c,a||(a=Aw),"void"!==c.value&&a.value===c.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{Cy(t,i),Sy(t,n)})}return}const u=sy(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let l=s.matchTransition(a.value,c.value,t,c.params),h=!1;if(!l){if(!n)return;l=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:l,fromState:a,toState:c,player:r,isFallbackTransition:h}),h||(zw(t,"ng-animate-queued"),r.onStart(()=>{Rw(t,"ng-animate-queued")})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(r);t>=0&&i.splice(t,1)}}),this.players.push(r),u.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&r.push(i)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&Zb(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const r=this._triggers[s].fallbackTransition,o=i[s]||Aw,a=new Mw("void"),c=new kw(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==yw||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){zw(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==i.triggerName){const n=ny(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,ey(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Tw{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new vw(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),zw(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Rw(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(Sw(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return Sw(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Zb(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=yw,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Zb(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new Jy,n=[],s=new Map,r=[],o=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i="ng-enter"+f++;p.set(e,i),t.forEach(t=>zw(t,i))});const g=[],m=new Set,_=new Set;for(let z=0;zm.add(t)):_.add(t))}const b=new Map,y=Lw(h,Array.from(m));y.forEach((t,e)=>{const i="ng-leave"+f++;b.set(e,i),t.forEach(t=>zw(t,i))}),t.push(()=>{d.forEach((t,e)=>{const i=p.get(e);t.forEach(t=>Rw(t,i))}),y.forEach((t,e)=>{const i=b.get(e);t.forEach(t=>Rw(t,i))}),g.forEach(t=>{this.processLeaveNode(t)})});const w=[],M=[];for(let z=this._namespaceList.length-1;z>=0;z--)this._namespaceList[z].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(w.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const u=!l||!this.driver.containsElement(l,s),h=b.get(s),d=p.get(s),f=this._buildInstruction(t,i,d,h,u);if(f.errors&&f.errors.length)M.push(f);else{if(u)return e.onStart(()=>Cy(s,f.fromStyles)),e.onDestroy(()=>Sy(s,f.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>Cy(s,f.fromStyles)),e.onDestroy(()=>Sy(s,f.toStyles)),void n.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,f.timelines),r.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>sy(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=a.get(e);t||a.set(e,t=new Set),i.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=c.get(e);n||c.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(M.length){const t=[];M.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),w.forEach(t=>t.destroy()),this.reportError(t)}const A=new Map,v=new Map;r.forEach(t=>{const e=t.element;i.has(e)&&(v.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,A))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{sy(A,e,[]).push(t),t.destroy()})});const T=g.filter(t=>Dw(t,a,c)),k=new Map;Ew(k,this.driver,_,c,"*").forEach(t=>{Dw(t,a,c)&&T.push(t)});const S=new Map;d.forEach((t,e)=>{Ew(S,this.driver,new Set(t),a,"!")}),T.forEach(t=>{const e=k.get(t),i=S.get(t);k.set(t,Object.assign(Object.assign({},e),i))});const C=[],E=[],L={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(i.has(e)){if(u.has(e))return r.onDestroy(()=>Sy(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void n.push(r);let t=L;if(v.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=v.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>v.set(e,t))}const i=this._buildAnimation(r.namespaceId,o,A,s,S,k);if(r.setRealPlayer(i),t===L)C.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Zb(e)),n.push(r)}}else Cy(e,o.fromStyles),r.onDestroy(()=>Sy(e,o.toStyles)),E.push(r),u.has(e)&&n.push(r)}),E.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=Zb(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let z=0;z!t.destroyed);n.length?xw(this,t,n):this.processLeaveNode(t)}return g.length=0,C.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),C}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&r.push(e)})}}return(i||n)&&(r=r.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),r}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==n,c=sy(i,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}Cy(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,r){const o=e.triggerName,a=e.element,c=[],u=new Set,l=new Set,h=e.timelines.map(e=>{const h=e.element;u.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Gb(e.duration,e.delay);const p=h!==a,f=function(t){const e=[];return Ow(t,e),e}((i.get(h)||bw).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=s.get(h),m=r.get(h),_=ty(0,this._normalizer,0,e.keyframes,g,m),b=this._buildPlayer(e,_,f);if(e.subTimeline&&n&&l.add(h),p){const e=new kw(t,o,h);e.setRealPlayer(b),c.push(e)}return b});c.forEach(t=>{sy(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),u.forEach(t=>zw(t,"ng-animating"));const d=Zb(h);return d.onDestroy(()=>{u.forEach(t=>Rw(t,"ng-animating")),Sy(a,e.toStyles)}),l.forEach(t=>{sy(n,t,[]).push(d)}),d}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Gb(t.duration,t.delay)}}class kw{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Gb,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>ey(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){sy(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Sw(t){return t&&1===t.nodeType}function Cw(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function Ew(t,e,i,n,s){const r=[];i.forEach(t=>r.push(Cw(t)));const o=[];n.forEach((i,n)=>{const r={};i.forEach(t=>{const i=r[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=ww,o.push(n))}),t.set(n,r)});let a=0;return i.forEach(t=>Cw(t,r[a++])),o}function Lw(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=i.has(o)?o:n.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&i.get(e).push(t)}),i}function zw(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Rw(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function xw(t,e,i){Zb(i).onDone(()=>t.processLeaveNode(e))}function Ow(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class Pw{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Tw(t,e,i),this._timelineEngine=new _w(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const r=t+"-"+n;let o=this._triggerCache[r];if(!o){const t=[],e=Wy(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new fw(t,e)}(n,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,n,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=ry(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=ry(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Nw(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Bw(e[0]),e.length>1&&(n=Bw(e[e.length-1]))):e&&(i=Bw(e)),i||n?new Iw(t,i,n):null}let Iw=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Sy(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Sy(this._element,this._initialStyles),this._endStyles&&(Sy(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Cy(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Cy(this._element,this._endStyles),this._endStyles=null),Sy(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Bw(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=Kw(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Ww(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=Kw(t,"").split(","),n=Yw(i,e);n>=0&&(i.splice(n,1),Uw(t,"",i.join(",")))}(this._element,this._name))}}function qw(t,e,i){Uw(t,"PlayState",i,jw(t,e))}function jw(t,e){const i=Kw(t,"");return i.indexOf(",")>0?Yw(i.split(","),e):Yw([i],e)}function Yw(t,e){for(let i=0;i=0)return i;return-1}function Ww(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Uw(t,e,i,n){const s="animation"+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function Kw(t,e){return t.style["animation"+e]||""}class Vw{constructor(t,e,i,n,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Hw(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:By(this.element,i))})}this.currentSnapshot=t}}class Xw extends Gb{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=my(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Gw{constructor(){this._count=0}validateStyleProperty(t){return dy(t)}matchesElement(t,e){return py(t,e)}containsElement(t,e){return fy(t,e)}query(t,e,i){return gy(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>my(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const r=document.createElement("style");return r.textContent=n,r}animate(t,e,i,n,s,r=[],o){const a=r.filter(t=>t instanceof Vw),c={};Py(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=Ny(t,e,c));if(0==i)return new Xw(t,u);const l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);(function(t){var e;const i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(h);const d=Nw(t,e),p=new Vw(t,e,l,i,n,s,u,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class $w{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:By(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Jw{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Qw().toString()),this._cssKeyframesDriver=new Gw}validateStyleProperty(t){return dy(t)}matchesElement(t,e){return py(t,e)}containsElement(t,e){return fy(t,e)}query(t,e,i){return gy(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,r);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const c={},u=r.filter(t=>t instanceof $w);Py(i,n)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=Nw(t,e=Ny(t,e=e.map(t=>vy(t,!1)),c));return new $w(t,e,a,l)}}function Qw(){return Jb()&&Element.prototype.animate||{}}let Zw=(()=>{class t extends Ib{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:Ct.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?qb(t):t;return iM(this._renderer,null,e,"register",[i]),new tM(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(un(tc),un(Ll))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class tM extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new eM(this._id,t,e||{},this._renderer)}}class eM{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return iM(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function iM(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let nM=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new sM("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(r),new rM(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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 t.\u0275fac=function(e){return new(e||t)(un(tc),un(Pw),un($u))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class sM{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class rM extends sM{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let oM=(()=>{class t extends Pw{constructor(t,e,i){super(t.body,e,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(un(Ll),un(by),un(aw))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const aM=new Ui("AnimationModuleType"),cM=[{provide:Ib,useClass:Zw},{provide:aw,useFactory:function(){return new cw}},{provide:Pw,useClass:oM},{provide:tc,useFactory:function(t,e,i){return new nM(t,e,i)},deps:[bd,Pw,$u]}],uM=[{provide:by,useFactory:function(){return"function"==typeof Qw()?new Jw:new Gw}},{provide:aM,useValue:"BrowserAnimations"},...cM],lM=[{provide:by,useClass:_y},{provide:aM,useValue:"NoopAnimations"},...cM];let hM=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?lM:uM}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:uM,imports:[Od]}),t})();function dM(t,e){if(1&t&&No(0,"mat-pseudo-checkbox",4),2&t){const t=Go();xo("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function pM(t,e){if(1&t&&(Do(0,"span",5),Aa(1),Po()),2&t){const t=Go();Qs(1),Ta("(",t.group.label,")")}}const fM=["*"];let gM=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),mM=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const _M=new sc("12.0.5"),bM=new Ui("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let yM=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return ll()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&_M.full!==Nb.full&&console.warn("The Angular Material version ("+_M.full+") does not match the Angular CDK version ("+Nb.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(un(Rb),un(bM,8),un(Ll))},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Pb],Pb]}),t})();function wM(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=N_(t)}}}function MM(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function AM(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=N_(t)}}}function vM(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?I_(t):this.defaultTabIndex}}}function TM(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new v}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function kM(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new b(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const SM=new Ui("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return ln(Bu)}});class CM{constructor(){this._localeChanges=new v,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const EM=new Ui("mat-date-formats");let LM;try{LM="undefined"!=typeof Intl}catch(_j){LM=!1}const zM={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},RM=DM(31,t=>String(t+1)),xM={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},OM=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function DM(t,e){const i=Array(t);for(let n=0;n{class t extends CM{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(LM){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return DM(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return zM[t]}getDateNames(){if(LM){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return DM(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return RM}getDayOfWeekNames(t){if(LM){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return DM(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return xM[t]}getYearName(t){if(LM){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(LM){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(OM.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(un(SM,8),un(W_))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),NM=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),IM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function BM(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let FM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[yM],yM]}),t})();class HM{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const qM={enterDuration:450,exitDuration:400},jM=Q_({passive:!0}),YM=["mousedown","touchstart"],WM=["mouseup","mouseleave","touchend","touchcancel"];class UM{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=q_(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},qM),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const r=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),o=t-n.left,a=e-n.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=o-r+"px",u.style.top=a-r+"px",u.style.height=2*r+"px",u.style.width=2*r+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";const l=new HM(this,u,i);return l.state=0,this._activeRipples.add(l),i.persistent||(this._mostRecentTransientRipple=l),this._runTimeoutOutsideZone(()=>{const t=l===this._mostRecentTransientRipple;l.state=1,i.persistent||t&&this._isPointerDown||l.fadeOut()},c),l}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},qM),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=q_(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(YM))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(WM),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=kb(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,jM)})})}_removeTriggerEvents(){this._triggerElement&&(YM.forEach(t=>{this._triggerElement.removeEventListener(t,this,jM)}),this._pointerUpEventsRegistered&&WM.forEach(t=>{this._triggerElement.removeEventListener(t,this,jM)}))}}const KM=new Ui("mat-ripple-global-options");let VM=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new UM(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro($u),Ro(W_),Ro(KM,8),Ro(aM,8))},t.\u0275dir=Gt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&ua("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),XM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[yM,U_],yM]}),t})(),GM=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(Ro(aM,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&ua("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),$M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[yM]]}),t})();const JM=new Ui("MAT_OPTION_PARENT_COMPONENT");class QM{}const ZM=wM(QM);let tA=0,eA=(()=>{class t extends ZM{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+tA++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(Ro(JM,8))},t.\u0275dir=Gt({type:t,inputs:{label:"label"},features:[po]}),t})();const iA=new Ui("MatOptgroup");let nA=0;class sA{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let rA=(()=>{class t{constructor(t,e,i,n){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+nA++,this.onSelectionChange=new lu,this._stateChanges=new v}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(t){this._disabled=N_(t)}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(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){13!==t.keyCode&&32!==t.keyCode||S_(t)||(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new sA(this,t))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(Tc),Ro(void 0),Ro(eA))},t.\u0275dir=Gt({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),oA=(()=>{class t extends rA{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(Tc),Ro(JM,8),Ro(iA,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&Wo("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(Ea("id",e.id),So("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),ua("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[po],ngContentSelectors:fM,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(t,e){1&t&&(Jo(),Lo(0,dM,1,2,"mat-pseudo-checkbox",0),Do(1,"span",1),Qo(2),Po(),Lo(3,pM,2,1,"span",2),No(4,"div",3)),2&t&&(xo("ngIf",e.multiple),Qs(3),xo("ngIf",e.group&&e.group._inert),Qs(1),xo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[xh,VM,GM],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function aA(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),r=0;for(let e=0;ei+n?Math.max(0,t-n+e):i}let uA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[XM,Xh,yM,$M]]}),t})();const lA=["mat-button",""],hA=["*"],dA=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class pA{constructor(t){this._elementRef=t}}const fA=MM(wM(AM(pA)));let gA=(()=>{class t extends fA{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of dA)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.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(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(Lb),Ro(aM,8))},t.\u0275cmp=Yt({type:t,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(t,e){if(1&t&&vu(VM,5),2&t){let t;Au(t=ku())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(So("disabled",e.disabled||null),ua("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[po],attrs:lA,ngContentSelectors:hA,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(t,e){1&t&&(Jo(),Do(0,"span",0),Qo(1),Po(),No(2,"span",1),No(3,"span",2)),2&t&&(Qs(2),ua("mat-button-ripple-round",e.isRoundButton||e.isIconButton),xo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[VM],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),mA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[XM,yM],yM]}),t})();function _A(t,e,i,s){return n(i)&&(s=i,i=void 0),s?_A(t,e,i).pipe(P(t=>c(t)?s(...t):s(t))):new b(n=>{bA(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function bA(t,e,i,n,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),r=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),r=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),r=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}class wA extends z_{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),TA={};function kA(t){return t in TA&&(delete TA[t],!0)}const SA={setImmediate(t){const e=AA++;return TA[e]=!0,vA.then(()=>kA(e)&&t()),e},clearImmediate(t){kA(t)}};class CA extends E_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=SA.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(SA.clearImmediate(e),t.scheduled=void 0)}}class EA extends z_{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++ni.lift(new xA(t,e))}class xA{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new OA(t,this.compare,this.keySelector))}}class OA extends f{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}class DA{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new PA(t,this.durationSelector))}}class PA extends D{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=O(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function NA(t){return!c(t)&&t-parseFloat(t)+1>=0}function IA(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function BA(t,e=R_){return i=()=>function(t=0,e,i){let n=-1;return NA(e)?n=Number(e)<1?1:Number(e):k(e)&&(i=e),k(i)||(i=R_),new b(e=>{const s=NA(t)?t:+t-i.now();return i.schedule(IA,s,{index:0,period:n,subscriber:e})})}(t,e),function(t){return t.lift(new DA(i))};var i}function FA(t){return e=>e.lift(new HA(t))}class HA{constructor(t){this.notifier=t}call(t,e){const i=new qA(t),n=O(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class qA extends D{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}class jA extends E_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class YA extends z_{}const WA=new YA(jA);function UA(t,e){return new b(e?i=>e.schedule(KA,0,{error:t,subscriber:i}):e=>e.error(t))}function KA({error:t,subscriber:e}){e.error(t)}let VA=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Nd(this.value);case"E":return UA(this.error);case"C":return Vp()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class XA extends f{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(XA.dispatch,this.delay,new GA(t,this.destination)))}_next(t){this.scheduleMessage(VA.createNext(t))}_error(t){this.scheduleMessage(VA.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(VA.createComplete()),this.unsubscribe()}}class GA{constructor(t,e){this.notification=t,this.destination=e}}class $A extends v{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new JA(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let r;if(this.closed)throw new w;if(this.isStopped||this.hasError?r=h.EMPTY:(this.observers.push(t),r=new M(this,t)),n&&t.add(t=new XA(t,n)),e)for(let o=0;oe&&(r=Math.max(r,s-e)),r>0&&n.splice(0,r),n}}class JA{constructor(t,e){this.time=t,this.value=e}}function QA(t,e,i){let n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:n}){let s,r,o=0,a=!1,c=!1;return function(u){o++,s&&!a||(a=!1,s=new $A(t,e,n),r=u.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){c=!0,r=void 0,s.complete()}}));const l=s.subscribe(this);this.add(()=>{o--,l.unsubscribe(),r&&!c&&i&&0===o&&(r.unsubscribe(),r=void 0,s=void 0)})}}(n))}function ZA(t){return t&&"function"==typeof t.connect}class tv{applyChanges(t,e,i,n,s){t.forEachOperation((t,n,r)=>{let o,a;if(null==t.previousIndex){const s=i(t,n,r);o=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==r?(e.remove(n),a=3):(o=e.get(n),e.move(o,r),a=2);s&&s({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class ev{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new v,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let iv=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const nv=new Ui("_ViewRepeater");let sv=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new v,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new b(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(BA(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Nd()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Bd(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=q_(e),n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>_A(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(un($u),un(W_),un(Ll,8))},t.\u0275prov=dt({factory:function(){return new t(un($u),un(W_),un(Ll,8))},token:t,providedIn:"root"}),t})(),rv=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new v,this._elementScrolled=new b(t=>this.ngZone.runOutsideAngular(()=>_A(this.elementRef.nativeElement,"scroll").pipe(FA(this._destroyed)).subscribe(t)))}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(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=tb()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==tb()?t.left=t.right:1==tb()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;Z_()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==tb()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==tb()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(sv),Ro($u),Ro(Db,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),ov=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new v,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(BA(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(un(W_),un($u),un(Ll,8))},t.\u0275prov=dt({factory:function(){return new t(un(W_),un($u),un(Ll,8))},token:t,providedIn:"root"}),t})(),av=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})(),cv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Pb,U_,av],Pb,av]}),t})();class uv{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class lv extends uv{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class hv extends uv{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class dv extends uv{constructor(t){super(),this.element=t instanceof Qa?t.nativeElement:t}}class pv{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof lv?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof hv?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof dv?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class fv extends pv{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let gv=(()=>{class t extends pv{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new lu,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(Ro(Xa),Ro(Nc),Ro(Ll))},t.\u0275dir=Gt({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[po]}),t})(),mv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})();class _v{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new bv(t,this.predicate,this.inclusive))}}class bv extends f{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const yv=Z_();class wv{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=H_(-this._previousScrollPosition.left),t.style.top=H_(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),yv&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),yv&&(e.scrollBehavior=n,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class Mv{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Av{enable(){}disable(){}attach(){}}function vv(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function Tv(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class kv{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();vv(t,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Sv=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new Av,this.close=t=>new Mv(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new wv(this._viewportRuler,this._document),this.reposition=t=>new kv(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(un(sv),un(ov),un($u),un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un(sv),un(ov),un($u),un(Ll))},token:t,providedIn:"root"}),t})();class Cv{constructor(t){if(this.scrollStrategy=new Av,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class Ev{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Lv{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let zv=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un(Ll))},token:t,providedIn:"root"}),t})(),Rv=(()=>{class t extends zv{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un(Ll))},token:t,providedIn:"root"}),t})(),xv=(()=>{class t extends zv{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(un(Ll),un(W_))},t.\u0275prov=dt({factory:function(){return new t(un(Ll),un(W_))},token:t,providedIn:"root"}),t})();const Ov="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha;let Dv=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||Ov){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new v,this._outsidePointerEvents=new v,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Zp(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=H_(this._config.width),t.height=H_(this._config.height),t.minWidth=H_(this._config.minWidth),t.minHeight=H_(this._config.minHeight),t.maxWidth=H_(this._config.maxWidth),t.maxHeight=H_(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;F_(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(FA(U(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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const Nv=/([A-Za-z%]+)$/;class Iv{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new v,this._resizeSubscription=h.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),c=this._getOverlayFit(a,e,i,r);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(c,a,i)?n.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Bv(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){const s=Hv(e);let{x:r,y:o}=t,a=this._getOffset(n,"x"),c=this._getOffset(n,"y");a&&(r+=a),c&&(o+=c);let u=0-o,l=o+s.height-i.height,h=this._subtractOverflows(s.width,0-r,r+s.width-i.width),d=this._subtractOverflows(s.height,u,l),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,r=Fv(this._overlayRef.getConfig().minHeight),o=Fv(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=Hv(e),s=this._viewportRect,r=Math.max(t.x+n.width-s.width,0),o=Math.max(t.y+n.height-s.height,0),a=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,l=0;return u=n.width<=s.width?c||-r:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)u=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-n/2)}return{top:r,left:c,bottom:o,right:u,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=H_(i.height),n.top=H_(i.top),n.bottom=H_(i.bottom),n.width=H_(i.width),n.left=H_(i.left),n.right=H_(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=H_(t)),s&&(n.maxWidth=H_(s))}this._lastBoundingBoxSize=i,Bv(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Bv(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Bv(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();Bv(i,this._getExactOverlayY(e,t,n)),Bv(i,this._getExactOverlayX(e,t,n))}else i.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),i.transform=o.trim(),r.maxHeight&&(n?i.maxHeight=H_(r.maxHeight):s&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=H_(r.maxWidth):s&&(i.maxWidth="")),Bv(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=H_(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=H_(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Tv(t,i),isOriginOutsideView:vv(t,i),isOverlayClipped:Tv(e,i),isOverlayOutsideView:vv(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&F_(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Qa)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Bv(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Fv(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(Nv);return i&&"px"!==i?null:parseFloat(e)}return t||null}function Hv(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class qv{constructor(t,e,i,n,s,r,o){this._preferredPositions=[],this._positionStrategy=new Iv(i,n,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new Ev(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class jv{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:r,maxHeight:o}=i,a=!("100%"!==n&&"100vw"!==n||r&&"100%"!==r&&"100vw"!==r),c=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Yv=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new jv}connectedTo(t,e,i){return new qv(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Iv(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(un(ov),un(Ll),un(W_),un(Dv))},t.\u0275prov=dt({factory:function(){return new t(un(ov),un(Ll),un(W_),un(Dv))},token:t,providedIn:"root"}),t})(),Wv=0,Uv=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=c,this._location=u,this._outsideClickDispatcher=l}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new Cv(t);return s.direction=s.direction||this._directionality.value,new Pv(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+Wv++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(_l)),new fv(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(un(Sv),un(Dv),un(Xa),un(Yv),un(Rv),un(lo),un($u),un(Ll),un(Db),un(Wl),un(xv))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Kv=[{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"}],Vv=new Ui("cdk-connected-overlay-scroll-strategy");let Xv=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Gv=(()=>{class t{constructor(t,e,i,n,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.EMPTY,this._attachSubscription=h.EMPTY,this._detachSubscription=h.EMPTY,this._positionSubscription=h.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new lu,this.positionChange=new lu,this.attach=new lu,this.detach=new lu,this.overlayKeydown=new lu,this.overlayOutsideClick=new lu,this._templatePortal=new hv(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=N_(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=N_(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=N_(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=N_(t)}get push(){return this._push}set push(t){this._push=N_(t)}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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=Kv);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||this.disableClose||S_(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Cv({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return i=>i.lift(new _v(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Uv),Ro(Lc),Ro(Nc),Ro(Vv),Ro(Db,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[ae]}),t})();const $v={provide:Vv,deps:[Uv],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Jv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[Uv,$v],imports:[[Pb,mv,cv],cv]}),t})();const Qv=["underline"],Zv=["connectionContainer"],tT=["inputContainer"],eT=["label"];function iT(t,e){1&t&&(Io(0),Do(1,"div",14),No(2,"div",15),No(3,"div",16),No(4,"div",17),Po(),Do(5,"div",18),No(6,"div",15),No(7,"div",16),No(8,"div",17),Po(),Bo())}function nT(t,e){1&t&&(Do(0,"div",19),Qo(1,1),Po())}function sT(t,e){if(1&t&&(Io(0),Qo(1,2),Do(2,"span"),Aa(3),Po(),Bo()),2&t){const t=Go(2);Qs(3),va(t._control.placeholder)}}function rT(t,e){1&t&&Qo(0,3,["*ngSwitchCase","true"])}function oT(t,e){1&t&&(Do(0,"span",23),Aa(1," *"),Po())}function aT(t,e){if(1&t){const t=Ho();Do(0,"label",20,21),Wo("cdkObserveContent",function(){return Re(t),Go().updateOutlineGap()}),Lo(2,sT,4,1,"ng-container",12),Lo(3,rT,1,0,"ng-content",12),Lo(4,oT,2,0,"span",22),Po()}if(2&t){const t=Go();ua("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),xo("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),So("for",t._control.id)("aria-owns",t._control.id),Qs(2),xo("ngSwitchCase",!1),Qs(1),xo("ngSwitchCase",!0),Qs(1),xo("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function cT(t,e){1&t&&(Do(0,"div",24),Qo(1,4),Po())}function uT(t,e){if(1&t&&(Do(0,"div",25,26),No(2,"span",27),Po()),2&t){const t=Go();Qs(2),ua("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function lT(t,e){1&t&&(Do(0,"div"),Qo(1,5),Po()),2&t&&xo("@transitionMessages",Go()._subscriptAnimationState)}function hT(t,e){if(1&t&&(Do(0,"div",31),Aa(1),Po()),2&t){const t=Go(2);xo("id",t._hintLabelId),Qs(1),va(t.hintLabel)}}function dT(t,e){if(1&t&&(Do(0,"div",28),Lo(1,hT,2,2,"div",29),Qo(2,6),No(3,"div",30),Qo(4,7),Po()),2&t){const t=Go();xo("@transitionMessages",t._subscriptAnimationState),Qs(1),xo("ngIf",t.hintLabel)}}const pT=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],fT=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let gT=0;const mT=new Ui("MatError");let _T=(()=>{class t{constructor(t,e){this.id="mat-error-"+gT++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(Yi("aria-live"),Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&So("id",e.id)},inputs:{id:"id"},features:[Ua([{provide:mT,useExisting:t}])]}),t})();const bT={transitionMessages:Bb("transitionMessages",[Yb("enter",jb({opacity:1,transform:"translateY(0%)"})),Ub("void => enter",[jb({opacity:0,transform:"translateY(-5px)"}),Fb("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let yT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t}),t})(),wT=0;const MT=new Ui("MatHint");let AT=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+wT++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(So("id",e.id)("align",null),ua("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[Ua([{provide:MT,useExisting:t}])]}),t})(),vT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-label"]]}),t})(),TT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-placeholder"]]}),t})();const kT=new Ui("MatPrefix"),ST=new Ui("MatSuffix");let CT=0;class ET{constructor(t){this._elementRef=t}}const LT=MM(ET,"primary"),zT=new Ui("MAT_FORM_FIELD_DEFAULT_OPTIONS"),RT=new Ui("MatFormField");let xT=(()=>{class t extends LT{constructor(t,e,i,n,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new v,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+CT++,this._labelId="mat-form-field-label-"+CT++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=N_(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(nf(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(FA(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(FA(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),U(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(nf(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(nf(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(FA(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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_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,_A(this._label.nativeElement,"transitionend").pipe(Zp(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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),r=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Xh,yM,ob],yM]}),t})();function DT(...t){if(1===t.length){const e=t[0];if(c(e))return PT(e,null);if(u(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return PT(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return PT(t=1===t.length&&c(t[0])?t[0]:t,null).pipe(P(t=>e(...t)))}return PT(t,null)}function PT(t,e){return new b(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let r=0,o=0;for(let a=0;a{u||(u=!0,o++),s[a]=t},error:t=>i.error(t),complete:()=>{r++,r!==n&&u||(o===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}let NT=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(ec),Ro(Qa))},t.\u0275dir=Gt({type:t}),t})(),IT=(()=>{class t extends NT{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,features:[po]}),t})();const BT=new Ui("NgValueAccessor"),FT={provide:BT,useExisting:rt(()=>qT),multi:!0},HT=new Ui("CompositionEventMode");let qT=(()=>{class t extends NT{constructor(t,e,i){super(t,e),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=El()?El().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(ec),Ro(Qa),Ro(HT,8))},t.\u0275dir=Gt({type:t,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(t,e){1&t&&Wo("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[Ua([FT]),po]}),t})();function jT(t){return null==t||0===t.length}function YT(t){return null!=t&&"number"==typeof t.length}const WT=new Ui("NgValidators"),UT=new Ui("NgAsyncValidators"),KT=/^(?=.{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 VT{static min(t){return function(t){return e=>{if(jT(e.value)||jT(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(jT(e.value)||jT(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return XT(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return jT(t.value)||KT.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>jT(e.value)||!YT(e.value)?null:e.value.lengthYT(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return GT;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(jT(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}(t)}static nullValidator(t){return null}static compose(t){return ek(t)}static composeAsync(t){return nk(t)}}function XT(t){return jT(t.value)?{required:!0}:null}function GT(t){return null}function $T(t){return null!=t}function JT(t){const e=qo(t)?F(t):t;return Yo(e),e}function QT(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function ZT(t,e){return e.map(e=>e(t))}function tk(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function ek(t){if(!t)return null;const e=t.filter($T);return 0==e.length?null:function(t){return QT(ZT(t,e))}}function ik(t){return null!=t?ek(tk(t)):null}function nk(t){if(!t)return null;const e=t.filter($T);return 0==e.length?null:function(t){return DT(ZT(t,e).map(JT)).pipe(P(QT))}}function sk(t){return null!=t?nk(tk(t)):null}function rk(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function ok(t){return t._rawValidators}function ak(t){return t._rawAsyncValidators}let ck=(()=>{class t{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(t){this._rawValidators=t||[],this._composedValidatorFn=ik(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=sk(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t}),t})(),uk=(()=>{class t extends ck{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,features:[po]}),t})();class lk extends ck{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class hk{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let dk=(()=>{class t extends hk{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(lk,2))},t.\u0275dir=Gt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ua("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[po]}),t})(),pk=(()=>{class t extends hk{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(uk,10))},t.\u0275dir=Gt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&ua("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[po]}),t})();function fk(t,e){_k(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&yk(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&yk(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function gk(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),bk(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function mk(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function _k(t,e){const i=ok(t);null!==e.validator?t.setValidators(rk(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const n=ak(t);null!==e.asyncValidator?t.setAsyncValidators(rk(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const s=()=>t.updateValueAndValidity();mk(e._rawValidators,s),mk(e._rawAsyncValidators,s)}function bk(t,e){let i=!1;if(null!==t){if(null!==e.validator){const n=ok(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=ak(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}const n=()=>{};return mk(e._rawValidators,n),mk(e._rawAsyncValidators,n),i}function yk(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function wk(t,e){_k(t,e)}function Mk(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function Ak(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function vk(t,e){if(!e)return null;let i,n,s;return Array.isArray(e),e.forEach(t=>{t.constructor===qT?i=t:Object.getPrototypeOf(t.constructor)===IT?n=t:s=t}),s||n||i||null}function Tk(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function kk(t){return(Lk(t)?t.validators:t)||null}function Sk(t){return Array.isArray(t)?ik(t):t||null}function Ck(t,e){return(Lk(e)?e.asyncValidators:t)||null}function Ek(t){return Array.isArray(t)?sk(t):t||null}function Lk(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class zk{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Sk(this._rawValidators),this._composedAsyncValidatorFn=Ek(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=Sk(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Ek(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=JT(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof xk?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof Ok&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new lu,this.statusChanges=new lu}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Lk(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Rk extends zk{constructor(t=null,e,i){super(kk(e),Ck(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Tk(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Tk(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class xk extends zk{constructor(t,e,i){super(kk(e),Ck(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof Rk?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Ok extends zk{constructor(t,e,i){super(kk(e),Ck(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Rk?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Dk={provide:uk,useExisting:rt(()=>Nk)},Pk=(()=>Promise.resolve(null))();let Nk=(()=>{class t extends uk{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new lu,this.form=new xk({},ik(t),sk(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Pk.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),fk(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Pk.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Tk(this._directives,t)})}addFormGroup(t){Pk.then(()=>{const e=this._findContainer(t.path),i=new xk({});wk(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Pk.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Pk.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Ak(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Ro(WT,10),Ro(UT,10))},t.\u0275dir=Gt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Wo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ua([Dk]),po]}),t})();const Ik={provide:lk,useExisting:rt(()=>Fk)},Bk=(()=>Promise.resolve(null))();let Fk=(()=>{class t extends lk{constructor(t,e,i,n){super(),this.control=new Rk,this._registered=!1,this.update=new lu,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=vk(0,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Mk(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){fk(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(t){Bk.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Bk.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Ro(uk,9),Ro(WT,10),Ro(UT,10),Ro(BT,10))},t.\u0275dir=Gt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ua([Ik]),po,ae]}),t})(),Hk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const qk={provide:BT,useExisting:rt(()=>jk),multi:!0};let jk=(()=>{class t extends IT{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&Wo("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[Ua([qk]),po]}),t})(),Yk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})();const Wk=new Ui("NgModelWithFormControlWarning"),Uk={provide:lk,useExisting:rt(()=>Kk)};let Kk=(()=>{class t extends lk{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new lu,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=vk(0,i)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&gk(e,this,!1),fk(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Mk(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&gk(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(Ro(WT,10),Ro(UT,10),Ro(BT,10),Ro(Wk,8))},t.\u0275dir=Gt({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ua([Uk]),po,ae]}),t._ngModelWarningSentOnce=!1,t})();const Vk={provide:uk,useExisting:rt(()=>Xk)};let Xk=(()=>{class t extends uk{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new lu,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(bk(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return fk(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){gk(t.control||null,t,!1),Tk(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,Ak(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,i=this.form.get(t.path);e!==i&&(gk(e||null,t),i instanceof Rk&&(fk(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);wk(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return bk(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_k(this.form,this),this._oldForm&&bk(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(Ro(WT,10),Ro(UT,10))},t.\u0275dir=Gt({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&Wo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ua([Vk]),po,ae]}),t})();const Gk={provide:WT,useExisting:rt(()=>$k),multi:!0};let $k=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?XT(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&So("required",e.required?"":null)},inputs:{required:"required"},features:[Ua([Gk])]}),t})(),Jk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Yk]]}),t})(),Qk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[Jk]}),t})(),Zk=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Wk,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[Jk]}),t})();const tS=["trigger"],eS=["panel"];function iS(t,e){if(1&t&&(Do(0,"span",8),Aa(1),Po()),2&t){const t=Go();Qs(1),va(t.placeholder)}}function nS(t,e){if(1&t&&(Do(0,"span",12),Aa(1),Po()),2&t){const t=Go(2);Qs(1),va(t.triggerValue)}}function sS(t,e){1&t&&Qo(0,0,["*ngSwitchCase","true"])}function rS(t,e){1&t&&(Do(0,"span",9),Lo(1,nS,2,1,"span",10),Lo(2,sS,1,0,"ng-content",11),Po()),2&t&&(xo("ngSwitch",!!Go().customTrigger),Qs(2),xo("ngSwitchCase",!0))}function oS(t,e){if(1&t){const t=Ho();Do(0,"div",13),Do(1,"div",14,15),Wo("@transformPanel.done",function(e){return Re(t),Go()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return Re(t),Go()._handleKeydown(e)}),Qo(3,1),Po(),Po()}if(2&t){const t=Go();xo("@transformPanelWrap",void 0),Qs(1),Ca("mat-select-panel ",t._getPanelTheme(),""),ca("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),xo("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),So("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const aS=[[["mat-select-trigger"]],"*"],cS=["mat-select-trigger","*"],uS={transformPanelWrap:Bb("transformPanelWrap",[Ub("* => void",Vb("@transformPanel",[Kb()],{optional:!0}))]),transformPanel:Bb("transformPanel",[Yb("void",jb({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Yb("showing",jb({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Yb("showing-multiple",jb({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ub("void => *",Fb("120ms cubic-bezier(0, 0, 0.2, 1)")),Ub("* => void",Fb("100ms 25ms linear",jb({opacity:0})))])};let lS=0;const hS=new Ui("mat-select-scroll-strategy"),dS=new Ui("MAT_SELECT_CONFIG"),pS={provide:hS,deps:[Uv],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class fS{constructor(t,e){this.source=t,this.value=e}}class gS{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const mS=AM(vM(wM(TM(gS)))),_S=new Ui("MatSelectTrigger");let bS=(()=>{class t extends mS{constructor(t,e,i,n,s,r,o,a,c,u,l,h,d,p){var f,g,m;super(s,n,o,a,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=c,this.ngControl=u,this._liveAnnouncer=d,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+lS++,this._triggerAriaLabelledBy=null,this._destroy=new v,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+lS++,this._panelDoneAnimatingStream=new v,this._overlayPanelClass=(null===(f=this._defaultOptions)||void 0===f?void 0:f.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(m=null===(g=this._defaultOptions)||void 0===g?void 0:g.disableOptionCentering)&&void 0!==m&&m,this.ariaLabel="",this.optionSelectionChanges=Xp(()=>{const t=this.options;return t?t.changes.pipe(nf(t),Gp(()=>U(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Zp(1),Gp(()=>this.optionSelectionChanges))}),this.openedChange=new lu,this._openedStream=this.openedChange.pipe(Bd(t=>t),P(()=>{})),this._closedStream=this.openedChange.pipe(Bd(t=>!t),P(()=>{})),this.selectionChange=new lu,this.valueChange=new lu,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==p?void 0:p.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=p.typeaheadDebounceInterval),this._scrollStrategyFactory=h,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(l)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=N_(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=N_(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=N_(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=I_(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new ev(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(RA(),FA(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(FA(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(nf(null),FA(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.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(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,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 t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=40===e||38===e||37===e||39===e,n=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&n&&!S_(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=40===i||38===i,s=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(s||13!==i&&32!==i||!e.activeItem||S_(t))if(!s&&this._multiple&&65===i&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.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(Zp(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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new gb(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(FA(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(FA(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 t=U(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(FA(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),U(...this.options.map(t=>t._stateChanges)).pipe(FA(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(Ro(ov),Ro(Tc),Ro($u),Ro(NM),Ro(Qa),Ro(Db,8),Ro(Nk,8),Ro(Xk,8),Ro(RT,8),Ro(lk,10),Yi("tabindex"),Ro(hS),Ro(Tb),Ro(dS,8))},t.\u0275dir=Gt({type:t,viewQuery:function(t,e){if(1&t&&(vu(tS,5),vu(eS,5),vu(Gv,5)),2&t){let t;Au(t=ku())&&(e.trigger=t.first),Au(t=ku())&&(e.panel=t.first),Au(t=ku())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[po,ae]}),t})(),yS=(()=>{class t extends bS{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(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(FA(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(Zp(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=aA(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=cA((t+e)*i,i,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new fS(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const r=0-(t.left+s-(i?n:0)),o=t.right+s-e.width+(i?0:n);r>0?s+=r+8:o>0&&(s-=o+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,r=Math.floor(256/n);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-r))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>n?this._adjustPanelDown(r,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=aA(s,this.options,this.optionGroups);const r=i/2;this._scrollTop=this._calculateOverlayScroll(s,r,n),this._offsetY=this._calculateOverlayOffsetY(s,r,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,_S,5),Tu(i,oA,5),Tu(i,iA,5)),2&t){let t;Au(t=ku())&&(e.customTrigger=t.first),Au(t=ku())&&(e.options=t),Au(t=ku())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&Wo("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(So("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),ua("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Ua([{provide:yT,useExisting:t},{provide:JM,useExisting:t}]),po],ngContentSelectors:cS,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(t,e){if(1&t&&(Jo(aS),Do(0,"div",0,1),Wo("click",function(){return e.toggle()}),Do(3,"div",2),Lo(4,iS,2,1,"span",3),Lo(5,rS,3,2,"span",4),Po(),Do(6,"div",5),No(7,"div",6),Po(),Po(),Lo(8,oS,4,14,"ng-template",7),Wo("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=zo(1);So("aria-owns",e.panelOpen?e.id+"-panel":null),Qs(3),xo("ngSwitch",e.empty),So("id",e._valueId),Qs(1),xo("ngSwitchCase",!0),Qs(1),xo("ngSwitchCase",!1),Qs(3),xo("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[Xv,Nh,Ih,Gv,Bh,Eh],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[uS.transformPanelWrap,uS.transformPanel]},changeDetection:0}),t})(),wS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[pS],imports:[[Xh,Jv,uA,yM],av,OT,uA,yM]}),t})();class MS{constructor(t){this.total=t}call(t,e){return e.subscribe(new AS(t,this.total))}}class AS extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const vS=new Set;let TS,kS=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):SS}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!vS.has(t))try{TS||(TS=document.createElement("style"),TS.setAttribute("type","text/css"),document.head.appendChild(TS)),TS.sheet&&(TS.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),vS.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(un(W_))},t.\u0275prov=dt({factory:function(){return new t(un(W_))},token:t,providedIn:"root"}),t})();function SS(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let CS=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new v}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return ES(F_(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=qp(ES(F_(t)).map(t=>this._registerQuery(t).observable));return e=Up(e.pipe(Zp(1)),e.pipe(t=>t.lift(new MS(1)),x_(0))),e.pipe(P(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new b(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(nf(e),P(({matches:e})=>({query:t,matches:e})),FA(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(un(kS),un($u))},t.\u0275prov=dt({factory:function(){return new t(un(kS),un($u))},token:t,providedIn:"root"}),t})();function ES(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const LS={tooltipState:Bb("state",[Yb("initial, void, hidden",jb({opacity:0,transform:"scale(0)"})),Yb("visible",jb({transform:"scale(1)"})),Ub("* => visible",Fb("200ms cubic-bezier(0, 0, 0.2, 1)",Wb([jb({opacity:0,transform:"scale(0)",offset:0}),jb({opacity:.5,transform:"scale(0.99)",offset:.5}),jb({opacity:1,transform:"scale(1)",offset:1})]))),Ub("* => hidden",Fb("100ms cubic-bezier(0, 0, 0.2, 1)",jb({opacity:0})))])},zS=Q_({passive:!0}),RS=new Ui("mat-tooltip-scroll-strategy"),xS={provide:RS,deps:[Uv],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},OS=new Ui("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let DS=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u,l,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=u,this._defaultOptions=l,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 v,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!S_(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=h,l&&(l.position&&(this.position=l.position),l.touchGestures&&(this.touchGestures=l.touchGestures)),u.change.pipe(FA(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=N_(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).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(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(FA(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,zS)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new lv(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(FA(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe(FA(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(FA(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Zp(1),FA(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:n}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===n?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_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 t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,zS)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(Ro(Uv),Ro(Qa),Ro(sv),Ro(Nc),Ro($u),Ro(W_),Ro(hb),Ro(Lb),Ro(void 0),Ro(Db),Ro(void 0),Ro(Ll))},t.\u0275dir=Gt({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),PS=(()=>{class t extends DS{constructor(t,e,i,n,s,r,o,a,c,u,l,h){super(t,e,i,n,s,r,o,a,c,u,l,h),this._tooltipComponent=IS}}return t.\u0275fac=function(e){return new(e||t)(Ro(Uv),Ro(Qa),Ro(sv),Ro(Nc),Ro($u),Ro(W_),Ro(hb),Ro(Lb),Ro(RS),Ro(Db,8),Ro(OS,8),Ro(Ll))},t.\u0275dir=Gt({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[po]}),t})(),NS=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new v}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Tc))},t.\u0275dir=Gt({type:t}),t})(),IS=(()=>{class t extends NS{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(Ro(Tc),Ro(CS))},t.\u0275cmp=Yt({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&Wo("click",function(){return e._handleBodyInteraction()},!1,ls)("auxclick",function(){return e._handleBodyInteraction()},!1,ls),2&t&&ca("zoom","visible"===e._visibility?1:null)},features:[po],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(Do(0,"div",0),Wo("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),nu(1,"async"),Aa(2),Po()),2&t){let t;ua("mat-tooltip-handset",null==(t=su(1,5,e._isHandset))?null:t.matches),xo("ngClass",e.tooltipClass)("@state",e._visibility),Qs(2),va(e.message)}},directives:[Eh],pipes:[Uh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[LS.tooltipState]},changeDetection:0}),t})(),BS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[xS],imports:[[xb,Xh,Jv,yM],yM,av]}),t})();function FS(t,e){if(1&t&&(Do(0,"mat-option",19),Aa(1),Po()),2&t){const t=e.$implicit;xo("value",t),Qs(1),Ta(" ",t," ")}}function HS(t,e){if(1&t){const t=Ho();Do(0,"mat-form-field",16),Do(1,"mat-select",17),Wo("selectionChange",function(e){return Re(t),Go(2)._changePageSize(e.value)}),Lo(2,FS,2,2,"mat-option",18),Po(),Po()}if(2&t){const t=Go(2);xo("appearance",t._formFieldAppearance)("color",t.color),Qs(1),xo("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),Qs(1),xo("ngForOf",t._displayedPageSizeOptions)}}function qS(t,e){if(1&t&&(Do(0,"div",20),Aa(1),Po()),2&t){const t=Go(2);Qs(1),va(t.pageSize)}}function jS(t,e){if(1&t&&(Do(0,"div",12),Do(1,"div",13),Aa(2),Po(),Lo(3,HS,3,6,"mat-form-field",14),Lo(4,qS,2,1,"div",15),Po()),2&t){const t=Go();Qs(2),Ta(" ",t._intl.itemsPerPageLabel," "),Qs(1),xo("ngIf",t._displayedPageSizeOptions.length>1),Qs(1),xo("ngIf",t._displayedPageSizeOptions.length<=1)}}function YS(t,e){if(1&t){const t=Ho();Do(0,"button",21),Wo("click",function(){return Re(t),Go().firstPage()}),ri(),Do(1,"svg",7),No(2,"path",22),Po(),Po()}if(2&t){const t=Go();xo("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),So("aria-label",t._intl.firstPageLabel)}}function WS(t,e){if(1&t){const t=Ho();ri(),oi(),Do(0,"button",23),Wo("click",function(){return Re(t),Go().lastPage()}),ri(),Do(1,"svg",7),No(2,"path",24),Po(),Po()}if(2&t){const t=Go();xo("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),So("aria-label",t._intl.lastPageLabel)}}let US=(()=>{class t{constructor(){this.changes=new v,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const KS={provide:US,deps:[[new fn,new gn,US]],useFactory:function(t){return t||new US}},VS=new Ui("MAT_PAGINATOR_DEFAULT_OPTIONS");class XS{}const GS=wM(kM(XS));let $S=(()=>{class t extends GS{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new lu,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(I_(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=I_(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(I_(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>I_(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=N_(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=N_(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(Ro(US),Ro(Tc),Ro(void 0))},t.\u0275dir=Gt({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[po]}),t})(),JS=(()=>{class t extends $S{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(Ro(US),Ro(Tc),Ro(VS,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[po],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(Do(0,"div",0),Do(1,"div",1),Lo(2,jS,5,3,"div",2),Do(3,"div",3),Do(4,"div",4),Aa(5),Po(),Lo(6,YS,3,5,"button",5),Do(7,"button",6),Wo("click",function(){return e.previousPage()}),ri(),Do(8,"svg",7),No(9,"path",8),Po(),Po(),oi(),Do(10,"button",9),Wo("click",function(){return e.nextPage()}),ri(),Do(11,"svg",7),No(12,"path",10),Po(),Po(),Lo(13,WS,3,5,"button",11),Po(),Po(),Po()),2&t&&(Qs(2),xo("ngIf",!e.hidePageSize),Qs(3),Ta(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),Qs(1),xo("ngIf",e.showFirstLastButtons),Qs(1),xo("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),So("aria-label",e._intl.previousPageLabel),Qs(3),xo("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),So("aria-label",e._intl.nextPageLabel),Qs(3),xo("ngIf",e.showFirstLastButtons))},directives:[xh,gA,PS,xT,yS,zh,oA],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),QS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[KS],imports:[[Xh,mA,wS,BS,yM]]}),t})();function ZS(t,e=R_){var i;const n=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new tC(n,e))}class tC{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new eC(t,this.delay,this.scheduler))}}class eC extends f{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(eC.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new iC(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(VA.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(VA.createComplete()),this.unsubscribe()}}class iC{constructor(t,e){this.time=t,this.notification=e}}const nC=["mat-menu-item",""],sC=["*"];function rC(t,e){if(1&t){const t=Ho();Do(0,"div",0),Wo("keydown",function(e){return Re(t),Go()._handleKeydown(e)})("click",function(){return Re(t),Go().closed.emit("click")})("@transformMenu.start",function(e){return Re(t),Go()._onAnimationStart(e)})("@transformMenu.done",function(e){return Re(t),Go()._onAnimationDone(e)}),Do(1,"div",1),Qo(2),Po(),Po()}if(2&t){const t=Go();xo("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),So("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const oC={transformMenu:Bb("transformMenu",[Yb("void",jb({opacity:0,transform:"scale(0.8)"})),Ub("void => enter",Fb("120ms cubic-bezier(0, 0, 0.2, 1)",jb({opacity:1,transform:"scale(1)"}))),Ub("* => void",Fb("100ms 25ms linear",jb({opacity:0})))]),fadeInItems:Bb("fadeInItems",[Yb("showing",jb({opacity:1})),Ub("void => *",[jb({opacity:0}),Fb("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},aC=new Ui("MatMenuContent"),cC=new Ui("MAT_MENU_PANEL");class uC{}const lC=AM(wM(uC));let hC=(()=>{class t extends lC{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new v,this._focused=new v,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new du,this._tabSubscription=h.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new v,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new lu,this.close=this.closed,this.panelId="mat-menu-panel-"+pC++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=N_(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=N_(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new mb(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(nf(this._directDescendantItems),Gp(t=>U(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(nf(this._directDescendantItems),Gp(t=>U(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:S_(t)||(t.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:38!==e&&40!==e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Zp(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(nf(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro($u),Ro(dC))},t.\u0275dir=Gt({type:t,contentQueries:function(t,e,i){if(1&t&&(Tu(i,aC,5),Tu(i,hC,5),Tu(i,hC,4)),2&t){let t;Au(t=ku())&&(e.lazyContent=t.first),Au(t=ku())&&(e._allItems=t),Au(t=ku())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&vu(Lc,5),2&t){let t;Au(t=ku())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),gC=(()=>{class t extends fC{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro($u),Ro(dC))},t.\u0275cmp=Yt({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&So("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Ua([{provide:cC,useExisting:t}]),po],ngContentSelectors:sC,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(Jo(),Lo(0,rC,3,6,"ng-template"))},directives:[Eh],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[oC.transformMenu,oC.fadeInItems]},changeDetection:0}),t})();const mC=new Ui("mat-menu-scroll-strategy"),_C={provide:mC,deps:[Uv],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},bC=Q_({passive:!0});let yC=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=r,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=h.EMPTY,this._hoverSubscription=h.EMPTY,this._menuCloseSubscription=h.EMPTY,this._handleTouchStart=t=>{Sb(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new lu,this.onMenuOpen=this.menuOpened,this.menuClosed=new lu,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=s instanceof fC?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,bC),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,bC),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof fC&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof fC?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Bd(t=>"void"===t.toState),Zp(1),FA(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Cv({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[n,s],[a,c]=[e,i],u=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",u="bottom"===n?8:-8):this.menu.overlapTrigger||(r="top"===n?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:n,offsetY:u},{originX:i,originY:r,overlayX:c,overlayY:n,offsetY:u},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-u},{originX:i,originY:o,overlayX:c,overlayY:s,offsetY:-u}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments();return U(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Nd(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Bd(t=>t!==this._menuItemInstance),Bd(()=>this._menuOpen)):Nd(),e)}_handleMousedown(t){kb(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;13!==e&&32!==e||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Bd(t=>t===this._menuItemInstance&&!t.disabled),ZS(0,LA)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof fC&&this.menu._isAnimating?this.menu._animationDone.pipe(Zp(1),ZS(0,LA),FA(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new hv(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(Ro(Uv),Ro(Qa),Ro(Nc),Ro(mC),Ro(cC,8),Ro(hC,10),Ro(Db,8),Ro(Lb))},t.\u0275dir=Gt({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&Wo("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&So("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),wC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[_C],imports:[yM]}),t})(),MC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[_C],imports:[[Xh,yM,XM,Jv,wC],av,yM,wC]}),t})();const AC=["*"];function vC(t){return Error(`Unable to find icon with the name "${t}"`)}function TC(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function kC(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class SC{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let CC=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new SC(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,n){const s=this._sanitizer.sanitize(Qn.HTML,i);if(!s)throw kC(i);return this._addSvgIconConfig(t,e,new SC("",s,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new SC(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(Qn.HTML,e);if(!n)throw kC(e);return this._addSvgIconSetConfig(t,new SC("",n,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(Qn.RESOURCE_URL,t);if(!e)throw TC(t);const i=this._cachedIconsByUrl.get(e);return i?Nd(EC(i)):this._loadSvgIconFromConfig(new SC(t,null)).pipe(Af(t=>this._cachedIconsByUrl.set(e,t)),P(t=>EC(t)))}getNamedSvgIcon(t,e=""){const i=LC(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):UA(vC(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Nd(EC(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(P(t=>EC(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?Nd(i):DT(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(af(e=>{const i=this._sanitizer.sanitize(Qn.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),Nd(null)})))).pipe(P(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw vC(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Af(e=>t.svgText=e),P(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Nd(null):this._fetchIcon(t).pipe(Af(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(r)),Z());return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(LC(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),OC=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],DC=OC.map(t=>`[${t}]`).join(", "),PC=/^url\(['"]?#(.*?)['"]?\)$/;let NC=(()=>{class t extends RC{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=h.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=N_(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(DC),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],r=s.getAttribute(t),o=r?r.match(PC):null;if(o){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe(Zp(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(CC),Yi("aria-hidden"),Ro(xC),Ro(as))},t.\u0275cmp=Yt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(So("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),ua("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[po],ngContentSelectors:AC,decls:1,vars:0,template:function(t,e){1&t&&(Jo(),Qo(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),IC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[yM],yM]}),t})();class BC{}let FC=(()=>{class t extends BC{getTranslation(t){return Nd({})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class HC{}let qC=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function jC(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,n,s,r=typeof t;if(r==typeof e&&"object"==r){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in s=Object.create(null),t){if(!jC(t[n],e[n]))return!1;s[n]=!0}for(n in e)if(!(n in s)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n{WC(e[n])?n in t?i[n]=UC(t[n],e[n]):Object.assign(i,{[n]:e[n]}):Object.assign(i,{[n]:e[n]})}),i}class KC{}let VC=(()=>{class t extends KC{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let i;return i="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,i}getValue(t,e){let i="string"==typeof e?e.split("."):[e];e="";do{e+=i.shift(),!YC(t)||!YC(t[e])||"object"!=typeof t[e]&&i.length?i.length?e+=".":t=void 0:(t=t[e],e="")}while(i.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,i)=>{let n=this.getValue(e,i);return YC(n)?n:t}):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class XC{}let GC=(()=>{class t extends XC{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class $C{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new lu,this.onLangChange=new lu,this.onDefaultLangChange=new lu}}const JC=new Ui("USE_STORE"),QC=new Ui("USE_DEFAULT_LANG"),ZC=new Ui("DEFAULT_LANGUAGE"),tE=new Ui("USE_EXTEND");let eE=(()=>{class t{constructor(t,e,i,n,s,r=!0,o=!1,a=!1,c){this.store=t,this.currentLoader=e,this.compiler=i,this.parser=n,this.missingTranslationHandler=s,this.useDefaultLang=r,this.isolate=o,this.extend=a,this.pending=!1,this._onTranslationChange=new lu,this._onLangChange=new lu,this._onDefaultLangChange=new lu,this._langs=[],this._translations={},this._translationRequests={},c&&this.setDefaultLang(c)}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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe(Zp(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return Nd(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(Zp(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),Nd(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(QA(1),Zp(1));return this.loadingTranslations=e.pipe(P(e=>this.compiler.compileTranslations(e,t)),QA(1),Zp(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,i=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?UC(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,i){let n;if(e instanceof Array){let n={},s=!1;for(let r of e)n[r]=this.getParsedResult(t,r,i),zA(n[r])&&(s=!0);return s?DT(e.map(t=>zA(n[t])?n[t]:Nd(n[t]))).pipe(P(t=>{let i={};return t.forEach((t,n)=>{i[e[n]]=t}),i})):n}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){let t={key:e,translateService:this};void 0!==i&&(t.interpolateParams=i),n=this.missingTranslationHandler.handle(t)}return void 0!==n?n:e}get(t,e){if(!YC(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Id(i=>zA(i=this.getParsedResult(i,t,e))?i:Nd(i)));{let i=this.getParsedResult(this.translations[this.currentLang],t,e);return zA(i)?i:Nd(i)}}getStreamOnTranslationChange(t,e){if(!YC(t)||!t.length)throw new Error('Parameter "key" required');return Up(Xp(()=>this.get(t,e)),this.onTranslationChange.pipe(Gp(i=>{const n=this.getParsedResult(i.translations,t,e);return"function"==typeof n.subscribe?n:Nd(n)})))}stream(t,e){if(!YC(t)||!t.length)throw new Error('Parameter "key" required');return Up(Xp(()=>this.get(t,e)),this.onLangChange.pipe(Gp(i=>{const n=this.getParsedResult(i.translations,t,e);return zA(n)?n:Nd(n)})))}instant(t,e){if(!YC(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,e);if(zA(i)){if(t instanceof Array){let e={};return t.forEach((i,n)=>{e[t[n]]=t[n]}),e}return t}return i}set(t,e,i=this.currentLang){this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(un($C),un(BC),un(XC),un(KC),un(HC),un(QC),un(JC),un(tE),un(ZC))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),iE=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,i){let n=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,e);zA(s.subscribe)?s.subscribe(n):n(s)}this.translate.get(t,e).subscribe(n)}transform(t,...e){if(!t||!t.length)return t;if(jC(t,this.lastKey)&&jC(e,this.lastParams))return this.value;let i;if(YC(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(t)}catch(n){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(i=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(Ro(eE,16),Ro(Tc,16))},t.\u0275pipe=$t({name:"translate",type:t,pure:!1}),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),nE=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:BC,useClass:FC},e.compiler||{provide:XC,useClass:GC},e.parser||{provide:KC,useClass:VC},e.missingTranslationHandler||{provide:HC,useClass:qC},$C,{provide:JC,useValue:e.isolate},{provide:QC,useValue:e.useDefaultLang},{provide:tE,useValue:e.extend},{provide:ZC,useValue:e.defaultLanguage},eE]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:BC,useClass:FC},e.compiler||{provide:XC,useClass:GC},e.parser||{provide:KC,useClass:VC},e.missingTranslationHandler||{provide:HC,useClass:qC},{provide:JC,useValue:e.isolate},{provide:QC,useValue:e.useDefaultLang},{provide:tE,useValue:e.extend},{provide:ZC,useValue:e.defaultLanguage},eE]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})(),sE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[],imports:[[QS,MC,IC,mA,nE,Xh]]}),t})();function rE(t,e){}class oE{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const aE={dialogContainer:Bb("dialogContainer",[Yb("void, exit",jb({opacity:0,transform:"scale(0.7)"})),Yb("enter",jb({transform:"none"})),Ub("* => enter",Fb("150ms cubic-bezier(0, 0, 0.2, 1)",jb({transform:"none",opacity:1}))),Ub("* => void, * => exit",Fb("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",jb({opacity:0})))])};let cE=(()=>{class t extends pv{constructor(t,e,i,n,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=s,this._focusMonitor=r,this._animationStateChanged=new lu,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=ib(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=ib())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=ib();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(Mb),Ro(Tc),Ro(Ll,8),Ro(oE),Ro(Lb))},t.\u0275dir=Gt({type:t,viewQuery:function(t,e){if(1&t&&vu(gv,7),2&t){let t;Au(t=ku())&&(e._portalOutlet=t.first)}},features:[po]}),t})(),uE=(()=>{class t extends cE{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Uo("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(Ea("id",e._id),So("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),La("@dialogContainer",e._state))},features:[po],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Lo(0,rE,0,0,"ng-template",0)},directives:[gv],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[aE.dialogContainer]}}),t})(),lE=0;class hE{constructor(t,e,i="mat-dialog-"+lE++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new v,this._afterClosed=new v,this._beforeClosed=new v,this._state=0,e._id=i,e._animationStateChanged.pipe(Bd(t=>"opened"===t.state),Zp(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Bd(t=>"closed"===t.state),Zp(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Bd(t=>27===t.keyCode&&!this.disableClose&&!S_(t))).subscribe(t=>{t.preventDefault(),dE(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():dE(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Bd(t=>"closing"===t.state),Zp(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function dE(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const pE=new Ui("MatDialogData"),fE=new Ui("mat-dialog-default-options"),gE=new Ui("mat-dialog-scroll-strategy"),mE={provide:gE,deps:[Uv],useFactory:function(t){return()=>t.scrollStrategies.block()}};let _E=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new v,this._afterOpenedAtThisLevel=new v,this._ariaHiddenElements=new Map,this.afterAllClosed=Xp(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(nf(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new oE)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),n._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new Cv({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=lo.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:oE,useValue:e}]}),n=new lv(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const s=new this._dialogRefConstructor(i,e,n.id);if(t instanceof Lc)e.attachTemplatePortal(new hv(t,null,{$implicit:n.data,dialogRef:s}));else{const i=this._createInjector(n,s,e),r=e.attachComponentPortal(new lv(t,n.viewContainerRef,i));s.componentInstance=r.instance}return s.updateSize(n.width,n.height).updatePosition(n.position),s}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(Db,null,Mt.Optional)||s.push({provide:Db,useValue:{value:t.direction,change:Nd()}}),lo.create({parent:n||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Uv),Ro(lo),Ro(void 0),Ro(void 0),Ro(Dv),Ro(void 0),Ro(Vi),Ro(Vi),Ro(Ui))},t.\u0275dir=Gt({type:t}),t})(),bE=(()=>{class t extends _E{constructor(t,e,i,n,s,r,o){super(t,e,n,r,o,s,hE,uE,pE)}}return t.\u0275fac=function(e){return new(e||t)(un(Uv),un(lo),un(Wl,8),un(fE,8),un(gE),un(t,12),un(Dv))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),yE=0,wE=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+yE++}ngOnInit(){this._dialogRef||(this._dialogRef=function(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(Ro(hE,8),Ro(Qa),Ro(bE))},t.\u0275dir=Gt({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&Ea("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),ME=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),AE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),vE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[bE,mE],imports:[[Jv,mv,yM],yM]}),t})();var TE=i(2051);const kE=[5,10,25,100];function SE(){const t=new oE;return t.disableClose=!0,t.autoFocus=!1,t}function CE(t){return"virt"===t.namespace.split(":")[4]}const EE=new Intl.Collator("cs",{numeric:!0});function LE(t,e,i,n){const s=e.active,r=e.direction;return s&&""!==r?t.sort((t,e)=>{const o=i(t,s,n),a=i(e,s,n);return EE.compare(o,a)*("asc"===r?1:-1)}):t}function zE(t,e,i,n,s,r){e=e.toLowerCase();let o="";return i.forEach(e=>{o+=";"+n(t,e,s)}),r&&(o+=";"+n(t,"uuid",s)),-1!==o.toLowerCase().indexOf(e)}function RE(t,e,i,n){const s=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(t=>!r.includes(t)),t.forEach(t=>{const r={};e.forEach(e=>{var s;r[e]=(null!==(s=i(t,e,n))&&void 0!==s?s:"").split('"').join("''").trim()}),s.push(r)}),s}function xE(t,e="csv",i="export"){switch(e){case"csv":{const n=(t,e)=>null===e?"":e,s=Object.keys(t[0]),r=t.map(t=>s.map(e=>JSON.stringify(t[e],n)).join(","));r.unshift(s.join(",").split(" ").join("_").split('"').join("''"));const o=r.join("\r\n"),a=new Blob([o],{type:"text/csv"});(0,TE.saveAs)(a,`${i}.${e}`)}}}let OE=(()=>{class t{constructor(){this.exportData=new lu}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(Do(0,"div",0),Do(1,"button",1),Do(2,"mat-icon"),Aa(3,"more_vert"),Po(),Po(),Do(4,"mat-menu",null,2),Do(6,"button",3),Aa(7),nu(8,"translate"),Po(),Po(),Do(9,"mat-menu",null,4),Do(11,"button",5),Wo("click",function(){return e.exportData.emit("csv")}),Aa(12,"Csv"),Po(),Po(),Po()),2&t){const t=zo(5),e=zo(10);Qs(1),xo("matMenuTriggerFor",t),Qs(5),xo("matMenuTriggerFor",e),Qs(1),Ta(" ",su(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[gA,yC,NC,gC,hC],pipes:[iE],styles:[""]}),t})();function DE(t,e){if(1&t){const t=Ho();Do(0,"perun-web-apps-table-options",6),Wo("exportData",function(e){return Re(t),Go().exportData.emit(e)}),Po()}}const PE=["*"];let NE=(()=>{class t{constructor(){this.hideExport=!1,this.page=new lu,this.pageSizeOptions=kE,this.pageSize=5,this.dataLength=0,this.exportData=new lu}set matPaginator(t){this.paginator=t}pageChanged(t){this.paginator.pageSize=t.pageSize,this.paginator.pageIndex=t.pageIndex,this.page.emit(t),this.paginator.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(t,e){if(1&t&&vu(JS,7),2&t){let t;Au(t=ku())&&(e.matPaginator=t.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",pageSize:"pageSize",dataLength:"dataLength"},outputs:{page:"page",exportData:"exportData"},ngContentSelectors:PE,decls:7,vars:8,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(t,e){1&t&&(Jo(),Do(0,"div",0),Do(1,"div",1),Do(2,"mat-paginator",2),Wo("page",function(t){return e.page.emit(t)}),Po(),Lo(3,DE,1,0,"perun-web-apps-table-options",3),Po(),Do(4,"div",4),Qo(5),Po(),Do(6,"mat-paginator",5),Wo("page",function(t){return e.pageChanged(t)}),Po(),Po()),2&t&&(Qs(2),xo("length",e.dataLength)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),Qs(1),xo("ngIf",!e.hideExport),Qs(3),xo("length",e.paginator.length)("pageIndex",e.paginator.pageIndex)("pageSizeOptions",e.paginator.pageSizeOptions)("pageSize",e.paginator.pageSize))},directives:[JS,xh,OE],styles:[""]}),t})(),IE=(()=>{class t{constructor(t){this.dialogRef=t}close(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(Ro(hE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),Po(),Do(3,"div",1),Aa(4),nu(5,"translate"),Po(),Do(6,"div",2),Do(7,"div",3),Do(8,"button",4),Wo("click",function(){return e.close()}),Aa(9),nu(10,"translate"),Po(),Po(),Po()),2&t&&(Qs(1),va(su(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),Qs(3),Ta(" ",su(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),Qs(5),Ta(" ",su(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[wE,ME,AE,gA],pipes:[iE],styles:[""]}),t})(),BE=(()=>{class t{constructor(){this.branding=""}setInstanceConfig(t){this.instanceConfig=t}setDefaultConfig(t){this.defaultConfig=t}setPerunPrincipal(t){this.principal=t}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(t){this.initialPageId=t}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(t){this.branding=t}skipOidc(){return this.get("skip_oidc")}get(...t){let e;if(""!==this.branding){const i=this.instanceConfig.brandings[this.branding];for(let n=0;n{class t{constructor(t,e,i,n){this.injector=t,this.store=e,this.dialog=i,this.route=n,this.userSet=new lu,this.user=null,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(i_),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(t=>{t.idpFilter&&(this.filterShortname=t.idpFilter)})}getClientSettings(){const t=this.setIdpFilter(),e={authority:this.store.get("oidc_client","oauth_authority"),client_id:this.store.get("oidc_client","oauth_client_id"),redirect_uri:this.store.get("oidc_client","oauth_redirect_uri"),post_logout_redirect_uri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),response_type:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),filterProtocolClaims:!0,loadUserInfo:this.store.get("oidc_client","oauth_load_user_info"),automaticSilentRenew:!0,silent_redirect_uri:this.store.get("oidc_client","oauth_silent_redirect_uri")};return t&&(e.extraQueryParams={acr_values:t}),e}setIdpFilter(){const t=location.search.substr(1).split("&");this.filterShortname=null;const e=this.store.get("oidc_client","filters");if(!e)return null;let i=null;return t.forEach(t=>{const n=t.split("=");"idpFilter"===n[0]&&e[n[1]]&&(this.filterShortname=n[1],i=e[n[1]])}),e.default&&!i?(this.filterShortname="default",e.default):i}getUserManager(){return this.manager}startIdpFilterKeeper(){this.router.events.pipe(Bd(t=>t instanceof zf)).subscribe(()=>{const t={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===t.idpFilter?{}:t,queryParamsHandling:"merge",replaceUrl:!0})})}loadConfigData(){this.manager=new Bp.UserManager(this.getClientSettings()),this.setUser(),this.manager.events.addUserLoaded(t=>{this.user=t}),this.manager.events.addAccessTokenExpired(()=>{const t=SE();t.width="450px",this.dialog.open(IE,t).afterClosed().subscribe(()=>{this.startAuthentication().then(()=>{})})})}verifyAuth(){const t=location.pathname,e=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(t,e)}logout(){this.manager.signoutRedirect().catch(function(t){console.log(t)})}isLoggedInPromise(){return F(this.manager.getUser()).pipe(P(t=>!!t&&!t.expired))}isLoggedIn(){return null!=this.user&&!this.user.expired}getClaims(){return this.user.profile}getAuthorizationHeaderValue(){return this.user?"Bearer "+this.user.access_token:""}startAuthentication(){return this.manager.signinRedirect()}completeAuthentication(){return this.manager.signinRedirectCallback().then(t=>{this.user=t,this.userSet.emit(this.user)})}startSigninMainWindow(){this.manager.signinRedirect({data:this.redirectUrl}).then(function(){console.log("signinRedirect done")}).catch(function(t){console.log(t)})}setUser(){this.manager.getUser().then(t=>{this.user=t})}isPotentiallyValidPath(t){const e=["/home","/organizations","/facilities","/myProfile","/admin","/login"];if("/"===t)return!0;for(const i of e)if(t.startsWith(i))return!0;return!1}verifyAuthentication(t,e){return this.isLoggedInPromise().toPromise().then(i=>!!i||(this.isPotentiallyValidPath(t)?(sessionStorage.setItem("auth:redirect",t),sessionStorage.setItem("auth:queryParams",e),!1):new Promise((t,e)=>e("Invalid path"))))}handleAuthCallback(){return this.completeAuthentication().then(()=>!0)}redirectToOriginDestination(){const t=sessionStorage.getItem("mfa_route");if(t)return this.router.navigate([t],{replaceUrl:!0});let e=sessionStorage.getItem("auth:redirect");const i=sessionStorage.getItem("auth:queryParams");let n=[];i&&(n=i.split("&"));const s={};return n.forEach(t=>{const e=t.split("=");s[e[0]]=e[1]}),e&&"/login"!==e||(e="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),s.idpFilter&&(this.filterShortname=s.idpFilter),this.router.navigate([e],{queryParams:s,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}}return t.\u0275fac=function(e){return new(e||t)(un(lo),un(BE),un(bE),un(Dg))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),HE=(()=>{class t{constructor(t){this.dialogRef=t}}return t.\u0275fac=function(e){return new(e||t)(Ro(hE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(Do(0,"h2",0),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE")))},directives:[ME],pipes:[iE],styles:[""]}),t})(),qE=(()=>{class t{constructor(t,e,i,n,s,r){this.authService=t,this.storeService=e,this.authResolver=i,this.authzService=n,this.dialog=s,this.router=r,this.loginScreenShown=!1}setLoginScreen(t){this.loginScreenShown=t}isLoginScreenShown(){return this.loginScreenShown}verifyAuth(){return this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(t=>t(!0)):this.authService.verifyAuth()}startAuth(){return this.authService.startAuthentication()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(t=>{if(null===t.user){const t=SE();this.dialog.open(HE,t)}else this.storeService.setPerunPrincipal(t),this.authResolver.init(t)})}handleAuthStart(){return this.storeService.get("auto_auth_redirect")?this.startAuth().then(()=>new Promise(()=>{})):(this.setLoginScreen(!0),this.router.navigate(["login"]).then(()=>null))}redirectToOriginDestination(){return this.authService.redirectToOriginDestination()}}return t.\u0275fac=function(e){return new(e||t)(un(FE),un(BE),un(Ip),un(vp),un(bE),un(i_))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jE=(()=>{class t{constructor(t,e){this.matIconRegistry=t,this.domSanitizer=e,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/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/settings1-blue.svg",name:"settings-blue"},{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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(t=>{this.matIconRegistry.addSvgIcon(t.name,this.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}return t.\u0275fac=function(e){return new(e||t)(un(CC),un(Ed))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),YE=(()=>{class t{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const t=this.handleNextError;return this.handleNextError=!0,t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),WE=(()=>{class t{constructor(t){this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new lu}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(t,e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}showError(t,e,i,n,s){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:s,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return t.\u0275fac=function(e){return new(e||t)(un(eE))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),UE=(()=>{class t{constructor(t,e,i,n,s,r){this.authService=t,this.apiRequestConfiguration=e,this.notificator=i,this.store=n,this.dialog=s,this.initAuthService=r}intercept(t,e){const i=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==t.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()){const t=SE();t.width="450px",this.dialog.open(IE,t).afterClosed().subscribe(()=>{this.authService.startAuthentication().then(()=>{})})}t=t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});const n=this.apiRequestConfiguration.shouldHandleError(),s="POST"===t.method&&!this.store.skipOidc();return e.handle(t).pipe(Af(t=>{t instanceof ip&&s&&this.initAuthService.loadPrincipal()},e=>{const i=this.formatErrors(e,t);return void 0===i?UA(e):n?void this.notificator.showRPCError(i):UA(i)}))}formatErrors(t,e){let i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.urlWithParams=e.urlWithParams,i.call=e.url,i.payload=e.body,i}}return t.\u0275fac=function(e){return new(e||t)(un(FE),un(YE),un(WE),un(BE),un(bE),un(qE))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),KE=(()=>{class t{constructor(){this.notificationData=[],this.newNotificationsCount=0}storeNotification(t){this.newNotificationsCount++,this.notificationData.push(t)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),VE=(()=>{class t{constructor(t,e,i,n){this.http=t,this.notificator=e,this.authService=i,this.storeService=n}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}formatErrors(t,e,i,n){const s=t.error;return s.call=e,s.payload=i,n&&this.notificator.showRPCError(t.error),UA(s)}getHeaders(){let t=new Yd;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue()),t}get(t,e=new Vd,i=!0){const n=`${this.getApiUrl()}${t}`;return this.http.get(n,{headers:this.getHeaders()}).pipe(af(t=>this.formatErrors(t,n,null,i)))}put(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);return this.http.put(n,s,{headers:this.getHeaders()}).pipe(af(t=>this.formatErrors(t,n,s,i)))}post(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);let r=this.getHeaders();return r=r.set("Content-Type","application/json; charset=utf-8"),this.http.post(n,s,{headers:r}).pipe(af(t=>this.formatErrors(t,n,s,i)))}delete(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe(af(t=>this.formatErrors(t,i,null,e)))}}return t.\u0275fac=function(e){return new(e||t)(un(rp),un(WE),un(FE),un(BE))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),XE=(()=>{class t{constructor(){}isAllSelectedWithDisabledCheckbox(t,e,i,n,s,r,o,a){return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=s*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?r.data.length:r.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),r.sortData(r.filteredData,o).forEach(t=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?c(t)&&this.pageStart<=this.pageIterator&&this.pageIterator closed",[Fb(".3s ease-in")])]);const GE=Bb("flyInOut",[Ub(":enter",[jb({transform:"translateX(100%)"}),Fb(".25s")]),Ub(":leave",[Fb(".5s",jb({transform:"translateX(100%)"}))])]);Bb("rollInOut",[Ub(":enter",[jb({height:"0px"}),Fb(".25s")]),Ub(":leave",[Fb(".25s",jb({height:"0px"}))])]),Bb("routeAnimations",[Ub("* => *",[jb({position:"relative"}),Vb(":enter",[jb({width:"100%",opacity:0})],{optional:!0}),Vb(":leave",[jb({position:"absolute",width:"100%",opacity:1}),Fb("0.15s",jb({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Vb(":enter",[jb({position:"absolute",width:"100%",opacity:0}),Fb("0.15s",jb({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),Bb("tagsOpenClose",[Yb("open",jb({})),Yb("closed",jb({width:"0px",height:"0px"})),Ub("open <=> closed",[Fb(".3s ease-in")])]),Bb("switchAnimations",[Ub("true => false",[Vb(":enter, :leave",jb({})),Hb([Vb(":enter",[jb({transform:"translateX(-100%)"}),Fb("1s ease-in-out",jb({transform:"translateX(0%)"}))],{optional:!0}),Vb(":leave",[jb({transform:"translateX(0%)",position:"absolute"}),Fb("1s ease-in-out",jb({transform:"translateX(100%)"}))],{optional:!0})])]),Ub("false => true",[Vb(":enter, :leave",jb({})),Hb([Vb(":enter",[jb({transform:"translateX(100%)"}),Fb("1s ease-in-out",jb({transform:"translateX(0%)"}))],{optional:!0}),Vb(":leave",[jb({transform:"translateX(0%)",position:"absolute"}),Fb("1s ease-in-out",jb({transform:"translateX(-100%)"}))],{optional:!0})])])]),Bb("slideInOutLeft",[Ub(":enter",[jb({transform:"translateX(-100%)",position:"relative"}),Fb("0.5s ease-in",jb({transform:"translateX(0%)"}))]),Ub(":leave",[Fb("0.5s ease-in",jb({transform:"translateX(-100%)"}))])]),Bb("slideInOutRight",[Ub(":enter",[jb({transform:"translateX(100%)",position:"fixed"}),Fb("0.5s ease-in",jb({transform:"translateX(0%)"}))]),Ub(":leave",[jb({transform:"translateX(-100%)",position:"relative"}),Fb("0.5s ease-in",jb({transform:"translateX(100%)"}))])]);let $E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Xh]]}),t})(),JE=(()=>{class t{transform(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"userFullName",type:t,pure:!0}),t})(),QE=(()=>{class t{constructor(t,e){this.translate=t,this.storage=e}transform(t,e="en"){const i=this.storage.get("custom_labels");if(i){const n=Object.keys(i);for(const i of n){const n=this.storage.get("custom_labels",i);if(n.label===t)return n[e]}}return t}}return t.\u0275fac=function(e){return new(e||t)(Ro(eE,16),Ro(BE,16))},t.\u0275pipe=$t({name:"customTranslate",type:t,pure:!0}),t})();function ZE(t,e){if(1&t&&(ri(),No(0,"circle",3)),2&t){const t=Go();ca("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),So("r",t._getCircleRadius())}}function tL(t,e){if(1&t&&(ri(),No(0,"circle",3)),2&t){const t=Go();ca("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),So("r",t._getCircleRadius())}}function eL(t,e){if(1&t&&(ri(),No(0,"circle",3)),2&t){const t=Go();ca("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),So("r",t._getCircleRadius())}}function iL(t,e){if(1&t&&(ri(),No(0,"circle",3)),2&t){const t=Go();ca("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),So("r",t._getCircleRadius())}}const nL=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class sL{constructor(t){this._elementRef=t}}const rL=MM(sL,"primary"),oL=new Ui("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let aL=(()=>{class t extends rL{constructor(e,i,n,s,r){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(n.head)||o.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=I_(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=I_(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,I_(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=eb(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(W_),Ro(Ll,8),Ro(aM,8),Ro(oL))},t.\u0275cmp=Yt({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(So("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),ca("width",e.diameter,"px")("height",e.diameter,"px"),ua("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[po],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(ri(),Do(0,"svg",0),Lo(1,ZE,1,9,"circle",1),Lo(2,tL,1,7,"circle",2),Po()),2&t&&(ca("width",e.diameter,"px")("height",e.diameter,"px"),xo("ngSwitch","indeterminate"===e.mode),So("viewBox",e._getViewBox()),Qs(1),xo("ngSwitchCase",!0),Qs(1),xo("ngSwitchCase",!1))},directives:[Nh,Ih],styles:[nL],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),cL=(()=>{class t extends aL{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(W_),Ro(Ll,8),Ro(aM,8),Ro(oL))},t.\u0275cmp=Yt({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(ca("width",e.diameter,"px")("height",e.diameter,"px"),ua("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[po],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(ri(),Do(0,"svg",0),Lo(1,eL,1,9,"circle",1),Lo(2,iL,1,7,"circle",2),Po()),2&t&&(ca("width",e.diameter,"px")("height",e.diameter,"px"),xo("ngSwitch","indeterminate"===e.mode),So("viewBox",e._getViewBox()),Qs(1),xo("ngSwitchCase",!0),Qs(1),xo("ngSwitchCase",!1))},directives:[Nh,Ih],styles:[nL],encapsulation:2,changeDetection:0}),t})(),uL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[yM,Xh],yM]}),t})();const lL=Q_({passive:!0});let hL=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Kp;const e=q_(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new v,s="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,lL),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",r,lL)}}),n}stopMonitoring(t){const e=q_(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(un(W_),un($u))},t.\u0275prov=dt({factory:function(){return new t(un(W_),un($u))},token:t,providedIn:"root"}),t})(),dL=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new v,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._document=n,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=I_(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=I_(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=N_(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(t){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=t,this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{_A(this._getWindow(),"resize").pipe(BA(16),FA(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){this._textareaElement.classList.add(this._measuringClass);const t=this._textareaElement.scrollHeight-4;return this._textareaElement.classList.remove(this._measuringClass),t}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=this._measureScrollHeight(),s=Math.max(n,this._cachedPlaceholderHeight||0);e.style.height=`${s}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,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(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(W_),Ro($u),Ro(Ll,8))},t.\u0275dir=Gt({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&Wo("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),t})(),pL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[U_]]}),t})();const fL=new Ui("MAT_INPUT_VALUE_ACCESSOR"),gL=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let mL=0;class _L{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const bL=TM(_L);let yL=(()=>{class t extends bL{constructor(t,e,i,n,s,r,o,a,c,u){super(r,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+mL++,this.focused=!1,this.stateChanges=new v,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>V_().has(t));const l=this._elementRef.nativeElement,h=l.nodeName.toLowerCase();this._inputValueAccessor=o||l,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&c.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===h,this._isTextarea="textarea"===h,this._isNativeSelect&&(this.controlType=l.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=N_(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=N_(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&V_().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=N_(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){gL.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(W_),Ro(lk,10),Ro(Nk,8),Ro(Xk,8),Ro(NM),Ro(fL,10),Ro(hL),Ro($u),Ro(RT,8))},t.\u0275dir=Gt({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&Wo("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(Ea("disabled",e.disabled)("required",e.required),So("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),ua("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Ua([{provide:yT,useExisting:t}]),po,ae]}),t})(),wL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[NM],imports:[[pL,OT,yM],pL,OT]}),t})();function ML(t,e){1&t&&No(0,"mat-spinner",7)}function AL(t,e){1&t&&(Do(0,"mat-error"),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function vL(t,e){1&t&&(Do(0,"mat-error"),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function TL(t,e){if(1&t){const t=Ho();Do(0,"div",8),Do(1,"mat-form-field"),Do(2,"mat-label"),Aa(3),nu(4,"translate"),Po(),Do(5,"input",9,10),Wo("ngModelChange",function(e){return Re(t),Go().subject=e}),Po(),Lo(7,AL,3,3,"mat-error",11),Po(),Do(8,"mat-form-field"),Do(9,"mat-label"),Aa(10),nu(11,"translate"),Po(),Do(12,"textarea",12,13),Wo("ngModelChange",function(e){return Re(t),Go().message=e}),nu(14,"translate"),Aa(15," "),Po(),Lo(16,vL,3,3,"mat-error",11),Po(),Po()}if(2&t){const t=zo(6),e=zo(13),i=Go();Qs(3),va(su(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),Qs(2),xo("ngModel",i.subject),Qs(2),xo("ngIf",t.invalid),Qs(3),va(su(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),Qs(2),Zo("placeholder",su(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),xo("ngModel",i.message),Qs(4),xo("ngIf",e.invalid)}}let kL=(()=>{class t{constructor(t,e,i,n,s,r){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.data=s,this.storeService=r,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data.error&&this.data.error.errorId&&(this.subject=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(t=>{this.dialogRef.afterClosed().subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const t=this.storeService.get("config");let e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),e=e.concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.urlWithParams+"\n\n"),this.data.error.payload){const t=/"password":".+?"/;let i=JSON.stringify(this.data.error.payload);i=i.replace(t,'"password":"####"'),e=e.concat("Payload:\n"+i+"\n\n")}return e=e.concat("Sended from new Perun Gui, version: "+i(306).i8),e.split("\n").join("\n ")}parseMethod(t){return t?this.methodRegexp.exec(t)[1]:t}}return t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(eE),Ro(WE),Ro(Sp),Ro(pE),Ro(BE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),Po(),Lo(3,ML,1,0,"mat-spinner",1),Lo(4,TL,17,13,"div",2),Do(5,"div",3),Do(6,"div",4),Do(7,"button",5),Wo("click",function(){return e.dialogRef.close()}),Aa(8),nu(9,"translate"),Po(),Do(10,"button",6),Wo("click",function(){return e.sendBugReport()}),Aa(11),nu(12,"translate"),Po(),Po(),Po()),2&t&&(Qs(1),va(su(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),Qs(2),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading),Qs(4),Ta(" ",su(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),Qs(2),xo("disabled",""===e.message||""===e.subject||e.loading),Qs(1),Ta(" ",su(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[wE,xh,AE,gA,cL,ME,xT,vT,yL,qT,$k,dk,Fk,_T],pipes:[iE],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),SL=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.dialog=e,this.data=i}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const t=SE();t.width="550px",t.data={error:this.data.error},t.autoFocus=!1,this.dialog.open(kL,t)}),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(bE),Ro(pE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),Po(),Do(2,"div",1),Aa(3),Po(),Do(4,"div",2),Do(5,"div",3),Do(6,"button",4),Wo("click",function(){return e.onBugReportClick()}),Aa(7),nu(8,"translate"),Po(),Do(9,"button",5),Wo("click",function(){return e.onCloseClick()}),Aa(10),nu(11,"translate"),Po(),Po(),Po()),2&t&&(Qs(1),va(e.data.title),Qs(2),Ta("\n",e.data.description,"\n"),Qs(3),xo("hidden","error"!==e.data.type),Qs(1),Ta(" ",su(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),Qs(3),Ta(" ",su(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[wE,ME,AE,gA],pipes:[iE],styles:[""]}),t})();const CL=[[["caption"]],[["colgroup"],["col"]]],EL=["caption","colgroup, col"];function LL(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=N_(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const zL=new Ui("CDK_TABLE");let RL=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc))},t.\u0275dir=Gt({type:t,selectors:[["","cdkCellDef",""]]}),t})(),xL=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc))},t.\u0275dir=Gt({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),OL=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc))},t.\u0275dir=Gt({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class DL{}const PL=LL(DL);let NL=(()=>{class t extends PL{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=N_(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(Ro(zL,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,RL,5),Tu(i,xL,5),Tu(i,OL,5)),2&t){let t;Au(t=ku())&&(e.cell=t.first),Au(t=ku())&&(e.headerCell=t.first),Au(t=ku())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Ua([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),po]}),t})();class IL{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let BL=(()=>{class t extends IL{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Ro(NL),Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[po]}),t})(),FL=(()=>{class t extends IL{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Ro(NL),Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[po]}),t})();class HL{constructor(){this.tasks=[],this.endTasks=[]}}const qL=new Ui("_COALESCED_STYLE_SCHEDULER");let jL=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new v}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new HL,this._getScheduleObservable().pipe(FA(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new HL;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?F(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Zp(1))}}return t.\u0275fac=function(e){return new(e||t)(un($u))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),YL=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof KL?t.headerCell.template:this instanceof GL?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc),Ro(_c))},t.\u0275dir=Gt({type:t,features:[ae]}),t})();class WL extends YL{}const UL=LL(WL);let KL=(()=>{class t extends UL{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc),Ro(_c),Ro(zL,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[po,ae]}),t})();class VL extends YL{}const XL=LL(VL);let GL=(()=>{class t extends XL{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc),Ro(_c),Ro(zL,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[po,ae]}),t})(),$L=(()=>{class t extends YL{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc),Ro(_c),Ro(zL,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[po]}),t})(),JL=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc))},t.\u0275dir=Gt({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),QL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({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(t,e){1&t&&Fo(0,0)},directives:[JL],encapsulation:2}),t})(),ZL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Fo(0,0)},directives:[JL],encapsulation:2}),t})(),tz=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc))},t.\u0275dir=Gt({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const ez=["top","bottom","left","right"];class iz{constructor(t,e,i,n,s=!0,r=!0,o){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=s,this._needsPositionStickyOnElement=r,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],r=s.children.length,o=this._getCellWidths(s,n),a=this._getStickyStartColumnPositions(o,e),c=this._getStickyEndColumnPositions(o,i),u=e.lastIndexOf(!0),l=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const n="rtl"===this.direction,s=n?"right":"left",h=n?"left":"right";for(const o of t)for(let t=0;te[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===l?[]:o.slice(l).map((t,e)=>i[e+l]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,r=[],o=[],a=[];for(let u=0,l=0;u{var t,e;for(let o=0;o{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);ez.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of ez)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}const nz=new Ui("CDK_SPL");let sz=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc),Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["","rowOutlet",""]]}),t})(),rz=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc),Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),oz=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc),Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),az=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ro(Nc),Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),cz=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u,l){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=c,this._viewportRuler=u,this._stickyPositioningListener=l,this._onDestroy=new v,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.viewChange=new Fp({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=N_(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=N_(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler.change().pipe(FA(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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),ZA(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),uz(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=uz(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=uz(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=uz(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],ZA(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;ZA(this.dataSource)?t=this.dataSource.connect(this):zA(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Nd(this.dataSource)),this._renderChangeSubscription=t.pipe(FA(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const s=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),s}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))JL.mostRecentCellOutlet&&JL.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new iz(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Nd()).pipe(FA(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(Ro(_c),Ro(Tc),Ro(Qa),Yi("role"),Ro(Db,8),Ro(Ll),Ro(W_),Ro(nv),Ro(qL),Ro(ov),Ro(nz,12))},t.\u0275cmp=Yt({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,tz,5),Tu(i,NL,5),Tu(i,$L,5),Tu(i,KL,5),Tu(i,GL,5)),2&t){let t;Au(t=ku())&&(e._noDataRow=t.first),Au(t=ku())&&(e._contentColumnDefs=t),Au(t=ku())&&(e._contentRowDefs=t),Au(t=ku())&&(e._contentHeaderRowDefs=t),Au(t=ku())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(vu(sz,7),vu(rz,7),vu(oz,7),vu(az,7)),2&t){let t;Au(t=ku())&&(e._rowOutlet=t.first),Au(t=ku())&&(e._headerRowOutlet=t.first),Au(t=ku())&&(e._footerRowOutlet=t.first),Au(t=ku())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&ua("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[Ua([{provide:zL,useExisting:t},{provide:nv,useClass:tv},{provide:qL,useClass:jL},{provide:nz,useValue:null}])],ngContentSelectors:EL,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(Jo(CL),Qo(0),Qo(1,1),Fo(2,0),Fo(3,1),Fo(4,2),Fo(5,3))},directives:[rz,sz,az,oz],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function uz(t,e){return t.concat(Array.from(e))}let lz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[cv]]}),t})();const hz=[[["caption"]],[["colgroup"],["col"]]],dz=["caption","colgroup, col"];let pz=(()=>{class t extends cz{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&ua("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[Ua([{provide:nv,useClass:tv},{provide:cz,useExisting:t},{provide:zL,useExisting:t},{provide:qL,useClass:jL},{provide:nz,useValue:null}]),po],ngContentSelectors:dz,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(Jo(hz),Qo(0),Qo(1,1),Fo(2,0),Fo(3,1),Fo(4,2),Fo(5,3))},directives:[rz,sz,az,oz],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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),fz=(()=>{class t extends RL{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matCellDef",""]],features:[Ua([{provide:RL,useExisting:t}]),po]}),t})(),gz=(()=>{class t extends xL{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ua([{provide:xL,useExisting:t}]),po]}),t})(),mz=(()=>{class t extends NL{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Ua([{provide:NL,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),po]}),t})(),_z=(()=>{class t extends BL{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[po]}),t})(),bz=(()=>{class t extends FL{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[po]}),t})(),yz=(()=>{class t extends KL{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Ua([{provide:KL,useExisting:t}]),po]}),t})(),wz=(()=>{class t extends $L{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Ua([{provide:$L,useExisting:t}]),po]}),t})(),Mz=(()=>{class t extends QL{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Ua([{provide:QL,useExisting:t}]),po],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Fo(0,0)},directives:[JL],encapsulation:2}),t})(),Az=(()=>{class t extends ZL{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Ua([{provide:ZL,useExisting:t}]),po],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Fo(0,0)},directives:[JL],encapsulation:2}),t})(),vz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[lz,yM],yM]}),t})();class Tz extends class extends class{}{constructor(t=[]){super(),this._renderData=new Fp([]),this._filter=new Fp(""),this._internalPageChanges=new v,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const i=t[e];if(B_(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),r=this.sortingDataAccessor(e,i);const o=typeof s,a=typeof r;o!==a&&("number"===o&&(s+=""),"number"===a&&(r+=""));let c=0;return null!=s&&null!=r?s>r?c=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new Fp(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?U(this._sort.sortChange,this._sort.initialized):Nd(null),i=this._paginator?U(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Nd(null),n=qp([this._data,this._filter]).pipe(P(([t])=>this._filterData(t))),s=qp([n,e]).pipe(P(([t])=>this._orderData(t))),r=qp([s,i]).pipe(P(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=r.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}{}function kz(t,e){1&t&&No(0,"mat-spinner",3)}function Sz(t,e){1&t&&No(0,"th",15)}function Cz(t,e){if(1&t&&(Do(0,"td",16),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),Ta(" ",t.userExtSource.extSource.name," ")}}function Ez(t,e){1&t&&No(0,"tr",17)}function Lz(t,e){1&t&&No(0,"tr",18)}function zz(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"div",4),Do(2,"p"),Aa(3),nu(4,"translate"),nu(5,"customTranslate"),Po(),Do(6,"div",5),Aa(7),nu(8,"translate"),nu(9,"customTranslate"),Po(),Do(10,"table",6),Io(11,7),Lo(12,Sz,1,0,"th",8),Lo(13,Cz,2,1,"td",9),Bo(),Lo(14,Ez,1,0,"tr",10),Lo(15,Lz,1,0,"tr",11),Po(),Po(),Do(16,"div",12),Do(17,"button",13),Wo("click",function(){return Re(t),Go().onCancel()}),Aa(18),nu(19,"translate"),nu(20,"customTranslate"),Po(),Do(21,"button",14),Wo("click",function(){return Re(t),Go().onSubmit()}),Aa(22),nu(23,"translate"),nu(24,"customTranslate"),Po(),Po(),Po()}if(2&t){const t=Go();Qs(3),Ta(" ",su(4,7,su(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),Qs(4),Ta(" ",su(8,11,su(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),Qs(3),xo("dataSource",t.dataSource),Qs(4),xo("matHeaderRowDef",t.displayedColumns),Qs(1),xo("matRowDefColumns",t.displayedColumns),Qs(3),Ta(" ",su(19,15,su(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),Qs(4),Ta(" ",su(23,19,su(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let Rz=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.usersManagerService=i,this.translate=n,this.notificator=s,this.force=!1,this.displayedColumns=["name"],n.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new Tz(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 t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(pE),Ro(Lp),Ro(eE),Ro(WE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div"),Lo(5,kz,1,0,"mat-spinner",1),Lo(6,zz,25,23,"div",2),Po()),2&t&&(Qs(1),va(su(2,6,su(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE"))),Qs(3),la(e.theme),Qs(1),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading))},directives:[wE,xh,cL,ME,pz,mz,gz,fz,yz,wz,AE,gA,_z,bz,Mz,Az],pipes:[iE,QE],styles:[""]}),t})();class xz{constructor(t,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),n=i.style;n.position="fixed",n.top=n.opacity="0",n.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}copy(){const t=this._textarea;let e=!1;try{if(t){const i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(_j){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let Oz=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),i=e.copy();return e.destroy(),i}beginCopy(t){return new xz(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un(Ll))},token:t,providedIn:"root"}),t})();const Dz=new Ui("CDK_COPY_TO_CLIPBOARD_CONFIG");let Pz=(()=>{class t{constructor(t,e,i){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new lu,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}copy(t=this.attempts){if(t>1){let e=t;const i=this._clipboard.beginCopy(this.text);this._pending.add(i);const n=()=>{const t=i.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(i),i.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(n,1))};n()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(Ro(Oz),Ro($u),Ro(Dz,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&Wo("click",function(){return e.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),Nz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})(),Iz=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(pE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),Po(),Do(2,"div",1),Do(3,"textarea",2),Aa(4),Po(),Po(),Do(5,"div",3),Do(6,"button",4),Wo("click",function(){return e.onCancel()}),Aa(7),nu(8,"translate"),Po(),Do(9,"button",5),Aa(10),nu(11,"translate"),Po(),Po()),2&t&&(Qs(1),va(e.title),Qs(3),va(e.value),Qs(3),Ta(" ",su(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),Qs(2),xo("cdkCopyToClipboard",e.value),Qs(1),Ta(" ",su(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[wE,ME,dL,yL,AE,gA,Pz],pipes:[iE],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),t})(),Bz=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,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 t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(pE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h5",0),Aa(1),nu(2,"translate"),Po(),Do(3,"div",1),Do(4,"mat-form-field"),Do(5,"textarea",2),Wo("ngModelChange",function(t){return e.attributeValue=t}),Po(),Po(),Po(),Do(6,"div",3),Do(7,"button",4),Wo("click",function(){return e.cancel()}),Aa(8),nu(9,"translate"),Po(),Do(10,"button",5),Wo("click",function(){return e.submit()}),Aa(11),nu(12,"translate"),Po(),Po()),2&t&&(Qs(1),va(su(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE")),Qs(4),xo("ngModel",e.attributeValue),Qs(3),Ta(" ",su(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),Qs(3),Ta(" ",su(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[wE,ME,xT,dL,yL,qT,dk,Fk,AE,gA],pipes:[iE],styles:[""]}),t})(),Fz=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(pE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h5",0),Aa(1),nu(2,"translate"),Po(),Do(3,"div",1),Do(4,"div"),Aa(5),nu(6,"translate"),Po(),Do(7,"div",2),Aa(8),Po(),Po(),Do(9,"div",3),Do(10,"button",4),Wo("click",function(){return e.cancel()}),Aa(11),nu(12,"translate"),Po(),Do(13,"button",5),Wo("click",function(){return e.submit()}),Aa(14),nu(15,"translate"),Po(),Po()),2&t&&(Qs(1),va(su(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE")),Qs(4),Ta(" ",su(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),Qs(3),Ta(" ",e.data.name," "),Qs(3),Ta(" ",su(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),Qs(3),Ta(" ",su(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[wE,ME,AE,gA],pipes:[iE],styles:[""]}),t})();function Hz(t,e){1&t&&(Do(0,"mat-icon",2),Aa(1," error "),Po())}const qz=["*"];let jz=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:qz,decls:3,vars:7,consts:[[1,"perun-alert","d-flex","align-items-center"],["class","perun-warn-alert-icon",4,"ngIf"],[1,"perun-warn-alert-icon"]],template:function(t,e){1&t&&(Jo(),Do(0,"div",0),Lo(1,Hz,2,0,"mat-icon",1),Qo(2),Po()),2&t&&(ua("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("info-alert","info"===e.alert_type),Qs(1),xo("ngIf","error"!==e.alert_type))},directives:[xh,NC],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%], .perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-warn-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{color:#000;background-color:#fae2e2;border-left:4px solid;border-color:#d32f2f}"]}),t})();function Yz(t,e){if(1&t&&(Do(0,"app-alert",9),Aa(1),Po()),2&t){const t=Go();Qs(1),va(t.pendingEmailsMessage)}}function Wz(t,e){1&t&&(Do(0,"mat-error"),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let Uz=(()=>{class t{constructor(t,e,i,n,s,r){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=n,this.usersManagerService=s,this.authService=r,this.pendingMails=[],i.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(t=>this.successMessage=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(t=>this.pendingEmailsMessageStart=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(t=>this.pendingEmailsMessageEnd=t)}ngOnInit(){this.emailControl=new Rk(null,[VT.required,VT.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(t=>{this.pendingMails=t.filter((t,e,i)=>e===i.indexOf(t));let e="";this.pendingMails.forEach(t=>e+=`${t===this.pendingMails[0]?"":", "}${t}`),console.log(e),this.pendingEmailsMessage=this.pendingEmailsMessageStart+e+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 t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(pE),Ro(eE),Ro(WE),Ro(Lp),Ro(FE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Lo(5,Yz,2,1,"app-alert",2),Do(6,"mat-form-field",3),Do(7,"label",3),No(8,"input",4),nu(9,"translate"),nu(10,"customTranslate"),Po(),Lo(11,Wz,4,5,"mat-error",5),Po(),Po(),Do(12,"div",6),Do(13,"button",7),Wo("click",function(){return e.onCancel()}),Aa(14),nu(15,"translate"),nu(16,"customTranslate"),Po(),Do(17,"button",8),Wo("click",function(){return e.onSubmit()}),Aa(18),nu(19,"translate"),nu(20,"customTranslate"),Po(),Po()),2&t&&(Qs(1),va(su(2,8,su(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),Qs(4),xo("ngIf",e.pendingMails.length),Qs(3),Zo("placeholder",su(9,12,su(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),xo("formControl",e.emailControl),Qs(3),xo("ngIf",e.emailControl.invalid),Qs(3),Ta(" ",su(15,16,su(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),Qs(3),xo("disabled",!e.emailControl.valid),Qs(1),Ta(" ",su(19,20,su(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[wE,ME,xh,xT,yL,qT,$k,dk,Kk,AE,gA,jz,_T],pipes:[iE,QE],styles:[""]}),t})(),Kz=(()=>{class t{constructor(t,e){this.dialogRef=t,this.router=e}onClose(){this.router.navigate([]),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(i_))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),Po(),Do(3,"div",1),Do(4,"app-alert",2),Aa(5),nu(6,"translate"),Po(),Po(),Do(7,"div",3),Do(8,"button",4),Wo("click",function(){return e.onClose()}),Aa(9),nu(10,"translate"),Po(),Po()),2&t&&(Qs(1),va(su(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE")),Qs(4),va(su(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),Qs(4),Ta(" ",su(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[wE,ME,jz,AE,gA],pipes:[iE],styles:[""]}),t})();const Vz=["input"],Xz=function(t){return{enterDuration:t}},Gz=["*"],$z=new Ui("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let Jz=0;const Qz={provide:BT,useExisting:rt(()=>iR),multi:!0};class Zz{constructor(t,e){this.source=t,this.value=e}}const tR=new Ui("MatRadioGroup");let eR=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+Jz++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new lu}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=N_(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=N_(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._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 Zz(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Tc))},t.\u0275dir=Gt({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),iR=(()=>{class t extends eR{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){if(1&t&&Tu(i,oR,5),2&t){let t;Au(t=ku())&&(e._radios=t)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[Ua([Qz,{provide:tR,useExisting:t}]),po]}),t})();class nR{constructor(t){this._elementRef=t}}const sR=AM(vM(nR));let rR=(()=>{class t extends sR{constructor(t,e,i,n,s,r,o,a){super(e),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=s,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++Jz,this.id=this._uniqueId,this.change=new lu,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._noopAnimations="NoopAnimations"===r,a&&(this.tabIndex=I_(a,0)),this._removeUniqueSelectionListener=s.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=N_(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(N_(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=N_(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Zz(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(Ro(eR),Ro(Qa),Ro(Tc),Ro(Lb),Ro(iv),Ro(String),Ro(void 0),Ro(String))},t.\u0275dir=Gt({type:t,viewQuery:function(t,e){if(1&t&&vu(Vz,5),2&t){let t;Au(t=ku())&&(e._inputElement=t.first)}},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[po]}),t})(),oR=(()=>{class t extends rR{constructor(t,e,i,n,s,r,o,a){super(t,e,i,n,s,r,o,a)}}return t.\u0275fac=function(e){return new(e||t)(Ro(tR,8),Ro(Qa),Ro(Tc),Ro(Lb),Ro(iv),Ro(aM,8),Ro($z,8),Yi("tabindex"))},t.\u0275cmp=Yt({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&Wo("focus",function(){return e._inputElement.nativeElement.focus()}),2&t&&(So("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),ua("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable",e._noopAnimations)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[po],ngContentSelectors:Gz,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(Jo(),Do(0,"label",0,1),Do(2,"span",2),No(3,"span",3),No(4,"span",4),Do(5,"input",5,6),Wo("change",function(t){return e._onInputChange(t)})("click",function(t){return e._onInputClick(t)}),Po(),Do(7,"span",7),No(8,"span",8),Po(),Po(),Do(9,"span",9),Do(10,"span",10),Aa(11,"\xa0"),Po(),Qo(12),Po(),Po()),2&t){const t=zo(1);So("for",e.inputId),Qs(5),xo("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),So("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),Qs(2),xo("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Qc(18,Xz,e._noopAnimations?0:150)),Qs(2),ua("mat-radio-label-before","before"==e.labelPosition)}},directives:[VM],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-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;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),aR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[XM,yM],yM]}),t})();function cR(t,e){1&t&&No(0,"mat-spinner",4)}function uR(t,e){1&t&&(Do(0,"span",11),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function lR(t,e){1&t&&(Do(0,"span",11),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function hR(t,e){if(1&t){const t=Ho();Do(0,"mat-radio-group",12),Wo("ngModelChange",function(e){return Re(t),Go(2).asyncValidation=e}),Do(1,"span",13),Aa(2),nu(3,"translate"),Po(),Do(4,"mat-radio-button",14),Aa(5),nu(6,"translate"),Po(),Do(7,"mat-radio-button",14),Aa(8),nu(9,"translate"),Po(),Po()}2&t&&(xo("ngModel",Go(2).asyncValidation),Qs(2),Ta(" ",su(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE"),": "),Qs(2),xo("value",!1),Qs(1),Ta(" ",su(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),Qs(2),xo("value",!0),Qs(1),Ta(" ",su(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," "))}function dR(t,e){1&t&&(Do(0,"span",11),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function pR(t,e){1&t&&(Do(0,"span",11),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function fR(t,e){if(1&t&&(Do(0,"div",5),Do(1,"p",6),Aa(2),Do(3,"span",7),Aa(4),Po(),Aa(5),Do(6,"span",7),Aa(7),Po(),Po(),Do(8,"p"),Do(9,"strong",8),Aa(10),nu(11,"translate"),Po(),Aa(12),Po(),Do(13,"p"),Do(14,"strong",8),Aa(15),nu(16,"translate"),Po(),Aa(17),Po(),Lo(18,uR,3,3,"span",9),Lo(19,lR,3,3,"span",9),Lo(20,hR,10,12,"mat-radio-group",10),Lo(21,dR,3,3,"span",9),Lo(22,pR,3,3,"span",9),Po()),2&t){const t=Go();Qs(2),Ta(" ",t.group.name," "),Qs(2),Ta("#",t.group.id,""),Qs(1),Ta(" - ",t.resource.name," "),Qs(2),Ta("#",t.resource.id,""),Qs(3),Ta("",su(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT"),":"),Qs(2),Ta(" ",t.status," "),Qs(3),Ta("",su(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW"),":"),Qs(2),Ta(" ",t.getReversedStatus()," "),Qs(1),xo("ngIf","INACTIVE"===t.status),Qs(1),xo("ngIf","ACTIVE"===t.status),Qs(1),xo("ngIf","INACTIVE"===t.status),Qs(1),xo("ngIf","INACTIVE"===t.status&&!1===t.asyncValidation),Qs(1),xo("ngIf","INACTIVE"===t.status&&!0===t.asyncValidation)}}function gR(t,e){if(1&t){const t=Ho();Do(0,"div",15),Do(1,"button",16),Wo("click",function(){return Re(t),Go().onCancel()}),Aa(2),nu(3,"translate"),Po(),Do(4,"button",17),Wo("click",function(){return Re(t),Go().onSubmit()}),Aa(5),nu(6,"translate"),Po(),Po()}if(2&t){const t=Go();Qs(2),Ta(" ",su(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),Qs(2),xo("disabled",t.loading),Qs(1),Ta(" ",su(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SUBMIT")," ")}}let mR=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.resourceService=i,this.groupService=n,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(t=>{this.resource=t,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 t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(pE),Ro(Ep),Ro(Tp))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(t,e){1&t&&(Do(0,"div"),Do(1,"h1",0),Aa(2),nu(3,"translate"),Po(),Lo(4,cR,1,0,"mat-spinner",1),Lo(5,fR,23,17,"div",2),Lo(6,gR,7,7,"div",3),Po()),2&t&&(la(e.theme),Qs(2),va(su(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")),Qs(2),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading),Qs(1),xo("ngIf",!e.loading))},directives:[wE,xh,cL,ME,iR,dk,Fk,oR,AE,gA],pipes:[iE],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),t})();function _R(t,e){if(1&t&&(Do(0,"div",5),Do(1,"mat-icon"),Aa(2),Po(),Po()),2&t){const t=Go();Qs(2),va(t.data.icon)}}function bR(t,e){if(1&t&&(Do(0,"div",6),Aa(1),Po()),2&t){const t=Go();Qs(1),Ta(" ",t.showTimestamp()," ")}}let yR=(()=>{class t{constructor(t,e){this.dialog=t,this.notificationStorageService=e,this.newNotification=!1,this.closeNotification=new lu,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 t=SE();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(SL,t).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function(t,e){return i=this,s=function*(){var i;yield(i=t,new Promise(t=>setTimeout(t,i))),e()},new((n=void 0)||(n=Promise))(function(t,e){function r(t){try{a(s.next(t))}catch(i){e(i)}}function o(t){try{a(s.throw(t))}catch(i){e(i)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n(function(t){t(i)})).then(r,o)}a((s=s.apply(i,[])).next())});var i,n,s}(this.data.delay,()=>{this.alreadyClosed||this.waiting||this.closeSelf()})}showTimestamp(){const[t,e]=this.data.timeStamp.split(":");return e.length<2?t+":0"+e:this.data.timeStamp}}return t.\u0275fac=function(e){return new(e||t)(Ro(bE),Ro(KE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"div"),Do(1,"div",0),Wo("click",function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()}),Lo(2,_R,3,1,"div",1),Do(3,"div",2),Aa(4),nu(5,"translate"),Po(),Lo(6,bR,2,1,"div",3),Do(7,"div",4),Wo("click",function(){return e.waiting=!0,e.doAction()}),Aa(8),Po(),Po(),Po()),2&t&&(Ca("notification ",e.inDialog?"":"mat-elevation-z7",""),ua("error","error"===e.data.type)("success","success"===e.data.type),Qs(2),xo("ngIf",null!==e.data.icon),Qs(2),Ta(" ",su(5,12,e.data.title)," "),Qs(2),xo("ngIf",e.inDialog),Qs(1),xo("hidden",e.alreadyPressed),Qs(1),Ta(" ",e.data.actionText," "))},directives:[xh,NC],pipes:[iE],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}"]}),t})();function wR(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"perun-web-apps-notification",2),Wo("closeNotification",function(){const e=Re(t).index;return Go().removeNotification(e)}),Po(),Po()}if(2&t){const t=e.$implicit;xo("@flyInOut",void 0),Qs(1),xo("data",t)("newNotification",!0)}}const MR=function(t){return{top:t}};let AR=(()=>{class t{constructor(t,e){this.notificator=t,this.notificationStorageService=e,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(t=>{this.processNotification(t)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}processNotification(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(t){this.notifications.splice(t,1)}}return t.\u0275fac=function(e){return new(e||t)(Ro(WE),Ro(KE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&Wo("resize",function(t){return e.getScreenSize(t)},!1,us)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(Do(0,"div",0),Lo(1,wR,2,3,"div",1),Po()),2&t&&(xo("ngStyle",Qc(2,MR,e.getNotificatorTop())),Qs(1),xo("ngForOf",e.notifications))},directives:[Fh,zh,yR],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width:768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;bottom:0}}"],data:{animation:[GE]}}),t})();const vR=["*",[["mat-toolbar-row"]]],TR=["*","mat-toolbar-row"];class kR{constructor(t){this._elementRef=t}}const SR=MM(kR);let CR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),ER=(()=>{class t extends SR{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(W_),Ro(Ll))},t.\u0275cmp=Yt({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&Tu(i,CR,5),2&t){let t;Au(t=ku())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&ua("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[po],ngContentSelectors:TR,decls:2,vars:0,template:function(t,e){1&t&&(Jo(vR),Qo(0),Qo(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),LR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[yM],yM]}),t})();const zR={provide:Nu,useFactory:function(t,e){return()=>{if(Gh(e)){const e=Array.from(t.querySelectorAll(`[class*=${RR}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(`${RR}ssr`)&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(i,"")})}}},deps:[Ll,Pu],multi:!0},RR="flex-layout-";let xR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[zR]}),t})();class OR{constructor(t=!1,e="all",i="",n="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=n,this.priority=s,this.property=""}clone(){return new OR(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let DR=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,i){const n=this.stylesheet.get(t);n?n.set(e,i):this.stylesheet.set(t,new Map([[e,i]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const i=this.stylesheet.get(t);let n="";if(i){const t=i.get(e);"number"!=typeof t&&"string"!=typeof t||(n=t+"")}return n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const PR={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},NR=new Ui("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>PR}),IR=new Ui("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),BR=new Ui("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function FR(t,e){return t=t?t.clone():new OR,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const HR=["row","column","row-reverse","column-reverse"];function qR(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let jR=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.styleBuilder=e,this.styler=i,this.marshal=n,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new v,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(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const i=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,i)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const i=this.styleBuilder,n=i.shouldCache;let s=this.styleCache.get(t);s&&n||(s=i.buildStyles(t,e),n&&this.styleCache.set(t,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),i.sideEffect(t,s,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[i,n]=this.styler.getFlowDirection(t);if(!n&&e){const e=function(t){let[e,i,n]=function(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return HR.find(t=>t===e)||(e=HR[0]),"inline"===i&&(i="inline"!==n?n:"",n="inline"),[e,qR(i),!!n]}(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(i);this.styler.applyStyleToElements(e,[t])}return i.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,i=this.nativeElement){this.styler.applyStyleToElement(i,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){!function(){throw new Error("invalid")}()},t.\u0275dir=Gt({type:t,features:[ae]}),t})();const YR=[{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}],WR="(orientation: portrait) and (max-width: 599.98px)",UR="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",KR="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",VR="(orientation: portrait) and (min-width: 840px)",XR="(orientation: landscape) and (min-width: 1280px)",GR={HANDSET:`${WR}, (orientation: landscape) and (max-width: 959.98px)`,TABLET:`${UR} , ${KR}`,WEB:`${VR}, ${XR} `,HANDSET_PORTRAIT:`${WR}`,TABLET_PORTRAIT:`${UR} `,WEB_PORTRAIT:`${VR}`,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:`${KR}`,WEB_LANDSCAPE:`${XR}`},$R=[{alias:"handset",priority:2e3,mediaQuery:GR.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:GR.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:GR.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:GR.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:GR.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:GR.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:GR.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:GR.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:GR.WEB_PORTRAIT,overlapping:!0}],JR=/(\.|-|_)/g;function QR(t){let e=t.length>0?t.charAt(0):"",i=t.length>1?t.slice(1):"";return e.toUpperCase()+i}const ZR=new Ui("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=ln(BR),e=ln(NR),i=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const i={};return t.forEach(t=>{i[t.alias]=t}),e.forEach(t=>{i[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e])}(i[t.alias],t):i[t.alias]=t}),(n=Object.keys(i).map(t=>i[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace(JR,"|").split("|").map(QR).join(""),t.overlapping=!!t.overlapping)}),n;var n}((e.disableDefaultBps?[]:YR).concat(e.addOrientationBps?$R:[]),i)}});function tx(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function ex(t,e){return(t.priority||0)-(e.priority||0)}let ix=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(ex)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let i=this.findByMap.get(t);return i||(i=this.items.find(e)||null,this.findByMap.set(t,i)),i||null}}return t.\u0275fac=function(e){return new(e||t)(un(ZR))},t.\u0275prov=dt({factory:function(){return new t(un(ZR))},token:t,providedIn:"root"}),t})(),nx=(()=>{class t{constructor(t,e,i){this._zone=t,this._platformId=e,this._document=i,this.source=new Fp(new OR(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,i)=>{e.matches&&t.push(i)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const i=this._observable$.pipe(Bd(i=>!e||t.indexOf(i.mediaQuery)>-1));return U(new b(e=>{const i=this.registerQuery(t);if(i.length){const t=i.pop();i.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()}),i)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],i=[];return function(t,e){const i=t.filter(t=>!sx[t]);if(i.length>0){const t=i.join(", ");try{const n=e.createElement("style");n.setAttribute("type","text/css"),n.styleSheet||n.appendChild(e.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`)),e.head.appendChild(n),i.forEach(t=>sx[t]=n)}catch(n){console.error(n)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new OR(e.matches,t)))};let n=this.registry.get(t);n||(n=this.buildMQL(t),n.addListener(e),this.pendingRemoveListenerFns.push(()=>n.removeListener(e)),this.registry.set(t,n)),n.matches&&i.push(new OR(!0,t))}),i}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,Gh(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(un($u),un(Pu),un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un($u),un(Pu),un(Ll))},token:t,providedIn:"root"}),t})();const sx={},rx={alias:"print",mediaQuery:"print",priority:1e3};let ox=(()=>{class t{constructor(t,e,i){this.breakpoints=t,this.layoutConfig=e,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new ax,this.deactivations=[]}withPrintQuery(t){return[...t,"print"]}isPrintEvent(t){return t.mediaQuery.startsWith("print")}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(tx)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),FR(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new OR(!0,"print"))),t.updateStyles())},i=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(i)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(tx))}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t)))}}return t.\u0275fac=function(e){return new(e||t)(un(ix),un(NR),un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un(ix),un(NR),un(Ll))},token:t,providedIn:"root"}),t})();class ax{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(rx),t.sort(tx),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith("print")}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function cx(t){for(let e in t){let i=t[e]||"";switch(e){case"display":t.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;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":t["-webkit-"+e]=i;break;case"flex-direction":i=i||"row",t["-webkit-flex-direction"]=i,t["flex-direction"]=i;break;case"order":t.order=t["-webkit-"+e]=isNaN(+i)?"0":i}}return t}let ux=(()=>{class t{constructor(t,e,i,n){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=i,this.layoutConfig=n}applyStyleToElement(t,e,i=null){let n={};"string"==typeof e&&(n[e]=i,e=n),n=this.layoutConfig.disableVendorPrefixes?e:cx(e),this._applyMultiValueStyleToElement(n,t)}applyStyleToElements(t,e=[]){const i=this.layoutConfig.disableVendorPrefixes?t:cx(t);e.forEach(t=>{this._applyMultiValueStyleToElement(i,t)})}getFlowDirection(t){let e=this.lookupStyle(t,"flex-direction");return[e||"row",this.lookupInlineStyle(t,"flex-direction")||$h(this._platformId)&&this._serverModuleLoaded?e:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return Gh(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,i=!1){let n="";return t&&((n=this.lookupInlineStyle(t,e))||(Gh(this._platformId)?i||(n=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(n=this._serverStylesheet.getStyleForElement(t,e)))),n?n.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(i=>{const n=t[i],s=Array.isArray(n)?n:[n];s.sort();for(let t of s)t=t?t+"":"",Gh(this._platformId)||!this._serverModuleLoaded?Gh(this._platformId)?e.style.setProperty(i,t):this._setServerStyle(e,i,t):this._serverStylesheet.addStyleToElement(e,i,t)})}_setServerStyle(t,e,i){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const n=this._readStyleAttribute(t);n[e]=i||"",this._writeStyleAttribute(t,n)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},i=t.getAttribute("style");if(i){const t=i.split(/;+/g);for(let i=0;i0){const t=n.indexOf(":");if(-1===t)throw new Error(`Invalid CSS style: ${n}`);e[n.substr(0,t).trim()]=n.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let i="";for(const n in e)e[n]&&(i+=n+":"+e[n]+";");t.setAttribute("style",i)}}return t.\u0275fac=function(e){return new(e||t)(un(DR),un(IR),un(Pu),un(NR))},t.\u0275prov=dt({factory:function(){return new t(un(DR),un(IR),un(Pu),un(NR))},token:t,providedIn:"root"}),t})();class lx{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}let hx=(()=>{class t{constructor(t,e,i){this.matchMedia=t,this.breakpoints=e,this.hook=i,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 v,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=FR(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(tx),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(tx),this.updateStyles()))}init(t,e,i,n,s=[]){dx(this.updateMap,t,e,i),dx(this.clearMap,t,e,n),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,s)}getValue(t,e,i){const n=this.elementMap.get(t);if(n){const t=void 0!==i?n.get(i):this.getActivatedValues(n,e);if(t)return t.get(e)}}hasValue(t,e){const i=this.elementMap.get(t);if(i){const t=this.getActivatedValues(i,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,i,n){let s=this.elementMap.get(t);if(s){const r=(s.get(n)||new Map).set(e,i);s.set(n,r),this.elementMap.set(t,s)}else s=(new Map).set(n,(new Map).set(e,i)),this.elementMap.set(t,s);const r=this.getValue(t,e);void 0!==r&&this.updateElement(t,e,r)}trackValue(t,e){return this.subject.asObservable().pipe(Bd(i=>i.element===t&&i.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const i=new Set(this.elementKeyMap.get(e));let n=this.getActivatedValues(t);n&&n.forEach((t,n)=>{this.updateElement(e,n,t),i.delete(n)}),i.forEach(i=>{if(n=this.getActivatedValues(t,i),n){const t=n.get(i);this.updateElement(e,i,t)}else this.clearElement(e,i)})})}clearElement(t,e){const i=this.clearMap.get(t);if(i){const n=i.get(e);n&&(n(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,i){const n=this.updateMap.get(t);if(n){const s=n.get(e);s&&(s(i),this.subject.next({element:t,key:e,value:i}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const i=this.elementMap.get(t);i&&(i.forEach((t,e)=>i.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const i=this.elementMap.get(t);if(i){const n=this.getActivatedValues(i,e);n&&(e?this.updateElement(t,e,n.get(e)):n.forEach((e,i)=>this.updateElement(t,i,e)))}}buildElementKeyMap(t,e){let i=this.elementKeyMap.get(t);i||(i=new Set,this.elementKeyMap.set(t,i)),i.add(e)}watchExtraTriggers(t,e,i){if(i&&i.length){let n=this.watcherMap.get(t);if(n||(n=new Map,this.watcherMap.set(t,n)),!n.get(e)){const s=U(...i).subscribe(()=>{const i=this.getValue(t,e);this.updateElement(t,e,i)});n.set(e,s)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let n=0;nt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(Af(this.hook.interceptEvents(this)),Bd(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(un(nx),un(ix),un(ox))},t.\u0275prov=dt({factory:function(){return new t(un(nx),un(ix),un(ox))},token:t,providedIn:"root"}),t})();function dx(t,e,i,n){if(void 0!==n){let s=t.get(e);s||(s=new Map,t.set(e,s)),s.set(i,n)}}new Map,new WeakMap;class px{constructor(t,e,i=!0){this.key=t,this.value=e,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function fx(t){let e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function gx(t){const[e,...i]=t.split(":");return new px(e,i.join(":"))}function mx(t,e){return e.key&&(t[e.key]=e.value),t}let _x=(()=>{class t extends jR{constructor(t,e,i,n,s,r,o,a,c){super(t,null,e,i),this.sanitizer=n,this.ngStyleInstance=o,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new Fh(t,s,r)),this.init();const u=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(u),this.isServer=a&&$h(c)}updateWithValue(t){const e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(t){const e=t=>this.sanitizer.sanitize(Qn.STYLE,t)||"";if(t)switch(fx(t)){case"string":return wx(function(t,e=";"){return String(t).trim().split(e).map(t=>t.trim()).filter(t=>""!==t)}(t),e);case"array":return wx(t,e);case"set":default:return function(t,e){let i=[];return"set"===fx(t)?t.forEach(t=>i.push(t)):Object.keys(t).forEach(e=>{i.push(`${e}:${t[e]}`)}),function(t,e){return t.map(gx).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(mx,{})}(i,e)}(t,e)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(ux),Ro(hx),Ro(Ed),Ro(yc),Ro(ec),Ro(Fh,10),Ro(IR),Ro(Pu))},t.\u0275dir=Gt({type:t,features:[po]}),t})();const bx=["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 yx=(()=>{class t extends _x{constructor(){super(...arguments),this.inputs=bx}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,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:[po]}),t})();function wx(t,e){return t.map(gx).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(mx,{})}let Mx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[xR]]}),t})();const Ax=function(t){return{color:t}};function vx(t,e){if(1&t&&(Do(0,"button",8),nu(1,"translate"),Do(2,"mat-icon",4),Aa(3," apps "),Po(),Po()),2&t){const t=Go();xo("matMenuTriggerFor",zo(2))("matTooltip",su(1,3,"NAV.OTHER_APPLICATIONS")),Qs(2),xo("ngStyle",Qc(5,Ax,t.iconColor))}}function Tx(t,e){if(1&t){const t=Ho();Do(0,"button",2),Wo("click",function(){return Re(t),Go().onLogOut()}),Aa(1),nu(2,"translate"),Po()}2&t&&(Qs(1),va(su(2,1,"NAV.LOGOUT")))}let kx=(()=>{class t{constructor(t,e,i,n){this.authService=t,this.authzResolverService=e,this.notificator=i,this.translateService=n}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return t.\u0275fac=function(e){return new(e||t)(Ro(FE),Ro(vp),Ro(WE),Ro(eE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(t,e){if(1&t&&(Lo(0,vx,4,7,"button",0),Do(1,"mat-menu",null,1),Do(3,"button",2),Wo("click",function(){return e.redirectToUrl()}),Do(4,"span"),Aa(5),Po(),Po(),Po(),Do(6,"button",3),Do(7,"mat-icon",4),Aa(8," person "),Po(),Do(9,"span",5),Aa(10),Po(),Po(),Do(11,"mat-menu",null,6),Lo(13,Tx,3,3,"button",7),Po()),2&t){const t=zo(12);xo("ngIf",e.url),Qs(5),va(e.label),Qs(1),xo("matMenuTriggerFor",t),Qs(1),xo("ngStyle",Qc(11,Ax,e.iconColor)),Qs(2),xo("ngStyle",Qc(13,Ax,e.textColor)),Qs(1),Sa(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," "),Qs(3),xo("ngIf",e.logoutEnabled)}},directives:[xh,gC,hC,gA,yC,NC,Fh,PS],pipes:[iE],styles:["@media (max-width:991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),t})();const Sx=function(t){return{color:t}};function Cx(t,e){if(1&t){const t=Ho();Do(0,"button",5),Wo("click",function(){return Re(t),Go().onToggleSidenav()}),Do(1,"mat-icon"),Aa(2,"menu"),Po(),Po()}if(2&t){const t=Go();xo("ngStyle",Qc(1,Sx,t.iconColor))}}const Ex=function(t){return{background:t}},Lx=function(){return[]},zx=function(){return["/"]};let Rx=(()=>{class t{constructor(t,e,i,n,s,r){this.storeService=t,this.sanitizer=e,this.translate=i,this.utilsService=n,this.authzResolverService=s,this.authService=r,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.sidenavToggle=new lu,this.hideToggle=!1,this.disableLogo=!1,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.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.translate.onLangChange.subscribe(t=>{this.label=this.storeService.get(`header_label_${t.lang}`),this.adminLabel=this.storeService.get(`admin_gui_label_${t.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 t in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(t)&&(this.activeLink=!0);this.activeLink&&this.utilsService.getAppsConfig().subscribe(t=>{this.adminGuiUrl=t.brands[0].newApps.admin?t.brands[0].newApps.admin:null})}}return t.\u0275fac=function(e){return new(e||t)(Ro(BE),Ro(Ed),Ro(eE),Ro(zp),Ro(vp),Ro(FE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-header"]],inputs:{hideToggle:"hideToggle",disableLogo:"disableLogo"},outputs:{sidenavToggle:"sidenavToggle"},decls:6,vars:18,consts:[[1,"sticky-top","header-container",3,"ngStyle"],["mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"ml-3",3,"innerHTML","routerLink"],[1,"ml-3","mt-auto","mb-auto","hide-label",3,"ngStyle"],["id","nav-menu-user-info",1,"justify-content-end",3,"url","label","user","logoutEnabled","iconColor","textColor"],["mat-icon-button","",3,"ngStyle","click"]],template:function(t,e){1&t&&(Do(0,"mat-toolbar",0),Lo(1,Cx,3,3,"button",1),No(2,"a",2),Do(3,"p",3),Aa(4),Po(),No(5,"perun-web-apps-header-menu",4),Po()),2&t&&(xo("ngStyle",Qc(12,Ex,e.bgColor)),Qs(1),xo("ngIf",!e.hideToggle),Qs(1),xo("innerHTML",e.logo,Zn)("routerLink",e.disableLogo?Jc(14,Lx):Jc(15,zx)),Qs(1),xo("ngStyle",Qc(16,Sx,e.textColor)),Qs(1),va(e.label),Qs(1),xo("url",e.adminGuiUrl)("label",e.adminLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor))},directives:[ER,Fh,yx,xh,s_,kx,gA,NC],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}}"]}),t})();function xx(t){return e=>e.lift(new Ox(t))}class Ox{constructor(t){this.value=t}call(t,e){return e.subscribe(new Dx(t,this.value))}}class Dx extends f{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}const Px=["*"];function Nx(t,e){if(1&t){const t=Ho();Do(0,"div",2),Wo("click",function(){return Re(t),Go()._onBackdropClicked()}),Po()}2&t&&ua("mat-drawer-shown",Go()._isShowingBackdrop())}function Ix(t,e){1&t&&(Do(0,"mat-drawer-content"),Qo(1,2),Po())}const Bx=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Fx=["mat-drawer","mat-drawer-content","*"];function Hx(t,e){if(1&t){const t=Ho();Do(0,"div",2),Wo("click",function(){return Re(t),Go()._onBackdropClicked()}),Po()}2&t&&ua("mat-drawer-shown",Go()._isShowingBackdrop())}function qx(t,e){1&t&&(Do(0,"mat-sidenav-content",3),Qo(1,2),Po())}const jx=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Yx=["mat-sidenav","mat-sidenav-content","*"],Wx=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",Ux={transformDrawer:Bb("transform",[Yb("open, open-instant",jb({transform:"none",visibility:"visible"})),Yb("void",jb({"box-shadow":"none",visibility:"hidden"})),Ub("void => open-instant",Fb("0ms")),Ub("void <=> open, open-instant => void",Fb("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Kx=new Ui("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Vx=new Ui("MAT_DRAWER_CONTAINER");let Xx=(()=>{class t extends rv{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(Ro(Tc),Ro(rt(()=>$x)),Ro(Qa),Ro(sv),Ro($u))},t.\u0275cmp=Yt({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&ca("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[po],ngContentSelectors:Px,decls:1,vars:0,template:function(t,e){1&t&&(Jo(),Qo(0))},encapsulation:2,changeDetection:0}),t})(),Gx=(()=>{class t{constructor(t,e,i,n,s,r,o){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=s,this._doc=r,this._container=o,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new v,this._animationEnd=new v,this._animationState="void",this.openedChange=new lu(!0),this._openedStream=this.openedChange.pipe(Bd(t=>t),P(()=>{})),this.openedStart=this._animationStarted.pipe(Bd(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),xx(void 0)),this._closedStream=this.openedChange.pipe(Bd(t=>!t),P(()=>{})),this.closedStart=this._animationStarted.pipe(Bd(t=>t.fromState!==t.toState&&"void"===t.toState),xx(void 0)),this._destroyed=new v,this.onPositionChanged=new lu,this._modeChanged=new v,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{_A(this._elementRef.nativeElement,"keydown").pipe(Bd(t=>27===t.keyCode&&!this.disableClose&&!S_(t)),FA(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(RA((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=N_(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=N_(t)}get opened(){return this._opened}set opened(t){this.toggle(N_(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(Zp(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(Mb),Ro(Lb),Ro(W_),Ro($u),Ro(Ll,8),Ro(Vx,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&Uo("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(So("align",null),La("@transform",e._animationState),ua("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:Px,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(Jo(),Do(0,"div",0),Qo(1),Po())},directives:[rv],encapsulation:2,data:{animation:[Ux.transformDrawer]},changeDetection:0}),t})(),$x=(()=>{class t{constructor(t,e,i,n,s,r=!1,o){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=o,this._drawers=new du,this.backdropClick=new lu,this._destroyed=new v,this._doCheckSubject=new v,this._contentMargins={left:null,right:null},this._contentMarginChanges=new v,t&&t.change.pipe(FA(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(FA(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=N_(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:N_(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(nf(this._allDrawers),FA(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(nf(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(x_(10),FA(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(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Bd(t=>t.fromState!==t.toState),FA(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"!==t.mode&&t.openedChange.pipe(FA(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(FA(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Zp(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(FA(U(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),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(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(Ro(Db,8),Ro(Qa),Ro($u),Ro(Tc),Ro(ov),Ro(Kx),Ro(aM,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,Xx,5),Tu(i,Gx,5)),2&t){let t;Au(t=ku())&&(e._content=t.first),Au(t=ku())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&vu(Xx,5),2&t){let t;Au(t=ku())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&ua("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ua([{provide:Vx,useExisting:t}])],ngContentSelectors:Fx,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(t,e){1&t&&(Jo(Bx),Lo(0,Nx,1,2,"div",0),Qo(1),Qo(2,1),Lo(3,Ix,2,0,"mat-drawer-content",1)),2&t&&(xo("ngIf",e.hasBackdrop),Qs(3),xo("ngIf",!e._content))},directives:[xh,Xx],styles:[Wx],encapsulation:2,changeDetection:0}),t})(),Jx=(()=>{class t extends Xx{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Tc),Ro(rt(()=>Zx)),Ro(Qa),Ro(sv),Ro($u))},t.\u0275cmp=Yt({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&ca("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[po],ngContentSelectors:Px,decls:1,vars:0,template:function(t,e){1&t&&(Jo(),Qo(0))},encapsulation:2,changeDetection:0}),t})(),Qx=(()=>{class t extends Gx{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=N_(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=I_(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=I_(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(So("align",null),ca("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),ua("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[po],ngContentSelectors:Px,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(Jo(),Do(0,"div",0),Qo(1),Po())},directives:[rv],encapsulation:2,data:{animation:[Ux.transformDrawer]},changeDetection:0}),t})(),Zx=(()=>{class t extends $x{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,Jx,5),Tu(i,Qx,5)),2&t){let t;Au(t=ku())&&(e._content=t.first),Au(t=ku())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&ua("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ua([{provide:Vx,useExisting:t}]),po],ngContentSelectors:Yx,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(Jo(jx),Lo(0,Hx,1,2,"div",0),Qo(1),Qo(2,1),Lo(3,qx,2,0,"mat-sidenav-content",1)),2&t&&(xo("ngIf",e.hasBackdrop),Qs(3),xo("ngIf",!e._content))},directives:[xh,Jx,rv],styles:[Wx],encapsulation:2,changeDetection:0}),t})(),tO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Xh,yM,U_,av],av,yM]}),t})(),eO=(()=>{class t{constructor(t){this.store=t}getSideMenuItems(){const t=this.store.get("displayed_tabs"),e=[];return t.forEach(t=>{switch(t){case"profile":e.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":e.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":e.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":e.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":e.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":e.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"settings":e.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.get("external_services").forEach(t=>{const i={icon:"insert_link",link:t.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};this.store.get("supportedLanguages").forEach(e=>{var n;i[`label_${e}`]=null!==(n=t[`label_${e}`])&&void 0!==n?n:t.label_en}),e.push(i)}),e}}return t.\u0275fac=function(e){return new(e||t)(un(BE))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),iO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[yM],yM]}),t})();const nO=["*"],sO='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n',rO=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],oO=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class aO{}const cO=wM(AM(aO));class uO{}const lO=AM(uO),hO=new Ui("MatList"),dO=new Ui("MatNavList");let pO=(()=>{class t extends cO{constructor(){super(...arguments),this._stateChanges=new v}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[Ua([{provide:dO,useExisting:t}]),po,ae],ngContentSelectors:nO,decls:1,vars:0,template:function(t,e){1&t&&(Jo(),Qo(0))},styles:[sO],encapsulation:2,changeDetection:0}),t})(),fO=(()=>{class t extends cO{constructor(t){super(),this._elementRef=t,this._stateChanges=new v,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa))},t.\u0275cmp=Yt({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[Ua([{provide:hO,useExisting:t}]),po,ae],ngContentSelectors:nO,decls:1,vars:0,template:function(t,e){1&t&&(Jo(),Qo(0))},styles:[sO],encapsulation:2,changeDetection:0}),t})(),gO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),mO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),_O=(()=>{class t extends lO{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new v,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(FA(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=N_(t)}ngAfterContentInit(){!function(t,e,i="mat"){t.changes.pipe(nf(t)).subscribe(({length:t})=>{BM(e,`${i}-2-line`,!1),BM(e,`${i}-3-line`,!1),BM(e,`${i}-multi-line`,!1),2===t||3===t?BM(e,`${i}-${t}-line`,!0):t>3&&BM(e,`${i}-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 t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(Tc),Ro(dO,8),Ro(hO,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,gO,5),Tu(i,mO,5),Tu(i,IM,5)),2&t){let t;Au(t=ku())&&(e._avatar=t.first),Au(t=ku())&&(e._icon=t.first),Au(t=ku())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&ua("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[po],ngContentSelectors:oO,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(t,e){1&t&&(Jo(rO),Do(0,"div",0),No(1,"div",1),Qo(2),Do(3,"div",2),Qo(4,1),Po(),Qo(5,2),Po()),2&t&&(Qs(1),xo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[VM],encapsulation:2,changeDetection:0}),t})(),bO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[FM,XM,yM,$M,Xh],FM,yM,$M,iO]}),t})(),yO=(()=>{class t{transform(t,e,i){return t[`${i}_${e}`]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"localisedText",type:t,pure:!0}),t})();const wO=function(t){return{color:t}};function MO(t,e){if(1&t){const t=Ho();Do(0,"mat-list-item",2),Wo("click",function(){const e=Re(t).$implicit,i=Go();return e.external?i.goToURL(e.link):i.shouldHideMenu()}),Do(1,"mat-icon",3),Aa(2),Po(),Do(3,"span",4),Aa(4),nu(5,"localisedText"),nu(6,"translate"),nu(7,"customTranslate"),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();ua("activated",i.isActive(t.activatedRegex)),Zo("routerLink",t.external?null:t.link),xo("ngStyle",Qc(16,wO,i.textColor)),Qs(1),xo("ngStyle",Qc(18,wO,i.iconColor)),Qs(1),va(t.icon),Qs(2),va(t.external?ou(5,7,t,i.lang,"label"):su(6,11,ru(7,13,t.label,i.lang)))}}let AO=(()=>{class t{constructor(t,e,i,n){this.sideMenuItemService=t,this.storeService=e,this.router=i,this.translateService=n,this.items=[],this.lang="en",this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.iconColor=this.storeService.get("theme","sidemenu_item_icon_color"),this.currentUrl=i.url,i.events.subscribe(t=>{t instanceof zf&&(this.currentUrl=t.url)})}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{const{lang:e}=t;this.lang=e});const t=this.storeService.get("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(e=>t.includes(e.tabName))}isActive(t){return new RegExp(t).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}goToURL(t){window.open(t,"_blank")}}return t.\u0275fac=function(e){return new(e||t)(Ro(eO),Ro(BE),Ro(i_),Ro(eE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["disableRipple","","class","side-menu-item-height",3,"activated","ngStyle","routerLink","click",4,"ngFor","ngForOf"],["disableRipple","",1,"side-menu-item-height",3,"ngStyle","routerLink","click"],[3,"ngStyle"],[1,"nav-caption","ml-3"]],template:function(t,e){1&t&&(Do(0,"mat-nav-list",0),Lo(1,MO,8,20,"mat-list-item",1),Po()),2&t&&(Qs(1),xo("ngForOf",e.items))},directives:[pO,zh,_O,Fh,yx,n_,NC],pipes:[yO,iE,QE],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}"]}),t})();function vO(t,e){if(1&t&&(Do(0,"span",1),Do(1,"a",2),Aa(2),Po(),Po()),2&t){const t=e.$implicit;Qs(1),xo("routerLink",t.routerLink),Qs(1),va(t.label)}}let TO=(()=>{class t{constructor(t,e,i){this.router=t,this.activatedRoute=e,this.translate=i,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}ngOnInit(){this.router.events.pipe(Bd(t=>t instanceof zf)).subscribe(()=>{this.menuItems=[],this.createBreadcrumbs(this.activatedRoute.root)})}createBreadcrumbs(e,i=""){const n=e.children;0!==n.length&&n.forEach(e=>{const n=e.snapshot.url.map(t=>t.path).join("/");""!==n&&(i+=`/${n}`);const s=this.translate.instant(e.snapshot.data[t.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:i}),this.createBreadcrumbs(e,i)})}}return t.ROUTE_DATA_BREADCRUMB="breadcrumb",t.\u0275fac=function(e){return new(e||t)(Ro(i_),Ro(Dg),Ro(eE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&Lo(0,vO,3,2,"span",0),2&t&&xo("ngForOf",e.menuItems)},directives:[zh,s_],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}']}),t})();function kO(t,e){1&t&&(Do(0,"mat-error"),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let SO=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.storeService=s,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(t=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)),this.dialogRef.close()})}getFullEmailBody(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(306).i8}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(eE),Ro(WE),Ro(Sp),Ro(BE))},t.\u0275cmp=Yt({type:t,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(t,e){if(1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),Po(),Do(3,"div",1),Do(4,"mat-form-field"),Do(5,"mat-label"),Aa(6),nu(7,"translate"),Po(),Do(8,"input",2,3),Wo("ngModelChange",function(t){return e.subject=t}),Po(),Lo(10,kO,3,3,"mat-error",4),Po(),Do(11,"mat-form-field"),Do(12,"mat-label"),Aa(13),nu(14,"translate"),Po(),Do(15,"textarea",5),Wo("ngModelChange",function(t){return e.message=t}),nu(16,"translate"),Aa(17," "),Po(),Do(18,"mat-hint"),Aa(19),nu(20,"translate"),Po(),Po(),Po(),Do(21,"div",6),Do(22,"div",7),Do(23,"button",8),Wo("click",function(){return e.close()}),Aa(24),nu(25,"translate"),Po(),Do(26,"button",9),Wo("click",function(){return e.sendBugReport()}),Aa(27),nu(28,"translate"),Po(),Po(),Po()),2&t){const t=zo(9);Qs(1),va(su(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),Qs(5),va(su(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),Qs(2),xo("ngModel",e.subject),Qs(2),xo("ngIf",t.invalid),Qs(3),va(su(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),Qs(2),Zo("placeholder",su(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),xo("ngModel",e.message),Qs(4),va(su(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),Qs(5),Ta(" ",su(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),Qs(2),xo("disabled",t.invalid),Qs(1),Ta(" ",su(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[wE,ME,xT,vT,yL,qT,$k,dk,Fk,xh,AT,AE,gA,_T],pipes:[iE],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),CO=(()=>{class t{transform(t,e){return t["link_"+e]||t.link_en}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"localisedLink",type:t,pure:!0}),t})();const EO=function(t){return{color:t}};function LO(t,e){if(1&t&&(Do(0,"i",16),Aa(1),Po()),2&t){const t=Go().$implicit,e=Go(3);xo("ngStyle",Qc(2,EO,e.linksTextColor)),Qs(1),Ta(" ",t.icon," ")}}function zO(t,e){if(1&t){const t=Ho();Do(0,"span",17),Wo("click",function(){Re(t);const e=Go().$implicit;return Go(3).openDialog(e.dialog)}),Aa(1),nu(2,"localisedText"),Po()}if(2&t){const t=Go().$implicit,e=Go(3);xo("ngStyle",Qc(6,EO,e.linksTextColor)),Qs(1),Ta("",ou(2,2,t,e.language,"label")," ")}}function RO(t,e){if(1&t&&(Do(0,"a",18),nu(1,"localisedLink"),Aa(2),nu(3,"localisedText"),Po()),2&t){const t=Go().$implicit,e=Go(3);xo("href",ru(1,3,t,e.language),ts)("ngStyle",Qc(10,EO,e.linksTextColor)),Qs(2),va(ou(3,6,t,e.language,"label"))}}function xO(t,e){if(1&t&&(Do(0,"span",19),Aa(1),nu(2,"localisedText"),Po()),2&t){const t=Go().$implicit,e=Go(3);xo("ngStyle",Qc(6,EO,e.linksTextColor)),Qs(1),va(ou(2,2,t,e.language,"label"))}}function OO(t,e){if(1&t&&(Do(0,"div",11),Lo(1,LO,2,4,"i",12),Lo(2,zO,3,8,"span",13),Lo(3,RO,4,12,"a",14),nu(4,"localisedLink"),Lo(5,xO,3,8,"span",15),nu(6,"localisedLink"),Po()),2&t){const t=e.$implicit,i=Go(3);Qs(1),xo("ngIf",t.icon),Qs(1),xo("ngIf",t.dialog),Qs(1),xo("ngIf",ru(4,4,t,i.language)&&!t.dialog),Qs(2),xo("ngIf",!ru(6,7,t,i.language)&&!t.dialog)}}function DO(t,e){if(1&t&&(Do(0,"div"),Lo(1,OO,7,10,"div",10),Po()),2&t){const t=Go().$implicit;Qs(1),xo("ngForOf",t.elements)}}function PO(t,e){if(1&t&&(Do(0,"div",7),Do(1,"h6",8),Aa(2),nu(3,"localisedText"),Po(),Lo(4,DO,2,1,"div",9),Po()),2&t){const t=e.$implicit,i=Go();Qs(1),xo("ngStyle",Qc(7,EO,i.headersTextColor)),Qs(1),Ta(" ",ou(3,3,t,i.language,"title")," "),Qs(2),xo("ngIf",t.elements)}}function NO(t,e){if(1&t&&(Do(0,"span"),Do(1,"a",6),Aa(2),Po(),Po()),2&t){const t=e.$implicit,i=e.index,n=Go();Qs(1),xo("href",t.url,ts)("ngStyle",Qc(3,EO,n.copyrightTextColor)),Qs(1),va(i?", "+t.name:t.name)}}const IO=function(t){return{background:t}};let BO=(()=>{class t{constructor(t,e,i){this.storeService=t,this.translateService=e,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),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.footerHeight=new lu}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{this.language=t.lang}),this.version=i(306).i8,this.items=this.storeService.get("footer","columns"),this.copyrightItems=this.storeService.get("footer","copyright_items"),this.getHeight()}openDialog(t){const e=SE();switch(t){case"reportIssue":e.width="550px",this.dialog.open(SO,e)}}getHeight(){let t=1;for(const e of this.items)t=t{class t{constructor(t,e){this.storeService=t,this.sanitizer=e,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){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"):"",this.logoPadding="admin-gui"===this.application?this.storeService.get("logo_padding"):""}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return t.\u0275fac=function(e){return new(e||t)(Ro(BE),Ro(Ed))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],["style"," display: flex; flex-direction: row;",4,"ngIf"],["style","padding-top: 16px",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"],[3,"ngStyle"],[1,"logo-container",3,"innerHTML","ngStyle"],[2,"display","flex","flex-direction","row"],[1,"router-icon-scale",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[2,"padding-top","16px"],[1,"ml-3",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(t,e){1&t&&(Do(0,"div",0),Lo(1,qO,2,6,"div",1),Lo(2,jO,3,1,"div",2),Lo(3,YO,2,1,"div",3),Lo(4,UO,2,4,"p",4),Po(),Do(5,"div",5),Do(6,"div",6),Do(7,"div",7),No(8,"router-outlet"),Po(),Do(9,"div",8),No(10,"perun-web-apps-footer"),Po(),Po(),Po()),2&t&&(xo("ngStyle",Zc(6,KO,e.headerBackgroundColor,e.headerTextColor)),Qs(1),xo("ngIf","admin-gui"===e.application),Qs(1),xo("ngIf","publications"===e.application),Qs(1),xo("ngIf","user-profile"===e.application),Qs(1),xo("ngIf",!!e.headerTitle),Qs(2),xo("ngStyle",Zc(9,VO,e.getContentInnerMinHeight(),e.contentBackgroundColor)))},directives:[Fh,xh,o_,BO,NC],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}.router-icon-scale[_ngcontent-%COMP%]{transform:scale(.75);margin-top:.3rem}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}"]}),t})();const GO=function(t){return{background:t}},$O=function(t){return{"min-height":t}};function JO(t,e){if(1&t){const t=Ho();No(0,"perun-web-apps-notificator"),Do(1,"div",2),Do(2,"perun-web-apps-header",3),Wo("sidenavToggle",function(){return Re(t),zo(5).toggle()}),Po(),Do(3,"mat-sidenav-container"),Do(4,"mat-sidenav",4,5),No(6,"perun-web-apps-side-menu",6),Po(),Do(7,"mat-sidenav-content",7),Do(8,"div",8),No(9,"perun-web-apps-breadcrumbs"),No(10,"router-outlet"),Po(),Do(11,"perun-web-apps-footer",9),Wo("footerHeight",function(e){return Re(t),Go().setContentHeight(e)}),Po(),Po(),Po(),Po()}if(2&t){const t=zo(5),e=Go();Qs(4),xo("mode",e.sidebarMode)("ngStyle",Qc(6,GO,e.sideMenuBgColor))("opened",!e.isMobile()),Qs(2),xo("sideNav",t),Qs(1),xo("ngStyle",Qc(8,GO,e.contentBackgroundColor)),Qs(1),xo("ngStyle",Qc(10,$O,e.contentHeight))}}function QO(t,e){1&t&&No(0,"perun-web-apps-login-screen-base",10),2&t&&xo("application","user-profile")}let ZO=(()=>{class t{constructor(t,e,i,n,s){this.store=t,this.attributesManagerService=e,this.translateService=i,this.initAuth=n,this.changeDetector=s,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.getScreenSize()}ngOnInit(){this.isLoginScreenShown=this.initAuth.isLoginScreenShown(),this.isLoginScreenShown||this.attributesManagerService.getUserAttributes(this.store.getPerunPrincipal().userId).subscribe(t=>{const e=t.find(t=>"preferredLanguage"===t.friendlyName);e&&e.value&&this.translateService.use(e.value)})}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}isMobile(){return window.innerWidth<=t.minWidth}setContentHeight(t){this.contentHeight="calc(100vh - 84px - "+t+"px)",this.changeDetector.detectChanges()}}return t.minWidth=992,t.\u0275fac=function(e){return new(e||t)(Ro(BE),Ro(Ap),Ro(eE),Ro(qE),Ro(Tc))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-root"]],hostBindings:function(t,e){1&t&&Wo("resize",function(t){return e.getScreenSize(t)},!1,us)},decls:2,vars:2,consts:[[3,"ngIf"],[3,"application",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"],[3,"footerHeight"],[3,"application"]],template:function(t,e){1&t&&(Lo(0,JO,12,12,"ng-template",0),Lo(1,QO,1,1,"perun-web-apps-login-screen-base",1)),2&t&&(xo("ngIf",!e.isLoginScreenShown),Qs(1),xo("ngIf",e.isLoginScreenShown))},directives:[xh,AR,Rx,Zx,Qx,Fh,yx,AO,Jx,TO,o_,BO,XO],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}"]}),t})();var tD=i(9355);function eD(t,e){if(1&t){const t=Ho();Do(0,"button",15),Wo("click",function(){Re(t);const e=Go().index;return Go().removeValue(e)}),Do(1,"mat-icon"),Aa(2," indeterminate_check_box "),Po(),Po()}}function iD(t,e){if(1&t){const t=Ho();Do(0,"div",9),Do(1,"mat-form-field",10),No(2,"label",11),Do(3,"input",12),Wo("click",function(){const e=Re(t).index,i=Go();return i.readonly&&i.attribute.displayName&&i.showValue(i.keys[e],i.attribute.displayName)})("ngModelChange",function(e){const i=Re(t).index;return Go().keys[i]=e}),Po(),Po(),Do(4,"mat-form-field",10),No(5,"label",11),Do(6,"input",13),Wo("click",function(){const e=Re(t).$implicit,i=Go();return i.readonly&&void 0!==i.attribute.displayName&&i.showValue(e,i.attribute.displayName)})("ngModelChange",function(e){const i=Re(t).index;return Go().values[i]=e}),Po(),Po(),Lo(7,eD,3,0,"button",14),Po()}if(2&t){const t=e.index,i=Go();Qs(1),Zo("appearance",i.readonly?"none":"standard"),Qs(1),ea("for","",i.attribute.id,"-key-",t,""),Qs(1),ua("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),ea("id","",i.attribute.id,"-key-",t,""),ta("name","key-",t,""),xo("ngModel",i.keys[t])("readonly",i.readonly),Qs(1),Zo("appearance",i.readonly?"none":"standard"),Qs(1),ea("for","",i.attribute.id,"-value-",t,""),Qs(1),ua("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),ta("name","value-",t,""),ea("id","",i.attribute.id,"-value-",t,""),xo("readonly",i.readonly)("ngModel",i.values[t]),Qs(1),xo("ngIf",!i.readonly)}}function nD(t,e){1&t&&(Do(0,"mat-icon"),Aa(1,"more_horiz"),Po())}function sD(t,e){1&t&&(Do(0,"mat-icon"),Aa(1,"keyboard_arrow_up"),Po())}function rD(t,e){if(1&t){const t=Ho();Do(0,"button",16),Wo("click",function(){return Re(t),Go().onShowChange()}),Lo(1,nD,2,0,"mat-icon",17),Lo(2,sD,2,0,"mat-icon",17),Po()}if(2&t){const t=Go();Qs(1),xo("ngIf",!t.showMore),Qs(1),xo("ngIf",t.showMore)}}function oD(t,e){if(1&t){const t=Ho();Do(0,"button",18),Wo("click",function(){return Re(t),Go().addValue()}),Do(1,"mat-icon"),Aa(2," add_box "),Po(),Po()}}let aD=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(void 0!==this.attribute.value){const t=this.attribute.value;for(const[e,i]of Object.entries(t))this.keys.push(e),this.values.push(i)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=CE(this.attribute))}customTrackBy(t){return t}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(t){this.keys.splice(t,1),this.values.splice(t,1)}updateAttribute(){const t={};for(let e=0;ee.defaultItemsShown),Qs(1),xo("ngIf",!e.readonly))},directives:[Hk,pk,Nk,zh,PS,xh,xT,yL,qT,$k,dk,Fk,gA,NC],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}"]}),t})();const cD=["input"],uD=function(t){return{enterDuration:t}},lD=["*"],hD=new Ui("mat-checkbox-default-options",{providedIn:"root",factory:dD});function dD(){return{color:"accent",clickAction:"check-indeterminate"}}let pD=0;const fD=dD(),gD={provide:BT,useExisting:rt(()=>yD),multi:!0};class mD{}class _D{constructor(t){this._elementRef=t}}const bD=vM(MM(AM(wM(_D))));let yD=(()=>{class t extends bD{constructor(t,e,i,n,s,r,o){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=r,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++pD,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new lu,this.indeterminateChange=new lu,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||fD,this.color=this.defaultColor=this._options.color||fD.color,this.tabIndex=parseInt(s)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=N_(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=N_(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=N_(t),e&&(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(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new mD;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(Tc),Ro(Lb),Ro($u),Yi("tabindex"),Ro(aM,8),Ro(hD,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(vu(cD,5),vu(VM,5)),2&t){let t;Au(t=ku())&&(e._inputElement=t.first),Au(t=ku())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(Ea("id",e.id),So("tabindex",null),ua("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ua([gD]),po],ngContentSelectors:lD,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",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(t,e){if(1&t&&(Jo(),Do(0,"label",0,1),Do(2,"span",2),Do(3,"input",3,4),Wo("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),Po(),Do(5,"span",5),No(6,"span",6),Po(),No(7,"span",7),Do(8,"span",8),ri(),Do(9,"svg",9),No(10,"path",10),Po(),oi(),No(11,"span",11),Po(),Po(),Do(12,"span",12,13),Wo("cdkObserveContent",function(){return e._onLabelTextChange()}),Do(14,"span",14),Aa(15,"\xa0"),Po(),Qo(16),Po(),Po()),2&t){const t=zo(1),i=zo(13);So("for",e.inputId),Qs(2),ua("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),Qs(1),xo("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),So("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),Qs(2),xo("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Qc(19,uD,"NoopAnimations"===e._animationMode?0:150))}},directives:[VM,rb],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),wD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})(),MD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[XM,yM,ob,wD],yM,wD]}),t})();function AD(t,e){if(1&t){const t=Ho();Do(0,"mat-checkbox",2),Wo("change",function(){return Re(t),Go()._sendEventToParent()})("ngModelChange",function(e){return Re(t),Go().attribute.value=e}),Po()}2&t&&xo("ngModel",Go().attribute.value)}function vD(t,e){if(1&t&&(Do(0,"mat-label"),Aa(1),Po()),2&t){const t=Go();Qs(1),va(t.attribute.value)}}let TD=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent=new lu}ngOnInit(){this.readonly||(this.readonly=CE(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"div"),Lo(1,AD,1,1,"mat-checkbox",0),Lo(2,vD,2,1,"mat-label",1),Po()),2&t&&(Qs(1),xo("ngIf",!e.readonly),Qs(1),xo("ngIf",e.readonly))},directives:[xh,yD,dk,Fk,vT],styles:[""]}),t})();function kD(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function SD(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function CD(t,e){const i=e?"":"none";SD(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function ED(t,e){const i=t.style;i.position=e?"":"fixed",i.top=i.opacity=e?"":"0",i.left=e?"":"-999em"}function LD(t,e){return e?t+" "+e:t}function zD(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function RD(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function xD(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function OD(t,e,i){const{top:n,bottom:s,left:r,right:o}=t;return i>=n&&i<=s&&e>=r&&e<=o}function DD(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function PD(t,e,i,n){const{top:s,right:r,bottom:o,left:a,width:c,height:u}=t,l=c*e,h=u*e;return n>s-h&&na-l&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:xD(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let r,o;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();r=t.top,o=t.left}else r=e.scrollTop,o=e.scrollLeft;const a=s.top-r,c=s.left-o;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&DD(t.clientRect,a,c)}),s.top=r,s.left=o,{top:a,left:c}}}function ID(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),i=this._dropContainer;if(!e)return void this._endDragSequence(t);i&&(i.isDragging()||i.isReceiving())||(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),t.preventDefault();const i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new ND(i,s),r.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=N_(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>CD(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>q_(t)),this._handles.forEach(t=>CD(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(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=q_(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,YD),e.addEventListener("touchstart",this._pointerDown,jD)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?q_(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&VD(this._rootElement),VD(this._anchor),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(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),CD(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),CD(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&VD(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&VD(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){XD(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,n=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),r=this._getShadowRoot();i.insertBefore(s,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),ED(t,!1),this._document.body.appendChild(i.replaceChild(n,t)),this._getPreviewInsertionPoint(i,r).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),n=XD(e),s=!n&&0!==e.button,r=this._rootElement,o=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||o)return;this._handles.length&&(this._rootElementTapHighlight=r.style.webkitTapHighlightColor||"",r.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=xD(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){ED(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(n),r=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s,dropPoint:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:s,dropPoint:n}),e.drop(this,i,this._initialIndex,this._initialContainer,r,s,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=GD(s,this._document),this._previewRef=s,t.matchSize?$D(n,e):n.style.transform=UD(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=ID(t),$D(n,t.getBoundingClientRect()),this._initialTransform&&(n.style.transform=this._initialTransform)}return SD(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),CD(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=RD(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),r=RD(e,"transition-duration"),o=RD(e,"transition-delay");return zD(r[s])+zD(o[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=GD(this._placeholderRef,this._document)):i=ID(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,r=XD(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:s.left-i.left+(r.pageX-s.left-o.left),y:s.top-i.top+(r.pageY-s.top-o.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=XD(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,s=i.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=n,e.y=s,e.matrixTransform(t.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,r=this._previewRect,o=s.top+e,a=s.bottom-(r.height-e);i=KD(i,s.left+t,s.right-(r.width-t)),n=KD(n,o,a)}return{x:i,y:n}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-s.x),o=Math.abs(i-s.y);return r>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,CD(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,YD),t.removeEventListener("touchstart",this._pointerDown,jD)}_applyRootElementTransform(t,e){const i=UD(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=LD(i,this._initialTransform)}_applyPreviewTransform(t,e){var i;const n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,s=UD(t,e);this._preview.style.transform=LD(s,n)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,r=n.right-i.right,o=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),r>0&&(t-=r)):t=0,i.height>n.height?(o>0&&(e+=o),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:XD(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&DD(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=eb(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const t=this._document;return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}return q_(i)}}function UD(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function KD(t,e,i){return Math.max(e,Math.min(i,t))}function VD(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function XD(t){return"t"===t.type[0]}function GD(t,e){const i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];const n=e.createElement("div");return i.forEach(t=>n.appendChild(t)),n}function $D(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=UD(e.left,e.top)}function JD(t,e,i){const n=QD(e,t.length-1),s=QD(i,t.length-1);if(n===s)return;const r=t[n],o=s!0,this.sortPredicate=()=>!0,this.beforeStarted=new v,this.entered=new v,this.exited=new v,this.dropped=new v,this.sorted=new v,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=h.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new v,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=R_){return(!NA(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=R_),new b(i=>(i.add(e.schedule(kD,t,{subscriber:i,counter:0,period:t})),i))}(0,MA).pipe(FA(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?eP(t,-e):2===this._verticalScrollDirection&&eP(t,e),1===this._horizontalScrollDirection?iP(t,-e):2===this._horizontalScrollDirection&&iP(t,e)})},this.element=q_(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new ND(i,s)}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(t,e,i,n){let s;this._draggingStarted(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const r=this._activeDraggables,o=r.indexOf(t),a=t.getPlaceholderElement();let c=r[s];if(c===t&&(c=r[s+1]),o>-1&&r.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){const e=c.getRootElement();e.parentElement.insertBefore(a,e),r.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){const e=r[0].getRootElement();e.parentNode.insertBefore(a,e),r.unshift(t)}else q_(this.element).appendChild(a),r.push(t);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,r,o){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:s,distance:r,dropPoint:o})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=q_(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?tP("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!this._clientRect||!PD(this._clientRect,.05,e,i))return;const s=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===r&&s.length>0)return;const o="horizontal"===this._orientation,a=tP(s,e=>e.drag===t),c=s[r],u=c.clientRect,l=a>r?1:-1,h=this._getItemOffsetPx(s[a].clientRect,u,l),d=this._getSiblingOffsetPx(a,s,l),p=s.slice();JD(s,a,r),this.sorted.next({previousIndex:a,currentIndex:r,container:this,item:t}),s.forEach((e,i)=>{if(p[i]===e)return;const n=e.drag===t,s=n?h:d,r=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,o?(r.style.transform=LD(`translate3d(${Math.round(e.offset)}px, 0, 0)`,e.initialTransform),DD(e.clientRect,0,s)):(r.style.transform=LD(`translate3d(0, ${Math.round(e.offset)}px, 0)`,e.initialTransform),DD(e.clientRect,s,0))}),this._previousSwap.overlaps=OD(u,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=o?n.x:n.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((r,o)=>{o!==this._document&&r.clientRect&&!i&&PD(r.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=nP(e,n),r=sP(e,i);let o=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(o=1):t.scrollHeight-e>t.clientHeight&&(o=2)}if(r){const e=t.scrollLeft;1===r?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[o,a]}(o,r.clientRect,t,e),(n||s)&&(i=o))}),!n&&!s){const{width:r,height:o}=this._viewportRuler.getViewportSize(),a={width:r,height:o,top:0,right:r,bottom:o,left:0};n=nP(a,e),s=sP(a,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=q_(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=q_(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:xD(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=q_(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{var e;const i=t.getRootElement();if(i){const n=null===(e=this._itemPositions.find(e=>e.drag===t))||void 0===e?void 0:e.initialTransform;i.style.transform=n||""}}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,r=e[t+-1*i];let o=s[n?"width":"height"]*i;if(r){const t=n?"left":"top",e=n?"right":"bottom";-1===i?o-=r.clientRect[t]-s[e]:o+=s[t]-r.clientRect[e]}return o}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation,r=tP(this._itemPositions,({drag:r,clientRect:o},a,c)=>{if(r===t)return c.length<2;if(n){const t=s?n.x:n.y;if(r===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!OD(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=q_(this.element);return n===s||s.contains(n)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{DD(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=eb(q_(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function tP(t,e){for(let i=0;i=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}function sP(t,e){const{left:i,right:n,width:s}=t,r=.05*s;return e>=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}const rP=Q_({passive:!1,capture:!0});let oP=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new v,this.pointerUp=new v,this.scroll=new v,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,rP)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,rP)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:rP}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:rP}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(un($u),un(Ll))},t.\u0275prov=dt({factory:function(){return new t(un($u),un(Ll))},token:t,providedIn:"root"}),t})();const aP={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let cP=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=aP){return new WD(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new ZD(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(un(Ll),un($u),un(ov),un(oP))},t.\u0275prov=dt({factory:function(){return new t(un(Ll),un($u),un(ov),un(oP))},token:t,providedIn:"root"}),t})();const uP=new Ui("CDK_DRAG_PARENT"),lP=new Ui("CdkDropListGroup"),hP=new Ui("CDK_DRAG_CONFIG");let dP=0;const pP=new Ui("CdkDropList");let fP=(()=>{class t{constructor(e,i,n,s,r,o,a){this.element=e,this._changeDetectorRef=n,this._scrollDispatcher=s,this._dir=r,this._group=o,this._destroyed=new v,this.connectedTo=[],this.id="cdk-drop-list-"+dP++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new lu,this.entered=new lu,this.exited=new lu,this.sorted=new lu,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,a&&this._assignDefaults(a),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._dropListRef.sortPredicate=(t,e,i)=>this.sortPredicate(t,e.data,i.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),o&&o._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=N_(t)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._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(nf(this._dir.value),FA(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const i=F_(this.connectedTo).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);if(this._group&&this._group._items.forEach(t=>{-1===i.indexOf(t)&&i.push(t)}),!this._scrollableParentsResolved){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=N_(this.sortingDisabled),e.autoScrollDisabled=N_(this.autoScrollDisabled),e.autoScrollStep=I_(this.autoScrollStep,2),e.connectedTo(i.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:i,sortingDisabled:n,listAutoScrollDisabled:s,listOrientation:r}=t;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=s&&s,this.orientation=r||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(cP),Ro(Tc),Ro(sv),Ro(Db,8),Ro(lP,12),Ro(hP,8))},t.\u0275dir=Gt({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(So("id",e.id),ua("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[Ua([{provide:lP,useValue:void 0},{provide:pP,useExisting:t}])]}),t._dropLists=[],t})();const gP=new Ui("CdkDragHandle"),mP=new Ui("CdkDragPlaceholder"),_P=new Ui("CdkDragPreview");let bP=(()=>{class t{constructor(e,i,n,s,r,o,a,c,u,l,h){this.element=e,this.dropContainer=i,this._ngZone=s,this._viewContainerRef=r,this._dir=a,this._changeDetectorRef=u,this._selfHandle=l,this._parentDrag=h,this._destroyed=new v,this.started=new lu,this.released=new lu,this.ended=new lu,this.entered=new lu,this.exited=new lu,this.dropped=new lu,this.moved=new b(t=>{const e=this._dragRef.moved.pipe(P(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=c.createDrag(e,{dragStartThreshold:o&&null!=o.dragStartThreshold?o.dragStartThreshold:5,pointerDirectionChangeThreshold:o&&null!=o.pointerDirectionChangeThreshold?o.pointerDirectionChangeThreshold:5,zIndex:null==o?void 0:o.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),o&&this._assignDefaults(o),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=N_(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.pipe(Zp(1),FA(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(nf(this._handles),Af(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._selfHandle&&this.rootElementSelector&&e.push(this.element),this._dragRef.withHandles(e)}),Gp(t=>U(...t.map(t=>t._stateChanges.pipe(nf(t))))),FA(this._destroyed)).subscribe(t=>{const e=this._dragRef,i=t.element.nativeElement;t.disabled?e.disableHandle(i):e.enableHandle(i)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?yP(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?yP(this.element.nativeElement,t):q_(t):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,i=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=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 i&&i?i:I_(i),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe(Zp(1)).subscribe(()=>{var i,n;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let s=this.element.nativeElement.parentElement;for(;s;){if(null===(i=s.classList)||void 0===i?void 0:i.contains("cdk-drag")){e.withParent((null===(n=t._dragInstances.find(t=>t.element.nativeElement===s))||void 0===n?void 0:n._dragRef)||null);break}s=s.parentElement}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:i,constrainPosition:n,previewClass:s,boundaryElement:r,draggingDisabled:o,rootElementSelector:a,previewContainer:c}=t;this.disabled=null!=o&&o,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),r&&(this.boundaryElement=r),a&&(this.rootElementSelector=a),c&&(this.previewContainer=c)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(pP,12),Ro(Ll),Ro($u),Ro(Nc),Ro(hP,8),Ro(Db,8),Ro(cP),Ro(Tc),Ro(gP,10),Ro(uP,12))},t.\u0275dir=Gt({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,_P,5),Tu(i,mP,5),Tu(i,gP,5)),2&t){let t;Au(t=ku())&&(e._previewTemplate=t.first),Au(t=ku())&&(e._placeholderTemplate=t.first),Au(t=ku())&&(e._handles=t)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&ua("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Ua([{provide:uP,useExisting:t}]),ae]}),t._dragInstances=[],t})();function yP(t,e){let i=t.parentElement;for(;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}let wP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[cP],imports:[av]}),t})();const MP=["*"],AP=new Ui("MatChipRemove"),vP=new Ui("MatChipAvatar"),TP=new Ui("MatChipTrailingIcon");class kP{constructor(t){this._elementRef=t}}const SP=vM(MM(AM(kP),"primary"),-1);let CP=(()=>{class t extends SP{constructor(t,e,i,n,s,r,o,a){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=s,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new v,this._onBlur=new v,this.selectionChange=new lu,this.destroyed=new lu,this.removed=new lu,this._addHostClassName(),this._chipRippleTarget=r.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new UM(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=a&&parseInt(a)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=N_(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=N_(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=N_(t)}get removable(){return this._removable}set removable(t){this._removable=N_(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):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(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),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(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe(Zp(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro($u),Ro(W_),Ro(KM,8),Ro(Tc),Ro(Ll),Ro(aM,8),Yi("tabindex"))},t.\u0275dir=Gt({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,vP,5),Tu(i,TP,5),Tu(i,AP,5)),2&t){let t;Au(t=ku())&&(e.avatar=t.first),Au(t=ku())&&(e.trailingIcon=t.first),Au(t=ku())&&(e.removeIcon=t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&Wo("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(So("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),ua("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",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[po]}),t})();const EP=new Ui("mat-chips-default-options");class LP{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const zP=TM(LP);let RP=0;class xP{constructor(t,e){this.source=t,this.value=e}}let OP=(()=>{class t extends zP{constructor(t,e,i,n,s,r,o){super(r,n,s,o),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=o,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new v,this._uid="mat-chip-list-"+RP++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new lu,this.valueChange=new lu,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=N_(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=N_(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,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(t){this._disabled=N_(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=N_(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return U(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return U(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return U(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return U(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new mb(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(FA(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(FA(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(nf(null),FA(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 ev(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(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new xP(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(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.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(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.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(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(Tc),Ro(Db,8),Ro(Nk,8),Ro(Xk,8),Ro(NM),Ro(lk,10))},t.\u0275cmp=Yt({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){if(1&t&&Tu(i,CP,5),2&t){let t;Au(t=ku())&&(e.chips=t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&Wo("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(Ea("id",e._uid),So("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("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),ua("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[Ua([{provide:yT,useExisting:t}]),po],ngContentSelectors:MP,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(Jo(),Do(0,"div",0),Qo(1),Po())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})(),DP=0,PP=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new lu,this.placeholder="",this.id="mat-chip-list-input-"+DP++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=N_(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=N_(t)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(t){if(t){if(9!==t.keyCode||S_(t,"shiftKey")||this._chipList._allowFocusEscape(),8===t.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}_keyup(t){!this._focusLastChipOnBackspace&&8===t.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this.inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==t||t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this.inputElement.focus(t)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(t){return!S_(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(EP))},t.\u0275dir=Gt({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&Wo("keydown",function(t){return e._keydown(t)})("keyup",function(t){return e._keyup(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(Ea("id",e.id),So("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:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[ae]}),t})();const NP={separatorKeyCodes:[13]};let IP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[NM,{provide:EP,useValue:NP}],imports:[[yM]]}),t})();function BP(t,e){if(1&t){const t=Ho();Do(0,"mat-icon",9),Wo("mousedown",function(){return Re(t),Go(2).dragDisabled=!1}),Aa(1,"drag_indicator"),Po()}}function FP(t,e){if(1&t){const t=Ho();Do(0,"mat-icon",10),Wo("click",function(){Re(t);const e=Go().$implicit;return Go().edit(e)}),Aa(1,"edit"),Po()}}function HP(t,e){if(1&t){const t=Ho();Do(0,"mat-icon",11),Wo("click",function(){Re(t);const e=Go().$implicit;return Go().remove(e)}),Aa(1,"cancel"),Po()}}function qP(t,e){if(1&t){const t=Ho();Do(0,"mat-chip",4),Wo("removed",function(){const e=Re(t).$implicit,i=Go();return i.remove(e),i._sendEventToParent()}),Lo(1,BP,2,0,"mat-icon",5),Do(2,"div",6),Wo("click",function(){const e=Re(t).$implicit,i=Go();return i.readonly&&void 0!==i.attribute.displayName&&i.showValue(e,i.attribute.displayName)}),Aa(3),Po(),Lo(4,FP,2,0,"mat-icon",7),Lo(5,HP,2,0,"mat-icon",8),Po()}if(2&t){const t=e.$implicit,i=Go();xo("selectable",i.selectable)("cdkDragData",t)("removable",i.removable),Qs(1),xo("ngIf",i.removable),Qs(1),ua("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),Qs(1),va(t),Qs(1),xo("ngIf",i.removable),Qs(1),xo("ngIf",i.removable)}}function jP(t,e){1&t&&(Do(0,"mat-icon"),Aa(1,"more_horiz"),Po())}function YP(t,e){1&t&&(Do(0,"mat-icon"),Aa(1,"keyboard_arrow_up"),Po())}function WP(t,e){if(1&t){const t=Ho();Do(0,"div",12),Do(1,"span",13),Do(2,"button",14),Wo("click",function(){return Re(t),Go().onShowChange()}),Lo(3,jP,2,0,"mat-icon",15),Lo(4,YP,2,0,"mat-icon",15),Po(),Po(),Po()}if(2&t){const t=Go();Qs(1),xo("matTooltip",t.showMore?"Show less":"Show more")("matTooltipPosition","above"),Qs(2),xo("ngIf",!t.showMore),Qs(1),xo("ngIf",t.showMore)}}function UP(t,e){if(1&t){const t=Ho();Do(0,"mat-form-field",12),Do(1,"input",16),Wo("matChipInputTokenEnd",function(e){return Re(t),Go().add(e)})("change",function(){return Re(t),Go()._sendEventToParent()}),Po(),Po()}if(2&t){const t=Go(),e=zo(2);Qs(1),xo("matChipInputFor",e)("matChipInputSeparatorKeyCodes",t.separatorKeysCodes)("matChipInputAddOnBlur",t.addOnBlur)}}let KP=(()=>{class t{constructor(t){this.dialog=t,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new lu,this.readonly=!1}ngOnInit(){this.removable=!CE(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=CE(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(t){const e=t.input,i=t.value;(i||"").trim()&&(this.attribute.value.push(i.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),e&&(e.value=""),this.sendEventToParent.emit()}remove(t){const e=SE();e.width="400px",e.data={name:t},this.dialog.open(Fz,e).afterClosed().subscribe(e=>{if(e){const e=this.attribute.value.indexOf(t);this.attribute.value.splice(e,1),this.values=Object.values(this.attribute.value),this.sendEventToParent.emit()}})}drop(t){this.dragDisabled=!0,JD(this.attribute.value,t.previousIndex,t.currentIndex),this.values=Object.values(this.attribute.value)}edit(t){const e=this.attribute.value.indexOf(t),i=SE();i.width="600px",i.data={attribute:this.attribute,index:e},this.dialog.open(Bz,i).afterClosed().subscribe(t=>{t&&(this.values=Object.values(this.attribute.value),this.sendEventToParent.emit())})}showValue(t,e){const i=SE();i.width="350px",i.data={value:t,title:e},this.dialog.open(Iz,i)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return t.\u0275fac=function(e){return new(e||t)(Ro(bE))},t.\u0275cmp=Yt({type:t,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",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(t,e){1&t&&(Do(0,"div"),Do(1,"mat-chip-list",0,1),Wo("cdkDropListDropped",function(t){return e.drop(t),e._sendEventToParent()}),Lo(3,qP,6,9,"mat-chip",2),Lo(4,WP,5,4,"div",3),Lo(5,UP,2,3,"mat-form-field",3),Po(),Po()),2&t&&(Qs(1),xo("cdkDropListDisabled",e.dragDisabled),Qs(2),xo("ngForOf",e.values.slice(0,e.itemsShown)),Qs(1),xo("ngIf",e.values.length>e.defaultItemsShown),Qs(1),xo("ngIf",!e.readonly))},directives:[OP,fP,zh,xh,CP,bP,NC,PS,gA,xT,yL,PP],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%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})(),VP=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new lu}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=CE(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t,e){const i=SE();i.width="350px",i.data={value:t,title:e},this.dialog.open(Iz,i)}}return t.\u0275fac=function(e){return new(e||t)(Ro(bE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(t,e){1&t&&(Do(0,"mat-form-field",0),Do(1,"input",1),Wo("click",function(){return e.readonly&&void 0!==e.value&&e.showValue(e.value,e.attribute.displayName)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),Po(),Po()),2&t&&(Zo("appearance",e.readonly?"none":"standard"),Qs(1),ua("cursor-pointer",e.readonly&&void 0!==e.value),xo("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[xT,yL,qT,dk,Fk],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})(),XP=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new lu}ngOnInit(){this.readonly||(this.readonly=CE(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t){const e=SE();e.width="350px",e.data={value:t.value,title:t.displayName},this.dialog.open(Iz,e)}}return t.\u0275fac=function(e){return new(e||t)(Ro(bE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(t,e){1&t&&(Do(0,"mat-form-field",0),Do(1,"input",1),Wo("click",function(){return e.readonly&&void 0!==e.attribute.value&&e.showValue(e.attribute)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),Po(),Po()),2&t&&(Zo("appearance",e.readonly?"none":"standard"),Qs(1),ua("cursor-pointer",e.readonly&&void 0!==e.attribute.value),xo("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[xT,yL,jk,qT,dk,Fk],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();const GP=["map"];function $P(t,e){if(1&t){const t=Ho();Do(0,"perun-web-apps-attribute-value-boolean",3),Wo("sendEventToParent",function(){return Re(t),Go()._sendEventToParent2()}),Po()}if(2&t){const t=Go();xo("attribute",t.attribute)("readonly",t.readonly)}}function JP(t,e){if(1&t){const t=Ho();Do(0,"perun-web-apps-attribute-value-list",3),Wo("sendEventToParent",function(){return Re(t),Go()._sendEventToParent2()}),Po()}if(2&t){const t=Go();xo("attribute",t.attribute)("readonly",t.readonly)}}function QP(t,e){if(1&t&&No(0,"perun-web-apps-attribute-value-map",4,5),2&t){const t=Go();xo("attribute",t.attribute)("readonly",t.readonly)}}function ZP(t,e){if(1&t){const t=Ho();Do(0,"perun-web-apps-attribute-value-string",3),Wo("sendEventToParent",function(){return Re(t),Go()._sendEventToParent2()}),Po()}if(2&t){const t=Go();xo("attribute",t.attribute)("readonly",t.readonly)}}function tN(t,e){if(1&t){const t=Ho();Do(0,"perun-web-apps-attribute-value-integer",3),Wo("sendEventToParent",function(){return Re(t),Go()._sendEventToParent2()}),Po()}if(2&t){const t=Go();xo("attribute",t.attribute)("readonly",t.readonly)}}let eN=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent2=new lu}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(t,e){if(1&t&&vu(GP,5),2&t){let t;Au(t=ku())&&(e.mapComponent=t.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(t,e){1&t&&(Do(0,"div"),Lo(1,$P,1,2,"perun-web-apps-attribute-value-boolean",0),Lo(2,JP,1,2,"perun-web-apps-attribute-value-list",0),Do(3,"div",1),Wo("click",function(){return e._sendEventToParent2()}),Lo(4,QP,2,2,"perun-web-apps-attribute-value-map",2),Po(),Lo(5,ZP,1,2,"perun-web-apps-attribute-value-string",0),Lo(6,tN,1,2,"perun-web-apps-attribute-value-integer",0),Po()),2&t&&(Qs(1),xo("ngIf","java.lang.Boolean"===e.attribute.type),Qs(1),xo("ngIf","java.util.ArrayList"===e.attribute.type),Qs(2),xo("ngIf","java.util.LinkedHashMap"===e.attribute.type),Qs(1),xo("ngIf","java.lang.String"===e.attribute.type||"java.lang.LargeString"===e.attribute.type),Qs(1),xo("ngIf","java.lang.Integer"===e.attribute.type))},directives:[xh,TD,KP,aD,VP,XP],styles:[""]}),t})();function iN(t,e){1&t&&No(0,"mat-spinner",3)}function nN(t,e){if(1&t){const t=Ho();Do(0,"mat-option",16),Wo("click",function(){const e=Re(t).$implicit;return Go(4).changeLanguage(e)}),Aa(1),nu(2,"translate"),nu(3,"uppercase"),Po()}if(2&t){const t=e.$implicit;xo("value",t),Qs(1),Ta(" ",su(2,2,su(3,4,"SHARED_LIB.LANGUAGES."+t))," ")}}function sN(t,e){if(1&t){const t=Ho();Do(0,"mat-form-field",13),Do(1,"mat-select",14),Wo("valueChange",function(e){return Re(t),Go(3).currentLang=e}),Lo(2,nN,4,6,"mat-option",15),Po(),Po()}if(2&t){const t=Go(3);Qs(1),xo("value",t.currentLang),Qs(1),xo("ngForOf",t.languages)}}function rN(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"a",17),Aa(2),Po(),Do(3,"button",18),Wo("click",function(){return Re(t),Go(3).changeEmail()}),Aa(4),nu(5,"translate"),nu(6,"customTranslate"),Po(),Po()}if(2&t){const t=Go(3);Qs(1),ta("href","mailto:",t.email,"",ts),Qs(1),va(t.email),Qs(2),va(su(5,3,su(6,5,"PROFILE_PAGE.CHANGE_EMAIL")))}}function oN(t,e){if(1&t){const t=Ho();Do(0,"mat-option",16),Wo("click",function(){const e=Re(t).$implicit;return Go(4).changeTimeZone(e)}),Aa(1),Po()}if(2&t){const t=e.$implicit;xo("value",t),Qs(1),Ta(" ",t," ")}}function aN(t,e){if(1&t){const t=Ho();Do(0,"mat-form-field",13),Do(1,"mat-select",19),Wo("valueChange",function(e){return Re(t),Go(3).currentTimezone=e}),Lo(2,oN,2,2,"mat-option",15),Po(),Po()}if(2&t){const t=Go(3);Qs(1),xo("value",t.currentTimezone),Qs(1),xo("ngForOf",t.timeZones)}}function cN(t,e){1&t&&(Do(0,"p"),Aa(1,"-"),Po())}function uN(t,e){1&t&&No(0,"perun-web-apps-attribute-value",22),2&t&&xo("attribute",Go(2).$implicit.attribute)("readonly",!0)}function lN(t,e){if(1&t&&(Do(0,"div"),Lo(1,cN,2,0,"p",20),Lo(2,uN,1,2,"perun-web-apps-attribute-value",21),Po()),2&t){const t=Go().$implicit;Qs(1),xo("ngIf",!t.attribute.value),Qs(1),xo("ngIf",t.attribute.value)}}function hN(t,e){if(1&t&&(Do(0,"tr"),Do(1,"td",7),Do(2,"div",8),Aa(3),Po(),Po(),Do(4,"td",9),Lo(5,sN,3,2,"mat-form-field",10),Lo(6,rN,7,7,"div",11),Lo(7,aN,3,2,"mat-form-field",10),Lo(8,lN,3,2,"div",12),Po(),Po()),2&t){const t=e.$implicit,i=Go(2);Qs(2),xo("matTooltip",t["tooltip_"+i.currentLang]),Qs(1),va(t["displayName_"+i.currentLang]),Qs(1),xo("ngSwitch",t.attribute.friendlyName),Qs(1),xo("ngSwitchCase","preferredLanguage"),Qs(1),xo("ngSwitchCase","preferredMail"),Qs(1),xo("ngSwitchCase","timezone")}}function dN(t,e){if(1&t&&(Do(0,"table",4),Do(1,"tbody"),Do(2,"tr"),Do(3,"td",5),Aa(4),nu(5,"translate"),nu(6,"customTranslate"),Po(),Do(7,"td"),Aa(8),Po(),Po(),Lo(9,hN,9,6,"tr",6),Po(),Po()),2&t){const t=Go();Qs(4),va(su(5,3,su(6,5,"PROFILE_PAGE.NAME"))),Qs(4),va(t.fullName),Qs(1),xo("ngForOf",t.additionalAttributes)}}let pN=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u){this.translateService=t,this.dialog=e,this.authzResolverService=i,this.attributesManagerService=n,this.usersManagerService=s,this.route=r,this.router=o,this.notificator=a,this.storeService=c,this.apiRequestConfiguration=u,this.currentLang="en",this.languages=this.storeService.get("supportedLanguages"),this.timeZones=tD.tz.names().filter(t=>!t.startsWith("Etc/")),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",t.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){const t=this.route.snapshot.queryParamMap,e=t.get("token"),i=t.get("u");this.loading=!0,e&&i?(this.apiRequestConfiguration.dontHandleErrorForNext(),this.usersManagerService.validatePreferredEmailChangeWithToken(e,Number.parseInt(i,10)).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.router.navigate([],{replaceUrl:!0}),this.getData()},()=>{const t=SE();t.width="600px",this.dialog.open(Kz,t).afterClosed().subscribe(()=>{this.getData()})})):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(t=>{this.userId=t.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.fullName=(new JE).transform(t);const e=t.userAttributes.find(t=>"preferredMail"===t.friendlyName);this.email=e.value,this.languageAttribute=t.userAttributes.find(t=>"preferredLanguage"===t.friendlyName),this.currentLang=this.languageAttribute&&this.languageAttribute.value?this.languageAttribute.value:"en",this.timezoneAttribute=t.userAttributes.find(t=>"timezone"===t.friendlyName),this.currentTimezone=this.timezoneAttribute&&this.timezoneAttribute.value?this.timezoneAttribute.value:"-";const i=this.storeService.get("profile_page_attributes"),n=this.storeService.get("supportedLanguages");let s=0;i.forEach(e=>{const r=t.userAttributes.find(t=>t.friendlyName===e.friendly_name);r?(s++,this.addAttribute(r,e,n)):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${e.is_virtual?"virt":"def"}:${e.friendly_name}`).subscribe(t=>{this.addAttribute(t,e,n),s++,this.loading=s!==i.length}),this.loading=s!==i.length})})})}addAttribute(t,e,i){var n;const s={attribute:t};for(const r of i)s[`displayName_${r}`]=e[`display_name_${r}`]&&e[`display_name_${r}`].length?e[`display_name_${r}`]:t.displayName,s[`tooltip_${r}`]=null!==(n=e[`tooltip_${r}`])&&void 0!==n?n:"";this.additionalAttributes.push(s)}changeLanguage(t){this.currentLang=t,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(()=>{})}changeTimeZone(t){this.currentTimezone=t,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 t=SE();t.width="350px",t.data={userId:this.userId},this.dialog.open(Uz,t).afterClosed().subscribe(t=>{t&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(t=>{this.email=t.value})}}return t.\u0275fac=function(e){return new(e||t)(Ro(eE),Ro(bE),Ro(vp),Ro(Ap),Ro(Lp),Ro(Dg),Ro(i_),Ro(WE),Ro(BE),Ro(YE))},t.\u0275cmp=Yt({type:t,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-stroked-button","",1,"ml-2",3,"click"],[3,"value","valueChange"],[4,"ngIf"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly"]],template:function(t,e){1&t&&(Do(0,"div",0),Lo(1,iN,1,0,"mat-spinner",1),Lo(2,dN,10,7,"table",2),Po()),2&t&&(Qs(1),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading))},directives:[xh,cL,zh,PS,Nh,Ih,Bh,xT,yS,oA,gA,eN],pipes:[iE,QE,Kh],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}"]}),t})();const fN=["mat-sort-header",""];function gN(t,e){if(1&t){const t=Ho();Do(0,"div",3),Wo("@arrowPosition.start",function(){return Re(t),Go()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Re(t),Go()._disableViewStateAnimation=!1}),No(1,"div",4),Do(2,"div",5),No(3,"div",6),No(4,"div",7),No(5,"div",8),Po(),Po()}if(2&t){const t=Go();xo("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),Qs(2),xo("@indicator",t._getArrowDirectionState()),Qs(1),xo("@leftPointer",t._getArrowDirectionState()),Qs(1),xo("@rightPointer",t._getArrowDirectionState())}}const mN=["*"],_N=new Ui("MAT_SORT_DEFAULT_OPTIONS");class bN{}const yN=kM(wM(bN));let wN=(()=>{class t extends yN{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new v,this.start="asc",this._direction="",this.sortChange=new lu}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=N_(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,i,n;if(!t)return"";const s=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let r=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,s),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(Ro(_N,8))},t.\u0275dir=Gt({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[po,ae]}),t})();const MN=mM.ENTERING+" "+gM.STANDARD_CURVE,AN={indicator:Bb("indicator",[Yb("active-asc, asc",jb({transform:"translateY(0px)"})),Yb("active-desc, desc",jb({transform:"translateY(10px)"})),Ub("active-asc <=> active-desc",Fb(MN))]),leftPointer:Bb("leftPointer",[Yb("active-asc, asc",jb({transform:"rotate(-45deg)"})),Yb("active-desc, desc",jb({transform:"rotate(45deg)"})),Ub("active-asc <=> active-desc",Fb(MN))]),rightPointer:Bb("rightPointer",[Yb("active-asc, asc",jb({transform:"rotate(45deg)"})),Yb("active-desc, desc",jb({transform:"rotate(-45deg)"})),Ub("active-asc <=> active-desc",Fb(MN))]),arrowOpacity:Bb("arrowOpacity",[Yb("desc-to-active, asc-to-active, active",jb({opacity:1})),Yb("desc-to-hint, asc-to-hint, hint",jb({opacity:.54})),Yb("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",jb({opacity:0})),Ub("* => asc, * => desc, * => active, * => hint, * => void",Fb("0ms")),Ub("* <=> *",Fb(MN))]),arrowPosition:Bb("arrowPosition",[Ub("* => desc-to-hint, * => desc-to-active",Fb(MN,Wb([jb({transform:"translateY(-25%)"}),jb({transform:"translateY(0)"})]))),Ub("* => hint-to-desc, * => active-to-desc",Fb(MN,Wb([jb({transform:"translateY(0)"}),jb({transform:"translateY(25%)"})]))),Ub("* => asc-to-hint, * => asc-to-active",Fb(MN,Wb([jb({transform:"translateY(25%)"}),jb({transform:"translateY(0)"})]))),Ub("* => hint-to-asc, * => active-to-asc",Fb(MN,Wb([jb({transform:"translateY(0)"}),jb({transform:"translateY(-25%)"})]))),Yb("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",jb({transform:"translateY(0)"})),Yb("hint-to-desc, active-to-desc, desc",jb({transform:"translateY(-25%)"})),Yb("hint-to-asc, active-to-asc, asc",jb({transform:"translateY(25%)"}))]),allowChildren:Bb("allowChildren",[Ub("* <=> *",[Vb("@*",Kb(),{optional:!0})])])};let vN=(()=>{class t{constructor(){this.changes=new v}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const TN={provide:vN,deps:[[new fn,new gn,vN]],useFactory:function(t){return t||new vN}};class kN{}const SN=wM(kN);let CN=(()=>{class t extends SN{constructor(t,e,i,n,s,r){super(),this._intl=t,this._changeDetectorRef=e,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=r,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=N_(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.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(t){this._isDisabled()||32!==t.keyCode&&13!==t.keyCode||(t.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 t=this._viewState.fromState;return(t?`${t}-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()}_handleStateChanges(){this._rerenderSubscription=U(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 t.\u0275fac=function(e){return new(e||t)(Ro(vN),Ro(Tc),Ro(wN,8),Ro("MAT_SORT_HEADER_COLUMN_DEF",8),Ro(Lb),Ro(Qa))},t.\u0275cmp=Yt({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&Wo("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(So("aria-sort",e._getAriaSortAttribute()),ua("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[po],attrs:fN,ngContentSelectors:mN,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(Jo(),Do(0,"div",0),Do(1,"div",1),Qo(2),Po(),Lo(3,gN,6,6,"div",2),Po()),2&t&&(ua("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),So("tabindex",e._isDisabled()?null:0),Qs(3),xo("ngIf",e._renderArrow()))},directives:[xh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[AN.indicator,AN.leftPointer,AN.rightPointer,AN.arrowOpacity,AN.arrowPosition,AN.allowChildren]},changeDetection:0}),t})(),EN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[TN],imports:[[Xh,yM]]}),t})(),LN=(()=>{class t{constructor(t){this.elementRef=t}ngOnInit(){this.elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa))},t.\u0275dir=Gt({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t})(),zN=(()=>{class t{constructor(){}onClick(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),e=location.search;window.open(t+e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&Wo("mouseup",function(t){return e.onClick(t)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t})(),RN=(()=>{class t{transform(t){const e=t.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"getMailFromAttributes",type:t,pure:!0}),t})();function xN(t,e){1&t&&No(0,"th",17)}function ON(t,e){if(1&t){const t=Ho();Do(0,"td",18),Do(1,"mat-checkbox",19),Wo("change",function(e){const i=Re(t).$implicit,n=Go();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();Qs(1),xo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function DN(t,e){1&t&&(Do(0,"th",20),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))))}function PN(t,e){if(1&t&&(Do(0,"td",21),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.userExtSource.id)}}function NN(t,e){1&t&&(Do(0,"th",17),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))))}function IN(t,e){if(1&t&&(Do(0,"td",21),Aa(1),nu(2,"getMailFromAttributes"),Po()),2&t){const t=e.$implicit;Qs(1),va(su(2,1,t.attributes))}}function BN(t,e){if(1&t&&(Do(0,"th",20),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t){const t=Go();Qs(1),va(su(2,1,su(3,3,t.extSourceNameHeader?t.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME")))}}function FN(t,e){if(1&t&&(Do(0,"td",21),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.userExtSource.extSource.name)}}function HN(t,e){if(1&t&&(Do(0,"th",20),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t){const t=Go();Qs(1),va(su(2,1,su(3,3,t.loginHeader?t.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN")))}}function qN(t,e){if(1&t&&(Do(0,"td",21),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.userExtSource.login)}}function jN(t,e){1&t&&(Do(0,"th",20),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))))}function YN(t,e){if(1&t&&(Do(0,"td",22),Aa(1),nu(2,"date"),Po()),2&t){const t=e.$implicit;Qs(1),va(ru(2,1,t.userExtSource.lastAccess,"d.M.y H:mm:ss"))}}function WN(t,e){1&t&&No(0,"tr",23)}const UN=function(t,e){return["/admin","users",t,"identities",e]};function KN(t,e){if(1&t&&No(0,"tr",24),2&t){const t=e.$implicit,i=Go();ua("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),xo("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:Zc(6,UN,i.userId,t.userExtSource.id))("routerLink",i.disableRouting?null:Zc(9,UN,i.userId,t.userExtSource.id))}}function VN(t,e){1&t&&(Do(0,"app-alert",25),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,su(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let XN=(()=>{class t{constructor(t,e){this.route=t,this.authResolver=e,this.selection=new ev,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSize=5,this.page=new lu,this.pageSizeOptions=kE}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.disableRouting||this.route.parent.params.subscribe(t=>{this.userId=t.userId}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new Tz(this.userExtSources),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.userExtSource.id.toString();case"mail":{const e=t.attributes.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A"}case"extSourceName":return t.userExtSource.extSource.name;case"login":return t.userExtSource.login;case"lastAccess":return t.userExtSource.lastAccess.split(".")[0];default:return""}}exportData(t){xE(RE(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>zE(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>LE(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(t){return`${this.selection.isSelected(t.userExtSource)?"deselect":"select"} row ${t.userExtSource.id+1}`}}return t.\u0275fac=function(e){return new(e||t)(Ro(Dg),Ro(Ip))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(t,e){if(1&t&&(vu(NE,7),vu(wN,7)),2&t){let t;Au(t=ku())&&(e.child=t.first),Au(t=ku())&&(e.matSort=t.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",pageSize:"pageSize",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},outputs:{page:"page"},features:[ae],decls:24,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["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",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(Do(0,"div",0),Do(1,"perun-web-apps-table-wrapper",1),Wo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),Do(2,"table",2),Io(3,3),Lo(4,xN,1,0,"th",4),Lo(5,ON,2,2,"td",5),Bo(),Io(6,6),Lo(7,DN,4,5,"th",7),Lo(8,PN,2,1,"td",8),Bo(),Io(9,9),Lo(10,NN,4,5,"th",4),Lo(11,IN,3,3,"td",8),Bo(),Io(12,10),Lo(13,BN,4,5,"th",7),Lo(14,FN,2,1,"td",8),Bo(),Io(15,11),Lo(16,HN,4,5,"th",7),Lo(17,qN,2,1,"td",8),Bo(),Io(18,12),Lo(19,jN,4,5,"th",7),Lo(20,YN,3,4,"td",13),Bo(),Lo(21,WN,1,0,"tr",14),Lo(22,KN,1,12,"tr",15),Po(),Po(),Po(),Lo(23,VN,4,5,"app-alert",16)),2&t&&(xo("hidden",0===e.userExtSources.length||0===e.dataSource.filteredData.length),Qs(1),xo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),Qs(1),xo("dataSource",e.dataSource),Qs(19),xo("matHeaderRowDef",e.displayedColumns),Qs(1),xo("matRowDefColumns",e.displayedColumns),Qs(1),xo("ngIf",0===e.userExtSources.length))},directives:[NE,pz,wN,mz,gz,fz,yz,wz,xh,_z,bz,yD,CN,Mz,Az,zN,n_,jz],pipes:[iE,QE,RN,Vh],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t})();function GN(t,e){1&t&&No(0,"mat-spinner",3)}function $N(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"h1",8),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Do(5,"button",5),Wo("click",function(){return Re(t),Go(2).addIdentity()}),Aa(6),nu(7,"translate"),nu(8,"customTranslate"),Po(),Do(9,"button",6),Wo("click",function(){Re(t);const e=Go(2);return e.removeIdentity(e.certSelection)}),Aa(10),nu(11,"translate"),nu(12,"customTranslate"),Po(),No(13,"perun-web-apps-user-ext-sources-list",11),Po()}if(2&t){const t=Go(2);Qs(2),va(su(3,10,su(4,12,"IDENTITIES.CERT"))),Qs(4),va(su(7,14,su(8,16,"IDENTITIES.ADD"))),Qs(3),xo("disabled",0===t.certSelection.selected.length),Qs(1),va(su(11,18,su(12,20,"IDENTITIES.REMOVE"))),Qs(3),xo("userExtSources",t.certExtSources)("selection",t.certSelection)("extSourceNameHeader",t.extSourceNameCert)("loginHeader",t.loginCert)("displayedColumns",t.displayedColumnsCert)("disableRouting",!0)}}function JN(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"h1",4),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Do(5,"button",5),Wo("click",function(){return Re(t),Go().addIdentity()}),Aa(6),nu(7,"translate"),nu(8,"customTranslate"),Po(),Do(9,"button",6),Wo("click",function(){Re(t);const e=Go();return e.removeIdentity(e.idpSelection)}),Aa(10),nu(11,"translate"),nu(12,"customTranslate"),Po(),No(13,"perun-web-apps-user-ext-sources-list",7),Lo(14,$N,14,22,"div",2),Do(15,"h1",8),Aa(16),nu(17,"translate"),nu(18,"customTranslate"),Do(19,"mat-icon",9),nu(20,"translate"),nu(21,"customTranslate"),Aa(22," info_outline "),Po(),Po(),Do(23,"button",6),Wo("click",function(){Re(t);const e=Go();return e.removeIdentity(e.otherSelection)}),Aa(24),nu(25,"translate"),nu(26,"customTranslate"),Po(),No(27,"perun-web-apps-user-ext-sources-list",10),Po()}if(2&t){const t=Go();Qs(2),va(su(3,19,su(4,21,"IDENTITIES.IDP"))),Qs(4),va(su(7,23,su(8,25,"IDENTITIES.ADD"))),Qs(3),xo("disabled",0===t.idpSelection.selected.length),Qs(1),va(su(11,27,su(12,29,"IDENTITIES.REMOVE"))),Qs(3),xo("userExtSources",t.idpExtSources)("selection",t.idpSelection)("displayedColumns",t.displayedColumnsIdp)("loginHeader",t.loginIdp)("disableRouting",!0),Qs(1),xo("ngIf",t.displayCertificates),Qs(2),Ta(" ",su(17,31,su(18,33,"IDENTITIES.OTHER"))," "),Qs(3),xo("matTooltip",su(20,35,su(21,37,"IDENTITIES.OTHER_TOOLTIP"))),Qs(4),xo("disabled",0===t.otherSelection.selected.length),Qs(1),va(su(25,39,su(26,41,"IDENTITIES.REMOVE"))),Qs(3),xo("userExtSources",t.otherExtSources)("selection",t.otherSelection)("extSourceNameHeader",t.extSourceNameOther)("displayedColumns",t.displayedColumnsOther)("disableRouting",!0)}}let QN=(()=>{class t{constructor(t,e,i,n,s){this.usersManagerService=t,this.storage=e,this.registrarManagerService=i,this.dialog=n,this.attributesManagerService=s,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new ev(!0,[]),this.certSelection=new ev(!0,[]),this.otherSelection=new ev(!0,[]),this.loginIdp="IDENTITIES.LOGIN_IDP",this.extSourceNameCert="IDENTITIES.EXT_SOURCE_NAME_CERT",this.loginCert="IDENTITIES.LOGIN_CERT",this.extSourceNameOther="IDENTITIES.EXT_SOURCE_NAME_OTHER",this.displayedColumnsIdp=["select","extSourceName","login","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["select","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(t=>{let e=t.length;t.forEach(t=>{this.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:sourceIdPName").subscribe(i=>{i&&i.value?(t.userExtSource.extSource.name=i.value,e--,this.loading=0!==e,this.addToList(t)):this.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:IdPOrganizationName").subscribe(i=>{e--,i&&i.value&&(t.userExtSource.extSource.name=i.value),this.loading=0!==e,this.addToList(t)})})})})}addIdentity(){this.registrarManagerService.getConsolidatorToken().subscribe(t=>{const e=this.storage.getPerunPrincipal().extSourceType,i=this.storage.get("consolidator_base_url");window.location.href=`${i}${e&&e.endsWith("X509")?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${t}`})}removeIdentity(t){const e=SE();e.width="600px",e.data={theme:"user-theme",userId:this.userId,extSources:t.selected},this.dialog.open(Rz,e).afterClosed().subscribe(e=>{e&&(t.clear(),this.refreshTables())})}addToList(t){t.userExtSource.extSource.type.endsWith("Idp")?this.idpExtSources.push(t):t.userExtSource.extSource.type.endsWith("X509")?this.certExtSources.push(t):this.otherExtSources.push(t)}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lp),Ro(BE),Ro(Cp),Ro(bE),Ro(Ap))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-identities-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],["mat-flat-button","","color","accent",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(t,e){1&t&&(Do(0,"div",0),Lo(1,GN,1,0,"mat-spinner",1),Lo(2,JN,28,43,"div",2),Po()),2&t&&(Qs(1),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading))},directives:[xh,cL,gA,XN,NC,PS],pipes:[iE,QE],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),t})();const ZN=["panel"];function tI(t,e){if(1&t&&(Do(0,"div",0,1),Qo(2),Po()),2&t){const t=e.id,i=Go();xo("id",i.id)("ngClass",i._classList),So("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}const eI=["*"];let iI=0;class nI{constructor(t,e){this.source=t,this.option=e}}class sI{}const rI=AM(sI),oI=new Ui("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let aI=(()=>{class t extends rI{constructor(t,e,i,n){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=h.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new lu,this.opened=new lu,this.closed=new lu,this.optionActivated=new lu,this._classList={},this.id="mat-autocomplete-"+iI++,this.inertGroups=(null==n?void 0:n.SAFARI)||!1,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=N_(t)}set classList(t){this._classList=t&&t.length?function(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new gb(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new nI(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(Ro(Tc),Ro(Qa),Ro(oI),Ro(W_))},t.\u0275dir=Gt({type:t,viewQuery:function(t,e){if(1&t&&(vu(Lc,7),vu(ZN,5)),2&t){let t;Au(t=ku())&&(e.template=t.first),Au(t=ku())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[po]}),t})(),cI=(()=>{class t extends aI{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275cmp=Yt({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){if(1&t&&(Tu(i,iA,5),Tu(i,oA,5)),2&t){let t;Au(t=ku())&&(e.optionGroups=t),Au(t=ku())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[Ua([{provide:JM,useExisting:t}]),po],ngContentSelectors:eI,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(Jo(),Lo(0,tI,3,4,"ng-template"))},directives:[Eh],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t})();const uI=new Ui("mat-autocomplete-scroll-strategy"),lI={provide:uI,deps:[Uv],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},hI={provide:BT,useExisting:rt(()=>pI),multi:!0};let dI=(()=>{class t{constructor(t,e,i,n,s,r,o,a,c,u,l){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=o,this._formField=a,this._document=c,this._viewportRuler=u,this._defaults=l,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=h.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new v,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=Xp(()=>this.autocomplete&&this.autocomplete.options?U(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe(Zp(1),Gp(()=>this.optionSelections))),this._scrollStrategy=r}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=N_(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return U(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Bd(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Bd(()=>this._overlayAttached)):Nd()).pipe(P(t=>t instanceof sA?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return U(_A(this._document,"click"),_A(this._document,"auxclick"),_A(this._document,"touchend")).pipe(Bd(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null,n=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&(!n||!n.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(27!==e||S_(t)||t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const i=this.autocomplete._keyManager.activeItem,n=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return U(this._zone.onStable.pipe(Zp(1)),this.autocomplete.options.changes.pipe(Af(()=>this._positionStrategy.reapplyLastPosition()),ZS(0))).pipe(Gp(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),Zp(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){var t;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!eb(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new hv(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,e.keydownEvents().subscribe(t=>{(27===t.keyCode&&!S_(t)||38===t.keyCode&&S_(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),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 i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new Cv({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];let s;s="above"===this.position?n:"below"===this.position?e:[...e,...n],t.withPositions(s)}_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 t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,i=aA(t,e.options,e.optionGroups);if(0===t&&1===i)e._setScrollTop(0);else if(e.panel){const i=e.options.toArray()[t];if(i){const t=i._getHostElement(),n=cA(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(n)}}}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(Uv),Ro(Nc),Ro($u),Ro(Tc),Ro(uI),Ro(Db,8),Ro(RT,9),Ro(Ll,8),Ro(ov),Ro(oI,8))},t.\u0275dir=Gt({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[ae]}),t})(),pI=(()=>{class t extends dI{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&Wo("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&So("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[Ua([hI]),po]}),t})(),fI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[lI],imports:[[Jv,uA,yM,Xh],av,uA,yM]}),t})(),gI=(()=>{class t{transform(t){return t&&t.value?t.value:"never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"validateExpiration",type:t,pure:!0}),t})();function mI(t,e){1&t&&No(0,"th",15)}function _I(t,e){if(1&t){const t=Ho();Do(0,"td",16),Do(1,"mat-checkbox",17),Wo("change",function(e){const i=Re(t).$implicit,n=Go();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),nu(2,"validateExpiration"),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();Qs(1),xo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","never"===su(2,3,t.expirationAttribute))}}function bI(t,e){1&t&&(Do(0,"th",15),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"MEMBERSHIP_LIST.NAME"))))}function yI(t,e){if(1&t&&(Do(0,"td",16),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.entity.name)}}function wI(t,e){1&t&&(Do(0,"th",15),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))))}function MI(t,e){if(1&t&&(Do(0,"td",18),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.entity.description)}}function AI(t,e){1&t&&(Do(0,"th",19),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"MEMBERSHIP_LIST.EXPIRATION"))))}function vI(t,e){if(1&t&&(Do(0,"td",18),Aa(1),nu(2,"validateExpiration"),Po()),2&t){const t=e.$implicit;Qs(1),Ta(" ",su(2,1,t.expirationAttribute)," ")}}function TI(t,e){1&t&&No(0,"th",15)}function kI(t,e){if(1&t){const t=Ho();Do(0,"td",18),Do(1,"button",20),Wo("click",function(){const e=Re(t).$implicit;return Go().extend(e)}),nu(2,"validateExpiration"),Aa(3),nu(4,"translate"),nu(5,"customTranslate"),Po(),Po()}if(2&t){const t=e.$implicit;Qs(1),xo("disabled","never"===su(2,2,t.expirationAttribute)),Qs(2),va(su(4,4,su(5,6,"MEMBERSHIP_LIST.EXTEND")))}}function SI(t,e){1&t&&No(0,"tr",21)}function CI(t,e){1&t&&No(0,"tr",22)}function EI(t,e){1&t&&(Do(0,"app-alert",23),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}let LI=(()=>{class t{constructor(){this.members=[],this.searchString="",this.selection=new ev(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.pageSize=10,this.filterValue="",this.extendMembership=new lu,this.pageSizeOptions=kE}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new Tz(this.members),this.setDataSource()}getDataForColumn(t,e){switch(e){case"name":return t.entity.name;case"description":return"description"in t.entity?t.entity.description:"";case"expirationAttribute":return t.expirationAttribute&&t.expirationAttribute.value?t.expirationAttribute.value:"never";default:return""}}exportData(t){xE(RE(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>zE(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>LE(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(t){return`${this.selection.isSelected(t)?"deselect":"select"} row ${t.entity.id+1}`}extend(t){this.extendMembership.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(t,e){if(1&t&&(vu(wN,7),vu(NE,7)),2&t){let t;Au(t=ku())&&(e.matSort=t.first),Au(t=ku())&&(e.child=t.first)}},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[ae],decls:21,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData"],["mat-table","","matSort","","matSortActive","expirationAttribute","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["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",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","disabled","change","click"],["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(t,e){1&t&&(Do(0,"div",0),Do(1,"perun-web-apps-table-wrapper",1),Wo("exportData",function(t){return e.exportData(t)}),Do(2,"table",2),Io(3,3),Lo(4,mI,1,0,"th",4),Lo(5,_I,3,5,"td",5),Bo(),Io(6,6),Lo(7,bI,4,5,"th",4),Lo(8,yI,2,1,"td",5),Bo(),Io(9,7),Lo(10,wI,4,5,"th",4),Lo(11,MI,2,1,"td",8),Bo(),Io(12,9),Lo(13,AI,4,5,"th",10),Lo(14,vI,3,3,"td",8),Bo(),Io(15,11),Lo(16,TI,1,0,"th",4),Lo(17,kI,6,8,"td",8),Bo(),Lo(18,SI,1,0,"tr",12),Lo(19,CI,1,0,"tr",13),Po(),Po(),Po(),Lo(20,EI,4,5,"app-alert",14)),2&t&&(xo("hidden",!e.dataSource.filteredData.length),Qs(1),xo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),Qs(1),xo("dataSource",e.dataSource),Qs(16),xo("matHeaderRowDef",e.displayedColumns),Qs(1),xo("matRowDefColumns",e.displayedColumns),Qs(1),xo("ngIf",!e.dataSource.filteredData.length))},directives:[NE,pz,wN,mz,gz,fz,yz,wz,xh,_z,bz,yD,CN,gA,Mz,Az,jz],pipes:[gI,iE,QE],styles:[""]}),t})();function zI(t,e){if(1&t&&(Do(0,"mat-option",13),Aa(1),Po()),2&t){const t=e.$implicit;xo("value",t),Qs(1),Ta(" ",t.name," ")}}function RI(t,e){if(1&t){const t=Ho();Do(0,"mat-form-field",7),Do(1,"mat-label"),Aa(2),nu(3,"translate"),Po(),No(4,"input",8),nu(5,"translate"),nu(6,"customTranslate"),Do(7,"mat-autocomplete",9,10),Wo("optionSelected",function(e){return Re(t),Go().filterByVo(e)}),Do(9,"mat-option",11),Aa(10),nu(11,"translate"),nu(12,"customTranslate"),Po(),Lo(13,zI,2,2,"mat-option",12),nu(14,"async"),Po(),Po()}if(2&t){const t=zo(8),e=Go();Qs(2),va(su(3,7,"GROUPS.SELECT_VO")),Qs(2),Zo("placeholder",su(5,9,su(6,11,"GROUPS.SELECT_VO"))),xo("formControl",e.myControl)("matAutocomplete",t),Qs(3),xo("displayWith",e.displayFn),Qs(3),va(su(11,13,su(12,15,"GROUPS.ALL"))),Qs(3),xo("ngForOf",su(14,17,e.filteredVos))}}function xI(t,e){1&t&&No(0,"mat-spinner",14)}function OI(t,e){1&t&&(Do(0,"app-alert",15),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"GROUPS.NO_GROUPS"))))}const DI=function(){return["name","description","expirationAttribute","extend"]};function PI(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"h4",16),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Do(5,"perun-web-apps-membership-list",17),Wo("extendMembership",function(e){return Re(t),Go().extendMembership(e)}),Po(),Po()}if(2&t){const t=Go();Qs(2),va(su(3,4,su(4,6,"GROUPS.MEMBER_GROUPS"))),Qs(3),xo("members",t.userMemberships)("selection",t.selection)("displayedColumns",Jc(8,DI))}}const NI=function(){return["name","description"]};function II(t,e){if(1&t&&(Do(0,"div",18),Do(1,"h4",16),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),No(5,"perun-web-apps-membership-list",19),Po()),2&t){const t=Go();Qs(2),va(su(3,3,su(4,5,"GROUPS.ADMINS_GROUPS"))),Qs(3),xo("members",t.adminMemberships)("displayedColumns",Jc(7,NI))}}let BI=(()=>{class t{constructor(t,e,i,n,s,r){this.usersService=t,this.memberService=e,this.groupService=i,this.store=n,this.vosManagerService=s,this.attributesManagerService=r,this.loading=!1,this.vos=[],this.myControl=new Rk,this.selection=new ev(!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(t=>{this.vos=t,this.filteredVos=this.myControl.valueChanges.pipe(nf(""),P(t=>this._filter(t))),this.getAllGroups()})}_filter(t){const e="string"==typeof t?t.toLowerCase():t.name.toLowerCase;return this.vos.filter(t=>t.name.toLowerCase().includes(e))}getAllGroups(){this.loading=!0;let t=0,e=0;this.userMemberships=[],this.adminMemberships=[];const i=this.store.getPerunPrincipal().roles.SELF.Member;i.length?e=i.length:this.loading=!1,i.forEach(i=>{e--,this.groupService.getMemberGroups(i).subscribe(n=>{t+=n.length,this.loading=0===t&&0!==e,n.forEach(e=>{this.attributesManagerService.getMemberGroupAttributes(i,e.id).subscribe(i=>{t--,this.userMemberships.push({entity:e,expirationAttribute:i.find(t=>"groupMembershipExpiration"===t.friendlyName)}),this.loading=0!==t})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(t=>{t.forEach(t=>{this.adminMemberships.push({entity:t,expirationAttribute:null})})})}displayFn(t){return t?t.name:null}filterByVo(t){if("all"===t.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;const e=t.option.value;this.memberService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.groupService.getMemberGroups(t.id).subscribe(e=>{let i=e.length;this.loading=0!==i,e.forEach(e=>{this.attributesManagerService.getMemberGroupAttributes(t.id,e.id).subscribe(t=>{i--,this.userMemberships.push({entity:e,expirationAttribute:t.find(t=>"groupMembershipExpiration"===t.friendlyName)}),this.loading=0!==i})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,e.id).subscribe(t=>{t.forEach(t=>{this.adminMemberships.push({entity:t,expirationAttribute:null})})})}}extendMembership(t){const e=this.store.get("registrar_base_url"),i=t.entity,n=this.vos.find(t=>t.id===i.voId).shortName;window.location.href=`${e}?vo=${n}&group=${t.entity.shortName}`}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lp),Ro(kp),Ro(Tp),Ro(BE),Ro(Rp),Ro(Ap))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Lo(5,RI,15,19,"mat-form-field",2),Lo(6,xI,1,0,"mat-spinner",3),Lo(7,OI,4,5,"app-alert",4),Lo(8,PI,6,9,"div",5),Lo(9,II,6,8,"div",6),Po()),2&t&&(Qs(1),va(su(2,6,su(3,8,"GROUPS.TITLE"))),Qs(4),xo("ngIf",!e.loading),Qs(1),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.userMemberships.length&&!e.adminMemberships.length&&!e.loading),Qs(1),xo("ngIf",!e.loading&&0!==e.userMemberships.length),Qs(1),xo("ngIf",!e.loading&&0!==e.adminMemberships.length))},directives:[xh,xT,vT,yL,qT,pI,dk,Kk,cI,oA,zh,cL,jz,LI],pipes:[iE,QE,Uh],styles:[""]}),t})();function FI(t,e){if(1&t&&(No(0,"input",3),nu(1,"translate")),2&t){const t=Go();Zo("placeholder",su(1,2,t.placeholder)),xo("formControl",t.formControl)}}function HI(t,e){if(1&t&&(No(0,"input",4),nu(1,"translate")),2&t){const t=Go();Zo("placeholder",su(1,2,t.placeholder)),xo("formControl",t.formControl)}}let qI=(()=>{class t{constructor(){this.filter=new lu,this.autoFocus=!1,this.formControl=new Rk}ngOnInit(){this.formControl.valueChanges.subscribe(t=>{let e=t.trim();e=e.toLowerCase(),this.filter.emit(e)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","ml-2"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(Do(0,"mat-form-field",0),Lo(1,FI,2,4,"input",1),Lo(2,HI,2,4,"input",2),Po()),2&t&&(Qs(1),xo("ngIf",e.autoFocus),Qs(1),xo("ngIf",!e.autoFocus))},directives:[xT,xh,yL,qT,LN,dk,Kk],pipes:[iE],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:auto!important}"]}),t})(),jI=0;const YI=new Ui("CdkAccordion");let WI=(()=>{class t{constructor(){this._stateChanges=new v,this._openCloseAllActions=new v,this.id="cdk-accordion-"+jI++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=N_(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Ua([{provide:YI,useExisting:t}]),ae]}),t})(),UI=0,KI=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=h.EMPTY,this.closed=new lu,this.opened=new lu,this.destroyed=new lu,this.expandedChange=new lu,this.id="cdk-accordion-child-"+UI++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=N_(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(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(t){this._disabled=N_(t)}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(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(Ro(YI,12),Ro(Tc),Ro(iv))},t.\u0275dir=Gt({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ua([{provide:YI,useValue:void 0}])]}),t})(),VI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})();const XI=["body"];function GI(t,e){}const $I=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],JI=["mat-expansion-panel-header","*","mat-action-row"];function QI(t,e){1&t&&No(0,"span",2),2&t&&xo("@indicatorRotate",Go()._getExpandedState())}const ZI=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],tB=["mat-panel-title","mat-panel-description","*"],eB=new Ui("MAT_ACCORDION"),iB={indicatorRotate:Bb("indicatorRotate",[Yb("collapsed, void",jb({transform:"rotate(0deg)"})),Yb("expanded",jb({transform:"rotate(180deg)"})),Ub("expanded <=> collapsed, void => collapsed",Fb("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:Bb("bodyExpansion",[Yb("collapsed, void",jb({height:"0px",visibility:"hidden"})),Yb("expanded",jb({height:"*",visibility:"visible"})),Ub("expanded <=> collapsed, void => collapsed",Fb("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let nB=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lc))},t.\u0275dir=Gt({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),sB=0;const rB=new Ui("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let oB=(()=>{class t extends KI{constructor(t,e,i,n,s,r,o){super(t,e,i),this._viewContainerRef=n,this._animationMode=r,this._hideToggle=!1,this.afterExpand=new lu,this.afterCollapse=new lu,this._inputChanges=new v,this._headerId="mat-expansion-panel-header-"+sB++,this._bodyAnimationDone=new v,this.accordion=t,this._document=s,this._bodyAnimationDone.pipe(RA((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=N_(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(nf(null),Bd(()=>this.expanded&&!this._portal),Zp(1)).subscribe(()=>{this._portal=new hv(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(Ro(eB,12),Ro(Tc),Ro(iv),Ro(Nc),Ro(Ll),Ro(aM,8),Ro(rB,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&Tu(i,nB,5),2&t){let t;Au(t=ku())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&vu(XI,5),2&t){let t;Au(t=ku())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&ua("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ua([{provide:eB,useValue:void 0}]),po,ae],ngContentSelectors:JI,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(Jo($I),Qo(0),Do(1,"div",0,1),Wo("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),Do(3,"div",2),Qo(4,1),Lo(5,GI,0,0,"ng-template",3),Po(),Qo(6,2),Po()),2&t&&(Qs(1),xo("@bodyExpansion",e._getExpandedState())("id",e.id),So("aria-labelledby",e._headerId),Qs(4),xo("cdkPortalOutlet",e._portal))},directives:[gv],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[iB.bodyExpansion]},changeDetection:0}),t})(),aB=(()=>{class t{constructor(t,e,i,n,s,r){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=r,this._parentChangeSubscription=h.EMPTY;const o=t.accordion?t.accordion._stateChanges.pipe(Bd(t=>!(!t.hideToggle&&!t.togglePosition))):Kp;this._parentChangeSubscription=U(t.opened,t.closed,o,t._inputChanges.pipe(Bd(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Bd(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.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 t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case 32:case 13:S_(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(Ro(oB,1),Ro(Qa),Ro(Lb),Ro(Tc),Ro(rB,8),Ro(aM,8))},t.\u0275cmp=Yt({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&Wo("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(So("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),ca("height",e._getHeaderHeight()),ua("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:tB,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(Jo(ZI),Do(0,"span",0),Qo(1),Qo(2,1),Qo(3,2),Po(),Lo(4,QI,1,1,"span",1)),2&t&&(Qs(4),xo("ngIf",e._showToggle()))},directives:[xh],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}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[iB.indicatorRotate]},changeDetection:0}),t})(),cB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),uB=(()=>{class t extends WI{constructor(){super(...arguments),this._ownHeaders=new du,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=N_(t)}ngAfterContentInit(){this._headers.changes.pipe(nf(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new mb(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){if(1&t&&Tu(i,aB,5),2&t){let t;Au(t=ku())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&ua("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[Ua([{provide:eB,useExisting:t}]),po]}),t})(),lB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Xh,yM,VI,mv]]}),t})();function hB(t,e){1&t&&(Do(0,"mat-icon",1),nu(1,"translate"),Aa(2," visibility\n"),Po()),2&t&&Zo("matTooltip",su(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let dB=(()=>{class t{constructor(){this.recentIds=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(t,e){1&t&&Lo(0,hB,3,3,"mat-icon",0),2&t&&xo("ngIf",e.recentIds.indexOf(e.id)>-1)},directives:[xh,NC,PS],pipes:[iE],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),t})();function pB(t,e){if(1&t){const t=Ho();Do(0,"span",3),Wo("click",function(){return Re(t),Go().changeStatus()}),nu(1,"translate"),Do(2,"mat-icon",4),Aa(3,"check_circle_outline"),Po(),Po()}2&t&&Zo("matTooltip",su(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function fB(t,e){if(1&t){const t=Ho();Do(0,"span",3),Wo("click",function(){return Re(t),Go().changeStatus()}),nu(1,"translate"),Do(2,"mat-icon",5),Aa(3,"block"),Po(),Po()}2&t&&Zo("matTooltip",su(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function gB(t,e){if(1&t&&(Do(0,"span",6),nu(1,"translate"),Do(2,"mat-icon",7),Aa(3,"report"),Po(),Po()),2&t){const t=Go();ea("matTooltip","",su(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",t.failureCause,"")}}function mB(t,e){1&t&&(Do(0,"span",6),nu(1,"translate"),Do(2,"mat-icon",8),Aa(3,"autorenew"),Po(),Po()),2&t&&Zo("matTooltip",su(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let _B=(()=>{class t{constructor(t){this.dialog=t,this.status="",this.statusChange=new lu}changeStatus(){const t=SE();t.width="500px",t.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(mR,t).afterClosed().subscribe(t=>{t&&this.statusChange.emit()})}}return t.\u0275fac=function(e){return new(e||t)(Ro(bE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],["matTooltipPosition","above",3,"matTooltip"],[1,"red"],[1,"black"]],template:function(t,e){1&t&&(Do(0,"div",0),Lo(1,pB,4,3,"span",1),Lo(2,fB,4,3,"span",1),Lo(3,gB,4,4,"span",2),Lo(4,mB,4,3,"span",2),Po()),2&t&&(Qs(1),xo("ngIf","ACTIVE"===e.status),Qs(1),xo("ngIf","INACTIVE"===e.status),Qs(1),xo("ngIf","FAILED"===e.status),Qs(1),xo("ngIf","PROCESSING"===e.status))},directives:[xh,PS,NC],pipes:[iE],styles:[""]}),t})(),bB=(()=>{class t{transform(t){if(null==t)return null;let e="";return t.forEach(function(t){e=e.concat(t.tagName)}),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"resourceTagsToString",type:t,pure:!0}),t})(),yB=(()=>{class t{transform(t,e){return e?`/organizations/${t.voId}/resources/${t.id}`:`/facilities/${t.facilityId}/resources/${t.id}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"getResourceRoute",type:t,pure:!0}),t})();function wB(t,e){if(1&t){const t=Ho();Do(0,"th",20),Do(1,"mat-checkbox",21),Wo("change",function(e){Re(t);const i=Go();return e?i.masterToggle():null}),Po(),Po()}if(2&t){const t=Go();Qs(1),xo("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function MB(t,e){if(1&t){const t=Ho();Do(0,"td",22),Do(1,"mat-checkbox",23),Wo("change",function(e){const i=Re(t).$implicit,n=Go();return e?n.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();Qs(1),xo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function AB(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")))}function vB(t,e){if(1&t&&(Do(0,"td",22),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.id)}}function TB(t,e){1&t&&No(0,"th",20)}function kB(t,e){if(1&t&&(Do(0,"td",25),No(1,"perun-web-apps-recently-viewed-icon",26),Po()),2&t){const t=e.$implicit,i=Go();Qs(1),xo("recentIds",i.recentIds)("id",t.id)}}function SB(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")))}function CB(t,e){if(1&t&&(Do(0,"td",25),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.name)}}function EB(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")))}function LB(t,e){if(1&t&&(Do(0,"td",25),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.vo.name)}}function zB(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")))}function RB(t,e){if(1&t){const t=Ho();Do(0,"td",25),Do(1,"perun-web-apps-group-resource-status",27),Wo("mouseenter",function(){return Re(t),Go().disabledRouting=!0})("mouseleave",function(){Re(t);const e=Go();return e.disabledRouting=e.disableRouting})("statusChange",function(){return Re(t),Go().refreshTable.emit()}),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();Qs(1),xo("theme","group-theme")("resourceId",t.id)("groupId",i.groupId)("failureCause",t.failureCause)("status",t.status)}}function xB(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")))}function OB(t,e){if(1&t&&(Do(0,"td",25),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.facility.name)}}function DB(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")))}function PB(t,e){if(1&t&&(Do(0,"td",25),Aa(1),nu(2,"resourceTagsToString"),Po()),2&t){const t=e.$implicit;Qs(1),va(su(2,1,t.resourceTags))}}function NB(t,e){1&t&&(Do(0,"th",24),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")))}function IB(t,e){if(1&t&&(Do(0,"td",25),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.description)}}function BB(t,e){1&t&&No(0,"tr",28)}const FB=function(t){return[t]};function HB(t,e){if(1&t&&(No(0,"tr",29),nu(1,"getResourceRoute"),nu(2,"getResourceRoute")),2&t){const t=e.$implicit,i=Go();ua("cursor-pointer",!i.disableRouting)("disable-outline",i.disabledRouting),xo("perunWebAppsMiddleClickRouterLink",Qc(12,FB,i.disabledRouting?null:ru(1,6,t,i.routingVo)))("routerLink",i.disabledRouting?null:ru(2,9,t,i.routingVo))}}function qB(t,e){1&t&&(Do(0,"app-alert",30),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function jB(t,e){1&t&&(Do(0,"app-alert",30),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let YB=(()=>{class t{constructor(t,e){this.guiAuthResolver=t,this.tableCheckbox=e,this.resources=[],this.selection=new ev(!0,[]),this.pageSize=10,this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","name","vo","status","facility","tags","description"],this.pageSizeOptions=kE,this.groupId=null,this.page=new lu,this.refreshTable=new lu,this.allSelected=new lu,this.removeAuth=!1,this.addAuth=!1}set matSort(t){this.sort=t}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource(),this.setAuth()}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return t.vo.name;case"name":return t.name;case"facility":return t.facility.name;case"description":return t.description;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"tags":{if(!t.resourceTags)return t[e];let i="";return t.resourceTags.forEach(function(t){i=i.concat(t.tagName)}),i}case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}exportData(t){xE(RE(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new Tz,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>zE(t,e,this.displayedColumns,this.getDataForColumn,this,!0),this.dataSource.sortData=(t,e)=>LE(t,e,this.getDataForColumn,this)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const t=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource);return this.allSelected.emit(t),t}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1),this.setAuth()}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const t=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((e,i)=>e&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",t.concat([i])),!0),this.addAuth=this.selection.selected.reduce((e,i)=>e&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",t.concat([i])),!0)}itemSelectionToggle(t){this.selection.toggle(t),this.setAuth()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Ip),Ro(XE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(t,e){if(1&t&&(vu(wN,7),vu(NE,7)),2&t){let t;Au(t=ku())&&(e.matSort=t.first),Au(t=ku())&&(e.child=t.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId"},outputs:{page:"page",refreshTable:"refreshTable",allSelected:"allSelected"},features:[ae],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","status"],["matColumnDef","facility"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],[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(t,e){1&t&&(Do(0,"div",0),Do(1,"perun-web-apps-table-wrapper",1),Wo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),Do(2,"table",2),Io(3,3),Lo(4,wB,2,3,"th",4),Lo(5,MB,2,2,"td",5),Bo(),Io(6,6),Lo(7,AB,3,3,"th",7),Lo(8,vB,2,1,"td",8),Bo(),Io(9,9),Lo(10,TB,1,0,"th",4),Lo(11,kB,2,2,"td",10),Bo(),Io(12,11),Lo(13,SB,3,3,"th",7),Lo(14,CB,2,1,"td",10),Bo(),Io(15,12),Lo(16,EB,3,3,"th",7),Lo(17,LB,2,1,"td",10),Bo(),Io(18,13),Lo(19,zB,3,3,"th",7),Lo(20,RB,2,5,"td",10),Bo(),Io(21,14),Lo(22,xB,3,3,"th",7),Lo(23,OB,2,1,"td",10),Bo(),Io(24,15),Lo(25,DB,3,3,"th",7),Lo(26,PB,3,3,"td",10),Bo(),Io(27,16),Lo(28,NB,3,3,"th",7),Lo(29,IB,2,1,"td",10),Bo(),Lo(30,BB,1,0,"tr",17),Lo(31,HB,3,14,"tr",18),Po(),Po(),Po(),Lo(32,qB,3,3,"app-alert",19),Lo(33,jB,3,3,"app-alert",19)),2&t&&(xo("hidden",0===e.dataSource.filteredData.length||0===e.resources.length),Qs(1),xo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),Qs(1),xo("dataSource",e.dataSource),Qs(28),xo("matHeaderRowDef",e.displayedColumns),Qs(1),xo("matRowDefColumns",e.displayedColumns),Qs(1),xo("ngIf",0===e.dataSource.filteredData.length&&0!==e.resources.length),Qs(1),xo("ngIf",0===e.resources.length))},directives:[NE,pz,wN,mz,gz,fz,yz,wz,xh,_z,yD,bz,CN,dB,_B,Mz,Az,zN,n_,jz],pipes:[iE,bB,yB],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})();function WB(t,e){1&t&&No(0,"mat-spinner",8)}const UB=function(){return["name","description"]};function KB(t,e){1&t&&No(0,"perun-web-apps-resources-list",9),2&t&&xo("resources",Go(3).resources)("displayedColumns",Jc(3,UB))("disableRouting",!0)}function VB(t,e){if(1&t&&(Lo(0,WB,1,0,"mat-spinner",6),Lo(1,KB,1,4,"perun-web-apps-resources-list",7)),2&t){const t=Go(2);xo("ngIf",t.loading),Qs(1),xo("ngIf",!t.loading)}}function XB(t,e){if(1&t){const t=Ho();Do(0,"mat-expansion-panel",4),Wo("opened",function(){const e=Re(t).$implicit;return Go().getMemberData(e)}),Do(1,"mat-expansion-panel-header"),Do(2,"mat-panel-title"),Aa(3),Po(),Po(),Lo(4,VB,2,2,"ng-template",5),Po()}if(2&t){const t=e.$implicit;Qs(3),Ta(" ",t.name," ")}}let GB=(()=>{class t{constructor(t,e,i,n){this.usersManagerService=t,this.membersManagerService=e,this.resourcesManagerService=i,this.storage=n,this.resources=[],this.filteredVos=[]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(t=>{this.vos=t,this.filteredVos=t})}getMemberData(t){this.loading=!0,this.membersManagerService.getMemberByUser(t.id,this.userId).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(t=>{this.resources=t,this.loading=!1})})}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lp),Ro(kp),Ro(Ep),Ro(BE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Do(5,"perun-web-apps-immediate-filter",2),Wo("filter",function(t){return e.applyFilter(t)}),nu(6,"translate"),nu(7,"customTranslate"),Po(),Do(8,"mat-accordion"),Lo(9,XB,5,1,"mat-expansion-panel",3),Po(),Po()),2&t&&(Qs(1),va(su(2,3,su(3,5,"SERVICES.TITLE"))),Qs(4),xo("placeholder",su(6,7,su(7,9,"SERVICES.FILTER"))),Qs(4),xo("ngForOf",e.filteredVos))},directives:[qI,uB,zh,oB,aB,cB,nB,xh,cL,YB],pipes:[iE,QE],styles:[""]}),t})();function $B(t,e){if(1&t){const t=Ho();Do(0,"perun-web-apps-immediate-filter",5),Wo("filter",function(e){return Re(t),Go().applyFilter(e)}),Po()}2&t&&xo("placeholder","ORGANIZATIONS.FILTER")}function JB(t,e){1&t&&No(0,"mat-spinner",6)}const QB=function(){return["name","expirationAttribute","extend"]};function ZB(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"perun-web-apps-membership-list",11),Wo("extendMembership",function(e){return Re(t),Go(2).extendMembership(e)}),Po(),Po()}if(2&t){const t=Go(2);Qs(1),xo("members",t.userMemberships)("selection",t.selection)("filterValue",t.filterValue)("displayedColumns",Jc(4,QB))}}function tF(t,e){1&t&&(Do(0,"app-alert",12),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function eF(t,e){if(1&t&&(Do(0,"div",7),Do(1,"h1",8),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Lo(5,ZB,2,5,"div",9),Lo(6,tF,4,5,"app-alert",10),Po()),2&t){const t=Go();Qs(2),va(su(3,3,su(4,5,"ORGANIZATIONS.IS_MEMBER"))),Qs(3),xo("ngIf",0!==t.userMemberships.length),Qs(1),xo("ngIf",0===t.userMemberships.length)}}function iF(t,e){1&t&&(Do(0,"app-alert",12),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}const nF=function(){return["name"]};function sF(t,e){if(1&t&&No(0,"perun-web-apps-membership-list",14),2&t){const t=Go(2);xo("members",t.adminMemberships)("filterValue",t.filterValue)("displayedColumns",Jc(3,nF))}}function rF(t,e){if(1&t&&(Do(0,"div",7),Do(1,"h1",8),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Lo(5,iF,4,5,"app-alert",10),Lo(6,sF,1,4,"perun-web-apps-membership-list",13),Po()),2&t){const t=Go();Qs(2),va(su(3,3,su(4,5,"ORGANIZATIONS.IS_ADMIN"))),Qs(3),xo("ngIf",!t.adminMemberships.length),Qs(1),xo("ngIf",t.adminMemberships.length)}}let oF=(()=>{class t{constructor(t,e,i){this.usersService=t,this.store=e,this.membersService=i,this.filterValue="",this.selection=new ev(!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(t=>{this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(e=>{this.vosCount=t.length+e.length,this.fillMemberships(t,this.userMemberships),this.fillMemberships(e,this.adminMemberships)})})}applyFilter(t){this.filterValue=t}isEverythingLoaded(){this.vosCount--,this.loading=0!==this.vosCount}fillMemberships(t,e){this.membersService.getMembersByUser(this.userId).subscribe(i=>{t.forEach(t=>{const n=i.find(e=>e.voId===t.id);n?this.membersService.getRichMemberWithAttributes(n.id).subscribe(i=>{const n=i.memberAttributes.find(t=>"membershipExpiration"===t.friendlyName);e.push({entity:t,expirationAttribute:n}),this.isEverythingLoaded()}):(e.push({entity:t,expirationAttribute:null}),this.isEverythingLoaded())})})}extendMembership(t){const e=this.store.get("registrar_base_url");window.location.href=`${e}?vo=${t.entity.shortName}`}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lp),Ro(BE),Ro(kp))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Lo(5,$B,1,1,"perun-web-apps-immediate-filter",2),Lo(6,JB,1,0,"mat-spinner",3),Lo(7,eF,7,7,"div",4),Lo(8,rF,7,7,"div",4),Po()),2&t&&(Qs(1),va(su(2,5,su(3,7,"ORGANIZATIONS.TITLE"))),Qs(4),xo("ngIf",!e.loading),Qs(1),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading),Qs(1),xo("ngIf",!e.loading))},directives:[xh,qI,cL,LI,jz],pipes:[iE,QE],styles:[""]}),t})(),aF=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(t,e){1&t&&(Do(0,"div",0),No(1,"router-outlet"),Po())},directives:[o_],styles:[""]}),t})(),cF=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.password=""}ngOnInit(){this.password=this.data.password}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(pE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Do(5,"p"),Aa(6),nu(7,"translate"),nu(8,"customTranslate"),Po(),Do(9,"label"),No(10,"input",2),Po(),Po(),Do(11,"div",3),Do(12,"button",4),Wo("click",function(){return e.onClose()}),Aa(13),nu(14,"translate"),nu(15,"customTranslate"),Po(),Do(16,"button",5),Aa(17),nu(18,"translate"),nu(19,"customTranslate"),Po(),Po()),2&t&&(Qs(1),va(su(2,6,su(3,8,"DIALOGS.SHOW_PASSWORD.TITLE"))),Qs(5),va(su(7,10,su(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),Qs(4),xo("value",e.password),Qs(3),Ta(" ",su(14,14,su(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),Qs(3),xo("cdkCopyToClipboard",e.password),Qs(1),Ta(" ",su(18,18,su(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},directives:[wE,ME,AE,gA,Pz],pipes:[iE,QE],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),t})();function uF(t,e){1&t&&No(0,"mat-spinner",7)}function lF(t,e){1&t&&No(0,"th",16)}function hF(t,e){if(1&t&&(Do(0,"td",17),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),Ta(" ",t," ")}}function dF(t,e){1&t&&No(0,"tr",18)}function pF(t,e){1&t&&No(0,"tr",19)}function fF(t,e){if(1&t&&(Do(0,"div",8),Do(1,"p"),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Do(5,"div",9),Aa(6),nu(7,"translate"),nu(8,"customTranslate"),Po(),Do(9,"table",10),Io(10,11),Lo(11,lF,1,0,"th",12),Lo(12,hF,2,1,"td",13),Bo(),Lo(13,dF,1,0,"tr",14),Lo(14,pF,1,0,"tr",15),Po(),Po()),2&t){const t=Go();Qs(2),Ta(" ",su(3,5,su(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),Qs(4),Ta(" ",su(7,9,su(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),Qs(3),xo("dataSource",t.dataSource),Qs(4),xo("matHeaderRowDef",t.displayedColumns),Qs(1),xo("matRowDefColumns",t.displayedColumns)}}let gF=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.usersManagerService=i,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new Tz(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 t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(pE),Ro(Lp))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Lo(5,uF,1,0,"mat-spinner",2),Po(),Lo(6,fF,15,13,"div",3),Do(7,"div",4),Do(8,"button",5),Wo("click",function(){return e.onCancel()}),Aa(9),nu(10,"translate"),nu(11,"customTranslate"),Po(),Do(12,"button",6),Wo("click",function(){return e.onSubmit()}),Aa(13),nu(14,"translate"),nu(15,"customTranslate"),Po(),Po()),2&t&&(Qs(1),va(su(2,5,su(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),Qs(4),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading),Qs(3),Ta(" ",su(10,9,su(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),Qs(4),Ta(" ",su(14,13,su(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},directives:[wE,xh,AE,gA,cL,ME,pz,mz,gz,fz,yz,wz,_z,bz,Mz,Az],pipes:[iE,QE],styles:[""]}),t})();function mF(t,e){1&t&&No(0,"th",12)}function _F(t,e){if(1&t){const t=Ho();Do(0,"td",13),Do(1,"mat-checkbox",14),Wo("change",function(e){const i=Re(t).$implicit,n=Go();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();Qs(1),xo("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function bF(t,e){if(1&t&&(Do(0,"th",15),Aa(1),Po()),2&t){const t=Go();Qs(1),va(t.headerColumnText)}}function yF(t,e){if(1&t&&(Do(0,"td",16),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t)}}function wF(t,e){1&t&&No(0,"tr",17)}function MF(t,e){1&t&&No(0,"tr",18)}function AF(t,e){if(1&t&&(Do(0,"app-alert",19),Aa(1),Po()),2&t){const t=Go();Qs(1),Ta(" ",t.alertText,"\n")}}let vF=(()=>{class t{constructor(){this.values=[],this.selection=new ev(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"],this.pageSize=5}ngOnChanges(){this.values=this.values?this.values:[],this.dataSource=new Tz(this.values),this.setDataSource()}getExportDataForColumn(t){return t}exportData(t){xE(RE(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(t){return(this.selection.isSelected(t)?"deselect":"select")+" row"}ngAfterViewInit(){this.setDataSource()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-string-list"]],viewQuery:function(t,e){if(1&t&&vu(NE,7),2&t){let t;Au(t=ku())&&(e.child=t.first)}},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[ae],decls:12,vars:7,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSize","exportData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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",""],["mat-cell","",1,"static-column-size"],["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(t,e){1&t&&(Do(0,"div",0),Do(1,"perun-web-apps-table-wrapper",1),Wo("exportData",function(t){return e.exportData(t)}),Do(2,"table",2),Io(3,3),Lo(4,mF,1,0,"th",4),Lo(5,_F,2,2,"td",5),Bo(),Io(6,6),Lo(7,bF,2,1,"th",7),Lo(8,yF,2,1,"td",8),Bo(),Lo(9,wF,1,0,"tr",9),Lo(10,MF,1,0,"tr",10),Po(),Po(),Po(),Lo(11,AF,2,1,"app-alert",11)),2&t&&(xo("hidden",!e.values.length),Qs(1),xo("dataLength",e.dataSource.filteredData.length)("pageSize",e.pageSize),Qs(1),xo("dataSource",e.dataSource),Qs(7),xo("matHeaderRowDef",e.displayedColumns),Qs(1),xo("matRowDefColumns",e.displayedColumns),Qs(1),xo("ngIf",0===e.values.length))},directives:[NE,pz,mz,gz,fz,yz,wz,xh,_z,bz,yD,Mz,Az,jz],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),t})();function TF(t,e){if(1&t&&No(0,"perun-web-apps-string-list",10),2&t){const t=Go();xo("values",t.displayedValues)("selection",t.selection)("alertText",t.alertText)("headerColumnText",t.headerColumnText)}}function kF(t,e){1&t&&No(0,"mat-spinner",11)}let SF=(()=>{class t{constructor(t,e,i,n,s){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,this.usersManagerService=s,this.altPasswordCtrl=new Rk(null,[VT.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new ev(!1,[]),n.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("ALERTS.NO_ALT_PASSWORDS").subscribe(t=>this.alertText=t),n.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}ngOnInit(){this.getAltPasswords()}createPassword(){const t=this.generatePassword();this.usersManagerService.createAlternativePassword(this.userId,this.altPasswordCtrl.value,"einfra",t).subscribe(()=>{const e=SE();e.width="600px",e.data={password:t},this.dialog.open(cF,e),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let e="",i=0;const n=t.length;for(;i<16;++i)e+=t.charAt(Math.random()*n);return e.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),e}getAltPasswords(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(t=>{if(this.altPasswordsAttribute=t,t.value){const e=Object.keys(t.value);this.passwordDescriptions=new Set(e),this.displayedValues=Array.from(this.passwordDescriptions.values())}else this.displayedValues=[];this.loading=!1})}alreadyContainsValue(t){return this.passwordDescriptions.has(t)}removeAltPasswords(){const t=SE();t.width="600px",t.data={description:this.selection.selected,passwordId:this.altPasswordsAttribute.value[this.selection.selected[0]],userId:this.userId},this.dialog.open(gF,t).afterClosed().subscribe(t=>{t&&(this.getAltPasswords(),this.selection.clear())})}}return t.\u0275fac=function(e){return new(e||t)(Ro(BE),Ro(Ap),Ro(bE),Ro(eE),Ro(Lp))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"div",0),Do(1,"h1",1),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Do(5,"mat-form-field",2),Do(6,"label",2),No(7,"input",3),nu(8,"translate"),nu(9,"customTranslate"),Po(),Po(),Do(10,"button",4),Wo("click",function(){return e.createPassword()}),Aa(11),nu(12,"translate"),nu(13,"customTranslate"),Po(),Do(14,"app-alert",5),Aa(15),nu(16,"translate"),nu(17,"customTranslate"),Po(),Do(18,"h1",6),Aa(19),nu(20,"translate"),nu(21,"customTranslate"),Po(),Do(22,"button",7),Wo("click",function(){return e.removeAltPasswords()}),Aa(23),nu(24,"translate"),nu(25,"customTranslate"),Po(),Lo(26,TF,1,4,"perun-web-apps-string-list",8),Lo(27,kF,1,0,"mat-spinner",9),Po()),2&t&&(Qs(2),va(su(3,11,su(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),Qs(5),Zo("placeholder",su(8,15,su(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),xo("formControl",e.altPasswordCtrl),Qs(3),xo("disabled",!e.altPasswordCtrl.valid||e.alreadyContainsValue(e.altPasswordCtrl.value)),Qs(1),va(su(12,19,su(13,21,"ALT_PASSWORDS.GENERATE"))),Qs(4),va(su(16,23,su(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),Qs(4),va(su(20,27,su(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),Qs(3),xo("disabled",e.selection.isEmpty()),Qs(1),va(su(24,31,su(25,33,"ALT_PASSWORDS.REMOVE"))),Qs(3),xo("ngIf",!e.loading),Qs(1),xo("ngIf",e.loading))},directives:[xT,yL,qT,dk,Kk,gA,jz,xh,vF,cL],pipes:[iE,QE],styles:[""]}),t})();function CF(t,e){if(1&t&&(Do(0,"mat-list-item",1),Do(1,"mat-icon"),Aa(2),Po(),Do(3,"p",2),Aa(4),nu(5,"translate"),nu(6,"customTranslate"),Po(),Po()),2&t){const t=e.$implicit;xo("routerLink",t.url),Qs(2),va(t.icon),Qs(2),va(su(5,3,su(6,5,t.label)))}}let EF=(()=>{class t{constructor(t){this.storeService=t,this.items=[]}ngOnInit(){this.initItems();const t=this.storeService.get("displayed_tabs");this.items=this.items.filter(e=>t.includes(e.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:"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 t.\u0275fac=function(e){return new(e||t)(Ro(BE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-settings-overview"]],decls:2,vars:1,consts:[["matRipple","",3,"routerLink",4,"ngFor","ngForOf"],["matRipple","",3,"routerLink"],[1,"ml-2","mt-auto","mb-auto"]],template:function(t,e){1&t&&(Do(0,"mat-list"),Lo(1,CF,7,7,"mat-list-item",0),Po()),2&t&&(Qs(1),xo("ngForOf",e.items))},directives:[fO,zh,_O,VM,n_,NC],pipes:[iE,QE],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),t})();const LF=["row","column","row-reverse","column-reverse"];function zF(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let RF=(()=>{class t extends lx{buildStyles(t){return function(t){let[e,i,n]=function(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return LF.find(t=>t===e)||(e=LF[0]),"inline"===i&&(i="inline"!==n?n:"",n="inline"),[e,zF(i),!!n]}(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const xF=["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 OF=(()=>{class t extends jR{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout",this.styleCache=PF,this.init()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(ux),Ro(RF),Ro(hx))},t.\u0275dir=Gt({type:t,features:[po]}),t})(),DF=(()=>{class t extends OF{constructor(){super(...arguments),this.inputs=xF}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,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:[po]}),t})();const PF=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let NF=(()=>{class t extends lx{buildStyles(t){const e={};switch(t=t||"stretch"){case"start":e["align-self"]="flex-start";break;case"end":e["align-self"]="flex-end";break;default:e["align-self"]=t}return e}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const IF=["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 BF=(()=>{class t extends jR{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="flex-align",this.styleCache=FF,this.init()}}return t.\u0275fac=function(e){return new(e||t)(Ro(Qa),Ro(ux),Ro(NF),Ro(hx))},t.\u0275dir=Gt({type:t,features:[po]}),t})();const FF=new Map;let HF=(()=>{class t extends BF{constructor(){super(...arguments),this.inputs=IF}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275dir=Gt({type:t,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:[po]}),t})();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let qF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[xR,Pb]]}),t})();function jF(t,e){if(1&t&&(Do(0,"mat-option",13),Aa(1),Po()),2&t){const t=e.$implicit;xo("value",Go().selectedUnit),Qs(1),Ta(" ",t," ")}}let YF=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.rtMessagesService=i,this.notificator=n,this.translate=s,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",s.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new Rk(null,[VT.required]),this.newValueControl=new Rk(null,[VT.required,VT.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const t=(new JE).transform(this.data.user);this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${t} (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`).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(pE),Ro(Sp),Ro(WE),Ro(eE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Do(5,"div"),Do(6,"p",2),Aa(7),nu(8,"translate"),nu(9,"customTranslate"),Po(),Do(10,"p"),Aa(11),Po(),Po(),Do(12,"div"),Do(13,"p",2),Aa(14),nu(15,"translate"),nu(16,"customTranslate"),Po(),Do(17,"p"),Aa(18),Po(),Po(),Do(19,"div",3),Do(20,"mat-form-field"),Do(21,"label",4),No(22,"input",5),nu(23,"translate"),nu(24,"customTranslate"),Po(),Po(),Do(25,"mat-select",6),Wo("valueChange",function(t){return e.selectedUnit=t}),Lo(26,jF,2,2,"mat-option",7),Po(),Po(),Do(27,"div"),Do(28,"mat-form-field",8),Do(29,"label",4),No(30,"textarea",9),nu(31,"translate"),nu(32,"customTranslate"),Po(),Po(),Po(),Do(33,"div",10),Do(34,"button",11),Wo("click",function(){return e.onCancel()}),Aa(35),nu(36,"translate"),nu(37,"customTranslate"),Po(),Do(38,"button",12),Wo("click",function(){return e.onSubmit()}),Aa(39),nu(40,"translate"),nu(41,"customTranslate"),Po(),Po(),Po()),2&t&&(Qs(1),va(su(2,14,su(3,16,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.TITLE"))),Qs(6),va(su(8,18,su(9,20,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))),Qs(4),va(e.resource),Qs(3),va(su(15,22,su(16,24,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))),Qs(4),va(e.currentQuota),Qs(4),Zo("placeholder",su(23,26,su(24,28,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),xo("formControl",e.newValueControl),Qs(3),xo("value",e.selectedUnit),Qs(1),xo("ngForOf",e.units),Qs(4),Zo("placeholder",su(31,30,su(32,32,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),xo("formControl",e.reasonControl),Qs(5),Ta(" ",su(36,34,su(37,36,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),Qs(3),xo("disabled",e.reasonControl.invalid),Qs(1),Ta(" ",su(40,38,su(41,40,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},directives:[wE,DF,HF,xT,yL,jk,qT,$k,dk,Kk,yS,zh,AE,gA,oA],pipes:[iE,QE],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-ripple.mat-form-field-ripple[_ngcontent-%COMP%], .mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%]{display:none}"]}),t})();function WF(t,e){1&t&&No(0,"mat-spinner",8)}function UF(t,e){1&t&&(Do(0,"app-alert",9),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function KF(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"p"),Do(2,"strong"),Aa(3),nu(4,"translate"),nu(5,"customTranslate"),Po(),Aa(6),Po(),Do(7,"p",10),Aa(8),nu(9,"translate"),nu(10,"customTranslate"),Po(),Do(11,"button",11),Wo("click",function(){Re(t);const e=Go().$implicit,i=Go(3).$implicit;return Go().requestChangeQuota(i,e)}),Aa(12),nu(13,"translate"),nu(14,"customTranslate"),Po(),Po()}if(2&t){const t=Go(5);Qs(3),va(su(4,4,su(5,6,"DATA_QUOTAS.QUOTA"))),Qs(3),Ta(" ",t.quotasMarkup,""),Qs(2),va(su(9,8,su(10,10,"DATA_QUOTAS.QUOTA_INFO"))),Qs(4),va(su(13,12,su(14,14,"DATA_QUOTAS.CHANGE")))}}function VF(t,e){1&t&&(Do(0,"p"),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function XF(t,e){if(1&t){const t=Ho();Do(0,"mat-expansion-panel",3),Wo("opened",function(){const e=Re(t).$implicit;return Go(4).getResAttributes(e.id)}),Do(1,"mat-expansion-panel-header"),Do(2,"mat-panel-title"),Aa(3),Po(),Po(),Lo(4,KF,15,16,"div",7),Lo(5,VF,4,5,"p",7),Po()}if(2&t){const t=e.$implicit,i=Go(4);Qs(3),Ta(" ",t.name," "),Qs(1),xo("ngIf",i.defaultQuota),Qs(1),xo("ngIf",!i.defaultQuota)}}function GF(t,e){if(1&t&&(Do(0,"mat-accordion"),Lo(1,XF,6,3,"mat-expansion-panel",2),Po()),2&t){const t=Go(3);Qs(1),xo("ngForOf",t.resources)}}function $F(t,e){if(1&t&&(Lo(0,WF,1,0,"mat-spinner",5),Lo(1,UF,4,5,"app-alert",6),Lo(2,GF,2,1,"mat-accordion",7)),2&t){const t=Go(2);xo("ngIf",t.loading),Qs(1),xo("ngIf",0===t.resources.length&&!t.loading),Qs(1),xo("ngIf",t.resources.length&&!t.loading)}}function JF(t,e){if(1&t){const t=Ho();Do(0,"mat-expansion-panel",3),Wo("opened",function(){const e=Re(t).$implicit;return Go().getMembersResources(e)}),Do(1,"mat-expansion-panel-header"),Do(2,"mat-panel-title"),Aa(3),Po(),Po(),Lo(4,$F,3,3,"ng-template",4),Po()}if(2&t){const t=e.$implicit;Qs(3),Ta(" ",t.name," ")}}let QF=(()=>{class t{constructor(t,e,i,n,s,r){this.store=t,this.usersManagerService=e,this.membersService=i,this.resourcesManagerService=n,this.attributesManagerService=s,this.dialog=r,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{this.vos=t,this.filteredVos=t})}getMembersResources(t){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(t.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(t=>{let e=t.length;e||(this.loading=!1),t.forEach(t=>{this.attributesManagerService.getResourceAttributes(t.id).subscribe(i=>{e--,i.find(t=>"defaultDataQuotas"===t.friendlyName)&&this.resources.push(t),this.loading=0!==e})})})})}getResAttributes(t){this.attributesManagerService.getResourceAttributes(t).subscribe(t=>{let e=t.find(t=>"dataQuotas"===t.friendlyName);if(e&&e.value){const t=Object.keys(e.value);this.currentQuota=e.value[t[0]]}else this.currentQuota="";if(e=t.find(t=>"defaultDataQuotas"===t.friendlyName),e){const t=Object.keys(e.value);this.defaultQuota=e.value[t[0]]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}parseMarkup(){let t="";t+=this.currentQuota,t+=` (default: ${this.defaultQuota})`,t=t.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=t}requestChangeQuota(t,e){const i=SE();i.width="400px",i.data={vo:t,resource:e,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(YF,i)}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(Ro(BE),Ro(Lp),Ro(kp),Ro(Ep),Ro(Ap),Ro(bE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-settings-data-quotas"]],decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[2,"color","gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"perun-web-apps-immediate-filter",1),Wo("filter",function(t){return e.applyFilter(t)}),nu(5,"translate"),nu(6,"customTranslate"),Po(),Do(7,"mat-accordion"),Lo(8,JF,5,1,"mat-expansion-panel",2),Po()),2&t&&(Qs(1),va(su(2,3,su(3,5,"DATA_QUOTAS.TITLE"))),Qs(3),xo("placeholder",su(5,7,su(6,9,"DATA_QUOTAS.FILTER"))),Qs(4),xo("ngForOf",e.filteredVos))},directives:[qI,uB,zh,oB,aB,cB,nB,xh,cL,jz,gA],pipes:[iE,QE],styles:[""]}),t})();function ZF(t,e){1&t&&No(0,"mat-spinner",8)}function tH(t,e){1&t&&(Do(0,"app-alert",9),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function eH(t,e){if(1&t){const t=Ho();Do(0,"mat-expansion-panel",3),Wo("opened",function(){const e=Re(t).$implicit;return Go(4).getOptOutAttribute(e)}),Do(1,"mat-expansion-panel-header"),Do(2,"mat-panel-title"),Aa(3),Po(),Po(),Do(4,"div",10),Do(5,"p"),Aa(6),nu(7,"translate"),nu(8,"customTranslate"),Po(),Do(9,"mat-checkbox",11),Wo("change",function(){return Re(t),Go(4).setOptOut()}),Po(),Po(),Po()}if(2&t){const t=e.$implicit,i=Go(4);Qs(3),Ta(" ",t.name," "),Qs(3),va(su(7,3,su(8,5,"OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))),Qs(3),xo("checked",i.optOutAttribute&&null!==i.optOutAttribute.value)}}function iH(t,e){if(1&t&&(Do(0,"mat-accordion"),Lo(1,eH,10,7,"mat-expansion-panel",2),Po()),2&t){const t=Go(3);Qs(1),xo("ngForOf",t.resources)}}function nH(t,e){if(1&t&&(Lo(0,ZF,1,0,"mat-spinner",5),Lo(1,tH,4,5,"app-alert",6),Lo(2,iH,2,1,"mat-accordion",7)),2&t){const t=Go(2);xo("ngIf",t.loading),Qs(1),xo("ngIf",0===t.resources.length&&!t.loading),Qs(1),xo("ngIf",t.resources.length&&!t.loading)}}function sH(t,e){if(1&t){const t=Ho();Do(0,"mat-expansion-panel",3),Wo("opened",function(){const e=Re(t).$implicit;return Go().getMailingLists(e)}),Do(1,"mat-expansion-panel-header"),Do(2,"mat-panel-title"),Aa(3),Po(),Po(),Lo(4,nH,3,3,"ng-template",4),Po()}if(2&t){const t=e.$implicit;Qs(3),Ta(" ",t.name," ")}}let rH=(()=>{class t{constructor(t,e,i,n,s){this.store=t,this.usersManagerService=e,this.membersService=i,this.resourcesManagerService=n,this.attributesManagerService=s,this.vos=[],this.resources=[],this.mailingLists=[],this.optOuts=[],this.filteredVos=[]}ngOnInit(){this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{this.vos=t,this.filteredVos=t})}getMailingLists(t){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(t.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(e=>{let i=e.length;i||(this.loading=!1),e.forEach(e=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,e.id).subscribe(n=>{this.attributesManagerService.getResourceAttributeByName(e.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(s=>{i--;const r=n.find(t=>"optOutMailingList"===t.friendlyName);!r||s&&"true"===s.value||(this.optOuts.push({resource:e.id,member:t.id,attribute:r}),this.resources.push(e)),this.loading=0!==i})})})})})}getOptOutAttribute(t){this.index=this.resources.indexOf(t),this.optOutAttribute=this.optOuts[this.index].attribute}setOptOut(){this.optOuts[this.index].attribute.value=this.optOutAttribute.value?null:"true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{console.log("done")})}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(Ro(BE),Ro(Lp),Ro(kp),Ro(Ep),Ro(Ap))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-settings-mailing-lists"]],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,"row"],[1,"ml-3",3,"checked","change"]],template:function(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"perun-web-apps-immediate-filter",1),Wo("filter",function(t){return e.applyFilter(t)}),nu(5,"translate"),nu(6,"customTranslate"),Po(),Do(7,"mat-accordion"),Lo(8,sH,5,1,"mat-expansion-panel",2),Po()),2&t&&(Qs(1),va(su(2,3,su(3,5,"OPT_OUT_MAILING_LISTS.TITLE"))),Qs(3),xo("placeholder",su(5,7,su(6,9,"OPT_OUT_MAILING_LISTS.FILTER"))),Qs(4),xo("ngForOf",e.filteredVos))},directives:[qI,uB,zh,oB,aB,cB,nB,xh,cL,jz,yD],pipes:[iE,QE],styles:[""]}),t})();function oH(t,e){1&t&&No(0,"mat-spinner",4)}function aH(t,e){1&t&&No(0,"th",17)}function cH(t,e){if(1&t&&(Do(0,"td",18),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),Ta(" ",t," ")}}function uH(t,e){1&t&&No(0,"tr",19)}function lH(t,e){1&t&&No(0,"tr",20)}function hH(t,e){if(1&t&&(Do(0,"table",11),Io(1,12),Lo(2,aH,1,0,"th",13),Lo(3,cH,2,1,"td",14),Bo(),Lo(4,uH,1,0,"tr",15),Lo(5,lH,1,0,"tr",16),Po()),2&t){const t=Go(2);xo("dataSource",t.dataSource),Qs(4),xo("matHeaderRowDef",t.displayedColumns),Qs(1),xo("matRowDefColumns",t.displayedColumns)}}function dH(t,e){if(1&t){const t=Ho();Do(0,"div",1),Do(1,"div",5),Do(2,"p"),Aa(3),Po(),Do(4,"div",6),Aa(5),nu(6,"translate"),nu(7,"customTranslate"),Po(),Lo(8,hH,6,3,"table",7),Po(),Do(9,"div",8),Do(10,"button",9),Wo("click",function(){return Re(t),Go().onCancel()}),Aa(11),nu(12,"translate"),nu(13,"customTranslate"),Po(),Do(14,"button",10),Wo("click",function(){return Re(t),Go().onSubmit()}),Aa(15),nu(16,"translate"),nu(17,"customTranslate"),Po(),Po(),Po()}if(2&t){const t=Go();Qs(3),Ta(" ",t.description," "),Qs(2),Ta(" ",su(6,5,su(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),Qs(3),xo("ngIf",t.dataSource.data.length),Qs(3),Ta(" ",su(12,9,su(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),Qs(4),Ta(" ",su(16,13,su(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}let pH=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new Tz(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 t=this.data.attribute.value?this.data.attribute.value:[];void 0!==this.data.valueIndex?t.splice(this.data.valueIndex,1):t=t.filter(t=>!this.data.values.find(e=>e===t)),this.data.attribute.value=t}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(pE),Ro(Ap))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),Po(),Do(2,"div",1),Lo(3,oH,1,0,"mat-spinner",2),Po(),Lo(4,dH,18,17,"div",3)),2&t&&(Qs(1),va(e.title),Qs(2),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading))},directives:[wE,xh,cL,ME,AE,gA,pz,mz,gz,fz,yz,wz,_z,bz,Mz,Az],pipes:[iE,QE],styles:[""]}),t})();function fH(t,e){1&t&&(Do(0,"app-alert",5),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function gH(t,e){if(1&t){const t=Ho();Do(0,"mat-option",11),Wo("click",function(){return Re(t),Go(3).changeValue()}),Aa(1),Po()}if(2&t){const t=e.$implicit;xo("value",t),Qs(1),va(t)}}function mH(t,e){if(1&t){const t=Ho();Do(0,"mat-list-item"),Do(1,"mat-form-field",7),Do(2,"mat-select",8),Wo("valueChange",function(e){const i=Re(t).index;return Go(2).shells[i]=e}),Lo(3,gH,2,2,"mat-option",9),Po(),Po(),Do(4,"button",10),Wo("click",function(){const e=Re(t).index;return Go(2).removeShell(e)}),Aa(5),nu(6,"translate"),nu(7,"customTranslate"),Po(),Po()}if(2&t){const t=e.index,i=Go(2);Qs(2),xo("value",i.shells[t]),Qs(1),xo("ngForOf",i.defaultShells),Qs(2),va(su(6,3,su(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON")))}}function _H(t,e){if(1&t&&(Do(0,"mat-list"),Lo(1,mH,8,7,"mat-list-item",6),Po()),2&t){const t=Go();Qs(1),xo("ngForOf",t.shells)}}let bH=(()=>{class t{constructor(t,e,i,n){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],n.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t)}),this.getAttribute()}addShell(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{console.log("done")})}removeShell(t){const e=SE();e.width="600px",e.data={valueIndex:t,values:[this.shells[t]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(pH,e).afterClosed().subscribe(t=>{t&&this.getAttribute()})}getAttribute(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(t=>{this.prefShellsAttribute=t,this.shells=this.prefShellsAttribute.value?this.prefShellsAttribute.value:[],this.loading=!1})}changeValue(){this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{this.getAttribute()})}}return t.\u0275fac=function(e){return new(e||t)(Ro(BE),Ro(Ap),Ro(bE),Ro(eE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"app-alert",1),Aa(5),nu(6,"translate"),nu(7,"customTranslate"),Po(),Do(8,"button",2),Wo("click",function(){return e.addShell()}),Aa(9),nu(10,"translate"),nu(11,"customTranslate"),Po(),Lo(12,fH,4,5,"app-alert",3),Lo(13,_H,2,1,"mat-list",4)),2&t&&(Qs(1),va(su(2,5,su(3,7,"PREFERRED_SHELLS.TITLE"))),Qs(4),Ta(" ",su(6,9,su(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),Qs(4),va(su(10,13,su(11,15,"PREFERRED_SHELLS.NEW_BUTTON"))),Qs(3),xo("ngIf",!e.loading&&0===e.shells.length),Qs(1),xo("ngIf",!e.loading))},directives:[jz,gA,xh,fO,zh,_O,xT,yS,oA],pipes:[iE,QE],styles:[""]}),t})();function yH(t,e){1&t&&No(0,"mat-spinner",4)}function wH(t,e){if(1&t){const t=Ho();Do(0,"div"),Do(1,"div",5),Do(2,"mat-form-field",6),Do(3,"label",6),No(4,"input",7),Po(),Po(),Po(),Do(5,"div",8),Do(6,"button",9),Wo("click",function(){return Re(t),Go().onCancel()}),Aa(7),nu(8,"translate"),nu(9,"customTranslate"),Po(),Do(10,"button",10),Wo("click",function(){return Re(t),Go().onSubmit()}),Aa(11),nu(12,"translate"),nu(13,"customTranslate"),Po(),Po(),Po()}if(2&t){const t=Go();Qs(4),xo("formControl",t.inputControl),Qs(3),Ta(" ",su(8,4,su(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),Qs(3),xo("disabled",!t.inputControl.valid||t.groups.includes(t.inputControl.value)),Qs(1),Ta(" ",su(12,8,su(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}let MH=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.groups=[]}ngOnInit(){this.inputControl=new Rk(null,VT.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(t=>{const e=t.value?t.value:[];e.push(this.inputControl.value),t.value=e,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:t}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})})}}return t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(pE),Ro(Ap))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Lo(5,yH,1,0,"mat-spinner",2),Lo(6,wH,14,12,"div",3),Po()),2&t&&(Qs(1),va(su(2,3,su(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),Qs(4),xo("ngIf",e.loading),Qs(1),xo("ngIf",!e.loading))},directives:[wE,xh,cL,ME,xT,yL,qT,$k,dk,Kk,AE,gA],pipes:[iE,QE],styles:[""]}),t})();function AH(t,e){if(1&t){const t=Ho();Do(0,"div",2),Do(1,"h4"),Aa(2),Po(),Do(3,"button",3),Wo("click",function(){const e=Re(t).$implicit;return Go().addGroupName(e)}),Aa(4),nu(5,"translate"),nu(6,"customTranslate"),Po(),Do(7,"button",4),Wo("click",function(){const e=Re(t),i=e.$implicit,n=e.index;return Go().removeGroupName(i,n)}),Aa(8),nu(9,"translate"),Po(),No(10,"perun-web-apps-string-list",5),Po()}if(2&t){const t=e.$implicit,i=e.index,n=Go();Qs(2),va(t),Qs(2),va(su(5,8,su(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))),Qs(3),xo("disabled",0===n.selectionList[i].selected.length),Qs(1),va(su(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")),Qs(2),xo("values",n.groupNames.get(t))("selection",n.selectionList[i])("alertText",n.alertText)("headerColumnText",n.headerColumnText)}}let vH=(()=>{class t{constructor(t,e,i,n){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],n.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(t=>this.alertText=t),n.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}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(t=>this.removeDialogDescription=t),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),this.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(t=>this.alertText=t),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}),this.initSelection(),this.namespaces.forEach(t=>{this.getAttribute(t)})}initSelection(){for(let t=0;t{this.groupNames.set(t,e.value?e.value:[]),this.groupNameAttributes.push(e)})}addGroupName(t){const e=this.groupNames.get(t),i=SE();i.width="400px",i.data={groups:e,namespace:t,userId:this.userId},this.dialog.open(MH,i).afterClosed().subscribe(e=>{e&&this.getAttribute(t)})}removeGroupName(t,e){const i=SE();i.width="600px",i.data={values:this.selectionList[e].selected,attribute:this.groupNameAttributes[e],userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(pH,i).afterClosed().subscribe(i=>{i&&(this.selectionList[e].clear(),this.getAttribute(t))})}}return t.\u0275fac=function(e){return new(e||t)(Ro(BE),Ro(Ap),Ro(bE),Ro(eE))},t.\u0275cmp=Yt({type:t,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",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText"]],template:function(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Lo(4,AH,11,14,"div",1)),2&t&&(Qs(1),va(su(2,2,su(3,4,"PREFERRED_UNIX_GROUP_NAMES.TITLE"))),Qs(3),xo("ngForOf",e.namespaces))},directives:[zh,gA,vF],pipes:[iE,QE],styles:[""]}),t})();function TH(t,e){1&t&&(Do(0,"app-alert",7),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,su(3,3,"ALERTS.NO_SAMBA")),"\n"))}function kH(t,e){1&t&&(Do(0,"app-alert",7),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,su(3,3,"ALERTS.SAMBA_EXISTS")),"\n"))}function SH(t,e){1&t&&(Do(0,"app-alert",8),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"SAMBA_PASSWORD.PASSWORD_VALIDATION"))))}let CH=(()=>{class t{constructor(t,e,i,n,s){this.attributesManagerService=t,this.store=e,this.usersManagerService=i,this.notificator=n,this.translate=s,s.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),s.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(t=>this.showPwdTooltip=t),s.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(t=>this.hidePwdTooltip=t)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new Rk("",[VT.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 t=(new Date).getTime().toString();this.usersManagerService.createAlternativePassword(this.userId,t,"samba-du",this.sambaControl.value).subscribe(()=>{this.sambaControl.setValue(""),this.getSambaAttribute(),this.notificator.showSuccess(this.successMessage)})}getSambaAttribute(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:samba-du").subscribe(t=>{this.sambaExists=!!t.value,this.sambaAttribute=t})}}return t.\u0275fac=function(e){return new(e||t)(Ro(Ap),Ro(BE),Ro(Lp),Ro(WE),Ro(eE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Lo(4,TH,4,5,"app-alert",1),Lo(5,kH,4,5,"app-alert",1),Do(6,"mat-form-field",2),Do(7,"label",2),No(8,"input",3),nu(9,"translate"),nu(10,"customTranslate"),Po(),Po(),Do(11,"button",4),Wo("click",function(){return e.showPassword=!e.showPassword}),Do(12,"mat-icon"),Aa(13),Po(),Po(),Do(14,"button",5),Wo("click",function(){return e.setSambaPassword()}),Aa(15),nu(16,"translate"),nu(17,"customTranslate"),Po(),Lo(18,SH,4,5,"app-alert",6)),2&t&&(Qs(1),va(su(2,11,su(3,13,"SAMBA_PASSWORD.TITLE"))),Qs(3),xo("ngIf",!e.sambaExists),Qs(1),xo("ngIf",e.sambaExists),Qs(3),Zo("placeholder",su(9,15,su(10,17,"SAMBA_PASSWORD.INPUT_PLACEHOLDER"))),xo("formControl",e.sambaControl)("type",e.showPassword?"text":"password"),Qs(3),xo("matTooltip",e.showPassword?e.hidePwdTooltip:e.showPwdTooltip),Qs(2),va(e.showPassword?"visibility_off":"visibility"),Qs(1),xo("disabled",0===e.sambaControl.value.length||e.sambaControl.invalid),Qs(1),va(su(16,19,su(17,21,"SAMBA_PASSWORD.SET_PASSWORD"))),Qs(3),xo("ngIf",e.sambaControl.invalid))},directives:[xh,xT,yL,qT,dk,Kk,gA,PS,NC,jz],pipes:[iE,QE],styles:[""]}),t})(),EH=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.attributesManagerService=i}ngOnInit(){this.sshControl=new Rk(null,[VT.required,VT.pattern("^(ssh-rsa|ssh-ed25519|ecdsa-sha2-nistp256|ecdsa-sha2-nistp384|ecdsa-sha2-nistp521).+$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const t=this.data.attribute.value?this.data.attribute.value:[];t.includes(this.sshControl.value)||t.push(this.sshControl.value),this.data.attribute.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(pE),Ro(Ap))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:19,vars:22,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","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"]],template:function(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Do(5,"mat-form-field",2),Do(6,"label",2),No(7,"textarea",3),nu(8,"translate"),nu(9,"customTranslate"),Po(),Po(),Po(),Do(10,"div",4),Do(11,"button",5),Wo("click",function(){return e.onCancel()}),Aa(12),nu(13,"translate"),nu(14,"customTranslate"),Po(),Do(15,"button",6),Wo("click",function(){return e.onSubmit()}),Aa(16),nu(17,"translate"),nu(18,"customTranslate"),Po(),Po()),2&t&&(Qs(1),va(su(2,6,su(3,8,"DIALOGS.ADD_SSH.TITLE"))),Qs(6),Zo("placeholder",su(8,10,su(9,12,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),xo("formControl",e.sshControl),Qs(5),Ta(" ",su(13,14,su(14,16,"DIALOGS.ADD_SSH.CANCEL"))," "),Qs(3),xo("disabled",!e.sshControl.valid),Qs(1),Ta(" ",su(17,18,su(18,20,"DIALOGS.ADD_SSH.ADD"))," "))},directives:[wE,ME,xT,yL,dL,qT,$k,dk,Kk,AE,gA],pipes:[iE,QE],styles:[".input-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}"]}),t})(),LH=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(pE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"div",0),Do(1,"textarea",1),Aa(2),Po(),Po(),Do(3,"mat-dialog-actions"),Do(4,"button",2),Wo("click",function(){return e.onClose()}),Aa(5),nu(6,"translate"),nu(7,"customTranslate"),Po(),Po()),2&t&&(Qs(2),va(e.sshKey),Qs(3),va(su(6,2,su(7,4,"DIALOGS.SHOW_SSH.CLOSE"))))},directives:[yL,dL,AE,gA],pipes:[iE,QE],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}[_ngcontent-%COMP%]:focus{outline:none}"]}),t})();function zH(t,e){if(1&t){const t=Ho();Do(0,"mat-list-item",4),Do(1,"p",5),Wo("click",function(){const e=Re(t).$implicit;return Go().showWholeKey(e)}),Aa(2),Po(),Do(3,"button",6),nu(4,"translate"),nu(5,"customTranslate"),Do(6,"mat-icon"),Aa(7," file_copy "),Po(),Po(),Do(8,"button",7),Wo("click",function(){const e=Re(t).$implicit;return Go().removeKey(e,!1)}),nu(9,"translate"),nu(10,"customTranslate"),Do(11,"mat-icon"),Aa(12," delete "),Po(),Po(),Po()}if(2&t){const t=e.$implicit;Qs(2),va(t),Qs(1),Zo("matTooltip",su(4,4,su(5,6,"SSH_KEYS.COPY_TOOLTIP"))),xo("cdkCopyToClipboard",t),Qs(5),Zo("matTooltip",su(9,8,su(10,10,"SSH_KEYS.REMOVE_TOOLTIP")))}}function RH(t,e){if(1&t){const t=Ho();Do(0,"mat-list-item",4),Do(1,"label",8),Wo("click",function(){const e=Re(t).$implicit;return Go().showWholeKey(e)}),Aa(2),Po(),Do(3,"button",9),Do(4,"mat-icon"),Aa(5," file_copy "),Po(),Po(),Do(6,"button",10),Wo("click",function(){const e=Re(t).$implicit;return Go().removeKey(e,!0)}),Do(7,"mat-icon"),Aa(8," delete "),Po(),Po(),Po()}if(2&t){const t=e.$implicit;Qs(2),va(t),Qs(1),xo("cdkCopyToClipboard",t)}}let xH=(()=>{class t{constructor(t,e,i,n){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,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 ev(!1,[]),this.selectionAdmin=new ev(!1,[]),n.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("ALERTS.NO_ALT_PASSWORDS").subscribe(t=>this.alertText=t),n.get("SSH_KEYS.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),this.translateService.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(t=>this.alertText=t),this.translateService.get("SSH_KEYS.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(t){const e=SE();e.width="800px",e.data={attribute:t?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(EH,e).afterClosed().subscribe(e=>{e&&(t?this.getAdminSSH():this.getUserSSH())})}removeKey(t,e){const i=SE();i.width="600px",i.data={values:[t],attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(pH,i).afterClosed().subscribe(t=>{t&&(this.loading=!0,e?(this.getAdminSSH(),this.selectionAdmin.clear()):(this.getUserSSH(),this.selection.clear()))})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(t=>{this.userKeyAttribute=t,this.userKeys=t.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(t=>{this.adminKeyAttribute=t,this.adminKeys=t.value,this.loading=!1})}showWholeKey(t){const e=SE();e.width="600px",e.data={value:t},this.dialog.open(LH,e)}}return t.\u0275fac=function(e){return new(e||t)(Ro(BE),Ro(Ap),Ro(bE),Ro(eE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:28,vars:32,consts:[[1,"page-title"],["mat-flat-button","","color","accent",3,"click"],["class","dark-hover-list-item","matRipple","","style","width: auto",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item",2,"width","auto"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ml-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ml-2","center-content",3,"matTooltip","click"],[1,"truncate","center-content",3,"click"],["mat-icon-button","","color","accent",1,"ml-auto","center-content",3,"cdkCopyToClipboard"],["mat-icon-button","","color","warn",1,"ml-2","center-content",3,"click"]],template:function(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"p"),Aa(5),nu(6,"translate"),nu(7,"customTranslate"),Po(),Do(8,"button",1),Wo("click",function(){return e.addKey(!1)}),Aa(9),nu(10,"translate"),nu(11,"customTranslate"),Po(),Do(12,"mat-list"),Lo(13,zH,13,12,"mat-list-item",2),Po(),Do(14,"h1",3),Aa(15),nu(16,"translate"),nu(17,"customTranslate"),Po(),Do(18,"p"),Aa(19),nu(20,"translate"),nu(21,"customTranslate"),Po(),Do(22,"button",1),Wo("click",function(){return e.addKey(!0)}),Aa(23),nu(24,"translate"),nu(25,"customTranslate"),Po(),Do(26,"mat-list"),Lo(27,RH,9,2,"mat-list-item",2),Po()),2&t&&(Qs(1),va(su(2,8,su(3,10,"SSH_KEYS.SSH_KEYS_TITLE"))),Qs(4),va(su(6,12,su(7,14,"SSH_KEYS.SSH_KEYS_DESCRIPTION"))),Qs(4),va(su(10,16,su(11,18,"SSH_KEYS.NEW_KEY"))),Qs(4),xo("ngForOf",e.userKeys),Qs(2),va(su(16,20,su(17,22,"SSH_KEYS.ADMIN_SSH_KEYS_TITLE"))),Qs(4),va(su(20,24,su(21,26,"SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION"))),Qs(4),va(su(24,28,su(25,30,"SSH_KEYS.NEW_KEY"))),Qs(4),xo("ngForOf",e.adminKeys))},directives:[gA,fO,zh,_O,VM,Pz,PS,NC],pipes:[iE,QE],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}.cursor-pointer[_ngcontent-%COMP%], label[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),t})(),OH=(()=>{class t{transform(t){return"virt"===t.namespace.split(":")[4]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"isVirtualAttribute",type:t,pure:!0}),t})();function DH(t,e){if(1&t){const t=Ho();Do(0,"th",15),Do(1,"mat-checkbox",16),Wo("change",function(e){Re(t);const i=Go();return e?i.masterToggle():null}),Po(),Po()}if(2&t){const t=Go();Qs(1),xo("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())("aria-label",t.checkboxLabel())}}function PH(t,e){if(1&t){const t=Ho();Do(0,"td",17),Do(1,"mat-checkbox",18),Wo("click",function(t){return t.stopPropagation()})("change",function(e){const i=Re(t).$implicit,n=Go();return e?n.selection.toggle(i):null}),nu(2,"isVirtualAttribute"),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();Qs(1),xo("checked",i.selection.isSelected(t))("disabled",su(2,3,t)||!t.writable)("aria-label",i.checkboxLabel(t))}}function NH(t,e){1&t&&(Do(0,"th",19),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")))}function IH(t,e){if(1&t&&(Do(0,"td",17),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.id)}}function BH(t,e){1&t&&(Do(0,"th",19),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")))}function FH(t,e){if(1&t&&(Do(0,"td",20),Do(1,"div",21),Aa(2),Po(),Po()),2&t){const t=e.$implicit,i=Go();Qs(1),Zo("matTooltip",i.getAttributeFullName(t)),Qs(1),Ta(" ",t.displayName," ")}}function HH(t,e){1&t&&(Do(0,"th",15),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")))}function qH(t,e){if(1&t){const t=Ho();Do(0,"td",20),Do(1,"perun-web-apps-attribute-value",22),Wo("sendEventToParent2",function(){const e=Re(t).$implicit;return Go().onValueChange(e)}),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();Qs(1),xo("attribute",t)("readonly",i.readonly||!t.writable)}}function jH(t,e){1&t&&(Do(0,"th",19),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),va(su(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")))}function YH(t,e){if(1&t&&(Do(0,"td",20),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.description)}}function WH(t,e){1&t&&No(0,"tr",23)}function UH(t,e){if(1&t&&(No(0,"tr",24),nu(1,"translate")),2&t){const t=e.$implicit,i=Go();Zo("matTooltip",su(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),xo("matTooltipPosition","before")("matTooltipDisabled",t.writable||i.readonly)}}function KH(t,e){1&t&&(Do(0,"app-alert",25),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function VH(t,e){1&t&&(Do(0,"app-alert",25),Aa(1),nu(2,"translate"),Po()),2&t&&(Qs(1),Ta(" ",su(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY"),"\n"))}let XH=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.attributes=[],this.selection=new ev(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.pageSize=10,this.page=new lu,this.readonly=!1,this.hiddenColumns=[],this.pageSizeOptions=kE}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new Tz(this.attributes.filter(t=>!t.namespace.includes("def:core"))),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"displayName":return t.displayName;case"description":return t.description;case"value":return JSON.stringify(t.value);default:return""}}exportData(t){xE(RE(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(t=>!this.hiddenColumns.includes(t)),this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>zE(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>LE(t,e,this.getDataForColumn,this),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.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.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"}updateMapAttributes(){for(const t of this.items.toArray())"java.util.LinkedHashMap"===t.attribute.type&&t.updateMapAttribute()}onValueChange(t){this.canBeSelected(t)&&this.selection.select(t)}canBeSelected(t){return!CE(t)&&t.writable}getAttributeFullName(t){return`${t.namespace}:${t.friendlyName}`}}return t.\u0275fac=function(e){return new(e||t)(Ro(Ip),Ro(XE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(t,e){if(1&t&&(vu(wN,7),vu(NE,7),vu(eN,5)),2&t){let t;Au(t=ku())&&(e.matSort=t.first),Au(t=ku())&&(e.child=t.first),Au(t=ku())&&(e.items=t)}},inputs:{attributes:"attributes",selection:"selection",inDialog:"inDialog",filterValue:"filterValue",pageSize:"pageSize",readonly:"readonly",hiddenColumns:"hiddenColumns"},outputs:{page:"page"},features:[ae],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["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",""],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(t,e){1&t&&(Do(0,"div",0),Do(1,"perun-web-apps-table-wrapper",1),Wo("exportData",function(t){return e.exportData(t)})("page",function(t){return e.page.emit(t)}),Do(2,"table",2),Io(3,3),Lo(4,DH,2,3,"th",4),Lo(5,PH,3,5,"td",5),Bo(),Io(6,6),Lo(7,NH,3,3,"th",7),Lo(8,IH,2,1,"td",5),Bo(),Io(9,8),Lo(10,BH,3,3,"th",7),Lo(11,FH,3,2,"td",9),Bo(),Io(12,10),Lo(13,HH,3,3,"th",4),Lo(14,qH,2,2,"td",9),Bo(),Io(15,11),Lo(16,jH,3,3,"th",7),Lo(17,YH,2,1,"td",9),Bo(),Lo(18,WH,1,0,"tr",12),Lo(19,UH,2,5,"tr",13),Po(),Po(),Po(),Lo(20,KH,3,3,"app-alert",14),Lo(21,VH,3,3,"app-alert",14)),2&t&&(xo("hidden",0===e.dataSource.filteredData.length),Qs(1),xo("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),Qs(1),xo("dataSource",e.dataSource),Qs(16),xo("matHeaderRowDef",e.displayedColumns),Qs(1),xo("matRowDefColumns",e.displayedColumns),Qs(1),xo("ngIf",0===e.dataSource.filteredData.length&&0!==e.dataSource.data.length),Qs(1),xo("ngIf",0===e.dataSource.data.length))},directives:[NE,pz,wN,mz,gz,fz,yz,wz,xh,_z,yD,bz,CN,PS,eN,Mz,Az,jz],pipes:[OH,iE],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),t})();function GH(t,e){1&t&&No(0,"mat-spinner",5)}function $H(t,e){1&t&&No(0,"mat-spinner",5)}function JH(t,e){if(1&t&&No(0,"perun-web-apps-attributes-list",10),2&t){const t=Go(3);xo("attributes",t.attributes)("readonly",!0)("hiddenColumns",t.hiddenColumns)}}function QH(t,e){if(1&t&&(Lo(0,$H,1,0,"mat-spinner",3),Lo(1,JH,1,3,"perun-web-apps-attributes-list",9)),2&t){const t=Go(2);xo("ngIf",t.innerLoading),Qs(1),xo("ngIf",!t.innerLoading)}}function ZH(t,e){1&t&&No(0,"mat-spinner",5)}function tq(t,e){if(1&t&&No(0,"perun-web-apps-attributes-list",10),2&t){const t=Go(4);xo("attributes",t.attributes)("readonly",!0)("hiddenColumns",t.hiddenColumns)}}function eq(t,e){if(1&t&&(Lo(0,ZH,1,0,"mat-spinner",3),Lo(1,tq,1,3,"perun-web-apps-attributes-list",9)),2&t){const t=Go(3);xo("ngIf",t.innerLoading),Qs(1),xo("ngIf",!t.innerLoading)}}function iq(t,e){if(1&t){const t=Ho();Do(0,"mat-expansion-panel",6),Wo("opened",function(){const e=Re(t).$implicit;return Go(2).getMemberData(e)}),Do(1,"mat-expansion-panel-header"),Do(2,"mat-panel-title"),Aa(3),nu(4,"translate"),nu(5,"customTranslate"),Po(),Po(),Lo(6,eq,2,2,"ng-template",7),Po()}if(2&t){const t=e.$implicit;Qs(3),ka(" ",su(4,2,su(5,4,"PRIVACY.DATA")),"",t.name," ")}}function nq(t,e){if(1&t){const t=Ho();Do(0,"mat-accordion"),Do(1,"mat-expansion-panel",6),Wo("opened",function(){return Re(t),Go().getUserData()}),Do(2,"mat-expansion-panel-header"),Do(3,"mat-panel-title"),Aa(4),nu(5,"translate"),nu(6,"customTranslate"),Po(),Po(),Lo(7,QH,2,2,"ng-template",7),Po(),Lo(8,iq,7,6,"mat-expansion-panel",8),Po()}if(2&t){const t=Go();Qs(4),Ta(" ",su(5,2,su(6,4,"PRIVACY.USER_INFO"))," "),Qs(4),xo("ngForOf",t.filteredVos)}}let sq=(()=>{class t{constructor(t,e,i,n){this.usersManagerService=t,this.membersService=e,this.attributesManagerService=i,this.storage=n,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(t=>{this.vos=t,this.filteredVos=t,this.outerLoading=!1})}getUserData(){this.innerLoading=!0,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.user=t,this.attributes=t.userAttributes,this.username=(new JE).transform(t),this.innerLoading=!1})}getMemberData(t){this.innerLoading=!0,this.membersService.getMemberByUser(t.id,this.userId).subscribe(t=>{this.membersService.getRichMemberWithAttributes(t.id).subscribe(t=>{this.attributes=t.memberAttributes,this.innerLoading=!1})})}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(Ro(Lp),Ro(kp),Ro(Ap),Ro(BE))},t.\u0275cmp=Yt({type:t,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(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"div",1),Do(5,"perun-web-apps-immediate-filter",2),Wo("filter",function(t){return e.applyFilter(t)}),nu(6,"translate"),nu(7,"customTranslate"),Po(),Lo(8,GH,1,0,"mat-spinner",3),Lo(9,nq,9,6,"mat-accordion",4),Po()),2&t&&(Qs(1),va(su(2,4,su(3,6,"PRIVACY.TITLE"))),Qs(4),xo("placeholder",su(6,8,su(7,10,"SERVICES.FILTER"))),Qs(3),xo("ngIf",e.outerLoading),Qs(1),xo("ngIf",!e.outerLoading))},directives:[qI,xh,cL,uB,oB,aB,cB,nB,zh,XH],pipes:[iE,QE],styles:[""]}),t})(),rq=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-home-page"]],decls:1,vars:0,template:function(t,e){1&t&&No(0,"router-outlet")},directives:[o_],styles:[""]}),t})(),oq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[IC,Xh]]}),t})(),aq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})(),cq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[aq,yM],yM]}),t})(),uq=(()=>{class t{constructor(){this.changes=new v,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const lq={provide:new Ui("mat-datepicker-scroll-strategy"),deps:[Uv],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let hq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[uq,lq],imports:[[Xh,mA,Jv,xb,mv,yM],av]}),t})(),dq=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Xh,Zk,mA,MD,IC,uL,BS]]}),t})(),pq=(()=>{class t extends PM{format(t,e){return"input"===e?`${t.getDate().toString()}.${(t.getMonth()+1).toString()}.${t.getFullYear()}`:t.toDateString()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=qi(t)))(i||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const fq={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 gq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({providers:[{provide:CM,useClass:pq},{provide:EM,useValue:fq}],imports:[[Xh,MD,vz,Qk,IP,wP,nE,__,EN,QS,uL,oq,IC,MC,mA,BS,OT,Zk,wL,XM,$E,Nz,cq,hq,aR,uA,wS,dq,cv,vE,sE]]}),t})();function mq(t,e){1&t&&(Do(0,"app-alert"),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function _q(t,e){1&t&&(Do(0,"th",15),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))))}function bq(t,e){if(1&t&&(Do(0,"td",16),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.friendlyNameParameter)}}function yq(t,e){1&t&&(Do(0,"th",15),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))))}function wq(t,e){if(1&t&&(Do(0,"td",17),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.value)}}function Mq(t,e){1&t&&No(0,"th",15)}function Aq(t,e){if(1&t){const t=Ho();Do(0,"td",18),Do(1,"button",19),Wo("click",function(){const e=Re(t).$implicit;return Go().changePassword(e.friendlyNameParameter)}),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Po()}if(2&t){const t=e.$implicit,i=Go();Qs(1),xo("disabled",!i.logins.includes(t)),Qs(1),va(su(3,2,su(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD")))}}function vq(t,e){1&t&&No(0,"tr",20)}function Tq(t,e){1&t&&No(0,"tr",21)}let kq=(()=>{class t{constructor(t,e){this.attributesManagerService=t,this.store=e,this.nameSpaces=[],this.logins=[],this.displayedColumns=["namespace","value","change"]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(t=>{const e=this.nameSpaces.map(t=>{const e=t.split(":");return e[e.length-1]});this.logins=t.filter(t=>e.includes(t.friendlyNameParameter)),this.dataSource=new Tz(t)})}changePassword(t){const e=this.store.get("pwd_reset_base_url");location.href=`${e}?login-namespace=${t}`}}return t.\u0275fac=function(e){return new(e||t)(Ro(Ap),Ro(BE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-password-reset"]],decls:20,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","change"],["mat-cell","",4,"matCellDef"],["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"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Lo(4,mq,4,5,"app-alert",1),Do(5,"div",2),Do(6,"div",3),Do(7,"div",4),Do(8,"table",5),Io(9,6),Lo(10,_q,4,5,"th",7),Lo(11,bq,2,1,"td",8),Bo(),Io(12,9),Lo(13,yq,4,5,"th",7),Lo(14,wq,2,1,"td",10),Bo(),Io(15,11),Lo(16,Mq,1,0,"th",7),Lo(17,Aq,5,6,"td",12),Bo(),Lo(18,vq,1,0,"tr",13),Lo(19,Tq,1,0,"tr",14),Po(),Po(),Po(),Po()),2&t&&(Qs(1),va(su(2,5,su(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE"))),Qs(3),xo("ngIf",!e.logins.length),Qs(4),xo("dataSource",e.dataSource),Qs(10),xo("matHeaderRowDef",e.displayedColumns),Qs(1),xo("matRowDefColumns",e.displayedColumns))},directives:[xh,pz,wN,mz,gz,fz,yz,wz,jz,_z,bz,gA,Mz,Az],pipes:[iE,QE],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}"]}),t})();function Sq(t,e){1&t&&(Do(0,"app-alert",11),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"DIALOGS.ADD_AUTH_IMG.INFO"))))}function Cq(t,e){1&t&&(Do(0,"app-alert",12),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"DIALOGS.ADD_AUTH_IMG.IMG_TOO_LONG"))))}function Eq(t,e){if(1&t&&(Do(0,"div",13),No(1,"img",14),Po()),2&t){const t=Go();Qs(1),xo("src",t.newImage,ts)}}function Lq(t,e){1&t&&(Do(0,"app-alert",11),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"DIALOGS.ADD_AUTH_IMG.DELAY_INFO"))))}i(6577);let zq=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.store=n,this.newImage=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.newImage=this.attribute.value}handleInputChange(t){const e=t.dataTransfer?t.dataTransfer.files[0]:t.target.files[0],i=new FileReader;e.type.match(/image-*/)?(i.onload=this._handleReaderLoaded.bind(this),i.readAsDataURL(e)):alert("invalid format")}_handleReaderLoaded(t){const e=t.target;this.imgTooLong=e.result.length>=5120,this.newImage=e.result}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 t(t,e,i,n){n.beginPath(),n.rect(20*t,20*e,20,20),n.fillStyle="rgb("+i.join(",")+")",n.fill()}this.newImage=function(){const e=function(){const t=document.createElement("canvas");t.width=100,t.height=100;const e=t.getContext("2d");return e.beginPath(),e.rect(0,0,100,100),e.fillStyle="#FFFFFF",e.fill(),t}(),i=e.getContext("2d"),n=function(){const t=[];for(let e=0;e<3;e++){const e=Math.floor(256*Math.random()),i=Math.max(120,e),n=Math.min(200,i);t.push(n)}return t}();for(let s=0;s{class t{constructor(t,e){this.http=t,this.storeService=e}getHeaders(){let t=new Yd;return t=t.set("Authorization","Access-Control-Allow-Origin"),t}enableMfa(t,e){const i=`${this.storeService.get("mfa","api_url")}mfaEnabled`,n=`value=${t}`,s=new Yd;return s.set("Authorization",`Bearer ${e}`),this.http.put(i,n,{headers:s}).pipe(af(t=>this.formatErrors(t)))}formatErrors(t){return UA(t.error)}}return t.\u0275fac=function(e){return new(e||t)(un(rp),un(BE))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xq=(()=>{class t{constructor(t,e){this.dialogRef=t,this.store=e}onCancel(){this.dialogRef.close()}onAdd(){const t=this.store.get("mfa","register_totp_url");window.open(t,"_blank"),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(Ro(hE),Ro(BE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-add-token-info-dialog"]],decls:15,vars:15,consts:[["mat-dialog-content",""],["alert_type","info"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(Do(0,"div"),Do(1,"div",0),Do(2,"app-alert",1),Aa(3),nu(4,"translate"),nu(5,"customTranslate"),Po(),Po(),Do(6,"div",2),Do(7,"button",3),Wo("click",function(){return e.onCancel()}),Aa(8),nu(9,"translate"),nu(10,"customTranslate"),Po(),Do(11,"button",4),Wo("click",function(){return e.onAdd()}),Aa(12),nu(13,"translate"),nu(14,"customTranslate"),Po(),Po(),Po()),2&t&&(Qs(3),va(su(4,3,su(5,5,"DIALOGS.ADD_TOKEN_INFO.INFO"))),Qs(5),Ta(" ",su(9,7,su(10,9,"DIALOGS.ADD_TOKEN_INFO.CANCEL"))," "),Qs(4),Ta(" ",su(13,11,su(14,13,"DIALOGS.ADD_TOKEN_INFO.ADD"))," "))},directives:[ME,jz,AE,gA],pipes:[iE,QE],styles:[""]}),t})(),Oq=(()=>{class t{transform(t,e){return"voRules"===t?"Vo rules":"groupRules"===t?"Group rules":t&&"never"!==t.toLowerCase()?hh(t.replace(" ","T"),"d.M.yyyy "+(e?"H:mm:ss":""),"en"):"never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=$t({name:"parseDate",type:t,pure:!0}),t})();const Dq=["toggle"];function Pq(t,e){if(1&t&&(Do(0,"div"),No(1,"img",22),Po()),2&t){const t=Go();Qs(1),xo("src",t.imageSrc,ts)}}function Nq(t,e){1&t&&(Do(0,"app-alert",23),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"AUTHENTICATION.NO_TOKENS"))))}function Iq(t,e){1&t&&No(0,"mat-spinner",24)}function Bq(t,e){1&t&&(Do(0,"th",25),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"AUTHENTICATION.TYPE"))))}function Fq(t,e){1&t&&No(0,"img",29)}function Hq(t,e){1&t&&No(0,"img",30)}function qq(t,e){if(1&t&&(Do(0,"td",26),Lo(1,Fq,1,0,"img",27),Lo(2,Hq,1,0,"img",28),Po()),2&t){const t=e.$implicit;Qs(1),xo("ngIf","WEBAUTHN"===t.type),Qs(1),xo("ngIf","TOTP"===t.type)}}function jq(t,e){1&t&&(Do(0,"th",25),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"AUTHENTICATION.NAME"))))}function Yq(t,e){if(1&t&&(Do(0,"td",26),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.nickname)}}function Wq(t,e){1&t&&(Do(0,"th",25),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"AUTHENTICATION.ADDED"))))}function Uq(t,e){if(1&t&&(Do(0,"td",26),Aa(1),nu(2,"parseDate"),Po()),2&t){const t=e.$implicit;Qs(1),va(ru(2,1,t.added,!0))}}function Kq(t,e){1&t&&(Do(0,"th",25),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po()),2&t&&(Qs(1),va(su(2,1,su(3,3,"AUTHENTICATION.USED"))))}function Vq(t,e){if(1&t&&(Do(0,"td",26),Aa(1),Po()),2&t){const t=e.$implicit;Qs(1),va(t.used)}}function Xq(t,e){1&t&&No(0,"th",25)}function Gq(t,e){1&t&&(Do(0,"td",26),Do(1,"button",31),Aa(2),nu(3,"translate"),nu(4,"customTranslate"),Po(),Po()),2&t&&(Qs(2),va(su(3,1,su(4,3,"AUTHENTICATION.REVOKE"))))}function $q(t,e){1&t&&No(0,"tr",32)}function Jq(t,e){1&t&&No(0,"tr",33)}let Qq=(()=>{class t{constructor(t,e,i,n,s,r){this.dialog=t,this.attributesManagerService=e,this.store=i,this.translate=n,this.authService=s,this.mfaService=r,this.imageSrc="",this.tokens=[],this.displayedColumns=["type","nickname","added"],this.dataSource=new Tz,this.pageSize=5,n.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(t=>this.removeDialogDescription=t)}ngOnInit(){this.authService.manager.getUser().then(t=>{this.accessToken=t.access_token,this.idToken=t.id_token}),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.loadMFA(),this.loadImage()}onAddImg(){const t=SE();t.width="500px",t.data={theme:"user-theme",attribute:this.imgAtt},this.dialog.open(zq,t).afterClosed().subscribe(t=>{t&&this.loadImage()})}reAuthenticate(){sessionStorage.setItem("mfa_route","/profile/settings/auth"),this.authService.manager=new Bp.UserManager(this.getClientSettings()),this.authService.manager.signinRedirect()}onDeleteImg(){const t=SE();t.width="600px",t.data={doNotShowValues:!0,attribute:this.imgAtt,userId:this.store.getPerunPrincipal().userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(pH,t).afterClosed().subscribe(t=>{t&&this.loadImage()})}getClientSettings(){return{authority:this.store.get("oidc_client","oauth_authority"),client_id:this.store.get("oidc_client","oauth_client_id"),redirect_uri:this.store.get("oidc_client","oauth_redirect_uri"),post_logout_redirect_uri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),response_type:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),filterProtocolClaims:!0,loadUserInfo:this.store.get("oidc_client","oauth_load_user_info"),automaticSilentRenew:!0,silent_redirect_uri:this.store.get("oidc_client","oauth_silent_redirect_uri"),extraQueryParams:{max_age:0,acr_values:"https://refeds.org/profile/mfa"}}}ngAfterViewInit(){this.children.changes.subscribe(t=>{this.child=t.first,this.dataSource.paginator=this.child.paginator})}addTOTP(){const t=SE();t.width="600px",this.dialog.open(xq,t)}addWebAuthn(){const t=this.store.get("mfa","webauthn_url");window.open(t,"_blank")}loadImage(){const t=this.store.get("mfa","security_image_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe(e=>{e?(this.imgAtt=e,this.imageSrc=this.imgAtt.value):this.attributesManagerService.getAttributeDefinitionByName(t).subscribe(t=>{this.imgAtt=t})})}loadMFA(){this.loading=!0;const t=this.store.get("mfa","enforce_mfa_attribute"),e=this.store.get("mfa","tokens_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe(i=>{sessionStorage.getItem("mfa_route")?(sessionStorage.removeItem("mfa_route"),this.mfaService.enableMfa(!i||!i.value,this.idToken).subscribe(()=>{this.loadMFA()},()=>this.loadMFA())):i?(this.mfaAtt=i,this.toggle&&(this.mfaAtt.value&&this.toggle.toggle(),this.toggle.change.subscribe(()=>{this.reAuthenticate()})),this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,e).subscribe(t=>{t?t.value&&t.value.forEach(t=>{const e=JSON.parse(t);this.tokens.push({added:e.added,revoked:e.revoked,data:e.data,used:e.used,type:e.type.toUpperCase(),nickname:e.name})}):this.attributesManagerService.getAttributeDefinitionByName(e).subscribe(e=>{t=e}),this.dataSource=new Tz(this.tokens),this.dataSource.paginator=this.children.first.paginator,this.loading=!1})):this.attributesManagerService.getAttributeDefinitionByName(t).subscribe(t=>{this.mfaAtt=t})})}}return t.\u0275fac=function(e){return new(e||t)(Ro(bE),Ro(Ap),Ro(BE),Ro(eE),Ro(FE),Ro(Rq))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-settings-authentication"]],viewQuery:function(t,e){if(1&t&&(vu(Dq,5),vu(NE,5)),2&t){let t;Au(t=ku())&&(e.toggle=t.first),Au(t=ku())&&(e.children=t)}},decls:52,vars:46,consts:[[1,"page-subtitle"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"m-1",3,"click"],["color","warn","mat-flat-button","",1,"m-1",3,"disabled","click"],[1,"page-subtitle","mt-5"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","accent","mat-flat-button","",1,"mb-3",3,"click"],["alert_type","info",4,"ngIf"],[3,"hidden"],[1,"card","mt-2"],["class","ml-auto mr-auto",4,"ngIf"],[3,"dataLength","hideExport","pageSize"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","type"],["class","pl-3","mat-header-cell","",4,"matHeaderCellDef"],["class","truncate pl-3","mat-cell","",4,"matCellDef"],["matColumnDef","nickname"],["matColumnDef","added"],["matColumnDef","used"],["matColumnDef","revoke"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alt","",1,"img-size",3,"src"],["alert_type","info"],[1,"ml-auto","mr-auto"],["mat-header-cell","",1,"pl-3"],["mat-cell","",1,"truncate","pl-3"],["alt","","src","assets/img/webauthn-logo-black.svg","style","width: 2rem; height: 2rem",4,"ngIf"],["alt","","src","assets/img/totp.svg","style","width: 2rem; height: 2rem",4,"ngIf"],["alt","","src","assets/img/webauthn-logo-black.svg",2,"width","2rem","height","2rem"],["alt","","src","assets/img/totp.svg",2,"width","2rem","height","2rem"],["color","accent","mat-flat-button",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(t,e){1&t&&(Do(0,"h1",0),Aa(1),nu(2,"translate"),nu(3,"customTranslate"),Po(),Do(4,"p"),Aa(5),nu(6,"translate"),nu(7,"customTranslate"),Po(),Lo(8,Pq,2,1,"div",1),Do(9,"button",2),Wo("click",function(){return e.onAddImg()}),Aa(10),nu(11,"translate"),nu(12,"customTranslate"),Po(),Do(13,"button",3),Wo("click",function(){return e.onDeleteImg()}),Aa(14),nu(15,"translate"),nu(16,"customTranslate"),Po(),Do(17,"h1",4),Aa(18),nu(19,"translate"),nu(20,"customTranslate"),Po(),Do(21,"button",5),Wo("click",function(){return e.addTOTP()}),Aa(22),nu(23,"translate"),nu(24,"customTranslate"),Po(),Do(25,"button",6),Wo("click",function(){return e.addWebAuthn()}),Aa(26),nu(27,"translate"),nu(28,"customTranslate"),Po(),Lo(29,Nq,4,5,"app-alert",7),Do(30,"div",8),Do(31,"div",9),Lo(32,Iq,1,0,"mat-spinner",10),Do(33,"perun-web-apps-table-wrapper",11),Do(34,"table",12),Io(35,13),Lo(36,Bq,4,5,"th",14),Lo(37,qq,3,2,"td",15),Bo(),Io(38,16),Lo(39,jq,4,5,"th",14),Lo(40,Yq,2,1,"td",15),Bo(),Io(41,17),Lo(42,Wq,4,5,"th",14),Lo(43,Uq,3,4,"td",15),Bo(),Io(44,18),Lo(45,Kq,4,5,"th",14),Lo(46,Vq,2,1,"td",15),Bo(),Io(47,19),Lo(48,Xq,1,0,"th",14),Lo(49,Gq,5,5,"td",15),Bo(),Lo(50,$q,1,0,"tr",20),Lo(51,Jq,1,0,"tr",21),Po(),Po(),Po(),Po()),2&t&&(Qs(1),va(su(2,18,su(3,20,"AUTHENTICATION.TITLE"))),Qs(4),va(su(6,22,su(7,24,"AUTHENTICATION.ANTI_PHISHING_INFO"))),Qs(3),xo("ngIf",e.imageSrc&&e.imageSrc.length),Qs(2),va(su(11,26,su(12,28,"AUTHENTICATION.NEW_IMG"))),Qs(3),xo("disabled",!e.imgAtt||!e.imgAtt.value),Qs(1),va(su(15,30,su(16,32,"AUTHENTICATION.DELETE_IMG"))),Qs(4),va(su(19,34,su(20,36,"AUTHENTICATION.MFA"))),Qs(4),va(su(23,38,su(24,40,"AUTHENTICATION.ADD_TOTP"))),Qs(4),va(su(27,42,su(28,44,"AUTHENTICATION.ADD_WEBAUTHN"))),Qs(3),xo("ngIf",!e.tokens.length),Qs(1),xo("hidden",!e.tokens.length),Qs(2),xo("ngIf",e.loading),Qs(1),xo("dataLength",e.dataSource.filteredData.length)("hideExport",!0)("pageSize",e.pageSize),Qs(1),xo("dataSource",e.dataSource),Qs(16),xo("matHeaderRowDef",e.displayedColumns),Qs(1),xo("matRowDefColumns",e.displayedColumns))},directives:[xh,gA,NE,pz,mz,gz,fz,yz,wz,jz,cL,_z,bz,Mz,Az],pipes:[iE,QE,Oq],styles:[".img-size[_ngcontent-%COMP%]{width:100px;height:100px}"]}),t})(),Zq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[Xh,mA,IC,__,gq,nE]]}),t})();const tj=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"login",component:(()=>{class t{constructor(t){this.auth=t}startAuth(){this.auth.startAuthentication()}}return t.\u0275fac=function(e){return new(e||t)(Ro(FE))},t.\u0275cmp=Yt({type:t,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con","vo-theme"],[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(t,e){1&t&&(Do(0,"div",0),Do(1,"div",1),Do(2,"div",2),Do(3,"h4",3),Aa(4),nu(5,"translate"),Po(),Do(6,"button",4),Wo("click",function(){return e.startAuth()}),Aa(7),nu(8,"translate"),Do(9,"mat-icon"),Aa(10," login "),Po(),Po(),Po(),Po(),Po()),2&t&&(Qs(4),Ta(" ",su(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),Qs(3),Ta(" ",su(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[gA,NC],pipes:[iE],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),t})()},{path:"profile",component:rq,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:pN,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:QN,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:BI,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:GB,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:oF,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:sq,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"settings",component:aF,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:EF,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:SF,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:Qq,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:QF,data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"mailingLists",component:rH,data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:bH,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:vH,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:CH,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:xH,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:kq,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let ej=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[__.forRoot(tj,{preloadingStrategy:u_,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})]]}),t})();class ij{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}let nj=(()=>{class t{constructor(t,e){this.http=t,this.storeService=e}initializeColors(t,e){return new Promise(i=>{e.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),this.setEntityTheme(t.entity,e)}),i()})}setEntityTheme(t,e){const i=(n=e,[sj(tinycolor(n).lighten(52),"50"),sj(tinycolor(n).lighten(37),"100"),sj(tinycolor(n).lighten(26),"200"),sj(tinycolor(n).lighten(12),"300"),sj(tinycolor(n).lighten(6),"400"),sj(tinycolor(n),"500"),sj(tinycolor(n).darken(6),"600"),sj(tinycolor(n).darken(12),"700"),sj(tinycolor(n).darken(18),"800"),sj(tinycolor(n).darken(24),"900"),sj(tinycolor(n).lighten(50).saturate(30),"A100"),sj(tinycolor(n).lighten(30).saturate(30),"A200"),sj(tinycolor(n).lighten(10).saturate(15),"A400"),sj(tinycolor(n).lighten(5).saturate(5),"A700")]);var n;for(const s of i){const e=`--${t}-theme-primary-contrast-${s.name}`,i=s.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${t}-theme-primary-${s.name}`,`${s.red},${s.green},${s.blue}`),document.documentElement.style.setProperty(e,i)}}loadAppDefaultConfig(){return new Promise(t=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setDefaultConfig(e),t()})})}loadAppInstanceConfig(){return new Promise(t=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setInstanceConfig(e);const i=document.location.hostname;void 0!==e.brandings&&void 0!==e.brandings[i]&&this.storeService.setBanding(i),t()},()=>{console.log("instance config not detected"),t()})})}getNoCacheHeaders(){return new Yd({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(t=>{const e=document.querySelector("link[rel*='icon']")||document.createElement("link");e.type="image/x-icon",e.rel="shortcut icon",e.href=this.storeService.get("isInstanceFaviconContained")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(e),t()})}}return t.\u0275fac=function(e){return new(e||t)(un(rp),un(BE))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function sj(t,e){const i=tinycolor(t),n=i.toRgb();return{name:e,hex:i.toHexString(),darkContrast:i.isLight(),red:n.r,green:n.g,blue:n.b}}let rj=(()=>{class t{constructor(t,e,i,n,s,r){this.initAuthService=t,this.appConfigService=e,this.store=i,this.location=n,this.authzSevice=s,this.titleService=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.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(t=>{throw console.error(t),this.location.go("/"),location.reload(),t}).then(t=>t?this.initAuthService.loadPrincipal():this.initAuthService.handleAuthStart())}setApiUrl(){return new Promise(t=>{this.authzSevice.configuration.basePath=this.store.get("api_url"),this.titleService.setTitle(this.store.get("document_title")),t()})}}return t.\u0275fac=function(e){return new(e||t)(un(qE),un(nj),un(BE),un(Wl),un(vp),un(Pd))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let oj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[xR]]}),t})();new sc("12.0.0-beta.34");let aj=(()=>{class t{constructor(t,e){$h(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:NR,useValue:Object.assign(Object.assign({},PR),e)},{provide:BR,useValue:i,multi:!0},{provide:IR,useValue:!0}]:[{provide:NR,useValue:Object.assign(Object.assign({},PR),e)},{provide:BR,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(un(IR),un(Pu))},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[qF,Mx,oj],qF,Mx,oj]}),t})(),cj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[yM],yM]}),t})();const uj=new Ui("perun-api-service");let lj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({}),t})(),hj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Vt({type:t}),t.\u0275inj=pt({imports:[[lj,XM,yM,ob],lj,yM]}),t})();const dj={provide:ap,useExisting:rt(()=>UE),multi:!0};function pj(t){return new ij(t,"./assets/i18n/",".json")}function fj(t){const e={basePath:t.get("api_url")};return new Mp(e)}const gj=t=>()=>t.initialize();let mj=(()=>{class t{constructor(t,e){this.customIconService=t,this.translate=e,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return t.\u0275fac=function(e){return new(e||t)(un(jE),un(eE))},t.\u0275mod=Vt({type:t,bootstrap:[ZO]}),t.\u0275inj=pt({providers:[jE,{provide:Lu,useFactory:gj,multi:!0,deps:[rj]},{provide:Mp,useFactory:fj,deps:[BE]},JE,UE,dj,{provide:uj,useClass:VE}],imports:[[Od,hM,bp,nE.forRoot({loader:{provide:BC,useFactory:pj,deps:[rp]}}),ej,IC,tO,bO,__,mA,aj,LR,gq,oq,lB,OT,wS,vE,vz,wL,Zk,MD,QS,uL,EN,cj,Nz,$E,fI,XM,BS,hj,aR,Qk,Zq,sE,MC]]}),t})();(function(){if(ul)throw new Error("Cannot enable prod mode after platform setup.");cl=!1})(),Rd().bootstrapModule(mj).catch(t=>console.error(t))},2051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){o(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,r=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!r?function(t,r,o){var a=s.URL||s.webkitURL,c=document.createElement("a");c.download=r=r||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,r,o):n(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,s,r){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,r),s);else if(i(t))e(t,s,r);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout(function(){n(o)})}}:function(t,i,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&c||r)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location=t,o=null},l.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(t);o?o.location=d:location.href=d,o=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});s.saveAs=o.saveAs=o,t.exports=o})?i.apply(e,[]):i)||(t.exports=n)},9355:function(t,e,i){(t.exports=i(2021)).tz.load(i(4360))},2021:function(t,e,i){var n,s,r;!function(o,a){"use strict";t.exports?t.exports=a(i(9609)):(s=[i(9609)],void 0===(r="function"==typeof(n=a)?n.apply(e,s):n)||(t.exports=r))}(0,function(t){"use strict";void 0===t.version&&t.default&&(t=t.default);var e,i={},n={},s={},r={},o={};t&&"string"==typeof t.version||E("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var a=t.version.split("."),c=+a[0],u=+a[1];function l(t){return t>96?t-87:t>64?t-29:t-48}function h(t){var e=0,i=t.split("."),n=i[0],s=i[1]||"",r=1,o=0,a=1;for(45===t.charCodeAt(0)&&(e=1,a=-1);e= 2.6.0. You are using Moment.js "+t.version+". See momentjs.com"),g.prototype={_set:function(t){this.name=t.name,this.abbrs=t.abbrs,this.untils=t.untils,this.offsets=t.offsets,this.population=t.population},_index:function(t){var e,i=+t,n=this.untils;for(e=0;en&&L.moveInvalidForward&&(e=n),r3){var e=r[v(t)];if(e)return e;E("Moment Timezone found "+t+" from the Intl api, but did not have that data loaded.")}}catch(l){}var i,n,s,o=function(){var t,e,i,n=(new Date).getFullYear()-2,s=new _(new Date(n,0,1)),r=[s];for(i=1;i<48;i++)(e=new _(new Date(n,i,1))).offset!==s.offset&&(t=y(s,e),r.push(t),r.push(new _(new Date(t.at+6e4)))),s=e;for(i=0;i<4;i++)r.push(new _(new Date(n+i,0,1))),r.push(new _(new Date(n+i,6,1)));return r}(),a=o.length,c=A(o),u=[];for(n=0;n0?u[0].zone.name:void 0}()),e},L.names=function(){var t,e=[];for(t in r)r.hasOwnProperty(t)&&(i[t]||i[n[t]])&&r[t]&&e.push(r[t]);return e.sort()},L.Zone=g,L.unpack=f,L.unpackBase60=h,L.needsOffset=C,L.moveInvalidForward=!0,L.moveAmbiguousForward=!1,L.countries=function(){return Object.keys(s)},L.zonesForCountry=function(t,e){var i;if(i=(i=t).toUpperCase(),!(t=s[i]||null))return null;var n=t.zones.sort();return e?n.map(function(t){return{name:t,offset:k(t).utcOffset(new Date)}}):n};var z,R=t.fn;function x(t){return function(){return this._z?this._z.abbr(this):t.call(this)}}function O(t){return function(){return this._z=null,t.apply(this,arguments)}}t.tz=L,t.defaultZone=null,t.updateOffset=function(e,i){var n,s=t.defaultZone;if(void 0===e._z&&(s&&C(e)&&!e._isUTC&&(e._d=t.utc(e._a)._d,e.utc().add(s.parse(e),"minutes")),e._z=s),e._z)if(n=e._z.utcOffset(e),Math.abs(n)<16&&(n/=60),void 0!==e.utcOffset){var r=e._z;e.utcOffset(-n,i),e._z=r}else e.zone(n,i)},R.tz=function(e,i){if(e){if("string"!=typeof e)throw new Error("Time zone name must be a string, got "+e+" ["+typeof e+"]");return this._z=k(e),this._z?t.updateOffset(this,i):E("Moment Timezone has no data for "+e+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},R.zoneName=x(R.zoneName),R.zoneAbbr=x(R.zoneAbbr),R.utc=O(R.utc),R.local=O(R.local),R.utcOffset=(z=R.utcOffset,function(){return arguments.length>0&&(this._z=null),z.apply(this,arguments)}),t.tz.setDefault=function(e){return(c<2||2===c&&u<9)&&E("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+t.version+"."),t.defaultZone=e?k(e):null,t};var D=t.momentProperties;return"[object Array]"===Object.prototype.toString.call(D)?(D.push("_z"),D.push("_a")):D&&(D._z=null),t})},776:function(t,e,i){!function(t){"use strict";t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(t){return/^nm$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"vm":"VM":i?"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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},2758:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-dz",{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:"\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:"\u0623\u062d_\u0625\u062b_\u062b\u0644\u0627_\u0623\u0631_\u062e\u0645_\u062c\u0645_\u0633\u0628".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:4}})}(i(9609))},4980:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(i(9609))},9602:function(t,e,i){!function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={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(t){return function(e,s,r,o){var a=i(e),c=n[t][i(e)];return 2===a&&(c=c[s?0:1]),c.replace(/%d/i,e)}},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"];t.defineLocale("ar-ly",{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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},2500:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\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:6,doy:12}})}(i(9609))},6909:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};t.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(i(9609))},2735:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(i(9609))},7634:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%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"]},r=function(t){return function(e,i,r,o){var a=n(e),c=s[t][n(e)];return 2===a&&(c=c[i?0:1]),c.replace(/%d/i,e)}},o=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];t.defineLocale("ar",{months:o,monthsShort:o,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},7798:function(t,e,i){!function(t){"use strict";var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"birne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(t){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(t)},meridiem:function(t,e,i){return t<4?"gec\u0259":t<12?"s\u0259h\u0259r":t<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(t){if(0===t)return t+"-\u0131nc\u0131";var i=t%10;return t+(e[i]||e[t%100-i]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},9949:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===i?e?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}t.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:e,mm:e,h:e,hh:e,d:"\u0434\u0437\u0435\u043d\u044c",dd:e,M:"\u043c\u0435\u0441\u044f\u0446",MM:e,y:"\u0433\u043e\u0434",yy:e},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u044b":t<12?"\u0440\u0430\u043d\u0456\u0446\u044b":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-\u044b":t+"-\u0456";case"D":return t+"-\u0433\u0430";default:return t}},week:{dow:1,doy:7}})}(i(9609))},4590:function(t,e,i){!function(t){"use strict";t.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0440_\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"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043c\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\u043d\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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(9609))},5938:function(t,e,i){!function(t){"use strict";t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(i(9609))},595:function(t,e,i){!function(t){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},i={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};t.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09c0_\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_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2_\u0986\u0997_\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_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\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(t){return t.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u09b0\u09be\u09a4"===e&&t>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===e&&t<5||"\u09ac\u09bf\u0995\u09be\u09b2"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u09b0\u09be\u09a4":t<10?"\u09b8\u0995\u09be\u09b2":t<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":t<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(i(9609))},4756:function(t,e,i){!function(t){"use strict";var e={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},i={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};t.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\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("_"),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\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("_"),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(t){return t.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e){return 12===t&&(t=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===e&&t>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===e&&t<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":t<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":t<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":t<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(i(9609))},7277:function(t,e,i){!function(t){"use strict";function e(t,e,i){return t+" "+function(t,e){return 2===e?function(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}(t):t}({mm:"munutenn",MM:"miz",dd:"devezh"}[i],t)}function i(t){return t>9?i(t%10):t}t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:function(t){switch(i(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(t){return t+(1===t?"a\xf1":"vet")},week:{dow:1,doy:4}})}(i(9609))},4166:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},3943:function(t,e,i){!function(t){"use strict";t.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(t,e){var i=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"\xe8";return"w"!==e&&"W"!==e||(i="a"),t+i},week:{dow:1,doy:4}})}(i(9609))},3474:function(t,e,i){!function(t){"use strict";var e="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),i="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),n=[/^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 r(t){return t>1&&t<5&&1!=~~(t/10)}function o(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return e||n?s+(r(t)?"sekundy":"sekund"):s+"sekundami";case"m":return e?"minuta":n?"minutu":"minutou";case"mm":return e||n?s+(r(t)?"minuty":"minut"):s+"minutami";case"h":return e?"hodina":n?"hodinu":"hodinou";case"hh":return e||n?s+(r(t)?"hodiny":"hodin"):s+"hodinami";case"d":return e||n?"den":"dnem";case"dd":return e||n?s+(r(t)?"dny":"dn\xed"):s+"dny";case"M":return e||n?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return e||n?s+(r(t)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):s+"m\u011bs\xedci";case"y":return e||n?"rok":"rokem";case"yy":return e||n?s+(r(t)?"roky":"let"):s+"lety"}}t.defineLocale("cs",{months:e,monthsShort:i,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:n,longMonthsParse:n,shortMonthsParse:n,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:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},2218:function(t,e,i){!function(t){"use strict";t.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(t){return t+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(t)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(t)?"\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}})}(i(9609))},1061:function(t,e,i){!function(t){"use strict";t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(t){var e="";return t>20?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}})}(i(9609))},2743:function(t,e,i){!function(t){"use strict";t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8580:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},3264:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1899:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8784:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];t.defineLocale("dv",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,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(t){return"\u0789\u078a"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(i(9609))},4654:function(t,e,i){!function(t){"use strict";t.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(t,e,i){return t>11?i?"\u03bc\u03bc":"\u039c\u039c":i?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(t){return"\u03bc"===(t+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,e){var i,n=this._calendarEl[t],s=e&&e.hours();return((i=n)instanceof Function||"[object Function]"===Object.prototype.toString.call(i))&&(n=n.apply(e)),n.replace("{}",s%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}})}(i(9609))},4047:function(t,e,i){!function(t){"use strict";t.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},6277:function(t,e,i){!function(t){"use strict";t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},6896:function(t,e,i){!function(t){"use strict";t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i(9609))},1609:function(t,e,i){!function(t){"use strict";t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},4557:function(t,e,i){!function(t){"use strict";t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},5836:function(t,e,i){!function(t){"use strict";t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i(9609))},3586:function(t,e,i){!function(t){"use strict";t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},2777:function(t,e,i){!function(t){"use strict";t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_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:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,i){return t>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(i(9609))},3128:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},3256:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},3357:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},2654:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[t+" minuti",t+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[t+" tunni",t+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[t+" kuu",t+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[t+" aasta",t+" aastat"]};return e?s[i][2]?s[i][2]:s[i][1]:n?s[i][0]:s[i][1]}t.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d p\xe4eva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},7287:function(t,e,i){!function(t){"use strict";t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},3875:function(t,e,i){!function(t){"use strict";var e={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},i={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};t.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(t){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(t)},meridiem:function(t,e,i){return t<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:"\u062b\u0627\u0646\u06cc\u0647 d%",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(t){return t.replace(/[\u06f0-\u06f9]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(i(9609))},3431:function(t,e,i){!function(t){"use strict";var e="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),i=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",e[7],e[8],e[9]];function n(t,n,s,r){var o="";switch(s){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":return r?"sekunnin":"sekuntia";case"m":return r?"minuutin":"minuutti";case"mm":o=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":o=r?"tunnin":"tuntia";break;case"d":return r?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":o=r?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return r?"kuukauden":"kuukausi";case"MM":o=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":o=r?"vuoden":"vuotta"}return function(t,n){return t<10?n?i[t]:e[t]:t}(t,r)+" "+o}t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1781:function(t,e,i){!function(t){"use strict";t.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1539:function(t,e,i){!function(t){"use strict";t.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})}(i(9609))},9847:function(t,e,i){!function(t){"use strict";t.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i(9609))},1717:function(t,e,i){!function(t){"use strict";t.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),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|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i(9609))},2250:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},7665:function(t,e,i){!function(t){"use strict";t.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","M\xe9itheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deaireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean\xe1","Feab","M\xe1rt","Aibr","Beal","M\xe9it","I\xfail","L\xfana","Me\xe1n","Deai","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 Satharn"],weekdaysShort:["Dom","Lua","M\xe1i","C\xe9a","D\xe9a","hAo","Sat"],weekdaysMin:["Do","Lu","M\xe1","Ce","D\xe9","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:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 aig] 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\xed",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(9609))},5214:function(t,e,i){!function(t){"use strict";t.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(9609))},6154:function(t,e,i){!function(t){"use strict";t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(t){return 0===t.indexOf("un")?"n"+t:"en "+t},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}})}(i(9609))},8518:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["thodde secondanim","thodde second"],ss:[t+" secondanim",t+" second"],m:["eka mintan","ek minute"],mm:[t+" mintanim",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voranim",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disanim",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineanim",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsanim",t+" vorsam"]};return e?s[i][0]:s[i][1]}t.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_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[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",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}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokalli"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"rati":t<12?"sokalli":t<16?"donparam":t<20?"sanje":"rati"}})}(i(9609))},9221:function(t,e,i){!function(t){"use strict";var e={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},i={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};t.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ac7\u0ab9\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(t){return t.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0ab0\u0abe\u0aa4"===e?t<4?t:t+12:"\u0ab8\u0ab5\u0abe\u0ab0"===e?t:"\u0aac\u0aaa\u0acb\u0ab0"===e?t>=10?t:t+12:"\u0ab8\u0abe\u0a82\u0a9c"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0ab0\u0abe\u0aa4":t<10?"\u0ab8\u0ab5\u0abe\u0ab0":t<17?"\u0aac\u0aaa\u0acb\u0ab0":t<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(i(9609))},4743:function(t,e,i){!function(t){"use strict";t.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(t){return 2===t?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":t+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(t){return 2===t?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":t+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(t){return 2===t?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":t+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(t){return 2===t?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":t%10==0&&10!==t?t+" \u05e9\u05e0\u05d4":t+" \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(t){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(t)},meridiem:function(t,e,i){return t<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":t<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":t<12?i?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":t<18?i?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(i(9609))},7339:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.defineLocale("hi",{months:"\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("_"),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("_"),monthsParseExact:!0,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"},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(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924"===e?t<4?t:t+12:"\u0938\u0941\u092c\u0939"===e?t:"\u0926\u094b\u092a\u0939\u0930"===e?t>=10?t:t+12:"\u0936\u093e\u092e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924":t<10?"\u0938\u0941\u092c\u0939":t<17?"\u0926\u094b\u092a\u0939\u0930":t<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(i(9609))},3224:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},856:function(t,e,i){!function(t){"use strict";var e="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function i(t,e,i,n){var s=t;switch(i){case"s":return n||e?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return s+(n||e)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(n||e?" perc":" perce");case"mm":return s+(n||e?" perc":" perce");case"h":return"egy"+(n||e?" \xf3ra":" \xf3r\xe1ja");case"hh":return s+(n||e?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(n||e?" nap":" napja");case"dd":return s+(n||e?" nap":" napja");case"M":return"egy"+(n||e?" h\xf3nap":" h\xf3napja");case"MM":return s+(n||e?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(n||e?" \xe9v":" \xe9ve");case"yy":return s+(n||e?" \xe9v":" \xe9ve")}return""}function n(t){return(t?"":"[m\xfalt] ")+"["+e[this.day()]+"] LT[-kor]"}t.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),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(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,i){return t<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%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:4}})}(i(9609))},6855:function(t,e,i){!function(t){"use strict";t.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(t){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(t)},meridiem:function(t){return t<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":t<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":t<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(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-\u056b\u0576":t+"-\u0580\u0564";default:return t}},week:{dow:1,doy:7}})}(i(9609))},2190:function(t,e,i){!function(t){"use strict";t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"siang":t<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:1,doy:7}})}(i(9609))},3887:function(t,e,i){!function(t){"use strict";function e(t){return t%100==11||t%10!=1}function i(t,i,n,s){var r=t+" ";switch(n){case"s":return i||s?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return e(t)?r+(i||s?"sek\xfandur":"sek\xfandum"):r+"sek\xfanda";case"m":return i?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return e(t)?r+(i||s?"m\xedn\xfatur":"m\xedn\xfatum"):i?r+"m\xedn\xfata":r+"m\xedn\xfatu";case"hh":return e(t)?r+(i||s?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return i?"dagur":s?"dag":"degi";case"dd":return e(t)?i?r+"dagar":r+(s?"daga":"d\xf6gum"):i?r+"dagur":r+(s?"dag":"degi");case"M":return i?"m\xe1nu\xf0ur":s?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return e(t)?i?r+"m\xe1nu\xf0ir":r+(s?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):i?r+"m\xe1nu\xf0ur":r+(s?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return i||s?"\xe1r":"\xe1ri";case"yy":return e(t)?r+(i||s?"\xe1r":"\xe1rum"):r+(i||s?"\xe1r":"\xe1ri")}}t.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},5890:function(t,e,i){!function(t){"use strict";t.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i(9609))},9270:function(t,e,i){!function(t){"use strict";t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i(9609))},6595:function(t,e,i){!function(t){"use strict";t.defineLocale("ja",{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:"\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(t){return"\u5348\u5f8c"===t},meridiem:function(t,e,i){return t<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(t){return t.week()=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"enjing":t<15?"siyang":t<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}})}(i(9609))},7477:function(t,e,i){!function(t){"use strict";t.defineLocale("ka",{months:{standalone:"\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("_"),format:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".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:"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:"[\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(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(t)?t.replace(/\u10d8$/,"\u10e8\u10d8"):t+"\u10e8\u10d8"},past:function(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(t)?t.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(t)?t.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):void 0},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(t){return 0===t?t:1===t?t+"-\u10da\u10d8":t<20||t<=100&&t%20==0||t%100==0?"\u10db\u10d4-"+t:t+"-\u10d4"},week:{dow:1,doy:7}})}(i(9609))},3978:function(t,e,i){!function(t){"use strict";var e={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};t.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},9205:function(t,e,i){!function(t){"use strict";var e={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},i={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};t.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(t){return"\u179b\u17d2\u1784\u17b6\u1785"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(i(9609))},25:function(t,e,i){!function(t){"use strict";var e={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},i={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};t.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(t){return t.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e){return 12===t&&(t=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===e?t<4?t:t+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===e?t:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===e?t>=10?t:t+12:"\u0cb8\u0c82\u0c9c\u0cc6"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":t<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":t<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":t<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(t){return t+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(i(9609))},427:function(t,e,i){!function(t){"use strict";t.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\uc77c";case"M":return t+"\uc6d4";case"w":case"W":return t+"\uc8fc";default:return t}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(t){return"\uc624\ud6c4"===t},meridiem:function(t,e,i){return t<12?"\uc624\uc804":"\uc624\ud6c4"}})}(i(9609))},9089:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];t.defineLocale("ku",{months:n,monthsShort:n,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(t){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(t)},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},9314:function(t,e,i){!function(t){"use strict";var e={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};t.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},3136:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={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 e?s[i][0]:s[i][1]}function i(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return i(0===e?t/10:e)}if(t<1e4){for(;t>=10;)t/=10;return i(t)}return i(t/=1e3)}t.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(t){return i(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t},past:function(t){return i(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d M\xe9int",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},9115:function(t,e,i){!function(t){"use strict";t.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(t){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===t},meridiem:function(t,e,i){return t<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(t){return"\u0e97\u0eb5\u0ec8"+t}})}(i(9609))},7087:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i,n){return e?s(i)[0]:n?s(i)[1]:s(i)[2]}function n(t){return t%10==0||t>10&&t<20}function s(t){return e[t].split("_")}function r(t,e,r,o){var a=t+" ";return 1===t?a+i(0,e,r[0],o):e?a+(n(t)?s(r)[1]:s(r)[0]):o?a+s(r)[1]:a+(n(t)?s(r)[1]:s(r)[2])}t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function(t,e,i,n){return e?"kelios sekund\u0117s":n?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})}(i(9609))},5683:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i){return i?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function n(t,n,s){return t+" "+i(e[s],t,n)}function s(t,n,s){return i(e[s],t,n)}t.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function(t,e){return e?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:n,m:s,mm:n,h:s,hh:n,d:s,dd:n,M:s,MM:n,y:s,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},9454:function(t,e,i){!function(t){"use strict";var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},5507:function(t,e,i){!function(t){"use strict";t.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(9609))},8466:function(t,e,i){!function(t){"use strict";t.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u043e\u0441\u043b\u0435 %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:"\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",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(9609))},2933:function(t,e,i){!function(t){"use strict";t.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===e&&t>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===e||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":t<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":t<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":t<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(i(9609))},9477:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){switch(i){case"s":return e?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return t+(e?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return t+(e?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return t+(e?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return t+(e?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return t+(e?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return t+(e?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return t}}t.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(t){return"\u04ae\u0425"===t},meridiem:function(t,e,i){return t<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s: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} \u04e9\u0434\u04e9\u0440/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" \u04e9\u0434\u04e9\u0440";default:return t}}})}(i(9609))},3597:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function n(t,e,i,n){var s="";if(e)switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":s="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":s="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":s="%d \u0924\u093e\u0938";break;case"d":s="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":s="%d \u0926\u093f\u0935\u0938";break;case"M":s="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":s="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u0947"}else switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":s="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":s="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":s="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":s="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":s="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":s="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":s="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return s.replace(/%d/i,t)}t.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===e?t<4?t:t+12:"\u0938\u0915\u093e\u0933\u0940"===e?t:"\u0926\u0941\u092a\u093e\u0930\u0940"===e?t>=10?t:t+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924\u094d\u0930\u0940":t<10?"\u0938\u0915\u093e\u0933\u0940":t<17?"\u0926\u0941\u092a\u093e\u0930\u0940":t<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(i(9609))},9965:function(t,e,i){!function(t){"use strict";t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i(9609))},5529:function(t,e,i){!function(t){"use strict";t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i(9609))},259:function(t,e,i){!function(t){"use strict";t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(9609))},8061:function(t,e,i){!function(t){"use strict";var e={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},i={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};t.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(t){return t.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(i(9609))},2618:function(t,e,i){!function(t){"use strict";t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_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",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}})}(i(9609))},8452:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u093f"===e?t<4?t:t+12:"\u092c\u093f\u0939\u093e\u0928"===e?t:"\u0926\u093f\u0909\u0901\u0938\u094b"===e?t>=10?t:t+12:"\u0938\u093e\u0901\u091d"===e?t+12:void 0},meridiem:function(t,e,i){return t<3?"\u0930\u093e\u0924\u093f":t<12?"\u092c\u093f\u0939\u093e\u0928":t<16?"\u0926\u093f\u0909\u0901\u0938\u094b":t<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}})}(i(9609))},413:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],s=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},1885:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],s=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},5107:function(t,e,i){!function(t){"use strict";t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_m\xe5n_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_m\xe5_ty_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 [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",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}})}(i(9609))},702:function(t,e,i){!function(t){"use strict";var e={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},i={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};t.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(t){return t.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0a30\u0a3e\u0a24"===e?t<4?t:t+12:"\u0a38\u0a35\u0a47\u0a30"===e?t:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===e?t>=10?t:t+12:"\u0a38\u0a3c\u0a3e\u0a2e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0a30\u0a3e\u0a24":t<10?"\u0a38\u0a35\u0a47\u0a30":t<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":t<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(i(9609))},1711:function(t,e,i){!function(t){"use strict";var e="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function n(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function s(t,e,i){var s=t+" ";switch(i){case"ss":return s+(n(t)?"sekundy":"sekund");case"m":return e?"minuta":"minut\u0119";case"mm":return s+(n(t)?"minuty":"minut");case"h":return e?"godzina":"godzin\u0119";case"hh":return s+(n(t)?"godziny":"godzin");case"MM":return s+(n(t)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return s+(n(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,n){return t?""===n?"("+i[t.month()]+"|"+e[t.month()]+")":/D MMMM/.test(n)?i[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),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:s,m:s,mm:s,h:s,hh:s,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8238:function(t,e,i){!function(t){"use strict";t.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba"})}(i(9609))},594:function(t,e,i){!function(t){"use strict";t.defineLocale("pt",{months:"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",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}})}(i(9609))},4681:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=" ";return(t%100>=20||t>=100&&t%100==0)&&(n=" de "),t+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._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:e,m:"un minut",mm:e,h:"o or\u0103",hh:e,d:"o zi",dd:e,M:"o lun\u0103",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(i(9609))},6201:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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",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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}var i=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];t.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?\] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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(t){if(t.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(t){if(t.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,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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0438":t<12?"\u0443\u0442\u0440\u0430":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-\u0439";case"D":return t+"-\u0433\u043e";case"w":case"W":return t+"-\u044f";default:return t}},week:{dow:1,doy:4}})}(i(9609))},2912:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];t.defineLocale("sd",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(9609))},6002:function(t,e,i){!function(t){"use strict";t.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},7942:function(t,e,i){!function(t){"use strict";t.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(t){return t+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(t){return"\u0db4.\u0dc0."===t||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===t},meridiem:function(t,e,i){return t>11?i?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":i?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(i(9609))},5577:function(t,e,i){!function(t){"use strict";var e="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),i="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function n(t){return t>1&&t<5}function s(t,e,i,s){var r=t+" ";switch(i){case"s":return e||s?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return e||s?r+(n(t)?"sekundy":"sek\xfand"):r+"sekundami";case"m":return e?"min\xfata":s?"min\xfatu":"min\xfatou";case"mm":return e||s?r+(n(t)?"min\xfaty":"min\xfat"):r+"min\xfatami";case"h":return e?"hodina":s?"hodinu":"hodinou";case"hh":return e||s?r+(n(t)?"hodiny":"hod\xedn"):r+"hodinami";case"d":return e||s?"de\u0148":"d\u0148om";case"dd":return e||s?r+(n(t)?"dni":"dn\xed"):r+"d\u0148ami";case"M":return e||s?"mesiac":"mesiacom";case"MM":return e||s?r+(n(t)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return e||s?"rok":"rokom";case"yy":return e||s?r+(n(t)?"roky":"rokov"):r+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:i,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:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %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}})}(i(9609))},1775:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"nekaj sekund":"nekaj sekundami";case"ss":return s+(1===t?e?"sekundo":"sekundi":2===t?e||n?"sekundi":"sekundah":t<5?e||n?"sekunde":"sekundah":"sekund");case"m":return e?"ena minuta":"eno minuto";case"mm":return s+(1===t?e?"minuta":"minuto":2===t?e||n?"minuti":"minutama":t<5?e||n?"minute":"minutami":e||n?"minut":"minutami");case"h":return e?"ena ura":"eno uro";case"hh":return s+(1===t?e?"ura":"uro":2===t?e||n?"uri":"urama":t<5?e||n?"ure":"urami":e||n?"ur":"urami");case"d":return e||n?"en dan":"enim dnem";case"dd":return s+(1===t?e||n?"dan":"dnem":2===t?e||n?"dni":"dnevoma":e||n?"dni":"dnevi");case"M":return e||n?"en mesec":"enim mesecem";case"MM":return s+(1===t?e||n?"mesec":"mesecem":2===t?e||n?"meseca":"mesecema":t<5?e||n?"mesece":"meseci":e||n?"mesecev":"meseci");case"y":return e||n?"eno leto":"enim letom";case"yy":return s+(1===t?e||n?"leto":"letom":2===t?e||n?"leti":"letoma":t<5?e||n?"leta":"leti":e||n?"let":"leti")}}t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s: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:7}})}(i(9609))},6823:function(t,e,i){!function(t){"use strict";t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(t){return"M"===t.charAt(0)},meridiem:function(t,e,i){return t<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}})}(i(9609))},3848:function(t,e,i){!function(t){"use strict";var e={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\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\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"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"\u0434\u0430\u043d",dd:e.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:e.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},9038:function(t,e,i){!function(t){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"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] [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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},6173:function(t,e,i){!function(t){"use strict";t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(t,e,i){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(i(9609))},5788:function(t,e,i){!function(t){"use strict";t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"e":1===e||2===e?"a":"e")},week:{dow:1,doy:4}})}(i(9609))},6882:function(t,e,i){!function(t){"use strict";t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm: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:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(i(9609))},2678:function(t,e,i){!function(t){"use strict";var e={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},i={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};t.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(t){return t+"\u0bb5\u0ba4\u0bc1"},preparse:function(t){return t.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e,i){return t<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":t<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":t<10?" \u0b95\u0bbe\u0bb2\u0bc8":t<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":t<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":t<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(t,e){return 12===t&&(t=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===e?t<2?t:t+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===e||"\u0b95\u0bbe\u0bb2\u0bc8"===e||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})}(i(9609))},2797:function(t,e,i){!function(t){"use strict";t.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===e?t<4?t:t+12:"\u0c09\u0c26\u0c2f\u0c02"===e?t:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===e?t>=10?t:t+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":t<10?"\u0c09\u0c26\u0c2f\u0c02":t<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":t<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(i(9609))},2447:function(t,e,i){!function(t){"use strict";t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},1335:function(t,e,i){!function(t){"use strict";var e={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};t.defineLocale("tg",{months:"\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:"[\u041f\u0430\u0433\u043e\u04b3 \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0448\u0430\u0431"===e?t<4?t:t+12:"\u0441\u0443\u0431\u04b3"===e?t:"\u0440\u04ef\u0437"===e?t>=11?t:t+12:"\u0431\u0435\u0433\u043e\u04b3"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0448\u0430\u0431":t<11?"\u0441\u0443\u0431\u04b3":t<16?"\u0440\u04ef\u0437":t<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},8667:function(t,e,i){!function(t){"use strict";t.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(t){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===t},meridiem:function(t,e,i){return t<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",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(i(9609))},9914:function(t,e,i){!function(t){"use strict";t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(i(9609))},1389:function(t,e,i){!function(t){"use strict";var e="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function i(t,i,n,s){var r=function(t){var i=Math.floor(t%1e3/100),n=Math.floor(t%100/10),s=t%10,r="";return i>0&&(r+=e[i]+"vatlh"),n>0&&(r+=(""!==r?" ":"")+e[n]+"maH"),s>0&&(r+=(""!==r?" ":"")+e[s]),""===r?"pagh":r}(t);switch(n){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}t.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"},past:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu\u2019":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"},s:"puS lup",ss:i,m:"wa\u2019 tup",mm:i,h:"wa\u2019 rep",hh:i,d:"wa\u2019 jaj",dd:i,M:"wa\u2019 jar",MM:i,y:"wa\u2019 DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},3578:function(t,e,i){!function(t){"use strict";var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};t.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".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 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",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(t,i){switch(i){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'\u0131nc\u0131";var n=t%10;return t+(e[n]||e[t%100-n]||e[t>=100?100:null])}},week:{dow:1,doy:7}})}(i(9609))},6969:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[t+" m\xeduts",t+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[t+" \xfeoras",t+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return n||e?s[i][0]:s[i][1]}t.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,i){return t>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s: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}})}(i(9609))},690:function(t,e,i){!function(t){"use strict";t.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(i(9609))},6509:function(t,e,i){!function(t){"use strict";t.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(i(9609))},55:function(t,e,i){!function(t){"use strict";t.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===e||"\u0633\u06d5\u06be\u06d5\u0631"===e||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===e?t:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===e||"\u0643\u06d5\u0686"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":n<900?"\u0633\u06d5\u06be\u06d5\u0631":n<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":n<1230?"\u0686\u06c8\u0634":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return t+"-\u06be\u06d5\u067e\u062a\u06d5";default:return t}},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(i(9609))},2452:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===i?e?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}function i(t){return function(){return t+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}t.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function(t,e){var i={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===t?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):t?i[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(e)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:i.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:i("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:i("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:i("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:i("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return i("[\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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0456":t<12?"\u0440\u0430\u043d\u043a\u0443":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-\u0439";case"D":return t+"-\u0433\u043e";default:return t}},week:{dow:1,doy:7}})}(i(9609))},1151:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];t.defineLocale("ur",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(9609))},6547:function(t,e,i){!function(t){"use strict";t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(i(9609))},1555:function(t,e,i){!function(t){"use strict";t.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(i(9609))},6541:function(t,e,i){!function(t){"use strict";t.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".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(t){return/^ch$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"sa":"SA":i?"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 r\u1ed3i 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",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(i(9609))},2401:function(t,e,i){!function(t){"use strict";t.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},2341:function(t,e,i){!function(t){"use strict";t.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(i(9609))},619:function(t,e,i){!function(t){"use strict";t.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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|\u5468)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u5468";default:return t}},relativeTime:{future:"%s\u5185",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",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(i(9609))},7058:function(t,e,i){!function(t){"use strict";t.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i(9609))},2782:function(t,e,i){!function(t){"use strict";t.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i(9609))},9609:function(t,e,i){(t=i.nmd(t)).exports=function(){"use strict";var e,n;function s(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var i,n=[];for(i=0;i>>0,n=0;n0)for(i=0;i<_.length;i++)a(s=e[n=_[i]])||(t[n]=s);return t}var y=!1;function w(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,s.updateOffset(this),y=!1)}function M(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function A(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function v(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=A(e)),i}function T(t,e,i){var n,s=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),o=0;for(n=0;n=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},Y={};function W(t,e,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),t&&(Y[t]=s),e&&(Y[e[0]]=function(){return F(s.apply(this,arguments),e[1],e[2])}),i&&(Y[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function U(t,e){return t.isValid()?(e=K(e,t.localeData()),j[e]=j[e]||function(t){var e,i,n,s=t.match(H);for(e=0,i=s.length;e=0&&q.test(t);)t=t.replace(q,n),q.lastIndex=0,i-=1;return t}var V=/\d/,X=/\d\d/,G=/\d{3}/,$=/\d{4}/,J=/[+-]?\d{6}/,Q=/\d\d?/,Z=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,it=/\d{1,4}/,nt=/[+-]?\d{1,6}/,st=/\d+/,rt=/[+-]?\d+/,ot=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,ct=/[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,ut={};function lt(t,e,i){ut[t]=z(e)?e:function(t,n){return t&&i?i:e}}function ht(t,e){return h(ut,t)?ut[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,s){return e||i||n||s})))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pt={};function ft(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),c(e)&&(n=function(t,i){i[e]=v(t)}),i=0;i68?1900:2e3)};var yt,wt=Mt("FullYear",!0);function Mt(t,e){return function(i){return null!=i?(vt(this,t,i),s.updateOffset(this,e),this):At(this,t)}}function At(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function vt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&bt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Tt(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function Tt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?bt(t)?29:28:31-i%7%2}yt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e=0?(a=new Date(t+400,e,i,n,s,r,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,s,r,o),a}function Pt(t){var e;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Nt(t,e,i){var n=7+e-i;return-(7+Pt(t,0,n).getUTCDay()-e)%7+n-1}function It(t,e,i,n,s){var r,o,a=1+7*(e-1)+(7+i-n)%7+Nt(t,n,s);return a<=0?o=_t(r=t-1)+a:a>_t(t)?(r=t+1,o=a-_t(t)):(r=t,o=a),{year:r,dayOfYear:o}}function Bt(t,e,i){var n,s,r=Nt(t.year(),e,i),o=Math.floor((t.dayOfYear()-r-1)/7)+1;return o<1?n=o+Ft(s=t.year()-1,e,i):o>Ft(t.year(),e,i)?(n=o-Ft(t.year(),e,i),s=t.year()+1):(s=t.year(),n=o),{week:n,year:s}}function Ft(t,e,i){var n=Nt(t,e,i),s=Nt(t+1,e,i);return(_t(t)-n+s)/7}function Ht(t,e){return t.slice(e,7).concat(t.slice(0,e))}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),B("week",5),B("isoWeek",5),lt("w",Q),lt("ww",Q,X),lt("W",Q),lt("WW",Q,X),gt(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=v(t)}),W("d",0,"do","day"),W("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),W("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),W("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),lt("d",Q),lt("e",Q),lt("E",Q),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),gt(["dd","ddd","dddd"],function(t,e,i,n){var s=i._locale.weekdaysParse(t,n,i._strict);null!=s?e.d=s:f(i).invalidWeekday=t}),gt(["d","e","E"],function(t,e,i,n){e[n]=v(t)});var qt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Yt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Wt(t,e,i){var n,s,r,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=p([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(s=yt.call(this._weekdaysParse,o))?s:null:"ddd"===e?-1!==(s=yt.call(this._shortWeekdaysParse,o))?s:null:-1!==(s=yt.call(this._minWeekdaysParse,o))?s:null:"dddd"===e?-1!==(s=yt.call(this._weekdaysParse,o))||-1!==(s=yt.call(this._shortWeekdaysParse,o))||-1!==(s=yt.call(this._minWeekdaysParse,o))?s:null:"ddd"===e?-1!==(s=yt.call(this._shortWeekdaysParse,o))||-1!==(s=yt.call(this._weekdaysParse,o))||-1!==(s=yt.call(this._minWeekdaysParse,o))?s:null:-1!==(s=yt.call(this._minWeekdaysParse,o))||-1!==(s=yt.call(this._weekdaysParse,o))||-1!==(s=yt.call(this._shortWeekdaysParse,o))?s:null}var Ut=ct,Kt=ct,Vt=ct;function Xt(){function t(t,e){return e.length-t.length}var e,i,n,s,r,o=[],a=[],c=[],u=[];for(e=0;e<7;e++)i=p([2e3,1]).day(e),n=this.weekdaysMin(i,""),s=this.weekdaysShort(i,""),r=this.weekdays(i,""),o.push(n),a.push(s),c.push(r),u.push(n),u.push(s),u.push(r);for(o.sort(t),a.sort(t),c.sort(t),u.sort(t),e=0;e<7;e++)a[e]=dt(a[e]),c[e]=dt(c[e]),u[e]=dt(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Gt(){return this.hours()%12||12}function $t(t,e){W(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Jt(t,e){return e._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Gt),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+Gt.apply(this)+F(this.minutes(),2)}),W("hmmss",0,0,function(){return""+Gt.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),$t("a",!0),$t("A",!1),D("hour","h"),B("hour",13),lt("a",Jt),lt("A",Jt),lt("H",Q),lt("h",Q),lt("k",Q),lt("HH",Q,X),lt("hh",Q,X),lt("kk",Q,X),lt("hmm",Z),lt("hmmss",tt),lt("Hmm",Z),lt("Hmmss",tt),ft(["H","HH"],3),ft(["k","kk"],function(t,e,i){var n=v(t);e[3]=24===n?0:n}),ft(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),ft(["h","hh"],function(t,e,i){e[3]=v(t),f(i).bigHour=!0}),ft("hmm",function(t,e,i){var n=t.length-2;e[3]=v(t.substr(0,n)),e[4]=v(t.substr(n)),f(i).bigHour=!0}),ft("hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=v(t.substr(0,n)),e[4]=v(t.substr(n,2)),e[5]=v(t.substr(s)),f(i).bigHour=!0}),ft("Hmm",function(t,e,i){var n=t.length-2;e[3]=v(t.substr(0,n)),e[4]=v(t.substr(n))}),ft("Hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=v(t.substr(0,n)),e[4]=v(t.substr(n,2)),e[5]=v(t.substr(s))});var Qt,Zt=Mt("Hours",!0),te={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:St,monthsShort:Ct,week:{dow:0,doy:6},weekdays:qt,weekdaysMin:Yt,weekdaysShort:jt,meridiemParse:/[ap]\.?m?\.?/i},ee={},ie={};function ne(t){return t?t.toLowerCase().replace("_","-"):t}function se(e){var n=null;if(!ee[e]&&t&&t.exports)try{n=Qt._abbr,i(6700)("./"+e),re(n)}catch(s){}return ee[e]}function re(t,e){var i;return t&&((i=a(e)?ae(t):oe(t,e))?Qt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Qt._abbr}function oe(t,e){if(null!==e){var i,n=te;if(e.abbr=t,null!=ee[t])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ee[t]._config;else if(null!=e.parentLocale)if(null!=ee[e.parentLocale])n=ee[e.parentLocale]._config;else{if(null==(i=se(e.parentLocale)))return ie[e.parentLocale]||(ie[e.parentLocale]=[]),ie[e.parentLocale].push({name:t,config:e}),null;n=i._config}return ee[t]=new x(R(n,e)),ie[t]&&ie[t].forEach(function(t){oe(t.name,t.config)}),re(t),ee[t]}return delete ee[t],null}function ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Qt;if(!r(t)){if(e=se(t))return e;t=[t]}return function(t){for(var e,i,n,s,r=0;r0;){if(n=se(s.slice(0,e).join("-")))return n;if(i&&i.length>=e&&T(s,i,!0)>=e-1)break;e--}r++}return Qt}(t)}function ce(t){var e,i=t._a;return i&&-2===f(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>Tt(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,f(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),f(t)._overflowWeeks&&-1===e&&(e=7),f(t)._overflowWeekday&&-1===e&&(e=8),f(t).overflow=e),t}function ue(t,e,i){return null!=t?t:null!=e?e:i}function le(t){var e,i,n,r,o,a=[];if(!t._d){for(n=function(t){var e=new Date(s.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,s,r,o,a,c;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)r=1,o=4,i=ue(e.GG,t._a[0],Bt(Te(),1,4).year),n=ue(e.W,1),((s=ue(e.E,1))<1||s>7)&&(c=!0);else{r=t._locale._week.dow,o=t._locale._week.doy;var u=Bt(Te(),r,o);i=ue(e.gg,t._a[0],u.year),n=ue(e.w,u.week),null!=e.d?((s=e.d)<0||s>6)&&(c=!0):null!=e.e?(s=e.e+r,(e.e<0||e.e>6)&&(c=!0)):s=r}n<1||n>Ft(i,r,o)?f(t)._overflowWeeks=!0:null!=c?f(t)._overflowWeekday=!0:(a=It(i,n,s,r,o),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(o=ue(t._a[0],n[0]),(t._dayOfYear>_t(o)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),i=Pt(o,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];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?Pt:Dt).apply(null,a),r=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&&void 0!==t._w.d&&t._w.d!==r&&(f(t).weekdayMismatch=!0)}}var he=/^\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)?)?$/,de=/^\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)?)?$/,pe=/Z|[+-]\d\d(?::?\d\d)?/,fe=[["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}/]],ge=[["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/]],me=/^\/?Date\((\-?\d+)/i;function _e(t){var e,i,n,s,r,o,a=t._i,c=he.exec(a)||de.exec(a);if(c){for(f(t).iso=!0,e=0,i=fe.length;e0&&f(t).unusedInput.push(o),a=a.slice(a.indexOf(i)+i.length),u+=i.length),Y[r]?(i?f(t).empty=!1:f(t).unusedTokens.push(r),mt(r,i,t)):t._strict&&!i&&f(t).unusedTokens.push(r);f(t).charsLeftOver=c-u,a.length>0&&f(t).unusedInput.push(a),t._a[3]<=12&&!0===f(t).bigHour&&t._a[3]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),le(t),ce(t)}else we(t);else _e(t)}function Ae(t){var e=t._i,i=t._f;return t._locale=t._locale||ae(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),M(e)?new w(ce(e)):(u(e)?t._d=e:r(i)?function(t){var e,i,n,s,r;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(s=0;sthis?this:t:m()});function Ce(t,e){var i,n;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Te();for(i=e[0],n=1;n=0?new Date(t+400,e,i)-126227808e5:new Date(t,e,i).valueOf()}function Ze(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-126227808e5:Date.UTC(t,e,i)}function ti(t,e){W(0,[t,t.length],0,e)}function ei(t,e,i,n,s){var r;return null==t?Bt(this,n,s).year:(e>(r=Ft(t,n,s))&&(e=r),ii.call(this,t,e,i,n,s))}function ii(t,e,i,n,s){var r=It(t,e,i,n,s),o=Pt(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ti("gggg","weekYear"),ti("ggggg","weekYear"),ti("GGGG","isoWeekYear"),ti("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),lt("G",rt),lt("g",rt),lt("GG",Q,X),lt("gg",Q,X),lt("GGGG",it,$),lt("gggg",it,$),lt("GGGGG",nt,J),lt("ggggg",nt,J),gt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=v(t)}),gt(["gg","GG"],function(t,e,i,n){e[n]=s.parseTwoDigitYear(t)}),W("Q",0,"Qo","quarter"),D("quarter","Q"),B("quarter",7),lt("Q",V),ft("Q",function(t,e){e[1]=3*(v(t)-1)}),W("D",["DD",2],"Do","date"),D("date","D"),B("date",9),lt("D",Q),lt("DD",Q,X),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ft(["D","DD"],2),ft("Do",function(t,e){e[2]=v(t.match(Q)[0])});var ni=Mt("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),B("dayOfYear",4),lt("DDD",et),lt("DDDD",G),ft(["DDD","DDDD"],function(t,e,i){i._dayOfYear=v(t)}),W("m",["mm",2],0,"minute"),D("minute","m"),B("minute",14),lt("m",Q),lt("mm",Q,X),ft(["m","mm"],4);var si=Mt("Minutes",!1);W("s",["ss",2],0,"second"),D("second","s"),B("second",15),lt("s",Q),lt("ss",Q,X),ft(["s","ss"],5);var ri,oi=Mt("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),D("millisecond","ms"),B("millisecond",16),lt("S",et,V),lt("SS",et,X),lt("SSS",et,G),ri="SSSS";ri.length<=9;ri+="S")lt(ri,st);function ai(t,e){e[6]=v(1e3*("0."+t))}for(ri="S";ri.length<=9;ri+="S")ft(ri,ai);var ci=Mt("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var ui=w.prototype;function li(t){return t}ui.add=Ue,ui.calendar=function(t,e){var i=t||Te(),n=Pe(i,this).startOf("day"),r=s.calendarFormat(this,n)||"sameElse",o=e&&(z(e[r])?e[r].call(this,i):e[r]);return this.format(o||this.localeData().calendar(r,this,Te(i)))},ui.clone=function(){return new w(this)},ui.diff=function(t,e,i){var n,s,r;if(!this.isValid())return NaN;if(!(n=Pe(t,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),e=P(e)){case"year":r=Ve(this,n)/12;break;case"month":r=Ve(this,n);break;case"quarter":r=Ve(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-s)/864e5;break;case"week":r=(this-n-s)/6048e5;break;default:r=this-n}return i?r:A(r)},ui.endOf=function(t){var e;if(void 0===(t=P(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?Ze:Qe;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-Je(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-Je(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-Je(e,1e3)-1}return this._d.setTime(e),s.updateOffset(this,!0),this},ui.format=function(t){t||(t=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},ui.from=function(t,e){return this.isValid()&&(M(t)&&t.isValid()||Te(t).isValid())?He({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ui.fromNow=function(t){return this.from(Te(),t)},ui.to=function(t,e){return this.isValid()&&(M(t)&&t.isValid()||Te(t).isValid())?He({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ui.toNow=function(t){return this.to(Te(),t)},ui.get=function(t){return z(this[t=P(t)])?this[t]():this},ui.invalidAt=function(){return f(this).overflow},ui.isAfter=function(t,e){var i=M(t)?t:Te(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=P(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()9999?U(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(i,"Z")):U(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ui.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},ui.toJSON=function(){return this.isValid()?this.toISOString():null},ui.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ui.unix=function(){return Math.floor(this.valueOf()/1e3)},ui.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ui.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ui.year=wt,ui.isLeapYear=function(){return bt(this.year())},ui.weekYear=function(t){return ei.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ui.isoWeekYear=function(t){return ei.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ui.quarter=ui.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ui.month=zt,ui.daysInMonth=function(){return Tt(this.year(),this.month())},ui.week=ui.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},ui.isoWeek=ui.isoWeeks=function(t){var e=Bt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},ui.weeksInYear=function(){var t=this.localeData()._week;return Ft(this.year(),t.dow,t.doy)},ui.isoWeeksInYear=function(){return Ft(this.year(),1,4)},ui.date=ni,ui.day=ui.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},ui.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},ui.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},ui.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},ui.hour=ui.hours=Zt,ui.minute=ui.minutes=si,ui.second=ui.seconds=oi,ui.millisecond=ui.milliseconds=ci,ui.utcOffset=function(t,e,i){var n,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=De(at,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Ne(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?We(this,He(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ne(this)},ui.utc=function(t){return this.utcOffset(0,t)},ui.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ne(this),"m")),this},ui.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=De(ot,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ui.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Te(t).utcOffset():0,(this.utcOffset()-t)%60==0)},ui.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ui.isLocal=function(){return!!this.isValid()&&!this._isUTC},ui.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ui.isUtc=Ie,ui.isUTC=Ie,ui.zoneAbbr=function(){return this._isUTC?"UTC":""},ui.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ui.dates=S("dates accessor is deprecated. Use date instead.",ni),ui.months=S("months accessor is deprecated. Use month instead",zt),ui.years=S("years accessor is deprecated. Use year instead",wt),ui.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),ui.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(b(t,this),(t=Ae(t))._a){var e=t._isUTC?p(t._a):Te(t._a);this._isDSTShifted=this.isValid()&&T(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var hi=x.prototype;function di(t,e,i,n){var s=ae(),r=p().set(n,e);return s[i](r,t)}function pi(t,e,i){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return di(t,e,i,"month");var n,s=[];for(n=0;n<12;n++)s[n]=di(t,n,i,"month");return s}function fi(t,e,i,n){"boolean"==typeof t?(c(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,c(e)&&(i=e,e=void 0),e=e||"");var s,r=ae(),o=t?r._week.dow:0;if(null!=i)return di(e,(i+o)%7,n,"day");var a=[];for(s=0;s<7;s++)a[s]=di(e,(s+o)%7,n,"day");return a}hi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return z(n)?n.call(e,i):n},hi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},hi.invalidDate=function(){return this._invalidDate},hi.ordinal=function(t){return this._ordinal.replace("%d",t)},hi.preparse=li,hi.postformat=li,hi.relativeTime=function(t,e,i,n){var s=this._relativeTime[i];return z(s)?s(t,e,i,n):s.replace(/%d/i,t)},hi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return z(i)?i(e):i.replace(/%s/i,e)},hi.set=function(t){var e,i;for(i in t)z(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hi.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||kt).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},hi.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[kt.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hi.monthsParse=function(t,e,i){var n,s,r;if(this._monthsParseExact)return Et.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=p([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},hi.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Ot.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=xt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},hi.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Ot.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Rt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},hi.week=function(t){return Bt(t,this._week.dow,this._week.doy).week},hi.firstDayOfYear=function(){return this._week.doy},hi.firstDayOfWeek=function(){return this._week.dow},hi.weekdays=function(t,e){var i=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ht(i,this._week.dow):t?i[t.day()]:i},hi.weekdaysMin=function(t){return!0===t?Ht(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},hi.weekdaysShort=function(t){return!0===t?Ht(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},hi.weekdaysParse=function(t,e,i){var n,s,r;if(this._weekdaysParseExact)return Wt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=p([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},hi.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},hi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Vt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},hi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},re("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===v(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),s.lang=S("moment.lang is deprecated. Use moment.locale instead.",re),s.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ae);var gi=Math.abs;function mi(t,e,i,n){var s=He(e,i);return t._milliseconds+=n*s._milliseconds,t._days+=n*s._days,t._months+=n*s._months,t._bubble()}function _i(t){return t<0?Math.floor(t):Math.ceil(t)}function bi(t){return 4800*t/146097}function yi(t){return 146097*t/4800}function wi(t){return function(){return this.as(t)}}var Mi=wi("ms"),Ai=wi("s"),vi=wi("m"),Ti=wi("h"),ki=wi("d"),Si=wi("w"),Ci=wi("M"),Ei=wi("Q"),Li=wi("y");function zi(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ri=zi("milliseconds"),xi=zi("seconds"),Oi=zi("minutes"),Di=zi("hours"),Pi=zi("days"),Ni=zi("months"),Ii=zi("years"),Bi=Math.round,Fi={ss:44,s:45,m:45,h:22,d:26,M:11};function Hi(t,e,i,n,s){return s.relativeTime(e||1,!!i,t,n)}var qi=Math.abs;function ji(t){return(t>0)-(t<0)||+t}function Yi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=qi(this._milliseconds)/1e3,n=qi(this._days),s=qi(this._months);t=A(i/60),e=A(t/60),i%=60,t%=60;var r=A(s/12),o=s%=12,a=n,c=e,u=t,l=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",p=ji(this._months)!==ji(h)?"-":"",f=ji(this._days)!==ji(h)?"-":"",g=ji(this._milliseconds)!==ji(h)?"-":"";return d+"P"+(r?p+r+"Y":"")+(o?p+o+"M":"")+(a?f+a+"D":"")+(c||u||l?"T":"")+(c?g+c+"H":"")+(u?g+u+"M":"")+(l?g+l+"S":"")}var Wi=Le.prototype;return Wi.isValid=function(){return this._isValid},Wi.abs=function(){var t=this._data;return this._milliseconds=gi(this._milliseconds),this._days=gi(this._days),this._months=gi(this._months),t.milliseconds=gi(t.milliseconds),t.seconds=gi(t.seconds),t.minutes=gi(t.minutes),t.hours=gi(t.hours),t.months=gi(t.months),t.years=gi(t.years),this},Wi.add=function(t,e){return mi(this,t,e,1)},Wi.subtract=function(t,e){return mi(this,t,e,-1)},Wi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=P(t))||"quarter"===t||"year"===t)switch(i=this._months+bi(e=this._days+n/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(yi(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Wi.asMilliseconds=Mi,Wi.asSeconds=Ai,Wi.asMinutes=vi,Wi.asHours=Ti,Wi.asDays=ki,Wi.asWeeks=Si,Wi.asMonths=Ci,Wi.asQuarters=Ei,Wi.asYears=Li,Wi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*v(this._months/12):NaN},Wi._bubble=function(){var t,e,i,n,s,r=this._milliseconds,o=this._days,a=this._months,c=this._data;return r>=0&&o>=0&&a>=0||r<=0&&o<=0&&a<=0||(r+=864e5*_i(yi(a)+o),o=0,a=0),c.milliseconds=r%1e3,t=A(r/1e3),c.seconds=t%60,e=A(t/60),c.minutes=e%60,i=A(e/60),c.hours=i%24,o+=A(i/24),a+=s=A(bi(o)),o-=_i(yi(s)),n=A(a/12),a%=12,c.days=o,c.months=a,c.years=n,this},Wi.clone=function(){return He(this)},Wi.get=function(t){return t=P(t),this.isValid()?this[t+"s"]():NaN},Wi.milliseconds=Ri,Wi.seconds=xi,Wi.minutes=Oi,Wi.hours=Di,Wi.days=Pi,Wi.weeks=function(){return A(this.days()/7)},Wi.months=Ni,Wi.years=Ii,Wi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=function(t,e,i){var n=He(t).abs(),s=Bi(n.as("s")),r=Bi(n.as("m")),o=Bi(n.as("h")),a=Bi(n.as("d")),c=Bi(n.as("M")),u=Bi(n.as("y")),l=s<=Fi.ss&&["s",s]||s0,l[4]=i,Hi.apply(null,l)}(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Wi.toISOString=Yi,Wi.toString=Yi,Wi.toJSON=Yi,Wi.locale=Xe,Wi.localeData=$e,Wi.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Yi),Wi.lang=Ge,W("X",0,0,"unix"),W("x",0,0,"valueOf"),lt("x",rt),lt("X",/[+-]?\d+(\.\d{1,3})?/),ft("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),ft("x",function(t,e,i){i._d=new Date(v(t))}),s.version="2.24.0",e=Te,s.fn=ui,s.min=function(){return Ce("isBefore",[].slice.call(arguments,0))},s.max=function(){return Ce("isAfter",[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=p,s.unix=function(t){return Te(1e3*t)},s.months=function(t,e){return pi(t,e,"months")},s.isDate=u,s.locale=re,s.invalid=m,s.duration=He,s.isMoment=M,s.weekdays=function(t,e,i){return fi(t,e,i,"weekdays")},s.parseZone=function(){return Te.apply(null,arguments).parseZone()},s.localeData=ae,s.isDuration=ze,s.monthsShort=function(t,e){return pi(t,e,"monthsShort")},s.weekdaysMin=function(t,e,i){return fi(t,e,i,"weekdaysMin")},s.defineLocale=oe,s.updateLocale=function(t,e){if(null!=e){var i,n,s=te;null!=(n=se(t))&&(s=n._config),(i=new x(e=R(s,e))).parentLocale=ee[t],ee[t]=i,re(t)}else null!=ee[t]&&(null!=ee[t].parentLocale?ee[t]=ee[t].parentLocale:null!=ee[t]&&delete ee[t]);return ee[t]},s.locales=function(){return C(ee)},s.weekdaysShort=function(t,e,i){return fi(t,e,i,"weekdaysShort")},s.normalizeUnits=P,s.relativeTimeRounding=function(t){return void 0===t?Bi:"function"==typeof t&&(Bi=t,!0)},s.relativeTimeThreshold=function(t,e){return void 0!==Fi[t]&&(void 0===e?Fi[t]:(Fi[t]=e,"s"===t&&(Fi.ss=e-1),!0))},s.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},s.prototype=ui,s.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"},s}()},9997:function(t){t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,(function(e){return t[e]}).bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=22)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i=4){for(var t=arguments.length,e=Array(t),i=0;i=3){for(var t=arguments.length,e=Array(t),i=0;i=2){for(var t=arguments.length,e=Array(t),i=0;i=1){for(var t=arguments.length,e=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:r.JsonService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=e,this._jsonService=new i(["application/jwk-set+json"])}return t.prototype.getMetadata=function(){var t=this;return this._settings.metadata?(s.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(s.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then(function(e){return s.Log.debug("MetadataService.getMetadata: json received"),t._settings.metadata=e,e})):(s.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},t.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},t.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},t.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},t.prototype.getTokenEndpoint=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",t)},t.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},t.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},t.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},t.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},t.prototype._getMetadataProperty=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s.Log.debug("MetadataService.getMetadataProperty for: "+t),this.getMetadata().then(function(i){if(s.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===i[t]){if(!0===e)return void s.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+t);throw s.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+t),new Error("Metadata does not contain property "+t)}return i[t]})},t.prototype.getSigningKeys=function(){var t=this;return this._settings.signingKeys?(s.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then(function(e){return s.Log.debug("MetadataService.getSigningKeys: jwks_uri received",e),t._jsonService.getJson(e).then(function(e){if(s.Log.debug("MetadataService.getSigningKeys: key set received",e),!e.keys)throw s.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return t._settings.signingKeys=e.keys,t._settings.signingKeys})})},n(t,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration"))),this._metadataUrl}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UrlUtility=void 0;var n=i(0),s=i(1);e.UrlUtility=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.addQueryParam=function(t,e,i){return t.indexOf("?")<0&&(t+="?"),"?"!==t[t.length-1]&&(t+="&"),t+=encodeURIComponent(e),(t+="=")+encodeURIComponent(i)},t.parseUrlFragment=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.Global;"string"!=typeof t&&(t=i.location.href);var r=t.lastIndexOf(e);r>=0&&(t=t.substr(r+1)),"?"===e&&(r=t.indexOf("#"))>=0&&(t=t.substr(0,r));for(var o,a={},c=/([^&=]+)=([^&]*)/g,u=0;o=c.exec(t);)if(a[decodeURIComponent(o[1])]=decodeURIComponent(o[2]),u++>50)return n.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",t),{error:"Response exceeded expected number of parameters"};for(var l in a)return a;return{}},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JoseUtil=void 0;var n=i(25),s=function(t){return t&&t.__esModule?t:{default:t}}(i(32));e.JoseUtil=(0,s.default)({jws:n.jws,KeyUtil:n.KeyUtil,X509:n.X509,crypto:n.crypto,hextob64u:n.hextob64u,b64tohex:n.b64tohex,AllowedSigningAlgs:n.AllowedSigningAlgs})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OidcClientSettings=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.authority,s=e.metadataUrl,r=e.metadata,h=e.signingKeys,d=e.client_id,p=e.client_secret,f=e.response_type,g=void 0===f?u:f,m=e.scope,_=void 0===m?l:m,b=e.redirect_uri,y=e.post_logout_redirect_uri,w=e.prompt,M=e.display,A=e.max_age,v=e.ui_locales,T=e.acr_values,k=e.resource,S=e.response_mode,C=e.filterProtocolClaims,E=void 0===C||C,L=e.loadUserInfo,z=void 0===L||L,R=e.staleStateAge,x=void 0===R?900:R,O=e.clockSkew,D=void 0===O?300:O,P=e.userInfoJwtIssuer,N=void 0===P?"OP":P,I=e.stateStore,B=void 0===I?new o.WebStorageStateStore:I,F=e.ResponseValidatorCtor,H=void 0===F?a.ResponseValidator:F,q=e.MetadataServiceCtor,j=void 0===q?c.MetadataService:q,Y=e.extraQueryParams,W=void 0===Y?{}:Y,U=e.extraTokenParams,K=void 0===U?{}:U;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._authority=i,this._metadataUrl=s,this._metadata=r,this._signingKeys=h,this._client_id=d,this._client_secret=p,this._response_type=g,this._scope=_,this._redirect_uri=b,this._post_logout_redirect_uri=y,this._prompt=w,this._display=M,this._max_age=A,this._ui_locales=v,this._acr_values=T,this._resource=k,this._response_mode=S,this._filterProtocolClaims=!!E,this._loadUserInfo=!!z,this._staleStateAge=x,this._clockSkew=D,this._userInfoJwtIssuer=N,this._stateStore=B,this._validator=new H(this),this._metadataService=new j(this),this._extraQueryParams="object"===(void 0===W?"undefined":n(W))?W:{},this._extraTokenParams="object"===(void 0===K?"undefined":n(K))?K:{}}return s(t,[{key:"client_id",get:function(){return this._client_id},set:function(t){if(this._client_id)throw r.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=t}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(t){if(this._authority)throw r.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=t}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration")),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(t){this._metadata=t}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(t){this._signingKeys=t}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(t){this._extraQueryParams="object"===(void 0===t?"undefined":n(t))?t:{}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(t){this._extraTokenParams="object"===(void 0===t?"undefined":n(t))?t:{}}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebStorageStateStore=void 0;var n=i(0),s=i(1);e.WebStorageStateStore=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.prefix,n=void 0===i?"oidc.":i,r=e.store,o=void 0===r?s.Global.localStorage:r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._store=o,this._prefix=n}return t.prototype.set=function(t,e){return n.Log.debug("WebStorageStateStore.set",t),this._store.setItem(t=this._prefix+t,e),Promise.resolve()},t.prototype.get=function(t){n.Log.debug("WebStorageStateStore.get",t);var e=this._store.getItem(t=this._prefix+t);return Promise.resolve(e)},t.prototype.remove=function(t){n.Log.debug("WebStorageStateStore.remove",t);var e=this._store.getItem(t=this._prefix+t);return this._store.removeItem(t),Promise.resolve(e)},t.prototype.getAllKeys=function(){n.Log.debug("WebStorageStateStore.getAllKeys");for(var t=[],e=0;e0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Global.XMLHttpRequest,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._contentTypes=e&&Array.isArray(e)?e.slice():[],this._contentTypes.push("application/json"),n&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=i,this._jwtHandler=n}return t.prototype.getJson=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.getJson: No url passed"),new Error("url");return n.Log.debug("JsonService.getJson, url: ",t),new Promise(function(s,r){var o=new i._XMLHttpRequest;o.open("GET",t);var a=i._contentTypes,c=i._jwtHandler;o.onload=function(){if(n.Log.debug("JsonService.getJson: HTTP response received, status",o.status),200===o.status){var e=o.getResponseHeader("Content-Type");if(e){var i=a.find(function(t){if(e.startsWith(t))return!0});if("application/jwt"==i)return void c(o).then(s,r);if(i)try{return void s(JSON.parse(o.responseText))}catch(s){return n.Log.error("JsonService.getJson: Error parsing JSON response",s.message),void r(s)}}r(Error("Invalid response Content-Type: "+e+", from URL: "+t))}else r(Error(o.statusText+" ("+o.status+")"))},o.onerror=function(){n.Log.error("JsonService.getJson: network error"),r(Error("Network Error"))},e&&(n.Log.debug("JsonService.getJson: token passed, setting Authorization header"),o.setRequestHeader("Authorization","Bearer "+e)),o.send()})},t.prototype.postForm=function(t,e){var i=this;if(!t)throw n.Log.error("JsonService.postForm: No url passed"),new Error("url");return n.Log.debug("JsonService.postForm, url: ",t),new Promise(function(s,r){var o=new i._XMLHttpRequest;o.open("POST",t);var a=i._contentTypes;o.onload=function(){if(n.Log.debug("JsonService.postForm: HTTP response received, status",o.status),200!==o.status){if(400===o.status&&(i=o.getResponseHeader("Content-Type"))&&a.find(function(t){if(i.startsWith(t))return!0}))try{var e=JSON.parse(o.responseText);if(e&&e.error)return n.Log.error("JsonService.postForm: Error from server: ",e.error),void r(new Error(e.error))}catch(s){return n.Log.error("JsonService.postForm: Error parsing JSON response",s.message),void r(s)}r(Error(o.statusText+" ("+o.status+")"))}else{var i;if((i=o.getResponseHeader("Content-Type"))&&a.find(function(t){if(i.startsWith(t))return!0}))try{return void s(JSON.parse(o.responseText))}catch(s){return n.Log.error("JsonService.postForm: Error parsing JSON response",s.message),void r(s)}r(Error("Invalid response Content-Type: "+i+", from URL: "+t))}},o.onerror=function(){n.Log.error("JsonService.postForm: network error"),r(Error("Network Error"))};var c="";for(var u in e){var l=e[u];l&&(c.length>0&&(c+="&"),c+=encodeURIComponent(u),c+="=",c+=encodeURIComponent(l))}o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(c)})},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.State=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.id,n=e.data,s=e.created,o=e.request_type;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._id=i||(0,r.default)(),this._data=n,this._created="number"==typeof s&&s>0?s:parseInt(Date.now()/1e3),this._request_type=o}return t.prototype.toStorageString=function(){return s.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},t.fromStorageString=function(e){return s.Log.debug("State.fromStorageString"),new t(JSON.parse(e))},t.clearStaleState=function(e,i){var n=Date.now()/1e3-i;return e.getAllKeys().then(function(i){s.Log.debug("State.clearStaleState: got keys",i);for(var r=[],o=function(o){var a=i[o];c=e.get(a).then(function(i){var r=!1;if(i)try{var o=t.fromStorageString(i);s.Log.debug("State.clearStaleState: got item from key: ",a,o.created),o.created<=n&&(r=!0)}catch(t){s.Log.error("State.clearStaleState: Error parsing state for key",a,t.message),r=!0}else s.Log.debug("State.clearStaleState: no item in storage for key: ",a),r=!0;if(r)return s.Log.debug("State.clearStaleState: removed item for key: ",a),e.remove(a)}),r.push(c)},a=0;a0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._settings=e instanceof r.OidcClientSettings?e:new r.OidcClientSettings(e)}return t.prototype.createSigninRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.response_type,n=e.scope,r=e.redirect_uri,o=e.data,c=e.state,u=e.prompt,l=e.display,h=e.max_age,d=e.ui_locales,p=e.id_token_hint,f=e.login_hint,g=e.acr_values,m=e.resource,_=e.request,b=e.request_uri,y=e.response_mode,w=e.extraQueryParams,M=e.extraTokenParams,A=e.request_type,v=e.skipUserInfo,T=arguments[1];s.Log.debug("OidcClient.createSigninRequest");var k=this._settings.client_id;n=n||this._settings.scope,r=r||this._settings.redirect_uri,u=u||this._settings.prompt,l=l||this._settings.display,h=h||this._settings.max_age,d=d||this._settings.ui_locales,g=g||this._settings.acr_values,m=m||this._settings.resource,y=y||this._settings.response_mode,w=w||this._settings.extraQueryParams,M=M||this._settings.extraTokenParams;var S=this._settings.authority;return a.SigninRequest.isCode(i=i||this._settings.response_type)&&"code"!==i?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then(function(e){s.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",e);var C=new a.SigninRequest({url:e,client_id:k,redirect_uri:r,response_type:i,scope:n,data:o||c,authority:S,prompt:u,display:l,max_age:h,ui_locales:d,id_token_hint:p,login_hint:f,acr_values:g,resource:m,request:_,request_uri:b,extraQueryParams:w,extraTokenParams:M,request_type:A,response_mode:y,client_secret:t._settings.client_secret,skipUserInfo:v}),E=C.state;return(T=T||t._stateStore).set(E.id,E.toStorageString()).then(function(){return C})})},t.prototype.readSigninResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.Log.debug("OidcClient.readSigninResponseState");var n="query"===this._settings.response_mode||!this._settings.response_mode&&a.SigninRequest.isCode(this._settings.response_type)?"?":"#",r=new c.SigninResponse(t,n);return r.state?(e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(r.state).then(function(t){if(!t)throw s.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:h.SigninState.fromStorageString(t),response:r}})):(s.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},t.prototype.processSigninResponse=function(t,e){var i=this;return s.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return s.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),i._validator.validateSigninResponse(e,n)})},t.prototype.createSignoutRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.id_token_hint,n=e.data,r=e.state,o=e.post_logout_redirect_uri,a=e.extraQueryParams,c=e.request_type,l=arguments[1];return s.Log.debug("OidcClient.createSignoutRequest"),o=o||this._settings.post_logout_redirect_uri,a=a||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then(function(e){if(!e)throw s.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");s.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",e);var h=new u.SignoutRequest({url:e,id_token_hint:i,post_logout_redirect_uri:o,data:n||r,extraQueryParams:a,request_type:c}),d=h.state;return d&&(s.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(l=l||t._stateStore).set(d.id,d.toStorageString())),h})},t.prototype.readSignoutResponseState=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.Log.debug("OidcClient.readSignoutResponseState");var n=new l.SignoutResponse(t);if(!n.state)return s.Log.debug("OidcClient.readSignoutResponseState: No state in response"),n.error?(s.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",n.error),Promise.reject(new o.ErrorResponse(n))):Promise.resolve({undefined:void 0,response:n});var r=n.state;return e=e||this._stateStore,(i?e.remove.bind(e):e.get.bind(e))(r).then(function(t){if(!t)throw s.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(t),response:n}})},t.prototype.processSignoutResponse=function(t,e){var i=this;return s.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return e?(s.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),i._validator.validateSignoutResponse(e,n)):(s.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),n)})},t.prototype.clearStaleState=function(t){return s.Log.debug("OidcClient.clearStaleState"),d.State.clearStaleState(t=t||this._stateStore,this.settings.staleStateAge)},n(t,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenClient=void 0;var n=i(7),s=i(2),r=i(0);e.TokenClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i,this._metadataService=new o(this._settings)}return t.prototype.exchangeCode=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"authorization_code",e.client_id=e.client_id||this._settings.client_id,e.redirect_uri=e.redirect_uri||this._settings.redirect_uri,e.code?e.redirect_uri?e.code_verifier?e.client_id?this._metadataService.getTokenEndpoint(!1).then(function(i){return r.Log.debug("TokenClient.exchangeCode: Received token endpoint"),t._jsonService.postForm(i,e).then(function(t){return r.Log.debug("TokenClient.exchangeCode: response received"),t})}):(r.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(r.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(r.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(r.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},t.prototype.exchangeRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).grant_type=e.grant_type||"refresh_token",e.client_id=e.client_id||this._settings.client_id,e.client_secret=e.client_secret||this._settings.client_secret,e.refresh_token?e.client_id?this._metadataService.getTokenEndpoint(!1).then(function(i){return r.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),t._jsonService.postForm(i,e).then(function(t){return r.Log.debug("TokenClient.exchangeRefreshToken: response received"),t})}):(r.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(r.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorResponse=void 0;var n=i(0);e.ErrorResponse=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=i.error,r=i.error_description,o=i.error_uri,a=i.state,c=i.session_state;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),!s)throw n.Log.error("No error passed to ErrorResponse"),new Error("error");var u=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,r||s));return u.name="ErrorResponse",u.error=s,u.error_description=r,u.error_uri=o,u.state=a,u.session_state=c,u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Error)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninRequest=void 0;var n=i(0),s=i(3),r=i(13);e.SigninRequest=function(){function t(e){var i=e.url,o=e.client_id,a=e.redirect_uri,c=e.response_type,u=e.scope,l=e.authority,h=e.data,d=e.prompt,p=e.display,f=e.max_age,g=e.ui_locales,m=e.id_token_hint,_=e.login_hint,b=e.acr_values,y=e.resource,w=e.response_mode,M=e.request,A=e.request_uri,v=e.extraQueryParams,T=e.request_type,k=e.client_secret,S=e.extraTokenParams,C=e.skipUserInfo;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!o)throw n.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!a)throw n.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!c)throw n.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!u)throw n.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!l)throw n.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var E=t.isOidc(c),L=t.isCode(c);w||(w=t.isCode(c)?"query":null),this.state=new r.SigninState({nonce:E,data:h,client_id:o,authority:l,redirect_uri:a,code_verifier:L,request_type:T,response_mode:w,client_secret:k,scope:u,extraTokenParams:S,skipUserInfo:C}),i=s.UrlUtility.addQueryParam(i,"client_id",o),i=s.UrlUtility.addQueryParam(i,"redirect_uri",a),i=s.UrlUtility.addQueryParam(i,"response_type",c),i=s.UrlUtility.addQueryParam(i,"scope",u),i=s.UrlUtility.addQueryParam(i,"state",this.state.id),E&&(i=s.UrlUtility.addQueryParam(i,"nonce",this.state.nonce)),L&&(i=s.UrlUtility.addQueryParam(i,"code_challenge",this.state.code_challenge),i=s.UrlUtility.addQueryParam(i,"code_challenge_method","S256"));var z={prompt:d,display:p,max_age:f,ui_locales:g,id_token_hint:m,login_hint:_,acr_values:b,resource:y,request:M,request_uri:A,response_mode:w};for(var R in z)z[R]&&(i=s.UrlUtility.addQueryParam(i,R,z[R]));for(var x in v)i=s.UrlUtility.addQueryParam(i,x,v[x]);this.url=i}return t.isOidc=function(t){return!!t.split(/\s+/g).filter(function(t){return"id_token"===t})[0]},t.isOAuth=function(t){return!!t.split(/\s+/g).filter(function(t){return"token"===t})[0]},t.isCode=function(t){return!!t.split(/\s+/g).filter(function(t){return"code"===t})[0]},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninState=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.nonce,s=i.authority,r=i.client_id,c=i.redirect_uri,u=i.code_verifier,l=i.response_mode,h=i.client_secret,d=i.scope,p=i.extraTokenParams,f=i.skipUserInfo;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var g=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));if(!0===n?g._nonce=(0,a.default)():n&&(g._nonce=n),!0===u?g._code_verifier=(0,a.default)()+(0,a.default)()+(0,a.default)():u&&(g._code_verifier=u),g.code_verifier){var m=o.JoseUtil.hashString(g.code_verifier,"SHA256");g._code_challenge=o.JoseUtil.hexToBase64Url(m)}return g._redirect_uri=c,g._authority=s,g._client_id=r,g._response_mode=l,g._client_secret=h,g._scope=d,g._extraTokenParams=p,g._skipUserInfo=f,g}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toStorageString=function(){return s.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},e.fromStorageString=function(t){return s.Log.debug("SigninState.fromStorageString"),new e(JSON.parse(t))},n(e,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),e}(r.State)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,n.default)().replace(/-/g,"")};var n=function(t){return t&&t.__esModule?t:{default:t}}(i(33));t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.User=void 0;var n=function(){function t(t,e){for(var i=0;i0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessTokenEvents=void 0;var n=i(0),s=i(48);e.AccessTokenEvents=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.accessTokenExpiringNotificationTime,n=void 0===i?60:i,r=e.accessTokenExpiringTimer,o=void 0===r?new s.Timer("Access token expiring"):r,a=e.accessTokenExpiredTimer,c=void 0===a?new s.Timer("Access token expired"):a;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._accessTokenExpiringNotificationTime=n,this._accessTokenExpiring=o,this._accessTokenExpired=c}return t.prototype.load=function(t){if(t.access_token&&void 0!==t.expires_in){var e=t.expires_in;if(n.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",e),e>0){var i=e-this._accessTokenExpiringNotificationTime;i<=0&&(i=1),n.Log.debug("AccessTokenEvents.load: registering expiring timer in:",i),this._accessTokenExpiring.init(i)}else n.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var s=e+1;n.Log.debug("AccessTokenEvents.load: registering expired timer in:",s),this._accessTokenExpired.init(s)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.unload=function(){n.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.addAccessTokenExpiring=function(t){this._accessTokenExpiring.addHandler(t)},t.prototype.removeAccessTokenExpiring=function(t){this._accessTokenExpiring.removeHandler(t)},t.prototype.addAccessTokenExpired=function(t){this._accessTokenExpired.addHandler(t)},t.prototype.removeAccessTokenExpired=function(t){this._accessTokenExpired.removeHandler(t)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=i(0);e.Event=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e,this._callbacks=[]}return t.prototype.addHandler=function(t){this._callbacks.push(t)},t.prototype.removeHandler=function(t){var e=this._callbacks.findIndex(function(e){return e===t});e>=0&&this._callbacks.splice(e,1)},t.prototype.raise=function(){n.Log.debug("Event: Raising event: "+this._name);for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:r.CheckSessionIFrame,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.Global.timer;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=e,this._CheckSessionIFrameCtor=n,this._timer=a,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),this._userManager.getUser().then(function(t){t?i._start(t):i._settings.monitorAnonymousSession&&i._userManager.querySessionStatus().then(function(t){var e={session_state:t.session_state};t.sub&&t.sid&&(e.profile={sub:t.sub,sid:t.sid}),i._start(e)}).catch(function(t){s.Log.error("SessionMonitor ctor: error from querySessionStatus:",t.message)})}).catch(function(t){s.Log.error("SessionMonitor ctor: error from getUser:",t.message)})}return t.prototype._start=function(t){var e=this,i=t.session_state;i&&(t.profile?(this._sub=t.profile.sub,this._sid=t.profile.sid,s.Log.debug("SessionMonitor._start: session_state:",i,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,s.Log.debug("SessionMonitor._start: session_state:",i,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(i):this._metadataService.getCheckSessionIframe().then(function(t){if(t){s.Log.debug("SessionMonitor._start: Initializing check session iframe");var n=e._client_id,r=e._checkSessionInterval,o=e._stopCheckSessionOnError;e._checkSessionIFrame=new e._CheckSessionIFrameCtor(e._callback.bind(e),n,t,r,o),e._checkSessionIFrame.load().then(function(){e._checkSessionIFrame.start(i)})}else s.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")}).catch(function(t){s.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",t.message)}))},t.prototype._stop=function(){var t=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(s.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var e=this._timer.setInterval(function(){t._timer.clearInterval(e),t._userManager.querySessionStatus().then(function(e){var i={session_state:e.session_state};e.sub&&e.sid&&(i.profile={sub:e.sub,sid:e.sid}),t._start(i)}).catch(function(t){s.Log.error("SessionMonitor: error from querySessionStatus:",t.message)})},1e3)},t.prototype._callback=function(){var t=this;this._userManager.querySessionStatus().then(function(e){var i=!0;e?e.sub===t._sub?(i=!1,t._checkSessionIFrame.start(e.session_state),e.sid===t._sid?s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",e.session_state):(s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",e.session_state),t._userManager.events._raiseUserSessionChanged())):s.Log.debug("SessionMonitor._callback: Different subject signed into OP:",e.sub):s.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),i&&(t._sub?(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),t._userManager.events._raiseUserSignedOut()):(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),t._userManager.events._raiseUserSignedIn()))}).catch(function(e){t._sub&&(s.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",e.message),t._userManager.events._raiseUserSignedOut())})},n(t,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CheckSessionIFrame=void 0;var n=i(0);e.CheckSessionIFrame=function(){function t(e,i,n,s){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._callback=e,this._client_id=i,this._url=n,this._interval=s||2e3,this._stopOnError=r;var o=n.indexOf("/",n.indexOf("//")+2);this._frame_origin=n.substr(0,o),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.style.width=0,this._frame.style.height=0,this._frame.src=n}return t.prototype.load=function(){var t=this;return new Promise(function(e){t._frame.onload=function(){e()},window.document.body.appendChild(t._frame),t._boundMessageEvent=t._message.bind(t),window.addEventListener("message",t._boundMessageEvent,!1)})},t.prototype._message=function(t){t.origin===this._frame_origin&&t.source===this._frame.contentWindow&&("error"===t.data?(n.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===t.data?(n.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):n.Log.debug("CheckSessionIFrame: "+t.data+" message from check session op iframe"))},t.prototype.start=function(t){var e=this;if(this._session_state!==t){n.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=t;var i=function(){e._frame.contentWindow.postMessage(e._client_id+" "+e._session_state,e._frame_origin)};i(),this._timer=window.setInterval(i,this._interval)}},t.prototype.stop=function(){this._session_state=null,this._timer&&(n.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenRevocationClient=void 0;var n=i(0),s=i(2),r=i(1);e.TokenRevocationClient=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.Global.XMLHttpRequest,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw n.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=e,this._XMLHttpRequestCtor=i,this._metadataService=new o(this._settings)}return t.prototype.revoke=function(t,e){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!t)throw n.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==s&&"refresh_token"!=s)throw n.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then(function(r){if(r)return n.Log.debug("TokenRevocationClient.revoke: Revoking "+s),i._revoke(r,i._settings.client_id,i._settings.client_secret,t,s);if(e)throw n.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")})},t.prototype._revoke=function(t,e,i,s,r){var o=this;return new Promise(function(a,c){var u=new o._XMLHttpRequestCtor;u.open("POST",t),u.onload=function(){n.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",u.status),200===u.status?a():c(Error(u.statusText+" ("+u.status+")"))},u.onerror=function(){n.Log.debug("TokenRevocationClient.revoke: Network Error."),c("Network Error")};var l="client_id="+encodeURIComponent(e);i&&(l+="&client_secret="+encodeURIComponent(i)),l+="&token_type_hint="+encodeURIComponent(r),l+="&token="+encodeURIComponent(s),u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.send(l)})},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CordovaPopupWindow=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:r.MetadataService,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.UserInfoService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.JoseUtil,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:a.TokenClient;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw s.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=e,this._metadataService=new i(this._settings),this._userInfoService=new n(this._settings),this._joseUtil=c,this._tokenClient=new l(this._settings)}return t.prototype.validateSigninResponse=function(t,e){var i=this;return s.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(t,e).then(function(e){return s.Log.debug("ResponseValidator.validateSigninResponse: state processed"),i._validateTokens(t,e).then(function(e){return s.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),i._processClaims(t,e).then(function(t){return s.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),t})})})},t.prototype.validateSignoutResponse=function(t,e){return t.id!==e.state?(s.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(s.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),e.state=t.data,e.error?(s.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):Promise.resolve(e))},t.prototype._processSigninParams=function(t,e){if(t.id!==e.state)return s.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!t.client_id)return s.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!t.authority)return s.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==t.authority)return s.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=t.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==t.client_id)return s.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=t.client_id;return s.Log.debug("ResponseValidator._processSigninParams: state validated"),e.state=t.data,e.error?(s.Log.warn("ResponseValidator._processSigninParams: Response was error",e.error),Promise.reject(new c.ErrorResponse(e))):t.nonce&&!e.id_token?(s.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!t.nonce&&e.id_token?(s.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):t.code_verifier&&!e.code?(s.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!t.code_verifier&&e.code?(s.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(e.scope||(e.scope=t.scope),Promise.resolve(e))},t.prototype._processClaims=function(t,e){var i=this;if(e.isOpenIdConnect){if(s.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),e.profile=this._filterProtocolClaims(e.profile),!0!==t.skipUserInfo&&this._settings.loadUserInfo&&e.access_token)return s.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(e.access_token).then(function(t){return s.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),t.sub!==e.profile.sub?(s.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in access_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"))):(e.profile=i._mergeClaims(e.profile,t),s.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",e.profile),e)});s.Log.debug("ResponseValidator._processClaims: not loading user info")}else s.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(e)},t.prototype._mergeClaims=function(t,e){var i=Object.assign({},t);for(var s in e){var r=e[s];Array.isArray(r)||(r=[r]);for(var o=0;o1)return s.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));c=a[0]}if(!c)return s.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var u=t.client_id,l=i._settings.clockSkew;return s.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",l),i._joseUtil.validateJwt(e.id_token,c,o,u,l).then(function(){return s.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),n.payload.sub?(e.profile=n.payload,e):(s.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))})})})},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return s.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",e),[];i="EC"}return s.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",i),t=t.filter(function(t){return t.kty===i}),s.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",i,t.length),t},t.prototype._validateAccessToken=function(t){if(!t.profile)return s.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!t.profile.at_hash)return s.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!t.id_token)return s.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var e=this._joseUtil.parseJwt(t.id_token);if(!e||!e.header)return s.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",e),Promise.reject(new Error("Failed to parse id_token"));var i=e.header.alg;if(!i||5!==i.length)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i),Promise.reject(new Error("Unsupported alg: "+i));var n=i.substr(2,3);if(!n)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));if(256!==(n=parseInt(n))&&384!==n&&512!==n)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",i,n),Promise.reject(new Error("Unsupported alg: "+i));var r="sha"+n,o=this._joseUtil.hashString(t.access_token,r);if(!o)return s.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",r),Promise.reject(new Error("Failed to validate at_hash"));var a=o.substr(0,o.length/2),c=this._joseUtil.hexToBase64Url(a);return c!==t.profile.at_hash?(s.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",c,t.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(s.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(t))},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserInfoService=void 0;var n=i(7),s=i(2),r=i(0),o=i(4);e.UserInfoService=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.MetadataService,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.JoseUtil;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw r.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=e,this._jsonService=new i(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new a(this._settings),this._joseUtil=c}return t.prototype.getClaims=function(t){var e=this;return t?this._metadataService.getUserInfoEndpoint().then(function(i){return r.Log.debug("UserInfoService.getClaims: received userinfo url",i),e._jsonService.getJson(i,t).then(function(t){return r.Log.debug("UserInfoService.getClaims: claims received",t),t})}):(r.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},t.prototype._getClaimsFromJwt=function t(e){var i=this;try{var n=this._joseUtil.parseJwt(e.responseText);if(!n||!n.header||!n.payload)return r.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",n),Promise.reject(new Error("Failed to parse id_token"));var s=n.header.kid,o=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":o=this._metadataService.getIssuer();break;case"ANY":o=Promise.resolve(n.payload.iss);break;default:o=Promise.resolve(this._settings.userInfoJwtIssuer)}return o.then(function(t){return r.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+t),i._metadataService.getSigningKeys().then(function(o){if(!o)return r.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));r.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var a=void 0;if(s)a=o.filter(function(t){return t.kid===s})[0];else{if((o=i._filterByAlg(o,n.header.alg)).length>1)return r.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));a=o[0]}if(!a)return r.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var c=i._settings.client_id,u=i._settings.clockSkew;return r.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",u),i._joseUtil.validateJwt(e.responseText,a,t,c,u,void 0,!0).then(function(){return r.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),n.payload})})})}catch(t){return r.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",t.message),void reject(t)}},t.prototype._filterByAlg=function(t,e){var i=null;if(e.startsWith("RS"))i="RSA";else if(e.startsWith("PS"))i="PS";else{if(!e.startsWith("ES"))return r.Log.debug("UserInfoService._filterByAlg: alg not supported: ",e),[];i="EC"}return r.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",i),t=t.filter(function(t){return t.kty===i}),r.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",i,t.length),t},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AllowedSigningAlgs=e.b64tohex=e.hextob64u=e.crypto=e.X509=e.KeyUtil=e.jws=void 0;var n=i(26);e.jws=n.jws,e.KeyUtil=n.KEYUTIL,e.X509=n.X509,e.crypto=n.crypto,e.hextob64u=n.hextob64u,e.b64tohex=n.b64tohex,e.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n={userAgent:!1},s={};if(void 0===r)var r={};r.lang={extend:function(e,i,s){if(!i||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=i.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=i.prototype,i.prototype.constructor==Object.prototype.constructor&&(i.prototype.constructor=i),s){var o;for(o in s)e.prototype[o]=s[o];var a=function(){},c=["toString","valueOf"];try{/MSIE/.test(n.userAgent)&&(a=function(t,e){for(o=0;o>>2]|=(i[r>>>2]>>>24-r%4*8&255)<<24-(n+r)%4*8;else for(r=0;r>>2]=i[r>>>2];return this.sigBytes+=s,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=o.ceil(e/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i>>2]>>>24-s%4*8&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new l.init(i,e/2)}},p=h.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],s=0;s>>2]>>>24-s%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new l.init(i,e)}},f=h.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},g=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,i=e.words,n=e.sigBytes,s=this.blockSize,r=n/(4*s),a=(r=t?o.ceil(r):o.max((0|r)-this._minBufferSize,0))*s,c=o.min(4*a,n);if(a){for(var u=0;u>>2]>>>24-s%4*8&255)<<16|(e[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|e[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;4>o&&s+.75*o>>6*(3-o)&63));if(e=n.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(e){var i=e.length,n=this._map;(s=n.charAt(64))&&-1!=(s=e.indexOf(s))&&(i=s);for(var s=[],r=0,o=0;o>>6-o%4*2;s[r>>>2]|=(a|c)<<24-r%4*8,r++}return t.create(s,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){for(var e=_,i=(s=e.lib).WordArray,n=s.Hasher,s=e.algo,r=[],o=[],a=function(t){return 4294967296*(t-(0|t))|0},c=2,u=0;64>u;){var l;t:{for(var h=t.sqrt(l=c),d=2;d<=h;d++)if(!(l%d)){l=!1;break t}l=!0}l&&(8>u&&(r[u]=a(t.pow(c,.5))),o[u]=a(t.pow(c,1/3)),u++),c++}var p=[];s=s.SHA256=n.extend({_doReset:function(){this._hash=new i.init(r.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],s=i[1],r=i[2],a=i[3],c=i[4],u=i[5],l=i[6],h=i[7],d=0;64>d;d++){if(16>d)p[d]=0|t[e+d];else{var f=p[d-15],g=p[d-2];p[d]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+p[d-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+p[d-16]}f=h+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&u^~c&l)+o[d]+p[d],g=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&s^n&r^s&r),h=l,l=u,u=c,c=a+f|0,a=r,r=s,s=n,n=f+g|0}i[0]=i[0]+n|0,i[1]=i[1]+s|0,i[2]=i[2]+r|0,i[3]=i[3]+a|0,i[4]=i[4]+c|0,i[5]=i[5]+u|0,i[6]=i[6]+l|0,i[7]=i[7]+h|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,s=8*e.sigBytes;return i[s>>>5]|=128<<24-s%32,i[14+(s+64>>>9<<4)]=t.floor(n/4294967296),i[15+(s+64>>>9<<4)]=n,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),e.SHA256=n._createHelper(s),e.HmacSHA256=n._createHmacHelper(s)}(Math),function(){function t(){return n.create.apply(n,arguments)}for(var e=_,i=e.lib.Hasher,n=(r=e.x64).Word,s=r.WordArray,r=e.algo,o=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],a=[],c=0;80>c;c++)a[c]=t();r=r.SHA512=i.extend({_doReset:function(){this._hash=new s.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var i=(h=this._hash.words)[0],n=h[1],s=h[2],r=h[3],c=h[4],u=h[5],l=h[6],h=h[7],d=i.high,p=i.low,f=n.high,g=n.low,m=s.high,_=s.low,b=r.high,y=r.low,w=c.high,M=c.low,A=u.high,v=u.low,T=l.high,k=l.low,S=h.high,C=h.low,E=d,L=p,z=f,R=g,x=m,O=_,D=b,P=y,N=w,I=M,B=A,F=v,H=T,q=k,j=S,Y=C,W=0;80>W;W++){var U=a[W];if(16>W)var K=U.high=0|t[e+2*W],V=U.low=0|t[e+2*W+1];else{K=((V=(K=a[W-15]).high)>>>1|(X=K.low)<<31)^(V>>>8|X<<24)^V>>>7;var X=(X>>>1|V<<31)^(X>>>8|V<<24)^(X>>>7|V<<25),G=((V=(G=a[W-2]).high)>>>19|($=G.low)<<13)^(V<<3|$>>>29)^V>>>6,$=($>>>19|V<<13)^($<<3|V>>>29)^($>>>6|V<<26),J=(V=a[W-7]).high,Q=(Z=a[W-16]).high,Z=Z.low;K=(K=(K=K+J+((V=X+V.low)>>>0>>0?1:0))+G+((V+=$)>>>0<$>>>0?1:0))+Q+((V+=Z)>>>0>>0?1:0),U.high=K,U.low=V}U=E&z^E&x^z&x;var tt=L&R^L&O^R&O,et=(X=(E>>>28|L<<4)^(E<<30|L>>>2)^(E<<25|L>>>7),G=(L>>>28|E<<4)^(L<<30|E>>>2)^(L<<25|E>>>7),($=o[W]).high),it=$.low;Q=(Q=(Q=(Q=j+((N>>>14|I<<18)^(N>>>18|I<<14)^(N<<23|I>>>9))+(($=Y+((I>>>14|N<<18)^(I>>>18|N<<14)^(I<<23|N>>>9)))>>>0>>0?1:0))+(J=N&B^~N&H)+(($+=Z=I&F^~I&q)>>>0>>0?1:0))+et+(($+=it)>>>0>>0?1:0))+K+(($+=V)>>>0>>0?1:0),j=H,Y=q,H=B,q=F,B=N,F=I,N=D+Q+((I=P+$|0)>>>0

>>0?1:0)|0,D=x,P=O,x=z,O=R,z=E,R=L,E=Q+(U=X+U+((V=G+tt)>>>0>>0?1:0))+((L=$+V|0)>>>0<$>>>0?1:0)|0}p=i.low=p+L,i.high=d+E+(p>>>0>>0?1:0),g=n.low=g+R,n.high=f+z+(g>>>0>>0?1:0),_=s.low=_+O,s.high=m+x+(_>>>0>>0?1:0),y=r.low=y+P,r.high=b+D+(y>>>0

>>0?1:0),M=c.low=M+I,c.high=w+N+(M>>>0>>0?1:0),v=u.low=v+F,u.high=A+B+(v>>>0>>0?1:0),k=l.low=k+q,l.high=T+H+(k>>>0>>0?1:0),C=h.low=C+Y,h.high=S+j+(C>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(n+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),e.SHA512=i._createHelper(r),e.HmacSHA512=i._createHmacHelper(r)}(),function(){var t=_,e=(s=t.x64).Word,i=s.WordArray,n=(s=t.algo).SHA512,s=s.SHA384=n.extend({_doReset:function(){this._hash=new i.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=n._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=n._createHelper(s),t.HmacSHA384=n._createHmacHelper(s)}();var b,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function w(t){var e,i,n="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),n+=y.charAt(i>>6)+y.charAt(63&i);for(e+1==t.length?(i=parseInt(t.substring(e,e+1),16),n+=y.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),n+=y.charAt(i>>2)+y.charAt((3&i)<<4));(3&n.length)>0;)n+="=";return n}function M(t){var e,i,n,s="",r=0;for(e=0;e>2),i=3&n,r=1):1==r?(s+=E(i<<2|n>>4),i=15&n,r=2):2==r?(s+=E(i),s+=E(n>>2),i=3&n,r=3):(s+=E(i<<2|n>>4),s+=E(15&n),r=0));return 1==r&&(s+=E(i<<2)),s}function A(t){var e,i=M(t),n=new Array;for(e=0;2*e>15;--r>=0;){var c=32767&this[t],u=this[t++]>>15,l=a*c+u*o;s=((c=o*c+((32767&l)<<15)+i[n]+(1073741823&s))>>>30)+(l>>>15)+a*u+(s>>>30),i[n++]=1073741823&c}return s},b=30):"Netscape"!=n.appName?(v.prototype.am=function(t,e,i,n,s,r){for(;--r>=0;){var o=e*this[t++]+i[n]+s;s=Math.floor(o/67108864),i[n++]=67108863&o}return s},b=26):(v.prototype.am=function(t,e,i,n,s,r){for(var o=16383&e,a=e>>14;--r>=0;){var c=16383&this[t],u=this[t++]>>14,l=a*c+u*o;s=((c=o*c+((16383&l)<<14)+i[n]+s)>>28)+(l>>14)+a*u,i[n++]=268435455&c}return s},b=28),v.prototype.DB=b,v.prototype.DM=(1<>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}function x(t){this.m=t}function O(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function F(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function H(){}function q(t){return t}function j(t){this.r2=T(),this.q3=T(),v.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}x.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},x.prototype.revert=function(t){return t},x.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},x.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},x.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},O.prototype.convert=function(t){var e=T();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(v.ZERO)>0&&this.m.subTo(e,e),e},O.prototype.revert=function(t){var e=T();return t.copyTo(e),this.reduce(e),e},O.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[i=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},O.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},O.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},v.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},v.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},v.prototype.fromString=function(t,e){var i;if(16==e)i=4;else if(8==e)i=3;else if(256==e)i=8;else if(2==e)i=1;else if(32==e)i=5;else{if(4!=e)return void this.fromRadix(t,e);i=2}this.t=0,this.s=0;for(var n=t.length,s=!1,r=0;--n>=0;){var o=8==i?255&t[n]:L(t,n);o<0?"-"==t.charAt(n)&&(s=!0):(s=!1,0==r?this[this.t++]=o:r+i>this.DB?(this[this.t-1]|=(o&(1<>this.DB-r):this[this.t-1]|=o<=this.DB&&(r-=this.DB))}8==i&&0!=(128&t[0])&&(this.s=-1,r>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},v.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},v.prototype.drShiftTo=function(t,e){for(var i=t;i=0;--i)e[i+o+1]=this[i]>>s|a,a=(this[i]&r)<=0;--i)e[i]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},v.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var n=t%this.DB,s=this.DB-n,r=(1<>n;for(var o=i+1;o>n;n>0&&(e[this.t-i-1]|=(this.s&r)<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[i++]=this.DV+n:n>0&&(e[i++]=n),e.t=i,e.clamp()},v.prototype.multiplyTo=function(t,e){var i=this.abs(),n=t.abs(),s=i.t;for(e.t=s+n.t;--s>=0;)e[s]=0;for(s=0;s=0;)t[i]=0;for(i=0;i=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},v.prototype.divRemTo=function(t,e,i){var n=t.abs();if(!(n.t<=0)){var s=this.abs();if(s.t0?(n.lShiftTo(c,r),s.lShiftTo(c,i)):(n.copyTo(r),s.copyTo(i));var u=r.t,l=r[u-1];if(0!=l){var h=l*(1<1?r[u-2]>>this.F2:0),d=this.FV/h,p=(1<=0&&(i[i.t++]=1,i.subTo(_,i)),v.ONE.dlShiftTo(u,_),_.subTo(r,r);r.t=0;){var b=i[--g]==l?this.DM:Math.floor(i[g]*d+(i[g-1]+f)*p);if((i[g]+=r.am(0,b,i,m,0,u))0&&i.rShiftTo(c,i),o<0&&v.ZERO.subTo(i,i)}}},v.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},v.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},v.prototype.exp=function(t,e){if(t>4294967295||t<1)return v.ONE;var i=T(),n=T(),s=e.convert(this),r=R(t)-1;for(s.copyTo(i);--r>=0;)if(e.sqrTo(i,n),(t&1<0)e.mulTo(n,s,i);else{var o=i;i=n,n=o}return e.revert(i)},v.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,n=(1<0)for(a>a)>0&&(s=!0,r=E(i));o>=0;)a>(a+=this.DB-e)):(i=this[o]>>(a-=e)&n,a<=0&&(a+=this.DB,--o)),i>0&&(s=!0),s&&(r+=E(i));return s?r:"0"},v.prototype.negate=function(){var t=T();return v.ZERO.subTo(this,t),t},v.prototype.abs=function(){return this.s<0?this.negate():this},v.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-t.t))return this.s<0?-e:e;for(;--i>=0;)if(0!=(e=this[i]-t[i]))return e;return 0},v.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+R(this[this.t-1]^this.s&this.DM)},v.prototype.mod=function(t){var e=T();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(v.ZERO)>0&&t.subTo(e,e),e},v.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new x(e):new O(e),this.exp(t,i)},v.ZERO=z(0),v.ONE=z(1),H.prototype.convert=q,H.prototype.revert=q,H.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},H.prototype.sqrTo=function(t,e){t.squareTo(e)},j.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=T();return t.copyTo(e),this.reduce(e),e},j.prototype.revert=function(t){return t},j.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},j.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},j.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var Y,W,U,K=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],V=(1<<26)/K[K.length-1];function X(){this.i=0,this.j=0,this.S=new Array}function G(){!function(t){W[U++]^=255&t,W[U++]^=t>>8&255,W[U++]^=t>>16&255,W[U++]^=t>>24&255,U>=256&&(U-=256)}((new Date).getTime())}if(v.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},v.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),n=z(i),s=T(),r=T(),o="";for(this.divRemTo(n,s,r);s.signum()>0;)o=(i+r.intValue()).toString(t).substr(1)+o,s.divRemTo(n,s,r);return r.intValue().toString(t)+o},v.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var i=this.chunkSize(e),n=Math.pow(e,i),s=!1,r=0,o=0,a=0;a=i&&(this.dMultiply(n),this.dAddOffset(o,0),r=0,o=0))}r>0&&(this.dMultiply(Math.pow(e,r)),this.dAddOffset(o,0)),s&&v.ZERO.subTo(this,this)},v.prototype.fromNumber=function(t,e,i){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(v.ONE.shiftLeft(t-1),P,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(v.ONE.shiftLeft(t-1),this);else{var n=new Array,s=7&t;n.length=1+(t>>3),e.nextBytes(n),s>0?n[0]&=(1<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[i++]=n:n<-1&&(e[i++]=this.DV+n),e.t=i,e.clamp()},v.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},v.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},v.prototype.multiplyLowerTo=function(t,e,i){var n,s=Math.min(this.t+t.t,e);for(i.s=0,i.t=s;s>0;)i[--s]=0;for(n=i.t-this.t;s=0;)i[n]=0;for(n=Math.max(e-this.t,0);n0)if(0==e)i=this[0]%t;else for(var n=this.t-1;n>=0;--n)i=(e*i+this[n])%t;return i},v.prototype.millerRabin=function(t){var e=this.subtract(v.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var n=e.shiftRight(i);(t=t+1>>1)>K.length&&(t=K.length);for(var s=T(),r=0;r>24},v.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},v.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},v.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var i,n=this.DB-t*this.DB%8,s=0;if(t-- >0)for(n>n)!=(this.s&this.DM)>>n&&(e[s++]=i|this.s<=0;)n<8?(i=(this[t]&(1<>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==s&&(128&this.s)!=(128&i)&&++s,(s>0||i!=this.s)&&(e[s++]=i);return e},v.prototype.equals=function(t){return 0==this.compareTo(t)},v.prototype.min=function(t){return this.compareTo(t)<0?this:t},v.prototype.max=function(t){return this.compareTo(t)>0?this:t},v.prototype.and=function(t){var e=T();return this.bitwiseTo(t,D,e),e},v.prototype.or=function(t){var e=T();return this.bitwiseTo(t,P,e),e},v.prototype.xor=function(t){var e=T();return this.bitwiseTo(t,N,e),e},v.prototype.andNot=function(t){var e=T();return this.bitwiseTo(t,I,e),e},v.prototype.not=function(){for(var t=T(),e=0;e=this.t?0!=this.s:0!=(this[e]&1<1){var l=T();for(n.sqrTo(o[1],l);a<=u;)o[a]=T(),n.mulTo(l,o[a-2],o[a]),a+=2}var h,d,p=t.t-1,f=!0,g=T();for(s=R(t[p])-1;p>=0;){for(s>=c?h=t[p]>>s-c&u:(h=(t[p]&(1<0&&(h|=t[p-1]>>this.DB+s-c)),a=i;0==(1&h);)h>>=1,--a;if((s-=a)<0&&(s+=this.DB,--p),f)o[h].copyTo(r),f=!1;else{for(;a>1;)n.sqrTo(r,g),n.sqrTo(g,r),a-=2;a>0?n.sqrTo(r,g):(d=r,r=g,g=d),n.mulTo(g,o[h],r)}for(;p>=0&&0==(t[p]&1<=0?(i.subTo(n,i),e&&s.subTo(o,s),r.subTo(a,r)):(n.subTo(i,n),e&&o.subTo(s,o),a.subTo(r,a))}return 0!=n.compareTo(v.ONE)?v.ZERO:a.compareTo(t)>=0?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},v.prototype.pow=function(t){return this.exp(t,new H)},v.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var n=e;e=i,i=n}var s=e.getLowestSetBit(),r=i.getLowestSetBit();if(r<0)return e;for(s0&&(e.rShiftTo(r,e),i.rShiftTo(r,i));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return r>0&&i.lShiftTo(r,i),i},v.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=K[K.length-1]){for(e=0;e>>8,W[U++]=255&$;U=0,G()}function tt(){if(null==Y){for(G(),(Y=new X).init(W),U=0;U>24,(16711680&s)>>16,(65280&s)>>8,255&s]))),s+=1;return n}function st(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function rt(t,e){this.x=e,this.q=t}function ot(t,e,i,n){this.curve=t,this.x=e,this.y=i,this.z=null==n?v.ONE:n,this.zinv=null}function at(t,e,i){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(i),this.infinity=new ot(this,null,null)}et.prototype.nextBytes=function(t){var e;for(e=0;e0&&e.length>0))throw"Invalid RSA public key";this.n=it(t,16),this.e=parseInt(e,16)}},st.prototype.encrypt=function(t){var e=function(t,e){if(e=0&&e>0;){var s=t.charCodeAt(n--);s<128?i[--e]=s:s>127&&s<2048?(i[--e]=63&s|128,i[--e]=s>>6|192):(i[--e]=63&s|128,i[--e]=s>>6&63|128,i[--e]=s>>12|224)}i[--e]=0;for(var r=new et,o=new Array;e>2;){for(o[0]=0;0==o[0];)r.nextBytes(o);i[--e]=o[0]}return i[--e]=2,i[--e]=0,new v(i)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var i=this.doPublic(e);if(null==i)return null;var n=i.toString(16);return 0==(1&n.length)?n:"0"+n},st.prototype.encryptOAEP=function(t,e,i){var n=function(t,e,i,n){var s=ut.crypto.MessageDigest,r=ut.crypto.Util,o=null;if(i||(i="sha1"),"string"==typeof i&&(o=s.getCanonicalAlgName(i),n=s.getHashLength(o),i=function(t){return vt(r.hashHex(Tt(t),o))}),t.length+2*n+2>e)throw"Message too long for RSA";var a,c="";for(a=0;a>3,e,i);if(null==n)return null;var s=this.doPublic(n);if(null==s)return null;var r=s.toString(16);return 0==(1&r.length)?r:"0"+r},st.prototype.type="RSA",rt.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},rt.prototype.toBigInteger=function(){return this.x},rt.prototype.negate=function(){return new rt(this.q,this.x.negate().mod(this.q))},rt.prototype.add=function(t){return new rt(this.q,this.x.add(t.toBigInteger()).mod(this.q))},rt.prototype.subtract=function(t){return new rt(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},rt.prototype.multiply=function(t){return new rt(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},rt.prototype.square=function(){return new rt(this.q,this.x.square().mod(this.q))},rt.prototype.divide=function(t){return new rt(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},ot.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ot.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ot.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(v.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(v.ZERO))},ot.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(v.ZERO)&&!this.y.toBigInteger().equals(v.ZERO)},ot.prototype.negate=function(){return new ot(this.curve,this.x,this.y.negate(),this.z)},ot.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),i=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(v.ZERO.equals(i))return v.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new v("3"),s=this.x.toBigInteger(),r=this.y.toBigInteger(),o=(t.x.toBigInteger(),t.y.toBigInteger(),i.square()),a=o.multiply(i),c=s.multiply(o),u=e.square().multiply(this.z),l=u.subtract(c.shiftLeft(1)).multiply(t.z).subtract(a).multiply(i).mod(this.curve.q),h=c.multiply(n).multiply(e).subtract(r.multiply(a)).subtract(u.multiply(e)).multiply(t.z).add(e.multiply(a)).mod(this.curve.q),d=a.multiply(this.z).multiply(t.z).mod(this.curve.q);return new ot(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(h),d)},ot.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=new v("3"),e=this.x.toBigInteger(),i=this.y.toBigInteger(),n=i.multiply(this.z),s=n.multiply(i).mod(this.curve.q),r=this.curve.a.toBigInteger(),o=e.square().multiply(t);v.ZERO.equals(r)||(o=o.add(this.z.square().multiply(r)));var a=(o=o.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(s)).shiftLeft(1).multiply(n).mod(this.curve.q),c=o.multiply(t).multiply(e).subtract(s.shiftLeft(1)).shiftLeft(2).multiply(s).subtract(o.square().multiply(o)).mod(this.curve.q),u=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new ot(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(c),u)},ot.prototype.multiply=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new v("3")),s=this.negate(),r=this;for(e=n.bitLength()-2;e>0;--e){r=r.twice();var o=n.testBit(e);o!=i.testBit(e)&&(r=r.add(o?this:s))}return r},ot.prototype.multiplyTwo=function(t,e,i){var n;n=t.bitLength()>i.bitLength()?t.bitLength()-1:i.bitLength()-1;for(var s=this.curve.getInfinity(),r=this.add(e);n>=0;)s=s.twice(),t.testBit(n)?s=i.testBit(n)?s.add(r):s.add(this):i.testBit(n)&&(s=s.add(e)),--n;return s},at.prototype.getQ=function(){return this.q},at.prototype.getA=function(){return this.a},at.prototype.getB=function(){return this.b},at.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},at.prototype.getInfinity=function(){return this.infinity},at.prototype.fromBigInteger=function(t){return new rt(this.q,t)},at.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,i=t.substr(2,e),n=t.substr(e+2,e);return new ot(this,this.fromBigInteger(new v(i,16)),this.fromBigInteger(new v(n,16)));default:return null}},rt.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},ot.prototype.getEncoded=function(t){var e=function(t,e){var i=t.toByteArrayUnsigned();if(ei.length;)i.unshift(0);return i},i=this.getX().toBigInteger(),n=this.getY().toBigInteger(),s=e(i,32);return t?n.isEven()?s.unshift(2):s.unshift(3):(s.unshift(4),s=s.concat(e(n,32))),s},ot.decodeFrom=function(t,e){var i=e.length-1,n=e.slice(1,1+i/2),s=e.slice(1+i/2,1+i);n.unshift(0),s.unshift(0);var r=new v(n),o=new v(s);return new ot(t,t.fromBigInteger(r),t.fromBigInteger(o))},ot.decodeFromHex=function(t,e){e.substr(0,2);var i=e.length-2,n=e.substr(2,i/2),s=e.substr(2+i/2,i/2),r=new v(n,16),o=new v(s,16);return new ot(t,t.fromBigInteger(r),t.fromBigInteger(o))},ot.prototype.add2D=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;if(this.x.equals(t.x))return this.y.equals(t.y)?this.twice():this.curve.getInfinity();var e=t.x.subtract(this.x),i=t.y.subtract(this.y).divide(e),n=i.square().subtract(this.x).subtract(t.x),s=i.multiply(this.x.subtract(n)).subtract(this.y);return new ot(this.curve,n,s)},ot.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=this.curve.fromBigInteger(v.valueOf(2)),e=this.curve.fromBigInteger(v.valueOf(3)),i=this.x.square().multiply(e).add(this.curve.a).divide(this.y.multiply(t)),n=i.square().subtract(this.x.multiply(t)),s=i.multiply(this.x.subtract(n)).subtract(this.y);return new ot(this.curve,n,s)},ot.prototype.multiply2D=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,i=t,n=i.multiply(new v("3")),s=this.negate(),r=this;for(e=n.bitLength()-2;e>0;--e){r=r.twice();var o=n.testBit(e);o!=i.testBit(e)&&(r=r.add2D(o?this:s))}return r},ot.prototype.isOnCurve=function(){var t=this.getX().toBigInteger(),e=this.getY().toBigInteger(),i=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),s=this.curve.getQ(),r=e.multiply(e).mod(s),o=t.multiply(t).multiply(t).add(i.multiply(t)).add(n).mod(s);return r.equals(o)},ot.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},ot.prototype.validate=function(){var t=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var e=this.getX().toBigInteger(),i=this.getY().toBigInteger();if(e.compareTo(v.ONE)<0||e.compareTo(t.subtract(v.ONE))>0)throw new Error("x coordinate out of bounds");if(i.compareTo(v.ONE)<0||i.compareTo(t.subtract(v.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(t).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ct=function(){var t=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),e=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),n={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function s(t,e,i){return e?n[e]:String.fromCharCode(parseInt(i,16))}var r=new String(""),o=Object.hasOwnProperty;return function(n,a){var c,u,l=n.match(t),h=l[0],d=!1;"{"===h?c={}:"["===h?c=[]:(c=[],d=!0);for(var p=[c],f=1-d,g=l.length;f=0;)delete s[r[l]]}return a.call(e,n,s)}({"":c},"")),c}}();void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.asn1&&ut.asn1||(ut.asn1={}),ut.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var i=e.substr(1).length;i%2==1?i+=1:e.match(/^[0-7]/)||(i+=2);for(var n="",s=0;s15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+i).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ut.asn1.DERAbstractString=function(t){ut.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=Mt(this.s).toLowerCase()},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},r.lang.extend(ut.asn1.DERAbstractString,ut.asn1.ASN1Object),ut.asn1.DERAbstractTime=function(t){ut.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,i){var n=this.zeroPadding,s=this.localDateToUTC(t),r=String(s.getFullYear());"utc"==e&&(r=r.substr(2,2));var o=r+n(String(s.getMonth()+1),2)+n(String(s.getDate()),2)+n(String(s.getHours()),2)+n(String(s.getMinutes()),2)+n(String(s.getSeconds()),2);if(!0===i){var a=s.getMilliseconds();if(0!=a){var c=n(String(a),3);o=o+"."+(c=c.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=mt(t)},this.setByDateValue=function(t,e,i,n,s,r){var o=new Date(Date.UTC(t,e-1,i,n,s,r,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},r.lang.extend(ut.asn1.DERAbstractTime,ut.asn1.ASN1Object),ut.asn1.DERAbstractStructured=function(t){ut.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},r.lang.extend(ut.asn1.DERAbstractStructured,ut.asn1.ASN1Object),ut.asn1.DERBoolean=function(){ut.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},r.lang.extend(ut.asn1.DERBoolean,ut.asn1.ASN1Object),ut.asn1.DERInteger=function(t){ut.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ut.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new v(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},r.lang.extend(ut.asn1.DERInteger,ut.asn1.ASN1Object),ut.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=ut.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}ut.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7s.length&&(s=n[i]);return(t=t.replace(s,"::")).slice(1,-1)}function Nt(t){var e="malformed hex value";if(!t.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw e;if(8!=t.length)return 32==t.length?Pt(t):t;try{return parseInt(t.substr(0,2),16)+"."+parseInt(t.substr(2,2),16)+"."+parseInt(t.substr(4,2),16)+"."+parseInt(t.substr(6,2),16)}catch(t){throw e}}function It(t){for(var e=encodeURIComponent(t),i="",n=0;n"7"?"00"+t:t}dt.getLblen=function(t,e){if("8"!=t.substr(e+2,1))return 1;var i=parseInt(t.substr(e+3,1));return 0==i?-1:0=2*r)break;if(a>=200)break;n.push(c),o=c,a++}return n},dt.getNthChildIdx=function(t,e,i){return dt.getChildIdx(t,e)[i]},dt.getIdxbyList=function(t,e,i,n){var s,r,o=dt;if(0==i.length){if(void 0!==n&&t.substr(e,2)!==n)throw"checking tag doesn't match: "+t.substr(e,2)+"!="+n;return e}return s=i.shift(),r=o.getChildIdx(t,e),o.getIdxbyList(t,r[s],i,n)},dt.getTLVbyList=function(t,e,i,n){var s=dt,r=s.getIdxbyList(t,e,i);if(void 0===r)throw"can't find nthList object";if(void 0!==n&&t.substr(r,2)!=n)throw"checking tag doesn't match: "+t.substr(r,2)+"!="+n;return s.getTLV(t,r)},dt.getVbyList=function(t,e,i,n,s){var r,o,a=dt;if(void 0===(r=a.getIdxbyList(t,e,i,n)))throw"can't find nthList object";return o=a.getV(t,r),!0===s&&(o=o.substr(2)),o},dt.hextooidstr=function(t){var e=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},i=[],n=t.substr(0,2),s=parseInt(n,16);i[0]=new String(Math.floor(s/40)),i[1]=new String(s%40);for(var r=t.substr(2),o=[],a=0;a0&&(l=l+"."+c.join(".")),l},dt.dump=function(t,e,i,n){var s=dt,r=s.getV,o=s.dump,a=s.getChildIdx,c=t;t instanceof ut.asn1.ASN1Object&&(c=t.getEncodedHex());var u=function(t,e){return t.length<=2*e?t:t.substr(0,e)+"..(total "+t.length/2+"bytes).."+t.substr(t.length-e,e)};void 0===e&&(e={ommit_long_octet:32}),void 0===i&&(i=0),void 0===n&&(n="");var l=e.ommit_long_octet;if("01"==c.substr(i,2))return"00"==(h=r(c,i))?n+"BOOLEAN FALSE\n":n+"BOOLEAN TRUE\n";if("02"==c.substr(i,2))return n+"INTEGER "+u(h=r(c,i),l)+"\n";if("03"==c.substr(i,2))return n+"BITSTRING "+u(h=r(c,i),l)+"\n";if("04"==c.substr(i,2)){var h=r(c,i);return s.isASN1HEX(h)?(A=n+"OCTETSTRING, encapsulates\n")+o(h,e,0,n+" "):n+"OCTETSTRING "+u(h,l)+"\n"}if("05"==c.substr(i,2))return n+"NULL\n";if("06"==c.substr(i,2)){var d=r(c,i),p=ut.asn1.ASN1Util.oidHexToInt(d),f=ut.asn1.x509.OID.oid2name(p),g=p.replace(/\./g," ");return""!=f?n+"ObjectIdentifier "+f+" ("+g+")\n":n+"ObjectIdentifier ("+g+")\n"}if("0c"==c.substr(i,2))return n+"UTF8String '"+At(r(c,i))+"'\n";if("13"==c.substr(i,2))return n+"PrintableString '"+At(r(c,i))+"'\n";if("14"==c.substr(i,2))return n+"TeletexString '"+At(r(c,i))+"'\n";if("16"==c.substr(i,2))return n+"IA5String '"+At(r(c,i))+"'\n";if("17"==c.substr(i,2))return n+"UTCTime "+At(r(c,i))+"\n";if("18"==c.substr(i,2))return n+"GeneralizedTime "+At(r(c,i))+"\n";if("30"==c.substr(i,2)){if("3000"==c.substr(i,4))return n+"SEQUENCE {}\n";A=n+"SEQUENCE\n";var m=e;if((2==(y=a(c,i)).length||3==y.length)&&"06"==c.substr(y[0],2)&&"04"==c.substr(y[y.length-1],2)){f=s.oidname(r(c,y[0]));var _=JSON.parse(JSON.stringify(e));_.x509ExtName=f,m=_}for(var b=0;bs)throw"key is too short for SigAlg: keylen="+i+","+e;for(var r="0001",o="00"+n,a="",c=s-r.length-o.length,u=0;u=0)return!1;if(i.compareTo(v.ONE)<0||i.compareTo(s)>=0)return!1;var o=i.modInverse(s),a=t.multiply(o).mod(s),c=e.multiply(o).mod(s);return r.multiply(a).add(n.multiply(c)).getX().toBigInteger().mod(s).equals(e)},this.serializeSig=function(t,e){var i=t.toByteArraySigned(),n=e.toByteArraySigned(),s=[];return s.push(2),s.push(i.length),(s=s.concat(i)).push(2),s.push(n.length),(s=s.concat(n)).unshift(s.length),s.unshift(48),s},this.parseSig=function(t){var e;if(48!=t[0])throw new Error("Signature not a valid DERSequence");if(2!=t[e=2])throw new Error("First element in signature must be a DERInteger");var i=t.slice(e+2,e+2+t[e+1]);if(2!=t[e+=2+t[e+1]])throw new Error("Second element in signature must be a DERInteger");var n=t.slice(e+2,e+2+t[e+1]);return e+=2+t[e+1],{r:v.fromByteArrayUnsigned(i),s:v.fromByteArrayUnsigned(n)}},this.parseSigCompact=function(t){if(65!==t.length)throw"Signature has the wrong length";var e=t[0]-27;if(e<0||e>7)throw"Invalid signature type";var i=this.ecparams.n;return{r:v.fromByteArrayUnsigned(t.slice(1,33)).mod(i),s:v.fromByteArrayUnsigned(t.slice(33,65)).mod(i),i:e}},this.readPKCS5PrvKeyHex=function(t){var e,i,n,s=ut.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=r(t,0,[2,0],"06"),i=r(t,0,[1],"04");try{n=r(t,0,[3,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=s(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(t){var e,i,n,s=ut.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{r(t,0,[1,0],"06"),e=r(t,0,[1,1],"06"),i=r(t,0,[2,0,1],"04");try{n=r(t,0,[2,0,2,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=s(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PubKeyHex=function(t){var e,i,n=ut.crypto.ECDSA.getName,s=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{s(t,0,[0,0],"06"),e=s(t,0,[0,1],"06"),i=s(t,0,[1],"03").substr(2)}catch(t){throw"malformed PKCS#8 ECC public key"}if(this.curveName=n(e),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},this.readCertPubKeyHex=function(t,e){5!==e&&(e=6);var i,n,s=ut.crypto.ECDSA.getName,r=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{i=r(t,0,[0,e,0,1],"06"),n=r(t,0,[0,e,1],"03").substr(2)}catch(t){throw"malformed X.509 certificate ECC public key"}if(this.curveName=s(i),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},void 0!==t&&void 0!==t.curve&&(this.curveName=t.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==t&&(void 0!==t.prv&&this.setPrivateKeyHex(t.prv),void 0!==t.pub&&this.setPublicKeyHex(t.pub))},ut.crypto.ECDSA.parseSigHex=function(t){var e=ut.crypto.ECDSA.parseSigHexInHexRS(t);return{r:new v(e.r,16),s:new v(e.s,16)}},ut.crypto.ECDSA.parseSigHexInHexRS=function(t){var e=dt.getChildIdx,i=dt.getV;if("30"!=t.substr(0,2))throw"signature is not a ASN.1 sequence";var n=e(t,0);if(2!=n.length)throw"number of signature ASN.1 sequence elements seem wrong";var s=n[0],r=n[1];if("02"!=t.substr(s,2))throw"1st item of sequene of signature is not ASN.1 integer";if("02"!=t.substr(r,2))throw"2nd item of sequene of signature is not ASN.1 integer";return{r:i(t,s),s:i(t,r)}},ut.crypto.ECDSA.asn1SigToConcatSig=function(t){var e=ut.crypto.ECDSA.parseSigHexInHexRS(t),i=e.r,n=e.s;if("00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),"00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),i.length%32==30&&(i="00"+i),n.length%32==30&&(n="00"+n),i.length%32!=0)throw"unknown ECDSA sig r length error";if(n.length%32!=0)throw"unknown ECDSA sig s length error";return i+n},ut.crypto.ECDSA.concatSigToASN1Sig=function(t){if(t.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var e=t.substr(0,t.length/2),i=t.substr(t.length/2);return ut.crypto.ECDSA.hexRSSigToASN1Sig(e,i)},ut.crypto.ECDSA.hexRSSigToASN1Sig=function(t,e){var i=new v(t,16),n=new v(e,16);return ut.crypto.ECDSA.biRSSigToASN1Sig(i,n)},ut.crypto.ECDSA.biRSSigToASN1Sig=function(t,e){var i=ut.asn1,n=new i.DERInteger({bigint:t}),s=new i.DERInteger({bigint:e});return new i.DERSequence({array:[n,s]}).getEncodedHex()},ut.crypto.ECDSA.getName=function(t){return"2a8648ce3d030107"===t?"secp256r1":"2b8104000a"===t?"secp256k1":"2b81040022"===t?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(t)?"secp256r1":-1!=="|secp256k1|".indexOf(t)?"secp256k1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(t)?"secp384r1":null},void 0!==ut&&ut||(e.KJUR=ut={}),void 0!==ut.crypto&&ut.crypto||(ut.crypto={}),ut.crypto.ECParameterDB=new function(){var t={},e={};function i(t){return new v(t,16)}this.getByName=function(i){var n=i;if(void 0!==e[n]&&(n=e[i]),void 0!==t[n])return t[n];throw"unregistered EC curve name: "+n},this.regist=function(n,s,r,o,a,c,u,l,h,d,p,f){t[n]={};var g=i(r),m=i(o),_=i(a),b=i(c),y=i(u),w=new at(g,m,_),M=w.decodePointHex("04"+l+h);t[n].name=n,t[n].keylen=s,t[n].curve=w,t[n].G=M,t[n].n=b,t[n].h=y,t[n].oid=p,t[n].info=f;for(var A=0;A=2*a)break}var h={};return h.keyhex=c.substr(0,2*s[t].keylen),h.ivhex=c.substr(2*s[t].keylen,2*s[t].ivlen),h},a=function(t,e,i,n){var r=_.enc.Base64.parse(t),o=_.enc.Hex.stringify(r);return(0,s[e].proc)(o,i,n)};return{version:"1.0.0",parsePKCS5PEM:function(t){return r(t)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(t,e,i){return o(t,e,i)},decryptKeyB64:function(t,e,i,n){return a(t,e,i,n)},getDecryptedKeyHex:function(t,e){var i=r(t),n=i.cipher,s=i.ivsalt,c=i.data,u=o(n,e,s).keyhex;return a(c,n,u,s)},getEncryptedPKCS5PEMFromPrvKeyHex:function(t,e,i,n,r){var a="";if(void 0!==n&&null!=n||(n="AES-256-CBC"),void 0===s[n])throw"KEYUTIL unsupported algorithm: "+n;return void 0!==r&&null!=r||(r=function(t){var e=_.lib.WordArray.random(t);return _.enc.Hex.stringify(e)}(s[n].ivlen).toUpperCase()),a="-----BEGIN "+t+" PRIVATE KEY-----\r\n",a+="Proc-Type: 4,ENCRYPTED\r\n",a+="DEK-Info: "+n+","+r+"\r\n",a+="\r\n",(a+=function(t,e,i,n){return(0,s[e].eproc)(t,i,n)}(e,n,o(n,i,r).keyhex,r).replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+t+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(e){var i=dt.getChildIdx,n=dt.getV,s={},r=i(e,0);if(2!=r.length)throw"malformed format: SEQUENCE(0).items != 2: "+r.length;s.ciphertext=n(e,r[1]);var o=i(e,r[0]);if(2!=o.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+o.length;if("2a864886f70d01050d"!=n(e,o[0]))throw"this only supports pkcs5PBES2";var a=i(e,o[1]);if(2!=o.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+a.length;var c=i(e,a[1]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+c.length;if("2a864886f70d0307"!=n(e,c[0]))throw"this only supports TripleDES";s.encryptionSchemeAlg="TripleDES",s.encryptionSchemeIV=n(e,c[1]);var u=i(e,a[0]);if(2!=u.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+u.length;if("2a864886f70d01050c"!=n(e,u[0]))throw"this only supports pkcs5PBKDF2";var l=i(e,u[1]);if(l.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+l.length;s.pbkdf2Salt=n(e,l[0]);var h=n(e,l[1]);try{s.pbkdf2Iter=parseInt(h,16)}catch(t){throw"malformed format pbkdf2Iter: "+h}return s},getPBKDF2KeyHexFromParam:function(t,e){var i=_.enc.Hex.parse(t.pbkdf2Salt),n=_.PBKDF2(e,i,{keySize:6,iterations:t.pbkdf2Iter});return _.enc.Hex.stringify(n)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(t,e){var i=Lt(t,"ENCRYPTED PRIVATE KEY"),n=this.parseHexOfEncryptedPKCS8(i),s=Ft.getPBKDF2KeyHexFromParam(n,e),r={};r.ciphertext=_.enc.Hex.parse(n.ciphertext);var o=_.enc.Hex.parse(s),a=_.enc.Hex.parse(n.encryptionSchemeIV),c=_.TripleDES.decrypt(r,o,{iv:a});return _.enc.Hex.stringify(c)},getKeyFromEncryptedPKCS8PEM:function(t,e){var i=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(t,e);return this.getKeyFromPlainPrivatePKCS8Hex(i)},parsePlainPrivatePKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,s={algparam:null};if("30"!=t.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var r=i(t,0);if(3!=r.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=t.substr(r[1],2))throw"malformed PKCS8 private key(code:003)";var o=i(t,r[1]);if(2!=o.length)throw"malformed PKCS8 private key(code:004)";if("06"!=t.substr(o[0],2))throw"malformed PKCS8 private key(code:005)";if(s.algoid=n(t,o[0]),"06"==t.substr(o[1],2)&&(s.algparam=n(t,o[1])),"04"!=t.substr(r[2],2))throw"malformed PKCS8 private key(code:006)";return s.keyidx=e.getVidx(t,r[2]),s},getKeyFromPlainPrivatePKCS8PEM:function(t){var e=Lt(t,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(e)},getKeyFromPlainPrivatePKCS8Hex:function(t){var e,i=this.parsePlainPrivatePKCS8Hex(t);if("2a864886f70d010101"==i.algoid)e=new st;else if("2a8648ce380401"==i.algoid)e=new ut.crypto.DSA;else{if("2a8648ce3d0201"!=i.algoid)throw"unsupported private key algorithm";e=new ut.crypto.ECDSA}return e.readPKCS8PrvKeyHex(t),e},_getKeyFromPublicPKCS8Hex:function(t){var e,i=dt.getVbyList(t,0,[0,0],"06");if("2a864886f70d010101"===i)e=new st;else if("2a8648ce380401"===i)e=new ut.crypto.DSA;else{if("2a8648ce3d0201"!==i)throw"unsupported PKCS#8 public key hex";e=new ut.crypto.ECDSA}return e.readPKCS8PubKeyHex(t),e},parsePublicRawRSAKeyHex:function(t){var e=dt.getChildIdx,i=dt.getV,n={};if("30"!=t.substr(0,2))throw"malformed RSA key(code:001)";var s=e(t,0);if(2!=s.length)throw"malformed RSA key(code:002)";if("02"!=t.substr(s[0],2))throw"malformed RSA key(code:003)";if(n.n=i(t,s[0]),"02"!=t.substr(s[1],2))throw"malformed RSA key(code:004)";return n.e=i(t,s[1]),n},parsePublicPKCS8Hex:function(t){var e=dt,i=e.getChildIdx,n=e.getV,s={algparam:null},r=i(t,0);if(2!=r.length)throw"outer DERSequence shall have 2 elements: "+r.length;var o=r[0];if("30"!=t.substr(o,2))throw"malformed PKCS8 public key(code:001)";var a=i(t,o);if(2!=a.length)throw"malformed PKCS8 public key(code:002)";if("06"!=t.substr(a[0],2))throw"malformed PKCS8 public key(code:003)";if(s.algoid=n(t,a[0]),"06"==t.substr(a[1],2)?s.algparam=n(t,a[1]):"30"==t.substr(a[1],2)&&(s.algparam={},s.algparam.p=e.getVbyList(t,a[1],[0],"02"),s.algparam.q=e.getVbyList(t,a[1],[1],"02"),s.algparam.g=e.getVbyList(t,a[1],[2],"02")),"03"!=t.substr(r[1],2))throw"malformed PKCS8 public key(code:004)";return s.key=n(t,r[1]).substr(2),s}}}();Ft.getKey=function(t,e,i){var n,s=(_=dt).getChildIdx,r=_.getVbyList,o=ut.crypto,a=o.ECDSA,c=o.DSA,u=st,l=Lt,h=Ft;if(void 0!==u&&t instanceof u)return t;if(void 0!==a&&t instanceof a)return t;if(void 0!==c&&t instanceof c)return t;if(void 0!==t.curve&&void 0!==t.xy&&void 0===t.d)return new a({pub:t.xy,curve:t.curve});if(void 0!==t.curve&&void 0!==t.d)return new a({prv:t.d,curve:t.curve});if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(L=new u).setPublic(t.n,t.e),L;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.co&&void 0===t.qi)return(L=new u).setPrivateEx(t.n,t.e,t.d,t.p,t.q,t.dp,t.dq,t.co),L;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0===t.p)return(L=new u).setPrivate(t.n,t.e,t.d),L;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0===t.x)return(L=new c).setPublic(t.p,t.q,t.g,t.y),L;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0!==t.x)return(L=new c).setPrivate(t.p,t.q,t.g,t.y,t.x),L;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(L=new u).setPublic(wt(t.n),wt(t.e)),L;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.qi)return(L=new u).setPrivateEx(wt(t.n),wt(t.e),wt(t.d),wt(t.p),wt(t.q),wt(t.dp),wt(t.dq),wt(t.qi)),L;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d)return(L=new u).setPrivate(wt(t.n),wt(t.e),wt(t.d)),L;if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0===t.d){var d=(E=new a({curve:t.crv})).ecparams.keylen/4,p="04"+("0000000000"+wt(t.x)).slice(-d)+("0000000000"+wt(t.y)).slice(-d);return E.setPublicKeyHex(p),E}if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0!==t.d){d=(E=new a({curve:t.crv})).ecparams.keylen/4,p="04"+("0000000000"+wt(t.x)).slice(-d)+("0000000000"+wt(t.y)).slice(-d);var f=("0000000000"+wt(t.d)).slice(-d);return E.setPublicKeyHex(p),E.setPrivateKeyHex(f),E}if("pkcs5prv"===i){var g,m=t,_=dt;if(9===(g=s(m,0)).length)(L=new u).readPKCS5PrvKeyHex(m);else if(6===g.length)(L=new c).readPKCS5PrvKeyHex(m);else{if(!(g.length>2&&"04"===m.substr(g[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(L=new a).readPKCS5PrvKeyHex(m)}return L}if("pkcs8prv"===i)return h.getKeyFromPlainPrivatePKCS8Hex(t);if("pkcs8pub"===i)return h._getKeyFromPublicPKCS8Hex(t);if("x509pub"===i)return Wt.getPublicKeyFromCertHex(t);if(-1!=t.indexOf("-END CERTIFICATE-",0)||-1!=t.indexOf("-END X509 CERTIFICATE-",0)||-1!=t.indexOf("-END TRUSTED CERTIFICATE-",0))return Wt.getPublicKeyFromCertPEM(t);if(-1!=t.indexOf("-END PUBLIC KEY-")){var b=Lt(t,"PUBLIC KEY");return h._getKeyFromPublicPKCS8Hex(b)}if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var y=l(t,"RSA PRIVATE KEY");return h.getKey(y,null,"pkcs5prv")}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var w=r(n=l(t,"DSA PRIVATE KEY"),0,[1],"02"),M=r(n,0,[2],"02"),A=r(n,0,[3],"02"),T=r(n,0,[4],"02"),k=r(n,0,[5],"02");return(L=new c).setPrivate(new v(w,16),new v(M,16),new v(A,16),new v(T,16),new v(k,16)),L}if(-1!=t.indexOf("-END PRIVATE KEY-"))return h.getKeyFromPlainPrivatePKCS8PEM(t);if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var S=h.getDecryptedKeyHex(t,e),C=new st;return C.readPKCS5PrvKeyHex(S),C}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var E,L=r(n=h.getDecryptedKeyHex(t,e),0,[1],"04"),z=r(n,0,[2,0],"06"),R=r(n,0,[3,0],"03").substr(2);if(void 0===ut.crypto.OID.oidhex2name[z])throw"undefined OID(hex) in KJUR.crypto.OID: "+z;return(E=new a({curve:ut.crypto.OID.oidhex2name[z]})).setPublicKeyHex(R),E.setPrivateKeyHex(L),E.isPublic=!1,E}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED"))return w=r(n=h.getDecryptedKeyHex(t,e),0,[1],"02"),M=r(n,0,[2],"02"),A=r(n,0,[3],"02"),T=r(n,0,[4],"02"),k=r(n,0,[5],"02"),(L=new c).setPrivate(new v(w,16),new v(M,16),new v(A,16),new v(T,16),new v(k,16)),L;if(-1!=t.indexOf("-END ENCRYPTED PRIVATE KEY-"))return h.getKeyFromEncryptedPKCS8PEM(t,e);throw"not supported argument"},Ft.generateKeypair=function(t,e){if("RSA"==t){var i=e;(o=new st).generate(i,"10001"),o.isPrivate=!0,o.isPublic=!0;var n=new st,s=o.n.toString(16),r=o.e.toString(16);return n.setPublic(s,r),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=o,a.pubKeyObj=n,a}if("EC"==t){var o,a,c=e,u=new ut.crypto.ECDSA({curve:c}).generateKeyPairHex();return(o=new ut.crypto.ECDSA({curve:c})).setPublicKeyHex(u.ecpubhex),o.setPrivateKeyHex(u.ecprvhex),o.isPrivate=!0,o.isPublic=!1,(n=new ut.crypto.ECDSA({curve:c})).setPublicKeyHex(u.ecpubhex),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=o,a.pubKeyObj=n,a}throw"unknown algorithm: "+t},Ft.getPEM=function(t,e,i,n,s,r){var o=ut.asn1,a=o.DERObjectIdentifier,c=o.DERInteger,u=o.ASN1Util.newObject,l=ut.crypto,h=l.DSA,d=l.ECDSA,p=st;function f(t){return u({seq:[{int:0},{int:{bigint:t.n}},{int:t.e},{int:{bigint:t.d}},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.dmp1}},{int:{bigint:t.dmq1}},{int:{bigint:t.coeff}}]})}function g(t){return u({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a0",!0,{oid:{name:t.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]})}function m(t){return u({seq:[{int:0},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}},{int:{bigint:t.y}},{int:{bigint:t.x}}]})}if((void 0!==p&&t instanceof p||void 0!==h&&t instanceof h||void 0!==d&&t instanceof d)&&1==t.isPublic&&(void 0===e||"PKCS8PUB"==e))return Et(M=new(0,o.x509.SubjectPublicKeyInfo)(t).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==e&&void 0!==p&&t instanceof p&&(void 0===i||null==i)&&1==t.isPrivate)return Et(M=f(t).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==e&&void 0!==d&&t instanceof d&&(void 0===i||null==i)&&1==t.isPrivate){var b=new a({name:t.curveName}).getEncodedHex(),y=g(t).getEncodedHex(),w="";return(w+=Et(b,"EC PARAMETERS"))+Et(y,"EC PRIVATE KEY")}if("PKCS1PRV"==e&&void 0!==h&&t instanceof h&&(void 0===i||null==i)&&1==t.isPrivate)return Et(M=m(t).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==e&&void 0!==p&&t instanceof p&&void 0!==i&&null!=i&&1==t.isPrivate){var M=f(t).getEncodedHex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",M,i,n,r)}if("PKCS5PRV"==e&&void 0!==d&&t instanceof d&&void 0!==i&&null!=i&&1==t.isPrivate)return M=g(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",M,i,n,r);if("PKCS5PRV"==e&&void 0!==h&&t instanceof h&&void 0!==i&&null!=i&&1==t.isPrivate)return M=m(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",M,i,n,r);var A=function(t,e){var i=v(t,e);return new u({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:i.pbkdf2Salt}},{int:i.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:i.encryptionSchemeIV}}]}]}]},{octstr:{hex:i.ciphertext}}]}).getEncodedHex()},v=function(t,e){var i=_.lib.WordArray.random(8),n=_.lib.WordArray.random(8),s=_.PBKDF2(e,i,{keySize:6,iterations:100}),r=_.enc.Hex.parse(t),o=_.TripleDES.encrypt(r,s,{iv:n})+"",a={};return a.ciphertext=o,a.pbkdf2Salt=_.enc.Hex.stringify(i),a.pbkdf2Iter=100,a.encryptionSchemeAlg="DES-EDE3-CBC",a.encryptionSchemeIV=_.enc.Hex.stringify(n),a};if("PKCS8PRV"==e&&null!=p&&t instanceof p&&1==t.isPrivate){var T=f(t).getEncodedHex();return M=u({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?Et(M,"PRIVATE KEY"):Et(y=A(M,i),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==e&&void 0!==d&&t instanceof d&&1==t.isPrivate)return T=new u({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]}).getEncodedHex(),M=u({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:t.curveName}}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?Et(M,"PRIVATE KEY"):Et(y=A(M,i),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==e&&void 0!==h&&t instanceof h&&1==t.isPrivate)return T=new c({bigint:t.x}).getEncodedHex(),M=u({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}}]}]},{octstr:{hex:T}}]}).getEncodedHex(),void 0===i||null==i?Et(M,"PRIVATE KEY"):Et(y=A(M,i),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},Ft.getKeyFromCSRPEM=function(t){var e=Lt(t,"CERTIFICATE REQUEST");return Ft.getKeyFromCSRHex(e)},Ft.getKeyFromCSRHex=function(t){var e=Ft.parseCSRHex(t);return Ft.getKey(e.p8pubkeyhex,null,"pkcs8pub")},Ft.parseCSRHex=function(t){var e=dt.getChildIdx,i=dt.getTLV,n={},s=t;if("30"!=s.substr(0,2))throw"malformed CSR(code:001)";var r=e(s,0);if(r.length<1)throw"malformed CSR(code:002)";if("30"!=s.substr(r[0],2))throw"malformed CSR(code:003)";var o=e(s,r[0]);if(o.length<3)throw"malformed CSR(code:004)";return n.p8pubkeyhex=i(s,o[2]),n},Ft.getJWKFromKey=function(t){var e={};if(t instanceof st&&t.isPrivate)return e.kty="RSA",e.n=yt(t.n.toString(16)),e.e=yt(t.e.toString(16)),e.d=yt(t.d.toString(16)),e.p=yt(t.p.toString(16)),e.q=yt(t.q.toString(16)),e.dp=yt(t.dmp1.toString(16)),e.dq=yt(t.dmq1.toString(16)),e.qi=yt(t.coeff.toString(16)),e;if(t instanceof st&&t.isPublic)return e.kty="RSA",e.n=yt(t.n.toString(16)),e.e=yt(t.e.toString(16)),e;if(t instanceof ut.crypto.ECDSA&&t.isPrivate){if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;var i=t.getPublicKeyXYHex();return e.kty="EC",e.crv=n,e.x=yt(i.x),e.y=yt(i.y),e.d=yt(t.prvKeyHex),e}if(t instanceof ut.crypto.ECDSA&&t.isPublic){var n;if("P-256"!==(n=t.getShortNISTPCurveName())&&"P-384"!==n)throw"unsupported curve name for JWT: "+n;return i=t.getPublicKeyXYHex(),e.kty="EC",e.crv=n,e.x=yt(i.x),e.y=yt(i.y),e}throw"not supported key object"},st.getPosArrayOfChildrenFromHex=function(t){return dt.getChildIdx(t,0)},st.getHexValueArrayOfChildrenFromHex=function(t){var e,i=dt.getV,n=i(t,(e=st.getPosArrayOfChildrenFromHex(t))[0]),s=i(t,e[1]),r=i(t,e[2]),o=i(t,e[3]),a=i(t,e[4]),c=i(t,e[5]),u=i(t,e[6]),l=i(t,e[7]),h=i(t,e[8]);return(e=new Array).push(n,s,r,o,a,c,u,l,h),e},st.prototype.readPrivateKeyFromPEMString=function(t){var e=Lt(t),i=st.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8])},st.prototype.readPKCS5PrvKeyHex=function(t){var e=st.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},st.prototype.readPKCS8PrvKeyHex=function(t){var e,i,n,s,r,o,a,c,u=dt.getVbyList;if(!1===dt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=u(t,0,[2,0,1],"02"),i=u(t,0,[2,0,2],"02"),n=u(t,0,[2,0,3],"02"),s=u(t,0,[2,0,4],"02"),r=u(t,0,[2,0,5],"02"),o=u(t,0,[2,0,6],"02"),a=u(t,0,[2,0,7],"02"),c=u(t,0,[2,0,8],"02")}catch(t){throw"malformed PKCS#8 plain RSA private key"}this.setPrivateEx(e,i,n,s,r,o,a,c)},st.prototype.readPKCS5PubKeyHex=function(t){var e=dt,i=e.getV;if(!1===e.isASN1HEX(t))throw"keyHex is not ASN.1 hex string";var n=e.getChildIdx(t,0);if(2!==n.length||"02"!==t.substr(n[0],2)||"02"!==t.substr(n[1],2))throw"wrong hex for PKCS#5 public key";var s=i(t,n[0]),r=i(t,n[1]);this.setPublic(s,r)},st.prototype.readPKCS8PubKeyHex=function(t){var e=dt;if(!1===e.isASN1HEX(t))throw"not ASN.1 hex string";if("06092a864886f70d010101"!==e.getTLVbyList(t,0,[0,0]))throw"not PKCS8 RSA public key";var i=e.getTLVbyList(t,0,[1,0]);this.readPKCS5PubKeyHex(i)},st.prototype.readCertPubKeyHex=function(t,e){var i,n;(i=new Wt).readCertHex(t),n=i.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)};var Ht=new RegExp("");function qt(t,e){for(var i="",n=e/4-t.length,s=0;s>24,(16711680&s)>>16,(65280&s)>>8,255&s])))),s+=1;return n}function Yt(t){for(var e in ut.crypto.Util.DIGESTINFOHEAD){var i=ut.crypto.Util.DIGESTINFOHEAD[e],n=i.length;if(t.substring(0,n)==i)return[e,t.substring(n)]}return[]}function Wt(){var t=dt,e=t.getChildIdx,i=t.getV,n=t.getTLV,s=t.getVbyList,r=t.getTLVbyList,o=t.getIdxbyList,a=t.getVidx,c=t.oidname,u=Wt,l=Lt;this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==r(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return s(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){return c(s(this.hex,0,[0,2+this.foffset,0],"06"))},this.getIssuerHex=function(){return r(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return u.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return r(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return u.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var t=s(this.hex,0,[0,4+this.foffset,0]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getNotAfter=function(){var t=s(this.hex,0,[0,4+this.foffset,1]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getPublicKeyHex=function(){return t.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return o(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var t=this.getPublicKeyIdx();return o(this.hex,t,[1,0],"30")},this.getPublicKey=function(){return Ft.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return c(s(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return s(this.hex,0,[2],"03",!0)},this.verifySignature=function(t){var e=this.getSignatureAlgorithmName(),i=this.getSignatureValueHex(),n=r(this.hex,0,[0],"30"),s=new ut.crypto.Signature({alg:e});return s.init(t),s.updateHex(n),s.verify(i)},this.parseExt=function(){if(3!==this.version)return-1;var i=o(this.hex,0,[0,7,0],"30"),n=e(this.hex,i);this.aExtInfo=new Array;for(var r=0;r0&&(u=new Array(i),(new et).nextBytes(u),u=String.fromCharCode.apply(String,u));var l=vt(c(Tt("\0\0\0\0\0\0\0\0"+s+u))),h=[];for(n=0;n>8*a-o&255),n=0;nthis.n.bitLength())return 0;var n=Yt(this.doPublic(i).toString(16).replace(/^1f+00/,""));if(0==n.length)return!1;var s=n[0];return n[1]==function(t){return ut.crypto.Util.hashString(t,s)}(t)},st.prototype.verifyWithMessageHash=function(t,e){var i=it(e=(e=e.replace(Ht,"")).replace(/[ \n]+/g,""),16);if(i.bitLength()>this.n.bitLength())return 0;var n=Yt(this.doPublic(i).toString(16).replace(/^1f+00/,""));return 0!=n.length&&n[1]==t},st.prototype.verifyPSS=function(t,e,i,n){var s=function(t){return ut.crypto.Util.hashHex(t,i)}(Tt(t));return void 0===n&&(n=-1),this.verifyWithMessageHashPSS(s,e,i,n)},st.prototype.verifyWithMessageHashPSS=function(t,e,i,n){var s=new v(e,16);if(s.bitLength()>this.n.bitLength())return!1;var r,o=function(t){return ut.crypto.Util.hashHex(t,i)},a=vt(t),c=a.length,u=this.n.bitLength()-1,l=Math.ceil(u/8);if(-1===n||void 0===n)n=c;else if(-2===n)n=l-c-2;else if(n<-2)throw"invalid salt length";if(l>8*l-u&255;if(0!=(d.charCodeAt(0)&f))throw"bits beyond keysize not zero";var g=jt(p,d.length,o),m=[];for(r=0;r0&&-1==(":"+n.join(":")+":").indexOf(":"+m+":"))throw"algorithm '"+m+"' not accepted in the list";if("none"!=m&&null===e)throw"key shall be specified to verify.";if("string"==typeof e&&-1!=e.indexOf("-----BEGIN ")&&(e=Ft.getKey(e)),!("RS"!=d&&"PS"!=d||e instanceof s))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==d&&!(e instanceof c))throw"key shall be a ECDSA obj for ES* algs";var _=null;if(void 0===r.jwsalg2sigalg[g.alg])throw"unsupported alg name: "+m;if("none"==(_=r.jwsalg2sigalg[m]))throw"not supported";if("Hmac"==_.substr(0,4)){if(void 0===e)throw"hexadecimal key shall be specified for HMAC";var b=new u({alg:_,pass:e});return b.updateString(p),f==b.doFinal()}if(-1!=_.indexOf("withECDSA")){var y,w=null;try{w=c.concatSigToASN1Sig(f)}catch(t){return!1}return(y=new l({alg:_})).init(e),y.updateString(p),y.verify(w)}return(y=new l({alg:_})).init(e),y.updateString(p),y.verify(f)},ut.jws.JWS.parse=function(t){var e,i,n=t.split("."),s={};if(2!=n.length&&3!=n.length)throw"malformed sJWS: wrong number of '.' splitted elements";return e=n[1],3==n.length&&(i=n[2]),s.headerObj=ut.jws.JWS.readSafeJSONString(ht(n[0])),s.payloadObj=ut.jws.JWS.readSafeJSONString(ht(e)),s.headerPP=JSON.stringify(s.headerObj,null," "),s.payloadPP=null==s.payloadObj?ht(e):JSON.stringify(s.payloadObj,null," "),void 0!==i&&(s.sigHex=wt(i)),s},ut.jws.JWS.verifyJWT=function(t,e,n){var s=ut.jws,r=s.JWS,o=r.readSafeJSONString,a=r.inArray,c=r.includedArray,u=t.split("."),l=u[0],h=u[1],d=(wt(u[2]),o(ht(l))),p=o(ht(h));if(void 0===d.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!a(d.alg,n.alg))return!1;if(void 0!==p.iss&&"object"===i(n.iss)&&!a(p.iss,n.iss))return!1;if(void 0!==p.sub&&"object"===i(n.sub)&&!a(p.sub,n.sub))return!1;if(void 0!==p.aud&&"object"===i(n.aud))if("string"==typeof p.aud){if(!a(p.aud,n.aud))return!1}else if("object"==i(p.aud)&&!c(p.aud,n.aud))return!1;var f=s.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(f=n.verifyAt),void 0!==n.gracePeriod&&"number"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==p.exp&&"number"==typeof p.exp&&p.exp+n.gracePeriode.length&&(i=e.length);for(var n=0;n=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function f(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return q(t).length;default:if(n)return H(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function m(t,e,i,n,s){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=s?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(s)return-1;i=t.length-1}else if(i<0){if(!s)return-1;i=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:_(t,e,i,n,s);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):_(t,[e],i,n,s);throw new TypeError("val must be string, number or Buffer")}function _(t,e,i,n,s){var r,o=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,i/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(s){var l=-1;for(r=i;ra&&(i=a-c),r=i;r>=0;r--){for(var h=!0,d=0;ds&&(n=s):n=s;var r=e.length;if(r%2!=0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var o=0;o>8,s.push(i%256),s.push(n);return s}(e,t.length-i),t,i,n)}function T(t,e,i){return n.fromByteArray(0===e&&i===t.length?t:t.slice(e,i))}function k(t,e,i){i=Math.min(t.length,i);for(var n=[],s=e;s239?4:u>223?3:u>191?2:1;if(s+h<=i)switch(h){case 1:u<128&&(l=u);break;case 2:128==(192&(r=t[s+1]))&&(c=(31&u)<<6|63&r)>127&&(l=c);break;case 3:o=t[s+2],128==(192&(r=t[s+1]))&&128==(192&o)&&(c=(15&u)<<12|(63&r)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=t[s+2],a=t[s+3],128==(192&(r=t[s+1]))&&128==(192&o)&&128==(192&a)&&(c=(15&u)<<18|(63&r)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(n.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),n.push(l),s+=h}return function(t){var e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);for(var i="",n=0;nthis.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,i);case"utf8":case"utf-8":return k(this,e,i);case"ascii":return C(this,e,i);case"latin1":case"binary":return E(this,e,i);case"base64":return T(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}).apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),""},c.prototype.compare=function(t,e,i,n,s){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),e<0||i>t.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&e>=i)return 0;if(n>=s)return-1;if(e>=i)return 1;if(this===t)return 0;for(var r=(s>>>=0)-(n>>>=0),o=(i>>>=0)-(e>>>=0),a=Math.min(r,o),u=this.slice(n,s),l=t.slice(e,i),h=0;hs)&&(i=s),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return b(this,t,e,i);case"utf8":case"utf-8":return y(this,t,e,i);case"ascii":return w(this,t,e,i);case"latin1":case"binary":return M(this,t,e,i);case"base64":return A(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,t,e,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function C(t,e,i){var n="";i=Math.min(t.length,i);for(var s=e;sn)&&(i=n);for(var s="",r=e;ri)throw new RangeError("Trying to access beyond buffer length")}function x(t,e,i,n,s,r){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||et.length)throw new RangeError("Index out of range")}function O(t,e,i,n){e<0&&(e=65535+e+1);for(var s=0,r=Math.min(t.length-i,2);s>>8*(n?s:1-s)}function D(t,e,i,n){e<0&&(e=4294967295+e+1);for(var s=0,r=Math.min(t.length-i,4);s>>8*(n?s:3-s)&255}function P(t,e,i,n,s,r){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function N(t,e,i,n,r){return r||P(t,0,i,4),s.write(t,e,i,n,23,4),i+4}function I(t,e,i,n,r){return r||P(t,0,i,8),s.write(t,e,i,n,52,8),i+8}c.prototype.slice=function(t,e){var i,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(s*=256);)n+=this[t+--e]*s;return n},c.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||R(t,e,this.length);for(var n=this[t],s=1,r=0;++r=(s*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||R(t,e,this.length);for(var n=e,s=1,r=this[t+--n];n>0&&(s*=256);)r+=this[t+--n]*s;return r>=(s*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),s.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),s.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),s.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),s.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,i,n){t=+t,e|=0,i|=0,n||x(this,t,e,i,Math.pow(2,8*i)-1,0);var s=1,r=0;for(this[e]=255&t;++r=0&&(r*=256);)this[e+s]=t/r&255;return e+i},c.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*i-1);x(this,t,e,i,s-1,-s)}var r=0,o=1,a=0;for(this[e]=255&t;++r>0)-a&255;return e+i},c.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var s=Math.pow(2,8*i-1);x(this,t,e,i,s-1,-s)}var r=i-1,o=1,a=0;for(this[e+r]=255&t;--r>=0&&(o*=256);)t<0&&0===a&&0!==this[e+r+1]&&(a=1),this[e+r]=(t/o>>0)-a&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||x(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,i){return N(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return N(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return I(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return I(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--s)t[s+e]=this[s+i];else if(r<1e3||!c.TYPED_ARRAY_SUPPORT)for(s=0;s>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(r=e;r55295&&i<57344){if(!s){if(i>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&r.push(239,191,189);continue}s=i;continue}if(i<56320){(e-=3)>-1&&r.push(239,191,189),s=i;continue}i=65536+(s-55296<<10|i-56320)}else s&&(e-=3)>-1&&r.push(239,191,189);if(s=null,i<128){if((e-=1)<0)break;r.push(i)}else if(i<2048){if((e-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function q(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function j(t,e,i,n){for(var s=0;s=e.length||s>=t.length);++s)e[s+i]=t[s];return s}}).call(this,i(28))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";e.byteLength=function(t){var e=u(t),i=e[1];return 3*(e[0]+i)/4-i},e.toByteArray=function(t){for(var e,i=u(t),n=i[0],o=i[1],a=new r(function(t,e,i){return 3*(e+i)/4-i}(0,n,o)),c=0,l=o>0?n-4:n,h=0;h>16&255,a[c++]=e>>8&255,a[c++]=255&e;return 2===o&&(e=s[t.charCodeAt(h)]<<2|s[t.charCodeAt(h+1)]>>4,a[c++]=255&e),1===o&&(e=s[t.charCodeAt(h)]<<10|s[t.charCodeAt(h+1)]<<4|s[t.charCodeAt(h+2)]>>2,a[c++]=e>>8&255,a[c++]=255&e),a},e.fromByteArray=function(t){for(var e,i=t.length,s=i%3,r=[],o=0,a=i-s;oa?a:o+16383));return 1===s?r.push(n[(e=t[i-1])>>2]+n[e<<4&63]+"=="):2===s&&r.push(n[(e=(t[i-2]<<8)+t[i-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),r.join("")};for(var n=[],s=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function l(t,e,i){for(var s,r=[],o=e;o>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return r.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,i,n,s){var r,o,a=8*s-n-1,c=(1<>1,l=-7,h=i?s-1:0,d=i?-1:1,p=t[e+h];for(h+=d,r=p&(1<<-l)-1,p>>=-l,l+=a;l>0;r=256*r+t[e+h],h+=d,l-=8);for(o=r&(1<<-l)-1,r>>=-l,l+=n;l>0;o=256*o+t[e+h],h+=d,l-=8);if(0===r)r=1-u;else{if(r===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),r-=u}return(p?-1:1)*o*Math.pow(2,r-n)},e.write=function(t,e,i,n,s,r){var o,a,c,u=8*r-s-1,l=(1<>1,d=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:r-1,f=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=l):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(o++,c/=2),o+h>=l?(a=0,o=l):o+h>=1?(a=(e*c-1)*Math.pow(2,s),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,s),o=0));s>=8;t[i+p]=255&a,p+=f,a/=256,s-=8);for(o=o<0;t[i+p]=255&o,p+=f,o/=256,u-=8);t[i+p-f]|=128*g}},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.jws,i=t.KeyUtil,s=t.X509,r=t.crypto,o=t.hextob64u,a=t.b64tohex,c=t.AllowedSigningAlgs;return function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.parseJwt=function t(i){n.Log.debug("JoseUtil.parseJwt");try{var s=e.JWS.parse(i);return{header:s.headerObj,payload:s.payloadObj}}catch(t){n.Log.error(t)}},t.validateJwt=function(e,r,o,c,u,l,h){n.Log.debug("JoseUtil.validateJwt");try{if("RSA"===r.kty)if(r.e&&r.n)r=i.getKey(r);else{if(!r.x5c||!r.x5c.length)return n.Log.error("JoseUtil.validateJwt: RSA key missing key material",r),Promise.reject(new Error("RSA key missing key material"));var d=a(r.x5c[0]);r=s.getPublicKeyFromCertHex(d)}else{if("EC"!==r.kty)return n.Log.error("JoseUtil.validateJwt: Unsupported key type",r&&r.kty),Promise.reject(new Error(r.kty));if(!(r.crv&&r.x&&r.y))return n.Log.error("JoseUtil.validateJwt: EC key missing key material",r),Promise.reject(new Error("EC key missing key material"));r=i.getKey(r)}return t._validateJwt(e,r,o,c,u,l,h)}catch(t){return n.Log.error(t&&t.message||t),Promise.reject("JWT validation failed")}},t.validateJwtAttributes=function(e,i,s,r,o,a){r||(r=0),o||(o=parseInt(Date.now()/1e3));var c=t.parseJwt(e).payload;if(!c.iss)return n.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(c.iss!==i)return n.Log.error("JoseUtil._validateJwt: Invalid issuer in token",c.iss),Promise.reject(new Error("Invalid issuer in token: "+c.iss));if(!c.aud)return n.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(c.aud===s||Array.isArray(c.aud)&&c.aud.indexOf(s)>=0))return n.Log.error("JoseUtil._validateJwt: Invalid audience in token",c.aud),Promise.reject(new Error("Invalid audience in token: "+c.aud));if(c.azp&&c.azp!==s)return n.Log.error("JoseUtil._validateJwt: Invalid azp in token",c.azp),Promise.reject(new Error("Invalid azp in token: "+c.azp));if(!a){var u=o+r,l=o-r;if(!c.iat)return n.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(u>>((3&e)<<3)&255;return s}}},function(t,e){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninResponse=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"#";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=s.UrlUtility.parseUrlFragment(e,i);this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.code=n.code,this.state=n.state,this.id_token=n.id_token,this.session_state=n.session_state,this.access_token=n.access_token,this.token_type=n.token_type,this.scope=n.scope,this.profile=void 0,this.expires_in=n.expires_in}return n(t,[{key:"expires_in",get:function(){if(this.expires_at){var t=parseInt(Date.now()/1e3);return this.expires_at-t}},set:function(t){var e=parseInt(t);if("number"==typeof e&&e>0){var i=parseInt(Date.now()/1e3);this.expires_at=i+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutRequest=void 0;var n=i(0),s=i(3),r=i(8);e.SignoutRequest=function t(e){var i=e.url,o=e.id_token_hint,a=e.post_logout_redirect_uri,c=e.data,u=e.extraQueryParams,l=e.request_type;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw n.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var h in o&&(i=s.UrlUtility.addQueryParam(i,"id_token_hint",o)),a&&(i=s.UrlUtility.addQueryParam(i,"post_logout_redirect_uri",a),c&&(this.state=new r.State({data:c,request_type:l}),i=s.UrlUtility.addQueryParam(i,"state",this.state.id))),u)i=s.UrlUtility.addQueryParam(i,h,u[h]);this.url=i}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutResponse=void 0;var n=i(3);e.SignoutResponse=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=n.UrlUtility.parseUrlFragment(e,"?");this.error=i.error,this.error_description=i.error_description,this.error_uri=i.error_uri,this.state=i.state}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryWebStorage=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.SilentRenewService,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.SessionMonitor,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.TokenRevocationClient,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d.TokenClient,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:p.JoseUtil;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i instanceof o.UserManagerSettings||(i=new o.UserManagerSettings(i));var m=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return m._events=new c.UserManagerEvents(i),m._silentRenewService=new n(m),m.settings.automaticSilentRenew&&(s.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),m.startSilentRenew()),m.settings.monitorSession&&(s.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),m._sessionMonitor=new r(m)),m._tokenRevocationClient=new a(m._settings),m._tokenClient=new f(m._settings),m._joseUtil=g,m}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getUser=function(){var t=this;return this._loadUser().then(function(e){return e?(s.Log.info("UserManager.getUser: user loaded"),t._events.load(e,!1),e):(s.Log.info("UserManager.getUser: user not found in storage"),null)})},e.prototype.removeUser=function(){var t=this;return this.storeUser(null).then(function(){s.Log.info("UserManager.removeUser: user removed from storage"),t._events.unload()})},e.prototype.signinRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:r";var e={useReplaceToNavigate:t.useReplaceToNavigate};return this._signinStart(t,this._redirectNavigator,e).then(function(){s.Log.info("UserManager.signinRedirect: successful")})},e.prototype.signinRedirectCallback=function(t){return this._signinEnd(t||this._redirectNavigator.url).then(function(t){return t.profile&&t.profile.sub?s.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinRedirectCallback: no sub"),t})},e.prototype.signinPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:p";var e=t.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.display="popup",this._signin(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinPopup: no sub")),t})):(s.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},e.prototype.signinPopupCallback=function(t){return this._signinCallback(t,this._popupNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinPopupCallback: no sub")),t}).catch(function(t){s.Log.error(t.message)})},e.prototype.signinSilent=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},e)).request_type="si:s",this._loadUser().then(function(i){return i&&i.refresh_token?(e.refresh_token=i.refresh_token,t._useRefreshToken(e)):(e.id_token_hint=e.id_token_hint||t.settings.includeIdTokenInSilentRenew&&i&&i.id_token,i&&t._settings.validateSubOnSilentRenew&&(s.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",i.profile.sub),e.current_sub=i.profile.sub),t._signinSilentIframe(e))})},e.prototype._useRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(e).then(function(e){return e?e.access_token?t._loadUser().then(function(i){if(i){var n=Promise.resolve();return e.id_token&&(n=t._validateIdTokenFromTokenRefreshToken(i.profile,e.id_token)),n.then(function(){return s.Log.debug("UserManager._useRefreshToken: refresh token response success"),i.id_token=e.id_token,i.access_token=e.access_token,i.refresh_token=e.refresh_token||i.refresh_token,i.expires_in=e.expires_in,t.storeUser(i).then(function(){return t._events.load(i),i})})}return null}):(s.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(s.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))})},e.prototype._validateIdTokenFromTokenRefreshToken=function(t,e){var i=this;return this._metadataService.getIssuer().then(function(n){return i._joseUtil.validateJwtAttributes(e,n,i._settings.client_id,i._settings.clockSkew).then(function(e){return e?e.sub!==t.sub?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):e.auth_time&&e.auth_time!==t.auth_time?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):e.azp&&e.azp!==t.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!e.azp&&t.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))})})},e.prototype._signinSilentIframe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.prompt=t.prompt||"none",this._signin(t,this._iframeNavigator,{startUrl:e,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinSilent: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinSilent: no sub")),t})):(s.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype.signinSilentCallback=function(t){return this._signinCallback(t,this._iframeNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?s.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",t.profile.sub):s.Log.info("UserManager.signinSilentCallback: no sub")),t})},e.prototype.signinCallback=function(t){var e=this;return this.readSigninResponseState(t).then(function(i){var n=i.state;return"si:r"===n.request_type?e.signinRedirectCallback(t):"si:p"===n.request_type?e.signinPopupCallback(t):"si:s"===n.request_type?e.signinSilentCallback(t):Promise.reject(new Error("invalid response_type in state"))})},e.prototype.signoutCallback=function(t,e){var i=this;return this.readSignoutResponseState(t).then(function(n){var s=n.state,r=n.response;return s?"so:r"===s.request_type?i.signoutRedirectCallback(t):"so:p"===s.request_type?i.signoutPopupCallback(t,e):Promise.reject(new Error("invalid response_type in state")):r})},e.prototype.querySessionStatus=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:s";var i=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return i?(e.redirect_uri=i,e.prompt="none",e.response_type=e.response_type||this.settings.query_status_response_type,e.scope=e.scope||"openid",e.skipUserInfo=!0,this._signinStart(e,this._iframeNavigator,{startUrl:i,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(e){return t.processSigninResponse(e.url).then(function(t){if(s.Log.debug("UserManager.querySessionStatus: got signin response"),t.session_state&&t.profile.sub)return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",t.profile.sub),{session_state:t.session_state,sub:t.profile.sub,sid:t.profile.sid};s.Log.info("querySessionStatus successful, user not authenticated")}).catch(function(e){if(e.session_state&&t.settings.monitorAnonymousSession&&("login_required"==e.message||"consent_required"==e.message||"interaction_required"==e.message||"account_selection_required"==e.message))return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:e.session_state};throw e})})):(s.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},e.prototype._signin=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(t,e,n).then(function(e){return i._signinEnd(e.url,t)})},e.prototype._signinStart=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.prepare(n).then(function(e){return s.Log.debug("UserManager._signinStart: got navigator window handle"),i.createSigninRequest(t).then(function(t){return s.Log.debug("UserManager._signinStart: got signin request"),n.url=t.url,n.id=t.state.id,e.navigate(n)}).catch(function(t){throw e.close&&(s.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),e.close()),t})})},e.prototype._signinEnd=function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(t).then(function(t){s.Log.debug("UserManager._signinEnd: got signin response");var n=new a.User(t);if(i.current_sub){if(i.current_sub!==n.profile.sub)return s.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",n.profile.sub),Promise.reject(new Error("login_required"));s.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return e.storeUser(n).then(function(){return s.Log.debug("UserManager._signinEnd: user stored"),e._events.load(n),n})})},e.prototype._signinCallback=function(t,e){return s.Log.debug("UserManager._signinCallback"),e.callback(t)},e.prototype.signoutRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:r";var e=t.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;e&&(t.post_logout_redirect_uri=e);var i={useReplaceToNavigate:t.useReplaceToNavigate};return this._signoutStart(t,this._redirectNavigator,i).then(function(){s.Log.info("UserManager.signoutRedirect: successful")})},e.prototype.signoutRedirectCallback=function(t){return this._signoutEnd(t||this._redirectNavigator.url).then(function(t){return s.Log.info("UserManager.signoutRedirectCallback: successful"),t})},e.prototype.signoutPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:p";var e=t.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return t.post_logout_redirect_uri=e,t.display="popup",t.post_logout_redirect_uri&&(t.state=t.state||{}),this._signout(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(){s.Log.info("UserManager.signoutPopup: successful")})},e.prototype.signoutPopupCallback=function(t,e){return void 0===e&&"boolean"==typeof t&&(e=t,t=null),this._popupNavigator.callback(t,e,"?").then(function(){s.Log.info("UserManager.signoutPopupCallback: successful")})},e.prototype._signout=function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(t,e,n).then(function(t){return i._signoutEnd(t.url)})},e.prototype._signoutStart=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,i=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.prepare(n).then(function(i){return s.Log.debug("UserManager._signoutStart: got navigator window handle"),e._loadUser().then(function(r){return s.Log.debug("UserManager._signoutStart: loaded current user from storage"),(e._settings.revokeAccessTokenOnSignout?e._revokeInternal(r):Promise.resolve()).then(function(){var o=t.id_token_hint||r&&r.id_token;return o&&(s.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),t.id_token_hint=o),e.removeUser().then(function(){return s.Log.debug("UserManager._signoutStart: user removed, creating signout request"),e.createSignoutRequest(t).then(function(t){return s.Log.debug("UserManager._signoutStart: got signout request"),n.url=t.url,t.state&&(n.id=t.state.id),i.navigate(n)})})})}).catch(function(t){throw i.close&&(s.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),i.close()),t})})},e.prototype._signoutEnd=function(t){return this.processSignoutResponse(t).then(function(t){return s.Log.debug("UserManager._signoutEnd: got signout response"),t})},e.prototype.revokeAccessToken=function(){var t=this;return this._loadUser().then(function(e){return t._revokeInternal(e,!0).then(function(i){if(i)return s.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),e.access_token=null,e.refresh_token=null,e.expires_at=null,e.token_type=null,t.storeUser(e).then(function(){s.Log.debug("UserManager.revokeAccessToken: user stored"),t._events.load(e)})})}).then(function(){s.Log.info("UserManager.revokeAccessToken: access token revoked successfully")})},e.prototype._revokeInternal=function(t,e){var i=this;if(t){var n=t.refresh_token;return this._revokeAccessTokenInternal(t.access_token,e).then(function(t){return i._revokeRefreshTokenInternal(n,e).then(function(e){return t||e||s.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),t||e})})}return Promise.resolve(!1)},e.prototype._revokeAccessTokenInternal=function(t,e){return!t||t.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(t,e).then(function(){return!0})},e.prototype._revokeRefreshTokenInternal=function(t,e){return t?this._tokenRevocationClient.revoke(t,e,"refresh_token").then(function(){return!0}):Promise.resolve(!1)},e.prototype.startSilentRenew=function(){this._silentRenewService.start()},e.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},e.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then(function(t){return t?(s.Log.debug("UserManager._loadUser: user storageString loaded"),a.User.fromStorageString(t)):(s.Log.debug("UserManager._loadUser: no user storageString"),null)})},e.prototype.storeUser=function(t){if(t){s.Log.debug("UserManager.storeUser: storing user");var e=t.toStorageString();return this._userStore.set(this._userStoreKey,e)}return s.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},n(e,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),e}(r.OidcClient)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserManagerSettings=void 0;var n=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.popup_redirect_uri,s=i.popup_post_logout_redirect_uri,h=i.popupWindowFeatures,d=i.popupWindowTarget,p=i.silent_redirect_uri,f=i.silentRequestTimeout,g=i.automaticSilentRenew,m=void 0!==g&&g,_=i.validateSubOnSilentRenew,b=void 0!==_&&_,y=i.includeIdTokenInSilentRenew,w=void 0===y||y,M=i.monitorSession,A=void 0===M||M,v=i.monitorAnonymousSession,T=void 0!==v&&v,k=i.checkSessionInterval,S=void 0===k?2e3:k,C=i.stopCheckSessionOnError,E=void 0===C||C,L=i.query_status_response_type,z=i.revokeAccessTokenOnSignout,R=void 0!==z&&z,x=i.accessTokenExpiringNotificationTime,O=void 0===x?60:x,D=i.redirectNavigator,P=void 0===D?new r.RedirectNavigator:D,N=i.popupNavigator,I=void 0===N?new o.PopupNavigator:N,B=i.iframeNavigator,F=void 0===B?new a.IFrameNavigator:B,H=i.userStore,q=void 0===H?new c.WebStorageStateStore({store:u.Global.sessionStorage}):H;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var j=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,arguments[0]));return j._popup_redirect_uri=n,j._popup_post_logout_redirect_uri=s,j._popupWindowFeatures=h,j._popupWindowTarget=d,j._silent_redirect_uri=p,j._silentRequestTimeout=f,j._automaticSilentRenew=m,j._validateSubOnSilentRenew=b,j._includeIdTokenInSilentRenew=w,j._accessTokenExpiringNotificationTime=O,j._monitorSession=A,j._monitorAnonymousSession=T,j._checkSessionInterval=S,j._stopCheckSessionOnError=E,j._query_status_response_type=L||(arguments[0]&&arguments[0].response_type?l.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":"id_token"),j._revokeAccessTokenOnSignout=R,j._redirectNavigator=P,j._popupNavigator=I,j._iframeNavigator=F,j._userStore=q,j}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),e}(s.OidcClientSettings)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RedirectNavigator=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1])||arguments[1];n.Log.debug("UserManagerEvents.load"),t.prototype.load.call(this,e),i&&this._userLoaded.raise(e)},e.prototype.unload=function(){n.Log.debug("UserManagerEvents.unload"),t.prototype.unload.call(this),this._userUnloaded.raise()},e.prototype.addUserLoaded=function(t){this._userLoaded.addHandler(t)},e.prototype.removeUserLoaded=function(t){this._userLoaded.removeHandler(t)},e.prototype.addUserUnloaded=function(t){this._userUnloaded.addHandler(t)},e.prototype.removeUserUnloaded=function(t){this._userUnloaded.removeHandler(t)},e.prototype.addSilentRenewError=function(t){this._silentRenewError.addHandler(t)},e.prototype.removeSilentRenewError=function(t){this._silentRenewError.removeHandler(t)},e.prototype._raiseSilentRenewError=function(t){n.Log.debug("UserManagerEvents._raiseSilentRenewError",t.message),this._silentRenewError.raise(t)},e.prototype.addUserSignedIn=function(t){this._userSignedIn.addHandler(t)},e.prototype.removeUserSignedIn=function(t){this._userSignedIn.removeHandler(t)},e.prototype._raiseUserSignedIn=function(){n.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},e.prototype.addUserSignedOut=function(t){this._userSignedOut.addHandler(t)},e.prototype.removeUserSignedOut=function(t){this._userSignedOut.removeHandler(t)},e.prototype._raiseUserSignedOut=function(){n.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},e.prototype.addUserSessionChanged=function(t){this._userSessionChanged.addHandler(t)},e.prototype.removeUserSessionChanged=function(t){this._userSessionChanged.removeHandler(t)},e.prototype._raiseUserSessionChanged=function(){n.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},e}(s.AccessTokenEvents)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=void 0;var n=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:r.Global.timer,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return o._timer=n,o._nowFunc=s||function(){return Date.now()/1e3},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.init=function(t){t<=0&&(t=1),t=parseInt(t);var e=this.now+t;if(this.expiration===e&&this._timerHandle)s.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),s.Log.debug("Timer.init timer "+this._name+" for duration:",t),this._expiration=e;var i=5;t0&&c>a&&(c=a);for(var u=0;u=0?(l=f.substr(0,g),h=f.substr(g+1)):(l=f,h=""),d=decodeURIComponent(l),p=decodeURIComponent(h),e(r,d)?Array.isArray(r[d])?r[d].push(p):r[d]=[r[d],p]:r[d]=p}return r}},5341:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,s){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(s){var r=encodeURIComponent(e(s))+n;return Array.isArray(t[s])?t[s].map(function(t){return r+encodeURIComponent(e(t))}).join(i):r+encodeURIComponent(e(t[s]))}).join(i):s?encodeURIComponent(e(s))+n+encodeURIComponent(e(t)):""}},6577:function(t,e,i){"use strict";i(963),i(5341)},4360:function(t){"use strict";t.exports=JSON.parse('{"version":"2020a","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5","Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|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 WAT|-d.A -10|01|-22y0d.A|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 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 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 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 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|01212121212121212121212121212121213|-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|","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/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3","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/Curacao|LMT -0430 AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4","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/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2","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 BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v 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 CDT|5Q.M 60 5u 50|01212121212121212121212121212121212121212121212121213131|-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 1wou Rbu 1f0Mu qn0 lxB0 mn0|57e3","America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2","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/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","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/Creston|MST PST|70 80|010|-29DR0 43B0|53e2","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|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-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|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|01212121212121212121212121212121212121212121212121212121212121212121212121232121212121212121212121212121212121212121|-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 1zb0 5Ip0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 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 -0345 -03 -04|3Q.E 3J 30 40|0123|-2dvU7.k 2r6LQ.k Bxbf|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/Nassau|LMT EST EDT|59.u 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2kNuO.u 26XdO.u 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|24e4","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/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","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/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","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|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-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|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|01212121|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80","Antarctica/Macquarie|AEST AEDT -00 +11|-a0 -b0 0 -b0|0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101013|-29E80 19X0 4SL0 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 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","Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20","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/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","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 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|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|0101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 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 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 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 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|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|012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyMk.E 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 3LB0 Em0 or0 1cn0 1dB0 16n0 10O0 1ja0 1tC0 14o0 1cM0 1a00 11A0 1Na0 An0 1MP0 AJ0 1Kp0 LC0 1oo0 Wl0 EQN0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-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 3Co0 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|LMT AST ADT|4j.i 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1BnRE.G 1LTbE.G 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|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-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 3Co0 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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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/Currie|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|746","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293kI xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Hobart|AEST AEDT|-a0 -b0|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 VfB0 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/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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293jX xcX 10jd0 yL0 1cN0 1cL0 1gSp0 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||","Pacific/Port_Moresby|+10|-a0|0||25e4","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 1ip0 17b0 1op0 1tb0 Q2m0 3Ne0 WM0 1fA0 1cM0 1cM0 1oJ0 1dc0 1030 1fA0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1iM0 1fA0 8Ha0 Rb0 1wN0 Rb0 1BB0 Lz0 1C20 LB0 SNX0 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|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|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-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 3Co0 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|-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 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|-2nco8.l cNb8.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|012323232323232321212121212121212121212121212121212121212121212|-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|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|-2yO3F.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|01232345454545454545454545454545454545454545454545454545454|-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 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|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|0121212121212121212121|-2l9nd.g 2Szcd.g 1cL0 1oN0 10L0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-12 -11 +13|c0 b0 -d0|012|nIc0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-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 20o0 s00 20o0 pc0 20o0 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|-1120 -1130 -11|bk bu b0|012|-KfME 17y0a|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|-1030 -0930 -10|au 9u a0|012121212121212121212121212|lyWu 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|+1220 +13 +14|-ck -d0 -e0|0121212121|-1aB0k 2n5dk 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/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/Atikokan|America/Coral_Harbour","America/Chicago|US/Central","America/Curacao|America/Aruba","America/Curacao|America/Kralendijk","America/Curacao|America/Lower_Princes","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/Los_Angeles|US/Pacific-New","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/Cayman","America/Phoenix|US/Arizona","America/Port_of_Spain|America/Anguilla","America/Port_of_Spain|America/Antigua","America/Port_of_Spain|America/Dominica","America/Port_of_Spain|America/Grenada","America/Port_of_Spain|America/Guadeloupe","America/Port_of_Spain|America/Marigot","America/Port_of_Spain|America/Montserrat","America/Port_of_Spain|America/St_Barthelemy","America/Port_of_Spain|America/St_Kitts","America/Port_of_Spain|America/St_Lucia","America/Port_of_Spain|America/St_Thomas","America/Port_of_Spain|America/St_Vincent","America/Port_of_Spain|America/Tortola","America/Port_of_Spain|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|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|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/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/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|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/Currie 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/Vancouver America/Whitehorse America/Dawson","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/Astrakhan Europe/Volgograd 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"]}')},6700:function(t,e,i){var n={"./af":776,"./af.js":776,"./ar":7634,"./ar-dz":2758,"./ar-dz.js":2758,"./ar-kw":4980,"./ar-kw.js":4980,"./ar-ly":9602,"./ar-ly.js":9602,"./ar-ma":2500,"./ar-ma.js":2500,"./ar-sa":6909,"./ar-sa.js":6909,"./ar-tn":2735,"./ar-tn.js":2735,"./ar.js":7634,"./az":7798,"./az.js":7798,"./be":9949,"./be.js":9949,"./bg":4590,"./bg.js":4590,"./bm":5938,"./bm.js":5938,"./bn":595,"./bn.js":595,"./bo":4756,"./bo.js":4756,"./br":7277,"./br.js":7277,"./bs":4166,"./bs.js":4166,"./ca":3943,"./ca.js":3943,"./cs":3474,"./cs.js":3474,"./cv":2218,"./cv.js":2218,"./cy":1061,"./cy.js":1061,"./da":2743,"./da.js":2743,"./de":1899,"./de-at":8580,"./de-at.js":8580,"./de-ch":3264,"./de-ch.js":3264,"./de.js":1899,"./dv":8784,"./dv.js":8784,"./el":4654,"./el.js":4654,"./en-SG":4047,"./en-SG.js":4047,"./en-au":6277,"./en-au.js":6277,"./en-ca":6896,"./en-ca.js":6896,"./en-gb":1609,"./en-gb.js":1609,"./en-ie":4557,"./en-ie.js":4557,"./en-il":5836,"./en-il.js":5836,"./en-nz":3586,"./en-nz.js":3586,"./eo":2777,"./eo.js":2777,"./es":3357,"./es-do":3128,"./es-do.js":3128,"./es-us":3256,"./es-us.js":3256,"./es.js":3357,"./et":2654,"./et.js":2654,"./eu":7287,"./eu.js":7287,"./fa":3875,"./fa.js":3875,"./fi":3431,"./fi.js":3431,"./fo":1781,"./fo.js":1781,"./fr":1717,"./fr-ca":1539,"./fr-ca.js":1539,"./fr-ch":9847,"./fr-ch.js":9847,"./fr.js":1717,"./fy":2250,"./fy.js":2250,"./ga":7665,"./ga.js":7665,"./gd":5214,"./gd.js":5214,"./gl":6154,"./gl.js":6154,"./gom-latn":8518,"./gom-latn.js":8518,"./gu":9221,"./gu.js":9221,"./he":4743,"./he.js":4743,"./hi":7339,"./hi.js":7339,"./hr":3224,"./hr.js":3224,"./hu":856,"./hu.js":856,"./hy-am":6855,"./hy-am.js":6855,"./id":2190,"./id.js":2190,"./is":3887,"./is.js":3887,"./it":9270,"./it-ch":5890,"./it-ch.js":5890,"./it.js":9270,"./ja":6595,"./ja.js":6595,"./jv":3081,"./jv.js":3081,"./ka":7477,"./ka.js":7477,"./kk":3978,"./kk.js":3978,"./km":9205,"./km.js":9205,"./kn":25,"./kn.js":25,"./ko":427,"./ko.js":427,"./ku":9089,"./ku.js":9089,"./ky":9314,"./ky.js":9314,"./lb":3136,"./lb.js":3136,"./lo":9115,"./lo.js":9115,"./lt":7087,"./lt.js":7087,"./lv":5683,"./lv.js":5683,"./me":9454,"./me.js":9454,"./mi":5507,"./mi.js":5507,"./mk":8466,"./mk.js":8466,"./ml":2933,"./ml.js":2933,"./mn":9477,"./mn.js":9477,"./mr":3597,"./mr.js":3597,"./ms":5529,"./ms-my":9965,"./ms-my.js":9965,"./ms.js":5529,"./mt":259,"./mt.js":259,"./my":8061,"./my.js":8061,"./nb":2618,"./nb.js":2618,"./ne":8452,"./ne.js":8452,"./nl":1885,"./nl-be":413,"./nl-be.js":413,"./nl.js":1885,"./nn":5107,"./nn.js":5107,"./pa-in":702,"./pa-in.js":702,"./pl":1711,"./pl.js":1711,"./pt":594,"./pt-br":8238,"./pt-br.js":8238,"./pt.js":594,"./ro":4681,"./ro.js":4681,"./ru":6201,"./ru.js":6201,"./sd":2912,"./sd.js":2912,"./se":6002,"./se.js":6002,"./si":7942,"./si.js":7942,"./sk":5577,"./sk.js":5577,"./sl":1775,"./sl.js":1775,"./sq":6823,"./sq.js":6823,"./sr":9038,"./sr-cyrl":3848,"./sr-cyrl.js":3848,"./sr.js":9038,"./ss":6173,"./ss.js":6173,"./sv":5788,"./sv.js":5788,"./sw":6882,"./sw.js":6882,"./ta":2678,"./ta.js":2678,"./te":2797,"./te.js":2797,"./tet":2447,"./tet.js":2447,"./tg":1335,"./tg.js":1335,"./th":8667,"./th.js":8667,"./tl-ph":9914,"./tl-ph.js":9914,"./tlh":1389,"./tlh.js":1389,"./tr":3578,"./tr.js":3578,"./tzl":6969,"./tzl.js":6969,"./tzm":6509,"./tzm-latn":690,"./tzm-latn.js":690,"./tzm.js":6509,"./ug-cn":55,"./ug-cn.js":55,"./uk":2452,"./uk.js":2452,"./ur":1151,"./ur.js":1151,"./uz":1555,"./uz-latn":6547,"./uz-latn.js":6547,"./uz.js":1555,"./vi":6541,"./vi.js":6541,"./x-pseudo":2401,"./x-pseudo.js":2401,"./yo":2341,"./yo.js":2341,"./zh-cn":619,"./zh-cn.js":619,"./zh-hk":7058,"./zh-hk.js":7058,"./zh-tw":2782,"./zh-tw.js":2782};function s(t){var e=r(t);return i(e)}function r(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}s.keys=function(){return Object.keys(n)},s.resolve=r,t.exports=s,s.id=6700},306:function(t){"use strict";t.exports={i8:"2.0.0"}}},function(t){"use strict";t(t.s=4638)}]); \ No newline at end of file diff --git a/dist/apps/user-profile/main-es5.25b258bd8f922b203159.js b/dist/apps/user-profile/main-es5.25b258bd8f922b203159.js deleted file mode 100644 index 66468d78c..000000000 --- a/dist/apps/user-profile/main-es5.25b258bd8f922b203159.js +++ /dev/null @@ -1 +0,0 @@ -!function(){function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){return i(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(u){s=!0,r=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||s(e,t)||n()}function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e){if(Array.isArray(e))return e}function r(e){return function(e){if(Array.isArray(e))return u(e)}(e)||o(e)||s(e)||function(){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 o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n4&&void 0!==arguments[4]?arguments[4]:new K(e,n,i);if(!r.closed)return t instanceof I?t.subscribe(r):Q(t)(r)}var $=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(O);function ee(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new te(e,t))}}var te=function(){function e(t,n){_(this,e),this.project=t,this.thisArg=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new ne(e,this.project,this.thisArg))}}]),e}(),ne=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||m(o),o}return w(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(O);function ie(e,t){return new I(function(n){var i=new L,r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function re(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[D]}(e))return function(e,t){return new I(function(n){var i=new L;return i.add(t.schedule(function(){var r=e[D]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if(J(e))return function(e,t){return new I(function(n){var i=new L;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if(G(e))return ie(e,t);if(function(e){return e&&"function"==typeof e[X]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new I(function(n){var i,r=new L;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[X](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof I?e:new I(Q(e))}function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(oe(function(n,i){return re(e(n,i)).pipe(ee(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new ae(e,n))})}var ae=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_(this,e),this.project=t,this.concurrent=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new se(e,this.project,this.concurrent))}}]),e}(),se=function(e){d(n,e);var t=p(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return w(n,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}($);function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return oe(P,e)}function ce(e,t){return t?ie(e,t):new I(V(e))}function le(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof o&&(i=t.pop()),null===r&&1===t.length&&t[0]instanceof I?t[0]:ue(i)(ce(t,r))}function he(){return function(e){return e.lift(new fe(e))}}var de,fe=function(){function e(t){_(this,e),this.connectable=t}return w(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new pe(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),pe=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).connectable=i,r}return w(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(O),ge=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return w(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new L).add(this.source.subscribe(new ve(this.getSubject(),this))),e.closed&&(this._connection=null,e=L.EMPTY)),e}},{key:"refCount",value:function(){return he()(this)}}]),n}(I),me={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(de=ge.prototype)._subscribe},_isComplete:{value:de._isComplete,writable:!0},getSubject:{value:de.getSubject},connect:{value:de.connect},refCount:{value:de.refCount}},ve=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).connectable=i,r}return w(n,[{key:"_error",value:function(e){this._unsubscribe(),h(y(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),h(y(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(j);function ye(){return new Y}function _e(){return function(e){return he()((t=ye,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,me);return i.source=e,i.subjectFactory=n,i})(e));var t}}function be(e){for(var t in e)if(e[t]===be)return t;throw Error("Could not find renamed property on target object.")}function we(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Me(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Me).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ae(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var ke=be({__forward_ref__:be});function Te(e){return e.__forward_ref__=Te,e.toString=function(){return Me(this())},e}function Se(e){return Ce(e)?e():e}function Ce(e){return"function"==typeof e&&e.hasOwnProperty(ke)&&e.__forward_ref__===Te}var Ee=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(c(Error));function Le(e){return"string"==typeof e?e:null==e?"":String(e)}function ze(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Le(e)}function Re(e,t){var n=t?" in ".concat(t):"";throw new Ee("201","No provider for ".concat(ze(e)," found").concat(n))}function Oe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function xe(e){return{providers:e.providers||[],imports:e.imports||[]}}function De(e){return Pe(e,Be)||Pe(e,He)}function Pe(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ne(e){return e&&(e.hasOwnProperty(Fe)||e.hasOwnProperty(qe))?e[Fe]:null}var Ie,Be=be({"\u0275prov":be}),Fe=be({"\u0275inj":be}),He=be({ngInjectableDef:be}),qe=be({ngInjectorDef:be}),je=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function Ye(e){var t=Ie;return Ie=e,t}function We(e,t,n){var i=De(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&je.Optional?null:void 0!==t?t:void Re(Me(e),"Injector")}function Ue(e){return{toString:e}.toString()}var Ke=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Ve=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Xe="undefined"!=typeof globalThis&&globalThis,Ge="undefined"!=typeof window&&window,Je="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Qe="undefined"!=typeof global&&global,Ze=Xe||Qe||Ge||Je,$e={},et=[],tt=be({"\u0275cmp":be}),nt=be({"\u0275dir":be}),it=be({"\u0275pipe":be}),rt=be({"\u0275mod":be}),ot=be({"\u0275loc":be}),at=be({"\u0275fac":be}),st=be({__NG_ELEMENT_ID__:be}),ut=0;function ct(e){return Ue(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ke.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||et,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ve.Emulated,id:"c",styles:e.styles||et,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=ut++,n.inputs=pt(e.inputs,t),n.outputs=pt(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(lt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(ht)}:null,n})}function lt(e){return vt(e)||function(e){return e[nt]||null}(e)}function ht(e){return function(e){return e[it]||null}(e)}var dt={};function ft(e){return Ue(function(){var t={type:e.type,bootstrap:e.bootstrap||et,declarations:e.declarations||et,imports:e.imports||et,exports:e.exports||et,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(dt[e.id]=e.type),t})}function pt(e,t){if(null==e)return $e;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var gt=ct;function mt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function vt(e){return e[tt]||null}function yt(e,t){var n=e[rt]||null;if(!n&&!0===t)throw new Error("Type ".concat(Me(e)," does not have '\u0275mod' property."));return n}function _t(e){return Array.isArray(e)&&"object"==typeof e[1]}function bt(e){return Array.isArray(e)&&!0===e[1]}function wt(e){return 0!=(8&e.flags)}function Mt(e){return 2==(2&e.flags)}function At(e){return 1==(1&e.flags)}function kt(e){return null!==e.template}function Tt(e,t){return e.hasOwnProperty(at)?e[at]:null}var St,Ct=function(){function e(t,n,i){_(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return w(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Et(){return Lt}function Lt(e){return e.type.prototype.ngOnChanges&&(e.setInput=Rt),zt}function zt(){var e=Ot(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===$e)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Rt(e,t,n,i){var r=Ot(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:$e,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new Ct(u&&u.currentValue,t,a===$e),e[i]=t}function Ot(e){return e.__ngSimpleChanges__||null}function xt(){return void 0!==St?St:"undefined"!=typeof document?document:void 0}function Dt(e){return!!e.listen}Et.ngInherit=!0;var Pt={createRenderer:function(e,t){return xt()}};function Nt(e){for(;Array.isArray(e);)e=e[0];return e}function It(e,t){return Nt(t[e])}function Bt(e,t){return Nt(t[e.index])}function Ft(e,t){return e.data[t]}function Ht(e,t){return e[t]}function qt(e,t){var n=t[e];return _t(n)?n:n[0]}function jt(e){return 4==(4&e[2])}function Yt(e){return 128==(128&e[2])}function Wt(e,t){return null==t?null:e[t]}function Ut(e){e[18]=0}function Kt(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var Vt={lFrame:yn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Xt(){return Vt.bindingsEnabled}function Gt(){return Vt.lFrame.lView}function Jt(){return Vt.lFrame.tView}function Qt(e){return Vt.lFrame.contextLView=e,e[8]}function Zt(){for(var e=$t();null!==e&&64===e.type;)e=e.parent;return e}function $t(){return Vt.lFrame.currentTNode}function en(e,t){var n=Vt.lFrame;n.currentTNode=e,n.isParent=t}function tn(){return Vt.lFrame.isParent}function nn(){Vt.lFrame.isParent=!1}function rn(){return Vt.isInCheckNoChangesMode}function on(e){Vt.isInCheckNoChangesMode=e}function an(){var e=Vt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function sn(){return Vt.lFrame.bindingIndex}function un(){return Vt.lFrame.bindingIndex++}function cn(e){var t=Vt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function ln(e){Vt.lFrame.currentDirectiveIndex=e}function hn(e){var t=Vt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function dn(){return Vt.lFrame.currentQueryIndex}function fn(e){Vt.lFrame.currentQueryIndex=e}function pn(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function gn(e,t,n){if(n&je.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&je.Host||(i=pn(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var o=Vt.lFrame=vn();return o.currentTNode=t,o.lView=e,!0}function mn(e){var t=vn(),n=e[1];Vt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function vn(){var e=Vt.lFrame,t=null===e?null:e.child;return null===t?yn(e):t}function yn(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function _n(){var e=Vt.lFrame;return Vt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var bn=_n;function wn(){var e=_n();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Mn(){return Vt.lFrame.selectedIndex}function An(e){Vt.lFrame.selectedIndex=e}function kn(){var e=Vt.lFrame;return Ft(e.tView,e.selectedIndex)}function Tn(){Vt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Sn(){Vt.lFrame.currentNamespace=null}function Cn(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[s]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var xn=function e(t,n,i){_(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Dn(e,t,n){for(var i=Dt(e),r=0;rt){a=o-1;break}}}for(;o>16,i=t;n>0;)i=i[15],n--;return i}var jn=!0;function Yn(e){var t=jn;return jn=e,t}var Wn=0;function Un(e,t){var n=Vn(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Kn(i.data,e),Kn(t,null),Kn(i.blueprint,null));var r=Xn(e,t),o=e.injectorIndex;if(Fn(r))for(var a=Hn(r),s=qn(r,t),u=s[1].data,c=0;c<8;c++)t[o+c]=s[a+c]|u[a+c];return t[o+8]=r,o}function Kn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Vn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Xn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Gn(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(st)&&(i=n[st]),null==i&&(i=n[st]=Wn++);var r=255&i;t.data[e+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:je.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(st)?e[st]:void 0;return"number"==typeof t?t>=0?255&t:ei:t}(n);if("function"==typeof o){if(!gn(t,e,i))return i&je.Host?Jn(r,n,i):Qn(t,n,i,r);try{var a=o(i);if(null!=a||i&je.Optional)return a;Re(n)}finally{bn()}}else if("number"==typeof o){var s=null,u=Vn(e,t),c=-1,l=i&je.Host?t[16][6]:null;for((-1===u||i&je.SkipSelf)&&(-1!==(c=-1===u?Xn(e,t):t[u+8])&&oi(i,!1)?(s=t[1],u=Hn(c),t=qn(c,t)):u=-1);-1!==u;){var h=t[1];if(ri(o,u,h.data)){var d=ti(u,t,n,s,i,l);if(d!==$n)return d}-1!==(c=t[u+8])&&oi(i,t[1].data[u+8]===l)&&ri(o,u,t)?(s=h,u=Hn(c),t=qn(c,t)):u=-1}}}return Qn(t,n,i,r)}var $n={};function ei(){return new ai(Zt(),Gt())}function ti(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],u=ni(s,a,n,null==i?Mt(s)&&jn:i!=a&&0!=(3&s.type),r&je.Host&&o===s);return null!==u?ii(t,a,u,s):$n}function ni(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,c=o>>20,l=r?s+c:e.directiveEnd,h=i?s:s+c;h=u&&d.type===n)return h}if(r){var f=a[u];if(f&&kt(f)&&f.type===n)return u}return null}function ii(e,t,n,i){var r=e[n],o=t.data;if(r instanceof xn){var a=r;a.resolving&&function(e,t){throw new Ee("200","Circular dependency in DI detected for ".concat(e))}(ze(o[n]));var s=Yn(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?Ye(a.injectImpl):null;gn(e,i,je.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(r){var s=Lt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==u&&Ye(u),Yn(s),a.resolving=!1,bn()}}return r}function ri(e,t,n){return!!(n[t+(e>>5)]&1<=e.length?e.push(n):e.splice(t,0,n)}function vi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function yi(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function bi(e,t){var n=wi(e,t);if(n>=0)return e[1|n]}function wi(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var Mi,Ai={},ki=/\n/gm,Ti=be({provide:String,useValue:be});function Si(e){var t=Mi;return Mi=e,t}function Ci(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:je.Default;if(void 0===Mi)throw new Error("inject() must be called from an injection context");return null===Mi?We(e,void 0,t):Mi.get(e,t&je.Optional?null:void 0,t)}function Ei(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:je.Default;return(Ie||Ci)(Se(e),t)}var Li=Ei;function zi(e){for(var t=[],n=0;n"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();ar.hasOwnProperty(t)&&!nr.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(pr(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),dr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fr=/([^\#-~ |!])/g;function pr(e){return e.replace(/&/g,"&").replace(dr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(fr,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function gr(e,t){var n=null;try{tr=tr||function(e){var t=new Gi(e);return function(){try{return!!(new window.DOMParser).parseFromString(Ii(""),"text/html")}catch(e){return!1}}()?new Xi(t):t}(e);var i=t?String(t):"";n=tr.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=tr.getInertBodyElement(i)}while(i!==o);return Ii((new hr).sanitizeChildren(mr(n)||n))}finally{if(n)for(var a=mr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function mr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var vr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function yr(e){var t=br();return t?Bi(t.sanitize(vr.HTML,e)||""):Ki(e,"HTML")?Bi(Ui(e)):gr(xt(),Le(e))}function _r(e){var t=br();return t?t.sanitize(vr.URL,e)||"":Ki(e,"URL")?Ui(e):Zi(Le(e))}function br(){var e=Gt();return e&&e[12]}function wr(e,t){e.__ngContext__=t}function Mr(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Ar(e){return e.ngDebugContext}function kr(e){return e.ngOriginalError}function Tr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&(e[i-1][4]=r[4]);var a=vi(e,10+t);to(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function qr(e,t){if(!(256&t[2])){var n=t[11];Dt(n)&&n.destroyNode&&to(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return jr(e[1],e);for(;t;){var n=null;if(_t(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)_t(t)&&jr(t[1],t),t=t[3];null===t&&(t=e),_t(t)&&jr(t[1],t),n=t&&t[4]}t=n}}(t)}}function jr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{var l=i[r=n[o+1]];n[o].call(l)}if(null!==i){for(var h=r+1;ho?"":r[l+1].toLowerCase();var d=8&i?h:null;if(d&&-1!==oo(d,c,0)||2&i&&c!==h){if(lo(i))return!1;a=!0}}}}else{if(!a&&!lo(i)&&!lo(u))return!1;if(a&&lo(u))continue;a=!1,i=u|1&i}}return lo(i)||a}function lo(e){return 0==(1&e)}function ho(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||lo(a)||(t+=go(o,r),r=""),i=a,o=o||!lo(i);n++}return""!==r&&(t+=go(o,r)),t}var vo={};function yo(e){_o(Jt(),Gt(),Mn()+e,rn())}function _o(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&En(t,r,n)}else{var o=e.preOrderHooks;null!==o&&Ln(t,o,0,n)}An(n)}function bo(e,t){return e<<17|t<<2}function wo(e){return e>>17&32767}function Mo(e){return 2|e}function Ao(e){return(131068&e)>>2}function ko(e,t){return-131069&e|t<<2}function To(e){return 1|e}function So(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&_o(e,t,20,rn()),n(i,r)}finally{An(o)}}function Do(e,t,n){if(wt(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:Bt,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(i,r,a)}}function Wo(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Uo(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Ko(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&ea(n)}}function ea(e){for(var t=Dr(e);null!==t;t=Pr(t))for(var n=10;n0&&ea(i)}var o=e[1].components;if(null!==o)for(var a=0;a0&&ea(s)}}function ta(e,t){var n=qt(t,e),i=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:Ai;if(t===Ai){var n=new Error("NullInjectorError: No provider for ".concat(Me(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),ya=new hi("Set Injector scope."),_a={},ba={};function wa(){return void 0===ga&&(ga=new va),ga}function Ma(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Aa(e,n,t||wa(),i)}var Aa=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&gi(n,function(e){return r.processProvider(e,t,n)}),gi([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(ma,Sa(void 0,this));var s=this.records.get(ya);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:Me(t))}return w(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ai,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:je.Default;this.assertNotDestroyed();var i,r=Si(this);try{if(!(n&je.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(i=e)||"object"==typeof i&&i instanceof hi)&&De(e);o=a&&this.injectableDefInScope(a)?Sa(ka(e),_a):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&je.Self?wa():this.parent).get(e,t=n&je.Optional&&t===Ai?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Me(e)),r)throw s;return function(e,t,n,i){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=Me(t);if(Array.isArray(t))r=t.map(Me).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Me(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(ki,"\n "))}("\n"+e.message,r,"R3InjectorError",i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{Si(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(Me(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=Se(e)))return!1;var r=Ne(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=Ne(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{gi(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var c=function(e){var t=u[e],n=t.ngModule,r=t.providers;gi(r,function(e){return i.processProvider(e,n,r||et)})},l=0;l0){var n=yi(t,"?");throw new Error("Can't resolve all parameters for ".concat(Me(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[Be]||e[He]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Ta(e,t,n){var i,o;if(Ea(e)){var a=Se(e);return Tt(a)||ka(a)}if(Ca(e))i=function(){return Se(e.useValue)};else if((o=e)&&o.useFactory)i=function(){return e.useFactory.apply(e,r(zi(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return Ei(Se(e.useExisting))};else{var s=Se(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Tt(s)||ka(s);i=function(){return l(s,r(zi(e.deps)))}}return i}function Sa(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Ca(e){return null!==e&&"object"==typeof e&&Ti in e}function Ea(e){return"function"==typeof e}var La=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=Ma(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},za=function(){var e=function(){function e(){_(this,e)}return w(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?La(e,t,""):La(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Ai,e.NULL=new va,e.\u0275prov=Oe({token:e,providedIn:"any",factory:function(){return Ei(ma)}}),e.__NG_ELEMENT_ID__=-1,e}();function Ra(e,t){Cn(Mr(e)[1],Zt())}function Oa(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(kt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=xa(e.inputs),o.declaredInputs=xa(e.declaredInputs),o.outputs=xa(e.outputs);var a=r.hostBindings;a&&Na(e,a);var s=r.viewQuery,u=r.contentQueries;if(s&&Da(e,s),u&&Pa(e,u),we(e.inputs,r.inputs),we(e.declaredInputs,r.declaredInputs),we(e.outputs,r.outputs),kt(r)&&r.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(r.data.animation)}}var l=r.features;if(l)for(var h=0;h=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=In(r.hostAttrs,n=In(n,r.hostAttrs))}}(i)}function xa(e){return e===$e?{}:e===et?[]:e}function Da(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Pa(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Na(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Ia=null;function Ba(){if(!Ia){var e=Ze.Symbol;if(e&&e.iterator)Ia=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:je.Default,n=Gt();return null===n?Ei(e,t):Zn(Zt(),n,Se(e),t)}function Qa(e,t,n){var i=Gt();return Ya(i,un(),t)&&qo(Jt(),kn(),i,e,t,i[11],n,!1),Qa}function Za(e,t,n,i,r){var o=r?"class":"style";da(e,n,t.inputs[o],o,i)}function $a(e,t,n,i){var r=Gt(),o=Jt(),a=20+e,s=r[11],u=r[a]=Br(s,t,Vt.lFrame.currentNamespace),c=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,u=Eo(t,e,2,r,Wt(s,o));return jo(t,n,u,Wt(s,a)),null!==u.attrs&&pa(u,u.attrs,!1),null!==u.mergedAttrs&&pa(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,r,0,t,n,i):o.data[a];en(c,!0);var l=c.mergedAttrs;null!==l&&Dn(s,u,l);var h=c.classes;null!==h&&ro(s,u,h);var d=c.styles;null!==d&&io(s,u,d),64!=(64&c.flags)&&Jr(o,r,u,c),0===Vt.lFrame.elementDepthCount&&wr(u,r),Vt.lFrame.elementDepthCount++,At(c)&&(Po(o,r,c),Do(o,c,r)),null!==i&&No(r,c)}function es(){var e=Zt();tn()?nn():en(e=e.parent,!1);var t=e;Vt.lFrame.elementDepthCount--;var n=Jt();n.firstCreatePass&&(Cn(n,e),wt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Za(n,t,Gt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Za(n,t,Gt(),t.stylesWithoutHost,!1)}function ts(e,t,n,i){$a(e,t,n,i),es()}function ns(e,t,n){var i=Gt(),r=Jt(),o=e+20,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=Wt(o,i),s=Eo(t,e,8,"ng-container",a);return null!==a&&pa(s,a,!0),jo(t,n,s,Wt(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,r,i,t,n):r.data[o];en(a,!0);var s=i[o]=i[11].createComment("");Jr(r,i,s,a),wr(s,i),At(a)&&(Po(r,i,a),Do(r,a,i)),null!=n&&No(i,a)}function is(){var e=Zt(),t=Jt();tn()?nn():en(e=e.parent,!1),t.firstCreatePass&&(Cn(t,e),wt(e)&&t.queries.elementEnd(e))}function rs(e,t,n){ns(e,t,n),is()}function os(){return Gt()}function as(e){return!!e&&"function"==typeof e.then}function ss(e){return!!e&&"function"==typeof e.subscribe}var us=ss;function cs(e,t,n,i){var r=Gt(),o=Jt(),a=Zt();return hs(o,r,r[11],a,e,t,!!n,i),cs}function ls(e,t){var n=Zt(),i=Gt(),r=Jt();return hs(r,i,la(hn(r.data),n,i),n,e,t,!1),ls}function hs(e,t,n,i,r,o,a,s){var u=At(i),c=e.firstCreatePass&&ca(e),l=ua(t),h=!0;if(3&i.type||s){var d=Bt(i,t),f=s?s(d):d,p=l.length,g=s?function(e){return s(Nt(e[i.index]))}:i.index;if(Dt(n)){var m=null;if(!s&&u&&(m=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1;else{o=fs(i,t,0,o,!1);var v=n.listen(f,r,o);l.push(o,v),c&&c.push(r,g,p,p+1)}}else o=fs(i,t,0,o,!0),f.addEventListener(r,o,a),l.push(o),c&&c.push(r,g,p,a)}else o=fs(i,t,0,o,!1);var y,_=i.outputs;if(h&&null!==_&&(y=_[r])){var b=y.length;if(b)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Vt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Vt.lFrame.contextLView))[8]}(e)}function gs(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=Gt(),r=Jt(),o=Eo(r,20+e,16,null,n||null);null===o.projection&&(o.projection=t),nn(),64!=(64&o.flags)&&function(e,t,n){no(t[11],0,t,n,Yr(e,n,t),Xr(n.parent||t[6],n,t))}(r,i,o)}function ys(e,t,n){return _s(e,"",t,"",n),ys}function _s(e,t,n,i,r){var o=Gt(),a=Ka(o,t,n,i);return a!==vo&&qo(Jt(),kn(),o,e,a,o[11],r,!1),_s}function bs(e,t,n,i,r,o,a){var s=Gt(),u=Va(s,t,n,i,r,o);return u!==vo&&qo(Jt(),kn(),s,e,u,s[11],a,!1),bs}function ws(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?wo(o):Ao(o),u=!1;0!==s&&(!1===u||a);){var c=e[s+1];Ms(e[s],t)&&(u=!0,e[s+1]=i?To(c):Mo(c)),s=i?wo(c):Ao(c)}u&&(e[n+1]=i?Mo(o):To(o))}function Ms(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&wi(e,t)>=0}var As={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ks(e){return e.substring(As.key,As.keyEnd)}function Ts(e,t){var n=As.textEnd;return n===t?-1:(t=As.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,As.key=t,n),Ss(e,t,n))}function Ss(e,t,n){for(;t=0;n=Ts(t,n))_i(e,ks(t),!0)}function Rs(e,t,n,i){var r=Gt(),o=Jt(),a=cn(2);o.firstUpdatePass&&Ds(o,e,a,i),t!==vo&&Ya(r,a,t)&&Is(o,o.data[Mn()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Me(Ui(e)))),e}(t,n),i,a)}function Os(e,t,n,i){var r=Jt(),o=cn(2);r.firstUpdatePass&&Ds(r,null,o,i);var a=Gt();if(n!==vo&&Ya(a,o,n)){var s=r.data[Mn()];if(Hs(s,i)&&!xs(r,o)){var u=i?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(n=Ae(u,n||"")),Za(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===vo&&(r=et);for(var u=0,c=0,l=0=e.expandoStartIndex}function Ds(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[Mn()],a=xs(e,n);Hs(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=hn(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Ns(n=Ps(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=Ps(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Ao(i))return e[wo(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[wo(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Ns(s=Ps(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i,r=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(l=!0)}else c=n;if(r)if(0!==u){var d=wo(e[s+1]);e[i+1]=bo(d,s),0!==d&&(e[d+1]=ko(e[d+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=bo(s,0),0!==s&&(e[s+1]=ko(e[s+1],i)),s=i;else e[i+1]=bo(u,0),0===s?s=i:e[u+1]=ko(e[u+1],i),u=i;l&&(e[i+1]=Mo(e[i+1])),ws(e,c,i,!0),ws(e,c,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&wi(o,t)>=0&&(n[i+1]=To(n[i+1]))}(t,c,e,i,o),a=bo(s,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function Ps(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[r],c=Array.isArray(u),l=c?u[1]:u,h=null===l,d=n[r+1];d===vo&&(d=h?et:void 0);var f=h?bi(d,i):l===i?d:void 0;if(c&&!Fs(f)&&(f=bi(u,i)),Fs(f)&&(a=f,s))return a;var p=e[r+1];r=s?wo(p):Ao(p)}if(null!==t){var g=o?t.residualClasses:t.residualStyles;null!=g&&(a=bi(g,i))}return a}function Fs(e){return void 0!==e}function Hs(e,t){return 0!=(e.flags&(t?16:32))}function qs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Gt(),i=Jt(),r=e+20,o=i.firstCreatePass?Eo(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return Dt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Jr(i,n,a,o),en(o,!1)}function js(e){return Ys("",e,""),js}function Ys(e,t,n){var i=Gt(),r=Ka(i,e,t,n);return r!==vo&&fa(i,Mn(),r),Ys}function Ws(e,t,n,i,r){var o=Gt(),a=Va(o,e,t,n,i,r);return a!==vo&&fa(o,Mn(),a),Ws}function Us(e,t,n,i,r,o,a,s,u,c,l){var h=Gt(),d=function(e,t,n,i,r,o,a,s,u,c,l,h){var d=sn(),f=function(e,t,n,i,r,o){var a=Wa(e,t,n,i);return Wa(e,t+2,r,o)||a}(e,d,n,r,a,u);return f=Ya(e,d+4,l)||f,cn(5),f?t+Le(n)+i+Le(r)+o+Le(a)+s+Le(u)+c+Le(l)+h:vo}(h,e,t,n,i,r,o,a,s,u,c,l);return d!==vo&&fa(h,Mn(),d),Us}function Ks(e,t,n){Os(_i,zs,Ka(Gt(),e,t,n),!0)}function Vs(e,t,n){var i=Gt();return Ya(i,un(),t)&&qo(Jt(),kn(),i,e,t,i[11],n,!0),Vs}function Xs(e,t,n){var i=Gt();if(Ya(i,un(),t)){var r=Jt(),o=kn();qo(r,o,i,e,t,la(hn(r.data),o,i),n,!0)}return Xs}var Gs=void 0,Js=["en",[["a","p"],["AM","PM"],Gs],[["AM","PM"],Gs,Gs],[["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"]],Gs,[["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"]],Gs,[["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}",Gs,"{1} 'at' {0}",Gs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Qs={};function Zs(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=$s(t);if(n)return n;var i=t.split("-")[0];if(n=$s(i))return n;if("en"===i)return Js;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function $s(e){return e in Qs||(Qs[e]=Ze.ng&&Ze.ng.common&&Ze.ng.common.locales&&Ze.ng.common.locales[e]),Qs[e]}var eu=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function tu(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined"," [Expected=> null != ").concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function nu(e,t,n,i,r){if(e=Se(e),Array.isArray(e))for(var o=0;o>20;if(Ea(e)||!e.multi){var p=new xn(c,r,Ja),g=ou(u,t,r?h:h+f,d);-1===g?(Gn(Un(l,s),a,u),iu(a,e,t.length),t.push(u),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(p),s.push(p)):(n[g]=p,s[g]=p)}else{var m=ou(u,t,h+f,d),v=ou(u,t,h,h+f),y=m>=0&&n[m],_=v>=0&&n[v];if(r&&!_||!r&&!y){Gn(Un(l,s),a,u);var b=function(e,t,n,i,r){var o=new xn(e,n,Ja);return o.multi=[],o.index=t,o.componentProviders=0,ru(o,r,i&&!n),o}(r?su:au,n.length,r,i,c);!r&&_&&(n[v].providerFactory=b),iu(a,e,t.length,0),t.push(u),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(b),s.push(b)}else iu(a,e,m>-1?m:v,ru(n[r?v:m],c,!r&&i));!r&&i&&_&&n[v].componentProviders++}}}function iu(e,t,n,i){var r=Ea(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function ru(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ou(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=Jt();if(i.firstCreatePass){var r=kt(e);nu(n,i.data,i.blueprint,r,!0),nu(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var lu=function e(){_(this,e)},hu=function(){function e(){_(this,e)}return w(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Me(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),du=function(){var e=function e(){_(this,e)};return e.NULL=new hu,e}();function fu(){}function pu(e,t){return new mu(Bt(e,t))}var gu=function(){return pu(Zt(),Gt())},mu=function(){var e=function e(t){_(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=gu,e}();function vu(e){return e instanceof mu?e.nativeElement:e}var yu=function e(){_(this,e)},_u=function(){var e=function e(){_(this,e)};return e.__NG_ELEMENT_ID__=function(){return bu()},e}(),bu=function(){var e=Gt(),t=qt(Zt().index,e);return function(e){return e[11]}(_t(t)?t:e)},wu=function(){var e=function e(){_(this,e)};return e.\u0275prov=Oe({token:e,providedIn:"root",factory:function(){return null}}),e}(),Mu=function e(t){_(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Au=new Mu("12.0.5"),ku=function(){function e(){_(this,e)}return w(e,[{key:"supports",value:function(e){return Ha(e)}},{key:"create",value:function(e){return new Su(e)}}]),e}(),Tu=function(e,t){return t},Su=function(){function e(t){_(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Tu}return w(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=t[n.index];if(null!==a&&i.push(Nt(a)),bt(a))for(var s=10;s-1&&(Hr(e,n),vi(t,n))}this._attachedToViewContainer=!1}qr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Fo(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){ia(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){ra(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){on(!0);try{ra(e,t,n)}finally{on(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,to(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Hu=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this,e))._view=e,i}return w(n,[{key:"detectChanges",value:function(){oa(this._view)}},{key:"checkNoChanges",value:function(){!function(e){on(!0);try{oa(e)}finally{on(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Fu),qu=function(e){return function(e,t,n){if(Mt(e)&&!n){var i=qt(e.index,t);return new Fu(i,i)}return 47&e.type?new Fu(t[16],t):null}(Zt(),Gt(),16==(16&e))},ju=function(){var e=function e(){_(this,e)};return e.__NG_ELEMENT_ID__=qu,e}(),Yu=[new Ru],Wu=new Pu([new ku]),Uu=new Iu(Yu),Ku=function(){return Gu(Zt(),Gt())},Vu=function(){var e=function e(){_(this,e)};return e.__NG_ELEMENT_ID__=Ku,e}(),Xu=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return w(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Co(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),zo(t,n,e),new Fu(n)}}]),n}(Vu);function Gu(e,t){return 4&e.type?new Xu(t,e,pu(e,t)):null}var Ju=function e(){_(this,e)},Qu=function e(){_(this,e)},Zu=function(){return ic(Zt(),Gt())},$u=function(){var e=function e(){_(this,e)};return e.__NG_ELEMENT_ID__=Zu,e}(),ec=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return w(n,[{key:"element",get:function(){return pu(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new ai(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=Xn(this._hostTNode,this._hostLView);if(Fn(e)){var t=qn(e,this._hostLView),n=Hn(e);return new ai(t[1].data[n+8],t)}return new ai(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=tc(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(Ju,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(bt(i[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=i[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),c=this._lContainer;!function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}($u);function tc(e){return e[8]}function nc(e){return e[8]||(e[8]=[])}function ic(e,t){var n,i=t[e.index];if(bt(i))n=i;else{var r;if(8&e.type)r=Nt(i);else{var o=t[11];r=o.createComment("");var a=Bt(e,t);Wr(o,Vr(o,a),r,function(e,t){return Dt(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=Zo(i,t,r,e),na(t,n)}return new ec(n,e,t)}var rc={},oc=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this)).ngModule=e,i}return w(n,[{key:"resolveComponentFactory",value:function(e){var t=vt(e);return new uc(t,this.ngModule)}}]),n}(du);function ac(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var sc=new hi("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Cr}}),uc=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(mo).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return w(n,[{key:"inputs",get:function(){return ac(this.componentDef.inputs)}},{key:"outputs",get:function(){return ac(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,rc,r);return o!==rc||i===rc?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(yu,Pt),u=a.get(wu,null),c=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Dt(e))return e.selectRootElement(t,n===Ve.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(c,n,this.componentDef.encapsulation):Br(s.createRenderer(null,this.componentDef),l,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:Cr,clean:sa,playerHandler:null,flags:0},p=Bo(0,null,null,1,0,null,null,null,null,null),g=Co(null,p,f,d,null,null,s,c,u,a);mn(g);try{var m=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=Eo(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(pa(s,u,!0),null!==e&&(Dn(r,e,u),null!==s.classes&&ro(r,e,s.classes),null!==s.styles&&io(r,e,s.styles)));var c=i.createRenderer(e,t),l=Co(n,Io(t),null,t.onPush?64:16,n[20],s,i,c,null,null);return a.firstCreatePass&&(Gn(Un(s,n),a,t.type),Uo(a,s),Vo(s,n.length,1)),na(n,l),n[20]=l}(h,this.componentDef,g,s,c);if(h)if(n)Dn(c,h,["ng-version",Au.full]);else{var v=function(e){for(var t=[],n=[],i=1,r=2;i0&&ro(c,h,_.join(" "))}if(o=Ft(p,20),void 0!==t)for(var b=o.projection=[],w=0;w1&&void 0!==arguments[1]?arguments[1]:za.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:je.Default;return e===za||e===Ju||e===ma?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Ju),dc=function(e){d(n,e);var t=p(n);function n(e){var i,r,o;return _(this,n),(i=t.call(this)).moduleType=e,null!==yt(e)&&(r=e,o=new Set,function e(t){var n=yt(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Me(t)," vs ").concat(Me(t.name)))}(i,lc.get(i),t),lc.set(i,t));var r,s=a(zr(n.imports));try{for(s.s();!(r=s.n()).done;){var u=r.value;o.has(u)||(o.add(u),e(u))}}catch(c){s.e(c)}finally{s.f()}}(r)),i}return w(n,[{key:"create",value:function(e){return new hc(this.moduleType,e)}}]),n}(Qu);function fc(e,t,n){var i=an()+e,r=Gt();return r[i]===vo?ja(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function pc(e,t,n,i){return vc(Gt(),an(),e,t,n,i)}function gc(e,t,n,i,r){return yc(Gt(),an(),e,t,n,i,r)}function mc(e,t){var n=e[t];return n===vo?void 0:n}function vc(e,t,n,i,r,o){var a=t+n;return Ya(e,a,r)?ja(e,a+1,o?i.call(o,r):i(r)):mc(e,a+1)}function yc(e,t,n,i,r,o,a){var s=t+n;return Wa(e,s,r,o)?ja(e,s+2,a?i.call(a,r,o):i(r,o)):mc(e,s+2)}function _c(e,t){var n,i=Jt(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new Ee("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=Tt(n.type)),a=Ye(Ja);try{var s=Yn(!1),u=o();return Yn(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,Gt(),r,u),u}finally{Ye(a)}}function bc(e,t,n){var i=e+20,r=Gt(),o=Ht(r,i);return kc(r,Ac(r,i)?vc(r,an(),t,o.transform,n,o):o.transform(n))}function wc(e,t,n,i){var r=e+20,o=Gt(),a=Ht(o,r);return kc(o,Ac(o,r)?yc(o,an(),t,a.transform,n,i,a):a.transform(n,i))}function Mc(e,t,n,i,r){var o=e+20,a=Gt(),s=Ht(a,o);return kc(a,Ac(a,o)?function(e,t,n,i,r,o,a,s){var u=t+n;return function(e,t,n,i,r){var o=Wa(e,t,n,i);return Ya(e,t+2,r)||o}(e,u,r,o,a)?ja(e,u+3,s?i.call(s,r,o,a):i(r,o,a)):mc(e,u+3)}(a,an(),t,s.transform,n,i,r,s):s.transform(n,i,r))}function Ac(e,t){return e[1].data[t].pure}function kc(e,t){return Fa.isWrapped(t)&&(t=Fa.unwrap(t),e[sn()]=vo),t}function Tc(e){return function(t){setTimeout(e,void 0,t)}}var Sc=function(e){d(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _(this,n),(e=t.call(this)).__isAsync=i,e}return w(n,[{key:"emit",value:function(e){h(y(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var r,o,a,s=e,u=t||function(){return null},c=i;if(e&&"object"==typeof e){var l=e;s=null===(r=l.next)||void 0===r?void 0:r.bind(l),u=null===(o=l.error)||void 0===o?void 0:o.bind(l),c=null===(a=l.complete)||void 0===a?void 0:a.bind(l)}this.__isAsync&&(u=Tc(u),s&&(s=Tc(s)),c&&(c=Tc(c)));var d=h(y(n.prototype),"subscribe",this).call(this,{next:s,error:u,complete:c});return e instanceof L&&e.add(d),d}}]),n}(Y);function Cc(){return this._results[Ba()]()}var Ec=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Ba(),i=e.prototype;i[n]||(i[n]=Cc)}return w(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Sc)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){this.dirty=!1;var n=pi(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];_(this,e),this.queries=t}return w(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;_(this,e),this.predicate=t,this.flags=n,this.read=i},Oc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_(this,e),this.queries=t}return w(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return w(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[s/2]);else{for(var c=o[s+1],l=t[-u],h=10;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!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(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(dl))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),wl=function(){var e=function(){function e(){_(this,e),this._applications=new Map,Ml.addToWindow(this)}return w(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ml.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Ml=new(function(){function e(){_(this,e)}return w(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Al=!0,kl=!1;function Tl(){return kl=!0,Al}var Sl=new hi("AllowMultipleToken"),Cl=function e(t,n){_(this,e),this.name=t,this.token=n};function El(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new hi(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Ll();if(!o||o.injector.get(Sl,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:ya,useValue:"platform"});!function(e){if(yl&&!yl.destroyed&&!yl.injector.get(Sl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");yl=e.get(zl);var t=e.get(Jc,null);t&&t.forEach(function(e){return e()})}(za.create({providers:a,name:i}))}return function(e){var t=Ll();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Ll(){return yl&&!yl.destroyed?yl:null}var zl=function(){var e=function(){function e(t){_(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return w(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,o=(n=t?t.ngZone:void 0,i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===n?new _l:("zone.js"===n?void 0:n)||new dl({enableLongStackTrace:Tl(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),a=[{provide:dl,useValue:o}];return o.run(function(){var t=za.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Sr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var e=o.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){Dl(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var o=((a=n.injector.get(Kc)).runInitializers(),a.donePromise.then(function(){return tu(n.injector.get(el,"en-US")||"en-US"),r._moduleDoBootstrap(n),n}));return as(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(i,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Rl({},n);return function(e,t,n){var i=new dc(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(xl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(Me(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(za))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}();function Rl(e,t){return Array.isArray(t)?t.reduce(Rl,e):Object.assign(Object.assign({},e),t)}var Ol,xl=((Ol=function(){function e(t,n,i,r,o){var a=this;_(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var s=new I(function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){e.next(a._stable),e.complete()})}),u=new I(function(e){var t;a._zone.runOutsideAngular(function(){t=a._zone.onStable.subscribe(function(){dl.assertNotInAngularZone(),hl(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){dl.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=le(s,u.pipe(_e()))}return w(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof lu?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(Ju),o=n.create(za.NULL,[],t||n.selector,r),a=o.location.nativeElement,s=o.injector.get(bl,null),u=s&&o.injector.get(wl);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),Dl(i.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=a(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Dl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Zc,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||Ol)(Ei(dl),Ei(za),Ei(Sr),Ei(du),Ei(Kc))},Ol.\u0275prov=Oe({token:Ol,factory:Ol.\u0275fac}),Ol);function Dl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Pl=function e(){_(this,e)},Nl=function e(){_(this,e)},Il={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Bl=function(){var e=function(){function e(t,n){_(this,e),this._compiler=t,this._config=n||Il}return w(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var n=this,i=t(e.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),v(1730)(r).then(function(e){return e[o]}).then(function(e){return Fl(e,r,o)}).then(function(e){return n._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var n=t(e.split("#"),2),i=n[0],r=n[1],o="NgFactory";return void 0===r&&(r="default",o=""),v(1730)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+o]}).then(function(e){return Fl(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(cl),Ei(Nl,8))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}();function Fl(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Hl=El(null,"core",[{provide:Qc,useValue:"unknown"},{provide:zl,deps:[za]},{provide:wl,deps:[]},{provide:$c,deps:[]}]),ql=[{provide:xl,useClass:xl,deps:[dl,za,Sr,du,Kc]},{provide:sc,deps:[dl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Kc,useClass:Kc,deps:[[new Pi,Uc]]},{provide:cl,useClass:cl,deps:[]},Xc,{provide:Pu,useFactory:function(){return Wu},deps:[]},{provide:Iu,useFactory:function(){return Uu},deps:[]},{provide:el,useFactory:function(e){return tu(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new Di(el),new Pi,new Ni]]},{provide:tl,useValue:"USD"}],jl=function(){var e=function e(t){_(this,e)};return e.\u0275fac=function(t){return new(t||e)(Ei(xl))},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:ql}),e}(),Yl=null;function Wl(){return Yl}var Ul=new hi("DocumentToken"),Kl=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({factory:Vl,token:e,providedIn:"platform"}),e}();function Vl(){return Ei(Gl)}var Xl=new hi("Location Initialized"),Gl=function(){var e=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this))._doc=e,i._init(),i}return w(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return Wl().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=Wl().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=Wl().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){Jl()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){Jl()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}]),n}(Kl);return e.\u0275fac=function(t){return new(t||e)(Ei(Ul))},e.\u0275prov=Oe({factory:Ql,token:e,providedIn:"platform"}),e}();function Jl(){return!!window.history.pushState}function Ql(){return new Gl(Ei(Ul))}function Zl(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function $l(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function eh(e){return e&&"?"!==e[0]?"?"+e:e}var th=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({factory:nh,token:e,providedIn:"root"}),e}();function nh(e){var t=Ei(Ul).location;return new rh(Ei(Kl),t&&t.origin||"")}var ih=new hi("appBaseHref"),rh=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i){var r;if(_(this,n),(r=t.call(this))._platformLocation=e,r._removeListenerFns=[],null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,g(r)}return w(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return Zl(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+eh(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+eh(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+eh(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(th);return e.\u0275fac=function(t){return new(t||e)(Ei(Kl),Ei(ih,8))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),oh=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return w(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=Zl(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+eh(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+eh(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(th);return e.\u0275fac=function(t){return new(t||e)(Ei(Kl),Ei(ih,8))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),ah=function(){var e=function(){function e(t,n){var i=this;_(this,e),this._subject=new Sc,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=$l(uh(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return w(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+eh(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,uh(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+eh(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+eh(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(th),Ei(Kl))},e.normalizeQueryParams=eh,e.joinWithSlash=Zl,e.stripTrailingSlash=$l,e.\u0275prov=Oe({factory:sh,token:e,providedIn:"root"}),e}();function sh(){return new ah(Ei(th),Ei(Kl))}function uh(e){return e.replace(/\/index.html$/,"")}var ch=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),lh=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),hh=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),dh=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),fh=function(e){return 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[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function ph(e,t){return _h(Zs(e)[eu.DateFormat],t)}function gh(e,t){return _h(Zs(e)[eu.TimeFormat],t)}function mh(e,t){return _h(Zs(e)[eu.DateTimeFormat],t)}function vh(e,t){var n=Zs(e),i=n[eu.NumberSymbols][t];if(void 0===i){if(t===fh.CurrencyDecimal)return n[eu.NumberSymbols][fh.Decimal];if(t===fh.CurrencyGroup)return n[eu.NumberSymbols][fh.Group]}return i}function yh(e){if(!e[eu.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[eu.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function _h(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function bh(e){var n=t(e.split(":"),2);return{hours:+n[0],minutes:+n[1]}}var wh=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Mh={},Ah=/((?:[^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]*)/,kh=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),Th=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),Sh=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function Ch(e,n,i,r){var o=function(e){if(Hh(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){var n=t(e.split("-").map(function(e){return+e}),3),i=n[0],r=n[1],o=void 0===r?1:r,a=n[2];return Eh(i,o-1,void 0===a?1:a)}var s,u=parseFloat(e);if(!isNaN(e-u))return new Date(u);if(s=e.match(wh))return function(e){var t=new Date(0),n=0,i=0,r=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var a=Number(e[4]||0)-n,s=Number(e[5]||0)-i,u=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,s,u,c),t}(s)}var c=new Date(e);if(!Hh(c))throw new Error('Unable to convert "'.concat(e,'" into a date'));return c}(e);n=Lh(i,n)||n;for(var a,s=[];n;){if(!(a=Ah.exec(n))){s.push(n);break}var u=(s=s.concat(a.slice(1))).pop();if(!u)break;n=u}var c=o.getTimezoneOffset();r&&(c=Fh(r,c),o=function(e,t,n){var i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(Fh(t,i)-i))}(o,r));var l="";return s.forEach(function(e){var t=function(e){if(Bh[e])return Bh[e];var t;switch(e){case"G":case"GG":case"GGG":t=xh(Sh.Eras,hh.Abbreviated);break;case"GGGG":t=xh(Sh.Eras,hh.Wide);break;case"GGGGG":t=xh(Sh.Eras,hh.Narrow);break;case"y":t=Oh(Th.FullYear,1,0,!1,!0);break;case"yy":t=Oh(Th.FullYear,2,0,!0,!0);break;case"yyy":t=Oh(Th.FullYear,3,0,!1,!0);break;case"yyyy":t=Oh(Th.FullYear,4,0,!1,!0);break;case"Y":t=Ih(1);break;case"YY":t=Ih(2,!0);break;case"YYY":t=Ih(3);break;case"YYYY":t=Ih(4);break;case"M":case"L":t=Oh(Th.Month,1,1);break;case"MM":case"LL":t=Oh(Th.Month,2,1);break;case"MMM":t=xh(Sh.Months,hh.Abbreviated);break;case"MMMM":t=xh(Sh.Months,hh.Wide);break;case"MMMMM":t=xh(Sh.Months,hh.Narrow);break;case"LLL":t=xh(Sh.Months,hh.Abbreviated,lh.Standalone);break;case"LLLL":t=xh(Sh.Months,hh.Wide,lh.Standalone);break;case"LLLLL":t=xh(Sh.Months,hh.Narrow,lh.Standalone);break;case"w":t=Nh(1);break;case"ww":t=Nh(2);break;case"W":t=Nh(1,!0);break;case"d":t=Oh(Th.Date,1);break;case"dd":t=Oh(Th.Date,2);break;case"c":case"cc":t=Oh(Th.Day,1);break;case"ccc":t=xh(Sh.Days,hh.Abbreviated,lh.Standalone);break;case"cccc":t=xh(Sh.Days,hh.Wide,lh.Standalone);break;case"ccccc":t=xh(Sh.Days,hh.Narrow,lh.Standalone);break;case"cccccc":t=xh(Sh.Days,hh.Short,lh.Standalone);break;case"E":case"EE":case"EEE":t=xh(Sh.Days,hh.Abbreviated);break;case"EEEE":t=xh(Sh.Days,hh.Wide);break;case"EEEEE":t=xh(Sh.Days,hh.Narrow);break;case"EEEEEE":t=xh(Sh.Days,hh.Short);break;case"a":case"aa":case"aaa":t=xh(Sh.DayPeriods,hh.Abbreviated);break;case"aaaa":t=xh(Sh.DayPeriods,hh.Wide);break;case"aaaaa":t=xh(Sh.DayPeriods,hh.Narrow);break;case"b":case"bb":case"bbb":t=xh(Sh.DayPeriods,hh.Abbreviated,lh.Standalone,!0);break;case"bbbb":t=xh(Sh.DayPeriods,hh.Wide,lh.Standalone,!0);break;case"bbbbb":t=xh(Sh.DayPeriods,hh.Narrow,lh.Standalone,!0);break;case"B":case"BB":case"BBB":t=xh(Sh.DayPeriods,hh.Abbreviated,lh.Format,!0);break;case"BBBB":t=xh(Sh.DayPeriods,hh.Wide,lh.Format,!0);break;case"BBBBB":t=xh(Sh.DayPeriods,hh.Narrow,lh.Format,!0);break;case"h":t=Oh(Th.Hours,1,-12);break;case"hh":t=Oh(Th.Hours,2,-12);break;case"H":t=Oh(Th.Hours,1);break;case"HH":t=Oh(Th.Hours,2);break;case"m":t=Oh(Th.Minutes,1);break;case"mm":t=Oh(Th.Minutes,2);break;case"s":t=Oh(Th.Seconds,1);break;case"ss":t=Oh(Th.Seconds,2);break;case"S":t=Oh(Th.FractionalSeconds,1);break;case"SS":t=Oh(Th.FractionalSeconds,2);break;case"SSS":t=Oh(Th.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Dh(kh.Short);break;case"ZZZZZ":t=Dh(kh.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Dh(kh.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Dh(kh.Long);break;default:return null}return Bh[e]=t,t}(e);l+=t?t(o,i,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Eh(e,t,n){var i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function Lh(e,t){var n=function(e){return Zs(e)[eu.LocaleId]}(e);if(Mh[n]=Mh[n]||{},Mh[n][t])return Mh[n][t];var i="";switch(t){case"shortDate":i=ph(e,dh.Short);break;case"mediumDate":i=ph(e,dh.Medium);break;case"longDate":i=ph(e,dh.Long);break;case"fullDate":i=ph(e,dh.Full);break;case"shortTime":i=gh(e,dh.Short);break;case"mediumTime":i=gh(e,dh.Medium);break;case"longTime":i=gh(e,dh.Long);break;case"fullTime":i=gh(e,dh.Full);break;case"short":var r=Lh(e,"shortTime"),o=Lh(e,"shortDate");i=zh(mh(e,dh.Short),[r,o]);break;case"medium":var a=Lh(e,"mediumTime"),s=Lh(e,"mediumDate");i=zh(mh(e,dh.Medium),[a,s]);break;case"long":var u=Lh(e,"longTime"),c=Lh(e,"longDate");i=zh(mh(e,dh.Long),[u,c]);break;case"full":var l=Lh(e,"fullTime"),h=Lh(e,"fullDate");i=zh(mh(e,dh.Full),[l,h])}return i&&(Mh[n][t]=i),i}function zh(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function Rh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,o=n));for(var a=String(e);a.length2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s,u=function(e,t){switch(e){case Th.FullYear:return t.getFullYear();case Th.Month:return t.getMonth();case Th.Date:return t.getDate();case Th.Hours:return t.getHours();case Th.Minutes:return t.getMinutes();case Th.Seconds:return t.getSeconds();case Th.FractionalSeconds:return t.getMilliseconds();case Th.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,o);if((n>0||u>-n)&&(u+=n),e===Th.Hours)0===u&&-12===n&&(u=12);else if(e===Th.FractionalSeconds)return s=t,Rh(u,3).substr(0,s);var c=vh(a,fh.MinusSign);return Rh(u,t,c,i,r)}}function xh(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:lh.Format,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o,a){return function(e,n,i,r,o,a){switch(i){case Sh.Months:return function(e,t,n){var i=Zs(e),r=_h([i[eu.MonthsFormat],i[eu.MonthsStandalone]],t);return _h(r,n)}(n,o,r)[e.getMonth()];case Sh.Days:return function(e,t,n){var i=Zs(e),r=_h([i[eu.DaysFormat],i[eu.DaysStandalone]],t);return _h(r,n)}(n,o,r)[e.getDay()];case Sh.DayPeriods:var s=e.getHours(),u=e.getMinutes();if(a){var c=function(e){var t=Zs(e);return yh(t),(t[eu.ExtraData][2]||[]).map(function(e){return"string"==typeof e?bh(e):[bh(e[0]),bh(e[1])]})}(n),l=function(e,t,n){var i=Zs(e);yh(i);var r=_h([i[eu.ExtraData][0],i[eu.ExtraData][1]],t)||[];return _h(r,n)||[]}(n,o,r),h=c.findIndex(function(e){if(Array.isArray(e)){var n=t(e,2),i=n[0],r=n[1],o=s>=i.hours&&u>=i.minutes,a=s0?Math.floor(r/60):Math.ceil(r/60);switch(e){case kh.Short:return(r>=0?"+":"")+Rh(a,2,o)+Rh(Math.abs(r%60),2,o);case kh.ShortGMT:return"GMT"+(r>=0?"+":"")+Rh(a,1,o);case kh.Long:return"GMT"+(r>=0?"+":"")+Rh(a,2,o)+":"+Rh(Math.abs(r%60),2,o);case kh.Extended:return 0===i?"Z":(r>=0?"+":"")+Rh(a,2,o)+":"+Rh(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function Ph(e){return Eh(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Nh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var r,o,a;if(t){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,u=n.getDate();r=1+Math.floor((u+s)/7)}else{var c=Ph(n),l=(o=c.getFullYear(),a=Eh(o,0,1).getDay(),Eh(o,0,1+(a<=4?4:11)-a)),h=c.getTime()-l.getTime();r=1+Math.round(h/6048e5)}return Rh(r,e,vh(i,fh.MinusSign))}}function Ih(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){return Rh(Ph(n).getFullYear(),e,vh(i,fh.MinusSign),t)}}var Bh={};function Fh(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Hh(e){return e instanceof Date&&!isNaN(e.valueOf())}var qh=function e(){_(this,e)},jh=function(){var e=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this)).locale=e,i}return w(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return Zs(e)[eu.PluralCase]}(t||this.locale)(e)){case ch.Zero:return"zero";case ch.One:return"one";case ch.Two:return"two";case ch.Few:return"few";case ch.Many:return"many";default:return"other"}}}]),n}(qh);return e.\u0275fac=function(t){return new(t||e)(Ei(el))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}();function Yh(e,n){n=encodeURIComponent(n);var i,r=a(e.split(";"));try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.indexOf("="),u=t(-1==s?[o,""]:[o.slice(0,s),o.slice(s+1)],2),c=u[0],l=u[1];if(c.trim()===n)return decodeURIComponent(l)}}catch(h){r.e(h)}finally{r.f()}return null}var Wh=function(){var e=function(){function e(t,n,i,r){_(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return w(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ha(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Me(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(Pu),Ja(Iu),Ja(mu),Ja(_u))},e.\u0275dir=gt({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),Uh=function(){function e(t,n,i,r){_(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return w(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Kh=function(){var e=function(){function e(t,n,i){_(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return w(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Uh(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new Vh(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var u=new Vh(e,s);n.push(u)}});for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return Ch(t,n,r||this.locale,i)}catch(o){throw nd(e,o.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(el,16))},e.\u0275pipe=mt({name:"date",type:e,pure:!0}),e}(),ld=((id=function e(){_(this,e)}).\u0275fac=function(e){return new(e||id)},id.\u0275mod=ft({type:id}),id.\u0275inj=xe({providers:[{provide:qh,useClass:jh}]}),id);function hd(e){return"browser"===e}function dd(e){return"server"===e}var fd=function(){var e=function e(){_(this,e)};return e.\u0275prov=Oe({token:e,providedIn:"root",factory:function(){return new pd(Ei(Ul),window)}}),e}(),pd=function(){function e(t,n){_(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}}return w(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=function(e,t){var n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow))for(var i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;r;){var o=r.shadowRoot;if(o){var a=o.getElementById(t)||o.querySelector('[name="'.concat(t,'"]'));if(a)return a}r=i.nextNode()}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=gd(this.window.history)||gd(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}]),e}();function gd(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var md,vd=function e(){_(this,e)},yd=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){e.parentNode&&e.parentNode.removeChild(e)}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getBaseHref",value:function(e){var t=(_d=_d||document.querySelector("base"))?_d.getAttribute("href"):null;return null==t?null:function(e){(md=md||document.createElement("a")).setAttribute("href",e);var t=md.pathname;return"/"===t.charAt(0)?t:"/".concat(t)}(t)}},{key:"resetBaseElement",value:function(){_d=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(e){return Yh(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,Yl||(Yl=e)}}]),n}(function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments)).supportsDOMEvents=!0,e}return n}(function(){return function e(){_(this,e)}}())),_d=null,bd=new hi("TRANSITION_ID"),wd=[{provide:Uc,useFactory:function(e,t,n){return function(){n.get(Kc).donePromise.then(function(){var n=Wl();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[bd,Ul,za],multi:!0}],Md=function(){function e(){_(this,e)}return w(e,[{key:"addToWindow",value:function(e){Ze.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},Ze.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Ze.getAllAngularRootElements=function(){return e.getAllRootElements()},Ze.frameworkStabilizers||(Ze.frameworkStabilizers=[]),Ze.frameworkStabilizers.push(function(e){var t=Ze.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?Wl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Ml=t}}]),e}(),Ad=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),kd=new hi("EventManagerPlugins"),Td=function(){var e=function(){function e(t,n){var i=this;_(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return w(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&qd.hasOwnProperty(t)&&(t=qd[t]))}return Hd[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Fd.forEach(function(i){i!=n&&(0,jd[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Sd);return e.\u0275fac=function(t){return new(t||e)(Ei(Ul))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Wd=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({factory:function(){return Ei(Kd)},token:e,providedIn:"root"}),e}();function Ud(e){return new Kd(e.get(Ul))}var Kd=function(){var e=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this))._doc=e,i}return w(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case vr.NONE:return t;case vr.HTML:return Ki(t,"HTML")?Ui(t):gr(this._doc,String(t)).toString();case vr.STYLE:return Ki(t,"Style")?Ui(t):t;case vr.SCRIPT:if(Ki(t,"Script"))return Ui(t);throw new Error("unsafe value used in a script context");case vr.URL:return Vi(t),Ki(t,"URL")?Ui(t):Zi(String(t));case vr.RESOURCE_URL:if(Ki(t,"ResourceURL"))return Ui(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 ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new Hi(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new qi(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new ji(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new Yi(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new Wi(e)}}]),n}(Wd);return e.\u0275fac=function(t){return new(t||e)(Ei(Ul))},e.\u0275prov=Oe({factory:function(){return Ud(Ei(ma))},token:e,providedIn:"root"}),e}(),Vd=El(Hl,"browser",[{provide:Qc,useValue:"browser"},{provide:Jc,useValue:function(){yd.makeCurrent(),Md.init()},multi:!0},{provide:Ul,useFactory:function(){return function(e){St=e}(document),document},deps:[]}]),Xd=[[],{provide:ya,useValue:"root"},{provide:Sr,useFactory:function(){return new Sr},deps:[]},{provide:kd,useClass:Bd,multi:!0,deps:[Ul,dl,Qc]},{provide:kd,useClass:Yd,multi:!0,deps:[Ul]},[],{provide:Dd,useClass:Dd,deps:[Td,Ed,Vc]},{provide:yu,useExisting:Dd},{provide:Cd,useExisting:Ed},{provide:Ed,useClass:Ed,deps:[Ul]},{provide:bl,useClass:bl,deps:[dl]},{provide:Td,useClass:Td,deps:[kd,dl]},{provide:vd,useClass:Ad,deps:[]},[]],Gd=function(){var e=function(){function e(t){if(_(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return w(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:Vc,useValue:t.appId},{provide:bd,useExisting:Vc},wd]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(e,12))},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:Xd,imports:[ld,jl]}),e}();function Jd(){for(var e=arguments.length,t=new Array(e),n=0;n0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return w(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,r(n)),this.headers.set(t,i);break;case"d":var o=e.value;if(o){var a=this.headers.get(t);if(!a)return;0===(a=a.filter(function(e){return-1===o.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),of=function(){function e(){_(this,e)}return w(e,[{key:"encodeKey",value:function(e){return af(e)}},{key:"encodeValue",value:function(e){return af(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function af(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function sf(e){return"".concat(e)}var uf=function(){function e(){var n,i,r,o=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_(this,e),this.updates=null,this.cloneFrom=null,this.encoder=a.encoder||new of,a.fromString){if(a.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(n=a.fromString,i=this.encoder,r=new Map,n.length>0&&n.replace(/^\?/,"").split("&").forEach(function(e){var n=e.indexOf("="),o=t(-1==n?[i.decodeKey(e),""]:[i.decodeKey(e.slice(0,n)),i.decodeValue(e.slice(n+1))],2),a=o[0],s=o[1],u=r.get(a)||[];u.push(s),r.set(a,u)}),r)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach(function(e){var t=a.fromObject[e];o.map.set(e,Array.isArray(t)?t:[t])})):this.map=null}return w(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(sf(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(sf(t.value));-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),cf=function(){function e(){_(this,e),this.map=new Map}return w(e,[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function lf(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function hf(e){return"undefined"!=typeof Blob&&e instanceof Blob}function df(e){return"undefined"!=typeof FormData&&e instanceof FormData}var ff=function(){function e(t,n,i,r){var o;if(_(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new rf),this.context||(this.context=new cf),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,u=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,c=n.headers||this.headers,l=n.params||this.params,h=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},c)),n.setParams&&(l=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},l)),new e(i,r,a,{params:l,headers:c,context:h,reportProgress:u,responseType:o,withCredentials:s})}}]),e}(),pf=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),gf=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_(this,e),this.headers=t.headers||new rf,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},mf=function(e){d(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _(this,n),(e=t.call(this,i)).type=pf.ResponseHeader,e}return w(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(gf),vf=function(e){d(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _(this,n),(e=t.call(this,i)).type=pf.Response,e.body=void 0!==i.body?i.body:null,e}return w(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(gf),yf=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(gf);function _f(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var bf,wf,Mf,Af,kf,Tf,Sf,Cf,Ef,Lf,zf,Rf,Of,xf,Df=function(){var e=function(){function e(t){_(this,e),this.handler=t}return w(e,[{key:"request",value:function(e,t){var n,i,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof ff?n=e:(i=a.headers instanceof rf?a.headers:new rf(a.headers),a.params&&(r=a.params instanceof uf?a.params:new uf({fromObject:a.params})),n=new ff(e,t,void 0!==a.body?a.body:null,{headers:i,context:a.context,params:r,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials}));var s=Jd(n).pipe(Qd(function(e){return o.handler.handle(e)}));if(e instanceof ff||"events"===a.observe)return s;var u=s.pipe(Zd(function(e){return e instanceof vf}));switch(a.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(ee(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return u.pipe(ee(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return u.pipe(ee(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return u.pipe(ee(function(e){return e.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new uf).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,_f(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,_f(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,_f(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(tf))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Pf=function(){function e(t,n){_(this,e),this.next=t,this.interceptor=n}return w(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Nf=new hi("HTTP_INTERCEPTORS"),If=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Bf=/^\)\]\}',?\n/,Ff=function(){var e=function(){function e(t){_(this,e),this.xhrFactory=t}return w(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new I(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new rf(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new mf({headers:r,status:t,statusText:n,url:o})},c=function(){var t=u(),r=t.headers,o=t.status,a=t.statusText,s=t.url,c=null;204!==o&&(c=void 0===i.response?i.responseText:i.response),0===o&&(o=c?200:0);var l=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof c){var h=c;c=c.replace(Bf,"");try{c=""!==c?JSON.parse(c):null}catch(d){c=h,l&&(l=!1,c={error:d,text:c})}}l?(n.next(new vf({body:c,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new yf({error:c,headers:r,status:o,statusText:a,url:s||void 0}))},l=function(e){var t=u().url,r=new yf({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},h=!1,d=function(t){h||(n.next(u()),h=!0);var r={type:pf.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(e){var t={type:pf.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",c),i.addEventListener("error",l),i.addEventListener("timeout",l),i.addEventListener("abort",l),e.reportProgress&&(i.addEventListener("progress",d),null!==a&&i.upload&&i.upload.addEventListener("progress",f)),i.send(a),n.next({type:pf.Sent}),function(){i.removeEventListener("error",l),i.removeEventListener("abort",l),i.removeEventListener("load",c),i.removeEventListener("timeout",l),e.reportProgress&&(i.removeEventListener("progress",d),null!==a&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(vd))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Hf=new hi("XSRF_COOKIE_NAME"),qf=new hi("XSRF_HEADER_NAME"),jf=function e(){_(this,e)},Yf=function(){var e=function(){function e(t,n,i){_(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return w(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Yh(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Ul),Ei(Qc),Ei(Hf))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Wf=function(){var e=function(){function e(t,n){_(this,e),this.tokenService=t,this.headerName=n}return w(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(jf),Ei(qf))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Uf=function(){var e=function(){function e(t,n){_(this,e),this.backend=t,this.injector=n,this.chain=null}return w(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Nf,[]);this.chain=t.reduceRight(function(e,t){return new Pf(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(nf),Ei(za))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Kf=function(){var e=function(){function e(){_(this,e)}return w(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Wf,useClass:If}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:Hf,useValue:t.cookieName}:[],t.headerName?{provide:qf,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[Wf,{provide:Nf,useExisting:Wf,multi:!0},{provide:jf,useClass:Yf},{provide:Hf,useValue:"XSRF-TOKEN"},{provide:qf,useValue:"X-XSRF-TOKEN"}]}),e}(),Vf=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[Df,{provide:tf,useClass:Uf},Ff,{provide:nf,useExisting:Ff}],imports:[[Kf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),Xf=function(){function e(){_(this,e)}return w(e,[{key:"encodeKey",value:function(e){return encodeURIComponent(e)}},{key:"encodeValue",value:function(e){return encodeURIComponent(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}(),Gf=new hi("basePath"),Jf=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_(this,e),this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}return w(e,[{key:"selectHeaderContentType",value:function(e){var t=this;if(0!==e.length){var n=e.find(function(e){return t.isJsonMime(e)});return void 0===n?e[0]:n}}},{key:"selectHeaderAccept",value:function(e){var t=this;if(0!==e.length){var n=e.find(function(e){return t.isJsonMime(e)});return void 0===n?e[0]:n}}},{key:"isJsonMime",value:function(e){var t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}]),e}(),Qf=((Lf=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new rf,this.configuration=new Jf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Xf}return w(e,[{key:"convertAttributeToNonunique",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("attributeDefinition",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/convertAttributeToNonunique"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"convertAttributeToUnique",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("attributeDefinition",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/convertAttributeToUnique"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"createAttributeDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/createAttribute"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"deleteAttributeDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("attribute",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/deleteAttribute"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteAttributeDefinitions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");var i=new uf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("attributes[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/deleteAttributes"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllAttributeDefinitions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributesDefinition"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAttribute",value:function(e,t,n,i,r,o,a,s,u,c,l){var h=arguments.length>11&&void 0!==arguments[11]?arguments[11]:"body",d=arguments.length>12&&void 0!==arguments[12]&&arguments[12],f=new uf({encoder:this.encoder});null!=e&&(f=f.set("attributeName",e)),null!=t&&(f=f.set("attributeId",t)),null!=n&&(f=f.set("facility",n)),null!=i&&(f=f.set("user",i)),null!=r&&(f=f.set("vo",r)),null!=o&&(f=f.set("resource",o)),null!=a&&(f=f.set("member",a)),null!=s&&(f=f.set("group",s)),null!=u&&(f=f.set("host",u)),null!=c&&(f=f.set("userExtSource",c)),null!=l&&(f=f.set("key",l));var p=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(p=p.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(p=p.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var g="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;p=p.set("Authorization","Bearer "+g)}var m=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==m&&(p=p.set("Accept",m)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/any"),{params:f,withCredentials:this.configuration.withCredentials,headers:p,observe:h,reportProgress:d})}},{key:"getAttributeDefinitionById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeDefinitionById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributeDefinitionByName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("attributeName",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeDefinition"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributeDefinitionsByNamespace",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributesDefinitionByNamespace"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAttributeModulesDependenciesForAttributeGraphText",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("format",e)),null!=t&&(r=r.set("attrName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getAttributeModulesDependenciesGraphText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("format",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeModulesDependenciesGraphText"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributeRights",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("attributeId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeRights"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributesDefinitionWithRights",value:function(e,t,n,i,r,o,a,s){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"body",c=arguments.length>9&&void 0!==arguments[9]&&arguments[9],l=new uf({encoder:this.encoder});null!=e&&(l=l.set("member",e)),null!=t&&(l=l.set("user",t)),null!=n&&(l=l.set("vo",n)),null!=i&&(l=l.set("group",i)),null!=r&&(l=l.set("resource",r)),null!=o&&(l=l.set("facility",o)),null!=a&&(l=l.set("host",a)),null!=s&&(l=l.set("userExtSource",s));var h=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(h=h.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(h=h.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var d="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;h=h.set("Authorization","Bearer "+d)}var f=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==f&&(h=h.set("Accept",f)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/getAttributesDefinitionWithRights"),{params:l,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:c})}},{key:"getEntitylessAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("key",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-entityless"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getEntitylessAttributesByKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("key",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/key"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getEntitylessAttributesByName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("attrName",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getEntitylessAttributesWithKeys",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("attrName",e)),t&&t.forEach(function(e){r=r.append("keys[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessAttributesWithKeys"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getEntitylessKeys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("attributeDefinition",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessKeys"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getFacilityAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getFacilityAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getFacilityAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getFacilityAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getFacilityResourceUserMemberAttributes",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("facility",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("user",n)),null!=i&&(a=a.set("member",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-r-u-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getFacilityUserAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-u"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-group"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-group"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/g"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/g-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupResourceAttributeById",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("attributeId",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-group-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getGroupResourceAttributeByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("attributeName",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-group-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getGroupResourceAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/group-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getHostAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("host",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-host"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getHostAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("host",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-host"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getHostAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("host",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/h"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getHostAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("host",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/h-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getLogins",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getLogins"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMemberAndUserAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("workWithUserAttributes",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-wu"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getMemberAndUserAttributesByNames",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),t&&t.forEach(function(e){o=o.append("attrNames[]",e)}),null!=n&&(o=o.set("workWithUserAttributes",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-names-wu"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getMemberAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMemberAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getMemberGroupAndUserAttributesByNames",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),n&&n.forEach(function(e){a=a.append("attrNames[]",e)}),null!=i&&(a=a.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g-names-wu"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getMemberGroupAttributeById",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),null!=n&&(o=o.set("attributeId",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member-group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberGroupAttributeByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),null!=n&&(o=o.set("attributeName",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member-group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberGroupAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getMemberGroupAttributesByNames",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),n&&n.forEach(function(e){o=o.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g-names"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("workWithUserAttributes",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r-wu"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributesByNames",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("resource",t)),n&&n.forEach(function(e){a=a.append("attrNames[]",e)}),null!=i&&(a=a.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r-names-wu"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getMemberResourceAttributeById",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("attributeId",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberResourceAttributeByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("attributeName",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberResourceAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRequiredAttributesDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("service",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributesDefinition"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRequiredAttributesFacility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/f"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRequiredAttributesFacilityService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRequiredAttributesFacilityServices",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("services[]",e)}),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/ss-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRequiredAttributesGroupResourceService",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("service",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("group",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-g"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getRequiredAttributesHostService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("host",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-h"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRequiredAttributesMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("workWithUserAttributes",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRequiredAttributesMemberGroup",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),null!=n&&(o=o.set("workWithUserAttributes",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m-g"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getRequiredAttributesMemberGroupResourceService",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==n)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");var s=new uf({encoder:this.encoder});null!=e&&(s=s.set("service",e)),null!=t&&(s=s.set("resource",t)),null!=n&&(s=s.set("group",n)),null!=i&&(s=s.set("member",i)),null!=r&&(s=s.set("workWithUserAttributes",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-g-m"),{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"getRequiredAttributesMemberGroupService",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("service",e)),null!=t&&(a=a.set("group",t)),null!=n&&(a=a.set("member",n)),null!=i&&(a=a.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-g-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getRequiredAttributesMemberResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("workWithUserAttributes",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m-r"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getRequiredAttributesMemberResourceService",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("service",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("member",n)),null!=i&&(a=a.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getRequiredAttributesResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/r"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRequiredAttributesResourceService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRequiredAttributesResourceServices",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("services[]",e)}),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/ss-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRequiredAttributesUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/u"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRequiredAttributesUserFacility",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/u-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRequiredAttributesVoService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("vo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-v"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourceAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourceAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourceAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourceGroupAndGroupAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("resource",e)),null!=t&&(o=o.set("group",t)),null!=n&&(o=o.set("workWithGroupAttributes",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-wg"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getResourceGroupAndGroupAttributesByNames",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("resource",e)),null!=t&&(a=a.set("group",t)),n&&n.forEach(function(e){a=a.append("attrNames[]",e)}),null!=i&&(a=a.set("workWithGroupAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-names-wg"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getResourceGroupAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourceGroupMemberAttributesByNames",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("resource",e)),null!=t&&(a=a.set("group",t)),null!=n&&(a=a.set("member",n)),i&&i.forEach(function(e){a=a.append("attrNames[]",e)});var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-m-names"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getUserAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-user"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getUserAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-user"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/u"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/u-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getUserExtSourceAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-ues"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getUserExtSourceAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-ues"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getUserExtSourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("userExtSource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/ues"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserExtSourceAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/ues-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getUserFacilityAttributeById",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("facility",t)),null!=n&&(o=o.set("attributeId",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-user_facility"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getUserFacilityAttributeByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("facility",t)),null!=n&&(o=o.set("attributeName",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-user_facility"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getUserFacilityAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/user-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getVoAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-vo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getVoAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-vo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getVoAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/vo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/vo-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeAttributesForFacilityResourceGroupUserMember",value:function(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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==n)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");var u=new uf({encoder:this.encoder});null!=e&&(u=u.set("facility",e)),null!=t&&(u=u.set("resource",t)),null!=n&&(u=u.set("group",n)),null!=i&&(u=u.set("user",i)),null!=r&&(u=u.set("member",r)),o&&o.forEach(function(e){u=u.append("attributes[]",e)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:s})}},{key:"removeAttributesForFacilityResourceUserMember",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");var s=new uf({encoder:this.encoder});null!=e&&(s=s.set("facility",e)),null!=t&&(s=s.set("resource",t)),null!=n&&(s=s.set("user",n)),null!=i&&(s=s.set("member",i)),r&&r.forEach(function(e){s=s.append("attributes[]",e)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f-r-u-m"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"removeEntitylessAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("key",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/e"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeFacilityAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeFacilityAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeGroupAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeGroupAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeGroupResourceAttribute",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("attribute",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/g-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeGroupResourceAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),n&&n.forEach(function(e){o=o.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeGroupResourceAttributesWorkWithGroupAttributes",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("group",e)),null!=t&&(a=a.set("resource",t)),n&&n.forEach(function(e){a=a.append("attributes[]",e)}),null!=i&&(a=a.set("workWithGroupAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"removeHostAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("host",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/h"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeHostAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("host",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/h"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeMemberAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeMemberAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeMemberAttributesWorkWithUserAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),t&&t.forEach(function(e){o=o.append("attributes[]",e)}),null!=n&&(o=o.set("workWithUserAttributes",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeMemberGroupAttribute",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),null!=n&&(o=o.set("attribute",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeMemberGroupAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),n&&n.forEach(function(e){o=o.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeMemberGroupAttributesWorkWithUserAttributes",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),n&&n.forEach(function(e){a=a.append("attributes[]",e)}),null!=i&&(a=a.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"removeMemberResourceAttribute",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("attribute",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeMemberResourceAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),n&&n.forEach(function(e){o=o.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeResourceAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/r"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeResourceAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/r"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeUesAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/ues"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeUserAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeUserAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeUserExtSourceAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/ues"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeUserFacilityAttribute",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("facility",t)),null!=n&&(o=o.set("attribute",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/u-f"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeUserFacilityAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("facility",t)),n&&n.forEach(function(e){o=o.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/u-f"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeVoAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeVoAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"setAttributeRights",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributeRights"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setEntitylessAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/entityless"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/facility"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityResourceGroupUserMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-r-g-u-m"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityResourceUserMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-r-u-m"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-u"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setGroupAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/group"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/g"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setGroupResourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/group-resource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setGroupResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/group-resource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setHostAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/host"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setHostAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/h"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberGroupAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member-group"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-g"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberGroupWithUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-g-wu"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberResourceAndUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-r-wu"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberResourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member-resource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-r"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberWithUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-wu"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setResourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/resource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setResourceGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r-g"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setResourceGroupWithGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r-g-wg"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/user"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/u"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserExtSourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/userExtSource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserExtSourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/ues"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserFacilityAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/facility-user"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserFacilityAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/facility-user"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setVoAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/vo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setVoAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/vo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateAttributeDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/updateAttributeDefinition"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||Lf)(Ei(Df),Ei(Gf,8),Ei(Jf,8))},Lf.\u0275prov=Oe({token:Lf,factory:Lf.\u0275fac,providedIn:"root"}),Lf),Zf=((Ef=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new rf,this.configuration=new Jf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Xf}return w(e,[{key:"getAllPolicies",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAllPolicies"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAllRolesManagementRules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAllRolesManagementRules"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAuthzAdminGroups",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("role",e)),null!=t&&(o=o.set("complementaryObjectId",t)),null!=n&&(o=o.set("complementaryObjectName",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAdminGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getAuthzRichAdmins",value:function(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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==n)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");var u=new uf({encoder:this.encoder});null!=e&&(u=u.set("role",e)),null!=t&&(u=u.set("complementaryObjectId",t)),null!=n&&(u=u.set("complementaryObjectName",n)),i&&i.forEach(function(e){u=u.append("specificAttributes",e)}),null!=r&&(u=u.set("allUserAttributes",r)),null!=o&&(u=u.set("onlyDirectAdmins",o));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getRichAdmins"),{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:s})}},{key:"getFacilitiesWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");var r=new uf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getFacilitiesWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupRoleNames",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getGroupRoleNames"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupRoles",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("groupId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/getGroupRoles"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupsWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");var r=new uf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getGroupsWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getLoggedUser",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getLoggedUser"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getMembersWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");var r=new uf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getMembersWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getPerunPrincipal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getPerunPrincipal"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPrincipalRoleNames",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getPrincipalRoleNames"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getResourcesWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");var r=new uf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getResourcesWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getSecurityTeamsWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");var r=new uf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getSecurityTeamsWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getUserRoleNames",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getUserRoleNames"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserRoles",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("userId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getUserRoles"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");var r=new uf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getVosWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"isFacilityAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new uf({encoder:this.encoder});null!=e&&(i=i.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isFacilityAdmin"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"isGroupAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new uf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isGroupAdmin"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"isPerunAdmin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/isPerunAdmin"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"isVoAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isVoAdmin"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"keepAlive",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/keepAlive"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"loadAuthorizationComponents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/loadAuthorizationComponents"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"setRoleWithGroupComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/setRole/g-co"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setRoleWithUserComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/setRole/u-co"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"unsetRoleWithGroupComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/unsetRole/g-co"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"unsetRoleWithUserComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/unsetRole/u-co"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||Ef)(Ei(Df),Ei(Gf,8),Ei(Jf,8))},Ef.\u0275prov=Oe({token:Ef,factory:Ef.\u0275fac,providedIn:"root"}),Ef),$f=((Cf=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new rf,this.configuration=new Jf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Xf}return w(e,[{key:"addMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),null!=t&&(r=r.set("member",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/addMember"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"addMembers",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("members[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/addMembers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"canExtendMembershipInGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/canExtendMembershipInGroup"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"createGroupUnion",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resultGroup",e)),null!=t&&(r=r.set("operandGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroupUnion"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"createGroupWithParentGroupNameDescription",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("parentGroup",e)),null!=t&&(o=o.set("name",t)),null!=n&&(o=o.set("description",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroup/pg-n-d"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"createGroupWithVoNameDescription",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("name",t)),null!=n&&(o=o.set("description",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroup/v-n-d"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"deleteGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("force",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/deleteGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"deleteGroups",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroups.");if(null==t)throw new Error("Required parameter forceDelete was null or undefined when calling deleteGroups.");var r=new uf({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),null!=t&&(r=r.set("forceDelete",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/deleteGroups"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"extendMembershipInGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/extendMembershipInGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"forceAllSubGroupsSynchronization",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"forceGroupStructureSynchronization",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceGroupStructureSynchronization"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"forceGroupSynchronization",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceGroupSynchronization"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllMemberGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllMemberGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllRichGroupsWithAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getAllRichSubGroupsWithGroupAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichSubGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getGroupById.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("name",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupByName"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupMemberById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("member",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMemberById"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupMembersCount",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCount"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupMembersCountsByGroupStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCountsByGroupStatus"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupMembersCountsByVoStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCountsByVoStatus"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupRichMembersByIds",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),t&&t.forEach(function(e){o=o.append("members[]",e)}),n&&n.forEach(function(e){o=o.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupRichMembersByIds"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getGroupUnions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("reverseDirection",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupUnions"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupsByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");var i=new uf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupsByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getIndirectMembershipPaths",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getIndirectMembershipPaths"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getMemberGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getMemberGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMemberRichGroupsWithAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getMemberRichGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRichGroupByIdWithAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getRichGroupByIdWithAttributesByNames.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("groupId",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getRichGroupByIdWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"isGroupMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/isGroupMember"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"moveGroupWithDestinationGroupMovingGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");var r=new uf({encoder:this.encoder});null!=t&&(r=r.set("destinationGroup",t)),null!=e&&(r=r.set("movingGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/moveGroup/dg-mg"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeGroupUnion",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resultGroup",e)),null!=t&&(r=r.set("operandGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeGroupUnion"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),null!=t&&(r=r.set("member",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeMember"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeMembers",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("members[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeMembers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"setGroupsMemberStatus",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),null!=n&&(o=o.set("status",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/setGroupsMemberStatus"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"updateGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/updateGroup"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||Cf)(Ei(Df),Ei(Gf,8),Ei(Jf,8))},Cf.\u0275prov=Oe({token:Cf,factory:Cf.\u0275fac,providedIn:"root"}),Cf),ep=((Sf=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new rf,this.configuration=new Jf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Xf}return w(e,[{key:"canExtendMembership",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/canExtendMembership"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"createMemberForCandidate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/c"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createMemberForUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/u"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createMemberFromExtSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/extSource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createSpecificMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSpecificMember"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createSponsoredMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMember/withFullName"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createSponsoredMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMembers"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createSponsoredMembersFromCSV",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMembersFromCSV"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"deleteMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling deleteMember.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/deleteMember"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");var i=new uf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("members[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/deleteMembers"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"extendMembership",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembership.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/extendMembership"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"findCompleteRichMembersByAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new uf({encoder:this.encoder});e&&e.forEach(function(e){o=o.append("attrsNames[]",e)}),null!=t&&(o=o.set("searchString",t)),n&&n.forEach(function(e){o=o.append("allowedStatuses[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/attrs"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"findCompleteRichMembersForGroup",value:function(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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==n)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");var u=new uf({encoder:this.encoder});null!=e&&(u=u.set("group",e)),t&&t.forEach(function(e){u=u.append("attrsNames[]",e)}),r&&r.forEach(function(e){u=u.append("allowedStatuses[]",e)}),o&&o.forEach(function(e){u=u.append("allowedGroupStatuses[]",e)}),null!=n&&(u=u.set("searchString",n)),null!=i&&(u=u.set("lookingInParentGroup",i));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/g"),{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:s})}},{key:"findCompleteRichMembersForVo",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),t&&t.forEach(function(e){a=a.append("attrsNames[]",e)}),i&&i.forEach(function(e){a=a.append("allowedStatuses[]",e)}),null!=n&&(a=a.set("searchString",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/v"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"findMembersInVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("searchString",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findMembersInVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"findSponsoredCompleteRichMembersForVo",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),t&&t.forEach(function(e){a=a.append("attrsNames[]",e)}),null!=n&&(a=a.set("searchString",n)),null!=i&&(a=a.set("onlySponsored",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/v-sponsored"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getAllNamespacesRules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllNamespacesRules"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAllSponsoredMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllSponsoredMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllSponsoredMembersAndTheirSponsors",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllSponsoredMembersAndTheirSponsors"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getCompleteRichMembersForGroup",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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.");var s=new uf({encoder:this.encoder});null!=e&&(s=s.set("group",e)),n&&n.forEach(function(e){s=s.append("allowedStatuses[]",e)}),i&&i.forEach(function(e){s=s.append("allowedGroupStatuses[]",e)}),null!=t&&(s=s.set("lookingInParentGroup",t)),r&&r.forEach(function(e){s=s.append("attrsNames[]",e)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/g"),{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"getCompleteRichMembersForGroupResource",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("group",e)),null!=t&&(a=a.set("resource",t)),n&&n.forEach(function(e){a=a.append("attrsNames[]",e)}),i&&i.forEach(function(e){a=a.append("allowedStatuses[]",e)});var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/g-r"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getCompleteRichMembersForVo",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),t&&t.forEach(function(e){o=o.append("allowedStatuses[]",e)}),n&&n.forEach(function(e){o=o.append("attrsNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/v"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberByExtSourceNameAndExtLogin",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("extLogin",t)),null!=n&&(o=o.set("extSourceName",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberByExtSourceNameAndExtLogin"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMemberByUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberByUser"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getMembers",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembers.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("status",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembers"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getMembersByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");var i=new uf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMembersByUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersByUser"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMembersCount",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersCount"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMembersPage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/getMembersPage"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"getMembersWithStatusCount",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("status",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersCount/status"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRichMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMember.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMember"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichMemberWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMemberWithAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichMembersByIds",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");var r=new uf({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("ids[]",e)}),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMembersByIds"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getSponsoredMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsoredMembers/v"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getSponsoredMembersAndTheirSponsors",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsoredMembersAndTheirSponsors"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getSponsorsByMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsors/member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getSponsorsByVo",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("extSourceName",t)),null!=n&&(a=a.set("extLogin",n)),i&&i.forEach(function(e){a=a.append("attrNames[]",e)});var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsors/vo"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"moveMembership",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("sourceUser",t)),null!=n&&(o=o.set("targetUser",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/moveMembership"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeSponsor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("sponsor",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/removeSponsor"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"sendAccountActivationLinkEmail",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("namespace",t)),null!=n&&(a=a.set("emailAttributeURN",n)),null!=i&&(a=a.set("language",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sendAccountActivationLinkEmail"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"sendPasswordResetLinkEmail",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("namespace",t)),null!=n&&(a=a.set("emailAttributeURN",n)),null!=i&&(a=a.set("language",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sendPasswordResetLinkEmail"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"setSponsoredMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/setSponsoredMember"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setSponsorshipForMember",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("sponsoredMember",e)),null!=t&&(o=o.set("sponsor",t)),null!=n&&(o=o.set("validityTo",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/setSponsorshipForMember"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"setStatus",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("status",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/setStatus"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"sponsorMember",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("sponsor",t)),null!=n&&(o=o.set("validityTo",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sponsorMember"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"updateSponsorshipValidity",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("sponsor",t)),null!=n&&(o=o.set("validityTo",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/updateSponsorshipValidity"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"validateMemberAsync",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/validateMemberAsync"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||Sf)(Ei(Df),Ei(Gf,8),Ei(Jf,8))},Sf.\u0275prov=Oe({token:Sf,factory:Sf.\u0275fac,providedIn:"root"}),Sf),tp=((Tf=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new rf,this.configuration=new Jf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Xf}return w(e,[{key:"sentMessageToRTWithMemberQueue",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("memberId",e)),null!=t&&(a=a.set("queue",t)),null!=n&&(a=a.set("subject",n)),null!=i&&(a=a.set("text",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"sentMessageToRTWithQueue",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("queue",e)),null!=t&&(o=o.set("subject",t)),null!=n&&(o=o.set("text",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/q"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"sentMessageToRTWithVo",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("voId",e)),null!=t&&(o=o.set("subject",t)),null!=n&&(o=o.set("text",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/v"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"sentMessageToRTWithVoQueue",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("voId",e)),null!=t&&(a=a.set("queue",t)),null!=n&&(a=a.set("subject",n)),null!=i&&(a=a.set("text",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}}]),e}()).\u0275fac=function(e){return new(e||Tf)(Ei(Df),Ei(Gf,8),Ei(Jf,8))},Tf.\u0275prov=Oe({token:Tf,factory:Tf.\u0275fac,providedIn:"root"}),Tf),np=((kf=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new rf,this.configuration=new Jf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Xf}return w(e,[{key:"addApplicationMailForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/addApplicationMail/g"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"addApplicationMailForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/addApplicationMail/v"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"addGroupsToAutoRegistration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");var i=new uf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("groups[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/addGroupsToAutoRegistration"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"approveApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/approveApplication"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"consolidateIdentityUsingToken",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("token",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/consolidateIdentityUsingToken"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"copyFormFromGroupToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new uf({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/groupToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"copyFormFromGroupToVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new uf({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toVo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/groupToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"copyFormFromVoToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new uf({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/voToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"copyFormFromVoToVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new uf({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toVo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/voToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"copyMailsFromGroupToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new uf({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/groupToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"copyMailsFromGroupToVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new uf({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toVo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/groupToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"copyMailsFromVoToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new uf({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/voToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"copyMailsFromVoToVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new uf({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toVo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/voToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"createApplicationFormInGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/createApplicationForm/group"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"createApplicationFormInVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/createApplicationForm/vo"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplication"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteApplicationMailForGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("id",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplicationMail/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"deleteApplicationMailForVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("id",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplicationMail/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"deleteGroupsFromAutoRegistration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");var i=new uf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("groups[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationDataById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationDataById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationMailsForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationMails/g"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationMailsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationMails/v"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationsForGroup",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("group",e)),t&&t.forEach(function(e){a=a.append("state[]",e)}),null!=n&&(a=a.set("dateFrom",n)),null!=i&&(a=a.set("dateTo",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForGroup"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getApplicationsForMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForMember"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getApplicationsForVo",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),t&&t.forEach(function(e){a=a.append("state[]",e)}),null!=n&&(a=a.set("dateFrom",n)),null!=i&&(a=a.set("dateTo",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForVo"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getConsolidatorToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getConsolidatorToken"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getFormItemsForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/group"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getFormItemsForGroupWithType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("type",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/group-type"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getFormItemsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/vo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getFormItemsForVoWithType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("type",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/vo-type"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupApplicationForm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationForm/group"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupsToAutoRegistration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getGroupsToAutoRegistration"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoApplicationForm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationForm/vo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"rejectApplication",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("id",e)),null!=t&&(r=r.set("reason",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/rejectApplication"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"sendInvitation",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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.");var a=new uf({encoder:this.encoder});null!=n&&(a=a.set("voId",n)),null!=i&&(a=a.set("name",i)),null!=e&&(a=a.set("email",e)),null!=t&&(a=a.set("language",t));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"sendInvitationForGroup",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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.");var s=new uf({encoder:this.encoder});null!=n&&(s=s.set("voId",n)),null!=i&&(s=s.set("groupId",i)),null!=r&&(s=s.set("name",r)),null!=e&&(s=s.set("email",e)),null!=t&&(s=s.set("language",t));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/g"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"sendInvitationGroupToExistingUser",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=new uf({encoder:this.encoder});null!=e&&(o=o.set("userId",e)),null!=t&&(o=o.set("voId",t)),null!=n&&(o=o.set("groupId",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/u-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"sendInvitationToExistingUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new uf({encoder:this.encoder});null!=e&&(r=r.set("userId",e)),null!=t&&(r=r.set("voId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/sendMessage"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setSendingEnabled",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/setSendingEnabled"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"submitApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/submitApplication"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateApplicationMail",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateApplicationMail"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateForm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateForm"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateFormItemData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItemData"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateFormItemsData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItemsData"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateFormItemsForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItems/group"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateFormItemsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItems/vo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"verifyApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/verifyApplication"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||kf)(Ei(Df),Ei(Gf,8),Ei(Jf,8))},kf.\u0275prov=Oe({token:kf,factory:kf.\u0275fac,providedIn:"root"}),kf),ip=((Af=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new rf,this.configuration=new Jf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Xf}return w(e,[{key:"activateGroupResourceAssignment",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("async",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/activateGroupResourceAssignment"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"addAdminToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addAdmin/r-g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"addAdminToUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addAdmin/r-u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"addResourceSelfServiceGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addResourceSelfServiceGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"addResourceSelfServiceUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addResourceSelfServiceUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"allowGroupsToResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new uf({encoder:this.encoder});e&&e.forEach(function(e){o=o.append("groups[]",e)}),t&&t.forEach(function(e){o=o.append("resources[]",e)}),null!=n&&(o=o.set("async",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/allowGroupsToResources"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"assignGroupToResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("async",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupToResource"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"assignGroupToResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),t&&t.forEach(function(e){o=o.append("resources[]",e)}),null!=n&&(o=o.set("async",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupToResources"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"assignGroupsToResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new uf({encoder:this.encoder});e&&e.forEach(function(e){o=o.append("groups[]",e)}),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("async",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupsToResource"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"assignResourceTagToResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/assignResourceTagToResource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"assignService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("service",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"assignServices",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("services[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignServices"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"assignServicesPackage",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("servicesPackage",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"copyResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/copyResource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createResource",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter name was null or undefined when calling createResource.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("facility",t)),null!=n&&(a=a.set("name",n)),null!=i&&(a=a.set("description",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/createResource"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"createResourceTagWithResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/createResourceTag/resourceTag"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createResourceTagWithTagName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("tagName",e)),null!=t&&(r=r.set("vo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/createResourceTag/tagName"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"deactivateGroupResourceAssignment",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"deleteAllResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteAllResources"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteAllResourcesTagsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteResource"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/deleteResourceTag"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"getAdminGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAdminGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAdmins",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("onlyDirectAdmins",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAdmins"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getAllResourcesByResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesByResourceTag"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"getAllResourcesTagsForResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesTagsForResource"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllResourcesTagsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesTagsForVo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllResourcesWhereUserIsAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/all"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllowedMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllowedResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedResources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllowedUsersOfResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedUsers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedGroups",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("member",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedGroups"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getAssignedMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedResourcesWithGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResources/g"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedResourcesWithMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResources/m"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichResourcesWithGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/g"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichResourcesWithMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/m"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichResourcesWithMemberService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("service",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/s-m"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getAssignedServicesToResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedServices"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getBansForMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBansForMember"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getBansForResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBansForResource"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getEnrichedResourceById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("id",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourceById"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getEnrichedResourcesForFacility",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourcesForFacility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getEnrichedResourcesForVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourcesForVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getFacility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacility.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getFacility"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupAssignments",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getGroupAssignments"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourceAssignments",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceAssignments"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourceBan",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBan"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourceBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBanById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourceById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getResourceById.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourceByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("facility",t)),null!=n&&(o=o.set("name",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceByName"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourcesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");var i=new uf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourcesCountForAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesCount/all"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getResourcesCountForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesCount/vo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourcesFromVoWhereUserIsAdmin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourcesWhereGroupIsAdmin",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("facility",e)),null!=t&&(o=o.set("vo",t)),null!=n&&(o=o.set("group",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getResourcesWhereUserIsAdmin",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("facility",e)),null!=t&&(o=o.set("vo",t)),null!=n&&(o=o.set("user",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getRichAdmins",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("resource",e)),t&&t.forEach(function(e){a=a.append("specificAttributes",e)}),null!=n&&(a=a.set("allUserAttributes",n)),null!=i&&(a=a.set("onlyDirectAdmins",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichAdmins"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getRichResourceById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResourceById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichResourcesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");var i=new uf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResourcesByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getVo.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getVo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"removeAllResourceTagsFromResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"removeBanByMemberAndResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeBan/member-resource-id"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeGroupAdminResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAdmin/r-g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeGroupFromResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupFromResource"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeGroupFromResources",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("resources[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupFromResources"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeGroupsFromResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupsFromResource"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeResourceBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeBan/id"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"removeResourceSelfServiceGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeResourceSelfServiceUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeResourceSelfServiceUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeResourceTagFromResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/removeResourceTagFromResource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"removeService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("service",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeServices",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("services[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeServices"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeServicesPackage",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("servicesPackage",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeUserAdminResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAdmin/r-u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"setResourceBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/setBan"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"unallowGroupsFromResources",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),t&&t.forEach(function(e){r=r.append("resources[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/unallowGroupsFromResources"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"updateResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateResource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateResourceBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateBan"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateResourceTag"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||Af)(Ei(Df),Ei(Gf,8),Ei(Jf,8))},Af.\u0275prov=Oe({token:Af,factory:Af.\u0275fac,providedIn:"root"}),Af),rp=((Mf=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new rf,this.configuration=new Jf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Xf}return w(e,[{key:"addSpecificUserOwner",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("specificUser",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/addSpecificUserOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"addUserExtSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/addUserExtSource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"changeNonAuthzPasswordByToken",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("token",e)),null!=t&&(o=o.set("password",t)),null!=n&&(o=o.set("lang",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changeNonAuthzPassword/token"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"changePasswordForLogin",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==e)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==n)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");var s=new uf({encoder:this.encoder});null!=e&&(s=s.set("login",e)),null!=t&&(s=s.set("namespace",t)),null!=n&&(s=s.set("newPassword",n)),null!=i&&(s=s.set("oldPassword",i)),null!=r&&(s=s.set("checkOldPassword",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changePassword/login"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"changePasswordForUser",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==e)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==n)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");var s=new uf({encoder:this.encoder});null!=e&&(s=s.set("user",e)),null!=t&&(s=s.set("namespace",t)),null!=n&&(s=s.set("newPassword",n)),null!=i&&(s=s.set("oldPassword",i)),null!=r&&(s=s.set("checkOldPassword",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changePassword/user"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"checkPasswordResetRequestByTokenIsValid",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("token",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/checkPasswordResetRequestIsValid/token"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"checkPasswordStrength",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("password",e)),null!=t&&(r=r.set("namespace",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/checkPasswordStrength"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"createAlternativePassword",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("description",t)),null!=n&&(a=a.set("loginNamespace",n)),null!=i&&(a=a.set("password",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/createAlternativePassword"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"createServiceUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/createServiceUser"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"deleteAlternativePassword",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("loginNamespace",t)),null!=n&&(o=o.set("passwordId",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deleteAlternativePassword"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"deletePasswordForLogin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("login",e)),null!=t&&(r=r.set("namespace",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deletePassword/login"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"deletePasswordForUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("namespace",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deletePassword/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"deleteUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("force",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deleteUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"findRichUsers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("searchString",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findRichUsers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"findRichUsersWithAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("searchString",e)),t&&t.forEach(function(e){r=r.append("attrsNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findRichUsersWithAttributes"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"findUsers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("searchString",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findUsers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichResourcesForUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getAssignedRichResources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupsForFacilityWhereUserIsActive",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsActive/facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupsForResourceWhereUserIsActive",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsActive/resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupsInVoWhereUserIsAdmin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("vo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsAdmin/u-v"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupsWhereUserIsAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsAdmin/u"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getPendingPreferredEmailChanges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getPendingPreferredEmailChanges"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUserExtSources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUserExtSources/u"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUserWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUserWithAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUsersByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");var i=new uf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUsersWithAttributesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");var i=new uf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersWithAttributesByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUsersWithoutVoWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new uf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("attrsNames[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersWithoutVoWithAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getSpecificUsersByUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSpecificUsersByUser"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getSponsorsForMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSponsorsForMember/member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getSponsorsForMemberByVoAndLogin",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");var a=new uf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("extSourceName",t)),null!=n&&(a=a.set("extLogin",n)),i&&i.forEach(function(e){a=a.append("attrNames[]",e)});var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSponsorsForMember/vo"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getUserByExtSourceNameAndExtLogin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("extLogin",e)),null!=t&&(r=r.set("extSourceName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserByExtSourceNameAndExtLogin"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getUserById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserExtSourceById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("userExtSource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourceById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserExtSources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserExtSourcesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");var i=new uf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourcesByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUsersByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");var i=new uf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsersByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUsersBySpecificUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("specificUser",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsersBySpecificUser"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosWhereUserIsAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getVosWhereUserIsAdmin"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosWhereUserIsMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getVosWhereUserIsMember"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"isLoginAvailable",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("loginNamespace",e)),null!=t&&(r=r.set("login",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/isLoginAvailable"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"loginExist",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("namespace",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/loginExist"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeSpecificUserOwner",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("specificUser",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/removeSpecificUserOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeUserExtSource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("userExtSource",t)),null!=n&&(o=o.set("force",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/removeUserExtSource"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"requestPreferredEmailChange",value:function(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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.");var u=new uf({encoder:this.encoder});null!=e&&(u=u.set("user",e)),null!=t&&(u=u.set("email",t)),null!=n&&(u=u.set("lang",n)),null!=i&&(u=u.set("linkPath",i)),null!=r&&(u=u.set("customUrl",r)),null!=o&&(u=u.set("idpFilter",o));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/requestPreferredEmailChange"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:s})}},{key:"reservePasswordForLogin",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==n)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("login",e)),null!=t&&(o=o.set("namespace",t)),null!=n&&(o=o.set("password",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reservePassword/login"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"reservePasswordForUser",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==n)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("namespace",t)),null!=n&&(o=o.set("password",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reservePassword/user"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"reserveRandomPassword",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("namespace",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reserveRandomPassword"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"updateUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/updateUser"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"validatePasswordForLogin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("login",e)),null!=t&&(r=r.set("namespace",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePassword/login"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"validatePasswordForUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("namespace",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePassword/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"validatePreferredEmailChangeWithToken",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("token",e)),null!=t&&(r=r.set("u",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePreferredEmailChange"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}}]),e}()).\u0275fac=function(e){return new(e||Mf)(Ei(Df),Ei(Gf,8),Ei(Jf,8))},Mf.\u0275prov=Oe({token:Mf,factory:Mf.\u0275fac,providedIn:"root"}),Mf),op=((wf=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new rf,this.configuration=new Jf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Xf}return w(e,[{key:"getAppsConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getAppsConfig"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getGuiConfiguration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getGuiConfiguration"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPerunRPCVersion",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPerunStatistics",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunStatistics"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPerunStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunStatus"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPerunSystemTimeInMillis",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunSystemTimeInMillis"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}}]),e}()).\u0275fac=function(e){return new(e||wf)(Ei(Df),Ei(Gf,8),Ei(Jf,8))},wf.\u0275prov=Oe({token:wf,factory:wf.\u0275fac,providedIn:"root"}),wf),ap=((bf=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new rf,this.configuration=new Jf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Xf}return w(e,[{key:"addSponsorRoleToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addSponsorRole/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"addSponsorRoleToUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addSponsorRole/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"addVoAdminGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"addVoAdminUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"createVoWithName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("name",e)),null!=t&&(r=r.set("shortName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/createVo/withName"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"createVoWithVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/createVo/withVo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"deleteVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("force",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/deleteVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"findCandidates",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("id",e)),null!=t&&(o=o.set("searchString",t)),null!=n&&(o=o.set("maxNumOfResults",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/findCandidates"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"findCandidatesForGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("searchString",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/findCandidates/forGroup"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getAllVos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAllVos"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getCompleteCandidatesForGroup",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),t&&t.forEach(function(e){o=o.append("attrNames[]",e)}),null!=n&&(o=o.set("searchString",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getCompleteCandidates/forGroup"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getCompleteCandidatesForVo",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),t&&t.forEach(function(e){o=o.append("attrNames[]",e)}),null!=n&&(o=o.set("searchString",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getCompleteCandidates/forVo"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMyVos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVos"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getRichAdminsForVo",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");var s=new uf({encoder:this.encoder});null!=e&&(s=s.set("vo",e)),null!=t&&(s=s.set("role",t)),n&&n.forEach(function(e){s=s.append("specificAttributes",e)}),null!=i&&(s=s.set("allUserAttributes",i)),null!=r&&(s=s.set("onlyDirectAdmins",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getRichAdmins"),{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"getVoAdminGroups",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("role",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAdminGroups"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getVoAdminUsers",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");var o=new uf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("role",t)),null!=n&&(o=o.set("onlyDirectAdmins",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAdmins"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getVoBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBanById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoBanForMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBanForMember"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoBansForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBansForVo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getVoById.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoByShortName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new uf({encoder:this.encoder});null!=e&&(i=i.set("shortName",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoByShortName"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoMembersCountsByStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoMembersCountsByStatus"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");var i=new uf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVosByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVosCount"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"removeSponsorRoleFromGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeSponsorRole/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeSponsorRoleFromUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeSponsorRole/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeVoAdminGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeVoAdminUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new uf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeVoBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeBan"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"removeVoBanForMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");var i=new uf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeBanForMember"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"setVoBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/setBan"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/updateVo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||bf)(Ei(Df),Ei(Gf,8),Ei(Jf,8))},bf.\u0275prov=Oe({token:bf,factory:bf.\u0275fac,providedIn:"root"}),bf);!function(e){e.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},e.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(zf||(zf={})),function(e){e.FormatEnum={DOT:"DOT",TGF:"TGF"}}(Rf||(Rf={})),function(e){e.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(Of||(Of={})),function(e){e.TypeEnum={Technical:"technical",Administrative:"administrative"}}(xf||(xf={}));var sp=function(e){return e.PERUNADMIN="PERUNADMIN",e.PERUNOBSERVER="PERUNOBSERVER",e.VOADMIN="VOADMIN",e.GROUPADMIN="GROUPADMIN",e.SELF="SELF",e.FACILITYADMIN="FACILITYADMIN",e.FACILITIYOBSERVER="FACILITYOBSERVER",e.RESOURCEADMIN="RESOURCEADMIN",e.RESOURCESELFSERVICE="RESOURCESELFSERVICE",e.REGISTRAR="REGISTRAR",e.ENGINE="ENGINE",e.RPC="RPC",e.NOTIFICATIONS="NOTIFICATIONS",e.SERVICEUSER="SERVICEUSER",e.SPONSOR="SPONSOR",e.VOOBSERVER="VOOBSERVER",e.TOPGROUPCREATOR="TOPGROUPCREATOR",e.SECURITYADMIN="SECURITYADMIN",e.CABINETADMIN="CABINETADMIN",e.UNKNOWNROLENAME="UNKNOWNROLENAME",e}({}),up=function(){var e=function(){function e(t){_(this,e),this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}return w(e,[{key:"init",value:function(e){this.principal=e,this.initData(e)}},{key:"setPerunPolicies",value:function(e){this.perunPolicies=e}},{key:"getPerunPolicies",value:function(){return this.perunPolicies}},{key:"isAuthorized",value:function(e,t){if(null===this.principal.roles)return!1;var n,i=[],r=a(this.fetchPolicyWithAllIncludedPolicies(e));try{for(r.s();!(n=r.n()).done;){var o=n.value;i=i.concat(o.perunRoles)}}catch(u){r.e(u)}finally{r.f()}var s=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(i,s)}},{key:"resolveAuthorization",value:function(e,t){var n,i=a(e);try{for(i.s();!(n=i.n()).done;){for(var r=n.value,o=!0,s=0,u=Object.keys(r);s=2&&(n=!0),function(i){return i.lift(new Lp(e,t,n))}}var Lp=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new zp(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),zp=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return w(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(O);function Rp(e){return function(t){var n=new Op(e),i=t.lift(n);return n.caught=i}}var Op=function(){function e(t){_(this,e),this.selector=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new xp(e,this.selector,this.caught))}}]),e}(),xp=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return w(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void h(y(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var i=new K(this,void 0,void 0);this.add(i);var r=Z(this,t,void 0,void 0,i);r!==i&&this.add(r)}}}]),n}($);function Dp(e){return function(t){return 0===e?yp():t.lift(new Pp(e))}}var Pp=function(){function e(t){if(_(this,e),this.total=t,this.total<0)throw new Ap}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Np(e,this.total))}}]),e}(),Np=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return w(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:Hp;return function(t){return t.lift(new Bp(e))}}var Bp=function(){function e(t){_(this,e),this.errorFactory=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Fp(e,this.errorFactory))}}]),e}(),Fp=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return w(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(O);function Hp(){return new gp}function qp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new jp(e))}}var jp=function(){function e(t){_(this,e),this.defaultValue=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Yp(e,this.defaultValue))}}]),e}(),Yp=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return w(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(O);function Wp(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?Zd(function(t,n){return e(t,n,i)}):P,kp(1),n?qp(t):Ip(function(){return new gp}))}}function Up(){}function Kp(e,t,n){return function(i){return i.lift(new Vp(e,t,n))}}var Vp=function(){function e(t,n,i){_(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Xp(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Xp=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this,e))._tapNext=Up,a._tapError=Up,a._tapComplete=Up,a._tapError=r||Up,a._tapComplete=o||Up,b(i)?(a._context=m(a),a._tapNext=i):i&&(a._context=i,a._tapNext=i.next||Up,a._tapError=i.error||Up,a._tapComplete=i.complete||Up),a}return w(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(O);function Gp(e){return function(t){return t.lift(new Jp(e))}}var Jp=function(){function e(t){_(this,e),this.callback=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Qp(e,this.callback))}}]),e}(),Qp=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).add(new L(i)),r}return n}(O),Zp=function e(t,n){_(this,e),this.id=t,this.url=n},$p=function(e){d(n,e);var t=p(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return w(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Zp),eg=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return w(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Zp),tg=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e,i)).reason=r,o}return w(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Zp),ng=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e,i)).error=r,o}return w(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Zp),ig=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return w(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Zp),rg=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return w(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Zp),og=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a){var s;return _(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return w(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Zp),ag=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return w(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Zp),sg=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return w(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Zp),ug=function(){function e(t){_(this,e),this.route=t}return w(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),cg=function(){function e(t){_(this,e),this.route=t}return w(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),lg=function(){function e(t){_(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),hg=function(){function e(t){_(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),dg=function(){function e(t){_(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fg=function(){function e(t){_(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),pg=function(){function e(t,n,i){_(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return w(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),gg=function(){function e(t){_(this,e),this.params=t||{}}return w(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function mg(e){return new gg(e)}function vg(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function yg(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function Ag(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function kg(e){return us(e)?e:as(e)?re(Promise.resolve(e)):Jd(e)}var Tg={exact:function e(t,n,i){if(!Dg(t.segments,n.segments))return!1;if(!zg(t.segments,n.segments,i))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r],i))return!1}return!0},subset:Eg},Sg={exact:function(e,t){return _g(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return bg(e[n],t[n])})},ignored:function(){return!0}};function Cg(e,t,n){return Tg[n.paths](e.root,t.root,n.matrixParams)&&Sg[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Eg(e,t,n){return Lg(e,t,t.segments,n)}function Lg(e,t,n,i){if(e.segments.length>n.length){var r=e.segments.slice(0,n.length);return!!Dg(r,n)&&!t.hasChildren()&&!!zg(r,n,i)}if(e.segments.length===n.length){if(!Dg(e.segments,n))return!1;if(!zg(e.segments,n,i))return!1;for(var o in t.children){if(!e.children[o])return!1;if(!Eg(e.children[o],t.children[o],i))return!1}return!0}var a=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!Dg(e.segments,a)&&!!zg(e.segments,a,i)&&!!e.children.primary&&Lg(e.children.primary,t,s,i)}function zg(e,t,n){return t.every(function(t,i){return Sg[n](e[i].parameters,t.parameters)})}var Rg=function(){function e(t,n,i){_(this,e),this.root=t,this.queryParams=n,this.fragment=i}return w(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=mg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Ig.serialize(this)}}]),e}(),Og=function(){function e(t,n){var i=this;_(this,e),this.segments=t,this.children=n,this.parent=null,Ag(n,function(e,t){return e.parent=i})}return w(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Bg(this)}}]),e}(),xg=function(){function e(t,n){_(this,e),this.path=t,this.parameters=n}return w(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=mg(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return Ug(this)}}]),e}();function Dg(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var Pg=function e(){_(this,e)},Ng=function(){function e(){_(this,e)}return w(e,[{key:"parse",value:function(e){var t=new Jg(e);return new Rg(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,i;return"/".concat(Fg(e.root,!0)).concat((n=e.queryParams,i=Object.keys(n).map(function(e){var t=n[e];return Array.isArray(t)?t.map(function(t){return"".concat(qg(e),"=").concat(qg(t))}).join("&"):"".concat(qg(e),"=").concat(qg(t))}).filter(function(e){return!!e}),i.length?"?".concat(i.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),Ig=new Ng;function Bg(e){return e.segments.map(function(e){return Ug(e)}).join("/")}function Fg(e,t){if(!e.hasChildren())return Bg(e);if(t){var n=e.children.primary?Fg(e.children.primary,!1):"",i=[];return Ag(e.children,function(e,t){"primary"!==t&&i.push("".concat(t,":").concat(Fg(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return Ag(e.children,function(e,i){"primary"===i&&(n=n.concat(t(e,i)))}),Ag(e.children,function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return"primary"===n?[Fg(e.children.primary,!1)]:["".concat(n,":").concat(Fg(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(Bg(e),"/").concat(r[0]):"".concat(Bg(e),"/(").concat(r.join("//"),")")}function Hg(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qg(e){return Hg(e).replace(/%3B/gi,";")}function jg(e){return Hg(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Yg(e){return decodeURIComponent(e)}function Wg(e){return Yg(e.replace(/\+/g,"%20"))}function Ug(e){return"".concat(jg(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(jg(e),"=").concat(jg(t[e]))}).join("")));var t}var Kg=/^[^\/()?;=#]+/;function Vg(e){var t=e.match(Kg);return t?t[0]:""}var Xg=/^[^=?&#]+/,Gg=/^[^?&#]+/,Jg=function(){function e(t){_(this,e),this.url=t,this.remaining=t}return w(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Og([],{}):new Og([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Og(e,t)),n}},{key:"parseSegment",value:function(){var e=Vg(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new xg(Yg(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Vg(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Vg(this.remaining);i&&(n=i,this.capture(n))}e[Yg(t)]=Yg(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Xg);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Gg);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=Wg(t),o=Wg(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Vg(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new Og([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Qg=function(){function e(t){_(this,e),this._root=t}return w(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Zg(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=Zg(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=$g(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return $g(e,this._root).map(function(e){return e.value})}}]),e}();function Zg(e,t){if(e===t.value)return t;var n,i=a(t.children);try{for(i.s();!(n=i.n()).done;){var r=Zg(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function $g(e,t){if(e===t.value)return[t];var n,i=a(t.children);try{for(i.s();!(n=i.n()).done;){var r=$g(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var em=function(){function e(t,n){_(this,e),this.value=t,this.children=n}return w(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function tm(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var nm=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).snapshot=i,um(m(r),e),r}return w(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Qg);function im(e,t){var n=function(e,t){var n=new am([],{},{},"",{},"primary",t,null,e.root,-1,{});return new sm("",new em(n,[]))}(e,t),i=new lp([new xg("",{})]),r=new lp({}),o=new lp({}),a=new lp({}),s=new lp(""),u=new rm(i,r,a,s,o,"primary",t,n.root);return u.snapshot=n.root,new nm(new em(u,[]),n)}var rm=function(){function e(t,n,i,r,o,a,s,u){_(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return w(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(ee(function(e){return mg(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ee(function(e){return mg(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function om(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var am=function(){function e(t,n,i,r,o,a,s,u,c,l,h){_(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=l,this._resolve=h}return w(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=mg(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=mg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),sm=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,i)).url=e,um(m(r),i),r}return w(n,[{key:"toString",value:function(){return cm(this._root)}}]),n}(Qg);function um(e,t){t.value._routerState=e,t.children.forEach(function(t){return um(e,t)})}function cm(e){var t=e.children.length>0?" { ".concat(e.children.map(cm).join(", ")," } "):"";return"".concat(e.value).concat(t)}function lm(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,_g(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),_g(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&pm(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(gm);if(r&&r!==Mg(i))throw new Error("{outlets:{}} has to be the last command")}return w(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),_m=function e(t,n,i){_(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function bm(e,t,n){if(e||(e=new Og([],{})),0===e.segments.length&&e.hasChildren())return wm(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=e.segments[r],s=n[i];if(gm(s))break;var u="".concat(s),c=i0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!Tm(u,c,a))return o;i+=2}else{if(!Tm(u,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},Hm):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||yg)(n,e,t);if(!r)return Object.assign({},Hm);var o={};Ag(r.posParams,function(e,t){o[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function jm(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Ym(e,t,n)&&"primary"!==Bm(n)})}(e,n,i)){var o=new Og(t,function(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,s=a(n);try{for(s.s();!(o=s.n()).done;){var u=o.value;if(""===u.path&&"primary"!==Bm(u)){var c=new Og([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,r[Bm(u)]=c}}}catch(l){s.e(l)}finally{s.f()}return r}(e,t,i,new Og(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Ym(e,t,n)})}(e,n,i)){var s=new Og(e.segments,function(e,t,n,i,r,o){var s,u={},c=a(i);try{for(c.s();!(s=c.n()).done;){var l=s.value;if(Ym(e,n,l)&&!r[Bm(l)]){var h=new Og([],{});h._sourceSegment=e,h._segmentIndexShift="legacy"===o?e.segments.length:t.length,u[Bm(l)]=h}}}catch(d){c.e(d)}finally{c.f()}return Object.assign(Object.assign({},r),u)}(e,t,n,i,e.children,r));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}var u=new Og(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}function Ym(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Wm(e,t,n,i){return!!(Bm(e)===i||"primary"!==i&&Ym(t,n,e))&&("**"===e.path||qm(t,e,n).matched)}function Um(e,t,n){return 0===t.length&&!e.children[n]}var Km=function e(t){_(this,e),this.segmentGroup=t||null},Vm=function e(t){_(this,e),this.urlTree=t};function Xm(e){return new I(function(t){return t.error(new Km(e))})}function Gm(e){return new I(function(t){return t.error(new Vm(e))})}function Jm(e){return new I(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var Qm=function(){function e(t,n,i,r,o){_(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Ju)}return w(e,[{key:"apply",value:function(){var e=this,t=jm(this.urlTree.root,[],[],this.config).segmentGroup,n=new Og(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe(ee(function(t){return e.createUrlTree(Zm(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(Rp(function(t){if(t instanceof Vm)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof Km)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(ee(function(n){return t.createUrlTree(Zm(n),e.queryParams,e.fragment)})).pipe(Rp(function(e){if(e instanceof Km)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new Og([],{primary:e}):e;return new Rg(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(ee(function(e){return new Og([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],o=0,a=Object.keys(n.children);o=2;return function(i){return i.pipe(e?Zd(function(t,n){return e(t,n,i)}):P,Dp(1),n?qp(t):Ip(function(){return new gp}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,o){var a=this;return re(n).pipe(Qd(function(s){return a.expandSegmentAgainstRoute(e,t,n,s,i,r,o).pipe(Rp(function(e){if(e instanceof Km)return Jd(null);throw e}))}),Wp(function(e){return!!e}),Rp(function(e,n){if(e instanceof gp||"EmptyError"===e.name){if(Um(t,i,r))return Jd(new Og([],{}));throw new Km(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return Wm(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):Xm(t):Xm(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Gm(o):this.lineralizeSegments(n,o).pipe(oe(function(n){var o=new Og(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=qm(t,i,r),u=s.matched,c=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!u)return Xm(t);var d=this.applyRedirectCommands(c,i.redirectTo,h);return i.redirectTo.startsWith("/")?Gm(d):this.lineralizeSegments(i,d).pipe(oe(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(l)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Jd(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(ee(function(e){return n._loadedConfig=e,new Og(i,{})})):Jd(new Og(i,{}));var a=qm(t,n,i),s=a.matched,u=a.consumedSegments,c=a.lastChild;if(!s)return Xm(t);var l=i.slice(c);return this.getChildConfig(e,n,i).pipe(oe(function(e){var i=e.module,a=e.routes,s=jm(t,u,l,a),c=s.segmentGroup,h=s.slicedSegments,d=new Og(c.segments,c.children);if(0===h.length&&d.hasChildren())return o.expandChildren(i,a,d).pipe(ee(function(e){return new Og(u,e)}));if(0===a.length&&0===h.length)return Jd(new Og(u,{}));var f=Bm(n)===r;return o.expandSegment(i,d,a,h,f?"primary":r,!0).pipe(ee(function(e){return new Og(u.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?Jd(new Em(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Jd(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(oe(function(n){return n?i.configLoader.load(e.injector,t).pipe(ee(function(e){return t._loadedConfig=e,e})):function(e){return new I(function(t){return t.error(vg("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):Jd(new Em([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;return r&&0!==r.length?Jd(r.map(function(i){var r,o=e.get(i);if(function(e){return e&&Lm(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!Lm(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return kg(r)})).pipe(Om(),Kp(function(e){if(zm(e)){var t=vg('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),ee(function(e){return!0===e})):Jd(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Jd(n);if(i.numberOfChildren>1||!i.children.primary)return Jm(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new Rg(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Ag(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return Ag(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new Og(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=a(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(s){r.e(s)}finally{r.f()}return e}}]),e}();function Zm(e){for(var t={},n=0,i=Object.keys(e.children);n0||o.hasChildren())&&(t[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new Og(e.segments.concat(t.segments),t.children)}return e}(new Og(e.segments,t))}var $m=function e(t){_(this,e),this.path=t,this.route=this.path[this.path.length-1]},ev=function e(t,n){_(this,e),this.component=t,this.route=n};function tv(e,t,n){var i=e._root;return iv(i,t?t._root:null,n,[i.value])}function nv(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function iv(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=tm(t);return e.children.forEach(function(e){!function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Dg(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Dg(e.url,t.url)||!_g(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hm(e,t)||!_g(e.queryParams,t.queryParams);case"paramsChange":default:return!hm(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new $m(i)):(o.data=a.data,o._resolvedData=a._resolvedData),iv(e,t,o.component?s?s.children:null:n,i,r),u&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new ev(s.outlet.component,a))}else a&&rv(t,s,r),r.canActivateChecks.push(new $m(i)),iv(e,null,o.component?s?s.children:null:n,i,r)}(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),Ag(o,function(e,t){return rv(e,n.getContext(t),r)}),r}function rv(e,t,n){var i=tm(e),r=e.value;Ag(i,function(e,i){rv(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new ev(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var ov=function e(){_(this,e)};function av(e){return new I(function(t){return t.error(e)})}var sv=function(){function e(t,n,i,r,o,a){_(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return w(e,[{key:"recognize",value:function(){var e=jm(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;var n=new am([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new em(n,t),r=new sm(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=om(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,o=Object.keys(t.children);i0?Mg(n).parameters:{};r=new am(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,hv(e),Bm(e),e.component,e,cv(t),lv(t)+n.length,dv(e))}else{var u=qm(t,e,n);if(!u.matched)return null;o=u.consumedSegments,a=n.slice(u.lastChild),r=new am(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,hv(e),Bm(e),e.component,e,cv(t),lv(t)+o.length,dv(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),l=jm(t,o,a,c.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),h=l.segmentGroup,d=l.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(c,h);return null===f?null:[new em(r,f)]}if(0===c.length&&0===d.length)return[new em(r,[])];var p=Bm(e)===i,g=this.processSegment(c,h,d,p?"primary":i);return null===g?null:[new em(r,g)]}}]),e}();function uv(e){var t,n=[],i=new Set,o=a(e);try{var s=function(){var e,o=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(o))return n.push(o),"continue";var a=n.find(function(e){return o.value.routeConfig===e.value.routeConfig});void 0!==a?((e=a.children).push.apply(e,r(o.children)),i.add(a)):n.push(o)};for(o.s();!(t=o.n()).done;)s()}catch(d){o.e(d)}finally{o.f()}var u,c=a(i);try{for(c.s();!(u=c.n()).done;){var l=u.value,h=uv(l.children);n.push(new em(l.value,h))}}catch(d){c.e(d)}finally{c.f()}return n.filter(function(e){return!i.has(e)})}function cv(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function lv(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function hv(e){return e.data||{}}function dv(e){return e.resolve||{}}function fv(e){return bp(function(t){var n=e(t);return n?re(n).pipe(ee(function(){return t})):Jd(t)})}var pv=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return n}(function(){function e(){_(this,e)}return w(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),gv=new hi("ROUTES"),mv=function(){function e(t,n,i,r){_(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return w(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe(ee(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new Em(wg(r.injector.get(gv,void 0,je.Self|je.Optional)).map(Im),r)}),Rp(function(e){throw t._loader$=void 0,e}));return t._loader$=new ge(i,function(){return new Y}).pipe(he()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?re(this.loader.load(e)):kg(e()).pipe(oe(function(e){return e instanceof Qu?Jd(e):re(t.compiler.compileModuleAsync(e))}))}}]),e}(),vv=function e(){_(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new yv,this.attachRef=null},yv=function(){function e(){_(this,e),this.contexts=new Map}return w(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new vv,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),_v=function(){function e(){_(this,e)}return w(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function bv(e){throw e}function wv(e,t,n){return t.parse("/")}function Mv(e,t){return Jd(null)}var Av={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kv={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Tv=function(){var e=function(){function e(t,n,i,r,o,a,s,u){var c=this;_(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Y,this.errorHandler=bv,this.malformedUriErrorHandler=wv,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Mv,afterPreactivation:Mv},this.urlHandlingStrategy=new _v,this.routeReuseStrategy=new pv,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(Ju),this.console=o.get($c);var l=o.get(dl);this.isNgZoneEnabled=l instanceof dl&&dl.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new Rg(new Og([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new mv(a,s,function(e){return c.triggerEvent(new ug(e))},function(e){return c.triggerEvent(new cg(e))}),this.routerState=im(this.currentUrlTree,this.rootComponentType),this.transitions=new lp({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()}return w(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Zd(function(e){return 0!==e.id}),ee(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),bp(function(e){var i,r,o,a=!1,s=!1;return Jd(e).pipe(Kp(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),bp(function(e){var i=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||i)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Jd(e).pipe(bp(function(e){var i=t.transitions.getValue();return n.next(new $p(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?vp:Promise.resolve(e)}),function(e,t,n,i){return bp(function(r){return function(e,t,n,i,r){return new Qm(e,t,n,i,r).apply()}(e,t,n,r.extractedUrl,i).pipe(ee(function(e){return Object.assign(Object.assign({},r),{urlAfterRedirects:e})}))})}(t.ngModule.injector,t.configLoader,t.urlSerializer,t.config),Kp(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,o){return oe(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new sv(e,t,n,i,r,o).recognize();return null===a?av(new ov):Jd(a)}catch(s){return av(s)}}(e,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,t.serializeUrl(a)),r,o).pipe(ee(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var a})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Kp(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var i=new ig(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(i&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var r=e.id,o=e.extractedUrl,a=e.source,s=e.restoredState,u=e.extras,c=new $p(r,t.serializeUrl(o),a,s);n.next(c);var l=im(o,t.rootComponentType).snapshot;return Jd(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:o,extras:Object.assign(Object.assign({},u),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),vp}),fv(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Kp(function(e){var n=new rg(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),ee(function(e){return Object.assign(Object.assign({},e),{guards:tv(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return oe(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Jd(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return re(e).pipe(oe(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Jd(o.map(function(o){var a,s=nv(o,t,r);if(function(e){return e&&Lm(e.canDeactivate)}(s))a=kg(s.canDeactivate(e,t,n,i));else{if(!Lm(s))throw new Error("Invalid CanDeactivate guard");a=kg(s(e,t,n,i))}return a.pipe(Wp())})).pipe(Om()):Jd(!0)}(e.component,e.route,n,t,i)}),Wp(function(e){return!0!==e},!0))}(s,i,r,e).pipe(oe(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return re(t).pipe(Qd(function(t){return mp(function(e,t){return null!==e&&t&&t(new lg(e)),Jd(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new dg(e)),Jd(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return _p(function(){return Jd(t.guards.map(function(r){var o,a=nv(r,t.node,n);if(function(e){return e&&Lm(e.canActivateChild)}(a))o=kg(a.canActivateChild(i,e));else{if(!Lm(a))throw new Error("Invalid CanActivateChild guard");o=kg(a(i,e))}return o.pipe(Wp())})).pipe(Om())})});return Jd(r).pipe(Om())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?Jd(i.map(function(i){return _p(function(){var r,o=nv(i,t,n);if(function(e){return e&&Lm(e.canActivate)}(o))r=kg(o.canActivate(t,e));else{if(!Lm(o))throw new Error("Invalid CanActivate guard");r=kg(o(t,e))}return r.pipe(Wp())})})).pipe(Om()):Jd(!0)}(e,t.route,n))}),Wp(function(e){return!0!==e},!0))}(i,a,e,t):Jd(n)}),ee(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Kp(function(e){if(zm(e.guardsResult)){var n=vg('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new og(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),Zd(function(e){return!!e.guardsResult||(t.cancelNavigationTransition(e,""),!1)}),fv(function(e){if(e.guards.canActivateChecks.length)return Jd(e).pipe(Kp(function(e){var n=new ag(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),bp(function(e){var n,i,r=!1;return Jd(e).pipe((n=t.paramsInheritanceStrategy,i=t.ngModule.injector,oe(function(e){var t=e.targetSnapshot,r=e.guards.canActivateChecks;if(!r.length)return Jd(e);var o=0;return re(r).pipe(Qd(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return Jd({});var o={};return re(r).pipe(oe(function(r){return function(e,t,n,i){var r=nv(e,t,i);return kg(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Kp(function(e){o[r]=e}))}),Dp(1),oe(function(){return Object.keys(o).length===r.length?Jd(o):vp}))}(e._resolve,e,t,i).pipe(ee(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),om(e,n).resolve),null}))}(e.route,t,n,i)}),Kp(function(){return o++}),Dp(1),oe(function(t){return o===r.length?Jd(e):vp}))})),Kp({next:function(){return r=!0},complete:function(){r||t.cancelNavigationTransition(e,"At least one route resolver didn't emit any value.")}}))}),Kp(function(e){var n=new sg(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),fv(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),ee(function(e){var n=function(e,t,n){var i=dm(e,t._root,n?n._root:void 0);return new nm(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Kp(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,e),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},ee(function(e){return new Sm(r,e.targetRouterState,e.currentRouterState,o).activate(i),e})),Kp({next:function(){a=!0},complete:function(){a=!0}}),Gp(function(){a||s||t.cancelNavigationTransition(e,"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId)),t.currentNavigation=null}),Rp(function(i){if(s=!0,(u=i)&&u.ngNavigationCancelingError){var r=zm(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new tg(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(o),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new ng(e.id,t.serializeUrl(e.extractedUrl),i);n.next(a);try{e.resolve(t.errorHandler(i))}catch(c){e.reject(c)}}var u;return vp}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){Dm(e),this.config=e.map(Im),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,o=t.fragment,a=t.queryParamsHandling,s=t.preserveFragment,u=n||this.routerState.root,c=s?this.currentUrlTree.fragment:o,l=null;switch(a){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(e,t,n,i,o){if(0===n.length)return mm(t.root,t.root,t,i,o);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ym(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return Ag(i.outlets,function(e,t){a[t]="string"==typeof e?e.split("/"):e}),[].concat(r(e),[{outlets:a}])}if(i.segmentPath)return[].concat(r(e),[i.segmentPath])}return"string"!=typeof i?[].concat(r(e),[i]):0===o?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(r(e),[i])},[]);return new ym(n,t,i)}(n);if(a.toRoot())return mm(t.root,new Og([],{}),t,i,o);var s=function(e,t,n){if(e.isAbsolute)return new _m(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new _m(i,i===t.root,0)}var r=pm(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new _m(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(a,t,e),u=s.processChildren?wm(s.segmentGroup,s.index,a.commands):bm(s.segmentGroup,s.index,a.commands);return mm(s.segmentGroup,u,t,i,o)}(u,this.currentUrlTree,e,l,null!=c?c:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=zm(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree),r=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||t.skipLocationChange||t.replaceUrl)&&(r=this.location.getState()),this.scheduleNavigation(i,"imperative",r,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};_(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return w(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof $p?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof eg&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof pg&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new pg(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Tv),Ei(fd),Ei(void 0))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Nv=new hi("ROUTER_CONFIGURATION"),Iv=new hi("ROUTER_FORROOT_GUARD"),Bv=[ah,{provide:Pg,useClass:Ng},{provide:Tv,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,l=new Tv(null,e,t,n,i,r,o,wg(a));return u&&(l.urlHandlingStrategy=u),c&&(l.routeReuseStrategy=c),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,l),s.enableTracing&&l.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),l},deps:[Pg,yv,ah,za,Pl,cl,gv,Nv,[function(){return function e(){_(this,e)}}(),new Pi],[function(){return function e(){_(this,e)}}(),new Pi]]},yv,{provide:rm,useFactory:function(e){return e.routerState.root},deps:[Tv]},{provide:Pl,useClass:Bl},Dv,xv,Ov,{provide:Nv,useValue:{enableTracing:!1}}];function Fv(){return new Cl("Router",Tv)}var Hv,qv=((Hv=function(){function e(t,n){_(this,e)}return w(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Bv,Uv(t),{provide:Iv,useFactory:Wv,deps:[[Tv,new Pi,new Ni]]},{provide:Nv,useValue:n||{}},{provide:th,useFactory:Yv,deps:[Kl,[new Di(ih),new Pi],Nv]},{provide:Pv,useFactory:jv,deps:[Tv,fd,Nv]},{provide:Rv,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:xv},{provide:Cl,multi:!0,useFactory:Fv},[Kv,{provide:Uc,multi:!0,useFactory:Vv,deps:[Kv]},{provide:Gv,useFactory:Xv,deps:[Kv]},{provide:Zc,multi:!0,useExisting:Gv}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Uv(t)]}}}]),e}()).\u0275fac=function(e){return new(e||Hv)(Ei(Iv,8),Ei(Tv,8))},Hv.\u0275mod=ft({type:Hv}),Hv.\u0275inj=xe({}),Hv);function jv(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Pv(e,t,n)}function Yv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new oh(e,t):new rh(e,t)}function Wv(e){return"guarded"}function Uv(e){return[{provide:di,multi:!0,useValue:e},{provide:gv,multi:!0,useValue:e}]}var Kv=function(){var e=function(){function e(t){_(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Y}return w(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(Xl,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(Tv),r=e.injector.get(Nv);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?Jd(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Nv),n=this.injector.get(Dv),i=this.injector.get(Pv),r=this.injector.get(Tv),o=this.injector.get(xl);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(za))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}();function Vv(e){return e.appInitializer.bind(e)}function Xv(e){return e.bootstrapListener.bind(e)}var Gv=new hi("Router Initializer");function Jv(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){d(n,e);var t=p(n);function n(e,i){return _(this,n),t.call(this)}return w(n,[{key:"schedule",value:function(e){return this}}]),n}(L)),Zv=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_(this,e),this.SchedulerAction=t,this.now=n}return w(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),$v=function(e){d(n,e);var t=p(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zv.now;return _(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==m(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return w(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):h(y(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(Zv),ey=new $v(Qv);function ty(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ey;return function(n){return n.lift(new iy(e,t))}}var ny,iy=function(){function e(t,n){_(this,e),this.dueTime=t,this.scheduler=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new ry(e,this.dueTime,this.scheduler))}}]),e}(),ry=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return w(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(oy,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(O);function oy(e){e.debouncedNext()}function ay(e){return null!=e&&"false"!="".concat(e)}function sy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return uy(e)?Number(e):t}function uy(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function cy(e){return Array.isArray(e)?e:[e]}function ly(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function hy(e){return e instanceof mu?e.nativeElement:e}try{ny="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Nj){ny=!1}var dy,fy,py,gy,my,vy=function(){var e=function e(t){_(this,e),this._platformId=t,this.isBrowser=this._platformId?hd(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&&!ny)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return e.\u0275fac=function(t){return new(t||e)(Ei(Qc))},e.\u0275prov=Oe({factory:function(){return new e(Ei(Qc))},token:e,providedIn:"root"}),e}(),yy=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({}),e}(),_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 by(){if(dy)return dy;if("object"!=typeof document||!document)return dy=new Set(_y);var e=document.createElement("input");return dy=new Set(_y.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function wy(e){return function(){if(null==fy&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return fy=!0}}))}finally{fy=fy||!1}return fy}()?e:!!e.capture}function My(){if(null==gy){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return gy=!1;if("scrollBehavior"in document.documentElement.style)gy=!0;else{var e=Element.prototype.scrollTo;gy=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return gy}function Ay(){if("object"!=typeof document||!document)return 0;if(null==py){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),py=0,0===e.scrollLeft&&(e.scrollLeft=1,py=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return py}function ky(e){if(function(){if(null==my){var e="undefined"!=typeof document?document.head:null;my=!(!e||!e.createShadowRoot&&!e.attachShadow)}return my}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Ty(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}var Sy=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Cy=function(){var e=function(){function e(t){_(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return w(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=hy(e);return new I(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new Y,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Sy))},e.\u0275prov=Oe({factory:function(){return new e(Ei(Sy))},token:e,providedIn:"root"}),e}(),Ey=function(){var e=function(){function e(t,n,i){_(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new Sc,this._disabled=!1,this._currentSubscription=null}return w(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=ay(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=sy(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(ty(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(Cy),Ja(mu),Ja(dl))},e.\u0275dir=gt({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),Ly=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[Sy]}),e}();function zy(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var Ry=0,Oy=new Map,xy=null,Dy=function(){var e=function(){function e(t){_(this,e),this._document=t}return w(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=Py(t,n);"string"!=typeof t?(Ny(t),Oy.set(i,{messageElement:t,referenceCount:0})):Oy.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=Py(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=Oy.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}xy&&0===xy.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return w(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Kp(function(t){return e._pressedLetters.push(t)}),ty(t),Zd(function(){return e._pressedLetters.length>0}),ee(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Jv(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Ec?this._items.toArray():this._items}}]),e}(),By=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),h(y(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(Iy),Fy=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._origin="program",e}return w(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){h(y(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(Iy),Hy=function(){var e=function(){function e(t){_(this,e),this._platform=t}return w(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(Nj){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===jy(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=jy(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||qy(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(vy))},e.\u0275prov=Oe({factory:function(){return new e(Ei(vy))},token:e,providedIn:"root"}),e}();function qy(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function jy(e){if(!qy(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var Yy=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return w(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.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)}},{key:"focusInitialElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusInitialElement(e))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusFirstTabbableElement(e))})})}},{key:"focusLastTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusLastTabbableElement(e))})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(kp(1)).subscribe(e)}}]),e}(),Wy=function(){var e=function(){function e(t,n,i){_(this,e),this._checker=t,this._ngZone=n,this._document=i}return w(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Yy(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Hy),Ei(dl),Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(Hy),Ei(dl),Ei(Ul))},token:e,providedIn:"root"}),e}();"undefined"!=typeof Element&∈var Uy=new hi("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Ky=new hi("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Vy=function(){var e=function(){function e(t,n,i,r){_(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return w(e,[{key:"announce",value:function(e){for(var n,i,r,o=this,a=this._defaultOptions,s=arguments.length,u=new Array(s>1?s-1:0),c=1;c1&&void 0!==arguments[1]&&arguments[1],n=hy(e);if(!this._platform.isBrowser||1!==n.nodeType)return Jd(null);var i=ky(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new Y,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=hy(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,n,i){var r=this,o=hy(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(function(e){var i=t(e,2),o=i[0],a=i[1];return r._originChanged(o,n,a)}):(this._setOriginForCurrentEventQueue(n),"function"==typeof o.focus&&o.focus(i))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=$y(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===$y(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,Qy),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,Qy)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,Qy),e.addEventListener("mousedown",t._documentMousedownListener,Qy),e.addEventListener("touchstart",t._documentTouchstartListener,Qy),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Qy),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Qy),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,Qy),i.removeEventListener("mousedown",this._documentMousedownListener,Qy),i.removeEventListener("touchstart",this._documentTouchstartListener,Qy),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(dl),Ei(vy),Ei(Ul,8),Ei(Jy,8))},e.\u0275prov=Oe({factory:function(){return new e(Ei(dl),Ei(vy),Ei(Ul,8),Ei(Jy,8))},token:e,providedIn:"root"}),e}();function $y(e){return e.composedPath?e.composedPath()[0]:e.target}var e_=function(){var e=function(){function e(t,n){_(this,e),this._platform=t,this._document=n}return w(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(vy),Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(vy),Ei(Ul))},token:e,providedIn:"root"}),e}(),t_=function(){var e=function e(t){_(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(Ei(e_))},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[yy,Ly]]}),e}(),n_=new hi("cdk-dir-doc",{providedIn:"root",factory:function(){return Li(Ul)}}),i_=function(){var e=function(){function e(t){if(_(this,e),this.value="ltr",this.change=new Sc,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return w(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(n_,8))},e.\u0275prov=Oe({factory:function(){return new e(Ei(n_,8))},token:e,providedIn:"root"}),e}(),r_=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({}),e}(),o_=new Mu("12.0.5"),a_=function e(){_(this,e)};function s_(e,t){return{type:7,name:e,definitions:t,options:{}}}function u_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function c_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:t}}function l_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function h_(e){return{type:6,styles:e,offset:null}}function d_(e,t,n){return{type:0,name:e,styles:t,options:n}}function f_(e){return{type:5,steps:e}}function p_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function g_(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function m_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function v_(e){Promise.resolve(null).then(e)}var y_=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return w(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;v_(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),__=function(){function e(t){var n=this;_(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?v_(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return w(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function b_(){return"undefined"!=typeof window&&void 0!==window.document}function w_(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function M_(e){switch(e.length){case 0:return new y_;case 1:return e[0];default:return new __(e)}}function A_(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,c=null;if(i.forEach(function(e){var n=e.offset,i=n==u,l=i&&c||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),s){case"!":s=r[n];break;case"*":s=o[n];break;default:s=t.normalizeStyleValue(n,i,s,a)}l[i]=s}),i||s.push(l),c=l,u=n}),a.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(a.join(l)))}return s}function k_(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&T_(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&T_(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&T_(n,"destroy",e))})}}function T_(e,t,n){var i=n.totalTime,r=S_(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function S_(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function C_(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function E_(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var L_=function(e,t){return!1},z_=function(e,t){return!1},R_=function(e,t,n){return[]},O_=w_();(O_||"undefined"!=typeof Element)&&(L_=b_()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},z_=function(){if(O_||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:z_}(),R_=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function K_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else U_(e,n);return n}function V_(e,t,n){return n?t+":"+n+";":""}function X_(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(lb(o,s)),"<"!=a[0]||"*"==o&&"*"==s||t.push(lb(s,o))}(e,r,i)}):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:mb(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return ab(n,e,t)}),options:mb(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=ab(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:mb(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return vb(W_(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=vb(0,0,"");return r.dynamic=!0,r.strValue=i,r}return vb((n=n||W_(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:h_({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=h_(s)}t.currentTime+=i.duration+i.delay;var u=this.visitStyle(o,t);u.isEmptyStep=a,n=u}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(gb(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a,s,u,c,l,h=t.collectedStyles[t.currentQuerySelector],d=h[i],f=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(d.startTime,'ms" and "').concat(d.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),f=!1),o=d.startTime),f&&(h[i]={startTime:o,endTime:r}),t.options&&(a=e[i],s=t.options,u=t.errors,c=s.params||{},(l=$_(a)).length&&l.forEach(function(e){c.hasOwnProperty(e)||u.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,u=0,c=e.steps.map(function(e){var i=n._makeStyleAst(e,t),c=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(gb(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(gb(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),l=0;return null!=c&&(r++,l=i.offset=c),s=s||l<0||l>1,a=a||l0&&r0?r==d?1:h*r:o[r],s=a*g;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:ab(this,Q_(e.animation),t),options:mb(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:mb(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:mb(e.options)}}},{key:"visitQuery",value:function(e,n){var i=n.currentQuerySelector,r=e.options||{};n.queryCount++,n.currentQuery=e;var o=t(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(hb,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),a=o[0],s=o[1];n.currentQuerySelector=i.length?i+" "+a:a,C_(n.collectedStyles,n.currentQuerySelector,{});var u=ab(this,Q_(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:11,selector:a,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:u,originalSelector:e.selector,options:mb(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:W_(e.timings,t.errors,!0);return{type:12,animation:ab(this,Q_(e.animation),t),timings:n,options:null}}}]),e}(),pb=function e(t){_(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function gb(e){return!Array.isArray(e)&&"object"==typeof e}function mb(e){var t;return e?(e=U_(e)).params&&(e.params=(t=e.params)?U_(t):null):e={},e}function vb(e,t,n){return{duration:e,delay:t,easing:n}}function yb(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var _b=function(){function e(){_(this,e),this._map=new Map}return w(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,r(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),bb=new RegExp(":enter","g"),wb=new RegExp(":leave","g");function Mb(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Ab).buildKeyframes(e,t,n,i,r,o,a,s,u,c)}var Ab=function(){function e(){_(this,e)}return w(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,u){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new _b;var l=new Tb(e,t,u,i,r,c,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),ab(this,n,l);var h=l.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,l.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[yb(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?j_(n.duration):null,o=null!=n.delay?j_(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),ab(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=kb);var a=j_(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return ab(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?j_(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),ab(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return W_(t.params?eb(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?j_(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=kb);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(u=s.currentTimeline),ab(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var c=u.currentTime;ab(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}]),e}(),kb={},Tb=function(){function e(t,n,i,r,o,a,s,u){_(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,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=u||new Sb(this._driver,n,0),s.push(this.currentTimeline)}return w(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=j_(i.duration)),null!=i.delay&&(r.delay=j_(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=eb(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=kb,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Cb(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,o,a){var s=[];if(i&&s.push(this.element),e.length>0){e=(e=e.replace(bb,"."+this._enterClassName)).replace(wb,"."+this._leaveClassName);var u=this._driver.query(this.element,e,1!=n);0!==n&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),s.push.apply(s,r(u))}return o||0!=s.length||a.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),s}}]),e}(),Sb=function(){function e(t,n,i,r){_(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return w(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]="*"}):K_(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=eb(a[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=K_(o,!0);Object.keys(s).forEach(function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)}),i||(s.offset=a/e.duration),r.push(s)});var o=t.size?tb(t.values()):[],a=n.size?tb(n.values()):[];if(i){var s=r[0],u=U_(s);s.offset=0,u.offset=1,r=[s,u]}return yb(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}]),e}(),Cb=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _(this,n),(u=t.call(this,e,i,s.delay)).element=i,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=c,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return w(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,u=K_(e[0],!1);u.offset=0,o.push(u);var c=K_(e[0],!1);c.offset=Eb(s),o.push(c);for(var l=e.length-1,h=1;h<=l;h++){var d=K_(e[h],!1);d.offset=Eb((n+d.offset*i)/a),o.push(d)}i=a,n=0,r="",e=o}return yb(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(Sb);function Eb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Lb,zb,Rb=function e(){_(this,e)},Ob=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"normalizePropertyName",value:function(e,t){return ib(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(xb[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(Rb),xb=(Lb="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),zb={},Lb.forEach(function(e){return zb[e]=!0}),zb);function Db(e,t,n,i,r,o,a,s,u,c,l,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:h,errors:d}}var Pb={},Nb=function(){function e(t,n,i){_(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return w(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,u,c){var l=[],h=this.ast.options&&this.ast.options.params||Pb,d=this.buildStyles(n,a&&a.params||Pb,l),f=s&&s.params||Pb,p=this.buildStyles(i,f,l),g=new Set,m=new Map,v=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),f)},b=c?[]:Mb(e,t,this.ast.animation,r,o,d,p,_,u,l),w=0;if(b.forEach(function(e){w=Math.max(e.duration+e.delay,w)}),l.length)return Db(t,this._triggerName,n,i,y,d,p,[],[],m,v,w,l);b.forEach(function(e){var n=e.element,i=C_(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=C_(v,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&g.add(n)});var M=tb(g.values());return Db(t,this._triggerName,n,i,y,d,p,b,M,m,v,w)}}]),e}(),Ib=function(){function e(t,n){_(this,e),this.styles=t,this.defaultParams=n}return w(e,[{key:"buildStyles",value:function(e,t){var n={},i=U_(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var o=r[e];o.length>1&&(o=eb(o,i,t)),n[e]=o})}}),n}}]),e}(),Bb=function(){function e(t,n){var i=this;_(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new Ib(e.style,e.options&&e.options.params||{})}),Fb(this.states,"true","1"),Fb(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new Nb(t,e,i.states))}),this.fallbackTransition=new Nb(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return w(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Fb(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Hb=new _b,qb=function(){function e(t,n,i){_(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return w(e,[{key:"register",value:function(e,t){var n=[],i=db(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=A_(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=Mb(this._driver,t,a,"ng-enter","ng-leave",{},{},r,Hb,o)).forEach(function(e){var t=C_(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,"*")})});var u=M_(n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(function(){return i.destroy(e)}),this.players.push(u),u}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=S_(t,"","","");return k_(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),jb=[],Yb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Wb={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ub=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var o=U_(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return w(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Kb=new Ub("void"),Vb=function(){function e(t,n,i){_(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,ew(n,this._hostClassName)}return w(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=C_(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var u=C_(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(ew(e,"ng-trigger"),ew(e,"ng-trigger-"+t),u[t]=Kb),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new Gb(this.id,t,e),s=this._engine.statesByElement.get(e);s||(ew(e,"ng-trigger"),ew(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],c=new Ub(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&c.absorbOptions(u.options),s[t]=c,u||(u=Kb),"void"===c.value||u.value!==c.value){var l=C_(this._engine.playersByElement,e,[]);l.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=o.matchTransition(u.value,c.value,e,c.params),d=!1;if(!h){if(!r)return;h=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:c,player:a,isFallbackTransition:d}),d||(ew(e,"ng-animate-queued"),a.onStart(function(){tw(e,"ng-animate-queued")})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),l.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ew(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),tw(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if(Jb(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return Jb(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return M_(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=Yb,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;C--)this._namespaceList[C].drainQueuedTransitions(t).forEach(function(e){var t=e.player,r=e.element;if(T.push(t),n.collectedEnterElements.length){var a=r.__ng_removed;if(a&&a.setForMove)return void t.destroy()}var h=!d||!n.driver.containsElement(d,r),f=A.get(r),p=g.get(r),m=n._buildInstruction(e,i,p,f,h);if(m.errors&&m.errors.length)S.push(m);else{if(h)return t.onStart(function(){return J_(r,m.fromStyles)}),t.onDestroy(function(){return G_(r,m.toStyles)}),void o.push(t);if(e.isFallbackTransition)return t.onStart(function(){return J_(r,m.fromStyles)}),t.onDestroy(function(){return G_(r,m.toStyles)}),void o.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(r,m.timelines),s.push({instruction:m,player:t,element:r}),m.queriedElements.forEach(function(e){return C_(u,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=l.get(t);i||l.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(S.length){var E=[];S.forEach(function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return E.push("- ".concat(e,"\n"))})}),T.forEach(function(e){return e.destroy()}),this.reportError(E)}var L=new Map,z=new Map;s.forEach(function(e){var t=e.element;i.has(t)&&(z.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,L))}),o.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){C_(L,t,[]).push(e),e.destroy()})});var R=v.filter(function(e){return rw(e,c,l)}),O=new Map;Zb(O,this.driver,_,l,"*").forEach(function(e){rw(e,c,l)&&R.push(e)});var x=new Map;p.forEach(function(e,t){Zb(x,n.driver,new Set(e),c,"!")}),R.forEach(function(e){var t=O.get(e),n=x.get(e);O.set(e,Object.assign(Object.assign({},t),n))});var D=[],P=[],N={};s.forEach(function(e){var t=e.element,r=e.player,s=e.instruction;if(i.has(t)){if(h.has(t))return r.onDestroy(function(){return G_(t,s.toStyles)}),r.disabled=!0,r.overrideTotalTime(s.totalTime),void o.push(r);var u=N;if(z.size>1){for(var c=t,l=[];c=c.parentNode;){var d=z.get(c);if(d){u=d;break}l.push(c)}l.forEach(function(e){return z.set(e,u)})}var f=n._buildAnimation(r.namespaceId,s,L,a,x,O);if(r.setRealPlayer(f),u===N)D.push(r);else{var p=n.playersByElement.get(u);p&&p.length&&(r.parentPlayer=M_(p)),o.push(r)}}else J_(t,s.fromStyles),r.onDestroy(function(){return G_(t,s.toStyles)}),P.push(r),h.has(t)&&o.push(r)}),P.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=M_(t);e.setRealPlayer(n)}}),o.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var I=0;I0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new y_(e.duration,e.delay)}}]),e}(),Gb=function(){function e(t,n,i){_(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new y_,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return w(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return k_(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){C_(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Jb(e){return e&&1===e.nodeType}function Qb(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Zb(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(Qb(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Wb,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return Qb(e,o[s++])}),a}function $b(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function ew(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function tw(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function nw(e,t,n){M_(n).onDone(function(){return e.processLeaveNode(t)})}function iw(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function aw(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=uw(t[0]),t.length>1&&(i=uw(t[t.length-1]))):t&&(n=uw(t)),n||i?new sw(e,n,i):null}var sw=function(){var e=function(){function e(t,n,i){_(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return w(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&G_(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(G_(this._element,this._initialStyles),this._endStyles&&(G_(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(J_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(J_(this._element,this._endStyles),this._endStyles=null),G_(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function uw(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),pw(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=mw(e,"").split(","),(i=fw(n,t))>=0&&(n.splice(i,1),gw(e,"",n.join(","))))}}]),e}();function hw(e,t,n){gw(e,"PlayState",n,dw(e,t))}function dw(e,t){var n=mw(e,"");return n.indexOf(",")>0?fw(n.split(","),t):fw([n],t)}function fw(e,t){for(var n=0;n=0)return n;return-1}function pw(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function gw(e,t,n,i){var r="animation"+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function mw(e,t){return e.style["animation"+t]||""}var vw=function(){function e(t,n,i,r,o,a,s,u){_(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return w(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new lw(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:sb(e.element,i))})}this.currentSnapshot=t}}]),e}(),yw=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=F_(i),r}return w(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),h(y(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),h(y(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,h(y(n.prototype),"destroy",this).call(this))}}]),n}(y_),_w=function(){function e(){_(this,e),this._count=0}return w(e,[{key:"validateStyleProperty",value:function(e){return P_(e)}},{key:"matchesElement",value:function(e,t){return N_(e,t)}},{key:"containsElement",value:function(e,t){return I_(e,t)}},{key:"query",value:function(e,t,n){return B_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return F_(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof vw}),s={};rb(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=ob(e,t,s));if(0==n)return new yw(e,u);var c="gen_css_kf_"+this._count++,l=this.buildKeyframeElement(e,c,t);(function(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(e).appendChild(l);var h=aw(e,t),d=new vw(e,t,c,n,i,r,u,h);return d.onDestroy(function(){var e;(e=l).parentNode.removeChild(e)}),d}}]),e}(),bw=function(){function e(t,n,i,r){_(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return w(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:sb(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),ww=function(){function e(){_(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Mw().toString()),this._cssKeyframesDriver=new _w}return w(e,[{key:"validateStyleProperty",value:function(e){return P_(e)}},{key:"matchesElement",value:function(e,t){return N_(e,t)}},{key:"containsElement",value:function(e,t){return I_(e,t)}},{key:"query",value:function(e,t,n){return B_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var u={},c=o.filter(function(e){return e instanceof bw});rb(n,i)&&c.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var l=aw(e,t=ob(e,t=t.map(function(e){return K_(e,!1)}),u));return new bw(e,t,s,l)}}]),e}();function Mw(){return b_()&&Element.prototype.animate||{}}var Aw=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ve.None,styles:[],data:{animation:[]}}),r}return w(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?l_(e):e;return Sw(this._renderer,null,t,"register",[n]),new kw(t,this._renderer)}}]),n}(a_);return e.\u0275fac=function(t){return new(t||e)(Ei(yu),Ei(Ul))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),kw=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return w(n,[{key:"create",value:function(e,t){return new Tw(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){_(this,e)}}()),Tw=function(){function e(t,n,i,r){_(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return w(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),Lw=function(e){d(i,e);var n=p(i);function i(e,t,r,o){var a;return _(this,i),(a=n.call(this,t,r,o)).factory=e,a.namespaceId=t,a}return w(i,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,n,i){var r,o,a=this;if("@"==n.charAt(0)){var s,u=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),c=n.substr(1),l="";return"@"!=c.charAt(0)&&(o=(r=c).indexOf("."),c=(s=t([r.substring(0,o),r.substr(o+1)],2))[0],l=s[1]),this.engine.listen(this.namespaceId,u,c,l,function(e){a.factory.scheduleListenerCallback(e._data||-1,i,e)})}return this.delegate.listen(e,n,i)}}]),i}(Ew),zw=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r){return _(this,n),t.call(this,e.body,i,r)}return w(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(ow);return e.\u0275fac=function(t){return new(t||e)(Ei(Ul),Ei(q_),Ei(Rb))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Rw=new hi("AnimationModuleType"),Ow=[{provide:a_,useClass:Aw},{provide:Rb,useFactory:function(){return new Ob}},{provide:ow,useClass:zw},{provide:yu,useFactory:function(e,t,n){return new Cw(e,t,n)},deps:[Dd,ow,dl]}],xw=[{provide:q_,useFactory:function(){return"function"==typeof Mw()?new ww:new _w}},{provide:Rw,useValue:"BrowserAnimations"}].concat(Ow),Dw=[{provide:q_,useClass:H_},{provide:Rw,useValue:"NoopAnimations"}].concat(Ow),Pw=function(){var e=function(){function e(){_(this,e)}return w(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?Dw:xw}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:xw,imports:[Gd]}),e}();function Nw(e,t){if(1&e&&ts(0,"mat-pseudo-checkbox",4),2&e){var n=ps();Qa("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function Iw(e,t){if(1&e&&($a(0,"span",5),qs(1),es()),2&e){var n=ps();yo(1),Ys("(",n.group.label,")")}}var Bw=["*"],Fw=function(){var e=function e(){_(this,e)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),Hw=function(){var e=function e(){_(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),qw=new Mu("12.0.5"),jw=new hi("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Yw=function(){var e=function(){function e(t,n,i){_(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return w(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Tl()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&qw.full!==o_.full&&console.warn("The Angular Material version ("+qw.full+") does not match the Angular CDK version ("+o_.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(e_),Ei(jw,8),Ei(Ul))},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[r_],r_]}),e}();function Ww(e){return function(e){d(n,e);var t=p(n);function n(){var e;_(this,n);for(var i=arguments.length,r=new Array(i),o=0;o1&&void 0!==arguments[1]?arguments[1]:0;return function(e){d(i,e);var n=p(i);function i(){var e;_(this,i);for(var r=arguments.length,o=new Array(r),a=0;a0?n:e}}]),e}(),$w=new hi("mat-date-formats");try{Jw="undefined"!=typeof Intl}catch(Nj){Jw=!1}var eM={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},tM=rM(31,function(e){return String(e+1)}),nM={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},iM=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function rM(e,t){for(var n=Array(e),i=0;i9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(n,e))}return this._stripDirectionalityCharacters(e.toDateString())}},{key:"addCalendarYears",value:function(e,t){return this.addCalendarMonths(e,12*t)}},{key:"addCalendarMonths",value:function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}},{key:"toIso8601",value:function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}},{key:"deserialize",value:function(e){if("string"==typeof e){if(!e)return null;if(iM.test(e)){var t=new Date(e);if(this.isValid(t))return t}}return h(y(n.prototype),"deserialize",this).call(this,e)}},{key:"isDateInstance",value:function(e){return e instanceof Date}},{key:"isValid",value:function(e){return!isNaN(e.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(e,t,n){var i=new Date;return i.setFullYear(e,t,n),i.setHours(0,0,0,0),i}},{key:"_2digit",value:function(e){return("00"+e).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(e){return e.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(e,t){var n=new Date;return n.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(n)}}]),n}(Zw);return e.\u0275fac=function(t){return new(t||e)(Ei(Qw,8),Ei(vy))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),aM=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({factory:function(){return new e},token:e,providedIn:"root"}),e}(),sM=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),e}();function uM(e,t,n){var i=e.nativeElement.classList;n?i.add(t):i.remove(t)}var cM=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[Yw],Yw]}),e}(),lM=function(){function e(t,n,i){_(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return w(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),hM={enterDuration:450,exitDuration:400},dM=wy({passive:!0}),fM=["mousedown","touchstart"],pM=["mouseup","mouseleave","touchend","touchcancel"],gM=function(){function e(t,n,i,r){_(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=hy(i))}return w(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},hM),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,u=t-r.top,c=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-a+"px",l.style.top=u-a+"px",l.style.height=2*a+"px",l.style.width=2*a+"px",null!=i.color&&(l.style.backgroundColor=i.color),l.style.transitionDuration="".concat(c,"ms"),this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";var h=new lM(this,l,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,i.persistent||e&&n._isPointerDown||h.fadeOut()},c),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},hM),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=hy(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(fM))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(pM),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=Xy(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,dM)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(fM.forEach(function(t){e._triggerElement.removeEventListener(t,e,dM)}),this._pointerUpEventsRegistered&&pM.forEach(function(t){e._triggerElement.removeEventListener(t,e,dM)}))}}]),e}(),mM=new hi("mat-ripple-global-options"),vM=function(){var e=function(){function e(t,n,i,r,o){_(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new gM(this,n,t,i)}return w(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(dl),Ja(vy),Ja(mM,8),Ja(Rw,8))},e.\u0275dir=gt({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Es("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),yM=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[Yw,yy],Yw]}),e}(),_M=function(){var e=function e(t){_(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(Ja(Rw,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&Es("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),bM=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[Yw]]}),e}(),wM=new hi("MAT_OPTION_PARENT_COMPONENT"),MM=Ww(function e(){_(this,e)}),AM=0,kM=function(){var e=function(e){d(n,e);var t=p(n);function n(e){var i,r;return _(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+AM++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(MM);return e.\u0275fac=function(t){return new(t||e)(Ja(wM,8))},e.\u0275dir=gt({type:e,inputs:{label:"label"},features:[Oa]}),e}(),TM=new hi("MatOptgroup"),SM=0,CM=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_(this,e),this.source=t,this.isUserInput=n},EM=function(){var e=function(){function e(t,n,i,r){_(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+SM++,this.onSelectionChange=new Sc,this._stateChanges=new Y}return w(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=ay(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||Jv(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new CM(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(ju),Ja(void 0),Ja(kM))},e.\u0275dir=gt({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),LM=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o){return _(this,n),t.call(this,e,i,r,o)}return n}(EM);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(ju),Ja(wM,8),Ja(TM,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&cs("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(Vs("id",t.id),Ua("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),Es("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[Oa],ngContentSelectors:Bw,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&&(ms(),Xa(0,Nw,1,2,"mat-pseudo-checkbox",0),$a(1,"span",1),vs(2),es(),Xa(3,Iw,2,1,"span",2),ts(4,"div",3)),2&e&&(Qa("ngIf",t.multiple),yo(3),Qa("ngIf",t.group&&t.group._inert),yo(1),Qa("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Xh,vM,_M],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function zM(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;an+i?Math.max(0,e-i+t):n}var OM,xM=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[yM,ld,Yw,bM]]}),e}(),DM=["mat-button",""],PM=["*"],NM=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],IM=Uw(Ww(Kw(function e(t){_(this,e),this._elementRef=t}))),BM=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;_(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var s,u=a(NM);try{for(u.s();!(s=u.n()).done;){var c=s.value;o._hasHostAttributes(c)&&o._getHostElement().classList.add(c)}}catch(l){u.e(l)}finally{u.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return w(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e}(),FM=((OM=function e(){_(this,e)}).\u0275fac=function(e){return new(e||OM)},OM.\u0275mod=ft({type:OM}),OM.\u0275inj=xe({imports:[[yM,Yw],Yw]}),OM);function HM(e,t,n,i){return b(n)&&(i=n,n=void 0),i?HM(e,t,n).pipe(ee(function(e){return S(e)?i.apply(void 0,r(e)):i(e)})):new I(function(i){qM(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function qM(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var u=e;e.addListener(t,n),o=function(){return u.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,l=e.length;c2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?h(y(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return h(y(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(Qv),YM=new(function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?h(y(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=XM(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return h(y(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(GM(t),e.scheduled=void 0)}}]),n}(Qv),QM=new(function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i=0}function oA(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function aA(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ey;return t=function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return rA(t)?i=Number(t)<1?1:Number(t):U(t)&&(n=t),U(n)||(n=ey),new I(function(t){var r=rA(e)?e:+e-n.now();return n.schedule(oA,r,{index:0,period:i,subscriber:t})})}(e,n)},function(e){return e.lift(new nA(t))}}function sA(e){return function(t){return t.lift(new uA(e))}}var uA=function(){function e(t){_(this,e),this.notifier=t}return w(e,[{key:"call",value:function(e,t){var n=new cA(e),i=Z(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),cA=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this,e)).seenValue=!1,i}return w(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}($),lA=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return w(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?h(y(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?h(y(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?h(y(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(Qv),hA=new(function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return n}($v))(lA);function dA(e,t){return new I(t?function(n){return t.schedule(fA,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function fA(e){var t=e.error;e.subscriber.error(t)}var pA=function(){var e=function(){function e(t,n,i){_(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return w(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Jd(this.value);case"E":return dA(this.error);case"C":return yp()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}(),gA=function(e){d(n,e);var t=p(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _(this,n),(r=t.call(this,e)).scheduler=i,r.delay=o,r}return w(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new mA(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(pA.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(pA.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(pA.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(O),mA=function e(t,n){_(this,e),this.notification=t,this.destination=n},vA=function(e){d(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return _(this,n),(e=t.call(this)).scheduler=o,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return w(n,[{key:"nextInfiniteTimeWindow",value:function(e){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),h(y(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this._events.push(new yA(this._getNow(),e)),this._trimBufferThenGetEvents(),h(y(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new H;if(this.isStopped||this.hasError?t=L.EMPTY:(this.observers.push(e),t=new q(this,e)),r&&e.add(e=new gA(e,r)),n)for(var a=0;at&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i}}]),n}(Y),yA=function e(t,n){_(this,e),this.time=t,this.value=n};function _A(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,o=e.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=e.refCount,u=e.scheduler,c=0,l=!1,h=!1;return function(e){c++,t&&!l||(l=!1,t=new vA(r,a,u),n=e.subscribe({next:function(e){t.next(e)},error:function(e){l=!0,t.error(e)},complete:function(){h=!0,n=void 0,t.complete()}}));var i=t.subscribe(this);this.add(function(){c--,i.unsubscribe(),n&&!h&&s&&0===c&&(n.unsubscribe(),n=void 0,t=void 0)})}}(i))}}function bA(e){return e&&"function"==typeof e.connect}var wA=function(){function e(){_(this,e)}return w(e,[{key:"applyChanges",value:function(e,t,n,i,r){e.forEachOperation(function(e,i,o){var a,s;if(null==e.previousIndex){var u=n(e,i,o);a=t.createEmbeddedView(u.templateRef,u.context,u.index),s=1}else null==o?(t.remove(i),s=3):(a=t.get(i),t.move(a,o),s=2);r&&r({context:null==a?void 0:a.context,operation:s,record:e})})}},{key:"detach",value:function(){}}]),e}(),MA=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Y,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return w(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new I(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(aA(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):Jd()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Zd(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=hy(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return HM(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(dl),Ei(vy),Ei(Ul,8))},e.\u0275prov=Oe({factory:function(){return new e(Ei(dl),Ei(vy),Ei(Ul,8))},token:e,providedIn:"root"}),e}(),SA=function(){var e=function(){function e(t,n,i,r){var o=this;_(this,e),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=i,this.dir=r,this._destroyed=new Y,this._elementScrolled=new I(function(e){return o.ngZone.runOutsideAngular(function(){return HM(o.elementRef.nativeElement,"scroll").pipe(sA(o._destroyed)).subscribe(e)})})}return w(e,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(e){var t=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=n?e.end:e.start),null==e.right&&(e.right=n?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),n&&0!=Ay()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Ay()?e.left=e.right:1==Ay()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}},{key:"_applyScrollToOptions",value:function(e){var t=this.elementRef.nativeElement;My()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}},{key:"measureScrollOffset",value:function(e){var t=this.elementRef.nativeElement;if("top"==e)return t.scrollTop;if("bottom"==e)return t.scrollHeight-t.clientHeight-t.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==e?e=n?"right":"left":"end"==e&&(e=n?"left":"right"),n&&2==Ay()?"left"==e?t.scrollWidth-t.clientWidth-t.scrollLeft:t.scrollLeft:n&&1==Ay()?"left"==e?t.scrollLeft+t.scrollWidth-t.clientWidth:-t.scrollLeft:"left"==e?t.scrollLeft:t.scrollWidth-t.clientWidth-t.scrollLeft}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(TA),Ja(dl),Ja(i_,8))},e.\u0275dir=gt({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),e}(),CA=function(){var e=function(){function e(t,n,i){var r=this;_(this,e),this._platform=t,this._change=new Y,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return w(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(aA(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(vy),Ei(dl),Ei(Ul,8))},e.\u0275prov=Oe({factory:function(){return new e(Ei(vy),Ei(dl),Ei(Ul,8))},token:e,providedIn:"root"}),e}(),EA=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({}),e}(),LA=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[r_,yy,EA],r_,EA]}),e}(),zA=function(){function e(){_(this,e)}return w(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),RA=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(zA),OA=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return w(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,h(y(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,h(y(n.prototype),"detach",this).call(this)}}]),n}(zA),xA=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this)).element=e instanceof mu?e.nativeElement:e,i}return n}(zA),DA=function(){function e(){_(this,e),this._isDisposed=!1,this.attachDomPortal=null}return w(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof RA?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof OA?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof xA?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),PA=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a){var s,u;return _(this,n),(u=t.call(this)).outletElement=e,u._componentFactoryResolver=i,u._appRef=r,u._defaultInjector=o,u.attachDomPortal=function(e){var t=e.element,i=u._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),u.outletElement.appendChild(t),u._attachedPortal=e,h((s=m(u),y(n.prototype)),"setDisposeFn",s).call(s,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},u._document=a,u}return w(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){h(y(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(DA),NA=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r){var o,a;return _(this,n),(a=t.call(this))._componentFactoryResolver=e,a._viewContainerRef=i,a._isInitialized=!1,a.attached=new Sc,a.attachDomPortal=function(e){var t=e.element,i=a._document.createComment("dom-portal");e.setAttachedHost(m(a)),t.parentNode.insertBefore(i,t),a._getRootNode().appendChild(t),a._attachedPortal=e,h((o=m(a),y(n.prototype)),"setDisposeFn",o).call(o,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},a._document=r,a}return w(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&h(y(n.prototype),"detach",this).call(this),e&&h(y(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){h(y(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),h(y(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return h(y(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(DA);return e.\u0275fac=function(t){return new(t||e)(Ja(du),Ja($u),Ja(Ul))},e.\u0275dir=gt({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Oa]}),e}(),IA=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({}),e}(),BA=function(){function e(t,n){_(this,e),this.predicate=t,this.inclusive=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new FA(e,this.predicate,this.inclusive))}}]),e}(),FA=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e)).predicate=i,o.inclusive=r,o.index=0,o}return w(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(O),HA=My(),qA=function(){function e(t,n){_(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return w(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=ly(-this._previousScrollPosition.left),e.style.top=ly(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),HA&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),HA&&(t.scrollBehavior=i,n.scrollBehavior=r)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}(),jA=function(){function e(t,n,i,r){var o=this;_(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return w(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),YA=function(){function e(){_(this,e)}return w(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function WA(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function UA(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var KA=function(){function e(t,n,i,r){_(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return w(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;WA(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),VA=function(){var e=function e(t,n,i,r){var o=this;_(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new YA},this.close=function(e){return new jA(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new qA(o._viewportRuler,o._document)},this.reposition=function(e){return new KA(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r};return e.\u0275fac=function(t){return new(t||e)(Ei(TA),Ei(CA),Ei(dl),Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(TA),Ei(CA),Ei(dl),Ei(Ul))},token:e,providedIn:"root"}),e}(),XA=function e(t){if(_(this,e),this.scrollStrategy=new YA,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(Ul))},token:e,providedIn:"root"}),e}(),ZA=function(){var e=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return w(n,[{key:"add",value:function(e){h(y(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(QA);return e.\u0275fac=function(t){return new(t||e)(Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(Ul))},token:e,providedIn:"root"}),e}(),$A=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},r}return w(n,[{key:"add",value:function(e){if(h(y(n.prototype),"add",this).call(this,e),!this._isAttached){var t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;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}}}]),n}(QA);return e.\u0275fac=function(t){return new(t||e)(Ei(Ul),Ei(vy))},e.\u0275prov=Oe({factory:function(){return new e(Ei(Ul),Ei(vy))},token:e,providedIn:"root"}),e}(),ek="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha,tk=function(){var e=function(){function e(t,n){_(this,e),this._platform=n,this._document=t}return w(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||ek)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),t=0;tp&&(p=v,f=m)}}catch(y){g.e(y)}finally{g.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&ok(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=sk(t),o=e.x,a=e.y,s=this._getOffset(i,"x"),u=this._getOffset(i,"y");s&&(o+=s),u&&(a+=u);var c=0-a,l=a+r.height-n.height,h=this._subtractOverflows(r.width,0-o,o+r.width-n.width),d=this._subtractOverflows(r.height,c,l),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=ak(this._overlayRef.getConfig().minHeight),a=ak(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=sk(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),u=Math.max(e.y+o.height-a.height,0),c=Math.max(a.top-n.top-e.y,0),l=Math.max(a.left-n.left-e.x,0);return i=o.width<=a.width?l||-s:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!c||"start"===t.overlayX&&c)s=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!c||"end"===t.overlayX&&c)a=e.x,o=u.right-e.x;else{var d=Math.min(u.right-e.x+u.left,e.x),f=this._lastBoundingBoxSize.width;o=2*d,a=e.x-d,o>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-f/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=ly(n.height),i.top=ly(n.top),i.bottom=ly(n.bottom),i.width=ly(n.width),i.left=ly(n.left),i.right=ly(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=ly(r)),o&&(i.maxWidth=ly(o))}this._lastBoundingBoxSize=n,ok(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){ok(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){ok(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();ok(n,this._getExactOverlayY(t,e,a)),ok(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",u=this._getOffset(t,"x"),c=this._getOffset(t,"y");u&&(s+="translateX(".concat(u,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=ly(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=ly(o.maxWidth):r&&(n.maxWidth="")),ok(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=ly(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=ly(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:UA(e,n),isOriginOutsideView:WA(e,n),isOverlayClipped:UA(t,n),isOverlayOutsideView:WA(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),lk=function(){var e=function(){function e(t,n,i,r){_(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return w(e,[{key:"global",value:function(){return new ck}},{key:"connectedTo",value:function(e,t,n){return new uk(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new rk(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(CA),Ei(Ul),Ei(vy),Ei(tk))},e.\u0275prov=Oe({factory:function(){return new e(Ei(CA),Ei(Ul),Ei(vy),Ei(tk))},token:e,providedIn:"root"}),e}(),hk=0,dk=function(){var e=function(){function e(t,n,i,r,o,a,s,u,c,l,h){_(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=c,this._location=l,this._outsideClickDispatcher=h}return w(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new XA(e);return r.direction=r.direction||this._directionality.value,new nk(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+hk++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(xl)),new PA(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(VA),Ei(tk),Ei(du),Ei(lk),Ei(ZA),Ei(za),Ei(dl),Ei(Ul),Ei(i_),Ei(ah),Ei($A))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),fk=[{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"}],pk=new hi("cdk-connected-overlay-scroll-strategy"),gk=function(){var e=function e(t){_(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(Ja(mu))},e.\u0275dir=gt({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),mk=function(){var e=function(){function e(t,n,i,r,o){_(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=L.EMPTY,this._attachSubscription=L.EMPTY,this._detachSubscription=L.EMPTY,this._positionSubscription=L.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Sc,this.positionChange=new Sc,this.attach=new Sc,this.detach=new Sc,this.overlayKeydown=new Sc,this.overlayOutsideClick=new Sc,this._templatePortal=new OA(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return w(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=ay(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=ay(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=ay(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=ay(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=ay(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(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())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=fk);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||Jv(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new XA({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}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;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(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new BA(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(dk),Ja(Vu),Ja($u),Ja(pk),Ja(i_,8))},e.\u0275dir=gt({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Et]}),e}(),vk={provide:pk,deps:[dk],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},yk=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[dk,vk],imports:[[r_,IA,LA],LA]}),e}(),_k=["underline"],bk=["connectionContainer"],wk=["inputContainer"],Mk=["label"];function Ak(e,t){1&e&&(ns(0),$a(1,"div",14),ts(2,"div",15),ts(3,"div",16),ts(4,"div",17),es(),$a(5,"div",18),ts(6,"div",15),ts(7,"div",16),ts(8,"div",17),es(),is())}function kk(e,t){1&e&&($a(0,"div",19),vs(1,1),es())}function Tk(e,t){if(1&e&&(ns(0),vs(1,2),$a(2,"span"),qs(3),es(),is()),2&e){var n=ps(2);yo(3),js(n._control.placeholder)}}function Sk(e,t){1&e&&vs(0,3,["*ngSwitchCase","true"])}function Ck(e,t){1&e&&($a(0,"span",23),qs(1," *"),es())}function Ek(e,t){if(1&e){var n=os();$a(0,"label",20,21),cs("cdkObserveContent",function(){return Qt(n),ps().updateOutlineGap()}),Xa(2,Tk,4,1,"ng-container",12),Xa(3,Sk,1,0,"ng-content",12),Xa(4,Ck,2,0,"span",22),es()}if(2&e){var i=ps();Es("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),Qa("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),Ua("for",i._control.id)("aria-owns",i._control.id),yo(2),Qa("ngSwitchCase",!1),yo(1),Qa("ngSwitchCase",!0),yo(1),Qa("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function Lk(e,t){1&e&&($a(0,"div",24),vs(1,4),es())}function zk(e,t){if(1&e&&($a(0,"div",25,26),ts(2,"span",27),es()),2&e){var n=ps();yo(2),Es("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function Rk(e,t){1&e&&($a(0,"div"),vs(1,5),es()),2&e&&Qa("@transitionMessages",ps()._subscriptAnimationState)}function Ok(e,t){if(1&e&&($a(0,"div",31),qs(1),es()),2&e){var n=ps(2);Qa("id",n._hintLabelId),yo(1),js(n.hintLabel)}}function xk(e,t){if(1&e&&($a(0,"div",28),Xa(1,Ok,2,2,"div",29),vs(2,6),ts(3,"div",30),vs(4,7),es()),2&e){var n=ps();Qa("@transitionMessages",n._subscriptAnimationState),yo(1),Qa("ngIf",n.hintLabel)}}var Dk,Pk=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Nk=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Ik=0,Bk=new hi("MatError"),Fk=function(){var e=function e(t,n){_(this,e),this.id="mat-error-"+Ik++,t||n.nativeElement.setAttribute("aria-live","polite")};return e.\u0275fac=function(t){return new(t||e)(ci("aria-live"),Ja(mu))},e.\u0275dir=gt({type:e,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&Ua("id",t.id)},inputs:{id:"id"},features:[cu([{provide:Bk,useExisting:e}])]}),e}(),Hk={transitionMessages:s_("transitionMessages",[d_("enter",h_({opacity:1,transform:"translateY(0%)"})),p_("void => enter",[h_({opacity:0,transform:"translateY(-5px)"}),u_("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},qk=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e}),e}(),jk=0,Yk=new hi("MatHint"),Wk=function(){var e=function e(){_(this,e),this.align="start",this.id="mat-hint-"+jk++};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(Ua("id",t.id)("align",null),Es("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[cu([{provide:Yk,useExisting:e}])]}),e}(),Uk=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["mat-label"]]}),e}(),Kk=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["mat-placeholder"]]}),e}(),Vk=new hi("MatPrefix"),Xk=new hi("MatSuffix"),Gk=0,Jk=Uw(function e(t){_(this,e),this._elementRef=t},"primary"),Qk=new hi("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Zk=new hi("MatFormField"),$k=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u,c){var l;return _(this,n),(l=t.call(this,e))._elementRef=e,l._changeDetectorRef=i,l._dir=o,l._defaults=a,l._platform=s,l._ngZone=u,l._outlineGapCalculationNeededImmediately=!1,l._outlineGapCalculationNeededOnStable=!1,l._destroyed=new Y,l._showAlwaysAnimate=!1,l._subscriptAnimationState="",l._hintLabel="",l._hintLabelId="mat-hint-"+Gk++,l._labelId="mat-form-field-label-"+Gk++,l.floatLabel=l._getDefaultFloatLabelState(),l._animationsEnabled="NoopAnimations"!==c,l.appearance=a&&a.appearance?a.appearance:"legacy",l._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,l}return w(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=ay(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(Cp(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(sA(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(sA(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),le(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Cp(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Cp(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(sA(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,HM(this._label.nativeElement,"transitionend").pipe(kp(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,r(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,r(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=e.children,c=this._getStartEnd(u[0].getBoundingClientRect()),l=0,h=0;h0?.75*l+10:0}for(var d=0;de?{max:{max:e,actual:t.value}}:null}}(e)}},{key:"required",value:function(e){return gT(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return cT(e.value)||fT.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return function(e){return function(t){return cT(t.value)||!lT(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}(e)}},{key:"pattern",value:function(e){return function(e){return e?("string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),function(e){if(cT(e.value))return null;var i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}):mT;var t,n}(e)}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return MT(e)}},{key:"composeAsync",value:function(e){return kT(e)}}]),e}();function gT(e){return cT(e.value)?{required:!0}:null}function mT(e){return null}function vT(e){return null!=e}function yT(e){var t=as(e)?re(e):e;return us(t),t}function _T(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function bT(e,t){return t.map(function(t){return t(e)})}function wT(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function MT(e){if(!e)return null;var t=e.filter(vT);return 0==t.length?null:function(e){return _T(bT(e,t))}}function AT(e){return null!=e?MT(wT(e)):null}function kT(e){if(!e)return null;var t=e.filter(vT);return 0==t.length?null:function(e){return tT(bT(e,t).map(yT)).pipe(ee(_T))}}function TT(e){return null!=e?kT(wT(e)):null}function ST(e,t){return null===e?[t]:Array.isArray(e)?[].concat(r(e),[t]):[e,t]}function CT(e){return e._rawValidators}function ET(e){return e._rawAsyncValidators}var LT=function(){var e=function(){function e(){_(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return w(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=AT(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=TT(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e}),e}(),zT=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(LT);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275dir=gt({type:t,features:[Oa]}),t}(),RT=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(LT),OT=function(){function e(t){_(this,e),this._cd=t}return w(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}(),xT=function(){var e=function(e){d(n,e);var t=p(n);function n(e){return _(this,n),t.call(this,e)}return n}(OT);return e.\u0275fac=function(t){return new(t||e)(Ja(RT,2))},e.\u0275dir=gt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Es("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[Oa]}),e}(),DT=function(){var e=function(e){d(n,e);var t=p(n);function n(e){return _(this,n),t.call(this,e)}return n}(OT);return e.\u0275fac=function(t){return new(t||e)(Ja(zT,10))},e.\u0275dir=gt({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&Es("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[Oa]}),e}();function PT(e,t){BT(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&HT(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&HT(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function NT(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),FT(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function IT(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function BT(e,t){var n=CT(e);null!==t.validator?e.setValidators(ST(n,t.validator)):"function"==typeof n&&e.setValidators([n]);var i=ET(e);null!==t.asyncValidator?e.setAsyncValidators(ST(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);var r=function(){return e.updateValueAndValidity()};IT(t._rawValidators,r),IT(t._rawAsyncValidators,r)}function FT(e,t){var n=!1;if(null!==e){if(null!==t.validator){var i=CT(e);if(Array.isArray(i)&&i.length>0){var r=i.filter(function(e){return e!==t.validator});r.length!==i.length&&(n=!0,e.setValidators(r))}}if(null!==t.asyncValidator){var o=ET(e);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(e){return e!==t.asyncValidator});a.length!==o.length&&(n=!0,e.setAsyncValidators(a))}}}var s=function(){};return IT(t._rawValidators,s),IT(t._rawAsyncValidators,s),n}function HT(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function qT(e,t){BT(e,t)}function jT(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function YT(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function WT(e,t){return t?(Array.isArray(t),t.forEach(function(e){e.constructor===uT?n=e:Object.getPrototypeOf(e.constructor)===rT?i=e:r=e}),r||i||n||null):null;var n,i,r}function UT(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function KT(e){return(JT(e)?e.validators:e)||null}function VT(e){return Array.isArray(e)?AT(e):e||null}function XT(e,t){return(JT(t)?t.asyncValidators:e)||null}function GT(e){return Array.isArray(e)?TT(e):e||null}function JT(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var QT,ZT,$T=function(){function e(t,n){_(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=VT(this._rawValidators),this._composedAsyncValidatorFn=GT(this._rawAsyncValidators)}return w(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=VT(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=GT(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=yT(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof tS?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof nS&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Sc,this.statusChanges=new Sc}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){JT(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),eS=function(e){d(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _(this,n),(e=t.call(this,KT(r),XT(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),e}return w(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){UT(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){UT(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}($T),tS=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,KT(i),XT(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return w(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof eS?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}($T),nS=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,KT(i),XT(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return w(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof eS?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=a(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}($T),iS={provide:zT,useExisting:Te(function(){return oS})},rS=Promise.resolve(null),oS=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Sc,r.form=new tS({},AT(e),TT(i)),r}return w(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;rS.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),PT(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;rS.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),UT(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;rS.then(function(){var n=t._findContainer(e.path),i=new tS({});qT(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;rS.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;rS.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,YT(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(zT);return e.\u0275fac=function(t){return new(t||e)(Ja(hT,10),Ja(dT,10))},e.\u0275dir=gt({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&cs("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[cu([iS]),Oa]}),e}(),aS={provide:RT,useExisting:Te(function(){return uS})},sS=Promise.resolve(null),uS=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this)).control=new eS,a._registered=!1,a.update=new Sc,a._parent=e,a._setValidators(i),a._setAsyncValidators(r),a.valueAccessor=WT(0,o),a}return w(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),jT(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?[].concat(r(this._parent.path),[this.name]):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){PT(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;sS.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;sS.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}]),n}(RT);return e.\u0275fac=function(t){return new(t||e)(Ja(zT,9),Ja(hT,10),Ja(dT,10),Ja(oT,10))},e.\u0275dir=gt({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[cu([aS]),Oa,Et]}),e}(),cS=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),lS={provide:oT,useExisting:Te(function(){return hS}),multi:!0},hS=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"writeValue",value:function(e){this.setProperty("value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}}]),n}(rT);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275dir=gt({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&cs("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[cu([lS]),Oa]}),t}(),dS=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({}),e}(),fS=new hi("NgModelWithFormControlWarning"),pS={provide:RT,useExisting:Te(function(){return gS})},gS=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this))._ngModelWarningConfig=o,a.update=new Sc,a._ngModelWarningSent=!1,a._setValidators(e),a._setAsyncValidators(i),a.valueAccessor=WT(0,r),a}return w(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&NT(t,this,!1),PT(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}jT(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&NT(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}]),n}(RT);return e.\u0275fac=function(t){return new(t||e)(Ja(hT,10),Ja(dT,10),Ja(oT,10),Ja(fS,8))},e.\u0275dir=gt({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[cu([pS]),Oa,Et]}),e._ngModelWarningSentOnce=!1,e}(),mS={provide:zT,useExisting:Te(function(){return vS})},vS=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new Sc,r._setValidators(e),r._setAsyncValidators(i),r}return w(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(FT(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return PT(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){NT(e.control||null,e,!1),UT(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,YT(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(NT(n||null,t),i instanceof eS&&(PT(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);qT(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return FT(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){BT(this.form,this),this._oldForm&&FT(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(zT);return e.\u0275fac=function(t){return new(t||e)(Ja(hT,10),Ja(dT,10))},e.\u0275dir=gt({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&cs("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[cu([mS]),Oa,Et]}),e}(),yS={provide:hT,useExisting:Te(function(){return _S}),multi:!0},_S=function(){var e=function(){function e(){_(this,e),this._required=!1}return w(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?gT(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&Ua("required",t.required?"":null)},inputs:{required:"required"},features:[cu([yS])]}),e}(),bS=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[dS]]}),e}(),wS=((ZT=function e(){_(this,e)}).\u0275fac=function(e){return new(e||ZT)},ZT.\u0275mod=ft({type:ZT}),ZT.\u0275inj=xe({imports:[bS]}),ZT),MS=((QT=function(){function e(){_(this,e)}return w(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:fS,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275fac=function(e){return new(e||QT)},QT.\u0275mod=ft({type:QT}),QT.\u0275inj=xe({imports:[bS]}),QT),AS=["trigger"],kS=["panel"];function TS(e,t){if(1&e&&($a(0,"span",8),qs(1),es()),2&e){var n=ps();yo(1),js(n.placeholder)}}function SS(e,t){if(1&e&&($a(0,"span",12),qs(1),es()),2&e){var n=ps(2);yo(1),js(n.triggerValue)}}function CS(e,t){1&e&&vs(0,0,["*ngSwitchCase","true"])}function ES(e,t){1&e&&($a(0,"span",9),Xa(1,SS,2,1,"span",10),Xa(2,CS,1,0,"ng-content",11),es()),2&e&&(Qa("ngSwitch",!!ps().customTrigger),yo(2),Qa("ngSwitchCase",!0))}function LS(e,t){if(1&e){var n=os();$a(0,"div",13),$a(1,"div",14,15),cs("@transformPanel.done",function(e){return Qt(n),ps()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return Qt(n),ps()._handleKeydown(e)}),vs(3,1),es(),es()}if(2&e){var i=ps();Qa("@transformPanelWrap",void 0),yo(1),Ks("mat-select-panel ",i._getPanelTheme(),""),Cs("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),Qa("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),Ua("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var zS,RS,OS=[[["mat-select-trigger"]],"*"],xS=["mat-select-trigger","*"],DS={transformPanelWrap:s_("transformPanelWrap",[p_("* => void",m_("@transformPanel",[g_()],{optional:!0}))]),transformPanel:s_("transformPanel",[d_("void",h_({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),d_("showing",h_({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),d_("showing-multiple",h_({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),p_("void => *",u_("120ms cubic-bezier(0, 0, 0.2, 1)")),p_("* => void",u_("100ms 25ms linear",h_({opacity:0})))])},PS=0,NS=new hi("mat-select-scroll-strategy"),IS=new hi("MAT_SELECT_CONFIG"),BS={provide:NS,deps:[dk],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},FS=function e(t,n){_(this,e),this.source=t,this.value=n},HS=Kw(Vw(Ww(Xw(function e(t,n,i,r,o){_(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o})))),qS=new hi("MatSelectTrigger"),jS=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,o,a,s,u,c,l,h,d,f,p,g,v){var y,b,w,M;return _(this,n),(y=t.call(this,s,a,c,l,d))._viewportRuler=e,y._changeDetectorRef=i,y._ngZone=o,y._dir=u,y._parentFormField=h,y.ngControl=d,y._liveAnnouncer=g,y._defaultOptions=v,y._panelOpen=!1,y._compareWith=function(e,t){return e===t},y._uid="mat-select-"+PS++,y._triggerAriaLabelledBy=null,y._destroy=new Y,y._onChange=function(){},y._onTouched=function(){},y._valueId="mat-select-value-"+PS++,y._panelDoneAnimatingStream=new Y,y._overlayPanelClass=(null===(b=y._defaultOptions)||void 0===b?void 0:b.overlayPanelClass)||"",y._focused=!1,y.controlType="mat-select",y._required=!1,y._multiple=!1,y._disableOptionCentering=null!==(M=null===(w=y._defaultOptions)||void 0===w?void 0:w.disableOptionCentering)&&void 0!==M&&M,y.ariaLabel="",y.optionSelectionChanges=_p(function(){var e=y.options;return e?e.changes.pipe(Cp(e),bp(function(){return le.apply(void 0,r(e.map(function(e){return e.onSelectionChange})))})):y._ngZone.onStable.pipe(kp(1),bp(function(){return y.optionSelectionChanges}))}),y.openedChange=new Sc,y._openedStream=y.openedChange.pipe(Zd(function(e){return e}),ee(function(){})),y._closedStream=y.openedChange.pipe(Zd(function(e){return!e}),ee(function(){})),y.selectionChange=new Sc,y.valueChange=new Sc,y.ngControl&&(y.ngControl.valueAccessor=m(y)),null!=(null==v?void 0:v.typeaheadDebounceInterval)&&(y._typeaheadDebounceInterval=v.typeaheadDebounceInterval),y._scrollStrategyFactory=p,y._scrollStrategy=y._scrollStrategyFactory(),y.tabIndex=parseInt(f)||0,y.id=y.id,y}return w(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=ay(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=ay(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=ay(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=sy(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new MA(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe($M(),sA(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(sA(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(Cp(null),sA(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!Jv(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||Jv(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var o=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(o?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this._overlayDir.positionChange.pipe(kp(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new By(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(sA(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(sA(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=le(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(sA(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),le.apply(void 0,r(this.options.map(function(e){return e._stateChanges}))).pipe(sA(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==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)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.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()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(HS);return e.\u0275fac=function(t){return new(t||e)(Ja(CA),Ja(ju),Ja(dl),Ja(aM),Ja(mu),Ja(i_,8),Ja(oS,8),Ja(vS,8),Ja(Zk,8),Ja(RT,10),ci("tabindex"),Ja(NS),Ja(Vy),Ja(IS,8))},e.\u0275dir=gt({type:e,viewQuery:function(e,t){var n;(1&e&&(Fc(AS,5),Fc(kS,5),Fc(mk,5)),2&e)&&(Bc(n=qc())&&(t.trigger=n.first),Bc(n=qc())&&(t.panel=n.first),Bc(n=qc())&&(t._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Oa,Et]}),e}(),YS=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return w(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;h(y(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(sA(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;h(y(n.prototype),"_canOpen",this).call(this)&&(h(y(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(kp(1)).subscribe(function(){e._triggerFontSize&&e._overlayDir.overlayRef&&e._overlayDir.overlayRef.overlayElement&&(e._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t=zM(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=RM((e+t)*n,n,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),h(y(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new FS(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this._overlayDir.offsetX=Math.round(e),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=zM(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(jS);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275cmp=ct({type:t,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;(1&e&&(Hc(n,qS,5),Hc(n,LM,5),Hc(n,TM,5)),2&e)&&(Bc(i=qc())&&(t.customTrigger=i.first),Bc(i=qc())&&(t.options=i),Bc(i=qc())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&cs("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(Ua("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),Es("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:[cu([{provide:qk,useExisting:t},{provide:wM,useExisting:t}]),Oa],ngContentSelectors:xS,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&&(ms(OS),$a(0,"div",0,1),cs("click",function(){return t.toggle()}),$a(3,"div",2),Xa(4,TS,2,1,"span",3),Xa(5,ES,3,2,"span",4),es(),$a(6,"div",5),ts(7,"div",6),es(),es(),Xa(8,LS,4,14,"ng-template",7),cs("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=Ga(1);Ua("aria-owns",t.panelOpen?t.id+"-panel":null),yo(3),Qa("ngSwitch",t.empty),Ua("id",t._valueId),yo(1),Qa("ngSwitchCase",!0),yo(1),Qa("ngSwitchCase",!1),yo(3),Qa("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[gk,Zh,$h,mk,ed,Wh],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[DS.transformPanelWrap,DS.transformPanel]},changeDetection:0}),t}(),WS=((zS=function e(){_(this,e)}).\u0275fac=function(e){return new(e||zS)},zS.\u0275mod=ft({type:zS}),zS.\u0275inj=xe({providers:[BS],imports:[[ld,yk,xM,Yw],EA,eT,xM,Yw]}),zS),US=function(){function e(t){_(this,e),this.total=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new KS(e,this.total))}}]),e}(),KS=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return w(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(O),VS=new Set,XS=function(){var e=function(){function e(t){_(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):GS}return w(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!VS.has(e))try{RS||((RS=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(RS)),RS.sheet&&(RS.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),VS.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(vy))},e.\u0275prov=Oe({factory:function(){return new e(Ei(vy))},token:e,providedIn:"root"}),e}();function GS(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var JS=function(){var e=function(){function e(t,n){_(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new Y}return w(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return QS(cy(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=dp(QS(cy(e)).map(function(e){return t._registerQuery(e).observable}));return(n=mp(n.pipe(kp(1)),n.pipe(function(e){return e.lift(new US(1))},ty(0)))).pipe(ee(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new I(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(Cp(n),ee(function(t){var n=t.matches;return{query:e,matches:n}}),sA(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(XS),Ei(dl))},e.\u0275prov=Oe({factory:function(){return new e(Ei(XS),Ei(dl))},token:e,providedIn:"root"}),e}();function QS(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var ZS={tooltipState:s_("state",[d_("initial, void, hidden",h_({opacity:0,transform:"scale(0)"})),d_("visible",h_({transform:"scale(1)"})),p_("* => visible",u_("200ms cubic-bezier(0, 0, 0.2, 1)",f_([h_({opacity:0,transform:"scale(0)",offset:0}),h_({opacity:.5,transform:"scale(0.99)",offset:.5}),h_({opacity:1,transform:"scale(1)",offset:1})]))),p_("* => hidden",u_("100ms cubic-bezier(0, 0, 0.2, 1)",h_({opacity:0})))])},$S=wy({passive:!0}),eC=new hi("mat-tooltip-scroll-strategy"),tC={provide:eC,deps:[dk],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},nC=new hi("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),iC=function(){var e=function(){function e(t,n,i,r,o,a,s,u,c,l,h,d){var f=this;_(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=u,this._dir=l,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Y,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!Jv(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=c,this._document=d,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),l.change.pipe(sA(this._destroyed)).subscribe(function(){f._overlayRef&&f._updatePosition(f._overlayRef)}),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)})}return w(e,[{key:"position",get:function(){return this._position},set:function(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()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=ay(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;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(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(sA(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(n){var i=t(n,2),r=i[0],o=i[1];e.removeEventListener(r,o,$S)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new RA(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(sA(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe(sA(this._destroyed)).subscribe(function(t){e._updateCurrentPositionClass(t.connectionPair),e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-tooltip-panel"),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(sA(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var t=e.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(kp(1),sA(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(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}}},{key:"_updateCurrentPositionClass",value:function(e){var t,n=e.overlayY,i=e.originX,r=e.originY;if((t="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===r?"above":"below")!==this._currentPosition){var o=this._overlayRef;if(o){var a="".concat(this._cssClassPrefix,"-tooltip-panel-");o.removePanelClass(a+this._currentPosition),o.addPanelClass(a+t)}this._currentPosition=t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var n=this;e.forEach(function(e){var i=t(e,2),r=i[0],o=i[1];n._elementRef.nativeElement.addEventListener(r,o,$S)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(dk),Ja(mu),Ja(TA),Ja($u),Ja(dl),Ja(vy),Ja(Dy),Ja(Zy),Ja(void 0),Ja(i_),Ja(void 0),Ja(Ul))},e.\u0275dir=gt({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),rC=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u,c,l,h,d,f){var p;return _(this,n),(p=t.call(this,e,i,r,o,a,s,u,c,l,h,d,f))._tooltipComponent=aC,p}return n}(iC);return e.\u0275fac=function(t){return new(t||e)(Ja(dk),Ja(mu),Ja(TA),Ja($u),Ja(dl),Ja(vy),Ja(Dy),Ja(Zy),Ja(eC),Ja(i_,8),Ja(nC,8),Ja(Ul))},e.\u0275dir=gt({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Oa]}),e}(),oC=function(){var e=function(){function e(t){_(this,e),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Y}return w(e,[{key:"show",value:function(e){var t=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=void 0,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=void 0,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(ju))},e.\u0275dir=gt({type:e}),e}(),aC=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e))._breakpointObserver=i,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return n}(oC);return e.\u0275fac=function(t){return new(t||e)(Ja(ju),Ja(JS))},e.\u0275cmp=ct({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&cs("click",function(){return t._handleBodyInteraction()},!1,Lr)("auxclick",function(){return t._handleBodyInteraction()},!1,Lr),2&e&&Cs("zoom","visible"===t._visibility?1:null)},features:[Oa],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&($a(0,"div",0),cs("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),_c(1,"async"),qs(2),es()),2&e)&&(Es("mat-tooltip-handset",null==(n=bc(1,5,t._isHandset))?null:n.matches),Qa("ngClass",t.tooltipClass)("@state",t._visibility),yo(2),js(t.message))},directives:[Wh],pipes:[sd],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ZS.tooltipState]},changeDetection:0}),e}(),sC=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[tC],imports:[[t_,ld,yk,Yw],Yw,EA]}),e}();function uC(e,t){if(1&e&&($a(0,"mat-option",19),qs(1),es()),2&e){var n=t.$implicit;Qa("value",n),yo(1),Ys(" ",n," ")}}function cC(e,t){if(1&e){var n=os();$a(0,"mat-form-field",16),$a(1,"mat-select",17),cs("selectionChange",function(e){return Qt(n),ps(2)._changePageSize(e.value)}),Xa(2,uC,2,2,"mat-option",18),es(),es()}if(2&e){var i=ps(2);Qa("appearance",i._formFieldAppearance)("color",i.color),yo(1),Qa("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),yo(1),Qa("ngForOf",i._displayedPageSizeOptions)}}function lC(e,t){if(1&e&&($a(0,"div",20),qs(1),es()),2&e){var n=ps(2);yo(1),js(n.pageSize)}}function hC(e,t){if(1&e&&($a(0,"div",12),$a(1,"div",13),qs(2),es(),Xa(3,cC,3,6,"mat-form-field",14),Xa(4,lC,2,1,"div",15),es()),2&e){var n=ps();yo(2),Ys(" ",n._intl.itemsPerPageLabel," "),yo(1),Qa("ngIf",n._displayedPageSizeOptions.length>1),yo(1),Qa("ngIf",n._displayedPageSizeOptions.length<=1)}}function dC(e,t){if(1&e){var n=os();$a(0,"button",21),cs("click",function(){return Qt(n),ps().firstPage()}),Tn(),$a(1,"svg",7),ts(2,"path",22),es(),es()}if(2&e){var i=ps();Qa("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),Ua("aria-label",i._intl.firstPageLabel)}}function fC(e,t){if(1&e){var n=os();Tn(),Sn(),$a(0,"button",23),cs("click",function(){return Qt(n),ps().lastPage()}),Tn(),$a(1,"svg",7),ts(2,"path",24),es(),es()}if(2&e){var i=ps();Qa("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),Ua("aria-label",i._intl.lastPageLabel)}}var pC=function(){var e=function e(){_(this,e),this.changes=new Y,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of ".concat(n);var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({factory:function(){return new e},token:e,providedIn:"root"}),e}(),gC={provide:pC,deps:[[new Pi,new Ni,pC]],useFactory:function(e){return e||new pC}},mC=new hi("MAT_PAGINATOR_DEFAULT_OPTIONS"),vC=Ww(Gw(function e(){_(this,e)})),yC=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;if(_(this,n),(o=t.call(this))._intl=e,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new Sc,o._intlChanges=e.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var a=r.pageSize,s=r.pageSizeOptions,u=r.hidePageSize,c=r.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=s&&(o._pageSizeOptions=s),null!=u&&(o._hidePageSize=u),null!=c&&(o._showFirstLastButtons=c)}return g(o)}return w(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(sy(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=sy(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(sy(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map(function(e){return sy(e)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=ay(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=ay(e)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex1&&void 0!==arguments[1]?arguments[1]:ey,i=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new MC(i,n))}}var MC=function(){function e(t,n){_(this,e),this.delay=t,this.scheduler=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new AC(e,this.delay,this.scheduler))}}]),e}(),AC=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return w(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new kC(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(pA.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(pA.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(O),kC=function e(t,n){_(this,e),this.time=t,this.notification=n},TC=["mat-menu-item",""],SC=["*"];function CC(e,t){if(1&e){var n=os();$a(0,"div",0),cs("keydown",function(e){return Qt(n),ps()._handleKeydown(e)})("click",function(){return Qt(n),ps().closed.emit("click")})("@transformMenu.start",function(e){return Qt(n),ps()._onAnimationStart(e)})("@transformMenu.done",function(e){return Qt(n),ps()._onAnimationDone(e)}),$a(1,"div",1),vs(2),es(),es()}if(2&e){var i=ps();Qa("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),Ua("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var EC={transformMenu:s_("transformMenu",[d_("void",h_({opacity:0,transform:"scale(0.8)"})),p_("void => enter",u_("120ms cubic-bezier(0, 0, 0.2, 1)",h_({opacity:1,transform:"scale(1)"}))),p_("* => void",u_("100ms 25ms linear",h_({opacity:0})))]),fadeInItems:s_("fadeInItems",[d_("showing",h_({opacity:1})),p_("void => *",[h_({opacity:0}),u_("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},LC=new hi("MatMenuContent"),zC=new hi("MAT_MENU_PANEL"),RC=Kw(Ww(function e(){_(this,e)})),OC=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this))._elementRef=e,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new Y,a._focused=new Y,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(m(a)),a}return w(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(kp(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t="mat-elevation-z".concat(Math.min(4+e,24)),n=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(Cp(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(dl),Ja(xC))},e.\u0275dir=gt({type:e,contentQueries:function(e,t,n){var i;(1&e&&(Hc(n,LC,5),Hc(n,OC,5),Hc(n,OC,4)),2&e)&&(Bc(i=qc())&&(t.lazyContent=i.first),Bc(i=qc())&&(t._allItems=i),Bc(i=qc())&&(t.items=i))},viewQuery:function(e,t){var n;(1&e&&Fc(Vu,5),2&e)&&(Bc(n=qc())&&(t.templateRef=n.first))},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),NC=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r){return _(this,n),t.call(this,e,i,r)}return n}(PC);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(dl),Ja(xC))},e.\u0275cmp=ct({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&Ua("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[cu([{provide:zC,useExisting:e}]),Oa],ngContentSelectors:SC,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&&(ms(),Xa(0,CC,3,6,"ng-template"))},directives:[Wh],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[EC.transformMenu,EC.fadeInItems]},changeDetection:0}),e}(),IC=new hi("mat-menu-scroll-strategy"),BC={provide:IC,deps:[dk],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},FC=wy({passive:!0}),HC=function(){var e=function(){function e(t,n,i,r,o,a,s,u){var c=this;_(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=s,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=L.EMPTY,this._hoverSubscription=L.EMPTY,this._menuCloseSubscription=L.EMPTY,this._handleTouchStart=function(e){Gy(e)||(c._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Sc,this.onMenuOpen=this.menuOpened,this.menuClosed=new Sc,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof PC?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,FC),a&&(a._triggersSubmenu=this.triggersSubmenu())}return w(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,FC),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof PC&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof PC?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Zd(function(e){return"void"===e.toState}),kp(1),sA(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new XA({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var n=t("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=n[0],r=n[1],o=t("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=o[0],s=o[1],u=a,c=s,l=i,h=r,d=0;this.triggersSubmenu()?(h=i="before"===this.menu.xPosition?"start":"end",r=l="end"===i?"start":"end",d="bottom"===a?8:-8):this.menu.overlapTrigger||(u="top"===a?"bottom":"top",c="top"===s?"bottom":"top"),e.withPositions([{originX:i,originY:u,overlayX:l,overlayY:a,offsetY:d},{originX:r,originY:u,overlayX:h,overlayY:a,offsetY:d},{originX:i,originY:c,overlayX:l,overlayY:s,offsetY:-d},{originX:r,originY:c,overlayX:h,overlayY:s,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return le(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Jd(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Zd(function(t){return t!==e._menuItemInstance}),Zd(function(){return e._menuOpen})):Jd(),n)}},{key:"_handleMousedown",value:function(e){Xy(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var 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())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Zd(function(t){return t===e._menuItemInstance&&!t.disabled}),wC(0,QM)).subscribe(function(){e._openedBy="mouse",e.menu instanceof PC&&e.menu._isAnimating?e.menu._animationDone.pipe(kp(1),wC(0,QM),sA(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new OA(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(dk),Ja(mu),Ja($u),Ja(IC),Ja(zC,8),Ja(OC,10),Ja(i_,8),Ja(Zy))},e.\u0275dir=gt({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&cs("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&Ua("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),qC=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[BC],imports:[Yw]}),e}(),jC=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[BC],imports:[[ld,Yw,yM,yk,qC],EA,Yw,qC]}),e}(),YC=["*"];function WC(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function UC(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function KC(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var VC=function e(t,n,i){_(this,e),this.url=t,this.svgText=n,this.options=i},XC=function(){var e=function(){function e(t,n,i,r){_(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}return w(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new VC(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(vr.HTML,n);if(!r)throw KC(n);return this._addSvgIconConfig(e,t,new VC("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new VC(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(vr.HTML,t);if(!i)throw KC(t);return this._addSvgIconSetConfig(e,new VC("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(vr.RESOURCE_URL,e);if(!n)throw UC(e);var i=this._cachedIconsByUrl.get(n);return i?Jd(GC(i)):this._loadSvgIconFromConfig(new VC(e,null)).pipe(Kp(function(e){return t._cachedIconsByUrl.set(n,e)}),ee(function(e){return GC(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=JC(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):dA(WC(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?Jd(GC(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ee(function(e){return GC(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?Jd(i):tT(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(Rp(function(t){var i=n._sanitizer.sanitize(vr.RESOURCE_URL,e.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(i," failed: ").concat(t.message))),Jd(null)}))})).pipe(ee(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw WC(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),o=this._extractSvgIconFromSet(r,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Kp(function(t){return e.svgText=t}),ee(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?Jd(null):this._fetchIcon(e).pipe(Kp(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString(""),n=e.attributes,i=0;i5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],c=arguments.length>8?arguments[8]:void 0;_(this,e),this.store=t,this.currentLoader=n,this.compiler=i,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=a,this.isolate=s,this.extend=u,this.pending=!1,this._onTranslationChange=new Sc,this._onLangChange=new Sc,this._onDefaultLangChange=new Sc,this._langs=[],this._translations={},this._translationRequests={},c&&this.setDefaultLang(c)}return w(e,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}},{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var n=this.retrieveTranslations(e);void 0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(kp(1)).subscribe(function(n){t.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return Jd(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe(kp(1)).subscribe(function(n){t.changeLang(e)}),n):(this.changeLang(e),Jd(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var n=this.currentLoader.getTranslation(e).pipe(_A(1),kp(1));return this.loadingTranslations=n.pipe(ee(function(n){return t.compiler.compileTranslations(n,e)}),_A(1),kp(1)),this.loadingTranslations.subscribe({next:function(n){t.translations[e]=t.extend&&t.translations[e]?Object.assign(Object.assign({},n),t.translations[e]):n,t.updateLangs(),t.pending=!1},error:function(e){t.pending=!1}}),n}},{key:"setTranslation",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=this.compiler.compileTranslations(t,e),this.translations[e]=(n||this.extend)&&this.translations[e]?dE(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach(function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,n){var i;if(t instanceof Array){var r,o={},s=!1,u=a(t);try{for(u.s();!(r=u.n()).done;){var c=r.value;o[c]=this.getParsedResult(e,c,n),ZM(o[c])&&(s=!0)}}catch(h){u.e(h)}finally{u.f()}return s?tT(t.map(function(e){return ZM(o[e])?o[e]:Jd(o[e])})).pipe(ee(function(e){var n={};return e.forEach(function(e,i){n[t[i]]=e}),n})):o}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===i){var l={key:t,translateService:this};void 0!==n&&(l.interpolateParams=n),i=this.missingTranslationHandler.handle(l)}return void 0!==i?i:t}},{key:"get",value:function(e,t){var n=this;if(!lE(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Qd(function(i){return ZM(i=n.getParsedResult(i,e,t))?i:Jd(i)}));var i=this.getParsedResult(this.translations[this.currentLang],e,t);return ZM(i)?i:Jd(i)}},{key:"getStreamOnTranslationChange",value:function(e,t){var n=this;if(!lE(e)||!e.length)throw new Error('Parameter "key" required');return mp(_p(function(){return n.get(e,t)}),this.onTranslationChange.pipe(bp(function(i){var r=n.getParsedResult(i.translations,e,t);return"function"==typeof r.subscribe?r:Jd(r)})))}},{key:"stream",value:function(e,t){var n=this;if(!lE(e)||!e.length)throw new Error('Parameter "key" required');return mp(_p(function(){return n.get(e,t)}),this.onLangChange.pipe(bp(function(i){var r=n.getParsedResult(i.translations,e,t);return ZM(r)?r:Jd(r)})))}},{key:"instant",value:function(e,t){if(!lE(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(ZM(n)){if(e instanceof Array){var i={};return e.forEach(function(t,n){i[e[n]]=e[n]}),i}return e}return n}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(yE),Ei(oE),Ei(mE),Ei(pE),Ei(sE),Ei(bE),Ei(_E),Ei(ME),Ei(wE))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),kE=function(){var e=function(){function e(t,n){_(this,e),this.translate=t,this._ref=n,this.value=""}return w(e,[{key:"updateValue",value:function(e,t,n){var i=this,r=function(t){i.value=void 0!==t?t:e,i.lastKey=e,i._ref.markForCheck()};if(n){var o=this.translate.getParsedResult(n,e,t);ZM(o.subscribe)?o.subscribe(r):r(o)}this.translate.get(e,t).subscribe(r)}},{key:"transform",value:function(e){var t,n=this;if(!e||!e.length)return e;for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:oE,useClass:aE},t.compiler||{provide:mE,useClass:vE},t.parser||{provide:pE,useClass:gE},t.missingTranslationHandler||{provide:sE,useClass:uE},yE,{provide:_E,useValue:t.isolate},{provide:bE,useValue:t.useDefaultLang},{provide:ME,useValue:t.extend},{provide:wE,useValue:t.defaultLanguage},AE]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:oE,useClass:aE},t.compiler||{provide:mE,useClass:vE},t.parser||{provide:pE,useClass:gE},t.missingTranslationHandler||{provide:sE,useClass:uE},{provide:_E,useValue:t.isolate},{provide:bE,useValue:t.useDefaultLang},{provide:ME,useValue:t.extend},{provide:wE,useValue:t.defaultLanguage},AE]}}}]),e}()).\u0275fac=function(e){return new(e||fE)},fE.\u0275mod=ft({type:fE}),fE.\u0275inj=xe({}),fE),SE=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[],imports:[[bC,jC,rE,FM,TE,ld]]}),e}();function CE(e,t){}var EE=function e(){_(this,e),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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},LE={dialogContainer:s_("dialogContainer",[d_("void, exit",h_({opacity:0,transform:"scale(0.7)"})),d_("enter",h_({transform:"none"})),p_("* => enter",u_("150ms cubic-bezier(0, 0, 0.2, 1)",h_({transform:"none",opacity:1}))),p_("* => void, * => exit",u_("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",h_({opacity:0})))])},zE=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s){var u;return _(this,n),(u=t.call(this))._elementRef=e,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=a,u._focusMonitor=s,u._animationStateChanged=new Sc,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(e){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(e)},u._ariaLabelledBy=a.ariaLabelledBy||null,u._document=o,u}return w(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=Ty(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Ty())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=Ty();return e===t||e.contains(t)}}]),n}(DA);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(Wy),Ja(ju),Ja(Ul,8),Ja(EE),Ja(Zy))},e.\u0275dir=gt({type:e,viewQuery:function(e,t){var n;(1&e&&Fc(NA,7),2&e)&&(Bc(n=qc())&&(t._portalOutlet=n.first))},features:[Oa]}),e}(),RE=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._state="enter",e}return w(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(zE);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275cmp=ct({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&ls("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(Vs("id",t._id),Ua("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),Xs("@dialogContainer",t._state))},features:[Oa],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Xa(0,CE,0,0,"ng-template",0)},directives:[NA],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[LE.dialogContainer]}}),t}(),OE=0,xE=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+OE++;_(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Y,this._afterClosed=new Y,this._beforeClosed=new Y,this._state=0,n._id=r,n._animationStateChanged.pipe(Zd(function(e){return"opened"===e.state}),kp(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(Zd(function(e){return"closed"===e.state}),kp(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(Zd(function(e){return 27===e.keyCode&&!i.disableClose&&!Jv(e)})).subscribe(function(e){e.preventDefault(),DE(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():DE(i,"mouse")})}return w(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(Zd(function(e){return"closing"===e.state}),kp(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function DE(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var PE,NE=new hi("MatDialogData"),IE=new hi("mat-dialog-default-options"),BE=new hi("mat-dialog-scroll-strategy"),FE={provide:BE,deps:[dk],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},HE=function(){var e=function(){function e(t,n,i,r,o,a,s,u,c){var l=this;_(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=u,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Y,this._afterOpenedAtThisLevel=new Y,this._ariaHiddenElements=new Map,this.afterAllClosed=_p(function(){return l.openDialogs.length?l._getAfterAllClosed():l._getAfterAllClosed().pipe(Cp(void 0))}),this._scrollStrategy=a}return w(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new EE)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new XA({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=za.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:EE,useValue:t}]}),i=new RA(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof Vu)t.attachTemplatePortal(new OA(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),a=t.attachComponentPortal(new RA(e,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(i_,null,je.Optional)||r.push({provide:i_,useValue:{value:e.direction,change:Jd()}}),za.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(dk),Ja(za),Ja(void 0),Ja(void 0),Ja(tk),Ja(void 0),Ja(fi),Ja(fi),Ja(hi))},e.\u0275dir=gt({type:e}),e}(),qE=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u){return _(this,n),t.call(this,e,i,o,s,u,a,xE,RE,NE)}return n}(HE);return e.\u0275fac=function(t){return new(t||e)(Ei(dk),Ei(za),Ei(ah,8),Ei(IE,8),Ei(BE),Ei(e,12),Ei(tk))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),jE=0,YE=function(){var e=function(){function e(t,n,i){_(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+jE++}return w(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=function(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE,8),Ja(mu),Ja(qE))},e.\u0275dir=gt({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&Vs("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),WE=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),UE=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}(),KE=((PE=function e(){_(this,e)}).\u0275fac=function(e){return new(e||PE)},PE.\u0275mod=ft({type:PE}),PE.\u0275inj=xe({providers:[qE,FE],imports:[[yk,IA,Yw],Yw]}),PE),VE=v(2051),XE=[5,10,25,100];function GE(){var e=new EE;return e.disableClose=!0,e.autoFocus=!1,e}function JE(e){return"virt"===e.namespace.split(":")[4]}function QE(e,t,n,i){var r=t.active,o=t.direction;return r&&""!==o?e.sort(function(e,t){var a=n(e,r,i),s=n(t,r,i);return new Intl.Collator("cs",{numeric:!0}).compare(a,s)*("asc"===o?1:-1)}):e}function ZE(e,t,n,i,r,o){t=t.toLowerCase();var a="";return n.forEach(function(t){a+=";"+i(e,t,r)}),o&&(a+=";"+i(e,"uuid",r)),-1!==a.toLowerCase().indexOf(t)}function $E(e,t,n,i){var r=[],o=["checkbox","select","edit","menu","cite","extend","recent"];return t=t.filter(function(e){return!o.includes(e)}),e.forEach(function(e){var o={};t.forEach(function(t){var r;o[t]=(null!==(r=n(e,t,i))&&void 0!==r?r:"").split('"').join("''").trim()}),r.push(o)}),r}function eL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"csv",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"export";switch(t){case"csv":var i=function(e,t){return null===t?"":t},r=Object.keys(e[0]),o=e.map(function(e){return r.map(function(t){return JSON.stringify(e[t],i)}).join(",")});o.unshift(r.join(",").split(" ").join("_").split('"').join("''"));var a=o.join("\r\n"),s=new Blob([a],{type:"text/csv"});(0,VE.saveAs)(s,"".concat(n,".").concat(t))}}var tL=function(){var e=function e(){_(this,e),this.exportData=new Sc};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&($a(0,"div",0),$a(1,"button",1),$a(2,"mat-icon"),qs(3,"more_vert"),es(),es(),$a(4,"mat-menu",null,2),$a(6,"button",3),qs(7),_c(8,"translate"),es(),es(),$a(9,"mat-menu",null,4),$a(11,"button",5),cs("click",function(){return t.exportData.emit("csv")}),qs(12,"Csv"),es(),es(),es()),2&e){var n=Ga(5),i=Ga(10);yo(1),Qa("matMenuTriggerFor",n),yo(5),Qa("matMenuTriggerFor",i),yo(1),Ys(" ",bc(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[BM,HC,iE,NC,OC],pipes:[kE],styles:[""]}),e}();function nL(e,t){if(1&e){var n=os();$a(0,"perun-web-apps-table-options",6),cs("exportData",function(e){return Qt(n),ps().exportData.emit(e)}),es()}}var iL,rL=["*"],oL=((iL=function(){function e(){_(this,e),this.hideExport=!1,this.page=new Sc,this.pageSizeOptions=XE,this.pageSize=5,this.dataLength=0,this.exportData=new Sc}return w(e,[{key:"matPaginator",set:function(e){this.paginator=e}},{key:"pageChanged",value:function(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.page.emit(e),this.paginator.page.emit(e)}}]),e}()).\u0275fac=function(e){return new(e||iL)},iL.\u0275cmp=ct({type:iL,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){var n;1&e&&Fc(_C,7),2&e&&Bc(n=qc())&&(t.matPaginator=n.first)},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",pageSize:"pageSize",dataLength:"dataLength"},outputs:{page:"page",exportData:"exportData"},ngContentSelectors:rL,decls:7,vars:8,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(e,t){1&e&&(ms(),$a(0,"div",0),$a(1,"div",1),$a(2,"mat-paginator",2),cs("page",function(e){return t.page.emit(e)}),es(),Xa(3,nL,1,0,"perun-web-apps-table-options",3),es(),$a(4,"div",4),vs(5),es(),$a(6,"mat-paginator",5),cs("page",function(e){return t.pageChanged(e)}),es(),es()),2&e&&(yo(2),Qa("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),yo(1),Qa("ngIf",!t.hideExport),yo(3),Qa("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize))},directives:[_C,Xh,tL],styles:[""]}),iL),aL=function(){var e=function(){function e(t){_(this,e),this.dialogRef=t}return w(e,[{key:"close",value:function(){this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),es(),$a(3,"div",1),qs(4),_c(5,"translate"),es(),$a(6,"div",2),$a(7,"div",3),$a(8,"button",4),cs("click",function(){return t.close()}),qs(9),_c(10,"translate"),es(),es(),es()),2&e&&(yo(1),js(bc(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),yo(3),Ys(" ",bc(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),yo(5),Ys(" ",bc(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[YE,WE,UE,BM],pipes:[kE],styles:[""]}),e}(),sL=function(){var e=function(){function e(){_(this,e),this.branding=""}return w(e,[{key:"setInstanceConfig",value:function(e){this.instanceConfig=e}},{key:"setDefaultConfig",value:function(e){this.defaultConfig=e}},{key:"setPerunPrincipal",value:function(e){this.principal=e}},{key:"getPerunPrincipal",value:function(){return this.principal}},{key:"getInitialPageId",value:function(){return this.initialPageId}},{key:"setInitialPageId",value:function(e){this.initialPageId=e}},{key:"getLoginAttributeNames",value:function(){return this.get("login_namespace_attributes")}},{key:"getMemberProfileAttributeNames",value:function(){return this.get("member_profile_attributes_friendly_names")}},{key:"setBanding",value:function(e){this.branding=e}},{key:"skipOidc",value:function(){return this.get("skip_oidc")}},{key:"get",value:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]: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)}},{key:"showError",value:function(e,t,n,i,r){this.addNotification.emit({type:"error",error:t,description:n,title:e,actionText:void 0===i&&void 0!==n?this.getDefaultActionMessage():i,delay:this.defaultErrorDelayMs,icon:"error_outline",action:r,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}},{key:"showSuccess",value:function(e,t,n,i){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===n&&void 0!==t?this.getDefaultActionMessage():n,delay:this.defaultSuccessDelayMs,icon:"done",action:i,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(AE))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),pL=function(){var e=function(){function e(t,n,i,r,o,a){_(this,e),this.authService=t,this.apiRequestConfiguration=n,this.notificator=i,this.store=r,this.dialog=o,this.initAuthService=a}return w(e,[{key:"intercept",value:function(e,t){var n=this,i=this.store.get("api_url");if(-1!==e.url.indexOf("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==e.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()){var r=GE();r.width="450px",this.dialog.open(aL,r).afterClosed().subscribe(function(){n.authService.startAuthentication().then(function(){})})}e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});var o=this.apiRequestConfiguration.shouldHandleError(),a="POST"===e.method&&!this.store.skipOidc();return t.handle(e).pipe(Kp(function(e){e instanceof vf&&a&&n.initAuthService.loadPrincipal()},function(t){var i=n.formatErrors(t,e);return void 0===i?dA(t):o?void n.notificator.showRPCError(i):dA(i)}))}},{key:"formatErrors",value:function(e,t){var n;if(console.error(e),e.error.errorId?n=e.error:e.errorId&&(n=JSON.parse(e.error)),void 0!==n)return n.call=t.url,n.payload=t.body,n}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(uL),Ei(dL),Ei(fL),Ei(sL),Ei(qE),Ei(lL))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),gL=function(){var e=function(){function e(){_(this,e),this.notificationData=[],this.newNotificationsCount=0}return w(e,[{key:"storeNotification",value:function(e){this.newNotificationsCount++,this.notificationData.push(e)}},{key:"getNotifications",value:function(){return this.notificationData.reverse()}},{key:"clearNotifications",value:function(){this.notificationData=[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),mL=function(){var e=function(){function e(t,n,i,r){_(this,e),this.http=t,this.notificator=n,this.authService=i,this.storeService=r}return w(e,[{key:"getApiUrl",value:function(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}},{key:"formatErrors",value:function(e,t,n,i){var r=e.error;return r.call=t,r.payload=n,i&&this.notificator.showRPCError(e.error),dA(r)}},{key:"getHeaders",value:function(){var e=new rf;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue())}},{key:"get",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]||new uf,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]),i="".concat(this.getApiUrl()).concat(e);return this.http.get(i,{headers:this.getHeaders()}).pipe(Rp(function(e){return t.formatErrors(e,i,null,n)}))}},{key:"put",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(e),o=JSON.stringify(n);return this.http.put(r,o,{headers:this.getHeaders()}).pipe(Rp(function(e){return t.formatErrors(e,r,o,i)}))}},{key:"post",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(e),o=JSON.stringify(n),a=this.getHeaders();return a=a.set("Content-Type","application/json; charset=utf-8"),this.http.post(r,o,{headers:a}).pipe(Rp(function(e){return t.formatErrors(e,r,o,i)}))}},{key:"delete",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i="".concat(this.getApiUrl()).concat(e);return this.http.delete(i,{headers:this.getHeaders()}).pipe(Rp(function(e){return t.formatErrors(e,i,null,n)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Df),Ei(fL),Ei(uL),Ei(sL))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),vL=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"isAllSelectedWithDisabledCheckbox",value:function(e,t,n,i,r,o,a,s){var u=this;return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=r*n,this.pageEnd=this.pageStart+n,this.pageIterator=0,this.dataLength=""===t?o.data.length:o.filteredData.length,i||(this.modulo=this.dataLength%n,this.pageEnd=0===this.modulo?this.pageStart+n:this.pageStart+this.modulo),o.sortData(o.filteredData,a).forEach(function(e){u.pageStart<=u.pageIterator&&u.pageIterator closed",[u_(".3s ease-in")])]);var yL=s_("flyInOut",[p_(":enter",[h_({transform:"translateX(100%)"}),u_(".25s")]),p_(":leave",[u_(".5s",h_({transform:"translateX(100%)"}))])]);s_("rollInOut",[p_(":enter",[h_({height:"0px"}),u_(".25s")]),p_(":leave",[u_(".25s",h_({height:"0px"}))])]),s_("routeAnimations",[p_("* => *",[h_({position:"relative"}),m_(":enter",[h_({width:"100%",opacity:0})],{optional:!0}),m_(":leave",[h_({position:"absolute",width:"100%",opacity:1}),u_("0.15s",h_({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),m_(":enter",[h_({position:"absolute",width:"100%",opacity:0}),u_("0.15s",h_({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),s_("tagsOpenClose",[d_("open",h_({})),d_("closed",h_({width:"0px",height:"0px"})),p_("open <=> closed",[u_(".3s ease-in")])]),s_("switchAnimations",[p_("true => false",[m_(":enter, :leave",h_({})),c_([m_(":enter",[h_({transform:"translateX(-100%)"}),u_("1s ease-in-out",h_({transform:"translateX(0%)"}))],{optional:!0}),m_(":leave",[h_({transform:"translateX(0%)",position:"absolute"}),u_("1s ease-in-out",h_({transform:"translateX(100%)"}))],{optional:!0})])]),p_("false => true",[m_(":enter, :leave",h_({})),c_([m_(":enter",[h_({transform:"translateX(100%)"}),u_("1s ease-in-out",h_({transform:"translateX(0%)"}))],{optional:!0}),m_(":leave",[h_({transform:"translateX(0%)",position:"absolute"}),u_("1s ease-in-out",h_({transform:"translateX(-100%)"}))],{optional:!0})])])]),s_("slideInOutLeft",[p_(":enter",[h_({transform:"translateX(-100%)",position:"relative"}),u_("0.5s ease-in",h_({transform:"translateX(0%)"}))]),p_(":leave",[u_("0.5s ease-in",h_({transform:"translateX(-100%)"}))])]),s_("slideInOutRight",[p_(":enter",[h_({transform:"translateX(100%)",position:"fixed"}),u_("0.5s ease-in",h_({transform:"translateX(0%)"}))]),p_(":leave",[h_({transform:"translateX(-100%)",position:"relative"}),u_("0.5s ease-in",h_({transform:"translateX(100%)"}))])]);var _L,bL=((_L=function e(){_(this,e)}).\u0275fac=function(e){return new(e||_L)},_L.\u0275mod=ft({type:_L}),_L.\u0275inj=xe({imports:[[ld]]}),_L),wL=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e){var t="";return null!==e.titleBefore&&(t+=e.titleBefore+" "),null!==e.firstName&&(t+=e.firstName+" "),null!==e.middleName&&(t+=e.middleName+" "),null!==e.lastName&&(t+=e.lastName+" "),null!==e.titleAfter&&(t+=e.titleAfter+" "),t.endsWith(" ")&&(t=t.substring(0,t.length-1)),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=mt({name:"userFullName",type:e,pure:!0}),e}(),ML=function(){var e=function(){function e(t,n){_(this,e),this.translate=t,this.storage=n}return w(e,[{key:"transform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",n=this.storage.get("custom_labels");if(n)for(var i=Object.keys(n),r=0,o=i;r0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(t||this._minRows!==this._previousMinRows||i!==this._previousValue){var r=this._measureScrollHeight(),o=Math.max(r,this._cachedPlaceholderHeight||0);n.style.height="".concat(o,"px"),this._ngZone.runOutsideAngular(function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(function(){return e._scrollToCaretPosition(n)}):setTimeout(function(){return e._scrollToCaretPosition(n)})}),this._previousValue=i,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var t=e.selectionStart,n=e.selectionEnd,i=this._getDocument();this._destroyed.isStopped||i.activeElement!==e||e.setSelectionRange(t,n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(vy),Ja(dl),Ja(Ul,8))},e.\u0275dir=gt({type:e,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&cs("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),e}(),BL=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[yy]]}),e}(),FL=new hi("MAT_INPUT_VALUE_ACCESSOR"),HL=["button","checkbox","file","hidden","image","radio","range","reset","submit"],qL=0,jL=Xw(function e(t,n,i,r){_(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),YL=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u,c,l,h){var d;_(this,n),(d=t.call(this,s,o,a,r))._elementRef=e,d._platform=i,d.ngControl=r,d._autofillMonitor=c,d._formField=h,d._uid="mat-input-"+qL++,d.focused=!1,d.stateChanges=new Y,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return by().has(e)});var f=d._elementRef.nativeElement,p=f.nodeName.toLowerCase();return d._inputValueAccessor=u||f,d._previousNativeValue=d.value,d.id=d.id,i.IOS&&l.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||0!==t.selectionStart||0!==t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===p,d._isTextarea="textarea"===p,d._isNativeSelect&&(d.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select"),d}return w(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=ay(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=ay(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&by().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=ay(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){HL.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var 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}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(jL);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(vy),Ja(RT,10),Ja(oS,8),Ja(vS,8),Ja(aM),Ja(FL,10),Ja(NL),Ja(dl),Ja(Zk,8))},e.\u0275dir=gt({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&cs("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(Vs("disabled",t.disabled)("required",t.required),Ua("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),Es("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[cu([{provide:qk,useExisting:e}]),Oa,Et]}),e}(),WL=((EL=function e(){_(this,e)}).\u0275fac=function(e){return new(e||EL)},EL.\u0275mod=ft({type:EL}),EL.\u0275inj=xe({providers:[aM],imports:[[BL,eT,Yw],BL,eT]}),EL);function UL(e,t){1&e&&ts(0,"mat-spinner",7)}function KL(e,t){1&e&&($a(0,"mat-error"),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function VL(e,t){1&e&&($a(0,"mat-error"),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function XL(e,t){if(1&e){var n=os();$a(0,"div",8),$a(1,"mat-form-field"),$a(2,"mat-label"),qs(3),_c(4,"translate"),es(),$a(5,"input",9,10),cs("ngModelChange",function(e){return Qt(n),ps().subject=e}),es(),Xa(7,KL,3,3,"mat-error",11),es(),$a(8,"mat-form-field"),$a(9,"mat-label"),qs(10),_c(11,"translate"),es(),$a(12,"textarea",12,13),cs("ngModelChange",function(e){return Qt(n),ps().message=e}),_c(14,"translate"),qs(15," "),es(),Xa(16,VL,3,3,"mat-error",11),es(),es()}if(2&e){var i=Ga(6),r=Ga(13),o=ps();yo(3),js(bc(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),yo(2),Qa("ngModel",o.subject),yo(2),Qa("ngIf",i.invalid),yo(3),js(bc(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),yo(2),ys("placeholder",bc(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),Qa("ngModel",o.message),yo(4),Qa("ngIf",r.invalid)}}var GL=function(){var e=function(){function e(t,n,i,r,o,a){_(this,e),this.dialogRef=t,this.translate=n,this.notificator=i,this.rtMessages=r,this.data=o,this.storeService=a,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}return w(e,[{key:"ngOnInit",value:function(){this.data.error&&this.data.error.errorId&&(this.subject=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE")+this.parseMethod(this.data.error.call)+" ("+this.data.error.errorId+")")}},{key:"sendBugReport",value:function(){var e=this;this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(function(t){e.dialogRef.afterClosed().subscribe(function(){e.notificator.showSuccess(e.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+e.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),e.dialogRef.close()},function(){e.loading=!1,e.dialogRef.afterClosed().subscribe(function(){})})}},{key:"getFullEmailBody",value:function(){var e=this.storeService.get("config"),t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;return t=(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n")).concat(this.data.error.message+"\nPerun instance: "+e+"\nRequest:\n"+this.data.error.call+"\n\n"),this.data.error.payload&&(t=t.concat("Payload:\n"+this.data.error.payload+"\n\n")),(t=t.concat("Sended from new Perun Gui, version: "+v(306).i8)).split("\n").join("\n ")}},{key:"parseMethod",value:function(e){return e?this.methodRegexp.exec(e)[1]:e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE),Ja(AE),Ja(fL),Ja(tp),Ja(NE),Ja(sL))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),es(),Xa(3,UL,1,0,"mat-spinner",1),Xa(4,XL,17,13,"div",2),$a(5,"div",3),$a(6,"div",4),$a(7,"button",5),cs("click",function(){return t.dialogRef.close()}),qs(8),_c(9,"translate"),es(),$a(10,"button",6),cs("click",function(){return t.sendBugReport()}),qs(11),_c(12,"translate"),es(),es(),es()),2&e&&(yo(1),js(bc(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),yo(2),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading),yo(4),Ys(" ",bc(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),yo(2),Qa("disabled",""===t.message||""===t.subject||t.loading),yo(1),Ys(" ",bc(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[YE,Xh,UE,BM,xL,WE,$k,Uk,YL,uT,_S,xT,uS,Fk],pipes:[kE],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),e}(),JL=function(){var e=function(){function e(t,n,i){_(this,e),this.dialogRef=t,this.dialog=n,this.data=i}return w(e,[{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"onBugReportClick",value:function(){var e=this;this.dialogRef.afterClosed().subscribe(function(){var t=GE();t.width="550px",t.data={error:e.data.error},t.autoFocus=!1,e.dialog.open(GL,t)}),this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE),Ja(qE),Ja(NE))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),es(),$a(2,"div",1),qs(3),es(),$a(4,"div",2),$a(5,"div",3),$a(6,"button",4),cs("click",function(){return t.onBugReportClick()}),qs(7),_c(8,"translate"),es(),$a(9,"button",5),cs("click",function(){return t.onCloseClick()}),qs(10),_c(11,"translate"),es(),es(),es()),2&e&&(yo(1),js(t.data.title),yo(2),Ys("\n",t.data.description,"\n"),yo(3),Qa("hidden","error"!==t.data.type),yo(1),Ys(" ",bc(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),yo(3),Ys(" ",bc(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[YE,WE,UE,BM],pipes:[kE],styles:[""]}),e}(),QL=[[["caption"]],[["colgroup"],["col"]]],ZL=["caption","colgroup, col"];function $L(e){return function(e){d(n,e);var t=p(n);function n(){var e;_(this,n);for(var i=arguments.length,r=new Array(i),o=0;o4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6?arguments[6]:void 0;_(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(n,"-border-elem-top"),bottom:"".concat(n,"-border-elem-bottom"),left:"".concat(n,"-border-elem-left"),right:"".concat(n,"-border-elem-right")}}return w(e,[{key:"clearStickyPositioning",value:function(e,t){var n,i=this,r=[],o=a(e);try{for(o.s();!(n=o.n()).done;){var s=n.value;if(s.nodeType===s.ELEMENT_NODE){r.push(s);for(var u=0;u3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||n.some(function(e){return e}))){var o=e[0],s=o.children.length,u=this._getCellWidths(o,r),c=this._getStickyStartColumnPositions(u,t),l=this._getStickyEndColumnPositions(u,n),h=t.lastIndexOf(!0),d=n.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var r,o="rtl"===i.direction,f=o?"right":"left",p=o?"left":"right",g=a(e);try{for(g.s();!(r=g.n()).done;)for(var m=r.value,v=0;v1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=e.children,r=0;r0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}}]),e}(),kz=new hi("CDK_SPL"),Tz=function(){var e=function e(t,n){_(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(Ja($u),Ja(mu))},e.\u0275dir=gt({type:e,selectors:[["","rowOutlet",""]]}),e}(),Sz=function(){var e=function e(t,n){_(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(Ja($u),Ja(mu))},e.\u0275dir=gt({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),Cz=function(){var e=function e(t,n){_(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(Ja($u),Ja(mu))},e.\u0275dir=gt({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),Ez=function(){var e=function e(t,n){_(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(Ja($u),Ja(mu))},e.\u0275dir=gt({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),Lz=function(){var e=function(){function e(t,n,i,r,o,a,s,u,c,l,h){_(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=o,this._platform=s,this._viewRepeater=u,this._coalescedStyleScheduler=c,this._viewportRuler=l,this._stickyPositioningListener=h,this._onDestroy=new Y,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.viewChange=new lp({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return w(e,[{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=ay(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=ay(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler.change().pipe(sA(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var 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()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),bA(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,n,function(t,n,i){return e._getEmbeddedViewArgs(t.item,i)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(r(t),r(n),r(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var i=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),r=i.map(function(e){return e.sticky}),o=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,i=a(this._getCellTemplates(e));try{for(i.s();!(n=i.n()).done;){var r=n.value;yz.mostRecentCellOutlet&&yz.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t)}}catch(o){i.e(o)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t0&&void 0!==arguments[0]?arguments[0]:[];return _(this,i),(e=n.call(this))._renderData=new lp([]),e._filter=new lp(""),e._internalPageChanges=new Y,e._renderChangesSubscription=null,e.sortingDataAccessor=function(e,t){var n=e[t];if(uy(n)){var i=Number(n);return i<9007199254740991?i:n}return n},e.sortData=function(t,n){var i=n.active,r=n.direction;return i&&""!=r?t.sort(function(t,n){var o=e.sortingDataAccessor(t,i),a=e.sortingDataAccessor(n,i),s=typeof o,u=typeof a;s!==u&&("number"===s&&(o+=""),"number"===u&&(a+=""));var c=0;return null!=o&&null!=a?o>a?c=1:o0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,t._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var e;null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=null}}]),i}(function(){return function e(){_(this,e)}}()));function Vz(e,t){1&e&&ts(0,"mat-spinner",3)}function Xz(e,t){1&e&&ts(0,"th",15)}function Gz(e,t){if(1&e&&($a(0,"td",16),qs(1),es()),2&e){var n=t.$implicit;yo(1),Ys(" ",n.userExtSource.extSource.name," ")}}function Jz(e,t){1&e&&ts(0,"tr",17)}function Qz(e,t){1&e&&ts(0,"tr",18)}function Zz(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"div",4),$a(2,"p"),qs(3),_c(4,"translate"),_c(5,"customTranslate"),es(),$a(6,"div",5),qs(7),_c(8,"translate"),_c(9,"customTranslate"),es(),$a(10,"table",6),ns(11,7),Xa(12,Xz,1,0,"th",8),Xa(13,Gz,2,1,"td",9),is(),Xa(14,Jz,1,0,"tr",10),Xa(15,Qz,1,0,"tr",11),es(),es(),$a(16,"div",12),$a(17,"button",13),cs("click",function(){return Qt(n),ps().onCancel()}),qs(18),_c(19,"translate"),_c(20,"customTranslate"),es(),$a(21,"button",14),cs("click",function(){return Qt(n),ps().onSubmit()}),qs(22),_c(23,"translate"),_c(24,"customTranslate"),es(),es(),es()}if(2&e){var i=ps();yo(3),Ys(" ",bc(4,7,bc(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),yo(4),Ys(" ",bc(8,11,bc(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),yo(3),Qa("dataSource",i.dataSource),yo(4),Qa("matHeaderRowDef",i.displayedColumns),yo(1),Qa("matRowDefColumns",i.displayedColumns),yo(3),Ys(" ",bc(19,15,bc(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),yo(4),Ys(" ",bc(23,19,bc(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}var $z,eR=function(){var e=function(){function e(t,n,i,r,o){var a=this;_(this,e),this.dialogRef=t,this.data=n,this.usersManagerService=i,this.translate=r,this.notificator=o,this.force=!1,this.displayedColumns=["name"],r.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(function(e){return a.successMessage=e})}return w(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new Kz(this.data.extSources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(function(){e.onSubmit()},function(){return e.loading=!1}):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE),Ja(NE),Ja(rp),Ja(AE),Ja(fL))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div"),Xa(5,Vz,1,0,"mat-spinner",1),Xa(6,Zz,25,23,"div",2),es()),2&e&&(yo(1),js(bc(2,6,bc(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE"))),yo(3),Ls(t.theme),yo(1),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading))},directives:[YE,Xh,xL,WE,Pz,Bz,Iz,Nz,qz,jz,UE,BM,Fz,Hz,Yz,Wz],pipes:[kE,ML],styles:[""]}),e}(),tR=function(){function e(t,n){_(this,e),this._document=n;var i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}return w(e,[{key:"copy",value:function(){var e=this._textarea,t=!1;try{if(e){var n=this._document.activeElement;e.select(),e.setSelectionRange(0,e.value.length),t=this._document.execCommand("copy"),n&&n.focus()}}catch(Nj){}return t}},{key:"destroy",value:function(){var e=this._textarea;e&&(e.parentNode&&e.parentNode.removeChild(e),this._textarea=void 0)}}]),e}(),nR=function(){var e=function(){function e(t){_(this,e),this._document=t}return w(e,[{key:"copy",value:function(e){var t=this.beginCopy(e),n=t.copy();return t.destroy(),n}},{key:"beginCopy",value:function(e){return new tR(e,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(Ul))},token:e,providedIn:"root"}),e}(),iR=new hi("CDK_COPY_TO_CLIPBOARD_CONFIG"),rR=function(){var e=function(){function e(t,n,i){_(this,e),this._clipboard=t,this._ngZone=n,this.text="",this.attempts=1,this.copied=new Sc,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}return w(e,[{key:"copy",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(t>1){var n=t,i=this._clipboard.beginCopy(this.text);this._pending.add(i);var r=function t(){var r=i.copy();r||!--n||e._destroyed?(e._currentTimeout=null,e._pending.delete(i),i.destroy(),e.copied.emit(r)):e._currentTimeout=e._ngZone.runOutsideAngular(function(){return setTimeout(t,1)})};r()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(function(e){return e.destroy()}),this._pending.clear(),this._destroyed=!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(nR),Ja(dl),Ja(iR,8))},e.\u0275dir=gt({type:e,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&cs("click",function(){return t.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),e}(),oR=(($z=function e(){_(this,e)}).\u0275fac=function(e){return new(e||$z)},$z.\u0275mod=ft({type:$z}),$z.\u0275inj=xe({}),$z),aR=function(){var e=function(){function e(t,n){_(this,e),this.dialogRef=t,this.data=n}return w(e,[{key:"ngOnInit",value:function(){this.value=this.data.value,this.title=this.data.title}},{key:"onCancel",value:function(){this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE),Ja(NE))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),es(),$a(2,"div",1),$a(3,"textarea",2),qs(4),es(),es(),$a(5,"div",3),$a(6,"button",4),cs("click",function(){return t.onCancel()}),qs(7),_c(8,"translate"),es(),$a(9,"button",5),qs(10),_c(11,"translate"),es(),es()),2&e&&(yo(1),js(t.title),yo(3),js(t.value),yo(3),Ys(" ",bc(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),yo(2),Qa("cdkCopyToClipboard",t.value),yo(1),Ys(" ",bc(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[YE,WE,IL,YL,UE,BM,rR],pipes:[kE],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),e}(),sR=function(){var e=function(){function e(t,n){_(this,e),this.dialogRef=t,this.data=n,this.attributeValue=""}return w(e,[{key:"ngOnInit",value:function(){this.attributeValue=this.data.attribute.value[this.data.index]}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE),Ja(NE))},e.\u0275cmp=ct({type:e,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&&($a(0,"h5",0),qs(1),_c(2,"translate"),es(),$a(3,"div",1),$a(4,"mat-form-field"),$a(5,"textarea",2),cs("ngModelChange",function(e){return t.attributeValue=e}),es(),es(),es(),$a(6,"div",3),$a(7,"button",4),cs("click",function(){return t.cancel()}),qs(8),_c(9,"translate"),es(),$a(10,"button",5),cs("click",function(){return t.submit()}),qs(11),_c(12,"translate"),es(),es()),2&e&&(yo(1),js(bc(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE")),yo(4),Qa("ngModel",t.attributeValue),yo(3),Ys(" ",bc(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),yo(3),Ys(" ",bc(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[YE,WE,$k,IL,YL,uT,xT,uS,UE,BM],pipes:[kE],styles:[""]}),e}(),uR=function(){var e=function(){function e(t,n){_(this,e),this.dialogRef=t,this.data=n}return w(e,[{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE),Ja(NE))},e.\u0275cmp=ct({type:e,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&&($a(0,"h5",0),qs(1),_c(2,"translate"),es(),$a(3,"div",1),$a(4,"div"),qs(5),_c(6,"translate"),es(),$a(7,"div",2),qs(8),es(),es(),$a(9,"div",3),$a(10,"button",4),cs("click",function(){return t.cancel()}),qs(11),_c(12,"translate"),es(),$a(13,"button",5),cs("click",function(){return t.submit()}),qs(14),_c(15,"translate"),es(),es()),2&e&&(yo(1),js(bc(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE")),yo(4),Ys(" ",bc(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),yo(3),Ys(" ",t.data.name," "),yo(3),Ys(" ",bc(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),yo(3),Ys(" ",bc(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[YE,WE,UE,BM],pipes:[kE],styles:[""]}),e}();function cR(e,t){1&e&&($a(0,"mat-icon",2),qs(1," error "),es())}var lR=["*"],hR=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:lR,decls:3,vars:7,consts:[[1,"perun-alert","d-flex","align-items-center"],["class","perun-warn-alert-icon",4,"ngIf"],[1,"perun-warn-alert-icon"]],template:function(e,t){1&e&&(ms(),$a(0,"div",0),Xa(1,cR,2,0,"mat-icon",1),vs(2),es()),2&e&&(Es("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("info-alert","info"===t.alert_type),yo(1),Qa("ngIf","error"!==t.alert_type))},directives:[Xh,iE],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%], .perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-warn-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{color:#000;background-color:#fae2e2;border-left:4px solid;border-color:#d32f2f}"]}),e}();function dR(e,t){if(1&e&&($a(0,"app-alert",9),qs(1),es()),2&e){var n=ps();yo(1),js(n.pendingEmailsMessage)}}function fR(e,t){1&e&&($a(0,"mat-error"),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}var pR=function(){var e=function(){function e(t,n,i,r,o,a){var s=this;_(this,e),this.dialogRef=t,this.data=n,this.translate=i,this.notificator=r,this.usersManagerService=o,this.authService=a,this.pendingMails=[],i.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(function(e){return s.successMessage=e}),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(function(e){return s.pendingEmailsMessageStart=e}),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(function(e){return s.pendingEmailsMessageEnd=e})}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.emailControl=new eS(null,[pT.required,pT.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(function(t){e.pendingMails=t.filter(function(e,t,n){return t===n.indexOf(e)});var n="";e.pendingMails.forEach(function(t){return n+="".concat(t===e.pendingMails[0]?"":", ").concat(t)}),console.log(n),e.pendingEmailsMessage=e.pendingEmailsMessageStart+n+e.pendingEmailsMessageEnd})}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var e=this,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(function(){e.notificator.showSuccess(e.successMessage),e.dialogRef.close()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE),Ja(NE),Ja(AE),Ja(fL),Ja(rp),Ja(uL))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div",1),Xa(5,dR,2,1,"app-alert",2),$a(6,"mat-form-field",3),$a(7,"label",3),ts(8,"input",4),_c(9,"translate"),_c(10,"customTranslate"),es(),Xa(11,fR,4,5,"mat-error",5),es(),es(),$a(12,"div",6),$a(13,"button",7),cs("click",function(){return t.onCancel()}),qs(14),_c(15,"translate"),_c(16,"customTranslate"),es(),$a(17,"button",8),cs("click",function(){return t.onSubmit()}),qs(18),_c(19,"translate"),_c(20,"customTranslate"),es(),es()),2&e&&(yo(1),js(bc(2,8,bc(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),yo(4),Qa("ngIf",t.pendingMails.length),yo(3),ys("placeholder",bc(9,12,bc(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),Qa("formControl",t.emailControl),yo(3),Qa("ngIf",t.emailControl.invalid),yo(3),Ys(" ",bc(15,16,bc(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),yo(3),Qa("disabled",!t.emailControl.valid),yo(1),Ys(" ",bc(19,20,bc(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[YE,WE,Xh,$k,YL,uT,_S,xT,gS,UE,BM,hR,Fk],pipes:[kE,ML],styles:[""]}),e}(),gR=function(){var e=function(){function e(t,n){_(this,e),this.dialogRef=t,this.router=n}return w(e,[{key:"onClose",value:function(){this.router.navigate([]),this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE),Ja(Tv))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),es(),$a(3,"div",1),$a(4,"app-alert",2),qs(5),_c(6,"translate"),es(),es(),$a(7,"div",3),$a(8,"button",4),cs("click",function(){return t.onClose()}),qs(9),_c(10,"translate"),es(),es()),2&e&&(yo(1),js(bc(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE")),yo(4),js(bc(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),yo(4),Ys(" ",bc(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[YE,WE,hR,UE,BM],pipes:[kE],styles:[""]}),e}();function mR(e,t){if(1&e&&($a(0,"div",5),$a(1,"mat-icon"),qs(2),es(),es()),2&e){var n=ps();yo(2),js(n.data.icon)}}function vR(e,t){if(1&e&&($a(0,"div",6),qs(1),es()),2&e){var n=ps();yo(1),Ys(" ",n.showTimestamp()," ")}}var yR=function(){var e=function(){function e(t,n){_(this,e),this.dialog=t,this.notificationStorageService=n,this.newNotification=!1,this.closeNotification=new Sc,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}return w(e,[{key:"doAction",value:function(){var e=this;if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{var t=GE();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(JL,t).afterClosed().subscribe(function(){e.closeSelf()})}}},{key:"closeSelf",value:function(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}},{key:"ngOnInit",value:function(){var e=this;!function(t,n){return i=this,o=regeneratorRuntime.mark(function n(){var i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,i=t,new Promise(function(e){return setTimeout(e,i)});case 2:e.alreadyClosed||e.waiting||e.closeSelf();case 3:case"end":return n.stop()}},n)}),new((r=void 0)||(r=Promise))(function(e,t){function n(e){try{s(o.next(e))}catch(n){t(n)}}function a(e){try{s(o.throw(e))}catch(n){t(n)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r(function(e){e(i)})).then(n,a)}s((o=o.apply(i,[])).next())});var i,r,o}(this.data.delay)}},{key:"showTimestamp",value:function(){var e=t(this.data.timeStamp.split(":"),2),n=e[0],i=e[1];return i.length<2?n+":0"+i:this.data.timeStamp}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(qE),Ja(gL))},e.\u0275cmp=ct({type:e,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&&($a(0,"div"),$a(1,"div",0),cs("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),Xa(2,mR,3,1,"div",1),$a(3,"div",2),qs(4),_c(5,"translate"),es(),Xa(6,vR,2,1,"div",3),$a(7,"div",4),cs("click",function(){return t.waiting=!0,t.doAction()}),qs(8),es(),es(),es()),2&e&&(Ks("notification ",t.inDialog?"":"mat-elevation-z7",""),Es("error","error"===t.data.type)("success","success"===t.data.type),yo(2),Qa("ngIf",null!==t.data.icon),yo(2),Ys(" ",bc(5,12,t.data.title)," "),yo(2),Qa("ngIf",t.inDialog),yo(1),Qa("hidden",t.alreadyPressed),yo(1),Ys(" ",t.data.actionText," "))},directives:[Xh,iE],pipes:[kE],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width:768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),e}();function _R(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"perun-web-apps-notification",2),cs("closeNotification",function(){var e=Qt(n).index;return ps().removeNotification(e)}),es(),es()}if(2&e){var i=t.$implicit;Qa("@flyInOut",void 0),yo(1),Qa("data",i)("newNotification",!0)}}var bR=function(e){return{top:e}},wR=function(){var e=function(){function e(t,n){var i=this;_(this,e),this.notificator=t,this.notificationStorageService=n,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(function(e){i.processNotification(e)}),this.getScreenSize()}return w(e,[{key:"getScreenSize",value:function(){this.mobileView=window.innerWidth<=this.minWidth}},{key:"processNotification",value:function(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}},{key:"getNotificatorTop",value:function(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}},{key:"removeNotification",value:function(e){this.notifications.splice(e,1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(fL),Ja(gL))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&cs("resize",function(e){return t.getScreenSize(e)},!1,Er)},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&&($a(0,"div",0),Xa(1,_R,2,3,"div",1),es()),2&e&&(Qa("ngStyle",pc(2,bR,t.getNotificatorTop())),yo(1),Qa("ngForOf",t.notifications))},directives:[td,Kh,yR],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width:768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;bottom:0}}"],data:{animation:[yL]}}),e}(),MR=["*",[["mat-toolbar-row"]]],AR=["*","mat-toolbar-row"],kR=Uw(function e(t){_(this,e),this._elementRef=t}),TR=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),SR=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}return w(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(kR);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(vy),Ja(Ul))},e.\u0275cmp=ct({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;(1&e&&Hc(n,TR,5),2&e)&&(Bc(i=qc())&&(t._toolbarRows=i))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&Es("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Oa],ngContentSelectors:AR,decls:2,vars:0,template:function(e,t){1&e&&(ms(MR),vs(0),vs(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),CR=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[Yw],Yw]}),e}(),ER={provide:Zc,useFactory:function(e,t){return function(){if(hd(t)){var n=Array.from(e.querySelectorAll("[class*=".concat(LR,"]"))),i=/\bflex-layout-.+?\b/g;n.forEach(function(e){e.classList.contains("".concat(LR,"ssr"))&&e.parentNode?e.parentNode.removeChild(e):e.className.replace(i,"")})}}},deps:[Ul,Qc],multi:!0},LR="flex-layout-",zR=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[ER]}),e}(),RR=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;_(this,e),this.matches=t,this.mediaQuery=n,this.mqAlias=i,this.suffix=r,this.priority=o,this.property=""}return w(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),OR=function(){var e=function(){function e(){_(this,e),this.stylesheet=new Map}return w(e,[{key:"addStyleToElement",value:function(e,t,n){var i=this.stylesheet.get(e);i?i.set(t,n):this.stylesheet.set(e,new Map([[t,n]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(e,t){var n=this.stylesheet.get(e),i="";if(n){var r=n.get(t);"number"!=typeof r&&"string"!=typeof r||(i=r+"")}return i}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({factory:function(){return new e},token:e,providedIn:"root"}),e}(),xR={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},DR=new hi("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return xR}}),PR=new hi("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),NR=new hi("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function IR(e,t){return e=e?e.clone():new RR,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}var BR=["row","column","row-reverse","column-reverse"];function FR(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var HR=function(){var e=function(){function e(t,n,i,r){_(this,e),this.elementRef=t,this.styleBuilder=n,this.styler=i,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Y,this.styleCache=new Map}return w(e,[{key:"parentElement",get:function(){return this.elementRef.nativeElement.parentElement}},{key:"nativeElement",get:function(){return this.elementRef.nativeElement}},{key:"activatedValue",get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}},{key:"ngOnChanges",value:function(e){var t=this;Object.keys(e).forEach(function(n){if(-1!==t.inputs.indexOf(n)){var i=n.split(".").slice(1).join(".");t.setValue(e[n].currentValue,i)}})}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}},{key:"addStyles",value:function(e,t){var n=this.styleBuilder,i=n.shouldCache,r=this.styleCache.get(e);r&&i||(r=n.buildStyles(e,t),i&&this.styleCache.set(e,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),n.sideEffect(e,r,t)}},{key:"clearStyles",value:function(){var e=this;Object.keys(this.mru).forEach(function(t){e.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var i=this.styler.getFlowDirection(e),r=t(i,2),o=r[0],a=r[1];if(!a&&n){var s=function(e){var n=function(e){var n=t((e=e?e.toLowerCase():"").split(" "),3),i=n[0],r=n[1],o=n[2];return BR.find(function(e){return e===i})||(i=BR[0]),"inline"===r&&(r="inline"!==o?o:"",o="inline"),[i,FR(r),!!o]}(e),i=t(n,3);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(i[0],i[1],i[2])}(o);this.styler.applyStyleToElements(s,[e])}return o.trim()}return"row"}},{key:"hasWrap",value:function(e){return this.styler.hasWrap(e)}},{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(n,e,t)}},{key:"setValue",value:function(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}},{key:"updateWithValue",value:function(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}]),e}();return e.\u0275fac=function(e){!function(){throw new Error("invalid")}()},e.\u0275dir=gt({type:e,features:[Et]}),e}(),qR=[{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}],jR="(orientation: portrait) and (max-width: 599.98px)",YR="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",WR="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",UR="(orientation: portrait) and (min-width: 840px)",KR="(orientation: landscape) and (min-width: 1280px)",VR={HANDSET:"".concat(jR,", (orientation: landscape) and (max-width: 959.98px)"),TABLET:"".concat(YR," , ").concat(WR),WEB:"".concat(UR,", ").concat(KR," "),HANDSET_PORTRAIT:"".concat(jR),TABLET_PORTRAIT:"".concat(YR," "),WEB_PORTRAIT:"".concat(UR),HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:"".concat(WR),WEB_LANDSCAPE:"".concat(KR)},XR=[{alias:"handset",priority:2e3,mediaQuery:VR.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:VR.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:VR.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:VR.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:VR.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:VR.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:VR.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:VR.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:VR.WEB_PORTRAIT,overlapping:!0}],GR=/(\.|-|_)/g;function JR(e){var t=e.length>0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}var QR=new hi("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=Li(NR),t=Li(DR),n=[].concat.apply([],(e||[]).map(function(e){return Array.isArray(e)?e:[e]}));return function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i={};return e.forEach(function(e){i[e.alias]=e}),n.forEach(function(e){i[e.alias]?function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]&&arguments[1];if(e&&e.length){var i=this._observable$.pipe(Zd(function(t){return!n||e.indexOf(t.mediaQuery)>-1}));return le(new I(function(n){var i=t.registerQuery(e);if(i.length){var r=i.pop();i.forEach(function(e){n.next(e)}),t.source.next(r)}n.complete()}),i)}return this._observable$}},{key:"registerQuery",value:function(e){var t=this,n=Array.isArray(e)?e:[e],i=[];return function(e,t){var n=e.filter(function(e){return!nO[e]});if(n.length>0){var i=n.join(", ");try{var r=t.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(t.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ".concat(i," {.fx-query-test{ }}\n"))),t.head.appendChild(r),n.forEach(function(e){return nO[e]=r})}catch(o){console.error(o)}}}(n,this._document),n.forEach(function(e){var n=function(n){t._zone.run(function(){return t.source.next(new RR(n.matches,e))})},r=t.registry.get(e);r||((r=t.buildMQL(e)).addListener(n),t.pendingRemoveListenerFns.push(function(){return r.removeListener(n)}),t.registry.set(e,r)),r.matches&&i.push(new RR(!0,e))}),i}},{key:"ngOnDestroy",value:function(){for(var e;e=this.pendingRemoveListenerFns.pop();)e()}},{key:"buildMQL",value:function(e){return function(e,t){return t&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(e,hd(this._platformId))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(dl),Ei(Qc),Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(dl),Ei(Qc),Ei(Ul))},token:e,providedIn:"root"}),e}(),nO={},iO={alias:"print",mediaQuery:"print",priority:1e3},rO=function(){var e=function(){function e(t,n,i){_(this,e),this.breakpoints=t,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new oO,this.deactivations=[]}return w(e,[{key:"withPrintQuery",value:function(e){return[].concat(r(e),["print"])}},{key:"isPrintEvent",value:function(e){return e.mediaQuery.startsWith("print")}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var e=this;return this.printAlias.map(function(t){return e.breakpoints.findByAlias(t)}).filter(function(e){return null!==e})}},{key:"getEventBreakpoints",value:function(e){var t=e.mediaQuery,n=this.breakpoints.findByQuery(t);return(n?[].concat(r(this.printBreakPoints),[n]):this.printBreakPoints).sort(ZR)}},{key:"updateEvent",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=t?t.mediaQuery:""),IR(e,t)}},{key:"registerBeforeAfterPrintHooks",value:function(e){var t=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){t.isPrinting||(t.isPrintingBeforeAfterEvent=!0,t.startPrinting(e,t.getEventBreakpoints(new RR(!0,"print"))),e.updateStyles())},i=function(){t.isPrintingBeforeAfterEvent=!1,t.isPrinting&&(t.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(i)}}},{key:"interceptEvents",value:function(e){var t=this;return this.registerBeforeAfterPrintHooks(e),function(n){t.isPrintEvent(n)?n.matches&&!t.isPrinting?(t.startPrinting(e,t.getEventBreakpoints(n)),e.updateStyles()):n.matches||!t.isPrinting||t.isPrintingBeforeAfterEvent||(t.stopPrinting(e),e.updateStyles()):t.collectActivations(n)}}},{key:"blockPropagation",value:function(){var e=this;return function(t){return!(e.isPrinting||e.isPrintEvent(t))}}},{key:"startPrinting",value:function(e,t){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}},{key:"stopPrinting",value:function(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var t=this.breakpoints.findByQuery(e.mediaQuery);t&&(this.deactivations.push(t),this.deactivations.sort(ZR))}}},{key:"ngOnDestroy",value:function(){var e=this;this._document.defaultView&&(this.beforePrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("beforeprint",t)}),this.afterPrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("afterprint",t)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(eO),Ei(DR),Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(eO),Ei(DR),Ei(Ul))},token:e,providedIn:"root"}),e}(),oO=function(){function e(){_(this,e),this.printBreakpoints=[]}return w(e,[{key:"addPrintBreakpoints",value:function(e){var t=this;return e.push(iO),e.sort(ZR),e.forEach(function(e){return t.addBreakpoint(e)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(e){e&&void 0===this.printBreakpoints.find(function(t){return t.mediaQuery===e.mediaQuery})&&(this.printBreakpoints=function(e){return!!e&&e.mediaQuery.startsWith("print")}(e)?[e].concat(r(this.printBreakpoints)):[].concat(r(this.printBreakpoints),[e]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}();function aO(e){for(var t in e){var n=e[t]||"";switch(t){case"display":e.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;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":e["-webkit-"+t]=n;break;case"flex-direction":n=n||"row",e["-webkit-flex-direction"]=n,e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(+n)?"0":n}}return e}var sO=function(){var e=function(){function e(t,n,i,r){_(this,e),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=r}return w(e,[{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i={};"string"==typeof t&&(i[t]=n,t=i),i=this.layoutConfig.disableVendorPrefixes?t:aO(t),this._applyMultiValueStyleToElement(i,e)}},{key:"applyStyleToElements",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.layoutConfig.disableVendorPrefixes?e:aO(e);n.forEach(function(e){t._applyMultiValueStyleToElement(i,e)})}},{key:"getFlowDirection",value:function(e){var t=this.lookupStyle(e,"flex-direction");return[t||"row",this.lookupInlineStyle(e,"flex-direction")||dd(this._platformId)&&this._serverModuleLoaded?t:""]}},{key:"hasWrap",value:function(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}},{key:"lookupAttributeValue",value:function(e,t){return e.getAttribute(t)||""}},{key:"lookupInlineStyle",value:function(e,t){return hd(this._platformId)?e.style.getPropertyValue(t):this._getServerStyle(e,t)}},{key:"lookupStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="";return e&&((i=this.lookupInlineStyle(e,t))||(hd(this._platformId)?n||(i=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(e,t)))),i?i.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(e,t){var n=this;Object.keys(e).sort().forEach(function(i){var r=e[i],o=Array.isArray(r)?r:[r];o.sort();var s,u=a(o);try{for(u.s();!(s=u.n()).done;){var c=s.value;c=c?c+"":"",hd(n._platformId)||!n._serverModuleLoaded?hd(n._platformId)?t.style.setProperty(i,c):n._setServerStyle(t,i,c):n._serverStylesheet.addStyleToElement(t,i,c)}}catch(l){u.e(l)}finally{u.f()}})}},{key:"_setServerStyle",value:function(e,t,n){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var i=this._readStyleAttribute(e);i[t]=n||"",this._writeStyleAttribute(e,i)}},{key:"_getServerStyle",value:function(e,t){return this._readStyleAttribute(e)[t]||""}},{key:"_readStyleAttribute",value:function(e){var t={},n=e.getAttribute("style");if(n)for(var i=n.split(/;+/g),r=0;r0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: ".concat(o));t[o.substr(0,a).trim()]=o.substr(a+1).trim()}}return t}},{key:"_writeStyleAttribute",value:function(e,t){var n="";for(var i in t)t[i]&&(n+=i+":"+t[i]+";");e.setAttribute("style",n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(OR),Ei(PR),Ei(Qc),Ei(DR))},e.\u0275prov=Oe({factory:function(){return new e(Ei(OR),Ei(PR),Ei(Qc),Ei(DR))},token:e,providedIn:"root"}),e}(),uO=function(){function e(){_(this,e),this.shouldCache=!0}return w(e,[{key:"sideEffect",value:function(e,t,n){}}]),e}(),cO=function(){var e=function(){function e(t,n,i){_(this,e),this.matchMedia=t,this.breakpoints=n,this.hook=i,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 Y,this.observeActivations()}return w(e,[{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}},{key:"onMediaChange",value:function(e){var t=this.findByQuery(e.mediaQuery);t&&((e=IR(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort(ZR),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort(ZR),this.updateStyles()))}},{key:"init",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];lO(this.updateMap,e,t,n),lO(this.clearMap,e,t,i),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,r)}},{key:"getValue",value:function(e,t,n){var i=this.elementMap.get(e);if(i){var r=void 0!==n?i.get(n):this.getActivatedValues(i,t);if(r)return r.get(t)}}},{key:"hasValue",value:function(e,t){var n=this.elementMap.get(e);if(n){var i=this.getActivatedValues(n,t);if(i)return void 0!==i.get(t)||!1}return!1}},{key:"setValue",value:function(e,t,n,i){var r=this.elementMap.get(e);if(r){var o=(r.get(i)||new Map).set(t,n);r.set(i,o),this.elementMap.set(e,r)}else r=(new Map).set(i,(new Map).set(t,n)),this.elementMap.set(e,r);var a=this.getValue(e,t);void 0!==a&&this.updateElement(e,t,a)}},{key:"trackValue",value:function(e,t){return this.subject.asObservable().pipe(Zd(function(n){return n.element===e&&n.key===t}))}},{key:"updateStyles",value:function(){var e=this;this.elementMap.forEach(function(t,n){var i=new Set(e.elementKeyMap.get(n)),r=e.getActivatedValues(t);r&&r.forEach(function(t,r){e.updateElement(n,r,t),i.delete(r)}),i.forEach(function(i){if(r=e.getActivatedValues(t,i)){var o=r.get(i);e.updateElement(n,i,o)}else e.clearElement(n,i)})})}},{key:"clearElement",value:function(e,t){var n=this.clearMap.get(e);if(n){var i=n.get(t);i&&(i(),this.subject.next({element:e,key:t,value:""}))}}},{key:"updateElement",value:function(e,t,n){var i=this.updateMap.get(e);if(i){var r=i.get(t);r&&(r(n),this.subject.next({element:e,key:t,value:n}))}}},{key:"releaseElement",value:function(e){var t=this.watcherMap.get(e);t&&(t.forEach(function(e){return e.unsubscribe()}),this.watcherMap.delete(e));var n=this.elementMap.get(e);n&&(n.forEach(function(e,t){return n.delete(t)}),this.elementMap.delete(e))}},{key:"triggerUpdate",value:function(e,t){var n=this,i=this.elementMap.get(e);if(i){var r=this.getActivatedValues(i,t);r&&(t?this.updateElement(e,t,r.get(t)):r.forEach(function(t,i){return n.updateElement(e,i,t)}))}}},{key:"buildElementKeyMap",value:function(e,t){var n=this.elementKeyMap.get(e);n||(n=new Set,this.elementKeyMap.set(e,n)),n.add(t)}},{key:"watchExtraTriggers",value:function(e,t,n){var i=this;if(n&&n.length){var o=this.watcherMap.get(e);if(o||(o=new Map,this.watcherMap.set(e,o)),!o.get(t)){var a=le.apply(void 0,r(n)).subscribe(function(){var n=i.getValue(e,t);i.updateElement(e,t,n)});o.set(t,a)}}}},{key:"findByQuery",value:function(e){return this.breakpoints.findByQuery(e)}},{key:"getActivatedValues",value:function(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];_(this,e),this.key=t,this.value=n,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=this.value.replace(/;/,"")};function dO(e){var t=typeof e;return"object"===t?e.constructor===Array?"array":e.constructor===Set?"set":"object":t}function fO(e){var t,r=e.split(":"),a=i(t=r)||o(t)||s(t)||n(),u=a[0],c=a.slice(1);return new hO(u,c.join(":"))}function pO(e,t){return t.key&&(e[t.key]=t.value),e}var gO=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u,c,l){var h;_(this,n),(h=t.call(this,e,null,i,r)).sanitizer=o,h.ngStyleInstance=u,h.DIRECTIVE_KEY="ngStyle",h.ngStyleInstance||(h.ngStyleInstance=new td(e,a,s)),h.init();var d=h.nativeElement.getAttribute("style")||"";return h.fallbackStyles=h.buildStyleMap(d),h.isServer=c&&dd(l),h}return w(n,[{key:"updateWithValue",value:function(e){var t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),t),this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}},{key:"clearStyles",value:function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}},{key:"buildStyleMap",value:function(e){var t,n,i,r=this,o=function(e){return r.sanitizer.sanitize(vr.STYLE,e)||""};if(e)switch(dO(e)){case"string":return yO(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";";return String(e).trim().split(t).map(function(e){return e.trim()}).filter(function(e){return""!==e})}(e),o);case"array":return yO(e,o);case"set":default:return n=o,i=[],"set"===dO(t=e)?t.forEach(function(e){return i.push(e)}):Object.keys(t).forEach(function(e){i.push("".concat(e,":").concat(t[e]))}),function(e,t){return e.map(fO).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(pO,{})}(i,n)}return{}}},{key:"ngDoCheck",value:function(){this.ngStyleInstance.ngDoCheck()}}]),n}(HR);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(sO),Ja(cO),Ja(Wd),Ja(Iu),Ja(_u),Ja(td,10),Ja(PR),Ja(Qc))},e.\u0275dir=gt({type:e,features:[Oa]}),e}(),mO=["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"],vO=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments)).inputs=mO,e}return n}(gO);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275dir=gt({type:t,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:[Oa]}),t}();function yO(e,t){return e.map(fO).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(pO,{})}var _O=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[zR]]}),e}(),bO=function(e){return{color:e}};function wO(e,t){if(1&e&&($a(0,"button",8),_c(1,"translate"),$a(2,"mat-icon",4),qs(3," apps "),es(),es()),2&e){var n=ps();Qa("matMenuTriggerFor",Ga(2))("matTooltip",bc(1,3,"NAV.OTHER_APPLICATIONS")),yo(2),Qa("ngStyle",pc(5,bO,n.iconColor))}}function MO(e,t){if(1&e){var n=os();$a(0,"button",2),cs("click",function(){return Qt(n),ps().reloadRoles()}),qs(1),_c(2,"translate"),es()}2&e&&(yo(1),Ys(" ",bc(2,1,"NAV.RELOAD_ROLES")," "))}function AO(e,t){if(1&e){var n=os();$a(0,"button",2),cs("click",function(){return Qt(n),ps().onLogOut()}),qs(1),_c(2,"translate"),es()}2&e&&(yo(1),js(bc(2,1,"NAV.LOGOUT")))}var kO=function(){var e=function(){function e(t,n,i,r){_(this,e),this.authService=t,this.authzResolverService=n,this.notificator=i,this.translateService=r,this.showReloadRoles=!1}return w(e,[{key:"ngOnInit",value:function(){}},{key:"redirectToUrl",value:function(){window.open(this.url,"_blank")}},{key:"reloadRoles",value:function(){var e=this;this.authzResolverService.loadAuthorizationComponents().subscribe(function(){return e.notificator.showSuccess(e.translateService.instant("NAV.RELOAD_ROLES_SUCCESS"))})}},{key:"onLogOut",value:function(){this.authService.logout()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(uL),Ja(Zf),Ja(fL),Ja(AE))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",showReloadRoles:"showReloadRoles",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:15,vars:16,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(e,t){if(1&e&&(Xa(0,wO,4,7,"button",0),$a(1,"mat-menu",null,1),$a(3,"button",2),cs("click",function(){return t.redirectToUrl()}),$a(4,"span"),qs(5),es(),es(),es(),$a(6,"button",3),$a(7,"mat-icon",4),qs(8," person "),es(),$a(9,"span",5),qs(10),es(),es(),$a(11,"mat-menu",null,6),Xa(13,MO,3,3,"button",7),Xa(14,AO,3,3,"button",7),es()),2&e){var n=Ga(12);Qa("ngIf",t.url),yo(5),js(t.label),yo(1),Qa("matMenuTriggerFor",n),yo(1),Qa("ngStyle",pc(12,bO,t.iconColor)),yo(2),Qa("ngStyle",pc(14,bO,t.textColor)),yo(1),Us(" ",t.user.titleBefore," ",t.user.firstName," ",t.user.middleName," ",t.user.lastName," ",t.user.titleAfter," "),yo(3),Qa("ngIf",t.showReloadRoles),yo(1),Qa("ngIf",t.logoutEnabled)}},directives:[Xh,NC,OC,BM,HC,iE,td,rC],pipes:[kE],styles:["@media (max-width:991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),e}(),TO=function(e){return{color:e}};function SO(e,t){if(1&e){var n=os();$a(0,"button",5),cs("click",function(){return Qt(n),ps().onToggleSidenav()}),$a(1,"mat-icon"),qs(2,"menu"),es(),es()}if(2&e){var i=ps();Qa("ngStyle",pc(1,TO,i.iconColor))}}var CO=function(e){return{background:e}},EO=function(){return[]},LO=function(){return["/"]},zO=function(){var e=function(){function e(t,n,i,r,o,a){var s=this;_(this,e),this.storeService=t,this.sanitizer=n,this.translate=i,this.utilsService=r,this.authzResolverService=o,this.authService=a,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.sidenavToggle=new Sc,this.hideToggle=!1,this.disableLogo=!1,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.activeLink=!1,this.onToggleSidenav=function(){s.sidenavToggle.emit()}}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.translate.onLangChange.subscribe(function(t){e.label=e.storeService.get("header_label_".concat(t.lang)),e.adminLabel=e.storeService.get("admin_gui_label_".concat(t.lang))}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.isLinkToGuiActive()}},{key:"isLinkToGuiActive",value:function(){var e=this;for(var t in this.linkRoles=this.storeService.get("link_to_admin_gui_by_roles"),this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(t)&&(this.activeLink=!0);this.activeLink&&this.utilsService.getAppsConfig().subscribe(function(t){e.adminGuiUrl=t.brands[0].newApps.admin?t.brands[0].newApps.admin:null})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(sL),Ja(Wd),Ja(AE),Ja(op),Ja(Zf),Ja(uL))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-header"]],inputs:{hideToggle:"hideToggle",disableLogo:"disableLogo"},outputs:{sidenavToggle:"sidenavToggle"},decls:6,vars:18,consts:[[1,"sticky-top","header-container",3,"ngStyle"],["mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"ml-3",3,"innerHTML","routerLink"],[1,"ml-3","mt-auto","mb-auto","hide-label",3,"ngStyle"],["id","nav-menu-user-info",1,"justify-content-end",3,"url","label","user","logoutEnabled","iconColor","textColor"],["mat-icon-button","",3,"ngStyle","click"]],template:function(e,t){1&e&&($a(0,"mat-toolbar",0),Xa(1,SO,3,3,"button",1),ts(2,"a",2),$a(3,"p",3),qs(4),es(),ts(5,"perun-web-apps-header-menu",4),es()),2&e&&(Qa("ngStyle",pc(12,CO,t.bgColor)),yo(1),Qa("ngIf",!t.hideToggle),yo(1),Qa("innerHTML",t.logo,yr)("routerLink",t.disableLogo?fc(14,EO):fc(15,LO)),yo(1),Qa("ngStyle",pc(16,TO,t.textColor)),yo(1),js(t.label),yo(1),Qa("url",t.adminGuiUrl)("label",t.adminLabel)("user",t.principal.user)("logoutEnabled",t.logoutEnabled)("iconColor",t.iconColor)("textColor",t.textColor))},directives:[SR,td,vO,Xh,Cv,kO,BM,iE],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}}"]}),e}();function RO(e){return function(t){return t.lift(new OO(e))}}var OO=function(){function e(t){_(this,e),this.value=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new xO(e,this.value))}}]),e}(),xO=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).value=i,r}return w(n,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),n}(O),DO=["*"];function PO(e,t){if(1&e){var n=os();$a(0,"div",2),cs("click",function(){return Qt(n),ps()._onBackdropClicked()}),es()}2&e&&Es("mat-drawer-shown",ps()._isShowingBackdrop())}function NO(e,t){1&e&&($a(0,"mat-drawer-content"),vs(1,2),es())}var IO=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],BO=["mat-drawer","mat-drawer-content","*"];function FO(e,t){if(1&e){var n=os();$a(0,"div",2),cs("click",function(){return Qt(n),ps()._onBackdropClicked()}),es()}2&e&&Es("mat-drawer-shown",ps()._isShowingBackdrop())}function HO(e,t){1&e&&($a(0,"mat-sidenav-content",3),vs(1,2),es())}var qO=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],jO=["mat-sidenav","mat-sidenav-content","*"],YO=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",WO={transformDrawer:s_("transform",[d_("open, open-instant",h_({transform:"none",visibility:"visible"})),d_("void",h_({"box-shadow":"none",visibility:"hidden"})),p_("void => open-instant",u_("0ms")),p_("void <=> open, open-instant => void",u_("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},UO=new hi("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),KO=new hi("MAT_DRAWER_CONTAINER"),VO=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a){var s;return _(this,n),(s=t.call(this,r,o,a))._changeDetectorRef=e,s._container=i,s}return w(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._container._contentMarginChanges.subscribe(function(){e._changeDetectorRef.markForCheck()})}}]),n}(SA);return e.\u0275fac=function(t){return new(t||e)(Ja(ju),Ja(Te(function(){return GO})),Ja(mu),Ja(TA),Ja(dl))},e.\u0275cmp=ct({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&Cs("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[Oa],ngContentSelectors:DO,decls:1,vars:0,template:function(e,t){1&e&&(ms(),vs(0))},encapsulation:2,changeDetection:0}),e}(),XO=function(){var e=function(){function e(t,n,i,r,o,a,s){var u=this;_(this,e),this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=r,this._ngZone=o,this._doc=a,this._container=s,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Y,this._animationEnd=new Y,this._animationState="void",this.openedChange=new Sc(!0),this._openedStream=this.openedChange.pipe(Zd(function(e){return e}),ee(function(){})),this.openedStart=this._animationStarted.pipe(Zd(function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")}),RO(void 0)),this._closedStream=this.openedChange.pipe(Zd(function(e){return!e}),ee(function(){})),this.closedStart=this._animationStarted.pipe(Zd(function(e){return e.fromState!==e.toState&&"void"===e.toState}),RO(void 0)),this._destroyed=new Y,this.onPositionChanged=new Sc,this._modeChanged=new Y,this.openedChange.subscribe(function(e){e?(u._doc&&(u._elementFocusedBeforeDrawerWasOpened=u._doc.activeElement),u._takeFocus()):u._isFocusWithinDrawer()&&u._restoreFocus()}),this._ngZone.runOutsideAngular(function(){HM(u._elementRef.nativeElement,"keydown").pipe(Zd(function(e){return 27===e.keyCode&&!u.disableClose&&!Jv(e)}),sA(u._destroyed)).subscribe(function(e){return u._ngZone.run(function(){u.close(),e.stopPropagation(),e.preventDefault()})})}),this._animationEnd.pipe($M(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){var t=e.fromState,n=e.toState;(0===n.indexOf("open")&&"void"===t||"void"===n&&0===t.indexOf("open"))&&u.openedChange.emit(u._opened)})}return w(e,[{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=ay(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"!==this.mode:e},set:function(e){this._autoFocus=ay(e)}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle(ay(e))}},{key:"_takeFocus",value:function(){var e=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(function(t){t||"function"!=typeof e._elementRef.nativeElement.focus||e._elementRef.nativeElement.focus()})}},{key:"_restoreFocus",value:function(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}},{key:"_isFocusWithinDrawer",value:function(){var e,t=null===(e=this._doc)||void 0===e?void 0:e.activeElement;return!!t&&this._elementRef.nativeElement.contains(t)}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0)}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,t=arguments.length>1?arguments[1]:void 0;return this._setOpen(e,!e&&this._isFocusWithinDrawer(),t)}},{key:"_setOpen",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"program";return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",t&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(function(e){n.openedChange.pipe(kp(1)).subscribe(function(t){return e(t?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(e){this._animationStarted.next(e)}},{key:"_animationDoneListener",value:function(e){this._animationEnd.next(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(Wy),Ja(Zy),Ja(vy),Ja(dl),Ja(Ul,8),Ja(KO,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&ls("@transform.start",function(e){return t._animationStartListener(e)})("@transform.done",function(e){return t._animationDoneListener(e)}),2&e&&(Ua("align",null),Xs("@transform",t._animationState),Es("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:DO,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(ms(),$a(0,"div",0),vs(1),es())},directives:[SA],encapsulation:2,data:{animation:[WO.transformDrawer]},changeDetection:0}),e}(),GO=function(){var e=function(){function e(t,n,i,r,o){var a=this,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0;_(this,e),this._dir=t,this._element=n,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=u,this._drawers=new Ec,this.backdropClick=new Sc,this._destroyed=new Y,this._doCheckSubject=new Y,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Y,t&&t.change.pipe(sA(this._destroyed)).subscribe(function(){a._validateDrawers(),a.updateContentMargins()}),o.change().pipe(sA(this._destroyed)).subscribe(function(){return a.updateContentMargins()}),this._autosize=s}return w(e,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=ay(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:ay(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe(Cp(this._allDrawers),sA(this._destroyed)).subscribe(function(t){e._drawers.reset(t.filter(function(t){return!t._container||t._container===e})),e._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Cp(null)).subscribe(function(){e._validateDrawers(),e._drawers.forEach(function(t){e._watchDrawerToggle(t),e._watchDrawerPosition(t),e._watchDrawerMode(t)}),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._doCheckSubject.pipe(ty(10),sA(e._destroyed)).subscribe(function(){return e.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(e){return e.open()})}},{key:"close",value:function(){this._drawers.forEach(function(e){return e.close()})}},{key:"updateContentMargins",value:function(){var e=this,t=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){var i=this._left._getWidth();t+=i,n-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._getWidth();else if("push"==this._right.mode){var r=this._right._getWidth();n+=r,t-=r}n=n||null,(t=t||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:t,right:n},this._ngZone.run(function(){return e._contentMarginChanges.next(e._contentMargins)}))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return e._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(e){var t=this;e._animationStarted.pipe(Zd(function(e){return e.fromState!==e.toState}),sA(this._drawers.changes)).subscribe(function(e){"open-instant"!==e.toState&&"NoopAnimations"!==t._animationMode&&t._element.nativeElement.classList.add("mat-drawer-transition"),t.updateContentMargins(),t._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(sA(this._drawers.changes)).subscribe(function(){return t._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var t=this;e&&e.onPositionChanged.pipe(sA(this._drawers.changes)).subscribe(function(){t._ngZone.onMicrotaskEmpty.pipe(kp(1)).subscribe(function(){t._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var t=this;e&&e._modeChanged.pipe(sA(le(this._drawers.changes,this._destroyed))).subscribe(function(){t.updateContentMargins(),t._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(e){var t=this._element.nativeElement.classList,n="mat-drawer-container-has-open";e?t.add(n):t.remove(n)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach(function(t){"end"==t.position?e._end=t:e._start=t}),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)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var e=this;[this._start,this._end].filter(function(t){return t&&!t.disableClose&&e._canHaveBackdrop(t)}).forEach(function(e){return e._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(i_,8),Ja(mu),Ja(dl),Ja(ju),Ja(CA),Ja(UO),Ja(Rw,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,n){var i;(1&e&&(Hc(n,VO,5),Hc(n,XO,5)),2&e)&&(Bc(i=qc())&&(t._content=i.first),Bc(i=qc())&&(t._allDrawers=i))},viewQuery:function(e,t){var n;(1&e&&Fc(VO,5),2&e)&&(Bc(n=qc())&&(t._userContent=n.first))},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&Es("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[cu([{provide:KO,useExisting:e}])],ngContentSelectors:BO,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&&(ms(IO),Xa(0,PO,1,2,"div",0),vs(1),vs(2,1),Xa(3,NO,2,0,"mat-drawer-content",1)),2&e&&(Qa("ngIf",t.hasBackdrop),yo(3),Qa("ngIf",!t._content))},directives:[Xh,VO],styles:[YO],encapsulation:2,changeDetection:0}),e}(),JO=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a){return _(this,n),t.call(this,e,i,r,o,a)}return n}(VO);return e.\u0275fac=function(t){return new(t||e)(Ja(ju),Ja(Te(function(){return ZO})),Ja(mu),Ja(TA),Ja(dl))},e.\u0275cmp=ct({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&Cs("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[Oa],ngContentSelectors:DO,decls:1,vars:0,template:function(e,t){1&e&&(ms(),vs(0))},encapsulation:2,changeDetection:0}),e}(),QO=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return w(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(e){this._fixedInViewport=ay(e)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(e){this._fixedTopGap=sy(e)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(e){this._fixedBottomGap=sy(e)}}]),n}(XO);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275cmp=ct({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(Ua("align",null),Cs("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),Es("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:[Oa],ngContentSelectors:DO,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(ms(),$a(0,"div",0),vs(1),es())},directives:[SA],encapsulation:2,data:{animation:[WO.transformDrawer]},changeDetection:0}),t}(),ZO=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return n}(GO);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275cmp=ct({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,n){var i;(1&e&&(Hc(n,JO,5),Hc(n,QO,5)),2&e)&&(Bc(i=qc())&&(t._content=i.first),Bc(i=qc())&&(t._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&Es("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[cu([{provide:KO,useExisting:t}]),Oa],ngContentSelectors:jO,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(e,t){1&e&&(ms(qO),Xa(0,FO,1,2,"div",0),vs(1),vs(2,1),Xa(3,HO,2,0,"mat-sidenav-content",1)),2&e&&(Qa("ngIf",t.hasBackdrop),yo(3),Qa("ngIf",!t._content))},directives:[Xh,JO,SA],styles:[YO],encapsulation:2,changeDetection:0}),t}(),$O=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[ld,Yw,yy,EA],EA,Yw]}),e}(),ex=function(){var e=function(){function e(t){_(this,e),this.store=t}return w(e,[{key:"getSideMenuItems",value:function(){var e=this,t=this.store.get("displayed_tabs"),n=[];return t.forEach(function(e){switch(e){case"profile":n.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":n.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":n.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":n.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":n.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":n.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"settings":n.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.get("external_services").forEach(function(t){var i={icon:"insert_link",link:t.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};e.store.get("supportedLanguages").forEach(function(e){var n;i["label_".concat(e)]=null!==(n=t["label_".concat(e)])&&void 0!==n?n:t.label_en}),n.push(i)}),n}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(sL))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),tx=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[Yw],Yw]}),e}(),nx=["*"],ix='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n',rx=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],ox=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],ax=Ww(Kw(function e(){_(this,e)})),sx=Kw(function e(){_(this,e)}),ux=new hi("MatList"),cx=new hi("MatNavList"),lx=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._stateChanges=new Y,e}return w(n,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(ax);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275cmp=ct({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[cu([{provide:cx,useExisting:t}]),Oa,Et],ngContentSelectors:nx,decls:1,vars:0,template:function(e,t){1&e&&(ms(),vs(0))},styles:[ix],encapsulation:2,changeDetection:0}),t}(),hx=function(){var e=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this))._elementRef=e,i._stateChanges=new Y,"action-list"===i._getListType()&&e.nativeElement.classList.add("mat-action-list"),i}return w(n,[{key:"_getListType",value:function(){var e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(ax);return e.\u0275fac=function(t){return new(t||e)(Ja(mu))},e.\u0275cmp=ct({type:e,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[cu([{provide:ux,useExisting:e}]),Oa,Et],ngContentSelectors:nx,decls:1,vars:0,template:function(e,t){1&e&&(ms(),vs(0))},styles:[ix],encapsulation:2,changeDetection:0}),e}(),dx=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),e}(),fx=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),e}(),px=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;_(this,n),(a=t.call(this))._element=e,a._isInteractiveList=!1,a._destroyed=new Y,a._disabled=!1,a._isInteractiveList=!!(r||o&&"action-list"===o._getListType()),a._list=r||o;var s=a._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),a._list&&a._list._stateChanges.pipe(sA(a._destroyed)).subscribe(function(){i.markForCheck()}),a}return w(n,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(e){this._disabled=ay(e)}},{key:"ngAfterContentInit",value:function(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";e.changes.pipe(Cp(e)).subscribe(function(e){var i=e.length;uM(t,"".concat(n,"-2-line"),!1),uM(t,"".concat(n,"-3-line"),!1),uM(t,"".concat(n,"-multi-line"),!1),2===i||3===i?uM(t,"".concat(n,"-").concat(i,"-line"),!0):i>3&&uM(t,"".concat(n,"-multi-line"),!0)})}(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}]),n}(sx);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(ju),Ja(cx,8),Ja(ux,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,n){var i;(1&e&&(Hc(n,dx,5),Hc(n,fx,5),Hc(n,sM,5)),2&e)&&(Bc(i=qc())&&(t._avatar=i.first),Bc(i=qc())&&(t._icon=i.first),Bc(i=qc())&&(t._lines=i))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&Es("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[Oa],ngContentSelectors:ox,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&&(ms(rx),$a(0,"div",0),ts(1,"div",1),vs(2),$a(3,"div",2),vs(4,1),es(),vs(5,2),es()),2&e&&(yo(1),Qa("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[vM],encapsulation:2,changeDetection:0}),e}(),gx=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[cM,yM,Yw,bM,ld],cM,Yw,bM,tx]}),e}(),mx=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e,t,n){return e["".concat(n,"_").concat(t)]}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=mt({name:"localisedText",type:e,pure:!0}),e}(),vx=function(e){return{color:e}};function yx(e,t){if(1&e){var n=os();$a(0,"mat-list-item",2),cs("click",function(){var e=Qt(n).$implicit,t=ps();return e.external?t.goToURL(e.link):t.shouldHideMenu()}),$a(1,"mat-icon",3),qs(2),es(),$a(3,"span",4),qs(4),_c(5,"localisedText"),_c(6,"translate"),_c(7,"customTranslate"),es(),es()}if(2&e){var i=t.$implicit,r=ps();Es("activated",r.isActive(i.activatedRegex)),ys("routerLink",i.external?null:i.link),Qa("ngStyle",pc(16,vx,r.textColor)),yo(1),Qa("ngStyle",pc(18,vx,r.iconColor)),yo(1),js(i.icon),yo(2),js(i.external?Mc(5,7,i,r.lang,"label"):bc(6,11,wc(7,13,i.label,r.lang)))}}var _x=function(){var e=function(){function e(t,n,i,r){var o=this;_(this,e),this.sideMenuItemService=t,this.storeService=n,this.router=i,this.translateService=r,this.items=[],this.lang="en",this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.iconColor=this.storeService.get("theme","sidemenu_item_icon_color"),this.currentUrl=i.url,i.events.subscribe(function(e){e instanceof eg&&(o.currentUrl=e.url)})}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.translateService.onLangChange.subscribe(function(t){var n=t.lang;e.lang=n});var t=this.storeService.get("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(function(e){return t.includes(e.tabName)})}},{key:"isActive",value:function(e){return new RegExp(e).test(this.currentUrl)}},{key:"shouldHideMenu",value:function(){"over"===this.sideNav.mode&&this.sideNav.close()}},{key:"goToURL",value:function(e){window.open(e,"_blank")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(ex),Ja(sL),Ja(Tv),Ja(AE))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["disableRipple","","class","side-menu-item-height",3,"activated","ngStyle","routerLink","click",4,"ngFor","ngForOf"],["disableRipple","",1,"side-menu-item-height",3,"ngStyle","routerLink","click"],[3,"ngStyle"],[1,"nav-caption","ml-3"]],template:function(e,t){1&e&&($a(0,"mat-nav-list",0),Xa(1,yx,8,20,"mat-list-item",1),es()),2&e&&(yo(1),Qa("ngForOf",t.items))},directives:[lx,Kh,px,td,vO,Sv,iE],pipes:[mx,kE,ML],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}"]}),e}();function bx(e,t){if(1&e&&($a(0,"span",1),$a(1,"a",2),qs(2),es(),es()),2&e){var n=t.$implicit;yo(1),Qa("routerLink",n.routerLink),yo(1),js(n.label)}}var wx=function(){var e=function(){function e(t,n,i){_(this,e),this.router=t,this.activatedRoute=n,this.translate=i,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.router.events.pipe(Zd(function(e){return e instanceof eg})).subscribe(function(){e.menuItems=[],e.createBreadcrumbs(e.activatedRoute.root)})}},{key:"createBreadcrumbs",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.children;0!==r.length&&r.forEach(function(t){var r=t.snapshot.url.map(function(e){return e.path}).join("/");""!==r&&(i+="/".concat(r));var o=n.translate.instant(t.snapshot.data[e.ROUTE_DATA_BREADCRUMB]);return!o||n.menuItems[n.menuItems.length-1]&&o===n.menuItems[n.menuItems.length-1].label||n.menuItems.push({label:o,routerLink:i}),n.createBreadcrumbs(t,i)})}}]),e}();return e.ROUTE_DATA_BREADCRUMB="breadcrumb",e.\u0275fac=function(t){return new(t||e)(Ja(Tv),Ja(rm),Ja(AE))},e.\u0275cmp=ct({type:e,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&&Xa(0,bx,3,2,"span",0),2&e&&Qa("ngForOf",t.menuItems)},directives:[Kh,Cv],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}']}),e}();function Mx(e,t){1&e&&($a(0,"mat-error"),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}var Ax=function(){var e=function(){function e(t,n,i,r,o){_(this,e),this.dialogRef=t,this.translate=n,this.notificator=i,this.rtMessages=r,this.storeService=o,this.message="",this.subject="",this.instanceName=""}return w(e,[{key:"ngOnInit",value:function(){this.instanceName=this.storeService.get("config")}},{key:"sendBugReport",value:function(){var e=this;this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(function(t){e.dialogRef.afterClosed().subscribe(function(){return e.notificator.showSuccess(e.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)}),e.dialogRef.close()})}},{key:"getFullEmailBody",value:function(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+v(306).i8}},{key:"close",value:function(){this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE),Ja(AE),Ja(fL),Ja(tp),Ja(sL))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),es(),$a(3,"div",1),$a(4,"mat-form-field"),$a(5,"mat-label"),qs(6),_c(7,"translate"),es(),$a(8,"input",2,3),cs("ngModelChange",function(e){return t.subject=e}),es(),Xa(10,Mx,3,3,"mat-error",4),es(),$a(11,"mat-form-field"),$a(12,"mat-label"),qs(13),_c(14,"translate"),es(),$a(15,"textarea",5),cs("ngModelChange",function(e){return t.message=e}),_c(16,"translate"),qs(17," "),es(),$a(18,"mat-hint"),qs(19),_c(20,"translate"),es(),es(),es(),$a(21,"div",6),$a(22,"div",7),$a(23,"button",8),cs("click",function(){return t.close()}),qs(24),_c(25,"translate"),es(),$a(26,"button",9),cs("click",function(){return t.sendBugReport()}),qs(27),_c(28,"translate"),es(),es(),es()),2&e){var n=Ga(9);yo(1),js(bc(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),yo(5),js(bc(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),yo(2),Qa("ngModel",t.subject),yo(2),Qa("ngIf",n.invalid),yo(3),js(bc(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),yo(2),ys("placeholder",bc(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),Qa("ngModel",t.message),yo(4),js(bc(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),yo(5),Ys(" ",bc(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),yo(2),Qa("disabled",n.invalid),yo(1),Ys(" ",bc(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[YE,WE,$k,Uk,YL,uT,_S,xT,uS,Xh,Wk,UE,BM,Fk],pipes:[kE],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),e}(),kx=function(e){return{color:e}};function Tx(e,t){if(1&e&&($a(0,"i",16),qs(1),es()),2&e){var n=ps().$implicit,i=ps(3);Qa("ngStyle",pc(2,kx,i.linksTextColor)),yo(1),Ys(" ",n.icon," ")}}function Sx(e,t){if(1&e){var n=os();$a(0,"span",17),cs("click",function(){Qt(n);var e=ps().$implicit;return ps(3).openDialog(e.dialog)}),qs(1),_c(2,"localisedText"),es()}if(2&e){var i=ps().$implicit,r=ps(3);Qa("ngStyle",pc(6,kx,r.linksTextColor)),yo(1),Ys("",Mc(2,2,i,r.language,"label")," ")}}function Cx(e,t){if(1&e&&($a(0,"a",18),qs(1),_c(2,"localisedText"),es()),2&e){var n=ps().$implicit,i=ps(3);Qa("href",n.link,_r)("ngStyle",pc(7,kx,i.linksTextColor)),yo(1),js(Mc(2,3,n,i.language,"label"))}}function Ex(e,t){if(1&e&&($a(0,"span",19),qs(1),_c(2,"localisedText"),es()),2&e){var n=ps().$implicit,i=ps(3);Qa("ngStyle",pc(6,kx,i.linksTextColor)),yo(1),js(Mc(2,2,n,i.language,"label"))}}function Lx(e,t){if(1&e&&($a(0,"div",11),Xa(1,Tx,2,4,"i",12),Xa(2,Sx,3,8,"span",13),Xa(3,Cx,3,9,"a",14),Xa(4,Ex,3,8,"span",15),es()),2&e){var n=t.$implicit;yo(1),Qa("ngIf",n.icon),yo(1),Qa("ngIf",n.dialog),yo(1),Qa("ngIf",n.link&&!n.dialog),yo(1),Qa("ngIf",!n.link&&!n.dialog)}}function zx(e,t){if(1&e&&($a(0,"div"),Xa(1,Lx,5,4,"div",10),es()),2&e){var n=ps().$implicit;yo(1),Qa("ngForOf",n.elements)}}function Rx(e,t){if(1&e&&($a(0,"div",7),$a(1,"h6",8),qs(2),_c(3,"localisedText"),es(),Xa(4,zx,2,1,"div",9),es()),2&e){var n=t.$implicit,i=ps();yo(1),Qa("ngStyle",pc(7,kx,i.headersTextColor)),yo(1),Ys(" ",Mc(3,3,n,i.language,"title")," "),yo(2),Qa("ngIf",n.elements)}}function Ox(e,t){if(1&e&&($a(0,"span"),$a(1,"a",6),qs(2),es(),es()),2&e){var n=t.$implicit,i=t.index,r=ps();yo(1),Qa("href",n.url,_r)("ngStyle",pc(3,kx,r.copyrightTextColor)),yo(1),js(i?", "+n.name:n.name)}}var xx=function(e){return{background:e}},Dx=function(){var e=function(){function e(t,n,i){_(this,e),this.storeService=t,this.translateService=n,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),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.footerHeight=new Sc}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.translateService.onLangChange.subscribe(function(t){e.language=t.lang}),this.version=v(306).i8,this.items=this.storeService.get("footer","columns"),this.copyrightItems=this.storeService.get("footer","copyright_items"),this.getHeight()}},{key:"openDialog",value:function(e){var t=GE();switch(e){case"reportIssue":t.width="550px",this.dialog.open(Ax,t)}}},{key:"getHeight",value:function(){var e,t=1,n=a(this.items);try{for(n.s();!(e=n.n()).done;){var i=e.value;t=tthis.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}},{key:"removeValue",value:function(e){this.keys.splice(e,1),this.values.splice(e,1)}},{key:"updateAttribute",value:function(){for(var e={},t=0;tt.defaultItemsShown),yo(1),Qa("ngIf",!t.readonly))},directives:[cS,DT,oS,Kh,rC,Xh,$k,YL,uT,_S,xT,uS,BM,iE],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),e}(),rD=["input"],oD=function(e){return{enterDuration:e}},aD=["*"],sD=new hi("mat-checkbox-default-options",{providedIn:"root",factory:uD});function uD(){return{color:"accent",clickAction:"check-indeterminate"}}var cD=0,lD={color:"accent",clickAction:"check-indeterminate"},hD={provide:oT,useExisting:Te(function(){return pD}),multi:!0},dD=function e(){_(this,e)},fD=Vw(Uw(Kw(Ww(function e(t){_(this,e),this._elementRef=t})))),pD=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u){var c;return _(this,n),(c=t.call(this,e))._changeDetectorRef=i,c._focusMonitor=r,c._ngZone=o,c._animationMode=s,c._options=u,c.ariaLabel="",c.ariaLabelledby=null,c._uniqueId="mat-checkbox-"+ ++cD,c.id=c._uniqueId,c.labelPosition="after",c.name=null,c.change=new Sc,c.indeterminateChange=new Sc,c._onTouched=function(){},c._currentAnimationClass="",c._currentCheckState=0,c._controlValueAccessorChangeFn=function(){},c._checked=!1,c._disabled=!1,c._indeterminate=!1,c._options=c._options||lD,c.color=c.defaultColor=c._options.color||lD.color,c.tabIndex=parseInt(a)||0,c}return w(n,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=ay(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){t||Promise.resolve().then(function(){e._onTouched(),e._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=ay(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=ay(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){n.classList.remove(i)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var e=new dD;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t,n=this,i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(function(){n._indeterminate=!1,n.indeterminateChange.emit(n._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}]),n}(fD);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(ju),Ja(Zy),Ja(dl),ci("tabindex"),Ja(Rw,8),Ja(sD,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;(1&e&&(Fc(rD,5),Fc(vM,5)),2&e)&&(Bc(n=qc())&&(t._inputElement=n.first),Bc(n=qc())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(Vs("id",t.id),Ua("tabindex",null),Es("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[cu([hD]),Oa],ngContentSelectors:aD,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",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&&(ms(),$a(0,"label",0,1),$a(2,"span",2),$a(3,"input",3,4),cs("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),es(),$a(5,"span",5),ts(6,"span",6),es(),ts(7,"span",7),$a(8,"span",8),Tn(),$a(9,"svg",9),ts(10,"path",10),es(),Sn(),ts(11,"span",11),es(),es(),$a(12,"span",12,13),cs("cdkObserveContent",function(){return t._onLabelTextChange()}),$a(14,"span",14),qs(15,"\xa0"),es(),vs(16),es(),es()),2&e){var n=Ga(1),i=Ga(13);Ua("for",t.inputId),yo(2),Es("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),yo(1),Qa("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),Ua("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),yo(2),Qa("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",pc(19,oD,"NoopAnimations"===t._animationMode?0:150))}},directives:[vM,Ey],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),e}(),gD=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({}),e}(),mD=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[yM,Yw,Ly,gD],Yw,gD]}),e}();function vD(e,t){if(1&e){var n=os();$a(0,"mat-checkbox",2),cs("change",function(){return Qt(n),ps()._sendEventToParent()})("ngModelChange",function(e){return Qt(n),ps().attribute.value=e}),es()}2&e&&Qa("ngModel",ps().attribute.value)}function yD(e,t){if(1&e&&($a(0,"mat-label"),qs(1),es()),2&e){var n=ps();yo(1),js(n.attribute.value)}}var _D=function(){var e=function(){function e(){_(this,e),this.readonly=!1,this.sendEventToParent=new Sc}return w(e,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=JE(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,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&&($a(0,"div"),Xa(1,vD,1,1,"mat-checkbox",0),Xa(2,yD,2,1,"mat-label",1),es()),2&e&&(yo(1),Qa("ngIf",!t.readonly),yo(1),Qa("ngIf",t.readonly))},directives:[Xh,pD,xT,uS,Uk],styles:[""]}),e}();function bD(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function wD(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function MD(e,t){var n=t?"":"none";wD(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function AD(e,t){var n=e.style;n.position=t?"":"fixed",n.top=n.opacity=t?"":"0",n.left=t?"":"-999em"}function kD(e,t){return t?e+" "+t:e}function TD(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function SD(e,t){return e.getPropertyValue(t).split(",").map(function(e){return e.trim()})}function CD(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function ED(e,t,n){var i=e.top,r=e.bottom,o=e.left,a=e.right;return n>=i&&n<=r&&t>=o&&t<=a}function LD(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function zD(e,t,n,i){var r=e.top,o=e.right,a=e.bottom,s=e.left,u=e.width*t,c=e.height*t;return i>r-c&&is-u&&n=s._config.dragStartThreshold){var r=Date.now()>=s._dragStartTime+s._getDragStartDelay(e),o=s._dropContainer;if(!r)return void s._endDragSequence(e);o&&(o.isDragging()||o.isReceiving())||(e.preventDefault(),s._hasStartedDragging=!0,s._ngZone.run(function(){return s._startDragSequence(e)}))}},this._pointerUp=function(e){s._endDragSequence(e)},this.withRootElement(t).withParent(n.parentDragRef||null),this._parentPositions=new RD(i,o),a.registerDragItem(this)}return w(e,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=ay(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(function(e){return MD(e,t)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){var t=this;this._handles=e.map(function(e){return hy(e)}),this._handles.forEach(function(e){return MD(e,t.disabled)}),this._toggleNativeDragInteractions();var n=new Set;return this._disabledHandles.forEach(function(e){t._handles.indexOf(e)>-1&&n.add(e)}),this._disabledHandles=n,this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=this,n=hy(e);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){n.addEventListener("mousedown",t._pointerDown,BD),n.addEventListener("touchstart",t._pointerDown,ID)}),this._initialTransform=void 0,this._rootElement=n),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?hy(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return t._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(e){return this._parentDragRef=e,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&jD(this._rootElement),jD(this._anchor),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}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),MD(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),MD(e,this.disabled))}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"withPreviewContainer",value:function(e){return this._previewContainer=e,this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&jD(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&jD(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)});else{this._passiveTransform.x=this._activeTransform.x;var n=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){t.ended.next({source:t,distance:t._getDragDistance(n),dropPoint:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(e){YD(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t=this._dropContainer;if(t){var n=this._rootElement,i=n.parentNode,r=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();i.insertBefore(o,n),this._initialTransform=n.style.transform||"",this._preview=this._createPreviewElement(),AD(n,!1),this._document.body.appendChild(i.replaceChild(r,n)),this._getPreviewInsertionPoint(i,a).appendChild(this._preview),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,t){var n=this;this._parentDragRef&&t.stopPropagation();var i=this.isDragging(),r=YD(t),o=!r&&0!==t.button,a=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(i||o||s)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor||"",a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(function(e){n._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=CD(this._boundaryElement));var u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;AD(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var n=t._dropContainer,i=n.getItemIndex(t),r=t._getPointerPositionOnPage(e),o=t._getDragDistance(r),a=n._isOverContainer(r.x,r.y);t.ended.next({source:t,distance:o,dropPoint:r}),t.dropped.next({item:t,currentIndex:i,previousIndex:t._initialIndex,container:n,previousContainer:t._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r}),n.drop(t,i,t._initialIndex,t._initialContainer,a,o,r),t._dropContainer=t._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,t){var n=this,i=e.x,r=e.y,o=t.x,a=t.y,s=this._initialContainer._getSiblingContainerFromPosition(this,i,r);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,r)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(function(){n.exited.next({item:n,container:n._dropContainer}),n._dropContainer.exit(n),n._dropContainer=s,n._dropContainer.enter(n,i,r,s===n._initialContainer&&s.sortingDisabled?n._initialIndex:void 0),n.entered.next({item:n,container:s,currentIndex:s.getItemIndex(n)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(o,a),this._dropContainer._sortItem(this,i,r,this._pointerDirectionDelta),this._applyPreviewTransform(i-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,n=this.previewClass,i=t?t.template:null;if(i&&t){var r=t.matchSize?this._rootElement.getBoundingClientRect():null,o=t.viewContainer.createEmbeddedView(i,t.context);o.detectChanges(),e=WD(o,this._document),this._previewRef=o,t.matchSize?UD(e,r):e.style.transform=HD(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;UD(e=OD(a),a.getBoundingClientRect()),this._initialTransform&&(e.style.transform=this._initialTransform)}return wD(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"".concat(this._config.zIndex||1e3)}),MD(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach(function(t){return e.classList.add(t)}):e.classList.add(n)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);var n=function(e){var t=getComputedStyle(e),n=SD(t,"transition-property"),i=n.find(function(e){return"transform"===e||"all"===e});if(!i)return 0;var r=n.indexOf(i),o=SD(t,"transition-duration"),a=SD(t,"transition-delay");return TD(o[r])+TD(a[r])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(t){var i=function n(i){(!i||i.target===e._preview&&"transform"===i.propertyName)&&(e._preview.removeEventListener("transitionend",n),t(),clearTimeout(r))},r=setTimeout(i,1.5*n);e._preview.addEventListener("transitionend",i)})})}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,n=t?t.template:null;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),e=WD(this._placeholderRef,this._document)):e=OD(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,r=i?i.getBoundingClientRect():n,o=YD(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:r.left-n.left+(o.pageX-r.left-a.left),y:r.top-n.top+(o.pageY-r.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=this._getViewportScrollPosition(),n=YD(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,r=n.pageY-t.top;if(this._ownerSVGElement){var o=this._ownerSVGElement.getScreenCTM();if(o){var a=this._ownerSVGElement.createSVGPoint();return a.x=i,a.y=r,a.matrixTransform(o.inverse())}}return{x:i,y:r}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._dropContainer?this._dropContainer.lockAxis:null,n=this.constrainPosition?this.constrainPosition(e,this):e,i=n.x,r=n.y;if("x"===this.lockAxis||"x"===t?r=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(i=this._pickupPositionOnPage.x),this._boundaryRect){var o=this._pickupPositionInElement,a=o.x,s=o.y,u=this._boundaryRect,c=this._previewRect,l=u.top+s,h=u.bottom-(c.height-s);i=qD(i,u.left+a,u.right-(c.width-a)),r=qD(r,l,h)}return{x:i,y:r}}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,n=e.y,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-r.x),a=Math.abs(n-r.y);return o>this._config.pointerDirectionChangeThreshold&&(i.x=t>r.x?1:-1,r.x=t),a>this._config.pointerDirectionChangeThreshold&&(i.y=n>r.y?1:-1,r.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,MD(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,BD),e.removeEventListener("touchstart",this._pointerDown,ID)}},{key:"_applyRootElementTransform",value:function(e,t){var n=HD(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=kD(n,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(e,t){var n,i=(null===(n=this._previewTemplate)||void 0===n?void 0:n.template)?void 0:this._initialTransform,r=HD(e,t);this._preview.style.transform=kD(r,i)}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,n=e.y;if(!(0===t&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===r.width&&0===r.height)){var o=i.left-r.left,a=r.right-i.right,s=i.top-r.top,u=r.bottom-i.bottom;i.width>r.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,i.height>r.height?(s>0&&(n+=s),u>0&&(n-=u)):n=0,t===this._passiveTransform.x&&n===this._passiveTransform.y||this.setFreeDragPosition({y:n,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:YD(e)?t.touch:t?t.mouse:0}},{key:"_updateOnScroll",value:function(e){var t=this._parentPositions.handleScroll(e);if(t){var n=e.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&LD(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=ky(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(e,t){var n=this._previewContainer||"global";if("parent"===n)return e;if("global"===n){var i=this._document;return t||i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement||i.body}return hy(n)}}]),e}();function HD(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function qD(e,t,n){return Math.max(t,Math.min(n,e))}function jD(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function YD(e){return"t"===e.type[0]}function WD(e,t){var n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];var i=t.createElement("div");return n.forEach(function(e){return i.appendChild(e)}),i}function UD(e,t){e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px"),e.style.transform=HD(t.left,t.top)}function KD(e,t,n){var i=VD(t,e.length-1),r=VD(n,e.length-1);if(i!==r){for(var o=e[i],a=r0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ey;return(!rA(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=ey),new I(function(n){return n.add(t.schedule(bD,e,{subscriber:n,counter:0,period:e})),n})}(0,YM).pipe(sA(a._stopScrollTimers)).subscribe(function(){var e=a._scrollNode,t=a.autoScrollStep;1===a._verticalScrollDirection?JD(e,-t):2===a._verticalScrollDirection&&JD(e,t),1===a._horizontalScrollDirection?QD(e,-t):2===a._horizontalScrollDirection&&QD(e,t)})},this.element=hy(t),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new RD(i,o)}return w(e,[{key:"dispose",value:function(){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)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(e,t,n,i){var r;this._draggingStarted(),null==i?-1===(r=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(r=this._getItemIndexFromPointerPosition(e,t,n)):r=i;var o=this._activeDraggables,a=o.indexOf(e),s=e.getPlaceholderElement(),u=o[r];if(u===e&&(u=o[r+1]),a>-1&&o.splice(a,1),u&&!this._dragDropRegistry.isDragging(u)){var c=u.getRootElement();c.parentElement.insertBefore(s,c),o.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){var l=o[0].getRootElement();l.parentNode.insertBefore(s,l),o.unshift(e)}else hy(this.element).appendChild(s),o.push(e);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,n,i,r,o,a){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:r,distance:o,dropPoint:a})}},{key:"withItems",value:function(e){var t=this,n=this._draggables;return this._draggables=e,e.forEach(function(e){return e._withDropContainer(t)}),this.isDragging()&&(n.filter(function(e){return e.isDragging()}).every(function(t){return-1===e.indexOf(t)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=hy(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(r(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?GD("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(t){return t.drag===e}):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,n,i){if(!this.sortingDisabled&&this._clientRect&&zD(this._clientRect,.05,t,n)){var r=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,n,i);if(!(-1===o&&r.length>0)){var a="horizontal"===this._orientation,s=GD(r,function(t){return t.drag===e}),u=r[o],c=u.clientRect,l=s>o?1:-1,h=this._getItemOffsetPx(r[s].clientRect,c,l),d=this._getSiblingOffsetPx(s,r,l),f=r.slice();KD(r,s,o),this.sorted.next({previousIndex:s,currentIndex:o,container:this,item:e}),r.forEach(function(t,n){if(f[n]!==t){var i=t.drag===e,r=i?h:d,o=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=r,a?(o.style.transform=kD("translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),t.initialTransform),LD(t.clientRect,0,r)):(o.style.transform=kD("translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),t.initialTransform),LD(t.clientRect,r,0))}}),this._previousSwap.overlaps=ED(c,t,n),this._previousSwap.drag=u.drag,this._previousSwap.delta=a?i.x:i.y}}}},{key:"_startScrollingIfNecessary",value:function(e,n){var i=this;if(!this.autoScrollDisabled){var r,o=0,a=0;if(this._parentPositions.positions.forEach(function(s,u){var c;u!==i._document&&s.clientRect&&!r&&zD(s.clientRect,.05,e,n)&&(c=t(function(e,t,n,i){var r=ZD(t,i),o=$D(t,n),a=0,s=0;if(r){var u=e.scrollTop;1===r?u>0&&(a=1):e.scrollHeight-u>e.clientHeight&&(a=2)}if(o){var c=e.scrollLeft;1===o?c>0&&(s=1):e.scrollWidth-c>e.clientWidth&&(s=2)}return[a,s]}(u,s.clientRect,e,n),2),o=c[0],a=c[1],(o||a)&&(r=u))}),!o&&!a){var s=this._viewportRuler.getViewportSize(),u=s.width,c=s.height,l={width:u,height:c,top:0,right:u,bottom:c,left:0};o=ZD(l,n),a=$D(l,e),r=window}!r||o===this._verticalScrollDirection&&a===this._horizontalScrollDirection&&r===this._scrollNode||(this._verticalScrollDirection=o,this._horizontalScrollDirection=a,this._scrollNode=r,(o||a)&&r?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=hy(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=hy(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(e){var t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:CD(t)}}).sort(function(t,n){return e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top})}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=hy(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(t){var n,i=t.getRootElement();if(i){var r=null===(n=e._itemPositions.find(function(e){return e.drag===t}))||void 0===n?void 0:n.initialTransform;i.style.transform=r||""}}),this._siblings.forEach(function(t){return t._stopReceiving(e)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=t[e].clientRect,o=t[e+-1*n],a=r[i?"width":"height"]*n;if(o){var s=i?"left":"top",u=i?"right":"bottom";-1===n?a-=o.clientRect[s]-r[u]:a+=r[s]-o.clientRect[u]}return a}},{key:"_getItemOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=i?t.left-e.left:t.top-e.top;return-1===n&&(r+=i?t.width-e.width:t.height-e.height),r}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){var r=n[n.length-1].clientRect;return i?e>=r.right:t>=r.bottom}var o=n[0].clientRect;return i?e<=o.left:t<=o.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,n,i){var r=this,o="horizontal"===this._orientation,a=GD(this._itemPositions,function(a,s,u){var c=a.drag,l=a.clientRect;if(c===e)return u.length<2;if(i){var h=o?i.x:i.y;if(c===r._previousSwap.drag&&r._previousSwap.overlaps&&h===r._previousSwap.delta)return!1}return o?t>=Math.floor(l.left)&&t=Math.floor(l.top)&&n-1})&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(function(t){if(e.isDragging()){var n=e._parentPositions.handleScroll(t);n&&(e._itemPositions.forEach(function(e){LD(e.clientRect,n.top,n.left)}),e._itemPositions.forEach(function(t){var n=t.drag;e._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()}))}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=ky(hy(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,t=this._activeDraggables.filter(function(e){return e.isDragging()});this._siblings.forEach(function(n){return n._startReceiving(e,t)})}}]),e}();function GD(e,t){for(var n=0;n=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}function $D(e,t){var n=e.left,i=e.right,r=.05*e.width;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}var eP=wy({passive:!1,capture:!0}),tP=function(){var e=function(){function e(t,n){var i=this;_(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(e){return e.isDragging()},this.pointerMove=new Y,this.pointerUp=new Y,this.scroll=new Y,this._preventDefaultWhileDragging=function(e){i._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=function(e){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&e.preventDefault(),i.pointerMove.next(e))},this._document=n}return w(e,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){t._document.addEventListener("touchmove",t._persistentTouchmoveListener,eP)})}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,eP)}},{key:"startDragging",value:function(e,t){var n=this;if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){var i=t.type.startsWith("touch");this._globalListeners.set(i?"touchend":"mouseup",{handler:function(e){return n.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return n.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:eP}),i||this._globalListeners.set("mousemove",{handler:function(e){return n.pointerMove.next(e)},options:eP}),this._ngZone.runOutsideAngular(function(){n._globalListeners.forEach(function(e,t){n._document.addEventListener(t,e.handler,e.options)})})}}},{key:"stopDragging",value:function(e){var t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(e){return this._activeDragInstances.indexOf(e)>-1}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach(function(t){return e.removeDragItem(t)}),this._dropInstances.forEach(function(t){return e.removeDropContainer(t)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach(function(t,n){e._document.removeEventListener(n,t.handler,t.options)}),this._globalListeners.clear()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(dl),Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(dl),Ei(Ul))},token:e,providedIn:"root"}),e}(),nP={dragStartThreshold:5,pointerDirectionChangeThreshold:5},iP=function(){var e=function(){function e(t,n,i,r){_(this,e),this._document=t,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=r}return w(e,[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nP;return new FD(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new XD(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Ul),Ei(dl),Ei(CA),Ei(tP))},e.\u0275prov=Oe({factory:function(){return new e(Ei(Ul),Ei(dl),Ei(CA),Ei(tP))},token:e,providedIn:"root"}),e}(),rP=new hi("CDK_DRAG_PARENT"),oP=new hi("CdkDropListGroup"),aP=new hi("CDK_DRAG_CONFIG"),sP=0,uP=new hi("CdkDropList"),cP=function(){var e=function(){function e(t,n,i,r,o,a,s){var u=this;_(this,e),this.element=t,this._changeDetectorRef=i,this._scrollDispatcher=r,this._dir=o,this._group=a,this._destroyed=new Y,this.connectedTo=[],this.id="cdk-drop-list-"+sP++,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new Sc,this.entered=new Sc,this.exited=new Sc,this.sorted=new Sc,this._unsortedItems=new Set,this._dropListRef=n.createDropList(t),this._dropListRef.data=this,s&&this._assignDefaults(s),this._dropListRef.enterPredicate=function(e,t){return u.enterPredicate(e.data,t.data)},this._dropListRef.sortPredicate=function(e,t,n){return u.sortPredicate(e,t.data,n.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),e._dropLists.push(this),a&&a._items.add(this)}return w(e,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=ay(e)}},{key:"addItem",value:function(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort(function(e,t){return e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})}},{key:"ngOnDestroy",value:function(){var t=e._dropLists.indexOf(this);t>-1&&e._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"_setupInputSyncSubscription",value:function(t){var n=this;this._dir&&this._dir.change.pipe(Cp(this._dir.value),sA(this._destroyed)).subscribe(function(e){return t.withDirection(e)}),t.beforeStarted.subscribe(function(){var i=cy(n.connectedTo).map(function(t){return"string"==typeof t?e._dropLists.find(function(e){return e.id===t}):t});if(n._group&&n._group._items.forEach(function(e){-1===i.indexOf(e)&&i.push(e)}),!n._scrollableParentsResolved){var r=n._scrollDispatcher.getAncestorScrollContainers(n.element).map(function(e){return e.getElementRef().nativeElement});n._dropListRef.withScrollableParents(r),n._scrollableParentsResolved=!0}t.disabled=n.disabled,t.lockAxis=n.lockAxis,t.sortingDisabled=ay(n.sortingDisabled),t.autoScrollDisabled=ay(n.autoScrollDisabled),t.autoScrollStep=sy(n.autoScrollStep,2),t.connectedTo(i.filter(function(e){return e&&e!==n}).map(function(e){return e._dropListRef})).withOrientation(n.orientation)})}},{key:"_handleEvents",value:function(e){var t=this;e.beforeStarted.subscribe(function(){t._syncItemsWithRef(),t._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(e){t.entered.emit({container:t,item:e.item.data,currentIndex:e.currentIndex})}),e.exited.subscribe(function(e){t.exited.emit({container:t,item:e.item.data}),t._changeDetectorRef.markForCheck()}),e.sorted.subscribe(function(e){t.sorted.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,container:t,item:e.item.data})}),e.dropped.subscribe(function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,item:e.item.data,isPointerOverContainer:e.isPointerOverContainer,distance:e.distance,dropPoint:e.dropPoint}),t._changeDetectorRef.markForCheck()})}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,n=e.draggingDisabled,i=e.sortingDisabled,r=e.listAutoScrollDisabled,o=e.listOrientation;this.disabled=null!=n&&n,this.sortingDisabled=null!=i&&i,this.autoScrollDisabled=null!=r&&r,this.orientation=o||"vertical",t&&(this.lockAxis=t)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map(function(e){return e._dragRef}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(iP),Ja(ju),Ja(TA),Ja(i_,8),Ja(oP,12),Ja(aP,8))},e.\u0275dir=gt({type:e,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(Ua("id",t.id),Es("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[cu([{provide:oP,useValue:void 0},{provide:uP,useExisting:e}])]}),e._dropLists=[],e}(),lP=new hi("CdkDragHandle"),hP=new hi("CdkDragPlaceholder"),dP=new hi("CdkDragPreview"),fP=function(){var e=function(){function e(t,n,i,r,o,a,s,u,c,l,h){var d=this;_(this,e),this.element=t,this.dropContainer=n,this._ngZone=r,this._viewContainerRef=o,this._dir=s,this._changeDetectorRef=c,this._selfHandle=l,this._parentDrag=h,this._destroyed=new Y,this.started=new Sc,this.released=new Sc,this.ended=new Sc,this.entered=new Sc,this.exited=new Sc,this.dropped=new Sc,this.moved=new I(function(e){var t=d._dragRef.moved.pipe(ee(function(e){return{source:d,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}})).subscribe(e);return function(){t.unsubscribe()}}),this._dragRef=u.createDrag(t,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,e._dragInstances.push(this),a&&this._assignDefaults(a),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return w(e,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=ay(e),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.onStable.pipe(kp(1),sA(this._destroyed)).subscribe(function(){e._updateRootElement(),e._handles.changes.pipe(Cp(e._handles),Kp(function(t){var n=t.filter(function(t){return t._parentDrag===e}).map(function(e){return e.element});e._selfHandle&&e.rootElementSelector&&n.push(e.element),e._dragRef.withHandles(n)}),bp(function(e){return le.apply(void 0,r(e.map(function(e){return e._stateChanges.pipe(Cp(e))})))}),sA(e._destroyed)).subscribe(function(t){var n=e._dragRef,i=t.element.nativeElement;t.disabled?n.disableHandle(i):n.enableHandle(i)}),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)})}},{key:"ngOnChanges",value:function(e){var t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this);var t=e._dragInstances.indexOf(this);t>-1&&e._dragInstances.splice(t,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var e=this.element.nativeElement,t=this.rootElementSelector?pP(e,this.rootElementSelector):e;this._dragRef.withRootElement(t||e)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;return e?"string"==typeof e?pP(this.element.nativeElement,e):hy(e):null}},{key:"_syncInputs",value:function(t){var n=this;t.beforeStarted.subscribe(function(){if(!t.isDragging()){var e=n._dir,i=n.dragStartDelay,r=n._placeholderTemplate?{template:n._placeholderTemplate.templateRef,context:n._placeholderTemplate.data,viewContainer:n._viewContainerRef}:null,o=n._previewTemplate?{template:n._previewTemplate.templateRef,context:n._previewTemplate.data,matchSize:n._previewTemplate.matchSize,viewContainer:n._viewContainerRef}:null;t.disabled=n.disabled,t.lockAxis=n.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:sy(i),t.constrainPosition=n.constrainPosition,t.previewClass=n.previewClass,t.withBoundaryElement(n._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(o).withPreviewContainer(n.previewContainer||"global"),e&&t.withDirection(e.value)}}),t.beforeStarted.pipe(kp(1)).subscribe(function(){var i,r;if(n._parentDrag)t.withParent(n._parentDrag._dragRef);else for(var o=n.element.nativeElement.parentElement;o;){if(null===(i=o.classList)||void 0===i?void 0:i.contains("cdk-drag")){t.withParent((null===(r=e._dragInstances.find(function(e){return e.element.nativeElement===o}))||void 0===r?void 0:r._dragRef)||null);break}o=o.parentElement}})}},{key:"_handleEvents",value:function(e){var t=this;e.started.subscribe(function(){t.started.emit({source:t}),t._changeDetectorRef.markForCheck()}),e.released.subscribe(function(){t.released.emit({source:t})}),e.ended.subscribe(function(e){t.ended.emit({source:t,distance:e.distance,dropPoint:e.dropPoint}),t._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(e){t.entered.emit({container:e.container.data,item:t,currentIndex:e.currentIndex})}),e.exited.subscribe(function(e){t.exited.emit({container:e.container.data,item:t})}),e.dropped.subscribe(function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:t,distance:e.distance,dropPoint:e.dropPoint})})}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,n=e.dragStartDelay,i=e.constrainPosition,r=e.previewClass,o=e.boundaryElement,a=e.draggingDisabled,s=e.rootElementSelector,u=e.previewContainer;this.disabled=null!=a&&a,this.dragStartDelay=n||0,t&&(this.lockAxis=t),i&&(this.constrainPosition=i),r&&(this.previewClass=r),o&&(this.boundaryElement=o),s&&(this.rootElementSelector=s),u&&(this.previewContainer=u)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(uP,12),Ja(Ul),Ja(dl),Ja($u),Ja(aP,8),Ja(i_,8),Ja(iP),Ja(ju),Ja(lP,10),Ja(rP,12))},e.\u0275dir=gt({type:e,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,n){var i;(1&e&&(Hc(n,dP,5),Hc(n,hP,5),Hc(n,lP,5)),2&e)&&(Bc(i=qc())&&(t._previewTemplate=i.first),Bc(i=qc())&&(t._placeholderTemplate=i.first),Bc(i=qc())&&(t._handles=i))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&Es("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[cu([{provide:rP,useExisting:e}]),Et]}),e._dragInstances=[],e}();function pP(e,t){for(var n=e.parentElement;n;){if(n.matches?n.matches(t):n.msMatchesSelector(t))return n;n=n.parentElement}return null}var gP=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[iP],imports:[EA]}),e}(),mP=["*"],vP=new hi("MatChipRemove"),yP=new hi("MatChipAvatar"),_P=new hi("MatChipTrailingIcon"),bP=Vw(Uw(Kw(function e(t){_(this,e),this._elementRef=t}),"primary"),-1),wP=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u,c){var l;return _(this,n),(l=t.call(this,e))._elementRef=e,l._ngZone=i,l._changeDetectorRef=a,l._hasFocus=!1,l.chipListSelectable=!0,l._chipListMultiple=!1,l._chipListDisabled=!1,l._selected=!1,l._selectable=!0,l._disabled=!1,l._removable=!0,l._onFocus=new Y,l._onBlur=new Y,l.selectionChange=new Sc,l.destroyed=new Sc,l.removed=new Sc,l._addHostClassName(),l._chipRippleTarget=s.createElement("div"),l._chipRippleTarget.classList.add("mat-chip-ripple"),l._elementRef.nativeElement.appendChild(l._chipRippleTarget),l._chipRipple=new gM(m(l),i,l._chipRippleTarget,r),l._chipRipple.setupTriggerEvents(e),l.rippleConfig=o||{},l._animationsDisabled="NoopAnimations"===u,l.tabIndex=null!=c&&parseInt(c)||-1,l}return w(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(e){var t=ay(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(e){this._selectable=ay(e)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(e){this._disabled=ay(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=ay(e)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var e=this._elementRef.nativeElement;e.hasAttribute("mat-basic-chip")||"mat-basic-chip"===e.tagName.toLowerCase()?e.classList.add("mat-basic-chip"):e.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(e){this.disabled?e.preventDefault():e.stopPropagation()}},{key:"_handleKeydown",value:function(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()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.pipe(kp(1)).subscribe(function(){e._ngZone.run(function(){e._hasFocus=!1,e._onBlur.next({chip:e})})})}},{key:"_dispatchSelectionChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}]),n}(bP);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(dl),Ja(vy),Ja(mM,8),Ja(ju),Ja(Ul),Ja(Rw,8),ci("tabindex"))},e.\u0275dir=gt({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,n){var i;(1&e&&(Hc(n,yP,5),Hc(n,_P,5),Hc(n,vP,5)),2&e)&&(Bc(i=qc())&&(t.avatar=i.first),Bc(i=qc())&&(t.trailingIcon=i.first),Bc(i=qc())&&(t.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&cs("click",function(e){return t._handleClick(e)})("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(Ua("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),Es("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Oa]}),e}(),MP=new hi("mat-chips-default-options"),AP=Xw(function e(t,n,i,r){_(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),kP=0,TP=function e(t,n){_(this,e),this.source=t,this.value=n},SP=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u){var c;return _(this,n),(c=t.call(this,s,o,a,u))._elementRef=e,c._changeDetectorRef=i,c._dir=r,c.ngControl=u,c.controlType="mat-chip-list",c._lastDestroyedChipIndex=null,c._destroyed=new Y,c._uid="mat-chip-list-"+kP++,c._tabIndex=0,c._userTabIndex=null,c._onTouched=function(){},c._onChange=function(){},c._multiple=!1,c._compareWith=function(e,t){return e===t},c._required=!1,c._disabled=!1,c.ariaOrientation="horizontal",c._selectable=!0,c.change=new Sc,c.valueChange=new Sc,c.ngControl&&(c.ngControl.valueAccessor=m(c)),c}return w(n,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=ay(e),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){this.writeValue(e),this._value=e}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=ay(e),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(e){this._disabled=ay(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=ay(e),this.chips&&this.chips.forEach(function(e){return e.chipListSelectable=t._selectable})}},{key:"tabIndex",set:function(e){this._userTabIndex=e,this._tabIndex=e}},{key:"chipSelectionChanges",get:function(){return le.apply(void 0,r(this.chips.map(function(e){return e.selectionChange})))}},{key:"chipFocusChanges",get:function(){return le.apply(void 0,r(this.chips.map(function(e){return e._onFocus})))}},{key:"chipBlurChanges",get:function(){return le.apply(void 0,r(this.chips.map(function(e){return e._onBlur})))}},{key:"chipRemoveChanges",get:function(){return le.apply(void 0,r(this.chips.map(function(e){return e.destroyed})))}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new Fy(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(sA(this._destroyed)).subscribe(function(t){return e._keyManager.withHorizontalOrientation(t)}),this._keyManager.tabOut.pipe(sA(this._destroyed)).subscribe(function(){e._allowFocusEscape()}),this.chips.changes.pipe(Cp(null),sA(this._destroyed)).subscribe(function(){e.disabled&&Promise.resolve().then(function(){e._syncChipsState()}),e._resetChips(),e._initializeSelection(),e._updateTabIndex(),e._updateFocusForDestroyedChips(),e.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new MA(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"writeValue",value:function(e){this.chips&&this._setSelectionByValue(e,!1)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.stateChanges.next()}},{key:"onContainerClick",value:function(e){this._originatesFromChip(e)||this.focus()}},{key:"focus",value:function(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}},{key:"_focusInput",value:function(e){this._chipInput&&this._chipInput.focus(e)}},{key:"_keydown",value:function(e){var t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(e){return e>=0&&e1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(e){return e.deselect()}),Array.isArray(e))e.forEach(function(e){return t._selectValue(e,n)}),this._sortValues();else{var i=this._selectValue(e,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find(function(n){return null!=n.value&&t._compareWith(n.value,e)});return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())})}},{key:"_clearSelection",value:function(e){this._selectionModel.clear(),this.chips.forEach(function(t){t!==e&&t.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(t){t.selected&&e._selectionModel.select(t)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(e){var t;t=Array.isArray(this.selected)?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.change.emit(new TP(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var e=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){e.focused||e._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var e=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){e._tabIndex=e._userTabIndex||0,e._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){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)}},{key:"_listenToChipsSelection",value:function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach(function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&e._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(t){var n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&e._keyManager.updateActiveItem(n),e.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){e._blur(),e.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(t){var n=t.chip,i=e.chips.toArray().indexOf(t.chip);e._isValidIndex(i)&&n._hasFocus&&(e._lastDestroyedChipIndex=i)})}},{key:"_originatesFromChip",value:function(e){for(var t=e.target;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(e){return e._hasFocus})}},{key:"_syncChipsState",value:function(){var e=this;this.chips&&this.chips.forEach(function(t){t._chipListDisabled=e._disabled,t._chipListMultiple=e.multiple})}}]),n}(AP);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(ju),Ja(i_,8),Ja(oS,8),Ja(vS,8),Ja(aM),Ja(RT,10))},e.\u0275cmp=ct({type:e,selectors:[["mat-chip-list"]],contentQueries:function(e,t,n){var i;(1&e&&Hc(n,wP,5),2&e)&&(Bc(i=qc())&&(t.chips=i))},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&cs("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(e){return t._keydown(e)}),2&e&&(Vs("id",t._uid),Ua("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),Es("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[cu([{provide:qk,useExisting:e}]),Oa],ngContentSelectors:mP,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(ms(),$a(0,"div",0),vs(1),es())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),e}(),CP=0,EP=function(){var e=function(){function e(t,n){_(this,e),this._elementRef=t,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Sc,this.placeholder="",this.id="mat-chip-list-input-"+CP++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return w(e,[{key:"chipList",set:function(e){e&&(this._chipList=e,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(e){this._addOnBlur=ay(e)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(e){this._disabled=ay(e)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(e){if(e){if(9!==e.keyCode||Jv(e,"shiftKey")||this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}},{key:"_keyup",value:function(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(e){!this.inputElement.value&&e&&this._chipList._keydown(e),e&&!this._isSeparatorKey(e)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==e||e.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(e){this.inputElement.focus(e)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(e){return!Jv(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(MP))},e.\u0275dir=gt({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&cs("keydown",function(e){return t._keydown(e)})("keyup",function(e){return t._keyup(e)})("blur",function(){return t._blur()})("focus",function(){return t._focus()})("input",function(){return t._onInput()}),2&e&&(Vs("id",t.id),Ua("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:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Et]}),e}(),LP={separatorKeyCodes:[13]},zP=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[aM,{provide:MP,useValue:LP}],imports:[[Yw]]}),e}();function RP(e,t){if(1&e){var n=os();$a(0,"mat-icon",9),cs("mousedown",function(){return Qt(n),ps(2).dragDisabled=!1}),qs(1,"drag_indicator"),es()}}function OP(e,t){if(1&e){var n=os();$a(0,"mat-icon",10),cs("click",function(){Qt(n);var e=ps().$implicit;return ps().edit(e)}),qs(1,"edit"),es()}}function xP(e,t){if(1&e){var n=os();$a(0,"mat-icon",11),cs("click",function(){Qt(n);var e=ps().$implicit;return ps().remove(e)}),qs(1,"cancel"),es()}}function DP(e,t){if(1&e){var n=os();$a(0,"mat-chip",4),cs("removed",function(){var e=Qt(n).$implicit,t=ps();return t.remove(e),t._sendEventToParent()}),Xa(1,RP,2,0,"mat-icon",5),$a(2,"div",6),cs("click",function(){var e=Qt(n).$implicit,t=ps();return t.readonly&&void 0!==t.attribute.displayName&&t.showValue(e,t.attribute.displayName)}),qs(3),es(),Xa(4,OP,2,0,"mat-icon",7),Xa(5,xP,2,0,"mat-icon",8),es()}if(2&e){var i=t.$implicit,r=ps();Qa("selectable",r.selectable)("cdkDragData",i)("removable",r.removable),yo(1),Qa("ngIf",r.removable),yo(1),Es("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),yo(1),js(i),yo(1),Qa("ngIf",r.removable),yo(1),Qa("ngIf",r.removable)}}function PP(e,t){1&e&&($a(0,"mat-icon"),qs(1,"more_horiz"),es())}function NP(e,t){1&e&&($a(0,"mat-icon"),qs(1,"keyboard_arrow_up"),es())}function IP(e,t){if(1&e){var n=os();$a(0,"div",12),$a(1,"span",13),$a(2,"button",14),cs("click",function(){return Qt(n),ps().onShowChange()}),Xa(3,PP,2,0,"mat-icon",15),Xa(4,NP,2,0,"mat-icon",15),es(),es(),es()}if(2&e){var i=ps();yo(1),Qa("matTooltip",i.showMore?"Show less":"Show more")("matTooltipPosition","above"),yo(2),Qa("ngIf",!i.showMore),yo(1),Qa("ngIf",i.showMore)}}function BP(e,t){if(1&e){var n=os();$a(0,"mat-form-field",12),$a(1,"input",16),cs("matChipInputTokenEnd",function(e){return Qt(n),ps().add(e)})("change",function(){return Qt(n),ps()._sendEventToParent()}),es(),es()}if(2&e){var i=ps(),r=Ga(2);yo(1),Qa("matChipInputFor",r)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",i.addOnBlur)}}var FP=function(){var e=function(){function e(t){_(this,e),this.dialog=t,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new Sc,this.readonly=!1}return w(e,[{key:"ngOnInit",value:function(){this.removable=!JE(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=JE(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"add",value:function(e){var t=e.input,n=e.value;(n||"").trim()&&(this.attribute.value.push(n.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),t&&(t.value=""),this.sendEventToParent.emit()}},{key:"remove",value:function(e){var t=this,n=GE();n.width="400px",n.data={name:e},this.dialog.open(uR,n).afterClosed().subscribe(function(n){if(n){var i=t.attribute.value.indexOf(e);t.attribute.value.splice(i,1),t.values=Object.values(t.attribute.value),t.sendEventToParent.emit()}})}},{key:"drop",value:function(e){this.dragDisabled=!0,KD(this.attribute.value,e.previousIndex,e.currentIndex),this.values=Object.values(this.attribute.value)}},{key:"edit",value:function(e){var t=this,n=this.attribute.value.indexOf(e),i=GE();i.width="600px",i.data={attribute:this.attribute,index:n},this.dialog.open(sR,i).afterClosed().subscribe(function(e){e&&(t.values=Object.values(t.attribute.value),t.sendEventToParent.emit())})}},{key:"showValue",value:function(e,t){var n=GE();n.width="350px",n.data={value:e,title:t},this.dialog.open(aR,n)}},{key:"setItemsShown",value:function(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}},{key:"onShowChange",value:function(){this.showMore=!this.showMore,this.setItemsShown()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(qE))},e.\u0275cmp=ct({type:e,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",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(e,t){1&e&&($a(0,"div"),$a(1,"mat-chip-list",0,1),cs("cdkDropListDropped",function(e){return t.drop(e),t._sendEventToParent()}),Xa(3,DP,6,9,"mat-chip",2),Xa(4,IP,5,4,"div",3),Xa(5,BP,2,3,"mat-form-field",3),es(),es()),2&e&&(yo(1),Qa("cdkDropListDisabled",t.dragDisabled),yo(2),Qa("ngForOf",t.values.slice(0,t.itemsShown)),yo(1),Qa("ngIf",t.values.length>t.defaultItemsShown),yo(1),Qa("ngIf",!t.readonly))},directives:[SP,cP,Kh,Xh,wP,fP,iE,rC,BM,$k,YL,EP],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%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),e}(),HP=function(){var e=function(){function e(t){_(this,e),this.dialog=t,this.readonly=!1,this.sendEventToParent=new Sc}return w(e,[{key:"ngOnInit",value:function(){this.value=this.attribute.value,this.readonly||(this.readonly=JE(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(e,t){var n=GE();n.width="350px",n.data={value:e,title:t},this.dialog.open(aR,n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(qE))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&($a(0,"mat-form-field",0),$a(1,"input",1),cs("click",function(){return t.readonly&&void 0!==t.value&&t.showValue(t.value,t.attribute.displayName)})("ngModelChange",function(e){return t.attribute.value=e})("keydown",function(){return t._sendEventToParent()}),es(),es()),2&e&&(ys("appearance",t.readonly?"none":"standard"),yo(1),Es("cursor-pointer",t.readonly&&void 0!==t.value),Qa("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[$k,YL,uT,xT,uS],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),e}(),qP=function(){var e=function(){function e(t){_(this,e),this.dialog=t,this.readonly=!1,this.sendEventToParent=new Sc}return w(e,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=JE(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(e){var t=GE();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(aR,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(qE))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&($a(0,"mat-form-field",0),$a(1,"input",1),cs("click",function(){return t.readonly&&void 0!==t.attribute.value&&t.showValue(t.attribute)})("ngModelChange",function(e){return t.attribute.value=e})("keydown",function(){return t._sendEventToParent()}),es(),es()),2&e&&(ys("appearance",t.readonly?"none":"standard"),yo(1),Es("cursor-pointer",t.readonly&&void 0!==t.attribute.value),Qa("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[$k,YL,hS,uT,xT,uS],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),e}(),jP=["map"];function YP(e,t){if(1&e){var n=os();$a(0,"perun-web-apps-attribute-value-boolean",3),cs("sendEventToParent",function(){return Qt(n),ps()._sendEventToParent2()}),es()}if(2&e){var i=ps();Qa("attribute",i.attribute)("readonly",i.readonly)}}function WP(e,t){if(1&e){var n=os();$a(0,"perun-web-apps-attribute-value-list",3),cs("sendEventToParent",function(){return Qt(n),ps()._sendEventToParent2()}),es()}if(2&e){var i=ps();Qa("attribute",i.attribute)("readonly",i.readonly)}}function UP(e,t){if(1&e&&ts(0,"perun-web-apps-attribute-value-map",4,5),2&e){var n=ps();Qa("attribute",n.attribute)("readonly",n.readonly)}}function KP(e,t){if(1&e){var n=os();$a(0,"perun-web-apps-attribute-value-string",3),cs("sendEventToParent",function(){return Qt(n),ps()._sendEventToParent2()}),es()}if(2&e){var i=ps();Qa("attribute",i.attribute)("readonly",i.readonly)}}function VP(e,t){if(1&e){var n=os();$a(0,"perun-web-apps-attribute-value-integer",3),cs("sendEventToParent",function(){return Qt(n),ps()._sendEventToParent2()}),es()}if(2&e){var i=ps();Qa("attribute",i.attribute)("readonly",i.readonly)}}var XP=function(){var e=function(){function e(){_(this,e),this.readonly=!1,this.sendEventToParent2=new Sc}return w(e,[{key:"updateMapAttribute",value:function(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}},{key:"_sendEventToParent2",value:function(){this.sendEventToParent2.emit()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(e,t){var n;(1&e&&Fc(jP,5),2&e)&&(Bc(n=qc())&&(t.mapComponent=n.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&&($a(0,"div"),Xa(1,YP,1,2,"perun-web-apps-attribute-value-boolean",0),Xa(2,WP,1,2,"perun-web-apps-attribute-value-list",0),$a(3,"div",1),cs("click",function(){return t._sendEventToParent2()}),Xa(4,UP,2,2,"perun-web-apps-attribute-value-map",2),es(),Xa(5,KP,1,2,"perun-web-apps-attribute-value-string",0),Xa(6,VP,1,2,"perun-web-apps-attribute-value-integer",0),es()),2&e&&(yo(1),Qa("ngIf","java.lang.Boolean"===t.attribute.type),yo(1),Qa("ngIf","java.util.ArrayList"===t.attribute.type),yo(2),Qa("ngIf","java.util.LinkedHashMap"===t.attribute.type),yo(1),Qa("ngIf","java.lang.String"===t.attribute.type||"java.lang.LargeString"===t.attribute.type),yo(1),Qa("ngIf","java.lang.Integer"===t.attribute.type))},directives:[Xh,_D,FP,iD,HP,qP],styles:[""]}),e}();function GP(e,t){1&e&&ts(0,"mat-spinner",3)}function JP(e,t){if(1&e){var n=os();$a(0,"mat-option",16),cs("click",function(){var e=Qt(n).$implicit;return ps(4).changeLanguage(e)}),qs(1),_c(2,"translate"),_c(3,"uppercase"),es()}if(2&e){var i=t.$implicit;Qa("value",i),yo(1),Ys(" ",bc(2,2,bc(3,4,"SHARED_LIB.LANGUAGES."+i))," ")}}function QP(e,t){if(1&e){var n=os();$a(0,"mat-form-field",13),$a(1,"mat-select",14),cs("valueChange",function(e){return Qt(n),ps(3).currentLang=e}),Xa(2,JP,4,6,"mat-option",15),es(),es()}if(2&e){var i=ps(3);yo(1),Qa("value",i.currentLang),yo(1),Qa("ngForOf",i.languages)}}function ZP(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"a",17),qs(2),es(),$a(3,"button",18),cs("click",function(){return Qt(n),ps(3).changeEmail()}),qs(4),_c(5,"translate"),_c(6,"customTranslate"),es(),es()}if(2&e){var i=ps(3);yo(1),_s("href","mailto:",i.email,"",_r),yo(1),js(i.email),yo(2),js(bc(5,3,bc(6,5,"PROFILE_PAGE.CHANGE_EMAIL")))}}function $P(e,t){if(1&e){var n=os();$a(0,"mat-option",16),cs("click",function(){var e=Qt(n).$implicit;return ps(4).changeTimeZone(e)}),qs(1),es()}if(2&e){var i=t.$implicit;Qa("value",i),yo(1),Ys(" ",i," ")}}function eN(e,t){if(1&e){var n=os();$a(0,"mat-form-field",13),$a(1,"mat-select",19),cs("valueChange",function(e){return Qt(n),ps(3).currentTimezone=e}),Xa(2,$P,2,2,"mat-option",15),es(),es()}if(2&e){var i=ps(3);yo(1),Qa("value",i.currentTimezone),yo(1),Qa("ngForOf",i.timeZones)}}function tN(e,t){1&e&&($a(0,"p"),qs(1,"-"),es())}function nN(e,t){1&e&&ts(0,"perun-web-apps-attribute-value",22),2&e&&Qa("attribute",ps(2).$implicit.attribute)("readonly",!0)}function iN(e,t){if(1&e&&($a(0,"div"),Xa(1,tN,2,0,"p",20),Xa(2,nN,1,2,"perun-web-apps-attribute-value",21),es()),2&e){var n=ps().$implicit;yo(1),Qa("ngIf",!n.attribute.value),yo(1),Qa("ngIf",n.attribute.value)}}function rN(e,t){if(1&e&&($a(0,"tr"),$a(1,"td",7),$a(2,"div",8),qs(3),es(),es(),$a(4,"td",9),Xa(5,QP,3,2,"mat-form-field",10),Xa(6,ZP,7,7,"div",11),Xa(7,eN,3,2,"mat-form-field",10),Xa(8,iN,3,2,"div",12),es(),es()),2&e){var n=t.$implicit,i=ps(2);yo(2),Qa("matTooltip",n["tooltip_"+i.currentLang]),yo(1),js(n["displayName_"+i.currentLang]),yo(1),Qa("ngSwitch",n.attribute.friendlyName),yo(1),Qa("ngSwitchCase","preferredLanguage"),yo(1),Qa("ngSwitchCase","preferredMail"),yo(1),Qa("ngSwitchCase","timezone")}}function oN(e,t){if(1&e&&($a(0,"table",4),$a(1,"tbody"),$a(2,"tr"),$a(3,"td",5),qs(4),_c(5,"translate"),_c(6,"customTranslate"),es(),$a(7,"td"),qs(8),es(),es(),Xa(9,rN,9,6,"tr",6),es(),es()),2&e){var n=ps();yo(4),js(bc(5,3,bc(6,5,"PROFILE_PAGE.NAME"))),yo(4),js(n.fullName),yo(1),Qa("ngForOf",n.additionalAttributes)}}var aN=function(){var e=function(){function e(t,n,i,r,o,a,s,u,c,l){var h=this;_(this,e),this.translateService=t,this.dialog=n,this.authzResolverService=i,this.attributesManagerService=r,this.usersManagerService=o,this.route=a,this.router=s,this.notificator=u,this.storeService=c,this.apiRequestConfiguration=l,this.currentLang="en",this.languages=this.storeService.get("supportedLanguages"),this.timeZones=Jx.tz.names().filter(function(e){return!e.startsWith("Etc/")}),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",t.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(function(e){return h.successMessage=e})}return w(e,[{key:"ngOnInit",value:function(){var e=this,t=this.route.snapshot.queryParamMap,n=t.get("token"),i=t.get("u");this.loading=!0,n&&i?(this.apiRequestConfiguration.dontHandleErrorForNext(),this.usersManagerService.validatePreferredEmailChangeWithToken(n,Number.parseInt(i,10)).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.router.navigate([],{replaceUrl:!0}),e.getData()},function(){var t=GE();t.width="600px",e.dialog.open(gR,t).afterClosed().subscribe(function(){e.getData()})})):this.getData()}},{key:"getData",value:function(){var e=this;this.authzResolverService.getPerunPrincipal().subscribe(function(t){e.userId=t.userId,e.usersManagerService.getRichUserWithAttributes(e.userId).subscribe(function(t){e.fullName=(new wL).transform(t);var n=t.userAttributes.find(function(e){return"preferredMail"===e.friendlyName});e.email=n.value,e.languageAttribute=t.userAttributes.find(function(e){return"preferredLanguage"===e.friendlyName}),e.currentLang=e.languageAttribute&&e.languageAttribute.value?e.languageAttribute.value:"en",e.timezoneAttribute=t.userAttributes.find(function(e){return"timezone"===e.friendlyName}),e.currentTimezone=e.timezoneAttribute&&e.timezoneAttribute.value?e.timezoneAttribute.value:"-";var i=e.storeService.get("profile_page_attributes"),r=e.storeService.get("supportedLanguages"),o=0;i.forEach(function(n){var a=t.userAttributes.find(function(e){return e.friendlyName===n.friendly_name});a?(o++,e.addAttribute(a,n,r)):e.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:".concat(n.is_virtual?"virt":"def",":").concat(n.friendly_name)).subscribe(function(t){e.addAttribute(t,n,r),o++,e.loading=o!==i.length}),e.loading=o!==i.length})})})}},{key:"addAttribute",value:function(e,t,n){var i,r,o={attribute:e},s=a(n);try{for(s.s();!(r=s.n()).done;){var u=r.value;o["displayName_".concat(u)]=t["display_name_".concat(u)]&&t["display_name_".concat(u)].length?t["display_name_".concat(u)]:e.displayName,o["tooltip_".concat(u)]=null!==(i=t["tooltip_".concat(u)])&&void 0!==i?i:""}}catch(c){s.e(c)}finally{s.f()}this.additionalAttributes.push(o)}},{key:"changeLanguage",value:function(e){var t=this;this.currentLang=e,this.translateService.use(this.currentLang),this.languageAttribute?this.setLanguage():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:preferredLanguage").subscribe(function(e){t.languageAttribute=e,t.setLanguage()})}},{key:"setLanguage",value:function(){this.languageAttribute.value=this.currentLang,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.languageAttribute}).subscribe(function(){})}},{key:"changeTimeZone",value:function(e){var t=this;this.currentTimezone=e,this.timezoneAttribute?this.setTimeZone():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:timezone").subscribe(function(e){t.timezoneAttribute=e,t.setTimeZone()})}},{key:"setTimeZone",value:function(){this.timezoneAttribute.value=this.currentTimezone,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.timezoneAttribute}).subscribe(function(){})}},{key:"changeEmail",value:function(){var e=this,t=GE();t.width="350px",t.data={userId:this.userId},this.dialog.open(pR,t).afterClosed().subscribe(function(t){t&&e.getEmail()})}},{key:"getEmail",value:function(){var e=this;this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(function(t){e.email=t.value})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(AE),Ja(qE),Ja(Zf),Ja(Qf),Ja(rp),Ja(rm),Ja(Tv),Ja(fL),Ja(sL),Ja(dL))},e.\u0275cmp=ct({type:e,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-stroked-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&&($a(0,"div",0),Xa(1,GP,1,0,"mat-spinner",1),Xa(2,oN,10,7,"table",2),es()),2&e&&(yo(1),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading))},directives:[Xh,xL,Kh,rC,Zh,$h,ed,$k,YS,LM,BM,XP],pipes:[kE,ML,ud],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}"]}),e}(),sN=["mat-sort-header",""];function uN(e,t){if(1&e){var n=os();$a(0,"div",3),cs("@arrowPosition.start",function(){return Qt(n),ps()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Qt(n),ps()._disableViewStateAnimation=!1}),ts(1,"div",4),$a(2,"div",5),ts(3,"div",6),ts(4,"div",7),ts(5,"div",8),es(),es()}if(2&e){var i=ps();Qa("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),yo(2),Qa("@indicator",i._getArrowDirectionState()),yo(1),Qa("@leftPointer",i._getArrowDirectionState()),yo(1),Qa("@rightPointer",i._getArrowDirectionState())}}var cN,lN=["*"],hN=new hi("MAT_SORT_DEFAULT_OPTIONS"),dN=Gw(Ww(function e(){_(this,e)})),fN=((cN=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this))._defaultOptions=e,i.sortables=new Map,i._stateChanges=new Y,i.start="asc",i._direction="",i.sortChange=new Sc,i}return w(n,[{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=ay(e)}},{key:"register",value:function(e){this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(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})}},{key:"getNextSortDirection",value:function(e){var t,n,i;if(!e)return"";var r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear),o=function(e,t){var n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),a=o.indexOf(this.direction)+1;return a>=o.length&&(a=0),o[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(dN)).\u0275fac=function(e){return new(e||cN)(Ja(hN,8))},cN.\u0275dir=gt({type:cN,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Oa,Et]}),cN),pN=Hw.ENTERING+" "+Fw.STANDARD_CURVE,gN={indicator:s_("indicator",[d_("active-asc, asc",h_({transform:"translateY(0px)"})),d_("active-desc, desc",h_({transform:"translateY(10px)"})),p_("active-asc <=> active-desc",u_(pN))]),leftPointer:s_("leftPointer",[d_("active-asc, asc",h_({transform:"rotate(-45deg)"})),d_("active-desc, desc",h_({transform:"rotate(45deg)"})),p_("active-asc <=> active-desc",u_(pN))]),rightPointer:s_("rightPointer",[d_("active-asc, asc",h_({transform:"rotate(45deg)"})),d_("active-desc, desc",h_({transform:"rotate(-45deg)"})),p_("active-asc <=> active-desc",u_(pN))]),arrowOpacity:s_("arrowOpacity",[d_("desc-to-active, asc-to-active, active",h_({opacity:1})),d_("desc-to-hint, asc-to-hint, hint",h_({opacity:.54})),d_("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",h_({opacity:0})),p_("* => asc, * => desc, * => active, * => hint, * => void",u_("0ms")),p_("* <=> *",u_(pN))]),arrowPosition:s_("arrowPosition",[p_("* => desc-to-hint, * => desc-to-active",u_(pN,f_([h_({transform:"translateY(-25%)"}),h_({transform:"translateY(0)"})]))),p_("* => hint-to-desc, * => active-to-desc",u_(pN,f_([h_({transform:"translateY(0)"}),h_({transform:"translateY(25%)"})]))),p_("* => asc-to-hint, * => asc-to-active",u_(pN,f_([h_({transform:"translateY(25%)"}),h_({transform:"translateY(0)"})]))),p_("* => hint-to-asc, * => active-to-asc",u_(pN,f_([h_({transform:"translateY(0)"}),h_({transform:"translateY(-25%)"})]))),d_("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",h_({transform:"translateY(0)"})),d_("hint-to-desc, active-to-desc, desc",h_({transform:"translateY(-25%)"})),d_("hint-to-asc, active-to-asc, asc",h_({transform:"translateY(25%)"}))]),allowChildren:s_("allowChildren",[p_("* <=> *",[m_("@*",g_(),{optional:!0})])])},mN=function(){var e=function e(){_(this,e),this.changes=new Y};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({factory:function(){return new e},token:e,providedIn:"root"}),e}(),vN={provide:mN,deps:[[new Pi,new Ni,mN]],useFactory:function(e){return e||new mN}},yN=Ww(function e(){_(this,e)}),_N=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s){var u;return _(this,n),(u=t.call(this))._intl=e,u._changeDetectorRef=i,u._sort=r,u._columnDef=o,u._focusMonitor=a,u._elementRef=s,u._showIndicatorHint=!1,u._viewState={},u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",u._handleStateChanges(),u}return w(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=ay(e)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){var n=!!t;n!==e._showIndicatorHint&&(e._setIndicatorHintVisible(n),e._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(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})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?"".concat(e,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var e=this;this._rerenderSubscription=le(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){e._isSorted()&&(e._updateArrowDirection(),"hint"!==e._viewState.toState&&"active"!==e._viewState.toState||(e._disableViewStateAnimation=!0),e._setAnimationTransitionState({fromState:e._arrowDirection,toState:"active"}),e._showIndicatorHint=!1),!e._isSorted()&&e._viewState&&"active"===e._viewState.toState&&(e._disableViewStateAnimation=!1,e._setAnimationTransitionState({fromState:"active",toState:e._arrowDirection})),e._changeDetectorRef.markForCheck()})}}]),n}(yN);return e.\u0275fac=function(t){return new(t||e)(Ja(mN),Ja(ju),Ja(fN,8),Ja("MAT_SORT_HEADER_COLUMN_DEF",8),Ja(Zy),Ja(mu))},e.\u0275cmp=ct({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&cs("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(Ua("aria-sort",t._getAriaSortAttribute()),Es("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Oa],attrs:sN,ngContentSelectors:lN,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(ms(),$a(0,"div",0),$a(1,"div",1),vs(2),es(),Xa(3,uN,6,6,"div",2),es()),2&e&&(Es("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),Ua("tabindex",t._isDisabled()?null:0),yo(3),Qa("ngIf",t._renderArrow()))},directives:[Xh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[gN.indicator,gN.leftPointer,gN.rightPointer,gN.arrowOpacity,gN.arrowPosition,gN.allowChildren]},changeDetection:0}),e}(),bN=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[vN],imports:[[ld,Yw]]}),e}(),wN=function(){var e=function(){function e(t){_(this,e),this.elementRef=t}return w(e,[{key:"ngOnInit",value:function(){this.elementRef.nativeElement.focus()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu))},e.\u0275dir=gt({type:e,selectors:[["","perunWebAppsAutoFocus",""]]}),e}(),MN=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"onClick",value:function(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){var t=this.perunWebAppsMiddleClickRouterLink.join("/"),n=location.search;window.open(t+n)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&cs("mouseup",function(e){return t.onClick(e)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),e}(),AN=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e){var t=e.find(function(e){return"mail"===e.friendlyName});return t?t.value.toString():"N/A"}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=mt({name:"getMailFromAttributes",type:e,pure:!0}),e}();function kN(e,t){1&e&&ts(0,"th",17)}function TN(e,t){if(1&e){var n=os();$a(0,"td",18),$a(1,"mat-checkbox",19),cs("change",function(e){var t=Qt(n).$implicit,i=ps();return e?i.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),es(),es()}if(2&e){var i=t.$implicit,r=ps();yo(1),Qa("aria-label",r.checkboxLabel(i))("checked",r.selection.isSelected(i))}}function SN(e,t){1&e&&($a(0,"th",20),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))))}function CN(e,t){if(1&e&&($a(0,"td",21),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.userExtSource.id)}}function EN(e,t){1&e&&($a(0,"th",17),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))))}function LN(e,t){if(1&e&&($a(0,"td",21),qs(1),_c(2,"getMailFromAttributes"),es()),2&e){var n=t.$implicit;yo(1),js(bc(2,1,n.attributes))}}function zN(e,t){if(1&e&&($a(0,"th",20),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e){var n=ps();yo(1),js(bc(2,1,bc(3,3,n.extSourceNameHeader?n.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME")))}}function RN(e,t){if(1&e&&($a(0,"td",21),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.userExtSource.extSource.name)}}function ON(e,t){if(1&e&&($a(0,"th",20),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e){var n=ps();yo(1),js(bc(2,1,bc(3,3,n.loginHeader?n.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN")))}}function xN(e,t){if(1&e&&($a(0,"td",21),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.userExtSource.login)}}function DN(e,t){1&e&&($a(0,"th",20),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))))}function PN(e,t){if(1&e&&($a(0,"td",22),qs(1),_c(2,"date"),es()),2&e){var n=t.$implicit;yo(1),js(wc(2,1,n.userExtSource.lastAccess,"d.M.y H:mm:ss"))}}function NN(e,t){1&e&&ts(0,"tr",23)}var IN=function(e,t){return["/admin","users",e,"identities",t]};function BN(e,t){if(1&e&&ts(0,"tr",24),2&e){var n=t.$implicit,i=ps();Es("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),Qa("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:gc(6,IN,i.userId,n.userExtSource.id))("routerLink",i.disableRouting?null:gc(9,IN,i.userId,n.userExtSource.id))}}function FN(e,t){1&e&&($a(0,"app-alert",25),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),Ys(" ",bc(2,1,bc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}var HN=function(){var e=function(){function e(t,n){_(this,e),this.route=t,this.authResolver=n,this.selection=new MA,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSize=5,this.page=new Sc,this.pageSizeOptions=XE}return w(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngAfterViewInit",value:function(){var e=this;this.disableRouting||this.route.parent.params.subscribe(function(t){e.userId=t.userId}),this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new Kz(this.userExtSources),this.setDataSource()}},{key:"getDataForColumn",value:function(e,t){switch(t){case"id":return e.userExtSource.id.toString();case"mail":var n=e.attributes.find(function(e){return"mail"===e.friendlyName});return n?n.value.toString():"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""}}},{key:"exportData",value:function(e){eL($E(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,n){return ZE(t,n,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,n){return QE(t,n,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"checkboxLabel",value:function(e){return"".concat(this.selection.isSelected(e.userExtSource)?"deselect":"select"," row ").concat(e.userExtSource.id+1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(rm),Ja(up))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){var n;(1&e&&(Fc(oL,7),Fc(fN,7)),2&e)&&(Bc(n=qc())&&(t.child=n.first),Bc(n=qc())&&(t.matSort=n.first))},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",pageSize:"pageSize",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},outputs:{page:"page"},features:[Et],decls:24,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["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",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&($a(0,"div",0),$a(1,"perun-web-apps-table-wrapper",1),cs("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),$a(2,"table",2),ns(3,3),Xa(4,kN,1,0,"th",4),Xa(5,TN,2,2,"td",5),is(),ns(6,6),Xa(7,SN,4,5,"th",7),Xa(8,CN,2,1,"td",8),is(),ns(9,9),Xa(10,EN,4,5,"th",4),Xa(11,LN,3,3,"td",8),is(),ns(12,10),Xa(13,zN,4,5,"th",7),Xa(14,RN,2,1,"td",8),is(),ns(15,11),Xa(16,ON,4,5,"th",7),Xa(17,xN,2,1,"td",8),is(),ns(18,12),Xa(19,DN,4,5,"th",7),Xa(20,PN,3,4,"td",13),is(),Xa(21,NN,1,0,"tr",14),Xa(22,BN,1,12,"tr",15),es(),es(),es(),Xa(23,FN,4,5,"app-alert",16)),2&e&&(Qa("hidden",0===t.userExtSources.length||0===t.dataSource.filteredData.length),yo(1),Qa("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),yo(1),Qa("dataSource",t.dataSource),yo(19),Qa("matHeaderRowDef",t.displayedColumns),yo(1),Qa("matRowDefColumns",t.displayedColumns),yo(1),Qa("ngIf",0===t.userExtSources.length))},directives:[oL,Pz,fN,Bz,Iz,Nz,qz,jz,Xh,Fz,Hz,pD,_N,Yz,Wz,MN,Sv,hR],pipes:[kE,ML,AN,cd],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),e}();function qN(e,t){1&e&&ts(0,"mat-spinner",3)}function jN(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"h1",8),qs(2),_c(3,"translate"),_c(4,"customTranslate"),es(),$a(5,"button",5),cs("click",function(){return Qt(n),ps(2).addIdentity()}),qs(6),_c(7,"translate"),_c(8,"customTranslate"),es(),$a(9,"button",6),cs("click",function(){Qt(n);var e=ps(2);return e.removeIdentity(e.certSelection)}),qs(10),_c(11,"translate"),_c(12,"customTranslate"),es(),ts(13,"perun-web-apps-user-ext-sources-list",11),es()}if(2&e){var i=ps(2);yo(2),js(bc(3,10,bc(4,12,"IDENTITIES.CERT"))),yo(4),js(bc(7,14,bc(8,16,"IDENTITIES.ADD"))),yo(3),Qa("disabled",0===i.certSelection.selected.length),yo(1),js(bc(11,18,bc(12,20,"IDENTITIES.REMOVE"))),yo(3),Qa("userExtSources",i.certExtSources)("selection",i.certSelection)("extSourceNameHeader",i.extSourceNameCert)("loginHeader",i.loginCert)("displayedColumns",i.displayedColumnsCert)("disableRouting",!0)}}function YN(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"h1",4),qs(2),_c(3,"translate"),_c(4,"customTranslate"),es(),$a(5,"button",5),cs("click",function(){return Qt(n),ps().addIdentity()}),qs(6),_c(7,"translate"),_c(8,"customTranslate"),es(),$a(9,"button",6),cs("click",function(){Qt(n);var e=ps();return e.removeIdentity(e.idpSelection)}),qs(10),_c(11,"translate"),_c(12,"customTranslate"),es(),ts(13,"perun-web-apps-user-ext-sources-list",7),Xa(14,jN,14,22,"div",2),$a(15,"h1",8),qs(16),_c(17,"translate"),_c(18,"customTranslate"),$a(19,"mat-icon",9),_c(20,"translate"),_c(21,"customTranslate"),qs(22," info_outline "),es(),es(),$a(23,"button",6),cs("click",function(){Qt(n);var e=ps();return e.removeIdentity(e.otherSelection)}),qs(24),_c(25,"translate"),_c(26,"customTranslate"),es(),ts(27,"perun-web-apps-user-ext-sources-list",10),es()}if(2&e){var i=ps();yo(2),js(bc(3,19,bc(4,21,"IDENTITIES.IDP"))),yo(4),js(bc(7,23,bc(8,25,"IDENTITIES.ADD"))),yo(3),Qa("disabled",0===i.idpSelection.selected.length),yo(1),js(bc(11,27,bc(12,29,"IDENTITIES.REMOVE"))),yo(3),Qa("userExtSources",i.idpExtSources)("selection",i.idpSelection)("displayedColumns",i.displayedColumnsIdp)("loginHeader",i.loginIdp)("disableRouting",!0),yo(1),Qa("ngIf",i.displayCertificates),yo(2),Ys(" ",bc(17,31,bc(18,33,"IDENTITIES.OTHER"))," "),yo(3),Qa("matTooltip",bc(20,35,bc(21,37,"IDENTITIES.OTHER_TOOLTIP"))),yo(4),Qa("disabled",0===i.otherSelection.selected.length),yo(1),js(bc(25,39,bc(26,41,"IDENTITIES.REMOVE"))),yo(3),Qa("userExtSources",i.otherExtSources)("selection",i.otherSelection)("extSourceNameHeader",i.extSourceNameOther)("displayedColumns",i.displayedColumnsOther)("disableRouting",!0)}}var WN=function(){var e=function(){function e(t,n,i,r,o){_(this,e),this.usersManagerService=t,this.storage=n,this.registrarManagerService=i,this.dialog=r,this.attributesManagerService=o,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new MA(!0,[]),this.certSelection=new MA(!0,[]),this.otherSelection=new MA(!0,[]),this.loginIdp="IDENTITIES.LOGIN_IDP",this.extSourceNameCert="IDENTITIES.EXT_SOURCE_NAME_CERT",this.loginCert="IDENTITIES.LOGIN_CERT",this.extSourceNameOther="IDENTITIES.EXT_SOURCE_NAME_OTHER",this.displayedColumnsIdp=["select","extSourceName","login","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["select","extSourceName","login","lastAccess"]}return w(e,[{key:"ngOnInit",value:function(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.get("display_identity_certificates"),this.refreshTables()}},{key:"refreshTables",value:function(){var e=this;this.loading=!0,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.usersManagerService.getRichUserExtSources(this.userId).subscribe(function(t){var n=t.length;t.forEach(function(t){e.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:sourceIdPName").subscribe(function(i){i&&i.value?(t.userExtSource.extSource.name=i.value,n--,e.loading=0!==n,e.addToList(t)):e.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:IdPOrganizationName").subscribe(function(i){n--,i&&i.value&&(t.userExtSource.extSource.name=i.value),e.loading=0!==n,e.addToList(t)})})})})}},{key:"addIdentity",value:function(){var e=this;this.registrarManagerService.getConsolidatorToken().subscribe(function(t){var n=e.storage.getPerunPrincipal().extSourceType,i=e.storage.get("consolidator_base_url");window.location.href="".concat(i).concat(n&&n.endsWith("X509")?"cert":"fed","-ic/ic/?target_url=").concat(window.location.href,"&token=").concat(t)})}},{key:"removeIdentity",value:function(e){var t=this,n=GE();n.width="600px",n.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(eR,n).afterClosed().subscribe(function(n){n&&(e.clear(),t.refreshTables())})}},{key:"addToList",value:function(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)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(rp),Ja(sL),Ja(np),Ja(qE),Ja(Qf))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-identities-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],["mat-flat-button","","color","accent",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&&($a(0,"div",0),Xa(1,qN,1,0,"mat-spinner",1),Xa(2,YN,28,43,"div",2),es()),2&e&&(yo(1),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading))},directives:[Xh,xL,BM,HN,iE,rC],pipes:[kE,ML],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),e}(),UN=["panel"];function KN(e,t){if(1&e&&($a(0,"div",0,1),vs(2),es()),2&e){var n=t.id,i=ps();Qa("id",i.id)("ngClass",i._classList),Ua("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(n))}}var VN=["*"],XN=0,GN=function e(t,n){_(this,e),this.source=t,this.option=n},JN=Kw(function e(){_(this,e)}),QN=new hi("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),ZN=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this))._changeDetectorRef=e,a._elementRef=i,a._activeOptionChanges=L.EMPTY,a.showPanel=!1,a._isOpen=!1,a.displayWith=null,a.optionSelected=new Sc,a.opened=new Sc,a.closed=new Sc,a.optionActivated=new Sc,a._classList={},a.id="mat-autocomplete-"+XN++,a.inertGroups=(null==o?void 0:o.SAFARI)||!1,a._autoActiveFirstOption=!!r.autoActiveFirstOption,a}return w(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(e){this._autoActiveFirstOption=ay(e)}},{key:"classList",set:function(e){this._classList=e&&e.length?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,n=[];if(null!=e){var i,r=Array.isArray(e)?e:"".concat(e).split(t),o=a(r);try{for(o.s();!(i=o.n()).done;){var s=i.value,u="".concat(s).trim();u&&n.push(u)}}catch(c){o.e(c)}finally{o.f()}}return n}(e).reduce(function(e,t){return e[t]=!0,e},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new By(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(t){e.optionActivated.emit({source:e,option:e.options.toArray()[t]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(e){var t=new GN(this,e);this.optionSelected.emit(t)}},{key:"_getPanelAriaLabelledby",value:function(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}},{key:"_setVisibilityClasses",value:function(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}]),n}(JN);return e.\u0275fac=function(t){return new(t||e)(Ja(ju),Ja(mu),Ja(QN),Ja(vy))},e.\u0275dir=gt({type:e,viewQuery:function(e,t){var n;(1&e&&(Fc(Vu,7),Fc(UN,5)),2&e)&&(Bc(n=qc())&&(t.template=n.first),Bc(n=qc())&&(t.panel=n.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Oa]}),e}(),$N=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._visibleClass="mat-autocomplete-visible",e._hiddenClass="mat-autocomplete-hidden",e}return n}(ZN);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275cmp=ct({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,n){var i;(1&e&&(Hc(n,TM,5),Hc(n,LM,5)),2&e)&&(Bc(i=qc())&&(t.optionGroups=i),Bc(i=qc())&&(t.options=i))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[cu([{provide:wM,useExisting:t}]),Oa],ngContentSelectors:VN,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(ms(),Xa(0,KN,3,4,"ng-template"))},directives:[Wh],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t}(),eI=new hi("mat-autocomplete-scroll-strategy"),tI={provide:eI,deps:[dk],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},nI={provide:oT,useExisting:Te(function(){return rI}),multi:!0},iI=function(){var e=function(){function e(t,n,i,o,a,s,u,c,l,h,d){var f=this;_(this,e),this._element=t,this._overlay=n,this._viewContainerRef=i,this._zone=o,this._changeDetectorRef=a,this._dir=u,this._formField=c,this._document=l,this._viewportRuler=h,this._defaults=d,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=L.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Y,this._windowBlurHandler=function(){f._canOpenOnNextFocus=f._document.activeElement!==f._element.nativeElement||f.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=_p(function(){return f.autocomplete&&f.autocomplete.options?le.apply(void 0,r(f.autocomplete.options.map(function(e){return e.onSelectionChange}))):f._zone.onStable.pipe(kp(1),bp(function(){return f.optionSelections}))}),this._scrollStrategy=s}return w(e,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=ay(e)}},{key:"ngAfterViewInit",value:function(){var e=this,t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(function(){return t.addEventListener("blur",e._windowBlurHandler)})}},{key:"ngOnChanges",value:function(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var e=this;return le(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Zd(function(){return e._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Zd(function(){return e._overlayAttached})):Jd()).pipe(ee(function(e){return e instanceof CM?e:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var e=this;return le(HM(this._document,"click"),HM(this._document,"auxclick"),HM(this._document,"touchend")).pipe(Zd(function(t){var n=e._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=e._formField?e._formField._elementRef.nativeElement:null,r=e.connectedTo?e.connectedTo.elementRef.nativeElement:null;return e._overlayAttached&&n!==e._element.nativeElement&&(!i||!i.contains(n))&&(!r||!r.contains(n))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(n)}))}},{key:"writeValue",value:function(e){var t=this;Promise.resolve(null).then(function(){return t._setTriggerValue(e)})}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this._element.nativeElement.disabled=e}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;if(27!==t||Jv(e)||e.preventDefault(),this.activeOption&&13===t&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=38===t||40===t;this.panelOpen||9===t?this.autocomplete._keyManager.onKeydown(e):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(e){var t=e.target,n=t.value;"number"===t.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var e=this;return le(this._zone.onStable.pipe(kp(1)),this.autocomplete.options.changes.pipe(Kp(function(){return e._positionStrategy.reapplyLastPosition()}),wC(0))).pipe(bp(function(){var t=e.panelOpen;return e._resetActiveItem(),e.autocomplete._setVisibility(),e.panelOpen&&(e._overlayRef.updatePosition(),t!==e.panelOpen&&e.autocomplete.opened.emit()),e.panelClosingActions}),kp(1)).subscribe(function(t){return e._setValueAndClose(t)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(e){var t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,n=null!=t?t:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}},{key:"_setValueAndClose",value:function(e){e&&e.source&&(this._clearPreviousSelectedOption(e.source),this._setTriggerValue(e.source.value),this._onChange(e.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(e.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(e){this.autocomplete.options.forEach(function(t){t!==e&&t.selected&&t.deselect()})}},{key:"_attachOverlay",value:function(){var e,t=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!ky(this._element.nativeElement));var n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new OA(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,n.keydownEvents().subscribe(function(e){(27===e.keyCode&&!Jv(e)||38===e.keyCode&&Jv(e,"altKey"))&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){t.panelOpen&&n&&n.updateSize({width:t._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var e;return new XA({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}},{key:"_setStrategyPositions",value:function(e){var t,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];t="above"===this.position?r:"below"===this.position?n:[].concat(n,r),e.withPositions(t)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}},{key:"_scrollToOption",value:function(e){var t=this.autocomplete,n=zM(e,t.options,t.optionGroups);if(0===e&&1===n)t._setScrollTop(0);else if(t.panel){var i=t.options.toArray()[e];if(i){var r=i._getHostElement(),o=RM(r.offsetTop,r.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(o)}}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(dk),Ja($u),Ja(dl),Ja(ju),Ja(eI),Ja(i_,8),Ja(Zk,9),Ja(Ul,8),Ja(CA),Ja(QN,8))},e.\u0275dir=gt({type:e,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[Et]}),e}(),rI=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",e}return n}(iI);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275dir=gt({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&cs("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(e){return t._handleInput(e)})("keydown",function(e){return t._handleKeydown(e)}),2&e&&Ua("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-owns",t.autocompleteDisabled||!t.panelOpen||null==t.autocomplete?null:t.autocomplete.id)("aria-haspopup",!t.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[cu([nI]),Oa]}),t}(),oI=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[tI],imports:[[yk,xM,Yw,ld],EA,xM,Yw]}),e}(),aI=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e){return e&&e.value?e.value:"never"}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=mt({name:"validateExpiration",type:e,pure:!0}),e}();function sI(e,t){1&e&&ts(0,"th",15)}function uI(e,t){if(1&e){var n=os();$a(0,"td",16),$a(1,"mat-checkbox",17),cs("change",function(e){var t=Qt(n).$implicit,i=ps();return e?i.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),_c(2,"validateExpiration"),es(),es()}if(2&e){var i=t.$implicit,r=ps();yo(1),Qa("aria-label",r.checkboxLabel(i))("checked",r.selection.isSelected(i))("disabled","never"===bc(2,3,i.expirationAttribute))}}function cI(e,t){1&e&&($a(0,"th",15),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"MEMBERSHIP_LIST.NAME"))))}function lI(e,t){if(1&e&&($a(0,"td",16),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.entity.name)}}function hI(e,t){1&e&&($a(0,"th",15),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))))}function dI(e,t){if(1&e&&($a(0,"td",18),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.entity.description)}}function fI(e,t){1&e&&($a(0,"th",19),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"MEMBERSHIP_LIST.EXPIRATION"))))}function pI(e,t){if(1&e&&($a(0,"td",18),qs(1),_c(2,"validateExpiration"),es()),2&e){var n=t.$implicit;yo(1),Ys(" ",bc(2,1,n.expirationAttribute)," ")}}function gI(e,t){1&e&&ts(0,"th",15)}function mI(e,t){if(1&e){var n=os();$a(0,"td",18),$a(1,"button",20),cs("click",function(){var e=Qt(n).$implicit;return ps().extend(e)}),_c(2,"validateExpiration"),qs(3),_c(4,"translate"),_c(5,"customTranslate"),es(),es()}if(2&e){var i=t.$implicit;yo(1),Qa("disabled","never"===bc(2,2,i.expirationAttribute)),yo(2),js(bc(4,4,bc(5,6,"MEMBERSHIP_LIST.EXTEND")))}}function vI(e,t){1&e&&ts(0,"tr",21)}function yI(e,t){1&e&&ts(0,"tr",22)}function _I(e,t){1&e&&($a(0,"app-alert",23),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}var bI=function(){var e=function(){function e(){_(this,e),this.members=[],this.searchString="",this.selection=new MA(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.pageSize=10,this.filterValue="",this.extendMembership=new Sc,this.pageSizeOptions=XE}return w(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}},{key:"ngOnChanges",value:function(){this.dataSource=new Kz(this.members),this.setDataSource()}},{key:"getDataForColumn",value:function(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&&e.expirationAttribute.value?e.expirationAttribute.value:"never";default:return""}}},{key:"exportData",value:function(e){eL($E(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,n){return ZE(t,n,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,n){return QE(t,n,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"checkboxLabel",value:function(e){return"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.entity.id+1)}},{key:"extend",value:function(e){this.extendMembership.emit(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(e,t){var n;(1&e&&(Fc(fN,7),Fc(oL,7)),2&e)&&(Bc(n=qc())&&(t.matSort=n.first),Bc(n=qc())&&(t.child=n.first))},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[Et],decls:21,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData"],["mat-table","","matSort","","matSortActive","expirationAttribute","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["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",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","disabled","change","click"],["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&&($a(0,"div",0),$a(1,"perun-web-apps-table-wrapper",1),cs("exportData",function(e){return t.exportData(e)}),$a(2,"table",2),ns(3,3),Xa(4,sI,1,0,"th",4),Xa(5,uI,3,5,"td",5),is(),ns(6,6),Xa(7,cI,4,5,"th",4),Xa(8,lI,2,1,"td",5),is(),ns(9,7),Xa(10,hI,4,5,"th",4),Xa(11,dI,2,1,"td",8),is(),ns(12,9),Xa(13,fI,4,5,"th",10),Xa(14,pI,3,3,"td",8),is(),ns(15,11),Xa(16,gI,1,0,"th",4),Xa(17,mI,6,8,"td",8),is(),Xa(18,vI,1,0,"tr",12),Xa(19,yI,1,0,"tr",13),es(),es(),es(),Xa(20,_I,4,5,"app-alert",14)),2&e&&(Qa("hidden",!t.dataSource.filteredData.length),yo(1),Qa("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),yo(1),Qa("dataSource",t.dataSource),yo(16),Qa("matHeaderRowDef",t.displayedColumns),yo(1),Qa("matRowDefColumns",t.displayedColumns),yo(1),Qa("ngIf",!t.dataSource.filteredData.length))},directives:[oL,Pz,fN,Bz,Iz,Nz,qz,jz,Xh,Fz,Hz,pD,_N,BM,Yz,Wz,hR],pipes:[aI,kE,ML],styles:[""]}),e}();function wI(e,t){if(1&e&&($a(0,"mat-option",13),qs(1),es()),2&e){var n=t.$implicit;Qa("value",n),yo(1),Ys(" ",n.name," ")}}function MI(e,t){if(1&e){var n=os();$a(0,"mat-form-field",7),$a(1,"mat-label"),qs(2),_c(3,"translate"),es(),ts(4,"input",8),_c(5,"translate"),_c(6,"customTranslate"),$a(7,"mat-autocomplete",9,10),cs("optionSelected",function(e){return Qt(n),ps().filterByVo(e)}),$a(9,"mat-option",11),qs(10),_c(11,"translate"),_c(12,"customTranslate"),es(),Xa(13,wI,2,2,"mat-option",12),_c(14,"async"),es(),es()}if(2&e){var i=Ga(8),r=ps();yo(2),js(bc(3,7,"GROUPS.SELECT_VO")),yo(2),ys("placeholder",bc(5,9,bc(6,11,"GROUPS.SELECT_VO"))),Qa("formControl",r.myControl)("matAutocomplete",i),yo(3),Qa("displayWith",r.displayFn),yo(3),js(bc(11,13,bc(12,15,"GROUPS.ALL"))),yo(3),Qa("ngForOf",bc(14,17,r.filteredVos))}}function AI(e,t){1&e&&ts(0,"mat-spinner",14)}function kI(e,t){1&e&&($a(0,"app-alert",15),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"GROUPS.NO_GROUPS"))))}var TI=function(){return["name","description","expirationAttribute","extend"]};function SI(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"h4",16),qs(2),_c(3,"translate"),_c(4,"customTranslate"),es(),$a(5,"perun-web-apps-membership-list",17),cs("extendMembership",function(e){return Qt(n),ps().extendMembership(e)}),es(),es()}if(2&e){var i=ps();yo(2),js(bc(3,4,bc(4,6,"GROUPS.MEMBER_GROUPS"))),yo(3),Qa("members",i.userMemberships)("selection",i.selection)("displayedColumns",fc(8,TI))}}var CI=function(){return["name","description"]};function EI(e,t){if(1&e&&($a(0,"div",18),$a(1,"h4",16),qs(2),_c(3,"translate"),_c(4,"customTranslate"),es(),ts(5,"perun-web-apps-membership-list",19),es()),2&e){var n=ps();yo(2),js(bc(3,3,bc(4,5,"GROUPS.ADMINS_GROUPS"))),yo(3),Qa("members",n.adminMemberships)("displayedColumns",fc(7,CI))}}var LI=function(){var e=function(){function e(t,n,i,r,o,a){_(this,e),this.usersService=t,this.memberService=n,this.groupService=i,this.store=r,this.vosManagerService=o,this.attributesManagerService=a,this.loading=!1,this.vos=[],this.myControl=new eS,this.selection=new MA(!1,[]),this.displayedColumns=["id","name"],this.userMemberships=[],this.adminMemberships=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.userId=this.store.getPerunPrincipal().userId,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(function(t){e.vos=t,e.filteredVos=e.myControl.valueChanges.pipe(Cp(""),ee(function(t){return e._filter(t)})),e.getAllGroups()})}},{key:"_filter",value:function(e){var t="string"==typeof e?e.toLowerCase():e.name.toLowerCase;return this.vos.filter(function(e){return e.name.toLowerCase().includes(t)})}},{key:"getAllGroups",value:function(){var e=this;this.loading=!0;var t=0,n=0;this.userMemberships=[],this.adminMemberships=[];var i=this.store.getPerunPrincipal().roles.SELF.Member;i.length?n=i.length:this.loading=!1,i.forEach(function(i){n--,e.groupService.getMemberGroups(i).subscribe(function(r){t+=r.length,e.loading=0===t&&0!==n,r.forEach(function(n){e.attributesManagerService.getMemberGroupAttributes(i,n.id).subscribe(function(i){t--,e.userMemberships.push({entity:n,expirationAttribute:i.find(function(e){return"groupMembershipExpiration"===e.friendlyName})}),e.loading=0!==t})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(function(t){t.forEach(function(t){e.adminMemberships.push({entity:t,expirationAttribute:null})})})}},{key:"displayFn",value:function(e){return e?e.name:null}},{key:"filterByVo",value:function(e){var t=this;if("all"===e.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;var n=e.option.value;this.memberService.getMemberByUser(n.id,this.userId).subscribe(function(e){t.groupService.getMemberGroups(e.id).subscribe(function(n){var i=n.length;t.loading=0!==i,n.forEach(function(n){t.attributesManagerService.getMemberGroupAttributes(e.id,n.id).subscribe(function(e){i--,t.userMemberships.push({entity:n,expirationAttribute:e.find(function(e){return"groupMembershipExpiration"===e.friendlyName})}),t.loading=0!==i})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,n.id).subscribe(function(e){e.forEach(function(e){t.adminMemberships.push({entity:e,expirationAttribute:null})})})}}},{key:"extendMembership",value:function(e){var t=this.store.get("registrar_base_url"),n=e.entity,i=this.vos.find(function(e){return e.id===n.voId}).shortName;window.location.href="".concat(t,"?vo=").concat(i,"&group=").concat(e.entity.shortName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(rp),Ja(ep),Ja($f),Ja(sL),Ja(ap),Ja(Qf))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div",1),Xa(5,MI,15,19,"mat-form-field",2),Xa(6,AI,1,0,"mat-spinner",3),Xa(7,kI,4,5,"app-alert",4),Xa(8,SI,6,9,"div",5),Xa(9,EI,6,8,"div",6),es()),2&e&&(yo(1),js(bc(2,6,bc(3,8,"GROUPS.TITLE"))),yo(4),Qa("ngIf",!t.loading),yo(1),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.userMemberships.length&&!t.adminMemberships.length&&!t.loading),yo(1),Qa("ngIf",!t.loading&&0!==t.userMemberships.length),yo(1),Qa("ngIf",!t.loading&&0!==t.adminMemberships.length))},directives:[Xh,$k,Uk,YL,uT,rI,xT,gS,$N,LM,Kh,xL,hR,bI],pipes:[kE,ML,sd],styles:[""]}),e}();function zI(e,t){if(1&e&&(ts(0,"input",3),_c(1,"translate")),2&e){var n=ps();ys("placeholder",bc(1,2,n.placeholder)),Qa("formControl",n.formControl)}}function RI(e,t){if(1&e&&(ts(0,"input",4),_c(1,"translate")),2&e){var n=ps();ys("placeholder",bc(1,2,n.placeholder)),Qa("formControl",n.formControl)}}var OI=function(){var e=function(){function e(){_(this,e),this.filter=new Sc,this.autoFocus=!1,this.formControl=new eS}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.formControl.valueChanges.subscribe(function(t){var n=t.trim();n=n.toLowerCase(),e.filter.emit(n)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","ml-2"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(e,t){1&e&&($a(0,"mat-form-field",0),Xa(1,zI,2,4,"input",1),Xa(2,RI,2,4,"input",2),es()),2&e&&(yo(1),Qa("ngIf",t.autoFocus),yo(1),Qa("ngIf",!t.autoFocus))},directives:[$k,Xh,YL,uT,wN,xT,gS],pipes:[kE],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:auto!important}"]}),e}(),xI=0,DI=new hi("CdkAccordion"),PI=function(){var e=function(){function e(){_(this,e),this._stateChanges=new Y,this._openCloseAllActions=new Y,this.id="cdk-accordion-"+xI++,this._multi=!1}return w(e,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=ay(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[cu([{provide:DI,useExisting:e}]),Et]}),e}(),NI=0,II=function(){var e=function(){function e(t,n,i){var r=this;_(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=L.EMPTY,this.closed=new Sc,this.opened=new Sc,this.destroyed=new Sc,this.expandedChange=new Sc,this.id="cdk-accordion-child-"+NI++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return w(e,[{key:"expanded",get:function(){return this._expanded},set:function(e){e=ay(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())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=ay(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(t){e.disabled||(e.expanded=t)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(DI,12),Ja(ju),Ja(AA))},e.\u0275dir=gt({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[cu([{provide:DI,useValue:void 0}])]}),e}(),BI=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({}),e}(),FI=["body"];function HI(e,t){}var qI=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],jI=["mat-expansion-panel-header","*","mat-action-row"];function YI(e,t){1&e&&ts(0,"span",2),2&e&&Qa("@indicatorRotate",ps()._getExpandedState())}var WI=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],UI=["mat-panel-title","mat-panel-description","*"],KI=new hi("MAT_ACCORDION"),VI={indicatorRotate:s_("indicatorRotate",[d_("collapsed, void",h_({transform:"rotate(0deg)"})),d_("expanded",h_({transform:"rotate(180deg)"})),p_("expanded <=> collapsed, void => collapsed",u_("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:s_("bodyExpansion",[d_("collapsed, void",h_({height:"0px",visibility:"hidden"})),d_("expanded",h_({height:"*",visibility:"visible"})),p_("expanded <=> collapsed, void => collapsed",u_("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},XI=function(){var e=function e(t){_(this,e),this._template=t};return e.\u0275fac=function(t){return new(t||e)(Ja(Vu))},e.\u0275dir=gt({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e}(),GI=0,JI=new hi("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),QI=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u){var c;return _(this,n),(c=t.call(this,e,i,r))._viewContainerRef=o,c._animationMode=s,c._hideToggle=!1,c.afterExpand=new Sc,c.afterCollapse=new Sc,c._inputChanges=new Y,c._headerId="mat-expansion-panel-header-"+GI++,c._bodyAnimationDone=new Y,c.accordion=e,c._document=a,c._bodyAnimationDone.pipe($M(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?c.afterExpand.emit():"collapsed"===e.toState&&c.afterCollapse.emit())}),u&&(c.hideToggle=u.hideToggle),c}return w(n,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=ay(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe(Cp(null),Zd(function(){return e.expanded&&!e._portal}),kp(1)).subscribe(function(){e._portal=new OA(e._lazyContent._template,e._viewContainerRef)})}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){h(y(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}]),n}(II);return e.\u0275fac=function(t){return new(t||e)(Ja(KI,12),Ja(ju),Ja(AA),Ja($u),Ja(Ul),Ja(Rw,8),Ja(JI,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;(1&e&&Hc(n,XI,5),2&e)&&(Bc(i=qc())&&(t._lazyContent=i.first))},viewQuery:function(e,t){var n;(1&e&&Fc(FI,5),2&e)&&(Bc(n=qc())&&(t._body=n.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&Es("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:[cu([{provide:KI,useValue:void 0}]),Oa,Et],ngContentSelectors:jI,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&&(ms(qI),vs(0),$a(1,"div",0,1),cs("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),$a(3,"div",2),vs(4,1),Xa(5,HI,0,0,"ng-template",3),es(),vs(6,2),es()),2&e&&(yo(1),Qa("@bodyExpansion",t._getExpandedState())("id",t.id),Ua("aria-labelledby",t._headerId),yo(4),Qa("cdkPortalOutlet",t._portal))},directives:[NA],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[VI.bodyExpansion]},changeDetection:0}),e}(),ZI=function(){var e=function(){function e(t,n,i,r,o,a){var s=this;_(this,e),this.panel=t,this._element=n,this._focusMonitor=i,this._changeDetectorRef=r,this._animationMode=a,this._parentChangeSubscription=L.EMPTY;var u=t.accordion?t.accordion._stateChanges.pipe(Zd(function(e){return!(!e.hideToggle&&!e.togglePosition)})):vp;this._parentChangeSubscription=le(t.opened,t.closed,u,t._inputChanges.pipe(Zd(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return s._changeDetectorRef.markForCheck()}),t.closed.pipe(Zd(function(){return t._containsFocus()})).subscribe(function(){return i.focusVia(n,"program")}),o&&(this.expandedHeight=o.expandedHeight,this.collapsedHeight=o.collapsedHeight)}return w(e,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(e){switch(e.keyCode){case 32:case 13:Jv(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._element).subscribe(function(t){t&&e.panel.accordion&&e.panel.accordion._handleHeaderFocus(e)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(QI,1),Ja(mu),Ja(Zy),Ja(ju),Ja(JI,8),Ja(Rw,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&cs("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(Ua("id",t.panel._headerId)("tabindex",t.disabled?-1:0)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),Cs("height",t._getHeaderHeight()),Es("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:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:UI,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(ms(WI),$a(0,"span",0),vs(1),vs(2,1),vs(3,2),es(),Xa(4,YI,1,1,"span",1)),2&e&&(yo(4),Qa("ngIf",t._showToggle()))},directives:[Xh],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}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[VI.indicatorRotate]},changeDetection:0}),e}(),$I=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e}(),eB=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._ownHeaders=new Ec,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return w(n,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=ay(e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe(Cp(this._headers)).subscribe(function(t){e._ownHeaders.reset(t.filter(function(t){return t.panel.accordion===e})),e._ownHeaders.notifyOnChanges()}),this._keyManager=new Fy(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(e){this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"ngOnDestroy",value:function(){h(y(n.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),n}(PI);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275dir=gt({type:t,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var i;(1&e&&Hc(n,ZI,5),2&e)&&(Bc(i=qc())&&(t._headers=i))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&Es("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[cu([{provide:KI,useExisting:t}]),Oa]}),t}(),tB=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[ld,Yw,BI,IA]]}),e}();function nB(e,t){1&e&&($a(0,"mat-icon",1),_c(1,"translate"),qs(2," visibility\n"),es()),2&e&&ys("matTooltip",bc(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}var iB,rB=function(){var e=function e(){_(this,e),this.recentIds=[]};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({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(e,t){1&e&&Xa(0,nB,3,3,"mat-icon",0),2&e&&Qa("ngIf",t.recentIds.indexOf(t.id)>-1)},directives:[Xh,iE,rC],pipes:[kE],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),e}(),oB=["input"],aB=function(e){return{enterDuration:e}},sB=["*"],uB=new hi("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),cB=0,lB={provide:oT,useExisting:Te(function(){return pB}),multi:!0},hB=function e(t,n){_(this,e),this.source=t,this.value=n},dB=new hi("MatRadioGroup"),fB=function(){var e=function(){function e(t){_(this,e),this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+cB++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new Sc}return w(e,[{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=ay(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=ay(e),this._markRadiosForCheck()}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var e=this;this._radios&&this._radios.forEach(function(t){t.name=e.name,t._markForCheck()})}},{key:"_updateSelectedRadioFromValue",value:function(){var e=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(function(t){t.checked=e.value===t.value,t.checked&&(e._selected=t)}))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new hB(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(e){return e._markForCheck()})}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetector.markForCheck()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(ju))},e.\u0275dir=gt({type:e,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),e}(),pB=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return n}(fB);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275dir=gt({type:t,selectors:[["mat-radio-group"]],contentQueries:function(e,t,n){var i;(1&e&&Hc(n,vB,5),2&e)&&(Bc(i=qc())&&(t._radios=i))},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[cu([lB,{provide:dB,useExisting:t}]),Oa]}),t}(),gB=Kw(Vw(function e(t){_(this,e),this._elementRef=t})),mB=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u,c){var l;return _(this,n),(l=t.call(this,i))._changeDetector=r,l._focusMonitor=o,l._radioDispatcher=a,l._providerOverride=u,l._uniqueId="mat-radio-"+ ++cB,l.id=l._uniqueId,l.change=new Sc,l._checked=!1,l._value=null,l._removeUniqueSelectionListener=function(){},l.radioGroup=e,l._noopAnimations="NoopAnimations"===s,c&&(l.tabIndex=sy(c,0)),l._removeUniqueSelectionListener=a.listen(function(e,t){e!==l.id&&t===l.name&&(l.checked=!1)}),l}return w(n,[{key:"checked",get:function(){return this._checked},set:function(e){var t=ay(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())}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(e){this._labelPosition=e}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(e){this._setDisabled(ay(e))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(e){this._required=ay(e)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(e){this._color=e}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"focus",value:function(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){!t&&e.radioGroup&&e.radioGroup._touch()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new hB(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(e){e.stopPropagation()}},{key:"_onInputChange",value:function(e){e.stopPropagation();var t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}}]),n}(gB);return e.\u0275fac=function(t){return new(t||e)(Ja(fB),Ja(mu),Ja(ju),Ja(Zy),Ja(AA),Ja(String),Ja(void 0),Ja(String))},e.\u0275dir=gt({type:e,viewQuery:function(e,t){var n;(1&e&&Fc(oB,5),2&e)&&(Bc(n=qc())&&(t._inputElement=n.first))},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[Oa]}),e}(),vB=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u,c){return _(this,n),t.call(this,e,i,r,o,a,s,u,c)}return n}(mB);return e.\u0275fac=function(t){return new(t||e)(Ja(dB,8),Ja(mu),Ja(ju),Ja(Zy),Ja(AA),Ja(Rw,8),Ja(uB,8),ci("tabindex"))},e.\u0275cmp=ct({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&cs("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(Ua("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Es("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:[Oa],ngContentSelectors:sB,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(ms(),$a(0,"label",0,1),$a(2,"span",2),ts(3,"span",3),ts(4,"span",4),$a(5,"input",5,6),cs("change",function(e){return t._onInputChange(e)})("click",function(e){return t._onInputClick(e)}),es(),$a(7,"span",7),ts(8,"span",8),es(),es(),$a(9,"span",9),$a(10,"span",10),qs(11,"\xa0"),es(),vs(12),es(),es()),2&e){var n=Ga(1);Ua("for",t.inputId),yo(5),Qa("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),Ua("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),yo(2),Qa("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",pc(18,aB,t._noopAnimations?0:150)),yo(2),Es("mat-radio-label-before","before"==t.labelPosition)}},directives:[vM],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-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;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),e}(),yB=((iB=function e(){_(this,e)}).\u0275fac=function(e){return new(e||iB)},iB.\u0275mod=ft({type:iB}),iB.\u0275inj=xe({imports:[[yM,Yw],Yw]}),iB);function _B(e,t){1&e&&ts(0,"mat-spinner",4)}function bB(e,t){1&e&&($a(0,"span",11),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),Ys(" ",bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function wB(e,t){1&e&&($a(0,"span",11),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),Ys(" ",bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function MB(e,t){if(1&e){var n=os();$a(0,"mat-radio-group",12),cs("ngModelChange",function(e){return Qt(n),ps(2).asyncValidation=e}),$a(1,"span",13),qs(2),_c(3,"translate"),es(),$a(4,"mat-radio-button",14),qs(5),_c(6,"translate"),es(),$a(7,"mat-radio-button",14),qs(8),_c(9,"translate"),es(),es()}2&e&&(Qa("ngModel",ps(2).asyncValidation),yo(2),Ys(" ",bc(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE"),": "),yo(2),Qa("value",!1),yo(1),Ys(" ",bc(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),yo(2),Qa("value",!0),yo(1),Ys(" ",bc(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," "))}function AB(e,t){1&e&&($a(0,"span",11),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),Ys(" ",bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function kB(e,t){1&e&&($a(0,"span",11),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),Ys(" ",bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function TB(e,t){if(1&e&&($a(0,"div",5),$a(1,"p",6),qs(2),$a(3,"span",7),qs(4),es(),qs(5),$a(6,"span",7),qs(7),es(),es(),$a(8,"p"),$a(9,"strong",8),qs(10),_c(11,"translate"),es(),qs(12),es(),$a(13,"p"),$a(14,"strong",8),qs(15),_c(16,"translate"),es(),qs(17),es(),Xa(18,bB,3,3,"span",9),Xa(19,wB,3,3,"span",9),Xa(20,MB,10,12,"mat-radio-group",10),Xa(21,AB,3,3,"span",9),Xa(22,kB,3,3,"span",9),es()),2&e){var n=ps();yo(2),Ys(" ",n.group.name," "),yo(2),Ys("#",n.group.id,""),yo(1),Ys(" - ",n.resource.name," "),yo(2),Ys("#",n.resource.id,""),yo(3),Ys("",bc(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT"),":"),yo(2),Ys(" ",n.status," "),yo(3),Ys("",bc(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW"),":"),yo(2),Ys(" ",n.getReversedStatus()," "),yo(1),Qa("ngIf","INACTIVE"===n.status),yo(1),Qa("ngIf","ACTIVE"===n.status),yo(1),Qa("ngIf","INACTIVE"===n.status),yo(1),Qa("ngIf","INACTIVE"===n.status&&!1===n.asyncValidation),yo(1),Qa("ngIf","INACTIVE"===n.status&&!0===n.asyncValidation)}}function SB(e,t){if(1&e){var n=os();$a(0,"div",15),$a(1,"button",16),cs("click",function(){return Qt(n),ps().onCancel()}),qs(2),_c(3,"translate"),es(),$a(4,"button",17),cs("click",function(){return Qt(n),ps().onSubmit()}),qs(5),_c(6,"translate"),es(),es()}if(2&e){var i=ps();yo(2),Ys(" ",bc(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),yo(2),Qa("disabled",i.loading),yo(1),Ys(" ",bc(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SUBMIT")," ")}}var CB=function(){var e=function(){function e(t,n,i,r){_(this,e),this.dialogRef=t,this.data=n,this.resourceService=i,this.groupService=r,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(function(t){e.resource=t,e.groupService.getGroupById(e.data.groupId).subscribe(function(t){e.group=t,e.loading=!1},function(){return e.loading=!1})},function(){return e.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(function(){e.dialogRef.close(!0),e.loading=!1},function(){return e.loading=!1}):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(function(){e.dialogRef.close(!0),e.loading=!1},function(){return e.loading=!1})}},{key:"getReversedStatus",value:function(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE),Ja(NE),Ja(ip),Ja($f))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(e,t){1&e&&($a(0,"div"),$a(1,"h1",0),qs(2),_c(3,"translate"),es(),Xa(4,_B,1,0,"mat-spinner",1),Xa(5,TB,23,17,"div",2),Xa(6,SB,7,7,"div",3),es()),2&e&&(Ls(t.theme),yo(2),js(bc(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")),yo(2),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading),yo(1),Qa("ngIf",!t.loading))},directives:[YE,Xh,xL,WE,pB,xT,uS,vB,UE,BM],pipes:[kE],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),e}();function EB(e,t){if(1&e){var n=os();$a(0,"span",3),cs("click",function(){return Qt(n),ps().changeStatus()}),_c(1,"translate"),$a(2,"mat-icon",4),qs(3,"check_circle_outline"),es(),es()}2&e&&ys("matTooltip",bc(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function LB(e,t){if(1&e){var n=os();$a(0,"span",3),cs("click",function(){return Qt(n),ps().changeStatus()}),_c(1,"translate"),$a(2,"mat-icon",5),qs(3,"block"),es(),es()}2&e&&ys("matTooltip",bc(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function zB(e,t){if(1&e&&($a(0,"span",6),_c(1,"translate"),$a(2,"mat-icon",7),qs(3,"report"),es(),es()),2&e){var n=ps();bs("matTooltip","",bc(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",n.failureCause,"")}}function RB(e,t){1&e&&($a(0,"span",6),_c(1,"translate"),$a(2,"mat-icon",8),qs(3,"autorenew"),es(),es()),2&e&&ys("matTooltip",bc(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}var OB=function(){var e=function(){function e(t){_(this,e),this.dialog=t,this.status="",this.statusChange=new Sc}return w(e,[{key:"changeStatus",value:function(){var e=this,t=GE();t.width="500px",t.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(CB,t).afterClosed().subscribe(function(t){t&&e.statusChange.emit()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(qE))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],["matTooltipPosition","above",3,"matTooltip"],[1,"red"],[1,"black"]],template:function(e,t){1&e&&($a(0,"div",0),Xa(1,EB,4,3,"span",1),Xa(2,LB,4,3,"span",1),Xa(3,zB,4,4,"span",2),Xa(4,RB,4,3,"span",2),es()),2&e&&(yo(1),Qa("ngIf","ACTIVE"===t.status),yo(1),Qa("ngIf","INACTIVE"===t.status),yo(1),Qa("ngIf","FAILED"===t.status),yo(1),Qa("ngIf","PROCESSING"===t.status))},directives:[Xh,rC,iE],pipes:[kE],styles:[""]}),e}(),xB=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e){if(null==e)return null;var t="";return e.forEach(function(e){t=t.concat(e.tagName)}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=mt({name:"resourceTagsToString",type:e,pure:!0}),e}(),DB=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e,t){return t?"/organizations/".concat(e.voId,"/resources/").concat(e.id):"/facilities/".concat(e.facilityId,"/resources/").concat(e.id)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=mt({name:"getResourceRoute",type:e,pure:!0}),e}();function PB(e,t){if(1&e){var n=os();$a(0,"th",20),$a(1,"mat-checkbox",21),cs("change",function(e){Qt(n);var t=ps();return e?t.masterToggle():null}),es(),es()}if(2&e){var i=ps();yo(1),Qa("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function NB(e,t){if(1&e){var n=os();$a(0,"td",22),$a(1,"mat-checkbox",23),cs("change",function(e){var t=Qt(n).$implicit,i=ps();return e?i.itemSelectionToggle(t):null})("click",function(e){return e.stopPropagation()}),es(),es()}if(2&e){var i=t.$implicit,r=ps();yo(1),Qa("aria-label",r.checkboxLabel(i))("checked",r.selection.isSelected(i))}}function IB(e,t){1&e&&($a(0,"th",24),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")))}function BB(e,t){if(1&e&&($a(0,"td",22),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.id)}}function FB(e,t){1&e&&ts(0,"th",20)}function HB(e,t){if(1&e&&($a(0,"td",25),ts(1,"perun-web-apps-recently-viewed-icon",26),es()),2&e){var n=t.$implicit,i=ps();yo(1),Qa("recentIds",i.recentIds)("id",n.id)}}function qB(e,t){1&e&&($a(0,"th",24),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")))}function jB(e,t){if(1&e&&($a(0,"td",25),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.name)}}function YB(e,t){1&e&&($a(0,"th",24),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")))}function WB(e,t){if(1&e&&($a(0,"td",25),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.vo.name)}}function UB(e,t){1&e&&($a(0,"th",24),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")))}function KB(e,t){if(1&e){var n=os();$a(0,"td",25),$a(1,"perun-web-apps-group-resource-status",27),cs("mouseenter",function(){return Qt(n),ps().disabledRouting=!0})("mouseleave",function(){Qt(n);var e=ps();return e.disabledRouting=e.disableRouting})("statusChange",function(){return Qt(n),ps().refreshTable.emit()}),es(),es()}if(2&e){var i=t.$implicit,r=ps();yo(1),Qa("theme","group-theme")("resourceId",i.id)("groupId",r.groupId)("failureCause",i.failureCause)("status",i.status)}}function VB(e,t){1&e&&($a(0,"th",24),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")))}function XB(e,t){if(1&e&&($a(0,"td",25),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.facility.name)}}function GB(e,t){1&e&&($a(0,"th",24),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")))}function JB(e,t){if(1&e&&($a(0,"td",25),qs(1),_c(2,"resourceTagsToString"),es()),2&e){var n=t.$implicit;yo(1),js(bc(2,1,n.resourceTags))}}function QB(e,t){1&e&&($a(0,"th",24),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")))}function ZB(e,t){if(1&e&&($a(0,"td",25),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.description)}}function $B(e,t){1&e&&ts(0,"tr",28)}var eF=function(e){return[e]};function tF(e,t){if(1&e&&(ts(0,"tr",29),_c(1,"getResourceRoute"),_c(2,"getResourceRoute")),2&e){var n=t.$implicit,i=ps();Es("cursor-pointer",!i.disableRouting)("disable-outline",i.disabledRouting),Qa("perunWebAppsMiddleClickRouterLink",pc(12,eF,i.disabledRouting?null:wc(1,6,n,i.routingVo)))("routerLink",i.disabledRouting?null:wc(2,9,n,i.routingVo))}}function nF(e,t){1&e&&($a(0,"app-alert",30),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),Ys(" ",bc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function iF(e,t){1&e&&($a(0,"app-alert",30),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),Ys(" ",bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}var rF=function(){var e=function(){function e(t,n){_(this,e),this.guiAuthResolver=t,this.tableCheckbox=n,this.resources=[],this.selection=new MA(!0,[]),this.pageSize=10,this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","name","vo","status","facility","tags","description"],this.pageSizeOptions=XE,this.groupId=null,this.page=new Sc,this.refreshTable=new Sc,this.allSelected=new Sc,this.removeAuth=!1,this.addAuth=!1}return w(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnInit",value:function(){this.disabledRouting=this.disableRouting}},{key:"ngOnChanges",value:function(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new Kz(this.resources),this.setDataSource(),this.dataSource.filter=this.filterValue,this.setAuth()}},{key:"getDataForColumn",value:function(e,t,n){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 n.recentIds&&n.recentIds.indexOf(e.id)>-1?"#".repeat(n.recentIds.indexOf(e.id)):e.name;case"tags":if(!e.resourceTags)return e[t];var i="";return e.resourceTags.forEach(function(e){i=i.concat(e.tagName)}),i;case"status":return e.status;case"uuid":return e.uuid;default:return e[t]}}},{key:"exportData",value:function(e){eL($E(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,n){return ZE(t,n,e.displayedColumns,e.getDataForColumn,e,!0)},this.dataSource.sortData=function(t,n){return QE(t,n,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){var e=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource);return this.allSelected.emit(e),e}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1),this.setAuth()}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}},{key:"setAuth",value:function(){var e=this,t=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce(function(n,i){return n&&e.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",t.concat([i]))},!0),this.addAuth=this.selection.selected.reduce(function(n,i){return n&&e.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",t.concat([i]))},!0)}},{key:"itemSelectionToggle",value:function(e){this.selection.toggle(e),this.setAuth()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(up),Ja(vL))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){var n;(1&e&&(Fc(fN,7),Fc(oL,7)),2&e)&&(Bc(n=qc())&&(t.matSort=n.first),Bc(n=qc())&&(t.child=n.first))},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId"},outputs:{page:"page",refreshTable:"refreshTable",allSelected:"allSelected"},features:[Et],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","status"],["matColumnDef","facility"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],[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&&($a(0,"div",0),$a(1,"perun-web-apps-table-wrapper",1),cs("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),$a(2,"table",2),ns(3,3),Xa(4,PB,2,3,"th",4),Xa(5,NB,2,2,"td",5),is(),ns(6,6),Xa(7,IB,3,3,"th",7),Xa(8,BB,2,1,"td",8),is(),ns(9,9),Xa(10,FB,1,0,"th",4),Xa(11,HB,2,2,"td",10),is(),ns(12,11),Xa(13,qB,3,3,"th",7),Xa(14,jB,2,1,"td",10),is(),ns(15,12),Xa(16,YB,3,3,"th",7),Xa(17,WB,2,1,"td",10),is(),ns(18,13),Xa(19,UB,3,3,"th",7),Xa(20,KB,2,5,"td",10),is(),ns(21,14),Xa(22,VB,3,3,"th",7),Xa(23,XB,2,1,"td",10),is(),ns(24,15),Xa(25,GB,3,3,"th",7),Xa(26,JB,3,3,"td",10),is(),ns(27,16),Xa(28,QB,3,3,"th",7),Xa(29,ZB,2,1,"td",10),is(),Xa(30,$B,1,0,"tr",17),Xa(31,tF,3,14,"tr",18),es(),es(),es(),Xa(32,nF,3,3,"app-alert",19),Xa(33,iF,3,3,"app-alert",19)),2&e&&(Qa("hidden",0===t.dataSource.filteredData.length||0===t.resources.length),yo(1),Qa("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),yo(1),Qa("dataSource",t.dataSource),yo(28),Qa("matHeaderRowDef",t.displayedColumns),yo(1),Qa("matRowDefColumns",t.displayedColumns),yo(1),Qa("ngIf",0===t.dataSource.filteredData.length&&0!==t.resources.length),yo(1),Qa("ngIf",0===t.resources.length))},directives:[oL,Pz,fN,Bz,Iz,Nz,qz,jz,Xh,Fz,pD,Hz,_N,rB,OB,Yz,Wz,MN,Sv,hR],pipes:[kE,xB,DB],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),e}();function oF(e,t){1&e&&ts(0,"mat-spinner",8)}var aF=function(){return["name","description"]};function sF(e,t){1&e&&ts(0,"perun-web-apps-resources-list",9),2&e&&Qa("resources",ps(3).resources)("displayedColumns",fc(3,aF))("disableRouting",!0)}function uF(e,t){if(1&e&&(Xa(0,oF,1,0,"mat-spinner",6),Xa(1,sF,1,4,"perun-web-apps-resources-list",7)),2&e){var n=ps(2);Qa("ngIf",n.loading),yo(1),Qa("ngIf",!n.loading)}}function cF(e,t){if(1&e){var n=os();$a(0,"mat-expansion-panel",4),cs("opened",function(){var e=Qt(n).$implicit;return ps().getMemberData(e)}),$a(1,"mat-expansion-panel-header"),$a(2,"mat-panel-title"),qs(3),es(),es(),Xa(4,uF,2,2,"ng-template",5),es()}if(2&e){var i=t.$implicit;yo(3),Ys(" ",i.name," ")}}var lF=function(){var e=function(){function e(t,n,i,r){_(this,e),this.usersManagerService=t,this.membersManagerService=n,this.resourcesManagerService=i,this.storage=r,this.resources=[],this.filteredVos=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(function(t){e.vos=t,e.filteredVos=t})}},{key:"getMemberData",value:function(e){var t=this;this.loading=!0,this.membersManagerService.getMemberByUser(e.id,this.userId).subscribe(function(e){t.resourcesManagerService.getAssignedRichResourcesWithMember(e.id).subscribe(function(e){t.resources=e,t.loading=!1})})}},{key:"applyFilter",value:function(e){this.filteredVos=this.vos.filter(function(t){return t.name.toLowerCase().includes(e.toLowerCase())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(rp),Ja(ep),Ja(ip),Ja(sL))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div",1),$a(5,"perun-web-apps-immediate-filter",2),cs("filter",function(e){return t.applyFilter(e)}),_c(6,"translate"),_c(7,"customTranslate"),es(),$a(8,"mat-accordion"),Xa(9,cF,5,1,"mat-expansion-panel",3),es(),es()),2&e&&(yo(1),js(bc(2,3,bc(3,5,"SERVICES.TITLE"))),yo(4),Qa("placeholder",bc(6,7,bc(7,9,"SERVICES.FILTER"))),yo(4),Qa("ngForOf",t.filteredVos))},directives:[OI,eB,Kh,QI,ZI,$I,XI,Xh,xL,rF],pipes:[kE,ML],styles:[""]}),e}();function hF(e,t){if(1&e){var n=os();$a(0,"perun-web-apps-immediate-filter",5),cs("filter",function(e){return Qt(n),ps().applyFilter(e)}),es()}2&e&&Qa("placeholder","ORGANIZATIONS.FILTER")}function dF(e,t){1&e&&ts(0,"mat-spinner",6)}var fF=function(){return["name","expirationAttribute","extend"]};function pF(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"perun-web-apps-membership-list",11),cs("extendMembership",function(e){return Qt(n),ps(2).extendMembership(e)}),es(),es()}if(2&e){var i=ps(2);yo(1),Qa("members",i.userMemberships)("selection",i.selection)("filterValue",i.filterValue)("displayedColumns",fc(4,fF))}}function gF(e,t){1&e&&($a(0,"app-alert",12),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function mF(e,t){if(1&e&&($a(0,"div",7),$a(1,"h1",8),qs(2),_c(3,"translate"),_c(4,"customTranslate"),es(),Xa(5,pF,2,5,"div",9),Xa(6,gF,4,5,"app-alert",10),es()),2&e){var n=ps();yo(2),js(bc(3,3,bc(4,5,"ORGANIZATIONS.IS_MEMBER"))),yo(3),Qa("ngIf",0!==n.userMemberships.length),yo(1),Qa("ngIf",0===n.userMemberships.length)}}function vF(e,t){1&e&&($a(0,"app-alert",12),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}var yF=function(){return["name"]};function _F(e,t){if(1&e&&ts(0,"perun-web-apps-membership-list",14),2&e){var n=ps(2);Qa("members",n.adminMemberships)("filterValue",n.filterValue)("displayedColumns",fc(3,yF))}}function bF(e,t){if(1&e&&($a(0,"div",7),$a(1,"h1",8),qs(2),_c(3,"translate"),_c(4,"customTranslate"),es(),Xa(5,vF,4,5,"app-alert",10),Xa(6,_F,1,4,"perun-web-apps-membership-list",13),es()),2&e){var n=ps();yo(2),js(bc(3,3,bc(4,5,"ORGANIZATIONS.IS_ADMIN"))),yo(3),Qa("ngIf",!n.adminMemberships.length),yo(1),Qa("ngIf",n.adminMemberships.length)}}var wF=function(){var e=function(){function e(t,n,i){_(this,e),this.usersService=t,this.store=n,this.membersService=i,this.filterValue="",this.selection=new MA(!1,[]),this.userMemberships=[],this.adminMemberships=[],this.vosCount=0}return w(e,[{key:"ngOnInit",value:function(){this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.user.id,this.refreshTable()}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(function(t){e.usersService.getVosWhereUserIsAdmin(e.userId).subscribe(function(n){e.vosCount=t.length+n.length,e.fillMemberships(t,e.userMemberships),e.fillMemberships(n,e.adminMemberships)})})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"isEverythingLoaded",value:function(){this.vosCount--,this.loading=0!==this.vosCount}},{key:"fillMemberships",value:function(e,t){var n=this;this.membersService.getMembersByUser(this.userId).subscribe(function(i){e.forEach(function(e){var r=i.find(function(t){return t.voId===e.id});r?n.membersService.getRichMemberWithAttributes(r.id).subscribe(function(i){var r=i.memberAttributes.find(function(e){return"membershipExpiration"===e.friendlyName});t.push({entity:e,expirationAttribute:r}),n.isEverythingLoaded()}):(t.push({entity:e,expirationAttribute:null}),n.isEverythingLoaded())})})}},{key:"extendMembership",value:function(e){var t=this.store.get("registrar_base_url");window.location.href="".concat(t,"?vo=").concat(e.entity.shortName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(rp),Ja(sL),Ja(ep))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div",1),Xa(5,hF,1,1,"perun-web-apps-immediate-filter",2),Xa(6,dF,1,0,"mat-spinner",3),Xa(7,mF,7,7,"div",4),Xa(8,bF,7,7,"div",4),es()),2&e&&(yo(1),js(bc(2,5,bc(3,7,"ORGANIZATIONS.TITLE"))),yo(4),Qa("ngIf",!t.loading),yo(1),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading),yo(1),Qa("ngIf",!t.loading))},directives:[Xh,OI,xL,bI,hR],pipes:[kE,ML],styles:[""]}),e}(),MF=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(e,t){1&e&&($a(0,"div",0),ts(1,"router-outlet"),es())},directives:[Lv],styles:[""]}),e}(),AF=function(){var e=function(){function e(t,n){_(this,e),this.dialogRef=t,this.data=n,this.password=""}return w(e,[{key:"ngOnInit",value:function(){this.password=this.data.password}},{key:"onClose",value:function(){this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE),Ja(NE))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div",1),$a(5,"p"),qs(6),_c(7,"translate"),_c(8,"customTranslate"),es(),$a(9,"label"),ts(10,"input",2),es(),es(),$a(11,"div",3),$a(12,"button",4),cs("click",function(){return t.onClose()}),qs(13),_c(14,"translate"),_c(15,"customTranslate"),es(),$a(16,"button",5),qs(17),_c(18,"translate"),_c(19,"customTranslate"),es(),es()),2&e&&(yo(1),js(bc(2,6,bc(3,8,"DIALOGS.SHOW_PASSWORD.TITLE"))),yo(5),js(bc(7,10,bc(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),yo(4),Qa("value",t.password),yo(3),Ys(" ",bc(14,14,bc(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),yo(3),Qa("cdkCopyToClipboard",t.password),yo(1),Ys(" ",bc(18,18,bc(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},directives:[YE,WE,UE,BM,rR],pipes:[kE,ML],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),e}();function kF(e,t){1&e&&ts(0,"mat-spinner",7)}function TF(e,t){1&e&&ts(0,"th",16)}function SF(e,t){if(1&e&&($a(0,"td",17),qs(1),es()),2&e){var n=t.$implicit;yo(1),Ys(" ",n," ")}}function CF(e,t){1&e&&ts(0,"tr",18)}function EF(e,t){1&e&&ts(0,"tr",19)}function LF(e,t){if(1&e&&($a(0,"div",8),$a(1,"p"),qs(2),_c(3,"translate"),_c(4,"customTranslate"),es(),$a(5,"div",9),qs(6),_c(7,"translate"),_c(8,"customTranslate"),es(),$a(9,"table",10),ns(10,11),Xa(11,TF,1,0,"th",12),Xa(12,SF,2,1,"td",13),is(),Xa(13,CF,1,0,"tr",14),Xa(14,EF,1,0,"tr",15),es(),es()),2&e){var n=ps();yo(2),Ys(" ",bc(3,5,bc(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),yo(4),Ys(" ",bc(7,9,bc(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),yo(3),Qa("dataSource",n.dataSource),yo(4),Qa("matHeaderRowDef",n.displayedColumns),yo(1),Qa("matRowDefColumns",n.displayedColumns)}}var zF=function(){var e=function(){function e(t,n,i){_(this,e),this.dialogRef=t,this.data=n,this.usersManagerService=i,this.displayedColumns=["description"]}return w(e,[{key:"ngOnInit",value:function(){this.dataSource=new Kz(this.data.description)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe(function(){e.loading=!1,e.dialogRef.close(!0)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE),Ja(NE),Ja(rp))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div",1),Xa(5,kF,1,0,"mat-spinner",2),es(),Xa(6,LF,15,13,"div",3),$a(7,"div",4),$a(8,"button",5),cs("click",function(){return t.onCancel()}),qs(9),_c(10,"translate"),_c(11,"customTranslate"),es(),$a(12,"button",6),cs("click",function(){return t.onSubmit()}),qs(13),_c(14,"translate"),_c(15,"customTranslate"),es(),es()),2&e&&(yo(1),js(bc(2,5,bc(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),yo(4),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading),yo(3),Ys(" ",bc(10,9,bc(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),yo(4),Ys(" ",bc(14,13,bc(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},directives:[YE,Xh,UE,BM,xL,WE,Pz,Bz,Iz,Nz,qz,jz,Fz,Hz,Yz,Wz],pipes:[kE,ML],styles:[""]}),e}();function RF(e,t){1&e&&ts(0,"th",12)}function OF(e,t){if(1&e){var n=os();$a(0,"td",13),$a(1,"mat-checkbox",14),cs("change",function(e){var t=Qt(n).$implicit,i=ps();return e?i.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),es(),es()}if(2&e){var i=t.$implicit,r=ps();yo(1),Qa("aria-label",r.checkboxLabel(i))("checked",r.selection.isSelected(i))}}function xF(e,t){if(1&e&&($a(0,"th",15),qs(1),es()),2&e){var n=ps();yo(1),js(n.headerColumnText)}}function DF(e,t){if(1&e&&($a(0,"td",16),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n)}}function PF(e,t){1&e&&ts(0,"tr",17)}function NF(e,t){1&e&&ts(0,"tr",18)}function IF(e,t){if(1&e&&($a(0,"app-alert",19),qs(1),es()),2&e){var n=ps();yo(1),Ys(" ",n.alertText,"\n")}}var BF=function(){var e=function(){function e(){_(this,e),this.values=[],this.selection=new MA(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"],this.pageSize=5}return w(e,[{key:"ngOnChanges",value:function(){this.values=this.values?this.values:[],this.dataSource=new Kz(this.values),this.setDataSource()}},{key:"getExportDataForColumn",value:function(e){return e}},{key:"exportData",value:function(e){eL($E(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),e)}},{key:"setDataSource",value:function(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"checkboxLabel",value:function(e){return(this.selection.isSelected(e)?"deselect":"select")+" row"}},{key:"ngAfterViewInit",value:function(){this.setDataSource()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-string-list"]],viewQuery:function(e,t){var n;(1&e&&Fc(oL,7),2&e)&&(Bc(n=qc())&&(t.child=n.first))},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[Et],decls:12,vars:7,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSize","exportData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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",""],["mat-cell","",1,"static-column-size"],["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&&($a(0,"div",0),$a(1,"perun-web-apps-table-wrapper",1),cs("exportData",function(e){return t.exportData(e)}),$a(2,"table",2),ns(3,3),Xa(4,RF,1,0,"th",4),Xa(5,OF,2,2,"td",5),is(),ns(6,6),Xa(7,xF,2,1,"th",7),Xa(8,DF,2,1,"td",8),is(),Xa(9,PF,1,0,"tr",9),Xa(10,NF,1,0,"tr",10),es(),es(),es(),Xa(11,IF,2,1,"app-alert",11)),2&e&&(Qa("hidden",!t.values.length),yo(1),Qa("dataLength",t.dataSource.filteredData.length)("pageSize",t.pageSize),yo(1),Qa("dataSource",t.dataSource),yo(7),Qa("matHeaderRowDef",t.displayedColumns),yo(1),Qa("matRowDefColumns",t.displayedColumns),yo(1),Qa("ngIf",0===t.values.length))},directives:[oL,Pz,Bz,Iz,Nz,qz,jz,Xh,Fz,Hz,pD,Yz,Wz,hR],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),e}();function FF(e,t){if(1&e&&ts(0,"perun-web-apps-string-list",10),2&e){var n=ps();Qa("values",n.displayedValues)("selection",n.selection)("alertText",n.alertText)("headerColumnText",n.headerColumnText)}}function HF(e,t){1&e&&ts(0,"mat-spinner",11)}var qF=function(){var e=function(){function e(t,n,i,r,o){var a=this;_(this,e),this.store=t,this.attributesManagerService=n,this.dialog=i,this.translateService=r,this.usersManagerService=o,this.altPasswordCtrl=new eS(null,[pT.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new MA(!1,[]),r.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(function(e){return a.removeDialogDescription=e}),r.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(function(e){return a.removeDialogTitle=e}),r.get("ALERTS.NO_ALT_PASSWORDS").subscribe(function(e){return a.alertText=e}),r.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(function(e){return a.headerColumnText=e})}return w(e,[{key:"ngOnInit",value:function(){this.getAltPasswords()}},{key:"createPassword",value:function(){var e=this,t=this.generatePassword();this.usersManagerService.createAlternativePassword(this.userId,this.altPasswordCtrl.value,"einfra",t).subscribe(function(){var n=GE();n.width="600px",n.data={password:t},e.dialog.open(AF,n),e.getAltPasswords(),e.altPasswordCtrl.setValue("")})}},{key:"generatePassword",value:function(){for(var e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-",t="",n=0,i=e.length;n<16;++n)t+=e.charAt(Math.random()*i);return t.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),t}},{key:"getAltPasswords",value:function(){var e=this;this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(function(t){if(e.altPasswordsAttribute=t,t.value){var n=Object.keys(t.value);e.passwordDescriptions=new Set(n),e.displayedValues=Array.from(e.passwordDescriptions.values())}else e.displayedValues=[];e.loading=!1})}},{key:"alreadyContainsValue",value:function(e){return this.passwordDescriptions.has(e)}},{key:"removeAltPasswords",value:function(){var e=this,t=GE();t.width="600px",t.data={description:this.selection.selected,passwordId:this.altPasswordsAttribute.value[this.selection.selected[0]],userId:this.userId},this.dialog.open(zF,t).afterClosed().subscribe(function(t){t&&(e.getAltPasswords(),e.selection.clear())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(sL),Ja(Qf),Ja(qE),Ja(AE),Ja(rp))},e.\u0275cmp=ct({type:e,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&&($a(0,"div",0),$a(1,"h1",1),qs(2),_c(3,"translate"),_c(4,"customTranslate"),es(),$a(5,"mat-form-field",2),$a(6,"label",2),ts(7,"input",3),_c(8,"translate"),_c(9,"customTranslate"),es(),es(),$a(10,"button",4),cs("click",function(){return t.createPassword()}),qs(11),_c(12,"translate"),_c(13,"customTranslate"),es(),$a(14,"app-alert",5),qs(15),_c(16,"translate"),_c(17,"customTranslate"),es(),$a(18,"h1",6),qs(19),_c(20,"translate"),_c(21,"customTranslate"),es(),$a(22,"button",7),cs("click",function(){return t.removeAltPasswords()}),qs(23),_c(24,"translate"),_c(25,"customTranslate"),es(),Xa(26,FF,1,4,"perun-web-apps-string-list",8),Xa(27,HF,1,0,"mat-spinner",9),es()),2&e&&(yo(2),js(bc(3,11,bc(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),yo(5),ys("placeholder",bc(8,15,bc(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),Qa("formControl",t.altPasswordCtrl),yo(3),Qa("disabled",!t.altPasswordCtrl.valid||t.alreadyContainsValue(t.altPasswordCtrl.value)),yo(1),js(bc(12,19,bc(13,21,"ALT_PASSWORDS.GENERATE"))),yo(4),js(bc(16,23,bc(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),yo(4),js(bc(20,27,bc(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),yo(3),Qa("disabled",t.selection.isEmpty()),yo(1),js(bc(24,31,bc(25,33,"ALT_PASSWORDS.REMOVE"))),yo(3),Qa("ngIf",!t.loading),yo(1),Qa("ngIf",t.loading))},directives:[$k,YL,uT,xT,gS,BM,hR,Xh,BF,xL],pipes:[kE,ML],styles:[""]}),e}();function jF(e,t){if(1&e&&($a(0,"mat-list-item",1),$a(1,"mat-icon"),qs(2),es(),$a(3,"p",2),qs(4),_c(5,"translate"),_c(6,"customTranslate"),es(),es()),2&e){var n=t.$implicit;Qa("routerLink",n.url),yo(2),js(n.icon),yo(2),js(bc(5,3,bc(6,5,n.label)))}}var YF=function(){var e=function(){function e(t){_(this,e),this.storeService=t,this.items=[]}return w(e,[{key:"ngOnInit",value:function(){this.initItems();var e=this.storeService.get("displayed_tabs");this.items=this.items.filter(function(t){return e.includes(t.tabName)})}},{key:"initItems",value:function(){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:"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"}]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(sL))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-settings-overview"]],decls:2,vars:1,consts:[["matRipple","",3,"routerLink",4,"ngFor","ngForOf"],["matRipple","",3,"routerLink"],[1,"ml-2","mt-auto","mb-auto"]],template:function(e,t){1&e&&($a(0,"mat-list"),Xa(1,jF,7,7,"mat-list-item",0),es()),2&e&&(yo(1),Qa("ngForOf",t.items))},directives:[hx,Kh,px,vM,Sv,iE],pipes:[kE,ML],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),e}(),WF=["row","column","row-reverse","column-reverse"];function UF(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var KF=function(){var e,n=function(e){d(i,e);var n=p(i);function i(){return _(this,i),n.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e){return n=function(e){var n=t((e=e?e.toLowerCase():"").split(" "),3),i=n[0],r=n[1],o=n[2];return WF.find(function(e){return e===i})||(i=WF[0]),"inline"===r&&(r="inline"!==o?o:"",o="inline"),[i,UF(r),!!o]}(e),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}((i=t(n,3))[0],i[1],i[2]);var n,i}}]),i}(uO);return n.\u0275fac=function(t){return(e||(e=si(n)))(t||n)},n.\u0275prov=Oe({factory:function(){return new n},token:n,providedIn:"root"}),n}(),VF=["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"],XF=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this,e,r,i,o)).DIRECTIVE_KEY="layout",a.styleCache=JF,a.init(),a}return n}(HR);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(sO),Ja(KF),Ja(cO))},e.\u0275dir=gt({type:e,features:[Oa]}),e}(),GF=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments)).inputs=VF,e}return n}(XF);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275dir=gt({type:t,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:[Oa]}),t}(),JF=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var QF=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"buildStyles",value:function(e){var 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}}]),n}(uO);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275prov=Oe({factory:function(){return new t},token:t,providedIn:"root"}),t}(),ZF=["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"],$F=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this,e,r,i,o)).DIRECTIVE_KEY="flex-align",a.styleCache=eH,a.init(),a}return n}(HR);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(sO),Ja(QF),Ja(cO))},e.\u0275dir=gt({type:e,features:[Oa]}),e}(),eH=new Map,tH=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments)).inputs=ZF,e}return n}($F);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275dir=gt({type:t,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:[Oa]}),t}();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var nH=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[zR,r_]]}),e}();function iH(e,t){if(1&e&&($a(0,"mat-option",13),qs(1),es()),2&e){var n=t.$implicit;Qa("value",ps().selectedUnit),yo(1),Ys(" ",n," ")}}var rH=function(){var e=function(){function e(t,n,i,r,o){var a=this;_(this,e),this.dialogRef=t,this.data=n,this.rtMessagesService=i,this.notificator=r,this.translate=o,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",o.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(function(e){return a.successMessage=e})}return w(e,[{key:"ngOnInit",value:function(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new eS(null,[pT.required]),this.newValueControl=new eS(null,[pT.required,pT.pattern("[1-9][0-9]*")])}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var e=this,t=(new wL).transform(this.data.user);this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request","QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ".concat(t," (user ID: ").concat(this.data.user.id,")\u21b5 VO: ").concat(this.data.vo.shortName," / ").concat(this.data.vo.name," (vo ID: ").concat(this.data.vo.id,")\u21b5 Resource: ").concat(this.data.resource.name," (resource ID: ").concat(this.data.resource.id,")\u21b5 Data quota\u21b5 Requested quota: ").concat(this.newValueControl.value,"\u21b5 Reason: ").concat(this.reasonControl.value,"\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI")).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.dialogRef.close()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE),Ja(NE),Ja(tp),Ja(fL),Ja(AE))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div",1),$a(5,"div"),$a(6,"p",2),qs(7),_c(8,"translate"),_c(9,"customTranslate"),es(),$a(10,"p"),qs(11),es(),es(),$a(12,"div"),$a(13,"p",2),qs(14),_c(15,"translate"),_c(16,"customTranslate"),es(),$a(17,"p"),qs(18),es(),es(),$a(19,"div",3),$a(20,"mat-form-field"),$a(21,"label",4),ts(22,"input",5),_c(23,"translate"),_c(24,"customTranslate"),es(),es(),$a(25,"mat-select",6),cs("valueChange",function(e){return t.selectedUnit=e}),Xa(26,iH,2,2,"mat-option",7),es(),es(),$a(27,"div"),$a(28,"mat-form-field",8),$a(29,"label",4),ts(30,"textarea",9),_c(31,"translate"),_c(32,"customTranslate"),es(),es(),es(),$a(33,"div",10),$a(34,"button",11),cs("click",function(){return t.onCancel()}),qs(35),_c(36,"translate"),_c(37,"customTranslate"),es(),$a(38,"button",12),cs("click",function(){return t.onSubmit()}),qs(39),_c(40,"translate"),_c(41,"customTranslate"),es(),es(),es()),2&e&&(yo(1),js(bc(2,14,bc(3,16,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.TITLE"))),yo(6),js(bc(8,18,bc(9,20,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))),yo(4),js(t.resource),yo(3),js(bc(15,22,bc(16,24,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))),yo(4),js(t.currentQuota),yo(4),ys("placeholder",bc(23,26,bc(24,28,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),Qa("formControl",t.newValueControl),yo(3),Qa("value",t.selectedUnit),yo(1),Qa("ngForOf",t.units),yo(4),ys("placeholder",bc(31,30,bc(32,32,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),Qa("formControl",t.reasonControl),yo(5),Ys(" ",bc(36,34,bc(37,36,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),yo(3),Qa("disabled",t.reasonControl.invalid),yo(1),Ys(" ",bc(40,38,bc(41,40,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},directives:[YE,GF,tH,$k,YL,hS,uT,_S,xT,gS,YS,Kh,UE,BM,LM],pipes:[kE,ML],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-ripple.mat-form-field-ripple[_ngcontent-%COMP%], .mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%]{display:none}"]}),e}();function oH(e,t){1&e&&ts(0,"mat-spinner",8)}function aH(e,t){1&e&&($a(0,"app-alert",9),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function sH(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"p"),$a(2,"strong"),qs(3),_c(4,"translate"),_c(5,"customTranslate"),es(),qs(6),es(),$a(7,"p",10),qs(8),_c(9,"translate"),_c(10,"customTranslate"),es(),$a(11,"button",11),cs("click",function(){Qt(n);var e=ps().$implicit,t=ps(3).$implicit;return ps().requestChangeQuota(t,e)}),qs(12),_c(13,"translate"),_c(14,"customTranslate"),es(),es()}if(2&e){var i=ps(5);yo(3),js(bc(4,4,bc(5,6,"DATA_QUOTAS.QUOTA"))),yo(3),Ys(" ",i.quotasMarkup,""),yo(2),js(bc(9,8,bc(10,10,"DATA_QUOTAS.QUOTA_INFO"))),yo(4),js(bc(13,12,bc(14,14,"DATA_QUOTAS.CHANGE")))}}function uH(e,t){1&e&&($a(0,"p"),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function cH(e,t){if(1&e){var n=os();$a(0,"mat-expansion-panel",3),cs("opened",function(){var e=Qt(n).$implicit;return ps(4).getResAttributes(e.id)}),$a(1,"mat-expansion-panel-header"),$a(2,"mat-panel-title"),qs(3),es(),es(),Xa(4,sH,15,16,"div",7),Xa(5,uH,4,5,"p",7),es()}if(2&e){var i=t.$implicit,r=ps(4);yo(3),Ys(" ",i.name," "),yo(1),Qa("ngIf",r.defaultQuota),yo(1),Qa("ngIf",!r.defaultQuota)}}function lH(e,t){if(1&e&&($a(0,"mat-accordion"),Xa(1,cH,6,3,"mat-expansion-panel",2),es()),2&e){var n=ps(3);yo(1),Qa("ngForOf",n.resources)}}function hH(e,t){if(1&e&&(Xa(0,oH,1,0,"mat-spinner",5),Xa(1,aH,4,5,"app-alert",6),Xa(2,lH,2,1,"mat-accordion",7)),2&e){var n=ps(2);Qa("ngIf",n.loading),yo(1),Qa("ngIf",0===n.resources.length&&!n.loading),yo(1),Qa("ngIf",n.resources.length&&!n.loading)}}function dH(e,t){if(1&e){var n=os();$a(0,"mat-expansion-panel",3),cs("opened",function(){var e=Qt(n).$implicit;return ps().getMembersResources(e)}),$a(1,"mat-expansion-panel-header"),$a(2,"mat-panel-title"),qs(3),es(),es(),Xa(4,hH,3,3,"ng-template",4),es()}if(2&e){var i=t.$implicit;yo(3),Ys(" ",i.name," ")}}var fH=function(){var e=function(){function e(t,n,i,r,o,a){_(this,e),this.store=t,this.usersManagerService=n,this.membersService=i,this.resourcesManagerService=r,this.attributesManagerService=o,this.dialog=a,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(function(t){e.vos=t,e.filteredVos=t})}},{key:"getMembersResources",value:function(e){var t=this;this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(function(e){t.resourcesManagerService.getAssignedRichResourcesWithMember(e.id).subscribe(function(e){var n=e.length;n||(t.loading=!1),e.forEach(function(e){t.attributesManagerService.getResourceAttributes(e.id).subscribe(function(i){n--,i.find(function(e){return"defaultDataQuotas"===e.friendlyName})&&t.resources.push(e),t.loading=0!==n})})})})}},{key:"getResAttributes",value:function(e){var t=this;this.attributesManagerService.getResourceAttributes(e).subscribe(function(e){var n=e.find(function(e){return"dataQuotas"===e.friendlyName});if(n&&n.value){var i=Object.keys(n.value);t.currentQuota=n.value[i[0]]}else t.currentQuota="";if(n=e.find(function(e){return"defaultDataQuotas"===e.friendlyName})){var r=Object.keys(n.value);t.defaultQuota=n.value[r[0]]}else t.defaultQuota="";t.currentQuota||(t.currentQuota=t.defaultQuota),t.parseMarkup()})}},{key:"parseMarkup",value:function(){var e="";e+=this.currentQuota,e=(e+=" (default: ".concat(this.defaultQuota,")")).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}},{key:"requestChangeQuota",value:function(e,t){var n=GE();n.width="400px",n.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(rH,n)}},{key:"applyFilter",value:function(e){this.filteredVos=this.vos.filter(function(t){return t.name.toLowerCase().includes(e.toLowerCase())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(sL),Ja(rp),Ja(ep),Ja(ip),Ja(Qf),Ja(qE))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-settings-data-quotas"]],decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[2,"color","gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"perun-web-apps-immediate-filter",1),cs("filter",function(e){return t.applyFilter(e)}),_c(5,"translate"),_c(6,"customTranslate"),es(),$a(7,"mat-accordion"),Xa(8,dH,5,1,"mat-expansion-panel",2),es()),2&e&&(yo(1),js(bc(2,3,bc(3,5,"DATA_QUOTAS.TITLE"))),yo(3),Qa("placeholder",bc(5,7,bc(6,9,"DATA_QUOTAS.FILTER"))),yo(4),Qa("ngForOf",t.filteredVos))},directives:[OI,eB,Kh,QI,ZI,$I,XI,Xh,xL,hR,BM],pipes:[kE,ML],styles:[""]}),e}();function pH(e,t){1&e&&ts(0,"mat-spinner",8)}function gH(e,t){1&e&&($a(0,"app-alert",9),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function mH(e,t){if(1&e){var n=os();$a(0,"mat-expansion-panel",3),cs("opened",function(){var e=Qt(n).$implicit;return ps(4).getOptOutAttribute(e)}),$a(1,"mat-expansion-panel-header"),$a(2,"mat-panel-title"),qs(3),es(),es(),$a(4,"div",10),$a(5,"p"),qs(6),_c(7,"translate"),_c(8,"customTranslate"),es(),$a(9,"mat-checkbox",11),cs("change",function(){return Qt(n),ps(4).setOptOut()}),es(),es(),es()}if(2&e){var i=t.$implicit,r=ps(4);yo(3),Ys(" ",i.name," "),yo(3),js(bc(7,3,bc(8,5,"OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))),yo(3),Qa("checked",r.optOutAttribute&&null!==r.optOutAttribute.value)}}function vH(e,t){if(1&e&&($a(0,"mat-accordion"),Xa(1,mH,10,7,"mat-expansion-panel",2),es()),2&e){var n=ps(3);yo(1),Qa("ngForOf",n.resources)}}function yH(e,t){if(1&e&&(Xa(0,pH,1,0,"mat-spinner",5),Xa(1,gH,4,5,"app-alert",6),Xa(2,vH,2,1,"mat-accordion",7)),2&e){var n=ps(2);Qa("ngIf",n.loading),yo(1),Qa("ngIf",0===n.resources.length&&!n.loading),yo(1),Qa("ngIf",n.resources.length&&!n.loading)}}function _H(e,t){if(1&e){var n=os();$a(0,"mat-expansion-panel",3),cs("opened",function(){var e=Qt(n).$implicit;return ps().getMailingLists(e)}),$a(1,"mat-expansion-panel-header"),$a(2,"mat-panel-title"),qs(3),es(),es(),Xa(4,yH,3,3,"ng-template",4),es()}if(2&e){var i=t.$implicit;yo(3),Ys(" ",i.name," ")}}var bH=function(){var e=function(){function e(t,n,i,r,o){_(this,e),this.store=t,this.usersManagerService=n,this.membersService=i,this.resourcesManagerService=r,this.attributesManagerService=o,this.vos=[],this.resources=[],this.mailingLists=[],this.optOuts=[],this.filteredVos=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(function(t){e.vos=t,e.filteredVos=t})}},{key:"getMailingLists",value:function(e){var t=this;this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(function(e){t.resourcesManagerService.getAssignedRichResourcesWithMember(e.id).subscribe(function(n){var i=n.length;i||(t.loading=!1),n.forEach(function(n){t.attributesManagerService.getRequiredAttributesMemberResource(e.id,n.id).subscribe(function(r){t.attributesManagerService.getResourceAttributeByName(n.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(function(o){i--;var a=r.find(function(e){return"optOutMailingList"===e.friendlyName});!a||o&&"true"===o.value||(t.optOuts.push({resource:n.id,member:e.id,attribute:a}),t.resources.push(n)),t.loading=0!==i})})})})})}},{key:"getOptOutAttribute",value:function(e){this.index=this.resources.indexOf(e),this.optOutAttribute=this.optOuts[this.index].attribute}},{key:"setOptOut",value:function(){this.optOuts[this.index].attribute.value=this.optOutAttribute.value?null:"true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(function(){console.log("done")})}},{key:"applyFilter",value:function(e){this.filteredVos=this.vos.filter(function(t){return t.name.toLowerCase().includes(e.toLowerCase())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(sL),Ja(rp),Ja(ep),Ja(ip),Ja(Qf))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-settings-mailing-lists"]],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,"row"],[1,"ml-3",3,"checked","change"]],template:function(e,t){1&e&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"perun-web-apps-immediate-filter",1),cs("filter",function(e){return t.applyFilter(e)}),_c(5,"translate"),_c(6,"customTranslate"),es(),$a(7,"mat-accordion"),Xa(8,_H,5,1,"mat-expansion-panel",2),es()),2&e&&(yo(1),js(bc(2,3,bc(3,5,"OPT_OUT_MAILING_LISTS.TITLE"))),yo(3),Qa("placeholder",bc(5,7,bc(6,9,"OPT_OUT_MAILING_LISTS.FILTER"))),yo(4),Qa("ngForOf",t.filteredVos))},directives:[OI,eB,Kh,QI,ZI,$I,XI,Xh,xL,hR,pD],pipes:[kE,ML],styles:[""]}),e}();function wH(e,t){1&e&&ts(0,"mat-spinner",4)}function MH(e,t){1&e&&ts(0,"th",17)}function AH(e,t){if(1&e&&($a(0,"td",18),qs(1),es()),2&e){var n=t.$implicit;yo(1),Ys(" ",n," ")}}function kH(e,t){1&e&&ts(0,"tr",19)}function TH(e,t){1&e&&ts(0,"tr",20)}function SH(e,t){if(1&e&&($a(0,"table",11),ns(1,12),Xa(2,MH,1,0,"th",13),Xa(3,AH,2,1,"td",14),is(),Xa(4,kH,1,0,"tr",15),Xa(5,TH,1,0,"tr",16),es()),2&e){var n=ps(2);Qa("dataSource",n.dataSource),yo(4),Qa("matHeaderRowDef",n.displayedColumns),yo(1),Qa("matRowDefColumns",n.displayedColumns)}}function CH(e,t){if(1&e){var n=os();$a(0,"div",1),$a(1,"div",5),$a(2,"p"),qs(3),es(),$a(4,"div",6),qs(5),_c(6,"translate"),_c(7,"customTranslate"),es(),Xa(8,SH,6,3,"table",7),es(),$a(9,"div",8),$a(10,"button",9),cs("click",function(){return Qt(n),ps().onCancel()}),qs(11),_c(12,"translate"),_c(13,"customTranslate"),es(),$a(14,"button",10),cs("click",function(){return Qt(n),ps().onSubmit()}),qs(15),_c(16,"translate"),_c(17,"customTranslate"),es(),es(),es()}if(2&e){var i=ps();yo(3),Ys(" ",i.description," "),yo(2),Ys(" ",bc(6,5,bc(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),yo(3),Qa("ngIf",i.dataSource.data.length),yo(3),Ys(" ",bc(12,9,bc(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),yo(4),Ys(" ",bc(16,13,bc(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}var EH=function(){var e=function(){function e(t,n,i){_(this,e),this.dialogRef=t,this.data=n,this.attributesManagerService=i,this.displayedColumns=["name"]}return w(e,[{key:"ngOnInit",value:function(){this.dataSource=new Kz(this.data.values),this.description=this.data.description,this.title=this.data.title}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{var t=this.data.attribute.value?this.data.attribute.value:[];void 0!==this.data.valueIndex?t.splice(this.data.valueIndex,1):t=t.filter(function(t){return!e.data.values.find(function(e){return e===t})}),this.data.attribute.value=t}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(function(){e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE),Ja(NE),Ja(Qf))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),es(),$a(2,"div",1),Xa(3,wH,1,0,"mat-spinner",2),es(),Xa(4,CH,18,17,"div",3)),2&e&&(yo(1),js(t.title),yo(2),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading))},directives:[YE,Xh,xL,WE,UE,BM,Pz,Bz,Iz,Nz,qz,jz,Fz,Hz,Yz,Wz],pipes:[kE,ML],styles:[""]}),e}();function LH(e,t){1&e&&($a(0,"app-alert",5),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function zH(e,t){if(1&e){var n=os();$a(0,"mat-option",11),cs("click",function(){return Qt(n),ps(3).changeValue()}),qs(1),es()}if(2&e){var i=t.$implicit;Qa("value",i),yo(1),js(i)}}function RH(e,t){if(1&e){var n=os();$a(0,"mat-list-item"),$a(1,"mat-form-field",7),$a(2,"mat-select",8),cs("valueChange",function(e){var t=Qt(n).index;return ps(2).shells[t]=e}),Xa(3,zH,2,2,"mat-option",9),es(),es(),$a(4,"button",10),cs("click",function(){var e=Qt(n).index;return ps(2).removeShell(e)}),qs(5),_c(6,"translate"),_c(7,"customTranslate"),es(),es()}if(2&e){var i=t.index,r=ps(2);yo(2),Qa("value",r.shells[i]),yo(1),Qa("ngForOf",r.defaultShells),yo(2),js(bc(6,3,bc(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON")))}}function OH(e,t){if(1&e&&($a(0,"mat-list"),Xa(1,RH,8,7,"mat-list-item",6),es()),2&e){var n=ps();yo(1),Qa("ngForOf",n.shells)}}var xH=function(){var e=function(){function e(t,n,i,r){var o=this;_(this,e),this.store=t,this.attributesManagerService=n,this.dialog=i,this.translateService=r,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],r.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(function(e){return o.removeDialogDescription=e}),r.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(function(e){return o.removeDialogTitle=e})}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(function(){e.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(function(t){return e.removeDialogDescription=t}),e.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(function(t){return e.removeDialogTitle=t})}),this.getAttribute()}},{key:"addShell",value:function(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(function(){console.log("done")})}},{key:"removeShell",value:function(e){var t=this,n=GE();n.width="600px",n.data={valueIndex:e,values:[this.shells[e]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(EH,n).afterClosed().subscribe(function(e){e&&t.getAttribute()})}},{key:"getAttribute",value:function(){var e=this;this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(function(t){e.prefShellsAttribute=t,e.shells=e.prefShellsAttribute.value?e.prefShellsAttribute.value:[],e.loading=!1})}},{key:"changeValue",value:function(){var e=this;this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(function(){e.getAttribute()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(sL),Ja(Qf),Ja(qE),Ja(AE))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"app-alert",1),qs(5),_c(6,"translate"),_c(7,"customTranslate"),es(),$a(8,"button",2),cs("click",function(){return t.addShell()}),qs(9),_c(10,"translate"),_c(11,"customTranslate"),es(),Xa(12,LH,4,5,"app-alert",3),Xa(13,OH,2,1,"mat-list",4)),2&e&&(yo(1),js(bc(2,5,bc(3,7,"PREFERRED_SHELLS.TITLE"))),yo(4),Ys(" ",bc(6,9,bc(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),yo(4),js(bc(10,13,bc(11,15,"PREFERRED_SHELLS.NEW_BUTTON"))),yo(3),Qa("ngIf",!t.loading&&0===t.shells.length),yo(1),Qa("ngIf",!t.loading))},directives:[hR,BM,Xh,hx,Kh,px,$k,YS,LM],pipes:[kE,ML],styles:[""]}),e}();function DH(e,t){1&e&&ts(0,"mat-spinner",4)}function PH(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"div",5),$a(2,"mat-form-field",6),$a(3,"label",6),ts(4,"input",7),es(),es(),es(),$a(5,"div",8),$a(6,"button",9),cs("click",function(){return Qt(n),ps().onCancel()}),qs(7),_c(8,"translate"),_c(9,"customTranslate"),es(),$a(10,"button",10),cs("click",function(){return Qt(n),ps().onSubmit()}),qs(11),_c(12,"translate"),_c(13,"customTranslate"),es(),es(),es()}if(2&e){var i=ps();yo(4),Qa("formControl",i.inputControl),yo(3),Ys(" ",bc(8,4,bc(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),yo(3),Qa("disabled",!i.inputControl.valid||i.groups.includes(i.inputControl.value)),yo(1),Ys(" ",bc(12,8,bc(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}var NH=function(){var e=function(){function e(t,n,i){_(this,e),this.dialogRef=t,this.data=n,this.attributesManagerService=i,this.groups=[]}return w(e,[{key:"ngOnInit",value:function(){this.inputControl=new eS(null,pT.required),this.groups=this.data.groups}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.data.userId,"urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:".concat(this.data.namespace)).subscribe(function(t){var n=t.value?t.value:[];n.push(e.inputControl.value),t.value=n,e.attributesManagerService.setUserAttribute({user:e.data.userId,attribute:t}).subscribe(function(){e.loading=!1,e.dialogRef.close(!0)})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(xE),Ja(NE),Ja(Qf))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div",1),Xa(5,DH,1,0,"mat-spinner",2),Xa(6,PH,14,12,"div",3),es()),2&e&&(yo(1),js(bc(2,3,bc(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),yo(4),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading))},directives:[YE,Xh,xL,WE,$k,YL,uT,_S,xT,gS,UE,BM],pipes:[kE,ML],styles:[""]}),e}();function IH(e,t){if(1&e){var n=os();$a(0,"div",2),$a(1,"h4"),qs(2),es(),$a(3,"button",3),cs("click",function(){var e=Qt(n).$implicit;return ps().addGroupName(e)}),qs(4),_c(5,"translate"),_c(6,"customTranslate"),es(),$a(7,"button",4),cs("click",function(){var e=Qt(n),t=e.$implicit,i=e.index;return ps().removeGroupName(t,i)}),qs(8),_c(9,"translate"),es(),ts(10,"perun-web-apps-string-list",5),es()}if(2&e){var i=t.$implicit,r=t.index,o=ps();yo(2),js(i),yo(2),js(bc(5,8,bc(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))),yo(3),Qa("disabled",0===o.selectionList[r].selected.length),yo(1),js(bc(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")),yo(2),Qa("values",o.groupNames.get(i))("selection",o.selectionList[r])("alertText",o.alertText)("headerColumnText",o.headerColumnText)}}var BH=function(){var e=function(){function e(t,n,i,r){var o=this;_(this,e),this.store=t,this.attributesManagerService=n,this.dialog=i,this.translateService=r,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],r.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(function(e){return o.removeDialogDescription=e}),r.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(function(e){return o.removeDialogTitle=e}),r.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(function(e){return o.alertText=e}),r.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(function(e){return o.headerColumnText=e})}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.namespaces=this.store.get("preferred_unix_group_names"),this.translateService.onLangChange.subscribe(function(){e.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(function(t){return e.removeDialogDescription=t}),e.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(function(t){return e.removeDialogTitle=t}),e.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(function(t){return e.alertText=t}),e.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(function(t){return e.headerColumnText=t})}),this.initSelection(),this.namespaces.forEach(function(t){e.getAttribute(t)})}},{key:"initSelection",value:function(){for(var e=0;e=5120,this.newImage=t.result}},{key:"onAdd",value:function(){var e=this;this.attribute.value=this.newImage,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe(function(){e.dialogRef.close(!0)})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"generateImg",value:function(){function e(e,t,n,i){i.beginPath(),i.rect(20*e,20*t,20,20),i.fillStyle="rgb("+n.join(",")+")",i.fill()}this.newImage=function(){for(var t=function(){var e=document.createElement("canvas");e.width=100,e.height=100;var t=e.getContext("2d");return t.beginPath(),t.rect(0,0,100,100),t.fillStyle="#FFFFFF",t.fill(),e}(),n=t.getContext("2d"),i=function(){for(var e=[],t=0;t<3;t++){var n=Math.floor(256*Math.random()),i=Math.max(120,n),r=Math.min(200,i);e.push(r)}return e}(),r=0;r1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";_(this,e),this.http=t,this.prefix=n,this.suffix=i}return w(e,[{key:"getTranslation",value:function(e){return this.http.get("".concat(this.prefix).concat(e).concat(this.suffix))}}]),e}(),Mj=function(){var e=function(){function e(t,n){_(this,e),this.http=t,this.storeService=n}return w(e,[{key:"initializeColors",value:function(e,t){var n=this;return new Promise(function(i){t.forEach(function(e){var t=n.storeService.get("theme",e.configValue);document.documentElement.style.setProperty(e.cssVariable,t)}),e.forEach(function(e){var t=n.storeService.get("theme",e.configValue);document.documentElement.style.setProperty(e.cssVariable,t),n.setEntityTheme(e.entity,t)}),i()})}},{key:"setEntityTheme",value:function(e,t){for(var n,i=0,r=(n=t,[Aj(tinycolor(n).lighten(52),"50"),Aj(tinycolor(n).lighten(37),"100"),Aj(tinycolor(n).lighten(26),"200"),Aj(tinycolor(n).lighten(12),"300"),Aj(tinycolor(n).lighten(6),"400"),Aj(tinycolor(n),"500"),Aj(tinycolor(n).darken(6),"600"),Aj(tinycolor(n).darken(12),"700"),Aj(tinycolor(n).darken(18),"800"),Aj(tinycolor(n).darken(24),"900"),Aj(tinycolor(n).lighten(50).saturate(30),"A100"),Aj(tinycolor(n).lighten(30).saturate(30),"A200"),Aj(tinycolor(n).lighten(10).saturate(15),"A400"),Aj(tinycolor(n).lighten(5).saturate(5),"A700")]);i1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:e,providers:t.serverLoaded?[{provide:DR,useValue:Object.assign(Object.assign({},xR),t)},{provide:NR,useValue:n,multi:!0},{provide:PR,useValue:!0}]:[{provide:DR,useValue:Object.assign(Object.assign({},xR),t)},{provide:NR,useValue:n,multi:!0}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(PR),Ei(Qc))},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[nH,_O,Tj],nH,_O,Tj]}),e}(),Cj=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[Yw],Yw]}),e}(),Ej=new hi("perun-api-service"),Lj=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({}),e}(),zj=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[Lj,yM,Yw,Ly],Lj,Yw]}),e}(),Rj={provide:Nf,useExisting:Te(function(){return pL}),multi:!0};function Oj(e){return new wj(e,"./assets/i18n/",".json")}function xj(e){var t={basePath:e.get("api_url")};return new Jf(t)}var Dj=function(e){return function(){return e.initialize()}},Pj=function(){var e=function e(t,n){_(this,e),this.customIconService=t,this.translate=n,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()};return e.\u0275fac=function(t){return new(t||e)(Ei(hL),Ei(AE))},e.\u0275mod=ft({type:e,bootstrap:[Gx]}),e.\u0275inj=xe({providers:[hL,{provide:Uc,useFactory:Dj,multi:!0,deps:[kj]},{provide:Jf,useFactory:xj,deps:[sL]},wL,pL,Rj,{provide:Ej,useClass:mL}],imports:[[Gd,Pw,Vf,TE.forRoot({loader:{provide:oE,useFactory:Oj,deps:[Df]}}),bj,rE,$O,gx,qv,FM,Sj,CR,xq,kq,tB,eT,WS,KE,Uz,WL,MS,mD,bC,DL,bN,Cj,oR,bL,oI,yM,sC,zj,yB,wS,yj,SE,jC]]}),e}();(function(){if(kl)throw new Error("Cannot enable prod mode after platform setup.");Al=!1})(),Vd().bootstrapModule(Pj).catch(function(e){return console.error(e)})},2051:function(e,t){var n,i;void 0===(i="function"==typeof(n=function(){"use strict";function t(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){a(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}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,o=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,o,a){var s=r.URL||r.webkitURL,u=document.createElement("a");u.download=o=o||e.name||"download",u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?i(u):n(u.href)?t(e,o,a):i(u,u.target="_blank")):(u.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(u.href)},4e4),setTimeout(function(){i(u)},0))}:"msSaveOrOpenBlob"in navigator?function(e,r,o){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),r);else if(n(e))t(e,r,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout(function(){i(a)})}}:function(e,n,i,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,i);var s="application/octet-stream"===e.type,u=/constructor/i.test(r.HTMLElement)||r.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&u||o)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},l.readAsDataURL(e)}else{var h=r.URL||r.webkitURL,d=h.createObjectURL(e);a?a.location=d:location.href=d,a=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});r.saveAs=a.saveAs=a,e.exports=a})?n.apply(t,[]):n)||(e.exports=i)},9355:function(e,t,n){(e.exports=n(2021)).tz.load(n(4360))},2021:function(e,t,n){var i,r,o;!function(a,s){"use strict";e.exports?e.exports=s(n(9609)):(r=[n(9609)],void 0===(o="function"==typeof(i=s)?i.apply(t,r):i)||(e.exports=o))}(0,function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n={},i={},r={},o={},a={};e&&"string"==typeof e.version||E("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var s=e.version.split("."),u=+s[0],c=+s[1];function l(e){return e>96?e-87:e>64?e-29:e-48}function h(e){var t=0,n=e.split("."),i=n[0],r=n[1]||"",o=1,a=0,s=1;for(45===e.charCodeAt(0)&&(t=1,s=-1);t= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),g.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,n=+e,i=this.untils;for(t=0;ti&&L.moveInvalidForward&&(t=i),o3){var t=o[A(e)];if(t)return t;E("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(l){}var n,i,r,a=function(){var e,t,n,i=(new Date).getFullYear()-2,r=new v(new Date(i,0,1)),o=[r];for(n=1;n<48;n++)(t=new v(new Date(i,n,1))).offset!==r.offset&&(e=_(r,t),o.push(e),o.push(new v(new Date(e.at+6e4)))),r=t;for(n=0;n<4;n++)o.push(new v(new Date(i+n,0,1))),o.push(new v(new Date(i+n,6,1)));return o}(),s=a.length,u=M(a),c=[];for(i=0;i0?c[0].zone.name:void 0}()),t},L.names=function(){var e,t=[];for(e in o)o.hasOwnProperty(e)&&(n[e]||n[i[e]])&&o[e]&&t.push(o[e]);return t.sort()},L.Zone=g,L.unpack=p,L.unpackBase60=h,L.needsOffset=C,L.moveInvalidForward=!0,L.moveAmbiguousForward=!1,L.countries=function(){return Object.keys(r)},L.zonesForCountry=function(e,t){var n;if(n=(n=e).toUpperCase(),!(e=r[n]||null))return null;var i=e.zones.sort();return t?i.map(function(e){return{name:e,offset:T(e).utcOffset(new Date)}}):i};var z,R=e.fn;function O(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function x(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=L,e.defaultZone=null,e.updateOffset=function(t,n){var i,r=e.defaultZone;if(void 0===t._z&&(r&&C(t)&&!t._isUTC&&(t._d=e.utc(t._a)._d,t.utc().add(r.parse(t),"minutes")),t._z=r),t._z)if(i=t._z.utcOffset(t),Math.abs(i)<16&&(i/=60),void 0!==t.utcOffset){var o=t._z;t.utcOffset(-i,n),t._z=o}else t.zone(i,n)},R.tz=function(t,n){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=T(t),this._z?e.updateOffset(this,n):E("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},R.zoneName=O(R.zoneName),R.zoneAbbr=O(R.zoneAbbr),R.utc=x(R.utc),R.local=x(R.local),R.utcOffset=(z=R.utcOffset,function(){return arguments.length>0&&(this._z=null),z.apply(this,arguments)}),e.tz.setDefault=function(t){return(u<2||2===u&&c<9)&&E("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?T(t):null,e};var D=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(D)?(D.push("_z"),D.push("_a")):D&&(D._z=null),e})},776:function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"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}})}(n(9609))},2758:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{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:"\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:"\u0623\u062d_\u0625\u062b_\u062b\u0644\u0627_\u0623\u0631_\u062e\u0645_\u062c\u0645_\u0633\u0628".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:4}})}(n(9609))},4980:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},9602:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={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"]},r=function(e){return function(t,r,o,a){var s=n(t),u=i[e][n(t)];return 2===s&&(u=u[r?0:1]),u.replace(/%d/i,t)}},o=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<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:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(9609))},2500:function(e,t,n){!function(e){"use strict";e.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\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:6,doy:12}})}(n(9609))},6909:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.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(e){return"\u0645"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(n(9609))},2735:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},7634:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},o=function(e){return function(t,n,o,a){var s=i(t),u=r[e][i(t)];return 2===s&&(u=u[n?0:1]),u.replace(/%d/i,t)}},a=["\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"];e.defineLocale("ar",{months:a,monthsShort:a,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(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(9609))},7798:function(e,t,n){!function(e){"use strict";var t={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"};e.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:"birne\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(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gec\u0259":e<12?"s\u0259h\u0259r":e<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){if(0===e)return e+"-\u0131nc\u0131";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(9609))},9949:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===n?t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":e+" "+(i=+e,r={ss:t?"\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:t?"\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:t?"\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"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}e.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:t,mm:t,h:t,hh:t,d:"\u0434\u0437\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u044b":e<12?"\u0440\u0430\u043d\u0456\u0446\u044b":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-\u044b":e+"-\u0456";case"D":return e+"-\u0433\u0430";default:return e}},week:{dow:1,doy:7}})}(n(9609))},4590:function(e,t,n){!function(e){"use strict";e.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\u0440_\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"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043c\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\u043d\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n(9609))},5938:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},595:function(e,t,n){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09c0_\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_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2_\u0986\u0997_\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_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\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(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t&&e>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===t&&e<5||"\u09ac\u09bf\u0995\u09be\u09b2"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u09b0\u09be\u09a4":e<10?"\u09b8\u0995\u09be\u09b2":e<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n(9609))},4756:function(e,t,n){!function(e){"use strict";var t={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},n={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.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\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("_"),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\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("_"),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(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},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(e,t){return 12===e&&(e=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===t&&e>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===t&&e<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":e<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":e<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":e<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(n(9609))},7277:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){return e>9?n(e%10):e}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"a\xf1":"vet")},week:{dow:1,doy:4}})}(n(9609))},4166:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.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:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},3943:function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(9609))},3474:function(e,t,n){!function(e){"use strict";var t="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),n="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),i=[/^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],r=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function o(e){return e>1&&e<5&&1!=~~(e/10)}function a(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return t||i?r+(o(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?r+(o(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(o(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?r+(o(e)?"dny":"dn\xed"):r+"dny";case"M":return t||i?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return t||i?r+(o(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):r+"m\u011bs\xedci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?r+(o(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},2218:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},1061:function(e,t,n){!function(e){"use strict";e.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 t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(9609))},2743:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},8580:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},3264:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},1899:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},8784:function(e,t,n){!function(e){"use strict";var t=["\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"],n=["\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"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,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(e){return"\u0789\u078a"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(n(9609))},4654:function(e,t,n){!function(e){"use strict";e.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(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.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(e,t,n){return e>11?n?"\u03bc\u03bc":"\u039c\u039c":n?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(e){return"\u03bc"===(e+"").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(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,i=this._calendarEl[e],r=t&&t.hours();return((n=i)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(i=i.apply(t)),i.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}})}(n(9609))},4047:function(e,t,n){!function(e){"use strict";e.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},6277:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},6896:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(9609))},1609:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},4557:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},5836:function(e,t,n){!function(e){"use strict";e.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",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(9609))},3586:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},2777:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_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:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(9609))},3128:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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",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}})}(n(9609))},3256:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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",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}})}(n(9609))},3357:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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",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}})}(n(9609))},2654:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[e+" minuti",e+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[e+" tunni",e+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[e+" kuu",e+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}e.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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d p\xe4eva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},7287:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},3875:function(e,t,n){!function(e){"use strict";var t={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},n={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.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(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,n){return e<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:"\u062b\u0627\u0646\u06cc\u0647 d%",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(e){return e.replace(/[\u06f0-\u06f9]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(n(9609))},3431:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),n=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",t[7],t[8],t[9]];function i(e,i,r,o){var a="";switch(r){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"ss":return o?"sekunnin":"sekuntia";case"m":return o?"minuutin":"minuutti";case"mm":a=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":a=o?"tunnin":"tuntia";break;case"d":return o?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":a=o?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return o?"kuukauden":"kuukausi";case"MM":a=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":a=o?"vuoden":"vuotta"}return function(e,i){return e<10?i?n[e]:t[e]:e}(e,o)+" "+a}e.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: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:4}})}(n(9609))},1781:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},1539:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(9609))},9847:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(9609))},1717:function(e,t,n){!function(e){"use strict";e.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("_"),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|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":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}})}(n(9609))},2250:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},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(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(9609))},7665:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","M\xe9itheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deaireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean\xe1","Feab","M\xe1rt","Aibr","Beal","M\xe9it","I\xfail","L\xfana","Me\xe1n","Deai","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 Satharn"],weekdaysShort:["Dom","Lua","M\xe1i","C\xe9a","D\xe9a","hAo","Sat"],weekdaysMin:["Do","Lu","M\xe1","Ce","D\xe9","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:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 aig] 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\xed",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(9609))},5214:function(e,t,n){!function(e){"use strict";e.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(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(9609))},6154:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},8518:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?r[n][0]:r[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_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[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n(9609))},9221:function(e,t,n){!function(e){"use strict";var t={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},n={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.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\u0ac7\u0ab9\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(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0ab0\u0abe\u0aa4"===t?e<4?e:e+12:"\u0ab8\u0ab5\u0abe\u0ab0"===t?e:"\u0aac\u0aaa\u0acb\u0ab0"===t?e>=10?e:e+12:"\u0ab8\u0abe\u0a82\u0a9c"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0ab0\u0abe\u0aa4":e<10?"\u0ab8\u0ab5\u0abe\u0ab0":e<17?"\u0aac\u0aaa\u0acb\u0ab0":e<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(n(9609))},4743:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(e){return 2===e?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":e+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(e){return 2===e?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":e+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(e){return 2===e?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":e+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(e){return 2===e?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":e%10==0&&10!==e?e+" \u05e9\u05e0\u05d4":e+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(e){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e)},meridiem:function(e,t,n){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?n?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?n?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(n(9609))},7339:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("hi",{months:"\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("_"),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("_"),monthsParseExact:!0,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"},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(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924"===t?e<4?e:e+12:"\u0938\u0941\u092c\u0939"===t?e:"\u0926\u094b\u092a\u0939\u0930"===t?e>=10?e:e+12:"\u0936\u093e\u092e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924":e<10?"\u0938\u0941\u092c\u0939":e<17?"\u0926\u094b\u092a\u0939\u0930":e<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(n(9609))},3224:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.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:"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:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},856:function(e,t,n){!function(e){"use strict";var t="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function n(e,t,n,i){var r=e;switch(n){case"s":return i||t?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return r+(i||t)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return r+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" \xf3ra":" \xf3r\xe1ja");case"hh":return r+(i||t?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return r+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" h\xf3nap":" h\xf3napja");case"MM":return r+(i||t?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(i||t?" \xe9v":" \xe9ve");case"yy":return r+(i||t?" \xe9v":" \xe9ve")}return""}function i(e){return(e?"":"[m\xfalt] ")+"["+t[this.day()]+"] LT[-kor]"}e.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("_"),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(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},6855:function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(e){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e)},meridiem:function(e){return e<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":e<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":e<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-\u056b\u0576":e+"-\u0580\u0564";default:return e}},week:{dow:1,doy:7}})}(n(9609))},2190:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){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:1,doy:7}})}(n(9609))},3887:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,i,r){var o=e+" ";switch(i){case"s":return n||r?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return t(e)?o+(n||r?"sek\xfandur":"sek\xfandum"):o+"sek\xfanda";case"m":return n?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return t(e)?o+(n||r?"m\xedn\xfatur":"m\xedn\xfatum"):n?o+"m\xedn\xfata":o+"m\xedn\xfatu";case"hh":return t(e)?o+(n||r?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?o+"dagar":o+(r?"daga":"d\xf6gum"):n?o+"dagur":o+(r?"dag":"degi");case"M":return n?"m\xe1nu\xf0ur":r?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return t(e)?n?o+"m\xe1nu\xf0ir":o+(r?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):n?o+"m\xe1nu\xf0ur":o+(r?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return n||r?"\xe1r":"\xe1ri";case"yy":return t(e)?o+(n||r?"\xe1r":"\xe1rum"):o+(n||r?"\xe1r":"\xe1ri")}}e.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:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},5890:function(e,t,n){!function(e){"use strict";e.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(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[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}})}(n(9609))},9270:function(e,t,n){!function(e){"use strict";e.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:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[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}})}(n(9609))},6595:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{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:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"\u5348\u5f8c"===e},meridiem:function(e,t,n){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){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}})}(n(9609))},7477:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"\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("_"),format:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".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:"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:"[\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/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(e)?e.replace(/\u10d8$/,"\u10e8\u10d8"):e+"\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"):void 0},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}})}(n(9609))},3978:function(e,t,n){!function(e){"use strict";var t={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"};e.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(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(9609))},9205:function(e,t,n){!function(e){"use strict";var t={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},n={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.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(e){return"\u179b\u17d2\u1784\u17b6\u1785"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(9609))},25:function(e,t,n){!function(e){"use strict";var t={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},n={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.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(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},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(e,t){return 12===e&&(e=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===t?e<4?e:e+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===t?e:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===t?e>=10?e:e+12:"\u0cb8\u0c82\u0c9c\u0cc6"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":e<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":e<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":e<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(n(9609))},427:function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\uc77c";case"M":return e+"\uc6d4";case"w":case"W":return e+"\uc8fc";default:return e}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(e){return"\uc624\ud6c4"===e},meridiem:function(e,t,n){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(n(9609))},9089:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=["\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"];e.defineLocale("ku",{months:i,monthsShort:i,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(e){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e)},meridiem:function(e,t,n){return e<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(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(9609))},9314:function(e,t,n){!function(e){"use strict";var t={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"};e.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(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(9609))},3136:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={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 t?r[n][0]:r[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.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){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d M\xe9int",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},9115:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(e){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===e},meridiem:function(e,t,n){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}})}(n(9609))},7087:function(e,t,n){!function(e){"use strict";var t={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 n(e,t,n,i){return t?r(n)[0]:i?r(n)[1]:r(n)[2]}function i(e){return e%10==0||e>10&&e<20}function r(e){return t[e].split("_")}function o(e,t,o,a){var s=e+" ";return 1===e?s+n(0,t,o[0],a):t?s+(i(e)?r(o)[1]:r(o)[0]):a?s+r(o)[1]:s+(i(e)?r(o)[1]:r(o)[2])}e.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,t,n,i){return t?"kelios sekund\u0117s":i?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:o,m:n,mm:o,h:n,hh:o,d:n,dd:o,M:n,MM:o,y:n,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(9609))},5683:function(e,t,n){!function(e){"use strict";var t={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 n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,i,r){return e+" "+n(t[r],e,i)}function r(e,i,r){return n(t[r],e,i)}e.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(e,t){return t?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},9454:function(e,t,n){!function(e){"use strict";var t={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(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},5507:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},8466:function(e,t,n){!function(e){"use strict";e.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:"\u043f\u043e\u0441\u043b\u0435 %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:"\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",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n(9609))},2933:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===t&&e>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===t||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===t?e+12:e},meridiem:function(e,t,n){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"}})}(n(9609))},9477:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){switch(n){case"s":return t?"\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 e+(t?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return e+(t?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return e+(t?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return e+(t?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return e+(t?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return e+(t?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return e}}e.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(e){return"\u04ae\u0425"===e},meridiem:function(e,t,n){return e<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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" \u04e9\u0434\u04e9\u0440";default:return e}}})}(n(9609))},3597:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function i(e,t,n,i){var r="";if(t)switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":r="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":r="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":r="%d \u0924\u093e\u0938";break;case"d":r="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":r="%d \u0926\u093f\u0935\u0938";break;case"M":r="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":r="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u0947"}else switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":r="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":r="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":r="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":r="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":r="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":r="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":r="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return r.replace(/%d/i,e)}e.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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===t?e<4?e:e+12:"\u0938\u0915\u093e\u0933\u0940"===t?e:"\u0926\u0941\u092a\u093e\u0930\u0940"===t?e>=10?e:e+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924\u094d\u0930\u0940":e<10?"\u0938\u0915\u093e\u0933\u0940":e<17?"\u0926\u0941\u092a\u093e\u0930\u0940":e<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(n(9609))},9965:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){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}})}(n(9609))},5529:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){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}})}(n(9609))},259:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},8061:function(e,t,n){!function(e){"use strict";var t={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},n={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.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(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(9609))},2618:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_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",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}})}(n(9609))},8452:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.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(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u093f"===t?e<4?e:e+12:"\u092c\u093f\u0939\u093e\u0928"===t?e:"\u0926\u093f\u0909\u0901\u0938\u094b"===t?e>=10?e:e+12:"\u0938\u093e\u0901\u091d"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"\u0930\u093e\u0924\u093f":e<12?"\u092c\u093f\u0939\u093e\u0928":e<16?"\u0926\u093f\u0909\u0901\u0938\u094b":e<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}})}(n(9609))},413:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^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],r=/^(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;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(9609))},1885:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^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],r=/^(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;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(9609))},5107:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_m\xe5n_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_m\xe5_ty_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 [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",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}})}(n(9609))},702:function(e,t,n){!function(e){"use strict";var t={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},n={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.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(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0a30\u0a3e\u0a24"===t?e<4?e:e+12:"\u0a38\u0a35\u0a47\u0a30"===t?e:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===t?e>=10?e:e+12:"\u0a38\u0a3c\u0a3e\u0a2e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0a30\u0a3e\u0a24":e<10?"\u0a38\u0a35\u0a47\u0a30":e<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":e<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(n(9609))},1711:function(e,t,n){!function(e){"use strict";var t="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function r(e,t,n){var r=e+" ";switch(n){case"ss":return r+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return r+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return r+(i(e)?"godziny":"godzin");case"MM":return r+(i(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return r+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return e?""===i?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(i)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),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:r,m:r,mm:r,h:r,hh:r,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},8238:function(e,t,n){!function(e){"use strict";e.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"})}(n(9609))},594:function(e,t,n){!function(e){"use strict";e.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",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}})}(n(9609))},4681:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._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:t,m:"un minut",mm:t,h:"o or\u0103",hh:t,d:"o zi",dd:t,M:"o lun\u0103",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(9609))},6201:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":e+" "+(i=+e,r={ss:t?"\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:t?"\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",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}var n=[/^\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];e.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:n,longMonthsParse:n,shortMonthsParse:n,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(e){if(e.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(e){if(e.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:t,m:t,mm:t,h:"\u0447\u0430\u0441",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-\u0439";case"D":return e+"-\u0433\u043e";case"w":case"W":return e+"-\u044f";default:return e}},week:{dow:1,doy:4}})}(n(9609))},2912:function(e,t,n){!function(e){"use strict";var t=["\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"],n=["\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"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n(9609))},6002:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},7942:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(e){return e+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(e){return"\u0db4.\u0dc0."===e||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===e},meridiem:function(e,t,n){return e>11?n?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":n?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(n(9609))},5577:function(e,t,n){!function(e){"use strict";var t="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),n="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function r(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return t||r?o+(i(e)?"sekundy":"sek\xfand"):o+"sekundami";case"m":return t?"min\xfata":r?"min\xfatu":"min\xfatou";case"mm":return t||r?o+(i(e)?"min\xfaty":"min\xfat"):o+"min\xfatami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?o+(i(e)?"hodiny":"hod\xedn"):o+"hodinami";case"d":return t||r?"de\u0148":"d\u0148om";case"dd":return t||r?o+(i(e)?"dni":"dn\xed"):o+"d\u0148ami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?o+(i(e)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?o+(i(e)?"roky":"rokov"):o+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,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:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %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}})}(n(9609))},1775:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return r+(1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return r+(1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return r+(1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami");case"d":return t||i?"en dan":"enim dnem";case"dd":return r+(1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi");case"M":return t||i?"en mesec":"enim mesecem";case"MM":return r+(1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci");case"y":return t||i?"eno leto":"enim letom";case"yy":return r+(1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti")}}e.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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},6823:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){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}})}(n(9609))},3848:function(e,t,n){!function(e){"use strict";var t={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\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\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"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.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:"DD.MM.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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"\u0434\u0430\u043d",dd:t.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:t.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},9038:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.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:"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] [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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},6173:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(9609))},5788:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})}(n(9609))},6882:function(e,t,n){!function(e){"use strict";e.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",LTS:"HH:mm: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:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(9609))},2678:function(e,t,n){!function(e){"use strict";var t={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},n={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.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(e){return e+"\u0bb5\u0ba4\u0bc1"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},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(e,t,n){return e<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":e<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":e<10?" \u0b95\u0bbe\u0bb2\u0bc8":e<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":e<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":e<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(e,t){return 12===e&&(e=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===t?e<2?e:e+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===t||"\u0b95\u0bbe\u0bb2\u0bc8"===t||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(9609))},2797:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===t?e<4?e:e+12:"\u0c09\u0c26\u0c2f\u0c02"===t?e:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===t?e>=10?e:e+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===t?e+12:void 0},meridiem:function(e,t,n){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}})}(n(9609))},2447:function(e,t,n){!function(e){"use strict";e.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:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},1335:function(e,t,n){!function(e){"use strict";var t={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"};e.defineLocale("tg",{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:"\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:"[\u041f\u0430\u0433\u043e\u04b3 \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(e,t){return 12===e&&(e=0),"\u0448\u0430\u0431"===t?e<4?e:e+12:"\u0441\u0443\u0431\u04b3"===t?e:"\u0440\u04ef\u0437"===t?e>=11?e:e+12:"\u0431\u0435\u0433\u043e\u04b3"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0448\u0430\u0431":e<11?"\u0441\u0443\u0431\u04b3":e<16?"\u0440\u04ef\u0437":e<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(9609))},8667:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(e){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===e},meridiem:function(e,t,n){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",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(n(9609))},9914:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},1389:function(e,t,n){!function(e){"use strict";var t="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,i,r){var o=function(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),r=e%10,o="";return n>0&&(o+=t[n]+"vatlh"),i>0&&(o+=(""!==o?" ":"")+t[i]+"maH"),r>0&&(o+=(""!==o?" ":"")+t[r]),""===o?"pagh":o}(e);switch(i){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}e.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){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu\u2019":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa\u2019 tup",mm:n,h:"wa\u2019 rep",hh:n,d:"wa\u2019 jaj",dd:n,M:"wa\u2019 jar",MM:n,y:"wa\u2019 DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},3578:function(e,t,n){!function(e){"use strict";var t={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"};e.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_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".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 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",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'\u0131nc\u0131";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(9609))},6969:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[e+" m\xeduts",e+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[e+" \xfeoras",e+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i||t?r[n][0]:r[n][1]}e.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(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},690:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},6509:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},55:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===t||"\u0633\u06d5\u06be\u06d5\u0631"===t||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===t?e:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===t||"\u0643\u06d5\u0686"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":i<900?"\u0633\u06d5\u06be\u06d5\u0631":i<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":i<1230?"\u0686\u06c8\u0634":i<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return e+"-\u06be\u06d5\u067e\u062a\u06d5";default:return e}},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(n(9609))},2452:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===n?t?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":e+" "+(i=+e,r={ss:t?"\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:t?"\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:t?"\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"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}function n(e){return function(){return e+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.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(e,t){var n={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===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.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:n("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:n("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:n("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:n("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return n("[\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:t,m:t,mm:t,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:t,y:"\u0440\u0456\u043a",yy:t},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0456":e<12?"\u0440\u0430\u043d\u043a\u0443":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-\u0439";case"D":return e+"-\u0433\u043e";default:return e}},week:{dow:1,doy:7}})}(n(9609))},1151:function(e,t,n){!function(e){"use strict";var t=["\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"],n=["\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"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n(9609))},6547:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},1555:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},6541:function(e,t,n){!function(e){"use strict";e.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:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"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 r\u1ed3i 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",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}})}(n(9609))},2401:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},2341:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},619:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u5468";default:return e}},relativeTime:{future:"%s\u5185",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",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(n(9609))},7058:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\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"}})}(n(9609))},2782:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n(9609))},9609:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,i;function r(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,i=[];for(n=0;n>>0,i=0;i0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},Y={};function W(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(Y[e]=r),t&&(Y[t[0]]=function(){return F(r.apply(this,arguments),t[1],t[2])}),n&&(Y[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=K(t,e.localeData()),j[t]=j[t]||function(e){var t,n,i,r=e.match(H);for(t=0,n=r.length;t=0&&q.test(e);)e=e.replace(q,i),q.lastIndex=0,n-=1;return e}var V=/\d/,X=/\d\d/,G=/\d{3}/,J=/\d{4}/,Q=/[+-]?\d{6}/,Z=/\d\d?/,$=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,ie=/[+-]?\d{1,6}/,re=/\d+/,oe=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[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,ce={};function le(e,t,n){ce[e]=z(t)?t:function(e,i){return e&&n?n:t}}function he(e,t){return h(ce,e)?ce[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r})))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={};function pe(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=A(e)}),n=0;n68?1900:2e3)};var _e,be=we("FullYear",!0);function we(e,t){return function(n){return null!=n?(Ae(this,e,n),r.updateOffset(this,t),this):Me(this,e)}}function Me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ae(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ye(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ke(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function ke(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?ye(e)?29:28:31-n%7%2}_e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(s=new Date(e+400,t,n,i,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,r,o,a),s}function Pe(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ne(e,t,n){var i=7+t-n;return-(7+Pe(e,0,i).getUTCDay()-t)%7+i-1}function Ie(e,t,n,i,r){var o,a,s=1+7*(t-1)+(7+n-i)%7+Ne(e,i,r);return s<=0?a=ve(o=e-1)+s:s>ve(e)?(o=e+1,a=s-ve(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Be(e,t,n){var i,r,o=Ne(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?i=a+Fe(r=e.year()-1,t,n):a>Fe(e.year(),t,n)?(i=a-Fe(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Fe(e,t,n){var i=Ne(e,t,n),r=Ne(e+1,t,n);return(ve(e)-i+r)/7}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),B("week",5),B("isoWeek",5),le("w",Z),le("ww",Z,X),le("W",Z),le("WW",Z,X),ge(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=A(e)}),W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),le("d",Z),le("e",Z),le("E",Z),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),ge(["d","e","E"],function(e,t,n,i){t[i]=A(e)});var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ye="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function We(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=_e.call(this._weekdaysParse,a))?r:null:"ddd"===t?-1!==(r=_e.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=_e.call(this._minWeekdaysParse,a))?r:null:"dddd"===t?-1!==(r=_e.call(this._weekdaysParse,a))||-1!==(r=_e.call(this._shortWeekdaysParse,a))||-1!==(r=_e.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=_e.call(this._shortWeekdaysParse,a))||-1!==(r=_e.call(this._weekdaysParse,a))||-1!==(r=_e.call(this._minWeekdaysParse,a))?r:null:-1!==(r=_e.call(this._minWeekdaysParse,a))||-1!==(r=_e.call(this._weekdaysParse,a))||-1!==(r=_e.call(this._shortWeekdaysParse,a))?r:null}var Ue=ue,Ke=ue,Ve=ue;function Xe(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],u=[],c=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(i),s.push(r),u.push(o),c.push(i),c.push(r),c.push(o);for(a.sort(e),s.sort(e),u.sort(e),c.sort(e),t=0;t<7;t++)s[t]=de(s[t]),u[t]=de(u[t]),c[t]=de(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ge(){return this.hours()%12||12}function Je(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Qe(e,t){return t._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Ge),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+Ge.apply(this)+F(this.minutes(),2)}),W("hmmss",0,0,function(){return""+Ge.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),Je("a",!0),Je("A",!1),D("hour","h"),B("hour",13),le("a",Qe),le("A",Qe),le("H",Z),le("h",Z),le("k",Z),le("HH",Z,X),le("hh",Z,X),le("kk",Z,X),le("hmm",$),le("hmmss",ee),le("Hmm",$),le("Hmmss",ee),pe(["H","HH"],3),pe(["k","kk"],function(e,t,n){var i=A(e);t[3]=24===i?0:i}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[3]=A(e),p(n).bigHour=!0}),pe("hmm",function(e,t,n){var i=e.length-2;t[3]=A(e.substr(0,i)),t[4]=A(e.substr(i)),p(n).bigHour=!0}),pe("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=A(e.substr(0,i)),t[4]=A(e.substr(i,2)),t[5]=A(e.substr(r)),p(n).bigHour=!0}),pe("Hmm",function(e,t,n){var i=e.length-2;t[3]=A(e.substr(0,i)),t[4]=A(e.substr(i))}),pe("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=A(e.substr(0,i)),t[4]=A(e.substr(i,2)),t[5]=A(e.substr(r))});var Ze,$e=we("Hours",!0),et={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Se,monthsShort:Ce,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Ye,weekdaysShort:je,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function it(e){return e?e.toLowerCase().replace("_","-"):e}function rt(t){var i=null;if(!tt[t]&&e&&e.exports)try{i=Ze._abbr,n(6700)("./"+t),ot(i)}catch(r){}return tt[t]}function ot(e,t){var n;return e&&((n=s(t)?st(e):at(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function at(e,t){if(null!==t){var n,i=et;if(t.abbr=e,null!=tt[e])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])i=tt[t.parentLocale]._config;else{if(null==(n=rt(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;i=n._config}return tt[e]=new O(R(i,t)),nt[e]&&nt[e].forEach(function(e){at(e.name,e.config)}),ot(e),tt[e]}return delete tt[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!o(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,n,i,r,o=0;o0;){if(i=rt(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&k(r,n,!0)>=t-1)break;t--}o++}return Ze}(e)}function ut(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>ke(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}function ct(e,t,n){return null!=e?e:null!=t?t:n}function lt(e){var t,n,i,o,a,s=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,i,r,o,a,s,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,a=4,n=ct(t.GG,e._a[0],Be(kt(),1,4).year),i=ct(t.W,1),((r=ct(t.E,1))<1||r>7)&&(u=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var c=Be(kt(),o,a);n=ct(t.gg,e._a[0],c.year),i=ct(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(u=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(u=!0)):r=o}i<1||i>Fe(n,o,a)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(s=Ie(n,i,r,o,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ct(e._a[0],i[0]),(e._dayOfYear>ve(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Pe(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Pe:De).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}var ht=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["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}/]],gt=[["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/]],mt=/^\/?Date\((\-?\d+)/i;function vt(e){var t,n,i,r,o,a,s=e._i,u=ht.exec(s)||dt.exec(s);if(u){for(p(e).iso=!0,t=0,n=pt.length;t0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),Y[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),me(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=u-c,s.length>0&&p(e).unusedInput.push(s),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),lt(e),ut(e)}else bt(e);else vt(e)}function Mt(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new b(ut(t)):(c(t)?e._d=t:o(n)?function(e){var t,n,i,r,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis?this:e:m()});function Ct(e,t){var n,i;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return kt();for(n=t[0],i=1;i=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function $t(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function en(e,t){W(0,[e,e.length],0,t)}function tn(e,t,n,i,r){var o;return null==e?Be(this,i,r).year:(t>(o=Fe(e,i,r))&&(t=o),nn.call(this,e,t,n,i,r))}function nn(e,t,n,i,r){var o=Ie(e,t,n,i,r),a=Pe(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),en("gggg","weekYear"),en("ggggg","weekYear"),en("GGGG","isoWeekYear"),en("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),le("G",oe),le("g",oe),le("GG",Z,X),le("gg",Z,X),le("GGGG",ne,J),le("gggg",ne,J),le("GGGGG",ie,Q),le("ggggg",ie,Q),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=A(e)}),ge(["gg","GG"],function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),D("quarter","Q"),B("quarter",7),le("Q",V),pe("Q",function(e,t){t[1]=3*(A(e)-1)}),W("D",["DD",2],"Do","date"),D("date","D"),B("date",9),le("D",Z),le("DD",Z,X),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pe(["D","DD"],2),pe("Do",function(e,t){t[2]=A(e.match(Z)[0])});var rn=we("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),B("dayOfYear",4),le("DDD",te),le("DDDD",G),pe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=A(e)}),W("m",["mm",2],0,"minute"),D("minute","m"),B("minute",14),le("m",Z),le("mm",Z,X),pe(["m","mm"],4);var on=we("Minutes",!1);W("s",["ss",2],0,"second"),D("second","s"),B("second",15),le("s",Z),le("ss",Z,X),pe(["s","ss"],5);var an,sn=we("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),D("millisecond","ms"),B("millisecond",16),le("S",te,V),le("SS",te,X),le("SSS",te,G),an="SSSS";an.length<=9;an+="S")le(an,re);function un(e,t){t[6]=A(1e3*("0."+e))}for(an="S";an.length<=9;an+="S")pe(an,un);var cn=we("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var ln=b.prototype;function hn(e){return e}ln.add=Ut,ln.calendar=function(e,t){var n=e||kt(),i=Pt(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(z(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,kt(n)))},ln.clone=function(){return new b(this)},ln.diff=function(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Pt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=P(t)){case"year":o=Vt(this,i)/12;break;case"month":o=Vt(this,i);break;case"quarter":o=Vt(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:M(o)},ln.endOf=function(e){var t;if(void 0===(e=P(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?$t:Zt;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Qt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Qt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Qt(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},ln.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},ln.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||kt(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ln.fromNow=function(e){return this.from(kt(),e)},ln.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||kt(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ln.toNow=function(e){return this.to(kt(),e)},ln.get=function(e){return z(this[e=P(e)])?this[e]():this},ln.invalidAt=function(){return p(this).overflow},ln.isAfter=function(e,t){var n=w(e)?e:kt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ln.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+t+'[")]')},ln.toJSON=function(){return this.isValid()?this.toISOString():null},ln.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ln.unix=function(){return Math.floor(this.valueOf()/1e3)},ln.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ln.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ln.year=be,ln.isLeapYear=function(){return ye(this.year())},ln.weekYear=function(e){return tn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ln.isoWeekYear=function(e){return tn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ln.quarter=ln.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ln.month=ze,ln.daysInMonth=function(){return ke(this.year(),this.month())},ln.week=ln.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ln.isoWeek=ln.isoWeeks=function(e){var t=Be(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ln.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},ln.isoWeeksInYear=function(){return Fe(this.year(),1,4)},ln.date=rn,ln.day=ln.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},ln.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ln.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},ln.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ln.hour=ln.hours=$e,ln.minute=ln.minutes=on,ln.second=ln.seconds=sn,ln.millisecond=ln.milliseconds=cn,ln.utcOffset=function(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Dt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Nt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Wt(this,Ht(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Nt(this)},ln.utc=function(e){return this.utcOffset(0,e)},ln.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this},ln.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Dt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},ln.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?kt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ln.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ln.isLocal=function(){return!!this.isValid()&&!this._isUTC},ln.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ln.isUtc=It,ln.isUTC=It,ln.zoneAbbr=function(){return this._isUTC?"UTC":""},ln.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ln.dates=S("dates accessor is deprecated. Use date instead.",rn),ln.months=S("months accessor is deprecated. Use month instead",ze),ln.years=S("years accessor is deprecated. Use year instead",be),ln.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),ln.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Mt(e))._a){var t=e._isUTC?f(e._a):kt(e._a);this._isDSTShifted=this.isValid()&&k(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var dn=O.prototype;function fn(e,t,n,i){var r=st(),o=f().set(i,t);return r[n](o,e)}function pn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return fn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=fn(e,i,n,"month");return r}function gn(e,t,n,i){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var r,o=st(),a=e?o._week.dow:0;if(null!=n)return fn(t,(n+a)%7,i,"day");var s=[];for(r=0;r<7;r++)s[r]=fn(t,(r+a)%7,i,"day");return s}dn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return z(i)?i.call(t,n):i},dn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},dn.invalidDate=function(){return this._invalidDate},dn.ordinal=function(e){return this._ordinal.replace("%d",e)},dn.preparse=hn,dn.postformat=hn,dn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return z(r)?r(e,t,n,i):r.replace(/%d/i,e)},dn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return z(n)?n(t):n.replace(/%s/i,t)},dn.set=function(e){var t,n;for(n in e)z(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},dn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Te).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},dn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Te.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},dn.monthsParse=function(e,t,n){var i,r,o;if(this._monthsParseExact)return Ee.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},dn.monthsRegex=function(e){return this._monthsParseExact?(h(this,"_monthsRegex")||xe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Oe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},dn.monthsShortRegex=function(e){return this._monthsParseExact?(h(this,"_monthsRegex")||xe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},dn.week=function(e){return Be(e,this._week.dow,this._week.doy).week},dn.firstDayOfYear=function(){return this._week.doy},dn.firstDayOfWeek=function(){return this._week.dow},dn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?He(n,this._week.dow):e?n[e.day()]:n},dn.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},dn.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},dn.weekdaysParse=function(e,t,n){var i,r,o;if(this._weekdaysParseExact)return We.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},dn.weekdaysRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},dn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ke),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},dn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ve),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},dn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},dn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===A(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",st);var mn=Math.abs;function vn(e,t,n,i){var r=Ht(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function _n(e){return 4800*e/146097}function bn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}var Mn=wn("ms"),An=wn("s"),kn=wn("m"),Tn=wn("h"),Sn=wn("d"),Cn=wn("w"),En=wn("M"),Ln=wn("Q"),zn=wn("y");function Rn(e){return function(){return this.isValid()?this._data[e]:NaN}}var On=Rn("milliseconds"),xn=Rn("seconds"),Dn=Rn("minutes"),Pn=Rn("hours"),Nn=Rn("days"),In=Rn("months"),Bn=Rn("years"),Fn=Math.round,Hn={ss:44,s:45,m:45,h:22,d:26,M:11};function qn(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var jn=Math.abs;function Yn(e){return(e>0)-(e<0)||+e}function Wn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=jn(this._milliseconds)/1e3,i=jn(this._days),r=jn(this._months);e=M(n/60),t=M(e/60),n%=60,e%=60;var o=M(r/12),a=r%=12,s=i,u=t,c=e,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",f=Yn(this._months)!==Yn(h)?"-":"",p=Yn(this._days)!==Yn(h)?"-":"",g=Yn(this._milliseconds)!==Yn(h)?"-":"";return d+"P"+(o?f+o+"Y":"")+(a?f+a+"M":"")+(s?p+s+"D":"")+(u||c||l?"T":"")+(u?g+u+"H":"")+(c?g+c+"M":"")+(l?g+l+"S":"")}var Un=Lt.prototype;return Un.isValid=function(){return this._isValid},Un.abs=function(){var e=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),e.milliseconds=mn(e.milliseconds),e.seconds=mn(e.seconds),e.minutes=mn(e.minutes),e.hours=mn(e.hours),e.months=mn(e.months),e.years=mn(e.years),this},Un.add=function(e,t){return vn(this,e,t,1)},Un.subtract=function(e,t){return vn(this,e,t,-1)},Un.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=P(e))||"quarter"===e||"year"===e)switch(n=this._months+_n(t=this._days+i/864e5),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(bn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Un.asMilliseconds=Mn,Un.asSeconds=An,Un.asMinutes=kn,Un.asHours=Tn,Un.asDays=Sn,Un.asWeeks=Cn,Un.asMonths=En,Un.asQuarters=Ln,Un.asYears=zn,Un.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*A(this._months/12):NaN},Un._bubble=function(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*yn(bn(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=M(o/1e3),u.seconds=e%60,t=M(e/60),u.minutes=t%60,n=M(t/60),u.hours=n%24,a+=M(n/24),s+=r=M(_n(a)),a-=yn(bn(r)),i=M(s/12),s%=12,u.days=a,u.months=s,u.years=i,this},Un.clone=function(){return Ht(this)},Un.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},Un.milliseconds=On,Un.seconds=xn,Un.minutes=Dn,Un.hours=Pn,Un.days=Nn,Un.weeks=function(){return M(this.days()/7)},Un.months=In,Un.years=Bn,Un.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var i=Ht(e).abs(),r=Fn(i.as("s")),o=Fn(i.as("m")),a=Fn(i.as("h")),s=Fn(i.as("d")),u=Fn(i.as("M")),c=Fn(i.as("y")),l=r<=Hn.ss&&["s",r]||r0,l[4]=n,qn.apply(null,l)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Un.toISOString=Wn,Un.toString=Wn,Un.toJSON=Wn,Un.locale=Xt,Un.localeData=Jt,Un.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wn),Un.lang=Gt,W("X",0,0,"unix"),W("x",0,0,"valueOf"),le("x",oe),le("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),pe("x",function(e,t,n){n._d=new Date(A(e))}),r.version="2.24.0",t=kt,r.fn=ln,r.min=function(){return Ct("isBefore",[].slice.call(arguments,0))},r.max=function(){return Ct("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=f,r.unix=function(e){return kt(1e3*e)},r.months=function(e,t){return pn(e,t,"months")},r.isDate=c,r.locale=ot,r.invalid=m,r.duration=Ht,r.isMoment=w,r.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},r.parseZone=function(){return kt.apply(null,arguments).parseZone()},r.localeData=st,r.isDuration=zt,r.monthsShort=function(e,t){return pn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},r.defineLocale=at,r.updateLocale=function(e,t){if(null!=t){var n,i,r=et;null!=(i=rt(e))&&(r=i._config),(n=new O(t=R(r,t))).parentLocale=tt[e],tt[e]=n,ot(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?tt[e]=tt[e].parentLocale:null!=tt[e]&&delete tt[e]);return tt[e]},r.locales=function(){return C(tt)},r.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},r.normalizeUnits=P,r.relativeTimeRounding=function(e){return void 0===e?Fn:"function"==typeof e&&(Fn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Hn[e]&&(void 0===t?Hn[e]:(Hn[e]=t,"s"===e&&(Hn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=ln,r.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"},r}()},9997:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,(function(t){return e[t]}).bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=22)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n=4){for(var e=arguments.length,t=Array(e),n=0;n=3){for(var e=arguments.length,t=Array(e),n=0;n=2){for(var e=arguments.length,t=Array(e),n=0;n=1){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:o.JsonService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw r.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=t,this._jsonService=new n(["application/jwk-set+json"])}return e.prototype.getMetadata=function(){var e=this;return this._settings.metadata?(r.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(r.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then(function(t){return r.Log.debug("MetadataService.getMetadata: json received"),e._settings.metadata=t,t})):(r.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},e.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},e.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},e.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},e.prototype.getTokenEndpoint=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",e)},e.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},e.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},e.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},e.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},e.prototype._getMetadataProperty=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.Log.debug("MetadataService.getMetadataProperty for: "+e),this.getMetadata().then(function(n){if(r.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===n[e]){if(!0===t)return void r.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+e);throw r.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+e),new Error("Metadata does not contain property "+e)}return n[e]})},e.prototype.getSigningKeys=function(){var e=this;return this._settings.signingKeys?(r.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then(function(t){return r.Log.debug("MetadataService.getSigningKeys: jwks_uri received",t),e._jsonService.getJson(t).then(function(t){if(r.Log.debug("MetadataService.getSigningKeys: key set received",t),!t.keys)throw r.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return e._settings.signingKeys=t.keys,e._settings.signingKeys})})},i(e,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration"))),this._metadataUrl}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlUtility=void 0;var i=n(0),r=n(1);t.UrlUtility=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.addQueryParam=function(e,t,n){return e.indexOf("?")<0&&(e+="?"),"?"!==e[e.length-1]&&(e+="&"),e+=encodeURIComponent(t),(e+="=")+encodeURIComponent(n)},e.parseUrlFragment=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.Global;"string"!=typeof e&&(e=n.location.href);var o=e.lastIndexOf(t);o>=0&&(e=e.substr(o+1)),"?"===t&&(o=e.indexOf("#"))>=0&&(e=e.substr(0,o));for(var a,s={},u=/([^&=]+)=([^&]*)/g,c=0;a=u.exec(e);)if(s[decodeURIComponent(a[1])]=decodeURIComponent(a[2]),c++>50)return i.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",e),{error:"Response exceeded expected number of parameters"};for(var l in s)return s;return{}},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JoseUtil=void 0;var i=n(25),r=function(e){return e&&e.__esModule?e:{default:e}}(n(32));t.JoseUtil=(0,r.default)({jws:i.jws,KeyUtil:i.KeyUtil,X509:i.X509,crypto:i.crypto,hextob64u:i.hextob64u,b64tohex:i.b64tohex,AllowedSigningAlgs:i.AllowedSigningAlgs})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OidcClientSettings=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.authority,r=t.metadataUrl,o=t.metadata,h=t.signingKeys,d=t.client_id,f=t.client_secret,p=t.response_type,g=void 0===p?c:p,m=t.scope,v=void 0===m?l:m,y=t.redirect_uri,_=t.post_logout_redirect_uri,b=t.prompt,w=t.display,M=t.max_age,A=t.ui_locales,k=t.acr_values,T=t.resource,S=t.response_mode,C=t.filterProtocolClaims,E=void 0===C||C,L=t.loadUserInfo,z=void 0===L||L,R=t.staleStateAge,O=void 0===R?900:R,x=t.clockSkew,D=void 0===x?300:x,P=t.userInfoJwtIssuer,N=void 0===P?"OP":P,I=t.stateStore,B=void 0===I?new a.WebStorageStateStore:I,F=t.ResponseValidatorCtor,H=void 0===F?s.ResponseValidator:F,q=t.MetadataServiceCtor,j=void 0===q?u.MetadataService:q,Y=t.extraQueryParams,W=void 0===Y?{}:Y,U=t.extraTokenParams,K=void 0===U?{}:U;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._authority=n,this._metadataUrl=r,this._metadata=o,this._signingKeys=h,this._client_id=d,this._client_secret=f,this._response_type=g,this._scope=v,this._redirect_uri=y,this._post_logout_redirect_uri=_,this._prompt=b,this._display=w,this._max_age=M,this._ui_locales=A,this._acr_values=k,this._resource=T,this._response_mode=S,this._filterProtocolClaims=!!E,this._loadUserInfo=!!z,this._staleStateAge=O,this._clockSkew=D,this._userInfoJwtIssuer=N,this._stateStore=B,this._validator=new H(this),this._metadataService=new j(this),this._extraQueryParams="object"===(void 0===W?"undefined":i(W))?W:{},this._extraTokenParams="object"===(void 0===K?"undefined":i(K))?K:{}}return r(e,[{key:"client_id",get:function(){return this._client_id},set:function(e){if(this._client_id)throw o.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=e}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(e){if(this._authority)throw o.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=e}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration")),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(e){this._metadata=e}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(e){this._signingKeys=e}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(e){this._extraQueryParams="object"===(void 0===e?"undefined":i(e))?e:{}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(e){this._extraTokenParams="object"===(void 0===e?"undefined":i(e))?e:{}}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebStorageStateStore=void 0;var i=n(0),r=n(1);t.WebStorageStateStore=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.prefix,i=void 0===n?"oidc.":n,o=t.store,a=void 0===o?r.Global.localStorage:o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._store=a,this._prefix=i}return e.prototype.set=function(e,t){return i.Log.debug("WebStorageStateStore.set",e),this._store.setItem(e=this._prefix+e,t),Promise.resolve()},e.prototype.get=function(e){i.Log.debug("WebStorageStateStore.get",e);var t=this._store.getItem(e=this._prefix+e);return Promise.resolve(t)},e.prototype.remove=function(e){i.Log.debug("WebStorageStateStore.remove",e);var t=this._store.getItem(e=this._prefix+e);return this._store.removeItem(e),Promise.resolve(t)},e.prototype.getAllKeys=function(){i.Log.debug("WebStorageStateStore.getAllKeys");for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.Global.XMLHttpRequest,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._contentTypes=t&&Array.isArray(t)?t.slice():[],this._contentTypes.push("application/json"),i&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=n,this._jwtHandler=i}return e.prototype.getJson=function(e,t){var n=this;if(!e)throw i.Log.error("JsonService.getJson: No url passed"),new Error("url");return i.Log.debug("JsonService.getJson, url: ",e),new Promise(function(r,o){var a=new n._XMLHttpRequest;a.open("GET",e);var s=n._contentTypes,u=n._jwtHandler;a.onload=function(){if(i.Log.debug("JsonService.getJson: HTTP response received, status",a.status),200===a.status){var t=a.getResponseHeader("Content-Type");if(t){var n=s.find(function(e){if(t.startsWith(e))return!0});if("application/jwt"==n)return void u(a).then(r,o);if(n)try{return void r(JSON.parse(a.responseText))}catch(r){return i.Log.error("JsonService.getJson: Error parsing JSON response",r.message),void o(r)}}o(Error("Invalid response Content-Type: "+t+", from URL: "+e))}else o(Error(a.statusText+" ("+a.status+")"))},a.onerror=function(){i.Log.error("JsonService.getJson: network error"),o(Error("Network Error"))},t&&(i.Log.debug("JsonService.getJson: token passed, setting Authorization header"),a.setRequestHeader("Authorization","Bearer "+t)),a.send()})},e.prototype.postForm=function(e,t){var n=this;if(!e)throw i.Log.error("JsonService.postForm: No url passed"),new Error("url");return i.Log.debug("JsonService.postForm, url: ",e),new Promise(function(r,o){var a=new n._XMLHttpRequest;a.open("POST",e);var s=n._contentTypes;a.onload=function(){if(i.Log.debug("JsonService.postForm: HTTP response received, status",a.status),200!==a.status){if(400===a.status&&(n=a.getResponseHeader("Content-Type"))&&s.find(function(e){if(n.startsWith(e))return!0}))try{var t=JSON.parse(a.responseText);if(t&&t.error)return i.Log.error("JsonService.postForm: Error from server: ",t.error),void o(new Error(t.error))}catch(r){return i.Log.error("JsonService.postForm: Error parsing JSON response",r.message),void o(r)}o(Error(a.statusText+" ("+a.status+")"))}else{var n;if((n=a.getResponseHeader("Content-Type"))&&s.find(function(e){if(n.startsWith(e))return!0}))try{return void r(JSON.parse(a.responseText))}catch(r){return i.Log.error("JsonService.postForm: Error parsing JSON response",r.message),void o(r)}o(Error("Invalid response Content-Type: "+n+", from URL: "+e))}},a.onerror=function(){i.Log.error("JsonService.postForm: network error"),o(Error("Network Error"))};var u="";for(var c in t){var l=t[c];l&&(u.length>0&&(u+="&"),u+=encodeURIComponent(c),u+="=",u+=encodeURIComponent(l))}a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.send(u)})},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.State=void 0;var i=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.id,i=t.data,r=t.created,a=t.request_type;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._id=n||(0,o.default)(),this._data=i,this._created="number"==typeof r&&r>0?r:parseInt(Date.now()/1e3),this._request_type=a}return e.prototype.toStorageString=function(){return r.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},e.fromStorageString=function(t){return r.Log.debug("State.fromStorageString"),new e(JSON.parse(t))},e.clearStaleState=function(t,n){var i=Date.now()/1e3-n;return t.getAllKeys().then(function(n){r.Log.debug("State.clearStaleState: got keys",n);for(var o=[],a=function(a){var s=n[a];u=t.get(s).then(function(n){var o=!1;if(n)try{var a=e.fromStorageString(n);r.Log.debug("State.clearStaleState: got item from key: ",s,a.created),a.created<=i&&(o=!0)}catch(e){r.Log.error("State.clearStaleState: Error parsing state for key",s,e.message),o=!0}else r.Log.debug("State.clearStaleState: no item in storage for key: ",s),o=!0;if(o)return r.Log.debug("State.clearStaleState: removed item for key: ",s),t.remove(s)}),o.push(u)},s=0;s0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._settings=t instanceof o.OidcClientSettings?t:new o.OidcClientSettings(t)}return e.prototype.createSigninRequest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.response_type,i=t.scope,o=t.redirect_uri,a=t.data,u=t.state,c=t.prompt,l=t.display,h=t.max_age,d=t.ui_locales,f=t.id_token_hint,p=t.login_hint,g=t.acr_values,m=t.resource,v=t.request,y=t.request_uri,_=t.response_mode,b=t.extraQueryParams,w=t.extraTokenParams,M=t.request_type,A=t.skipUserInfo,k=arguments[1];r.Log.debug("OidcClient.createSigninRequest");var T=this._settings.client_id;i=i||this._settings.scope,o=o||this._settings.redirect_uri,c=c||this._settings.prompt,l=l||this._settings.display,h=h||this._settings.max_age,d=d||this._settings.ui_locales,g=g||this._settings.acr_values,m=m||this._settings.resource,_=_||this._settings.response_mode,b=b||this._settings.extraQueryParams,w=w||this._settings.extraTokenParams;var S=this._settings.authority;return s.SigninRequest.isCode(n=n||this._settings.response_type)&&"code"!==n?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then(function(t){r.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",t);var C=new s.SigninRequest({url:t,client_id:T,redirect_uri:o,response_type:n,scope:i,data:a||u,authority:S,prompt:c,display:l,max_age:h,ui_locales:d,id_token_hint:f,login_hint:p,acr_values:g,resource:m,request:v,request_uri:y,extraQueryParams:b,extraTokenParams:w,request_type:M,response_mode:_,client_secret:e._settings.client_secret,skipUserInfo:A}),E=C.state;return(k=k||e._stateStore).set(E.id,E.toStorageString()).then(function(){return C})})},e.prototype.readSigninResponseState=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.Log.debug("OidcClient.readSigninResponseState");var i="query"===this._settings.response_mode||!this._settings.response_mode&&s.SigninRequest.isCode(this._settings.response_type)?"?":"#",o=new u.SigninResponse(e,i);return o.state?(t=t||this._stateStore,(n?t.remove.bind(t):t.get.bind(t))(o.state).then(function(e){if(!e)throw r.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:h.SigninState.fromStorageString(e),response:o}})):(r.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},e.prototype.processSigninResponse=function(e,t){var n=this;return r.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(e,t,!0).then(function(e){var t=e.state,i=e.response;return r.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),n._validator.validateSigninResponse(t,i)})},e.prototype.createSignoutRequest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id_token_hint,i=t.data,o=t.state,a=t.post_logout_redirect_uri,s=t.extraQueryParams,u=t.request_type,l=arguments[1];return r.Log.debug("OidcClient.createSignoutRequest"),a=a||this._settings.post_logout_redirect_uri,s=s||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then(function(t){if(!t)throw r.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");r.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",t);var h=new c.SignoutRequest({url:t,id_token_hint:n,post_logout_redirect_uri:a,data:i||o,extraQueryParams:s,request_type:u}),d=h.state;return d&&(r.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(l=l||e._stateStore).set(d.id,d.toStorageString())),h})},e.prototype.readSignoutResponseState=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.Log.debug("OidcClient.readSignoutResponseState");var i=new l.SignoutResponse(e);if(!i.state)return r.Log.debug("OidcClient.readSignoutResponseState: No state in response"),i.error?(r.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",i.error),Promise.reject(new a.ErrorResponse(i))):Promise.resolve({undefined:void 0,response:i});var o=i.state;return t=t||this._stateStore,(n?t.remove.bind(t):t.get.bind(t))(o).then(function(e){if(!e)throw r.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(e),response:i}})},e.prototype.processSignoutResponse=function(e,t){var n=this;return r.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(e,t,!0).then(function(e){var t=e.state,i=e.response;return t?(r.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),n._validator.validateSignoutResponse(t,i)):(r.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),i)})},e.prototype.clearStaleState=function(e){return r.Log.debug("OidcClient.clearStaleState"),d.State.clearStaleState(e=e||this._stateStore,this.settings.staleStateAge)},i(e,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenClient=void 0;var i=n(7),r=n(2),o=n(0);t.TokenClient=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw o.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=t,this._jsonService=new n,this._metadataService=new a(this._settings)}return e.prototype.exchangeCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t=Object.assign({},t)).grant_type=t.grant_type||"authorization_code",t.client_id=t.client_id||this._settings.client_id,t.redirect_uri=t.redirect_uri||this._settings.redirect_uri,t.code?t.redirect_uri?t.code_verifier?t.client_id?this._metadataService.getTokenEndpoint(!1).then(function(n){return o.Log.debug("TokenClient.exchangeCode: Received token endpoint"),e._jsonService.postForm(n,t).then(function(e){return o.Log.debug("TokenClient.exchangeCode: response received"),e})}):(o.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(o.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(o.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},e.prototype.exchangeRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t=Object.assign({},t)).grant_type=t.grant_type||"refresh_token",t.client_id=t.client_id||this._settings.client_id,t.client_secret=t.client_secret||this._settings.client_secret,t.refresh_token?t.client_id?this._metadataService.getTokenEndpoint(!1).then(function(n){return o.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),e._jsonService.postForm(n,t).then(function(e){return o.Log.debug("TokenClient.exchangeRefreshToken: response received"),e})}):(o.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorResponse=void 0;var i=n(0);t.ErrorResponse=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.error,o=n.error_description,a=n.error_uri,s=n.state,u=n.session_state;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),!r)throw i.Log.error("No error passed to ErrorResponse"),new Error("error");var c=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o||r));return c.name="ErrorResponse",c.error=r,c.error_description=o,c.error_uri=a,c.state=s,c.session_state=u,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(Error)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigninRequest=void 0;var i=n(0),r=n(3),o=n(13);t.SigninRequest=function(){function e(t){var n=t.url,a=t.client_id,s=t.redirect_uri,u=t.response_type,c=t.scope,l=t.authority,h=t.data,d=t.prompt,f=t.display,p=t.max_age,g=t.ui_locales,m=t.id_token_hint,v=t.login_hint,y=t.acr_values,_=t.resource,b=t.response_mode,w=t.request,M=t.request_uri,A=t.extraQueryParams,k=t.request_type,T=t.client_secret,S=t.extraTokenParams,C=t.skipUserInfo;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw i.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!a)throw i.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!s)throw i.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!u)throw i.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!c)throw i.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!l)throw i.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var E=e.isOidc(u),L=e.isCode(u);b||(b=e.isCode(u)?"query":null),this.state=new o.SigninState({nonce:E,data:h,client_id:a,authority:l,redirect_uri:s,code_verifier:L,request_type:k,response_mode:b,client_secret:T,scope:c,extraTokenParams:S,skipUserInfo:C}),n=r.UrlUtility.addQueryParam(n,"client_id",a),n=r.UrlUtility.addQueryParam(n,"redirect_uri",s),n=r.UrlUtility.addQueryParam(n,"response_type",u),n=r.UrlUtility.addQueryParam(n,"scope",c),n=r.UrlUtility.addQueryParam(n,"state",this.state.id),E&&(n=r.UrlUtility.addQueryParam(n,"nonce",this.state.nonce)),L&&(n=r.UrlUtility.addQueryParam(n,"code_challenge",this.state.code_challenge),n=r.UrlUtility.addQueryParam(n,"code_challenge_method","S256"));var z={prompt:d,display:f,max_age:p,ui_locales:g,id_token_hint:m,login_hint:v,acr_values:y,resource:_,request:w,request_uri:M,response_mode:b};for(var R in z)z[R]&&(n=r.UrlUtility.addQueryParam(n,R,z[R]));for(var O in A)n=r.UrlUtility.addQueryParam(n,O,A[O]);this.url=n}return e.isOidc=function(e){return!!e.split(/\s+/g).filter(function(e){return"id_token"===e})[0]},e.isOAuth=function(e){return!!e.split(/\s+/g).filter(function(e){return"token"===e})[0]},e.isCode=function(e){return!!e.split(/\s+/g).filter(function(e){return"code"===e})[0]},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigninState=void 0;var i=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},i=n.nonce,r=n.authority,o=n.client_id,u=n.redirect_uri,c=n.code_verifier,l=n.response_mode,h=n.client_secret,d=n.scope,f=n.extraTokenParams,p=n.skipUserInfo;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var g=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,arguments[0]));if(!0===i?g._nonce=(0,s.default)():i&&(g._nonce=i),!0===c?g._code_verifier=(0,s.default)()+(0,s.default)()+(0,s.default)():c&&(g._code_verifier=c),g.code_verifier){var m=a.JoseUtil.hashString(g.code_verifier,"SHA256");g._code_challenge=a.JoseUtil.hexToBase64Url(m)}return g._redirect_uri=u,g._authority=r,g._client_id=o,g._response_mode=l,g._client_secret=h,g._scope=d,g._extraTokenParams=f,g._skipUserInfo=p,g}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toStorageString=function(){return r.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},t.fromStorageString=function(e){return r.Log.debug("SigninState.fromStorageString"),new t(JSON.parse(e))},i(t,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),t}(o.State)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,i.default)().replace(/-/g,"")};var i=function(e){return e&&e.__esModule?e:{default:e}}(n(33));e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.User=void 0;var i=function(){function e(e,t){for(var n=0;n0){var n=parseInt(Date.now()/1e3);this.expires_at=n+t}}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccessTokenEvents=void 0;var i=n(0),r=n(48);t.AccessTokenEvents=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.accessTokenExpiringNotificationTime,i=void 0===n?60:n,o=t.accessTokenExpiringTimer,a=void 0===o?new r.Timer("Access token expiring"):o,s=t.accessTokenExpiredTimer,u=void 0===s?new r.Timer("Access token expired"):s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._accessTokenExpiringNotificationTime=i,this._accessTokenExpiring=a,this._accessTokenExpired=u}return e.prototype.load=function(e){if(e.access_token&&void 0!==e.expires_in){var t=e.expires_in;if(i.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",t),t>0){var n=t-this._accessTokenExpiringNotificationTime;n<=0&&(n=1),i.Log.debug("AccessTokenEvents.load: registering expiring timer in:",n),this._accessTokenExpiring.init(n)}else i.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var r=t+1;i.Log.debug("AccessTokenEvents.load: registering expired timer in:",r),this._accessTokenExpired.init(r)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},e.prototype.unload=function(){i.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},e.prototype.addAccessTokenExpiring=function(e){this._accessTokenExpiring.addHandler(e)},e.prototype.removeAccessTokenExpiring=function(e){this._accessTokenExpiring.removeHandler(e)},e.prototype.addAccessTokenExpired=function(e){this._accessTokenExpired.addHandler(e)},e.prototype.removeAccessTokenExpired=function(e){this._accessTokenExpired.removeHandler(e)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0;var i=n(0);t.Event=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._name=t,this._callbacks=[]}return e.prototype.addHandler=function(e){this._callbacks.push(e)},e.prototype.removeHandler=function(e){var t=this._callbacks.findIndex(function(t){return t===e});t>=0&&this._callbacks.splice(t,1)},e.prototype.raise=function(){i.Log.debug("Event: Raising event: "+this._name);for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:o.CheckSessionIFrame,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.Global.timer;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw r.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=t,this._CheckSessionIFrameCtor=i,this._timer=s,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),this._userManager.getUser().then(function(e){e?n._start(e):n._settings.monitorAnonymousSession&&n._userManager.querySessionStatus().then(function(e){var t={session_state:e.session_state};e.sub&&e.sid&&(t.profile={sub:e.sub,sid:e.sid}),n._start(t)}).catch(function(e){r.Log.error("SessionMonitor ctor: error from querySessionStatus:",e.message)})}).catch(function(e){r.Log.error("SessionMonitor ctor: error from getUser:",e.message)})}return e.prototype._start=function(e){var t=this,n=e.session_state;n&&(e.profile?(this._sub=e.profile.sub,this._sid=e.profile.sid,r.Log.debug("SessionMonitor._start: session_state:",n,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,r.Log.debug("SessionMonitor._start: session_state:",n,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(n):this._metadataService.getCheckSessionIframe().then(function(e){if(e){r.Log.debug("SessionMonitor._start: Initializing check session iframe");var i=t._client_id,o=t._checkSessionInterval,a=t._stopCheckSessionOnError;t._checkSessionIFrame=new t._CheckSessionIFrameCtor(t._callback.bind(t),i,e,o,a),t._checkSessionIFrame.load().then(function(){t._checkSessionIFrame.start(n)})}else r.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")}).catch(function(e){r.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",e.message)}))},e.prototype._stop=function(){var e=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(r.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var t=this._timer.setInterval(function(){e._timer.clearInterval(t),e._userManager.querySessionStatus().then(function(t){var n={session_state:t.session_state};t.sub&&t.sid&&(n.profile={sub:t.sub,sid:t.sid}),e._start(n)}).catch(function(e){r.Log.error("SessionMonitor: error from querySessionStatus:",e.message)})},1e3)},e.prototype._callback=function(){var e=this;this._userManager.querySessionStatus().then(function(t){var n=!0;t?t.sub===e._sub?(n=!1,e._checkSessionIFrame.start(t.session_state),t.sid===e._sid?r.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",t.session_state):(r.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",t.session_state),e._userManager.events._raiseUserSessionChanged())):r.Log.debug("SessionMonitor._callback: Different subject signed into OP:",t.sub):r.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),n&&(e._sub?(r.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),e._userManager.events._raiseUserSignedOut()):(r.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),e._userManager.events._raiseUserSignedIn()))}).catch(function(t){e._sub&&(r.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",t.message),e._userManager.events._raiseUserSignedOut())})},i(e,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckSessionIFrame=void 0;var i=n(0);t.CheckSessionIFrame=function(){function e(t,n,i,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._callback=t,this._client_id=n,this._url=i,this._interval=r||2e3,this._stopOnError=o;var a=i.indexOf("/",i.indexOf("//")+2);this._frame_origin=i.substr(0,a),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.style.width=0,this._frame.style.height=0,this._frame.src=i}return e.prototype.load=function(){var e=this;return new Promise(function(t){e._frame.onload=function(){t()},window.document.body.appendChild(e._frame),e._boundMessageEvent=e._message.bind(e),window.addEventListener("message",e._boundMessageEvent,!1)})},e.prototype._message=function(e){e.origin===this._frame_origin&&e.source===this._frame.contentWindow&&("error"===e.data?(i.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===e.data?(i.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):i.Log.debug("CheckSessionIFrame: "+e.data+" message from check session op iframe"))},e.prototype.start=function(e){var t=this;if(this._session_state!==e){i.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=e;var n=function(){t._frame.contentWindow.postMessage(t._client_id+" "+t._session_state,t._frame_origin)};n(),this._timer=window.setInterval(n,this._interval)}},e.prototype.stop=function(){this._session_state=null,this._timer&&(i.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenRevocationClient=void 0;var i=n(0),r=n(2),o=n(1);t.TokenRevocationClient=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Global.XMLHttpRequest,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw i.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=t,this._XMLHttpRequestCtor=n,this._metadataService=new a(this._settings)}return e.prototype.revoke=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!e)throw i.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==r&&"refresh_token"!=r)throw i.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then(function(o){if(o)return i.Log.debug("TokenRevocationClient.revoke: Revoking "+r),n._revoke(o,n._settings.client_id,n._settings.client_secret,e,r);if(t)throw i.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")})},e.prototype._revoke=function(e,t,n,r,o){var a=this;return new Promise(function(s,u){var c=new a._XMLHttpRequestCtor;c.open("POST",e),c.onload=function(){i.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",c.status),200===c.status?s():u(Error(c.statusText+" ("+c.status+")"))},c.onerror=function(){i.Log.debug("TokenRevocationClient.revoke: Network Error."),u("Network Error")};var l="client_id="+encodeURIComponent(t);n&&(l+="&client_secret="+encodeURIComponent(n)),l+="&token_type_hint="+encodeURIComponent(o),l+="&token="+encodeURIComponent(r),c.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),c.send(l)})},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaPopupWindow=void 0;var i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:o.MetadataService,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.UserInfoService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c.JoseUtil,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.TokenClient;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw r.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=t,this._metadataService=new n(this._settings),this._userInfoService=new i(this._settings),this._joseUtil=u,this._tokenClient=new l(this._settings)}return e.prototype.validateSigninResponse=function(e,t){var n=this;return r.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(e,t).then(function(t){return r.Log.debug("ResponseValidator.validateSigninResponse: state processed"),n._validateTokens(e,t).then(function(t){return r.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),n._processClaims(e,t).then(function(e){return r.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),e})})})},e.prototype.validateSignoutResponse=function(e,t){return e.id!==t.state?(r.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(r.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),t.state=e.data,t.error?(r.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",t.error),Promise.reject(new u.ErrorResponse(t))):Promise.resolve(t))},e.prototype._processSigninParams=function(e,t){if(e.id!==t.state)return r.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!e.client_id)return r.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!e.authority)return r.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==e.authority)return r.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=e.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==e.client_id)return r.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=e.client_id;return r.Log.debug("ResponseValidator._processSigninParams: state validated"),t.state=e.data,t.error?(r.Log.warn("ResponseValidator._processSigninParams: Response was error",t.error),Promise.reject(new u.ErrorResponse(t))):e.nonce&&!t.id_token?(r.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!e.nonce&&t.id_token?(r.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):e.code_verifier&&!t.code?(r.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!e.code_verifier&&t.code?(r.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(t.scope||(t.scope=e.scope),Promise.resolve(t))},e.prototype._processClaims=function(e,t){var n=this;if(t.isOpenIdConnect){if(r.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),t.profile=this._filterProtocolClaims(t.profile),!0!==e.skipUserInfo&&this._settings.loadUserInfo&&t.access_token)return r.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(t.access_token).then(function(e){return r.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),e.sub!==t.profile.sub?(r.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in access_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"))):(t.profile=n._mergeClaims(t.profile,e),r.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",t.profile),t)});r.Log.debug("ResponseValidator._processClaims: not loading user info")}else r.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(t)},e.prototype._mergeClaims=function(e,t){var n=Object.assign({},e);for(var r in t){var o=t[r];Array.isArray(o)||(o=[o]);for(var a=0;a1)return r.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));u=s[0]}if(!u)return r.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var c=e.client_id,l=n._settings.clockSkew;return r.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",l),n._joseUtil.validateJwt(t.id_token,u,a,c,l).then(function(){return r.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),i.payload.sub?(t.profile=i.payload,t):(r.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))})})})},e.prototype._filterByAlg=function(e,t){var n=null;if(t.startsWith("RS"))n="RSA";else if(t.startsWith("PS"))n="PS";else{if(!t.startsWith("ES"))return r.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",t),[];n="EC"}return r.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",n),e=e.filter(function(e){return e.kty===n}),r.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",n,e.length),e},e.prototype._validateAccessToken=function(e){if(!e.profile)return r.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!e.profile.at_hash)return r.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!e.id_token)return r.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var t=this._joseUtil.parseJwt(e.id_token);if(!t||!t.header)return r.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",t),Promise.reject(new Error("Failed to parse id_token"));var n=t.header.alg;if(!n||5!==n.length)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n),Promise.reject(new Error("Unsupported alg: "+n));var i=n.substr(2,3);if(!i)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n,i),Promise.reject(new Error("Unsupported alg: "+n));if(256!==(i=parseInt(i))&&384!==i&&512!==i)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n,i),Promise.reject(new Error("Unsupported alg: "+n));var o="sha"+i,a=this._joseUtil.hashString(e.access_token,o);if(!a)return r.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",o),Promise.reject(new Error("Failed to validate at_hash"));var s=a.substr(0,a.length/2),u=this._joseUtil.hexToBase64Url(s);return u!==e.profile.at_hash?(r.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",u,e.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(r.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(e))},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserInfoService=void 0;var i=n(7),r=n(2),o=n(0),a=n(4);t.UserInfoService=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.JsonService,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.JoseUtil;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw o.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=t,this._jsonService=new n(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new s(this._settings),this._joseUtil=u}return e.prototype.getClaims=function(e){var t=this;return e?this._metadataService.getUserInfoEndpoint().then(function(n){return o.Log.debug("UserInfoService.getClaims: received userinfo url",n),t._jsonService.getJson(n,e).then(function(e){return o.Log.debug("UserInfoService.getClaims: claims received",e),e})}):(o.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},e.prototype._getClaimsFromJwt=function e(t){var n=this;try{var i=this._joseUtil.parseJwt(t.responseText);if(!i||!i.header||!i.payload)return o.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",i),Promise.reject(new Error("Failed to parse id_token"));var r=i.header.kid,a=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":a=this._metadataService.getIssuer();break;case"ANY":a=Promise.resolve(i.payload.iss);break;default:a=Promise.resolve(this._settings.userInfoJwtIssuer)}return a.then(function(e){return o.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+e),n._metadataService.getSigningKeys().then(function(a){if(!a)return o.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));o.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var s=void 0;if(r)s=a.filter(function(e){return e.kid===r})[0];else{if((a=n._filterByAlg(a,i.header.alg)).length>1)return o.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));s=a[0]}if(!s)return o.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var u=n._settings.client_id,c=n._settings.clockSkew;return o.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",c),n._joseUtil.validateJwt(t.responseText,s,e,u,c,void 0,!0).then(function(){return o.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),i.payload})})})}catch(e){return o.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",e.message),void reject(e)}},e.prototype._filterByAlg=function(e,t){var n=null;if(t.startsWith("RS"))n="RSA";else if(t.startsWith("PS"))n="PS";else{if(!t.startsWith("ES"))return o.Log.debug("UserInfoService._filterByAlg: alg not supported: ",t),[];n="EC"}return o.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",n),e=e.filter(function(e){return e.kty===n}),o.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",n,e.length),e},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AllowedSigningAlgs=t.b64tohex=t.hextob64u=t.crypto=t.X509=t.KeyUtil=t.jws=void 0;var i=n(26);t.jws=i.jws,t.KeyUtil=i.KEYUTIL,t.X509=i.X509,t.crypto=i.crypto,t.hextob64u=i.hextob64u,t.b64tohex=i.b64tohex,t.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i={userAgent:!1},r={};if(void 0===o)var o={};o.lang={extend:function(t,n,r){if(!n||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var o=function(){};if(o.prototype=n.prototype,t.prototype=new o,t.prototype.constructor=t,t.superclass=n.prototype,n.prototype.constructor==Object.prototype.constructor&&(n.prototype.constructor=n),r){var a;for(a in r)t.prototype[a]=r[a];var s=function(){},u=["toString","valueOf"];try{/MSIE/.test(i.userAgent)&&(s=function(e,t){for(a=0;a>>2]|=(n[o>>>2]>>>24-o%4*8&255)<<24-(i+o)%4*8;else for(o=0;o>>2]=n[o>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=a.ceil(t/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new l.init(n,t/2)}},f=h.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r>>2]>>>24-r%4*8&255));return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new l.init(n,t)}},p=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},g=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,n=t.words,i=t.sigBytes,r=this.blockSize,o=i/(4*r),s=(o=e?a.ceil(o):a.max((0|o)-this._minBufferSize,0))*r,u=a.min(4*s,i);if(s){for(var c=0;c>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,a=0;4>a&&r+.75*a>>6*(3-a)&63));if(t=i.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(t){var n=t.length,i=this._map;(r=i.charAt(64))&&-1!=(r=t.indexOf(r))&&(n=r);for(var r=[],o=0,a=0;a>>6-a%4*2;r[o>>>2]|=(s|u)<<24-o%4*8,o++}return e.create(r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){for(var t=v,n=(r=t.lib).WordArray,i=r.Hasher,r=t.algo,o=[],a=[],s=function(e){return 4294967296*(e-(0|e))|0},u=2,c=0;64>c;){var l;e:{for(var h=e.sqrt(l=u),d=2;d<=h;d++)if(!(l%d)){l=!1;break e}l=!0}l&&(8>c&&(o[c]=s(e.pow(u,.5))),a[c]=s(e.pow(u,1/3)),c++),u++}var f=[];r=r.SHA256=i.extend({_doReset:function(){this._hash=new n.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],u=n[4],c=n[5],l=n[6],h=n[7],d=0;64>d;d++){if(16>d)f[d]=0|e[t+d];else{var p=f[d-15],g=f[d-2];f[d]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+f[d-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+f[d-16]}p=h+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&c^~u&l)+a[d]+f[d],g=((i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22))+(i&r^i&o^r&o),h=l,l=c,c=u,u=s+p|0,s=o,o=r,r=i,i=p+g|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(i/4294967296),n[15+(r+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA256=i._createHelper(r),t.HmacSHA256=i._createHmacHelper(r)}(Math),function(){function e(){return i.create.apply(i,arguments)}for(var t=v,n=t.lib.Hasher,i=(o=t.x64).Word,r=o.WordArray,o=t.algo,a=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],s=[],u=0;80>u;u++)s[u]=e();o=o.SHA512=n.extend({_doReset:function(){this._hash=new r.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=(h=this._hash.words)[0],i=h[1],r=h[2],o=h[3],u=h[4],c=h[5],l=h[6],h=h[7],d=n.high,f=n.low,p=i.high,g=i.low,m=r.high,v=r.low,y=o.high,_=o.low,b=u.high,w=u.low,M=c.high,A=c.low,k=l.high,T=l.low,S=h.high,C=h.low,E=d,L=f,z=p,R=g,O=m,x=v,D=y,P=_,N=b,I=w,B=M,F=A,H=k,q=T,j=S,Y=C,W=0;80>W;W++){var U=s[W];if(16>W)var K=U.high=0|e[t+2*W],V=U.low=0|e[t+2*W+1];else{K=((V=(K=s[W-15]).high)>>>1|(X=K.low)<<31)^(V>>>8|X<<24)^V>>>7;var X=(X>>>1|V<<31)^(X>>>8|V<<24)^(X>>>7|V<<25),G=((V=(G=s[W-2]).high)>>>19|(J=G.low)<<13)^(V<<3|J>>>29)^V>>>6,J=(J>>>19|V<<13)^(J<<3|V>>>29)^(J>>>6|V<<26),Q=(V=s[W-7]).high,Z=($=s[W-16]).high,$=$.low;K=(K=(K=K+Q+((V=X+V.low)>>>0>>0?1:0))+G+((V+=J)>>>0>>0?1:0))+Z+((V+=$)>>>0<$>>>0?1:0),U.high=K,U.low=V}U=E&z^E&O^z&O;var ee=L&R^L&x^R&x,te=(X=(E>>>28|L<<4)^(E<<30|L>>>2)^(E<<25|L>>>7),G=(L>>>28|E<<4)^(L<<30|E>>>2)^(L<<25|E>>>7),(J=a[W]).high),ne=J.low;Z=(Z=(Z=(Z=j+((N>>>14|I<<18)^(N>>>18|I<<14)^(N<<23|I>>>9))+((J=Y+((I>>>14|N<<18)^(I>>>18|N<<14)^(I<<23|N>>>9)))>>>0>>0?1:0))+(Q=N&B^~N&H)+((J+=$=I&F^~I&q)>>>0<$>>>0?1:0))+te+((J+=ne)>>>0>>0?1:0))+K+((J+=V)>>>0>>0?1:0),j=H,Y=q,H=B,q=F,B=N,F=I,N=D+Z+((I=P+J|0)>>>0

>>0?1:0)|0,D=O,P=x,O=z,x=R,z=E,R=L,E=Z+(U=X+U+((V=G+ee)>>>0>>0?1:0))+((L=J+V|0)>>>0>>0?1:0)|0}f=n.low=f+L,n.high=d+E+(f>>>0>>0?1:0),g=i.low=g+R,i.high=p+z+(g>>>0>>0?1:0),v=r.low=v+x,r.high=m+O+(v>>>0>>0?1:0),_=o.low=_+P,o.high=y+D+(_>>>0

>>0?1:0),w=u.low=w+I,u.high=b+N+(w>>>0>>0?1:0),A=c.low=A+F,c.high=M+B+(A>>>0>>0?1:0),T=l.low=T+q,l.high=k+H+(T>>>0>>0?1:0),C=h.low=C+Y,h.high=S+j+(C>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(i+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),t.SHA512=n._createHelper(o),t.HmacSHA512=n._createHmacHelper(o)}(),function(){var e=v,t=(r=e.x64).Word,n=r.WordArray,i=(r=e.algo).SHA512,r=r.SHA384=i.extend({_doReset:function(){this._hash=new n.init([new t.init(3418070365,3238371032),new t.init(1654270250,914150663),new t.init(2438529370,812702999),new t.init(355462360,4144912697),new t.init(1731405415,4290775857),new t.init(2394180231,1750603025),new t.init(3675008525,1694076839),new t.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=i._createHelper(r),e.HmacSHA384=i._createHmacHelper(r)}();var y,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function b(e){var t,n,i="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),i+=_.charAt(n>>6)+_.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),i+=_.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),i+=_.charAt(n>>2)+_.charAt((3&n)<<4));(3&i.length)>0;)i+="=";return i}function w(e){var t,n,i,r="",o=0;for(t=0;t>2),n=3&i,o=1):1==o?(r+=E(n<<2|i>>4),n=15&i,o=2):2==o?(r+=E(n),r+=E(i>>2),n=3&i,o=3):(r+=E(n<<2|i>>4),r+=E(15&i),o=0));return 1==o&&(r+=E(n<<2)),r}function M(e){var t,n=w(e),i=new Array;for(t=0;2*t>15;--o>=0;){var u=32767&this[e],c=this[e++]>>15,l=s*u+c*a;r=((u=a*u+((32767&l)<<15)+n[i]+(1073741823&r))>>>30)+(l>>>15)+s*c+(r>>>30),n[i++]=1073741823&u}return r},y=30):"Netscape"!=i.appName?(A.prototype.am=function(e,t,n,i,r,o){for(;--o>=0;){var a=t*this[e++]+n[i]+r;r=Math.floor(a/67108864),n[i++]=67108863&a}return r},y=26):(A.prototype.am=function(e,t,n,i,r,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],c=this[e++]>>14,l=s*u+c*a;r=((u=a*u+((16383&l)<<14)+n[i]+r)>>28)+(l>>14)+s*c,n[i++]=268435455&u}return r},y=28),A.prototype.DB=y,A.prototype.DM=(1<>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function O(e){this.m=e}function x(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function F(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function H(){}function q(e){return e}function j(e){this.r2=k(),this.q3=k(),A.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}O.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},O.prototype.revert=function(e){return e},O.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},O.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},O.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},x.prototype.convert=function(e){var t=k();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(A.ZERO)>0&&this.m.subTo(t,t),t},x.prototype.revert=function(e){var t=k();return e.copyTo(t),this.reduce(t),t},x.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,i,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},x.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},x.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},A.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},A.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},A.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var i=e.length,r=!1,o=0;--i>=0;){var a=8==n?255&e[i]:L(e,i);a<0?"-"==e.charAt(i)&&(r=!0):(r=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;)--this.t},A.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},A.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+a+1]=this[n]>>r|s,s=(this[n]&o)<=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},A.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var i=e%this.DB,r=this.DB-i,o=(1<>i;for(var a=n+1;a>i;i>0&&(t[this.t-n-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;i+=this.s}else{for(i+=this.s;n>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[n++]=this.DV+i:i>0&&(t[n++]=i),t.t=n,t.clamp()},A.prototype.multiplyTo=function(e,t){var n=this.abs(),i=e.abs(),r=n.t;for(t.t=r+i.t;--r>=0;)t[r]=0;for(r=0;r=0;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},A.prototype.divRemTo=function(e,t,n){var i=e.abs();if(!(i.t<=0)){var r=this.abs();if(r.t0?(i.lShiftTo(u,o),r.lShiftTo(u,n)):(i.copyTo(o),r.copyTo(n));var c=o.t,l=o[c-1];if(0!=l){var h=l*(1<1?o[c-2]>>this.F2:0),d=this.FV/h,f=(1<=0&&(n[n.t++]=1,n.subTo(v,n)),A.ONE.dlShiftTo(c,v),v.subTo(o,o);o.t=0;){var y=n[--g]==l?this.DM:Math.floor(n[g]*d+(n[g-1]+p)*f);if((n[g]+=o.am(0,y,n,m,0,c))0&&n.rShiftTo(u,n),a<0&&A.ZERO.subTo(n,n)}}},A.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},A.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},A.prototype.exp=function(e,t){if(e>4294967295||e<1)return A.ONE;var n=k(),i=k(),r=t.convert(this),o=R(e)-1;for(r.copyTo(n);--o>=0;)if(t.sqrTo(n,i),(e&1<0)t.mulTo(i,r,n);else{var a=n;n=i,i=a}return t.revert(n)},A.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,i=(1<0)for(s>s)>0&&(r=!0,o=E(n));a>=0;)s>(s+=this.DB-t)):(n=this[a]>>(s-=t)&i,s<=0&&(s+=this.DB,--a)),n>0&&(r=!0),r&&(o+=E(n));return r?o:"0"},A.prototype.negate=function(){var e=k();return A.ZERO.subTo(this,e),e},A.prototype.abs=function(){return this.s<0?this.negate():this},A.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},A.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+R(this[this.t-1]^this.s&this.DM)},A.prototype.mod=function(e){var t=k();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(A.ZERO)>0&&e.subTo(t,t),t},A.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new O(t):new x(t),this.exp(e,n)},A.ZERO=z(0),A.ONE=z(1),H.prototype.convert=q,H.prototype.revert=q,H.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},H.prototype.sqrTo=function(e,t){e.squareTo(t)},j.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=k();return e.copyTo(t),this.reduce(t),t},j.prototype.revert=function(e){return e},j.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},j.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},j.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var Y,W,U,K=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],V=(1<<26)/K[K.length-1];function X(){this.i=0,this.j=0,this.S=new Array}function G(){!function(e){W[U++]^=255&e,W[U++]^=e>>8&255,W[U++]^=e>>16&255,W[U++]^=e>>24&255,U>=256&&(U-=256)}((new Date).getTime())}if(A.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},A.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),i=z(n),r=k(),o=k(),a="";for(this.divRemTo(i,r,o);r.signum()>0;)a=(n+o.intValue()).toString(e).substr(1)+a,r.divRemTo(i,r,o);return o.intValue().toString(e)+a},A.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),i=Math.pow(t,n),r=!1,o=0,a=0,s=0;s=n&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(a,0)),r&&A.ZERO.subTo(this,this)},A.prototype.fromNumber=function(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(A.ONE.shiftLeft(e-1),P,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(A.ONE.shiftLeft(e-1),this);else{var i=new Array,r=7&e;i.length=1+(e>>3),t.nextBytes(i),r>0?i[0]&=(1<>=this.DB;if(e.t>=this.DB;i+=this.s}else{for(i+=this.s;n>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[n++]=i:i<-1&&(t[n++]=this.DV+i),t.t=n,t.clamp()},A.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},A.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},A.prototype.multiplyLowerTo=function(e,t,n){var i,r=Math.min(this.t+e.t,t);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(i=n.t-this.t;r=0;)n[i]=0;for(i=Math.max(t-this.t,0);i0)if(0==t)n=this[0]%e;else for(var i=this.t-1;i>=0;--i)n=(t*n+this[i])%e;return n},A.prototype.millerRabin=function(e){var t=this.subtract(A.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var i=t.shiftRight(n);(e=e+1>>1)>K.length&&(e=K.length);for(var r=k(),o=0;o>24},A.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},A.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},A.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var n,i=this.DB-e*this.DB%8,r=0;if(e-- >0)for(i>i)!=(this.s&this.DM)>>i&&(t[r++]=n|this.s<=0;)i<8?(n=(this[e]&(1<>(i+=this.DB-8)):(n=this[e]>>(i-=8)&255,i<=0&&(i+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==r&&(128&this.s)!=(128&n)&&++r,(r>0||n!=this.s)&&(t[r++]=n);return t},A.prototype.equals=function(e){return 0==this.compareTo(e)},A.prototype.min=function(e){return this.compareTo(e)<0?this:e},A.prototype.max=function(e){return this.compareTo(e)>0?this:e},A.prototype.and=function(e){var t=k();return this.bitwiseTo(e,D,t),t},A.prototype.or=function(e){var t=k();return this.bitwiseTo(e,P,t),t},A.prototype.xor=function(e){var t=k();return this.bitwiseTo(e,N,t),t},A.prototype.andNot=function(e){var t=k();return this.bitwiseTo(e,I,t),t},A.prototype.not=function(){for(var e=k(),t=0;t=this.t?0!=this.s:0!=(this[t]&1<1){var l=k();for(i.sqrTo(a[1],l);s<=c;)a[s]=k(),i.mulTo(l,a[s-2],a[s]),s+=2}var h,d,f=e.t-1,p=!0,g=k();for(r=R(e[f])-1;f>=0;){for(r>=u?h=e[f]>>r-u&c:(h=(e[f]&(1<0&&(h|=e[f-1]>>this.DB+r-u)),s=n;0==(1&h);)h>>=1,--s;if((r-=s)<0&&(r+=this.DB,--f),p)a[h].copyTo(o),p=!1;else{for(;s>1;)i.sqrTo(o,g),i.sqrTo(g,o),s-=2;s>0?i.sqrTo(o,g):(d=o,o=g,g=d),i.mulTo(g,a[h],o)}for(;f>=0&&0==(e[f]&1<=0?(n.subTo(i,n),t&&r.subTo(a,r),o.subTo(s,o)):(i.subTo(n,i),t&&a.subTo(r,a),s.subTo(o,s))}return 0!=i.compareTo(A.ONE)?A.ZERO:s.compareTo(e)>=0?s.subtract(e):s.signum()<0?(s.addTo(e,s),s.signum()<0?s.add(e):s):s},A.prototype.pow=function(e){return this.exp(e,new H)},A.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var i=t;t=n,n=i}var r=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(r0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(r=t.getLowestSetBit())>0&&t.rShiftTo(r,t),(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},A.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=K[K.length-1]){for(t=0;t>>8,W[U++]=255&J;U=0,G()}function ee(){if(null==Y){for(G(),(Y=new X).init(W),U=0;U>24,(16711680&r)>>16,(65280&r)>>8,255&r]))),r+=1;return i}function re(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function oe(e,t){this.x=t,this.q=e}function ae(e,t,n,i){this.curve=e,this.x=t,this.y=n,this.z=null==i?A.ONE:i,this.zinv=null}function se(e,t,n){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(n),this.infinity=new ae(this,null,null)}te.prototype.nextBytes=function(e){var t;for(t=0;t0&&t.length>0))throw"Invalid RSA public key";this.n=ne(e,16),this.e=parseInt(t,16)}},re.prototype.encrypt=function(e){var t=function(e,t){if(t=0&&t>0;){var r=e.charCodeAt(i--);r<128?n[--t]=r:r>127&&r<2048?(n[--t]=63&r|128,n[--t]=r>>6|192):(n[--t]=63&r|128,n[--t]=r>>6&63|128,n[--t]=r>>12|224)}n[--t]=0;for(var o=new te,a=new Array;t>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new A(n)}(e,this.n.bitLength()+7>>3);if(null==t)return null;var n=this.doPublic(t);if(null==n)return null;var i=n.toString(16);return 0==(1&i.length)?i:"0"+i},re.prototype.encryptOAEP=function(e,t,n){var i=function(e,t,n,i){var r=ce.crypto.MessageDigest,o=ce.crypto.Util,a=null;if(n||(n="sha1"),"string"==typeof n&&(a=r.getCanonicalAlgName(n),i=r.getHashLength(a),n=function(e){return Ae(o.hashHex(ke(e),a))}),e.length+2*i+2>t)throw"Message too long for RSA";var s,u="";for(s=0;s>3,t,n);if(null==i)return null;var r=this.doPublic(i);if(null==r)return null;var o=r.toString(16);return 0==(1&o.length)?o:"0"+o},re.prototype.type="RSA",oe.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)},oe.prototype.toBigInteger=function(){return this.x},oe.prototype.negate=function(){return new oe(this.q,this.x.negate().mod(this.q))},oe.prototype.add=function(e){return new oe(this.q,this.x.add(e.toBigInteger()).mod(this.q))},oe.prototype.subtract=function(e){return new oe(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))},oe.prototype.multiply=function(e){return new oe(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))},oe.prototype.square=function(){return new oe(this.q,this.x.square().mod(this.q))},oe.prototype.divide=function(e){return new oe(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))},ae.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ae.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ae.prototype.equals=function(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(A.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(A.ZERO))},ae.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(A.ZERO)&&!this.y.toBigInteger().equals(A.ZERO)},ae.prototype.negate=function(){return new ae(this.curve,this.x,this.y.negate(),this.z)},ae.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),n=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(A.ZERO.equals(n))return A.ZERO.equals(t)?this.twice():this.curve.getInfinity();var i=new A("3"),r=this.x.toBigInteger(),o=this.y.toBigInteger(),a=(e.x.toBigInteger(),e.y.toBigInteger(),n.square()),s=a.multiply(n),u=r.multiply(a),c=t.square().multiply(this.z),l=c.subtract(u.shiftLeft(1)).multiply(e.z).subtract(s).multiply(n).mod(this.curve.q),h=u.multiply(i).multiply(t).subtract(o.multiply(s)).subtract(c.multiply(t)).multiply(e.z).add(t.multiply(s)).mod(this.curve.q),d=s.multiply(this.z).multiply(e.z).mod(this.curve.q);return new ae(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(h),d)},ae.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=new A("3"),t=this.x.toBigInteger(),n=this.y.toBigInteger(),i=n.multiply(this.z),r=i.multiply(n).mod(this.curve.q),o=this.curve.a.toBigInteger(),a=t.square().multiply(e);A.ZERO.equals(o)||(a=a.add(this.z.square().multiply(o)));var s=(a=a.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(r)).shiftLeft(1).multiply(i).mod(this.curve.q),u=a.multiply(e).multiply(t).subtract(r.shiftLeft(1)).shiftLeft(2).multiply(r).subtract(a.square().multiply(a)).mod(this.curve.q),c=i.square().multiply(i).shiftLeft(3).mod(this.curve.q);return new ae(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(u),c)},ae.prototype.multiply=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,i=n.multiply(new A("3")),r=this.negate(),o=this;for(t=i.bitLength()-2;t>0;--t){o=o.twice();var a=i.testBit(t);a!=n.testBit(t)&&(o=o.add(a?this:r))}return o},ae.prototype.multiplyTwo=function(e,t,n){var i;i=e.bitLength()>n.bitLength()?e.bitLength()-1:n.bitLength()-1;for(var r=this.curve.getInfinity(),o=this.add(t);i>=0;)r=r.twice(),e.testBit(i)?r=n.testBit(i)?r.add(o):r.add(this):n.testBit(i)&&(r=r.add(t)),--i;return r},se.prototype.getQ=function(){return this.q},se.prototype.getA=function(){return this.a},se.prototype.getB=function(){return this.b},se.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},se.prototype.getInfinity=function(){return this.infinity},se.prototype.fromBigInteger=function(e){return new oe(this.q,e)},se.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var t=(e.length-2)/2,n=e.substr(2,t),i=e.substr(t+2,t);return new ae(this,this.fromBigInteger(new A(n,16)),this.fromBigInteger(new A(i,16)));default:return null}},oe.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},ae.prototype.getEncoded=function(e){var t=function(e,t){var n=e.toByteArrayUnsigned();if(tn.length;)n.unshift(0);return n},n=this.getX().toBigInteger(),i=this.getY().toBigInteger(),r=t(n,32);return e?i.isEven()?r.unshift(2):r.unshift(3):(r.unshift(4),r=r.concat(t(i,32))),r},ae.decodeFrom=function(e,t){var n=t.length-1,i=t.slice(1,1+n/2),r=t.slice(1+n/2,1+n);i.unshift(0),r.unshift(0);var o=new A(i),a=new A(r);return new ae(e,e.fromBigInteger(o),e.fromBigInteger(a))},ae.decodeFromHex=function(e,t){t.substr(0,2);var n=t.length-2,i=t.substr(2,n/2),r=t.substr(2+n/2,n/2),o=new A(i,16),a=new A(r,16);return new ae(e,e.fromBigInteger(o),e.fromBigInteger(a))},ae.prototype.add2D=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.x.equals(e.x))return this.y.equals(e.y)?this.twice():this.curve.getInfinity();var t=e.x.subtract(this.x),n=e.y.subtract(this.y).divide(t),i=n.square().subtract(this.x).subtract(e.x),r=n.multiply(this.x.subtract(i)).subtract(this.y);return new ae(this.curve,i,r)},ae.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=this.curve.fromBigInteger(A.valueOf(2)),t=this.curve.fromBigInteger(A.valueOf(3)),n=this.x.square().multiply(t).add(this.curve.a).divide(this.y.multiply(e)),i=n.square().subtract(this.x.multiply(e)),r=n.multiply(this.x.subtract(i)).subtract(this.y);return new ae(this.curve,i,r)},ae.prototype.multiply2D=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,i=n.multiply(new A("3")),r=this.negate(),o=this;for(t=i.bitLength()-2;t>0;--t){o=o.twice();var a=i.testBit(t);a!=n.testBit(t)&&(o=o.add2D(a?this:r))}return o},ae.prototype.isOnCurve=function(){var e=this.getX().toBigInteger(),t=this.getY().toBigInteger(),n=this.curve.getA().toBigInteger(),i=this.curve.getB().toBigInteger(),r=this.curve.getQ(),o=t.multiply(t).mod(r),a=e.multiply(e).multiply(e).add(n.multiply(e)).add(i).mod(r);return o.equals(a)},ae.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},ae.prototype.validate=function(){var e=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var t=this.getX().toBigInteger(),n=this.getY().toBigInteger();if(t.compareTo(A.ONE)<0||t.compareTo(e.subtract(A.ONE))>0)throw new Error("x coordinate out of bounds");if(n.compareTo(A.ONE)<0||n.compareTo(e.subtract(A.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(e).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ue=function(){var e=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),t=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),i={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function r(e,t,n){return t?i[t]:String.fromCharCode(parseInt(n,16))}var o=new String(""),a=Object.hasOwnProperty;return function(i,s){var u,c,l=i.match(e),h=l[0],d=!1;"{"===h?u={}:"["===h?u=[]:(u=[],d=!0);for(var f=[u],p=1-d,g=l.length;p=0;)delete r[o[l]]}return s.call(t,i,r)}({"":u},"")),u}}();void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.asn1&&ce.asn1||(ce.asn1={}),ce.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1).length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var i="",r=0;r15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+n).toString(16)+t},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ce.asn1.DERAbstractString=function(e){ce.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=we(this.s).toLowerCase()},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},o.lang.extend(ce.asn1.DERAbstractString,ce.asn1.ASN1Object),ce.asn1.DERAbstractTime=function(e){ce.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){return utc=e.getTime()+6e4*e.getTimezoneOffset(),new Date(utc)},this.formatDate=function(e,t,n){var i=this.zeroPadding,r=this.localDateToUTC(e),o=String(r.getFullYear());"utc"==t&&(o=o.substr(2,2));var a=o+i(String(r.getMonth()+1),2)+i(String(r.getDate()),2)+i(String(r.getHours()),2)+i(String(r.getMinutes()),2)+i(String(r.getSeconds()),2);if(!0===n){var s=r.getMilliseconds();if(0!=s){var u=i(String(s),3);a=a+"."+(u=u.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=me(e)},this.setByDateValue=function(e,t,n,i,r,o){var a=new Date(Date.UTC(e,t-1,n,i,r,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},o.lang.extend(ce.asn1.DERAbstractTime,ce.asn1.ASN1Object),ce.asn1.DERAbstractStructured=function(e){ce.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},o.lang.extend(ce.asn1.DERAbstractStructured,ce.asn1.ASN1Object),ce.asn1.DERBoolean=function(){ce.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},o.lang.extend(ce.asn1.DERBoolean,ce.asn1.ASN1Object),ce.asn1.DERInteger=function(e){ce.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=ce.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new A(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},o.lang.extend(ce.asn1.DERInteger,ce.asn1.ASN1Object),ce.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=ce.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}ce.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7r.length&&(r=i[n]);return(e=e.replace(r,"::")).slice(1,-1)}function Ne(e){var t="malformed hex value";if(!e.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw t;if(8!=e.length)return 32==e.length?Pe(e):e;try{return parseInt(e.substr(0,2),16)+"."+parseInt(e.substr(2,2),16)+"."+parseInt(e.substr(4,2),16)+"."+parseInt(e.substr(6,2),16)}catch(e){throw t}}function Ie(e){for(var t=encodeURIComponent(e),n="",i=0;i"7"?"00"+e:e}de.getLblen=function(e,t){if("8"!=e.substr(t+2,1))return 1;var n=parseInt(e.substr(t+3,1));return 0==n?-1:0=2*o)break;if(s>=200)break;i.push(u),a=u,s++}return i},de.getNthChildIdx=function(e,t,n){return de.getChildIdx(e,t)[n]},de.getIdxbyList=function(e,t,n,i){var r,o,a=de;if(0==n.length){if(void 0!==i&&e.substr(t,2)!==i)throw"checking tag doesn't match: "+e.substr(t,2)+"!="+i;return t}return r=n.shift(),o=a.getChildIdx(e,t),a.getIdxbyList(e,o[r],n,i)},de.getTLVbyList=function(e,t,n,i){var r=de,o=r.getIdxbyList(e,t,n);if(void 0===o)throw"can't find nthList object";if(void 0!==i&&e.substr(o,2)!=i)throw"checking tag doesn't match: "+e.substr(o,2)+"!="+i;return r.getTLV(e,o)},de.getVbyList=function(e,t,n,i,r){var o,a,s=de;if(void 0===(o=s.getIdxbyList(e,t,n,i)))throw"can't find nthList object";return a=s.getV(e,o),!0===r&&(a=a.substr(2)),a},de.hextooidstr=function(e){var t=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},n=[],i=e.substr(0,2),r=parseInt(i,16);n[0]=new String(Math.floor(r/40)),n[1]=new String(r%40);for(var o=e.substr(2),a=[],s=0;s0&&(l=l+"."+u.join(".")),l},de.dump=function(e,t,n,i){var r=de,o=r.getV,a=r.dump,s=r.getChildIdx,u=e;e instanceof ce.asn1.ASN1Object&&(u=e.getEncodedHex());var c=function(e,t){return e.length<=2*t?e:e.substr(0,t)+"..(total "+e.length/2+"bytes).."+e.substr(e.length-t,t)};void 0===t&&(t={ommit_long_octet:32}),void 0===n&&(n=0),void 0===i&&(i="");var l=t.ommit_long_octet;if("01"==u.substr(n,2))return"00"==(h=o(u,n))?i+"BOOLEAN FALSE\n":i+"BOOLEAN TRUE\n";if("02"==u.substr(n,2))return i+"INTEGER "+c(h=o(u,n),l)+"\n";if("03"==u.substr(n,2))return i+"BITSTRING "+c(h=o(u,n),l)+"\n";if("04"==u.substr(n,2)){var h=o(u,n);return r.isASN1HEX(h)?(M=i+"OCTETSTRING, encapsulates\n")+a(h,t,0,i+" "):i+"OCTETSTRING "+c(h,l)+"\n"}if("05"==u.substr(n,2))return i+"NULL\n";if("06"==u.substr(n,2)){var d=o(u,n),f=ce.asn1.ASN1Util.oidHexToInt(d),p=ce.asn1.x509.OID.oid2name(f),g=f.replace(/\./g," ");return""!=p?i+"ObjectIdentifier "+p+" ("+g+")\n":i+"ObjectIdentifier ("+g+")\n"}if("0c"==u.substr(n,2))return i+"UTF8String '"+Me(o(u,n))+"'\n";if("13"==u.substr(n,2))return i+"PrintableString '"+Me(o(u,n))+"'\n";if("14"==u.substr(n,2))return i+"TeletexString '"+Me(o(u,n))+"'\n";if("16"==u.substr(n,2))return i+"IA5String '"+Me(o(u,n))+"'\n";if("17"==u.substr(n,2))return i+"UTCTime "+Me(o(u,n))+"\n";if("18"==u.substr(n,2))return i+"GeneralizedTime "+Me(o(u,n))+"\n";if("30"==u.substr(n,2)){if("3000"==u.substr(n,4))return i+"SEQUENCE {}\n";M=i+"SEQUENCE\n";var m=t;if((2==(_=s(u,n)).length||3==_.length)&&"06"==u.substr(_[0],2)&&"04"==u.substr(_[_.length-1],2)){p=r.oidname(o(u,_[0]));var v=JSON.parse(JSON.stringify(t));v.x509ExtName=p,m=v}for(var y=0;y<_.length;y++)M+=a(u,m,_[y],i+" ");return M}if("31"==u.substr(n,2)){M=i+"SET\n";var _=s(u,n);for(y=0;y<_.length;y++)M+=a(u,t,_[y],i+" ");return M}var b=parseInt(u.substr(n,2),16);if(0!=(128&b)){var w=31&b;if(0!=(32&b)){var M=i+"["+w+"]\n";for(_=s(u,n),y=0;y<_.length;y++)M+=a(u,t,_[y],i+" ");return M}return"68747470"==(h=o(u,n)).substr(0,8)&&(h=Me(h)),"subjectAltName"===t.x509ExtName&&2==w&&(h=Me(h)),i+"["+w+"] "+h+"\n"}return i+"UNKNOWN("+u.substr(n,2)+") "+o(u,n)+"\n"},de.isASN1HEX=function(e){var t=de;if(e.length%2==1)return!1;var n=t.getVblen(e,0),i=e.substr(0,2),r=t.getL(e,0);return e.length-i.length-r.length==2*n},de.oidname=function(e){var t=ce.asn1;ce.lang.String.isHex(e)&&(e=t.ASN1Util.oidHexToInt(e));var n=t.x509.OID.oid2name(e);return""===n&&(n=e),n},void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.lang&&ce.lang||(ce.lang={}),ce.lang.String=function(){},"function"==typeof e?(t.utf8tob64u=le=function(t){return ve(new e(t,"utf8").toString("base64"))},t.b64utoutf8=he=function(t){return new e(ye(t),"base64").toString("utf8")}):(t.utf8tob64u=le=function(e){return _e(Oe(Ie(e)))},t.b64utoutf8=he=function(e){return decodeURIComponent(xe(be(e)))}),ce.lang.String.isInteger=function(e){return!!e.match(/^[0-9]+$/)||!!e.match(/^-[0-9]+$/)},ce.lang.String.isHex=function(e){return!(e.length%2!=0||!e.match(/^[0-9a-f]+$/)&&!e.match(/^[0-9A-F]+$/))},ce.lang.String.isBase64=function(e){return!(!(e=e.replace(/\s+/g,"")).match(/^[0-9A-Za-z+\/]+={0,3}$/)||e.length%4!=0)},ce.lang.String.isBase64URL=function(e){return!e.match(/[+/=]/)&&(e=ye(e),ce.lang.String.isBase64(e))},ce.lang.String.isIntegerArray=function(e){return!!(e=e.replace(/\s+/g,"")).match(/^\[[0-9,]+\]$/)},void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.crypto&&ce.crypto||(ce.crypto={}),ce.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:v.algo.MD5,sha1:v.algo.SHA1,sha224:v.algo.SHA224,sha256:v.algo.SHA256,sha384:v.algo.SHA384,sha512:v.algo.SHA512,ripemd160:v.algo.RIPEMD160},this.getDigestInfoHex=function(e,t){if(void 0===this.DIGESTINFOHEAD[t])throw"alg not supported in Util.DIGESTINFOHEAD: "+t;return this.DIGESTINFOHEAD[t]+e},this.getPaddedDigestInfoHex=function(e,t,n){var i=this.getDigestInfoHex(e,t),r=n/4;if(i.length+22>r)throw"key is too short for SigAlg: keylen="+n+","+t;for(var o="0001",a="00"+i,s="",u=r-o.length-a.length,c=0;c=0)return!1;if(n.compareTo(A.ONE)<0||n.compareTo(r)>=0)return!1;var a=n.modInverse(r),s=e.multiply(a).mod(r),u=t.multiply(a).mod(r);return o.multiply(s).add(i.multiply(u)).getX().toBigInteger().mod(r).equals(t)},this.serializeSig=function(e,t){var n=e.toByteArraySigned(),i=t.toByteArraySigned(),r=[];return r.push(2),r.push(n.length),(r=r.concat(n)).push(2),r.push(i.length),(r=r.concat(i)).unshift(r.length),r.unshift(48),r},this.parseSig=function(e){var t;if(48!=e[0])throw new Error("Signature not a valid DERSequence");if(2!=e[t=2])throw new Error("First element in signature must be a DERInteger");var n=e.slice(t+2,t+2+e[t+1]);if(2!=e[t+=2+e[t+1]])throw new Error("Second element in signature must be a DERInteger");var i=e.slice(t+2,t+2+e[t+1]);return t+=2+e[t+1],{r:A.fromByteArrayUnsigned(n),s:A.fromByteArrayUnsigned(i)}},this.parseSigCompact=function(e){if(65!==e.length)throw"Signature has the wrong length";var t=e[0]-27;if(t<0||t>7)throw"Invalid signature type";var n=this.ecparams.n;return{r:A.fromByteArrayUnsigned(e.slice(1,33)).mod(n),s:A.fromByteArrayUnsigned(e.slice(33,65)).mod(n),i:t}},this.readPKCS5PrvKeyHex=function(e){var t,n,i,r=ce.crypto.ECDSA.getName,o=de.getVbyList;if(!1===de.isASN1HEX(e))throw"not ASN.1 hex string";try{t=o(e,0,[2,0],"06"),n=o(e,0,[1],"04");try{i=o(e,0,[3,0],"03").substr(2)}catch(e){}}catch(e){throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=r(t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(e){var t,n,i,r=ce.crypto.ECDSA.getName,o=de.getVbyList;if(!1===de.isASN1HEX(e))throw"not ASN.1 hex string";try{o(e,0,[1,0],"06"),t=o(e,0,[1,1],"06"),n=o(e,0,[2,0,1],"04");try{i=o(e,0,[2,0,2,0],"03").substr(2)}catch(e){}}catch(e){throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=r(t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PubKeyHex=function(e){var t,n,i=ce.crypto.ECDSA.getName,r=de.getVbyList;if(!1===de.isASN1HEX(e))throw"not ASN.1 hex string";try{r(e,0,[0,0],"06"),t=r(e,0,[0,1],"06"),n=r(e,0,[1],"03").substr(2)}catch(e){throw"malformed PKCS#8 ECC public key"}if(this.curveName=i(t),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},this.readCertPubKeyHex=function(e,t){5!==t&&(t=6);var n,i,r=ce.crypto.ECDSA.getName,o=de.getVbyList;if(!1===de.isASN1HEX(e))throw"not ASN.1 hex string";try{n=o(e,0,[0,t,0,1],"06"),i=o(e,0,[0,t,1],"03").substr(2)}catch(e){throw"malformed X.509 certificate ECC public key"}if(this.curveName=r(n),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},void 0!==e&&void 0!==e.curve&&(this.curveName=e.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==e&&(void 0!==e.prv&&this.setPrivateKeyHex(e.prv),void 0!==e.pub&&this.setPublicKeyHex(e.pub))},ce.crypto.ECDSA.parseSigHex=function(e){var t=ce.crypto.ECDSA.parseSigHexInHexRS(e);return{r:new A(t.r,16),s:new A(t.s,16)}},ce.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=de.getChildIdx,n=de.getV;if("30"!=e.substr(0,2))throw"signature is not a ASN.1 sequence";var i=t(e,0);if(2!=i.length)throw"number of signature ASN.1 sequence elements seem wrong";var r=i[0],o=i[1];if("02"!=e.substr(r,2))throw"1st item of sequene of signature is not ASN.1 integer";if("02"!=e.substr(o,2))throw"2nd item of sequene of signature is not ASN.1 integer";return{r:n(e,r),s:n(e,o)}},ce.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=ce.crypto.ECDSA.parseSigHexInHexRS(e),n=t.r,i=t.s;if("00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),"00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),n.length%32==30&&(n="00"+n),i.length%32==30&&(i="00"+i),n.length%32!=0)throw"unknown ECDSA sig r length error";if(i.length%32!=0)throw"unknown ECDSA sig s length error";return n+i},ce.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var t=e.substr(0,e.length/2),n=e.substr(e.length/2);return ce.crypto.ECDSA.hexRSSigToASN1Sig(t,n)},ce.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var n=new A(e,16),i=new A(t,16);return ce.crypto.ECDSA.biRSSigToASN1Sig(n,i)},ce.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var n=ce.asn1,i=new n.DERInteger({bigint:e}),r=new n.DERInteger({bigint:t});return new n.DERSequence({array:[i,r]}).getEncodedHex()},ce.crypto.ECDSA.getName=function(e){return"2a8648ce3d030107"===e?"secp256r1":"2b8104000a"===e?"secp256k1":"2b81040022"===e?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(e)?"secp256r1":-1!=="|secp256k1|".indexOf(e)?"secp256k1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(e)?"secp384r1":null},void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.crypto&&ce.crypto||(ce.crypto={}),ce.crypto.ECParameterDB=new function(){var e={},t={};function n(e){return new A(e,16)}this.getByName=function(n){var i=n;if(void 0!==t[i]&&(i=t[n]),void 0!==e[i])return e[i];throw"unregistered EC curve name: "+i},this.regist=function(i,r,o,a,s,u,c,l,h,d,f,p){e[i]={};var g=n(o),m=n(a),v=n(s),y=n(u),_=n(c),b=new se(g,m,v),w=b.decodePointHex("04"+l+h);e[i].name=i,e[i].keylen=r,e[i].curve=b,e[i].G=w,e[i].n=y,e[i].h=_,e[i].oid=f,e[i].info=p;for(var M=0;M=2*s)break}var h={};return h.keyhex=u.substr(0,2*r[e].keylen),h.ivhex=u.substr(2*r[e].keylen,2*r[e].ivlen),h},s=function(e,t,n,i){var o=v.enc.Base64.parse(e),a=v.enc.Hex.stringify(o);return(0,r[t].proc)(a,n,i)};return{version:"1.0.0",parsePKCS5PEM:function(e){return o(e)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(e,t,n){return a(e,t,n)},decryptKeyB64:function(e,t,n,i){return s(e,t,n,i)},getDecryptedKeyHex:function(e,t){var n=o(e),i=n.cipher,r=n.ivsalt,u=n.data,c=a(i,t,r).keyhex;return s(u,i,c,r)},getEncryptedPKCS5PEMFromPrvKeyHex:function(e,t,n,i,o){var s="";if(void 0!==i&&null!=i||(i="AES-256-CBC"),void 0===r[i])throw"KEYUTIL unsupported algorithm: "+i;return void 0!==o&&null!=o||(o=function(e){var t=v.lib.WordArray.random(e);return v.enc.Hex.stringify(t)}(r[i].ivlen).toUpperCase()),s="-----BEGIN "+e+" PRIVATE KEY-----\r\n",s+="Proc-Type: 4,ENCRYPTED\r\n",s+="DEK-Info: "+i+","+o+"\r\n",s+="\r\n",(s+=function(e,t,n,i){return(0,r[t].eproc)(e,n,i)}(t,i,a(i,n,o).keyhex,o).replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+e+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(t){var n=de.getChildIdx,i=de.getV,r={},o=n(t,0);if(2!=o.length)throw"malformed format: SEQUENCE(0).items != 2: "+o.length;r.ciphertext=i(t,o[1]);var a=n(t,o[0]);if(2!=a.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+a.length;if("2a864886f70d01050d"!=i(t,a[0]))throw"this only supports pkcs5PBES2";var s=n(t,a[1]);if(2!=a.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+s.length;var u=n(t,s[1]);if(2!=u.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+u.length;if("2a864886f70d0307"!=i(t,u[0]))throw"this only supports TripleDES";r.encryptionSchemeAlg="TripleDES",r.encryptionSchemeIV=i(t,u[1]);var c=n(t,s[0]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+c.length;if("2a864886f70d01050c"!=i(t,c[0]))throw"this only supports pkcs5PBKDF2";var l=n(t,c[1]);if(l.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+l.length;r.pbkdf2Salt=i(t,l[0]);var h=i(t,l[1]);try{r.pbkdf2Iter=parseInt(h,16)}catch(e){throw"malformed format pbkdf2Iter: "+h}return r},getPBKDF2KeyHexFromParam:function(e,t){var n=v.enc.Hex.parse(e.pbkdf2Salt),i=v.PBKDF2(t,n,{keySize:6,iterations:e.pbkdf2Iter});return v.enc.Hex.stringify(i)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(e,t){var n=Le(e,"ENCRYPTED PRIVATE KEY"),i=this.parseHexOfEncryptedPKCS8(n),r=Fe.getPBKDF2KeyHexFromParam(i,t),o={};o.ciphertext=v.enc.Hex.parse(i.ciphertext);var a=v.enc.Hex.parse(r),s=v.enc.Hex.parse(i.encryptionSchemeIV),u=v.TripleDES.decrypt(o,a,{iv:s});return v.enc.Hex.stringify(u)},getKeyFromEncryptedPKCS8PEM:function(e,t){var n=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(e,t);return this.getKeyFromPlainPrivatePKCS8Hex(n)},parsePlainPrivatePKCS8Hex:function(e){var t=de,n=t.getChildIdx,i=t.getV,r={algparam:null};if("30"!=e.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var o=n(e,0);if(3!=o.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=e.substr(o[1],2))throw"malformed PKCS8 private key(code:003)";var a=n(e,o[1]);if(2!=a.length)throw"malformed PKCS8 private key(code:004)";if("06"!=e.substr(a[0],2))throw"malformed PKCS8 private key(code:005)";if(r.algoid=i(e,a[0]),"06"==e.substr(a[1],2)&&(r.algparam=i(e,a[1])),"04"!=e.substr(o[2],2))throw"malformed PKCS8 private key(code:006)";return r.keyidx=t.getVidx(e,o[2]),r},getKeyFromPlainPrivatePKCS8PEM:function(e){var t=Le(e,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(t)},getKeyFromPlainPrivatePKCS8Hex:function(e){var t,n=this.parsePlainPrivatePKCS8Hex(e);if("2a864886f70d010101"==n.algoid)t=new re;else if("2a8648ce380401"==n.algoid)t=new ce.crypto.DSA;else{if("2a8648ce3d0201"!=n.algoid)throw"unsupported private key algorithm";t=new ce.crypto.ECDSA}return t.readPKCS8PrvKeyHex(e),t},_getKeyFromPublicPKCS8Hex:function(e){var t,n=de.getVbyList(e,0,[0,0],"06");if("2a864886f70d010101"===n)t=new re;else if("2a8648ce380401"===n)t=new ce.crypto.DSA;else{if("2a8648ce3d0201"!==n)throw"unsupported PKCS#8 public key hex";t=new ce.crypto.ECDSA}return t.readPKCS8PubKeyHex(e),t},parsePublicRawRSAKeyHex:function(e){var t=de.getChildIdx,n=de.getV,i={};if("30"!=e.substr(0,2))throw"malformed RSA key(code:001)";var r=t(e,0);if(2!=r.length)throw"malformed RSA key(code:002)";if("02"!=e.substr(r[0],2))throw"malformed RSA key(code:003)";if(i.n=n(e,r[0]),"02"!=e.substr(r[1],2))throw"malformed RSA key(code:004)";return i.e=n(e,r[1]),i},parsePublicPKCS8Hex:function(e){var t=de,n=t.getChildIdx,i=t.getV,r={algparam:null},o=n(e,0);if(2!=o.length)throw"outer DERSequence shall have 2 elements: "+o.length;var a=o[0];if("30"!=e.substr(a,2))throw"malformed PKCS8 public key(code:001)";var s=n(e,a);if(2!=s.length)throw"malformed PKCS8 public key(code:002)";if("06"!=e.substr(s[0],2))throw"malformed PKCS8 public key(code:003)";if(r.algoid=i(e,s[0]),"06"==e.substr(s[1],2)?r.algparam=i(e,s[1]):"30"==e.substr(s[1],2)&&(r.algparam={},r.algparam.p=t.getVbyList(e,s[1],[0],"02"),r.algparam.q=t.getVbyList(e,s[1],[1],"02"),r.algparam.g=t.getVbyList(e,s[1],[2],"02")),"03"!=e.substr(o[1],2))throw"malformed PKCS8 public key(code:004)";return r.key=i(e,o[1]).substr(2),r}}}();Fe.getKey=function(e,t,n){var i,r=(v=de).getChildIdx,o=v.getVbyList,a=ce.crypto,s=a.ECDSA,u=a.DSA,c=re,l=Le,h=Fe;if(void 0!==c&&e instanceof c)return e;if(void 0!==s&&e instanceof s)return e;if(void 0!==u&&e instanceof u)return e;if(void 0!==e.curve&&void 0!==e.xy&&void 0===e.d)return new s({pub:e.xy,curve:e.curve});if(void 0!==e.curve&&void 0!==e.d)return new s({prv:e.d,curve:e.curve});if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(L=new c).setPublic(e.n,e.e),L;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.co&&void 0===e.qi)return(L=new c).setPrivateEx(e.n,e.e,e.d,e.p,e.q,e.dp,e.dq,e.co),L;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0===e.p)return(L=new c).setPrivate(e.n,e.e,e.d),L;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0===e.x)return(L=new u).setPublic(e.p,e.q,e.g,e.y),L;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0!==e.x)return(L=new u).setPrivate(e.p,e.q,e.g,e.y,e.x),L;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(L=new c).setPublic(be(e.n),be(e.e)),L;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.qi)return(L=new c).setPrivateEx(be(e.n),be(e.e),be(e.d),be(e.p),be(e.q),be(e.dp),be(e.dq),be(e.qi)),L;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d)return(L=new c).setPrivate(be(e.n),be(e.e),be(e.d)),L;if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0===e.d){var d=(E=new s({curve:e.crv})).ecparams.keylen/4,f="04"+("0000000000"+be(e.x)).slice(-d)+("0000000000"+be(e.y)).slice(-d);return E.setPublicKeyHex(f),E}if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0!==e.d){d=(E=new s({curve:e.crv})).ecparams.keylen/4,f="04"+("0000000000"+be(e.x)).slice(-d)+("0000000000"+be(e.y)).slice(-d);var p=("0000000000"+be(e.d)).slice(-d);return E.setPublicKeyHex(f),E.setPrivateKeyHex(p),E}if("pkcs5prv"===n){var g,m=e,v=de;if(9===(g=r(m,0)).length)(L=new c).readPKCS5PrvKeyHex(m);else if(6===g.length)(L=new u).readPKCS5PrvKeyHex(m);else{if(!(g.length>2&&"04"===m.substr(g[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(L=new s).readPKCS5PrvKeyHex(m)}return L}if("pkcs8prv"===n)return h.getKeyFromPlainPrivatePKCS8Hex(e);if("pkcs8pub"===n)return h._getKeyFromPublicPKCS8Hex(e);if("x509pub"===n)return We.getPublicKeyFromCertHex(e);if(-1!=e.indexOf("-END CERTIFICATE-",0)||-1!=e.indexOf("-END X509 CERTIFICATE-",0)||-1!=e.indexOf("-END TRUSTED CERTIFICATE-",0))return We.getPublicKeyFromCertPEM(e);if(-1!=e.indexOf("-END PUBLIC KEY-")){var y=Le(e,"PUBLIC KEY");return h._getKeyFromPublicPKCS8Hex(y)}if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var _=l(e,"RSA PRIVATE KEY");return h.getKey(_,null,"pkcs5prv")}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var b=o(i=l(e,"DSA PRIVATE KEY"),0,[1],"02"),w=o(i,0,[2],"02"),M=o(i,0,[3],"02"),k=o(i,0,[4],"02"),T=o(i,0,[5],"02");return(L=new u).setPrivate(new A(b,16),new A(w,16),new A(M,16),new A(k,16),new A(T,16)),L}if(-1!=e.indexOf("-END PRIVATE KEY-"))return h.getKeyFromPlainPrivatePKCS8PEM(e);if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var S=h.getDecryptedKeyHex(e,t),C=new re;return C.readPKCS5PrvKeyHex(S),C}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var E,L=o(i=h.getDecryptedKeyHex(e,t),0,[1],"04"),z=o(i,0,[2,0],"06"),R=o(i,0,[3,0],"03").substr(2);if(void 0===ce.crypto.OID.oidhex2name[z])throw"undefined OID(hex) in KJUR.crypto.OID: "+z;return(E=new s({curve:ce.crypto.OID.oidhex2name[z]})).setPublicKeyHex(R),E.setPrivateKeyHex(L),E.isPublic=!1,E}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED"))return b=o(i=h.getDecryptedKeyHex(e,t),0,[1],"02"),w=o(i,0,[2],"02"),M=o(i,0,[3],"02"),k=o(i,0,[4],"02"),T=o(i,0,[5],"02"),(L=new u).setPrivate(new A(b,16),new A(w,16),new A(M,16),new A(k,16),new A(T,16)),L;if(-1!=e.indexOf("-END ENCRYPTED PRIVATE KEY-"))return h.getKeyFromEncryptedPKCS8PEM(e,t);throw"not supported argument"},Fe.generateKeypair=function(e,t){if("RSA"==e){var n=t;(a=new re).generate(n,"10001"),a.isPrivate=!0,a.isPublic=!0;var i=new re,r=a.n.toString(16),o=a.e.toString(16);return i.setPublic(r,o),i.isPrivate=!1,i.isPublic=!0,(s={}).prvKeyObj=a,s.pubKeyObj=i,s}if("EC"==e){var a,s,u=t,c=new ce.crypto.ECDSA({curve:u}).generateKeyPairHex();return(a=new ce.crypto.ECDSA({curve:u})).setPublicKeyHex(c.ecpubhex),a.setPrivateKeyHex(c.ecprvhex),a.isPrivate=!0,a.isPublic=!1,(i=new ce.crypto.ECDSA({curve:u})).setPublicKeyHex(c.ecpubhex),i.isPrivate=!1,i.isPublic=!0,(s={}).prvKeyObj=a,s.pubKeyObj=i,s}throw"unknown algorithm: "+e},Fe.getPEM=function(e,t,n,i,r,o){var a=ce.asn1,s=a.DERObjectIdentifier,u=a.DERInteger,c=a.ASN1Util.newObject,l=ce.crypto,h=l.DSA,d=l.ECDSA,f=re;function p(e){return c({seq:[{int:0},{int:{bigint:e.n}},{int:e.e},{int:{bigint:e.d}},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.dmp1}},{int:{bigint:e.dmq1}},{int:{bigint:e.coeff}}]})}function g(e){return c({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a0",!0,{oid:{name:e.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]})}function m(e){return c({seq:[{int:0},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}},{int:{bigint:e.y}},{int:{bigint:e.x}}]})}if((void 0!==f&&e instanceof f||void 0!==h&&e instanceof h||void 0!==d&&e instanceof d)&&1==e.isPublic&&(void 0===t||"PKCS8PUB"==t))return Ee(w=new(0,a.x509.SubjectPublicKeyInfo)(e).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==t&&void 0!==f&&e instanceof f&&(void 0===n||null==n)&&1==e.isPrivate)return Ee(w=p(e).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==t&&void 0!==d&&e instanceof d&&(void 0===n||null==n)&&1==e.isPrivate){var y=new s({name:e.curveName}).getEncodedHex(),_=g(e).getEncodedHex(),b="";return(b+=Ee(y,"EC PARAMETERS"))+Ee(_,"EC PRIVATE KEY")}if("PKCS1PRV"==t&&void 0!==h&&e instanceof h&&(void 0===n||null==n)&&1==e.isPrivate)return Ee(w=m(e).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==t&&void 0!==f&&e instanceof f&&void 0!==n&&null!=n&&1==e.isPrivate){var w=p(e).getEncodedHex();return void 0===i&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",w,n,i,o)}if("PKCS5PRV"==t&&void 0!==d&&e instanceof d&&void 0!==n&&null!=n&&1==e.isPrivate)return w=g(e).getEncodedHex(),void 0===i&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",w,n,i,o);if("PKCS5PRV"==t&&void 0!==h&&e instanceof h&&void 0!==n&&null!=n&&1==e.isPrivate)return w=m(e).getEncodedHex(),void 0===i&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",w,n,i,o);var M=function(e,t){var n=A(e,t);return new c({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:n.pbkdf2Salt}},{int:n.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:n.encryptionSchemeIV}}]}]}]},{octstr:{hex:n.ciphertext}}]}).getEncodedHex()},A=function(e,t){var n=v.lib.WordArray.random(8),i=v.lib.WordArray.random(8),r=v.PBKDF2(t,n,{keySize:6,iterations:100}),o=v.enc.Hex.parse(e),a=v.TripleDES.encrypt(o,r,{iv:i})+"",s={};return s.ciphertext=a,s.pbkdf2Salt=v.enc.Hex.stringify(n),s.pbkdf2Iter=100,s.encryptionSchemeAlg="DES-EDE3-CBC",s.encryptionSchemeIV=v.enc.Hex.stringify(i),s};if("PKCS8PRV"==t&&null!=f&&e instanceof f&&1==e.isPrivate){var k=p(e).getEncodedHex();return w=c({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:k}}]}).getEncodedHex(),void 0===n||null==n?Ee(w,"PRIVATE KEY"):Ee(_=M(w,n),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==t&&void 0!==d&&e instanceof d&&1==e.isPrivate)return k=new c({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]}).getEncodedHex(),w=c({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:e.curveName}}]},{octstr:{hex:k}}]}).getEncodedHex(),void 0===n||null==n?Ee(w,"PRIVATE KEY"):Ee(_=M(w,n),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==t&&void 0!==h&&e instanceof h&&1==e.isPrivate)return k=new u({bigint:e.x}).getEncodedHex(),w=c({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]}]},{octstr:{hex:k}}]}).getEncodedHex(),void 0===n||null==n?Ee(w,"PRIVATE KEY"):Ee(_=M(w,n),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},Fe.getKeyFromCSRPEM=function(e){var t=Le(e,"CERTIFICATE REQUEST");return Fe.getKeyFromCSRHex(t)},Fe.getKeyFromCSRHex=function(e){var t=Fe.parseCSRHex(e);return Fe.getKey(t.p8pubkeyhex,null,"pkcs8pub")},Fe.parseCSRHex=function(e){var t=de.getChildIdx,n=de.getTLV,i={},r=e;if("30"!=r.substr(0,2))throw"malformed CSR(code:001)";var o=t(r,0);if(o.length<1)throw"malformed CSR(code:002)";if("30"!=r.substr(o[0],2))throw"malformed CSR(code:003)";var a=t(r,o[0]);if(a.length<3)throw"malformed CSR(code:004)";return i.p8pubkeyhex=n(r,a[2]),i},Fe.getJWKFromKey=function(e){var t={};if(e instanceof re&&e.isPrivate)return t.kty="RSA",t.n=_e(e.n.toString(16)),t.e=_e(e.e.toString(16)),t.d=_e(e.d.toString(16)),t.p=_e(e.p.toString(16)),t.q=_e(e.q.toString(16)),t.dp=_e(e.dmp1.toString(16)),t.dq=_e(e.dmq1.toString(16)),t.qi=_e(e.coeff.toString(16)),t;if(e instanceof re&&e.isPublic)return t.kty="RSA",t.n=_e(e.n.toString(16)),t.e=_e(e.e.toString(16)),t;if(e instanceof ce.crypto.ECDSA&&e.isPrivate){if("P-256"!==(i=e.getShortNISTPCurveName())&&"P-384"!==i)throw"unsupported curve name for JWT: "+i;var n=e.getPublicKeyXYHex();return t.kty="EC",t.crv=i,t.x=_e(n.x),t.y=_e(n.y),t.d=_e(e.prvKeyHex),t}if(e instanceof ce.crypto.ECDSA&&e.isPublic){var i;if("P-256"!==(i=e.getShortNISTPCurveName())&&"P-384"!==i)throw"unsupported curve name for JWT: "+i;return n=e.getPublicKeyXYHex(),t.kty="EC",t.crv=i,t.x=_e(n.x),t.y=_e(n.y),t}throw"not supported key object"},re.getPosArrayOfChildrenFromHex=function(e){return de.getChildIdx(e,0)},re.getHexValueArrayOfChildrenFromHex=function(e){var t,n=de.getV,i=n(e,(t=re.getPosArrayOfChildrenFromHex(e))[0]),r=n(e,t[1]),o=n(e,t[2]),a=n(e,t[3]),s=n(e,t[4]),u=n(e,t[5]),c=n(e,t[6]),l=n(e,t[7]),h=n(e,t[8]);return(t=new Array).push(i,r,o,a,s,u,c,l,h),t},re.prototype.readPrivateKeyFromPEMString=function(e){var t=Le(e),n=re.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8])},re.prototype.readPKCS5PrvKeyHex=function(e){var t=re.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},re.prototype.readPKCS8PrvKeyHex=function(e){var t,n,i,r,o,a,s,u,c=de.getVbyList;if(!1===de.isASN1HEX(e))throw"not ASN.1 hex string";try{t=c(e,0,[2,0,1],"02"),n=c(e,0,[2,0,2],"02"),i=c(e,0,[2,0,3],"02"),r=c(e,0,[2,0,4],"02"),o=c(e,0,[2,0,5],"02"),a=c(e,0,[2,0,6],"02"),s=c(e,0,[2,0,7],"02"),u=c(e,0,[2,0,8],"02")}catch(e){throw"malformed PKCS#8 plain RSA private key"}this.setPrivateEx(t,n,i,r,o,a,s,u)},re.prototype.readPKCS5PubKeyHex=function(e){var t=de,n=t.getV;if(!1===t.isASN1HEX(e))throw"keyHex is not ASN.1 hex string";var i=t.getChildIdx(e,0);if(2!==i.length||"02"!==e.substr(i[0],2)||"02"!==e.substr(i[1],2))throw"wrong hex for PKCS#5 public key";var r=n(e,i[0]),o=n(e,i[1]);this.setPublic(r,o)},re.prototype.readPKCS8PubKeyHex=function(e){var t=de;if(!1===t.isASN1HEX(e))throw"not ASN.1 hex string";if("06092a864886f70d010101"!==t.getTLVbyList(e,0,[0,0]))throw"not PKCS8 RSA public key";var n=t.getTLVbyList(e,0,[1,0]);this.readPKCS5PubKeyHex(n)},re.prototype.readCertPubKeyHex=function(e,t){var n,i;(n=new We).readCertHex(e),i=n.getPublicKeyHex(),this.readPKCS8PubKeyHex(i)};var He=new RegExp("");function qe(e,t){for(var n="",i=t/4-e.length,r=0;r>24,(16711680&r)>>16,(65280&r)>>8,255&r])))),r+=1;return i}function Ye(e){for(var t in ce.crypto.Util.DIGESTINFOHEAD){var n=ce.crypto.Util.DIGESTINFOHEAD[t],i=n.length;if(e.substring(0,i)==n)return[t,e.substring(i)]}return[]}function We(){var e=de,t=e.getChildIdx,n=e.getV,i=e.getTLV,r=e.getVbyList,o=e.getTLVbyList,a=e.getIdxbyList,s=e.getVidx,u=e.oidname,c=We,l=Le;this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==o(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return r(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){return u(r(this.hex,0,[0,2+this.foffset,0],"06"))},this.getIssuerHex=function(){return o(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return c.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return o(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return c.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var e=r(this.hex,0,[0,4+this.foffset,0]);return e=e.replace(/(..)/g,"%$1"),decodeURIComponent(e)},this.getNotAfter=function(){var e=r(this.hex,0,[0,4+this.foffset,1]);return e=e.replace(/(..)/g,"%$1"),decodeURIComponent(e)},this.getPublicKeyHex=function(){return e.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return a(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var e=this.getPublicKeyIdx();return a(this.hex,e,[1,0],"30")},this.getPublicKey=function(){return Fe.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return u(r(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return r(this.hex,0,[2],"03",!0)},this.verifySignature=function(e){var t=this.getSignatureAlgorithmName(),n=this.getSignatureValueHex(),i=o(this.hex,0,[0],"30"),r=new ce.crypto.Signature({alg:t});return r.init(e),r.updateHex(i),r.verify(n)},this.parseExt=function(){if(3!==this.version)return-1;var n=a(this.hex,0,[0,7,0],"30"),i=t(this.hex,n);this.aExtInfo=new Array;for(var o=0;o0&&(c=new Array(n),(new te).nextBytes(c),c=String.fromCharCode.apply(String,c));var l=Ae(u(ke("\0\0\0\0\0\0\0\0"+r+c))),h=[];for(i=0;i>8*s-a&255),i=0;ithis.n.bitLength())return 0;var i=Ye(this.doPublic(n).toString(16).replace(/^1f+00/,""));if(0==i.length)return!1;var r=i[0];return i[1]==function(e){return ce.crypto.Util.hashString(e,r)}(e)},re.prototype.verifyWithMessageHash=function(e,t){var n=ne(t=(t=t.replace(He,"")).replace(/[ \n]+/g,""),16);if(n.bitLength()>this.n.bitLength())return 0;var i=Ye(this.doPublic(n).toString(16).replace(/^1f+00/,""));return 0!=i.length&&i[1]==e},re.prototype.verifyPSS=function(e,t,n,i){var r=function(e){return ce.crypto.Util.hashHex(e,n)}(ke(e));return void 0===i&&(i=-1),this.verifyWithMessageHashPSS(r,t,n,i)},re.prototype.verifyWithMessageHashPSS=function(e,t,n,i){var r=new A(t,16);if(r.bitLength()>this.n.bitLength())return!1;var o,a=function(e){return ce.crypto.Util.hashHex(e,n)},s=Ae(e),u=s.length,c=this.n.bitLength()-1,l=Math.ceil(c/8);if(-1===i||void 0===i)i=u;else if(-2===i)i=l-u-2;else if(i<-2)throw"invalid salt length";if(l>8*l-c&255;if(0!=(d.charCodeAt(0)&p))throw"bits beyond keysize not zero";var g=je(f,d.length,a),m=[];for(o=0;o0&&-1==(":"+i.join(":")+":").indexOf(":"+m+":"))throw"algorithm '"+m+"' not accepted in the list";if("none"!=m&&null===t)throw"key shall be specified to verify.";if("string"==typeof t&&-1!=t.indexOf("-----BEGIN ")&&(t=Fe.getKey(t)),!("RS"!=d&&"PS"!=d||t instanceof r))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==d&&!(t instanceof u))throw"key shall be a ECDSA obj for ES* algs";var v=null;if(void 0===o.jwsalg2sigalg[g.alg])throw"unsupported alg name: "+m;if("none"==(v=o.jwsalg2sigalg[m]))throw"not supported";if("Hmac"==v.substr(0,4)){if(void 0===t)throw"hexadecimal key shall be specified for HMAC";var y=new c({alg:v,pass:t});return y.updateString(f),p==y.doFinal()}if(-1!=v.indexOf("withECDSA")){var _,b=null;try{b=u.concatSigToASN1Sig(p)}catch(e){return!1}return(_=new l({alg:v})).init(t),_.updateString(f),_.verify(b)}return(_=new l({alg:v})).init(t),_.updateString(f),_.verify(p)},ce.jws.JWS.parse=function(e){var t,n,i=e.split("."),r={};if(2!=i.length&&3!=i.length)throw"malformed sJWS: wrong number of '.' splitted elements";return t=i[1],3==i.length&&(n=i[2]),r.headerObj=ce.jws.JWS.readSafeJSONString(he(i[0])),r.payloadObj=ce.jws.JWS.readSafeJSONString(he(t)),r.headerPP=JSON.stringify(r.headerObj,null," "),r.payloadPP=null==r.payloadObj?he(t):JSON.stringify(r.payloadObj,null," "),void 0!==n&&(r.sigHex=be(n)),r},ce.jws.JWS.verifyJWT=function(e,t,i){var r=ce.jws,o=r.JWS,a=o.readSafeJSONString,s=o.inArray,u=o.includedArray,c=e.split("."),l=c[0],h=c[1],d=(be(c[2]),a(he(l))),f=a(he(h));if(void 0===d.alg)return!1;if(void 0===i.alg)throw"acceptField.alg shall be specified";if(!s(d.alg,i.alg))return!1;if(void 0!==f.iss&&"object"===n(i.iss)&&!s(f.iss,i.iss))return!1;if(void 0!==f.sub&&"object"===n(i.sub)&&!s(f.sub,i.sub))return!1;if(void 0!==f.aud&&"object"===n(i.aud))if("string"==typeof f.aud){if(!s(f.aud,i.aud))return!1}else if("object"==n(f.aud)&&!u(f.aud,i.aud))return!1;var p=r.IntDate.getNow();return void 0!==i.verifyAt&&"number"==typeof i.verifyAt&&(p=i.verifyAt),void 0!==i.gracePeriod&&"number"==typeof i.gracePeriod||(i.gracePeriod=0),!(void 0!==f.exp&&"number"==typeof f.exp&&f.exp+i.gracePeriodt.length&&(n=t.length);for(var i=0;i=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(i)return H(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function m(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=u.from(t,i)),u.isBuffer(t))return 0===t.length?-1:v(e,t,n,i,r);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,i,r){var o,a=1,s=e.length,u=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var h=!0,d=0;dr&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a>8,r.push(n%256),r.push(i);return r}(t,e.length-n),e,n,i)}function k(e,t,n){return i.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r239?4:c>223?3:c>191?2:1;if(r+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[r+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:a=e[r+2],128==(192&(o=e[r+1]))&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:a=e[r+2],s=e[r+3],128==(192&(o=e[r+1]))&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(i.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),i.push(l),r+=h}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);for(var n="",i=0;ithis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}).apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,i,r){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(r>>>=0)-(i>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(i,r),l=e.slice(t,n),h=0;hr)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return M(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function C(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;ri)&&(n=i);for(var r="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,i,r,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function x(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r>>8*(i?r:1-r)}function D(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r>>8*(i?r:3-r)&255}function P(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,i,o){return o||P(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function I(e,t,n,i,o){return o||P(e,0,n,8),r.write(e,t,n,i,52,8),n+8}u.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(r*=256);)i+=this[e+--t]*r;return i},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e],r=1,o=0;++o=(r*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),r.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),r.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),r.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),r.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,i){e=+e,t|=0,n|=0,i||O(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+r]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,n,i){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(28))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[1];return 3*(t[0]+n)/4-n},t.toByteArray=function(e){for(var t,n=c(e),i=n[0],a=n[1],s=new o(function(e,t,n){return 3*(t+n)/4-n}(0,i,a)),u=0,l=a>0?i-4:i,h=0;h>16&255,s[u++]=t>>8&255,s[u++]=255&t;return 2===a&&(t=r[e.charCodeAt(h)]<<2|r[e.charCodeAt(h+1)]>>4,s[u++]=255&t),1===a&&(t=r[e.charCodeAt(h)]<<10|r[e.charCodeAt(h+1)]<<4|r[e.charCodeAt(h+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t),s},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,o=[],a=0,s=n-r;as?s:a+16383));return 1===r?o.push(i[(t=e[n-1])>>2]+i[t<<4&63]+"=="):2===r&&o.push(i[(t=(e[n-2]<<8)+e[n-1])>>10]+i[t>>4&63]+i[t<<2&63]+"="),o.join("")};for(var i=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var r,o=[],a=t;a>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,u=(1<>1,l=-7,h=n?r-1:0,d=n?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+e[t+h],h+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=i;l>0;a=256*a+e[t+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=c}return(f?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var a,s,u,c=8*o-r-1,l=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(t*u-1)*Math.pow(2,r),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;e[n+f]=255&s,f+=p,s/=256,r-=8);for(a=a<0;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.jws,n=e.KeyUtil,r=e.X509,o=e.crypto,a=e.hextob64u,s=e.b64tohex,u=e.AllowedSigningAlgs;return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.parseJwt=function e(n){i.Log.debug("JoseUtil.parseJwt");try{var r=t.JWS.parse(n);return{header:r.headerObj,payload:r.payloadObj}}catch(e){i.Log.error(e)}},e.validateJwt=function(t,o,a,u,c,l,h){i.Log.debug("JoseUtil.validateJwt");try{if("RSA"===o.kty)if(o.e&&o.n)o=n.getKey(o);else{if(!o.x5c||!o.x5c.length)return i.Log.error("JoseUtil.validateJwt: RSA key missing key material",o),Promise.reject(new Error("RSA key missing key material"));var d=s(o.x5c[0]);o=r.getPublicKeyFromCertHex(d)}else{if("EC"!==o.kty)return i.Log.error("JoseUtil.validateJwt: Unsupported key type",o&&o.kty),Promise.reject(new Error(o.kty));if(!(o.crv&&o.x&&o.y))return i.Log.error("JoseUtil.validateJwt: EC key missing key material",o),Promise.reject(new Error("EC key missing key material"));o=n.getKey(o)}return e._validateJwt(t,o,a,u,c,l,h)}catch(e){return i.Log.error(e&&e.message||e),Promise.reject("JWT validation failed")}},e.validateJwtAttributes=function(t,n,r,o,a,s){o||(o=0),a||(a=parseInt(Date.now()/1e3));var u=e.parseJwt(t).payload;if(!u.iss)return i.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(u.iss!==n)return i.Log.error("JoseUtil._validateJwt: Invalid issuer in token",u.iss),Promise.reject(new Error("Invalid issuer in token: "+u.iss));if(!u.aud)return i.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(u.aud===r||Array.isArray(u.aud)&&u.aud.indexOf(r)>=0))return i.Log.error("JoseUtil._validateJwt: Invalid audience in token",u.aud),Promise.reject(new Error("Invalid audience in token: "+u.aud));if(u.azp&&u.azp!==r)return i.Log.error("JoseUtil._validateJwt: Invalid azp in token",u.azp),Promise.reject(new Error("Invalid azp in token: "+u.azp));if(!s){var c=a+o,l=a-o;if(!u.iat)return i.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(c>>((3&t)<<3)&255;return r}}},function(e,t){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){var i=t||0;return[n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]]].join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigninResponse=void 0;var i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"#";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=r.UrlUtility.parseUrlFragment(t,n);this.error=i.error,this.error_description=i.error_description,this.error_uri=i.error_uri,this.code=i.code,this.state=i.state,this.id_token=i.id_token,this.session_state=i.session_state,this.access_token=i.access_token,this.token_type=i.token_type,this.scope=i.scope,this.profile=void 0,this.expires_in=i.expires_in}return i(e,[{key:"expires_in",get:function(){if(this.expires_at){var e=parseInt(Date.now()/1e3);return this.expires_at-e}},set:function(e){var t=parseInt(e);if("number"==typeof t&&t>0){var n=parseInt(Date.now()/1e3);this.expires_at=n+t}}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutRequest=void 0;var i=n(0),r=n(3),o=n(8);t.SignoutRequest=function e(t){var n=t.url,a=t.id_token_hint,s=t.post_logout_redirect_uri,u=t.data,c=t.extraQueryParams,l=t.request_type;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw i.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var h in a&&(n=r.UrlUtility.addQueryParam(n,"id_token_hint",a)),s&&(n=r.UrlUtility.addQueryParam(n,"post_logout_redirect_uri",s),u&&(this.state=new o.State({data:u,request_type:l}),n=r.UrlUtility.addQueryParam(n,"state",this.state.id))),c)n=r.UrlUtility.addQueryParam(n,h,c[h]);this.url=n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutResponse=void 0;var i=n(3);t.SignoutResponse=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=i.UrlUtility.parseUrlFragment(t,"?");this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.state=n.state}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryWebStorage=void 0;var i=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.SilentRenewService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.SessionMonitor,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.TokenRevocationClient,p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d.TokenClient,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:f.JoseUtil;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n instanceof a.UserManagerSettings||(n=new a.UserManagerSettings(n));var m=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return m._events=new u.UserManagerEvents(n),m._silentRenewService=new i(m),m.settings.automaticSilentRenew&&(r.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),m.startSilentRenew()),m.settings.monitorSession&&(r.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),m._sessionMonitor=new o(m)),m._tokenRevocationClient=new s(m._settings),m._tokenClient=new p(m._settings),m._joseUtil=g,m}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getUser=function(){var e=this;return this._loadUser().then(function(t){return t?(r.Log.info("UserManager.getUser: user loaded"),e._events.load(t,!1),t):(r.Log.info("UserManager.getUser: user not found in storage"),null)})},t.prototype.removeUser=function(){var e=this;return this.storeUser(null).then(function(){r.Log.info("UserManager.removeUser: user removed from storage"),e._events.unload()})},t.prototype.signinRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:r";var t={useReplaceToNavigate:e.useReplaceToNavigate};return this._signinStart(e,this._redirectNavigator,t).then(function(){r.Log.info("UserManager.signinRedirect: successful")})},t.prototype.signinRedirectCallback=function(e){return this._signinEnd(e||this._redirectNavigator.url).then(function(e){return e.profile&&e.profile.sub?r.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",e.profile.sub):r.Log.info("UserManager.signinRedirectCallback: no sub"),e})},t.prototype.signinPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:p";var t=e.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.display="popup",this._signin(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then(function(e){return e&&(e.profile&&e.profile.sub?r.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",e.profile.sub):r.Log.info("UserManager.signinPopup: no sub")),e})):(r.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},t.prototype.signinPopupCallback=function(e){return this._signinCallback(e,this._popupNavigator).then(function(e){return e&&(e.profile&&e.profile.sub?r.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",e.profile.sub):r.Log.info("UserManager.signinPopupCallback: no sub")),e}).catch(function(e){r.Log.error(e.message)})},t.prototype.signinSilent=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t=Object.assign({},t)).request_type="si:s",this._loadUser().then(function(n){return n&&n.refresh_token?(t.refresh_token=n.refresh_token,e._useRefreshToken(t)):(t.id_token_hint=t.id_token_hint||e.settings.includeIdTokenInSilentRenew&&n&&n.id_token,n&&e._settings.validateSubOnSilentRenew&&(r.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",n.profile.sub),t.current_sub=n.profile.sub),e._signinSilentIframe(t))})},t.prototype._useRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(t).then(function(t){return t?t.access_token?e._loadUser().then(function(n){if(n){var i=Promise.resolve();return t.id_token&&(i=e._validateIdTokenFromTokenRefreshToken(n.profile,t.id_token)),i.then(function(){return r.Log.debug("UserManager._useRefreshToken: refresh token response success"),n.id_token=t.id_token,n.access_token=t.access_token,n.refresh_token=t.refresh_token||n.refresh_token,n.expires_in=t.expires_in,e.storeUser(n).then(function(){return e._events.load(n),n})})}return null}):(r.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(r.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))})},t.prototype._validateIdTokenFromTokenRefreshToken=function(e,t){var n=this;return this._metadataService.getIssuer().then(function(i){return n._joseUtil.validateJwtAttributes(t,i,n._settings.client_id,n._settings.clockSkew).then(function(t){return t?t.sub!==e.sub?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):t.auth_time&&t.auth_time!==e.auth_time?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):t.azp&&t.azp!==e.azp?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!t.azp&&e.azp?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))})})},t.prototype._signinSilentIframe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.prompt=e.prompt||"none",this._signin(e,this._iframeNavigator,{startUrl:t,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(e){return e&&(e.profile&&e.profile.sub?r.Log.info("UserManager.signinSilent: successful, signed in sub: ",e.profile.sub):r.Log.info("UserManager.signinSilent: no sub")),e})):(r.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype.signinSilentCallback=function(e){return this._signinCallback(e,this._iframeNavigator).then(function(e){return e&&(e.profile&&e.profile.sub?r.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",e.profile.sub):r.Log.info("UserManager.signinSilentCallback: no sub")),e})},t.prototype.signinCallback=function(e){var t=this;return this.readSigninResponseState(e).then(function(n){var i=n.state;return"si:r"===i.request_type?t.signinRedirectCallback(e):"si:p"===i.request_type?t.signinPopupCallback(e):"si:s"===i.request_type?t.signinSilentCallback(e):Promise.reject(new Error("invalid response_type in state"))})},t.prototype.signoutCallback=function(e,t){var n=this;return this.readSignoutResponseState(e).then(function(i){var r=i.state,o=i.response;return r?"so:r"===r.request_type?n.signoutRedirectCallback(e):"so:p"===r.request_type?n.signoutPopupCallback(e,t):Promise.reject(new Error("invalid response_type in state")):o})},t.prototype.querySessionStatus=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:s";var n=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return n?(t.redirect_uri=n,t.prompt="none",t.response_type=t.response_type||this.settings.query_status_response_type,t.scope=t.scope||"openid",t.skipUserInfo=!0,this._signinStart(t,this._iframeNavigator,{startUrl:n,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(t){return e.processSigninResponse(t.url).then(function(e){if(r.Log.debug("UserManager.querySessionStatus: got signin response"),e.session_state&&e.profile.sub)return r.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",e.profile.sub),{session_state:e.session_state,sub:e.profile.sub,sid:e.profile.sid};r.Log.info("querySessionStatus successful, user not authenticated")}).catch(function(t){if(t.session_state&&e.settings.monitorAnonymousSession&&("login_required"==t.message||"consent_required"==t.message||"interaction_required"==t.message||"account_selection_required"==t.message))return r.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:t.session_state};throw t})})):(r.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype._signin=function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(e,t,i).then(function(t){return n._signinEnd(t.url,e)})},t.prototype._signinStart=function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.prepare(i).then(function(t){return r.Log.debug("UserManager._signinStart: got navigator window handle"),n.createSigninRequest(e).then(function(e){return r.Log.debug("UserManager._signinStart: got signin request"),i.url=e.url,i.id=e.state.id,t.navigate(i)}).catch(function(e){throw t.close&&(r.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),t.close()),e})})},t.prototype._signinEnd=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(e).then(function(e){r.Log.debug("UserManager._signinEnd: got signin response");var i=new s.User(e);if(n.current_sub){if(n.current_sub!==i.profile.sub)return r.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",i.profile.sub),Promise.reject(new Error("login_required"));r.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return t.storeUser(i).then(function(){return r.Log.debug("UserManager._signinEnd: user stored"),t._events.load(i),i})})},t.prototype._signinCallback=function(e,t){return r.Log.debug("UserManager._signinCallback"),t.callback(e)},t.prototype.signoutRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:r";var t=e.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;t&&(e.post_logout_redirect_uri=t);var n={useReplaceToNavigate:e.useReplaceToNavigate};return this._signoutStart(e,this._redirectNavigator,n).then(function(){r.Log.info("UserManager.signoutRedirect: successful")})},t.prototype.signoutRedirectCallback=function(e){return this._signoutEnd(e||this._redirectNavigator.url).then(function(e){return r.Log.info("UserManager.signoutRedirectCallback: successful"),e})},t.prototype.signoutPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:p";var t=e.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return e.post_logout_redirect_uri=t,e.display="popup",e.post_logout_redirect_uri&&(e.state=e.state||{}),this._signout(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then(function(){r.Log.info("UserManager.signoutPopup: successful")})},t.prototype.signoutPopupCallback=function(e,t){return void 0===t&&"boolean"==typeof e&&(t=e,e=null),this._popupNavigator.callback(e,t,"?").then(function(){r.Log.info("UserManager.signoutPopupCallback: successful")})},t.prototype._signout=function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(e,t,i).then(function(e){return n._signoutEnd(e.url)})},t.prototype._signoutStart=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,n=arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.prepare(i).then(function(n){return r.Log.debug("UserManager._signoutStart: got navigator window handle"),t._loadUser().then(function(o){return r.Log.debug("UserManager._signoutStart: loaded current user from storage"),(t._settings.revokeAccessTokenOnSignout?t._revokeInternal(o):Promise.resolve()).then(function(){var a=e.id_token_hint||o&&o.id_token;return a&&(r.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),e.id_token_hint=a),t.removeUser().then(function(){return r.Log.debug("UserManager._signoutStart: user removed, creating signout request"),t.createSignoutRequest(e).then(function(e){return r.Log.debug("UserManager._signoutStart: got signout request"),i.url=e.url,e.state&&(i.id=e.state.id),n.navigate(i)})})})}).catch(function(e){throw n.close&&(r.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),n.close()),e})})},t.prototype._signoutEnd=function(e){return this.processSignoutResponse(e).then(function(e){return r.Log.debug("UserManager._signoutEnd: got signout response"),e})},t.prototype.revokeAccessToken=function(){var e=this;return this._loadUser().then(function(t){return e._revokeInternal(t,!0).then(function(n){if(n)return r.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),t.access_token=null,t.refresh_token=null,t.expires_at=null,t.token_type=null,e.storeUser(t).then(function(){r.Log.debug("UserManager.revokeAccessToken: user stored"),e._events.load(t)})})}).then(function(){r.Log.info("UserManager.revokeAccessToken: access token revoked successfully")})},t.prototype._revokeInternal=function(e,t){var n=this;if(e){var i=e.refresh_token;return this._revokeAccessTokenInternal(e.access_token,t).then(function(e){return n._revokeRefreshTokenInternal(i,t).then(function(t){return e||t||r.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),e||t})})}return Promise.resolve(!1)},t.prototype._revokeAccessTokenInternal=function(e,t){return!e||e.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(e,t).then(function(){return!0})},t.prototype._revokeRefreshTokenInternal=function(e,t){return e?this._tokenRevocationClient.revoke(e,t,"refresh_token").then(function(){return!0}):Promise.resolve(!1)},t.prototype.startSilentRenew=function(){this._silentRenewService.start()},t.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},t.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then(function(e){return e?(r.Log.debug("UserManager._loadUser: user storageString loaded"),s.User.fromStorageString(e)):(r.Log.debug("UserManager._loadUser: no user storageString"),null)})},t.prototype.storeUser=function(e){if(e){r.Log.debug("UserManager.storeUser: storing user");var t=e.toStorageString();return this._userStore.set(this._userStoreKey,t)}return r.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},i(t,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),t}(o.OidcClient)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerSettings=void 0;var i=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},i=n.popup_redirect_uri,r=n.popup_post_logout_redirect_uri,h=n.popupWindowFeatures,d=n.popupWindowTarget,f=n.silent_redirect_uri,p=n.silentRequestTimeout,g=n.automaticSilentRenew,m=void 0!==g&&g,v=n.validateSubOnSilentRenew,y=void 0!==v&&v,_=n.includeIdTokenInSilentRenew,b=void 0===_||_,w=n.monitorSession,M=void 0===w||w,A=n.monitorAnonymousSession,k=void 0!==A&&A,T=n.checkSessionInterval,S=void 0===T?2e3:T,C=n.stopCheckSessionOnError,E=void 0===C||C,L=n.query_status_response_type,z=n.revokeAccessTokenOnSignout,R=void 0!==z&&z,O=n.accessTokenExpiringNotificationTime,x=void 0===O?60:O,D=n.redirectNavigator,P=void 0===D?new o.RedirectNavigator:D,N=n.popupNavigator,I=void 0===N?new a.PopupNavigator:N,B=n.iframeNavigator,F=void 0===B?new s.IFrameNavigator:B,H=n.userStore,q=void 0===H?new u.WebStorageStateStore({store:c.Global.sessionStorage}):H;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var j=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,arguments[0]));return j._popup_redirect_uri=i,j._popup_post_logout_redirect_uri=r,j._popupWindowFeatures=h,j._popupWindowTarget=d,j._silent_redirect_uri=f,j._silentRequestTimeout=p,j._automaticSilentRenew=m,j._validateSubOnSilentRenew=y,j._includeIdTokenInSilentRenew=b,j._accessTokenExpiringNotificationTime=x,j._monitorSession=M,j._monitorAnonymousSession=k,j._checkSessionInterval=S,j._stopCheckSessionOnError=E,j._query_status_response_type=L||(arguments[0]&&arguments[0].response_type?l.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":"id_token"),j._revokeAccessTokenOnSignout=R,j._redirectNavigator=P,j._popupNavigator=I,j._iframeNavigator=F,j._userStore=q,j}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),t}(r.OidcClientSettings)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectNavigator=void 0;var i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];i.Log.debug("UserManagerEvents.load"),e.prototype.load.call(this,t),n&&this._userLoaded.raise(t)},t.prototype.unload=function(){i.Log.debug("UserManagerEvents.unload"),e.prototype.unload.call(this),this._userUnloaded.raise()},t.prototype.addUserLoaded=function(e){this._userLoaded.addHandler(e)},t.prototype.removeUserLoaded=function(e){this._userLoaded.removeHandler(e)},t.prototype.addUserUnloaded=function(e){this._userUnloaded.addHandler(e)},t.prototype.removeUserUnloaded=function(e){this._userUnloaded.removeHandler(e)},t.prototype.addSilentRenewError=function(e){this._silentRenewError.addHandler(e)},t.prototype.removeSilentRenewError=function(e){this._silentRenewError.removeHandler(e)},t.prototype._raiseSilentRenewError=function(e){i.Log.debug("UserManagerEvents._raiseSilentRenewError",e.message),this._silentRenewError.raise(e)},t.prototype.addUserSignedIn=function(e){this._userSignedIn.addHandler(e)},t.prototype.removeUserSignedIn=function(e){this._userSignedIn.removeHandler(e)},t.prototype._raiseUserSignedIn=function(){i.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},t.prototype.addUserSignedOut=function(e){this._userSignedOut.addHandler(e)},t.prototype.removeUserSignedOut=function(e){this._userSignedOut.removeHandler(e)},t.prototype._raiseUserSignedOut=function(){i.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},t.prototype.addUserSessionChanged=function(e){this._userSessionChanged.addHandler(e)},t.prototype.removeUserSessionChanged=function(e){this._userSessionChanged.removeHandler(e)},t.prototype._raiseUserSessionChanged=function(){i.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},t}(r.AccessTokenEvents)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=void 0;var i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:o.Global.timer,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return a._timer=i,a._nowFunc=r||function(){return Date.now()/1e3},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.init=function(e){e<=0&&(e=1),e=parseInt(e);var t=this.now+e;if(this.expiration===t&&this._timerHandle)r.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),r.Log.debug("Timer.init timer "+this._name+" for duration:",e),this._expiration=t;var n=5;e0&&u>s&&(u=s);for(var c=0;c=0?(l=p.substr(0,g),h=p.substr(g+1)):(l=p,h=""),d=decodeURIComponent(l),f=decodeURIComponent(h),t(o,d)?Array.isArray(o[d])?o[d].push(f):o[d]=[o[d],f]:o[d]=f}return o}},5341:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,i,r){return n=n||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(r){var o=encodeURIComponent(t(r))+i;return Array.isArray(e[r])?e[r].map(function(e){return o+encodeURIComponent(t(e))}).join(n):o+encodeURIComponent(t(e[r]))}).join(n):r?encodeURIComponent(t(r))+i+encodeURIComponent(t(e)):""}},6577:function(e,t,n){"use strict";n(963),n(5341)},4360:function(e){"use strict";e.exports=JSON.parse('{"version":"2020a","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5","Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|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 WAT|-d.A -10|01|-22y0d.A|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 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 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 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 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|01212121212121212121212121212121213|-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|","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/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3","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/Curacao|LMT -0430 AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4","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/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2","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 BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v 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 CDT|5Q.M 60 5u 50|01212121212121212121212121212121212121212121212121213131|-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 1wou Rbu 1f0Mu qn0 lxB0 mn0|57e3","America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2","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/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","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/Creston|MST PST|70 80|010|-29DR0 43B0|53e2","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|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-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|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|01212121212121212121212121212121212121212121212121212121212121212121212121232121212121212121212121212121212121212121|-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 1zb0 5Ip0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 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 -0345 -03 -04|3Q.E 3J 30 40|0123|-2dvU7.k 2r6LQ.k Bxbf|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/Nassau|LMT EST EDT|59.u 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2kNuO.u 26XdO.u 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|24e4","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/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","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/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","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|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-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|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|01212121|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80","Antarctica/Macquarie|AEST AEDT -00 +11|-a0 -b0 0 -b0|0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101013|-29E80 19X0 4SL0 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 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","Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20","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/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","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 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|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|0101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 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 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 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 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|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|012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyMk.E 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 3LB0 Em0 or0 1cn0 1dB0 16n0 10O0 1ja0 1tC0 14o0 1cM0 1a00 11A0 1Na0 An0 1MP0 AJ0 1Kp0 LC0 1oo0 Wl0 EQN0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-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 3Co0 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|LMT AST ADT|4j.i 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1BnRE.G 1LTbE.G 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|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-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 3Co0 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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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/Currie|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|746","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293kI xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Hobart|AEST AEDT|-a0 -b0|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 VfB0 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/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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293jX xcX 10jd0 yL0 1cN0 1cL0 1gSp0 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||","Pacific/Port_Moresby|+10|-a0|0||25e4","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 1ip0 17b0 1op0 1tb0 Q2m0 3Ne0 WM0 1fA0 1cM0 1cM0 1oJ0 1dc0 1030 1fA0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1iM0 1fA0 8Ha0 Rb0 1wN0 Rb0 1BB0 Lz0 1C20 LB0 SNX0 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|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|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-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 3Co0 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|-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 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|-2nco8.l cNb8.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|012323232323232321212121212121212121212121212121212121212121212|-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|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|-2yO3F.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|01232345454545454545454545454545454545454545454545454545454|-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 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|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|0121212121212121212121|-2l9nd.g 2Szcd.g 1cL0 1oN0 10L0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-12 -11 +13|c0 b0 -d0|012|nIc0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-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 20o0 s00 20o0 pc0 20o0 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|-1120 -1130 -11|bk bu b0|012|-KfME 17y0a|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|-1030 -0930 -10|au 9u a0|012121212121212121212121212|lyWu 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|+1220 +13 +14|-ck -d0 -e0|0121212121|-1aB0k 2n5dk 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/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/Atikokan|America/Coral_Harbour","America/Chicago|US/Central","America/Curacao|America/Aruba","America/Curacao|America/Kralendijk","America/Curacao|America/Lower_Princes","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/Los_Angeles|US/Pacific-New","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/Cayman","America/Phoenix|US/Arizona","America/Port_of_Spain|America/Anguilla","America/Port_of_Spain|America/Antigua","America/Port_of_Spain|America/Dominica","America/Port_of_Spain|America/Grenada","America/Port_of_Spain|America/Guadeloupe","America/Port_of_Spain|America/Marigot","America/Port_of_Spain|America/Montserrat","America/Port_of_Spain|America/St_Barthelemy","America/Port_of_Spain|America/St_Kitts","America/Port_of_Spain|America/St_Lucia","America/Port_of_Spain|America/St_Thomas","America/Port_of_Spain|America/St_Vincent","America/Port_of_Spain|America/Tortola","America/Port_of_Spain|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|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|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/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/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|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/Currie 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/Vancouver America/Whitehorse America/Dawson","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/Astrakhan Europe/Volgograd 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"]}')},6700:function(e,t,n){var i={"./af":776,"./af.js":776,"./ar":7634,"./ar-dz":2758,"./ar-dz.js":2758,"./ar-kw":4980,"./ar-kw.js":4980,"./ar-ly":9602,"./ar-ly.js":9602,"./ar-ma":2500,"./ar-ma.js":2500,"./ar-sa":6909,"./ar-sa.js":6909,"./ar-tn":2735,"./ar-tn.js":2735,"./ar.js":7634,"./az":7798,"./az.js":7798,"./be":9949,"./be.js":9949,"./bg":4590,"./bg.js":4590,"./bm":5938,"./bm.js":5938,"./bn":595,"./bn.js":595,"./bo":4756,"./bo.js":4756,"./br":7277,"./br.js":7277,"./bs":4166,"./bs.js":4166,"./ca":3943,"./ca.js":3943,"./cs":3474,"./cs.js":3474,"./cv":2218,"./cv.js":2218,"./cy":1061,"./cy.js":1061,"./da":2743,"./da.js":2743,"./de":1899,"./de-at":8580,"./de-at.js":8580,"./de-ch":3264,"./de-ch.js":3264,"./de.js":1899,"./dv":8784,"./dv.js":8784,"./el":4654,"./el.js":4654,"./en-SG":4047,"./en-SG.js":4047,"./en-au":6277,"./en-au.js":6277,"./en-ca":6896,"./en-ca.js":6896,"./en-gb":1609,"./en-gb.js":1609,"./en-ie":4557,"./en-ie.js":4557,"./en-il":5836,"./en-il.js":5836,"./en-nz":3586,"./en-nz.js":3586,"./eo":2777,"./eo.js":2777,"./es":3357,"./es-do":3128,"./es-do.js":3128,"./es-us":3256,"./es-us.js":3256,"./es.js":3357,"./et":2654,"./et.js":2654,"./eu":7287,"./eu.js":7287,"./fa":3875,"./fa.js":3875,"./fi":3431,"./fi.js":3431,"./fo":1781,"./fo.js":1781,"./fr":1717,"./fr-ca":1539,"./fr-ca.js":1539,"./fr-ch":9847,"./fr-ch.js":9847,"./fr.js":1717,"./fy":2250,"./fy.js":2250,"./ga":7665,"./ga.js":7665,"./gd":5214,"./gd.js":5214,"./gl":6154,"./gl.js":6154,"./gom-latn":8518,"./gom-latn.js":8518,"./gu":9221,"./gu.js":9221,"./he":4743,"./he.js":4743,"./hi":7339,"./hi.js":7339,"./hr":3224,"./hr.js":3224,"./hu":856,"./hu.js":856,"./hy-am":6855,"./hy-am.js":6855,"./id":2190,"./id.js":2190,"./is":3887,"./is.js":3887,"./it":9270,"./it-ch":5890,"./it-ch.js":5890,"./it.js":9270,"./ja":6595,"./ja.js":6595,"./jv":3081,"./jv.js":3081,"./ka":7477,"./ka.js":7477,"./kk":3978,"./kk.js":3978,"./km":9205,"./km.js":9205,"./kn":25,"./kn.js":25,"./ko":427,"./ko.js":427,"./ku":9089,"./ku.js":9089,"./ky":9314,"./ky.js":9314,"./lb":3136,"./lb.js":3136,"./lo":9115,"./lo.js":9115,"./lt":7087,"./lt.js":7087,"./lv":5683,"./lv.js":5683,"./me":9454,"./me.js":9454,"./mi":5507,"./mi.js":5507,"./mk":8466,"./mk.js":8466,"./ml":2933,"./ml.js":2933,"./mn":9477,"./mn.js":9477,"./mr":3597,"./mr.js":3597,"./ms":5529,"./ms-my":9965,"./ms-my.js":9965,"./ms.js":5529,"./mt":259,"./mt.js":259,"./my":8061,"./my.js":8061,"./nb":2618,"./nb.js":2618,"./ne":8452,"./ne.js":8452,"./nl":1885,"./nl-be":413,"./nl-be.js":413,"./nl.js":1885,"./nn":5107,"./nn.js":5107,"./pa-in":702,"./pa-in.js":702,"./pl":1711,"./pl.js":1711,"./pt":594,"./pt-br":8238,"./pt-br.js":8238,"./pt.js":594,"./ro":4681,"./ro.js":4681,"./ru":6201,"./ru.js":6201,"./sd":2912,"./sd.js":2912,"./se":6002,"./se.js":6002,"./si":7942,"./si.js":7942,"./sk":5577,"./sk.js":5577,"./sl":1775,"./sl.js":1775,"./sq":6823,"./sq.js":6823,"./sr":9038,"./sr-cyrl":3848,"./sr-cyrl.js":3848,"./sr.js":9038,"./ss":6173,"./ss.js":6173,"./sv":5788,"./sv.js":5788,"./sw":6882,"./sw.js":6882,"./ta":2678,"./ta.js":2678,"./te":2797,"./te.js":2797,"./tet":2447,"./tet.js":2447,"./tg":1335,"./tg.js":1335,"./th":8667,"./th.js":8667,"./tl-ph":9914,"./tl-ph.js":9914,"./tlh":1389,"./tlh.js":1389,"./tr":3578,"./tr.js":3578,"./tzl":6969,"./tzl.js":6969,"./tzm":6509,"./tzm-latn":690,"./tzm-latn.js":690,"./tzm.js":6509,"./ug-cn":55,"./ug-cn.js":55,"./uk":2452,"./uk.js":2452,"./ur":1151,"./ur.js":1151,"./uz":1555,"./uz-latn":6547,"./uz-latn.js":6547,"./uz.js":1555,"./vi":6541,"./vi.js":6541,"./x-pseudo":2401,"./x-pseudo.js":2401,"./yo":2341,"./yo.js":2341,"./zh-cn":619,"./zh-cn.js":619,"./zh-hk":7058,"./zh-hk.js":7058,"./zh-tw":2782,"./zh-tw.js":2782};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id=6700},306:function(e){"use strict";e.exports={i8:"1.1.0"}}},function(e){"use strict";e(e.s=7546)}])}(); \ No newline at end of file diff --git a/dist/apps/user-profile/main-es5.fc8b4aeb37c64453f62c.js b/dist/apps/user-profile/main-es5.fc8b4aeb37c64453f62c.js new file mode 100644 index 000000000..5b07b5c07 --- /dev/null +++ b/dist/apps/user-profile/main-es5.fc8b4aeb37c64453f62c.js @@ -0,0 +1 @@ +!function(){function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){return i(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(u){s=!0,r=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||s(e,t)||n()}function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e){if(Array.isArray(e))return e}function r(e){return function(e){if(Array.isArray(e))return u(e)}(e)||o(e)||s(e)||function(){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 o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n4&&void 0!==arguments[4]?arguments[4]:new K(e,n,i);if(!r.closed)return t instanceof I?t.subscribe(r):Q(t)(r)}var $=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(O);function ee(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new te(e,t))}}var te=function(){function e(t,n){_(this,e),this.project=t,this.thisArg=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new ne(e,this.project,this.thisArg))}}]),e}(),ne=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||m(o),o}return w(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(O);function ie(e,t){return new I(function(n){var i=new L,r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function re(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[D]}(e))return function(e,t){return new I(function(n){var i=new L;return i.add(t.schedule(function(){var r=e[D]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if(J(e))return function(e,t){return new I(function(n){var i=new L;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if(G(e))return ie(e,t);if(function(e){return e&&"function"==typeof e[X]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new I(function(n){var i,r=new L;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[X](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof I?e:new I(Q(e))}function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(oe(function(n,i){return re(e(n,i)).pipe(ee(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new ae(e,n))})}var ae=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_(this,e),this.project=t,this.concurrent=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new se(e,this.project,this.concurrent))}}]),e}(),se=function(e){d(n,e);var t=p(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return w(n,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}($);function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return oe(P,e)}function ce(e,t){return t?ie(e,t):new I(V(e))}function le(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof o&&(i=t.pop()),null===r&&1===t.length&&t[0]instanceof I?t[0]:ue(i)(ce(t,r))}function he(){return function(e){return e.lift(new fe(e))}}var de,fe=function(){function e(t){_(this,e),this.connectable=t}return w(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new pe(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),pe=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).connectable=i,r}return w(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(O),ge=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return w(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new L).add(this.source.subscribe(new ve(this.getSubject(),this))),e.closed&&(this._connection=null,e=L.EMPTY)),e}},{key:"refCount",value:function(){return he()(this)}}]),n}(I),me={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(de=ge.prototype)._subscribe},_isComplete:{value:de._isComplete,writable:!0},getSubject:{value:de.getSubject},connect:{value:de.connect},refCount:{value:de.refCount}},ve=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).connectable=i,r}return w(n,[{key:"_error",value:function(e){this._unsubscribe(),h(y(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),h(y(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(j);function ye(){return new Y}function _e(){return function(e){return he()((t=ye,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,me);return i.source=e,i.subjectFactory=n,i})(e));var t}}function be(e){for(var t in e)if(e[t]===be)return t;throw Error("Could not find renamed property on target object.")}function we(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Me(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Me).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ae(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var ke=be({__forward_ref__:be});function Te(e){return e.__forward_ref__=Te,e.toString=function(){return Me(this())},e}function Se(e){return Ce(e)?e():e}function Ce(e){return"function"==typeof e&&e.hasOwnProperty(ke)&&e.__forward_ref__===Te}var Ee=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(c(Error));function Le(e){return"string"==typeof e?e:null==e?"":String(e)}function ze(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Le(e)}function Re(e,t){var n=t?" in ".concat(t):"";throw new Ee("201","No provider for ".concat(ze(e)," found").concat(n))}function Oe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function xe(e){return{providers:e.providers||[],imports:e.imports||[]}}function De(e){return Pe(e,Be)||Pe(e,He)}function Pe(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ne(e){return e&&(e.hasOwnProperty(Fe)||e.hasOwnProperty(qe))?e[Fe]:null}var Ie,Be=be({"\u0275prov":be}),Fe=be({"\u0275inj":be}),He=be({ngInjectableDef:be}),qe=be({ngInjectorDef:be}),je=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function Ye(e){var t=Ie;return Ie=e,t}function We(e,t,n){var i=De(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&je.Optional?null:void 0!==t?t:void Re(Me(e),"Injector")}function Ue(e){return{toString:e}.toString()}var Ke=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Ve=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Xe="undefined"!=typeof globalThis&&globalThis,Ge="undefined"!=typeof window&&window,Je="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Qe="undefined"!=typeof global&&global,Ze=Xe||Qe||Ge||Je,$e={},et=[],tt=be({"\u0275cmp":be}),nt=be({"\u0275dir":be}),it=be({"\u0275pipe":be}),rt=be({"\u0275mod":be}),ot=be({"\u0275loc":be}),at=be({"\u0275fac":be}),st=be({__NG_ELEMENT_ID__:be}),ut=0;function ct(e){return Ue(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ke.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||et,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ve.Emulated,id:"c",styles:e.styles||et,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=ut++,n.inputs=pt(e.inputs,t),n.outputs=pt(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(lt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(ht)}:null,n})}function lt(e){return vt(e)||function(e){return e[nt]||null}(e)}function ht(e){return function(e){return e[it]||null}(e)}var dt={};function ft(e){return Ue(function(){var t={type:e.type,bootstrap:e.bootstrap||et,declarations:e.declarations||et,imports:e.imports||et,exports:e.exports||et,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(dt[e.id]=e.type),t})}function pt(e,t){if(null==e)return $e;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var gt=ct;function mt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function vt(e){return e[tt]||null}function yt(e,t){var n=e[rt]||null;if(!n&&!0===t)throw new Error("Type ".concat(Me(e)," does not have '\u0275mod' property."));return n}function _t(e){return Array.isArray(e)&&"object"==typeof e[1]}function bt(e){return Array.isArray(e)&&!0===e[1]}function wt(e){return 0!=(8&e.flags)}function Mt(e){return 2==(2&e.flags)}function At(e){return 1==(1&e.flags)}function kt(e){return null!==e.template}function Tt(e,t){return e.hasOwnProperty(at)?e[at]:null}var St,Ct=function(){function e(t,n,i){_(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return w(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Et(){return Lt}function Lt(e){return e.type.prototype.ngOnChanges&&(e.setInput=Rt),zt}function zt(){var e=Ot(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===$e)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Rt(e,t,n,i){var r=Ot(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:$e,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new Ct(u&&u.currentValue,t,a===$e),e[i]=t}function Ot(e){return e.__ngSimpleChanges__||null}function xt(){return void 0!==St?St:"undefined"!=typeof document?document:void 0}function Dt(e){return!!e.listen}Et.ngInherit=!0;var Pt={createRenderer:function(e,t){return xt()}};function Nt(e){for(;Array.isArray(e);)e=e[0];return e}function It(e,t){return Nt(t[e])}function Bt(e,t){return Nt(t[e.index])}function Ft(e,t){return e.data[t]}function Ht(e,t){return e[t]}function qt(e,t){var n=t[e];return _t(n)?n:n[0]}function jt(e){return 4==(4&e[2])}function Yt(e){return 128==(128&e[2])}function Wt(e,t){return null==t?null:e[t]}function Ut(e){e[18]=0}function Kt(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var Vt={lFrame:yn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Xt(){return Vt.bindingsEnabled}function Gt(){return Vt.lFrame.lView}function Jt(){return Vt.lFrame.tView}function Qt(e){return Vt.lFrame.contextLView=e,e[8]}function Zt(){for(var e=$t();null!==e&&64===e.type;)e=e.parent;return e}function $t(){return Vt.lFrame.currentTNode}function en(e,t){var n=Vt.lFrame;n.currentTNode=e,n.isParent=t}function tn(){return Vt.lFrame.isParent}function nn(){Vt.lFrame.isParent=!1}function rn(){return Vt.isInCheckNoChangesMode}function on(e){Vt.isInCheckNoChangesMode=e}function an(){var e=Vt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function sn(){return Vt.lFrame.bindingIndex}function un(){return Vt.lFrame.bindingIndex++}function cn(e){var t=Vt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function ln(e){Vt.lFrame.currentDirectiveIndex=e}function hn(e){var t=Vt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function dn(){return Vt.lFrame.currentQueryIndex}function fn(e){Vt.lFrame.currentQueryIndex=e}function pn(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function gn(e,t,n){if(n&je.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&je.Host||(i=pn(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var o=Vt.lFrame=vn();return o.currentTNode=t,o.lView=e,!0}function mn(e){var t=vn(),n=e[1];Vt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function vn(){var e=Vt.lFrame,t=null===e?null:e.child;return null===t?yn(e):t}function yn(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function _n(){var e=Vt.lFrame;return Vt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var bn=_n;function wn(){var e=_n();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Mn(){return Vt.lFrame.selectedIndex}function An(e){Vt.lFrame.selectedIndex=e}function kn(){var e=Vt.lFrame;return Ft(e.tView,e.selectedIndex)}function Tn(){Vt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Sn(){Vt.lFrame.currentNamespace=null}function Cn(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[s]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var xn=function e(t,n,i){_(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Dn(e,t,n){for(var i=Dt(e),r=0;rt){a=o-1;break}}}for(;o>16,i=t;n>0;)i=i[15],n--;return i}var jn=!0;function Yn(e){var t=jn;return jn=e,t}var Wn=0;function Un(e,t){var n=Vn(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Kn(i.data,e),Kn(t,null),Kn(i.blueprint,null));var r=Xn(e,t),o=e.injectorIndex;if(Fn(r))for(var a=Hn(r),s=qn(r,t),u=s[1].data,c=0;c<8;c++)t[o+c]=s[a+c]|u[a+c];return t[o+8]=r,o}function Kn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Vn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Xn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Gn(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(st)&&(i=n[st]),null==i&&(i=n[st]=Wn++);var r=255&i;t.data[e+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:je.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(st)?e[st]:void 0;return"number"==typeof t?t>=0?255&t:ei:t}(n);if("function"==typeof o){if(!gn(t,e,i))return i&je.Host?Jn(r,n,i):Qn(t,n,i,r);try{var a=o(i);if(null!=a||i&je.Optional)return a;Re(n)}finally{bn()}}else if("number"==typeof o){var s=null,u=Vn(e,t),c=-1,l=i&je.Host?t[16][6]:null;for((-1===u||i&je.SkipSelf)&&(-1!==(c=-1===u?Xn(e,t):t[u+8])&&oi(i,!1)?(s=t[1],u=Hn(c),t=qn(c,t)):u=-1);-1!==u;){var h=t[1];if(ri(o,u,h.data)){var d=ti(u,t,n,s,i,l);if(d!==$n)return d}-1!==(c=t[u+8])&&oi(i,t[1].data[u+8]===l)&&ri(o,u,t)?(s=h,u=Hn(c),t=qn(c,t)):u=-1}}}return Qn(t,n,i,r)}var $n={};function ei(){return new ai(Zt(),Gt())}function ti(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],u=ni(s,a,n,null==i?Mt(s)&&jn:i!=a&&0!=(3&s.type),r&je.Host&&o===s);return null!==u?ii(t,a,u,s):$n}function ni(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,c=o>>20,l=r?s+c:e.directiveEnd,h=i?s:s+c;h=u&&d.type===n)return h}if(r){var f=a[u];if(f&&kt(f)&&f.type===n)return u}return null}function ii(e,t,n,i){var r=e[n],o=t.data;if(r instanceof xn){var a=r;a.resolving&&function(e,t){throw new Ee("200","Circular dependency in DI detected for ".concat(e))}(ze(o[n]));var s=Yn(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?Ye(a.injectImpl):null;gn(e,i,je.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(r){var s=Lt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==u&&Ye(u),Yn(s),a.resolving=!1,bn()}}return r}function ri(e,t,n){return!!(n[t+(e>>5)]&1<=e.length?e.push(n):e.splice(t,0,n)}function vi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function yi(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function bi(e,t){var n=wi(e,t);if(n>=0)return e[1|n]}function wi(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var Mi,Ai={},ki=/\n/gm,Ti=be({provide:String,useValue:be});function Si(e){var t=Mi;return Mi=e,t}function Ci(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:je.Default;if(void 0===Mi)throw new Error("inject() must be called from an injection context");return null===Mi?We(e,void 0,t):Mi.get(e,t&je.Optional?null:void 0,t)}function Ei(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:je.Default;return(Ie||Ci)(Se(e),t)}var Li=Ei;function zi(e){for(var t=[],n=0;n"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();ar.hasOwnProperty(t)&&!nr.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(pr(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),dr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fr=/([^\#-~ |!])/g;function pr(e){return e.replace(/&/g,"&").replace(dr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(fr,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function gr(e,t){var n=null;try{tr=tr||function(e){var t=new Gi(e);return function(){try{return!!(new window.DOMParser).parseFromString(Ii(""),"text/html")}catch(e){return!1}}()?new Xi(t):t}(e);var i=t?String(t):"";n=tr.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=tr.getInertBodyElement(i)}while(i!==o);return Ii((new hr).sanitizeChildren(mr(n)||n))}finally{if(n)for(var a=mr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function mr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var vr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function yr(e){var t=br();return t?Bi(t.sanitize(vr.HTML,e)||""):Ki(e,"HTML")?Bi(Ui(e)):gr(xt(),Le(e))}function _r(e){var t=br();return t?t.sanitize(vr.URL,e)||"":Ki(e,"URL")?Ui(e):Zi(Le(e))}function br(){var e=Gt();return e&&e[12]}function wr(e,t){e.__ngContext__=t}function Mr(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Ar(e){return e.ngDebugContext}function kr(e){return e.ngOriginalError}function Tr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&(e[i-1][4]=r[4]);var a=vi(e,10+t);to(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function qr(e,t){if(!(256&t[2])){var n=t[11];Dt(n)&&n.destroyNode&&to(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return jr(e[1],e);for(;t;){var n=null;if(_t(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)_t(t)&&jr(t[1],t),t=t[3];null===t&&(t=e),_t(t)&&jr(t[1],t),n=t&&t[4]}t=n}}(t)}}function jr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{var l=i[r=n[o+1]];n[o].call(l)}if(null!==i){for(var h=r+1;ho?"":r[l+1].toLowerCase();var d=8&i?h:null;if(d&&-1!==oo(d,c,0)||2&i&&c!==h){if(lo(i))return!1;a=!0}}}}else{if(!a&&!lo(i)&&!lo(u))return!1;if(a&&lo(u))continue;a=!1,i=u|1&i}}return lo(i)||a}function lo(e){return 0==(1&e)}function ho(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||lo(a)||(t+=go(o,r),r=""),i=a,o=o||!lo(i);n++}return""!==r&&(t+=go(o,r)),t}var vo={};function yo(e){_o(Jt(),Gt(),Mn()+e,rn())}function _o(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&En(t,r,n)}else{var o=e.preOrderHooks;null!==o&&Ln(t,o,0,n)}An(n)}function bo(e,t){return e<<17|t<<2}function wo(e){return e>>17&32767}function Mo(e){return 2|e}function Ao(e){return(131068&e)>>2}function ko(e,t){return-131069&e|t<<2}function To(e){return 1|e}function So(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&_o(e,t,20,rn()),n(i,r)}finally{An(o)}}function Do(e,t,n){if(wt(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:Bt,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(i,r,a)}}function Wo(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Uo(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Ko(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&ea(n)}}function ea(e){for(var t=Dr(e);null!==t;t=Pr(t))for(var n=10;n0&&ea(i)}var o=e[1].components;if(null!==o)for(var a=0;a0&&ea(s)}}function ta(e,t){var n=qt(t,e),i=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:Ai;if(t===Ai){var n=new Error("NullInjectorError: No provider for ".concat(Me(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),ya=new hi("Set Injector scope."),_a={},ba={};function wa(){return void 0===ga&&(ga=new va),ga}function Ma(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Aa(e,n,t||wa(),i)}var Aa=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&gi(n,function(e){return r.processProvider(e,t,n)}),gi([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(ma,Sa(void 0,this));var s=this.records.get(ya);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:Me(t))}return w(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ai,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:je.Default;this.assertNotDestroyed();var i,r=Si(this);try{if(!(n&je.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(i=e)||"object"==typeof i&&i instanceof hi)&&De(e);o=a&&this.injectableDefInScope(a)?Sa(ka(e),_a):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&je.Self?wa():this.parent).get(e,t=n&je.Optional&&t===Ai?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Me(e)),r)throw s;return function(e,t,n,i){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=Me(t);if(Array.isArray(t))r=t.map(Me).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Me(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(ki,"\n "))}("\n"+e.message,r,"R3InjectorError",i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{Si(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(Me(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=Se(e)))return!1;var r=Ne(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=Ne(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{gi(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var c=function(e){var t=u[e],n=t.ngModule,r=t.providers;gi(r,function(e){return i.processProvider(e,n,r||et)})},l=0;l0){var n=yi(t,"?");throw new Error("Can't resolve all parameters for ".concat(Me(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[Be]||e[He]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Ta(e,t,n){var i,o;if(Ea(e)){var a=Se(e);return Tt(a)||ka(a)}if(Ca(e))i=function(){return Se(e.useValue)};else if((o=e)&&o.useFactory)i=function(){return e.useFactory.apply(e,r(zi(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return Ei(Se(e.useExisting))};else{var s=Se(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Tt(s)||ka(s);i=function(){return l(s,r(zi(e.deps)))}}return i}function Sa(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Ca(e){return null!==e&&"object"==typeof e&&Ti in e}function Ea(e){return"function"==typeof e}var La=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=Ma(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},za=function(){var e=function(){function e(){_(this,e)}return w(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?La(e,t,""):La(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Ai,e.NULL=new va,e.\u0275prov=Oe({token:e,providedIn:"any",factory:function(){return Ei(ma)}}),e.__NG_ELEMENT_ID__=-1,e}();function Ra(e,t){Cn(Mr(e)[1],Zt())}function Oa(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(kt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=xa(e.inputs),o.declaredInputs=xa(e.declaredInputs),o.outputs=xa(e.outputs);var a=r.hostBindings;a&&Na(e,a);var s=r.viewQuery,u=r.contentQueries;if(s&&Da(e,s),u&&Pa(e,u),we(e.inputs,r.inputs),we(e.declaredInputs,r.declaredInputs),we(e.outputs,r.outputs),kt(r)&&r.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(r.data.animation)}}var l=r.features;if(l)for(var h=0;h=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=In(r.hostAttrs,n=In(n,r.hostAttrs))}}(i)}function xa(e){return e===$e?{}:e===et?[]:e}function Da(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Pa(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Na(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Ia=null;function Ba(){if(!Ia){var e=Ze.Symbol;if(e&&e.iterator)Ia=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:je.Default,n=Gt();return null===n?Ei(e,t):Zn(Zt(),n,Se(e),t)}function Qa(e,t,n){var i=Gt();return Ya(i,un(),t)&&qo(Jt(),kn(),i,e,t,i[11],n,!1),Qa}function Za(e,t,n,i,r){var o=r?"class":"style";da(e,n,t.inputs[o],o,i)}function $a(e,t,n,i){var r=Gt(),o=Jt(),a=20+e,s=r[11],u=r[a]=Br(s,t,Vt.lFrame.currentNamespace),c=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,u=Eo(t,e,2,r,Wt(s,o));return jo(t,n,u,Wt(s,a)),null!==u.attrs&&pa(u,u.attrs,!1),null!==u.mergedAttrs&&pa(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,r,0,t,n,i):o.data[a];en(c,!0);var l=c.mergedAttrs;null!==l&&Dn(s,u,l);var h=c.classes;null!==h&&ro(s,u,h);var d=c.styles;null!==d&&io(s,u,d),64!=(64&c.flags)&&Jr(o,r,u,c),0===Vt.lFrame.elementDepthCount&&wr(u,r),Vt.lFrame.elementDepthCount++,At(c)&&(Po(o,r,c),Do(o,c,r)),null!==i&&No(r,c)}function es(){var e=Zt();tn()?nn():en(e=e.parent,!1);var t=e;Vt.lFrame.elementDepthCount--;var n=Jt();n.firstCreatePass&&(Cn(n,e),wt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Za(n,t,Gt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Za(n,t,Gt(),t.stylesWithoutHost,!1)}function ts(e,t,n,i){$a(e,t,n,i),es()}function ns(e,t,n){var i=Gt(),r=Jt(),o=e+20,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=Wt(o,i),s=Eo(t,e,8,"ng-container",a);return null!==a&&pa(s,a,!0),jo(t,n,s,Wt(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,r,i,t,n):r.data[o];en(a,!0);var s=i[o]=i[11].createComment("");Jr(r,i,s,a),wr(s,i),At(a)&&(Po(r,i,a),Do(r,a,i)),null!=n&&No(i,a)}function is(){var e=Zt(),t=Jt();tn()?nn():en(e=e.parent,!1),t.firstCreatePass&&(Cn(t,e),wt(e)&&t.queries.elementEnd(e))}function rs(e,t,n){ns(e,t,n),is()}function os(){return Gt()}function as(e){return!!e&&"function"==typeof e.then}function ss(e){return!!e&&"function"==typeof e.subscribe}var us=ss;function cs(e,t,n,i){var r=Gt(),o=Jt(),a=Zt();return hs(o,r,r[11],a,e,t,!!n,i),cs}function ls(e,t){var n=Zt(),i=Gt(),r=Jt();return hs(r,i,la(hn(r.data),n,i),n,e,t,!1),ls}function hs(e,t,n,i,r,o,a,s){var u=At(i),c=e.firstCreatePass&&ca(e),l=ua(t),h=!0;if(3&i.type||s){var d=Bt(i,t),f=s?s(d):d,p=l.length,g=s?function(e){return s(Nt(e[i.index]))}:i.index;if(Dt(n)){var m=null;if(!s&&u&&(m=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1;else{o=fs(i,t,0,o,!1);var v=n.listen(f,r,o);l.push(o,v),c&&c.push(r,g,p,p+1)}}else o=fs(i,t,0,o,!0),f.addEventListener(r,o,a),l.push(o),c&&c.push(r,g,p,a)}else o=fs(i,t,0,o,!1);var y,_=i.outputs;if(h&&null!==_&&(y=_[r])){var b=y.length;if(b)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Vt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Vt.lFrame.contextLView))[8]}(e)}function gs(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=Gt(),r=Jt(),o=Eo(r,20+e,16,null,n||null);null===o.projection&&(o.projection=t),nn(),64!=(64&o.flags)&&function(e,t,n){no(t[11],0,t,n,Yr(e,n,t),Xr(n.parent||t[6],n,t))}(r,i,o)}function ys(e,t,n){return _s(e,"",t,"",n),ys}function _s(e,t,n,i,r){var o=Gt(),a=Ka(o,t,n,i);return a!==vo&&qo(Jt(),kn(),o,e,a,o[11],r,!1),_s}function bs(e,t,n,i,r,o,a){var s=Gt(),u=Va(s,t,n,i,r,o);return u!==vo&&qo(Jt(),kn(),s,e,u,s[11],a,!1),bs}function ws(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?wo(o):Ao(o),u=!1;0!==s&&(!1===u||a);){var c=e[s+1];Ms(e[s],t)&&(u=!0,e[s+1]=i?To(c):Mo(c)),s=i?wo(c):Ao(c)}u&&(e[n+1]=i?Mo(o):To(o))}function Ms(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&wi(e,t)>=0}var As={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ks(e){return e.substring(As.key,As.keyEnd)}function Ts(e,t){var n=As.textEnd;return n===t?-1:(t=As.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,As.key=t,n),Ss(e,t,n))}function Ss(e,t,n){for(;t=0;n=Ts(t,n))_i(e,ks(t),!0)}function Rs(e,t,n,i){var r=Gt(),o=Jt(),a=cn(2);o.firstUpdatePass&&Ds(o,e,a,i),t!==vo&&Ya(r,a,t)&&Is(o,o.data[Mn()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Me(Ui(e)))),e}(t,n),i,a)}function Os(e,t,n,i){var r=Jt(),o=cn(2);r.firstUpdatePass&&Ds(r,null,o,i);var a=Gt();if(n!==vo&&Ya(a,o,n)){var s=r.data[Mn()];if(Hs(s,i)&&!xs(r,o)){var u=i?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(n=Ae(u,n||"")),Za(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===vo&&(r=et);for(var u=0,c=0,l=0=e.expandoStartIndex}function Ds(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[Mn()],a=xs(e,n);Hs(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=hn(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Ns(n=Ps(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=Ps(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Ao(i))return e[wo(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[wo(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Ns(s=Ps(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i,r=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(l=!0)}else c=n;if(r)if(0!==u){var d=wo(e[s+1]);e[i+1]=bo(d,s),0!==d&&(e[d+1]=ko(e[d+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=bo(s,0),0!==s&&(e[s+1]=ko(e[s+1],i)),s=i;else e[i+1]=bo(u,0),0===s?s=i:e[u+1]=ko(e[u+1],i),u=i;l&&(e[i+1]=Mo(e[i+1])),ws(e,c,i,!0),ws(e,c,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&wi(o,t)>=0&&(n[i+1]=To(n[i+1]))}(t,c,e,i,o),a=bo(s,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function Ps(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[r],c=Array.isArray(u),l=c?u[1]:u,h=null===l,d=n[r+1];d===vo&&(d=h?et:void 0);var f=h?bi(d,i):l===i?d:void 0;if(c&&!Fs(f)&&(f=bi(u,i)),Fs(f)&&(a=f,s))return a;var p=e[r+1];r=s?wo(p):Ao(p)}if(null!==t){var g=o?t.residualClasses:t.residualStyles;null!=g&&(a=bi(g,i))}return a}function Fs(e){return void 0!==e}function Hs(e,t){return 0!=(e.flags&(t?16:32))}function qs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Gt(),i=Jt(),r=e+20,o=i.firstCreatePass?Eo(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return Dt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Jr(i,n,a,o),en(o,!1)}function js(e){return Ys("",e,""),js}function Ys(e,t,n){var i=Gt(),r=Ka(i,e,t,n);return r!==vo&&fa(i,Mn(),r),Ys}function Ws(e,t,n,i,r){var o=Gt(),a=Va(o,e,t,n,i,r);return a!==vo&&fa(o,Mn(),a),Ws}function Us(e,t,n,i,r,o,a,s,u,c,l){var h=Gt(),d=function(e,t,n,i,r,o,a,s,u,c,l,h){var d=sn(),f=function(e,t,n,i,r,o){var a=Wa(e,t,n,i);return Wa(e,t+2,r,o)||a}(e,d,n,r,a,u);return f=Ya(e,d+4,l)||f,cn(5),f?t+Le(n)+i+Le(r)+o+Le(a)+s+Le(u)+c+Le(l)+h:vo}(h,e,t,n,i,r,o,a,s,u,c,l);return d!==vo&&fa(h,Mn(),d),Us}function Ks(e,t,n){Os(_i,zs,Ka(Gt(),e,t,n),!0)}function Vs(e,t,n){var i=Gt();return Ya(i,un(),t)&&qo(Jt(),kn(),i,e,t,i[11],n,!0),Vs}function Xs(e,t,n){var i=Gt();if(Ya(i,un(),t)){var r=Jt(),o=kn();qo(r,o,i,e,t,la(hn(r.data),o,i),n,!0)}return Xs}var Gs=void 0,Js=["en",[["a","p"],["AM","PM"],Gs],[["AM","PM"],Gs,Gs],[["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"]],Gs,[["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"]],Gs,[["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}",Gs,"{1} 'at' {0}",Gs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Qs={};function Zs(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=$s(t);if(n)return n;var i=t.split("-")[0];if(n=$s(i))return n;if("en"===i)return Js;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function $s(e){return e in Qs||(Qs[e]=Ze.ng&&Ze.ng.common&&Ze.ng.common.locales&&Ze.ng.common.locales[e]),Qs[e]}var eu=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function tu(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined"," [Expected=> null != ").concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function nu(e,t,n,i,r){if(e=Se(e),Array.isArray(e))for(var o=0;o>20;if(Ea(e)||!e.multi){var p=new xn(c,r,Ja),g=ou(u,t,r?h:h+f,d);-1===g?(Gn(Un(l,s),a,u),iu(a,e,t.length),t.push(u),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(p),s.push(p)):(n[g]=p,s[g]=p)}else{var m=ou(u,t,h+f,d),v=ou(u,t,h,h+f),y=m>=0&&n[m],_=v>=0&&n[v];if(r&&!_||!r&&!y){Gn(Un(l,s),a,u);var b=function(e,t,n,i,r){var o=new xn(e,n,Ja);return o.multi=[],o.index=t,o.componentProviders=0,ru(o,r,i&&!n),o}(r?su:au,n.length,r,i,c);!r&&_&&(n[v].providerFactory=b),iu(a,e,t.length,0),t.push(u),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(b),s.push(b)}else iu(a,e,m>-1?m:v,ru(n[r?v:m],c,!r&&i));!r&&i&&_&&n[v].componentProviders++}}}function iu(e,t,n,i){var r=Ea(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function ru(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ou(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=Jt();if(i.firstCreatePass){var r=kt(e);nu(n,i.data,i.blueprint,r,!0),nu(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var lu=function e(){_(this,e)},hu=function(){function e(){_(this,e)}return w(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Me(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),du=function(){var e=function e(){_(this,e)};return e.NULL=new hu,e}();function fu(){}function pu(e,t){return new mu(Bt(e,t))}var gu=function(){return pu(Zt(),Gt())},mu=function(){var e=function e(t){_(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=gu,e}();function vu(e){return e instanceof mu?e.nativeElement:e}var yu=function e(){_(this,e)},_u=function(){var e=function e(){_(this,e)};return e.__NG_ELEMENT_ID__=function(){return bu()},e}(),bu=function(){var e=Gt(),t=qt(Zt().index,e);return function(e){return e[11]}(_t(t)?t:e)},wu=function(){var e=function e(){_(this,e)};return e.\u0275prov=Oe({token:e,providedIn:"root",factory:function(){return null}}),e}(),Mu=function e(t){_(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Au=new Mu("12.0.5"),ku=function(){function e(){_(this,e)}return w(e,[{key:"supports",value:function(e){return Ha(e)}},{key:"create",value:function(e){return new Su(e)}}]),e}(),Tu=function(e,t){return t},Su=function(){function e(t){_(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Tu}return w(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=t[n.index];if(null!==a&&i.push(Nt(a)),bt(a))for(var s=10;s-1&&(Hr(e,n),vi(t,n))}this._attachedToViewContainer=!1}qr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Fo(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){ia(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){ra(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){on(!0);try{ra(e,t,n)}finally{on(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,to(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Hu=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this,e))._view=e,i}return w(n,[{key:"detectChanges",value:function(){oa(this._view)}},{key:"checkNoChanges",value:function(){!function(e){on(!0);try{oa(e)}finally{on(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Fu),qu=function(e){return function(e,t,n){if(Mt(e)&&!n){var i=qt(e.index,t);return new Fu(i,i)}return 47&e.type?new Fu(t[16],t):null}(Zt(),Gt(),16==(16&e))},ju=function(){var e=function e(){_(this,e)};return e.__NG_ELEMENT_ID__=qu,e}(),Yu=[new Ru],Wu=new Pu([new ku]),Uu=new Iu(Yu),Ku=function(){return Gu(Zt(),Gt())},Vu=function(){var e=function e(){_(this,e)};return e.__NG_ELEMENT_ID__=Ku,e}(),Xu=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return w(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Co(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),zo(t,n,e),new Fu(n)}}]),n}(Vu);function Gu(e,t){return 4&e.type?new Xu(t,e,pu(e,t)):null}var Ju=function e(){_(this,e)},Qu=function e(){_(this,e)},Zu=function(){return ic(Zt(),Gt())},$u=function(){var e=function e(){_(this,e)};return e.__NG_ELEMENT_ID__=Zu,e}(),ec=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return w(n,[{key:"element",get:function(){return pu(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new ai(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=Xn(this._hostTNode,this._hostLView);if(Fn(e)){var t=qn(e,this._hostLView),n=Hn(e);return new ai(t[1].data[n+8],t)}return new ai(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=tc(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(Ju,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(bt(i[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=i[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),c=this._lContainer;!function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}($u);function tc(e){return e[8]}function nc(e){return e[8]||(e[8]=[])}function ic(e,t){var n,i=t[e.index];if(bt(i))n=i;else{var r;if(8&e.type)r=Nt(i);else{var o=t[11];r=o.createComment("");var a=Bt(e,t);Wr(o,Vr(o,a),r,function(e,t){return Dt(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=Zo(i,t,r,e),na(t,n)}return new ec(n,e,t)}var rc={},oc=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this)).ngModule=e,i}return w(n,[{key:"resolveComponentFactory",value:function(e){var t=vt(e);return new uc(t,this.ngModule)}}]),n}(du);function ac(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var sc=new hi("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Cr}}),uc=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(mo).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return w(n,[{key:"inputs",get:function(){return ac(this.componentDef.inputs)}},{key:"outputs",get:function(){return ac(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,rc,r);return o!==rc||i===rc?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(yu,Pt),u=a.get(wu,null),c=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Dt(e))return e.selectRootElement(t,n===Ve.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(c,n,this.componentDef.encapsulation):Br(s.createRenderer(null,this.componentDef),l,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:Cr,clean:sa,playerHandler:null,flags:0},p=Bo(0,null,null,1,0,null,null,null,null,null),g=Co(null,p,f,d,null,null,s,c,u,a);mn(g);try{var m=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=Eo(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(pa(s,u,!0),null!==e&&(Dn(r,e,u),null!==s.classes&&ro(r,e,s.classes),null!==s.styles&&io(r,e,s.styles)));var c=i.createRenderer(e,t),l=Co(n,Io(t),null,t.onPush?64:16,n[20],s,i,c,null,null);return a.firstCreatePass&&(Gn(Un(s,n),a,t.type),Uo(a,s),Vo(s,n.length,1)),na(n,l),n[20]=l}(h,this.componentDef,g,s,c);if(h)if(n)Dn(c,h,["ng-version",Au.full]);else{var v=function(e){for(var t=[],n=[],i=1,r=2;i0&&ro(c,h,_.join(" "))}if(o=Ft(p,20),void 0!==t)for(var b=o.projection=[],w=0;w1&&void 0!==arguments[1]?arguments[1]:za.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:je.Default;return e===za||e===Ju||e===ma?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Ju),dc=function(e){d(n,e);var t=p(n);function n(e){var i,r,o;return _(this,n),(i=t.call(this)).moduleType=e,null!==yt(e)&&(r=e,o=new Set,function e(t){var n=yt(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Me(t)," vs ").concat(Me(t.name)))}(i,lc.get(i),t),lc.set(i,t));var r,s=a(zr(n.imports));try{for(s.s();!(r=s.n()).done;){var u=r.value;o.has(u)||(o.add(u),e(u))}}catch(c){s.e(c)}finally{s.f()}}(r)),i}return w(n,[{key:"create",value:function(e){return new hc(this.moduleType,e)}}]),n}(Qu);function fc(e,t,n){var i=an()+e,r=Gt();return r[i]===vo?ja(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function pc(e,t,n,i){return vc(Gt(),an(),e,t,n,i)}function gc(e,t,n,i,r){return yc(Gt(),an(),e,t,n,i,r)}function mc(e,t){var n=e[t];return n===vo?void 0:n}function vc(e,t,n,i,r,o){var a=t+n;return Ya(e,a,r)?ja(e,a+1,o?i.call(o,r):i(r)):mc(e,a+1)}function yc(e,t,n,i,r,o,a){var s=t+n;return Wa(e,s,r,o)?ja(e,s+2,a?i.call(a,r,o):i(r,o)):mc(e,s+2)}function _c(e,t){var n,i=Jt(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new Ee("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=Tt(n.type)),a=Ye(Ja);try{var s=Yn(!1),u=o();return Yn(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,Gt(),r,u),u}finally{Ye(a)}}function bc(e,t,n){var i=e+20,r=Gt(),o=Ht(r,i);return kc(r,Ac(r,i)?vc(r,an(),t,o.transform,n,o):o.transform(n))}function wc(e,t,n,i){var r=e+20,o=Gt(),a=Ht(o,r);return kc(o,Ac(o,r)?yc(o,an(),t,a.transform,n,i,a):a.transform(n,i))}function Mc(e,t,n,i,r){var o=e+20,a=Gt(),s=Ht(a,o);return kc(a,Ac(a,o)?function(e,t,n,i,r,o,a,s){var u=t+n;return function(e,t,n,i,r){var o=Wa(e,t,n,i);return Ya(e,t+2,r)||o}(e,u,r,o,a)?ja(e,u+3,s?i.call(s,r,o,a):i(r,o,a)):mc(e,u+3)}(a,an(),t,s.transform,n,i,r,s):s.transform(n,i,r))}function Ac(e,t){return e[1].data[t].pure}function kc(e,t){return Fa.isWrapped(t)&&(t=Fa.unwrap(t),e[sn()]=vo),t}function Tc(e){return function(t){setTimeout(e,void 0,t)}}var Sc=function(e){d(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _(this,n),(e=t.call(this)).__isAsync=i,e}return w(n,[{key:"emit",value:function(e){h(y(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var r,o,a,s=e,u=t||function(){return null},c=i;if(e&&"object"==typeof e){var l=e;s=null===(r=l.next)||void 0===r?void 0:r.bind(l),u=null===(o=l.error)||void 0===o?void 0:o.bind(l),c=null===(a=l.complete)||void 0===a?void 0:a.bind(l)}this.__isAsync&&(u=Tc(u),s&&(s=Tc(s)),c&&(c=Tc(c)));var d=h(y(n.prototype),"subscribe",this).call(this,{next:s,error:u,complete:c});return e instanceof L&&e.add(d),d}}]),n}(Y);function Cc(){return this._results[Ba()]()}var Ec=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Ba(),i=e.prototype;i[n]||(i[n]=Cc)}return w(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Sc)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){this.dirty=!1;var n=pi(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];_(this,e),this.queries=t}return w(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;_(this,e),this.predicate=t,this.flags=n,this.read=i},Oc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_(this,e),this.queries=t}return w(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return w(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[s/2]);else{for(var c=o[s+1],l=t[-u],h=10;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!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(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(dl))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),wl=function(){var e=function(){function e(){_(this,e),this._applications=new Map,Ml.addToWindow(this)}return w(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ml.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Ml=new(function(){function e(){_(this,e)}return w(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Al=!0,kl=!1;function Tl(){return kl=!0,Al}var Sl=new hi("AllowMultipleToken"),Cl=function e(t,n){_(this,e),this.name=t,this.token=n};function El(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new hi(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Ll();if(!o||o.injector.get(Sl,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:ya,useValue:"platform"});!function(e){if(yl&&!yl.destroyed&&!yl.injector.get(Sl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");yl=e.get(zl);var t=e.get(Jc,null);t&&t.forEach(function(e){return e()})}(za.create({providers:a,name:i}))}return function(e){var t=Ll();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Ll(){return yl&&!yl.destroyed?yl:null}var zl=function(){var e=function(){function e(t){_(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return w(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,o=(n=t?t.ngZone:void 0,i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===n?new _l:("zone.js"===n?void 0:n)||new dl({enableLongStackTrace:Tl(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),a=[{provide:dl,useValue:o}];return o.run(function(){var t=za.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Sr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var e=o.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){Dl(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var o=((a=n.injector.get(Kc)).runInitializers(),a.donePromise.then(function(){return tu(n.injector.get(el,"en-US")||"en-US"),r._moduleDoBootstrap(n),n}));return as(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(i,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Rl({},n);return function(e,t,n){var i=new dc(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(xl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(Me(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(za))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}();function Rl(e,t){return Array.isArray(t)?t.reduce(Rl,e):Object.assign(Object.assign({},e),t)}var Ol,xl=((Ol=function(){function e(t,n,i,r,o){var a=this;_(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var s=new I(function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){e.next(a._stable),e.complete()})}),u=new I(function(e){var t;a._zone.runOutsideAngular(function(){t=a._zone.onStable.subscribe(function(){dl.assertNotInAngularZone(),hl(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){dl.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=le(s,u.pipe(_e()))}return w(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof lu?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(Ju),o=n.create(za.NULL,[],t||n.selector,r),a=o.location.nativeElement,s=o.injector.get(bl,null),u=s&&o.injector.get(wl);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),Dl(i.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=a(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Dl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Zc,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||Ol)(Ei(dl),Ei(za),Ei(Sr),Ei(du),Ei(Kc))},Ol.\u0275prov=Oe({token:Ol,factory:Ol.\u0275fac}),Ol);function Dl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Pl=function e(){_(this,e)},Nl=function e(){_(this,e)},Il={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Bl=function(){var e=function(){function e(t,n){_(this,e),this._compiler=t,this._config=n||Il}return w(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var n=this,i=t(e.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),v(1730)(r).then(function(e){return e[o]}).then(function(e){return Fl(e,r,o)}).then(function(e){return n._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var n=t(e.split("#"),2),i=n[0],r=n[1],o="NgFactory";return void 0===r&&(r="default",o=""),v(1730)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+o]}).then(function(e){return Fl(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(cl),Ei(Nl,8))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}();function Fl(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Hl=El(null,"core",[{provide:Qc,useValue:"unknown"},{provide:zl,deps:[za]},{provide:wl,deps:[]},{provide:$c,deps:[]}]),ql=[{provide:xl,useClass:xl,deps:[dl,za,Sr,du,Kc]},{provide:sc,deps:[dl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Kc,useClass:Kc,deps:[[new Pi,Uc]]},{provide:cl,useClass:cl,deps:[]},Xc,{provide:Pu,useFactory:function(){return Wu},deps:[]},{provide:Iu,useFactory:function(){return Uu},deps:[]},{provide:el,useFactory:function(e){return tu(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new Di(el),new Pi,new Ni]]},{provide:tl,useValue:"USD"}],jl=function(){var e=function e(t){_(this,e)};return e.\u0275fac=function(t){return new(t||e)(Ei(xl))},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:ql}),e}(),Yl=null;function Wl(){return Yl}var Ul=new hi("DocumentToken"),Kl=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({factory:Vl,token:e,providedIn:"platform"}),e}();function Vl(){return Ei(Gl)}var Xl=new hi("Location Initialized"),Gl=function(){var e=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this))._doc=e,i._init(),i}return w(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return Wl().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=Wl().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=Wl().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){Jl()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){Jl()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}]),n}(Kl);return e.\u0275fac=function(t){return new(t||e)(Ei(Ul))},e.\u0275prov=Oe({factory:Ql,token:e,providedIn:"platform"}),e}();function Jl(){return!!window.history.pushState}function Ql(){return new Gl(Ei(Ul))}function Zl(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function $l(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function eh(e){return e&&"?"!==e[0]?"?"+e:e}var th=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({factory:nh,token:e,providedIn:"root"}),e}();function nh(e){var t=Ei(Ul).location;return new rh(Ei(Kl),t&&t.origin||"")}var ih=new hi("appBaseHref"),rh=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i){var r;if(_(this,n),(r=t.call(this))._platformLocation=e,r._removeListenerFns=[],null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,g(r)}return w(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return Zl(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+eh(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+eh(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+eh(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(th);return e.\u0275fac=function(t){return new(t||e)(Ei(Kl),Ei(ih,8))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),oh=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return w(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=Zl(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+eh(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+eh(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(th);return e.\u0275fac=function(t){return new(t||e)(Ei(Kl),Ei(ih,8))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),ah=function(){var e=function(){function e(t,n){var i=this;_(this,e),this._subject=new Sc,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=$l(uh(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return w(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+eh(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,uh(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+eh(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+eh(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(th),Ei(Kl))},e.normalizeQueryParams=eh,e.joinWithSlash=Zl,e.stripTrailingSlash=$l,e.\u0275prov=Oe({factory:sh,token:e,providedIn:"root"}),e}();function sh(){return new ah(Ei(th),Ei(Kl))}function uh(e){return e.replace(/\/index.html$/,"")}var ch=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),lh=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),hh=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),dh=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),fh=function(e){return 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[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function ph(e,t){return _h(Zs(e)[eu.DateFormat],t)}function gh(e,t){return _h(Zs(e)[eu.TimeFormat],t)}function mh(e,t){return _h(Zs(e)[eu.DateTimeFormat],t)}function vh(e,t){var n=Zs(e),i=n[eu.NumberSymbols][t];if(void 0===i){if(t===fh.CurrencyDecimal)return n[eu.NumberSymbols][fh.Decimal];if(t===fh.CurrencyGroup)return n[eu.NumberSymbols][fh.Group]}return i}function yh(e){if(!e[eu.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[eu.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function _h(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function bh(e){var n=t(e.split(":"),2);return{hours:+n[0],minutes:+n[1]}}var wh=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Mh={},Ah=/((?:[^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]*)/,kh=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),Th=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),Sh=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function Ch(e,n,i,r){var o=function(e){if(Hh(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){var n=t(e.split("-").map(function(e){return+e}),3),i=n[0],r=n[1],o=void 0===r?1:r,a=n[2];return Eh(i,o-1,void 0===a?1:a)}var s,u=parseFloat(e);if(!isNaN(e-u))return new Date(u);if(s=e.match(wh))return function(e){var t=new Date(0),n=0,i=0,r=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var a=Number(e[4]||0)-n,s=Number(e[5]||0)-i,u=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,s,u,c),t}(s)}var c=new Date(e);if(!Hh(c))throw new Error('Unable to convert "'.concat(e,'" into a date'));return c}(e);n=Lh(i,n)||n;for(var a,s=[];n;){if(!(a=Ah.exec(n))){s.push(n);break}var u=(s=s.concat(a.slice(1))).pop();if(!u)break;n=u}var c=o.getTimezoneOffset();r&&(c=Fh(r,c),o=function(e,t,n){var i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(Fh(t,i)-i))}(o,r));var l="";return s.forEach(function(e){var t=function(e){if(Bh[e])return Bh[e];var t;switch(e){case"G":case"GG":case"GGG":t=xh(Sh.Eras,hh.Abbreviated);break;case"GGGG":t=xh(Sh.Eras,hh.Wide);break;case"GGGGG":t=xh(Sh.Eras,hh.Narrow);break;case"y":t=Oh(Th.FullYear,1,0,!1,!0);break;case"yy":t=Oh(Th.FullYear,2,0,!0,!0);break;case"yyy":t=Oh(Th.FullYear,3,0,!1,!0);break;case"yyyy":t=Oh(Th.FullYear,4,0,!1,!0);break;case"Y":t=Ih(1);break;case"YY":t=Ih(2,!0);break;case"YYY":t=Ih(3);break;case"YYYY":t=Ih(4);break;case"M":case"L":t=Oh(Th.Month,1,1);break;case"MM":case"LL":t=Oh(Th.Month,2,1);break;case"MMM":t=xh(Sh.Months,hh.Abbreviated);break;case"MMMM":t=xh(Sh.Months,hh.Wide);break;case"MMMMM":t=xh(Sh.Months,hh.Narrow);break;case"LLL":t=xh(Sh.Months,hh.Abbreviated,lh.Standalone);break;case"LLLL":t=xh(Sh.Months,hh.Wide,lh.Standalone);break;case"LLLLL":t=xh(Sh.Months,hh.Narrow,lh.Standalone);break;case"w":t=Nh(1);break;case"ww":t=Nh(2);break;case"W":t=Nh(1,!0);break;case"d":t=Oh(Th.Date,1);break;case"dd":t=Oh(Th.Date,2);break;case"c":case"cc":t=Oh(Th.Day,1);break;case"ccc":t=xh(Sh.Days,hh.Abbreviated,lh.Standalone);break;case"cccc":t=xh(Sh.Days,hh.Wide,lh.Standalone);break;case"ccccc":t=xh(Sh.Days,hh.Narrow,lh.Standalone);break;case"cccccc":t=xh(Sh.Days,hh.Short,lh.Standalone);break;case"E":case"EE":case"EEE":t=xh(Sh.Days,hh.Abbreviated);break;case"EEEE":t=xh(Sh.Days,hh.Wide);break;case"EEEEE":t=xh(Sh.Days,hh.Narrow);break;case"EEEEEE":t=xh(Sh.Days,hh.Short);break;case"a":case"aa":case"aaa":t=xh(Sh.DayPeriods,hh.Abbreviated);break;case"aaaa":t=xh(Sh.DayPeriods,hh.Wide);break;case"aaaaa":t=xh(Sh.DayPeriods,hh.Narrow);break;case"b":case"bb":case"bbb":t=xh(Sh.DayPeriods,hh.Abbreviated,lh.Standalone,!0);break;case"bbbb":t=xh(Sh.DayPeriods,hh.Wide,lh.Standalone,!0);break;case"bbbbb":t=xh(Sh.DayPeriods,hh.Narrow,lh.Standalone,!0);break;case"B":case"BB":case"BBB":t=xh(Sh.DayPeriods,hh.Abbreviated,lh.Format,!0);break;case"BBBB":t=xh(Sh.DayPeriods,hh.Wide,lh.Format,!0);break;case"BBBBB":t=xh(Sh.DayPeriods,hh.Narrow,lh.Format,!0);break;case"h":t=Oh(Th.Hours,1,-12);break;case"hh":t=Oh(Th.Hours,2,-12);break;case"H":t=Oh(Th.Hours,1);break;case"HH":t=Oh(Th.Hours,2);break;case"m":t=Oh(Th.Minutes,1);break;case"mm":t=Oh(Th.Minutes,2);break;case"s":t=Oh(Th.Seconds,1);break;case"ss":t=Oh(Th.Seconds,2);break;case"S":t=Oh(Th.FractionalSeconds,1);break;case"SS":t=Oh(Th.FractionalSeconds,2);break;case"SSS":t=Oh(Th.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Dh(kh.Short);break;case"ZZZZZ":t=Dh(kh.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Dh(kh.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Dh(kh.Long);break;default:return null}return Bh[e]=t,t}(e);l+=t?t(o,i,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Eh(e,t,n){var i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function Lh(e,t){var n=function(e){return Zs(e)[eu.LocaleId]}(e);if(Mh[n]=Mh[n]||{},Mh[n][t])return Mh[n][t];var i="";switch(t){case"shortDate":i=ph(e,dh.Short);break;case"mediumDate":i=ph(e,dh.Medium);break;case"longDate":i=ph(e,dh.Long);break;case"fullDate":i=ph(e,dh.Full);break;case"shortTime":i=gh(e,dh.Short);break;case"mediumTime":i=gh(e,dh.Medium);break;case"longTime":i=gh(e,dh.Long);break;case"fullTime":i=gh(e,dh.Full);break;case"short":var r=Lh(e,"shortTime"),o=Lh(e,"shortDate");i=zh(mh(e,dh.Short),[r,o]);break;case"medium":var a=Lh(e,"mediumTime"),s=Lh(e,"mediumDate");i=zh(mh(e,dh.Medium),[a,s]);break;case"long":var u=Lh(e,"longTime"),c=Lh(e,"longDate");i=zh(mh(e,dh.Long),[u,c]);break;case"full":var l=Lh(e,"fullTime"),h=Lh(e,"fullDate");i=zh(mh(e,dh.Full),[l,h])}return i&&(Mh[n][t]=i),i}function zh(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function Rh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,o=n));for(var a=String(e);a.length2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s,u=function(e,t){switch(e){case Th.FullYear:return t.getFullYear();case Th.Month:return t.getMonth();case Th.Date:return t.getDate();case Th.Hours:return t.getHours();case Th.Minutes:return t.getMinutes();case Th.Seconds:return t.getSeconds();case Th.FractionalSeconds:return t.getMilliseconds();case Th.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,o);if((n>0||u>-n)&&(u+=n),e===Th.Hours)0===u&&-12===n&&(u=12);else if(e===Th.FractionalSeconds)return s=t,Rh(u,3).substr(0,s);var c=vh(a,fh.MinusSign);return Rh(u,t,c,i,r)}}function xh(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:lh.Format,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o,a){return function(e,n,i,r,o,a){switch(i){case Sh.Months:return function(e,t,n){var i=Zs(e),r=_h([i[eu.MonthsFormat],i[eu.MonthsStandalone]],t);return _h(r,n)}(n,o,r)[e.getMonth()];case Sh.Days:return function(e,t,n){var i=Zs(e),r=_h([i[eu.DaysFormat],i[eu.DaysStandalone]],t);return _h(r,n)}(n,o,r)[e.getDay()];case Sh.DayPeriods:var s=e.getHours(),u=e.getMinutes();if(a){var c=function(e){var t=Zs(e);return yh(t),(t[eu.ExtraData][2]||[]).map(function(e){return"string"==typeof e?bh(e):[bh(e[0]),bh(e[1])]})}(n),l=function(e,t,n){var i=Zs(e);yh(i);var r=_h([i[eu.ExtraData][0],i[eu.ExtraData][1]],t)||[];return _h(r,n)||[]}(n,o,r),h=c.findIndex(function(e){if(Array.isArray(e)){var n=t(e,2),i=n[0],r=n[1],o=s>=i.hours&&u>=i.minutes,a=s0?Math.floor(r/60):Math.ceil(r/60);switch(e){case kh.Short:return(r>=0?"+":"")+Rh(a,2,o)+Rh(Math.abs(r%60),2,o);case kh.ShortGMT:return"GMT"+(r>=0?"+":"")+Rh(a,1,o);case kh.Long:return"GMT"+(r>=0?"+":"")+Rh(a,2,o)+":"+Rh(Math.abs(r%60),2,o);case kh.Extended:return 0===i?"Z":(r>=0?"+":"")+Rh(a,2,o)+":"+Rh(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function Ph(e){return Eh(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Nh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var r,o,a;if(t){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,u=n.getDate();r=1+Math.floor((u+s)/7)}else{var c=Ph(n),l=(o=c.getFullYear(),a=Eh(o,0,1).getDay(),Eh(o,0,1+(a<=4?4:11)-a)),h=c.getTime()-l.getTime();r=1+Math.round(h/6048e5)}return Rh(r,e,vh(i,fh.MinusSign))}}function Ih(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){return Rh(Ph(n).getFullYear(),e,vh(i,fh.MinusSign),t)}}var Bh={};function Fh(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Hh(e){return e instanceof Date&&!isNaN(e.valueOf())}var qh=function e(){_(this,e)},jh=function(){var e=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this)).locale=e,i}return w(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return Zs(e)[eu.PluralCase]}(t||this.locale)(e)){case ch.Zero:return"zero";case ch.One:return"one";case ch.Two:return"two";case ch.Few:return"few";case ch.Many:return"many";default:return"other"}}}]),n}(qh);return e.\u0275fac=function(t){return new(t||e)(Ei(el))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}();function Yh(e,n){n=encodeURIComponent(n);var i,r=a(e.split(";"));try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.indexOf("="),u=t(-1==s?[o,""]:[o.slice(0,s),o.slice(s+1)],2),c=u[0],l=u[1];if(c.trim()===n)return decodeURIComponent(l)}}catch(h){r.e(h)}finally{r.f()}return null}var Wh=function(){var e=function(){function e(t,n,i,r){_(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return w(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ha(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Me(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(Pu),Ja(Iu),Ja(mu),Ja(_u))},e.\u0275dir=gt({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),Uh=function(){function e(t,n,i,r){_(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return w(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Kh=function(){var e=function(){function e(t,n,i){_(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return w(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Uh(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new Vh(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var u=new Vh(e,s);n.push(u)}});for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return Ch(t,n,r||this.locale,i)}catch(o){throw nd(e,o.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(el,16))},e.\u0275pipe=mt({name:"date",type:e,pure:!0}),e}(),ld=((id=function e(){_(this,e)}).\u0275fac=function(e){return new(e||id)},id.\u0275mod=ft({type:id}),id.\u0275inj=xe({providers:[{provide:qh,useClass:jh}]}),id);function hd(e){return"browser"===e}function dd(e){return"server"===e}var fd=function(){var e=function e(){_(this,e)};return e.\u0275prov=Oe({token:e,providedIn:"root",factory:function(){return new pd(Ei(Ul),window)}}),e}(),pd=function(){function e(t,n){_(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}}return w(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=function(e,t){var n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow))for(var i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;r;){var o=r.shadowRoot;if(o){var a=o.getElementById(t)||o.querySelector('[name="'.concat(t,'"]'));if(a)return a}r=i.nextNode()}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=gd(this.window.history)||gd(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}]),e}();function gd(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var md,vd=function e(){_(this,e)},yd=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){e.parentNode&&e.parentNode.removeChild(e)}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getBaseHref",value:function(e){var t=(_d=_d||document.querySelector("base"))?_d.getAttribute("href"):null;return null==t?null:function(e){(md=md||document.createElement("a")).setAttribute("href",e);var t=md.pathname;return"/"===t.charAt(0)?t:"/".concat(t)}(t)}},{key:"resetBaseElement",value:function(){_d=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(e){return Yh(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,Yl||(Yl=e)}}]),n}(function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments)).supportsDOMEvents=!0,e}return n}(function(){return function e(){_(this,e)}}())),_d=null,bd=new hi("TRANSITION_ID"),wd=[{provide:Uc,useFactory:function(e,t,n){return function(){n.get(Kc).donePromise.then(function(){var n=Wl();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[bd,Ul,za],multi:!0}],Md=function(){function e(){_(this,e)}return w(e,[{key:"addToWindow",value:function(e){Ze.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},Ze.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Ze.getAllAngularRootElements=function(){return e.getAllRootElements()},Ze.frameworkStabilizers||(Ze.frameworkStabilizers=[]),Ze.frameworkStabilizers.push(function(e){var t=Ze.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?Wl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Ml=t}}]),e}(),Ad=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),kd=new hi("EventManagerPlugins"),Td=function(){var e=function(){function e(t,n){var i=this;_(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return w(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&qd.hasOwnProperty(t)&&(t=qd[t]))}return Hd[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Fd.forEach(function(i){i!=n&&(0,jd[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Sd);return e.\u0275fac=function(t){return new(t||e)(Ei(Ul))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Wd=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({factory:function(){return Ei(Kd)},token:e,providedIn:"root"}),e}();function Ud(e){return new Kd(e.get(Ul))}var Kd=function(){var e=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this))._doc=e,i}return w(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case vr.NONE:return t;case vr.HTML:return Ki(t,"HTML")?Ui(t):gr(this._doc,String(t)).toString();case vr.STYLE:return Ki(t,"Style")?Ui(t):t;case vr.SCRIPT:if(Ki(t,"Script"))return Ui(t);throw new Error("unsafe value used in a script context");case vr.URL:return Vi(t),Ki(t,"URL")?Ui(t):Zi(String(t));case vr.RESOURCE_URL:if(Ki(t,"ResourceURL"))return Ui(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 ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new Hi(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new qi(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new ji(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new Yi(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new Wi(e)}}]),n}(Wd);return e.\u0275fac=function(t){return new(t||e)(Ei(Ul))},e.\u0275prov=Oe({factory:function(){return Ud(Ei(ma))},token:e,providedIn:"root"}),e}(),Vd=El(Hl,"browser",[{provide:Qc,useValue:"browser"},{provide:Jc,useValue:function(){yd.makeCurrent(),Md.init()},multi:!0},{provide:Ul,useFactory:function(){return function(e){St=e}(document),document},deps:[]}]),Xd=[[],{provide:ya,useValue:"root"},{provide:Sr,useFactory:function(){return new Sr},deps:[]},{provide:kd,useClass:Bd,multi:!0,deps:[Ul,dl,Qc]},{provide:kd,useClass:Yd,multi:!0,deps:[Ul]},[],{provide:Dd,useClass:Dd,deps:[Td,Ed,Vc]},{provide:yu,useExisting:Dd},{provide:Cd,useExisting:Ed},{provide:Ed,useClass:Ed,deps:[Ul]},{provide:bl,useClass:bl,deps:[dl]},{provide:Td,useClass:Td,deps:[kd,dl]},{provide:vd,useClass:Ad,deps:[]},[]],Gd=function(){var e=function(){function e(t){if(_(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return w(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:Vc,useValue:t.appId},{provide:bd,useExisting:Vc},wd]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(e,12))},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:Xd,imports:[ld,jl]}),e}();function Jd(){return new Qd(Ei(Ul))}var Qd=function(){var e=function(){function e(t){_(this,e),this._doc=t}return w(e,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Ul))},e.\u0275prov=Oe({factory:Jd,token:e,providedIn:"root"}),e}();function Zd(){for(var e=arguments.length,t=new Array(e),n=0;n0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return w(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,r(n)),this.headers.set(t,i);break;case"d":var o=e.value;if(o){var a=this.headers.get(t);if(!a)return;0===(a=a.filter(function(e){return-1===o.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),sf=function(){function e(){_(this,e)}return w(e,[{key:"encodeKey",value:function(e){return uf(e)}},{key:"encodeValue",value:function(e){return uf(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function uf(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function cf(e){return"".concat(e)}var lf=function(){function e(){var n,i,r,o=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_(this,e),this.updates=null,this.cloneFrom=null,this.encoder=a.encoder||new sf,a.fromString){if(a.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(n=a.fromString,i=this.encoder,r=new Map,n.length>0&&n.replace(/^\?/,"").split("&").forEach(function(e){var n=e.indexOf("="),o=t(-1==n?[i.decodeKey(e),""]:[i.decodeKey(e.slice(0,n)),i.decodeValue(e.slice(n+1))],2),a=o[0],s=o[1],u=r.get(a)||[];u.push(s),r.set(a,u)}),r)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach(function(e){var t=a.fromObject[e];o.map.set(e,Array.isArray(t)?t:[t])})):this.map=null}return w(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(cf(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(cf(t.value));-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),hf=function(){function e(){_(this,e),this.map=new Map}return w(e,[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function df(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function ff(e){return"undefined"!=typeof Blob&&e instanceof Blob}function pf(e){return"undefined"!=typeof FormData&&e instanceof FormData}var gf=function(){function e(t,n,i,r){var o;if(_(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new af),this.context||(this.context=new hf),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,u=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,c=n.headers||this.headers,l=n.params||this.params,h=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},c)),n.setParams&&(l=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},l)),new e(i,r,a,{params:l,headers:c,context:h,reportProgress:u,responseType:o,withCredentials:s})}}]),e}(),mf=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),vf=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_(this,e),this.headers=t.headers||new af,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},yf=function(e){d(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _(this,n),(e=t.call(this,i)).type=mf.ResponseHeader,e}return w(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(vf),_f=function(e){d(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _(this,n),(e=t.call(this,i)).type=mf.Response,e.body=void 0!==i.body?i.body:null,e}return w(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(vf),bf=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(vf);function wf(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Mf,Af,kf,Tf,Sf,Cf,Ef,Lf,zf,Rf,Of,xf,Df,Pf,Nf=function(){var e=function(){function e(t){_(this,e),this.handler=t}return w(e,[{key:"request",value:function(e,t){var n,i,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof gf?n=e:(i=a.headers instanceof af?a.headers:new af(a.headers),a.params&&(r=a.params instanceof lf?a.params:new lf({fromObject:a.params})),n=new gf(e,t,void 0!==a.body?a.body:null,{headers:i,context:a.context,params:r,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials}));var s=Zd(n).pipe($d(function(e){return o.handler.handle(e)}));if(e instanceof gf||"events"===a.observe)return s;var u=s.pipe(ef(function(e){return e instanceof _f}));switch(a.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(ee(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return u.pipe(ee(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return u.pipe(ee(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return u.pipe(ee(function(e){return e.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new lf).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,wf(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,wf(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,wf(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(rf))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),If=function(){function e(t,n){_(this,e),this.next=t,this.interceptor=n}return w(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Bf=new hi("HTTP_INTERCEPTORS"),Ff=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Hf=/^\)\]\}',?\n/,qf=function(){var e=function(){function e(t){_(this,e),this.xhrFactory=t}return w(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new I(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new af(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new yf({headers:r,status:t,statusText:n,url:o})},c=function(){var t=u(),r=t.headers,o=t.status,a=t.statusText,s=t.url,c=null;204!==o&&(c=void 0===i.response?i.responseText:i.response),0===o&&(o=c?200:0);var l=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof c){var h=c;c=c.replace(Hf,"");try{c=""!==c?JSON.parse(c):null}catch(d){c=h,l&&(l=!1,c={error:d,text:c})}}l?(n.next(new _f({body:c,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new bf({error:c,headers:r,status:o,statusText:a,url:s||void 0}))},l=function(e){var t=u().url,r=new bf({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},h=!1,d=function(t){h||(n.next(u()),h=!0);var r={type:mf.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(e){var t={type:mf.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",c),i.addEventListener("error",l),i.addEventListener("timeout",l),i.addEventListener("abort",l),e.reportProgress&&(i.addEventListener("progress",d),null!==a&&i.upload&&i.upload.addEventListener("progress",f)),i.send(a),n.next({type:mf.Sent}),function(){i.removeEventListener("error",l),i.removeEventListener("abort",l),i.removeEventListener("load",c),i.removeEventListener("timeout",l),e.reportProgress&&(i.removeEventListener("progress",d),null!==a&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(vd))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),jf=new hi("XSRF_COOKIE_NAME"),Yf=new hi("XSRF_HEADER_NAME"),Wf=function e(){_(this,e)},Uf=function(){var e=function(){function e(t,n,i){_(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return w(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Yh(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Ul),Ei(Qc),Ei(jf))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Kf=function(){var e=function(){function e(t,n){_(this,e),this.tokenService=t,this.headerName=n}return w(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Wf),Ei(Yf))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Vf=function(){var e=function(){function e(t,n){_(this,e),this.backend=t,this.injector=n,this.chain=null}return w(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Bf,[]);this.chain=t.reduceRight(function(e,t){return new If(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(of),Ei(za))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Xf=function(){var e=function(){function e(){_(this,e)}return w(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Kf,useClass:Ff}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:jf,useValue:t.cookieName}:[],t.headerName?{provide:Yf,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[Kf,{provide:Bf,useExisting:Kf,multi:!0},{provide:Wf,useClass:Uf},{provide:jf,useValue:"XSRF-TOKEN"},{provide:Yf,useValue:"X-XSRF-TOKEN"}]}),e}(),Gf=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[Nf,{provide:rf,useClass:Vf},qf,{provide:of,useExisting:qf}],imports:[[Xf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),Jf=function(){function e(){_(this,e)}return w(e,[{key:"encodeKey",value:function(e){return encodeURIComponent(e)}},{key:"encodeValue",value:function(e){return encodeURIComponent(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}(),Qf=new hi("basePath"),Zf=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_(this,e),this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}return w(e,[{key:"selectHeaderContentType",value:function(e){var t=this;if(0!==e.length){var n=e.find(function(e){return t.isJsonMime(e)});return void 0===n?e[0]:n}}},{key:"selectHeaderAccept",value:function(e){var t=this;if(0!==e.length){var n=e.find(function(e){return t.isJsonMime(e)});return void 0===n?e[0]:n}}},{key:"isJsonMime",value:function(e){var t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}]),e}(),$f=((Rf=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new af,this.configuration=new Zf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Jf}return w(e,[{key:"convertAttributeToNonunique",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("attributeDefinition",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/convertAttributeToNonunique"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"convertAttributeToUnique",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("attributeDefinition",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/convertAttributeToUnique"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"createAttributeDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/createAttribute"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"deleteAttributeDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("attribute",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/deleteAttribute"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteAttributeDefinitions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");var i=new lf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("attributes[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/deleteAttributes"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllAttributeDefinitions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributesDefinition"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAttribute",value:function(e,t,n,i,r,o,a,s,u,c,l){var h=arguments.length>11&&void 0!==arguments[11]?arguments[11]:"body",d=arguments.length>12&&void 0!==arguments[12]&&arguments[12],f=new lf({encoder:this.encoder});null!=e&&(f=f.set("attributeName",e)),null!=t&&(f=f.set("attributeId",t)),null!=n&&(f=f.set("facility",n)),null!=i&&(f=f.set("user",i)),null!=r&&(f=f.set("vo",r)),null!=o&&(f=f.set("resource",o)),null!=a&&(f=f.set("member",a)),null!=s&&(f=f.set("group",s)),null!=u&&(f=f.set("host",u)),null!=c&&(f=f.set("userExtSource",c)),null!=l&&(f=f.set("key",l));var p=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(p=p.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(p=p.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var g="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;p=p.set("Authorization","Bearer "+g)}var m=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==m&&(p=p.set("Accept",m)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/any"),{params:f,withCredentials:this.configuration.withCredentials,headers:p,observe:h,reportProgress:d})}},{key:"getAttributeDefinitionById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeDefinitionById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributeDefinitionByName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("attributeName",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeDefinition"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributeDefinitionsByNamespace",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributesDefinitionByNamespace"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAttributeModulesDependenciesForAttributeGraphText",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("format",e)),null!=t&&(r=r.set("attrName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getAttributeModulesDependenciesGraphText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("format",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeModulesDependenciesGraphText"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributeRights",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("attributeId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeRights"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributesDefinitionWithRights",value:function(e,t,n,i,r,o,a,s){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"body",c=arguments.length>9&&void 0!==arguments[9]&&arguments[9],l=new lf({encoder:this.encoder});null!=e&&(l=l.set("member",e)),null!=t&&(l=l.set("user",t)),null!=n&&(l=l.set("vo",n)),null!=i&&(l=l.set("group",i)),null!=r&&(l=l.set("resource",r)),null!=o&&(l=l.set("facility",o)),null!=a&&(l=l.set("host",a)),null!=s&&(l=l.set("userExtSource",s));var h=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(h=h.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(h=h.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var d="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;h=h.set("Authorization","Bearer "+d)}var f=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==f&&(h=h.set("Accept",f)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/getAttributesDefinitionWithRights"),{params:l,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:c})}},{key:"getEntitylessAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("key",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-entityless"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getEntitylessAttributesByKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("key",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/key"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getEntitylessAttributesByName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("attrName",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getEntitylessAttributesWithKeys",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("attrName",e)),t&&t.forEach(function(e){r=r.append("keys[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessAttributesWithKeys"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getEntitylessKeys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("attributeDefinition",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessKeys"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getFacilityAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getFacilityAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getFacilityAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getFacilityAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getFacilityResourceUserMemberAttributes",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("facility",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("user",n)),null!=i&&(a=a.set("member",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-r-u-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getFacilityUserAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-u"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-group"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-group"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/g"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/g-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupResourceAttributeById",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("attributeId",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-group-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getGroupResourceAttributeByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("attributeName",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-group-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getGroupResourceAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/group-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getHostAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("host",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-host"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getHostAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("host",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-host"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getHostAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("host",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/h"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getHostAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("host",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/h-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getLogins",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getLogins"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMemberAndUserAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("workWithUserAttributes",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-wu"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getMemberAndUserAttributesByNames",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),t&&t.forEach(function(e){o=o.append("attrNames[]",e)}),null!=n&&(o=o.set("workWithUserAttributes",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-names-wu"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getMemberAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMemberAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getMemberGroupAndUserAttributesByNames",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),n&&n.forEach(function(e){a=a.append("attrNames[]",e)}),null!=i&&(a=a.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g-names-wu"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getMemberGroupAttributeById",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),null!=n&&(o=o.set("attributeId",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member-group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberGroupAttributeByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),null!=n&&(o=o.set("attributeName",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member-group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberGroupAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getMemberGroupAttributesByNames",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),n&&n.forEach(function(e){o=o.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g-names"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("workWithUserAttributes",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r-wu"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributesByNames",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("resource",t)),n&&n.forEach(function(e){a=a.append("attrNames[]",e)}),null!=i&&(a=a.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r-names-wu"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getMemberResourceAttributeById",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("attributeId",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberResourceAttributeByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("attributeName",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberResourceAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRequiredAttributesDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("service",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributesDefinition"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRequiredAttributesFacility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/f"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRequiredAttributesFacilityService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRequiredAttributesFacilityServices",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("services[]",e)}),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/ss-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRequiredAttributesGroupResourceService",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("service",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("group",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-g"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getRequiredAttributesHostService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("host",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-h"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRequiredAttributesMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("workWithUserAttributes",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRequiredAttributesMemberGroup",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),null!=n&&(o=o.set("workWithUserAttributes",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m-g"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getRequiredAttributesMemberGroupResourceService",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==n)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");var s=new lf({encoder:this.encoder});null!=e&&(s=s.set("service",e)),null!=t&&(s=s.set("resource",t)),null!=n&&(s=s.set("group",n)),null!=i&&(s=s.set("member",i)),null!=r&&(s=s.set("workWithUserAttributes",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-g-m"),{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"getRequiredAttributesMemberGroupService",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("service",e)),null!=t&&(a=a.set("group",t)),null!=n&&(a=a.set("member",n)),null!=i&&(a=a.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-g-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getRequiredAttributesMemberResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("workWithUserAttributes",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m-r"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getRequiredAttributesMemberResourceService",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("service",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("member",n)),null!=i&&(a=a.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getRequiredAttributesResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/r"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRequiredAttributesResourceService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRequiredAttributesResourceServices",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("services[]",e)}),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/ss-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRequiredAttributesUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/u"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRequiredAttributesUserFacility",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/u-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRequiredAttributesVoService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("vo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-v"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourceAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourceAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourceAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourceGroupAndGroupAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("resource",e)),null!=t&&(o=o.set("group",t)),null!=n&&(o=o.set("workWithGroupAttributes",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-wg"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getResourceGroupAndGroupAttributesByNames",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("resource",e)),null!=t&&(a=a.set("group",t)),n&&n.forEach(function(e){a=a.append("attrNames[]",e)}),null!=i&&(a=a.set("workWithGroupAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-names-wg"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getResourceGroupAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourceGroupMemberAttributesByNames",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("resource",e)),null!=t&&(a=a.set("group",t)),null!=n&&(a=a.set("member",n)),i&&i.forEach(function(e){a=a.append("attrNames[]",e)});var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-m-names"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getUserAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-user"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getUserAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-user"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/u"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/u-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getUserExtSourceAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-ues"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getUserExtSourceAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-ues"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getUserExtSourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("userExtSource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/ues"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserExtSourceAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/ues-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getUserFacilityAttributeById",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("facility",t)),null!=n&&(o=o.set("attributeId",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-user_facility"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getUserFacilityAttributeByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("facility",t)),null!=n&&(o=o.set("attributeName",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-user_facility"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getUserFacilityAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/user-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getVoAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("attributeId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-vo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getVoAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("attributeName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-vo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getVoAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/vo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/vo-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeAttributesForFacilityResourceGroupUserMember",value:function(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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==n)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");var u=new lf({encoder:this.encoder});null!=e&&(u=u.set("facility",e)),null!=t&&(u=u.set("resource",t)),null!=n&&(u=u.set("group",n)),null!=i&&(u=u.set("user",i)),null!=r&&(u=u.set("member",r)),o&&o.forEach(function(e){u=u.append("attributes[]",e)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:s})}},{key:"removeAttributesForFacilityResourceUserMember",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");var s=new lf({encoder:this.encoder});null!=e&&(s=s.set("facility",e)),null!=t&&(s=s.set("resource",t)),null!=n&&(s=s.set("user",n)),null!=i&&(s=s.set("member",i)),r&&r.forEach(function(e){s=s.append("attributes[]",e)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f-r-u-m"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"removeEntitylessAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("key",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/e"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeFacilityAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeFacilityAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeGroupAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeGroupAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeGroupResourceAttribute",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("attribute",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/g-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeGroupResourceAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),n&&n.forEach(function(e){o=o.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeGroupResourceAttributesWorkWithGroupAttributes",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("group",e)),null!=t&&(a=a.set("resource",t)),n&&n.forEach(function(e){a=a.append("attributes[]",e)}),null!=i&&(a=a.set("workWithGroupAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"removeHostAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("host",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/h"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeHostAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("host",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/h"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeMemberAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeMemberAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeMemberAttributesWorkWithUserAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),t&&t.forEach(function(e){o=o.append("attributes[]",e)}),null!=n&&(o=o.set("workWithUserAttributes",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeMemberGroupAttribute",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),null!=n&&(o=o.set("attribute",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeMemberGroupAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),n&&n.forEach(function(e){o=o.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeMemberGroupAttributesWorkWithUserAttributes",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),n&&n.forEach(function(e){a=a.append("attributes[]",e)}),null!=i&&(a=a.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"removeMemberResourceAttribute",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("attribute",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeMemberResourceAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),n&&n.forEach(function(e){o=o.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeResourceAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/r"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeResourceAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/r"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeUesAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/ues"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeUserAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeUserAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeUserExtSourceAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/ues"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeUserFacilityAttribute",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("facility",t)),null!=n&&(o=o.set("attribute",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/u-f"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeUserFacilityAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("facility",t)),n&&n.forEach(function(e){o=o.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/u-f"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeVoAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("attribute",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeVoAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"setAttributeRights",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributeRights"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setEntitylessAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/entityless"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/facility"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityResourceGroupUserMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-r-g-u-m"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityResourceUserMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-r-u-m"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-u"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setGroupAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/group"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/g"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setGroupResourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/group-resource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setGroupResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/group-resource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setHostAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/host"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setHostAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/h"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberGroupAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member-group"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-g"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberGroupWithUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-g-wu"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberResourceAndUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-r-wu"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberResourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member-resource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-r"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberWithUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-wu"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setResourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/resource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setResourceGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r-g"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setResourceGroupWithGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r-g-wg"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/user"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/u"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserExtSourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/userExtSource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserExtSourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/ues"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserFacilityAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/facility-user"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserFacilityAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/facility-user"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setVoAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/vo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setVoAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/vo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateAttributeDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/updateAttributeDefinition"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||Rf)(Ei(Nf),Ei(Qf,8),Ei(Zf,8))},Rf.\u0275prov=Oe({token:Rf,factory:Rf.\u0275fac,providedIn:"root"}),Rf),ep=((zf=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new af,this.configuration=new Zf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Jf}return w(e,[{key:"getAllPolicies",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAllPolicies"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAllRolesManagementRules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAllRolesManagementRules"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAuthzAdminGroups",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("role",e)),null!=t&&(o=o.set("complementaryObjectId",t)),null!=n&&(o=o.set("complementaryObjectName",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAdminGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getAuthzRichAdmins",value:function(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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==n)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");var u=new lf({encoder:this.encoder});null!=e&&(u=u.set("role",e)),null!=t&&(u=u.set("complementaryObjectId",t)),null!=n&&(u=u.set("complementaryObjectName",n)),i&&i.forEach(function(e){u=u.append("specificAttributes",e)}),null!=r&&(u=u.set("allUserAttributes",r)),null!=o&&(u=u.set("onlyDirectAdmins",o));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getRichAdmins"),{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:s})}},{key:"getFacilitiesWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");var r=new lf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getFacilitiesWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupRoleNames",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getGroupRoleNames"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupRoles",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("groupId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/getGroupRoles"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupsWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");var r=new lf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getGroupsWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getLoggedUser",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getLoggedUser"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getMembersWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");var r=new lf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getMembersWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getPerunPrincipal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getPerunPrincipal"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPrincipalRoleNames",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getPrincipalRoleNames"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getResourcesWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");var r=new lf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getResourcesWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getSecurityTeamsWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");var r=new lf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getSecurityTeamsWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getUserRoleNames",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getUserRoleNames"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserRoles",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("userId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getUserRoles"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");var r=new lf({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getVosWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"isFacilityAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new lf({encoder:this.encoder});null!=e&&(i=i.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isFacilityAdmin"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"isGroupAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new lf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isGroupAdmin"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"isPerunAdmin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/isPerunAdmin"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"isVoAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isVoAdmin"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"keepAlive",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/keepAlive"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"loadAuthorizationComponents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/loadAuthorizationComponents"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"setRoleWithGroupComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/setRole/g-co"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setRoleWithUserComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/setRole/u-co"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"unsetRoleWithGroupComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/unsetRole/g-co"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"unsetRoleWithUserComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/unsetRole/u-co"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||zf)(Ei(Nf),Ei(Qf,8),Ei(Zf,8))},zf.\u0275prov=Oe({token:zf,factory:zf.\u0275fac,providedIn:"root"}),zf),tp=((Lf=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new af,this.configuration=new Zf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Jf}return w(e,[{key:"addMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),null!=t&&(r=r.set("member",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/addMember"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"addMembers",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("members[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/addMembers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"canExtendMembershipInGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/canExtendMembershipInGroup"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"createGroupUnion",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resultGroup",e)),null!=t&&(r=r.set("operandGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroupUnion"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"createGroupWithParentGroupNameDescription",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("parentGroup",e)),null!=t&&(o=o.set("name",t)),null!=n&&(o=o.set("description",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroup/pg-n-d"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"createGroupWithVoNameDescription",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("name",t)),null!=n&&(o=o.set("description",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroup/v-n-d"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"deleteGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("force",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/deleteGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"deleteGroups",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroups.");if(null==t)throw new Error("Required parameter forceDelete was null or undefined when calling deleteGroups.");var r=new lf({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),null!=t&&(r=r.set("forceDelete",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/deleteGroups"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"extendMembershipInGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/extendMembershipInGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"forceAllSubGroupsSynchronization",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"forceGroupStructureSynchronization",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceGroupStructureSynchronization"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"forceGroupSynchronization",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceGroupSynchronization"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllMemberGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllMemberGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllRichGroupsWithAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getAllRichSubGroupsWithGroupAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichSubGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getGroupById.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("name",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupByName"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupMemberById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("member",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMemberById"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupMembersCount",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCount"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupMembersCountsByGroupStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCountsByGroupStatus"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupMembersCountsByVoStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCountsByVoStatus"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupRichMembersByIds",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),t&&t.forEach(function(e){o=o.append("members[]",e)}),n&&n.forEach(function(e){o=o.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupRichMembersByIds"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getGroupUnions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("reverseDirection",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupUnions"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupsByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");var i=new lf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupsByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getIndirectMembershipPaths",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getIndirectMembershipPaths"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getMemberGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getMemberGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMemberRichGroupsWithAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getMemberRichGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRichGroupByIdWithAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getRichGroupByIdWithAttributesByNames.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("groupId",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getRichGroupByIdWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"isGroupMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/isGroupMember"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"moveGroupWithDestinationGroupMovingGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");var r=new lf({encoder:this.encoder});null!=t&&(r=r.set("destinationGroup",t)),null!=e&&(r=r.set("movingGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/moveGroup/dg-mg"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeGroupUnion",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resultGroup",e)),null!=t&&(r=r.set("operandGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeGroupUnion"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),null!=t&&(r=r.set("member",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeMember"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeMembers",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("members[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeMembers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"setGroupsMemberStatus",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),null!=n&&(o=o.set("status",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/setGroupsMemberStatus"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"updateGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/updateGroup"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||Lf)(Ei(Nf),Ei(Qf,8),Ei(Zf,8))},Lf.\u0275prov=Oe({token:Lf,factory:Lf.\u0275fac,providedIn:"root"}),Lf),np=((Ef=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new af,this.configuration=new Zf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Jf}return w(e,[{key:"canExtendMembership",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/canExtendMembership"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"createMemberForCandidate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/c"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createMemberForUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/u"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createMemberFromExtSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/extSource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createSpecificMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSpecificMember"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createSponsoredMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMember/withFullName"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createSponsoredMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMembers"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createSponsoredMembersFromCSV",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMembersFromCSV"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"deleteMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling deleteMember.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/deleteMember"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");var i=new lf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("members[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/deleteMembers"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"extendMembership",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembership.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/extendMembership"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"findCompleteRichMembersByAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new lf({encoder:this.encoder});e&&e.forEach(function(e){o=o.append("attrsNames[]",e)}),null!=t&&(o=o.set("searchString",t)),n&&n.forEach(function(e){o=o.append("allowedStatuses[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/attrs"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"findCompleteRichMembersForGroup",value:function(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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==n)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");var u=new lf({encoder:this.encoder});null!=e&&(u=u.set("group",e)),t&&t.forEach(function(e){u=u.append("attrsNames[]",e)}),r&&r.forEach(function(e){u=u.append("allowedStatuses[]",e)}),o&&o.forEach(function(e){u=u.append("allowedGroupStatuses[]",e)}),null!=n&&(u=u.set("searchString",n)),null!=i&&(u=u.set("lookingInParentGroup",i));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/g"),{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:s})}},{key:"findCompleteRichMembersForVo",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),t&&t.forEach(function(e){a=a.append("attrsNames[]",e)}),i&&i.forEach(function(e){a=a.append("allowedStatuses[]",e)}),null!=n&&(a=a.set("searchString",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/v"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"findMembersInVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("searchString",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findMembersInVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"findSponsoredCompleteRichMembersForVo",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),t&&t.forEach(function(e){a=a.append("attrsNames[]",e)}),null!=n&&(a=a.set("searchString",n)),null!=i&&(a=a.set("onlySponsored",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/v-sponsored"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getAllNamespacesRules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllNamespacesRules"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAllSponsoredMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllSponsoredMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllSponsoredMembersAndTheirSponsors",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllSponsoredMembersAndTheirSponsors"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getCompleteRichMembersForGroup",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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.");var s=new lf({encoder:this.encoder});null!=e&&(s=s.set("group",e)),n&&n.forEach(function(e){s=s.append("allowedStatuses[]",e)}),i&&i.forEach(function(e){s=s.append("allowedGroupStatuses[]",e)}),null!=t&&(s=s.set("lookingInParentGroup",t)),r&&r.forEach(function(e){s=s.append("attrsNames[]",e)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/g"),{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"getCompleteRichMembersForGroupResource",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("group",e)),null!=t&&(a=a.set("resource",t)),n&&n.forEach(function(e){a=a.append("attrsNames[]",e)}),i&&i.forEach(function(e){a=a.append("allowedStatuses[]",e)});var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/g-r"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getCompleteRichMembersForVo",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),t&&t.forEach(function(e){o=o.append("allowedStatuses[]",e)}),n&&n.forEach(function(e){o=o.append("attrsNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/v"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberByExtSourceNameAndExtLogin",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("extLogin",t)),null!=n&&(o=o.set("extSourceName",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberByExtSourceNameAndExtLogin"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMemberById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMemberByUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberByUser"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getMembers",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembers.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("status",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembers"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getMembersByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");var i=new lf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMembersByUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersByUser"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMembersCount",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersCount"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMembersPage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/getMembersPage"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"getMembersWithStatusCount",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("status",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersCount/status"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getRichMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMember.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMember"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichMemberWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMemberWithAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichMembersByIds",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");var r=new lf({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("ids[]",e)}),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMembersByIds"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getSponsoredMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsoredMembers/v"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getSponsoredMembersAndTheirSponsors",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsoredMembersAndTheirSponsors"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getSponsorsByMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsors/member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getSponsorsByVo",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("extSourceName",t)),null!=n&&(a=a.set("extLogin",n)),i&&i.forEach(function(e){a=a.append("attrNames[]",e)});var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsors/vo"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"moveMembership",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("sourceUser",t)),null!=n&&(o=o.set("targetUser",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/moveMembership"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"removeSponsor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("sponsor",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/removeSponsor"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"sendAccountActivationLinkEmail",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("namespace",t)),null!=n&&(a=a.set("emailAttributeURN",n)),null!=i&&(a=a.set("language",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sendAccountActivationLinkEmail"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"sendPasswordResetLinkEmail",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("namespace",t)),null!=n&&(a=a.set("emailAttributeURN",n)),null!=i&&(a=a.set("language",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sendPasswordResetLinkEmail"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"setSponsoredMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/setSponsoredMember"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setSponsorshipForMember",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("sponsoredMember",e)),null!=t&&(o=o.set("sponsor",t)),null!=n&&(o=o.set("validityTo",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/setSponsorshipForMember"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"setStatus",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("status",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/setStatus"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"sponsorMember",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("sponsor",t)),null!=n&&(o=o.set("validityTo",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sponsorMember"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"updateSponsorshipValidity",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("sponsor",t)),null!=n&&(o=o.set("validityTo",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/updateSponsorshipValidity"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"validateMemberAsync",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/validateMemberAsync"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||Ef)(Ei(Nf),Ei(Qf,8),Ei(Zf,8))},Ef.\u0275prov=Oe({token:Ef,factory:Ef.\u0275fac,providedIn:"root"}),Ef),ip=((Cf=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new af,this.configuration=new Zf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Jf}return w(e,[{key:"sentMessageToRTWithMemberQueue",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("memberId",e)),null!=t&&(a=a.set("queue",t)),null!=n&&(a=a.set("subject",n)),null!=i&&(a=a.set("text",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"sentMessageToRTWithQueue",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("queue",e)),null!=t&&(o=o.set("subject",t)),null!=n&&(o=o.set("text",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/q"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"sentMessageToRTWithVo",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("voId",e)),null!=t&&(o=o.set("subject",t)),null!=n&&(o=o.set("text",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/v"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"sentMessageToRTWithVoQueue",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("voId",e)),null!=t&&(a=a.set("queue",t)),null!=n&&(a=a.set("subject",n)),null!=i&&(a=a.set("text",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}}]),e}()).\u0275fac=function(e){return new(e||Cf)(Ei(Nf),Ei(Qf,8),Ei(Zf,8))},Cf.\u0275prov=Oe({token:Cf,factory:Cf.\u0275fac,providedIn:"root"}),Cf),rp=((Sf=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new af,this.configuration=new Zf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Jf}return w(e,[{key:"addApplicationMailForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/addApplicationMail/g"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"addApplicationMailForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/addApplicationMail/v"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"addGroupsToAutoRegistration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");var i=new lf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("groups[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/addGroupsToAutoRegistration"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"approveApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/approveApplication"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"consolidateIdentityUsingToken",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("token",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/consolidateIdentityUsingToken"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"copyFormFromGroupToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new lf({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/groupToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"copyFormFromGroupToVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new lf({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toVo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/groupToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"copyFormFromVoToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new lf({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/voToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"copyFormFromVoToVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new lf({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toVo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/voToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"copyMailsFromGroupToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new lf({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/groupToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"copyMailsFromGroupToVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new lf({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toVo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/groupToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"copyMailsFromVoToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new lf({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/voToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"copyMailsFromVoToVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new lf({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toVo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/voToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"createApplicationFormInGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/createApplicationForm/group"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"createApplicationFormInVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/createApplicationForm/vo"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplication"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteApplicationMailForGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("id",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplicationMail/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"deleteApplicationMailForVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("id",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplicationMail/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"deleteGroupsFromAutoRegistration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");var i=new lf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("groups[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationDataById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationDataById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationMailsForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationMails/g"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationMailsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationMails/v"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationsForGroup",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("group",e)),t&&t.forEach(function(e){a=a.append("state[]",e)}),null!=n&&(a=a.set("dateFrom",n)),null!=i&&(a=a.set("dateTo",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForGroup"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getApplicationsForMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForMember"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getApplicationsForVo",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),t&&t.forEach(function(e){a=a.append("state[]",e)}),null!=n&&(a=a.set("dateFrom",n)),null!=i&&(a=a.set("dateTo",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForVo"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getConsolidatorToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getConsolidatorToken"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getFormItemsForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/group"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getFormItemsForGroupWithType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("type",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/group-type"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getFormItemsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/vo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getFormItemsForVoWithType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("type",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/vo-type"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupApplicationForm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationForm/group"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupsToAutoRegistration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getGroupsToAutoRegistration"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoApplicationForm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationForm/vo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"rejectApplication",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("id",e)),null!=t&&(r=r.set("reason",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/rejectApplication"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"sendInvitation",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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.");var a=new lf({encoder:this.encoder});null!=n&&(a=a.set("voId",n)),null!=i&&(a=a.set("name",i)),null!=e&&(a=a.set("email",e)),null!=t&&(a=a.set("language",t));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"sendInvitationForGroup",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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.");var s=new lf({encoder:this.encoder});null!=n&&(s=s.set("voId",n)),null!=i&&(s=s.set("groupId",i)),null!=r&&(s=s.set("name",r)),null!=e&&(s=s.set("email",e)),null!=t&&(s=s.set("language",t));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/g"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"sendInvitationGroupToExistingUser",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=new lf({encoder:this.encoder});null!=e&&(o=o.set("userId",e)),null!=t&&(o=o.set("voId",t)),null!=n&&(o=o.set("groupId",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/u-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"sendInvitationToExistingUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new lf({encoder:this.encoder});null!=e&&(r=r.set("userId",e)),null!=t&&(r=r.set("voId",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/sendMessage"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setSendingEnabled",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/setSendingEnabled"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"submitApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/submitApplication"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateApplicationMail",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateApplicationMail"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateForm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateForm"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateFormItemData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItemData"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateFormItemsData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItemsData"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateFormItemsForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItems/group"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateFormItemsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItems/vo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"verifyApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/verifyApplication"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||Sf)(Ei(Nf),Ei(Qf,8),Ei(Zf,8))},Sf.\u0275prov=Oe({token:Sf,factory:Sf.\u0275fac,providedIn:"root"}),Sf),op=((Tf=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new af,this.configuration=new Zf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Jf}return w(e,[{key:"activateGroupResourceAssignment",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("async",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/activateGroupResourceAssignment"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"addAdminToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addAdmin/r-g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"addAdminToUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addAdmin/r-u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"addResourceSelfServiceGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addResourceSelfServiceGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"addResourceSelfServiceUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addResourceSelfServiceUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"allowGroupsToResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new lf({encoder:this.encoder});e&&e.forEach(function(e){o=o.append("groups[]",e)}),t&&t.forEach(function(e){o=o.append("resources[]",e)}),null!=n&&(o=o.set("async",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/allowGroupsToResources"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"assignGroupToResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("async",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupToResource"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"assignGroupToResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),t&&t.forEach(function(e){o=o.append("resources[]",e)}),null!=n&&(o=o.set("async",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupToResources"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"assignGroupsToResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new lf({encoder:this.encoder});e&&e.forEach(function(e){o=o.append("groups[]",e)}),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("async",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupsToResource"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"assignResourceTagToResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/assignResourceTagToResource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"assignService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("service",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"assignServices",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("services[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignServices"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"assignServicesPackage",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("servicesPackage",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"copyResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/copyResource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createResource",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter name was null or undefined when calling createResource.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("facility",t)),null!=n&&(a=a.set("name",n)),null!=i&&(a=a.set("description",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/createResource"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"createResourceTagWithResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/createResourceTag/resourceTag"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createResourceTagWithTagName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("tagName",e)),null!=t&&(r=r.set("vo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/createResourceTag/tagName"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"deactivateGroupResourceAssignment",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"deleteAllResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteAllResources"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteAllResourcesTagsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteResource"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/deleteResourceTag"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"getAdminGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAdminGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAdmins",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("onlyDirectAdmins",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAdmins"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getAllResourcesByResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesByResourceTag"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"getAllResourcesTagsForResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesTagsForResource"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllResourcesTagsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesTagsForVo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllResourcesWhereUserIsAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/all"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllowedMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllowedResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedResources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllowedUsersOfResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedUsers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedGroups",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("member",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedGroups"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getAssignedMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedResourcesWithGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResources/g"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedResourcesWithMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResources/m"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichResourcesWithGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/g"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichResourcesWithMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/m"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichResourcesWithMemberService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("service",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/s-m"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getAssignedServicesToResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedServices"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getBansForMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBansForMember"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getBansForResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBansForResource"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getEnrichedResourceById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("id",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourceById"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getEnrichedResourcesForFacility",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourcesForFacility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getEnrichedResourcesForVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourcesForVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getFacility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacility.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getFacility"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupAssignments",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getGroupAssignments"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourceAssignments",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceAssignments"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourceBan",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBan"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourceBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBanById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourceById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getResourceById.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourceByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("facility",t)),null!=n&&(o=o.set("name",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceByName"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourcesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");var i=new lf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourcesCountForAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesCount/all"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getResourcesCountForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesCount/vo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourcesFromVoWhereUserIsAdmin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getResourcesWhereGroupIsAdmin",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("facility",e)),null!=t&&(o=o.set("vo",t)),null!=n&&(o=o.set("group",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getResourcesWhereUserIsAdmin",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("facility",e)),null!=t&&(o=o.set("vo",t)),null!=n&&(o=o.set("user",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getRichAdmins",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("resource",e)),t&&t.forEach(function(e){a=a.append("specificAttributes",e)}),null!=n&&(a=a.set("allUserAttributes",n)),null!=i&&(a=a.set("onlyDirectAdmins",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichAdmins"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getRichResourceById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResourceById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichResourcesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");var i=new lf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResourcesByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getVo.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getVo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"removeAllResourceTagsFromResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"removeBanByMemberAndResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeBan/member-resource-id"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeGroupAdminResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAdmin/r-g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeGroupFromResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupFromResource"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeGroupFromResources",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("resources[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupFromResources"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeGroupsFromResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupsFromResource"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeResourceBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeBan/id"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"removeResourceSelfServiceGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("group",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeResourceSelfServiceUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeResourceSelfServiceUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeResourceTagFromResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/removeResourceTagFromResource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"removeService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("service",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeServices",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("services[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeServices"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeServicesPackage",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("servicesPackage",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeUserAdminResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAdmin/r-u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"setResourceBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/setBan"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"unallowGroupsFromResources",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),t&&t.forEach(function(e){r=r.append("resources[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/unallowGroupsFromResources"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"updateResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateResource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateResourceBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateBan"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateResourceTag"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||Tf)(Ei(Nf),Ei(Qf,8),Ei(Zf,8))},Tf.\u0275prov=Oe({token:Tf,factory:Tf.\u0275fac,providedIn:"root"}),Tf),ap=((kf=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new af,this.configuration=new Zf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Jf}return w(e,[{key:"addSpecificUserOwner",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("specificUser",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/addSpecificUserOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"addUserExtSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/addUserExtSource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"changeNonAuthzPasswordByToken",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("token",e)),null!=t&&(o=o.set("password",t)),null!=n&&(o=o.set("lang",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changeNonAuthzPassword/token"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"changePasswordForLogin",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==e)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==n)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");var s=new lf({encoder:this.encoder});null!=e&&(s=s.set("login",e)),null!=t&&(s=s.set("namespace",t)),null!=n&&(s=s.set("newPassword",n)),null!=i&&(s=s.set("oldPassword",i)),null!=r&&(s=s.set("checkOldPassword",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changePassword/login"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"changePasswordForUser",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==e)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==n)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");var s=new lf({encoder:this.encoder});null!=e&&(s=s.set("user",e)),null!=t&&(s=s.set("namespace",t)),null!=n&&(s=s.set("newPassword",n)),null!=i&&(s=s.set("oldPassword",i)),null!=r&&(s=s.set("checkOldPassword",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changePassword/user"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"checkPasswordResetRequestByTokenIsValid",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("token",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/checkPasswordResetRequestIsValid/token"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"checkPasswordStrength",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("password",e)),null!=t&&(r=r.set("namespace",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/checkPasswordStrength"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"createAlternativePassword",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("description",t)),null!=n&&(a=a.set("loginNamespace",n)),null!=i&&(a=a.set("password",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/createAlternativePassword"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"createServiceUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/createServiceUser"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"deleteAlternativePassword",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("loginNamespace",t)),null!=n&&(o=o.set("passwordId",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deleteAlternativePassword"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"deletePasswordForLogin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("login",e)),null!=t&&(r=r.set("namespace",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deletePassword/login"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"deletePasswordForUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("namespace",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deletePassword/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"deleteUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("force",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deleteUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"findRichUsers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("searchString",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findRichUsers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"findRichUsersWithAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("searchString",e)),t&&t.forEach(function(e){r=r.append("attrsNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findRichUsersWithAttributes"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"findUsers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("searchString",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findUsers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichResourcesForUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getAssignedRichResources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupsForFacilityWhereUserIsActive",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsActive/facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupsForResourceWhereUserIsActive",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("resource",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsActive/resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupsInVoWhereUserIsAdmin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("vo",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsAdmin/u-v"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getGroupsWhereUserIsAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsAdmin/u"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getPendingPreferredEmailChanges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getPendingPreferredEmailChanges"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUserExtSources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUserExtSources/u"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUserWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUserWithAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUsersByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");var i=new lf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUsersWithAttributesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");var i=new lf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersWithAttributesByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUsersWithoutVoWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new lf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("attrsNames[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersWithoutVoWithAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getSpecificUsersByUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSpecificUsersByUser"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getSponsorsForMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSponsorsForMember/member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getSponsorsForMemberByVoAndLogin",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");var a=new lf({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("extSourceName",t)),null!=n&&(a=a.set("extLogin",n)),i&&i.forEach(function(e){a=a.append("attrNames[]",e)});var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+u)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(s=s.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSponsorsForMember/vo"),{params:a,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:o})}},{key:"getUserByExtSourceNameAndExtLogin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("extLogin",e)),null!=t&&(r=r.set("extSourceName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserByExtSourceNameAndExtLogin"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getUserById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserExtSourceById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("userExtSource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourceById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserExtSources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserExtSourcesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");var i=new lf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourcesByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUsersByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");var i=new lf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsersByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUsersBySpecificUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("specificUser",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsersBySpecificUser"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosWhereUserIsAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getVosWhereUserIsAdmin"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosWhereUserIsMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getVosWhereUserIsMember"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"isLoginAvailable",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("loginNamespace",e)),null!=t&&(r=r.set("login",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/isLoginAvailable"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"loginExist",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("namespace",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/loginExist"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeSpecificUserOwner",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("specificUser",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/removeSpecificUserOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeUserExtSource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("userExtSource",t)),null!=n&&(o=o.set("force",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/removeUserExtSource"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"requestPreferredEmailChange",value:function(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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.");var u=new lf({encoder:this.encoder});null!=e&&(u=u.set("user",e)),null!=t&&(u=u.set("email",t)),null!=n&&(u=u.set("lang",n)),null!=i&&(u=u.set("linkPath",i)),null!=r&&(u=u.set("customUrl",r)),null!=o&&(u=u.set("idpFilter",o));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(c=c.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/requestPreferredEmailChange"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:s})}},{key:"reservePasswordForLogin",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==n)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("login",e)),null!=t&&(o=o.set("namespace",t)),null!=n&&(o=o.set("password",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reservePassword/login"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"reservePasswordForUser",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==n)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("namespace",t)),null!=n&&(o=o.set("password",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reservePassword/user"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"reserveRandomPassword",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("namespace",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reserveRandomPassword"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"updateUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/updateUser"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"validatePasswordForLogin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("login",e)),null!=t&&(r=r.set("namespace",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePassword/login"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"validatePasswordForUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("namespace",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePassword/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"validatePreferredEmailChangeWithToken",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("token",e)),null!=t&&(r=r.set("u",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePreferredEmailChange"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}}]),e}()).\u0275fac=function(e){return new(e||kf)(Ei(Nf),Ei(Qf,8),Ei(Zf,8))},kf.\u0275prov=Oe({token:kf,factory:kf.\u0275fac,providedIn:"root"}),kf),sp=((Af=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new af,this.configuration=new Zf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Jf}return w(e,[{key:"getAppsConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getAppsConfig"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getGuiConfiguration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getGuiConfiguration"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPerunRPCVersion",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPerunStatistics",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunStatistics"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPerunStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunStatus"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPerunSystemTimeInMillis",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunSystemTimeInMillis"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}}]),e}()).\u0275fac=function(e){return new(e||Af)(Ei(Nf),Ei(Qf,8),Ei(Zf,8))},Af.\u0275prov=Oe({token:Af,factory:Af.\u0275fac,providedIn:"root"}),Af),up=((Mf=function(){function e(t,n,i){_(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new af,this.configuration=new Zf,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Jf}return w(e,[{key:"addSponsorRoleToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addSponsorRole/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"addSponsorRoleToUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addSponsorRole/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"addVoAdminGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"addVoAdminUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"createVoWithName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("name",e)),null!=t&&(r=r.set("shortName",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/createVo/withName"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"createVoWithVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/createVo/withVo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"deleteVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("force",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/deleteVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"findCandidates",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("id",e)),null!=t&&(o=o.set("searchString",t)),null!=n&&(o=o.set("maxNumOfResults",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/findCandidates"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"findCandidatesForGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("searchString",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/findCandidates/forGroup"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getAllVos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAllVos"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getCompleteCandidatesForGroup",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("group",e)),t&&t.forEach(function(e){o=o.append("attrNames[]",e)}),null!=n&&(o=o.set("searchString",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getCompleteCandidates/forGroup"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getCompleteCandidatesForVo",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),t&&t.forEach(function(e){o=o.append("attrNames[]",e)}),null!=n&&(o=o.set("searchString",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getCompleteCandidates/forVo"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getMyVos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVos"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getRichAdminsForVo",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");var s=new lf({encoder:this.encoder});null!=e&&(s=s.set("vo",e)),null!=t&&(s=s.set("role",t)),n&&n.forEach(function(e){s=s.append("specificAttributes",e)}),null!=i&&(s=s.set("allUserAttributes",i)),null!=r&&(s=s.set("onlyDirectAdmins",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+c)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getRichAdmins"),{params:s,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"getVoAdminGroups",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("role",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAdminGroups"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"getVoAdminUsers",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");var o=new lf({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("role",t)),null!=n&&(o=o.set("onlyDirectAdmins",n));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+s)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAdmins"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:i,reportProgress:r})}},{key:"getVoBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBanById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoBanForMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBanForMember"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoBansForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBansForVo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getVoById.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoByShortName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new lf({encoder:this.encoder});null!=e&&(i=i.set("shortName",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoByShortName"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoMembersCountsByStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoMembersCountsByStatus"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");var i=new lf({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVosByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVosCount"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"removeSponsorRoleFromGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeSponsorRole/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeSponsorRoleFromUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeSponsorRole/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeVoAdminGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeVoAdminUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new lf({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(o=o.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:i})}},{key:"removeVoBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeBan"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"removeVoBanForMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");var i=new lf({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeBanForMember"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"setVoBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/setBan"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(i=i.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/updateVo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||Mf)(Ei(Nf),Ei(Qf,8),Ei(Zf,8))},Mf.\u0275prov=Oe({token:Mf,factory:Mf.\u0275fac,providedIn:"root"}),Mf);!function(e){e.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},e.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(Of||(Of={})),function(e){e.FormatEnum={DOT:"DOT",TGF:"TGF"}}(xf||(xf={})),function(e){e.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(Df||(Df={})),function(e){e.TypeEnum={Technical:"technical",Administrative:"administrative"}}(Pf||(Pf={}));var cp=function(e){return e.PERUNADMIN="PERUNADMIN",e.PERUNOBSERVER="PERUNOBSERVER",e.VOADMIN="VOADMIN",e.GROUPADMIN="GROUPADMIN",e.SELF="SELF",e.FACILITYADMIN="FACILITYADMIN",e.FACILITIYOBSERVER="FACILITYOBSERVER",e.RESOURCEADMIN="RESOURCEADMIN",e.RESOURCESELFSERVICE="RESOURCESELFSERVICE",e.REGISTRAR="REGISTRAR",e.ENGINE="ENGINE",e.RPC="RPC",e.NOTIFICATIONS="NOTIFICATIONS",e.SERVICEUSER="SERVICEUSER",e.SPONSOR="SPONSOR",e.VOOBSERVER="VOOBSERVER",e.TOPGROUPCREATOR="TOPGROUPCREATOR",e.SECURITYADMIN="SECURITYADMIN",e.CABINETADMIN="CABINETADMIN",e.UNKNOWNROLENAME="UNKNOWNROLENAME",e}({}),lp=function(){var e=function(){function e(t){_(this,e),this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}return w(e,[{key:"init",value:function(e){this.principal=e,this.initData(e)}},{key:"setPerunPolicies",value:function(e){this.perunPolicies=e}},{key:"getPerunPolicies",value:function(){return this.perunPolicies}},{key:"isAuthorized",value:function(e,t){if(null===this.principal.roles)return!1;var n,i=[],r=a(this.fetchPolicyWithAllIncludedPolicies(e));try{for(r.s();!(n=r.n()).done;){var o=n.value;i=i.concat(o.perunRoles)}}catch(u){r.e(u)}finally{r.f()}var s=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(i,s)}},{key:"resolveAuthorization",value:function(e,t){var n,i=a(e);try{for(i.s();!(n=i.n()).done;){for(var r=n.value,o=!0,s=0,u=Object.keys(r);s=2&&(n=!0),function(i){return i.lift(new Rp(e,t,n))}}var Rp=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Op(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Op=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return w(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(O);function xp(e){return function(t){var n=new Dp(e),i=t.lift(n);return n.caught=i}}var Dp=function(){function e(t){_(this,e),this.selector=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Pp(e,this.selector,this.caught))}}]),e}(),Pp=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return w(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void h(y(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var i=new K(this,void 0,void 0);this.add(i);var r=Z(this,t,void 0,void 0,i);r!==i&&this.add(r)}}}]),n}($);function Np(e){return function(t){return 0===e?bp():t.lift(new Ip(e))}}var Ip=function(){function e(t){if(_(this,e),this.total=t,this.total<0)throw new Tp}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Bp(e,this.total))}}]),e}(),Bp=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return w(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:jp;return function(t){return t.lift(new Hp(e))}}var Hp=function(){function e(t){_(this,e),this.errorFactory=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new qp(e,this.errorFactory))}}]),e}(),qp=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return w(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(O);function jp(){return new vp}function Yp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Wp(e))}}var Wp=function(){function e(t){_(this,e),this.defaultValue=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Up(e,this.defaultValue))}}]),e}(),Up=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return w(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(O);function Kp(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?ef(function(t,n){return e(t,n,i)}):P,Sp(1),n?Yp(t):Fp(function(){return new vp}))}}function Vp(){}function Xp(e,t,n){return function(i){return i.lift(new Gp(e,t,n))}}var Gp=function(){function e(t,n,i){_(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Jp(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Jp=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this,e))._tapNext=Vp,a._tapError=Vp,a._tapComplete=Vp,a._tapError=r||Vp,a._tapComplete=o||Vp,b(i)?(a._context=m(a),a._tapNext=i):i&&(a._context=i,a._tapNext=i.next||Vp,a._tapError=i.error||Vp,a._tapComplete=i.complete||Vp),a}return w(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(O);function Qp(e){return function(t){return t.lift(new Zp(e))}}var Zp=function(){function e(t){_(this,e),this.callback=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new $p(e,this.callback))}}]),e}(),$p=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).add(new L(i)),r}return n}(O),eg=function e(t,n){_(this,e),this.id=t,this.url=n},tg=function(e){d(n,e);var t=p(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return w(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(eg),ng=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return w(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(eg),ig=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e,i)).reason=r,o}return w(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(eg),rg=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e,i)).error=r,o}return w(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(eg),og=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return w(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(eg),ag=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return w(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(eg),sg=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a){var s;return _(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return w(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(eg),ug=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return w(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(eg),cg=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return w(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(eg),lg=function(){function e(t){_(this,e),this.route=t}return w(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),hg=function(){function e(t){_(this,e),this.route=t}return w(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),dg=function(){function e(t){_(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fg=function(){function e(t){_(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),pg=function(){function e(t){_(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),gg=function(){function e(t){_(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),mg=function(){function e(t,n,i){_(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return w(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),vg=function(){function e(t){_(this,e),this.params=t||{}}return w(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function yg(e){return new vg(e)}function _g(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function bg(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function Tg(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Sg(e){return us(e)?e:as(e)?re(Promise.resolve(e)):Zd(e)}var Cg={exact:function e(t,n,i){if(!Ng(t.segments,n.segments))return!1;if(!Og(t.segments,n.segments,i))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r],i))return!1}return!0},subset:zg},Eg={exact:function(e,t){return wg(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return Mg(e[n],t[n])})},ignored:function(){return!0}};function Lg(e,t,n){return Cg[n.paths](e.root,t.root,n.matrixParams)&&Eg[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function zg(e,t,n){return Rg(e,t,t.segments,n)}function Rg(e,t,n,i){if(e.segments.length>n.length){var r=e.segments.slice(0,n.length);return!!Ng(r,n)&&!t.hasChildren()&&!!Og(r,n,i)}if(e.segments.length===n.length){if(!Ng(e.segments,n))return!1;if(!Og(e.segments,n,i))return!1;for(var o in t.children){if(!e.children[o])return!1;if(!zg(e.children[o],t.children[o],i))return!1}return!0}var a=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!Ng(e.segments,a)&&!!Og(e.segments,a,i)&&!!e.children.primary&&Rg(e.children.primary,t,s,i)}function Og(e,t,n){return t.every(function(t,i){return Eg[n](e[i].parameters,t.parameters)})}var xg=function(){function e(t,n,i){_(this,e),this.root=t,this.queryParams=n,this.fragment=i}return w(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=yg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Fg.serialize(this)}}]),e}(),Dg=function(){function e(t,n){var i=this;_(this,e),this.segments=t,this.children=n,this.parent=null,Tg(n,function(e,t){return e.parent=i})}return w(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Hg(this)}}]),e}(),Pg=function(){function e(t,n){_(this,e),this.path=t,this.parameters=n}return w(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=yg(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return Vg(this)}}]),e}();function Ng(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var Ig=function e(){_(this,e)},Bg=function(){function e(){_(this,e)}return w(e,[{key:"parse",value:function(e){var t=new Zg(e);return new xg(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,i;return"/".concat(qg(e.root,!0)).concat((n=e.queryParams,i=Object.keys(n).map(function(e){var t=n[e];return Array.isArray(t)?t.map(function(t){return"".concat(Yg(e),"=").concat(Yg(t))}).join("&"):"".concat(Yg(e),"=").concat(Yg(t))}).filter(function(e){return!!e}),i.length?"?".concat(i.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),Fg=new Bg;function Hg(e){return e.segments.map(function(e){return Vg(e)}).join("/")}function qg(e,t){if(!e.hasChildren())return Hg(e);if(t){var n=e.children.primary?qg(e.children.primary,!1):"",i=[];return Tg(e.children,function(e,t){"primary"!==t&&i.push("".concat(t,":").concat(qg(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return Tg(e.children,function(e,i){"primary"===i&&(n=n.concat(t(e,i)))}),Tg(e.children,function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return"primary"===n?[qg(e.children.primary,!1)]:["".concat(n,":").concat(qg(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(Hg(e),"/").concat(r[0]):"".concat(Hg(e),"/(").concat(r.join("//"),")")}function jg(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Yg(e){return jg(e).replace(/%3B/gi,";")}function Wg(e){return jg(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ug(e){return decodeURIComponent(e)}function Kg(e){return Ug(e.replace(/\+/g,"%20"))}function Vg(e){return"".concat(Wg(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(Wg(e),"=").concat(Wg(t[e]))}).join("")));var t}var Xg=/^[^\/()?;=#]+/;function Gg(e){var t=e.match(Xg);return t?t[0]:""}var Jg=/^[^=?&#]+/,Qg=/^[^?&#]+/,Zg=function(){function e(t){_(this,e),this.url=t,this.remaining=t}return w(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Dg([],{}):new Dg([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Dg(e,t)),n}},{key:"parseSegment",value:function(){var e=Gg(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Pg(Ug(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Gg(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Gg(this.remaining);i&&(n=i,this.capture(n))}e[Ug(t)]=Ug(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Jg);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Qg);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=Kg(t),o=Kg(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Gg(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new Dg([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),$g=function(){function e(t){_(this,e),this._root=t}return w(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=em(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=em(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=tm(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return tm(e,this._root).map(function(e){return e.value})}}]),e}();function em(e,t){if(e===t.value)return t;var n,i=a(t.children);try{for(i.s();!(n=i.n()).done;){var r=em(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function tm(e,t){if(e===t.value)return[t];var n,i=a(t.children);try{for(i.s();!(n=i.n()).done;){var r=tm(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var nm=function(){function e(t,n){_(this,e),this.value=t,this.children=n}return w(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function im(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var rm=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).snapshot=i,lm(m(r),e),r}return w(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}($g);function om(e,t){var n=function(e,t){var n=new um([],{},{},"",{},"primary",t,null,e.root,-1,{});return new cm("",new nm(n,[]))}(e,t),i=new dp([new Pg("",{})]),r=new dp({}),o=new dp({}),a=new dp({}),s=new dp(""),u=new am(i,r,a,s,o,"primary",t,n.root);return u.snapshot=n.root,new rm(new nm(u,[]),n)}var am=function(){function e(t,n,i,r,o,a,s,u){_(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return w(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(ee(function(e){return yg(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ee(function(e){return yg(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function sm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var um=function(){function e(t,n,i,r,o,a,s,u,c,l,h){_(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=l,this._resolve=h}return w(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=yg(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=yg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),cm=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,i)).url=e,lm(m(r),i),r}return w(n,[{key:"toString",value:function(){return hm(this._root)}}]),n}($g);function lm(e,t){t.value._routerState=e,t.children.forEach(function(t){return lm(e,t)})}function hm(e){var t=e.children.length>0?" { ".concat(e.children.map(hm).join(", ")," } "):"";return"".concat(e.value).concat(t)}function dm(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,wg(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),wg(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&mm(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(vm);if(r&&r!==kg(i))throw new Error("{outlets:{}} has to be the last command")}return w(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),wm=function e(t,n,i){_(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function Mm(e,t,n){if(e||(e=new Dg([],{})),0===e.segments.length&&e.hasChildren())return Am(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=e.segments[r],s=n[i];if(vm(s))break;var u="".concat(s),c=i0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!Cm(u,c,a))return o;i+=2}else{if(!Cm(u,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},jm):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||bg)(n,e,t);if(!r)return Object.assign({},jm);var o={};Tg(r.posParams,function(e,t){o[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Wm(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Um(e,t,n)&&"primary"!==Hm(n)})}(e,n,i)){var o=new Dg(t,function(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,s=a(n);try{for(s.s();!(o=s.n()).done;){var u=o.value;if(""===u.path&&"primary"!==Hm(u)){var c=new Dg([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,r[Hm(u)]=c}}}catch(l){s.e(l)}finally{s.f()}return r}(e,t,i,new Dg(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Um(e,t,n)})}(e,n,i)){var s=new Dg(e.segments,function(e,t,n,i,r,o){var s,u={},c=a(i);try{for(c.s();!(s=c.n()).done;){var l=s.value;if(Um(e,n,l)&&!r[Hm(l)]){var h=new Dg([],{});h._sourceSegment=e,h._segmentIndexShift="legacy"===o?e.segments.length:t.length,u[Hm(l)]=h}}}catch(d){c.e(d)}finally{c.f()}return Object.assign(Object.assign({},r),u)}(e,t,n,i,e.children,r));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}var u=new Dg(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}function Um(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Km(e,t,n,i){return!!(Hm(e)===i||"primary"!==i&&Um(t,n,e))&&("**"===e.path||Ym(t,e,n).matched)}function Vm(e,t,n){return 0===t.length&&!e.children[n]}var Xm=function e(t){_(this,e),this.segmentGroup=t||null},Gm=function e(t){_(this,e),this.urlTree=t};function Jm(e){return new I(function(t){return t.error(new Xm(e))})}function Qm(e){return new I(function(t){return t.error(new Gm(e))})}function Zm(e){return new I(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var $m=function(){function e(t,n,i,r,o){_(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Ju)}return w(e,[{key:"apply",value:function(){var e=this,t=Wm(this.urlTree.root,[],[],this.config).segmentGroup,n=new Dg(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe(ee(function(t){return e.createUrlTree(ev(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(xp(function(t){if(t instanceof Gm)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof Xm)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(ee(function(n){return t.createUrlTree(ev(n),e.queryParams,e.fragment)})).pipe(xp(function(e){if(e instanceof Xm)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new Dg([],{primary:e}):e;return new xg(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(ee(function(e){return new Dg([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],o=0,a=Object.keys(n.children);o=2;return function(i){return i.pipe(e?ef(function(t,n){return e(t,n,i)}):P,Np(1),n?Yp(t):Fp(function(){return new vp}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,o){var a=this;return re(n).pipe($d(function(s){return a.expandSegmentAgainstRoute(e,t,n,s,i,r,o).pipe(xp(function(e){if(e instanceof Xm)return Zd(null);throw e}))}),Kp(function(e){return!!e}),xp(function(e,n){if(e instanceof vp||"EmptyError"===e.name){if(Vm(t,i,r))return Zd(new Dg([],{}));throw new Xm(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return Km(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):Jm(t):Jm(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Qm(o):this.lineralizeSegments(n,o).pipe(oe(function(n){var o=new Dg(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=Ym(t,i,r),u=s.matched,c=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!u)return Jm(t);var d=this.applyRedirectCommands(c,i.redirectTo,h);return i.redirectTo.startsWith("/")?Qm(d):this.lineralizeSegments(i,d).pipe(oe(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(l)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Zd(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(ee(function(e){return n._loadedConfig=e,new Dg(i,{})})):Zd(new Dg(i,{}));var a=Ym(t,n,i),s=a.matched,u=a.consumedSegments,c=a.lastChild;if(!s)return Jm(t);var l=i.slice(c);return this.getChildConfig(e,n,i).pipe(oe(function(e){var i=e.module,a=e.routes,s=Wm(t,u,l,a),c=s.segmentGroup,h=s.slicedSegments,d=new Dg(c.segments,c.children);if(0===h.length&&d.hasChildren())return o.expandChildren(i,a,d).pipe(ee(function(e){return new Dg(u,e)}));if(0===a.length&&0===h.length)return Zd(new Dg(u,{}));var f=Hm(n)===r;return o.expandSegment(i,d,a,h,f?"primary":r,!0).pipe(ee(function(e){return new Dg(u.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?Zd(new zm(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Zd(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(oe(function(n){return n?i.configLoader.load(e.injector,t).pipe(ee(function(e){return t._loadedConfig=e,e})):function(e){return new I(function(t){return t.error(_g("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):Zd(new zm([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;return r&&0!==r.length?Zd(r.map(function(i){var r,o=e.get(i);if(function(e){return e&&Rm(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!Rm(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return Sg(r)})).pipe(Dm(),Xp(function(e){if(Om(e)){var t=_g('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),ee(function(e){return!0===e})):Zd(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Zd(n);if(i.numberOfChildren>1||!i.children.primary)return Zm(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new xg(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Tg(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return Tg(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new Dg(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=a(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(s){r.e(s)}finally{r.f()}return e}}]),e}();function ev(e){for(var t={},n=0,i=Object.keys(e.children);n0||o.hasChildren())&&(t[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new Dg(e.segments.concat(t.segments),t.children)}return e}(new Dg(e.segments,t))}var tv=function e(t){_(this,e),this.path=t,this.route=this.path[this.path.length-1]},nv=function e(t,n){_(this,e),this.component=t,this.route=n};function iv(e,t,n){var i=e._root;return ov(i,t?t._root:null,n,[i.value])}function rv(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function ov(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=im(t);return e.children.forEach(function(e){!function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Ng(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Ng(e.url,t.url)||!wg(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fm(e,t)||!wg(e.queryParams,t.queryParams);case"paramsChange":default:return!fm(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new tv(i)):(o.data=a.data,o._resolvedData=a._resolvedData),ov(e,t,o.component?s?s.children:null:n,i,r),u&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new nv(s.outlet.component,a))}else a&&av(t,s,r),r.canActivateChecks.push(new tv(i)),ov(e,null,o.component?s?s.children:null:n,i,r)}(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),Tg(o,function(e,t){return av(e,n.getContext(t),r)}),r}function av(e,t,n){var i=im(e),r=e.value;Tg(i,function(e,i){av(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new nv(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var sv=function e(){_(this,e)};function uv(e){return new I(function(t){return t.error(e)})}var cv=function(){function e(t,n,i,r,o,a){_(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return w(e,[{key:"recognize",value:function(){var e=Wm(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;var n=new um([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new nm(n,t),r=new cm(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=sm(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,o=Object.keys(t.children);i0?kg(n).parameters:{};r=new um(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,fv(e),Hm(e),e.component,e,hv(t),dv(t)+n.length,pv(e))}else{var u=Ym(t,e,n);if(!u.matched)return null;o=u.consumedSegments,a=n.slice(u.lastChild),r=new um(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,fv(e),Hm(e),e.component,e,hv(t),dv(t)+o.length,pv(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),l=Wm(t,o,a,c.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),h=l.segmentGroup,d=l.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(c,h);return null===f?null:[new nm(r,f)]}if(0===c.length&&0===d.length)return[new nm(r,[])];var p=Hm(e)===i,g=this.processSegment(c,h,d,p?"primary":i);return null===g?null:[new nm(r,g)]}}]),e}();function lv(e){var t,n=[],i=new Set,o=a(e);try{var s=function(){var e,o=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(o))return n.push(o),"continue";var a=n.find(function(e){return o.value.routeConfig===e.value.routeConfig});void 0!==a?((e=a.children).push.apply(e,r(o.children)),i.add(a)):n.push(o)};for(o.s();!(t=o.n()).done;)s()}catch(d){o.e(d)}finally{o.f()}var u,c=a(i);try{for(c.s();!(u=c.n()).done;){var l=u.value,h=lv(l.children);n.push(new nm(l.value,h))}}catch(d){c.e(d)}finally{c.f()}return n.filter(function(e){return!i.has(e)})}function hv(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function dv(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function fv(e){return e.data||{}}function pv(e){return e.resolve||{}}function gv(e){return Mp(function(t){var n=e(t);return n?re(n).pipe(ee(function(){return t})):Zd(t)})}var mv=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return n}(function(){function e(){_(this,e)}return w(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),vv=new hi("ROUTES"),yv=function(){function e(t,n,i,r){_(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return w(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe(ee(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new zm(Ag(r.injector.get(vv,void 0,je.Self|je.Optional)).map(Fm),r)}),xp(function(e){throw t._loader$=void 0,e}));return t._loader$=new ge(i,function(){return new Y}).pipe(he()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?re(this.loader.load(e)):Sg(e()).pipe(oe(function(e){return e instanceof Qu?Zd(e):re(t.compiler.compileModuleAsync(e))}))}}]),e}(),_v=function e(){_(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new bv,this.attachRef=null},bv=function(){function e(){_(this,e),this.contexts=new Map}return w(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new _v,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),wv=function(){function e(){_(this,e)}return w(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Mv(e){throw e}function Av(e,t,n){return t.parse("/")}function kv(e,t){return Zd(null)}var Tv={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Sv={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Cv=function(){var e=function(){function e(t,n,i,r,o,a,s,u){var c=this;_(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Y,this.errorHandler=Mv,this.malformedUriErrorHandler=Av,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:kv,afterPreactivation:kv},this.urlHandlingStrategy=new wv,this.routeReuseStrategy=new mv,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(Ju),this.console=o.get($c);var l=o.get(dl);this.isNgZoneEnabled=l instanceof dl&&dl.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new xg(new Dg([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new yv(a,s,function(e){return c.triggerEvent(new lg(e))},function(e){return c.triggerEvent(new hg(e))}),this.routerState=om(this.currentUrlTree,this.rootComponentType),this.transitions=new dp({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()}return w(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(ef(function(e){return 0!==e.id}),ee(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Mp(function(e){var i,r,o,a=!1,s=!1;return Zd(e).pipe(Xp(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Mp(function(e){var i=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||i)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Zd(e).pipe(Mp(function(e){var i=t.transitions.getValue();return n.next(new tg(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?_p:Promise.resolve(e)}),function(e,t,n,i){return Mp(function(r){return function(e,t,n,i,r){return new $m(e,t,n,i,r).apply()}(e,t,n,r.extractedUrl,i).pipe(ee(function(e){return Object.assign(Object.assign({},r),{urlAfterRedirects:e})}))})}(t.ngModule.injector,t.configLoader,t.urlSerializer,t.config),Xp(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,o){return oe(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new cv(e,t,n,i,r,o).recognize();return null===a?uv(new sv):Zd(a)}catch(s){return uv(s)}}(e,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,t.serializeUrl(a)),r,o).pipe(ee(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var a})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Xp(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var i=new og(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(i&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var r=e.id,o=e.extractedUrl,a=e.source,s=e.restoredState,u=e.extras,c=new tg(r,t.serializeUrl(o),a,s);n.next(c);var l=om(o,t.rootComponentType).snapshot;return Zd(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:o,extras:Object.assign(Object.assign({},u),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),_p}),gv(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Xp(function(e){var n=new ag(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),ee(function(e){return Object.assign(Object.assign({},e),{guards:iv(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return oe(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Zd(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return re(e).pipe(oe(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Zd(o.map(function(o){var a,s=rv(o,t,r);if(function(e){return e&&Rm(e.canDeactivate)}(s))a=Sg(s.canDeactivate(e,t,n,i));else{if(!Rm(s))throw new Error("Invalid CanDeactivate guard");a=Sg(s(e,t,n,i))}return a.pipe(Kp())})).pipe(Dm()):Zd(!0)}(e.component,e.route,n,t,i)}),Kp(function(e){return!0!==e},!0))}(s,i,r,e).pipe(oe(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return re(t).pipe($d(function(t){return yp(function(e,t){return null!==e&&t&&t(new dg(e)),Zd(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new pg(e)),Zd(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return wp(function(){return Zd(t.guards.map(function(r){var o,a=rv(r,t.node,n);if(function(e){return e&&Rm(e.canActivateChild)}(a))o=Sg(a.canActivateChild(i,e));else{if(!Rm(a))throw new Error("Invalid CanActivateChild guard");o=Sg(a(i,e))}return o.pipe(Kp())})).pipe(Dm())})});return Zd(r).pipe(Dm())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?Zd(i.map(function(i){return wp(function(){var r,o=rv(i,t,n);if(function(e){return e&&Rm(e.canActivate)}(o))r=Sg(o.canActivate(t,e));else{if(!Rm(o))throw new Error("Invalid CanActivate guard");r=Sg(o(t,e))}return r.pipe(Kp())})})).pipe(Dm()):Zd(!0)}(e,t.route,n))}),Kp(function(e){return!0!==e},!0))}(i,a,e,t):Zd(n)}),ee(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Xp(function(e){if(Om(e.guardsResult)){var n=_g('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new sg(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),ef(function(e){return!!e.guardsResult||(t.cancelNavigationTransition(e,""),!1)}),gv(function(e){if(e.guards.canActivateChecks.length)return Zd(e).pipe(Xp(function(e){var n=new ug(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Mp(function(e){var n,i,r=!1;return Zd(e).pipe((n=t.paramsInheritanceStrategy,i=t.ngModule.injector,oe(function(e){var t=e.targetSnapshot,r=e.guards.canActivateChecks;if(!r.length)return Zd(e);var o=0;return re(r).pipe($d(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return Zd({});var o={};return re(r).pipe(oe(function(r){return function(e,t,n,i){var r=rv(e,t,i);return Sg(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Xp(function(e){o[r]=e}))}),Np(1),oe(function(){return Object.keys(o).length===r.length?Zd(o):_p}))}(e._resolve,e,t,i).pipe(ee(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),sm(e,n).resolve),null}))}(e.route,t,n,i)}),Xp(function(){return o++}),Np(1),oe(function(t){return o===r.length?Zd(e):_p}))})),Xp({next:function(){return r=!0},complete:function(){r||t.cancelNavigationTransition(e,"At least one route resolver didn't emit any value.")}}))}),Xp(function(e){var n=new cg(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),gv(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),ee(function(e){var n=function(e,t,n){var i=pm(e,t._root,n?n._root:void 0);return new rm(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Xp(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,e),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},ee(function(e){return new Em(r,e.targetRouterState,e.currentRouterState,o).activate(i),e})),Xp({next:function(){a=!0},complete:function(){a=!0}}),Qp(function(){a||s||t.cancelNavigationTransition(e,"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId)),t.currentNavigation=null}),xp(function(i){if(s=!0,(u=i)&&u.ngNavigationCancelingError){var r=Om(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new ig(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(o),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new rg(e.id,t.serializeUrl(e.extractedUrl),i);n.next(a);try{e.resolve(t.errorHandler(i))}catch(c){e.reject(c)}}var u;return _p}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){Nm(e),this.config=e.map(Fm),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,o=t.fragment,a=t.queryParamsHandling,s=t.preserveFragment,u=n||this.routerState.root,c=s?this.currentUrlTree.fragment:o,l=null;switch(a){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(e,t,n,i,o){if(0===n.length)return ym(t.root,t.root,t,i,o);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new bm(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return Tg(i.outlets,function(e,t){a[t]="string"==typeof e?e.split("/"):e}),[].concat(r(e),[{outlets:a}])}if(i.segmentPath)return[].concat(r(e),[i.segmentPath])}return"string"!=typeof i?[].concat(r(e),[i]):0===o?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(r(e),[i])},[]);return new bm(n,t,i)}(n);if(a.toRoot())return ym(t.root,new Dg([],{}),t,i,o);var s=function(e,t,n){if(e.isAbsolute)return new wm(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new wm(i,i===t.root,0)}var r=mm(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new wm(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(a,t,e),u=s.processChildren?Am(s.segmentGroup,s.index,a.commands):Mm(s.segmentGroup,s.index,a.commands);return ym(s.segmentGroup,u,t,i,o)}(u,this.currentUrlTree,e,l,null!=c?c:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Om(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree),r=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||t.skipLocationChange||t.replaceUrl)&&(r=this.location.getState()),this.scheduleNavigation(i,"imperative",r,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};_(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return w(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof tg?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ng&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof mg&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new mg(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Cv),Ei(fd),Ei(void 0))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Bv=new hi("ROUTER_CONFIGURATION"),Fv=new hi("ROUTER_FORROOT_GUARD"),Hv=[ah,{provide:Ig,useClass:Bg},{provide:Cv,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,l=new Cv(null,e,t,n,i,r,o,Ag(a));return u&&(l.urlHandlingStrategy=u),c&&(l.routeReuseStrategy=c),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,l),s.enableTracing&&l.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),l},deps:[Ig,bv,ah,za,Pl,cl,vv,Bv,[function(){return function e(){_(this,e)}}(),new Pi],[function(){return function e(){_(this,e)}}(),new Pi]]},bv,{provide:am,useFactory:function(e){return e.routerState.root},deps:[Cv]},{provide:Pl,useClass:Bl},Nv,Pv,Dv,{provide:Bv,useValue:{enableTracing:!1}}];function qv(){return new Cl("Router",Cv)}var jv,Yv=((jv=function(){function e(t,n){_(this,e)}return w(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Hv,Vv(t),{provide:Fv,useFactory:Kv,deps:[[Cv,new Pi,new Ni]]},{provide:Bv,useValue:n||{}},{provide:th,useFactory:Uv,deps:[Kl,[new Di(ih),new Pi],Bv]},{provide:Iv,useFactory:Wv,deps:[Cv,fd,Bv]},{provide:xv,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Pv},{provide:Cl,multi:!0,useFactory:qv},[Xv,{provide:Uc,multi:!0,useFactory:Gv,deps:[Xv]},{provide:Qv,useFactory:Jv,deps:[Xv]},{provide:Zc,multi:!0,useExisting:Qv}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Vv(t)]}}}]),e}()).\u0275fac=function(e){return new(e||jv)(Ei(Fv,8),Ei(Cv,8))},jv.\u0275mod=ft({type:jv}),jv.\u0275inj=xe({}),jv);function Wv(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Iv(e,t,n)}function Uv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new oh(e,t):new rh(e,t)}function Kv(e){return"guarded"}function Vv(e){return[{provide:di,multi:!0,useValue:e},{provide:vv,multi:!0,useValue:e}]}var Xv=function(){var e=function(){function e(t){_(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Y}return w(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(Xl,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(Cv),r=e.injector.get(Bv);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?Zd(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Bv),n=this.injector.get(Nv),i=this.injector.get(Iv),r=this.injector.get(Cv),o=this.injector.get(xl);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(za))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}();function Gv(e){return e.appInitializer.bind(e)}function Jv(e){return e.bootstrapListener.bind(e)}var Qv=new hi("Router Initializer");function Zv(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){d(n,e);var t=p(n);function n(e,i){return _(this,n),t.call(this)}return w(n,[{key:"schedule",value:function(e){return this}}]),n}(L)),ey=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_(this,e),this.SchedulerAction=t,this.now=n}return w(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),ty=function(e){d(n,e);var t=p(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ey.now;return _(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==m(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return w(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):h(y(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(ey),ny=new ty($v);function iy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ny;return function(n){return n.lift(new oy(e,t))}}var ry,oy=function(){function e(t,n){_(this,e),this.dueTime=t,this.scheduler=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new ay(e,this.dueTime,this.scheduler))}}]),e}(),ay=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return w(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(sy,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(O);function sy(e){e.debouncedNext()}function uy(e){return null!=e&&"false"!="".concat(e)}function cy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ly(e)?Number(e):t}function ly(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function hy(e){return Array.isArray(e)?e:[e]}function dy(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function fy(e){return e instanceof mu?e.nativeElement:e}try{ry="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Fj){ry=!1}var py,gy,my,vy,yy,_y=function(){var e=function e(t){_(this,e),this._platformId=t,this.isBrowser=this._platformId?hd(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&&!ry)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return e.\u0275fac=function(t){return new(t||e)(Ei(Qc))},e.\u0275prov=Oe({factory:function(){return new e(Ei(Qc))},token:e,providedIn:"root"}),e}(),by=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({}),e}(),wy=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function My(){if(py)return py;if("object"!=typeof document||!document)return py=new Set(wy);var e=document.createElement("input");return py=new Set(wy.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function Ay(e){return function(){if(null==gy&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return gy=!0}}))}finally{gy=gy||!1}return gy}()?e:!!e.capture}function ky(){if(null==vy){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return vy=!1;if("scrollBehavior"in document.documentElement.style)vy=!0;else{var e=Element.prototype.scrollTo;vy=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return vy}function Ty(){if("object"!=typeof document||!document)return 0;if(null==my){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),my=0,0===e.scrollLeft&&(e.scrollLeft=1,my=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return my}function Sy(e){if(function(){if(null==yy){var e="undefined"!=typeof document?document.head:null;yy=!(!e||!e.createShadowRoot&&!e.attachShadow)}return yy}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Cy(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}var Ey=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Ly=function(){var e=function(){function e(t){_(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return w(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=fy(e);return new I(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new Y,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Ey))},e.\u0275prov=Oe({factory:function(){return new e(Ei(Ey))},token:e,providedIn:"root"}),e}(),zy=function(){var e=function(){function e(t,n,i){_(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new Sc,this._disabled=!1,this._currentSubscription=null}return w(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=uy(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=cy(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(iy(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(Ly),Ja(mu),Ja(dl))},e.\u0275dir=gt({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),Ry=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[Ey]}),e}();function Oy(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var xy=0,Dy=new Map,Py=null,Ny=function(){var e=function(){function e(t){_(this,e),this._document=t}return w(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=Iy(t,n);"string"!=typeof t?(By(t),Dy.set(i,{messageElement:t,referenceCount:0})):Dy.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=Iy(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=Dy.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}Py&&0===Py.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return w(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Xp(function(t){return e._pressedLetters.push(t)}),iy(t),ef(function(){return e._pressedLetters.length>0}),ee(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Zv(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Ec?this._items.toArray():this._items}}]),e}(),Hy=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),h(y(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(Fy),qy=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._origin="program",e}return w(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){h(y(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(Fy),jy=function(){var e=function(){function e(t){_(this,e),this._platform=t}return w(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(Fj){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===Wy(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=Wy(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Yy(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(_y))},e.\u0275prov=Oe({factory:function(){return new e(Ei(_y))},token:e,providedIn:"root"}),e}();function Yy(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Wy(e){if(!Yy(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var Uy=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return w(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.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)}},{key:"focusInitialElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusInitialElement(e))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusFirstTabbableElement(e))})})}},{key:"focusLastTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusLastTabbableElement(e))})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Sp(1)).subscribe(e)}}]),e}(),Ky=function(){var e=function(){function e(t,n,i){_(this,e),this._checker=t,this._ngZone=n,this._document=i}return w(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Uy(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(jy),Ei(dl),Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(jy),Ei(dl),Ei(Ul))},token:e,providedIn:"root"}),e}();"undefined"!=typeof Element&∈var Vy=new hi("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Xy=new hi("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Gy=function(){var e=function(){function e(t,n,i,r){_(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return w(e,[{key:"announce",value:function(e){for(var n,i,r,o=this,a=this._defaultOptions,s=arguments.length,u=new Array(s>1?s-1:0),c=1;c1&&void 0!==arguments[1]&&arguments[1],n=fy(e);if(!this._platform.isBrowser||1!==n.nodeType)return Zd(null);var i=Sy(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new Y,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=fy(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,n,i){var r=this,o=fy(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(function(e){var i=t(e,2),o=i[0],a=i[1];return r._originChanged(o,n,a)}):(this._setOriginForCurrentEventQueue(n),"function"==typeof o.focus&&o.focus(i))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=t_(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===t_(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,$y),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,$y)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,$y),e.addEventListener("mousedown",t._documentMousedownListener,$y),e.addEventListener("touchstart",t._documentTouchstartListener,$y),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,$y),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,$y),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,$y),i.removeEventListener("mousedown",this._documentMousedownListener,$y),i.removeEventListener("touchstart",this._documentTouchstartListener,$y),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(dl),Ei(_y),Ei(Ul,8),Ei(Zy,8))},e.\u0275prov=Oe({factory:function(){return new e(Ei(dl),Ei(_y),Ei(Ul,8),Ei(Zy,8))},token:e,providedIn:"root"}),e}();function t_(e){return e.composedPath?e.composedPath()[0]:e.target}var n_=function(){var e=function(){function e(t,n){_(this,e),this._platform=t,this._document=n}return w(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(_y),Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(_y),Ei(Ul))},token:e,providedIn:"root"}),e}(),i_=function(){var e=function e(t){_(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(Ei(n_))},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[by,Ry]]}),e}(),r_=new hi("cdk-dir-doc",{providedIn:"root",factory:function(){return Li(Ul)}}),o_=function(){var e=function(){function e(t){if(_(this,e),this.value="ltr",this.change=new Sc,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return w(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(r_,8))},e.\u0275prov=Oe({factory:function(){return new e(Ei(r_,8))},token:e,providedIn:"root"}),e}(),a_=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({}),e}(),s_=new Mu("12.0.5"),u_=function e(){_(this,e)};function c_(e,t){return{type:7,name:e,definitions:t,options:{}}}function l_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function h_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:t}}function d_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function f_(e){return{type:6,styles:e,offset:null}}function p_(e,t,n){return{type:0,name:e,styles:t,options:n}}function g_(e){return{type:5,steps:e}}function m_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function v_(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function y_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function __(e){Promise.resolve(null).then(e)}var b_=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return w(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;__(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),w_=function(){function e(t){var n=this;_(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?__(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return w(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function M_(){return"undefined"!=typeof window&&void 0!==window.document}function A_(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function k_(e){switch(e.length){case 0:return new b_;case 1:return e[0];default:return new w_(e)}}function T_(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,c=null;if(i.forEach(function(e){var n=e.offset,i=n==u,l=i&&c||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),s){case"!":s=r[n];break;case"*":s=o[n];break;default:s=t.normalizeStyleValue(n,i,s,a)}l[i]=s}),i||s.push(l),c=l,u=n}),a.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(a.join(l)))}return s}function S_(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&C_(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&C_(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&C_(n,"destroy",e))})}}function C_(e,t,n){var i=n.totalTime,r=E_(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function E_(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function L_(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function z_(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var R_=function(e,t){return!1},O_=function(e,t){return!1},x_=function(e,t,n){return[]},D_=A_();(D_||"undefined"!=typeof Element)&&(R_=M_()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},O_=function(){if(D_||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:O_}(),x_=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function X_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else V_(e,n);return n}function G_(e,t,n){return n?t+":"+n+";":""}function J_(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(db(o,s)),"<"!=a[0]||"*"==o&&"*"==s||t.push(db(s,o))}(e,r,i)}):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:yb(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return ub(n,e,t)}),options:yb(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=ub(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:yb(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return _b(K_(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=_b(0,0,"");return r.dynamic=!0,r.strValue=i,r}return _b((n=n||K_(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:f_({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=f_(s)}t.currentTime+=i.duration+i.delay;var u=this.visitStyle(o,t);u.isEmptyStep=a,n=u}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(vb(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a,s,u,c,l,h=t.collectedStyles[t.currentQuerySelector],d=h[i],f=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(d.startTime,'ms" and "').concat(d.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),f=!1),o=d.startTime),f&&(h[i]={startTime:o,endTime:r}),t.options&&(a=e[i],s=t.options,u=t.errors,c=s.params||{},(l=tb(a)).length&&l.forEach(function(e){c.hasOwnProperty(e)||u.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,u=0,c=e.steps.map(function(e){var i=n._makeStyleAst(e,t),c=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(vb(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(vb(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),l=0;return null!=c&&(r++,l=i.offset=c),s=s||l<0||l>1,a=a||l0&&r0?r==d?1:h*r:o[r],s=a*g;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:ub(this,$_(e.animation),t),options:yb(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:yb(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:yb(e.options)}}},{key:"visitQuery",value:function(e,n){var i=n.currentQuerySelector,r=e.options||{};n.queryCount++,n.currentQuery=e;var o=t(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(fb,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),a=o[0],s=o[1];n.currentQuerySelector=i.length?i+" "+a:a,L_(n.collectedStyles,n.currentQuerySelector,{});var u=ub(this,$_(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:11,selector:a,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:u,originalSelector:e.selector,options:yb(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:K_(e.timings,t.errors,!0);return{type:12,animation:ub(this,$_(e.animation),t),timings:n,options:null}}}]),e}(),mb=function e(t){_(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function vb(e){return!Array.isArray(e)&&"object"==typeof e}function yb(e){var t;return e?(e=V_(e)).params&&(e.params=(t=e.params)?V_(t):null):e={},e}function _b(e,t,n){return{duration:e,delay:t,easing:n}}function bb(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var wb=function(){function e(){_(this,e),this._map=new Map}return w(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,r(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),Mb=new RegExp(":enter","g"),Ab=new RegExp(":leave","g");function kb(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Tb).buildKeyframes(e,t,n,i,r,o,a,s,u,c)}var Tb=function(){function e(){_(this,e)}return w(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,u){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new wb;var l=new Cb(e,t,u,i,r,c,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),ub(this,n,l);var h=l.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,l.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[bb(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?W_(n.duration):null,o=null!=n.delay?W_(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),ub(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Sb);var a=W_(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return ub(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?W_(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),ub(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return K_(t.params?nb(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?W_(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Sb);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(u=s.currentTimeline),ub(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var c=u.currentTime;ub(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}]),e}(),Sb={},Cb=function(){function e(t,n,i,r,o,a,s,u){_(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Sb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new Eb(this._driver,n,0),s.push(this.currentTimeline)}return w(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=W_(i.duration)),null!=i.delay&&(r.delay=W_(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=nb(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Sb,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Lb(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,o,a){var s=[];if(i&&s.push(this.element),e.length>0){e=(e=e.replace(Mb,"."+this._enterClassName)).replace(Ab,"."+this._leaveClassName);var u=this._driver.query(this.element,e,1!=n);0!==n&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),s.push.apply(s,r(u))}return o||0!=s.length||a.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),s}}]),e}(),Eb=function(){function e(t,n,i,r){_(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return w(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]="*"}):X_(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=nb(a[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=X_(o,!0);Object.keys(s).forEach(function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)}),i||(s.offset=a/e.duration),r.push(s)});var o=t.size?ib(t.values()):[],a=n.size?ib(n.values()):[];if(i){var s=r[0],u=V_(s);s.offset=0,u.offset=1,r=[s,u]}return bb(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}]),e}(),Lb=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _(this,n),(u=t.call(this,e,i,s.delay)).element=i,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=c,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return w(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,u=X_(e[0],!1);u.offset=0,o.push(u);var c=X_(e[0],!1);c.offset=zb(s),o.push(c);for(var l=e.length-1,h=1;h<=l;h++){var d=X_(e[h],!1);d.offset=zb((n+d.offset*i)/a),o.push(d)}i=a,n=0,r="",e=o}return bb(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(Eb);function zb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Rb,Ob,xb=function e(){_(this,e)},Db=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"normalizePropertyName",value:function(e,t){return ob(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(Pb[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(xb),Pb=(Rb="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),Ob={},Rb.forEach(function(e){return Ob[e]=!0}),Ob);function Nb(e,t,n,i,r,o,a,s,u,c,l,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:h,errors:d}}var Ib={},Bb=function(){function e(t,n,i){_(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return w(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,u,c){var l=[],h=this.ast.options&&this.ast.options.params||Ib,d=this.buildStyles(n,a&&a.params||Ib,l),f=s&&s.params||Ib,p=this.buildStyles(i,f,l),g=new Set,m=new Map,v=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),f)},b=c?[]:kb(e,t,this.ast.animation,r,o,d,p,_,u,l),w=0;if(b.forEach(function(e){w=Math.max(e.duration+e.delay,w)}),l.length)return Nb(t,this._triggerName,n,i,y,d,p,[],[],m,v,w,l);b.forEach(function(e){var n=e.element,i=L_(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=L_(v,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&g.add(n)});var M=ib(g.values());return Nb(t,this._triggerName,n,i,y,d,p,b,M,m,v,w)}}]),e}(),Fb=function(){function e(t,n){_(this,e),this.styles=t,this.defaultParams=n}return w(e,[{key:"buildStyles",value:function(e,t){var n={},i=V_(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var o=r[e];o.length>1&&(o=nb(o,i,t)),n[e]=o})}}),n}}]),e}(),Hb=function(){function e(t,n){var i=this;_(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new Fb(e.style,e.options&&e.options.params||{})}),qb(this.states,"true","1"),qb(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new Bb(t,e,i.states))}),this.fallbackTransition=new Bb(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return w(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function qb(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var jb=new wb,Yb=function(){function e(t,n,i){_(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return w(e,[{key:"register",value:function(e,t){var n=[],i=pb(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=T_(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=kb(this._driver,t,a,"ng-enter","ng-leave",{},{},r,jb,o)).forEach(function(e){var t=L_(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,"*")})});var u=k_(n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(function(){return i.destroy(e)}),this.players.push(u),u}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=E_(t,"","","");return S_(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Wb=[],Ub={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Kb={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vb=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var o=V_(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return w(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Xb=new Vb("void"),Gb=function(){function e(t,n,i){_(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,nw(n,this._hostClassName)}return w(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=L_(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var u=L_(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(nw(e,"ng-trigger"),nw(e,"ng-trigger-"+t),u[t]=Xb),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new Qb(this.id,t,e),s=this._engine.statesByElement.get(e);s||(nw(e,"ng-trigger"),nw(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],c=new Vb(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&c.absorbOptions(u.options),s[t]=c,u||(u=Xb),"void"===c.value||u.value!==c.value){var l=L_(this._engine.playersByElement,e,[]);l.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=o.matchTransition(u.value,c.value,e,c.params),d=!1;if(!h){if(!r)return;h=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:c,player:a,isFallbackTransition:d}),d||(nw(e,"ng-animate-queued"),a.onStart(function(){iw(e,"ng-animate-queued")})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),l.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),nw(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),iw(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if(Zb(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return Zb(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return k_(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=Ub,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;C--)this._namespaceList[C].drainQueuedTransitions(t).forEach(function(e){var t=e.player,r=e.element;if(T.push(t),n.collectedEnterElements.length){var a=r.__ng_removed;if(a&&a.setForMove)return void t.destroy()}var h=!d||!n.driver.containsElement(d,r),f=A.get(r),p=g.get(r),m=n._buildInstruction(e,i,p,f,h);if(m.errors&&m.errors.length)S.push(m);else{if(h)return t.onStart(function(){return Z_(r,m.fromStyles)}),t.onDestroy(function(){return Q_(r,m.toStyles)}),void o.push(t);if(e.isFallbackTransition)return t.onStart(function(){return Z_(r,m.fromStyles)}),t.onDestroy(function(){return Q_(r,m.toStyles)}),void o.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(r,m.timelines),s.push({instruction:m,player:t,element:r}),m.queriedElements.forEach(function(e){return L_(u,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=l.get(t);i||l.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(S.length){var E=[];S.forEach(function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return E.push("- ".concat(e,"\n"))})}),T.forEach(function(e){return e.destroy()}),this.reportError(E)}var L=new Map,z=new Map;s.forEach(function(e){var t=e.element;i.has(t)&&(z.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,L))}),o.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){L_(L,t,[]).push(e),e.destroy()})});var R=v.filter(function(e){return aw(e,c,l)}),O=new Map;ew(O,this.driver,_,l,"*").forEach(function(e){aw(e,c,l)&&R.push(e)});var x=new Map;p.forEach(function(e,t){ew(x,n.driver,new Set(e),c,"!")}),R.forEach(function(e){var t=O.get(e),n=x.get(e);O.set(e,Object.assign(Object.assign({},t),n))});var D=[],P=[],N={};s.forEach(function(e){var t=e.element,r=e.player,s=e.instruction;if(i.has(t)){if(h.has(t))return r.onDestroy(function(){return Q_(t,s.toStyles)}),r.disabled=!0,r.overrideTotalTime(s.totalTime),void o.push(r);var u=N;if(z.size>1){for(var c=t,l=[];c=c.parentNode;){var d=z.get(c);if(d){u=d;break}l.push(c)}l.forEach(function(e){return z.set(e,u)})}var f=n._buildAnimation(r.namespaceId,s,L,a,x,O);if(r.setRealPlayer(f),u===N)D.push(r);else{var p=n.playersByElement.get(u);p&&p.length&&(r.parentPlayer=k_(p)),o.push(r)}}else Z_(t,s.fromStyles),r.onDestroy(function(){return Q_(t,s.toStyles)}),P.push(r),h.has(t)&&o.push(r)}),P.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=k_(t);e.setRealPlayer(n)}}),o.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var I=0;I0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new b_(e.duration,e.delay)}}]),e}(),Qb=function(){function e(t,n,i){_(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new b_,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return w(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return S_(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){L_(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Zb(e){return e&&1===e.nodeType}function $b(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function ew(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push($b(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Kb,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return $b(e,o[s++])}),a}function tw(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function nw(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function iw(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function rw(e,t,n){k_(n).onDone(function(){return e.processLeaveNode(t)})}function ow(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function uw(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=lw(t[0]),t.length>1&&(i=lw(t[t.length-1]))):t&&(n=lw(t)),n||i?new cw(e,n,i):null}var cw=function(){var e=function(){function e(t,n,i){_(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return w(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Q_(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Q_(this._element,this._initialStyles),this._endStyles&&(Q_(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Z_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Z_(this._element,this._endStyles),this._endStyles=null),Q_(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function lw(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),mw(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=yw(e,"").split(","),(i=gw(n,t))>=0&&(n.splice(i,1),vw(e,"",n.join(","))))}}]),e}();function fw(e,t,n){vw(e,"PlayState",n,pw(e,t))}function pw(e,t){var n=yw(e,"");return n.indexOf(",")>0?gw(n.split(","),t):gw([n],t)}function gw(e,t){for(var n=0;n=0)return n;return-1}function mw(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function vw(e,t,n,i){var r="animation"+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function yw(e,t){return e.style["animation"+t]||""}var _w=function(){function e(t,n,i,r,o,a,s,u){_(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return w(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new dw(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:cb(e.element,i))})}this.currentSnapshot=t}}]),e}(),bw=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=q_(i),r}return w(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),h(y(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),h(y(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,h(y(n.prototype),"destroy",this).call(this))}}]),n}(b_),ww=function(){function e(){_(this,e),this._count=0}return w(e,[{key:"validateStyleProperty",value:function(e){return I_(e)}},{key:"matchesElement",value:function(e,t){return B_(e,t)}},{key:"containsElement",value:function(e,t){return F_(e,t)}},{key:"query",value:function(e,t,n){return H_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return q_(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof _w}),s={};ab(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=sb(e,t,s));if(0==n)return new bw(e,u);var c="gen_css_kf_"+this._count++,l=this.buildKeyframeElement(e,c,t);(function(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(e).appendChild(l);var h=uw(e,t),d=new _w(e,t,c,n,i,r,u,h);return d.onDestroy(function(){var e;(e=l).parentNode.removeChild(e)}),d}}]),e}(),Mw=function(){function e(t,n,i,r){_(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return w(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:cb(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Aw=function(){function e(){_(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(kw().toString()),this._cssKeyframesDriver=new ww}return w(e,[{key:"validateStyleProperty",value:function(e){return I_(e)}},{key:"matchesElement",value:function(e,t){return B_(e,t)}},{key:"containsElement",value:function(e,t){return F_(e,t)}},{key:"query",value:function(e,t,n){return H_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var u={},c=o.filter(function(e){return e instanceof Mw});ab(n,i)&&c.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var l=uw(e,t=sb(e,t=t.map(function(e){return X_(e,!1)}),u));return new Mw(e,t,s,l)}}]),e}();function kw(){return M_()&&Element.prototype.animate||{}}var Tw=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ve.None,styles:[],data:{animation:[]}}),r}return w(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?d_(e):e;return Ew(this._renderer,null,t,"register",[n]),new Sw(t,this._renderer)}}]),n}(u_);return e.\u0275fac=function(t){return new(t||e)(Ei(yu),Ei(Ul))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),Sw=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return w(n,[{key:"create",value:function(e,t){return new Cw(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){_(this,e)}}()),Cw=function(){function e(t,n,i,r){_(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return w(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),Rw=function(e){d(i,e);var n=p(i);function i(e,t,r,o){var a;return _(this,i),(a=n.call(this,t,r,o)).factory=e,a.namespaceId=t,a}return w(i,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,n,i){var r,o,a=this;if("@"==n.charAt(0)){var s,u=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),c=n.substr(1),l="";return"@"!=c.charAt(0)&&(o=(r=c).indexOf("."),c=(s=t([r.substring(0,o),r.substr(o+1)],2))[0],l=s[1]),this.engine.listen(this.namespaceId,u,c,l,function(e){a.factory.scheduleListenerCallback(e._data||-1,i,e)})}return this.delegate.listen(e,n,i)}}]),i}(zw),Ow=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r){return _(this,n),t.call(this,e.body,i,r)}return w(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(sw);return e.\u0275fac=function(t){return new(t||e)(Ei(Ul),Ei(Y_),Ei(xb))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),xw=new hi("AnimationModuleType"),Dw=[{provide:u_,useClass:Tw},{provide:xb,useFactory:function(){return new Db}},{provide:sw,useClass:Ow},{provide:yu,useFactory:function(e,t,n){return new Lw(e,t,n)},deps:[Dd,sw,dl]}],Pw=[{provide:Y_,useFactory:function(){return"function"==typeof kw()?new Aw:new ww}},{provide:xw,useValue:"BrowserAnimations"}].concat(Dw),Nw=[{provide:Y_,useClass:j_},{provide:xw,useValue:"NoopAnimations"}].concat(Dw),Iw=function(){var e=function(){function e(){_(this,e)}return w(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?Nw:Pw}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:Pw,imports:[Gd]}),e}();function Bw(e,t){if(1&e&&ts(0,"mat-pseudo-checkbox",4),2&e){var n=ps();Qa("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function Fw(e,t){if(1&e&&($a(0,"span",5),qs(1),es()),2&e){var n=ps();yo(1),Ys("(",n.group.label,")")}}var Hw=["*"],qw=function(){var e=function e(){_(this,e)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),jw=function(){var e=function e(){_(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),Yw=new Mu("12.0.5"),Ww=new hi("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Uw=function(){var e=function(){function e(t,n,i){_(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return w(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Tl()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Yw.full!==s_.full&&console.warn("The Angular Material version ("+Yw.full+") does not match the Angular CDK version ("+s_.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(n_),Ei(Ww,8),Ei(Ul))},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[a_],a_]}),e}();function Kw(e){return function(e){d(n,e);var t=p(n);function n(){var e;_(this,n);for(var i=arguments.length,r=new Array(i),o=0;o1&&void 0!==arguments[1]?arguments[1]:0;return function(e){d(i,e);var n=p(i);function i(){var e;_(this,i);for(var r=arguments.length,o=new Array(r),a=0;a0?n:e}}]),e}(),tM=new hi("mat-date-formats");try{Zw="undefined"!=typeof Intl}catch(Fj){Zw=!1}var nM={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},iM=aM(31,function(e){return String(e+1)}),rM={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},oM=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function aM(e,t){for(var n=Array(e),i=0;i9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(n,e))}return this._stripDirectionalityCharacters(e.toDateString())}},{key:"addCalendarYears",value:function(e,t){return this.addCalendarMonths(e,12*t)}},{key:"addCalendarMonths",value:function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}},{key:"toIso8601",value:function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}},{key:"deserialize",value:function(e){if("string"==typeof e){if(!e)return null;if(oM.test(e)){var t=new Date(e);if(this.isValid(t))return t}}return h(y(n.prototype),"deserialize",this).call(this,e)}},{key:"isDateInstance",value:function(e){return e instanceof Date}},{key:"isValid",value:function(e){return!isNaN(e.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(e,t,n){var i=new Date;return i.setFullYear(e,t,n),i.setHours(0,0,0,0),i}},{key:"_2digit",value:function(e){return("00"+e).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(e){return e.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(e,t){var n=new Date;return n.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(n)}}]),n}(eM);return e.\u0275fac=function(t){return new(t||e)(Ei($w,8),Ei(_y))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),uM=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({factory:function(){return new e},token:e,providedIn:"root"}),e}(),cM=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),e}();function lM(e,t,n){var i=e.nativeElement.classList;n?i.add(t):i.remove(t)}var hM=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[Uw],Uw]}),e}(),dM=function(){function e(t,n,i){_(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return w(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),fM={enterDuration:450,exitDuration:400},pM=Ay({passive:!0}),gM=["mousedown","touchstart"],mM=["mouseup","mouseleave","touchend","touchcancel"],vM=function(){function e(t,n,i,r){_(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=fy(i))}return w(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},fM),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,u=t-r.top,c=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-a+"px",l.style.top=u-a+"px",l.style.height=2*a+"px",l.style.width=2*a+"px",null!=i.color&&(l.style.backgroundColor=i.color),l.style.transitionDuration="".concat(c,"ms"),this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";var h=new dM(this,l,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,i.persistent||e&&n._isPointerDown||h.fadeOut()},c),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},fM),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=fy(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(gM))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(mM),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=Jy(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,pM)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(gM.forEach(function(t){e._triggerElement.removeEventListener(t,e,pM)}),this._pointerUpEventsRegistered&&mM.forEach(function(t){e._triggerElement.removeEventListener(t,e,pM)}))}}]),e}(),yM=new hi("mat-ripple-global-options"),_M=function(){var e=function(){function e(t,n,i,r,o){_(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new vM(this,n,t,i)}return w(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(dl),Ja(_y),Ja(yM,8),Ja(xw,8))},e.\u0275dir=gt({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Es("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),bM=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[Uw,by],Uw]}),e}(),wM=function(){var e=function e(t){_(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(Ja(xw,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&Es("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),MM=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[Uw]]}),e}(),AM=new hi("MAT_OPTION_PARENT_COMPONENT"),kM=Kw(function e(){_(this,e)}),TM=0,SM=function(){var e=function(e){d(n,e);var t=p(n);function n(e){var i,r;return _(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+TM++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(kM);return e.\u0275fac=function(t){return new(t||e)(Ja(AM,8))},e.\u0275dir=gt({type:e,inputs:{label:"label"},features:[Oa]}),e}(),CM=new hi("MatOptgroup"),EM=0,LM=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_(this,e),this.source=t,this.isUserInput=n},zM=function(){var e=function(){function e(t,n,i,r){_(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+EM++,this.onSelectionChange=new Sc,this._stateChanges=new Y}return w(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=uy(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||Zv(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new LM(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(ju),Ja(void 0),Ja(SM))},e.\u0275dir=gt({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),RM=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o){return _(this,n),t.call(this,e,i,r,o)}return n}(zM);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(ju),Ja(AM,8),Ja(CM,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&cs("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(Vs("id",t.id),Ua("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),Es("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[Oa],ngContentSelectors:Hw,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&&(ms(),Xa(0,Bw,1,2,"mat-pseudo-checkbox",0),$a(1,"span",1),vs(2),es(),Xa(3,Fw,2,1,"span",2),ts(4,"div",3)),2&e&&(Qa("ngIf",t.multiple),yo(3),Qa("ngIf",t.group&&t.group._inert),yo(1),Qa("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Xh,_M,wM],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function OM(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;an+i?Math.max(0,e-i+t):n}var DM,PM=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[bM,ld,Uw,MM]]}),e}(),NM=["mat-button",""],IM=["*"],BM=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],FM=Vw(Kw(Xw(function e(t){_(this,e),this._elementRef=t}))),HM=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;_(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var s,u=a(BM);try{for(u.s();!(s=u.n()).done;){var c=s.value;o._hasHostAttributes(c)&&o._getHostElement().classList.add(c)}}catch(l){u.e(l)}finally{u.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return w(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e}(),qM=((DM=function e(){_(this,e)}).\u0275fac=function(e){return new(e||DM)},DM.\u0275mod=ft({type:DM}),DM.\u0275inj=xe({imports:[[bM,Uw],Uw]}),DM);function jM(e,t,n,i){return b(n)&&(i=n,n=void 0),i?jM(e,t,n).pipe(ee(function(e){return S(e)?i.apply(void 0,r(e)):i(e)})):new I(function(i){YM(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function YM(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var u=e;e.addListener(t,n),o=function(){return u.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,l=e.length;c2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?h(y(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return h(y(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}($v),UM=new(function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?h(y(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=JM(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return h(y(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(QM(t),e.scheduled=void 0)}}]),n}($v),$M=new(function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i=0}function sA(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function uA(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ny;return t=function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return aA(t)?i=Number(t)<1?1:Number(t):U(t)&&(n=t),U(n)||(n=ny),new I(function(t){var r=aA(e)?e:+e-n.now();return n.schedule(sA,r,{index:0,period:i,subscriber:t})})}(e,n)},function(e){return e.lift(new rA(t))}}function cA(e){return function(t){return t.lift(new lA(e))}}var lA=function(){function e(t){_(this,e),this.notifier=t}return w(e,[{key:"call",value:function(e,t){var n=new hA(e),i=Z(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),hA=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this,e)).seenValue=!1,i}return w(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}($),dA=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return w(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?h(y(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?h(y(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?h(y(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}($v),fA=new(function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return n}(ty))(dA);function pA(e,t){return new I(t?function(n){return t.schedule(gA,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function gA(e){var t=e.error;e.subscriber.error(t)}var mA=function(){var e=function(){function e(t,n,i){_(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return w(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Zd(this.value);case"E":return pA(this.error);case"C":return bp()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}(),vA=function(e){d(n,e);var t=p(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _(this,n),(r=t.call(this,e)).scheduler=i,r.delay=o,r}return w(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new yA(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(mA.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(mA.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(mA.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(O),yA=function e(t,n){_(this,e),this.notification=t,this.destination=n},_A=function(e){d(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return _(this,n),(e=t.call(this)).scheduler=o,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return w(n,[{key:"nextInfiniteTimeWindow",value:function(e){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),h(y(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this._events.push(new bA(this._getNow(),e)),this._trimBufferThenGetEvents(),h(y(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new H;if(this.isStopped||this.hasError?t=L.EMPTY:(this.observers.push(e),t=new q(this,e)),r&&e.add(e=new vA(e,r)),n)for(var a=0;at&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i}}]),n}(Y),bA=function e(t,n){_(this,e),this.time=t,this.value=n};function wA(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,o=e.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=e.refCount,u=e.scheduler,c=0,l=!1,h=!1;return function(e){c++,t&&!l||(l=!1,t=new _A(r,a,u),n=e.subscribe({next:function(e){t.next(e)},error:function(e){l=!0,t.error(e)},complete:function(){h=!0,n=void 0,t.complete()}}));var i=t.subscribe(this);this.add(function(){c--,i.unsubscribe(),n&&!h&&s&&0===c&&(n.unsubscribe(),n=void 0,t=void 0)})}}(i))}}function MA(e){return e&&"function"==typeof e.connect}var AA=function(){function e(){_(this,e)}return w(e,[{key:"applyChanges",value:function(e,t,n,i,r){e.forEachOperation(function(e,i,o){var a,s;if(null==e.previousIndex){var u=n(e,i,o);a=t.createEmbeddedView(u.templateRef,u.context,u.index),s=1}else null==o?(t.remove(i),s=3):(a=t.get(i),t.move(a,o),s=2);r&&r({context:null==a?void 0:a.context,operation:s,record:e})})}},{key:"detach",value:function(){}}]),e}(),kA=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Y,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return w(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new I(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(uA(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):Zd()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(ef(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=fy(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return jM(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(dl),Ei(_y),Ei(Ul,8))},e.\u0275prov=Oe({factory:function(){return new e(Ei(dl),Ei(_y),Ei(Ul,8))},token:e,providedIn:"root"}),e}(),EA=function(){var e=function(){function e(t,n,i,r){var o=this;_(this,e),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=i,this.dir=r,this._destroyed=new Y,this._elementScrolled=new I(function(e){return o.ngZone.runOutsideAngular(function(){return jM(o.elementRef.nativeElement,"scroll").pipe(cA(o._destroyed)).subscribe(e)})})}return w(e,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(e){var t=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=n?e.end:e.start),null==e.right&&(e.right=n?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),n&&0!=Ty()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Ty()?e.left=e.right:1==Ty()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}},{key:"_applyScrollToOptions",value:function(e){var t=this.elementRef.nativeElement;ky()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}},{key:"measureScrollOffset",value:function(e){var t=this.elementRef.nativeElement;if("top"==e)return t.scrollTop;if("bottom"==e)return t.scrollHeight-t.clientHeight-t.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==e?e=n?"right":"left":"end"==e&&(e=n?"left":"right"),n&&2==Ty()?"left"==e?t.scrollWidth-t.clientWidth-t.scrollLeft:t.scrollLeft:n&&1==Ty()?"left"==e?t.scrollLeft+t.scrollWidth-t.clientWidth:-t.scrollLeft:"left"==e?t.scrollLeft:t.scrollWidth-t.clientWidth-t.scrollLeft}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(CA),Ja(dl),Ja(o_,8))},e.\u0275dir=gt({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),e}(),LA=function(){var e=function(){function e(t,n,i){var r=this;_(this,e),this._platform=t,this._change=new Y,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return w(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(uA(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(_y),Ei(dl),Ei(Ul,8))},e.\u0275prov=Oe({factory:function(){return new e(Ei(_y),Ei(dl),Ei(Ul,8))},token:e,providedIn:"root"}),e}(),zA=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({}),e}(),RA=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[a_,by,zA],a_,zA]}),e}(),OA=function(){function e(){_(this,e)}return w(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),xA=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(OA),DA=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return w(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,h(y(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,h(y(n.prototype),"detach",this).call(this)}}]),n}(OA),PA=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this)).element=e instanceof mu?e.nativeElement:e,i}return n}(OA),NA=function(){function e(){_(this,e),this._isDisposed=!1,this.attachDomPortal=null}return w(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof xA?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof DA?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof PA?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),IA=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a){var s,u;return _(this,n),(u=t.call(this)).outletElement=e,u._componentFactoryResolver=i,u._appRef=r,u._defaultInjector=o,u.attachDomPortal=function(e){var t=e.element,i=u._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),u.outletElement.appendChild(t),u._attachedPortal=e,h((s=m(u),y(n.prototype)),"setDisposeFn",s).call(s,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},u._document=a,u}return w(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){h(y(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(NA),BA=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r){var o,a;return _(this,n),(a=t.call(this))._componentFactoryResolver=e,a._viewContainerRef=i,a._isInitialized=!1,a.attached=new Sc,a.attachDomPortal=function(e){var t=e.element,i=a._document.createComment("dom-portal");e.setAttachedHost(m(a)),t.parentNode.insertBefore(i,t),a._getRootNode().appendChild(t),a._attachedPortal=e,h((o=m(a),y(n.prototype)),"setDisposeFn",o).call(o,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},a._document=r,a}return w(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&h(y(n.prototype),"detach",this).call(this),e&&h(y(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){h(y(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),h(y(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return h(y(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(NA);return e.\u0275fac=function(t){return new(t||e)(Ja(du),Ja($u),Ja(Ul))},e.\u0275dir=gt({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Oa]}),e}(),FA=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({}),e}(),HA=function(){function e(t,n){_(this,e),this.predicate=t,this.inclusive=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new qA(e,this.predicate,this.inclusive))}}]),e}(),qA=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e)).predicate=i,o.inclusive=r,o.index=0,o}return w(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(O),jA=ky(),YA=function(){function e(t,n){_(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return w(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=dy(-this._previousScrollPosition.left),e.style.top=dy(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),jA&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),jA&&(t.scrollBehavior=i,n.scrollBehavior=r)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}(),WA=function(){function e(t,n,i,r){var o=this;_(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return w(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),UA=function(){function e(){_(this,e)}return w(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function KA(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function VA(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var XA=function(){function e(t,n,i,r){_(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return w(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;KA(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),GA=function(){var e=function e(t,n,i,r){var o=this;_(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new UA},this.close=function(e){return new WA(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new YA(o._viewportRuler,o._document)},this.reposition=function(e){return new XA(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r};return e.\u0275fac=function(t){return new(t||e)(Ei(CA),Ei(LA),Ei(dl),Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(CA),Ei(LA),Ei(dl),Ei(Ul))},token:e,providedIn:"root"}),e}(),JA=function e(t){if(_(this,e),this.scrollStrategy=new UA,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(Ul))},token:e,providedIn:"root"}),e}(),ek=function(){var e=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return w(n,[{key:"add",value:function(e){h(y(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}($A);return e.\u0275fac=function(t){return new(t||e)(Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(Ul))},token:e,providedIn:"root"}),e}(),tk=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},r}return w(n,[{key:"add",value:function(e){if(h(y(n.prototype),"add",this).call(this,e),!this._isAttached){var t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;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}}}]),n}($A);return e.\u0275fac=function(t){return new(t||e)(Ei(Ul),Ei(_y))},e.\u0275prov=Oe({factory:function(){return new e(Ei(Ul),Ei(_y))},token:e,providedIn:"root"}),e}(),nk="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha,ik=function(){var e=function(){function e(t,n){_(this,e),this._platform=n,this._document=t}return w(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||nk)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),t=0;tp&&(p=v,f=m)}}catch(y){g.e(y)}finally{g.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&sk(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=ck(t),o=e.x,a=e.y,s=this._getOffset(i,"x"),u=this._getOffset(i,"y");s&&(o+=s),u&&(a+=u);var c=0-a,l=a+r.height-n.height,h=this._subtractOverflows(r.width,0-o,o+r.width-n.width),d=this._subtractOverflows(r.height,c,l),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=uk(this._overlayRef.getConfig().minHeight),a=uk(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=ck(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),u=Math.max(e.y+o.height-a.height,0),c=Math.max(a.top-n.top-e.y,0),l=Math.max(a.left-n.left-e.x,0);return i=o.width<=a.width?l||-s:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!c||"start"===t.overlayX&&c)s=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!c||"end"===t.overlayX&&c)a=e.x,o=u.right-e.x;else{var d=Math.min(u.right-e.x+u.left,e.x),f=this._lastBoundingBoxSize.width;o=2*d,a=e.x-d,o>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-f/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=dy(n.height),i.top=dy(n.top),i.bottom=dy(n.bottom),i.width=dy(n.width),i.left=dy(n.left),i.right=dy(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=dy(r)),o&&(i.maxWidth=dy(o))}this._lastBoundingBoxSize=n,sk(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){sk(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){sk(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();sk(n,this._getExactOverlayY(t,e,a)),sk(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",u=this._getOffset(t,"x"),c=this._getOffset(t,"y");u&&(s+="translateX(".concat(u,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=dy(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=dy(o.maxWidth):r&&(n.maxWidth="")),sk(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=dy(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=dy(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:VA(e,n),isOriginOutsideView:KA(e,n),isOverlayClipped:VA(t,n),isOverlayOutsideView:KA(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),dk=function(){var e=function(){function e(t,n,i,r){_(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return w(e,[{key:"global",value:function(){return new hk}},{key:"connectedTo",value:function(e,t,n){return new lk(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new ak(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(LA),Ei(Ul),Ei(_y),Ei(ik))},e.\u0275prov=Oe({factory:function(){return new e(Ei(LA),Ei(Ul),Ei(_y),Ei(ik))},token:e,providedIn:"root"}),e}(),fk=0,pk=function(){var e=function(){function e(t,n,i,r,o,a,s,u,c,l,h){_(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=c,this._location=l,this._outsideClickDispatcher=h}return w(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new JA(e);return r.direction=r.direction||this._directionality.value,new rk(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+fk++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(xl)),new IA(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(GA),Ei(ik),Ei(du),Ei(dk),Ei(ek),Ei(za),Ei(dl),Ei(Ul),Ei(o_),Ei(ah),Ei(tk))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),gk=[{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"}],mk=new hi("cdk-connected-overlay-scroll-strategy"),vk=function(){var e=function e(t){_(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(Ja(mu))},e.\u0275dir=gt({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),yk=function(){var e=function(){function e(t,n,i,r,o){_(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=L.EMPTY,this._attachSubscription=L.EMPTY,this._detachSubscription=L.EMPTY,this._positionSubscription=L.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Sc,this.positionChange=new Sc,this.attach=new Sc,this.detach=new Sc,this.overlayKeydown=new Sc,this.overlayOutsideClick=new Sc,this._templatePortal=new DA(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return w(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=uy(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=uy(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=uy(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=uy(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=uy(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(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())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=gk);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||Zv(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new JA({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}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;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(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new HA(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(pk),Ja(Vu),Ja($u),Ja(mk),Ja(o_,8))},e.\u0275dir=gt({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Et]}),e}(),_k={provide:mk,deps:[pk],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},bk=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[pk,_k],imports:[[a_,FA,RA],RA]}),e}(),wk=["underline"],Mk=["connectionContainer"],Ak=["inputContainer"],kk=["label"];function Tk(e,t){1&e&&(ns(0),$a(1,"div",14),ts(2,"div",15),ts(3,"div",16),ts(4,"div",17),es(),$a(5,"div",18),ts(6,"div",15),ts(7,"div",16),ts(8,"div",17),es(),is())}function Sk(e,t){1&e&&($a(0,"div",19),vs(1,1),es())}function Ck(e,t){if(1&e&&(ns(0),vs(1,2),$a(2,"span"),qs(3),es(),is()),2&e){var n=ps(2);yo(3),js(n._control.placeholder)}}function Ek(e,t){1&e&&vs(0,3,["*ngSwitchCase","true"])}function Lk(e,t){1&e&&($a(0,"span",23),qs(1," *"),es())}function zk(e,t){if(1&e){var n=os();$a(0,"label",20,21),cs("cdkObserveContent",function(){return Qt(n),ps().updateOutlineGap()}),Xa(2,Ck,4,1,"ng-container",12),Xa(3,Ek,1,0,"ng-content",12),Xa(4,Lk,2,0,"span",22),es()}if(2&e){var i=ps();Es("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),Qa("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),Ua("for",i._control.id)("aria-owns",i._control.id),yo(2),Qa("ngSwitchCase",!1),yo(1),Qa("ngSwitchCase",!0),yo(1),Qa("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function Rk(e,t){1&e&&($a(0,"div",24),vs(1,4),es())}function Ok(e,t){if(1&e&&($a(0,"div",25,26),ts(2,"span",27),es()),2&e){var n=ps();yo(2),Es("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function xk(e,t){1&e&&($a(0,"div"),vs(1,5),es()),2&e&&Qa("@transitionMessages",ps()._subscriptAnimationState)}function Dk(e,t){if(1&e&&($a(0,"div",31),qs(1),es()),2&e){var n=ps(2);Qa("id",n._hintLabelId),yo(1),js(n.hintLabel)}}function Pk(e,t){if(1&e&&($a(0,"div",28),Xa(1,Dk,2,2,"div",29),vs(2,6),ts(3,"div",30),vs(4,7),es()),2&e){var n=ps();Qa("@transitionMessages",n._subscriptAnimationState),yo(1),Qa("ngIf",n.hintLabel)}}var Nk,Ik=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Bk=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Fk=0,Hk=new hi("MatError"),qk=function(){var e=function e(t,n){_(this,e),this.id="mat-error-"+Fk++,t||n.nativeElement.setAttribute("aria-live","polite")};return e.\u0275fac=function(t){return new(t||e)(ci("aria-live"),Ja(mu))},e.\u0275dir=gt({type:e,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&Ua("id",t.id)},inputs:{id:"id"},features:[cu([{provide:Hk,useExisting:e}])]}),e}(),jk={transitionMessages:c_("transitionMessages",[p_("enter",f_({opacity:1,transform:"translateY(0%)"})),m_("void => enter",[f_({opacity:0,transform:"translateY(-5px)"}),l_("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Yk=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e}),e}(),Wk=0,Uk=new hi("MatHint"),Kk=function(){var e=function e(){_(this,e),this.align="start",this.id="mat-hint-"+Wk++};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(Ua("id",t.id)("align",null),Es("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[cu([{provide:Uk,useExisting:e}])]}),e}(),Vk=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["mat-label"]]}),e}(),Xk=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["mat-placeholder"]]}),e}(),Gk=new hi("MatPrefix"),Jk=new hi("MatSuffix"),Qk=0,Zk=Vw(function e(t){_(this,e),this._elementRef=t},"primary"),$k=new hi("MAT_FORM_FIELD_DEFAULT_OPTIONS"),eT=new hi("MatFormField"),tT=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u,c){var l;return _(this,n),(l=t.call(this,e))._elementRef=e,l._changeDetectorRef=i,l._dir=o,l._defaults=a,l._platform=s,l._ngZone=u,l._outlineGapCalculationNeededImmediately=!1,l._outlineGapCalculationNeededOnStable=!1,l._destroyed=new Y,l._showAlwaysAnimate=!1,l._subscriptAnimationState="",l._hintLabel="",l._hintLabelId="mat-hint-"+Qk++,l._labelId="mat-form-field-label-"+Qk++,l.floatLabel=l._getDefaultFloatLabelState(),l._animationsEnabled="NoopAnimations"!==c,l.appearance=a&&a.appearance?a.appearance:"legacy",l._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,l}return w(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=uy(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(Lp(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(cA(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(cA(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),le(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Lp(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Lp(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(cA(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,jM(this._label.nativeElement,"transitionend").pipe(Sp(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,r(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,r(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=e.children,c=this._getStartEnd(u[0].getBoundingClientRect()),l=0,h=0;h0?.75*l+10:0}for(var d=0;de?{max:{max:e,actual:t.value}}:null}}(e)}},{key:"required",value:function(e){return vT(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return hT(e.value)||gT.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return function(e){return function(t){return hT(t.value)||!dT(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}(e)}},{key:"pattern",value:function(e){return function(e){return e?("string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),function(e){if(hT(e.value))return null;var i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}):yT;var t,n}(e)}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return kT(e)}},{key:"composeAsync",value:function(e){return ST(e)}}]),e}();function vT(e){return hT(e.value)?{required:!0}:null}function yT(e){return null}function _T(e){return null!=e}function bT(e){var t=as(e)?re(e):e;return us(t),t}function wT(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function MT(e,t){return t.map(function(t){return t(e)})}function AT(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function kT(e){if(!e)return null;var t=e.filter(_T);return 0==t.length?null:function(e){return wT(MT(e,t))}}function TT(e){return null!=e?kT(AT(e)):null}function ST(e){if(!e)return null;var t=e.filter(_T);return 0==t.length?null:function(e){return iT(MT(e,t).map(bT)).pipe(ee(wT))}}function CT(e){return null!=e?ST(AT(e)):null}function ET(e,t){return null===e?[t]:Array.isArray(e)?[].concat(r(e),[t]):[e,t]}function LT(e){return e._rawValidators}function zT(e){return e._rawAsyncValidators}var RT=function(){var e=function(){function e(){_(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return w(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=TT(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=CT(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e}),e}(),OT=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(RT);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275dir=gt({type:t,features:[Oa]}),t}(),xT=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(RT),DT=function(){function e(t){_(this,e),this._cd=t}return w(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}(),PT=function(){var e=function(e){d(n,e);var t=p(n);function n(e){return _(this,n),t.call(this,e)}return n}(DT);return e.\u0275fac=function(t){return new(t||e)(Ja(xT,2))},e.\u0275dir=gt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Es("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[Oa]}),e}(),NT=function(){var e=function(e){d(n,e);var t=p(n);function n(e){return _(this,n),t.call(this,e)}return n}(DT);return e.\u0275fac=function(t){return new(t||e)(Ja(OT,10))},e.\u0275dir=gt({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&Es("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[Oa]}),e}();function IT(e,t){HT(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&jT(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&jT(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function BT(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),qT(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function FT(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function HT(e,t){var n=LT(e);null!==t.validator?e.setValidators(ET(n,t.validator)):"function"==typeof n&&e.setValidators([n]);var i=zT(e);null!==t.asyncValidator?e.setAsyncValidators(ET(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);var r=function(){return e.updateValueAndValidity()};FT(t._rawValidators,r),FT(t._rawAsyncValidators,r)}function qT(e,t){var n=!1;if(null!==e){if(null!==t.validator){var i=LT(e);if(Array.isArray(i)&&i.length>0){var r=i.filter(function(e){return e!==t.validator});r.length!==i.length&&(n=!0,e.setValidators(r))}}if(null!==t.asyncValidator){var o=zT(e);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(e){return e!==t.asyncValidator});a.length!==o.length&&(n=!0,e.setAsyncValidators(a))}}}var s=function(){};return FT(t._rawValidators,s),FT(t._rawAsyncValidators,s),n}function jT(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function YT(e,t){HT(e,t)}function WT(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function UT(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function KT(e,t){return t?(Array.isArray(t),t.forEach(function(e){e.constructor===lT?n=e:Object.getPrototypeOf(e.constructor)===aT?i=e:r=e}),r||i||n||null):null;var n,i,r}function VT(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function XT(e){return(ZT(e)?e.validators:e)||null}function GT(e){return Array.isArray(e)?TT(e):e||null}function JT(e,t){return(ZT(t)?t.asyncValidators:e)||null}function QT(e){return Array.isArray(e)?CT(e):e||null}function ZT(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var $T,eS,tS=function(){function e(t,n){_(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=GT(this._rawValidators),this._composedAsyncValidatorFn=QT(this._rawAsyncValidators)}return w(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=GT(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=QT(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=bT(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof iS?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof rS&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Sc,this.statusChanges=new Sc}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){ZT(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),nS=function(e){d(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _(this,n),(e=t.call(this,XT(r),JT(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),e}return w(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){VT(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){VT(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(tS),iS=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,XT(i),JT(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return w(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof nS?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(tS),rS=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,XT(i),JT(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return w(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof nS?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=a(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(tS),oS={provide:OT,useExisting:Te(function(){return sS})},aS=Promise.resolve(null),sS=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Sc,r.form=new iS({},TT(e),CT(i)),r}return w(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;aS.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),IT(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;aS.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),VT(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;aS.then(function(){var n=t._findContainer(e.path),i=new iS({});YT(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;aS.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;aS.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,UT(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(OT);return e.\u0275fac=function(t){return new(t||e)(Ja(fT,10),Ja(pT,10))},e.\u0275dir=gt({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&cs("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[cu([oS]),Oa]}),e}(),uS={provide:xT,useExisting:Te(function(){return lS})},cS=Promise.resolve(null),lS=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this)).control=new nS,a._registered=!1,a.update=new Sc,a._parent=e,a._setValidators(i),a._setAsyncValidators(r),a.valueAccessor=KT(0,o),a}return w(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),WT(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?[].concat(r(this._parent.path),[this.name]):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){IT(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;cS.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;cS.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}]),n}(xT);return e.\u0275fac=function(t){return new(t||e)(Ja(OT,9),Ja(fT,10),Ja(pT,10),Ja(sT,10))},e.\u0275dir=gt({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[cu([uS]),Oa,Et]}),e}(),hS=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),dS={provide:sT,useExisting:Te(function(){return fS}),multi:!0},fS=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"writeValue",value:function(e){this.setProperty("value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}}]),n}(aT);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275dir=gt({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&cs("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[cu([dS]),Oa]}),t}(),pS=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({}),e}(),gS=new hi("NgModelWithFormControlWarning"),mS={provide:xT,useExisting:Te(function(){return vS})},vS=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this))._ngModelWarningConfig=o,a.update=new Sc,a._ngModelWarningSent=!1,a._setValidators(e),a._setAsyncValidators(i),a.valueAccessor=KT(0,r),a}return w(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&BT(t,this,!1),IT(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}WT(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&BT(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}]),n}(xT);return e.\u0275fac=function(t){return new(t||e)(Ja(fT,10),Ja(pT,10),Ja(sT,10),Ja(gS,8))},e.\u0275dir=gt({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[cu([mS]),Oa,Et]}),e._ngModelWarningSentOnce=!1,e}(),yS={provide:OT,useExisting:Te(function(){return _S})},_S=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new Sc,r._setValidators(e),r._setAsyncValidators(i),r}return w(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(qT(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return IT(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){BT(e.control||null,e,!1),VT(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,UT(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(BT(n||null,t),i instanceof nS&&(IT(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);YT(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return qT(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){HT(this.form,this),this._oldForm&&qT(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(OT);return e.\u0275fac=function(t){return new(t||e)(Ja(fT,10),Ja(pT,10))},e.\u0275dir=gt({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&cs("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[cu([yS]),Oa,Et]}),e}(),bS={provide:fT,useExisting:Te(function(){return wS}),multi:!0},wS=function(){var e=function(){function e(){_(this,e),this._required=!1}return w(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?vT(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&Ua("required",t.required?"":null)},inputs:{required:"required"},features:[cu([bS])]}),e}(),MS=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[pS]]}),e}(),AS=((eS=function e(){_(this,e)}).\u0275fac=function(e){return new(e||eS)},eS.\u0275mod=ft({type:eS}),eS.\u0275inj=xe({imports:[MS]}),eS),kS=(($T=function(){function e(){_(this,e)}return w(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:gS,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275fac=function(e){return new(e||$T)},$T.\u0275mod=ft({type:$T}),$T.\u0275inj=xe({imports:[MS]}),$T),TS=["trigger"],SS=["panel"];function CS(e,t){if(1&e&&($a(0,"span",8),qs(1),es()),2&e){var n=ps();yo(1),js(n.placeholder)}}function ES(e,t){if(1&e&&($a(0,"span",12),qs(1),es()),2&e){var n=ps(2);yo(1),js(n.triggerValue)}}function LS(e,t){1&e&&vs(0,0,["*ngSwitchCase","true"])}function zS(e,t){1&e&&($a(0,"span",9),Xa(1,ES,2,1,"span",10),Xa(2,LS,1,0,"ng-content",11),es()),2&e&&(Qa("ngSwitch",!!ps().customTrigger),yo(2),Qa("ngSwitchCase",!0))}function RS(e,t){if(1&e){var n=os();$a(0,"div",13),$a(1,"div",14,15),cs("@transformPanel.done",function(e){return Qt(n),ps()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return Qt(n),ps()._handleKeydown(e)}),vs(3,1),es(),es()}if(2&e){var i=ps();Qa("@transformPanelWrap",void 0),yo(1),Ks("mat-select-panel ",i._getPanelTheme(),""),Cs("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),Qa("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),Ua("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var OS,xS,DS=[[["mat-select-trigger"]],"*"],PS=["mat-select-trigger","*"],NS={transformPanelWrap:c_("transformPanelWrap",[m_("* => void",y_("@transformPanel",[v_()],{optional:!0}))]),transformPanel:c_("transformPanel",[p_("void",f_({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),p_("showing",f_({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),p_("showing-multiple",f_({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),m_("void => *",l_("120ms cubic-bezier(0, 0, 0.2, 1)")),m_("* => void",l_("100ms 25ms linear",f_({opacity:0})))])},IS=0,BS=new hi("mat-select-scroll-strategy"),FS=new hi("MAT_SELECT_CONFIG"),HS={provide:BS,deps:[pk],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},qS=function e(t,n){_(this,e),this.source=t,this.value=n},jS=Xw(Gw(Kw(Jw(function e(t,n,i,r,o){_(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o})))),YS=new hi("MatSelectTrigger"),WS=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,o,a,s,u,c,l,h,d,f,p,g,v){var y,b,w,M;return _(this,n),(y=t.call(this,s,a,c,l,d))._viewportRuler=e,y._changeDetectorRef=i,y._ngZone=o,y._dir=u,y._parentFormField=h,y.ngControl=d,y._liveAnnouncer=g,y._defaultOptions=v,y._panelOpen=!1,y._compareWith=function(e,t){return e===t},y._uid="mat-select-"+IS++,y._triggerAriaLabelledBy=null,y._destroy=new Y,y._onChange=function(){},y._onTouched=function(){},y._valueId="mat-select-value-"+IS++,y._panelDoneAnimatingStream=new Y,y._overlayPanelClass=(null===(b=y._defaultOptions)||void 0===b?void 0:b.overlayPanelClass)||"",y._focused=!1,y.controlType="mat-select",y._required=!1,y._multiple=!1,y._disableOptionCentering=null!==(M=null===(w=y._defaultOptions)||void 0===w?void 0:w.disableOptionCentering)&&void 0!==M&&M,y.ariaLabel="",y.optionSelectionChanges=wp(function(){var e=y.options;return e?e.changes.pipe(Lp(e),Mp(function(){return le.apply(void 0,r(e.map(function(e){return e.onSelectionChange})))})):y._ngZone.onStable.pipe(Sp(1),Mp(function(){return y.optionSelectionChanges}))}),y.openedChange=new Sc,y._openedStream=y.openedChange.pipe(ef(function(e){return e}),ee(function(){})),y._closedStream=y.openedChange.pipe(ef(function(e){return!e}),ee(function(){})),y.selectionChange=new Sc,y.valueChange=new Sc,y.ngControl&&(y.ngControl.valueAccessor=m(y)),null!=(null==v?void 0:v.typeaheadDebounceInterval)&&(y._typeaheadDebounceInterval=v.typeaheadDebounceInterval),y._scrollStrategyFactory=p,y._scrollStrategy=y._scrollStrategyFactory(),y.tabIndex=parseInt(f)||0,y.id=y.id,y}return w(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=uy(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=uy(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=uy(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=cy(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new kA(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(tA(),cA(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(cA(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(Lp(null),cA(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!Zv(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||Zv(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var o=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(o?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this._overlayDir.positionChange.pipe(Sp(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new Hy(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(cA(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(cA(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=le(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(cA(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),le.apply(void 0,r(this.options.map(function(e){return e._stateChanges}))).pipe(cA(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==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)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.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()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(jS);return e.\u0275fac=function(t){return new(t||e)(Ja(LA),Ja(ju),Ja(dl),Ja(uM),Ja(mu),Ja(o_,8),Ja(sS,8),Ja(_S,8),Ja(eT,8),Ja(xT,10),ci("tabindex"),Ja(BS),Ja(Gy),Ja(FS,8))},e.\u0275dir=gt({type:e,viewQuery:function(e,t){var n;(1&e&&(Fc(TS,5),Fc(SS,5),Fc(yk,5)),2&e)&&(Bc(n=qc())&&(t.trigger=n.first),Bc(n=qc())&&(t.panel=n.first),Bc(n=qc())&&(t._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Oa,Et]}),e}(),US=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return w(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;h(y(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(cA(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;h(y(n.prototype),"_canOpen",this).call(this)&&(h(y(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Sp(1)).subscribe(function(){e._triggerFontSize&&e._overlayDir.overlayRef&&e._overlayDir.overlayRef.overlayElement&&(e._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t=OM(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=xM((e+t)*n,n,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),h(y(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new qS(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this._overlayDir.offsetX=Math.round(e),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=OM(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(WS);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275cmp=ct({type:t,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;(1&e&&(Hc(n,YS,5),Hc(n,RM,5),Hc(n,CM,5)),2&e)&&(Bc(i=qc())&&(t.customTrigger=i.first),Bc(i=qc())&&(t.options=i),Bc(i=qc())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&cs("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(Ua("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),Es("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:[cu([{provide:Yk,useExisting:t},{provide:AM,useExisting:t}]),Oa],ngContentSelectors:PS,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&&(ms(DS),$a(0,"div",0,1),cs("click",function(){return t.toggle()}),$a(3,"div",2),Xa(4,CS,2,1,"span",3),Xa(5,zS,3,2,"span",4),es(),$a(6,"div",5),ts(7,"div",6),es(),es(),Xa(8,RS,4,14,"ng-template",7),cs("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=Ga(1);Ua("aria-owns",t.panelOpen?t.id+"-panel":null),yo(3),Qa("ngSwitch",t.empty),Ua("id",t._valueId),yo(1),Qa("ngSwitchCase",!0),yo(1),Qa("ngSwitchCase",!1),yo(3),Qa("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[vk,Zh,$h,yk,ed,Wh],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[NS.transformPanelWrap,NS.transformPanel]},changeDetection:0}),t}(),KS=((OS=function e(){_(this,e)}).\u0275fac=function(e){return new(e||OS)},OS.\u0275mod=ft({type:OS}),OS.\u0275inj=xe({providers:[HS],imports:[[ld,bk,PM,Uw],zA,nT,PM,Uw]}),OS),VS=function(){function e(t){_(this,e),this.total=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new XS(e,this.total))}}]),e}(),XS=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return w(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(O),GS=new Set,JS=function(){var e=function(){function e(t){_(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):QS}return w(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!GS.has(e))try{xS||((xS=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(xS)),xS.sheet&&(xS.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),GS.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(_y))},e.\u0275prov=Oe({factory:function(){return new e(Ei(_y))},token:e,providedIn:"root"}),e}();function QS(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var ZS=function(){var e=function(){function e(t,n){_(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new Y}return w(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return $S(hy(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=pp($S(hy(e)).map(function(e){return t._registerQuery(e).observable}));return(n=yp(n.pipe(Sp(1)),n.pipe(function(e){return e.lift(new VS(1))},iy(0)))).pipe(ee(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new I(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(Lp(n),ee(function(t){var n=t.matches;return{query:e,matches:n}}),cA(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(JS),Ei(dl))},e.\u0275prov=Oe({factory:function(){return new e(Ei(JS),Ei(dl))},token:e,providedIn:"root"}),e}();function $S(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var eC={tooltipState:c_("state",[p_("initial, void, hidden",f_({opacity:0,transform:"scale(0)"})),p_("visible",f_({transform:"scale(1)"})),m_("* => visible",l_("200ms cubic-bezier(0, 0, 0.2, 1)",g_([f_({opacity:0,transform:"scale(0)",offset:0}),f_({opacity:.5,transform:"scale(0.99)",offset:.5}),f_({opacity:1,transform:"scale(1)",offset:1})]))),m_("* => hidden",l_("100ms cubic-bezier(0, 0, 0.2, 1)",f_({opacity:0})))])},tC=Ay({passive:!0}),nC=new hi("mat-tooltip-scroll-strategy"),iC={provide:nC,deps:[pk],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},rC=new hi("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),oC=function(){var e=function(){function e(t,n,i,r,o,a,s,u,c,l,h,d){var f=this;_(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=u,this._dir=l,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Y,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!Zv(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=c,this._document=d,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),l.change.pipe(cA(this._destroyed)).subscribe(function(){f._overlayRef&&f._updatePosition(f._overlayRef)}),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)})}return w(e,[{key:"position",get:function(){return this._position},set:function(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()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=uy(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;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(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(cA(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(n){var i=t(n,2),r=i[0],o=i[1];e.removeEventListener(r,o,tC)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new xA(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(cA(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe(cA(this._destroyed)).subscribe(function(t){e._updateCurrentPositionClass(t.connectionPair),e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-tooltip-panel"),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(cA(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var t=e.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Sp(1),cA(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(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}}},{key:"_updateCurrentPositionClass",value:function(e){var t,n=e.overlayY,i=e.originX,r=e.originY;if((t="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===r?"above":"below")!==this._currentPosition){var o=this._overlayRef;if(o){var a="".concat(this._cssClassPrefix,"-tooltip-panel-");o.removePanelClass(a+this._currentPosition),o.addPanelClass(a+t)}this._currentPosition=t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var n=this;e.forEach(function(e){var i=t(e,2),r=i[0],o=i[1];n._elementRef.nativeElement.addEventListener(r,o,tC)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(pk),Ja(mu),Ja(CA),Ja($u),Ja(dl),Ja(_y),Ja(Ny),Ja(e_),Ja(void 0),Ja(o_),Ja(void 0),Ja(Ul))},e.\u0275dir=gt({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),aC=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u,c,l,h,d,f){var p;return _(this,n),(p=t.call(this,e,i,r,o,a,s,u,c,l,h,d,f))._tooltipComponent=uC,p}return n}(oC);return e.\u0275fac=function(t){return new(t||e)(Ja(pk),Ja(mu),Ja(CA),Ja($u),Ja(dl),Ja(_y),Ja(Ny),Ja(e_),Ja(nC),Ja(o_,8),Ja(rC,8),Ja(Ul))},e.\u0275dir=gt({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Oa]}),e}(),sC=function(){var e=function(){function e(t){_(this,e),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Y}return w(e,[{key:"show",value:function(e){var t=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=void 0,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=void 0,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(ju))},e.\u0275dir=gt({type:e}),e}(),uC=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e))._breakpointObserver=i,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return n}(sC);return e.\u0275fac=function(t){return new(t||e)(Ja(ju),Ja(ZS))},e.\u0275cmp=ct({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&cs("click",function(){return t._handleBodyInteraction()},!1,Lr)("auxclick",function(){return t._handleBodyInteraction()},!1,Lr),2&e&&Cs("zoom","visible"===t._visibility?1:null)},features:[Oa],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&($a(0,"div",0),cs("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),_c(1,"async"),qs(2),es()),2&e)&&(Es("mat-tooltip-handset",null==(n=bc(1,5,t._isHandset))?null:n.matches),Qa("ngClass",t.tooltipClass)("@state",t._visibility),yo(2),js(t.message))},directives:[Wh],pipes:[sd],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[eC.tooltipState]},changeDetection:0}),e}(),cC=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[iC],imports:[[i_,ld,bk,Uw],Uw,zA]}),e}();function lC(e,t){if(1&e&&($a(0,"mat-option",19),qs(1),es()),2&e){var n=t.$implicit;Qa("value",n),yo(1),Ys(" ",n," ")}}function hC(e,t){if(1&e){var n=os();$a(0,"mat-form-field",16),$a(1,"mat-select",17),cs("selectionChange",function(e){return Qt(n),ps(2)._changePageSize(e.value)}),Xa(2,lC,2,2,"mat-option",18),es(),es()}if(2&e){var i=ps(2);Qa("appearance",i._formFieldAppearance)("color",i.color),yo(1),Qa("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),yo(1),Qa("ngForOf",i._displayedPageSizeOptions)}}function dC(e,t){if(1&e&&($a(0,"div",20),qs(1),es()),2&e){var n=ps(2);yo(1),js(n.pageSize)}}function fC(e,t){if(1&e&&($a(0,"div",12),$a(1,"div",13),qs(2),es(),Xa(3,hC,3,6,"mat-form-field",14),Xa(4,dC,2,1,"div",15),es()),2&e){var n=ps();yo(2),Ys(" ",n._intl.itemsPerPageLabel," "),yo(1),Qa("ngIf",n._displayedPageSizeOptions.length>1),yo(1),Qa("ngIf",n._displayedPageSizeOptions.length<=1)}}function pC(e,t){if(1&e){var n=os();$a(0,"button",21),cs("click",function(){return Qt(n),ps().firstPage()}),Tn(),$a(1,"svg",7),ts(2,"path",22),es(),es()}if(2&e){var i=ps();Qa("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),Ua("aria-label",i._intl.firstPageLabel)}}function gC(e,t){if(1&e){var n=os();Tn(),Sn(),$a(0,"button",23),cs("click",function(){return Qt(n),ps().lastPage()}),Tn(),$a(1,"svg",7),ts(2,"path",24),es(),es()}if(2&e){var i=ps();Qa("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),Ua("aria-label",i._intl.lastPageLabel)}}var mC=function(){var e=function e(){_(this,e),this.changes=new Y,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of ".concat(n);var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({factory:function(){return new e},token:e,providedIn:"root"}),e}(),vC={provide:mC,deps:[[new Pi,new Ni,mC]],useFactory:function(e){return e||new mC}},yC=new hi("MAT_PAGINATOR_DEFAULT_OPTIONS"),_C=Kw(Qw(function e(){_(this,e)})),bC=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;if(_(this,n),(o=t.call(this))._intl=e,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new Sc,o._intlChanges=e.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var a=r.pageSize,s=r.pageSizeOptions,u=r.hidePageSize,c=r.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=s&&(o._pageSizeOptions=s),null!=u&&(o._hidePageSize=u),null!=c&&(o._showFirstLastButtons=c)}return g(o)}return w(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(cy(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=cy(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(cy(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map(function(e){return cy(e)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=uy(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=uy(e)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex1&&void 0!==arguments[1]?arguments[1]:ny,i=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new kC(i,n))}}var kC=function(){function e(t,n){_(this,e),this.delay=t,this.scheduler=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new TC(e,this.delay,this.scheduler))}}]),e}(),TC=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return w(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new SC(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(mA.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(mA.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(O),SC=function e(t,n){_(this,e),this.time=t,this.notification=n},CC=["mat-menu-item",""],EC=["*"];function LC(e,t){if(1&e){var n=os();$a(0,"div",0),cs("keydown",function(e){return Qt(n),ps()._handleKeydown(e)})("click",function(){return Qt(n),ps().closed.emit("click")})("@transformMenu.start",function(e){return Qt(n),ps()._onAnimationStart(e)})("@transformMenu.done",function(e){return Qt(n),ps()._onAnimationDone(e)}),$a(1,"div",1),vs(2),es(),es()}if(2&e){var i=ps();Qa("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),Ua("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var zC={transformMenu:c_("transformMenu",[p_("void",f_({opacity:0,transform:"scale(0.8)"})),m_("void => enter",l_("120ms cubic-bezier(0, 0, 0.2, 1)",f_({opacity:1,transform:"scale(1)"}))),m_("* => void",l_("100ms 25ms linear",f_({opacity:0})))]),fadeInItems:c_("fadeInItems",[p_("showing",f_({opacity:1})),m_("void => *",[f_({opacity:0}),l_("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},RC=new hi("MatMenuContent"),OC=new hi("MAT_MENU_PANEL"),xC=Xw(Kw(function e(){_(this,e)})),DC=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this))._elementRef=e,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new Y,a._focused=new Y,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(m(a)),a}return w(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Sp(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t="mat-elevation-z".concat(Math.min(4+e,24)),n=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(Lp(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(dl),Ja(PC))},e.\u0275dir=gt({type:e,contentQueries:function(e,t,n){var i;(1&e&&(Hc(n,RC,5),Hc(n,DC,5),Hc(n,DC,4)),2&e)&&(Bc(i=qc())&&(t.lazyContent=i.first),Bc(i=qc())&&(t._allItems=i),Bc(i=qc())&&(t.items=i))},viewQuery:function(e,t){var n;(1&e&&Fc(Vu,5),2&e)&&(Bc(n=qc())&&(t.templateRef=n.first))},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),BC=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r){return _(this,n),t.call(this,e,i,r)}return n}(IC);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(dl),Ja(PC))},e.\u0275cmp=ct({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&Ua("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[cu([{provide:OC,useExisting:e}]),Oa],ngContentSelectors:EC,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&&(ms(),Xa(0,LC,3,6,"ng-template"))},directives:[Wh],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[zC.transformMenu,zC.fadeInItems]},changeDetection:0}),e}(),FC=new hi("mat-menu-scroll-strategy"),HC={provide:FC,deps:[pk],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},qC=Ay({passive:!0}),jC=function(){var e=function(){function e(t,n,i,r,o,a,s,u){var c=this;_(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=s,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=L.EMPTY,this._hoverSubscription=L.EMPTY,this._menuCloseSubscription=L.EMPTY,this._handleTouchStart=function(e){Qy(e)||(c._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Sc,this.onMenuOpen=this.menuOpened,this.menuClosed=new Sc,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof IC?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,qC),a&&(a._triggersSubmenu=this.triggersSubmenu())}return w(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,qC),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof IC&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof IC?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(ef(function(e){return"void"===e.toState}),Sp(1),cA(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new JA({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var n=t("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=n[0],r=n[1],o=t("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=o[0],s=o[1],u=a,c=s,l=i,h=r,d=0;this.triggersSubmenu()?(h=i="before"===this.menu.xPosition?"start":"end",r=l="end"===i?"start":"end",d="bottom"===a?8:-8):this.menu.overlapTrigger||(u="top"===a?"bottom":"top",c="top"===s?"bottom":"top"),e.withPositions([{originX:i,originY:u,overlayX:l,overlayY:a,offsetY:d},{originX:r,originY:u,overlayX:h,overlayY:a,offsetY:d},{originX:i,originY:c,overlayX:l,overlayY:s,offsetY:-d},{originX:r,originY:c,overlayX:h,overlayY:s,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return le(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Zd(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ef(function(t){return t!==e._menuItemInstance}),ef(function(){return e._menuOpen})):Zd(),n)}},{key:"_handleMousedown",value:function(e){Jy(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var 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())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(ef(function(t){return t===e._menuItemInstance&&!t.disabled}),AC(0,$M)).subscribe(function(){e._openedBy="mouse",e.menu instanceof IC&&e.menu._isAnimating?e.menu._animationDone.pipe(Sp(1),AC(0,$M),cA(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new DA(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(pk),Ja(mu),Ja($u),Ja(FC),Ja(OC,8),Ja(DC,10),Ja(o_,8),Ja(e_))},e.\u0275dir=gt({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&cs("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&Ua("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),YC=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[HC],imports:[Uw]}),e}(),WC=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[HC],imports:[[ld,Uw,bM,bk,YC],zA,Uw,YC]}),e}(),UC=["*"];function KC(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function VC(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function XC(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var GC=function e(t,n,i){_(this,e),this.url=t,this.svgText=n,this.options=i},JC=function(){var e=function(){function e(t,n,i,r){_(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}return w(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new GC(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(vr.HTML,n);if(!r)throw XC(n);return this._addSvgIconConfig(e,t,new GC("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new GC(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(vr.HTML,t);if(!i)throw XC(t);return this._addSvgIconSetConfig(e,new GC("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(vr.RESOURCE_URL,e);if(!n)throw VC(e);var i=this._cachedIconsByUrl.get(n);return i?Zd(QC(i)):this._loadSvgIconFromConfig(new GC(e,null)).pipe(Xp(function(e){return t._cachedIconsByUrl.set(n,e)}),ee(function(e){return QC(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=ZC(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):pA(KC(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?Zd(QC(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ee(function(e){return QC(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?Zd(i):iT(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(xp(function(t){var i=n._sanitizer.sanitize(vr.RESOURCE_URL,e.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(i," failed: ").concat(t.message))),Zd(null)}))})).pipe(ee(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw KC(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),o=this._extractSvgIconFromSet(r,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Xp(function(t){return e.svgText=t}),ee(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?Zd(null):this._fetchIcon(e).pipe(Xp(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString(""),n=e.attributes,i=0;i5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],c=arguments.length>8?arguments[8]:void 0;_(this,e),this.store=t,this.currentLoader=n,this.compiler=i,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=a,this.isolate=s,this.extend=u,this.pending=!1,this._onTranslationChange=new Sc,this._onLangChange=new Sc,this._onDefaultLangChange=new Sc,this._langs=[],this._translations={},this._translationRequests={},c&&this.setDefaultLang(c)}return w(e,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}},{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var n=this.retrieveTranslations(e);void 0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(Sp(1)).subscribe(function(n){t.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return Zd(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe(Sp(1)).subscribe(function(n){t.changeLang(e)}),n):(this.changeLang(e),Zd(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var n=this.currentLoader.getTranslation(e).pipe(wA(1),Sp(1));return this.loadingTranslations=n.pipe(ee(function(n){return t.compiler.compileTranslations(n,e)}),wA(1),Sp(1)),this.loadingTranslations.subscribe({next:function(n){t.translations[e]=t.extend&&t.translations[e]?Object.assign(Object.assign({},n),t.translations[e]):n,t.updateLangs(),t.pending=!1},error:function(e){t.pending=!1}}),n}},{key:"setTranslation",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=this.compiler.compileTranslations(t,e),this.translations[e]=(n||this.extend)&&this.translations[e]?pE(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach(function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,n){var i;if(t instanceof Array){var r,o={},s=!1,u=a(t);try{for(u.s();!(r=u.n()).done;){var c=r.value;o[c]=this.getParsedResult(e,c,n),eA(o[c])&&(s=!0)}}catch(h){u.e(h)}finally{u.f()}return s?iT(t.map(function(e){return eA(o[e])?o[e]:Zd(o[e])})).pipe(ee(function(e){var n={};return e.forEach(function(e,i){n[t[i]]=e}),n})):o}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===i){var l={key:t,translateService:this};void 0!==n&&(l.interpolateParams=n),i=this.missingTranslationHandler.handle(l)}return void 0!==i?i:t}},{key:"get",value:function(e,t){var n=this;if(!dE(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe($d(function(i){return eA(i=n.getParsedResult(i,e,t))?i:Zd(i)}));var i=this.getParsedResult(this.translations[this.currentLang],e,t);return eA(i)?i:Zd(i)}},{key:"getStreamOnTranslationChange",value:function(e,t){var n=this;if(!dE(e)||!e.length)throw new Error('Parameter "key" required');return yp(wp(function(){return n.get(e,t)}),this.onTranslationChange.pipe(Mp(function(i){var r=n.getParsedResult(i.translations,e,t);return"function"==typeof r.subscribe?r:Zd(r)})))}},{key:"stream",value:function(e,t){var n=this;if(!dE(e)||!e.length)throw new Error('Parameter "key" required');return yp(wp(function(){return n.get(e,t)}),this.onLangChange.pipe(Mp(function(i){var r=n.getParsedResult(i.translations,e,t);return eA(r)?r:Zd(r)})))}},{key:"instant",value:function(e,t){if(!dE(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(eA(n)){if(e instanceof Array){var i={};return e.forEach(function(t,n){i[e[n]]=e[n]}),i}return e}return n}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(bE),Ei(sE),Ei(yE),Ei(mE),Ei(cE),Ei(ME),Ei(wE),Ei(kE),Ei(AE))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),SE=function(){var e=function(){function e(t,n){_(this,e),this.translate=t,this._ref=n,this.value=""}return w(e,[{key:"updateValue",value:function(e,t,n){var i=this,r=function(t){i.value=void 0!==t?t:e,i.lastKey=e,i._ref.markForCheck()};if(n){var o=this.translate.getParsedResult(n,e,t);eA(o.subscribe)?o.subscribe(r):r(o)}this.translate.get(e,t).subscribe(r)}},{key:"transform",value:function(e){var t,n=this;if(!e||!e.length)return e;for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:sE,useClass:uE},t.compiler||{provide:yE,useClass:_E},t.parser||{provide:mE,useClass:vE},t.missingTranslationHandler||{provide:cE,useClass:lE},bE,{provide:wE,useValue:t.isolate},{provide:ME,useValue:t.useDefaultLang},{provide:kE,useValue:t.extend},{provide:AE,useValue:t.defaultLanguage},TE]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:sE,useClass:uE},t.compiler||{provide:yE,useClass:_E},t.parser||{provide:mE,useClass:vE},t.missingTranslationHandler||{provide:cE,useClass:lE},{provide:wE,useValue:t.isolate},{provide:ME,useValue:t.useDefaultLang},{provide:kE,useValue:t.extend},{provide:AE,useValue:t.defaultLanguage},TE]}}}]),e}()).\u0275fac=function(e){return new(e||gE)},gE.\u0275mod=ft({type:gE}),gE.\u0275inj=xe({}),gE),EE=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[],imports:[[MC,WC,aE,qM,CE,ld]]}),e}();function LE(e,t){}var zE=function e(){_(this,e),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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},RE={dialogContainer:c_("dialogContainer",[p_("void, exit",f_({opacity:0,transform:"scale(0.7)"})),p_("enter",f_({transform:"none"})),m_("* => enter",l_("150ms cubic-bezier(0, 0, 0.2, 1)",f_({transform:"none",opacity:1}))),m_("* => void, * => exit",l_("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",f_({opacity:0})))])},OE=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s){var u;return _(this,n),(u=t.call(this))._elementRef=e,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=a,u._focusMonitor=s,u._animationStateChanged=new Sc,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(e){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(e)},u._ariaLabelledBy=a.ariaLabelledBy||null,u._document=o,u}return w(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=Cy(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Cy())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=Cy();return e===t||e.contains(t)}}]),n}(NA);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(Ky),Ja(ju),Ja(Ul,8),Ja(zE),Ja(e_))},e.\u0275dir=gt({type:e,viewQuery:function(e,t){var n;(1&e&&Fc(BA,7),2&e)&&(Bc(n=qc())&&(t._portalOutlet=n.first))},features:[Oa]}),e}(),xE=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._state="enter",e}return w(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(OE);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275cmp=ct({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&ls("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(Vs("id",t._id),Ua("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),Xs("@dialogContainer",t._state))},features:[Oa],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Xa(0,LE,0,0,"ng-template",0)},directives:[BA],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[RE.dialogContainer]}}),t}(),DE=0,PE=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+DE++;_(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Y,this._afterClosed=new Y,this._beforeClosed=new Y,this._state=0,n._id=r,n._animationStateChanged.pipe(ef(function(e){return"opened"===e.state}),Sp(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(ef(function(e){return"closed"===e.state}),Sp(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(ef(function(e){return 27===e.keyCode&&!i.disableClose&&!Zv(e)})).subscribe(function(e){e.preventDefault(),NE(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():NE(i,"mouse")})}return w(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(ef(function(e){return"closing"===e.state}),Sp(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function NE(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var IE,BE=new hi("MatDialogData"),FE=new hi("mat-dialog-default-options"),HE=new hi("mat-dialog-scroll-strategy"),qE={provide:HE,deps:[pk],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},jE=function(){var e=function(){function e(t,n,i,r,o,a,s,u,c){var l=this;_(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=u,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Y,this._afterOpenedAtThisLevel=new Y,this._ariaHiddenElements=new Map,this.afterAllClosed=wp(function(){return l.openDialogs.length?l._getAfterAllClosed():l._getAfterAllClosed().pipe(Lp(void 0))}),this._scrollStrategy=a}return w(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new zE)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new JA({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=za.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:zE,useValue:t}]}),i=new xA(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof Vu)t.attachTemplatePortal(new DA(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),a=t.attachComponentPortal(new xA(e,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(o_,null,je.Optional)||r.push({provide:o_,useValue:{value:e.direction,change:Zd()}}),za.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(pk),Ja(za),Ja(void 0),Ja(void 0),Ja(ik),Ja(void 0),Ja(fi),Ja(fi),Ja(hi))},e.\u0275dir=gt({type:e}),e}(),YE=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u){return _(this,n),t.call(this,e,i,o,s,u,a,PE,xE,BE)}return n}(jE);return e.\u0275fac=function(t){return new(t||e)(Ei(pk),Ei(za),Ei(ah,8),Ei(FE,8),Ei(HE),Ei(e,12),Ei(ik))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),WE=0,UE=function(){var e=function(){function e(t,n,i){_(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+WE++}return w(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=function(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE,8),Ja(mu),Ja(YE))},e.\u0275dir=gt({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&Vs("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),KE=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),VE=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}(),XE=((IE=function e(){_(this,e)}).\u0275fac=function(e){return new(e||IE)},IE.\u0275mod=ft({type:IE}),IE.\u0275inj=xe({providers:[YE,qE],imports:[[bk,FA,Uw],Uw]}),IE),GE=v(2051),JE=[5,10,25,100];function QE(){var e=new zE;return e.disableClose=!0,e.autoFocus=!1,e}function ZE(e){return"virt"===e.namespace.split(":")[4]}var $E=new Intl.Collator("cs",{numeric:!0});function eL(e,t,n,i){var r=t.active,o=t.direction;return r&&""!==o?e.sort(function(e,t){var a=n(e,r,i),s=n(t,r,i);return $E.compare(a,s)*("asc"===o?1:-1)}):e}function tL(e,t,n,i,r,o){t=t.toLowerCase();var a="";return n.forEach(function(t){a+=";"+i(e,t,r)}),o&&(a+=";"+i(e,"uuid",r)),-1!==a.toLowerCase().indexOf(t)}function nL(e,t,n,i){var r=[],o=["checkbox","select","edit","menu","cite","extend","recent"];return t=t.filter(function(e){return!o.includes(e)}),e.forEach(function(e){var o={};t.forEach(function(t){var r;o[t]=(null!==(r=n(e,t,i))&&void 0!==r?r:"").split('"').join("''").trim()}),r.push(o)}),r}function iL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"csv",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"export";switch(t){case"csv":var i=function(e,t){return null===t?"":t},r=Object.keys(e[0]),o=e.map(function(e){return r.map(function(t){return JSON.stringify(e[t],i)}).join(",")});o.unshift(r.join(",").split(" ").join("_").split('"').join("''"));var a=o.join("\r\n"),s=new Blob([a],{type:"text/csv"});(0,GE.saveAs)(s,"".concat(n,".").concat(t))}}var rL=function(){var e=function e(){_(this,e),this.exportData=new Sc};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&($a(0,"div",0),$a(1,"button",1),$a(2,"mat-icon"),qs(3,"more_vert"),es(),es(),$a(4,"mat-menu",null,2),$a(6,"button",3),qs(7),_c(8,"translate"),es(),es(),$a(9,"mat-menu",null,4),$a(11,"button",5),cs("click",function(){return t.exportData.emit("csv")}),qs(12,"Csv"),es(),es(),es()),2&e){var n=Ga(5),i=Ga(10);yo(1),Qa("matMenuTriggerFor",n),yo(5),Qa("matMenuTriggerFor",i),yo(1),Ys(" ",bc(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[HM,jC,oE,BC,DC],pipes:[SE],styles:[""]}),e}();function oL(e,t){if(1&e){var n=os();$a(0,"perun-web-apps-table-options",6),cs("exportData",function(e){return Qt(n),ps().exportData.emit(e)}),es()}}var aL,sL=["*"],uL=((aL=function(){function e(){_(this,e),this.hideExport=!1,this.page=new Sc,this.pageSizeOptions=JE,this.pageSize=5,this.dataLength=0,this.exportData=new Sc}return w(e,[{key:"matPaginator",set:function(e){this.paginator=e}},{key:"pageChanged",value:function(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.page.emit(e),this.paginator.page.emit(e)}}]),e}()).\u0275fac=function(e){return new(e||aL)},aL.\u0275cmp=ct({type:aL,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){var n;1&e&&Fc(wC,7),2&e&&Bc(n=qc())&&(t.matPaginator=n.first)},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",pageSize:"pageSize",dataLength:"dataLength"},outputs:{page:"page",exportData:"exportData"},ngContentSelectors:sL,decls:7,vars:8,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(e,t){1&e&&(ms(),$a(0,"div",0),$a(1,"div",1),$a(2,"mat-paginator",2),cs("page",function(e){return t.page.emit(e)}),es(),Xa(3,oL,1,0,"perun-web-apps-table-options",3),es(),$a(4,"div",4),vs(5),es(),$a(6,"mat-paginator",5),cs("page",function(e){return t.pageChanged(e)}),es(),es()),2&e&&(yo(2),Qa("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),yo(1),Qa("ngIf",!t.hideExport),yo(3),Qa("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize))},directives:[wC,Xh,rL],styles:[""]}),aL),cL=function(){var e=function(){function e(t){_(this,e),this.dialogRef=t}return w(e,[{key:"close",value:function(){this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),es(),$a(3,"div",1),qs(4),_c(5,"translate"),es(),$a(6,"div",2),$a(7,"div",3),$a(8,"button",4),cs("click",function(){return t.close()}),qs(9),_c(10,"translate"),es(),es(),es()),2&e&&(yo(1),js(bc(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),yo(3),Ys(" ",bc(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),yo(5),Ys(" ",bc(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[UE,KE,VE,HM],pipes:[SE],styles:[""]}),e}(),lL=function(){var e=function(){function e(){_(this,e),this.branding=""}return w(e,[{key:"setInstanceConfig",value:function(e){this.instanceConfig=e}},{key:"setDefaultConfig",value:function(e){this.defaultConfig=e}},{key:"setPerunPrincipal",value:function(e){this.principal=e}},{key:"getPerunPrincipal",value:function(){return this.principal}},{key:"getInitialPageId",value:function(){return this.initialPageId}},{key:"setInitialPageId",value:function(e){this.initialPageId=e}},{key:"getLoginAttributeNames",value:function(){return this.get("login_namespace_attributes")}},{key:"getMemberProfileAttributeNames",value:function(){return this.get("member_profile_attributes_friendly_names")}},{key:"setBanding",value:function(e){this.branding=e}},{key:"skipOidc",value:function(){return this.get("skip_oidc")}},{key:"get",value:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]: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)}},{key:"showError",value:function(e,t,n,i,r){this.addNotification.emit({type:"error",error:t,description:n,title:e,actionText:void 0===i&&void 0!==n?this.getDefaultActionMessage():i,delay:this.defaultErrorDelayMs,icon:"error_outline",action:r,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}},{key:"showSuccess",value:function(e,t,n,i){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===n&&void 0!==t?this.getDefaultActionMessage():n,delay:this.defaultSuccessDelayMs,icon:"done",action:i,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(TE))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),vL=function(){var e=function(){function e(t,n,i,r,o,a){_(this,e),this.authService=t,this.apiRequestConfiguration=n,this.notificator=i,this.store=r,this.dialog=o,this.initAuthService=a}return w(e,[{key:"intercept",value:function(e,t){var n=this,i=this.store.get("api_url");if(-1!==e.url.indexOf("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==e.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()){var r=QE();r.width="450px",this.dialog.open(cL,r).afterClosed().subscribe(function(){n.authService.startAuthentication().then(function(){})})}e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});var o=this.apiRequestConfiguration.shouldHandleError(),a="POST"===e.method&&!this.store.skipOidc();return t.handle(e).pipe(Xp(function(e){e instanceof _f&&a&&n.initAuthService.loadPrincipal()},function(t){var i=n.formatErrors(t,e);return void 0===i?pA(t):o?void n.notificator.showRPCError(i):pA(i)}))}},{key:"formatErrors",value:function(e,t){var n;if(console.error(e),e.error.errorId?n=e.error:e.errorId&&(n=JSON.parse(e.error)),void 0!==n)return n.urlWithParams=t.urlWithParams,n.call=t.url,n.payload=t.body,n}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(hL),Ei(gL),Ei(mL),Ei(lL),Ei(YE),Ei(fL))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e}(),yL=function(){var e=function(){function e(){_(this,e),this.notificationData=[],this.newNotificationsCount=0}return w(e,[{key:"storeNotification",value:function(e){this.newNotificationsCount++,this.notificationData.push(e)}},{key:"getNotifications",value:function(){return this.notificationData.reverse()}},{key:"clearNotifications",value:function(){this.notificationData=[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),_L=function(){var e=function(){function e(t,n,i,r){_(this,e),this.http=t,this.notificator=n,this.authService=i,this.storeService=r}return w(e,[{key:"getApiUrl",value:function(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}},{key:"formatErrors",value:function(e,t,n,i){var r=e.error;return r.call=t,r.payload=n,i&&this.notificator.showRPCError(e.error),pA(r)}},{key:"getHeaders",value:function(){var e=new af;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue())}},{key:"get",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]||new lf,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]),i="".concat(this.getApiUrl()).concat(e);return this.http.get(i,{headers:this.getHeaders()}).pipe(xp(function(e){return t.formatErrors(e,i,null,n)}))}},{key:"put",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(e),o=JSON.stringify(n);return this.http.put(r,o,{headers:this.getHeaders()}).pipe(xp(function(e){return t.formatErrors(e,r,o,i)}))}},{key:"post",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(e),o=JSON.stringify(n),a=this.getHeaders();return a=a.set("Content-Type","application/json; charset=utf-8"),this.http.post(r,o,{headers:a}).pipe(xp(function(e){return t.formatErrors(e,r,o,i)}))}},{key:"delete",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i="".concat(this.getApiUrl()).concat(e);return this.http.delete(i,{headers:this.getHeaders()}).pipe(xp(function(e){return t.formatErrors(e,i,null,n)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Nf),Ei(mL),Ei(hL),Ei(lL))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),bL=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"isAllSelectedWithDisabledCheckbox",value:function(e,t,n,i,r,o,a,s){var u=this;return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=r*n,this.pageEnd=this.pageStart+n,this.pageIterator=0,this.dataLength=""===t?o.data.length:o.filteredData.length,i||(this.modulo=this.dataLength%n,this.pageEnd=0===this.modulo?this.pageStart+n:this.pageStart+this.modulo),o.sortData(o.filteredData,a).forEach(function(e){u.pageStart<=u.pageIterator&&u.pageIterator closed",[l_(".3s ease-in")])]);var wL=c_("flyInOut",[m_(":enter",[f_({transform:"translateX(100%)"}),l_(".25s")]),m_(":leave",[l_(".5s",f_({transform:"translateX(100%)"}))])]);c_("rollInOut",[m_(":enter",[f_({height:"0px"}),l_(".25s")]),m_(":leave",[l_(".25s",f_({height:"0px"}))])]),c_("routeAnimations",[m_("* => *",[f_({position:"relative"}),y_(":enter",[f_({width:"100%",opacity:0})],{optional:!0}),y_(":leave",[f_({position:"absolute",width:"100%",opacity:1}),l_("0.15s",f_({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),y_(":enter",[f_({position:"absolute",width:"100%",opacity:0}),l_("0.15s",f_({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),c_("tagsOpenClose",[p_("open",f_({})),p_("closed",f_({width:"0px",height:"0px"})),m_("open <=> closed",[l_(".3s ease-in")])]),c_("switchAnimations",[m_("true => false",[y_(":enter, :leave",f_({})),h_([y_(":enter",[f_({transform:"translateX(-100%)"}),l_("1s ease-in-out",f_({transform:"translateX(0%)"}))],{optional:!0}),y_(":leave",[f_({transform:"translateX(0%)",position:"absolute"}),l_("1s ease-in-out",f_({transform:"translateX(100%)"}))],{optional:!0})])]),m_("false => true",[y_(":enter, :leave",f_({})),h_([y_(":enter",[f_({transform:"translateX(100%)"}),l_("1s ease-in-out",f_({transform:"translateX(0%)"}))],{optional:!0}),y_(":leave",[f_({transform:"translateX(0%)",position:"absolute"}),l_("1s ease-in-out",f_({transform:"translateX(-100%)"}))],{optional:!0})])])]),c_("slideInOutLeft",[m_(":enter",[f_({transform:"translateX(-100%)",position:"relative"}),l_("0.5s ease-in",f_({transform:"translateX(0%)"}))]),m_(":leave",[l_("0.5s ease-in",f_({transform:"translateX(-100%)"}))])]),c_("slideInOutRight",[m_(":enter",[f_({transform:"translateX(100%)",position:"fixed"}),l_("0.5s ease-in",f_({transform:"translateX(0%)"}))]),m_(":leave",[f_({transform:"translateX(-100%)",position:"relative"}),l_("0.5s ease-in",f_({transform:"translateX(100%)"}))])]);var ML,AL=((ML=function e(){_(this,e)}).\u0275fac=function(e){return new(e||ML)},ML.\u0275mod=ft({type:ML}),ML.\u0275inj=xe({imports:[[ld]]}),ML),kL=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e){var t="";return null!==e.titleBefore&&(t+=e.titleBefore+" "),null!==e.firstName&&(t+=e.firstName+" "),null!==e.middleName&&(t+=e.middleName+" "),null!==e.lastName&&(t+=e.lastName+" "),null!==e.titleAfter&&(t+=e.titleAfter+" "),t.endsWith(" ")&&(t=t.substring(0,t.length-1)),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=mt({name:"userFullName",type:e,pure:!0}),e}(),TL=function(){var e=function(){function e(t,n){_(this,e),this.translate=t,this.storage=n}return w(e,[{key:"transform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",n=this.storage.get("custom_labels");if(n)for(var i=Object.keys(n),r=0,o=i;r0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(t||this._minRows!==this._previousMinRows||i!==this._previousValue){var r=this._measureScrollHeight(),o=Math.max(r,this._cachedPlaceholderHeight||0);n.style.height="".concat(o,"px"),this._ngZone.runOutsideAngular(function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(function(){return e._scrollToCaretPosition(n)}):setTimeout(function(){return e._scrollToCaretPosition(n)})}),this._previousValue=i,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var t=e.selectionStart,n=e.selectionEnd,i=this._getDocument();this._destroyed.isStopped||i.activeElement!==e||e.setSelectionRange(t,n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(_y),Ja(dl),Ja(Ul,8))},e.\u0275dir=gt({type:e,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&cs("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),e}(),qL=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[by]]}),e}(),jL=new hi("MAT_INPUT_VALUE_ACCESSOR"),YL=["button","checkbox","file","hidden","image","radio","range","reset","submit"],WL=0,UL=Jw(function e(t,n,i,r){_(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),KL=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u,c,l,h){var d;_(this,n),(d=t.call(this,s,o,a,r))._elementRef=e,d._platform=i,d.ngControl=r,d._autofillMonitor=c,d._formField=h,d._uid="mat-input-"+WL++,d.focused=!1,d.stateChanges=new Y,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return My().has(e)});var f=d._elementRef.nativeElement,p=f.nodeName.toLowerCase();return d._inputValueAccessor=u||f,d._previousNativeValue=d.value,d.id=d.id,i.IOS&&l.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||0!==t.selectionStart||0!==t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===p,d._isTextarea="textarea"===p,d._isNativeSelect&&(d.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select"),d}return w(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=uy(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=uy(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&My().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=uy(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){YL.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var 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}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(UL);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(_y),Ja(xT,10),Ja(sS,8),Ja(_S,8),Ja(uM),Ja(jL,10),Ja(FL),Ja(dl),Ja(eT,8))},e.\u0275dir=gt({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&cs("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(Vs("disabled",t.disabled)("required",t.required),Ua("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),Es("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[cu([{provide:Yk,useExisting:e}]),Oa,Et]}),e}(),VL=((RL=function e(){_(this,e)}).\u0275fac=function(e){return new(e||RL)},RL.\u0275mod=ft({type:RL}),RL.\u0275inj=xe({providers:[uM],imports:[[qL,nT,Uw],qL,nT]}),RL);function XL(e,t){1&e&&ts(0,"mat-spinner",7)}function GL(e,t){1&e&&($a(0,"mat-error"),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function JL(e,t){1&e&&($a(0,"mat-error"),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function QL(e,t){if(1&e){var n=os();$a(0,"div",8),$a(1,"mat-form-field"),$a(2,"mat-label"),qs(3),_c(4,"translate"),es(),$a(5,"input",9,10),cs("ngModelChange",function(e){return Qt(n),ps().subject=e}),es(),Xa(7,GL,3,3,"mat-error",11),es(),$a(8,"mat-form-field"),$a(9,"mat-label"),qs(10),_c(11,"translate"),es(),$a(12,"textarea",12,13),cs("ngModelChange",function(e){return Qt(n),ps().message=e}),_c(14,"translate"),qs(15," "),es(),Xa(16,JL,3,3,"mat-error",11),es(),es()}if(2&e){var i=Ga(6),r=Ga(13),o=ps();yo(3),js(bc(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),yo(2),Qa("ngModel",o.subject),yo(2),Qa("ngIf",i.invalid),yo(3),js(bc(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),yo(2),ys("placeholder",bc(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),Qa("ngModel",o.message),yo(4),Qa("ngIf",r.invalid)}}var ZL=function(){var e=function(){function e(t,n,i,r,o,a){_(this,e),this.dialogRef=t,this.translate=n,this.notificator=i,this.rtMessages=r,this.data=o,this.storeService=a,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}return w(e,[{key:"ngOnInit",value:function(){this.data.error&&this.data.error.errorId&&(this.subject=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE")+this.parseMethod(this.data.error.call)+" ("+this.data.error.errorId+")")}},{key:"sendBugReport",value:function(){var e=this;this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(function(t){e.dialogRef.afterClosed().subscribe(function(){e.notificator.showSuccess(e.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+e.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),e.dialogRef.close()},function(){e.loading=!1,e.dialogRef.afterClosed().subscribe(function(){})})}},{key:"getFullEmailBody",value:function(){var e=this.storeService.get("config"),t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n")).concat(this.data.error.message+"\nPerun instance: "+e+"\nRequest:\n"+this.data.error.urlWithParams+"\n\n"),this.data.error.payload){var n=JSON.stringify(this.data.error.payload);n=n.replace(/"password":".+?"/,'"password":"####"'),t=t.concat("Payload:\n"+n+"\n\n")}return(t=t.concat("Sended from new Perun Gui, version: "+v(306).i8)).split("\n").join("\n ")}},{key:"parseMethod",value:function(e){return e?this.methodRegexp.exec(e)[1]:e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE),Ja(TE),Ja(mL),Ja(ip),Ja(BE),Ja(lL))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),es(),Xa(3,XL,1,0,"mat-spinner",1),Xa(4,QL,17,13,"div",2),$a(5,"div",3),$a(6,"div",4),$a(7,"button",5),cs("click",function(){return t.dialogRef.close()}),qs(8),_c(9,"translate"),es(),$a(10,"button",6),cs("click",function(){return t.sendBugReport()}),qs(11),_c(12,"translate"),es(),es(),es()),2&e&&(yo(1),js(bc(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),yo(2),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading),yo(4),Ys(" ",bc(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),yo(2),Qa("disabled",""===t.message||""===t.subject||t.loading),yo(1),Ys(" ",bc(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[UE,Xh,VE,HM,NL,KE,tT,Vk,KL,lT,wS,PT,lS,qk],pipes:[SE],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),e}(),$L=function(){var e=function(){function e(t,n,i){_(this,e),this.dialogRef=t,this.dialog=n,this.data=i}return w(e,[{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"onBugReportClick",value:function(){var e=this;this.dialogRef.afterClosed().subscribe(function(){var t=QE();t.width="550px",t.data={error:e.data.error},t.autoFocus=!1,e.dialog.open(ZL,t)}),this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE),Ja(YE),Ja(BE))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),es(),$a(2,"div",1),qs(3),es(),$a(4,"div",2),$a(5,"div",3),$a(6,"button",4),cs("click",function(){return t.onBugReportClick()}),qs(7),_c(8,"translate"),es(),$a(9,"button",5),cs("click",function(){return t.onCloseClick()}),qs(10),_c(11,"translate"),es(),es(),es()),2&e&&(yo(1),js(t.data.title),yo(2),Ys("\n",t.data.description,"\n"),yo(3),Qa("hidden","error"!==t.data.type),yo(1),Ys(" ",bc(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),yo(3),Ys(" ",bc(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[UE,KE,VE,HM],pipes:[SE],styles:[""]}),e}(),ez=[[["caption"]],[["colgroup"],["col"]]],tz=["caption","colgroup, col"];function nz(e){return function(e){d(n,e);var t=p(n);function n(){var e;_(this,n);for(var i=arguments.length,r=new Array(i),o=0;o4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6?arguments[6]:void 0;_(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(n,"-border-elem-top"),bottom:"".concat(n,"-border-elem-bottom"),left:"".concat(n,"-border-elem-left"),right:"".concat(n,"-border-elem-right")}}return w(e,[{key:"clearStickyPositioning",value:function(e,t){var n,i=this,r=[],o=a(e);try{for(o.s();!(n=o.n()).done;){var s=n.value;if(s.nodeType===s.ELEMENT_NODE){r.push(s);for(var u=0;u3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||n.some(function(e){return e}))){var o=e[0],s=o.children.length,u=this._getCellWidths(o,r),c=this._getStickyStartColumnPositions(u,t),l=this._getStickyEndColumnPositions(u,n),h=t.lastIndexOf(!0),d=n.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var r,o="rtl"===i.direction,f=o?"right":"left",p=o?"left":"right",g=a(e);try{for(g.s();!(r=g.n()).done;)for(var m=r.value,v=0;v1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=e.children,r=0;r0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}}]),e}(),Cz=new hi("CDK_SPL"),Ez=function(){var e=function e(t,n){_(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(Ja($u),Ja(mu))},e.\u0275dir=gt({type:e,selectors:[["","rowOutlet",""]]}),e}(),Lz=function(){var e=function e(t,n){_(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(Ja($u),Ja(mu))},e.\u0275dir=gt({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),zz=function(){var e=function e(t,n){_(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(Ja($u),Ja(mu))},e.\u0275dir=gt({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),Rz=function(){var e=function e(t,n){_(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(Ja($u),Ja(mu))},e.\u0275dir=gt({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),Oz=function(){var e=function(){function e(t,n,i,r,o,a,s,u,c,l,h){_(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=o,this._platform=s,this._viewRepeater=u,this._coalescedStyleScheduler=c,this._viewportRuler=l,this._stickyPositioningListener=h,this._onDestroy=new Y,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.viewChange=new dp({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return w(e,[{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=uy(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=uy(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler.change().pipe(cA(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var 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()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),MA(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,n,function(t,n,i){return e._getEmbeddedViewArgs(t.item,i)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(r(t),r(n),r(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var i=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),r=i.map(function(e){return e.sticky}),o=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,i=a(this._getCellTemplates(e));try{for(i.s();!(n=i.n()).done;){var r=n.value;wz.mostRecentCellOutlet&&wz.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t)}}catch(o){i.e(o)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t0&&void 0!==arguments[0]?arguments[0]:[];return _(this,i),(e=n.call(this))._renderData=new dp([]),e._filter=new dp(""),e._internalPageChanges=new Y,e._renderChangesSubscription=null,e.sortingDataAccessor=function(e,t){var n=e[t];if(ly(n)){var i=Number(n);return i<9007199254740991?i:n}return n},e.sortData=function(t,n){var i=n.active,r=n.direction;return i&&""!=r?t.sort(function(t,n){var o=e.sortingDataAccessor(t,i),a=e.sortingDataAccessor(n,i),s=typeof o,u=typeof a;s!==u&&("number"===s&&(o+=""),"number"===u&&(a+=""));var c=0;return null!=o&&null!=a?o>a?c=1:o0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,t._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var e;null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=null}}]),i}(function(){return function e(){_(this,e)}}()));function Jz(e,t){1&e&&ts(0,"mat-spinner",3)}function Qz(e,t){1&e&&ts(0,"th",15)}function Zz(e,t){if(1&e&&($a(0,"td",16),qs(1),es()),2&e){var n=t.$implicit;yo(1),Ys(" ",n.userExtSource.extSource.name," ")}}function $z(e,t){1&e&&ts(0,"tr",17)}function eR(e,t){1&e&&ts(0,"tr",18)}function tR(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"div",4),$a(2,"p"),qs(3),_c(4,"translate"),_c(5,"customTranslate"),es(),$a(6,"div",5),qs(7),_c(8,"translate"),_c(9,"customTranslate"),es(),$a(10,"table",6),ns(11,7),Xa(12,Qz,1,0,"th",8),Xa(13,Zz,2,1,"td",9),is(),Xa(14,$z,1,0,"tr",10),Xa(15,eR,1,0,"tr",11),es(),es(),$a(16,"div",12),$a(17,"button",13),cs("click",function(){return Qt(n),ps().onCancel()}),qs(18),_c(19,"translate"),_c(20,"customTranslate"),es(),$a(21,"button",14),cs("click",function(){return Qt(n),ps().onSubmit()}),qs(22),_c(23,"translate"),_c(24,"customTranslate"),es(),es(),es()}if(2&e){var i=ps();yo(3),Ys(" ",bc(4,7,bc(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),yo(4),Ys(" ",bc(8,11,bc(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),yo(3),Qa("dataSource",i.dataSource),yo(4),Qa("matHeaderRowDef",i.displayedColumns),yo(1),Qa("matRowDefColumns",i.displayedColumns),yo(3),Ys(" ",bc(19,15,bc(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),yo(4),Ys(" ",bc(23,19,bc(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}var nR,iR=function(){var e=function(){function e(t,n,i,r,o){var a=this;_(this,e),this.dialogRef=t,this.data=n,this.usersManagerService=i,this.translate=r,this.notificator=o,this.force=!1,this.displayedColumns=["name"],r.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(function(e){return a.successMessage=e})}return w(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new Gz(this.data.extSources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(function(){e.onSubmit()},function(){return e.loading=!1}):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE),Ja(BE),Ja(ap),Ja(TE),Ja(mL))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div"),Xa(5,Jz,1,0,"mat-spinner",1),Xa(6,tR,25,23,"div",2),es()),2&e&&(yo(1),js(bc(2,6,bc(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE"))),yo(3),Ls(t.theme),yo(1),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading))},directives:[UE,Xh,NL,KE,Bz,qz,Hz,Fz,Wz,Uz,VE,HM,jz,Yz,Kz,Vz],pipes:[SE,TL],styles:[""]}),e}(),rR=function(){function e(t,n){_(this,e),this._document=n;var i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}return w(e,[{key:"copy",value:function(){var e=this._textarea,t=!1;try{if(e){var n=this._document.activeElement;e.select(),e.setSelectionRange(0,e.value.length),t=this._document.execCommand("copy"),n&&n.focus()}}catch(Fj){}return t}},{key:"destroy",value:function(){var e=this._textarea;e&&(e.parentNode&&e.parentNode.removeChild(e),this._textarea=void 0)}}]),e}(),oR=function(){var e=function(){function e(t){_(this,e),this._document=t}return w(e,[{key:"copy",value:function(e){var t=this.beginCopy(e),n=t.copy();return t.destroy(),n}},{key:"beginCopy",value:function(e){return new rR(e,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(Ul))},token:e,providedIn:"root"}),e}(),aR=new hi("CDK_COPY_TO_CLIPBOARD_CONFIG"),sR=function(){var e=function(){function e(t,n,i){_(this,e),this._clipboard=t,this._ngZone=n,this.text="",this.attempts=1,this.copied=new Sc,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}return w(e,[{key:"copy",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(t>1){var n=t,i=this._clipboard.beginCopy(this.text);this._pending.add(i);var r=function t(){var r=i.copy();r||!--n||e._destroyed?(e._currentTimeout=null,e._pending.delete(i),i.destroy(),e.copied.emit(r)):e._currentTimeout=e._ngZone.runOutsideAngular(function(){return setTimeout(t,1)})};r()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(function(e){return e.destroy()}),this._pending.clear(),this._destroyed=!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(oR),Ja(dl),Ja(aR,8))},e.\u0275dir=gt({type:e,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&cs("click",function(){return t.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),e}(),uR=((nR=function e(){_(this,e)}).\u0275fac=function(e){return new(e||nR)},nR.\u0275mod=ft({type:nR}),nR.\u0275inj=xe({}),nR),cR=function(){var e=function(){function e(t,n){_(this,e),this.dialogRef=t,this.data=n}return w(e,[{key:"ngOnInit",value:function(){this.value=this.data.value,this.title=this.data.title}},{key:"onCancel",value:function(){this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE),Ja(BE))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),es(),$a(2,"div",1),$a(3,"textarea",2),qs(4),es(),es(),$a(5,"div",3),$a(6,"button",4),cs("click",function(){return t.onCancel()}),qs(7),_c(8,"translate"),es(),$a(9,"button",5),qs(10),_c(11,"translate"),es(),es()),2&e&&(yo(1),js(t.title),yo(3),js(t.value),yo(3),Ys(" ",bc(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),yo(2),Qa("cdkCopyToClipboard",t.value),yo(1),Ys(" ",bc(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[UE,KE,HL,KL,VE,HM,sR],pipes:[SE],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),e}(),lR=function(){var e=function(){function e(t,n){_(this,e),this.dialogRef=t,this.data=n,this.attributeValue=""}return w(e,[{key:"ngOnInit",value:function(){this.attributeValue=this.data.attribute.value[this.data.index]}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE),Ja(BE))},e.\u0275cmp=ct({type:e,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&&($a(0,"h5",0),qs(1),_c(2,"translate"),es(),$a(3,"div",1),$a(4,"mat-form-field"),$a(5,"textarea",2),cs("ngModelChange",function(e){return t.attributeValue=e}),es(),es(),es(),$a(6,"div",3),$a(7,"button",4),cs("click",function(){return t.cancel()}),qs(8),_c(9,"translate"),es(),$a(10,"button",5),cs("click",function(){return t.submit()}),qs(11),_c(12,"translate"),es(),es()),2&e&&(yo(1),js(bc(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE")),yo(4),Qa("ngModel",t.attributeValue),yo(3),Ys(" ",bc(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),yo(3),Ys(" ",bc(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[UE,KE,tT,HL,KL,lT,PT,lS,VE,HM],pipes:[SE],styles:[""]}),e}(),hR=function(){var e=function(){function e(t,n){_(this,e),this.dialogRef=t,this.data=n}return w(e,[{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE),Ja(BE))},e.\u0275cmp=ct({type:e,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&&($a(0,"h5",0),qs(1),_c(2,"translate"),es(),$a(3,"div",1),$a(4,"div"),qs(5),_c(6,"translate"),es(),$a(7,"div",2),qs(8),es(),es(),$a(9,"div",3),$a(10,"button",4),cs("click",function(){return t.cancel()}),qs(11),_c(12,"translate"),es(),$a(13,"button",5),cs("click",function(){return t.submit()}),qs(14),_c(15,"translate"),es(),es()),2&e&&(yo(1),js(bc(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE")),yo(4),Ys(" ",bc(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),yo(3),Ys(" ",t.data.name," "),yo(3),Ys(" ",bc(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),yo(3),Ys(" ",bc(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[UE,KE,VE,HM],pipes:[SE],styles:[""]}),e}();function dR(e,t){1&e&&($a(0,"mat-icon",2),qs(1," error "),es())}var fR=["*"],pR=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:fR,decls:3,vars:7,consts:[[1,"perun-alert","d-flex","align-items-center"],["class","perun-warn-alert-icon",4,"ngIf"],[1,"perun-warn-alert-icon"]],template:function(e,t){1&e&&(ms(),$a(0,"div",0),Xa(1,dR,2,0,"mat-icon",1),vs(2),es()),2&e&&(Es("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("info-alert","info"===t.alert_type),yo(1),Qa("ngIf","error"!==t.alert_type))},directives:[Xh,oE],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%], .perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-warn-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{color:#000;background-color:#fae2e2;border-left:4px solid;border-color:#d32f2f}"]}),e}();function gR(e,t){if(1&e&&($a(0,"app-alert",9),qs(1),es()),2&e){var n=ps();yo(1),js(n.pendingEmailsMessage)}}function mR(e,t){1&e&&($a(0,"mat-error"),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}var vR,yR=function(){var e=function(){function e(t,n,i,r,o,a){var s=this;_(this,e),this.dialogRef=t,this.data=n,this.translate=i,this.notificator=r,this.usersManagerService=o,this.authService=a,this.pendingMails=[],i.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(function(e){return s.successMessage=e}),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(function(e){return s.pendingEmailsMessageStart=e}),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(function(e){return s.pendingEmailsMessageEnd=e})}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.emailControl=new nS(null,[mT.required,mT.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(function(t){e.pendingMails=t.filter(function(e,t,n){return t===n.indexOf(e)});var n="";e.pendingMails.forEach(function(t){return n+="".concat(t===e.pendingMails[0]?"":", ").concat(t)}),console.log(n),e.pendingEmailsMessage=e.pendingEmailsMessageStart+n+e.pendingEmailsMessageEnd})}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var e=this,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(function(){e.notificator.showSuccess(e.successMessage),e.dialogRef.close()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE),Ja(BE),Ja(TE),Ja(mL),Ja(ap),Ja(hL))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div",1),Xa(5,gR,2,1,"app-alert",2),$a(6,"mat-form-field",3),$a(7,"label",3),ts(8,"input",4),_c(9,"translate"),_c(10,"customTranslate"),es(),Xa(11,mR,4,5,"mat-error",5),es(),es(),$a(12,"div",6),$a(13,"button",7),cs("click",function(){return t.onCancel()}),qs(14),_c(15,"translate"),_c(16,"customTranslate"),es(),$a(17,"button",8),cs("click",function(){return t.onSubmit()}),qs(18),_c(19,"translate"),_c(20,"customTranslate"),es(),es()),2&e&&(yo(1),js(bc(2,8,bc(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),yo(4),Qa("ngIf",t.pendingMails.length),yo(3),ys("placeholder",bc(9,12,bc(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),Qa("formControl",t.emailControl),yo(3),Qa("ngIf",t.emailControl.invalid),yo(3),Ys(" ",bc(15,16,bc(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),yo(3),Qa("disabled",!t.emailControl.valid),yo(1),Ys(" ",bc(19,20,bc(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[UE,KE,Xh,tT,KL,lT,wS,PT,vS,VE,HM,pR,qk],pipes:[SE,TL],styles:[""]}),e}(),_R=function(){var e=function(){function e(t,n){_(this,e),this.dialogRef=t,this.router=n}return w(e,[{key:"onClose",value:function(){this.router.navigate([]),this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE),Ja(Cv))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),es(),$a(3,"div",1),$a(4,"app-alert",2),qs(5),_c(6,"translate"),es(),es(),$a(7,"div",3),$a(8,"button",4),cs("click",function(){return t.onClose()}),qs(9),_c(10,"translate"),es(),es()),2&e&&(yo(1),js(bc(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE")),yo(4),js(bc(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),yo(4),Ys(" ",bc(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[UE,KE,pR,VE,HM],pipes:[SE],styles:[""]}),e}(),bR=["input"],wR=function(e){return{enterDuration:e}},MR=["*"],AR=new hi("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),kR=0,TR={provide:sT,useExisting:Te(function(){return LR}),multi:!0},SR=function e(t,n){_(this,e),this.source=t,this.value=n},CR=new hi("MatRadioGroup"),ER=function(){var e=function(){function e(t){_(this,e),this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+kR++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new Sc}return w(e,[{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=uy(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=uy(e),this._markRadiosForCheck()}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var e=this;this._radios&&this._radios.forEach(function(t){t.name=e.name,t._markForCheck()})}},{key:"_updateSelectedRadioFromValue",value:function(){var e=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(function(t){t.checked=e.value===t.value,t.checked&&(e._selected=t)}))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new SR(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(e){return e._markForCheck()})}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetector.markForCheck()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(ju))},e.\u0275dir=gt({type:e,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),e}(),LR=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return n}(ER);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275dir=gt({type:t,selectors:[["mat-radio-group"]],contentQueries:function(e,t,n){var i;(1&e&&Hc(n,OR,5),2&e)&&(Bc(i=qc())&&(t._radios=i))},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[cu([TR,{provide:CR,useExisting:t}]),Oa]}),t}(),zR=Xw(Gw(function e(t){_(this,e),this._elementRef=t})),RR=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u,c){var l;return _(this,n),(l=t.call(this,i))._changeDetector=r,l._focusMonitor=o,l._radioDispatcher=a,l._providerOverride=u,l._uniqueId="mat-radio-"+ ++kR,l.id=l._uniqueId,l.change=new Sc,l._checked=!1,l._value=null,l._removeUniqueSelectionListener=function(){},l.radioGroup=e,l._noopAnimations="NoopAnimations"===s,c&&(l.tabIndex=cy(c,0)),l._removeUniqueSelectionListener=a.listen(function(e,t){e!==l.id&&t===l.name&&(l.checked=!1)}),l}return w(n,[{key:"checked",get:function(){return this._checked},set:function(e){var t=uy(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())}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(e){this._labelPosition=e}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(e){this._setDisabled(uy(e))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(e){this._required=uy(e)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(e){this._color=e}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"focus",value:function(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){!t&&e.radioGroup&&e.radioGroup._touch()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new SR(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(e){e.stopPropagation()}},{key:"_onInputChange",value:function(e){e.stopPropagation();var t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}}]),n}(zR);return e.\u0275fac=function(t){return new(t||e)(Ja(ER),Ja(mu),Ja(ju),Ja(e_),Ja(TA),Ja(String),Ja(void 0),Ja(String))},e.\u0275dir=gt({type:e,viewQuery:function(e,t){var n;(1&e&&Fc(bR,5),2&e)&&(Bc(n=qc())&&(t._inputElement=n.first))},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[Oa]}),e}(),OR=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u,c){return _(this,n),t.call(this,e,i,r,o,a,s,u,c)}return n}(RR);return e.\u0275fac=function(t){return new(t||e)(Ja(CR,8),Ja(mu),Ja(ju),Ja(e_),Ja(TA),Ja(xw,8),Ja(AR,8),ci("tabindex"))},e.\u0275cmp=ct({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&cs("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(Ua("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Es("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:[Oa],ngContentSelectors:MR,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(ms(),$a(0,"label",0,1),$a(2,"span",2),ts(3,"span",3),ts(4,"span",4),$a(5,"input",5,6),cs("change",function(e){return t._onInputChange(e)})("click",function(e){return t._onInputClick(e)}),es(),$a(7,"span",7),ts(8,"span",8),es(),es(),$a(9,"span",9),$a(10,"span",10),qs(11,"\xa0"),es(),vs(12),es(),es()),2&e){var n=Ga(1);Ua("for",t.inputId),yo(5),Qa("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),Ua("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),yo(2),Qa("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",pc(18,wR,t._noopAnimations?0:150)),yo(2),Es("mat-radio-label-before","before"==t.labelPosition)}},directives:[_M],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-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;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),e}(),xR=((vR=function e(){_(this,e)}).\u0275fac=function(e){return new(e||vR)},vR.\u0275mod=ft({type:vR}),vR.\u0275inj=xe({imports:[[bM,Uw],Uw]}),vR);function DR(e,t){1&e&&ts(0,"mat-spinner",4)}function PR(e,t){1&e&&($a(0,"span",11),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),Ys(" ",bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function NR(e,t){1&e&&($a(0,"span",11),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),Ys(" ",bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function IR(e,t){if(1&e){var n=os();$a(0,"mat-radio-group",12),cs("ngModelChange",function(e){return Qt(n),ps(2).asyncValidation=e}),$a(1,"span",13),qs(2),_c(3,"translate"),es(),$a(4,"mat-radio-button",14),qs(5),_c(6,"translate"),es(),$a(7,"mat-radio-button",14),qs(8),_c(9,"translate"),es(),es()}2&e&&(Qa("ngModel",ps(2).asyncValidation),yo(2),Ys(" ",bc(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE"),": "),yo(2),Qa("value",!1),yo(1),Ys(" ",bc(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),yo(2),Qa("value",!0),yo(1),Ys(" ",bc(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," "))}function BR(e,t){1&e&&($a(0,"span",11),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),Ys(" ",bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function FR(e,t){1&e&&($a(0,"span",11),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),Ys(" ",bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function HR(e,t){if(1&e&&($a(0,"div",5),$a(1,"p",6),qs(2),$a(3,"span",7),qs(4),es(),qs(5),$a(6,"span",7),qs(7),es(),es(),$a(8,"p"),$a(9,"strong",8),qs(10),_c(11,"translate"),es(),qs(12),es(),$a(13,"p"),$a(14,"strong",8),qs(15),_c(16,"translate"),es(),qs(17),es(),Xa(18,PR,3,3,"span",9),Xa(19,NR,3,3,"span",9),Xa(20,IR,10,12,"mat-radio-group",10),Xa(21,BR,3,3,"span",9),Xa(22,FR,3,3,"span",9),es()),2&e){var n=ps();yo(2),Ys(" ",n.group.name," "),yo(2),Ys("#",n.group.id,""),yo(1),Ys(" - ",n.resource.name," "),yo(2),Ys("#",n.resource.id,""),yo(3),Ys("",bc(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT"),":"),yo(2),Ys(" ",n.status," "),yo(3),Ys("",bc(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW"),":"),yo(2),Ys(" ",n.getReversedStatus()," "),yo(1),Qa("ngIf","INACTIVE"===n.status),yo(1),Qa("ngIf","ACTIVE"===n.status),yo(1),Qa("ngIf","INACTIVE"===n.status),yo(1),Qa("ngIf","INACTIVE"===n.status&&!1===n.asyncValidation),yo(1),Qa("ngIf","INACTIVE"===n.status&&!0===n.asyncValidation)}}function qR(e,t){if(1&e){var n=os();$a(0,"div",15),$a(1,"button",16),cs("click",function(){return Qt(n),ps().onCancel()}),qs(2),_c(3,"translate"),es(),$a(4,"button",17),cs("click",function(){return Qt(n),ps().onSubmit()}),qs(5),_c(6,"translate"),es(),es()}if(2&e){var i=ps();yo(2),Ys(" ",bc(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),yo(2),Qa("disabled",i.loading),yo(1),Ys(" ",bc(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SUBMIT")," ")}}var jR=function(){var e=function(){function e(t,n,i,r){_(this,e),this.dialogRef=t,this.data=n,this.resourceService=i,this.groupService=r,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(function(t){e.resource=t,e.groupService.getGroupById(e.data.groupId).subscribe(function(t){e.group=t,e.loading=!1},function(){return e.loading=!1})},function(){return e.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(function(){e.dialogRef.close(!0),e.loading=!1},function(){return e.loading=!1}):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(function(){e.dialogRef.close(!0),e.loading=!1},function(){return e.loading=!1})}},{key:"getReversedStatus",value:function(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE),Ja(BE),Ja(op),Ja(tp))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(e,t){1&e&&($a(0,"div"),$a(1,"h1",0),qs(2),_c(3,"translate"),es(),Xa(4,DR,1,0,"mat-spinner",1),Xa(5,HR,23,17,"div",2),Xa(6,qR,7,7,"div",3),es()),2&e&&(Ls(t.theme),yo(2),js(bc(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")),yo(2),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading),yo(1),Qa("ngIf",!t.loading))},directives:[UE,Xh,NL,KE,LR,PT,lS,OR,VE,HM],pipes:[SE],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),e}();function YR(e,t){if(1&e&&($a(0,"div",5),$a(1,"mat-icon"),qs(2),es(),es()),2&e){var n=ps();yo(2),js(n.data.icon)}}function WR(e,t){if(1&e&&($a(0,"div",6),qs(1),es()),2&e){var n=ps();yo(1),Ys(" ",n.showTimestamp()," ")}}var UR=function(){var e=function(){function e(t,n){_(this,e),this.dialog=t,this.notificationStorageService=n,this.newNotification=!1,this.closeNotification=new Sc,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}return w(e,[{key:"doAction",value:function(){var e=this;if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{var t=QE();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open($L,t).afterClosed().subscribe(function(){e.closeSelf()})}}},{key:"closeSelf",value:function(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}},{key:"ngOnInit",value:function(){var e=this;!function(t,n){return i=this,o=regeneratorRuntime.mark(function n(){var i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,i=t,new Promise(function(e){return setTimeout(e,i)});case 2:e.alreadyClosed||e.waiting||e.closeSelf();case 3:case"end":return n.stop()}},n)}),new((r=void 0)||(r=Promise))(function(e,t){function n(e){try{s(o.next(e))}catch(n){t(n)}}function a(e){try{s(o.throw(e))}catch(n){t(n)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r(function(e){e(i)})).then(n,a)}s((o=o.apply(i,[])).next())});var i,r,o}(this.data.delay)}},{key:"showTimestamp",value:function(){var e=t(this.data.timeStamp.split(":"),2),n=e[0],i=e[1];return i.length<2?n+":0"+i:this.data.timeStamp}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(YE),Ja(yL))},e.\u0275cmp=ct({type:e,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&&($a(0,"div"),$a(1,"div",0),cs("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),Xa(2,YR,3,1,"div",1),$a(3,"div",2),qs(4),_c(5,"translate"),es(),Xa(6,WR,2,1,"div",3),$a(7,"div",4),cs("click",function(){return t.waiting=!0,t.doAction()}),qs(8),es(),es(),es()),2&e&&(Ks("notification ",t.inDialog?"":"mat-elevation-z7",""),Es("error","error"===t.data.type)("success","success"===t.data.type),yo(2),Qa("ngIf",null!==t.data.icon),yo(2),Ys(" ",bc(5,12,t.data.title)," "),yo(2),Qa("ngIf",t.inDialog),yo(1),Qa("hidden",t.alreadyPressed),yo(1),Ys(" ",t.data.actionText," "))},directives:[Xh,oE],pipes:[SE],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}"]}),e}();function KR(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"perun-web-apps-notification",2),cs("closeNotification",function(){var e=Qt(n).index;return ps().removeNotification(e)}),es(),es()}if(2&e){var i=t.$implicit;Qa("@flyInOut",void 0),yo(1),Qa("data",i)("newNotification",!0)}}var VR=function(e){return{top:e}},XR=function(){var e=function(){function e(t,n){var i=this;_(this,e),this.notificator=t,this.notificationStorageService=n,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(function(e){i.processNotification(e)}),this.getScreenSize()}return w(e,[{key:"getScreenSize",value:function(){this.mobileView=window.innerWidth<=this.minWidth}},{key:"processNotification",value:function(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}},{key:"getNotificatorTop",value:function(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}},{key:"removeNotification",value:function(e){this.notifications.splice(e,1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mL),Ja(yL))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&cs("resize",function(e){return t.getScreenSize(e)},!1,Er)},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&&($a(0,"div",0),Xa(1,KR,2,3,"div",1),es()),2&e&&(Qa("ngStyle",pc(2,VR,t.getNotificatorTop())),yo(1),Qa("ngForOf",t.notifications))},directives:[td,Kh,UR],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width:768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;bottom:0}}"],data:{animation:[wL]}}),e}(),GR=["*",[["mat-toolbar-row"]]],JR=["*","mat-toolbar-row"],QR=Vw(function e(t){_(this,e),this._elementRef=t}),ZR=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),$R=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r){var o;return _(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}return w(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(QR);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(_y),Ja(Ul))},e.\u0275cmp=ct({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;(1&e&&Hc(n,ZR,5),2&e)&&(Bc(i=qc())&&(t._toolbarRows=i))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&Es("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Oa],ngContentSelectors:JR,decls:2,vars:0,template:function(e,t){1&e&&(ms(GR),vs(0),vs(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),eO=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[Uw],Uw]}),e}(),tO={provide:Zc,useFactory:function(e,t){return function(){if(hd(t)){var n=Array.from(e.querySelectorAll("[class*=".concat(nO,"]"))),i=/\bflex-layout-.+?\b/g;n.forEach(function(e){e.classList.contains("".concat(nO,"ssr"))&&e.parentNode?e.parentNode.removeChild(e):e.className.replace(i,"")})}}},deps:[Ul,Qc],multi:!0},nO="flex-layout-",iO=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[tO]}),e}(),rO=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;_(this,e),this.matches=t,this.mediaQuery=n,this.mqAlias=i,this.suffix=r,this.priority=o,this.property=""}return w(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),oO=function(){var e=function(){function e(){_(this,e),this.stylesheet=new Map}return w(e,[{key:"addStyleToElement",value:function(e,t,n){var i=this.stylesheet.get(e);i?i.set(t,n):this.stylesheet.set(e,new Map([[t,n]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(e,t){var n=this.stylesheet.get(e),i="";if(n){var r=n.get(t);"number"!=typeof r&&"string"!=typeof r||(i=r+"")}return i}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({factory:function(){return new e},token:e,providedIn:"root"}),e}(),aO={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},sO=new hi("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return aO}}),uO=new hi("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),cO=new hi("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function lO(e,t){return e=e?e.clone():new rO,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}var hO=["row","column","row-reverse","column-reverse"];function dO(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var fO=function(){var e=function(){function e(t,n,i,r){_(this,e),this.elementRef=t,this.styleBuilder=n,this.styler=i,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Y,this.styleCache=new Map}return w(e,[{key:"parentElement",get:function(){return this.elementRef.nativeElement.parentElement}},{key:"nativeElement",get:function(){return this.elementRef.nativeElement}},{key:"activatedValue",get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}},{key:"ngOnChanges",value:function(e){var t=this;Object.keys(e).forEach(function(n){if(-1!==t.inputs.indexOf(n)){var i=n.split(".").slice(1).join(".");t.setValue(e[n].currentValue,i)}})}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}},{key:"addStyles",value:function(e,t){var n=this.styleBuilder,i=n.shouldCache,r=this.styleCache.get(e);r&&i||(r=n.buildStyles(e,t),i&&this.styleCache.set(e,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),n.sideEffect(e,r,t)}},{key:"clearStyles",value:function(){var e=this;Object.keys(this.mru).forEach(function(t){e.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var i=this.styler.getFlowDirection(e),r=t(i,2),o=r[0],a=r[1];if(!a&&n){var s=function(e){var n=function(e){var n=t((e=e?e.toLowerCase():"").split(" "),3),i=n[0],r=n[1],o=n[2];return hO.find(function(e){return e===i})||(i=hO[0]),"inline"===r&&(r="inline"!==o?o:"",o="inline"),[i,dO(r),!!o]}(e),i=t(n,3);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(i[0],i[1],i[2])}(o);this.styler.applyStyleToElements(s,[e])}return o.trim()}return"row"}},{key:"hasWrap",value:function(e){return this.styler.hasWrap(e)}},{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(n,e,t)}},{key:"setValue",value:function(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}},{key:"updateWithValue",value:function(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}]),e}();return e.\u0275fac=function(e){!function(){throw new Error("invalid")}()},e.\u0275dir=gt({type:e,features:[Et]}),e}(),pO=[{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}],gO="(orientation: portrait) and (max-width: 599.98px)",mO="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",vO="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",yO="(orientation: portrait) and (min-width: 840px)",_O="(orientation: landscape) and (min-width: 1280px)",bO={HANDSET:"".concat(gO,", (orientation: landscape) and (max-width: 959.98px)"),TABLET:"".concat(mO," , ").concat(vO),WEB:"".concat(yO,", ").concat(_O," "),HANDSET_PORTRAIT:"".concat(gO),TABLET_PORTRAIT:"".concat(mO," "),WEB_PORTRAIT:"".concat(yO),HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:"".concat(vO),WEB_LANDSCAPE:"".concat(_O)},wO=[{alias:"handset",priority:2e3,mediaQuery:bO.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:bO.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:bO.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:bO.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:bO.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:bO.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:bO.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:bO.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:bO.WEB_PORTRAIT,overlapping:!0}],MO=/(\.|-|_)/g;function AO(e){var t=e.length>0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}var kO=new hi("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=Li(cO),t=Li(sO),n=[].concat.apply([],(e||[]).map(function(e){return Array.isArray(e)?e:[e]}));return function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i={};return e.forEach(function(e){i[e.alias]=e}),n.forEach(function(e){i[e.alias]?function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]&&arguments[1];if(e&&e.length){var i=this._observable$.pipe(ef(function(t){return!n||e.indexOf(t.mediaQuery)>-1}));return le(new I(function(n){var i=t.registerQuery(e);if(i.length){var r=i.pop();i.forEach(function(e){n.next(e)}),t.source.next(r)}n.complete()}),i)}return this._observable$}},{key:"registerQuery",value:function(e){var t=this,n=Array.isArray(e)?e:[e],i=[];return function(e,t){var n=e.filter(function(e){return!LO[e]});if(n.length>0){var i=n.join(", ");try{var r=t.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(t.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ".concat(i," {.fx-query-test{ }}\n"))),t.head.appendChild(r),n.forEach(function(e){return LO[e]=r})}catch(o){console.error(o)}}}(n,this._document),n.forEach(function(e){var n=function(n){t._zone.run(function(){return t.source.next(new rO(n.matches,e))})},r=t.registry.get(e);r||((r=t.buildMQL(e)).addListener(n),t.pendingRemoveListenerFns.push(function(){return r.removeListener(n)}),t.registry.set(e,r)),r.matches&&i.push(new rO(!0,e))}),i}},{key:"ngOnDestroy",value:function(){for(var e;e=this.pendingRemoveListenerFns.pop();)e()}},{key:"buildMQL",value:function(e){return function(e,t){return t&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(e,hd(this._platformId))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(dl),Ei(Qc),Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(dl),Ei(Qc),Ei(Ul))},token:e,providedIn:"root"}),e}(),LO={},zO={alias:"print",mediaQuery:"print",priority:1e3},RO=function(){var e=function(){function e(t,n,i){_(this,e),this.breakpoints=t,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new OO,this.deactivations=[]}return w(e,[{key:"withPrintQuery",value:function(e){return[].concat(r(e),["print"])}},{key:"isPrintEvent",value:function(e){return e.mediaQuery.startsWith("print")}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var e=this;return this.printAlias.map(function(t){return e.breakpoints.findByAlias(t)}).filter(function(e){return null!==e})}},{key:"getEventBreakpoints",value:function(e){var t=e.mediaQuery,n=this.breakpoints.findByQuery(t);return(n?[].concat(r(this.printBreakPoints),[n]):this.printBreakPoints).sort(TO)}},{key:"updateEvent",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=t?t.mediaQuery:""),lO(e,t)}},{key:"registerBeforeAfterPrintHooks",value:function(e){var t=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){t.isPrinting||(t.isPrintingBeforeAfterEvent=!0,t.startPrinting(e,t.getEventBreakpoints(new rO(!0,"print"))),e.updateStyles())},i=function(){t.isPrintingBeforeAfterEvent=!1,t.isPrinting&&(t.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(i)}}},{key:"interceptEvents",value:function(e){var t=this;return this.registerBeforeAfterPrintHooks(e),function(n){t.isPrintEvent(n)?n.matches&&!t.isPrinting?(t.startPrinting(e,t.getEventBreakpoints(n)),e.updateStyles()):n.matches||!t.isPrinting||t.isPrintingBeforeAfterEvent||(t.stopPrinting(e),e.updateStyles()):t.collectActivations(n)}}},{key:"blockPropagation",value:function(){var e=this;return function(t){return!(e.isPrinting||e.isPrintEvent(t))}}},{key:"startPrinting",value:function(e,t){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}},{key:"stopPrinting",value:function(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var t=this.breakpoints.findByQuery(e.mediaQuery);t&&(this.deactivations.push(t),this.deactivations.sort(TO))}}},{key:"ngOnDestroy",value:function(){var e=this;this._document.defaultView&&(this.beforePrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("beforeprint",t)}),this.afterPrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("afterprint",t)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(CO),Ei(sO),Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(CO),Ei(sO),Ei(Ul))},token:e,providedIn:"root"}),e}(),OO=function(){function e(){_(this,e),this.printBreakpoints=[]}return w(e,[{key:"addPrintBreakpoints",value:function(e){var t=this;return e.push(zO),e.sort(TO),e.forEach(function(e){return t.addBreakpoint(e)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(e){e&&void 0===this.printBreakpoints.find(function(t){return t.mediaQuery===e.mediaQuery})&&(this.printBreakpoints=function(e){return!!e&&e.mediaQuery.startsWith("print")}(e)?[e].concat(r(this.printBreakpoints)):[].concat(r(this.printBreakpoints),[e]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}();function xO(e){for(var t in e){var n=e[t]||"";switch(t){case"display":e.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;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":e["-webkit-"+t]=n;break;case"flex-direction":n=n||"row",e["-webkit-flex-direction"]=n,e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(+n)?"0":n}}return e}var DO=function(){var e=function(){function e(t,n,i,r){_(this,e),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=r}return w(e,[{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i={};"string"==typeof t&&(i[t]=n,t=i),i=this.layoutConfig.disableVendorPrefixes?t:xO(t),this._applyMultiValueStyleToElement(i,e)}},{key:"applyStyleToElements",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.layoutConfig.disableVendorPrefixes?e:xO(e);n.forEach(function(e){t._applyMultiValueStyleToElement(i,e)})}},{key:"getFlowDirection",value:function(e){var t=this.lookupStyle(e,"flex-direction");return[t||"row",this.lookupInlineStyle(e,"flex-direction")||dd(this._platformId)&&this._serverModuleLoaded?t:""]}},{key:"hasWrap",value:function(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}},{key:"lookupAttributeValue",value:function(e,t){return e.getAttribute(t)||""}},{key:"lookupInlineStyle",value:function(e,t){return hd(this._platformId)?e.style.getPropertyValue(t):this._getServerStyle(e,t)}},{key:"lookupStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="";return e&&((i=this.lookupInlineStyle(e,t))||(hd(this._platformId)?n||(i=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(e,t)))),i?i.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(e,t){var n=this;Object.keys(e).sort().forEach(function(i){var r=e[i],o=Array.isArray(r)?r:[r];o.sort();var s,u=a(o);try{for(u.s();!(s=u.n()).done;){var c=s.value;c=c?c+"":"",hd(n._platformId)||!n._serverModuleLoaded?hd(n._platformId)?t.style.setProperty(i,c):n._setServerStyle(t,i,c):n._serverStylesheet.addStyleToElement(t,i,c)}}catch(l){u.e(l)}finally{u.f()}})}},{key:"_setServerStyle",value:function(e,t,n){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var i=this._readStyleAttribute(e);i[t]=n||"",this._writeStyleAttribute(e,i)}},{key:"_getServerStyle",value:function(e,t){return this._readStyleAttribute(e)[t]||""}},{key:"_readStyleAttribute",value:function(e){var t={},n=e.getAttribute("style");if(n)for(var i=n.split(/;+/g),r=0;r0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: ".concat(o));t[o.substr(0,a).trim()]=o.substr(a+1).trim()}}return t}},{key:"_writeStyleAttribute",value:function(e,t){var n="";for(var i in t)t[i]&&(n+=i+":"+t[i]+";");e.setAttribute("style",n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(oO),Ei(uO),Ei(Qc),Ei(sO))},e.\u0275prov=Oe({factory:function(){return new e(Ei(oO),Ei(uO),Ei(Qc),Ei(sO))},token:e,providedIn:"root"}),e}(),PO=function(){function e(){_(this,e),this.shouldCache=!0}return w(e,[{key:"sideEffect",value:function(e,t,n){}}]),e}(),NO=function(){var e=function(){function e(t,n,i){_(this,e),this.matchMedia=t,this.breakpoints=n,this.hook=i,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 Y,this.observeActivations()}return w(e,[{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}},{key:"onMediaChange",value:function(e){var t=this.findByQuery(e.mediaQuery);t&&((e=lO(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort(TO),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort(TO),this.updateStyles()))}},{key:"init",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];IO(this.updateMap,e,t,n),IO(this.clearMap,e,t,i),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,r)}},{key:"getValue",value:function(e,t,n){var i=this.elementMap.get(e);if(i){var r=void 0!==n?i.get(n):this.getActivatedValues(i,t);if(r)return r.get(t)}}},{key:"hasValue",value:function(e,t){var n=this.elementMap.get(e);if(n){var i=this.getActivatedValues(n,t);if(i)return void 0!==i.get(t)||!1}return!1}},{key:"setValue",value:function(e,t,n,i){var r=this.elementMap.get(e);if(r){var o=(r.get(i)||new Map).set(t,n);r.set(i,o),this.elementMap.set(e,r)}else r=(new Map).set(i,(new Map).set(t,n)),this.elementMap.set(e,r);var a=this.getValue(e,t);void 0!==a&&this.updateElement(e,t,a)}},{key:"trackValue",value:function(e,t){return this.subject.asObservable().pipe(ef(function(n){return n.element===e&&n.key===t}))}},{key:"updateStyles",value:function(){var e=this;this.elementMap.forEach(function(t,n){var i=new Set(e.elementKeyMap.get(n)),r=e.getActivatedValues(t);r&&r.forEach(function(t,r){e.updateElement(n,r,t),i.delete(r)}),i.forEach(function(i){if(r=e.getActivatedValues(t,i)){var o=r.get(i);e.updateElement(n,i,o)}else e.clearElement(n,i)})})}},{key:"clearElement",value:function(e,t){var n=this.clearMap.get(e);if(n){var i=n.get(t);i&&(i(),this.subject.next({element:e,key:t,value:""}))}}},{key:"updateElement",value:function(e,t,n){var i=this.updateMap.get(e);if(i){var r=i.get(t);r&&(r(n),this.subject.next({element:e,key:t,value:n}))}}},{key:"releaseElement",value:function(e){var t=this.watcherMap.get(e);t&&(t.forEach(function(e){return e.unsubscribe()}),this.watcherMap.delete(e));var n=this.elementMap.get(e);n&&(n.forEach(function(e,t){return n.delete(t)}),this.elementMap.delete(e))}},{key:"triggerUpdate",value:function(e,t){var n=this,i=this.elementMap.get(e);if(i){var r=this.getActivatedValues(i,t);r&&(t?this.updateElement(e,t,r.get(t)):r.forEach(function(t,i){return n.updateElement(e,i,t)}))}}},{key:"buildElementKeyMap",value:function(e,t){var n=this.elementKeyMap.get(e);n||(n=new Set,this.elementKeyMap.set(e,n)),n.add(t)}},{key:"watchExtraTriggers",value:function(e,t,n){var i=this;if(n&&n.length){var o=this.watcherMap.get(e);if(o||(o=new Map,this.watcherMap.set(e,o)),!o.get(t)){var a=le.apply(void 0,r(n)).subscribe(function(){var n=i.getValue(e,t);i.updateElement(e,t,n)});o.set(t,a)}}}},{key:"findByQuery",value:function(e){return this.breakpoints.findByQuery(e)}},{key:"getActivatedValues",value:function(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];_(this,e),this.key=t,this.value=n,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=this.value.replace(/;/,"")};function FO(e){var t=typeof e;return"object"===t?e.constructor===Array?"array":e.constructor===Set?"set":"object":t}function HO(e){var t,r=e.split(":"),a=i(t=r)||o(t)||s(t)||n(),u=a[0],c=a.slice(1);return new BO(u,c.join(":"))}function qO(e,t){return t.key&&(e[t.key]=t.value),e}var jO=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u,c,l){var h;_(this,n),(h=t.call(this,e,null,i,r)).sanitizer=o,h.ngStyleInstance=u,h.DIRECTIVE_KEY="ngStyle",h.ngStyleInstance||(h.ngStyleInstance=new td(e,a,s)),h.init();var d=h.nativeElement.getAttribute("style")||"";return h.fallbackStyles=h.buildStyleMap(d),h.isServer=c&&dd(l),h}return w(n,[{key:"updateWithValue",value:function(e){var t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),t),this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}},{key:"clearStyles",value:function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}},{key:"buildStyleMap",value:function(e){var t,n,i,r=this,o=function(e){return r.sanitizer.sanitize(vr.STYLE,e)||""};if(e)switch(FO(e)){case"string":return UO(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";";return String(e).trim().split(t).map(function(e){return e.trim()}).filter(function(e){return""!==e})}(e),o);case"array":return UO(e,o);case"set":default:return n=o,i=[],"set"===FO(t=e)?t.forEach(function(e){return i.push(e)}):Object.keys(t).forEach(function(e){i.push("".concat(e,":").concat(t[e]))}),function(e,t){return e.map(HO).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(qO,{})}(i,n)}return{}}},{key:"ngDoCheck",value:function(){this.ngStyleInstance.ngDoCheck()}}]),n}(fO);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(DO),Ja(NO),Ja(Wd),Ja(Iu),Ja(_u),Ja(td,10),Ja(uO),Ja(Qc))},e.\u0275dir=gt({type:e,features:[Oa]}),e}(),YO=["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"],WO=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments)).inputs=YO,e}return n}(jO);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275dir=gt({type:t,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:[Oa]}),t}();function UO(e,t){return e.map(HO).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(qO,{})}var KO=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[iO]]}),e}(),VO=function(e){return{color:e}};function XO(e,t){if(1&e&&($a(0,"button",8),_c(1,"translate"),$a(2,"mat-icon",4),qs(3," apps "),es(),es()),2&e){var n=ps();Qa("matMenuTriggerFor",Ga(2))("matTooltip",bc(1,3,"NAV.OTHER_APPLICATIONS")),yo(2),Qa("ngStyle",pc(5,VO,n.iconColor))}}function GO(e,t){if(1&e){var n=os();$a(0,"button",2),cs("click",function(){return Qt(n),ps().onLogOut()}),qs(1),_c(2,"translate"),es()}2&e&&(yo(1),js(bc(2,1,"NAV.LOGOUT")))}var JO=function(){var e=function(){function e(t,n,i,r){_(this,e),this.authService=t,this.authzResolverService=n,this.notificator=i,this.translateService=r}return w(e,[{key:"redirectToUrl",value:function(){window.open(this.url,"_blank")}},{key:"onLogOut",value:function(){this.authService.logout()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(hL),Ja(ep),Ja(mL),Ja(TE))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(e,t){if(1&e&&(Xa(0,XO,4,7,"button",0),$a(1,"mat-menu",null,1),$a(3,"button",2),cs("click",function(){return t.redirectToUrl()}),$a(4,"span"),qs(5),es(),es(),es(),$a(6,"button",3),$a(7,"mat-icon",4),qs(8," person "),es(),$a(9,"span",5),qs(10),es(),es(),$a(11,"mat-menu",null,6),Xa(13,GO,3,3,"button",7),es()),2&e){var n=Ga(12);Qa("ngIf",t.url),yo(5),js(t.label),yo(1),Qa("matMenuTriggerFor",n),yo(1),Qa("ngStyle",pc(11,VO,t.iconColor)),yo(2),Qa("ngStyle",pc(13,VO,t.textColor)),yo(1),Us(" ",t.user.titleBefore," ",t.user.firstName," ",t.user.middleName," ",t.user.lastName," ",t.user.titleAfter," "),yo(3),Qa("ngIf",t.logoutEnabled)}},directives:[Xh,BC,DC,HM,jC,oE,td,aC],pipes:[SE],styles:["@media (max-width:991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),e}(),QO=function(e){return{color:e}};function ZO(e,t){if(1&e){var n=os();$a(0,"button",5),cs("click",function(){return Qt(n),ps().onToggleSidenav()}),$a(1,"mat-icon"),qs(2,"menu"),es(),es()}if(2&e){var i=ps();Qa("ngStyle",pc(1,QO,i.iconColor))}}var $O=function(e){return{background:e}},ex=function(){return[]},tx=function(){return["/"]},nx=function(){var e=function(){function e(t,n,i,r,o,a){var s=this;_(this,e),this.storeService=t,this.sanitizer=n,this.translate=i,this.utilsService=r,this.authzResolverService=o,this.authService=a,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.sidenavToggle=new Sc,this.hideToggle=!1,this.disableLogo=!1,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.activeLink=!1,this.onToggleSidenav=function(){s.sidenavToggle.emit()}}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.translate.onLangChange.subscribe(function(t){e.label=e.storeService.get("header_label_".concat(t.lang)),e.adminLabel=e.storeService.get("admin_gui_label_".concat(t.lang))}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.isLinkToGuiActive()}},{key:"isLinkToGuiActive",value:function(){var e=this;for(var t in this.linkRoles=this.storeService.get("link_to_admin_gui_by_roles"),this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(t)&&(this.activeLink=!0);this.activeLink&&this.utilsService.getAppsConfig().subscribe(function(t){e.adminGuiUrl=t.brands[0].newApps.admin?t.brands[0].newApps.admin:null})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(lL),Ja(Wd),Ja(TE),Ja(sp),Ja(ep),Ja(hL))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-header"]],inputs:{hideToggle:"hideToggle",disableLogo:"disableLogo"},outputs:{sidenavToggle:"sidenavToggle"},decls:6,vars:18,consts:[[1,"sticky-top","header-container",3,"ngStyle"],["mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"ml-3",3,"innerHTML","routerLink"],[1,"ml-3","mt-auto","mb-auto","hide-label",3,"ngStyle"],["id","nav-menu-user-info",1,"justify-content-end",3,"url","label","user","logoutEnabled","iconColor","textColor"],["mat-icon-button","",3,"ngStyle","click"]],template:function(e,t){1&e&&($a(0,"mat-toolbar",0),Xa(1,ZO,3,3,"button",1),ts(2,"a",2),$a(3,"p",3),qs(4),es(),ts(5,"perun-web-apps-header-menu",4),es()),2&e&&(Qa("ngStyle",pc(12,$O,t.bgColor)),yo(1),Qa("ngIf",!t.hideToggle),yo(1),Qa("innerHTML",t.logo,yr)("routerLink",t.disableLogo?fc(14,ex):fc(15,tx)),yo(1),Qa("ngStyle",pc(16,QO,t.textColor)),yo(1),js(t.label),yo(1),Qa("url",t.adminGuiUrl)("label",t.adminLabel)("user",t.principal.user)("logoutEnabled",t.logoutEnabled)("iconColor",t.iconColor)("textColor",t.textColor))},directives:[$R,td,WO,Xh,Lv,JO,HM,oE],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}}"]}),e}();function ix(e){return function(t){return t.lift(new rx(e))}}var rx=function(){function e(t){_(this,e),this.value=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new ox(e,this.value))}}]),e}(),ox=function(e){d(n,e);var t=p(n);function n(e,i){var r;return _(this,n),(r=t.call(this,e)).value=i,r}return w(n,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),n}(O),ax=["*"];function sx(e,t){if(1&e){var n=os();$a(0,"div",2),cs("click",function(){return Qt(n),ps()._onBackdropClicked()}),es()}2&e&&Es("mat-drawer-shown",ps()._isShowingBackdrop())}function ux(e,t){1&e&&($a(0,"mat-drawer-content"),vs(1,2),es())}var cx=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],lx=["mat-drawer","mat-drawer-content","*"];function hx(e,t){if(1&e){var n=os();$a(0,"div",2),cs("click",function(){return Qt(n),ps()._onBackdropClicked()}),es()}2&e&&Es("mat-drawer-shown",ps()._isShowingBackdrop())}function dx(e,t){1&e&&($a(0,"mat-sidenav-content",3),vs(1,2),es())}var fx=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],px=["mat-sidenav","mat-sidenav-content","*"],gx=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",mx={transformDrawer:c_("transform",[p_("open, open-instant",f_({transform:"none",visibility:"visible"})),p_("void",f_({"box-shadow":"none",visibility:"hidden"})),m_("void => open-instant",l_("0ms")),m_("void <=> open, open-instant => void",l_("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},vx=new hi("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),yx=new hi("MAT_DRAWER_CONTAINER"),_x=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a){var s;return _(this,n),(s=t.call(this,r,o,a))._changeDetectorRef=e,s._container=i,s}return w(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._container._contentMarginChanges.subscribe(function(){e._changeDetectorRef.markForCheck()})}}]),n}(EA);return e.\u0275fac=function(t){return new(t||e)(Ja(ju),Ja(Te(function(){return wx})),Ja(mu),Ja(CA),Ja(dl))},e.\u0275cmp=ct({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&Cs("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[Oa],ngContentSelectors:ax,decls:1,vars:0,template:function(e,t){1&e&&(ms(),vs(0))},encapsulation:2,changeDetection:0}),e}(),bx=function(){var e=function(){function e(t,n,i,r,o,a,s){var u=this;_(this,e),this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=r,this._ngZone=o,this._doc=a,this._container=s,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Y,this._animationEnd=new Y,this._animationState="void",this.openedChange=new Sc(!0),this._openedStream=this.openedChange.pipe(ef(function(e){return e}),ee(function(){})),this.openedStart=this._animationStarted.pipe(ef(function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")}),ix(void 0)),this._closedStream=this.openedChange.pipe(ef(function(e){return!e}),ee(function(){})),this.closedStart=this._animationStarted.pipe(ef(function(e){return e.fromState!==e.toState&&"void"===e.toState}),ix(void 0)),this._destroyed=new Y,this.onPositionChanged=new Sc,this._modeChanged=new Y,this.openedChange.subscribe(function(e){e?(u._doc&&(u._elementFocusedBeforeDrawerWasOpened=u._doc.activeElement),u._takeFocus()):u._isFocusWithinDrawer()&&u._restoreFocus()}),this._ngZone.runOutsideAngular(function(){jM(u._elementRef.nativeElement,"keydown").pipe(ef(function(e){return 27===e.keyCode&&!u.disableClose&&!Zv(e)}),cA(u._destroyed)).subscribe(function(e){return u._ngZone.run(function(){u.close(),e.stopPropagation(),e.preventDefault()})})}),this._animationEnd.pipe(tA(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){var t=e.fromState,n=e.toState;(0===n.indexOf("open")&&"void"===t||"void"===n&&0===t.indexOf("open"))&&u.openedChange.emit(u._opened)})}return w(e,[{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=uy(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"!==this.mode:e},set:function(e){this._autoFocus=uy(e)}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle(uy(e))}},{key:"_takeFocus",value:function(){var e=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(function(t){t||"function"!=typeof e._elementRef.nativeElement.focus||e._elementRef.nativeElement.focus()})}},{key:"_restoreFocus",value:function(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}},{key:"_isFocusWithinDrawer",value:function(){var e,t=null===(e=this._doc)||void 0===e?void 0:e.activeElement;return!!t&&this._elementRef.nativeElement.contains(t)}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0)}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,t=arguments.length>1?arguments[1]:void 0;return this._setOpen(e,!e&&this._isFocusWithinDrawer(),t)}},{key:"_setOpen",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"program";return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",t&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(function(e){n.openedChange.pipe(Sp(1)).subscribe(function(t){return e(t?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(e){this._animationStarted.next(e)}},{key:"_animationDoneListener",value:function(e){this._animationEnd.next(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(Ky),Ja(e_),Ja(_y),Ja(dl),Ja(Ul,8),Ja(yx,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&ls("@transform.start",function(e){return t._animationStartListener(e)})("@transform.done",function(e){return t._animationDoneListener(e)}),2&e&&(Ua("align",null),Xs("@transform",t._animationState),Es("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:ax,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(ms(),$a(0,"div",0),vs(1),es())},directives:[EA],encapsulation:2,data:{animation:[mx.transformDrawer]},changeDetection:0}),e}(),wx=function(){var e=function(){function e(t,n,i,r,o){var a=this,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0;_(this,e),this._dir=t,this._element=n,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=u,this._drawers=new Ec,this.backdropClick=new Sc,this._destroyed=new Y,this._doCheckSubject=new Y,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Y,t&&t.change.pipe(cA(this._destroyed)).subscribe(function(){a._validateDrawers(),a.updateContentMargins()}),o.change().pipe(cA(this._destroyed)).subscribe(function(){return a.updateContentMargins()}),this._autosize=s}return w(e,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=uy(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:uy(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe(Lp(this._allDrawers),cA(this._destroyed)).subscribe(function(t){e._drawers.reset(t.filter(function(t){return!t._container||t._container===e})),e._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Lp(null)).subscribe(function(){e._validateDrawers(),e._drawers.forEach(function(t){e._watchDrawerToggle(t),e._watchDrawerPosition(t),e._watchDrawerMode(t)}),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._doCheckSubject.pipe(iy(10),cA(e._destroyed)).subscribe(function(){return e.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(e){return e.open()})}},{key:"close",value:function(){this._drawers.forEach(function(e){return e.close()})}},{key:"updateContentMargins",value:function(){var e=this,t=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){var i=this._left._getWidth();t+=i,n-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._getWidth();else if("push"==this._right.mode){var r=this._right._getWidth();n+=r,t-=r}n=n||null,(t=t||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:t,right:n},this._ngZone.run(function(){return e._contentMarginChanges.next(e._contentMargins)}))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return e._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(e){var t=this;e._animationStarted.pipe(ef(function(e){return e.fromState!==e.toState}),cA(this._drawers.changes)).subscribe(function(e){"open-instant"!==e.toState&&"NoopAnimations"!==t._animationMode&&t._element.nativeElement.classList.add("mat-drawer-transition"),t.updateContentMargins(),t._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(cA(this._drawers.changes)).subscribe(function(){return t._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var t=this;e&&e.onPositionChanged.pipe(cA(this._drawers.changes)).subscribe(function(){t._ngZone.onMicrotaskEmpty.pipe(Sp(1)).subscribe(function(){t._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var t=this;e&&e._modeChanged.pipe(cA(le(this._drawers.changes,this._destroyed))).subscribe(function(){t.updateContentMargins(),t._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(e){var t=this._element.nativeElement.classList,n="mat-drawer-container-has-open";e?t.add(n):t.remove(n)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach(function(t){"end"==t.position?e._end=t:e._start=t}),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)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var e=this;[this._start,this._end].filter(function(t){return t&&!t.disableClose&&e._canHaveBackdrop(t)}).forEach(function(e){return e._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(o_,8),Ja(mu),Ja(dl),Ja(ju),Ja(LA),Ja(vx),Ja(xw,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,n){var i;(1&e&&(Hc(n,_x,5),Hc(n,bx,5)),2&e)&&(Bc(i=qc())&&(t._content=i.first),Bc(i=qc())&&(t._allDrawers=i))},viewQuery:function(e,t){var n;(1&e&&Fc(_x,5),2&e)&&(Bc(n=qc())&&(t._userContent=n.first))},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&Es("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[cu([{provide:yx,useExisting:e}])],ngContentSelectors:lx,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&&(ms(cx),Xa(0,sx,1,2,"div",0),vs(1),vs(2,1),Xa(3,ux,2,0,"mat-drawer-content",1)),2&e&&(Qa("ngIf",t.hasBackdrop),yo(3),Qa("ngIf",!t._content))},directives:[Xh,_x],styles:[gx],encapsulation:2,changeDetection:0}),e}(),Mx=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a){return _(this,n),t.call(this,e,i,r,o,a)}return n}(_x);return e.\u0275fac=function(t){return new(t||e)(Ja(ju),Ja(Te(function(){return kx})),Ja(mu),Ja(CA),Ja(dl))},e.\u0275cmp=ct({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&Cs("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[Oa],ngContentSelectors:ax,decls:1,vars:0,template:function(e,t){1&e&&(ms(),vs(0))},encapsulation:2,changeDetection:0}),e}(),Ax=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return w(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(e){this._fixedInViewport=uy(e)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(e){this._fixedTopGap=cy(e)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(e){this._fixedBottomGap=cy(e)}}]),n}(bx);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275cmp=ct({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(Ua("align",null),Cs("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),Es("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:[Oa],ngContentSelectors:ax,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(ms(),$a(0,"div",0),vs(1),es())},directives:[EA],encapsulation:2,data:{animation:[mx.transformDrawer]},changeDetection:0}),t}(),kx=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return n}(wx);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275cmp=ct({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,n){var i;(1&e&&(Hc(n,Mx,5),Hc(n,Ax,5)),2&e)&&(Bc(i=qc())&&(t._content=i.first),Bc(i=qc())&&(t._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&Es("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[cu([{provide:yx,useExisting:t}]),Oa],ngContentSelectors:px,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(e,t){1&e&&(ms(fx),Xa(0,hx,1,2,"div",0),vs(1),vs(2,1),Xa(3,dx,2,0,"mat-sidenav-content",1)),2&e&&(Qa("ngIf",t.hasBackdrop),yo(3),Qa("ngIf",!t._content))},directives:[Xh,Mx,EA],styles:[gx],encapsulation:2,changeDetection:0}),t}(),Tx=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[ld,Uw,by,zA],zA,Uw]}),e}(),Sx=function(){var e=function(){function e(t){_(this,e),this.store=t}return w(e,[{key:"getSideMenuItems",value:function(){var e=this,t=this.store.get("displayed_tabs"),n=[];return t.forEach(function(e){switch(e){case"profile":n.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":n.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":n.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":n.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":n.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":n.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"settings":n.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.get("external_services").forEach(function(t){var i={icon:"insert_link",link:t.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};e.store.get("supportedLanguages").forEach(function(e){var n;i["label_".concat(e)]=null!==(n=t["label_".concat(e)])&&void 0!==n?n:t.label_en}),n.push(i)}),n}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(lL))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Cx=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[Uw],Uw]}),e}(),Ex=["*"],Lx='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n',zx=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Rx=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Ox=Kw(Xw(function e(){_(this,e)})),xx=Xw(function e(){_(this,e)}),Dx=new hi("MatList"),Px=new hi("MatNavList"),Nx=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._stateChanges=new Y,e}return w(n,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(Ox);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275cmp=ct({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[cu([{provide:Px,useExisting:t}]),Oa,Et],ngContentSelectors:Ex,decls:1,vars:0,template:function(e,t){1&e&&(ms(),vs(0))},styles:[Lx],encapsulation:2,changeDetection:0}),t}(),Ix=function(){var e=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this))._elementRef=e,i._stateChanges=new Y,"action-list"===i._getListType()&&e.nativeElement.classList.add("mat-action-list"),i}return w(n,[{key:"_getListType",value:function(){var e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(Ox);return e.\u0275fac=function(t){return new(t||e)(Ja(mu))},e.\u0275cmp=ct({type:e,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[cu([{provide:Dx,useExisting:e}]),Oa,Et],ngContentSelectors:Ex,decls:1,vars:0,template:function(e,t){1&e&&(ms(),vs(0))},styles:[Lx],encapsulation:2,changeDetection:0}),e}(),Bx=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),e}(),Fx=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),e}(),Hx=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;_(this,n),(a=t.call(this))._element=e,a._isInteractiveList=!1,a._destroyed=new Y,a._disabled=!1,a._isInteractiveList=!!(r||o&&"action-list"===o._getListType()),a._list=r||o;var s=a._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),a._list&&a._list._stateChanges.pipe(cA(a._destroyed)).subscribe(function(){i.markForCheck()}),a}return w(n,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(e){this._disabled=uy(e)}},{key:"ngAfterContentInit",value:function(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";e.changes.pipe(Lp(e)).subscribe(function(e){var i=e.length;lM(t,"".concat(n,"-2-line"),!1),lM(t,"".concat(n,"-3-line"),!1),lM(t,"".concat(n,"-multi-line"),!1),2===i||3===i?lM(t,"".concat(n,"-").concat(i,"-line"),!0):i>3&&lM(t,"".concat(n,"-multi-line"),!0)})}(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}]),n}(xx);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(ju),Ja(Px,8),Ja(Dx,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,n){var i;(1&e&&(Hc(n,Bx,5),Hc(n,Fx,5),Hc(n,cM,5)),2&e)&&(Bc(i=qc())&&(t._avatar=i.first),Bc(i=qc())&&(t._icon=i.first),Bc(i=qc())&&(t._lines=i))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&Es("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[Oa],ngContentSelectors:Rx,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&&(ms(zx),$a(0,"div",0),ts(1,"div",1),vs(2),$a(3,"div",2),vs(4,1),es(),vs(5,2),es()),2&e&&(yo(1),Qa("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[_M],encapsulation:2,changeDetection:0}),e}(),qx=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[hM,bM,Uw,MM,ld],hM,Uw,MM,Cx]}),e}(),jx=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e,t,n){return e["".concat(n,"_").concat(t)]}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=mt({name:"localisedText",type:e,pure:!0}),e}(),Yx=function(e){return{color:e}};function Wx(e,t){if(1&e){var n=os();$a(0,"mat-list-item",2),cs("click",function(){var e=Qt(n).$implicit,t=ps();return e.external?t.goToURL(e.link):t.shouldHideMenu()}),$a(1,"mat-icon",3),qs(2),es(),$a(3,"span",4),qs(4),_c(5,"localisedText"),_c(6,"translate"),_c(7,"customTranslate"),es(),es()}if(2&e){var i=t.$implicit,r=ps();Es("activated",r.isActive(i.activatedRegex)),ys("routerLink",i.external?null:i.link),Qa("ngStyle",pc(16,Yx,r.textColor)),yo(1),Qa("ngStyle",pc(18,Yx,r.iconColor)),yo(1),js(i.icon),yo(2),js(i.external?Mc(5,7,i,r.lang,"label"):bc(6,11,wc(7,13,i.label,r.lang)))}}var Ux=function(){var e=function(){function e(t,n,i,r){var o=this;_(this,e),this.sideMenuItemService=t,this.storeService=n,this.router=i,this.translateService=r,this.items=[],this.lang="en",this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.iconColor=this.storeService.get("theme","sidemenu_item_icon_color"),this.currentUrl=i.url,i.events.subscribe(function(e){e instanceof ng&&(o.currentUrl=e.url)})}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.translateService.onLangChange.subscribe(function(t){var n=t.lang;e.lang=n});var t=this.storeService.get("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(function(e){return t.includes(e.tabName)})}},{key:"isActive",value:function(e){return new RegExp(e).test(this.currentUrl)}},{key:"shouldHideMenu",value:function(){"over"===this.sideNav.mode&&this.sideNav.close()}},{key:"goToURL",value:function(e){window.open(e,"_blank")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(Sx),Ja(lL),Ja(Cv),Ja(TE))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["disableRipple","","class","side-menu-item-height",3,"activated","ngStyle","routerLink","click",4,"ngFor","ngForOf"],["disableRipple","",1,"side-menu-item-height",3,"ngStyle","routerLink","click"],[3,"ngStyle"],[1,"nav-caption","ml-3"]],template:function(e,t){1&e&&($a(0,"mat-nav-list",0),Xa(1,Wx,8,20,"mat-list-item",1),es()),2&e&&(yo(1),Qa("ngForOf",t.items))},directives:[Nx,Kh,Hx,td,WO,Ev,oE],pipes:[jx,SE,TL],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}"]}),e}();function Kx(e,t){if(1&e&&($a(0,"span",1),$a(1,"a",2),qs(2),es(),es()),2&e){var n=t.$implicit;yo(1),Qa("routerLink",n.routerLink),yo(1),js(n.label)}}var Vx=function(){var e=function(){function e(t,n,i){_(this,e),this.router=t,this.activatedRoute=n,this.translate=i,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.router.events.pipe(ef(function(e){return e instanceof ng})).subscribe(function(){e.menuItems=[],e.createBreadcrumbs(e.activatedRoute.root)})}},{key:"createBreadcrumbs",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.children;0!==r.length&&r.forEach(function(t){var r=t.snapshot.url.map(function(e){return e.path}).join("/");""!==r&&(i+="/".concat(r));var o=n.translate.instant(t.snapshot.data[e.ROUTE_DATA_BREADCRUMB]);return!o||n.menuItems[n.menuItems.length-1]&&o===n.menuItems[n.menuItems.length-1].label||n.menuItems.push({label:o,routerLink:i}),n.createBreadcrumbs(t,i)})}}]),e}();return e.ROUTE_DATA_BREADCRUMB="breadcrumb",e.\u0275fac=function(t){return new(t||e)(Ja(Cv),Ja(am),Ja(TE))},e.\u0275cmp=ct({type:e,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&&Xa(0,Kx,3,2,"span",0),2&e&&Qa("ngForOf",t.menuItems)},directives:[Kh,Lv],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}']}),e}();function Xx(e,t){1&e&&($a(0,"mat-error"),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}var Gx=function(){var e=function(){function e(t,n,i,r,o){_(this,e),this.dialogRef=t,this.translate=n,this.notificator=i,this.rtMessages=r,this.storeService=o,this.message="",this.subject="",this.instanceName=""}return w(e,[{key:"ngOnInit",value:function(){this.instanceName=this.storeService.get("config")}},{key:"sendBugReport",value:function(){var e=this;this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(function(t){e.dialogRef.afterClosed().subscribe(function(){return e.notificator.showSuccess(e.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)}),e.dialogRef.close()})}},{key:"getFullEmailBody",value:function(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+v(306).i8}},{key:"close",value:function(){this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE),Ja(TE),Ja(mL),Ja(ip),Ja(lL))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),es(),$a(3,"div",1),$a(4,"mat-form-field"),$a(5,"mat-label"),qs(6),_c(7,"translate"),es(),$a(8,"input",2,3),cs("ngModelChange",function(e){return t.subject=e}),es(),Xa(10,Xx,3,3,"mat-error",4),es(),$a(11,"mat-form-field"),$a(12,"mat-label"),qs(13),_c(14,"translate"),es(),$a(15,"textarea",5),cs("ngModelChange",function(e){return t.message=e}),_c(16,"translate"),qs(17," "),es(),$a(18,"mat-hint"),qs(19),_c(20,"translate"),es(),es(),es(),$a(21,"div",6),$a(22,"div",7),$a(23,"button",8),cs("click",function(){return t.close()}),qs(24),_c(25,"translate"),es(),$a(26,"button",9),cs("click",function(){return t.sendBugReport()}),qs(27),_c(28,"translate"),es(),es(),es()),2&e){var n=Ga(9);yo(1),js(bc(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),yo(5),js(bc(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),yo(2),Qa("ngModel",t.subject),yo(2),Qa("ngIf",n.invalid),yo(3),js(bc(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),yo(2),ys("placeholder",bc(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),Qa("ngModel",t.message),yo(4),js(bc(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),yo(5),Ys(" ",bc(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),yo(2),Qa("disabled",n.invalid),yo(1),Ys(" ",bc(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[UE,KE,tT,Vk,KL,lT,wS,PT,lS,Xh,Kk,VE,HM,qk],pipes:[SE],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),e}(),Jx=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e,t){return e["link_"+t]||e.link_en}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=mt({name:"localisedLink",type:e,pure:!0}),e}(),Qx=function(e){return{color:e}};function Zx(e,t){if(1&e&&($a(0,"i",16),qs(1),es()),2&e){var n=ps().$implicit,i=ps(3);Qa("ngStyle",pc(2,Qx,i.linksTextColor)),yo(1),Ys(" ",n.icon," ")}}function $x(e,t){if(1&e){var n=os();$a(0,"span",17),cs("click",function(){Qt(n);var e=ps().$implicit;return ps(3).openDialog(e.dialog)}),qs(1),_c(2,"localisedText"),es()}if(2&e){var i=ps().$implicit,r=ps(3);Qa("ngStyle",pc(6,Qx,r.linksTextColor)),yo(1),Ys("",Mc(2,2,i,r.language,"label")," ")}}function eD(e,t){if(1&e&&($a(0,"a",18),_c(1,"localisedLink"),qs(2),_c(3,"localisedText"),es()),2&e){var n=ps().$implicit,i=ps(3);Qa("href",wc(1,3,n,i.language),_r)("ngStyle",pc(10,Qx,i.linksTextColor)),yo(2),js(Mc(3,6,n,i.language,"label"))}}function tD(e,t){if(1&e&&($a(0,"span",19),qs(1),_c(2,"localisedText"),es()),2&e){var n=ps().$implicit,i=ps(3);Qa("ngStyle",pc(6,Qx,i.linksTextColor)),yo(1),js(Mc(2,2,n,i.language,"label"))}}function nD(e,t){if(1&e&&($a(0,"div",11),Xa(1,Zx,2,4,"i",12),Xa(2,$x,3,8,"span",13),Xa(3,eD,4,12,"a",14),_c(4,"localisedLink"),Xa(5,tD,3,8,"span",15),_c(6,"localisedLink"),es()),2&e){var n=t.$implicit,i=ps(3);yo(1),Qa("ngIf",n.icon),yo(1),Qa("ngIf",n.dialog),yo(1),Qa("ngIf",wc(4,4,n,i.language)&&!n.dialog),yo(2),Qa("ngIf",!wc(6,7,n,i.language)&&!n.dialog)}}function iD(e,t){if(1&e&&($a(0,"div"),Xa(1,nD,7,10,"div",10),es()),2&e){var n=ps().$implicit;yo(1),Qa("ngForOf",n.elements)}}function rD(e,t){if(1&e&&($a(0,"div",7),$a(1,"h6",8),qs(2),_c(3,"localisedText"),es(),Xa(4,iD,2,1,"div",9),es()),2&e){var n=t.$implicit,i=ps();yo(1),Qa("ngStyle",pc(7,Qx,i.headersTextColor)),yo(1),Ys(" ",Mc(3,3,n,i.language,"title")," "),yo(2),Qa("ngIf",n.elements)}}function oD(e,t){if(1&e&&($a(0,"span"),$a(1,"a",6),qs(2),es(),es()),2&e){var n=t.$implicit,i=t.index,r=ps();yo(1),Qa("href",n.url,_r)("ngStyle",pc(3,Qx,r.copyrightTextColor)),yo(1),js(i?", "+n.name:n.name)}}var aD=function(e){return{background:e}},sD=function(){var e=function(){function e(t,n,i){_(this,e),this.storeService=t,this.translateService=n,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),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.footerHeight=new Sc}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.translateService.onLangChange.subscribe(function(t){e.language=t.lang}),this.version=v(306).i8,this.items=this.storeService.get("footer","columns"),this.copyrightItems=this.storeService.get("footer","copyright_items"),this.getHeight()}},{key:"openDialog",value:function(e){var t=QE();switch(e){case"reportIssue":t.width="550px",this.dialog.open(Gx,t)}}},{key:"getHeight",value:function(){var e,t=1,n=a(this.items);try{for(n.s();!(e=n.n()).done;){var i=e.value;t=tthis.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}},{key:"removeValue",value:function(e){this.keys.splice(e,1),this.values.splice(e,1)}},{key:"updateAttribute",value:function(){for(var e={},t=0;tt.defaultItemsShown),yo(1),Qa("ngIf",!t.readonly))},directives:[hS,NT,sS,Kh,aC,Xh,tT,KL,lT,wS,PT,lS,HM,oE],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),e}(),RD=["input"],OD=function(e){return{enterDuration:e}},xD=["*"],DD=new hi("mat-checkbox-default-options",{providedIn:"root",factory:PD});function PD(){return{color:"accent",clickAction:"check-indeterminate"}}var ND=0,ID={color:"accent",clickAction:"check-indeterminate"},BD={provide:sT,useExisting:Te(function(){return qD}),multi:!0},FD=function e(){_(this,e)},HD=Gw(Vw(Xw(Kw(function e(t){_(this,e),this._elementRef=t})))),qD=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u){var c;return _(this,n),(c=t.call(this,e))._changeDetectorRef=i,c._focusMonitor=r,c._ngZone=o,c._animationMode=s,c._options=u,c.ariaLabel="",c.ariaLabelledby=null,c._uniqueId="mat-checkbox-"+ ++ND,c.id=c._uniqueId,c.labelPosition="after",c.name=null,c.change=new Sc,c.indeterminateChange=new Sc,c._onTouched=function(){},c._currentAnimationClass="",c._currentCheckState=0,c._controlValueAccessorChangeFn=function(){},c._checked=!1,c._disabled=!1,c._indeterminate=!1,c._options=c._options||ID,c.color=c.defaultColor=c._options.color||ID.color,c.tabIndex=parseInt(a)||0,c}return w(n,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=uy(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){t||Promise.resolve().then(function(){e._onTouched(),e._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=uy(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=uy(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){n.classList.remove(i)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var e=new FD;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t,n=this,i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(function(){n._indeterminate=!1,n.indeterminateChange.emit(n._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}]),n}(HD);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(ju),Ja(e_),Ja(dl),ci("tabindex"),Ja(xw,8),Ja(DD,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;(1&e&&(Fc(RD,5),Fc(_M,5)),2&e)&&(Bc(n=qc())&&(t._inputElement=n.first),Bc(n=qc())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(Vs("id",t.id),Ua("tabindex",null),Es("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[cu([BD]),Oa],ngContentSelectors:xD,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",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&&(ms(),$a(0,"label",0,1),$a(2,"span",2),$a(3,"input",3,4),cs("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),es(),$a(5,"span",5),ts(6,"span",6),es(),ts(7,"span",7),$a(8,"span",8),Tn(),$a(9,"svg",9),ts(10,"path",10),es(),Sn(),ts(11,"span",11),es(),es(),$a(12,"span",12,13),cs("cdkObserveContent",function(){return t._onLabelTextChange()}),$a(14,"span",14),qs(15,"\xa0"),es(),vs(16),es(),es()),2&e){var n=Ga(1),i=Ga(13);Ua("for",t.inputId),yo(2),Es("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),yo(1),Qa("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),Ua("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),yo(2),Qa("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",pc(19,OD,"NoopAnimations"===t._animationMode?0:150))}},directives:[_M,zy],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),e}(),jD=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({}),e}(),YD=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[bM,Uw,Ry,jD],Uw,jD]}),e}();function WD(e,t){if(1&e){var n=os();$a(0,"mat-checkbox",2),cs("change",function(){return Qt(n),ps()._sendEventToParent()})("ngModelChange",function(e){return Qt(n),ps().attribute.value=e}),es()}2&e&&Qa("ngModel",ps().attribute.value)}function UD(e,t){if(1&e&&($a(0,"mat-label"),qs(1),es()),2&e){var n=ps();yo(1),js(n.attribute.value)}}var KD=function(){var e=function(){function e(){_(this,e),this.readonly=!1,this.sendEventToParent=new Sc}return w(e,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=ZE(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,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&&($a(0,"div"),Xa(1,WD,1,1,"mat-checkbox",0),Xa(2,UD,2,1,"mat-label",1),es()),2&e&&(yo(1),Qa("ngIf",!t.readonly),yo(1),Qa("ngIf",t.readonly))},directives:[Xh,qD,PT,lS,Vk],styles:[""]}),e}();function VD(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function XD(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function GD(e,t){var n=t?"":"none";XD(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function JD(e,t){var n=e.style;n.position=t?"":"fixed",n.top=n.opacity=t?"":"0",n.left=t?"":"-999em"}function QD(e,t){return t?e+" "+t:e}function ZD(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function $D(e,t){return e.getPropertyValue(t).split(",").map(function(e){return e.trim()})}function eP(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function tP(e,t,n){var i=e.top,r=e.bottom,o=e.left,a=e.right;return n>=i&&n<=r&&t>=o&&t<=a}function nP(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function iP(e,t,n,i){var r=e.top,o=e.right,a=e.bottom,s=e.left,u=e.width*t,c=e.height*t;return i>r-c&&is-u&&n=s._config.dragStartThreshold){var r=Date.now()>=s._dragStartTime+s._getDragStartDelay(e),o=s._dropContainer;if(!r)return void s._endDragSequence(e);o&&(o.isDragging()||o.isReceiving())||(e.preventDefault(),s._hasStartedDragging=!0,s._ngZone.run(function(){return s._startDragSequence(e)}))}},this._pointerUp=function(e){s._endDragSequence(e)},this.withRootElement(t).withParent(n.parentDragRef||null),this._parentPositions=new rP(i,o),a.registerDragItem(this)}return w(e,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=uy(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(function(e){return GD(e,t)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){var t=this;this._handles=e.map(function(e){return fy(e)}),this._handles.forEach(function(e){return GD(e,t.disabled)}),this._toggleNativeDragInteractions();var n=new Set;return this._disabledHandles.forEach(function(e){t._handles.indexOf(e)>-1&&n.add(e)}),this._disabledHandles=n,this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=this,n=fy(e);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){n.addEventListener("mousedown",t._pointerDown,hP),n.addEventListener("touchstart",t._pointerDown,lP)}),this._initialTransform=void 0,this._rootElement=n),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?fy(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return t._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(e){return this._parentDragRef=e,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&gP(this._rootElement),gP(this._anchor),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}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),GD(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),GD(e,this.disabled))}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"withPreviewContainer",value:function(e){return this._previewContainer=e,this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&gP(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&gP(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)});else{this._passiveTransform.x=this._activeTransform.x;var n=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){t.ended.next({source:t,distance:t._getDragDistance(n),dropPoint:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(e){mP(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t=this._dropContainer;if(t){var n=this._rootElement,i=n.parentNode,r=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();i.insertBefore(o,n),this._initialTransform=n.style.transform||"",this._preview=this._createPreviewElement(),JD(n,!1),this._document.body.appendChild(i.replaceChild(r,n)),this._getPreviewInsertionPoint(i,a).appendChild(this._preview),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,t){var n=this;this._parentDragRef&&t.stopPropagation();var i=this.isDragging(),r=mP(t),o=!r&&0!==t.button,a=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(i||o||s)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor||"",a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(function(e){n._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=eP(this._boundaryElement));var u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;JD(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var n=t._dropContainer,i=n.getItemIndex(t),r=t._getPointerPositionOnPage(e),o=t._getDragDistance(r),a=n._isOverContainer(r.x,r.y);t.ended.next({source:t,distance:o,dropPoint:r}),t.dropped.next({item:t,currentIndex:i,previousIndex:t._initialIndex,container:n,previousContainer:t._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r}),n.drop(t,i,t._initialIndex,t._initialContainer,a,o,r),t._dropContainer=t._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,t){var n=this,i=e.x,r=e.y,o=t.x,a=t.y,s=this._initialContainer._getSiblingContainerFromPosition(this,i,r);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,r)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(function(){n.exited.next({item:n,container:n._dropContainer}),n._dropContainer.exit(n),n._dropContainer=s,n._dropContainer.enter(n,i,r,s===n._initialContainer&&s.sortingDisabled?n._initialIndex:void 0),n.entered.next({item:n,container:s,currentIndex:s.getItemIndex(n)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(o,a),this._dropContainer._sortItem(this,i,r,this._pointerDirectionDelta),this._applyPreviewTransform(i-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,n=this.previewClass,i=t?t.template:null;if(i&&t){var r=t.matchSize?this._rootElement.getBoundingClientRect():null,o=t.viewContainer.createEmbeddedView(i,t.context);o.detectChanges(),e=vP(o,this._document),this._previewRef=o,t.matchSize?yP(e,r):e.style.transform=fP(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;yP(e=oP(a),a.getBoundingClientRect()),this._initialTransform&&(e.style.transform=this._initialTransform)}return XD(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"".concat(this._config.zIndex||1e3)}),GD(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach(function(t){return e.classList.add(t)}):e.classList.add(n)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);var n=function(e){var t=getComputedStyle(e),n=$D(t,"transition-property"),i=n.find(function(e){return"transform"===e||"all"===e});if(!i)return 0;var r=n.indexOf(i),o=$D(t,"transition-duration"),a=$D(t,"transition-delay");return ZD(o[r])+ZD(a[r])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(t){var i=function n(i){(!i||i.target===e._preview&&"transform"===i.propertyName)&&(e._preview.removeEventListener("transitionend",n),t(),clearTimeout(r))},r=setTimeout(i,1.5*n);e._preview.addEventListener("transitionend",i)})})}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,n=t?t.template:null;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),e=vP(this._placeholderRef,this._document)):e=oP(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,r=i?i.getBoundingClientRect():n,o=mP(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:r.left-n.left+(o.pageX-r.left-a.left),y:r.top-n.top+(o.pageY-r.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=this._getViewportScrollPosition(),n=mP(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,r=n.pageY-t.top;if(this._ownerSVGElement){var o=this._ownerSVGElement.getScreenCTM();if(o){var a=this._ownerSVGElement.createSVGPoint();return a.x=i,a.y=r,a.matrixTransform(o.inverse())}}return{x:i,y:r}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._dropContainer?this._dropContainer.lockAxis:null,n=this.constrainPosition?this.constrainPosition(e,this):e,i=n.x,r=n.y;if("x"===this.lockAxis||"x"===t?r=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(i=this._pickupPositionOnPage.x),this._boundaryRect){var o=this._pickupPositionInElement,a=o.x,s=o.y,u=this._boundaryRect,c=this._previewRect,l=u.top+s,h=u.bottom-(c.height-s);i=pP(i,u.left+a,u.right-(c.width-a)),r=pP(r,l,h)}return{x:i,y:r}}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,n=e.y,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-r.x),a=Math.abs(n-r.y);return o>this._config.pointerDirectionChangeThreshold&&(i.x=t>r.x?1:-1,r.x=t),a>this._config.pointerDirectionChangeThreshold&&(i.y=n>r.y?1:-1,r.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,GD(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,hP),e.removeEventListener("touchstart",this._pointerDown,lP)}},{key:"_applyRootElementTransform",value:function(e,t){var n=fP(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=QD(n,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(e,t){var n,i=(null===(n=this._previewTemplate)||void 0===n?void 0:n.template)?void 0:this._initialTransform,r=fP(e,t);this._preview.style.transform=QD(r,i)}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,n=e.y;if(!(0===t&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===r.width&&0===r.height)){var o=i.left-r.left,a=r.right-i.right,s=i.top-r.top,u=r.bottom-i.bottom;i.width>r.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,i.height>r.height?(s>0&&(n+=s),u>0&&(n-=u)):n=0,t===this._passiveTransform.x&&n===this._passiveTransform.y||this.setFreeDragPosition({y:n,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:mP(e)?t.touch:t?t.mouse:0}},{key:"_updateOnScroll",value:function(e){var t=this._parentPositions.handleScroll(e);if(t){var n=e.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&nP(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Sy(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(e,t){var n=this._previewContainer||"global";if("parent"===n)return e;if("global"===n){var i=this._document;return t||i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement||i.body}return fy(n)}}]),e}();function fP(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function pP(e,t,n){return Math.max(t,Math.min(n,e))}function gP(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function mP(e){return"t"===e.type[0]}function vP(e,t){var n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];var i=t.createElement("div");return n.forEach(function(e){return i.appendChild(e)}),i}function yP(e,t){e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px"),e.style.transform=fP(t.left,t.top)}function _P(e,t,n){var i=bP(t,e.length-1),r=bP(n,e.length-1);if(i!==r){for(var o=e[i],a=r0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ny;return(!aA(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=ny),new I(function(n){return n.add(t.schedule(VD,e,{subscriber:n,counter:0,period:e})),n})}(0,UM).pipe(cA(a._stopScrollTimers)).subscribe(function(){var e=a._scrollNode,t=a.autoScrollStep;1===a._verticalScrollDirection?AP(e,-t):2===a._verticalScrollDirection&&AP(e,t),1===a._horizontalScrollDirection?kP(e,-t):2===a._horizontalScrollDirection&&kP(e,t)})},this.element=fy(t),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new rP(i,o)}return w(e,[{key:"dispose",value:function(){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)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(e,t,n,i){var r;this._draggingStarted(),null==i?-1===(r=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(r=this._getItemIndexFromPointerPosition(e,t,n)):r=i;var o=this._activeDraggables,a=o.indexOf(e),s=e.getPlaceholderElement(),u=o[r];if(u===e&&(u=o[r+1]),a>-1&&o.splice(a,1),u&&!this._dragDropRegistry.isDragging(u)){var c=u.getRootElement();c.parentElement.insertBefore(s,c),o.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){var l=o[0].getRootElement();l.parentNode.insertBefore(s,l),o.unshift(e)}else fy(this.element).appendChild(s),o.push(e);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,n,i,r,o,a){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:r,distance:o,dropPoint:a})}},{key:"withItems",value:function(e){var t=this,n=this._draggables;return this._draggables=e,e.forEach(function(e){return e._withDropContainer(t)}),this.isDragging()&&(n.filter(function(e){return e.isDragging()}).every(function(t){return-1===e.indexOf(t)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=fy(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(r(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?MP("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(t){return t.drag===e}):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,n,i){if(!this.sortingDisabled&&this._clientRect&&iP(this._clientRect,.05,t,n)){var r=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,n,i);if(!(-1===o&&r.length>0)){var a="horizontal"===this._orientation,s=MP(r,function(t){return t.drag===e}),u=r[o],c=u.clientRect,l=s>o?1:-1,h=this._getItemOffsetPx(r[s].clientRect,c,l),d=this._getSiblingOffsetPx(s,r,l),f=r.slice();_P(r,s,o),this.sorted.next({previousIndex:s,currentIndex:o,container:this,item:e}),r.forEach(function(t,n){if(f[n]!==t){var i=t.drag===e,r=i?h:d,o=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=r,a?(o.style.transform=QD("translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),t.initialTransform),nP(t.clientRect,0,r)):(o.style.transform=QD("translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),t.initialTransform),nP(t.clientRect,r,0))}}),this._previousSwap.overlaps=tP(c,t,n),this._previousSwap.drag=u.drag,this._previousSwap.delta=a?i.x:i.y}}}},{key:"_startScrollingIfNecessary",value:function(e,n){var i=this;if(!this.autoScrollDisabled){var r,o=0,a=0;if(this._parentPositions.positions.forEach(function(s,u){var c;u!==i._document&&s.clientRect&&!r&&iP(s.clientRect,.05,e,n)&&(c=t(function(e,t,n,i){var r=TP(t,i),o=SP(t,n),a=0,s=0;if(r){var u=e.scrollTop;1===r?u>0&&(a=1):e.scrollHeight-u>e.clientHeight&&(a=2)}if(o){var c=e.scrollLeft;1===o?c>0&&(s=1):e.scrollWidth-c>e.clientWidth&&(s=2)}return[a,s]}(u,s.clientRect,e,n),2),o=c[0],a=c[1],(o||a)&&(r=u))}),!o&&!a){var s=this._viewportRuler.getViewportSize(),u=s.width,c=s.height,l={width:u,height:c,top:0,right:u,bottom:c,left:0};o=TP(l,n),a=SP(l,e),r=window}!r||o===this._verticalScrollDirection&&a===this._horizontalScrollDirection&&r===this._scrollNode||(this._verticalScrollDirection=o,this._horizontalScrollDirection=a,this._scrollNode=r,(o||a)&&r?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=fy(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=fy(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(e){var t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:eP(t)}}).sort(function(t,n){return e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top})}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=fy(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(t){var n,i=t.getRootElement();if(i){var r=null===(n=e._itemPositions.find(function(e){return e.drag===t}))||void 0===n?void 0:n.initialTransform;i.style.transform=r||""}}),this._siblings.forEach(function(t){return t._stopReceiving(e)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=t[e].clientRect,o=t[e+-1*n],a=r[i?"width":"height"]*n;if(o){var s=i?"left":"top",u=i?"right":"bottom";-1===n?a-=o.clientRect[s]-r[u]:a+=r[s]-o.clientRect[u]}return a}},{key:"_getItemOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=i?t.left-e.left:t.top-e.top;return-1===n&&(r+=i?t.width-e.width:t.height-e.height),r}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){var r=n[n.length-1].clientRect;return i?e>=r.right:t>=r.bottom}var o=n[0].clientRect;return i?e<=o.left:t<=o.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,n,i){var r=this,o="horizontal"===this._orientation,a=MP(this._itemPositions,function(a,s,u){var c=a.drag,l=a.clientRect;if(c===e)return u.length<2;if(i){var h=o?i.x:i.y;if(c===r._previousSwap.drag&&r._previousSwap.overlaps&&h===r._previousSwap.delta)return!1}return o?t>=Math.floor(l.left)&&t=Math.floor(l.top)&&n-1})&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(function(t){if(e.isDragging()){var n=e._parentPositions.handleScroll(t);n&&(e._itemPositions.forEach(function(e){nP(e.clientRect,n.top,n.left)}),e._itemPositions.forEach(function(t){var n=t.drag;e._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()}))}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=Sy(fy(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,t=this._activeDraggables.filter(function(e){return e.isDragging()});this._siblings.forEach(function(n){return n._startReceiving(e,t)})}}]),e}();function MP(e,t){for(var n=0;n=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}function SP(e,t){var n=e.left,i=e.right,r=.05*e.width;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}var CP=Ay({passive:!1,capture:!0}),EP=function(){var e=function(){function e(t,n){var i=this;_(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(e){return e.isDragging()},this.pointerMove=new Y,this.pointerUp=new Y,this.scroll=new Y,this._preventDefaultWhileDragging=function(e){i._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=function(e){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&e.preventDefault(),i.pointerMove.next(e))},this._document=n}return w(e,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){t._document.addEventListener("touchmove",t._persistentTouchmoveListener,CP)})}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,CP)}},{key:"startDragging",value:function(e,t){var n=this;if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){var i=t.type.startsWith("touch");this._globalListeners.set(i?"touchend":"mouseup",{handler:function(e){return n.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return n.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:CP}),i||this._globalListeners.set("mousemove",{handler:function(e){return n.pointerMove.next(e)},options:CP}),this._ngZone.runOutsideAngular(function(){n._globalListeners.forEach(function(e,t){n._document.addEventListener(t,e.handler,e.options)})})}}},{key:"stopDragging",value:function(e){var t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(e){return this._activeDragInstances.indexOf(e)>-1}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach(function(t){return e.removeDragItem(t)}),this._dropInstances.forEach(function(t){return e.removeDropContainer(t)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach(function(t,n){e._document.removeEventListener(n,t.handler,t.options)}),this._globalListeners.clear()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(dl),Ei(Ul))},e.\u0275prov=Oe({factory:function(){return new e(Ei(dl),Ei(Ul))},token:e,providedIn:"root"}),e}(),LP={dragStartThreshold:5,pointerDirectionChangeThreshold:5},zP=function(){var e=function(){function e(t,n,i,r){_(this,e),this._document=t,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=r}return w(e,[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:LP;return new dP(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new wP(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(Ul),Ei(dl),Ei(LA),Ei(EP))},e.\u0275prov=Oe({factory:function(){return new e(Ei(Ul),Ei(dl),Ei(LA),Ei(EP))},token:e,providedIn:"root"}),e}(),RP=new hi("CDK_DRAG_PARENT"),OP=new hi("CdkDropListGroup"),xP=new hi("CDK_DRAG_CONFIG"),DP=0,PP=new hi("CdkDropList"),NP=function(){var e=function(){function e(t,n,i,r,o,a,s){var u=this;_(this,e),this.element=t,this._changeDetectorRef=i,this._scrollDispatcher=r,this._dir=o,this._group=a,this._destroyed=new Y,this.connectedTo=[],this.id="cdk-drop-list-"+DP++,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new Sc,this.entered=new Sc,this.exited=new Sc,this.sorted=new Sc,this._unsortedItems=new Set,this._dropListRef=n.createDropList(t),this._dropListRef.data=this,s&&this._assignDefaults(s),this._dropListRef.enterPredicate=function(e,t){return u.enterPredicate(e.data,t.data)},this._dropListRef.sortPredicate=function(e,t,n){return u.sortPredicate(e,t.data,n.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),e._dropLists.push(this),a&&a._items.add(this)}return w(e,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=uy(e)}},{key:"addItem",value:function(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort(function(e,t){return e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})}},{key:"ngOnDestroy",value:function(){var t=e._dropLists.indexOf(this);t>-1&&e._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"_setupInputSyncSubscription",value:function(t){var n=this;this._dir&&this._dir.change.pipe(Lp(this._dir.value),cA(this._destroyed)).subscribe(function(e){return t.withDirection(e)}),t.beforeStarted.subscribe(function(){var i=hy(n.connectedTo).map(function(t){return"string"==typeof t?e._dropLists.find(function(e){return e.id===t}):t});if(n._group&&n._group._items.forEach(function(e){-1===i.indexOf(e)&&i.push(e)}),!n._scrollableParentsResolved){var r=n._scrollDispatcher.getAncestorScrollContainers(n.element).map(function(e){return e.getElementRef().nativeElement});n._dropListRef.withScrollableParents(r),n._scrollableParentsResolved=!0}t.disabled=n.disabled,t.lockAxis=n.lockAxis,t.sortingDisabled=uy(n.sortingDisabled),t.autoScrollDisabled=uy(n.autoScrollDisabled),t.autoScrollStep=cy(n.autoScrollStep,2),t.connectedTo(i.filter(function(e){return e&&e!==n}).map(function(e){return e._dropListRef})).withOrientation(n.orientation)})}},{key:"_handleEvents",value:function(e){var t=this;e.beforeStarted.subscribe(function(){t._syncItemsWithRef(),t._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(e){t.entered.emit({container:t,item:e.item.data,currentIndex:e.currentIndex})}),e.exited.subscribe(function(e){t.exited.emit({container:t,item:e.item.data}),t._changeDetectorRef.markForCheck()}),e.sorted.subscribe(function(e){t.sorted.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,container:t,item:e.item.data})}),e.dropped.subscribe(function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,item:e.item.data,isPointerOverContainer:e.isPointerOverContainer,distance:e.distance,dropPoint:e.dropPoint}),t._changeDetectorRef.markForCheck()})}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,n=e.draggingDisabled,i=e.sortingDisabled,r=e.listAutoScrollDisabled,o=e.listOrientation;this.disabled=null!=n&&n,this.sortingDisabled=null!=i&&i,this.autoScrollDisabled=null!=r&&r,this.orientation=o||"vertical",t&&(this.lockAxis=t)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map(function(e){return e._dragRef}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(zP),Ja(ju),Ja(CA),Ja(o_,8),Ja(OP,12),Ja(xP,8))},e.\u0275dir=gt({type:e,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(Ua("id",t.id),Es("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[cu([{provide:OP,useValue:void 0},{provide:PP,useExisting:e}])]}),e._dropLists=[],e}(),IP=new hi("CdkDragHandle"),BP=new hi("CdkDragPlaceholder"),FP=new hi("CdkDragPreview"),HP=function(){var e=function(){function e(t,n,i,r,o,a,s,u,c,l,h){var d=this;_(this,e),this.element=t,this.dropContainer=n,this._ngZone=r,this._viewContainerRef=o,this._dir=s,this._changeDetectorRef=c,this._selfHandle=l,this._parentDrag=h,this._destroyed=new Y,this.started=new Sc,this.released=new Sc,this.ended=new Sc,this.entered=new Sc,this.exited=new Sc,this.dropped=new Sc,this.moved=new I(function(e){var t=d._dragRef.moved.pipe(ee(function(e){return{source:d,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}})).subscribe(e);return function(){t.unsubscribe()}}),this._dragRef=u.createDrag(t,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,e._dragInstances.push(this),a&&this._assignDefaults(a),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return w(e,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=uy(e),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.onStable.pipe(Sp(1),cA(this._destroyed)).subscribe(function(){e._updateRootElement(),e._handles.changes.pipe(Lp(e._handles),Xp(function(t){var n=t.filter(function(t){return t._parentDrag===e}).map(function(e){return e.element});e._selfHandle&&e.rootElementSelector&&n.push(e.element),e._dragRef.withHandles(n)}),Mp(function(e){return le.apply(void 0,r(e.map(function(e){return e._stateChanges.pipe(Lp(e))})))}),cA(e._destroyed)).subscribe(function(t){var n=e._dragRef,i=t.element.nativeElement;t.disabled?n.disableHandle(i):n.enableHandle(i)}),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)})}},{key:"ngOnChanges",value:function(e){var t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this);var t=e._dragInstances.indexOf(this);t>-1&&e._dragInstances.splice(t,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var e=this.element.nativeElement,t=this.rootElementSelector?qP(e,this.rootElementSelector):e;this._dragRef.withRootElement(t||e)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;return e?"string"==typeof e?qP(this.element.nativeElement,e):fy(e):null}},{key:"_syncInputs",value:function(t){var n=this;t.beforeStarted.subscribe(function(){if(!t.isDragging()){var e=n._dir,i=n.dragStartDelay,r=n._placeholderTemplate?{template:n._placeholderTemplate.templateRef,context:n._placeholderTemplate.data,viewContainer:n._viewContainerRef}:null,o=n._previewTemplate?{template:n._previewTemplate.templateRef,context:n._previewTemplate.data,matchSize:n._previewTemplate.matchSize,viewContainer:n._viewContainerRef}:null;t.disabled=n.disabled,t.lockAxis=n.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:cy(i),t.constrainPosition=n.constrainPosition,t.previewClass=n.previewClass,t.withBoundaryElement(n._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(o).withPreviewContainer(n.previewContainer||"global"),e&&t.withDirection(e.value)}}),t.beforeStarted.pipe(Sp(1)).subscribe(function(){var i,r;if(n._parentDrag)t.withParent(n._parentDrag._dragRef);else for(var o=n.element.nativeElement.parentElement;o;){if(null===(i=o.classList)||void 0===i?void 0:i.contains("cdk-drag")){t.withParent((null===(r=e._dragInstances.find(function(e){return e.element.nativeElement===o}))||void 0===r?void 0:r._dragRef)||null);break}o=o.parentElement}})}},{key:"_handleEvents",value:function(e){var t=this;e.started.subscribe(function(){t.started.emit({source:t}),t._changeDetectorRef.markForCheck()}),e.released.subscribe(function(){t.released.emit({source:t})}),e.ended.subscribe(function(e){t.ended.emit({source:t,distance:e.distance,dropPoint:e.dropPoint}),t._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(e){t.entered.emit({container:e.container.data,item:t,currentIndex:e.currentIndex})}),e.exited.subscribe(function(e){t.exited.emit({container:e.container.data,item:t})}),e.dropped.subscribe(function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:t,distance:e.distance,dropPoint:e.dropPoint})})}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,n=e.dragStartDelay,i=e.constrainPosition,r=e.previewClass,o=e.boundaryElement,a=e.draggingDisabled,s=e.rootElementSelector,u=e.previewContainer;this.disabled=null!=a&&a,this.dragStartDelay=n||0,t&&(this.lockAxis=t),i&&(this.constrainPosition=i),r&&(this.previewClass=r),o&&(this.boundaryElement=o),s&&(this.rootElementSelector=s),u&&(this.previewContainer=u)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(PP,12),Ja(Ul),Ja(dl),Ja($u),Ja(xP,8),Ja(o_,8),Ja(zP),Ja(ju),Ja(IP,10),Ja(RP,12))},e.\u0275dir=gt({type:e,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,n){var i;(1&e&&(Hc(n,FP,5),Hc(n,BP,5),Hc(n,IP,5)),2&e)&&(Bc(i=qc())&&(t._previewTemplate=i.first),Bc(i=qc())&&(t._placeholderTemplate=i.first),Bc(i=qc())&&(t._handles=i))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&Es("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[cu([{provide:RP,useExisting:e}]),Et]}),e._dragInstances=[],e}();function qP(e,t){for(var n=e.parentElement;n;){if(n.matches?n.matches(t):n.msMatchesSelector(t))return n;n=n.parentElement}return null}var jP=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[zP],imports:[zA]}),e}(),YP=["*"],WP=new hi("MatChipRemove"),UP=new hi("MatChipAvatar"),KP=new hi("MatChipTrailingIcon"),VP=Gw(Vw(Xw(function e(t){_(this,e),this._elementRef=t}),"primary"),-1),XP=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u,c){var l;return _(this,n),(l=t.call(this,e))._elementRef=e,l._ngZone=i,l._changeDetectorRef=a,l._hasFocus=!1,l.chipListSelectable=!0,l._chipListMultiple=!1,l._chipListDisabled=!1,l._selected=!1,l._selectable=!0,l._disabled=!1,l._removable=!0,l._onFocus=new Y,l._onBlur=new Y,l.selectionChange=new Sc,l.destroyed=new Sc,l.removed=new Sc,l._addHostClassName(),l._chipRippleTarget=s.createElement("div"),l._chipRippleTarget.classList.add("mat-chip-ripple"),l._elementRef.nativeElement.appendChild(l._chipRippleTarget),l._chipRipple=new vM(m(l),i,l._chipRippleTarget,r),l._chipRipple.setupTriggerEvents(e),l.rippleConfig=o||{},l._animationsDisabled="NoopAnimations"===u,l.tabIndex=null!=c&&parseInt(c)||-1,l}return w(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(e){var t=uy(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(e){this._selectable=uy(e)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(e){this._disabled=uy(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=uy(e)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var e=this._elementRef.nativeElement;e.hasAttribute("mat-basic-chip")||"mat-basic-chip"===e.tagName.toLowerCase()?e.classList.add("mat-basic-chip"):e.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(e){this.disabled?e.preventDefault():e.stopPropagation()}},{key:"_handleKeydown",value:function(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()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.pipe(Sp(1)).subscribe(function(){e._ngZone.run(function(){e._hasFocus=!1,e._onBlur.next({chip:e})})})}},{key:"_dispatchSelectionChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}]),n}(VP);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(dl),Ja(_y),Ja(yM,8),Ja(ju),Ja(Ul),Ja(xw,8),ci("tabindex"))},e.\u0275dir=gt({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,n){var i;(1&e&&(Hc(n,UP,5),Hc(n,KP,5),Hc(n,WP,5)),2&e)&&(Bc(i=qc())&&(t.avatar=i.first),Bc(i=qc())&&(t.trailingIcon=i.first),Bc(i=qc())&&(t.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&cs("click",function(e){return t._handleClick(e)})("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(Ua("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),Es("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Oa]}),e}(),GP=new hi("mat-chips-default-options"),JP=Jw(function e(t,n,i,r){_(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),QP=0,ZP=function e(t,n){_(this,e),this.source=t,this.value=n},$P=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u){var c;return _(this,n),(c=t.call(this,s,o,a,u))._elementRef=e,c._changeDetectorRef=i,c._dir=r,c.ngControl=u,c.controlType="mat-chip-list",c._lastDestroyedChipIndex=null,c._destroyed=new Y,c._uid="mat-chip-list-"+QP++,c._tabIndex=0,c._userTabIndex=null,c._onTouched=function(){},c._onChange=function(){},c._multiple=!1,c._compareWith=function(e,t){return e===t},c._required=!1,c._disabled=!1,c.ariaOrientation="horizontal",c._selectable=!0,c.change=new Sc,c.valueChange=new Sc,c.ngControl&&(c.ngControl.valueAccessor=m(c)),c}return w(n,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=uy(e),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){this.writeValue(e),this._value=e}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=uy(e),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(e){this._disabled=uy(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=uy(e),this.chips&&this.chips.forEach(function(e){return e.chipListSelectable=t._selectable})}},{key:"tabIndex",set:function(e){this._userTabIndex=e,this._tabIndex=e}},{key:"chipSelectionChanges",get:function(){return le.apply(void 0,r(this.chips.map(function(e){return e.selectionChange})))}},{key:"chipFocusChanges",get:function(){return le.apply(void 0,r(this.chips.map(function(e){return e._onFocus})))}},{key:"chipBlurChanges",get:function(){return le.apply(void 0,r(this.chips.map(function(e){return e._onBlur})))}},{key:"chipRemoveChanges",get:function(){return le.apply(void 0,r(this.chips.map(function(e){return e.destroyed})))}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new qy(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(cA(this._destroyed)).subscribe(function(t){return e._keyManager.withHorizontalOrientation(t)}),this._keyManager.tabOut.pipe(cA(this._destroyed)).subscribe(function(){e._allowFocusEscape()}),this.chips.changes.pipe(Lp(null),cA(this._destroyed)).subscribe(function(){e.disabled&&Promise.resolve().then(function(){e._syncChipsState()}),e._resetChips(),e._initializeSelection(),e._updateTabIndex(),e._updateFocusForDestroyedChips(),e.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new kA(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"writeValue",value:function(e){this.chips&&this._setSelectionByValue(e,!1)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.stateChanges.next()}},{key:"onContainerClick",value:function(e){this._originatesFromChip(e)||this.focus()}},{key:"focus",value:function(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}},{key:"_focusInput",value:function(e){this._chipInput&&this._chipInput.focus(e)}},{key:"_keydown",value:function(e){var t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(e){return e>=0&&e1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(e){return e.deselect()}),Array.isArray(e))e.forEach(function(e){return t._selectValue(e,n)}),this._sortValues();else{var i=this._selectValue(e,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find(function(n){return null!=n.value&&t._compareWith(n.value,e)});return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())})}},{key:"_clearSelection",value:function(e){this._selectionModel.clear(),this.chips.forEach(function(t){t!==e&&t.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(t){t.selected&&e._selectionModel.select(t)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(e){var t;t=Array.isArray(this.selected)?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.change.emit(new ZP(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var e=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){e.focused||e._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var e=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){e._tabIndex=e._userTabIndex||0,e._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){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)}},{key:"_listenToChipsSelection",value:function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach(function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&e._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(t){var n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&e._keyManager.updateActiveItem(n),e.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){e._blur(),e.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(t){var n=t.chip,i=e.chips.toArray().indexOf(t.chip);e._isValidIndex(i)&&n._hasFocus&&(e._lastDestroyedChipIndex=i)})}},{key:"_originatesFromChip",value:function(e){for(var t=e.target;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(e){return e._hasFocus})}},{key:"_syncChipsState",value:function(){var e=this;this.chips&&this.chips.forEach(function(t){t._chipListDisabled=e._disabled,t._chipListMultiple=e.multiple})}}]),n}(JP);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(ju),Ja(o_,8),Ja(sS,8),Ja(_S,8),Ja(uM),Ja(xT,10))},e.\u0275cmp=ct({type:e,selectors:[["mat-chip-list"]],contentQueries:function(e,t,n){var i;(1&e&&Hc(n,XP,5),2&e)&&(Bc(i=qc())&&(t.chips=i))},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&cs("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(e){return t._keydown(e)}),2&e&&(Vs("id",t._uid),Ua("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),Es("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[cu([{provide:Yk,useExisting:e}]),Oa],ngContentSelectors:YP,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(ms(),$a(0,"div",0),vs(1),es())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),e}(),eN=0,tN=function(){var e=function(){function e(t,n){_(this,e),this._elementRef=t,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Sc,this.placeholder="",this.id="mat-chip-list-input-"+eN++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return w(e,[{key:"chipList",set:function(e){e&&(this._chipList=e,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(e){this._addOnBlur=uy(e)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(e){this._disabled=uy(e)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(e){if(e){if(9!==e.keyCode||Zv(e,"shiftKey")||this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}},{key:"_keyup",value:function(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(e){!this.inputElement.value&&e&&this._chipList._keydown(e),e&&!this._isSeparatorKey(e)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==e||e.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(e){this.inputElement.focus(e)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(e){return!Zv(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(GP))},e.\u0275dir=gt({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&cs("keydown",function(e){return t._keydown(e)})("keyup",function(e){return t._keyup(e)})("blur",function(){return t._blur()})("focus",function(){return t._focus()})("input",function(){return t._onInput()}),2&e&&(Vs("id",t.id),Ua("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:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Et]}),e}(),nN={separatorKeyCodes:[13]},iN=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[uM,{provide:GP,useValue:nN}],imports:[[Uw]]}),e}();function rN(e,t){if(1&e){var n=os();$a(0,"mat-icon",9),cs("mousedown",function(){return Qt(n),ps(2).dragDisabled=!1}),qs(1,"drag_indicator"),es()}}function oN(e,t){if(1&e){var n=os();$a(0,"mat-icon",10),cs("click",function(){Qt(n);var e=ps().$implicit;return ps().edit(e)}),qs(1,"edit"),es()}}function aN(e,t){if(1&e){var n=os();$a(0,"mat-icon",11),cs("click",function(){Qt(n);var e=ps().$implicit;return ps().remove(e)}),qs(1,"cancel"),es()}}function sN(e,t){if(1&e){var n=os();$a(0,"mat-chip",4),cs("removed",function(){var e=Qt(n).$implicit,t=ps();return t.remove(e),t._sendEventToParent()}),Xa(1,rN,2,0,"mat-icon",5),$a(2,"div",6),cs("click",function(){var e=Qt(n).$implicit,t=ps();return t.readonly&&void 0!==t.attribute.displayName&&t.showValue(e,t.attribute.displayName)}),qs(3),es(),Xa(4,oN,2,0,"mat-icon",7),Xa(5,aN,2,0,"mat-icon",8),es()}if(2&e){var i=t.$implicit,r=ps();Qa("selectable",r.selectable)("cdkDragData",i)("removable",r.removable),yo(1),Qa("ngIf",r.removable),yo(1),Es("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),yo(1),js(i),yo(1),Qa("ngIf",r.removable),yo(1),Qa("ngIf",r.removable)}}function uN(e,t){1&e&&($a(0,"mat-icon"),qs(1,"more_horiz"),es())}function cN(e,t){1&e&&($a(0,"mat-icon"),qs(1,"keyboard_arrow_up"),es())}function lN(e,t){if(1&e){var n=os();$a(0,"div",12),$a(1,"span",13),$a(2,"button",14),cs("click",function(){return Qt(n),ps().onShowChange()}),Xa(3,uN,2,0,"mat-icon",15),Xa(4,cN,2,0,"mat-icon",15),es(),es(),es()}if(2&e){var i=ps();yo(1),Qa("matTooltip",i.showMore?"Show less":"Show more")("matTooltipPosition","above"),yo(2),Qa("ngIf",!i.showMore),yo(1),Qa("ngIf",i.showMore)}}function hN(e,t){if(1&e){var n=os();$a(0,"mat-form-field",12),$a(1,"input",16),cs("matChipInputTokenEnd",function(e){return Qt(n),ps().add(e)})("change",function(){return Qt(n),ps()._sendEventToParent()}),es(),es()}if(2&e){var i=ps(),r=Ga(2);yo(1),Qa("matChipInputFor",r)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",i.addOnBlur)}}var dN=function(){var e=function(){function e(t){_(this,e),this.dialog=t,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new Sc,this.readonly=!1}return w(e,[{key:"ngOnInit",value:function(){this.removable=!ZE(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=ZE(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"add",value:function(e){var t=e.input,n=e.value;(n||"").trim()&&(this.attribute.value.push(n.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),t&&(t.value=""),this.sendEventToParent.emit()}},{key:"remove",value:function(e){var t=this,n=QE();n.width="400px",n.data={name:e},this.dialog.open(hR,n).afterClosed().subscribe(function(n){if(n){var i=t.attribute.value.indexOf(e);t.attribute.value.splice(i,1),t.values=Object.values(t.attribute.value),t.sendEventToParent.emit()}})}},{key:"drop",value:function(e){this.dragDisabled=!0,_P(this.attribute.value,e.previousIndex,e.currentIndex),this.values=Object.values(this.attribute.value)}},{key:"edit",value:function(e){var t=this,n=this.attribute.value.indexOf(e),i=QE();i.width="600px",i.data={attribute:this.attribute,index:n},this.dialog.open(lR,i).afterClosed().subscribe(function(e){e&&(t.values=Object.values(t.attribute.value),t.sendEventToParent.emit())})}},{key:"showValue",value:function(e,t){var n=QE();n.width="350px",n.data={value:e,title:t},this.dialog.open(cR,n)}},{key:"setItemsShown",value:function(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}},{key:"onShowChange",value:function(){this.showMore=!this.showMore,this.setItemsShown()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(YE))},e.\u0275cmp=ct({type:e,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",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(e,t){1&e&&($a(0,"div"),$a(1,"mat-chip-list",0,1),cs("cdkDropListDropped",function(e){return t.drop(e),t._sendEventToParent()}),Xa(3,sN,6,9,"mat-chip",2),Xa(4,lN,5,4,"div",3),Xa(5,hN,2,3,"mat-form-field",3),es(),es()),2&e&&(yo(1),Qa("cdkDropListDisabled",t.dragDisabled),yo(2),Qa("ngForOf",t.values.slice(0,t.itemsShown)),yo(1),Qa("ngIf",t.values.length>t.defaultItemsShown),yo(1),Qa("ngIf",!t.readonly))},directives:[$P,NP,Kh,Xh,XP,HP,oE,aC,HM,tT,KL,tN],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%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),e}(),fN=function(){var e=function(){function e(t){_(this,e),this.dialog=t,this.readonly=!1,this.sendEventToParent=new Sc}return w(e,[{key:"ngOnInit",value:function(){this.value=this.attribute.value,this.readonly||(this.readonly=ZE(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(e,t){var n=QE();n.width="350px",n.data={value:e,title:t},this.dialog.open(cR,n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(YE))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&($a(0,"mat-form-field",0),$a(1,"input",1),cs("click",function(){return t.readonly&&void 0!==t.value&&t.showValue(t.value,t.attribute.displayName)})("ngModelChange",function(e){return t.attribute.value=e})("keydown",function(){return t._sendEventToParent()}),es(),es()),2&e&&(ys("appearance",t.readonly?"none":"standard"),yo(1),Es("cursor-pointer",t.readonly&&void 0!==t.value),Qa("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[tT,KL,lT,PT,lS],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),e}(),pN=function(){var e=function(){function e(t){_(this,e),this.dialog=t,this.readonly=!1,this.sendEventToParent=new Sc}return w(e,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=ZE(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(e){var t=QE();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(cR,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(YE))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&($a(0,"mat-form-field",0),$a(1,"input",1),cs("click",function(){return t.readonly&&void 0!==t.attribute.value&&t.showValue(t.attribute)})("ngModelChange",function(e){return t.attribute.value=e})("keydown",function(){return t._sendEventToParent()}),es(),es()),2&e&&(ys("appearance",t.readonly?"none":"standard"),yo(1),Es("cursor-pointer",t.readonly&&void 0!==t.attribute.value),Qa("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[tT,KL,fS,lT,PT,lS],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),e}(),gN=["map"];function mN(e,t){if(1&e){var n=os();$a(0,"perun-web-apps-attribute-value-boolean",3),cs("sendEventToParent",function(){return Qt(n),ps()._sendEventToParent2()}),es()}if(2&e){var i=ps();Qa("attribute",i.attribute)("readonly",i.readonly)}}function vN(e,t){if(1&e){var n=os();$a(0,"perun-web-apps-attribute-value-list",3),cs("sendEventToParent",function(){return Qt(n),ps()._sendEventToParent2()}),es()}if(2&e){var i=ps();Qa("attribute",i.attribute)("readonly",i.readonly)}}function yN(e,t){if(1&e&&ts(0,"perun-web-apps-attribute-value-map",4,5),2&e){var n=ps();Qa("attribute",n.attribute)("readonly",n.readonly)}}function _N(e,t){if(1&e){var n=os();$a(0,"perun-web-apps-attribute-value-string",3),cs("sendEventToParent",function(){return Qt(n),ps()._sendEventToParent2()}),es()}if(2&e){var i=ps();Qa("attribute",i.attribute)("readonly",i.readonly)}}function bN(e,t){if(1&e){var n=os();$a(0,"perun-web-apps-attribute-value-integer",3),cs("sendEventToParent",function(){return Qt(n),ps()._sendEventToParent2()}),es()}if(2&e){var i=ps();Qa("attribute",i.attribute)("readonly",i.readonly)}}var wN=function(){var e=function(){function e(){_(this,e),this.readonly=!1,this.sendEventToParent2=new Sc}return w(e,[{key:"updateMapAttribute",value:function(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}},{key:"_sendEventToParent2",value:function(){this.sendEventToParent2.emit()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(e,t){var n;(1&e&&Fc(gN,5),2&e)&&(Bc(n=qc())&&(t.mapComponent=n.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&&($a(0,"div"),Xa(1,mN,1,2,"perun-web-apps-attribute-value-boolean",0),Xa(2,vN,1,2,"perun-web-apps-attribute-value-list",0),$a(3,"div",1),cs("click",function(){return t._sendEventToParent2()}),Xa(4,yN,2,2,"perun-web-apps-attribute-value-map",2),es(),Xa(5,_N,1,2,"perun-web-apps-attribute-value-string",0),Xa(6,bN,1,2,"perun-web-apps-attribute-value-integer",0),es()),2&e&&(yo(1),Qa("ngIf","java.lang.Boolean"===t.attribute.type),yo(1),Qa("ngIf","java.util.ArrayList"===t.attribute.type),yo(2),Qa("ngIf","java.util.LinkedHashMap"===t.attribute.type),yo(1),Qa("ngIf","java.lang.String"===t.attribute.type||"java.lang.LargeString"===t.attribute.type),yo(1),Qa("ngIf","java.lang.Integer"===t.attribute.type))},directives:[Xh,KD,dN,zD,fN,pN],styles:[""]}),e}();function MN(e,t){1&e&&ts(0,"mat-spinner",3)}function AN(e,t){if(1&e){var n=os();$a(0,"mat-option",16),cs("click",function(){var e=Qt(n).$implicit;return ps(4).changeLanguage(e)}),qs(1),_c(2,"translate"),_c(3,"uppercase"),es()}if(2&e){var i=t.$implicit;Qa("value",i),yo(1),Ys(" ",bc(2,2,bc(3,4,"SHARED_LIB.LANGUAGES."+i))," ")}}function kN(e,t){if(1&e){var n=os();$a(0,"mat-form-field",13),$a(1,"mat-select",14),cs("valueChange",function(e){return Qt(n),ps(3).currentLang=e}),Xa(2,AN,4,6,"mat-option",15),es(),es()}if(2&e){var i=ps(3);yo(1),Qa("value",i.currentLang),yo(1),Qa("ngForOf",i.languages)}}function TN(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"a",17),qs(2),es(),$a(3,"button",18),cs("click",function(){return Qt(n),ps(3).changeEmail()}),qs(4),_c(5,"translate"),_c(6,"customTranslate"),es(),es()}if(2&e){var i=ps(3);yo(1),_s("href","mailto:",i.email,"",_r),yo(1),js(i.email),yo(2),js(bc(5,3,bc(6,5,"PROFILE_PAGE.CHANGE_EMAIL")))}}function SN(e,t){if(1&e){var n=os();$a(0,"mat-option",16),cs("click",function(){var e=Qt(n).$implicit;return ps(4).changeTimeZone(e)}),qs(1),es()}if(2&e){var i=t.$implicit;Qa("value",i),yo(1),Ys(" ",i," ")}}function CN(e,t){if(1&e){var n=os();$a(0,"mat-form-field",13),$a(1,"mat-select",19),cs("valueChange",function(e){return Qt(n),ps(3).currentTimezone=e}),Xa(2,SN,2,2,"mat-option",15),es(),es()}if(2&e){var i=ps(3);yo(1),Qa("value",i.currentTimezone),yo(1),Qa("ngForOf",i.timeZones)}}function EN(e,t){1&e&&($a(0,"p"),qs(1,"-"),es())}function LN(e,t){1&e&&ts(0,"perun-web-apps-attribute-value",22),2&e&&Qa("attribute",ps(2).$implicit.attribute)("readonly",!0)}function zN(e,t){if(1&e&&($a(0,"div"),Xa(1,EN,2,0,"p",20),Xa(2,LN,1,2,"perun-web-apps-attribute-value",21),es()),2&e){var n=ps().$implicit;yo(1),Qa("ngIf",!n.attribute.value),yo(1),Qa("ngIf",n.attribute.value)}}function RN(e,t){if(1&e&&($a(0,"tr"),$a(1,"td",7),$a(2,"div",8),qs(3),es(),es(),$a(4,"td",9),Xa(5,kN,3,2,"mat-form-field",10),Xa(6,TN,7,7,"div",11),Xa(7,CN,3,2,"mat-form-field",10),Xa(8,zN,3,2,"div",12),es(),es()),2&e){var n=t.$implicit,i=ps(2);yo(2),Qa("matTooltip",n["tooltip_"+i.currentLang]),yo(1),js(n["displayName_"+i.currentLang]),yo(1),Qa("ngSwitch",n.attribute.friendlyName),yo(1),Qa("ngSwitchCase","preferredLanguage"),yo(1),Qa("ngSwitchCase","preferredMail"),yo(1),Qa("ngSwitchCase","timezone")}}function ON(e,t){if(1&e&&($a(0,"table",4),$a(1,"tbody"),$a(2,"tr"),$a(3,"td",5),qs(4),_c(5,"translate"),_c(6,"customTranslate"),es(),$a(7,"td"),qs(8),es(),es(),Xa(9,RN,9,6,"tr",6),es(),es()),2&e){var n=ps();yo(4),js(bc(5,3,bc(6,5,"PROFILE_PAGE.NAME"))),yo(4),js(n.fullName),yo(1),Qa("ngForOf",n.additionalAttributes)}}var xN=function(){var e=function(){function e(t,n,i,r,o,a,s,u,c,l){var h=this;_(this,e),this.translateService=t,this.dialog=n,this.authzResolverService=i,this.attributesManagerService=r,this.usersManagerService=o,this.route=a,this.router=s,this.notificator=u,this.storeService=c,this.apiRequestConfiguration=l,this.currentLang="en",this.languages=this.storeService.get("supportedLanguages"),this.timeZones=AD.tz.names().filter(function(e){return!e.startsWith("Etc/")}),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",t.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(function(e){return h.successMessage=e})}return w(e,[{key:"ngOnInit",value:function(){var e=this,t=this.route.snapshot.queryParamMap,n=t.get("token"),i=t.get("u");this.loading=!0,n&&i?(this.apiRequestConfiguration.dontHandleErrorForNext(),this.usersManagerService.validatePreferredEmailChangeWithToken(n,Number.parseInt(i,10)).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.router.navigate([],{replaceUrl:!0}),e.getData()},function(){var t=QE();t.width="600px",e.dialog.open(_R,t).afterClosed().subscribe(function(){e.getData()})})):this.getData()}},{key:"getData",value:function(){var e=this;this.authzResolverService.getPerunPrincipal().subscribe(function(t){e.userId=t.userId,e.usersManagerService.getRichUserWithAttributes(e.userId).subscribe(function(t){e.fullName=(new kL).transform(t);var n=t.userAttributes.find(function(e){return"preferredMail"===e.friendlyName});e.email=n.value,e.languageAttribute=t.userAttributes.find(function(e){return"preferredLanguage"===e.friendlyName}),e.currentLang=e.languageAttribute&&e.languageAttribute.value?e.languageAttribute.value:"en",e.timezoneAttribute=t.userAttributes.find(function(e){return"timezone"===e.friendlyName}),e.currentTimezone=e.timezoneAttribute&&e.timezoneAttribute.value?e.timezoneAttribute.value:"-";var i=e.storeService.get("profile_page_attributes"),r=e.storeService.get("supportedLanguages"),o=0;i.forEach(function(n){var a=t.userAttributes.find(function(e){return e.friendlyName===n.friendly_name});a?(o++,e.addAttribute(a,n,r)):e.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:".concat(n.is_virtual?"virt":"def",":").concat(n.friendly_name)).subscribe(function(t){e.addAttribute(t,n,r),o++,e.loading=o!==i.length}),e.loading=o!==i.length})})})}},{key:"addAttribute",value:function(e,t,n){var i,r,o={attribute:e},s=a(n);try{for(s.s();!(r=s.n()).done;){var u=r.value;o["displayName_".concat(u)]=t["display_name_".concat(u)]&&t["display_name_".concat(u)].length?t["display_name_".concat(u)]:e.displayName,o["tooltip_".concat(u)]=null!==(i=t["tooltip_".concat(u)])&&void 0!==i?i:""}}catch(c){s.e(c)}finally{s.f()}this.additionalAttributes.push(o)}},{key:"changeLanguage",value:function(e){var t=this;this.currentLang=e,this.translateService.use(this.currentLang),this.languageAttribute?this.setLanguage():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:preferredLanguage").subscribe(function(e){t.languageAttribute=e,t.setLanguage()})}},{key:"setLanguage",value:function(){this.languageAttribute.value=this.currentLang,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.languageAttribute}).subscribe(function(){})}},{key:"changeTimeZone",value:function(e){var t=this;this.currentTimezone=e,this.timezoneAttribute?this.setTimeZone():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:timezone").subscribe(function(e){t.timezoneAttribute=e,t.setTimeZone()})}},{key:"setTimeZone",value:function(){this.timezoneAttribute.value=this.currentTimezone,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.timezoneAttribute}).subscribe(function(){})}},{key:"changeEmail",value:function(){var e=this,t=QE();t.width="350px",t.data={userId:this.userId},this.dialog.open(yR,t).afterClosed().subscribe(function(t){t&&e.getEmail()})}},{key:"getEmail",value:function(){var e=this;this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(function(t){e.email=t.value})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(TE),Ja(YE),Ja(ep),Ja($f),Ja(ap),Ja(am),Ja(Cv),Ja(mL),Ja(lL),Ja(gL))},e.\u0275cmp=ct({type:e,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-stroked-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&&($a(0,"div",0),Xa(1,MN,1,0,"mat-spinner",1),Xa(2,ON,10,7,"table",2),es()),2&e&&(yo(1),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading))},directives:[Xh,NL,Kh,aC,Zh,$h,ed,tT,US,RM,HM,wN],pipes:[SE,TL,ud],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}"]}),e}(),DN=["mat-sort-header",""];function PN(e,t){if(1&e){var n=os();$a(0,"div",3),cs("@arrowPosition.start",function(){return Qt(n),ps()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Qt(n),ps()._disableViewStateAnimation=!1}),ts(1,"div",4),$a(2,"div",5),ts(3,"div",6),ts(4,"div",7),ts(5,"div",8),es(),es()}if(2&e){var i=ps();Qa("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),yo(2),Qa("@indicator",i._getArrowDirectionState()),yo(1),Qa("@leftPointer",i._getArrowDirectionState()),yo(1),Qa("@rightPointer",i._getArrowDirectionState())}}var NN,IN=["*"],BN=new hi("MAT_SORT_DEFAULT_OPTIONS"),FN=Qw(Kw(function e(){_(this,e)})),HN=((NN=function(e){d(n,e);var t=p(n);function n(e){var i;return _(this,n),(i=t.call(this))._defaultOptions=e,i.sortables=new Map,i._stateChanges=new Y,i.start="asc",i._direction="",i.sortChange=new Sc,i}return w(n,[{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=uy(e)}},{key:"register",value:function(e){this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(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})}},{key:"getNextSortDirection",value:function(e){var t,n,i;if(!e)return"";var r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear),o=function(e,t){var n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),a=o.indexOf(this.direction)+1;return a>=o.length&&(a=0),o[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(FN)).\u0275fac=function(e){return new(e||NN)(Ja(BN,8))},NN.\u0275dir=gt({type:NN,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Oa,Et]}),NN),qN=jw.ENTERING+" "+qw.STANDARD_CURVE,jN={indicator:c_("indicator",[p_("active-asc, asc",f_({transform:"translateY(0px)"})),p_("active-desc, desc",f_({transform:"translateY(10px)"})),m_("active-asc <=> active-desc",l_(qN))]),leftPointer:c_("leftPointer",[p_("active-asc, asc",f_({transform:"rotate(-45deg)"})),p_("active-desc, desc",f_({transform:"rotate(45deg)"})),m_("active-asc <=> active-desc",l_(qN))]),rightPointer:c_("rightPointer",[p_("active-asc, asc",f_({transform:"rotate(45deg)"})),p_("active-desc, desc",f_({transform:"rotate(-45deg)"})),m_("active-asc <=> active-desc",l_(qN))]),arrowOpacity:c_("arrowOpacity",[p_("desc-to-active, asc-to-active, active",f_({opacity:1})),p_("desc-to-hint, asc-to-hint, hint",f_({opacity:.54})),p_("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",f_({opacity:0})),m_("* => asc, * => desc, * => active, * => hint, * => void",l_("0ms")),m_("* <=> *",l_(qN))]),arrowPosition:c_("arrowPosition",[m_("* => desc-to-hint, * => desc-to-active",l_(qN,g_([f_({transform:"translateY(-25%)"}),f_({transform:"translateY(0)"})]))),m_("* => hint-to-desc, * => active-to-desc",l_(qN,g_([f_({transform:"translateY(0)"}),f_({transform:"translateY(25%)"})]))),m_("* => asc-to-hint, * => asc-to-active",l_(qN,g_([f_({transform:"translateY(25%)"}),f_({transform:"translateY(0)"})]))),m_("* => hint-to-asc, * => active-to-asc",l_(qN,g_([f_({transform:"translateY(0)"}),f_({transform:"translateY(-25%)"})]))),p_("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",f_({transform:"translateY(0)"})),p_("hint-to-desc, active-to-desc, desc",f_({transform:"translateY(-25%)"})),p_("hint-to-asc, active-to-asc, asc",f_({transform:"translateY(25%)"}))]),allowChildren:c_("allowChildren",[m_("* <=> *",[y_("@*",v_(),{optional:!0})])])},YN=function(){var e=function e(){_(this,e),this.changes=new Y};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe({factory:function(){return new e},token:e,providedIn:"root"}),e}(),WN={provide:YN,deps:[[new Pi,new Ni,YN]],useFactory:function(e){return e||new YN}},UN=Kw(function e(){_(this,e)}),KN=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s){var u;return _(this,n),(u=t.call(this))._intl=e,u._changeDetectorRef=i,u._sort=r,u._columnDef=o,u._focusMonitor=a,u._elementRef=s,u._showIndicatorHint=!1,u._viewState={},u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",u._handleStateChanges(),u}return w(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=uy(e)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){var n=!!t;n!==e._showIndicatorHint&&(e._setIndicatorHintVisible(n),e._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(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})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?"".concat(e,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var e=this;this._rerenderSubscription=le(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){e._isSorted()&&(e._updateArrowDirection(),"hint"!==e._viewState.toState&&"active"!==e._viewState.toState||(e._disableViewStateAnimation=!0),e._setAnimationTransitionState({fromState:e._arrowDirection,toState:"active"}),e._showIndicatorHint=!1),!e._isSorted()&&e._viewState&&"active"===e._viewState.toState&&(e._disableViewStateAnimation=!1,e._setAnimationTransitionState({fromState:"active",toState:e._arrowDirection})),e._changeDetectorRef.markForCheck()})}}]),n}(UN);return e.\u0275fac=function(t){return new(t||e)(Ja(YN),Ja(ju),Ja(HN,8),Ja("MAT_SORT_HEADER_COLUMN_DEF",8),Ja(e_),Ja(mu))},e.\u0275cmp=ct({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&cs("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(Ua("aria-sort",t._getAriaSortAttribute()),Es("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Oa],attrs:DN,ngContentSelectors:IN,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(ms(),$a(0,"div",0),$a(1,"div",1),vs(2),es(),Xa(3,PN,6,6,"div",2),es()),2&e&&(Es("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),Ua("tabindex",t._isDisabled()?null:0),yo(3),Qa("ngIf",t._renderArrow()))},directives:[Xh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[jN.indicator,jN.leftPointer,jN.rightPointer,jN.arrowOpacity,jN.arrowPosition,jN.allowChildren]},changeDetection:0}),e}(),VN=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[WN],imports:[[ld,Uw]]}),e}(),XN=function(){var e=function(){function e(t){_(this,e),this.elementRef=t}return w(e,[{key:"ngOnInit",value:function(){this.elementRef.nativeElement.focus()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu))},e.\u0275dir=gt({type:e,selectors:[["","perunWebAppsAutoFocus",""]]}),e}(),GN=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"onClick",value:function(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){var t=this.perunWebAppsMiddleClickRouterLink.join("/"),n=location.search;window.open(t+n)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&cs("mouseup",function(e){return t.onClick(e)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),e}(),JN=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e){var t=e.find(function(e){return"mail"===e.friendlyName});return t?t.value.toString():"N/A"}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=mt({name:"getMailFromAttributes",type:e,pure:!0}),e}();function QN(e,t){1&e&&ts(0,"th",17)}function ZN(e,t){if(1&e){var n=os();$a(0,"td",18),$a(1,"mat-checkbox",19),cs("change",function(e){var t=Qt(n).$implicit,i=ps();return e?i.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),es(),es()}if(2&e){var i=t.$implicit,r=ps();yo(1),Qa("aria-label",r.checkboxLabel(i))("checked",r.selection.isSelected(i))}}function $N(e,t){1&e&&($a(0,"th",20),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))))}function eI(e,t){if(1&e&&($a(0,"td",21),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.userExtSource.id)}}function tI(e,t){1&e&&($a(0,"th",17),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))))}function nI(e,t){if(1&e&&($a(0,"td",21),qs(1),_c(2,"getMailFromAttributes"),es()),2&e){var n=t.$implicit;yo(1),js(bc(2,1,n.attributes))}}function iI(e,t){if(1&e&&($a(0,"th",20),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e){var n=ps();yo(1),js(bc(2,1,bc(3,3,n.extSourceNameHeader?n.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME")))}}function rI(e,t){if(1&e&&($a(0,"td",21),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.userExtSource.extSource.name)}}function oI(e,t){if(1&e&&($a(0,"th",20),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e){var n=ps();yo(1),js(bc(2,1,bc(3,3,n.loginHeader?n.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN")))}}function aI(e,t){if(1&e&&($a(0,"td",21),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.userExtSource.login)}}function sI(e,t){1&e&&($a(0,"th",20),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))))}function uI(e,t){if(1&e&&($a(0,"td",22),qs(1),_c(2,"date"),es()),2&e){var n=t.$implicit;yo(1),js(wc(2,1,n.userExtSource.lastAccess,"d.M.y H:mm:ss"))}}function cI(e,t){1&e&&ts(0,"tr",23)}var lI=function(e,t){return["/admin","users",e,"identities",t]};function hI(e,t){if(1&e&&ts(0,"tr",24),2&e){var n=t.$implicit,i=ps();Es("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),Qa("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:gc(6,lI,i.userId,n.userExtSource.id))("routerLink",i.disableRouting?null:gc(9,lI,i.userId,n.userExtSource.id))}}function dI(e,t){1&e&&($a(0,"app-alert",25),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),Ys(" ",bc(2,1,bc(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}var fI=function(){var e=function(){function e(t,n){_(this,e),this.route=t,this.authResolver=n,this.selection=new kA,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSize=5,this.page=new Sc,this.pageSizeOptions=JE}return w(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngAfterViewInit",value:function(){var e=this;this.disableRouting||this.route.parent.params.subscribe(function(t){e.userId=t.userId}),this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new Gz(this.userExtSources),this.setDataSource()}},{key:"getDataForColumn",value:function(e,t){switch(t){case"id":return e.userExtSource.id.toString();case"mail":var n=e.attributes.find(function(e){return"mail"===e.friendlyName});return n?n.value.toString():"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""}}},{key:"exportData",value:function(e){iL(nL(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,n){return tL(t,n,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,n){return eL(t,n,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"checkboxLabel",value:function(e){return"".concat(this.selection.isSelected(e.userExtSource)?"deselect":"select"," row ").concat(e.userExtSource.id+1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(am),Ja(lp))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){var n;(1&e&&(Fc(uL,7),Fc(HN,7)),2&e)&&(Bc(n=qc())&&(t.child=n.first),Bc(n=qc())&&(t.matSort=n.first))},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",pageSize:"pageSize",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},outputs:{page:"page"},features:[Et],decls:24,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["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",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&($a(0,"div",0),$a(1,"perun-web-apps-table-wrapper",1),cs("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),$a(2,"table",2),ns(3,3),Xa(4,QN,1,0,"th",4),Xa(5,ZN,2,2,"td",5),is(),ns(6,6),Xa(7,$N,4,5,"th",7),Xa(8,eI,2,1,"td",8),is(),ns(9,9),Xa(10,tI,4,5,"th",4),Xa(11,nI,3,3,"td",8),is(),ns(12,10),Xa(13,iI,4,5,"th",7),Xa(14,rI,2,1,"td",8),is(),ns(15,11),Xa(16,oI,4,5,"th",7),Xa(17,aI,2,1,"td",8),is(),ns(18,12),Xa(19,sI,4,5,"th",7),Xa(20,uI,3,4,"td",13),is(),Xa(21,cI,1,0,"tr",14),Xa(22,hI,1,12,"tr",15),es(),es(),es(),Xa(23,dI,4,5,"app-alert",16)),2&e&&(Qa("hidden",0===t.userExtSources.length||0===t.dataSource.filteredData.length),yo(1),Qa("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),yo(1),Qa("dataSource",t.dataSource),yo(19),Qa("matHeaderRowDef",t.displayedColumns),yo(1),Qa("matRowDefColumns",t.displayedColumns),yo(1),Qa("ngIf",0===t.userExtSources.length))},directives:[uL,Bz,HN,qz,Hz,Fz,Wz,Uz,Xh,jz,Yz,qD,KN,Kz,Vz,GN,Ev,pR],pipes:[SE,TL,JN,cd],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),e}();function pI(e,t){1&e&&ts(0,"mat-spinner",3)}function gI(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"h1",8),qs(2),_c(3,"translate"),_c(4,"customTranslate"),es(),$a(5,"button",5),cs("click",function(){return Qt(n),ps(2).addIdentity()}),qs(6),_c(7,"translate"),_c(8,"customTranslate"),es(),$a(9,"button",6),cs("click",function(){Qt(n);var e=ps(2);return e.removeIdentity(e.certSelection)}),qs(10),_c(11,"translate"),_c(12,"customTranslate"),es(),ts(13,"perun-web-apps-user-ext-sources-list",11),es()}if(2&e){var i=ps(2);yo(2),js(bc(3,10,bc(4,12,"IDENTITIES.CERT"))),yo(4),js(bc(7,14,bc(8,16,"IDENTITIES.ADD"))),yo(3),Qa("disabled",0===i.certSelection.selected.length),yo(1),js(bc(11,18,bc(12,20,"IDENTITIES.REMOVE"))),yo(3),Qa("userExtSources",i.certExtSources)("selection",i.certSelection)("extSourceNameHeader",i.extSourceNameCert)("loginHeader",i.loginCert)("displayedColumns",i.displayedColumnsCert)("disableRouting",!0)}}function mI(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"h1",4),qs(2),_c(3,"translate"),_c(4,"customTranslate"),es(),$a(5,"button",5),cs("click",function(){return Qt(n),ps().addIdentity()}),qs(6),_c(7,"translate"),_c(8,"customTranslate"),es(),$a(9,"button",6),cs("click",function(){Qt(n);var e=ps();return e.removeIdentity(e.idpSelection)}),qs(10),_c(11,"translate"),_c(12,"customTranslate"),es(),ts(13,"perun-web-apps-user-ext-sources-list",7),Xa(14,gI,14,22,"div",2),$a(15,"h1",8),qs(16),_c(17,"translate"),_c(18,"customTranslate"),$a(19,"mat-icon",9),_c(20,"translate"),_c(21,"customTranslate"),qs(22," info_outline "),es(),es(),$a(23,"button",6),cs("click",function(){Qt(n);var e=ps();return e.removeIdentity(e.otherSelection)}),qs(24),_c(25,"translate"),_c(26,"customTranslate"),es(),ts(27,"perun-web-apps-user-ext-sources-list",10),es()}if(2&e){var i=ps();yo(2),js(bc(3,19,bc(4,21,"IDENTITIES.IDP"))),yo(4),js(bc(7,23,bc(8,25,"IDENTITIES.ADD"))),yo(3),Qa("disabled",0===i.idpSelection.selected.length),yo(1),js(bc(11,27,bc(12,29,"IDENTITIES.REMOVE"))),yo(3),Qa("userExtSources",i.idpExtSources)("selection",i.idpSelection)("displayedColumns",i.displayedColumnsIdp)("loginHeader",i.loginIdp)("disableRouting",!0),yo(1),Qa("ngIf",i.displayCertificates),yo(2),Ys(" ",bc(17,31,bc(18,33,"IDENTITIES.OTHER"))," "),yo(3),Qa("matTooltip",bc(20,35,bc(21,37,"IDENTITIES.OTHER_TOOLTIP"))),yo(4),Qa("disabled",0===i.otherSelection.selected.length),yo(1),js(bc(25,39,bc(26,41,"IDENTITIES.REMOVE"))),yo(3),Qa("userExtSources",i.otherExtSources)("selection",i.otherSelection)("extSourceNameHeader",i.extSourceNameOther)("displayedColumns",i.displayedColumnsOther)("disableRouting",!0)}}var vI=function(){var e=function(){function e(t,n,i,r,o){_(this,e),this.usersManagerService=t,this.storage=n,this.registrarManagerService=i,this.dialog=r,this.attributesManagerService=o,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new kA(!0,[]),this.certSelection=new kA(!0,[]),this.otherSelection=new kA(!0,[]),this.loginIdp="IDENTITIES.LOGIN_IDP",this.extSourceNameCert="IDENTITIES.EXT_SOURCE_NAME_CERT",this.loginCert="IDENTITIES.LOGIN_CERT",this.extSourceNameOther="IDENTITIES.EXT_SOURCE_NAME_OTHER",this.displayedColumnsIdp=["select","extSourceName","login","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["select","extSourceName","login","lastAccess"]}return w(e,[{key:"ngOnInit",value:function(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.get("display_identity_certificates"),this.refreshTables()}},{key:"refreshTables",value:function(){var e=this;this.loading=!0,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.usersManagerService.getRichUserExtSources(this.userId).subscribe(function(t){var n=t.length;t.forEach(function(t){e.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:sourceIdPName").subscribe(function(i){i&&i.value?(t.userExtSource.extSource.name=i.value,n--,e.loading=0!==n,e.addToList(t)):e.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:IdPOrganizationName").subscribe(function(i){n--,i&&i.value&&(t.userExtSource.extSource.name=i.value),e.loading=0!==n,e.addToList(t)})})})})}},{key:"addIdentity",value:function(){var e=this;this.registrarManagerService.getConsolidatorToken().subscribe(function(t){var n=e.storage.getPerunPrincipal().extSourceType,i=e.storage.get("consolidator_base_url");window.location.href="".concat(i).concat(n&&n.endsWith("X509")?"cert":"fed","-ic/ic/?target_url=").concat(window.location.href,"&token=").concat(t)})}},{key:"removeIdentity",value:function(e){var t=this,n=QE();n.width="600px",n.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(iR,n).afterClosed().subscribe(function(n){n&&(e.clear(),t.refreshTables())})}},{key:"addToList",value:function(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)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(ap),Ja(lL),Ja(rp),Ja(YE),Ja($f))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-identities-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],["mat-flat-button","","color","accent",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&&($a(0,"div",0),Xa(1,pI,1,0,"mat-spinner",1),Xa(2,mI,28,43,"div",2),es()),2&e&&(yo(1),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading))},directives:[Xh,NL,HM,fI,oE,aC],pipes:[SE,TL],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),e}(),yI=["panel"];function _I(e,t){if(1&e&&($a(0,"div",0,1),vs(2),es()),2&e){var n=t.id,i=ps();Qa("id",i.id)("ngClass",i._classList),Ua("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(n))}}var bI=["*"],wI=0,MI=function e(t,n){_(this,e),this.source=t,this.option=n},AI=Xw(function e(){_(this,e)}),kI=new hi("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),TI=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this))._changeDetectorRef=e,a._elementRef=i,a._activeOptionChanges=L.EMPTY,a.showPanel=!1,a._isOpen=!1,a.displayWith=null,a.optionSelected=new Sc,a.opened=new Sc,a.closed=new Sc,a.optionActivated=new Sc,a._classList={},a.id="mat-autocomplete-"+wI++,a.inertGroups=(null==o?void 0:o.SAFARI)||!1,a._autoActiveFirstOption=!!r.autoActiveFirstOption,a}return w(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(e){this._autoActiveFirstOption=uy(e)}},{key:"classList",set:function(e){this._classList=e&&e.length?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,n=[];if(null!=e){var i,r=Array.isArray(e)?e:"".concat(e).split(t),o=a(r);try{for(o.s();!(i=o.n()).done;){var s=i.value,u="".concat(s).trim();u&&n.push(u)}}catch(c){o.e(c)}finally{o.f()}}return n}(e).reduce(function(e,t){return e[t]=!0,e},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new Hy(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(t){e.optionActivated.emit({source:e,option:e.options.toArray()[t]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(e){var t=new MI(this,e);this.optionSelected.emit(t)}},{key:"_getPanelAriaLabelledby",value:function(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}},{key:"_setVisibilityClasses",value:function(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}]),n}(AI);return e.\u0275fac=function(t){return new(t||e)(Ja(ju),Ja(mu),Ja(kI),Ja(_y))},e.\u0275dir=gt({type:e,viewQuery:function(e,t){var n;(1&e&&(Fc(Vu,7),Fc(yI,5)),2&e)&&(Bc(n=qc())&&(t.template=n.first),Bc(n=qc())&&(t.panel=n.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Oa]}),e}(),SI=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._visibleClass="mat-autocomplete-visible",e._hiddenClass="mat-autocomplete-hidden",e}return n}(TI);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275cmp=ct({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,n){var i;(1&e&&(Hc(n,CM,5),Hc(n,RM,5)),2&e)&&(Bc(i=qc())&&(t.optionGroups=i),Bc(i=qc())&&(t.options=i))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[cu([{provide:AM,useExisting:t}]),Oa],ngContentSelectors:bI,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(ms(),Xa(0,_I,3,4,"ng-template"))},directives:[Wh],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t}(),CI=new hi("mat-autocomplete-scroll-strategy"),EI={provide:CI,deps:[pk],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},LI={provide:sT,useExisting:Te(function(){return RI}),multi:!0},zI=function(){var e=function(){function e(t,n,i,o,a,s,u,c,l,h,d){var f=this;_(this,e),this._element=t,this._overlay=n,this._viewContainerRef=i,this._zone=o,this._changeDetectorRef=a,this._dir=u,this._formField=c,this._document=l,this._viewportRuler=h,this._defaults=d,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=L.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Y,this._windowBlurHandler=function(){f._canOpenOnNextFocus=f._document.activeElement!==f._element.nativeElement||f.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=wp(function(){return f.autocomplete&&f.autocomplete.options?le.apply(void 0,r(f.autocomplete.options.map(function(e){return e.onSelectionChange}))):f._zone.onStable.pipe(Sp(1),Mp(function(){return f.optionSelections}))}),this._scrollStrategy=s}return w(e,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=uy(e)}},{key:"ngAfterViewInit",value:function(){var e=this,t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(function(){return t.addEventListener("blur",e._windowBlurHandler)})}},{key:"ngOnChanges",value:function(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var e=this;return le(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ef(function(){return e._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ef(function(){return e._overlayAttached})):Zd()).pipe(ee(function(e){return e instanceof LM?e:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var e=this;return le(jM(this._document,"click"),jM(this._document,"auxclick"),jM(this._document,"touchend")).pipe(ef(function(t){var n=e._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=e._formField?e._formField._elementRef.nativeElement:null,r=e.connectedTo?e.connectedTo.elementRef.nativeElement:null;return e._overlayAttached&&n!==e._element.nativeElement&&(!i||!i.contains(n))&&(!r||!r.contains(n))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(n)}))}},{key:"writeValue",value:function(e){var t=this;Promise.resolve(null).then(function(){return t._setTriggerValue(e)})}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this._element.nativeElement.disabled=e}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;if(27!==t||Zv(e)||e.preventDefault(),this.activeOption&&13===t&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=38===t||40===t;this.panelOpen||9===t?this.autocomplete._keyManager.onKeydown(e):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(e){var t=e.target,n=t.value;"number"===t.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var e=this;return le(this._zone.onStable.pipe(Sp(1)),this.autocomplete.options.changes.pipe(Xp(function(){return e._positionStrategy.reapplyLastPosition()}),AC(0))).pipe(Mp(function(){var t=e.panelOpen;return e._resetActiveItem(),e.autocomplete._setVisibility(),e.panelOpen&&(e._overlayRef.updatePosition(),t!==e.panelOpen&&e.autocomplete.opened.emit()),e.panelClosingActions}),Sp(1)).subscribe(function(t){return e._setValueAndClose(t)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(e){var t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,n=null!=t?t:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}},{key:"_setValueAndClose",value:function(e){e&&e.source&&(this._clearPreviousSelectedOption(e.source),this._setTriggerValue(e.source.value),this._onChange(e.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(e.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(e){this.autocomplete.options.forEach(function(t){t!==e&&t.selected&&t.deselect()})}},{key:"_attachOverlay",value:function(){var e,t=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!Sy(this._element.nativeElement));var n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new DA(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,n.keydownEvents().subscribe(function(e){(27===e.keyCode&&!Zv(e)||38===e.keyCode&&Zv(e,"altKey"))&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){t.panelOpen&&n&&n.updateSize({width:t._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var e;return new JA({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}},{key:"_setStrategyPositions",value:function(e){var t,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];t="above"===this.position?r:"below"===this.position?n:[].concat(n,r),e.withPositions(t)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}},{key:"_scrollToOption",value:function(e){var t=this.autocomplete,n=OM(e,t.options,t.optionGroups);if(0===e&&1===n)t._setScrollTop(0);else if(t.panel){var i=t.options.toArray()[e];if(i){var r=i._getHostElement(),o=xM(r.offsetTop,r.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(o)}}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(pk),Ja($u),Ja(dl),Ja(ju),Ja(CI),Ja(o_,8),Ja(eT,9),Ja(Ul,8),Ja(LA),Ja(kI,8))},e.\u0275dir=gt({type:e,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[Et]}),e}(),RI=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",e}return n}(zI);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275dir=gt({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&cs("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(e){return t._handleInput(e)})("keydown",function(e){return t._handleKeydown(e)}),2&e&&Ua("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-owns",t.autocompleteDisabled||!t.panelOpen||null==t.autocomplete?null:t.autocomplete.id)("aria-haspopup",!t.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[cu([LI]),Oa]}),t}(),OI=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({providers:[EI],imports:[[bk,PM,Uw,ld],zA,PM,Uw]}),e}(),xI=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e){return e&&e.value?e.value:"never"}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=mt({name:"validateExpiration",type:e,pure:!0}),e}();function DI(e,t){1&e&&ts(0,"th",15)}function PI(e,t){if(1&e){var n=os();$a(0,"td",16),$a(1,"mat-checkbox",17),cs("change",function(e){var t=Qt(n).$implicit,i=ps();return e?i.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),_c(2,"validateExpiration"),es(),es()}if(2&e){var i=t.$implicit,r=ps();yo(1),Qa("aria-label",r.checkboxLabel(i))("checked",r.selection.isSelected(i))("disabled","never"===bc(2,3,i.expirationAttribute))}}function NI(e,t){1&e&&($a(0,"th",15),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"MEMBERSHIP_LIST.NAME"))))}function II(e,t){if(1&e&&($a(0,"td",16),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.entity.name)}}function BI(e,t){1&e&&($a(0,"th",15),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))))}function FI(e,t){if(1&e&&($a(0,"td",18),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.entity.description)}}function HI(e,t){1&e&&($a(0,"th",19),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"MEMBERSHIP_LIST.EXPIRATION"))))}function qI(e,t){if(1&e&&($a(0,"td",18),qs(1),_c(2,"validateExpiration"),es()),2&e){var n=t.$implicit;yo(1),Ys(" ",bc(2,1,n.expirationAttribute)," ")}}function jI(e,t){1&e&&ts(0,"th",15)}function YI(e,t){if(1&e){var n=os();$a(0,"td",18),$a(1,"button",20),cs("click",function(){var e=Qt(n).$implicit;return ps().extend(e)}),_c(2,"validateExpiration"),qs(3),_c(4,"translate"),_c(5,"customTranslate"),es(),es()}if(2&e){var i=t.$implicit;yo(1),Qa("disabled","never"===bc(2,2,i.expirationAttribute)),yo(2),js(bc(4,4,bc(5,6,"MEMBERSHIP_LIST.EXTEND")))}}function WI(e,t){1&e&&ts(0,"tr",21)}function UI(e,t){1&e&&ts(0,"tr",22)}function KI(e,t){1&e&&($a(0,"app-alert",23),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}var VI=function(){var e=function(){function e(){_(this,e),this.members=[],this.searchString="",this.selection=new kA(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.pageSize=10,this.filterValue="",this.extendMembership=new Sc,this.pageSizeOptions=JE}return w(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}},{key:"ngOnChanges",value:function(){this.dataSource=new Gz(this.members),this.setDataSource()}},{key:"getDataForColumn",value:function(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&&e.expirationAttribute.value?e.expirationAttribute.value:"never";default:return""}}},{key:"exportData",value:function(e){iL(nL(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,n){return tL(t,n,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,n){return eL(t,n,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"checkboxLabel",value:function(e){return"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.entity.id+1)}},{key:"extend",value:function(e){this.extendMembership.emit(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(e,t){var n;(1&e&&(Fc(HN,7),Fc(uL,7)),2&e)&&(Bc(n=qc())&&(t.matSort=n.first),Bc(n=qc())&&(t.child=n.first))},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",pageSize:"pageSize",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[Et],decls:21,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData"],["mat-table","","matSort","","matSortActive","expirationAttribute","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["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",""],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","disabled","change","click"],["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&&($a(0,"div",0),$a(1,"perun-web-apps-table-wrapper",1),cs("exportData",function(e){return t.exportData(e)}),$a(2,"table",2),ns(3,3),Xa(4,DI,1,0,"th",4),Xa(5,PI,3,5,"td",5),is(),ns(6,6),Xa(7,NI,4,5,"th",4),Xa(8,II,2,1,"td",5),is(),ns(9,7),Xa(10,BI,4,5,"th",4),Xa(11,FI,2,1,"td",8),is(),ns(12,9),Xa(13,HI,4,5,"th",10),Xa(14,qI,3,3,"td",8),is(),ns(15,11),Xa(16,jI,1,0,"th",4),Xa(17,YI,6,8,"td",8),is(),Xa(18,WI,1,0,"tr",12),Xa(19,UI,1,0,"tr",13),es(),es(),es(),Xa(20,KI,4,5,"app-alert",14)),2&e&&(Qa("hidden",!t.dataSource.filteredData.length),yo(1),Qa("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),yo(1),Qa("dataSource",t.dataSource),yo(16),Qa("matHeaderRowDef",t.displayedColumns),yo(1),Qa("matRowDefColumns",t.displayedColumns),yo(1),Qa("ngIf",!t.dataSource.filteredData.length))},directives:[uL,Bz,HN,qz,Hz,Fz,Wz,Uz,Xh,jz,Yz,qD,KN,HM,Kz,Vz,pR],pipes:[xI,SE,TL],styles:[""]}),e}();function XI(e,t){if(1&e&&($a(0,"mat-option",13),qs(1),es()),2&e){var n=t.$implicit;Qa("value",n),yo(1),Ys(" ",n.name," ")}}function GI(e,t){if(1&e){var n=os();$a(0,"mat-form-field",7),$a(1,"mat-label"),qs(2),_c(3,"translate"),es(),ts(4,"input",8),_c(5,"translate"),_c(6,"customTranslate"),$a(7,"mat-autocomplete",9,10),cs("optionSelected",function(e){return Qt(n),ps().filterByVo(e)}),$a(9,"mat-option",11),qs(10),_c(11,"translate"),_c(12,"customTranslate"),es(),Xa(13,XI,2,2,"mat-option",12),_c(14,"async"),es(),es()}if(2&e){var i=Ga(8),r=ps();yo(2),js(bc(3,7,"GROUPS.SELECT_VO")),yo(2),ys("placeholder",bc(5,9,bc(6,11,"GROUPS.SELECT_VO"))),Qa("formControl",r.myControl)("matAutocomplete",i),yo(3),Qa("displayWith",r.displayFn),yo(3),js(bc(11,13,bc(12,15,"GROUPS.ALL"))),yo(3),Qa("ngForOf",bc(14,17,r.filteredVos))}}function JI(e,t){1&e&&ts(0,"mat-spinner",14)}function QI(e,t){1&e&&($a(0,"app-alert",15),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"GROUPS.NO_GROUPS"))))}var ZI=function(){return["name","description","expirationAttribute","extend"]};function $I(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"h4",16),qs(2),_c(3,"translate"),_c(4,"customTranslate"),es(),$a(5,"perun-web-apps-membership-list",17),cs("extendMembership",function(e){return Qt(n),ps().extendMembership(e)}),es(),es()}if(2&e){var i=ps();yo(2),js(bc(3,4,bc(4,6,"GROUPS.MEMBER_GROUPS"))),yo(3),Qa("members",i.userMemberships)("selection",i.selection)("displayedColumns",fc(8,ZI))}}var eB=function(){return["name","description"]};function tB(e,t){if(1&e&&($a(0,"div",18),$a(1,"h4",16),qs(2),_c(3,"translate"),_c(4,"customTranslate"),es(),ts(5,"perun-web-apps-membership-list",19),es()),2&e){var n=ps();yo(2),js(bc(3,3,bc(4,5,"GROUPS.ADMINS_GROUPS"))),yo(3),Qa("members",n.adminMemberships)("displayedColumns",fc(7,eB))}}var nB=function(){var e=function(){function e(t,n,i,r,o,a){_(this,e),this.usersService=t,this.memberService=n,this.groupService=i,this.store=r,this.vosManagerService=o,this.attributesManagerService=a,this.loading=!1,this.vos=[],this.myControl=new nS,this.selection=new kA(!1,[]),this.displayedColumns=["id","name"],this.userMemberships=[],this.adminMemberships=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.userId=this.store.getPerunPrincipal().userId,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(function(t){e.vos=t,e.filteredVos=e.myControl.valueChanges.pipe(Lp(""),ee(function(t){return e._filter(t)})),e.getAllGroups()})}},{key:"_filter",value:function(e){var t="string"==typeof e?e.toLowerCase():e.name.toLowerCase;return this.vos.filter(function(e){return e.name.toLowerCase().includes(t)})}},{key:"getAllGroups",value:function(){var e=this;this.loading=!0;var t=0,n=0;this.userMemberships=[],this.adminMemberships=[];var i=this.store.getPerunPrincipal().roles.SELF.Member;i.length?n=i.length:this.loading=!1,i.forEach(function(i){n--,e.groupService.getMemberGroups(i).subscribe(function(r){t+=r.length,e.loading=0===t&&0!==n,r.forEach(function(n){e.attributesManagerService.getMemberGroupAttributes(i,n.id).subscribe(function(i){t--,e.userMemberships.push({entity:n,expirationAttribute:i.find(function(e){return"groupMembershipExpiration"===e.friendlyName})}),e.loading=0!==t})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(function(t){t.forEach(function(t){e.adminMemberships.push({entity:t,expirationAttribute:null})})})}},{key:"displayFn",value:function(e){return e?e.name:null}},{key:"filterByVo",value:function(e){var t=this;if("all"===e.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;var n=e.option.value;this.memberService.getMemberByUser(n.id,this.userId).subscribe(function(e){t.groupService.getMemberGroups(e.id).subscribe(function(n){var i=n.length;t.loading=0!==i,n.forEach(function(n){t.attributesManagerService.getMemberGroupAttributes(e.id,n.id).subscribe(function(e){i--,t.userMemberships.push({entity:n,expirationAttribute:e.find(function(e){return"groupMembershipExpiration"===e.friendlyName})}),t.loading=0!==i})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,n.id).subscribe(function(e){e.forEach(function(e){t.adminMemberships.push({entity:e,expirationAttribute:null})})})}}},{key:"extendMembership",value:function(e){var t=this.store.get("registrar_base_url"),n=e.entity,i=this.vos.find(function(e){return e.id===n.voId}).shortName;window.location.href="".concat(t,"?vo=").concat(i,"&group=").concat(e.entity.shortName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(ap),Ja(np),Ja(tp),Ja(lL),Ja(up),Ja($f))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div",1),Xa(5,GI,15,19,"mat-form-field",2),Xa(6,JI,1,0,"mat-spinner",3),Xa(7,QI,4,5,"app-alert",4),Xa(8,$I,6,9,"div",5),Xa(9,tB,6,8,"div",6),es()),2&e&&(yo(1),js(bc(2,6,bc(3,8,"GROUPS.TITLE"))),yo(4),Qa("ngIf",!t.loading),yo(1),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.userMemberships.length&&!t.adminMemberships.length&&!t.loading),yo(1),Qa("ngIf",!t.loading&&0!==t.userMemberships.length),yo(1),Qa("ngIf",!t.loading&&0!==t.adminMemberships.length))},directives:[Xh,tT,Vk,KL,lT,RI,PT,vS,SI,RM,Kh,NL,pR,VI],pipes:[SE,TL,sd],styles:[""]}),e}();function iB(e,t){if(1&e&&(ts(0,"input",3),_c(1,"translate")),2&e){var n=ps();ys("placeholder",bc(1,2,n.placeholder)),Qa("formControl",n.formControl)}}function rB(e,t){if(1&e&&(ts(0,"input",4),_c(1,"translate")),2&e){var n=ps();ys("placeholder",bc(1,2,n.placeholder)),Qa("formControl",n.formControl)}}var oB=function(){var e=function(){function e(){_(this,e),this.filter=new Sc,this.autoFocus=!1,this.formControl=new nS}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.formControl.valueChanges.subscribe(function(t){var n=t.trim();n=n.toLowerCase(),e.filter.emit(n)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","ml-2"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(e,t){1&e&&($a(0,"mat-form-field",0),Xa(1,iB,2,4,"input",1),Xa(2,rB,2,4,"input",2),es()),2&e&&(yo(1),Qa("ngIf",t.autoFocus),yo(1),Qa("ngIf",!t.autoFocus))},directives:[tT,Xh,KL,lT,XN,PT,vS],pipes:[SE],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:auto!important}"]}),e}(),aB=0,sB=new hi("CdkAccordion"),uB=function(){var e=function(){function e(){_(this,e),this._stateChanges=new Y,this._openCloseAllActions=new Y,this.id="cdk-accordion-"+aB++,this._multi=!1}return w(e,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=uy(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[cu([{provide:sB,useExisting:e}]),Et]}),e}(),cB=0,lB=function(){var e=function(){function e(t,n,i){var r=this;_(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=L.EMPTY,this.closed=new Sc,this.opened=new Sc,this.destroyed=new Sc,this.expandedChange=new Sc,this.id="cdk-accordion-child-"+cB++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return w(e,[{key:"expanded",get:function(){return this._expanded},set:function(e){e=uy(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())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=uy(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(t){e.disabled||(e.expanded=t)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(sB,12),Ja(ju),Ja(TA))},e.\u0275dir=gt({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[cu([{provide:sB,useValue:void 0}])]}),e}(),hB=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({}),e}(),dB=["body"];function fB(e,t){}var pB=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],gB=["mat-expansion-panel-header","*","mat-action-row"];function mB(e,t){1&e&&ts(0,"span",2),2&e&&Qa("@indicatorRotate",ps()._getExpandedState())}var vB=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],yB=["mat-panel-title","mat-panel-description","*"],_B=new hi("MAT_ACCORDION"),bB={indicatorRotate:c_("indicatorRotate",[p_("collapsed, void",f_({transform:"rotate(0deg)"})),p_("expanded",f_({transform:"rotate(180deg)"})),m_("expanded <=> collapsed, void => collapsed",l_("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:c_("bodyExpansion",[p_("collapsed, void",f_({height:"0px",visibility:"hidden"})),p_("expanded",f_({height:"*",visibility:"visible"})),m_("expanded <=> collapsed, void => collapsed",l_("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},wB=function(){var e=function e(t){_(this,e),this._template=t};return e.\u0275fac=function(t){return new(t||e)(Ja(Vu))},e.\u0275dir=gt({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e}(),MB=0,AB=new hi("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),kB=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o,a,s,u){var c;return _(this,n),(c=t.call(this,e,i,r))._viewContainerRef=o,c._animationMode=s,c._hideToggle=!1,c.afterExpand=new Sc,c.afterCollapse=new Sc,c._inputChanges=new Y,c._headerId="mat-expansion-panel-header-"+MB++,c._bodyAnimationDone=new Y,c.accordion=e,c._document=a,c._bodyAnimationDone.pipe(tA(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?c.afterExpand.emit():"collapsed"===e.toState&&c.afterCollapse.emit())}),u&&(c.hideToggle=u.hideToggle),c}return w(n,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=uy(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe(Lp(null),ef(function(){return e.expanded&&!e._portal}),Sp(1)).subscribe(function(){e._portal=new DA(e._lazyContent._template,e._viewContainerRef)})}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){h(y(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}]),n}(lB);return e.\u0275fac=function(t){return new(t||e)(Ja(_B,12),Ja(ju),Ja(TA),Ja($u),Ja(Ul),Ja(xw,8),Ja(AB,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;(1&e&&Hc(n,wB,5),2&e)&&(Bc(i=qc())&&(t._lazyContent=i.first))},viewQuery:function(e,t){var n;(1&e&&Fc(dB,5),2&e)&&(Bc(n=qc())&&(t._body=n.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&Es("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:[cu([{provide:_B,useValue:void 0}]),Oa,Et],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&&(ms(pB),vs(0),$a(1,"div",0,1),cs("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),$a(3,"div",2),vs(4,1),Xa(5,fB,0,0,"ng-template",3),es(),vs(6,2),es()),2&e&&(yo(1),Qa("@bodyExpansion",t._getExpandedState())("id",t.id),Ua("aria-labelledby",t._headerId),yo(4),Qa("cdkPortalOutlet",t._portal))},directives:[BA],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[bB.bodyExpansion]},changeDetection:0}),e}(),TB=function(){var e=function(){function e(t,n,i,r,o,a){var s=this;_(this,e),this.panel=t,this._element=n,this._focusMonitor=i,this._changeDetectorRef=r,this._animationMode=a,this._parentChangeSubscription=L.EMPTY;var u=t.accordion?t.accordion._stateChanges.pipe(ef(function(e){return!(!e.hideToggle&&!e.togglePosition)})):_p;this._parentChangeSubscription=le(t.opened,t.closed,u,t._inputChanges.pipe(ef(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return s._changeDetectorRef.markForCheck()}),t.closed.pipe(ef(function(){return t._containsFocus()})).subscribe(function(){return i.focusVia(n,"program")}),o&&(this.expandedHeight=o.expandedHeight,this.collapsedHeight=o.collapsedHeight)}return w(e,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(e){switch(e.keyCode){case 32:case 13:Zv(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._element).subscribe(function(t){t&&e.panel.accordion&&e.panel.accordion._handleHeaderFocus(e)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(kB,1),Ja(mu),Ja(e_),Ja(ju),Ja(AB,8),Ja(xw,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&cs("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(Ua("id",t.panel._headerId)("tabindex",t.disabled?-1:0)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),Cs("height",t._getHeaderHeight()),Es("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:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},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&&(ms(vB),$a(0,"span",0),vs(1),vs(2,1),vs(3,2),es(),Xa(4,mB,1,1,"span",1)),2&e&&(yo(4),Qa("ngIf",t._showToggle()))},directives:[Xh],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}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[bB.indicatorRotate]},changeDetection:0}),e}(),SB=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=gt({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e}(),CB=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments))._ownHeaders=new Ec,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return w(n,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=uy(e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe(Lp(this._headers)).subscribe(function(t){e._ownHeaders.reset(t.filter(function(t){return t.panel.accordion===e})),e._ownHeaders.notifyOnChanges()}),this._keyManager=new qy(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(e){this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"ngOnDestroy",value:function(){h(y(n.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),n}(uB);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275dir=gt({type:t,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var i;(1&e&&Hc(n,TB,5),2&e)&&(Bc(i=qc())&&(t._headers=i))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&Es("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[cu([{provide:_B,useExisting:t}]),Oa]}),t}(),EB=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[ld,Uw,hB,FA]]}),e}();function LB(e,t){1&e&&($a(0,"mat-icon",1),_c(1,"translate"),qs(2," visibility\n"),es()),2&e&&ys("matTooltip",bc(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}var zB=function(){var e=function e(){_(this,e),this.recentIds=[]};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({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(e,t){1&e&&Xa(0,LB,3,3,"mat-icon",0),2&e&&Qa("ngIf",t.recentIds.indexOf(t.id)>-1)},directives:[Xh,oE,aC],pipes:[SE],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),e}();function RB(e,t){if(1&e){var n=os();$a(0,"span",3),cs("click",function(){return Qt(n),ps().changeStatus()}),_c(1,"translate"),$a(2,"mat-icon",4),qs(3,"check_circle_outline"),es(),es()}2&e&&ys("matTooltip",bc(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function OB(e,t){if(1&e){var n=os();$a(0,"span",3),cs("click",function(){return Qt(n),ps().changeStatus()}),_c(1,"translate"),$a(2,"mat-icon",5),qs(3,"block"),es(),es()}2&e&&ys("matTooltip",bc(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function xB(e,t){if(1&e&&($a(0,"span",6),_c(1,"translate"),$a(2,"mat-icon",7),qs(3,"report"),es(),es()),2&e){var n=ps();bs("matTooltip","",bc(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",n.failureCause,"")}}function DB(e,t){1&e&&($a(0,"span",6),_c(1,"translate"),$a(2,"mat-icon",8),qs(3,"autorenew"),es(),es()),2&e&&ys("matTooltip",bc(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}var PB=function(){var e=function(){function e(t){_(this,e),this.dialog=t,this.status="",this.statusChange=new Sc}return w(e,[{key:"changeStatus",value:function(){var e=this,t=QE();t.width="500px",t.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(jR,t).afterClosed().subscribe(function(t){t&&e.statusChange.emit()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(YE))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],["matTooltipPosition","above",3,"matTooltip"],[1,"red"],[1,"black"]],template:function(e,t){1&e&&($a(0,"div",0),Xa(1,RB,4,3,"span",1),Xa(2,OB,4,3,"span",1),Xa(3,xB,4,4,"span",2),Xa(4,DB,4,3,"span",2),es()),2&e&&(yo(1),Qa("ngIf","ACTIVE"===t.status),yo(1),Qa("ngIf","INACTIVE"===t.status),yo(1),Qa("ngIf","FAILED"===t.status),yo(1),Qa("ngIf","PROCESSING"===t.status))},directives:[Xh,aC,oE],pipes:[SE],styles:[""]}),e}(),NB=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e){if(null==e)return null;var t="";return e.forEach(function(e){t=t.concat(e.tagName)}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=mt({name:"resourceTagsToString",type:e,pure:!0}),e}(),IB=function(){var e=function(){function e(){_(this,e)}return w(e,[{key:"transform",value:function(e,t){return t?"/organizations/".concat(e.voId,"/resources/").concat(e.id):"/facilities/".concat(e.facilityId,"/resources/").concat(e.id)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=mt({name:"getResourceRoute",type:e,pure:!0}),e}();function BB(e,t){if(1&e){var n=os();$a(0,"th",20),$a(1,"mat-checkbox",21),cs("change",function(e){Qt(n);var t=ps();return e?t.masterToggle():null}),es(),es()}if(2&e){var i=ps();yo(1),Qa("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function FB(e,t){if(1&e){var n=os();$a(0,"td",22),$a(1,"mat-checkbox",23),cs("change",function(e){var t=Qt(n).$implicit,i=ps();return e?i.itemSelectionToggle(t):null})("click",function(e){return e.stopPropagation()}),es(),es()}if(2&e){var i=t.$implicit,r=ps();yo(1),Qa("aria-label",r.checkboxLabel(i))("checked",r.selection.isSelected(i))}}function HB(e,t){1&e&&($a(0,"th",24),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")))}function qB(e,t){if(1&e&&($a(0,"td",22),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.id)}}function jB(e,t){1&e&&ts(0,"th",20)}function YB(e,t){if(1&e&&($a(0,"td",25),ts(1,"perun-web-apps-recently-viewed-icon",26),es()),2&e){var n=t.$implicit,i=ps();yo(1),Qa("recentIds",i.recentIds)("id",n.id)}}function WB(e,t){1&e&&($a(0,"th",24),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")))}function UB(e,t){if(1&e&&($a(0,"td",25),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.name)}}function KB(e,t){1&e&&($a(0,"th",24),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")))}function VB(e,t){if(1&e&&($a(0,"td",25),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.vo.name)}}function XB(e,t){1&e&&($a(0,"th",24),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")))}function GB(e,t){if(1&e){var n=os();$a(0,"td",25),$a(1,"perun-web-apps-group-resource-status",27),cs("mouseenter",function(){return Qt(n),ps().disabledRouting=!0})("mouseleave",function(){Qt(n);var e=ps();return e.disabledRouting=e.disableRouting})("statusChange",function(){return Qt(n),ps().refreshTable.emit()}),es(),es()}if(2&e){var i=t.$implicit,r=ps();yo(1),Qa("theme","group-theme")("resourceId",i.id)("groupId",r.groupId)("failureCause",i.failureCause)("status",i.status)}}function JB(e,t){1&e&&($a(0,"th",24),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")))}function QB(e,t){if(1&e&&($a(0,"td",25),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.facility.name)}}function ZB(e,t){1&e&&($a(0,"th",24),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")))}function $B(e,t){if(1&e&&($a(0,"td",25),qs(1),_c(2,"resourceTagsToString"),es()),2&e){var n=t.$implicit;yo(1),js(bc(2,1,n.resourceTags))}}function eF(e,t){1&e&&($a(0,"th",24),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),js(bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")))}function tF(e,t){if(1&e&&($a(0,"td",25),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n.description)}}function nF(e,t){1&e&&ts(0,"tr",28)}var iF=function(e){return[e]};function rF(e,t){if(1&e&&(ts(0,"tr",29),_c(1,"getResourceRoute"),_c(2,"getResourceRoute")),2&e){var n=t.$implicit,i=ps();Es("cursor-pointer",!i.disableRouting)("disable-outline",i.disabledRouting),Qa("perunWebAppsMiddleClickRouterLink",pc(12,iF,i.disabledRouting?null:wc(1,6,n,i.routingVo)))("routerLink",i.disabledRouting?null:wc(2,9,n,i.routingVo))}}function oF(e,t){1&e&&($a(0,"app-alert",30),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),Ys(" ",bc(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function aF(e,t){1&e&&($a(0,"app-alert",30),qs(1),_c(2,"translate"),es()),2&e&&(yo(1),Ys(" ",bc(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}var sF=function(){var e=function(){function e(t,n){_(this,e),this.guiAuthResolver=t,this.tableCheckbox=n,this.resources=[],this.selection=new kA(!0,[]),this.pageSize=10,this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","name","vo","status","facility","tags","description"],this.pageSizeOptions=JE,this.groupId=null,this.page=new Sc,this.refreshTable=new Sc,this.allSelected=new Sc,this.removeAuth=!1,this.addAuth=!1}return w(e,[{key:"matSort",set:function(e){this.sort=e}},{key:"ngOnInit",value:function(){this.disabledRouting=this.disableRouting}},{key:"ngOnChanges",value:function(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.setDataSource(),this.setAuth()}},{key:"getDataForColumn",value:function(e,t,n){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 n.recentIds&&n.recentIds.indexOf(e.id)>-1?"#".repeat(n.recentIds.indexOf(e.id)):e.name;case"tags":if(!e.resourceTags)return e[t];var i="";return e.resourceTags.forEach(function(e){i=i.concat(e.tagName)}),i;case"status":return e.status;case"uuid":return e.uuid;default:return e[t]}}},{key:"exportData",value:function(e){iL(nL(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource||(this.dataSource=new Gz,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(t,n){return tL(t,n,e.displayedColumns,e.getDataForColumn,e,!0)},this.dataSource.sortData=function(t,n){return eL(t,n,e.getDataForColumn,e)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}},{key:"isAllSelected",value:function(){var e=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.pageSize,this.child.paginator.hasNextPage(),this.dataSource);return this.allSelected.emit(e),e}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.pageSize,this.child.paginator.pageIndex,!1),this.setAuth()}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"setAuth",value:function(){var e=this,t=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce(function(n,i){return n&&e.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",t.concat([i]))},!0),this.addAuth=this.selection.selected.reduce(function(n,i){return n&&e.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",t.concat([i]))},!0)}},{key:"itemSelectionToggle",value:function(e){this.selection.toggle(e),this.setAuth()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(lp),Ja(bL))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){var n;(1&e&&(Fc(HN,7),Fc(uL,7)),2&e)&&(Bc(n=qc())&&(t.matSort=n.first),Bc(n=qc())&&(t.child=n.first))},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",pageSize:"pageSize",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId"},outputs:{page:"page",refreshTable:"refreshTable",allSelected:"allSelected"},features:[Et],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","pageSizeOptions","pageSize","exportData","page"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","status"],["matColumnDef","facility"],["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",""],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"recentIds","id"],[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&&($a(0,"div",0),$a(1,"perun-web-apps-table-wrapper",1),cs("exportData",function(e){return t.exportData(e)})("page",function(e){return t.page.emit(e)}),$a(2,"table",2),ns(3,3),Xa(4,BB,2,3,"th",4),Xa(5,FB,2,2,"td",5),is(),ns(6,6),Xa(7,HB,3,3,"th",7),Xa(8,qB,2,1,"td",8),is(),ns(9,9),Xa(10,jB,1,0,"th",4),Xa(11,YB,2,2,"td",10),is(),ns(12,11),Xa(13,WB,3,3,"th",7),Xa(14,UB,2,1,"td",10),is(),ns(15,12),Xa(16,KB,3,3,"th",7),Xa(17,VB,2,1,"td",10),is(),ns(18,13),Xa(19,XB,3,3,"th",7),Xa(20,GB,2,5,"td",10),is(),ns(21,14),Xa(22,JB,3,3,"th",7),Xa(23,QB,2,1,"td",10),is(),ns(24,15),Xa(25,ZB,3,3,"th",7),Xa(26,$B,3,3,"td",10),is(),ns(27,16),Xa(28,eF,3,3,"th",7),Xa(29,tF,2,1,"td",10),is(),Xa(30,nF,1,0,"tr",17),Xa(31,rF,3,14,"tr",18),es(),es(),es(),Xa(32,oF,3,3,"app-alert",19),Xa(33,aF,3,3,"app-alert",19)),2&e&&(Qa("hidden",0===t.dataSource.filteredData.length||0===t.resources.length),yo(1),Qa("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),yo(1),Qa("dataSource",t.dataSource),yo(28),Qa("matHeaderRowDef",t.displayedColumns),yo(1),Qa("matRowDefColumns",t.displayedColumns),yo(1),Qa("ngIf",0===t.dataSource.filteredData.length&&0!==t.resources.length),yo(1),Qa("ngIf",0===t.resources.length))},directives:[uL,Bz,HN,qz,Hz,Fz,Wz,Uz,Xh,jz,qD,Yz,KN,zB,PB,Kz,Vz,GN,Ev,pR],pipes:[SE,NB,IB],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),e}();function uF(e,t){1&e&&ts(0,"mat-spinner",8)}var cF=function(){return["name","description"]};function lF(e,t){1&e&&ts(0,"perun-web-apps-resources-list",9),2&e&&Qa("resources",ps(3).resources)("displayedColumns",fc(3,cF))("disableRouting",!0)}function hF(e,t){if(1&e&&(Xa(0,uF,1,0,"mat-spinner",6),Xa(1,lF,1,4,"perun-web-apps-resources-list",7)),2&e){var n=ps(2);Qa("ngIf",n.loading),yo(1),Qa("ngIf",!n.loading)}}function dF(e,t){if(1&e){var n=os();$a(0,"mat-expansion-panel",4),cs("opened",function(){var e=Qt(n).$implicit;return ps().getMemberData(e)}),$a(1,"mat-expansion-panel-header"),$a(2,"mat-panel-title"),qs(3),es(),es(),Xa(4,hF,2,2,"ng-template",5),es()}if(2&e){var i=t.$implicit;yo(3),Ys(" ",i.name," ")}}var fF=function(){var e=function(){function e(t,n,i,r){_(this,e),this.usersManagerService=t,this.membersManagerService=n,this.resourcesManagerService=i,this.storage=r,this.resources=[],this.filteredVos=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(function(t){e.vos=t,e.filteredVos=t})}},{key:"getMemberData",value:function(e){var t=this;this.loading=!0,this.membersManagerService.getMemberByUser(e.id,this.userId).subscribe(function(e){t.resourcesManagerService.getAssignedRichResourcesWithMember(e.id).subscribe(function(e){t.resources=e,t.loading=!1})})}},{key:"applyFilter",value:function(e){this.filteredVos=this.vos.filter(function(t){return t.name.toLowerCase().includes(e.toLowerCase())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(ap),Ja(np),Ja(op),Ja(lL))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div",1),$a(5,"perun-web-apps-immediate-filter",2),cs("filter",function(e){return t.applyFilter(e)}),_c(6,"translate"),_c(7,"customTranslate"),es(),$a(8,"mat-accordion"),Xa(9,dF,5,1,"mat-expansion-panel",3),es(),es()),2&e&&(yo(1),js(bc(2,3,bc(3,5,"SERVICES.TITLE"))),yo(4),Qa("placeholder",bc(6,7,bc(7,9,"SERVICES.FILTER"))),yo(4),Qa("ngForOf",t.filteredVos))},directives:[oB,CB,Kh,kB,TB,SB,wB,Xh,NL,sF],pipes:[SE,TL],styles:[""]}),e}();function pF(e,t){if(1&e){var n=os();$a(0,"perun-web-apps-immediate-filter",5),cs("filter",function(e){return Qt(n),ps().applyFilter(e)}),es()}2&e&&Qa("placeholder","ORGANIZATIONS.FILTER")}function gF(e,t){1&e&&ts(0,"mat-spinner",6)}var mF=function(){return["name","expirationAttribute","extend"]};function vF(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"perun-web-apps-membership-list",11),cs("extendMembership",function(e){return Qt(n),ps(2).extendMembership(e)}),es(),es()}if(2&e){var i=ps(2);yo(1),Qa("members",i.userMemberships)("selection",i.selection)("filterValue",i.filterValue)("displayedColumns",fc(4,mF))}}function yF(e,t){1&e&&($a(0,"app-alert",12),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function _F(e,t){if(1&e&&($a(0,"div",7),$a(1,"h1",8),qs(2),_c(3,"translate"),_c(4,"customTranslate"),es(),Xa(5,vF,2,5,"div",9),Xa(6,yF,4,5,"app-alert",10),es()),2&e){var n=ps();yo(2),js(bc(3,3,bc(4,5,"ORGANIZATIONS.IS_MEMBER"))),yo(3),Qa("ngIf",0!==n.userMemberships.length),yo(1),Qa("ngIf",0===n.userMemberships.length)}}function bF(e,t){1&e&&($a(0,"app-alert",12),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}var wF=function(){return["name"]};function MF(e,t){if(1&e&&ts(0,"perun-web-apps-membership-list",14),2&e){var n=ps(2);Qa("members",n.adminMemberships)("filterValue",n.filterValue)("displayedColumns",fc(3,wF))}}function AF(e,t){if(1&e&&($a(0,"div",7),$a(1,"h1",8),qs(2),_c(3,"translate"),_c(4,"customTranslate"),es(),Xa(5,bF,4,5,"app-alert",10),Xa(6,MF,1,4,"perun-web-apps-membership-list",13),es()),2&e){var n=ps();yo(2),js(bc(3,3,bc(4,5,"ORGANIZATIONS.IS_ADMIN"))),yo(3),Qa("ngIf",!n.adminMemberships.length),yo(1),Qa("ngIf",n.adminMemberships.length)}}var kF=function(){var e=function(){function e(t,n,i){_(this,e),this.usersService=t,this.store=n,this.membersService=i,this.filterValue="",this.selection=new kA(!1,[]),this.userMemberships=[],this.adminMemberships=[],this.vosCount=0}return w(e,[{key:"ngOnInit",value:function(){this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.user.id,this.refreshTable()}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(function(t){e.usersService.getVosWhereUserIsAdmin(e.userId).subscribe(function(n){e.vosCount=t.length+n.length,e.fillMemberships(t,e.userMemberships),e.fillMemberships(n,e.adminMemberships)})})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"isEverythingLoaded",value:function(){this.vosCount--,this.loading=0!==this.vosCount}},{key:"fillMemberships",value:function(e,t){var n=this;this.membersService.getMembersByUser(this.userId).subscribe(function(i){e.forEach(function(e){var r=i.find(function(t){return t.voId===e.id});r?n.membersService.getRichMemberWithAttributes(r.id).subscribe(function(i){var r=i.memberAttributes.find(function(e){return"membershipExpiration"===e.friendlyName});t.push({entity:e,expirationAttribute:r}),n.isEverythingLoaded()}):(t.push({entity:e,expirationAttribute:null}),n.isEverythingLoaded())})})}},{key:"extendMembership",value:function(e){var t=this.store.get("registrar_base_url");window.location.href="".concat(t,"?vo=").concat(e.entity.shortName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(ap),Ja(lL),Ja(np))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div",1),Xa(5,pF,1,1,"perun-web-apps-immediate-filter",2),Xa(6,gF,1,0,"mat-spinner",3),Xa(7,_F,7,7,"div",4),Xa(8,AF,7,7,"div",4),es()),2&e&&(yo(1),js(bc(2,5,bc(3,7,"ORGANIZATIONS.TITLE"))),yo(4),Qa("ngIf",!t.loading),yo(1),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading),yo(1),Qa("ngIf",!t.loading))},directives:[Xh,oB,NL,VI,pR],pipes:[SE,TL],styles:[""]}),e}(),TF=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(e,t){1&e&&($a(0,"div",0),ts(1,"router-outlet"),es())},directives:[Rv],styles:[""]}),e}(),SF=function(){var e=function(){function e(t,n){_(this,e),this.dialogRef=t,this.data=n,this.password=""}return w(e,[{key:"ngOnInit",value:function(){this.password=this.data.password}},{key:"onClose",value:function(){this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE),Ja(BE))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div",1),$a(5,"p"),qs(6),_c(7,"translate"),_c(8,"customTranslate"),es(),$a(9,"label"),ts(10,"input",2),es(),es(),$a(11,"div",3),$a(12,"button",4),cs("click",function(){return t.onClose()}),qs(13),_c(14,"translate"),_c(15,"customTranslate"),es(),$a(16,"button",5),qs(17),_c(18,"translate"),_c(19,"customTranslate"),es(),es()),2&e&&(yo(1),js(bc(2,6,bc(3,8,"DIALOGS.SHOW_PASSWORD.TITLE"))),yo(5),js(bc(7,10,bc(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),yo(4),Qa("value",t.password),yo(3),Ys(" ",bc(14,14,bc(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),yo(3),Qa("cdkCopyToClipboard",t.password),yo(1),Ys(" ",bc(18,18,bc(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},directives:[UE,KE,VE,HM,sR],pipes:[SE,TL],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),e}();function CF(e,t){1&e&&ts(0,"mat-spinner",7)}function EF(e,t){1&e&&ts(0,"th",16)}function LF(e,t){if(1&e&&($a(0,"td",17),qs(1),es()),2&e){var n=t.$implicit;yo(1),Ys(" ",n," ")}}function zF(e,t){1&e&&ts(0,"tr",18)}function RF(e,t){1&e&&ts(0,"tr",19)}function OF(e,t){if(1&e&&($a(0,"div",8),$a(1,"p"),qs(2),_c(3,"translate"),_c(4,"customTranslate"),es(),$a(5,"div",9),qs(6),_c(7,"translate"),_c(8,"customTranslate"),es(),$a(9,"table",10),ns(10,11),Xa(11,EF,1,0,"th",12),Xa(12,LF,2,1,"td",13),is(),Xa(13,zF,1,0,"tr",14),Xa(14,RF,1,0,"tr",15),es(),es()),2&e){var n=ps();yo(2),Ys(" ",bc(3,5,bc(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),yo(4),Ys(" ",bc(7,9,bc(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),yo(3),Qa("dataSource",n.dataSource),yo(4),Qa("matHeaderRowDef",n.displayedColumns),yo(1),Qa("matRowDefColumns",n.displayedColumns)}}var xF=function(){var e=function(){function e(t,n,i){_(this,e),this.dialogRef=t,this.data=n,this.usersManagerService=i,this.displayedColumns=["description"]}return w(e,[{key:"ngOnInit",value:function(){this.dataSource=new Gz(this.data.description)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe(function(){e.loading=!1,e.dialogRef.close(!0)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE),Ja(BE),Ja(ap))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div",1),Xa(5,CF,1,0,"mat-spinner",2),es(),Xa(6,OF,15,13,"div",3),$a(7,"div",4),$a(8,"button",5),cs("click",function(){return t.onCancel()}),qs(9),_c(10,"translate"),_c(11,"customTranslate"),es(),$a(12,"button",6),cs("click",function(){return t.onSubmit()}),qs(13),_c(14,"translate"),_c(15,"customTranslate"),es(),es()),2&e&&(yo(1),js(bc(2,5,bc(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),yo(4),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading),yo(3),Ys(" ",bc(10,9,bc(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),yo(4),Ys(" ",bc(14,13,bc(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},directives:[UE,Xh,VE,HM,NL,KE,Bz,qz,Hz,Fz,Wz,Uz,jz,Yz,Kz,Vz],pipes:[SE,TL],styles:[""]}),e}();function DF(e,t){1&e&&ts(0,"th",12)}function PF(e,t){if(1&e){var n=os();$a(0,"td",13),$a(1,"mat-checkbox",14),cs("change",function(e){var t=Qt(n).$implicit,i=ps();return e?i.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),es(),es()}if(2&e){var i=t.$implicit,r=ps();yo(1),Qa("aria-label",r.checkboxLabel(i))("checked",r.selection.isSelected(i))}}function NF(e,t){if(1&e&&($a(0,"th",15),qs(1),es()),2&e){var n=ps();yo(1),js(n.headerColumnText)}}function IF(e,t){if(1&e&&($a(0,"td",16),qs(1),es()),2&e){var n=t.$implicit;yo(1),js(n)}}function BF(e,t){1&e&&ts(0,"tr",17)}function FF(e,t){1&e&&ts(0,"tr",18)}function HF(e,t){if(1&e&&($a(0,"app-alert",19),qs(1),es()),2&e){var n=ps();yo(1),Ys(" ",n.alertText,"\n")}}var qF=function(){var e=function(){function e(){_(this,e),this.values=[],this.selection=new kA(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"],this.pageSize=5}return w(e,[{key:"ngOnChanges",value:function(){this.values=this.values?this.values:[],this.dataSource=new Gz(this.values),this.setDataSource()}},{key:"getExportDataForColumn",value:function(e){return e}},{key:"exportData",value:function(e){iL(nL(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),e)}},{key:"setDataSource",value:function(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"checkboxLabel",value:function(e){return(this.selection.isSelected(e)?"deselect":"select")+" row"}},{key:"ngAfterViewInit",value:function(){this.setDataSource()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-string-list"]],viewQuery:function(e,t){var n;(1&e&&Fc(uL,7),2&e)&&(Bc(n=qc())&&(t.child=n.first))},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[Et],decls:12,vars:7,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSize","exportData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","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",""],["mat-cell","",1,"static-column-size"],["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&&($a(0,"div",0),$a(1,"perun-web-apps-table-wrapper",1),cs("exportData",function(e){return t.exportData(e)}),$a(2,"table",2),ns(3,3),Xa(4,DF,1,0,"th",4),Xa(5,PF,2,2,"td",5),is(),ns(6,6),Xa(7,NF,2,1,"th",7),Xa(8,IF,2,1,"td",8),is(),Xa(9,BF,1,0,"tr",9),Xa(10,FF,1,0,"tr",10),es(),es(),es(),Xa(11,HF,2,1,"app-alert",11)),2&e&&(Qa("hidden",!t.values.length),yo(1),Qa("dataLength",t.dataSource.filteredData.length)("pageSize",t.pageSize),yo(1),Qa("dataSource",t.dataSource),yo(7),Qa("matHeaderRowDef",t.displayedColumns),yo(1),Qa("matRowDefColumns",t.displayedColumns),yo(1),Qa("ngIf",0===t.values.length))},directives:[uL,Bz,qz,Hz,Fz,Wz,Uz,Xh,jz,Yz,qD,Kz,Vz,pR],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),e}();function jF(e,t){if(1&e&&ts(0,"perun-web-apps-string-list",10),2&e){var n=ps();Qa("values",n.displayedValues)("selection",n.selection)("alertText",n.alertText)("headerColumnText",n.headerColumnText)}}function YF(e,t){1&e&&ts(0,"mat-spinner",11)}var WF=function(){var e=function(){function e(t,n,i,r,o){var a=this;_(this,e),this.store=t,this.attributesManagerService=n,this.dialog=i,this.translateService=r,this.usersManagerService=o,this.altPasswordCtrl=new nS(null,[mT.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new kA(!1,[]),r.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(function(e){return a.removeDialogDescription=e}),r.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(function(e){return a.removeDialogTitle=e}),r.get("ALERTS.NO_ALT_PASSWORDS").subscribe(function(e){return a.alertText=e}),r.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(function(e){return a.headerColumnText=e})}return w(e,[{key:"ngOnInit",value:function(){this.getAltPasswords()}},{key:"createPassword",value:function(){var e=this,t=this.generatePassword();this.usersManagerService.createAlternativePassword(this.userId,this.altPasswordCtrl.value,"einfra",t).subscribe(function(){var n=QE();n.width="600px",n.data={password:t},e.dialog.open(SF,n),e.getAltPasswords(),e.altPasswordCtrl.setValue("")})}},{key:"generatePassword",value:function(){for(var e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-",t="",n=0,i=e.length;n<16;++n)t+=e.charAt(Math.random()*i);return t.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),t}},{key:"getAltPasswords",value:function(){var e=this;this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(function(t){if(e.altPasswordsAttribute=t,t.value){var n=Object.keys(t.value);e.passwordDescriptions=new Set(n),e.displayedValues=Array.from(e.passwordDescriptions.values())}else e.displayedValues=[];e.loading=!1})}},{key:"alreadyContainsValue",value:function(e){return this.passwordDescriptions.has(e)}},{key:"removeAltPasswords",value:function(){var e=this,t=QE();t.width="600px",t.data={description:this.selection.selected,passwordId:this.altPasswordsAttribute.value[this.selection.selected[0]],userId:this.userId},this.dialog.open(xF,t).afterClosed().subscribe(function(t){t&&(e.getAltPasswords(),e.selection.clear())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(lL),Ja($f),Ja(YE),Ja(TE),Ja(ap))},e.\u0275cmp=ct({type:e,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&&($a(0,"div",0),$a(1,"h1",1),qs(2),_c(3,"translate"),_c(4,"customTranslate"),es(),$a(5,"mat-form-field",2),$a(6,"label",2),ts(7,"input",3),_c(8,"translate"),_c(9,"customTranslate"),es(),es(),$a(10,"button",4),cs("click",function(){return t.createPassword()}),qs(11),_c(12,"translate"),_c(13,"customTranslate"),es(),$a(14,"app-alert",5),qs(15),_c(16,"translate"),_c(17,"customTranslate"),es(),$a(18,"h1",6),qs(19),_c(20,"translate"),_c(21,"customTranslate"),es(),$a(22,"button",7),cs("click",function(){return t.removeAltPasswords()}),qs(23),_c(24,"translate"),_c(25,"customTranslate"),es(),Xa(26,jF,1,4,"perun-web-apps-string-list",8),Xa(27,YF,1,0,"mat-spinner",9),es()),2&e&&(yo(2),js(bc(3,11,bc(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),yo(5),ys("placeholder",bc(8,15,bc(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),Qa("formControl",t.altPasswordCtrl),yo(3),Qa("disabled",!t.altPasswordCtrl.valid||t.alreadyContainsValue(t.altPasswordCtrl.value)),yo(1),js(bc(12,19,bc(13,21,"ALT_PASSWORDS.GENERATE"))),yo(4),js(bc(16,23,bc(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),yo(4),js(bc(20,27,bc(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),yo(3),Qa("disabled",t.selection.isEmpty()),yo(1),js(bc(24,31,bc(25,33,"ALT_PASSWORDS.REMOVE"))),yo(3),Qa("ngIf",!t.loading),yo(1),Qa("ngIf",t.loading))},directives:[tT,KL,lT,PT,vS,HM,pR,Xh,qF,NL],pipes:[SE,TL],styles:[""]}),e}();function UF(e,t){if(1&e&&($a(0,"mat-list-item",1),$a(1,"mat-icon"),qs(2),es(),$a(3,"p",2),qs(4),_c(5,"translate"),_c(6,"customTranslate"),es(),es()),2&e){var n=t.$implicit;Qa("routerLink",n.url),yo(2),js(n.icon),yo(2),js(bc(5,3,bc(6,5,n.label)))}}var KF=function(){var e=function(){function e(t){_(this,e),this.storeService=t,this.items=[]}return w(e,[{key:"ngOnInit",value:function(){this.initItems();var e=this.storeService.get("displayed_tabs");this.items=this.items.filter(function(t){return e.includes(t.tabName)})}},{key:"initItems",value:function(){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:"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"}]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(lL))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-settings-overview"]],decls:2,vars:1,consts:[["matRipple","",3,"routerLink",4,"ngFor","ngForOf"],["matRipple","",3,"routerLink"],[1,"ml-2","mt-auto","mb-auto"]],template:function(e,t){1&e&&($a(0,"mat-list"),Xa(1,UF,7,7,"mat-list-item",0),es()),2&e&&(yo(1),Qa("ngForOf",t.items))},directives:[Ix,Kh,Hx,_M,Ev,oE],pipes:[SE,TL],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),e}(),VF=["row","column","row-reverse","column-reverse"];function XF(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var GF=function(){var e,n=function(e){d(i,e);var n=p(i);function i(){return _(this,i),n.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e){return n=function(e){var n=t((e=e?e.toLowerCase():"").split(" "),3),i=n[0],r=n[1],o=n[2];return VF.find(function(e){return e===i})||(i=VF[0]),"inline"===r&&(r="inline"!==o?o:"",o="inline"),[i,XF(r),!!o]}(e),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}((i=t(n,3))[0],i[1],i[2]);var n,i}}]),i}(PO);return n.\u0275fac=function(t){return(e||(e=si(n)))(t||n)},n.\u0275prov=Oe({factory:function(){return new n},token:n,providedIn:"root"}),n}(),JF=["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"],QF=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this,e,r,i,o)).DIRECTIVE_KEY="layout",a.styleCache=$F,a.init(),a}return n}(fO);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(DO),Ja(GF),Ja(NO))},e.\u0275dir=gt({type:e,features:[Oa]}),e}(),ZF=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments)).inputs=JF,e}return n}(QF);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275dir=gt({type:t,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:[Oa]}),t}(),$F=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var eH=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){return _(this,n),t.apply(this,arguments)}return w(n,[{key:"buildStyles",value:function(e){var 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}}]),n}(PO);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275prov=Oe({factory:function(){return new t},token:t,providedIn:"root"}),t}(),tH=["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"],nH=function(){var e=function(e){d(n,e);var t=p(n);function n(e,i,r,o){var a;return _(this,n),(a=t.call(this,e,r,i,o)).DIRECTIVE_KEY="flex-align",a.styleCache=iH,a.init(),a}return n}(fO);return e.\u0275fac=function(t){return new(t||e)(Ja(mu),Ja(DO),Ja(eH),Ja(NO))},e.\u0275dir=gt({type:e,features:[Oa]}),e}(),iH=new Map,rH=function(){var e,t=function(e){d(n,e);var t=p(n);function n(){var e;return _(this,n),(e=t.apply(this,arguments)).inputs=tH,e}return n}(nH);return t.\u0275fac=function(n){return(e||(e=si(t)))(n||t)},t.\u0275dir=gt({type:t,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:[Oa]}),t}();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var oH=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[iO,a_]]}),e}();function aH(e,t){if(1&e&&($a(0,"mat-option",13),qs(1),es()),2&e){var n=t.$implicit;Qa("value",ps().selectedUnit),yo(1),Ys(" ",n," ")}}var sH=function(){var e=function(){function e(t,n,i,r,o){var a=this;_(this,e),this.dialogRef=t,this.data=n,this.rtMessagesService=i,this.notificator=r,this.translate=o,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",o.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(function(e){return a.successMessage=e})}return w(e,[{key:"ngOnInit",value:function(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new nS(null,[mT.required]),this.newValueControl=new nS(null,[mT.required,mT.pattern("[1-9][0-9]*")])}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var e=this,t=(new kL).transform(this.data.user);this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request","QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ".concat(t," (user ID: ").concat(this.data.user.id,")\u21b5 VO: ").concat(this.data.vo.shortName," / ").concat(this.data.vo.name," (vo ID: ").concat(this.data.vo.id,")\u21b5 Resource: ").concat(this.data.resource.name," (resource ID: ").concat(this.data.resource.id,")\u21b5 Data quota\u21b5 Requested quota: ").concat(this.newValueControl.value,"\u21b5 Reason: ").concat(this.reasonControl.value,"\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI")).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.dialogRef.close()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE),Ja(BE),Ja(ip),Ja(mL),Ja(TE))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div",1),$a(5,"div"),$a(6,"p",2),qs(7),_c(8,"translate"),_c(9,"customTranslate"),es(),$a(10,"p"),qs(11),es(),es(),$a(12,"div"),$a(13,"p",2),qs(14),_c(15,"translate"),_c(16,"customTranslate"),es(),$a(17,"p"),qs(18),es(),es(),$a(19,"div",3),$a(20,"mat-form-field"),$a(21,"label",4),ts(22,"input",5),_c(23,"translate"),_c(24,"customTranslate"),es(),es(),$a(25,"mat-select",6),cs("valueChange",function(e){return t.selectedUnit=e}),Xa(26,aH,2,2,"mat-option",7),es(),es(),$a(27,"div"),$a(28,"mat-form-field",8),$a(29,"label",4),ts(30,"textarea",9),_c(31,"translate"),_c(32,"customTranslate"),es(),es(),es(),$a(33,"div",10),$a(34,"button",11),cs("click",function(){return t.onCancel()}),qs(35),_c(36,"translate"),_c(37,"customTranslate"),es(),$a(38,"button",12),cs("click",function(){return t.onSubmit()}),qs(39),_c(40,"translate"),_c(41,"customTranslate"),es(),es(),es()),2&e&&(yo(1),js(bc(2,14,bc(3,16,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.TITLE"))),yo(6),js(bc(8,18,bc(9,20,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))),yo(4),js(t.resource),yo(3),js(bc(15,22,bc(16,24,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))),yo(4),js(t.currentQuota),yo(4),ys("placeholder",bc(23,26,bc(24,28,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),Qa("formControl",t.newValueControl),yo(3),Qa("value",t.selectedUnit),yo(1),Qa("ngForOf",t.units),yo(4),ys("placeholder",bc(31,30,bc(32,32,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),Qa("formControl",t.reasonControl),yo(5),Ys(" ",bc(36,34,bc(37,36,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),yo(3),Qa("disabled",t.reasonControl.invalid),yo(1),Ys(" ",bc(40,38,bc(41,40,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},directives:[UE,ZF,rH,tT,KL,fS,lT,wS,PT,vS,US,Kh,VE,HM,RM],pipes:[SE,TL],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-ripple.mat-form-field-ripple[_ngcontent-%COMP%], .mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%]{display:none}"]}),e}();function uH(e,t){1&e&&ts(0,"mat-spinner",8)}function cH(e,t){1&e&&($a(0,"app-alert",9),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function lH(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"p"),$a(2,"strong"),qs(3),_c(4,"translate"),_c(5,"customTranslate"),es(),qs(6),es(),$a(7,"p",10),qs(8),_c(9,"translate"),_c(10,"customTranslate"),es(),$a(11,"button",11),cs("click",function(){Qt(n);var e=ps().$implicit,t=ps(3).$implicit;return ps().requestChangeQuota(t,e)}),qs(12),_c(13,"translate"),_c(14,"customTranslate"),es(),es()}if(2&e){var i=ps(5);yo(3),js(bc(4,4,bc(5,6,"DATA_QUOTAS.QUOTA"))),yo(3),Ys(" ",i.quotasMarkup,""),yo(2),js(bc(9,8,bc(10,10,"DATA_QUOTAS.QUOTA_INFO"))),yo(4),js(bc(13,12,bc(14,14,"DATA_QUOTAS.CHANGE")))}}function hH(e,t){1&e&&($a(0,"p"),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function dH(e,t){if(1&e){var n=os();$a(0,"mat-expansion-panel",3),cs("opened",function(){var e=Qt(n).$implicit;return ps(4).getResAttributes(e.id)}),$a(1,"mat-expansion-panel-header"),$a(2,"mat-panel-title"),qs(3),es(),es(),Xa(4,lH,15,16,"div",7),Xa(5,hH,4,5,"p",7),es()}if(2&e){var i=t.$implicit,r=ps(4);yo(3),Ys(" ",i.name," "),yo(1),Qa("ngIf",r.defaultQuota),yo(1),Qa("ngIf",!r.defaultQuota)}}function fH(e,t){if(1&e&&($a(0,"mat-accordion"),Xa(1,dH,6,3,"mat-expansion-panel",2),es()),2&e){var n=ps(3);yo(1),Qa("ngForOf",n.resources)}}function pH(e,t){if(1&e&&(Xa(0,uH,1,0,"mat-spinner",5),Xa(1,cH,4,5,"app-alert",6),Xa(2,fH,2,1,"mat-accordion",7)),2&e){var n=ps(2);Qa("ngIf",n.loading),yo(1),Qa("ngIf",0===n.resources.length&&!n.loading),yo(1),Qa("ngIf",n.resources.length&&!n.loading)}}function gH(e,t){if(1&e){var n=os();$a(0,"mat-expansion-panel",3),cs("opened",function(){var e=Qt(n).$implicit;return ps().getMembersResources(e)}),$a(1,"mat-expansion-panel-header"),$a(2,"mat-panel-title"),qs(3),es(),es(),Xa(4,pH,3,3,"ng-template",4),es()}if(2&e){var i=t.$implicit;yo(3),Ys(" ",i.name," ")}}var mH=function(){var e=function(){function e(t,n,i,r,o,a){_(this,e),this.store=t,this.usersManagerService=n,this.membersService=i,this.resourcesManagerService=r,this.attributesManagerService=o,this.dialog=a,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(function(t){e.vos=t,e.filteredVos=t})}},{key:"getMembersResources",value:function(e){var t=this;this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(function(e){t.resourcesManagerService.getAssignedRichResourcesWithMember(e.id).subscribe(function(e){var n=e.length;n||(t.loading=!1),e.forEach(function(e){t.attributesManagerService.getResourceAttributes(e.id).subscribe(function(i){n--,i.find(function(e){return"defaultDataQuotas"===e.friendlyName})&&t.resources.push(e),t.loading=0!==n})})})})}},{key:"getResAttributes",value:function(e){var t=this;this.attributesManagerService.getResourceAttributes(e).subscribe(function(e){var n=e.find(function(e){return"dataQuotas"===e.friendlyName});if(n&&n.value){var i=Object.keys(n.value);t.currentQuota=n.value[i[0]]}else t.currentQuota="";if(n=e.find(function(e){return"defaultDataQuotas"===e.friendlyName})){var r=Object.keys(n.value);t.defaultQuota=n.value[r[0]]}else t.defaultQuota="";t.currentQuota||(t.currentQuota=t.defaultQuota),t.parseMarkup()})}},{key:"parseMarkup",value:function(){var e="";e+=this.currentQuota,e=(e+=" (default: ".concat(this.defaultQuota,")")).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}},{key:"requestChangeQuota",value:function(e,t){var n=QE();n.width="400px",n.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(sH,n)}},{key:"applyFilter",value:function(e){this.filteredVos=this.vos.filter(function(t){return t.name.toLowerCase().includes(e.toLowerCase())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(lL),Ja(ap),Ja(np),Ja(op),Ja($f),Ja(YE))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-settings-data-quotas"]],decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[2,"color","gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"perun-web-apps-immediate-filter",1),cs("filter",function(e){return t.applyFilter(e)}),_c(5,"translate"),_c(6,"customTranslate"),es(),$a(7,"mat-accordion"),Xa(8,gH,5,1,"mat-expansion-panel",2),es()),2&e&&(yo(1),js(bc(2,3,bc(3,5,"DATA_QUOTAS.TITLE"))),yo(3),Qa("placeholder",bc(5,7,bc(6,9,"DATA_QUOTAS.FILTER"))),yo(4),Qa("ngForOf",t.filteredVos))},directives:[oB,CB,Kh,kB,TB,SB,wB,Xh,NL,pR,HM],pipes:[SE,TL],styles:[""]}),e}();function vH(e,t){1&e&&ts(0,"mat-spinner",8)}function yH(e,t){1&e&&($a(0,"app-alert",9),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function _H(e,t){if(1&e){var n=os();$a(0,"mat-expansion-panel",3),cs("opened",function(){var e=Qt(n).$implicit;return ps(4).getOptOutAttribute(e)}),$a(1,"mat-expansion-panel-header"),$a(2,"mat-panel-title"),qs(3),es(),es(),$a(4,"div",10),$a(5,"p"),qs(6),_c(7,"translate"),_c(8,"customTranslate"),es(),$a(9,"mat-checkbox",11),cs("change",function(){return Qt(n),ps(4).setOptOut()}),es(),es(),es()}if(2&e){var i=t.$implicit,r=ps(4);yo(3),Ys(" ",i.name," "),yo(3),js(bc(7,3,bc(8,5,"OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))),yo(3),Qa("checked",r.optOutAttribute&&null!==r.optOutAttribute.value)}}function bH(e,t){if(1&e&&($a(0,"mat-accordion"),Xa(1,_H,10,7,"mat-expansion-panel",2),es()),2&e){var n=ps(3);yo(1),Qa("ngForOf",n.resources)}}function wH(e,t){if(1&e&&(Xa(0,vH,1,0,"mat-spinner",5),Xa(1,yH,4,5,"app-alert",6),Xa(2,bH,2,1,"mat-accordion",7)),2&e){var n=ps(2);Qa("ngIf",n.loading),yo(1),Qa("ngIf",0===n.resources.length&&!n.loading),yo(1),Qa("ngIf",n.resources.length&&!n.loading)}}function MH(e,t){if(1&e){var n=os();$a(0,"mat-expansion-panel",3),cs("opened",function(){var e=Qt(n).$implicit;return ps().getMailingLists(e)}),$a(1,"mat-expansion-panel-header"),$a(2,"mat-panel-title"),qs(3),es(),es(),Xa(4,wH,3,3,"ng-template",4),es()}if(2&e){var i=t.$implicit;yo(3),Ys(" ",i.name," ")}}var AH=function(){var e=function(){function e(t,n,i,r,o){_(this,e),this.store=t,this.usersManagerService=n,this.membersService=i,this.resourcesManagerService=r,this.attributesManagerService=o,this.vos=[],this.resources=[],this.mailingLists=[],this.optOuts=[],this.filteredVos=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(function(t){e.vos=t,e.filteredVos=t})}},{key:"getMailingLists",value:function(e){var t=this;this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(function(e){t.resourcesManagerService.getAssignedRichResourcesWithMember(e.id).subscribe(function(n){var i=n.length;i||(t.loading=!1),n.forEach(function(n){t.attributesManagerService.getRequiredAttributesMemberResource(e.id,n.id).subscribe(function(r){t.attributesManagerService.getResourceAttributeByName(n.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(function(o){i--;var a=r.find(function(e){return"optOutMailingList"===e.friendlyName});!a||o&&"true"===o.value||(t.optOuts.push({resource:n.id,member:e.id,attribute:a}),t.resources.push(n)),t.loading=0!==i})})})})})}},{key:"getOptOutAttribute",value:function(e){this.index=this.resources.indexOf(e),this.optOutAttribute=this.optOuts[this.index].attribute}},{key:"setOptOut",value:function(){this.optOuts[this.index].attribute.value=this.optOutAttribute.value?null:"true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(function(){console.log("done")})}},{key:"applyFilter",value:function(e){this.filteredVos=this.vos.filter(function(t){return t.name.toLowerCase().includes(e.toLowerCase())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(lL),Ja(ap),Ja(np),Ja(op),Ja($f))},e.\u0275cmp=ct({type:e,selectors:[["perun-web-apps-settings-mailing-lists"]],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,"row"],[1,"ml-3",3,"checked","change"]],template:function(e,t){1&e&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"perun-web-apps-immediate-filter",1),cs("filter",function(e){return t.applyFilter(e)}),_c(5,"translate"),_c(6,"customTranslate"),es(),$a(7,"mat-accordion"),Xa(8,MH,5,1,"mat-expansion-panel",2),es()),2&e&&(yo(1),js(bc(2,3,bc(3,5,"OPT_OUT_MAILING_LISTS.TITLE"))),yo(3),Qa("placeholder",bc(5,7,bc(6,9,"OPT_OUT_MAILING_LISTS.FILTER"))),yo(4),Qa("ngForOf",t.filteredVos))},directives:[oB,CB,Kh,kB,TB,SB,wB,Xh,NL,pR,qD],pipes:[SE,TL],styles:[""]}),e}();function kH(e,t){1&e&&ts(0,"mat-spinner",4)}function TH(e,t){1&e&&ts(0,"th",17)}function SH(e,t){if(1&e&&($a(0,"td",18),qs(1),es()),2&e){var n=t.$implicit;yo(1),Ys(" ",n," ")}}function CH(e,t){1&e&&ts(0,"tr",19)}function EH(e,t){1&e&&ts(0,"tr",20)}function LH(e,t){if(1&e&&($a(0,"table",11),ns(1,12),Xa(2,TH,1,0,"th",13),Xa(3,SH,2,1,"td",14),is(),Xa(4,CH,1,0,"tr",15),Xa(5,EH,1,0,"tr",16),es()),2&e){var n=ps(2);Qa("dataSource",n.dataSource),yo(4),Qa("matHeaderRowDef",n.displayedColumns),yo(1),Qa("matRowDefColumns",n.displayedColumns)}}function zH(e,t){if(1&e){var n=os();$a(0,"div",1),$a(1,"div",5),$a(2,"p"),qs(3),es(),$a(4,"div",6),qs(5),_c(6,"translate"),_c(7,"customTranslate"),es(),Xa(8,LH,6,3,"table",7),es(),$a(9,"div",8),$a(10,"button",9),cs("click",function(){return Qt(n),ps().onCancel()}),qs(11),_c(12,"translate"),_c(13,"customTranslate"),es(),$a(14,"button",10),cs("click",function(){return Qt(n),ps().onSubmit()}),qs(15),_c(16,"translate"),_c(17,"customTranslate"),es(),es(),es()}if(2&e){var i=ps();yo(3),Ys(" ",i.description," "),yo(2),Ys(" ",bc(6,5,bc(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),yo(3),Qa("ngIf",i.dataSource.data.length),yo(3),Ys(" ",bc(12,9,bc(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),yo(4),Ys(" ",bc(16,13,bc(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}var RH=function(){var e=function(){function e(t,n,i){_(this,e),this.dialogRef=t,this.data=n,this.attributesManagerService=i,this.displayedColumns=["name"]}return w(e,[{key:"ngOnInit",value:function(){this.dataSource=new Gz(this.data.values),this.description=this.data.description,this.title=this.data.title}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{var t=this.data.attribute.value?this.data.attribute.value:[];void 0!==this.data.valueIndex?t.splice(this.data.valueIndex,1):t=t.filter(function(t){return!e.data.values.find(function(e){return e===t})}),this.data.attribute.value=t}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(function(){e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE),Ja(BE),Ja($f))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),es(),$a(2,"div",1),Xa(3,kH,1,0,"mat-spinner",2),es(),Xa(4,zH,18,17,"div",3)),2&e&&(yo(1),js(t.title),yo(2),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading))},directives:[UE,Xh,NL,KE,VE,HM,Bz,qz,Hz,Fz,Wz,Uz,jz,Yz,Kz,Vz],pipes:[SE,TL],styles:[""]}),e}();function OH(e,t){1&e&&($a(0,"app-alert",5),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es()),2&e&&(yo(1),js(bc(2,1,bc(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function xH(e,t){if(1&e){var n=os();$a(0,"mat-option",11),cs("click",function(){return Qt(n),ps(3).changeValue()}),qs(1),es()}if(2&e){var i=t.$implicit;Qa("value",i),yo(1),js(i)}}function DH(e,t){if(1&e){var n=os();$a(0,"mat-list-item"),$a(1,"mat-form-field",7),$a(2,"mat-select",8),cs("valueChange",function(e){var t=Qt(n).index;return ps(2).shells[t]=e}),Xa(3,xH,2,2,"mat-option",9),es(),es(),$a(4,"button",10),cs("click",function(){var e=Qt(n).index;return ps(2).removeShell(e)}),qs(5),_c(6,"translate"),_c(7,"customTranslate"),es(),es()}if(2&e){var i=t.index,r=ps(2);yo(2),Qa("value",r.shells[i]),yo(1),Qa("ngForOf",r.defaultShells),yo(2),js(bc(6,3,bc(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON")))}}function PH(e,t){if(1&e&&($a(0,"mat-list"),Xa(1,DH,8,7,"mat-list-item",6),es()),2&e){var n=ps();yo(1),Qa("ngForOf",n.shells)}}var NH=function(){var e=function(){function e(t,n,i,r){var o=this;_(this,e),this.store=t,this.attributesManagerService=n,this.dialog=i,this.translateService=r,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],r.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(function(e){return o.removeDialogDescription=e}),r.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(function(e){return o.removeDialogTitle=e})}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(function(){e.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(function(t){return e.removeDialogDescription=t}),e.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(function(t){return e.removeDialogTitle=t})}),this.getAttribute()}},{key:"addShell",value:function(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(function(){console.log("done")})}},{key:"removeShell",value:function(e){var t=this,n=QE();n.width="600px",n.data={valueIndex:e,values:[this.shells[e]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(RH,n).afterClosed().subscribe(function(e){e&&t.getAttribute()})}},{key:"getAttribute",value:function(){var e=this;this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(function(t){e.prefShellsAttribute=t,e.shells=e.prefShellsAttribute.value?e.prefShellsAttribute.value:[],e.loading=!1})}},{key:"changeValue",value:function(){var e=this;this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(function(){e.getAttribute()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(lL),Ja($f),Ja(YE),Ja(TE))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"app-alert",1),qs(5),_c(6,"translate"),_c(7,"customTranslate"),es(),$a(8,"button",2),cs("click",function(){return t.addShell()}),qs(9),_c(10,"translate"),_c(11,"customTranslate"),es(),Xa(12,OH,4,5,"app-alert",3),Xa(13,PH,2,1,"mat-list",4)),2&e&&(yo(1),js(bc(2,5,bc(3,7,"PREFERRED_SHELLS.TITLE"))),yo(4),Ys(" ",bc(6,9,bc(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),yo(4),js(bc(10,13,bc(11,15,"PREFERRED_SHELLS.NEW_BUTTON"))),yo(3),Qa("ngIf",!t.loading&&0===t.shells.length),yo(1),Qa("ngIf",!t.loading))},directives:[pR,HM,Xh,Ix,Kh,Hx,tT,US,RM],pipes:[SE,TL],styles:[""]}),e}();function IH(e,t){1&e&&ts(0,"mat-spinner",4)}function BH(e,t){if(1&e){var n=os();$a(0,"div"),$a(1,"div",5),$a(2,"mat-form-field",6),$a(3,"label",6),ts(4,"input",7),es(),es(),es(),$a(5,"div",8),$a(6,"button",9),cs("click",function(){return Qt(n),ps().onCancel()}),qs(7),_c(8,"translate"),_c(9,"customTranslate"),es(),$a(10,"button",10),cs("click",function(){return Qt(n),ps().onSubmit()}),qs(11),_c(12,"translate"),_c(13,"customTranslate"),es(),es(),es()}if(2&e){var i=ps();yo(4),Qa("formControl",i.inputControl),yo(3),Ys(" ",bc(8,4,bc(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),yo(3),Qa("disabled",!i.inputControl.valid||i.groups.includes(i.inputControl.value)),yo(1),Ys(" ",bc(12,8,bc(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}var FH=function(){var e=function(){function e(t,n,i){_(this,e),this.dialogRef=t,this.data=n,this.attributesManagerService=i,this.groups=[]}return w(e,[{key:"ngOnInit",value:function(){this.inputControl=new nS(null,mT.required),this.groups=this.data.groups}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.data.userId,"urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:".concat(this.data.namespace)).subscribe(function(t){var n=t.value?t.value:[];n.push(e.inputControl.value),t.value=n,e.attributesManagerService.setUserAttribute({user:e.data.userId,attribute:t}).subscribe(function(){e.loading=!1,e.dialogRef.close(!0)})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ja(PE),Ja(BE),Ja($f))},e.\u0275cmp=ct({type:e,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&&($a(0,"h1",0),qs(1),_c(2,"translate"),_c(3,"customTranslate"),es(),$a(4,"div",1),Xa(5,IH,1,0,"mat-spinner",2),Xa(6,BH,14,12,"div",3),es()),2&e&&(yo(1),js(bc(2,3,bc(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),yo(4),Qa("ngIf",t.loading),yo(1),Qa("ngIf",!t.loading))},directives:[UE,Xh,NL,KE,tT,KL,lT,wS,PT,vS,VE,HM],pipes:[SE,TL],styles:[""]}),e}();function HH(e,t){if(1&e){var n=os();$a(0,"div",2),$a(1,"h4"),qs(2),es(),$a(3,"button",3),cs("click",function(){var e=Qt(n).$implicit;return ps().addGroupName(e)}),qs(4),_c(5,"translate"),_c(6,"customTranslate"),es(),$a(7,"button",4),cs("click",function(){var e=Qt(n),t=e.$implicit,i=e.index;return ps().removeGroupName(t,i)}),qs(8),_c(9,"translate"),es(),ts(10,"perun-web-apps-string-list",5),es()}if(2&e){var i=t.$implicit,r=t.index,o=ps();yo(2),js(i),yo(2),js(bc(5,8,bc(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))),yo(3),Qa("disabled",0===o.selectionList[r].selected.length),yo(1),js(bc(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")),yo(2),Qa("values",o.groupNames.get(i))("selection",o.selectionList[r])("alertText",o.alertText)("headerColumnText",o.headerColumnText)}}var qH=function(){var e=function(){function e(t,n,i,r){var o=this;_(this,e),this.store=t,this.attributesManagerService=n,this.dialog=i,this.translateService=r,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],r.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(function(e){return o.removeDialogDescription=e}),r.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(function(e){return o.removeDialogTitle=e}),r.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(function(e){return o.alertText=e}),r.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(function(e){return o.headerColumnText=e})}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.namespaces=this.store.get("preferred_unix_group_names"),this.translateService.onLangChange.subscribe(function(){e.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(function(t){return e.removeDialogDescription=t}),e.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(function(t){return e.removeDialogTitle=t}),e.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(function(t){return e.alertText=t}),e.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(function(t){return e.headerColumnText=t})}),this.initSelection(),this.namespaces.forEach(function(t){e.getAttribute(t)})}},{key:"initSelection",value:function(){for(var e=0;e=5120,this.newImage=t.result}},{key:"onAdd",value:function(){var e=this;this.attribute.value=this.newImage,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe(function(){e.dialogRef.close(!0)})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"generateImg",value:function(){function e(e,t,n,i){i.beginPath(),i.rect(20*e,20*t,20,20),i.fillStyle="rgb("+n.join(",")+")",i.fill()}this.newImage=function(){for(var t=function(){var e=document.createElement("canvas");e.width=100,e.height=100;var t=e.getContext("2d");return t.beginPath(),t.rect(0,0,100,100),t.fillStyle="#FFFFFF",t.fill(),e}(),n=t.getContext("2d"),i=function(){for(var e=[],t=0;t<3;t++){var n=Math.floor(256*Math.random()),i=Math.max(120,n),r=Math.min(200,i);e.push(r)}return e}(),r=0;r1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";_(this,e),this.http=t,this.prefix=n,this.suffix=i}return w(e,[{key:"getTranslation",value:function(e){return this.http.get("".concat(this.prefix).concat(e).concat(this.suffix))}}]),e}(),Tj=function(){var e=function(){function e(t,n){_(this,e),this.http=t,this.storeService=n}return w(e,[{key:"initializeColors",value:function(e,t){var n=this;return new Promise(function(i){t.forEach(function(e){var t=n.storeService.get("theme",e.configValue);document.documentElement.style.setProperty(e.cssVariable,t)}),e.forEach(function(e){var t=n.storeService.get("theme",e.configValue);document.documentElement.style.setProperty(e.cssVariable,t),n.setEntityTheme(e.entity,t)}),i()})}},{key:"setEntityTheme",value:function(e,t){for(var n,i=0,r=(n=t,[Sj(tinycolor(n).lighten(52),"50"),Sj(tinycolor(n).lighten(37),"100"),Sj(tinycolor(n).lighten(26),"200"),Sj(tinycolor(n).lighten(12),"300"),Sj(tinycolor(n).lighten(6),"400"),Sj(tinycolor(n),"500"),Sj(tinycolor(n).darken(6),"600"),Sj(tinycolor(n).darken(12),"700"),Sj(tinycolor(n).darken(18),"800"),Sj(tinycolor(n).darken(24),"900"),Sj(tinycolor(n).lighten(50).saturate(30),"A100"),Sj(tinycolor(n).lighten(30).saturate(30),"A200"),Sj(tinycolor(n).lighten(10).saturate(15),"A400"),Sj(tinycolor(n).lighten(5).saturate(5),"A700")]);i1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:e,providers:t.serverLoaded?[{provide:sO,useValue:Object.assign(Object.assign({},aO),t)},{provide:cO,useValue:n,multi:!0},{provide:uO,useValue:!0}]:[{provide:sO,useValue:Object.assign(Object.assign({},aO),t)},{provide:cO,useValue:n,multi:!0}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ei(uO),Ei(Qc))},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[oH,KO,Ej],oH,KO,Ej]}),e}(),zj=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[Uw],Uw]}),e}(),Rj=new hi("perun-api-service"),Oj=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({}),e}(),xj=function(){var e=function e(){_(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=xe({imports:[[Oj,bM,Uw,Ry],Oj,Uw]}),e}(),Dj={provide:Bf,useExisting:Te(function(){return vL}),multi:!0};function Pj(e){return new kj(e,"./assets/i18n/",".json")}function Nj(e){var t={basePath:e.get("api_url")};return new Zf(t)}var Ij=function(e){return function(){return e.initialize()}},Bj=function(){var e=function e(t,n){_(this,e),this.customIconService=t,this.translate=n,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()};return e.\u0275fac=function(t){return new(t||e)(Ei(pL),Ei(TE))},e.\u0275mod=ft({type:e,bootstrap:[MD]}),e.\u0275inj=xe({providers:[pL,{provide:Uc,useFactory:Ij,multi:!0,deps:[Cj]},{provide:Zf,useFactory:Nj,deps:[lL]},kL,vL,Dj,{provide:Rj,useClass:_L}],imports:[[Gd,Iw,Gf,CE.forRoot({loader:{provide:sE,useFactory:Pj,deps:[Nf]}}),Aj,aE,Tx,qx,Yv,qM,Lj,eO,Nq,Cq,EB,nT,KS,XE,Xz,VL,kS,YD,MC,IL,VN,zj,uR,AL,OI,bM,cC,xj,xR,AS,wj,EE,WC]]}),e}();(function(){if(kl)throw new Error("Cannot enable prod mode after platform setup.");Al=!1})(),Vd().bootstrapModule(Bj).catch(function(e){return console.error(e)})},2051:function(e,t){var n,i;void 0===(i="function"==typeof(n=function(){"use strict";function t(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){a(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}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,o=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,o,a){var s=r.URL||r.webkitURL,u=document.createElement("a");u.download=o=o||e.name||"download",u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?i(u):n(u.href)?t(e,o,a):i(u,u.target="_blank")):(u.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(u.href)},4e4),setTimeout(function(){i(u)},0))}:"msSaveOrOpenBlob"in navigator?function(e,r,o){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),r);else if(n(e))t(e,r,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout(function(){i(a)})}}:function(e,n,i,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,i);var s="application/octet-stream"===e.type,u=/constructor/i.test(r.HTMLElement)||r.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&u||o)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},l.readAsDataURL(e)}else{var h=r.URL||r.webkitURL,d=h.createObjectURL(e);a?a.location=d:location.href=d,a=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});r.saveAs=a.saveAs=a,e.exports=a})?n.apply(t,[]):n)||(e.exports=i)},9355:function(e,t,n){(e.exports=n(2021)).tz.load(n(4360))},2021:function(e,t,n){var i,r,o;!function(a,s){"use strict";e.exports?e.exports=s(n(9609)):(r=[n(9609)],void 0===(o="function"==typeof(i=s)?i.apply(t,r):i)||(e.exports=o))}(0,function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n={},i={},r={},o={},a={};e&&"string"==typeof e.version||E("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var s=e.version.split("."),u=+s[0],c=+s[1];function l(e){return e>96?e-87:e>64?e-29:e-48}function h(e){var t=0,n=e.split("."),i=n[0],r=n[1]||"",o=1,a=0,s=1;for(45===e.charCodeAt(0)&&(t=1,s=-1);t= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),g.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,n=+e,i=this.untils;for(t=0;ti&&L.moveInvalidForward&&(t=i),o3){var t=o[A(e)];if(t)return t;E("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(l){}var n,i,r,a=function(){var e,t,n,i=(new Date).getFullYear()-2,r=new v(new Date(i,0,1)),o=[r];for(n=1;n<48;n++)(t=new v(new Date(i,n,1))).offset!==r.offset&&(e=_(r,t),o.push(e),o.push(new v(new Date(e.at+6e4)))),r=t;for(n=0;n<4;n++)o.push(new v(new Date(i+n,0,1))),o.push(new v(new Date(i+n,6,1)));return o}(),s=a.length,u=M(a),c=[];for(i=0;i0?c[0].zone.name:void 0}()),t},L.names=function(){var e,t=[];for(e in o)o.hasOwnProperty(e)&&(n[e]||n[i[e]])&&o[e]&&t.push(o[e]);return t.sort()},L.Zone=g,L.unpack=p,L.unpackBase60=h,L.needsOffset=C,L.moveInvalidForward=!0,L.moveAmbiguousForward=!1,L.countries=function(){return Object.keys(r)},L.zonesForCountry=function(e,t){var n;if(n=(n=e).toUpperCase(),!(e=r[n]||null))return null;var i=e.zones.sort();return t?i.map(function(e){return{name:e,offset:T(e).utcOffset(new Date)}}):i};var z,R=e.fn;function O(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function x(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=L,e.defaultZone=null,e.updateOffset=function(t,n){var i,r=e.defaultZone;if(void 0===t._z&&(r&&C(t)&&!t._isUTC&&(t._d=e.utc(t._a)._d,t.utc().add(r.parse(t),"minutes")),t._z=r),t._z)if(i=t._z.utcOffset(t),Math.abs(i)<16&&(i/=60),void 0!==t.utcOffset){var o=t._z;t.utcOffset(-i,n),t._z=o}else t.zone(i,n)},R.tz=function(t,n){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=T(t),this._z?e.updateOffset(this,n):E("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},R.zoneName=O(R.zoneName),R.zoneAbbr=O(R.zoneAbbr),R.utc=x(R.utc),R.local=x(R.local),R.utcOffset=(z=R.utcOffset,function(){return arguments.length>0&&(this._z=null),z.apply(this,arguments)}),e.tz.setDefault=function(t){return(u<2||2===u&&c<9)&&E("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?T(t):null,e};var D=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(D)?(D.push("_z"),D.push("_a")):D&&(D._z=null),e})},776:function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"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}})}(n(9609))},2758:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{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:"\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:"\u0623\u062d_\u0625\u062b_\u062b\u0644\u0627_\u0623\u0631_\u062e\u0645_\u062c\u0645_\u0633\u0628".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:4}})}(n(9609))},4980:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},9602:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={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"]},r=function(e){return function(t,r,o,a){var s=n(t),u=i[e][n(t)];return 2===s&&(u=u[r?0:1]),u.replace(/%d/i,t)}},o=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<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:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(9609))},2500:function(e,t,n){!function(e){"use strict";e.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\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:6,doy:12}})}(n(9609))},6909:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.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(e){return"\u0645"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(n(9609))},2735:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},7634:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},o=function(e){return function(t,n,o,a){var s=i(t),u=r[e][i(t)];return 2===s&&(u=u[n?0:1]),u.replace(/%d/i,t)}},a=["\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"];e.defineLocale("ar",{months:a,monthsShort:a,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(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(9609))},7798:function(e,t,n){!function(e){"use strict";var t={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"};e.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:"birne\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(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gec\u0259":e<12?"s\u0259h\u0259r":e<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){if(0===e)return e+"-\u0131nc\u0131";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(9609))},9949:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===n?t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":e+" "+(i=+e,r={ss:t?"\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:t?"\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:t?"\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"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}e.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:t,mm:t,h:t,hh:t,d:"\u0434\u0437\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u044b":e<12?"\u0440\u0430\u043d\u0456\u0446\u044b":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-\u044b":e+"-\u0456";case"D":return e+"-\u0433\u0430";default:return e}},week:{dow:1,doy:7}})}(n(9609))},4590:function(e,t,n){!function(e){"use strict";e.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\u0440_\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"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043c\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\u043d\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n(9609))},5938:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},595:function(e,t,n){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09c0_\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_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2_\u0986\u0997_\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_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\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(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t&&e>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===t&&e<5||"\u09ac\u09bf\u0995\u09be\u09b2"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u09b0\u09be\u09a4":e<10?"\u09b8\u0995\u09be\u09b2":e<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n(9609))},4756:function(e,t,n){!function(e){"use strict";var t={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},n={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.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\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("_"),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\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("_"),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(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},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(e,t){return 12===e&&(e=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===t&&e>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===t&&e<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":e<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":e<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":e<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(n(9609))},7277:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){return e>9?n(e%10):e}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"a\xf1":"vet")},week:{dow:1,doy:4}})}(n(9609))},4166:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.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:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},3943:function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(9609))},3474:function(e,t,n){!function(e){"use strict";var t="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),n="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),i=[/^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],r=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function o(e){return e>1&&e<5&&1!=~~(e/10)}function a(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return t||i?r+(o(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?r+(o(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(o(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?r+(o(e)?"dny":"dn\xed"):r+"dny";case"M":return t||i?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return t||i?r+(o(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):r+"m\u011bs\xedci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?r+(o(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},2218:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},1061:function(e,t,n){!function(e){"use strict";e.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 t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(9609))},2743:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},8580:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},3264:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},1899:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},8784:function(e,t,n){!function(e){"use strict";var t=["\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"],n=["\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"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,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(e){return"\u0789\u078a"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(n(9609))},4654:function(e,t,n){!function(e){"use strict";e.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(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.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(e,t,n){return e>11?n?"\u03bc\u03bc":"\u039c\u039c":n?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(e){return"\u03bc"===(e+"").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(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,i=this._calendarEl[e],r=t&&t.hours();return((n=i)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(i=i.apply(t)),i.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}})}(n(9609))},4047:function(e,t,n){!function(e){"use strict";e.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},6277:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},6896:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(9609))},1609:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},4557:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},5836:function(e,t,n){!function(e){"use strict";e.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",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(9609))},3586:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},2777:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_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:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(9609))},3128:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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",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}})}(n(9609))},3256:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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",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}})}(n(9609))},3357:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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",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}})}(n(9609))},2654:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[e+" minuti",e+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[e+" tunni",e+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[e+" kuu",e+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}e.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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d p\xe4eva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},7287:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},3875:function(e,t,n){!function(e){"use strict";var t={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},n={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.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(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,n){return e<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:"\u062b\u0627\u0646\u06cc\u0647 d%",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(e){return e.replace(/[\u06f0-\u06f9]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(n(9609))},3431:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),n=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",t[7],t[8],t[9]];function i(e,i,r,o){var a="";switch(r){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"ss":return o?"sekunnin":"sekuntia";case"m":return o?"minuutin":"minuutti";case"mm":a=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":a=o?"tunnin":"tuntia";break;case"d":return o?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":a=o?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return o?"kuukauden":"kuukausi";case"MM":a=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":a=o?"vuoden":"vuotta"}return function(e,i){return e<10?i?n[e]:t[e]:e}(e,o)+" "+a}e.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: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:4}})}(n(9609))},1781:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},1539:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(9609))},9847:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(9609))},1717:function(e,t,n){!function(e){"use strict";e.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("_"),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|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":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}})}(n(9609))},2250:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},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(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(9609))},7665:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","M\xe9itheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deaireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean\xe1","Feab","M\xe1rt","Aibr","Beal","M\xe9it","I\xfail","L\xfana","Me\xe1n","Deai","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 Satharn"],weekdaysShort:["Dom","Lua","M\xe1i","C\xe9a","D\xe9a","hAo","Sat"],weekdaysMin:["Do","Lu","M\xe1","Ce","D\xe9","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:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 aig] 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\xed",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(9609))},5214:function(e,t,n){!function(e){"use strict";e.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(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(9609))},6154:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},8518:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?r[n][0]:r[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_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[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n(9609))},9221:function(e,t,n){!function(e){"use strict";var t={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},n={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.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\u0ac7\u0ab9\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(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0ab0\u0abe\u0aa4"===t?e<4?e:e+12:"\u0ab8\u0ab5\u0abe\u0ab0"===t?e:"\u0aac\u0aaa\u0acb\u0ab0"===t?e>=10?e:e+12:"\u0ab8\u0abe\u0a82\u0a9c"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0ab0\u0abe\u0aa4":e<10?"\u0ab8\u0ab5\u0abe\u0ab0":e<17?"\u0aac\u0aaa\u0acb\u0ab0":e<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(n(9609))},4743:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(e){return 2===e?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":e+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(e){return 2===e?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":e+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(e){return 2===e?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":e+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(e){return 2===e?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":e%10==0&&10!==e?e+" \u05e9\u05e0\u05d4":e+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(e){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e)},meridiem:function(e,t,n){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?n?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?n?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(n(9609))},7339:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("hi",{months:"\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("_"),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("_"),monthsParseExact:!0,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"},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(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924"===t?e<4?e:e+12:"\u0938\u0941\u092c\u0939"===t?e:"\u0926\u094b\u092a\u0939\u0930"===t?e>=10?e:e+12:"\u0936\u093e\u092e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924":e<10?"\u0938\u0941\u092c\u0939":e<17?"\u0926\u094b\u092a\u0939\u0930":e<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(n(9609))},3224:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.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:"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:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},856:function(e,t,n){!function(e){"use strict";var t="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function n(e,t,n,i){var r=e;switch(n){case"s":return i||t?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return r+(i||t)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return r+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" \xf3ra":" \xf3r\xe1ja");case"hh":return r+(i||t?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return r+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" h\xf3nap":" h\xf3napja");case"MM":return r+(i||t?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(i||t?" \xe9v":" \xe9ve");case"yy":return r+(i||t?" \xe9v":" \xe9ve")}return""}function i(e){return(e?"":"[m\xfalt] ")+"["+t[this.day()]+"] LT[-kor]"}e.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("_"),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(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},6855:function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(e){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e)},meridiem:function(e){return e<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":e<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":e<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-\u056b\u0576":e+"-\u0580\u0564";default:return e}},week:{dow:1,doy:7}})}(n(9609))},2190:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){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:1,doy:7}})}(n(9609))},3887:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,i,r){var o=e+" ";switch(i){case"s":return n||r?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return t(e)?o+(n||r?"sek\xfandur":"sek\xfandum"):o+"sek\xfanda";case"m":return n?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return t(e)?o+(n||r?"m\xedn\xfatur":"m\xedn\xfatum"):n?o+"m\xedn\xfata":o+"m\xedn\xfatu";case"hh":return t(e)?o+(n||r?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?o+"dagar":o+(r?"daga":"d\xf6gum"):n?o+"dagur":o+(r?"dag":"degi");case"M":return n?"m\xe1nu\xf0ur":r?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return t(e)?n?o+"m\xe1nu\xf0ir":o+(r?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):n?o+"m\xe1nu\xf0ur":o+(r?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return n||r?"\xe1r":"\xe1ri";case"yy":return t(e)?o+(n||r?"\xe1r":"\xe1rum"):o+(n||r?"\xe1r":"\xe1ri")}}e.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:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},5890:function(e,t,n){!function(e){"use strict";e.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(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[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}})}(n(9609))},9270:function(e,t,n){!function(e){"use strict";e.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:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[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}})}(n(9609))},6595:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{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:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"\u5348\u5f8c"===e},meridiem:function(e,t,n){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){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}})}(n(9609))},7477:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"\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("_"),format:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".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:"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:"[\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/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(e)?e.replace(/\u10d8$/,"\u10e8\u10d8"):e+"\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"):void 0},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}})}(n(9609))},3978:function(e,t,n){!function(e){"use strict";var t={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"};e.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(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(9609))},9205:function(e,t,n){!function(e){"use strict";var t={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},n={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.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(e){return"\u179b\u17d2\u1784\u17b6\u1785"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(9609))},25:function(e,t,n){!function(e){"use strict";var t={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},n={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.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(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},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(e,t){return 12===e&&(e=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===t?e<4?e:e+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===t?e:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===t?e>=10?e:e+12:"\u0cb8\u0c82\u0c9c\u0cc6"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":e<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":e<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":e<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(n(9609))},427:function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\uc77c";case"M":return e+"\uc6d4";case"w":case"W":return e+"\uc8fc";default:return e}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(e){return"\uc624\ud6c4"===e},meridiem:function(e,t,n){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(n(9609))},9089:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=["\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"];e.defineLocale("ku",{months:i,monthsShort:i,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(e){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e)},meridiem:function(e,t,n){return e<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(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(9609))},9314:function(e,t,n){!function(e){"use strict";var t={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"};e.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(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(9609))},3136:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={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 t?r[n][0]:r[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.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){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d M\xe9int",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},9115:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(e){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===e},meridiem:function(e,t,n){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}})}(n(9609))},7087:function(e,t,n){!function(e){"use strict";var t={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 n(e,t,n,i){return t?r(n)[0]:i?r(n)[1]:r(n)[2]}function i(e){return e%10==0||e>10&&e<20}function r(e){return t[e].split("_")}function o(e,t,o,a){var s=e+" ";return 1===e?s+n(0,t,o[0],a):t?s+(i(e)?r(o)[1]:r(o)[0]):a?s+r(o)[1]:s+(i(e)?r(o)[1]:r(o)[2])}e.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,t,n,i){return t?"kelios sekund\u0117s":i?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:o,m:n,mm:o,h:n,hh:o,d:n,dd:o,M:n,MM:o,y:n,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(9609))},5683:function(e,t,n){!function(e){"use strict";var t={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 n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,i,r){return e+" "+n(t[r],e,i)}function r(e,i,r){return n(t[r],e,i)}e.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(e,t){return t?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},9454:function(e,t,n){!function(e){"use strict";var t={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(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},5507:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},8466:function(e,t,n){!function(e){"use strict";e.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:"\u043f\u043e\u0441\u043b\u0435 %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:"\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",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n(9609))},2933:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===t&&e>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===t||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===t?e+12:e},meridiem:function(e,t,n){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"}})}(n(9609))},9477:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){switch(n){case"s":return t?"\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 e+(t?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return e+(t?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return e+(t?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return e+(t?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return e+(t?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return e+(t?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return e}}e.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(e){return"\u04ae\u0425"===e},meridiem:function(e,t,n){return e<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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" \u04e9\u0434\u04e9\u0440";default:return e}}})}(n(9609))},3597:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function i(e,t,n,i){var r="";if(t)switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":r="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":r="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":r="%d \u0924\u093e\u0938";break;case"d":r="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":r="%d \u0926\u093f\u0935\u0938";break;case"M":r="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":r="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u0947"}else switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":r="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":r="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":r="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":r="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":r="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":r="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":r="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return r.replace(/%d/i,e)}e.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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===t?e<4?e:e+12:"\u0938\u0915\u093e\u0933\u0940"===t?e:"\u0926\u0941\u092a\u093e\u0930\u0940"===t?e>=10?e:e+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924\u094d\u0930\u0940":e<10?"\u0938\u0915\u093e\u0933\u0940":e<17?"\u0926\u0941\u092a\u093e\u0930\u0940":e<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(n(9609))},9965:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){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}})}(n(9609))},5529:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){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}})}(n(9609))},259:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},8061:function(e,t,n){!function(e){"use strict";var t={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},n={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.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(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(9609))},2618:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_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",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}})}(n(9609))},8452:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.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(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u093f"===t?e<4?e:e+12:"\u092c\u093f\u0939\u093e\u0928"===t?e:"\u0926\u093f\u0909\u0901\u0938\u094b"===t?e>=10?e:e+12:"\u0938\u093e\u0901\u091d"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"\u0930\u093e\u0924\u093f":e<12?"\u092c\u093f\u0939\u093e\u0928":e<16?"\u0926\u093f\u0909\u0901\u0938\u094b":e<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}})}(n(9609))},413:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^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],r=/^(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;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(9609))},1885:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^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],r=/^(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;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(9609))},5107:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_m\xe5n_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_m\xe5_ty_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 [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",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}})}(n(9609))},702:function(e,t,n){!function(e){"use strict";var t={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},n={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.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(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0a30\u0a3e\u0a24"===t?e<4?e:e+12:"\u0a38\u0a35\u0a47\u0a30"===t?e:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===t?e>=10?e:e+12:"\u0a38\u0a3c\u0a3e\u0a2e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0a30\u0a3e\u0a24":e<10?"\u0a38\u0a35\u0a47\u0a30":e<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":e<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(n(9609))},1711:function(e,t,n){!function(e){"use strict";var t="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function r(e,t,n){var r=e+" ";switch(n){case"ss":return r+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return r+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return r+(i(e)?"godziny":"godzin");case"MM":return r+(i(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return r+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return e?""===i?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(i)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),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:r,m:r,mm:r,h:r,hh:r,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},8238:function(e,t,n){!function(e){"use strict";e.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"})}(n(9609))},594:function(e,t,n){!function(e){"use strict";e.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",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}})}(n(9609))},4681:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._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:t,m:"un minut",mm:t,h:"o or\u0103",hh:t,d:"o zi",dd:t,M:"o lun\u0103",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(9609))},6201:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":e+" "+(i=+e,r={ss:t?"\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:t?"\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",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}var n=[/^\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];e.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:n,longMonthsParse:n,shortMonthsParse:n,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(e){if(e.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(e){if(e.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:t,m:t,mm:t,h:"\u0447\u0430\u0441",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-\u0439";case"D":return e+"-\u0433\u043e";case"w":case"W":return e+"-\u044f";default:return e}},week:{dow:1,doy:4}})}(n(9609))},2912:function(e,t,n){!function(e){"use strict";var t=["\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"],n=["\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"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n(9609))},6002:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},7942:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(e){return e+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(e){return"\u0db4.\u0dc0."===e||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===e},meridiem:function(e,t,n){return e>11?n?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":n?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(n(9609))},5577:function(e,t,n){!function(e){"use strict";var t="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),n="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function r(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return t||r?o+(i(e)?"sekundy":"sek\xfand"):o+"sekundami";case"m":return t?"min\xfata":r?"min\xfatu":"min\xfatou";case"mm":return t||r?o+(i(e)?"min\xfaty":"min\xfat"):o+"min\xfatami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?o+(i(e)?"hodiny":"hod\xedn"):o+"hodinami";case"d":return t||r?"de\u0148":"d\u0148om";case"dd":return t||r?o+(i(e)?"dni":"dn\xed"):o+"d\u0148ami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?o+(i(e)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?o+(i(e)?"roky":"rokov"):o+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,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:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %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}})}(n(9609))},1775:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return r+(1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return r+(1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return r+(1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami");case"d":return t||i?"en dan":"enim dnem";case"dd":return r+(1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi");case"M":return t||i?"en mesec":"enim mesecem";case"MM":return r+(1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci");case"y":return t||i?"eno leto":"enim letom";case"yy":return r+(1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti")}}e.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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},6823:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){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}})}(n(9609))},3848:function(e,t,n){!function(e){"use strict";var t={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\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\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"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.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:"DD.MM.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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"\u0434\u0430\u043d",dd:t.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:t.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},9038:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.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:"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] [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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},6173:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(9609))},5788:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})}(n(9609))},6882:function(e,t,n){!function(e){"use strict";e.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",LTS:"HH:mm: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:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(9609))},2678:function(e,t,n){!function(e){"use strict";var t={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},n={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.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(e){return e+"\u0bb5\u0ba4\u0bc1"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},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(e,t,n){return e<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":e<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":e<10?" \u0b95\u0bbe\u0bb2\u0bc8":e<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":e<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":e<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(e,t){return 12===e&&(e=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===t?e<2?e:e+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===t||"\u0b95\u0bbe\u0bb2\u0bc8"===t||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(9609))},2797:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===t?e<4?e:e+12:"\u0c09\u0c26\u0c2f\u0c02"===t?e:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===t?e>=10?e:e+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===t?e+12:void 0},meridiem:function(e,t,n){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}})}(n(9609))},2447:function(e,t,n){!function(e){"use strict";e.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:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},1335:function(e,t,n){!function(e){"use strict";var t={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"};e.defineLocale("tg",{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:"\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:"[\u041f\u0430\u0433\u043e\u04b3 \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(e,t){return 12===e&&(e=0),"\u0448\u0430\u0431"===t?e<4?e:e+12:"\u0441\u0443\u0431\u04b3"===t?e:"\u0440\u04ef\u0437"===t?e>=11?e:e+12:"\u0431\u0435\u0433\u043e\u04b3"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0448\u0430\u0431":e<11?"\u0441\u0443\u0431\u04b3":e<16?"\u0440\u04ef\u0437":e<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(9609))},8667:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(e){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===e},meridiem:function(e,t,n){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",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(n(9609))},9914:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},1389:function(e,t,n){!function(e){"use strict";var t="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,i,r){var o=function(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),r=e%10,o="";return n>0&&(o+=t[n]+"vatlh"),i>0&&(o+=(""!==o?" ":"")+t[i]+"maH"),r>0&&(o+=(""!==o?" ":"")+t[r]),""===o?"pagh":o}(e);switch(i){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}e.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){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu\u2019":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa\u2019 tup",mm:n,h:"wa\u2019 rep",hh:n,d:"wa\u2019 jaj",dd:n,M:"wa\u2019 jar",MM:n,y:"wa\u2019 DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},3578:function(e,t,n){!function(e){"use strict";var t={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"};e.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_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".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 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",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'\u0131nc\u0131";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(9609))},6969:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[e+" m\xeduts",e+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[e+" \xfeoras",e+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i||t?r[n][0]:r[n][1]}e.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(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},690:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},6509:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},55:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===t||"\u0633\u06d5\u06be\u06d5\u0631"===t||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===t?e:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===t||"\u0643\u06d5\u0686"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":i<900?"\u0633\u06d5\u06be\u06d5\u0631":i<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":i<1230?"\u0686\u06c8\u0634":i<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return e+"-\u06be\u06d5\u067e\u062a\u06d5";default:return e}},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(n(9609))},2452:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===n?t?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":e+" "+(i=+e,r={ss:t?"\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:t?"\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:t?"\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"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}function n(e){return function(){return e+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.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(e,t){var n={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===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.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:n("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:n("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:n("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:n("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return n("[\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:t,m:t,mm:t,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:t,y:"\u0440\u0456\u043a",yy:t},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0456":e<12?"\u0440\u0430\u043d\u043a\u0443":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-\u0439";case"D":return e+"-\u0433\u043e";default:return e}},week:{dow:1,doy:7}})}(n(9609))},1151:function(e,t,n){!function(e){"use strict";var t=["\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"],n=["\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"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n(9609))},6547:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},1555:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},6541:function(e,t,n){!function(e){"use strict";e.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:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"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 r\u1ed3i 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",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}})}(n(9609))},2401:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},2341:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},619:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u5468";default:return e}},relativeTime:{future:"%s\u5185",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",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(n(9609))},7058:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\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"}})}(n(9609))},2782:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n(9609))},9609:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,i;function r(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,i=[];for(n=0;n>>0,i=0;i0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},Y={};function W(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(Y[e]=r),t&&(Y[t[0]]=function(){return F(r.apply(this,arguments),t[1],t[2])}),n&&(Y[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=K(t,e.localeData()),j[t]=j[t]||function(e){var t,n,i,r=e.match(H);for(t=0,n=r.length;t=0&&q.test(e);)e=e.replace(q,i),q.lastIndex=0,n-=1;return e}var V=/\d/,X=/\d\d/,G=/\d{3}/,J=/\d{4}/,Q=/[+-]?\d{6}/,Z=/\d\d?/,$=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,ie=/[+-]?\d{1,6}/,re=/\d+/,oe=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[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,ce={};function le(e,t,n){ce[e]=z(t)?t:function(e,i){return e&&n?n:t}}function he(e,t){return h(ce,e)?ce[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r})))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={};function pe(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=A(e)}),n=0;n68?1900:2e3)};var _e,be=we("FullYear",!0);function we(e,t){return function(n){return null!=n?(Ae(this,e,n),r.updateOffset(this,t),this):Me(this,e)}}function Me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ae(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ye(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ke(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function ke(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?ye(e)?29:28:31-n%7%2}_e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(s=new Date(e+400,t,n,i,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,r,o,a),s}function Pe(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ne(e,t,n){var i=7+t-n;return-(7+Pe(e,0,i).getUTCDay()-t)%7+i-1}function Ie(e,t,n,i,r){var o,a,s=1+7*(t-1)+(7+n-i)%7+Ne(e,i,r);return s<=0?a=ve(o=e-1)+s:s>ve(e)?(o=e+1,a=s-ve(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Be(e,t,n){var i,r,o=Ne(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?i=a+Fe(r=e.year()-1,t,n):a>Fe(e.year(),t,n)?(i=a-Fe(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Fe(e,t,n){var i=Ne(e,t,n),r=Ne(e+1,t,n);return(ve(e)-i+r)/7}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),B("week",5),B("isoWeek",5),le("w",Z),le("ww",Z,X),le("W",Z),le("WW",Z,X),ge(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=A(e)}),W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),le("d",Z),le("e",Z),le("E",Z),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),ge(["d","e","E"],function(e,t,n,i){t[i]=A(e)});var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ye="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function We(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=_e.call(this._weekdaysParse,a))?r:null:"ddd"===t?-1!==(r=_e.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=_e.call(this._minWeekdaysParse,a))?r:null:"dddd"===t?-1!==(r=_e.call(this._weekdaysParse,a))||-1!==(r=_e.call(this._shortWeekdaysParse,a))||-1!==(r=_e.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=_e.call(this._shortWeekdaysParse,a))||-1!==(r=_e.call(this._weekdaysParse,a))||-1!==(r=_e.call(this._minWeekdaysParse,a))?r:null:-1!==(r=_e.call(this._minWeekdaysParse,a))||-1!==(r=_e.call(this._weekdaysParse,a))||-1!==(r=_e.call(this._shortWeekdaysParse,a))?r:null}var Ue=ue,Ke=ue,Ve=ue;function Xe(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],u=[],c=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(i),s.push(r),u.push(o),c.push(i),c.push(r),c.push(o);for(a.sort(e),s.sort(e),u.sort(e),c.sort(e),t=0;t<7;t++)s[t]=de(s[t]),u[t]=de(u[t]),c[t]=de(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ge(){return this.hours()%12||12}function Je(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Qe(e,t){return t._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Ge),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+Ge.apply(this)+F(this.minutes(),2)}),W("hmmss",0,0,function(){return""+Ge.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),Je("a",!0),Je("A",!1),D("hour","h"),B("hour",13),le("a",Qe),le("A",Qe),le("H",Z),le("h",Z),le("k",Z),le("HH",Z,X),le("hh",Z,X),le("kk",Z,X),le("hmm",$),le("hmmss",ee),le("Hmm",$),le("Hmmss",ee),pe(["H","HH"],3),pe(["k","kk"],function(e,t,n){var i=A(e);t[3]=24===i?0:i}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[3]=A(e),p(n).bigHour=!0}),pe("hmm",function(e,t,n){var i=e.length-2;t[3]=A(e.substr(0,i)),t[4]=A(e.substr(i)),p(n).bigHour=!0}),pe("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=A(e.substr(0,i)),t[4]=A(e.substr(i,2)),t[5]=A(e.substr(r)),p(n).bigHour=!0}),pe("Hmm",function(e,t,n){var i=e.length-2;t[3]=A(e.substr(0,i)),t[4]=A(e.substr(i))}),pe("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=A(e.substr(0,i)),t[4]=A(e.substr(i,2)),t[5]=A(e.substr(r))});var Ze,$e=we("Hours",!0),et={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Se,monthsShort:Ce,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Ye,weekdaysShort:je,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function it(e){return e?e.toLowerCase().replace("_","-"):e}function rt(t){var i=null;if(!tt[t]&&e&&e.exports)try{i=Ze._abbr,n(6700)("./"+t),ot(i)}catch(r){}return tt[t]}function ot(e,t){var n;return e&&((n=s(t)?st(e):at(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function at(e,t){if(null!==t){var n,i=et;if(t.abbr=e,null!=tt[e])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])i=tt[t.parentLocale]._config;else{if(null==(n=rt(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;i=n._config}return tt[e]=new O(R(i,t)),nt[e]&&nt[e].forEach(function(e){at(e.name,e.config)}),ot(e),tt[e]}return delete tt[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!o(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,n,i,r,o=0;o0;){if(i=rt(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&k(r,n,!0)>=t-1)break;t--}o++}return Ze}(e)}function ut(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>ke(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}function ct(e,t,n){return null!=e?e:null!=t?t:n}function lt(e){var t,n,i,o,a,s=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,i,r,o,a,s,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,a=4,n=ct(t.GG,e._a[0],Be(kt(),1,4).year),i=ct(t.W,1),((r=ct(t.E,1))<1||r>7)&&(u=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var c=Be(kt(),o,a);n=ct(t.gg,e._a[0],c.year),i=ct(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(u=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(u=!0)):r=o}i<1||i>Fe(n,o,a)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(s=Ie(n,i,r,o,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ct(e._a[0],i[0]),(e._dayOfYear>ve(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Pe(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Pe:De).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}var ht=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["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}/]],gt=[["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/]],mt=/^\/?Date\((\-?\d+)/i;function vt(e){var t,n,i,r,o,a,s=e._i,u=ht.exec(s)||dt.exec(s);if(u){for(p(e).iso=!0,t=0,n=pt.length;t0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),Y[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),me(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=u-c,s.length>0&&p(e).unusedInput.push(s),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),lt(e),ut(e)}else bt(e);else vt(e)}function Mt(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new b(ut(t)):(c(t)?e._d=t:o(n)?function(e){var t,n,i,r,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis?this:e:m()});function Ct(e,t){var n,i;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return kt();for(n=t[0],i=1;i=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function $t(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function en(e,t){W(0,[e,e.length],0,t)}function tn(e,t,n,i,r){var o;return null==e?Be(this,i,r).year:(t>(o=Fe(e,i,r))&&(t=o),nn.call(this,e,t,n,i,r))}function nn(e,t,n,i,r){var o=Ie(e,t,n,i,r),a=Pe(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),en("gggg","weekYear"),en("ggggg","weekYear"),en("GGGG","isoWeekYear"),en("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),le("G",oe),le("g",oe),le("GG",Z,X),le("gg",Z,X),le("GGGG",ne,J),le("gggg",ne,J),le("GGGGG",ie,Q),le("ggggg",ie,Q),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=A(e)}),ge(["gg","GG"],function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),D("quarter","Q"),B("quarter",7),le("Q",V),pe("Q",function(e,t){t[1]=3*(A(e)-1)}),W("D",["DD",2],"Do","date"),D("date","D"),B("date",9),le("D",Z),le("DD",Z,X),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pe(["D","DD"],2),pe("Do",function(e,t){t[2]=A(e.match(Z)[0])});var rn=we("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),B("dayOfYear",4),le("DDD",te),le("DDDD",G),pe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=A(e)}),W("m",["mm",2],0,"minute"),D("minute","m"),B("minute",14),le("m",Z),le("mm",Z,X),pe(["m","mm"],4);var on=we("Minutes",!1);W("s",["ss",2],0,"second"),D("second","s"),B("second",15),le("s",Z),le("ss",Z,X),pe(["s","ss"],5);var an,sn=we("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),D("millisecond","ms"),B("millisecond",16),le("S",te,V),le("SS",te,X),le("SSS",te,G),an="SSSS";an.length<=9;an+="S")le(an,re);function un(e,t){t[6]=A(1e3*("0."+e))}for(an="S";an.length<=9;an+="S")pe(an,un);var cn=we("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var ln=b.prototype;function hn(e){return e}ln.add=Ut,ln.calendar=function(e,t){var n=e||kt(),i=Pt(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(z(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,kt(n)))},ln.clone=function(){return new b(this)},ln.diff=function(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Pt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=P(t)){case"year":o=Vt(this,i)/12;break;case"month":o=Vt(this,i);break;case"quarter":o=Vt(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:M(o)},ln.endOf=function(e){var t;if(void 0===(e=P(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?$t:Zt;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Qt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Qt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Qt(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},ln.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},ln.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||kt(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ln.fromNow=function(e){return this.from(kt(),e)},ln.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||kt(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ln.toNow=function(e){return this.to(kt(),e)},ln.get=function(e){return z(this[e=P(e)])?this[e]():this},ln.invalidAt=function(){return p(this).overflow},ln.isAfter=function(e,t){var n=w(e)?e:kt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ln.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+t+'[")]')},ln.toJSON=function(){return this.isValid()?this.toISOString():null},ln.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ln.unix=function(){return Math.floor(this.valueOf()/1e3)},ln.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ln.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ln.year=be,ln.isLeapYear=function(){return ye(this.year())},ln.weekYear=function(e){return tn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ln.isoWeekYear=function(e){return tn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ln.quarter=ln.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ln.month=ze,ln.daysInMonth=function(){return ke(this.year(),this.month())},ln.week=ln.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ln.isoWeek=ln.isoWeeks=function(e){var t=Be(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ln.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},ln.isoWeeksInYear=function(){return Fe(this.year(),1,4)},ln.date=rn,ln.day=ln.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},ln.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ln.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},ln.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ln.hour=ln.hours=$e,ln.minute=ln.minutes=on,ln.second=ln.seconds=sn,ln.millisecond=ln.milliseconds=cn,ln.utcOffset=function(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Dt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Nt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Wt(this,Ht(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Nt(this)},ln.utc=function(e){return this.utcOffset(0,e)},ln.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this},ln.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Dt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},ln.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?kt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ln.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ln.isLocal=function(){return!!this.isValid()&&!this._isUTC},ln.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ln.isUtc=It,ln.isUTC=It,ln.zoneAbbr=function(){return this._isUTC?"UTC":""},ln.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ln.dates=S("dates accessor is deprecated. Use date instead.",rn),ln.months=S("months accessor is deprecated. Use month instead",ze),ln.years=S("years accessor is deprecated. Use year instead",be),ln.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),ln.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Mt(e))._a){var t=e._isUTC?f(e._a):kt(e._a);this._isDSTShifted=this.isValid()&&k(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var dn=O.prototype;function fn(e,t,n,i){var r=st(),o=f().set(i,t);return r[n](o,e)}function pn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return fn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=fn(e,i,n,"month");return r}function gn(e,t,n,i){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var r,o=st(),a=e?o._week.dow:0;if(null!=n)return fn(t,(n+a)%7,i,"day");var s=[];for(r=0;r<7;r++)s[r]=fn(t,(r+a)%7,i,"day");return s}dn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return z(i)?i.call(t,n):i},dn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},dn.invalidDate=function(){return this._invalidDate},dn.ordinal=function(e){return this._ordinal.replace("%d",e)},dn.preparse=hn,dn.postformat=hn,dn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return z(r)?r(e,t,n,i):r.replace(/%d/i,e)},dn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return z(n)?n(t):n.replace(/%s/i,t)},dn.set=function(e){var t,n;for(n in e)z(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},dn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Te).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},dn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Te.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},dn.monthsParse=function(e,t,n){var i,r,o;if(this._monthsParseExact)return Ee.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},dn.monthsRegex=function(e){return this._monthsParseExact?(h(this,"_monthsRegex")||xe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Oe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},dn.monthsShortRegex=function(e){return this._monthsParseExact?(h(this,"_monthsRegex")||xe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},dn.week=function(e){return Be(e,this._week.dow,this._week.doy).week},dn.firstDayOfYear=function(){return this._week.doy},dn.firstDayOfWeek=function(){return this._week.dow},dn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?He(n,this._week.dow):e?n[e.day()]:n},dn.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},dn.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},dn.weekdaysParse=function(e,t,n){var i,r,o;if(this._weekdaysParseExact)return We.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},dn.weekdaysRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},dn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ke),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},dn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ve),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},dn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},dn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===A(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",st);var mn=Math.abs;function vn(e,t,n,i){var r=Ht(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function _n(e){return 4800*e/146097}function bn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}var Mn=wn("ms"),An=wn("s"),kn=wn("m"),Tn=wn("h"),Sn=wn("d"),Cn=wn("w"),En=wn("M"),Ln=wn("Q"),zn=wn("y");function Rn(e){return function(){return this.isValid()?this._data[e]:NaN}}var On=Rn("milliseconds"),xn=Rn("seconds"),Dn=Rn("minutes"),Pn=Rn("hours"),Nn=Rn("days"),In=Rn("months"),Bn=Rn("years"),Fn=Math.round,Hn={ss:44,s:45,m:45,h:22,d:26,M:11};function qn(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var jn=Math.abs;function Yn(e){return(e>0)-(e<0)||+e}function Wn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=jn(this._milliseconds)/1e3,i=jn(this._days),r=jn(this._months);e=M(n/60),t=M(e/60),n%=60,e%=60;var o=M(r/12),a=r%=12,s=i,u=t,c=e,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",f=Yn(this._months)!==Yn(h)?"-":"",p=Yn(this._days)!==Yn(h)?"-":"",g=Yn(this._milliseconds)!==Yn(h)?"-":"";return d+"P"+(o?f+o+"Y":"")+(a?f+a+"M":"")+(s?p+s+"D":"")+(u||c||l?"T":"")+(u?g+u+"H":"")+(c?g+c+"M":"")+(l?g+l+"S":"")}var Un=Lt.prototype;return Un.isValid=function(){return this._isValid},Un.abs=function(){var e=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),e.milliseconds=mn(e.milliseconds),e.seconds=mn(e.seconds),e.minutes=mn(e.minutes),e.hours=mn(e.hours),e.months=mn(e.months),e.years=mn(e.years),this},Un.add=function(e,t){return vn(this,e,t,1)},Un.subtract=function(e,t){return vn(this,e,t,-1)},Un.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=P(e))||"quarter"===e||"year"===e)switch(n=this._months+_n(t=this._days+i/864e5),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(bn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Un.asMilliseconds=Mn,Un.asSeconds=An,Un.asMinutes=kn,Un.asHours=Tn,Un.asDays=Sn,Un.asWeeks=Cn,Un.asMonths=En,Un.asQuarters=Ln,Un.asYears=zn,Un.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*A(this._months/12):NaN},Un._bubble=function(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*yn(bn(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=M(o/1e3),u.seconds=e%60,t=M(e/60),u.minutes=t%60,n=M(t/60),u.hours=n%24,a+=M(n/24),s+=r=M(_n(a)),a-=yn(bn(r)),i=M(s/12),s%=12,u.days=a,u.months=s,u.years=i,this},Un.clone=function(){return Ht(this)},Un.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},Un.milliseconds=On,Un.seconds=xn,Un.minutes=Dn,Un.hours=Pn,Un.days=Nn,Un.weeks=function(){return M(this.days()/7)},Un.months=In,Un.years=Bn,Un.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var i=Ht(e).abs(),r=Fn(i.as("s")),o=Fn(i.as("m")),a=Fn(i.as("h")),s=Fn(i.as("d")),u=Fn(i.as("M")),c=Fn(i.as("y")),l=r<=Hn.ss&&["s",r]||r0,l[4]=n,qn.apply(null,l)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Un.toISOString=Wn,Un.toString=Wn,Un.toJSON=Wn,Un.locale=Xt,Un.localeData=Jt,Un.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wn),Un.lang=Gt,W("X",0,0,"unix"),W("x",0,0,"valueOf"),le("x",oe),le("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),pe("x",function(e,t,n){n._d=new Date(A(e))}),r.version="2.24.0",t=kt,r.fn=ln,r.min=function(){return Ct("isBefore",[].slice.call(arguments,0))},r.max=function(){return Ct("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=f,r.unix=function(e){return kt(1e3*e)},r.months=function(e,t){return pn(e,t,"months")},r.isDate=c,r.locale=ot,r.invalid=m,r.duration=Ht,r.isMoment=w,r.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},r.parseZone=function(){return kt.apply(null,arguments).parseZone()},r.localeData=st,r.isDuration=zt,r.monthsShort=function(e,t){return pn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},r.defineLocale=at,r.updateLocale=function(e,t){if(null!=t){var n,i,r=et;null!=(i=rt(e))&&(r=i._config),(n=new O(t=R(r,t))).parentLocale=tt[e],tt[e]=n,ot(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?tt[e]=tt[e].parentLocale:null!=tt[e]&&delete tt[e]);return tt[e]},r.locales=function(){return C(tt)},r.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},r.normalizeUnits=P,r.relativeTimeRounding=function(e){return void 0===e?Fn:"function"==typeof e&&(Fn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Hn[e]&&(void 0===t?Hn[e]:(Hn[e]=t,"s"===e&&(Hn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=ln,r.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"},r}()},9997:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,(function(t){return e[t]}).bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=22)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n=4){for(var e=arguments.length,t=Array(e),n=0;n=3){for(var e=arguments.length,t=Array(e),n=0;n=2){for(var e=arguments.length,t=Array(e),n=0;n=1){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:o.JsonService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw r.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=t,this._jsonService=new n(["application/jwk-set+json"])}return e.prototype.getMetadata=function(){var e=this;return this._settings.metadata?(r.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(r.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then(function(t){return r.Log.debug("MetadataService.getMetadata: json received"),e._settings.metadata=t,t})):(r.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},e.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},e.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},e.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},e.prototype.getTokenEndpoint=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",e)},e.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},e.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},e.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},e.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},e.prototype._getMetadataProperty=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.Log.debug("MetadataService.getMetadataProperty for: "+e),this.getMetadata().then(function(n){if(r.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===n[e]){if(!0===t)return void r.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+e);throw r.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+e),new Error("Metadata does not contain property "+e)}return n[e]})},e.prototype.getSigningKeys=function(){var e=this;return this._settings.signingKeys?(r.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then(function(t){return r.Log.debug("MetadataService.getSigningKeys: jwks_uri received",t),e._jsonService.getJson(t).then(function(t){if(r.Log.debug("MetadataService.getSigningKeys: key set received",t),!t.keys)throw r.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return e._settings.signingKeys=t.keys,e._settings.signingKeys})})},i(e,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration"))),this._metadataUrl}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlUtility=void 0;var i=n(0),r=n(1);t.UrlUtility=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.addQueryParam=function(e,t,n){return e.indexOf("?")<0&&(e+="?"),"?"!==e[e.length-1]&&(e+="&"),e+=encodeURIComponent(t),(e+="=")+encodeURIComponent(n)},e.parseUrlFragment=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.Global;"string"!=typeof e&&(e=n.location.href);var o=e.lastIndexOf(t);o>=0&&(e=e.substr(o+1)),"?"===t&&(o=e.indexOf("#"))>=0&&(e=e.substr(0,o));for(var a,s={},u=/([^&=]+)=([^&]*)/g,c=0;a=u.exec(e);)if(s[decodeURIComponent(a[1])]=decodeURIComponent(a[2]),c++>50)return i.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",e),{error:"Response exceeded expected number of parameters"};for(var l in s)return s;return{}},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JoseUtil=void 0;var i=n(25),r=function(e){return e&&e.__esModule?e:{default:e}}(n(32));t.JoseUtil=(0,r.default)({jws:i.jws,KeyUtil:i.KeyUtil,X509:i.X509,crypto:i.crypto,hextob64u:i.hextob64u,b64tohex:i.b64tohex,AllowedSigningAlgs:i.AllowedSigningAlgs})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OidcClientSettings=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.authority,r=t.metadataUrl,o=t.metadata,h=t.signingKeys,d=t.client_id,f=t.client_secret,p=t.response_type,g=void 0===p?c:p,m=t.scope,v=void 0===m?l:m,y=t.redirect_uri,_=t.post_logout_redirect_uri,b=t.prompt,w=t.display,M=t.max_age,A=t.ui_locales,k=t.acr_values,T=t.resource,S=t.response_mode,C=t.filterProtocolClaims,E=void 0===C||C,L=t.loadUserInfo,z=void 0===L||L,R=t.staleStateAge,O=void 0===R?900:R,x=t.clockSkew,D=void 0===x?300:x,P=t.userInfoJwtIssuer,N=void 0===P?"OP":P,I=t.stateStore,B=void 0===I?new a.WebStorageStateStore:I,F=t.ResponseValidatorCtor,H=void 0===F?s.ResponseValidator:F,q=t.MetadataServiceCtor,j=void 0===q?u.MetadataService:q,Y=t.extraQueryParams,W=void 0===Y?{}:Y,U=t.extraTokenParams,K=void 0===U?{}:U;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._authority=n,this._metadataUrl=r,this._metadata=o,this._signingKeys=h,this._client_id=d,this._client_secret=f,this._response_type=g,this._scope=v,this._redirect_uri=y,this._post_logout_redirect_uri=_,this._prompt=b,this._display=w,this._max_age=M,this._ui_locales=A,this._acr_values=k,this._resource=T,this._response_mode=S,this._filterProtocolClaims=!!E,this._loadUserInfo=!!z,this._staleStateAge=O,this._clockSkew=D,this._userInfoJwtIssuer=N,this._stateStore=B,this._validator=new H(this),this._metadataService=new j(this),this._extraQueryParams="object"===(void 0===W?"undefined":i(W))?W:{},this._extraTokenParams="object"===(void 0===K?"undefined":i(K))?K:{}}return r(e,[{key:"client_id",get:function(){return this._client_id},set:function(e){if(this._client_id)throw o.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=e}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(e){if(this._authority)throw o.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=e}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(".well-known/openid-configuration")<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=".well-known/openid-configuration")),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(e){this._metadata=e}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(e){this._signingKeys=e}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(e){this._extraQueryParams="object"===(void 0===e?"undefined":i(e))?e:{}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(e){this._extraTokenParams="object"===(void 0===e?"undefined":i(e))?e:{}}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebStorageStateStore=void 0;var i=n(0),r=n(1);t.WebStorageStateStore=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.prefix,i=void 0===n?"oidc.":n,o=t.store,a=void 0===o?r.Global.localStorage:o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._store=a,this._prefix=i}return e.prototype.set=function(e,t){return i.Log.debug("WebStorageStateStore.set",e),this._store.setItem(e=this._prefix+e,t),Promise.resolve()},e.prototype.get=function(e){i.Log.debug("WebStorageStateStore.get",e);var t=this._store.getItem(e=this._prefix+e);return Promise.resolve(t)},e.prototype.remove=function(e){i.Log.debug("WebStorageStateStore.remove",e);var t=this._store.getItem(e=this._prefix+e);return this._store.removeItem(e),Promise.resolve(t)},e.prototype.getAllKeys=function(){i.Log.debug("WebStorageStateStore.getAllKeys");for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.Global.XMLHttpRequest,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._contentTypes=t&&Array.isArray(t)?t.slice():[],this._contentTypes.push("application/json"),i&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=n,this._jwtHandler=i}return e.prototype.getJson=function(e,t){var n=this;if(!e)throw i.Log.error("JsonService.getJson: No url passed"),new Error("url");return i.Log.debug("JsonService.getJson, url: ",e),new Promise(function(r,o){var a=new n._XMLHttpRequest;a.open("GET",e);var s=n._contentTypes,u=n._jwtHandler;a.onload=function(){if(i.Log.debug("JsonService.getJson: HTTP response received, status",a.status),200===a.status){var t=a.getResponseHeader("Content-Type");if(t){var n=s.find(function(e){if(t.startsWith(e))return!0});if("application/jwt"==n)return void u(a).then(r,o);if(n)try{return void r(JSON.parse(a.responseText))}catch(r){return i.Log.error("JsonService.getJson: Error parsing JSON response",r.message),void o(r)}}o(Error("Invalid response Content-Type: "+t+", from URL: "+e))}else o(Error(a.statusText+" ("+a.status+")"))},a.onerror=function(){i.Log.error("JsonService.getJson: network error"),o(Error("Network Error"))},t&&(i.Log.debug("JsonService.getJson: token passed, setting Authorization header"),a.setRequestHeader("Authorization","Bearer "+t)),a.send()})},e.prototype.postForm=function(e,t){var n=this;if(!e)throw i.Log.error("JsonService.postForm: No url passed"),new Error("url");return i.Log.debug("JsonService.postForm, url: ",e),new Promise(function(r,o){var a=new n._XMLHttpRequest;a.open("POST",e);var s=n._contentTypes;a.onload=function(){if(i.Log.debug("JsonService.postForm: HTTP response received, status",a.status),200!==a.status){if(400===a.status&&(n=a.getResponseHeader("Content-Type"))&&s.find(function(e){if(n.startsWith(e))return!0}))try{var t=JSON.parse(a.responseText);if(t&&t.error)return i.Log.error("JsonService.postForm: Error from server: ",t.error),void o(new Error(t.error))}catch(r){return i.Log.error("JsonService.postForm: Error parsing JSON response",r.message),void o(r)}o(Error(a.statusText+" ("+a.status+")"))}else{var n;if((n=a.getResponseHeader("Content-Type"))&&s.find(function(e){if(n.startsWith(e))return!0}))try{return void r(JSON.parse(a.responseText))}catch(r){return i.Log.error("JsonService.postForm: Error parsing JSON response",r.message),void o(r)}o(Error("Invalid response Content-Type: "+n+", from URL: "+e))}},a.onerror=function(){i.Log.error("JsonService.postForm: network error"),o(Error("Network Error"))};var u="";for(var c in t){var l=t[c];l&&(u.length>0&&(u+="&"),u+=encodeURIComponent(c),u+="=",u+=encodeURIComponent(l))}a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.send(u)})},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.State=void 0;var i=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.id,i=t.data,r=t.created,a=t.request_type;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._id=n||(0,o.default)(),this._data=i,this._created="number"==typeof r&&r>0?r:parseInt(Date.now()/1e3),this._request_type=a}return e.prototype.toStorageString=function(){return r.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},e.fromStorageString=function(t){return r.Log.debug("State.fromStorageString"),new e(JSON.parse(t))},e.clearStaleState=function(t,n){var i=Date.now()/1e3-n;return t.getAllKeys().then(function(n){r.Log.debug("State.clearStaleState: got keys",n);for(var o=[],a=function(a){var s=n[a];u=t.get(s).then(function(n){var o=!1;if(n)try{var a=e.fromStorageString(n);r.Log.debug("State.clearStaleState: got item from key: ",s,a.created),a.created<=i&&(o=!0)}catch(e){r.Log.error("State.clearStaleState: Error parsing state for key",s,e.message),o=!0}else r.Log.debug("State.clearStaleState: no item in storage for key: ",s),o=!0;if(o)return r.Log.debug("State.clearStaleState: removed item for key: ",s),t.remove(s)}),o.push(u)},s=0;s0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._settings=t instanceof o.OidcClientSettings?t:new o.OidcClientSettings(t)}return e.prototype.createSigninRequest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.response_type,i=t.scope,o=t.redirect_uri,a=t.data,u=t.state,c=t.prompt,l=t.display,h=t.max_age,d=t.ui_locales,f=t.id_token_hint,p=t.login_hint,g=t.acr_values,m=t.resource,v=t.request,y=t.request_uri,_=t.response_mode,b=t.extraQueryParams,w=t.extraTokenParams,M=t.request_type,A=t.skipUserInfo,k=arguments[1];r.Log.debug("OidcClient.createSigninRequest");var T=this._settings.client_id;i=i||this._settings.scope,o=o||this._settings.redirect_uri,c=c||this._settings.prompt,l=l||this._settings.display,h=h||this._settings.max_age,d=d||this._settings.ui_locales,g=g||this._settings.acr_values,m=m||this._settings.resource,_=_||this._settings.response_mode,b=b||this._settings.extraQueryParams,w=w||this._settings.extraTokenParams;var S=this._settings.authority;return s.SigninRequest.isCode(n=n||this._settings.response_type)&&"code"!==n?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then(function(t){r.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",t);var C=new s.SigninRequest({url:t,client_id:T,redirect_uri:o,response_type:n,scope:i,data:a||u,authority:S,prompt:c,display:l,max_age:h,ui_locales:d,id_token_hint:f,login_hint:p,acr_values:g,resource:m,request:v,request_uri:y,extraQueryParams:b,extraTokenParams:w,request_type:M,response_mode:_,client_secret:e._settings.client_secret,skipUserInfo:A}),E=C.state;return(k=k||e._stateStore).set(E.id,E.toStorageString()).then(function(){return C})})},e.prototype.readSigninResponseState=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.Log.debug("OidcClient.readSigninResponseState");var i="query"===this._settings.response_mode||!this._settings.response_mode&&s.SigninRequest.isCode(this._settings.response_type)?"?":"#",o=new u.SigninResponse(e,i);return o.state?(t=t||this._stateStore,(n?t.remove.bind(t):t.get.bind(t))(o.state).then(function(e){if(!e)throw r.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:h.SigninState.fromStorageString(e),response:o}})):(r.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},e.prototype.processSigninResponse=function(e,t){var n=this;return r.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(e,t,!0).then(function(e){var t=e.state,i=e.response;return r.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),n._validator.validateSigninResponse(t,i)})},e.prototype.createSignoutRequest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id_token_hint,i=t.data,o=t.state,a=t.post_logout_redirect_uri,s=t.extraQueryParams,u=t.request_type,l=arguments[1];return r.Log.debug("OidcClient.createSignoutRequest"),a=a||this._settings.post_logout_redirect_uri,s=s||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then(function(t){if(!t)throw r.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");r.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",t);var h=new c.SignoutRequest({url:t,id_token_hint:n,post_logout_redirect_uri:a,data:i||o,extraQueryParams:s,request_type:u}),d=h.state;return d&&(r.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(l=l||e._stateStore).set(d.id,d.toStorageString())),h})},e.prototype.readSignoutResponseState=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.Log.debug("OidcClient.readSignoutResponseState");var i=new l.SignoutResponse(e);if(!i.state)return r.Log.debug("OidcClient.readSignoutResponseState: No state in response"),i.error?(r.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",i.error),Promise.reject(new a.ErrorResponse(i))):Promise.resolve({undefined:void 0,response:i});var o=i.state;return t=t||this._stateStore,(n?t.remove.bind(t):t.get.bind(t))(o).then(function(e){if(!e)throw r.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:d.State.fromStorageString(e),response:i}})},e.prototype.processSignoutResponse=function(e,t){var n=this;return r.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(e,t,!0).then(function(e){var t=e.state,i=e.response;return t?(r.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),n._validator.validateSignoutResponse(t,i)):(r.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),i)})},e.prototype.clearStaleState=function(e){return r.Log.debug("OidcClient.clearStaleState"),d.State.clearStaleState(e=e||this._stateStore,this.settings.staleStateAge)},i(e,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenClient=void 0;var i=n(7),r=n(2),o=n(0);t.TokenClient=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw o.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=t,this._jsonService=new n,this._metadataService=new a(this._settings)}return e.prototype.exchangeCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t=Object.assign({},t)).grant_type=t.grant_type||"authorization_code",t.client_id=t.client_id||this._settings.client_id,t.redirect_uri=t.redirect_uri||this._settings.redirect_uri,t.code?t.redirect_uri?t.code_verifier?t.client_id?this._metadataService.getTokenEndpoint(!1).then(function(n){return o.Log.debug("TokenClient.exchangeCode: Received token endpoint"),e._jsonService.postForm(n,t).then(function(e){return o.Log.debug("TokenClient.exchangeCode: response received"),e})}):(o.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(o.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(o.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},e.prototype.exchangeRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t=Object.assign({},t)).grant_type=t.grant_type||"refresh_token",t.client_id=t.client_id||this._settings.client_id,t.client_secret=t.client_secret||this._settings.client_secret,t.refresh_token?t.client_id?this._metadataService.getTokenEndpoint(!1).then(function(n){return o.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),e._jsonService.postForm(n,t).then(function(e){return o.Log.debug("TokenClient.exchangeRefreshToken: response received"),e})}):(o.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorResponse=void 0;var i=n(0);t.ErrorResponse=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.error,o=n.error_description,a=n.error_uri,s=n.state,u=n.session_state;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),!r)throw i.Log.error("No error passed to ErrorResponse"),new Error("error");var c=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o||r));return c.name="ErrorResponse",c.error=r,c.error_description=o,c.error_uri=a,c.state=s,c.session_state=u,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(Error)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigninRequest=void 0;var i=n(0),r=n(3),o=n(13);t.SigninRequest=function(){function e(t){var n=t.url,a=t.client_id,s=t.redirect_uri,u=t.response_type,c=t.scope,l=t.authority,h=t.data,d=t.prompt,f=t.display,p=t.max_age,g=t.ui_locales,m=t.id_token_hint,v=t.login_hint,y=t.acr_values,_=t.resource,b=t.response_mode,w=t.request,M=t.request_uri,A=t.extraQueryParams,k=t.request_type,T=t.client_secret,S=t.extraTokenParams,C=t.skipUserInfo;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw i.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!a)throw i.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!s)throw i.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!u)throw i.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!c)throw i.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!l)throw i.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var E=e.isOidc(u),L=e.isCode(u);b||(b=e.isCode(u)?"query":null),this.state=new o.SigninState({nonce:E,data:h,client_id:a,authority:l,redirect_uri:s,code_verifier:L,request_type:k,response_mode:b,client_secret:T,scope:c,extraTokenParams:S,skipUserInfo:C}),n=r.UrlUtility.addQueryParam(n,"client_id",a),n=r.UrlUtility.addQueryParam(n,"redirect_uri",s),n=r.UrlUtility.addQueryParam(n,"response_type",u),n=r.UrlUtility.addQueryParam(n,"scope",c),n=r.UrlUtility.addQueryParam(n,"state",this.state.id),E&&(n=r.UrlUtility.addQueryParam(n,"nonce",this.state.nonce)),L&&(n=r.UrlUtility.addQueryParam(n,"code_challenge",this.state.code_challenge),n=r.UrlUtility.addQueryParam(n,"code_challenge_method","S256"));var z={prompt:d,display:f,max_age:p,ui_locales:g,id_token_hint:m,login_hint:v,acr_values:y,resource:_,request:w,request_uri:M,response_mode:b};for(var R in z)z[R]&&(n=r.UrlUtility.addQueryParam(n,R,z[R]));for(var O in A)n=r.UrlUtility.addQueryParam(n,O,A[O]);this.url=n}return e.isOidc=function(e){return!!e.split(/\s+/g).filter(function(e){return"id_token"===e})[0]},e.isOAuth=function(e){return!!e.split(/\s+/g).filter(function(e){return"token"===e})[0]},e.isCode=function(e){return!!e.split(/\s+/g).filter(function(e){return"code"===e})[0]},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigninState=void 0;var i=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},i=n.nonce,r=n.authority,o=n.client_id,u=n.redirect_uri,c=n.code_verifier,l=n.response_mode,h=n.client_secret,d=n.scope,f=n.extraTokenParams,p=n.skipUserInfo;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var g=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,arguments[0]));if(!0===i?g._nonce=(0,s.default)():i&&(g._nonce=i),!0===c?g._code_verifier=(0,s.default)()+(0,s.default)()+(0,s.default)():c&&(g._code_verifier=c),g.code_verifier){var m=a.JoseUtil.hashString(g.code_verifier,"SHA256");g._code_challenge=a.JoseUtil.hexToBase64Url(m)}return g._redirect_uri=u,g._authority=r,g._client_id=o,g._response_mode=l,g._client_secret=h,g._scope=d,g._extraTokenParams=f,g._skipUserInfo=p,g}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toStorageString=function(){return r.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},t.fromStorageString=function(e){return r.Log.debug("SigninState.fromStorageString"),new t(JSON.parse(e))},i(t,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),t}(o.State)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,i.default)().replace(/-/g,"")};var i=function(e){return e&&e.__esModule?e:{default:e}}(n(33));e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.User=void 0;var i=function(){function e(e,t){for(var n=0;n0){var n=parseInt(Date.now()/1e3);this.expires_at=n+t}}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccessTokenEvents=void 0;var i=n(0),r=n(48);t.AccessTokenEvents=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.accessTokenExpiringNotificationTime,i=void 0===n?60:n,o=t.accessTokenExpiringTimer,a=void 0===o?new r.Timer("Access token expiring"):o,s=t.accessTokenExpiredTimer,u=void 0===s?new r.Timer("Access token expired"):s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._accessTokenExpiringNotificationTime=i,this._accessTokenExpiring=a,this._accessTokenExpired=u}return e.prototype.load=function(e){if(e.access_token&&void 0!==e.expires_in){var t=e.expires_in;if(i.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",t),t>0){var n=t-this._accessTokenExpiringNotificationTime;n<=0&&(n=1),i.Log.debug("AccessTokenEvents.load: registering expiring timer in:",n),this._accessTokenExpiring.init(n)}else i.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var r=t+1;i.Log.debug("AccessTokenEvents.load: registering expired timer in:",r),this._accessTokenExpired.init(r)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},e.prototype.unload=function(){i.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},e.prototype.addAccessTokenExpiring=function(e){this._accessTokenExpiring.addHandler(e)},e.prototype.removeAccessTokenExpiring=function(e){this._accessTokenExpiring.removeHandler(e)},e.prototype.addAccessTokenExpired=function(e){this._accessTokenExpired.addHandler(e)},e.prototype.removeAccessTokenExpired=function(e){this._accessTokenExpired.removeHandler(e)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0;var i=n(0);t.Event=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._name=t,this._callbacks=[]}return e.prototype.addHandler=function(e){this._callbacks.push(e)},e.prototype.removeHandler=function(e){var t=this._callbacks.findIndex(function(t){return t===e});t>=0&&this._callbacks.splice(t,1)},e.prototype.raise=function(){i.Log.debug("Event: Raising event: "+this._name);for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:o.CheckSessionIFrame,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.Global.timer;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw r.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=t,this._CheckSessionIFrameCtor=i,this._timer=s,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),this._userManager.getUser().then(function(e){e?n._start(e):n._settings.monitorAnonymousSession&&n._userManager.querySessionStatus().then(function(e){var t={session_state:e.session_state};e.sub&&e.sid&&(t.profile={sub:e.sub,sid:e.sid}),n._start(t)}).catch(function(e){r.Log.error("SessionMonitor ctor: error from querySessionStatus:",e.message)})}).catch(function(e){r.Log.error("SessionMonitor ctor: error from getUser:",e.message)})}return e.prototype._start=function(e){var t=this,n=e.session_state;n&&(e.profile?(this._sub=e.profile.sub,this._sid=e.profile.sid,r.Log.debug("SessionMonitor._start: session_state:",n,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,r.Log.debug("SessionMonitor._start: session_state:",n,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(n):this._metadataService.getCheckSessionIframe().then(function(e){if(e){r.Log.debug("SessionMonitor._start: Initializing check session iframe");var i=t._client_id,o=t._checkSessionInterval,a=t._stopCheckSessionOnError;t._checkSessionIFrame=new t._CheckSessionIFrameCtor(t._callback.bind(t),i,e,o,a),t._checkSessionIFrame.load().then(function(){t._checkSessionIFrame.start(n)})}else r.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")}).catch(function(e){r.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",e.message)}))},e.prototype._stop=function(){var e=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(r.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var t=this._timer.setInterval(function(){e._timer.clearInterval(t),e._userManager.querySessionStatus().then(function(t){var n={session_state:t.session_state};t.sub&&t.sid&&(n.profile={sub:t.sub,sid:t.sid}),e._start(n)}).catch(function(e){r.Log.error("SessionMonitor: error from querySessionStatus:",e.message)})},1e3)},e.prototype._callback=function(){var e=this;this._userManager.querySessionStatus().then(function(t){var n=!0;t?t.sub===e._sub?(n=!1,e._checkSessionIFrame.start(t.session_state),t.sid===e._sid?r.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",t.session_state):(r.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",t.session_state),e._userManager.events._raiseUserSessionChanged())):r.Log.debug("SessionMonitor._callback: Different subject signed into OP:",t.sub):r.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),n&&(e._sub?(r.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),e._userManager.events._raiseUserSignedOut()):(r.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),e._userManager.events._raiseUserSignedIn()))}).catch(function(t){e._sub&&(r.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",t.message),e._userManager.events._raiseUserSignedOut())})},i(e,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckSessionIFrame=void 0;var i=n(0);t.CheckSessionIFrame=function(){function e(t,n,i,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._callback=t,this._client_id=n,this._url=i,this._interval=r||2e3,this._stopOnError=o;var a=i.indexOf("/",i.indexOf("//")+2);this._frame_origin=i.substr(0,a),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.style.width=0,this._frame.style.height=0,this._frame.src=i}return e.prototype.load=function(){var e=this;return new Promise(function(t){e._frame.onload=function(){t()},window.document.body.appendChild(e._frame),e._boundMessageEvent=e._message.bind(e),window.addEventListener("message",e._boundMessageEvent,!1)})},e.prototype._message=function(e){e.origin===this._frame_origin&&e.source===this._frame.contentWindow&&("error"===e.data?(i.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===e.data?(i.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):i.Log.debug("CheckSessionIFrame: "+e.data+" message from check session op iframe"))},e.prototype.start=function(e){var t=this;if(this._session_state!==e){i.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=e;var n=function(){t._frame.contentWindow.postMessage(t._client_id+" "+t._session_state,t._frame_origin)};n(),this._timer=window.setInterval(n,this._interval)}},e.prototype.stop=function(){this._session_state=null,this._timer&&(i.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenRevocationClient=void 0;var i=n(0),r=n(2),o=n(1);t.TokenRevocationClient=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Global.XMLHttpRequest,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw i.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=t,this._XMLHttpRequestCtor=n,this._metadataService=new a(this._settings)}return e.prototype.revoke=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!e)throw i.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==r&&"refresh_token"!=r)throw i.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then(function(o){if(o)return i.Log.debug("TokenRevocationClient.revoke: Revoking "+r),n._revoke(o,n._settings.client_id,n._settings.client_secret,e,r);if(t)throw i.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")})},e.prototype._revoke=function(e,t,n,r,o){var a=this;return new Promise(function(s,u){var c=new a._XMLHttpRequestCtor;c.open("POST",e),c.onload=function(){i.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",c.status),200===c.status?s():u(Error(c.statusText+" ("+c.status+")"))},c.onerror=function(){i.Log.debug("TokenRevocationClient.revoke: Network Error."),u("Network Error")};var l="client_id="+encodeURIComponent(t);n&&(l+="&client_secret="+encodeURIComponent(n)),l+="&token_type_hint="+encodeURIComponent(o),l+="&token="+encodeURIComponent(r),c.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),c.send(l)})},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaPopupWindow=void 0;var i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:o.MetadataService,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.UserInfoService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c.JoseUtil,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.TokenClient;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw r.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=t,this._metadataService=new n(this._settings),this._userInfoService=new i(this._settings),this._joseUtil=u,this._tokenClient=new l(this._settings)}return e.prototype.validateSigninResponse=function(e,t){var n=this;return r.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(e,t).then(function(t){return r.Log.debug("ResponseValidator.validateSigninResponse: state processed"),n._validateTokens(e,t).then(function(t){return r.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),n._processClaims(e,t).then(function(e){return r.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),e})})})},e.prototype.validateSignoutResponse=function(e,t){return e.id!==t.state?(r.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(r.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),t.state=e.data,t.error?(r.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",t.error),Promise.reject(new u.ErrorResponse(t))):Promise.resolve(t))},e.prototype._processSigninParams=function(e,t){if(e.id!==t.state)return r.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!e.client_id)return r.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!e.authority)return r.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==e.authority)return r.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=e.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==e.client_id)return r.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=e.client_id;return r.Log.debug("ResponseValidator._processSigninParams: state validated"),t.state=e.data,t.error?(r.Log.warn("ResponseValidator._processSigninParams: Response was error",t.error),Promise.reject(new u.ErrorResponse(t))):e.nonce&&!t.id_token?(r.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!e.nonce&&t.id_token?(r.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):e.code_verifier&&!t.code?(r.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!e.code_verifier&&t.code?(r.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(t.scope||(t.scope=e.scope),Promise.resolve(t))},e.prototype._processClaims=function(e,t){var n=this;if(t.isOpenIdConnect){if(r.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),t.profile=this._filterProtocolClaims(t.profile),!0!==e.skipUserInfo&&this._settings.loadUserInfo&&t.access_token)return r.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(t.access_token).then(function(e){return r.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),e.sub!==t.profile.sub?(r.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in access_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"))):(t.profile=n._mergeClaims(t.profile,e),r.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",t.profile),t)});r.Log.debug("ResponseValidator._processClaims: not loading user info")}else r.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(t)},e.prototype._mergeClaims=function(e,t){var n=Object.assign({},e);for(var r in t){var o=t[r];Array.isArray(o)||(o=[o]);for(var a=0;a1)return r.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));u=s[0]}if(!u)return r.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var c=e.client_id,l=n._settings.clockSkew;return r.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",l),n._joseUtil.validateJwt(t.id_token,u,a,c,l).then(function(){return r.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),i.payload.sub?(t.profile=i.payload,t):(r.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))})})})},e.prototype._filterByAlg=function(e,t){var n=null;if(t.startsWith("RS"))n="RSA";else if(t.startsWith("PS"))n="PS";else{if(!t.startsWith("ES"))return r.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",t),[];n="EC"}return r.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",n),e=e.filter(function(e){return e.kty===n}),r.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",n,e.length),e},e.prototype._validateAccessToken=function(e){if(!e.profile)return r.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!e.profile.at_hash)return r.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!e.id_token)return r.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var t=this._joseUtil.parseJwt(e.id_token);if(!t||!t.header)return r.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",t),Promise.reject(new Error("Failed to parse id_token"));var n=t.header.alg;if(!n||5!==n.length)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n),Promise.reject(new Error("Unsupported alg: "+n));var i=n.substr(2,3);if(!i)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n,i),Promise.reject(new Error("Unsupported alg: "+n));if(256!==(i=parseInt(i))&&384!==i&&512!==i)return r.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n,i),Promise.reject(new Error("Unsupported alg: "+n));var o="sha"+i,a=this._joseUtil.hashString(e.access_token,o);if(!a)return r.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",o),Promise.reject(new Error("Failed to validate at_hash"));var s=a.substr(0,a.length/2),u=this._joseUtil.hexToBase64Url(s);return u!==e.profile.at_hash?(r.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",u,e.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(r.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(e))},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserInfoService=void 0;var i=n(7),r=n(2),o=n(0),a=n(4);t.UserInfoService=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.JsonService,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.MetadataService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.JoseUtil;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw o.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=t,this._jsonService=new n(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new s(this._settings),this._joseUtil=u}return e.prototype.getClaims=function(e){var t=this;return e?this._metadataService.getUserInfoEndpoint().then(function(n){return o.Log.debug("UserInfoService.getClaims: received userinfo url",n),t._jsonService.getJson(n,e).then(function(e){return o.Log.debug("UserInfoService.getClaims: claims received",e),e})}):(o.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},e.prototype._getClaimsFromJwt=function e(t){var n=this;try{var i=this._joseUtil.parseJwt(t.responseText);if(!i||!i.header||!i.payload)return o.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",i),Promise.reject(new Error("Failed to parse id_token"));var r=i.header.kid,a=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":a=this._metadataService.getIssuer();break;case"ANY":a=Promise.resolve(i.payload.iss);break;default:a=Promise.resolve(this._settings.userInfoJwtIssuer)}return a.then(function(e){return o.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+e),n._metadataService.getSigningKeys().then(function(a){if(!a)return o.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));o.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var s=void 0;if(r)s=a.filter(function(e){return e.kid===r})[0];else{if((a=n._filterByAlg(a,i.header.alg)).length>1)return o.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));s=a[0]}if(!s)return o.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var u=n._settings.client_id,c=n._settings.clockSkew;return o.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",c),n._joseUtil.validateJwt(t.responseText,s,e,u,c,void 0,!0).then(function(){return o.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),i.payload})})})}catch(e){return o.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",e.message),void reject(e)}},e.prototype._filterByAlg=function(e,t){var n=null;if(t.startsWith("RS"))n="RSA";else if(t.startsWith("PS"))n="PS";else{if(!t.startsWith("ES"))return o.Log.debug("UserInfoService._filterByAlg: alg not supported: ",t),[];n="EC"}return o.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",n),e=e.filter(function(e){return e.kty===n}),o.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",n,e.length),e},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AllowedSigningAlgs=t.b64tohex=t.hextob64u=t.crypto=t.X509=t.KeyUtil=t.jws=void 0;var i=n(26);t.jws=i.jws,t.KeyUtil=i.KEYUTIL,t.X509=i.X509,t.crypto=i.crypto,t.hextob64u=i.hextob64u,t.b64tohex=i.b64tohex,t.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i={userAgent:!1},r={};if(void 0===o)var o={};o.lang={extend:function(t,n,r){if(!n||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var o=function(){};if(o.prototype=n.prototype,t.prototype=new o,t.prototype.constructor=t,t.superclass=n.prototype,n.prototype.constructor==Object.prototype.constructor&&(n.prototype.constructor=n),r){var a;for(a in r)t.prototype[a]=r[a];var s=function(){},u=["toString","valueOf"];try{/MSIE/.test(i.userAgent)&&(s=function(e,t){for(a=0;a>>2]|=(n[o>>>2]>>>24-o%4*8&255)<<24-(i+o)%4*8;else for(o=0;o>>2]=n[o>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=a.ceil(t/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new l.init(n,t/2)}},f=h.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r>>2]>>>24-r%4*8&255));return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new l.init(n,t)}},p=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},g=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,n=t.words,i=t.sigBytes,r=this.blockSize,o=i/(4*r),s=(o=e?a.ceil(o):a.max((0|o)-this._minBufferSize,0))*r,u=a.min(4*s,i);if(s){for(var c=0;c>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,a=0;4>a&&r+.75*a>>6*(3-a)&63));if(t=i.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(t){var n=t.length,i=this._map;(r=i.charAt(64))&&-1!=(r=t.indexOf(r))&&(n=r);for(var r=[],o=0,a=0;a>>6-a%4*2;r[o>>>2]|=(s|u)<<24-o%4*8,o++}return e.create(r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){for(var t=v,n=(r=t.lib).WordArray,i=r.Hasher,r=t.algo,o=[],a=[],s=function(e){return 4294967296*(e-(0|e))|0},u=2,c=0;64>c;){var l;e:{for(var h=e.sqrt(l=u),d=2;d<=h;d++)if(!(l%d)){l=!1;break e}l=!0}l&&(8>c&&(o[c]=s(e.pow(u,.5))),a[c]=s(e.pow(u,1/3)),c++),u++}var f=[];r=r.SHA256=i.extend({_doReset:function(){this._hash=new n.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],u=n[4],c=n[5],l=n[6],h=n[7],d=0;64>d;d++){if(16>d)f[d]=0|e[t+d];else{var p=f[d-15],g=f[d-2];f[d]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+f[d-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+f[d-16]}p=h+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&c^~u&l)+a[d]+f[d],g=((i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22))+(i&r^i&o^r&o),h=l,l=c,c=u,u=s+p|0,s=o,o=r,r=i,i=p+g|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(i/4294967296),n[15+(r+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA256=i._createHelper(r),t.HmacSHA256=i._createHmacHelper(r)}(Math),function(){function e(){return i.create.apply(i,arguments)}for(var t=v,n=t.lib.Hasher,i=(o=t.x64).Word,r=o.WordArray,o=t.algo,a=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],s=[],u=0;80>u;u++)s[u]=e();o=o.SHA512=n.extend({_doReset:function(){this._hash=new r.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=(h=this._hash.words)[0],i=h[1],r=h[2],o=h[3],u=h[4],c=h[5],l=h[6],h=h[7],d=n.high,f=n.low,p=i.high,g=i.low,m=r.high,v=r.low,y=o.high,_=o.low,b=u.high,w=u.low,M=c.high,A=c.low,k=l.high,T=l.low,S=h.high,C=h.low,E=d,L=f,z=p,R=g,O=m,x=v,D=y,P=_,N=b,I=w,B=M,F=A,H=k,q=T,j=S,Y=C,W=0;80>W;W++){var U=s[W];if(16>W)var K=U.high=0|e[t+2*W],V=U.low=0|e[t+2*W+1];else{K=((V=(K=s[W-15]).high)>>>1|(X=K.low)<<31)^(V>>>8|X<<24)^V>>>7;var X=(X>>>1|V<<31)^(X>>>8|V<<24)^(X>>>7|V<<25),G=((V=(G=s[W-2]).high)>>>19|(J=G.low)<<13)^(V<<3|J>>>29)^V>>>6,J=(J>>>19|V<<13)^(J<<3|V>>>29)^(J>>>6|V<<26),Q=(V=s[W-7]).high,Z=($=s[W-16]).high,$=$.low;K=(K=(K=K+Q+((V=X+V.low)>>>0>>0?1:0))+G+((V+=J)>>>0>>0?1:0))+Z+((V+=$)>>>0<$>>>0?1:0),U.high=K,U.low=V}U=E&z^E&O^z&O;var ee=L&R^L&x^R&x,te=(X=(E>>>28|L<<4)^(E<<30|L>>>2)^(E<<25|L>>>7),G=(L>>>28|E<<4)^(L<<30|E>>>2)^(L<<25|E>>>7),(J=a[W]).high),ne=J.low;Z=(Z=(Z=(Z=j+((N>>>14|I<<18)^(N>>>18|I<<14)^(N<<23|I>>>9))+((J=Y+((I>>>14|N<<18)^(I>>>18|N<<14)^(I<<23|N>>>9)))>>>0>>0?1:0))+(Q=N&B^~N&H)+((J+=$=I&F^~I&q)>>>0<$>>>0?1:0))+te+((J+=ne)>>>0>>0?1:0))+K+((J+=V)>>>0>>0?1:0),j=H,Y=q,H=B,q=F,B=N,F=I,N=D+Z+((I=P+J|0)>>>0

>>0?1:0)|0,D=O,P=x,O=z,x=R,z=E,R=L,E=Z+(U=X+U+((V=G+ee)>>>0>>0?1:0))+((L=J+V|0)>>>0>>0?1:0)|0}f=n.low=f+L,n.high=d+E+(f>>>0>>0?1:0),g=i.low=g+R,i.high=p+z+(g>>>0>>0?1:0),v=r.low=v+x,r.high=m+O+(v>>>0>>0?1:0),_=o.low=_+P,o.high=y+D+(_>>>0

>>0?1:0),w=u.low=w+I,u.high=b+N+(w>>>0>>0?1:0),A=c.low=A+F,c.high=M+B+(A>>>0>>0?1:0),T=l.low=T+q,l.high=k+H+(T>>>0>>0?1:0),C=h.low=C+Y,h.high=S+j+(C>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(i+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),t.SHA512=n._createHelper(o),t.HmacSHA512=n._createHmacHelper(o)}(),function(){var e=v,t=(r=e.x64).Word,n=r.WordArray,i=(r=e.algo).SHA512,r=r.SHA384=i.extend({_doReset:function(){this._hash=new n.init([new t.init(3418070365,3238371032),new t.init(1654270250,914150663),new t.init(2438529370,812702999),new t.init(355462360,4144912697),new t.init(1731405415,4290775857),new t.init(2394180231,1750603025),new t.init(3675008525,1694076839),new t.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=i._createHelper(r),e.HmacSHA384=i._createHmacHelper(r)}();var y,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function b(e){var t,n,i="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),i+=_.charAt(n>>6)+_.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),i+=_.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),i+=_.charAt(n>>2)+_.charAt((3&n)<<4));(3&i.length)>0;)i+="=";return i}function w(e){var t,n,i,r="",o=0;for(t=0;t>2),n=3&i,o=1):1==o?(r+=E(n<<2|i>>4),n=15&i,o=2):2==o?(r+=E(n),r+=E(i>>2),n=3&i,o=3):(r+=E(n<<2|i>>4),r+=E(15&i),o=0));return 1==o&&(r+=E(n<<2)),r}function M(e){var t,n=w(e),i=new Array;for(t=0;2*t>15;--o>=0;){var u=32767&this[e],c=this[e++]>>15,l=s*u+c*a;r=((u=a*u+((32767&l)<<15)+n[i]+(1073741823&r))>>>30)+(l>>>15)+s*c+(r>>>30),n[i++]=1073741823&u}return r},y=30):"Netscape"!=i.appName?(A.prototype.am=function(e,t,n,i,r,o){for(;--o>=0;){var a=t*this[e++]+n[i]+r;r=Math.floor(a/67108864),n[i++]=67108863&a}return r},y=26):(A.prototype.am=function(e,t,n,i,r,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],c=this[e++]>>14,l=s*u+c*a;r=((u=a*u+((16383&l)<<14)+n[i]+r)>>28)+(l>>14)+s*c,n[i++]=268435455&u}return r},y=28),A.prototype.DB=y,A.prototype.DM=(1<>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function O(e){this.m=e}function x(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function F(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function H(){}function q(e){return e}function j(e){this.r2=k(),this.q3=k(),A.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}O.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},O.prototype.revert=function(e){return e},O.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},O.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},O.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},x.prototype.convert=function(e){var t=k();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(A.ZERO)>0&&this.m.subTo(t,t),t},x.prototype.revert=function(e){var t=k();return e.copyTo(t),this.reduce(t),t},x.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,i,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},x.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},x.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},A.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},A.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},A.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var i=e.length,r=!1,o=0;--i>=0;){var a=8==n?255&e[i]:L(e,i);a<0?"-"==e.charAt(i)&&(r=!0):(r=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;)--this.t},A.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},A.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+a+1]=this[n]>>r|s,s=(this[n]&o)<=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},A.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var i=e%this.DB,r=this.DB-i,o=(1<>i;for(var a=n+1;a>i;i>0&&(t[this.t-n-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;i+=this.s}else{for(i+=this.s;n>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[n++]=this.DV+i:i>0&&(t[n++]=i),t.t=n,t.clamp()},A.prototype.multiplyTo=function(e,t){var n=this.abs(),i=e.abs(),r=n.t;for(t.t=r+i.t;--r>=0;)t[r]=0;for(r=0;r=0;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},A.prototype.divRemTo=function(e,t,n){var i=e.abs();if(!(i.t<=0)){var r=this.abs();if(r.t0?(i.lShiftTo(u,o),r.lShiftTo(u,n)):(i.copyTo(o),r.copyTo(n));var c=o.t,l=o[c-1];if(0!=l){var h=l*(1<1?o[c-2]>>this.F2:0),d=this.FV/h,f=(1<=0&&(n[n.t++]=1,n.subTo(v,n)),A.ONE.dlShiftTo(c,v),v.subTo(o,o);o.t=0;){var y=n[--g]==l?this.DM:Math.floor(n[g]*d+(n[g-1]+p)*f);if((n[g]+=o.am(0,y,n,m,0,c))0&&n.rShiftTo(u,n),a<0&&A.ZERO.subTo(n,n)}}},A.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},A.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},A.prototype.exp=function(e,t){if(e>4294967295||e<1)return A.ONE;var n=k(),i=k(),r=t.convert(this),o=R(e)-1;for(r.copyTo(n);--o>=0;)if(t.sqrTo(n,i),(e&1<0)t.mulTo(i,r,n);else{var a=n;n=i,i=a}return t.revert(n)},A.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,i=(1<0)for(s>s)>0&&(r=!0,o=E(n));a>=0;)s>(s+=this.DB-t)):(n=this[a]>>(s-=t)&i,s<=0&&(s+=this.DB,--a)),n>0&&(r=!0),r&&(o+=E(n));return r?o:"0"},A.prototype.negate=function(){var e=k();return A.ZERO.subTo(this,e),e},A.prototype.abs=function(){return this.s<0?this.negate():this},A.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},A.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+R(this[this.t-1]^this.s&this.DM)},A.prototype.mod=function(e){var t=k();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(A.ZERO)>0&&e.subTo(t,t),t},A.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new O(t):new x(t),this.exp(e,n)},A.ZERO=z(0),A.ONE=z(1),H.prototype.convert=q,H.prototype.revert=q,H.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},H.prototype.sqrTo=function(e,t){e.squareTo(t)},j.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=k();return e.copyTo(t),this.reduce(t),t},j.prototype.revert=function(e){return e},j.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},j.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},j.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var Y,W,U,K=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],V=(1<<26)/K[K.length-1];function X(){this.i=0,this.j=0,this.S=new Array}function G(){!function(e){W[U++]^=255&e,W[U++]^=e>>8&255,W[U++]^=e>>16&255,W[U++]^=e>>24&255,U>=256&&(U-=256)}((new Date).getTime())}if(A.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},A.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),i=z(n),r=k(),o=k(),a="";for(this.divRemTo(i,r,o);r.signum()>0;)a=(n+o.intValue()).toString(e).substr(1)+a,r.divRemTo(i,r,o);return o.intValue().toString(e)+a},A.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),i=Math.pow(t,n),r=!1,o=0,a=0,s=0;s=n&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(a,0)),r&&A.ZERO.subTo(this,this)},A.prototype.fromNumber=function(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(A.ONE.shiftLeft(e-1),P,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(A.ONE.shiftLeft(e-1),this);else{var i=new Array,r=7&e;i.length=1+(e>>3),t.nextBytes(i),r>0?i[0]&=(1<>=this.DB;if(e.t>=this.DB;i+=this.s}else{for(i+=this.s;n>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[n++]=i:i<-1&&(t[n++]=this.DV+i),t.t=n,t.clamp()},A.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},A.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},A.prototype.multiplyLowerTo=function(e,t,n){var i,r=Math.min(this.t+e.t,t);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(i=n.t-this.t;r=0;)n[i]=0;for(i=Math.max(t-this.t,0);i0)if(0==t)n=this[0]%e;else for(var i=this.t-1;i>=0;--i)n=(t*n+this[i])%e;return n},A.prototype.millerRabin=function(e){var t=this.subtract(A.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var i=t.shiftRight(n);(e=e+1>>1)>K.length&&(e=K.length);for(var r=k(),o=0;o>24},A.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},A.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},A.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var n,i=this.DB-e*this.DB%8,r=0;if(e-- >0)for(i>i)!=(this.s&this.DM)>>i&&(t[r++]=n|this.s<=0;)i<8?(n=(this[e]&(1<>(i+=this.DB-8)):(n=this[e]>>(i-=8)&255,i<=0&&(i+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==r&&(128&this.s)!=(128&n)&&++r,(r>0||n!=this.s)&&(t[r++]=n);return t},A.prototype.equals=function(e){return 0==this.compareTo(e)},A.prototype.min=function(e){return this.compareTo(e)<0?this:e},A.prototype.max=function(e){return this.compareTo(e)>0?this:e},A.prototype.and=function(e){var t=k();return this.bitwiseTo(e,D,t),t},A.prototype.or=function(e){var t=k();return this.bitwiseTo(e,P,t),t},A.prototype.xor=function(e){var t=k();return this.bitwiseTo(e,N,t),t},A.prototype.andNot=function(e){var t=k();return this.bitwiseTo(e,I,t),t},A.prototype.not=function(){for(var e=k(),t=0;t=this.t?0!=this.s:0!=(this[t]&1<1){var l=k();for(i.sqrTo(a[1],l);s<=c;)a[s]=k(),i.mulTo(l,a[s-2],a[s]),s+=2}var h,d,f=e.t-1,p=!0,g=k();for(r=R(e[f])-1;f>=0;){for(r>=u?h=e[f]>>r-u&c:(h=(e[f]&(1<0&&(h|=e[f-1]>>this.DB+r-u)),s=n;0==(1&h);)h>>=1,--s;if((r-=s)<0&&(r+=this.DB,--f),p)a[h].copyTo(o),p=!1;else{for(;s>1;)i.sqrTo(o,g),i.sqrTo(g,o),s-=2;s>0?i.sqrTo(o,g):(d=o,o=g,g=d),i.mulTo(g,a[h],o)}for(;f>=0&&0==(e[f]&1<=0?(n.subTo(i,n),t&&r.subTo(a,r),o.subTo(s,o)):(i.subTo(n,i),t&&a.subTo(r,a),s.subTo(o,s))}return 0!=i.compareTo(A.ONE)?A.ZERO:s.compareTo(e)>=0?s.subtract(e):s.signum()<0?(s.addTo(e,s),s.signum()<0?s.add(e):s):s},A.prototype.pow=function(e){return this.exp(e,new H)},A.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var i=t;t=n,n=i}var r=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(r0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(r=t.getLowestSetBit())>0&&t.rShiftTo(r,t),(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},A.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=K[K.length-1]){for(t=0;t>>8,W[U++]=255&J;U=0,G()}function ee(){if(null==Y){for(G(),(Y=new X).init(W),U=0;U>24,(16711680&r)>>16,(65280&r)>>8,255&r]))),r+=1;return i}function re(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function oe(e,t){this.x=t,this.q=e}function ae(e,t,n,i){this.curve=e,this.x=t,this.y=n,this.z=null==i?A.ONE:i,this.zinv=null}function se(e,t,n){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(n),this.infinity=new ae(this,null,null)}te.prototype.nextBytes=function(e){var t;for(t=0;t0&&t.length>0))throw"Invalid RSA public key";this.n=ne(e,16),this.e=parseInt(t,16)}},re.prototype.encrypt=function(e){var t=function(e,t){if(t=0&&t>0;){var r=e.charCodeAt(i--);r<128?n[--t]=r:r>127&&r<2048?(n[--t]=63&r|128,n[--t]=r>>6|192):(n[--t]=63&r|128,n[--t]=r>>6&63|128,n[--t]=r>>12|224)}n[--t]=0;for(var o=new te,a=new Array;t>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new A(n)}(e,this.n.bitLength()+7>>3);if(null==t)return null;var n=this.doPublic(t);if(null==n)return null;var i=n.toString(16);return 0==(1&i.length)?i:"0"+i},re.prototype.encryptOAEP=function(e,t,n){var i=function(e,t,n,i){var r=ce.crypto.MessageDigest,o=ce.crypto.Util,a=null;if(n||(n="sha1"),"string"==typeof n&&(a=r.getCanonicalAlgName(n),i=r.getHashLength(a),n=function(e){return Ae(o.hashHex(ke(e),a))}),e.length+2*i+2>t)throw"Message too long for RSA";var s,u="";for(s=0;s>3,t,n);if(null==i)return null;var r=this.doPublic(i);if(null==r)return null;var o=r.toString(16);return 0==(1&o.length)?o:"0"+o},re.prototype.type="RSA",oe.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)},oe.prototype.toBigInteger=function(){return this.x},oe.prototype.negate=function(){return new oe(this.q,this.x.negate().mod(this.q))},oe.prototype.add=function(e){return new oe(this.q,this.x.add(e.toBigInteger()).mod(this.q))},oe.prototype.subtract=function(e){return new oe(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))},oe.prototype.multiply=function(e){return new oe(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))},oe.prototype.square=function(){return new oe(this.q,this.x.square().mod(this.q))},oe.prototype.divide=function(e){return new oe(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))},ae.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ae.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ae.prototype.equals=function(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(A.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(A.ZERO))},ae.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(A.ZERO)&&!this.y.toBigInteger().equals(A.ZERO)},ae.prototype.negate=function(){return new ae(this.curve,this.x,this.y.negate(),this.z)},ae.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),n=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(A.ZERO.equals(n))return A.ZERO.equals(t)?this.twice():this.curve.getInfinity();var i=new A("3"),r=this.x.toBigInteger(),o=this.y.toBigInteger(),a=(e.x.toBigInteger(),e.y.toBigInteger(),n.square()),s=a.multiply(n),u=r.multiply(a),c=t.square().multiply(this.z),l=c.subtract(u.shiftLeft(1)).multiply(e.z).subtract(s).multiply(n).mod(this.curve.q),h=u.multiply(i).multiply(t).subtract(o.multiply(s)).subtract(c.multiply(t)).multiply(e.z).add(t.multiply(s)).mod(this.curve.q),d=s.multiply(this.z).multiply(e.z).mod(this.curve.q);return new ae(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(h),d)},ae.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=new A("3"),t=this.x.toBigInteger(),n=this.y.toBigInteger(),i=n.multiply(this.z),r=i.multiply(n).mod(this.curve.q),o=this.curve.a.toBigInteger(),a=t.square().multiply(e);A.ZERO.equals(o)||(a=a.add(this.z.square().multiply(o)));var s=(a=a.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(r)).shiftLeft(1).multiply(i).mod(this.curve.q),u=a.multiply(e).multiply(t).subtract(r.shiftLeft(1)).shiftLeft(2).multiply(r).subtract(a.square().multiply(a)).mod(this.curve.q),c=i.square().multiply(i).shiftLeft(3).mod(this.curve.q);return new ae(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(u),c)},ae.prototype.multiply=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,i=n.multiply(new A("3")),r=this.negate(),o=this;for(t=i.bitLength()-2;t>0;--t){o=o.twice();var a=i.testBit(t);a!=n.testBit(t)&&(o=o.add(a?this:r))}return o},ae.prototype.multiplyTwo=function(e,t,n){var i;i=e.bitLength()>n.bitLength()?e.bitLength()-1:n.bitLength()-1;for(var r=this.curve.getInfinity(),o=this.add(t);i>=0;)r=r.twice(),e.testBit(i)?r=n.testBit(i)?r.add(o):r.add(this):n.testBit(i)&&(r=r.add(t)),--i;return r},se.prototype.getQ=function(){return this.q},se.prototype.getA=function(){return this.a},se.prototype.getB=function(){return this.b},se.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},se.prototype.getInfinity=function(){return this.infinity},se.prototype.fromBigInteger=function(e){return new oe(this.q,e)},se.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var t=(e.length-2)/2,n=e.substr(2,t),i=e.substr(t+2,t);return new ae(this,this.fromBigInteger(new A(n,16)),this.fromBigInteger(new A(i,16)));default:return null}},oe.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},ae.prototype.getEncoded=function(e){var t=function(e,t){var n=e.toByteArrayUnsigned();if(tn.length;)n.unshift(0);return n},n=this.getX().toBigInteger(),i=this.getY().toBigInteger(),r=t(n,32);return e?i.isEven()?r.unshift(2):r.unshift(3):(r.unshift(4),r=r.concat(t(i,32))),r},ae.decodeFrom=function(e,t){var n=t.length-1,i=t.slice(1,1+n/2),r=t.slice(1+n/2,1+n);i.unshift(0),r.unshift(0);var o=new A(i),a=new A(r);return new ae(e,e.fromBigInteger(o),e.fromBigInteger(a))},ae.decodeFromHex=function(e,t){t.substr(0,2);var n=t.length-2,i=t.substr(2,n/2),r=t.substr(2+n/2,n/2),o=new A(i,16),a=new A(r,16);return new ae(e,e.fromBigInteger(o),e.fromBigInteger(a))},ae.prototype.add2D=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.x.equals(e.x))return this.y.equals(e.y)?this.twice():this.curve.getInfinity();var t=e.x.subtract(this.x),n=e.y.subtract(this.y).divide(t),i=n.square().subtract(this.x).subtract(e.x),r=n.multiply(this.x.subtract(i)).subtract(this.y);return new ae(this.curve,i,r)},ae.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=this.curve.fromBigInteger(A.valueOf(2)),t=this.curve.fromBigInteger(A.valueOf(3)),n=this.x.square().multiply(t).add(this.curve.a).divide(this.y.multiply(e)),i=n.square().subtract(this.x.multiply(e)),r=n.multiply(this.x.subtract(i)).subtract(this.y);return new ae(this.curve,i,r)},ae.prototype.multiply2D=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,i=n.multiply(new A("3")),r=this.negate(),o=this;for(t=i.bitLength()-2;t>0;--t){o=o.twice();var a=i.testBit(t);a!=n.testBit(t)&&(o=o.add2D(a?this:r))}return o},ae.prototype.isOnCurve=function(){var e=this.getX().toBigInteger(),t=this.getY().toBigInteger(),n=this.curve.getA().toBigInteger(),i=this.curve.getB().toBigInteger(),r=this.curve.getQ(),o=t.multiply(t).mod(r),a=e.multiply(e).multiply(e).add(n.multiply(e)).add(i).mod(r);return o.equals(a)},ae.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},ae.prototype.validate=function(){var e=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var t=this.getX().toBigInteger(),n=this.getY().toBigInteger();if(t.compareTo(A.ONE)<0||t.compareTo(e.subtract(A.ONE))>0)throw new Error("x coordinate out of bounds");if(n.compareTo(A.ONE)<0||n.compareTo(e.subtract(A.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(e).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ue=function(){var e=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),t=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),i={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function r(e,t,n){return t?i[t]:String.fromCharCode(parseInt(n,16))}var o=new String(""),a=Object.hasOwnProperty;return function(i,s){var u,c,l=i.match(e),h=l[0],d=!1;"{"===h?u={}:"["===h?u=[]:(u=[],d=!0);for(var f=[u],p=1-d,g=l.length;p=0;)delete r[o[l]]}return s.call(t,i,r)}({"":u},"")),u}}();void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.asn1&&ce.asn1||(ce.asn1={}),ce.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1).length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var i="",r=0;r15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+n).toString(16)+t},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ce.asn1.DERAbstractString=function(e){ce.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=we(this.s).toLowerCase()},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},o.lang.extend(ce.asn1.DERAbstractString,ce.asn1.ASN1Object),ce.asn1.DERAbstractTime=function(e){ce.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){return utc=e.getTime()+6e4*e.getTimezoneOffset(),new Date(utc)},this.formatDate=function(e,t,n){var i=this.zeroPadding,r=this.localDateToUTC(e),o=String(r.getFullYear());"utc"==t&&(o=o.substr(2,2));var a=o+i(String(r.getMonth()+1),2)+i(String(r.getDate()),2)+i(String(r.getHours()),2)+i(String(r.getMinutes()),2)+i(String(r.getSeconds()),2);if(!0===n){var s=r.getMilliseconds();if(0!=s){var u=i(String(s),3);a=a+"."+(u=u.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=me(e)},this.setByDateValue=function(e,t,n,i,r,o){var a=new Date(Date.UTC(e,t-1,n,i,r,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},o.lang.extend(ce.asn1.DERAbstractTime,ce.asn1.ASN1Object),ce.asn1.DERAbstractStructured=function(e){ce.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},o.lang.extend(ce.asn1.DERAbstractStructured,ce.asn1.ASN1Object),ce.asn1.DERBoolean=function(){ce.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},o.lang.extend(ce.asn1.DERBoolean,ce.asn1.ASN1Object),ce.asn1.DERInteger=function(e){ce.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=ce.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new A(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},o.lang.extend(ce.asn1.DERInteger,ce.asn1.ASN1Object),ce.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=ce.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}ce.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7r.length&&(r=i[n]);return(e=e.replace(r,"::")).slice(1,-1)}function Ne(e){var t="malformed hex value";if(!e.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw t;if(8!=e.length)return 32==e.length?Pe(e):e;try{return parseInt(e.substr(0,2),16)+"."+parseInt(e.substr(2,2),16)+"."+parseInt(e.substr(4,2),16)+"."+parseInt(e.substr(6,2),16)}catch(e){throw t}}function Ie(e){for(var t=encodeURIComponent(e),n="",i=0;i"7"?"00"+e:e}de.getLblen=function(e,t){if("8"!=e.substr(t+2,1))return 1;var n=parseInt(e.substr(t+3,1));return 0==n?-1:0=2*o)break;if(s>=200)break;i.push(u),a=u,s++}return i},de.getNthChildIdx=function(e,t,n){return de.getChildIdx(e,t)[n]},de.getIdxbyList=function(e,t,n,i){var r,o,a=de;if(0==n.length){if(void 0!==i&&e.substr(t,2)!==i)throw"checking tag doesn't match: "+e.substr(t,2)+"!="+i;return t}return r=n.shift(),o=a.getChildIdx(e,t),a.getIdxbyList(e,o[r],n,i)},de.getTLVbyList=function(e,t,n,i){var r=de,o=r.getIdxbyList(e,t,n);if(void 0===o)throw"can't find nthList object";if(void 0!==i&&e.substr(o,2)!=i)throw"checking tag doesn't match: "+e.substr(o,2)+"!="+i;return r.getTLV(e,o)},de.getVbyList=function(e,t,n,i,r){var o,a,s=de;if(void 0===(o=s.getIdxbyList(e,t,n,i)))throw"can't find nthList object";return a=s.getV(e,o),!0===r&&(a=a.substr(2)),a},de.hextooidstr=function(e){var t=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},n=[],i=e.substr(0,2),r=parseInt(i,16);n[0]=new String(Math.floor(r/40)),n[1]=new String(r%40);for(var o=e.substr(2),a=[],s=0;s0&&(l=l+"."+u.join(".")),l},de.dump=function(e,t,n,i){var r=de,o=r.getV,a=r.dump,s=r.getChildIdx,u=e;e instanceof ce.asn1.ASN1Object&&(u=e.getEncodedHex());var c=function(e,t){return e.length<=2*t?e:e.substr(0,t)+"..(total "+e.length/2+"bytes).."+e.substr(e.length-t,t)};void 0===t&&(t={ommit_long_octet:32}),void 0===n&&(n=0),void 0===i&&(i="");var l=t.ommit_long_octet;if("01"==u.substr(n,2))return"00"==(h=o(u,n))?i+"BOOLEAN FALSE\n":i+"BOOLEAN TRUE\n";if("02"==u.substr(n,2))return i+"INTEGER "+c(h=o(u,n),l)+"\n";if("03"==u.substr(n,2))return i+"BITSTRING "+c(h=o(u,n),l)+"\n";if("04"==u.substr(n,2)){var h=o(u,n);return r.isASN1HEX(h)?(M=i+"OCTETSTRING, encapsulates\n")+a(h,t,0,i+" "):i+"OCTETSTRING "+c(h,l)+"\n"}if("05"==u.substr(n,2))return i+"NULL\n";if("06"==u.substr(n,2)){var d=o(u,n),f=ce.asn1.ASN1Util.oidHexToInt(d),p=ce.asn1.x509.OID.oid2name(f),g=f.replace(/\./g," ");return""!=p?i+"ObjectIdentifier "+p+" ("+g+")\n":i+"ObjectIdentifier ("+g+")\n"}if("0c"==u.substr(n,2))return i+"UTF8String '"+Me(o(u,n))+"'\n";if("13"==u.substr(n,2))return i+"PrintableString '"+Me(o(u,n))+"'\n";if("14"==u.substr(n,2))return i+"TeletexString '"+Me(o(u,n))+"'\n";if("16"==u.substr(n,2))return i+"IA5String '"+Me(o(u,n))+"'\n";if("17"==u.substr(n,2))return i+"UTCTime "+Me(o(u,n))+"\n";if("18"==u.substr(n,2))return i+"GeneralizedTime "+Me(o(u,n))+"\n";if("30"==u.substr(n,2)){if("3000"==u.substr(n,4))return i+"SEQUENCE {}\n";M=i+"SEQUENCE\n";var m=t;if((2==(_=s(u,n)).length||3==_.length)&&"06"==u.substr(_[0],2)&&"04"==u.substr(_[_.length-1],2)){p=r.oidname(o(u,_[0]));var v=JSON.parse(JSON.stringify(t));v.x509ExtName=p,m=v}for(var y=0;y<_.length;y++)M+=a(u,m,_[y],i+" ");return M}if("31"==u.substr(n,2)){M=i+"SET\n";var _=s(u,n);for(y=0;y<_.length;y++)M+=a(u,t,_[y],i+" ");return M}var b=parseInt(u.substr(n,2),16);if(0!=(128&b)){var w=31&b;if(0!=(32&b)){var M=i+"["+w+"]\n";for(_=s(u,n),y=0;y<_.length;y++)M+=a(u,t,_[y],i+" ");return M}return"68747470"==(h=o(u,n)).substr(0,8)&&(h=Me(h)),"subjectAltName"===t.x509ExtName&&2==w&&(h=Me(h)),i+"["+w+"] "+h+"\n"}return i+"UNKNOWN("+u.substr(n,2)+") "+o(u,n)+"\n"},de.isASN1HEX=function(e){var t=de;if(e.length%2==1)return!1;var n=t.getVblen(e,0),i=e.substr(0,2),r=t.getL(e,0);return e.length-i.length-r.length==2*n},de.oidname=function(e){var t=ce.asn1;ce.lang.String.isHex(e)&&(e=t.ASN1Util.oidHexToInt(e));var n=t.x509.OID.oid2name(e);return""===n&&(n=e),n},void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.lang&&ce.lang||(ce.lang={}),ce.lang.String=function(){},"function"==typeof e?(t.utf8tob64u=le=function(t){return ve(new e(t,"utf8").toString("base64"))},t.b64utoutf8=he=function(t){return new e(ye(t),"base64").toString("utf8")}):(t.utf8tob64u=le=function(e){return _e(Oe(Ie(e)))},t.b64utoutf8=he=function(e){return decodeURIComponent(xe(be(e)))}),ce.lang.String.isInteger=function(e){return!!e.match(/^[0-9]+$/)||!!e.match(/^-[0-9]+$/)},ce.lang.String.isHex=function(e){return!(e.length%2!=0||!e.match(/^[0-9a-f]+$/)&&!e.match(/^[0-9A-F]+$/))},ce.lang.String.isBase64=function(e){return!(!(e=e.replace(/\s+/g,"")).match(/^[0-9A-Za-z+\/]+={0,3}$/)||e.length%4!=0)},ce.lang.String.isBase64URL=function(e){return!e.match(/[+/=]/)&&(e=ye(e),ce.lang.String.isBase64(e))},ce.lang.String.isIntegerArray=function(e){return!!(e=e.replace(/\s+/g,"")).match(/^\[[0-9,]+\]$/)},void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.crypto&&ce.crypto||(ce.crypto={}),ce.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:v.algo.MD5,sha1:v.algo.SHA1,sha224:v.algo.SHA224,sha256:v.algo.SHA256,sha384:v.algo.SHA384,sha512:v.algo.SHA512,ripemd160:v.algo.RIPEMD160},this.getDigestInfoHex=function(e,t){if(void 0===this.DIGESTINFOHEAD[t])throw"alg not supported in Util.DIGESTINFOHEAD: "+t;return this.DIGESTINFOHEAD[t]+e},this.getPaddedDigestInfoHex=function(e,t,n){var i=this.getDigestInfoHex(e,t),r=n/4;if(i.length+22>r)throw"key is too short for SigAlg: keylen="+n+","+t;for(var o="0001",a="00"+i,s="",u=r-o.length-a.length,c=0;c=0)return!1;if(n.compareTo(A.ONE)<0||n.compareTo(r)>=0)return!1;var a=n.modInverse(r),s=e.multiply(a).mod(r),u=t.multiply(a).mod(r);return o.multiply(s).add(i.multiply(u)).getX().toBigInteger().mod(r).equals(t)},this.serializeSig=function(e,t){var n=e.toByteArraySigned(),i=t.toByteArraySigned(),r=[];return r.push(2),r.push(n.length),(r=r.concat(n)).push(2),r.push(i.length),(r=r.concat(i)).unshift(r.length),r.unshift(48),r},this.parseSig=function(e){var t;if(48!=e[0])throw new Error("Signature not a valid DERSequence");if(2!=e[t=2])throw new Error("First element in signature must be a DERInteger");var n=e.slice(t+2,t+2+e[t+1]);if(2!=e[t+=2+e[t+1]])throw new Error("Second element in signature must be a DERInteger");var i=e.slice(t+2,t+2+e[t+1]);return t+=2+e[t+1],{r:A.fromByteArrayUnsigned(n),s:A.fromByteArrayUnsigned(i)}},this.parseSigCompact=function(e){if(65!==e.length)throw"Signature has the wrong length";var t=e[0]-27;if(t<0||t>7)throw"Invalid signature type";var n=this.ecparams.n;return{r:A.fromByteArrayUnsigned(e.slice(1,33)).mod(n),s:A.fromByteArrayUnsigned(e.slice(33,65)).mod(n),i:t}},this.readPKCS5PrvKeyHex=function(e){var t,n,i,r=ce.crypto.ECDSA.getName,o=de.getVbyList;if(!1===de.isASN1HEX(e))throw"not ASN.1 hex string";try{t=o(e,0,[2,0],"06"),n=o(e,0,[1],"04");try{i=o(e,0,[3,0],"03").substr(2)}catch(e){}}catch(e){throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=r(t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(e){var t,n,i,r=ce.crypto.ECDSA.getName,o=de.getVbyList;if(!1===de.isASN1HEX(e))throw"not ASN.1 hex string";try{o(e,0,[1,0],"06"),t=o(e,0,[1,1],"06"),n=o(e,0,[2,0,1],"04");try{i=o(e,0,[2,0,2,0],"03").substr(2)}catch(e){}}catch(e){throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=r(t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PubKeyHex=function(e){var t,n,i=ce.crypto.ECDSA.getName,r=de.getVbyList;if(!1===de.isASN1HEX(e))throw"not ASN.1 hex string";try{r(e,0,[0,0],"06"),t=r(e,0,[0,1],"06"),n=r(e,0,[1],"03").substr(2)}catch(e){throw"malformed PKCS#8 ECC public key"}if(this.curveName=i(t),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},this.readCertPubKeyHex=function(e,t){5!==t&&(t=6);var n,i,r=ce.crypto.ECDSA.getName,o=de.getVbyList;if(!1===de.isASN1HEX(e))throw"not ASN.1 hex string";try{n=o(e,0,[0,t,0,1],"06"),i=o(e,0,[0,t,1],"03").substr(2)}catch(e){throw"malformed X.509 certificate ECC public key"}if(this.curveName=r(n),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},void 0!==e&&void 0!==e.curve&&(this.curveName=e.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==e&&(void 0!==e.prv&&this.setPrivateKeyHex(e.prv),void 0!==e.pub&&this.setPublicKeyHex(e.pub))},ce.crypto.ECDSA.parseSigHex=function(e){var t=ce.crypto.ECDSA.parseSigHexInHexRS(e);return{r:new A(t.r,16),s:new A(t.s,16)}},ce.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=de.getChildIdx,n=de.getV;if("30"!=e.substr(0,2))throw"signature is not a ASN.1 sequence";var i=t(e,0);if(2!=i.length)throw"number of signature ASN.1 sequence elements seem wrong";var r=i[0],o=i[1];if("02"!=e.substr(r,2))throw"1st item of sequene of signature is not ASN.1 integer";if("02"!=e.substr(o,2))throw"2nd item of sequene of signature is not ASN.1 integer";return{r:n(e,r),s:n(e,o)}},ce.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=ce.crypto.ECDSA.parseSigHexInHexRS(e),n=t.r,i=t.s;if("00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),"00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),n.length%32==30&&(n="00"+n),i.length%32==30&&(i="00"+i),n.length%32!=0)throw"unknown ECDSA sig r length error";if(i.length%32!=0)throw"unknown ECDSA sig s length error";return n+i},ce.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var t=e.substr(0,e.length/2),n=e.substr(e.length/2);return ce.crypto.ECDSA.hexRSSigToASN1Sig(t,n)},ce.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var n=new A(e,16),i=new A(t,16);return ce.crypto.ECDSA.biRSSigToASN1Sig(n,i)},ce.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var n=ce.asn1,i=new n.DERInteger({bigint:e}),r=new n.DERInteger({bigint:t});return new n.DERSequence({array:[i,r]}).getEncodedHex()},ce.crypto.ECDSA.getName=function(e){return"2a8648ce3d030107"===e?"secp256r1":"2b8104000a"===e?"secp256k1":"2b81040022"===e?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(e)?"secp256r1":-1!=="|secp256k1|".indexOf(e)?"secp256k1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(e)?"secp384r1":null},void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.crypto&&ce.crypto||(ce.crypto={}),ce.crypto.ECParameterDB=new function(){var e={},t={};function n(e){return new A(e,16)}this.getByName=function(n){var i=n;if(void 0!==t[i]&&(i=t[n]),void 0!==e[i])return e[i];throw"unregistered EC curve name: "+i},this.regist=function(i,r,o,a,s,u,c,l,h,d,f,p){e[i]={};var g=n(o),m=n(a),v=n(s),y=n(u),_=n(c),b=new se(g,m,v),w=b.decodePointHex("04"+l+h);e[i].name=i,e[i].keylen=r,e[i].curve=b,e[i].G=w,e[i].n=y,e[i].h=_,e[i].oid=f,e[i].info=p;for(var M=0;M=2*s)break}var h={};return h.keyhex=u.substr(0,2*r[e].keylen),h.ivhex=u.substr(2*r[e].keylen,2*r[e].ivlen),h},s=function(e,t,n,i){var o=v.enc.Base64.parse(e),a=v.enc.Hex.stringify(o);return(0,r[t].proc)(a,n,i)};return{version:"1.0.0",parsePKCS5PEM:function(e){return o(e)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(e,t,n){return a(e,t,n)},decryptKeyB64:function(e,t,n,i){return s(e,t,n,i)},getDecryptedKeyHex:function(e,t){var n=o(e),i=n.cipher,r=n.ivsalt,u=n.data,c=a(i,t,r).keyhex;return s(u,i,c,r)},getEncryptedPKCS5PEMFromPrvKeyHex:function(e,t,n,i,o){var s="";if(void 0!==i&&null!=i||(i="AES-256-CBC"),void 0===r[i])throw"KEYUTIL unsupported algorithm: "+i;return void 0!==o&&null!=o||(o=function(e){var t=v.lib.WordArray.random(e);return v.enc.Hex.stringify(t)}(r[i].ivlen).toUpperCase()),s="-----BEGIN "+e+" PRIVATE KEY-----\r\n",s+="Proc-Type: 4,ENCRYPTED\r\n",s+="DEK-Info: "+i+","+o+"\r\n",s+="\r\n",(s+=function(e,t,n,i){return(0,r[t].eproc)(e,n,i)}(t,i,a(i,n,o).keyhex,o).replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+e+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(t){var n=de.getChildIdx,i=de.getV,r={},o=n(t,0);if(2!=o.length)throw"malformed format: SEQUENCE(0).items != 2: "+o.length;r.ciphertext=i(t,o[1]);var a=n(t,o[0]);if(2!=a.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+a.length;if("2a864886f70d01050d"!=i(t,a[0]))throw"this only supports pkcs5PBES2";var s=n(t,a[1]);if(2!=a.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+s.length;var u=n(t,s[1]);if(2!=u.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+u.length;if("2a864886f70d0307"!=i(t,u[0]))throw"this only supports TripleDES";r.encryptionSchemeAlg="TripleDES",r.encryptionSchemeIV=i(t,u[1]);var c=n(t,s[0]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+c.length;if("2a864886f70d01050c"!=i(t,c[0]))throw"this only supports pkcs5PBKDF2";var l=n(t,c[1]);if(l.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+l.length;r.pbkdf2Salt=i(t,l[0]);var h=i(t,l[1]);try{r.pbkdf2Iter=parseInt(h,16)}catch(e){throw"malformed format pbkdf2Iter: "+h}return r},getPBKDF2KeyHexFromParam:function(e,t){var n=v.enc.Hex.parse(e.pbkdf2Salt),i=v.PBKDF2(t,n,{keySize:6,iterations:e.pbkdf2Iter});return v.enc.Hex.stringify(i)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(e,t){var n=Le(e,"ENCRYPTED PRIVATE KEY"),i=this.parseHexOfEncryptedPKCS8(n),r=Fe.getPBKDF2KeyHexFromParam(i,t),o={};o.ciphertext=v.enc.Hex.parse(i.ciphertext);var a=v.enc.Hex.parse(r),s=v.enc.Hex.parse(i.encryptionSchemeIV),u=v.TripleDES.decrypt(o,a,{iv:s});return v.enc.Hex.stringify(u)},getKeyFromEncryptedPKCS8PEM:function(e,t){var n=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(e,t);return this.getKeyFromPlainPrivatePKCS8Hex(n)},parsePlainPrivatePKCS8Hex:function(e){var t=de,n=t.getChildIdx,i=t.getV,r={algparam:null};if("30"!=e.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var o=n(e,0);if(3!=o.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=e.substr(o[1],2))throw"malformed PKCS8 private key(code:003)";var a=n(e,o[1]);if(2!=a.length)throw"malformed PKCS8 private key(code:004)";if("06"!=e.substr(a[0],2))throw"malformed PKCS8 private key(code:005)";if(r.algoid=i(e,a[0]),"06"==e.substr(a[1],2)&&(r.algparam=i(e,a[1])),"04"!=e.substr(o[2],2))throw"malformed PKCS8 private key(code:006)";return r.keyidx=t.getVidx(e,o[2]),r},getKeyFromPlainPrivatePKCS8PEM:function(e){var t=Le(e,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(t)},getKeyFromPlainPrivatePKCS8Hex:function(e){var t,n=this.parsePlainPrivatePKCS8Hex(e);if("2a864886f70d010101"==n.algoid)t=new re;else if("2a8648ce380401"==n.algoid)t=new ce.crypto.DSA;else{if("2a8648ce3d0201"!=n.algoid)throw"unsupported private key algorithm";t=new ce.crypto.ECDSA}return t.readPKCS8PrvKeyHex(e),t},_getKeyFromPublicPKCS8Hex:function(e){var t,n=de.getVbyList(e,0,[0,0],"06");if("2a864886f70d010101"===n)t=new re;else if("2a8648ce380401"===n)t=new ce.crypto.DSA;else{if("2a8648ce3d0201"!==n)throw"unsupported PKCS#8 public key hex";t=new ce.crypto.ECDSA}return t.readPKCS8PubKeyHex(e),t},parsePublicRawRSAKeyHex:function(e){var t=de.getChildIdx,n=de.getV,i={};if("30"!=e.substr(0,2))throw"malformed RSA key(code:001)";var r=t(e,0);if(2!=r.length)throw"malformed RSA key(code:002)";if("02"!=e.substr(r[0],2))throw"malformed RSA key(code:003)";if(i.n=n(e,r[0]),"02"!=e.substr(r[1],2))throw"malformed RSA key(code:004)";return i.e=n(e,r[1]),i},parsePublicPKCS8Hex:function(e){var t=de,n=t.getChildIdx,i=t.getV,r={algparam:null},o=n(e,0);if(2!=o.length)throw"outer DERSequence shall have 2 elements: "+o.length;var a=o[0];if("30"!=e.substr(a,2))throw"malformed PKCS8 public key(code:001)";var s=n(e,a);if(2!=s.length)throw"malformed PKCS8 public key(code:002)";if("06"!=e.substr(s[0],2))throw"malformed PKCS8 public key(code:003)";if(r.algoid=i(e,s[0]),"06"==e.substr(s[1],2)?r.algparam=i(e,s[1]):"30"==e.substr(s[1],2)&&(r.algparam={},r.algparam.p=t.getVbyList(e,s[1],[0],"02"),r.algparam.q=t.getVbyList(e,s[1],[1],"02"),r.algparam.g=t.getVbyList(e,s[1],[2],"02")),"03"!=e.substr(o[1],2))throw"malformed PKCS8 public key(code:004)";return r.key=i(e,o[1]).substr(2),r}}}();Fe.getKey=function(e,t,n){var i,r=(v=de).getChildIdx,o=v.getVbyList,a=ce.crypto,s=a.ECDSA,u=a.DSA,c=re,l=Le,h=Fe;if(void 0!==c&&e instanceof c)return e;if(void 0!==s&&e instanceof s)return e;if(void 0!==u&&e instanceof u)return e;if(void 0!==e.curve&&void 0!==e.xy&&void 0===e.d)return new s({pub:e.xy,curve:e.curve});if(void 0!==e.curve&&void 0!==e.d)return new s({prv:e.d,curve:e.curve});if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(L=new c).setPublic(e.n,e.e),L;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.co&&void 0===e.qi)return(L=new c).setPrivateEx(e.n,e.e,e.d,e.p,e.q,e.dp,e.dq,e.co),L;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0===e.p)return(L=new c).setPrivate(e.n,e.e,e.d),L;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0===e.x)return(L=new u).setPublic(e.p,e.q,e.g,e.y),L;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0!==e.x)return(L=new u).setPrivate(e.p,e.q,e.g,e.y,e.x),L;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(L=new c).setPublic(be(e.n),be(e.e)),L;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.qi)return(L=new c).setPrivateEx(be(e.n),be(e.e),be(e.d),be(e.p),be(e.q),be(e.dp),be(e.dq),be(e.qi)),L;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d)return(L=new c).setPrivate(be(e.n),be(e.e),be(e.d)),L;if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0===e.d){var d=(E=new s({curve:e.crv})).ecparams.keylen/4,f="04"+("0000000000"+be(e.x)).slice(-d)+("0000000000"+be(e.y)).slice(-d);return E.setPublicKeyHex(f),E}if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0!==e.d){d=(E=new s({curve:e.crv})).ecparams.keylen/4,f="04"+("0000000000"+be(e.x)).slice(-d)+("0000000000"+be(e.y)).slice(-d);var p=("0000000000"+be(e.d)).slice(-d);return E.setPublicKeyHex(f),E.setPrivateKeyHex(p),E}if("pkcs5prv"===n){var g,m=e,v=de;if(9===(g=r(m,0)).length)(L=new c).readPKCS5PrvKeyHex(m);else if(6===g.length)(L=new u).readPKCS5PrvKeyHex(m);else{if(!(g.length>2&&"04"===m.substr(g[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(L=new s).readPKCS5PrvKeyHex(m)}return L}if("pkcs8prv"===n)return h.getKeyFromPlainPrivatePKCS8Hex(e);if("pkcs8pub"===n)return h._getKeyFromPublicPKCS8Hex(e);if("x509pub"===n)return We.getPublicKeyFromCertHex(e);if(-1!=e.indexOf("-END CERTIFICATE-",0)||-1!=e.indexOf("-END X509 CERTIFICATE-",0)||-1!=e.indexOf("-END TRUSTED CERTIFICATE-",0))return We.getPublicKeyFromCertPEM(e);if(-1!=e.indexOf("-END PUBLIC KEY-")){var y=Le(e,"PUBLIC KEY");return h._getKeyFromPublicPKCS8Hex(y)}if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var _=l(e,"RSA PRIVATE KEY");return h.getKey(_,null,"pkcs5prv")}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var b=o(i=l(e,"DSA PRIVATE KEY"),0,[1],"02"),w=o(i,0,[2],"02"),M=o(i,0,[3],"02"),k=o(i,0,[4],"02"),T=o(i,0,[5],"02");return(L=new u).setPrivate(new A(b,16),new A(w,16),new A(M,16),new A(k,16),new A(T,16)),L}if(-1!=e.indexOf("-END PRIVATE KEY-"))return h.getKeyFromPlainPrivatePKCS8PEM(e);if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var S=h.getDecryptedKeyHex(e,t),C=new re;return C.readPKCS5PrvKeyHex(S),C}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var E,L=o(i=h.getDecryptedKeyHex(e,t),0,[1],"04"),z=o(i,0,[2,0],"06"),R=o(i,0,[3,0],"03").substr(2);if(void 0===ce.crypto.OID.oidhex2name[z])throw"undefined OID(hex) in KJUR.crypto.OID: "+z;return(E=new s({curve:ce.crypto.OID.oidhex2name[z]})).setPublicKeyHex(R),E.setPrivateKeyHex(L),E.isPublic=!1,E}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED"))return b=o(i=h.getDecryptedKeyHex(e,t),0,[1],"02"),w=o(i,0,[2],"02"),M=o(i,0,[3],"02"),k=o(i,0,[4],"02"),T=o(i,0,[5],"02"),(L=new u).setPrivate(new A(b,16),new A(w,16),new A(M,16),new A(k,16),new A(T,16)),L;if(-1!=e.indexOf("-END ENCRYPTED PRIVATE KEY-"))return h.getKeyFromEncryptedPKCS8PEM(e,t);throw"not supported argument"},Fe.generateKeypair=function(e,t){if("RSA"==e){var n=t;(a=new re).generate(n,"10001"),a.isPrivate=!0,a.isPublic=!0;var i=new re,r=a.n.toString(16),o=a.e.toString(16);return i.setPublic(r,o),i.isPrivate=!1,i.isPublic=!0,(s={}).prvKeyObj=a,s.pubKeyObj=i,s}if("EC"==e){var a,s,u=t,c=new ce.crypto.ECDSA({curve:u}).generateKeyPairHex();return(a=new ce.crypto.ECDSA({curve:u})).setPublicKeyHex(c.ecpubhex),a.setPrivateKeyHex(c.ecprvhex),a.isPrivate=!0,a.isPublic=!1,(i=new ce.crypto.ECDSA({curve:u})).setPublicKeyHex(c.ecpubhex),i.isPrivate=!1,i.isPublic=!0,(s={}).prvKeyObj=a,s.pubKeyObj=i,s}throw"unknown algorithm: "+e},Fe.getPEM=function(e,t,n,i,r,o){var a=ce.asn1,s=a.DERObjectIdentifier,u=a.DERInteger,c=a.ASN1Util.newObject,l=ce.crypto,h=l.DSA,d=l.ECDSA,f=re;function p(e){return c({seq:[{int:0},{int:{bigint:e.n}},{int:e.e},{int:{bigint:e.d}},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.dmp1}},{int:{bigint:e.dmq1}},{int:{bigint:e.coeff}}]})}function g(e){return c({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a0",!0,{oid:{name:e.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]})}function m(e){return c({seq:[{int:0},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}},{int:{bigint:e.y}},{int:{bigint:e.x}}]})}if((void 0!==f&&e instanceof f||void 0!==h&&e instanceof h||void 0!==d&&e instanceof d)&&1==e.isPublic&&(void 0===t||"PKCS8PUB"==t))return Ee(w=new(0,a.x509.SubjectPublicKeyInfo)(e).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==t&&void 0!==f&&e instanceof f&&(void 0===n||null==n)&&1==e.isPrivate)return Ee(w=p(e).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==t&&void 0!==d&&e instanceof d&&(void 0===n||null==n)&&1==e.isPrivate){var y=new s({name:e.curveName}).getEncodedHex(),_=g(e).getEncodedHex(),b="";return(b+=Ee(y,"EC PARAMETERS"))+Ee(_,"EC PRIVATE KEY")}if("PKCS1PRV"==t&&void 0!==h&&e instanceof h&&(void 0===n||null==n)&&1==e.isPrivate)return Ee(w=m(e).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==t&&void 0!==f&&e instanceof f&&void 0!==n&&null!=n&&1==e.isPrivate){var w=p(e).getEncodedHex();return void 0===i&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",w,n,i,o)}if("PKCS5PRV"==t&&void 0!==d&&e instanceof d&&void 0!==n&&null!=n&&1==e.isPrivate)return w=g(e).getEncodedHex(),void 0===i&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",w,n,i,o);if("PKCS5PRV"==t&&void 0!==h&&e instanceof h&&void 0!==n&&null!=n&&1==e.isPrivate)return w=m(e).getEncodedHex(),void 0===i&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",w,n,i,o);var M=function(e,t){var n=A(e,t);return new c({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:n.pbkdf2Salt}},{int:n.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:n.encryptionSchemeIV}}]}]}]},{octstr:{hex:n.ciphertext}}]}).getEncodedHex()},A=function(e,t){var n=v.lib.WordArray.random(8),i=v.lib.WordArray.random(8),r=v.PBKDF2(t,n,{keySize:6,iterations:100}),o=v.enc.Hex.parse(e),a=v.TripleDES.encrypt(o,r,{iv:i})+"",s={};return s.ciphertext=a,s.pbkdf2Salt=v.enc.Hex.stringify(n),s.pbkdf2Iter=100,s.encryptionSchemeAlg="DES-EDE3-CBC",s.encryptionSchemeIV=v.enc.Hex.stringify(i),s};if("PKCS8PRV"==t&&null!=f&&e instanceof f&&1==e.isPrivate){var k=p(e).getEncodedHex();return w=c({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:k}}]}).getEncodedHex(),void 0===n||null==n?Ee(w,"PRIVATE KEY"):Ee(_=M(w,n),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==t&&void 0!==d&&e instanceof d&&1==e.isPrivate)return k=new c({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]}).getEncodedHex(),w=c({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:e.curveName}}]},{octstr:{hex:k}}]}).getEncodedHex(),void 0===n||null==n?Ee(w,"PRIVATE KEY"):Ee(_=M(w,n),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==t&&void 0!==h&&e instanceof h&&1==e.isPrivate)return k=new u({bigint:e.x}).getEncodedHex(),w=c({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]}]},{octstr:{hex:k}}]}).getEncodedHex(),void 0===n||null==n?Ee(w,"PRIVATE KEY"):Ee(_=M(w,n),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},Fe.getKeyFromCSRPEM=function(e){var t=Le(e,"CERTIFICATE REQUEST");return Fe.getKeyFromCSRHex(t)},Fe.getKeyFromCSRHex=function(e){var t=Fe.parseCSRHex(e);return Fe.getKey(t.p8pubkeyhex,null,"pkcs8pub")},Fe.parseCSRHex=function(e){var t=de.getChildIdx,n=de.getTLV,i={},r=e;if("30"!=r.substr(0,2))throw"malformed CSR(code:001)";var o=t(r,0);if(o.length<1)throw"malformed CSR(code:002)";if("30"!=r.substr(o[0],2))throw"malformed CSR(code:003)";var a=t(r,o[0]);if(a.length<3)throw"malformed CSR(code:004)";return i.p8pubkeyhex=n(r,a[2]),i},Fe.getJWKFromKey=function(e){var t={};if(e instanceof re&&e.isPrivate)return t.kty="RSA",t.n=_e(e.n.toString(16)),t.e=_e(e.e.toString(16)),t.d=_e(e.d.toString(16)),t.p=_e(e.p.toString(16)),t.q=_e(e.q.toString(16)),t.dp=_e(e.dmp1.toString(16)),t.dq=_e(e.dmq1.toString(16)),t.qi=_e(e.coeff.toString(16)),t;if(e instanceof re&&e.isPublic)return t.kty="RSA",t.n=_e(e.n.toString(16)),t.e=_e(e.e.toString(16)),t;if(e instanceof ce.crypto.ECDSA&&e.isPrivate){if("P-256"!==(i=e.getShortNISTPCurveName())&&"P-384"!==i)throw"unsupported curve name for JWT: "+i;var n=e.getPublicKeyXYHex();return t.kty="EC",t.crv=i,t.x=_e(n.x),t.y=_e(n.y),t.d=_e(e.prvKeyHex),t}if(e instanceof ce.crypto.ECDSA&&e.isPublic){var i;if("P-256"!==(i=e.getShortNISTPCurveName())&&"P-384"!==i)throw"unsupported curve name for JWT: "+i;return n=e.getPublicKeyXYHex(),t.kty="EC",t.crv=i,t.x=_e(n.x),t.y=_e(n.y),t}throw"not supported key object"},re.getPosArrayOfChildrenFromHex=function(e){return de.getChildIdx(e,0)},re.getHexValueArrayOfChildrenFromHex=function(e){var t,n=de.getV,i=n(e,(t=re.getPosArrayOfChildrenFromHex(e))[0]),r=n(e,t[1]),o=n(e,t[2]),a=n(e,t[3]),s=n(e,t[4]),u=n(e,t[5]),c=n(e,t[6]),l=n(e,t[7]),h=n(e,t[8]);return(t=new Array).push(i,r,o,a,s,u,c,l,h),t},re.prototype.readPrivateKeyFromPEMString=function(e){var t=Le(e),n=re.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8])},re.prototype.readPKCS5PrvKeyHex=function(e){var t=re.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},re.prototype.readPKCS8PrvKeyHex=function(e){var t,n,i,r,o,a,s,u,c=de.getVbyList;if(!1===de.isASN1HEX(e))throw"not ASN.1 hex string";try{t=c(e,0,[2,0,1],"02"),n=c(e,0,[2,0,2],"02"),i=c(e,0,[2,0,3],"02"),r=c(e,0,[2,0,4],"02"),o=c(e,0,[2,0,5],"02"),a=c(e,0,[2,0,6],"02"),s=c(e,0,[2,0,7],"02"),u=c(e,0,[2,0,8],"02")}catch(e){throw"malformed PKCS#8 plain RSA private key"}this.setPrivateEx(t,n,i,r,o,a,s,u)},re.prototype.readPKCS5PubKeyHex=function(e){var t=de,n=t.getV;if(!1===t.isASN1HEX(e))throw"keyHex is not ASN.1 hex string";var i=t.getChildIdx(e,0);if(2!==i.length||"02"!==e.substr(i[0],2)||"02"!==e.substr(i[1],2))throw"wrong hex for PKCS#5 public key";var r=n(e,i[0]),o=n(e,i[1]);this.setPublic(r,o)},re.prototype.readPKCS8PubKeyHex=function(e){var t=de;if(!1===t.isASN1HEX(e))throw"not ASN.1 hex string";if("06092a864886f70d010101"!==t.getTLVbyList(e,0,[0,0]))throw"not PKCS8 RSA public key";var n=t.getTLVbyList(e,0,[1,0]);this.readPKCS5PubKeyHex(n)},re.prototype.readCertPubKeyHex=function(e,t){var n,i;(n=new We).readCertHex(e),i=n.getPublicKeyHex(),this.readPKCS8PubKeyHex(i)};var He=new RegExp("");function qe(e,t){for(var n="",i=t/4-e.length,r=0;r>24,(16711680&r)>>16,(65280&r)>>8,255&r])))),r+=1;return i}function Ye(e){for(var t in ce.crypto.Util.DIGESTINFOHEAD){var n=ce.crypto.Util.DIGESTINFOHEAD[t],i=n.length;if(e.substring(0,i)==n)return[t,e.substring(i)]}return[]}function We(){var e=de,t=e.getChildIdx,n=e.getV,i=e.getTLV,r=e.getVbyList,o=e.getTLVbyList,a=e.getIdxbyList,s=e.getVidx,u=e.oidname,c=We,l=Le;this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==o(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return r(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){return u(r(this.hex,0,[0,2+this.foffset,0],"06"))},this.getIssuerHex=function(){return o(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return c.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return o(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return c.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var e=r(this.hex,0,[0,4+this.foffset,0]);return e=e.replace(/(..)/g,"%$1"),decodeURIComponent(e)},this.getNotAfter=function(){var e=r(this.hex,0,[0,4+this.foffset,1]);return e=e.replace(/(..)/g,"%$1"),decodeURIComponent(e)},this.getPublicKeyHex=function(){return e.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return a(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var e=this.getPublicKeyIdx();return a(this.hex,e,[1,0],"30")},this.getPublicKey=function(){return Fe.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return u(r(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return r(this.hex,0,[2],"03",!0)},this.verifySignature=function(e){var t=this.getSignatureAlgorithmName(),n=this.getSignatureValueHex(),i=o(this.hex,0,[0],"30"),r=new ce.crypto.Signature({alg:t});return r.init(e),r.updateHex(i),r.verify(n)},this.parseExt=function(){if(3!==this.version)return-1;var n=a(this.hex,0,[0,7,0],"30"),i=t(this.hex,n);this.aExtInfo=new Array;for(var o=0;o0&&(c=new Array(n),(new te).nextBytes(c),c=String.fromCharCode.apply(String,c));var l=Ae(u(ke("\0\0\0\0\0\0\0\0"+r+c))),h=[];for(i=0;i>8*s-a&255),i=0;ithis.n.bitLength())return 0;var i=Ye(this.doPublic(n).toString(16).replace(/^1f+00/,""));if(0==i.length)return!1;var r=i[0];return i[1]==function(e){return ce.crypto.Util.hashString(e,r)}(e)},re.prototype.verifyWithMessageHash=function(e,t){var n=ne(t=(t=t.replace(He,"")).replace(/[ \n]+/g,""),16);if(n.bitLength()>this.n.bitLength())return 0;var i=Ye(this.doPublic(n).toString(16).replace(/^1f+00/,""));return 0!=i.length&&i[1]==e},re.prototype.verifyPSS=function(e,t,n,i){var r=function(e){return ce.crypto.Util.hashHex(e,n)}(ke(e));return void 0===i&&(i=-1),this.verifyWithMessageHashPSS(r,t,n,i)},re.prototype.verifyWithMessageHashPSS=function(e,t,n,i){var r=new A(t,16);if(r.bitLength()>this.n.bitLength())return!1;var o,a=function(e){return ce.crypto.Util.hashHex(e,n)},s=Ae(e),u=s.length,c=this.n.bitLength()-1,l=Math.ceil(c/8);if(-1===i||void 0===i)i=u;else if(-2===i)i=l-u-2;else if(i<-2)throw"invalid salt length";if(l>8*l-c&255;if(0!=(d.charCodeAt(0)&p))throw"bits beyond keysize not zero";var g=je(f,d.length,a),m=[];for(o=0;o0&&-1==(":"+i.join(":")+":").indexOf(":"+m+":"))throw"algorithm '"+m+"' not accepted in the list";if("none"!=m&&null===t)throw"key shall be specified to verify.";if("string"==typeof t&&-1!=t.indexOf("-----BEGIN ")&&(t=Fe.getKey(t)),!("RS"!=d&&"PS"!=d||t instanceof r))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==d&&!(t instanceof u))throw"key shall be a ECDSA obj for ES* algs";var v=null;if(void 0===o.jwsalg2sigalg[g.alg])throw"unsupported alg name: "+m;if("none"==(v=o.jwsalg2sigalg[m]))throw"not supported";if("Hmac"==v.substr(0,4)){if(void 0===t)throw"hexadecimal key shall be specified for HMAC";var y=new c({alg:v,pass:t});return y.updateString(f),p==y.doFinal()}if(-1!=v.indexOf("withECDSA")){var _,b=null;try{b=u.concatSigToASN1Sig(p)}catch(e){return!1}return(_=new l({alg:v})).init(t),_.updateString(f),_.verify(b)}return(_=new l({alg:v})).init(t),_.updateString(f),_.verify(p)},ce.jws.JWS.parse=function(e){var t,n,i=e.split("."),r={};if(2!=i.length&&3!=i.length)throw"malformed sJWS: wrong number of '.' splitted elements";return t=i[1],3==i.length&&(n=i[2]),r.headerObj=ce.jws.JWS.readSafeJSONString(he(i[0])),r.payloadObj=ce.jws.JWS.readSafeJSONString(he(t)),r.headerPP=JSON.stringify(r.headerObj,null," "),r.payloadPP=null==r.payloadObj?he(t):JSON.stringify(r.payloadObj,null," "),void 0!==n&&(r.sigHex=be(n)),r},ce.jws.JWS.verifyJWT=function(e,t,i){var r=ce.jws,o=r.JWS,a=o.readSafeJSONString,s=o.inArray,u=o.includedArray,c=e.split("."),l=c[0],h=c[1],d=(be(c[2]),a(he(l))),f=a(he(h));if(void 0===d.alg)return!1;if(void 0===i.alg)throw"acceptField.alg shall be specified";if(!s(d.alg,i.alg))return!1;if(void 0!==f.iss&&"object"===n(i.iss)&&!s(f.iss,i.iss))return!1;if(void 0!==f.sub&&"object"===n(i.sub)&&!s(f.sub,i.sub))return!1;if(void 0!==f.aud&&"object"===n(i.aud))if("string"==typeof f.aud){if(!s(f.aud,i.aud))return!1}else if("object"==n(f.aud)&&!u(f.aud,i.aud))return!1;var p=r.IntDate.getNow();return void 0!==i.verifyAt&&"number"==typeof i.verifyAt&&(p=i.verifyAt),void 0!==i.gracePeriod&&"number"==typeof i.gracePeriod||(i.gracePeriod=0),!(void 0!==f.exp&&"number"==typeof f.exp&&f.exp+i.gracePeriodt.length&&(n=t.length);for(var i=0;i=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(i)return H(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function m(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=u.from(t,i)),u.isBuffer(t))return 0===t.length?-1:v(e,t,n,i,r);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,i,r){var o,a=1,s=e.length,u=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var h=!0,d=0;dr&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a>8,r.push(n%256),r.push(i);return r}(t,e.length-n),e,n,i)}function k(e,t,n){return i.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r239?4:c>223?3:c>191?2:1;if(r+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[r+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:a=e[r+2],128==(192&(o=e[r+1]))&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:a=e[r+2],s=e[r+3],128==(192&(o=e[r+1]))&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(i.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),i.push(l),r+=h}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);for(var n="",i=0;ithis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}).apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,i,r){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(r>>>=0)-(i>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(i,r),l=e.slice(t,n),h=0;hr)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return M(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function C(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;ri)&&(n=i);for(var r="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,i,r,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function x(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r>>8*(i?r:1-r)}function D(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r>>8*(i?r:3-r)&255}function P(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,i,o){return o||P(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function I(e,t,n,i,o){return o||P(e,0,n,8),r.write(e,t,n,i,52,8),n+8}u.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(r*=256);)i+=this[e+--t]*r;return i},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e],r=1,o=0;++o=(r*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),r.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),r.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),r.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),r.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,i){e=+e,t|=0,n|=0,i||O(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+r]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,n,i){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(28))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[1];return 3*(t[0]+n)/4-n},t.toByteArray=function(e){for(var t,n=c(e),i=n[0],a=n[1],s=new o(function(e,t,n){return 3*(t+n)/4-n}(0,i,a)),u=0,l=a>0?i-4:i,h=0;h>16&255,s[u++]=t>>8&255,s[u++]=255&t;return 2===a&&(t=r[e.charCodeAt(h)]<<2|r[e.charCodeAt(h+1)]>>4,s[u++]=255&t),1===a&&(t=r[e.charCodeAt(h)]<<10|r[e.charCodeAt(h+1)]<<4|r[e.charCodeAt(h+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t),s},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,o=[],a=0,s=n-r;as?s:a+16383));return 1===r?o.push(i[(t=e[n-1])>>2]+i[t<<4&63]+"=="):2===r&&o.push(i[(t=(e[n-2]<<8)+e[n-1])>>10]+i[t>>4&63]+i[t<<2&63]+"="),o.join("")};for(var i=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var r,o=[],a=t;a>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,u=(1<>1,l=-7,h=n?r-1:0,d=n?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+e[t+h],h+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=i;l>0;a=256*a+e[t+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=c}return(f?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var a,s,u,c=8*o-r-1,l=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(t*u-1)*Math.pow(2,r),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;e[n+f]=255&s,f+=p,s/=256,r-=8);for(a=a<0;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.jws,n=e.KeyUtil,r=e.X509,o=e.crypto,a=e.hextob64u,s=e.b64tohex,u=e.AllowedSigningAlgs;return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.parseJwt=function e(n){i.Log.debug("JoseUtil.parseJwt");try{var r=t.JWS.parse(n);return{header:r.headerObj,payload:r.payloadObj}}catch(e){i.Log.error(e)}},e.validateJwt=function(t,o,a,u,c,l,h){i.Log.debug("JoseUtil.validateJwt");try{if("RSA"===o.kty)if(o.e&&o.n)o=n.getKey(o);else{if(!o.x5c||!o.x5c.length)return i.Log.error("JoseUtil.validateJwt: RSA key missing key material",o),Promise.reject(new Error("RSA key missing key material"));var d=s(o.x5c[0]);o=r.getPublicKeyFromCertHex(d)}else{if("EC"!==o.kty)return i.Log.error("JoseUtil.validateJwt: Unsupported key type",o&&o.kty),Promise.reject(new Error(o.kty));if(!(o.crv&&o.x&&o.y))return i.Log.error("JoseUtil.validateJwt: EC key missing key material",o),Promise.reject(new Error("EC key missing key material"));o=n.getKey(o)}return e._validateJwt(t,o,a,u,c,l,h)}catch(e){return i.Log.error(e&&e.message||e),Promise.reject("JWT validation failed")}},e.validateJwtAttributes=function(t,n,r,o,a,s){o||(o=0),a||(a=parseInt(Date.now()/1e3));var u=e.parseJwt(t).payload;if(!u.iss)return i.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(u.iss!==n)return i.Log.error("JoseUtil._validateJwt: Invalid issuer in token",u.iss),Promise.reject(new Error("Invalid issuer in token: "+u.iss));if(!u.aud)return i.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(u.aud===r||Array.isArray(u.aud)&&u.aud.indexOf(r)>=0))return i.Log.error("JoseUtil._validateJwt: Invalid audience in token",u.aud),Promise.reject(new Error("Invalid audience in token: "+u.aud));if(u.azp&&u.azp!==r)return i.Log.error("JoseUtil._validateJwt: Invalid azp in token",u.azp),Promise.reject(new Error("Invalid azp in token: "+u.azp));if(!s){var c=a+o,l=a-o;if(!u.iat)return i.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(c>>((3&t)<<3)&255;return r}}},function(e,t){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){var i=t||0;return[n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]]].join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigninResponse=void 0;var i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"#";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=r.UrlUtility.parseUrlFragment(t,n);this.error=i.error,this.error_description=i.error_description,this.error_uri=i.error_uri,this.code=i.code,this.state=i.state,this.id_token=i.id_token,this.session_state=i.session_state,this.access_token=i.access_token,this.token_type=i.token_type,this.scope=i.scope,this.profile=void 0,this.expires_in=i.expires_in}return i(e,[{key:"expires_in",get:function(){if(this.expires_at){var e=parseInt(Date.now()/1e3);return this.expires_at-e}},set:function(e){var t=parseInt(e);if("number"==typeof t&&t>0){var n=parseInt(Date.now()/1e3);this.expires_at=n+t}}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutRequest=void 0;var i=n(0),r=n(3),o=n(8);t.SignoutRequest=function e(t){var n=t.url,a=t.id_token_hint,s=t.post_logout_redirect_uri,u=t.data,c=t.extraQueryParams,l=t.request_type;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw i.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var h in a&&(n=r.UrlUtility.addQueryParam(n,"id_token_hint",a)),s&&(n=r.UrlUtility.addQueryParam(n,"post_logout_redirect_uri",s),u&&(this.state=new o.State({data:u,request_type:l}),n=r.UrlUtility.addQueryParam(n,"state",this.state.id))),c)n=r.UrlUtility.addQueryParam(n,h,c[h]);this.url=n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutResponse=void 0;var i=n(3);t.SignoutResponse=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=i.UrlUtility.parseUrlFragment(t,"?");this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.state=n.state}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryWebStorage=void 0;var i=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.SilentRenewService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.SessionMonitor,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.TokenRevocationClient,p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d.TokenClient,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:f.JoseUtil;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n instanceof a.UserManagerSettings||(n=new a.UserManagerSettings(n));var m=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return m._events=new u.UserManagerEvents(n),m._silentRenewService=new i(m),m.settings.automaticSilentRenew&&(r.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),m.startSilentRenew()),m.settings.monitorSession&&(r.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),m._sessionMonitor=new o(m)),m._tokenRevocationClient=new s(m._settings),m._tokenClient=new p(m._settings),m._joseUtil=g,m}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getUser=function(){var e=this;return this._loadUser().then(function(t){return t?(r.Log.info("UserManager.getUser: user loaded"),e._events.load(t,!1),t):(r.Log.info("UserManager.getUser: user not found in storage"),null)})},t.prototype.removeUser=function(){var e=this;return this.storeUser(null).then(function(){r.Log.info("UserManager.removeUser: user removed from storage"),e._events.unload()})},t.prototype.signinRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:r";var t={useReplaceToNavigate:e.useReplaceToNavigate};return this._signinStart(e,this._redirectNavigator,t).then(function(){r.Log.info("UserManager.signinRedirect: successful")})},t.prototype.signinRedirectCallback=function(e){return this._signinEnd(e||this._redirectNavigator.url).then(function(e){return e.profile&&e.profile.sub?r.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",e.profile.sub):r.Log.info("UserManager.signinRedirectCallback: no sub"),e})},t.prototype.signinPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:p";var t=e.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.display="popup",this._signin(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then(function(e){return e&&(e.profile&&e.profile.sub?r.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",e.profile.sub):r.Log.info("UserManager.signinPopup: no sub")),e})):(r.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},t.prototype.signinPopupCallback=function(e){return this._signinCallback(e,this._popupNavigator).then(function(e){return e&&(e.profile&&e.profile.sub?r.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",e.profile.sub):r.Log.info("UserManager.signinPopupCallback: no sub")),e}).catch(function(e){r.Log.error(e.message)})},t.prototype.signinSilent=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t=Object.assign({},t)).request_type="si:s",this._loadUser().then(function(n){return n&&n.refresh_token?(t.refresh_token=n.refresh_token,e._useRefreshToken(t)):(t.id_token_hint=t.id_token_hint||e.settings.includeIdTokenInSilentRenew&&n&&n.id_token,n&&e._settings.validateSubOnSilentRenew&&(r.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",n.profile.sub),t.current_sub=n.profile.sub),e._signinSilentIframe(t))})},t.prototype._useRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(t).then(function(t){return t?t.access_token?e._loadUser().then(function(n){if(n){var i=Promise.resolve();return t.id_token&&(i=e._validateIdTokenFromTokenRefreshToken(n.profile,t.id_token)),i.then(function(){return r.Log.debug("UserManager._useRefreshToken: refresh token response success"),n.id_token=t.id_token,n.access_token=t.access_token,n.refresh_token=t.refresh_token||n.refresh_token,n.expires_in=t.expires_in,e.storeUser(n).then(function(){return e._events.load(n),n})})}return null}):(r.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(r.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))})},t.prototype._validateIdTokenFromTokenRefreshToken=function(e,t){var n=this;return this._metadataService.getIssuer().then(function(i){return n._joseUtil.validateJwtAttributes(t,i,n._settings.client_id,n._settings.clockSkew).then(function(t){return t?t.sub!==e.sub?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):t.auth_time&&t.auth_time!==e.auth_time?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):t.azp&&t.azp!==e.azp?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!t.azp&&e.azp?(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(r.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))})})},t.prototype._signinSilentIframe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.prompt=e.prompt||"none",this._signin(e,this._iframeNavigator,{startUrl:t,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(e){return e&&(e.profile&&e.profile.sub?r.Log.info("UserManager.signinSilent: successful, signed in sub: ",e.profile.sub):r.Log.info("UserManager.signinSilent: no sub")),e})):(r.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype.signinSilentCallback=function(e){return this._signinCallback(e,this._iframeNavigator).then(function(e){return e&&(e.profile&&e.profile.sub?r.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",e.profile.sub):r.Log.info("UserManager.signinSilentCallback: no sub")),e})},t.prototype.signinCallback=function(e){var t=this;return this.readSigninResponseState(e).then(function(n){var i=n.state;return"si:r"===i.request_type?t.signinRedirectCallback(e):"si:p"===i.request_type?t.signinPopupCallback(e):"si:s"===i.request_type?t.signinSilentCallback(e):Promise.reject(new Error("invalid response_type in state"))})},t.prototype.signoutCallback=function(e,t){var n=this;return this.readSignoutResponseState(e).then(function(i){var r=i.state,o=i.response;return r?"so:r"===r.request_type?n.signoutRedirectCallback(e):"so:p"===r.request_type?n.signoutPopupCallback(e,t):Promise.reject(new Error("invalid response_type in state")):o})},t.prototype.querySessionStatus=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:s";var n=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return n?(t.redirect_uri=n,t.prompt="none",t.response_type=t.response_type||this.settings.query_status_response_type,t.scope=t.scope||"openid",t.skipUserInfo=!0,this._signinStart(t,this._iframeNavigator,{startUrl:n,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(t){return e.processSigninResponse(t.url).then(function(e){if(r.Log.debug("UserManager.querySessionStatus: got signin response"),e.session_state&&e.profile.sub)return r.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",e.profile.sub),{session_state:e.session_state,sub:e.profile.sub,sid:e.profile.sid};r.Log.info("querySessionStatus successful, user not authenticated")}).catch(function(t){if(t.session_state&&e.settings.monitorAnonymousSession&&("login_required"==t.message||"consent_required"==t.message||"interaction_required"==t.message||"account_selection_required"==t.message))return r.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:t.session_state};throw t})})):(r.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype._signin=function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(e,t,i).then(function(t){return n._signinEnd(t.url,e)})},t.prototype._signinStart=function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.prepare(i).then(function(t){return r.Log.debug("UserManager._signinStart: got navigator window handle"),n.createSigninRequest(e).then(function(e){return r.Log.debug("UserManager._signinStart: got signin request"),i.url=e.url,i.id=e.state.id,t.navigate(i)}).catch(function(e){throw t.close&&(r.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),t.close()),e})})},t.prototype._signinEnd=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(e).then(function(e){r.Log.debug("UserManager._signinEnd: got signin response");var i=new s.User(e);if(n.current_sub){if(n.current_sub!==i.profile.sub)return r.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",i.profile.sub),Promise.reject(new Error("login_required"));r.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return t.storeUser(i).then(function(){return r.Log.debug("UserManager._signinEnd: user stored"),t._events.load(i),i})})},t.prototype._signinCallback=function(e,t){return r.Log.debug("UserManager._signinCallback"),t.callback(e)},t.prototype.signoutRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:r";var t=e.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;t&&(e.post_logout_redirect_uri=t);var n={useReplaceToNavigate:e.useReplaceToNavigate};return this._signoutStart(e,this._redirectNavigator,n).then(function(){r.Log.info("UserManager.signoutRedirect: successful")})},t.prototype.signoutRedirectCallback=function(e){return this._signoutEnd(e||this._redirectNavigator.url).then(function(e){return r.Log.info("UserManager.signoutRedirectCallback: successful"),e})},t.prototype.signoutPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:p";var t=e.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return e.post_logout_redirect_uri=t,e.display="popup",e.post_logout_redirect_uri&&(e.state=e.state||{}),this._signout(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then(function(){r.Log.info("UserManager.signoutPopup: successful")})},t.prototype.signoutPopupCallback=function(e,t){return void 0===t&&"boolean"==typeof e&&(t=e,e=null),this._popupNavigator.callback(e,t,"?").then(function(){r.Log.info("UserManager.signoutPopupCallback: successful")})},t.prototype._signout=function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(e,t,i).then(function(e){return n._signoutEnd(e.url)})},t.prototype._signoutStart=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,n=arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.prepare(i).then(function(n){return r.Log.debug("UserManager._signoutStart: got navigator window handle"),t._loadUser().then(function(o){return r.Log.debug("UserManager._signoutStart: loaded current user from storage"),(t._settings.revokeAccessTokenOnSignout?t._revokeInternal(o):Promise.resolve()).then(function(){var a=e.id_token_hint||o&&o.id_token;return a&&(r.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),e.id_token_hint=a),t.removeUser().then(function(){return r.Log.debug("UserManager._signoutStart: user removed, creating signout request"),t.createSignoutRequest(e).then(function(e){return r.Log.debug("UserManager._signoutStart: got signout request"),i.url=e.url,e.state&&(i.id=e.state.id),n.navigate(i)})})})}).catch(function(e){throw n.close&&(r.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),n.close()),e})})},t.prototype._signoutEnd=function(e){return this.processSignoutResponse(e).then(function(e){return r.Log.debug("UserManager._signoutEnd: got signout response"),e})},t.prototype.revokeAccessToken=function(){var e=this;return this._loadUser().then(function(t){return e._revokeInternal(t,!0).then(function(n){if(n)return r.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),t.access_token=null,t.refresh_token=null,t.expires_at=null,t.token_type=null,e.storeUser(t).then(function(){r.Log.debug("UserManager.revokeAccessToken: user stored"),e._events.load(t)})})}).then(function(){r.Log.info("UserManager.revokeAccessToken: access token revoked successfully")})},t.prototype._revokeInternal=function(e,t){var n=this;if(e){var i=e.refresh_token;return this._revokeAccessTokenInternal(e.access_token,t).then(function(e){return n._revokeRefreshTokenInternal(i,t).then(function(t){return e||t||r.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),e||t})})}return Promise.resolve(!1)},t.prototype._revokeAccessTokenInternal=function(e,t){return!e||e.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(e,t).then(function(){return!0})},t.prototype._revokeRefreshTokenInternal=function(e,t){return e?this._tokenRevocationClient.revoke(e,t,"refresh_token").then(function(){return!0}):Promise.resolve(!1)},t.prototype.startSilentRenew=function(){this._silentRenewService.start()},t.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},t.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then(function(e){return e?(r.Log.debug("UserManager._loadUser: user storageString loaded"),s.User.fromStorageString(e)):(r.Log.debug("UserManager._loadUser: no user storageString"),null)})},t.prototype.storeUser=function(e){if(e){r.Log.debug("UserManager.storeUser: storing user");var t=e.toStorageString();return this._userStore.set(this._userStoreKey,t)}return r.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},i(t,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),t}(o.OidcClient)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerSettings=void 0;var i=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},i=n.popup_redirect_uri,r=n.popup_post_logout_redirect_uri,h=n.popupWindowFeatures,d=n.popupWindowTarget,f=n.silent_redirect_uri,p=n.silentRequestTimeout,g=n.automaticSilentRenew,m=void 0!==g&&g,v=n.validateSubOnSilentRenew,y=void 0!==v&&v,_=n.includeIdTokenInSilentRenew,b=void 0===_||_,w=n.monitorSession,M=void 0===w||w,A=n.monitorAnonymousSession,k=void 0!==A&&A,T=n.checkSessionInterval,S=void 0===T?2e3:T,C=n.stopCheckSessionOnError,E=void 0===C||C,L=n.query_status_response_type,z=n.revokeAccessTokenOnSignout,R=void 0!==z&&z,O=n.accessTokenExpiringNotificationTime,x=void 0===O?60:O,D=n.redirectNavigator,P=void 0===D?new o.RedirectNavigator:D,N=n.popupNavigator,I=void 0===N?new a.PopupNavigator:N,B=n.iframeNavigator,F=void 0===B?new s.IFrameNavigator:B,H=n.userStore,q=void 0===H?new u.WebStorageStateStore({store:c.Global.sessionStorage}):H;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var j=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,arguments[0]));return j._popup_redirect_uri=i,j._popup_post_logout_redirect_uri=r,j._popupWindowFeatures=h,j._popupWindowTarget=d,j._silent_redirect_uri=f,j._silentRequestTimeout=p,j._automaticSilentRenew=m,j._validateSubOnSilentRenew=y,j._includeIdTokenInSilentRenew=b,j._accessTokenExpiringNotificationTime=x,j._monitorSession=M,j._monitorAnonymousSession=k,j._checkSessionInterval=S,j._stopCheckSessionOnError=E,j._query_status_response_type=L||(arguments[0]&&arguments[0].response_type?l.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":"id_token"),j._revokeAccessTokenOnSignout=R,j._redirectNavigator=P,j._popupNavigator=I,j._iframeNavigator=F,j._userStore=q,j}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),t}(r.OidcClientSettings)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectNavigator=void 0;var i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];i.Log.debug("UserManagerEvents.load"),e.prototype.load.call(this,t),n&&this._userLoaded.raise(t)},t.prototype.unload=function(){i.Log.debug("UserManagerEvents.unload"),e.prototype.unload.call(this),this._userUnloaded.raise()},t.prototype.addUserLoaded=function(e){this._userLoaded.addHandler(e)},t.prototype.removeUserLoaded=function(e){this._userLoaded.removeHandler(e)},t.prototype.addUserUnloaded=function(e){this._userUnloaded.addHandler(e)},t.prototype.removeUserUnloaded=function(e){this._userUnloaded.removeHandler(e)},t.prototype.addSilentRenewError=function(e){this._silentRenewError.addHandler(e)},t.prototype.removeSilentRenewError=function(e){this._silentRenewError.removeHandler(e)},t.prototype._raiseSilentRenewError=function(e){i.Log.debug("UserManagerEvents._raiseSilentRenewError",e.message),this._silentRenewError.raise(e)},t.prototype.addUserSignedIn=function(e){this._userSignedIn.addHandler(e)},t.prototype.removeUserSignedIn=function(e){this._userSignedIn.removeHandler(e)},t.prototype._raiseUserSignedIn=function(){i.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},t.prototype.addUserSignedOut=function(e){this._userSignedOut.addHandler(e)},t.prototype.removeUserSignedOut=function(e){this._userSignedOut.removeHandler(e)},t.prototype._raiseUserSignedOut=function(){i.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},t.prototype.addUserSessionChanged=function(e){this._userSessionChanged.addHandler(e)},t.prototype.removeUserSessionChanged=function(e){this._userSessionChanged.removeHandler(e)},t.prototype._raiseUserSessionChanged=function(){i.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},t}(r.AccessTokenEvents)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=void 0;var i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:o.Global.timer,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return a._timer=i,a._nowFunc=r||function(){return Date.now()/1e3},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.init=function(e){e<=0&&(e=1),e=parseInt(e);var t=this.now+e;if(this.expiration===t&&this._timerHandle)r.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),r.Log.debug("Timer.init timer "+this._name+" for duration:",e),this._expiration=t;var n=5;e0&&u>s&&(u=s);for(var c=0;c=0?(l=p.substr(0,g),h=p.substr(g+1)):(l=p,h=""),d=decodeURIComponent(l),f=decodeURIComponent(h),t(o,d)?Array.isArray(o[d])?o[d].push(f):o[d]=[o[d],f]:o[d]=f}return o}},5341:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,i,r){return n=n||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(r){var o=encodeURIComponent(t(r))+i;return Array.isArray(e[r])?e[r].map(function(e){return o+encodeURIComponent(t(e))}).join(n):o+encodeURIComponent(t(e[r]))}).join(n):r?encodeURIComponent(t(r))+i+encodeURIComponent(t(e)):""}},6577:function(e,t,n){"use strict";n(963),n(5341)},4360:function(e){"use strict";e.exports=JSON.parse('{"version":"2020a","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5","Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|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 WAT|-d.A -10|01|-22y0d.A|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 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 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 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 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|01212121212121212121212121212121213|-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|","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/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3","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/Curacao|LMT -0430 AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4","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/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2","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 BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v 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 CDT|5Q.M 60 5u 50|01212121212121212121212121212121212121212121212121213131|-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 1wou Rbu 1f0Mu qn0 lxB0 mn0|57e3","America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2","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/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","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/Creston|MST PST|70 80|010|-29DR0 43B0|53e2","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|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-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|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|01212121212121212121212121212121212121212121212121212121212121212121212121232121212121212121212121212121212121212121|-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 1zb0 5Ip0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 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 -0345 -03 -04|3Q.E 3J 30 40|0123|-2dvU7.k 2r6LQ.k Bxbf|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/Nassau|LMT EST EDT|59.u 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2kNuO.u 26XdO.u 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|24e4","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/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","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/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","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|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-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|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|01212121|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80","Antarctica/Macquarie|AEST AEDT -00 +11|-a0 -b0 0 -b0|0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101013|-29E80 19X0 4SL0 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 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","Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20","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/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","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 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|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|0101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 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 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 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 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|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|012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyMk.E 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 3LB0 Em0 or0 1cn0 1dB0 16n0 10O0 1ja0 1tC0 14o0 1cM0 1a00 11A0 1Na0 An0 1MP0 AJ0 1Kp0 LC0 1oo0 Wl0 EQN0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-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 3Co0 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|LMT AST ADT|4j.i 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1BnRE.G 1LTbE.G 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|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-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 3Co0 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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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/Currie|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|746","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293kI xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Hobart|AEST AEDT|-a0 -b0|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 VfB0 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/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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293jX xcX 10jd0 yL0 1cN0 1cL0 1gSp0 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||","Pacific/Port_Moresby|+10|-a0|0||25e4","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 1ip0 17b0 1op0 1tb0 Q2m0 3Ne0 WM0 1fA0 1cM0 1cM0 1oJ0 1dc0 1030 1fA0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1iM0 1fA0 8Ha0 Rb0 1wN0 Rb0 1BB0 Lz0 1C20 LB0 SNX0 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|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|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-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 3Co0 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|-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 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|-2nco8.l cNb8.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|012323232323232321212121212121212121212121212121212121212121212|-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|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|-2yO3F.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|01232345454545454545454545454545454545454545454545454545454|-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 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|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|0121212121212121212121|-2l9nd.g 2Szcd.g 1cL0 1oN0 10L0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-12 -11 +13|c0 b0 -d0|012|nIc0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-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 20o0 s00 20o0 pc0 20o0 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|-1120 -1130 -11|bk bu b0|012|-KfME 17y0a|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|-1030 -0930 -10|au 9u a0|012121212121212121212121212|lyWu 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|+1220 +13 +14|-ck -d0 -e0|0121212121|-1aB0k 2n5dk 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/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/Atikokan|America/Coral_Harbour","America/Chicago|US/Central","America/Curacao|America/Aruba","America/Curacao|America/Kralendijk","America/Curacao|America/Lower_Princes","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/Los_Angeles|US/Pacific-New","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/Cayman","America/Phoenix|US/Arizona","America/Port_of_Spain|America/Anguilla","America/Port_of_Spain|America/Antigua","America/Port_of_Spain|America/Dominica","America/Port_of_Spain|America/Grenada","America/Port_of_Spain|America/Guadeloupe","America/Port_of_Spain|America/Marigot","America/Port_of_Spain|America/Montserrat","America/Port_of_Spain|America/St_Barthelemy","America/Port_of_Spain|America/St_Kitts","America/Port_of_Spain|America/St_Lucia","America/Port_of_Spain|America/St_Thomas","America/Port_of_Spain|America/St_Vincent","America/Port_of_Spain|America/Tortola","America/Port_of_Spain|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|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|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/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/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|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/Currie 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/Vancouver America/Whitehorse America/Dawson","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/Astrakhan Europe/Volgograd 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"]}')},6700:function(e,t,n){var i={"./af":776,"./af.js":776,"./ar":7634,"./ar-dz":2758,"./ar-dz.js":2758,"./ar-kw":4980,"./ar-kw.js":4980,"./ar-ly":9602,"./ar-ly.js":9602,"./ar-ma":2500,"./ar-ma.js":2500,"./ar-sa":6909,"./ar-sa.js":6909,"./ar-tn":2735,"./ar-tn.js":2735,"./ar.js":7634,"./az":7798,"./az.js":7798,"./be":9949,"./be.js":9949,"./bg":4590,"./bg.js":4590,"./bm":5938,"./bm.js":5938,"./bn":595,"./bn.js":595,"./bo":4756,"./bo.js":4756,"./br":7277,"./br.js":7277,"./bs":4166,"./bs.js":4166,"./ca":3943,"./ca.js":3943,"./cs":3474,"./cs.js":3474,"./cv":2218,"./cv.js":2218,"./cy":1061,"./cy.js":1061,"./da":2743,"./da.js":2743,"./de":1899,"./de-at":8580,"./de-at.js":8580,"./de-ch":3264,"./de-ch.js":3264,"./de.js":1899,"./dv":8784,"./dv.js":8784,"./el":4654,"./el.js":4654,"./en-SG":4047,"./en-SG.js":4047,"./en-au":6277,"./en-au.js":6277,"./en-ca":6896,"./en-ca.js":6896,"./en-gb":1609,"./en-gb.js":1609,"./en-ie":4557,"./en-ie.js":4557,"./en-il":5836,"./en-il.js":5836,"./en-nz":3586,"./en-nz.js":3586,"./eo":2777,"./eo.js":2777,"./es":3357,"./es-do":3128,"./es-do.js":3128,"./es-us":3256,"./es-us.js":3256,"./es.js":3357,"./et":2654,"./et.js":2654,"./eu":7287,"./eu.js":7287,"./fa":3875,"./fa.js":3875,"./fi":3431,"./fi.js":3431,"./fo":1781,"./fo.js":1781,"./fr":1717,"./fr-ca":1539,"./fr-ca.js":1539,"./fr-ch":9847,"./fr-ch.js":9847,"./fr.js":1717,"./fy":2250,"./fy.js":2250,"./ga":7665,"./ga.js":7665,"./gd":5214,"./gd.js":5214,"./gl":6154,"./gl.js":6154,"./gom-latn":8518,"./gom-latn.js":8518,"./gu":9221,"./gu.js":9221,"./he":4743,"./he.js":4743,"./hi":7339,"./hi.js":7339,"./hr":3224,"./hr.js":3224,"./hu":856,"./hu.js":856,"./hy-am":6855,"./hy-am.js":6855,"./id":2190,"./id.js":2190,"./is":3887,"./is.js":3887,"./it":9270,"./it-ch":5890,"./it-ch.js":5890,"./it.js":9270,"./ja":6595,"./ja.js":6595,"./jv":3081,"./jv.js":3081,"./ka":7477,"./ka.js":7477,"./kk":3978,"./kk.js":3978,"./km":9205,"./km.js":9205,"./kn":25,"./kn.js":25,"./ko":427,"./ko.js":427,"./ku":9089,"./ku.js":9089,"./ky":9314,"./ky.js":9314,"./lb":3136,"./lb.js":3136,"./lo":9115,"./lo.js":9115,"./lt":7087,"./lt.js":7087,"./lv":5683,"./lv.js":5683,"./me":9454,"./me.js":9454,"./mi":5507,"./mi.js":5507,"./mk":8466,"./mk.js":8466,"./ml":2933,"./ml.js":2933,"./mn":9477,"./mn.js":9477,"./mr":3597,"./mr.js":3597,"./ms":5529,"./ms-my":9965,"./ms-my.js":9965,"./ms.js":5529,"./mt":259,"./mt.js":259,"./my":8061,"./my.js":8061,"./nb":2618,"./nb.js":2618,"./ne":8452,"./ne.js":8452,"./nl":1885,"./nl-be":413,"./nl-be.js":413,"./nl.js":1885,"./nn":5107,"./nn.js":5107,"./pa-in":702,"./pa-in.js":702,"./pl":1711,"./pl.js":1711,"./pt":594,"./pt-br":8238,"./pt-br.js":8238,"./pt.js":594,"./ro":4681,"./ro.js":4681,"./ru":6201,"./ru.js":6201,"./sd":2912,"./sd.js":2912,"./se":6002,"./se.js":6002,"./si":7942,"./si.js":7942,"./sk":5577,"./sk.js":5577,"./sl":1775,"./sl.js":1775,"./sq":6823,"./sq.js":6823,"./sr":9038,"./sr-cyrl":3848,"./sr-cyrl.js":3848,"./sr.js":9038,"./ss":6173,"./ss.js":6173,"./sv":5788,"./sv.js":5788,"./sw":6882,"./sw.js":6882,"./ta":2678,"./ta.js":2678,"./te":2797,"./te.js":2797,"./tet":2447,"./tet.js":2447,"./tg":1335,"./tg.js":1335,"./th":8667,"./th.js":8667,"./tl-ph":9914,"./tl-ph.js":9914,"./tlh":1389,"./tlh.js":1389,"./tr":3578,"./tr.js":3578,"./tzl":6969,"./tzl.js":6969,"./tzm":6509,"./tzm-latn":690,"./tzm-latn.js":690,"./tzm.js":6509,"./ug-cn":55,"./ug-cn.js":55,"./uk":2452,"./uk.js":2452,"./ur":1151,"./ur.js":1151,"./uz":1555,"./uz-latn":6547,"./uz-latn.js":6547,"./uz.js":1555,"./vi":6541,"./vi.js":6541,"./x-pseudo":2401,"./x-pseudo.js":2401,"./yo":2341,"./yo.js":2341,"./zh-cn":619,"./zh-cn.js":619,"./zh-hk":7058,"./zh-hk.js":7058,"./zh-tw":2782,"./zh-tw.js":2782};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id=6700},306:function(e){"use strict";e.exports={i8:"2.0.0"}}},function(e){"use strict";e(e.s=4638)}])}(); \ No newline at end of file